Commit Graph

3593 Commits

Author SHA1 Message Date
Daniel Freedman
6746d0f685 feat(ripple): Create a ripple directive
This directive encapsulates the event listeners necessary to drive the ripple component inside of an ElementPart directive, instead of relying on ActionController and ActionElement.

The ripple directive can take a Promise from `queryAsync`, or a function that returns a Ripple or a Promise that resolves to a ripple

Before:
```ts
// event listeners inherited from ActionElement
html`
<md-button
@pointerdown=${this.handlePointerDown}
@pointerleave=${this.handlePointerLeave}
@focus=${this.handleFocus}
...
>`
```

After:
```ts
html`
<md-button ${ripple(this.rippleElementPromise)}>
`
```
or
```
<md-button ${ripple(() => this.rippleElement)
```
or
```
<md-button ${ripple(() => {this.renderRipple = true; return this.rippleElementPromise})
```
PiperOrigin-RevId: 492300868
2022-12-01 14:29:57 -08:00
Copybara-Service
c076fbc575 Merge pull request #3799 from material-components:ci-tests
PiperOrigin-RevId: 492196098
2022-12-01 07:57:38 -08:00
Alexander Marks
d64eb1b803 Comment out webkit 2022-11-30 15:46:03 -08:00
Alexander Marks
e8ef2dfc46 PR feedback 2022-11-30 15:43:43 -08:00
Alexander Marks
066219f082 Merge branch 'master' into ci-tests 2022-11-30 11:44:18 -08:00
Alexander Marks
933cb14ac8 chore: Comment-out jasmine import statements for external compatibility
PiperOrigin-RevId: 491970248
2022-11-30 11:18:44 -08:00
Elizabeth Mitchell
cb5eaa3e8e chore(tokens): remove v0.96
PiperOrigin-RevId: 491952022
2022-11-30 10:14:12 -08:00
Alexander Marks
9b598850dd Add build and test GitHub actions 2022-11-29 20:16:35 -08:00
Alexander Marks
3b81050d7e Check in package lock for more reliable CI build 2022-11-29 20:16:35 -08:00
Alexander Marks
f151a028b9 Comment out invalid jasmine imports 2022-11-29 20:16:35 -08:00
Alexander Marks
88b0a0bca9 Set up test script with @web/test-runner 2022-11-29 20:16:30 -08:00
Alexander Marks
e22e89e465 Add type:module and convert css-to-ts.js to a module 2022-11-29 17:02:52 -08:00
Alexander Marks
89054e4154 Exclude irrelevant types like node and remove skipLibCheck 2022-11-29 17:00:05 -08:00
Alexander Marks
802bdccd1a Upgrade dependencies 2022-11-29 16:59:39 -08:00
Alexander Marks
0c84de8274 Add test dependencies 2022-11-29 16:59:36 -08:00
Elizabeth Mitchell
30f5e44e0c chore: update tokens
PiperOrigin-RevId: 491753341
2022-11-29 15:31:06 -08:00
Elizabeth Mitchell
491efc577f chore(text-field): update tokens
PiperOrigin-RevId: 491752389
2022-11-29 15:26:30 -08:00
Elizabeth Mitchell
4ba3f74d7f chore(navigation-bar): update tokens
PiperOrigin-RevId: 491730843
2022-11-29 14:05:50 -08:00
Elizabeth Mitchell
3724687b17 chore(button): update tokens
PiperOrigin-RevId: 491730790
2022-11-29 14:05:35 -08:00
Elizabeth Mitchell
395f297875 chore(radio): update tokens
PiperOrigin-RevId: 491730735
2022-11-29 14:03:50 -08:00
Elizabeth Mitchell
282dbe0cf1 chore(fab): update tokens
PiperOrigin-RevId: 491730693
2022-11-29 14:02:18 -08:00
Elizabeth Mitchell
0e41c696a7 chore(switch): update tokens
PiperOrigin-RevId: 491730567
2022-11-29 14:00:44 -08:00
Elizabeth Mitchell
85e8c46acc chore(checkbox): update tokens
PiperOrigin-RevId: 491730162
2022-11-29 13:59:07 -08:00
Elizabeth Mitchell
8606ceae19 chore(testing): update test table to latest tokens
PiperOrigin-RevId: 491502341
2022-11-28 19:22:44 -08:00
Elizabeth Mitchell
bff01dadf7 chore(tokens): update to v0.144
PiperOrigin-RevId: 491464625
2022-11-28 15:53:25 -08:00
Elizabeth Mitchell
be36c8d44f chore(tokens): generate tokens v0.144
PiperOrigin-RevId: 491447110
2022-11-28 14:37:45 -08:00
Elizabeth Mitchell
f7b594015b chore(tokens): remove old token versions
PiperOrigin-RevId: 491445793
2022-11-28 14:32:48 -08:00
Elizabeth Mitchell
6d5148410c chore(tokens): move latest to v0_96 folder
PiperOrigin-RevId: 491433168
2022-11-28 13:45:28 -08:00
Elizabeth Mitchell
3022c9a68b test(badge): add token tests
PiperOrigin-RevId: 491379772
2022-11-28 10:23:59 -08:00
Elizabeth Mitchell
689d7dd245 chore(testing): add token testing functions
PiperOrigin-RevId: 490766872
2022-11-24 11:59:08 -08:00
Copybara-Service
ef671867b6 Merge pull request #3777 from material-components:wireit
PiperOrigin-RevId: 490101451
2022-11-21 16:40:17 -08:00
Alexander Marks
d9f2f9982e Add wireit build config 2022-11-21 14:12:58 -08:00
Elizabeth Mitchell
1733a40f9e chore(sass): remove opacity tokens when flattening colors
PiperOrigin-RevId: 488991669
2022-11-16 11:23:37 -08:00
Daniel Freedman
e8ba229dd0 fix(button): Move event listeners to anchor to fix focus ring
PiperOrigin-RevId: 487619509
2022-11-10 13:08:15 -08:00
Daniel Freedman
601c331d37 fix(focus): Update focus ring to new design
PiperOrigin-RevId: 487571074
2022-11-10 10:11:40 -08:00
Elizabeth Mitchell
d3fa2c2ba4 chore(iconbutton): merge static/theme-styles
PiperOrigin-RevId: 486156646
2022-11-04 09:17:46 -07:00
Elizabeth Mitchell
443b24a009 chore(iconbutton): update to use local custom properties
PiperOrigin-RevId: 485925419
2022-11-03 11:23:38 -07:00
Elizabeth Mitchell
a676727eac chore(iconbutton): flatten static/theme-styles
PiperOrigin-RevId: 485922844
2022-11-03 11:14:46 -07:00
Elizabeth Mitchell
e41d9efae1 chore(menusurface): merge static/theme-styles
PiperOrigin-RevId: 485668232
2022-11-02 12:43:55 -07:00
Elizabeth Mitchell
2d6d117a6f chore(navigationbar): merge static/theme-styles
PiperOrigin-RevId: 485668117
2022-11-02 12:42:31 -07:00
Elizabeth Mitchell
14ad5547fe chore(navigationbar): update to use local custom properties
PiperOrigin-RevId: 485661299
2022-11-02 12:15:01 -07:00
Elizabeth Mitchell
a1943be23a chore(menusurface): update to use local custom properties
PiperOrigin-RevId: 485660041
2022-11-02 12:10:47 -07:00
Elizabeth Mitchell
70a9bde8d4 chore(navigationdrawer): merge static/theme-styles
PiperOrigin-RevId: 485421579
2022-11-01 14:39:21 -07:00
Elizabeth Mitchell
c3c59ab1a9 chore(navigationdrawer): update to use local custom properties
PiperOrigin-RevId: 485417790
2022-11-01 14:25:30 -07:00
Elizabeth Mitchell
35926a81bf chore(navigationdrawer): flatten static/theme-styles
PiperOrigin-RevId: 485416921
2022-11-01 14:21:00 -07:00
Elizabeth Mitchell
1bc1d2b627 chore(menu): merge static/theme-styles
PiperOrigin-RevId: 485370563
2022-11-01 11:23:34 -07:00
Elizabeth Mitchell
7b59ad0734 chore(navigationbar): flatten static/theme-styles
PiperOrigin-RevId: 485369442
2022-11-01 11:19:36 -07:00
Elizabeth Mitchell
7371f35a56 chore(navigationtab): merge static/theme-styles
PiperOrigin-RevId: 485368505
2022-11-01 11:16:09 -07:00
Elizabeth Mitchell
6ea18cd39d chore(navigationtab): update to use local custom properties
PiperOrigin-RevId: 485367134
2022-11-01 11:11:09 -07:00
Elizabeth Mitchell
2be2ba5aa7 chore(navigationtab): flatten static/theme-styles
PiperOrigin-RevId: 485362270
2022-11-01 10:54:24 -07:00