@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,220 @@
1
+ # SPDX-License-Identifier: MPL-2.0
2
+ class: component
3
+ attribute: TimePicker
4
+ description: >
5
+ Material 3 time picker roles, after AndroidX `TimePickerTokens` and `TimeInputTokens` (v0_210)
6
+ and the Compose `TimePicker` layout. Roles are applied to the picker root, which publishes them
7
+ to the time selectors, period selector, clock dial and time input fields.
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: Portrait picker width.
19
+ type: length
20
+ value: 328px
21
+ landscapeContainerWidth:
22
+ description: Landscape picker width.
23
+ type: length
24
+ value: 584px
25
+ headlineColor:
26
+ description: Headline color.
27
+ type: color
28
+ value: $cw-Color-surface-onFillVariant
29
+ timeContainerColor:
30
+ description: Container color of an unselected time selector.
31
+ type: color
32
+ value: $cw-Color-surface-containerHighest
33
+ timeLabelTextColor:
34
+ description: Label color of an unselected time selector.
35
+ type: color
36
+ value: $cw-Color-surface-onFill
37
+ timeStateLayerColor:
38
+ description: State-layer color of an unselected time selector.
39
+ type: color
40
+ value: $cw-Color-surface-onFill
41
+ timeSelectedContainerColor:
42
+ description: Container color of the selected time selector.
43
+ type: color
44
+ value: $cw-Color-primary-container
45
+ timeSelectedLabelTextColor:
46
+ description: Label color of the selected time selector.
47
+ type: color
48
+ value: $cw-Color-primary-onContainer
49
+ timeSelectedStateLayerColor:
50
+ description: State-layer color of the selected time selector.
51
+ type: color
52
+ value: $cw-Color-primary-onContainer
53
+ timeSelectorShape:
54
+ description: Corner radius of the time selectors.
55
+ type: length
56
+ value: $cw-CornerRadius-small
57
+ timeSelectorWidth:
58
+ description: Width of a time selector next to a period selector, and in landscape.
59
+ type: length
60
+ value: 96px
61
+ timeSelector24hWidth:
62
+ description: Width of a time selector of a portrait 24-hour picker.
63
+ type: length
64
+ value: 114px
65
+ timeSelectorHeight:
66
+ description: Height of the time selectors.
67
+ type: length
68
+ value: 80px
69
+ timeSeparatorColor:
70
+ description: Color of the separator between the hour and the minute.
71
+ type: color
72
+ value: $cw-Color-surface-onFill
73
+ periodLabelTextColor:
74
+ description: Label color of the unselected period.
75
+ type: color
76
+ value: $cw-Color-surface-onFillVariant
77
+ periodStateLayerColor:
78
+ description: State-layer color of the unselected period.
79
+ type: color
80
+ value: $cw-Color-surface-onFillVariant
81
+ periodSelectedContainerColor:
82
+ description: Container color of the selected period.
83
+ type: color
84
+ value: $cw-Color-tertiary-container
85
+ periodSelectedLabelTextColor:
86
+ description: Label color of the selected period.
87
+ type: color
88
+ value: $cw-Color-tertiary-onContainer
89
+ periodSelectedStateLayerColor:
90
+ description: State-layer color of the selected period.
91
+ type: color
92
+ value: $cw-Color-tertiary-onContainer
93
+ periodOutlineColor:
94
+ description: Color of the period selector outline and of the divider between the periods.
95
+ type: color
96
+ value: $cw-Color-outline
97
+ periodOutlineWidth:
98
+ description: Width of the period selector outline and of the divider between the periods.
99
+ type: length
100
+ value: 1px
101
+ periodShape:
102
+ description: Corner radius of the period selector.
103
+ type: length
104
+ value: $cw-CornerRadius-small
105
+ periodVerticalWidth:
106
+ description: Width of the vertical period selector of a portrait picker.
107
+ type: length
108
+ value: 52px
109
+ periodVerticalHeight:
110
+ description: Height of the vertical period selector of a portrait picker.
111
+ type: length
112
+ value: 80px
113
+ periodHorizontalWidth:
114
+ description: Width of the horizontal period selector of a landscape picker.
115
+ type: length
116
+ value: 216px
117
+ periodHorizontalHeight:
118
+ description: Height of the horizontal period selector of a landscape picker.
119
+ type: length
120
+ value: 38px
121
+ periodInputHeight:
122
+ description: Height of the period selector in input mode.
123
+ type: length
124
+ value: 72px
125
+ clockDialColor:
126
+ description: Clock dial color.
127
+ type: color
128
+ value: $cw-Color-surface-containerHighest
129
+ clockDialSize:
130
+ description: Clock dial diameter.
131
+ type: length
132
+ value: 256px
133
+ clockDialLabelTextColor:
134
+ description: Color of the dial numbers outside the selector handle.
135
+ type: color
136
+ value: $cw-Color-surface-onFill
137
+ clockDialSelectedLabelTextColor:
138
+ description: Color of the dial numbers inside the selector handle.
139
+ type: color
140
+ value: $cw-Color-primary-onFill
141
+ clockDialStateLayerColor:
142
+ description: State-layer color of the dial numbers.
143
+ type: color
144
+ value: $cw-Color-surface-onFill
145
+ selectorColor:
146
+ description: Color of the selector hand, handle and center.
147
+ type: color
148
+ value: $cw-Color-primary-fill
149
+ selectorHandleSize:
150
+ description: Diameter of the selector handle.
151
+ type: length
152
+ value: 48px
153
+ selectorTrackWidth:
154
+ description: Width of the selector hand.
155
+ type: length
156
+ value: 2px
157
+ selectorCenterSize:
158
+ description: Diameter of the selector center.
159
+ type: length
160
+ value: 8px
161
+ timeFieldContainerColor:
162
+ description: Container color of an unfocused time input field.
163
+ type: color
164
+ value: $cw-Color-surface-containerHighest
165
+ timeFieldLabelTextColor:
166
+ description: Text color of an unfocused time input field.
167
+ type: color
168
+ value: $cw-Color-surface-onFill
169
+ timeFieldFocusContainerColor:
170
+ description: Container color of the focused time input field.
171
+ type: color
172
+ value: $cw-Color-primary-container
173
+ timeFieldFocusLabelTextColor:
174
+ description: Text color of the focused time input field.
175
+ type: color
176
+ value: $cw-Color-primary-onContainer
177
+ timeFieldFocusOutlineColor:
178
+ description: Outline color of the focused time input field.
179
+ type: color
180
+ value: $cw-Color-primary-fill
181
+ timeFieldFocusOutlineWidth:
182
+ description: Outline width of the focused time input field.
183
+ type: length
184
+ value: 2px
185
+ timeFieldShape:
186
+ description: Corner radius of the time input fields.
187
+ type: length
188
+ value: $cw-CornerRadius-small
189
+ timeFieldWidth:
190
+ description: Width of the time input fields.
191
+ type: length
192
+ value: 96px
193
+ timeFieldHeight:
194
+ description: Height of the time input fields.
195
+ type: length
196
+ value: 72px
197
+ timeFieldSupportingTextColor:
198
+ description: Color of the supporting text below the time input fields.
199
+ type: color
200
+ value: $cw-Color-surface-onFillVariant
201
+ timeFieldErrorColor:
202
+ description: Text, outline and supporting text color of a time input field holding an error.
203
+ type: color
204
+ value: $cw-Color-error-fill
205
+ modeToggleIconColor:
206
+ description: Icon and state-layer color of the clock and input mode toggle.
207
+ type: color
208
+ value: $cw-Color-surface-onFillVariant
209
+ touchTargetSize:
210
+ description: Size of the dial numbers and of the mode toggle.
211
+ type: length
212
+ value: 48px
213
+ disabledLabelTextColor:
214
+ description: Label color of a disabled picker.
215
+ type: color
216
+ value: $cw-Color-surface-onFill
217
+ disabledLabelTextOpacity:
218
+ description: Opacity of the disabled label color.
219
+ type: number
220
+ value: 0.38
@@ -0,0 +1,371 @@
1
+ # SPDX-License-Identifier: MPL-2.0
2
+ class: system
3
+ attribute: Motion
4
+ description: >
5
+ Motion roles defining easing function, duration, and spring value roles. There are two top-level
6
+ role groups, `spring` and `transition`, for spring based motions and standard transitions.
7
+ roles:
8
+ spring:
9
+ description: >
10
+ Spring motion roles. These motion roles use spring based curves to apply motion. There are
11
+ two nested group roles `effect` and `spatial` which define the type of spring motion. Each
12
+ type group role contains three nested group roles `fast`, `default`, and `slow` which group
13
+ springs based on relative duration. Each spring defines its `stiffness` and `damping`
14
+ ratio, with unit mass, along with the `easing` function and `duration` of the spring,
15
+ generated at compile-time from the stiffness and damping ratio using the
16
+ `cw-spring-motion-of()` CSS pseudo-function, provided by `lightningcss-plugin-cobweb`.
17
+
18
+ The `standard` and `expressive` themes define the values of the Material 3 standard and
19
+ expressive motion schemes. The default value of each spring role is its `standard` value,
20
+ so both themes, and the defaults, always define every spring role.
21
+ roles:
22
+ effect:
23
+ description: >
24
+ Spring motion roles used when animating non-spatial properties, such as color or
25
+ opacity. Effect springs are critically damped, and never overshoot.
26
+ roles:
27
+ default:
28
+ description: Spring suitable for properties such as opacity.
29
+ roles:
30
+ easing:
31
+ description: Easing function sampled from the spring.
32
+ type: easing-function
33
+ value: $cw-Motion-theme-standard--spring-effect-default-easing
34
+ duration:
35
+ description: Time the spring takes to settle.
36
+ type: time
37
+ value: $cw-Motion-theme-standard--spring-effect-default-duration
38
+ stiffness:
39
+ description: Stiffness of the spring, with unit mass.
40
+ type: number
41
+ value: $cw-Motion-theme-standard--spring-effect-default-stiffness
42
+ damping:
43
+ description: Damping ratio of the spring.
44
+ type: number
45
+ value: $cw-Motion-theme-standard--spring-effect-default-damping
46
+ fast:
47
+ description: Spring suitable for properties such as color.
48
+ roles:
49
+ easing:
50
+ description: Easing function sampled from the spring.
51
+ type: easing-function
52
+ value: $cw-Motion-theme-standard--spring-effect-fast-easing
53
+ duration:
54
+ description: Time the spring takes to settle.
55
+ type: time
56
+ value: $cw-Motion-theme-standard--spring-effect-fast-duration
57
+ stiffness:
58
+ description: Stiffness of the spring, with unit mass.
59
+ type: number
60
+ value: $cw-Motion-theme-standard--spring-effect-fast-stiffness
61
+ damping:
62
+ description: Damping ratio of the spring.
63
+ type: number
64
+ value: $cw-Motion-theme-standard--spring-effect-fast-damping
65
+ slow:
66
+ description: Spring suitable for full-screen content refresh.
67
+ roles:
68
+ easing:
69
+ description: Easing function sampled from the spring.
70
+ type: easing-function
71
+ value: $cw-Motion-theme-standard--spring-effect-slow-easing
72
+ duration:
73
+ description: Time the spring takes to settle.
74
+ type: time
75
+ value: $cw-Motion-theme-standard--spring-effect-slow-duration
76
+ stiffness:
77
+ description: Stiffness of the spring, with unit mass.
78
+ type: number
79
+ value: $cw-Motion-theme-standard--spring-effect-slow-stiffness
80
+ damping:
81
+ description: Damping ratio of the spring.
82
+ type: number
83
+ value: $cw-Motion-theme-standard--spring-effect-slow-damping
84
+ spatial:
85
+ description: >
86
+ Spring motion roles used when animating spatial properties, such as position, size, or
87
+ shape. Spatial springs may overshoot.
88
+ roles:
89
+ default:
90
+ description: Spring suitable for motion which partially covers the screen.
91
+ roles:
92
+ easing:
93
+ description: Easing function sampled from the spring.
94
+ type: easing-function
95
+ value: $cw-Motion-theme-standard--spring-spatial-default-easing
96
+ duration:
97
+ description: Time the spring takes to settle.
98
+ type: time
99
+ value: $cw-Motion-theme-standard--spring-spatial-default-duration
100
+ stiffness:
101
+ description: Stiffness of the spring, with unit mass.
102
+ type: number
103
+ value: $cw-Motion-theme-standard--spring-spatial-default-stiffness
104
+ damping:
105
+ description: Damping ratio of the spring.
106
+ type: number
107
+ value: $cw-Motion-theme-standard--spring-spatial-default-damping
108
+ fast:
109
+ description: Spring suitable for motion which covers a small area of the screen.
110
+ roles:
111
+ easing:
112
+ description: Easing function sampled from the spring.
113
+ type: easing-function
114
+ value: $cw-Motion-theme-standard--spring-spatial-fast-easing
115
+ duration:
116
+ description: Time the spring takes to settle.
117
+ type: time
118
+ value: $cw-Motion-theme-standard--spring-spatial-fast-duration
119
+ stiffness:
120
+ description: Stiffness of the spring, with unit mass.
121
+ type: number
122
+ value: $cw-Motion-theme-standard--spring-spatial-fast-stiffness
123
+ damping:
124
+ description: Damping ratio of the spring.
125
+ type: number
126
+ value: $cw-Motion-theme-standard--spring-spatial-fast-damping
127
+ slow:
128
+ description: Spring suitable for motion which covers the full screen.
129
+ roles:
130
+ easing:
131
+ description: Easing function sampled from the spring.
132
+ type: easing-function
133
+ value: $cw-Motion-theme-standard--spring-spatial-slow-easing
134
+ duration:
135
+ description: Time the spring takes to settle.
136
+ type: time
137
+ value: $cw-Motion-theme-standard--spring-spatial-slow-duration
138
+ stiffness:
139
+ description: Stiffness of the spring, with unit mass.
140
+ type: number
141
+ value: $cw-Motion-theme-standard--spring-spatial-slow-stiffness
142
+ damping:
143
+ description: Damping ratio of the spring.
144
+ type: number
145
+ value: $cw-Motion-theme-standard--spring-spatial-slow-damping
146
+ transition:
147
+ description: >
148
+ Non-spring motion roles. These motion roles are suitable for simple transitions.
149
+ roles:
150
+ easing:
151
+ description: >
152
+ Curves controlling speed of motion, defining `uniform`, `decelerate`, and `accelerate`
153
+ for motion within the screen, entering elements, and exiting elements, respectively.
154
+ roles:
155
+ emphasized:
156
+ description: >
157
+ Emphasized easing used for most transitions. The `uniform` curve approximates the
158
+ Material emphasized path, `M 0,0 C 0.05,0 0.133333,0.06 0.166666,0.4 C
159
+ 0.208333,0.82 0.25,1 1,1`, within 0.1%; `cubic-bezier(0.2, 0, 0, 1)` deviates from
160
+ it by up to 17%.
161
+ type: easing-function
162
+ roles:
163
+ accelerate: cubic-bezier(0.3, 0, 0.8, 0.15)
164
+ decelerate: cubic-bezier(0.05, 0.7, 0.1, 1)
165
+ uniform: >-
166
+ linear(0, 0.00449 2.525%, 0.01877 4.9%, 0.04321 7.075%, 0.07228 9%, 0.10944 10.675%,
167
+ 0.14889 12.125%, 0.19393 13.35%, 0.23861 14.375%, 0.2871 15.225%, 0.33386 15.925%,
168
+ 0.38163 16.475%, 0.47107 17.4%, 0.52635 18.075%, 0.57505 18.8%, 0.61944 19.625%,
169
+ 0.66186 20.625%, 0.70234 21.85%, 0.74128 23.375%, 0.77895 25.3%, 0.81532 27.75%,
170
+ 0.85033 30.9%, 0.88329 34.925%, 0.91373 40.075%, 0.94123 46.725%, 0.96484 55.3%,
171
+ 0.98361 66.425%, 0.99623 80.975%, 1)
172
+ standard:
173
+ description: Standard easing for quick utility transitions.
174
+ type: easing-function
175
+ roles:
176
+ accelerate: cubic-bezier(0.3, 0, 1, 1)
177
+ decelerate: cubic-bezier(0, 0, 0, 1)
178
+ uniform: cubic-bezier(0.2, 0, 0, 1)
179
+ linear:
180
+ description: Linear easing.
181
+ type: easing-function
182
+ value: cubic-bezier(0, 0, 1, 1)
183
+ duration:
184
+ description: >
185
+ Motion duration, classified as `short`, `medium`, `long`, and `extraLong` where
186
+ `short` and `medium` are used where less attention is required and, `long` and
187
+ `extraLong` are used where most attention is required.
188
+ roles:
189
+ short:
190
+ type: time
191
+ roles:
192
+ 1: 50ms
193
+ 2: 100ms
194
+ 3: 150ms
195
+ 4: 200ms
196
+ medium:
197
+ type: time
198
+ roles:
199
+ 1: 250ms
200
+ 2: 300ms
201
+ 3: 350ms
202
+ 4: 400ms
203
+ long:
204
+ type: time
205
+ roles:
206
+ 1: 450ms
207
+ 2: 500ms
208
+ 3: 550ms
209
+ 4: 600ms
210
+ extraLong:
211
+ type: time
212
+ roles:
213
+ 1: 700ms
214
+ 2: 800ms
215
+ 3: 900ms
216
+ 4: 1s
217
+ themes:
218
+ standard:
219
+ description: >
220
+ Material 3 standard motion scheme spring values (AndroidX `StandardMotionTokens`). These
221
+ are also the default values of the spring roles.
222
+ values:
223
+ spring-effect-default-easing: >-
224
+ cw-spring-motion-of(curve,
225
+ --cw-Motion-theme-standard--spring-effect-default-stiffness,
226
+ --cw-Motion-theme-standard--spring-effect-default-damping)
227
+ spring-effect-default-duration: >-
228
+ cw-spring-motion-of(duration,
229
+ --cw-Motion-theme-standard--spring-effect-default-stiffness,
230
+ --cw-Motion-theme-standard--spring-effect-default-damping)
231
+ spring-effect-default-stiffness: 1600
232
+ spring-effect-default-damping: 1
233
+ spring-effect-fast-easing: >-
234
+ cw-spring-motion-of(curve,
235
+ --cw-Motion-theme-standard--spring-effect-fast-stiffness,
236
+ --cw-Motion-theme-standard--spring-effect-fast-damping)
237
+ spring-effect-fast-duration: >-
238
+ cw-spring-motion-of(duration,
239
+ --cw-Motion-theme-standard--spring-effect-fast-stiffness,
240
+ --cw-Motion-theme-standard--spring-effect-fast-damping)
241
+ spring-effect-fast-stiffness: 3800
242
+ spring-effect-fast-damping: 1
243
+ spring-effect-slow-easing: >-
244
+ cw-spring-motion-of(curve,
245
+ --cw-Motion-theme-standard--spring-effect-slow-stiffness,
246
+ --cw-Motion-theme-standard--spring-effect-slow-damping)
247
+ spring-effect-slow-duration: >-
248
+ cw-spring-motion-of(duration,
249
+ --cw-Motion-theme-standard--spring-effect-slow-stiffness,
250
+ --cw-Motion-theme-standard--spring-effect-slow-damping)
251
+ spring-effect-slow-stiffness: 800
252
+ spring-effect-slow-damping: 1
253
+ spring-spatial-default-easing: >-
254
+ cw-spring-motion-of(curve,
255
+ --cw-Motion-theme-standard--spring-spatial-default-stiffness,
256
+ --cw-Motion-theme-standard--spring-spatial-default-damping)
257
+ spring-spatial-default-duration: >-
258
+ cw-spring-motion-of(duration,
259
+ --cw-Motion-theme-standard--spring-spatial-default-stiffness,
260
+ --cw-Motion-theme-standard--spring-spatial-default-damping)
261
+ spring-spatial-default-stiffness: 700
262
+ spring-spatial-default-damping: 0.9
263
+ spring-spatial-fast-easing: >-
264
+ cw-spring-motion-of(curve,
265
+ --cw-Motion-theme-standard--spring-spatial-fast-stiffness,
266
+ --cw-Motion-theme-standard--spring-spatial-fast-damping)
267
+ spring-spatial-fast-duration: >-
268
+ cw-spring-motion-of(duration,
269
+ --cw-Motion-theme-standard--spring-spatial-fast-stiffness,
270
+ --cw-Motion-theme-standard--spring-spatial-fast-damping)
271
+ spring-spatial-fast-stiffness: 1400
272
+ spring-spatial-fast-damping: 0.9
273
+ spring-spatial-slow-easing: >-
274
+ cw-spring-motion-of(curve,
275
+ --cw-Motion-theme-standard--spring-spatial-slow-stiffness,
276
+ --cw-Motion-theme-standard--spring-spatial-slow-damping)
277
+ spring-spatial-slow-duration: >-
278
+ cw-spring-motion-of(duration,
279
+ --cw-Motion-theme-standard--spring-spatial-slow-stiffness,
280
+ --cw-Motion-theme-standard--spring-spatial-slow-damping)
281
+ spring-spatial-slow-stiffness: 300
282
+ spring-spatial-slow-damping: 0.9
283
+ expressive:
284
+ description: >
285
+ Material 3 Expressive motion scheme spring values (AndroidX `ExpressiveMotionTokens`).
286
+ values:
287
+ spring-effect-default-easing: >-
288
+ cw-spring-motion-of(curve,
289
+ --cw-Motion-theme-expressive--spring-effect-default-stiffness,
290
+ --cw-Motion-theme-expressive--spring-effect-default-damping)
291
+ spring-effect-default-duration: >-
292
+ cw-spring-motion-of(duration,
293
+ --cw-Motion-theme-expressive--spring-effect-default-stiffness,
294
+ --cw-Motion-theme-expressive--spring-effect-default-damping)
295
+ spring-effect-default-stiffness: 1600
296
+ spring-effect-default-damping: 1
297
+ spring-effect-fast-easing: >-
298
+ cw-spring-motion-of(curve,
299
+ --cw-Motion-theme-expressive--spring-effect-fast-stiffness,
300
+ --cw-Motion-theme-expressive--spring-effect-fast-damping)
301
+ spring-effect-fast-duration: >-
302
+ cw-spring-motion-of(duration,
303
+ --cw-Motion-theme-expressive--spring-effect-fast-stiffness,
304
+ --cw-Motion-theme-expressive--spring-effect-fast-damping)
305
+ spring-effect-fast-stiffness: 3800
306
+ spring-effect-fast-damping: 1
307
+ spring-effect-slow-easing: >-
308
+ cw-spring-motion-of(curve,
309
+ --cw-Motion-theme-expressive--spring-effect-slow-stiffness,
310
+ --cw-Motion-theme-expressive--spring-effect-slow-damping)
311
+ spring-effect-slow-duration: >-
312
+ cw-spring-motion-of(duration,
313
+ --cw-Motion-theme-expressive--spring-effect-slow-stiffness,
314
+ --cw-Motion-theme-expressive--spring-effect-slow-damping)
315
+ spring-effect-slow-stiffness: 800
316
+ spring-effect-slow-damping: 1
317
+ spring-spatial-default-easing: >-
318
+ cw-spring-motion-of(curve,
319
+ --cw-Motion-theme-expressive--spring-spatial-default-stiffness,
320
+ --cw-Motion-theme-expressive--spring-spatial-default-damping)
321
+ spring-spatial-default-duration: >-
322
+ cw-spring-motion-of(duration,
323
+ --cw-Motion-theme-expressive--spring-spatial-default-stiffness,
324
+ --cw-Motion-theme-expressive--spring-spatial-default-damping)
325
+ spring-spatial-default-stiffness: 380
326
+ spring-spatial-default-damping: 0.8
327
+ spring-spatial-fast-easing: >-
328
+ cw-spring-motion-of(curve,
329
+ --cw-Motion-theme-expressive--spring-spatial-fast-stiffness,
330
+ --cw-Motion-theme-expressive--spring-spatial-fast-damping)
331
+ spring-spatial-fast-duration: >-
332
+ cw-spring-motion-of(duration,
333
+ --cw-Motion-theme-expressive--spring-spatial-fast-stiffness,
334
+ --cw-Motion-theme-expressive--spring-spatial-fast-damping)
335
+ spring-spatial-fast-stiffness: 800
336
+ spring-spatial-fast-damping: 0.6
337
+ spring-spatial-slow-easing: >-
338
+ cw-spring-motion-of(curve,
339
+ --cw-Motion-theme-expressive--spring-spatial-slow-stiffness,
340
+ --cw-Motion-theme-expressive--spring-spatial-slow-damping)
341
+ spring-spatial-slow-duration: >-
342
+ cw-spring-motion-of(duration,
343
+ --cw-Motion-theme-expressive--spring-spatial-slow-stiffness,
344
+ --cw-Motion-theme-expressive--spring-spatial-slow-damping)
345
+ spring-spatial-slow-stiffness: 200
346
+ spring-spatial-slow-damping: 0.8
347
+ reducedMotion:
348
+ description: Motion values for when user-agent signals reduced motion is preferred.
349
+ values:
350
+ spring-spatial-default-duration: 0s
351
+ spring-spatial-fast-duration: 0s
352
+ spring-spatial-slow-duration: 0s
353
+ spring-effect-default-duration: 0s
354
+ spring-effect-fast-duration: 0s
355
+ spring-effect-slow-duration: 0s
356
+ transition-duration-short-1: 0s
357
+ transition-duration-short-2: 0s
358
+ transition-duration-short-3: 0s
359
+ transition-duration-short-4: 0s
360
+ transition-duration-medium-1: 0s
361
+ transition-duration-medium-2: 0s
362
+ transition-duration-medium-3: 0s
363
+ transition-duration-medium-4: 0s
364
+ transition-duration-long-1: 0s
365
+ transition-duration-long-2: 0s
366
+ transition-duration-long-3: 0s
367
+ transition-duration-long-4: 0s
368
+ transition-duration-extraLong-1: 0s
369
+ transition-duration-extraLong-2: 0s
370
+ transition-duration-extraLong-3: 0s
371
+ transition-duration-extraLong-4: 0s