@lushly-dev/violet-elements 0.0.0-stage → 0.2.0-preview.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (426) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +262 -2
  3. package/custom-elements.json +42309 -0
  4. package/dist/accordion/violet-accordion.d.ts +24 -0
  5. package/dist/accordion/violet-accordion.js +133 -0
  6. package/dist/accordion/violet-accordion.js.map +1 -0
  7. package/dist/accordion-item/violet-accordion-item.d.ts +27 -0
  8. package/dist/accordion-item/violet-accordion-item.js +228 -0
  9. package/dist/accordion-item/violet-accordion-item.js.map +1 -0
  10. package/dist/alert/violet-alert.d.ts +44 -0
  11. package/dist/alert/violet-alert.js +346 -0
  12. package/dist/alert/violet-alert.js.map +1 -0
  13. package/dist/badge/violet-badge.d.ts +27 -0
  14. package/dist/badge/violet-badge.js +179 -0
  15. package/dist/badge/violet-badge.js.map +1 -0
  16. package/dist/breadcrumb/violet-breadcrumb.d.ts +20 -0
  17. package/dist/breadcrumb/violet-breadcrumb.js +88 -0
  18. package/dist/breadcrumb/violet-breadcrumb.js.map +1 -0
  19. package/dist/breadcrumb-item/violet-breadcrumb-item.d.ts +20 -0
  20. package/dist/breadcrumb-item/violet-breadcrumb-item.js +130 -0
  21. package/dist/breadcrumb-item/violet-breadcrumb-item.js.map +1 -0
  22. package/dist/button/violet-button.d.ts +76 -0
  23. package/dist/button/violet-button.js +281 -0
  24. package/dist/button/violet-button.js.map +1 -0
  25. package/dist/calendar/violet-calendar.d.ts +59 -0
  26. package/dist/calendar/violet-calendar.js +485 -0
  27. package/dist/calendar/violet-calendar.js.map +1 -0
  28. package/dist/card/violet-card.d.ts +30 -0
  29. package/dist/card/violet-card.js +249 -0
  30. package/dist/card/violet-card.js.map +1 -0
  31. package/dist/carousel/violet-carousel.d.ts +56 -0
  32. package/dist/carousel/violet-carousel.js +600 -0
  33. package/dist/carousel/violet-carousel.js.map +1 -0
  34. package/dist/checkbox/violet-checkbox.d.ts +82 -0
  35. package/dist/checkbox/violet-checkbox.js +465 -0
  36. package/dist/checkbox/violet-checkbox.js.map +1 -0
  37. package/dist/color-picker/violet-color-picker.d.ts +111 -0
  38. package/dist/color-picker/violet-color-picker.js +997 -0
  39. package/dist/color-picker/violet-color-picker.js.map +1 -0
  40. package/dist/color-picker/violet-color-utils.d.ts +21 -0
  41. package/dist/color-picker/violet-color-utils.js +126 -0
  42. package/dist/color-picker/violet-color-utils.js.map +1 -0
  43. package/dist/color-swatch/violet-color-swatch.d.ts +19 -0
  44. package/dist/color-swatch/violet-color-swatch.js +93 -0
  45. package/dist/color-swatch/violet-color-swatch.js.map +1 -0
  46. package/dist/combobox/violet-combobox.d.ts +86 -0
  47. package/dist/combobox/violet-combobox.js +669 -0
  48. package/dist/combobox/violet-combobox.js.map +1 -0
  49. package/dist/conversation/violet-approval-card.d.ts +34 -0
  50. package/dist/conversation/violet-approval-card.js +289 -0
  51. package/dist/conversation/violet-approval-card.js.map +1 -0
  52. package/dist/conversation/violet-chat-composer.d.ts +47 -0
  53. package/dist/conversation/violet-chat-composer.js +308 -0
  54. package/dist/conversation/violet-chat-composer.js.map +1 -0
  55. package/dist/conversation/violet-chat-suggestions.d.ts +21 -0
  56. package/dist/conversation/violet-chat-suggestions.js +159 -0
  57. package/dist/conversation/violet-chat-suggestions.js.map +1 -0
  58. package/dist/conversation/violet-conversation-thread.d.ts +26 -0
  59. package/dist/conversation/violet-conversation-thread.js +207 -0
  60. package/dist/conversation/violet-conversation-thread.js.map +1 -0
  61. package/dist/conversation/violet-message-media.d.ts +38 -0
  62. package/dist/conversation/violet-message-media.js +230 -0
  63. package/dist/conversation/violet-message-media.js.map +1 -0
  64. package/dist/conversation/violet-message-status.d.ts +17 -0
  65. package/dist/conversation/violet-message-status.js +168 -0
  66. package/dist/conversation/violet-message-status.js.map +1 -0
  67. package/dist/conversation/violet-message-text.d.ts +15 -0
  68. package/dist/conversation/violet-message-text.js +83 -0
  69. package/dist/conversation/violet-message-text.js.map +1 -0
  70. package/dist/conversation/violet-message.d.ts +28 -0
  71. package/dist/conversation/violet-message.js +189 -0
  72. package/dist/conversation/violet-message.js.map +1 -0
  73. package/dist/conversation/violet-reasoning-block.d.ts +22 -0
  74. package/dist/conversation/violet-reasoning-block.js +171 -0
  75. package/dist/conversation/violet-reasoning-block.js.map +1 -0
  76. package/dist/conversation/violet-source-citation.d.ts +25 -0
  77. package/dist/conversation/violet-source-citation.js +155 -0
  78. package/dist/conversation/violet-source-citation.js.map +1 -0
  79. package/dist/conversation/violet-tool-call-card.d.ts +37 -0
  80. package/dist/conversation/violet-tool-call-card.js +370 -0
  81. package/dist/conversation/violet-tool-call-card.js.map +1 -0
  82. package/dist/conversation/violet-tool-result-card.d.ts +27 -0
  83. package/dist/conversation/violet-tool-result-card.js +264 -0
  84. package/dist/conversation/violet-tool-result-card.js.map +1 -0
  85. package/dist/data-grid/violet-data-grid-attachment-cell-values.d.ts +15 -0
  86. package/dist/data-grid/violet-data-grid-attachment-cell-values.js +122 -0
  87. package/dist/data-grid/violet-data-grid-attachment-cell-values.js.map +1 -0
  88. package/dist/data-grid/violet-data-grid-attachment-cell.d.ts +79 -0
  89. package/dist/data-grid/violet-data-grid-attachment-cell.js +812 -0
  90. package/dist/data-grid/violet-data-grid-attachment-cell.js.map +1 -0
  91. package/dist/data-grid/violet-data-grid-cell-state.d.ts +20 -0
  92. package/dist/data-grid/violet-data-grid-cell-state.js +68 -0
  93. package/dist/data-grid/violet-data-grid-cell-state.js.map +1 -0
  94. package/dist/data-grid/violet-data-grid-cell-templates.d.ts +28 -0
  95. package/dist/data-grid/violet-data-grid-cell-templates.js +36 -0
  96. package/dist/data-grid/violet-data-grid-cell-templates.js.map +1 -0
  97. package/dist/data-grid/violet-data-grid-clipboard.d.ts +44 -0
  98. package/dist/data-grid/violet-data-grid-clipboard.js +127 -0
  99. package/dist/data-grid/violet-data-grid-clipboard.js.map +1 -0
  100. package/dist/data-grid/violet-data-grid-css.d.ts +7 -0
  101. package/dist/data-grid/violet-data-grid-css.js +20 -0
  102. package/dist/data-grid/violet-data-grid-css.js.map +1 -0
  103. package/dist/data-grid/violet-data-grid-data.d.ts +34 -0
  104. package/dist/data-grid/violet-data-grid-data.js +93 -0
  105. package/dist/data-grid/violet-data-grid-data.js.map +1 -0
  106. package/dist/data-grid/violet-data-grid-editing.d.ts +46 -0
  107. package/dist/data-grid/violet-data-grid-editing.js +75 -0
  108. package/dist/data-grid/violet-data-grid-editing.js.map +1 -0
  109. package/dist/data-grid/violet-data-grid-editor-option-helpers.d.ts +10 -0
  110. package/dist/data-grid/violet-data-grid-editor-option-helpers.js +84 -0
  111. package/dist/data-grid/violet-data-grid-editor-option-helpers.js.map +1 -0
  112. package/dist/data-grid/violet-data-grid-events.d.ts +4 -0
  113. package/dist/data-grid/violet-data-grid-events.js +46 -0
  114. package/dist/data-grid/violet-data-grid-events.js.map +1 -0
  115. package/dist/data-grid/violet-data-grid-fill.d.ts +37 -0
  116. package/dist/data-grid/violet-data-grid-fill.js +155 -0
  117. package/dist/data-grid/violet-data-grid-fill.js.map +1 -0
  118. package/dist/data-grid/violet-data-grid-geometry.d.ts +13 -0
  119. package/dist/data-grid/violet-data-grid-geometry.js +59 -0
  120. package/dist/data-grid/violet-data-grid-geometry.js.map +1 -0
  121. package/dist/data-grid/violet-data-grid-multi-picker-values.d.ts +3 -0
  122. package/dist/data-grid/violet-data-grid-multi-picker-values.js +40 -0
  123. package/dist/data-grid/violet-data-grid-multi-picker-values.js.map +1 -0
  124. package/dist/data-grid/violet-data-grid-multi-picker.d.ts +87 -0
  125. package/dist/data-grid/violet-data-grid-multi-picker.js +789 -0
  126. package/dist/data-grid/violet-data-grid-multi-picker.js.map +1 -0
  127. package/dist/data-grid/violet-data-grid-navigation.d.ts +29 -0
  128. package/dist/data-grid/violet-data-grid-navigation.js +63 -0
  129. package/dist/data-grid/violet-data-grid-navigation.js.map +1 -0
  130. package/dist/data-grid/violet-data-grid-persona-picker-values.d.ts +3 -0
  131. package/dist/data-grid/violet-data-grid-persona-picker-values.js +40 -0
  132. package/dist/data-grid/violet-data-grid-persona-picker-values.js.map +1 -0
  133. package/dist/data-grid/violet-data-grid-persona-picker.d.ts +86 -0
  134. package/dist/data-grid/violet-data-grid-persona-picker.js +840 -0
  135. package/dist/data-grid/violet-data-grid-persona-picker.js.map +1 -0
  136. package/dist/data-grid/violet-data-grid-pill-select.d.ts +65 -0
  137. package/dist/data-grid/violet-data-grid-pill-select.js +635 -0
  138. package/dist/data-grid/violet-data-grid-pill-select.js.map +1 -0
  139. package/dist/data-grid/violet-data-grid-pointer.d.ts +17 -0
  140. package/dist/data-grid/violet-data-grid-pointer.js +45 -0
  141. package/dist/data-grid/violet-data-grid-pointer.js.map +1 -0
  142. package/dist/data-grid/violet-data-grid-presentation.d.ts +142 -0
  143. package/dist/data-grid/violet-data-grid-presentation.js +152 -0
  144. package/dist/data-grid/violet-data-grid-presentation.js.map +1 -0
  145. package/dist/data-grid/violet-data-grid-rating-values.d.ts +3 -0
  146. package/dist/data-grid/violet-data-grid-rating-values.js +30 -0
  147. package/dist/data-grid/violet-data-grid-rating-values.js.map +1 -0
  148. package/dist/data-grid/violet-data-grid-rating.d.ts +39 -0
  149. package/dist/data-grid/violet-data-grid-rating.js +346 -0
  150. package/dist/data-grid/violet-data-grid-rating.js.map +1 -0
  151. package/dist/data-grid/violet-data-grid-reference-picker-values.d.ts +3 -0
  152. package/dist/data-grid/violet-data-grid-reference-picker-values.js +40 -0
  153. package/dist/data-grid/violet-data-grid-reference-picker-values.js.map +1 -0
  154. package/dist/data-grid/violet-data-grid-reference-picker.d.ts +98 -0
  155. package/dist/data-grid/violet-data-grid-reference-picker.js +933 -0
  156. package/dist/data-grid/violet-data-grid-reference-picker.js.map +1 -0
  157. package/dist/data-grid/violet-data-grid-resize.d.ts +36 -0
  158. package/dist/data-grid/violet-data-grid-resize.js +47 -0
  159. package/dist/data-grid/violet-data-grid-resize.js.map +1 -0
  160. package/dist/data-grid/violet-data-grid-selection.d.ts +27 -0
  161. package/dist/data-grid/violet-data-grid-selection.js +88 -0
  162. package/dist/data-grid/violet-data-grid-selection.js.map +1 -0
  163. package/dist/data-grid/violet-data-grid-sizing.d.ts +38 -0
  164. package/dist/data-grid/violet-data-grid-sizing.js +82 -0
  165. package/dist/data-grid/violet-data-grid-sizing.js.map +1 -0
  166. package/dist/data-grid/violet-data-grid-targets.d.ts +5 -0
  167. package/dist/data-grid/violet-data-grid-targets.js +41 -0
  168. package/dist/data-grid/violet-data-grid-targets.js.map +1 -0
  169. package/dist/data-grid/violet-data-grid-values.d.ts +19 -0
  170. package/dist/data-grid/violet-data-grid-values.js +60 -0
  171. package/dist/data-grid/violet-data-grid-values.js.map +1 -0
  172. package/dist/data-grid/violet-data-grid-virtualization.d.ts +31 -0
  173. package/dist/data-grid/violet-data-grid-virtualization.js +41 -0
  174. package/dist/data-grid/violet-data-grid-virtualization.js.map +1 -0
  175. package/dist/data-grid/violet-data-grid.d.ts +590 -0
  176. package/dist/data-grid/violet-data-grid.js +2998 -0
  177. package/dist/data-grid/violet-data-grid.js.map +1 -0
  178. package/dist/data-grid/violet-data-grid.styles.d.ts +1 -0
  179. package/dist/data-grid/violet-data-grid.styles.js +638 -0
  180. package/dist/data-grid/violet-data-grid.styles.js.map +1 -0
  181. package/dist/date-picker/violet-date-picker.d.ts +90 -0
  182. package/dist/date-picker/violet-date-picker.js +624 -0
  183. package/dist/date-picker/violet-date-picker.js.map +1 -0
  184. package/dist/date-range-picker/violet-date-range-picker.d.ts +64 -0
  185. package/dist/date-range-picker/violet-date-range-picker.js +470 -0
  186. package/dist/date-range-picker/violet-date-range-picker.js.map +1 -0
  187. package/dist/date-time/violet-date-utils.d.ts +50 -0
  188. package/dist/date-time/violet-date-utils.js +176 -0
  189. package/dist/date-time/violet-date-utils.js.map +1 -0
  190. package/dist/dialog/violet-dialog.d.ts +53 -0
  191. package/dist/dialog/violet-dialog.js +439 -0
  192. package/dist/dialog/violet-dialog.js.map +1 -0
  193. package/dist/divider/violet-divider.d.ts +15 -0
  194. package/dist/divider/violet-divider.js +88 -0
  195. package/dist/divider/violet-divider.js.map +1 -0
  196. package/dist/empty-state/violet-empty-state.d.ts +31 -0
  197. package/dist/empty-state/violet-empty-state.js +182 -0
  198. package/dist/empty-state/violet-empty-state.js.map +1 -0
  199. package/dist/file-explorer/violet-file-explorer.d.ts +164 -0
  200. package/dist/file-explorer/violet-file-explorer.js +1094 -0
  201. package/dist/file-explorer/violet-file-explorer.js.map +1 -0
  202. package/dist/file-upload/violet-file-upload.d.ts +109 -0
  203. package/dist/file-upload/violet-file-upload.js +950 -0
  204. package/dist/file-upload/violet-file-upload.js.map +1 -0
  205. package/dist/foundations/reference-component-set.d.ts +9 -0
  206. package/dist/foundations/reference-component-set.js +107 -0
  207. package/dist/foundations/reference-component-set.js.map +1 -0
  208. package/dist/foundations/token-registry.d.ts +38 -0
  209. package/dist/foundations/token-registry.js +203 -0
  210. package/dist/foundations/token-registry.js.map +1 -0
  211. package/dist/foundations/violet-direction.d.ts +11 -0
  212. package/dist/foundations/violet-direction.js +22 -0
  213. package/dist/foundations/violet-direction.js.map +1 -0
  214. package/dist/foundations/violet-form-disabled.d.ts +25 -0
  215. package/dist/foundations/violet-form-disabled.js +79 -0
  216. package/dist/foundations/violet-form-disabled.js.map +1 -0
  217. package/dist/foundations/violet-safe-url.d.ts +8 -0
  218. package/dist/foundations/violet-safe-url.js +21 -0
  219. package/dist/foundations/violet-safe-url.js.map +1 -0
  220. package/dist/gantt/violet-gantt-geometry.d.ts +18 -0
  221. package/dist/gantt/violet-gantt-geometry.js +78 -0
  222. package/dist/gantt/violet-gantt-geometry.js.map +1 -0
  223. package/dist/gantt/violet-gantt.d.ts +239 -0
  224. package/dist/gantt/violet-gantt.js +1627 -0
  225. package/dist/gantt/violet-gantt.js.map +1 -0
  226. package/dist/gantt/violet-gantt.styles.d.ts +1 -0
  227. package/dist/gantt/violet-gantt.styles.js +580 -0
  228. package/dist/gantt/violet-gantt.styles.js.map +1 -0
  229. package/dist/icon/generated/icon-sources.d.ts +9 -0
  230. package/dist/icon/generated/icon-sources.js +15 -0
  231. package/dist/icon/generated/icon-sources.js.map +1 -0
  232. package/dist/icon/generated/icons/system-arrow-up.d.ts +8 -0
  233. package/dist/icon/generated/icons/system-arrow-up.js +15 -0
  234. package/dist/icon/generated/icons/system-arrow-up.js.map +1 -0
  235. package/dist/icon/generated/icons/system-attach.d.ts +8 -0
  236. package/dist/icon/generated/icons/system-attach.js +15 -0
  237. package/dist/icon/generated/icons/system-attach.js.map +1 -0
  238. package/dist/icon/generated/icons/system-calendar.d.ts +8 -0
  239. package/dist/icon/generated/icons/system-calendar.js +15 -0
  240. package/dist/icon/generated/icons/system-calendar.js.map +1 -0
  241. package/dist/icon/generated/icons/system-checkmark.d.ts +8 -0
  242. package/dist/icon/generated/icons/system-checkmark.js +15 -0
  243. package/dist/icon/generated/icons/system-checkmark.js.map +1 -0
  244. package/dist/icon/generated/icons/system-chevron-right.d.ts +8 -0
  245. package/dist/icon/generated/icons/system-chevron-right.js +15 -0
  246. package/dist/icon/generated/icons/system-chevron-right.js.map +1 -0
  247. package/dist/icon/generated/icons/system-clock.d.ts +8 -0
  248. package/dist/icon/generated/icons/system-clock.js +15 -0
  249. package/dist/icon/generated/icons/system-clock.js.map +1 -0
  250. package/dist/icon/generated/icons/system-close.d.ts +8 -0
  251. package/dist/icon/generated/icons/system-close.js +15 -0
  252. package/dist/icon/generated/icons/system-close.js.map +1 -0
  253. package/dist/icon/generated/icons/system-dismiss.d.ts +8 -0
  254. package/dist/icon/generated/icons/system-dismiss.js +15 -0
  255. package/dist/icon/generated/icons/system-dismiss.js.map +1 -0
  256. package/dist/icon/generated/icons/system-document.d.ts +8 -0
  257. package/dist/icon/generated/icons/system-document.js +15 -0
  258. package/dist/icon/generated/icons/system-document.js.map +1 -0
  259. package/dist/icon/generated/icons/system-folder.d.ts +8 -0
  260. package/dist/icon/generated/icons/system-folder.js +15 -0
  261. package/dist/icon/generated/icons/system-folder.js.map +1 -0
  262. package/dist/icon/generated/icons/system-search.d.ts +8 -0
  263. package/dist/icon/generated/icons/system-search.js +15 -0
  264. package/dist/icon/generated/icons/system-search.js.map +1 -0
  265. package/dist/icon/generated/icons/system-settings.d.ts +8 -0
  266. package/dist/icon/generated/icons/system-settings.js +15 -0
  267. package/dist/icon/generated/icons/system-settings.js.map +1 -0
  268. package/dist/icon/generated/icons/system-sort-ascending.d.ts +8 -0
  269. package/dist/icon/generated/icons/system-sort-ascending.js +15 -0
  270. package/dist/icon/generated/icons/system-sort-ascending.js.map +1 -0
  271. package/dist/icon/generated/icons/system-sort-descending.d.ts +8 -0
  272. package/dist/icon/generated/icons/system-sort-descending.js +15 -0
  273. package/dist/icon/generated/icons/system-sort-descending.js.map +1 -0
  274. package/dist/icon/generated/icons/system-stop.d.ts +8 -0
  275. package/dist/icon/generated/icons/system-stop.js +15 -0
  276. package/dist/icon/generated/icons/system-stop.js.map +1 -0
  277. package/dist/icon/generated/icons/system-warning.d.ts +8 -0
  278. package/dist/icon/generated/icons/system-warning.js +15 -0
  279. package/dist/icon/generated/icons/system-warning.js.map +1 -0
  280. package/dist/icon/generated/index.d.ts +17 -0
  281. package/dist/icon/generated/index.js +22 -0
  282. package/dist/icon/generated/index.js.map +1 -0
  283. package/dist/icon/icon-registry.d.ts +20 -0
  284. package/dist/icon/icon-registry.js +22 -0
  285. package/dist/icon/icon-registry.js.map +1 -0
  286. package/dist/icon/violet-icon.d.ts +22 -0
  287. package/dist/icon/violet-icon.js +75 -0
  288. package/dist/icon/violet-icon.js.map +1 -0
  289. package/dist/icon-button/violet-icon-button.d.ts +29 -0
  290. package/dist/icon-button/violet-icon-button.js +193 -0
  291. package/dist/icon-button/violet-icon-button.js.map +1 -0
  292. package/dist/image/violet-image.d.ts +33 -0
  293. package/dist/image/violet-image.js +215 -0
  294. package/dist/image/violet-image.js.map +1 -0
  295. package/dist/index.d.ts +86 -0
  296. package/dist/index.js +87 -0
  297. package/dist/index.js.map +1 -0
  298. package/dist/listbox/violet-listbox.d.ts +41 -0
  299. package/dist/listbox/violet-listbox.js +323 -0
  300. package/dist/listbox/violet-listbox.js.map +1 -0
  301. package/dist/listbox/violet-selection-helpers.d.ts +9 -0
  302. package/dist/listbox/violet-selection-helpers.js +52 -0
  303. package/dist/listbox/violet-selection-helpers.js.map +1 -0
  304. package/dist/menu/violet-menu-item.d.ts +30 -0
  305. package/dist/menu/violet-menu-item.js +148 -0
  306. package/dist/menu/violet-menu-item.js.map +1 -0
  307. package/dist/menu/violet-menu.d.ts +70 -0
  308. package/dist/menu/violet-menu.js +480 -0
  309. package/dist/menu/violet-menu.js.map +1 -0
  310. package/dist/option/violet-option.d.ts +38 -0
  311. package/dist/option/violet-option.js +258 -0
  312. package/dist/option/violet-option.js.map +1 -0
  313. package/dist/option-group/violet-option-group.d.ts +20 -0
  314. package/dist/option-group/violet-option-group.js +100 -0
  315. package/dist/option-group/violet-option-group.js.map +1 -0
  316. package/dist/pagination/violet-pagination.d.ts +36 -0
  317. package/dist/pagination/violet-pagination.js +356 -0
  318. package/dist/pagination/violet-pagination.js.map +1 -0
  319. package/dist/persona/violet-persona.d.ts +28 -0
  320. package/dist/persona/violet-persona.js +250 -0
  321. package/dist/persona/violet-persona.js.map +1 -0
  322. package/dist/popover/violet-popover.d.ts +32 -0
  323. package/dist/popover/violet-popover.js +225 -0
  324. package/dist/popover/violet-popover.js.map +1 -0
  325. package/dist/progress/violet-progress.d.ts +22 -0
  326. package/dist/progress/violet-progress.js +197 -0
  327. package/dist/progress/violet-progress.js.map +1 -0
  328. package/dist/radio/violet-radio.d.ts +59 -0
  329. package/dist/radio/violet-radio.js +402 -0
  330. package/dist/radio/violet-radio.js.map +1 -0
  331. package/dist/radio-group/violet-radio-group.d.ts +89 -0
  332. package/dist/radio-group/violet-radio-group.js +388 -0
  333. package/dist/radio-group/violet-radio-group.js.map +1 -0
  334. package/dist/segment/violet-segment.d.ts +29 -0
  335. package/dist/segment/violet-segment.js +166 -0
  336. package/dist/segment/violet-segment.js.map +1 -0
  337. package/dist/segmented-control/violet-segmented-control.d.ts +64 -0
  338. package/dist/segmented-control/violet-segmented-control.js +349 -0
  339. package/dist/segmented-control/violet-segmented-control.js.map +1 -0
  340. package/dist/select/violet-select.d.ts +84 -0
  341. package/dist/select/violet-select.js +690 -0
  342. package/dist/select/violet-select.js.map +1 -0
  343. package/dist/skeleton/violet-skeleton.d.ts +18 -0
  344. package/dist/skeleton/violet-skeleton.js +150 -0
  345. package/dist/skeleton/violet-skeleton.js.map +1 -0
  346. package/dist/slider/violet-range-slider.d.ts +96 -0
  347. package/dist/slider/violet-range-slider.js +833 -0
  348. package/dist/slider/violet-range-slider.js.map +1 -0
  349. package/dist/slider/violet-slider.d.ts +80 -0
  350. package/dist/slider/violet-slider.js +666 -0
  351. package/dist/slider/violet-slider.js.map +1 -0
  352. package/dist/snackbar/violet-snackbar.d.ts +39 -0
  353. package/dist/snackbar/violet-snackbar.js +310 -0
  354. package/dist/snackbar/violet-snackbar.js.map +1 -0
  355. package/dist/spinner/violet-spinner.d.ts +15 -0
  356. package/dist/spinner/violet-spinner.js +99 -0
  357. package/dist/spinner/violet-spinner.js.map +1 -0
  358. package/dist/switch/violet-switch.d.ts +59 -0
  359. package/dist/switch/violet-switch.js +459 -0
  360. package/dist/switch/violet-switch.js.map +1 -0
  361. package/dist/tab/violet-tab.d.ts +23 -0
  362. package/dist/tab/violet-tab.js +245 -0
  363. package/dist/tab/violet-tab.js.map +1 -0
  364. package/dist/tab-panel/violet-tab-panel.d.ts +10 -0
  365. package/dist/tab-panel/violet-tab-panel.js +46 -0
  366. package/dist/tab-panel/violet-tab-panel.js.map +1 -0
  367. package/dist/tabs/violet-tabs.d.ts +48 -0
  368. package/dist/tabs/violet-tabs.js +398 -0
  369. package/dist/tabs/violet-tabs.js.map +1 -0
  370. package/dist/teaching-tip/violet-teaching-tip.d.ts +48 -0
  371. package/dist/teaching-tip/violet-teaching-tip.js +418 -0
  372. package/dist/teaching-tip/violet-teaching-tip.js.map +1 -0
  373. package/dist/text/violet-text.d.ts +18 -0
  374. package/dist/text/violet-text.js +128 -0
  375. package/dist/text/violet-text.js.map +1 -0
  376. package/dist/text-area/violet-text-area.d.ts +93 -0
  377. package/dist/text-area/violet-text-area.js +323 -0
  378. package/dist/text-area/violet-text-area.js.map +1 -0
  379. package/dist/text-field/violet-text-field.d.ts +132 -0
  380. package/dist/text-field/violet-text-field.js +445 -0
  381. package/dist/text-field/violet-text-field.js.map +1 -0
  382. package/dist/theme/generated/violet-theme-presets.generated.d.ts +9 -0
  383. package/dist/theme/generated/violet-theme-presets.generated.js +9 -0
  384. package/dist/theme/generated/violet-theme-presets.generated.js.map +1 -0
  385. package/dist/theme/generated/violet-theme.generated.d.ts +1048 -0
  386. package/dist/theme/generated/violet-theme.generated.js +362 -0
  387. package/dist/theme/generated/violet-theme.generated.js.map +1 -0
  388. package/dist/theme/index.d.ts +4 -0
  389. package/dist/theme/index.js +7 -0
  390. package/dist/theme/index.js.map +1 -0
  391. package/dist/theme/violet-theme-builtin.d.ts +14 -0
  392. package/dist/theme/violet-theme-builtin.js +19 -0
  393. package/dist/theme/violet-theme-builtin.js.map +1 -0
  394. package/dist/theme/violet-theme-css.d.ts +77 -0
  395. package/dist/theme/violet-theme-css.js +154 -0
  396. package/dist/theme/violet-theme-css.js.map +1 -0
  397. package/dist/theme/violet-theme-runtime.d.ts +72 -0
  398. package/dist/theme/violet-theme-runtime.js +221 -0
  399. package/dist/theme/violet-theme-runtime.js.map +1 -0
  400. package/dist/theme/violet-theme.d.ts +22 -0
  401. package/dist/theme/violet-theme.js +60 -0
  402. package/dist/theme/violet-theme.js.map +1 -0
  403. package/dist/theme/violet-token-defaults.d.ts +4 -0
  404. package/dist/theme/violet-token-defaults.js +198 -0
  405. package/dist/theme/violet-token-defaults.js.map +1 -0
  406. package/dist/time-picker/violet-time-picker.d.ts +59 -0
  407. package/dist/time-picker/violet-time-picker.js +369 -0
  408. package/dist/time-picker/violet-time-picker.js.map +1 -0
  409. package/dist/toast/violet-toast.d.ts +50 -0
  410. package/dist/toast/violet-toast.js +395 -0
  411. package/dist/toast/violet-toast.js.map +1 -0
  412. package/dist/tooltip/violet-tooltip.d.ts +34 -0
  413. package/dist/tooltip/violet-tooltip.js +387 -0
  414. package/dist/tooltip/violet-tooltip.js.map +1 -0
  415. package/dist/tree/violet-tree.d.ts +44 -0
  416. package/dist/tree/violet-tree.js +451 -0
  417. package/dist/tree/violet-tree.js.map +1 -0
  418. package/dist/tree-item/violet-tree-item.d.ts +49 -0
  419. package/dist/tree-item/violet-tree-item.js +359 -0
  420. package/dist/tree-item/violet-tree-item.js.map +1 -0
  421. package/package.json +78 -3
  422. package/tokens/interface.json +364 -0
  423. package/tokens/master-semantic.tokens.jsonc +7 -0
  424. package/tokens/raw-palette.proposal.jsonc +159 -0
  425. package/tokens/theme-presets.jsonc +7 -0
  426. package/tokens/violet-theme.export.json +1392 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Lushly Dev
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,263 @@
1
- # Temporary Holding Version
1
+ # Violet Elements
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ > Reusable Violet web components for FAST-AF.
4
+
5
+ This package is the home for reusable platform components built on FAST-AF and Violet semantics.
6
+
7
+ ## Scope
8
+
9
+ `@lushly-dev/violet-elements` is for:
10
+
11
+ 1. Reusable primitives
12
+ 2. Reference-grade composite components
13
+ 3. Components intended to be shared across multiple projects
14
+
15
+ Examples:
16
+
17
+ - buttons
18
+ - fields and form primitives
19
+ - overlays and menus
20
+ - tables and data grids
21
+ - reusable layout/surface primitives
22
+
23
+ ## Non-Goals
24
+
25
+ This package is **not** for:
26
+
27
+ - Lushly-specific product components
28
+ - domain composites tied to one application
29
+ - page/shell components for a single product
30
+
31
+ Those belong in the product repo.
32
+
33
+ ## Boundary Rules
34
+
35
+ - `violet-*` tags are reusable platform components.
36
+ - Product tags such as `lushly-*` should not be added here.
37
+ - This package may depend on FAST-AF runtime packages.
38
+ - This package must not depend on product repositories.
39
+
40
+ ## Direction
41
+
42
+ This package is the preferred destination for new reusable components.
43
+
44
+ The older `packages/components` package remains available as a Fluent-era legacy/reference layer, but it is not the golden path for new platform work.
45
+
46
+ ## Package Entry Points
47
+
48
+ ```ts
49
+ // Registers every Violet element and exports their classes and types.
50
+ import "@lushly-dev/violet-elements";
51
+ ```
52
+
53
+ - `@lushly-dev/violet-elements/custom-elements.json` is the Custom Elements Manifest (also referenced by the `customElements` field).
54
+ - `@lushly-dev/violet-elements/tokens/*` exposes the token sources: `tokens/interface.json`, the custom properties the components read, and `tokens/violet-theme.export.json`, the built-in default theme.
55
+ - `@lushly-dev/violet-elements/theme-css` is the Node-safe theme-set helpers (`findVioletThemeSetGaps` and the types), side-effect free; see [Runtime Theme](#runtime-theme).
56
+ - Element modules register themselves when imported, so the package declares `sideEffects: true`.
57
+
58
+ ## Storybook Review
59
+
60
+ Reusable components in this package should be reviewed in the root Storybook 10
61
+ workspace before they are treated as reference-grade.
62
+
63
+ - Run `pnpm storybook` from the repo root.
64
+ - New components should include co-located `*.stories.ts` files.
65
+ - Stories are required as part of component creation, not a follow-up task.
66
+
67
+ ## The Token Interface
68
+
69
+ The components read semantic tokens as CSS custom properties (`color.surface.page` is
70
+ `--color-surface-page`), each with a literal fallback. This package owns the list:
71
+ [tokens/interface.json](./tokens/interface.json), published as
72
+ `@lushly-dev/violet-elements/tokens/interface.json`, names every custom property a component
73
+ reads, by token id, with its type:
74
+
75
+ ```json
76
+ {
77
+ "contractVersion": 1,
78
+ "package": "@lushly-dev/violet-elements",
79
+ "tokens": {
80
+ "color.surface.page": { "property": "--color-surface-page", "type": "color" },
81
+ "font.family.body": { "property": "--font-family-body", "type": "fontFamily" },
82
+ "font.family.mono": { "property": "--font-family-mono", "type": "fontFamily", "reserved": true }
83
+ }
84
+ }
85
+ ```
86
+
87
+ - A theme set supplies every id in its default preset. `reserved` marks an id of the interface
88
+ that no component reads yet; supply it anyway.
89
+ - `contractVersion` changes whenever an id is added, removed, renamed or retyped.
90
+ - Types: `color`, `dimension`, `duration`, `cubicBezier`, `fontWeight`, `fontFamily`, `number`
91
+ and `shadow`.
92
+ - `src/theme/violet-token-interface.spec.ts` fails when a component reads a property the file
93
+ does not list (private `--_*` aliases and the components' own `--violet-*` knobs aside), or
94
+ when the file lists one nothing reads that is not `reserved`.
95
+ - Typefaces come from `font.family.body`; no component names a font family except as that
96
+ token's fallback.
97
+
98
+ ## The Built-In Default Theme
99
+
100
+ Without a product theme, the components use AFD's default theme set, shared with Loam. Its
101
+ values are Loam's Violet themes, taken as data, never as a package dependency (decision D50 of
102
+ AFD's Loam documents; `endpoints/loam/docs/phases/0-kernel-chrome/spec.md`, section 2.4):
103
+
104
+ - [tokens/violet-theme.export.json](./tokens/violet-theme.export.json) holds the component ids
105
+ of Loam's resolved `light`, `dark` and `high-contrast` themes:
106
+ `{ "contractVersion": 1, "source": "loam", "presets": { "<preset>": [{ "id", "value" }] } }`.
107
+ Loam's theme package writes it (`pnpm -F @lushly-dev/loam-theme theme:export-components`);
108
+ do not edit it by hand. `theme:check` there fails when Loam's tree does not supply an
109
+ interface id with its property and type.
110
+ - `theme:build` generates `src/theme/generated/violet-theme.generated.ts`, the built-in set, from
111
+ it, and fails when a preset lacks an interface id.
112
+ - Every literal fallback, `var(--<id>, <literal>)` in `src/`, equals the light value, so a
113
+ component renders the light theme with no theme installed.
114
+ `pnpm -F @lushly-dev/loam-theme theme:check` fails when one differs, and
115
+ `theme:export-components --fallbacks` rewrites them. `src/theme/violet-token-defaults.ts` is
116
+ hand-written and checked the same way.
117
+ - `src/foundations/token-registry.ts` and the foundations story read the export.
118
+
119
+ The former registries, `tokens/master-semantic.tokens.jsonc` and `tokens/theme-presets.jsonc`,
120
+ are retired: empty, kept only for the FAST-AF provenance records, and read by nothing.
121
+
122
+ ## Runtime Theme
123
+
124
+ The theme is a stylesheet the runtime installs once, so components work without a provider
125
+ wrapper around every usage site. Presets apply to the document root or to any element marked
126
+ `data-violet-theme-root` (the `violet-theme` host marks itself).
127
+
128
+ The zero-config route installs the built-in default:
129
+
130
+ ```ts
131
+ import { applyVioletThemePreset, installVioletTheme } from "@lushly-dev/violet-elements";
132
+
133
+ installVioletTheme();
134
+ applyVioletThemePreset(document, "dark");
135
+ ```
136
+
137
+ The runtime (`dist/theme/violet-theme-runtime.js`) never imports the built-in set's values:
138
+ `installVioletTheme()` loads them on first use with a dynamic import and writes the stylesheet when
139
+ they arrive; `await loadVioletBuiltInTheme()` to know it is applied. Until then the components
140
+ render their literal fallbacks, which are the built-in light values. A load that fails is reported
141
+ with `console.error`, not cached, and retried by the next install or call.
142
+
143
+ The laziness helps only a consumer that deep-imports the runtime and the element modules. The
144
+ package root and `theme/index.ts` statically re-export the built-in module (`violetThemeCssText`,
145
+ `violetThemeBuiltInSet` and the rest), so importing either loads it eagerly, and Vite may warn that
146
+ the module is imported both statically and dynamically (it then stays in the same chunk). A product
147
+ that installs its own set and wants the built-in values out of its bundle imports the element
148
+ modules (`@lushly-dev/violet-elements/dist/<element>/<element>.js`) and
149
+ `@lushly-dev/violet-elements/dist/theme/violet-theme-runtime.js`, never the root.
150
+
151
+ A product that brings its own Violet tree installs its complete theme set as data instead. The
152
+ set replaces the built-in default, which is then never written, wherever this package installed a
153
+ theme, scoped `violet-theme` hosts in shadow roots included. Preset names are the product's:
154
+
155
+ ```ts
156
+ import { applyVioletThemePreset, applyVioletThemeRoot, installVioletThemeSet } from "@lushly-dev/violet-elements";
157
+
158
+ installVioletThemeSet({
159
+ defaultPreset: "light",
160
+ presets: {
161
+ light: lightTokens, // [{ id: "color.surface.page", value: "#fbfaf4" }, ...]
162
+ dark: darkTokens,
163
+ "high-contrast": highContrastTokens,
164
+ sepia: sepiaTokens, // a preset lists what it sets and inherits the rest from the default
165
+ },
166
+ });
167
+ applyVioletThemePreset(document, "sepia");
168
+ applyVioletThemeRoot(panel, "dark");
169
+ ```
170
+
171
+ - `installVioletThemeSet(set, target?)` throws a `TypeError` for an unsound set (an unknown
172
+ default preset, a preset name other than letters, digits, `-` and `_`, a malformed or repeated
173
+ id, or a value holding `;`, `{`, `}`, `<`, `>`, a backslash, a comment, a line break, an
174
+ unclosed quote or an unbalanced `(` or `[`).
175
+ - **Completeness is the product's check.** At runtime an id a set omits is not an error: the
176
+ component silently uses its literal `var()` fallback, the built-in light value. Run
177
+ `findVioletThemeSetGaps(set, tokenInterface)` in the product's build, with the
178
+ `tokens/interface.json` of the installed version. It returns `{ problems, missing, complete }`:
179
+ `problems` from `validateVioletThemeSet`, `missing` as `{ preset, id, property }` for every
180
+ interface id a preset does not supply (counting what it inherits from the default). Ids the
181
+ interface lacks are allowed.
182
+ - `@lushly-dev/violet-elements/theme-css` is the Node-safe entry for that check: side-effect
183
+ free, with no DOM and no element registration (the package root registers every element and
184
+ does not load in plain Node). It exports `findVioletThemeSetGaps`, `validateVioletThemeSet`,
185
+ `createVioletThemeCss`, `violetTokenProperty`, `VIOLET_TOKEN_TYPES` and the types
186
+ (`VioletThemeSet`, `VioletTokenInterface`, `VioletTokenType`, `VioletThemeSetGaps`):
187
+
188
+ ```ts
189
+ import { findVioletThemeSetGaps } from "@lushly-dev/violet-elements/theme-css";
190
+ import tokenInterface from "@lushly-dev/violet-elements/tokens/interface.json" with { type: "json" };
191
+
192
+ const { problems, missing, complete } = findVioletThemeSetGaps(themeSet, tokenInterface);
193
+ if (!complete) throw new Error([...problems, ...missing.map(gap => `${gap.preset}: ${gap.id}`)].join("
194
+ "));
195
+ ```
196
+ - `applyVioletThemePreset`, `applyVioletThemeRoot` and `normalizeVioletThemePreset` throw a
197
+ `RangeError` for a name the installed set lacks; it is never mapped to the default. A
198
+ `violet-theme` host keeps such a name as written and warns.
199
+ - `getVioletThemePresets()` and `getVioletThemeDefaultPreset()` describe the installed set;
200
+ `resetVioletThemeSet()` goes back to the built-in one. `violetThemeBuiltInSet` (typed narrowly,
201
+ `as const`), `violetThemePresets`, `VIOLET_THEME_DEFAULT_PRESET` and `violetThemeCssText` are the
202
+ built-in set.
203
+ - Runtime styles are tracked weakly and rewritten on every change, so a shadow root detached when
204
+ the set changed is current when it is attached again.
205
+
206
+ ```html
207
+ <violet-theme preset="dark">
208
+ <violet-button>Scoped button</violet-button>
209
+ </violet-theme>
210
+ ```
211
+
212
+ Inside this repository (for example the root Storybook), the same functions are
213
+ imported from `packages/violet-elements/src/theme`.
214
+
215
+ ## Gantt foundation
216
+
217
+ `violet-gantt` is a reusable, read-only calendar-day timeline. Consumers provide
218
+ controlled rows, items, expansion, selection, viewport, status, and an optional
219
+ explicit `today` value. The component does not infer a calendar day from the
220
+ browser clock or from midnight instants.
221
+
222
+ Ranges use strict `YYYY-MM-DD` values with exclusive ends. Supported item dates
223
+ are `0000-01-01` through `9999-12-30`; `9999-12-31` is the final representable
224
+ exclusive boundary. One viewport may span at most 36,600 days. Import
225
+ `VIOLET_GANTT_DATE_LIMITS` when projecting source records so out-of-range values
226
+ can remain explicit in the consumer instead of being mistaken for scheduled geometry.
227
+ Invalid dates, identities, hierarchy links, item references, and presentation/time
228
+ combinations are omitted with a visible status. A `milestone` requires a
229
+ `day-point`; `work` and `window` require a `day-range`; `time: null` renders an
230
+ explicit unscheduled entry.
231
+
232
+ The host fills a definite-height parent. Each density sets a minimum row
233
+ height: 36px `compact`, 64px `natural`, and 76px `comfortable`. Rows grow in 24px
234
+ item lanes, capped at six visible lanes. The single scroll viewport
235
+ owns both the sticky name column and timeline geometry. It mounts only the visible
236
+ logical rows and day headers plus bounded overscan; it never creates a cell for
237
+ every row/day pair. Item lanes retain a 24px pointer target and readable one-line
238
+ labels. When a row has more items than its stable height can show, its `+N` count
239
+ is paired with pointer- and keyboard-operable previous/next controls that reveal
240
+ each logical item without mounting a hidden copy of the whole collection.
241
+
242
+ The axis keeps the visible month and year on screen while scrolling. Week and
243
+ month tick labels use readable widths independent of the underlying day geometry.
244
+ Chronology always runs left to right; row names retain the document's text
245
+ direction. The sticky name column responds to the component's actual container
246
+ width, and item reveal calculations use its measured width.
247
+
248
+ Keyboard focus moves through logical rows with Up, Down, Home, End, Page Up, and
249
+ Page Down. Right and Left follow tree expansion behavior. Alt+Right and Alt+Left
250
+ cycle through every logical item in the active row and reveal horizontally culled
251
+ items as needed. Enter activates the current item, Shift+Enter inspects the active
252
+ row, and Escape returns to row focus without changing selection. Data replacements
253
+ reconcile stale row and item identities; focus follows a remaining row only when
254
+ the timeline owned focus before the replacement. `focusItem()` returns `false`
255
+ without changing active state when the row is collapsed or the item's date is
256
+ outside the controlled viewport. Consumers loop
257
+ `item-selection-change`, `expanded-change`,
258
+ and `viewport-change` details into the corresponding controlled properties.
259
+ When the accepted range is too short to fill the measured timeline width, the
260
+ component emits an additive `viewport-change` request with reason `resize`.
261
+ The consumer remains responsible for loading and accepting that later exclusive
262
+ end; the component keeps the current fixed scale and never paints unloaded days
263
+ or shortens an accepted range when its container narrows.