@eightshift/ui-components 1.9.1 → 2.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/README.md +0 -7
- package/dist/{Button-BEIi9mB_.js → Button-OQ5EIPvt.js} +8 -8
- package/dist/{SelectionManager-DGbP8Ntl.js → Collection-CJM_asJz.js} +345 -197
- package/dist/{Color-CZxTZUqH.js → Color-B0HgM8f4.js} +1 -1
- package/dist/{ColorSwatch-Iijp9hzP.js → ColorSwatch-Dv3Wxdl_.js} +6 -7
- package/dist/{ComboBox-DVPU5XzU.js → ComboBox-BnlZjJ3T.js} +21 -22
- package/dist/{Dialog-17uxPRe5.js → Dialog-CIh-hX93.js} +77 -65
- package/dist/{FieldError-huHsqqMP.js → FieldError-D7A6s7O5.js} +2 -2
- package/dist/{FocusScope-7r2_SUa9.js → FocusScope-Cs5_OoeA.js} +6 -4
- package/dist/{Group-k_oyd3Te.js → Group-D6tr3U_n.js} +5 -6
- package/dist/{Heading-DRBzKYHb.js → Heading-DiYTXoIW.js} +3 -4
- package/dist/{Hidden-5cXbU70C.js → Hidden-DnOd_jPX.js} +2 -2
- package/dist/{Input-DCmTv_Qw.js → Input-Se0m3ubj.js} +13 -11
- package/dist/{Label-D8G0GMsc.js → Label-Ca9uelsn.js} +4 -5
- package/dist/{List-C7L49CxW.js → List-Br274SP1.js} +16 -8
- package/dist/{ListBox-BxZwDp9o.js → ListBox-D9dFEh5A.js} +36 -23
- package/dist/{OverlayArrow-Dca2JXYU.js → OverlayArrow-1jx-ZyCR.js} +75 -13
- package/dist/{Select-aab027f3.esm-OvJ8lZs8.js → Select-aab027f3.esm-HFNIFFya.js} +4 -4
- package/dist/{Separator-B_VdRHCf.js → Separator-BhZycTUp.js} +9 -7
- package/dist/{Slider-CgEZmlNY.js → Slider-BZNaJylD.js} +20 -24
- package/dist/{Text-Cld9rkzJ.js → Text-aOUPPvTO.js} +3 -4
- package/dist/{VisuallyHidden-D0lsNfi4.js → VisuallyHidden-ClTQo25k.js} +2 -2
- package/dist/assets/index.css +37 -0
- package/dist/assets/style-editor.css +5287 -0
- package/dist/assets/style.css +5293 -1
- package/dist/assets/wp-font-enhancements.css +8 -1
- package/dist/assets/wp-ui-enhancements.css +299 -1
- package/dist/components/animated-visibility/animated-visibility.js +17 -21
- package/dist/components/base-control/base-control.js +7 -7
- package/dist/components/breakpoint-preview/breakpoint-preview.js +50 -50
- package/dist/components/button/button.js +190 -86
- package/dist/components/checkbox/checkbox.js +44 -27
- package/dist/components/color-pickers/color-picker.js +13 -9
- package/dist/components/color-pickers/color-swatch.js +4 -4
- package/dist/components/color-pickers/gradient-editor.js +25 -24
- package/dist/components/color-pickers/solid-color-picker.js +197 -229
- package/dist/components/component-toggle/component-toggle.js +3 -3
- package/dist/components/container-panel/container-panel.js +17 -17
- package/dist/components/draggable/draggable-handle.js +6 -6
- package/dist/components/draggable/draggable.js +1414 -699
- package/dist/components/draggable-list/draggable-list-item.js +3 -3
- package/dist/components/draggable-list/draggable-list.js +12 -12
- package/dist/components/expandable/expandable.js +66 -78
- package/dist/components/index.js +2 -3
- package/dist/components/input-field/input-field.js +35 -22
- package/dist/components/layout/hstack.js +1 -1
- package/dist/components/layout/vstack.js +1 -1
- package/dist/components/link-input/link-input.js +69 -57
- package/dist/components/matrix-align/matrix-align.js +34 -86
- package/dist/components/menu/menu.js +22 -23
- package/dist/components/modal/modal.js +24 -25
- package/dist/components/notice/notice.js +32 -32
- package/dist/components/number-picker/number-picker.js +41 -40
- package/dist/components/option-select/option-select.js +9 -4
- package/dist/components/options-panel/options-panel.js +63 -28
- package/dist/components/placeholders/file-placeholder.js +6 -17
- package/dist/components/placeholders/image-placeholder.js +17 -17
- package/dist/components/placeholders/media-placeholder.js +12 -12
- package/dist/components/popover/popover.js +6 -5
- package/dist/components/radio/radio.js +60 -43
- package/dist/components/repeater/repeater-item.js +10 -10
- package/dist/components/repeater/repeater.js +8 -8
- package/dist/components/responsive/mini-responsive.js +41 -41
- package/dist/components/responsive/responsive-legacy.js +33 -33
- package/dist/components/responsive/responsive.js +48 -48
- package/dist/components/responsive-preview/responsive-preview.js +4 -4
- package/dist/components/rich-label/rich-label.js +13 -11
- package/dist/components/select/async-multi-select.js +3 -3
- package/dist/components/select/async-single-select.js +2 -2
- package/dist/components/select/custom-select-default-components.js +3 -3
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +3 -3
- package/dist/components/select/react-select-component-wrappers.js +1 -1
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/styles.js +21 -21
- package/dist/components/select/v2/async-select.js +37 -47
- package/dist/components/select/v2/shared.js +8 -8
- package/dist/components/select/v2/single-select.js +44 -48
- package/dist/components/slider/column-config-slider.js +25 -25
- package/dist/components/slider/slider.js +173 -182
- package/dist/components/spacer/spacer.js +21 -21
- package/dist/components/tabs/tabs.js +111 -63
- package/dist/components/toggle/switch.js +27 -21
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +160 -83
- package/dist/components/tooltip/tooltip.js +25 -28
- package/dist/{context-DtrQ3I5U.js → context-CDOs-GuR.js} +1 -1
- package/dist/{focusSafely-ChK5oW-0.js → focusSafely-CiqTTjWy.js} +18 -17
- package/dist/icons/icons.js +52 -0
- package/dist/{index-641ee5b8.esm-DRaWil7u.js → index-641ee5b8.esm-DbdaYaxR.js} +45 -45
- package/dist/{index-D0mHceYg.js → index-BRp93Yfa.js} +24 -31
- package/dist/index-CcCn9HWX.js +44 -0
- package/dist/index.js +2 -3
- package/dist/{multi-select-components-2Ax71j9a.js → multi-select-components-CkF3LyTF.js} +4 -4
- package/dist/{react-select-async.esm-BZwl7Ddb.js → react-select-async.esm-DcVLw9X5.js} +3 -3
- package/dist/{react-select.esm-DI0eSkd8.js → react-select.esm-OZ0cmTjg.js} +3 -3
- package/dist/style-editor.js +1 -0
- package/dist/style.js +1 -1
- package/dist/{textSelection-CdZPiDxh.js → textSelection-BlTDSskG.js} +2 -2
- package/dist/{useButton-C5e_EJlC.js → useButton-CmLbE5vg.js} +3 -3
- package/dist/{useEvent-BW_vevRp.js → useEvent-cLDJlznQ.js} +1 -1
- package/dist/{useFocusRing-Dbj6MsFR.js → useFocusRing-CGp3guTX.js} +1 -1
- package/dist/{useFocusable-C2xrPFl6.js → useFocusable-087cO5Ct.js} +9 -6
- package/dist/{useFormReset-DDCE2RPv.js → useFormReset-NpLM2e3G.js} +1 -1
- package/dist/{useFormValidation-BxnASugK.js → useFormValidation-BWwmZQE2.js} +3 -3
- package/dist/{useLabel-C3sAYsiC.js → useLabel-C85N3Hzw.js} +2 -2
- package/dist/{useLabels-WnPbJUyQ.js → useLabels-C_2wWraB.js} +1 -1
- package/dist/{useListState-BmTFGt2_.js → useListState-Z7FB_NzO.js} +1 -1
- package/dist/{useLocalizedStringFormatter-BurzRhbk.js → useLocalizedStringFormatter-BQ4TF72x.js} +1 -1
- package/dist/{useNumberField-D_Azw6A1.js → useNumberField-Bm6_BVl9.js} +10 -10
- package/dist/{useNumberFormatter-B58dTQ-c.js → useNumberFormatter-DlUVKkO7.js} +1 -1
- package/dist/{usePress-DZ9pn6Jl.js → usePress-rg_OQIGW.js} +15 -14
- package/dist/{useSingleSelectListState-Dr843geC.js → useSingleSelectListState-Cu3xtEJS.js} +2 -2
- package/dist/{useToggle-Dq9VpeCd.js → useToggle-DzlgBLAJ.js} +4 -4
- package/dist/{useToggleState-DA_b3LG_.js → useToggleState-DhSBQxkp.js} +1 -1
- package/dist/{utils-BmaSD6gC.js → utils-39D0mStj.js} +41 -93
- package/package.json +40 -38
- package/dist/GeistMonoVF.woff2 +0 -0
- package/dist/GeistVF.woff2 +0 -0
- package/dist/assets/fonts.css +0 -1
- package/dist/components/list-box/list-box.js +0 -157
- package/dist/fonts.js +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { p as $ff5963eb1fccf552$export$e08e3b67e392101e, d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "../../utils-39D0mStj.js";
|
|
3
3
|
import React__default, { createContext, forwardRef, useContext } from "react";
|
|
4
|
-
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-
|
|
5
|
-
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "../../useButton-
|
|
6
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-
|
|
7
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-
|
|
8
|
-
import { c as
|
|
4
|
+
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-DhSBQxkp.js";
|
|
5
|
+
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "../../useButton-CmLbE5vg.js";
|
|
6
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-CGp3guTX.js";
|
|
7
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-CiqTTjWy.js";
|
|
8
|
+
import { c as cva } from "../../index-CcCn9HWX.js";
|
|
9
9
|
import { Tooltip } from "../tooltip/tooltip.js";
|
|
10
10
|
function $55f54f7887471b58$export$51e84d46ca0bc451(props, state, ref) {
|
|
11
11
|
const { isSelected } = state;
|
|
@@ -51,7 +51,7 @@ function $4547d1bf40011fdf$export$bc53712daae3d6e6(props, state, ref) {
|
|
|
51
51
|
}
|
|
52
52
|
const $84b7d8702d4ff4a8$export$a8a71863db173133 = /* @__PURE__ */ createContext(null);
|
|
53
53
|
const $efde0372d7a700fe$export$43506d75ebd2e218 = /* @__PURE__ */ createContext({});
|
|
54
|
-
|
|
54
|
+
const $efde0372d7a700fe$export$d2b052e7b4be1756 = /* @__PURE__ */ forwardRef(function ToggleButton(props, ref) {
|
|
55
55
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $efde0372d7a700fe$export$43506d75ebd2e218);
|
|
56
56
|
let groupState = useContext($84b7d8702d4ff4a8$export$a8a71863db173133);
|
|
57
57
|
let state = $3017fa7ffdddec74$export$8042c6c013fd5226(groupState && props.id != null ? {
|
|
@@ -95,8 +95,7 @@ function $efde0372d7a700fe$var$ToggleButton(props, ref) {
|
|
|
95
95
|
"data-hovered": isHovered || void 0,
|
|
96
96
|
"data-focus-visible": isFocusVisible || void 0
|
|
97
97
|
});
|
|
98
|
-
}
|
|
99
|
-
const $efde0372d7a700fe$export$d2b052e7b4be1756 = /* @__PURE__ */ forwardRef($efde0372d7a700fe$var$ToggleButton);
|
|
98
|
+
});
|
|
100
99
|
/**
|
|
101
100
|
* A simple toggle button component.
|
|
102
101
|
*
|
|
@@ -138,90 +137,168 @@ const $efde0372d7a700fe$export$d2b052e7b4be1756 = /* @__PURE__ */ forwardRef($ef
|
|
|
138
137
|
*
|
|
139
138
|
* @preserve
|
|
140
139
|
*/
|
|
141
|
-
const
|
|
140
|
+
const ToggleButton2 = (props) => {
|
|
142
141
|
const { children, icon, size = "default", type = "default", disabled, className, tooltip, selected, onChange, wrapperClassName, tooltipProps, hidden, ...other } = props;
|
|
143
142
|
if (hidden) {
|
|
144
143
|
return null;
|
|
145
144
|
}
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
145
|
+
const componentClasses = cva(
|
|
146
|
+
[
|
|
147
|
+
"es:flex es:items-center es:gap-1",
|
|
148
|
+
"es:transition es:duration-300 es:border es:text-sm",
|
|
149
|
+
"es:any-focus:outline-hidden es:focus-visible:z-10",
|
|
150
|
+
"es:focus-visible:ring-2 es:focus-visible:ring-accent-500/50",
|
|
151
|
+
"es:focus-visible:border-accent-500",
|
|
152
|
+
"es:btn-group-mid:rounded-none",
|
|
153
|
+
"es:btn-group-h-start:rounded-r-none es:btn-group-v-start:rounded-b-none",
|
|
154
|
+
"es:btn-group-h-end:rounded-l-none es:btn-group-v-end:rounded-t-none",
|
|
155
|
+
"es:cursor-pointer",
|
|
156
|
+
icon && children ? "es:justify-start" : "es:justify-center",
|
|
157
|
+
className
|
|
158
|
+
],
|
|
159
|
+
{
|
|
160
|
+
variants: {
|
|
161
|
+
size: {
|
|
162
|
+
small: "es:icon:size-4.5 es:rounded-md",
|
|
163
|
+
default: "es:icon:size-5.5 es:rounded-lg",
|
|
164
|
+
large: "es:icon:size-6 es:rounded-lg"
|
|
165
|
+
},
|
|
166
|
+
type: {
|
|
167
|
+
default: ["es:bg-radial-[at_50%_125%]", "es:inset-ring es:inset-shadow-xs"],
|
|
168
|
+
ghost: ["es:border-transparent es:text-secondary-700", "es:hover:bg-secondary-100", "es:disabled:border-transparent!"]
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
compoundVariants: [
|
|
172
|
+
{
|
|
173
|
+
type: "default",
|
|
174
|
+
disabled: false,
|
|
175
|
+
selected: false,
|
|
176
|
+
class: [
|
|
177
|
+
"es:text-black",
|
|
178
|
+
"es:from-secondary-50 es:to-white",
|
|
179
|
+
"es:border-secondary-300",
|
|
180
|
+
"es:inset-ring-secondary-100",
|
|
181
|
+
"es:inset-shadow-secondary-100/50",
|
|
182
|
+
"es:shadow-xs",
|
|
183
|
+
"es:hover:inset-shadow-secondary-100 es:hover:to-secondary-100 es:hover:inset-ring-secondary-100",
|
|
184
|
+
"es:hover:text-accent-950",
|
|
185
|
+
"es:focus-visible:text-accent-950"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
type: "default",
|
|
190
|
+
disabled: false,
|
|
191
|
+
selected: true,
|
|
192
|
+
class: [
|
|
193
|
+
"es:text-white es:accent-text-shadow",
|
|
194
|
+
"es:from-accent-500 es:to-accent-600",
|
|
195
|
+
"es:border-accent-700",
|
|
196
|
+
"es:inset-ring es:inset-ring-accent-600",
|
|
197
|
+
"es:inset-shadow-xs es:inset-shadow-accent-400/75",
|
|
198
|
+
"es:focus-visible:border-accent-700",
|
|
199
|
+
"es:focus-visible:inset-ring es:focus-visible:inset-ring-accent-600",
|
|
200
|
+
"es:focus-visible:inset-shadow-xs es:focus-visible:inset-shadow-accent-400",
|
|
201
|
+
"es:shadow-xs es:shadow-accent-600/30"
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
disabled: true,
|
|
206
|
+
class: "es:disabled:border-secondary-300 es:disabled:text-secondary-400 es:border es:shadow-none es:disabled:inset-shadow-transparent es:disabled:inset-ring-0"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
type: "ghost",
|
|
210
|
+
disabled: false,
|
|
211
|
+
selected: true,
|
|
212
|
+
class: ["es:bg-accent-600 es:text-white es:border-accent-600 es:shadow-xs es:shadow-accent-500/25", "es:hover:shadow-accent-600/50"]
|
|
213
|
+
},
|
|
214
|
+
// Sizes.
|
|
215
|
+
{
|
|
216
|
+
size: "small",
|
|
217
|
+
iconOnly: false,
|
|
218
|
+
class: "es:h-7 es:min-w-7"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
size: "small",
|
|
222
|
+
iconOnly: true,
|
|
223
|
+
class: "es:size-7"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
size: "small",
|
|
227
|
+
hasIcon: false,
|
|
228
|
+
iconOnly: false,
|
|
229
|
+
class: "es:px-2"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
size: "small",
|
|
233
|
+
hasIcon: true,
|
|
234
|
+
iconOnly: false,
|
|
235
|
+
class: "es:px-1"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
size: "default",
|
|
239
|
+
iconOnly: false,
|
|
240
|
+
class: "es:h-9 es:min-w-9"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
size: "default",
|
|
244
|
+
iconOnly: true,
|
|
245
|
+
class: "es:size-9"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
size: "default",
|
|
249
|
+
hasIcon: false,
|
|
250
|
+
iconOnly: false,
|
|
251
|
+
class: "es:px-2"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
size: "default",
|
|
255
|
+
hasIcon: true,
|
|
256
|
+
iconOnly: false,
|
|
257
|
+
class: "es:px-1.5"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
size: "large",
|
|
261
|
+
iconOnly: false,
|
|
262
|
+
class: "es:h-10 es:min-w-10"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
size: "large",
|
|
266
|
+
iconOnly: true,
|
|
267
|
+
class: "es:size-10"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
size: "large",
|
|
271
|
+
hasIcon: false,
|
|
272
|
+
iconOnly: false,
|
|
273
|
+
class: "es:px-4"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
size: "large",
|
|
277
|
+
hasIcon: true,
|
|
278
|
+
iconOnly: false,
|
|
279
|
+
class: "es:px-2"
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
defaultVariants: {
|
|
283
|
+
selected: false,
|
|
284
|
+
disabled: false
|
|
285
|
+
}
|
|
184
286
|
}
|
|
185
|
-
|
|
287
|
+
);
|
|
186
288
|
const component = /* @__PURE__ */ jsxs(
|
|
187
289
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
188
290
|
{
|
|
189
291
|
isSelected: selected,
|
|
190
292
|
onChange,
|
|
191
293
|
isDisabled: disabled,
|
|
192
|
-
className: ({
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
"disabled:es-uic-shadow-none",
|
|
201
|
-
"focus:es-uic-outline-none focus-visible:es-uic-outline-none focus-visible:es-uic-ring",
|
|
202
|
-
!disabled && !isSelected && (((_a = themes[type]) == null ? void 0 : _a.regular) ?? themes.default.regular),
|
|
203
|
-
!disabled && !isSelected && (((_b = themes[type]) == null ? void 0 : _b.hover) ?? themes.default.hover),
|
|
204
|
-
!disabled && isSelected && (((_c = themes[type]) == null ? void 0 : _c.selectedHover) ?? themes.default.selectedHover),
|
|
205
|
-
((_d = themes[type]) == null ? void 0 : _d.disabled) ?? themes.default.disabled,
|
|
206
|
-
((_e = themes[type]) == null ? void 0 : _e.focus) ?? themes.default.focus,
|
|
207
|
-
icon && !children && sizes[size].iconButton,
|
|
208
|
-
children && "es-uic-text-sm",
|
|
209
|
-
children && sizes[size].button,
|
|
210
|
-
children && icon && sizes[size].iconButtonPadding,
|
|
211
|
-
children && !icon && sizes[size].buttonPadding,
|
|
212
|
-
sizes[size].iconSize,
|
|
213
|
-
isSelected && (((_f = themes[type]) == null ? void 0 : _f.selected) ?? themes.default.selected),
|
|
214
|
-
"[.es-uic-button-group-h_&:not(:first-child)]:es-uic-rounded-l-none [.es-uic-button-group-h_&:not(:last-child)]:-es-uic-mr-px [.es-uic-button-group-h_&:not(:last-child)]:es-uic-rounded-r-none",
|
|
215
|
-
"[.es-uic-button-group-h_&:not(:first-child)]:after:es-uic-rounded-l-none [.es-uic-button-group-h_&:not(:last-child)]:after:es-uic-rounded-r-none",
|
|
216
|
-
"[.es-uic-button-group-h_div:not(:first-child)_>_&]:es-uic-rounded-l-none [.es-uic-button-group-h_div:not(:last-child)_>_&]:-es-uic-mr-px [.es-uic-button-group-h_div:not(:last-child)_>_&]:es-uic-rounded-r-none",
|
|
217
|
-
"[.es-uic-button-group-h_div:not(:first-child)_>_&]:after:es-uic-rounded-l-none [.es-uic-button-group-h_div:not(:last-child)_>_&]:after:es-uic-rounded-r-none",
|
|
218
|
-
"[.es-uic-button-group-v_&:not(:first-child)]:es-uic-rounded-t-none [.es-uic-button-group-v_&:not(:last-child)]:-es-uic-mb-px [.es-uic-button-group-v_&:not(:last-child)]:es-uic-rounded-b-none",
|
|
219
|
-
"[.es-uic-button-group-v_&:not(:first-child)]:after:es-uic-rounded-t-none [.es-uic-button-group-v_&:not(:last-child)]:after:es-uic-rounded-b-none",
|
|
220
|
-
"[.es-uic-button-group-v_div:not(:first-child)_>_&]:es-uic-rounded-t-none [.es-uic-button-group-v_div:not(:last-child)_>_&]:-es-uic-mb-px [.es-uic-button-group-v_div:not(:last-child)_>_&]:es-uic-rounded-b-none",
|
|
221
|
-
"[.es-uic-button-group-v_div:not(:first-child)_>_&]:after:es-uic-rounded-t-none [.es-uic-button-group-v_div:not(:last-child)_>_&]:after:es-uic-rounded-b-none",
|
|
222
|
-
className
|
|
223
|
-
);
|
|
224
|
-
},
|
|
294
|
+
className: componentClasses({
|
|
295
|
+
disabled,
|
|
296
|
+
selected,
|
|
297
|
+
hasIcon: Boolean(icon),
|
|
298
|
+
iconOnly: Boolean(icon && !children),
|
|
299
|
+
size,
|
|
300
|
+
type
|
|
301
|
+
}),
|
|
225
302
|
...other,
|
|
226
303
|
children: [
|
|
227
304
|
icon,
|
|
@@ -243,5 +320,5 @@ const ToggleButton = (props) => {
|
|
|
243
320
|
);
|
|
244
321
|
};
|
|
245
322
|
export {
|
|
246
|
-
ToggleButton
|
|
323
|
+
ToggleButton2 as ToggleButton
|
|
247
324
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { e as $b5e257d569688ac6$export$535bd6ca7f90a273, d as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $bdb11010cef70236$export$f680877a34711e37, j as $64fa3d84918910a7$export$2881499e37b75b9a, a as $64fa3d84918910a7$export$29f1550f4b0d4415,
|
|
4
|
-
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c, a as $e6afbd83fe6ebbd2$export$13f3202a3e5ddd5 } from "../../useFocusable-
|
|
2
|
+
import { a as $fc909762b330b746$export$61c6a8c84e605fb6, b as $d3f049242431219c$export$45fda7c47f93fd48, c as $2a41e45df1593e64$export$d39e1813b3bdd0e1, $ as $d3f049242431219c$export$6d3443f2c48bfc20, d as $44f671af83e7d9e0$export$2de4954e8ae13b9f, e as $44f671af83e7d9e0$export$746d02f47f4d381 } from "../../OverlayArrow-1jx-ZyCR.js";
|
|
3
|
+
import { e as $b5e257d569688ac6$export$535bd6ca7f90a273, d as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $bdb11010cef70236$export$f680877a34711e37, j as $64fa3d84918910a7$export$2881499e37b75b9a, a as $64fa3d84918910a7$export$29f1550f4b0d4415, l as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "../../utils-39D0mStj.js";
|
|
4
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c, a as $e6afbd83fe6ebbd2$export$13f3202a3e5ddd5 } from "../../useFocusable-087cO5Ct.js";
|
|
5
5
|
import React__default, { useContext, useState, useMemo, useRef, useEffect, forwardRef, createContext } from "react";
|
|
6
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456,
|
|
6
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456, k as $507fabe10e71c6fb$export$630ff653c5ada6a9, a as $507fabe10e71c6fb$export$b9b3dfddab17db27, d as $9ab94262bd0047c7$export$420e68273165f4ec } from "../../focusSafely-CiqTTjWy.js";
|
|
7
7
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
8
|
-
import { $ as $dbSRa$reactdom } from "../../index-
|
|
8
|
+
import { $ as $dbSRa$reactdom } from "../../index-BRp93Yfa.js";
|
|
9
9
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
10
10
|
const $f57aed4a881a3485$var$Context = /* @__PURE__ */ React__default.createContext(null);
|
|
11
11
|
function $f57aed4a881a3485$export$178405afcd8c5eb(props) {
|
|
@@ -276,12 +276,12 @@ function $4e3b923658d69c60$export$8c610744efcf8a1d(props) {
|
|
|
276
276
|
ref
|
|
277
277
|
}, props.children));
|
|
278
278
|
}
|
|
279
|
-
|
|
279
|
+
const $4e3b923658d69c60$export$28c660c63b792dea = /* @__PURE__ */ forwardRef(function Tooltip({ UNSTABLE_portalContainer, ...props }, ref) {
|
|
280
280
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e3b923658d69c60$export$39ae08fa83328b12);
|
|
281
281
|
let contextState = useContext($4e3b923658d69c60$export$7a7623236eec67fa);
|
|
282
282
|
let localState = $8796f90736e175cb$export$4d40659c25ecb50b(props);
|
|
283
283
|
let state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
|
|
284
|
-
let isExiting = $
|
|
284
|
+
let isExiting = $d3f049242431219c$export$45fda7c47f93fd48(ref, state.isOpen) || props.isExiting || false;
|
|
285
285
|
if (!state.isOpen && !isExiting) return null;
|
|
286
286
|
return /* @__PURE__ */ React__default.createElement($f57aed4a881a3485$export$b47c3594eab58386, {
|
|
287
287
|
portalContainer: UNSTABLE_portalContainer
|
|
@@ -290,8 +290,7 @@ function $4e3b923658d69c60$var$Tooltip({ UNSTABLE_portalContainer, ...props }, r
|
|
|
290
290
|
tooltipRef: ref,
|
|
291
291
|
isExiting
|
|
292
292
|
}));
|
|
293
|
-
}
|
|
294
|
-
const $4e3b923658d69c60$export$28c660c63b792dea = /* @__PURE__ */ forwardRef($4e3b923658d69c60$var$Tooltip);
|
|
293
|
+
});
|
|
295
294
|
function $4e3b923658d69c60$var$TooltipInner(props) {
|
|
296
295
|
let state = useContext($4e3b923658d69c60$export$7a7623236eec67fa);
|
|
297
296
|
let arrowRef = useRef(null);
|
|
@@ -314,7 +313,7 @@ function $4e3b923658d69c60$var$TooltipInner(props) {
|
|
|
314
313
|
shouldFlip: props.shouldFlip,
|
|
315
314
|
onClose: () => state.close(true)
|
|
316
315
|
});
|
|
317
|
-
let isEntering = $
|
|
316
|
+
let isEntering = $d3f049242431219c$export$6d3443f2c48bfc20(props.tooltipRef, !!placement) || props.isEntering || false;
|
|
318
317
|
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
319
318
|
...props,
|
|
320
319
|
defaultClassName: "react-aria-Tooltip",
|
|
@@ -383,7 +382,7 @@ function $4e3b923658d69c60$var$TooltipInner(props) {
|
|
|
383
382
|
*
|
|
384
383
|
* @preserve
|
|
385
384
|
*/
|
|
386
|
-
const
|
|
385
|
+
const Tooltip2 = (props) => {
|
|
387
386
|
const {
|
|
388
387
|
children,
|
|
389
388
|
text,
|
|
@@ -424,14 +423,12 @@ const Tooltip = (props) => {
|
|
|
424
423
|
offset,
|
|
425
424
|
crossOffset,
|
|
426
425
|
className: ({ isEntering, isExiting }) => clsx(
|
|
427
|
-
"es-
|
|
428
|
-
"es
|
|
429
|
-
theme === "light" && "es
|
|
430
|
-
theme === "dark" && "es
|
|
431
|
-
isEntering && "es-
|
|
432
|
-
|
|
433
|
-
isExiting && "es-uic-duration-150 es-uic-ease-in es-uic-animate-out es-uic-fade-out",
|
|
434
|
-
isExiting && "placement-left:es-uic-slide-out-to-right-0.5 placement-right:es-uic-slide-out-to-left-0.5 placement-top:es-uic-slide-out-to-bottom-0.5 placement-bottom:es-uic-slide-out-to-top-0.5",
|
|
426
|
+
"es:group es:motion-translat",
|
|
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
|
+
theme === "light" && "es:border-secondary-200 es:bg-white/90 es:text-secondary-700",
|
|
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",
|
|
435
432
|
className
|
|
436
433
|
),
|
|
437
434
|
children: [
|
|
@@ -442,11 +439,11 @@ const Tooltip = (props) => {
|
|
|
442
439
|
height: 8,
|
|
443
440
|
viewBox: "0 0 8 8",
|
|
444
441
|
className: clsx(
|
|
445
|
-
"es
|
|
446
|
-
theme === "light" && "es
|
|
447
|
-
theme === "dark" && "es
|
|
448
|
-
"group-placement-left:-es
|
|
449
|
-
"forced-colors:
|
|
442
|
+
"es:m-px es:stroke-none es:drop-shadow-sm",
|
|
443
|
+
theme === "light" && "es:fill-secondary-200",
|
|
444
|
+
theme === "dark" && "es:fill-secondary-600",
|
|
445
|
+
"group-placement-left:-es:rotate-90 group-placement-right:es:rotate-90 group-placement-bottom:es:rotate-180",
|
|
446
|
+
"es:forced-colors:fill-[Canvas] es:forced-colors:stroke-[ButtonBorder]"
|
|
450
447
|
),
|
|
451
448
|
children: /* @__PURE__ */ jsx("path", { d: "M0 0 L4 4 L8 0" })
|
|
452
449
|
}
|
|
@@ -509,18 +506,18 @@ const DecorativeTooltip = (props) => {
|
|
|
509
506
|
});
|
|
510
507
|
const ref = useRef(null);
|
|
511
508
|
return /* @__PURE__ */ jsx(
|
|
512
|
-
|
|
509
|
+
Tooltip2,
|
|
513
510
|
{
|
|
514
511
|
triggerRef: ref,
|
|
515
512
|
text,
|
|
516
513
|
open,
|
|
517
|
-
className: "es
|
|
514
|
+
className: "es:pointer-events-none",
|
|
518
515
|
...rest,
|
|
519
516
|
children: /* @__PURE__ */ jsx(
|
|
520
517
|
"div",
|
|
521
518
|
{
|
|
522
519
|
ref,
|
|
523
|
-
className: clsx("es
|
|
520
|
+
className: clsx("es:inline", wrapperClassName),
|
|
524
521
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusWithinProps),
|
|
525
522
|
children
|
|
526
523
|
}
|
|
@@ -530,5 +527,5 @@ const DecorativeTooltip = (props) => {
|
|
|
530
527
|
};
|
|
531
528
|
export {
|
|
532
529
|
DecorativeTooltip,
|
|
533
|
-
Tooltip
|
|
530
|
+
Tooltip2 as Tooltip
|
|
534
531
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { useState, useEffect, useContext } from "react";
|
|
2
|
-
import { e as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-
|
|
2
|
+
import { e as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-39D0mStj.js";
|
|
3
3
|
const $148a7a147e38ea7f$var$RTL_SCRIPTS = /* @__PURE__ */ new Set([
|
|
4
4
|
"Arab",
|
|
5
5
|
"Syrc",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, g as $8ae05eaa5c114e9c$export$7f54fc3180508a52, e as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-
|
|
1
|
+
import { l as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, g as $8ae05eaa5c114e9c$export$7f54fc3180508a52, e as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-39D0mStj.js";
|
|
2
2
|
import { useState, useRef, useEffect, useCallback, useMemo } from "react";
|
|
3
3
|
const $431fbd86ca7dc216$export$b204af158042fbac = (el) => {
|
|
4
4
|
var _el_ownerDocument;
|
|
@@ -673,20 +673,21 @@ export {
|
|
|
673
673
|
$431fbd86ca7dc216$export$f21a1ffae260145a as f,
|
|
674
674
|
$431fbd86ca7dc216$export$b204af158042fbac as g,
|
|
675
675
|
$6a99195332edec8b$export$80f3e147d781571c as h,
|
|
676
|
-
$
|
|
677
|
-
$c87311424ea30a05$export$
|
|
678
|
-
$
|
|
679
|
-
$
|
|
680
|
-
$
|
|
681
|
-
$
|
|
682
|
-
$
|
|
683
|
-
$
|
|
684
|
-
$c87311424ea30a05$export$
|
|
685
|
-
$c87311424ea30a05$export$
|
|
686
|
-
$
|
|
687
|
-
$
|
|
688
|
-
$
|
|
689
|
-
$
|
|
690
|
-
$c87311424ea30a05$export$
|
|
691
|
-
$
|
|
676
|
+
$c87311424ea30a05$export$a11b0059900ceec8 as i,
|
|
677
|
+
$c87311424ea30a05$export$6446a186d09e379e as j,
|
|
678
|
+
$507fabe10e71c6fb$export$630ff653c5ada6a9 as k,
|
|
679
|
+
$507fabe10e71c6fb$export$8397ddfc504fdb9a as l,
|
|
680
|
+
$c87311424ea30a05$export$fedb369cb70207f1 as m,
|
|
681
|
+
$bbed8b41f857bcc0$export$24490316f764c430 as n,
|
|
682
|
+
$e7801be82b4b2a53$export$4debdb1a3f0fa79e as o,
|
|
683
|
+
$7215afc6de606d6b$export$de79e2c695e052f3 as p,
|
|
684
|
+
$c87311424ea30a05$export$9ac100e40613ea10 as q,
|
|
685
|
+
$c87311424ea30a05$export$78551043582a6a98 as r,
|
|
686
|
+
$c87311424ea30a05$export$b7d78993b74f766d as s,
|
|
687
|
+
$c87311424ea30a05$export$7bef049ce92e4224 as t,
|
|
688
|
+
$6a7db85432448f7f$export$29bf1b5f2c56cf63 as u,
|
|
689
|
+
$6a7db85432448f7f$export$60278871457622de as v,
|
|
690
|
+
$c87311424ea30a05$export$e1865c3bedcd822b as w,
|
|
691
|
+
$c87311424ea30a05$export$186c6964ca17d99 as x,
|
|
692
|
+
$507fabe10e71c6fb$export$98e20ec92f614cfe as y
|
|
692
693
|
};
|
package/dist/icons/icons.js
CHANGED
|
@@ -29796,6 +29796,58 @@ const icons = {
|
|
|
29796
29796
|
)
|
|
29797
29797
|
]
|
|
29798
29798
|
}
|
|
29799
|
+
),
|
|
29800
|
+
lightMode: /* @__PURE__ */ jsxs(
|
|
29801
|
+
"svg",
|
|
29802
|
+
{
|
|
29803
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
29804
|
+
viewBox: "0 0 20 20",
|
|
29805
|
+
width: "20",
|
|
29806
|
+
height: "20",
|
|
29807
|
+
fill: "none",
|
|
29808
|
+
children: [
|
|
29809
|
+
/* @__PURE__ */ jsx(
|
|
29810
|
+
"path",
|
|
29811
|
+
{
|
|
29812
|
+
d: "M10 18v-2m-8-6h2m11.657 5.657L14.4 14.4M4.343 15.657 5.6 14.4M10 4V2m6 8h2M5.6 5.6 4.343 4.343M14.4 5.6l1.257-1.257",
|
|
29813
|
+
stroke: "currentColor",
|
|
29814
|
+
strokeLinecap: "round",
|
|
29815
|
+
fill: "none"
|
|
29816
|
+
}
|
|
29817
|
+
),
|
|
29818
|
+
/* @__PURE__ */ jsx(
|
|
29819
|
+
"circle",
|
|
29820
|
+
{
|
|
29821
|
+
cx: "10",
|
|
29822
|
+
cy: "10",
|
|
29823
|
+
r: "4",
|
|
29824
|
+
stroke: "currentColor",
|
|
29825
|
+
strokeLinecap: "round",
|
|
29826
|
+
fill: "none"
|
|
29827
|
+
}
|
|
29828
|
+
)
|
|
29829
|
+
]
|
|
29830
|
+
}
|
|
29831
|
+
),
|
|
29832
|
+
darkMode: /* @__PURE__ */ jsx(
|
|
29833
|
+
"svg",
|
|
29834
|
+
{
|
|
29835
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
29836
|
+
viewBox: "0 0 20 20",
|
|
29837
|
+
width: "20",
|
|
29838
|
+
height: "20",
|
|
29839
|
+
fill: "none",
|
|
29840
|
+
children: /* @__PURE__ */ jsx(
|
|
29841
|
+
"path",
|
|
29842
|
+
{
|
|
29843
|
+
d: "M3 12.939A7.4 7.4 0 0 0 12.939 3 7.396 7.396 0 1 1 3 12.939Z",
|
|
29844
|
+
stroke: "currentColor",
|
|
29845
|
+
strokeLinecap: "round",
|
|
29846
|
+
strokeLinejoin: "round",
|
|
29847
|
+
fill: "none"
|
|
29848
|
+
}
|
|
29849
|
+
)
|
|
29850
|
+
}
|
|
29799
29851
|
)
|
|
29800
29852
|
};
|
|
29801
29853
|
const illustrations = {
|