954 Commits

Author SHA1 Message Date
Adrian Secord
94b684951b Bumped version to 31.0.1. 2017-08-11 12:13:05 -04:00
Adrian Secord
62aaea575e Bumped version number to 31.0.0. 2017-08-09 13:17:24 -04:00
Sam Morrison
ef2cc03581 Bumped version number to 30.0.0. 2017-08-02 14:52:58 -07:00
Adrian Secord
1451327bfb Merge branch 'release-candidate' 2017-07-24 17:11:48 -04:00
Adrian Secord
0414a69270 Bumped version number to 29.0.0. 2017-07-24 17:05:49 -04:00
featherless
61acb1cbb0 Add Masked Transition component. (#1513)
* Add Masked Transition component.

This component makes it possible to present a view controller from a source view, such as a floating action button, using a masked reveal transition.

This component depends on Material Motion's Transitioning, MotionInterchange, and MotionAnimator libraries.

The component itself is a Transition instance and can be used like this:

    vc.transitionController.transition = MDCMaskedTransition(sourceView: fab)
    present(vc, animated: true)

The component's motion is defined in its motion spec and was extracted directly from the Material motion spec.

The transition supports the following contexts:

- Fullscreen
- Bottom sheet
- Floating card
- Bottom toolbar

* Code review feedback.

* Add README.md.

* Copy the frame calculation block.

* Reword the overview to reduce implementation details.

* Remove scrim sharing and document full screen behavior.

* Audit rect math and remove example debug logs.

* Update to use hypot.

* Remove presentation controller storage.

* Update podspec with new MotionTransitioning dependency.

* Fix autoresizing bugs and update header import names.

* Fix floating point conversion warning.

* Use bottomCard spec for all positions.
2017-07-20 16:38:17 -04:00
Junius Gunaratne
c3d24b7184 [TextField] Add color themer for text fields (#1666)
* Add color themer for text fields

* Add text field to color themer demo
2017-07-20 15:41:36 -04:00
Sam Morrison
11108492a9 Bumped version number to 28.0.0. 2017-07-19 17:50:02 -04:00
Sam Morrison
f466588e4f [Feature Highlight] Swipe to dismiss (#1636)
* Add new Dismiss gesture recognizer to allow swiping away feature highlights

* Tap outside the feature highlight to dismiss

* Formatting and cleanup

* Fix unused var warnings

* Correctly cancel animation when gesture recognizer gets cancelled

* Fade out text when starting dismiss gesture

* Formatting

* Ignore multiple touches

* Remove debug state logging

* Fade text in/out during dismissal gesture

* Address comments

* Prevent floating point conversion warnings

* MDCPow / MDCSqrt

* Add accessibilityPerformEscape to feature highlight
2017-07-17 17:59:03 -04:00
Sam Morrison
434c44fef0 Merge branch 'release-candidate' 2017-07-14 12:04:46 -04:00
Sarah Read
1644939299 [Dialogs] MDCAlertController should announce 'alert' in VO (#1639)
* MDCAlertController should announce 'alert' in VO

* Fix typos
2017-07-13 12:00:02 -04:00
Sam Morrison
a88b98e3c6 Bumped version number to 27.0.0. 2017-07-12 16:53:06 -04:00
Sam Morrison
6fc60100db Fix pod dependencies 2017-06-29 15:50:57 -04:00
Sam Morrison
aa5e0fd601 Bumped version number to 26.0.0. 2017-06-29 15:05:08 -04:00
Randall Li
70cfb2bc6e [Buttons] Button title color accessibility mutator (#1567)
* Fixed tests to exclude disabled highlighted state.

* delete podfile

* covert to static method instead of instance method.

* class and method comments

* corrected bit mask checks in creating human readable control state

* removed spurious .
2017-06-27 16:29:40 -04:00
Randall Li
6a52d8c021 Merge branch 'release-candidate'
# Conflicts:
#	catalog/MDCCatalog.xcodeproj/project.pbxproj
#	demos/Bare/Podfile.lock
#	demos/Pesto/Podfile.lock
#	demos/Shrine/Podfile.lock
#	demos/ZShadow/Podfile.lock
2017-06-27 09:34:02 -04:00
randallli
21a9fbad83 Bumped version number to 25.1.1. 2017-06-26 12:26:56 -04:00
Justin Shephard
f0bc06ef56 Merge branch 'release-candidate' 2017-06-22 13:52:16 -04:00
Sam Morrison
681b2de2fd [Bottom sheet] component (#1297)
* First bottom sheet commit

* Add empty files of needed classes

* Do animation using presentation controller and transitioning delegate

* Implement bottom sheet transition using just a UIPresentationController

* Tap background to dismiss

* Clean up and document bottom sheet interface

* Minor cleanup

* Fix usePreferredHeight

* Toggle usePreferredHeight

* Let UIPresentationController layout sheet view

* Expand bottom sheet delegate api

* Remove automaticallyDismissBottomSheet and usePreferredHeight

* Remove shouldDismiss

* Delegate method docs

* Allow custom bottom sheet widths

* Animate sheet view to new frame when rotating bottom sheet

* Fix sheet view starting in bad location

* Specify float for background color

* Clean up bottom sheet presentation controller

* Minor cleanup

* Copy cl/148818444

* GOO -> MDC

* s/draging/dragging/

* Use init instead of initWithCoder

* Bottom sheet example description

* Big improvements to bottom sheet examples

* MDCBottomSheetTransitionController

* Wrap up everything in MDCBottomSheetViewController

* Move all examples to MDCBottomSheetViewController

* Move supplemental code to BottomSheetSupplemental

* bottomSheetPresentationControllerDidDismissBottomSheet

* Check delegate implements methods before calling

* MDCBottomSheetViewController -> MDCBottomSheetController

* Add comments for MDCBottomSheetController

* Use MDCMath

* Change style of preferredContentSize setter

* Support preferredContentSize.height

* Add an example layed out using Autolayout

* More correctly set frame for non scrolling content

* Minor improvements to examples

* Small fixes for examples

* Use umbrella import headers

* Show custom preferredContentSize width in example

* MDCBottomSheetTransitionController now vends a presentation controller

* Expose bottom sheet presentation controller on UIViewController

* Final review comments
2017-06-21 15:51:35 -04:00
Justin Shephard
502cdb84b1 Bumped version number to 25.1.0. 2017-06-21 15:04:56 -04:00
Junius Gunaratne
cda52f4e6b [Themers] Add app bar color themer (#1503)
* Add app bar color themer.

* Add dependency for the component it is theming

* Color flexible header instead of nav bar.
2017-06-21 13:19:22 -04:00
Justin Shephard
bff82748d3 Bumped version number to 25.0.1. 2017-06-20 14:53:47 -04:00
Justin Shephard
b48eb871b8 Bumped version number to 25.0.0. 2017-06-15 15:27:18 -04:00
Adrian Secord
4c3e5a6fed Bumped version number to 24.0.2. 2017-06-13 13:08:09 -04:00
Adrian Secord
363f0e92bb Added deps from ColorThemers to Component subspecs. 2017-06-13 11:17:09 -04:00
Randall Li
b1f1afdf8f Bumped version number to 24.0.0. 2017-06-07 14:54:45 -04:00
Will Larche
acf47c10d1 [TextFields] Single line text fields (#1318)
* [TextFiels] Left View.

* [TextFields] Tile art.

* [TextFields] Left view works with floating.

* [Catalog] Correcting extension identifier.

* [TextFields] Formatting and corrections because of static analyzer.

* [TextFields] Fixes unit tests for change in property name.

* [TextFields] Precision warning correction.

* [TextFields] Examples for .rightView

* [TextFields] Left / right existence tests.

* [TextFields] Truncation for rightView and leftView.

* [TextFields] Placeholder positioning clean up.

* [TextFields] Full width padding.

* [TextFields] Initializer clean up.

* [TextFields] Bounds layout correction.

* [TextFields] Cleanup.

* [TextFields] Organizing constraints.

* [TextFields] Conforming better to auto layout lifecycle.

* [TextFields] Cleaning up colors.

* [TextFields] Correction to auto layout problems with textViews.

* [TextFields] NSCoder and NSCopying support begun.

* [TextFields] NSCoding and NSCopying support. API documentation and cleanup. Internal alphabetizing.

* [TextFields] Spacing correction.

* [TextFields] TextView test correction.

* [TextFields] Dynamic Type support.

* [TextFields] Dynamic Type in example.

* [TextFields] Correction for broken left view.

* [TextFields] Beginning readme.

* [TextFields] Readme work.

* [TextFields] Markdown correction.

* [TextFields] Markdown correction.

* [TextFields] Objective C example and renaming to plural.

* [TextFields] First snippet.

* [TextFields] Updated readme with snippets.

* [TextFields] Objc example.

* [TextFields] Swift example cleanup.

* [TextFields] Added text view snippet.

* [TextFields] Readme clarification.

* [TextFields] Expanding positioning delegate scope.

* [TextFields] Making text container inset the default API for controlling positioning.

* [TextFields] Formatting.

* [TextField] Moving underline to auto layout.

* [TextFields] Underline content hugging.

* [TextFields] Added unstyled text view to the examples.

* [TextField] Added notification observation for text views.

* [TextFields] Vastly improved spacing.

* [TextFields] Improving layout.

* [TextFields] Height correction.

* [TextFields] Improvements to height calculations.

* [TextFields] Preparations for .leftView and .rightView calculations.

* [TextFields] Moving line height calculations to rounded instead of veiled.

* [TextFields] Unstyled textfield done.

* [TextFields] Full width char count layout correction.

* [TextFields] Example correction.

* [TextFields] Removing TODOs.

* [TextFields] Getting rid of todos (colors.)

* [TextFields] Left and right view position correction.

* [TextFields] Editing rect corrections.

* [TextFields] Associate view alignment

* [TextFields] Removing duplicated work.

* [TextFields] Cleaning up positioning delegate.

* [TextFields] Improving layout.

* [TextFields] Editing for clarity.

* [TextField] Precision correction.

* [TextFields] Height corrections for .floatingPlaceholder

* [TextFields] Improved .floatingPlaceholder height math

* [TextFields] Removing Debugging consoles.

* [TextFields] Custom font improved support and “remembering” in controller.

* [TextFields] Cleaning up KVO and adjusting for bigger fonts.

* [TextFields] TextView NSCoding correction.

* [TextFields] Format all.

* [TextFields] Added comments.

* [TextFields] Moved code to match pattern of organization.

* [TextFields] Properties organization.

* [TextFields] Organization.

* [TextFields] Dealing with notifications and setting textInput.

* [TextFields] Reduced duplicated math. Moved to text insets as source of truth.

* [TextFields] Comments.

* [TextFields] Formatting.

* [TextFields] Comments correction.

* [TextFields] Full width spacing for textRect.

* [TextFields] Full width spacing for editingRect.

* [TextFields] Necessary for KVO.

* [TextFields] Clear button Y correction.

* [TextFields] Dealing with keyboard in example.

* [TextFields] whitespace correction.

* [TextField] Text views examples simple.

* [TextFields] TextView hugging increase.

* [TextFields] Improved examples.

* [TextFields] Improving examples for text views.

* [TextFieds] text views example improvement

* [TextFields] Temporarily removed text views and expanded example for text fields.

* [TextFields] Objc example work.

* [TextFields] Comment improvement.

* [TextFields] Expanding Objc Example.

* [TextFields] Shaving tests for single line only.

* [TextFields] Corrected character count not coloring underline.

* [TextFields] Character count examples and a fix.

* [TextFields] Text field underline space correction.

* [TextFields] Removing debug code.

* [TextFields] Character count logic correction.

* [TextFields] Beginning RTL calculations for textRects

* [TextFields] More RTL spacing work.

* [TextFields] Example improvement.

* [TextFields] Correction for clear button.

* [TextFields] Improved RTL.

* [TextFields] Storyboards example and fix for preset placeholder.

* [TextFields] IB example cleanup.

* [TextFields] IB example improvement.

* [TextField] Swift example has controls at the bottom

* [TextField] Improved voiceover support.

* [TextFields] Improved voice over support.

* [TextFields] Formatting.

* [TextFields] Improving voice over support.

* [TextFields] VoiceOver support for errors.

* [TextFields] VoiceOver detail.

* [TextFields] Formatting and details.

* [TextFields] Better storyboard support.

* Design

* [TextFields] Podfile.lock

* [Typography] Undoing formatting.

* [FeatureHighlight] Undoing formatting.

* [TextFields] Undoing file change.

* [TextFields] Adding missing EOL whitespace.

* [FeatureHightlight] Formatting.

* [Typography] Formatting correction.

* [TextFields] Feedback from PR.

* [TextFields] Removing code because PR.

* [TextFields] Renaming because PR.

* [TextFields] Replaced theme with compliant.

* [TextFields] Changes per PR.

* [TextFields] Renaming things for clarity.

* [TextFields] Removing unused protocols.

* [TextFields] Clear button size logic.

* [TextFields] Some corrections dealing with serialization.

* [TextFields] Example correction and testing code.

* [TextFields] Support for iOS 10’s adjustsFontForContentSizeCategory

* [TextFields] Removing debug comments.

* [TextFields] Better handling of custom fonts and dynamic type.

* [TextFields] Better organization of new methods.

* [TextFields] Removing unneeded code.

* [TextFields] Improved floating placeholder calculations.

* [TextFields] New clear button implementation.

* [TextFields] Clear button details.

* [TextFields] Formatting.

* [TextFields] A little safety.

* [TextFields] Clear Button target action.

* [TextFields] Cleanup.

* [TextFields] CGFloat conversion.

* [TextFields] Removing unused method.

* [TextFields] Minor corrections to clear button.

* [TextFields] Added MDCMath.

* [TextFields] NSNotificationCenter cleanup.

* [TextFields] Cleaning up logic.

* [TextFields] Clear button bug fix.

* [TextFields] Formatting.

* [TextFields] Dynamic type correction.

* [TextFields] Improvement to example.

* [TextFields] Placeholder truncation bug fix.

* [TextFields] RTL improvements.

* [TextFields] Examples reorganized.

* [TextFields] Better typical use example (form).

* [TextFields] Better support for changing presentation styles while editing.

* [Catalog] Reverting changes to project and info.plist.

* [TextFields] Style correction.

* [TextFields] New example has validation.

* [TextFields] Correcting property declaration.

* [TextFields] Simplifying iOS version check.

* [TextField] Adding faux-value semantics to controller properties.

* [TextFields] Added MDCMath.

* [TextFields] Removing development team.

* [TextFields] Removing debug identifier.

* [TextFields] Reverting debug change.

* [TextFields] Kitchen sink automatically scrolls with keyboard now.

* [TextFields] Main example doesn’t try to show full width.

* [Pods] Podfile.lock.

* [TextFields] Example improvements.

* [TextFields] Organization in example.

* [TextField] Catalog tile to BnW.

* [TextFields] Cleanup.

* [TextFields] Screenshot

* [Tabs] README correction.

* [TextFields] Example correction.

* [TextFields] - Removed video link in readme

* [TextFields] - Updated image width

* [TextFields] Example cleanup.

* [TextFields] Manual layout example.

* [TextFields] Finishing the renaming of the fundament.

* [TextField] Correcting typo.

* [TextFields] Adding underline as a UIView in API.

* [TextFields] Correcting constraints for floating / default.

* [TextFields] Manual example support for changing presentation improvement.

* [TextFields] Manual layout support.

* [TextFields] Correcting copied properties.

* [TextFields] Comments improvement.

* [TextFields] More validation examples.

* [TextFields] Naming update.

* [TextFields] More tests and corrections of problems discovered during testing.

* [TextFields] Clear button mode in copy.

* [TextField] Attributed setters tests.

* [TextFields] Color test correction.

* [TextField] ErrorColor test.

* [TextFields] Formatting.

* [TextFields] Error color fixes.

* [TextFields] More tests.

* [TextFields] Testing correction.

* [TextFields] Organizing test files.

* [TextField] Test organization.

* [TextField] Additional test.

* [FeatureHighlight] Reverting change.

* [TextFields] Bare pod file update.

* [TextField] Test corrections.

* [TextField] Color has value semantic.

* [TextField] Documentation updates.

* [TextFields] Documentation improvement.

* [TextField] RTL corrections.

* [TextField] RTL and layout corrections.

* [TextFields] Better AutoLayout use.

* [TextFields] Removing debugging logging.

* [TextFields] Exposing underline fully.

* [TextFields] KVO for new underline API.

* [TextFields] Formatting

* [TextFields] Documentation update.

* [TextFields] Comments correction.

* [TextFields] Updating README.

* [TextFields] Standardizing primitive property annotations.

* [TextFields] PR notes.

* [TextFields] Localization todos.

* [TextFields] Const definition corrections.

* [TextFields] Correcting const definitions.

* [TextFields] Using MDCMath.

* [TextFields] Correcting const definition.

* [TextFields] Color value semantics correction.

* [TextFields] Copy update.

* [TextFields] Removing unnecessary code.

* [TextFields] Copy update.

* [TextFields] Underline inherited code correction.

* [TextFields] Switch fix.

* [TextFields] Simplifying some math.

* [TextFields] Simplyfing some logic.

* [TextFields] Improving underline init order.

* [TextField] Undoing formatting changes.

* [TextFields] Adjusting to new Swift color API.

* [TextFields] Re-adding textFields catalog tile.

* [TextField] Refining Swift support choices.

* [TextField] Simplifying swift support.

* [TextFields] Improving Swift support.

* [TextFields] Helper text implementation improvement.

* [TextField] A little CAAnimation safety.

* [TextFields] Removing extra line.

* [TextFields] CATransaction a little better.
2017-06-02 11:56:35 -04:00
Junius Gunaratne
71d441a065 Component themers and usage example for catalog (#1443)
Adding color scheme component themers.
2017-05-30 17:28:03 -04:00
Randall Li
1c7ca93142 ![ColorThemer] Reorganize source to create separate targets for each color themer. (#1466)
* reorganize the color themer classes so that they are separate targets for each mutator.

* moved source files out of MaterialThemes.

* moved theme examples into their main component locations out of themer’s.

* renamed core subspec to 'Component'
2017-05-26 17:17:55 -04:00
randallli
e77d9ef757 Bumped version number to 23.4.1. 2017-05-25 17:18:16 -04:00
Randall Li
797ee38206 Removing reference to non existant bundle. (#1453)
* Update MaterialComponents.podspec

* Removing reference to non existant bundle.
2017-05-25 16:18:03 -04:00
Randall Li
13602dc427 Update MaterialComponents.podspec (#1452) 2017-05-24 17:03:57 -04:00
randallli
e21524bc4f Bumped version number to 23.4.0. 2017-05-24 15:35:15 -04:00
randallli
ad0ed15099 Merge branch 'release-candidate'
# Conflicts:
#	MaterialComponentsUnitTests.podspec
2017-05-22 16:21:34 -04:00
randallli
4fed3cdfc6 Bumped version number to 23.3.0. 2017-05-22 10:33:40 -04:00
Junius Gunaratne
0cb6ce6d5f Adding MDC themes (#1401)
* Adding MDC themes

* Update feature highlight view color properties

* no message

* Remove loadView

* Move set default color to init

* Dedup color setters

* Remove redundant color sets

* Sync with latest commits

* Update theme example title

* Adding alert theming.

* Add feature highlight private changes

* Remove alert example

* Update themer examples

* Add documentation

* Adding docs

* Formatting and comment updates.

* Create examples of changing theme colors.

* Formatting.

* Formatting
2017-05-12 16:38:49 -04:00
randallli
9430ac850f Bumped version number to 23.2.0. 2017-05-11 11:36:36 -04:00
Ian Gordon
5a14163e91 Bumped version number to 23.1.0. 2017-05-08 13:14:00 -04:00
Justin Shephard
00009b2106 [AppBar] Updated accessibility label on back button (#1334)
* [AppBar] Updated accessibility label on back button

* [AppBar] - Localization via internal tools

* [AppBar] Added updates to pod spec
2017-04-21 13:04:16 -04:00
Ian Gordon
706e47eba3 Bumped version number to 23.0.2. 2017-04-20 11:50:05 -04:00
Louis Romero
0dda5bb353 Updates ProgressView to use MDCMath. (#1328)
[ProgressView] Updates ProgressView to use MDCMath.
2017-04-20 11:50:04 -04:00
Will Larche
af70a4040f [Math] New private math component (#1325)
* [Math] New private component.

* [Math] Putting MaterialMath everywhere it could help.
2017-04-20 11:50:03 -04:00
Ian Gordon
46704270b0 Minor Tweaks to address internal feedback. (#1312) 2017-04-20 11:50:03 -04:00
Sam Morrison
1f586d8a99 [Feature highlight] Accessibility fixes (#1284)
* Allow highlighted view to be accessed with voiceover

* Double tap to dismiss voiceover hint

* NSLocalizedString

* Feature Highlight strings
2017-04-20 11:50:03 -04:00
Adrian Secord
99ed19cdfd Bumped version number to 23.0.1. 2017-03-30 12:05:03 -04:00
Ian Gordon
cac92e127a Bumped version number to 23.0.0. 2017-03-21 17:53:37 -04:00
Louis Romero
4cbdfb9e31 [CollectionCells] Add accessibility hint in edit mode (#1258)
* [CollectionCells] Add accessibility hint in edit mode

When editing, selectable/deselectable cells now give an accessibility
hint: "Double tap to select.". This helps users to know what they can do
while in edit mode.

Related: https://github.com/material-components/material-components-ios/issues/1257

* Add tests
2017-03-21 10:54:13 -04:00
Ian Gordon
02d67c81f6 Bumped version number to 22.1.1. 2017-03-15 10:16:00 -04:00
Ian Gordon
4280ade93c Bumped version number to 22.1.0. 2017-03-08 18:19:30 -05:00
Ian Gordon
15b2724395 Bumped version number to 22.0.0. 2017-03-01 17:59:16 -05:00