@eightshift/ui-components 2.0.1 → 3.0.0
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/{Button-OQ5EIPvt.js → Button-D7c-vzAt.js} +5 -5
- package/dist/{Collection-CJM_asJz.js → Collection-CDEKDgvV.js} +234 -128
- package/dist/{Color-B0HgM8f4.js → Color-MV5kBVXr.js} +1 -1
- package/dist/{ColorSwatch-Dv3Wxdl_.js → ColorSwatch-BqQfVu4L.js} +5 -5
- package/dist/{ComboBox-BnlZjJ3T.js → ComboBox-BL1hyP4p.js} +42 -21
- package/dist/{Dialog-CIh-hX93.js → Dialog-s3fX5lSh.js} +199 -88
- package/dist/{FieldError-D7A6s7O5.js → FieldError-52GVSGgC.js} +2 -2
- package/dist/{FocusScope-Cs5_OoeA.js → FocusScope-DbqfVa2Z.js} +206 -43
- package/dist/{Group-D6tr3U_n.js → Group-DMRt6g_N.js} +3 -3
- package/dist/{Heading-DiYTXoIW.js → Heading-B2153VXe.js} +1 -1
- package/dist/{Hidden-DnOd_jPX.js → Hidden-rE6uR-lr.js} +2 -6
- package/dist/{Input-Se0m3ubj.js → Input-CTTTeCpo.js} +10 -10
- package/dist/{Label-Ca9uelsn.js → Label-icmbmNdI.js} +2 -2
- package/dist/{List-Br274SP1.js → List-UdOhiW-i.js} +2 -0
- package/dist/{ListBox-D9dFEh5A.js → ListBox-CfdzmefC.js} +28 -27
- package/dist/{OverlayArrow-1jx-ZyCR.js → OverlayArrow-CMh-7gEM.js} +3 -3
- package/dist/{Separator-BhZycTUp.js → Separator-BxbOoGIK.js} +4 -4
- package/dist/{Slider-BZNaJylD.js → Slider-BZO0Tvut.js} +13 -14
- package/dist/{Text-aOUPPvTO.js → Text-DVSAPY-K.js} +1 -1
- package/dist/{VisuallyHidden-ClTQo25k.js → VisuallyHidden-ooItkWYR.js} +2 -2
- package/dist/assets/style-admin.css +1320 -1348
- package/dist/assets/style-editor.css +475 -503
- package/dist/assets/style.css +475 -503
- package/dist/assets/wp-font-enhancements.css +3 -3
- package/dist/assets/wp-ui-enhancements.css +45 -45
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +5 -5
- package/dist/components/checkbox/checkbox.js +8 -8
- package/dist/components/color-pickers/color-swatch.js +2 -2
- package/dist/components/color-pickers/gradient-editor.js +2 -2
- package/dist/components/color-pickers/solid-color-picker.js +23 -25
- package/dist/components/container-panel/container-panel.js +9 -3
- package/dist/components/draggable/draggable-handle.js +4 -3
- package/dist/components/draggable/draggable.js +1166 -877
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +3 -2
- package/dist/components/expandable/expandable.js +7 -13
- package/dist/components/input-field/input-field.js +10 -9
- package/dist/components/link-input/link-input.js +9 -10
- package/dist/components/menu/menu.js +5 -5
- package/dist/components/modal/modal.js +5 -5
- package/dist/components/notice/notice.js +1 -1
- package/dist/components/number-picker/number-picker.js +14 -12
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/placeholders/image-placeholder.js +1 -1
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/radio/radio.js +16 -15
- package/dist/components/repeater/repeater-item.js +11 -4
- package/dist/components/repeater/repeater.js +33 -4
- package/dist/components/responsive/mini-responsive.js +7 -4
- package/dist/components/responsive/responsive.js +7 -4
- package/dist/components/rich-label/rich-label.js +4 -3
- package/dist/components/select/async-multi-select.js +1 -1
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +1 -1
- package/dist/components/select/styles.js +1 -1
- package/dist/components/select/v2/async-select.js +13 -13
- package/dist/components/select/v2/shared.js +3 -3
- package/dist/components/select/v2/single-select.js +22 -21
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +4 -4
- package/dist/components/tabs/tabs.js +44 -24
- package/dist/components/toggle/switch.js +20 -17
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +6 -6
- package/dist/components/tooltip/tooltip.js +17 -23
- package/dist/{context-CDOs-GuR.js → context-D2KUdwNL.js} +1 -1
- package/dist/icons/icons.js +229 -1629
- package/dist/icons/index.js +2 -3
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/{index-CcCn9HWX.js → index-BKGQ6jGS.js} +1 -1
- package/dist/{multi-select-components-CkF3LyTF.js → multi-select-components-DJfz929p.js} +1 -1
- package/dist/{react-jsx-parser.min-CVit0rZn.js → react-jsx-parser.min-DZCiis5V.js} +48 -20
- package/dist/{textSelection-BlTDSskG.js → textSelection-CrrUNX-B.js} +8 -47
- package/dist/{useButton-CmLbE5vg.js → useButton-Dl1C1478.js} +5 -5
- package/dist/{useEvent-cLDJlznQ.js → useEvent-B0b-6KBr.js} +1 -1
- package/dist/useFocusRing-CxlVCVpL.js +107 -0
- package/dist/{useFormReset-NpLM2e3G.js → useFormReset-C5OggHsw.js} +1 -1
- package/dist/{useFormValidation-BWwmZQE2.js → useFormValidation-BgSHI8kQ.js} +2 -2
- package/dist/{focusSafely-CiqTTjWy.js → useHover-B-8Wji4B.js} +305 -98
- package/dist/{useLabel-C85N3Hzw.js → useLabel-D7HkNEHT.js} +2 -2
- package/dist/{useLabels-C_2wWraB.js → useLabels-D8cxd1Z8.js} +1 -1
- package/dist/{useListState-Z7FB_NzO.js → useListState-BXnC0mNr.js} +28 -13
- package/dist/{useLocalizedStringFormatter-BQ4TF72x.js → useLocalizedStringFormatter-CFP1YZWQ.js} +1 -1
- package/dist/{useNumberField-Bm6_BVl9.js → useNumberField-ecr8uK6_.js} +10 -10
- package/dist/{useNumberFormatter-DlUVKkO7.js → useNumberFormatter-321rAb4J.js} +1 -1
- package/dist/{usePress-rg_OQIGW.js → usePress-C3dxzVyi.js} +69 -63
- package/dist/{useSingleSelectListState-Cu3xtEJS.js → useSingleSelectListState-Dgbuzw5o.js} +2 -2
- package/dist/{useToggle-DzlgBLAJ.js → useToggle-DyZydSPy.js} +9 -7
- package/dist/{useToggleState-DhSBQxkp.js → useToggleState-BZoo5qt_.js} +1 -1
- package/dist/{utils-39D0mStj.js → utils-DkCSC521.js} +38 -35
- package/package.json +32 -32
- package/dist/useFocusRing-CGp3guTX.js +0 -41
- package/dist/useFocusable-087cO5Ct.js +0 -81
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! tailwindcss v4.0.
|
|
1
|
+
/*! tailwindcss v4.0.12 | MIT License | https://tailwindcss.com */
|
|
2
2
|
.edit-post-header, .components-popover, .edit-post-sidebar, .wp-block-post-title, .components-select-control__input, .components-base-control__field, .components-base-control__label, .components-combobox-control__suggestions-container, .components-input-control__label, .components-input-control__input, .components-checkbox-control__label, .components-menu-group__label, .components-menu-item__button, .components-notice .components-notice__content, .components-tooltip, .components-modal__header, .preferences-modal__section-title, .preferences-modal__section-description, .block-editor-inserter__tabs, .editor-list-view-sidebar, .edit-post-layout__footer, .components-snackbar, .components-text-control__input {
|
|
3
|
-
font-family: var(--es-font-sans);
|
|
3
|
+
font-family: var(--es-font-sans, "Geist Variable", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
body.wp-admin {
|
|
7
|
-
font-family: var(--es-font-sans) !important;
|
|
7
|
+
font-family: var(--es-font-sans, "Geist Variable", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji") !important;
|
|
8
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! tailwindcss v4.0.
|
|
1
|
+
/*! tailwindcss v4.0.12 | MIT License | https://tailwindcss.com */
|
|
2
2
|
.edit-post-header__toolbar .components-button, .edit-post-header__settings .components-button, .editor-document-tools__left .components-button, .editor-header__center .components-button, .editor-header__settings .components-button, .edit-post-sidebar .components-button:not(.components-panel__body-toggle, .editor-post-last-revision__title), .components-snackbar, .components-toggle-group-control, .editor-post-publish-panel .components-button, .edit-post-text-editor__toolbar .components-button, .edit-post-text-editor__body .components-textarea-control__input, .media-modal-content, .media-modal-content .components-button, .components-guide__container .components-button, .components-notice__content .components-button, .editor-post-featured-image__toggle.components-button {
|
|
3
|
-
border-radius: var(--es-radius-md) !important;
|
|
3
|
+
border-radius: var(--es-radius-md, .375rem) !important;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.components-input-control__container, .components-combobox-control__suggestions-container, .components-checkbox-control__input, button.components-toggle-group-control-option-base, .editor-post-visibility__password-input {
|
|
@@ -8,80 +8,80 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.components-button-group .components-button:first-child {
|
|
11
|
-
border-top-left-radius: var(--es-radius-md) !important;
|
|
12
|
-
border-bottom-left-radius: var(--es-radius-md) !important;
|
|
11
|
+
border-top-left-radius: var(--es-radius-md, .375rem) !important;
|
|
12
|
+
border-bottom-left-radius: var(--es-radius-md, .375rem) !important;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.components-button-group .components-button:last-child {
|
|
16
|
-
border-top-right-radius: var(--es-radius-md) !important;
|
|
17
|
-
border-bottom-right-radius: var(--es-radius-md) !important;
|
|
16
|
+
border-top-right-radius: var(--es-radius-md, .375rem) !important;
|
|
17
|
+
border-bottom-right-radius: var(--es-radius-md, .375rem) !important;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.components-popover__content, .components-guide {
|
|
21
|
-
border-radius: var(--es-radius-lg) !important;
|
|
21
|
+
border-radius: var(--es-radius-lg, .5rem) !important;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.block-editor-inserter__search {
|
|
25
|
-
border-top-left-radius: var(--es-radius-lg) !important;
|
|
26
|
-
border-top-right-radius: var(--es-radius-lg) !important;
|
|
25
|
+
border-top-left-radius: var(--es-radius-lg, .5rem) !important;
|
|
26
|
+
border-top-right-radius: var(--es-radius-lg, .5rem) !important;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.media-menu-item.active {
|
|
30
|
-
border-top-left-radius: var(--es-radius-md) !important;
|
|
31
|
-
border-top-right-radius: var(--es-radius-md) !important;
|
|
30
|
+
border-top-left-radius: var(--es-radius-md, .375rem) !important;
|
|
31
|
+
border-top-right-radius: var(--es-radius-md, .375rem) !important;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.components-base-control__label, .components-input-control__label, .components-custom-select-control__label {
|
|
35
|
-
--tw-font-weight: var(--es-font-weight-normal) !important;
|
|
35
|
+
--tw-font-weight: var(--es-font-weight-normal, 400) !important;
|
|
36
36
|
font-size: 13px !important;
|
|
37
|
-
font-weight: var(--es-font-weight-normal) !important;
|
|
38
|
-
--tw-tracking: var(--es-tracking-normal) !important;
|
|
39
|
-
letter-spacing: var(--es-tracking-normal) !important;
|
|
37
|
+
font-weight: var(--es-font-weight-normal, 400) !important;
|
|
38
|
+
--tw-tracking: var(--es-tracking-normal, 0em) !important;
|
|
39
|
+
letter-spacing: var(--es-tracking-normal, 0em) !important;
|
|
40
40
|
text-transform: none !important;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.edit-post-sidebar, .interface-interface-skeleton__sidebar:not(:empty) > .interface-complementary-area__fill[style="width: 280px;"], .interface-complementary-area.editor-sidebar {
|
|
44
|
-
width: calc(var(--es-spacing) * 80) !important;
|
|
44
|
+
width: calc(var(--es-spacing, .25rem) * 80) !important;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.block-editor-block-list__block-crash-warning {
|
|
48
|
-
border-radius: var(--es-radius-lg) !important;
|
|
49
|
-
border-color: color-mix(in oklab, var(--es-color-red-700) 15%, transparent) !important;
|
|
48
|
+
border-radius: var(--es-radius-lg, .5rem) !important;
|
|
49
|
+
border-color: color-mix(in oklab, var(--es-color-red-700, oklch(.505 .213 27.518)) 15%, transparent) !important;
|
|
50
50
|
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a) !important;
|
|
51
51
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow) !important;
|
|
52
|
-
--tw-shadow-color: color-mix(in oklab, var(--es-color-red-700) 10%, transparent) !important;
|
|
52
|
+
--tw-shadow-color: color-mix(in oklab, var(--es-color-red-700, oklch(.505 .213 27.518)) 10%, transparent) !important;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.block-editor-block-list__block-crash-warning .block-editor-warning__message {
|
|
56
|
-
color: var(--es-color-red-950) !important;
|
|
56
|
+
color: var(--es-color-red-950, oklch(.258 .092 26.042)) !important;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.wp-block-missing div.block-editor-warning {
|
|
60
|
-
border-radius: var(--es-radius-lg) !important;
|
|
61
|
-
border-color: var(--es-color-zinc-300) !important;
|
|
62
|
-
background-color: color-mix(in oklab, var(--es-color-zinc-50) 75%, transparent) !important;
|
|
60
|
+
border-radius: var(--es-radius-lg, .5rem) !important;
|
|
61
|
+
border-color: var(--es-color-zinc-300, oklch(.871 .006 286.286)) !important;
|
|
62
|
+
background-color: color-mix(in oklab, var(--es-color-zinc-50, oklch(.985 0 0)) 75%, transparent) !important;
|
|
63
63
|
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a) !important;
|
|
64
64
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow) !important;
|
|
65
|
-
--tw-shadow-color: color-mix(in oklab, var(--es-color-zinc-700) 20%, transparent) !important;
|
|
65
|
+
--tw-shadow-color: color-mix(in oklab, var(--es-color-zinc-700, oklch(.37 .013 285.805)) 20%, transparent) !important;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.wp-block-missing div.block-editor-warning .block-editor-warning__message {
|
|
69
|
-
color: var(--es-color-zinc-950) !important;
|
|
69
|
+
color: var(--es-color-zinc-950, oklch(.141 .005 285.823)) !important;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.block-editor-block-contextual-toolbar, .block-editor-block-parent-selector__button {
|
|
73
73
|
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
|
|
74
74
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
75
|
-
border-radius: var(--es-radius-lg) !important;
|
|
75
|
+
border-radius: var(--es-radius-lg, .5rem) !important;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
.block-editor-block-types-list .block-editor-block-types-list__item {
|
|
79
|
-
border-radius: var(--es-radius-lg) !important;
|
|
79
|
+
border-radius: var(--es-radius-lg, .5rem) !important;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.block-editor-block-types-list .block-editor-block-types-list__item:after {
|
|
83
83
|
content: var(--tw-content);
|
|
84
|
-
border-radius: var(--es-radius-lg) !important;
|
|
84
|
+
border-radius: var(--es-radius-lg, .5rem) !important;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.block-editor-block-types-list .block-editor-block-types-list__item svg {
|
|
@@ -96,13 +96,13 @@
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.block-editor-list-view-tree .block-editor-list-view-leaf > :first-child {
|
|
99
|
-
border-top-left-radius: var(--es-radius-lg) !important;
|
|
100
|
-
border-bottom-left-radius: var(--es-radius-lg) !important;
|
|
99
|
+
border-top-left-radius: var(--es-radius-lg, .5rem) !important;
|
|
100
|
+
border-bottom-left-radius: var(--es-radius-lg, .5rem) !important;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.block-editor-list-view-tree .block-editor-list-view-leaf > :last-child {
|
|
104
|
-
border-top-right-radius: var(--es-radius-lg) !important;
|
|
105
|
-
border-bottom-right-radius: var(--es-radius-lg) !important;
|
|
104
|
+
border-top-right-radius: var(--es-radius-lg, .5rem) !important;
|
|
105
|
+
border-bottom-right-radius: var(--es-radius-lg, .5rem) !important;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.block-editor-block-inspector .block-editor-block-card .block-editor-block-icon {
|
|
@@ -110,12 +110,12 @@
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.block-editor-inserter__toggle {
|
|
113
|
-
border-radius: var(--es-radius-md) !important;
|
|
113
|
+
border-radius: var(--es-radius-md, .375rem) !important;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
:is(.edit-post-header__toolbar, .edit-post-header__settings, .editor-document-tools__left, .editor-header__center, .editor-header__settings) .components-button {
|
|
117
|
-
min-height: calc(var(--es-spacing) * 9) !important;
|
|
118
|
-
min-width: calc(var(--es-spacing) * 9) !important;
|
|
117
|
+
min-height: calc(var(--es-spacing, .25rem) * 9) !important;
|
|
118
|
+
min-width: calc(var(--es-spacing, .25rem) * 9) !important;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.editor-styles-wrapper .wp-block:not(.editor-post-title, .block-list-appender) {
|
|
@@ -125,25 +125,25 @@
|
|
|
125
125
|
.components-tooltip {
|
|
126
126
|
border-style: var(--tw-border-style);
|
|
127
127
|
border-width: 1px;
|
|
128
|
-
border-color: var(--es-color-gray-800);
|
|
129
|
-
background-color: color-mix(in oklab, var(--es-color-gray-950) 70%, transparent);
|
|
130
|
-
padding-inline: calc(var(--es-spacing) * 1);
|
|
131
|
-
padding-block: calc(var(--es-spacing) * .5);
|
|
132
|
-
color: var(--es-color-white);
|
|
128
|
+
border-color: var(--es-color-gray-800, oklch(.278 .033 256.848));
|
|
129
|
+
background-color: color-mix(in oklab, var(--es-color-gray-950, oklch(.13 .028 261.692)) 70%, transparent);
|
|
130
|
+
padding-inline: calc(var(--es-spacing, .25rem) * 1);
|
|
131
|
+
padding-block: calc(var(--es-spacing, .25rem) * .5);
|
|
132
|
+
color: var(--es-color-white, #fff);
|
|
133
133
|
--tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, #0000001a), 0 2px 4px -2px var(--tw-shadow-color, #0000001a);
|
|
134
134
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
135
|
-
--tw-backdrop-blur: blur(var(--es-blur-xl));
|
|
135
|
+
--tw-backdrop-blur: blur(var(--es-blur-xl, 24px));
|
|
136
136
|
-webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
|
|
137
137
|
backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
|
|
138
138
|
--tw-backdrop-brightness: brightness(105%);
|
|
139
139
|
--tw-backdrop-saturate: saturate(150%);
|
|
140
|
-
border-radius: var(--es-radius-md) !important;
|
|
140
|
+
border-radius: var(--es-radius-md, .375rem) !important;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.components-tooltip:has( > :first-child) {
|
|
144
|
-
border-color: var(--es-color-gray-200);
|
|
145
|
-
background-color: color-mix(in oklab, var(--es-color-white) 80%, transparent);
|
|
146
|
-
color: var(--es-color-gray-700);
|
|
144
|
+
border-color: var(--es-color-gray-200, oklch(.928 .006 264.531));
|
|
145
|
+
background-color: color-mix(in oklab, var(--es-color-white, #fff) 80%, transparent);
|
|
146
|
+
color: var(--es-color-gray-700, oklch(.373 .034 259.733));
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
@property --tw-font-weight {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $514c0188e459b4c0$export$5f1af8db9871e1d6 } from "../../Text-
|
|
2
|
+
import { $ as $514c0188e459b4c0$export$5f1af8db9871e1d6 } from "../../Text-DVSAPY-K.js";
|
|
3
3
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
4
4
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
5
5
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-
|
|
3
|
-
import {
|
|
4
|
-
import { $ as $9bf71ea28793e738$export$c5251b9e124bf29 } from "../../FocusScope-
|
|
2
|
+
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-D7c-vzAt.js";
|
|
3
|
+
import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928, l as $df56164dff5785e2$export$4338b53315abf666 } from "../../utils-DkCSC521.js";
|
|
4
|
+
import { $ as $9bf71ea28793e738$export$c5251b9e124bf29 } from "../../FocusScope-DbqfVa2Z.js";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
6
6
|
import React__default, { useState, useRef, forwardRef, createContext } from "react";
|
|
7
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-
|
|
7
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-D2KUdwNL.js";
|
|
8
8
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
9
|
-
import { c as cva } from "../../index-
|
|
9
|
+
import { c as cva } from "../../index-BKGQ6jGS.js";
|
|
10
10
|
import { Tooltip } from "../tooltip/tooltip.js";
|
|
11
11
|
import { _ as __ } from "../../default-i18n-CM1-Xvzf.js";
|
|
12
12
|
function $2680b1829e803644$export$fa142eb1681c520(props, ref) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { a as $4e85f108e88277b8$export$b085522c77523c51 } from "../../RSPContexts-2lR5GG9p.js";
|
|
3
|
-
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e,
|
|
3
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, l as $df56164dff5785e2$export$4338b53315abf666, m as $5dc95899b306f630$export$c9058316764c140e, h as $64fa3d84918910a7$export$ef03459518577ad4, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "../../utils-DkCSC521.js";
|
|
4
4
|
import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
6
6
|
import React__default, { useEffect, useRef, forwardRef, useContext, createContext } from "react";
|
|
7
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a, b as $e5be200c675c3b3a$export$a763b9476acd3eb, c as $e5be200c675c3b3a$export$dad6ae84456c676a } from "../../useFormValidation-
|
|
8
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-
|
|
9
|
-
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "../../useToggle-
|
|
10
|
-
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-
|
|
11
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-
|
|
12
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../
|
|
13
|
-
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-
|
|
7
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a, b as $e5be200c675c3b3a$export$a763b9476acd3eb, c as $e5be200c675c3b3a$export$dad6ae84456c676a } from "../../useFormValidation-BgSHI8kQ.js";
|
|
8
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-C3dxzVyi.js";
|
|
9
|
+
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "../../useToggle-DyZydSPy.js";
|
|
10
|
+
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-BZoo5qt_.js";
|
|
11
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-CxlVCVpL.js";
|
|
12
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-B-8Wji4B.js";
|
|
13
|
+
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-ooItkWYR.js";
|
|
14
14
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
15
15
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
16
16
|
import { icons } from "../../icons/icons.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-
|
|
3
|
-
import { $ as $799cddbef784668f$export$6e865ea70d7724f } from "../../Color-B0HgM8f4.js";
|
|
2
|
+
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-BqQfVu4L.js";
|
|
4
3
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
5
4
|
import { _ as __ } from "../../default-i18n-CM1-Xvzf.js";
|
|
5
|
+
import { $ as $799cddbef784668f$export$6e865ea70d7724f } from "../../Color-MV5kBVXr.js";
|
|
6
6
|
/**
|
|
7
7
|
* A simple color/gradient swatch.
|
|
8
8
|
*
|
|
@@ -6,7 +6,7 @@ import { icons } from "../../icons/icons.js";
|
|
|
6
6
|
import { SolidColorPicker } from "./solid-color-picker.js";
|
|
7
7
|
import { Slider } from "../slider/slider.js";
|
|
8
8
|
import { NumberPicker } from "../number-picker/number-picker.js";
|
|
9
|
-
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-
|
|
9
|
+
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-BqQfVu4L.js";
|
|
10
10
|
import { Menu, MenuItem } from "../menu/menu.js";
|
|
11
11
|
import { MatrixAlign } from "../matrix-align/matrix-align.js";
|
|
12
12
|
import { Spacer } from "../spacer/spacer.js";
|
|
@@ -262,7 +262,7 @@ const GradientEditor = (props) => {
|
|
|
262
262
|
onChange: (value2) => onChange(getGradientResult({ stops: gradientData.stops }, value2)),
|
|
263
263
|
options: gradientTypes,
|
|
264
264
|
wrapperProps: { className: "es:mx-auto es:w-fit" },
|
|
265
|
-
type: "
|
|
265
|
+
type: "toggleButtons"
|
|
266
266
|
}
|
|
267
267
|
),
|
|
268
268
|
gradientType === "linear" && /* @__PURE__ */ jsxs("div", { className: "es:flex es:items-center es:gap-1", children: [
|
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useMemo, useRef, useState, useCallback, forwardRef, useContext, createContext } from "react";
|
|
3
3
|
import { b as $4e85f108e88277b8$export$ebe63fadcdce34ed, c as $4e85f108e88277b8$export$44644b8a16031b5b, d as $4e85f108e88277b8$export$717b2c0a523a0b53 } from "../../RSPContexts-2lR5GG9p.js";
|
|
4
|
-
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928,
|
|
4
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, b as $64fa3d84918910a7$export$4d86445c2cf5e3, a as $64fa3d84918910a7$export$29f1550f4b0d4415, i as $64fa3d84918910a7$export$2881499e37b75b9a, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, h as $64fa3d84918910a7$export$ef03459518577ad4 } from "../../utils-DkCSC521.js";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
6
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-
|
|
7
|
-
import {
|
|
8
|
-
import { $ as $799cddbef784668f$export$6e865ea70d7724f, b as $799cddbef784668f$export$4cde5df63f53f473, a as $3493a52097159720$exports } from "../../Color-
|
|
6
|
+
import { a as $9ab94262bd0047c7$export$420e68273165f4ec, $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-CxlVCVpL.js";
|
|
7
|
+
import { b as $458b0a5536c1a7cf$export$40bfa8c7b0832715, g as $03deb23ff14920c4$export$4eaf04e54aa8eed6, y as $7215afc6de606d6b$export$de79e2c695e052f3, z as $46d819fcbaf35654$export$8f71654801c2f7cd, o as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, c as $c87311424ea30a05$export$fedb369cb70207f1, u as $c87311424ea30a05$export$a11b0059900ceec8, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-B-8Wji4B.js";
|
|
8
|
+
import { $ as $799cddbef784668f$export$6e865ea70d7724f, b as $799cddbef784668f$export$4cde5df63f53f473, a as $3493a52097159720$exports } from "../../Color-MV5kBVXr.js";
|
|
9
9
|
import { $ as $9446cca9a3875146$export$cb6e0bb50bc19463, a as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "../../number-GajL10e1.js";
|
|
10
|
-
import { $ as $
|
|
11
|
-
import { $ as $
|
|
12
|
-
import { $ as $
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { $ as $
|
|
17
|
-
import { a as $
|
|
18
|
-
import { $ as $
|
|
19
|
-
import { a as $
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "../../useFormValidation-BWwmZQE2.js";
|
|
23
|
-
import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, b as $d2e8511e6f209edf$export$e908e06f4b8e3402, c as $7d0a636d7a4dcefd$export$2123ff2b87c81ca, d as $d841c8010a73d545$export$4f384c9210e583c3, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberField-Bm6_BVl9.js";
|
|
10
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-D8cxd1Z8.js";
|
|
11
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-C5OggHsw.js";
|
|
12
|
+
import { e as $28f99e3e86e6ec45$export$e5fda3247f5d67f9, f as $e8a7022cf87cba2a$export$36da96379f79f245, g as $bcca50147b47f54d$export$56b2c08e277f365, h as $47b897dc8cdb026b$export$8d15029008292ae, d as $6f909507e6374d18$export$1e7083018727fa60, i as $6f909507e6374d18$export$f1fce0420cc6d8ee, j as $6f909507e6374d18$export$6189c2744041d8f8, a as $6f909507e6374d18$export$105594979f116971 } from "../../Slider-BZO0Tvut.js";
|
|
13
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-D2KUdwNL.js";
|
|
14
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-CFP1YZWQ.js";
|
|
15
|
+
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "../../VisuallyHidden-ooItkWYR.js";
|
|
16
|
+
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-52GVSGgC.js";
|
|
17
|
+
import { a as $3985021b0ad6602f$export$37fb8590cf2c088c, $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-CTTTeCpo.js";
|
|
18
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-icmbmNdI.js";
|
|
19
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-DVSAPY-K.js";
|
|
20
|
+
import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, b as $d2e8511e6f209edf$export$e908e06f4b8e3402, c as $7d0a636d7a4dcefd$export$2123ff2b87c81ca, d as $d841c8010a73d545$export$4f384c9210e583c3, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberField-ecr8uK6_.js";
|
|
21
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "../../useFormValidation-BgSHI8kQ.js";
|
|
24
22
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
25
23
|
import { BaseControl } from "../base-control/base-control.js";
|
|
26
24
|
import { _ as __ } from "../../default-i18n-CM1-Xvzf.js";
|
|
@@ -1083,7 +1081,7 @@ function $3ada01a82feafb94$var$ColorChannelField(props) {
|
|
|
1083
1081
|
locale
|
|
1084
1082
|
});
|
|
1085
1083
|
let inputRef = useRef(null);
|
|
1086
|
-
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8();
|
|
1084
|
+
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
1087
1085
|
var _props_validationBehavior;
|
|
1088
1086
|
let { labelProps, inputProps, descriptionProps, errorMessageProps, ...validation } = $5e632d1ff0188f00$export$e55dd820142d3131({
|
|
1089
1087
|
...$64fa3d84918910a7$export$ef03459518577ad4(props),
|
|
@@ -1103,7 +1101,7 @@ function $3ada01a82feafb94$var$HexColorField(props) {
|
|
|
1103
1101
|
validationBehavior: (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : "native"
|
|
1104
1102
|
});
|
|
1105
1103
|
let inputRef = useRef(null);
|
|
1106
|
-
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8();
|
|
1104
|
+
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
1107
1105
|
var _props_validationBehavior1;
|
|
1108
1106
|
let { labelProps, inputProps, descriptionProps, errorMessageProps, ...validation } = $f6896b05b2ecad12$export$77e32ca575a28fdf({
|
|
1109
1107
|
...$64fa3d84918910a7$export$ef03459518577ad4(props),
|
|
@@ -1179,7 +1177,7 @@ const $1cca5300a3c2e7f9$export$44fd664bcca5b6fb = /* @__PURE__ */ forwardRef(fun
|
|
|
1179
1177
|
});
|
|
1180
1178
|
let trackRef = React__default.useRef(null);
|
|
1181
1179
|
let inputRef = React__default.useRef(null);
|
|
1182
|
-
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8();
|
|
1180
|
+
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
1183
1181
|
let { trackProps, thumbProps, inputProps, labelProps, outputProps } = $40af666d6c251e36$export$106b7a4e66508f66({
|
|
1184
1182
|
...props,
|
|
1185
1183
|
label,
|
|
@@ -1307,7 +1305,7 @@ const SolidColorPicker = (props) => {
|
|
|
1307
1305
|
yChannel: "lightness",
|
|
1308
1306
|
className: clsx(
|
|
1309
1307
|
"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',
|
|
1308
|
+
'es:[&:has(>_[data-focus-visible="true"])]:ring-2 es:[&:has(>_[data-focus-visible="true"])]:ring-accent-500/50',
|
|
1311
1309
|
"es:disabled:bg-linear-to-r! es:disabled:from-white es:disabled:to-secondary-100"
|
|
1312
1310
|
),
|
|
1313
1311
|
onChange: handleChange,
|
|
@@ -1328,7 +1326,7 @@ const SolidColorPicker = (props) => {
|
|
|
1328
1326
|
{
|
|
1329
1327
|
className: clsx(
|
|
1330
1328
|
"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',
|
|
1329
|
+
'es:[&:has(>_[data-focus-visible="true"])]:ring-2 es:[&:has(>_[data-focus-visible="true"])]:ring-accent-500/50',
|
|
1332
1330
|
"es:disabled:bg-linear-to-r! es:disabled:from-white es:disabled:to-secondary-100"
|
|
1333
1331
|
),
|
|
1334
1332
|
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 +1346,7 @@ const SolidColorPicker = (props) => {
|
|
|
1348
1346
|
{
|
|
1349
1347
|
className: clsx(
|
|
1350
1348
|
"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',
|
|
1349
|
+
'es:[&:has(>_[data-focus-visible="true"])]:ring-2 es:[&:has(>_[data-focus-visible="true"])]:ring-accent-500/50',
|
|
1352
1350
|
"es:disabled:bg-linear-to-r! es:disabled:from-white es:disabled:to-secondary-100"
|
|
1353
1351
|
),
|
|
1354
1352
|
style: () => {
|
|
@@ -1401,7 +1399,7 @@ const SolidColorPicker = (props) => {
|
|
|
1401
1399
|
hidden: noAdvancedOptions,
|
|
1402
1400
|
children: [
|
|
1403
1401
|
/* @__PURE__ */ jsx($01b77f81d0f07f68$export$b04be29aa201d4f5, { className: "es:text-sm es:tracking-tight es:mb-2 es:inline-block", children: __("Advanced color options", "eightshift-ui-components") }),
|
|
1404
|
-
/* @__PURE__ */ jsxs(Tabs, { type: "
|
|
1402
|
+
/* @__PURE__ */ jsxs(Tabs, { type: "pillCompactInverse", children: [
|
|
1405
1403
|
/* @__PURE__ */ jsxs(TabList, { children: [
|
|
1406
1404
|
/* @__PURE__ */ jsx(Tab, { children: "RGB" }),
|
|
1407
1405
|
/* @__PURE__ */ jsx(Tab, { children: "HSL" }),
|
|
@@ -23,6 +23,7 @@ import { BaseControl } from "../base-control/base-control.js";
|
|
|
23
23
|
* @param {boolean} [props.closable] - If `true`, the panel can be closed. Will not show if `title` is not set.
|
|
24
24
|
* @param {boolean} [props.startOpen=false] - Controls whether the panel is open by default.
|
|
25
25
|
* @param {JSX.Element} [props.actions] - Actions to show at the end
|
|
26
|
+
* @param {boolean} [props.hidden] - If `true`, the component is not rendered.
|
|
26
27
|
*
|
|
27
28
|
* @returns {JSX.Element} The ContainerPanel component.
|
|
28
29
|
*
|
|
@@ -34,10 +35,13 @@ import { BaseControl } from "../base-control/base-control.js";
|
|
|
34
35
|
* @preserve
|
|
35
36
|
*/
|
|
36
37
|
const ContainerPanel = (props) => {
|
|
37
|
-
const { children, className, title, icon, subtitle, use, onUseChange, closable, startOpen = false, actions } = props;
|
|
38
|
+
const { children, className, title, icon, subtitle, use, onUseChange, closable, startOpen = false, actions, hidden } = props;
|
|
38
39
|
const [open, setOpen] = useState(startOpen);
|
|
40
|
+
if (hidden) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
39
43
|
if (!title && typeof use === "undefined") {
|
|
40
|
-
return /* @__PURE__ */ jsx("div", { className: "es:space-y-2 es:border-t es:border-t-secondary-200 es:p-4", children });
|
|
44
|
+
return /* @__PURE__ */ jsx("div", { className: clsx("es:space-y-2 es:border-t es:border-t-secondary-200 es:p-4", className), children });
|
|
41
45
|
}
|
|
42
46
|
const justUse = !closable && typeof onUseChange !== "undefined";
|
|
43
47
|
const justClosable = closable && typeof onUseChange === "undefined";
|
|
@@ -93,7 +97,7 @@ const ContainerPanel = (props) => {
|
|
|
93
97
|
!closable && !onUseChange && typeof use === "undefined" && "es:px-4",
|
|
94
98
|
className
|
|
95
99
|
),
|
|
96
|
-
labelContainerClassName: clsx((closable || onUseChange) && "es:pl-4 es:pr-3 es:min-h-12", !(closable || onUseChange) && "es:mt-3", "es:pb-0!"),
|
|
100
|
+
labelContainerClassName: clsx((closable || onUseChange) && "es:pl-4 es:pr-3 es:min-h-12", !(closable || onUseChange) && "es:mt-3 es:mb-3", "es:pb-0!"),
|
|
97
101
|
controlContainerClassName: "es:px-4",
|
|
98
102
|
labelClassName: "es:text-secondary-600!",
|
|
99
103
|
children: [
|
|
@@ -104,6 +108,7 @@ const ContainerPanel = (props) => {
|
|
|
104
108
|
visible: open,
|
|
105
109
|
className: "es:space-y-2 es:px-4",
|
|
106
110
|
transition: "slideFadeDownSlight",
|
|
111
|
+
noInitial: true,
|
|
107
112
|
children
|
|
108
113
|
}
|
|
109
114
|
),
|
|
@@ -113,6 +118,7 @@ const ContainerPanel = (props) => {
|
|
|
113
118
|
visible: closable ? use && open : use,
|
|
114
119
|
className: "es:space-y-2 es:px-4",
|
|
115
120
|
transition: "slideFadeDownSlight",
|
|
121
|
+
noInitial: true,
|
|
116
122
|
children
|
|
117
123
|
}
|
|
118
124
|
)
|
|
@@ -4,7 +4,7 @@ import "../../default-i18n-CM1-Xvzf.js";
|
|
|
4
4
|
import { DraggableContext } from "./draggable-context.js";
|
|
5
5
|
import { useContext } from "react";
|
|
6
6
|
import { icons } from "../../icons/icons.js";
|
|
7
|
-
import "../../react-jsx-parser.min-
|
|
7
|
+
import "../../react-jsx-parser.min-DZCiis5V.js";
|
|
8
8
|
/**
|
|
9
9
|
* A Draggable item handle.
|
|
10
10
|
*
|
|
@@ -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:
|
|
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,
|