@adia-ai/web-components 0.6.33 → 0.6.35

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 (391) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/color/index.js +1 -1
  3. package/components/accordion/accordion-item.yaml +2 -2
  4. package/components/accordion/accordion.css +2 -2
  5. package/components/accordion/accordion.js +1 -1
  6. package/components/action-list/action-item.yaml +2 -2
  7. package/components/action-list/action-list.css +2 -2
  8. package/components/action-list/action-list.js +1 -1
  9. package/components/agent-artifact/{class.js → agent-artifact.class.js} +1 -1
  10. package/components/agent-artifact/agent-artifact.css +31 -31
  11. package/components/agent-artifact/agent-artifact.js +1 -1
  12. package/components/agent-feedback-bar/agent-feedback-bar.css +10 -10
  13. package/components/agent-feedback-bar/agent-feedback-bar.js +1 -1
  14. package/components/agent-questions/agent-questions.css +57 -57
  15. package/components/agent-questions/agent-questions.js +1 -1
  16. package/components/agent-reasoning/agent-reasoning.css +62 -62
  17. package/components/agent-reasoning/agent-reasoning.js +1 -1
  18. package/components/agent-suggestions/agent-suggestions.css +4 -4
  19. package/components/agent-suggestions/agent-suggestions.js +1 -1
  20. package/components/agent-trace/agent-trace.css +53 -53
  21. package/components/alert/alert.a2ui.json +64 -1
  22. package/components/alert/{class.js → alert.class.js} +189 -2
  23. package/components/alert/alert.css +119 -41
  24. package/components/alert/alert.d.ts +14 -0
  25. package/components/alert/alert.js +1 -1
  26. package/components/alert/alert.test.js +184 -0
  27. package/components/alert/alert.yaml +114 -1
  28. package/components/avatar/avatar-group.yaml +2 -2
  29. package/components/avatar/avatar.css +27 -27
  30. package/components/avatar/avatar.js +1 -1
  31. package/components/badge/badge.css +27 -27
  32. package/components/badge/badge.js +1 -1
  33. package/components/block/block.css +16 -16
  34. package/components/block/block.js +1 -1
  35. package/components/breadcrumb/breadcrumb.css +23 -23
  36. package/components/breadcrumb/breadcrumb.js +1 -1
  37. package/components/button/button.css +101 -91
  38. package/components/button/button.js +1 -1
  39. package/components/calendar-grid/calendar-grid.a2ui.json +146 -0
  40. package/components/calendar-grid/calendar-grid.class.js +326 -0
  41. package/components/calendar-grid/calendar-grid.css +246 -0
  42. package/components/calendar-grid/calendar-grid.d.ts +41 -0
  43. package/components/calendar-grid/calendar-grid.js +17 -0
  44. package/components/calendar-grid/calendar-grid.yaml +136 -0
  45. package/components/calendar-picker/calendar-picker.css +139 -139
  46. package/components/calendar-picker/calendar-picker.js +1 -1
  47. package/components/canvas/canvas.css +12 -12
  48. package/components/card/card.css +83 -83
  49. package/components/card/card.js +1 -1
  50. package/components/chart/chart.css +224 -224
  51. package/components/chart/chart.js +1 -1
  52. package/components/chart-legend/chart-legend.css +26 -26
  53. package/components/chart-legend/chart-legend.js +1 -1
  54. package/components/chat-thread/chat-input.a2ui.json +1 -1
  55. package/components/chat-thread/chat-input.js +6 -1
  56. package/components/chat-thread/chat-input.yaml +4 -1
  57. package/components/chat-thread/chat-thread.js +1 -1
  58. package/components/check/check.css +40 -40
  59. package/components/check/check.js +1 -1
  60. package/components/code/code.css +125 -125
  61. package/components/code/code.js +1 -1
  62. package/components/col/col.css +15 -15
  63. package/components/col/col.js +1 -1
  64. package/components/color-input/color-input.js +1 -1
  65. package/components/color-picker/color-picker.css +55 -55
  66. package/components/color-picker/color-picker.js +1 -1
  67. package/components/combobox/combobox.a2ui.json +363 -0
  68. package/components/combobox/combobox.class.js +861 -0
  69. package/components/combobox/combobox.css +244 -0
  70. package/components/combobox/combobox.d.ts +113 -0
  71. package/components/combobox/combobox.examples.md +59 -0
  72. package/components/combobox/combobox.js +17 -0
  73. package/components/combobox/combobox.test.js +181 -0
  74. package/components/combobox/combobox.yaml +369 -0
  75. package/components/command/command.css +90 -90
  76. package/components/command/command.js +1 -1
  77. package/components/date-range-picker/date-range-picker.a2ui.json +300 -0
  78. package/components/date-range-picker/date-range-picker.class.js +791 -0
  79. package/components/date-range-picker/date-range-picker.css +224 -0
  80. package/components/date-range-picker/date-range-picker.d.ts +82 -0
  81. package/components/date-range-picker/date-range-picker.examples.md +37 -0
  82. package/components/date-range-picker/date-range-picker.js +17 -0
  83. package/components/date-range-picker/date-range-picker.test.js +387 -0
  84. package/components/date-range-picker/date-range-picker.yaml +285 -0
  85. package/components/datetime-picker/datetime-picker.a2ui.json +334 -0
  86. package/components/datetime-picker/datetime-picker.class.js +706 -0
  87. package/components/datetime-picker/datetime-picker.css +150 -0
  88. package/components/datetime-picker/datetime-picker.d.ts +86 -0
  89. package/components/datetime-picker/datetime-picker.examples.md +46 -0
  90. package/components/datetime-picker/datetime-picker.js +17 -0
  91. package/components/datetime-picker/datetime-picker.test.js +454 -0
  92. package/components/datetime-picker/datetime-picker.yaml +332 -0
  93. package/components/demo-toggle/demo-toggle.css +27 -27
  94. package/components/demo-toggle/demo-toggle.js +1 -1
  95. package/components/description-list/description-list.css +18 -18
  96. package/components/description-list/description-list.js +1 -1
  97. package/components/divider/divider.css +24 -24
  98. package/components/divider/divider.js +1 -1
  99. package/components/drawer/drawer.js +1 -1
  100. package/components/embed/embed.css +6 -6
  101. package/components/embed/embed.js +1 -1
  102. package/components/empty-state/empty-state.css +27 -27
  103. package/components/empty-state/empty-state.js +1 -1
  104. package/components/feed/feed.css +12 -12
  105. package/components/feed/feed.js +1 -1
  106. package/components/field/field.css +28 -28
  107. package/components/field/field.js +1 -1
  108. package/components/field/field.test.js +1 -1
  109. package/components/fields/fields.css +5 -5
  110. package/components/fields/fields.js +1 -1
  111. package/components/grid/grid.css +5 -5
  112. package/components/grid/grid.js +1 -1
  113. package/components/heatmap/heatmap.css +63 -63
  114. package/components/heatmap/heatmap.js +1 -1
  115. package/components/icon/icon.css +12 -12
  116. package/components/icon/icon.js +1 -1
  117. package/components/image/image.css +14 -14
  118. package/components/image/image.js +1 -1
  119. package/components/index.js +11 -0
  120. package/components/inline-message/inline-message.a2ui.json +143 -0
  121. package/components/inline-message/inline-message.class.js +169 -0
  122. package/components/inline-message/inline-message.css +75 -0
  123. package/components/inline-message/inline-message.d.ts +31 -0
  124. package/components/inline-message/inline-message.examples.md +19 -0
  125. package/components/inline-message/inline-message.js +17 -0
  126. package/components/inline-message/inline-message.test.js +203 -0
  127. package/components/inline-message/inline-message.yaml +205 -0
  128. package/components/input/input.css +67 -67
  129. package/components/input/input.js +1 -1
  130. package/components/input/input.yaml +5 -4
  131. package/components/inspector/inspector.css +6 -6
  132. package/components/inspector/inspector.js +1 -1
  133. package/components/integration-card/integration-card.a2ui.json +268 -0
  134. package/components/integration-card/integration-card.class.js +410 -0
  135. package/components/integration-card/integration-card.css +169 -0
  136. package/components/integration-card/integration-card.d.ts +63 -0
  137. package/components/integration-card/integration-card.examples.md +41 -0
  138. package/components/integration-card/integration-card.js +17 -0
  139. package/components/integration-card/integration-card.test.js +306 -0
  140. package/components/integration-card/integration-card.yaml +280 -0
  141. package/components/kbd/kbd.css +32 -32
  142. package/components/kbd/kbd.js +1 -1
  143. package/components/link/link.css +12 -12
  144. package/components/link/link.js +1 -1
  145. package/components/list/list-item.yaml +2 -2
  146. package/components/list/list.css +8 -8
  147. package/components/list/list.js +1 -1
  148. package/components/list-window/list-window.a2ui.json +277 -0
  149. package/components/list-window/list-window.class.js +688 -0
  150. package/components/list-window/list-window.css +124 -0
  151. package/components/list-window/list-window.d.ts +84 -0
  152. package/components/list-window/list-window.examples.md +73 -0
  153. package/components/list-window/list-window.js +17 -0
  154. package/components/list-window/list-window.test.js +303 -0
  155. package/components/list-window/list-window.yaml +270 -0
  156. package/components/loading-overlay/loading-overlay.a2ui.json +176 -0
  157. package/components/loading-overlay/loading-overlay.class.js +203 -0
  158. package/components/loading-overlay/loading-overlay.css +81 -0
  159. package/components/loading-overlay/loading-overlay.d.ts +24 -0
  160. package/components/loading-overlay/loading-overlay.examples.md +50 -0
  161. package/components/loading-overlay/loading-overlay.js +17 -0
  162. package/components/loading-overlay/loading-overlay.test.js +257 -0
  163. package/components/loading-overlay/loading-overlay.yaml +260 -0
  164. package/components/menu/menu-divider.yaml +1 -1
  165. package/components/menu/menu-item.yaml +1 -1
  166. package/components/menu/menu.a2ui.json +3 -0
  167. package/components/menu/menu.css +8 -8
  168. package/components/menu/menu.js +1 -1
  169. package/components/menu/menu.yaml +7 -0
  170. package/components/modal/{class.js → modal.class.js} +12 -1
  171. package/components/modal/modal.css +54 -44
  172. package/components/modal/modal.js +1 -1
  173. package/components/nav/nav.css +40 -40
  174. package/components/nav/nav.js +1 -1
  175. package/components/nav-group/nav-group.css +52 -52
  176. package/components/nav-group/nav-group.js +1 -1
  177. package/components/nav-item/nav-item.css +44 -44
  178. package/components/nav-item/nav-item.js +1 -1
  179. package/components/noodles/noodles.css +31 -31
  180. package/components/noodles/noodles.js +1 -1
  181. package/components/option-card/option-card.css +69 -69
  182. package/components/option-card/option-card.js +1 -1
  183. package/components/otp-input/otp-input.css +30 -30
  184. package/components/otp-input/otp-input.js +1 -1
  185. package/components/page/page.css +18 -18
  186. package/components/page/page.js +1 -1
  187. package/components/pagination/pagination.css +61 -61
  188. package/components/pagination/pagination.js +1 -1
  189. package/components/pane/pane.css +57 -57
  190. package/components/pane/pane.js +1 -1
  191. package/components/pipeline-status/pipeline-status.css +65 -65
  192. package/components/pipeline-status/pipeline-status.js +1 -1
  193. package/components/popover/popover.a2ui.json +8 -1
  194. package/components/popover/popover.css +17 -17
  195. package/components/popover/popover.js +1 -1
  196. package/components/popover/popover.yaml +14 -1
  197. package/components/progress/progress.css +23 -23
  198. package/components/progress/progress.js +1 -1
  199. package/components/progress-row/progress-row.css +17 -17
  200. package/components/progress-row/progress-row.js +1 -1
  201. package/components/radio/radio.css +39 -39
  202. package/components/radio/radio.js +1 -1
  203. package/components/range/range.css +55 -55
  204. package/components/range/range.js +1 -1
  205. package/components/rating/rating.css +28 -28
  206. package/components/rating/rating.js +1 -1
  207. package/components/richtext/richtext.css +133 -133
  208. package/components/richtext/richtext.js +1 -1
  209. package/components/row/row.css +19 -19
  210. package/components/row/row.js +1 -1
  211. package/components/search/search.css +5 -5
  212. package/components/search/search.js +1 -1
  213. package/components/segment/segment.css +24 -24
  214. package/components/segment/segment.js +1 -1
  215. package/components/segmented/segmented.css +25 -25
  216. package/components/segmented/segmented.js +1 -1
  217. package/components/select/select.a2ui.json +58 -4
  218. package/components/select/{class.js → select.class.js} +415 -6
  219. package/components/select/select.css +242 -84
  220. package/components/select/select.d.ts +31 -1
  221. package/components/select/select.js +1 -1
  222. package/components/select/select.test.js +202 -0
  223. package/components/select/select.yaml +126 -5
  224. package/components/skeleton/skeleton.css +14 -14
  225. package/components/skeleton/skeleton.js +1 -1
  226. package/components/slider/slider.css +46 -46
  227. package/components/slider/slider.js +1 -1
  228. package/components/spinner/spinner.a2ui.json +198 -0
  229. package/components/spinner/spinner.class.js +99 -0
  230. package/components/spinner/spinner.css +221 -0
  231. package/components/spinner/spinner.d.ts +26 -0
  232. package/components/spinner/spinner.examples.md +26 -0
  233. package/components/spinner/spinner.js +17 -0
  234. package/components/spinner/spinner.test.js +272 -0
  235. package/components/spinner/spinner.yaml +238 -0
  236. package/components/stack/stack.css +11 -11
  237. package/components/stack/stack.js +1 -1
  238. package/components/stat/stat.css +25 -25
  239. package/components/step-progress/step-progress.css +20 -20
  240. package/components/step-progress/step-progress.js +1 -1
  241. package/components/stepper/stepper-item.yaml +1 -1
  242. package/components/stepper/stepper.css +29 -29
  243. package/components/stepper/stepper.js +1 -1
  244. package/components/stream/stream.css +12 -12
  245. package/components/stream/stream.js +1 -1
  246. package/components/swatch/swatch.css +68 -68
  247. package/components/swatch/swatch.js +1 -1
  248. package/components/swiper/swiper.css +57 -57
  249. package/components/swiper/swiper.js +1 -1
  250. package/components/switch/switch.css +52 -52
  251. package/components/switch/switch.js +1 -1
  252. package/components/table/table.css +163 -163
  253. package/components/table/table.js +1 -1
  254. package/components/table-toolbar/{class.js → table-toolbar.class.js} +1 -1
  255. package/components/table-toolbar/table-toolbar.css +32 -32
  256. package/components/table-toolbar/table-toolbar.js +1 -1
  257. package/components/tabs/tab.yaml +2 -2
  258. package/components/tabs/tabs.css +51 -51
  259. package/components/tabs/tabs.js +1 -1
  260. package/components/tag/tag.css +48 -48
  261. package/components/tag/tag.js +1 -1
  262. package/components/tags-input/tags-input.a2ui.json +337 -0
  263. package/components/tags-input/tags-input.class.js +776 -0
  264. package/components/tags-input/tags-input.css +201 -0
  265. package/components/tags-input/tags-input.d.ts +120 -0
  266. package/components/tags-input/tags-input.examples.md +92 -0
  267. package/components/tags-input/tags-input.js +17 -0
  268. package/components/tags-input/tags-input.test.js +368 -0
  269. package/components/tags-input/tags-input.yaml +367 -0
  270. package/components/text/text.css +44 -44
  271. package/components/text/text.js +1 -1
  272. package/components/textarea/textarea.a2ui.json +1 -1
  273. package/components/textarea/textarea.css +46 -46
  274. package/components/textarea/textarea.js +1 -1
  275. package/components/textarea/textarea.yaml +11 -8
  276. package/components/time-picker/time-picker.a2ui.json +267 -0
  277. package/components/time-picker/time-picker.class.js +693 -0
  278. package/components/time-picker/time-picker.css +122 -0
  279. package/components/time-picker/time-picker.d.ts +75 -0
  280. package/components/time-picker/time-picker.examples.md +35 -0
  281. package/components/time-picker/time-picker.js +17 -0
  282. package/components/time-picker/time-picker.test.js +287 -0
  283. package/components/time-picker/time-picker.yaml +256 -0
  284. package/components/timeline/timeline-item.yaml +2 -2
  285. package/components/timeline/{class.js → timeline.class.js} +1 -1
  286. package/components/timeline/timeline.css +50 -50
  287. package/components/timeline/timeline.js +1 -1
  288. package/components/toast/toast.css +58 -58
  289. package/components/toast/toast.js +1 -1
  290. package/components/toggle-group/toggle-group.css +6 -6
  291. package/components/toggle-group/toggle-group.js +1 -1
  292. package/components/toggle-group/toggle-option.yaml +1 -1
  293. package/components/toggle-scheme/toggle-scheme.css +2 -2
  294. package/components/toggle-scheme/toggle-scheme.js +1 -1
  295. package/components/toolbar/toolbar-group.yaml +1 -1
  296. package/components/toolbar/toolbar.css +17 -17
  297. package/components/toolbar/toolbar.js +1 -1
  298. package/components/tooltip/tooltip.css +2 -2
  299. package/components/tooltip/tooltip.js +1 -1
  300. package/components/tree/tree-item.yaml +1 -1
  301. package/components/tree/tree.css +37 -37
  302. package/components/tree/tree.js +1 -1
  303. package/components/upload/upload.css +49 -49
  304. package/components/upload/upload.js +1 -1
  305. package/dist/web-components.min.css +1 -1
  306. package/dist/web-components.min.js +146 -87
  307. package/package.json +3 -3
  308. package/styles/components.css +11 -0
  309. /package/components/accordion/{class.js → accordion.class.js} +0 -0
  310. /package/components/action-list/{class.js → action-list.class.js} +0 -0
  311. /package/components/agent-feedback-bar/{class.js → agent-feedback-bar.class.js} +0 -0
  312. /package/components/agent-questions/{class.js → agent-questions.class.js} +0 -0
  313. /package/components/agent-reasoning/{class.js → agent-reasoning.class.js} +0 -0
  314. /package/components/agent-suggestions/{class.js → agent-suggestions.class.js} +0 -0
  315. /package/components/avatar/{class.js → avatar.class.js} +0 -0
  316. /package/components/badge/{class.js → badge.class.js} +0 -0
  317. /package/components/block/{class.js → block.class.js} +0 -0
  318. /package/components/breadcrumb/{class.js → breadcrumb.class.js} +0 -0
  319. /package/components/button/{class.js → button.class.js} +0 -0
  320. /package/components/calendar-picker/{class.js → calendar-picker.class.js} +0 -0
  321. /package/components/card/{class.js → card.class.js} +0 -0
  322. /package/components/chart/{class.js → chart.class.js} +0 -0
  323. /package/components/chart-legend/{class.js → chart-legend.class.js} +0 -0
  324. /package/components/chat-thread/{class.js → chat-thread.class.js} +0 -0
  325. /package/components/check/{class.js → check.class.js} +0 -0
  326. /package/components/code/{class.js → code.class.js} +0 -0
  327. /package/components/col/{class.js → col.class.js} +0 -0
  328. /package/components/color-input/{class.js → color-input.class.js} +0 -0
  329. /package/components/color-picker/{class.js → color-picker.class.js} +0 -0
  330. /package/components/command/{class.js → command.class.js} +0 -0
  331. /package/components/demo-toggle/{class.js → demo-toggle.class.js} +0 -0
  332. /package/components/description-list/{class.js → description-list.class.js} +0 -0
  333. /package/components/divider/{class.js → divider.class.js} +0 -0
  334. /package/components/drawer/{class.js → drawer.class.js} +0 -0
  335. /package/components/embed/{class.js → embed.class.js} +0 -0
  336. /package/components/empty-state/{class.js → empty-state.class.js} +0 -0
  337. /package/components/feed/{class.js → feed.class.js} +0 -0
  338. /package/components/field/{class.js → field.class.js} +0 -0
  339. /package/components/fields/{class.js → fields.class.js} +0 -0
  340. /package/components/grid/{class.js → grid.class.js} +0 -0
  341. /package/components/heatmap/{class.js → heatmap.class.js} +0 -0
  342. /package/components/icon/{class.js → icon.class.js} +0 -0
  343. /package/components/image/{class.js → image.class.js} +0 -0
  344. /package/components/input/{class.js → input.class.js} +0 -0
  345. /package/components/inspector/{class.js → inspector.class.js} +0 -0
  346. /package/components/kbd/{class.js → kbd.class.js} +0 -0
  347. /package/components/link/{class.js → link.class.js} +0 -0
  348. /package/components/list/{class.js → list.class.js} +0 -0
  349. /package/components/menu/{class.js → menu.class.js} +0 -0
  350. /package/components/nav/{class.js → nav.class.js} +0 -0
  351. /package/components/nav-group/{class.js → nav-group.class.js} +0 -0
  352. /package/components/nav-item/{class.js → nav-item.class.js} +0 -0
  353. /package/components/noodles/{class.js → noodles.class.js} +0 -0
  354. /package/components/option-card/{class.js → option-card.class.js} +0 -0
  355. /package/components/otp-input/{class.js → otp-input.class.js} +0 -0
  356. /package/components/page/{class.js → page.class.js} +0 -0
  357. /package/components/pagination/{class.js → pagination.class.js} +0 -0
  358. /package/components/pane/{class.js → pane.class.js} +0 -0
  359. /package/components/pipeline-status/{class.js → pipeline-status.class.js} +0 -0
  360. /package/components/popover/{class.js → popover.class.js} +0 -0
  361. /package/components/progress/{class.js → progress.class.js} +0 -0
  362. /package/components/progress-row/{class.js → progress-row.class.js} +0 -0
  363. /package/components/radio/{class.js → radio.class.js} +0 -0
  364. /package/components/range/{class.js → range.class.js} +0 -0
  365. /package/components/rating/{class.js → rating.class.js} +0 -0
  366. /package/components/richtext/{class.js → richtext.class.js} +0 -0
  367. /package/components/row/{class.js → row.class.js} +0 -0
  368. /package/components/search/{class.js → search.class.js} +0 -0
  369. /package/components/segment/{class.js → segment.class.js} +0 -0
  370. /package/components/segmented/{class.js → segmented.class.js} +0 -0
  371. /package/components/skeleton/{class.js → skeleton.class.js} +0 -0
  372. /package/components/slider/{class.js → slider.class.js} +0 -0
  373. /package/components/stack/{class.js → stack.class.js} +0 -0
  374. /package/components/step-progress/{class.js → step-progress.class.js} +0 -0
  375. /package/components/stepper/{class.js → stepper.class.js} +0 -0
  376. /package/components/stream/{class.js → stream.class.js} +0 -0
  377. /package/components/swatch/{class.js → swatch.class.js} +0 -0
  378. /package/components/swiper/{class.js → swiper.class.js} +0 -0
  379. /package/components/switch/{class.js → switch.class.js} +0 -0
  380. /package/components/table/{class.js → table.class.js} +0 -0
  381. /package/components/tabs/{class.js → tabs.class.js} +0 -0
  382. /package/components/tag/{class.js → tag.class.js} +0 -0
  383. /package/components/text/{class.js → text.class.js} +0 -0
  384. /package/components/textarea/{class.js → textarea.class.js} +0 -0
  385. /package/components/toast/{class.js → toast.class.js} +0 -0
  386. /package/components/toggle-group/{class.js → toggle-group.class.js} +0 -0
  387. /package/components/toggle-scheme/{class.js → toggle-scheme.class.js} +0 -0
  388. /package/components/toolbar/{class.js → toolbar.class.js} +0 -0
  389. /package/components/tooltip/{class.js → tooltip.class.js} +0 -0
  390. /package/components/tree/{class.js → tree.class.js} +0 -0
  391. /package/components/upload/{class.js → upload.class.js} +0 -0
@@ -21,45 +21,45 @@
21
21
  @scope (swiper-ui) {
22
22
  :where(:scope) {
23
23
  /* ── Layout ── */
24
- --swiper-gap: var(--a-gap);
25
- --swiper-peek: var(--a-space-8);
26
- --swiper-snap: start;
27
- --swiper-columns: 1;
24
+ --swiper-gap-default: var(--a-gap);
25
+ --swiper-peek-default: var(--a-space-8);
26
+ --swiper-snap-default: start;
27
+ --swiper-columns-default: 1;
28
28
 
29
29
  /* ── Pagination dots ── */
30
30
  /* Component-intrinsic visual constant; no --a-space-* equivalent */
31
- --swiper-dot-size: 6px;
31
+ --swiper-dot-size-default: 6px;
32
32
  /* Active dot is one space token (4px @ density=1) larger than the
33
33
  inactive dot — small, deliberate emphasis without rearranging
34
34
  the row. The hitbox stays at 1rem; only the visible circle grows. */
35
- --swiper-dot-size-active: calc(var(--swiper-dot-size) + var(--a-space-1));
36
- --swiper-dot-gap: var(--a-space-2);
37
- --swiper-dot-bg: var(--a-border);
38
- --swiper-dot-bg-active: var(--a-fg);
39
- --swiper-dot-radius: var(--a-radius-full);
35
+ --swiper-dot-size-active-default: calc(var(--swiper-dot-size, var(--swiper-dot-size-default)) + var(--a-space-1));
36
+ --swiper-dot-gap-default: var(--a-space-2);
37
+ --swiper-dot-bg-default: var(--a-border);
38
+ --swiper-dot-bg-active-default: var(--a-fg);
39
+ --swiper-dot-radius-default: var(--a-radius-full);
40
40
 
41
41
  /* ── Host vertical rhythm ── */
42
- --swiper-gap-vertical: var(--a-space-3);
42
+ --swiper-gap-vertical-default: var(--a-space-3);
43
43
 
44
44
  /* ── Paddle bottom offset ── */
45
- --swiper-btn-bottom: var(--a-space-3);
45
+ --swiper-btn-bottom-default: var(--a-space-3);
46
46
 
47
47
  /* ── Autoplay pause button offset ── */
48
- --swiper-pause-top: var(--a-space-2);
49
- --swiper-pause-right: var(--a-space-2);
48
+ --swiper-pause-top-default: var(--a-space-2);
49
+ --swiper-pause-right-default: var(--a-space-2);
50
50
 
51
51
  /* ── Paddles ── */
52
- --swiper-btn-size: 3rem;
53
- --swiper-btn-bg: transparent;
54
- --swiper-btn-bg-hover: var(--a-bg-muted);
55
- --swiper-btn-fg: var(--a-fg);
56
- --swiper-btn-radius: var(--a-radius-full);
57
- --swiper-btn-shadow: none;
58
- --swiper-btn-offset: var(--a-space-2);
52
+ --swiper-btn-size-default: 3rem;
53
+ --swiper-btn-bg-default: transparent;
54
+ --swiper-btn-bg-hover-default: var(--a-bg-muted);
55
+ --swiper-btn-fg-default: var(--a-fg);
56
+ --swiper-btn-radius-default: var(--a-radius-full);
57
+ --swiper-btn-shadow-default: none;
58
+ --swiper-btn-offset-default: var(--a-space-2);
59
59
 
60
60
  /* ── Motion ── */
61
- --swiper-duration: var(--a-duration);
62
- --swiper-easing: var(--a-easing);
61
+ --swiper-duration-default: var(--a-duration);
62
+ --swiper-easing-default: var(--a-easing);
63
63
  }
64
64
 
65
65
  /* ── Host: flex column so dots sit below the scroll track ── */
@@ -68,7 +68,7 @@
68
68
  box-sizing: border-box;
69
69
  display: flex;
70
70
  flex-direction: column;
71
- gap: var(--swiper-gap-vertical);
71
+ gap: var(--swiper-gap-vertical, var(--swiper-gap-vertical-default));
72
72
  width: 100%;
73
73
  position: relative;
74
74
  /* Host is the container so @container queries below read the
@@ -84,7 +84,7 @@
84
84
  display: grid;
85
85
  grid-auto-flow: column;
86
86
  grid-auto-columns: calc(
87
- (100% - (var(--swiper-columns) - 1) * var(--swiper-gap)) / var(--swiper-columns)
87
+ (100% - (var(--swiper-columns, var(--swiper-columns-default)) - 1) * var(--swiper-gap, var(--swiper-gap-default))) / var(--swiper-columns, var(--swiper-columns-default))
88
88
  );
89
89
  overflow-x: auto;
90
90
  overflow-y: hidden;
@@ -92,7 +92,7 @@
92
92
  scroll-behavior: smooth;
93
93
  scrollbar-width: none;
94
94
  -webkit-overflow-scrolling: touch;
95
- gap: var(--swiper-gap);
95
+ gap: var(--swiper-gap, var(--swiper-gap-default));
96
96
  }
97
97
 
98
98
  :scope > [data-swiper-track]::-webkit-scrollbar { display: none; }
@@ -110,29 +110,29 @@
110
110
  /* ── Slides ── */
111
111
 
112
112
  :scope > [data-swiper-track] > * {
113
- scroll-snap-align: var(--swiper-snap);
113
+ scroll-snap-align: var(--swiper-snap, var(--swiper-snap-default));
114
114
  scroll-snap-stop: always;
115
115
  min-width: 0;
116
116
  }
117
117
 
118
118
  /* ── Snap alignment ── */
119
119
 
120
- :scope[snap="center"] { --swiper-snap: center; }
121
- :scope[snap="end"] { --swiper-snap: end; }
120
+ :scope[snap="center"] { --swiper-snap-default: center; }
121
+ :scope[snap="end"] { --swiper-snap-default: end; }
122
122
 
123
123
  /* ── Peek: show partial adjacent slides ── */
124
124
 
125
125
  :scope[peek] > [data-swiper-track] {
126
- padding-inline: var(--swiper-peek);
127
- scroll-padding-inline: var(--swiper-peek);
126
+ padding-inline: var(--swiper-peek, var(--swiper-peek-default));
127
+ scroll-padding-inline: var(--swiper-peek, var(--swiper-peek-default));
128
128
  }
129
129
 
130
130
  /* ── Explicit slides-per-view ── */
131
131
 
132
- :scope[slides-per-view="1"] { --swiper-columns: 1; }
133
- :scope[slides-per-view="2"] { --swiper-columns: 2; }
134
- :scope[slides-per-view="3"] { --swiper-columns: 3; }
135
- :scope[slides-per-view="4"] { --swiper-columns: 4; }
132
+ :scope[slides-per-view="1"] { --swiper-columns-default: 1; }
133
+ :scope[slides-per-view="2"] { --swiper-columns-default: 2; }
134
+ :scope[slides-per-view="3"] { --swiper-columns-default: 3; }
135
+ :scope[slides-per-view="4"] { --swiper-columns-default: 4; }
136
136
 
137
137
  /* ── Responsive auto (container queries) ──
138
138
  The host IS the named `swiper` container, so @container queries
@@ -141,15 +141,15 @@
141
141
  the swiper's own width. */
142
142
 
143
143
  :scope:not([slides-per-view]) {
144
- --swiper-columns: 1;
144
+ --swiper-columns-default: 1;
145
145
  }
146
146
 
147
147
  @container swiper (min-width: 640px) {
148
- :scope:not([slides-per-view]) > [data-swiper-track] { --swiper-columns: 2; }
148
+ :scope:not([slides-per-view]) > [data-swiper-track] { --swiper-columns-default: 2; }
149
149
  }
150
150
 
151
151
  @container swiper (min-width: 960px) {
152
- :scope:not([slides-per-view]) > [data-swiper-track] { --swiper-columns: 3; }
152
+ :scope:not([slides-per-view]) > [data-swiper-track] { --swiper-columns-default: 3; }
153
153
  }
154
154
 
155
155
  /* ══════════════════════════════════════════════════════════
@@ -162,16 +162,16 @@
162
162
  :scope > [data-swiper-btn] {
163
163
  position: absolute;
164
164
  top: 0;
165
- bottom: var(--swiper-btn-bottom);
165
+ bottom: var(--swiper-btn-bottom, var(--swiper-btn-bottom-default));
166
166
  margin-block: auto;
167
167
  height: fit-content;
168
168
  z-index: 2;
169
- --button-size: var(--swiper-btn-size);
170
- --button-radius: var(--swiper-btn-radius);
169
+ --button-size: var(--swiper-btn-size, var(--swiper-btn-size-default));
170
+ --button-radius: var(--swiper-btn-radius, var(--swiper-btn-radius-default));
171
171
  }
172
172
 
173
- :scope > [data-swiper-prev] { left: var(--swiper-btn-offset); }
174
- :scope > [data-swiper-next] { right: var(--swiper-btn-offset); }
173
+ :scope > [data-swiper-prev] { left: var(--swiper-btn-offset, var(--swiper-btn-offset-default)); }
174
+ :scope > [data-swiper-next] { right: var(--swiper-btn-offset, var(--swiper-btn-offset-default)); }
175
175
 
176
176
  /* ══════════════════════════════════════════════════════════
177
177
  JS-stamped pagination dots
@@ -182,7 +182,7 @@
182
182
  display: flex;
183
183
  align-items: center;
184
184
  justify-content: center;
185
- gap: var(--swiper-dot-gap);
185
+ gap: var(--swiper-dot-gap, var(--swiper-dot-gap-default));
186
186
  min-height: 1.5rem;
187
187
  }
188
188
 
@@ -192,16 +192,16 @@
192
192
  for the active one (one space token larger). Padding is computed
193
193
  from the size so the dot stays centered in the hitbox. */
194
194
  :scope [data-swiper-dots] > button {
195
- width: var(--swiper-dot-size);
196
- height: var(--swiper-dot-size);
197
- border-radius: var(--swiper-dot-radius);
198
- background: var(--swiper-dot-bg);
195
+ width: var(--swiper-dot-size, var(--swiper-dot-size-default));
196
+ height: var(--swiper-dot-size, var(--swiper-dot-size-default));
197
+ border-radius: var(--swiper-dot-radius, var(--swiper-dot-radius-default));
198
+ background: var(--swiper-dot-bg, var(--swiper-dot-bg-default));
199
199
  border: none;
200
- padding: calc((1rem - var(--swiper-dot-size)) / 2);
200
+ padding: calc((1rem - var(--swiper-dot-size, var(--swiper-dot-size-default))) / 2);
201
201
  background-clip: content-box;
202
202
  box-sizing: content-box;
203
203
  cursor: pointer;
204
- transition: background var(--swiper-duration) var(--swiper-easing);
204
+ transition: background var(--swiper-duration, var(--swiper-duration-default)) var(--swiper-easing, var(--swiper-easing-default));
205
205
  }
206
206
 
207
207
  /* Long-hand `background-color` (not the `background` shorthand!) so
@@ -209,7 +209,7 @@
209
209
  its initial `border-box` value — the colored area would otherwise
210
210
  fill the full 1rem hitbox and turn into a huge circle. */
211
211
  :scope [data-swiper-dots] > button:hover {
212
- background-color: var(--swiper-dot-bg-active);
212
+ background-color: var(--swiper-dot-bg-active, var(--swiper-dot-bg-active-default));
213
213
  }
214
214
 
215
215
  /* Focus ring is rendered INSIDE the padding area (inset shadow), so
@@ -220,10 +220,10 @@
220
220
  }
221
221
 
222
222
  :scope [data-swiper-dots] > button[aria-current="true"] {
223
- background-color: var(--swiper-dot-bg-active);
224
- width: var(--swiper-dot-size-active);
225
- height: var(--swiper-dot-size-active);
226
- padding: calc((1rem - var(--swiper-dot-size-active)) / 2);
223
+ background-color: var(--swiper-dot-bg-active, var(--swiper-dot-bg-active-default));
224
+ width: var(--swiper-dot-size-active, var(--swiper-dot-size-active-default));
225
+ height: var(--swiper-dot-size-active, var(--swiper-dot-size-active-default));
226
+ padding: calc((1rem - var(--swiper-dot-size-active, var(--swiper-dot-size-active-default))) / 2);
227
227
  }
228
228
 
229
229
  /* ══════════════════════════════════════════════════════════
@@ -271,8 +271,8 @@
271
271
 
272
272
  :scope[autoplay] > [data-swiper-pause] {
273
273
  position: absolute;
274
- top: var(--swiper-pause-top);
275
- right: var(--swiper-pause-right);
274
+ top: var(--swiper-pause-top, var(--swiper-pause-top-default));
275
+ right: var(--swiper-pause-right, var(--swiper-pause-right-default));
276
276
  z-index: 1;
277
277
  }
278
278
 
@@ -10,7 +10,7 @@
10
10
  */
11
11
 
12
12
  import { defineIfFree } from '../../core/register.js';
13
- import { UISwiper } from './class.js';
13
+ import { UISwiper } from './swiper.class.js';
14
14
 
15
15
  defineIfFree('swiper-ui', UISwiper);
16
16
 
@@ -2,64 +2,64 @@
2
2
  token-block (Flavor B — attribute-removal restyle) both fail inside
3
3
  `@scope`. Selectors moved out. See docs/BROWSER-COMPAT.md §3a. */
4
4
  switch-ui:not([disabled]):hover {
5
- --switch-track-bg: var(--switch-track-bg-hover);
6
- --switch-track-border: var(--switch-track-border-hover);
5
+ --switch-track-bg-default: var(--switch-track-bg-hover, var(--switch-track-bg-hover-default));
6
+ --switch-track-border-default: var(--switch-track-border-hover, var(--switch-track-border-hover-default));
7
7
  }
8
8
  switch-ui[checked]:not([disabled]):hover {
9
- --switch-track-bg: var(--switch-track-bg-checked-hover);
10
- --switch-track-border: var(--switch-track-border-checked-hover);
9
+ --switch-track-bg-default: var(--switch-track-bg-checked-hover, var(--switch-track-bg-checked-hover-default));
10
+ --switch-track-border-default: var(--switch-track-border-checked-hover, var(--switch-track-border-checked-hover-default));
11
11
  }
12
12
  switch-ui[checked] {
13
- --switch-track-bg: var(--switch-track-bg-checked);
14
- --switch-track-border: var(--switch-track-border-checked);
15
- --switch-thumb-bg: var(--switch-thumb-bg-checked);
13
+ --switch-track-bg-default: var(--switch-track-bg-checked, var(--switch-track-bg-checked-default));
14
+ --switch-track-border-default: var(--switch-track-border-checked, var(--switch-track-border-checked-default));
15
+ --switch-thumb-bg-default: var(--switch-thumb-bg-checked, var(--switch-thumb-bg-checked-default));
16
16
  }
17
17
  switch-ui[checked] [slot="thumb"] {
18
- transform: translateX(var(--switch-thumb-travel));
18
+ transform: translateX(var(--switch-thumb-travel, var(--switch-thumb-travel-default)));
19
19
  }
20
20
 
21
21
  @scope (switch-ui) {
22
22
  :where(:scope) {
23
23
  /* ── Layout ── */
24
- --switch-gap: var(--a-space-2);
25
- --switch-radius: var(--a-radius-full);
24
+ --switch-gap-default: var(--a-space-2);
25
+ --switch-radius-default: var(--a-radius-full);
26
26
 
27
27
  /* ── Typography ── */
28
- --switch-font-size: var(--a-ui-size);
28
+ --switch-font-size-default: var(--a-ui-size);
29
29
 
30
30
  /* ── Colors ── */
31
- --switch-track-bg-hover: var(--a-bg-muted);
32
- --switch-track-bg-checked-hover: var(--a-primary-hover);
33
- --switch-track-border-checked-hover: var(--a-primary-hover);
34
- --switch-thumb-shadow: var(--a-shadow-sm);
31
+ --switch-track-bg-hover-default: var(--a-bg-muted);
32
+ --switch-track-bg-checked-hover-default: var(--a-primary-hover);
33
+ --switch-track-border-checked-hover-default: var(--a-primary-hover);
34
+ --switch-thumb-shadow-default: var(--a-shadow-sm);
35
35
 
36
36
  /* ── Transition ── */
37
- --switch-duration: var(--a-duration-fast);
38
- --switch-easing: var(--a-easing);
37
+ --switch-duration-default: var(--a-duration-fast);
38
+ --switch-easing-default: var(--a-easing);
39
39
 
40
40
  /* ── Focus ── */
41
- --switch-focus-ring: var(--a-focus-ring);
41
+ --switch-focus-ring-default: var(--a-focus-ring);
42
42
 
43
43
  /* ── Track ── (sizes scale with universal [size] attribute via --a-toggle-size) */
44
- --switch-track-height: var(--a-toggle-size);
45
- --switch-track-width: calc(var(--a-toggle-size) * 1.8);
46
- --switch-track-bg: var(--a-ui-bg);
47
- --switch-track-border: var(--a-ui-border);
48
- --switch-track-border-hover: var(--a-fg-subtle);
44
+ --switch-track-height-default: var(--a-toggle-size);
45
+ --switch-track-width-default: calc(var(--a-toggle-size) * 1.8);
46
+ --switch-track-bg-default: var(--a-ui-bg);
47
+ --switch-track-border-default: var(--a-ui-border);
48
+ --switch-track-border-hover-default: var(--a-fg-subtle);
49
49
 
50
50
  /* ── Track: checked ── */
51
- --switch-track-bg-checked: var(--a-primary);
52
- --switch-track-border-checked: var(--a-primary);
51
+ --switch-track-bg-checked-default: var(--a-primary);
52
+ --switch-track-border-checked-default: var(--a-primary);
53
53
 
54
54
  /* ── Thumb ── (derived from track; inset accounts for border + visual gap) */
55
- --switch-thumb-inset: 2px;
56
- --switch-thumb-size: calc(var(--a-toggle-size) - 2 * var(--switch-thumb-inset) - 2px); /* -2px for 1px border each side */
57
- --switch-thumb-bg: var(--a-fg-muted);
58
- --switch-thumb-bg-checked: var(--a-chrome-light);
59
- --switch-thumb-travel: calc(var(--switch-track-width) - var(--switch-thumb-size) - 2 * var(--switch-thumb-inset) - 2px);
55
+ --switch-thumb-inset-default: 2px;
56
+ --switch-thumb-size-default: calc(var(--a-toggle-size) - 2 * var(--switch-thumb-inset, var(--switch-thumb-inset-default)) - 2px); /* -2px for 1px border each side */
57
+ --switch-thumb-bg-default: var(--a-fg-muted);
58
+ --switch-thumb-bg-checked-default: var(--a-chrome-light);
59
+ --switch-thumb-travel-default: calc(var(--switch-track-width, var(--switch-track-width-default)) - var(--switch-thumb-size, var(--switch-thumb-size-default)) - 2 * var(--switch-thumb-inset, var(--switch-thumb-inset-default)) - 2px);
60
60
 
61
61
  /* ── State: disabled ── */
62
- --switch-fg-disabled: var(--a-ui-text-disabled);
62
+ --switch-fg-disabled-default: var(--a-ui-text-disabled);
63
63
  text-align: start; /* §text-align-reset — blocks inheritance from centered ancestors */
64
64
  }
65
65
 
@@ -68,43 +68,43 @@ switch-ui[checked] [slot="thumb"] {
68
68
  box-sizing: border-box;
69
69
  display: inline-flex;
70
70
  align-items: center;
71
- gap: var(--switch-gap);
71
+ gap: var(--switch-gap, var(--switch-gap-default));
72
72
  cursor: pointer;
73
73
  user-select: none;
74
- font-size: var(--switch-font-size);
74
+ font-size: var(--switch-font-size, var(--switch-font-size-default));
75
75
  }
76
- :scope[disabled] { cursor: not-allowed; color: var(--switch-fg-disabled); }
76
+ :scope[disabled] { cursor: not-allowed; color: var(--switch-fg-disabled, var(--switch-fg-disabled-default)); }
77
77
 
78
78
  [slot="track"] {
79
79
  position: relative;
80
- width: var(--switch-track-width);
81
- height: var(--switch-track-height);
82
- border-radius: var(--switch-radius);
83
- background: var(--switch-track-bg);
84
- border: 1px solid var(--switch-track-border);
80
+ width: var(--switch-track-width, var(--switch-track-width-default));
81
+ height: var(--switch-track-height, var(--switch-track-height-default));
82
+ border-radius: var(--switch-radius, var(--switch-radius-default));
83
+ background: var(--switch-track-bg, var(--switch-track-bg-default));
84
+ border: 1px solid var(--switch-track-border, var(--switch-track-border-default));
85
85
  flex-shrink: 0;
86
86
  transition:
87
- background var(--switch-duration) var(--switch-easing),
88
- border-color var(--switch-duration) var(--switch-easing);
87
+ background var(--switch-duration, var(--switch-duration-default)) var(--switch-easing, var(--switch-easing-default)),
88
+ border-color var(--switch-duration, var(--switch-duration-default)) var(--switch-easing, var(--switch-easing-default));
89
89
  }
90
90
  /* hover + [checked] rules moved outside @scope — see Safari 17.x bug note at top. */
91
91
 
92
92
  [slot="thumb"] {
93
93
  position: absolute;
94
- top: var(--switch-thumb-inset);
95
- left: var(--switch-thumb-inset);
96
- width: var(--switch-thumb-size);
97
- height: var(--switch-thumb-size);
98
- border-radius: var(--switch-radius);
99
- background: var(--switch-thumb-bg);
100
- box-shadow: var(--switch-thumb-shadow);
94
+ top: var(--switch-thumb-inset, var(--switch-thumb-inset-default));
95
+ left: var(--switch-thumb-inset, var(--switch-thumb-inset-default));
96
+ width: var(--switch-thumb-size, var(--switch-thumb-size-default));
97
+ height: var(--switch-thumb-size, var(--switch-thumb-size-default));
98
+ border-radius: var(--switch-radius, var(--switch-radius-default));
99
+ background: var(--switch-thumb-bg, var(--switch-thumb-bg-default));
100
+ box-shadow: var(--switch-thumb-shadow, var(--switch-thumb-shadow-default));
101
101
  transition:
102
- transform var(--switch-duration) var(--switch-easing),
103
- background var(--switch-duration) var(--switch-easing);
102
+ transform var(--switch-duration, var(--switch-duration-default)) var(--switch-easing, var(--switch-easing-default)),
103
+ background var(--switch-duration, var(--switch-duration-default)) var(--switch-easing, var(--switch-easing-default));
104
104
  }
105
105
  /* :scope[checked] [slot="thumb"] moved outside @scope — see Safari 17.x bug note at top. */
106
106
 
107
- [slot="label"] { font-size: var(--switch-font-size); }
107
+ [slot="label"] { font-size: var(--switch-font-size, var(--switch-font-size-default)); }
108
108
 
109
109
  /* ── Hint (§184, v0.5.5, FEEDBACK-08 §7) ──
110
110
  Caption beneath the toggle row; wired to aria-describedby on host. */
@@ -117,7 +117,7 @@ switch-ui[checked] [slot="thumb"] {
117
117
  }
118
118
 
119
119
  :scope:focus-visible { outline: none; }
120
- :scope:focus-visible [slot="track"] { box-shadow: var(--switch-focus-ring); }
120
+ :scope:focus-visible [slot="track"] { box-shadow: var(--switch-focus-ring, var(--switch-focus-ring-default)); }
121
121
 
122
122
  /* Size handled by universal [size] attribute system. */
123
123
  }
@@ -10,7 +10,7 @@
10
10
  */
11
11
 
12
12
  import { defineIfFree } from '../../core/register.js';
13
- import { UISwitch } from './class.js';
13
+ import { UISwitch } from './switch.class.js';
14
14
 
15
15
  defineIfFree('switch-ui', UISwitch);
16
16