@duskmoon-dev/core 1.15.0 → 1.16.0
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/dist/cjs/tailwind-plugin.cjs +38 -79
- package/dist/components/accordion.css +7 -7
- package/dist/components/alert.css +2 -2
- package/dist/components/appbar.css +5 -5
- package/dist/components/autocomplete.css +7 -7
- package/dist/components/avatar.css +5 -5
- package/dist/components/badge.css +3 -3
- package/dist/components/bottom-navigation.css +7 -7
- package/dist/components/bottomsheet.css +12 -12
- package/dist/components/button.css +19 -19
- package/dist/components/card.css +9 -2
- package/dist/components/cascader.css +9 -9
- package/dist/components/checkbox.css +1 -1
- package/dist/components/chip.css +12 -10
- package/dist/components/circle-menu.css +324 -0
- package/dist/components/code-block.css +133 -0
- package/dist/components/collapse.css +9 -9
- package/dist/components/datepicker.css +22 -22
- package/dist/components/dialog.css +5 -5
- package/dist/components/drawer.css +13 -13
- package/dist/components/file-upload.css +12 -12
- package/dist/components/form-group.css +162 -1
- package/dist/components/form.css +159 -22
- package/dist/components/index.css +1026 -385
- package/dist/components/input.css +23 -14
- package/dist/components/list.css +3 -3
- package/dist/components/markdown-body.css +6 -6
- package/dist/components/modal.css +7 -7
- package/dist/components/multi-select.css +16 -16
- package/dist/components/navigation.css +20 -20
- package/dist/components/nested-menu.css +5 -5
- package/dist/components/otp-input.css +5 -5
- package/dist/components/pin-input.css +5 -5
- package/dist/components/popover.css +15 -15
- package/dist/components/progress.css +2 -2
- package/dist/components/radio.css +2 -2
- package/dist/components/rating.css +1 -1
- package/dist/components/segment-control.css +6 -6
- package/dist/components/select.css +7 -7
- package/dist/components/skeleton.css +11 -11
- package/dist/components/slider.css +16 -16
- package/dist/components/snackbar.css +5 -5
- package/dist/components/stepper.css +9 -9
- package/dist/components/switch.css +1 -1
- package/dist/components/table.css +3 -3
- package/dist/components/textarea.css +5 -5
- package/dist/components/theme-controller.css +4 -4
- package/dist/components/time-input.css +10 -10
- package/dist/components/timeline.css +6 -6
- package/dist/components/toast.css +3 -3
- package/dist/components/toggle.css +8 -8
- package/dist/components/tooltip.css +1 -1
- package/dist/components/tree-select.css +14 -14
- package/dist/esm/components/accordion.js +7 -7
- package/dist/esm/components/alert.js +2 -2
- package/dist/esm/components/appbar.js +5 -5
- package/dist/esm/components/autocomplete.js +7 -7
- package/dist/esm/components/avatar.js +5 -5
- package/dist/esm/components/badge.js +3 -3
- package/dist/esm/components/bottom-navigation.js +7 -7
- package/dist/esm/components/bottomsheet.js +12 -12
- package/dist/esm/components/button.js +19 -19
- package/dist/esm/components/card.js +9 -2
- package/dist/esm/components/cascader.js +9 -9
- package/dist/esm/components/checkbox.js +1 -1
- package/dist/esm/components/chip.js +12 -10
- package/dist/esm/components/circle-menu.js +331 -0
- package/dist/esm/components/code-block.js +140 -0
- package/dist/esm/components/collapse.js +9 -9
- package/dist/esm/components/datepicker.js +22 -22
- package/dist/esm/components/dialog.js +5 -5
- package/dist/esm/components/drawer.js +13 -13
- package/dist/esm/components/file-upload.js +12 -12
- package/dist/esm/components/form-group.js +162 -1
- package/dist/esm/components/form.js +159 -22
- package/dist/esm/components/input.js +23 -14
- package/dist/esm/components/list.js +3 -3
- package/dist/esm/components/markdown-body.js +6 -6
- package/dist/esm/components/modal.js +7 -7
- package/dist/esm/components/multi-select.js +16 -16
- package/dist/esm/components/navigation.js +20 -20
- package/dist/esm/components/nested-menu.js +5 -5
- package/dist/esm/components/otp-input.js +5 -5
- package/dist/esm/components/pin-input.js +5 -5
- package/dist/esm/components/popover.js +15 -15
- package/dist/esm/components/progress.js +2 -2
- package/dist/esm/components/radio.js +2 -2
- package/dist/esm/components/rating.js +1 -1
- package/dist/esm/components/segment-control.js +6 -6
- package/dist/esm/components/select.js +7 -7
- package/dist/esm/components/skeleton.js +11 -11
- package/dist/esm/components/slider.js +16 -16
- package/dist/esm/components/snackbar.js +5 -5
- package/dist/esm/components/stepper.js +9 -9
- package/dist/esm/components/switch.js +1 -1
- package/dist/esm/components/table.js +3 -3
- package/dist/esm/components/textarea.js +5 -5
- package/dist/esm/components/theme-controller.js +4 -4
- package/dist/esm/components/time-input.js +10 -10
- package/dist/esm/components/timeline.js +6 -6
- package/dist/esm/components/toast.js +3 -3
- package/dist/esm/components/toggle.js +8 -8
- package/dist/esm/components/tooltip.js +1 -1
- package/dist/esm/components/tree-select.js +14 -14
- package/dist/esm/tailwind-plugin.js +38 -79
- package/dist/index.css +1435 -1137
- package/dist/index.min.css +1 -1
- package/dist/themes/{forest.css → generated/forest.css} +26 -94
- package/dist/themes/generated/moonlight.css +77 -0
- package/dist/themes/{ocean.css → generated/ocean.css} +26 -103
- package/dist/themes/generated/spacing.css +36 -0
- package/dist/themes/{sunset.css → generated/sunset.css} +26 -95
- package/dist/themes/generated/sunshine.css +77 -0
- package/dist/types/tailwind-plugin.d.ts +1 -0
- package/dist/types/tailwind-plugin.d.ts.map +1 -1
- package/dist/types/themes/generated/ts/types.d.ts +76 -0
- package/dist/types/themes/generated/ts/types.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/types/types/plugin.d.ts +1 -1
- package/dist/types/types/plugin.d.ts.map +1 -1
- package/dist/types/types/theme.d.ts +5 -152
- package/dist/types/types/theme.d.ts.map +1 -1
- package/package.json +11 -6
- package/dist/themes/moonlight.css +0 -271
- package/dist/themes/sunshine.css +0 -252
|
@@ -25,7 +25,7 @@ export const css = `/**
|
|
|
25
25
|
color: var(--color-on-surface);
|
|
26
26
|
background-color: var(--color-surface);
|
|
27
27
|
border: 1px solid currentColor;
|
|
28
|
-
border-radius:
|
|
28
|
+
border-radius: var(--radius-sm);
|
|
29
29
|
cursor: pointer;
|
|
30
30
|
transition: border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
|
|
31
31
|
}
|
|
@@ -106,7 +106,7 @@ export const css = `/**
|
|
|
106
106
|
color: var(--color-on-surface-variant);
|
|
107
107
|
background-color: transparent;
|
|
108
108
|
border: none;
|
|
109
|
-
border-radius:
|
|
109
|
+
border-radius: var(--radius-full);
|
|
110
110
|
cursor: pointer;
|
|
111
111
|
flex-shrink: 0;
|
|
112
112
|
transition: background-color 150ms ease-in-out;
|
|
@@ -134,7 +134,7 @@ export const css = `/**
|
|
|
134
134
|
padding: 0.5rem;
|
|
135
135
|
background-color: var(--color-surface);
|
|
136
136
|
border: 1px solid var(--color-outline-variant);
|
|
137
|
-
border-radius:
|
|
137
|
+
border-radius: var(--radius-sm);
|
|
138
138
|
box-shadow: var(--shadow-md);
|
|
139
139
|
overflow-y: auto;
|
|
140
140
|
}
|
|
@@ -186,7 +186,7 @@ export const css = `/**
|
|
|
186
186
|
color: var(--color-on-surface);
|
|
187
187
|
background-color: var(--color-surface-container);
|
|
188
188
|
border: none;
|
|
189
|
-
border-radius:
|
|
189
|
+
border-radius: var(--radius-xs);
|
|
190
190
|
outline: none;
|
|
191
191
|
}
|
|
192
192
|
|
|
@@ -209,7 +209,7 @@ export const css = `/**
|
|
|
209
209
|
font-size: 0.875rem;
|
|
210
210
|
color: var(--color-on-surface);
|
|
211
211
|
background-color: transparent;
|
|
212
|
-
border-radius:
|
|
212
|
+
border-radius: var(--radius-xs);
|
|
213
213
|
cursor: pointer;
|
|
214
214
|
transition: background-color 150ms ease-in-out;
|
|
215
215
|
}
|
|
@@ -243,7 +243,7 @@ export const css = `/**
|
|
|
243
243
|
color: var(--color-on-surface-variant);
|
|
244
244
|
background-color: transparent;
|
|
245
245
|
border: none;
|
|
246
|
-
border-radius:
|
|
246
|
+
border-radius: var(--radius-xs);
|
|
247
247
|
cursor: pointer;
|
|
248
248
|
flex-shrink: 0;
|
|
249
249
|
transition: transform 150ms ease-in-out;
|
|
@@ -315,7 +315,7 @@ export const css = `/**
|
|
|
315
315
|
height: 1rem;
|
|
316
316
|
background-color: transparent;
|
|
317
317
|
border: 2px solid var(--color-on-surface-variant);
|
|
318
|
-
border-radius:
|
|
318
|
+
border-radius: var(--radius-xs);
|
|
319
319
|
transition: background-color 150ms ease-in-out, border-color 150ms ease-in-out;
|
|
320
320
|
}
|
|
321
321
|
|
|
@@ -329,7 +329,7 @@ export const css = `/**
|
|
|
329
329
|
display: block;
|
|
330
330
|
width: 0.375rem;
|
|
331
331
|
height: 0.625rem;
|
|
332
|
-
border: 2px solid var(--color-
|
|
332
|
+
border: 2px solid var(--color-primary-content);
|
|
333
333
|
border-width: 0 2px 2px 0;
|
|
334
334
|
transform: rotate(45deg) translateY(-1px);
|
|
335
335
|
}
|
|
@@ -346,13 +346,13 @@ export const css = `/**
|
|
|
346
346
|
.tree-select-sm .tree-select-trigger {
|
|
347
347
|
padding: 0.5rem 0.75rem;
|
|
348
348
|
font-size: 0.875rem;
|
|
349
|
-
border-radius:
|
|
349
|
+
border-radius: var(--radius-xs);
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
.tree-select-lg .tree-select-trigger {
|
|
353
353
|
padding: 1rem 1.25rem;
|
|
354
354
|
font-size: 1.125rem;
|
|
355
|
-
border-radius:
|
|
355
|
+
border-radius: var(--radius-sm);
|
|
356
356
|
}
|
|
357
357
|
|
|
358
358
|
/* Outlined Variant (Default) */
|
|
@@ -366,7 +366,7 @@ export const css = `/**
|
|
|
366
366
|
background-color: var(--color-surface-container);
|
|
367
367
|
border: none;
|
|
368
368
|
border-bottom: 2px solid var(--color-outline);
|
|
369
|
-
border-radius:
|
|
369
|
+
border-radius: var(--radius-sm) var(--radius-sm) 0 0;
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
.tree-select-filled .tree-select-trigger:focus {
|
|
@@ -459,7 +459,7 @@ export const css = `/**
|
|
|
459
459
|
height: 1rem;
|
|
460
460
|
border: 2px solid var(--color-outline);
|
|
461
461
|
border-top-color: var(--color-primary);
|
|
462
|
-
border-radius:
|
|
462
|
+
border-radius: var(--radius-full);
|
|
463
463
|
animation: tree-select-spin 0.8s linear infinite;
|
|
464
464
|
}
|
|
465
465
|
|
|
@@ -483,7 +483,7 @@ export const css = `/**
|
|
|
483
483
|
font-size: 0.75rem;
|
|
484
484
|
background-color: var(--color-primary-container);
|
|
485
485
|
color: var(--color-on-primary-container);
|
|
486
|
-
border-radius:
|
|
486
|
+
border-radius: var(--radius-lg);
|
|
487
487
|
}
|
|
488
488
|
|
|
489
489
|
.tree-select-tag-remove {
|
|
@@ -496,7 +496,7 @@ export const css = `/**
|
|
|
496
496
|
color: inherit;
|
|
497
497
|
background-color: transparent;
|
|
498
498
|
border: none;
|
|
499
|
-
border-radius:
|
|
499
|
+
border-radius: var(--radius-full);
|
|
500
500
|
cursor: pointer;
|
|
501
501
|
opacity: 0.7;
|
|
502
502
|
}
|
|
@@ -2,30 +2,59 @@
|
|
|
2
2
|
import plugin from "tailwindcss/plugin";
|
|
3
3
|
var themeColors = {
|
|
4
4
|
primary: "var(--color-primary)",
|
|
5
|
-
"
|
|
5
|
+
"primary-content": "var(--color-primary-content)",
|
|
6
6
|
"primary-container": "var(--color-primary-container)",
|
|
7
7
|
"on-primary-container": "var(--color-on-primary-container)",
|
|
8
8
|
secondary: "var(--color-secondary)",
|
|
9
|
-
"
|
|
9
|
+
"secondary-content": "var(--color-secondary-content)",
|
|
10
10
|
"secondary-container": "var(--color-secondary-container)",
|
|
11
11
|
"on-secondary-container": "var(--color-on-secondary-container)",
|
|
12
12
|
tertiary: "var(--color-tertiary)",
|
|
13
|
-
"
|
|
13
|
+
"tertiary-content": "var(--color-tertiary-content)",
|
|
14
14
|
"tertiary-container": "var(--color-tertiary-container)",
|
|
15
15
|
"on-tertiary-container": "var(--color-on-tertiary-container)",
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
"
|
|
16
|
+
accent: "var(--color-accent)",
|
|
17
|
+
"accent-content": "var(--color-accent-content)",
|
|
18
|
+
neutral: "var(--color-neutral)",
|
|
19
|
+
"neutral-content": "var(--color-neutral-content)",
|
|
20
|
+
"neutral-variant": "var(--color-neutral-variant)",
|
|
20
21
|
surface: "var(--color-surface)",
|
|
21
|
-
"
|
|
22
|
+
"surface-dim": "var(--color-surface-dim)",
|
|
23
|
+
"surface-bright": "var(--color-surface-bright)",
|
|
22
24
|
"surface-variant": "var(--color-surface-variant)",
|
|
25
|
+
"on-surface": "var(--color-on-surface)",
|
|
23
26
|
"on-surface-variant": "var(--color-on-surface-variant)",
|
|
24
27
|
"surface-container": "var(--color-surface-container)",
|
|
25
28
|
"surface-container-low": "var(--color-surface-container-low)",
|
|
26
29
|
"surface-container-lowest": "var(--color-surface-container-lowest)",
|
|
27
30
|
"surface-container-high": "var(--color-surface-container-high)",
|
|
28
31
|
"surface-container-highest": "var(--color-surface-container-highest)",
|
|
32
|
+
info: "var(--color-info)",
|
|
33
|
+
"info-content": "var(--color-info-content)",
|
|
34
|
+
"info-container": "var(--color-info-container)",
|
|
35
|
+
"on-info-container": "var(--color-on-info-container)",
|
|
36
|
+
success: "var(--color-success)",
|
|
37
|
+
"success-content": "var(--color-success-content)",
|
|
38
|
+
"success-container": "var(--color-success-container)",
|
|
39
|
+
"on-success-container": "var(--color-on-success-container)",
|
|
40
|
+
warning: "var(--color-warning)",
|
|
41
|
+
"warning-content": "var(--color-warning-content)",
|
|
42
|
+
"warning-container": "var(--color-warning-container)",
|
|
43
|
+
"on-warning-container": "var(--color-on-warning-container)",
|
|
44
|
+
error: "var(--color-error)",
|
|
45
|
+
"error-content": "var(--color-error-content)",
|
|
46
|
+
"error-container": "var(--color-error-container)",
|
|
47
|
+
"on-error-container": "var(--color-on-error-container)",
|
|
48
|
+
"base-100": "var(--color-base-100)",
|
|
49
|
+
"base-200": "var(--color-base-200)",
|
|
50
|
+
"base-300": "var(--color-base-300)",
|
|
51
|
+
"base-400": "var(--color-base-400)",
|
|
52
|
+
"base-500": "var(--color-base-500)",
|
|
53
|
+
"base-600": "var(--color-base-600)",
|
|
54
|
+
"base-700": "var(--color-base-700)",
|
|
55
|
+
"base-800": "var(--color-base-800)",
|
|
56
|
+
"base-900": "var(--color-base-900)",
|
|
57
|
+
"base-content": "var(--color-base-content)",
|
|
29
58
|
outline: "var(--color-outline)",
|
|
30
59
|
"outline-variant": "var(--color-outline-variant)",
|
|
31
60
|
"inverse-surface": "var(--color-inverse-surface)",
|
|
@@ -34,7 +63,7 @@ var themeColors = {
|
|
|
34
63
|
scrim: "var(--color-scrim)",
|
|
35
64
|
shadow: "var(--color-shadow)"
|
|
36
65
|
};
|
|
37
|
-
var duskmoonPlugin = plugin(({
|
|
66
|
+
var duskmoonPlugin = plugin(({ matchUtilities, theme }) => {
|
|
38
67
|
matchUtilities({
|
|
39
68
|
"grid-cols-auto-fill": (value) => ({
|
|
40
69
|
"grid-template-columns": `repeat(auto-fill, minmax(min(${value}, 100%), 1fr))`
|
|
@@ -43,76 +72,6 @@ var duskmoonPlugin = plugin(({ addBase, matchUtilities, theme }) => {
|
|
|
43
72
|
"grid-template-columns": `repeat(auto-fit, minmax(min(${value}, 100%), 1fr))`
|
|
44
73
|
})
|
|
45
74
|
}, { values: theme("spacing") });
|
|
46
|
-
addBase({
|
|
47
|
-
':root, [data-theme="sunshine"]': {
|
|
48
|
-
"--color-primary": "oklch(0.55 0.2 260)",
|
|
49
|
-
"--color-on-primary": "oklch(1 0 0)",
|
|
50
|
-
"--color-primary-container": "oklch(0.9 0.05 260)",
|
|
51
|
-
"--color-on-primary-container": "oklch(0.25 0.1 260)",
|
|
52
|
-
"--color-secondary": "oklch(0.5 0.1 280)",
|
|
53
|
-
"--color-on-secondary": "oklch(1 0 0)",
|
|
54
|
-
"--color-secondary-container": "oklch(0.92 0.03 280)",
|
|
55
|
-
"--color-on-secondary-container": "oklch(0.25 0.05 280)",
|
|
56
|
-
"--color-tertiary": "oklch(0.55 0.15 30)",
|
|
57
|
-
"--color-on-tertiary": "oklch(1 0 0)",
|
|
58
|
-
"--color-tertiary-container": "oklch(0.92 0.04 30)",
|
|
59
|
-
"--color-on-tertiary-container": "oklch(0.3 0.08 30)",
|
|
60
|
-
"--color-error": "oklch(0.55 0.2 25)",
|
|
61
|
-
"--color-on-error": "oklch(1 0 0)",
|
|
62
|
-
"--color-error-container": "oklch(0.92 0.05 25)",
|
|
63
|
-
"--color-on-error-container": "oklch(0.3 0.1 25)",
|
|
64
|
-
"--color-surface": "oklch(0.99 0.005 260)",
|
|
65
|
-
"--color-on-surface": "oklch(0.2 0.02 260)",
|
|
66
|
-
"--color-surface-variant": "oklch(0.93 0.01 260)",
|
|
67
|
-
"--color-on-surface-variant": "oklch(0.45 0.03 260)",
|
|
68
|
-
"--color-surface-container": "oklch(0.96 0.008 260)",
|
|
69
|
-
"--color-surface-container-low": "oklch(0.97 0.006 260)",
|
|
70
|
-
"--color-surface-container-lowest": "oklch(1 0 0)",
|
|
71
|
-
"--color-surface-container-high": "oklch(0.94 0.01 260)",
|
|
72
|
-
"--color-surface-container-highest": "oklch(0.92 0.012 260)",
|
|
73
|
-
"--color-outline": "oklch(0.55 0.02 260)",
|
|
74
|
-
"--color-outline-variant": "oklch(0.8 0.015 260)",
|
|
75
|
-
"--color-inverse-surface": "oklch(0.25 0.02 260)",
|
|
76
|
-
"--color-inverse-on-surface": "oklch(0.95 0.005 260)",
|
|
77
|
-
"--color-inverse-primary": "oklch(0.8 0.12 260)",
|
|
78
|
-
"--color-scrim": "oklch(0 0 0)",
|
|
79
|
-
"--color-shadow": "oklch(0 0 0)"
|
|
80
|
-
},
|
|
81
|
-
'[data-theme="moonlight"]': {
|
|
82
|
-
"--color-primary": "oklch(0.8 0.12 260)",
|
|
83
|
-
"--color-on-primary": "oklch(0.3 0.15 260)",
|
|
84
|
-
"--color-primary-container": "oklch(0.35 0.15 260)",
|
|
85
|
-
"--color-on-primary-container": "oklch(0.9 0.05 260)",
|
|
86
|
-
"--color-secondary": "oklch(0.8 0.06 280)",
|
|
87
|
-
"--color-on-secondary": "oklch(0.3 0.08 280)",
|
|
88
|
-
"--color-secondary-container": "oklch(0.35 0.08 280)",
|
|
89
|
-
"--color-on-secondary-container": "oklch(0.92 0.03 280)",
|
|
90
|
-
"--color-tertiary": "oklch(0.8 0.1 30)",
|
|
91
|
-
"--color-on-tertiary": "oklch(0.35 0.12 30)",
|
|
92
|
-
"--color-tertiary-container": "oklch(0.4 0.1 30)",
|
|
93
|
-
"--color-on-tertiary-container": "oklch(0.92 0.04 30)",
|
|
94
|
-
"--color-error": "oklch(0.85 0.12 25)",
|
|
95
|
-
"--color-on-error": "oklch(0.35 0.15 25)",
|
|
96
|
-
"--color-error-container": "oklch(0.4 0.12 25)",
|
|
97
|
-
"--color-on-error-container": "oklch(0.92 0.05 25)",
|
|
98
|
-
"--color-surface": "oklch(0.2 0.015 260)",
|
|
99
|
-
"--color-on-surface": "oklch(0.93 0.01 260)",
|
|
100
|
-
"--color-surface-variant": "oklch(0.35 0.02 260)",
|
|
101
|
-
"--color-on-surface-variant": "oklch(0.8 0.02 260)",
|
|
102
|
-
"--color-surface-container": "oklch(0.22 0.018 260)",
|
|
103
|
-
"--color-surface-container-low": "oklch(0.18 0.012 260)",
|
|
104
|
-
"--color-surface-container-lowest": "oklch(0.15 0.01 260)",
|
|
105
|
-
"--color-surface-container-high": "oklch(0.25 0.02 260)",
|
|
106
|
-
"--color-surface-container-highest": "oklch(0.28 0.022 260)",
|
|
107
|
-
"--color-outline": "oklch(0.55 0.025 260)",
|
|
108
|
-
"--color-outline-variant": "oklch(0.35 0.02 260)",
|
|
109
|
-
"--color-inverse-surface": "oklch(0.93 0.01 260)",
|
|
110
|
-
"--color-inverse-on-surface": "oklch(0.25 0.02 260)",
|
|
111
|
-
"--color-inverse-primary": "oklch(0.55 0.2 260)",
|
|
112
|
-
"--color-scrim": "oklch(0 0 0)",
|
|
113
|
-
"--color-shadow": "oklch(0 0 0)"
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
75
|
}, {
|
|
117
76
|
theme: {
|
|
118
77
|
extend: {
|