@skalar-saas/design-system 0.1.67

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 (295) hide show
  1. package/README.md +68 -0
  2. package/dist/design-system.css +1 -0
  3. package/dist/hooks/index.d.ts +1 -0
  4. package/dist/hooks/useDebounce.d.ts +7 -0
  5. package/dist/index-CVAu6nrM.cjs +15 -0
  6. package/dist/index-CVAu6nrM.cjs.map +1 -0
  7. package/dist/index-D9hMGhK3.js +6790 -0
  8. package/dist/index-D9hMGhK3.js.map +1 -0
  9. package/dist/index.d.ts +130 -0
  10. package/dist/index.js +26 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/index.mjs +11508 -0
  13. package/dist/index.mjs.map +1 -0
  14. package/dist/layout/Container/Container.d.ts +62 -0
  15. package/dist/layout/Container/index.d.ts +2 -0
  16. package/dist/layout/PanelLayout/Panel.d.ts +20 -0
  17. package/dist/layout/PanelLayout/PanelContext.d.ts +10 -0
  18. package/dist/layout/PanelLayout/PanelLayout.d.ts +28 -0
  19. package/dist/layout/PanelLayout/PanelLayout.types.d.ts +146 -0
  20. package/dist/layout/PanelLayout/PanelMain.d.ts +19 -0
  21. package/dist/layout/PanelLayout/index.d.ts +6 -0
  22. package/dist/layout/PanelLayout/panelUtils.d.ts +74 -0
  23. package/dist/layout/PanelLayout/usePanelState.d.ts +25 -0
  24. package/dist/layout/Section/Section.d.ts +20 -0
  25. package/dist/layout/Section/index.d.ts +2 -0
  26. package/dist/layout/SplitPanelLayout/SplitPanelLayout.d.ts +57 -0
  27. package/dist/layout/SplitPanelLayout/index.d.ts +2 -0
  28. package/dist/layout/constants.d.ts +348 -0
  29. package/dist/layout/index.d.ts +31 -0
  30. package/dist/shared/icons/AICommentaryIcon.d.ts +11 -0
  31. package/dist/shared/icons/AIMessage.d.ts +2 -0
  32. package/dist/shared/icons/Add2Icon.d.ts +12 -0
  33. package/dist/shared/icons/AddIcon.d.ts +7 -0
  34. package/dist/shared/icons/ArrowNarrowDownIcon.d.ts +6 -0
  35. package/dist/shared/icons/BookOutlined.d.ts +10 -0
  36. package/dist/shared/icons/Box2Icon.d.ts +6 -0
  37. package/dist/shared/icons/BoxIcon.d.ts +11 -0
  38. package/dist/shared/icons/CalendarIcon.d.ts +11 -0
  39. package/dist/shared/icons/CalendarIcon2.d.ts +12 -0
  40. package/dist/shared/icons/ChatIcon.d.ts +11 -0
  41. package/dist/shared/icons/ChevronDownIcon.d.ts +6 -0
  42. package/dist/shared/icons/ChevronUpIcon.d.ts +6 -0
  43. package/dist/shared/icons/CircleIcon.d.ts +6 -0
  44. package/dist/shared/icons/CopyIcon.d.ts +12 -0
  45. package/dist/shared/icons/DataArrowsOutlined.d.ts +10 -0
  46. package/dist/shared/icons/Edit2Icon.d.ts +12 -0
  47. package/dist/shared/icons/EyeIcon.d.ts +12 -0
  48. package/dist/shared/icons/EyeOffIcon.d.ts +12 -0
  49. package/dist/shared/icons/FilterFunnel02Icon.d.ts +6 -0
  50. package/dist/shared/icons/FlashIcon.d.ts +12 -0
  51. package/dist/shared/icons/GridIcon.d.ts +12 -0
  52. package/dist/shared/icons/InfoIcon.d.ts +12 -0
  53. package/dist/shared/icons/LayerIcon.d.ts +12 -0
  54. package/dist/shared/icons/LeftArrowIcon.d.ts +5 -0
  55. package/dist/shared/icons/MaximizeIcon.d.ts +12 -0
  56. package/dist/shared/icons/MessageProgrammingOutlined.d.ts +10 -0
  57. package/dist/shared/icons/MoreIcon.d.ts +12 -0
  58. package/dist/shared/icons/PlusCircleIcon.d.ts +6 -0
  59. package/dist/shared/icons/ProgrammingArrowsOutlined.d.ts +10 -0
  60. package/dist/shared/icons/QuestionCircle.d.ts +11 -0
  61. package/dist/shared/icons/RightArrowIcon.d.ts +5 -0
  62. package/dist/shared/icons/ShareIcon.d.ts +6 -0
  63. package/dist/shared/icons/SkalarLogo.d.ts +13 -0
  64. package/dist/shared/icons/SkalarLogoNoText.d.ts +13 -0
  65. package/dist/shared/icons/SlashIcon.d.ts +5 -0
  66. package/dist/shared/icons/SliderPointerDown.d.ts +10 -0
  67. package/dist/shared/icons/SliderPointerUp.d.ts +10 -0
  68. package/dist/shared/icons/SliderThumbIcon.d.ts +10 -0
  69. package/dist/shared/icons/StraightInfoIcon.d.ts +11 -0
  70. package/dist/shared/icons/TrashIcon.d.ts +12 -0
  71. package/dist/shared/icons/UnionIcon.d.ts +12 -0
  72. package/dist/shared/icons/UploadImageIcon.d.ts +10 -0
  73. package/dist/shared/icons/VideoPlayOutlined.d.ts +10 -0
  74. package/dist/shared/icons/XMark.d.ts +11 -0
  75. package/dist/shared/icons/XMarkAlert.d.ts +11 -0
  76. package/dist/shared/icons/index.d.ts +83 -0
  77. package/dist/shared/ui/Alert/Alert.d.ts +95 -0
  78. package/dist/shared/ui/Alert/index.d.ts +1 -0
  79. package/dist/shared/ui/AttachmentMessage/AttachmentMessage.d.ts +29 -0
  80. package/dist/shared/ui/AttachmentMessage/index.d.ts +1 -0
  81. package/dist/shared/ui/AuthActionWidget/AuthActionWidget.d.ts +18 -0
  82. package/dist/shared/ui/AuthActionWidget/index.d.ts +2 -0
  83. package/dist/shared/ui/AuthFormWidget/AuthFormWidget.d.ts +27 -0
  84. package/dist/shared/ui/AuthFormWidget/index.d.ts +2 -0
  85. package/dist/shared/ui/AuthSocialOptionsWidget/AuthSocialOptionsWidget.d.ts +25 -0
  86. package/dist/shared/ui/AuthSocialOptionsWidget/index.d.ts +2 -0
  87. package/dist/shared/ui/Avatar/Avatar.d.ts +38 -0
  88. package/dist/shared/ui/Avatar/index.d.ts +1 -0
  89. package/dist/shared/ui/AvatarGroup/AvatarGroup.d.ts +39 -0
  90. package/dist/shared/ui/AvatarGroup/index.d.ts +1 -0
  91. package/dist/shared/ui/Badge/Badge.d.ts +40 -0
  92. package/dist/shared/ui/Badge/index.d.ts +1 -0
  93. package/dist/shared/ui/BreadCrumb/BreadCrumb.d.ts +12 -0
  94. package/dist/shared/ui/BreadCrumb/index.d.ts +1 -0
  95. package/dist/shared/ui/Button/Button.d.ts +47 -0
  96. package/dist/shared/ui/Button/index.d.ts +1 -0
  97. package/dist/shared/ui/ButtonDropdown/ButtonDropdown.d.ts +53 -0
  98. package/dist/shared/ui/ButtonDropdown/index.d.ts +1 -0
  99. package/dist/shared/ui/ButtonGroup/ButtonGroup.d.ts +39 -0
  100. package/dist/shared/ui/ButtonGroup/index.d.ts +1 -0
  101. package/dist/shared/ui/Card/Card.d.ts +46 -0
  102. package/dist/shared/ui/Card/index.d.ts +2 -0
  103. package/dist/shared/ui/CardAction/CardAction.d.ts +28 -0
  104. package/dist/shared/ui/CardAction/index.d.ts +2 -0
  105. package/dist/shared/ui/ChatCollapsibleCheck/ChatCollapsibleCheck.d.ts +54 -0
  106. package/dist/shared/ui/ChatCollapsibleCheck/index.d.ts +2 -0
  107. package/dist/shared/ui/ChatCollapsibleContainer/ChatCollapsibleContainer.d.ts +32 -0
  108. package/dist/shared/ui/ChatCollapsibleContainer/index.d.ts +2 -0
  109. package/dist/shared/ui/ChatCollapsibleDialog/ChatCollapsibleDialog.d.ts +43 -0
  110. package/dist/shared/ui/ChatCollapsibleDialog/index.d.ts +2 -0
  111. package/dist/shared/ui/ChatCommandList/ChatCommandList.d.ts +78 -0
  112. package/dist/shared/ui/ChatCommandList/index.d.ts +2 -0
  113. package/dist/shared/ui/ChatCommandListItem/ChatCommandListItem.d.ts +88 -0
  114. package/dist/shared/ui/ChatCommandListItem/index.d.ts +2 -0
  115. package/dist/shared/ui/ChatHeader/ChatHeader.d.ts +38 -0
  116. package/dist/shared/ui/ChatHeader/index.d.ts +1 -0
  117. package/dist/shared/ui/ChatHistorial/ChatHistorial.d.ts +49 -0
  118. package/dist/shared/ui/ChatHistorial/index.d.ts +2 -0
  119. package/dist/shared/ui/ChatHistorialItem/ChatHistorialItem.d.ts +33 -0
  120. package/dist/shared/ui/ChatHistorialItem/index.d.ts +2 -0
  121. package/dist/shared/ui/ChatInputText/ChatInputText.d.ts +36 -0
  122. package/dist/shared/ui/ChatInputText/index.d.ts +1 -0
  123. package/dist/shared/ui/ChatMessage/ChatMessage.d.ts +27 -0
  124. package/dist/shared/ui/ChatMessage/index.d.ts +2 -0
  125. package/dist/shared/ui/ChatMessageOptions/ChatMessageOptions.d.ts +30 -0
  126. package/dist/shared/ui/ChatMessageOptions/index.d.ts +2 -0
  127. package/dist/shared/ui/ChatPanel/ChatPanel.d.ts +57 -0
  128. package/dist/shared/ui/ChatPanel/ChatPanel.types.d.ts +171 -0
  129. package/dist/shared/ui/ChatPanel/index.d.ts +2 -0
  130. package/dist/shared/ui/ChatTypingIndicator/ChatTypingIndicator.d.ts +17 -0
  131. package/dist/shared/ui/ChatTypingIndicator/index.d.ts +1 -0
  132. package/dist/shared/ui/Checkbox/Checkbox.d.ts +26 -0
  133. package/dist/shared/ui/Checkbox/index.d.ts +1 -0
  134. package/dist/shared/ui/Chip/Chip.d.ts +35 -0
  135. package/dist/shared/ui/Chip/index.d.ts +1 -0
  136. package/dist/shared/ui/ColorPalette/ColorPalette.d.ts +9 -0
  137. package/dist/shared/ui/ColumnHandler/ColumnHandler.d.ts +17 -0
  138. package/dist/shared/ui/ColumnHandler/PanelHandle.d.ts +32 -0
  139. package/dist/shared/ui/ColumnHandler/index.d.ts +4 -0
  140. package/dist/shared/ui/ComboBox/ComboBox.d.ts +69 -0
  141. package/dist/shared/ui/ComboBox/index.d.ts +1 -0
  142. package/dist/shared/ui/ContextualMenu/ContextualMenu.d.ts +47 -0
  143. package/dist/shared/ui/ContextualMenu/index.d.ts +2 -0
  144. package/dist/shared/ui/DateRangePicker/DateRangePicker.d.ts +47 -0
  145. package/dist/shared/ui/DateRangePicker/index.d.ts +1 -0
  146. package/dist/shared/ui/Divider/Divider.d.ts +8 -0
  147. package/dist/shared/ui/Divider/index.d.ts +1 -0
  148. package/dist/shared/ui/DragAndDropListItem/DragAndDropListItem.d.ts +54 -0
  149. package/dist/shared/ui/DragAndDropListItem/index.d.ts +2 -0
  150. package/dist/shared/ui/DropMenu/DropMenu.d.ts +58 -0
  151. package/dist/shared/ui/DropMenu/index.d.ts +1 -0
  152. package/dist/shared/ui/DropZone/DropZone.d.ts +47 -0
  153. package/dist/shared/ui/DropZone/index.d.ts +2 -0
  154. package/dist/shared/ui/Dropdown/Dropdown.d.ts +66 -0
  155. package/dist/shared/ui/Dropdown/index.d.ts +1 -0
  156. package/dist/shared/ui/DropdownMenu/DropdownMenu.d.ts +37 -0
  157. package/dist/shared/ui/ErrorBoundary/ErrorBoundary.d.ts +46 -0
  158. package/dist/shared/ui/ErrorBoundary/index.d.ts +2 -0
  159. package/dist/shared/ui/ErrorState/ErrorState.d.ts +51 -0
  160. package/dist/shared/ui/ErrorState/index.d.ts +2 -0
  161. package/dist/shared/ui/FloatingBar/FloatingBar.d.ts +92 -0
  162. package/dist/shared/ui/FloatingBar/index.d.ts +1 -0
  163. package/dist/shared/ui/FormFieldGroup/FormFieldGroup.d.ts +9 -0
  164. package/dist/shared/ui/FormFieldGroup/index.d.ts +2 -0
  165. package/dist/shared/ui/GridDraggableItem/GridDraggableItem.d.ts +45 -0
  166. package/dist/shared/ui/GridDraggableItem/index.d.ts +2 -0
  167. package/dist/shared/ui/Header/Header.d.ts +36 -0
  168. package/dist/shared/ui/Header/index.d.ts +2 -0
  169. package/dist/shared/ui/Header/useCalculateHeaderWidths.d.ts +31 -0
  170. package/dist/shared/ui/HeaderTabs/HeaderTabs.d.ts +36 -0
  171. package/dist/shared/ui/HeaderTabs/index.d.ts +2 -0
  172. package/dist/shared/ui/Icon/Icon.d.ts +37 -0
  173. package/dist/shared/ui/Icon/index.d.ts +1 -0
  174. package/dist/shared/ui/ImageUploader/ImageUploader.d.ts +38 -0
  175. package/dist/shared/ui/ImageUploader/index.d.ts +1 -0
  176. package/dist/shared/ui/InfoLabel/InfoLabel.d.ts +28 -0
  177. package/dist/shared/ui/InfoLabel/index.d.ts +2 -0
  178. package/dist/shared/ui/InputField/InputField.d.ts +55 -0
  179. package/dist/shared/ui/InputField/index.d.ts +1 -0
  180. package/dist/shared/ui/InputSearch/InputSearch.d.ts +44 -0
  181. package/dist/shared/ui/InputSearch/index.d.ts +1 -0
  182. package/dist/shared/ui/Kbd/Kbd.d.ts +8 -0
  183. package/dist/shared/ui/Kbd/index.d.ts +2 -0
  184. package/dist/shared/ui/LabelIcon/LabelIcon.d.ts +26 -0
  185. package/dist/shared/ui/LabelIcon/index.d.ts +2 -0
  186. package/dist/shared/ui/LabelWithIcon/LabelWithIcon.d.ts +27 -0
  187. package/dist/shared/ui/LabelWithIcon/index.d.ts +1 -0
  188. package/dist/shared/ui/LabelWithTooltip/LabelWithTooltip.d.ts +41 -0
  189. package/dist/shared/ui/LabelWithTooltip/index.d.ts +1 -0
  190. package/dist/shared/ui/Link/Link.d.ts +39 -0
  191. package/dist/shared/ui/Link/index.d.ts +1 -0
  192. package/dist/shared/ui/ListItem/ListItem.d.ts +72 -0
  193. package/dist/shared/ui/ListItem/index.d.ts +2 -0
  194. package/dist/shared/ui/Modal/Modal.d.ts +203 -0
  195. package/dist/shared/ui/Modal/index.d.ts +1 -0
  196. package/dist/shared/ui/ModuleCard/ModuleCard.d.ts +51 -0
  197. package/dist/shared/ui/ModuleCard/index.d.ts +1 -0
  198. package/dist/shared/ui/ModuleFieldItem/ModuleFieldItem.d.ts +53 -0
  199. package/dist/shared/ui/ModuleFieldItem/index.d.ts +1 -0
  200. package/dist/shared/ui/PanelHeader/PanelHeader.d.ts +37 -0
  201. package/dist/shared/ui/PanelHeader/index.d.ts +1 -0
  202. package/dist/shared/ui/PasswordResetWidget/PasswordResetWidget.d.ts +19 -0
  203. package/dist/shared/ui/PasswordResetWidget/index.d.ts +2 -0
  204. package/dist/shared/ui/ProductIcon/ProductIcon.d.ts +25 -0
  205. package/dist/shared/ui/ProductIcon/index.d.ts +1 -0
  206. package/dist/shared/ui/Progress/Progress.d.ts +29 -0
  207. package/dist/shared/ui/Progress/index.d.ts +1 -0
  208. package/dist/shared/ui/ProgressBar/ProgressBar.d.ts +21 -0
  209. package/dist/shared/ui/ProgressBar/index.d.ts +1 -0
  210. package/dist/shared/ui/ProgressCircle/ProgressCircle.d.ts +44 -0
  211. package/dist/shared/ui/ProgressCircle/index.d.ts +1 -0
  212. package/dist/shared/ui/ProgressCustomTooltip/ProgressCustomTooltip.d.ts +47 -0
  213. package/dist/shared/ui/ProgressCustomTooltip/index.d.ts +1 -0
  214. package/dist/shared/ui/ProgressTracker/ProgressTracker.d.ts +36 -0
  215. package/dist/shared/ui/ProgressTracker/index.d.ts +1 -0
  216. package/dist/shared/ui/ProjectActionCard/ProjectActionCard.d.ts +23 -0
  217. package/dist/shared/ui/ProjectActionCard/index.d.ts +2 -0
  218. package/dist/shared/ui/ProjectCard/ProjectCard.d.ts +46 -0
  219. package/dist/shared/ui/ProjectCard/index.d.ts +2 -0
  220. package/dist/shared/ui/ProjectCardPlan/ProjectCardPlan.d.ts +27 -0
  221. package/dist/shared/ui/ProjectCardPlan/index.d.ts +2 -0
  222. package/dist/shared/ui/Radio/Radio.d.ts +24 -0
  223. package/dist/shared/ui/Radio/index.d.ts +1 -0
  224. package/dist/shared/ui/RecoveryWidget/RecoveryWidget.d.ts +26 -0
  225. package/dist/shared/ui/RecoveryWidget/index.d.ts +2 -0
  226. package/dist/shared/ui/RelatedDataCard/RelatedDataCard.d.ts +47 -0
  227. package/dist/shared/ui/RelatedDataCard/index.d.ts +1 -0
  228. package/dist/shared/ui/SettingsCard/SettingsCard.d.ts +24 -0
  229. package/dist/shared/ui/SettingsCard/index.d.ts +2 -0
  230. package/dist/shared/ui/SidePanel/SidePanel.d.ts +26 -0
  231. package/dist/shared/ui/SidePanel/SidePanel.types.d.ts +27 -0
  232. package/dist/shared/ui/SidePanel/index.d.ts +2 -0
  233. package/dist/shared/ui/SupportCard/SupportCard.d.ts +19 -0
  234. package/dist/shared/ui/SupportCard/index.d.ts +2 -0
  235. package/dist/shared/ui/Switcher/Switcher.d.ts +41 -0
  236. package/dist/shared/ui/Switcher/index.d.ts +1 -0
  237. package/dist/shared/ui/Table/Table.d.ts +136 -0
  238. package/dist/shared/ui/Table/TableBody.d.ts +13 -0
  239. package/dist/shared/ui/Table/TableCell.d.ts +6 -0
  240. package/dist/shared/ui/Table/TableColumnFilter.d.ts +11 -0
  241. package/dist/shared/ui/Table/TableColumnHeader.d.ts +6 -0
  242. package/dist/shared/ui/Table/TableColumnVisibility.d.ts +7 -0
  243. package/dist/shared/ui/Table/TableContext.d.ts +31 -0
  244. package/dist/shared/ui/Table/TableEmptyState.d.ts +16 -0
  245. package/dist/shared/ui/Table/TableHeader.d.ts +5 -0
  246. package/dist/shared/ui/Table/TablePagination.d.ts +9 -0
  247. package/dist/shared/ui/Table/TableRoot.d.ts +6 -0
  248. package/dist/shared/ui/Table/TableRow.d.ts +8 -0
  249. package/dist/shared/ui/Table/configParser.d.ts +18 -0
  250. package/dist/shared/ui/Table/index.d.ts +15 -0
  251. package/dist/shared/ui/Table/mockData.d.ts +33 -0
  252. package/dist/shared/ui/Table/types.d.ts +66 -0
  253. package/dist/shared/ui/Tabs/Tabs.d.ts +59 -0
  254. package/dist/shared/ui/Tabs/index.d.ts +1 -0
  255. package/dist/shared/ui/Tag/Tag.d.ts +29 -0
  256. package/dist/shared/ui/Tag/index.d.ts +1 -0
  257. package/dist/shared/ui/TextArea/TextArea.d.ts +28 -0
  258. package/dist/shared/ui/TextArea/index.d.ts +1 -0
  259. package/dist/shared/ui/ThemeToggle/ThemeToggle.d.ts +29 -0
  260. package/dist/shared/ui/ThemeToggle/index.d.ts +1 -0
  261. package/dist/shared/ui/Toast/Toast.d.ts +54 -0
  262. package/dist/shared/ui/Toast/index.d.ts +2 -0
  263. package/dist/shared/ui/Toggle/Toggle.d.ts +24 -0
  264. package/dist/shared/ui/Toggle/index.d.ts +1 -0
  265. package/dist/shared/ui/Tooltip/Tooltip.d.ts +103 -0
  266. package/dist/shared/ui/Tooltip/index.d.ts +1 -0
  267. package/dist/shared/ui/TypesPanel/TypesPanel.d.ts +28 -0
  268. package/dist/shared/ui/TypesPanel/index.d.ts +2 -0
  269. package/dist/shared/ui/TypesPanelBodyGrid/TypesPanelBodyGrid.d.ts +45 -0
  270. package/dist/shared/ui/TypesPanelBodyGrid/index.d.ts +2 -0
  271. package/dist/shared/ui/TypesPanelBodyList/TypesPanelBodyList.d.ts +45 -0
  272. package/dist/shared/ui/TypesPanelBodyList/index.d.ts +2 -0
  273. package/dist/shared/ui/TypesPanelHeader/TypesPanelHeader.d.ts +27 -0
  274. package/dist/shared/ui/TypesPanelHeader/index.d.ts +2 -0
  275. package/dist/shared/ui/TypesPanelHeaderSearch/TypesPanelHeaderSearch.d.ts +44 -0
  276. package/dist/shared/ui/TypesPanelHeaderSearch/index.d.ts +1 -0
  277. package/dist/shared/ui/UserMenu/UserMenu.d.ts +78 -0
  278. package/dist/shared/ui/UserMenu/index.d.ts +1 -0
  279. package/dist/shared/ui/VisualComposer/VisualComposer.d.ts +36 -0
  280. package/dist/shared/ui/VisualComposer/index.d.ts +2 -0
  281. package/dist/shared/ui/WidgetBuilderItemHoverAction/WidgetBuilderItemHoverAction.d.ts +15 -0
  282. package/dist/shared/ui/WidgetBuilderItemHoverAction/index.d.ts +2 -0
  283. package/dist/shared/ui/WidgetContainer/WidgetContainer.d.ts +23 -0
  284. package/dist/shared/ui/WidgetContainer/index.d.ts +2 -0
  285. package/dist/shared/ui/WidgetSidebar/WidgetSidebar.d.ts +70 -0
  286. package/dist/shared/ui/WidgetSidebar/index.d.ts +2 -0
  287. package/dist/shared/ui/WorkspaceSettings/WorkspaceSettings.d.ts +22 -0
  288. package/dist/shared/ui/WorkspaceSettings/index.d.ts +2 -0
  289. package/dist/shared/ui/index.d.ts +1 -0
  290. package/dist/shared/ui/slider/Slider.d.ts +96 -0
  291. package/dist/shared/ui/slider/index.d.ts +2 -0
  292. package/dist/shared/utils/index.d.ts +1 -0
  293. package/dist/shared/utils/tailwind.d.ts +9 -0
  294. package/package.json +112 -0
  295. package/tailwind.preset.js +278 -0
@@ -0,0 +1,44 @@
1
+ import React from "react";
2
+ /**
3
+ * Props interface for the TypesPanelHeaderSearch component.
4
+ */
5
+ export interface TypesPanelHeaderSearchProps {
6
+ /**
7
+ * Optional custom CSS classes
8
+ */
9
+ className?: string;
10
+ /**
11
+ * Search query value (controlled)
12
+ */
13
+ searchQuery?: string;
14
+ /**
15
+ * Callback when search query changes
16
+ */
17
+ onSearchChange?: (query: string) => void;
18
+ /**
19
+ * Search bar placeholder text
20
+ * @default 'Search...'
21
+ */
22
+ searchPlaceholder?: string;
23
+ /**
24
+ * Selected view mode (list/grid)
25
+ */
26
+ selectedView?: string | number;
27
+ /**
28
+ * Callback when view mode changes
29
+ */
30
+ onViewChange?: (view: string | number) => void;
31
+ /**
32
+ * Button group options for view toggle
33
+ */
34
+ viewOptions?: Array<{
35
+ value: string | number;
36
+ icon: React.ReactNode;
37
+ }>;
38
+ /**
39
+ * ButtonGroup size
40
+ * @default 'sm'
41
+ */
42
+ buttonGroupSize?: "sm" | "md" | "lg";
43
+ }
44
+ export declare const TypesPanelHeaderSearch: React.FC<TypesPanelHeaderSearchProps>;
@@ -0,0 +1 @@
1
+ export { TypesPanelHeaderSearch, type TypesPanelHeaderSearchProps, } from "./TypesPanelHeaderSearch";
@@ -0,0 +1,78 @@
1
+ import React from 'react';
2
+ import { type AvatarProps } from '../Avatar/Avatar';
3
+ import { type BadgeTheme } from '../Badge/Badge';
4
+ /**
5
+ * Represents a single menu item in the user menu.
6
+ */
7
+ export interface UserMenuItem {
8
+ /** Unique identifier for the menu item */
9
+ id: string;
10
+ /** Display label for the menu item */
11
+ label: string;
12
+ /** Optional icon component to display before the label */
13
+ icon?: React.ReactNode;
14
+ /** Callback fired when the menu item is clicked */
15
+ onClick?: () => void;
16
+ /** Optional badge to display on the right side */
17
+ badge?: {
18
+ label: string;
19
+ theme?: BadgeTheme;
20
+ };
21
+ /** Optional toggle switch to display on the right side */
22
+ switch?: {
23
+ checked: boolean;
24
+ onChange: (checked: boolean) => void;
25
+ };
26
+ /** Optional custom trailing content (overrides badge and switch) */
27
+ trailing?: React.ReactNode;
28
+ /** Whether this is a destructive action (renders in red) */
29
+ destructive?: boolean;
30
+ /** Whether the item is disabled */
31
+ disabled?: boolean;
32
+ }
33
+ /**
34
+ * User data for the avatar trigger
35
+ */
36
+ export interface UserMenuUser {
37
+ /** User's full name */
38
+ name: string;
39
+ /** User's email (optional subtitle) */
40
+ email?: string;
41
+ /** User's avatar image URL */
42
+ avatar?: string;
43
+ /** User's initials (fallback if no avatar) */
44
+ initials?: string;
45
+ /** Optional status badge on avatar */
46
+ statusBadge?: AvatarProps['statusBadge'];
47
+ }
48
+ /**
49
+ * Defines the public API for the UserMenu component.
50
+ */
51
+ export interface UserMenuProps {
52
+ /** User data for the avatar trigger */
53
+ user: UserMenuUser;
54
+ /** Array of menu item sections (each section is an array of items) */
55
+ sections: UserMenuItem[][];
56
+ /** Alignment of the menu relative to the trigger */
57
+ align?: 'left' | 'right';
58
+ /** Offset from the trigger in pixels */
59
+ offset?: number;
60
+ /** Optional custom CSS classes for the container */
61
+ className?: string;
62
+ /** Avatar size */
63
+ avatarSize?: AvatarProps['size'];
64
+ }
65
+ /**
66
+ * @file A user menu component that combines an avatar trigger with a contextual menu.
67
+ * @description This component renders a user avatar that opens a dropdown menu when clicked.
68
+ * It supports sectioned items, badges, toggle switches, icons, and destructive actions.
69
+ *
70
+ * @param {UserMenuUser} user - User data for the avatar trigger
71
+ * @param {UserMenuItem[][]} sections - Array of menu item sections
72
+ * @param {'left' | 'right'} [align='right'] - Menu alignment relative to trigger
73
+ * @param {number} [offset=8] - Distance from trigger in pixels
74
+ * @param {string} [className] - Optional CSS classes for the container
75
+ * @param {AvatarProps['size']} [avatarSize='md'] - Size of the avatar
76
+ * @returns {JSX.Element} The rendered UserMenu component
77
+ */
78
+ export declare const UserMenu: ({ user, sections, align, offset, className, avatarSize, }: UserMenuProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { UserMenu, type UserMenuProps, type UserMenuItem, type UserMenuUser } from './UserMenu';
@@ -0,0 +1,36 @@
1
+ import React from "react";
2
+ type GridLayout = "1" | "2" | "3" | "2-1" | "1-2" | "1-1";
3
+ export interface WidgetData {
4
+ id: string;
5
+ title: string;
6
+ description: string;
7
+ icon?: React.ReactNode;
8
+ position: number;
9
+ onMaximize?: () => void;
10
+ onEdit?: () => void;
11
+ onCopy?: () => void;
12
+ onTrash?: () => void;
13
+ }
14
+ export interface ColumnData {
15
+ id: string;
16
+ widgets: WidgetData[];
17
+ }
18
+ export interface SectionData {
19
+ id: string;
20
+ layout: GridLayout;
21
+ position: number;
22
+ columns: ColumnData[];
23
+ onAction?: (action: "maximize" | "grid" | "add" | "copy" | "trash" | "addWidget") => void;
24
+ }
25
+ export interface VisualComposerData {
26
+ sections: SectionData[];
27
+ }
28
+ export interface VisualComposerProps extends React.HTMLAttributes<HTMLDivElement> {
29
+ data?: VisualComposerData;
30
+ onAction?: (action: "add" | "grid" | "copy" | "trash") => void;
31
+ onWidgetReorder?: (widgetId: string, newPosition: number, newColumnId: string, newSectionId: string) => void;
32
+ onSectionReorder?: (sectionId: string, newPosition: number) => void;
33
+ onDataChange?: (data: VisualComposerData) => void;
34
+ }
35
+ export declare const VisualComposer: ({ className, data, onAction, onWidgetReorder, onSectionReorder, onDataChange, ...props }: VisualComposerProps) => import("react/jsx-runtime").JSX.Element;
36
+ export {};
@@ -0,0 +1,2 @@
1
+ export { VisualComposer } from './VisualComposer';
2
+ export type { VisualComposerProps, VisualComposerData, SectionData, ColumnData, WidgetData, } from './VisualComposer';
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ export interface WidgetBuilderItemHoverActionProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ title: string;
4
+ description: string;
5
+ icon: React.ReactNode;
6
+ onMaximize?: () => void;
7
+ onEdit?: () => void;
8
+ onCopy?: () => void;
9
+ onTrash?: () => void;
10
+ }
11
+ /**
12
+ * A component for displaying widget builder item hover action with an icon, title, and description.
13
+ * Includes a button group with predefined actions.
14
+ */
15
+ export declare const WidgetBuilderItemHoverAction: ({ className, title, description, icon, onMaximize, onEdit, onCopy, onTrash, ...props }: WidgetBuilderItemHoverActionProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { WidgetBuilderItemHoverAction } from './WidgetBuilderItemHoverAction';
2
+ export type { WidgetBuilderItemHoverActionProps } from './WidgetBuilderItemHoverAction';
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ export type WidgetSize = "1" | "2h" | "2w" | "4";
3
+ export interface WidgetContainerProps {
4
+ /** Size of the widget */
5
+ size?: WidgetSize;
6
+ /** Title displayed in the header */
7
+ title?: string;
8
+ /** Actions displayed in the header */
9
+ actions?: React.ReactNode;
10
+ /** Content of the widget body */
11
+ children?: React.ReactNode;
12
+ /** Optional className for the container */
13
+ className?: string;
14
+ /** Optional className for the header */
15
+ classNameHeader?: string;
16
+ /** Optional className for the body */
17
+ classNameBody?: string;
18
+ }
19
+ /**
20
+ * A flexible widget container component with header and body sections.
21
+ * Supports 4 predefined sizes based on a 400px base with 25px grid spacing.
22
+ */
23
+ export declare const WidgetContainer: ({ size, title, actions, children, className, classNameHeader, classNameBody, }: WidgetContainerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { WidgetContainer } from './WidgetContainer';
2
+ export type { WidgetContainerProps, WidgetSize } from './WidgetContainer';
@@ -0,0 +1,70 @@
1
+ import React from "react";
2
+ /**
3
+ * Represents a widget item in the sidebar
4
+ */
5
+ export interface WidgetSidebarItem {
6
+ /** Unique identifier for the item */
7
+ id: string;
8
+ /** Display title for the item */
9
+ title: string;
10
+ /** Optional description for the item */
11
+ description?: string;
12
+ /** Optional icon for the item */
13
+ icon?: React.ReactNode;
14
+ /** Position number on canvas (displayed as trailing text) */
15
+ position?: number;
16
+ /** Whether the item is selected */
17
+ isSelected?: boolean;
18
+ /** Whether the item is visible */
19
+ isVisible?: boolean;
20
+ /** Whether the item is disabled */
21
+ isDisabled?: boolean;
22
+ /** Optional custom data for the item */
23
+ data?: Record<string, unknown>;
24
+ }
25
+ /**
26
+ * Props for the WidgetSidebar component
27
+ */
28
+ export interface WidgetSidebarProps {
29
+ /** Array of widget items to display */
30
+ items: WidgetSidebarItem[];
31
+ /** Placeholder text for the search input */
32
+ searchPlaceholder?: string;
33
+ /** Show/hide search bar */
34
+ showSearch?: boolean;
35
+ /** Icon to display in header (right side) */
36
+ headerIcon?: React.ReactNode;
37
+ /** Tooltip content for the header icon */
38
+ headerTooltip?: React.ReactNode;
39
+ /** Callback when an item is clicked */
40
+ onItemClick?: (item: WidgetSidebarItem) => void;
41
+ /** Custom className for the container */
42
+ className?: string;
43
+ /** Custom background color */
44
+ backgroundColor?: string;
45
+ /** Custom border style */
46
+ borderStyle?: string;
47
+ }
48
+ /**
49
+ * @file A sidebar component for displaying widgets
50
+ * @description This component displays a list of widgets that can be clicked.
51
+ * Each widget shows its title, optional description, icon, and position number on canvas.
52
+ *
53
+ * Features:
54
+ * - Search functionality to filter widgets
55
+ * - Customizable list item sizes
56
+ * - Uses ListItem component for consistent styling
57
+ * - Shows widget position on canvas as trailing text
58
+ * - Fully controlled via props (data-driven)
59
+ *
60
+ * @param {WidgetSidebarItem[]} items - Array of widget items
61
+ * @param {string} [searchPlaceholder='Search'] - Placeholder for search input
62
+ * @param {boolean} [showSearch=true] - Show/hide the search bar
63
+ * @param {React.ReactNode} [headerIcon] - Icon to display in header
64
+ * @param {Function} [onItemClick] - Callback when an item is clicked
65
+ * @param {string} [className] - Custom CSS classes for the container
66
+ * @param {string} [backgroundColor='bg-white'] - Custom background color
67
+ * @param {string} [borderStyle='border border-surface-3'] - Custom border style
68
+ * @returns {JSX.Element} The rendered WidgetSidebar component
69
+ */
70
+ export declare const WidgetSidebar: ({ items, searchPlaceholder, showSearch, headerIcon, headerTooltip, onItemClick, className, backgroundColor, borderStyle, }: WidgetSidebarProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { WidgetSidebar } from './WidgetSidebar';
2
+ export type { WidgetSidebarProps, WidgetSidebarItem, } from './WidgetSidebar';
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ export interface WorkspaceSettingsItem {
3
+ icon: React.ReactNode;
4
+ label: string;
5
+ description?: string;
6
+ buttonLabel?: string;
7
+ buttonIcon?: React.ReactNode;
8
+ buttonOnClick?: () => void;
9
+ }
10
+ export interface WorkspaceSettingsProps extends React.HTMLAttributes<HTMLDivElement> {
11
+ title: string;
12
+ subtitle: string;
13
+ actionButtonLabel?: string;
14
+ actionButtonLabelOnClick?: () => void;
15
+ extraComponent?: React.ReactNode;
16
+ items: WorkspaceSettingsItem[];
17
+ }
18
+ /**
19
+ * A component for displaying workspace settings with a title, subtitle, and a list of items.
20
+ * Each item includes an icon, label, description, and an action button.
21
+ */
22
+ export declare const WorkspaceSettings: ({ className, title, subtitle, actionButtonLabel, actionButtonLabelOnClick, extraComponent, items, ...props }: WorkspaceSettingsProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { WorkspaceSettings } from './WorkspaceSettings';
2
+ export type { WorkspaceSettingsProps, WorkspaceSettingsItem } from './WorkspaceSettings';
@@ -0,0 +1 @@
1
+ export * from '../../index';
@@ -0,0 +1,96 @@
1
+ import React from "react";
2
+ /**
3
+ * Tipo de variante visual del Slider
4
+ * @typedef {("default" | "percentage" | "labelTop" | "labelBottom")} SliderVariant
5
+ */
6
+ export type SliderVariant = "default" | "percentage" | "labelTop" | "labelBottom";
7
+ /**
8
+ * Propiedades del componente Slider
9
+ * @interface SliderProps
10
+ */
11
+ export interface SliderProps {
12
+ /**
13
+ * Valor mínimo del slider
14
+ * @type {number}
15
+ * @default 0
16
+ */
17
+ min?: number;
18
+ /**
19
+ * Valor máximo del slider
20
+ * @type {number}
21
+ * @default 100
22
+ */
23
+ max?: number;
24
+ /**
25
+ * Valor inicial del primer control
26
+ * @type {number}
27
+ * @default 0
28
+ */
29
+ defaultValue?: number;
30
+ /**
31
+ * Valor inicial del segundo control. Si se proporciona, el slider funciona en modo rango
32
+ * @type {number | undefined}
33
+ * @default undefined
34
+ */
35
+ defaultValueEnd?: number;
36
+ /**
37
+ * Incremento del slider al mover los controles
38
+ * @type {number}
39
+ * @default 1
40
+ */
41
+ step?: number;
42
+ /**
43
+ * Variante visual del slider
44
+ * - default: Sin indicadores
45
+ * - percentage: Solo texto de porcentaje (sin caja de fondo)
46
+ * - labelTop: Etiquetas arriba con caja de fondo y pointer apuntando hacia el control
47
+ * - labelBottom: Etiquetas abajo con caja de fondo y pointer apuntando hacia el control
48
+ * @type {SliderVariant}
49
+ * @default "default"
50
+ */
51
+ variant?: SliderVariant;
52
+ /**
53
+ * Etiquetas personalizadas para las variantes labelTop y labelBottom
54
+ * @type {string[]}
55
+ * @default []
56
+ */
57
+ labels?: string[];
58
+ /**
59
+ * Callback ejecutado cuando cambia el valor del slider
60
+ * @type {(value: number | [number, number]) => void}
61
+ */
62
+ onChange?: (value: number | [number, number]) => void;
63
+ /**
64
+ * Clases CSS adicionales para el contenedor
65
+ * @type {string}
66
+ */
67
+ className?: string;
68
+ /**
69
+ * Si es true, el slider está deshabilitado
70
+ * @type {boolean}
71
+ * @default false
72
+ */
73
+ disabled?: boolean;
74
+ }
75
+ /**
76
+ * Componente Slider para seleccionar un valor o rango de valores.
77
+ *
78
+ * @component
79
+ * @example
80
+ * // Slider simple
81
+ * <Slider min={0} max={100} defaultValue={50} />
82
+ *
83
+ * @example
84
+ * // Slider de rango con porcentajes
85
+ * <Slider
86
+ * min={0}
87
+ * max={100}
88
+ * defaultValue={25}
89
+ * defaultValueEnd={75}
90
+ * variant="percentage"
91
+ * />
92
+ *
93
+ * @param {SliderProps} props - Propiedades del componente
94
+ * @returns {JSX.Element} Componente Slider renderizado
95
+ */
96
+ export declare const Slider: React.FC<SliderProps>;
@@ -0,0 +1,2 @@
1
+ export { Slider } from "./Slider";
2
+ export type { SliderProps, SliderVariant } from "./Slider";
@@ -0,0 +1 @@
1
+ export * from "./tailwind";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Tailwind CSS utility functions for consistent class generation
3
+ */
4
+ /**
5
+ * Maps gap values to Tailwind gap classes
6
+ * @param gap - Gap value from 0-8
7
+ * @returns Tailwind gap class string
8
+ */
9
+ export declare const getGapClass: (gap?: number) => string;
package/package.json ADDED
@@ -0,0 +1,112 @@
1
+ {
2
+ "name": "@skalar-saas/design-system",
3
+ "version": "0.1.67",
4
+ "type": "module",
5
+ "description": "Skalar Design System - UI component library",
6
+ "author": "Skalar Team",
7
+ "license": "UNLICENSED",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/skalar-saas/skalar-design-system.git"
11
+ },
12
+ "scripts": {
13
+ "build": "vite build && tsc --project tsconfig.build.json --skipLibCheck",
14
+ "lint": "eslint",
15
+ "test:storybook": "vitest run --project=storybook",
16
+ "storybook": "storybook dev -p 6006",
17
+ "build-storybook": "storybook build",
18
+ "chromatic": "npx chromatic --project-token=chpt_29fd0416e5da6c0"
19
+ },
20
+ "packageManager": "pnpm@10.20.0",
21
+ "main": "./dist/index.js",
22
+ "module": "./dist/index.mjs",
23
+ "types": "./dist/index.d.ts",
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/index.mjs",
28
+ "require": "./dist/index.js"
29
+ },
30
+ "./styles": "./dist/design-system.css",
31
+ "./preset": "./tailwind.preset.js"
32
+ },
33
+ "files": [
34
+ "dist",
35
+ "tailwind.preset.js",
36
+ "README.md"
37
+ ],
38
+ "sideEffects": [
39
+ "*.css"
40
+ ],
41
+ "peerDependencies": {
42
+ "@dnd-kit/core": "^6.3.1",
43
+ "@dnd-kit/sortable": "^10.0.0",
44
+ "@dnd-kit/utilities": "^3.2.2",
45
+ "@headlessui/react": "^2.2.8",
46
+ "@radix-ui/react-toast": "^1.2.15",
47
+ "@radix-ui/react-tooltip": "^1.2.8",
48
+ "@tanstack/react-table": "^8.21.3",
49
+ "@tanstack/react-virtual": "^3.13.12",
50
+ "clsx": "^2.1.1",
51
+ "framer-motion": "^12.23.22",
52
+ "iconsax-react": "^0.0.8",
53
+ "react": "^18.0.0 || ^19.0.0",
54
+ "react-day-picker": "^9.11.1",
55
+ "react-dom": "^18.0.0 || ^19.0.0",
56
+ "tailwind-merge": "^3.3.1"
57
+ },
58
+ "devDependencies": {
59
+ "@chromatic-com/storybook": "^4.1.1",
60
+ "@dnd-kit/core": "^6.3.1",
61
+ "@dnd-kit/sortable": "^10.0.0",
62
+ "@dnd-kit/utilities": "^3.2.2",
63
+ "@eslint/eslintrc": "^3",
64
+ "@eslint/js": "^9.39.1",
65
+ "@headlessui/react": "^2.2.8",
66
+ "@radix-ui/react-toast": "^1.2.15",
67
+ "@radix-ui/react-tooltip": "^1.2.8",
68
+ "@storybook/addon-a11y": "^9.1.15",
69
+ "@storybook/addon-docs": "^9.1.15",
70
+ "@storybook/addon-onboarding": "^9.1.15",
71
+ "@storybook/addon-vitest": "^9.1.15",
72
+ "@storybook/react-vite": "^9.1.15",
73
+ "@tailwindcss/postcss": "^4",
74
+ "@tanstack/react-table": "^8.21.3",
75
+ "@tanstack/react-virtual": "^3.13.12",
76
+ "@testing-library/jest-dom": "^6.9.1",
77
+ "@testing-library/react": "^16.3.0",
78
+ "@testing-library/user-event": "^14.6.1",
79
+ "@types/jsdom": "^27.0.0",
80
+ "@types/node": "^20",
81
+ "@types/react": "^19",
82
+ "@types/react-dom": "^19",
83
+ "@vitejs/plugin-react": "^5.1.0",
84
+ "@vitest/browser": "^3.2.4",
85
+ "@vitest/coverage-v8": "^3.2.4",
86
+ "chromatic": "^13.3.4",
87
+ "clsx": "^2.1.1",
88
+ "eslint": "^9",
89
+ "eslint-plugin-react": "^7.37.5",
90
+ "eslint-plugin-react-hooks": "^7.0.1",
91
+ "eslint-plugin-storybook": "^9.1.15",
92
+ "framer-motion": "^12.23.22",
93
+ "glob": "^11.0.3",
94
+ "iconsax-react": "^0.0.8",
95
+ "jsdom": "^27.0.1",
96
+ "playwright": "^1.55.1",
97
+ "react": "19.1.0",
98
+ "react-day-picker": "^9.11.1",
99
+ "react-dom": "19.1.0",
100
+ "rollup-plugin-preserve-directives": "^0.4.0",
101
+ "storybook": "^9.1.15",
102
+ "tailwind-merge": "^3.3.1",
103
+ "tailwindcss": "^4",
104
+ "typescript": "^5",
105
+ "typescript-eslint": "^8.46.3",
106
+ "vite": "^7.2.1",
107
+ "vitest": "^3.2.4"
108
+ },
109
+ "dependencies": {
110
+ "react-markdown": "^10.1.0"
111
+ }
112
+ }