8 Commits

Author SHA1 Message Date
google-labs-jules[bot]
d0c617fdd7 chore: migrate button component to components/button
Moves the `button` component to `components/button` and creates re-exports in the original `button` directory for backward compatibility.
This change also updates internal imports and includes copyright headers in the re-export files.
2025-12-09 19:25:30 +00:00
Material Web Team
41d41cc278 chore: update repository for Material 3
PiperOrigin-RevId: 455635969
2022-06-17 16:42:04 +00:00
Elizabeth Mitchell
d99e3055e7
fix: add js extension for lit tooling (#3401)
FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-web/pull/3393 from material-components:release-0.26 1fedae4189df117c28e56e5dcb93de2c24bf2476
PiperOrigin-RevId: 446764286
2022-05-06 10:25:04 -07:00
Liz Mitchell
ae2c1a4531 chore: clean up TS imports and element definitions
PiperOrigin-RevId: 402875049
2021-10-13 11:05:25 -07:00
Material Web Team
0f6d402472 Add the override keyword to class members in TypeScript files
TypeScript’s override keyword (added in 4.3) works similarly to @Override in Java. It makes the intention clear and ensures there is actually a member in the base class with the same name. This helps with things like:
- Typos in the overriding member name
- Remember to rename members in sub classes when renaming an overridden member in a base class

class Parent {
  foo() {}
}

class Child extends Parent {
  override bar() {}
  //       ~~~ This member cannot have an 'override' modifier because it is not declared in the base class 'Parent'.
}

This change will not cause a runtime change: the override keyword is not present in the resulting JavaScript.

PiperOrigin-RevId: 399452347
2021-09-28 09:00:31 -07:00
Peter Burns
6278ee5df9 chore: just import 'lit', it's cleaner
Fixes #2742

PiperOrigin-RevId: 399238961
2021-09-27 11:28:08 -07:00
Allan Chen
1b9dbdf878 refactor(button): hoist customElement+styles decl's to top level
PiperOrigin-RevId: 398761505
2021-09-24 10:33:37 -07:00
Allan Chen
a27736e717 feat(button): top level variant TS files
PiperOrigin-RevId: 397201951
2021-09-16 17:04:56 -07:00