@rcarls/rc-theme-material 0.0.0-next-20260921045401
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +423 -0
- package/README.md +164 -0
- package/bridge.css +678 -0
- package/components/accordion.css +20 -0
- package/components/adaptive-menu.css +162 -0
- package/components/app-bar.css +100 -0
- package/components/bottom-sheet.css +135 -0
- package/components/button.css +270 -0
- package/components/card.css +61 -0
- package/components/carousel.css +23 -0
- package/components/chip-group.css +15 -0
- package/components/chip.css +39 -0
- package/components/combobox.css +155 -0
- package/components/dialog.css +86 -0
- package/components/disclosure.css +104 -0
- package/components/fab-menu.css +85 -0
- package/components/fab.css +51 -0
- package/components/field.css +378 -0
- package/components/icons.css +52 -0
- package/components/list-item.css +146 -0
- package/components/listbox.css +47 -0
- package/components/markdown-editor.css +72 -0
- package/components/menu-button.css +126 -0
- package/components/menu.css +147 -0
- package/components/menubar.css +27 -0
- package/components/modes.css +50 -0
- package/components/navigation-bar.css +76 -0
- package/components/navigation-rail.css +132 -0
- package/components/progress.css +15 -0
- package/components/range-slider.css +29 -0
- package/components/scroller.css +7 -0
- package/components/search-bar.css +58 -0
- package/components/segmented-button.css +19 -0
- package/components/select.css +197 -0
- package/components/slider.css +19 -0
- package/components/snackbar.css +23 -0
- package/components/splitter.css +35 -0
- package/components/switch.css +41 -0
- package/components/textarea.css +31 -0
- package/components/toolbar.css +32 -0
- package/components/transfer-list.css +70 -0
- package/components/virtual-canvas.css +16 -0
- package/components.css +42 -0
- package/constraints/material.json +99 -0
- package/defaults.css +1081 -0
- package/package.json +53 -0
- package/state-layer.css +35 -0
- package/theme.css +3 -0
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rcarls/rc-theme-material",
|
|
3
|
+
"publishConfig": {
|
|
4
|
+
"access": "public"
|
|
5
|
+
},
|
|
6
|
+
"version": "0.0.0-next-20260921045401",
|
|
7
|
+
"description": "Material 3 CSS theme and token bridge for rc-webcomponents.",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/richardcarls/rc-webcomponents.git",
|
|
11
|
+
"directory": "packages/rc-theme-material"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://richardcarls.github.io/rc-webcomponents/guide/theme-previews",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"type": "module",
|
|
16
|
+
"sideEffects": [
|
|
17
|
+
"*.css"
|
|
18
|
+
],
|
|
19
|
+
"exports": {
|
|
20
|
+
".": "./bridge.css",
|
|
21
|
+
"./bridge.css": "./bridge.css",
|
|
22
|
+
"./defaults.css": "./defaults.css",
|
|
23
|
+
"./components.css": "./components.css",
|
|
24
|
+
"./components/*.css": "./components/*.css",
|
|
25
|
+
"./state-layer.css": "./state-layer.css",
|
|
26
|
+
"./theme.css": "./theme.css"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"*.css",
|
|
30
|
+
"components",
|
|
31
|
+
"constraints",
|
|
32
|
+
"README.md"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "echo 'CSS-only package, no build step'",
|
|
36
|
+
"test:browser": "vitest --run",
|
|
37
|
+
"test:browser:chrome": "vitest --run --project=chromium",
|
|
38
|
+
"test:browser:firefox": "vitest --run --project=firefox"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@rcarls/rc-adaptive-menu": "0.0.0-next-20260921045401",
|
|
42
|
+
"@rcarls/rc-button": "0.0.0-next-20260921045401",
|
|
43
|
+
"@rcarls/rc-combobox": "0.0.0-next-20260921045401",
|
|
44
|
+
"@rcarls/rc-field": "0.0.0-next-20260921045401",
|
|
45
|
+
"@rcarls/rc-list": "0.0.0-next-20260921045401",
|
|
46
|
+
"@rcarls/rc-menu-button": "0.0.0-next-20260921045401",
|
|
47
|
+
"@rcarls/rc-select": "0.0.0-next-20260921045401",
|
|
48
|
+
"@vitest/browser-playwright": "4.1.5",
|
|
49
|
+
"playwright": "^1.56.0",
|
|
50
|
+
"vite": "^7.1.7",
|
|
51
|
+
"vitest": "^4.0.6"
|
|
52
|
+
}
|
|
53
|
+
}
|
package/state-layer.css
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@layer rc-theme-material.components {
|
|
2
|
+
/*
|
|
3
|
+
* Material 3 state layers for interactive elements that already own their
|
|
4
|
+
* border radius. Uses currentColor so the layer follows each component's
|
|
5
|
+
* foreground token.
|
|
6
|
+
*/
|
|
7
|
+
.rc-state-layer {
|
|
8
|
+
position: relative;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.rc-state-layer::after {
|
|
12
|
+
content: '';
|
|
13
|
+
position: absolute;
|
|
14
|
+
inset: 0;
|
|
15
|
+
border-radius: inherit;
|
|
16
|
+
background: currentColor;
|
|
17
|
+
opacity: 0;
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
transition:
|
|
20
|
+
opacity var(--rc-motion-effects-duration-fast, 150ms)
|
|
21
|
+
var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.rc-state-layer:hover::after {
|
|
25
|
+
opacity: var(--md-sys-state-hover-state-layer-opacity, 0.08);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.rc-state-layer:focus-visible::after {
|
|
29
|
+
opacity: var(--md-sys-state-focus-state-layer-opacity, 0.12);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.rc-state-layer:active::after {
|
|
33
|
+
opacity: var(--md-sys-state-pressed-state-layer-opacity, 0.12);
|
|
34
|
+
}
|
|
35
|
+
}
|
package/theme.css
ADDED