22 Commits

Author SHA1 Message Date
Yarden Eitan
c88a059640
[Catalog] Remove unwanted warnings from build (#2794)
* fix warnings for .count in Swift strings and duplicate images in Asset folders, also give the Extension target all icons

* update project settings to recommended ones
2018-01-05 16:58:33 -05:00
Yarden Eitan
29d760c7d6
Added isPresentable to catalog files, ported over ZShadow to dragons. (#2726) 2017-12-15 12:20:35 -05:00
Will Larche
62d5a4fa85 [TextFields] Feature branch merge: Clarity, Safety, Docs, Comments, Formatting (#2634)
* [TextFields] Full width changes. (#2590)

* [TextFields] Propagating changes to themers. (#2585)

* [TextFields] Propagating changes to themers.

* [TextFields] Updates to themer examples.

* [TextFields] Base controller class files (#2582)

* [TextFields] New Base class files.

* [TextFields] Naming corrections.

* [TextFields] Formatting.

* [TextFields] Replacing -Default with -Underline (#2583)

* [TextFields] Adding underline controller.

* [TextFields] Changes to umbrella import file and removing default controllers.

* [TextFields] Renaming one file.

* [TextFields] Updated controller headers. (#2584)

* [TextFields] Updating examples. (#2586)

* [TextFields] Running clang-format on the elements. (#2587)

* [TextFields] Running format on the element itself.

* [TextFields] Minor formatting.

* [TextFields] Updating tests and formatting. (#2588)

* [TextFields] Filled controller changes. (#2589)

* [TextFields] Legacy controller comments, naming, and formatting. (#2591)

* [TextFields] Legacy controller comments, naming, and formatting.

* [TextFields] Adding safety to legacy default init.

* [TextFields] Adding safety to Legacy Default init.

* [TextFields] Formatting Legacy Default.

* [TextFields] Formatting Legacy Full Width.

* [TextFields] Text area comments, updated super, naming, formatting. (#2593)

* [TextFields] Text area updates.

* [TextFields] Clarifying comment.

* [TextFields] Outline changes and formatting. (#2592)

* [TextFields] Updates to styling doc. (#2594)

* [TextFields] Updates to styling doc.

* [TextFields] Updating doc.

* [TextFields] Full width comments, safety, formatting, and underline support. (#2633)

* [TextFields] Adding safety to full width.

* [TextFields] Formatting Full Width.

* [TextFields] PR feedback.

* [TextFields] Safety in init of Base (#2632)

* [TextFields] Adding safety to base init.

* [TextFields] Formatting Base.

* [TextFields] Updates to controller header. (#2636)

* [TextFields] Updates to controller header.

* [TextFields] Updating misleading comments.

* [TextFields] Supplemental file name changes. (#2635)
2017-12-12 11:07:48 -05:00
Will Larche
e13fa143a5
[TextFields] Fix multiline placeholder position and transform bug. PR #2 (#2360)
* [TextFields] Adding a multiline message to the example.

* [TextFields] Moving a method to a better place.

* [TextFields] Fixes multiline having set text.

* [TextFields] Adding new line to multi-line examples.

* [TextFields] Floating placeholder comments, organization and bug fix.

* [TextFields] Formatting.

* [TextFields] Adding back in the work I had lost.

* [TextFields] Adding some Xcode 8 support.
2017-11-07 11:52:58 -05:00
Martin Petrov
f98a9d42ed @objc annoaing catalog by convention (#2305) 2017-10-30 10:24:17 -04:00
Will Larche
07eea020ca [TextFields] Implementing textFieldShouldClear: (#2169)
`MDCTextField` should invoke `textFieldShouldClear` on its delegate before clearing the text. A similar delegate, `MDCMultilineTextInputDelegate` is now also supported on `MDCMultilineTextField` objects to support similar functionality.

Closes #2062
2017-10-13 06:56:32 -04:00
Will Larche
75cf565fea [TextFields] Fix text fields overlapping labels (#2163)
* [TextFields] Removes ambiguous layout.

* [TextFields] Better code organization and comment.

* [TextFields] Adding a filled in field to the examples.

* [TextFields] Correcting placeholder not rising when text is set programatically. Also better naming.

* [TextFields] Giving examples of each floating style a set .text.

* [TextFields] Adding placeholder float test.
2017-10-12 23:25:50 -04:00
Will Larche
5dae93c6c4 [TextFields] Adding .placeholderText to controllers (#2149)
* [TextFields] Adding .placeholderText to fix bugs and continue moving API to controller.

* [TextFields] PR feedback.

* [TextFields] Removes ambiguous layout.

* [TextFields] Better code organization and comment.
2017-10-12 09:16:07 -04:00
Will Larche
b438856be2 [TextFields] Examples bug and formatting (#2137)
* [TextFields] Formatting correction.

* [TextFields] Example bug.
2017-10-09 21:54:41 -04:00
Will Larche
90e79dd815 [TextFields] iOS 11 example bugs fixed (#2071)
* [TextFields] Example fix for iOS 11.

* [TextFields] iOS 11 bugs fixed.

* [TextFields] Formatting

* [TextFields] Xcode 8 support

* [TextFields] Example layout correction.

* [TextFields] Xcode and iOS safety code.

* [TextFields] typo corrections.

* [TextFields] Code for Xcode conditional.

* [TextFields] Xcode 8 support.

* [TextFields] Pleasing the static analyzer.

* [TextFields] Formatting improvement.

* [TextFields] Swift compiler conditional change and some formatting.

* [TextFields] Swift example notification changes.

* [TextFields] Safer notifcations code in Objc.

* [TextFields] Formatting
2017-10-02 20:30:17 -04:00
Will Larche
0d227f3211 [TextFields] Adding helper text to examples. (#1994)
* [TextFields] Outline example helper text.

* [TextFields] Adding helper text to more examples.

* [TextFields] Correcting helper text in example.
2017-09-18 10:32:46 -04:00
Robert Moore
8940d77d6d [Catalog] Verify all examples provide CatalogByConvention methods (#1911)
All examples now have at least the required `+catalogBreadcrumbs` and `+catalogIsPrimaryDemo`.  All examples in the same breadcrumbs path have only one primary demo.  There should be only one `-catalogDescription` attached to the primary demo.

Closes #1897
2017-08-31 08:46:10 -04:00
Will Larche
c3ed6be9d1 [TextFields] New styles: updated default, box, area (#1908)
* [TextFields] New style's API. (#1812)

* [TextFields] New style's API.

* [TextFields] PR feedback.

* [TextFields] Subclassing header.

* [TextFields] Spelling correction.

* [TextFields] Minor correction to API.

* [TextFields] Naming correction.

* [TextFields] Comment update.

* [TextFields] API correction for style.

* [TextFields] Input changes for new styles. (#1814)

* [TextFields] Input changes for new styles.

* [TextFields] PR feedback.

* [TextFields] Removing typo.

* [TextFields] Input changes for new styles. (#1814)

* [TextFields] Input changes for new styles.

* [TextFields] PR feedback.

* [TextFields] Removing typo.

* [TextFields] New default input controller. (#1816)

* [TextField] New default input controller.

* [TextFields] Properties corrections.

* [TextFields] Removing extra logic.

* [TextFields] Code organization.

* [TextFields] Default controller corrections.

* [TextFields] Updating minor full width issues to match other controllers.

* [TextFields] Correcting typos.

* [TextFields] Renaming legacy tests and examples. (#1817)

* [TextFields] Renaming legacy tests and examples. (#1817)

* [TextFields] New text field box style. (#1818)

* [TextFields] New text field box style.

* [TextFields] Formatting issues.

* [TextFields] Updated and new examples for new styles. (#1822)

* [TextFields] Updating tests for new styles and functionality. (#1820)

* [TextFields] Updating tests for new styles and functionality. (#1820)

* [TextFields] New text area style. (#1819)

* [TextFields] New text area style.

* [TextFields] Adding assert for text area init.

* [TextField] Text area corrections.

* [TextFields] Formatting.

* [TextFields] Type safety.

* [TextFields] Legacy full width controller and example (#1855)

* [TextFields] Legacy full width example.

* [TextFields] Legacy full width.

* [TextFields] Adding legacy full width to text fields import file.

* [TextFields] Adding border view. (#1813)

* [TextFields] Adding border view.

* [TextFields] Making Xcode call out missing cases in the future.

* [TextFields] NSCopying style fix.

* [TextFields] Border view.

* [TextFields] Renaming old default to legacy default. (#1815)

* [TextFields] Renaming old default to legacy default.

* [TextFields] Correcting synthesizing of properties.

* [TextFields] Moving some code so it doesn't stick out.

* [TextFields] Correcting new that should be alloc init.

* [TextFields] Removing unneeded logic.

* [TextFields] Supporting old clear button.

* [TextFields] Rounding out main header with all new files (#1863)

* [TextFields] Forgotten imports.

* [TextFields] Correcting alphabetizing.

* [TextFields] Typo correction. (#1864)

* [TextFields] Clear button tint and tests. (#1861)

* [TextFields] Spelling correction. (#1870)

* [TextFields] Naming lost in rebase 'roundedCorners' (#1871)

* [TextFields] Rounded corners work.

* [TextFields] Updating rounded corners rename.

* [TextFields] Correcting naming typo. (#1872)

* [TextFields] Removing MDCTextInputControllerLegacyDefault from IB example. (#1869)

* [TextFields] Removing MDCTextInputControllerLegacyDefault from IB example. (#1869)

* [TextFields] Using class properties by dot syntax.

* [TextFields] Using class properties by dot syntax.

* [TextFields] Class properties access via dot syntax.

* [TextFields] Cleaning up properties.

* [TextFields] Updating legacy full width controller to support new properties.

* [TextFields] Re-adding a file with no history.

* [TextFields] Rebase.

* [TextFields] Art merge correction.

* [TextFields] Minor merge corrections.

* [TextFields] Corrections and additions to kitchen sink (#1899)

* [TextFields] Kitchen sync updates.

* [TextFields] Adding area to kitchen sink.

* [TextFields] Reversing addSubview and tamic off.

* [TextFields] Example updates due to text inset changes. (#1901)

* [TextFields] Adding text insets mode to kitchen sync example.

* [TextFields] Minor example corrections.

* [TextFields] Example updates.

* [TextFields] Adding area to kitchen sink.

* [TextFields] Correcting an example.

* [TextFields] Adding char max to area.

* [TextFields] Reversing addSubview and tamic off.

* [TextFields] Updating controllers for new text inset logic (#1902)

* [TextFields] Lining up some comments better.

* [TextField] Simplifying text inset math.

* [TextFields] Layout logic revamped in controllers.

* [TextFields] Box fix!

* [TextFields] PR feedback.

* [TextFields] Changing insets to react to new property (#1900)

* [TextFields] Creating MDCTextInputAlignmentRectMode.

* [TextFields] Correcting MDCTextInputAlignmentRectMode API.

* [TextFields] AlignmentRectMode implementation.

* [TextFields] Tests for alignment rect.

* [TextFields] MDCTextInputFundamentTextInsetsMode replacing alignment rect mode.

* [TextFields] Text insets mode boiler plate.

* [TextFields] Adding text insets mode to kitchen sync example.

* Revert "[TextFields] Adding text insets mode to kitchen sync example."

This reverts commit 2d4a3ea302d36fc2f79998456e0fcf009ba020d1.

* [TextFields] Moving text insets logic into fundament and updating it to use the new modes.

* [TextFields] Basic text insets affected by text insets mode.

* [TextFields] Improving the line height estimation. (#1905)

* [TextFields] Box style clear button Y fix (#1906)

* [TextFields] Moving clear button const.

* [TextFields] Box clear button polish.

* [TextFields] Autolayout clarity.

* [TextFields] Formatting. (#1907)

* [TextFields] Fixing copyright stanzas.

* [TextFields] One more copyright stanza correction.

* [TextFields] PR feedback.
2017-08-26 08:04:30 -04:00
Will Larche
3bd23322ad [TextFields] Renaming text field controllers to have 'Legacy' (#1876)
* [TextFields] Renaming text field controllers to have 'Legacy'. Also the consequences.

* [TextFields] Reverting a couple naming changes.
2017-08-22 16:48:34 -04:00
Will Larche
25c36a4867 [TextFields] Adding a multiline text field to main example (#1790)
* [TextFields] Removing unused constraints in default.

* [TextFields] Deleting unused constraints.

* [TextFields] Adding a multiline textfield to the main example.
2017-08-14 16:23:35 -04:00
Will Larche
5ab6885a2a [TextFields] Regular example improvements. (#1791) 2017-08-14 13:35:15 -04:00
Will Larche
0922de660c [TextFields] Examples improvements. (#1734) 2017-08-03 17:40:44 -07:00
Donna McCulloch
7a26712eb9 [TextField] Update demo alert to indicate floating setting. (#1612)
Update demo alert to display based on whether the text fields are floating or not.
2017-07-12 10:35:17 -04:00
Martin Petrov
1e14d41091 Explicitly annotating some known ObjC methods. (#1617)
This improves Swift4 compatibility, see:
https://help.apple.com/xcode/mac/current/#/deve838b19a1
2017-07-10 19:46:22 -04:00
Will Larche
f879c91a90 [Swift] Fixing swift style errors (#1577)
* [TextFields] Linting

* [Catalog] Swift style.

* [Catalog] Swift style.

* [Buttons] Swift style.

* [FlexibleHeader] Swift style.

* [NavBar] Swift style.

* [Snackbar] Swift style.

* [Tabs] Swift style.
2017-06-27 12:36:21 -04:00
Will Larche
13dcb5746b [TextFields] Presentation styles to controller classes (#1549)
* [TextFields] Converting MDCTextInputController to a protocol.

* [TextFields] Better naming structure.

* [TextFields] Moved presentation styles into separate files.

* [TextFields] Splitting textfield presentation styles into classes.

* [TextFields] Floating height corrections.

* [TextFields] Formatting.

* [TextFields] Comment correction.

* [TextFields] Additional tests for split controllers.

* [TextFields] Example title correction.
2017-06-22 14:56:31 -04:00
Will Larche
acf47c10d1 [TextFields] Single line text fields (#1318)
* [TextFiels] Left View.

* [TextFields] Tile art.

* [TextFields] Left view works with floating.

* [Catalog] Correcting extension identifier.

* [TextFields] Formatting and corrections because of static analyzer.

* [TextFields] Fixes unit tests for change in property name.

* [TextFields] Precision warning correction.

* [TextFields] Examples for .rightView

* [TextFields] Left / right existence tests.

* [TextFields] Truncation for rightView and leftView.

* [TextFields] Placeholder positioning clean up.

* [TextFields] Full width padding.

* [TextFields] Initializer clean up.

* [TextFields] Bounds layout correction.

* [TextFields] Cleanup.

* [TextFields] Organizing constraints.

* [TextFields] Conforming better to auto layout lifecycle.

* [TextFields] Cleaning up colors.

* [TextFields] Correction to auto layout problems with textViews.

* [TextFields] NSCoder and NSCopying support begun.

* [TextFields] NSCoding and NSCopying support. API documentation and cleanup. Internal alphabetizing.

* [TextFields] Spacing correction.

* [TextFields] TextView test correction.

* [TextFields] Dynamic Type support.

* [TextFields] Dynamic Type in example.

* [TextFields] Correction for broken left view.

* [TextFields] Beginning readme.

* [TextFields] Readme work.

* [TextFields] Markdown correction.

* [TextFields] Markdown correction.

* [TextFields] Objective C example and renaming to plural.

* [TextFields] First snippet.

* [TextFields] Updated readme with snippets.

* [TextFields] Objc example.

* [TextFields] Swift example cleanup.

* [TextFields] Added text view snippet.

* [TextFields] Readme clarification.

* [TextFields] Expanding positioning delegate scope.

* [TextFields] Making text container inset the default API for controlling positioning.

* [TextFields] Formatting.

* [TextField] Moving underline to auto layout.

* [TextFields] Underline content hugging.

* [TextFields] Added unstyled text view to the examples.

* [TextField] Added notification observation for text views.

* [TextFields] Vastly improved spacing.

* [TextFields] Improving layout.

* [TextFields] Height correction.

* [TextFields] Improvements to height calculations.

* [TextFields] Preparations for .leftView and .rightView calculations.

* [TextFields] Moving line height calculations to rounded instead of veiled.

* [TextFields] Unstyled textfield done.

* [TextFields] Full width char count layout correction.

* [TextFields] Example correction.

* [TextFields] Removing TODOs.

* [TextFields] Getting rid of todos (colors.)

* [TextFields] Left and right view position correction.

* [TextFields] Editing rect corrections.

* [TextFields] Associate view alignment

* [TextFields] Removing duplicated work.

* [TextFields] Cleaning up positioning delegate.

* [TextFields] Improving layout.

* [TextFields] Editing for clarity.

* [TextField] Precision correction.

* [TextFields] Height corrections for .floatingPlaceholder

* [TextFields] Improved .floatingPlaceholder height math

* [TextFields] Removing Debugging consoles.

* [TextFields] Custom font improved support and “remembering” in controller.

* [TextFields] Cleaning up KVO and adjusting for bigger fonts.

* [TextFields] TextView NSCoding correction.

* [TextFields] Format all.

* [TextFields] Added comments.

* [TextFields] Moved code to match pattern of organization.

* [TextFields] Properties organization.

* [TextFields] Organization.

* [TextFields] Dealing with notifications and setting textInput.

* [TextFields] Reduced duplicated math. Moved to text insets as source of truth.

* [TextFields] Comments.

* [TextFields] Formatting.

* [TextFields] Comments correction.

* [TextFields] Full width spacing for textRect.

* [TextFields] Full width spacing for editingRect.

* [TextFields] Necessary for KVO.

* [TextFields] Clear button Y correction.

* [TextFields] Dealing with keyboard in example.

* [TextFields] whitespace correction.

* [TextField] Text views examples simple.

* [TextFields] TextView hugging increase.

* [TextFields] Improved examples.

* [TextFields] Improving examples for text views.

* [TextFieds] text views example improvement

* [TextFields] Temporarily removed text views and expanded example for text fields.

* [TextFields] Objc example work.

* [TextFields] Comment improvement.

* [TextFields] Expanding Objc Example.

* [TextFields] Shaving tests for single line only.

* [TextFields] Corrected character count not coloring underline.

* [TextFields] Character count examples and a fix.

* [TextFields] Text field underline space correction.

* [TextFields] Removing debug code.

* [TextFields] Character count logic correction.

* [TextFields] Beginning RTL calculations for textRects

* [TextFields] More RTL spacing work.

* [TextFields] Example improvement.

* [TextFields] Correction for clear button.

* [TextFields] Improved RTL.

* [TextFields] Storyboards example and fix for preset placeholder.

* [TextFields] IB example cleanup.

* [TextFields] IB example improvement.

* [TextField] Swift example has controls at the bottom

* [TextField] Improved voiceover support.

* [TextFields] Improved voice over support.

* [TextFields] Formatting.

* [TextFields] Improving voice over support.

* [TextFields] VoiceOver support for errors.

* [TextFields] VoiceOver detail.

* [TextFields] Formatting and details.

* [TextFields] Better storyboard support.

* Design

* [TextFields] Podfile.lock

* [Typography] Undoing formatting.

* [FeatureHighlight] Undoing formatting.

* [TextFields] Undoing file change.

* [TextFields] Adding missing EOL whitespace.

* [FeatureHightlight] Formatting.

* [Typography] Formatting correction.

* [TextFields] Feedback from PR.

* [TextFields] Removing code because PR.

* [TextFields] Renaming because PR.

* [TextFields] Replaced theme with compliant.

* [TextFields] Changes per PR.

* [TextFields] Renaming things for clarity.

* [TextFields] Removing unused protocols.

* [TextFields] Clear button size logic.

* [TextFields] Some corrections dealing with serialization.

* [TextFields] Example correction and testing code.

* [TextFields] Support for iOS 10’s adjustsFontForContentSizeCategory

* [TextFields] Removing debug comments.

* [TextFields] Better handling of custom fonts and dynamic type.

* [TextFields] Better organization of new methods.

* [TextFields] Removing unneeded code.

* [TextFields] Improved floating placeholder calculations.

* [TextFields] New clear button implementation.

* [TextFields] Clear button details.

* [TextFields] Formatting.

* [TextFields] A little safety.

* [TextFields] Clear Button target action.

* [TextFields] Cleanup.

* [TextFields] CGFloat conversion.

* [TextFields] Removing unused method.

* [TextFields] Minor corrections to clear button.

* [TextFields] Added MDCMath.

* [TextFields] NSNotificationCenter cleanup.

* [TextFields] Cleaning up logic.

* [TextFields] Clear button bug fix.

* [TextFields] Formatting.

* [TextFields] Dynamic type correction.

* [TextFields] Improvement to example.

* [TextFields] Placeholder truncation bug fix.

* [TextFields] RTL improvements.

* [TextFields] Examples reorganized.

* [TextFields] Better typical use example (form).

* [TextFields] Better support for changing presentation styles while editing.

* [Catalog] Reverting changes to project and info.plist.

* [TextFields] Style correction.

* [TextFields] New example has validation.

* [TextFields] Correcting property declaration.

* [TextFields] Simplifying iOS version check.

* [TextField] Adding faux-value semantics to controller properties.

* [TextFields] Added MDCMath.

* [TextFields] Removing development team.

* [TextFields] Removing debug identifier.

* [TextFields] Reverting debug change.

* [TextFields] Kitchen sink automatically scrolls with keyboard now.

* [TextFields] Main example doesn’t try to show full width.

* [Pods] Podfile.lock.

* [TextFields] Example improvements.

* [TextFields] Organization in example.

* [TextField] Catalog tile to BnW.

* [TextFields] Cleanup.

* [TextFields] Screenshot

* [Tabs] README correction.

* [TextFields] Example correction.

* [TextFields] - Removed video link in readme

* [TextFields] - Updated image width

* [TextFields] Example cleanup.

* [TextFields] Manual layout example.

* [TextFields] Finishing the renaming of the fundament.

* [TextField] Correcting typo.

* [TextFields] Adding underline as a UIView in API.

* [TextFields] Correcting constraints for floating / default.

* [TextFields] Manual example support for changing presentation improvement.

* [TextFields] Manual layout support.

* [TextFields] Correcting copied properties.

* [TextFields] Comments improvement.

* [TextFields] More validation examples.

* [TextFields] Naming update.

* [TextFields] More tests and corrections of problems discovered during testing.

* [TextFields] Clear button mode in copy.

* [TextField] Attributed setters tests.

* [TextFields] Color test correction.

* [TextField] ErrorColor test.

* [TextFields] Formatting.

* [TextFields] Error color fixes.

* [TextFields] More tests.

* [TextFields] Testing correction.

* [TextFields] Organizing test files.

* [TextField] Test organization.

* [TextField] Additional test.

* [FeatureHighlight] Reverting change.

* [TextFields] Bare pod file update.

* [TextField] Test corrections.

* [TextField] Color has value semantic.

* [TextField] Documentation updates.

* [TextFields] Documentation improvement.

* [TextField] RTL corrections.

* [TextField] RTL and layout corrections.

* [TextFields] Better AutoLayout use.

* [TextFields] Removing debugging logging.

* [TextFields] Exposing underline fully.

* [TextFields] KVO for new underline API.

* [TextFields] Formatting

* [TextFields] Documentation update.

* [TextFields] Comments correction.

* [TextFields] Updating README.

* [TextFields] Standardizing primitive property annotations.

* [TextFields] PR notes.

* [TextFields] Localization todos.

* [TextFields] Const definition corrections.

* [TextFields] Correcting const definitions.

* [TextFields] Using MDCMath.

* [TextFields] Correcting const definition.

* [TextFields] Color value semantics correction.

* [TextFields] Copy update.

* [TextFields] Removing unnecessary code.

* [TextFields] Copy update.

* [TextFields] Underline inherited code correction.

* [TextFields] Switch fix.

* [TextFields] Simplifying some math.

* [TextFields] Simplyfing some logic.

* [TextFields] Improving underline init order.

* [TextField] Undoing formatting changes.

* [TextFields] Adjusting to new Swift color API.

* [TextFields] Re-adding textFields catalog tile.

* [TextField] Refining Swift support choices.

* [TextField] Simplifying swift support.

* [TextFields] Improving Swift support.

* [TextFields] Helper text implementation improvement.

* [TextField] A little CAAnimation safety.

* [TextFields] Removing extra line.

* [TextFields] CATransaction a little better.
2017-06-02 11:56:35 -04:00