lutra 0.1.69 → 0.1.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Callout.svelte +85 -0
- package/dist/components/Callout.svelte.d.ts +14 -0
- package/dist/components/DataList.svelte +111 -0
- package/dist/components/DataList.svelte.d.ts +10 -0
- package/dist/components/DataListTypes.d.ts +14 -0
- package/dist/components/DataListTypes.js +1 -0
- package/dist/components/IconButton.svelte +12 -4
- package/dist/components/IconButton.svelte.d.ts +2 -0
- package/dist/components/Layout.svelte +1 -1
- package/dist/components/Popover.svelte +4 -1
- package/dist/components/Tabs.svelte +13 -1
- package/dist/components/Tabs.svelte.d.ts +2 -0
- package/dist/components/Tag.svelte +11 -3
- package/dist/components/Tag.svelte.d.ts +2 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +3 -0
- package/dist/css/1-props.css +157 -136
- package/dist/css/2-init.css +39 -23
- package/dist/css/themes/DefaultTheme.css +10 -0
- package/dist/form/Button.svelte +4 -4
- package/dist/form/Button.svelte.d.ts +1 -1
- package/dist/form/FieldContent.svelte +11 -3
- package/dist/form/FieldContent.svelte.d.ts +2 -0
- package/dist/form/FieldGroup.svelte +84 -0
- package/dist/form/FieldGroup.svelte.d.ts +20 -0
- package/dist/form/Input.svelte +4 -0
- package/dist/form/Input.svelte.d.ts +2 -0
- package/dist/form/SegmentedControl.svelte +273 -0
- package/dist/form/SegmentedControl.svelte.d.ts +33 -0
- package/dist/form/SegmentedControlTypes.d.ts +8 -0
- package/dist/form/SegmentedControlTypes.js +1 -0
- package/dist/form/Select.svelte +4 -0
- package/dist/form/Select.svelte.d.ts +2 -0
- package/dist/form/Textarea.svelte +4 -0
- package/dist/form/Textarea.svelte.d.ts +2 -0
- package/dist/form/Toggle.svelte +166 -0
- package/dist/form/Toggle.svelte.d.ts +33 -17
- package/dist/form/index.d.ts +3 -0
- package/dist/form/index.js +3 -0
- package/package.json +1 -1
package/dist/css/1-props.css
CHANGED
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
@property --link-color-disabled { syntax: "*"; inherits: true; initial-value: #cccccc; }
|
|
123
123
|
@property --link-color-loading { syntax: "*"; inherits: true; initial-value: #7c3aed; }
|
|
124
124
|
|
|
125
|
-
@property --link-icon-size { syntax: "
|
|
125
|
+
@property --link-icon-size { syntax: "*"; inherits: true; initial-value: 24px; }
|
|
126
126
|
@property --link-icon-order { syntax: "<number>"; inherits: true; initial-value: 1; }
|
|
127
127
|
|
|
128
128
|
/**
|
|
@@ -196,175 +196,190 @@
|
|
|
196
196
|
@property --field-background-interest { syntax: "<color>"; inherits: true; initial-value: #f0f9ff; }
|
|
197
197
|
@property --field-background-loading { syntax: "<color>"; inherits: true; initial-value: #f0f9ff; }
|
|
198
198
|
|
|
199
|
-
@property --field-border-color { syntax: "
|
|
200
|
-
@property --field-border-color-active { syntax: "
|
|
201
|
-
@property --field-border-color-inactive { syntax: "
|
|
202
|
-
@property --field-border-color-disabled { syntax: "
|
|
203
|
-
@property --field-border-color-focus { syntax: "
|
|
204
|
-
@property --field-border-color-invalid { syntax: "
|
|
205
|
-
@property --field-border-color-valid { syntax: "
|
|
206
|
-
@property --field-border-color-success { syntax: "
|
|
207
|
-
@property --field-border-color-danger { syntax: "
|
|
208
|
-
@property --field-border-color-warn { syntax: "
|
|
209
|
-
@property --field-border-color-info { syntax: "
|
|
210
|
-
@property --field-border-color-selected { syntax: "
|
|
211
|
-
@property --field-border-color-interest { syntax: "
|
|
212
|
-
@property --field-border-color-loading { syntax: "
|
|
199
|
+
@property --field-border-color { syntax: "<color>"; inherits: true; initial-value: #d1d5db; }
|
|
200
|
+
@property --field-border-color-active { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
201
|
+
@property --field-border-color-inactive { syntax: "<color>"; inherits: true; initial-value: #d1d5db; }
|
|
202
|
+
@property --field-border-color-disabled { syntax: "<color>"; inherits: true; initial-value: #d1d5db; }
|
|
203
|
+
@property --field-border-color-focus { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
204
|
+
@property --field-border-color-invalid { syntax: "<color>"; inherits: true; initial-value: #dc2626; }
|
|
205
|
+
@property --field-border-color-valid { syntax: "<color>"; inherits: true; initial-value: #16a34a; }
|
|
206
|
+
@property --field-border-color-success { syntax: "<color>"; inherits: true; initial-value: #16a34a; }
|
|
207
|
+
@property --field-border-color-danger { syntax: "<color>"; inherits: true; initial-value: #dc2626; }
|
|
208
|
+
@property --field-border-color-warn { syntax: "<color>"; inherits: true; initial-value: #ca8a04; }
|
|
209
|
+
@property --field-border-color-info { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
210
|
+
@property --field-border-color-selected { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
211
|
+
@property --field-border-color-interest { syntax: "<color>"; inherits: true; initial-value: #7c3aed; }
|
|
212
|
+
@property --field-border-color-loading { syntax: "<color>"; inherits: true; initial-value: #7c3aed; }
|
|
213
213
|
|
|
214
214
|
@property --field-border-size { syntax: "<length>"; inherits: true; initial-value: 1px; }
|
|
215
215
|
@property --field-border-style { syntax: "solid | dashed | dotted | double | groove | ridge | inset | outset"; inherits: true; initial-value: solid; }
|
|
216
216
|
@property --field-border-radius { syntax: "<length>"; inherits: true; initial-value: 8px; }
|
|
217
217
|
|
|
218
|
-
@property --field-color { syntax: "
|
|
219
|
-
@property --field-color-active { syntax: "
|
|
220
|
-
@property --field-color-inactive { syntax: "
|
|
221
|
-
@property --field-color-disabled { syntax: "
|
|
222
|
-
@property --field-color-focus { syntax: "
|
|
223
|
-
@property --field-color-invalid { syntax: "
|
|
224
|
-
@property --field-color-valid { syntax: "
|
|
225
|
-
@property --field-color-success { syntax: "
|
|
226
|
-
@property --field-color-danger { syntax: "
|
|
227
|
-
@property --field-color-warn { syntax: "
|
|
228
|
-
@property --field-color-info { syntax: "
|
|
229
|
-
@property --field-color-selected { syntax: "
|
|
230
|
-
@property --field-color-interest { syntax: "
|
|
231
|
-
@property --field-color-loading { syntax: "
|
|
232
|
-
|
|
233
|
-
@property --field-label-color { syntax: "
|
|
234
|
-
@property --field-label-font-size { syntax: "
|
|
218
|
+
@property --field-color { syntax: "<color>"; inherits: true; initial-value: #1a1a1a; }
|
|
219
|
+
@property --field-color-active { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
220
|
+
@property --field-color-inactive { syntax: "<color>"; inherits: true; initial-value: #666666; }
|
|
221
|
+
@property --field-color-disabled { syntax: "<color>"; inherits: true; initial-value: #cccccc; }
|
|
222
|
+
@property --field-color-focus { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
223
|
+
@property --field-color-invalid { syntax: "<color>"; inherits: true; initial-value: #dc2626; }
|
|
224
|
+
@property --field-color-valid { syntax: "<color>"; inherits: true; initial-value: #16a34a; }
|
|
225
|
+
@property --field-color-success { syntax: "<color>"; inherits: true; initial-value: #16a34a; }
|
|
226
|
+
@property --field-color-danger { syntax: "<color>"; inherits: true; initial-value: #dc2626; }
|
|
227
|
+
@property --field-color-warn { syntax: "<color>"; inherits: true; initial-value: #ca8a04; }
|
|
228
|
+
@property --field-color-info { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
229
|
+
@property --field-color-selected { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
230
|
+
@property --field-color-interest { syntax: "<color>"; inherits: true; initial-value: #7c3aed; }
|
|
231
|
+
@property --field-color-loading { syntax: "<color>"; inherits: true; initial-value: #7c3aed; }
|
|
232
|
+
|
|
233
|
+
@property --field-label-color { syntax: "<color>"; inherits: true; initial-value: #111111; }
|
|
234
|
+
@property --field-label-font-size { syntax: "*"; inherits: true; initial-value: 16px; }
|
|
235
235
|
@property --field-label-font-weight { syntax: "<number>"; inherits: true; initial-value: 600; }
|
|
236
236
|
|
|
237
|
-
@property --field-placeholder-color { syntax: "
|
|
238
|
-
@property --field-padding-inline { syntax: "
|
|
239
|
-
@property --field-padding-block { syntax: "
|
|
237
|
+
@property --field-placeholder-color { syntax: "<color>"; inherits: true; initial-value: #999999; }
|
|
238
|
+
@property --field-padding-inline { syntax: "*"; inherits: true; initial-value: 8px; }
|
|
239
|
+
@property --field-padding-block { syntax: "*"; inherits: true; initial-value: 8px; }
|
|
240
240
|
|
|
241
|
-
@property --field-icon-size { syntax: "
|
|
241
|
+
@property --field-icon-size { syntax: "*"; inherits: true; initial-value: 24px; }
|
|
242
242
|
@property --field-icon-order { syntax: "<number>"; inherits: true; initial-value: 1; }
|
|
243
|
+
@property --field-group-gap { syntax: "<length>"; inherits: true; initial-value: 8px; }
|
|
243
244
|
|
|
244
245
|
/**
|
|
245
246
|
* Checkbox and Radio
|
|
246
247
|
*/
|
|
247
248
|
|
|
248
|
-
@property --checkbox-size { syntax: "
|
|
249
|
-
@property --checkbox-border-radius { syntax: "
|
|
249
|
+
@property --checkbox-size { syntax: "*"; inherits: true; initial-value: 18px; }
|
|
250
|
+
@property --checkbox-border-radius { syntax: "*"; inherits: true; initial-value: 4px; }
|
|
250
251
|
@property --checkbox-background { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
|
|
251
252
|
@property --checkbox-background-checked { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
252
|
-
@property --checkbox-border-color { syntax: "
|
|
253
|
-
@property --checkbox-border-color-checked { syntax: "
|
|
253
|
+
@property --checkbox-border-color { syntax: "<color>"; inherits: true; initial-value: #d1d5db; }
|
|
254
|
+
@property --checkbox-border-color-checked { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
254
255
|
@property --checkbox-indicator-color { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
|
|
255
256
|
|
|
257
|
+
/**
|
|
258
|
+
* Toggle
|
|
259
|
+
*/
|
|
260
|
+
|
|
261
|
+
@property --toggle-width { syntax: "*"; inherits: true; initial-value: 44px; }
|
|
262
|
+
@property --toggle-height { syntax: "*"; inherits: true; initial-value: 24px; }
|
|
263
|
+
@property --toggle-background { syntax: "<color>"; inherits: true; initial-value: #d1d5db; }
|
|
264
|
+
@property --toggle-background-checked { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
265
|
+
@property --toggle-border-color { syntax: "<color>"; inherits: true; initial-value: #d1d5db; }
|
|
266
|
+
@property --toggle-border-color-checked { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
267
|
+
@property --toggle-thumb-size { syntax: "*"; inherits: true; initial-value: 18px; }
|
|
268
|
+
@property --toggle-thumb-color { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
|
|
269
|
+
@property --toggle-thumb-shadow { syntax: "*"; inherits: true; initial-value: 0 1px 3px rgba(0, 0, 0, 0.2); }
|
|
270
|
+
|
|
256
271
|
/**
|
|
257
272
|
* Button Component
|
|
258
273
|
*/
|
|
259
274
|
|
|
260
|
-
@property --button-base-color { syntax: "
|
|
261
|
-
@property --button-base-color-hover { syntax: "
|
|
275
|
+
@property --button-base-color { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
|
|
276
|
+
@property --button-base-color-hover { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
|
|
262
277
|
|
|
263
278
|
/* primary */
|
|
264
279
|
|
|
265
|
-
@property --button-submit-color { syntax: "
|
|
266
|
-
@property --button-submit-color-hover { syntax: "
|
|
267
|
-
@property --button-submit-color-disabled { syntax: "
|
|
268
|
-
@property --button-submit-color-focus { syntax: "
|
|
269
|
-
@property --button-submit-color-loading { syntax: "
|
|
280
|
+
@property --button-submit-color { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
|
|
281
|
+
@property --button-submit-color-hover { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
|
|
282
|
+
@property --button-submit-color-disabled { syntax: "<color>"; inherits: true; initial-value: #cccccc; }
|
|
283
|
+
@property --button-submit-color-focus { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
284
|
+
@property --button-submit-color-loading { syntax: "<color>"; inherits: true; initial-value: #7c3aed; }
|
|
270
285
|
|
|
271
|
-
@property --button-submit-background { syntax: "
|
|
272
|
-
@property --button-submit-background-hover { syntax: "
|
|
273
|
-
@property --button-submit-background-disabled { syntax: "
|
|
274
|
-
@property --button-submit-background-focus { syntax: "
|
|
275
|
-
@property --button-submit-background-loading { syntax: "
|
|
286
|
+
@property --button-submit-background { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
287
|
+
@property --button-submit-background-hover { syntax: "<color>"; inherits: true; initial-value: #1d4ed8; }
|
|
288
|
+
@property --button-submit-background-disabled { syntax: "<color>"; inherits: true; initial-value: #f3f4f6; }
|
|
289
|
+
@property --button-submit-background-focus { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
290
|
+
@property --button-submit-background-loading { syntax: "<color>"; inherits: true; initial-value: #f0f9ff; }
|
|
276
291
|
|
|
277
|
-
@property --button-submit-border-color { syntax: "
|
|
278
|
-
@property --button-submit-border-color-hover { syntax: "
|
|
279
|
-
@property --button-submit-border-color-disabled { syntax: "
|
|
280
|
-
@property --button-submit-border-color-focus { syntax: "
|
|
281
|
-
@property --button-submit-border-color-loading { syntax: "
|
|
292
|
+
@property --button-submit-border-color { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
293
|
+
@property --button-submit-border-color-hover { syntax: "<color>"; inherits: true; initial-value: #1d4ed8; }
|
|
294
|
+
@property --button-submit-border-color-disabled { syntax: "<color>"; inherits: true; initial-value: #d1d5db; }
|
|
295
|
+
@property --button-submit-border-color-focus { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
296
|
+
@property --button-submit-border-color-loading { syntax: "<color>"; inherits: true; initial-value: #7c3aed; }
|
|
282
297
|
|
|
283
298
|
/* action */
|
|
284
|
-
@property --button-action-color { syntax: "
|
|
285
|
-
@property --button-action-color-hover { syntax: "
|
|
286
|
-
@property --button-action-color-disabled { syntax: "
|
|
287
|
-
@property --button-action-color-focus { syntax: "
|
|
288
|
-
@property --button-action-color-loading { syntax: "
|
|
289
|
-
|
|
290
|
-
@property --button-action-background { syntax: "
|
|
291
|
-
@property --button-action-background-hover { syntax: "
|
|
292
|
-
@property --button-action-background-disabled { syntax: "
|
|
293
|
-
@property --button-action-background-focus { syntax: "
|
|
294
|
-
@property --button-action-background-loading { syntax: "
|
|
295
|
-
|
|
296
|
-
@property --button-action-border-color { syntax: "
|
|
297
|
-
@property --button-action-border-color-hover { syntax: "
|
|
298
|
-
@property --button-action-border-color-disabled { syntax: "
|
|
299
|
-
@property --button-action-border-color-focus { syntax: "
|
|
300
|
-
@property --button-action-border-color-loading { syntax: "
|
|
299
|
+
@property --button-action-color { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
|
|
300
|
+
@property --button-action-color-hover { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
|
|
301
|
+
@property --button-action-color-disabled { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
|
|
302
|
+
@property --button-action-color-focus { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
|
|
303
|
+
@property --button-action-color-loading { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
|
|
304
|
+
|
|
305
|
+
@property --button-action-background { syntax: "<color>"; inherits: true; initial-value: #111111; }
|
|
306
|
+
@property --button-action-background-hover { syntax: "<color>"; inherits: true; initial-value: #111111; }
|
|
307
|
+
@property --button-action-background-disabled { syntax: "<color>"; inherits: true; initial-value: #f3f4f6; }
|
|
308
|
+
@property --button-action-background-focus { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
309
|
+
@property --button-action-background-loading { syntax: "<color>"; inherits: true; initial-value: #f0f9ff; }
|
|
310
|
+
|
|
311
|
+
@property --button-action-border-color { syntax: "<color>"; inherits: true; initial-value: #111111; }
|
|
312
|
+
@property --button-action-border-color-hover { syntax: "<color>"; inherits: true; initial-value: #111111; }
|
|
313
|
+
@property --button-action-border-color-disabled { syntax: "<color>"; inherits: true; initial-value: #111111; }
|
|
314
|
+
@property --button-action-border-color-focus { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
315
|
+
@property --button-action-border-color-loading { syntax: "<color>"; inherits: true; initial-value: #7c3aed; }
|
|
301
316
|
|
|
302
317
|
/* danger */
|
|
303
|
-
@property --button-danger-color { syntax: "
|
|
304
|
-
@property --button-danger-color-hover { syntax: "
|
|
305
|
-
@property --button-danger-color-disabled { syntax: "
|
|
306
|
-
@property --button-danger-color-focus { syntax: "
|
|
307
|
-
@property --button-danger-color-loading { syntax: "
|
|
308
|
-
|
|
309
|
-
@property --button-danger-background { syntax: "
|
|
310
|
-
@property --button-danger-background-hover { syntax: "
|
|
311
|
-
@property --button-danger-background-disabled { syntax: "
|
|
312
|
-
@property --button-danger-background-focus { syntax: "
|
|
313
|
-
@property --button-danger-background-loading { syntax: "
|
|
314
|
-
|
|
315
|
-
@property --button-danger-border-color { syntax: "
|
|
316
|
-
@property --button-danger-border-color-hover { syntax: "
|
|
317
|
-
@property --button-danger-border-color-disabled { syntax: "
|
|
318
|
-
@property --button-danger-border-color-focus { syntax: "
|
|
319
|
-
@property --button-danger-border-color-loading { syntax: "
|
|
318
|
+
@property --button-danger-color { syntax: "<color>"; inherits: true; initial-value: #dc2626; }
|
|
319
|
+
@property --button-danger-color-hover { syntax: "<color>"; inherits: true; initial-value: #dc2626; }
|
|
320
|
+
@property --button-danger-color-disabled { syntax: "<color>"; inherits: true; initial-value: #dc2626; }
|
|
321
|
+
@property --button-danger-color-focus { syntax: "<color>"; inherits: true; initial-value: #dc2626; }
|
|
322
|
+
@property --button-danger-color-loading { syntax: "<color>"; inherits: true; initial-value: #dc2626; }
|
|
323
|
+
|
|
324
|
+
@property --button-danger-background { syntax: "<color>"; inherits: true; initial-value: #dc2626; }
|
|
325
|
+
@property --button-danger-background-hover { syntax: "<color>"; inherits: true; initial-value: #dc2626; }
|
|
326
|
+
@property --button-danger-background-disabled { syntax: "<color>"; inherits: true; initial-value: #f3f4f6; }
|
|
327
|
+
@property --button-danger-background-focus { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
328
|
+
@property --button-danger-background-loading { syntax: "<color>"; inherits: true; initial-value: #f0f9ff; }
|
|
329
|
+
|
|
330
|
+
@property --button-danger-border-color { syntax: "<color>"; inherits: true; initial-value: #dc2626; }
|
|
331
|
+
@property --button-danger-border-color-hover { syntax: "<color>"; inherits: true; initial-value: #dc2626; }
|
|
332
|
+
@property --button-danger-border-color-disabled { syntax: "<color>"; inherits: true; initial-value: #d1d5db; }
|
|
333
|
+
@property --button-danger-border-color-focus { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
334
|
+
@property --button-danger-border-color-loading { syntax: "<color>"; inherits: true; initial-value: #7c3aed; }
|
|
320
335
|
|
|
321
336
|
/* success */
|
|
322
|
-
@property --button-success-color { syntax: "
|
|
323
|
-
@property --button-success-color-hover { syntax: "
|
|
324
|
-
@property --button-success-color-disabled { syntax: "
|
|
325
|
-
@property --button-success-color-focus { syntax: "
|
|
326
|
-
@property --button-success-color-loading { syntax: "
|
|
327
|
-
|
|
328
|
-
@property --button-success-background { syntax: "
|
|
329
|
-
@property --button-success-background-hover { syntax: "
|
|
330
|
-
@property --button-success-background-disabled { syntax: "
|
|
331
|
-
@property --button-success-background-focus { syntax: "
|
|
332
|
-
@property --button-success-background-loading { syntax: "
|
|
333
|
-
|
|
334
|
-
@property --button-success-border-color { syntax: "
|
|
335
|
-
@property --button-success-border-color-hover { syntax: "
|
|
336
|
-
@property --button-success-border-color-disabled { syntax: "
|
|
337
|
-
@property --button-success-border-color-focus { syntax: "
|
|
338
|
-
@property --button-success-border-color-loading { syntax: "
|
|
337
|
+
@property --button-success-color { syntax: "<color>"; inherits: true; initial-value: #16a34a; }
|
|
338
|
+
@property --button-success-color-hover { syntax: "<color>"; inherits: true; initial-value: #16a34a; }
|
|
339
|
+
@property --button-success-color-disabled { syntax: "<color>"; inherits: true; initial-value: #16a34a; }
|
|
340
|
+
@property --button-success-color-focus { syntax: "<color>"; inherits: true; initial-value: #16a34a; }
|
|
341
|
+
@property --button-success-color-loading { syntax: "<color>"; inherits: true; initial-value: #16a34a; }
|
|
342
|
+
|
|
343
|
+
@property --button-success-background { syntax: "<color>"; inherits: true; initial-value: #16a34a; }
|
|
344
|
+
@property --button-success-background-hover { syntax: "<color>"; inherits: true; initial-value: #16a34a; }
|
|
345
|
+
@property --button-success-background-disabled { syntax: "<color>"; inherits: true; initial-value: #f3f4f6; }
|
|
346
|
+
@property --button-success-background-focus { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
347
|
+
@property --button-success-background-loading { syntax: "<color>"; inherits: true; initial-value: #f0f9ff; }
|
|
348
|
+
|
|
349
|
+
@property --button-success-border-color { syntax: "<color>"; inherits: true; initial-value: #16a34a; }
|
|
350
|
+
@property --button-success-border-color-hover { syntax: "<color>"; inherits: true; initial-value: #16a34a; }
|
|
351
|
+
@property --button-success-border-color-disabled { syntax: "<color>"; inherits: true; initial-value: #d1d5db; }
|
|
352
|
+
@property --button-success-border-color-focus { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
353
|
+
@property --button-success-border-color-loading { syntax: "<color>"; inherits: true; initial-value: #7c3aed; }
|
|
339
354
|
|
|
340
355
|
@property --button-border-size { syntax: "<length>"; inherits: true; initial-value: 1px; }
|
|
341
356
|
@property --button-border-style { syntax: "solid | dashed | dotted | double | groove | ridge | inset | outset"; inherits: true; initial-value: solid; }
|
|
342
357
|
@property --button-border-radius { syntax: "<length>"; inherits: true; initial-value: 8px; }
|
|
343
358
|
|
|
344
|
-
@property --button-padding-inline { syntax: "
|
|
345
|
-
@property --button-padding-block { syntax: "
|
|
359
|
+
@property --button-padding-inline { syntax: "*"; inherits: true; initial-value: 16px; }
|
|
360
|
+
@property --button-padding-block { syntax: "*"; inherits: true; initial-value: 8px; }
|
|
346
361
|
@property --button-padding { syntax: "*"; inherits: true; initial-value: 8px; }
|
|
347
362
|
@property --button-border { syntax: "*"; inherits: true; initial-value: none; }
|
|
348
363
|
|
|
349
364
|
@property --button-font-weight { syntax: "<number>"; inherits: true; initial-value: 500; }
|
|
350
365
|
|
|
351
|
-
@property --button-icon-size { syntax: "
|
|
366
|
+
@property --button-icon-size { syntax: "*"; inherits: true; initial-value: 24px; }
|
|
352
367
|
@property --button-icon-order { syntax: "<number>"; inherits: true; initial-value: 1; }
|
|
353
368
|
|
|
354
369
|
/**
|
|
355
370
|
* Shadows
|
|
356
371
|
*/
|
|
357
372
|
|
|
358
|
-
@property --shadow-color { syntax: "
|
|
373
|
+
@property --shadow-color { syntax: "<color>"; inherits: true; initial-value: rgba(0, 0, 0, 0.1); }
|
|
359
374
|
@property --shadow-base { syntax: "*"; inherits: true; initial-value: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
|
|
360
375
|
|
|
361
376
|
/**
|
|
362
377
|
* Code
|
|
363
378
|
*/
|
|
364
379
|
|
|
365
|
-
@property --code-background { syntax: "
|
|
366
|
-
@property --code-color { syntax: "
|
|
367
|
-
@property --code-border-color { syntax: "
|
|
380
|
+
@property --code-background { syntax: "<color>"; inherits: true; initial-value: #f8fafc; }
|
|
381
|
+
@property --code-color { syntax: "<color>"; inherits: true; initial-value: #1a1a1a; }
|
|
382
|
+
@property --code-border-color { syntax: "<color>"; inherits: true; initial-value: #d1d5db; }
|
|
368
383
|
@property --code-border-size { syntax: "<length>"; inherits: true; initial-value: 0; }
|
|
369
384
|
@property --code-border-style { syntax: "solid | dashed | dotted | double | groove | ridge | inset | outset"; inherits: true; initial-value: solid; }
|
|
370
385
|
@property --code-border-radius { syntax: "<length>"; inherits: true; initial-value: 8px; }
|
|
@@ -376,18 +391,18 @@
|
|
|
376
391
|
* Backgrounds
|
|
377
392
|
*/
|
|
378
393
|
|
|
379
|
-
@property --background-body { syntax: "
|
|
380
|
-
@property --background-main { syntax: "
|
|
381
|
-
@property --background-main-subtle { syntax: "
|
|
382
|
-
|
|
383
|
-
@property --background-active { syntax: "
|
|
384
|
-
@property --background-inactive { syntax: "
|
|
385
|
-
@property --background-disabled { syntax: "
|
|
386
|
-
@property --background-focus { syntax: "
|
|
387
|
-
@property --background-invalid { syntax: "
|
|
388
|
-
@property --background-valid { syntax: "
|
|
389
|
-
@property --background-success { syntax: "
|
|
390
|
-
@property --background-danger { syntax: "
|
|
394
|
+
@property --background-body { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
|
|
395
|
+
@property --background-main { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
|
|
396
|
+
@property --background-main-subtle { syntax: "<color>"; inherits: true; initial-value: #f8fafc; }
|
|
397
|
+
|
|
398
|
+
@property --background-active { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
399
|
+
@property --background-inactive { syntax: "<color>"; inherits: true; initial-value: #f3f4f6; }
|
|
400
|
+
@property --background-disabled { syntax: "<color>"; inherits: true; initial-value: #f3f4f6; }
|
|
401
|
+
@property --background-focus { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
402
|
+
@property --background-invalid { syntax: "<color>"; inherits: true; initial-value: #fef2f2; }
|
|
403
|
+
@property --background-valid { syntax: "<color>"; inherits: true; initial-value: #dcfce7; }
|
|
404
|
+
@property --background-success { syntax: "<color>"; inherits: true; initial-value: #dcfce7; }
|
|
405
|
+
@property --background-danger { syntax: "<color>"; inherits: true; initial-value: #fef2f2; }
|
|
391
406
|
@property --background-warn { syntax: "<color>"; inherits: true; initial-value: #fefce8; }
|
|
392
407
|
@property --background-info { syntax: "<color>"; inherits: true; initial-value: #eff6ff; }
|
|
393
408
|
@property --background-selected { syntax: "<color>"; inherits: true; initial-value: #eff6ff; }
|
|
@@ -417,8 +432,8 @@
|
|
|
417
432
|
|
|
418
433
|
@property --focus-ring { syntax: "*"; inherits: true; initial-value: 2px solid #2563eb; }
|
|
419
434
|
@property --focus-ring-size { syntax: "<length>"; inherits: true; initial-value: 2px; }
|
|
420
|
-
@property --focus-ring-color { syntax: "
|
|
421
|
-
@property --focus-ring-color-invalid { syntax: "
|
|
435
|
+
@property --focus-ring-color { syntax: "<color>"; inherits: true; initial-value: #2563eb; }
|
|
436
|
+
@property --focus-ring-color-invalid { syntax: "<color>"; inherits: true; initial-value: #dc2626; }
|
|
422
437
|
@property --focus-ring-offset { syntax: "<length>"; inherits: true; initial-value: 0px; }
|
|
423
438
|
|
|
424
439
|
/**
|
|
@@ -435,7 +450,7 @@
|
|
|
435
450
|
*/
|
|
436
451
|
|
|
437
452
|
@property --tooltip-background { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
|
|
438
|
-
@property --tooltip-color { syntax: "
|
|
453
|
+
@property --tooltip-color { syntax: "<color>"; inherits: true; initial-value: #1a1a1a; }
|
|
439
454
|
@property --tooltip-border { syntax: "*"; inherits: true; initial-value: 1px solid #d1d5db; }
|
|
440
455
|
@property --tooltip-border-radius { syntax: "<length>"; inherits: true; initial-value: 8px; }
|
|
441
456
|
@property --tooltip-shadow { syntax: "*"; inherits: true; initial-value: 0 4px 8px rgba(0, 0, 0, 0.15); }
|
|
@@ -485,21 +500,27 @@
|
|
|
485
500
|
@property --table-cell-padding-block { syntax: "<length>"; inherits: true; initial-value: 8px; }
|
|
486
501
|
|
|
487
502
|
@property --table-header-background { syntax: "<color>"; inherits: true; initial-value: #f8fafc; }
|
|
488
|
-
@property --table-header-color { syntax: "
|
|
503
|
+
@property --table-header-color { syntax: "<color>"; inherits: true; initial-value: #1a1a1a; }
|
|
489
504
|
@property --table-header-font-weight { syntax: "<number>"; inherits: true; initial-value: 600; }
|
|
490
505
|
|
|
491
506
|
@property --table-row-background { syntax: "<color>"; inherits: true; initial-value: transparent; }
|
|
492
507
|
@property --table-row-background-even { syntax: "<color>"; inherits: true; initial-value: #f8fafc; }
|
|
493
508
|
@property --table-row-background-hover { syntax: "<color>"; inherits: true; initial-value: #f1f5f9; }
|
|
494
509
|
|
|
495
|
-
@property --table-cell-color { syntax: "
|
|
510
|
+
@property --table-cell-color { syntax: "<color>"; inherits: true; initial-value: #1a1a1a; }
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Data List
|
|
514
|
+
*/
|
|
515
|
+
|
|
516
|
+
@property --data-list-gap { syntax: "<length>"; inherits: true; initial-value: 12px; }
|
|
496
517
|
|
|
497
518
|
/**
|
|
498
519
|
* Modal
|
|
499
520
|
*/
|
|
500
521
|
|
|
501
522
|
@property --modal-background { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
|
|
502
|
-
@property --modal-border-color { syntax: "
|
|
523
|
+
@property --modal-border-color { syntax: "<color>"; inherits: true; initial-value: #d1d5db; }
|
|
503
524
|
@property --modal-border-size { syntax: "<length>"; inherits: true; initial-value: 1px; }
|
|
504
525
|
@property --modal-border-style { syntax: "solid | dashed | dotted | double | groove | ridge | inset | outset"; inherits: true; initial-value: solid; }
|
|
505
526
|
@property --modal-border-radius { syntax: "<length>"; inherits: true; initial-value: 8px; }
|
|
@@ -509,12 +530,12 @@
|
|
|
509
530
|
@property --modal-padding-block { syntax: "<length>"; inherits: true; initial-value: 24px; }
|
|
510
531
|
@property --modal-width { syntax: "*"; inherits: true; initial-value: fit-content; }
|
|
511
532
|
@property --modal-min-width { syntax: "*"; inherits: true; initial-value: auto; }
|
|
512
|
-
@property --modal-max-width { syntax: "
|
|
513
|
-
@property --modal-max-height { syntax: "
|
|
533
|
+
@property --modal-max-width { syntax: "<length>"; inherits: true; initial-value: 640px; }
|
|
534
|
+
@property --modal-max-height { syntax: "<length>"; inherits: true; initial-value: 600px; }
|
|
514
535
|
@property --modal-gap { syntax: "<length>"; inherits: true; initial-value: 0px; }
|
|
515
536
|
|
|
516
537
|
@property --modal-actions-background { syntax: "<color>"; inherits: true; initial-value: #f8fafc; }
|
|
517
|
-
@property --modal-actions-border-color { syntax: "
|
|
538
|
+
@property --modal-actions-border-color { syntax: "<color>"; inherits: true; initial-value: #d1d5db; }
|
|
518
539
|
@property --modal-actions-padding-inline { syntax: "<length>"; inherits: true; initial-value: 16px; }
|
|
519
540
|
@property --modal-actions-padding-block { syntax: "<length>"; inherits: true; initial-value: 16px; }
|
|
520
541
|
|
package/dist/css/2-init.css
CHANGED
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
--link-color-disabled: #cccccc;
|
|
107
107
|
--link-color-loading: #7c3aed;
|
|
108
108
|
|
|
109
|
-
--link-icon-size:
|
|
109
|
+
--link-icon-size: 1.5em;
|
|
110
110
|
--link-icon-order: 1;
|
|
111
111
|
|
|
112
112
|
/* Borders */
|
|
@@ -210,25 +210,38 @@
|
|
|
210
210
|
--field-label-font-weight: 600;
|
|
211
211
|
|
|
212
212
|
--field-placeholder-color: #999999;
|
|
213
|
-
--field-padding-inline:
|
|
214
|
-
--field-padding-block:
|
|
213
|
+
--field-padding-inline: 0.5em;
|
|
214
|
+
--field-padding-block: 0.5em;
|
|
215
215
|
|
|
216
|
-
--field-icon-size:
|
|
216
|
+
--field-icon-size: 1.5em;
|
|
217
217
|
--field-icon-order: 1;
|
|
218
|
+
--field-group-gap: var(--space-xs);
|
|
218
219
|
|
|
219
220
|
/* Shorthand compound: field */
|
|
220
221
|
--field-padding: var(--field-padding-block) var(--field-padding-inline);
|
|
221
222
|
--field-border: var(--field-border-size) var(--field-border-style) var(--field-border-color);
|
|
222
223
|
|
|
223
224
|
/* Checkbox and Radio */
|
|
224
|
-
--checkbox-size:
|
|
225
|
-
--checkbox-border-radius:
|
|
225
|
+
--checkbox-size: 1.125em;
|
|
226
|
+
--checkbox-border-radius: 0.25em;
|
|
226
227
|
--checkbox-background: #ffffff;
|
|
227
228
|
--checkbox-background-checked: #2563eb;
|
|
228
229
|
--checkbox-border-color: #d1d5db;
|
|
229
230
|
--checkbox-border-color-checked: #2563eb;
|
|
230
231
|
--checkbox-indicator-color: #ffffff;
|
|
231
232
|
|
|
233
|
+
/* Toggle */
|
|
234
|
+
--toggle-width: 2.75em;
|
|
235
|
+
--toggle-height: 1.5em;
|
|
236
|
+
--toggle-background: #d1d5db;
|
|
237
|
+
--toggle-background-checked: #2563eb;
|
|
238
|
+
--toggle-border-color: #d1d5db;
|
|
239
|
+
--toggle-border-color-checked: #2563eb;
|
|
240
|
+
--toggle-thumb-size: 1.125em;
|
|
241
|
+
--toggle-thumb-color: #ffffff;
|
|
242
|
+
--toggle-thumb-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
243
|
+
--toggle-thumb-offset: calc((var(--toggle-height) - var(--toggle-thumb-size)) / 2 - var(--field-border-size));
|
|
244
|
+
|
|
232
245
|
/* Button Component */
|
|
233
246
|
--button-base-color: #ffffff;
|
|
234
247
|
--button-base-color-hover: #ffffff;
|
|
@@ -314,8 +327,8 @@
|
|
|
314
327
|
--button-border-radius: var(--border-radius-base);
|
|
315
328
|
--button-border-color: var(--border-color);
|
|
316
329
|
|
|
317
|
-
--button-padding-inline:
|
|
318
|
-
--button-padding-block:
|
|
330
|
+
--button-padding-inline: 1em;
|
|
331
|
+
--button-padding-block: 0.5em;
|
|
319
332
|
|
|
320
333
|
--button-font-weight: 500;
|
|
321
334
|
|
|
@@ -341,10 +354,10 @@
|
|
|
341
354
|
--code-border-color: #d1d5db;
|
|
342
355
|
--code-border-size: 0;
|
|
343
356
|
--code-border-style: solid;
|
|
344
|
-
--code-border-radius:
|
|
357
|
+
--code-border-radius: 0.5em;
|
|
345
358
|
|
|
346
|
-
--code-padding-inline:
|
|
347
|
-
--code-padding-block:
|
|
359
|
+
--code-padding-inline: 1em;
|
|
360
|
+
--code-padding-block: 0.5em;
|
|
348
361
|
|
|
349
362
|
/* Backgrounds */
|
|
350
363
|
--background-body: #ffffff;
|
|
@@ -402,7 +415,7 @@
|
|
|
402
415
|
/* Toast */
|
|
403
416
|
--toast-background: #ffffff;
|
|
404
417
|
--toast-border: 1px solid #d1d5db;
|
|
405
|
-
--toast-border-radius:
|
|
418
|
+
--toast-border-radius: 0.5em;
|
|
406
419
|
--toast-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
407
420
|
--toast-padding-inline: 1rem;
|
|
408
421
|
--toast-padding-block: 0.75rem;
|
|
@@ -423,16 +436,16 @@
|
|
|
423
436
|
--menu-border-color: #cccccc;
|
|
424
437
|
--menu-border-size: 1px;
|
|
425
438
|
--menu-border-style: solid;
|
|
426
|
-
--menu-border-radius:
|
|
439
|
+
--menu-border-radius: 0.5em;
|
|
427
440
|
|
|
428
441
|
/* Table */
|
|
429
442
|
--table-border-color: #d1d5db;
|
|
430
443
|
--table-border-size: 1px;
|
|
431
444
|
--table-border-style: solid;
|
|
432
|
-
--table-border-radius:
|
|
445
|
+
--table-border-radius: 0.5em;
|
|
433
446
|
|
|
434
|
-
--table-cell-padding-inline:
|
|
435
|
-
--table-cell-padding-block:
|
|
447
|
+
--table-cell-padding-inline: 0.75em;
|
|
448
|
+
--table-cell-padding-block: 0.5em;
|
|
436
449
|
|
|
437
450
|
--table-header-background: #f8fafc;
|
|
438
451
|
--table-header-color: #1a1a1a;
|
|
@@ -448,16 +461,19 @@
|
|
|
448
461
|
--table-border: var(--table-border-size) var(--table-border-style) var(--table-border-color);
|
|
449
462
|
--table-cell-padding: var(--table-cell-padding-block) var(--table-cell-padding-inline);
|
|
450
463
|
|
|
464
|
+
/* Data List */
|
|
465
|
+
--data-list-gap: var(--space-sm);
|
|
466
|
+
|
|
451
467
|
/* Modal */
|
|
452
468
|
--modal-background: #ffffff;
|
|
453
469
|
--modal-border-color: #d1d5db;
|
|
454
470
|
--modal-border-size: 1px;
|
|
455
471
|
--modal-border-style: solid;
|
|
456
|
-
--modal-border-radius:
|
|
472
|
+
--modal-border-radius: 0.5em;
|
|
457
473
|
--modal-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
458
474
|
|
|
459
|
-
--modal-padding-inline:
|
|
460
|
-
--modal-padding-block:
|
|
475
|
+
--modal-padding-inline: 1.5em;
|
|
476
|
+
--modal-padding-block: 1.5em;
|
|
461
477
|
--modal-width: fit-content;
|
|
462
478
|
--modal-min-width: auto;
|
|
463
479
|
--modal-max-width: 40rem;
|
|
@@ -466,8 +482,8 @@
|
|
|
466
482
|
|
|
467
483
|
--modal-actions-background: #f8fafc;
|
|
468
484
|
--modal-actions-border-color: #d1d5db;
|
|
469
|
-
--modal-actions-padding-inline:
|
|
470
|
-
--modal-actions-padding-block:
|
|
485
|
+
--modal-actions-padding-inline: 1em;
|
|
486
|
+
--modal-actions-padding-block: 1em;
|
|
471
487
|
|
|
472
488
|
/* Shorthand compound: modal */
|
|
473
489
|
--modal-border: var(--modal-border-size) var(--modal-border-style) var(--modal-border-color);
|
|
@@ -477,13 +493,13 @@
|
|
|
477
493
|
/* Shared Surface System */
|
|
478
494
|
--surface-background: #ffffff;
|
|
479
495
|
--surface-border: 1px solid #d1d5db;
|
|
480
|
-
--surface-border-radius:
|
|
496
|
+
--surface-border-radius: 0.5em;
|
|
481
497
|
--surface-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
482
498
|
|
|
483
499
|
/* Popover Component */
|
|
484
500
|
--popover-background: #ffffff;
|
|
485
501
|
--popover-border: 1px solid #d1d5db;
|
|
486
|
-
--popover-border-radius:
|
|
502
|
+
--popover-border-radius: 0.5em;
|
|
487
503
|
--popover-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
488
504
|
--popover-width: max-content;
|
|
489
505
|
--popover-max-width: calc(100vw - 2rem);
|
|
@@ -172,6 +172,16 @@
|
|
|
172
172
|
--checkbox-border-color-checked: var(--button-submit-base-color);
|
|
173
173
|
--checkbox-indicator-color: light-dark(#ffffff, #ffffff);
|
|
174
174
|
|
|
175
|
+
/**
|
|
176
|
+
* Toggle
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
--toggle-background: var(--border-color);
|
|
180
|
+
--toggle-background-checked: var(--checkbox-background-checked);
|
|
181
|
+
--toggle-border-color: var(--toggle-background);
|
|
182
|
+
--toggle-border-color-checked: var(--toggle-background-checked);
|
|
183
|
+
--toggle-thumb-color: var(--checkbox-indicator-color);
|
|
184
|
+
|
|
175
185
|
--field-label-color: var(--text-color-p);
|
|
176
186
|
|
|
177
187
|
--form-background: var(--background-body);
|
package/dist/form/Button.svelte
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
href,
|
|
19
19
|
type = 'button',
|
|
20
20
|
class: className,
|
|
21
|
-
|
|
21
|
+
scale = 'md',
|
|
22
22
|
kind = 'default',
|
|
23
23
|
disabled = false,
|
|
24
24
|
icon,
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
/** Visual style variant. */
|
|
33
33
|
kind?: 'default' | 'outlined' | 'secondary' | 'warn';
|
|
34
34
|
/** Size variant. */
|
|
35
|
-
|
|
35
|
+
scale?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
36
36
|
/** Additional CSS class names. */
|
|
37
37
|
class?: string;
|
|
38
38
|
/** Whether the button is disabled. Also disabled automatically when the parent form is loading. */
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
</script>
|
|
52
52
|
|
|
53
53
|
{#if href}
|
|
54
|
-
<a class="Button Link button {
|
|
54
|
+
<a class="Button Link button {scale} {kind} {className} {align}" {href} {onclick}>
|
|
55
55
|
{#if icon}
|
|
56
56
|
<Icon {icon} />
|
|
57
57
|
{/if}
|
|
58
58
|
{@render children()}
|
|
59
59
|
</a>
|
|
60
60
|
{:else}
|
|
61
|
-
<button class="Button button {
|
|
61
|
+
<button class="Button button {scale} {kind} {className} {align}" type={type} disabled={disabled || form?.state === 'loading'} {onclick}>
|
|
62
62
|
{#if icon}
|
|
63
63
|
<Icon {icon} />
|
|
64
64
|
{/if}
|