@teseor/css 1.14.2 → 1.15.0

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 (300) hide show
  1. package/package.json +1 -1
  2. package/src/base/root.docs.html +20 -0
  3. package/src/base/typography/typography.docs.html +161 -0
  4. package/src/components/actions/button/button.docs.html +76 -0
  5. package/src/components/actions/button/button.visual.spec.ts +7 -3
  6. package/src/components/actions/button-group/button-group.docs.html +47 -0
  7. package/src/components/actions/button-group/button-group.visual.spec.ts +7 -3
  8. package/src/components/actions/close-button/close-button.docs.html +77 -0
  9. package/src/components/actions/close-button/close-button.visual.spec.ts +7 -3
  10. package/src/components/content/divider/divider.docs.html +27 -0
  11. package/src/components/content/divider/divider.visual.spec.ts +7 -3
  12. package/src/components/content/scroll-area/scroll-area-visual.png +0 -0
  13. package/src/components/content/scroll-area/scroll-area.docs.html +130 -0
  14. package/src/components/content/scroll-area/scroll-area.visual.spec.ts +7 -3
  15. package/src/components/content/spacer/spacer.docs.html +23 -0
  16. package/src/components/content/spacer/spacer.visual.spec.ts +3 -3
  17. package/src/components/data-display/avatar/avatar.docs.html +67 -0
  18. package/src/components/data-display/avatar/avatar.visual.spec.ts +7 -3
  19. package/src/components/data-display/badge/badge.docs.html +39 -0
  20. package/src/components/data-display/badge/badge.visual.spec.ts +7 -3
  21. package/src/components/data-display/card/card-visual.png +0 -0
  22. package/src/components/data-display/card/card.docs.html +36 -0
  23. package/src/components/data-display/card/card.visual.spec.ts +7 -3
  24. package/src/components/data-display/data-list/data-list-visual.png +0 -0
  25. package/src/components/data-display/data-list/data-list.docs.html +97 -0
  26. package/src/components/data-display/data-list/data-list.visual.spec.ts +7 -3
  27. package/src/components/data-display/icon/icon.docs.html +72 -0
  28. package/src/components/data-display/icon/icon.visual.spec.ts +7 -3
  29. package/src/components/data-display/image/image-visual.png +0 -0
  30. package/src/components/data-display/image/image.docs.html +67 -0
  31. package/src/components/data-display/image/image.visual.spec.ts +7 -3
  32. package/src/components/data-display/stat/stat.docs.html +35 -0
  33. package/src/components/data-display/stat/stat.visual.spec.ts +7 -3
  34. package/src/components/data-display/status/status.docs.html +67 -0
  35. package/src/components/data-display/status/status.visual.spec.ts +7 -3
  36. package/src/components/data-display/table/table.docs.html +73 -0
  37. package/src/components/data-display/table/table.visual.spec.ts +7 -3
  38. package/src/components/data-display/tag/tag.docs.html +42 -0
  39. package/src/components/data-display/tag/tag.visual.spec.ts +7 -3
  40. package/src/components/disclosure/accordion/accordion.docs.html +83 -0
  41. package/src/components/disclosure/accordion/accordion.visual.spec.ts +7 -3
  42. package/src/components/disclosure/disclosure/disclosure.docs.html +51 -0
  43. package/src/components/disclosure/disclosure/disclosure.visual.spec.ts +7 -3
  44. package/src/components/feedback/alert/alert.docs.html +90 -0
  45. package/src/components/feedback/alert/alert.visual.spec.ts +7 -3
  46. package/src/components/feedback/progress/progress.docs.html +65 -0
  47. package/src/components/feedback/progress/progress.visual.spec.ts +7 -3
  48. package/src/components/feedback/progress-circle/progress-circle.docs.html +65 -0
  49. package/src/components/feedback/progress-circle/progress-circle.visual.spec.ts +7 -3
  50. package/src/components/feedback/skeleton/skeleton.docs.html +40 -0
  51. package/src/components/feedback/skeleton/skeleton.visual.spec.ts +7 -3
  52. package/src/components/feedback/spinner/spinner.docs.html +28 -0
  53. package/src/components/feedback/spinner/spinner.visual.spec.ts +7 -3
  54. package/src/components/feedback/toast/toast-visual.png +0 -0
  55. package/src/components/feedback/toast/toast.docs.html +109 -0
  56. package/src/components/feedback/toast/toast.visual.spec.ts +7 -3
  57. package/src/components/forms/checkbox/checkbox.docs.html +33 -0
  58. package/src/components/forms/checkbox/checkbox.visual.spec.ts +7 -3
  59. package/src/components/forms/checkbox-group/checkbox-group.docs.html +104 -0
  60. package/src/components/forms/checkbox-group/checkbox-group.visual.spec.ts +7 -3
  61. package/src/components/forms/field/field.docs.html +63 -0
  62. package/src/components/forms/field/field.visual.spec.ts +7 -3
  63. package/src/components/forms/fieldset/fieldset.docs.html +122 -0
  64. package/src/components/forms/fieldset/fieldset.visual.spec.ts +7 -3
  65. package/src/components/forms/form/form.docs.html +132 -0
  66. package/src/components/forms/form/form.visual.spec.ts +7 -3
  67. package/src/components/forms/form-error/form-error.docs.html +18 -0
  68. package/src/components/forms/form-error/form-error.visual.spec.ts +7 -3
  69. package/src/components/forms/form-helper/form-helper.docs.html +42 -0
  70. package/src/components/forms/form-helper/form-helper.visual.spec.ts +7 -3
  71. package/src/components/forms/input/input-visual.png +0 -0
  72. package/src/components/forms/input/input.docs.html +69 -0
  73. package/src/components/forms/input/input.visual.spec.ts +7 -3
  74. package/src/components/forms/label/label-visual.png +0 -0
  75. package/src/components/forms/label/label.docs.html +29 -0
  76. package/src/components/forms/label/label.visual.spec.ts +7 -3
  77. package/src/components/forms/number-input/number-input-visual.png +0 -0
  78. package/src/components/forms/number-input/number-input.docs.html +100 -0
  79. package/src/components/forms/number-input/number-input.visual.spec.ts +7 -3
  80. package/src/components/forms/password-input/password-input-visual.png +0 -0
  81. package/src/components/forms/password-input/password-input.docs.html +88 -0
  82. package/src/components/forms/password-input/password-input.visual.spec.ts +7 -3
  83. package/src/components/forms/radio/radio.docs.html +52 -0
  84. package/src/components/forms/radio/radio.visual.spec.ts +7 -3
  85. package/src/components/forms/radio-group/radio-group.docs.html +100 -0
  86. package/src/components/forms/radio-group/radio-group.visual.spec.ts +7 -3
  87. package/src/components/forms/search-input/search-input-visual.png +0 -0
  88. package/src/components/forms/search-input/search-input.docs.html +87 -0
  89. package/src/components/forms/search-input/search-input.visual.spec.ts +7 -3
  90. package/src/components/forms/select/select-visual.png +0 -0
  91. package/src/components/forms/select/select.docs.html +70 -0
  92. package/src/components/forms/select/select.visual.spec.ts +7 -3
  93. package/src/components/forms/slider/slider-visual.png +0 -0
  94. package/src/components/forms/slider/slider.docs.html +25 -0
  95. package/src/components/forms/slider/slider.visual.spec.ts +7 -3
  96. package/src/components/forms/textarea/textarea-visual.png +0 -0
  97. package/src/components/forms/textarea/textarea.docs.html +39 -0
  98. package/src/components/forms/textarea/textarea.visual.spec.ts +7 -3
  99. package/src/components/forms/toggle/toggle.docs.html +64 -0
  100. package/src/components/forms/toggle/toggle.visual.spec.ts +7 -3
  101. package/src/components/navigation/breadcrumb/breadcrumb.docs.html +60 -0
  102. package/src/components/navigation/breadcrumb/breadcrumb.visual.spec.ts +7 -3
  103. package/src/components/navigation/dropdown-menu/dropdown-menu-visual.png +0 -0
  104. package/src/components/navigation/dropdown-menu/dropdown-menu.docs.html +106 -0
  105. package/src/components/navigation/dropdown-menu/dropdown-menu.visual.spec.ts +7 -3
  106. package/src/components/navigation/menu/menu.docs.html +122 -0
  107. package/src/components/navigation/menu/menu.visual.spec.ts +7 -3
  108. package/src/components/navigation/nav/nav.docs.html +74 -0
  109. package/src/components/navigation/nav/nav.visual.spec.ts +7 -3
  110. package/src/components/navigation/pagination/pagination-visual.png +0 -0
  111. package/src/components/navigation/pagination/pagination.docs.html +116 -0
  112. package/src/components/navigation/pagination/pagination.visual.spec.ts +7 -3
  113. package/src/components/navigation/tabs/tabs.docs.html +66 -0
  114. package/src/components/navigation/tabs/tabs.visual.spec.ts +7 -3
  115. package/src/components/overlays/dialog/dialog.docs.html +61 -0
  116. package/src/components/overlays/dialog/dialog.visual.spec.ts +7 -3
  117. package/src/components/overlays/drawer/drawer-visual.png +0 -0
  118. package/src/components/overlays/drawer/drawer.docs.html +90 -0
  119. package/src/components/overlays/drawer/drawer.visual.spec.ts +7 -3
  120. package/src/components/overlays/modal/modal.docs.html +69 -0
  121. package/src/components/overlays/modal/modal.visual.spec.ts +7 -3
  122. package/src/components/overlays/overlay/overlay.docs.html +30 -0
  123. package/src/components/overlays/overlay/overlay.visual.spec.ts +7 -3
  124. package/src/components/overlays/popover/popover.docs.html +41 -0
  125. package/src/components/overlays/popover/popover.visual.spec.ts +7 -3
  126. package/src/components/overlays/tooltip/tooltip.docs.html +33 -0
  127. package/src/components/overlays/tooltip/tooltip.visual.spec.ts +7 -3
  128. package/src/components/typography/blockquote/blockquote.docs.html +24 -0
  129. package/src/components/typography/blockquote/blockquote.visual.spec.ts +7 -3
  130. package/src/components/typography/code/code-visual.png +0 -0
  131. package/src/components/typography/code/code.docs.html +23 -0
  132. package/src/components/typography/code/code.visual.spec.ts +7 -3
  133. package/src/components/typography/code-block/code-block-visual.png +0 -0
  134. package/src/components/typography/code-block/code-block.docs.html +87 -0
  135. package/src/components/typography/code-block/code-block.visual.spec.ts +7 -3
  136. package/src/components/typography/heading/heading-visual.png +0 -0
  137. package/src/components/typography/heading/heading.docs.html +26 -0
  138. package/src/components/typography/heading/heading.visual.spec.ts +7 -3
  139. package/src/components/typography/kbd/kbd.docs.html +16 -0
  140. package/src/components/typography/kbd/kbd.visual.spec.ts +7 -3
  141. package/src/components/typography/link/link.docs.html +33 -0
  142. package/src/components/typography/link/link.visual.spec.ts +7 -3
  143. package/src/components/typography/list/list.docs.html +79 -0
  144. package/src/components/typography/list/list.visual.spec.ts +7 -3
  145. package/src/components/typography/mark/mark.docs.html +12 -0
  146. package/src/components/typography/mark/mark.visual.spec.ts +7 -3
  147. package/src/config/guides/accessibility.docs.html +108 -0
  148. package/src/config/guides/getting-started.docs.html +47 -0
  149. package/src/config/guides/theming.docs.html +71 -0
  150. package/src/config/tokens/colors/colors.docs.html +75 -0
  151. package/src/config/tokens/design-tokens.docs.html +116 -0
  152. package/src/config/tokens/grid/grid.docs.html +12 -0
  153. package/src/config/tokens/spacing/spacing.docs.html +33 -0
  154. package/src/debug/debug.docs.html +29 -0
  155. package/src/debug/index.scss +81 -1
  156. package/src/layout/app-shell/app-shell-visual.png +0 -0
  157. package/src/layout/app-shell/app-shell.docs.html +102 -0
  158. package/src/layout/app-shell/app-shell.visual.spec.ts +3 -3
  159. package/src/layout/aspect-ratio/aspect-ratio.docs.html +41 -0
  160. package/src/layout/aspect-ratio/aspect-ratio.visual.spec.ts +3 -3
  161. package/src/layout/box/box-visual.png +0 -0
  162. package/src/layout/box/box.docs.html +27 -0
  163. package/src/layout/box/box.visual.spec.ts +3 -3
  164. package/src/layout/center/center.docs.html +26 -0
  165. package/src/layout/center/center.visual.spec.ts +3 -3
  166. package/src/layout/column/column.docs.html +32 -0
  167. package/src/layout/column/column.visual.spec.ts +3 -3
  168. package/src/layout/container/container.docs.html +37 -0
  169. package/src/layout/content/content-visual.png +0 -0
  170. package/src/layout/content/content.docs.html +38 -0
  171. package/src/layout/content/content.visual.spec.ts +7 -3
  172. package/src/layout/footer/footer-visual.png +0 -0
  173. package/src/layout/footer/footer.docs.html +73 -0
  174. package/src/layout/footer/footer.visual.spec.ts +7 -3
  175. package/src/layout/grid/grid.docs.html +87 -0
  176. package/src/layout/grid/grid.visual.spec.ts +3 -3
  177. package/src/layout/main/main.docs.html +31 -0
  178. package/src/layout/nav-rail/nav-rail-visual.png +0 -0
  179. package/src/layout/nav-rail/nav-rail.docs.html +42 -0
  180. package/src/layout/nav-rail/nav-rail.visual.spec.ts +7 -3
  181. package/src/layout/page-header/page-header.docs.html +52 -0
  182. package/src/layout/page-header/page-header.visual.spec.ts +7 -3
  183. package/src/layout/row/row.docs.html +47 -0
  184. package/src/layout/row/row.visual.spec.ts +3 -3
  185. package/src/layout/sidebar/sidebar-visual.png +0 -0
  186. package/src/layout/sidebar/sidebar.docs.html +30 -0
  187. package/src/layout/sidebar/sidebar.visual.spec.ts +7 -3
  188. package/src/layout/sidebar-nav/sidebar-nav.docs.html +235 -0
  189. package/src/layout/sidebar-nav/sidebar-nav.visual.spec.ts +7 -3
  190. package/src/layout/topbar/topbar-visual.png +0 -0
  191. package/src/layout/topbar/topbar.docs.html +64 -0
  192. package/src/layout/topbar/topbar.visual.spec.ts +7 -3
  193. package/src/utilities/container/container.docs.html +34 -0
  194. package/src/utilities/display/display.docs.html +30 -0
  195. package/src/utilities/scroll-animation/scroll-animation.docs.html +32 -0
  196. package/src/utilities/scroll-snap/scroll-snap.docs.html +80 -0
  197. package/src/utilities/spacing/spacing.docs.html +29 -0
  198. package/src/utilities/text/text.docs.html +66 -0
  199. package/src/utilities/view-transition/view-transition.docs.html +52 -0
  200. package/src/utilities/visually-hidden/visually-hidden.docs.html +18 -0
  201. package/src/base/typography/typography.docs.json +0 -328
  202. package/src/components/actions/button/button.docs.json +0 -264
  203. package/src/components/actions/button-group/button-group.docs.json +0 -151
  204. package/src/components/actions/close-button/close-button.docs.json +0 -265
  205. package/src/components/content/divider/divider.docs.json +0 -113
  206. package/src/components/content/scroll-area/scroll-area.docs.json +0 -273
  207. package/src/components/content/spacer/spacer.docs.json +0 -102
  208. package/src/components/data-display/avatar/avatar.docs.json +0 -245
  209. package/src/components/data-display/badge/badge.docs.json +0 -114
  210. package/src/components/data-display/card/card.docs.json +0 -229
  211. package/src/components/data-display/data-list/data-list.docs.json +0 -259
  212. package/src/components/data-display/icon/icon.docs.json +0 -307
  213. package/src/components/data-display/image/image.docs.json +0 -337
  214. package/src/components/data-display/stat/stat.docs.json +0 -114
  215. package/src/components/data-display/status/status.docs.json +0 -147
  216. package/src/components/data-display/table/table.docs.json +0 -184
  217. package/src/components/data-display/tag/tag.docs.json +0 -146
  218. package/src/components/disclosure/accordion/accordion.docs.json +0 -206
  219. package/src/components/disclosure/disclosure/disclosure.docs.json +0 -154
  220. package/src/components/feedback/alert/alert.docs.json +0 -325
  221. package/src/components/feedback/progress/progress.docs.json +0 -315
  222. package/src/components/feedback/progress-circle/progress-circle.docs.json +0 -378
  223. package/src/components/feedback/skeleton/skeleton.docs.json +0 -142
  224. package/src/components/feedback/spinner/spinner.docs.json +0 -121
  225. package/src/components/feedback/toast/toast.docs.json +0 -418
  226. package/src/components/forms/checkbox/checkbox.docs.json +0 -166
  227. package/src/components/forms/checkbox-group/checkbox-group.docs.json +0 -339
  228. package/src/components/forms/field/field.docs.json +0 -276
  229. package/src/components/forms/fieldset/fieldset.docs.json +0 -520
  230. package/src/components/forms/form/form.docs.json +0 -482
  231. package/src/components/forms/form-error/form-error.docs.json +0 -61
  232. package/src/components/forms/form-helper/form-helper.docs.json +0 -151
  233. package/src/components/forms/input/input.docs.json +0 -306
  234. package/src/components/forms/label/label.docs.json +0 -110
  235. package/src/components/forms/number-input/number-input.docs.json +0 -311
  236. package/src/components/forms/password-input/password-input.docs.json +0 -316
  237. package/src/components/forms/radio/radio.docs.json +0 -236
  238. package/src/components/forms/radio-group/radio-group.docs.json +0 -351
  239. package/src/components/forms/search-input/search-input.docs.json +0 -293
  240. package/src/components/forms/select/select.docs.json +0 -231
  241. package/src/components/forms/slider/slider.docs.json +0 -144
  242. package/src/components/forms/textarea/textarea.docs.json +0 -229
  243. package/src/components/forms/toggle/toggle.docs.json +0 -229
  244. package/src/components/navigation/breadcrumb/breadcrumb.docs.json +0 -240
  245. package/src/components/navigation/dropdown-menu/dropdown-menu.docs.json +0 -290
  246. package/src/components/navigation/menu/menu.docs.json +0 -326
  247. package/src/components/navigation/nav/nav.docs.json +0 -304
  248. package/src/components/navigation/pagination/pagination.docs.json +0 -483
  249. package/src/components/navigation/tabs/tabs.docs.json +0 -243
  250. package/src/components/overlays/dialog/dialog.docs.json +0 -200
  251. package/src/components/overlays/drawer/drawer.docs.json +0 -307
  252. package/src/components/overlays/modal/modal.docs.json +0 -252
  253. package/src/components/overlays/overlay/overlay.docs.json +0 -138
  254. package/src/components/overlays/popover/popover.docs.json +0 -154
  255. package/src/components/overlays/tooltip/tooltip.docs.json +0 -133
  256. package/src/components/typography/blockquote/blockquote.docs.json +0 -89
  257. package/src/components/typography/code/code.docs.json +0 -104
  258. package/src/components/typography/code-block/code-block.docs.json +0 -308
  259. package/src/components/typography/heading/heading.docs.json +0 -120
  260. package/src/components/typography/kbd/kbd.docs.json +0 -61
  261. package/src/components/typography/link/link.docs.json +0 -149
  262. package/src/components/typography/list/list.docs.json +0 -296
  263. package/src/components/typography/mark/mark.docs.json +0 -60
  264. package/src/config/tokens/accessibility.docs.json +0 -125
  265. package/src/config/tokens/colors/colors.docs.json +0 -316
  266. package/src/config/tokens/grid/grid.docs.json +0 -54
  267. package/src/config/tokens/spacing/spacing.docs.json +0 -114
  268. package/src/config/tokens/theming.docs.json +0 -288
  269. package/src/debug/grid-overlay.scss +0 -81
  270. package/src/layout/app-shell/app-shell.docs.json +0 -155
  271. package/src/layout/aspect-ratio/aspect-ratio.docs.json +0 -193
  272. package/src/layout/box/box.docs.json +0 -93
  273. package/src/layout/center/center.docs.json +0 -63
  274. package/src/layout/column/column.docs.json +0 -157
  275. package/src/layout/container/container.docs.json +0 -85
  276. package/src/layout/content/content.docs.json +0 -82
  277. package/src/layout/footer/footer.docs.json +0 -119
  278. package/src/layout/grid/grid.docs.json +0 -493
  279. package/src/layout/main/main.docs.json +0 -87
  280. package/src/layout/nav-rail/nav-rail.docs.json +0 -76
  281. package/src/layout/page-header/page-header.docs.json +0 -124
  282. package/src/layout/row/row.docs.json +0 -237
  283. package/src/layout/sidebar/sidebar.docs.json +0 -63
  284. package/src/layout/sidebar-nav/sidebar-nav.docs.json +0 -833
  285. package/src/layout/topbar/topbar.docs.json +0 -110
  286. package/src/testing/api-types.ts +0 -20
  287. package/src/testing/grid-alignment.spec.ts +0 -38
  288. package/src/testing/html-generator.ts +0 -151
  289. package/src/testing/index.ts +0 -15
  290. package/src/testing/page-setup.ts +0 -149
  291. package/src/testing/rhythm.ts +0 -146
  292. package/src/testing/scaffold.ts +0 -50
  293. package/src/utilities/container/container.docs.json +0 -121
  294. package/src/utilities/display/display.docs.json +0 -83
  295. package/src/utilities/scroll-animation/scroll-animation.docs.json +0 -100
  296. package/src/utilities/scroll-snap/scroll-snap.docs.json +0 -333
  297. package/src/utilities/spacing/spacing.docs.json +0 -133
  298. package/src/utilities/text/text.docs.json +0 -191
  299. package/src/utilities/view-transition/view-transition.docs.json +0 -63
  300. package/src/utilities/visually-hidden/visually-hidden.docs.json +0 -44
@@ -1,293 +0,0 @@
1
- {
2
- "id": "search-input",
3
- "type": "component",
4
- "title": "Search Input",
5
- "description": "Search field with built-in search icon and optional clear button.",
6
- "api": "./search-input.api.json",
7
- "sections": [
8
- {
9
- "title": "Default",
10
- "examples": [
11
- {
12
- "items": [
13
- {
14
- "tag": "div",
15
- "class": "ui-search-input",
16
- "children": [
17
- {
18
- "tag": "span",
19
- "class": "ui-search-input__icon",
20
- "children": [
21
- {
22
- "tag": "svg",
23
- "attrs": { "viewBox": "0 0 24 24" },
24
- "children": [
25
- { "tag": "circle", "attrs": { "cx": "11", "cy": "11", "r": "8" } },
26
- { "tag": "path", "attrs": { "d": "m21 21-4.3-4.3" } }
27
- ]
28
- }
29
- ]
30
- },
31
- {
32
- "tag": "input",
33
- "class": "ui-search-input__field",
34
- "attrs": { "type": "search", "placeholder": "Search..." }
35
- }
36
- ]
37
- }
38
- ],
39
- "code": "<div class=\"ui-search-input\">\n <span class=\"ui-search-input__icon\"><svg>...</svg></span>\n <input class=\"ui-search-input__field\" type=\"search\" placeholder=\"Search...\">\n</div>"
40
- }
41
- ]
42
- },
43
- {
44
- "title": "With Clear Button",
45
- "examples": [
46
- {
47
- "items": [
48
- {
49
- "tag": "div",
50
- "class": "ui-search-input ui-search-input--has-clear",
51
- "children": [
52
- {
53
- "tag": "span",
54
- "class": "ui-search-input__icon",
55
- "children": [
56
- {
57
- "tag": "svg",
58
- "attrs": { "viewBox": "0 0 24 24" },
59
- "children": [
60
- { "tag": "circle", "attrs": { "cx": "11", "cy": "11", "r": "8" } },
61
- { "tag": "path", "attrs": { "d": "m21 21-4.3-4.3" } }
62
- ]
63
- }
64
- ]
65
- },
66
- {
67
- "tag": "input",
68
- "class": "ui-search-input__field",
69
- "attrs": { "type": "search", "value": "Design tokens" }
70
- },
71
- {
72
- "tag": "button",
73
- "class": "ui-search-input__clear",
74
- "attrs": { "type": "button", "aria-label": "Clear search" },
75
- "children": [
76
- {
77
- "tag": "svg",
78
- "attrs": { "viewBox": "0 0 24 24" },
79
- "children": [
80
- { "tag": "path", "attrs": { "d": "M18 6 6 18" } },
81
- { "tag": "path", "attrs": { "d": "m6 6 12 12" } }
82
- ]
83
- }
84
- ]
85
- }
86
- ]
87
- }
88
- ],
89
- "code": "<div class=\"ui-search-input ui-search-input--has-clear\">\n <span class=\"ui-search-input__icon\"><svg>...</svg></span>\n <input class=\"ui-search-input__field\" type=\"search\" value=\"Design tokens\">\n <button class=\"ui-search-input__clear\" aria-label=\"Clear search\"><svg>...</svg></button>\n</div>"
90
- }
91
- ]
92
- },
93
- {
94
- "title": "Sizes",
95
- "examples": [
96
- {
97
- "layout": "column",
98
- "items": [
99
- {
100
- "tag": "div",
101
- "class": "ui-search-input ui-search-input--sm",
102
- "children": [
103
- {
104
- "tag": "span",
105
- "class": "ui-search-input__icon",
106
- "children": [
107
- {
108
- "tag": "svg",
109
- "attrs": { "viewBox": "0 0 24 24" },
110
- "children": [
111
- { "tag": "circle", "attrs": { "cx": "11", "cy": "11", "r": "8" } },
112
- { "tag": "path", "attrs": { "d": "m21 21-4.3-4.3" } }
113
- ]
114
- }
115
- ]
116
- },
117
- {
118
- "tag": "input",
119
- "class": "ui-search-input__field",
120
- "attrs": { "type": "search", "placeholder": "Small" }
121
- }
122
- ]
123
- },
124
- {
125
- "tag": "div",
126
- "class": "ui-search-input",
127
- "children": [
128
- {
129
- "tag": "span",
130
- "class": "ui-search-input__icon",
131
- "children": [
132
- {
133
- "tag": "svg",
134
- "attrs": { "viewBox": "0 0 24 24" },
135
- "children": [
136
- { "tag": "circle", "attrs": { "cx": "11", "cy": "11", "r": "8" } },
137
- { "tag": "path", "attrs": { "d": "m21 21-4.3-4.3" } }
138
- ]
139
- }
140
- ]
141
- },
142
- {
143
- "tag": "input",
144
- "class": "ui-search-input__field",
145
- "attrs": { "type": "search", "placeholder": "Default" }
146
- }
147
- ]
148
- },
149
- {
150
- "tag": "div",
151
- "class": "ui-search-input ui-search-input--lg",
152
- "children": [
153
- {
154
- "tag": "span",
155
- "class": "ui-search-input__icon",
156
- "children": [
157
- {
158
- "tag": "svg",
159
- "attrs": { "viewBox": "0 0 24 24" },
160
- "children": [
161
- { "tag": "circle", "attrs": { "cx": "11", "cy": "11", "r": "8" } },
162
- { "tag": "path", "attrs": { "d": "m21 21-4.3-4.3" } }
163
- ]
164
- }
165
- ]
166
- },
167
- {
168
- "tag": "input",
169
- "class": "ui-search-input__field",
170
- "attrs": { "type": "search", "placeholder": "Large" }
171
- }
172
- ]
173
- }
174
- ],
175
- "code": "<div class=\"ui-search-input ui-search-input--sm\">...</div>\n<div class=\"ui-search-input\">...</div>\n<div class=\"ui-search-input ui-search-input--lg\">...</div>"
176
- }
177
- ]
178
- },
179
- {
180
- "title": "Block",
181
- "description": "Full-width layout.",
182
- "examples": [
183
- {
184
- "items": [
185
- {
186
- "tag": "div",
187
- "class": "ui-search-input ui-search-input--block",
188
- "children": [
189
- {
190
- "tag": "span",
191
- "class": "ui-search-input__icon",
192
- "children": [
193
- {
194
- "tag": "svg",
195
- "attrs": { "viewBox": "0 0 24 24" },
196
- "children": [
197
- { "tag": "circle", "attrs": { "cx": "11", "cy": "11", "r": "8" } },
198
- { "tag": "path", "attrs": { "d": "m21 21-4.3-4.3" } }
199
- ]
200
- }
201
- ]
202
- },
203
- {
204
- "tag": "input",
205
- "class": "ui-search-input__field",
206
- "attrs": { "type": "search", "placeholder": "Full width search..." }
207
- }
208
- ]
209
- }
210
- ],
211
- "code": "<div class=\"ui-search-input ui-search-input--block\">...</div>"
212
- }
213
- ]
214
- },
215
- {
216
- "title": "Disabled",
217
- "examples": [
218
- {
219
- "items": [
220
- {
221
- "tag": "div",
222
- "class": "ui-search-input ui-search-input--disabled",
223
- "children": [
224
- {
225
- "tag": "span",
226
- "class": "ui-search-input__icon",
227
- "children": [
228
- {
229
- "tag": "svg",
230
- "attrs": { "viewBox": "0 0 24 24" },
231
- "children": [
232
- { "tag": "circle", "attrs": { "cx": "11", "cy": "11", "r": "8" } },
233
- { "tag": "path", "attrs": { "d": "m21 21-4.3-4.3" } }
234
- ]
235
- }
236
- ]
237
- },
238
- {
239
- "tag": "input",
240
- "class": "ui-search-input__field",
241
- "attrs": { "type": "search", "placeholder": "Disabled", "disabled": "" }
242
- }
243
- ]
244
- }
245
- ],
246
- "code": "<div class=\"ui-search-input ui-search-input--disabled\">\n <span class=\"ui-search-input__icon\"><svg>...</svg></span>\n <input class=\"ui-search-input__field\" type=\"search\" disabled>\n</div>"
247
- }
248
- ]
249
- }
250
- ],
251
- "customization": [
252
- {
253
- "token": "--ui-search-input-height",
254
- "default": "var(--ui-row-2)",
255
- "description": "Default height"
256
- },
257
- {
258
- "token": "--ui-search-input-height-sm",
259
- "default": "calc(var(--ui-row) * 1.5)",
260
- "description": "Small height"
261
- },
262
- {
263
- "token": "--ui-search-input-height-lg",
264
- "default": "calc(var(--ui-row) * 2.5)",
265
- "description": "Large height"
266
- },
267
- {
268
- "token": "--ui-search-input-bg",
269
- "default": "var(--ui-color-bg)",
270
- "description": "Background color"
271
- },
272
- {
273
- "token": "--ui-search-input-border-color",
274
- "default": "var(--ui-color-border-strong)",
275
- "description": "Border color"
276
- },
277
- {
278
- "token": "--ui-search-input-border-color-focus",
279
- "default": "var(--ui-color-primary)",
280
- "description": "Focus border color"
281
- },
282
- {
283
- "token": "--ui-search-input-icon-color",
284
- "default": "var(--ui-color-text-muted)",
285
- "description": "Search icon color"
286
- },
287
- {
288
- "token": "--ui-search-input-clear-color",
289
- "default": "var(--ui-color-text-muted)",
290
- "description": "Clear button color"
291
- }
292
- ]
293
- }
@@ -1,231 +0,0 @@
1
- {
2
- "id": "select",
3
- "type": "component",
4
- "title": "Select",
5
- "description": "Native select dropdown with custom styling. Dropdown options use browser default styles.",
6
- "api": "./select.api.json",
7
- "sections": [
8
- {
9
- "title": "Default",
10
- "examples": [
11
- {
12
- "items": [
13
- {
14
- "tag": "select",
15
- "class": "ui-select",
16
- "children": [
17
- {
18
- "tag": "option",
19
- "text": "Choose option...",
20
- "attrs": { "value": "", "disabled": "", "selected": "" }
21
- },
22
- { "tag": "option", "text": "Option 1", "attrs": { "value": "1" } },
23
- { "tag": "option", "text": "Option 2", "attrs": { "value": "2" } },
24
- { "tag": "option", "text": "Option 3", "attrs": { "value": "3" } }
25
- ]
26
- }
27
- ]
28
- }
29
- ]
30
- },
31
- {
32
- "title": "Sizes",
33
- "examples": [
34
- {
35
- "layout": "column",
36
- "items": [
37
- {
38
- "tag": "select",
39
- "class": "ui-select ui-select--sm",
40
- "children": [
41
- { "tag": "option", "text": "Small" },
42
- { "tag": "option", "text": "Option 2" }
43
- ]
44
- },
45
- {
46
- "tag": "select",
47
- "class": "ui-select",
48
- "children": [
49
- { "tag": "option", "text": "Default" },
50
- { "tag": "option", "text": "Option 2" }
51
- ]
52
- },
53
- {
54
- "tag": "select",
55
- "class": "ui-select ui-select--lg",
56
- "children": [
57
- { "tag": "option", "text": "Large" },
58
- { "tag": "option", "text": "Option 2" }
59
- ]
60
- }
61
- ],
62
- "code": "<select class=\"ui-select ui-select--sm\">...</select>\n<select class=\"ui-select\">...</select>\n<select class=\"ui-select ui-select--lg\">...</select>"
63
- }
64
- ]
65
- },
66
- {
67
- "title": "Variants",
68
- "examples": [
69
- {
70
- "layout": "column",
71
- "items": [
72
- {
73
- "tag": "select",
74
- "class": "ui-select",
75
- "children": [{ "tag": "option", "text": "Outline (default)" }]
76
- },
77
- {
78
- "tag": "select",
79
- "class": "ui-select ui-select--filled",
80
- "children": [{ "tag": "option", "text": "Filled" }]
81
- },
82
- {
83
- "tag": "select",
84
- "class": "ui-select ui-select--ghost",
85
- "children": [{ "tag": "option", "text": "Ghost" }]
86
- }
87
- ],
88
- "code": "<select class=\"ui-select\">...</select>\n<select class=\"ui-select ui-select--filled\">...</select>\n<select class=\"ui-select ui-select--ghost\">...</select>"
89
- }
90
- ]
91
- },
92
- {
93
- "title": "States",
94
- "examples": [
95
- {
96
- "layout": "column",
97
- "items": [
98
- {
99
- "tag": "select",
100
- "class": "ui-select ui-select--error",
101
- "children": [{ "tag": "option", "text": "Error state" }]
102
- },
103
- {
104
- "tag": "select",
105
- "class": "ui-select ui-select--success",
106
- "children": [{ "tag": "option", "text": "Success state" }]
107
- },
108
- {
109
- "tag": "select",
110
- "class": "ui-select",
111
- "attrs": { "disabled": "" },
112
- "children": [{ "tag": "option", "text": "Disabled" }]
113
- }
114
- ],
115
- "code": "<select class=\"ui-select ui-select--error\">...</select>\n<select class=\"ui-select ui-select--success\">...</select>\n<select class=\"ui-select\" disabled>...</select>"
116
- }
117
- ]
118
- },
119
- {
120
- "title": "Full Width",
121
- "examples": [
122
- {
123
- "items": [
124
- {
125
- "tag": "select",
126
- "class": "ui-select ui-select--block",
127
- "children": [
128
- { "tag": "option", "text": "Full width select...", "attrs": { "value": "" } },
129
- { "tag": "option", "text": "Option 1", "attrs": { "value": "1" } }
130
- ]
131
- }
132
- ]
133
- }
134
- ]
135
- },
136
- {
137
- "title": "With Option Groups",
138
- "examples": [
139
- {
140
- "items": [
141
- {
142
- "tag": "select",
143
- "class": "ui-select ui-select--block",
144
- "children": [
145
- {
146
- "tag": "option",
147
- "text": "Choose a fruit...",
148
- "attrs": { "value": "", "disabled": "", "selected": "" }
149
- },
150
- {
151
- "tag": "optgroup",
152
- "attrs": { "label": "Citrus" },
153
- "children": [
154
- { "tag": "option", "text": "Orange", "attrs": { "value": "orange" } },
155
- { "tag": "option", "text": "Lemon", "attrs": { "value": "lemon" } }
156
- ]
157
- },
158
- {
159
- "tag": "optgroup",
160
- "attrs": { "label": "Berries" },
161
- "children": [
162
- { "tag": "option", "text": "Strawberry", "attrs": { "value": "strawberry" } },
163
- { "tag": "option", "text": "Blueberry", "attrs": { "value": "blueberry" } }
164
- ]
165
- }
166
- ]
167
- }
168
- ],
169
- "code": "<select class=\"ui-select\">\n <optgroup label=\"Citrus\">\n <option>Orange</option>\n <option>Lemon</option>\n </optgroup>\n <optgroup label=\"Berries\">\n <option>Strawberry</option>\n </optgroup>\n</select>"
170
- }
171
- ]
172
- }
173
- ],
174
- "customization": [
175
- {
176
- "token": "--ui-select-height",
177
- "default": "var(--ui-row-2)",
178
- "description": "Default height"
179
- },
180
- {
181
- "token": "--ui-select-height-sm",
182
- "default": "calc(var(--ui-row) * 1.5)",
183
- "description": "Small height"
184
- },
185
- {
186
- "token": "--ui-select-height-lg",
187
- "default": "calc(var(--ui-row) * 2.5)",
188
- "description": "Large height"
189
- },
190
- {
191
- "token": "--ui-select-padding-x",
192
- "default": "var(--ui-space-1)",
193
- "description": "Horizontal padding"
194
- },
195
- {
196
- "token": "--ui-select-font-size",
197
- "default": "var(--ui-font-size-sm)",
198
- "description": "Font size"
199
- },
200
- {
201
- "token": "--ui-select-radius",
202
- "default": "var(--ui-radius-md)",
203
- "description": "Border radius"
204
- },
205
- {
206
- "token": "--ui-select-bg",
207
- "default": "var(--ui-color-bg)",
208
- "description": "Background color"
209
- },
210
- {
211
- "token": "--ui-select-border-color",
212
- "default": "var(--ui-color-border-strong)",
213
- "description": "Border color"
214
- },
215
- {
216
- "token": "--ui-select-border-color-focus",
217
- "default": "var(--ui-color-primary)",
218
- "description": "Focus border color"
219
- },
220
- {
221
- "token": "--ui-select-color",
222
- "default": "var(--ui-color-text)",
223
- "description": "Text color"
224
- },
225
- {
226
- "token": "--ui-select-icon-color",
227
- "default": "var(--ui-color-text-muted)",
228
- "description": "Arrow icon color"
229
- }
230
- ]
231
- }
@@ -1,144 +0,0 @@
1
- {
2
- "id": "slider",
3
- "type": "component",
4
- "title": "Slider",
5
- "description": "Range value selection. Styles the native range input cross-browser for track and thumb.",
6
- "api": "./slider.api.json",
7
- "sections": [
8
- {
9
- "title": "Default",
10
- "examples": [
11
- {
12
- "items": [
13
- {
14
- "tag": "input",
15
- "class": "ui-slider",
16
- "attrs": { "type": "range", "min": "0", "max": "100", "value": "50" }
17
- }
18
- ],
19
- "code": "<input type=\"range\" class=\"ui-slider\" min=\"0\" max=\"100\" value=\"50\">"
20
- }
21
- ]
22
- },
23
- {
24
- "title": "Sizes",
25
- "examples": [
26
- {
27
- "layout": "column",
28
- "items": [
29
- {
30
- "tag": "input",
31
- "class": "ui-slider ui-slider--sm",
32
- "attrs": { "type": "range", "min": "0", "max": "100", "value": "30" }
33
- },
34
- {
35
- "tag": "input",
36
- "class": "ui-slider",
37
- "attrs": { "type": "range", "min": "0", "max": "100", "value": "50" }
38
- },
39
- {
40
- "tag": "input",
41
- "class": "ui-slider ui-slider--lg",
42
- "attrs": { "type": "range", "min": "0", "max": "100", "value": "70" }
43
- }
44
- ],
45
- "code": "<input type=\"range\" class=\"ui-slider ui-slider--sm\" value=\"30\">\n<input type=\"range\" class=\"ui-slider\" value=\"50\">\n<input type=\"range\" class=\"ui-slider ui-slider--lg\" value=\"70\">"
46
- }
47
- ]
48
- },
49
- {
50
- "title": "Colors",
51
- "examples": [
52
- {
53
- "layout": "column",
54
- "items": [
55
- {
56
- "tag": "input",
57
- "class": "ui-slider",
58
- "attrs": { "type": "range", "min": "0", "max": "100", "value": "50" }
59
- },
60
- {
61
- "tag": "input",
62
- "class": "ui-slider ui-slider--success",
63
- "attrs": { "type": "range", "min": "0", "max": "100", "value": "80" }
64
- },
65
- {
66
- "tag": "input",
67
- "class": "ui-slider ui-slider--warning",
68
- "attrs": { "type": "range", "min": "0", "max": "100", "value": "60" }
69
- },
70
- {
71
- "tag": "input",
72
- "class": "ui-slider ui-slider--danger",
73
- "attrs": { "type": "range", "min": "0", "max": "100", "value": "25" }
74
- }
75
- ],
76
- "code": "<input type=\"range\" class=\"ui-slider\" value=\"50\">\n<input type=\"range\" class=\"ui-slider ui-slider--success\" value=\"80\">\n<input type=\"range\" class=\"ui-slider ui-slider--warning\" value=\"60\">\n<input type=\"range\" class=\"ui-slider ui-slider--danger\" value=\"25\">"
77
- }
78
- ]
79
- },
80
- {
81
- "title": "Disabled",
82
- "examples": [
83
- {
84
- "layout": "column",
85
- "items": [
86
- {
87
- "tag": "input",
88
- "class": "ui-slider",
89
- "attrs": { "type": "range", "min": "0", "max": "100", "value": "40", "disabled": "" }
90
- },
91
- {
92
- "tag": "input",
93
- "class": "ui-slider ui-slider--success",
94
- "attrs": { "type": "range", "min": "0", "max": "100", "value": "70", "disabled": "" }
95
- }
96
- ],
97
- "code": "<input type=\"range\" class=\"ui-slider\" value=\"40\" disabled>\n<input type=\"range\" class=\"ui-slider ui-slider--success\" value=\"70\" disabled>"
98
- }
99
- ]
100
- }
101
- ],
102
- "customization": [
103
- {
104
- "token": "--ui-slider-height",
105
- "default": "var(--ui-row-2)",
106
- "description": "Component height (clickable area)"
107
- },
108
- {
109
- "token": "--ui-slider-track-height",
110
- "default": "var(--ui-unit)",
111
- "description": "Track bar height"
112
- },
113
- {
114
- "token": "--ui-slider-track-bg",
115
- "default": "var(--ui-color-bg-subtle)",
116
- "description": "Track background"
117
- },
118
- {
119
- "token": "--ui-slider-track-fill",
120
- "default": "var(--ui-color-primary)",
121
- "description": "Filled portion color (Firefox)"
122
- },
123
- {
124
- "token": "--ui-slider-thumb-size",
125
- "default": "calc(var(--ui-unit) * 2.5)",
126
- "description": "Thumb diameter"
127
- },
128
- {
129
- "token": "--ui-slider-thumb-bg",
130
- "default": "var(--ui-color-bg)",
131
- "description": "Thumb background"
132
- },
133
- {
134
- "token": "--ui-slider-thumb-border-color",
135
- "default": "var(--ui-color-primary)",
136
- "description": "Thumb border color"
137
- },
138
- {
139
- "token": "--ui-slider-focus-ring",
140
- "default": "var(--ui-color-focus)",
141
- "description": "Focus ring color"
142
- }
143
- ]
144
- }