954 Commits

Author SHA1 Message Date
Jeff Verkoeyen
4acb488d88 Bump the release. 2017-12-12 12:35:26 -05:00
Jeff Verkoeyen
09df5e9ab0 Bump the release number to 42.2.0. 2017-12-12 11:59:18 -05:00
Jeff Verkoeyen
c239dd5e48 Bump the release. 2017-12-11 16:44:57 -05:00
Sam Morrison
183e289a87
[Chips] Use shaped shadow layer (#2628)
* [Chips] Use shaped shadow layer

* Review comments

* Nil shadowPath on shape generator assignment
2017-12-11 11:13:37 -05:00
Jeff Verkoeyen
7f63f3599d Merge branch 'release-candidate' into develop 2017-12-08 15:10:45 -05:00
Sam Morrison
5384f00f9a
[Chips] Chip field (#2600)
* [Chips] Chip field

* Clean up example

* Nits

* [self invalidateIntrinsicContentSize];

* Reorder addChip behavior

* Use correct version check

* NSCoding

* Fix example

* 32dp

* Remove k prefix

* Constrain width of chips
2017-12-08 12:20:30 -05:00
Jeff Verkoeyen
9a9cacb3f8 Bump the release. 2017-12-07 12:56:59 -05:00
featherless
0cf6cda80c [BottomNavigation] Add missing Ink dependency. (#2642) 2017-12-07 12:00:31 -05:00
featherless
284b6e3c6a
[BottomNavigation] Add missing Ink dependency. (#2642) 2017-12-07 11:59:03 -05:00
Robert Moore
2d8333d7d8 [Buttons] Extended FAB (#2563)
* [Buttons] Remove .largeIcon shape from FloatingButton (#2513)

The LargeIcon shape is not required, since the same behavior (support
for 36-point images) can be achieved by setting the contentEdgeInsets to
.zero.

Also updates one of the button examples to use a 36-point icon.

* [Buttons] Add extended FAB layout code (#2528)

Creating (internal for now) the required properties and layout code to support
the extended FAB. Unit tests to confirm the behavior and some minor
adjustments to existing values like default contentEdgeInsets values.

Implements #2495

* [Buttons] Expose Extended FAB properties (#2543)

Making the new properties public and also migrating away from simple
property setters to the new forShape:inMode: setters required for
UIAppearance support.

* minimumSize
* maximumSize
* contentEdgeInsets
* hitAreaInsets

Implements #2495

* [Buttons] Add basic Floating Button example (#2554)

Includes automatic adjustment of extended/normal layout depending on size
classes.

Demonstrates #2495

* [Buttons] Update README for Extended FAB (#2561)

The README includes usage examples for the FAB. Adding a section to
demonstrate how to configure the FAB in its different shapes and modes.

Documents #2495
2017-12-04 12:55:55 -05:00
Jeff Verkoeyen
960767356e Bump the release to 41.0.0. 2017-12-01 13:59:50 -05:00
Jeff Verkoeyen
dd4124c866 Bump the release. 2017-11-29 15:51:42 -05:00
Jeff Verkoeyen
5043f728b8 Merge branch 'release-candidate' 2017-11-29 14:55:06 -05:00
Jeff Verkoeyen
5479b1724a Bump the release. 2017-11-29 14:47:31 -05:00
featherless
3832377382 Bump the transitioning dependency to v5.0.0 (#2525)
* Bump the transitioning dependency to v5.0.0

* Bump Dialogs.

* Update example.
2017-11-29 11:35:56 -05:00
Jeff Verkoeyen
f49b0c5d53 Merge branch 'release-candidate' 2017-11-29 09:27:29 -05:00
featherless
211ca772ea
[Dialogs] Migrate to Material Motion. (#2481)
This change implements the Material Motion spec for the Dialogs component using the Motion Interchange, Animator, and Transitioning APIs.

Many of the existing APIs will be able to be deprecated or made private in the future, though there is considerable existing downstream client usage of many of these APIs so this will need to be done with some care.

The client migration path for this change will look something like this on average:

```objc
// Old API
_transitionController = [[MDCDialogTransitionController alloc] init];
self.transitioningDelegate = _transitionController;		
self.modalPresentationStyle = UIModalPresentationCustom;

// New API
self.mdm_transitionController.transition = [[MDCDialogTransition alloc] init];
```
2017-11-28 11:08:35 -05:00
Junius Gunaratne
a27d49408a
[Ink] Retrofit new ink layer with updated animation into existing ink API (#2488)
* Add updated ink flag

* Add completion block delegate methods

* Rename existing ink to legacy ink

* Update example with legacy ink as second ink view

* Update comment formatting

* Update formatting

* Update ink unit tests

* Update ink unit tests

* Import UIKit for UIColor support

* Add dependency to Material Math

* Add Material Math dependency

* Use CABasicAnimations where possible

* Add support for maxRippleRadius

* Minor refactoring for timing functions

* Remove unused mark

* Add ink description to comments

* Minor formatting fix

* Nullability updates and clarification comments

* Remove email in comments.

* Add nullability

* Add nullability

* Use year when file was created

* Add float

* Update constant names

* Update formatting

* Update year for legal reasons

* Clarify comment about use of usesCustomInkCenter

* Update cancelAllAnimationsAnimated to stop all active ink ripples

* Remove use of ink layers array and access sublayers directly

* Check layer class in cancelAllAnimationsAnimated

* Use bounds rather than frame in layoutSubviews

* Setting radii in setNeedsLayout
2017-11-28 09:59:25 -05:00
Jeff Verkoeyen
d02f32961f Bump the release to 40.1.0. 2017-11-22 12:26:30 -05:00
Sam Morrison
49ce464983 Merge branch 'release-candidate' 2017-11-17 16:06:26 -05:00
Sam Morrison
ea6c9ca3ad Bumped version number to 40.0.3. 2017-11-17 15:25:41 -05:00
Adrian Secord
2b437a248b Merge branch 'release-candidate' 2017-11-15 22:21:07 -05:00
Adrian Secord
95c7a00ae1 Bumped version number to 40.0.2. 2017-11-15 19:49:07 -05:00
featherless
c9ef0366c1
[BottomSheet] Convert to Material Motion. (#2400)
* Convert.

* Remove hard toss.

* Remove local dependency on transitioning.

* Bump version.

* Remove deprecation.

* Fix headers.

* Stop animations when gestures start.

* Update dependencies.

* CGRect.
2017-11-15 18:22:45 -05:00
Adrian Secord
133b012b87 Bumped version number to 40.0.0. 2017-11-15 08:59:28 -05:00
Sam Morrison
7c8131b672 [Chips] Chip component (#2389)
* [Chips] Chip component

* Update description

* Readme fixes

* NSMutableArray -> NSArray

* Use MDCSlider

* Chips examples CBC

* MDCChipCollectionViewCell.m

* Sanitize example

* Left align single-item rows

* Copy

* Check mark

* Use static inline instead of #define

* initWithFrame:CGRectZero

* encoding decoding

* GGRectGetMinX

* If no title color has been set for a given state...

* Use new icons

* rm init override

* alwaysAnimateCellResize -> alwaysAnimateResize

* MDCChipCollectionViewCell initWithCoder

* Fix MDCChipView encoding

* Fix indent

* Fix sizing images

* Use UIEdgeInsetsInsetRect

* Layout around hidden accessory view

* TODO Pull background color from MDCPalette

* Add The chip uses this property to determine intrinsicContentSize and sizeThatFits.

* Use static functions instead of UIColor extension

* sizeToFit -> setNeedsLayout
2017-11-15 08:29:10 -05:00
Yurii Samsoniuk
f437e8187a [Slider] Use MDCPalettes for default thumb track color (#2369) 2017-11-13 23:35:35 -05:00
Adrian Secord
1a24b7cb9e [LibraryInfo] Add new LibraryInfo component (attempt #2) (#2412)
* Added LibraryInfo component, tests, and catalog integration.

* Fix use of self in title.
2017-11-13 23:19:19 -05:00
Yurii Samsoniuk
2f1921b64e [Collections] Use MDCPalettes for info bar colors (#2364) 2017-11-13 14:32:22 -05:00
Adrian Secord
18d84d55e9 Bumped version number to 39.0.0. 2017-11-08 16:12:24 -08:00
featherless
d8919eb8a2
[ProgressView] Add a motion spec and use new implicit motion animator APIs (#2363)
* [ProgressView] Add a motion spec and use new implicit motion animator APIs.

* Add private source.

* Update animator version.

* Naming.

* Update podfiles.
2017-11-08 14:41:31 -05:00
Yurii Samsoniuk
3e0adf5acf [ProgressView] Use MDCPalettes for default tint color (#2368)
* [ProgressView] Use MDCPalettes for default tint color

* Removed unnecessary method

* [ProgressView] Correcting merge mistake.

I accidentally kept it 'sss' instead of 'spec' when I did a web-based update.
2017-11-08 07:48:24 -05:00
John Detloff
b9218a2e75
Create default light and dark color schemes for MDCSlider (#2362) 2017-11-07 13:12:09 -05:00
featherless
2b87852090
Use named variables in the podspec so that it's more clear which spec is being configured. (#2358) 2017-11-06 11:18:44 -05:00
featherless
9cc268f2b0
[ActivityIndicator] Use the correct scope for the dependencies. (#2356)
Was using `ss`, which is the component scope. Should be using `sss`, which is the component source scope.
2017-11-06 11:10:36 -05:00
featherless
8e6da0f497
[ActivityIndicator] Extract motion spec and use the Material Motion Animator for all animations. (#2344)
This conversion revealed a bug in the motion timing where the indeterminate strokeEnd animation's duration was inheriting Core Animation's default duration of 0.25 seconds rather than the spec's duration. This resulted in the stroke animating in a much more jarring way than intended. This bug was fixed in https://github.com/material-components/material-components-ios/pull/2345.

Before:
![before](https://user-images.githubusercontent.com/45670/32393512-25f82ada-c0b0-11e7-91a6-dd9f9bfddb4a.gif)

After:

![after](https://user-images.githubusercontent.com/45670/32393515-2a19fb66-c0b0-11e7-8cf3-683c75f1aae6.gif)

(The gifs don't loop perfectly so there are some hitches in the animations).
2017-11-06 10:47:05 -05:00
featherless
ae880478bb
[MaskedTransition] Bump the MotionAnimator dependency to 2.0. (#2339) 2017-11-03 13:42:19 -04:00
Adrian Secord
cf984b8ab8 Merge branch 'release-candidate' 2017-11-03 11:06:52 -04:00
Adrian Secord
262ccedccd Bumped version number to 38.1.1. 2017-11-03 10:55:13 -04:00
Adrian Secord
9da21b51f4 Added missing dep to BottomNavigation in podspec. 2017-11-03 10:44:41 -04:00
Adrian Secord
e31e433b36 Added missing dep to BottomNavigation in podspec. 2017-11-03 10:43:29 -04:00
Adrian Secord
655e875fe6 Merge branch 'release-candidate' 2017-11-03 09:56:13 -04:00
Junius Gunaratne
4ada8e028a
[BottomNavigation] Add color themer to bottom navigation bar (#2239)
* Adding bottom nav component

* Add bottom navigation item

* Add nav item and cell badge classes

* Add badge color

* Update Bottom Nav Item

* Use KVO

* Update centering for orientation change

* Update badgeValue property

* Add nav bar container view for items

* Check text height when setting frame

* Update badge height calculation

* Add select and unselected color, add icons for demo, RTL support

* Add MDCMath as dependency

* Add demo description to example

* Add selection states for hiding item titles on select

* Change hide state name to default

* Rename view to bar

* Update nullability

* Rename properties for consistency with UITabBar

* Rename container view

* Update selected item property name

* Rename properties for consistency with UITabBar

* Rename classes, formatting

* Replace custom badge layer path with corner radius

* Remove MDCMath as dependency, update formatting

* Update layout to accommodate iPhone X

* Remove unused constant

* Move autoresizing to init

* Update landscape mode layout, add interim selection state

* Remove safeAreaInsetsDidChange

* Separate layout from setSelected

* Update landscape item layout

* Add landscape layout states, update sizeThatFits

* Update some setters, properties and formatting

* Update to dot setter syntax

* Change how image tintColor is modified

* Add i18n and a11y support for VoiceOver

* Update s/copy/strong

* Add a11y selected indicator

* Minor formatting updates

* Minor formatting

* Fix order of operations for remove item views

* Only permit badge color change if iOS 10 or higher.

* Add support for RTL for item adjacent titles

* Spelling correction in comments.

* Update title visibility enum names

* Update title visibility enum names

* Update title visibility names

* Remove 3-5 item requirement and change to recommendation

* nullability updates, distribution mode updates

* Add UIAppearance

* Lower bottom nav height when using adjacent titles

* Changing color/font properties to nonnull.

* Add bottom navigation color themer

* Update bottom nav bar main view so it's not an a11y element

* Add shadow to bottom nav

* Make imageview non a11y element.

* Adding tab a11y string

* Remove comment

* Rename distribution enum to alignment, stylistic updates

* Move badgeValue out of setters section

* Add check for iOS 10 when using badge color

* Remove newer availability checks

* Remove unncessary call to viewSafeAreaInsetsDidChange

* Add @available(iOS 11.0, *) check

* Fix badge color iOS version check

* Fix minor typo

* Add shadow layer and elevation dependency to podspec

* Remove (@available(iOS 10.0, *))

* Remove code diff

* Update podspec

* Code style updates, improve comments

* Add theming to swift example
2017-11-01 09:10:42 -04:00
Adrian Secord
4cabc654bf Added missing MDFInternationalization dep to BottomNavigation. 2017-10-31 16:32:36 -04:00
Adrian Secord
86532dbeb2 Bumped version number to 38.1.0. 2017-10-31 16:05:03 -04:00
Yurii Samsoniuk
f5ed3c5368 [MaterialRTL] Removed private/RTL (#2307)
* [MaterialRTL] Removed private/RTL

* Cleaned up podspec file
2017-10-30 12:45:13 -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
Junius Gunaratne
58ecc3e8e1
[BottomNavigation] Adding bottom navigation component (#2088)
* Adding bottom nav component

* Add bottom navigation item

* Add nav item and cell badge classes

* Add badge color

* Update Bottom Nav Item

* Use KVO

* Update centering for orientation change

* Update badgeValue property

* Add nav bar container view for items

* Check text height when setting frame

* Update badge height calculation

* Add select and unselected color, add icons for demo, RTL support

* Add MDCMath as dependency

* Add demo description to example

* Add selection states for hiding item titles on select

* Change hide state name to default

* Rename view to bar

* Update nullability

* Rename properties for consistency with UITabBar

* Rename container view

* Update selected item property name

* Rename properties for consistency with UITabBar

* Rename classes, formatting

* Replace custom badge layer path with corner radius

* Remove MDCMath as dependency, update formatting

* Update layout to accommodate iPhone X

* Remove unused constant

* Move autoresizing to init

* Update landscape mode layout, add interim selection state

* Remove safeAreaInsetsDidChange

* Separate layout from setSelected

* Update landscape item layout

* Add landscape layout states, update sizeThatFits

* Update some setters, properties and formatting

* Update to dot setter syntax

* Change how image tintColor is modified

* Add i18n and a11y support for VoiceOver

* Update s/copy/strong

* Add a11y selected indicator

* Minor formatting updates

* Minor formatting

* Fix order of operations for remove item views

* Only permit badge color change if iOS 10 or higher.

* Add support for RTL for item adjacent titles

* Spelling correction in comments.

* Update title visibility enum names

* Update title visibility enum names

* Update title visibility names

* Remove 3-5 item requirement and change to recommendation

* nullability updates, distribution mode updates

* Add UIAppearance

* Lower bottom nav height when using adjacent titles

* Changing color/font properties to nonnull.

* Update bottom nav bar main view so it's not an a11y element

* Add shadow to bottom nav

* Make imageview non a11y element.

* Adding tab a11y string

* Remove comment

* Rename distribution enum to alignment, stylistic updates

* Move badgeValue out of setters section

* Add check for iOS 10 when using badge color

* Remove newer availability checks

* Remove unncessary call to viewSafeAreaInsetsDidChange

* Add @available(iOS 11.0, *) check

* Fix badge color iOS version check

* Fix minor typo

* Add shadow layer and elevation dependency to podspec

* Remove (@available(iOS 10.0, *))
2017-10-27 13:04:54 -04:00
Yurii Samsoniuk
cf53c717f9 [ThumbTrack] Migrated to MDFi18n (#2284) 2017-10-27 10:01:58 -04:00
Yurii Samsoniuk
582ddaad1d [TextFields] Migrated to MDFi18n (#2283) 2017-10-26 20:05:40 -04:00