@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.
Files changed (320) hide show
  1. package/LICENSE +163 -0
  2. package/README.md +82 -2
  3. package/package.json +111 -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 +320 -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 +580 -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,144 @@
1
+ # SPDX-License-Identifier: MPL-2.0
2
+ class: component
3
+ attribute: Tabs
4
+ description: >
5
+ Tab list, tab, and tab panel roles. Values follow the Material 3 `PrimaryNavigationTabTokens`
6
+ and `SecondaryNavigationTabTokens`, and the layouts of the Compose `PrimaryTabRow`,
7
+ `SecondaryTabRow`, `ScrollableTabRow`, `Tab`, and `LeadingIconTab` components.
8
+
9
+ Roles are not inherited. Assign a role on the element which consumes it: the tab list for
10
+ `container` roles, and the tab for `tab`, `primary`, and `secondary` roles.
11
+ roles:
12
+ container:
13
+ description: Tab list roles.
14
+ roles:
15
+ color:
16
+ description: Container color (`PrimaryNavigationTabTokens.ContainerColor`).
17
+ type: color
18
+ value: $cw-Color-surface-fill
19
+ dividerColor:
20
+ description: Color of the divider below the tabs (`TabRow.kt` `HorizontalDivider`).
21
+ type: color
22
+ value: $cw-Color-outlineVariant
23
+ dividerThickness:
24
+ description: Thickness of the divider below the tabs (`DividerTokens.Thickness`).
25
+ type: length
26
+ value: 1px
27
+ scrollablePadding:
28
+ description: >
29
+ Space before the first and after the last tab of a scrollable list (`TabRow.kt`
30
+ `ScrollableTabRowEdgeStartPadding`).
31
+ type: length
32
+ value: 52px
33
+ tab:
34
+ description: Tab roles shared by both variants.
35
+ roles:
36
+ height:
37
+ description: Height of a tab (`PrimaryNavigationTabTokens.ContainerHeight`).
38
+ type: length
39
+ value: 48px
40
+ stackedHeight:
41
+ description: >
42
+ Height of a tab stacking an icon above its label
43
+ (`PrimaryNavigationTabTokens.IconAndLabelTextContainerHeight`).
44
+ type: length
45
+ value: 64px
46
+ padding:
47
+ description: Space before and after the content of a tab (`Tab.kt` `HorizontalTextPadding`).
48
+ type: length
49
+ value: 16px
50
+ iconSize:
51
+ description: Icon size (`PrimaryNavigationTabTokens.IconSize`).
52
+ type: length
53
+ value: 24px
54
+ stackedSpace:
55
+ description: Space between a stacked icon and the label.
56
+ type: length
57
+ value: 2px
58
+ leadingSpace:
59
+ description: >
60
+ Space between a leading icon and the label (`Tab.kt` `TextDistanceFromLeadingIcon`).
61
+ type: length
62
+ value: 8px
63
+ scrollableMinWidth:
64
+ description: >
65
+ Minimum width of a tab within a scrollable list
66
+ (`TabRowDefaults.ScrollableTabRowMinTabWidth`).
67
+ type: length
68
+ value: 90px
69
+ disabledOpacity:
70
+ description: Opacity of the content of a disabled tab.
71
+ type: number
72
+ value: 0.38
73
+ primary:
74
+ description: Primary tab roles.
75
+ roles:
76
+ selectedColor:
77
+ description: >
78
+ Selected icon and label color (`PrimaryNavigationTabTokens.ActiveIconColor`,
79
+ `PrimaryNavigationTabTokens.ActiveLabelTextColor`).
80
+ type: color
81
+ value: $cw-Color-primary-fill
82
+ color:
83
+ description: >
84
+ Unselected icon and label color (`PrimaryNavigationTabTokens.InactiveIconColor`,
85
+ `PrimaryNavigationTabTokens.InactiveLabelTextColor`).
86
+ type: color
87
+ value: $cw-Color-surface-onFillVariant
88
+ activeColor:
89
+ description: >
90
+ Unselected icon and label color of a hovered, focused, or pressed tab
91
+ (`PrimaryNavigationTabTokens.InactiveHoverIconColor`,
92
+ `PrimaryNavigationTabTokens.InactiveHoverLabelTextColor`).
93
+ type: color
94
+ value: $cw-Color-surface-onFill
95
+ indicatorColor:
96
+ description: Active indicator color (`PrimaryNavigationTabTokens.ActiveIndicatorColor`).
97
+ type: color
98
+ value: $cw-Color-primary-fill
99
+ indicatorHeight:
100
+ description: Active indicator height (`PrimaryNavigationTabTokens.ActiveIndicatorHeight`).
101
+ type: length
102
+ value: 3px
103
+ indicatorMinWidth:
104
+ description: Minimum active indicator width (`TabRowDefaults.PrimaryIndicator`).
105
+ type: length
106
+ value: 24px
107
+ indicatorShape:
108
+ description: Active indicator shape (`PrimaryNavigationTabTokens.ActiveIndicatorShape`).
109
+ type: length
110
+ roles:
111
+ topLeft: 3px
112
+ topRight: 3px
113
+ bottomRight: 3px
114
+ bottomLeft: 3px
115
+ secondary:
116
+ description: Secondary tab roles.
117
+ roles:
118
+ selectedColor:
119
+ description: >
120
+ Selected icon and label color (`SecondaryNavigationTabTokens.ActiveIconColor`,
121
+ `SecondaryNavigationTabTokens.ActiveLabelTextColor`).
122
+ type: color
123
+ value: $cw-Color-surface-onFill
124
+ color:
125
+ description: >
126
+ Unselected icon and label color (`SecondaryNavigationTabTokens.InactiveIconColor`,
127
+ `SecondaryNavigationTabTokens.InactiveLabelTextColor`).
128
+ type: color
129
+ value: $cw-Color-surface-onFillVariant
130
+ activeColor:
131
+ description: >
132
+ Icon and label color of a hovered, focused, or pressed tab
133
+ (`SecondaryNavigationTabTokens.HoverIconColor`,
134
+ `SecondaryNavigationTabTokens.HoverLabelTextColor`).
135
+ type: color
136
+ value: $cw-Color-surface-onFill
137
+ indicatorColor:
138
+ description: Active indicator color (`TabRowDefaults.SecondaryIndicator`).
139
+ type: color
140
+ value: $cw-Color-primary-fill
141
+ indicatorHeight:
142
+ description: Active indicator height.
143
+ type: length
144
+ value: 2px
@@ -0,0 +1,130 @@
1
+ # SPDX-License-Identifier: MPL-2.0
2
+ class: component
3
+ attribute: FloatingToolbar
4
+ description: >
5
+ Floating and docked toolbar roles (`FloatingToolbarTokens.kt`, `DockedToolbarTokens.kt`, and the
6
+ Material Components standard and vibrant toolbar tokens). The `standard` and `vibrant` roles
7
+ color the respective designs of both toolbars.
8
+ roles:
9
+ standard:
10
+ description: >
11
+ Colors of the standard design. Selected toggles take the Material Components standard toolbar
12
+ colors (`standard_toolbar_tokens.xml`).
13
+ roles:
14
+ containerColor:
15
+ description: Container color.
16
+ type: color
17
+ value: $cw-Color-surface-container
18
+ contentColor:
19
+ description: >
20
+ Color of icons and labels within the container, including unselected toggles
21
+ (`m3_comp_toolbar_standard_icon_color`, `m3_comp_toolbar_standard_label_text_color`).
22
+ type: color
23
+ value: $cw-Color-surface-onFillVariant
24
+ selectedContainerColor:
25
+ description: >
26
+ Container color of selected toggles
27
+ (`m3_comp_toolbar_standard_selected_button_container_color`).
28
+ type: color
29
+ value: $cw-Color-secondary-container
30
+ selectedContentColor:
31
+ description: >
32
+ Icon and label color of selected toggles (`m3_comp_toolbar_standard_selected_icon_color`,
33
+ `m3_comp_toolbar_standard_selected_label_text_color`).
34
+ type: color
35
+ value: $cw-Color-secondary-onContainer
36
+ vibrant:
37
+ description: Colors of the vibrant design.
38
+ roles:
39
+ containerColor:
40
+ description: Container color.
41
+ type: color
42
+ value: $cw-Color-primary-container
43
+ contentColor:
44
+ description: >
45
+ Color of icons and labels within the container, including unselected toggles
46
+ (`VibrantButtonUnselectedIconColor`, `VibrantButtonUnselectedTextColor`).
47
+ type: color
48
+ value: $cw-Color-primary-onContainer
49
+ selectedContainerColor:
50
+ description: Container color of selected toggles (`VibrantButtonSelectedContainerColor`).
51
+ type: color
52
+ value: $cw-Color-surface-container
53
+ selectedContentColor:
54
+ description: >
55
+ Icon and label color of selected toggles (`VibrantButtonSelectedIconColor`,
56
+ `VibrantButtonSelectedTextColor`).
57
+ type: color
58
+ value: $cw-Color-surface-onFill
59
+ floating:
60
+ description: Roles of floating toolbars.
61
+ roles:
62
+ containerShape:
63
+ description: Container corner radius.
64
+ type: length
65
+ value: $cw-CornerRadius-full
66
+ containerElevation:
67
+ description: Container elevation (`m3_comp_toolbar_floating_container_elevation`).
68
+ type: integer
69
+ value: $cw-Elevation-level-3
70
+ fabContainerElevation:
71
+ description: >
72
+ Container elevation of an expanded toolbar paired with a floating action button (Compose
73
+ `FloatingToolbarDefaults.ContainerExpandedElevationWithFab`). A collapsed toolbar has no
74
+ elevation.
75
+ type: integer
76
+ value: $cw-Elevation-level-1
77
+ height:
78
+ description: Minimum container height, or width of a vertical toolbar.
79
+ type: length
80
+ value: 64px
81
+ leadingSpace:
82
+ description: Space between the start, or top, of the container and its content.
83
+ type: length
84
+ value: 8px
85
+ trailingSpace:
86
+ description: Space between the content and the end, or bottom, of the container.
87
+ type: length
88
+ value: 8px
89
+ itemSpace:
90
+ description: Space between items.
91
+ type: length
92
+ value: 4px
93
+ fabSpace:
94
+ description: Space between the container and a paired floating action button.
95
+ type: length
96
+ value: 8px
97
+ fabSize:
98
+ description: >
99
+ Size of a paired floating action button while the toolbar is expanded, which is also the
100
+ space the button takes in the layout (`FabBaselineTokens.ContainerWidth`).
101
+ type: length
102
+ value: 56px
103
+ collapsedFabSize:
104
+ description: >
105
+ Size of a paired floating action button while the toolbar is collapsed, and the minimum
106
+ height, or width of a vertical toolbar, of a toolbar with a floating action button
107
+ (`FabMediumTokens.ContainerWidth`).
108
+ type: length
109
+ value: 80px
110
+ screenOffset:
111
+ description: >
112
+ Offset from the edge of the screen at which a toolbar is expected to float, which it
113
+ travels in addition to its size when it exits on scroll.
114
+ type: length
115
+ value: 16px
116
+ docked:
117
+ description: Roles of docked toolbars.
118
+ roles:
119
+ height:
120
+ description: Container height.
121
+ type: length
122
+ value: 64px
123
+ leadingSpace:
124
+ description: Space between the start of the container and its first item.
125
+ type: length
126
+ value: 16px
127
+ trailingSpace:
128
+ description: Space between the last item and the end of the container.
129
+ type: length
130
+ value: 16px
@@ -0,0 +1,162 @@
1
+ # SPDX-License-Identifier: MPL-2.0
2
+ class: component
3
+ attribute: Checkbox
4
+ description: >
5
+ Checkbox component roles. A checkbox is unchecked, checked, or indeterminate; the checked and
6
+ indeterminate states use the selected roles. Values follow the AndroidX Material 3
7
+ `CheckboxTokens` and, for state-layer colors, the material-web checkbox tokens.
8
+ roles:
9
+ container:
10
+ description: Box roles.
11
+ roles:
12
+ size:
13
+ description: Box size.
14
+ type: length
15
+ value: 18px
16
+ shape:
17
+ description: Box corner radius.
18
+ type: length
19
+ value: 2px
20
+ outlineColor:
21
+ description: Unselected box outline color.
22
+ type: color
23
+ value: $cw-Color-surface-onFillVariant
24
+ outlineWidth:
25
+ description: Unselected box outline width.
26
+ type: length
27
+ value: 2px
28
+ selectedColor:
29
+ description: Selected box color.
30
+ type: color
31
+ value: $cw-Color-primary-fill
32
+ icon:
33
+ description: Check and indeterminate mark roles.
34
+ roles:
35
+ color:
36
+ description: Mark color drawn on the selected box.
37
+ type: color
38
+ value: $cw-Color-primary-onFill
39
+ stateLayer:
40
+ description: State-layer roles.
41
+ roles:
42
+ size:
43
+ description: Diameter of the circular state layer centered on the box.
44
+ type: length
45
+ value: 40px
46
+ target:
47
+ description: Interactive target roles.
48
+ roles:
49
+ size:
50
+ description: >
51
+ Minimum interactive target size. The state layer is centered within the inline-start
52
+ square of this size.
53
+ type: length
54
+ value: 48px
55
+ label:
56
+ description: Label slot roles.
57
+ roles:
58
+ color:
59
+ description: Label color.
60
+ type: color
61
+ value: $cw-Color-surface-onFill
62
+ spacing:
63
+ description: >
64
+ Space between the interactive target and the label. With the default roles the label
65
+ starts where the 48px target ends.
66
+ type: length
67
+ value: 0px
68
+ hover:
69
+ description: Roles applied while the checkbox is hovered.
70
+ roles:
71
+ outlineColor:
72
+ description: Override for `cw-Checkbox-container-outlineColor`.
73
+ type: color
74
+ value: $cw-Color-surface-onFill
75
+ stateLayerColor:
76
+ description: Unselected state-layer color.
77
+ type: color
78
+ value: $cw-Color-surface-onFill
79
+ selectedStateLayerColor:
80
+ description: Selected state-layer color.
81
+ type: color
82
+ value: $cw-Color-primary-fill
83
+ focus:
84
+ description: Roles applied while the checkbox has keyboard focus.
85
+ roles:
86
+ outlineColor:
87
+ description: Override for `cw-Checkbox-container-outlineColor`.
88
+ type: color
89
+ value: $cw-Color-surface-onFill
90
+ stateLayerColor:
91
+ description: Unselected state-layer color.
92
+ type: color
93
+ value: $cw-Color-surface-onFill
94
+ selectedStateLayerColor:
95
+ description: Selected state-layer color.
96
+ type: color
97
+ value: $cw-Color-primary-fill
98
+ press:
99
+ description: Roles applied while the checkbox is pressed.
100
+ roles:
101
+ outlineColor:
102
+ description: Override for `cw-Checkbox-container-outlineColor`.
103
+ type: color
104
+ value: $cw-Color-surface-onFill
105
+ stateLayerColor:
106
+ description: Unselected state-layer color.
107
+ type: color
108
+ value: $cw-Color-primary-fill
109
+ selectedStateLayerColor:
110
+ description: Selected state-layer color.
111
+ type: color
112
+ value: $cw-Color-surface-onFill
113
+ error:
114
+ description: Roles applied while the checkbox shows an error.
115
+ roles:
116
+ outlineColor:
117
+ description: Override for `cw-Checkbox-container-outlineColor` in every state.
118
+ type: color
119
+ value: $cw-Color-error-fill
120
+ selectedColor:
121
+ description: Override for `cw-Checkbox-container-selectedColor`.
122
+ type: color
123
+ value: $cw-Color-error-fill
124
+ iconColor:
125
+ description: Override for `cw-Checkbox-icon-color`.
126
+ type: color
127
+ value: $cw-Color-error-onFill
128
+ stateLayerColor:
129
+ description: State-layer color in every interaction state.
130
+ type: color
131
+ value: $cw-Color-error-fill
132
+ disabled:
133
+ description: Roles applied while the checkbox is disabled.
134
+ roles:
135
+ outlineColor:
136
+ description: Override for `cw-Checkbox-container-outlineColor`.
137
+ type: color
138
+ value: $cw-Color-surface-onFill
139
+ outlineOpacity:
140
+ description: Opacity of the disabled outline color.
141
+ type: number
142
+ value: 0.38
143
+ selectedColor:
144
+ description: Override for `cw-Checkbox-container-selectedColor`.
145
+ type: color
146
+ value: $cw-Color-surface-onFill
147
+ selectedOpacity:
148
+ description: Opacity of the disabled selected box color.
149
+ type: number
150
+ value: 0.38
151
+ iconColor:
152
+ description: Override for `cw-Checkbox-icon-color`.
153
+ type: color
154
+ value: $cw-Color-surface-fill
155
+ labelColor:
156
+ description: Override for `cw-Checkbox-label-color`.
157
+ type: color
158
+ value: $cw-Color-surface-onFill
159
+ labelOpacity:
160
+ description: Opacity of the disabled label color.
161
+ type: number
162
+ value: 0.38
@@ -0,0 +1,219 @@
1
+ # SPDX-License-Identifier: MPL-2.0
2
+ class: component
3
+ attribute: Chip
4
+ description: >
5
+ Chip roles shared by assist, filter, input, and suggestion chips. Default values describe a flat
6
+ filter or suggestion chip; the `assist`, `input`, `elevated`, and `expressive` themes apply the
7
+ remaining variants. Values follow the AndroidX Material 3 `AssistChipTokens`,
8
+ `FilterChipTokens`, `InputChipTokens`, `SuggestionChipTokens`, and, for the expressive shapes,
9
+ `ChipsTokens`.
10
+ roles:
11
+ container:
12
+ description: Container roles.
13
+ roles:
14
+ height:
15
+ description: Container height.
16
+ type: length
17
+ value: 32px
18
+ shape:
19
+ description: Container corner radius.
20
+ type: length
21
+ value: $cw-CornerRadius-small
22
+ selectedShape:
23
+ description: >
24
+ Selected container corner radius. A radius of at least half the container height
25
+ produces a fully rounded container.
26
+ type: length
27
+ value: $cw-CornerRadius-small
28
+ pressedShape:
29
+ description: Pressed container corner radius.
30
+ type: length
31
+ value: $cw-CornerRadius-small
32
+ color:
33
+ description: Unselected container color.
34
+ type: color
35
+ value: "#00000000"
36
+ selectedColor:
37
+ description: Selected container color.
38
+ type: color
39
+ value: $cw-Color-secondary-container
40
+ outlineColor:
41
+ description: Unselected container outline color. Selected containers have no outline.
42
+ type: color
43
+ value: $cw-Color-outlineVariant
44
+ outlineWidth:
45
+ description: Unselected container outline width.
46
+ type: length
47
+ value: 1px
48
+ elevation:
49
+ description: Container elevation.
50
+ type: integer
51
+ value: $cw-Elevation-level-0
52
+ padding:
53
+ description: Space between the container edge and a label.
54
+ type: length
55
+ value: 8px
56
+ iconPadding:
57
+ description: Space between the container edge and a leading or trailing icon.
58
+ type: length
59
+ value: 8px
60
+ label:
61
+ description: Label roles.
62
+ roles:
63
+ color:
64
+ description: Unselected label color.
65
+ type: color
66
+ value: $cw-Color-surface-onFillVariant
67
+ selectedColor:
68
+ description: Selected label color.
69
+ type: color
70
+ value: $cw-Color-secondary-onContainer
71
+ spacing:
72
+ description: Space on each side of the label.
73
+ type: length
74
+ value: 8px
75
+ icon:
76
+ description: Icon roles.
77
+ roles:
78
+ size:
79
+ description: Leading and trailing icon size.
80
+ type: length
81
+ value: 18px
82
+ color:
83
+ description: Unselected leading icon color.
84
+ type: color
85
+ value: $cw-Color-primary-fill
86
+ selectedColor:
87
+ description: Selected leading icon and checkmark color.
88
+ type: color
89
+ value: $cw-Color-secondary-onContainer
90
+ trailingColor:
91
+ description: Unselected trailing icon color.
92
+ type: color
93
+ value: $cw-Color-surface-onFillVariant
94
+ selectedTrailingColor:
95
+ description: Selected trailing icon color.
96
+ type: color
97
+ value: $cw-Color-secondary-onContainer
98
+ avatar:
99
+ description: Input-chip avatar roles. The avatar is circular.
100
+ roles:
101
+ size:
102
+ description: Avatar size.
103
+ type: length
104
+ value: 24px
105
+ target:
106
+ description: Interactive target roles.
107
+ roles:
108
+ size:
109
+ description: Minimum interactive target block size of each chip action.
110
+ type: length
111
+ value: 48px
112
+ hover:
113
+ description: Roles applied while the chip is hovered.
114
+ roles:
115
+ elevation:
116
+ description: Override for `cw-Chip-container-elevation`.
117
+ type: integer
118
+ value: $cw-Elevation-level-0
119
+ selectedElevation:
120
+ description: Override for `cw-Chip-container-elevation` while selected.
121
+ type: integer
122
+ value: $cw-Elevation-level-1
123
+ focus:
124
+ description: Roles applied while the chip has keyboard focus.
125
+ roles:
126
+ elevation:
127
+ description: Override for `cw-Chip-container-elevation`.
128
+ type: integer
129
+ value: $cw-Elevation-level-0
130
+ outlineColor:
131
+ description: Override for `cw-Chip-container-outlineColor`.
132
+ type: color
133
+ value: $cw-Color-surface-onFillVariant
134
+ press:
135
+ description: Roles applied while the chip is pressed.
136
+ roles:
137
+ elevation:
138
+ description: Override for `cw-Chip-container-elevation`.
139
+ type: integer
140
+ value: $cw-Elevation-level-0
141
+ stateLayerColor:
142
+ description: >
143
+ State-layer color of a pressed unselected filter chip (material-web
144
+ `md.comp.filter-chip.unselected.pressed.state-layer.color`). Other chips use their label
145
+ color for every state layer.
146
+ type: color
147
+ value: $cw-Color-secondary-onContainer
148
+ selectedStateLayerColor:
149
+ description: >
150
+ State-layer color of a pressed selected filter chip (material-web
151
+ `md.comp.filter-chip.selected.pressed.state-layer.color`).
152
+ type: color
153
+ value: $cw-Color-surface-onFillVariant
154
+ drag:
155
+ description: Roles applied while the chip is dragged.
156
+ roles:
157
+ elevation:
158
+ description: Override for `cw-Chip-container-elevation`.
159
+ type: integer
160
+ value: $cw-Elevation-level-4
161
+ disabled:
162
+ description: Roles applied while the chip is disabled.
163
+ roles:
164
+ contentColor:
165
+ description: Label, icon, and checkmark color.
166
+ type: color
167
+ value: $cw-Color-surface-onFill
168
+ contentOpacity:
169
+ description: Opacity of the disabled content color and of an avatar.
170
+ type: number
171
+ value: 0.38
172
+ outlineColor:
173
+ description: Override for `cw-Chip-container-outlineColor`.
174
+ type: color
175
+ value: $cw-Color-surface-onFill
176
+ outlineOpacity:
177
+ description: Opacity of the disabled outline color.
178
+ type: number
179
+ value: 0.12
180
+ containerColor:
181
+ description: Selected or elevated container color.
182
+ type: color
183
+ value: $cw-Color-surface-onFill
184
+ containerOpacity:
185
+ description: Opacity of the disabled selected or elevated container color.
186
+ type: number
187
+ value: 0.12
188
+ elevation:
189
+ description: Override for `cw-Chip-container-elevation`.
190
+ type: integer
191
+ value: $cw-Elevation-level-0
192
+ themes:
193
+ assist:
194
+ description: Assist chip values.
195
+ values:
196
+ focus-outlineColor: $cw-Color-surface-onFill
197
+ label-color: $cw-Color-surface-onFill
198
+ input:
199
+ description: Input chip values.
200
+ values:
201
+ container-padding: 4px
202
+ icon-color: $cw-Color-surface-onFillVariant
203
+ icon-selectedColor: $cw-Color-primary-fill
204
+ elevated:
205
+ description: Elevated chip values.
206
+ values:
207
+ container-color: $cw-Color-surface-containerLow
208
+ container-elevation: $cw-Elevation-level-1
209
+ container-outlineWidth: 0px
210
+ focus-elevation: $cw-Elevation-level-1
211
+ hover-elevation: $cw-Elevation-level-2
212
+ hover-selectedElevation: $cw-Elevation-level-2
213
+ press-elevation: $cw-Elevation-level-1
214
+ expressive:
215
+ description: Material 3 Expressive filter and input chip shapes.
216
+ values:
217
+ container-pressedShape: $cw-CornerRadius-small
218
+ container-selectedShape: $cw-CornerRadius-full
219
+ container-shape: $cw-CornerRadius-medium