@restio/ui 0.0.9-SNAPSHOT → 0.0.10-SNAPSHOT

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 (688) hide show
  1. package/dist/assets/svg/alert.svg +1 -0
  2. package/dist/assets/svg/arrow-down-up.svg +1 -0
  3. package/dist/assets/svg/arrow-down.svg +1 -0
  4. package/dist/assets/svg/arrow-left.svg +1 -0
  5. package/dist/assets/svg/arrow-right.svg +1 -0
  6. package/dist/assets/svg/arrow-up.svg +1 -0
  7. package/dist/assets/svg/arrow_drop_down.svg +1 -0
  8. package/dist/assets/svg/calendar.svg +1 -0
  9. package/dist/assets/svg/check.svg +1 -0
  10. package/dist/assets/svg/chevron-down.svg +1 -0
  11. package/dist/assets/svg/chevron-right.svg +1 -0
  12. package/dist/assets/svg/clipboard.svg +1 -0
  13. package/dist/assets/svg/close.svg +1 -0
  14. package/dist/assets/svg/copy.svg +1 -0
  15. package/dist/assets/svg/cursor.svg +1 -0
  16. package/dist/assets/svg/cut.svg +1 -0
  17. package/dist/assets/svg/delete.svg +1 -0
  18. package/dist/assets/svg/dock-left-arrow.svg +1 -0
  19. package/dist/assets/svg/dock-right-arrow.svg +1 -0
  20. package/dist/assets/svg/document-outline.svg +1 -0
  21. package/dist/assets/svg/download.svg +1 -0
  22. package/dist/assets/svg/drag.svg +1 -0
  23. package/dist/assets/svg/error.svg +1 -0
  24. package/dist/assets/svg/expand-right.svg +1 -0
  25. package/dist/assets/svg/expand.svg +1 -0
  26. package/dist/assets/svg/eye.svg +1 -0
  27. package/dist/assets/svg/fullscreen.svg +1 -0
  28. package/dist/assets/svg/gear.svg +1 -0
  29. package/dist/assets/svg/groups.svg +1 -0
  30. package/dist/assets/svg/help.svg +1 -0
  31. package/dist/assets/svg/info.svg +1 -0
  32. package/dist/assets/svg/logo.svg +9 -0
  33. package/dist/assets/svg/menu.svg +1 -0
  34. package/dist/assets/svg/message-bubble-question-mark.svg +1 -0
  35. package/dist/assets/svg/pencil.svg +1 -0
  36. package/dist/assets/svg/plus.svg +1 -0
  37. package/dist/assets/svg/restio.svg +5 -0
  38. package/dist/assets/svg/search.svg +1 -0
  39. package/dist/assets/svg/send.svg +1 -0
  40. package/dist/assets/svg/shrink-right.svg +1 -0
  41. package/dist/assets/svg/sidebar.svg +1 -0
  42. package/dist/assets/svg/terminal.svg +1 -0
  43. package/dist/assets/svg/timer.svg +1 -0
  44. package/dist/assets/svg/warning.svg +1 -0
  45. package/dist/assets/svg/zoom-minus.svg +1 -0
  46. package/dist/assets/svg/zoom-plus.svg +1 -0
  47. package/dist/components/anchored-overlay/anchored-overlay-types.d.ts +1 -1
  48. package/dist/components/anchored-overlay/anchored-overlay.d.ts +2 -2
  49. package/dist/components/banner/banner-types.d.ts +1 -1
  50. package/dist/components/banner/banner.d.ts +2 -2
  51. package/dist/components/button/button-types.d.ts +1 -1
  52. package/dist/components/button/button.d.ts +2 -2
  53. package/dist/components/button-group/button-group.d.ts +2 -2
  54. package/dist/components/checkbox/checkbox-types.d.ts +1 -1
  55. package/dist/components/checkbox/checkbox.d.ts +2 -2
  56. package/dist/components/code-block/code-block.d.ts +1 -1
  57. package/dist/components/file-upload/file-upload-types.d.ts +1 -1
  58. package/dist/components/file-upload/file-upload.d.ts +2 -2
  59. package/dist/components/graph/graph.d.ts +1 -1
  60. package/dist/components/input/date/date-calendar.d.ts +2 -2
  61. package/dist/components/input/date/date-input-field.d.ts +2 -2
  62. package/dist/components/input/date/date-picker.d.ts +2 -2
  63. package/dist/components/input/date/date-range-input-field.d.ts +2 -2
  64. package/dist/components/input/date/date-range-picker.d.ts +2 -2
  65. package/dist/components/input/date/date-shortcuts.d.ts +2 -2
  66. package/dist/components/input/date/date-types.d.ts +1 -1
  67. package/dist/components/input/date/date-utils.d.ts +1 -1
  68. package/dist/components/input/input.d.ts +2 -2
  69. package/dist/components/input/number/input-number-types.d.ts +1 -1
  70. package/dist/components/input/number/input-number.d.ts +2 -2
  71. package/dist/components/input/text/input-text-types.d.ts +1 -1
  72. package/dist/components/input/text/input-text.d.ts +2 -2
  73. package/dist/components/kbd/kbd.d.ts +2 -2
  74. package/dist/components/kbd-group/kbd-group.d.ts +2 -2
  75. package/dist/components/list/list-types.d.ts +1 -1
  76. package/dist/components/list/list-utils.d.ts +4 -4
  77. package/dist/components/list/list.d.ts +1 -1
  78. package/dist/components/menu/anchored-navigation-menu.d.ts +3 -3
  79. package/dist/components/menu/menu-assets.d.ts +1 -1
  80. package/dist/components/menu/menu-types.d.ts +2 -2
  81. package/dist/components/menu/menu.d.ts +2 -2
  82. package/dist/components/otp/otp.d.ts +2 -3
  83. package/dist/components/select/select-types.d.ts +1 -1
  84. package/dist/components/select/select.d.ts +2 -2
  85. package/dist/components/tag/tag-types.d.ts +1 -1
  86. package/dist/components/tag/tag.d.ts +2 -2
  87. package/dist/components/textarea/textarea-types.d.ts +2 -2
  88. package/dist/components/textarea/textarea.d.ts +2 -2
  89. package/dist/components/toast-group/toast-group-types.d.ts +1 -1
  90. package/dist/components/toast-group/toast-group.d.ts +2 -2
  91. package/dist/components/typography/typography-types.d.ts +1 -1
  92. package/dist/components/typography/typography.d.ts +2 -2
  93. package/dist/custom-components/chat/chat-types.d.ts +1 -1
  94. package/dist/custom-components/chat/chat.d.ts +1 -1
  95. package/dist/custom-components/layout/layout.d.ts +2 -2
  96. package/dist/custom-components/layout-builder/layout-builder-validation.d.ts +2 -8
  97. package/dist/custom-components/layout-builder/layout-builder.d.ts +2 -2
  98. package/dist/custom-components/layout-builder/layout-json-editor-types.d.ts +1 -1
  99. package/dist/custom-components/layout-builder/layout-json-editor.d.ts +2 -2
  100. package/dist/custom-components/markdown/markdown-types.d.ts +3 -3
  101. package/dist/custom-components/markdown/markdown.d.ts +2 -2
  102. package/dist/custom-components/mindmap/index.d.ts +2 -2
  103. package/dist/custom-components/mindmap/mind-tree-types.d.ts +1 -1
  104. package/dist/custom-components/mindmap/mind-tree.d.ts +1 -1
  105. package/dist/custom-components/mindmap/reingold-tilford-algorithm.d.ts +1 -1
  106. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.d.ts +2 -2
  107. package/dist/custom-components/timeline/skeleton/timeline-skeleton.d.ts +1 -1
  108. package/dist/custom-components/timeline/timeline.d.ts +2 -2
  109. package/dist/custom-components/workflow/layout/workflow-edge.d.ts +1 -1
  110. package/dist/custom-components/workflow/layout/workflow-layout-types.d.ts +1 -1
  111. package/dist/custom-components/workflow/layout/workflow-layout.d.ts +2 -2
  112. package/dist/custom-components/workflow/node/workflow-node.d.ts +1 -1
  113. package/dist/custom-components/workflow/panel/workflow-panel-types.d.ts +1 -1
  114. package/dist/custom-components/workflow/panel/workflow-panel.d.ts +1 -1
  115. package/dist/custom-components/workflow/toolbar/workflow-toolbar.d.ts +1 -1
  116. package/dist/custom-components/workflow/utils/workflow-validation.d.ts +2 -2
  117. package/dist/custom-components/workflow/workflow-types.d.ts +3 -3
  118. package/dist/custom-components/workflow/workflow.d.ts +1 -1
  119. package/dist/data-components/calendar/calendar-types.d.ts +20 -1
  120. package/dist/data-components/calendar/calendar-types.d.ts.map +1 -1
  121. package/dist/data-components/calendar/calendar-utils.d.ts +5 -0
  122. package/dist/data-components/calendar/calendar-utils.d.ts.map +1 -1
  123. package/dist/data-components/calendar/calendar.d.ts +2 -2
  124. package/dist/data-components/calendar/calendar.d.ts.map +1 -1
  125. package/dist/data-components/cell/cell-switch.d.ts +1 -1
  126. package/dist/data-components/cell/cell-types.d.ts +2 -2
  127. package/dist/data-components/cell/cell.d.ts +1 -1
  128. package/dist/data-components/chart/chart-types.d.ts +1 -1
  129. package/dist/data-components/chart/chart.d.ts +1 -1
  130. package/dist/data-components/chart/sankey/sankeyChart.d.ts +1 -1
  131. package/dist/data-components/data-structure/data-structure-utils.d.ts +1 -1
  132. package/dist/data-components/data-structure/data-structure.d.ts +1 -1
  133. package/dist/data-components/data-structure/stories-assets.d.ts +1 -5
  134. package/dist/data-components/filter/filter-engine.d.ts +15 -0
  135. package/dist/data-components/filter/filter-engine.d.ts.map +1 -0
  136. package/dist/data-components/filter/filter-types.d.ts +41 -0
  137. package/dist/data-components/filter/filter-types.d.ts.map +1 -0
  138. package/dist/data-components/filter/filter-utils.d.ts +26 -0
  139. package/dist/data-components/filter/filter-utils.d.ts.map +1 -0
  140. package/dist/data-components/form/form-types.d.ts +2 -2
  141. package/dist/data-components/form/form.d.ts +1 -1
  142. package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts +1 -1
  143. package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.d.ts +1 -1
  144. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts +1 -1
  145. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts +1 -1
  146. package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.d.ts +2 -2
  147. package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts +1 -1
  148. package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts +1 -1
  149. package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.d.ts +2 -2
  150. package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.d.ts +1 -1
  151. package/dist/data-components/table-grid/external-functionalities/import/csv/index.d.ts +6 -6
  152. package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.d.ts +1 -1
  153. package/dist/data-components/table-grid/footer/table-grid-footer-types.d.ts +1 -1
  154. package/dist/data-components/table-grid/footer/table-grid-footer.d.ts +1 -1
  155. package/dist/data-components/table-grid/formula/formula-builder-types.d.ts +1 -1
  156. package/dist/data-components/table-grid/formula/formula-builder.d.ts +1 -1
  157. package/dist/data-components/table-grid/header/grouping/group-panel-types.d.ts +1 -1
  158. package/dist/data-components/table-grid/header/grouping/group-panel.d.ts +1 -1
  159. package/dist/data-components/table-grid/header/table-grid-column-menu.d.ts +1 -1
  160. package/dist/data-components/table-grid/header/table-grid-header-types.d.ts +1 -1
  161. package/dist/data-components/table-grid/header/table-grid-header.d.ts +1 -1
  162. package/dist/data-components/table-grid/hooks/use-table.d.ts +1 -1
  163. package/dist/data-components/table-grid/pinning/pinning-utils.d.ts +1 -1
  164. package/dist/data-components/table-grid/pivot/pivot-config-panel-types.d.ts +2 -2
  165. package/dist/data-components/table-grid/pivot/pivot-config-panel.d.ts +1 -1
  166. package/dist/data-components/table-grid/pivot/pivot-table.d.ts +1 -1
  167. package/dist/data-components/table-grid/pivot/pivot-types.d.ts +1 -1
  168. package/dist/data-components/table-grid/pivot/pivot-utils.d.ts +2 -2
  169. package/dist/data-components/table-grid/row/table-grid-row-types.d.ts +1 -1
  170. package/dist/data-components/table-grid/row/table-grid-row-utils.d.ts +2 -2
  171. package/dist/data-components/table-grid/row/table-grid-row.d.ts +1 -1
  172. package/dist/data-components/table-grid/selection/selection-utils.d.ts +2 -2
  173. package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.d.ts +5 -1
  174. package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.d.ts.map +1 -1
  175. package/dist/data-components/table-grid/sidebar/table-grid-sidebar.d.ts +2 -2
  176. package/dist/data-components/table-grid/sidebar/table-grid-sidebar.d.ts.map +1 -1
  177. package/dist/data-components/table-grid/sorting/sorting.d.ts +1 -1
  178. package/dist/data-components/table-grid/table-context/table-context-types.d.ts +2 -2
  179. package/dist/data-components/table-grid/table-context/table-context.d.ts +2 -2
  180. package/dist/data-components/table-grid/table-grid-context.d.ts +2 -2
  181. package/dist/data-components/table-grid/table-grid-context.d.ts.map +1 -1
  182. package/dist/data-components/table-grid/table-grid-types.d.ts +18 -9
  183. package/dist/data-components/table-grid/table-grid-types.d.ts.map +1 -1
  184. package/dist/data-components/table-grid/table-grid.d.ts +2 -2
  185. package/dist/data-components/table-grid/table-grid.d.ts.map +1 -1
  186. package/dist/data-components/table-grid/table-utils.d.ts +1 -1
  187. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.d.ts +1 -1
  188. package/dist/experimental-components/contribution-heatmap/contribution-heatmap.d.ts +2 -2
  189. package/dist/experimental-components/filter-builder/filter-builder-types.d.ts +11 -23
  190. package/dist/experimental-components/filter-builder/filter-builder-types.d.ts.map +1 -1
  191. package/dist/experimental-components/filter-builder/filter-builder.d.ts +5 -7
  192. package/dist/experimental-components/filter-builder/filter-builder.d.ts.map +1 -1
  193. package/dist/framework-components/appbar/appbar-types.d.ts +1 -1
  194. package/dist/framework-components/appbar/appbar.d.ts +2 -2
  195. package/dist/framework-components/breadcrumbs/breadcrumbs.d.ts +2 -2
  196. package/dist/framework-components/drawer/drawer-types.d.ts +2 -2
  197. package/dist/framework-components/drawer/drawer.d.ts +2 -2
  198. package/dist/framework-components/scaffold/scaffold-context.d.ts +2 -2
  199. package/dist/framework-components/scaffold/scaffold-types.d.ts +1 -1
  200. package/dist/framework-components/scaffold/scaffold.d.ts +2 -2
  201. package/dist/framework-components/sidebar/sidebar-context.d.ts +2 -2
  202. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.d.ts +1 -1
  203. package/dist/framework-components/sidebar/sidebar-types.d.ts +1 -1
  204. package/dist/framework-components/sidebar/sidebar.d.ts +3 -3
  205. package/dist/hooks/useDynamicVirtualList.d.ts.map +1 -1
  206. package/dist/hooks/useFixedVirtualList.d.ts +1 -1
  207. package/dist/hooks/useShortcut.d.ts +1 -1
  208. package/dist/hooks/useTour/useTour-context-internal.d.ts +2 -2
  209. package/dist/hooks/useTour/useTour-context.d.ts +3 -3
  210. package/dist/hooks/useTour/useTour-types.d.ts +1 -1
  211. package/dist/hooks/useTour/useTour.d.ts +1 -1
  212. package/dist/hooks/useVirtualListScroll.d.ts +1 -1
  213. package/dist/index.d.ts +0 -1
  214. package/dist/providers/ai-assistant/ai-assistant-prompts.d.ts +1 -1
  215. package/dist/providers/ai-assistant/ai-assistant-validator.d.ts +1 -1
  216. package/dist/providers/ai-assistant/ai-chat-panel-types.d.ts +1 -1
  217. package/dist/providers/ai-assistant/ai-chat-panel.d.ts +1 -1
  218. package/dist/providers/shortcut/shortcut-context.d.ts +2 -2
  219. package/dist/providers/shortcut/shortcut-provider.d.ts +1 -1
  220. package/dist/providers/theme/themeProvider.d.ts +2 -2
  221. package/dist/restio-ui.cjs.js +109 -0
  222. package/dist/restio-ui.es.js +35079 -0
  223. package/dist/ui.css +2 -0
  224. package/dist/utility-components/avatar/avatar-types.d.ts +1 -1
  225. package/dist/utility-components/avatar/avatar.d.ts +2 -2
  226. package/dist/utility-components/chip/chip-types.d.ts +2 -2
  227. package/dist/utility-components/chip/chip.d.ts +2 -2
  228. package/dist/utility-components/helper-text/helper-text-types.d.ts +1 -1
  229. package/dist/utility-components/helper-text/helper-text.d.ts +1 -1
  230. package/dist/utility-components/icon/icon-types.d.ts +1 -1
  231. package/dist/utility-components/icon/icon.d.ts +2 -2
  232. package/dist/utility-components/label/label.d.ts +1 -1
  233. package/dist/utility-components/overlay-panel/overlay-panel.d.ts +2 -2
  234. package/dist/utility-components/overlay-panel/use-focus-trap.d.ts +1 -1
  235. package/dist/utility-components/skeleton/skeleton.d.ts +2 -2
  236. package/dist/utility-components/stack/stack.d.ts +2 -2
  237. package/dist/utility-components/toast/toast-types.d.ts +1 -1
  238. package/dist/utility-components/toast/toast.d.ts +2 -2
  239. package/dist/utils/general.d.ts +1 -1
  240. package/package.json +3 -3
  241. package/dist/components/anchored-overlay/anchored-overlay-types.js +0 -2
  242. package/dist/components/anchored-overlay/anchored-overlay-types.js.map +0 -1
  243. package/dist/components/anchored-overlay/anchored-overlay.js +0 -67
  244. package/dist/components/anchored-overlay/anchored-overlay.js.map +0 -1
  245. package/dist/components/banner/banner-types.js +0 -2
  246. package/dist/components/banner/banner-types.js.map +0 -1
  247. package/dist/components/banner/banner.js +0 -29
  248. package/dist/components/banner/banner.js.map +0 -1
  249. package/dist/components/button/button-types.js +0 -2
  250. package/dist/components/button/button-types.js.map +0 -1
  251. package/dist/components/button/button.js +0 -20
  252. package/dist/components/button/button.js.map +0 -1
  253. package/dist/components/button-group/button-group-types.js +0 -2
  254. package/dist/components/button-group/button-group-types.js.map +0 -1
  255. package/dist/components/button-group/button-group.js +0 -16
  256. package/dist/components/button-group/button-group.js.map +0 -1
  257. package/dist/components/checkbox/checkbox-types.js +0 -2
  258. package/dist/components/checkbox/checkbox-types.js.map +0 -1
  259. package/dist/components/checkbox/checkbox.js +0 -19
  260. package/dist/components/checkbox/checkbox.js.map +0 -1
  261. package/dist/components/code-block/code-block.js +0 -9
  262. package/dist/components/code-block/code-block.js.map +0 -1
  263. package/dist/components/file-upload/file-upload-types.js +0 -2
  264. package/dist/components/file-upload/file-upload-types.js.map +0 -1
  265. package/dist/components/file-upload/file-upload-utils.js +0 -10
  266. package/dist/components/file-upload/file-upload-utils.js.map +0 -1
  267. package/dist/components/file-upload/file-upload.js +0 -106
  268. package/dist/components/file-upload/file-upload.js.map +0 -1
  269. package/dist/components/graph/graph-types.js +0 -2
  270. package/dist/components/graph/graph-types.js.map +0 -1
  271. package/dist/components/graph/graph.js +0 -21
  272. package/dist/components/graph/graph.js.map +0 -1
  273. package/dist/components/input/date/date-calendar.js +0 -114
  274. package/dist/components/input/date/date-calendar.js.map +0 -1
  275. package/dist/components/input/date/date-input-field.js +0 -61
  276. package/dist/components/input/date/date-input-field.js.map +0 -1
  277. package/dist/components/input/date/date-picker.js +0 -35
  278. package/dist/components/input/date/date-picker.js.map +0 -1
  279. package/dist/components/input/date/date-range-input-field.js +0 -90
  280. package/dist/components/input/date/date-range-input-field.js.map +0 -1
  281. package/dist/components/input/date/date-range-picker.js +0 -74
  282. package/dist/components/input/date/date-range-picker.js.map +0 -1
  283. package/dist/components/input/date/date-shortcuts.js +0 -47
  284. package/dist/components/input/date/date-shortcuts.js.map +0 -1
  285. package/dist/components/input/date/date-types.js +0 -2
  286. package/dist/components/input/date/date-types.js.map +0 -1
  287. package/dist/components/input/date/date-utils.js +0 -203
  288. package/dist/components/input/date/date-utils.js.map +0 -1
  289. package/dist/components/input/input-types.js +0 -2
  290. package/dist/components/input/input-types.js.map +0 -1
  291. package/dist/components/input/input.js +0 -14
  292. package/dist/components/input/input.js.map +0 -1
  293. package/dist/components/input/number/input-number-types.js +0 -2
  294. package/dist/components/input/number/input-number-types.js.map +0 -1
  295. package/dist/components/input/number/input-number.js +0 -11
  296. package/dist/components/input/number/input-number.js.map +0 -1
  297. package/dist/components/input/text/input-text-types.js +0 -2
  298. package/dist/components/input/text/input-text-types.js.map +0 -1
  299. package/dist/components/input/text/input-text.js +0 -8
  300. package/dist/components/input/text/input-text.js.map +0 -1
  301. package/dist/components/kbd/kbd-types.js +0 -2
  302. package/dist/components/kbd/kbd-types.js.map +0 -1
  303. package/dist/components/kbd/kbd.js +0 -12
  304. package/dist/components/kbd/kbd.js.map +0 -1
  305. package/dist/components/kbd-group/kbd-group-types.js +0 -2
  306. package/dist/components/kbd-group/kbd-group-types.js.map +0 -1
  307. package/dist/components/kbd-group/kbd-group.js +0 -15
  308. package/dist/components/kbd-group/kbd-group.js.map +0 -1
  309. package/dist/components/list/list-types.js +0 -2
  310. package/dist/components/list/list-types.js.map +0 -1
  311. package/dist/components/list/list-utils.js +0 -73
  312. package/dist/components/list/list-utils.js.map +0 -1
  313. package/dist/components/list/list.js +0 -68
  314. package/dist/components/list/list.js.map +0 -1
  315. package/dist/components/menu/anchored-navigation-menu.js +0 -48
  316. package/dist/components/menu/anchored-navigation-menu.js.map +0 -1
  317. package/dist/components/menu/menu-assets.js +0 -35
  318. package/dist/components/menu/menu-assets.js.map +0 -1
  319. package/dist/components/menu/menu-types.js +0 -2
  320. package/dist/components/menu/menu-types.js.map +0 -1
  321. package/dist/components/menu/menu.js +0 -86
  322. package/dist/components/menu/menu.js.map +0 -1
  323. package/dist/components/otp/otp-types.js +0 -2
  324. package/dist/components/otp/otp-types.js.map +0 -1
  325. package/dist/components/otp/otp-utils.js +0 -22
  326. package/dist/components/otp/otp-utils.js.map +0 -1
  327. package/dist/components/otp/otp.js +0 -85
  328. package/dist/components/otp/otp.js.map +0 -1
  329. package/dist/components/select/select-types.js +0 -2
  330. package/dist/components/select/select-types.js.map +0 -1
  331. package/dist/components/select/select.js +0 -52
  332. package/dist/components/select/select.js.map +0 -1
  333. package/dist/components/tag/tag-types.js +0 -2
  334. package/dist/components/tag/tag-types.js.map +0 -1
  335. package/dist/components/tag/tag.js +0 -16
  336. package/dist/components/tag/tag.js.map +0 -1
  337. package/dist/components/textarea/textarea-types.js +0 -2
  338. package/dist/components/textarea/textarea-types.js.map +0 -1
  339. package/dist/components/textarea/textarea.js +0 -19
  340. package/dist/components/textarea/textarea.js.map +0 -1
  341. package/dist/components/toast-group/toast-group-types.js +0 -2
  342. package/dist/components/toast-group/toast-group-types.js.map +0 -1
  343. package/dist/components/toast-group/toast-group.js +0 -25
  344. package/dist/components/toast-group/toast-group.js.map +0 -1
  345. package/dist/components/typography/typography-types.js +0 -11
  346. package/dist/components/typography/typography-types.js.map +0 -1
  347. package/dist/components/typography/typography.js +0 -17
  348. package/dist/components/typography/typography.js.map +0 -1
  349. package/dist/custom-components/chat/chat-types.js +0 -2
  350. package/dist/custom-components/chat/chat-types.js.map +0 -1
  351. package/dist/custom-components/chat/chat.js +0 -14
  352. package/dist/custom-components/chat/chat.js.map +0 -1
  353. package/dist/custom-components/layout/layout-types.js +0 -2
  354. package/dist/custom-components/layout/layout-types.js.map +0 -1
  355. package/dist/custom-components/layout/layout.js +0 -46
  356. package/dist/custom-components/layout/layout.js.map +0 -1
  357. package/dist/custom-components/layout-builder/layout-builder-constants.js +0 -25
  358. package/dist/custom-components/layout-builder/layout-builder-constants.js.map +0 -1
  359. package/dist/custom-components/layout-builder/layout-builder-schema.js +0 -169
  360. package/dist/custom-components/layout-builder/layout-builder-schema.js.map +0 -1
  361. package/dist/custom-components/layout-builder/layout-builder-templates.js +0 -206
  362. package/dist/custom-components/layout-builder/layout-builder-templates.js.map +0 -1
  363. package/dist/custom-components/layout-builder/layout-builder-types.js +0 -2
  364. package/dist/custom-components/layout-builder/layout-builder-types.js.map +0 -1
  365. package/dist/custom-components/layout-builder/layout-builder-utils.js +0 -251
  366. package/dist/custom-components/layout-builder/layout-builder-utils.js.map +0 -1
  367. package/dist/custom-components/layout-builder/layout-builder-validation.js +0 -445
  368. package/dist/custom-components/layout-builder/layout-builder-validation.js.map +0 -1
  369. package/dist/custom-components/layout-builder/layout-builder.js +0 -908
  370. package/dist/custom-components/layout-builder/layout-builder.js.map +0 -1
  371. package/dist/custom-components/layout-builder/layout-json-editor-types.js +0 -2
  372. package/dist/custom-components/layout-builder/layout-json-editor-types.js.map +0 -1
  373. package/dist/custom-components/layout-builder/layout-json-editor.js +0 -103
  374. package/dist/custom-components/layout-builder/layout-json-editor.js.map +0 -1
  375. package/dist/custom-components/layout-builder/stories/hooks/useHistory.js +0 -100
  376. package/dist/custom-components/layout-builder/stories/hooks/useHistory.js.map +0 -1
  377. package/dist/custom-components/markdown/markdown-types.js +0 -2
  378. package/dist/custom-components/markdown/markdown-types.js.map +0 -1
  379. package/dist/custom-components/markdown/markdown-utils.js +0 -10
  380. package/dist/custom-components/markdown/markdown-utils.js.map +0 -1
  381. package/dist/custom-components/markdown/markdown.js +0 -39
  382. package/dist/custom-components/markdown/markdown.js.map +0 -1
  383. package/dist/custom-components/mindmap/index.js +0 -2
  384. package/dist/custom-components/mindmap/index.js.map +0 -1
  385. package/dist/custom-components/mindmap/mind-tree-types.js +0 -2
  386. package/dist/custom-components/mindmap/mind-tree-types.js.map +0 -1
  387. package/dist/custom-components/mindmap/mind-tree.js +0 -201
  388. package/dist/custom-components/mindmap/mind-tree.js.map +0 -1
  389. package/dist/custom-components/mindmap/reingold-tilford-algorithm.js +0 -277
  390. package/dist/custom-components/mindmap/reingold-tilford-algorithm.js.map +0 -1
  391. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.js +0 -2
  392. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.js.map +0 -1
  393. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.js +0 -32
  394. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.js.map +0 -1
  395. package/dist/custom-components/timeline/skeleton/timeline-skeleton.js +0 -19
  396. package/dist/custom-components/timeline/skeleton/timeline-skeleton.js.map +0 -1
  397. package/dist/custom-components/timeline/timeline-types.js +0 -2
  398. package/dist/custom-components/timeline/timeline-types.js.map +0 -1
  399. package/dist/custom-components/timeline/timeline.js +0 -64
  400. package/dist/custom-components/timeline/timeline.js.map +0 -1
  401. package/dist/custom-components/workflow/layout/workflow-edge.js +0 -31
  402. package/dist/custom-components/workflow/layout/workflow-edge.js.map +0 -1
  403. package/dist/custom-components/workflow/layout/workflow-layout-types.js +0 -2
  404. package/dist/custom-components/workflow/layout/workflow-layout-types.js.map +0 -1
  405. package/dist/custom-components/workflow/layout/workflow-layout.js +0 -284
  406. package/dist/custom-components/workflow/layout/workflow-layout.js.map +0 -1
  407. package/dist/custom-components/workflow/node/workflow-node.js +0 -22
  408. package/dist/custom-components/workflow/node/workflow-node.js.map +0 -1
  409. package/dist/custom-components/workflow/panel/workflow-panel-types.js +0 -2
  410. package/dist/custom-components/workflow/panel/workflow-panel-types.js.map +0 -1
  411. package/dist/custom-components/workflow/panel/workflow-panel.js +0 -53
  412. package/dist/custom-components/workflow/panel/workflow-panel.js.map +0 -1
  413. package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.js +0 -2
  414. package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.js.map +0 -1
  415. package/dist/custom-components/workflow/toolbar/workflow-toolbar.js +0 -19
  416. package/dist/custom-components/workflow/toolbar/workflow-toolbar.js.map +0 -1
  417. package/dist/custom-components/workflow/utils/workflow-validation.js +0 -257
  418. package/dist/custom-components/workflow/utils/workflow-validation.js.map +0 -1
  419. package/dist/custom-components/workflow/workflow-types.js +0 -2
  420. package/dist/custom-components/workflow/workflow-types.js.map +0 -1
  421. package/dist/custom-components/workflow/workflow.js +0 -125
  422. package/dist/custom-components/workflow/workflow.js.map +0 -1
  423. package/dist/data-components/assets/data-components-asset.js +0 -2
  424. package/dist/data-components/assets/data-components-asset.js.map +0 -1
  425. package/dist/data-components/calendar/calendar-types.js +0 -2
  426. package/dist/data-components/calendar/calendar-types.js.map +0 -1
  427. package/dist/data-components/calendar/calendar-utils.js +0 -2
  428. package/dist/data-components/calendar/calendar-utils.js.map +0 -1
  429. package/dist/data-components/calendar/calendar.js +0 -78
  430. package/dist/data-components/calendar/calendar.js.map +0 -1
  431. package/dist/data-components/cell/cell-switch.js +0 -68
  432. package/dist/data-components/cell/cell-switch.js.map +0 -1
  433. package/dist/data-components/cell/cell-types.js +0 -2
  434. package/dist/data-components/cell/cell-types.js.map +0 -1
  435. package/dist/data-components/cell/cell-utils.js +0 -60
  436. package/dist/data-components/cell/cell-utils.js.map +0 -1
  437. package/dist/data-components/cell/cell.js +0 -63
  438. package/dist/data-components/cell/cell.js.map +0 -1
  439. package/dist/data-components/chart/chart-types.js +0 -2
  440. package/dist/data-components/chart/chart-types.js.map +0 -1
  441. package/dist/data-components/chart/chart.js +0 -121
  442. package/dist/data-components/chart/chart.js.map +0 -1
  443. package/dist/data-components/chart/sankey/sankeyChart.js +0 -111
  444. package/dist/data-components/chart/sankey/sankeyChart.js.map +0 -1
  445. package/dist/data-components/data-structure/data-structure-utils.js +0 -28
  446. package/dist/data-components/data-structure/data-structure-utils.js.map +0 -1
  447. package/dist/data-components/data-structure/data-structure.js +0 -2
  448. package/dist/data-components/data-structure/data-structure.js.map +0 -1
  449. package/dist/data-components/data-structure/stories-assets.js +0 -199
  450. package/dist/data-components/data-structure/stories-assets.js.map +0 -1
  451. package/dist/data-components/form/form-types.js +0 -2
  452. package/dist/data-components/form/form-types.js.map +0 -1
  453. package/dist/data-components/form/form.js +0 -124
  454. package/dist/data-components/form/form.js.map +0 -1
  455. package/dist/data-components/table-grid/aggregation/aggregation-utils.js +0 -31
  456. package/dist/data-components/table-grid/aggregation/aggregation-utils.js.map +0 -1
  457. package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.js +0 -264
  458. package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.js.map +0 -1
  459. package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.js +0 -306
  460. package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.js.map +0 -1
  461. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.js +0 -2
  462. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.js.map +0 -1
  463. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.js +0 -33
  464. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.js.map +0 -1
  465. package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.js +0 -59
  466. package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.js.map +0 -1
  467. package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.js +0 -167
  468. package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.js.map +0 -1
  469. package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.js +0 -2
  470. package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.js.map +0 -1
  471. package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.js +0 -157
  472. package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.js.map +0 -1
  473. package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.js +0 -27
  474. package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.js.map +0 -1
  475. package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.js +0 -21
  476. package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.js.map +0 -1
  477. package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.js +0 -21
  478. package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.js.map +0 -1
  479. package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.js +0 -12
  480. package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.js.map +0 -1
  481. package/dist/data-components/table-grid/external-functionalities/import/csv/index.js +0 -7
  482. package/dist/data-components/table-grid/external-functionalities/import/csv/index.js.map +0 -1
  483. package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.js +0 -15
  484. package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.js.map +0 -1
  485. package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.js +0 -50
  486. package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.js.map +0 -1
  487. package/dist/data-components/table-grid/footer/table-grid-footer-types.js +0 -2
  488. package/dist/data-components/table-grid/footer/table-grid-footer-types.js.map +0 -1
  489. package/dist/data-components/table-grid/footer/table-grid-footer.js +0 -47
  490. package/dist/data-components/table-grid/footer/table-grid-footer.js.map +0 -1
  491. package/dist/data-components/table-grid/formula/evaluator.js +0 -91
  492. package/dist/data-components/table-grid/formula/evaluator.js.map +0 -1
  493. package/dist/data-components/table-grid/formula/formula-builder-types.js +0 -2
  494. package/dist/data-components/table-grid/formula/formula-builder-types.js.map +0 -1
  495. package/dist/data-components/table-grid/formula/formula-builder.js +0 -47
  496. package/dist/data-components/table-grid/formula/formula-builder.js.map +0 -1
  497. package/dist/data-components/table-grid/formula/formula.test.js +0 -50
  498. package/dist/data-components/table-grid/formula/formula.test.js.map +0 -1
  499. package/dist/data-components/table-grid/formula/index.js +0 -40
  500. package/dist/data-components/table-grid/formula/index.js.map +0 -1
  501. package/dist/data-components/table-grid/formula/parser.js +0 -179
  502. package/dist/data-components/table-grid/formula/parser.js.map +0 -1
  503. package/dist/data-components/table-grid/formula/tokenizer.js +0 -140
  504. package/dist/data-components/table-grid/formula/tokenizer.js.map +0 -1
  505. package/dist/data-components/table-grid/formula/types.js +0 -2
  506. package/dist/data-components/table-grid/formula/types.js.map +0 -1
  507. package/dist/data-components/table-grid/header/grouping/group-panel-types.js +0 -2
  508. package/dist/data-components/table-grid/header/grouping/group-panel-types.js.map +0 -1
  509. package/dist/data-components/table-grid/header/grouping/group-panel.js +0 -91
  510. package/dist/data-components/table-grid/header/grouping/group-panel.js.map +0 -1
  511. package/dist/data-components/table-grid/header/table-grid-column-menu.js +0 -84
  512. package/dist/data-components/table-grid/header/table-grid-column-menu.js.map +0 -1
  513. package/dist/data-components/table-grid/header/table-grid-header-types.js +0 -2
  514. package/dist/data-components/table-grid/header/table-grid-header-types.js.map +0 -1
  515. package/dist/data-components/table-grid/header/table-grid-header.js +0 -148
  516. package/dist/data-components/table-grid/header/table-grid-header.js.map +0 -1
  517. package/dist/data-components/table-grid/hooks/use-table.js +0 -18
  518. package/dist/data-components/table-grid/hooks/use-table.js.map +0 -1
  519. package/dist/data-components/table-grid/pinning/pinning-utils.js +0 -70
  520. package/dist/data-components/table-grid/pinning/pinning-utils.js.map +0 -1
  521. package/dist/data-components/table-grid/pivot/pivot-config-panel-types.js +0 -2
  522. package/dist/data-components/table-grid/pivot/pivot-config-panel-types.js.map +0 -1
  523. package/dist/data-components/table-grid/pivot/pivot-config-panel.js +0 -89
  524. package/dist/data-components/table-grid/pivot/pivot-config-panel.js.map +0 -1
  525. package/dist/data-components/table-grid/pivot/pivot-table.js +0 -26
  526. package/dist/data-components/table-grid/pivot/pivot-table.js.map +0 -1
  527. package/dist/data-components/table-grid/pivot/pivot-types.js +0 -2
  528. package/dist/data-components/table-grid/pivot/pivot-types.js.map +0 -1
  529. package/dist/data-components/table-grid/pivot/pivot-utils.js +0 -150
  530. package/dist/data-components/table-grid/pivot/pivot-utils.js.map +0 -1
  531. package/dist/data-components/table-grid/row/table-grid-row-types.js +0 -2
  532. package/dist/data-components/table-grid/row/table-grid-row-types.js.map +0 -1
  533. package/dist/data-components/table-grid/row/table-grid-row-utils.js +0 -35
  534. package/dist/data-components/table-grid/row/table-grid-row-utils.js.map +0 -1
  535. package/dist/data-components/table-grid/row/table-grid-row.js +0 -68
  536. package/dist/data-components/table-grid/row/table-grid-row.js.map +0 -1
  537. package/dist/data-components/table-grid/selection/selection-types.js +0 -2
  538. package/dist/data-components/table-grid/selection/selection-types.js.map +0 -1
  539. package/dist/data-components/table-grid/selection/selection-utils.js +0 -136
  540. package/dist/data-components/table-grid/selection/selection-utils.js.map +0 -1
  541. package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.js +0 -2
  542. package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.js.map +0 -1
  543. package/dist/data-components/table-grid/sidebar/table-grid-sidebar.js +0 -7
  544. package/dist/data-components/table-grid/sidebar/table-grid-sidebar.js.map +0 -1
  545. package/dist/data-components/table-grid/sorting/sorting.js +0 -45
  546. package/dist/data-components/table-grid/sorting/sorting.js.map +0 -1
  547. package/dist/data-components/table-grid/table-context/table-context-types.js +0 -2
  548. package/dist/data-components/table-grid/table-context/table-context-types.js.map +0 -1
  549. package/dist/data-components/table-grid/table-context/table-context.js +0 -4
  550. package/dist/data-components/table-grid/table-context/table-context.js.map +0 -1
  551. package/dist/data-components/table-grid/table-grid-context.js +0 -258
  552. package/dist/data-components/table-grid/table-grid-context.js.map +0 -1
  553. package/dist/data-components/table-grid/table-grid-types.js +0 -2
  554. package/dist/data-components/table-grid/table-grid-types.js.map +0 -1
  555. package/dist/data-components/table-grid/table-grid.js +0 -144
  556. package/dist/data-components/table-grid/table-grid.js.map +0 -1
  557. package/dist/data-components/table-grid/table-utils.js +0 -116
  558. package/dist/data-components/table-grid/table-utils.js.map +0 -1
  559. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.js +0 -2
  560. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.js.map +0 -1
  561. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.js +0 -61
  562. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.js.map +0 -1
  563. package/dist/experimental-components/contribution-heatmap/contribution-heatmap.js +0 -23
  564. package/dist/experimental-components/contribution-heatmap/contribution-heatmap.js.map +0 -1
  565. package/dist/experimental-components/filter-builder/filter-builder-types.js +0 -2
  566. package/dist/experimental-components/filter-builder/filter-builder-types.js.map +0 -1
  567. package/dist/experimental-components/filter-builder/filter-builder.js +0 -139
  568. package/dist/experimental-components/filter-builder/filter-builder.js.map +0 -1
  569. package/dist/framework-components/appbar/appbar-assets.js +0 -5
  570. package/dist/framework-components/appbar/appbar-assets.js.map +0 -1
  571. package/dist/framework-components/appbar/appbar-types.js +0 -2
  572. package/dist/framework-components/appbar/appbar-types.js.map +0 -1
  573. package/dist/framework-components/appbar/appbar.js +0 -36
  574. package/dist/framework-components/appbar/appbar.js.map +0 -1
  575. package/dist/framework-components/breadcrumbs/breadcrumbs-types.js +0 -2
  576. package/dist/framework-components/breadcrumbs/breadcrumbs-types.js.map +0 -1
  577. package/dist/framework-components/breadcrumbs/breadcrumbs.js +0 -31
  578. package/dist/framework-components/breadcrumbs/breadcrumbs.js.map +0 -1
  579. package/dist/framework-components/drawer/drawer-types.js +0 -2
  580. package/dist/framework-components/drawer/drawer-types.js.map +0 -1
  581. package/dist/framework-components/drawer/drawer.js +0 -10
  582. package/dist/framework-components/drawer/drawer.js.map +0 -1
  583. package/dist/framework-components/scaffold/scaffold-context.js +0 -10
  584. package/dist/framework-components/scaffold/scaffold-context.js.map +0 -1
  585. package/dist/framework-components/scaffold/scaffold-types.js +0 -2
  586. package/dist/framework-components/scaffold/scaffold-types.js.map +0 -1
  587. package/dist/framework-components/scaffold/scaffold.js +0 -76
  588. package/dist/framework-components/scaffold/scaffold.js.map +0 -1
  589. package/dist/framework-components/sidebar/sidebar-assets.js +0 -4
  590. package/dist/framework-components/sidebar/sidebar-assets.js.map +0 -1
  591. package/dist/framework-components/sidebar/sidebar-context.js +0 -9
  592. package/dist/framework-components/sidebar/sidebar-context.js.map +0 -1
  593. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.js +0 -2
  594. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.js.map +0 -1
  595. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.js +0 -12
  596. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.js.map +0 -1
  597. package/dist/framework-components/sidebar/sidebar-types.js +0 -2
  598. package/dist/framework-components/sidebar/sidebar-types.js.map +0 -1
  599. package/dist/framework-components/sidebar/sidebar.js +0 -42
  600. package/dist/framework-components/sidebar/sidebar.js.map +0 -1
  601. package/dist/hooks/useDynamicVirtualList.js +0 -208
  602. package/dist/hooks/useDynamicVirtualList.js.map +0 -1
  603. package/dist/hooks/useFixedVirtualList.js +0 -64
  604. package/dist/hooks/useFixedVirtualList.js.map +0 -1
  605. package/dist/hooks/useShortcut.js +0 -86
  606. package/dist/hooks/useShortcut.js.map +0 -1
  607. package/dist/hooks/useTour/useTour-context-internal.js +0 -7
  608. package/dist/hooks/useTour/useTour-context-internal.js.map +0 -1
  609. package/dist/hooks/useTour/useTour-context.js +0 -54
  610. package/dist/hooks/useTour/useTour-context.js.map +0 -1
  611. package/dist/hooks/useTour/useTour-types.js +0 -2
  612. package/dist/hooks/useTour/useTour-types.js.map +0 -1
  613. package/dist/hooks/useTour/useTour.js +0 -408
  614. package/dist/hooks/useTour/useTour.js.map +0 -1
  615. package/dist/hooks/useVirtualListScroll.js +0 -79
  616. package/dist/hooks/useVirtualListScroll.js.map +0 -1
  617. package/dist/index.js +0 -63
  618. package/dist/index.js.map +0 -1
  619. package/dist/providers/ai-assistant/ai-assistant-prompts.js +0 -98
  620. package/dist/providers/ai-assistant/ai-assistant-prompts.js.map +0 -1
  621. package/dist/providers/ai-assistant/ai-assistant-types.js +0 -5
  622. package/dist/providers/ai-assistant/ai-assistant-types.js.map +0 -1
  623. package/dist/providers/ai-assistant/ai-assistant-validator.js +0 -74
  624. package/dist/providers/ai-assistant/ai-assistant-validator.js.map +0 -1
  625. package/dist/providers/ai-assistant/ai-chat-panel-types.js +0 -2
  626. package/dist/providers/ai-assistant/ai-chat-panel-types.js.map +0 -1
  627. package/dist/providers/ai-assistant/ai-chat-panel.js +0 -111
  628. package/dist/providers/ai-assistant/ai-chat-panel.js.map +0 -1
  629. package/dist/providers/shortcut/shortcut-context.js +0 -7
  630. package/dist/providers/shortcut/shortcut-context.js.map +0 -1
  631. package/dist/providers/shortcut/shortcut-provider.js +0 -267
  632. package/dist/providers/shortcut/shortcut-provider.js.map +0 -1
  633. package/dist/providers/theme/index.js +0 -2
  634. package/dist/providers/theme/index.js.map +0 -1
  635. package/dist/providers/theme/theme-provider-types.js +0 -2
  636. package/dist/providers/theme/theme-provider-types.js.map +0 -1
  637. package/dist/providers/theme/themeProvider.js +0 -17
  638. package/dist/providers/theme/themeProvider.js.map +0 -1
  639. package/dist/test/vitest.utils.js +0 -2
  640. package/dist/test/vitest.utils.js.map +0 -1
  641. package/dist/types/global-types.js +0 -10
  642. package/dist/types/global-types.js.map +0 -1
  643. package/dist/types/storybook-types.js +0 -2
  644. package/dist/types/storybook-types.js.map +0 -1
  645. package/dist/utility-components/avatar/avatar-types.js +0 -2
  646. package/dist/utility-components/avatar/avatar-types.js.map +0 -1
  647. package/dist/utility-components/avatar/avatar.js +0 -10
  648. package/dist/utility-components/avatar/avatar.js.map +0 -1
  649. package/dist/utility-components/chip/chip-types.js +0 -2
  650. package/dist/utility-components/chip/chip-types.js.map +0 -1
  651. package/dist/utility-components/chip/chip.js +0 -11
  652. package/dist/utility-components/chip/chip.js.map +0 -1
  653. package/dist/utility-components/helper-text/helper-text-types.js +0 -2
  654. package/dist/utility-components/helper-text/helper-text-types.js.map +0 -1
  655. package/dist/utility-components/helper-text/helper-text.js +0 -12
  656. package/dist/utility-components/helper-text/helper-text.js.map +0 -1
  657. package/dist/utility-components/icon/icon-assets.js +0 -95
  658. package/dist/utility-components/icon/icon-assets.js.map +0 -1
  659. package/dist/utility-components/icon/icon-types.js +0 -2
  660. package/dist/utility-components/icon/icon-types.js.map +0 -1
  661. package/dist/utility-components/icon/icon.js +0 -28
  662. package/dist/utility-components/icon/icon.js.map +0 -1
  663. package/dist/utility-components/label/label-types.js +0 -2
  664. package/dist/utility-components/label/label-types.js.map +0 -1
  665. package/dist/utility-components/label/label.js +0 -10
  666. package/dist/utility-components/label/label.js.map +0 -1
  667. package/dist/utility-components/overlay-panel/overlay-panel-types.js +0 -2
  668. package/dist/utility-components/overlay-panel/overlay-panel-types.js.map +0 -1
  669. package/dist/utility-components/overlay-panel/overlay-panel.js +0 -98
  670. package/dist/utility-components/overlay-panel/overlay-panel.js.map +0 -1
  671. package/dist/utility-components/overlay-panel/use-focus-trap.js +0 -61
  672. package/dist/utility-components/overlay-panel/use-focus-trap.js.map +0 -1
  673. package/dist/utility-components/skeleton/skeleton-types.js +0 -2
  674. package/dist/utility-components/skeleton/skeleton-types.js.map +0 -1
  675. package/dist/utility-components/skeleton/skeleton.js +0 -14
  676. package/dist/utility-components/skeleton/skeleton.js.map +0 -1
  677. package/dist/utility-components/stack/stack-types.js +0 -2
  678. package/dist/utility-components/stack/stack-types.js.map +0 -1
  679. package/dist/utility-components/stack/stack.js +0 -12
  680. package/dist/utility-components/stack/stack.js.map +0 -1
  681. package/dist/utility-components/toast/toast-types.js +0 -2
  682. package/dist/utility-components/toast/toast-types.js.map +0 -1
  683. package/dist/utility-components/toast/toast.js +0 -21
  684. package/dist/utility-components/toast/toast.js.map +0 -1
  685. package/dist/utils/general.js +0 -27
  686. package/dist/utils/general.js.map +0 -1
  687. package/dist/utils/shortcut-utils.js +0 -164
  688. package/dist/utils/shortcut-utils.js.map +0 -1
@@ -1,68 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useEffect, useState, useMemo } from "react";
3
- import { Icon } from "../../utility-components/icon/icon";
4
- import style from "./list.module.css";
5
- import { getFullOptions, handleKeyNavigation, highlightMatch } from "./list-utils";
6
- import { TextInput } from "../input/text/input-text";
7
- import { useFixedVirtualList } from "../../hooks/useFixedVirtualList";
8
- export const List = ({ id, options, ref: listRef, width, onClick, onKeyDown, multiple = false, selectedIndex = -1, activeIndex = [] }) => {
9
- const [filterValue, setFilterValue] = useState("");
10
- const [localSelectedIndex, setLocalSelectedIndex] = useState(selectedIndex);
11
- useEffect(() => {
12
- setLocalSelectedIndex(selectedIndex);
13
- }, [selectedIndex]);
14
- const { filteredOptions, fullOptions } = useMemo(() => getFullOptions(options, filterValue), [options, filterValue]);
15
- const { virtualItems, containerProps, innerProps, scrollToIndex } = useFixedVirtualList({
16
- items: filteredOptions,
17
- itemHeight: 24,
18
- containerHeight: 200,
19
- overscan: 5,
20
- });
21
- // keep active item visible when external selection changes
22
- useEffect(() => {
23
- if (!activeIndex?.length)
24
- return;
25
- const firstActiveIndex = filteredOptions.findIndex((o) => o.value === activeIndex[0]);
26
- if (firstActiveIndex !== -1) {
27
- scrollToIndex(firstActiveIndex);
28
- }
29
- }, [activeIndex, filteredOptions, scrollToIndex]);
30
- const listClass = {
31
- wrapper: style["rst-list"],
32
- input: style["rst-list-input"],
33
- container: style["rst-list-container"],
34
- virtualScroll: style["rst-list-virtualScroll"],
35
- listItem: style["rst-list-listItem"],
36
- listItemCreate: style["rst-list-listItem-create"],
37
- noElements: style["rst-list-noElements"],
38
- };
39
- return (_jsxs("div", { id: id, ref: listRef, className: listClass.wrapper, "data-component": "list", style: { width }, children: [_jsx("div", { className: listClass.input, children: _jsx(TextInput, { autoFocus: true, value: filterValue, placeholder: "Search...", onChange: (v) => setFilterValue(v ?? ""), onKeyDown: (e) => handleKeyNavigation({
40
- e,
41
- localSelectedIndex,
42
- setLocalSelectedIndex,
43
- filteredOptions,
44
- fullOptions,
45
- onClick,
46
- onKeyDown,
47
- }) }) }), _jsx("div", { ...containerProps, className: listClass.container, tabIndex: 0, role: "listbox", "aria-label": "List", "aria-multiselectable": multiple, "aria-activedescendant": filteredOptions[localSelectedIndex]?.value, onKeyDown: (e) => handleKeyNavigation({
48
- e,
49
- localSelectedIndex,
50
- setLocalSelectedIndex,
51
- filteredOptions,
52
- fullOptions,
53
- onClick,
54
- onKeyDown,
55
- }), children: _jsx("div", { ...innerProps, className: listClass.virtualScroll, children: filteredOptions.length === 0 ? (_jsx("div", { className: listClass.noElements, children: "No elements" })) : (virtualItems.map(({ item, index, offsetTop }) => {
56
- const isActive = activeIndex.includes(item.value);
57
- const isSelected = localSelectedIndex === index;
58
- return (_jsxs("li", { role: "option", id: item.value, "aria-selected": isSelected, tabIndex: -1, className: `${listClass.listItem} ${isActive ? "selected-item" : ""}`, "aria-label": item.value, style: {
59
- height: 24,
60
- lineHeight: "20px",
61
- transform: `translateY(${offsetTop}px)`,
62
- }, onClick: () => {
63
- onClick?.(item);
64
- setLocalSelectedIndex(index);
65
- }, children: [_jsxs("span", { className: listClass.listItemCreate, children: [item.leadingVisual && _jsx(Icon, { src: item.leadingVisual }), highlightMatch(item.value, filterValue)] }), isActive && _jsx(Icon, { src: "check" })] }, item.value));
66
- })) }) })] }));
67
- };
68
- //# sourceMappingURL=list.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/components/list/list.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,MAAM,CAAC,MAAM,IAAI,GAAwB,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,GAAG,KAAK,EAAE,aAAa,GAAG,CAAC,CAAC,EAAE,WAAW,GAAG,EAAE,EAAE,EAAE,EAAE;IAC5J,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACnD,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC;IA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C,CAAC;wBAClD,MAAM,UAAU,GAAG,kBAAkB,KAAK,KAAK,CAAC;wBAEhD,OAAO,CACL,cAEE,IAAI,EAAC,QAAQ,EACb,EAAE,EAAE,IAAI,CAAC,KAAK,mBACC,UAAU,EACzB,QAAQ,EAAE,CAAC,CAAC,EACZ,SAAS,EAAE,GAAG,SAAS,CAAC,QAAQ,IAAI,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,EAAE,gBACzD,IAAI,CAAC,KAAK,EACtB,KAAK,EAAE;gCACL,MAAM,EAAE,EAAE;gCACV,UAAU,EAAE,MAAM;gCAClB,SAAS,EAAE,cAAc,SAAS,KAAK;6BACxC,EACD,OAAO,EAAE,GAAG,EAAE;gCACZ,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC;gCAChB,qBAAqB,CAAC,KAAK,CAAC,CAAC;4BAC/B,CAAC,aAED,gBAAM,SAAS,EAAE,SAAS,CAAC,cAAc,aACtC,IAAI,CAAC,aAAa,IAAI,KAAC,IAAI,IAAC,GAAG,EAAE,IAAI,CAAC,aAAa,GAAI,EACvD,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,IACnC,EAEN,QAAQ,IAAI,KAAC,IAAI,IAAC,GAAG,EAAC,OAAO,GAAG,KAtB5B,IAAI,CAAC,KAAK,CAuBZ,CACN,CAAC;oBACJ,CAAC,CAAC,CACH,GACG,GACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,48 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useState } from "react";
3
- import { AnchoredOverlay } from "../anchored-overlay/anchored-overlay";
4
- import Menu from "./menu";
5
- import styles from "./anchored-navigation-menu.module.css";
6
- import { Button } from "../button/button";
7
- export const MenuComponent = ({ items, anchor, isOpen, onClose, onItemClick, width = 320, initialTitle = "", isClosingOnSelect = false, variant = "stack", position, align, }) => {
8
- const [stack, setStack] = useState([{ title: initialTitle, items }]);
9
- const current = stack[stack.length - 1];
10
- const goToSubmenu = (item) => {
11
- if (!item.children)
12
- return;
13
- setStack((s) => [...s, { title: item.label, items: item.children }]);
14
- };
15
- const pop = () => {
16
- setStack((s) => (s.length > 1 ? s.slice(0, -1) : s));
17
- };
18
- const handleSelect = (item) => {
19
- if (variant === "stack" && item.children) {
20
- goToSubmenu(item);
21
- return;
22
- }
23
- if (variant === "flyout" && item.children) {
24
- return;
25
- }
26
- onItemClick?.(item);
27
- if (isClosingOnSelect)
28
- onClose?.();
29
- };
30
- const renderFlyoutItem = (it) => {
31
- if (it.type === "separator")
32
- return _jsx(Menu.Separator, {}, it.id);
33
- if (it.children && it.children.length > 0) {
34
- return (_jsx(Menu.Submenu, { trigger: _jsx(Menu.Item, { label: it.label, leadingVisual: it.leadingVisual, disabled: it.disabled, shortcut: it.shortcut, children: it.children }), children: it.children.map(renderFlyoutItem) }, it.id));
35
- }
36
- return (_jsx(Menu.Item, { label: it.label, leadingVisual: it.leadingVisual, disabled: it.disabled, shortcut: it.shortcut, content: it.content, onClick: () => handleSelect(it) }, it.id));
37
- };
38
- const renderStackItem = (it) => {
39
- if (it.type === "separator")
40
- return _jsx(Menu.Separator, {}, it.id);
41
- return (_jsx(Menu.Item, { label: it.label, leadingVisual: it.leadingVisual, disabled: it.disabled, shortcut: it.shortcut, children: it.children, content: it.content, onClick: () => handleSelect(it) }, it.id));
42
- };
43
- const title = variant === "stack" ? current.title : initialTitle;
44
- const showBack = variant === "stack" && stack.length > 1;
45
- return (_jsx(AnchoredOverlay, { isOpen: isOpen, onClose: onClose, anchor: anchor, position: position, align: align, target: _jsxs("div", { className: styles["rst-anchored-navigation"], style: { width }, role: "menu", children: [_jsxs("div", { className: styles["rst-anchored-navigation-header"], children: [_jsx("div", { className: styles["rst-anchored-navigation-back"], children: showBack ? _jsx(Button, { leadingVisual: "arrow-left", variant: "invisible", onClick: pop, "aria-label": "Back" }) : _jsx("div", { style: { width: 16 } }) }), _jsx("div", { className: styles["rst-anchored-navigation-title"], children: title }), _jsx("div", { className: styles["rst-anchored-navigation-close"], children: _jsx(Button, { leadingVisual: "close", variant: "invisible", onClick: onClose, "aria-label": "Close" }) })] }), _jsx("div", { className: styles["rst-anchored-navigation-content"], children: variant === "stack" ? current.items.map(renderStackItem) : items.map(renderFlyoutItem) })] }) }));
46
- };
47
- export default MenuComponent;
48
- //# sourceMappingURL=anchored-navigation-menu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"anchored-navigation-menu.js","sourceRoot":"","sources":["../../../src/components/menu/anchored-navigation-menu.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,MAAM,MAAM,uCAAuC,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAiB1C,MAAM,CAAC,MAAM,aAAa,GAAiC,CAAC,EAC1D,KAAK,EACL,MAAM,EACN,MAAM,EACN,OAAO,EACP,WAAW,EACX,KAAK,GAAG,GAAG,EACX,YAAY,GAAG,EAAE,EACjB,iBAAiB,GAAG,KAAK,EACzB,OAAO,GAAG,OAAO,EACjB,QAAQ,EACR,KAAK,GACN,EAAE,EAAE;IACH,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAA0C,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IAE9G,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAExC,MAAM,WAAW,GAAG,CAAC,IAAc,EAAE,EAAE;QACrC,IAAI,CAAC,IAAI,CAAC,QAAQ;YAAE,OAAO;QAC3B,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK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: "New File", leadingVisual: "file" },
8
- { id: "1-2", label: "Open", leadingVisual: "folder" },
9
- {
10
- id: "1-3",
11
- label: "Recent",
12
- children: [
13
- { id: "1-3-1", label: "project-a" },
14
- { id: "1-3-2", label: "project-b" },
15
- ],
16
- },
17
- ],
18
- },
19
- {
20
- id: "2",
21
- label: "Edit",
22
- children: [
23
- { id: "2-1", label: "Undo" },
24
- { id: "2-2", label: "Redo" },
25
- ],
26
- },
27
- { id: "3", label: "View" },
28
- { id: "sep-1", type: "separator", label: "" },
29
- {
30
- id: "custom-1",
31
- content: (_jsxs("div", { style: { display: "flex", gap: 12, alignItems: "center", padding: "4px 0" }, children: [_jsx("div", { style: { width: 32, height: 32, borderRadius: 4, backgroundColor: "var(--rst-backgroundColor-hover)" } }), _jsxs("div", { children: [_jsx("div", { style: { fontWeight: 600, fontSize: 13 }, children: "Custom Component" }), _jsx("div", { style: { fontSize: 11, color: "var(--rst-fontColor-muted)" }, children: "Example node" })] })] })),
32
- },
33
- { id: "4", label: "Help" },
34
- ];
35
- //# sourceMappingURL=menu-assets.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"menu-assets.js","sourceRoot":"","sources":["../../../src/components/menu/menu-assets.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,MAAM,aAAa,GAAe;IACvC;QACE,EAAE,EAAE,GAAG;QACP,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE;YACR,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE;YACvD,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE;YACrD;gBACE,EAAE,EAAE,KAAK;gBACT,KAAK,EAAE,QAAQ;gBACf,QAAQ,EAAE;oBACR,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE;oBACnC,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE;iBACpC;aACF;SACF;KACF;IACD;QACE,EAAE,EAAE,GAAG;QACP,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE;YACR,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE;YAC5B,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE;SAC7B;KACF;IACD,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE;IAC1B,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,EAAE;IAC7C;QACE,EAAE,EAAE,UAAU;QACd,OAAO,EAAE,CACP,eAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,aAC9E,cAAK,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE,eAAe,EAAE,kCAAkC,EAAE,GAAI,EAC/G,0BACE,cAAK,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE,iCAAwB,EACrE,cAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,4BAA4B,EAAE,6BAAoB,IACjF,IACF,CACP;KACF;IACD,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE;CAC3B,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=menu-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"menu-types.js","sourceRoot":"","sources":["../../../src/components/menu/menu-types.ts"],"names":[],"mappings":""}
@@ -1,86 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React, { useState, useRef } from "react";
3
- import { AnchoredOverlay } from "../anchored-overlay/anchored-overlay";
4
- import { Icon } from "../../utility-components/icon/icon";
5
- import { Typography } from "../typography/typography";
6
- import { KbdGroup } from "../kbd-group/kbd-group";
7
- import styles from "./menu.module.css";
8
- // Main Menu component
9
- const MenuRoot = ({ children, className, ...props }) => {
10
- const menuClassNames = [styles["rst-menu"], className].filter(Boolean).join(" ");
11
- return (_jsx("div", { className: menuClassNames, role: "menu", ...props, children: children }));
12
- };
13
- // Menu Item component
14
- const MenuItemComponent = ({ label, children, disabled = false, leadingVisual, shortcut, onClick, content, id, ...props }) => {
15
- const hasSubmenu = children && children.length >= 1;
16
- console.log("Rendering MenuItem:", label, content);
17
- const handleClick = () => {
18
- if (disabled)
19
- return;
20
- onClick?.({ label, disabled, leadingVisual, shortcut });
21
- };
22
- const handleKeyDown = (e) => {
23
- if ((e.key === "Enter" || e.key === " ") && !disabled) {
24
- e.preventDefault();
25
- handleClick();
26
- }
27
- };
28
- const menuItemClassNames = [styles["rst-menu-item"], disabled ? styles["rst-menu-item-disabled"] : ""].filter(Boolean).join(" ");
29
- return (_jsx("div", { className: menuItemClassNames, onClick: handleClick, onKeyDown: handleKeyDown, tabIndex: disabled ? -1 : 0, role: "menuitem", "aria-disabled": disabled, "aria-haspopup": hasSubmenu ? "menu" : undefined, ...props, children: content ? (_jsx(_Fragment, { children: content })) : (_jsxs("div", { className: styles["rst-menu-item-content"], children: [leadingVisual && (_jsx("div", { className: styles["rst-menu-item-leading-visual"], children: _jsx(Icon, { src: leadingVisual, state: "base" }) })), _jsx(Typography, { variant: "body", children: label }), shortcut && (_jsx("div", { className: styles["rst-menu-item-shortcut"], children: _jsx(KbdGroup, { keys: shortcut, showSeparator: false }) })), hasSubmenu && (_jsx("div", { className: styles["rst-menu-item-submenu-indicator"], children: _jsx(Icon, { src: "chevron-right", state: "base" }) }))] })) }, id));
30
- };
31
- // Menu Separator component
32
- const MenuSeparator = ({ className, ...props }) => {
33
- const separatorClassNames = [styles["rst-menu-separator"], className].filter(Boolean).join(" ");
34
- return _jsx("hr", { className: separatorClassNames, role: "separator", ...props });
35
- };
36
- // Menu Submenu component
37
- const MenuSubmenu = ({ trigger, children, position = "right", align = "center", className, ...props }) => {
38
- const [isOpen, setIsOpen] = useState(false);
39
- const parentRef = useRef(null);
40
- const submenuRef = useRef(null);
41
- const handleMouseEnter = () => {
42
- setIsOpen(true);
43
- };
44
- const handleMouseLeave = (e) => {
45
- const submenu = submenuRef.current;
46
- // If the mouse leaves parent but enters submenu, don't close
47
- if (submenu && submenu.contains(e.relatedTarget)) {
48
- return;
49
- }
50
- setIsOpen(false);
51
- };
52
- const handleSubmenuLeave = (e) => {
53
- const parent = parentRef.current;
54
- // If the mouse leaves submenu but goes back to parent, keep open
55
- if (parent && parent.contains(e.relatedTarget)) {
56
- return;
57
- }
58
- setIsOpen(false);
59
- };
60
- const handleKeyDown = (e) => {
61
- if (e.key === "ArrowRight") {
62
- e.preventDefault();
63
- setIsOpen(true);
64
- }
65
- else if (e.key === "ArrowLeft" && isOpen) {
66
- e.preventDefault();
67
- setIsOpen(false);
68
- }
69
- else if (e.key === "Escape") {
70
- e.preventDefault();
71
- setIsOpen(false);
72
- }
73
- };
74
- const submenuClassNames = [styles["rst-menu-submenu"], className].filter(Boolean).join(" ");
75
- // Clone the trigger and add hasSubmenu prop if it's a MenuItem
76
- const triggerWithSubmenuProp = React.isValidElement(trigger) && trigger.type === MenuItemComponent ? React.cloneElement(trigger) : trigger;
77
- return (_jsx("div", { className: submenuClassNames, ...props, children: _jsx(AnchoredOverlay, { isOpen: isOpen, onClose: () => setIsOpen(false), position: position, align: align, anchor: _jsx("div", { ref: parentRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onKeyDown: handleKeyDown, "aria-haspopup": "menu", "aria-expanded": isOpen, children: triggerWithSubmenuProp }), target: _jsx("div", { ref: submenuRef, className: styles["rst-menu"], role: "menu", onMouseLeave: handleSubmenuLeave, children: children }) }) }));
78
- };
79
- // Compound component export
80
- export const Menu = Object.assign(MenuRoot, {
81
- Item: MenuItemComponent,
82
- Separator: MenuSeparator,
83
- Submenu: MenuSubmenu,
84
- });
85
- export default Menu;
86
- //# sourceMappingURL=menu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"menu.js","sourceRoot":"","sources":["../../../src/components/menu/menu.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,sBAAsB;AACtB,MAAM,QAAQ,GAAwB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC1E,MAAM,cAAc,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAEjF,OAAO,CACL,cAAK,SAAS,EAAE,cAAc,EAAE,IAAI,EAAC,MAAM,KAAK,KAAK,YAClD,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,sBAAsB;AACtB,MAAM,iBAAiB,GAAuB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,GAAG,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC/I,MAAM,UAAU,GAAG,QAAQ,IAAI,QAAQ,CAAC,MAAM,IAAI,CAAC,CAAC;IAEpD,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,KAAK,EAAE,OAAO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C1B,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,IAAI,KAAK,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,OAAuC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IAE9I,OAAO,CACL,cAAK,SAAS,EAAE,iBAAiB,KAAM,KAAK,YAC1C,KAAC,eAAe,IACd,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAC/B,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,MAAM,EACJ,cACE,GAAG,EAAE,SAAS,EACd,YAAY,EAAE,gBAAgB,EAC9B,YAAY,EAAE,gBAAgB,EAC9B,SAAS,EAAE,aAAa,mBACV,MAAM,mBACL,MAAM,YAEpB,sBAAsB,GACnB,EAER,MAAM,EACJ,cAAK,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,EAAE,IAAI,EAAC,MAAM,EAAC,YAAY,EAAE,kBAAkB,YAC9F,QAAQ,GACL,GAER,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,4BAA4B;AAC5B,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE;IAC1C,IAAI,EAAE,iBAAiB;IACvB,SAAS,EAAE,aAAa;IACxB,OAAO,EAAE,WAAW;CACrB,CAAC,CAAC;AAEH,eAAe,IAAI,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=otp-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"otp-types.js","sourceRoot":"","sources":["../../../src/components/otp/otp-types.ts"],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- /**
2
- * Focuses the input at the specified index in the ref array.
3
- * @param refs - Array of input element references.
4
- * @param index - Index of the input to focus.
5
- */
6
- export function focusInput(refs, index) {
7
- const input = refs[index];
8
- if (input)
9
- input.focus();
10
- }
11
- /**
12
- * Processes a pasted string and returns an array of characters to fill the OTP input.
13
- * Only numeric digits are retained.
14
- * @param pasted - The pasted string.
15
- * @param length - The length of the OTP input.
16
- * @returns An array of characters to set as input values.
17
- */
18
- export function processPastedValue(pasted, length) {
19
- const clean = pasted.replace(/\D/g, "");
20
- return Array.from({ length }, (_, i) => clean[i] || "");
21
- }
22
- //# sourceMappingURL=otp-utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"otp-utils.js","sourceRoot":"","sources":["../../../src/components/otp/otp-utils.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,UAAU,CACxB,IAAoC,EACpC,KAAa;IAEb,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IAC1B,IAAI,KAAK;QAAE,KAAK,CAAC,KAAK,EAAE,CAAC;AAC3B,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAAC,MAAc,EAAE,MAAc;IAC/D,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACxC,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AAC1D,CAAC"}
@@ -1,85 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useState, useRef, useEffect, useCallback, } from "react";
3
- import "./otp.css";
4
- export const OTPComponent = ({ length = 6, onChange, onComplete, ariaLabel = "One-time password input", className = "", }) => {
5
- const [otp, setOtp] = useState("");
6
- const inputRefs = useRef([]);
7
- const focusInput = useCallback((index) => {
8
- if (index >= 0 && index < length) {
9
- inputRefs.current[index]?.focus();
10
- inputRefs.current[index]?.select();
11
- }
12
- }, [length]);
13
- const handleInput = (e, index) => {
14
- const value = e.currentTarget.value;
15
- if (!/^\d*$/.test(value))
16
- return;
17
- let newOtp = otp;
18
- if (index >= newOtp.length) {
19
- newOtp = newOtp.padEnd(index, "");
20
- }
21
- newOtp = newOtp.substring(0, index) + value + newOtp.substring(index + 1);
22
- newOtp = newOtp.substring(0, length);
23
- setOtp(newOtp);
24
- onChange?.(newOtp);
25
- // Sposta il focus solo se non siamo all'ultimo campo
26
- if (value && index < length - 1) {
27
- focusInput(index + 1);
28
- }
29
- if (newOtp.length === length) {
30
- onComplete?.(newOtp);
31
- }
32
- };
33
- const handleKeyDown = (e, index) => {
34
- if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"].includes(e.key)) {
35
- e.preventDefault();
36
- if (e.key === "ArrowLeft" && index > 0) {
37
- focusInput(index - 1);
38
- }
39
- else if (e.key === "ArrowRight" && index < length - 1) {
40
- focusInput(index + 1);
41
- }
42
- }
43
- if (e.key === "Backspace") {
44
- if (!otp[index] && index > 0) {
45
- focusInput(index - 1);
46
- }
47
- else if (otp[index]) {
48
- const newOtp = otp.substring(0, index) + otp.substring(index + 1);
49
- setOtp(newOtp);
50
- onChange?.(newOtp);
51
- }
52
- }
53
- else if (e.key === "Delete" && index < length - 1) {
54
- focusInput(index + 1);
55
- }
56
- };
57
- const handlePaste = (e) => {
58
- e.preventDefault();
59
- const pasteData = e.clipboardData.getData("text/plain").replace(/\D/g, "");
60
- if (!pasteData)
61
- return;
62
- const newOtp = pasteData.substring(0, length);
63
- setOtp(newOtp);
64
- onChange?.(newOtp);
65
- if (newOtp.length === length) {
66
- onComplete?.(newOtp);
67
- }
68
- const lastFilledIndex = Math.min(pasteData.length, length) - 1;
69
- focusInput(lastFilledIndex);
70
- };
71
- const handleFocus = (index) => {
72
- inputRefs.current[index]?.select();
73
- };
74
- // Focus management
75
- useEffect(() => {
76
- // Solo quando l'OTP è vuoto o non completo
77
- if (otp.length < length) {
78
- focusInput(Math.min(otp.length, length - 1));
79
- }
80
- }, [focusInput, length, otp]);
81
- return (_jsx("div", { className: `otp-container ${className}`, "aria-label": ariaLabel, role: "group", children: Array.from({ length }).map((_, index) => (_jsx("input", { ref: (el) => {
82
- inputRefs.current[index] = el;
83
- }, type: "text", inputMode: "numeric", pattern: "[0-9]*", maxLength: 1, value: otp[index] || "", onInput: (e) => handleInput(e, index), onKeyDown: (e) => handleKeyDown(e, index), onPaste: handlePaste, onFocus: () => handleFocus(index), className: "otp-input", "aria-label": `Digit ${index + 1} of ${length}`, autoComplete: "one-time-code" }, index))) }));
84
- };
85
- //# sourceMappingURL=otp.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"otp.js","sourceRoot":"","sources":["../../../src/components/otp/otp.tsx"],"names":[],"mappings":";AAAA,OAAc,EACZ,QAAQ,EACR,MAAM,EACN,SAAS,EAGT,WAAW,GACZ,MAAM,OAAO,CAAC;AACf,OAAO,WAAW,CAAC;AAGnB,MAAM,CAAC,MAAM,YAAY,GAAuB,CAAC,EAC/C,MAAM,GAAG,CAAC,EACV,QAAQ,EACR,UAAU,EACV,SAAS,GAAG,yBAAyB,EACrC,SAAS,GAAG,EAAE,GACf,EAAE,EAAE;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAS,EAAE,CAAC,CAAC;IAC3C,MAAM,SAAS,GAAG,MAAM,CAAqB,EAAE,CAAC,CAAC;IAEjD,MAAM,UAAU,GAAG,WAAW,CAC5B,CAAC,KAAa,EAAE,EAAE;QAChB,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,GAAG,MAAM,EAAE,CAAC;YACjC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;YAClC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QACrC,CAAC;IACH,CAAC,EACD,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,MAAM,WAAW,GAAG,CAAC,CAAoC,EAAE,KAAa,EAAE,EAAE;QAC1E,MAAM,KAAK,GAAG,CAAC,CAAC,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EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,KAAK,CAAC,EACzC,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,EACjC,SAAS,EAAC,WAAW,gBACT,SAAS,KAAK,GAAG,CAAC,OAAO,MAAM,EAAE,EAC7C,YAAY,EAAC,eAAe,IAfvB,KAAK,CAgBV,CACH,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=select-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"select-types.js","sourceRoot":"","sources":["../../../src/components/select/select-types.tsx"],"names":[],"mappings":""}
@@ -1,52 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // Select.tsx
3
- import { useState, useId } from "react";
4
- import { List } from "../list/list";
5
- import { Button } from "../button/button";
6
- import { AnchoredOverlay } from "../anchored-overlay/anchored-overlay";
7
- import styles from "./select.module.css";
8
- export const Select = ({ value, onChange, options, multiActiveIndex, disabled, multiple = false }) => {
9
- const [isOpen, setIsOpen] = useState(false);
10
- const [selectedIndex, setSelectedIndex] = useState(-1);
11
- const [activeIndex, setActiveIndex] = useState(Array.isArray(value) ? value : [value]);
12
- const listboxId = useId();
13
- const selectOption = (option) => {
14
- if (multiple) {
15
- const current = Array.isArray(value) ? [...value] : [];
16
- const exists = current.includes(option.value);
17
- const newValues = exists ? current.filter((v) => v !== option.value) : [...current, option.value];
18
- onChange?.(newValues);
19
- setActiveIndex(newValues);
20
- }
21
- else {
22
- onChange?.(option.value);
23
- const index = options.findIndex((o) => o.value === option.value);
24
- setSelectedIndex(index);
25
- setActiveIndex([option.value]);
26
- setIsOpen(false);
27
- }
28
- };
29
- const handleClose = () => {
30
- setIsOpen(false);
31
- setSelectedIndex(-1);
32
- };
33
- const selectClass = {
34
- fieldWrapper: styles["rst-field-select-wrapper"],
35
- };
36
- const getDisplayValue = () => {
37
- if (multiple && Array.isArray(value)) {
38
- if (value.length >= 4) {
39
- return "Selected elements: ";
40
- }
41
- const labels = options.filter((o) => value.includes(o.value)).map((o) => o.value);
42
- return labels.length > 0 ? labels.join(", ") : "Select options";
43
- }
44
- else {
45
- const selected = options.find((o) => o.value === value);
46
- return selected?.value || "Select an option";
47
- }
48
- };
49
- return (_jsx("div", { role: "combobox", "aria-expanded": isOpen, "aria-controls": listboxId, "aria-owns": listboxId, "aria-disabled": disabled, "data-component": "combobox", className: selectClass.fieldWrapper, children: _jsx(AnchoredOverlay, { anchor: _jsx(Button, { value: getDisplayValue(), count: multiple && activeIndex.length >= 4 ? activeIndex.length : undefined, onClick: () => setIsOpen((prev) => !prev), "aria-label": "Toggle Select", trailingVisual: "expand", disabled: disabled }), target: _jsx(List, { id: listboxId, options: options, activeIndex: multiActiveIndex || activeIndex, onClick: selectOption, selectedIndex: selectedIndex, multiple: multiple }), isOpen: isOpen, onClose: handleClose, position: "center", align: "bottom" }) }));
50
- };
51
- export default Select;
52
- //# sourceMappingURL=select.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"select.js","sourceRoot":"","sources":["../../../src/components/select/select.tsx"],"names":[],"mappings":";AAAA,aAAa;AACb,OAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGpC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAA0B,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,GAAG,KAAK,EAAE,EAAE,EAAE;IAC1H,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CA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,EACxB,KAAK,EAAE,QAAQ,IAAI,WAAW,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAC3E,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,gBAC9B,eAAe,EAC1B,cAAc,EAAC,QAAQ,EACvB,QAAQ,EAAE,QAAQ,GAClB,EAEJ,MAAM,EACJ,KAAC,IAAI,IACH,EAAE,EAAE,SAAS,EACb,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,gBAAgB,IAAI,WAAW,EAC5C,OAAO,EAAE,YAAY,EACrB,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,QAAQ,GAClB,EAEJ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAC,QAAQ,EACjB,KAAK,EAAC,QAAQ,GACd,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=tag-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tag-types.js","sourceRoot":"","sources":["../../../src/components/tag/tag-types.tsx"],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import styles from "./tag.module.css";
3
- import { Icon } from "../../utility-components/icon/icon";
4
- import { Button } from "../button/button";
5
- import Typography from "../typography/typography";
6
- export const Tag = ({ value, src, state, clearable = false, onClear }) => {
7
- const tagClass = {
8
- tag: `${styles["rst-tag"]} ${styles[`rst-tag-${state}`]} ${clearable ? styles["rst-tag-clearable"] : ""}`,
9
- };
10
- const handleClear = () => {
11
- if (clearable && onClear)
12
- onClear();
13
- };
14
- return (_jsxs("span", { className: tagClass.tag, children: [src && _jsx(Icon, { src: src }), _jsx(Typography, { variant: "caption", children: value }), clearable && _jsx(Button, { leadingVisual: "delete", onClick: handleClear, "aria-label": "Rimuovi tag", variant: "invisible", size: "small" })] }));
15
- };
16
- //# sourceMappingURL=tag.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tag.js","sourceRoot":"","sources":["../../../src/components/tag/tag.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAEtC,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAElD,MAAM,CAAC,MAAM,GAAG,GAAuB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,GAAG,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IAC3F,MAAM,QAAQ,GAAG;QACf,GAAG,EAAE,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,MAAM,CAAC,WAAW,KAAK,EAAE,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;KAC1G,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,IAAI,SAAS,IAAI,OAAO;YAAE,OAAO,EAAE,CAAC;IACtC,CAAC,CAAC;IAEF,OAAO,CACL,gBAAM,SAAS,EAAE,QAAQ,CAAC,GAAG,aAC1B,GAAG,IAAI,KAAC,IAAI,IAAC,GAAG,EAAE,GAAG,GAAI,EAC1B,KAAC,UAAU,IAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,GAAI,EAClD,SAAS,IAAI,KAAC,MAAM,IAAC,aAAa,EAAC,QAAQ,EAAC,OAAO,EAAE,WAAW,gBAAa,aAAa,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,OAAO,GAAU,IACjI,CACR,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=textarea-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"textarea-types.js","sourceRoot":"","sources":["../../../src/components/textarea/textarea-types.ts"],"names":[],"mappings":""}
@@ -1,19 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useId } from "react";
3
- import { Label } from "../../utility-components/label/label";
4
- import { HelperText } from "../../utility-components/helper-text/helper-text";
5
- import styles from "./textarea.module.css";
6
- export const Textarea = ({ value, onChange, onKeyDown, label, helperText, placeholder, ariaLabel, ref, disabled, size, rows = 3 }) => {
7
- const textareaId = useId();
8
- const helperId = `${textareaId}-helper`;
9
- const textareaClass = {
10
- fieldWrapper: styles["rst-textareaField-wrapper"],
11
- textareaWrapper: `${styles["rst-textarea-wrapper"]} ${size ? styles[`rst-textarea-${size}`] : ""}`,
12
- textarea: styles["rst-textarea"],
13
- };
14
- const onChangeHandler = (event) => {
15
- onChange?.(event.target.value);
16
- };
17
- return (_jsxs("div", { className: textareaClass.fieldWrapper, children: [label && _jsx(Label, { label: label, id: textareaId, disabled: disabled }), _jsx("textarea", { id: textareaId, value: value, className: textareaClass.textarea, placeholder: placeholder, onChange: onChangeHandler, onKeyDown: onKeyDown, "aria-label": ariaLabel, "aria-describedby": helperText ? helperId : undefined, ref: ref, disabled: disabled, rows: rows }), helperText && _jsx(HelperText, { helperText: helperText, id: helperId, disabled: disabled })] }));
18
- };
19
- //# sourceMappingURL=textarea.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"textarea.js","sourceRoot":"","sources":["../../../src/components/textarea/textarea.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAE9E,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,MAAM,CAAC,MAAM,QAAQ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QAAQ,EAAE,QAAQ,EAAE,QAAQ,GAAI,IACnF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=toast-group-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toast-group-types.js","sourceRoot":"","sources":["../../../src/components/toast-group/toast-group-types.tsx"],"names":[],"mappings":""}
@@ -1,25 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import styles from "./toast-group.module.css";
3
- import Toast from "../../utility-components/toast/toast";
4
- const ToastGroup = ({ toasts, onRemove }) => {
5
- const toastClass = {
6
- toastGroupWrapper: styles["rst-toastGroupWrapper"],
7
- toastWrapper: `${styles["rst-toastWrapper"]}`,
8
- };
9
- return (_jsx("div", { className: toastClass.toastGroupWrapper, children: toasts.map((toast, index) => {
10
- const scale = 1 - index * 0.05; // Scale toast
11
- const translateY = index * -8; // Vertical scale
12
- const translateStart = index * -70; // Translation on hover
13
- const opacity = index < 3 ? 1 - index * 0.1 : 0; // hide more than 3
14
- const zIndex = toasts.length - index; // Z-index manager
15
- return (_jsx("div", { className: toastClass.toastWrapper, style: {
16
- "--rst-toast-scale": scale,
17
- "--rst-toast-translateY": `${translateY}px`,
18
- "--rst-toast-opacity": opacity,
19
- "--rst-toast-translate-start": `${translateStart}px`,
20
- zIndex: zIndex,
21
- }, children: _jsx(Toast, { ...toast, onRemove: onRemove }) }, toast.id));
22
- }) }));
23
- };
24
- export default ToastGroup;
25
- //# sourceMappingURL=toast-group.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toast-group.js","sourceRoot":"","sources":["../../../src/components/toast-group/toast-group.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAE9C,OAAO,KAAK,MAAM,sCAAsC,CAAC;AAEzD,MAAM,UAAU,GAA8B,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE;IACrE,MAAM,UAAU,GAAG;QACjB,iBAAiB,EAAE,MAAM,CAAC,uBAAuB,CAAC;QAClD,YAAY,EAAE,GAAG,MAAM,CAAC,kBAAkB,CAAC,EAAE;KAC9C,CAAC;IAEF,OAAO,CACL,cAAK,SAAS,EAAE,UAAU,CAAC,iBAAiB,YACzC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;YAC3B,MAAM,KAAK,GAAG,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,cAAc;YAC9C,MAAM,UAAU,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB;YAChD,MAAM,cAAc,GAAG,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC,uBAAuB;YAC3D,MAAM,OAAO,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,mBAAmB;YACpE,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,kBAAkB;YAExD,OAAO,CACL,cAEE,SAAS,EAAE,UAAU,CAAC,YAAY,EAClC,KAAK,EACH;oBACE,mBAAmB,EAAE,KAAK;oBAC1B,wBAAwB,EAAE,GAAG,UAAU,IAAI;oBAC3C,qBAAqB,EAAE,OAAO;oBAC9B,6BAA6B,EAAE,GAAG,cAAc,IAAI;oBACpD,MAAM,EAAE,MAAM;iBACQ,YAG1B,KAAC,KAAK,OAAK,KAAK,EAAE,QAAQ,EAAE,QAAQ,GAAI,IAZnC,KAAK,CAAC,EAAE,CAaT,CACP,CAAC;QACJ,CAAC,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,11 +0,0 @@
1
- export const variantToComponent = {
2
- display: "h1",
3
- heading: "h2",
4
- title: "h3",
5
- subtitle: "h4",
6
- body: "h6",
7
- label: "label",
8
- code: "code",
9
- caption: "span",
10
- };
11
- //# sourceMappingURL=typography-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typography-types.js","sourceRoot":"","sources":["../../../src/components/typography/typography-types.tsx"],"names":[],"mappings":"AA8BA,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,MAAM;CACP,CAAC"}