@duskmoon-dev/core 1.19.2 → 1.19.4
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 +1 -1
- package/dist/base.css +484 -0
- package/dist/components/accordion.css +33 -9
- package/dist/components/autocomplete.css +67 -13
- package/dist/components/avatar.css +39 -15
- package/dist/components/badge.css +15 -3
- package/dist/components/card.css +12 -0
- package/dist/components/carousel.css +28 -0
- package/dist/components/chat.css +15 -11
- package/dist/components/checkbox.css +83 -13
- package/dist/components/collapse.css +67 -16
- package/dist/components/countdown.css +22 -0
- package/dist/components/datepicker.css +76 -0
- package/dist/components/diff.css +33 -0
- package/dist/components/file-input.css +107 -0
- package/dist/components/filter-group.css +452 -0
- package/dist/components/footer.css +48 -0
- package/dist/components/form-group.css +95 -204
- package/dist/components/form.css +1551 -421
- package/dist/components/hero.css +57 -0
- package/dist/components/index.css +7657 -7321
- package/dist/components/indicator.css +63 -0
- package/dist/components/input.css +114 -31
- package/dist/components/join.css +70 -0
- package/dist/components/kbd.css +28 -0
- package/dist/components/list.css +22 -3
- package/dist/components/mask.css +38 -0
- package/dist/components/otp-input.css +124 -6
- package/dist/components/radio.css +70 -0
- package/dist/components/range.css +41 -0
- package/dist/components/rating.css +39 -12
- package/dist/components/select.css +74 -0
- package/dist/components/sidebar-layout.css +66 -0
- package/dist/components/stack.css +56 -0
- package/dist/components/stat.css +40 -0
- package/dist/components/switch.css +70 -0
- package/dist/components/table.css +8 -0
- package/dist/components/textarea.css +74 -0
- package/dist/components/timeline.css +40 -25
- package/dist/components/toggle-switch.css +165 -0
- package/dist/components/toggle.css +198 -32
- package/dist/components/validator.css +66 -0
- package/dist/effects/aura.css +22 -0
- package/dist/effects/hover-3d.css +8 -0
- package/dist/effects/hover-gallery.css +14 -0
- package/dist/effects/index.css +65 -0
- package/dist/effects/text-rotate.css +16 -0
- package/dist/esm/components/accordion.js +33 -9
- package/dist/esm/components/autocomplete.js +67 -13
- package/dist/esm/components/avatar.js +39 -15
- package/dist/esm/components/badge.js +15 -3
- package/dist/esm/components/card.js +12 -0
- package/dist/esm/components/carousel.d.ts +5 -0
- package/dist/esm/components/carousel.js +37 -0
- package/dist/esm/components/chat.js +15 -11
- package/dist/esm/components/checkbox.js +84 -14
- package/dist/esm/components/collapse.js +67 -16
- package/dist/esm/components/countdown.d.ts +5 -0
- package/dist/esm/components/countdown.js +31 -0
- package/dist/esm/components/datepicker.js +77 -1
- package/dist/esm/components/diff.d.ts +5 -0
- package/dist/esm/components/diff.js +42 -0
- package/dist/esm/components/file-input.d.ts +5 -0
- package/dist/esm/components/file-input.js +116 -0
- package/dist/esm/components/filter-group.d.ts +5 -0
- package/dist/esm/components/filter-group.js +461 -0
- package/dist/esm/components/footer.d.ts +5 -0
- package/dist/esm/components/footer.js +57 -0
- package/dist/esm/components/form-group.js +96 -205
- package/dist/esm/components/form.js +1539 -409
- package/dist/esm/components/hero.d.ts +5 -0
- package/dist/esm/components/hero.js +66 -0
- package/dist/esm/components/indicator.d.ts +5 -0
- package/dist/esm/components/indicator.js +72 -0
- package/dist/esm/components/input.js +115 -32
- package/dist/esm/components/join.d.ts +5 -0
- package/dist/esm/components/join.js +79 -0
- package/dist/esm/components/kbd.d.ts +5 -0
- package/dist/esm/components/kbd.js +37 -0
- package/dist/esm/components/list.js +22 -3
- package/dist/esm/components/mask.d.ts +5 -0
- package/dist/esm/components/mask.js +47 -0
- package/dist/esm/components/otp-input.js +125 -7
- package/dist/esm/components/radio.js +71 -1
- package/dist/esm/components/range.d.ts +5 -0
- package/dist/esm/components/range.js +50 -0
- package/dist/esm/components/rating.js +39 -12
- package/dist/esm/components/select.js +75 -1
- package/dist/esm/components/sidebar-layout.d.ts +5 -0
- package/dist/esm/components/sidebar-layout.js +75 -0
- package/dist/esm/components/stack.d.ts +5 -0
- package/dist/esm/components/stack.js +65 -0
- package/dist/esm/components/stat.d.ts +5 -0
- package/dist/esm/components/stat.js +49 -0
- package/dist/esm/components/switch.js +71 -1
- package/dist/esm/components/table.js +8 -0
- package/dist/esm/components/textarea.js +75 -1
- package/dist/esm/components/timeline.js +40 -25
- package/dist/esm/components/toggle-switch.d.ts +5 -0
- package/dist/esm/components/toggle-switch.js +174 -0
- package/dist/esm/components/toggle.js +198 -32
- package/dist/esm/components/validator.d.ts +5 -0
- package/dist/esm/components/validator.js +75 -0
- package/dist/esm/effects/aura.d.ts +5 -0
- package/dist/esm/effects/aura.js +31 -0
- package/dist/esm/effects/hover-3d.d.ts +5 -0
- package/dist/esm/effects/hover-3d.js +17 -0
- package/dist/esm/effects/hover-gallery.d.ts +5 -0
- package/dist/esm/effects/hover-gallery.js +23 -0
- package/dist/esm/effects/index.d.ts +5 -0
- package/dist/esm/effects/index.js +74 -0
- package/dist/esm/effects/text-rotate.d.ts +5 -0
- package/dist/esm/effects/text-rotate.js +25 -0
- package/dist/index.css +8324 -7989
- package/dist/index.min.css +1 -1
- package/dist/standalone/duskmoonui-themes.css +1 -1
- package/dist/standalone/duskmoonui.css +9103 -8759
- package/dist/standalone/duskmoonui.js +12 -13
- package/dist/standalone/duskmoonui.mjs +12 -13
- package/dist/types/types/plugin.d.ts +1 -1
- package/dist/types/types/plugin.d.ts.map +1 -1
- package/package.json +140 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.range {
|
|
3
|
+
--range-thumb-size: 1.25rem;
|
|
4
|
+
appearance: none;
|
|
5
|
+
display: block;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
width: 100%;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
height: var(--range-thumb-size);
|
|
10
|
+
margin: 0;
|
|
11
|
+
color: var(--color-on-surface);
|
|
12
|
+
accent-color: currentColor;
|
|
13
|
+
background: transparent;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
.range::-webkit-slider-runnable-track { height: 0.5rem; background: var(--color-surface-container-highest); border-radius: var(--radius-xs); }
|
|
17
|
+
.range::-moz-range-track { height: 0.5rem; background: var(--color-surface-container-highest); border-radius: var(--radius-xs); }
|
|
18
|
+
.range::-webkit-slider-thumb {
|
|
19
|
+
appearance: none;
|
|
20
|
+
width: var(--range-thumb-size);
|
|
21
|
+
height: var(--range-thumb-size);
|
|
22
|
+
margin-top: calc((0.5rem - var(--range-thumb-size)) / 2);
|
|
23
|
+
background: currentColor;
|
|
24
|
+
border: 1px solid currentColor;
|
|
25
|
+
border-radius: var(--radius-full);
|
|
26
|
+
}
|
|
27
|
+
.range::-moz-range-thumb { width: var(--range-thumb-size); height: var(--range-thumb-size); background: currentColor; border: 1px solid currentColor; border-radius: var(--radius-full); }
|
|
28
|
+
.range:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
|
|
29
|
+
.range:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
30
|
+
.range-xs { --range-thumb-size: 0.875rem; }
|
|
31
|
+
.range-sm { --range-thumb-size: 1rem; }
|
|
32
|
+
.range-lg { --range-thumb-size: 1.5rem; }
|
|
33
|
+
.range-primary { color: var(--color-primary); }
|
|
34
|
+
.range-secondary { color: var(--color-secondary); }
|
|
35
|
+
.range-tertiary { color: var(--color-tertiary); }
|
|
36
|
+
.range-info { color: var(--color-info); }
|
|
37
|
+
.range-success { color: var(--color-success); }
|
|
38
|
+
.range-warning { color: var(--color-warning); }
|
|
39
|
+
.range-error { color: var(--color-error); }
|
|
40
|
+
@media (forced-colors: active) { .range { appearance: auto; } .range:focus-visible { outline-color: Highlight; } }
|
|
41
|
+
}
|
|
@@ -175,23 +175,23 @@
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
/* Hover Preview */
|
|
178
|
-
.rating:not(.rating-readonly) .rating-item:hover ~ .rating-item {
|
|
178
|
+
.rating:not(.rating-readonly):not(.rating-native) .rating-item:hover ~ .rating-item {
|
|
179
179
|
color: var(--color-outline);
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
.rating:not(.rating-readonly):hover .rating-item {
|
|
182
|
+
.rating:not(.rating-readonly):not(.rating-native):hover .rating-item {
|
|
183
183
|
color: var(--color-warning);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
.rating-primary:not(.rating-readonly):hover .rating-item { color: var(--color-primary); }
|
|
187
|
-
.rating-secondary:not(.rating-readonly):hover .rating-item { color: var(--color-secondary); }
|
|
188
|
-
.rating-tertiary:not(.rating-readonly):hover .rating-item { color: var(--color-tertiary); }
|
|
189
|
-
.rating-info:not(.rating-readonly):hover .rating-item { color: var(--color-info); }
|
|
190
|
-
.rating-success:not(.rating-readonly):hover .rating-item { color: var(--color-success); }
|
|
191
|
-
.rating-error:not(.rating-readonly):hover .rating-item { color: var(--color-error); }
|
|
192
|
-
.rating-accent:not(.rating-readonly):hover .rating-item { color: var(--color-accent); }
|
|
193
|
-
.rating-neutral:not(.rating-readonly):hover .rating-item { color: var(--color-neutral); }
|
|
194
|
-
.rating-base:not(.rating-readonly):hover .rating-item { color: var(--color-base-content); }
|
|
186
|
+
.rating-primary:not(.rating-readonly):not(.rating-native):hover .rating-item { color: var(--color-primary); }
|
|
187
|
+
.rating-secondary:not(.rating-readonly):not(.rating-native):hover .rating-item { color: var(--color-secondary); }
|
|
188
|
+
.rating-tertiary:not(.rating-readonly):not(.rating-native):hover .rating-item { color: var(--color-tertiary); }
|
|
189
|
+
.rating-info:not(.rating-readonly):not(.rating-native):hover .rating-item { color: var(--color-info); }
|
|
190
|
+
.rating-success:not(.rating-readonly):not(.rating-native):hover .rating-item { color: var(--color-success); }
|
|
191
|
+
.rating-error:not(.rating-readonly):not(.rating-native):hover .rating-item { color: var(--color-error); }
|
|
192
|
+
.rating-accent:not(.rating-readonly):not(.rating-native):hover .rating-item { color: var(--color-accent); }
|
|
193
|
+
.rating-neutral:not(.rating-readonly):not(.rating-native):hover .rating-item { color: var(--color-neutral); }
|
|
194
|
+
.rating-base:not(.rating-readonly):not(.rating-native):hover .rating-item { color: var(--color-base-content); }
|
|
195
195
|
|
|
196
196
|
/* Focus Visible — use warning (the default fill color) for the base ring;
|
|
197
197
|
per-variant overrides below match the active fill color for each variant. */
|
|
@@ -266,7 +266,34 @@
|
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
/*
|
|
269
|
+
/* Native radio pattern: selection is authoritative, not .filled/.active. */
|
|
270
|
+
.rating-native { --rating-color: var(--color-warning); flex-wrap: wrap; max-inline-size: 100%; }
|
|
271
|
+
.rating-native.rating-primary { --rating-color: var(--color-primary); }
|
|
272
|
+
.rating-native.rating-secondary { --rating-color: var(--color-secondary); }
|
|
273
|
+
.rating-native.rating-tertiary { --rating-color: var(--color-tertiary); }
|
|
274
|
+
.rating-native.rating-info { --rating-color: var(--color-info); }
|
|
275
|
+
.rating-native.rating-success { --rating-color: var(--color-success); }
|
|
276
|
+
.rating-native.rating-warning { --rating-color: var(--color-warning); }
|
|
277
|
+
.rating-native.rating-error { --rating-color: var(--color-error); }
|
|
278
|
+
.rating-native .rating-item { position: relative; padding: 0.25rem; }
|
|
279
|
+
.rating-native .rating-input {
|
|
280
|
+
inset: 0;
|
|
281
|
+
width: 100%;
|
|
282
|
+
height: 100%;
|
|
283
|
+
margin: 0;
|
|
284
|
+
cursor: inherit;
|
|
285
|
+
}
|
|
286
|
+
.rating-native .rating-item:is(.filled, .active, :hover),
|
|
287
|
+
.rating-native .rating-item { color: var(--color-outline); transform: none; }
|
|
288
|
+
.rating-native .rating-item:has(.rating-input:checked),
|
|
289
|
+
.rating-native .rating-item:not(.rating-none):has(~ .rating-item .rating-input:checked) { color: var(--rating-color); }
|
|
290
|
+
.rating-native .rating-item:has(.rating-input:focus-visible) { outline: 2px solid currentColor; outline-offset: 2px; border-radius: var(--radius-xs); }
|
|
291
|
+
.rating-native .rating-item:has(.rating-input:disabled) { opacity: 0.38; cursor: not-allowed; }
|
|
292
|
+
.rating-native .rating-none { color: var(--color-on-surface); font-size: 0.875rem; }
|
|
293
|
+
@media (forced-colors: active) {
|
|
294
|
+
.rating-native .rating-item:has(.rating-input:checked) { outline: 2px solid Highlight; }
|
|
295
|
+
}
|
|
296
|
+
|
|
270
297
|
@media (prefers-reduced-motion: reduce) {
|
|
271
298
|
.rating-item,
|
|
272
299
|
.rating-animated .rating-item {
|
|
@@ -1,9 +1,79 @@
|
|
|
1
|
+
/** Opt-in native presentation. Applications own errors, messages and announcements. */
|
|
2
|
+
@layer components {
|
|
3
|
+
/* Compatibility wrapper states are intentionally immediate. */
|
|
4
|
+
:is(.form-group-info, .form-control.info) { --dm-validation-color: var(--color-info); }
|
|
5
|
+
:is(.form-group-warning, .form-control.warning) { --dm-validation-color: var(--color-warning); }
|
|
6
|
+
:is(.form-group-success, .form-control.success) { --dm-validation-color: var(--color-success); }
|
|
7
|
+
|
|
8
|
+
:is(.input, .select, .textarea, .checkbox, .radio, .switch, .toggle, .file-input, .otp-input-field, .otp-code, .datepicker-input):is(.validate :valid, .validate:valid, .validator.validator-success:user-valid):not([aria-invalid="true"]):not(:where(.form-group-error *, .form-control.error *)):not(:disabled) {
|
|
9
|
+
--dm-validation-color: var(--color-success);
|
|
10
|
+
--dm-validation-content: var(--color-success-content);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:is(.input, .select, .textarea, .checkbox, .radio, .switch, .toggle, .file-input, .otp-input-field, .otp-code, .datepicker-input):is(.validate :invalid, .validate:invalid, .validator:user-invalid):not(:disabled) {
|
|
14
|
+
--dm-validation-color: var(--color-error);
|
|
15
|
+
--dm-validation-content: var(--color-error-content);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:is(.form-group-error, .form-control.error) {
|
|
19
|
+
--dm-validation-color: var(--color-error);
|
|
20
|
+
--dm-validation-content: var(--color-error-content);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Higher specificity than native states, including server-invalid + user-valid. */
|
|
24
|
+
:is(.input, .select, .textarea, .checkbox, .radio, .switch, .toggle, .file-input, .otp-input-field, .otp-code, .datepicker-input):is([aria-invalid="true"], .form-group-error *, .form-control.error *):not(:disabled):is(:focus, :not(:focus)) {
|
|
25
|
+
--dm-validation-color: var(--color-error);
|
|
26
|
+
--dm-validation-content: var(--color-error-content);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* This shared selector wins over filled/ghost focus and semantic modifiers. */
|
|
30
|
+
:is(.input, .select, .textarea, .checkbox, .radio, .switch, .toggle, .file-input, .otp-input-field, .otp-code, .datepicker-input):is([aria-invalid="true"], .validator:user-invalid, .validator.validator-success:user-valid, .validate :invalid, .validate :valid, .validate:invalid, .validate:valid, .form-group-error *, .form-group-success *, .form-group-warning *, .form-group-info *, .form-control.error *, .form-control.success *, .form-control.warning *, .form-control.info *):not(:disabled) {
|
|
31
|
+
color: var(--dm-validation-color);
|
|
32
|
+
border-color: var(--dm-validation-color);
|
|
33
|
+
--checkbox-color: var(--dm-validation-color);
|
|
34
|
+
--radio-color: var(--dm-validation-color);
|
|
35
|
+
--switch-color: var(--dm-validation-color);
|
|
36
|
+
--switch-content-color: var(--dm-validation-content, var(--color-primary-content));
|
|
37
|
+
--toggle-color: var(--dm-validation-color);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:is(.input, .select, .textarea, .checkbox, .radio, .switch, .toggle, .file-input, .otp-input-field, .otp-code, .datepicker-input):is([aria-invalid="true"], .validator:user-invalid, .validator.validator-success:user-valid, .validate :invalid, .validate :valid, .validate:invalid, .validate:valid, .form-group-error *, .form-group-success *, .form-group-warning *, .form-group-info *, .form-control.error *, .form-control.success *, .form-control.warning *, .form-control.info *):not(:disabled):focus {
|
|
41
|
+
border-color: var(--dm-validation-color);
|
|
42
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, var(--dm-validation-color) 20%, transparent);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:is(.form-group-error, .form-control.error) :is(.form-label, .label-text) { color: var(--color-error); }
|
|
46
|
+
:is(.form-group-success, .form-control.success) :is(.form-label, .label-text) { color: var(--color-success); }
|
|
47
|
+
:is(.form-group-warning, .form-control.warning) :is(.form-label, .label-text) { color: var(--color-warning); }
|
|
48
|
+
:is(.form-group-info, .form-control.info) :is(.form-label, .label-text) { color: var(--color-info); }
|
|
49
|
+
|
|
50
|
+
.validator-hint { font-size: 0.75rem; color: var(--color-on-surface-variant); }
|
|
51
|
+
.validator-error { display: none; font-size: 0.75rem; color: var(--color-error); }
|
|
52
|
+
/* Keep OTP actions stationary when blur reveals an error during a click. */
|
|
53
|
+
.otp-code ~ .validator-error { display: block; visibility: hidden; }
|
|
54
|
+
:is(.form-group, .form-control):has(:is([aria-invalid="true"], .validator:user-invalid, .validate :invalid, .validate:invalid):not(:disabled)) > .validator-error,
|
|
55
|
+
:is(.form-group-error, .form-control.error) > .validator-error { display: block; visibility: visible; }
|
|
56
|
+
|
|
57
|
+
@media (forced-colors: active) {
|
|
58
|
+
:is(input, select, textarea):is(.input, .select, .textarea, .checkbox, .radio, .switch, .toggle, .file-input, .otp-input-field, .otp-code, .datepicker-input):focus-visible {
|
|
59
|
+
outline: 2px solid Highlight;
|
|
60
|
+
outline-offset: 2px;
|
|
61
|
+
}
|
|
62
|
+
input:is(.checkbox, .radio, .switch, .toggle) { appearance: auto; }
|
|
63
|
+
input:is(.checkbox, .radio, .switch, .toggle)::before,
|
|
64
|
+
input:is(.checkbox, .radio, .switch, .toggle)::after { content: none; }
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
1
69
|
/**
|
|
2
70
|
* Select Component Styles
|
|
3
71
|
* DuskMoonUI - Material Design 3 inspired select/dropdown system
|
|
4
72
|
*/
|
|
5
73
|
|
|
6
74
|
@layer components {
|
|
75
|
+
:where(.select) { box-sizing: border-box; }
|
|
76
|
+
|
|
7
77
|
/* Base Select */
|
|
8
78
|
.select {
|
|
9
79
|
display: block;
|
|
@@ -94,6 +164,10 @@
|
|
|
94
164
|
.select-neutral { color: var(--color-neutral); }
|
|
95
165
|
.select-base { color: var(--color-base-content); }
|
|
96
166
|
|
|
167
|
+
.select-bordered { border-color: var(--color-outline); }
|
|
168
|
+
.select-md { font-size: 1rem; }
|
|
169
|
+
.select:dir(rtl) { padding-inline: 1rem 2.5rem; background-position: left 0.75rem center; }
|
|
170
|
+
|
|
97
171
|
/* Size Variants */
|
|
98
172
|
.select-xs {
|
|
99
173
|
padding: 0.375rem 2rem 0.375rem 0.625rem;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sidebar Layout Composition Primitive
|
|
3
|
+
* Persistent, responsive sidebar + content grid; application code owns state.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@layer components {
|
|
7
|
+
.sidebar-layout {
|
|
8
|
+
--sidebar-layout-width: 17.5rem;
|
|
9
|
+
--sidebar-layout-compact-width: 5rem;
|
|
10
|
+
container-type: inline-size;
|
|
11
|
+
container-name: sidebar-layout;
|
|
12
|
+
display: grid;
|
|
13
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
14
|
+
grid-template-areas: "sidebar content";
|
|
15
|
+
width: 100%;
|
|
16
|
+
min-width: 0;
|
|
17
|
+
min-height: 0;
|
|
18
|
+
background-color: var(--color-surface);
|
|
19
|
+
color: var(--color-on-surface);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sidebar-layout-sidebar {
|
|
23
|
+
display: none;
|
|
24
|
+
grid-area: sidebar;
|
|
25
|
+
width: var(--sidebar-layout-width);
|
|
26
|
+
min-width: 0;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
background-color: var(--color-surface-container-low);
|
|
29
|
+
color: var(--color-on-surface);
|
|
30
|
+
border-inline-end: 1px solid var(--color-outline-variant);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.sidebar-layout-content {
|
|
34
|
+
grid-area: content;
|
|
35
|
+
min-width: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.sidebar-layout-start {
|
|
39
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
40
|
+
grid-template-areas: "sidebar content";
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.sidebar-layout-end {
|
|
44
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
45
|
+
grid-template-areas: "content sidebar";
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.sidebar-layout-end > .sidebar-layout-sidebar {
|
|
49
|
+
border-inline-start: 1px solid var(--color-outline-variant);
|
|
50
|
+
border-inline-end: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@container sidebar-layout (min-width: 48rem) {
|
|
54
|
+
.sidebar-layout-sidebar {
|
|
55
|
+
display: block;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.sidebar-layout-compact > .sidebar-layout-sidebar {
|
|
60
|
+
width: var(--sidebar-layout-compact-width);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.sidebar-layout-hidden > .sidebar-layout-sidebar {
|
|
64
|
+
display: none;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stack Composition Primitive
|
|
3
|
+
* Overlaps arbitrary children in one intrinsic CSS Grid area.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@layer components {
|
|
7
|
+
.stack {
|
|
8
|
+
--stack-inline-offset: 0;
|
|
9
|
+
--stack-block-offset: 0.375rem;
|
|
10
|
+
display: inline-grid;
|
|
11
|
+
place-items: stretch;
|
|
12
|
+
isolation: isolate;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.stack > * {
|
|
16
|
+
grid-area: 1 / 1;
|
|
17
|
+
position: relative;
|
|
18
|
+
min-width: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.stack > :first-child {
|
|
22
|
+
z-index: 3;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.stack > :nth-child(2) {
|
|
26
|
+
z-index: 2;
|
|
27
|
+
inset-inline-start: var(--stack-inline-offset);
|
|
28
|
+
inset-block-start: var(--stack-block-offset);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.stack > :nth-child(n + 3) {
|
|
32
|
+
z-index: 1;
|
|
33
|
+
inset-inline-start: calc(var(--stack-inline-offset) * 2);
|
|
34
|
+
inset-block-start: calc(var(--stack-block-offset) * 2);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.stack-top {
|
|
38
|
+
--stack-inline-offset: 0;
|
|
39
|
+
--stack-block-offset: -0.375rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.stack-bottom {
|
|
43
|
+
--stack-inline-offset: 0;
|
|
44
|
+
--stack-block-offset: 0.375rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.stack-start {
|
|
48
|
+
--stack-inline-offset: -0.375rem;
|
|
49
|
+
--stack-block-offset: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.stack-end {
|
|
53
|
+
--stack-inline-offset: 0.375rem;
|
|
54
|
+
--stack-block-offset: 0;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.stats {
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-auto-flow: column;
|
|
5
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
6
|
+
max-inline-size: 100%;
|
|
7
|
+
color: var(--color-on-surface);
|
|
8
|
+
background: var(--color-surface-container-low);
|
|
9
|
+
border-radius: var(--radius-md);
|
|
10
|
+
}
|
|
11
|
+
.stat {
|
|
12
|
+
display: grid;
|
|
13
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
14
|
+
gap: 0.25rem 1rem;
|
|
15
|
+
min-inline-size: 0;
|
|
16
|
+
padding: 1rem;
|
|
17
|
+
color: var(--color-on-surface);
|
|
18
|
+
overflow-wrap: anywhere;
|
|
19
|
+
}
|
|
20
|
+
.stats > .stat + .stat { border-inline-start: 1px solid var(--color-outline-variant); }
|
|
21
|
+
.stat-title, .stat-desc { grid-column: 1; color: var(--color-on-surface-variant); font-size: 0.875rem; }
|
|
22
|
+
.stat-value { grid-column: 1; font-size: 2rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
|
|
23
|
+
.stat-figure { grid-column: 2; grid-row: 1 / 4; align-self: center; }
|
|
24
|
+
.stat-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-start: 0.5rem; }
|
|
25
|
+
.stats-vertical { grid-auto-flow: row; }
|
|
26
|
+
.stats-horizontal { grid-auto-flow: column; }
|
|
27
|
+
.stats-vertical > .stat + .stat { border-inline-start: 0; border-block-start: 1px solid var(--color-outline-variant); }
|
|
28
|
+
.stats-responsive { container-type: inline-size; container-name: stats; }
|
|
29
|
+
@container stats (max-width: 32rem) {
|
|
30
|
+
.stats-responsive > .stat { grid-column: 1; }
|
|
31
|
+
.stats-responsive > .stat + .stat { border-inline-start: 0; border-block-start: 1px solid var(--color-outline-variant); }
|
|
32
|
+
}
|
|
33
|
+
.stat-primary .stat-value { color: var(--color-primary); }
|
|
34
|
+
.stat-secondary .stat-value { color: var(--color-secondary); }
|
|
35
|
+
.stat-tertiary .stat-value { color: var(--color-tertiary); }
|
|
36
|
+
.stat-info .stat-value { color: var(--color-info); }
|
|
37
|
+
.stat-success .stat-value { color: var(--color-success); }
|
|
38
|
+
.stat-warning .stat-value { color: var(--color-warning); }
|
|
39
|
+
.stat-error .stat-value { color: var(--color-error); }
|
|
40
|
+
}
|
|
@@ -1,3 +1,71 @@
|
|
|
1
|
+
/** Opt-in native presentation. Applications own errors, messages and announcements. */
|
|
2
|
+
@layer components {
|
|
3
|
+
/* Compatibility wrapper states are intentionally immediate. */
|
|
4
|
+
:is(.form-group-info, .form-control.info) { --dm-validation-color: var(--color-info); }
|
|
5
|
+
:is(.form-group-warning, .form-control.warning) { --dm-validation-color: var(--color-warning); }
|
|
6
|
+
:is(.form-group-success, .form-control.success) { --dm-validation-color: var(--color-success); }
|
|
7
|
+
|
|
8
|
+
:is(.input, .select, .textarea, .checkbox, .radio, .switch, .toggle, .file-input, .otp-input-field, .otp-code, .datepicker-input):is(.validate :valid, .validate:valid, .validator.validator-success:user-valid):not([aria-invalid="true"]):not(:where(.form-group-error *, .form-control.error *)):not(:disabled) {
|
|
9
|
+
--dm-validation-color: var(--color-success);
|
|
10
|
+
--dm-validation-content: var(--color-success-content);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:is(.input, .select, .textarea, .checkbox, .radio, .switch, .toggle, .file-input, .otp-input-field, .otp-code, .datepicker-input):is(.validate :invalid, .validate:invalid, .validator:user-invalid):not(:disabled) {
|
|
14
|
+
--dm-validation-color: var(--color-error);
|
|
15
|
+
--dm-validation-content: var(--color-error-content);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:is(.form-group-error, .form-control.error) {
|
|
19
|
+
--dm-validation-color: var(--color-error);
|
|
20
|
+
--dm-validation-content: var(--color-error-content);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Higher specificity than native states, including server-invalid + user-valid. */
|
|
24
|
+
:is(.input, .select, .textarea, .checkbox, .radio, .switch, .toggle, .file-input, .otp-input-field, .otp-code, .datepicker-input):is([aria-invalid="true"], .form-group-error *, .form-control.error *):not(:disabled):is(:focus, :not(:focus)) {
|
|
25
|
+
--dm-validation-color: var(--color-error);
|
|
26
|
+
--dm-validation-content: var(--color-error-content);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* This shared selector wins over filled/ghost focus and semantic modifiers. */
|
|
30
|
+
:is(.input, .select, .textarea, .checkbox, .radio, .switch, .toggle, .file-input, .otp-input-field, .otp-code, .datepicker-input):is([aria-invalid="true"], .validator:user-invalid, .validator.validator-success:user-valid, .validate :invalid, .validate :valid, .validate:invalid, .validate:valid, .form-group-error *, .form-group-success *, .form-group-warning *, .form-group-info *, .form-control.error *, .form-control.success *, .form-control.warning *, .form-control.info *):not(:disabled) {
|
|
31
|
+
color: var(--dm-validation-color);
|
|
32
|
+
border-color: var(--dm-validation-color);
|
|
33
|
+
--checkbox-color: var(--dm-validation-color);
|
|
34
|
+
--radio-color: var(--dm-validation-color);
|
|
35
|
+
--switch-color: var(--dm-validation-color);
|
|
36
|
+
--switch-content-color: var(--dm-validation-content, var(--color-primary-content));
|
|
37
|
+
--toggle-color: var(--dm-validation-color);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:is(.input, .select, .textarea, .checkbox, .radio, .switch, .toggle, .file-input, .otp-input-field, .otp-code, .datepicker-input):is([aria-invalid="true"], .validator:user-invalid, .validator.validator-success:user-valid, .validate :invalid, .validate :valid, .validate:invalid, .validate:valid, .form-group-error *, .form-group-success *, .form-group-warning *, .form-group-info *, .form-control.error *, .form-control.success *, .form-control.warning *, .form-control.info *):not(:disabled):focus {
|
|
41
|
+
border-color: var(--dm-validation-color);
|
|
42
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, var(--dm-validation-color) 20%, transparent);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:is(.form-group-error, .form-control.error) :is(.form-label, .label-text) { color: var(--color-error); }
|
|
46
|
+
:is(.form-group-success, .form-control.success) :is(.form-label, .label-text) { color: var(--color-success); }
|
|
47
|
+
:is(.form-group-warning, .form-control.warning) :is(.form-label, .label-text) { color: var(--color-warning); }
|
|
48
|
+
:is(.form-group-info, .form-control.info) :is(.form-label, .label-text) { color: var(--color-info); }
|
|
49
|
+
|
|
50
|
+
.validator-hint { font-size: 0.75rem; color: var(--color-on-surface-variant); }
|
|
51
|
+
.validator-error { display: none; font-size: 0.75rem; color: var(--color-error); }
|
|
52
|
+
/* Keep OTP actions stationary when blur reveals an error during a click. */
|
|
53
|
+
.otp-code ~ .validator-error { display: block; visibility: hidden; }
|
|
54
|
+
:is(.form-group, .form-control):has(:is([aria-invalid="true"], .validator:user-invalid, .validate :invalid, .validate:invalid):not(:disabled)) > .validator-error,
|
|
55
|
+
:is(.form-group-error, .form-control.error) > .validator-error { display: block; visibility: visible; }
|
|
56
|
+
|
|
57
|
+
@media (forced-colors: active) {
|
|
58
|
+
:is(input, select, textarea):is(.input, .select, .textarea, .checkbox, .radio, .switch, .toggle, .file-input, .otp-input-field, .otp-code, .datepicker-input):focus-visible {
|
|
59
|
+
outline: 2px solid Highlight;
|
|
60
|
+
outline-offset: 2px;
|
|
61
|
+
}
|
|
62
|
+
input:is(.checkbox, .radio, .switch, .toggle) { appearance: auto; }
|
|
63
|
+
input:is(.checkbox, .radio, .switch, .toggle)::before,
|
|
64
|
+
input:is(.checkbox, .radio, .switch, .toggle)::after { content: none; }
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
1
69
|
/**
|
|
2
70
|
* Switch Component Styles
|
|
3
71
|
* DuskMoonUI - Material Design 3 inspired switch/toggle
|
|
@@ -7,6 +75,8 @@
|
|
|
7
75
|
*/
|
|
8
76
|
|
|
9
77
|
@layer components {
|
|
78
|
+
:where(.switch) { box-sizing: border-box; }
|
|
79
|
+
|
|
10
80
|
/* Base Switch - applied directly to input[type="checkbox"] */
|
|
11
81
|
.switch {
|
|
12
82
|
--switch-width: 3.25rem;
|
|
@@ -171,6 +171,8 @@
|
|
|
171
171
|
/* Selected Row */
|
|
172
172
|
.table-row-selected,
|
|
173
173
|
.table tr.selected,
|
|
174
|
+
.table-hover tbody tr:is(.selected, .table-row-selected),
|
|
175
|
+
.table-hover .table-row:is(.selected, .table-row-selected),
|
|
174
176
|
.table-selectable tbody tr.table-row-selected,
|
|
175
177
|
.table-selectable .table-row.table-row-selected,
|
|
176
178
|
.table-selectable tbody tr.selected,
|
|
@@ -179,6 +181,12 @@
|
|
|
179
181
|
color: var(--color-on-primary-container);
|
|
180
182
|
}
|
|
181
183
|
|
|
184
|
+
.table-numeric { text-align: end; font-variant-numeric: tabular-nums; }
|
|
185
|
+
.table-center { text-align: center; }
|
|
186
|
+
.table-actions { white-space: nowrap; text-align: end; }
|
|
187
|
+
.table-checkbox { inline-size: 1%; }
|
|
188
|
+
.table-sort-icon { display: inline-block; margin-inline-start: 0.25rem; }
|
|
189
|
+
|
|
182
190
|
/* Clickable Row */
|
|
183
191
|
.table-row-clickable,
|
|
184
192
|
.table tbody tr[data-href] {
|
|
@@ -1,9 +1,79 @@
|
|
|
1
|
+
/** Opt-in native presentation. Applications own errors, messages and announcements. */
|
|
2
|
+
@layer components {
|
|
3
|
+
/* Compatibility wrapper states are intentionally immediate. */
|
|
4
|
+
:is(.form-group-info, .form-control.info) { --dm-validation-color: var(--color-info); }
|
|
5
|
+
:is(.form-group-warning, .form-control.warning) { --dm-validation-color: var(--color-warning); }
|
|
6
|
+
:is(.form-group-success, .form-control.success) { --dm-validation-color: var(--color-success); }
|
|
7
|
+
|
|
8
|
+
:is(.input, .select, .textarea, .checkbox, .radio, .switch, .toggle, .file-input, .otp-input-field, .otp-code, .datepicker-input):is(.validate :valid, .validate:valid, .validator.validator-success:user-valid):not([aria-invalid="true"]):not(:where(.form-group-error *, .form-control.error *)):not(:disabled) {
|
|
9
|
+
--dm-validation-color: var(--color-success);
|
|
10
|
+
--dm-validation-content: var(--color-success-content);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:is(.input, .select, .textarea, .checkbox, .radio, .switch, .toggle, .file-input, .otp-input-field, .otp-code, .datepicker-input):is(.validate :invalid, .validate:invalid, .validator:user-invalid):not(:disabled) {
|
|
14
|
+
--dm-validation-color: var(--color-error);
|
|
15
|
+
--dm-validation-content: var(--color-error-content);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:is(.form-group-error, .form-control.error) {
|
|
19
|
+
--dm-validation-color: var(--color-error);
|
|
20
|
+
--dm-validation-content: var(--color-error-content);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Higher specificity than native states, including server-invalid + user-valid. */
|
|
24
|
+
:is(.input, .select, .textarea, .checkbox, .radio, .switch, .toggle, .file-input, .otp-input-field, .otp-code, .datepicker-input):is([aria-invalid="true"], .form-group-error *, .form-control.error *):not(:disabled):is(:focus, :not(:focus)) {
|
|
25
|
+
--dm-validation-color: var(--color-error);
|
|
26
|
+
--dm-validation-content: var(--color-error-content);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* This shared selector wins over filled/ghost focus and semantic modifiers. */
|
|
30
|
+
:is(.input, .select, .textarea, .checkbox, .radio, .switch, .toggle, .file-input, .otp-input-field, .otp-code, .datepicker-input):is([aria-invalid="true"], .validator:user-invalid, .validator.validator-success:user-valid, .validate :invalid, .validate :valid, .validate:invalid, .validate:valid, .form-group-error *, .form-group-success *, .form-group-warning *, .form-group-info *, .form-control.error *, .form-control.success *, .form-control.warning *, .form-control.info *):not(:disabled) {
|
|
31
|
+
color: var(--dm-validation-color);
|
|
32
|
+
border-color: var(--dm-validation-color);
|
|
33
|
+
--checkbox-color: var(--dm-validation-color);
|
|
34
|
+
--radio-color: var(--dm-validation-color);
|
|
35
|
+
--switch-color: var(--dm-validation-color);
|
|
36
|
+
--switch-content-color: var(--dm-validation-content, var(--color-primary-content));
|
|
37
|
+
--toggle-color: var(--dm-validation-color);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:is(.input, .select, .textarea, .checkbox, .radio, .switch, .toggle, .file-input, .otp-input-field, .otp-code, .datepicker-input):is([aria-invalid="true"], .validator:user-invalid, .validator.validator-success:user-valid, .validate :invalid, .validate :valid, .validate:invalid, .validate:valid, .form-group-error *, .form-group-success *, .form-group-warning *, .form-group-info *, .form-control.error *, .form-control.success *, .form-control.warning *, .form-control.info *):not(:disabled):focus {
|
|
41
|
+
border-color: var(--dm-validation-color);
|
|
42
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, var(--dm-validation-color) 20%, transparent);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:is(.form-group-error, .form-control.error) :is(.form-label, .label-text) { color: var(--color-error); }
|
|
46
|
+
:is(.form-group-success, .form-control.success) :is(.form-label, .label-text) { color: var(--color-success); }
|
|
47
|
+
:is(.form-group-warning, .form-control.warning) :is(.form-label, .label-text) { color: var(--color-warning); }
|
|
48
|
+
:is(.form-group-info, .form-control.info) :is(.form-label, .label-text) { color: var(--color-info); }
|
|
49
|
+
|
|
50
|
+
.validator-hint { font-size: 0.75rem; color: var(--color-on-surface-variant); }
|
|
51
|
+
.validator-error { display: none; font-size: 0.75rem; color: var(--color-error); }
|
|
52
|
+
/* Keep OTP actions stationary when blur reveals an error during a click. */
|
|
53
|
+
.otp-code ~ .validator-error { display: block; visibility: hidden; }
|
|
54
|
+
:is(.form-group, .form-control):has(:is([aria-invalid="true"], .validator:user-invalid, .validate :invalid, .validate:invalid):not(:disabled)) > .validator-error,
|
|
55
|
+
:is(.form-group-error, .form-control.error) > .validator-error { display: block; visibility: visible; }
|
|
56
|
+
|
|
57
|
+
@media (forced-colors: active) {
|
|
58
|
+
:is(input, select, textarea):is(.input, .select, .textarea, .checkbox, .radio, .switch, .toggle, .file-input, .otp-input-field, .otp-code, .datepicker-input):focus-visible {
|
|
59
|
+
outline: 2px solid Highlight;
|
|
60
|
+
outline-offset: 2px;
|
|
61
|
+
}
|
|
62
|
+
input:is(.checkbox, .radio, .switch, .toggle) { appearance: auto; }
|
|
63
|
+
input:is(.checkbox, .radio, .switch, .toggle)::before,
|
|
64
|
+
input:is(.checkbox, .radio, .switch, .toggle)::after { content: none; }
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
1
69
|
/**
|
|
2
70
|
* Textarea Component Styles
|
|
3
71
|
* DuskMoonUI - Material Design 3 inspired multi-line text input
|
|
4
72
|
*/
|
|
5
73
|
|
|
6
74
|
@layer components {
|
|
75
|
+
:where(.textarea) { box-sizing: border-box; }
|
|
76
|
+
|
|
7
77
|
/* ============================================
|
|
8
78
|
* TEXTAREA CONTAINER
|
|
9
79
|
* ============================================ */
|
|
@@ -217,6 +287,10 @@
|
|
|
217
287
|
* SIZE VARIANTS
|
|
218
288
|
* ============================================ */
|
|
219
289
|
|
|
290
|
+
.textarea-xs { min-height: 3rem; padding: 0.375rem 0.625rem; font-size: 0.75rem; line-height: 1rem; }
|
|
291
|
+
.textarea-md { min-height: 6rem; }
|
|
292
|
+
.textarea-bordered { border-color: var(--color-outline); }
|
|
293
|
+
|
|
220
294
|
.textarea-sm {
|
|
221
295
|
min-height: 4rem;
|
|
222
296
|
padding: 0.5rem 0.75rem;
|