@eightshift/ui-components 8.1.0 → 8.3.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/{Autocomplete-BUU44AuW.js → Autocomplete-Dqkum3dO.js} +29 -25
- package/dist/{Button-_E2Z5G2l.js → Button-DHgs_rCq.js} +15 -9
- package/dist/{Dialog-3XLIaepk.js → Dialog-CldDJ_4u.js} +390 -189
- package/dist/{Disclosure-Dh0z_DEQ.js → Disclosure-BHNgL5Is.js} +33 -29
- package/dist/{FocusScope-BKGWN6UK.js → FocusScope-CUuL5wjz.js} +13 -8
- package/dist/{Heading-BWTs9ckA.js → Heading-BQje2nS2.js} +1 -1
- package/dist/{I18nProvider-BskRMK8G.js → I18nProvider-R_4IDnf9.js} +1 -1
- package/dist/{Label-UpU4cKPh.js → Label-C4bJkVti.js} +1 -1
- package/dist/{ListBox-DepY-52g.js → ListBox-CZXso3mJ.js} +14 -38
- package/dist/{NumberFormatter-WKBRKiEA.js → NumberFormatter-Bwdv413k.js} +4 -2
- package/dist/{RadioGroup-Br9Mn9QJ.js → RadioGroup-BTByPMrl.js} +35 -35
- package/dist/{SearchField-q2Fj0L9K.js → SearchField-DkX1vqMN.js} +29 -26
- package/dist/{Slider-B8icnyOo.js → Slider-Dw-JjfLx.js} +55 -44
- package/dist/{Text-D4y19vs8.js → Text-CA2_mHEB.js} +4 -3
- package/dist/{VisuallyHidden-B_LZ_kn7.js → VisuallyHidden-ZZwHZDro.js} +2 -2
- package/dist/{animation-DpSgtWyu.js → animation-COc9P6ap.js} +2 -4
- package/dist/assets/{image-analysis-worker-BuHru-CI.js → image-analysis-worker-CBOB71mx.js} +1 -1
- package/dist/assets/style-admin.css +1 -1
- package/dist/assets/style-editor.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/assets/wp-overrides/make-block-messages-nicer.css +1 -1
- package/dist/{build-module-DG6ZK7Ty.js → build-module-BISCoQjQ.js} +4 -4
- package/dist/{button-XSk_8UW7.js → button-ldR_tlvk.js} +64 -13
- package/dist/{checkbox-BYaS9tQ5.js → checkbox-DDyLJRY8.js} +8 -8
- package/dist/{color-swatch-6ZEIXej3.js → color-swatch-DmhdOhe4.js} +15 -16
- package/dist/components/animated-visibility/animated-visibility.js +5 -3
- package/dist/components/base-control/base-control.d.ts +1 -1
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/base-control/container.d.ts +4 -30
- package/dist/components/base-control/container.js +5 -32
- package/dist/components/breakpoint-preview/breakpoint-preview.js +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.js +8 -8
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +1 -1
- package/dist/components/component-toggle/component-toggle.d.ts +1 -1
- package/dist/components/component-toggle/component-toggle.js +4 -4
- package/dist/components/container-panel/container-panel.js +11 -11
- package/dist/components/contextual-help/contextual-help.js +3 -3
- package/dist/components/draggable/draggable.d.ts +3 -3
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list.d.ts +3 -3
- package/dist/components/draggable-list/draggable-list.js +9 -9
- package/dist/components/expandable/expandable.js +4 -4
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +18 -17
- package/dist/components/input-field/input-field.d.ts +1 -1
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.d.ts +3 -28
- package/dist/components/item-collection/item-collection.js +7 -7
- package/dist/components/link-input/link-input.d.ts +0 -2
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +5 -4
- package/dist/components/menu/menu.d.ts +8 -29
- package/dist/components/menu/menu.js +11 -8
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/notice/notice.js +8 -8
- package/dist/components/number-picker/number-picker.d.ts +1 -1
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.d.ts +1 -1
- package/dist/components/option-select/option-select.js +22 -16
- package/dist/components/options-panel/options-panel.js +4 -4
- package/dist/components/placeholders/file-picker-shell.js +4 -3
- package/dist/components/placeholders/file-placeholder.js +3 -2
- package/dist/components/popover/popover.js +5 -5
- package/dist/components/portal-provider/portal-provider.js +2 -1
- package/dist/components/prompt-popover/prompt-popover.d.ts +56 -0
- package/dist/components/prompt-popover/prompt-popover.js +81 -0
- package/dist/components/radio/radio.d.ts +2 -1
- package/dist/components/radio/radio.js +2 -2
- package/dist/components/repeater/repeater-context.d.ts +0 -1
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.d.ts +5 -38
- package/dist/components/repeater/repeater.js +8 -11
- package/dist/components/responsive/mini-responsive.d.ts +0 -1
- package/dist/components/responsive/mini-responsive.js +31 -31
- package/dist/components/responsive/responsive-legacy.d.ts +0 -1
- package/dist/components/responsive/responsive-legacy.js +13 -11
- package/dist/components/responsive/responsive.d.ts +0 -1
- package/dist/components/responsive/responsive.js +29 -29
- package/dist/components/responsive-preview/responsive-preview.js +4 -4
- package/dist/components/rich-label/rich-label.d.ts +1 -1
- package/dist/components/rich-label/rich-label.js +2 -2
- package/dist/components/select/async-multi-select.d.ts +12 -13
- package/dist/components/select/async-multi-select.js +40 -21
- package/dist/components/select/async-select.d.ts +12 -13
- package/dist/components/select/async-select.js +39 -21
- package/dist/components/select/multi-select.d.ts +2 -8
- package/dist/components/select/multi-select.js +20 -20
- package/dist/components/select/shared.d.ts +7 -11
- package/dist/components/select/shared.js +2 -2
- package/dist/components/select/single-select.d.ts +2 -8
- package/dist/components/select/single-select.js +17 -17
- package/dist/components/select/styles.d.ts +2 -2
- package/dist/components/slider/column-config-slider.js +8 -6
- package/dist/components/slider/slider.js +16 -12
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/smart-image/smart-image.d.ts +1 -2
- package/dist/components/smart-image/smart-image.js +53 -51
- package/dist/components/tabs/tabs.d.ts +16 -64
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/switch.d.ts +1 -1
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.js +2 -2
- package/dist/components/toggle-button/toggle-button.d.ts +2 -2
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{draggable-9MfdTVWP.js → draggable-oS68xcYX.js} +130 -125
- package/dist/{es-dash-DunirOmV.js → es-dash-DPtJSRjw.js} +23 -52
- package/dist/{gradient-editor-yqSw0uPA.js → gradient-editor-DP8ioFX1.js} +39 -30
- package/dist/icons/block-icon.js +1 -1
- package/dist/icons/icon.d.ts +3 -3
- package/dist/icons/icon.js +21 -9
- package/dist/icons/icons.d.ts +210 -1
- package/dist/icons/index.js +1 -1
- package/dist/icons/jsx-svg.d.ts +5 -4
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/index.js +18 -17
- package/dist/{input-field-nN6BO0oz.js → input-field-C-XvZeCZ.js} +8 -8
- package/dist/{jsx-svg-BjGQUBLh.js → jsx-svg-DRwJdRpA.js} +171 -129
- package/dist/{keyboard-g5Amam-c.js → keyboard-Cdqi5ZQQ.js} +1 -1
- package/dist/{link-input-BhlPElU8.js → link-input-DdwuqoMg.js} +147 -89
- package/dist/{modal-B5axB0Fc.js → modal-DZco5MDu.js} +15 -14
- package/dist/{number-picker-nnOf0XnN.js → number-picker-XqKW0BNi.js} +9 -9
- package/dist/{react-y40Dt3ab.js → react-O71mlJXS.js} +250 -266
- package/dist/{shared-Ba_bt4s9.js → shared-YXMIX2ka.js} +60 -44
- package/dist/{solid-color-picker-CsosgTVa.js → solid-color-picker-D5LEdmDM.js} +78 -58
- package/dist/{switch-BJ4_OyUm.js → switch-Bo6nmed_.js} +8 -8
- package/dist/{tabs-wAe0AAyu.js → tabs-DE-qb7Kt.js} +35 -30
- package/dist/{text-helpers-2j9DuxP1.js → text-helpers-QrwKKaOh.js} +3 -2
- package/dist/{textSelection-B_Nv6Jz3.js → textSelection-C17LWYmO.js} +3 -3
- package/dist/{toggle-button-BLJdEp8V.js → toggle-button-Cb4yCEua.js} +39 -8
- package/dist/{tooltip-BW9nj5-V.js → tooltip-CT-vzIdz.js} +68 -62
- package/dist/{useAsyncList-B3-uyJgA.js → useAsyncList-CjKVLGN0.js} +8 -4
- package/dist/{useButton-CPMVLXoX.js → useButton-V65TBDGM.js} +3 -3
- package/dist/{useCollection-PzY6FI39.js → useCollection-DqUS7tjk.js} +281 -184
- package/dist/useEvent-C9zwSNzZ.js +18 -0
- package/dist/{useField-DrfR8j9h.js → useField-B_ibsWst.js} +2 -2
- package/dist/{useFilter-CiCjo6Na.js → useFilter-C75IzdIZ.js} +1 -1
- package/dist/{useFocusRing-CrYHpV7C.js → useFocusRing-JidySWlU.js} +1 -1
- package/dist/{useFormReset-U6c35PHq.js → useFormReset-Sp8-miDa.js} +1 -1
- package/dist/{useFormValidation-B2q2MGWN.js → useFormValidation-CpmQEh8J.js} +2 -2
- package/dist/{useHover-CNsbAR0V.js → useHover-CaY3sRjL.js} +250 -46
- package/dist/{useLabel-DuxAjaic.js → useLabel-gfFDE4bn.js} +2 -2
- package/dist/{useLabels-NUsp5IW3.js → useLabels-Dcg-cEyM.js} +1 -1
- package/dist/{useListState-FLxa7R_U.js → useListState-CzB3v6M9.js} +6 -11
- package/dist/{useLocalizedStringFormatter-Ccm8EL_u.js → useLocalizedStringFormatter-CTCqjYu4.js} +6 -1
- package/dist/{useNumberFieldState-DWvm7CXu.js → useNumberFieldState-DC3XY3DQ.js} +79 -62
- package/dist/{useNumberFormatter-B0_D7a_o.js → useNumberFormatter-DbAt_fC_.js} +2 -2
- package/dist/{useOverlayTriggerState-zZ7homyI.js → useOverlayTriggerState-BKmSTK_5.js} +16 -11
- package/dist/{usePress-DRoujMNm.js → usePress-CUCWcP-m.js} +50 -28
- package/dist/{useSlot-pRz-v9kC.js → useSlot-CnQHcvd4.js} +1 -1
- package/dist/{useTextField-e8jIFT3s.js → useTextField-C3QIkMON.js} +6 -6
- package/dist/{useToggle-CR_ZKvr_.js → useToggle-bbGRUbo4.js} +6 -6
- package/dist/{useToggleState-ButQxGrJ.js → useToggleState-D_rLMrVW.js} +1 -1
- package/dist/utilities/array-helpers.d.ts +2 -2
- package/dist/utilities/array-helpers.js +4 -3
- package/dist/utilities/debounce-throttle.d.ts +9 -2
- package/dist/utilities/es-dash.d.ts +11 -8
- package/dist/utilities/es-dash.js +1 -1
- package/dist/utilities/index.js +2 -2
- package/dist/utilities/text-helpers.js +1 -1
- package/dist/utilities/web-workers.d.ts +7 -7
- package/dist/utilities/web-workers.js +5 -5
- package/dist/{utils-Czi6q2Ub.js → utils-ClM91CuL.js} +30 -19
- package/package.json +23 -27
- package/dist/useEvent-CzuFZ2HT.js +0 -22
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
2
|
-
import { t as DecorativeTooltip } from "../../tooltip-
|
|
2
|
+
import { t as DecorativeTooltip } from "../../tooltip-CT-vzIdz.js";
|
|
3
3
|
import { cyrb64Hash } from "../../utilities/hash.js";
|
|
4
|
-
import { t as __ } from "../../build-module-
|
|
4
|
+
import { t as __ } from "../../build-module-BISCoQjQ.js";
|
|
5
5
|
import { imageError } from "../../icons/ui-icons/image-error.js";
|
|
6
6
|
import { cloneElement, useEffect, useRef, useState } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -34,10 +34,8 @@ var parseCachedAnalysis = (value) => {
|
|
|
34
34
|
return null;
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
var
|
|
38
|
-
|
|
39
|
-
return String(error);
|
|
40
|
-
};
|
|
37
|
+
var isClassNameResolver = (value) => value instanceof Function;
|
|
38
|
+
var isChildrenRenderer = (value) => value instanceof Function;
|
|
41
39
|
var loadHtmlImage = async (src) => {
|
|
42
40
|
const image = new Image();
|
|
43
41
|
image.src = src;
|
|
@@ -79,7 +77,7 @@ var SmartImage = (props) => {
|
|
|
79
77
|
const workerRef = useRef(null);
|
|
80
78
|
const lastAnalysisNotificationKeyRef = useRef(null);
|
|
81
79
|
useEffect(() => {
|
|
82
|
-
workerRef.current = new Worker(new URL("" + new URL("../../assets/image-analysis-worker-
|
|
80
|
+
workerRef.current = new Worker(new URL("" + new URL("../../assets/image-analysis-worker-CBOB71mx.js", import.meta.url).href + "", "" + import.meta.url), { type: "module" });
|
|
83
81
|
return () => {
|
|
84
82
|
workerRef.current?.terminate();
|
|
85
83
|
};
|
|
@@ -101,16 +99,11 @@ var SmartImage = (props) => {
|
|
|
101
99
|
lastAnalysisNotificationKeyRef.current = notificationKey;
|
|
102
100
|
onAnalysisComplete(result, { source });
|
|
103
101
|
};
|
|
104
|
-
if (!src) {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
abortController.abort();
|
|
109
|
-
};
|
|
110
|
-
}
|
|
102
|
+
if (!src) return () => {
|
|
103
|
+
isActive = false;
|
|
104
|
+
abortController.abort();
|
|
105
|
+
};
|
|
111
106
|
if (analysisData) {
|
|
112
|
-
setAnalysis(analysisData);
|
|
113
|
-
setObjectUrl(src);
|
|
114
107
|
notifyAnalysisComplete(analysisData, "analysisData");
|
|
115
108
|
return () => {
|
|
116
109
|
isActive = false;
|
|
@@ -119,11 +112,12 @@ var SmartImage = (props) => {
|
|
|
119
112
|
}
|
|
120
113
|
const cacheKey = `es-uic-img-data-${cyrb64Hash(src)}`;
|
|
121
114
|
const cachedAnalysis = parseCachedAnalysis(localStorage?.getItem(cacheKey) ?? null);
|
|
122
|
-
if (cachedAnalysis) {
|
|
115
|
+
if (cachedAnalysis) queueMicrotask(() => {
|
|
116
|
+
if (!isActive) return;
|
|
123
117
|
setAnalysis(cachedAnalysis);
|
|
124
118
|
setObjectUrl(src);
|
|
125
119
|
notifyAnalysisComplete(cachedAnalysis, "cache");
|
|
126
|
-
}
|
|
120
|
+
});
|
|
127
121
|
if (!cachedAnalysis) {
|
|
128
122
|
const processImage = async () => {
|
|
129
123
|
let nextObjectUrl = null;
|
|
@@ -159,8 +153,8 @@ var SmartImage = (props) => {
|
|
|
159
153
|
}
|
|
160
154
|
let buffer;
|
|
161
155
|
let transferBuffer = null;
|
|
162
|
-
if (
|
|
163
|
-
const context = new OffscreenCanvas(width, height).getContext("2d", { willReadFrequently: true });
|
|
156
|
+
if ("OffscreenCanvas" in globalThis) {
|
|
157
|
+
const context = new globalThis.OffscreenCanvas(width, height).getContext("2d", { willReadFrequently: true });
|
|
164
158
|
if (!context) throw new Error("Could not create image analysis canvas context.");
|
|
165
159
|
context.clearRect(0, 0, width, height);
|
|
166
160
|
context.drawImage(imageSource, 0, 0, width, height);
|
|
@@ -177,7 +171,7 @@ var SmartImage = (props) => {
|
|
|
177
171
|
buffer = context.getImageData(0, 0, width, height).data;
|
|
178
172
|
transferBuffer = buffer.buffer instanceof ArrayBuffer ? buffer.buffer : null;
|
|
179
173
|
}
|
|
180
|
-
if (
|
|
174
|
+
if (imageSource instanceof ImageBitmap) imageSource.close();
|
|
181
175
|
if (workerRef.current) {
|
|
182
176
|
workerRef.current.onmessage = (event) => {
|
|
183
177
|
if (!isActive) return;
|
|
@@ -203,7 +197,9 @@ var SmartImage = (props) => {
|
|
|
203
197
|
if (isActive) {
|
|
204
198
|
if (verbose) console.error("[SmartImage] Error:", caughtError);
|
|
205
199
|
const exists = await urlExists(src);
|
|
206
|
-
|
|
200
|
+
let errorMessage = "failedToFetch";
|
|
201
|
+
if (exists) errorMessage = caughtError instanceof Error ? caughtError.message : String(caughtError);
|
|
202
|
+
setError(errorMessage);
|
|
207
203
|
setObjectUrl(null);
|
|
208
204
|
}
|
|
209
205
|
}
|
|
@@ -223,8 +219,11 @@ var SmartImage = (props) => {
|
|
|
223
219
|
src,
|
|
224
220
|
verbose
|
|
225
221
|
]);
|
|
226
|
-
const
|
|
227
|
-
|
|
222
|
+
const activeAnalysis = analysisData ?? analysis;
|
|
223
|
+
let activeObjectUrl = src ? objectUrl : null;
|
|
224
|
+
if (analysisData) activeObjectUrl = src ?? null;
|
|
225
|
+
const hasAnalysed = Boolean(activeAnalysis) && Boolean(activeObjectUrl);
|
|
226
|
+
const { dominantColors, isDark, isTransparent, transparencyInfo, averageColor } = activeAnalysis ?? {};
|
|
228
227
|
const classFetchProps = {
|
|
229
228
|
isLoaded: true,
|
|
230
229
|
dominantColors,
|
|
@@ -238,7 +237,7 @@ var SmartImage = (props) => {
|
|
|
238
237
|
if (hidden) return null;
|
|
239
238
|
const colorfulDominantColor = dominantColors?.find((color) => (color.saturation ?? 0) > .25 && (color.area ?? 0) >= .1) || dominantColors?.[0];
|
|
240
239
|
const imageStyle = {
|
|
241
|
-
...imageProps.style
|
|
240
|
+
...imageProps.style,
|
|
242
241
|
"--es-img-dominant-color": dominantColors?.[0]?.color ?? "",
|
|
243
242
|
"--es-img-colorful-dominant-color": colorfulDominantColor?.color ?? "",
|
|
244
243
|
"--es-img-average-color": averageColor?.color ?? ""
|
|
@@ -246,38 +245,41 @@ var SmartImage = (props) => {
|
|
|
246
245
|
const imageElement = jsx("img", {
|
|
247
246
|
decoding: "async",
|
|
248
247
|
...imageProps,
|
|
249
|
-
src:
|
|
248
|
+
src: activeAnalysis && activeObjectUrl && !error ? activeObjectUrl : imageProps.src,
|
|
250
249
|
style: imageStyle,
|
|
251
|
-
className: clsx("es:transition-opacity", !hasAnalysed && !error && processingClassName,
|
|
250
|
+
className: clsx("es:transition-opacity", !hasAnalysed && !error && processingClassName, isClassNameResolver(className) ? className(classFetchProps) : className),
|
|
252
251
|
"data-is-transparent": isTransparent,
|
|
253
252
|
"data-is-dark": isDark
|
|
254
253
|
});
|
|
255
254
|
if (error && renderError) return renderError(error);
|
|
256
|
-
if (error === "failedToFetch")
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
children:
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
children:
|
|
255
|
+
if (error === "failedToFetch") {
|
|
256
|
+
const hasCustomErrorRenderer = isChildrenRenderer(children);
|
|
257
|
+
return jsxs("div", {
|
|
258
|
+
className: clsx(!hasCustomErrorRenderer && "es:flex es:flex-col es:gap-2 es:items-center-safe es:justify-center es:p-2", "es:motion-preset-fade", errorClassName),
|
|
259
|
+
children: [!hasCustomErrorRenderer && jsx(DecorativeTooltip, {
|
|
260
|
+
text: __("Error loading image", "eightshift-ui-components"),
|
|
261
|
+
children: cloneElement(imageError, { className: "es:text-surface-600 es:size-8" })
|
|
262
|
+
}), hasCustomErrorRenderer ? children({
|
|
263
|
+
image: imageElement,
|
|
264
|
+
hasAnalysed,
|
|
265
|
+
isLoaded: true,
|
|
266
|
+
dominantColors: void 0,
|
|
267
|
+
isDark: void 0,
|
|
268
|
+
isTransparent: false,
|
|
269
|
+
transparencyInfo: void 0,
|
|
270
|
+
averageColor: null,
|
|
271
|
+
hasError: true,
|
|
272
|
+
errorBadge: jsx("div", {
|
|
273
|
+
className: "es:size-full es:flex es:items-center es:justify-center",
|
|
274
|
+
children: jsx(DecorativeTooltip, {
|
|
275
|
+
text: __("Error loading image", "eightshift-ui-components"),
|
|
276
|
+
children: cloneElement(imageError, { className: "es:text-surface-600 es:size-8" })
|
|
277
|
+
})
|
|
276
278
|
})
|
|
277
|
-
})
|
|
278
|
-
})
|
|
279
|
-
}
|
|
280
|
-
return children
|
|
279
|
+
}) : imageElement]
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
return isChildrenRenderer(children) ? children({
|
|
281
283
|
image: imageElement,
|
|
282
284
|
...classFetchProps
|
|
283
285
|
}) : imageElement;
|
|
@@ -50,68 +50,20 @@ type TabPanelProps = ComponentPropsWithoutRef<typeof ReactAriaTabPanel> & {
|
|
|
50
50
|
vertical?: boolean;
|
|
51
51
|
flat?: boolean;
|
|
52
52
|
};
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
* </Tabs>
|
|
70
|
-
*/
|
|
71
|
-
export declare const Tabs: {
|
|
72
|
-
(props: Prettify<TabsProps>): import("react").JSX.Element | null;
|
|
73
|
-
displayName: string;
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* Container for tabs within the Tabs component.
|
|
77
|
-
*
|
|
78
|
-
* @component
|
|
79
|
-
* @param {TabListProps} props - Component props.
|
|
80
|
-
*
|
|
81
|
-
* @returns {JSX.Element} The TabList component.
|
|
82
|
-
*
|
|
83
|
-
* @see {@link Tabs} for usage example.
|
|
84
|
-
*/
|
|
85
|
-
export declare const TabList: {
|
|
86
|
-
(props: Prettify<TabListProps>): import("react").JSX.Element;
|
|
87
|
-
displayName: string;
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* A tab within the TabList component, in the Tabs component.
|
|
91
|
-
*
|
|
92
|
-
* @component
|
|
93
|
-
* @param {TabProps} props - Component props.
|
|
94
|
-
*
|
|
95
|
-
* @returns {JSX.Element} The Tab component.
|
|
96
|
-
*
|
|
97
|
-
* @see {@link Tabs} for usage example.
|
|
98
|
-
*/
|
|
99
|
-
export declare const Tab: {
|
|
100
|
-
(props: Prettify<TabProps>): import("react").JSX.Element;
|
|
101
|
-
displayName: string;
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* Container for tab content within the Tabs component.
|
|
105
|
-
*
|
|
106
|
-
* @component
|
|
107
|
-
* @param {TabPanelProps} props - Component props.
|
|
108
|
-
*
|
|
109
|
-
* @returns {JSX.Element} The TabPanel component.
|
|
110
|
-
*
|
|
111
|
-
* @see {@link Tabs} for usage example.
|
|
112
|
-
*/
|
|
113
|
-
export declare const TabPanel: {
|
|
114
|
-
(props: Prettify<TabPanelProps>): import("react").JSX.Element;
|
|
115
|
-
displayName: string;
|
|
116
|
-
};
|
|
53
|
+
export declare function Tabs(props: Prettify<TabsProps>): import("react").JSX.Element | null;
|
|
54
|
+
export declare namespace Tabs {
|
|
55
|
+
var displayName: string;
|
|
56
|
+
}
|
|
57
|
+
export declare function TabList(props: Prettify<TabListProps>): import("react").JSX.Element;
|
|
58
|
+
export declare namespace TabList {
|
|
59
|
+
var displayName: string;
|
|
60
|
+
}
|
|
61
|
+
export declare function Tab(props: Prettify<TabProps>): import("react").JSX.Element;
|
|
62
|
+
export declare namespace Tab {
|
|
63
|
+
var displayName: string;
|
|
64
|
+
}
|
|
65
|
+
export declare function TabPanel(props: Prettify<TabPanelProps>): import("react").JSX.Element;
|
|
66
|
+
export declare namespace TabPanel {
|
|
67
|
+
var displayName: string;
|
|
68
|
+
}
|
|
117
69
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as Tabs, n as TabList, r as TabPanel, t as Tab } from "../../tabs-
|
|
1
|
+
import { i as Tabs, n as TabList, r as TabPanel, t as Tab } from "../../tabs-DE-qb7Kt.js";
|
|
2
2
|
export { Tab, TabList, TabPanel, Tabs };
|
|
@@ -3,7 +3,7 @@ import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
|
3
3
|
import { Switch as ReactAriaSwitch } from 'react-aria-components';
|
|
4
4
|
import type { Prettify } from '../../utilities/types';
|
|
5
5
|
declare const outsideClasses: (props?: ({
|
|
6
|
-
size?: "
|
|
6
|
+
size?: "default" | "medium" | "small" | null | undefined;
|
|
7
7
|
checked?: boolean | null | undefined;
|
|
8
8
|
disabled?: boolean | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Switch } from "../../switch-
|
|
1
|
+
import { t as Switch } from "../../switch-Bo6nmed_.js";
|
|
2
2
|
export { Switch };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
2
|
-
import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5 } from "../../Label-
|
|
3
|
-
import { t as Switch } from "../../switch-
|
|
2
|
+
import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5 } from "../../Label-C4bJkVti.js";
|
|
3
|
+
import { t as Switch } from "../../switch-Bo6nmed_.js";
|
|
4
4
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -4,10 +4,10 @@ import { ToggleButton as ReactAriaToggleButton } from 'react-aria-components';
|
|
|
4
4
|
import { Tooltip } from '../tooltip/tooltip';
|
|
5
5
|
import type { Prettify } from '../../utilities/types';
|
|
6
6
|
declare const componentClasses: (props?: ({
|
|
7
|
-
size?: "
|
|
7
|
+
size?: "default" | "large" | "small" | null | undefined;
|
|
8
8
|
selected?: boolean | null | undefined;
|
|
9
9
|
flat?: boolean | null | undefined;
|
|
10
|
-
type?: "default" | "ghost" | "simple" | null | undefined;
|
|
10
|
+
type?: "default" | "ghost" | "outline" | "simple" | null | undefined;
|
|
11
11
|
disabled?: boolean | null | undefined;
|
|
12
12
|
hasIcon?: boolean | null | undefined;
|
|
13
13
|
iconOnly?: boolean | null | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ToggleButton } from "../../toggle-button-
|
|
1
|
+
import { t as ToggleButton } from "../../toggle-button-Cb4yCEua.js";
|
|
2
2
|
export { ToggleButton };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as Tooltip, t as DecorativeTooltip } from "../../tooltip-
|
|
1
|
+
import { n as Tooltip, t as DecorativeTooltip } from "../../tooltip-CT-vzIdz.js";
|
|
2
2
|
export { DecorativeTooltip, Tooltip };
|