@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
package/LICENSE ADDED
@@ -0,0 +1,163 @@
1
+ Valid-License-Identifier: MPL-2.0
2
+ SPDX-URL: https://spdx.org/licenses/MPL-2.0.html
3
+ Usage-Guide:
4
+ To use the Mozilla Public License version 2.0 put the following SPDX tag/value pair into a
5
+ comment according to the first possible line within the file to which the license applies:
6
+ SPDX-License-Identifier: MPL-2.0
7
+ License-Text:
8
+
9
+ Mozilla Public License Version 2.0
10
+
11
+ ==================================
12
+
13
+ 1. Definitions
14
+
15
+ --------------
16
+ 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software.
17
+ 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution.
18
+ 1.3. "Contribution" means Covered Software of a particular Contributor.
19
+ 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof.
20
+ 1.5. "Incompatible With Secondary Licenses" means
21
+ (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or
22
+ (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License.
23
+ 1.6. "Executable Form" means any form of the work other than Source Code Form.
24
+ 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software.
25
+ 1.8. "License" means this document.
26
+ 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License.
27
+ 1.10. "Modifications" means any of the following:
28
+ (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or
29
+ (b) any new file in Source Code Form that contains any Covered Software.
30
+ 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version.
31
+ 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses.
32
+ 1.13. "Source Code Form" means the form of the work preferred for making modifications.
33
+ 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity.
34
+
35
+ 2. License Grants and Conditions
36
+
37
+ --------------------------------
38
+ 2.1. Grants
39
+
40
+ Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license:
41
+ (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and
42
+ (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version.
43
+ 2.2. Effective Date
44
+
45
+ The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution.
46
+ 2.3. Limitations on Grant Scope
47
+
48
+ The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor:
49
+ (a) for any code that a Contributor has removed from Covered Software; or
50
+ (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or
51
+ (c) under Patent Claims infringed by Covered Software in the absence of its Contributions.
52
+
53
+ This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4).
54
+ 2.4. Subsequent Licenses
55
+
56
+ No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3).
57
+ 2.5. Representation
58
+
59
+ Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License.
60
+ 2.6. Fair Use
61
+
62
+ This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents.
63
+ 2.7. Conditions
64
+
65
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1.
66
+
67
+ 3. Responsibilities
68
+
69
+ -------------------
70
+ 3.1. Distribution of Source Form
71
+
72
+ All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form.
73
+ 3.2. Distribution of Executable Form
74
+
75
+ If You distribute Covered Software in Executable Form then:
76
+ (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and
77
+ (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License.
78
+ 3.3. Distribution of a Larger Work
79
+
80
+ You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s).
81
+ 3.4. Notices
82
+
83
+ You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies.
84
+ 3.5. Application of Additional Terms
85
+
86
+ You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction.
87
+
88
+ 4. Inability to Comply Due to Statute or Regulation
89
+
90
+ ---------------------------------------------------
91
+
92
+ If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it.
93
+
94
+ 5. Termination
95
+
96
+ --------------
97
+ 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice.
98
+ 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate.
99
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination.
100
+
101
+ ************************************************************************
102
+
103
+ 6. Disclaimer of Warranty
104
+
105
+ * ------------------------- *
106
+
107
+ Covered Software is provided under this License on an "as is" basis, without warranty of any kind, either expressed, implied, or statutory, including, without limitation, warranties that the Covered Software is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire risk as to the quality and performance of the Covered Software is with You. Should any Covered Software prove defective in any respect, You (not any Contributor) assume the cost of any necessary servicing, repair, or correction. This disclaimer of warranty constitutes an essential part of this License. No use of any Covered Software is authorized under this License except under this disclaimer.
108
+
109
+ ************************************************************************
110
+
111
+ ************************************************************************
112
+
113
+ 7. Limitation of Liability
114
+
115
+ * -------------------------- *
116
+
117
+ Under no circumstances and under no legal theory, whether tort (including negligence), contract, or otherwise, shall any Contributor, or anyone who distributes Covered Software as permitted above, be liable to You for any direct, indirect, special, incidental, or consequential damages of any character including, without limitation, damages for lost profits, loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses, even if such party shall have been informed of the possibility of such damages. This limitation of liability shall not apply to liability for death or personal injury resulting from such party's negligence to the extent applicable law prohibits such limitation. Some jurisdictions do not allow the exclusion or limitation of incidental or consequential damages, so this exclusion and limitation may not apply to You.
118
+
119
+ ************************************************************************
120
+
121
+ 8. Litigation
122
+
123
+ -------------
124
+
125
+ Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims.
126
+
127
+ 9. Miscellaneous
128
+
129
+ ----------------
130
+
131
+ This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor.
132
+
133
+ 10. Versions of the License
134
+
135
+ ---------------------------
136
+ 10.1. New Versions
137
+
138
+ Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number.
139
+ 10.2. Effect of New Versions
140
+
141
+ You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward.
142
+ 10.3. Modified Versions
143
+
144
+ If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License).
145
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses
146
+
147
+ If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached.
148
+
149
+ Exhibit A - Source Code Form License Notice
150
+
151
+ -------------------------------------------
152
+
153
+ This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
154
+
155
+ If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice.
156
+
157
+ You may add additional accurate notices of copyright ownership.
158
+
159
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
160
+
161
+ ---------------------------------------------------------
162
+
163
+ This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
package/README.md CHANGED
@@ -1,3 +1,83 @@
1
- # Temporary Holding Version
1
+ # cobweb
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [SolidJS][solidjs] components implementing the [Material 3][material3] design specification,
4
+ including Material 3 Expressive. Components are customized through design tokens, defined by the
5
+ YAML design-system in `src/design.yaml` and the [**cobweb-design**][cobweb-design] library.
6
+
7
+ ## Requirements
8
+
9
+ The package ships its modules as uncompiled JSX (`jsx: preserve`) and its style sheets as
10
+ uncompiled Cobweb CSS. An application therefore needs a bundler which:
11
+
12
+ - compiles the JSX of the package for SolidJS, resolving the `solid` export condition, for
13
+ example [Vite][vite] with `vite-plugin-solid`;
14
+
15
+ - compiles every Cobweb style sheet with [LightningCSS][lightningcss] and
16
+ [**lightningcss-plugin-cobweb**][lightningcss-plugin-cobweb], using the Cobweb design loaded with
17
+ **cobweb-design**. Without the plugin, the style sheets do not apply.
18
+
19
+ TypeScript consumers resolve the package declarations with `"moduleResolution": "bundler"`.
20
+
21
+ ```js
22
+ // vite.config.js
23
+ import { Design } from "@pg-labs-incubator/cobweb-design";
24
+ import { COBWEB_AT_RULES, newCobwebVisitor } from "@pg-labs-incubator/lightningcss-plugin-cobweb";
25
+ import solid from "vite-plugin-solid";
26
+ import { defineConfig } from "vite";
27
+
28
+ export default defineConfig({
29
+ plugins: [solid()],
30
+ css: {
31
+ transformer: "lightningcss",
32
+ lightningcss: {
33
+ customAtRules: COBWEB_AT_RULES,
34
+ visitor: newCobwebVisitor(Design.load(
35
+ "@pg-labs-incubator/cobweb",
36
+ undefined,
37
+ undefined,
38
+ import.meta.dirname
39
+ ))
40
+ }
41
+ }
42
+ });
43
+ ```
44
+
45
+ Import the root style sheet once; component modules import their own style sheets:
46
+
47
+ ```css
48
+ @import "@pg-labs-incubator/cobweb";
49
+ ```
50
+
51
+ Cobweb does not bundle fonts. The `cw-Typeface-brandFont` and `cw-Typeface-plainFont` roles
52
+ default to `Roboto, system-ui, sans-serif`, and icons, including those components render
53
+ themselves, are glyphs of `Material Symbols Outlined`. Load these fonts, for example with
54
+ `@font-face` rules, or override the roles in the design passed to `newCobwebVisitor()`:
55
+
56
+ ```js
57
+ import { Design } from "@pg-labs-incubator/cobweb-design";
58
+
59
+ const design = Design.load(
60
+ "@pg-labs-incubator/cobweb",
61
+ {
62
+ "cw-Typeface-brandFont": "Inter, system-ui, sans-serif",
63
+ "cw-Typeface-plainFont": "Inter, system-ui, sans-serif"
64
+ },
65
+ undefined,
66
+ import.meta.dirname
67
+ );
68
+ ```
69
+
70
+ See the [component guide][components] for the public modules and their use.
71
+
72
+ ## License
73
+
74
+ This package is licensed under the [MPL-2.0][mpl-2.0] license.
75
+
76
+ [cobweb-design]: ../cobweb-design
77
+ [components]: ../Documentation/components.md
78
+ [lightningcss]: https://lightningcss.dev/
79
+ [lightningcss-plugin-cobweb]: ../lightningcss-plugin-cobweb
80
+ [material3]: https://m3.material.io
81
+ [mpl-2.0]: LICENSE
82
+ [solidjs]: https://www.solidjs.com/
83
+ [vite]: https://vite.dev/
package/package.json CHANGED
@@ -1,6 +1,114 @@
1
1
  {
2
2
  "name": "@pg-labs-incubator/cobweb",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.0.1",
4
+ "description": "Cobweb components library, based on Material 3 design, for SolidJS.",
5
+ "license": "MPL-2.0",
6
+ "homepage": "https://pglabs.ai/projects/cobweb",
7
+ "bugs": {
8
+ "url": "https://codeberg.org/PG-Labs/cobweb/issues",
9
+ "email": "info@pglabs.ai"
10
+ },
11
+ "sideEffects": [
12
+ "**/*.css"
13
+ ],
14
+ "type": "module",
15
+ "types": "./target/tsc/index.d.ts",
16
+ "files": [
17
+ "./src/**/*.yaml",
18
+ "./target/esbuild/**/*.css",
19
+ "./target/esbuild/**/*.jsx",
20
+ "./target/tsc/**/*.d.ts"
21
+ ],
22
+ "exports": {
23
+ ".": {
24
+ "types": "./target/tsc/index.d.ts",
25
+ "solid": "./target/esbuild/index.jsx",
26
+ "style": "./target/esbuild/index.css"
27
+ },
28
+ "./action": {
29
+ "types": "./target/tsc/action/index.d.ts",
30
+ "solid": "./target/esbuild/action/index.jsx",
31
+ "style": "./target/esbuild/action/action.css"
32
+ },
33
+ "./color": {
34
+ "types": "./target/tsc/color/index.d.ts",
35
+ "solid": "./target/esbuild/color/index.jsx",
36
+ "style": "./target/esbuild/color/index.css"
37
+ },
38
+ "./container": {
39
+ "types": "./target/tsc/container/index.d.ts",
40
+ "solid": "./target/esbuild/container/index.jsx"
41
+ },
42
+ "./design.yaml": "./src/design.yaml",
43
+ "./feedback": {
44
+ "types": "./target/tsc/feedback/index.d.ts",
45
+ "solid": "./target/esbuild/feedback/index.jsx",
46
+ "style": "./target/esbuild/feedback/feedback.css"
47
+ },
48
+ "./icon": {
49
+ "types": "./target/tsc/icon/index.d.ts",
50
+ "solid": "./target/esbuild/icon/index.jsx",
51
+ "style": "./target/esbuild/icon/icon.css"
52
+ },
53
+ "./input": {
54
+ "types": "./target/tsc/input/index.d.ts",
55
+ "solid": "./target/esbuild/input/index.jsx",
56
+ "style": "./target/esbuild/input/index.css"
57
+ },
58
+ "./motion": {
59
+ "types": "./target/tsc/motion/index.d.ts",
60
+ "solid": "./target/esbuild/motion/index.jsx",
61
+ "style": "./target/esbuild/motion/index.css"
62
+ },
63
+ "./navigation": {
64
+ "types": "./target/tsc/navigation/index.d.ts",
65
+ "solid": "./target/esbuild/navigation/index.jsx",
66
+ "style": "./target/esbuild/navigation/navigation.css"
67
+ },
68
+ "./shape": {
69
+ "types": "./target/tsc/shape/index.d.ts",
70
+ "solid": "./target/esbuild/shape/index.jsx"
71
+ },
72
+ "./selection": {
73
+ "types": "./target/tsc/selection/index.d.ts",
74
+ "solid": "./target/esbuild/selection/index.jsx",
75
+ "style": "./target/esbuild/selection/selection.css"
76
+ },
77
+ "./state": {
78
+ "types": "./target/tsc/state/index.d.ts",
79
+ "solid": "./target/esbuild/state/index.jsx",
80
+ "style": "./target/esbuild/state/component.css"
81
+ },
82
+ "./spacing": {
83
+ "types": "./target/tsc/spacing/index.d.ts",
84
+ "solid": "./target/esbuild/spacing/index.jsx"
85
+ },
86
+ "./spacing/measurement.yaml": "./src/spacing/measurement.yaml",
87
+ "./surface": {
88
+ "types": "./target/tsc/surface/index.d.ts",
89
+ "solid": "./target/esbuild/surface/index.jsx",
90
+ "style": "./target/esbuild/surface/index.css"
91
+ },
92
+ "./text": {
93
+ "types": "./target/tsc/text/index.d.ts",
94
+ "solid": "./target/esbuild/text/index.jsx",
95
+ "style": "./target/esbuild/text/index.css"
96
+ },
97
+ "./util": {
98
+ "types": "./target/tsc/util/index.d.ts",
99
+ "solid": "./target/esbuild/util/index.jsx"
100
+ }
101
+ },
102
+ "devDependencies": {
103
+ "@pg-labs-incubator/cobweb-design": "^0.0.1",
104
+ "@pg-labs-incubator/lightningcss-plugin-cobweb": "^0.0.1",
105
+ "@solidjs/testing-library": "^0.8.10",
106
+ "@vitest/browser": "^3.2.4",
107
+ "playwright": "1.62.0",
108
+ "vite-plugin-solid": "^2.11.8",
109
+ "vitest": "^3.2.4"
110
+ },
111
+ "peerDependencies": {
112
+ "solid-js": "^1.9.9"
113
+ }
6
114
  }
@@ -0,0 +1,291 @@
1
+ # SPDX-License-Identifier: MPL-2.0
2
+ class: component
3
+ attribute: Action
4
+ description: >
5
+ Color and elevation roles shared by Material 3 action controls: common buttons, icon buttons and
6
+ floating action buttons, including their toggle variants. Each button style is a theme; FAB
7
+ elevations are separate themes applied alongside a FAB color theme. Values follow the AndroidX
8
+ Material 3 tokens (`FilledButtonTokens`, `ElevatedButtonTokens`, `TonalButtonTokens`,
9
+ `OutlinedButtonTokens`, `TextButtonTokens`, `IconButtonTokens`, `*IconButtonTokens`,
10
+ `FabPrimaryContainerTokens`, `ExtendedFabPrimaryTokens`).
11
+ roles:
12
+ container:
13
+ description: Container roles of an enabled, non-toggle control.
14
+ roles:
15
+ color:
16
+ description: Container color.
17
+ type: color
18
+ value: "#00000000"
19
+ elevation:
20
+ description: Resting container elevation.
21
+ type: integer
22
+ value: $cw-Elevation-level-0
23
+ outlineColor:
24
+ description: Container outline color, drawn only by outlined styles.
25
+ type: color
26
+ value: "#00000000"
27
+ shadowColor:
28
+ description: Elevation shadow color.
29
+ type: color
30
+ value: $cw-Color-shadow
31
+ label:
32
+ description: Label roles of an enabled, non-toggle control.
33
+ roles:
34
+ color:
35
+ description: Label color.
36
+ type: color
37
+ value: $cw-Color-primary-fill
38
+ icon:
39
+ description: Icon roles of an enabled, non-toggle control.
40
+ roles:
41
+ color:
42
+ description: Icon color.
43
+ type: color
44
+ value: $cw-Color-primary-fill
45
+ unselected:
46
+ description: Roles of an enabled toggle which is not selected.
47
+ roles:
48
+ containerColor:
49
+ description: Container color.
50
+ type: color
51
+ value: $cw-Color-surface-container
52
+ contentColor:
53
+ description: Label and icon color.
54
+ type: color
55
+ value: $cw-Color-surface-onFillVariant
56
+ selected:
57
+ description: Roles of an enabled, selected toggle. Selected toggles draw no outline.
58
+ roles:
59
+ containerColor:
60
+ description: Container color.
61
+ type: color
62
+ value: $cw-Color-primary-fill
63
+ contentColor:
64
+ description: Label and icon color.
65
+ type: color
66
+ value: $cw-Color-primary-onFill
67
+ hover:
68
+ description: Roles applied while the control is hovered.
69
+ roles:
70
+ containerElevation:
71
+ description: Container elevation.
72
+ type: integer
73
+ value: $cw-Elevation-level-0
74
+ focus:
75
+ description: Roles applied while the control is focused.
76
+ roles:
77
+ containerElevation:
78
+ description: Container elevation.
79
+ type: integer
80
+ value: $cw-Elevation-level-0
81
+ press:
82
+ description: Roles applied while the control is pressed.
83
+ roles:
84
+ containerElevation:
85
+ description: Container elevation.
86
+ type: integer
87
+ value: $cw-Elevation-level-0
88
+ disabled:
89
+ description: Roles applied while the control is disabled. Disabled controls have no elevation.
90
+ roles:
91
+ containerColor:
92
+ description: Container color, scaled by an opacity.
93
+ type: color
94
+ value: $cw-Color-surface-onFill
95
+ containerOpacity:
96
+ description: Opacity of the container color of a non-toggle or unselected control.
97
+ type: number
98
+ value: 0.1
99
+ selectedContainerOpacity:
100
+ description: Opacity of the container color of a selected toggle.
101
+ type: number
102
+ value: 0.1
103
+ contentColor:
104
+ description: Label and icon color, scaled by an opacity.
105
+ type: color
106
+ value: $cw-Color-surface-onFillVariant
107
+ contentOpacity:
108
+ description: Opacity of the label and icon color.
109
+ type: number
110
+ value: 0.38
111
+ outlineColor:
112
+ description: Outline color of outlined styles, scaled by an opacity.
113
+ type: color
114
+ value: $cw-Color-outlineVariant
115
+ outlineOpacity:
116
+ description: Opacity of the outline color.
117
+ type: number
118
+ value: 0.1
119
+ themes:
120
+ elevated:
121
+ description: Elevated common button (`ElevatedButtonTokens`).
122
+ values:
123
+ container-color: $cw-Color-surface-containerLow
124
+ container-elevation: $cw-Elevation-level-1
125
+ label-color: $cw-Color-primary-fill
126
+ icon-color: $cw-Color-primary-fill
127
+ unselected-containerColor: $cw-Color-surface-containerLow
128
+ unselected-contentColor: $cw-Color-primary-fill
129
+ selected-containerColor: $cw-Color-primary-fill
130
+ selected-contentColor: $cw-Color-primary-onFill
131
+ hover-containerElevation: $cw-Elevation-level-2
132
+ focus-containerElevation: $cw-Elevation-level-1
133
+ press-containerElevation: $cw-Elevation-level-1
134
+ filled:
135
+ description: Filled common or icon button (`FilledButtonTokens`, `FilledIconButtonTokens`).
136
+ values:
137
+ container-color: $cw-Color-primary-fill
138
+ label-color: $cw-Color-primary-onFill
139
+ icon-color: $cw-Color-primary-onFill
140
+ unselected-containerColor: $cw-Color-surface-container
141
+ unselected-contentColor: $cw-Color-surface-onFillVariant
142
+ selected-containerColor: $cw-Color-primary-fill
143
+ selected-contentColor: $cw-Color-primary-onFill
144
+ hover-containerElevation: $cw-Elevation-level-1
145
+ filledTonal:
146
+ description: Tonal common or icon button (`TonalButtonTokens`, `FilledTonalIconButtonTokens`).
147
+ values:
148
+ container-color: $cw-Color-secondary-container
149
+ label-color: $cw-Color-secondary-onContainer
150
+ icon-color: $cw-Color-secondary-onContainer
151
+ unselected-containerColor: $cw-Color-secondary-container
152
+ unselected-contentColor: $cw-Color-secondary-onContainer
153
+ selected-containerColor: $cw-Color-secondary-fill
154
+ selected-contentColor: $cw-Color-secondary-onFill
155
+ hover-containerElevation: $cw-Elevation-level-1
156
+ outlined:
157
+ description: >
158
+ Outlined common or icon button (`OutlinedButtonTokens`, `OutlinedIconButtonTokens`). A
159
+ disabled, unselected outlined control has no container.
160
+ values:
161
+ container-outlineColor: $cw-Color-outlineVariant
162
+ label-color: $cw-Color-surface-onFillVariant
163
+ icon-color: $cw-Color-surface-onFillVariant
164
+ unselected-containerColor: "#00000000"
165
+ unselected-contentColor: $cw-Color-surface-onFillVariant
166
+ selected-containerColor: $cw-Color-surface-inverseFill
167
+ selected-contentColor: $cw-Color-surface-inverseOnFill
168
+ disabled-containerOpacity: 0
169
+ text:
170
+ description: >
171
+ Text common button (`TextButtonTokens`). The label is primary, as in Compose's
172
+ `ButtonDefaults.textButtonColors`, which overrides the uncorrected token. Text buttons have no
173
+ container and no toggle variant.
174
+ values:
175
+ label-color: $cw-Color-primary-fill
176
+ icon-color: $cw-Color-primary-fill
177
+ disabled-containerOpacity: 0
178
+ standard:
179
+ description: Standard icon button (`IconButtonTokens`). It has no container in any state.
180
+ values:
181
+ label-color: $cw-Color-surface-onFillVariant
182
+ icon-color: $cw-Color-surface-onFillVariant
183
+ unselected-containerColor: "#00000000"
184
+ unselected-contentColor: $cw-Color-surface-onFillVariant
185
+ selected-containerColor: "#00000000"
186
+ selected-contentColor: $cw-Color-primary-fill
187
+ disabled-containerOpacity: 0
188
+ disabled-selectedContainerOpacity: 0
189
+ icon:
190
+ description: >
191
+ Icon-button disabled roles, applied in addition to an icon-button style. Icon buttons dim
192
+ their content from on-surface (`*IconButtonTokens.DisabledColor`), and an outlined icon
193
+ button dims its outline by the content opacity, as in Compose's
194
+ `IconButtonDefaults.outlinedIconButtonVibrantBorder`.
195
+ values:
196
+ disabled-contentColor: $cw-Color-surface-onFill
197
+ disabled-outlineOpacity: 0.38
198
+ fab:
199
+ description: Floating action button elevation (`FabPrimaryContainerTokens`).
200
+ values:
201
+ container-elevation: $cw-Elevation-level-3
202
+ hover-containerElevation: $cw-Elevation-level-4
203
+ focus-containerElevation: $cw-Elevation-level-3
204
+ press-containerElevation: $cw-Elevation-level-3
205
+ fabLowered:
206
+ description: Lowered floating action button elevation (`ExtendedFabPrimaryTokens.Lowered*`).
207
+ values:
208
+ container-elevation: $cw-Elevation-level-1
209
+ hover-containerElevation: $cw-Elevation-level-2
210
+ focus-containerElevation: $cw-Elevation-level-1
211
+ press-containerElevation: $cw-Elevation-level-1
212
+ fabPrimary:
213
+ description: >
214
+ Primary-container FAB (`FabPrimaryContainerTokens`). Selected, it becomes the primary close
215
+ button of a FAB menu (`ToggleFloatingActionButtonDefaults`).
216
+ values:
217
+ container-color: $cw-Color-primary-container
218
+ label-color: $cw-Color-primary-onContainer
219
+ icon-color: $cw-Color-primary-onContainer
220
+ unselected-containerColor: $cw-Color-primary-container
221
+ unselected-contentColor: $cw-Color-primary-onContainer
222
+ selected-containerColor: $cw-Color-primary-fill
223
+ selected-contentColor: $cw-Color-primary-onFill
224
+ fabSecondary:
225
+ description: Secondary-container FAB (`FabSecondaryContainerTokens`).
226
+ values:
227
+ container-color: $cw-Color-secondary-container
228
+ label-color: $cw-Color-secondary-onContainer
229
+ icon-color: $cw-Color-secondary-onContainer
230
+ unselected-containerColor: $cw-Color-secondary-container
231
+ unselected-contentColor: $cw-Color-secondary-onContainer
232
+ selected-containerColor: $cw-Color-secondary-fill
233
+ selected-contentColor: $cw-Color-secondary-onFill
234
+ fabTertiary:
235
+ description: Tertiary-container FAB.
236
+ values:
237
+ container-color: $cw-Color-tertiary-container
238
+ label-color: $cw-Color-tertiary-onContainer
239
+ icon-color: $cw-Color-tertiary-onContainer
240
+ unselected-containerColor: $cw-Color-tertiary-container
241
+ unselected-contentColor: $cw-Color-tertiary-onContainer
242
+ selected-containerColor: $cw-Color-tertiary-fill
243
+ selected-contentColor: $cw-Color-tertiary-onFill
244
+ fabSurface:
245
+ description: Surface FAB (material-web `md.comp.fab.surface`).
246
+ values:
247
+ container-color: $cw-Color-surface-containerHigh
248
+ label-color: $cw-Color-primary-fill
249
+ icon-color: $cw-Color-primary-fill
250
+ unselected-containerColor: $cw-Color-surface-containerHigh
251
+ unselected-contentColor: $cw-Color-primary-fill
252
+ selected-containerColor: $cw-Color-surface-containerHigh
253
+ selected-contentColor: $cw-Color-primary-fill
254
+ fabSurfaceLowered:
255
+ description: >
256
+ Lowered surface FAB container, applied in addition to `fabSurface` (material-web
257
+ `md.comp.fab.surface.lowered-container-color`).
258
+ values:
259
+ container-color: $cw-Color-surface-containerLow
260
+ unselected-containerColor: $cw-Color-surface-containerLow
261
+ selected-containerColor: $cw-Color-surface-containerLow
262
+ fabPrimaryFilled:
263
+ description: Primary FAB.
264
+ values:
265
+ container-color: $cw-Color-primary-fill
266
+ label-color: $cw-Color-primary-onFill
267
+ icon-color: $cw-Color-primary-onFill
268
+ unselected-containerColor: $cw-Color-primary-fill
269
+ unselected-contentColor: $cw-Color-primary-onFill
270
+ selected-containerColor: $cw-Color-primary-fill
271
+ selected-contentColor: $cw-Color-primary-onFill
272
+ fabSecondaryFilled:
273
+ description: Secondary FAB.
274
+ values:
275
+ container-color: $cw-Color-secondary-fill
276
+ label-color: $cw-Color-secondary-onFill
277
+ icon-color: $cw-Color-secondary-onFill
278
+ unselected-containerColor: $cw-Color-secondary-fill
279
+ unselected-contentColor: $cw-Color-secondary-onFill
280
+ selected-containerColor: $cw-Color-secondary-fill
281
+ selected-contentColor: $cw-Color-secondary-onFill
282
+ fabTertiaryFilled:
283
+ description: Tertiary FAB.
284
+ values:
285
+ container-color: $cw-Color-tertiary-fill
286
+ label-color: $cw-Color-tertiary-onFill
287
+ icon-color: $cw-Color-tertiary-onFill
288
+ unselected-containerColor: $cw-Color-tertiary-fill
289
+ unselected-contentColor: $cw-Color-tertiary-onFill
290
+ selected-containerColor: $cw-Color-tertiary-fill
291
+ selected-contentColor: $cw-Color-tertiary-onFill