@pg-labs-incubator/cobweb 0.0.0-stage → 0.0.1
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/LICENSE +163 -0
- package/README.md +82 -2
- package/package.json +111 -3
- package/src/action/action.yaml +291 -0
- package/src/action/button-group.yaml +56 -0
- package/src/action/button.yaml +239 -0
- package/src/action/split-button.yaml +87 -0
- package/src/color/color.yaml +181 -0
- package/src/color/palette.yaml +147 -0
- package/src/container/card.yaml +170 -0
- package/src/container/corner-radius.yaml +50 -0
- package/src/container/elevation.yaml +19 -0
- package/src/design.yaml +41 -0
- package/src/feedback/feedback.yaml +225 -0
- package/src/icon/icon-font.yaml +28 -0
- package/src/icon/icon.yaml +31 -0
- package/src/input/date-picker.yaml +144 -0
- package/src/input/date-range-input.yaml +162 -0
- package/src/input/range-slider.yaml +161 -0
- package/src/input/select.yaml +230 -0
- package/src/input/slider.yaml +172 -0
- package/src/input/text-field.yaml +240 -0
- package/src/input/time-picker.yaml +220 -0
- package/src/motion/motion.yaml +371 -0
- package/src/navigation/app-bar.yaml +147 -0
- package/src/navigation/navigation.yaml +339 -0
- package/src/navigation/scroll.yaml +23 -0
- package/src/navigation/search.yaml +112 -0
- package/src/navigation/tabs.yaml +144 -0
- package/src/navigation/toolbar.yaml +130 -0
- package/src/selection/checkbox.yaml +162 -0
- package/src/selection/chip.yaml +219 -0
- package/src/selection/radio.yaml +125 -0
- package/src/selection/segmented-group.yaml +11 -0
- package/src/selection/segmented.yaml +69 -0
- package/src/selection/switch.yaml +209 -0
- package/src/spacing/measurement.yaml +80 -0
- package/src/state/state.yaml +38 -0
- package/src/surface/surface.yaml +483 -0
- package/src/text/line-height.yaml +144 -0
- package/src/text/typeface.yaml +31 -0
- package/src/text/typescale.yaml +726 -0
- package/target/esbuild/action/action.css +1 -0
- package/target/esbuild/action/base.jsx +1 -0
- package/target/esbuild/action/button.jsx +17 -0
- package/target/esbuild/action/fab-menu-context.jsx +1 -0
- package/target/esbuild/action/fab-menu.jsx +15 -0
- package/target/esbuild/action/fab.jsx +7 -0
- package/target/esbuild/action/group.jsx +22 -0
- package/target/esbuild/action/icon-button.jsx +5 -0
- package/target/esbuild/action/index.jsx +1 -0
- package/target/esbuild/action/split-button.jsx +12 -0
- package/target/esbuild/color/contrast.jsx +1 -0
- package/target/esbuild/color/dynamic.jsx +1 -0
- package/target/esbuild/color/hct.jsx +1 -0
- package/target/esbuild/color/index.css +1 -0
- package/target/esbuild/color/index.jsx +1 -0
- package/target/esbuild/color/palette.jsx +1 -0
- package/target/esbuild/color/scheme.jsx +1 -0
- package/target/esbuild/color/temperature.jsx +1 -0
- package/target/esbuild/container/card.css +1 -0
- package/target/esbuild/container/card.jsx +1 -0
- package/target/esbuild/container/elevation-shadow.css +1 -0
- package/target/esbuild/container/elevation-shadow.jsx +1 -0
- package/target/esbuild/container/index.jsx +1 -0
- package/target/esbuild/dom/client.jsx +1 -0
- package/target/esbuild/dom/index.jsx +1 -0
- package/target/esbuild/dom/server.jsx +1 -0
- package/target/esbuild/dom/types.jsx +1 -0
- package/target/esbuild/feedback/badge.jsx +15 -0
- package/target/esbuild/feedback/feedback.css +1 -0
- package/target/esbuild/feedback/focus.jsx +1 -0
- package/target/esbuild/feedback/index.jsx +1 -0
- package/target/esbuild/feedback/loading.jsx +7 -0
- package/target/esbuild/feedback/observe.jsx +1 -0
- package/target/esbuild/feedback/progress.jsx +35 -0
- package/target/esbuild/feedback/snackbar.jsx +23 -0
- package/target/esbuild/feedback/tooltip.jsx +24 -0
- package/target/esbuild/icon/icon.css +1 -0
- package/target/esbuild/icon/icon.jsx +1 -0
- package/target/esbuild/icon/index.jsx +1 -0
- package/target/esbuild/index.css +1 -0
- package/target/esbuild/index.jsx +1 -0
- package/target/esbuild/input/autocomplete.jsx +5 -0
- package/target/esbuild/input/base.jsx +4 -0
- package/target/esbuild/input/date-picker.css +1 -0
- package/target/esbuild/input/date-picker.jsx +104 -0
- package/target/esbuild/input/date-range-input.css +1 -0
- package/target/esbuild/input/date-time.jsx +21 -0
- package/target/esbuild/input/index.css +1 -0
- package/target/esbuild/input/index.jsx +1 -0
- package/target/esbuild/input/paired-input.jsx +1 -0
- package/target/esbuild/input/picker-dialog.css +1 -0
- package/target/esbuild/input/picker-dialog.jsx +14 -0
- package/target/esbuild/input/select.css +1 -0
- package/target/esbuild/input/select.jsx +63 -0
- package/target/esbuild/input/slider.css +1 -0
- package/target/esbuild/input/slider.jsx +51 -0
- package/target/esbuild/input/text-field.css +1 -0
- package/target/esbuild/input/text-field.jsx +67 -0
- package/target/esbuild/input/time-picker.css +1 -0
- package/target/esbuild/input/time-picker.jsx +29 -0
- package/target/esbuild/motion/frame.jsx +1 -0
- package/target/esbuild/motion/index.css +1 -0
- package/target/esbuild/motion/index.jsx +1 -0
- package/target/esbuild/motion/material.jsx +1 -0
- package/target/esbuild/motion/motion.jsx +1 -0
- package/target/esbuild/motion/spring.jsx +1 -0
- package/target/esbuild/motion/transition.css +1 -0
- package/target/esbuild/motion/transition.jsx +1 -0
- package/target/esbuild/motion/velocity.jsx +1 -0
- package/target/esbuild/navigation/app-bar.jsx +51 -0
- package/target/esbuild/navigation/base.jsx +1 -0
- package/target/esbuild/navigation/drawer.jsx +25 -0
- package/target/esbuild/navigation/index.jsx +1 -0
- package/target/esbuild/navigation/navigation.css +1 -0
- package/target/esbuild/navigation/navigation.jsx +29 -0
- package/target/esbuild/navigation/scroll.jsx +1 -0
- package/target/esbuild/navigation/search.jsx +29 -0
- package/target/esbuild/navigation/tabs.jsx +7 -0
- package/target/esbuild/navigation/toolbar.jsx +23 -0
- package/target/esbuild/selection/base.jsx +1 -0
- package/target/esbuild/selection/checkbox.jsx +14 -0
- package/target/esbuild/selection/chip.jsx +23 -0
- package/target/esbuild/selection/index.jsx +1 -0
- package/target/esbuild/selection/radio.jsx +9 -0
- package/target/esbuild/selection/segmented.jsx +15 -0
- package/target/esbuild/selection/selection.css +1 -0
- package/target/esbuild/selection/switch.jsx +14 -0
- package/target/esbuild/shape/corner-rounding.jsx +1 -0
- package/target/esbuild/shape/cubic.jsx +1 -0
- package/target/esbuild/shape/index.jsx +1 -0
- package/target/esbuild/shape/material-shapes.jsx +1 -0
- package/target/esbuild/shape/morph.jsx +1 -0
- package/target/esbuild/shape/path.jsx +1 -0
- package/target/esbuild/shape/point.jsx +1 -0
- package/target/esbuild/shape/rounded-polygon.jsx +1 -0
- package/target/esbuild/shape/shapes.jsx +1 -0
- package/target/esbuild/spacing/index.jsx +1 -0
- package/target/esbuild/state/component.css +1 -0
- package/target/esbuild/state/component.jsx +1 -0
- package/target/esbuild/state/controller.jsx +1 -0
- package/target/esbuild/state/index.jsx +1 -0
- package/target/esbuild/state/ripple.jsx +1 -0
- package/target/esbuild/state/state.jsx +1 -0
- package/target/esbuild/state/style.jsx +1 -0
- package/target/esbuild/surface/carousel-layout.jsx +1 -0
- package/target/esbuild/surface/carousel.css +1 -0
- package/target/esbuild/surface/carousel.jsx +10 -0
- package/target/esbuild/surface/dialog.jsx +35 -0
- package/target/esbuild/surface/divider.jsx +1 -0
- package/target/esbuild/surface/drag.jsx +1 -0
- package/target/esbuild/surface/gestures.css +1 -0
- package/target/esbuild/surface/gestures.jsx +7 -0
- package/target/esbuild/surface/index.css +1 -0
- package/target/esbuild/surface/index.jsx +1 -0
- package/target/esbuild/surface/interactive.jsx +1 -0
- package/target/esbuild/surface/list-patterns.jsx +26 -0
- package/target/esbuild/surface/list.css +1 -0
- package/target/esbuild/surface/list.jsx +9 -0
- package/target/esbuild/surface/menu.css +1 -0
- package/target/esbuild/surface/menu.jsx +12 -0
- package/target/esbuild/surface/scaffold.jsx +47 -0
- package/target/esbuild/surface/sheet.jsx +21 -0
- package/target/esbuild/surface/side-sheet.jsx +17 -0
- package/target/esbuild/surface/slots.jsx +1 -0
- package/target/esbuild/surface/surface.css +1 -0
- package/target/esbuild/surface/surface.jsx +1 -0
- package/target/esbuild/text/index.css +1 -0
- package/target/esbuild/text/index.jsx +1 -0
- package/target/esbuild/text/text.css +1 -0
- package/target/esbuild/text/text.jsx +3 -0
- package/target/esbuild/text/typography.css +1 -0
- package/target/esbuild/text/typography.jsx +1 -0
- package/target/esbuild/util/box-side.jsx +1 -0
- package/target/esbuild/util/debug.jsx +1 -0
- package/target/esbuild/util/dom.jsx +1 -0
- package/target/esbuild/util/event.jsx +1 -0
- package/target/esbuild/util/index.jsx +1 -0
- package/target/esbuild/util/preconditions.jsx +1 -0
- package/target/esbuild/util/reactive.jsx +1 -0
- package/target/tsc/action/action.css.d.ts +3 -0
- package/target/tsc/action/base.d.ts +211 -0
- package/target/tsc/action/button.d.ts +126 -0
- package/target/tsc/action/fab-menu-context.d.ts +16 -0
- package/target/tsc/action/fab-menu.d.ts +112 -0
- package/target/tsc/action/fab.d.ts +98 -0
- package/target/tsc/action/group.d.ts +166 -0
- package/target/tsc/action/icon-button.d.ts +79 -0
- package/target/tsc/action/index.d.ts +24 -0
- package/target/tsc/action/split-button.d.ts +78 -0
- package/target/tsc/color/contrast.d.ts +48 -0
- package/target/tsc/color/dynamic.d.ts +203 -0
- package/target/tsc/color/hct.d.ts +114 -0
- package/target/tsc/color/index.css.d.ts +3 -0
- package/target/tsc/color/index.d.ts +23 -0
- package/target/tsc/color/palette.d.ts +30 -0
- package/target/tsc/color/scheme.d.ts +446 -0
- package/target/tsc/color/temperature.d.ts +24 -0
- package/target/tsc/container/card.css.d.ts +3 -0
- package/target/tsc/container/card.d.ts +110 -0
- package/target/tsc/container/elevation-shadow.css.d.ts +3 -0
- package/target/tsc/container/elevation-shadow.d.ts +23 -0
- package/target/tsc/container/index.d.ts +44 -0
- package/target/tsc/dom/client.d.ts +387 -0
- package/target/tsc/dom/index.d.ts +93 -0
- package/target/tsc/dom/server.d.ts +65 -0
- package/target/tsc/dom/types.d.ts +134 -0
- package/target/tsc/feedback/badge.d.ts +116 -0
- package/target/tsc/feedback/feedback.css.d.ts +3 -0
- package/target/tsc/feedback/focus.d.ts +20 -0
- package/target/tsc/feedback/index.d.ts +17 -0
- package/target/tsc/feedback/loading.d.ts +194 -0
- package/target/tsc/feedback/observe.d.ts +75 -0
- package/target/tsc/feedback/progress.d.ts +281 -0
- package/target/tsc/feedback/snackbar.d.ts +398 -0
- package/target/tsc/feedback/tooltip.d.ts +326 -0
- package/target/tsc/icon/icon.css.d.ts +3 -0
- package/target/tsc/icon/icon.d.ts +69 -0
- package/target/tsc/icon/index.d.ts +13 -0
- package/target/tsc/index.css.d.ts +3 -0
- package/target/tsc/index.d.ts +7 -0
- package/target/tsc/input/autocomplete.d.ts +119 -0
- package/target/tsc/input/base.d.ts +282 -0
- package/target/tsc/input/date-picker.css.d.ts +3 -0
- package/target/tsc/input/date-picker.d.ts +351 -0
- package/target/tsc/input/date-range-input.css.d.ts +3 -0
- package/target/tsc/input/date-time.d.ts +171 -0
- package/target/tsc/input/index.css.d.ts +3 -0
- package/target/tsc/input/index.d.ts +27 -0
- package/target/tsc/input/paired-input.d.ts +435 -0
- package/target/tsc/input/picker-dialog.css.d.ts +3 -0
- package/target/tsc/input/picker-dialog.d.ts +84 -0
- package/target/tsc/input/select.css.d.ts +3 -0
- package/target/tsc/input/select.d.ts +267 -0
- package/target/tsc/input/slider.css.d.ts +3 -0
- package/target/tsc/input/slider.d.ts +372 -0
- package/target/tsc/input/text-field.css.d.ts +3 -0
- package/target/tsc/input/text-field.d.ts +415 -0
- package/target/tsc/input/time-picker.css.d.ts +3 -0
- package/target/tsc/input/time-picker.d.ts +212 -0
- package/target/tsc/motion/frame.d.ts +36 -0
- package/target/tsc/motion/index.css.d.ts +3 -0
- package/target/tsc/motion/index.d.ts +34 -0
- package/target/tsc/motion/material.d.ts +110 -0
- package/target/tsc/motion/motion.d.ts +235 -0
- package/target/tsc/motion/spring.d.ts +223 -0
- package/target/tsc/motion/transition.css.d.ts +3 -0
- package/target/tsc/motion/transition.d.ts +597 -0
- package/target/tsc/motion/velocity.d.ts +54 -0
- package/target/tsc/navigation/app-bar.d.ts +473 -0
- package/target/tsc/navigation/base.d.ts +320 -0
- package/target/tsc/navigation/drawer.d.ts +301 -0
- package/target/tsc/navigation/index.d.ts +25 -0
- package/target/tsc/navigation/navigation.css.d.ts +3 -0
- package/target/tsc/navigation/navigation.d.ts +537 -0
- package/target/tsc/navigation/scroll.d.ts +218 -0
- package/target/tsc/navigation/search.d.ts +332 -0
- package/target/tsc/navigation/tabs.d.ts +497 -0
- package/target/tsc/navigation/toolbar.d.ts +248 -0
- package/target/tsc/selection/base.d.ts +100 -0
- package/target/tsc/selection/checkbox.d.ts +194 -0
- package/target/tsc/selection/chip.d.ts +358 -0
- package/target/tsc/selection/index.d.ts +21 -0
- package/target/tsc/selection/radio.d.ts +198 -0
- package/target/tsc/selection/segmented.d.ts +333 -0
- package/target/tsc/selection/selection.css.d.ts +3 -0
- package/target/tsc/selection/switch.d.ts +165 -0
- package/target/tsc/shape/corner-rounding.d.ts +36 -0
- package/target/tsc/shape/cubic.d.ts +215 -0
- package/target/tsc/shape/index.d.ts +35 -0
- package/target/tsc/shape/material-shapes.d.ts +176 -0
- package/target/tsc/shape/morph.d.ts +91 -0
- package/target/tsc/shape/path.d.ts +177 -0
- package/target/tsc/shape/point.d.ts +165 -0
- package/target/tsc/shape/rounded-polygon.d.ts +289 -0
- package/target/tsc/shape/shapes.d.ts +76 -0
- package/target/tsc/spacing/index.d.ts +19 -0
- package/target/tsc/state/component.css.d.ts +3 -0
- package/target/tsc/state/component.d.ts +276 -0
- package/target/tsc/state/controller.d.ts +257 -0
- package/target/tsc/state/index.d.ts +19 -0
- package/target/tsc/state/ripple.d.ts +50 -0
- package/target/tsc/state/state.d.ts +129 -0
- package/target/tsc/state/style.d.ts +22 -0
- package/target/tsc/surface/carousel-layout.d.ts +212 -0
- package/target/tsc/surface/carousel.css.d.ts +3 -0
- package/target/tsc/surface/carousel.d.ts +231 -0
- package/target/tsc/surface/dialog.d.ts +580 -0
- package/target/tsc/surface/divider.d.ts +92 -0
- package/target/tsc/surface/drag.d.ts +92 -0
- package/target/tsc/surface/gestures.css.d.ts +3 -0
- package/target/tsc/surface/gestures.d.ts +292 -0
- package/target/tsc/surface/index.css.d.ts +3 -0
- package/target/tsc/surface/index.d.ts +29 -0
- package/target/tsc/surface/interactive.d.ts +22 -0
- package/target/tsc/surface/list-patterns.d.ts +384 -0
- package/target/tsc/surface/list.css.d.ts +3 -0
- package/target/tsc/surface/list.d.ts +340 -0
- package/target/tsc/surface/menu.css.d.ts +3 -0
- package/target/tsc/surface/menu.d.ts +590 -0
- package/target/tsc/surface/scaffold.d.ts +337 -0
- package/target/tsc/surface/sheet.d.ts +384 -0
- package/target/tsc/surface/side-sheet.d.ts +183 -0
- package/target/tsc/surface/slots.d.ts +21 -0
- package/target/tsc/surface/surface.css.d.ts +3 -0
- package/target/tsc/surface/surface.d.ts +192 -0
- package/target/tsc/text/index.css.d.ts +3 -0
- package/target/tsc/text/index.d.ts +18 -0
- package/target/tsc/text/text.css.d.ts +3 -0
- package/target/tsc/text/text.d.ts +94 -0
- package/target/tsc/text/typography.css.d.ts +3 -0
- package/target/tsc/text/typography.d.ts +82 -0
- package/target/tsc/util/box-side.d.ts +76 -0
- package/target/tsc/util/debug.d.ts +20 -0
- package/target/tsc/util/dom.d.ts +35 -0
- package/target/tsc/util/event.d.ts +93 -0
- package/target/tsc/util/index.d.ts +12 -0
- package/target/tsc/util/preconditions.d.ts +79 -0
- package/target/tsc/util/reactive.d.ts +36 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
class: component
|
|
3
|
+
attribute: RadioButton
|
|
4
|
+
description: >
|
|
5
|
+
Radio button component roles. Values follow the AndroidX Material 3 `RadioButtonTokens` and,
|
|
6
|
+
for state-layer colors, the material-web radio tokens.
|
|
7
|
+
roles:
|
|
8
|
+
icon:
|
|
9
|
+
description: Radio ring and dot roles.
|
|
10
|
+
roles:
|
|
11
|
+
size:
|
|
12
|
+
description: Outer diameter of the ring.
|
|
13
|
+
type: length
|
|
14
|
+
value: 20px
|
|
15
|
+
strokeWidth:
|
|
16
|
+
description: Ring stroke width.
|
|
17
|
+
type: length
|
|
18
|
+
value: 2px
|
|
19
|
+
dotSize:
|
|
20
|
+
description: >
|
|
21
|
+
Diameter of the selected dot. Compose draws a 12dp dot whose radius is reduced by half
|
|
22
|
+
the stroke width, which yields a 10dp visible dot.
|
|
23
|
+
type: length
|
|
24
|
+
value: 10px
|
|
25
|
+
color:
|
|
26
|
+
description: Unselected ring color.
|
|
27
|
+
type: color
|
|
28
|
+
value: $cw-Color-surface-onFillVariant
|
|
29
|
+
selectedColor:
|
|
30
|
+
description: Selected ring and dot color.
|
|
31
|
+
type: color
|
|
32
|
+
value: $cw-Color-primary-fill
|
|
33
|
+
stateLayer:
|
|
34
|
+
description: State-layer roles.
|
|
35
|
+
roles:
|
|
36
|
+
size:
|
|
37
|
+
description: Diameter of the circular state layer centered on the ring.
|
|
38
|
+
type: length
|
|
39
|
+
value: 40px
|
|
40
|
+
target:
|
|
41
|
+
description: Interactive target roles.
|
|
42
|
+
roles:
|
|
43
|
+
size:
|
|
44
|
+
description: >
|
|
45
|
+
Minimum interactive target size. The state layer is centered within the inline-start
|
|
46
|
+
square of this size.
|
|
47
|
+
type: length
|
|
48
|
+
value: 48px
|
|
49
|
+
label:
|
|
50
|
+
description: Label slot roles.
|
|
51
|
+
roles:
|
|
52
|
+
color:
|
|
53
|
+
description: Label color.
|
|
54
|
+
type: color
|
|
55
|
+
value: $cw-Color-surface-onFill
|
|
56
|
+
spacing:
|
|
57
|
+
description: >
|
|
58
|
+
Space between the interactive target and the label. With the default roles the label
|
|
59
|
+
starts where the 48px target ends.
|
|
60
|
+
type: length
|
|
61
|
+
value: 0px
|
|
62
|
+
hover:
|
|
63
|
+
description: Roles applied while the radio button is hovered.
|
|
64
|
+
roles:
|
|
65
|
+
iconColor:
|
|
66
|
+
description: Override for `cw-RadioButton-icon-color`.
|
|
67
|
+
type: color
|
|
68
|
+
value: $cw-Color-surface-onFill
|
|
69
|
+
stateLayerColor:
|
|
70
|
+
description: Unselected state-layer color.
|
|
71
|
+
type: color
|
|
72
|
+
value: $cw-Color-surface-onFill
|
|
73
|
+
selectedStateLayerColor:
|
|
74
|
+
description: Selected state-layer color.
|
|
75
|
+
type: color
|
|
76
|
+
value: $cw-Color-primary-fill
|
|
77
|
+
focus:
|
|
78
|
+
description: Roles applied while the radio button has keyboard focus.
|
|
79
|
+
roles:
|
|
80
|
+
iconColor:
|
|
81
|
+
description: Override for `cw-RadioButton-icon-color`.
|
|
82
|
+
type: color
|
|
83
|
+
value: $cw-Color-surface-onFill
|
|
84
|
+
stateLayerColor:
|
|
85
|
+
description: Unselected state-layer color.
|
|
86
|
+
type: color
|
|
87
|
+
value: $cw-Color-surface-onFill
|
|
88
|
+
selectedStateLayerColor:
|
|
89
|
+
description: Selected state-layer color.
|
|
90
|
+
type: color
|
|
91
|
+
value: $cw-Color-primary-fill
|
|
92
|
+
press:
|
|
93
|
+
description: Roles applied while the radio button is pressed.
|
|
94
|
+
roles:
|
|
95
|
+
iconColor:
|
|
96
|
+
description: Override for `cw-RadioButton-icon-color`.
|
|
97
|
+
type: color
|
|
98
|
+
value: $cw-Color-surface-onFill
|
|
99
|
+
stateLayerColor:
|
|
100
|
+
description: Unselected state-layer color.
|
|
101
|
+
type: color
|
|
102
|
+
value: $cw-Color-primary-fill
|
|
103
|
+
selectedStateLayerColor:
|
|
104
|
+
description: Selected state-layer color.
|
|
105
|
+
type: color
|
|
106
|
+
value: $cw-Color-surface-onFill
|
|
107
|
+
disabled:
|
|
108
|
+
description: Roles applied while the radio button is disabled.
|
|
109
|
+
roles:
|
|
110
|
+
iconColor:
|
|
111
|
+
description: Ring and dot color in both selection states.
|
|
112
|
+
type: color
|
|
113
|
+
value: $cw-Color-surface-onFill
|
|
114
|
+
iconOpacity:
|
|
115
|
+
description: Opacity of the disabled ring and dot color.
|
|
116
|
+
type: number
|
|
117
|
+
value: 0.38
|
|
118
|
+
labelColor:
|
|
119
|
+
description: Override for `cw-RadioButton-label-color`.
|
|
120
|
+
type: color
|
|
121
|
+
value: $cw-Color-surface-onFill
|
|
122
|
+
labelOpacity:
|
|
123
|
+
description: Opacity of the disabled label color.
|
|
124
|
+
type: number
|
|
125
|
+
value: 0.38
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
class: component
|
|
3
|
+
attribute: SegmentedButtonGroup
|
|
4
|
+
description: >
|
|
5
|
+
Segmented button row roles. Segments of a row share one width (or, in a vertical row, one
|
|
6
|
+
height) and overlap by their outline width when the spacing is `0px`.
|
|
7
|
+
roles:
|
|
8
|
+
spacing:
|
|
9
|
+
description: Space between the segments of a row.
|
|
10
|
+
type: length
|
|
11
|
+
value: 0px
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
class: component
|
|
3
|
+
attribute: SegmentedButton
|
|
4
|
+
description: >
|
|
5
|
+
Segmented button component roles. Values follow the AndroidX Material 3
|
|
6
|
+
`OutlinedSegmentedButtonTokens` and `SegmentedButtonDefaults`. State layers use the label color.
|
|
7
|
+
roles:
|
|
8
|
+
containerHeight:
|
|
9
|
+
description: Visual container height.
|
|
10
|
+
type: length
|
|
11
|
+
value: 40px
|
|
12
|
+
targetSize:
|
|
13
|
+
description: Minimum interactive target block size.
|
|
14
|
+
type: length
|
|
15
|
+
value: 48px
|
|
16
|
+
horizontalPadding:
|
|
17
|
+
description: Space between the container edge and the content.
|
|
18
|
+
type: length
|
|
19
|
+
value: 12px
|
|
20
|
+
contentSpacing:
|
|
21
|
+
description: Space between the icon or checkmark and the label.
|
|
22
|
+
type: length
|
|
23
|
+
value: 8px
|
|
24
|
+
iconSize:
|
|
25
|
+
description: Icon and checkmark size.
|
|
26
|
+
type: length
|
|
27
|
+
value: 18px
|
|
28
|
+
outlineColor:
|
|
29
|
+
description: Container outline color.
|
|
30
|
+
type: color
|
|
31
|
+
value: $cw-Color-outline
|
|
32
|
+
outlineThickness:
|
|
33
|
+
description: Container outline width. Adjacent segments of a row overlap by this width.
|
|
34
|
+
type: length
|
|
35
|
+
value: 1px
|
|
36
|
+
shape:
|
|
37
|
+
description: >
|
|
38
|
+
Corner radius of the outer corners of a row, or of every corner of a standalone segment. A
|
|
39
|
+
radius of at least half the container height produces fully rounded ends.
|
|
40
|
+
type: length
|
|
41
|
+
value: $cw-CornerRadius-full
|
|
42
|
+
selectedContainerColor:
|
|
43
|
+
description: Selected container color.
|
|
44
|
+
type: color
|
|
45
|
+
value: $cw-Color-secondary-container
|
|
46
|
+
selectedLabelTextColor:
|
|
47
|
+
description: Selected label, icon, and checkmark color.
|
|
48
|
+
type: color
|
|
49
|
+
value: $cw-Color-secondary-onContainer
|
|
50
|
+
unselectedLabelTextColor:
|
|
51
|
+
description: Unselected label and icon color.
|
|
52
|
+
type: color
|
|
53
|
+
value: $cw-Color-surface-onFill
|
|
54
|
+
disabledLabelTextColor:
|
|
55
|
+
description: Disabled label, icon, and checkmark color.
|
|
56
|
+
type: color
|
|
57
|
+
value: $cw-Color-surface-onFill
|
|
58
|
+
disabledLabelTextOpacity:
|
|
59
|
+
description: Opacity of the disabled label, icon, and checkmark color.
|
|
60
|
+
type: number
|
|
61
|
+
value: 0.38
|
|
62
|
+
disabledOutlineColor:
|
|
63
|
+
description: Disabled outline color.
|
|
64
|
+
type: color
|
|
65
|
+
value: $cw-Color-surface-onFill
|
|
66
|
+
disabledOutlineOpacity:
|
|
67
|
+
description: Opacity of the disabled outline color.
|
|
68
|
+
type: number
|
|
69
|
+
value: 0.12
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
class: component
|
|
3
|
+
attribute: Switch
|
|
4
|
+
description: >
|
|
5
|
+
Switch component roles. Values follow the AndroidX Material 3 `SwitchTokens` and, for
|
|
6
|
+
state-layer colors, the material-web switch tokens.
|
|
7
|
+
roles:
|
|
8
|
+
track:
|
|
9
|
+
description: Track roles.
|
|
10
|
+
roles:
|
|
11
|
+
width:
|
|
12
|
+
description: Track width.
|
|
13
|
+
type: length
|
|
14
|
+
value: 52px
|
|
15
|
+
height:
|
|
16
|
+
description: Track height. The track is fully rounded.
|
|
17
|
+
type: length
|
|
18
|
+
value: 32px
|
|
19
|
+
outlineWidth:
|
|
20
|
+
description: Unselected track outline width.
|
|
21
|
+
type: length
|
|
22
|
+
value: 2px
|
|
23
|
+
color:
|
|
24
|
+
description: Unselected track color.
|
|
25
|
+
type: color
|
|
26
|
+
value: $cw-Color-surface-containerHighest
|
|
27
|
+
outlineColor:
|
|
28
|
+
description: Unselected track outline color.
|
|
29
|
+
type: color
|
|
30
|
+
value: $cw-Color-outline
|
|
31
|
+
selectedColor:
|
|
32
|
+
description: Selected track color.
|
|
33
|
+
type: color
|
|
34
|
+
value: $cw-Color-primary-fill
|
|
35
|
+
handle:
|
|
36
|
+
description: Handle roles. The handle is circular.
|
|
37
|
+
roles:
|
|
38
|
+
size:
|
|
39
|
+
description: Unselected handle diameter.
|
|
40
|
+
type: length
|
|
41
|
+
value: 16px
|
|
42
|
+
selectedSize:
|
|
43
|
+
description: Selected handle diameter, also used for an unselected handle with an icon.
|
|
44
|
+
type: length
|
|
45
|
+
value: 24px
|
|
46
|
+
pressedSize:
|
|
47
|
+
description: Handle diameter while pressed.
|
|
48
|
+
type: length
|
|
49
|
+
value: 28px
|
|
50
|
+
color:
|
|
51
|
+
description: Unselected handle color.
|
|
52
|
+
type: color
|
|
53
|
+
value: $cw-Color-outline
|
|
54
|
+
selectedColor:
|
|
55
|
+
description: Selected handle color.
|
|
56
|
+
type: color
|
|
57
|
+
value: $cw-Color-primary-onFill
|
|
58
|
+
icon:
|
|
59
|
+
description: Handle icon roles.
|
|
60
|
+
roles:
|
|
61
|
+
size:
|
|
62
|
+
description: Icon size.
|
|
63
|
+
type: length
|
|
64
|
+
value: 16px
|
|
65
|
+
color:
|
|
66
|
+
description: Unselected icon color.
|
|
67
|
+
type: color
|
|
68
|
+
value: $cw-Color-surface-containerHighest
|
|
69
|
+
selectedColor:
|
|
70
|
+
description: Selected icon color.
|
|
71
|
+
type: color
|
|
72
|
+
value: $cw-Color-primary-onContainer
|
|
73
|
+
stateLayer:
|
|
74
|
+
description: State-layer roles.
|
|
75
|
+
roles:
|
|
76
|
+
size:
|
|
77
|
+
description: Diameter of the circular state layer, which travels with the handle.
|
|
78
|
+
type: length
|
|
79
|
+
value: 40px
|
|
80
|
+
target:
|
|
81
|
+
description: Interactive target roles.
|
|
82
|
+
roles:
|
|
83
|
+
size:
|
|
84
|
+
description: Minimum interactive target block size.
|
|
85
|
+
type: length
|
|
86
|
+
value: 48px
|
|
87
|
+
label:
|
|
88
|
+
description: Label slot roles.
|
|
89
|
+
roles:
|
|
90
|
+
color:
|
|
91
|
+
description: Label color.
|
|
92
|
+
type: color
|
|
93
|
+
value: $cw-Color-surface-onFill
|
|
94
|
+
spacing:
|
|
95
|
+
description: Space between the track and the label.
|
|
96
|
+
type: length
|
|
97
|
+
value: 8px
|
|
98
|
+
hover:
|
|
99
|
+
description: Roles applied while the switch is hovered.
|
|
100
|
+
roles:
|
|
101
|
+
handleColor:
|
|
102
|
+
description: Override for `cw-Switch-handle-color`.
|
|
103
|
+
type: color
|
|
104
|
+
value: $cw-Color-surface-onFillVariant
|
|
105
|
+
selectedHandleColor:
|
|
106
|
+
description: Override for `cw-Switch-handle-selectedColor`.
|
|
107
|
+
type: color
|
|
108
|
+
value: $cw-Color-primary-container
|
|
109
|
+
stateLayerColor:
|
|
110
|
+
description: Unselected state-layer color.
|
|
111
|
+
type: color
|
|
112
|
+
value: $cw-Color-surface-onFill
|
|
113
|
+
selectedStateLayerColor:
|
|
114
|
+
description: Selected state-layer color.
|
|
115
|
+
type: color
|
|
116
|
+
value: $cw-Color-primary-fill
|
|
117
|
+
focus:
|
|
118
|
+
description: Roles applied while the switch has keyboard focus.
|
|
119
|
+
roles:
|
|
120
|
+
handleColor:
|
|
121
|
+
description: Override for `cw-Switch-handle-color`.
|
|
122
|
+
type: color
|
|
123
|
+
value: $cw-Color-surface-onFillVariant
|
|
124
|
+
selectedHandleColor:
|
|
125
|
+
description: Override for `cw-Switch-handle-selectedColor`.
|
|
126
|
+
type: color
|
|
127
|
+
value: $cw-Color-primary-container
|
|
128
|
+
stateLayerColor:
|
|
129
|
+
description: Unselected state-layer color.
|
|
130
|
+
type: color
|
|
131
|
+
value: $cw-Color-surface-onFill
|
|
132
|
+
selectedStateLayerColor:
|
|
133
|
+
description: Selected state-layer color.
|
|
134
|
+
type: color
|
|
135
|
+
value: $cw-Color-primary-fill
|
|
136
|
+
press:
|
|
137
|
+
description: Roles applied while the switch is pressed.
|
|
138
|
+
roles:
|
|
139
|
+
handleColor:
|
|
140
|
+
description: Override for `cw-Switch-handle-color`.
|
|
141
|
+
type: color
|
|
142
|
+
value: $cw-Color-surface-onFillVariant
|
|
143
|
+
selectedHandleColor:
|
|
144
|
+
description: Override for `cw-Switch-handle-selectedColor`.
|
|
145
|
+
type: color
|
|
146
|
+
value: $cw-Color-primary-container
|
|
147
|
+
stateLayerColor:
|
|
148
|
+
description: Unselected state-layer color.
|
|
149
|
+
type: color
|
|
150
|
+
value: $cw-Color-surface-onFill
|
|
151
|
+
selectedStateLayerColor:
|
|
152
|
+
description: Selected state-layer color.
|
|
153
|
+
type: color
|
|
154
|
+
value: $cw-Color-primary-fill
|
|
155
|
+
disabled:
|
|
156
|
+
description: Roles applied while the switch is disabled.
|
|
157
|
+
roles:
|
|
158
|
+
trackColor:
|
|
159
|
+
description: Override for `cw-Switch-track-color`.
|
|
160
|
+
type: color
|
|
161
|
+
value: $cw-Color-surface-containerHighest
|
|
162
|
+
selectedTrackColor:
|
|
163
|
+
description: Override for `cw-Switch-track-selectedColor`.
|
|
164
|
+
type: color
|
|
165
|
+
value: $cw-Color-surface-onFill
|
|
166
|
+
trackOutlineColor:
|
|
167
|
+
description: Override for `cw-Switch-track-outlineColor`.
|
|
168
|
+
type: color
|
|
169
|
+
value: $cw-Color-surface-onFill
|
|
170
|
+
trackOpacity:
|
|
171
|
+
description: Opacity of the disabled track and track outline colors.
|
|
172
|
+
type: number
|
|
173
|
+
value: 0.12
|
|
174
|
+
handleColor:
|
|
175
|
+
description: Override for `cw-Switch-handle-color`.
|
|
176
|
+
type: color
|
|
177
|
+
value: $cw-Color-surface-onFill
|
|
178
|
+
handleOpacity:
|
|
179
|
+
description: Opacity of the disabled unselected handle color.
|
|
180
|
+
type: number
|
|
181
|
+
value: 0.38
|
|
182
|
+
selectedHandleColor:
|
|
183
|
+
description: Override for `cw-Switch-handle-selectedColor`.
|
|
184
|
+
type: color
|
|
185
|
+
value: $cw-Color-surface-fill
|
|
186
|
+
selectedHandleOpacity:
|
|
187
|
+
description: Opacity of the disabled selected handle color.
|
|
188
|
+
type: number
|
|
189
|
+
value: 1
|
|
190
|
+
iconColor:
|
|
191
|
+
description: Override for `cw-Switch-icon-color`.
|
|
192
|
+
type: color
|
|
193
|
+
value: $cw-Color-surface-containerHighest
|
|
194
|
+
selectedIconColor:
|
|
195
|
+
description: Override for `cw-Switch-icon-selectedColor`.
|
|
196
|
+
type: color
|
|
197
|
+
value: $cw-Color-surface-onFill
|
|
198
|
+
iconOpacity:
|
|
199
|
+
description: Opacity of the disabled icon colors.
|
|
200
|
+
type: number
|
|
201
|
+
value: 0.38
|
|
202
|
+
labelColor:
|
|
203
|
+
description: Override for `cw-Switch-label-color`.
|
|
204
|
+
type: color
|
|
205
|
+
value: $cw-Color-surface-onFill
|
|
206
|
+
labelOpacity:
|
|
207
|
+
description: Opacity of the disabled label color.
|
|
208
|
+
type: number
|
|
209
|
+
value: 0.38
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
class: system
|
|
3
|
+
attribute: Measurement
|
|
4
|
+
description: >
|
|
5
|
+
Spacing scale roles, in CSS pixels. Each role suffix is the spacing in hundredths of `8px`,
|
|
6
|
+
matching the numeric scale exported by the `spacing` module. The roles serve layout between
|
|
7
|
+
components and are not an instruction to replace component-specific geometry.
|
|
8
|
+
roles:
|
|
9
|
+
space0:
|
|
10
|
+
description: Spacing of 0 CSS pixels.
|
|
11
|
+
type: length
|
|
12
|
+
value: 0px
|
|
13
|
+
space25:
|
|
14
|
+
description: Spacing of 2 CSS pixels.
|
|
15
|
+
type: length
|
|
16
|
+
value: 2px
|
|
17
|
+
space50:
|
|
18
|
+
description: Spacing of 4 CSS pixels.
|
|
19
|
+
type: length
|
|
20
|
+
value: 4px
|
|
21
|
+
space75:
|
|
22
|
+
description: Spacing of 6 CSS pixels.
|
|
23
|
+
type: length
|
|
24
|
+
value: 6px
|
|
25
|
+
space100:
|
|
26
|
+
description: Spacing of 8 CSS pixels.
|
|
27
|
+
type: length
|
|
28
|
+
value: 8px
|
|
29
|
+
space125:
|
|
30
|
+
description: Spacing of 10 CSS pixels.
|
|
31
|
+
type: length
|
|
32
|
+
value: 10px
|
|
33
|
+
space150:
|
|
34
|
+
description: Spacing of 12 CSS pixels.
|
|
35
|
+
type: length
|
|
36
|
+
value: 12px
|
|
37
|
+
space175:
|
|
38
|
+
description: Spacing of 14 CSS pixels.
|
|
39
|
+
type: length
|
|
40
|
+
value: 14px
|
|
41
|
+
space200:
|
|
42
|
+
description: Spacing of 16 CSS pixels.
|
|
43
|
+
type: length
|
|
44
|
+
value: 16px
|
|
45
|
+
space250:
|
|
46
|
+
description: Spacing of 20 CSS pixels.
|
|
47
|
+
type: length
|
|
48
|
+
value: 20px
|
|
49
|
+
space300:
|
|
50
|
+
description: Spacing of 24 CSS pixels.
|
|
51
|
+
type: length
|
|
52
|
+
value: 24px
|
|
53
|
+
space400:
|
|
54
|
+
description: Spacing of 32 CSS pixels.
|
|
55
|
+
type: length
|
|
56
|
+
value: 32px
|
|
57
|
+
space450:
|
|
58
|
+
description: Spacing of 36 CSS pixels.
|
|
59
|
+
type: length
|
|
60
|
+
value: 36px
|
|
61
|
+
space500:
|
|
62
|
+
description: Spacing of 40 CSS pixels.
|
|
63
|
+
type: length
|
|
64
|
+
value: 40px
|
|
65
|
+
space600:
|
|
66
|
+
description: Spacing of 48 CSS pixels.
|
|
67
|
+
type: length
|
|
68
|
+
value: 48px
|
|
69
|
+
space700:
|
|
70
|
+
description: Spacing of 56 CSS pixels.
|
|
71
|
+
type: length
|
|
72
|
+
value: 56px
|
|
73
|
+
space800:
|
|
74
|
+
description: Spacing of 64 CSS pixels.
|
|
75
|
+
type: length
|
|
76
|
+
value: 64px
|
|
77
|
+
space900:
|
|
78
|
+
description: Spacing of 72 CSS pixels.
|
|
79
|
+
type: length
|
|
80
|
+
value: 72px
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
class: system
|
|
3
|
+
attribute: State
|
|
4
|
+
description: >
|
|
5
|
+
System roles applied to stateful components. Values follow the Material 3 state tokens
|
|
6
|
+
(`StateTokens.kt` and `md.sys.state.focus-indicator`).
|
|
7
|
+
roles:
|
|
8
|
+
layer:
|
|
9
|
+
description: >
|
|
10
|
+
State-layer opacities, applied to the state-layer color while the respective interaction
|
|
11
|
+
state is the highest-precedence state entered into. The press opacity is applied to the
|
|
12
|
+
press ripple instead, painted above the state layer (`RippleAlpha.pressedAlpha`).
|
|
13
|
+
type: number
|
|
14
|
+
roles:
|
|
15
|
+
dragOpacity: 0.16
|
|
16
|
+
focusOpacity: 0.1
|
|
17
|
+
hoverOpacity: 0.08
|
|
18
|
+
pressOpacity: 0.1
|
|
19
|
+
focusIndicator:
|
|
20
|
+
description: Focus indicator roles.
|
|
21
|
+
roles:
|
|
22
|
+
thickness:
|
|
23
|
+
description: Focus indicator thickness.
|
|
24
|
+
type: length
|
|
25
|
+
value: 3px
|
|
26
|
+
innerOffset:
|
|
27
|
+
description: >
|
|
28
|
+
Inner focus indicator offset from container. This should be a value less than or equal
|
|
29
|
+
to zero. When `0`, the indicator is drawn directly outside of the container; the default
|
|
30
|
+
places the whole indicator inside of the container.
|
|
31
|
+
type: length
|
|
32
|
+
value: -3px
|
|
33
|
+
outerOffset:
|
|
34
|
+
description: >
|
|
35
|
+
Outer focus indicator offset from container. This should be a value greater than or equal
|
|
36
|
+
to zero. When `0`, there is no spacing between container and indicator.
|
|
37
|
+
type: length
|
|
38
|
+
value: 2px
|