323 Commits

Author SHA1 Message Date
Sam Morrison
6e6a3b6865 Add typography to the Snackbar podspec deps (#934) 2016-12-02 14:58:02 -05:00
Adrian Secord
fb8ed4ec4b Bumped version number to 17.1.0.
Note that the 17.0.0 release did not update the podspec file, so 17.0.0 was not properly exposed to CocoaPods.
2016-11-30 17:33:37 -05:00
Adrian Secord
8587f00316 Added even more missing private/Application dependencies to the podspec. 2016-11-30 16:58:41 -05:00
Adrian Secord
6ed27f3177 Added missing Application deps to podspec. 2016-11-30 16:40:40 -05:00
Sam Morrison
e69f038d88 Wrap sharedApplication calls so we can build for app extension targets (#897)
* Add UIApplication+AppExtensions

* Fix extension name

* Add comments

* s/safeApplication/safeSharedApplication/g

* Doc for class extension
2016-11-29 13:46:05 -05:00
Adrian Secord
171e5bfbc5 Remove MDCSwitch examples and catalog usage. (#892)
* Remove MDCSwitch examples and catalog usage.

* Restored deletion of Switch examples.

* Revert "Restored deletion of Switch examples."

This reverts commit efe9fc75ae3310b58fbb4b56c31caedb7a109bf9.

* No, really. Restore Switch examples.

* Removed all Podfile references.
2016-11-28 14:38:32 -05:00
Randall Li
d1d366843a Fix CocoaPods submodules for Swift (#886)
* removed header_mappings_dir because it was preventing the headers from getting publicized in the pod project when use_frameworks is used in a swift project.

* ran manage_pod update
2016-11-22 14:33:18 -05:00
Adrian Secord
2997e50c4c Updated refs to GitHub repo with new location. (#885)
* Updated refs to GitHub repo with new location.

* Reverted chagnes to JSON files.
2016-11-22 14:32:50 -05:00
Adrian Secord
be8b0f7a1a Bumped version number to 16.3.0. 2016-11-09 09:24:48 -05:00
Adrian Secord
a1c2633b76 Backporting changes found when integrating internally. 2016-11-02 13:45:38 -04:00
Adrian Secord
c9c0490b77 Bumped version number to 16.2.0. 2016-11-02 09:39:19 -04:00
Sam Morrison
d4806473e4 MDCFeatureHighlightViewController implementation (#765)
* API Review for Feature Highlight component

Summary:
This is the proposed API for the Feature Highlight component.

For more info see the following links:
Design spec: https://material.googleplex.com/growth-communications/feature-discovery.html#feature-discovery-design
Tracking bug: b/30695049

Example usage
```
MDCFeatureHighlightViewController *vc = [[MDCFeatureHighlightViewController alloc] init];
vc.delegate = self;
vc.hintTitleText = @"...";
vc.hintBodyText = @"...";
[vc highlightView:_button];
[self presentViewController:vc animated:animated completion:completion];
```
In the delegate:
```
- (void)featureHighlightWasAccepted:(MDCFeatureHighlightViewController *)highlight {
  // do accepted things here
  [self dismissViewControllerAnimated:YES completion:nil];
}
- (void)featureHighlightWasIgnored:(MDCFeatureHighlightViewController *)highlight {
  // do ignored things here
  [self dismissViewControllerAnimated:YES completion:nil];
}
```

Reviewers: ajsecord, featherless, iangordon, O1 Material components iOS, randallli

Reviewed By: ajsecord, featherless, iangordon

Subscribers: randallli, iangordon, featherless, ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1465

* Add MDCFeatureHighlightViewController

* Add Feature Highlight typical use

* Get Feature Highlight buildable

* Copy functionality over from prototype

* Accept/Reject highlight with animation

* Rotation

* Tap anywhere in the feature highlight typical use case demo to move the button

* Align highlight center and highlight point

* Layout text correctly

* Use sample text

* Use animated transitioning delegate for presentation and dismissal animations

* Clean up presentation + dismissal animation code

* Move intructional text behind button

* Limit width of text in feature highlight

* Layout text relative to center when noncentered

* Fix rotation

* First pass at feature highlight color example

* Properly map the inner and outer colors to the view

* Use correct license header

* Automatically choose text color based on outer highlight color

* Clean up color usage

* wrap long lines

* Clean up title positioning

* Clean up radius calculation

* Constize values

* Add feature highlight nav bar example

* Move examples up a directory

* Remove nav bar example

* Improve outer highlight color docs and implementation

* Add TODO: Mask the labels during the presentation and dismissal animations.

* Clean up feature highlight view

* Clean up feature highlight examples

* Layout feature highlight labels with support for RTL

* Code review improvements

* Clean up feature highlight samples

* Feature Highlight readme

* Update Podfile.lock for Feature Highlight

* Feature highlight readme improvements
2016-10-28 10:44:31 -04:00
Adrian Secord
d430d37627 Fix CocoaPods tag reference. (#800)
The old reference referred to tags with the form "16.0.0", but we use "v16.0.0".
2016-10-27 16:33:08 -04:00
Justin Shephard
7a1d479664 Merge branch 'develop' of https://github.com/google/material-components-ios into develop 2016-10-27 14:04:29 -04:00
Will Larche
159768daf6 [CocoaPods] Changing pod specs to use 'resources' key instead of 'resource_bundle' key which was being slightly misused and preventing builds in Xcode 8.1. (#807) 2016-10-27 13:30:25 -04:00
Justin Shephard
8ec86acf43 Bumped version number to 16.1.0. 2016-10-26 15:35:01 -04:00
Justin Shephard
e1efdeaaf1 Bumped version number to 16.0.0. 2016-10-21 11:48:28 -04:00
Adrian Secord
ece361d11e Bumped version number to 15.2.0. 2016-10-12 15:24:45 -04:00
Adrian Secord
c6c3d4414d Merge branch 'release-candidate' 2016-10-10 15:29:32 -04:00
Adrian Secord
717d3a4bf8 Bumped version number to 15.1.0. 2016-10-07 11:16:18 -04:00
Adrian Secord
fad8519b6a [Palettes] Generate palettes to match a target color (#729) 2016-10-06 18:24:49 -04:00
Adrian Secord
e7b88d30c2 Revert "Initial implementation of MDCTabBar and private MDCItemBar (#711)" (#718)
This reverts commit d23eb1b7a10c14304f0e38b1066b585d807c68c3.
2016-10-04 14:18:49 -04:00
Brian Moore
d23eb1b7a1 Initial implementation of MDCTabBar and private MDCItemBar (#711)
* Add initial headers for MDC*Bar

* Initial chunk of work

* It works…ish

* Update demo images and update style with appearance

* Update Podfile.lock

* Merge

* Merge

* Revert bottom bar for now

* Update description

* Formatting and cleanup

* Manual revert of mistaken changes

* Manual revert of mistaken changes

* Manual revert of mistaken changes

* Update with consistent terminology

* Update constant names

* Update localizable strings

* More naming updates

* Rename TabBar to Tabs, move ItemBar into Tabs/private

* Rename string keys

* Rename string files from ItemBar to Tabs

* Rename string keys header

* Update podspec and move bundle

* Reset Podfile.lock in preparation for re-updating

* Clean update to Podfile.lock, adding MaterialTabs

* Update import paths

* Move CatalogByConvention method to end of file

* Add copyright notice on all h/m files

* Add safe fallbacks for switches

* Use conventional common init method name

* Podfile.lock checksum update
2016-10-04 12:29:16 -04:00
Adrian Secord
3118c3740d Bumped version number to 15.0.0. 2016-09-28 13:38:42 -04:00
Adrian Secord
926f7b4be0 Bumped version number to 14.0.0. 2016-09-22 12:02:50 -04:00
Justin Shephard
eb40e5e56f MDC_#67 - Updated accessibility for titleColor on MDCButton.m
Summary: Updated implementation of titleColor change on MDCButton.m to include MDC accessibility classes and method calls.

Reviewers: randallli, O1 Material components iOS

Reviewed By: randallli, O1 Material components iOS

Subscribers: ajsecord, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1634
2016-09-19 13:44:30 -04:00
randallli
08c09131ea Bumped version number to 13.4.0. 2016-09-13 16:58:52 -04:00
randallli
6f9e16e285 Bumped version number to 13.3.0. 2016-09-07 18:15:27 -04:00
Adrian Secord
5e249b7b67 Bumped version number to 13.2.1. 2016-09-02 13:25:53 -04:00
Ian Gordon
c9b8065f5b Bumped version number to 13.2.0. 2016-08-25 13:46:00 -04:00
Ian Gordon
110e48a300 Bumped version number to 13.1.1. 2016-08-22 14:38:51 -04:00
Ian Gordon
e3a0d41a4b Fixes from internal client testing.
Test Plan:
Local client builds as expected.
Internal text clients build as expected.

Reviewers: O1 Material components iOS, ajsecord

Reviewed By: O1 Material components iOS, ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1487
2016-08-18 10:59:17 -04:00
Ian Gordon
40e0e1126a Bumped version number to 13.1.0. 2016-08-17 16:26:35 -04:00
Adrian Secord
882e9d5603 Merge branch 'release-candidate' 2016-08-12 17:42:37 -04:00
Ian Gordon
8ab45d01b3 Add RTL support to Switch
Summary: If we are in RTL mode, set the Switch's transform to flip.

Test Plan:
Verified Catalog-Switch-MDCSwitchandUISwitch
iPhone 6 Sim - iOS 8
iPhone 6 Sim - iOS 9
iPhone 5 - iOS 8
iPhone 6 - iOS 9

Reviewers: ajsecord, O1 Material components iOS

Reviewed By: ajsecord, O1 Material components iOS

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1462
2016-08-12 15:24:21 -04:00
Ian Gordon
457ea7c3cb Add RTL to activity indicator.
Summary:
Include MaterialRTL as a dependency.
Explicitly note that the view is spatial and shouldn't be mirrored.

Test Plan:
Ran catalog in LTR mode, noted correct orientation.
Ran catalog in RTL mode, noted correct orientation.

Reviewers: junius, O1 Material components iOS, ajsecord

Reviewed By: O1 Material components iOS, ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1461
2016-08-12 11:57:13 -04:00
Junius Gunaratne
22cfb756fa [AnimationTiming] Add animation timing curves and examples, update use of animation timing in snackbar
Reviewers: O1 Material components iOS, ajsecord

Reviewed By: O1 Material components iOS, ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1455
2016-08-11 15:59:49 -04:00
Adrian Secord
420f67d04f Bumped version number to 13.0.2. 2016-08-10 16:54:26 -04:00
Adrian Secord
f1b4a2a48e [FlexibleHeader] Use MDFTextAccessibility for determining whether or not to use the light status bar.
Summary:
Fixes incorrect luminance calculation used to determine when to use the light vs dark status bar text. This seems to be the only occurrence.

Introduces dependency on [MDFTextAccessibility](https://github.com/material-foundation/material-text-accessibility-ios).

Fixes https://github.com/google/material-components-ios/issues/659.

Reviewers: O1 Material components iOS, randallli

Reviewed By: O1 Material components iOS, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1393
2016-08-03 10:19:29 -07:00
Adrian Secord
64009d0642 Bumped version number to 13.0.1. 2016-07-28 17:37:58 -04:00
Sam Morrison
3f1ebfc632 Bumped version number to 13.0.0. 2016-07-27 12:08:35 -04:00
Ian Gordon
b2454bec5d At iOS version to each component.
Test Plan:
./scripts/release/manage_pods.py update
Worked as expected.

Reviewers: randallli, O1 Material components iOS

Reviewed By: randallli, O1 Material components iOS

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1285
2016-07-20 17:46:53 -04:00
Ian Gordon
af511545f8 Add missing dependency 2016-07-20 11:29:19 -04:00
Ian Gordon
5f4a31dcbb Bumped version number to 12.2.0. 2016-07-20 11:04:20 -04:00
Ian Gordon
c6a651fc88 Landed initial import 2016-07-14 14:33:43 -04:00
Ian Gordon
3742dd4849 [Dialogs] Initial Import
Summary:
Initial import of our modal presentation controller and transition controller.

The interfaces have been previously reviewed in our API Review process.

This will land on the branch feature-dialog.

Test Plan: Example added to catalog.

Reviewers: randallli, cjcox, ajsecord, O1 Material components iOS

Reviewed By: ajsecord, O1 Material components iOS

Subscribers: samnm, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1066
2016-07-14 13:57:15 -04:00
Justin Shephard
5efebd3703 Bumped version number to 12.1.0. 2016-07-13 14:54:19 -04:00
Louis Romero
a806413bd6 [ProgressView] Add the ProgressView component.
Summary:
Adds a ProgressView component. It displays determinate progress linearly.

Note: the README.md and API has previously been reviewed. Feel free to leave comments, but you can also skip for this review and focus on the implementation.

Test Plan: - Open Catalog > Progress View and verify looks.

Reviewers: randallli, junius, iangordon, O1 Material components iOS, ajsecord

Reviewed By: O1 Material components iOS, ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1103
2016-07-09 00:28:19 +02:00
Ian Gordon
3f6d576089 Bumped version number to 12.0.1. 2016-07-06 11:33:15 -04:00
Adrian Secord
a045b07bcc Fix internal builds.
Summary:
- Adds missing dependencies to the podspec.
- Fixes private import paths.
- Adds dummy variable to "empty" static library targets to suppress build warnings.
- Suppresses string concatenation warnings in valid contexts.
- Lint changes.

Reviewers: iangordon, O1 Material components iOS

Reviewed By: iangordon, O1 Material components iOS

Subscribers: junius

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1074
2016-06-30 13:19:16 -04:00