ui-lab-registry 0.3.44 → 0.3.45

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 (897) hide show
  1. package/dist/components/Anchor/examples/01-inline-text.d.ts +6 -0
  2. package/dist/components/Anchor/examples/01-inline-text.d.ts.map +1 -0
  3. package/dist/components/Anchor/examples/01-inline-text.js +10 -0
  4. package/dist/components/Anchor/examples/01-inline-text.js.map +1 -0
  5. package/dist/components/Anchor/examples/02-underline-variants.d.ts +6 -0
  6. package/dist/components/Anchor/examples/02-underline-variants.d.ts.map +1 -0
  7. package/dist/components/Anchor/examples/02-underline-variants.js +10 -0
  8. package/dist/components/Anchor/examples/02-underline-variants.js.map +1 -0
  9. package/dist/components/Anchor/examples/03-preview-tooltip.d.ts +6 -0
  10. package/dist/components/Anchor/examples/03-preview-tooltip.d.ts.map +1 -0
  11. package/dist/components/Anchor/examples/03-preview-tooltip.js +10 -0
  12. package/dist/components/Anchor/examples/03-preview-tooltip.js.map +1 -0
  13. package/dist/components/Anchor/examples/04-breadcrumb.d.ts +6 -0
  14. package/dist/components/Anchor/examples/04-breadcrumb.d.ts.map +1 -0
  15. package/dist/components/Anchor/examples/04-breadcrumb.js +15 -0
  16. package/dist/components/Anchor/examples/04-breadcrumb.js.map +1 -0
  17. package/dist/components/Anchor/examples/index.d.ts +8 -1
  18. package/dist/components/Anchor/examples/index.d.ts.map +1 -1
  19. package/dist/components/Anchor/examples/index.js +8 -1
  20. package/dist/components/Anchor/examples/index.js.map +1 -1
  21. package/dist/components/Anchor/examples.json +19 -4
  22. package/dist/components/Anchor/index.d.ts.map +1 -1
  23. package/dist/components/Anchor/index.js +8 -2
  24. package/dist/components/Anchor/index.js.map +1 -1
  25. package/dist/components/Badge/examples/01-status-badges.d.ts +6 -0
  26. package/dist/components/Badge/examples/01-status-badges.d.ts.map +1 -0
  27. package/dist/components/Badge/examples/01-status-badges.js +10 -0
  28. package/dist/components/Badge/examples/01-status-badges.js.map +1 -0
  29. package/dist/components/Badge/examples/02-icon-position.d.ts +6 -0
  30. package/dist/components/Badge/examples/02-icon-position.d.ts.map +1 -0
  31. package/dist/components/Badge/examples/02-icon-position.js +11 -0
  32. package/dist/components/Badge/examples/02-icon-position.js.map +1 -0
  33. package/dist/components/Badge/examples/02-variants-and-sizes.d.ts.map +1 -1
  34. package/dist/components/Badge/examples/02-variants-and-sizes.js +3 -3
  35. package/dist/components/Badge/examples/02-variants-and-sizes.js.map +1 -1
  36. package/dist/components/Badge/examples/03-selectable-tags.d.ts +6 -0
  37. package/dist/components/Badge/examples/03-selectable-tags.d.ts.map +1 -0
  38. package/dist/components/Badge/examples/03-selectable-tags.js +21 -0
  39. package/dist/components/Badge/examples/03-selectable-tags.js.map +1 -0
  40. package/dist/components/Badge/examples/04-dismissible.d.ts +6 -0
  41. package/dist/components/Badge/examples/04-dismissible.d.ts.map +1 -0
  42. package/dist/components/Badge/examples/04-dismissible.js +14 -0
  43. package/dist/components/Badge/examples/04-dismissible.js.map +1 -0
  44. package/dist/components/Badge/examples/05-semantic-colors.d.ts +6 -0
  45. package/dist/components/Badge/examples/05-semantic-colors.d.ts.map +1 -0
  46. package/dist/components/Badge/examples/05-semantic-colors.js +10 -0
  47. package/dist/components/Badge/examples/05-semantic-colors.js.map +1 -0
  48. package/dist/components/Badge/examples/index.d.ts +10 -4
  49. package/dist/components/Badge/examples/index.d.ts.map +1 -1
  50. package/dist/components/Badge/examples/index.js +10 -4
  51. package/dist/components/Badge/examples/index.js.map +1 -1
  52. package/dist/components/Badge/examples.json +24 -9
  53. package/dist/components/Badge/index.d.ts.map +1 -1
  54. package/dist/components/Badge/index.js +12 -15
  55. package/dist/components/Badge/index.js.map +1 -1
  56. package/dist/components/Banner/examples/01-variants.d.ts +6 -0
  57. package/dist/components/Banner/examples/01-variants.d.ts.map +1 -0
  58. package/dist/components/Banner/examples/01-variants.js +10 -0
  59. package/dist/components/Banner/examples/01-variants.js.map +1 -0
  60. package/dist/components/Banner/examples/02-dismissible.d.ts +6 -0
  61. package/dist/components/Banner/examples/02-dismissible.d.ts.map +1 -0
  62. package/dist/components/Banner/examples/02-dismissible.js +13 -0
  63. package/dist/components/Banner/examples/02-dismissible.js.map +1 -0
  64. package/dist/components/Banner/examples/03-form-feedback.d.ts +6 -0
  65. package/dist/components/Banner/examples/03-form-feedback.d.ts.map +1 -0
  66. package/dist/components/Banner/examples/03-form-feedback.js +21 -0
  67. package/dist/components/Banner/examples/03-form-feedback.js.map +1 -0
  68. package/dist/components/Banner/examples/04-settings-panel.d.ts +6 -0
  69. package/dist/components/Banner/examples/04-settings-panel.d.ts.map +1 -0
  70. package/dist/components/Banner/examples/04-settings-panel.js +10 -0
  71. package/dist/components/Banner/examples/04-settings-panel.js.map +1 -0
  72. package/dist/components/Banner/examples/05-body-only.d.ts +6 -0
  73. package/dist/components/Banner/examples/05-body-only.d.ts.map +1 -0
  74. package/dist/components/Banner/examples/05-body-only.js +10 -0
  75. package/dist/components/Banner/examples/05-body-only.js.map +1 -0
  76. package/dist/components/Banner/examples/index.d.ts +10 -2
  77. package/dist/components/Banner/examples/index.d.ts.map +1 -1
  78. package/dist/components/Banner/examples/index.js +10 -2
  79. package/dist/components/Banner/examples/index.js.map +1 -1
  80. package/dist/components/Banner/examples.json +24 -4
  81. package/dist/components/Banner/index.d.ts.map +1 -1
  82. package/dist/components/Banner/index.js +13 -16
  83. package/dist/components/Banner/index.js.map +1 -1
  84. package/dist/components/Button/examples/01-variants.d.ts.map +1 -1
  85. package/dist/components/Button/examples/01-variants.js +12 -4
  86. package/dist/components/Button/examples/01-variants.js.map +1 -1
  87. package/dist/components/Button/examples/02-multi-actions.d.ts.map +1 -1
  88. package/dist/components/Button/examples/02-multi-actions.js.map +1 -1
  89. package/dist/components/Button/examples/04-sub-stack-actions.js +1 -1
  90. package/dist/components/Button/examples/04-sub-stack-actions.js.map +1 -1
  91. package/dist/components/Button/examples/06-icons.d.ts +6 -0
  92. package/dist/components/Button/examples/06-icons.d.ts.map +1 -0
  93. package/dist/components/Button/examples/06-icons.js +11 -0
  94. package/dist/components/Button/examples/06-icons.js.map +1 -0
  95. package/dist/components/Button/examples/07-split-button.d.ts +6 -0
  96. package/dist/components/Button/examples/07-split-button.d.ts.map +1 -0
  97. package/dist/components/Button/examples/07-split-button.js +20 -0
  98. package/dist/components/Button/examples/07-split-button.js.map +1 -0
  99. package/dist/components/Button/examples/08-button-group.d.ts +6 -0
  100. package/dist/components/Button/examples/08-button-group.d.ts.map +1 -0
  101. package/dist/components/Button/examples/08-button-group.js +14 -0
  102. package/dist/components/Button/examples/08-button-group.js.map +1 -0
  103. package/dist/components/Button/examples/index.d.ts +6 -0
  104. package/dist/components/Button/examples/index.d.ts.map +1 -1
  105. package/dist/components/Button/examples/index.js +6 -0
  106. package/dist/components/Button/examples/index.js.map +1 -1
  107. package/dist/components/Button/examples.json +19 -4
  108. package/dist/components/Button/index.d.ts.map +1 -1
  109. package/dist/components/Button/index.js +6 -0
  110. package/dist/components/Button/index.js.map +1 -1
  111. package/dist/components/Card/examples/01-notification.d.ts +6 -0
  112. package/dist/components/Card/examples/01-notification.d.ts.map +1 -0
  113. package/dist/components/Card/examples/01-notification.js +13 -0
  114. package/dist/components/Card/examples/01-notification.js.map +1 -0
  115. package/dist/components/Card/examples/02-settings-panel.d.ts +6 -0
  116. package/dist/components/Card/examples/02-settings-panel.d.ts.map +1 -0
  117. package/dist/components/Card/examples/02-settings-panel.js +18 -0
  118. package/dist/components/Card/examples/02-settings-panel.js.map +1 -0
  119. package/dist/components/Card/examples/03-task-progress.d.ts +6 -0
  120. package/dist/components/Card/examples/03-task-progress.d.ts.map +1 -0
  121. package/dist/components/Card/examples/03-task-progress.js +17 -0
  122. package/dist/components/Card/examples/03-task-progress.js.map +1 -0
  123. package/dist/components/Card/examples/index.d.ts +6 -2
  124. package/dist/components/Card/examples/index.d.ts.map +1 -1
  125. package/dist/components/Card/examples/index.js +6 -2
  126. package/dist/components/Card/examples/index.js.map +1 -1
  127. package/dist/components/Card/examples.json +14 -4
  128. package/dist/components/Card/index.d.ts.map +1 -1
  129. package/dist/components/Card/index.js +6 -2
  130. package/dist/components/Card/index.js.map +1 -1
  131. package/dist/components/Checkbox/examples/01-basic-states.d.ts +6 -0
  132. package/dist/components/Checkbox/examples/01-basic-states.d.ts.map +1 -0
  133. package/dist/components/Checkbox/examples/01-basic-states.js +10 -0
  134. package/dist/components/Checkbox/examples/01-basic-states.js.map +1 -0
  135. package/dist/components/Checkbox/examples/02-helper-text.d.ts +6 -0
  136. package/dist/components/Checkbox/examples/02-helper-text.d.ts.map +1 -0
  137. package/dist/components/Checkbox/examples/02-helper-text.js +10 -0
  138. package/dist/components/Checkbox/examples/02-helper-text.js.map +1 -0
  139. package/dist/components/Checkbox/examples/03-controlled.d.ts +6 -0
  140. package/dist/components/Checkbox/examples/03-controlled.d.ts.map +1 -0
  141. package/dist/components/Checkbox/examples/03-controlled.js +13 -0
  142. package/dist/components/Checkbox/examples/03-controlled.js.map +1 -0
  143. package/dist/components/Checkbox/examples/04-group.d.ts +6 -0
  144. package/dist/components/Checkbox/examples/04-group.d.ts.map +1 -0
  145. package/dist/components/Checkbox/examples/04-group.js +25 -0
  146. package/dist/components/Checkbox/examples/04-group.js.map +1 -0
  147. package/dist/components/Checkbox/examples/05-indeterminate.d.ts +6 -0
  148. package/dist/components/Checkbox/examples/05-indeterminate.d.ts.map +1 -0
  149. package/dist/components/Checkbox/examples/05-indeterminate.js +26 -0
  150. package/dist/components/Checkbox/examples/05-indeterminate.js.map +1 -0
  151. package/dist/components/Checkbox/examples/06-consent-form.d.ts +6 -0
  152. package/dist/components/Checkbox/examples/06-consent-form.d.ts.map +1 -0
  153. package/dist/components/Checkbox/examples/06-consent-form.js +14 -0
  154. package/dist/components/Checkbox/examples/06-consent-form.js.map +1 -0
  155. package/dist/components/Checkbox/examples/index.d.ts +12 -4
  156. package/dist/components/Checkbox/examples/index.d.ts.map +1 -1
  157. package/dist/components/Checkbox/examples/index.js +12 -4
  158. package/dist/components/Checkbox/examples/index.js.map +1 -1
  159. package/dist/components/Checkbox/examples.json +29 -9
  160. package/dist/components/Checkbox/index.d.ts.map +1 -1
  161. package/dist/components/Checkbox/index.js +13 -16
  162. package/dist/components/Checkbox/index.js.map +1 -1
  163. package/dist/components/Color/examples/01-basic-color-picker.d.ts +6 -0
  164. package/dist/components/Color/examples/01-basic-color-picker.d.ts.map +1 -0
  165. package/dist/components/Color/examples/01-basic-color-picker.js +11 -0
  166. package/dist/components/Color/examples/01-basic-color-picker.js.map +1 -0
  167. package/dist/components/Color/examples/02-color-picker-opacity.d.ts +6 -0
  168. package/dist/components/Color/examples/02-color-picker-opacity.d.ts.map +1 -0
  169. package/dist/components/Color/examples/02-color-picker-opacity.js +13 -0
  170. package/dist/components/Color/examples/02-color-picker-opacity.js.map +1 -0
  171. package/dist/components/Color/examples/03-color-picker-preview.d.ts +6 -0
  172. package/dist/components/Color/examples/03-color-picker-preview.d.ts.map +1 -0
  173. package/dist/components/Color/examples/03-color-picker-preview.js +13 -0
  174. package/dist/components/Color/examples/03-color-picker-preview.js.map +1 -0
  175. package/dist/components/Color/examples/04-color-slider-primitive.d.ts +6 -0
  176. package/dist/components/Color/examples/04-color-slider-primitive.d.ts.map +1 -0
  177. package/dist/components/Color/examples/04-color-slider-primitive.js +16 -0
  178. package/dist/components/Color/examples/04-color-slider-primitive.js.map +1 -0
  179. package/dist/components/Color/examples/index.d.ts +8 -3
  180. package/dist/components/Color/examples/index.d.ts.map +1 -1
  181. package/dist/components/Color/examples/index.js +8 -3
  182. package/dist/components/Color/examples/index.js.map +1 -1
  183. package/dist/components/Color/examples.json +18 -8
  184. package/dist/components/Color/index.d.ts.map +1 -1
  185. package/dist/components/Color/index.js +8 -4
  186. package/dist/components/Color/index.js.map +1 -1
  187. package/dist/components/Expand/examples/01-basic.d.ts +6 -0
  188. package/dist/components/Expand/examples/01-basic.d.ts.map +1 -0
  189. package/dist/components/Expand/examples/01-basic.js +10 -0
  190. package/dist/components/Expand/examples/01-basic.js.map +1 -0
  191. package/dist/components/Expand/examples/02-accordion.d.ts +6 -0
  192. package/dist/components/Expand/examples/02-accordion.d.ts.map +1 -0
  193. package/dist/components/Expand/examples/02-accordion.js +30 -0
  194. package/dist/components/Expand/examples/02-accordion.js.map +1 -0
  195. package/dist/components/Expand/examples/03-custom-trigger.d.ts +6 -0
  196. package/dist/components/Expand/examples/03-custom-trigger.d.ts.map +1 -0
  197. package/dist/components/Expand/examples/03-custom-trigger.js +11 -0
  198. package/dist/components/Expand/examples/03-custom-trigger.js.map +1 -0
  199. package/dist/components/Expand/examples/04-directions.d.ts +6 -0
  200. package/dist/components/Expand/examples/04-directions.d.ts.map +1 -0
  201. package/dist/components/Expand/examples/04-directions.js +10 -0
  202. package/dist/components/Expand/examples/04-directions.js.map +1 -0
  203. package/dist/components/Expand/examples/05-settings-panel.d.ts +6 -0
  204. package/dist/components/Expand/examples/05-settings-panel.d.ts.map +1 -0
  205. package/dist/components/Expand/examples/05-settings-panel.js +11 -0
  206. package/dist/components/Expand/examples/05-settings-panel.js.map +1 -0
  207. package/dist/components/Expand/examples/06-disabled.d.ts +6 -0
  208. package/dist/components/Expand/examples/06-disabled.d.ts.map +1 -0
  209. package/dist/components/Expand/examples/06-disabled.js +10 -0
  210. package/dist/components/Expand/examples/06-disabled.js.map +1 -0
  211. package/dist/components/Expand/examples/07-inline-info.d.ts +6 -0
  212. package/dist/components/Expand/examples/07-inline-info.d.ts.map +1 -0
  213. package/dist/components/Expand/examples/07-inline-info.js +11 -0
  214. package/dist/components/Expand/examples/07-inline-info.js.map +1 -0
  215. package/dist/components/Expand/examples/index.d.ts +14 -2
  216. package/dist/components/Expand/examples/index.d.ts.map +1 -1
  217. package/dist/components/Expand/examples/index.js +14 -2
  218. package/dist/components/Expand/examples/index.js.map +1 -1
  219. package/dist/components/Expand/examples.json +34 -4
  220. package/dist/components/Expand/index.d.ts.map +1 -1
  221. package/dist/components/Expand/index.js +14 -2
  222. package/dist/components/Expand/index.js.map +1 -1
  223. package/dist/components/Flex/examples/01-axis-control.d.ts +11 -0
  224. package/dist/components/Flex/examples/01-axis-control.d.ts.map +1 -0
  225. package/dist/components/Flex/examples/01-axis-control.js +149 -0
  226. package/dist/components/Flex/examples/01-axis-control.js.map +1 -0
  227. package/dist/components/Flex/examples/02-wrap-overflow.d.ts +11 -0
  228. package/dist/components/Flex/examples/02-wrap-overflow.d.ts.map +1 -0
  229. package/dist/components/Flex/examples/02-wrap-overflow.js +147 -0
  230. package/dist/components/Flex/examples/02-wrap-overflow.js.map +1 -0
  231. package/dist/components/Flex/examples/03-container-query-reflow.d.ts +11 -0
  232. package/dist/components/Flex/examples/03-container-query-reflow.d.ts.map +1 -0
  233. package/dist/components/Flex/examples/03-container-query-reflow.js +151 -0
  234. package/dist/components/Flex/examples/03-container-query-reflow.js.map +1 -0
  235. package/dist/components/Flex/examples/index.d.ts +6 -2
  236. package/dist/components/Flex/examples/index.d.ts.map +1 -1
  237. package/dist/components/Flex/examples/index.js +6 -2
  238. package/dist/components/Flex/examples/index.js.map +1 -1
  239. package/dist/components/Flex/examples.json +14 -4
  240. package/dist/components/Flex/index.d.ts.map +1 -1
  241. package/dist/components/Flex/index.js +12 -8
  242. package/dist/components/Flex/index.js.map +1 -1
  243. package/dist/components/Gallery/examples/01-grid-composition.d.ts +11 -0
  244. package/dist/components/Gallery/examples/01-grid-composition.d.ts.map +1 -0
  245. package/dist/components/Gallery/examples/01-grid-composition.js +95 -0
  246. package/dist/components/Gallery/examples/01-grid-composition.js.map +1 -0
  247. package/dist/components/Gallery/examples/02-item-orientation.d.ts +11 -0
  248. package/dist/components/Gallery/examples/02-item-orientation.d.ts.map +1 -0
  249. package/dist/components/Gallery/examples/02-item-orientation.js +106 -0
  250. package/dist/components/Gallery/examples/02-item-orientation.js.map +1 -0
  251. package/dist/components/Gallery/examples/03-span-layout.d.ts +11 -0
  252. package/dist/components/Gallery/examples/03-span-layout.d.ts.map +1 -0
  253. package/dist/components/Gallery/examples/03-span-layout.js +95 -0
  254. package/dist/components/Gallery/examples/03-span-layout.js.map +1 -0
  255. package/dist/components/Gallery/examples/index.d.ts +6 -2
  256. package/dist/components/Gallery/examples/index.d.ts.map +1 -1
  257. package/dist/components/Gallery/examples/index.js +6 -2
  258. package/dist/components/Gallery/examples/index.js.map +1 -1
  259. package/dist/components/Gallery/examples.json +14 -4
  260. package/dist/components/Gallery/index.d.ts.map +1 -1
  261. package/dist/components/Gallery/index.js +6 -2
  262. package/dist/components/Gallery/index.js.map +1 -1
  263. package/dist/components/Grid/examples/02-track-placement.d.ts +11 -0
  264. package/dist/components/Grid/examples/02-track-placement.d.ts.map +1 -0
  265. package/dist/components/Grid/examples/02-track-placement.js +181 -0
  266. package/dist/components/Grid/examples/02-track-placement.js.map +1 -0
  267. package/dist/components/Grid/examples/03-editorial-spans.d.ts +11 -0
  268. package/dist/components/Grid/examples/03-editorial-spans.d.ts.map +1 -0
  269. package/dist/components/Grid/examples/03-editorial-spans.js +167 -0
  270. package/dist/components/Grid/examples/03-editorial-spans.js.map +1 -0
  271. package/dist/components/Grid/examples/04-responsive-card-rail.d.ts +11 -0
  272. package/dist/components/Grid/examples/04-responsive-card-rail.d.ts.map +1 -0
  273. package/dist/components/Grid/examples/04-responsive-card-rail.js +126 -0
  274. package/dist/components/Grid/examples/04-responsive-card-rail.js.map +1 -0
  275. package/dist/components/Grid/examples/index.d.ts +6 -0
  276. package/dist/components/Grid/examples/index.d.ts.map +1 -1
  277. package/dist/components/Grid/examples/index.js +6 -0
  278. package/dist/components/Grid/examples/index.js.map +1 -1
  279. package/dist/components/Grid/examples.json +15 -0
  280. package/dist/components/Grid/index.d.ts.map +1 -1
  281. package/dist/components/Grid/index.js +6 -0
  282. package/dist/components/Grid/index.js.map +1 -1
  283. package/dist/components/Group/examples/02-create-project.d.ts +6 -0
  284. package/dist/components/Group/examples/02-create-project.d.ts.map +1 -0
  285. package/dist/components/Group/examples/02-create-project.js +11 -0
  286. package/dist/components/Group/examples/02-create-project.js.map +1 -0
  287. package/dist/components/Group/examples/03-filter-bar.d.ts +6 -0
  288. package/dist/components/Group/examples/03-filter-bar.d.ts.map +1 -0
  289. package/dist/components/Group/examples/03-filter-bar.js +14 -0
  290. package/dist/components/Group/examples/03-filter-bar.js.map +1 -0
  291. package/dist/components/Group/examples/04-documentation-search.d.ts +6 -0
  292. package/dist/components/Group/examples/04-documentation-search.d.ts.map +1 -0
  293. package/dist/components/Group/examples/04-documentation-search.js +11 -0
  294. package/dist/components/Group/examples/04-documentation-search.js.map +1 -0
  295. package/dist/components/Group/examples/05-email-signup.d.ts +6 -0
  296. package/dist/components/Group/examples/05-email-signup.d.ts.map +1 -0
  297. package/dist/components/Group/examples/05-email-signup.js +11 -0
  298. package/dist/components/Group/examples/05-email-signup.js.map +1 -0
  299. package/dist/components/Group/examples/06-copy-command.d.ts +6 -0
  300. package/dist/components/Group/examples/06-copy-command.d.ts.map +1 -0
  301. package/dist/components/Group/examples/06-copy-command.js +11 -0
  302. package/dist/components/Group/examples/06-copy-command.js.map +1 -0
  303. package/dist/components/Group/examples/07-delete-confirmation.d.ts +6 -0
  304. package/dist/components/Group/examples/07-delete-confirmation.d.ts.map +1 -0
  305. package/dist/components/Group/examples/07-delete-confirmation.js +11 -0
  306. package/dist/components/Group/examples/07-delete-confirmation.js.map +1 -0
  307. package/dist/components/Group/examples/08-slider-integration.d.ts +6 -0
  308. package/dist/components/Group/examples/08-slider-integration.d.ts.map +1 -0
  309. package/dist/components/Group/examples/08-slider-integration.js +19 -0
  310. package/dist/components/Group/examples/08-slider-integration.js.map +1 -0
  311. package/dist/components/Group/examples/index.d.ts +14 -0
  312. package/dist/components/Group/examples/index.d.ts.map +1 -1
  313. package/dist/components/Group/examples/index.js +14 -0
  314. package/dist/components/Group/examples/index.js.map +1 -1
  315. package/dist/components/Group/examples.json +35 -0
  316. package/dist/components/Group/index.d.ts.map +1 -1
  317. package/dist/components/Group/index.js +14 -0
  318. package/dist/components/Group/index.js.map +1 -1
  319. package/dist/components/Input/examples/03-sign-in.d.ts +6 -0
  320. package/dist/components/Input/examples/03-sign-in.d.ts.map +1 -0
  321. package/dist/components/Input/examples/03-sign-in.js +22 -0
  322. package/dist/components/Input/examples/03-sign-in.js.map +1 -0
  323. package/dist/components/Input/examples/04-search.d.ts +6 -0
  324. package/dist/components/Input/examples/04-search.d.ts.map +1 -0
  325. package/dist/components/Input/examples/04-search.js +16 -0
  326. package/dist/components/Input/examples/04-search.js.map +1 -0
  327. package/dist/components/Input/examples/05-user-handle.d.ts +6 -0
  328. package/dist/components/Input/examples/05-user-handle.d.ts.map +1 -0
  329. package/dist/components/Input/examples/05-user-handle.js +27 -0
  330. package/dist/components/Input/examples/05-user-handle.js.map +1 -0
  331. package/dist/components/Input/examples/06-api-key.d.ts +6 -0
  332. package/dist/components/Input/examples/06-api-key.d.ts.map +1 -0
  333. package/dist/components/Input/examples/06-api-key.js +35 -0
  334. package/dist/components/Input/examples/06-api-key.js.map +1 -0
  335. package/dist/components/Input/examples/07-url-validation.d.ts +6 -0
  336. package/dist/components/Input/examples/07-url-validation.d.ts.map +1 -0
  337. package/dist/components/Input/examples/07-url-validation.js +23 -0
  338. package/dist/components/Input/examples/07-url-validation.js.map +1 -0
  339. package/dist/components/Input/examples/08-quantity.d.ts +6 -0
  340. package/dist/components/Input/examples/08-quantity.d.ts.map +1 -0
  341. package/dist/components/Input/examples/08-quantity.js +13 -0
  342. package/dist/components/Input/examples/08-quantity.js.map +1 -0
  343. package/dist/components/Input/examples/index.d.ts +12 -0
  344. package/dist/components/Input/examples/index.d.ts.map +1 -1
  345. package/dist/components/Input/examples/index.js +12 -0
  346. package/dist/components/Input/examples/index.js.map +1 -1
  347. package/dist/components/Input/examples.json +30 -0
  348. package/dist/components/Input/index.d.ts.map +1 -1
  349. package/dist/components/Input/index.js +12 -0
  350. package/dist/components/Input/index.js.map +1 -1
  351. package/dist/components/List/examples/02-review-queue.d.ts +6 -0
  352. package/dist/components/List/examples/02-review-queue.d.ts.map +1 -0
  353. package/dist/components/List/examples/02-review-queue.js +32 -0
  354. package/dist/components/List/examples/02-review-queue.js.map +1 -0
  355. package/dist/components/List/examples/03-notification-rules.d.ts +6 -0
  356. package/dist/components/List/examples/03-notification-rules.d.ts.map +1 -0
  357. package/dist/components/List/examples/03-notification-rules.js +40 -0
  358. package/dist/components/List/examples/03-notification-rules.js.map +1 -0
  359. package/dist/components/List/examples/04-quota-editor.d.ts +6 -0
  360. package/dist/components/List/examples/04-quota-editor.d.ts.map +1 -0
  361. package/dist/components/List/examples/04-quota-editor.js +40 -0
  362. package/dist/components/List/examples/04-quota-editor.js.map +1 -0
  363. package/dist/components/List/examples/05-permissions-matrix.d.ts +6 -0
  364. package/dist/components/List/examples/05-permissions-matrix.d.ts.map +1 -0
  365. package/dist/components/List/examples/05-permissions-matrix.js +39 -0
  366. package/dist/components/List/examples/05-permissions-matrix.js.map +1 -0
  367. package/dist/components/List/examples/index.d.ts +8 -0
  368. package/dist/components/List/examples/index.d.ts.map +1 -1
  369. package/dist/components/List/examples/index.js +8 -0
  370. package/dist/components/List/examples/index.js.map +1 -1
  371. package/dist/components/List/examples.json +20 -0
  372. package/dist/components/List/index.d.ts.map +1 -1
  373. package/dist/components/List/index.js +10 -2
  374. package/dist/components/List/index.js.map +1 -1
  375. package/dist/components/Menu/examples/03-toolbar-dropdown.d.ts +6 -0
  376. package/dist/components/Menu/examples/03-toolbar-dropdown.d.ts.map +1 -0
  377. package/dist/components/Menu/examples/03-toolbar-dropdown.js +11 -0
  378. package/dist/components/Menu/examples/03-toolbar-dropdown.js.map +1 -0
  379. package/dist/components/Menu/examples/04-table-row-actions.d.ts +6 -0
  380. package/dist/components/Menu/examples/04-table-row-actions.d.ts.map +1 -0
  381. package/dist/components/Menu/examples/04-table-row-actions.js +16 -0
  382. package/dist/components/Menu/examples/04-table-row-actions.js.map +1 -0
  383. package/dist/components/Menu/examples/05-context-menu.d.ts +6 -0
  384. package/dist/components/Menu/examples/05-context-menu.d.ts.map +1 -0
  385. package/dist/components/Menu/examples/05-context-menu.js +10 -0
  386. package/dist/components/Menu/examples/05-context-menu.js.map +1 -0
  387. package/dist/components/Menu/examples/06-view-options.d.ts +6 -0
  388. package/dist/components/Menu/examples/06-view-options.d.ts.map +1 -0
  389. package/dist/components/Menu/examples/06-view-options.js +15 -0
  390. package/dist/components/Menu/examples/06-view-options.js.map +1 -0
  391. package/dist/components/Menu/examples/index.d.ts +8 -0
  392. package/dist/components/Menu/examples/index.d.ts.map +1 -1
  393. package/dist/components/Menu/examples/index.js +8 -0
  394. package/dist/components/Menu/examples/index.js.map +1 -1
  395. package/dist/components/Menu/examples.json +20 -0
  396. package/dist/components/Menu/index.d.ts.map +1 -1
  397. package/dist/components/Menu/index.js +8 -0
  398. package/dist/components/Menu/index.js.map +1 -1
  399. package/dist/components/Modal/examples/02-form-modal.js +1 -1
  400. package/dist/components/Modal/examples/02-form-modal.js.map +1 -1
  401. package/dist/components/Modal/examples/03-delete-confirmation.d.ts +6 -0
  402. package/dist/components/Modal/examples/03-delete-confirmation.d.ts.map +1 -0
  403. package/dist/components/Modal/examples/03-delete-confirmation.js +13 -0
  404. package/dist/components/Modal/examples/03-delete-confirmation.js.map +1 -0
  405. package/dist/components/Modal/examples/04-create-api-key.d.ts +6 -0
  406. package/dist/components/Modal/examples/04-create-api-key.d.ts.map +1 -0
  407. package/dist/components/Modal/examples/04-create-api-key.js +14 -0
  408. package/dist/components/Modal/examples/04-create-api-key.js.map +1 -0
  409. package/dist/components/Modal/examples/05-notification-settings.d.ts +6 -0
  410. package/dist/components/Modal/examples/05-notification-settings.d.ts.map +1 -0
  411. package/dist/components/Modal/examples/05-notification-settings.js +19 -0
  412. package/dist/components/Modal/examples/05-notification-settings.js.map +1 -0
  413. package/dist/components/Modal/examples/index.d.ts +6 -0
  414. package/dist/components/Modal/examples/index.d.ts.map +1 -1
  415. package/dist/components/Modal/examples/index.js +6 -0
  416. package/dist/components/Modal/examples/index.js.map +1 -1
  417. package/dist/components/Modal/examples.json +16 -1
  418. package/dist/components/Modal/index.d.ts.map +1 -1
  419. package/dist/components/Modal/index.js +8 -0
  420. package/dist/components/Modal/index.js.map +1 -1
  421. package/dist/components/Panel/examples/01-sidebar-toggle.d.ts +6 -0
  422. package/dist/components/Panel/examples/01-sidebar-toggle.d.ts.map +1 -0
  423. package/dist/components/Panel/examples/01-sidebar-toggle.js +10 -0
  424. package/dist/components/Panel/examples/01-sidebar-toggle.js.map +1 -0
  425. package/dist/components/Panel/examples/index.d.ts +3 -0
  426. package/dist/components/Panel/examples/index.d.ts.map +1 -0
  427. package/dist/components/Panel/examples/index.js +3 -0
  428. package/dist/components/Panel/examples/index.js.map +1 -0
  429. package/dist/components/Panel/examples.json +7 -0
  430. package/dist/components/Panel/index.d.ts +1 -0
  431. package/dist/components/Panel/index.d.ts.map +1 -1
  432. package/dist/components/Panel/index.js +8 -0
  433. package/dist/components/Panel/index.js.map +1 -1
  434. package/dist/components/Path/examples/01-basic-path.js +2 -2
  435. package/dist/components/Path/examples/01-basic-path.js.map +1 -1
  436. package/dist/components/Path/examples/02-custom-separator.d.ts +6 -0
  437. package/dist/components/Path/examples/02-custom-separator.d.ts.map +1 -0
  438. package/dist/components/Path/examples/02-custom-separator.js +11 -0
  439. package/dist/components/Path/examples/02-custom-separator.js.map +1 -0
  440. package/dist/components/Path/examples/03-collapsed-breadcrumb.d.ts +6 -0
  441. package/dist/components/Path/examples/03-collapsed-breadcrumb.d.ts.map +1 -0
  442. package/dist/components/Path/examples/03-collapsed-breadcrumb.js +16 -0
  443. package/dist/components/Path/examples/03-collapsed-breadcrumb.js.map +1 -0
  444. package/dist/components/Path/examples/index.d.ts +4 -0
  445. package/dist/components/Path/examples/index.d.ts.map +1 -1
  446. package/dist/components/Path/examples/index.js +4 -0
  447. package/dist/components/Path/examples/index.js.map +1 -1
  448. package/dist/components/Path/examples.json +11 -1
  449. package/dist/components/Path/index.d.ts.map +1 -1
  450. package/dist/components/Path/index.js +11 -7
  451. package/dist/components/Path/index.js.map +1 -1
  452. package/dist/components/Popover/examples/01-basic-popover.d.ts.map +1 -1
  453. package/dist/components/Popover/examples/01-basic-popover.js +5 -4
  454. package/dist/components/Popover/examples/01-basic-popover.js.map +1 -1
  455. package/dist/components/Popover/examples/02-toggleable-options.d.ts +6 -0
  456. package/dist/components/Popover/examples/02-toggleable-options.d.ts.map +1 -0
  457. package/dist/components/Popover/examples/02-toggleable-options.js +23 -0
  458. package/dist/components/Popover/examples/02-toggleable-options.js.map +1 -0
  459. package/dist/components/Popover/examples/03-table-row-actions.d.ts +6 -0
  460. package/dist/components/Popover/examples/03-table-row-actions.d.ts.map +1 -0
  461. package/dist/components/Popover/examples/03-table-row-actions.js +17 -0
  462. package/dist/components/Popover/examples/03-table-row-actions.js.map +1 -0
  463. package/dist/components/Popover/examples/04-input-form.d.ts +6 -0
  464. package/dist/components/Popover/examples/04-input-form.d.ts.map +1 -0
  465. package/dist/components/Popover/examples/04-input-form.js +14 -0
  466. package/dist/components/Popover/examples/04-input-form.js.map +1 -0
  467. package/dist/components/Popover/examples/05-arrow-positions.d.ts +6 -0
  468. package/dist/components/Popover/examples/05-arrow-positions.d.ts.map +1 -0
  469. package/dist/components/Popover/examples/05-arrow-positions.js +11 -0
  470. package/dist/components/Popover/examples/05-arrow-positions.js.map +1 -0
  471. package/dist/components/Popover/examples/index.d.ts +8 -0
  472. package/dist/components/Popover/examples/index.d.ts.map +1 -1
  473. package/dist/components/Popover/examples/index.js +8 -0
  474. package/dist/components/Popover/examples/index.js.map +1 -1
  475. package/dist/components/Popover/examples.json +23 -3
  476. package/dist/components/Popover/index.d.ts.map +1 -1
  477. package/dist/components/Popover/index.js +8 -0
  478. package/dist/components/Popover/index.js.map +1 -1
  479. package/dist/components/Progress/examples/01-basic-progress.d.ts.map +1 -1
  480. package/dist/components/Progress/examples/01-basic-progress.js +20 -5
  481. package/dist/components/Progress/examples/01-basic-progress.js.map +1 -1
  482. package/dist/components/Progress/examples/02-storage-quota.d.ts +6 -0
  483. package/dist/components/Progress/examples/02-storage-quota.d.ts.map +1 -0
  484. package/dist/components/Progress/examples/02-storage-quota.js +12 -0
  485. package/dist/components/Progress/examples/02-storage-quota.js.map +1 -0
  486. package/dist/components/Progress/examples/03-onboarding-steps.d.ts +6 -0
  487. package/dist/components/Progress/examples/03-onboarding-steps.d.ts.map +1 -0
  488. package/dist/components/Progress/examples/03-onboarding-steps.js +14 -0
  489. package/dist/components/Progress/examples/03-onboarding-steps.js.map +1 -0
  490. package/dist/components/Progress/examples/04-indeterminate.d.ts +6 -0
  491. package/dist/components/Progress/examples/04-indeterminate.d.ts.map +1 -0
  492. package/dist/components/Progress/examples/04-indeterminate.js +19 -0
  493. package/dist/components/Progress/examples/04-indeterminate.js.map +1 -0
  494. package/dist/components/Progress/examples/05-skill-levels.d.ts +6 -0
  495. package/dist/components/Progress/examples/05-skill-levels.d.ts.map +1 -0
  496. package/dist/components/Progress/examples/05-skill-levels.js +15 -0
  497. package/dist/components/Progress/examples/05-skill-levels.js.map +1 -0
  498. package/dist/components/Progress/examples/index.d.ts +8 -0
  499. package/dist/components/Progress/examples/index.d.ts.map +1 -1
  500. package/dist/components/Progress/examples/index.js +8 -0
  501. package/dist/components/Progress/examples/index.js.map +1 -1
  502. package/dist/components/Progress/examples.json +23 -3
  503. package/dist/components/Progress/index.d.ts.map +1 -1
  504. package/dist/components/Progress/index.js +11 -14
  505. package/dist/components/Progress/index.js.map +1 -1
  506. package/dist/components/Scroll/examples/01-basic-scroll.d.ts.map +1 -1
  507. package/dist/components/Scroll/examples/01-basic-scroll.js +29 -3
  508. package/dist/components/Scroll/examples/01-basic-scroll.js.map +1 -1
  509. package/dist/components/Scroll/examples/02-settings-panel.d.ts +6 -0
  510. package/dist/components/Scroll/examples/02-settings-panel.d.ts.map +1 -0
  511. package/dist/components/Scroll/examples/02-settings-panel.js +21 -0
  512. package/dist/components/Scroll/examples/02-settings-panel.js.map +1 -0
  513. package/dist/components/Scroll/examples/03-horizontal-tags.d.ts +6 -0
  514. package/dist/components/Scroll/examples/03-horizontal-tags.d.ts.map +1 -0
  515. package/dist/components/Scroll/examples/03-horizontal-tags.js +24 -0
  516. package/dist/components/Scroll/examples/03-horizontal-tags.js.map +1 -0
  517. package/dist/components/Scroll/examples/index.d.ts +4 -0
  518. package/dist/components/Scroll/examples/index.d.ts.map +1 -1
  519. package/dist/components/Scroll/examples/index.js +4 -0
  520. package/dist/components/Scroll/examples/index.js.map +1 -1
  521. package/dist/components/Scroll/examples.json +13 -3
  522. package/dist/components/Scroll/index.d.ts.map +1 -1
  523. package/dist/components/Scroll/index.js +4 -0
  524. package/dist/components/Scroll/index.js.map +1 -1
  525. package/dist/components/Select/examples/03-country-select.d.ts +6 -0
  526. package/dist/components/Select/examples/03-country-select.d.ts.map +1 -0
  527. package/dist/components/Select/examples/03-country-select.js +28 -0
  528. package/dist/components/Select/examples/03-country-select.js.map +1 -0
  529. package/dist/components/Select/examples/index.d.ts +2 -0
  530. package/dist/components/Select/examples/index.d.ts.map +1 -1
  531. package/dist/components/Select/examples/index.js +2 -0
  532. package/dist/components/Select/examples/index.js.map +1 -1
  533. package/dist/components/Select/examples.json +5 -0
  534. package/dist/components/Select/index.d.ts.map +1 -1
  535. package/dist/components/Select/index.js +2 -0
  536. package/dist/components/Select/index.js.map +1 -1
  537. package/dist/components/Slider/examples/01-basic-slider.d.ts.map +1 -1
  538. package/dist/components/Slider/examples/01-basic-slider.js +7 -4
  539. package/dist/components/Slider/examples/01-basic-slider.js.map +1 -1
  540. package/dist/components/Slider/examples/02-settings-panel.d.ts +6 -0
  541. package/dist/components/Slider/examples/02-settings-panel.d.ts.map +1 -0
  542. package/dist/components/Slider/examples/02-settings-panel.js +20 -0
  543. package/dist/components/Slider/examples/02-settings-panel.js.map +1 -0
  544. package/dist/components/Slider/examples/03-price-range.d.ts +6 -0
  545. package/dist/components/Slider/examples/03-price-range.d.ts.map +1 -0
  546. package/dist/components/Slider/examples/03-price-range.js +13 -0
  547. package/dist/components/Slider/examples/03-price-range.js.map +1 -0
  548. package/dist/components/Slider/examples/04-step-slider.d.ts +6 -0
  549. package/dist/components/Slider/examples/04-step-slider.d.ts.map +1 -0
  550. package/dist/components/Slider/examples/04-step-slider.js +13 -0
  551. package/dist/components/Slider/examples/04-step-slider.js.map +1 -0
  552. package/dist/components/Slider/examples/05-disabled-state.d.ts +6 -0
  553. package/dist/components/Slider/examples/05-disabled-state.d.ts.map +1 -0
  554. package/dist/components/Slider/examples/05-disabled-state.js +10 -0
  555. package/dist/components/Slider/examples/05-disabled-state.js.map +1 -0
  556. package/dist/components/Slider/examples/06-vertical-mixer.d.ts +6 -0
  557. package/dist/components/Slider/examples/06-vertical-mixer.d.ts.map +1 -0
  558. package/dist/components/Slider/examples/06-vertical-mixer.js +17 -0
  559. package/dist/components/Slider/examples/06-vertical-mixer.js.map +1 -0
  560. package/dist/components/Slider/examples/index.d.ts +10 -0
  561. package/dist/components/Slider/examples/index.d.ts.map +1 -1
  562. package/dist/components/Slider/examples/index.js +10 -0
  563. package/dist/components/Slider/examples/index.js.map +1 -1
  564. package/dist/components/Slider/examples.json +28 -3
  565. package/dist/components/Slider/index.d.ts.map +1 -1
  566. package/dist/components/Slider/index.js +10 -0
  567. package/dist/components/Slider/index.js.map +1 -1
  568. package/dist/components/Switch/examples/01-basic-switch.d.ts.map +1 -1
  569. package/dist/components/Switch/examples/01-basic-switch.js +7 -4
  570. package/dist/components/Switch/examples/01-basic-switch.js.map +1 -1
  571. package/dist/components/Switch/examples/02-settings-panel.d.ts +6 -0
  572. package/dist/components/Switch/examples/02-settings-panel.d.ts.map +1 -0
  573. package/dist/components/Switch/examples/02-settings-panel.js +20 -0
  574. package/dist/components/Switch/examples/02-settings-panel.js.map +1 -0
  575. package/dist/components/Switch/examples/03-disabled-state.d.ts +6 -0
  576. package/dist/components/Switch/examples/03-disabled-state.d.ts.map +1 -0
  577. package/dist/components/Switch/examples/03-disabled-state.js +10 -0
  578. package/dist/components/Switch/examples/03-disabled-state.js.map +1 -0
  579. package/dist/components/Switch/examples/04-small-size.d.ts +6 -0
  580. package/dist/components/Switch/examples/04-small-size.d.ts.map +1 -0
  581. package/dist/components/Switch/examples/04-small-size.js +13 -0
  582. package/dist/components/Switch/examples/04-small-size.js.map +1 -0
  583. package/dist/components/Switch/examples/05-controlled-toggle.d.ts +6 -0
  584. package/dist/components/Switch/examples/05-controlled-toggle.d.ts.map +1 -0
  585. package/dist/components/Switch/examples/05-controlled-toggle.js +13 -0
  586. package/dist/components/Switch/examples/05-controlled-toggle.js.map +1 -0
  587. package/dist/components/Switch/examples/index.d.ts +8 -0
  588. package/dist/components/Switch/examples/index.d.ts.map +1 -1
  589. package/dist/components/Switch/examples/index.js +8 -0
  590. package/dist/components/Switch/examples/index.js.map +1 -1
  591. package/dist/components/Switch/examples.json +23 -3
  592. package/dist/components/Switch/index.d.ts.map +1 -1
  593. package/dist/components/Switch/index.js +8 -0
  594. package/dist/components/Switch/index.js.map +1 -1
  595. package/dist/components/Table/index.d.ts.map +1 -1
  596. package/dist/components/Table/index.js.map +1 -1
  597. package/dist/components/Tabs/examples/03-underline-tabs.d.ts +6 -0
  598. package/dist/components/Tabs/examples/03-underline-tabs.d.ts.map +1 -0
  599. package/dist/components/Tabs/examples/03-underline-tabs.js +13 -0
  600. package/dist/components/Tabs/examples/03-underline-tabs.js.map +1 -0
  601. package/dist/components/Tabs/examples/04-vertical-underline-tabs.d.ts +6 -0
  602. package/dist/components/Tabs/examples/04-vertical-underline-tabs.d.ts.map +1 -0
  603. package/dist/components/Tabs/examples/04-vertical-underline-tabs.js +13 -0
  604. package/dist/components/Tabs/examples/04-vertical-underline-tabs.js.map +1 -0
  605. package/dist/components/Tabs/examples/index.d.ts +4 -0
  606. package/dist/components/Tabs/examples/index.d.ts.map +1 -1
  607. package/dist/components/Tabs/examples/index.js +4 -0
  608. package/dist/components/Tabs/examples/index.js.map +1 -1
  609. package/dist/components/Tabs/examples.json +10 -0
  610. package/dist/components/Tabs/index.d.ts.map +1 -1
  611. package/dist/components/Tabs/index.js +4 -0
  612. package/dist/components/Tabs/index.js.map +1 -1
  613. package/dist/components/Textarea/examples/01-basic-textarea.d.ts.map +1 -1
  614. package/dist/components/Textarea/examples/01-basic-textarea.js +8 -5
  615. package/dist/components/Textarea/examples/01-basic-textarea.js.map +1 -1
  616. package/dist/components/Textarea/examples/02-bio-settings.d.ts +6 -0
  617. package/dist/components/Textarea/examples/02-bio-settings.d.ts.map +1 -0
  618. package/dist/components/Textarea/examples/02-bio-settings.js +13 -0
  619. package/dist/components/Textarea/examples/02-bio-settings.js.map +1 -0
  620. package/dist/components/Textarea/examples/03-error-state.d.ts +6 -0
  621. package/dist/components/Textarea/examples/03-error-state.d.ts.map +1 -0
  622. package/dist/components/Textarea/examples/03-error-state.js +14 -0
  623. package/dist/components/Textarea/examples/03-error-state.js.map +1 -0
  624. package/dist/components/Textarea/examples/04-disabled-readonly.d.ts +6 -0
  625. package/dist/components/Textarea/examples/04-disabled-readonly.d.ts.map +1 -0
  626. package/dist/components/Textarea/examples/04-disabled-readonly.js +10 -0
  627. package/dist/components/Textarea/examples/04-disabled-readonly.js.map +1 -0
  628. package/dist/components/Textarea/examples/05-scrolling.d.ts +6 -0
  629. package/dist/components/Textarea/examples/05-scrolling.d.ts.map +1 -0
  630. package/dist/components/Textarea/examples/05-scrolling.js +13 -0
  631. package/dist/components/Textarea/examples/05-scrolling.js.map +1 -0
  632. package/dist/components/Textarea/examples/index.d.ts +8 -0
  633. package/dist/components/Textarea/examples/index.d.ts.map +1 -1
  634. package/dist/components/Textarea/examples/index.js +8 -0
  635. package/dist/components/Textarea/examples/index.js.map +1 -1
  636. package/dist/components/Textarea/examples.json +23 -3
  637. package/dist/components/Textarea/index.d.ts.map +1 -1
  638. package/dist/components/Textarea/index.js +8 -0
  639. package/dist/components/Textarea/index.js.map +1 -1
  640. package/dist/components/Toast/index.d.ts.map +1 -1
  641. package/dist/components/Toast/index.js +1 -1
  642. package/dist/components/Toast/index.js.map +1 -1
  643. package/dist/generated-data.d.ts.map +1 -1
  644. package/dist/generated-data.js +999 -429
  645. package/dist/generated-data.js.map +1 -1
  646. package/dist/generated-styles.d.ts.map +1 -1
  647. package/dist/generated-styles.js +1135 -203
  648. package/dist/generated-styles.js.map +1 -1
  649. package/dist/generated-styles.json +1135 -203
  650. package/dist/index.d.ts +1 -1
  651. package/dist/index.d.ts.map +1 -1
  652. package/dist/index.js.map +1 -1
  653. package/dist/patterns/data/badge-row/variations/main/index.js +1 -1
  654. package/dist/patterns/data/badge-row/variations/main/index.js.map +1 -1
  655. package/dist/patterns/data/badge-row/variations/mixed/index.js +1 -1
  656. package/dist/patterns/data/badge-row/variations/mixed/index.js.map +1 -1
  657. package/dist/patterns/data/badge-row/variations/outline/index.js +1 -1
  658. package/dist/patterns/data/badge-row/variations/outline/index.js.map +1 -1
  659. package/dist/patterns/data/data-table-row/variations/expandable/index.js +1 -1
  660. package/dist/patterns/data/data-table-row/variations/expandable/index.js.map +1 -1
  661. package/dist/patterns/data/data-table-row/variations/main/index.js +1 -1
  662. package/dist/patterns/data/data-table-row/variations/main/index.js.map +1 -1
  663. package/dist/patterns/data/data-table-row/variations/selectable/index.js +1 -1
  664. package/dist/patterns/data/data-table-row/variations/selectable/index.js.map +1 -1
  665. package/dist/patterns/interaction/tab-content-header/variations/with-badge/index.js +1 -1
  666. package/dist/patterns/interaction/tab-content-header/variations/with-badge/index.js.map +1 -1
  667. package/dist/patterns/layout/split-row/variations/main/index.js +1 -1
  668. package/dist/patterns/layout/split-row/variations/main/index.js.map +1 -1
  669. package/dist/registry.d.ts.map +1 -1
  670. package/dist/registry.js +536 -61
  671. package/dist/registry.js.map +1 -1
  672. package/dist/types.d.ts +18 -1
  673. package/dist/types.d.ts.map +1 -1
  674. package/dist/utils/load-component-examples.d.ts +4 -7
  675. package/dist/utils/load-component-examples.d.ts.map +1 -1
  676. package/dist/utils/load-component-examples.js +4 -7
  677. package/dist/utils/load-component-examples.js.map +1 -1
  678. package/package.json +2 -2
  679. package/src/components/Anchor/examples/01-inline-text.tsx +22 -0
  680. package/src/components/Anchor/examples/02-underline-variants.tsx +24 -0
  681. package/src/components/Anchor/examples/03-preview-tooltip.tsx +27 -0
  682. package/src/components/Anchor/examples/04-breadcrumb.tsx +29 -0
  683. package/src/components/Anchor/examples/index.ts +11 -1
  684. package/src/components/Anchor/examples.json +19 -4
  685. package/src/components/Anchor/index.tsx +8 -2
  686. package/src/components/Badge/examples/01-status-badges.tsx +17 -0
  687. package/src/components/Badge/examples/02-icon-position.tsx +18 -0
  688. package/src/components/Badge/examples/03-selectable-tags.tsx +40 -0
  689. package/src/components/Badge/examples/04-dismissible.tsx +37 -0
  690. package/src/components/Badge/examples/05-semantic-colors.tsx +18 -0
  691. package/src/components/Badge/examples/index.ts +13 -4
  692. package/src/components/Badge/examples.json +24 -9
  693. package/src/components/Badge/index.tsx +11 -15
  694. package/src/components/Banner/examples/01-variants.tsx +33 -0
  695. package/src/components/Banner/examples/02-dismissible.tsx +31 -0
  696. package/src/components/Banner/examples/03-form-feedback.tsx +47 -0
  697. package/src/components/Banner/examples/04-settings-panel.tsx +21 -0
  698. package/src/components/Banner/examples/05-body-only.tsx +22 -0
  699. package/src/components/Banner/examples/index.ts +14 -2
  700. package/src/components/Banner/examples.json +24 -4
  701. package/src/components/Banner/index.tsx +12 -16
  702. package/src/components/Button/examples/01-variants.tsx +18 -52
  703. package/src/components/Button/examples/02-multi-actions.tsx +0 -1
  704. package/src/components/Button/examples/04-sub-stack-actions.tsx +1 -1
  705. package/src/components/Button/examples/06-icons.tsx +25 -0
  706. package/src/components/Button/examples/07-split-button.tsx +47 -0
  707. package/src/components/Button/examples/08-button-group.tsx +30 -0
  708. package/src/components/Button/examples/index.ts +6 -0
  709. package/src/components/Button/examples.json +19 -4
  710. package/src/components/Button/index.tsx +6 -0
  711. package/src/components/Card/examples/01-notification.tsx +37 -0
  712. package/src/components/Card/examples/02-settings-panel.tsx +48 -0
  713. package/src/components/Card/examples/03-task-progress.tsx +43 -0
  714. package/src/components/Card/examples/index.ts +8 -2
  715. package/src/components/Card/examples.json +14 -4
  716. package/src/components/Card/index.tsx +6 -2
  717. package/src/components/Card/metadata.json +42 -0
  718. package/src/components/Checkbox/examples/01-basic-states.tsx +17 -0
  719. package/src/components/Checkbox/examples/02-helper-text.tsx +26 -0
  720. package/src/components/Checkbox/examples/03-controlled.tsx +28 -0
  721. package/src/components/Checkbox/examples/04-group.tsx +49 -0
  722. package/src/components/Checkbox/examples/05-indeterminate.tsx +56 -0
  723. package/src/components/Checkbox/examples/06-consent-form.tsx +35 -0
  724. package/src/components/Checkbox/examples/index.ts +16 -4
  725. package/src/components/Checkbox/examples.json +29 -9
  726. package/src/components/Checkbox/index.tsx +12 -16
  727. package/src/components/Color/examples/01-basic-color-picker.tsx +18 -0
  728. package/src/components/Color/examples/02-color-picker-opacity.tsx +29 -0
  729. package/src/components/Color/examples/03-color-picker-preview.tsx +27 -0
  730. package/src/components/Color/examples/04-color-slider-primitive.tsx +47 -0
  731. package/src/components/Color/examples/index.ts +11 -3
  732. package/src/components/Color/examples.json +18 -8
  733. package/src/components/Color/index.tsx +8 -4
  734. package/src/components/Expand/examples/01-basic.tsx +18 -0
  735. package/src/components/Expand/examples/02-accordion.tsx +46 -0
  736. package/src/components/Expand/examples/03-custom-trigger.tsx +30 -0
  737. package/src/components/Expand/examples/04-directions.tsx +33 -0
  738. package/src/components/Expand/examples/05-settings-panel.tsx +54 -0
  739. package/src/components/Expand/examples/06-disabled.tsx +19 -0
  740. package/src/components/Expand/examples/07-inline-info.tsx +29 -0
  741. package/src/components/Expand/examples/index.ts +20 -2
  742. package/src/components/Expand/examples.json +34 -4
  743. package/src/components/Expand/index.tsx +14 -2
  744. package/src/components/Flex/examples/01-axis-control.tsx +199 -0
  745. package/src/components/Flex/examples/02-wrap-overflow.tsx +183 -0
  746. package/src/components/Flex/examples/03-container-query-reflow.tsx +198 -0
  747. package/src/components/Flex/examples/index.ts +8 -2
  748. package/src/components/Flex/examples.json +14 -4
  749. package/src/components/Flex/index.tsx +12 -8
  750. package/src/components/Gallery/examples/01-grid-composition.tsx +121 -0
  751. package/src/components/Gallery/examples/02-item-orientation.tsx +133 -0
  752. package/src/components/Gallery/examples/03-span-layout.tsx +130 -0
  753. package/src/components/Gallery/examples/index.ts +8 -2
  754. package/src/components/Gallery/examples.json +14 -4
  755. package/src/components/Gallery/index.tsx +6 -2
  756. package/src/components/Grid/examples/02-track-placement.tsx +210 -0
  757. package/src/components/Grid/examples/03-editorial-spans.tsx +196 -0
  758. package/src/components/Grid/examples/04-responsive-card-rail.tsx +153 -0
  759. package/src/components/Grid/examples/index.ts +6 -0
  760. package/src/components/Grid/examples.json +15 -0
  761. package/src/components/Grid/index.tsx +6 -0
  762. package/src/components/Group/examples/02-create-project.tsx +19 -0
  763. package/src/components/Group/examples/03-filter-bar.tsx +34 -0
  764. package/src/components/Group/examples/04-documentation-search.tsx +21 -0
  765. package/src/components/Group/examples/05-email-signup.tsx +21 -0
  766. package/src/components/Group/examples/06-copy-command.tsx +17 -0
  767. package/src/components/Group/examples/07-delete-confirmation.tsx +19 -0
  768. package/src/components/Group/examples/08-slider-integration.tsx +30 -0
  769. package/src/components/Group/examples/index.ts +14 -0
  770. package/src/components/Group/examples.json +35 -0
  771. package/src/components/Group/index.tsx +14 -0
  772. package/src/components/Input/examples/03-sign-in.tsx +41 -0
  773. package/src/components/Input/examples/04-search.tsx +31 -0
  774. package/src/components/Input/examples/05-user-handle.tsx +40 -0
  775. package/src/components/Input/examples/06-api-key.tsx +48 -0
  776. package/src/components/Input/examples/07-url-validation.tsx +36 -0
  777. package/src/components/Input/examples/08-quantity.tsx +26 -0
  778. package/src/components/Input/examples/index.ts +12 -0
  779. package/src/components/Input/examples.json +30 -0
  780. package/src/components/Input/index.tsx +12 -0
  781. package/src/components/List/examples/02-review-queue.tsx +54 -0
  782. package/src/components/List/examples/03-notification-rules.tsx +80 -0
  783. package/src/components/List/examples/04-quota-editor.tsx +71 -0
  784. package/src/components/List/examples/05-permissions-matrix.tsx +91 -0
  785. package/src/components/List/examples/index.ts +8 -0
  786. package/src/components/List/examples.json +20 -0
  787. package/src/components/List/index.tsx +10 -2
  788. package/src/components/Menu/examples/03-toolbar-dropdown.tsx +35 -0
  789. package/src/components/Menu/examples/04-table-row-actions.tsx +60 -0
  790. package/src/components/Menu/examples/05-context-menu.tsx +36 -0
  791. package/src/components/Menu/examples/06-view-options.tsx +39 -0
  792. package/src/components/Menu/examples/index.ts +8 -0
  793. package/src/components/Menu/examples.json +20 -0
  794. package/src/components/Menu/index.tsx +8 -0
  795. package/src/components/Modal/examples/02-form-modal.tsx +1 -1
  796. package/src/components/Modal/examples/03-delete-confirmation.tsx +42 -0
  797. package/src/components/Modal/examples/04-create-api-key.tsx +54 -0
  798. package/src/components/Modal/examples/05-notification-settings.tsx +58 -0
  799. package/src/components/Modal/examples/index.ts +6 -0
  800. package/src/components/Modal/examples.json +16 -1
  801. package/src/components/Modal/index.tsx +8 -0
  802. package/src/components/Modal/metadata.json +41 -1
  803. package/src/components/Panel/examples/01-sidebar-toggle.tsx +20 -0
  804. package/src/components/Panel/examples/index.ts +2 -0
  805. package/src/components/Panel/examples.json +7 -1
  806. package/src/components/Panel/index.tsx +9 -0
  807. package/src/components/Path/examples/01-basic-path.tsx +5 -5
  808. package/src/components/Path/examples/02-custom-separator.tsx +17 -0
  809. package/src/components/Path/examples/03-collapsed-breadcrumb.tsx +37 -0
  810. package/src/components/Path/examples/index.ts +4 -0
  811. package/src/components/Path/examples.json +11 -1
  812. package/src/components/Path/index.tsx +15 -11
  813. package/src/components/Popover/examples/01-basic-popover.tsx +24 -5
  814. package/src/components/Popover/examples/02-toggleable-options.tsx +58 -0
  815. package/src/components/Popover/examples/03-table-row-actions.tsx +64 -0
  816. package/src/components/Popover/examples/04-input-form.tsx +46 -0
  817. package/src/components/Popover/examples/05-arrow-positions.tsx +27 -0
  818. package/src/components/Popover/examples/index.ts +8 -0
  819. package/src/components/Popover/examples.json +23 -3
  820. package/src/components/Popover/index.tsx +8 -0
  821. package/src/components/Progress/examples/01-basic-progress.tsx +34 -5
  822. package/src/components/Progress/examples/02-storage-quota.tsx +22 -0
  823. package/src/components/Progress/examples/03-onboarding-steps.tsx +34 -0
  824. package/src/components/Progress/examples/04-indeterminate.tsx +33 -0
  825. package/src/components/Progress/examples/05-skill-levels.tsx +22 -0
  826. package/src/components/Progress/examples/index.ts +8 -0
  827. package/src/components/Progress/examples.json +23 -3
  828. package/src/components/Progress/index.tsx +10 -14
  829. package/src/components/Scroll/examples/01-basic-scroll.tsx +45 -12
  830. package/src/components/Scroll/examples/02-settings-panel.tsx +40 -0
  831. package/src/components/Scroll/examples/03-horizontal-tags.tsx +38 -0
  832. package/src/components/Scroll/examples/index.ts +4 -0
  833. package/src/components/Scroll/examples.json +13 -3
  834. package/src/components/Scroll/index.tsx +4 -0
  835. package/src/components/Select/examples/03-country-select.tsx +55 -0
  836. package/src/components/Select/examples/index.ts +2 -0
  837. package/src/components/Select/examples.json +5 -0
  838. package/src/components/Select/index.tsx +2 -0
  839. package/src/components/Slider/examples/01-basic-slider.tsx +19 -4
  840. package/src/components/Slider/examples/02-settings-panel.tsx +33 -0
  841. package/src/components/Slider/examples/03-price-range.tsx +34 -0
  842. package/src/components/Slider/examples/04-step-slider.tsx +35 -0
  843. package/src/components/Slider/examples/05-disabled-state.tsx +21 -0
  844. package/src/components/Slider/examples/06-vertical-mixer.tsx +34 -0
  845. package/src/components/Slider/examples/index.ts +10 -0
  846. package/src/components/Slider/examples.json +28 -3
  847. package/src/components/Slider/index.tsx +10 -0
  848. package/src/components/Switch/examples/01-basic-switch.tsx +20 -4
  849. package/src/components/Switch/examples/02-settings-panel.tsx +32 -0
  850. package/src/components/Switch/examples/03-disabled-state.tsx +21 -0
  851. package/src/components/Switch/examples/04-small-size.tsx +25 -0
  852. package/src/components/Switch/examples/05-controlled-toggle.tsx +32 -0
  853. package/src/components/Switch/examples/index.ts +8 -0
  854. package/src/components/Switch/examples.json +23 -3
  855. package/src/components/Switch/index.tsx +8 -0
  856. package/src/components/Table/index.tsx +0 -1
  857. package/src/components/Tabs/examples/03-underline-tabs.tsx +23 -0
  858. package/src/components/Tabs/examples/04-vertical-underline-tabs.tsx +23 -0
  859. package/src/components/Tabs/examples/index.ts +4 -0
  860. package/src/components/Tabs/examples.json +10 -0
  861. package/src/components/Tabs/index.tsx +4 -0
  862. package/src/components/Textarea/examples/01-basic-textarea.tsx +21 -8
  863. package/src/components/Textarea/examples/02-bio-settings.tsx +30 -0
  864. package/src/components/Textarea/examples/03-error-state.tsx +31 -0
  865. package/src/components/Textarea/examples/04-disabled-readonly.tsx +25 -0
  866. package/src/components/Textarea/examples/05-scrolling.tsx +26 -0
  867. package/src/components/Textarea/examples/index.ts +8 -0
  868. package/src/components/Textarea/examples.json +23 -3
  869. package/src/components/Textarea/index.tsx +8 -0
  870. package/src/components/Toast/index.tsx +1 -4
  871. package/src/generated-data.ts +999 -429
  872. package/src/generated-styles.ts +1135 -203
  873. package/src/index.ts +2 -0
  874. package/src/patterns/data/badge-row/variations/main/index.tsx +1 -1
  875. package/src/patterns/data/badge-row/variations/mixed/index.tsx +1 -1
  876. package/src/patterns/data/badge-row/variations/outline/index.tsx +1 -1
  877. package/src/patterns/data/data-table-row/variations/expandable/index.tsx +1 -1
  878. package/src/patterns/data/data-table-row/variations/main/index.tsx +1 -1
  879. package/src/patterns/data/data-table-row/variations/selectable/index.tsx +1 -1
  880. package/src/patterns/interaction/tab-content-header/variations/with-badge/index.tsx +1 -1
  881. package/src/patterns/layout/split-row/variations/main/index.tsx +1 -1
  882. package/src/registry.ts +536 -61
  883. package/src/types.ts +20 -1
  884. package/src/utils/load-component-examples.ts +8 -7
  885. package/src/components/Anchor/examples/01-basic-anchor.tsx +0 -18
  886. package/src/components/Badge/examples/01-basic-badge.tsx +0 -11
  887. package/src/components/Badge/examples/02-variants-and-sizes.tsx +0 -71
  888. package/src/components/Banner/examples/01-basic-banner.tsx +0 -15
  889. package/src/components/Card/examples/01-basic-card.tsx +0 -22
  890. package/src/components/Checkbox/examples/01-basic-checkbox.tsx +0 -21
  891. package/src/components/Checkbox/examples/02-checkbox-group-with-descriptions.tsx +0 -59
  892. package/src/components/Color/examples/01-basic-color.tsx +0 -25
  893. package/src/components/Color/examples/02-opacity-slider.tsx +0 -26
  894. package/src/components/Color/examples/03-format-switching.tsx +0 -46
  895. package/src/components/Expand/examples/01-basic-expand.tsx +0 -18
  896. package/src/components/Flex/examples/01-basic-flex.tsx +0 -17
  897. package/src/components/Gallery/examples/01-basic-gallery.tsx +0 -28
@@ -8,5 +8,35 @@
8
8
  "title": "Validation States",
9
9
  "description": "Input fields with error and success validation states, including helper text for user feedback.",
10
10
  "code": "import React from 'react';\nimport { Input, Label } from 'ui-lab-components';\nimport { FaCircleExclamation, FaCircleCheck } from 'react-icons/fa6';\n\nexport default function Example() {\n return (\n <div className=\"flex flex-col gap-6 w-full max-w-sm\">\n {/* Error State */}\n <div className=\"flex flex-col gap-1.5\">\n <Label error helperText=\"Please enter a valid email address\" helperTextError>\n Email\n </Label>\n <Input\n type=\"email\"\n placeholder=\"Enter your email\"\n error\n defaultValue=\"invalid-email\"\n icon={{ suffix: <FaCircleExclamation className=\"text-danger-600\" size={14} /> }}\n />\n </div>\n\n {/* Success State */}\n <div className=\"flex flex-col gap-1.5\">\n <Label helperText=\"Email address is available\">\n Email\n </Label>\n <Input\n type=\"email\"\n placeholder=\"Enter your email\"\n defaultValue=\"user@example.com\"\n icon={{ suffix: <FaCircleCheck className=\"text-success-600\" size={14} /> }}\n className=\"border-success-600 focus:border-success-600\"\n />\n </div>\n\n {/* Default State with Helper Text */}\n <div className=\"flex flex-col gap-1.5\">\n <Label required helperText=\"We'll never share your email with anyone else.\">\n Email\n </Label>\n <Input\n type=\"email\"\n placeholder=\"Enter your email\"\n />\n </div>\n </div>\n );\n}"
11
+ },
12
+ "03-sign-in": {
13
+ "title": "Sign In Form",
14
+ "description": "Email and password fields with a password visibility toggle — a common authentication pattern.",
15
+ "code": "\"use client\";\n\nimport { useState } from \"react\";\nimport { Input, Flex, Button } from \"ui-lab-components\";\nimport { FaEnvelope, FaLock, FaEye, FaEyeSlash } from \"react-icons/fa6\";\n\nexport default function Example() {\n const [showPassword, setShowPassword] = useState(false);\n\n return (\n <Flex direction=\"column\" gap=\"sm\" style={{ width: 320 }}>\n <Input\n type=\"email\"\n icon={<FaEnvelope className=\"w-3.5 h-3.5 text-foreground-400\" />}\n placeholder=\"Email address\"\n autoComplete=\"email\"\n />\n <Input\n type={showPassword ? \"text\" : \"password\"}\n icon={<FaLock className=\"w-3.5 h-3.5 text-foreground-400\" />}\n placeholder=\"Password\"\n autoComplete=\"current-password\"\n actions={[\n {\n icon: showPassword\n ? <FaEyeSlash className=\"w-3.5 h-3.5\" />\n : <FaEye className=\"w-3.5 h-3.5\" />,\n title: showPassword ? \"Hide password\" : \"Show password\",\n onClick: () => setShowPassword((v) => !v),\n },\n ]}\n />\n <Button variant=\"primary\" className=\"w-full mt-1\">Sign in</Button>\n </Flex>\n );\n}"
16
+ },
17
+ "04-search": {
18
+ "title": "Search",
19
+ "description": "Search input with a keyboard shortcut hint that switches to a clear action once the user types.",
20
+ "code": "\"use client\";\n\nimport { useState } from \"react\";\nimport { Input, Flex, Badge } from \"ui-lab-components\";\nimport { FaMagnifyingGlass, FaXmark } from \"react-icons/fa6\";\n\nexport default function Example() {\n const [query, setQuery] = useState(\"\");\n\n return (\n <Flex direction=\"column\" gap=\"sm\" style={{ width: 340 }}>\n <Input\n icon={<FaMagnifyingGlass className=\"w-3.5 h-3.5 text-foreground-400\" />}\n placeholder=\"Search components...\"\n value={query}\n onChange={(e) => setQuery(e.target.value)}\n hint={!query ? <Badge>⌘K</Badge> : undefined}\n actions={\n query\n ? [{ icon: <FaXmark className=\"w-3.5 h-3.5\" />, title: \"Clear\", onClick: () => setQuery(\"\") }]\n : []\n }\n />\n </Flex>\n );\n}"
21
+ },
22
+ "05-user-handle": {
23
+ "title": "User Handle",
24
+ "description": "Editable username field with an inline copy action.",
25
+ "code": "\"use client\";\n\nimport { useState } from \"react\";\nimport { Input, Flex } from \"ui-lab-components\";\nimport { FaAt, FaCopy, FaCheck } from \"react-icons/fa6\";\n\nexport default function Example() {\n const [handle, setHandle] = useState(\"kyza\");\n const [copied, setCopied] = useState(false);\n\n const handleCopy = () => {\n setCopied(true);\n setTimeout(() => setCopied(false), 1500);\n };\n\n return (\n <Flex direction=\"column\" gap=\"sm\" style={{ width: 320 }}>\n <Input\n icon={<FaAt className=\"w-3.5 h-3.5 text-foreground-400\" />}\n placeholder=\"username\"\n value={handle}\n onChange={(e) => setHandle(e.target.value)}\n actions={[\n {\n icon: copied\n ? <FaCheck className=\"w-3.5 h-3.5 text-green-500\" />\n : <FaCopy className=\"w-3.5 h-3.5\" />,\n title: copied ? \"Copied!\" : \"Copy handle\",\n onClick: handleCopy,\n },\n ]}\n />\n </Flex>\n );\n}"
26
+ },
27
+ "06-api-key": {
28
+ "title": "API Key",
29
+ "description": "Read-only secret field with reveal and copy actions — suitable for credentials and tokens.",
30
+ "code": "\"use client\";\n\nimport { useState } from \"react\";\nimport { Input, Flex } from \"ui-lab-components\";\nimport { FaKey, FaEye, FaEyeSlash, FaCopy, FaCheck } from \"react-icons/fa6\";\n\nexport default function Example() {\n const [revealed, setRevealed] = useState(false);\n const [copied, setCopied] = useState(false);\n const key = \"sk-proj-a8f2c1d9e4b7\";\n\n const handleCopy = () => {\n setCopied(true);\n setTimeout(() => setCopied(false), 1500);\n };\n\n return (\n <Flex direction=\"column\" gap=\"sm\" style={{ width: 360 }}>\n <Input\n type={revealed ? \"text\" : \"password\"}\n icon={<FaKey className=\"w-3.5 h-3.5 text-foreground-400\" />}\n value={key}\n readOnly\n actions={[\n {\n icon: revealed\n ? <FaEyeSlash className=\"w-3.5 h-3.5\" />\n : <FaEye className=\"w-3.5 h-3.5\" />,\n title: revealed ? \"Hide key\" : \"Reveal key\",\n onClick: () => setRevealed((v) => !v),\n },\n {\n icon: copied\n ? <FaCheck className=\"w-3.5 h-3.5 text-green-500\" />\n : <FaCopy className=\"w-3.5 h-3.5\" />,\n title: copied ? \"Copied!\" : \"Copy key\",\n onClick: handleCopy,\n },\n ]}\n />\n </Flex>\n );\n}"
31
+ },
32
+ "07-url-validation": {
33
+ "title": "URL with Validation",
34
+ "description": "URL field that shows a success or error icon in the suffix slot based on the input value.",
35
+ "code": "\"use client\";\n\nimport { useState } from \"react\";\nimport { Input, Flex } from \"ui-lab-components\";\nimport { FaLink, FaCircleExclamation, FaCheck } from \"react-icons/fa6\";\n\nexport default function Example() {\n const [url, setUrl] = useState(\"\");\n\n const isValid = url.length === 0 || /^https?:\\/\\/.+\\..+/.test(url);\n const showError = url.length > 0 && !isValid;\n\n return (\n <Flex direction=\"column\" gap=\"sm\" style={{ width: 340 }}>\n <Input\n placeholder=\"https://example.com\"\n value={url}\n onChange={(e) => setUrl(e.target.value)}\n error={showError}\n icon={{\n prefix: <FaLink className=\"w-3.5 h-3.5 text-foreground-400\" />,\n suffix: showError\n ? <FaCircleExclamation className=\"w-3.5 h-3.5 text-red-500\" />\n : url.length > 0\n ? <FaCheck className=\"w-3.5 h-3.5 text-green-500\" />\n : undefined,\n }}\n />\n </Flex>\n );\n}"
36
+ },
37
+ "08-quantity": {
38
+ "title": "Quantity",
39
+ "description": "Number input with native spin controls for selecting a bounded quantity.",
40
+ "code": "\"use client\";\n\nimport { useState } from \"react\";\nimport { Input, Flex } from \"ui-lab-components\";\n\nexport default function Example() {\n const [qty, setQty] = useState(1);\n\n return (\n <Flex direction=\"column\" gap=\"sm\" style={{ width: 200 }}>\n <Input\n type=\"number\"\n placeholder=\"Qty\"\n value={qty}\n min={1}\n max={99}\n onChange={(e) => setQty(Number(e.target.value))}\n />\n </Flex>\n );\n}"
11
41
  }
12
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAYtD,QAAA,MAAM,aAAa,EAAE,UAAU,EA+B9B,CAAA;AAQD,eAAO,MAAM,WAAW,EAAE,eAmDzB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAwBtD,QAAA,MAAM,aAAa,EAAE,UAAU,EA+B9B,CAAA;AAQD,eAAO,MAAM,WAAW,EAAE,eAmDzB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,cAAc,qBAAqB,CAAC"}
@@ -2,11 +2,23 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Input } from 'ui-lab-components';
3
3
  import Example1, { metadata as metadata1 } from './examples/01-basic-input.js';
4
4
  import Example2, { metadata as metadata2 } from './examples/02-validation.js';
5
+ import Example3, { metadata as metadata3 } from './examples/03-sign-in.js';
6
+ import Example4, { metadata as metadata4 } from './examples/04-search.js';
7
+ import Example5, { metadata as metadata5 } from './examples/05-user-handle.js';
8
+ import Example6, { metadata as metadata6 } from './examples/06-api-key.js';
9
+ import Example7, { metadata as metadata7 } from './examples/07-url-validation.js';
10
+ import Example8, { metadata as metadata8 } from './examples/08-quantity.js';
5
11
  import examplesJson from './examples.json' with { type: 'json' };
6
12
  import { loadComponentExamples } from '../../utils/load-component-examples.js';
7
13
  const examplesData = [
8
14
  { id: '01-basic-input', Component: Example1, metadata: metadata1 },
9
15
  { id: '02-validation', Component: Example2, metadata: metadata2 },
16
+ { id: '03-sign-in', Component: Example3, metadata: metadata3 },
17
+ { id: '04-search', Component: Example4, metadata: metadata4 },
18
+ { id: '05-user-handle', Component: Example5, metadata: metadata5 },
19
+ { id: '06-api-key', Component: Example6, metadata: metadata6 },
20
+ { id: '07-url-validation', Component: Example7, metadata: metadata7 },
21
+ { id: '08-quantity', Component: Example8, metadata: metadata8 },
10
22
  ];
11
23
  const inputControls = [
12
24
  {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Input/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,QAAQ,EAAE,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,QAAQ,EAAE,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,YAAY,MAAM,iBAAiB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAE/E,MAAM,YAAY,GAAG;IACnB,EAAE,EAAE,EAAE,gBAAgB,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE;IAClE,EAAE,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE;CAClE,CAAC;AAGF,MAAM,aAAa,GAAiB;IAClC;QACE,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE;YACP,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;YAChC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;YAClC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;YACxC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;SACrC;QACD,YAAY,EAAE,MAAM;KACrB;IACD;QACE,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,Q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AAC,mBAAmB,GAAG;SACnE;KACF;CACF,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const metadata: {
2
+ title: string;
3
+ description: string;
4
+ };
5
+ export default function Example(): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=02-review-queue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"02-review-queue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/examples/02-review-queue.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;CAGpB,CAAC;AAQF,MAAM,CAAC,OAAO,UAAU,OAAO,4CAqC9B"}
@@ -0,0 +1,32 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useState } from "react";
4
+ import { List } from "ui-lab-components";
5
+ export const metadata = {
6
+ title: "Review Queue",
7
+ description: "A compact checklist for work that can be completed directly from each row.",
8
+ };
9
+ const reviewItems = [
10
+ { id: "legal", title: "Legal review", desc: "Updated retention language" },
11
+ { id: "security", title: "Security review", desc: "New access scopes" },
12
+ { id: "billing", title: "Billing review", desc: "Invoice copy changes" },
13
+ ];
14
+ export default function Example() {
15
+ const [checked, setChecked] = useState(() => new Set(["legal"]));
16
+ const setItem = (id, value) => {
17
+ setChecked((current) => {
18
+ const next = new Set(current);
19
+ value ? next.add(id) : next.delete(id);
20
+ return next;
21
+ });
22
+ };
23
+ const toggleItem = (id) => {
24
+ setChecked((current) => {
25
+ const next = new Set(current);
26
+ next.has(id) ? next.delete(id) : next.add(id);
27
+ return next;
28
+ });
29
+ };
30
+ return (_jsx(List, { items: reviewItems, spacing: "sm", style: { width: 320 }, children: reviewItems.map((item) => (_jsxs(List.Item, { value: item.id, interactive: true, onClick: () => toggleItem(item.id), children: [_jsx(List.Checkbox, { "aria-label": `Mark ${item.title} reviewed`, placement: "start", checked: checked.has(item.id), onCheckedChange: (value) => setItem(item.id, value) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx(List.Title, { children: item.title }), _jsx(List.Desc, { children: item.desc })] })] }, item.id))) }));
31
+ }
32
+ //# sourceMappingURL=02-review-queue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"02-review-queue.js","sourceRoot":"","sources":["../../../../src/components/List/examples/02-review-queue.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,4EAA4E;CAC1F,CAAC;AAEF,MAAM,WAAW,GAAG;IAClB,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,4BAA4B,EAAE;IAC1E,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,mBAAmB,EAAE;IACvE,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,sBAAsB,EAAE;CACzE,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO;IAC7B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAEjE,MAAM,OAAO,GAAG,CAAC,EAAU,EAAE,KAAc,EAAE,EAAE;QAC7C,UAAU,CAAC,CAAC,OAAO,EAAE,EAAE;YACrB,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;YAC9B,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;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AAC,GACG,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const metadata: {
2
+ title: string;
3
+ description: string;
4
+ };
5
+ export default function Example(): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=03-notification-rules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"03-notification-rules.d.ts","sourceRoot":"","sources":["../../../../src/components/List/examples/03-notification-rules.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;CAGpB,CAAC;AAQF,MAAM,CAAC,OAAO,UAAU,OAAO,4CA+D9B"}
@@ -0,0 +1,40 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useState } from "react";
4
+ import { List, Select } from "ui-lab-components";
5
+ export const metadata = {
6
+ title: "Notification Rules",
7
+ description: "Rows can combine a leading checkbox with a trailing Select action.",
8
+ };
9
+ const notificationItems = [
10
+ { id: "comments", title: "Comments", desc: "Replies and mentions" },
11
+ { id: "deployments", title: "Deployments", desc: "Preview and production updates" },
12
+ { id: "incidents", title: "Incidents", desc: "Status changes and postmortems" },
13
+ ];
14
+ export default function Example() {
15
+ const [checked, setChecked] = useState(() => new Set(["comments", "incidents"]));
16
+ const [delivery, setDelivery] = useState({
17
+ comments: "digest",
18
+ deployments: "email",
19
+ incidents: "push",
20
+ });
21
+ const setItem = (id, value) => {
22
+ setChecked((current) => {
23
+ const next = new Set(current);
24
+ value ? next.add(id) : next.delete(id);
25
+ return next;
26
+ });
27
+ };
28
+ const toggleItem = (id) => {
29
+ setChecked((current) => {
30
+ const next = new Set(current);
31
+ next.has(id) ? next.delete(id) : next.add(id);
32
+ return next;
33
+ });
34
+ };
35
+ const setDeliveryMode = (id, value) => {
36
+ setDelivery((current) => ({ ...current, [id]: value }));
37
+ };
38
+ return (_jsx(List, { items: notificationItems, spacing: "sm", style: { width: 400 }, children: notificationItems.map((item) => (_jsxs(List.Item, { value: item.id, interactive: true, onClick: () => toggleItem(item.id), children: [_jsx(List.Checkbox, { "aria-label": `Enable ${item.title.toLowerCase()} notifications`, placement: "start", checked: checked.has(item.id), onCheckedChange: (value) => setItem(item.id, value) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx(List.Title, { children: item.title }), _jsx(List.Desc, { children: item.desc })] }), _jsxs(List.Select, { selectedKey: delivery[item.id], valueLabel: String(delivery[item.id] ?? ""), isDisabled: !checked.has(item.id), onSelectionChange: (value) => setDeliveryMode(item.id, value), children: [_jsx(Select.Trigger, { children: _jsx(Select.Value, { placeholder: "Mode" }) }), _jsx(Select.Content, { children: _jsxs(Select.List, { children: [_jsx(Select.Item, { value: "email", children: "Email" }), _jsx(Select.Item, { value: "digest", children: "Digest" }), _jsx(Select.Item, { value: "push", children: "Push" })] }) })] })] }, item.id))) }));
39
+ }
40
+ //# sourceMappingURL=03-notification-rules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"03-notification-rules.js","sourceRoot":"","sources":["../../../../src/components/List/examples/03-notification-rules.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EAAE,oEAAoE;CAClF,CAAC;AAEF,MAAM,iBAAiB,GAAG;IACxB,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,sBAAsB,EAAE;IACnE,EAAE,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,gCAAgC,EAAE;IACnF,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,gCAAgC,EAAE;CAChF,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO;IAC7B,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jB,KAAC,MAAM,CAAC,OAAO,cACb,MAAC,MAAM,CAAC,IAAI,eACV,KAAC,MAAM,CAAC,IAAI,IAAC,KAAK,EAAC,OAAO,sBAAoB,EAC9C,KAAC,MAAM,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,uBAAqB,EAChD,KAAC,MAAM,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,qBAAmB,IAChC,GACC,IACL,KA3BA,IAAI,CAAC,EAAE,CA4BX,CACb,CAAC,GACG,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const metadata: {
2
+ title: string;
3
+ description: string;
4
+ };
5
+ export default function Example(): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=04-quota-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"04-quota-editor.d.ts","sourceRoot":"","sources":["../../../../src/components/List/examples/04-quota-editor.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;CAGpB,CAAC;AAQF,MAAM,CAAC,OAAO,UAAU,OAAO,4CAsD9B"}
@@ -0,0 +1,40 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useState } from "react";
4
+ import { List } from "ui-lab-components";
5
+ export const metadata = {
6
+ title: "Quota Editor",
7
+ description: "Inline inputs work as row actions without taking over the List primitive.",
8
+ };
9
+ const quotaItems = [
10
+ { id: "seats", title: "Seats", desc: "Maximum workspace members" },
11
+ { id: "projects", title: "Projects", desc: "Active projects per workspace" },
12
+ { id: "tokens", title: "Tokens", desc: "Monthly API token budget" },
13
+ ];
14
+ export default function Example() {
15
+ const [checked, setChecked] = useState(() => new Set(["seats", "projects"]));
16
+ const [limits, setLimits] = useState({
17
+ seats: "24",
18
+ projects: "12",
19
+ tokens: "50000",
20
+ });
21
+ const setItem = (id, value) => {
22
+ setChecked((current) => {
23
+ const next = new Set(current);
24
+ value ? next.add(id) : next.delete(id);
25
+ return next;
26
+ });
27
+ };
28
+ const toggleItem = (id) => {
29
+ setChecked((current) => {
30
+ const next = new Set(current);
31
+ next.has(id) ? next.delete(id) : next.add(id);
32
+ return next;
33
+ });
34
+ };
35
+ const setLimit = (id, value) => {
36
+ setLimits((current) => ({ ...current, [id]: value }));
37
+ };
38
+ return (_jsx(List, { items: quotaItems, spacing: "sm", style: { width: 396 }, children: quotaItems.map((item) => (_jsxs(List.Item, { value: item.id, interactive: true, onClick: () => toggleItem(item.id), children: [_jsx(List.Checkbox, { "aria-label": `Enable ${item.title.toLowerCase()} limit`, placement: "start", checked: checked.has(item.id), onCheckedChange: (value) => setItem(item.id, value) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx(List.Title, { children: item.title }), _jsx(List.Desc, { children: item.desc })] }), _jsx(List.Input, { "aria-label": `${item.title} limit`, type: "number", value: limits[item.id], disabled: !checked.has(item.id), onChange: (event) => setLimit(item.id, event.currentTarget.value), className: "w-24" })] }, item.id))) }));
39
+ }
40
+ //# sourceMappingURL=04-quota-editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"04-quota-editor.js","sourceRoot":"","sources":["../../../../src/components/List/examples/04-quota-editor.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,2EAA2E;CACzF,CAAC;AAEF,MAAM,UAAU,GAAG;IACjB,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,2BAA2B,EAAE;IAClE,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,+BAA+B,EAAE;IAC5E,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,IAA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BY,IAAI,CAAC,EAAE,CAmBX,CACb,CAAC,GACG,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const metadata: {
2
+ title: string;
3
+ description: string;
4
+ };
5
+ export default function Example(): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=05-permissions-matrix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"05-permissions-matrix.d.ts","sourceRoot":"","sources":["../../../../src/components/List/examples/05-permissions-matrix.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;CAGpB,CAAC;AAQF,MAAM,CAAC,OAAO,UAAU,OAAO,4CA0E9B"}
@@ -0,0 +1,39 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useMemo, useState } from "react";
4
+ import { List, Select } from "ui-lab-components";
5
+ export const metadata = {
6
+ title: "Permissions Matrix",
7
+ description: "A parent checkbox can summarize rows that also expose per-row Select controls.",
8
+ };
9
+ const permissionItems = [
10
+ { id: "members", title: "Members", desc: "Invite and remove workspace members" },
11
+ { id: "billing", title: "Billing", desc: "Update plan, seats, and invoices" },
12
+ { id: "tokens", title: "Tokens", desc: "Issue scoped API credentials" },
13
+ ];
14
+ export default function Example() {
15
+ const rows = useMemo(() => [{ id: "all", title: "All permissions" }, ...permissionItems], []);
16
+ const [checked, setChecked] = useState(() => new Set(["members", "tokens"]));
17
+ const [level, setLevel] = useState({
18
+ members: "edit",
19
+ billing: "view",
20
+ tokens: "edit",
21
+ });
22
+ const allChecked = checked.size === permissionItems.length;
23
+ const isIndeterminate = checked.size > 0 && !allChecked;
24
+ const setItem = (id, value) => {
25
+ setChecked((current) => {
26
+ const next = new Set(current);
27
+ value ? next.add(id) : next.delete(id);
28
+ return next;
29
+ });
30
+ };
31
+ const setAll = (value) => {
32
+ permissionItems.forEach((item) => setItem(item.id, value));
33
+ };
34
+ const setPermissionLevel = (id, value) => {
35
+ setLevel((current) => ({ ...current, [id]: value }));
36
+ };
37
+ return (_jsxs(List, { items: rows, spacing: "sm", style: { width: 420 }, children: [_jsxs(List.Item, { value: "all", interactive: true, onClick: () => setAll(!allChecked), children: [_jsx(List.Checkbox, { "aria-label": "Toggle all permissions", placement: "start", checked: allChecked, isIndeterminate: isIndeterminate, onCheckedChange: setAll }), _jsx(List.Title, { children: "All permissions" })] }), _jsx(List.Divider, {}), permissionItems.map((item) => (_jsxs(List.Item, { value: item.id, interactive: true, onClick: () => setItem(item.id, !checked.has(item.id)), children: [_jsx("div", { className: "w-5 flex-shrink-0" }), _jsx(List.Checkbox, { "aria-label": `Allow ${item.title.toLowerCase()}`, placement: "start", checked: checked.has(item.id), onCheckedChange: (value) => setItem(item.id, value) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx(List.Title, { children: item.title }), _jsx(List.Desc, { children: item.desc })] }), _jsxs(List.Select, { selectedKey: level[item.id], valueLabel: String(level[item.id] ?? ""), isDisabled: !checked.has(item.id), onSelectionChange: (value) => setPermissionLevel(item.id, value), children: [_jsx(Select.Trigger, { children: _jsx(Select.Value, { placeholder: "Access" }) }), _jsx(Select.Content, { children: _jsxs(Select.List, { children: [_jsx(Select.Item, { value: "view", children: "View" }), _jsx(Select.Item, { value: "edit", children: "Edit" }), _jsx(Select.Item, { value: "admin", children: "Admin" })] }) })] })] }, item.id)))] }));
38
+ }
39
+ //# sourceMappingURL=05-permissions-matrix.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"05-permissions-matrix.js","sourceRoot":"","sources":["../../../../src/components/List/examples/05-permissions-matrix.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EAAE,gFAAgF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b,CAAC,IACG,CACR,CAAC;AACJ,CAAC"}
@@ -1,3 +1,11 @@
1
1
  export { default as Example1 } from './01-basic.js';
2
2
  export { metadata as metadata1 } from './01-basic.js';
3
+ export { default as Example2 } from './02-review-queue.js';
4
+ export { metadata as metadata2 } from './02-review-queue.js';
5
+ export { default as Example3 } from './03-notification-rules.js';
6
+ export { metadata as metadata3 } from './03-notification-rules.js';
7
+ export { default as Example4 } from './04-quota-editor.js';
8
+ export { metadata as metadata4 } from './04-quota-editor.js';
9
+ export { default as Example5 } from './05-permissions-matrix.js';
10
+ export { metadata as metadata5 } from './05-permissions-matrix.js';
3
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/List/examples/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/List/examples/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,4BAA4B,CAAC"}
@@ -1,3 +1,11 @@
1
1
  export { default as Example1 } from './01-basic.js';
2
2
  export { metadata as metadata1 } from './01-basic.js';
3
+ export { default as Example2 } from './02-review-queue.js';
4
+ export { metadata as metadata2 } from './02-review-queue.js';
5
+ export { default as Example3 } from './03-notification-rules.js';
6
+ export { metadata as metadata3 } from './03-notification-rules.js';
7
+ export { default as Example4 } from './04-quota-editor.js';
8
+ export { metadata as metadata4 } from './04-quota-editor.js';
9
+ export { default as Example5 } from './05-permissions-matrix.js';
10
+ export { metadata as metadata5 } from './05-permissions-matrix.js';
3
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/List/examples/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/List/examples/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,4BAA4B,CAAC"}
@@ -3,5 +3,25 @@
3
3
  "title": "Basic List",
4
4
  "description": "A simple list displaying basic items with selection and interaction support.",
5
5
  "code": "import { List } from 'ui-lab-components';\nimport { Button } from 'ui-lab-components';\n\nexport default function Example() {\n return (\n <List aria-label=\"Basic List Example\">\n <List.Header>\n <h2>Items</h2>\n </List.Header>\n <List.Item interactive>Item One</List.Item>\n <List.Item interactive>Item Two</List.Item>\n <List.Item interactive>Item Three</List.Item>\n <List.Footer align=\"center\">\n <Button variant=\"primary\" size=\"sm\">\n Load More\n </Button>\n </List.Footer>\n </List>\n );\n}"
6
+ },
7
+ "02-review-queue": {
8
+ "title": "Review Queue",
9
+ "description": "A compact checklist for work that can be completed directly from each row.",
10
+ "code": "\"use client\";\n\nimport { useState } from \"react\";\nimport { List } from \"ui-lab-components\";\n\nconst reviewItems = [\n { id: \"legal\", title: \"Legal review\", desc: \"Updated retention language\" },\n { id: \"security\", title: \"Security review\", desc: \"New access scopes\" },\n { id: \"billing\", title: \"Billing review\", desc: \"Invoice copy changes\" },\n];\n\nexport default function Example() {\n const [checked, setChecked] = useState(() => new Set([\"legal\"]));\n\n const setItem = (id: string, value: boolean) => {\n setChecked((current) => {\n const next = new Set(current);\n value ? next.add(id) : next.delete(id);\n return next;\n });\n };\n\n const toggleItem = (id: string) => {\n setChecked((current) => {\n const next = new Set(current);\n next.has(id) ? next.delete(id) : next.add(id);\n return next;\n });\n };\n\n return (\n <List items={reviewItems} spacing=\"sm\" style={{ width: 320 }}>\n {reviewItems.map((item) => (\n <List.Item key={item.id} value={item.id} interactive onClick={() => toggleItem(item.id)}>\n <List.Checkbox\n aria-label={`Mark ${item.title} reviewed`}\n placement=\"start\"\n checked={checked.has(item.id)}\n onCheckedChange={(value) => setItem(item.id, value)}\n />\n <div className=\"min-w-0 flex-1\">\n <List.Title>{item.title}</List.Title>\n <List.Desc>{item.desc}</List.Desc>\n </div>\n </List.Item>\n ))}\n </List>\n );\n}"
11
+ },
12
+ "03-notification-rules": {
13
+ "title": "Notification Rules",
14
+ "description": "Rows can combine a leading checkbox with a trailing Select action.",
15
+ "code": "\"use client\";\n\nimport { useState } from \"react\";\nimport { List, Select } from \"ui-lab-components\";\n\nconst notificationItems = [\n { id: \"comments\", title: \"Comments\", desc: \"Replies and mentions\" },\n { id: \"deployments\", title: \"Deployments\", desc: \"Preview and production updates\" },\n { id: \"incidents\", title: \"Incidents\", desc: \"Status changes and postmortems\" },\n];\n\nexport default function Example() {\n const [checked, setChecked] = useState(() => new Set([\"comments\", \"incidents\"]));\n const [delivery, setDelivery] = useState<Record<string, string | number | null>>({\n comments: \"digest\",\n deployments: \"email\",\n incidents: \"push\",\n });\n\n const setItem = (id: string, value: boolean) => {\n setChecked((current) => {\n const next = new Set(current);\n value ? next.add(id) : next.delete(id);\n return next;\n });\n };\n\n const toggleItem = (id: string) => {\n setChecked((current) => {\n const next = new Set(current);\n next.has(id) ? next.delete(id) : next.add(id);\n return next;\n });\n };\n\n const setDeliveryMode = (id: string, value: string | number | null) => {\n setDelivery((current) => ({ ...current, [id]: value }));\n };\n\n return (\n <List items={notificationItems} spacing=\"sm\" style={{ width: 400 }}>\n {notificationItems.map((item) => (\n <List.Item key={item.id} value={item.id} interactive onClick={() => toggleItem(item.id)}>\n <List.Checkbox\n aria-label={`Enable ${item.title.toLowerCase()} notifications`}\n placement=\"start\"\n checked={checked.has(item.id)}\n onCheckedChange={(value) => setItem(item.id, value)}\n />\n <div className=\"min-w-0 flex-1\">\n <List.Title>{item.title}</List.Title>\n <List.Desc>{item.desc}</List.Desc>\n </div>\n <List.Select\n selectedKey={delivery[item.id]}\n valueLabel={String(delivery[item.id] ?? \"\")}\n isDisabled={!checked.has(item.id)}\n onSelectionChange={(value) => setDeliveryMode(item.id, value)}\n >\n <Select.Trigger>\n <Select.Value placeholder=\"Mode\" />\n </Select.Trigger>\n <Select.Content>\n <Select.List>\n <Select.Item value=\"email\">Email</Select.Item>\n <Select.Item value=\"digest\">Digest</Select.Item>\n <Select.Item value=\"push\">Push</Select.Item>\n </Select.List>\n </Select.Content>\n </List.Select>\n </List.Item>\n ))}\n </List>\n );\n}"
16
+ },
17
+ "04-quota-editor": {
18
+ "title": "Quota Editor",
19
+ "description": "Inline inputs work as row actions without taking over the List primitive.",
20
+ "code": "\"use client\";\n\nimport { useState } from \"react\";\nimport { List } from \"ui-lab-components\";\n\nconst quotaItems = [\n { id: \"seats\", title: \"Seats\", desc: \"Maximum workspace members\" },\n { id: \"projects\", title: \"Projects\", desc: \"Active projects per workspace\" },\n { id: \"tokens\", title: \"Tokens\", desc: \"Monthly API token budget\" },\n];\n\nexport default function Example() {\n const [checked, setChecked] = useState(() => new Set([\"seats\", \"projects\"]));\n const [limits, setLimits] = useState<Record<string, string>>({\n seats: \"24\",\n projects: \"12\",\n tokens: \"50000\",\n });\n\n const setItem = (id: string, value: boolean) => {\n setChecked((current) => {\n const next = new Set(current);\n value ? next.add(id) : next.delete(id);\n return next;\n });\n };\n\n const toggleItem = (id: string) => {\n setChecked((current) => {\n const next = new Set(current);\n next.has(id) ? next.delete(id) : next.add(id);\n return next;\n });\n };\n\n const setLimit = (id: string, value: string) => {\n setLimits((current) => ({ ...current, [id]: value }));\n };\n\n return (\n <List items={quotaItems} spacing=\"sm\" style={{ width: 396 }}>\n {quotaItems.map((item) => (\n <List.Item key={item.id} value={item.id} interactive onClick={() => toggleItem(item.id)}>\n <List.Checkbox\n aria-label={`Enable ${item.title.toLowerCase()} limit`}\n placement=\"start\"\n checked={checked.has(item.id)}\n onCheckedChange={(value) => setItem(item.id, value)}\n />\n <div className=\"min-w-0 flex-1\">\n <List.Title>{item.title}</List.Title>\n <List.Desc>{item.desc}</List.Desc>\n </div>\n <List.Input\n aria-label={`${item.title} limit`}\n type=\"number\"\n value={limits[item.id]}\n disabled={!checked.has(item.id)}\n onChange={(event) => setLimit(item.id, event.currentTarget.value)}\n className=\"w-24\"\n />\n </List.Item>\n ))}\n </List>\n );\n}"
21
+ },
22
+ "05-permissions-matrix": {
23
+ "title": "Permissions Matrix",
24
+ "description": "A parent checkbox can summarize rows that also expose per-row Select controls.",
25
+ "code": "\"use client\";\n\nimport { useMemo, useState } from \"react\";\nimport { List, Select } from \"ui-lab-components\";\n\nconst permissionItems = [\n { id: \"members\", title: \"Members\", desc: \"Invite and remove workspace members\" },\n { id: \"billing\", title: \"Billing\", desc: \"Update plan, seats, and invoices\" },\n { id: \"tokens\", title: \"Tokens\", desc: \"Issue scoped API credentials\" },\n];\n\nexport default function Example() {\n const rows = useMemo(() => [{ id: \"all\", title: \"All permissions\" }, ...permissionItems], []);\n const [checked, setChecked] = useState(() => new Set([\"members\", \"tokens\"]));\n const [level, setLevel] = useState<Record<string, string | number | null>>({\n members: \"edit\",\n billing: \"view\",\n tokens: \"edit\",\n });\n const allChecked = checked.size === permissionItems.length;\n const isIndeterminate = checked.size > 0 && !allChecked;\n\n const setItem = (id: string, value: boolean) => {\n setChecked((current) => {\n const next = new Set(current);\n value ? next.add(id) : next.delete(id);\n return next;\n });\n };\n\n const setAll = (value: boolean) => {\n permissionItems.forEach((item) => setItem(item.id, value));\n };\n\n const setPermissionLevel = (id: string, value: string | number | null) => {\n setLevel((current) => ({ ...current, [id]: value }));\n };\n\n return (\n <List items={rows} spacing=\"sm\" style={{ width: 420 }}>\n <List.Item value=\"all\" interactive onClick={() => setAll(!allChecked)}>\n <List.Checkbox\n aria-label=\"Toggle all permissions\"\n placement=\"start\"\n checked={allChecked}\n isIndeterminate={isIndeterminate}\n onCheckedChange={setAll}\n />\n <List.Title>All permissions</List.Title>\n </List.Item>\n <List.Divider />\n {permissionItems.map((item) => (\n <List.Item key={item.id} value={item.id} interactive onClick={() => setItem(item.id, !checked.has(item.id))}>\n <div className=\"w-5 flex-shrink-0\" />\n <List.Checkbox\n aria-label={`Allow ${item.title.toLowerCase()}`}\n placement=\"start\"\n checked={checked.has(item.id)}\n onCheckedChange={(value) => setItem(item.id, value)}\n />\n <div className=\"min-w-0 flex-1\">\n <List.Title>{item.title}</List.Title>\n <List.Desc>{item.desc}</List.Desc>\n </div>\n <List.Select\n selectedKey={level[item.id]}\n valueLabel={String(level[item.id] ?? \"\")}\n isDisabled={!checked.has(item.id)}\n onSelectionChange={(value) => setPermissionLevel(item.id, value)}\n >\n <Select.Trigger>\n <Select.Value placeholder=\"Access\" />\n </Select.Trigger>\n <Select.Content>\n <Select.List>\n <Select.Item value=\"view\">View</Select.Item>\n <Select.Item value=\"edit\">Edit</Select.Item>\n <Select.Item value=\"admin\">Admin</Select.Item>\n </Select.List>\n </Select.Content>\n </List.Select>\n </List.Item>\n ))}\n </List>\n );\n}"
6
26
  }
7
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/List/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA0B1C,eAAO,MAAM,UAAU,EAAE,eA8KxB,CAAC;AAEF,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/List/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAkC1C,eAAO,MAAM,UAAU,EAAE,eA8KxB,CAAC;AAEF,cAAc,qBAAqB,CAAC"}
@@ -1,10 +1,18 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { List, Button } from 'ui-lab-components';
3
3
  import Example1, { metadata as metadata1 } from './examples/01-basic.js';
4
+ import Example2, { metadata as metadata2 } from './examples/02-review-queue.js';
5
+ import Example3, { metadata as metadata3 } from './examples/03-notification-rules.js';
6
+ import Example4, { metadata as metadata4 } from './examples/04-quota-editor.js';
7
+ import Example5, { metadata as metadata5 } from './examples/05-permissions-matrix.js';
4
8
  import examplesJson from './examples.json' with { type: 'json' };
5
9
  import { loadComponentExamples } from '../../utils/load-component-examples.js';
6
10
  const examplesData = [
7
11
  { id: '01-basic', Component: Example1, metadata: metadata1 },
12
+ { id: '02-review-queue', Component: Example2, metadata: metadata2 },
13
+ { id: '03-notification-rules', Component: Example3, metadata: metadata3 },
14
+ { id: '04-quota-editor', Component: Example4, metadata: metadata4 },
15
+ { id: '05-permissions-matrix', Component: Example5, metadata: metadata5 },
8
16
  ];
9
17
  const basicListCode = `import { List, Button } from "ui-lab-components";
10
18
 
@@ -92,7 +100,7 @@ export function Example() {
92
100
  </List.Header>
93
101
  <List.Item interactive>
94
102
  <p>Item with actions</p>
95
- <List.ActionGroup justify="space-between">
103
+ <List.ActionGroup justify="between">
96
104
  <button>👍 Like</button>
97
105
  <button>💬 Reply</button>
98
106
  </List.ActionGroup>
@@ -100,7 +108,7 @@ export function Example() {
100
108
  </List>
101
109
  );
102
110
  }`,
103
- preview: (_jsxs(List, { "aria-label": "Actions List", children: [_jsx(List.Header, { children: _jsx("h3", { children: "Feed" }) }), _jsxs(List.Item, { interactive: true, children: [_jsx("p", { className: "text-sm text-foreground-300", children: "Item with actions" }), _jsxs(List.ActionGroup, { justify: "space-between", children: [_jsx("button", { className: "text-sm text-foreground-300 hover:text-foreground-100 transition-colors", children: "\uD83D\uDC4D Like" }), _jsx("button", { className: "text-sm text-foreground-300 hover:text-foreground-100 transition-colors", children: "\uD83D\uDCAC Reply" })] })] })] })),
111
+ preview: (_jsxs(List, { "aria-label": "Actions List", children: [_jsx(List.Header, { children: _jsx("h3", { children: "Feed" }) }), _jsxs(List.Item, { interactive: true, children: [_jsx("p", { className: "text-sm text-foreground-300", children: "Item with actions" }), _jsxs(List.ActionGroup, { justify: "between", children: [_jsx("button", { className: "text-sm text-foreground-300 hover:text-foreground-100 transition-colors", children: "\uD83D\uDC4D Like" }), _jsx("button", { className: "text-sm text-foreground-300 hover:text-foreground-100 transition-colors", children: "\uD83D\uDCAC Reply" })] })] })] })),
104
112
  },
105
113
  {
106
114
  id: 'sticky-header',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/List/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,QAAQ,EAAE,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,YAAY,MAAM,iBAAiB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAE/E,MAAM,YAAY,GAAG;IACnB,EAAE,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE;CAC7D,CAAC;AAEF,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;EAepB,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAoB;IACzC,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,gFAAgF;IAC7F,QAAQ,EAAE,CACR,eAAK,SAAS,EAAC,+BAA+B,aAC5C,uOAII,EACJ,wLAGI,IACA,CACP;IACD,QAAQ,EAAE;QACR;YACE,EAAE,EAAE,SAAS;YACb,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,yCAAyC;YACtD,IAAI,EAAE,aAAa;YACnB,OAAO,EAAE,CACP,MAAC,IAAI,kBAAY,cAAc,aAC7B,KAAC,IAAI,CAAC,MAAM,cACV,iCAAc,GACF,EACd,KAAC,IAAI,CAAC,IAAI,IAAC,WAAW,+BAAqB,EAC3C,KAAC,IAAI,CAAC,IAAI,IAAC,WAAW,+BAAqB,EAC3C,KAAC,IAAI,CAAC,IAAI,IAAC,WAAW,iCAAuB,EAC7C,KAAC,IAAI,CAAC,MAAM,I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ACI,OAAO,EAAE,CACP,MAAC,IAAI,kBAAY,cAAc,aAC7B,KAAC,IAAI,CAAC,MAAM,cACV,gCAAa,GACD,EACd,MAAC,IAAI,CAAC,IAAI,IAAC,WAAW,mBACpB,YAAG,SAAS,EAAC,6BAA6B,kCAAsB,EAChE,MAAC,IAAI,CAAC,WAAW,IAAC,OAAO,EAAC,SAAS,aACjC,iBAAQ,SAAS,EAAC,yEAAyE,kCAAiB,EAC5G,iBAAQ,SAAS,EAAC,yEAAyE,mCAAkB,IAC5F,IACT,IACP,CACR;SACF;QACD;YACE,EAAE,EAAE,eAAe;YACnB,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,+DAA+D;YAC5E,IAAI,EAAE;;;;;;;;;;;;;;;;EAgBV;YACI,OAAO,EAAE,CACP,cAAK,SAAS,EAAC,2DAA2D,YACxE,MAAC,IAAI,kBAAY,aAAa,aAC5B,KAAC,IAAI,CAAC,MAAM,IAAC,MAAM,kBACjB,iCAAc,GACF,EACd,KAAC,IAAI,CAAC,IAAI,IAAC,WAAW,+BAAqB,EAC3C,KAAC,IAAI,CAAC,IAAI,IAAC,WAAW,+BAAqB,EAC3C,KAAC,IAAI,CAAC,IAAI,IAAC,WAAW,iCAAuB,EAC7C,KAAC,IAAI,CAAC,IAAI,IAAC,WAAW,gCAAsB,IACvC,GACH,CACP;SACF;KACF;CACF,CAAC;AAEF,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const metadata: {
2
+ title: string;
3
+ description: string;
4
+ };
5
+ export default function Example(): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=03-toolbar-dropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"03-toolbar-dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Menu/examples/03-toolbar-dropdown.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;CAGpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO,4CA0B9B"}
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Menu, Button } from "ui-lab-components";
3
+ import { FaChevronDown } from "react-icons/fa6";
4
+ export const metadata = {
5
+ title: "Toolbar Dropdown",
6
+ description: "Dropdown menu of actions with keyboard shortcuts and a disabled item.",
7
+ };
8
+ export default function Example() {
9
+ return (_jsxs(Menu, { type: "pop-over", children: [_jsx(Menu.Trigger, { children: _jsxs(Button, { variant: "ghost", children: ["File ", _jsx(FaChevronDown, { className: "w-3 h-3 ml-1" })] }) }), _jsxs(Menu.Content, { align: "start", children: [_jsxs(Menu.Item, { onSelect: () => { }, children: ["New file", _jsx(Menu.Shortcut, { children: "\u2318N" })] }), _jsxs(Menu.Item, { onSelect: () => { }, children: ["Open\u2026", _jsx(Menu.Shortcut, { children: "\u2318O" })] }), _jsxs(Menu.Item, { onSelect: () => { }, children: ["Save", _jsx(Menu.Shortcut, { children: "\u2318S" })] }), _jsx(Menu.Separator, {}), _jsx(Menu.Item, { disabled: true, children: "Recent files" })] })] }));
10
+ }
11
+ //# sourceMappingURL=03-toolbar-dropdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"03-toolbar-dropdown.js","sourceRoot":"","sources":["../../../../src/components/Menu/examples/03-toolbar-dropdown.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,uEAAuE;CACrF,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO;IAC7B,OAAO,CACL,MAAC,IAAI,IAAC,IAAI,EAAC,UAAU,aACnB,KAAC,IAAI,CAAC,OAAO,cACX,MAAC,MAAM,IAAC,OAAO,EAAC,OAAO,sBAChB,KAAC,aAAa,IAAC,SAAS,EAAC,cAAc,GAAG,IACxC,GACI,EACf,MAAC,IAAI,CAAC,OAAO,IAAC,KAAK,EAAC,OAAO,aACzB,MAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,yBAE3B,KAAC,IAAI,CAAC,QAAQ,0BAAmB,IACvB,EACZ,MAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,2BAE3B,KAAC,IAAI,CAAC,QAAQ,0BAAmB,IACvB,EACZ,MAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,qBAE3B,KAAC,IAAI,CAAC,QAAQ,0BAAmB,IACvB,EACZ,KAAC,IAAI,CAAC,SAAS,KAAG,EAClB,KAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,mCAAyB,IAC/B,IACV,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const metadata: {
2
+ title: string;
3
+ description: string;
4
+ };
5
+ export default function Example(): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=04-table-row-actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"04-table-row-actions.d.ts","sourceRoot":"","sources":["../../../../src/components/Menu/examples/04-table-row-actions.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;CAGpB,CAAC;AAQF,MAAM,CAAC,OAAO,UAAU,OAAO,4CA6C9B"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Menu, Button } from "ui-lab-components";
3
+ import { FaEllipsis } from "react-icons/fa6";
4
+ export const metadata = {
5
+ title: "Table Row Actions",
6
+ description: "Per-row overflow menu in a table, with a destructive action separated from neutral ones.",
7
+ };
8
+ const rows = [
9
+ { id: "doc_1", name: "Q3 roadmap", updated: "2h ago" },
10
+ { id: "doc_2", name: "Pricing review", updated: "yesterday" },
11
+ { id: "doc_3", name: "Hiring plan", updated: "3 days ago" },
12
+ ];
13
+ export default function Example() {
14
+ return (_jsxs("table", { className: "w-full text-sm border-collapse", children: [_jsx("thead", { children: _jsxs("tr", { className: "border-b border-background-700", children: [_jsx("th", { className: "text-left py-2 px-3 font-medium text-foreground-200", children: "Document" }), _jsx("th", { className: "text-left py-2 px-3 font-medium text-foreground-200", children: "Updated" }), _jsx("th", { className: "py-2 px-3" })] }) }), _jsx("tbody", { children: rows.map((row) => (_jsxs("tr", { className: "border-b border-background-700 last:border-0", children: [_jsx("td", { className: "py-2 px-3", children: row.name }), _jsx("td", { className: "py-2 px-3 text-foreground-400", children: row.updated }), _jsx("td", { className: "py-2 px-3 text-right", children: _jsxs(Menu, { type: "pop-over", children: [_jsx(Menu.Trigger, { children: _jsx(Button, { icon: _jsx(FaEllipsis, {}), size: "icon", variant: "ghost", styles: "p-2", "aria-label": `Actions for ${row.name}` }) }), _jsxs(Menu.Content, { align: "end", children: [_jsx(Menu.Item, { onSelect: () => { }, children: "Open" }), _jsx(Menu.Item, { onSelect: () => { }, children: "Rename" }), _jsx(Menu.Item, { onSelect: () => { }, children: "Duplicate" }), _jsx(Menu.Separator, {}), _jsx(Menu.Item, { onSelect: () => { }, styles: { root: "text-destructive" }, children: "Delete" })] })] }) })] }, row.id))) })] }));
15
+ }
16
+ //# sourceMappingURL=04-table-row-actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"04-table-row-actions.js","sourceRoot":"","sources":["../../../../src/components/Menu/examples/04-table-row-actions.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,0FAA0F;CACxG,CAAC;AAEF,MAAM,IAAI,GAAG;IACX,EAAE,EAAE,EAAE,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IAAI,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,0BAAuB,EACpD,KAAC,IAAI,CAAC,SAAS,KAAG,EAClB,KAAC,IAAI,CAAC,IAAI,IACR,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,EAClB,MAAM,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,uBAG1B,IACC,IACV,GACJ,KA3BE,GAAG,CAAC,EAAE,CA4BV,CACN,CAAC,GACI,IACF,CACT,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const metadata: {
2
+ title: string;
3
+ description: string;
4
+ };
5
+ export default function Example(): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=05-context-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"05-context-menu.d.ts","sourceRoot":"","sources":["../../../../src/components/Menu/examples/05-context-menu.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;CAGpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO,4CA4B9B"}
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Menu } from "ui-lab-components";
3
+ export const metadata = {
4
+ title: "Context Menu",
5
+ description: "Right-click anywhere in the surface to open the menu at the cursor position.",
6
+ };
7
+ export default function Example() {
8
+ return (_jsxs(Menu, { type: "context-menu", children: [_jsx(Menu.Trigger, { children: _jsx("div", { className: "flex items-center justify-center w-80 h-32 border border-dashed border-background-700 rounded-sm text-sm text-foreground-400 select-none", children: "Right-click anywhere in this area" }) }), _jsxs(Menu.Content, { children: [_jsxs(Menu.Item, { onSelect: () => { }, children: ["Cut", _jsx(Menu.Shortcut, { children: "\u2318X" })] }), _jsxs(Menu.Item, { onSelect: () => { }, children: ["Copy", _jsx(Menu.Shortcut, { children: "\u2318C" })] }), _jsxs(Menu.Item, { onSelect: () => { }, children: ["Paste", _jsx(Menu.Shortcut, { children: "\u2318V" })] }), _jsx(Menu.Separator, {}), _jsx(Menu.Item, { onSelect: () => { }, styles: { root: "text-destructive" }, children: "Delete" })] })] }));
9
+ }
10
+ //# sourceMappingURL=05-context-menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"05-context-menu.js","sourceRoot":"","sources":["../../../../src/components/Menu/examples/05-context-menu.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,8EAA8E;CAC5F,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO;IAC7B,OAAO,CACL,MAAC,IAAI,IAAC,IAAI,EAAC,cAAc,aACvB,KAAC,IAAI,CAAC,OAAO,cACX,cAAK,SAAS,EAAC,0IAA0I,kDAEnJ,GACO,EACf,MAAC,IAAI,CAAC,OAAO,eACX,MAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,oBAE3B,KAAC,IAAI,CAAC,QAAQ,0BAAmB,IACvB,EACZ,MAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,qBAE3B,KAAC,IAAI,CAAC,QAAQ,0BAAmB,IACvB,EACZ,MAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,sBAE3B,KAAC,IAAI,CAAC,QAAQ,0BAAmB,IACvB,EACZ,KAAC,IAAI,CAAC,SAAS,KAAG,EAClB,KAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,uBAEvD,IACC,IACV,CACR,CAAC;AACJ,CAAC"}