@pg-labs-incubator/cobweb 0.0.0-stage → 0.0.2

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.
Files changed (320) hide show
  1. package/LICENSE +163 -0
  2. package/README.md +82 -2
  3. package/package.json +112 -3
  4. package/src/action/action.yaml +291 -0
  5. package/src/action/button-group.yaml +56 -0
  6. package/src/action/button.yaml +239 -0
  7. package/src/action/split-button.yaml +87 -0
  8. package/src/color/color.yaml +181 -0
  9. package/src/color/palette.yaml +147 -0
  10. package/src/container/card.yaml +170 -0
  11. package/src/container/corner-radius.yaml +50 -0
  12. package/src/container/elevation.yaml +19 -0
  13. package/src/design.yaml +41 -0
  14. package/src/feedback/feedback.yaml +225 -0
  15. package/src/icon/icon-font.yaml +28 -0
  16. package/src/icon/icon.yaml +31 -0
  17. package/src/input/date-picker.yaml +144 -0
  18. package/src/input/date-range-input.yaml +162 -0
  19. package/src/input/range-slider.yaml +161 -0
  20. package/src/input/select.yaml +230 -0
  21. package/src/input/slider.yaml +172 -0
  22. package/src/input/text-field.yaml +240 -0
  23. package/src/input/time-picker.yaml +220 -0
  24. package/src/motion/motion.yaml +371 -0
  25. package/src/navigation/app-bar.yaml +147 -0
  26. package/src/navigation/navigation.yaml +339 -0
  27. package/src/navigation/scroll.yaml +23 -0
  28. package/src/navigation/search.yaml +112 -0
  29. package/src/navigation/tabs.yaml +144 -0
  30. package/src/navigation/toolbar.yaml +130 -0
  31. package/src/selection/checkbox.yaml +162 -0
  32. package/src/selection/chip.yaml +219 -0
  33. package/src/selection/radio.yaml +125 -0
  34. package/src/selection/segmented-group.yaml +11 -0
  35. package/src/selection/segmented.yaml +69 -0
  36. package/src/selection/switch.yaml +209 -0
  37. package/src/spacing/measurement.yaml +80 -0
  38. package/src/state/state.yaml +38 -0
  39. package/src/surface/surface.yaml +483 -0
  40. package/src/text/line-height.yaml +144 -0
  41. package/src/text/typeface.yaml +31 -0
  42. package/src/text/typescale.yaml +726 -0
  43. package/target/esbuild/action/action.css +1 -0
  44. package/target/esbuild/action/base.jsx +1 -0
  45. package/target/esbuild/action/button.jsx +17 -0
  46. package/target/esbuild/action/fab-menu-context.jsx +1 -0
  47. package/target/esbuild/action/fab-menu.jsx +15 -0
  48. package/target/esbuild/action/fab.jsx +7 -0
  49. package/target/esbuild/action/group.jsx +22 -0
  50. package/target/esbuild/action/icon-button.jsx +5 -0
  51. package/target/esbuild/action/index.jsx +1 -0
  52. package/target/esbuild/action/split-button.jsx +12 -0
  53. package/target/esbuild/color/contrast.jsx +1 -0
  54. package/target/esbuild/color/dynamic.jsx +1 -0
  55. package/target/esbuild/color/hct.jsx +1 -0
  56. package/target/esbuild/color/index.css +1 -0
  57. package/target/esbuild/color/index.jsx +1 -0
  58. package/target/esbuild/color/palette.jsx +1 -0
  59. package/target/esbuild/color/scheme.jsx +1 -0
  60. package/target/esbuild/color/temperature.jsx +1 -0
  61. package/target/esbuild/container/card.css +1 -0
  62. package/target/esbuild/container/card.jsx +1 -0
  63. package/target/esbuild/container/elevation-shadow.css +1 -0
  64. package/target/esbuild/container/elevation-shadow.jsx +1 -0
  65. package/target/esbuild/container/index.jsx +1 -0
  66. package/target/esbuild/dom/client.jsx +1 -0
  67. package/target/esbuild/dom/index.jsx +1 -0
  68. package/target/esbuild/dom/server.jsx +1 -0
  69. package/target/esbuild/dom/types.jsx +1 -0
  70. package/target/esbuild/feedback/badge.jsx +15 -0
  71. package/target/esbuild/feedback/feedback.css +1 -0
  72. package/target/esbuild/feedback/focus.jsx +1 -0
  73. package/target/esbuild/feedback/index.jsx +1 -0
  74. package/target/esbuild/feedback/loading.jsx +7 -0
  75. package/target/esbuild/feedback/observe.jsx +1 -0
  76. package/target/esbuild/feedback/progress.jsx +35 -0
  77. package/target/esbuild/feedback/snackbar.jsx +23 -0
  78. package/target/esbuild/feedback/tooltip.jsx +24 -0
  79. package/target/esbuild/icon/icon.css +1 -0
  80. package/target/esbuild/icon/icon.jsx +1 -0
  81. package/target/esbuild/icon/index.jsx +1 -0
  82. package/target/esbuild/index.css +1 -0
  83. package/target/esbuild/index.jsx +1 -0
  84. package/target/esbuild/input/autocomplete.jsx +5 -0
  85. package/target/esbuild/input/base.jsx +4 -0
  86. package/target/esbuild/input/date-picker.css +1 -0
  87. package/target/esbuild/input/date-picker.jsx +104 -0
  88. package/target/esbuild/input/date-range-input.css +1 -0
  89. package/target/esbuild/input/date-time.jsx +21 -0
  90. package/target/esbuild/input/index.css +1 -0
  91. package/target/esbuild/input/index.jsx +1 -0
  92. package/target/esbuild/input/paired-input.jsx +1 -0
  93. package/target/esbuild/input/picker-dialog.css +1 -0
  94. package/target/esbuild/input/picker-dialog.jsx +14 -0
  95. package/target/esbuild/input/select.css +1 -0
  96. package/target/esbuild/input/select.jsx +63 -0
  97. package/target/esbuild/input/slider.css +1 -0
  98. package/target/esbuild/input/slider.jsx +51 -0
  99. package/target/esbuild/input/text-field.css +1 -0
  100. package/target/esbuild/input/text-field.jsx +67 -0
  101. package/target/esbuild/input/time-picker.css +1 -0
  102. package/target/esbuild/input/time-picker.jsx +29 -0
  103. package/target/esbuild/motion/frame.jsx +1 -0
  104. package/target/esbuild/motion/index.css +1 -0
  105. package/target/esbuild/motion/index.jsx +1 -0
  106. package/target/esbuild/motion/material.jsx +1 -0
  107. package/target/esbuild/motion/motion.jsx +1 -0
  108. package/target/esbuild/motion/spring.jsx +1 -0
  109. package/target/esbuild/motion/transition.css +1 -0
  110. package/target/esbuild/motion/transition.jsx +1 -0
  111. package/target/esbuild/motion/velocity.jsx +1 -0
  112. package/target/esbuild/navigation/app-bar.jsx +51 -0
  113. package/target/esbuild/navigation/base.jsx +1 -0
  114. package/target/esbuild/navigation/drawer.jsx +25 -0
  115. package/target/esbuild/navigation/index.jsx +1 -0
  116. package/target/esbuild/navigation/navigation.css +1 -0
  117. package/target/esbuild/navigation/navigation.jsx +29 -0
  118. package/target/esbuild/navigation/scroll.jsx +1 -0
  119. package/target/esbuild/navigation/search.jsx +29 -0
  120. package/target/esbuild/navigation/tabs.jsx +7 -0
  121. package/target/esbuild/navigation/toolbar.jsx +23 -0
  122. package/target/esbuild/selection/base.jsx +1 -0
  123. package/target/esbuild/selection/checkbox.jsx +14 -0
  124. package/target/esbuild/selection/chip.jsx +23 -0
  125. package/target/esbuild/selection/index.jsx +1 -0
  126. package/target/esbuild/selection/radio.jsx +9 -0
  127. package/target/esbuild/selection/segmented.jsx +15 -0
  128. package/target/esbuild/selection/selection.css +1 -0
  129. package/target/esbuild/selection/switch.jsx +14 -0
  130. package/target/esbuild/shape/corner-rounding.jsx +1 -0
  131. package/target/esbuild/shape/cubic.jsx +1 -0
  132. package/target/esbuild/shape/index.jsx +1 -0
  133. package/target/esbuild/shape/material-shapes.jsx +1 -0
  134. package/target/esbuild/shape/morph.jsx +1 -0
  135. package/target/esbuild/shape/path.jsx +1 -0
  136. package/target/esbuild/shape/point.jsx +1 -0
  137. package/target/esbuild/shape/rounded-polygon.jsx +1 -0
  138. package/target/esbuild/shape/shapes.jsx +1 -0
  139. package/target/esbuild/spacing/index.jsx +1 -0
  140. package/target/esbuild/state/component.css +1 -0
  141. package/target/esbuild/state/component.jsx +1 -0
  142. package/target/esbuild/state/controller.jsx +1 -0
  143. package/target/esbuild/state/index.jsx +1 -0
  144. package/target/esbuild/state/ripple.jsx +1 -0
  145. package/target/esbuild/state/state.jsx +1 -0
  146. package/target/esbuild/state/style.jsx +1 -0
  147. package/target/esbuild/surface/carousel-layout.jsx +1 -0
  148. package/target/esbuild/surface/carousel.css +1 -0
  149. package/target/esbuild/surface/carousel.jsx +10 -0
  150. package/target/esbuild/surface/dialog.jsx +35 -0
  151. package/target/esbuild/surface/divider.jsx +1 -0
  152. package/target/esbuild/surface/drag.jsx +1 -0
  153. package/target/esbuild/surface/gestures.css +1 -0
  154. package/target/esbuild/surface/gestures.jsx +7 -0
  155. package/target/esbuild/surface/index.css +1 -0
  156. package/target/esbuild/surface/index.jsx +1 -0
  157. package/target/esbuild/surface/interactive.jsx +1 -0
  158. package/target/esbuild/surface/list-patterns.jsx +26 -0
  159. package/target/esbuild/surface/list.css +1 -0
  160. package/target/esbuild/surface/list.jsx +9 -0
  161. package/target/esbuild/surface/menu.css +1 -0
  162. package/target/esbuild/surface/menu.jsx +12 -0
  163. package/target/esbuild/surface/scaffold.jsx +47 -0
  164. package/target/esbuild/surface/sheet.jsx +21 -0
  165. package/target/esbuild/surface/side-sheet.jsx +17 -0
  166. package/target/esbuild/surface/slots.jsx +1 -0
  167. package/target/esbuild/surface/surface.css +1 -0
  168. package/target/esbuild/surface/surface.jsx +1 -0
  169. package/target/esbuild/text/index.css +1 -0
  170. package/target/esbuild/text/index.jsx +1 -0
  171. package/target/esbuild/text/text.css +1 -0
  172. package/target/esbuild/text/text.jsx +3 -0
  173. package/target/esbuild/text/typography.css +1 -0
  174. package/target/esbuild/text/typography.jsx +1 -0
  175. package/target/esbuild/util/box-side.jsx +1 -0
  176. package/target/esbuild/util/debug.jsx +1 -0
  177. package/target/esbuild/util/dom.jsx +1 -0
  178. package/target/esbuild/util/event.jsx +1 -0
  179. package/target/esbuild/util/index.jsx +1 -0
  180. package/target/esbuild/util/preconditions.jsx +1 -0
  181. package/target/esbuild/util/reactive.jsx +1 -0
  182. package/target/tsc/action/action.css.d.ts +3 -0
  183. package/target/tsc/action/base.d.ts +211 -0
  184. package/target/tsc/action/button.d.ts +126 -0
  185. package/target/tsc/action/fab-menu-context.d.ts +16 -0
  186. package/target/tsc/action/fab-menu.d.ts +112 -0
  187. package/target/tsc/action/fab.d.ts +98 -0
  188. package/target/tsc/action/group.d.ts +166 -0
  189. package/target/tsc/action/icon-button.d.ts +79 -0
  190. package/target/tsc/action/index.d.ts +24 -0
  191. package/target/tsc/action/split-button.d.ts +78 -0
  192. package/target/tsc/color/contrast.d.ts +48 -0
  193. package/target/tsc/color/dynamic.d.ts +203 -0
  194. package/target/tsc/color/hct.d.ts +114 -0
  195. package/target/tsc/color/index.css.d.ts +3 -0
  196. package/target/tsc/color/index.d.ts +23 -0
  197. package/target/tsc/color/palette.d.ts +30 -0
  198. package/target/tsc/color/scheme.d.ts +446 -0
  199. package/target/tsc/color/temperature.d.ts +24 -0
  200. package/target/tsc/container/card.css.d.ts +3 -0
  201. package/target/tsc/container/card.d.ts +110 -0
  202. package/target/tsc/container/elevation-shadow.css.d.ts +3 -0
  203. package/target/tsc/container/elevation-shadow.d.ts +23 -0
  204. package/target/tsc/container/index.d.ts +44 -0
  205. package/target/tsc/dom/client.d.ts +387 -0
  206. package/target/tsc/dom/index.d.ts +93 -0
  207. package/target/tsc/dom/server.d.ts +65 -0
  208. package/target/tsc/dom/types.d.ts +134 -0
  209. package/target/tsc/feedback/badge.d.ts +116 -0
  210. package/target/tsc/feedback/feedback.css.d.ts +3 -0
  211. package/target/tsc/feedback/focus.d.ts +20 -0
  212. package/target/tsc/feedback/index.d.ts +17 -0
  213. package/target/tsc/feedback/loading.d.ts +194 -0
  214. package/target/tsc/feedback/observe.d.ts +75 -0
  215. package/target/tsc/feedback/progress.d.ts +281 -0
  216. package/target/tsc/feedback/snackbar.d.ts +398 -0
  217. package/target/tsc/feedback/tooltip.d.ts +326 -0
  218. package/target/tsc/icon/icon.css.d.ts +3 -0
  219. package/target/tsc/icon/icon.d.ts +69 -0
  220. package/target/tsc/icon/index.d.ts +13 -0
  221. package/target/tsc/index.css.d.ts +3 -0
  222. package/target/tsc/index.d.ts +7 -0
  223. package/target/tsc/input/autocomplete.d.ts +119 -0
  224. package/target/tsc/input/base.d.ts +282 -0
  225. package/target/tsc/input/date-picker.css.d.ts +3 -0
  226. package/target/tsc/input/date-picker.d.ts +351 -0
  227. package/target/tsc/input/date-range-input.css.d.ts +3 -0
  228. package/target/tsc/input/date-time.d.ts +171 -0
  229. package/target/tsc/input/index.css.d.ts +3 -0
  230. package/target/tsc/input/index.d.ts +27 -0
  231. package/target/tsc/input/paired-input.d.ts +435 -0
  232. package/target/tsc/input/picker-dialog.css.d.ts +3 -0
  233. package/target/tsc/input/picker-dialog.d.ts +84 -0
  234. package/target/tsc/input/select.css.d.ts +3 -0
  235. package/target/tsc/input/select.d.ts +267 -0
  236. package/target/tsc/input/slider.css.d.ts +3 -0
  237. package/target/tsc/input/slider.d.ts +372 -0
  238. package/target/tsc/input/text-field.css.d.ts +3 -0
  239. package/target/tsc/input/text-field.d.ts +415 -0
  240. package/target/tsc/input/time-picker.css.d.ts +3 -0
  241. package/target/tsc/input/time-picker.d.ts +212 -0
  242. package/target/tsc/motion/frame.d.ts +36 -0
  243. package/target/tsc/motion/index.css.d.ts +3 -0
  244. package/target/tsc/motion/index.d.ts +34 -0
  245. package/target/tsc/motion/material.d.ts +110 -0
  246. package/target/tsc/motion/motion.d.ts +235 -0
  247. package/target/tsc/motion/spring.d.ts +223 -0
  248. package/target/tsc/motion/transition.css.d.ts +3 -0
  249. package/target/tsc/motion/transition.d.ts +597 -0
  250. package/target/tsc/motion/velocity.d.ts +54 -0
  251. package/target/tsc/navigation/app-bar.d.ts +473 -0
  252. package/target/tsc/navigation/base.d.ts +331 -0
  253. package/target/tsc/navigation/drawer.d.ts +301 -0
  254. package/target/tsc/navigation/index.d.ts +25 -0
  255. package/target/tsc/navigation/navigation.css.d.ts +3 -0
  256. package/target/tsc/navigation/navigation.d.ts +537 -0
  257. package/target/tsc/navigation/scroll.d.ts +218 -0
  258. package/target/tsc/navigation/search.d.ts +332 -0
  259. package/target/tsc/navigation/tabs.d.ts +497 -0
  260. package/target/tsc/navigation/toolbar.d.ts +248 -0
  261. package/target/tsc/selection/base.d.ts +100 -0
  262. package/target/tsc/selection/checkbox.d.ts +194 -0
  263. package/target/tsc/selection/chip.d.ts +358 -0
  264. package/target/tsc/selection/index.d.ts +21 -0
  265. package/target/tsc/selection/radio.d.ts +198 -0
  266. package/target/tsc/selection/segmented.d.ts +333 -0
  267. package/target/tsc/selection/selection.css.d.ts +3 -0
  268. package/target/tsc/selection/switch.d.ts +165 -0
  269. package/target/tsc/shape/corner-rounding.d.ts +36 -0
  270. package/target/tsc/shape/cubic.d.ts +215 -0
  271. package/target/tsc/shape/index.d.ts +35 -0
  272. package/target/tsc/shape/material-shapes.d.ts +176 -0
  273. package/target/tsc/shape/morph.d.ts +91 -0
  274. package/target/tsc/shape/path.d.ts +177 -0
  275. package/target/tsc/shape/point.d.ts +165 -0
  276. package/target/tsc/shape/rounded-polygon.d.ts +289 -0
  277. package/target/tsc/shape/shapes.d.ts +76 -0
  278. package/target/tsc/spacing/index.d.ts +19 -0
  279. package/target/tsc/state/component.css.d.ts +3 -0
  280. package/target/tsc/state/component.d.ts +276 -0
  281. package/target/tsc/state/controller.d.ts +257 -0
  282. package/target/tsc/state/index.d.ts +19 -0
  283. package/target/tsc/state/ripple.d.ts +50 -0
  284. package/target/tsc/state/state.d.ts +129 -0
  285. package/target/tsc/state/style.d.ts +22 -0
  286. package/target/tsc/surface/carousel-layout.d.ts +212 -0
  287. package/target/tsc/surface/carousel.css.d.ts +3 -0
  288. package/target/tsc/surface/carousel.d.ts +231 -0
  289. package/target/tsc/surface/dialog.d.ts +582 -0
  290. package/target/tsc/surface/divider.d.ts +92 -0
  291. package/target/tsc/surface/drag.d.ts +92 -0
  292. package/target/tsc/surface/gestures.css.d.ts +3 -0
  293. package/target/tsc/surface/gestures.d.ts +292 -0
  294. package/target/tsc/surface/index.css.d.ts +3 -0
  295. package/target/tsc/surface/index.d.ts +29 -0
  296. package/target/tsc/surface/interactive.d.ts +22 -0
  297. package/target/tsc/surface/list-patterns.d.ts +384 -0
  298. package/target/tsc/surface/list.css.d.ts +3 -0
  299. package/target/tsc/surface/list.d.ts +340 -0
  300. package/target/tsc/surface/menu.css.d.ts +3 -0
  301. package/target/tsc/surface/menu.d.ts +590 -0
  302. package/target/tsc/surface/scaffold.d.ts +337 -0
  303. package/target/tsc/surface/sheet.d.ts +384 -0
  304. package/target/tsc/surface/side-sheet.d.ts +183 -0
  305. package/target/tsc/surface/slots.d.ts +21 -0
  306. package/target/tsc/surface/surface.css.d.ts +3 -0
  307. package/target/tsc/surface/surface.d.ts +192 -0
  308. package/target/tsc/text/index.css.d.ts +3 -0
  309. package/target/tsc/text/index.d.ts +18 -0
  310. package/target/tsc/text/text.css.d.ts +3 -0
  311. package/target/tsc/text/text.d.ts +94 -0
  312. package/target/tsc/text/typography.css.d.ts +3 -0
  313. package/target/tsc/text/typography.d.ts +82 -0
  314. package/target/tsc/util/box-side.d.ts +76 -0
  315. package/target/tsc/util/debug.d.ts +20 -0
  316. package/target/tsc/util/dom.d.ts +35 -0
  317. package/target/tsc/util/event.d.ts +93 -0
  318. package/target/tsc/util/index.d.ts +12 -0
  319. package/target/tsc/util/preconditions.d.ts +79 -0
  320. package/target/tsc/util/reactive.d.ts +36 -0
@@ -0,0 +1,230 @@
1
+ # SPDX-License-Identifier: MPL-2.0
2
+ class: component
3
+ attribute: Select
4
+ description: >
5
+ Select (exposed dropdown menu) roles. Selects have 2 themes, `filled` (default) and `outlined`.
6
+ The field roles mirror the text-field roles; the `menu` roles style the option menu where the
7
+ browser supports a customizable select.
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: Container height.
18
+ type: length
19
+ value: 56px
20
+ padding:
21
+ description: Horizontal padding between the container edge and its text.
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 select and the
35
+ outline of an outlined select.
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: Selected-option text roles.
54
+ roles:
55
+ color:
56
+ description: Selected-option text color.
57
+ type: color
58
+ value: $cw-Color-surface-onFill
59
+ placeholderColor:
60
+ description: Placeholder option text color.
61
+ type: color
62
+ value: $cw-Color-surface-onFillVariant
63
+ icon:
64
+ description: Leading icon and dropdown arrow roles.
65
+ roles:
66
+ size:
67
+ description: Icon size.
68
+ type: length
69
+ value: 24px
70
+ leadingColor:
71
+ description: Leading icon color.
72
+ type: color
73
+ value: $cw-Color-surface-onFillVariant
74
+ trailingColor:
75
+ description: Dropdown arrow color.
76
+ type: color
77
+ value: $cw-Color-surface-onFillVariant
78
+ supportingText:
79
+ description: Supporting text roles.
80
+ roles:
81
+ color:
82
+ description: Supporting text color.
83
+ type: color
84
+ value: $cw-Color-surface-onFillVariant
85
+ hover:
86
+ description: Roles applied while a pointer hovers the container.
87
+ roles:
88
+ indicatorColor:
89
+ description: Override for `cw-Select-indicator-color`.
90
+ type: color
91
+ value: $cw-Color-surface-onFill
92
+ labelColor:
93
+ description: Override for `cw-Select-label-color`.
94
+ type: color
95
+ value: $cw-Color-surface-onFill
96
+ stateLayerColor:
97
+ description: State-layer color.
98
+ type: color
99
+ value: $cw-Color-surface-onFill
100
+ stateLayerOpacity:
101
+ description: State-layer opacity.
102
+ type: number
103
+ value: $cw-State-layer-hoverOpacity
104
+ focus:
105
+ description: Roles applied while the select has focus.
106
+ roles:
107
+ indicatorColor:
108
+ description: Override for `cw-Select-indicator-color`.
109
+ type: color
110
+ value: $cw-Color-primary-fill
111
+ indicatorThickness:
112
+ description: Override for `cw-Select-indicator-thickness`.
113
+ type: length
114
+ value: 2px
115
+ labelColor:
116
+ description: Override for `cw-Select-label-color`.
117
+ type: color
118
+ value: $cw-Color-primary-fill
119
+ trailingIconColor:
120
+ description: Override for `cw-Select-icon-trailingColor`.
121
+ type: color
122
+ value: $cw-Color-primary-fill
123
+ error:
124
+ description: Roles applied while the select shows an error.
125
+ roles:
126
+ indicatorColor:
127
+ description: Override for `cw-Select-indicator-color`.
128
+ type: color
129
+ value: $cw-Color-error-fill
130
+ labelColor:
131
+ description: Override for `cw-Select-label-color`.
132
+ type: color
133
+ value: $cw-Color-error-fill
134
+ trailingIconColor:
135
+ description: Override for `cw-Select-icon-trailingColor`.
136
+ type: color
137
+ value: $cw-Color-error-fill
138
+ supportingTextColor:
139
+ description: Override for `cw-Select-supportingText-color`.
140
+ type: color
141
+ value: $cw-Color-error-fill
142
+ hoverIndicatorColor:
143
+ description: Override for `cw-Select-indicator-color` while hovered.
144
+ type: color
145
+ value: $cw-Color-error-onContainer
146
+ hoverLabelColor:
147
+ description: Override for `cw-Select-label-color` while hovered.
148
+ type: color
149
+ value: $cw-Color-error-onContainer
150
+ hoverTrailingIconColor:
151
+ description: Override for `cw-Select-icon-trailingColor` while hovered.
152
+ type: color
153
+ value: $cw-Color-error-onContainer
154
+ disabled:
155
+ description: Roles applied while the select is disabled.
156
+ roles:
157
+ containerColor:
158
+ description: Override for `cw-Select-container-color`.
159
+ type: color
160
+ value: $cw-Color-surface-onFill
161
+ containerOpacity:
162
+ description: Opacity of the container color.
163
+ type: number
164
+ value: 0.04
165
+ indicatorColor:
166
+ description: Override for `cw-Select-indicator-color`.
167
+ type: color
168
+ value: $cw-Color-surface-onFill
169
+ indicatorOpacity:
170
+ description: Opacity of the active indicator color.
171
+ type: number
172
+ value: 0.38
173
+ contentColor:
174
+ description: Color of the label, text, icons and supporting text.
175
+ type: color
176
+ value: $cw-Color-surface-onFill
177
+ contentOpacity:
178
+ description: Opacity of the content color.
179
+ type: number
180
+ value: 0.38
181
+ menu:
182
+ description: Option menu roles, used where the browser supports a customizable select.
183
+ roles:
184
+ color:
185
+ description: Menu container color.
186
+ type: color
187
+ value: $cw-Color-surface-container
188
+ shadowColor:
189
+ description: Menu elevation shadow color. The menu is raised to elevation level 2.
190
+ type: color
191
+ value: $cw-Color-shadow
192
+ shape:
193
+ description: Menu container corner radius.
194
+ type: length
195
+ value: $cw-CornerRadius-xsmall
196
+ itemHeight:
197
+ description: Menu item height.
198
+ type: length
199
+ value: 48px
200
+ itemPadding:
201
+ description: Horizontal menu item padding, aligning item text with the field text.
202
+ type: length
203
+ value: 16px
204
+ itemLabelColor:
205
+ description: Menu item label color.
206
+ type: color
207
+ value: $cw-Color-surface-onFill
208
+ itemStateLayerColor:
209
+ description: Menu item state-layer color, shown while an item is hovered or focused.
210
+ type: color
211
+ value: $cw-Color-surface-onFill
212
+ selectedItemColor:
213
+ description: Container color of the selected menu item.
214
+ type: color
215
+ value: $cw-Color-secondary-container
216
+ selectedItemLabelColor:
217
+ description: Label color of the selected menu item.
218
+ type: color
219
+ value: $cw-Color-secondary-onContainer
220
+ themes:
221
+ outlined:
222
+ description: Outlined select values.
223
+ values:
224
+ container-color: "#00000000"
225
+ container-shape-bottomLeft: $cw-CornerRadius-xsmall
226
+ container-shape-bottomRight: $cw-CornerRadius-xsmall
227
+ indicator-color: $cw-Color-outline
228
+ hover-stateLayerOpacity: 0
229
+ disabled-containerOpacity: 0
230
+ disabled-indicatorOpacity: 0.12
@@ -0,0 +1,172 @@
1
+ # SPDX-License-Identifier: MPL-2.0
2
+ class: component
3
+ attribute: Slider
4
+ description: >
5
+ Material 3 Expressive slider roles, after AndroidX `SliderTokens` and Compose `SliderDefaults`
6
+ colors. The default values describe the extra small slider; the `small`, `medium`, `large` and
7
+ `xlarge` themes apply the other sizes. Track heights, leading track corners, handle heights and
8
+ inset icon sizes of every size 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 and inset icons drawn on the active track.
21
+ type: color
22
+ value: $cw-Color-secondary-container
23
+ inactiveTickColor:
24
+ description: Color of stops and inset icons drawn on the inactive track.
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 track.
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 handle, 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 handle.
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 the handle and each track.
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
+ insetIconSize:
114
+ description: Inset icon size.
115
+ type: length
116
+ value: 24px
117
+ insetIconPadding:
118
+ description: Space between an inset icon and the end of its track.
119
+ type: length
120
+ value: 10px
121
+ labelTextColor:
122
+ description: Label and supporting text color.
123
+ type: color
124
+ value: $cw-Color-surface-onFill
125
+ labelSpacing:
126
+ description: Space between the label, track and supporting text.
127
+ type: length
128
+ value: 8px
129
+ disabledLabelTextColor:
130
+ description: Disabled label and supporting text color.
131
+ type: color
132
+ value: $cw-Color-surface-onFill
133
+ disabledLabelTextOpacity:
134
+ description: Opacity of the disabled label and supporting text color.
135
+ type: number
136
+ value: 0.38
137
+ touchTargetSize:
138
+ description: Minimum size of the interactive area across the track.
139
+ type: length
140
+ value: 48px
141
+ minLength:
142
+ description: Minimum track container length, along the slider orientation.
143
+ type: length
144
+ value: 12rem
145
+ themes:
146
+ small:
147
+ description: Small slider.
148
+ values:
149
+ trackHeight: 24px
150
+ trackShape: 8px
151
+ handleHeight: 44px
152
+ medium:
153
+ description: Medium slider.
154
+ values:
155
+ trackHeight: 40px
156
+ trackShape: 12px
157
+ handleHeight: 44px
158
+ insetIconSize: 24px
159
+ large:
160
+ description: Large slider.
161
+ values:
162
+ trackHeight: 56px
163
+ trackShape: 16px
164
+ handleHeight: 68px
165
+ insetIconSize: 24px
166
+ xlarge:
167
+ description: Extra large slider.
168
+ values:
169
+ trackHeight: 96px
170
+ trackShape: 28px
171
+ handleHeight: 108px
172
+ insetIconSize: 32px
@@ -0,0 +1,240 @@
1
+ # SPDX-License-Identifier: MPL-2.0
2
+ class: component
3
+ attribute: TextField
4
+ description: >
5
+ Text-field roles, shared by text, password, date, time and autocomplete fields. Text fields have
6
+ 2 themes, `filled` (default) and `outlined`. Autocomplete fields additionally use the `menu`
7
+ roles for their suggestion menu.
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 text.
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: Input text roles.
54
+ roles:
55
+ color:
56
+ description: Input text color.
57
+ type: color
58
+ value: $cw-Color-surface-onFill
59
+ caretColor:
60
+ description: Text cursor color.
61
+ type: color
62
+ value: $cw-Color-primary-fill
63
+ placeholderColor:
64
+ description: Placeholder text color.
65
+ type: color
66
+ value: $cw-Color-surface-onFillVariant
67
+ affixColor:
68
+ description: Prefix and suffix text color.
69
+ type: color
70
+ value: $cw-Color-surface-onFillVariant
71
+ icon:
72
+ description: Leading and trailing icon roles.
73
+ roles:
74
+ size:
75
+ description: Icon size.
76
+ type: length
77
+ value: 24px
78
+ leadingColor:
79
+ description: Leading icon color.
80
+ type: color
81
+ value: $cw-Color-surface-onFillVariant
82
+ trailingColor:
83
+ description: Trailing icon color.
84
+ type: color
85
+ value: $cw-Color-surface-onFillVariant
86
+ supportingText:
87
+ description: Supporting text and character counter roles.
88
+ roles:
89
+ color:
90
+ description: Supporting text color.
91
+ type: color
92
+ value: $cw-Color-surface-onFillVariant
93
+ hover:
94
+ description: Roles applied while a pointer hovers the container.
95
+ roles:
96
+ indicatorColor:
97
+ description: Override for `cw-TextField-indicator-color`.
98
+ type: color
99
+ value: $cw-Color-surface-onFill
100
+ labelColor:
101
+ description: Override for `cw-TextField-label-color`.
102
+ type: color
103
+ value: $cw-Color-surface-onFillVariant
104
+ stateLayerColor:
105
+ description: State-layer color.
106
+ type: color
107
+ value: $cw-Color-surface-onFill
108
+ stateLayerOpacity:
109
+ description: State-layer opacity.
110
+ type: number
111
+ value: $cw-State-layer-hoverOpacity
112
+ focus:
113
+ description: Roles applied while the input has focus.
114
+ roles:
115
+ indicatorColor:
116
+ description: Override for `cw-TextField-indicator-color`.
117
+ type: color
118
+ value: $cw-Color-primary-fill
119
+ indicatorThickness:
120
+ description: Override for `cw-TextField-indicator-thickness`.
121
+ type: length
122
+ value: 2px
123
+ labelColor:
124
+ description: Override for `cw-TextField-label-color`.
125
+ type: color
126
+ value: $cw-Color-primary-fill
127
+ trailingIconColor:
128
+ description: Override for `cw-TextField-icon-trailingColor`.
129
+ type: color
130
+ value: $cw-Color-surface-onFillVariant
131
+ error:
132
+ description: Roles applied while the field shows an error.
133
+ roles:
134
+ indicatorColor:
135
+ description: Override for `cw-TextField-indicator-color`.
136
+ type: color
137
+ value: $cw-Color-error-fill
138
+ labelColor:
139
+ description: Override for `cw-TextField-label-color`.
140
+ type: color
141
+ value: $cw-Color-error-fill
142
+ caretColor:
143
+ description: Override for `cw-TextField-input-caretColor`.
144
+ type: color
145
+ value: $cw-Color-error-fill
146
+ trailingIconColor:
147
+ description: Override for `cw-TextField-icon-trailingColor`.
148
+ type: color
149
+ value: $cw-Color-error-fill
150
+ supportingTextColor:
151
+ description: Override for `cw-TextField-supportingText-color`.
152
+ type: color
153
+ value: $cw-Color-error-fill
154
+ hoverIndicatorColor:
155
+ description: Override for `cw-TextField-indicator-color` while hovered.
156
+ type: color
157
+ value: $cw-Color-error-onContainer
158
+ hoverLabelColor:
159
+ description: Override for `cw-TextField-label-color` while hovered.
160
+ type: color
161
+ value: $cw-Color-error-onContainer
162
+ hoverTrailingIconColor:
163
+ description: Override for `cw-TextField-icon-trailingColor` while hovered.
164
+ type: color
165
+ value: $cw-Color-error-onContainer
166
+ disabled:
167
+ description: Roles applied while the field is disabled.
168
+ roles:
169
+ containerColor:
170
+ description: Override for `cw-TextField-container-color`.
171
+ type: color
172
+ value: $cw-Color-surface-onFill
173
+ containerOpacity:
174
+ description: Opacity of the container color.
175
+ type: number
176
+ value: 0.04
177
+ indicatorColor:
178
+ description: Override for `cw-TextField-indicator-color`.
179
+ type: color
180
+ value: $cw-Color-surface-onFill
181
+ indicatorOpacity:
182
+ description: Opacity of the active indicator color.
183
+ type: number
184
+ value: 0.38
185
+ contentColor:
186
+ description: Color of the label, text, icons and supporting text.
187
+ type: color
188
+ value: $cw-Color-surface-onFill
189
+ contentOpacity:
190
+ description: Opacity of the content color.
191
+ type: number
192
+ value: 0.38
193
+ menu:
194
+ description: Suggestion menu roles of autocomplete fields.
195
+ roles:
196
+ color:
197
+ description: Menu container color.
198
+ type: color
199
+ value: $cw-Color-surface-container
200
+ elevation:
201
+ description: Menu container elevation.
202
+ type: integer
203
+ value: $cw-Elevation-level-2
204
+ shadowColor:
205
+ description: Menu elevation shadow color.
206
+ type: color
207
+ value: $cw-Color-shadow
208
+ shape:
209
+ description: Menu container corner radius.
210
+ type: length
211
+ value: $cw-CornerRadius-xsmall
212
+ itemHeight:
213
+ description: Menu item height.
214
+ type: length
215
+ value: 48px
216
+ itemPadding:
217
+ description: Horizontal menu item padding, aligning item text with the field text.
218
+ type: length
219
+ value: 16px
220
+ itemLabelColor:
221
+ description: Menu item label color.
222
+ type: color
223
+ value: $cw-Color-surface-onFill
224
+ itemStateLayerColor:
225
+ description: >
226
+ Menu item state-layer color, shown while an item is hovered, pressed or active.
227
+ type: color
228
+ value: $cw-Color-surface-onFill
229
+ themes:
230
+ outlined:
231
+ description: Outlined text-field values.
232
+ values:
233
+ container-color: "#00000000"
234
+ container-shape-bottomLeft: $cw-CornerRadius-xsmall
235
+ container-shape-bottomRight: $cw-CornerRadius-xsmall
236
+ indicator-color: $cw-Color-outline
237
+ hover-labelColor: $cw-Color-surface-onFill
238
+ hover-stateLayerOpacity: 0
239
+ disabled-containerOpacity: 0
240
+ disabled-indicatorOpacity: 0.12