@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.
@@ -298,7 +298,7 @@
298
298
 
299
299
  .button--secondary {
300
300
  background: var(
301
- --actionSecondaryBackground,
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
- --actionSecondaryBackgroundHover,
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
  }
@@ -53,7 +53,7 @@
53
53
  .btn-group {
54
54
  display: flex;
55
55
  background: var(
56
- --action-action-secondary-background,
56
+ --background5,
57
57
  linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.1) 100%)
58
58
  );
59
59
  border-radius: var(--border-radius);
@@ -1092,7 +1092,7 @@
1092
1092
  .input {
1093
1093
  width: 100%;
1094
1094
  padding: 4px;
1095
- background: var(--backgroundInput);
1095
+ background: var(--background1);
1096
1096
  border: 1px solid var(--border2);
1097
1097
  border-radius: 4px;
1098
1098
  color: var(--text1, #ebebeb);
@@ -577,7 +577,7 @@
577
577
  .stepper-button {
578
578
  border: none;
579
579
  width: 16px;
580
- background-color: var(--actionSecondaryBackground);
580
+ background-color: var(--background4);
581
581
  color: var(--text2);
582
582
  font-size: 0.8em;
583
583
  line-height: 1;
@@ -513,7 +513,7 @@
513
513
  }
514
514
 
515
515
  .toggle-control:hover {
516
- background: var(--defaultLightHover);
516
+ background: rgba(255, 255, 255, 0.05);
517
517
  }
518
518
 
519
519
  .checkbox-input {
@@ -408,7 +408,7 @@
408
408
 
409
409
  .modal-content {
410
410
  border-radius: var(--border-radius);
411
- background: var(--background1);
411
+ background: var(--background2);
412
412
  color: var(--text1);
413
413
  position: relative;
414
414
  display: flex;
@@ -212,7 +212,7 @@
212
212
  gap: 8px;
213
213
  align-self: stretch;
214
214
  border-radius: 4px;
215
- background: var(--background3);
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(--text-text-2, #bdbdbd);
239
+ color: var(--text2);
240
240
 
241
241
  font-size: 11px;
242
242
  font-style: normal;
@@ -254,7 +254,7 @@
254
254
 
255
255
  .progress-track {
256
256
  width: 100%;
257
- background-color: var(--black);
257
+ background-color: #000000;
258
258
  border-radius: 2px;
259
259
  overflow: hidden;
260
260
  position: relative;
@@ -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
+ />