@finsweet/webflow-apps-utils 1.0.36 → 1.0.38
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/ui/components/button/Button.svelte +2 -2
- package/dist/ui/components/button-group/ButtonGroup.svelte +1 -1
- package/dist/ui/components/color-picker/ColorSelect.svelte +1 -1
- package/dist/ui/components/input/Input.svelte +1 -1
- package/dist/ui/components/layout/examples/ExampleLayout.svelte +1 -1
- package/dist/ui/components/modal/Modal.svelte +1 -1
- package/dist/ui/components/notification/Notification.svelte +2 -2
- package/dist/ui/components/progress-bar/ProgressBar.svelte +1 -1
- package/dist/ui/components/regions/RegionSelector.stories.svelte +94 -0
- package/dist/ui/components/regions/RegionSelector.svelte +368 -192
- package/dist/ui/components/regions/types.d.ts +3 -0
- package/dist/ui/components/section/Section.svelte +2 -2
- package/dist/ui/components/select/Select.svelte +5 -7
- package/dist/ui/components/text/Text.svelte +4 -2
- package/dist/ui/components/tooltip/Tooltip.svelte +7 -14
- package/dist/ui/index.css +24 -44
- package/dist/ui/providers/GlobalProviderDemo.svelte +2 -2
- package/dist/ui/stores/forms/FormDemo.svelte +2 -2
- package/package.json +1 -1
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
|
|
299
299
|
.button--secondary {
|
|
300
300
|
background: var(
|
|
301
|
-
--
|
|
301
|
+
--background4,
|
|
302
302
|
linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.1) 100%),
|
|
303
303
|
rgba(255, 255, 255, 0.08)
|
|
304
304
|
);
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
|
|
308
308
|
.button--secondary:hover:not(:disabled) {
|
|
309
309
|
background: var(
|
|
310
|
-
--
|
|
310
|
+
--background5,
|
|
311
311
|
linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.16) 100%)
|
|
312
312
|
);
|
|
313
313
|
}
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
gap: 8px;
|
|
213
213
|
align-self: stretch;
|
|
214
214
|
border-radius: 4px;
|
|
215
|
-
background: var(--
|
|
215
|
+
background: var(--background2);
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
.icon {
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
.message {
|
|
239
|
-
color: var(--
|
|
239
|
+
color: var(--text2);
|
|
240
240
|
|
|
241
241
|
font-size: 11px;
|
|
242
242
|
font-style: normal;
|
|
@@ -126,6 +126,10 @@
|
|
|
126
126
|
searchPlaceholder: {
|
|
127
127
|
control: 'text',
|
|
128
128
|
description: 'Placeholder text for search input'
|
|
129
|
+
},
|
|
130
|
+
hide: {
|
|
131
|
+
control: 'object',
|
|
132
|
+
description: 'Array of group keys or region codes to hide from display'
|
|
129
133
|
}
|
|
130
134
|
},
|
|
131
135
|
args: {
|
|
@@ -381,3 +385,93 @@
|
|
|
381
385
|
}
|
|
382
386
|
}}
|
|
383
387
|
/>
|
|
388
|
+
|
|
389
|
+
<Story
|
|
390
|
+
name="Hide Global Group"
|
|
391
|
+
args={{
|
|
392
|
+
regionGroups: dummyRegionGroups,
|
|
393
|
+
selectedRegions: [],
|
|
394
|
+
usedRegions: emptyUsedRegions,
|
|
395
|
+
hide: ['global-parent']
|
|
396
|
+
}}
|
|
397
|
+
parameters={{
|
|
398
|
+
docs: {
|
|
399
|
+
description: {
|
|
400
|
+
story:
|
|
401
|
+
'Demonstrates hiding the Global group using the parent key. The Global option will not be visible.'
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}}
|
|
405
|
+
/>
|
|
406
|
+
|
|
407
|
+
<Story
|
|
408
|
+
name="Hide by Region Code"
|
|
409
|
+
args={{
|
|
410
|
+
regionGroups: dummyRegionGroups,
|
|
411
|
+
selectedRegions: [],
|
|
412
|
+
usedRegions: emptyUsedRegions,
|
|
413
|
+
hide: ['Global', 'EU']
|
|
414
|
+
}}
|
|
415
|
+
parameters={{
|
|
416
|
+
docs: {
|
|
417
|
+
description: {
|
|
418
|
+
story:
|
|
419
|
+
'Shows hiding multiple groups by their region codes. Both Global and EU groups are hidden.'
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}}
|
|
423
|
+
/>
|
|
424
|
+
|
|
425
|
+
<Story
|
|
426
|
+
name="Hide Multiple Groups"
|
|
427
|
+
args={{
|
|
428
|
+
regionGroups: dummyRegionGroups,
|
|
429
|
+
selectedRegions: ['CA', 'MX'],
|
|
430
|
+
usedRegions: emptyUsedRegions,
|
|
431
|
+
hide: ['global-parent', 'europe', 'us']
|
|
432
|
+
}}
|
|
433
|
+
parameters={{
|
|
434
|
+
docs: {
|
|
435
|
+
description: {
|
|
436
|
+
story:
|
|
437
|
+
'Demonstrates hiding multiple groups at once. Only the Countries group remains visible, with some regions pre-selected.'
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}}
|
|
441
|
+
/>
|
|
442
|
+
|
|
443
|
+
<Story
|
|
444
|
+
name="Three State Checkboxes"
|
|
445
|
+
args={{
|
|
446
|
+
regionGroups: dummyRegionGroups,
|
|
447
|
+
selectedRegions: ['US-CA', 'US-AZ'],
|
|
448
|
+
usedRegions: emptyUsedRegions,
|
|
449
|
+
showSelectionDisplay: true
|
|
450
|
+
}}
|
|
451
|
+
parameters={{
|
|
452
|
+
docs: {
|
|
453
|
+
description: {
|
|
454
|
+
story:
|
|
455
|
+
'Demonstrates the three-state checkbox system: empty (no selections), minus icon (partial selections), and checkmark (all selections). The United States group shows a minus icon because only some states are selected (California and Arizona). Try selecting more states to see how the checkbox changes.'
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}}
|
|
459
|
+
/>
|
|
460
|
+
|
|
461
|
+
<Story
|
|
462
|
+
name="Three State with Mixed Groups"
|
|
463
|
+
args={{
|
|
464
|
+
regionGroups: dummyRegionGroups,
|
|
465
|
+
selectedRegions: ['US-CA', 'US-AZ', 'US-FL', 'CA', 'MX'],
|
|
466
|
+
usedRegions: emptyUsedRegions,
|
|
467
|
+
showSelectionDisplay: true
|
|
468
|
+
}}
|
|
469
|
+
parameters={{
|
|
470
|
+
docs: {
|
|
471
|
+
description: {
|
|
472
|
+
story:
|
|
473
|
+
'Shows three-state checkboxes with mixed selections across multiple groups. The "Select Countries" parent group shows a minus icon because it contains both the US subgroup (partially selected) and individual countries (Canada, Mexico). This demonstrates how parent groups intelligently show partial selection state when their children have mixed selection states.'
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}}
|
|
477
|
+
/>
|