@widgetic/design-system 0.3.78 → 0.3.80

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 (96) hide show
  1. package/README.md +592 -126
  2. package/dist/components/CopyableHeader.svelte +13 -11
  3. package/dist/components/EmptyState.svelte +2 -9
  4. package/dist/components/EmptyState.svelte.d.ts +1 -2
  5. package/dist/components/PasswordInput.svelte +1 -5
  6. package/dist/components/WScrollArea.svelte +3 -3
  7. package/dist/components/debug-grid/DebugGrid.svelte +1 -1
  8. package/dist/components/ic/browser/BrowserInputController.svelte +1 -1
  9. package/dist/components/index.d.ts +1 -1
  10. package/dist/components/index.js +1 -1
  11. package/dist/components/modals/BaseModal.svelte +1 -1
  12. package/dist/components/modals/NewItemDialog.svelte +1 -1
  13. package/dist/components/modals/RenameDialog.svelte +6 -7
  14. package/dist/components/modals/modalStore.js +21 -26
  15. package/dist/components/navigation/Breadcrumbs.svelte +9 -9
  16. package/dist/components/pdf/PDFViewer.svelte +19 -10
  17. package/dist/components/search-input/SearchInput.svelte +8 -3
  18. package/dist/components/search-input/index.d.ts +14 -3
  19. package/dist/components/search-input/index.js +2 -1
  20. package/dist/components/shad-editor/custom/image-extended-component.svelte +1 -1
  21. package/dist/components/shad-editor/editor.css +4 -8
  22. package/dist/components/shad-editor/icons/table.svelte +3 -3
  23. package/dist/components/shad-editor/icons/text.svelte +1 -1
  24. package/dist/components/shad-editor/onedark.css +0 -3
  25. package/dist/components/shad-editor/shad-editor.svelte +1 -1
  26. package/dist/components/toast/ToasterModal.svelte +11 -15
  27. package/dist/components/ui/accordion/index.d.ts +1 -1
  28. package/dist/components/ui/badge/badge.svelte +1 -1
  29. package/dist/components/ui/badge/badge.svelte.d.ts +2 -2
  30. package/dist/components/ui/button/button.svelte +1 -1
  31. package/dist/components/ui/button/button.svelte.d.ts +2 -2
  32. package/dist/components/ui/calendar/calendar-day.svelte +4 -4
  33. package/dist/components/ui/calendar/calendar.svelte.d.ts +1 -1
  34. package/dist/components/ui/card/card.svelte +1 -1
  35. package/dist/components/ui/checkbox/checkbox.svelte +1 -1
  36. package/dist/components/ui/collapsible/index.d.ts +1 -1
  37. package/dist/components/ui/command/command-dialog.svelte +1 -1
  38. package/dist/components/ui/command/command-dialog.svelte.d.ts +1 -1
  39. package/dist/components/ui/command/command-input.svelte +1 -1
  40. package/dist/components/ui/command/command-input.svelte.d.ts +1 -1
  41. package/dist/components/ui/command/command-item.svelte +1 -1
  42. package/dist/components/ui/command/command-link-item.svelte +1 -1
  43. package/dist/components/ui/command/command.svelte.d.ts +1 -1
  44. package/dist/components/ui/dialog/dialog-content.svelte +1 -1
  45. package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
  46. package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +1 -1
  47. package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +1 -1
  48. package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
  49. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +1 -1
  50. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
  51. package/dist/components/ui/dropdown-menu/index.d.ts +1 -1
  52. package/dist/components/ui/hover-card/hover-card-content.svelte +1 -1
  53. package/dist/components/ui/input/input.svelte +1 -1
  54. package/dist/components/ui/input/input.svelte.d.ts +1 -1
  55. package/dist/components/ui/input-otp/input-otp.svelte +1 -1
  56. package/dist/components/ui/input-otp/input-otp.svelte.d.ts +1 -1
  57. package/dist/components/ui/popover/popover-content.svelte +1 -1
  58. package/dist/components/ui/radio-group/radio-group-item.svelte +1 -1
  59. package/dist/components/ui/radio-group/radio-group.svelte.d.ts +1 -1
  60. package/dist/components/ui/range-calendar/range-calendar-day.svelte +6 -6
  61. package/dist/components/ui/range-calendar/range-calendar.svelte.d.ts +1 -1
  62. package/dist/components/ui/select/index.d.ts +1 -1
  63. package/dist/components/ui/select/select-item.svelte +1 -1
  64. package/dist/components/ui/select/select-trigger.svelte +1 -1
  65. package/dist/components/ui/slider/slider.svelte +1 -1
  66. package/dist/components/ui/slider/slider.svelte.d.ts +1 -1
  67. package/dist/components/ui/switch/switch.svelte +1 -1
  68. package/dist/components/ui/tabs/index.d.ts +1 -1
  69. package/dist/components/ui/tabs/tabs-content.svelte +1 -1
  70. package/dist/components/ui/tabs/tabs-trigger.svelte +1 -1
  71. package/dist/components/ui/textarea/textarea.svelte +1 -1
  72. package/dist/components/ui/textarea/textarea.svelte.d.ts +1 -1
  73. package/dist/components/ui/toggle/toggle.svelte +1 -1
  74. package/dist/components/ui/toggle/toggle.svelte.d.ts +2 -2
  75. package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +1 -1
  76. package/dist/components/ui/toggle-group/toggle-group.svelte.d.ts +1 -1
  77. package/dist/components/widget-system/Moveable.svelte +62 -19
  78. package/dist/icons/LogoWidgetic.svelte +6 -17
  79. package/dist/icons/LogoWidgeticGreen.svelte +13 -0
  80. package/dist/icons/LogoWidgeticGreen.svelte.d.ts +20 -0
  81. package/dist/icons/LogoWidgeticType-old.svelte +13 -0
  82. package/dist/icons/LogoWidgeticType-old.svelte.d.ts +20 -0
  83. package/dist/icons/LogoWidgeticType-old.svg +4 -0
  84. package/dist/icons/LogoWidgeticType.svelte +18 -10
  85. package/dist/icons/LogoWidgeticType.svg +10 -3
  86. package/dist/icons/index.d.ts +3 -1
  87. package/dist/icons/index.js +3 -1
  88. package/dist/styles/fonts.css +39 -50
  89. package/dist/styles/global.css +45 -64
  90. package/package.json +42 -44
  91. package/tailwind.config.ts +6 -1
  92. package/dist/components/search-input/index2.d.ts +0 -14
  93. package/dist/components/shad-editor/README.md +0 -18
  94. package/dist/icons/eye-off.svg +0 -1
  95. package/dist/icons/eye.svg +0 -1
  96. /package/dist/icons/{checked.svg → Checked.svg} +0 -0
@@ -1,6 +1,3 @@
1
- /* Tailwind config */
2
- /* @config "../../../tailwind.config.ts"; */
3
-
4
1
  /*** GLOBAL STYLE FONTS ***/
5
2
 
6
3
  /* BL MELODY FAMILY: rules and classes */
@@ -31,48 +28,47 @@
31
28
  font-display: swap;
32
29
  }
33
30
 
34
- /* Convert classes to utilities */
35
- @utility h1 {
31
+ .h1 {
36
32
  font-family: 'BL Melody';
37
33
  font-weight: 500;
38
34
  font-size: 144px;
39
35
  line-height: 0.85;
40
- }
36
+ }
41
37
 
42
- @utility h2 {
38
+ .h2 {
43
39
  font-family: 'BL Melody';
44
40
  font-weight: 500;
45
41
  font-size: 72px;
46
42
  line-height: 0.96;
47
- }
43
+ }
48
44
 
49
- @utility h3 {
45
+ .h3 {
50
46
  font-family: 'BL Melody';
51
47
  font-weight: 700;
52
48
  font-size: 56px;
53
49
  line-height: 1;
54
- }
50
+ }
55
51
 
56
- @utility h4 {
52
+ .h4 {
57
53
  font-family: 'BL Melody';
58
54
  font-weight: 600;
59
55
  font-size: 32px;
60
56
  line-height: 1.1;
61
- }
57
+ }
62
58
 
63
- @utility h5 {
59
+ .h5 {
64
60
  font-family: 'BL Melody';
65
61
  font-weight: 500;
66
62
  font-size: 24px;
67
63
  line-height: 1.2;
68
- }
64
+ }
69
65
 
70
- @utility h6 {
66
+ .h6 {
71
67
  font-family: 'BL Melody';
72
68
  font-weight: 600;
73
69
  font-size: 14px;
74
70
  line-height: 1;
75
- }
71
+ }
76
72
 
77
73
 
78
74
 
@@ -122,62 +118,55 @@
122
118
  font-display: swap;
123
119
  }
124
120
 
125
- @utility subtitle1 {
121
+ .subtitle1 {
126
122
  font-family: 'Riegla Regular';
127
123
  font-size: 32px;
128
124
  line-height: 1.2;
129
- }
125
+ }
130
126
 
131
- @utility subtitle2 {
127
+ .subtitle2 {
132
128
  font-family: 'Riegla Regular';
133
129
  font-size: 24px;
134
130
  line-height: 1.3;
135
- }
136
-
137
- @utility body-medium {
138
- font-family: 'Riegla Medium';
139
- font-size: 18px;
140
- font-weight: 400;
141
- line-height: 1.4;
142
- }
131
+ }
143
132
 
144
- @utility body {
145
- font-family: 'Riegla Regular';
146
- font-size: 18px;
147
- line-height: 1.4;
148
- }
133
+ .body-medium {
134
+ font-family: 'Riegla Medium' !important;
135
+ font-size: 18px !important;
136
+ font-weight: 400 !important;
137
+ line-height: 1.4 !important;
138
+ }
149
139
 
150
- @utility body-bold {
151
- font-family: 'Riegla Regular';
152
- font-size: 18px;
153
- line-height: 1.4;
154
- font-weight: 700;
155
- }
140
+ .body {
141
+ font-family: 'Riegla Regular' !important;
142
+ font-size: 18px !important;
143
+ line-height: 1.4 !important;
144
+ }
156
145
 
157
- @utility subtext {
158
- font-family: 'Riegla Regular';
159
- font-size: 16px;
160
- line-height: 1.4;
161
- }
146
+ .subtext {
147
+ font-family: 'Riegla Regular' !important;
148
+ font-size: 16px !important;
149
+ line-height: 1.4 !important;
150
+ }
162
151
 
163
- @utility caption {
152
+ .caption {
164
153
  font-family: 'Riegla Medium';
165
- font-weight: 400;
154
+ font-weight: 400 !important;
166
155
  font-size: 14px;
167
156
  line-height: 1.2;
168
- }
157
+ }
169
158
 
170
- @utility link {
159
+ .link {
171
160
  font-family: 'Riegla Medium';
172
161
  font-size: 14px;
173
162
  line-height: 1;
174
163
  text-decoration: underline;
175
- }
164
+ }
176
165
 
177
- @utility tag {
166
+ .tag {
178
167
  font-family: 'Riegla Medium';
179
168
  font-size: 11px;
180
169
  line-height: 16px;
181
170
  text-transform: uppercase;
182
- }
171
+ }
183
172
 
@@ -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,7 +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;
554
+ @apply h6 inline-flex items-center justify-center !important;
574
555
  padding: 0 16px !important;
575
556
  min-height: 34px !important;
576
557
  border-radius: var(--radius-pill) !important;
@@ -586,7 +567,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
586
567
  }
587
568
 
588
569
  .modal-btn-secondary {
589
- @apply !h6 !inline-flex !items-center !justify-center;
570
+ @apply h6 inline-flex items-center justify-center !important;
590
571
  padding: 0 16px !important;
591
572
  min-height: 34px !important;
592
573
  border-radius: var(--radius-pill) !important;
@@ -604,9 +585,9 @@ go 3 levels up in development mode, 2 levels up in production mode*/
604
585
  }
605
586
 
606
587
  .modal-btn-attention {
607
- @apply !h6 !inline-flex !items-center !justify-center;
588
+ @apply h6 inline-flex items-center justify-center !important;
608
589
  padding: 0 16px !important;
609
- height: 34px !important;
590
+ height: 34px;
610
591
  border-radius: var(--radius-pill) !important;
611
592
  background-color: hsl(var(--error)) !important;
612
593
  color: white !important;
@@ -623,7 +604,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
623
604
 
624
605
  /* Primary Button - Base styfles */
625
606
  .btn-primary {
626
- @apply !inline-flex !items-center !justify-center !gap-2;
607
+ @apply inline-flex items-center justify-center gap-2 !important;
627
608
  padding: 8px 16px !important;
628
609
  height: 34px !important;
629
610
  border-radius: var(--radius-small) !important;
@@ -643,7 +624,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
643
624
 
644
625
  /* Primary Button sizes */
645
626
  .btn-primary-small {
646
- @apply !body-medium !inline-flex !items-center !justify-center !gap-1;
627
+ @apply body-medium inline-flex items-center justify-center gap-1 !important;
647
628
  padding: 4px 12px 6px 12px !important;
648
629
  border-radius: var(--radius-medium) !important;
649
630
  background-color: hsl(var(--deep-forest-green)) !important;
@@ -651,7 +632,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
651
632
  }
652
633
 
653
634
  .btn-primary-large {
654
- @apply !body-medium !inline-flex !items-center !justify-center !gap-3;
635
+ @apply body-medium inline-flex items-center justify-center gap-3 !important;
655
636
  padding: 16px 32px !important;
656
637
  min-height: 56px !important;
657
638
  border-radius: var(--radius-medium) !important;
@@ -671,7 +652,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
671
652
 
672
653
  /* Secondary Button */
673
654
  .btn-secondary {
674
- @apply !h6 !inline-flex !items-center !justify-center !gap-2;
655
+ @apply h6 inline-flex items-center justify-center gap-2 !important;
675
656
  padding: 0 16px !important;
676
657
  height: 34px !important;
677
658
  border-radius: var(--radius-small) !important;
@@ -710,7 +691,7 @@ go 3 levels up in development mode, 2 levels up in production mode*/
710
691
  }
711
692
 
712
693
  .dropdown-menu-item {
713
- @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;
714
695
  padding: 8px 16px;
715
696
  }
716
697
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widgetic/design-system",
3
- "version": "0.3.78",
3
+ "version": "0.3.80",
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
  },
@@ -109,44 +108,22 @@
109
108
  ],
110
109
  "peerDependencies": {
111
110
  "@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"
111
+ "@sveltejs/kit": "^2.20.2",
112
+ "@tabler/icons-svelte": "^3.30.0",
113
+ "bits-ui": "^1.3.0",
114
+ "lucide-svelte": "^0.468.0",
115
+ "shadcn-svelte": "latest",
116
+ "svelte": "^5.25.6",
117
+ "svelte-sonner": "^0.3.28",
118
+ "tailwindcss": "^3.4.16"
117
119
  },
118
120
  "devDependencies": {
119
121
  "@internationalized/date": "^3.6.0",
120
122
  "@sveltejs/adapter-node": "^5.2.9",
121
- "@sveltejs/kit": "^2.20.7",
123
+ "@sveltejs/kit": "^2.20.2",
122
124
  "@sveltejs/package": "^2.3.7",
123
125
  "@sveltejs/vite-plugin-svelte": "^5.0.3",
124
- "@tailwindcss/postcss": "^4.1.4",
125
126
  "@tailwindcss/typography": "^0.5.15",
126
- "@types/node": "^22.10.1",
127
- "bits-ui": "^1.3.19",
128
- "chokidar-cli": "^3.0.0",
129
- "concurrently": "^9.1.0",
130
- "eslint": "^9.7.0",
131
- "eslint-config-prettier": "^9.1.0",
132
- "eslint-plugin-svelte": "^2.36.0",
133
- "globals": "^15.0.0",
134
- "postcss": "^8.5.3",
135
- "prettier": "^3.3.2",
136
- "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",
141
- "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"
146
- },
147
- "dependencies": {
148
- "@hirasso/thumbhash-custom-element": "^0.5.5",
149
- "@tabler/icons-svelte": "^3.30.0",
150
127
  "@tiptap/core": "^2.9.1",
151
128
  "@tiptap/extension-bubble-menu": "^2.9.1",
152
129
  "@tiptap/extension-code-block-lowlight": "^2.9.1",
@@ -169,21 +146,42 @@
169
146
  "@tiptap/extension-underline": "^2.9.1",
170
147
  "@tiptap/pm": "^2.9.1",
171
148
  "@tiptap/starter-kit": "^2.9.1",
149
+ "@types/node": "^22.10.1",
150
+ "autoprefixer": "^10.4.20",
151
+ "bits-ui": "^1.3.0",
172
152
  "clsx": "^2.1.1",
153
+ "concurrently": "^9.1.0",
154
+ "eslint": "^9.7.0",
155
+ "eslint-config-prettier": "^9.1.0",
156
+ "eslint-plugin-import": "^2.29.1",
157
+ "eslint-plugin-svelte": "^2.36.0",
158
+ "globals": "^15.0.0",
173
159
  "lowlight": "^3.2.0",
174
160
  "lucide-svelte": "^0.468.0",
175
161
  "mode-watcher": "^0.5.0",
176
- "pdfjs-dist": "^4.10.38",
162
+ "prettier": "^3.3.2",
163
+ "prettier-plugin-svelte": "^3.2.6",
164
+ "prettier-plugin-tailwindcss": "^0.6.5",
165
+ "svelte": "^5.25.6",
177
166
  "svelte-awesome-color-picker": "^3.1.4",
167
+ "svelte-check": "^4.1.0",
178
168
  "svelte-sonner": "^0.3.28",
179
169
  "svelte-tiptap": "^2.0.3",
180
170
  "tailwind-merge": "^2.5.5",
181
171
  "tailwind-variants": "^0.3.0",
182
172
  "tailwindcss-animate": "^1.0.7",
183
- "vaul-svelte": "^1.0.0-next.3"
173
+ "typescript": "^5.0.0",
174
+ "typescript-eslint": "^8.0.0",
175
+ "vaul-svelte": "^1.0.0-next.3",
176
+ "vite": "^6.0.1"
184
177
  },
185
178
  "volta": {
186
179
  "node": "22.14.0",
187
180
  "npm": "11.1.0"
181
+ },
182
+ "dependencies": {
183
+ "@hirasso/thumbhash-custom-element": "^0.5.5",
184
+ "@tabler/icons-svelte": "^3.30.0",
185
+ "pdfjs-dist": "^4.10.38"
188
186
  }
189
187
  }
@@ -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