279 Commits

Author SHA1 Message Date
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
Yurii Samsoniuk
639941a3f5 [Tabs] Migrated to MDFi18n (#2282) 2017-10-26 17:05:33 -04:00
Yurii Samsoniuk
752b7af6f5 [ProgressBar] Migrated to MDFi18n (#2281)
* Migrated code to MDFi18n

* Updated Podspec deps
2017-10-26 15:17:20 -04:00
featherless
cd3ac7766c Update MotionTransitioning dependency to 4.0. (#2238)
* Update MotionTransitioning dependency to 4.0.

* Update Podfile.lock files.
2017-10-26 13:32:50 -04:00
Yurii Samsoniuk
6f5fb72de0 [CollectionCells] Migrated to MDFi18n. (#2248)
* [CollectionCells] Migrated to MDFi18n.

* Swapped dependencies from MDCRTL to MDFi18n
2017-10-26 11:38:29 -04:00
Yurii Samsoniuk
351bb832cc [BottomAppBar] Migrated to MDFi18n. (#2244)
* [BottomAppBar] Migrated to MDFi18n.

* Swapped dependencies from MDCRTL to MDFi18n
2017-10-26 11:32:14 -04:00
Yurii Samsoniuk
ddafafc7b1 [AppBar] Migrated to MDFi18n. (#2243)
* [AppBar] Migrated to MDFi18n.

* Swapped dependencies from MDCRTL to MDFi18n
2017-10-26 11:31:44 -04:00
Yurii Samsoniuk
fd639afac1 [NavigationBar] Migrated to MDFi18n (#2280)
* Moved src code to MDFi18n

* Updated Podspec deps

* Migrated examples to MDFi18n
2017-10-26 11:30:53 -04:00
Yurii Samsoniuk
06671d1889 [BottomBar] Migrated to MDFi18n. (#2245)
* [BottomBar] Migrated to MDFi18n.

* Swapped dependencies from MDCRTL to MDFi18n
2017-10-26 11:28:46 -04:00
Adrian Secord
2690d2c68f Merge branch 'release-candidate' 2017-10-26 10:31:04 -04:00
Yurii Samsoniuk
58ad191297 [ActivityIndicator] Migrated to MDFi18n. (#2246)
* [ActivityIndicator] Migrated to MDFi18n.

* Replaced RTL dependency in Podspec
2017-10-25 18:43:30 -04:00
Adrian Secord
9913aaf229 Bumped version number to 38.0.1. 2017-10-25 16:55:18 -04:00
Adrian Secord
8cd53c3469 Bumped version number to 38.0.0. 2017-10-24 14:26:14 -04:00
Adrian Secord
ab4d40c071 Bumped version number to 37.0.1. 2017-10-24 11:04:49 -04:00
Adrian Secord
0164c3a867 Bumped version number to 37.0.0. 2017-10-18 19:56:40 -04:00
Adrian Secord
b6f95bb035 Merge branch 'release-candidate' 2017-10-17 08:17:09 -04:00
featherless
195630dfe2 Fix minor typo in the podspec. (#2187) 2017-10-16 22:39:55 -04:00
Adrian Secord
f82643d7dc Bumped version number to 36.3.0. 2017-10-16 20:00:47 -04:00
Adrian Secord
ec362e44fc Added missing dependency on ShadowLayer (again). 2017-10-16 19:51:32 -04:00
Adrian Secord
50fed2f07e Added missing dependency on shadow elevations. 2017-10-16 18:22:04 -04:00
Adrian Secord
63c64ca0d8 Bumped version number to 36.2.0. 2017-10-16 09:12:43 -04:00
Adrian Secord
08ed4334e8 Merge branch 'release-candidate' 2017-10-16 08:34:47 -04:00
featherless
778d9c6b2f [AppBar] Make use of MDCDeviceTopSafeAreaInset. (#2186)
* [AppBar] Make use of MDCDeviceTopSafeAreaInset.

* Update another callsite.
2017-10-13 18:11:42 -04:00
featherless
35cd84b15c Add new UIMetrics component. (#2185)
* Add new UIMetrics component.

* Fix the subspec references.
2017-10-13 17:40:50 -04:00
Adrian Secord
3b398931e4 Bumped version number to 36.1.0. 2017-10-12 16:40:52 -04:00
Adrian Secord
16a572b3ff Merge branch 'release-candidate' 2017-10-12 14:30:33 -04:00