@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
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"name": "rc-theme-material rendered constraints",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"sources": {
|
|
6
|
+
"material3": "https://m3.material.io/",
|
|
7
|
+
"lists": "https://m3.material.io/components/lists/specs",
|
|
8
|
+
"buttons": "https://m3.material.io/components/buttons/specs",
|
|
9
|
+
"iconButtons": "https://m3.material.io/components/icon-buttons/specs",
|
|
10
|
+
"iconButtonsExpressive": "https://github.com/material-components/material-components-android/blob/master/lib/java/com/google/android/material/button/res/values/styles.xml",
|
|
11
|
+
"menus": "https://m3.material.io/components/menus/specs"
|
|
12
|
+
},
|
|
13
|
+
"constraints": [
|
|
14
|
+
{
|
|
15
|
+
"id": "list.inline-content-padding",
|
|
16
|
+
"selector": "rc-list > rc-list-item",
|
|
17
|
+
"variants": ["standard", "segmented"],
|
|
18
|
+
"geometry": {
|
|
19
|
+
"contentInlineStart": "16px",
|
|
20
|
+
"contentInlineEnd": "16px"
|
|
21
|
+
},
|
|
22
|
+
"source": "lists"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "list.leading-icon",
|
|
26
|
+
"selector": "rc-list-item > [slot='leading'][data-rc-list-leading]",
|
|
27
|
+
"geometry": {
|
|
28
|
+
"inlineSize": "24px",
|
|
29
|
+
"blockSize": "24px",
|
|
30
|
+
"iconSize": "24px"
|
|
31
|
+
},
|
|
32
|
+
"source": "lists"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "button.small-container",
|
|
36
|
+
"selector": "rc-button:not([icon-only])",
|
|
37
|
+
"geometry": {
|
|
38
|
+
"minBlockSize": "40px"
|
|
39
|
+
},
|
|
40
|
+
"typography": {
|
|
41
|
+
"role": "label-large"
|
|
42
|
+
},
|
|
43
|
+
"source": "buttons"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "icon-button.small",
|
|
47
|
+
"selector": "rc-button[icon-only]",
|
|
48
|
+
"geometry": {
|
|
49
|
+
"containerInlineSize": "40px",
|
|
50
|
+
"containerBlockSize": "40px",
|
|
51
|
+
"iconSize": "24px",
|
|
52
|
+
"minTouchTarget": "48px"
|
|
53
|
+
},
|
|
54
|
+
"source": "iconButtons"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"id": "adaptive-menu.overflow-trigger",
|
|
58
|
+
"selector": "rc-adaptive-menu::part(overflow-trigger)",
|
|
59
|
+
"variants": ["small", "narrow"],
|
|
60
|
+
"geometry": {
|
|
61
|
+
"containerInlineSize": "32px",
|
|
62
|
+
"containerBlockSize": "40px",
|
|
63
|
+
"iconSize": "24px",
|
|
64
|
+
"minTouchTarget": "48px"
|
|
65
|
+
},
|
|
66
|
+
"source": "iconButtonsExpressive"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "menu.item",
|
|
70
|
+
"selector": "rc-menu [role^='menuitem'], rc-adaptive-menu > [data-rc-action-overflowed]",
|
|
71
|
+
"geometry": {
|
|
72
|
+
"minBlockSize": "48px",
|
|
73
|
+
"paddingInlineStart": "12px",
|
|
74
|
+
"paddingInlineEnd": "12px",
|
|
75
|
+
"contentGap": "12px",
|
|
76
|
+
"leadingIconSize": "24px"
|
|
77
|
+
},
|
|
78
|
+
"typography": {
|
|
79
|
+
"role": "body-large",
|
|
80
|
+
"fontSize": "16px",
|
|
81
|
+
"fontWeight": "400",
|
|
82
|
+
"lineHeight": "24px",
|
|
83
|
+
"tracking": "0.5px"
|
|
84
|
+
},
|
|
85
|
+
"source": "menus"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "adaptive-menu.viewport-containment",
|
|
89
|
+
"selector": "rc-adaptive-menu::part(popup)",
|
|
90
|
+
"behavior": {
|
|
91
|
+
"maxInlineSize": "viewport - 8px",
|
|
92
|
+
"maxBlockSize": "viewport - 8px",
|
|
93
|
+
"overflow": "auto",
|
|
94
|
+
"overscrollBehavior": "contain"
|
|
95
|
+
},
|
|
96
|
+
"source": "menus"
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|