133 Commits

Author SHA1 Message Date
Will Larche
0d877a048f
[TextFields] Correcting logic mistake (#2885)
Caught by internal user.
2018-01-31 12:14:53 -05:00
Will Larche
b7ec2004ab
[TextFields] Correcting documentation (#2844)
Overriding cancelled travis since this is for a .md file only.
2018-01-16 17:27:58 -05:00
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
6df22d2cd6
Update MaterialComponents podspec to separate extensions from component. Breaking change, please see description when sending out a new release (#2748)
* [Catalog] Update catalog readme to reflect podspec filename change

* upate podspec

* update spec to extension

* more specific dependency

* added documentation
2018-01-02 16:51:58 -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
09b3c9583d
[TextFields] Formatting. (#2725) 2017-12-14 11:25:09 -08:00
Will Larche
290f13f7be [TextFields] States example (#2718)
* [TextFields] Just needs layout code.

* [TextFields] Seems to be working good.
2017-12-14 08:48:15 -05:00
Robert Moore
d2e028f388 [kokoro] Add :ColorThemer targets (#2712)
These components were missing BUILD definitions for their ColorThemer extensions
2017-12-13 15:38:08 -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
Randall Li
63abcadd7c
[TextFields] Corrected imports in examples. (#2655)
PiperOrigin-RevId: 178286593
2017-12-11 13:40:38 -05:00
Randall Li
b1ec22207f
Fixed float conversion build errors (#2602)
* Fixed float conversion build errors
Implicit conversion loses floating-point precision: 'double' to 'CGFloat' (aka 'float')

Found by turning on warnings via: https://github.com/material-components/material-components-ios/pull/2480

* More Fixed float conversion build errors
Implicit conversion loses floating-point precision: 'double' to 'CGFloat' (aka 'float')

Found by turning on warnings via: https://github.com/material-components/material-components-ios/pull/2480
2017-12-06 15:57:04 -05:00
featherless
b9404ded10
Revert "Add compile time flag for import style (#2562)" (#2612)
This reverts commit 6791dc4993d3a0ffa11735eeeef0583102621d52.
2017-12-06 11:22:17 -05:00
Louis Romero
6791dc4993
Add compile time flag for import style (#2562)
Closes #2550
2017-12-04 10:06:31 -08:00
Yarden Eitan
f9e187feb4 [Cleanup] remove checks for iOS8 and above as we now only support iOS8+ (#2555) 2017-12-02 22:08:00 -05:00
Junius Gunaratne
7dc9470943 [Themers] Add nullability to themers (#2551)
* Add nullability to themers

* Wrap optional
2017-12-01 17:31:41 -05:00
Will Larche
2b8200185b
[TextFields] Removing extra calls in setupClearButton. (#2541) 2017-11-30 10:54:19 -05:00
Will Larche
0496c22549
[TextFields] Correcting class of the textview to match the new class required for MDCMultilineTextField. (#2519) 2017-11-27 14:49:28 -05:00
Will Larche
35727c1249 [TextFields] Fixes bug: multiline having ambiguous height in the text view (#2489)
* [TextFields] Fixes bug in multiline having ambiguous height in the text view.

* [TextFields] Making the comments clearer.

* [TextFields] PR feedback.

* [TextFields] PR feedback.

* [TextField] Uhoh.

* [TextFields] Going back and making the new class mandatory.

* [TextFields] PR feedback.
2017-11-27 11:54:58 -05:00
Will Larche
6f48a43b53
[TextFields] Updating encoding and copying. (#2515) 2017-11-27 09:36:54 -05:00
Will Larche
7937f1b5c9 [TextFields] TrailingView tests. (#2516) 2017-11-27 09:22:49 -05:00
Will Larche
47ed556783 [TextFields] Adding legacy storyboard. (#2517) 2017-11-27 09:22:18 -05:00
Will Larche
8472a0ad79 [TextFields] Reverting change that caused regression. (#2492)
Closes #2482
2017-11-21 08:15:55 -05:00
Sylvain Defresne
c3615fa300 Use framework-style imports. (#2428)
* Use framework-style imports.

MDFInternationalization is built as a framework, so use the style
recommended to import from the framework (#import <...>).

MotionAnimator and MotionInterchange mixed the normal style import
and the framework style import; settle them on the framework style.

* Update MDCActivityIndicator.m

Re-order to match our style guide.

* Update MDCBottomNavigationBar.m

Re-order to match our style guide.

* Update MDCBottomNavigationItemView.m

Re-order to match style guide.

* Update MDCBottomAppBarView.m

* Update MDCButtonBar.m

* Update MDCAppBarButtonBarBuilder.m

* Update MDCAppBarButtonBarBuilder.m

* Update MDCCollectionViewCell.m

* Update MDCAlertController.m

* Update NavigationBarIconsExample.m

* Update MDCNavigationBar.m

* Update MDCItemBarCell.m

* Update MDCTextField.m

* Update MDCThumbTrack.m
2017-11-17 10:39:48 -05:00
Will Larche
1bd5590bbb
[Kokoro] Support for TextFields, Math, and Typography (#2432)
* [TextFields] Kokoro work.

* [Math] Imports needed for kokoro.

* [Kokoro] Support for MDCMath.

* [TextFields] Alphabetizing.

* [Kokoro] Formatting.

* [Kokoro] Formatting
2017-11-16 22:25:52 -05:00
Yurii Samsoniuk
2a96682230 Replace unnecessary imports with forward declarations (#2429)
* [Themes] Remove unnecessary imports.

* [TextFields] Remove unnecessary imports.

* [Typography] Do not use an umbrella header inside of a component.

* [Snackbar] Do not use self umbrella header.

* [ActivityIndicator] Do not use self umbrella header.

* [AppBar] Use umbrella headers.

* [AppBar] Remove self import header.

* [ButtonBar] Removed self umbrella header imports.

* [Buttons] Removed self umbrella header imports.

* [Collections] Update imports.

* [Dialogs] Moved import into an m file.

* [Collections] Fixed imports.

* [FeatureHighlight] Removed self umbrealla imports.

* [HeaderStackView] Reordered imports.

* [Ink] Replaced imports with forward declarations.

* [Slider] Replaced self umbrella import use.

* [Snackbar] Removed self umbrella header import.

* [Tabs] Changed math import. Replaced self umbrella header import.

* [Icons] Removed unnecessary imports.

* [Overlay] Replaced umbrella header import.

* [ShapeLibrary] Replace Shapes imports with an umbrella header.

* [Shapes] Replaced imports with forward declarations.

* [AppBar] Replace import with a forward declaration.

* [Examples] Updated imports.

* Fixed conflicting imports

* Added space between different import categories
2017-11-16 18:25:06 -05:00
Will Larche
d9e0811a81 [Themer] Updating the protocol generic syntax. (#2440) 2017-11-16 07:59:18 -05:00
Adrian Secord
a83c90154b Added missing import. 2017-11-15 10:12:05 -05:00
Will Larche
93cc72187f
[TextFields] Complete theming of controllers (#2416)
* [TextFields] Encapsulating some common API into a protocol.

* [TextFields] Refactoring to use new protocol for theming.

* [TextFields] Themer work.

* [TextFields] Removing unneeded import.

* [TextFields] Correcting documentation mistake.

* [TextField] Formatting.

* [TextFields] Documentation update.

* [TextFields] PR feedback.

* [TextFields] Silencing Xcode 8 only warnings.
2017-11-14 21:21:41 -05:00
Will Larche
0bcae8d882
[TextFields] Some useful comments. (#2366) 2017-11-08 07:44:21 -05:00
Will Larche
b5dc8a79e4
[TextFields] Adding a constraints update when the placeholder scale changes. (#2367) 2017-11-08 07:43:16 -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
Will Larche
336d830895
[TextFields] Correcting alphabetizing of some code. (#2343) 2017-11-04 10:32:49 -04:00
Will Larche
282754e7a9
[TextFields] Fixes bugs on multiline IB support (#2289)
* [TextFields] Improved interface builder support.

* [TextFields] Adding multiline to interface builder example.

* [TextFields] Adding comment.

* [TextFields] Updating IB example.

* [TextFields] Updating storyboard for example.

* [TextFields] Adding handling of expanding on overflow for IB cases.

* [TextFields] Adding better expanding support for IB.

* [TextFields] Fixing bugs related to loading a multiline text field from a storyboard.

* [TextFields] Reorganizing IB examples to add new one.

* [TextFields] Adding useful comment.
2017-11-01 09:53:21 -04:00
Martin Petrov
f98a9d42ed @objc annoaing catalog by convention (#2305) 2017-10-30 10:24:17 -04:00
Will Larche
e411f38259
[TextFields] Major improvements to RTL (#2274)
* [TextFields] Correcting comment.

* [TextFields] Major corrections to RTL by using MDFInternationalization and respecting iOS 8's weird behavior.

* [TextFields] Adding MDFInternationalization to podspec for TextFields.

* [TextFields] Correcting headers.

* [TextFields] Adding a comment.
2017-10-27 15:09:30 -04:00
Will Larche
463a2831a0 [TextFields] Adds cursor color as parameter (#2297)
* [TextFields] Adding cursorColor to example.

* [TextFields] Adding cursor color to tests.

* [TextFields] Completing implementation of cursor color.
2017-10-27 08:17:30 -04:00
Yurii Samsoniuk
582ddaad1d [TextFields] Migrated to MDFi18n (#2283) 2017-10-26 20:05:40 -04:00
Will Larche
327c3f5ef6 [TextFields] Fixes clear button not reseting character count (#2277)
* [TextFields] Adding better UIResponder overrides.

* [TextFields] Sending a notification when the clear button is touched like it would if the clear button were UITextField's.

* [TextFields] More specific notification class checks.
2017-10-26 09:43:55 -04:00
Will Larche
035b9b4cae [TextFields] Updating kitchen sink example to use trailing and leading views. (#2266) 2017-10-24 22:59:55 -04:00
Will Larche
17e962fb35 [TextFields] Corrects cheap floating placeholder layout (2nd PR) (#2210)
* [TextFields] Calculations are improved but still off.

* [TextFields] Compensating for internal behavior.

* [TextFields] Correcting placeholder compression resistence.

* [TextFields] Probably best working animation without translations.

* [TextFields] Adding text field did update constraints.

* [TextFields] Correcting autolayout value.

* [TextFields] Redoing placeholder calculations.

* [TextFields] Removing out of date comment.

* [TextFields] Some formatting.

* [TextFields] Undoing some formatting.

* [TextFields] Forgot to nil out property.

* [TextFields] Adding new calculations to the legacy default.

* [TextFields] PR feedback.

* [TextFields] Formatting.

* [TextFields] PR feedback.

* [TextFields] Formatting.

* [TextFields] Better comment.
2017-10-17 21:59:50 -04:00
Will Larche
7c5ef7d03e [TextFields] Clear button X value adjustment. (#2176) 2017-10-13 14:24:13 -04:00
Adrian Secord
479f7b1141 Remove trailing whitespace everywhere. (#2168) 2017-10-13 11:33:35 -04:00
Will Larche
9cb8ec36df [TextFields] Some alphabetizing. (#2166) 2017-10-13 10:16:31 -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
585571e18a [TextFields] Fixes clear button not updating the character counter. (#2143) 2017-10-11 07:59:14 -04:00
Will Larche
2604acad22 [TextFields] Styling doc gif addition. (#2144) 2017-10-10 15:19:01 -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
96fb533554 [Catalog] Fixes improper use of Bundle and assets (#2118)
* [Catalog] Fixing bundle usage in some examples.

* [Examples] Correcting use of assets and bundles.

* [Examples] Formatting.
2017-10-08 15:04:48 -04:00