@widgetic/design-system 0.3.75 → 0.3.77
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.
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import { onMount, onDestroy, tick, afterUpdate, createEventDispatcher } from 'svelte';
|
|
4
4
|
|
|
5
5
|
// Sveltekit imports
|
|
6
|
-
import { browser } from '$app/environment';
|
|
6
|
+
// import { browser } from '$app/environment';
|
|
7
|
+
const browser = typeof window !== 'undefined';
|
|
7
8
|
import { base } from '$app/paths';
|
|
8
9
|
|
|
9
10
|
// Local components imports
|
package/dist/styles/global.css
CHANGED
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
/* @import './fonts.css' layer(utilities); */
|
|
6
6
|
@import './fonts.css';
|
|
7
7
|
|
|
8
|
-
/* Tailwind config load *after* main imports - needed for tailwind 4
|
|
9
|
-
|
|
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";
|
|
10
11
|
|
|
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. */
|
|
12
16
|
@utility rounded-pill {
|
|
13
17
|
border-radius: var(--radius-pill);
|
|
14
18
|
}
|
|
@@ -34,6 +38,7 @@
|
|
|
34
38
|
color utility to any element that depends on these defaults.
|
|
35
39
|
*/
|
|
36
40
|
@layer base {
|
|
41
|
+
/* Rule for Default border color fix from first @layer block */
|
|
37
42
|
*,
|
|
38
43
|
::after,
|
|
39
44
|
::before,
|
|
@@ -41,10 +46,8 @@
|
|
|
41
46
|
::file-selector-button {
|
|
42
47
|
border-color: var(--color-gray-200, currentcolor);
|
|
43
48
|
}
|
|
44
|
-
}
|
|
45
49
|
|
|
46
|
-
|
|
47
|
-
/* CSS Variables Here at the top of the base layer */
|
|
50
|
+
/* CSS Variables now defined globally on :root */
|
|
48
51
|
:root {
|
|
49
52
|
/* Site Grid Variables */
|
|
50
53
|
--site-column-width: 74px;
|
|
@@ -90,11 +93,10 @@
|
|
|
90
93
|
/* Icon Colors */
|
|
91
94
|
--icon-success: 142 71% 45%;
|
|
92
95
|
--icon-error: 0 84% 60%;
|
|
93
|
-
}
|
|
94
96
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
|
|
98
|
+
/* Widgetic Color Variables (Moved from .widgetic-colors) */
|
|
99
|
+
/* convert colors from hex to HSL (Hue, Saturation, Lightness) format */
|
|
98
100
|
--dark: 120 35.7% 9.4%;
|
|
99
101
|
--deep-forest-green: 115 24.1% 24.7%;
|
|
100
102
|
--sage-green: 108 25.4% 52.9%;
|
|
@@ -103,7 +105,6 @@
|
|
|
103
105
|
--forest-green: 90 16.7% 83.3%;
|
|
104
106
|
--error: 0 89% 65.7%;
|
|
105
107
|
--light-error: 0 45.5% 93.7%;
|
|
106
|
-
|
|
107
108
|
/* Greys */
|
|
108
109
|
--grey1: 0 0% 96.1%;
|
|
109
110
|
--grey2: 0 0% 94.1%;
|
|
@@ -112,11 +113,10 @@
|
|
|
112
113
|
--grey5: 0 0% 40%;
|
|
113
114
|
--grey6: 0 0% 26.7%;
|
|
114
115
|
--grey7: 0 0% 12.9%;
|
|
115
|
-
}
|
|
116
116
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
/*
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
/* Border radius values */
|
|
120
120
|
--radius-pill: 100px; /* Pill/Extra large corner radius */
|
|
121
121
|
--radius-large: 15px; /* Large corner radius */
|
|
122
122
|
--radius-medium: 12px; /* Medium corner radius */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@widgetic/design-system",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.77",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"svelte": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -23,11 +23,14 @@
|
|
|
23
23
|
"dev-with-check": "NODE_ENV=development concurrently \"npm run check:watch\" \"npm run dev-sv\" \"npm run package:watch\"",
|
|
24
24
|
"dev-open": "npm run dev-sv -- --open",
|
|
25
25
|
"dev-sv": "NODE_ENV=development vite dev",
|
|
26
|
+
"build-sv": "vite build",
|
|
26
27
|
"watch": "concurrently \"npm run check:watch\" \"npm run package:watch\"",
|
|
27
28
|
"build": "NODE_ENV=production vite build && npm run package",
|
|
28
|
-
"package:watch": "NODE_ENV=development svelte-package --watch | grep -v '$app/environment'",
|
|
29
|
-
"
|
|
30
|
-
"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",
|
|
31
34
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
32
35
|
"check:watch": "NODE_OPTIONS='--max-old-space-size=8192' svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
33
36
|
"check:strict": "tsc --noEmit && npm run check",
|
|
@@ -122,6 +125,7 @@
|
|
|
122
125
|
"@tailwindcss/typography": "^0.5.15",
|
|
123
126
|
"@types/node": "^22.10.1",
|
|
124
127
|
"bits-ui": "^1.3.19",
|
|
128
|
+
"chokidar-cli": "^3.0.0",
|
|
125
129
|
"concurrently": "^9.1.0",
|
|
126
130
|
"eslint": "^9.7.0",
|
|
127
131
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -167,6 +171,7 @@
|
|
|
167
171
|
"@tiptap/starter-kit": "^2.9.1",
|
|
168
172
|
"clsx": "^2.1.1",
|
|
169
173
|
"lowlight": "^3.2.0",
|
|
174
|
+
"lucide-svelte": "^0.468.0",
|
|
170
175
|
"mode-watcher": "^0.5.0",
|
|
171
176
|
"pdfjs-dist": "^4.10.38",
|
|
172
177
|
"svelte-awesome-color-picker": "^3.1.4",
|
|
@@ -175,8 +180,7 @@
|
|
|
175
180
|
"tailwind-merge": "^2.5.5",
|
|
176
181
|
"tailwind-variants": "^0.3.0",
|
|
177
182
|
"tailwindcss-animate": "^1.0.7",
|
|
178
|
-
"vaul-svelte": "^1.0.0-next.3"
|
|
179
|
-
"lucide-svelte": "^0.468.0"
|
|
183
|
+
"vaul-svelte": "^1.0.0-next.3"
|
|
180
184
|
},
|
|
181
185
|
"volta": {
|
|
182
186
|
"node": "22.14.0",
|