@eightshift/ui-components 5.1.2 → 5.1.4
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/README.md +3 -6
- package/dist/assets/style-admin.css +184 -69
- package/dist/assets/style-editor.css +184 -69
- package/dist/assets/style.css +184 -69
- package/dist/components/notice/notice.js +33 -33
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.js +5 -2
- package/dist/components/select/v2/async-select.js +6 -4
- package/dist/components/select/v2/single-select.js +1 -0
- package/dist/components/tabs/tabs.js +12 -9
- package/dist/icons/icons.js +6 -6
- package/package.json +1 -1
package/dist/assets/style.css
CHANGED
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
--tw-ring-offset-width: 0px;
|
|
44
44
|
--tw-ring-offset-color: #fff;
|
|
45
45
|
--tw-ring-offset-shadow: 0 0 #0000;
|
|
46
|
+
--tw-outline-style: solid;
|
|
46
47
|
--tw-blur: initial;
|
|
47
48
|
--tw-brightness: initial;
|
|
48
49
|
--tw-contrast: initial;
|
|
@@ -150,7 +151,6 @@
|
|
|
150
151
|
--es-color-secondary-900: var(--es-color-zinc-900);
|
|
151
152
|
--es-color-accent-50: var(--es-color-teal-50);
|
|
152
153
|
--es-color-accent-100: var(--es-color-teal-100);
|
|
153
|
-
--es-color-accent-300: var(--es-color-teal-300);
|
|
154
154
|
--es-color-accent-400: var(--es-color-teal-400);
|
|
155
155
|
--es-color-accent-500: var(--es-color-teal-500);
|
|
156
156
|
--es-color-accent-600: var(--es-color-teal-600);
|
|
@@ -161,13 +161,12 @@
|
|
|
161
161
|
--es-color-red-50: oklch(97.1% .013 17.38);
|
|
162
162
|
--es-color-red-100: oklch(93.6% .032 17.717);
|
|
163
163
|
--es-color-red-200: oklch(88.5% .062 18.334);
|
|
164
|
-
--es-color-red-300: oklch(80.8% .114 19.571);
|
|
165
164
|
--es-color-red-500: oklch(63.7% .237 25.331);
|
|
166
165
|
--es-color-red-600: oklch(57.7% .245 27.325);
|
|
167
166
|
--es-color-red-700: oklch(50.5% .213 27.518);
|
|
168
167
|
--es-color-red-800: oklch(44.4% .177 26.899);
|
|
169
168
|
--es-color-red-900: oklch(39.6% .141 25.723);
|
|
170
|
-
--es-color-
|
|
169
|
+
--es-color-orange-100: oklch(95.4% .038 75.164);
|
|
171
170
|
--es-color-orange-200: oklch(90.1% .076 70.697);
|
|
172
171
|
--es-color-orange-500: oklch(70.5% .213 47.604);
|
|
173
172
|
--es-color-orange-700: oklch(55.3% .195 38.402);
|
|
@@ -197,10 +196,6 @@
|
|
|
197
196
|
--es-color-green-800: oklch(44.8% .119 151.328);
|
|
198
197
|
--es-color-green-900: oklch(39.3% .095 152.535);
|
|
199
198
|
--es-color-green-950: oklch(26.6% .065 152.934);
|
|
200
|
-
--es-color-emerald-200: oklch(90.5% .093 164.15);
|
|
201
|
-
--es-color-emerald-500: oklch(69.6% .17 162.48);
|
|
202
|
-
--es-color-emerald-600: oklch(59.6% .145 163.225);
|
|
203
|
-
--es-color-emerald-950: oklch(26.2% .051 172.552);
|
|
204
199
|
--es-color-teal-50: oklch(98.4% .014 180.72);
|
|
205
200
|
--es-color-teal-100: oklch(95.3% .051 180.801);
|
|
206
201
|
--es-color-teal-200: oklch(91% .096 180.426);
|
|
@@ -225,7 +220,11 @@
|
|
|
225
220
|
--es-color-blue-800: oklch(42.4% .199 265.638);
|
|
226
221
|
--es-color-blue-900: oklch(37.9% .146 265.522);
|
|
227
222
|
--es-color-blue-950: oklch(28.2% .091 267.935);
|
|
223
|
+
--es-color-indigo-100: oklch(93% .034 272.788);
|
|
228
224
|
--es-color-indigo-500: oklch(58.5% .233 277.117);
|
|
225
|
+
--es-color-indigo-600: oklch(51.1% .262 276.966);
|
|
226
|
+
--es-color-indigo-700: oklch(45.7% .24 277.023);
|
|
227
|
+
--es-color-indigo-800: oklch(39.8% .195 277.366);
|
|
229
228
|
--es-color-violet-50: oklch(96.9% .016 293.756);
|
|
230
229
|
--es-color-violet-100: oklch(94.3% .029 294.588);
|
|
231
230
|
--es-color-violet-200: oklch(89.4% .057 293.283);
|
|
@@ -2659,23 +2658,13 @@
|
|
|
2659
2658
|
}
|
|
2660
2659
|
}
|
|
2661
2660
|
|
|
2662
|
-
.es\:border-blue-
|
|
2663
|
-
border-color: var(--es-color-blue-
|
|
2661
|
+
.es\:border-blue-500\/75 {
|
|
2662
|
+
border-color: var(--es-color-blue-500);
|
|
2664
2663
|
}
|
|
2665
2664
|
|
|
2666
2665
|
@supports (color: color-mix(in lab, red, red)) {
|
|
2667
|
-
.es\:border-blue-
|
|
2668
|
-
border-color: color-mix(in oklab, var(--es-color-blue-
|
|
2669
|
-
}
|
|
2670
|
-
}
|
|
2671
|
-
|
|
2672
|
-
.es\:border-emerald-500\/75 {
|
|
2673
|
-
border-color: var(--es-color-emerald-500);
|
|
2674
|
-
}
|
|
2675
|
-
|
|
2676
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
2677
|
-
.es\:border-emerald-500\/75 {
|
|
2678
|
-
border-color: color-mix(in oklab, var(--es-color-emerald-500) 75%, transparent);
|
|
2666
|
+
.es\:border-blue-500\/75 {
|
|
2667
|
+
border-color: color-mix(in oklab, var(--es-color-blue-500) 75%, transparent);
|
|
2679
2668
|
}
|
|
2680
2669
|
}
|
|
2681
2670
|
|
|
@@ -2691,6 +2680,26 @@
|
|
|
2691
2680
|
border-color: var(--es-color-gray-300);
|
|
2692
2681
|
}
|
|
2693
2682
|
|
|
2683
|
+
.es\:border-green-600\/75 {
|
|
2684
|
+
border-color: var(--es-color-green-600);
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2688
|
+
.es\:border-green-600\/75 {
|
|
2689
|
+
border-color: color-mix(in oklab, var(--es-color-green-600) 75%, transparent);
|
|
2690
|
+
}
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2693
|
+
.es\:border-indigo-600\/60 {
|
|
2694
|
+
border-color: var(--es-color-indigo-600);
|
|
2695
|
+
}
|
|
2696
|
+
|
|
2697
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2698
|
+
.es\:border-indigo-600\/60 {
|
|
2699
|
+
border-color: color-mix(in oklab, var(--es-color-indigo-600) 60%, transparent);
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2694
2703
|
.es\:border-orange-500\/75 {
|
|
2695
2704
|
border-color: var(--es-color-orange-500);
|
|
2696
2705
|
}
|
|
@@ -2705,8 +2714,14 @@
|
|
|
2705
2714
|
border-color: var(--es-color-red-200) !important;
|
|
2706
2715
|
}
|
|
2707
2716
|
|
|
2708
|
-
.es\:border-red-
|
|
2709
|
-
border-color: var(--es-color-red-
|
|
2717
|
+
.es\:border-red-600\/60 {
|
|
2718
|
+
border-color: var(--es-color-red-600);
|
|
2719
|
+
}
|
|
2720
|
+
|
|
2721
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2722
|
+
.es\:border-red-600\/60 {
|
|
2723
|
+
border-color: color-mix(in oklab, var(--es-color-red-600) 60%, transparent);
|
|
2724
|
+
}
|
|
2710
2725
|
}
|
|
2711
2726
|
|
|
2712
2727
|
.es\:border-red-700\/50 {
|
|
@@ -2879,16 +2894,6 @@
|
|
|
2879
2894
|
background-color: var(--es-color-cyan-500);
|
|
2880
2895
|
}
|
|
2881
2896
|
|
|
2882
|
-
.es\:bg-emerald-200\/5 {
|
|
2883
|
-
background-color: var(--es-color-emerald-200);
|
|
2884
|
-
}
|
|
2885
|
-
|
|
2886
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
2887
|
-
.es\:bg-emerald-200\/5 {
|
|
2888
|
-
background-color: color-mix(in oklab, var(--es-color-emerald-200) 5%, transparent);
|
|
2889
|
-
}
|
|
2890
|
-
}
|
|
2891
|
-
|
|
2892
2897
|
.es\:bg-fuchsia-500 {
|
|
2893
2898
|
background-color: var(--es-color-fuchsia-500);
|
|
2894
2899
|
}
|
|
@@ -2897,6 +2902,16 @@
|
|
|
2897
2902
|
background-color: var(--es-color-gray-100);
|
|
2898
2903
|
}
|
|
2899
2904
|
|
|
2905
|
+
.es\:bg-green-200\/5 {
|
|
2906
|
+
background-color: var(--es-color-green-200);
|
|
2907
|
+
}
|
|
2908
|
+
|
|
2909
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2910
|
+
.es\:bg-green-200\/5 {
|
|
2911
|
+
background-color: color-mix(in oklab, var(--es-color-green-200) 5%, transparent);
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
|
|
2900
2915
|
.es\:bg-green-500 {
|
|
2901
2916
|
background-color: var(--es-color-green-500);
|
|
2902
2917
|
}
|
|
@@ -3429,10 +3444,6 @@
|
|
|
3429
3444
|
padding-inline: calc(var(--es-spacing) * 2.5);
|
|
3430
3445
|
}
|
|
3431
3446
|
|
|
3432
|
-
.es\:px-3 {
|
|
3433
|
-
padding-inline: calc(var(--es-spacing) * 3);
|
|
3434
|
-
}
|
|
3435
|
-
|
|
3436
3447
|
.es\:px-4 {
|
|
3437
3448
|
padding-inline: calc(var(--es-spacing) * 4);
|
|
3438
3449
|
}
|
|
@@ -3449,6 +3460,10 @@
|
|
|
3449
3460
|
padding-block: calc(var(--es-spacing) * .5);
|
|
3450
3461
|
}
|
|
3451
3462
|
|
|
3463
|
+
.es\:py-0\.25 {
|
|
3464
|
+
padding-block: calc(var(--es-spacing) * .25);
|
|
3465
|
+
}
|
|
3466
|
+
|
|
3452
3467
|
.es\:py-1 {
|
|
3453
3468
|
padding-block: calc(var(--es-spacing) * 1);
|
|
3454
3469
|
}
|
|
@@ -3477,6 +3492,10 @@
|
|
|
3477
3492
|
padding-block: calc(var(--es-spacing) * 4);
|
|
3478
3493
|
}
|
|
3479
3494
|
|
|
3495
|
+
.es\:pt-0\.5 {
|
|
3496
|
+
padding-top: calc(var(--es-spacing) * .5);
|
|
3497
|
+
}
|
|
3498
|
+
|
|
3480
3499
|
.es\:pt-1 {
|
|
3481
3500
|
padding-top: calc(var(--es-spacing) * 1);
|
|
3482
3501
|
}
|
|
@@ -3561,6 +3580,10 @@
|
|
|
3561
3580
|
padding-left: calc(var(--es-spacing) * 2);
|
|
3562
3581
|
}
|
|
3563
3582
|
|
|
3583
|
+
.es\:pl-2\.5 {
|
|
3584
|
+
padding-left: calc(var(--es-spacing) * 2.5);
|
|
3585
|
+
}
|
|
3586
|
+
|
|
3564
3587
|
.es\:pl-3 {
|
|
3565
3588
|
padding-left: calc(var(--es-spacing) * 3);
|
|
3566
3589
|
}
|
|
@@ -3730,24 +3753,6 @@
|
|
|
3730
3753
|
color: var(--es-color-cyan-500);
|
|
3731
3754
|
}
|
|
3732
3755
|
|
|
3733
|
-
.es\:text-emerald-500 {
|
|
3734
|
-
color: var(--es-color-emerald-500);
|
|
3735
|
-
}
|
|
3736
|
-
|
|
3737
|
-
.es\:text-emerald-600 {
|
|
3738
|
-
color: var(--es-color-emerald-600);
|
|
3739
|
-
}
|
|
3740
|
-
|
|
3741
|
-
.es\:text-emerald-950\/60 {
|
|
3742
|
-
color: var(--es-color-emerald-950);
|
|
3743
|
-
}
|
|
3744
|
-
|
|
3745
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
3746
|
-
.es\:text-emerald-950\/60 {
|
|
3747
|
-
color: color-mix(in oklab, var(--es-color-emerald-950) 60%, transparent);
|
|
3748
|
-
}
|
|
3749
|
-
}
|
|
3750
|
-
|
|
3751
3756
|
.es\:text-fuchsia-500 {
|
|
3752
3757
|
color: var(--es-color-fuchsia-500);
|
|
3753
3758
|
}
|
|
@@ -3774,10 +3779,46 @@
|
|
|
3774
3779
|
color: var(--es-color-green-500);
|
|
3775
3780
|
}
|
|
3776
3781
|
|
|
3782
|
+
.es\:text-green-600 {
|
|
3783
|
+
color: var(--es-color-green-600);
|
|
3784
|
+
}
|
|
3785
|
+
|
|
3786
|
+
.es\:text-green-700 {
|
|
3787
|
+
color: var(--es-color-green-700);
|
|
3788
|
+
}
|
|
3789
|
+
|
|
3790
|
+
.es\:text-green-950\/60 {
|
|
3791
|
+
color: var(--es-color-green-950);
|
|
3792
|
+
}
|
|
3793
|
+
|
|
3794
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
3795
|
+
.es\:text-green-950\/60 {
|
|
3796
|
+
color: color-mix(in oklab, var(--es-color-green-950) 60%, transparent);
|
|
3797
|
+
}
|
|
3798
|
+
}
|
|
3799
|
+
|
|
3777
3800
|
.es\:text-indigo-500 {
|
|
3778
3801
|
color: var(--es-color-indigo-500);
|
|
3779
3802
|
}
|
|
3780
3803
|
|
|
3804
|
+
.es\:text-indigo-600 {
|
|
3805
|
+
color: var(--es-color-indigo-600);
|
|
3806
|
+
}
|
|
3807
|
+
|
|
3808
|
+
.es\:text-indigo-700 {
|
|
3809
|
+
color: var(--es-color-indigo-700);
|
|
3810
|
+
}
|
|
3811
|
+
|
|
3812
|
+
.es\:text-indigo-800\/70 {
|
|
3813
|
+
color: var(--es-color-indigo-800);
|
|
3814
|
+
}
|
|
3815
|
+
|
|
3816
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
3817
|
+
.es\:text-indigo-800\/70 {
|
|
3818
|
+
color: color-mix(in oklab, var(--es-color-indigo-800) 70%, transparent);
|
|
3819
|
+
}
|
|
3820
|
+
}
|
|
3821
|
+
|
|
3781
3822
|
.es\:text-lime-500 {
|
|
3782
3823
|
color: var(--es-color-lime-500);
|
|
3783
3824
|
}
|
|
@@ -3812,13 +3853,13 @@
|
|
|
3812
3853
|
color: var(--es-color-red-700);
|
|
3813
3854
|
}
|
|
3814
3855
|
|
|
3815
|
-
.es\:text-red-
|
|
3816
|
-
color: var(--es-color-red-
|
|
3856
|
+
.es\:text-red-900\/70 {
|
|
3857
|
+
color: var(--es-color-red-900);
|
|
3817
3858
|
}
|
|
3818
3859
|
|
|
3819
3860
|
@supports (color: color-mix(in lab, red, red)) {
|
|
3820
|
-
.es\:text-red-
|
|
3821
|
-
color: color-mix(in oklab, var(--es-color-red-
|
|
3861
|
+
.es\:text-red-900\/70 {
|
|
3862
|
+
color: color-mix(in oklab, var(--es-color-red-900) 70%, transparent);
|
|
3822
3863
|
}
|
|
3823
3864
|
}
|
|
3824
3865
|
|
|
@@ -3990,6 +4031,11 @@
|
|
|
3990
4031
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
3991
4032
|
}
|
|
3992
4033
|
|
|
4034
|
+
.es\:inset-ring-1 {
|
|
4035
|
+
--tw-inset-ring-shadow: inset 0 0 0 1px var(--tw-inset-ring-color, currentcolor);
|
|
4036
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
4037
|
+
}
|
|
4038
|
+
|
|
3993
4039
|
.es\:shadow-accent-500\/25 {
|
|
3994
4040
|
--tw-shadow-color: var(--es-color-accent-500);
|
|
3995
4041
|
}
|
|
@@ -4060,13 +4106,23 @@
|
|
|
4060
4106
|
}
|
|
4061
4107
|
}
|
|
4062
4108
|
|
|
4063
|
-
.es\:shadow-
|
|
4064
|
-
--tw-shadow-color: var(--es-color-
|
|
4109
|
+
.es\:shadow-green-500\/15 {
|
|
4110
|
+
--tw-shadow-color: var(--es-color-green-500);
|
|
4065
4111
|
}
|
|
4066
4112
|
|
|
4067
4113
|
@supports (color: color-mix(in lab, red, red)) {
|
|
4068
|
-
.es\:shadow-
|
|
4069
|
-
--tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--es-color-
|
|
4114
|
+
.es\:shadow-green-500\/15 {
|
|
4115
|
+
--tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--es-color-green-500) 15%, transparent) var(--tw-shadow-alpha), transparent);
|
|
4116
|
+
}
|
|
4117
|
+
}
|
|
4118
|
+
|
|
4119
|
+
.es\:shadow-indigo-500\/15 {
|
|
4120
|
+
--tw-shadow-color: var(--es-color-indigo-500);
|
|
4121
|
+
}
|
|
4122
|
+
|
|
4123
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4124
|
+
.es\:shadow-indigo-500\/15 {
|
|
4125
|
+
--tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--es-color-indigo-500) 15%, transparent) var(--tw-shadow-alpha), transparent);
|
|
4070
4126
|
}
|
|
4071
4127
|
}
|
|
4072
4128
|
|
|
@@ -4182,6 +4238,28 @@
|
|
|
4182
4238
|
--tw-inset-ring-color: var(--es-color-accent-600);
|
|
4183
4239
|
}
|
|
4184
4240
|
|
|
4241
|
+
.es\:inset-ring-blue-100 {
|
|
4242
|
+
--tw-inset-ring-color: var(--es-color-blue-100);
|
|
4243
|
+
}
|
|
4244
|
+
|
|
4245
|
+
.es\:inset-ring-green-100 {
|
|
4246
|
+
--tw-inset-ring-color: var(--es-color-green-100);
|
|
4247
|
+
}
|
|
4248
|
+
|
|
4249
|
+
.es\:inset-ring-indigo-100\/0 {
|
|
4250
|
+
--tw-inset-ring-color: var(--es-color-indigo-100);
|
|
4251
|
+
}
|
|
4252
|
+
|
|
4253
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4254
|
+
.es\:inset-ring-indigo-100\/0 {
|
|
4255
|
+
--tw-inset-ring-color: color-mix(in oklab, var(--es-color-indigo-100) 0%, transparent);
|
|
4256
|
+
}
|
|
4257
|
+
}
|
|
4258
|
+
|
|
4259
|
+
.es\:inset-ring-orange-100 {
|
|
4260
|
+
--tw-inset-ring-color: var(--es-color-orange-100);
|
|
4261
|
+
}
|
|
4262
|
+
|
|
4185
4263
|
.es\:inset-ring-red-100 {
|
|
4186
4264
|
--tw-inset-ring-color: var(--es-color-red-100);
|
|
4187
4265
|
}
|
|
@@ -4228,6 +4306,15 @@
|
|
|
4228
4306
|
}
|
|
4229
4307
|
}
|
|
4230
4308
|
|
|
4309
|
+
.es\:outline-2 {
|
|
4310
|
+
outline-style: var(--tw-outline-style);
|
|
4311
|
+
outline-width: 2px;
|
|
4312
|
+
}
|
|
4313
|
+
|
|
4314
|
+
.es\:outline-white {
|
|
4315
|
+
outline-color: var(--es-color-white);
|
|
4316
|
+
}
|
|
4317
|
+
|
|
4231
4318
|
.es\:blur-\[0\.5px\] {
|
|
4232
4319
|
--tw-blur: blur(.5px);
|
|
4233
4320
|
filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
|
|
@@ -4647,7 +4734,7 @@
|
|
|
4647
4734
|
background-color: var(--es-color-accent-50);
|
|
4648
4735
|
}
|
|
4649
4736
|
|
|
4650
|
-
.es\:group-selected\:bg-accent-500\/10:is(:where(.es\:group)[data-selected] *) {
|
|
4737
|
+
.es\:group-selected\:bg-accent-500:is(:where(.es\:group)[data-selected] *), .es\:group-selected\:bg-accent-500\/10:is(:where(.es\:group)[data-selected] *) {
|
|
4651
4738
|
background-color: var(--es-color-accent-500);
|
|
4652
4739
|
}
|
|
4653
4740
|
|
|
@@ -6120,6 +6207,10 @@
|
|
|
6120
6207
|
}
|
|
6121
6208
|
}
|
|
6122
6209
|
|
|
6210
|
+
.es\:selected\:border-accent-500[data-selected] {
|
|
6211
|
+
border-color: var(--es-color-accent-500);
|
|
6212
|
+
}
|
|
6213
|
+
|
|
6123
6214
|
.es\:selected\:border-accent-600[data-selected] {
|
|
6124
6215
|
border-color: var(--es-color-accent-600);
|
|
6125
6216
|
}
|
|
@@ -6139,17 +6230,31 @@
|
|
|
6139
6230
|
background-image: linear-gradient(var(--tw-gradient-stops));
|
|
6140
6231
|
}
|
|
6141
6232
|
|
|
6142
|
-
.es\:selected\:from-accent-
|
|
6143
|
-
--tw-gradient-from: var(--es-color-accent-
|
|
6233
|
+
.es\:selected\:from-accent-400\/10[data-selected] {
|
|
6234
|
+
--tw-gradient-from: var(--es-color-accent-400);
|
|
6235
|
+
}
|
|
6236
|
+
|
|
6237
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
6238
|
+
.es\:selected\:from-accent-400\/10[data-selected] {
|
|
6239
|
+
--tw-gradient-from: color-mix(in oklab, var(--es-color-accent-400) 10%, transparent);
|
|
6240
|
+
}
|
|
6241
|
+
}
|
|
6242
|
+
|
|
6243
|
+
.es\:selected\:from-accent-400\/10[data-selected] {
|
|
6244
|
+
--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));
|
|
6245
|
+
}
|
|
6246
|
+
|
|
6247
|
+
.es\:selected\:from-accent-400\/15[data-selected] {
|
|
6248
|
+
--tw-gradient-from: var(--es-color-accent-400);
|
|
6144
6249
|
}
|
|
6145
6250
|
|
|
6146
6251
|
@supports (color: color-mix(in lab, red, red)) {
|
|
6147
|
-
.es\:selected\:from-accent-
|
|
6148
|
-
--tw-gradient-from: color-mix(in oklab, var(--es-color-accent-
|
|
6252
|
+
.es\:selected\:from-accent-400\/15[data-selected] {
|
|
6253
|
+
--tw-gradient-from: color-mix(in oklab, var(--es-color-accent-400) 15%, transparent);
|
|
6149
6254
|
}
|
|
6150
6255
|
}
|
|
6151
6256
|
|
|
6152
|
-
.es\:selected\:from-accent-
|
|
6257
|
+
.es\:selected\:from-accent-400\/15[data-selected] {
|
|
6153
6258
|
--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));
|
|
6154
6259
|
}
|
|
6155
6260
|
|
|
@@ -6177,6 +6282,10 @@
|
|
|
6177
6282
|
--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));
|
|
6178
6283
|
}
|
|
6179
6284
|
|
|
6285
|
+
.es\:selected\:text-accent-700[data-selected] {
|
|
6286
|
+
color: var(--es-color-accent-700);
|
|
6287
|
+
}
|
|
6288
|
+
|
|
6180
6289
|
.es\:selected\:text-accent-900[data-selected] {
|
|
6181
6290
|
color: var(--es-color-accent-900);
|
|
6182
6291
|
}
|
|
@@ -6710,6 +6819,12 @@
|
|
|
6710
6819
|
initial-value: 0 0 #0000;
|
|
6711
6820
|
}
|
|
6712
6821
|
|
|
6822
|
+
@property --tw-outline-style {
|
|
6823
|
+
syntax: "*";
|
|
6824
|
+
inherits: false;
|
|
6825
|
+
initial-value: solid;
|
|
6826
|
+
}
|
|
6827
|
+
|
|
6713
6828
|
@property --tw-blur {
|
|
6714
6829
|
syntax: "*";
|
|
6715
6830
|
inherits: false
|
|
@@ -30,64 +30,64 @@ const Notice = (props) => {
|
|
|
30
30
|
}
|
|
31
31
|
const styles = {
|
|
32
32
|
info: {
|
|
33
|
-
icon: icons.
|
|
34
|
-
className: "es:border-blue-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
icon: icons.info,
|
|
34
|
+
className: "es:border-blue-500/75 es:shadow-blue-500/15 es:bg-blue-200/5 es:inset-ring-blue-100",
|
|
35
|
+
iconColorClassName: "es:text-blue-500",
|
|
36
|
+
textColorClassName: "es:text-blue-500 es:saturate-75",
|
|
37
|
+
subtitleColorClassName: "es:text-blue-950/60"
|
|
38
38
|
},
|
|
39
39
|
success: {
|
|
40
40
|
icon: icons.checkSquare,
|
|
41
|
-
className: "es:border-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
className: "es:border-green-600/75 es:shadow-green-500/15 es:bg-green-200/5 es:inset-ring-green-100",
|
|
42
|
+
iconColorClassName: "es:text-green-600",
|
|
43
|
+
textColorClassName: "es:text-green-700",
|
|
44
|
+
subtitleColorClassName: "es:text-green-950/60"
|
|
45
45
|
},
|
|
46
46
|
warning: {
|
|
47
47
|
icon: icons.warning,
|
|
48
|
-
className: "es:border-orange-500/75 es:shadow-orange-500/15 es:bg-orange-200/5",
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
className: "es:border-orange-500/75 es:shadow-orange-500/15 es:bg-orange-200/5 es:inset-ring-orange-100",
|
|
49
|
+
iconColorClassName: "es:text-orange-500",
|
|
50
|
+
textColorClassName: "es:text-orange-700",
|
|
51
|
+
subtitleColorClassName: "es:text-orange-950/60"
|
|
52
52
|
},
|
|
53
53
|
error: {
|
|
54
54
|
icon: icons.errorCircle,
|
|
55
|
-
className: "es:border-red-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
className: "es:border-red-600/60 es:shadow-red-500/15 es:bg-red-200/5 es:inset-ring-red-100",
|
|
56
|
+
iconColorClassName: "es:text-red-600",
|
|
57
|
+
textColorClassName: "es:text-red-700",
|
|
58
|
+
subtitleColorClassName: "es:text-red-900/70"
|
|
59
59
|
},
|
|
60
60
|
placeholder: {
|
|
61
61
|
icon: icons.componentGeneric,
|
|
62
|
-
className: "es:border-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
className: "es:border-indigo-600/60 es:shadow-indigo-500/15 es:bg-white es:outline-2 es:outline-white es:inset-ring-indigo-100/0 es:border-dashed",
|
|
63
|
+
iconColorClassName: "es:text-indigo-600",
|
|
64
|
+
textColorClassName: "es:text-indigo-700",
|
|
65
|
+
subtitleColorClassName: "es:text-indigo-800/70"
|
|
66
66
|
},
|
|
67
67
|
default: {
|
|
68
|
-
className: "es:border-secondary-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
className: "es:border-secondary-400 es:shadow-secondary-300/25 es:bg-secondary-200/5 es:inset-ring-secondary-100",
|
|
69
|
+
iconColorClassName: "es:text-secondary-500",
|
|
70
|
+
textColorClassName: "es:text-secondary-900",
|
|
71
|
+
subtitleColorClassName: "es:text-secondary-500"
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
74
|
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
77
|
className: clsx(
|
|
78
|
-
"es:grid es:grid-cols-[auto_1fr] es:grid-rows-[auto_auto] es:rounded-xl es:border es:bg-linear-to-tr es:shadow-sm",
|
|
78
|
+
"es:grid es:grid-cols-[auto_1fr] es:grid-rows-[auto_auto] es:rounded-xl es:border es:bg-linear-to-tr es:shadow-sm es:inset-ring-1",
|
|
79
79
|
styles[type].className,
|
|
80
|
-
icon || styles[type].icon ? "es:gap-x-1.5 es:p-2" : "es:px-2 es:py-2",
|
|
80
|
+
icon || styles[type].icon ? "es:gap-x-1.5 es:p-2 es:pr-3 es:pl-2.5" : "es:px-2.5 es:py-2",
|
|
81
81
|
className
|
|
82
82
|
),
|
|
83
83
|
children: [
|
|
84
84
|
(icon || styles[type].icon) && /* @__PURE__ */ jsx(
|
|
85
|
-
"
|
|
85
|
+
"div",
|
|
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:icon:size-
|
|
88
|
+
"es:col-span-1 es:col-start-1 es:row-span-2 es:row-start-1 es:shrink-0 es:icon:size-5.5",
|
|
89
89
|
alignIconToTitle ? "es:self-baseline" : "es:self-center",
|
|
90
|
-
styles[type].
|
|
90
|
+
styles[type].iconColorClassName
|
|
91
91
|
),
|
|
92
92
|
children: icon ?? styles[type].icon
|
|
93
93
|
}
|
|
@@ -98,7 +98,7 @@ const Notice = (props) => {
|
|
|
98
98
|
className: clsx(
|
|
99
99
|
"es:col-span-2 es:col-start-2 es:text-balance es:text-sm es:leading-tight",
|
|
100
100
|
subtitle ? "es:self-end" : "es:row-span-2 es:self-center",
|
|
101
|
-
styles[type].
|
|
101
|
+
styles[type].textColorClassName
|
|
102
102
|
),
|
|
103
103
|
children: label
|
|
104
104
|
}
|
|
@@ -107,8 +107,8 @@ const Notice = (props) => {
|
|
|
107
107
|
"span",
|
|
108
108
|
{
|
|
109
109
|
className: clsx(
|
|
110
|
-
"es:col-span-2 es:col-start-2 es:text-balance es:text-xs es:leading-tight",
|
|
111
|
-
styles[type].
|
|
110
|
+
"es:col-span-2 es:col-start-2 es:text-balance es:text-xs es:leading-tight es:pt-0.5",
|
|
111
|
+
styles[type].subtitleColorClassName,
|
|
112
112
|
label ? "es:self-start" : "es:row-span-2 es:self-center"
|
|
113
113
|
),
|
|
114
114
|
children: subtitle
|
|
@@ -30,7 +30,7 @@ import { RepeaterContext } from "./repeater-context.js";
|
|
|
30
30
|
*/
|
|
31
31
|
const RepeaterItem = (props) => {
|
|
32
32
|
const { children, icon, label, subtitle, "aria-label": ariaLabel, className, actions, textValue, expandDisabled, menuOptions, noMenuButton, ...rest } = props;
|
|
33
|
-
const { deleteItem, duplicateItem, isDragged, isOutOfBounds, isSelected, canDelete, canAdd, allOpen, setAllOpen, setOpenItems, id, isItemOpen } = useContext(RepeaterContext);
|
|
33
|
+
const { deleteItem, duplicateItem, isDragged, isOutOfBounds, isSelected, canDelete, canAdd, allOpen, setAllOpen, setOpenItems, id, isItemOpen, noDuplicateButton } = useContext(RepeaterContext);
|
|
34
34
|
return /* @__PURE__ */ jsx(
|
|
35
35
|
Expandable,
|
|
36
36
|
{
|
|
@@ -71,7 +71,7 @@ const RepeaterItem = (props) => {
|
|
|
71
71
|
children: [
|
|
72
72
|
menuOptions,
|
|
73
73
|
menuOptions && /* @__PURE__ */ jsx(MenuSeparator, {}),
|
|
74
|
-
/* @__PURE__ */ jsx(
|
|
74
|
+
!noDuplicateButton && /* @__PURE__ */ jsx(
|
|
75
75
|
MenuItem,
|
|
76
76
|
{
|
|
77
77
|
disabled: !canAdd,
|
|
@@ -38,6 +38,7 @@ const fixIds = (items, itemIdBase) => {
|
|
|
38
38
|
* @param {JSX.Element} [props.addButton] - If provided, overrides the default add button. `(props: { addItem: (additional: Object<string, any>?) => void, disabled: Boolean }) => JSX.Element`.
|
|
39
39
|
* @param {string} [props.className] - Classes to pass to the item wrapper.
|
|
40
40
|
* @param {boolean} [props.noExpandAllButton] - If `true`, the "Expand all"/"Collapse all" button is not displayed.
|
|
41
|
+
* @param {boolean} [props.noDuplicateButton] - If `true`, the "Duplicate" button is not displayed.
|
|
41
42
|
* @param {boolean} [props.noDragToRemove] - If `true`, the "drag to remove" functionality will be disabled.
|
|
42
43
|
* @param {JSX.Element|JSX.Element[]} [props.moreOptions] - Options to add in the "More options" menu.
|
|
43
44
|
* @param {JSX.Element} [props.emptyState] - Allows overriding the default empty state.
|
|
@@ -93,6 +94,7 @@ const Repeater = (props) => {
|
|
|
93
94
|
className,
|
|
94
95
|
emptyState,
|
|
95
96
|
noExpandAllButton,
|
|
97
|
+
noDuplicateButton,
|
|
96
98
|
noDragToRemove,
|
|
97
99
|
moreOptions,
|
|
98
100
|
hidden
|
|
@@ -104,7 +106,7 @@ const Repeater = (props) => {
|
|
|
104
106
|
}
|
|
105
107
|
const items = fixIds(rawItems ?? [], itemIdBase);
|
|
106
108
|
const canDelete = items.length > (minItems ?? 0);
|
|
107
|
-
const canAdd = items.length < (maxItems ?? Number.MAX_SAFE_INTEGER);
|
|
109
|
+
const canAdd = items.length < (maxItems ?? Number.MAX_SAFE_INTEGER) && !addDisabled;
|
|
108
110
|
if (hidden) {
|
|
109
111
|
return null;
|
|
110
112
|
}
|
|
@@ -219,7 +221,8 @@ const Repeater = (props) => {
|
|
|
219
221
|
allOpen,
|
|
220
222
|
setAllOpen,
|
|
221
223
|
setOpenItems,
|
|
222
|
-
isItemOpen: openItems[item.id] ?? allOpen
|
|
224
|
+
isItemOpen: openItems[item.id] ?? allOpen,
|
|
225
|
+
noDuplicateButton
|
|
223
226
|
},
|
|
224
227
|
children: children({
|
|
225
228
|
...item,
|
|
@@ -30,14 +30,17 @@ import { $ as $f86e6c1ec7da6ebb$export$bc3384a35de93d66 } from "../../../useAsyn
|
|
|
30
30
|
* @param {{label: string, value: string, metadata: Object<string, any>?}} props.value - Current value of the select.
|
|
31
31
|
* @param {Function} props.onChange - Function to call when the value changes.
|
|
32
32
|
* @param {boolean} [props.clearable=false] - Whether the select is clearable.
|
|
33
|
-
* @param {boolean} [props.noSearch=false] - Whether the search is disabled.
|
|
34
33
|
* @param {boolean} [props.disabled=false] - Whether the select is disabled.
|
|
35
|
-
* @param {boolean} [props.keepMenuOpenAfterSelect=false] - Whether the menu stays open after an select.
|
|
36
34
|
* @param {string} [props.placeholder] - Placeholder text to show when no value is selected.
|
|
35
|
+
* @param {Function} [props.getLabel] - Function to get the label for the item from the fetched data. `(item: Object<string, any>) => string`
|
|
36
|
+
* @param {Function} [props.getValue] - Function to get the value for the item from the fetched data. `(item: Object<string, any>) => string`
|
|
37
|
+
* @param {Function} [props.getMeta] - Function to get the metadata for the item from the fetched data. `(item: Object<string, any>) => Object<string, any>` (optional)
|
|
38
|
+
* @param {Function} [props.getIcon] - Function to get the icon for the item from the fetched data. `(item: Object<string, any>) => JSX.Element | string`
|
|
39
|
+
* @param {Function} [props.getSubtitle] - Function to get the subtitle for the item from the fetched data. `(item: Object<string, any>) => string`
|
|
40
|
+
* @param {Function} [props.getData] - Function to pre-process the fetched data before it is used in the select. `(data: Object<string, any>[]) => Object<string, any>[]`
|
|
37
41
|
* @param {JSX.Element} [props.customMenuOption] - If provided, replaces the default item in the dropdown menu. `({ value: string, label: string, subtitle: string, metadata: any }) => JSX.Element`
|
|
38
42
|
* @param {JSX.Element} [props.customValueDisplay] - If provided, replaces the default current value display of each selected item. `({ value: string, label: string, subtitle: string, metadata: any }) => JSX.Element`
|
|
39
43
|
* @param {JSX.Element} [props.customDropdownArrow] - If provided, replaces the default dropdown arrow indicator.
|
|
40
|
-
* @param {Function} [props.processLoadedOptions] - Allows modifying (filtering, grouping, ...) options output after the items have been dynamically fetched. Must include `label`, `value`, and `id` keys in the output, additional fields can be added as required.
|
|
41
44
|
* @param {string} props.className - Classes to pass to the select menu.
|
|
42
45
|
* @param {boolean} [props.noMinWidth=false] - If `true`, the select menu will not have a minimum width.
|
|
43
46
|
* @param {boolean} [props.hidden] - If `true`, the component is not rendered.
|
|
@@ -68,7 +71,6 @@ const AsyncSelectNext = (props) => {
|
|
|
68
71
|
inline,
|
|
69
72
|
value,
|
|
70
73
|
onChange,
|
|
71
|
-
noSearch = false,
|
|
72
74
|
disabled = false,
|
|
73
75
|
clearable = false,
|
|
74
76
|
className,
|