@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,31 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
class: component
|
|
3
|
+
attribute: Icon
|
|
4
|
+
description: Icon component roles.
|
|
5
|
+
roles:
|
|
6
|
+
color:
|
|
7
|
+
description: Icon color.
|
|
8
|
+
type: color
|
|
9
|
+
value: $cw-Color-surface-onFill
|
|
10
|
+
opacity:
|
|
11
|
+
description: Icon opacity.
|
|
12
|
+
type: number
|
|
13
|
+
value: 1
|
|
14
|
+
fill:
|
|
15
|
+
description: >
|
|
16
|
+
Icon fill, from `0` (unfilled) to `1` (filled). Intermediate values interpolate the fill
|
|
17
|
+
axis of the icon font, so that a transition of this role animates the fill.
|
|
18
|
+
type: number
|
|
19
|
+
value: 0
|
|
20
|
+
grade:
|
|
21
|
+
description: Precise thickness of icon.
|
|
22
|
+
type: integer
|
|
23
|
+
value: 0
|
|
24
|
+
size:
|
|
25
|
+
description: Icon size.
|
|
26
|
+
type: length
|
|
27
|
+
value: 24px
|
|
28
|
+
weight:
|
|
29
|
+
description: Icon weight.
|
|
30
|
+
type: number
|
|
31
|
+
value: 400
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
class: component
|
|
3
|
+
attribute: DatePicker
|
|
4
|
+
description: >
|
|
5
|
+
Material 3 date picker roles. The defaults describe the modal date and date range pickers
|
|
6
|
+
(AndroidX `DatePickerModalTokens`); the `docked` theme applies the docked date picker tokens of
|
|
7
|
+
material-web (`_md-comp-date-picker-docked.scss`).
|
|
8
|
+
roles:
|
|
9
|
+
containerColor:
|
|
10
|
+
description: Picker container color.
|
|
11
|
+
type: color
|
|
12
|
+
value: $cw-Color-surface-containerHigh
|
|
13
|
+
containerShape:
|
|
14
|
+
description: Picker container corner radius.
|
|
15
|
+
type: length
|
|
16
|
+
value: $cw-CornerRadius-xlarge
|
|
17
|
+
containerWidth:
|
|
18
|
+
description: Picker width.
|
|
19
|
+
type: length
|
|
20
|
+
value: 360px
|
|
21
|
+
headerSupportingTextColor:
|
|
22
|
+
description: Title color of the header.
|
|
23
|
+
type: color
|
|
24
|
+
value: $cw-Color-surface-onFillVariant
|
|
25
|
+
headerHeadlineColor:
|
|
26
|
+
description: Headline color of the header.
|
|
27
|
+
type: color
|
|
28
|
+
value: $cw-Color-surface-onFillVariant
|
|
29
|
+
dividerColor:
|
|
30
|
+
description: Color of the divider below the header.
|
|
31
|
+
type: color
|
|
32
|
+
value: $cw-Color-outlineVariant
|
|
33
|
+
navigationColor:
|
|
34
|
+
description: >
|
|
35
|
+
Color of the year toggle, menu buttons and month arrows (Compose `navigationContentColor`).
|
|
36
|
+
type: color
|
|
37
|
+
value: $cw-Color-surface-onFillVariant
|
|
38
|
+
weekdaysLabelTextColor:
|
|
39
|
+
description: Weekday column header color.
|
|
40
|
+
type: color
|
|
41
|
+
value: $cw-Color-surface-onFill
|
|
42
|
+
monthSubheadColor:
|
|
43
|
+
description: Month subhead color of a continuous range list.
|
|
44
|
+
type: color
|
|
45
|
+
value: $cw-Color-surface-onFillVariant
|
|
46
|
+
dateCellSize:
|
|
47
|
+
description: Size of a date cell, its touch target.
|
|
48
|
+
type: length
|
|
49
|
+
value: 48px
|
|
50
|
+
dateContainerSize:
|
|
51
|
+
description: Diameter of a date container and its state layer.
|
|
52
|
+
type: length
|
|
53
|
+
value: 40px
|
|
54
|
+
dateLabelTextColor:
|
|
55
|
+
description: Unselected date color, also its state layer color.
|
|
56
|
+
type: color
|
|
57
|
+
value: $cw-Color-surface-onFill
|
|
58
|
+
dateStateLayerColor:
|
|
59
|
+
description: State layer color of an unselected date.
|
|
60
|
+
type: color
|
|
61
|
+
value: $cw-Color-surface-onFillVariant
|
|
62
|
+
dateOutsideMonthLabelTextColor:
|
|
63
|
+
description: Color of the days of adjacent months in a docked picker.
|
|
64
|
+
type: color
|
|
65
|
+
value: $cw-Color-surface-onFillVariant
|
|
66
|
+
dateSelectedContainerColor:
|
|
67
|
+
description: Selected date container color.
|
|
68
|
+
type: color
|
|
69
|
+
value: $cw-Color-primary-fill
|
|
70
|
+
dateSelectedLabelTextColor:
|
|
71
|
+
description: Selected date color, also its state layer color.
|
|
72
|
+
type: color
|
|
73
|
+
value: $cw-Color-primary-onFill
|
|
74
|
+
dateTodayColor:
|
|
75
|
+
description: Color of today's date, its outline and its state layer, while it is not selected.
|
|
76
|
+
type: color
|
|
77
|
+
value: $cw-Color-primary-fill
|
|
78
|
+
dateTodayOutlineWidth:
|
|
79
|
+
description: Outline width of today's date while it is not selected.
|
|
80
|
+
type: length
|
|
81
|
+
value: 1px
|
|
82
|
+
rangeContainerColor:
|
|
83
|
+
description: Fill color between the endpoints of a range.
|
|
84
|
+
type: color
|
|
85
|
+
value: $cw-Color-secondary-container
|
|
86
|
+
rangeContainerHeight:
|
|
87
|
+
description: Height of the fill between the endpoints of a range.
|
|
88
|
+
type: length
|
|
89
|
+
value: 40px
|
|
90
|
+
rangeLabelTextColor:
|
|
91
|
+
description: Color of the dates between the endpoints of a range.
|
|
92
|
+
type: color
|
|
93
|
+
value: $cw-Color-secondary-onContainer
|
|
94
|
+
rangeListHeight:
|
|
95
|
+
description: >
|
|
96
|
+
Height of the scrolling month list of a continuous range picker. Compose fills the screen
|
|
97
|
+
height; the web adaptation shows about one and a half months.
|
|
98
|
+
type: length
|
|
99
|
+
value: 432px
|
|
100
|
+
disabledOpacity:
|
|
101
|
+
description: Opacity of the colors of dates and years that cannot be selected.
|
|
102
|
+
type: number
|
|
103
|
+
value: 0.38
|
|
104
|
+
yearContainerWidth:
|
|
105
|
+
description: Width of a year container and its state layer.
|
|
106
|
+
type: length
|
|
107
|
+
value: 72px
|
|
108
|
+
yearContainerHeight:
|
|
109
|
+
description: Height of a year container and its state layer.
|
|
110
|
+
type: length
|
|
111
|
+
value: 36px
|
|
112
|
+
yearLabelTextColor:
|
|
113
|
+
description: Unselected year color, also its state layer color.
|
|
114
|
+
type: color
|
|
115
|
+
value: $cw-Color-surface-onFillVariant
|
|
116
|
+
yearSelectedContainerColor:
|
|
117
|
+
description: Selected year container color.
|
|
118
|
+
type: color
|
|
119
|
+
value: $cw-Color-primary-fill
|
|
120
|
+
yearSelectedLabelTextColor:
|
|
121
|
+
description: Selected year color, also its state layer color.
|
|
122
|
+
type: color
|
|
123
|
+
value: $cw-Color-primary-onFill
|
|
124
|
+
menuItemHeight:
|
|
125
|
+
description: Height of a docked month or year list item.
|
|
126
|
+
type: length
|
|
127
|
+
value: 48px
|
|
128
|
+
menuItemLabelTextColor:
|
|
129
|
+
description: Label color of a docked month or year list item.
|
|
130
|
+
type: color
|
|
131
|
+
value: $cw-Color-surface-onFillVariant
|
|
132
|
+
menuItemSelectedContainerColor:
|
|
133
|
+
description: Container color of the selected docked month or year list item.
|
|
134
|
+
type: color
|
|
135
|
+
value: $cw-Color-secondary-container
|
|
136
|
+
menuItemSelectedLabelTextColor:
|
|
137
|
+
description: Label color of the selected docked month or year list item.
|
|
138
|
+
type: color
|
|
139
|
+
value: $cw-Color-secondary-onContainer
|
|
140
|
+
themes:
|
|
141
|
+
docked:
|
|
142
|
+
description: Docked date picker.
|
|
143
|
+
values:
|
|
144
|
+
containerShape: $cw-CornerRadius-large
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
class: component
|
|
3
|
+
attribute: DateRangeInput
|
|
4
|
+
description: >
|
|
5
|
+
Date range input roles, after the Material 3 text field. The defaults describe the filled field
|
|
6
|
+
(AndroidX `FilledTextFieldTokens`); the `outlined` theme applies the outlined field
|
|
7
|
+
(`OutlinedTextFieldTokens`).
|
|
8
|
+
roles:
|
|
9
|
+
container:
|
|
10
|
+
description: Container roles.
|
|
11
|
+
roles:
|
|
12
|
+
color:
|
|
13
|
+
description: Container color.
|
|
14
|
+
type: color
|
|
15
|
+
value: $cw-Color-surface-containerHighest
|
|
16
|
+
height:
|
|
17
|
+
description: Minimum container height.
|
|
18
|
+
type: length
|
|
19
|
+
value: 56px
|
|
20
|
+
padding:
|
|
21
|
+
description: Horizontal padding between the container edge and its content.
|
|
22
|
+
type: length
|
|
23
|
+
value: 16px
|
|
24
|
+
shape:
|
|
25
|
+
description: Container shape.
|
|
26
|
+
type: length
|
|
27
|
+
roles:
|
|
28
|
+
topLeft: $cw-CornerRadius-xsmall
|
|
29
|
+
topRight: $cw-CornerRadius-xsmall
|
|
30
|
+
bottomRight: 0px
|
|
31
|
+
bottomLeft: 0px
|
|
32
|
+
indicator:
|
|
33
|
+
description: >
|
|
34
|
+
Active indicator roles. The active indicator is the bottom line of a filled field and the
|
|
35
|
+
outline of an outlined field.
|
|
36
|
+
roles:
|
|
37
|
+
color:
|
|
38
|
+
description: Active indicator color.
|
|
39
|
+
type: color
|
|
40
|
+
value: $cw-Color-surface-onFillVariant
|
|
41
|
+
thickness:
|
|
42
|
+
description: Active indicator thickness.
|
|
43
|
+
type: length
|
|
44
|
+
value: 1px
|
|
45
|
+
label:
|
|
46
|
+
description: Label roles.
|
|
47
|
+
roles:
|
|
48
|
+
color:
|
|
49
|
+
description: Label color.
|
|
50
|
+
type: color
|
|
51
|
+
value: $cw-Color-surface-onFillVariant
|
|
52
|
+
input:
|
|
53
|
+
description: Date text roles.
|
|
54
|
+
roles:
|
|
55
|
+
color:
|
|
56
|
+
description: Date text and separator color.
|
|
57
|
+
type: color
|
|
58
|
+
value: $cw-Color-surface-onFill
|
|
59
|
+
icon:
|
|
60
|
+
description: Leading and trailing icon roles.
|
|
61
|
+
roles:
|
|
62
|
+
size:
|
|
63
|
+
description: Icon size.
|
|
64
|
+
type: length
|
|
65
|
+
value: 24px
|
|
66
|
+
color:
|
|
67
|
+
description: Icon, prefix and suffix color.
|
|
68
|
+
type: color
|
|
69
|
+
value: $cw-Color-surface-onFillVariant
|
|
70
|
+
supportingText:
|
|
71
|
+
description: Supporting text roles.
|
|
72
|
+
roles:
|
|
73
|
+
color:
|
|
74
|
+
description: Supporting text color.
|
|
75
|
+
type: color
|
|
76
|
+
value: $cw-Color-surface-onFillVariant
|
|
77
|
+
hover:
|
|
78
|
+
description: Roles of a hovered field.
|
|
79
|
+
roles:
|
|
80
|
+
indicatorColor:
|
|
81
|
+
description: Override for `cw-DateRangeInput-indicator-color`.
|
|
82
|
+
type: color
|
|
83
|
+
value: $cw-Color-surface-onFill
|
|
84
|
+
stateLayerColor:
|
|
85
|
+
description: State-layer color.
|
|
86
|
+
type: color
|
|
87
|
+
value: $cw-Color-surface-onFill
|
|
88
|
+
stateLayerOpacity:
|
|
89
|
+
description: State-layer opacity.
|
|
90
|
+
type: number
|
|
91
|
+
value: $cw-State-layer-hoverOpacity
|
|
92
|
+
focus:
|
|
93
|
+
description: Roles of a field whose date has focus.
|
|
94
|
+
roles:
|
|
95
|
+
indicatorColor:
|
|
96
|
+
description: Override for `cw-DateRangeInput-indicator-color`.
|
|
97
|
+
type: color
|
|
98
|
+
value: $cw-Color-primary-fill
|
|
99
|
+
indicatorThickness:
|
|
100
|
+
description: Override for `cw-DateRangeInput-indicator-thickness`.
|
|
101
|
+
type: length
|
|
102
|
+
value: 2px
|
|
103
|
+
labelColor:
|
|
104
|
+
description: Override for `cw-DateRangeInput-label-color`.
|
|
105
|
+
type: color
|
|
106
|
+
value: $cw-Color-primary-fill
|
|
107
|
+
error:
|
|
108
|
+
description: Roles of an invalid field.
|
|
109
|
+
roles:
|
|
110
|
+
indicatorColor:
|
|
111
|
+
description: Override for `cw-DateRangeInput-indicator-color`.
|
|
112
|
+
type: color
|
|
113
|
+
value: $cw-Color-error-fill
|
|
114
|
+
hoverIndicatorColor:
|
|
115
|
+
description: Override for `cw-DateRangeInput-indicator-color` while hovered.
|
|
116
|
+
type: color
|
|
117
|
+
value: $cw-Color-error-onContainer
|
|
118
|
+
labelColor:
|
|
119
|
+
description: Override for `cw-DateRangeInput-label-color`.
|
|
120
|
+
type: color
|
|
121
|
+
value: $cw-Color-error-fill
|
|
122
|
+
supportingTextColor:
|
|
123
|
+
description: Override for `cw-DateRangeInput-supportingText-color`.
|
|
124
|
+
type: color
|
|
125
|
+
value: $cw-Color-error-fill
|
|
126
|
+
disabled:
|
|
127
|
+
description: Roles of a disabled field.
|
|
128
|
+
roles:
|
|
129
|
+
containerColor:
|
|
130
|
+
description: Container color.
|
|
131
|
+
type: color
|
|
132
|
+
value: $cw-Color-surface-onFill
|
|
133
|
+
containerOpacity:
|
|
134
|
+
description: Opacity of the container color.
|
|
135
|
+
type: number
|
|
136
|
+
value: 0.04
|
|
137
|
+
indicatorColor:
|
|
138
|
+
description: Active indicator color.
|
|
139
|
+
type: color
|
|
140
|
+
value: $cw-Color-surface-onFill
|
|
141
|
+
indicatorOpacity:
|
|
142
|
+
description: Opacity of the active indicator color.
|
|
143
|
+
type: number
|
|
144
|
+
value: 0.38
|
|
145
|
+
contentColor:
|
|
146
|
+
description: Label, date, icon and supporting text color.
|
|
147
|
+
type: color
|
|
148
|
+
value: $cw-Color-surface-onFill
|
|
149
|
+
contentOpacity:
|
|
150
|
+
description: Opacity of the content color.
|
|
151
|
+
type: number
|
|
152
|
+
value: 0.38
|
|
153
|
+
themes:
|
|
154
|
+
outlined:
|
|
155
|
+
description: Outlined date range input.
|
|
156
|
+
values:
|
|
157
|
+
container-color: "#00000000"
|
|
158
|
+
container-shape-bottomLeft: $cw-CornerRadius-xsmall
|
|
159
|
+
container-shape-bottomRight: $cw-CornerRadius-xsmall
|
|
160
|
+
indicator-color: $cw-Color-outline
|
|
161
|
+
hover-stateLayerOpacity: 0
|
|
162
|
+
disabled-containerOpacity: 0
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
# SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
class: component
|
|
3
|
+
attribute: RangeSlider
|
|
4
|
+
description: >
|
|
5
|
+
Material 3 Expressive range slider roles. Range sliders use the slider token set (AndroidX
|
|
6
|
+
`SliderTokens`, Compose `SliderDefaults` colors); the defaults describe the extra small range
|
|
7
|
+
slider and the `small`, `medium`, `large` and `xlarge` themes apply the other sizes, whose track
|
|
8
|
+
heights, leading track corners and handle heights are the `m3_comp_slider_*` dimensions of
|
|
9
|
+
material-components-android `lib/java/com/google/android/material/slider/res/values/tokens.xml`.
|
|
10
|
+
roles:
|
|
11
|
+
activeTrackColor:
|
|
12
|
+
description: Active track and stop indicator color.
|
|
13
|
+
type: color
|
|
14
|
+
value: $cw-Color-primary-fill
|
|
15
|
+
inactiveTrackColor:
|
|
16
|
+
description: Inactive track color.
|
|
17
|
+
type: color
|
|
18
|
+
value: $cw-Color-secondary-container
|
|
19
|
+
activeTickColor:
|
|
20
|
+
description: Color of stops drawn on the active track.
|
|
21
|
+
type: color
|
|
22
|
+
value: $cw-Color-secondary-container
|
|
23
|
+
inactiveTickColor:
|
|
24
|
+
description: Color of stops drawn on the inactive tracks.
|
|
25
|
+
type: color
|
|
26
|
+
value: $cw-Color-primary-fill
|
|
27
|
+
handleColor:
|
|
28
|
+
description: Handle color.
|
|
29
|
+
type: color
|
|
30
|
+
value: $cw-Color-primary-fill
|
|
31
|
+
disabledActiveTrackColor:
|
|
32
|
+
description: >
|
|
33
|
+
Disabled active track and stop indicator color, also used for stops on the inactive tracks.
|
|
34
|
+
type: color
|
|
35
|
+
value: $cw-Color-surface-onFill
|
|
36
|
+
disabledActiveTrackOpacity:
|
|
37
|
+
description: Opacity of the disabled active track color.
|
|
38
|
+
type: number
|
|
39
|
+
value: 0.38
|
|
40
|
+
disabledInactiveTrackColor:
|
|
41
|
+
description: Disabled inactive track color, also used for stops on the active track.
|
|
42
|
+
type: color
|
|
43
|
+
value: $cw-Color-surface-onFill
|
|
44
|
+
disabledInactiveTrackOpacity:
|
|
45
|
+
description: Opacity of the disabled inactive track color.
|
|
46
|
+
type: number
|
|
47
|
+
value: 0.12
|
|
48
|
+
disabledHandleColor:
|
|
49
|
+
description: Disabled handle color, composited over the surface color.
|
|
50
|
+
type: color
|
|
51
|
+
value: $cw-Color-surface-onFill
|
|
52
|
+
disabledHandleOpacity:
|
|
53
|
+
description: Opacity of the disabled handle color.
|
|
54
|
+
type: number
|
|
55
|
+
value: 0.38
|
|
56
|
+
valueIndicatorContainerColor:
|
|
57
|
+
description: Value indicator container color.
|
|
58
|
+
type: color
|
|
59
|
+
value: $cw-Color-surface-inverseFill
|
|
60
|
+
valueIndicatorLabelTextColor:
|
|
61
|
+
description: Value indicator text color.
|
|
62
|
+
type: color
|
|
63
|
+
value: $cw-Color-surface-inverseOnFill
|
|
64
|
+
valueIndicatorHeight:
|
|
65
|
+
description: Value indicator container height.
|
|
66
|
+
type: length
|
|
67
|
+
value: 44px
|
|
68
|
+
valueIndicatorWidth:
|
|
69
|
+
description: Minimum value indicator container width.
|
|
70
|
+
type: length
|
|
71
|
+
value: 48px
|
|
72
|
+
valueIndicatorBottomSpace:
|
|
73
|
+
description: Space between the value indicator and the handle.
|
|
74
|
+
type: length
|
|
75
|
+
value: 12px
|
|
76
|
+
trackHeight:
|
|
77
|
+
description: Active and inactive track height.
|
|
78
|
+
type: length
|
|
79
|
+
value: 16px
|
|
80
|
+
trackShape:
|
|
81
|
+
description: >
|
|
82
|
+
Corner radius of the track ends away from the handles, limited to half the track height.
|
|
83
|
+
type: length
|
|
84
|
+
value: 8px
|
|
85
|
+
insideCornerSize:
|
|
86
|
+
description: Corner radius of the track ends next to the handles.
|
|
87
|
+
type: length
|
|
88
|
+
value: 2px
|
|
89
|
+
handleHeight:
|
|
90
|
+
description: Handle height.
|
|
91
|
+
type: length
|
|
92
|
+
value: 44px
|
|
93
|
+
handleWidth:
|
|
94
|
+
description: Handle width at rest and while hovered.
|
|
95
|
+
type: length
|
|
96
|
+
value: 4px
|
|
97
|
+
pressedHandleWidth:
|
|
98
|
+
description: Handle width while pressed, dragged or focused.
|
|
99
|
+
type: length
|
|
100
|
+
value: 2px
|
|
101
|
+
handleGap:
|
|
102
|
+
description: Space between each handle and the tracks.
|
|
103
|
+
type: length
|
|
104
|
+
value: 6px
|
|
105
|
+
stopIndicatorSize:
|
|
106
|
+
description: Diameter of stop indicators and step stops.
|
|
107
|
+
type: length
|
|
108
|
+
value: 4px
|
|
109
|
+
tickMinSpacing:
|
|
110
|
+
description: Minimum distance between drawn step stops; denser steps draw every n-th stop.
|
|
111
|
+
type: length
|
|
112
|
+
value: 8px
|
|
113
|
+
labelTextColor:
|
|
114
|
+
description: Legend and supporting text color.
|
|
115
|
+
type: color
|
|
116
|
+
value: $cw-Color-surface-onFill
|
|
117
|
+
labelSpacing:
|
|
118
|
+
description: Space between the legend, track and supporting text.
|
|
119
|
+
type: length
|
|
120
|
+
value: 8px
|
|
121
|
+
disabledLabelTextColor:
|
|
122
|
+
description: Disabled legend and supporting text color.
|
|
123
|
+
type: color
|
|
124
|
+
value: $cw-Color-surface-onFill
|
|
125
|
+
disabledLabelTextOpacity:
|
|
126
|
+
description: Opacity of the disabled legend and supporting text color.
|
|
127
|
+
type: number
|
|
128
|
+
value: 0.38
|
|
129
|
+
touchTargetSize:
|
|
130
|
+
description: Minimum size of the interactive area across the track.
|
|
131
|
+
type: length
|
|
132
|
+
value: 48px
|
|
133
|
+
minLength:
|
|
134
|
+
description: Minimum track container length, along the slider orientation.
|
|
135
|
+
type: length
|
|
136
|
+
value: 12rem
|
|
137
|
+
themes:
|
|
138
|
+
small:
|
|
139
|
+
description: Small range slider.
|
|
140
|
+
values:
|
|
141
|
+
trackHeight: 24px
|
|
142
|
+
trackShape: 8px
|
|
143
|
+
handleHeight: 44px
|
|
144
|
+
medium:
|
|
145
|
+
description: Medium range slider.
|
|
146
|
+
values:
|
|
147
|
+
trackHeight: 40px
|
|
148
|
+
trackShape: 12px
|
|
149
|
+
handleHeight: 44px
|
|
150
|
+
large:
|
|
151
|
+
description: Large range slider.
|
|
152
|
+
values:
|
|
153
|
+
trackHeight: 56px
|
|
154
|
+
trackShape: 16px
|
|
155
|
+
handleHeight: 68px
|
|
156
|
+
xlarge:
|
|
157
|
+
description: Extra large range slider.
|
|
158
|
+
values:
|
|
159
|
+
trackHeight: 96px
|
|
160
|
+
trackShape: 28px
|
|
161
|
+
handleHeight: 108px
|