@restio/ui 0.0.8-SNAPSHOT → 0.0.9-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 (677) hide show
  1. package/dist/components/anchored-overlay/anchored-overlay-types.d.ts +1 -1
  2. package/dist/components/anchored-overlay/anchored-overlay-types.js +2 -0
  3. package/dist/components/anchored-overlay/anchored-overlay-types.js.map +1 -0
  4. package/dist/components/anchored-overlay/anchored-overlay.d.ts +2 -2
  5. package/dist/components/anchored-overlay/anchored-overlay.js +67 -0
  6. package/dist/components/anchored-overlay/anchored-overlay.js.map +1 -0
  7. package/dist/components/banner/banner-types.d.ts +1 -1
  8. package/dist/components/banner/banner-types.js +2 -0
  9. package/dist/components/banner/banner-types.js.map +1 -0
  10. package/dist/components/banner/banner.d.ts +2 -2
  11. package/dist/components/banner/banner.js +29 -0
  12. package/dist/components/banner/banner.js.map +1 -0
  13. package/dist/components/button/button-types.d.ts +1 -1
  14. package/dist/components/button/button-types.js +2 -0
  15. package/dist/components/button/button-types.js.map +1 -0
  16. package/dist/components/button/button.d.ts +2 -2
  17. package/dist/components/button/button.js +20 -0
  18. package/dist/components/button/button.js.map +1 -0
  19. package/dist/components/button-group/button-group-types.js +2 -0
  20. package/dist/components/button-group/button-group-types.js.map +1 -0
  21. package/dist/components/button-group/button-group.d.ts +2 -2
  22. package/dist/components/button-group/button-group.js +16 -0
  23. package/dist/components/button-group/button-group.js.map +1 -0
  24. package/dist/components/checkbox/checkbox-types.d.ts +1 -1
  25. package/dist/components/checkbox/checkbox-types.js +2 -0
  26. package/dist/components/checkbox/checkbox-types.js.map +1 -0
  27. package/dist/components/checkbox/checkbox.d.ts +2 -2
  28. package/dist/components/checkbox/checkbox.js +19 -0
  29. package/dist/components/checkbox/checkbox.js.map +1 -0
  30. package/dist/components/code-block/code-block.d.ts +1 -1
  31. package/dist/components/code-block/code-block.js +9 -0
  32. package/dist/components/code-block/code-block.js.map +1 -0
  33. package/dist/components/file-upload/file-upload-types.d.ts +1 -1
  34. package/dist/components/file-upload/file-upload-types.js +2 -0
  35. package/dist/components/file-upload/file-upload-types.js.map +1 -0
  36. package/dist/components/file-upload/file-upload-utils.js +10 -0
  37. package/dist/components/file-upload/file-upload-utils.js.map +1 -0
  38. package/dist/components/file-upload/file-upload.d.ts +2 -2
  39. package/dist/components/file-upload/file-upload.js +106 -0
  40. package/dist/components/file-upload/file-upload.js.map +1 -0
  41. package/dist/components/graph/graph-types.js +2 -0
  42. package/dist/components/graph/graph-types.js.map +1 -0
  43. package/dist/components/graph/graph.d.ts +1 -1
  44. package/dist/components/graph/graph.js +21 -0
  45. package/dist/components/graph/graph.js.map +1 -0
  46. package/dist/components/input/date/date-calendar.d.ts +2 -2
  47. package/dist/components/input/date/date-calendar.js +114 -0
  48. package/dist/components/input/date/date-calendar.js.map +1 -0
  49. package/dist/components/input/date/date-input-field.d.ts +2 -2
  50. package/dist/components/input/date/date-input-field.js +61 -0
  51. package/dist/components/input/date/date-input-field.js.map +1 -0
  52. package/dist/components/input/date/date-picker.d.ts +2 -2
  53. package/dist/components/input/date/date-picker.js +35 -0
  54. package/dist/components/input/date/date-picker.js.map +1 -0
  55. package/dist/components/input/date/date-range-input-field.d.ts +2 -2
  56. package/dist/components/input/date/date-range-input-field.js +90 -0
  57. package/dist/components/input/date/date-range-input-field.js.map +1 -0
  58. package/dist/components/input/date/date-range-picker.d.ts +2 -2
  59. package/dist/components/input/date/date-range-picker.js +74 -0
  60. package/dist/components/input/date/date-range-picker.js.map +1 -0
  61. package/dist/components/input/date/date-shortcuts.d.ts +2 -2
  62. package/dist/components/input/date/date-shortcuts.js +47 -0
  63. package/dist/components/input/date/date-shortcuts.js.map +1 -0
  64. package/dist/components/input/date/date-types.d.ts +1 -1
  65. package/dist/components/input/date/date-types.js +2 -0
  66. package/dist/components/input/date/date-types.js.map +1 -0
  67. package/dist/components/input/date/date-utils.d.ts +1 -1
  68. package/dist/components/input/date/date-utils.js +203 -0
  69. package/dist/components/input/date/date-utils.js.map +1 -0
  70. package/dist/components/input/input-types.js +2 -0
  71. package/dist/components/input/input-types.js.map +1 -0
  72. package/dist/components/input/input.d.ts +2 -2
  73. package/dist/components/input/input.js +14 -0
  74. package/dist/components/input/input.js.map +1 -0
  75. package/dist/components/input/number/input-number-types.d.ts +1 -1
  76. package/dist/components/input/number/input-number-types.js +2 -0
  77. package/dist/components/input/number/input-number-types.js.map +1 -0
  78. package/dist/components/input/number/input-number.d.ts +2 -2
  79. package/dist/components/input/number/input-number.js +11 -0
  80. package/dist/components/input/number/input-number.js.map +1 -0
  81. package/dist/components/input/text/input-text-types.d.ts +1 -1
  82. package/dist/components/input/text/input-text-types.js +2 -0
  83. package/dist/components/input/text/input-text-types.js.map +1 -0
  84. package/dist/components/input/text/input-text.d.ts +2 -2
  85. package/dist/components/input/text/input-text.js +8 -0
  86. package/dist/components/input/text/input-text.js.map +1 -0
  87. package/dist/components/kbd/kbd-types.js +2 -0
  88. package/dist/components/kbd/kbd-types.js.map +1 -0
  89. package/dist/components/kbd/kbd.d.ts +2 -2
  90. package/dist/components/kbd/kbd.js +12 -0
  91. package/dist/components/kbd/kbd.js.map +1 -0
  92. package/dist/components/kbd-group/kbd-group-types.js +2 -0
  93. package/dist/components/kbd-group/kbd-group-types.js.map +1 -0
  94. package/dist/components/kbd-group/kbd-group.d.ts +2 -2
  95. package/dist/components/kbd-group/kbd-group.js +15 -0
  96. package/dist/components/kbd-group/kbd-group.js.map +1 -0
  97. package/dist/components/list/list-types.d.ts +1 -1
  98. package/dist/components/list/list-types.js +2 -0
  99. package/dist/components/list/list-types.js.map +1 -0
  100. package/dist/components/list/list-utils.d.ts +4 -4
  101. package/dist/components/list/list-utils.js +73 -0
  102. package/dist/components/list/list-utils.js.map +1 -0
  103. package/dist/components/list/list.d.ts +1 -1
  104. package/dist/components/list/list.js +68 -0
  105. package/dist/components/list/list.js.map +1 -0
  106. package/dist/components/menu/anchored-navigation-menu.d.ts +3 -3
  107. package/dist/components/menu/anchored-navigation-menu.js +48 -0
  108. package/dist/components/menu/anchored-navigation-menu.js.map +1 -0
  109. package/dist/components/menu/menu-assets.d.ts +1 -1
  110. package/dist/components/menu/menu-assets.js +35 -0
  111. package/dist/components/menu/menu-assets.js.map +1 -0
  112. package/dist/components/menu/menu-types.d.ts +2 -2
  113. package/dist/components/menu/menu-types.js +2 -0
  114. package/dist/components/menu/menu-types.js.map +1 -0
  115. package/dist/components/menu/menu.d.ts +2 -2
  116. package/dist/components/menu/menu.js +86 -0
  117. package/dist/components/menu/menu.js.map +1 -0
  118. package/dist/components/otp/otp-types.js +2 -0
  119. package/dist/components/otp/otp-types.js.map +1 -0
  120. package/dist/components/otp/otp-utils.js +22 -0
  121. package/dist/components/otp/otp-utils.js.map +1 -0
  122. package/dist/components/otp/otp.d.ts +3 -2
  123. package/dist/components/otp/otp.js +85 -0
  124. package/dist/components/otp/otp.js.map +1 -0
  125. package/dist/components/select/select-types.d.ts +1 -1
  126. package/dist/components/select/select-types.js +2 -0
  127. package/dist/components/select/select-types.js.map +1 -0
  128. package/dist/components/select/select.d.ts +2 -2
  129. package/dist/components/select/select.js +52 -0
  130. package/dist/components/select/select.js.map +1 -0
  131. package/dist/components/tag/tag-types.d.ts +1 -1
  132. package/dist/components/tag/tag-types.js +2 -0
  133. package/dist/components/tag/tag-types.js.map +1 -0
  134. package/dist/components/tag/tag.d.ts +2 -2
  135. package/dist/components/tag/tag.js +16 -0
  136. package/dist/components/tag/tag.js.map +1 -0
  137. package/dist/components/textarea/textarea-types.d.ts +2 -2
  138. package/dist/components/textarea/textarea-types.js +2 -0
  139. package/dist/components/textarea/textarea-types.js.map +1 -0
  140. package/dist/components/textarea/textarea.d.ts +2 -2
  141. package/dist/components/textarea/textarea.js +19 -0
  142. package/dist/components/textarea/textarea.js.map +1 -0
  143. package/dist/components/toast-group/toast-group-types.d.ts +1 -1
  144. package/dist/components/toast-group/toast-group-types.js +2 -0
  145. package/dist/components/toast-group/toast-group-types.js.map +1 -0
  146. package/dist/components/toast-group/toast-group.d.ts +2 -2
  147. package/dist/components/toast-group/toast-group.js +25 -0
  148. package/dist/components/toast-group/toast-group.js.map +1 -0
  149. package/dist/components/typography/typography-types.d.ts +1 -1
  150. package/dist/components/typography/typography-types.js +11 -0
  151. package/dist/components/typography/typography-types.js.map +1 -0
  152. package/dist/components/typography/typography.d.ts +2 -2
  153. package/dist/components/typography/typography.js +17 -0
  154. package/dist/components/typography/typography.js.map +1 -0
  155. package/dist/custom-components/chat/chat-types.d.ts +1 -1
  156. package/dist/custom-components/chat/chat-types.js +2 -0
  157. package/dist/custom-components/chat/chat-types.js.map +1 -0
  158. package/dist/custom-components/chat/chat.d.ts +1 -1
  159. package/dist/custom-components/chat/chat.js +14 -0
  160. package/dist/custom-components/chat/chat.js.map +1 -0
  161. package/dist/custom-components/layout/layout-types.js +2 -0
  162. package/dist/custom-components/layout/layout-types.js.map +1 -0
  163. package/dist/custom-components/layout/layout.d.ts +2 -2
  164. package/dist/custom-components/layout/layout.js +46 -0
  165. package/dist/custom-components/layout/layout.js.map +1 -0
  166. package/dist/custom-components/layout-builder/layout-builder-constants.js +25 -0
  167. package/dist/custom-components/layout-builder/layout-builder-constants.js.map +1 -0
  168. package/dist/custom-components/layout-builder/layout-builder-schema.js +169 -0
  169. package/dist/custom-components/layout-builder/layout-builder-schema.js.map +1 -0
  170. package/dist/custom-components/layout-builder/layout-builder-templates.js +206 -0
  171. package/dist/custom-components/layout-builder/layout-builder-templates.js.map +1 -0
  172. package/dist/custom-components/layout-builder/layout-builder-types.js +2 -0
  173. package/dist/custom-components/layout-builder/layout-builder-types.js.map +1 -0
  174. package/dist/custom-components/layout-builder/layout-builder-utils.js +251 -0
  175. package/dist/custom-components/layout-builder/layout-builder-utils.js.map +1 -0
  176. package/dist/custom-components/layout-builder/layout-builder-validation.d.ts +8 -2
  177. package/dist/custom-components/layout-builder/layout-builder-validation.js +445 -0
  178. package/dist/custom-components/layout-builder/layout-builder-validation.js.map +1 -0
  179. package/dist/custom-components/layout-builder/layout-builder.d.ts +2 -2
  180. package/dist/custom-components/layout-builder/layout-builder.js +908 -0
  181. package/dist/custom-components/layout-builder/layout-builder.js.map +1 -0
  182. package/dist/custom-components/layout-builder/layout-json-editor-types.d.ts +1 -1
  183. package/dist/custom-components/layout-builder/layout-json-editor-types.js +2 -0
  184. package/dist/custom-components/layout-builder/layout-json-editor-types.js.map +1 -0
  185. package/dist/custom-components/layout-builder/layout-json-editor.d.ts +2 -2
  186. package/dist/custom-components/layout-builder/layout-json-editor.js +103 -0
  187. package/dist/custom-components/layout-builder/layout-json-editor.js.map +1 -0
  188. package/dist/custom-components/layout-builder/stories/hooks/useHistory.js +100 -0
  189. package/dist/custom-components/layout-builder/stories/hooks/useHistory.js.map +1 -0
  190. package/dist/custom-components/markdown/markdown-types.d.ts +3 -3
  191. package/dist/custom-components/markdown/markdown-types.js +2 -0
  192. package/dist/custom-components/markdown/markdown-types.js.map +1 -0
  193. package/dist/custom-components/markdown/markdown-utils.js +10 -0
  194. package/dist/custom-components/markdown/markdown-utils.js.map +1 -0
  195. package/dist/custom-components/markdown/markdown.d.ts +2 -2
  196. package/dist/custom-components/markdown/markdown.js +39 -0
  197. package/dist/custom-components/markdown/markdown.js.map +1 -0
  198. package/dist/custom-components/mindmap/index.d.ts +2 -2
  199. package/dist/custom-components/mindmap/index.js +2 -0
  200. package/dist/custom-components/mindmap/index.js.map +1 -0
  201. package/dist/custom-components/mindmap/mind-tree-types.d.ts +1 -1
  202. package/dist/custom-components/mindmap/mind-tree-types.js +2 -0
  203. package/dist/custom-components/mindmap/mind-tree-types.js.map +1 -0
  204. package/dist/custom-components/mindmap/mind-tree.d.ts +1 -1
  205. package/dist/custom-components/mindmap/mind-tree.js +201 -0
  206. package/dist/custom-components/mindmap/mind-tree.js.map +1 -0
  207. package/dist/custom-components/mindmap/reingold-tilford-algorithm.d.ts +1 -1
  208. package/dist/custom-components/mindmap/reingold-tilford-algorithm.js +277 -0
  209. package/dist/custom-components/mindmap/reingold-tilford-algorithm.js.map +1 -0
  210. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.js +2 -0
  211. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip-types.js.map +1 -0
  212. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.d.ts +2 -2
  213. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.js +32 -0
  214. package/dist/custom-components/shortcut-tooltip/shortcut-tooltip.js.map +1 -0
  215. package/dist/custom-components/timeline/skeleton/timeline-skeleton.d.ts +1 -1
  216. package/dist/custom-components/timeline/skeleton/timeline-skeleton.js +19 -0
  217. package/dist/custom-components/timeline/skeleton/timeline-skeleton.js.map +1 -0
  218. package/dist/custom-components/timeline/timeline-types.js +2 -0
  219. package/dist/custom-components/timeline/timeline-types.js.map +1 -0
  220. package/dist/custom-components/timeline/timeline.d.ts +2 -2
  221. package/dist/custom-components/timeline/timeline.js +64 -0
  222. package/dist/custom-components/timeline/timeline.js.map +1 -0
  223. package/dist/custom-components/workflow/layout/workflow-edge.d.ts +1 -1
  224. package/dist/custom-components/workflow/layout/workflow-edge.js +31 -0
  225. package/dist/custom-components/workflow/layout/workflow-edge.js.map +1 -0
  226. package/dist/custom-components/workflow/layout/workflow-layout-types.d.ts +1 -1
  227. package/dist/custom-components/workflow/layout/workflow-layout-types.js +2 -0
  228. package/dist/custom-components/workflow/layout/workflow-layout-types.js.map +1 -0
  229. package/dist/custom-components/workflow/layout/workflow-layout.d.ts +2 -2
  230. package/dist/custom-components/workflow/layout/workflow-layout.js +284 -0
  231. package/dist/custom-components/workflow/layout/workflow-layout.js.map +1 -0
  232. package/dist/custom-components/workflow/node/workflow-node.d.ts +1 -1
  233. package/dist/custom-components/workflow/node/workflow-node.js +22 -0
  234. package/dist/custom-components/workflow/node/workflow-node.js.map +1 -0
  235. package/dist/custom-components/workflow/panel/workflow-panel-types.d.ts +1 -1
  236. package/dist/custom-components/workflow/panel/workflow-panel-types.js +2 -0
  237. package/dist/custom-components/workflow/panel/workflow-panel-types.js.map +1 -0
  238. package/dist/custom-components/workflow/panel/workflow-panel.d.ts +1 -1
  239. package/dist/custom-components/workflow/panel/workflow-panel.js +53 -0
  240. package/dist/custom-components/workflow/panel/workflow-panel.js.map +1 -0
  241. package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.js +2 -0
  242. package/dist/custom-components/workflow/toolbar/workflow-toolbar-types.js.map +1 -0
  243. package/dist/custom-components/workflow/toolbar/workflow-toolbar.d.ts +1 -1
  244. package/dist/custom-components/workflow/toolbar/workflow-toolbar.js +19 -0
  245. package/dist/custom-components/workflow/toolbar/workflow-toolbar.js.map +1 -0
  246. package/dist/custom-components/workflow/utils/workflow-validation.d.ts +2 -2
  247. package/dist/custom-components/workflow/utils/workflow-validation.js +257 -0
  248. package/dist/custom-components/workflow/utils/workflow-validation.js.map +1 -0
  249. package/dist/custom-components/workflow/workflow-types.d.ts +3 -3
  250. package/dist/custom-components/workflow/workflow-types.js +2 -0
  251. package/dist/custom-components/workflow/workflow-types.js.map +1 -0
  252. package/dist/custom-components/workflow/workflow.d.ts +1 -1
  253. package/dist/custom-components/workflow/workflow.js +125 -0
  254. package/dist/custom-components/workflow/workflow.js.map +1 -0
  255. package/dist/data-components/assets/data-components-asset.js +2 -0
  256. package/dist/data-components/assets/data-components-asset.js.map +1 -0
  257. package/dist/data-components/calendar/calendar-types.d.ts +1 -1
  258. package/dist/data-components/calendar/calendar-types.js +2 -0
  259. package/dist/data-components/calendar/calendar-types.js.map +1 -0
  260. package/dist/data-components/calendar/calendar-utils.js +2 -0
  261. package/dist/data-components/calendar/calendar-utils.js.map +1 -0
  262. package/dist/data-components/calendar/calendar.d.ts +1 -1
  263. package/dist/data-components/calendar/calendar.js +78 -0
  264. package/dist/data-components/calendar/calendar.js.map +1 -0
  265. package/dist/data-components/cell/cell-switch.d.ts +1 -1
  266. package/dist/data-components/cell/cell-switch.js +68 -0
  267. package/dist/data-components/cell/cell-switch.js.map +1 -0
  268. package/dist/data-components/cell/cell-types.d.ts +2 -2
  269. package/dist/data-components/cell/cell-types.js +2 -0
  270. package/dist/data-components/cell/cell-types.js.map +1 -0
  271. package/dist/data-components/cell/cell-utils.js +60 -0
  272. package/dist/data-components/cell/cell-utils.js.map +1 -0
  273. package/dist/data-components/cell/cell.d.ts +1 -1
  274. package/dist/data-components/cell/cell.js +63 -0
  275. package/dist/data-components/cell/cell.js.map +1 -0
  276. package/dist/data-components/chart/chart-types.d.ts +1 -1
  277. package/dist/data-components/chart/chart-types.js +2 -0
  278. package/dist/data-components/chart/chart-types.js.map +1 -0
  279. package/dist/data-components/chart/chart.d.ts +1 -1
  280. package/dist/data-components/chart/chart.js +121 -0
  281. package/dist/data-components/chart/chart.js.map +1 -0
  282. package/dist/data-components/chart/sankey/sankeyChart.d.ts +1 -1
  283. package/dist/data-components/chart/sankey/sankeyChart.js +111 -0
  284. package/dist/data-components/chart/sankey/sankeyChart.js.map +1 -0
  285. package/dist/data-components/data-structure/data-structure-utils.d.ts +1 -1
  286. package/dist/data-components/data-structure/data-structure-utils.js +28 -0
  287. package/dist/data-components/data-structure/data-structure-utils.js.map +1 -0
  288. package/dist/data-components/data-structure/data-structure.d.ts +1 -1
  289. package/dist/data-components/data-structure/data-structure.js +2 -0
  290. package/dist/data-components/data-structure/data-structure.js.map +1 -0
  291. package/dist/data-components/data-structure/stories-assets.d.ts +5 -1
  292. package/dist/data-components/data-structure/stories-assets.js +199 -0
  293. package/dist/data-components/data-structure/stories-assets.js.map +1 -0
  294. package/dist/data-components/form/form-types.d.ts +2 -2
  295. package/dist/data-components/form/form-types.js +2 -0
  296. package/dist/data-components/form/form-types.js.map +1 -0
  297. package/dist/data-components/form/form.d.ts +1 -1
  298. package/dist/data-components/form/form.js +124 -0
  299. package/dist/data-components/form/form.js.map +1 -0
  300. package/dist/data-components/table-grid/aggregation/aggregation-utils.js +31 -0
  301. package/dist/data-components/table-grid/aggregation/aggregation-utils.js.map +1 -0
  302. package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts +1 -1
  303. package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.js +264 -0
  304. package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.js.map +1 -0
  305. package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.d.ts +1 -1
  306. package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.js +306 -0
  307. package/dist/data-components/table-grid/ai-assistant/ai-assistant-mock.js.map +1 -0
  308. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts +1 -1
  309. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.js +2 -0
  310. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.js.map +1 -0
  311. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts +1 -1
  312. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.js +33 -0
  313. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.js.map +1 -0
  314. package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.d.ts +2 -2
  315. package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.js +59 -0
  316. package/dist/data-components/table-grid/ai-assistant/ai-assistant-schema.js.map +1 -0
  317. package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts +1 -1
  318. package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.js +167 -0
  319. package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.js.map +1 -0
  320. package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts +1 -1
  321. package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.js +2 -0
  322. package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.js.map +1 -0
  323. package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.d.ts +2 -2
  324. package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.js +157 -0
  325. package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.js.map +1 -0
  326. package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.js +27 -0
  327. package/dist/data-components/table-grid/external-functionalities/import/csv/autoDetect.js.map +1 -0
  328. package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.d.ts +1 -1
  329. package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.js +21 -0
  330. package/dist/data-components/table-grid/external-functionalities/import/csv/createDataStructureFromFile.js.map +1 -0
  331. package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.js +21 -0
  332. package/dist/data-components/table-grid/external-functionalities/import/csv/csvToObj.js.map +1 -0
  333. package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.js +12 -0
  334. package/dist/data-components/table-grid/external-functionalities/import/csv/detectDelimeter.js.map +1 -0
  335. package/dist/data-components/table-grid/external-functionalities/import/csv/index.d.ts +6 -6
  336. package/dist/data-components/table-grid/external-functionalities/import/csv/index.js +7 -0
  337. package/dist/data-components/table-grid/external-functionalities/import/csv/index.js.map +1 -0
  338. package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.d.ts +1 -1
  339. package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.js +15 -0
  340. package/dist/data-components/table-grid/external-functionalities/import/csv/inferColumns.js.map +1 -0
  341. package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.js +50 -0
  342. package/dist/data-components/table-grid/external-functionalities/import/csv/parseDelimeted.js.map +1 -0
  343. package/dist/data-components/table-grid/footer/table-grid-footer-types.d.ts +1 -1
  344. package/dist/data-components/table-grid/footer/table-grid-footer-types.js +2 -0
  345. package/dist/data-components/table-grid/footer/table-grid-footer-types.js.map +1 -0
  346. package/dist/data-components/table-grid/footer/table-grid-footer.d.ts +1 -1
  347. package/dist/data-components/table-grid/footer/table-grid-footer.js +47 -0
  348. package/dist/data-components/table-grid/footer/table-grid-footer.js.map +1 -0
  349. package/dist/data-components/table-grid/formula/evaluator.js +91 -0
  350. package/dist/data-components/table-grid/formula/evaluator.js.map +1 -0
  351. package/dist/data-components/table-grid/formula/formula-builder-types.d.ts +1 -1
  352. package/dist/data-components/table-grid/formula/formula-builder-types.js +2 -0
  353. package/dist/data-components/table-grid/formula/formula-builder-types.js.map +1 -0
  354. package/dist/data-components/table-grid/formula/formula-builder.d.ts +1 -1
  355. package/dist/data-components/table-grid/formula/formula-builder.js +47 -0
  356. package/dist/data-components/table-grid/formula/formula-builder.js.map +1 -0
  357. package/dist/data-components/table-grid/formula/formula.test.js +50 -0
  358. package/dist/data-components/table-grid/formula/formula.test.js.map +1 -0
  359. package/dist/data-components/table-grid/formula/index.js +40 -0
  360. package/dist/data-components/table-grid/formula/index.js.map +1 -0
  361. package/dist/data-components/table-grid/formula/parser.js +179 -0
  362. package/dist/data-components/table-grid/formula/parser.js.map +1 -0
  363. package/dist/data-components/table-grid/formula/tokenizer.js +140 -0
  364. package/dist/data-components/table-grid/formula/tokenizer.js.map +1 -0
  365. package/dist/data-components/table-grid/formula/types.js +2 -0
  366. package/dist/data-components/table-grid/formula/types.js.map +1 -0
  367. package/dist/data-components/table-grid/header/grouping/group-panel-types.d.ts +1 -1
  368. package/dist/data-components/table-grid/header/grouping/group-panel-types.js +2 -0
  369. package/dist/data-components/table-grid/header/grouping/group-panel-types.js.map +1 -0
  370. package/dist/data-components/table-grid/header/grouping/group-panel.d.ts +1 -1
  371. package/dist/data-components/table-grid/header/grouping/group-panel.js +91 -0
  372. package/dist/data-components/table-grid/header/grouping/group-panel.js.map +1 -0
  373. package/dist/data-components/table-grid/header/table-grid-column-menu.d.ts +1 -1
  374. package/dist/data-components/table-grid/header/table-grid-column-menu.js +84 -0
  375. package/dist/data-components/table-grid/header/table-grid-column-menu.js.map +1 -0
  376. package/dist/data-components/table-grid/header/table-grid-header-types.d.ts +1 -1
  377. package/dist/data-components/table-grid/header/table-grid-header-types.js +2 -0
  378. package/dist/data-components/table-grid/header/table-grid-header-types.js.map +1 -0
  379. package/dist/data-components/table-grid/header/table-grid-header.d.ts +1 -1
  380. package/dist/data-components/table-grid/header/table-grid-header.js +148 -0
  381. package/dist/data-components/table-grid/header/table-grid-header.js.map +1 -0
  382. package/dist/data-components/table-grid/hooks/use-table.d.ts +1 -1
  383. package/dist/data-components/table-grid/hooks/use-table.js +18 -0
  384. package/dist/data-components/table-grid/hooks/use-table.js.map +1 -0
  385. package/dist/data-components/table-grid/pinning/pinning-utils.d.ts +1 -1
  386. package/dist/data-components/table-grid/pinning/pinning-utils.js +70 -0
  387. package/dist/data-components/table-grid/pinning/pinning-utils.js.map +1 -0
  388. package/dist/data-components/table-grid/pivot/pivot-config-panel-types.d.ts +2 -2
  389. package/dist/data-components/table-grid/pivot/pivot-config-panel-types.js +2 -0
  390. package/dist/data-components/table-grid/pivot/pivot-config-panel-types.js.map +1 -0
  391. package/dist/data-components/table-grid/pivot/pivot-config-panel.d.ts +1 -1
  392. package/dist/data-components/table-grid/pivot/pivot-config-panel.js +89 -0
  393. package/dist/data-components/table-grid/pivot/pivot-config-panel.js.map +1 -0
  394. package/dist/data-components/table-grid/pivot/pivot-table.d.ts +1 -1
  395. package/dist/data-components/table-grid/pivot/pivot-table.js +26 -0
  396. package/dist/data-components/table-grid/pivot/pivot-table.js.map +1 -0
  397. package/dist/data-components/table-grid/pivot/pivot-types.d.ts +1 -1
  398. package/dist/data-components/table-grid/pivot/pivot-types.js +2 -0
  399. package/dist/data-components/table-grid/pivot/pivot-types.js.map +1 -0
  400. package/dist/data-components/table-grid/pivot/pivot-utils.d.ts +2 -2
  401. package/dist/data-components/table-grid/pivot/pivot-utils.js +150 -0
  402. package/dist/data-components/table-grid/pivot/pivot-utils.js.map +1 -0
  403. package/dist/data-components/table-grid/row/table-grid-row-types.d.ts +3 -1
  404. package/dist/data-components/table-grid/row/table-grid-row-types.d.ts.map +1 -1
  405. package/dist/data-components/table-grid/row/table-grid-row-types.js +2 -0
  406. package/dist/data-components/table-grid/row/table-grid-row-types.js.map +1 -0
  407. package/dist/data-components/table-grid/row/table-grid-row-utils.d.ts +2 -2
  408. package/dist/data-components/table-grid/row/table-grid-row-utils.js +35 -0
  409. package/dist/data-components/table-grid/row/table-grid-row-utils.js.map +1 -0
  410. package/dist/data-components/table-grid/row/table-grid-row.d.ts +2 -2
  411. package/dist/data-components/table-grid/row/table-grid-row.d.ts.map +1 -1
  412. package/dist/data-components/table-grid/row/table-grid-row.js +68 -0
  413. package/dist/data-components/table-grid/row/table-grid-row.js.map +1 -0
  414. package/dist/data-components/table-grid/selection/selection-types.js +2 -0
  415. package/dist/data-components/table-grid/selection/selection-types.js.map +1 -0
  416. package/dist/data-components/table-grid/selection/selection-utils.d.ts +2 -2
  417. package/dist/data-components/table-grid/selection/selection-utils.js +136 -0
  418. package/dist/data-components/table-grid/selection/selection-utils.js.map +1 -0
  419. package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.js +2 -0
  420. package/dist/data-components/table-grid/sidebar/table-grid-sidebar-types.js.map +1 -0
  421. package/dist/data-components/table-grid/sidebar/table-grid-sidebar.d.ts +1 -1
  422. package/dist/data-components/table-grid/sidebar/table-grid-sidebar.js +7 -0
  423. package/dist/data-components/table-grid/sidebar/table-grid-sidebar.js.map +1 -0
  424. package/dist/data-components/table-grid/sorting/sorting.d.ts +1 -1
  425. package/dist/data-components/table-grid/sorting/sorting.js +45 -0
  426. package/dist/data-components/table-grid/sorting/sorting.js.map +1 -0
  427. package/dist/data-components/table-grid/table-context/table-context-types.d.ts +2 -2
  428. package/dist/data-components/table-grid/table-context/table-context-types.js +2 -0
  429. package/dist/data-components/table-grid/table-context/table-context-types.js.map +1 -0
  430. package/dist/data-components/table-grid/table-context/table-context.d.ts +2 -2
  431. package/dist/data-components/table-grid/table-context/table-context.js +4 -0
  432. package/dist/data-components/table-grid/table-context/table-context.js.map +1 -0
  433. package/dist/data-components/table-grid/table-grid-context.d.ts +2 -2
  434. package/dist/data-components/table-grid/table-grid-context.d.ts.map +1 -1
  435. package/dist/data-components/table-grid/table-grid-context.js +258 -0
  436. package/dist/data-components/table-grid/table-grid-context.js.map +1 -0
  437. package/dist/data-components/table-grid/table-grid-types.d.ts +9 -7
  438. package/dist/data-components/table-grid/table-grid-types.d.ts.map +1 -1
  439. package/dist/data-components/table-grid/table-grid-types.js +2 -0
  440. package/dist/data-components/table-grid/table-grid-types.js.map +1 -0
  441. package/dist/data-components/table-grid/table-grid.d.ts +1 -1
  442. package/dist/data-components/table-grid/table-grid.d.ts.map +1 -1
  443. package/dist/data-components/table-grid/table-grid.js +144 -0
  444. package/dist/data-components/table-grid/table-grid.js.map +1 -0
  445. package/dist/data-components/table-grid/table-utils.d.ts +1 -1
  446. package/dist/data-components/table-grid/table-utils.js +116 -0
  447. package/dist/data-components/table-grid/table-utils.js.map +1 -0
  448. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.js +2 -0
  449. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-types.js.map +1 -0
  450. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.d.ts +1 -1
  451. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.js +61 -0
  452. package/dist/experimental-components/contribution-heatmap/contribution-heatmap-utils.js.map +1 -0
  453. package/dist/experimental-components/contribution-heatmap/contribution-heatmap.d.ts +2 -2
  454. package/dist/experimental-components/contribution-heatmap/contribution-heatmap.js +23 -0
  455. package/dist/experimental-components/contribution-heatmap/contribution-heatmap.js.map +1 -0
  456. package/dist/experimental-components/filter-builder/filter-builder-types.d.ts +1 -1
  457. package/dist/experimental-components/filter-builder/filter-builder-types.js +2 -0
  458. package/dist/experimental-components/filter-builder/filter-builder-types.js.map +1 -0
  459. package/dist/experimental-components/filter-builder/filter-builder.d.ts +3 -2
  460. package/dist/experimental-components/filter-builder/filter-builder.js +139 -0
  461. package/dist/experimental-components/filter-builder/filter-builder.js.map +1 -0
  462. package/dist/framework-components/appbar/appbar-assets.js +5 -0
  463. package/dist/framework-components/appbar/appbar-assets.js.map +1 -0
  464. package/dist/framework-components/appbar/appbar-types.d.ts +1 -1
  465. package/dist/framework-components/appbar/appbar-types.js +2 -0
  466. package/dist/framework-components/appbar/appbar-types.js.map +1 -0
  467. package/dist/framework-components/appbar/appbar.d.ts +2 -2
  468. package/dist/framework-components/appbar/appbar.js +36 -0
  469. package/dist/framework-components/appbar/appbar.js.map +1 -0
  470. package/dist/framework-components/breadcrumbs/breadcrumbs-types.js +2 -0
  471. package/dist/framework-components/breadcrumbs/breadcrumbs-types.js.map +1 -0
  472. package/dist/framework-components/breadcrumbs/breadcrumbs.d.ts +2 -2
  473. package/dist/framework-components/breadcrumbs/breadcrumbs.js +31 -0
  474. package/dist/framework-components/breadcrumbs/breadcrumbs.js.map +1 -0
  475. package/dist/framework-components/drawer/drawer-types.d.ts +2 -2
  476. package/dist/framework-components/drawer/drawer-types.js +2 -0
  477. package/dist/framework-components/drawer/drawer-types.js.map +1 -0
  478. package/dist/framework-components/drawer/drawer.d.ts +2 -2
  479. package/dist/framework-components/drawer/drawer.js +10 -0
  480. package/dist/framework-components/drawer/drawer.js.map +1 -0
  481. package/dist/framework-components/scaffold/scaffold-context.d.ts +2 -2
  482. package/dist/framework-components/scaffold/scaffold-context.js +10 -0
  483. package/dist/framework-components/scaffold/scaffold-context.js.map +1 -0
  484. package/dist/framework-components/scaffold/scaffold-types.d.ts +1 -1
  485. package/dist/framework-components/scaffold/scaffold-types.js +2 -0
  486. package/dist/framework-components/scaffold/scaffold-types.js.map +1 -0
  487. package/dist/framework-components/scaffold/scaffold.d.ts +2 -2
  488. package/dist/framework-components/scaffold/scaffold.js +76 -0
  489. package/dist/framework-components/scaffold/scaffold.js.map +1 -0
  490. package/dist/framework-components/sidebar/sidebar-assets.js +4 -0
  491. package/dist/framework-components/sidebar/sidebar-assets.js.map +1 -0
  492. package/dist/framework-components/sidebar/sidebar-context.d.ts +2 -2
  493. package/dist/framework-components/sidebar/sidebar-context.js +9 -0
  494. package/dist/framework-components/sidebar/sidebar-context.js.map +1 -0
  495. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.js +2 -0
  496. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo-types.js.map +1 -0
  497. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.d.ts +1 -1
  498. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.js +12 -0
  499. package/dist/framework-components/sidebar/sidebar-logo/sidebar-logo.js.map +1 -0
  500. package/dist/framework-components/sidebar/sidebar-types.d.ts +1 -1
  501. package/dist/framework-components/sidebar/sidebar-types.js +2 -0
  502. package/dist/framework-components/sidebar/sidebar-types.js.map +1 -0
  503. package/dist/framework-components/sidebar/sidebar.d.ts +3 -3
  504. package/dist/framework-components/sidebar/sidebar.js +42 -0
  505. package/dist/framework-components/sidebar/sidebar.js.map +1 -0
  506. package/dist/hooks/useDynamicVirtualList.d.ts +76 -0
  507. package/dist/hooks/useDynamicVirtualList.d.ts.map +1 -0
  508. package/dist/hooks/useDynamicVirtualList.js +208 -0
  509. package/dist/hooks/useDynamicVirtualList.js.map +1 -0
  510. package/dist/hooks/useFixedVirtualList.d.ts +1 -1
  511. package/dist/hooks/useFixedVirtualList.js +64 -0
  512. package/dist/hooks/useFixedVirtualList.js.map +1 -0
  513. package/dist/hooks/useShortcut.d.ts +1 -1
  514. package/dist/hooks/useShortcut.js +86 -0
  515. package/dist/hooks/useShortcut.js.map +1 -0
  516. package/dist/hooks/useTour/useTour-context-internal.d.ts +2 -2
  517. package/dist/hooks/useTour/useTour-context-internal.js +7 -0
  518. package/dist/hooks/useTour/useTour-context-internal.js.map +1 -0
  519. package/dist/hooks/useTour/useTour-context.d.ts +3 -3
  520. package/dist/hooks/useTour/useTour-context.js +54 -0
  521. package/dist/hooks/useTour/useTour-context.js.map +1 -0
  522. package/dist/hooks/useTour/useTour-types.d.ts +1 -1
  523. package/dist/hooks/useTour/useTour-types.js +2 -0
  524. package/dist/hooks/useTour/useTour-types.js.map +1 -0
  525. package/dist/hooks/useTour/useTour.d.ts +1 -1
  526. package/dist/hooks/useTour/useTour.js +408 -0
  527. package/dist/hooks/useTour/useTour.js.map +1 -0
  528. package/dist/hooks/useVirtualListScroll.d.ts +1 -1
  529. package/dist/hooks/useVirtualListScroll.js +79 -0
  530. package/dist/hooks/useVirtualListScroll.js.map +1 -0
  531. package/dist/index.d.ts +3 -0
  532. package/dist/index.d.ts.map +1 -1
  533. package/dist/index.js +63 -0
  534. package/dist/index.js.map +1 -0
  535. package/dist/providers/ai-assistant/ai-assistant-prompts.d.ts +1 -1
  536. package/dist/providers/ai-assistant/ai-assistant-prompts.js +98 -0
  537. package/dist/providers/ai-assistant/ai-assistant-prompts.js.map +1 -0
  538. package/dist/providers/ai-assistant/ai-assistant-types.js +5 -0
  539. package/dist/providers/ai-assistant/ai-assistant-types.js.map +1 -0
  540. package/dist/providers/ai-assistant/ai-assistant-validator.d.ts +1 -1
  541. package/dist/providers/ai-assistant/ai-assistant-validator.js +74 -0
  542. package/dist/providers/ai-assistant/ai-assistant-validator.js.map +1 -0
  543. package/dist/providers/ai-assistant/ai-chat-panel-types.d.ts +1 -1
  544. package/dist/providers/ai-assistant/ai-chat-panel-types.js +2 -0
  545. package/dist/providers/ai-assistant/ai-chat-panel-types.js.map +1 -0
  546. package/dist/providers/ai-assistant/ai-chat-panel.d.ts +1 -1
  547. package/dist/providers/ai-assistant/ai-chat-panel.js +111 -0
  548. package/dist/providers/ai-assistant/ai-chat-panel.js.map +1 -0
  549. package/dist/providers/shortcut/shortcut-context.d.ts +2 -2
  550. package/dist/providers/shortcut/shortcut-context.js +7 -0
  551. package/dist/providers/shortcut/shortcut-context.js.map +1 -0
  552. package/dist/providers/shortcut/shortcut-provider.d.ts +1 -1
  553. package/dist/providers/shortcut/shortcut-provider.js +267 -0
  554. package/dist/providers/shortcut/shortcut-provider.js.map +1 -0
  555. package/dist/providers/theme/index.js +2 -0
  556. package/dist/providers/theme/index.js.map +1 -0
  557. package/dist/providers/theme/theme-provider-types.js +2 -0
  558. package/dist/providers/theme/theme-provider-types.js.map +1 -0
  559. package/dist/providers/theme/themeProvider.d.ts +2 -2
  560. package/dist/providers/theme/themeProvider.js +17 -0
  561. package/dist/providers/theme/themeProvider.js.map +1 -0
  562. package/dist/test/vitest.utils.js +2 -0
  563. package/dist/test/vitest.utils.js.map +1 -0
  564. package/dist/types/global-types.js +10 -0
  565. package/dist/types/global-types.js.map +1 -0
  566. package/dist/types/storybook-types.js +2 -0
  567. package/dist/types/storybook-types.js.map +1 -0
  568. package/dist/utility-components/avatar/avatar-types.d.ts +1 -1
  569. package/dist/utility-components/avatar/avatar-types.js +2 -0
  570. package/dist/utility-components/avatar/avatar-types.js.map +1 -0
  571. package/dist/utility-components/avatar/avatar.d.ts +2 -2
  572. package/dist/utility-components/avatar/avatar.js +10 -0
  573. package/dist/utility-components/avatar/avatar.js.map +1 -0
  574. package/dist/utility-components/chip/chip-types.d.ts +2 -2
  575. package/dist/utility-components/chip/chip-types.js +2 -0
  576. package/dist/utility-components/chip/chip-types.js.map +1 -0
  577. package/dist/utility-components/chip/chip.d.ts +2 -2
  578. package/dist/utility-components/chip/chip.js +11 -0
  579. package/dist/utility-components/chip/chip.js.map +1 -0
  580. package/dist/utility-components/helper-text/helper-text-types.d.ts +1 -1
  581. package/dist/utility-components/helper-text/helper-text-types.js +2 -0
  582. package/dist/utility-components/helper-text/helper-text-types.js.map +1 -0
  583. package/dist/utility-components/helper-text/helper-text.d.ts +1 -1
  584. package/dist/utility-components/helper-text/helper-text.js +12 -0
  585. package/dist/utility-components/helper-text/helper-text.js.map +1 -0
  586. package/dist/utility-components/icon/icon-assets.js +95 -0
  587. package/dist/utility-components/icon/icon-assets.js.map +1 -0
  588. package/dist/utility-components/icon/icon-types.d.ts +1 -1
  589. package/dist/utility-components/icon/icon-types.js +2 -0
  590. package/dist/utility-components/icon/icon-types.js.map +1 -0
  591. package/dist/utility-components/icon/icon.d.ts +2 -2
  592. package/dist/utility-components/icon/icon.js +28 -0
  593. package/dist/utility-components/icon/icon.js.map +1 -0
  594. package/dist/utility-components/label/label-types.js +2 -0
  595. package/dist/utility-components/label/label-types.js.map +1 -0
  596. package/dist/utility-components/label/label.d.ts +1 -1
  597. package/dist/utility-components/label/label.js +10 -0
  598. package/dist/utility-components/label/label.js.map +1 -0
  599. package/dist/utility-components/overlay-panel/overlay-panel-types.js +2 -0
  600. package/dist/utility-components/overlay-panel/overlay-panel-types.js.map +1 -0
  601. package/dist/utility-components/overlay-panel/overlay-panel.d.ts +2 -2
  602. package/dist/utility-components/overlay-panel/overlay-panel.js +98 -0
  603. package/dist/utility-components/overlay-panel/overlay-panel.js.map +1 -0
  604. package/dist/utility-components/overlay-panel/use-focus-trap.d.ts +1 -1
  605. package/dist/utility-components/overlay-panel/use-focus-trap.js +61 -0
  606. package/dist/utility-components/overlay-panel/use-focus-trap.js.map +1 -0
  607. package/dist/utility-components/skeleton/skeleton-types.js +2 -0
  608. package/dist/utility-components/skeleton/skeleton-types.js.map +1 -0
  609. package/dist/utility-components/skeleton/skeleton.d.ts +2 -2
  610. package/dist/utility-components/skeleton/skeleton.js +14 -0
  611. package/dist/utility-components/skeleton/skeleton.js.map +1 -0
  612. package/dist/utility-components/stack/stack-types.js +2 -0
  613. package/dist/utility-components/stack/stack-types.js.map +1 -0
  614. package/dist/utility-components/stack/stack.d.ts +2 -2
  615. package/dist/utility-components/stack/stack.js +12 -0
  616. package/dist/utility-components/stack/stack.js.map +1 -0
  617. package/dist/utility-components/toast/toast-types.d.ts +1 -1
  618. package/dist/utility-components/toast/toast-types.js +2 -0
  619. package/dist/utility-components/toast/toast-types.js.map +1 -0
  620. package/dist/utility-components/toast/toast.d.ts +2 -2
  621. package/dist/utility-components/toast/toast.js +21 -0
  622. package/dist/utility-components/toast/toast.js.map +1 -0
  623. package/dist/utils/general.d.ts +1 -1
  624. package/dist/utils/general.js +27 -0
  625. package/dist/utils/general.js.map +1 -0
  626. package/dist/utils/shortcut-utils.js +164 -0
  627. package/dist/utils/shortcut-utils.js.map +1 -0
  628. package/package.json +1 -1
  629. package/dist/assets/svg/alert.svg +0 -1
  630. package/dist/assets/svg/arrow-down-up.svg +0 -1
  631. package/dist/assets/svg/arrow-down.svg +0 -1
  632. package/dist/assets/svg/arrow-left.svg +0 -1
  633. package/dist/assets/svg/arrow-right.svg +0 -1
  634. package/dist/assets/svg/arrow-up.svg +0 -1
  635. package/dist/assets/svg/arrow_drop_down.svg +0 -1
  636. package/dist/assets/svg/calendar.svg +0 -1
  637. package/dist/assets/svg/check.svg +0 -1
  638. package/dist/assets/svg/chevron-down.svg +0 -1
  639. package/dist/assets/svg/chevron-right.svg +0 -1
  640. package/dist/assets/svg/clipboard.svg +0 -1
  641. package/dist/assets/svg/close.svg +0 -1
  642. package/dist/assets/svg/copy.svg +0 -1
  643. package/dist/assets/svg/cursor.svg +0 -1
  644. package/dist/assets/svg/cut.svg +0 -1
  645. package/dist/assets/svg/delete.svg +0 -1
  646. package/dist/assets/svg/dock-left-arrow.svg +0 -1
  647. package/dist/assets/svg/dock-right-arrow.svg +0 -1
  648. package/dist/assets/svg/document-outline.svg +0 -1
  649. package/dist/assets/svg/download.svg +0 -1
  650. package/dist/assets/svg/drag.svg +0 -1
  651. package/dist/assets/svg/error.svg +0 -1
  652. package/dist/assets/svg/expand-right.svg +0 -1
  653. package/dist/assets/svg/expand.svg +0 -1
  654. package/dist/assets/svg/eye.svg +0 -1
  655. package/dist/assets/svg/fullscreen.svg +0 -1
  656. package/dist/assets/svg/gear.svg +0 -1
  657. package/dist/assets/svg/groups.svg +0 -1
  658. package/dist/assets/svg/help.svg +0 -1
  659. package/dist/assets/svg/info.svg +0 -1
  660. package/dist/assets/svg/logo.svg +0 -9
  661. package/dist/assets/svg/menu.svg +0 -1
  662. package/dist/assets/svg/message-bubble-question-mark.svg +0 -1
  663. package/dist/assets/svg/pencil.svg +0 -1
  664. package/dist/assets/svg/plus.svg +0 -1
  665. package/dist/assets/svg/restio.svg +0 -5
  666. package/dist/assets/svg/search.svg +0 -1
  667. package/dist/assets/svg/send.svg +0 -1
  668. package/dist/assets/svg/shrink-right.svg +0 -1
  669. package/dist/assets/svg/sidebar.svg +0 -1
  670. package/dist/assets/svg/terminal.svg +0 -1
  671. package/dist/assets/svg/timer.svg +0 -1
  672. package/dist/assets/svg/warning.svg +0 -1
  673. package/dist/assets/svg/zoom-minus.svg +0 -1
  674. package/dist/assets/svg/zoom-plus.svg +0 -1
  675. package/dist/restio-ui.cjs.js +0 -109
  676. package/dist/restio-ui.es.js +0 -34431
  677. package/dist/ui.css +0 -2
@@ -0,0 +1,28 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import React, { useState } from "react";
4
+ import styles from "./icon.module.css";
5
+ import { svgAssets } from "./icon-assets";
6
+ export const Icon = React.memo(({ src, disabled, state, width, height }) => {
7
+ const [imageError, setImageError] = useState(false);
8
+ // Detect if icon is a URL (contains protocol or starts with / or .)
9
+ const isUrl = src.includes("://") || src.startsWith("/") || src.startsWith(".") || src.includes(".");
10
+ const iconClass = {
11
+ icon: `${state ? styles[`rst-icon-state-${state}`] : ""} ${styles["rst-icon"]}`,
12
+ };
13
+ const handleImageError = () => {
14
+ setImageError(true);
15
+ };
16
+ // If icon is a URL and no error, render image
17
+ if (isUrl && !imageError) {
18
+ return (_jsx("img", { src: src, alt: src || "Icon", className: iconClass.icon, onError: handleImageError, style: { width: width || "100%", height: height || "100%", objectFit: "cover" } }));
19
+ }
20
+ // Look up bundled SVG by name
21
+ const svgContent = svgAssets[src];
22
+ if (!svgContent) {
23
+ return (_jsxs("svg", { "data-testid": "icon", width: width || "1rem", height: height || "1rem", role: "application", "aria-disabled": disabled, className: iconClass.icon, children: [_jsx("title", { children: src }), _jsx("rect", { width: "100%", height: "100%", fill: "none", stroke: "currentColor", strokeWidth: "1" }), _jsx("text", { x: "50%", y: "50%", textAnchor: "middle", dominantBaseline: "middle", fontSize: "0.5rem", children: "X!X" })] }));
24
+ }
25
+ return (_jsx("svg", { "data-testid": "icon", width: width || "1rem", height: height || "1rem", role: "application", "aria-disabled": disabled, className: iconClass.icon, dangerouslySetInnerHTML: { __html: svgContent } }));
26
+ });
27
+ Icon.displayName = "Icon";
28
+ //# sourceMappingURL=icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.js","sourceRoot":"","sources":["../../../src/utility-components/icon/icon.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,MAAM,CAAC,MAAM,IAAI,GAAwB,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE;IAC9F,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;IAE7D,oEAAoE;IACpE,MAAM,KAAK,GAAG,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAErG,MAAM,SAAS,GAAG;QAChB,IAAI,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,kBAAkB,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,MAAM,CAAC,UAAU,CAAC,EAAE;KAChF,CAAC;IAEF,MAAM,gBAAgB,GAAG,GAAG,EAAE;QAC5B,aAAa,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC,CAAC;IAEF,8CAA8C;IAC9C,IAAI,KAAK,IAAI,CAAC,UAAU,EAAE,CAAC;QACzB,OAAO,CACL,cACE,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,IAAI,MAAM,EAClB,SAAS,EAAE,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["../../../src/utility-components/label/label-types.tsx"],"names":[],"mappings":""}
@@ -1,3 +1,3 @@
1
- import { LabelProps } from './label-types';
1
+ import { LabelProps } from "./label-types";
2
2
  export declare const Label: React.FC<LabelProps>;
3
3
  //# sourceMappingURL=label.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { jsxs as _jsxs } from "react/jsx-runtime";
2
+ import Typography from "../../components/typography/typography";
3
+ import styles from "./label.module.css";
4
+ export const Label = ({ label, id, disabled, required }) => {
5
+ const labelClass = {
6
+ label: styles["rst-label"],
7
+ };
8
+ return (_jsxs(Typography, { variant: "label", "aria-disabled": disabled, htmlFor: id, className: labelClass.label, children: [label, required && (_jsxs("span", { className: styles["rst-label-required"], "aria-label": "required", children: [" ", "*"] }))] }));
9
+ };
10
+ //# sourceMappingURL=label.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label.js","sourceRoot":"","sources":["../../../src/utility-components/label/label.tsx"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,wCAAwC,CAAC;AAEhE,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,MAAM,CAAC,MAAM,KAAK,GAAyB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC/E,MAAM,UAAU,GAAG;QACjB,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC;KAC3B,CAAC;IAEF,OAAO,CACL,MAAC,UAAU,IAAC,OAAO,EAAC,OAAO,mBAAgB,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,KAAK,aAC1F,KAAK,EACL,QAAQ,IAAI,CACX,gBAAM,SAAS,EAAE,MAAM,CAAC,oBAAoB,CAAC,gBAAa,UAAU,aACjE,GAAG,SAEC,CACR,IACU,CACd,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=overlay-panel-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overlay-panel-types.js","sourceRoot":"","sources":["../../../src/utility-components/overlay-panel/overlay-panel-types.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- import { OverlayPanelProps } from './overlay-panel-types';
1
+ import React from "react";
2
+ import { OverlayPanelProps } from "./overlay-panel-types";
3
3
  export declare const OverlayPanel: React.FC<OverlayPanelProps>;
4
4
  export default OverlayPanel;
5
5
  //# sourceMappingURL=overlay-panel.d.ts.map
@@ -0,0 +1,98 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useRef, useCallback } from "react";
3
+ import { createPortal } from "react-dom";
4
+ import { useFocusTrap } from "./use-focus-trap";
5
+ import styles from "./overlay-panel.module.css";
6
+ export const OverlayPanel = ({ open, position = "center", variant = "modal", width, height, maxWidth, maxHeight, closeOnClickOutside = true, closeOnEscape = true, preventBodyScroll = true, trapFocus = true, restoreFocus = true, animationDuration = 300, hasBackdrop, onClose, onOpen, onAnimationComplete, children, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, }) => {
7
+ const panelRef = useRef(null);
8
+ const backdropRef = useRef(null);
9
+ const timeoutRef = useRef(null);
10
+ // Focus trap for modals and dialogs
11
+ const focusTrapRef = useFocusTrap({
12
+ enabled: open && trapFocus && (variant === "modal" || variant === "dialog"),
13
+ restoreFocus,
14
+ });
15
+ // Handle escape key
16
+ useEffect(() => {
17
+ if (!closeOnEscape || !open)
18
+ return;
19
+ const handleEscape = (e) => {
20
+ if (e.key === "Escape") {
21
+ e.preventDefault();
22
+ onClose?.();
23
+ }
24
+ };
25
+ document.addEventListener("keydown", handleEscape);
26
+ return () => document.removeEventListener("keydown", handleEscape);
27
+ }, [closeOnEscape, open, onClose]);
28
+ // Handle body scroll prevention
29
+ useEffect(() => {
30
+ if (!preventBodyScroll)
31
+ return;
32
+ if (open) {
33
+ const originalStyle = document.body.style.overflow;
34
+ document.body.style.overflow = "hidden";
35
+ return () => {
36
+ document.body.style.overflow = originalStyle;
37
+ };
38
+ }
39
+ }, [open, preventBodyScroll]);
40
+ // Handle backdrop click
41
+ const handleBackdropClick = useCallback((e) => {
42
+ if (e.target === e.currentTarget && closeOnClickOutside) {
43
+ onClose?.();
44
+ }
45
+ }, [closeOnClickOutside, onClose]);
46
+ // Handle open/close animations
47
+ useEffect(() => {
48
+ if (open && onOpen) {
49
+ onOpen();
50
+ }
51
+ if (timeoutRef.current) {
52
+ clearTimeout(timeoutRef.current);
53
+ }
54
+ if (!open && onAnimationComplete) {
55
+ timeoutRef.current = setTimeout(onAnimationComplete, animationDuration);
56
+ }
57
+ return () => {
58
+ if (timeoutRef.current) {
59
+ clearTimeout(timeoutRef.current);
60
+ }
61
+ };
62
+ }, [open, onOpen, onAnimationComplete, animationDuration]);
63
+ // Combine focus trap ref with panel ref
64
+ const combinedPanelRef = useCallback((node) => {
65
+ panelRef.current = node;
66
+ if (focusTrapRef.current !== node) {
67
+ focusTrapRef.current = node;
68
+ }
69
+ }, [focusTrapRef]);
70
+ // Build CSS classes
71
+ const panelClasses = [
72
+ styles["rst-overlay-panel"],
73
+ styles[`rst-overlay-panel-${variant}`],
74
+ position !== "center" ? styles[`rst-position-${position}`] : "",
75
+ className || "",
76
+ ]
77
+ .filter(Boolean)
78
+ .join(" ");
79
+ const backdropClasses = [styles["rst-overlay-backdrop"], styles[`rst-overlay-backdrop-${variant}`]].filter(Boolean).join(" ");
80
+ // Build inline styles
81
+ const panelStyles = {
82
+ width: typeof width === "number" ? `${width}px` : width,
83
+ height: typeof height === "number" ? `${height}px` : height,
84
+ maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth,
85
+ maxHeight: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight,
86
+ "--rst-transition-duration": `${animationDuration}ms`,
87
+ };
88
+ // Don't render if not open and variant doesn't need pre-rendering
89
+ const shouldRender = open || variant === "drawer" || variant === "sidepanel";
90
+ if (!shouldRender) {
91
+ return null;
92
+ }
93
+ // Determine if backdrop should be shown
94
+ const showBackdrop = hasBackdrop ?? variant !== "popover";
95
+ return createPortal(_jsxs(_Fragment, { children: [showBackdrop && (_jsx("div", { ref: backdropRef, className: backdropClasses, "data-state": open ? "open" : "closed", onClick: handleBackdropClick, "aria-hidden": "true" })), _jsx("dialog", { ref: combinedPanelRef, className: panelClasses, style: panelStyles, "data-state": open ? "open" : "closed", "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, "aria-modal": variant === "modal", role: variant === "dialog" ? "dialog" : variant === "modal" ? "dialog" : undefined, open: open, children: children })] }), document.body);
96
+ };
97
+ export default OverlayPanel;
98
+ //# sourceMappingURL=overlay-panel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overlay-panel.js","sourceRoot":"","sources":["../../../src/utility-components/overlay-panel/overlay-panel.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAEhD,MAAM,CAAC,MAAM,YAAY,GAAgC,CAAC,EACxD,IAAI,EACJ,QAAQ,GAAG,QAAQ,EACnB,OAAO,GAAG,OAAO,EACjB,KAAK,EACL,MAAM,EACN,QAAQ,EACR,SAAS,EACT,mBAAmB,GAAG,IAAI,EAC1B,aAAa,GAAG,IAAI,EACpB,iBAAiB,GAAG,IAAI,EACxB,SAAS,GAAG,IAAI,EAChB,YAAY,GAAG,IAAI,EACnB,iBAAiB,GAAG,GAAG,EACvB,WAAW,EACX,OAAO,EACP,MAAM,EACN,mBAAmB,EACnB,QAAQ,EACR,SAAS,EACT,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,k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GAAG,WAAW,IAAI,OAAO,KAAK,SAAS,CAAC;IAE1D,OAAO,YAAY,CACjB,8BAEG,YAAY,IAAI,CACf,cAAK,GAAG,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,gBAAc,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,mBAAmB,iBAAc,MAAM,GAAG,CAC7I,EAGD,iBACE,GAAG,EAAE,gBAAgB,EACrB,SAAS,EAAE,YAAY,EACvB,KAAK,EAAE,WAAW,gBACN,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,gBACxB,SAAS,qBACJ,cAAc,sBACb,eAAe,gBACrB,OAAO,KAAK,OAAO,EAC/B,IAAI,EAAE,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAClF,IAAI,EAAE,IAAI,YAET,QAAQ,GACF,IACR,EACH,QAAQ,CAAC,IAAI,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -3,6 +3,6 @@ interface UseFocusTrapOptions {
3
3
  restoreFocus?: boolean;
4
4
  initialFocus?: HTMLElement | null;
5
5
  }
6
- export declare const useFocusTrap: ({ enabled, restoreFocus, initialFocus }: UseFocusTrapOptions) => import('react').RefObject<HTMLElement | null>;
6
+ export declare const useFocusTrap: ({ enabled, restoreFocus, initialFocus }: UseFocusTrapOptions) => import("react").RefObject<HTMLElement | null>;
7
7
  export {};
8
8
  //# sourceMappingURL=use-focus-trap.d.ts.map
@@ -0,0 +1,61 @@
1
+ import { useEffect, useRef } from "react";
2
+ export const useFocusTrap = ({ enabled, restoreFocus = true, initialFocus }) => {
3
+ const containerRef = useRef(null);
4
+ const previousActiveElement = useRef(null);
5
+ useEffect(() => {
6
+ if (!enabled || !containerRef.current)
7
+ return;
8
+ const container = containerRef.current;
9
+ previousActiveElement.current = document.activeElement;
10
+ // Get all focusable elements
11
+ const getFocusableElements = () => {
12
+ const selector = [
13
+ 'button:not([disabled])',
14
+ 'input:not([disabled])',
15
+ 'textarea:not([disabled])',
16
+ 'select:not([disabled])',
17
+ 'a[href]',
18
+ '[tabindex]:not([tabindex="-1"])',
19
+ '[contenteditable="true"]'
20
+ ].join(',');
21
+ return Array.from(container.querySelectorAll(selector));
22
+ };
23
+ // Focus initial element
24
+ const focusableElements = getFocusableElements();
25
+ const elementToFocus = initialFocus || focusableElements[0];
26
+ if (elementToFocus) {
27
+ elementToFocus.focus();
28
+ }
29
+ // Handle tab key navigation
30
+ const handleKeyDown = (e) => {
31
+ if (e.key !== 'Tab')
32
+ return;
33
+ const focusableElements = getFocusableElements();
34
+ const firstElement = focusableElements[0];
35
+ const lastElement = focusableElements[focusableElements.length - 1];
36
+ if (e.shiftKey) {
37
+ // Shift + Tab
38
+ if (document.activeElement === firstElement) {
39
+ e.preventDefault();
40
+ lastElement?.focus();
41
+ }
42
+ }
43
+ else {
44
+ // Tab
45
+ if (document.activeElement === lastElement) {
46
+ e.preventDefault();
47
+ firstElement?.focus();
48
+ }
49
+ }
50
+ };
51
+ document.addEventListener('keydown', handleKeyDown);
52
+ return () => {
53
+ document.removeEventListener('keydown', handleKeyDown);
54
+ if (restoreFocus && previousActiveElement.current instanceof HTMLElement) {
55
+ previousActiveElement.current.focus();
56
+ }
57
+ };
58
+ }, [enabled, restoreFocus, initialFocus]);
59
+ return containerRef;
60
+ };
61
+ //# sourceMappingURL=use-focus-trap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-focus-trap.js","sourceRoot":"","sources":["../../../src/utility-components/overlay-panel/use-focus-trap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAQ1C,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,OAAO,EAAE,YAAY,GAAG,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AC,QAAQ,EAAE,CAAC;gBACf,cAAc;gBACd,IAAI,QAAQ,CAAC,aAAa,KAAK,YAAY,EAAE,CAAC;oBAC5C,CAAC,CAAC,cAAc,EAAE,CAAC;oBACnB,WAAW,EAAE,KAAK,EAAE,CAAC;gBACvB,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,MAAM;gBACN,IAAI,QAAQ,CAAC,aAAa,KAAK,WAAW,EAAE,CAAC;oBAC3C,CAAC,CAAC,cAAc,EAAE,CAAC;oBACnB,YAAY,EAAE,KAAK,EAAE,CAAC;gBACxB,CAAC;YACH,CAAC;QACH,CAAC,CAAC;QAEF,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QAEpD,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;YAEvD,IAAI,YAAY,IAAI,qBAAqB,CAAC,OAAO,YAAY,WAAW,EAAE,CAAC;gBACzE,qBAAqB,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;YACxC,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC;IAE1C,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=skeleton-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton-types.js","sourceRoot":"","sources":["../../../src/utility-components/skeleton/skeleton-types.tsx"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
2
- import { SkeletonProps } from './skeleton-types';
1
+ import React from "react";
2
+ import { SkeletonProps } from "./skeleton-types";
3
3
  export declare const Skeleton: React.FC<SkeletonProps>;
4
4
  //# sourceMappingURL=skeleton.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import styles from "./skeleton.module.css";
3
+ export const Skeleton = ({ width, height, circle = false, className }) => {
4
+ const style = {
5
+ width,
6
+ height,
7
+ borderRadius: circle ? "50%" : "4px",
8
+ };
9
+ const skeletonClass = {
10
+ skeleton: `${styles["rst-skeleton"]}`,
11
+ };
12
+ return _jsx("span", { className: `${skeletonClass.skeleton} ${className || ""}`, style: style, "aria-hidden": "true" });
13
+ };
14
+ //# sourceMappingURL=skeleton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton.js","sourceRoot":"","sources":["../../../src/utility-components/skeleton/skeleton.tsx"],"names":[],"mappings":";AAEA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAG3C,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE;IAChG,MAAM,KAAK,GAAwB;QACjC,KAAK;QACL,MAAM;QACN,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK;KACrC,CAAC;IAEF,MAAM,aAAa,GAAG;QACpB,QAAQ,EAAE,GAAG,MAAM,CAAC,cAAc,CAAC,EAAE;KACtC,CAAC;IAEF,OAAO,eAAM,SAAS,EAAE,GAAG,aAAa,CAAC,QAAQ,IAAI,SAAS,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,iBAAc,MAAM,GAAG,CAAC;AAC9G,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=stack-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stack-types.js","sourceRoot":"","sources":["../../../src/utility-components/stack/stack-types.tsx"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
2
- import { StackProps } from './stack-types';
1
+ import React from "react";
2
+ import { StackProps } from "./stack-types";
3
3
  export declare const Stack: React.FC<StackProps>;
4
4
  //# sourceMappingURL=stack.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const Stack = ({ children, direction = "column", gap = 1, align = "flex-start", justify = "flex-start", wrap = false }) => {
3
+ return (_jsx("div", { style: {
4
+ display: "flex",
5
+ flexDirection: direction,
6
+ gap: `${gap}rem`,
7
+ alignItems: align,
8
+ justifyContent: justify,
9
+ flexWrap: wrap ? "wrap" : "nowrap",
10
+ }, children: children }));
11
+ };
12
+ //# sourceMappingURL=stack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stack.js","sourceRoot":"","sources":["../../../src/utility-components/stack/stack.tsx"],"names":[],"mappings":";AAIA,MAAM,CAAC,MAAM,KAAK,GAAyB,CAAC,EAAE,QAAQ,EAAE,SAAS,GAAG,QAAQ,EAAE,GAAG,GAAG,CAAC,EAAE,KAAK,GAAG,YAAY,EAAE,OAAO,GAAG,YAAY,EAAE,IAAI,GAAG,KAAK,EAAE,EAAE,EAAE;IACrJ,OAAO,CACL,cACE,KAAK,EAAE;YACL,OAAO,EAAE,MAAM;YACf,aAAa,EAAE,SAAS;YACxB,GAAG,EAAE,GAAG,GAAG,KAAK;YAChB,UAAU,EAAE,KAAK;YACjB,cAAc,EAAE,OAAO;YACvB,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ;SACnC,YAEA,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { State } from '../../types/global-types';
1
+ import { State } from "../../types/global-types";
2
2
  export interface ToastProps {
3
3
  id: string;
4
4
  message: string;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=toast-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-types.js","sourceRoot":"","sources":["../../../src/utility-components/toast/toast-types.tsx"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- import { ToastProps } from './toast-types';
1
+ import type React from "react";
2
+ import { ToastProps } from "./toast-types";
3
3
  declare const Toast: React.FC<ToastProps>;
4
4
  export default Toast;
5
5
  //# sourceMappingURL=toast.d.ts.map
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import styles from "./toast.module.css";
3
+ import { Button } from "../../components/button/button";
4
+ import { useEffect } from "react";
5
+ const Toast = ({ id, message, onRemove, type = "info", duration = 1000 }) => {
6
+ useEffect(() => {
7
+ if (duration > 0) {
8
+ const timer = setTimeout(() => {
9
+ onRemove(id);
10
+ }, duration);
11
+ return () => clearTimeout(timer);
12
+ }
13
+ }, [id, duration, onRemove]);
14
+ const toastClass = {
15
+ toastWrapper: `${styles["rst-toast"]} ${type ? styles[`rst-toast-${type}`] : ""}`,
16
+ toastMessage: styles["rst-toast-message"],
17
+ };
18
+ return (_jsxs("div", { className: toastClass.toastWrapper, children: [_jsx("div", { className: toastClass.toastMessage, children: message }), _jsx("div", { children: _jsx(Button, { leadingVisual: "close", value: "", onClick: () => onRemove(id), "aria-label": "Chiudi notifica" }) })] }));
19
+ };
20
+ export default Toast;
21
+ //# sourceMappingURL=toast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.js","sourceRoot":"","sources":["../../../src/utility-components/toast/toast.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,KAAK,GAAyB,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,GAAG,MAAM,EAAE,QAAQ,GAAG,IAAI,EAAE,EAAE,EAAE;IAChG,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,QAAQ,GAAG,CAAC,EAAE,CAAC;YACjB,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE;gBAC5B,QAAQ,CAAC,EAAE,CAAC,CAAC;YACf,CAAC,EAAE,QAAQ,CAAC,CAAC;YAEb,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QACnC,CAAC;IACH,CAAC,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE7B,MAAM,UAAU,GAAG;QACjB,YAAY,EAAE,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;QAEjF,YAAY,EAAE,MAAM,CAAC,mBAAmB,CAAC;KAC1C,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAE,UAAU,CAAC,YAAY,aACrC,cAAK,SAAS,EAAE,UAAU,CAAC,YAAY,YAAG,OAAO,GAAO,EACxD,wBACE,KAAC,MAAM,IAAC,aAAa,EAAC,OAAO,EAAC,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,gBAAa,iBAAiB,GAAG,GACjG,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from "react";
2
2
  export declare function getBaseUrl(): string;
3
3
  /** Safely combines CSS class names. */
4
4
  export declare function combineClasses(...classes: Array<string | undefined | false | null>): string;
@@ -0,0 +1,27 @@
1
+ import React from "react";
2
+ export function getBaseUrl() {
3
+ return (process.env.UPSTREAM_STORYBOOK_URL ||
4
+ process.env.STORYBOOK_URL ||
5
+ "http://localhost:6006/");
6
+ }
7
+ /** Safely combines CSS class names. */
8
+ export function combineClasses(...classes) {
9
+ return classes.filter(Boolean).join(" ");
10
+ }
11
+ /**
12
+ * Extracts specific React children by their `displayName`.
13
+ */
14
+ export function extractChildrenByDisplayName(children, displayNames) {
15
+ const childrenArray = React.Children.toArray(children);
16
+ const result = Object.fromEntries(displayNames.map((n) => [n, null]));
17
+ for (const child of childrenArray) {
18
+ if (React.isValidElement(child) && typeof child.type === "function") {
19
+ const displayName = child.type.displayName;
20
+ if (displayNames.includes(displayName)) {
21
+ result[displayName] = child;
22
+ }
23
+ }
24
+ }
25
+ return result;
26
+ }
27
+ //# sourceMappingURL=general.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"general.js","sourceRoot":"","sources":["../../src/utils/general.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,UAAU,UAAU;IACxB,OAAO,CACL,OAAO,CAAC,GAAG,CAAC,sBAAsB;QAClC,OAAO,CAAC,GAAG,CAAC,aAAa;QACzB,wBAAwB,CACzB,CAAA;AACH,CAAC;AAED,uCAAuC;AACvC,MAAM,UAAU,cAAc,CAAC,GAAG,OAAiD;IACjF,OAAO,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAAmB,QAAyB,EAAE,YAA0B;IAClH,MAAM,aAAa,GAAG,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACvD,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAyC,CAAC;IAE9G,KAAK,MAAM,KAAK,IAAI,aAAa,EAAE,CAAC;QAClC,IAAI,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YACpE,MAAM,WAAW,GAAI,KAAK,CAAC,IAA4B,CAAC,WAAgB,CAAC;YACzE,IAAI,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;gBACvC,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;YAC9B,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,164 @@
1
+ /**
2
+ * Utility functions for cross-platform shortcut key management
3
+ */
4
+ /**
5
+ * Detects the current platform based on user agent
6
+ */
7
+ export const getPlatform = () => {
8
+ if (typeof window === 'undefined')
9
+ return 'other';
10
+ const userAgent = window.navigator.userAgent.toLowerCase();
11
+ if (userAgent.includes('mac'))
12
+ return 'mac';
13
+ if (userAgent.includes('win'))
14
+ return 'windows';
15
+ if (userAgent.includes('linux'))
16
+ return 'linux';
17
+ return 'other';
18
+ };
19
+ /**
20
+ * Checks if the current platform is Mac
21
+ */
22
+ export const isMac = () => getPlatform() === 'mac';
23
+ /**
24
+ * Normalizes keyboard event keys for internal shortcut matching
25
+ * This is used for consistent shortcut registration regardless of platform
26
+ */
27
+ export const normalizeEventKey = (key) => {
28
+ const keyMap = {
29
+ Control: "ctrl",
30
+ Meta: "ctrl", // Treat Cmd as Ctrl for cross-platform compatibility
31
+ Alt: "alt",
32
+ Shift: "shift",
33
+ " ": "space",
34
+ ArrowUp: "up",
35
+ ArrowDown: "down",
36
+ ArrowLeft: "left",
37
+ ArrowRight: "right",
38
+ };
39
+ return keyMap[key] || key.toLowerCase();
40
+ };
41
+ /**
42
+ * Converts internal shortcut keys to platform-specific display keys
43
+ * This is used when showing shortcuts in the UI
44
+ */
45
+ export const getDisplayKeys = (keys) => {
46
+ const platform = getPlatform();
47
+ return keys.map(key => {
48
+ switch (key.toLowerCase()) {
49
+ case 'ctrl':
50
+ return platform === 'mac' ? 'cmd' : 'ctrl';
51
+ case 'alt':
52
+ return platform === 'mac' ? 'option' : 'alt';
53
+ case 'shift':
54
+ return 'shift';
55
+ case 'space':
56
+ return 'space';
57
+ case 'up':
58
+ case 'down':
59
+ case 'left':
60
+ case 'right':
61
+ return `arrow ${key}`;
62
+ case 'escape':
63
+ return 'esc';
64
+ case 'enter':
65
+ return platform === 'mac' ? 'return' : 'enter';
66
+ default:
67
+ return key;
68
+ }
69
+ });
70
+ };
71
+ /**
72
+ * Converts a shortcut string (e.g., "ctrl+s") to platform-specific display format
73
+ */
74
+ export const formatShortcutForDisplay = (shortcutString) => {
75
+ const keys = shortcutString.split('+').map(k => k.trim());
76
+ const displayKeys = getDisplayKeys(keys);
77
+ const platform = getPlatform();
78
+ const separator = platform === 'mac' ? '' : '+';
79
+ return displayKeys.join(separator);
80
+ };
81
+ /**
82
+ * Gets the platform-specific symbol for modifier keys
83
+ */
84
+ export const getKeySymbol = (key) => {
85
+ const platform = getPlatform();
86
+ if (platform === 'mac') {
87
+ const macSymbols = {
88
+ cmd: '⌘',
89
+ ctrl: '⌃',
90
+ option: '⌥',
91
+ alt: '⌥',
92
+ shift: '⇧',
93
+ enter: '↩',
94
+ return: '↩',
95
+ esc: '⎋',
96
+ escape: '⎋',
97
+ space: '␣',
98
+ tab: '⇥',
99
+ 'arrow up': '↑',
100
+ 'arrow down': '↓',
101
+ 'arrow left': '←',
102
+ 'arrow right': '→',
103
+ };
104
+ return macSymbols[key.toLowerCase()] || key;
105
+ }
106
+ // Windows/Linux symbols
107
+ const winSymbols = {
108
+ ctrl: 'Ctrl',
109
+ alt: 'Alt',
110
+ shift: 'Shift',
111
+ enter: 'Enter',
112
+ esc: 'Esc',
113
+ escape: 'Esc',
114
+ space: 'Space',
115
+ tab: 'Tab',
116
+ };
117
+ return winSymbols[key.toLowerCase()] || key.charAt(0).toUpperCase() + key.slice(1);
118
+ };
119
+ /**
120
+ * Formats a shortcut for display with platform-specific symbols
121
+ */
122
+ export const formatShortcutWithSymbols = (shortcutString) => {
123
+ const keys = shortcutString.split('+').map(k => k.trim());
124
+ const displayKeys = getDisplayKeys(keys);
125
+ const symbols = displayKeys.map(key => getKeySymbol(key));
126
+ return symbols.join('');
127
+ };
128
+ /**
129
+ * Converts platform-specific shortcut input to normalized internal format
130
+ * Allows users to register shortcuts using platform-specific names
131
+ */
132
+ export const normalizeShortcutInput = (shortcutString) => {
133
+ const keys = shortcutString.split('+').map(k => k.trim().toLowerCase());
134
+ return keys.map(key => {
135
+ switch (key) {
136
+ case 'cmd':
137
+ case 'command':
138
+ case 'meta':
139
+ return 'ctrl'; // Normalize to ctrl for internal use
140
+ case 'option':
141
+ return 'alt';
142
+ case 'return':
143
+ return 'enter';
144
+ case 'esc':
145
+ return 'escape';
146
+ default:
147
+ return key;
148
+ }
149
+ }).join('+');
150
+ };
151
+ /**
152
+ * Helper to create cross-platform shortcuts
153
+ * Automatically uses Cmd on Mac and Ctrl on Windows/Linux
154
+ */
155
+ export const createCrossPlatformShortcut = (keys) => {
156
+ const platform = getPlatform();
157
+ // Replace 'mod' with the appropriate modifier for the platform
158
+ if (keys.includes('mod')) {
159
+ const modifier = platform === 'mac' ? 'cmd' : 'ctrl';
160
+ return keys.replace('mod', modifier);
161
+ }
162
+ return keys;
163
+ };
164
+ //# sourceMappingURL=shortcut-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shortcut-utils.js","sourceRoot":"","sources":["../../src/utils/shortcut-utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,GAA0C,EAAE;IACrE,IAAI,OAAO,MAAM,KAAK,WAAW;QAAE,OAAO,OAAO,CAAC;IAElD,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;IAE3D,IAAI,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAC5C,IAAI,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAChD,IAAI,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC;QAAE,OAAO,OAAO,CAAC;IAEhD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,GAAY,EAAE,CAAC,WAA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T,OAAO,MAAM,CAAC,CAAC,qCAAqC;YACtD,KAAK,QAAQ;gBACX,OAAO,KAAK,CAAC;YACf,KAAK,QAAQ;gBACX,OAAO,OAAO,CAAC;YACjB,KAAK,KAAK;gBACR,OAAO,QAAQ,CAAC;YAClB;gBACE,OAAO,GAAG,CAAC;QACf,CAAC;IACH,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,IAAY,EAAU,EAAE;IAClE,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,+DAA+D;IAC/D,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,MAAM,QAAQ,GAAG,QAAQ,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IACvC,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@restio/ui",
3
3
  "private": false,
4
- "version": "0.0.8-SNAPSHOT",
4
+ "version": "0.0.9-SNAPSHOT",
5
5
  "description": "React UI components library",
6
6
  "type": "module",
7
7
  "license": "Apache-2.0",
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M31.46 6H16.54L6 16.54v14.91L16.54 42h14.91L42 31.46V16.54L31.46 6zM24 34.6c-1.43 0-2.6-1.16-2.6-2.6 0-1.43 1.17-2.6 2.6-2.6 1.43 0 2.6 1.16 2.6 2.6 0 1.44-1.17 2.6-2.6 2.6zm2-8.6h-4V14h4v12z"/></svg>
@@ -1 +0,0 @@
1
- <svg fill="currentColor" viewBox="0 0 24 24" transform="" id="injected-svg" xmlns="http://www.w3.org/2000/svg"><!--Boxicons v3.0.8 https://boxicons.com | License https://docs.boxicons.com/free--><path d="M12 16H8V2H6v14H2l5 6zm0-8h4v14h2V8h4l-5-6z"></path></svg>
@@ -1 +0,0 @@
1
- <svg fill="currentColor" viewBox="0 0 24 24" transform="" id="injected-svg"><!--Boxicons v3.0.3 https://boxicons.com | License https://docs.boxicons.com/free--><path d="M13 12V6h-2v6H7l5 6 5-6z"></path></svg>