@eightshift/ui-components 2.0.0 → 2.0.2

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.
Files changed (29) hide show
  1. package/dist/assets/style-admin.css +5304 -0
  2. package/dist/assets/style-editor.css +907 -890
  3. package/dist/assets/style.css +59 -42
  4. package/dist/components/button/button.js +6 -6
  5. package/dist/components/color-pickers/solid-color-picker.js +3 -3
  6. package/dist/components/draggable/draggable-handle.js +3 -2
  7. package/dist/components/draggable/draggable.js +4 -12
  8. package/dist/components/draggable-list/draggable-list.js +2 -1
  9. package/dist/components/expandable/expandable.js +0 -6
  10. package/dist/components/link-input/link-input.js +1 -1
  11. package/dist/components/menu/menu.js +3 -3
  12. package/dist/components/notice/notice.js +1 -1
  13. package/dist/components/number-picker/number-picker.js +1 -1
  14. package/dist/components/repeater/repeater-item.js +2 -2
  15. package/dist/components/repeater/repeater.js +1 -1
  16. package/dist/components/select/async-multi-select.js +1 -1
  17. package/dist/components/select/multi-select-components.js +1 -1
  18. package/dist/components/select/multi-select.js +1 -1
  19. package/dist/components/select/styles.js +1 -1
  20. package/dist/components/select/v2/async-select.js +4 -4
  21. package/dist/components/select/v2/shared.js +1 -1
  22. package/dist/components/slider/column-config-slider.js +1 -1
  23. package/dist/components/slider/slider.js +1 -1
  24. package/dist/components/tabs/tabs.js +1 -1
  25. package/dist/components/toggle/switch.js +13 -10
  26. package/dist/components/tooltip/tooltip.js +2 -2
  27. package/dist/{multi-select-components-CkF3LyTF.js → multi-select-components-DJfz929p.js} +1 -1
  28. package/dist/style-admin.js +1 -0
  29. package/package.json +2 -1
@@ -494,7 +494,7 @@
494
494
  --color-secondary-950: var(--es-color-gray-950);
495
495
  }
496
496
 
497
- .es\:no-tw-css-reset * {
497
+ .es\:no-css-reset * {
498
498
  all: revert-layer;
499
499
  }
500
500
 
@@ -2778,6 +2778,11 @@
2778
2778
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position, ) var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
2779
2779
  }
2780
2780
 
2781
+ .es\:to-secondary-50 {
2782
+ --tw-gradient-to: var(--es-color-secondary-50);
2783
+ --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position, ) var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
2784
+ }
2785
+
2781
2786
  .es\:to-secondary-100 {
2782
2787
  --tw-gradient-to: var(--es-color-secondary-100);
2783
2788
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position, ) var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
@@ -3356,6 +3361,11 @@
3356
3361
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
3357
3362
  }
3358
3363
 
3364
+ .es\:ring-3 {
3365
+ --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentColor);
3366
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
3367
+ }
3368
+
3359
3369
  .es\:shadow {
3360
3370
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
3361
3371
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -3465,6 +3475,10 @@
3465
3475
  --tw-inset-shadow-color: var(--es-color-red-50);
3466
3476
  }
3467
3477
 
3478
+ .es\:inset-shadow-secondary-100 {
3479
+ --tw-inset-shadow-color: var(--es-color-secondary-100);
3480
+ }
3481
+
3468
3482
  .es\:inset-shadow-secondary-100\/50 {
3469
3483
  --tw-inset-shadow-color: color-mix(in oklab, var(--es-color-secondary-100) 50%, transparent);
3470
3484
  }
@@ -3489,6 +3503,10 @@
3489
3503
  --tw-inset-ring-color: color-mix(in oklab, var(--es-color-secondary-200) 20%, transparent);
3490
3504
  }
3491
3505
 
3506
+ .es\:inset-ring-secondary-200\/30 {
3507
+ --tw-inset-ring-color: color-mix(in oklab, var(--es-color-secondary-200) 30%, transparent);
3508
+ }
3509
+
3492
3510
  .es\:outline-hidden {
3493
3511
  outline-style: none;
3494
3512
  }
@@ -3758,6 +3776,10 @@
3758
3776
  }
3759
3777
  }
3760
3778
 
3779
+ .es\:group-not-disabled\:cursor-pointer:is(:where(.es\:group):not(:disabled, [data-rac][data-disabled]) *) {
3780
+ cursor: pointer;
3781
+ }
3782
+
3761
3783
  @media (hover: hover) {
3762
3784
  .es\:group-hover\:text-black:is(:where(.es\:group):hover *) {
3763
3785
  color: var(--es-color-black);
@@ -3768,6 +3790,19 @@
3768
3790
  }
3769
3791
  }
3770
3792
 
3793
+ .es\:group-focus\:border-accent-500:is(:where(.es\:group):focus *) {
3794
+ border-color: var(--es-color-accent-500);
3795
+ }
3796
+
3797
+ .es\:group-focus\:ring-2:is(:where(.es\:group):focus *) {
3798
+ --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentColor);
3799
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
3800
+ }
3801
+
3802
+ .es\:group-focus\:ring-accent-500\/50:is(:where(.es\:group):focus *) {
3803
+ --tw-ring-color: color-mix(in oklab, var(--es-color-accent-500) 50%, transparent);
3804
+ }
3805
+
3771
3806
  .es\:group-focus\:outline-hidden:is(:where(.es\:group):focus *) {
3772
3807
  outline-style: none;
3773
3808
  }
@@ -3783,6 +3818,10 @@
3783
3818
  border-color: var(--es-color-accent-500);
3784
3819
  }
3785
3820
 
3821
+ .es\:group-focus-visible\:border-accent-600:is(:where(.es\:group):is(:focus-visible:not(:focus), [data-rac][data-focus-visible]) *) {
3822
+ border-color: var(--es-color-accent-600);
3823
+ }
3824
+
3786
3825
  .es\:group-focus-visible\:opacity-100:is(:where(.es\:group):is(:focus-visible:not(:focus), [data-rac][data-focus-visible]) *) {
3787
3826
  opacity: 1;
3788
3827
  }
@@ -3792,11 +3831,6 @@
3792
3831
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
3793
3832
  }
3794
3833
 
3795
- .es\:group-focus-visible\:ring:is(:where(.es\:group):is(:focus-visible:not(:focus), [data-rac][data-focus-visible]) *) {
3796
- --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentColor);
3797
- box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
3798
- }
3799
-
3800
3834
  .es\:group-focus-visible\:ring-2:is(:where(.es\:group):is(:focus-visible:not(:focus), [data-rac][data-focus-visible]) *) {
3801
3835
  --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentColor);
3802
3836
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -4104,10 +4138,6 @@
4104
4138
  background-color: var(--es-color-red-50);
4105
4139
  }
4106
4140
 
4107
- .es\:hover\:bg-red-500\/5:hover {
4108
- background-color: color-mix(in oklab, var(--es-color-red-500) 5%, transparent);
4109
- }
4110
-
4111
4141
  .es\:hover\:bg-red-500\/15:hover {
4112
4142
  background-color: color-mix(in oklab, var(--es-color-red-500) 15%, transparent);
4113
4143
  }
@@ -4180,7 +4210,11 @@
4180
4210
  }
4181
4211
  }
4182
4212
 
4183
- .es\:not-disabled\:not-selected\:hover\:bg-secondary-100:not(:disabled, [data-rac][data-disabled]):not([data-selected]):hover {
4213
+ .es\:not-disabled\:hover\:bg-red-500\/5:not(:disabled, [data-rac][data-disabled]):hover {
4214
+ background-color: color-mix(in oklab, var(--es-color-red-500) 5%, transparent);
4215
+ }
4216
+
4217
+ .es\:not-disabled\:hover\:bg-secondary-100:not(:disabled, [data-rac][data-disabled]):hover, .es\:not-disabled\:not-selected\:hover\:bg-secondary-100:not(:disabled, [data-rac][data-disabled]):not([data-selected]):hover {
4184
4218
  background-color: var(--es-color-secondary-100);
4185
4219
  }
4186
4220
 
@@ -4206,6 +4240,10 @@
4206
4240
  }
4207
4241
  }
4208
4242
 
4243
+ .es\:focus\:border-accent-500:focus {
4244
+ border-color: var(--es-color-accent-500);
4245
+ }
4246
+
4209
4247
  .es\:focus\:text-current:focus {
4210
4248
  color: currentColor;
4211
4249
  }
@@ -4224,17 +4262,6 @@
4224
4262
  --tw-ring-color: color-mix(in oklab, var(--es-color-accent-500) 50%, transparent);
4225
4263
  }
4226
4264
 
4227
- .es\:focus\:outline-hidden:focus {
4228
- outline-style: none;
4229
- }
4230
-
4231
- @media (forced-colors: active) {
4232
- .es\:focus\:outline-hidden:focus {
4233
- outline-offset: 2px;
4234
- outline: 2px solid #0000;
4235
- }
4236
- }
4237
-
4238
4265
  .es\:focus-visible\:z-10:is(:focus-visible:not(:focus), [data-rac][data-focus-visible]) {
4239
4266
  z-index: 10;
4240
4267
  }
@@ -4281,21 +4308,11 @@
4281
4308
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4282
4309
  }
4283
4310
 
4284
- .es\:focus-visible\:ring:is(:focus-visible:not(:focus), [data-rac][data-focus-visible]) {
4285
- --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentColor);
4286
- box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4287
- }
4288
-
4289
4311
  .es\:focus-visible\:ring-2:is(:focus-visible:not(:focus), [data-rac][data-focus-visible]) {
4290
4312
  --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentColor);
4291
4313
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4292
4314
  }
4293
4315
 
4294
- .es\:focus-visible\:ring-3:is(:focus-visible:not(:focus), [data-rac][data-focus-visible]) {
4295
- --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentColor);
4296
- box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4297
- }
4298
-
4299
4316
  .es\:focus-visible\:ring-accent-500\/50:is(:focus-visible:not(:focus), [data-rac][data-focus-visible]) {
4300
4317
  --tw-ring-color: color-mix(in oklab, var(--es-color-accent-500) 50%, transparent);
4301
4318
  }
@@ -4596,26 +4613,26 @@
4596
4613
  animation: var(--motion-all-exit-animations);
4597
4614
  }
4598
4615
 
4599
- .es\:motion-safe\:data-\[placement\=left\]\:-motion-translate-x-in-25[data-placement="left"] {
4600
- --motion-origin-translate-x: calc(25% * -1);
4616
+ .es\:motion-safe\:data-\[placement\=left\]\:motion-translate-x-in-25[data-placement="left"] {
4617
+ --motion-origin-translate-x: 25%;
4601
4618
  --motion-translate-in-animation: motion-translate-in calc(var(--motion-translate-duration) * var(--motion-translate-perceptual-duration-multiplier)) var(--motion-translate-timing) var(--motion-translate-delay) both;
4602
4619
  animation: var(--motion-all-loop-and-enter-animations);
4603
4620
  }
4604
4621
 
4605
- .es\:motion-safe\:data-\[placement\=left\]\:motion-translate-x-out-\[-12\.5\%\][data-placement="left"] {
4606
- --motion-end-translate-x: -12.5%;
4622
+ .es\:motion-safe\:data-\[placement\=left\]\:motion-translate-x-out-\[12\.5\%\][data-placement="left"] {
4623
+ --motion-end-translate-x: 12.5%;
4607
4624
  --motion-translate-out-animation: motion-translate-out calc(var(--motion-translate-duration) * var(--motion-translate-perceptual-duration-multiplier)) var(--motion-translate-timing) var(--motion-translate-delay) both;
4608
4625
  animation: var(--motion-all-exit-animations);
4609
4626
  }
4610
4627
 
4611
- .es\:motion-safe\:data-\[placement\=right\]\:motion-translate-x-in-25[data-placement="right"] {
4612
- --motion-origin-translate-x: 25%;
4628
+ .es\:motion-safe\:data-\[placement\=right\]\:-motion-translate-x-in-25[data-placement="right"] {
4629
+ --motion-origin-translate-x: calc(25% * -1);
4613
4630
  --motion-translate-in-animation: motion-translate-in calc(var(--motion-translate-duration) * var(--motion-translate-perceptual-duration-multiplier)) var(--motion-translate-timing) var(--motion-translate-delay) both;
4614
4631
  animation: var(--motion-all-loop-and-enter-animations);
4615
4632
  }
4616
4633
 
4617
- .es\:motion-safe\:data-\[placement\=right\]\:motion-translate-x-out-\[12\.5\%\][data-placement="right"] {
4618
- --motion-end-translate-x: 12.5%;
4634
+ .es\:motion-safe\:data-\[placement\=right\]\:motion-translate-x-out-\[-12\.5\%\][data-placement="right"] {
4635
+ --motion-end-translate-x: -12.5%;
4619
4636
  --motion-translate-out-animation: motion-translate-out calc(var(--motion-translate-duration) * var(--motion-translate-perceptual-duration-multiplier)) var(--motion-translate-timing) var(--motion-translate-delay) both;
4620
4637
  animation: var(--motion-all-exit-animations);
4621
4638
  }
@@ -4914,8 +4931,8 @@
4914
4931
  stroke: var(--es-color-red-500);
4915
4932
  }
4916
4933
 
4917
- .es\:\[\&\:has\(\>_\[data-focus-visible\=\"true\"\]\)\]\:ring:has( > [data-focus-visible="true"]) {
4918
- --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentColor);
4934
+ .es\:\[\&\:has\(\>_\[data-focus-visible\=\"true\"\]\)\]\:ring-2:has( > [data-focus-visible="true"]) {
4935
+ --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentColor);
4919
4936
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4920
4937
  }
4921
4938
 
@@ -150,7 +150,7 @@ const Button = (props) => {
150
150
  "es:btn-group-mid:rounded-none",
151
151
  "es:btn-group-h-start:rounded-r-none es:btn-group-v-start:rounded-b-none",
152
152
  "es:btn-group-h-end:rounded-l-none es:btn-group-v-end:rounded-t-none",
153
- "es:cursor-pointer",
153
+ "es:not-disabled:cursor-pointer",
154
154
  "es:shrink-0",
155
155
  icon && children ? "es:justify-start" : "es:justify-center",
156
156
  className
@@ -163,13 +163,13 @@ const Button = (props) => {
163
163
  large: "es:icon:size-6 es:rounded-lg"
164
164
  },
165
165
  type: {
166
- default: ["es:bg-radial-[at_50%_125%]", "es:inset-ring es:inset-shadow-xs"],
167
- selected: ["es:bg-radial-[at_50%_125%]", "es:inset-ring es:inset-shadow-xs"],
168
- danger: ["es:bg-radial-[at_50%_125%]", "es:inset-ring es:inset-shadow-xs"],
169
- ghost: ["es:border-transparent es:text-secondary-700", "es:hover:bg-secondary-100", "es:disabled:border-transparent!"],
166
+ default: "es:bg-radial-[at_50%_125%] es:inset-ring es:inset-shadow-xs",
167
+ selected: "es:bg-radial-[at_50%_125%] es:inset-ring es:inset-shadow-xs",
168
+ danger: "es:bg-radial-[at_50%_125%] es:inset-ring es:inset-shadow-xs",
169
+ ghost: "es:border-transparent es:text-secondary-700 es:not-disabled:hover:bg-secondary-100 es:disabled:border-transparent!",
170
170
  dangerGhost: [
171
171
  "es:border-transparent es:text-red-600",
172
- "es:hover:bg-red-500/5",
172
+ "es:not-disabled:hover:bg-red-500/5",
173
173
  "es:focus-visible:text-red-700",
174
174
  "es:focus-visible:ring-red-500/30 es:focus-visible:border-red-600 es:focus-visible:inset-ring-red-100",
175
175
  "es:disabled:border-transparent!"
@@ -1307,7 +1307,7 @@ const SolidColorPicker = (props) => {
1307
1307
  yChannel: "lightness",
1308
1308
  className: clsx(
1309
1309
  "es:size-48 es:rounded-md es:border es:border-secondary-300 es:shadow-sm es:transition",
1310
- 'es:[&:has(>_[data-focus-visible="true"])]:ring es:[&:has(>_[data-focus-visible="true"])]:ring-accent-500/50',
1310
+ 'es:[&:has(>_[data-focus-visible="true"])]:ring-2 es:[&:has(>_[data-focus-visible="true"])]:ring-accent-500/50',
1311
1311
  "es:disabled:bg-linear-to-r! es:disabled:from-white es:disabled:to-secondary-100"
1312
1312
  ),
1313
1313
  onChange: handleChange,
@@ -1328,7 +1328,7 @@ const SolidColorPicker = (props) => {
1328
1328
  {
1329
1329
  className: clsx(
1330
1330
  "es:h-7 es:w-48 es:rounded-md es:border es:border-secondary-300 es:shadow-sm",
1331
- 'es:[&:has(>_[data-focus-visible="true"])]:ring es:[&:has(>_[data-focus-visible="true"])]:ring-accent-500/50',
1331
+ 'es:[&:has(>_[data-focus-visible="true"])]:ring-2 es:[&:has(>_[data-focus-visible="true"])]:ring-accent-500/50',
1332
1332
  "es:disabled:bg-linear-to-r! es:disabled:from-white es:disabled:to-secondary-100"
1333
1333
  ),
1334
1334
  children: /* @__PURE__ */ jsx($e2b71ec1d6016406$export$a3cc47cee1c1ccc, { className: "es:top-3.25 es:size-5 es:rounded-full es:border es:border-white es:shadow-[0_0_0_1px_black] es:transition es:dragging:scale-110! es:disabled:invisible" })
@@ -1348,7 +1348,7 @@ const SolidColorPicker = (props) => {
1348
1348
  {
1349
1349
  className: clsx(
1350
1350
  "es:h-7 es:w-48 es:rounded-md es:border es:border-secondary-300 es:shadow-sm",
1351
- 'es:[&:has(>_[data-focus-visible="true"])]:ring es:[&:has(>_[data-focus-visible="true"])]:ring-accent-500/50',
1351
+ 'es:[&:has(>_[data-focus-visible="true"])]:ring-2 es:[&:has(>_[data-focus-visible="true"])]:ring-accent-500/50',
1352
1352
  "es:disabled:bg-linear-to-r! es:disabled:from-white es:disabled:to-secondary-100"
1353
1353
  ),
1354
1354
  style: () => {
@@ -29,9 +29,10 @@ const DraggableHandle = (props) => {
29
29
  "es:flex es:h-5 es:w-4 es:cursor-pointer es:items-center es:justify-center es:rounded es:border es:border-secondary-200 es:bg-white es:text-secondary-400 es:transition",
30
30
  "es:icon:size-4 es:icon:shrink-0",
31
31
  "es:active:border-accent-500/30 es:active:bg-accent-50 es:active:text-accent-500",
32
- "es:focus:outline-hidden es:focus-visible:border-accent-500 es:focus-visible:outline-hidden es:focus-visible:ring es:focus-visible:ring-accent-500/50",
32
+ "es:any-focus:outline-hidden",
33
+ status !== "dragging" && "es:focus:border-accent-500 es:focus:ring-2 es:focus:ring-accent-500/50",
33
34
  "es:hover:text-accent-500",
34
- status === "dragging" && "es:border-accent-600! es:bg-accent-500! es:text-white! es:shadow-sm es:shadow-accent-500/30",
35
+ status === "dragging" && "es:border-accent-600! es:bg-accent-500! es:text-white! es:shadow-sm es:shadow-accent-500/30 es:ring-3 es:ring-accent-500/50",
35
36
  className
36
37
  ),
37
38
  ref: handleRef,
@@ -5859,20 +5859,12 @@ const Draggable3 = (props) => {
5859
5859
  children: /* @__PURE__ */ jsx(
5860
5860
  DragDropProvider,
5861
5861
  {
5862
- onDragOver: ({ operation: { source, target } }) => {
5863
- if (!source || !target) {
5862
+ onDragOver: (event) => setItems((items2) => move(items2, event)),
5863
+ onDragEnd: (event) => {
5864
+ if (event == null ? void 0 : event.canceled) {
5864
5865
  return;
5865
5866
  }
5866
- setItems((items2) => move(items2, source));
5867
- },
5868
- onDragEnd: ({ operation: { source, target }, canceled }) => {
5869
- if (canceled) {
5870
- return;
5871
- }
5872
- if (!source || !target) {
5873
- return;
5874
- }
5875
- setItems((items2) => move(items2, source));
5867
+ setItems((items2) => move(items2, event));
5876
5868
  onChange(items);
5877
5869
  },
5878
5870
  children: items.map((item, index) => /* @__PURE__ */ jsx(
@@ -116,7 +116,8 @@ const DraggableList = (props) => {
116
116
  "es:min-h-8 es:w-full",
117
117
  "es:flex es:items-center es:gap-1 es:rounded-lg",
118
118
  "es:transition-[box-shadow,background-color,filter,opacity,border-color]",
119
- "es:focus:outline-hidden es:focus-visible:ring es:focus-visible:ring-accent-500/50",
119
+ "es:border es:border-transparent",
120
+ "es:any-focus:outline-hidden es:focus:ring-2 es:focus:ring-accent-500/50 es:focus:border-accent-500",
120
121
  isDisabled && "es:grayscale",
121
122
  isDragged && "es:bg-white es:opacity-50",
122
123
  isSelected && "es:bg-accent-50",
@@ -266,12 +266,6 @@ const Expandable = (props) => {
266
266
  $28f4fd908f0de97f$export$74a362b31437ec83,
267
267
  {
268
268
  isExpanded: isOpen,
269
- onExpandedChange: (value) => {
270
- setIsOpen(value);
271
- if (onOpenChange) {
272
- onOpenChange(!isOpen);
273
- }
274
- },
275
269
  className: clsx("es:w-full es:rounded-xl es:border es:border-secondary-300/0 es:text-sm es:transition", isOpen && "es:border-secondary-300/100 es:shadow-lg", className),
276
270
  ...other,
277
271
  children: [
@@ -162,7 +162,7 @@ const LinkInput = (props) => {
162
162
  suggestionList.setFilterText("");
163
163
  onChange({ url: void 0, isAnchor: false });
164
164
  },
165
- className: "es:focus:outline-hidden",
165
+ className: "es:any-focus:outline-hidden",
166
166
  children: [
167
167
  !(shouldShowSuggestions && suggestionList.isLoading) && /* @__PURE__ */ jsx(Tooltip, { text: __("Clear", "eightshift-ui-components"), children: /* @__PURE__ */ jsx(
168
168
  "div",
@@ -112,7 +112,7 @@ const Menu = (props) => {
112
112
  /* @__PURE__ */ jsx(
113
113
  Popover,
114
114
  {
115
- className: "es:p-0! es:focus:outline-hidden",
115
+ className: "es:p-0! es:any-focus:outline-hidden",
116
116
  "aria-label": ariaLabel,
117
117
  wrapperClassName: clsx(!hasSubmenuItems && "es:overflow-y-auto"),
118
118
  ...popoverProps,
@@ -260,14 +260,14 @@ const SubMenuItem = (props) => {
260
260
  Popover,
261
261
  {
262
262
  "aria-label": props["aria-label"] ?? __("Submenu", "eightshift-ui-components"),
263
- className: "es:p-0! es:focus:outline-hidden",
263
+ className: "es:p-0! es:any-focus:outline-hidden",
264
264
  offset: -1,
265
265
  ...popoverProps,
266
266
  children: /* @__PURE__ */ jsx(
267
267
  $3674c52c6b3c5bce$export$d9b273488cd8ce6f,
268
268
  {
269
269
  "aria-label": props["aria-label"] ?? __("Submenu", "eightshift-ui-components"),
270
- className: "es:focus:outline-hidden",
270
+ className: "es:any-focus:outline-hidden",
271
271
  children
272
272
  }
273
273
  )
@@ -85,7 +85,7 @@ const Notice = (props) => {
85
85
  "span",
86
86
  {
87
87
  className: clsx(
88
- "es:col-span-1 es:col-start-1 es:row-span-2 es:row-start-1 es:shrink-0 es:self-center es:icon:size-7",
88
+ "es:col-span-1 es:col-start-1 es:row-span-2 es:row-start-1 es:shrink-0 es:icon:size-7",
89
89
  alignIconToTitle ? "es:self-baseline" : "es:self-center",
90
90
  styles[type].iconColor
91
91
  ),
@@ -237,7 +237,7 @@ const NumberPicker = ({
237
237
  {
238
238
  onFocus: () => setIsInputFocused(true),
239
239
  onBlur: () => setIsInputFocused(false),
240
- className: "es:col-start-2 es:row-span-2 es:border-none! es:bg-transparent es:px-0! es:py-1! es:text-sm es:tabular-nums es:shadow-none! es:outline-hidden! es:selection:bg-accent-500/20 es:selection:text-accent-950 es:focus:shadow-none! es:focus:outline-hidden",
240
+ className: "es:col-start-2 es:row-span-2 es:border-none! es:bg-transparent es:px-0! es:py-1! es:text-sm es:tabular-nums es:shadow-none! es:outline-hidden! es:selection:bg-accent-500/20 es:selection:text-accent-950 es:focus:shadow-none! es:any-focus:outline-hidden",
241
241
  placeholder,
242
242
  style: {
243
243
  width: fixedWidth ? `${fixedWidth}ch` : `calc(${min < 0 ? "0.75ch + " : ""}${(_d = (_c = max ?? 1e3) == null ? void 0 : _c.toString()) == null ? void 0 : _d.length} * 1ch)`
@@ -44,9 +44,9 @@ const RepeaterItem = (props) => {
44
44
  ),
45
45
  labelClassName: clsx(className, isDragged ? "es:cursor-grabbing" : "es:cursor-grab"),
46
46
  headerClassName: clsx(
47
- "es:transition es:rounded-md",
47
+ "es:transition es:rounded-lg es:border es:border-transparent",
48
48
  isSelected && "es:bg-accent-50 es:border-accent-100",
49
- "es:group-focus:outline-hidden es:group-focus-visible:ring es:group-focus-visible:ring-accent-500/50"
49
+ "es:group-focus:outline-hidden es:group-focus:border-accent-500 es:group-focus:ring-2 es:group-focus:ring-accent-500/50"
50
50
  ),
51
51
  customOpenButton: ({ open, toggleOpen, tooltip, disabled }) => {
52
52
  return /* @__PURE__ */ jsxs("div", { className: "es:flex es:items-center es:gap-px", children: [
@@ -160,7 +160,7 @@ const Repeater = (props) => {
160
160
  return /* @__PURE__ */ jsx(
161
161
  "li",
162
162
  {
163
- className: "es:group es:w-full es:list-none es:focus:outline-hidden",
163
+ className: "es:group es:w-full es:list-none es:any-focus:outline-hidden",
164
164
  ...rest,
165
165
  children: /* @__PURE__ */ jsx(
166
166
  RepeaterContext.Provider,
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useId } from "react";
3
3
  import { A as AsyncSelect$1 } from "../../react-select-async.esm-DcVLw9X5.js";
4
- import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-CkF3LyTF.js";
4
+ import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-DJfz929p.js";
5
5
  import { r as restrictToParentElement } from "../../modifiers.esm-BuJQPI1X.js";
6
6
  import { CustomSelectDefaultMultiValueRemove, CustomSelectDefaultDropdownIndicator, CustomSelectDefaultClearIndicator } from "./custom-select-default-components.js";
7
7
  import { BaseControl } from "../base-control/base-control.js";
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { g, a, b } from "../../multi-select-components-CkF3LyTF.js";
2
+ import { g, a, b } from "../../multi-select-components-DJfz929p.js";
3
3
  import "../../lite-DVmmD_-j.js";
4
4
  export {
5
5
  g as getDragEndHandler,
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useId } from "react";
3
3
  import { S as StateManagedSelect$1 } from "../../react-select.esm-OZ0cmTjg.js";
4
- import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-CkF3LyTF.js";
4
+ import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-DJfz929p.js";
5
5
  import { r as restrictToParentElement } from "../../modifiers.esm-BuJQPI1X.js";
6
6
  import { CustomSelectDefaultMultiValueRemove, CustomSelectDefaultDropdownIndicator, CustomSelectDefaultClearIndicator } from "./custom-select-default-components.js";
7
7
  import { getValue } from "./shared.js";
@@ -4,7 +4,7 @@ const controlStyles = {
4
4
  focus: "es:ring-2 es:ring-accent-500/50 es:border-accent-500!"
5
5
  };
6
6
  const placeholderStyles = "es:text-gray-400 es:ml-1";
7
- const selectInputStyles = "es:focus:outline-hidden es:[&_input]:shadow-none! es:[&_input:focus]:shadow-none!";
7
+ const selectInputStyles = "es:any-focus:outline-hidden es:[&_input]:shadow-none! es:[&_input:focus]:shadow-none!";
8
8
  const valueContainerStyles = "es:gap-1 es:ml-1 es:my-1 es:overflow-visible!";
9
9
  const singleValueStyles = "es:ml-0.5 es:px-1";
10
10
  const multiValueStyles = clsx(
@@ -172,7 +172,7 @@ const __ExperimentalAsyncSelect = (props) => {
172
172
  className: clsx(
173
173
  "es:relative es:flex es:max-w-80 es:items-center es:gap-1 es:p-1 es:focus-visible:outline-hidden es:focus-visible:ring-2 es:focus-visible:ring-accent-500/50",
174
174
  "es:h-9 es:rounded-lg es:border es:border-secondary-300 es:bg-white es:text-sm es:shadow-xs es:transition",
175
- "es:focus:outline-hidden",
175
+ "es:any-focus:outline-hidden",
176
176
  !inline && "es:w-full",
177
177
  disabled && "es:select-none",
178
178
  "es:has-[[aria-haspopup=listbox][data-focus-visible=true],[aria-autocomplete=list][data-focus-visible=true]]:border-accent-500 es:has-[[aria-haspopup=listbox][data-focus-visible=true],[aria-autocomplete=list][data-focus-visible=true]]:ring-2 es:has-[[aria-haspopup=listbox][data-focus-visible=true],[aria-autocomplete=list][data-focus-visible=true]]:ring-accent-500/50"
@@ -228,14 +228,14 @@ const __ExperimentalAsyncSelect = (props) => {
228
228
  {
229
229
  className: ({ isEntering, isExiting }) => clsx(
230
230
  "es:flex es:w-80 es:min-w-9 es:max-w-80 es:flex-col es:overflow-x-hidden es:rounded-lg es:border es:border-secondary-200 es:bg-white es:text-sm es:shadow-lg",
231
- "es:focus:outline-hidden",
231
+ "es:any-focus:outline-hidden",
232
232
  isEntering && "es:motion-safe:motion-preset-slide-down-sm es:motion-safe:motion-duration-300 es:motion-reduce:motion-preset-fade-md",
233
233
  isExiting && "es:not-motion-reduce:motion-translate-y-out-[-2.5%] es:motion-opacity-out-0 es:motion-duration-200"
234
234
  ),
235
235
  placement: "bottom left",
236
236
  triggerRef: ref,
237
237
  children: [
238
- !list.isLoading && list.items.length > 0 && /* @__PURE__ */ jsx($eed445e0843c11d0$export$41f133550aa26f48, { className: "es:space-y-0.5 es:p-1 es:focus:outline-hidden", children: (item) => {
238
+ !list.isLoading && list.items.length > 0 && /* @__PURE__ */ jsx($eed445e0843c11d0$export$41f133550aa26f48, { className: "es:space-y-0.5 es:p-1 es:any-focus:outline-hidden", children: (item) => {
239
239
  return /* @__PURE__ */ jsxs(
240
240
  OptionItemBase,
241
241
  {
@@ -282,7 +282,7 @@ const ClearButton = ({ disabled }) => {
282
282
  {
283
283
  "aria-label": __("Clear value", "eightshift-ui-components"),
284
284
  className: clsx(
285
- "es:mr-7 es:flex es:h-6 es:w-8 es:items-center es:justify-center es:rounded es:text-sm es:text-secondary-600 es:transition es:hover:bg-red-50 es:hover:text-red-900 es:focus:outline-hidden es:focus:ring-2 es:focus:ring-accent-500/50 es:disabled:text-secondary-300 es:cursor-pointer",
285
+ "es:mr-7 es:flex es:h-6 es:w-8 es:items-center es:justify-center es:rounded es:text-sm es:text-secondary-600 es:transition es:hover:bg-red-50 es:hover:text-red-900 es:any-focus:outline-hidden es:focus:ring-2 es:focus:ring-accent-500/50 es:disabled:text-secondary-300 es:cursor-pointer",
286
286
  isEmpty ? "es:hidden" : "es:flex"
287
287
  ),
288
288
  onPress: () => state == null ? void 0 : state.setSelectedKey(null),
@@ -10,7 +10,7 @@ const OptionItemBase = (props) => {
10
10
  textValue: (_a = props == null ? void 0 : props.value) == null ? void 0 : _a.label,
11
11
  className: clsx(
12
12
  "es:flex es:min-h-9 es:select-none es:items-center es:gap-1 es:rounded es:p-2 es:transition",
13
- "es:focus:outline-hidden",
13
+ "es:any-focus:outline-hidden",
14
14
  "es:hover:bg-secondary-100 es:hover:outline-hidden",
15
15
  "selected:es:bg-accent-600/15 selected:es:text-accent-950",
16
16
  "es:focus-visible:bg-secondary-100 es:focus-visible:outline-hidden",
@@ -162,7 +162,7 @@ const ColumnConfigSlider = (props) => {
162
162
  i === 0 && "es:translate-y-1/2! es:self-center es:justify-self-start",
163
163
  i === 1 && "es:translate-x-full! es:translate-y-1/2! es:self-center es:justify-self-end",
164
164
  "es:shadow dragging:es:bg-accent-600 es:disabled:opacity-0",
165
- "es:focus-visible:ring es:focus-visible:ring-accent-500/50",
165
+ "es:focus-visible:ring-2 es:focus-visible:ring-accent-500/50",
166
166
  "es:border-accent-600 es:bg-accent-500 es:shadow-accent-600/50",
167
167
  "es:hover:cursor-grab dragging:es:cursor-grabbing"
168
168
  ),
@@ -283,7 +283,7 @@ const Slider = (props) => {
283
283
  "es:absolute es:size-3.5 es:rounded-full es:border es:transition es:duration-300",
284
284
  vertical ? "es:translate-x-1/2!" : "es:translate-y-1/2!",
285
285
  "es:shadow dragging:es:bg-accent-600 es:disabled:border-secondary-200 es:disabled:bg-secondary-100 es:disabled:shadow-none",
286
- "es:focus-visible:ring es:focus-visible:ring-accent-500/50",
286
+ "es:focus-visible:ring-2 es:focus-visible:ring-accent-500/50",
287
287
  "es:border-accent-600 es:bg-accent-500 es:shadow-accent-600/50",
288
288
  "es:hover:cursor-grab dragging:es:cursor-grabbing"
289
289
  ),
@@ -668,7 +668,7 @@ const TabPanel2 = (props) => {
668
668
  $5e8ad37a45e1c704$export$3d96ec278d3efce4,
669
669
  {
670
670
  ...other,
671
- className: clsx("es:mt-1.5 es:space-y-2.5 es:text-sm es:focus:outline-hidden", className),
671
+ className: clsx("es:mt-1.5 es:space-y-2.5 es:text-sm es:any-focus:outline-hidden", className),
672
672
  children
673
673
  }
674
674
  );
@@ -111,22 +111,23 @@ const Switch2 = (props) => {
111
111
  isDisabled: disabled,
112
112
  isSelected: checked ?? false,
113
113
  onChange,
114
- className: "es:group es:flex es:items-center es:justify-between es:gap-2",
114
+ className: "es:group es:flex es:items-center es:justify-between es:gap-2 es:any-focus:outline-hidden",
115
115
  children: [
116
116
  children,
117
117
  /* @__PURE__ */ jsx("div", { className: clsx("es:flex es:shrink-0 es:items-center es:justify-center", className), children: /* @__PURE__ */ jsx(
118
118
  "div",
119
119
  {
120
120
  className: clsx(
121
- "es:shrink-0 es:cursor-pointer es:no-webkit-highlight",
121
+ "es:shrink-0 es:group-not-disabled:cursor-pointer es:no-webkit-highlight",
122
122
  "es:h-5 es:w-9 es:p-[0.1875rem] es:rounded-full",
123
- "es:outline-hidden es:bg-radial-[circle_at_75%_50%]",
123
+ "es:bg-radial-[circle_at_75%_50%]",
124
124
  "es:border es:inset-ring es:inset-shadow-xs",
125
125
  "es:transition",
126
- "es:group-focus-visible:ring-2 es:group-focus-visible:ring-accent-500/50 es:focus-visible:ring-3 es:shadow-xs",
127
- !checked && "es:border-secondary-400 es:inset-ring-secondary-100 es:from-white es:to-secondary-100",
128
- checked && "es:border-accent-700/75 es:inset-ring-accent-500 es:to-accent-500 es:from-accent-600 es:shadow-accent-600/30",
129
- disabled && "es:cursor-default es:border-secondary-300 es:bg-white"
126
+ "es:group-focus-visible:ring-2 es:group-focus-visible:ring-accent-500/50 es:group-focus-visible:border-accent-600",
127
+ !checked && !disabled && "es:border-secondary-400 es:inset-ring-secondary-100 es:from-white es:to-secondary-100",
128
+ checked && !disabled && "es:border-accent-700/75 es:inset-ring-accent-500 es:to-accent-500 es:from-accent-600 es:shadow-accent-600/30",
129
+ disabled && "es:cursor-default es:border-secondary-300 es:from-white es:to-secondary-50 es:inset-ring-secondary-200/30 es:inset-shadow-secondary-100",
130
+ !disabled && "es:shadow-xs"
130
131
  ),
131
132
  children: /* @__PURE__ */ jsx(
132
133
  "span",
@@ -134,9 +135,11 @@ const Switch2 = (props) => {
134
135
  className: clsx(
135
136
  "es:block es:size-3 es:rounded-full es:border es:will-change-transform es:bg-radial",
136
137
  "es:transition es:motion-ease-spring-snappy es:ease-[var(--motion-spring-snappy)]",
137
- !checked && "es:border-secondary-500 es:from-secondary-500 es:to-secondary-600 es:scale-95",
138
- checked && "es:translate-x-4 es:border-accent-600/20 es:from-white es:to-accent-500/30 es:from-40% es:bg-white es:shadow-xs es:shadow-accent-900/60",
139
- disabled && "es:border-secondary-300 es:bg-white",
138
+ !checked && "es:scale-95",
139
+ !checked && !disabled && "es:border-secondary-500 es:from-secondary-500 es:to-secondary-600",
140
+ checked && "es:translate-x-4",
141
+ checked && !disabled && "es:border-accent-600/20 es:from-white es:to-accent-500/30 es:from-40% es:bg-white es:shadow-xs es:shadow-accent-900/60",
142
+ disabled && "es:border-secondary-400 es:bg-secondary-100",
140
143
  isIndeterminate && "es:translate-x-2 es:scale-100"
141
144
  )
142
145
  }
@@ -427,8 +427,8 @@ const Tooltip2 = (props) => {
427
427
  "es:z-20 es:select-none es:rounded-md es:border es:px-1.5 es:py-0.5 es:text-sm es:shadow es:backdrop-blur-3xl es:will-change-[transform,opacity] es:fill-mode-forwards",
428
428
  theme === "light" && "es:border-secondary-200 es:bg-white/90 es:text-secondary-700",
429
429
  theme === "dark" && "es:border-secondary-600 es:bg-black/80 es:text-secondary-100",
430
- isEntering && "es:motion-opacity-in es:motion-duration-300 es:motion-safe:data-[placement=left]:-motion-translate-x-in-25 es:motion-safe:data-[placement=right]:motion-translate-x-in-25 es:motion-safe:data-[placement=top]:motion-translate-y-in-25 es:motion-safe:data-[placement=bottom]:-motion-translate-y-in-25 es:motion-ease-spring-bouncier es:motion-ease-linear/opacity",
431
- isExiting && "es:motion-opacity-out es:motion-duration-200 es:motion-safe:data-[placement=left]:motion-translate-x-out-[-12.5%] es:motion-safe:data-[placement=right]:motion-translate-x-out-[12.5%] es:motion-safe:data-[placement=top]:motion-translate-y-out-[12.5%] es:motion-safe:data-[placement=bottom]:motion-translate-y-out-[-12.5%] es:motion-ease-spring-bouncier es:motion-ease-linear/opacity",
430
+ isEntering && "es:motion-opacity-in es:motion-duration-300 es:motion-safe:data-[placement=left]:motion-translate-x-in-25 es:motion-safe:data-[placement=right]:-motion-translate-x-in-25 es:motion-safe:data-[placement=top]:motion-translate-y-in-25 es:motion-safe:data-[placement=bottom]:-motion-translate-y-in-25 es:motion-ease-spring-bouncier es:motion-ease-linear/opacity",
431
+ isExiting && "es:motion-opacity-out es:motion-duration-200 es:motion-safe:data-[placement=left]:motion-translate-x-out-[12.5%] es:motion-safe:data-[placement=right]:motion-translate-x-out-[-12.5%] es:motion-safe:data-[placement=top]:motion-translate-y-out-[12.5%] es:motion-safe:data-[placement=bottom]:motion-translate-y-out-[-12.5%] es:motion-ease-spring-bouncier es:motion-ease-linear/opacity",
432
432
  className
433
433
  ),
434
434
  children: [
@@ -3704,7 +3704,7 @@ const getMultiValue = (ComponentToRender) => {
3704
3704
  style,
3705
3705
  ref: setNodeRef,
3706
3706
  className: clsx(
3707
- "es:focus:outline-hidden",
3707
+ "es:any-focus:outline-hidden",
3708
3708
  // Make non-dragged tiles have no pointer events, so you don't see hover styles on things like the remove button.
3709
3709
  CSS.Translate.toString(transform) && "es:[&_>_div]:pointer-events-none",
3710
3710
  // Make the currently grabbed item into a fancy holo-like thing.
@@ -0,0 +1 @@
1
+ import './assets/style-admin.css';