svelte-multistyle-ui 0.0.1-alpha
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/LICENSE +201 -0
- package/README.md +183 -0
- package/dist/actions/portal.d.ts +20 -0
- package/dist/actions/portal.js +32 -0
- package/dist/components/Accordion.svelte +64 -0
- package/dist/components/Accordion.svelte.d.ts +19 -0
- package/dist/components/Alert.svelte +61 -0
- package/dist/components/Alert.svelte.d.ts +23 -0
- package/dist/components/Avatar.svelte +31 -0
- package/dist/components/Avatar.svelte.d.ts +21 -0
- package/dist/components/Breadcrumb.svelte +35 -0
- package/dist/components/Breadcrumb.svelte.d.ts +15 -0
- package/dist/components/Button.svelte +34 -0
- package/dist/components/Button.svelte.d.ts +25 -0
- package/dist/components/ButtonGroup.svelte +45 -0
- package/dist/components/ButtonGroup.svelte.d.ts +23 -0
- package/dist/components/Card.svelte +29 -0
- package/dist/components/Card.svelte.d.ts +21 -0
- package/dist/components/Carousel.svelte +111 -0
- package/dist/components/Carousel.svelte.d.ts +23 -0
- package/dist/components/Checkbox.svelte +64 -0
- package/dist/components/Checkbox.svelte.d.ts +21 -0
- package/dist/components/Chip.svelte +43 -0
- package/dist/components/Chip.svelte.d.ts +27 -0
- package/dist/components/Column.svelte +38 -0
- package/dist/components/Column.svelte.d.ts +21 -0
- package/dist/components/CommandPalette.svelte +207 -0
- package/dist/components/CommandPalette.svelte.d.ts +19 -0
- package/dist/components/DatePicker.svelte +365 -0
- package/dist/components/DatePicker.svelte.d.ts +31 -0
- package/dist/components/Divider.svelte +32 -0
- package/dist/components/Divider.svelte.d.ts +17 -0
- package/dist/components/Drawer.svelte +69 -0
- package/dist/components/Drawer.svelte.d.ts +21 -0
- package/dist/components/DropdownMenu.svelte +113 -0
- package/dist/components/DropdownMenu.svelte.d.ts +25 -0
- package/dist/components/FAB.svelte +27 -0
- package/dist/components/FAB.svelte.d.ts +19 -0
- package/dist/components/FileUpload.svelte +76 -0
- package/dist/components/FileUpload.svelte.d.ts +21 -0
- package/dist/components/Grid.svelte +51 -0
- package/dist/components/Grid.svelte.d.ts +27 -0
- package/dist/components/IconButton.svelte +39 -0
- package/dist/components/IconButton.svelte.d.ts +27 -0
- package/dist/components/Input.svelte +121 -0
- package/dist/components/Input.svelte.d.ts +69 -0
- package/dist/components/Modal.svelte +57 -0
- package/dist/components/Modal.svelte.d.ts +23 -0
- package/dist/components/MultiSelect.svelte +125 -0
- package/dist/components/MultiSelect.svelte.d.ts +23 -0
- package/dist/components/Pagination.svelte +52 -0
- package/dist/components/Pagination.svelte.d.ts +19 -0
- package/dist/components/Popover.svelte +114 -0
- package/dist/components/Popover.svelte.d.ts +23 -0
- package/dist/components/ProgressBar.svelte +72 -0
- package/dist/components/ProgressBar.svelte.d.ts +21 -0
- package/dist/components/Radio.svelte +39 -0
- package/dist/components/Radio.svelte.d.ts +21 -0
- package/dist/components/Rating.svelte +102 -0
- package/dist/components/Rating.svelte.d.ts +25 -0
- package/dist/components/Row.svelte +39 -0
- package/dist/components/Row.svelte.d.ts +23 -0
- package/dist/components/Select.svelte +80 -0
- package/dist/components/Select.svelte.d.ts +23 -0
- package/dist/components/Skeleton.svelte +26 -0
- package/dist/components/Skeleton.svelte.d.ts +19 -0
- package/dist/components/Slider.svelte +46 -0
- package/dist/components/Slider.svelte.d.ts +25 -0
- package/dist/components/Spinner.svelte +27 -0
- package/dist/components/Spinner.svelte.d.ts +15 -0
- package/dist/components/Stepper.svelte +34 -0
- package/dist/components/Stepper.svelte.d.ts +17 -0
- package/dist/components/Table.svelte +59 -0
- package/dist/components/Table.svelte.d.ts +19 -0
- package/dist/components/Tabs.svelte +32 -0
- package/dist/components/Tabs.svelte.d.ts +17 -0
- package/dist/components/Textarea.svelte +86 -0
- package/dist/components/Textarea.svelte.d.ts +31 -0
- package/dist/components/Toast.svelte +90 -0
- package/dist/components/Toast.svelte.d.ts +19 -0
- package/dist/components/Toggle.svelte +46 -0
- package/dist/components/Toggle.svelte.d.ts +21 -0
- package/dist/components/Tooltip.svelte +35 -0
- package/dist/components/Tooltip.svelte.d.ts +19 -0
- package/dist/components/accordion-styles.css +89 -0
- package/dist/components/alert-styles.css +66 -0
- package/dist/components/avatar-styles.css +50 -0
- package/dist/components/breadcrumb-styles.css +73 -0
- package/dist/components/button-styles.css +272 -0
- package/dist/components/buttongroup-styles.css +118 -0
- package/dist/components/card-styles.css +101 -0
- package/dist/components/carousel-styles.css +145 -0
- package/dist/components/charts/BarChart.svelte +5 -0
- package/dist/components/charts/BarChart.svelte.d.ts +29 -0
- package/dist/components/charts/BubbleChart.svelte +5 -0
- package/dist/components/charts/BubbleChart.svelte.d.ts +29 -0
- package/dist/components/charts/Chart.svelte +186 -0
- package/dist/components/charts/Chart.svelte.d.ts +37 -0
- package/dist/components/charts/ComboChart.svelte +5 -0
- package/dist/components/charts/ComboChart.svelte.d.ts +29 -0
- package/dist/components/charts/DoughnutChart.svelte +5 -0
- package/dist/components/charts/DoughnutChart.svelte.d.ts +29 -0
- package/dist/components/charts/LineChart.svelte +5 -0
- package/dist/components/charts/LineChart.svelte.d.ts +29 -0
- package/dist/components/charts/PieChart.svelte +5 -0
- package/dist/components/charts/PieChart.svelte.d.ts +29 -0
- package/dist/components/charts/PolarAreaChart.svelte +5 -0
- package/dist/components/charts/PolarAreaChart.svelte.d.ts +29 -0
- package/dist/components/charts/RadarChart.svelte +5 -0
- package/dist/components/charts/RadarChart.svelte.d.ts +29 -0
- package/dist/components/charts/ScatterChart.svelte +5 -0
- package/dist/components/charts/ScatterChart.svelte.d.ts +29 -0
- package/dist/components/charts/StackedBarChart.svelte +18 -0
- package/dist/components/charts/StackedBarChart.svelte.d.ts +29 -0
- package/dist/components/charts/StackedLineChart.svelte +21 -0
- package/dist/components/charts/StackedLineChart.svelte.d.ts +29 -0
- package/dist/components/charts/chart-config.d.ts +102 -0
- package/dist/components/charts/chart-config.js +616 -0
- package/dist/components/charts/chart-styles.css +159 -0
- package/dist/components/checkbox-styles.css +125 -0
- package/dist/components/chip-styles.css +107 -0
- package/dist/components/column-styles.css +6 -0
- package/dist/components/commandpalette-styles.css +162 -0
- package/dist/components/datepicker-styles.css +1011 -0
- package/dist/components/divider-styles.css +56 -0
- package/dist/components/drawer-styles.css +83 -0
- package/dist/components/dropdown-styles.css +128 -0
- package/dist/components/fab-styles.css +61 -0
- package/dist/components/fileupload-styles.css +125 -0
- package/dist/components/grid-styles.css +6 -0
- package/dist/components/iconbutton-styles.css +146 -0
- package/dist/components/input-styles.css +436 -0
- package/dist/components/modal-styles.css +103 -0
- package/dist/components/multiselect-styles.css +202 -0
- package/dist/components/pagination-styles.css +63 -0
- package/dist/components/popover-styles.css +122 -0
- package/dist/components/progressbar-styles.css +106 -0
- package/dist/components/radio-styles.css +120 -0
- package/dist/components/rating-styles.css +68 -0
- package/dist/components/row-styles.css +6 -0
- package/dist/components/select-styles.css +218 -0
- package/dist/components/skeleton-styles.css +48 -0
- package/dist/components/slider-styles.css +85 -0
- package/dist/components/spinner-styles.css +52 -0
- package/dist/components/stepper-styles.css +93 -0
- package/dist/components/table-styles.css +114 -0
- package/dist/components/tabs-styles.css +74 -0
- package/dist/components/textarea-styles.css +224 -0
- package/dist/components/theme-base.css +64 -0
- package/dist/components/theme.css +440 -0
- package/dist/components/toast-styles.css +106 -0
- package/dist/components/toggle-styles.css +131 -0
- package/dist/components/tooltip-styles.css +56 -0
- package/dist/config.d.ts +1 -0
- package/dist/config.js +9 -0
- package/dist/config.svelte.d.ts +25 -0
- package/dist/config.svelte.js +41 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.js +69 -0
- package/package.json +65 -0
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
/* ===== BASE ===== */
|
|
2
|
+
/* Theme-controlled: colors, border-width, shadow, radius. Style-controlled: shape. */
|
|
3
|
+
.s-input-wrapper {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
position: relative;
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
.s-input-wrapper input {
|
|
9
|
+
width: 100%;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
font-family: inherit;
|
|
12
|
+
outline: none;
|
|
13
|
+
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
14
|
+
}
|
|
15
|
+
.s-input-wrapper.disabled {
|
|
16
|
+
opacity: 0.45;
|
|
17
|
+
pointer-events: none;
|
|
18
|
+
}
|
|
19
|
+
.s-input-floating-label {
|
|
20
|
+
position: absolute;
|
|
21
|
+
pointer-events: none;
|
|
22
|
+
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
23
|
+
transform-origin: left center;
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* ===== ICONS ===== */
|
|
28
|
+
/* Icons are absolutely positioned 12px from the edge. The 1.2em is the icon's
|
|
29
|
+
own font-size (scales with the input font-size). The 8px is the gap between
|
|
30
|
+
the icon glyph and the input text — this gives a clean "margin" relationship. */
|
|
31
|
+
.s-input-wrapper {
|
|
32
|
+
--input-icon-gap: 8px;
|
|
33
|
+
}
|
|
34
|
+
.s-input-icon {
|
|
35
|
+
position: absolute;
|
|
36
|
+
top: 50%;
|
|
37
|
+
transform: translateY(-50%);
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
pointer-events: none;
|
|
42
|
+
z-index: 1;
|
|
43
|
+
font-size: 1.2em;
|
|
44
|
+
line-height: 1;
|
|
45
|
+
color: var(--t-text-hint);
|
|
46
|
+
}
|
|
47
|
+
.s-input-icon-start {
|
|
48
|
+
left: 12px;
|
|
49
|
+
}
|
|
50
|
+
.s-input-icon-end {
|
|
51
|
+
right: 12px;
|
|
52
|
+
}
|
|
53
|
+
/* Push input text away from the icon: icon-offset(12px) + icon-size(1.2em) + gap(8px) */
|
|
54
|
+
.has-icon-start input {
|
|
55
|
+
padding-left: calc(12px + 1.2em + var(--input-icon-gap)) !important;
|
|
56
|
+
}
|
|
57
|
+
.has-icon-end input {
|
|
58
|
+
padding-right: calc(12px + 1.2em + var(--input-icon-gap)) !important;
|
|
59
|
+
}
|
|
60
|
+
/* Also shift floating labels so they don't overlap with the start icon */
|
|
61
|
+
.has-icon-start .s-input-floating-label {
|
|
62
|
+
left: calc(12px + 1.2em + var(--input-icon-gap)) !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* ===== MATERIAL DESIGN — underline, rounded top, floating label ===== */
|
|
66
|
+
.s-input-material input {
|
|
67
|
+
padding: 24px 16px 8px;
|
|
68
|
+
font-size: 16px;
|
|
69
|
+
background: color-mix(in srgb, var(--t-primary) 4%, var(--t-surface));
|
|
70
|
+
color: var(--t-text);
|
|
71
|
+
border: none;
|
|
72
|
+
border-bottom: var(--t-border-width) solid var(--t-border);
|
|
73
|
+
border-radius: var(--t-card-radius) var(--t-card-radius) 0 0;
|
|
74
|
+
}
|
|
75
|
+
.s-input-material input:hover {
|
|
76
|
+
background: color-mix(in srgb, var(--t-primary) 8%, var(--t-surface));
|
|
77
|
+
border-bottom-color: var(--t-text);
|
|
78
|
+
}
|
|
79
|
+
.s-input-material.focused input {
|
|
80
|
+
border-bottom-color: var(--t-primary);
|
|
81
|
+
background: color-mix(in srgb, var(--t-primary) 10%, var(--t-surface));
|
|
82
|
+
}
|
|
83
|
+
.s-input-material .s-input-floating-label {
|
|
84
|
+
left: 16px;
|
|
85
|
+
top: 16px;
|
|
86
|
+
font-size: 16px;
|
|
87
|
+
color: var(--t-border);
|
|
88
|
+
}
|
|
89
|
+
.s-input-material.floated .s-input-floating-label {
|
|
90
|
+
transform: translateY(-12px) scale(0.75);
|
|
91
|
+
color: var(--t-primary);
|
|
92
|
+
}
|
|
93
|
+
.s-input-material:not(.focused).has-value .s-input-floating-label {
|
|
94
|
+
color: var(--t-border);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* ===== MATERIAL 3 — outlined, label on border ===== */
|
|
98
|
+
.s-input-material3 input {
|
|
99
|
+
padding: 24px 16px 8px;
|
|
100
|
+
font-size: 16px;
|
|
101
|
+
background: var(--t-surface);
|
|
102
|
+
color: var(--t-text);
|
|
103
|
+
border: var(--t-border-width) solid var(--t-border);
|
|
104
|
+
border-radius: var(--t-card-radius);
|
|
105
|
+
transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
|
|
106
|
+
}
|
|
107
|
+
.s-input-material3 input:hover {
|
|
108
|
+
border-color: var(--t-text);
|
|
109
|
+
}
|
|
110
|
+
.s-input-material3.focused input {
|
|
111
|
+
border-color: var(--t-primary);
|
|
112
|
+
border-width: calc(var(--t-border-width) + 0.5px);
|
|
113
|
+
padding: calc(24px - 0.5px) calc(16px - 0.5px) calc(8px - 0.5px);
|
|
114
|
+
}
|
|
115
|
+
.s-input-material3 .s-input-floating-label {
|
|
116
|
+
left: 14px;
|
|
117
|
+
top: 16px;
|
|
118
|
+
font-size: 16px;
|
|
119
|
+
color: var(--t-border);
|
|
120
|
+
background: transparent;
|
|
121
|
+
padding: 0 4px;
|
|
122
|
+
}
|
|
123
|
+
.s-input-material3.floated .s-input-floating-label {
|
|
124
|
+
transform: translateY(-24px) scale(0.75);
|
|
125
|
+
color: var(--t-primary);
|
|
126
|
+
background: var(--t-surface);
|
|
127
|
+
}
|
|
128
|
+
.s-input-material3:not(.focused).has-value .s-input-floating-label {
|
|
129
|
+
color: var(--t-border);
|
|
130
|
+
background: var(--t-surface);
|
|
131
|
+
transform: translateY(-24px) scale(0.75);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* ===== FLUENT UI — bottom accent expands from center ===== */
|
|
135
|
+
.s-input-fluent input {
|
|
136
|
+
padding: 24px 12px 6px;
|
|
137
|
+
font-size: 14px;
|
|
138
|
+
background: var(--t-surface);
|
|
139
|
+
color: var(--t-text);
|
|
140
|
+
border: var(--t-border-width) solid var(--t-border);
|
|
141
|
+
border-radius: var(--t-card-radius);
|
|
142
|
+
border-bottom: 2px solid var(--t-border);
|
|
143
|
+
}
|
|
144
|
+
.s-input-fluent input:hover {
|
|
145
|
+
border-color: color-mix(in srgb, var(--t-text) 50%, transparent);
|
|
146
|
+
border-bottom-color: color-mix(in srgb, var(--t-text) 50%, transparent);
|
|
147
|
+
}
|
|
148
|
+
.s-input-fluent .s-input-floating-label {
|
|
149
|
+
left: 12px;
|
|
150
|
+
top: 15px;
|
|
151
|
+
font-size: 14px;
|
|
152
|
+
color: var(--t-border);
|
|
153
|
+
}
|
|
154
|
+
.s-input-fluent.floated .s-input-floating-label {
|
|
155
|
+
transform: translateY(-9px) scale(0.78);
|
|
156
|
+
color: var(--t-primary);
|
|
157
|
+
font-weight: 600;
|
|
158
|
+
}
|
|
159
|
+
.s-input-fluent:not(.focused).has-value .s-input-floating-label {
|
|
160
|
+
color: var(--t-text);
|
|
161
|
+
font-weight: 400;
|
|
162
|
+
}
|
|
163
|
+
.s-input-fluent-border-indicator {
|
|
164
|
+
position: absolute;
|
|
165
|
+
bottom: 0;
|
|
166
|
+
left: 50%;
|
|
167
|
+
width: 0;
|
|
168
|
+
height: 2px;
|
|
169
|
+
background: var(--t-primary);
|
|
170
|
+
transition: all 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
|
|
171
|
+
transform: translateX(-50%);
|
|
172
|
+
border-radius: 1px;
|
|
173
|
+
}
|
|
174
|
+
.s-input-fluent.focused .s-input-fluent-border-indicator {
|
|
175
|
+
width: 100%;
|
|
176
|
+
}
|
|
177
|
+
.s-input-fluent.focused input {
|
|
178
|
+
border-bottom-color: transparent;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* ===== BRUTALIST UI ===== */
|
|
182
|
+
.s-input-brutalist input {
|
|
183
|
+
padding: 12px 14px;
|
|
184
|
+
font-size: 16px;
|
|
185
|
+
font-family: 'Courier New', monospace;
|
|
186
|
+
font-weight: bold;
|
|
187
|
+
background: var(--t-surface);
|
|
188
|
+
color: var(--t-text);
|
|
189
|
+
border: var(--t-border-width) solid var(--t-text);
|
|
190
|
+
border-radius: 0;
|
|
191
|
+
box-shadow: 4px 4px 0 var(--t-text);
|
|
192
|
+
transition: transform 0.12s ease, box-shadow 0.12s ease;
|
|
193
|
+
}
|
|
194
|
+
.s-input-brutalist input:hover {
|
|
195
|
+
transform: translate(-2px, -2px);
|
|
196
|
+
box-shadow: 6px 6px 0 var(--t-text);
|
|
197
|
+
}
|
|
198
|
+
.s-input-brutalist.focused input {
|
|
199
|
+
border-color: var(--t-primary);
|
|
200
|
+
box-shadow: 5px 5px 0 var(--t-primary);
|
|
201
|
+
transform: translate(-1px, -1px);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/* ===== PIXEL UI ===== */
|
|
205
|
+
.s-input-pixel input {
|
|
206
|
+
padding: 10px 12px;
|
|
207
|
+
font-size: 14px;
|
|
208
|
+
font-family: 'Courier New', monospace;
|
|
209
|
+
background: var(--t-surface);
|
|
210
|
+
color: var(--t-text);
|
|
211
|
+
border: var(--t-border-width) solid var(--t-primary);
|
|
212
|
+
border-radius: 0;
|
|
213
|
+
box-shadow: inset -3px -3px 0 rgba(0,0,0,0.25), inset 3px 3px 0 rgba(255,255,255,0.1);
|
|
214
|
+
image-rendering: pixelated;
|
|
215
|
+
transition: all 0.1s steps(3);
|
|
216
|
+
}
|
|
217
|
+
.s-input-pixel input:hover {
|
|
218
|
+
border-color: var(--t-secondary);
|
|
219
|
+
}
|
|
220
|
+
.s-input-pixel.focused input {
|
|
221
|
+
border-color: var(--t-secondary);
|
|
222
|
+
box-shadow: inset -3px -3px 0 rgba(0,0,0,0.25), inset 3px 3px 0 rgba(255,255,255,0.1), 0 0 0 3px var(--t-shadow);
|
|
223
|
+
color: var(--t-text);
|
|
224
|
+
}
|
|
225
|
+
.s-input-pixel input::placeholder { color: var(--t-text-muted); }
|
|
226
|
+
|
|
227
|
+
/* ===== NEON UI ===== */
|
|
228
|
+
.s-input-neon input {
|
|
229
|
+
padding: 12px 16px;
|
|
230
|
+
font-size: 15px;
|
|
231
|
+
background: var(--t-surface);
|
|
232
|
+
color: var(--t-text);
|
|
233
|
+
border: var(--t-border-width) solid var(--t-primary);
|
|
234
|
+
border-radius: var(--t-card-radius);
|
|
235
|
+
box-shadow: 0 0 5px var(--t-primary), inset 0 0 5px rgba(0, 0, 0, 0.5);
|
|
236
|
+
animation: neonPulse 3s ease-in-out infinite alternate;
|
|
237
|
+
transition: all 0.3s ease;
|
|
238
|
+
}
|
|
239
|
+
.s-input-neon input:hover {
|
|
240
|
+
box-shadow: 0 0 8px var(--t-primary), 0 0 16px var(--t-shadow), inset 0 0 8px rgba(0, 0, 0, 0.3);
|
|
241
|
+
}
|
|
242
|
+
.s-input-neon.focused input {
|
|
243
|
+
box-shadow: 0 0 10px var(--t-primary), 0 0 25px var(--t-primary), 0 0 50px var(--t-shadow), inset 0 0 10px rgba(0, 0, 0, 0.2);
|
|
244
|
+
animation: none;
|
|
245
|
+
}
|
|
246
|
+
.s-input-neon input::placeholder { color: var(--t-text-muted); }
|
|
247
|
+
|
|
248
|
+
@keyframes neonPulse {
|
|
249
|
+
0% { box-shadow: 0 0 4px var(--t-primary), inset 0 0 4px rgba(0, 0, 0, 0.5); }
|
|
250
|
+
100% { box-shadow: 0 0 8px var(--t-primary), 0 0 12px var(--t-shadow), inset 0 0 6px rgba(0, 0, 0, 0.4); }
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* ===== METRO ===== */
|
|
254
|
+
.s-input-metro input {
|
|
255
|
+
padding: 12px 14px;
|
|
256
|
+
font-size: 15px;
|
|
257
|
+
font-weight: 600;
|
|
258
|
+
background: var(--t-surface);
|
|
259
|
+
color: var(--t-text);
|
|
260
|
+
border: var(--t-border-width) solid var(--t-primary);
|
|
261
|
+
border-radius: 0;
|
|
262
|
+
}
|
|
263
|
+
.s-input-metro input:hover {
|
|
264
|
+
background: color-mix(in srgb, var(--t-primary) 5%, var(--t-surface));
|
|
265
|
+
}
|
|
266
|
+
.s-input-metro.focused input {
|
|
267
|
+
border-color: var(--t-primary);
|
|
268
|
+
background: color-mix(in srgb, var(--t-primary) 8%, var(--t-surface));
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/* ===== BOOTSTRAP ===== */
|
|
272
|
+
.s-input-bootstrap input {
|
|
273
|
+
padding: 24px 12px 6px;
|
|
274
|
+
font-size: 15px;
|
|
275
|
+
background: var(--t-surface);
|
|
276
|
+
color: var(--t-text);
|
|
277
|
+
border: var(--t-border-width) solid var(--t-border);
|
|
278
|
+
border-radius: 6px;
|
|
279
|
+
box-shadow: var(--t-shadow-xs);
|
|
280
|
+
}
|
|
281
|
+
.s-input-bootstrap input:hover {
|
|
282
|
+
border-color: color-mix(in srgb, var(--t-primary) 50%, var(--t-border));
|
|
283
|
+
}
|
|
284
|
+
.s-input-bootstrap.focused input {
|
|
285
|
+
border-color: var(--t-primary);
|
|
286
|
+
box-shadow: 0 0 0 3px var(--t-shadow);
|
|
287
|
+
}
|
|
288
|
+
.s-input-bootstrap .s-input-floating-label {
|
|
289
|
+
left: 12px;
|
|
290
|
+
top: 15px;
|
|
291
|
+
font-size: 15px;
|
|
292
|
+
color: var(--t-text-hint);
|
|
293
|
+
}
|
|
294
|
+
.s-input-bootstrap.floated .s-input-floating-label {
|
|
295
|
+
transform: translateY(-10px) scale(0.75);
|
|
296
|
+
color: var(--t-primary);
|
|
297
|
+
}
|
|
298
|
+
.s-input-bootstrap:not(.focused).has-value .s-input-floating-label {
|
|
299
|
+
color: var(--t-text-hint);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/* ===== CARTOON ===== */
|
|
303
|
+
.s-input-cartoon input {
|
|
304
|
+
padding: 12px 16px;
|
|
305
|
+
font-size: 15px;
|
|
306
|
+
font-weight: 700;
|
|
307
|
+
background: var(--t-surface);
|
|
308
|
+
color: var(--t-text);
|
|
309
|
+
border: var(--t-border-width) solid var(--t-text);
|
|
310
|
+
border-radius: 16px;
|
|
311
|
+
box-shadow: 4px 4px 0 var(--t-primary);
|
|
312
|
+
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
313
|
+
}
|
|
314
|
+
.s-input-cartoon input:hover {
|
|
315
|
+
transform: translate(-1px, -1px);
|
|
316
|
+
box-shadow: 5px 5px 0 var(--t-primary);
|
|
317
|
+
}
|
|
318
|
+
.s-input-cartoon.focused input {
|
|
319
|
+
border-color: var(--t-primary);
|
|
320
|
+
box-shadow: 5px 5px 0 var(--t-secondary);
|
|
321
|
+
transform: translate(-1px, -1px);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/* ===== ILLUSTRATION ===== */
|
|
325
|
+
.s-input-illustration input {
|
|
326
|
+
padding: 12px 16px;
|
|
327
|
+
font-size: 15px;
|
|
328
|
+
font-style: italic;
|
|
329
|
+
background: var(--t-surface);
|
|
330
|
+
color: var(--t-text);
|
|
331
|
+
border: var(--t-border-width) solid var(--t-text);
|
|
332
|
+
border-radius: 8px;
|
|
333
|
+
box-shadow: 3px 3px 0 var(--t-border);
|
|
334
|
+
transition: all 0.2s ease;
|
|
335
|
+
}
|
|
336
|
+
.s-input-illustration input:hover {
|
|
337
|
+
box-shadow: 4px 4px 0 var(--t-border);
|
|
338
|
+
transform: translate(-0.5px, -0.5px);
|
|
339
|
+
}
|
|
340
|
+
.s-input-illustration.focused input {
|
|
341
|
+
border-color: var(--t-primary);
|
|
342
|
+
box-shadow: 3px 3px 0 var(--t-primary);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/* ===== CARBON ===== */
|
|
346
|
+
.s-input-carbon input {
|
|
347
|
+
padding: 24px 16px 6px;
|
|
348
|
+
font-size: 14px;
|
|
349
|
+
font-family: 'IBM Plex Sans', sans-serif;
|
|
350
|
+
background: var(--t-surface);
|
|
351
|
+
color: var(--t-text);
|
|
352
|
+
border: var(--t-border-width) solid var(--t-border);
|
|
353
|
+
border-bottom-width: 2px;
|
|
354
|
+
border-radius: 0;
|
|
355
|
+
}
|
|
356
|
+
.s-input-carbon input:hover {
|
|
357
|
+
border-bottom-color: var(--t-text);
|
|
358
|
+
}
|
|
359
|
+
.s-input-carbon.focused input {
|
|
360
|
+
border-bottom-color: var(--t-primary);
|
|
361
|
+
}
|
|
362
|
+
.s-input-carbon .s-input-floating-label {
|
|
363
|
+
left: 16px;
|
|
364
|
+
top: 8px;
|
|
365
|
+
font-size: 12px;
|
|
366
|
+
font-family: 'IBM Plex Sans', sans-serif;
|
|
367
|
+
color: var(--t-text-hint);
|
|
368
|
+
transform: none;
|
|
369
|
+
}
|
|
370
|
+
.s-input-carbon.floated .s-input-floating-label {
|
|
371
|
+
transform: none;
|
|
372
|
+
color: var(--t-text-hint);
|
|
373
|
+
}
|
|
374
|
+
.s-input-carbon.focused .s-input-floating-label {
|
|
375
|
+
color: var(--t-primary);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/* ===== LIQUID GLASS ===== */
|
|
379
|
+
.s-input-liquid-glass {
|
|
380
|
+
background: rgba(255,255,255,0.1);
|
|
381
|
+
border: 1px solid rgba(255,255,255,0.2);
|
|
382
|
+
border-radius: 16px;
|
|
383
|
+
backdrop-filter: blur(24px) saturate(1.6);
|
|
384
|
+
-webkit-backdrop-filter: blur(24px) saturate(1.6);
|
|
385
|
+
box-shadow: var(--t-shadow-md), inset 0 1px 0 rgba(255,255,255,0.3);
|
|
386
|
+
transition: all 0.3s ease;
|
|
387
|
+
}
|
|
388
|
+
.s-input-liquid-glass:hover {
|
|
389
|
+
background: rgba(255,255,255,0.15);
|
|
390
|
+
border-color: rgba(255,255,255,0.3);
|
|
391
|
+
}
|
|
392
|
+
.s-input-liquid-glass.focused {
|
|
393
|
+
background: rgba(255,255,255,0.18);
|
|
394
|
+
border-color: var(--t-primary);
|
|
395
|
+
box-shadow: var(--t-shadow-lg), inset 0 1px 0 rgba(255,255,255,0.4), 0 0 20px var(--t-shadow);
|
|
396
|
+
}
|
|
397
|
+
.s-input-liquid-glass input {
|
|
398
|
+
padding: 12px 18px;
|
|
399
|
+
font-size: 15px;
|
|
400
|
+
background: transparent;
|
|
401
|
+
color: var(--t-text);
|
|
402
|
+
border: none;
|
|
403
|
+
border-radius: 16px;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/* ===== LEGACY iOS ===== */
|
|
407
|
+
.s-input-legacy-ios input {
|
|
408
|
+
padding: 24px 16px 8px;
|
|
409
|
+
font-size: 16px;
|
|
410
|
+
background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, var(--t-surface) 100%);
|
|
411
|
+
color: var(--t-text);
|
|
412
|
+
border: var(--t-border-width) solid var(--t-border);
|
|
413
|
+
border-radius: 10px;
|
|
414
|
+
box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), var(--t-shadow-xs);
|
|
415
|
+
transition: all 0.2s ease;
|
|
416
|
+
}
|
|
417
|
+
.s-input-legacy-ios input:hover {
|
|
418
|
+
border-color: color-mix(in srgb, var(--t-primary) 50%, var(--t-border));
|
|
419
|
+
}
|
|
420
|
+
.s-input-legacy-ios.focused input {
|
|
421
|
+
border-color: var(--t-primary);
|
|
422
|
+
box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 0 0 3px var(--t-shadow);
|
|
423
|
+
}
|
|
424
|
+
.s-input-legacy-ios .s-input-floating-label {
|
|
425
|
+
left: 16px;
|
|
426
|
+
top: 16px;
|
|
427
|
+
font-size: 16px;
|
|
428
|
+
color: var(--t-text-hint);
|
|
429
|
+
}
|
|
430
|
+
.s-input-legacy-ios.floated .s-input-floating-label {
|
|
431
|
+
transform: translateY(-10px) scale(0.75);
|
|
432
|
+
color: var(--t-primary);
|
|
433
|
+
}
|
|
434
|
+
.s-input-legacy-ios:not(.focused).has-value .s-input-floating-label {
|
|
435
|
+
color: var(--t-text-hint);
|
|
436
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/* ===== BASE ===== */
|
|
2
|
+
.s-modal-overlay {
|
|
3
|
+
position: fixed;
|
|
4
|
+
inset: 0;
|
|
5
|
+
background: rgba(0,0,0,0.5);
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
z-index: 1000;
|
|
10
|
+
padding: 20px;
|
|
11
|
+
}
|
|
12
|
+
.s-modal {
|
|
13
|
+
background: var(--t-surface);
|
|
14
|
+
color: var(--t-text);
|
|
15
|
+
border: var(--t-border-width) solid var(--t-border);
|
|
16
|
+
border-radius: var(--t-card-radius);
|
|
17
|
+
padding: 24px;
|
|
18
|
+
max-width: 480px;
|
|
19
|
+
width: 100%;
|
|
20
|
+
box-shadow: var(--t-shadow-xl);
|
|
21
|
+
position: relative;
|
|
22
|
+
}
|
|
23
|
+
.s-modal-header {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
gap: 12px;
|
|
28
|
+
}
|
|
29
|
+
.s-modal-title {
|
|
30
|
+
font-size: 18px;
|
|
31
|
+
font-weight: 600;
|
|
32
|
+
margin: 0;
|
|
33
|
+
}
|
|
34
|
+
.s-modal-close {
|
|
35
|
+
background: none;
|
|
36
|
+
border: none;
|
|
37
|
+
font-size: 20px;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
color: var(--t-text-muted);
|
|
40
|
+
transition: color 0.2s;
|
|
41
|
+
line-height: 1;
|
|
42
|
+
padding: 0;
|
|
43
|
+
}
|
|
44
|
+
.s-modal-close:hover { color: var(--t-text); }
|
|
45
|
+
.s-modal-body { margin-top: 12px; }
|
|
46
|
+
|
|
47
|
+
/* ===== SIZES ===== */
|
|
48
|
+
.s-modal-small { max-width: 320px; }
|
|
49
|
+
.s-modal-medium { max-width: 480px; }
|
|
50
|
+
.s-modal-large { max-width: 720px; }
|
|
51
|
+
.s-modal-full { max-width: 100%; width: 100%; }
|
|
52
|
+
|
|
53
|
+
/* ===== STYLE OVERRIDES ===== */
|
|
54
|
+
|
|
55
|
+
/* Brutalist */
|
|
56
|
+
.s-modal-brutalist { border: 3px solid var(--t-text); border-radius: 0; box-shadow: 8px 8px 0 var(--t-text); }
|
|
57
|
+
|
|
58
|
+
/* Pixel */
|
|
59
|
+
.s-modal-pixel { border: 3px solid var(--t-primary); border-radius: 0; }
|
|
60
|
+
|
|
61
|
+
/* Neon */
|
|
62
|
+
.s-modal-neon { border-color: var(--t-primary); box-shadow: 0 0 20px var(--t-primary), 0 0 60px var(--t-shadow); }
|
|
63
|
+
|
|
64
|
+
/* Metro */
|
|
65
|
+
.s-modal-metro { border-radius: 0; border: 2px solid var(--t-primary); box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
|
|
66
|
+
|
|
67
|
+
/* Bootstrap */
|
|
68
|
+
.s-modal-bootstrap { border-radius: 6px; border: 1px solid var(--t-border); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
|
|
69
|
+
|
|
70
|
+
/* Cartoon */
|
|
71
|
+
.s-modal-cartoon { border-radius: 16px; border: 3px solid var(--t-text); box-shadow: 8px 8px 0 var(--t-primary); }
|
|
72
|
+
|
|
73
|
+
/* Illustration */
|
|
74
|
+
.s-modal-illustration { border-radius: 8px; border: 2px solid var(--t-text); box-shadow: 5px 5px 0 var(--t-border); }
|
|
75
|
+
|
|
76
|
+
/* Carbon */
|
|
77
|
+
.s-modal-carbon { border-radius: 0; border: 1px solid var(--t-border); border-top: 3px solid var(--t-primary); font-family: 'IBM Plex Sans', sans-serif; }
|
|
78
|
+
|
|
79
|
+
/* Liquid Glass */
|
|
80
|
+
.s-modal-liquid-glass {
|
|
81
|
+
border-radius: 16px;
|
|
82
|
+
backdrop-filter: blur(24px) saturate(1.6);
|
|
83
|
+
background: rgba(0,0,0,0.35);
|
|
84
|
+
color: rgba(255,255,255,0.92);
|
|
85
|
+
border: 1px solid rgba(255,255,255,0.15);
|
|
86
|
+
box-shadow: 0 8px 32px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
|
|
87
|
+
}
|
|
88
|
+
.s-modal-liquid-glass .demo-label,
|
|
89
|
+
.s-modal-liquid-glass .text-muted,
|
|
90
|
+
.s-modal-liquid-glass .text-hint { color: rgba(255,255,255,0.55); }
|
|
91
|
+
|
|
92
|
+
/* Legacy iOS */
|
|
93
|
+
.s-modal-legacy-ios {
|
|
94
|
+
border-radius: 10px;
|
|
95
|
+
border: 1px solid var(--t-border);
|
|
96
|
+
background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, var(--t-surface) 100%);
|
|
97
|
+
box-shadow: 0 10px 40px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Borderless overlays — declared last to win source-order over base border. */
|
|
101
|
+
.s-modal-material,
|
|
102
|
+
.s-modal-material3,
|
|
103
|
+
.s-modal-fluent { border: none; }
|