87 Commits

Author SHA1 Message Date
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
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
Adrian Secord
d4e0868c93 [Podspec] Added missing Snackbar dependency on private/KeyboardWatcher.
Reviewers: O1 Material components iOS, junius

Reviewed By: O1 Material components iOS, junius

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1072
2016-06-30 11:13:58 -04:00
Adrian Secord
4421270e12 Updated Podfile.locks with OverlayWindow component and corrected CBC version.
Reviewers: randallli, O1 Material components iOS

Reviewed By: randallli, O1 Material components iOS

Subscribers: featherless, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1069
2016-06-29 17:20:32 -04:00
Adrian Secord
f97a9288a9 Bumped version number to 12.0.0. 2016-06-29 16:05:01 -04:00
Junius Gunaratne
e8afa47fa6 [Snackbar] Adding Snackbar component and related Overlay Window
Summary:
Adds Snackbar and related Overlay Window component as well as demos for MDCCatalog. The Overlay component, of which Snackbar depends, is private for the time being.

  - Removed dependencies on internal core.
  - Removed i18n string translation, TODO added to replace.
  - Removed RTL, waiting on https://github.com/google/material-components-ios/issues/579
  - Animation curve constants moved inline.
  - Fixed styling to be the material standard instead of configurable.

Reviewers: ajsecord, O1 Material components iOS

Reviewed By: ajsecord, O1 Material components iOS

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1036
2016-06-29 10:44:06 -04:00
Louis Romero
361699fb6c [CollectionCells] Support RTL
Summary:
Cells are now laid out accordingly to their layoutDirection property.
The default value matches the common support across SDKs and OS at runtime.

Closes https://github.com/google/material-components-ios/issues/567

Test Plan:
Set the device or simulator to use an RTL language.
On iOS 9, the UI must be flipped.
On prior OS, the UI is not flipped.

Reviewers: cjcox, iangordon, O1 Material components iOS

Reviewed By: cjcox, iangordon, O1 Material components iOS

Subscribers: brianjmoore

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D962
2016-06-28 17:56:38 +02:00
Louis Romero
7550398b6c Port the rendering mode when flipping on iOS 8 and below.
Summary:
The rendering mode is lost when an image is flipped with
-[UIImage imageWithCGImage:scale:orientation:].
When that would happen, actually render the image with it's orientation and
scale, port the template mode, and return that copy.

Closes https://github.com/google/material-components-ios/issues/592.

Test Plan:
Check that back arrow in Catalog is correctly flipped relative to the layout
direction.

Reviewers: randallli, O1 Material components iOS, iangordon

Reviewed By: randallli, O1 Material components iOS, iangordon

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1034
2016-06-28 17:09:25 +02:00
Louis Romero
f728015066 [RTL] Add MaterialRTL private component
Summary:
This commit adds a private component that contains helpers to perform layouts
that flip in RTL Layout configurations.

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

Reviewed By: iangordon, brianjmoore, randallli, O1 Material components iOS, ajsecord

Subscribers: brianjmoore, randallli, ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D980
2016-06-23 22:25:02 +02:00
Ian Gordon
7aa0a46faa Bumped version number to 11.0.1. 2016-06-23 14:27:58 -04:00
Adrian Secord
fe39e7e530 Bumped version number to 11.0.0. 2016-06-15 15:29:13 -04:00
randallli
73cea102fd Bumped version number to 10.1.2. 2016-06-09 11:10:49 -04:00
randallli
32934941b4 Bumped version number to 10.1.0. 2016-06-08 11:57:34 -04:00
Junius Gunaratne
d589b27330 [ActivityIndicator] Adding activity indicator component and demo
Reviewers: O1 Material components iOS, ajsecord

Reviewed By: O1 Material components iOS, ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D936
2016-06-06 14:01:13 -04:00
randallli
1c0bfe8cea [Collections] Fixed podspec to include more frameworks needed by the component
Reviewers: O1 Material components iOS, ajsecord

Reviewed By: O1 Material components iOS, ajsecord

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D929
2016-06-02 14:10:20 -04:00
Adrian Secord
4afea7db13 Release candidate.
Summary:
Checklist:

- [ ] Ran `arc unit --everything`.
- [ ] Ran `scripts/build_all_pod_projects`.
- [ ] Ran `scripts/release/api_diff` and pasted the results into CHANGELOG.md.
- [ ] Ran `scripts/release/changes` and pasted the results into CHANGELOG.md.
- [ ] Visually inspected the API diff to ensure it accurately reflects the release's changes.
- [ ] Ran `scripts/release/diff components/*/src/` and visually inspected the changes.
- [ ] Ran `scripts/release/bump` with the new version number.
- [ ] Updated CHANGELOG.md's latest section header to match the release's version number.
- [ ] I did not `arc land` this change because I followed the [releasing guide](https://github.com/google/material-components-ios/blob/develop/contributing/contributor_guides/releasing.md) and did the following:
- [ ] Ran `scripts/release/merge`
- [ ] Push to master
- [ ] Push to develop
- [ ] Manually marked this diff closed in the web ui

Reviewers: O1 Material components iOS!

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D925
2016-06-01 14:55:25 -04:00
Ian Gordon
13c8cf72b8 Add support for Cocoapods 1.0.0.
Summary:
DO NOT LAND until after we have finalized our May 25 2016 release.

Cocoapods 1.0.0 was used to generate Pod* and xcode* files.

These changes are NOT compatible with 0.39.0.
These changes may NOT be compatible with version of Xcode 7.2 and earlier.

pod lib lint generates a list of issues that should be addressed.

--OLD INFO--

Cocoapods 0.39 was used to generate the Podfile.locks.

MaterialComponents - Build properly
MaterialUnitTests - Test properly
MaterialCatalog - Fails to Build

The errors (cut after the first 20) are similar to:
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/MaterialComponentsCatalog-umbrella.h"
        ^
/Users/iangordon/projects/material-components-ios/catalog/Pods/Target Support Files/MaterialComponentsCatalog/MaterialComponentsCatalog-umbrella.h:10:9: note: in file included from /Users/iangordon/projects/material-components-ios/catalog/Pods/Target Support Files/MaterialComponentsCatalog/MaterialComponentsCatalog-umbrella.h:10:
#import "CollectionCellsLayoutExample.h"
....

Reviewers: featherless, randallli, ajsecord, #material_components_ios

Reviewed By: featherless, randallli, ajsecord, #material_components_ios

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D873
2016-05-31 11:17:53 -04:00
Ian Gordon
9828352d90 Bumped version number to 9.0.0. 2016-05-25 14:08:19 -04:00
randallli
b2d61461b3 Bumped version number to 8.0.0. 2016-05-18 16:45:45 -04:00
Ian Gordon
65f43009e0 Release candidate.
Summary:
Checklist:

- [ ] Ran `arc unit --everything`.
- [ ] Ran `scripts/build_all_pod_projects`.
- [ ] Ran `scripts/release/api_diff` and pasted the results into CHANGELOG.md.
- [ ] Ran `scripts/release/changes` and pasted the results into CHANGELOG.md.
- [ ] Visually inspected the API diff to ensure it accurately reflects the release's changes.
- [ ] Ran `scripts/release/diff components/*/src/` and visually inspected the changes.
- [ ] Ran `scripts/release/bump` with the new version number.
- [ ] Updated CHANGELOG.md's latest section header to match the release's version number.

Reviewers: ajsecord, #mdc_ios_owners

Reviewed By: ajsecord, #mdc_ios_owners

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D860
2016-05-11 15:57:52 -04:00
Adrian Secord
10cfe433b0 [Palettes] Final review to land in develop.
Summary:
Merging feature-palettes into develop. This is the combination of the following reviews with no further changes:

http://codereview.cc/D818
http://codereview.cc/D827
http://codereview.cc/D842

Reviewers: #mdc_ios_owners, featherless

Reviewed By: #mdc_ios_owners, featherless

Subscribers: larche, lpromero, cjcox, featherless, mrefaat, jsachse

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D852
2016-05-10 17:27:19 -04:00
Chris Cox
7e18b0f462 Release candidate.
Summary:
Checklist:

- [ ] Ran `arc unit --everything`.
- [ ] Ran `scripts/build_all_pod_projects`.
- [ ] Ran `scripts/release/api_diff` and pasted the results into CHANGELOG.md.
- [ ] Ran `scripts/release/changes` and pasted the results into CHANGELOG.md.
- [ ] Visually inspected the API diff to ensure it accurately reflects the release's changes.
- [ ] Ran `scripts/release/diff components/*/src/` and visually inspected the changes.
- [ ] Ran `scripts/release/bump` with the new version number.
- [ ] Updated CHANGELOG.md's latest section header to match the release's version number.

Reviewers: #mdc_ios_owners

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D825
2016-05-04 16:05:37 -04:00
Adrian Secord
aad2d08051 Release candidate.
Summary:
Checklist:

- [ ] Ran `arc unit --everything`.
- [ ] Ran `scripts/build_all_pod_projects`.
- [ ] Ran `scripts/release/api_diff` and pasted the results into CHANGELOG.md.
- [ ] Ran `scripts/release/changes` and pasted the results into CHANGELOG.md.
- [ ] Visually inspected the API diff to ensure it accurately reflects the release's changes.
- [ ] Ran `scripts/release/diff components/*/src/` and visually inspected the changes.
- [ ] Ran `scripts/release/bump` with the new version number.
- [ ] Updated CHANGELOG.md's latest section header to match the release's version number.

Reviewers: #mdc_ios_owners

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D791
2016-04-28 13:39:56 -04:00
Ian Gordon
54c5ad7bb5 Release candidate.
Summary:
Checklist:

- [ ] Ran `arc unit --everything`.
- [ ] Ran `scripts/build_all_pod_projects`.
- [ ] Ran `scripts/release/api_diff` and pasted the results into CHANGELOG.md.
- [ ] Ran `scripts/release/changes` and pasted the results into CHANGELOG.md.
- [ ] Visually inspected the API diff to ensure it accurately reflects the release's changes.
- [ ] Ran `scripts/release/diff components/*/src/` and visually inspected the changes.
- [ ] Ran `scripts/release/bump` with the new version number.
- [ ] Updated CHANGELOG.md's latest section header to match the release's version number.

Reviewers: #mdc_ios_owners

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D767
2016-04-26 16:41:02 -04:00
Chris Cox
7598638db3 [CollectionCells] Updates cells to depend on MDCIcons for editing and accessory icons.
Summary:
- Updates podspec to use these new dependancies.
- Removes private cell resource class.

Reviewers: cjcox, #mdc_ios_owners, featherless

Reviewed By: #mdc_ios_owners, featherless

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D751
2016-04-25 12:38:09 -04:00
Chris Cox
f15f6d5db6 [Collections] Merge Collections, CollectionCells, and CollectionLayoutAttributes components.
Summary: Adds Collections, CollectionCells, and CollectionLayoutAttributes components

Reviewers: ajsecord, featherless, randallli, #mdc_ios_owners, iangordon

Reviewed By: randallli, #mdc_ios_owners, iangordon

Subscribers: lpromero, featherless, randallli, iangordon, ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D725
2016-04-22 12:04:14 -04:00
Chris Cox
8f1b54a64d [ScrollViewDelegateMultiplexer] Removes component. Now moved to https://github.com/google/GOSScrollViewDelegateMultiplexer.
Reviewers: #mdc_ios_owners, junius

Reviewed By: #mdc_ios_owners, junius

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D666
2016-04-19 15:50:59 -04:00
randallli
f9bbc7eed1 Bumped version number to . 2016-04-14 14:53:32 -04:00
Junius Gunaratne
bd8f0a3ae8 Bumped version number to 4.0.0 2016-04-13 13:53:10 -04:00
randallli
cbbcb7271c [Typography]! Finished splitting out RobotoFontLoader and FontDiskLoader from Typography
Summary:
Breaking changes:
Typography Component will no longer depends on Roboto Font Loader Component.

Instructions on how to fix:
Depend on Roboto Font Loader directly if you need to use it.

Reviewers: ajsecord, #mdc_ios_owners

Reviewed By: ajsecord, #mdc_ios_owners

Subscribers: lpromero, featherless

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D459
2016-04-08 16:27:07 -04:00
Jeff Verkoeyen
5cbe9d48c6 Bumped version number to 3.1.0. 2016-04-07 11:56:40 -04:00
Ian Gordon
07f4415a6a Update Podfiles 2016-04-04 14:41:13 -04:00
randallli
3735825360 [Typography] Fixed warnings in unit tests
Summary: Also added comments to todo

Reviewers: featherless, #mdc_ios_owners, ajsecord

Reviewed By: #mdc_ios_owners, ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D429
2016-03-31 11:24:56 -04:00
Ian Gordon
d4b77bbe47 Bump version number to 3.0.0 2016-03-30 18:57:43 -04:00
Jeff Verkoeyen
c69dc8b2e3 [ButtonBar] Add Buttons dependency and remove Buttons dependency from AppBar.
Reviewers: ajsecord, #mdc_ios_owners

Reviewed By: ajsecord, #mdc_ios_owners

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D423
2016-03-30 16:16:53 -04:00
Jeff Verkoeyen
f6bbf8ac35 [ButtonBar] Deprecating all ButtonBar delegate-related APIs.
Summary:
As part of this work:

- Moved MDCAppBarButtonBarBuilder from AppBar/private to ButtonBar/private.
- Deprecated the related Navigation Bar APIs.
- Made MDCAppBarButtonBarBuilder the default delegate.

Closes https://github.com/google/material-components-ios/issues/255.

Reviewers: #mdc_ios_owners, ajsecord

Reviewed By: #mdc_ios_owners, ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D415
2016-03-30 10:52:07 -04:00
randallli
d612077b72 Merge branch 'release-2.2.0' into develop
# Conflicts:
#	catalog/Podfile.lock
#	components/FlexibleHeader/src/MDCFlexibleHeaderView.m
#	demos/Pesto/Podfile.lock
#	demos/Shrine/Podfile.lock
2016-03-28 16:18:19 -04:00
Ian Gordon
b7f6dc35b9 [ThumbTrack] Add Ink as a dependency
Summary: Update the Podspec and related Podfile.lock files.

Reviewers: featherless, #mdc_ios_owners, ajsecord

Reviewed By: #mdc_ios_owners, ajsecord

Subscribers: featherless

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D362
2016-03-25 17:37:41 -04:00