@widgetic/design-system 0.3.68 → 0.3.70
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.
- package/README.md +126 -454
- package/dist/components/CopyableHeader.svelte +7 -11
- package/dist/components/EmptyState.svelte +1 -1
- package/dist/components/WScrollArea.svelte +4 -4
- package/dist/components/debug-grid/DebugGrid.svelte +1 -1
- package/dist/components/ic/browser/BrowserInputController.svelte +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/modals/ActionModal.svelte +2 -2
- package/dist/components/modals/BaseModal.svelte +2 -2
- package/dist/components/modals/NewItemDialog.svelte +3 -3
- package/dist/components/modals/RenameDialog.svelte +3 -3
- package/dist/components/navigation/Breadcrumbs.svelte +9 -9
- package/dist/components/pdf/PDFViewer.svelte +2 -2
- package/dist/components/search-input/SearchInput.svelte +1 -6
- package/dist/components/search-input/index.d.ts +3 -14
- package/dist/components/search-input/index.js +1 -2
- package/dist/components/search-input/index2.d.ts +14 -0
- package/dist/components/shad-editor/README.md +18 -0
- package/dist/components/shad-editor/custom/code-extended.svelte +1 -1
- package/dist/components/shad-editor/custom/image-extended-component.svelte +1 -1
- package/dist/components/shad-editor/editor.css +8 -4
- package/dist/components/shad-editor/icons/highlighter.svelte +1 -1
- package/dist/components/shad-editor/icons/image.svelte +1 -1
- package/dist/components/shad-editor/icons/link.svelte +1 -1
- package/dist/components/shad-editor/icons/quickcolor.svelte +3 -3
- package/dist/components/shad-editor/icons/table.svelte +4 -4
- package/dist/components/shad-editor/icons/text.svelte +6 -6
- package/dist/components/shad-editor/icons/textalign.svelte +5 -5
- package/dist/components/shad-editor/icons/textcolor.svelte +1 -1
- package/dist/components/shad-editor/onedark.css +3 -0
- package/dist/components/shad-editor/shad-editor.svelte +1 -1
- package/dist/components/toast/ToasterModal.svelte +7 -7
- package/dist/components/ui/badge/badge.svelte +1 -1
- package/dist/components/ui/badge/badge.svelte.d.ts +2 -2
- package/dist/components/ui/button/button.svelte +1 -1
- package/dist/components/ui/button/button.svelte.d.ts +2 -2
- package/dist/components/ui/calendar/calendar-day.svelte +4 -4
- package/dist/components/ui/card/card.svelte +1 -1
- package/dist/components/ui/checkbox/checkbox.svelte +1 -1
- package/dist/components/ui/command/command-dialog.svelte +1 -1
- package/dist/components/ui/command/command-input.svelte +1 -1
- package/dist/components/ui/command/command-item.svelte +1 -1
- package/dist/components/ui/command/command-link-item.svelte +1 -1
- package/dist/components/ui/dialog/dialog-content.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
- package/dist/components/ui/hover-card/hover-card-content.svelte +1 -1
- package/dist/components/ui/input/input.svelte +1 -1
- package/dist/components/ui/input-otp/input-otp.svelte +1 -1
- package/dist/components/ui/popover/popover-content.svelte +1 -1
- package/dist/components/ui/radio-group/radio-group-item.svelte +1 -1
- package/dist/components/ui/range-calendar/range-calendar-day.svelte +6 -6
- package/dist/components/ui/select/select-item.svelte +1 -1
- package/dist/components/ui/select/select-trigger.svelte +1 -1
- package/dist/components/ui/slider/slider.svelte +1 -1
- package/dist/components/ui/switch/switch.svelte +1 -1
- package/dist/components/ui/tabs/tabs-content.svelte +1 -1
- package/dist/components/ui/tabs/tabs-trigger.svelte +1 -1
- package/dist/components/ui/textarea/textarea.svelte +1 -1
- package/dist/components/ui/toggle/toggle.svelte +1 -1
- package/dist/components/ui/toggle/toggle.svelte.d.ts +2 -2
- package/dist/components/widget-system/Moveable.svelte +0 -1
- package/dist/styles/fonts.css +50 -39
- package/dist/styles/global.css +55 -36
- package/package.json +12 -11
- package/tailwind.config.ts +1 -6
package/dist/styles/global.css
CHANGED
|
@@ -1,14 +1,48 @@
|
|
|
1
|
-
/* Tailwind
|
|
2
|
-
@import
|
|
3
|
-
|
|
4
|
-
/* Taildind 3 imports */
|
|
5
|
-
@import 'tailwindcss/base';
|
|
6
|
-
@import 'tailwindcss/components';
|
|
7
|
-
@import 'tailwindcss/utilities';
|
|
1
|
+
/* Tailwind import(v4) */
|
|
2
|
+
@import 'tailwindcss';
|
|
8
3
|
|
|
9
4
|
/* Import fonts css */
|
|
5
|
+
/* @import './fonts.css' layer(utilities); */
|
|
10
6
|
@import './fonts.css';
|
|
11
7
|
|
|
8
|
+
/* Tailwind config load *after* main imports */
|
|
9
|
+
@config "../../../tailwind.config.ts";
|
|
10
|
+
|
|
11
|
+
/* Utility classes for border radius - Moved to top level */
|
|
12
|
+
@utility rounded-pill {
|
|
13
|
+
border-radius: var(--radius-pill);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@utility rounded-large {
|
|
17
|
+
border-radius: var(--radius-large);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@utility rounded-medium {
|
|
21
|
+
border-radius: var(--radius-medium);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@utility rounded-small {
|
|
25
|
+
border-radius: var(--radius-small);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/*
|
|
29
|
+
The default border color has changed to `currentcolor` in Tailwind CSS v4,
|
|
30
|
+
so we've added these compatibility styles to make sure everything still
|
|
31
|
+
looks the same as it did with Tailwind CSS v3.
|
|
32
|
+
|
|
33
|
+
If we ever want to remove these styles, we need to add an explicit border
|
|
34
|
+
color utility to any element that depends on these defaults.
|
|
35
|
+
*/
|
|
36
|
+
@layer base {
|
|
37
|
+
*,
|
|
38
|
+
::after,
|
|
39
|
+
::before,
|
|
40
|
+
::backdrop,
|
|
41
|
+
::file-selector-button {
|
|
42
|
+
border-color: var(--color-gray-200, currentcolor);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
12
46
|
@layer base {
|
|
13
47
|
/* CSS Variables Here at the top of the base layer */
|
|
14
48
|
:root {
|
|
@@ -58,7 +92,7 @@
|
|
|
58
92
|
--icon-error: 0 84% 60%;
|
|
59
93
|
}
|
|
60
94
|
|
|
61
|
-
/* CLASSES FOR WIDGETIC COMPONENTS */
|
|
95
|
+
/* CLASSES FOR WIDGETIC COMPONENTS - Keep variable definitions inside layer */
|
|
62
96
|
/* convert colors from hex to HSL (Hue, Saturation, Lightness) format */
|
|
63
97
|
.widgetic-colors {
|
|
64
98
|
--dark: 120 35.7% 9.4%;
|
|
@@ -94,22 +128,6 @@
|
|
|
94
128
|
--breakpoint-tablet: 744px;
|
|
95
129
|
--breakpoint-desktop: 1156px;
|
|
96
130
|
}
|
|
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
|
-
}
|
|
113
131
|
|
|
114
132
|
/*** GLOBAL STYLE CLASSES ***/
|
|
115
133
|
* {
|
|
@@ -126,18 +144,18 @@
|
|
|
126
144
|
|
|
127
145
|
/* This is the root container of the website(app.html) */
|
|
128
146
|
.root-ct {
|
|
129
|
-
@apply
|
|
147
|
+
@apply w-full h-screen;
|
|
130
148
|
display: block !important;
|
|
131
149
|
}
|
|
132
150
|
|
|
133
151
|
/* This is the root layout container of the website pages */
|
|
134
152
|
.layout-ct {
|
|
135
|
-
@apply
|
|
153
|
+
@apply w-full h-full;
|
|
136
154
|
}
|
|
137
155
|
|
|
138
156
|
.page-ct {
|
|
139
157
|
width: 100%;
|
|
140
|
-
height:
|
|
158
|
+
height: 100%;
|
|
141
159
|
/* background-color: green; */
|
|
142
160
|
}
|
|
143
161
|
|
|
@@ -164,6 +182,7 @@
|
|
|
164
182
|
}
|
|
165
183
|
|
|
166
184
|
.native-scrollbar::-webkit-scrollbar-thumb {
|
|
185
|
+
@apply bg-muted;
|
|
167
186
|
cursor: pointer;
|
|
168
187
|
|
|
169
188
|
border: calc(var(--scrollbar-width) / 3) solid transparent;
|
|
@@ -551,7 +570,7 @@
|
|
|
551
570
|
|
|
552
571
|
/* Modal Button Styles */
|
|
553
572
|
.modal-btn-primary {
|
|
554
|
-
@apply h6 inline-flex items-center justify-center
|
|
573
|
+
@apply !h6 !inline-flex !items-center !justify-center;
|
|
555
574
|
padding: 0 16px !important;
|
|
556
575
|
min-height: 34px !important;
|
|
557
576
|
border-radius: var(--radius-pill) !important;
|
|
@@ -567,7 +586,7 @@
|
|
|
567
586
|
}
|
|
568
587
|
|
|
569
588
|
.modal-btn-secondary {
|
|
570
|
-
@apply h6 inline-flex items-center justify-center
|
|
589
|
+
@apply !h6 !inline-flex !items-center !justify-center;
|
|
571
590
|
padding: 0 16px !important;
|
|
572
591
|
min-height: 34px !important;
|
|
573
592
|
border-radius: var(--radius-pill) !important;
|
|
@@ -585,9 +604,9 @@
|
|
|
585
604
|
}
|
|
586
605
|
|
|
587
606
|
.modal-btn-attention {
|
|
588
|
-
@apply h6 inline-flex items-center justify-center
|
|
607
|
+
@apply !h6 !inline-flex !items-center !justify-center;
|
|
589
608
|
padding: 0 16px !important;
|
|
590
|
-
height: 34px;
|
|
609
|
+
height: 34px !important;
|
|
591
610
|
border-radius: var(--radius-pill) !important;
|
|
592
611
|
background-color: hsl(var(--error)) !important;
|
|
593
612
|
color: white !important;
|
|
@@ -604,7 +623,7 @@
|
|
|
604
623
|
|
|
605
624
|
/* Primary Button - Base styfles */
|
|
606
625
|
.btn-primary {
|
|
607
|
-
@apply inline-flex items-center justify-center gap-2
|
|
626
|
+
@apply !inline-flex !items-center !justify-center !gap-2;
|
|
608
627
|
padding: 8px 16px !important;
|
|
609
628
|
height: 34px !important;
|
|
610
629
|
border-radius: var(--radius-small) !important;
|
|
@@ -624,7 +643,7 @@
|
|
|
624
643
|
|
|
625
644
|
/* Primary Button sizes */
|
|
626
645
|
.btn-primary-small {
|
|
627
|
-
@apply body-medium inline-flex items-center justify-center gap-1
|
|
646
|
+
@apply !body-medium !inline-flex !items-center !justify-center !gap-1;
|
|
628
647
|
padding: 4px 12px 6px 12px !important;
|
|
629
648
|
border-radius: var(--radius-medium) !important;
|
|
630
649
|
background-color: hsl(var(--deep-forest-green)) !important;
|
|
@@ -632,7 +651,7 @@
|
|
|
632
651
|
}
|
|
633
652
|
|
|
634
653
|
.btn-primary-large {
|
|
635
|
-
@apply body-medium inline-flex items-center justify-center gap-3
|
|
654
|
+
@apply !body-medium !inline-flex !items-center !justify-center !gap-3;
|
|
636
655
|
padding: 16px 32px !important;
|
|
637
656
|
min-height: 56px !important;
|
|
638
657
|
border-radius: var(--radius-medium) !important;
|
|
@@ -652,7 +671,7 @@
|
|
|
652
671
|
|
|
653
672
|
/* Secondary Button */
|
|
654
673
|
.btn-secondary {
|
|
655
|
-
@apply h6 inline-flex items-center justify-center gap-2
|
|
674
|
+
@apply !h6 !inline-flex !items-center !justify-center !gap-2;
|
|
656
675
|
padding: 0 16px !important;
|
|
657
676
|
height: 34px !important;
|
|
658
677
|
border-radius: var(--radius-small) !important;
|
|
@@ -691,7 +710,7 @@
|
|
|
691
710
|
}
|
|
692
711
|
|
|
693
712
|
.dropdown-menu-item {
|
|
694
|
-
@apply flex items-center gap-2 w-full text-left h6 text-[hsl(var(--grey7))] whitespace-nowrap;
|
|
713
|
+
@apply !flex !items-center !gap-2 !w-full !text-left !h6 !text-[hsl(var(--grey7))] !whitespace-nowrap;
|
|
695
714
|
padding: 8px 16px;
|
|
696
715
|
}
|
|
697
716
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@widgetic/design-system",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.70",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"svelte": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"i-shadcn": "npm run clean-shadcn && npm run i-shadcn-init && npm run i-shadcn-comps",
|
|
37
37
|
"clean-shadcn": "rm -rf ./src/lib/components/ui",
|
|
38
38
|
"i-shadcn-init": "npx shadcn-svelte@next init",
|
|
39
|
-
"i-shadcn-comps": "npx shadcn-svelte@next add accordion badge button calendar
|
|
39
|
+
"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",
|
|
40
40
|
"format": "prettier --write .",
|
|
41
41
|
"lint": "prettier --check . && eslint .",
|
|
42
42
|
"prepublishOnly": "npm run package",
|
|
@@ -107,12 +107,11 @@
|
|
|
107
107
|
"@internationalized/date": "^3.6.0",
|
|
108
108
|
"@sveltejs/kit": "^2.20.2",
|
|
109
109
|
"@tabler/icons-svelte": "^3.30.0",
|
|
110
|
-
"bits-ui": "^1.3.
|
|
110
|
+
"bits-ui": "^1.3.19",
|
|
111
111
|
"lucide-svelte": "^0.468.0",
|
|
112
|
-
"shadcn-svelte": "latest",
|
|
113
112
|
"svelte": "^5.25.6",
|
|
114
113
|
"svelte-sonner": "^0.3.28",
|
|
115
|
-
"tailwindcss": "^
|
|
114
|
+
"tailwindcss": "^4.1.4"
|
|
116
115
|
},
|
|
117
116
|
"devDependencies": {
|
|
118
117
|
"@internationalized/date": "^3.6.0",
|
|
@@ -120,6 +119,7 @@
|
|
|
120
119
|
"@sveltejs/kit": "^2.20.2",
|
|
121
120
|
"@sveltejs/package": "^2.3.7",
|
|
122
121
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
122
|
+
"@tailwindcss/postcss": "^4.1.4",
|
|
123
123
|
"@tailwindcss/typography": "^0.5.15",
|
|
124
124
|
"@tiptap/core": "^2.9.1",
|
|
125
125
|
"@tiptap/extension-bubble-menu": "^2.9.1",
|
|
@@ -144,8 +144,7 @@
|
|
|
144
144
|
"@tiptap/pm": "^2.9.1",
|
|
145
145
|
"@tiptap/starter-kit": "^2.9.1",
|
|
146
146
|
"@types/node": "^22.10.1",
|
|
147
|
-
"
|
|
148
|
-
"bits-ui": "^1.3.0",
|
|
147
|
+
"bits-ui": "^1.3.19",
|
|
149
148
|
"clsx": "^2.1.1",
|
|
150
149
|
"concurrently": "^9.1.0",
|
|
151
150
|
"eslint": "^9.7.0",
|
|
@@ -155,16 +154,17 @@
|
|
|
155
154
|
"lowlight": "^3.2.0",
|
|
156
155
|
"lucide-svelte": "^0.468.0",
|
|
157
156
|
"mode-watcher": "^0.5.0",
|
|
157
|
+
"postcss": "^8.5.3",
|
|
158
158
|
"prettier": "^3.3.2",
|
|
159
159
|
"prettier-plugin-svelte": "^3.2.6",
|
|
160
|
-
"prettier-plugin-tailwindcss": "^0.6.
|
|
160
|
+
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
161
161
|
"svelte": "^5.25.6",
|
|
162
162
|
"svelte-awesome-color-picker": "^3.1.4",
|
|
163
163
|
"svelte-check": "^4.1.0",
|
|
164
164
|
"svelte-sonner": "^0.3.28",
|
|
165
165
|
"svelte-tiptap": "^2.0.3",
|
|
166
|
-
"tailwind-merge": "^2.
|
|
167
|
-
"tailwind-variants": "^0.3.
|
|
166
|
+
"tailwind-merge": "^2.6.0",
|
|
167
|
+
"tailwind-variants": "^0.3.1",
|
|
168
168
|
"tailwindcss-animate": "^1.0.7",
|
|
169
169
|
"typescript": "^5.0.0",
|
|
170
170
|
"typescript-eslint": "^8.0.0",
|
|
@@ -178,6 +178,7 @@
|
|
|
178
178
|
"dependencies": {
|
|
179
179
|
"@hirasso/thumbhash-custom-element": "^0.5.5",
|
|
180
180
|
"@tabler/icons-svelte": "^3.30.0",
|
|
181
|
-
"pdfjs-dist": "^4.10.38"
|
|
181
|
+
"pdfjs-dist": "^4.10.38",
|
|
182
|
+
"shadcn-svelte": "^1.0.0-next.9"
|
|
182
183
|
}
|
|
183
184
|
}
|
package/tailwind.config.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { fontFamily } from "tailwindcss/defaultTheme";
|
|
2
1
|
import type { Config } from "tailwindcss";
|
|
3
2
|
import tailwindcssAnimate from "tailwindcss-animate";
|
|
4
3
|
import tailwindcssTypography from '@tailwindcss/typography';
|
|
5
4
|
|
|
6
5
|
const config: Config = {
|
|
7
|
-
darkMode:
|
|
6
|
+
darkMode: "class",
|
|
8
7
|
content: ["./src/**/*.{html,js,svelte,ts}"],
|
|
9
|
-
safelist: ["dark"],
|
|
10
8
|
theme: {
|
|
11
9
|
container: {
|
|
12
10
|
center: true,
|
|
@@ -67,9 +65,6 @@ const config: Config = {
|
|
|
67
65
|
md: "calc(var(--radius) - 2px)",
|
|
68
66
|
sm: "calc(var(--radius) - 4px)"
|
|
69
67
|
},
|
|
70
|
-
fontFamily: {
|
|
71
|
-
sans: [...fontFamily.sans]
|
|
72
|
-
},
|
|
73
68
|
keyframes: {
|
|
74
69
|
"accordion-down": {
|
|
75
70
|
from: { height: "0" },
|