954 Commits

Author SHA1 Message Date
featherless
66b8a7edfe
Revert "[FlexibleHeader] Add new canAlwaysExpandToMaximumHeight behavior. (#4794)" (#4976)
This reverts commit 2b3722f7b8cc7df131a8b33695990c99931c0e1b.
2018-08-30 17:28:20 -04:00
Yarden Eitan
0ea7bf01ee Revert "[FlexibleHeader] Add new canAlwaysExpandToMaximumHeight behavior. (#4794)"
This reverts commit 2b3722f7b8cc7df131a8b33695990c99931c0e1b.
2018-08-30 15:37:15 -04:00
Randall Li
61c7863874 Bumped version number to 61.0.0. 2018-08-29 23:55:55 -04:00
Jeff Verkoeyen
2435bca478 Merge branch 'release-candidate' into develop 2018-08-27 12:21:55 -04:00
Jeff Verkoeyen
ce0fda4bba Bump the release. 2018-08-27 12:08:47 -04:00
featherless
bc6dfc007f
[ButtonBar] Add support for pure Swift class button invocations. (#4878)
Repro case:

Add the following code to a view controller with an App Bar:

```swift
class SomeObject {
  @objc func someEvent() {

  }
}

let object = SomeObject()

self.navigationItem.rightBarButtonItem =
  UIBarButtonItem(title: "Right", style: .done, target: object, action: #selector(SomeObject.someEvent))
```

Tap the button.

Expected behavior: the someEvent method is invoked.
Actual behavior: crash due to unrecognized selector `methodSignatureForSelector:`.

After this change the behavior works as expected, with the caveat being that we are not able to pass the button instance along as a third argument to pure Swift classes. The implication of this is that pure Swift classes will not be able to present popovers from the provided item instance. Supporting this case will require turning the pure Swift class into an Objective-C compatible class.

Closes https://github.com/material-components/material-components-ios/issues/2981
2018-08-24 10:51:40 -04:00
featherless
2b3722f7b8
[FlexibleHeader] Add new canAlwaysExpandToMaximumHeight behavior. (#4794)
### Release notes

`canAlwaysExpandToMaximumHeight` is a new behavior on the Flexible Header component that is available through an extension target, `FlexibleHeader+CanAlwaysExpandToMaximumHeight`.

Enabling this behavior on a flexible header instance will allow the flexible header to expand to its maximum height even when the flexible header is floating in front of its content.

---

We intend to keep usage of this API fairly restricted internally, so we have added the behavior as a separate target that we'll whitelist internally to clients. The API is still supported by the typical API contract for public clients.

The behavior is implemented using the same shift accumulator logic that enables header shifting. When the accumulator is positive, we're shifting off-screen. When the accumulator is negative, we're expanding the height of the flexible header.

Closes https://github.com/material-components/material-components-ios/issues/4393
2018-08-23 15:50:37 -04:00
Randall Li
a4f39d2c06 Bumped version number to 60.2.0. 2018-08-23 10:01:58 -04:00
Ian Gordon
6d9ca262df Bumped version number to 60.1.0. 2018-08-16 16:00:32 -04:00
Jeff Verkoeyen
fc09a8cf65 Bump the release. 2018-08-10 09:44:09 -04:00
Cody Weaver
84d5dfbb83
[Dialogs] Remove use of MDCFlatButton for MDCButton and MDCTextButtonThemer (#4739)
Remove all instances of MDCFlatButton within [Dialogs] component
Replace with MDCTextButtonThemer and MDCButton

MDCFlatButton is the old API and MDCTextButtonThemer/MDCButton are the modern APIs.


Closes #3914
2018-08-09 11:15:08 -04:00
Jeff Verkoeyen
31e5ab6356 Bump the release. 2018-08-09 09:07:48 -04:00
Jeff Verkoeyen
60224db573 Bump the release. 2018-08-08 17:19:03 -04:00
Jeff Verkoeyen
27901024aa Bump the release. 2018-08-08 11:23:09 -04:00
featherless
c1db980630
[Snackbar] Ensure that the bundle is loaded with CocoaPods. (#4702)
The bundle includes the snackbar "double-tap to dismiss" accessibility hint string.

Closes https://github.com/material-components/material-components-ios/issues/4685
2018-08-03 14:09:18 -04:00
Jeff Verkoeyen
e3cf9801be Bump the release. 2018-08-02 16:36:42 -04:00
Jeff Verkoeyen
85334ead24 Version bump. 2018-08-01 10:55:52 -04:00
Jeff Verkoeyen
e98a774e52 Bump the release. 2018-07-25 10:19:54 -04:00
Jeff Verkoeyen
ef9b71945a Bump the release. 2018-07-18 10:47:40 -04:00
Yarden Eitan
1db11dea41 Bumped version number to 57.0.0. 2018-07-11 17:02:23 -04:00
Andrew Overton
4b6eb9430c
[ListItems] Add Base Cell With Example (#4461)
This PR adds the MDCBaseCell with an accompanying example and readme.
2018-07-10 15:48:25 +02:00
Yarden Eitan
61e65488af
[BottomSheet] [Shapes] Added Shapes support for BottomSheet (#4486)
Added support for shaping a bottom sheet in multiple states.
A bottom sheet can either be collapsed (partially visible but not full screen) and expanded (sheet covering the whole screen). We wanted to allow support for shaping a sheet differently for each of its states.

Therefore the bottom sheet state was exposed rather than hidden and an API was defined to allow changing the shape for each state.
2018-07-09 17:32:24 -04:00
Randall Li
75605b60c5 Merge branch 'release-candidate' into develop 2018-06-27 08:14:18 -04:00
Will Larche
53876c3dca
[Typography] 3rd PR on font equality (#4435)
* [TextFields] Adding todos for #4331

* [TextFields] Creating simple equality files.

* [TextFields] Prevents fonts that are almost the same but not quite from messing up the rendering.

* [Typography] Adding tests for font equality.

* [TextFields] Formatting.

* [Typography] Adding Math to the bazel file.

* [Typography] PR feedback.

* [Typography] PR feedback.

* [Typography] Comment.

* [Typography] PR feedback.

* [Typography] PR feedback.

* [Typography] Updating podspec.

* [Typography] Asserts for bazel.

* [Typography] Logging for tests.

* [Typography] Loggin.g

* [Typography] Removing logging and the deeper check.

* [Typography] Making simple equality a category.

* [TextFields] Using new method.
2018-06-26 11:45:13 -07:00
Randall Li
0ace5e665c Bumped version number to 56.0.0. 2018-06-26 09:15:40 -04:00
Ian Gordon
02f792aad1 Bumped version number to 55.5.0. 2018-06-21 11:47:53 -04:00
Yarden Eitan
c3c738f6b0 Bumped version number to 55.4.0. 2018-06-08 10:09:38 -04:00
Yarden Eitan
45c6fba187 Revert "[TextFields] Prevents functionally equivalent fonts from causing rendering jumps (#4344)"
This reverts commit de44925eb609f1a06c6529fbd06ba7d5f80dcfa9.
2018-06-07 11:17:31 -04:00
Will Larche
de44925eb6
[TextFields] Prevents functionally equivalent fonts from causing rendering jumps (#4344)
* [TextFields] Adding todos for #4331

* [TextFields] Creating simple equality files.

* [TextFields] Prevents fonts that are almost the same but not quite from messing up the rendering.

* [Typography] Adding tests for font equality.

* [TextFields] Formatting.

* [Typography] Adding Math to the bazel file.

* [Typography] PR feedback.

* [Typography] PR feedback.

* [Typography] Comment.

* [Typography] PR feedback.

* [Typography] PR feedback.

* [Typography] Updating podspec.

* [Typography] Asserts for bazel.

* [Typography] Logging for tests.

* [Typography] Loggin.g

* [Typography] Removing logging and the deeper check.
2018-06-05 15:32:58 -04:00
Yarden Eitan
5cc03bfa53 Bumped version number to 55.3.0. 2018-05-30 11:46:00 -04:00
Jeff Verkoeyen
eb1af03730 Bump the release. 2018-05-23 11:50:07 -04:00
Jeff Verkoeyen
86083b433f Bump the release. 2018-05-18 07:49:38 -04:00
Adrian Secord
92b1e7523d Bumped version number to 55.0.4. 2018-05-04 19:42:21 -04:00
Adrian Secord
17db9933ed Bumped version number to 55.0.3. 2018-05-04 18:39:00 -04:00
Jeff Verkoeyen
e10e5e0534 Bump the release. 2018-05-04 13:17:07 -04:00
Jeff Verkoeyen
5f8c8ee8da Bump the release. 2018-05-03 18:01:41 -04:00
Jeff Verkoeyen
9c1e026919 Bump the release. 2018-05-03 09:24:33 -04:00
featherless
037bf7d0f0
Flatten all +Extensions CocoaPods targets into standalone targets. (#3572)
This discourages depending on all of a component's extensions and aligns our targets more closely with how we expect them to be imported and depended upon.

This is a breaking change.

Pivotal story: https://www.pivotaltracker.com/story/show/157118721
2018-05-02 10:20:01 -04:00
Jeff Verkoeyen
d847761bfe Bump the version. 2018-05-01 09:38:14 -04:00
John Detloff
c185bc956f
Create a ChipThemer for material and outlined schemes (#3563)
Before:
![simulator screen shot - iphone x - 2018-04-27 at 13 43 06](https://user-images.githubusercontent.com/1418389/39376826-0283c50a-4a21-11e8-921f-1d18ac2e8c38.png)

After:
![simulator screen shot - iphone x - 2018-04-27 at 13 42 03](https://user-images.githubusercontent.com/1418389/39376832-050ea088-4a21-11e8-8c93-29ba62114249.png)
2018-04-30 16:26:56 -04:00
John Detloff
35abe86e19 Fix typo in MaterialComponents.podspec (#3529) 2018-04-26 21:55:29 -04:00
John Detloff
fc486cf285
[Cards] Implement stroke variant themer (#3485) 2018-04-26 15:51:37 -04:00
Jeff Verkoeyen
88c9092fd7 Bump the release. 2018-04-26 09:49:09 -04:00
Ali Rabbani
65c2bfd02f bump the version 2018-04-23 15:39:06 -04:00
Jeff Verkoeyen
d8ef972270 Bump the release. 2018-04-23 08:30:00 -04:00
Jeff Verkoeyen
a6e7699271 Bump the release. 2018-04-20 08:32:43 -04:00
featherless
289223a5bb
[ButtonBar] Add a Typography Themer. (#3395)
Pivotal story: https://www.pivotaltracker.com/n/projects/2150420/stories/156769836

![simulator screen shot - iphone se - 2018-04-18 at 12 07 32](https://user-images.githubusercontent.com/45670/38957691-396cc5ca-4329-11e8-8a18-5d76cd50b736.png)
2018-04-19 19:55:44 -04:00
Jeff Verkoeyen
36c7a49b81 Fix release number. 2018-04-19 08:54:02 -04:00
Jeff Verkoeyen
81723cf572 Bump the release. 2018-04-19 08:45:38 -04:00
John Detloff
3c139cc00d
[Slider] Update color themer (#3375)
Before:
![screen shot 2018-04-16 at 4 47 37 pm](https://user-images.githubusercontent.com/1418389/38834465-8c2ca684-4196-11e8-8536-d08e537c4bf2.png)
![screen shot 2018-04-16 at 4 47 42 pm](https://user-images.githubusercontent.com/1418389/38834466-8c35342a-4196-11e8-822a-a2d1aa3a767a.png)
![screen shot 2018-04-16 at 4 47 48 pm](https://user-images.githubusercontent.com/1418389/38834467-8c406b4c-4196-11e8-9e76-5792b31adf2d.png)

After:
![screen shot 2018-04-16 at 4 46 34 pm](https://user-images.githubusercontent.com/1418389/38834461-8c11b3c4-4196-11e8-902d-08e02fe5e8b7.png)
![screen shot 2018-04-16 at 4 46 41 pm](https://user-images.githubusercontent.com/1418389/38834462-8c1bb266-4196-11e8-9645-3a72bd4e1b8c.png)
![screen shot 2018-04-16 at 4 46 49 pm](https://user-images.githubusercontent.com/1418389/38834464-8c252b0c-4196-11e8-90a3-afb01d4af4ce.png)

https://www.pivotaltracker.com/story/show/156169452
2018-04-18 10:51:16 -04:00