@widgetic/design-system 0.3.79 → 0.3.81

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 (254) hide show
  1. package/README.md +828 -123
  2. package/dist/components/CopyableHeader.svelte +13 -11
  3. package/dist/components/CopyableHeader.svelte.d.ts +34 -38
  4. package/dist/components/EmptyState.svelte +2 -9
  5. package/dist/components/EmptyState.svelte.d.ts +30 -35
  6. package/dist/components/PasswordInput.svelte +1 -5
  7. package/dist/components/PasswordInput.svelte.d.ts +19 -23
  8. package/dist/components/ThumbHashImage.svelte.d.ts +20 -24
  9. package/dist/components/WScrollArea.svelte +3 -3
  10. package/dist/components/WScrollArea.svelte.d.ts +25 -36
  11. package/dist/components/debug-grid/DebugGrid.svelte +1 -1
  12. package/dist/components/debug-grid/DebugGrid.svelte.d.ts +26 -30
  13. package/dist/components/ic/browser/BrowserInputController.svelte +1 -1
  14. package/dist/components/ic/browser/BrowserInputController.svelte.d.ts +26 -31
  15. package/dist/components/index.d.ts +1 -1
  16. package/dist/components/index.js +1 -1
  17. package/dist/components/modals/ActionModal.svelte.d.ts +36 -47
  18. package/dist/components/modals/BaseModal.svelte +1 -1
  19. package/dist/components/modals/BaseModal.svelte.d.ts +32 -36
  20. package/dist/components/modals/NewItemDialog.svelte +1 -1
  21. package/dist/components/modals/NewItemDialog.svelte.d.ts +33 -37
  22. package/dist/components/modals/Portal.svelte.d.ts +21 -32
  23. package/dist/components/modals/RenameDialog.svelte +6 -7
  24. package/dist/components/modals/RenameDialog.svelte.d.ts +33 -37
  25. package/dist/components/modals/modalStore.js +21 -26
  26. package/dist/components/navigation/Breadcrumbs.svelte +9 -9
  27. package/dist/components/navigation/Breadcrumbs.svelte.d.ts +28 -32
  28. package/dist/components/pdf/PDFViewer.svelte +19 -10
  29. package/dist/components/pdf/PDFViewer.svelte.d.ts +26 -30
  30. package/dist/components/search-input/SearchInput.svelte +8 -3
  31. package/dist/components/search-input/SearchInput.svelte.d.ts +40 -44
  32. package/dist/components/search-input/index.d.ts +14 -3
  33. package/dist/components/search-input/index.js +2 -1
  34. package/dist/components/shad-editor/colorpicker.svelte.d.ts +13 -5
  35. package/dist/components/shad-editor/custom/code-extended.svelte.d.ts +14 -4
  36. package/dist/components/shad-editor/custom/image-extended-component.svelte +1 -1
  37. package/dist/components/shad-editor/custom/image-extended-component.svelte.d.ts +14 -4
  38. package/dist/components/shad-editor/editor-toolbar.svelte.d.ts +13 -7
  39. package/dist/components/shad-editor/editor.css +4 -8
  40. package/dist/components/shad-editor/icons/block-quote.svelte.d.ts +13 -6
  41. package/dist/components/shad-editor/icons/bold.svelte.d.ts +13 -7
  42. package/dist/components/shad-editor/icons/buttle-list.svelte.d.ts +13 -6
  43. package/dist/components/shad-editor/icons/code.svelte.d.ts +13 -7
  44. package/dist/components/shad-editor/icons/highlighter.svelte.d.ts +13 -8
  45. package/dist/components/shad-editor/icons/image.svelte.d.ts +13 -7
  46. package/dist/components/shad-editor/icons/italic.svelte.d.ts +13 -7
  47. package/dist/components/shad-editor/icons/link.svelte.d.ts +13 -7
  48. package/dist/components/shad-editor/icons/ordered-list.svelte.d.ts +13 -6
  49. package/dist/components/shad-editor/icons/quickcolor.svelte.d.ts +13 -6
  50. package/dist/components/shad-editor/icons/redo.svelte.d.ts +13 -7
  51. package/dist/components/shad-editor/icons/search-replace.svelte.d.ts +13 -6
  52. package/dist/components/shad-editor/icons/strikethrough.svelte.d.ts +13 -7
  53. package/dist/components/shad-editor/icons/subscript.svelte.d.ts +13 -7
  54. package/dist/components/shad-editor/icons/superscript.svelte.d.ts +13 -7
  55. package/dist/components/shad-editor/icons/table.svelte +3 -3
  56. package/dist/components/shad-editor/icons/table.svelte.d.ts +13 -7
  57. package/dist/components/shad-editor/icons/task-list.svelte.d.ts +13 -6
  58. package/dist/components/shad-editor/icons/text.svelte +1 -1
  59. package/dist/components/shad-editor/icons/text.svelte.d.ts +13 -6
  60. package/dist/components/shad-editor/icons/textalign.svelte.d.ts +13 -6
  61. package/dist/components/shad-editor/icons/textcolor.svelte.d.ts +13 -7
  62. package/dist/components/shad-editor/icons/underline.svelte.d.ts +13 -7
  63. package/dist/components/shad-editor/icons/undo.svelte.d.ts +13 -7
  64. package/dist/components/shad-editor/onedark.css +0 -3
  65. package/dist/components/shad-editor/shad-editor.svelte +1 -1
  66. package/dist/components/shad-editor/shad-editor.svelte.d.ts +20 -30
  67. package/dist/components/toast/ToasterModal.svelte +11 -15
  68. package/dist/components/toast/ToasterModal.svelte.d.ts +11 -16
  69. package/dist/components/ui/accordion/accordion-content.svelte.d.ts +14 -4
  70. package/dist/components/ui/accordion/accordion-item.svelte.d.ts +14 -4
  71. package/dist/components/ui/accordion/accordion-trigger.svelte.d.ts +13 -6
  72. package/dist/components/ui/accordion/index.d.ts +1 -1
  73. package/dist/components/ui/alert/alert-description.svelte.d.ts +14 -25
  74. package/dist/components/ui/alert/alert-title.svelte.d.ts +16 -27
  75. package/dist/components/ui/alert/alert.svelte.d.ts +16 -27
  76. package/dist/components/ui/badge/badge.svelte +1 -1
  77. package/dist/components/ui/badge/badge.svelte.d.ts +15 -9
  78. package/dist/components/ui/breadcrumb/breadcrumb-ellipsis.svelte.d.ts +14 -5
  79. package/dist/components/ui/breadcrumb/breadcrumb-item.svelte.d.ts +14 -5
  80. package/dist/components/ui/breadcrumb/breadcrumb-link.svelte.d.ts +13 -10
  81. package/dist/components/ui/breadcrumb/breadcrumb-list.svelte.d.ts +14 -5
  82. package/dist/components/ui/breadcrumb/breadcrumb-page.svelte.d.ts +14 -5
  83. package/dist/components/ui/breadcrumb/breadcrumb-separator.svelte.d.ts +14 -5
  84. package/dist/components/ui/breadcrumb/breadcrumb.svelte.d.ts +14 -5
  85. package/dist/components/ui/button/button.svelte +1 -1
  86. package/dist/components/ui/button/button.svelte.d.ts +16 -5
  87. package/dist/components/ui/calendar/calendar-cell.svelte.d.ts +14 -4
  88. package/dist/components/ui/calendar/calendar-day.svelte +4 -4
  89. package/dist/components/ui/calendar/calendar-day.svelte.d.ts +14 -4
  90. package/dist/components/ui/calendar/calendar-grid-body.svelte.d.ts +14 -4
  91. package/dist/components/ui/calendar/calendar-grid-head.svelte.d.ts +14 -4
  92. package/dist/components/ui/calendar/calendar-grid-row.svelte.d.ts +14 -4
  93. package/dist/components/ui/calendar/calendar-grid.svelte.d.ts +14 -4
  94. package/dist/components/ui/calendar/calendar-head-cell.svelte.d.ts +14 -4
  95. package/dist/components/ui/calendar/calendar-header.svelte.d.ts +14 -4
  96. package/dist/components/ui/calendar/calendar-heading.svelte.d.ts +14 -4
  97. package/dist/components/ui/calendar/calendar-months.svelte.d.ts +14 -5
  98. package/dist/components/ui/calendar/calendar-next-button.svelte.d.ts +14 -4
  99. package/dist/components/ui/calendar/calendar-prev-button.svelte.d.ts +14 -4
  100. package/dist/components/ui/calendar/calendar.svelte.d.ts +14 -5
  101. package/dist/components/ui/card/card-content.svelte.d.ts +14 -5
  102. package/dist/components/ui/card/card-description.svelte.d.ts +14 -5
  103. package/dist/components/ui/card/card-footer.svelte.d.ts +14 -5
  104. package/dist/components/ui/card/card-header.svelte.d.ts +14 -5
  105. package/dist/components/ui/card/card-title.svelte.d.ts +13 -7
  106. package/dist/components/ui/card/card.svelte +1 -1
  107. package/dist/components/ui/card/card.svelte.d.ts +14 -5
  108. package/dist/components/ui/checkbox/checkbox.svelte +1 -1
  109. package/dist/components/ui/checkbox/checkbox.svelte.d.ts +14 -4
  110. package/dist/components/ui/collapsible/index.d.ts +1 -1
  111. package/dist/components/ui/command/command-dialog.svelte +1 -1
  112. package/dist/components/ui/command/command-dialog.svelte.d.ts +13 -8
  113. package/dist/components/ui/command/command-empty.svelte.d.ts +14 -4
  114. package/dist/components/ui/command/command-group.svelte.d.ts +13 -6
  115. package/dist/components/ui/command/command-input.svelte +1 -1
  116. package/dist/components/ui/command/command-input.svelte.d.ts +14 -4
  117. package/dist/components/ui/command/command-item.svelte +1 -1
  118. package/dist/components/ui/command/command-item.svelte.d.ts +14 -4
  119. package/dist/components/ui/command/command-link-item.svelte +1 -1
  120. package/dist/components/ui/command/command-link-item.svelte.d.ts +14 -4
  121. package/dist/components/ui/command/command-list.svelte.d.ts +14 -4
  122. package/dist/components/ui/command/command-separator.svelte.d.ts +14 -4
  123. package/dist/components/ui/command/command-shortcut.svelte.d.ts +14 -5
  124. package/dist/components/ui/command/command.svelte.d.ts +14 -4
  125. package/dist/components/ui/dialog/dialog-content.svelte +1 -1
  126. package/dist/components/ui/dialog/dialog-content.svelte.d.ts +13 -8
  127. package/dist/components/ui/dialog/dialog-description.svelte.d.ts +14 -4
  128. package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +14 -5
  129. package/dist/components/ui/dialog/dialog-header.svelte.d.ts +14 -5
  130. package/dist/components/ui/dialog/dialog-overlay.svelte.d.ts +14 -4
  131. package/dist/components/ui/dialog/dialog-title.svelte.d.ts +14 -4
  132. package/dist/components/ui/drawer/drawer-content.svelte.d.ts +13 -6
  133. package/dist/components/ui/drawer/drawer-description.svelte.d.ts +14 -4
  134. package/dist/components/ui/drawer/drawer-footer.svelte.d.ts +14 -5
  135. package/dist/components/ui/drawer/drawer-header.svelte.d.ts +14 -5
  136. package/dist/components/ui/drawer/drawer-nested.svelte.d.ts +14 -3
  137. package/dist/components/ui/drawer/drawer-overlay.svelte.d.ts +14 -4
  138. package/dist/components/ui/drawer/drawer-title.svelte.d.ts +14 -4
  139. package/dist/components/ui/drawer/drawer.svelte.d.ts +14 -3
  140. package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
  141. package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +13 -7
  142. package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +1 -1
  143. package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +13 -6
  144. package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +13 -6
  145. package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +1 -1
  146. package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +13 -6
  147. package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +13 -7
  148. package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
  149. package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +14 -4
  150. package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +14 -4
  151. package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +14 -5
  152. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +1 -1
  153. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +14 -4
  154. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
  155. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +13 -6
  156. package/dist/components/ui/dropdown-menu/index.d.ts +1 -1
  157. package/dist/components/ui/hover-card/hover-card-content.svelte +1 -1
  158. package/dist/components/ui/hover-card/hover-card-content.svelte.d.ts +13 -6
  159. package/dist/components/ui/input/input.svelte +1 -1
  160. package/dist/components/ui/input/input.svelte.d.ts +14 -5
  161. package/dist/components/ui/input-otp/input-otp-group.svelte.d.ts +14 -5
  162. package/dist/components/ui/input-otp/input-otp-separator.svelte.d.ts +14 -5
  163. package/dist/components/ui/input-otp/input-otp-slot.svelte.d.ts +14 -12
  164. package/dist/components/ui/input-otp/input-otp.svelte +1 -1
  165. package/dist/components/ui/input-otp/input-otp.svelte.d.ts +14 -3
  166. package/dist/components/ui/label/label.svelte.d.ts +14 -4
  167. package/dist/components/ui/popover/popover-content.svelte +1 -1
  168. package/dist/components/ui/popover/popover-content.svelte.d.ts +13 -6
  169. package/dist/components/ui/progress/progress.svelte.d.ts +14 -4
  170. package/dist/components/ui/radio-group/radio-group-item.svelte +1 -1
  171. package/dist/components/ui/radio-group/radio-group-item.svelte.d.ts +14 -4
  172. package/dist/components/ui/radio-group/radio-group.svelte.d.ts +14 -4
  173. package/dist/components/ui/range-calendar/range-calendar-cell.svelte.d.ts +14 -4
  174. package/dist/components/ui/range-calendar/range-calendar-day.svelte +6 -6
  175. package/dist/components/ui/range-calendar/range-calendar-day.svelte.d.ts +14 -4
  176. package/dist/components/ui/range-calendar/range-calendar-grid-row.svelte.d.ts +14 -4
  177. package/dist/components/ui/range-calendar/range-calendar-grid.svelte.d.ts +14 -4
  178. package/dist/components/ui/range-calendar/range-calendar-head-cell.svelte.d.ts +14 -4
  179. package/dist/components/ui/range-calendar/range-calendar-header.svelte.d.ts +14 -4
  180. package/dist/components/ui/range-calendar/range-calendar-heading.svelte.d.ts +14 -4
  181. package/dist/components/ui/range-calendar/range-calendar-months.svelte.d.ts +14 -5
  182. package/dist/components/ui/range-calendar/range-calendar-next-button.svelte.d.ts +14 -4
  183. package/dist/components/ui/range-calendar/range-calendar-prev-button.svelte.d.ts +14 -4
  184. package/dist/components/ui/range-calendar/range-calendar.svelte.d.ts +14 -5
  185. package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte.d.ts +14 -4
  186. package/dist/components/ui/scroll-area/scroll-area.svelte.d.ts +13 -8
  187. package/dist/components/ui/select/index.d.ts +1 -1
  188. package/dist/components/ui/select/select-content.svelte.d.ts +13 -6
  189. package/dist/components/ui/select/select-group-heading.svelte.d.ts +14 -4
  190. package/dist/components/ui/select/select-item.svelte +1 -1
  191. package/dist/components/ui/select/select-item.svelte.d.ts +14 -4
  192. package/dist/components/ui/select/select-scroll-down-button.svelte.d.ts +14 -4
  193. package/dist/components/ui/select/select-scroll-up-button.svelte.d.ts +14 -4
  194. package/dist/components/ui/select/select-separator.svelte.d.ts +14 -4
  195. package/dist/components/ui/select/select-trigger.svelte +1 -1
  196. package/dist/components/ui/select/select-trigger.svelte.d.ts +14 -4
  197. package/dist/components/ui/separator/separator.svelte.d.ts +14 -4
  198. package/dist/components/ui/slider/slider.svelte +1 -1
  199. package/dist/components/ui/slider/slider.svelte.d.ts +14 -4
  200. package/dist/components/ui/sonner/sonner.svelte.d.ts +14 -4
  201. package/dist/components/ui/switch/switch.svelte +1 -1
  202. package/dist/components/ui/switch/switch.svelte.d.ts +14 -4
  203. package/dist/components/ui/table/table-body.svelte.d.ts +14 -5
  204. package/dist/components/ui/table/table-caption.svelte.d.ts +14 -5
  205. package/dist/components/ui/table/table-cell.svelte.d.ts +14 -5
  206. package/dist/components/ui/table/table-footer.svelte.d.ts +14 -5
  207. package/dist/components/ui/table/table-head.svelte.d.ts +14 -5
  208. package/dist/components/ui/table/table-header.svelte.d.ts +14 -5
  209. package/dist/components/ui/table/table-row.svelte.d.ts +14 -5
  210. package/dist/components/ui/table/table.svelte.d.ts +14 -5
  211. package/dist/components/ui/tabs/index.d.ts +1 -1
  212. package/dist/components/ui/tabs/tabs-content.svelte +1 -1
  213. package/dist/components/ui/tabs/tabs-content.svelte.d.ts +14 -4
  214. package/dist/components/ui/tabs/tabs-list.svelte.d.ts +14 -4
  215. package/dist/components/ui/tabs/tabs-trigger.svelte +1 -1
  216. package/dist/components/ui/tabs/tabs-trigger.svelte.d.ts +14 -4
  217. package/dist/components/ui/textarea/textarea.svelte +1 -1
  218. package/dist/components/ui/textarea/textarea.svelte.d.ts +14 -5
  219. package/dist/components/ui/toggle/toggle.svelte +1 -1
  220. package/dist/components/ui/toggle/toggle.svelte.d.ts +15 -9
  221. package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +14 -6
  222. package/dist/components/ui/toggle-group/toggle-group.svelte.d.ts +14 -5
  223. package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +14 -4
  224. package/dist/components/widget-system/EditableWidget.svelte.d.ts +30 -42
  225. package/dist/components/widget-system/Moveable.svelte +62 -19
  226. package/dist/components/widget-system/Moveable.svelte.d.ts +37 -49
  227. package/dist/icons/Checked.svelte.d.ts +14 -18
  228. package/dist/icons/CheckerBoardBackground.svelte.d.ts +14 -3
  229. package/dist/icons/Close.svelte.d.ts +14 -18
  230. package/dist/icons/Exclamation.svelte.d.ts +19 -22
  231. package/dist/icons/FileBrowser.svelte.d.ts +14 -18
  232. package/dist/icons/LogoWidgetic.svelte +6 -17
  233. package/dist/icons/LogoWidgetic.svelte.d.ts +14 -18
  234. package/dist/icons/LogoWidgeticGreen.svelte +13 -0
  235. package/dist/icons/LogoWidgeticGreen.svelte.d.ts +16 -0
  236. package/dist/icons/LogoWidgeticType-old.svelte +13 -0
  237. package/dist/icons/LogoWidgeticType-old.svelte.d.ts +16 -0
  238. package/dist/icons/LogoWidgeticType-old.svg +4 -0
  239. package/dist/icons/LogoWidgeticType.svelte +18 -10
  240. package/dist/icons/LogoWidgeticType.svelte.d.ts +14 -18
  241. package/dist/icons/LogoWidgeticType.svg +10 -3
  242. package/dist/icons/OpacitySliderArrows.svelte.d.ts +14 -3
  243. package/dist/icons/TestIcon.svelte.d.ts +19 -22
  244. package/dist/icons/index.d.ts +3 -1
  245. package/dist/icons/index.js +3 -1
  246. package/dist/styles/fonts.css +39 -50
  247. package/dist/styles/global.css +45 -68
  248. package/package.json +36 -47
  249. package/tailwind.config.ts +6 -1
  250. package/dist/components/search-input/index2.d.ts +0 -14
  251. package/dist/components/shad-editor/README.md +0 -18
  252. package/dist/icons/eye-off.svg +0 -1
  253. package/dist/icons/eye.svg +0 -1
  254. /package/dist/icons/{checked.svg → Checked.svg} +0 -0
@@ -1,53 +1,16 @@
1
- /* Tailwind import(v4) */
2
- @import 'tailwindcss';
1
+ /* Tailwind 4
2
+ @import "tailwindcss"; */
3
+
4
+ /* Taildind 3 imports */
5
+ @import 'tailwindcss/base';
6
+ @import 'tailwindcss/components';
7
+ @import 'tailwindcss/utilities';
3
8
 
4
9
  /* Import fonts css */
5
- /* @import './fonts.css' layer(utilities); */
6
10
  @import './fonts.css';
7
11
 
8
- /* Tailwind config load *after* main imports - needed for tailwind 4
9
- go 3 levels up in development mode, 2 levels up in production mode*/
10
- @config "../../tailwind.config.ts";
11
-
12
- /* Utility classes for border radius - Moved to top level */
13
- /* NOTE: We define these custom utilities BEFORE the base layer
14
- so they are available for @apply within the base layer if needed,
15
- and Tailwind processes them correctly. */
16
- @utility rounded-pill {
17
- border-radius: var(--radius-pill);
18
- }
19
-
20
- @utility rounded-large {
21
- border-radius: var(--radius-large);
22
- }
23
-
24
- @utility rounded-medium {
25
- border-radius: var(--radius-medium);
26
- }
27
-
28
- @utility rounded-small {
29
- border-radius: var(--radius-small);
30
- }
31
-
32
- /*
33
- The default border color has changed to `currentcolor` in Tailwind CSS v4,
34
- so we've added these compatibility styles to make sure everything still
35
- looks the same as it did with Tailwind CSS v3.
36
-
37
- If we ever want to remove these styles, we need to add an explicit border
38
- color utility to any element that depends on these defaults.
39
- */
40
12
  @layer base {
41
- /* Rule for Default border color fix from first @layer block */
42
- *,
43
- ::after,
44
- ::before,
45
- ::backdrop,
46
- ::file-selector-button {
47
- border-color: var(--color-gray-200, currentcolor);
48
- }
49
-
50
- /* CSS Variables now defined globally on :root */
13
+ /* CSS Variables Here at the top of the base layer */
51
14
  :root {
52
15
  /* Site Grid Variables */
53
16
  --site-column-width: 74px;
@@ -93,10 +56,11 @@ go 3 levels up in development mode, 2 levels up in production mode*/
93
56
  /* Icon Colors */
94
57
  --icon-success: 142 71% 45%;
95
58
  --icon-error: 0 84% 60%;
59
+ }
96
60
 
97
-
98
- /* Widgetic Color Variables (Moved from .widgetic-colors) */
99
- /* convert colors from hex to HSL (Hue, Saturation, Lightness) format */
61
+ /* CLASSES FOR WIDGETIC COMPONENTS */
62
+ /* convert colors from hex to HSL (Hue, Saturation, Lightness) format */
63
+ .widgetic-colors {
100
64
  --dark: 120 35.7% 9.4%;
101
65
  --deep-forest-green: 115 24.1% 24.7%;
102
66
  --sage-green: 108 25.4% 52.9%;
@@ -105,6 +69,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
105
69
  --forest-green: 90 16.7% 83.3%;
106
70
  --error: 0 89% 65.7%;
107
71
  --light-error: 0 45.5% 93.7%;
72
+
108
73
  /* Greys */
109
74
  --grey1: 0 0% 96.1%;
110
75
  --grey2: 0 0% 94.1%;
@@ -113,10 +78,11 @@ go 3 levels up in development mode, 2 levels up in production mode*/
113
78
  --grey5: 0 0% 40%;
114
79
  --grey6: 0 0% 26.7%;
115
80
  --grey7: 0 0% 12.9%;
81
+ }
116
82
 
117
-
118
-
119
- /* Border radius values */
83
+ /* Border radius tokens */
84
+ .widgetic-radius {
85
+ /* Corner radius values */
120
86
  --radius-pill: 100px; /* Pill/Extra large corner radius */
121
87
  --radius-large: 15px; /* Large corner radius */
122
88
  --radius-medium: 12px; /* Medium corner radius */
@@ -128,6 +94,22 @@ go 3 levels up in development mode, 2 levels up in production mode*/
128
94
  --breakpoint-tablet: 744px;
129
95
  --breakpoint-desktop: 1156px;
130
96
  }
97
+ /* Utility classes for border radius */
98
+ .rounded-pill {
99
+ border-radius: var(--radius-pill);
100
+ }
101
+
102
+ .rounded-large {
103
+ border-radius: var(--radius-large);
104
+ }
105
+
106
+ .rounded-medium {
107
+ border-radius: var(--radius-medium);
108
+ }
109
+
110
+ .rounded-small {
111
+ border-radius: var(--radius-small);
112
+ }
131
113
 
132
114
  /*** GLOBAL STYLE CLASSES ***/
133
115
  * {
@@ -144,18 +126,18 @@ go 3 levels up in development mode, 2 levels up in production mode*/
144
126
 
145
127
  /* This is the root container of the website(app.html) */
146
128
  .root-ct {
147
- @apply w-full h-screen;
129
+ @apply min-h-screen;
148
130
  display: block !important;
149
131
  }
150
132
 
151
133
  /* This is the root layout container of the website pages */
152
134
  .layout-ct {
153
- @apply w-full h-full;
135
+ @apply min-h-screen w-full;
154
136
  }
155
137
 
156
138
  .page-ct {
157
139
  width: 100%;
158
- height: 100%;
140
+ height: 100vh;
159
141
  /* background-color: green; */
160
142
  }
161
143
 
@@ -182,7 +164,6 @@ go 3 levels up in development mode, 2 levels up in production mode*/
182
164
  }
183
165
 
184
166
  .native-scrollbar::-webkit-scrollbar-thumb {
185
- @apply bg-muted;
186
167
  cursor: pointer;
187
168
 
188
169
  border: calc(var(--scrollbar-width) / 3) solid transparent;
@@ -570,8 +551,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
570
551
 
571
552
  /* Modal Button Styles */
572
553
  .modal-btn-primary {
573
- @apply !h6 !inline-flex !items-center !justify-center;
574
- cursor: pointer;
554
+ @apply h6 inline-flex items-center justify-center !important;
575
555
  padding: 0 16px !important;
576
556
  min-height: 34px !important;
577
557
  border-radius: var(--radius-pill) !important;
@@ -587,8 +567,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
587
567
  }
588
568
 
589
569
  .modal-btn-secondary {
590
- @apply !h6 !inline-flex !items-center !justify-center;
591
- cursor: pointer;
570
+ @apply h6 inline-flex items-center justify-center !important;
592
571
  padding: 0 16px !important;
593
572
  min-height: 34px !important;
594
573
  border-radius: var(--radius-pill) !important;
@@ -606,9 +585,9 @@ go 3 levels up in development mode, 2 levels up in production mode*/
606
585
  }
607
586
 
608
587
  .modal-btn-attention {
609
- @apply !h6 !inline-flex !items-center !justify-center;
588
+ @apply h6 inline-flex items-center justify-center !important;
610
589
  padding: 0 16px !important;
611
- height: 34px !important;
590
+ height: 34px;
612
591
  border-radius: var(--radius-pill) !important;
613
592
  background-color: hsl(var(--error)) !important;
614
593
  color: white !important;
@@ -625,8 +604,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
625
604
 
626
605
  /* Primary Button - Base styfles */
627
606
  .btn-primary {
628
- @apply !inline-flex !items-center !justify-center !gap-2;
629
- cursor: pointer;
607
+ @apply inline-flex items-center justify-center gap-2 !important;
630
608
  padding: 8px 16px !important;
631
609
  height: 34px !important;
632
610
  border-radius: var(--radius-small) !important;
@@ -646,7 +624,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
646
624
 
647
625
  /* Primary Button sizes */
648
626
  .btn-primary-small {
649
- @apply !body-medium !inline-flex !items-center !justify-center !gap-1;
627
+ @apply body-medium inline-flex items-center justify-center gap-1 !important;
650
628
  padding: 4px 12px 6px 12px !important;
651
629
  border-radius: var(--radius-medium) !important;
652
630
  background-color: hsl(var(--deep-forest-green)) !important;
@@ -654,7 +632,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
654
632
  }
655
633
 
656
634
  .btn-primary-large {
657
- @apply !body-medium !inline-flex !items-center !justify-center !gap-3;
635
+ @apply body-medium inline-flex items-center justify-center gap-3 !important;
658
636
  padding: 16px 32px !important;
659
637
  min-height: 56px !important;
660
638
  border-radius: var(--radius-medium) !important;
@@ -674,8 +652,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
674
652
 
675
653
  /* Secondary Button */
676
654
  .btn-secondary {
677
- @apply !h6 !inline-flex !items-center !justify-center !gap-2;
678
- cursor: pointer;
655
+ @apply h6 inline-flex items-center justify-center gap-2 !important;
679
656
  padding: 0 16px !important;
680
657
  height: 34px !important;
681
658
  border-radius: var(--radius-small) !important;
@@ -714,7 +691,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
714
691
  }
715
692
 
716
693
  .dropdown-menu-item {
717
- @apply !flex !items-center !gap-2 !w-full !text-left !h6 !text-[hsl(var(--grey7))] !whitespace-nowrap;
694
+ @apply flex items-center gap-2 w-full text-left h6 text-[hsl(var(--grey7))] whitespace-nowrap;
718
695
  padding: 8px 16px;
719
696
  }
720
697
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widgetic/design-system",
3
- "version": "0.3.79",
3
+ "version": "0.3.81",
4
4
  "type": "module",
5
5
  "svelte": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -14,23 +14,23 @@
14
14
  "**/*.ts"
15
15
  ],
16
16
  "scripts": {
17
- "i": "rm -rf node_modules && rm -rf package-lock.json && npm i && npm link",
17
+ "i": "rm -rf node_modules && rm -rf package-lock.json && npm i && npm link && npm run set-git",
18
+ "set-git": "git config core.ignorecase false",
18
19
  "unlink": "rm -rf \"$(npm root -g)/@widgetic/design-system\" 2>/dev/null || true",
19
20
  "clean-modules": "rm -rf node_modules",
21
+ "clean-svelte-cache": "rm -rf .svelte-kit && npx svelte-kit sync",
22
+ "clean-npm-cache": "npm cache clean --force",
20
23
  "llinks": "ls -la node_modules/@widgetic",
21
24
  "glinks": "npm ls --global | grep widgetic",
22
25
  "dev": "concurrently \"npm run dev-sv\" \"npm run package:watch\"",
23
26
  "dev-with-check": "NODE_ENV=development concurrently \"npm run check:watch\" \"npm run dev-sv\" \"npm run package:watch\"",
24
27
  "dev-open": "npm run dev-sv -- --open",
25
28
  "dev-sv": "NODE_ENV=development vite dev",
29
+ "watch": "concurrently \"npm run check:watch\" \"npm run lint -- --watch\" \"npm run package:watch\"",
30
+ "build": "rm -rf dist && NODE_ENV=production vite build && npm run package",
31
+ "package:watch": "NODE_ENV=development svelte-package --watch | grep -v '$app/environment'",
26
32
  "build-sv": "vite build",
27
- "watch": "concurrently \"npm run check:watch\" \"npm run package:watch\"",
28
- "build": "NODE_ENV=production vite build && npm run package",
29
- "package:watch:svelte": "NODE_ENV=development svelte-package --watch | grep -v '$app/environment'",
30
- "package:watch:css": "chokidar 'dist/styles/global.css' --debounce 500 -c \"npm run update-config-path\" --initial",
31
- "package:watch": "concurrently \"npm run package:watch:svelte\" \"npm run package:watch:css\"",
32
- "package": "NODE_ENV=production svelte-package | grep -v '$app/environment' && npm run update-config-path",
33
- "update-config-path": "if [ -f dist/styles/global.css ] && grep -q '@config \"../../../tailwind.config.ts\";' dist/styles/global.css; then echo 'Updating @config path in dist/styles/global.css...'; sed -i '' 's|@config \"../../../tailwind.config.ts\";|@config \"../../tailwind.config.ts\";|g' dist/styles/global.css; else :; fi",
33
+ "package": "svelte-package | grep -v '$app/environment'",
34
34
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
35
35
  "check:watch": "NODE_OPTIONS='--max-old-space-size=8192' svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
36
36
  "check:strict": "tsc --noEmit && npm run check",
@@ -39,10 +39,9 @@
39
39
  "i-shadcn": "npm run clean-shadcn && npm run i-shadcn-init && npm run i-shadcn-comps",
40
40
  "clean-shadcn": "rm -rf ./src/lib/components/ui",
41
41
  "i-shadcn-init": "npx shadcn-svelte@next init",
42
- "i-shadcn-comps": "npx shadcn-svelte@next add accordion badge breadcrumb button calendar card checkbox collapsible command dialog drawer dropdown-menu hover-card input input-otp label popover progress radio-group range-calendar scroll-area select separator slider sonner switch table tabs textarea toogle toggle-group tooltip",
42
+ "i-shadcn-comps": "npx shadcn-svelte@next add accordion badge button calendar range-calendar card checkbox collapsible dialog drawer dropdown-menu input input-otp label popover progress radio-group scroll-area select separator slider switch table tabs textarea tooltip",
43
43
  "format": "prettier --write .",
44
44
  "lint": "prettier --check . && eslint .",
45
- "clvtch": "rm -rf node_modules/.vite",
46
45
  "prepublishOnly": "npm run package",
47
46
  "publish-package": "npm run package && npm publish"
48
47
  },
@@ -107,46 +106,50 @@
107
106
  "dist",
108
107
  "tailwind.config.ts"
109
108
  ],
110
- "peerDependencies": {
111
- "@internationalized/date": "^3.6.0",
112
- "@sveltejs/kit": "^2.20.7",
113
- "bits-ui": "^1.3.19",
114
- "shadcn-svelte": "1.0.0-next.9",
115
- "svelte": "^5.27.0",
116
- "tailwindcss": "^4.1.4"
117
- },
118
109
  "devDependencies": {
119
110
  "@internationalized/date": "^3.6.0",
120
111
  "@sveltejs/adapter-node": "^5.2.9",
121
- "@sveltejs/kit": "^2.20.7",
112
+ "svelte": "^5.25.6",
113
+ "@sveltejs/kit": "^2.20.2",
122
114
  "@sveltejs/package": "^2.3.7",
123
115
  "@sveltejs/vite-plugin-svelte": "^5.0.3",
124
- "@tailwindcss/postcss": "^4.1.4",
125
116
  "@tailwindcss/typography": "^0.5.15",
126
117
  "@types/node": "^22.10.1",
127
- "bits-ui": "^1.3.19",
128
- "chokidar-cli": "^3.0.0",
118
+ "autoprefixer": "^10.4.20",
119
+ "bits-ui": "^1.3.0",
120
+ "clsx": "^2.1.1",
129
121
  "concurrently": "^9.1.0",
130
122
  "eslint": "^9.7.0",
131
123
  "eslint-config-prettier": "^9.1.0",
124
+ "eslint-plugin-import": "^2.29.1",
132
125
  "eslint-plugin-svelte": "^2.36.0",
133
126
  "globals": "^15.0.0",
134
- "postcss": "^8.5.3",
127
+ "lowlight": "^3.2.0",
128
+ "mode-watcher": "^0.5.0",
135
129
  "prettier": "^3.3.2",
136
130
  "prettier-plugin-svelte": "^3.2.6",
137
- "prettier-plugin-tailwindcss": "^0.6.11",
138
- "shadcn-svelte": "1.0.0-next.9",
139
- "svelte": "^5.27.0",
140
- "svelte-check": "^4.1.6",
131
+ "prettier-plugin-tailwindcss": "^0.6.5",
132
+ "svelte-check": "^4.1.0",
141
133
  "svelte-sonner": "^0.3.28",
142
- "tailwindcss": "^4.1.4",
143
- "typescript": "^5.8.3",
144
- "typescript-eslint": "^8.20.0",
145
- "vite": "^6.2.6"
134
+ "svelte-tiptap": "^2.0.3",
135
+ "tailwindcss": "^3.4.16",
136
+ "tailwind-merge": "^2.5.5",
137
+ "tailwind-variants": "^0.3.0",
138
+ "tailwindcss-animate": "^1.0.7",
139
+ "typescript": "^5.0.0",
140
+ "typescript-eslint": "^8.0.0",
141
+ "vaul-svelte": "^1.0.0-next.3",
142
+ "vite": "^6.0.1"
143
+ },
144
+ "volta": {
145
+ "node": "22.14.0",
146
+ "npm": "11.1.0"
146
147
  },
147
148
  "dependencies": {
148
149
  "@hirasso/thumbhash-custom-element": "^0.5.5",
149
150
  "@tabler/icons-svelte": "^3.30.0",
151
+ "pdfjs-dist": "^4.10.38",
152
+ "svelte-awesome-color-picker": "^3.1.4",
150
153
  "@tiptap/core": "^2.9.1",
151
154
  "@tiptap/extension-bubble-menu": "^2.9.1",
152
155
  "@tiptap/extension-code-block-lowlight": "^2.9.1",
@@ -169,21 +172,7 @@
169
172
  "@tiptap/extension-underline": "^2.9.1",
170
173
  "@tiptap/pm": "^2.9.1",
171
174
  "@tiptap/starter-kit": "^2.9.1",
172
- "clsx": "^2.1.1",
173
175
  "lowlight": "^3.2.0",
174
- "lucide-svelte": "^0.468.0",
175
- "mode-watcher": "^0.5.0",
176
- "pdfjs-dist": "^4.10.38",
177
- "svelte-awesome-color-picker": "^3.1.4",
178
- "svelte-sonner": "^0.3.28",
179
- "svelte-tiptap": "^2.0.3",
180
- "tailwind-merge": "^2.5.5",
181
- "tailwind-variants": "^0.3.0",
182
- "tailwindcss-animate": "^1.0.7",
183
- "vaul-svelte": "^1.0.0-next.3"
184
- },
185
- "volta": {
186
- "node": "22.14.0",
187
- "npm": "11.1.0"
176
+ "lucide-svelte": "^0.468.0"
188
177
  }
189
178
  }
@@ -1,10 +1,12 @@
1
+ import { fontFamily } from "tailwindcss/defaultTheme";
1
2
  import type { Config } from "tailwindcss";
2
3
  import tailwindcssAnimate from "tailwindcss-animate";
3
4
  import tailwindcssTypography from '@tailwindcss/typography';
4
5
 
5
6
  const config: Config = {
6
- darkMode: "class",
7
+ darkMode: ["class"],
7
8
  content: ["./src/**/*.{html,js,svelte,ts}"],
9
+ safelist: ["dark"],
8
10
  theme: {
9
11
  container: {
10
12
  center: true,
@@ -65,6 +67,9 @@ const config: Config = {
65
67
  md: "calc(var(--radius) - 2px)",
66
68
  sm: "calc(var(--radius) - 4px)"
67
69
  },
70
+ fontFamily: {
71
+ sans: [...fontFamily.sans]
72
+ },
68
73
  keyframes: {
69
74
  "accordion-down": {
70
75
  from: { height: "0" },
@@ -1,14 +0,0 @@
1
- import { SvelteComponent } from 'svelte';
2
-
3
- export interface SearchInputProps {
4
- placeholder?: string;
5
- value?: string;
6
- onInput?: (event: Event) => Promise<void> | void;
7
- onKeydown?: (event: KeyboardEvent) => void;
8
- onClear?: () => void;
9
- onPaste?: (event: ClipboardEvent) => void;
10
- containerClass?: string;
11
- inputClass?: string;
12
- }
13
-
14
- export default class SearchInput extends SvelteComponent<SearchInputProps> {}
@@ -1,18 +0,0 @@
1
- # ShadEditor Component
2
-
3
- This directory contains the Svelte components for a rich text editor based on Tiptap and styled with shadcn-svelte UI elements.
4
-
5
- ## Origin
6
-
7
- The code was originally scaffolded using version `0.0.7` of the now-deprecated `shadeditor` CLI tool.
8
-
9
- * Original (deprecated) npm package: [https://www.npmjs.com/package/shadeditor](https://www.npmjs.com/package/shadeditor)
10
- * The author appears to have continued development under a new name/project called "Edra": [https://edra.tsuzat.com/](https://edra.tsuzat.com/)
11
-
12
- ## Current Status
13
-
14
- The components in this directory have been adapted to work within the Widgetic Design System after its migration to **Tailwind CSS v4**.
15
-
16
- **Important:** Do not attempt to update or reinstall this component using the original `shadeditor` CLI (`npx shadeditor init`) or the new one from edra, as it is designed for Tailwind v3 and will likely break the current Tailwind v4 configuration and component adaptations.
17
-
18
- Use the component as it exists within this design system project.
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-eye-off"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.585 10.587a2 2 0 0 0 2.829 2.828" /><path d="M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87" /><path d="M3 3l18 18" /></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-eye"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" /><path d="M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6" /></svg>
File without changes