@duskmoon-dev/core 1.19.5 → 1.19.7
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 +8 -6
- package/dist/components/bottom-navigation.css +127 -24
- package/dist/components/breadcrumbs.css +252 -0
- package/dist/components/dialog.css +29 -3
- package/dist/components/dropdown.css +91 -0
- package/dist/components/fab.css +182 -0
- package/dist/components/index.css +1167 -302
- package/dist/components/link.css +43 -0
- package/dist/components/megamenu.css +298 -0
- package/dist/components/menu.css +175 -0
- package/dist/components/modal.css +4 -3
- package/dist/components/navbar.css +283 -0
- package/dist/components/navigation.css +606 -202
- package/dist/components/nested-menu.css +19 -4
- package/dist/components/pagination.css +216 -0
- package/dist/components/stepper.css +33 -19
- package/dist/components/swap.css +116 -0
- package/dist/components/tabs.css +101 -0
- package/dist/esm/components/bottom-navigation.js +127 -24
- package/dist/esm/components/breadcrumbs.d.ts +5 -0
- package/dist/esm/components/breadcrumbs.js +261 -0
- package/dist/esm/components/dialog.js +29 -3
- package/dist/esm/components/dropdown.d.ts +5 -0
- package/dist/esm/components/dropdown.js +100 -0
- package/dist/esm/components/fab.d.ts +5 -0
- package/dist/esm/components/fab.js +191 -0
- package/dist/esm/components/link.d.ts +5 -0
- package/dist/esm/components/link.js +52 -0
- package/dist/esm/components/megamenu.d.ts +5 -0
- package/dist/esm/components/megamenu.js +307 -0
- package/dist/esm/components/menu.d.ts +5 -0
- package/dist/esm/components/menu.js +184 -0
- package/dist/esm/components/modal.js +4 -3
- package/dist/esm/components/navbar.d.ts +5 -0
- package/dist/esm/components/navbar.js +292 -0
- package/dist/esm/components/navigation.js +606 -202
- package/dist/esm/components/nested-menu.js +19 -4
- package/dist/esm/components/pagination.d.ts +5 -0
- package/dist/esm/components/pagination.js +225 -0
- package/dist/esm/components/stepper.js +33 -19
- package/dist/esm/components/swap.d.ts +5 -0
- package/dist/esm/components/swap.js +125 -0
- package/dist/esm/components/tabs.d.ts +5 -0
- package/dist/esm/components/tabs.js +110 -0
- package/dist/index.css +1167 -302
- package/dist/index.min.css +1 -1
- package/dist/standalone/duskmoonui-themes.css +1 -1
- package/dist/standalone/duskmoonui.css +1168 -303
- package/dist/standalone/duskmoonui.js +23 -7
- package/dist/standalone/duskmoonui.mjs +23 -7
- package/package.json +61 -1
|
@@ -89,8 +89,12 @@ export const css = `/**
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.nested-menu li.disabled > a,
|
|
92
|
-
.nested-menu li.disabled > button
|
|
92
|
+
.nested-menu li.disabled > button,
|
|
93
|
+
.nested-menu li > button:disabled,
|
|
94
|
+
.nested-menu li > a[aria-disabled="true"] {
|
|
93
95
|
color: var(--color-on-surface-variant);
|
|
96
|
+
opacity: 0.5;
|
|
97
|
+
cursor: not-allowed;
|
|
94
98
|
}
|
|
95
99
|
|
|
96
100
|
/* ============================================
|
|
@@ -140,7 +144,7 @@ export const css = `/**
|
|
|
140
144
|
.nested-menu summary::after {
|
|
141
145
|
content: "";
|
|
142
146
|
display: inline-block;
|
|
143
|
-
margin-
|
|
147
|
+
margin-inline-start: auto;
|
|
144
148
|
width: 0.375rem;
|
|
145
149
|
height: 0.375rem;
|
|
146
150
|
border-right: 1.5px solid currentColor;
|
|
@@ -155,11 +159,22 @@ export const css = `/**
|
|
|
155
159
|
transform: rotate(45deg);
|
|
156
160
|
}
|
|
157
161
|
|
|
162
|
+
.nested-menu:dir(rtl) summary::after {
|
|
163
|
+
border-right: 0;
|
|
164
|
+
border-left: 1.5px solid currentColor;
|
|
165
|
+
transform: rotate(135deg);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.nested-menu:dir(rtl) details[open] > summary::after {
|
|
169
|
+
transform: rotate(45deg);
|
|
170
|
+
}
|
|
171
|
+
|
|
158
172
|
/* Nested <ul> inside details — auto-indentation */
|
|
159
173
|
.nested-menu details > ul {
|
|
160
174
|
list-style: none;
|
|
161
175
|
margin: 0;
|
|
162
|
-
padding: 0.125rem
|
|
176
|
+
padding-block: 0.125rem;
|
|
177
|
+
padding-inline: 1rem 0;
|
|
163
178
|
display: flex;
|
|
164
179
|
flex-direction: column;
|
|
165
180
|
gap: 0.125rem;
|
|
@@ -249,7 +264,7 @@ export const css = `/**
|
|
|
249
264
|
}
|
|
250
265
|
|
|
251
266
|
.nested-menu-compact details > ul {
|
|
252
|
-
padding: 0 0
|
|
267
|
+
padding-inline: 0.75rem 0;
|
|
253
268
|
}
|
|
254
269
|
|
|
255
270
|
/* ============================================
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
// Auto-generated from pagination.css
|
|
2
|
+
export const css = `/**
|
|
3
|
+
* Pagination Component Styles
|
|
4
|
+
* DuskMoonUI - Material Design 3 inspired pagination
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
@layer components {
|
|
8
|
+
.pagination {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 0.25rem;
|
|
12
|
+
list-style: none;
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pagination-item,
|
|
18
|
+
.pagination-prev,
|
|
19
|
+
.pagination-next,
|
|
20
|
+
.pagination li > a,
|
|
21
|
+
.pagination li > button {
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
gap: 0.25rem;
|
|
26
|
+
min-width: 2.5rem;
|
|
27
|
+
height: 2.5rem;
|
|
28
|
+
padding: 0 0.75rem;
|
|
29
|
+
font-size: 0.875rem;
|
|
30
|
+
color: var(--color-on-surface);
|
|
31
|
+
background-color: transparent;
|
|
32
|
+
border: 1px solid var(--color-outline);
|
|
33
|
+
border-radius: var(--radius-sm);
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
transition: all 150ms ease-in-out;
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.pagination-item:hover,
|
|
40
|
+
.pagination-prev:hover,
|
|
41
|
+
.pagination-next:hover,
|
|
42
|
+
.pagination li > a:hover,
|
|
43
|
+
.pagination li > button:hover {
|
|
44
|
+
background-color: var(--color-surface-container);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.pagination-item-active,
|
|
48
|
+
.pagination-item-active-primary,
|
|
49
|
+
.pagination-item[aria-current="page"],
|
|
50
|
+
.pagination li > a.active,
|
|
51
|
+
.pagination li > button.active,
|
|
52
|
+
.pagination li > a[aria-current="page"],
|
|
53
|
+
.pagination li > button[aria-current="page"] {
|
|
54
|
+
background-color: var(--color-primary);
|
|
55
|
+
color: var(--color-primary-content);
|
|
56
|
+
border-color: var(--color-primary);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.pagination-item-active-secondary {
|
|
60
|
+
background-color: var(--color-secondary);
|
|
61
|
+
color: var(--color-secondary-content);
|
|
62
|
+
border-color: var(--color-secondary);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.pagination-item-active-tertiary {
|
|
66
|
+
background-color: var(--color-tertiary);
|
|
67
|
+
color: var(--color-tertiary-content);
|
|
68
|
+
border-color: var(--color-tertiary);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.pagination-item-active:hover,
|
|
72
|
+
.pagination-item-active-primary:hover,
|
|
73
|
+
.pagination-item[aria-current="page"]:hover,
|
|
74
|
+
.pagination li > a[aria-current="page"]:hover,
|
|
75
|
+
.pagination li > button[aria-current="page"]:hover {
|
|
76
|
+
background-color: color-mix(in oklch, var(--color-primary), black 10%);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.pagination-item:focus-visible,
|
|
80
|
+
.pagination-prev:focus-visible,
|
|
81
|
+
.pagination-next:focus-visible,
|
|
82
|
+
.pagination li > a:focus-visible,
|
|
83
|
+
.pagination li > button:focus-visible {
|
|
84
|
+
outline: none;
|
|
85
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.pagination-item:disabled,
|
|
89
|
+
.pagination-item-disabled,
|
|
90
|
+
.pagination-prev:disabled,
|
|
91
|
+
.pagination-next:disabled,
|
|
92
|
+
.pagination li > a:disabled,
|
|
93
|
+
.pagination li > button:disabled,
|
|
94
|
+
.pagination a[aria-disabled="true"] {
|
|
95
|
+
opacity: 0.5;
|
|
96
|
+
cursor: not-allowed;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.pagination-ellipsis {
|
|
100
|
+
display: inline-flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
min-width: 2.5rem;
|
|
104
|
+
height: 2.5rem;
|
|
105
|
+
color: var(--color-on-surface-variant);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.pagination-ellipsis::before {
|
|
109
|
+
content: '…';
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.pagination-info {
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: row;
|
|
115
|
+
align-items: center;
|
|
116
|
+
gap: 0.5rem;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.pagination-info-text {
|
|
120
|
+
font-size: 0.875rem;
|
|
121
|
+
color: var(--color-on-surface-variant);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.pagination-input {
|
|
125
|
+
display: inline-flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
gap: 0.5rem;
|
|
128
|
+
font-size: 0.875rem;
|
|
129
|
+
color: var(--color-on-surface-variant);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.pagination-input input {
|
|
133
|
+
width: 3.5rem;
|
|
134
|
+
padding: 0.375rem 0.5rem;
|
|
135
|
+
font-size: 0.875rem;
|
|
136
|
+
text-align: center;
|
|
137
|
+
color: var(--color-on-surface);
|
|
138
|
+
background-color: var(--color-surface);
|
|
139
|
+
border: 1px solid var(--color-outline);
|
|
140
|
+
border-radius: var(--radius-xs);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.pagination-input input:focus {
|
|
144
|
+
outline: none;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.pagination-input input:focus-visible {
|
|
148
|
+
border-color: var(--color-primary);
|
|
149
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.pagination-outlined .pagination-item,
|
|
153
|
+
.pagination-outlined .pagination-prev,
|
|
154
|
+
.pagination-outlined .pagination-next {
|
|
155
|
+
border: 1px solid var(--color-outline);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.pagination-tonal .pagination-item-active,
|
|
159
|
+
.pagination-tonal .pagination-item-active-primary {
|
|
160
|
+
background-color: var(--color-primary-container);
|
|
161
|
+
color: var(--color-on-primary-container);
|
|
162
|
+
border-color: var(--color-primary-container);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.pagination-sm .pagination-item,
|
|
166
|
+
.pagination-sm .pagination-prev,
|
|
167
|
+
.pagination-sm .pagination-next {
|
|
168
|
+
min-width: 2rem;
|
|
169
|
+
height: 2rem;
|
|
170
|
+
padding: 0 0.5rem;
|
|
171
|
+
font-size: 0.75rem;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.pagination-lg .pagination-item,
|
|
175
|
+
.pagination-lg .pagination-prev,
|
|
176
|
+
.pagination-lg .pagination-next {
|
|
177
|
+
min-width: 3rem;
|
|
178
|
+
height: 3rem;
|
|
179
|
+
padding: 0 1rem;
|
|
180
|
+
font-size: 1rem;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.pagination-compact {
|
|
184
|
+
gap: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.pagination-compact .pagination-item,
|
|
188
|
+
.pagination-compact .pagination-prev,
|
|
189
|
+
.pagination-compact .pagination-next {
|
|
190
|
+
border-radius: 0;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.pagination-compact .pagination-item:first-child,
|
|
194
|
+
.pagination-compact .pagination-prev {
|
|
195
|
+
border-start-start-radius: var(--radius-sm);
|
|
196
|
+
border-end-start-radius: var(--radius-sm);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.pagination-compact .pagination-item:last-child,
|
|
200
|
+
.pagination-compact .pagination-next {
|
|
201
|
+
border-start-end-radius: var(--radius-sm);
|
|
202
|
+
border-end-end-radius: var(--radius-sm);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.pagination-responsive {
|
|
206
|
+
flex-wrap: wrap;
|
|
207
|
+
justify-content: center;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@media (prefers-reduced-motion: reduce) {
|
|
211
|
+
.pagination-item,
|
|
212
|
+
.pagination-prev,
|
|
213
|
+
.pagination-next {
|
|
214
|
+
transition: none;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
`;
|
|
219
|
+
|
|
220
|
+
const sheet = typeof CSSStyleSheet !== 'undefined' ? new CSSStyleSheet() : null;
|
|
221
|
+
if (sheet) {
|
|
222
|
+
sheet.replaceSync(css);
|
|
223
|
+
}
|
|
224
|
+
export const styles = sheet;
|
|
225
|
+
export default sheet;
|
|
@@ -25,7 +25,7 @@ export const css = `/**
|
|
|
25
25
|
.stepper-step-connector {
|
|
26
26
|
position: absolute;
|
|
27
27
|
top: 1.25rem;
|
|
28
|
-
|
|
28
|
+
inset-inline-start: calc(50% + 1.25rem);
|
|
29
29
|
width: calc(100% - 2.5rem);
|
|
30
30
|
height: 2px;
|
|
31
31
|
background-color: var(--color-outline-variant);
|
|
@@ -50,10 +50,13 @@ export const css = `/**
|
|
|
50
50
|
background: none;
|
|
51
51
|
border: none;
|
|
52
52
|
padding: 0;
|
|
53
|
+
color: inherit;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
.stepper-step-button:focus-visible {
|
|
56
|
-
outline:
|
|
57
|
+
outline: 2px solid currentColor;
|
|
58
|
+
outline-offset: 0.25rem;
|
|
59
|
+
border-radius: var(--radius-sm);
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
.stepper-step-button:focus-visible .stepper-step-icon {
|
|
@@ -77,7 +80,8 @@ export const css = `/**
|
|
|
77
80
|
transition: background-color 150ms ease-in-out, border-color 150ms ease-in-out, color 150ms ease-in-out;
|
|
78
81
|
}
|
|
79
82
|
|
|
80
|
-
.stepper-step-active .stepper-step-icon
|
|
83
|
+
.stepper-step-active .stepper-step-icon,
|
|
84
|
+
.stepper-step[aria-current="step"] .stepper-step-icon {
|
|
81
85
|
background-color: var(--color-primary);
|
|
82
86
|
border-color: var(--color-primary);
|
|
83
87
|
color: var(--color-primary-content);
|
|
@@ -108,7 +112,8 @@ export const css = `/**
|
|
|
108
112
|
text-align: center;
|
|
109
113
|
}
|
|
110
114
|
|
|
111
|
-
.stepper-step-active .stepper-step-label
|
|
115
|
+
.stepper-step-active .stepper-step-label,
|
|
116
|
+
.stepper-step[aria-current="step"] .stepper-step-label {
|
|
112
117
|
color: var(--color-primary);
|
|
113
118
|
}
|
|
114
119
|
|
|
@@ -119,14 +124,14 @@ export const css = `/**
|
|
|
119
124
|
.stepper-step-description {
|
|
120
125
|
font-size: 0.75rem;
|
|
121
126
|
color: var(--color-on-surface-variant);
|
|
122
|
-
margin-
|
|
127
|
+
margin-block-start: 0.125rem;
|
|
123
128
|
text-align: center;
|
|
124
129
|
}
|
|
125
130
|
|
|
126
131
|
/* Step Content (for vertical stepper) */
|
|
127
132
|
.stepper-step-content {
|
|
128
|
-
margin-
|
|
129
|
-
padding:
|
|
133
|
+
margin-block-start: 1.5rem;
|
|
134
|
+
padding-inline: 1rem;
|
|
130
135
|
width: 100%;
|
|
131
136
|
}
|
|
132
137
|
|
|
@@ -136,7 +141,7 @@ export const css = `/**
|
|
|
136
141
|
display: block;
|
|
137
142
|
font-size: 0.6875rem;
|
|
138
143
|
color: var(--color-on-surface-variant);
|
|
139
|
-
margin-
|
|
144
|
+
margin-block-start: 0.125rem;
|
|
140
145
|
}
|
|
141
146
|
|
|
142
147
|
/* Vertical Stepper */
|
|
@@ -153,7 +158,7 @@ export const css = `/**
|
|
|
153
158
|
|
|
154
159
|
.stepper-vertical .stepper-step-connector {
|
|
155
160
|
top: 2.5rem;
|
|
156
|
-
|
|
161
|
+
inset-inline-start: 1.25rem;
|
|
157
162
|
width: 2px;
|
|
158
163
|
height: calc(100% - 2.5rem);
|
|
159
164
|
transform: translateX(-50%);
|
|
@@ -166,18 +171,19 @@ export const css = `/**
|
|
|
166
171
|
|
|
167
172
|
.stepper-vertical .stepper-step-label,
|
|
168
173
|
.stepper-vertical .stepper-step-description {
|
|
169
|
-
text-align:
|
|
170
|
-
margin-
|
|
174
|
+
text-align: start;
|
|
175
|
+
margin-inline-start: 1rem;
|
|
171
176
|
}
|
|
172
177
|
|
|
173
178
|
.stepper-vertical .stepper-step-content {
|
|
174
|
-
margin-
|
|
175
|
-
margin-
|
|
176
|
-
padding: 1rem
|
|
179
|
+
margin-block-start: 0;
|
|
180
|
+
margin-inline-start: 3.5rem;
|
|
181
|
+
padding-block: 1rem 1.5rem;
|
|
177
182
|
}
|
|
178
183
|
|
|
179
184
|
/* Color Variants */
|
|
180
185
|
.stepper-secondary .stepper-step-active .stepper-step-icon,
|
|
186
|
+
.stepper-secondary .stepper-step[aria-current="step"] .stepper-step-icon,
|
|
181
187
|
.stepper-secondary .stepper-step-completed .stepper-step-icon {
|
|
182
188
|
background-color: var(--color-secondary);
|
|
183
189
|
border-color: var(--color-secondary);
|
|
@@ -188,11 +194,13 @@ export const css = `/**
|
|
|
188
194
|
background-color: var(--color-secondary);
|
|
189
195
|
}
|
|
190
196
|
|
|
191
|
-
.stepper-secondary .stepper-step-active .stepper-step-label
|
|
197
|
+
.stepper-secondary .stepper-step-active .stepper-step-label,
|
|
198
|
+
.stepper-secondary .stepper-step[aria-current="step"] .stepper-step-label {
|
|
192
199
|
color: var(--color-secondary);
|
|
193
200
|
}
|
|
194
201
|
|
|
195
202
|
.stepper-tertiary .stepper-step-active .stepper-step-icon,
|
|
203
|
+
.stepper-tertiary .stepper-step[aria-current="step"] .stepper-step-icon,
|
|
196
204
|
.stepper-tertiary .stepper-step-completed .stepper-step-icon {
|
|
197
205
|
background-color: var(--color-tertiary);
|
|
198
206
|
border-color: var(--color-tertiary);
|
|
@@ -203,7 +211,8 @@ export const css = `/**
|
|
|
203
211
|
background-color: var(--color-tertiary);
|
|
204
212
|
}
|
|
205
213
|
|
|
206
|
-
.stepper-tertiary .stepper-step-active .stepper-step-label
|
|
214
|
+
.stepper-tertiary .stepper-step-active .stepper-step-label,
|
|
215
|
+
.stepper-tertiary .stepper-step[aria-current="step"] .stepper-step-label {
|
|
207
216
|
color: var(--color-tertiary);
|
|
208
217
|
}
|
|
209
218
|
|
|
@@ -216,7 +225,7 @@ export const css = `/**
|
|
|
216
225
|
|
|
217
226
|
.stepper-sm .stepper-step-connector {
|
|
218
227
|
top: 1rem;
|
|
219
|
-
|
|
228
|
+
inset-inline-start: calc(50% + 1rem);
|
|
220
229
|
width: calc(100% - 2rem);
|
|
221
230
|
}
|
|
222
231
|
|
|
@@ -237,14 +246,14 @@ export const css = `/**
|
|
|
237
246
|
|
|
238
247
|
.stepper-lg .stepper-step-connector {
|
|
239
248
|
top: 1.5rem;
|
|
240
|
-
|
|
249
|
+
inset-inline-start: calc(50% + 1.5rem);
|
|
241
250
|
width: calc(100% - 3rem);
|
|
242
251
|
}
|
|
243
252
|
|
|
244
253
|
/* Alternative Label Positioning */
|
|
245
254
|
.stepper-alt-labels .stepper-step-connector {
|
|
246
255
|
top: 1.25rem;
|
|
247
|
-
|
|
256
|
+
inset-inline-start: calc(50% + 2rem);
|
|
248
257
|
width: calc(100% - 4rem);
|
|
249
258
|
}
|
|
250
259
|
|
|
@@ -299,6 +308,11 @@ export const css = `/**
|
|
|
299
308
|
opacity: 0.7;
|
|
300
309
|
}
|
|
301
310
|
|
|
311
|
+
.stepper-step-button:disabled {
|
|
312
|
+
cursor: not-allowed;
|
|
313
|
+
opacity: 0.7;
|
|
314
|
+
}
|
|
315
|
+
|
|
302
316
|
/* Icon Stepper */
|
|
303
317
|
.stepper-icons .stepper-step-icon {
|
|
304
318
|
font-size: 1.25rem;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// Auto-generated from swap.css
|
|
2
|
+
export const css = `/**
|
|
3
|
+
* Swap Component Styles
|
|
4
|
+
* Displays one of two non-interactive state indicators.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
@layer components {
|
|
8
|
+
.swap {
|
|
9
|
+
position: relative;
|
|
10
|
+
display: inline-grid;
|
|
11
|
+
place-items: center;
|
|
12
|
+
vertical-align: middle;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
user-select: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.swap-input {
|
|
18
|
+
position: absolute;
|
|
19
|
+
inset: 0;
|
|
20
|
+
z-index: 1;
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
margin: 0;
|
|
24
|
+
opacity: 0;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.swap-on,
|
|
29
|
+
.swap-off {
|
|
30
|
+
grid-area: 1 / 1;
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
inline-size: max-content;
|
|
35
|
+
max-inline-size: 100%;
|
|
36
|
+
transition: opacity 150ms ease-out, transform 150ms ease-out;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.swap-on {
|
|
40
|
+
opacity: 0;
|
|
41
|
+
visibility: hidden;
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.swap-off {
|
|
46
|
+
opacity: 1;
|
|
47
|
+
visibility: visible;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.swap-input:checked ~ .swap-on,
|
|
52
|
+
.swap[aria-pressed="true"] > .swap-on {
|
|
53
|
+
opacity: 1;
|
|
54
|
+
visibility: visible;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.swap-input:checked ~ .swap-off,
|
|
58
|
+
.swap[aria-pressed="true"] > .swap-off {
|
|
59
|
+
opacity: 0;
|
|
60
|
+
visibility: hidden;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.swap:focus-visible,
|
|
64
|
+
.swap:has(.swap-input:focus-visible) {
|
|
65
|
+
outline: none;
|
|
66
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
67
|
+
border-radius: var(--radius-sm);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.swap:disabled,
|
|
71
|
+
.swap:has(.swap-input:disabled) {
|
|
72
|
+
cursor: not-allowed;
|
|
73
|
+
opacity: 0.5;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.swap-input:disabled {
|
|
77
|
+
cursor: not-allowed;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.swap-rotate .swap-on {
|
|
81
|
+
transform: rotate(-90deg) scale(0.8);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.swap-rotate .swap-off {
|
|
85
|
+
transform: rotate(0deg) scale(1);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.swap-rotate .swap-input:checked ~ .swap-on,
|
|
89
|
+
.swap-rotate[aria-pressed="true"] > .swap-on {
|
|
90
|
+
transform: rotate(0deg) scale(1);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.swap-rotate .swap-input:checked ~ .swap-off,
|
|
94
|
+
.swap-rotate[aria-pressed="true"] > .swap-off {
|
|
95
|
+
transform: rotate(90deg) scale(0.8);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* Presentation-only override. It intentionally wins over semantic state. */
|
|
99
|
+
.swap.swap-active > .swap-on {
|
|
100
|
+
opacity: 1;
|
|
101
|
+
visibility: visible;
|
|
102
|
+
transform: rotate(0deg) scale(1);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.swap.swap-active > .swap-off {
|
|
106
|
+
opacity: 0;
|
|
107
|
+
visibility: hidden;
|
|
108
|
+
transform: rotate(90deg) scale(0.8);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@media (prefers-reduced-motion: reduce) {
|
|
112
|
+
.swap-on,
|
|
113
|
+
.swap-off {
|
|
114
|
+
transition: none;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
`;
|
|
119
|
+
|
|
120
|
+
const sheet = typeof CSSStyleSheet !== 'undefined' ? new CSSStyleSheet() : null;
|
|
121
|
+
if (sheet) {
|
|
122
|
+
sheet.replaceSync(css);
|
|
123
|
+
}
|
|
124
|
+
export const styles = sheet;
|
|
125
|
+
export default sheet;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// Auto-generated from tabs.css
|
|
2
|
+
export const css = `/** DuskMoonUI tabs and tab-panel presentation. Interaction remains application-owned. */
|
|
3
|
+
@layer components {
|
|
4
|
+
.tabs {
|
|
5
|
+
display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.25rem;
|
|
6
|
+
border-block-end: 1px solid var(--color-outline); color: var(--color-on-surface);
|
|
7
|
+
}
|
|
8
|
+
.tab {
|
|
9
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
|
|
10
|
+
min-width: 0; padding: 0.75rem 1.25rem; font: inherit; font-size: 0.875rem;
|
|
11
|
+
font-weight: 500; line-height: 1.25rem; color: var(--color-on-surface-variant);
|
|
12
|
+
text-decoration: none; white-space: nowrap; background-color: transparent;
|
|
13
|
+
border: none; border-block-end: 2px solid transparent; cursor: pointer;
|
|
14
|
+
transition: background-color 150ms ease-in-out, color 150ms ease-in-out,
|
|
15
|
+
border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
|
|
16
|
+
position: relative; margin-block-end: -1px;
|
|
17
|
+
}
|
|
18
|
+
.tab:hover:not(:disabled, [aria-disabled="true"]) {
|
|
19
|
+
color: var(--color-on-surface); background-color: var(--color-surface-container);
|
|
20
|
+
}
|
|
21
|
+
.tab:focus-visible {
|
|
22
|
+
outline: 2px solid currentColor; outline-offset: -2px;
|
|
23
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent); z-index: 1;
|
|
24
|
+
}
|
|
25
|
+
.tab:disabled,
|
|
26
|
+
.tab[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
|
|
27
|
+
.tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) {
|
|
28
|
+
color: var(--color-primary); border-block-end-color: var(--color-primary);
|
|
29
|
+
}
|
|
30
|
+
.tab.tab-active-secondary { color: var(--color-secondary); border-block-end-color: var(--color-secondary); }
|
|
31
|
+
.tab.tab-active-tertiary { color: var(--color-tertiary); border-block-end-color: var(--color-tertiary); }
|
|
32
|
+
|
|
33
|
+
.tabs-pill,
|
|
34
|
+
.tabs-tonal,
|
|
35
|
+
.tabs-boxed { padding: 0.25rem; border: none; border-radius: var(--radius-lg); }
|
|
36
|
+
.tabs-pill .tab,
|
|
37
|
+
.tabs-tonal .tab,
|
|
38
|
+
.tabs-boxed .tab { margin-block-end: 0; border: none; border-radius: var(--radius-lg); }
|
|
39
|
+
.tabs-pill .tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) {
|
|
40
|
+
color: var(--color-primary-content); background-color: var(--color-primary);
|
|
41
|
+
}
|
|
42
|
+
.tabs-pill .tab.tab-active-secondary { color: var(--color-secondary-content); background-color: var(--color-secondary); }
|
|
43
|
+
.tabs-pill .tab.tab-active-tertiary { color: var(--color-tertiary-content); background-color: var(--color-tertiary); }
|
|
44
|
+
.tabs-tonal .tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) {
|
|
45
|
+
color: var(--color-on-primary-container); background-color: var(--color-primary-container);
|
|
46
|
+
}
|
|
47
|
+
.tabs-tonal .tab.tab-active-secondary { color: var(--color-on-secondary-container); background-color: var(--color-secondary-container); }
|
|
48
|
+
.tabs-tonal .tab.tab-active-tertiary { color: var(--color-on-tertiary-container); background-color: var(--color-tertiary-container); }
|
|
49
|
+
.tabs-boxed { background-color: var(--color-surface-container); border-radius: var(--radius-sm); }
|
|
50
|
+
.tabs-boxed .tab { border-radius: var(--radius-xs); }
|
|
51
|
+
.tabs-boxed .tab:is(.tab-active, .tab-active-primary, .tab-active-secondary, .tab-active-tertiary, [aria-selected="true"], [aria-current="page"]) {
|
|
52
|
+
color: var(--color-on-surface); background-color: var(--color-surface); box-shadow: var(--shadow-xs);
|
|
53
|
+
}
|
|
54
|
+
.tabs-lifted { border: none; }
|
|
55
|
+
.tabs-lifted .tab {
|
|
56
|
+
border: 1px solid transparent; border-block-end: none;
|
|
57
|
+
border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-block-end: -1px;
|
|
58
|
+
}
|
|
59
|
+
.tabs-lifted .tab:is(.tab-active, .tab-active-primary, .tab-active-secondary, .tab-active-tertiary, [aria-selected="true"], [aria-current="page"]) {
|
|
60
|
+
background-color: var(--color-surface); border-color: var(--color-outline);
|
|
61
|
+
border-block-end-color: var(--color-surface);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.tabs-vertical {
|
|
65
|
+
flex-direction: column; flex-wrap: nowrap; align-items: stretch;
|
|
66
|
+
border-block-end: none; border-inline-end: 1px solid var(--color-outline);
|
|
67
|
+
}
|
|
68
|
+
.tabs-vertical .tab {
|
|
69
|
+
justify-content: flex-start; width: 100%; margin: 0;
|
|
70
|
+
border-block-end: none; border-inline-end: 2px solid transparent;
|
|
71
|
+
}
|
|
72
|
+
.tabs-vertical .tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) { border-inline-end-color: var(--color-primary); }
|
|
73
|
+
.tabs-vertical .tab.tab-active-secondary { border-inline-end-color: var(--color-secondary); }
|
|
74
|
+
.tabs-vertical .tab.tab-active-tertiary { border-inline-end-color: var(--color-tertiary); }
|
|
75
|
+
.tabs-scrollable {
|
|
76
|
+
flex-wrap: nowrap; max-width: 100%; overflow-x: auto; overflow-y: hidden;
|
|
77
|
+
overscroll-behavior-inline: contain; scrollbar-width: thin;
|
|
78
|
+
}
|
|
79
|
+
.tabs-full .tab { flex: 1 1 0; }
|
|
80
|
+
.tabs-center { justify-content: center; }
|
|
81
|
+
.tabs-end { justify-content: flex-end; }
|
|
82
|
+
|
|
83
|
+
.tabs-sm .tab,
|
|
84
|
+
.tab-sm { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
|
|
85
|
+
.tabs-md .tab { padding: 0.75rem 1.25rem; font-size: 0.875rem; }
|
|
86
|
+
.tabs-lg .tab,
|
|
87
|
+
.tab-lg { padding: 1rem 1.5rem; font-size: 1rem; }
|
|
88
|
+
.tab-xs { padding: 0.375rem 0.625rem; font-size: 0.75rem; }
|
|
89
|
+
.tab-icon { flex: 0 0 auto; font-size: 1.25em; }
|
|
90
|
+
.tab-icon-only { aspect-ratio: 1; padding-inline: 0.75rem; }
|
|
91
|
+
.tab-badge {
|
|
92
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
93
|
+
min-width: 1.25rem; min-height: 1.25rem; padding-inline: 0.375rem;
|
|
94
|
+
font-size: 0.6875rem; font-weight: 600; color: var(--color-error-content);
|
|
95
|
+
background-color: var(--color-error); border-radius: var(--radius-full);
|
|
96
|
+
}
|
|
97
|
+
.tab-panel { display: none; padding: 1rem; color: var(--color-on-surface); }
|
|
98
|
+
.tab-panel:is(.tab-panel-show, [data-active="true"]):not([hidden]) { display: block; }
|
|
99
|
+
.tab-panel[hidden] { display: none !important; }
|
|
100
|
+
|
|
101
|
+
@media (prefers-reduced-motion: reduce) { .tab { scroll-behavior: auto; transition: none; } }
|
|
102
|
+
}
|
|
103
|
+
`;
|
|
104
|
+
|
|
105
|
+
const sheet = typeof CSSStyleSheet !== 'undefined' ? new CSSStyleSheet() : null;
|
|
106
|
+
if (sheet) {
|
|
107
|
+
sheet.replaceSync(css);
|
|
108
|
+
}
|
|
109
|
+
export const styles = sheet;
|
|
110
|
+
export default sheet;
|