@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.
Files changed (170) hide show
  1. package/dist/{Autocomplete-BUU44AuW.js → Autocomplete-Dqkum3dO.js} +29 -25
  2. package/dist/{Button-_E2Z5G2l.js → Button-DHgs_rCq.js} +15 -9
  3. package/dist/{Dialog-3XLIaepk.js → Dialog-CldDJ_4u.js} +390 -189
  4. package/dist/{Disclosure-Dh0z_DEQ.js → Disclosure-BHNgL5Is.js} +33 -29
  5. package/dist/{FocusScope-BKGWN6UK.js → FocusScope-CUuL5wjz.js} +13 -8
  6. package/dist/{Heading-BWTs9ckA.js → Heading-BQje2nS2.js} +1 -1
  7. package/dist/{I18nProvider-BskRMK8G.js → I18nProvider-R_4IDnf9.js} +1 -1
  8. package/dist/{Label-UpU4cKPh.js → Label-C4bJkVti.js} +1 -1
  9. package/dist/{ListBox-DepY-52g.js → ListBox-CZXso3mJ.js} +14 -38
  10. package/dist/{NumberFormatter-WKBRKiEA.js → NumberFormatter-Bwdv413k.js} +4 -2
  11. package/dist/{RadioGroup-Br9Mn9QJ.js → RadioGroup-BTByPMrl.js} +35 -35
  12. package/dist/{SearchField-q2Fj0L9K.js → SearchField-DkX1vqMN.js} +29 -26
  13. package/dist/{Slider-B8icnyOo.js → Slider-Dw-JjfLx.js} +55 -44
  14. package/dist/{Text-D4y19vs8.js → Text-CA2_mHEB.js} +4 -3
  15. package/dist/{VisuallyHidden-B_LZ_kn7.js → VisuallyHidden-ZZwHZDro.js} +2 -2
  16. package/dist/{animation-DpSgtWyu.js → animation-COc9P6ap.js} +2 -4
  17. package/dist/assets/{image-analysis-worker-BuHru-CI.js → image-analysis-worker-CBOB71mx.js} +1 -1
  18. package/dist/assets/style-admin.css +1 -1
  19. package/dist/assets/style-editor.css +1 -1
  20. package/dist/assets/style.css +1 -1
  21. package/dist/assets/wp-overrides/make-block-messages-nicer.css +1 -1
  22. package/dist/{build-module-DG6ZK7Ty.js → build-module-BISCoQjQ.js} +4 -4
  23. package/dist/{button-XSk_8UW7.js → button-ldR_tlvk.js} +64 -13
  24. package/dist/{checkbox-BYaS9tQ5.js → checkbox-DDyLJRY8.js} +8 -8
  25. package/dist/{color-swatch-6ZEIXej3.js → color-swatch-DmhdOhe4.js} +15 -16
  26. package/dist/components/animated-visibility/animated-visibility.js +5 -3
  27. package/dist/components/base-control/base-control.d.ts +1 -1
  28. package/dist/components/base-control/base-control.js +1 -1
  29. package/dist/components/base-control/container.d.ts +4 -30
  30. package/dist/components/base-control/container.js +5 -32
  31. package/dist/components/breakpoint-preview/breakpoint-preview.js +1 -1
  32. package/dist/components/button/button.d.ts +1 -1
  33. package/dist/components/button/button.js +1 -1
  34. package/dist/components/checkbox/checkbox.js +1 -1
  35. package/dist/components/color-pickers/color-picker.js +8 -8
  36. package/dist/components/color-pickers/color-swatch.js +1 -1
  37. package/dist/components/color-pickers/gradient-editor.js +1 -1
  38. package/dist/components/color-pickers/solid-color-picker.js +1 -1
  39. package/dist/components/component-toggle/component-toggle.d.ts +1 -1
  40. package/dist/components/component-toggle/component-toggle.js +4 -4
  41. package/dist/components/container-panel/container-panel.js +11 -11
  42. package/dist/components/contextual-help/contextual-help.js +3 -3
  43. package/dist/components/draggable/draggable.d.ts +3 -3
  44. package/dist/components/draggable/draggable.js +1 -1
  45. package/dist/components/draggable-list/draggable-list.d.ts +3 -3
  46. package/dist/components/draggable-list/draggable-list.js +9 -9
  47. package/dist/components/expandable/expandable.js +4 -4
  48. package/dist/components/index.d.ts +1 -0
  49. package/dist/components/index.js +18 -17
  50. package/dist/components/input-field/input-field.d.ts +1 -1
  51. package/dist/components/input-field/input-field.js +1 -1
  52. package/dist/components/item-collection/item-collection.d.ts +3 -28
  53. package/dist/components/item-collection/item-collection.js +7 -7
  54. package/dist/components/link-input/link-input.d.ts +0 -2
  55. package/dist/components/link-input/link-input.js +1 -1
  56. package/dist/components/matrix-align/matrix-align.js +5 -4
  57. package/dist/components/menu/menu.d.ts +8 -29
  58. package/dist/components/menu/menu.js +11 -8
  59. package/dist/components/modal/modal.js +1 -1
  60. package/dist/components/notice/notice.js +8 -8
  61. package/dist/components/number-picker/number-picker.d.ts +1 -1
  62. package/dist/components/number-picker/number-picker.js +1 -1
  63. package/dist/components/option-select/option-select.d.ts +1 -1
  64. package/dist/components/option-select/option-select.js +22 -16
  65. package/dist/components/options-panel/options-panel.js +4 -4
  66. package/dist/components/placeholders/file-picker-shell.js +4 -3
  67. package/dist/components/placeholders/file-placeholder.js +3 -2
  68. package/dist/components/popover/popover.js +5 -5
  69. package/dist/components/portal-provider/portal-provider.js +2 -1
  70. package/dist/components/prompt-popover/prompt-popover.d.ts +56 -0
  71. package/dist/components/prompt-popover/prompt-popover.js +81 -0
  72. package/dist/components/radio/radio.d.ts +2 -1
  73. package/dist/components/radio/radio.js +2 -2
  74. package/dist/components/repeater/repeater-context.d.ts +0 -1
  75. package/dist/components/repeater/repeater-item.js +2 -2
  76. package/dist/components/repeater/repeater.d.ts +5 -38
  77. package/dist/components/repeater/repeater.js +8 -11
  78. package/dist/components/responsive/mini-responsive.d.ts +0 -1
  79. package/dist/components/responsive/mini-responsive.js +31 -31
  80. package/dist/components/responsive/responsive-legacy.d.ts +0 -1
  81. package/dist/components/responsive/responsive-legacy.js +13 -11
  82. package/dist/components/responsive/responsive.d.ts +0 -1
  83. package/dist/components/responsive/responsive.js +29 -29
  84. package/dist/components/responsive-preview/responsive-preview.js +4 -4
  85. package/dist/components/rich-label/rich-label.d.ts +1 -1
  86. package/dist/components/rich-label/rich-label.js +2 -2
  87. package/dist/components/select/async-multi-select.d.ts +12 -13
  88. package/dist/components/select/async-multi-select.js +40 -21
  89. package/dist/components/select/async-select.d.ts +12 -13
  90. package/dist/components/select/async-select.js +39 -21
  91. package/dist/components/select/multi-select.d.ts +2 -8
  92. package/dist/components/select/multi-select.js +20 -20
  93. package/dist/components/select/shared.d.ts +7 -11
  94. package/dist/components/select/shared.js +2 -2
  95. package/dist/components/select/single-select.d.ts +2 -8
  96. package/dist/components/select/single-select.js +17 -17
  97. package/dist/components/select/styles.d.ts +2 -2
  98. package/dist/components/slider/column-config-slider.js +8 -6
  99. package/dist/components/slider/slider.js +16 -12
  100. package/dist/components/slider/utils.js +1 -1
  101. package/dist/components/smart-image/smart-image.d.ts +1 -2
  102. package/dist/components/smart-image/smart-image.js +53 -51
  103. package/dist/components/tabs/tabs.d.ts +16 -64
  104. package/dist/components/tabs/tabs.js +1 -1
  105. package/dist/components/toggle/switch.d.ts +1 -1
  106. package/dist/components/toggle/switch.js +1 -1
  107. package/dist/components/toggle/toggle.js +2 -2
  108. package/dist/components/toggle-button/toggle-button.d.ts +2 -2
  109. package/dist/components/toggle-button/toggle-button.js +1 -1
  110. package/dist/components/tooltip/tooltip.js +1 -1
  111. package/dist/{draggable-9MfdTVWP.js → draggable-oS68xcYX.js} +130 -125
  112. package/dist/{es-dash-DunirOmV.js → es-dash-DPtJSRjw.js} +23 -52
  113. package/dist/{gradient-editor-yqSw0uPA.js → gradient-editor-DP8ioFX1.js} +39 -30
  114. package/dist/icons/block-icon.js +1 -1
  115. package/dist/icons/icon.d.ts +3 -3
  116. package/dist/icons/icon.js +21 -9
  117. package/dist/icons/icons.d.ts +210 -1
  118. package/dist/icons/index.js +1 -1
  119. package/dist/icons/jsx-svg.d.ts +5 -4
  120. package/dist/icons/jsx-svg.js +1 -1
  121. package/dist/index.js +18 -17
  122. package/dist/{input-field-nN6BO0oz.js → input-field-C-XvZeCZ.js} +8 -8
  123. package/dist/{jsx-svg-BjGQUBLh.js → jsx-svg-DRwJdRpA.js} +171 -129
  124. package/dist/{keyboard-g5Amam-c.js → keyboard-Cdqi5ZQQ.js} +1 -1
  125. package/dist/{link-input-BhlPElU8.js → link-input-DdwuqoMg.js} +147 -89
  126. package/dist/{modal-B5axB0Fc.js → modal-DZco5MDu.js} +15 -14
  127. package/dist/{number-picker-nnOf0XnN.js → number-picker-XqKW0BNi.js} +9 -9
  128. package/dist/{react-y40Dt3ab.js → react-O71mlJXS.js} +250 -266
  129. package/dist/{shared-Ba_bt4s9.js → shared-YXMIX2ka.js} +60 -44
  130. package/dist/{solid-color-picker-CsosgTVa.js → solid-color-picker-D5LEdmDM.js} +78 -58
  131. package/dist/{switch-BJ4_OyUm.js → switch-Bo6nmed_.js} +8 -8
  132. package/dist/{tabs-wAe0AAyu.js → tabs-DE-qb7Kt.js} +35 -30
  133. package/dist/{text-helpers-2j9DuxP1.js → text-helpers-QrwKKaOh.js} +3 -2
  134. package/dist/{textSelection-B_Nv6Jz3.js → textSelection-C17LWYmO.js} +3 -3
  135. package/dist/{toggle-button-BLJdEp8V.js → toggle-button-Cb4yCEua.js} +39 -8
  136. package/dist/{tooltip-BW9nj5-V.js → tooltip-CT-vzIdz.js} +68 -62
  137. package/dist/{useAsyncList-B3-uyJgA.js → useAsyncList-CjKVLGN0.js} +8 -4
  138. package/dist/{useButton-CPMVLXoX.js → useButton-V65TBDGM.js} +3 -3
  139. package/dist/{useCollection-PzY6FI39.js → useCollection-DqUS7tjk.js} +281 -184
  140. package/dist/useEvent-C9zwSNzZ.js +18 -0
  141. package/dist/{useField-DrfR8j9h.js → useField-B_ibsWst.js} +2 -2
  142. package/dist/{useFilter-CiCjo6Na.js → useFilter-C75IzdIZ.js} +1 -1
  143. package/dist/{useFocusRing-CrYHpV7C.js → useFocusRing-JidySWlU.js} +1 -1
  144. package/dist/{useFormReset-U6c35PHq.js → useFormReset-Sp8-miDa.js} +1 -1
  145. package/dist/{useFormValidation-B2q2MGWN.js → useFormValidation-CpmQEh8J.js} +2 -2
  146. package/dist/{useHover-CNsbAR0V.js → useHover-CaY3sRjL.js} +250 -46
  147. package/dist/{useLabel-DuxAjaic.js → useLabel-gfFDE4bn.js} +2 -2
  148. package/dist/{useLabels-NUsp5IW3.js → useLabels-Dcg-cEyM.js} +1 -1
  149. package/dist/{useListState-FLxa7R_U.js → useListState-CzB3v6M9.js} +6 -11
  150. package/dist/{useLocalizedStringFormatter-Ccm8EL_u.js → useLocalizedStringFormatter-CTCqjYu4.js} +6 -1
  151. package/dist/{useNumberFieldState-DWvm7CXu.js → useNumberFieldState-DC3XY3DQ.js} +79 -62
  152. package/dist/{useNumberFormatter-B0_D7a_o.js → useNumberFormatter-DbAt_fC_.js} +2 -2
  153. package/dist/{useOverlayTriggerState-zZ7homyI.js → useOverlayTriggerState-BKmSTK_5.js} +16 -11
  154. package/dist/{usePress-DRoujMNm.js → usePress-CUCWcP-m.js} +50 -28
  155. package/dist/{useSlot-pRz-v9kC.js → useSlot-CnQHcvd4.js} +1 -1
  156. package/dist/{useTextField-e8jIFT3s.js → useTextField-C3QIkMON.js} +6 -6
  157. package/dist/{useToggle-CR_ZKvr_.js → useToggle-bbGRUbo4.js} +6 -6
  158. package/dist/{useToggleState-ButQxGrJ.js → useToggleState-D_rLMrVW.js} +1 -1
  159. package/dist/utilities/array-helpers.d.ts +2 -2
  160. package/dist/utilities/array-helpers.js +4 -3
  161. package/dist/utilities/debounce-throttle.d.ts +9 -2
  162. package/dist/utilities/es-dash.d.ts +11 -8
  163. package/dist/utilities/es-dash.js +1 -1
  164. package/dist/utilities/index.js +2 -2
  165. package/dist/utilities/text-helpers.js +1 -1
  166. package/dist/utilities/web-workers.d.ts +7 -7
  167. package/dist/utilities/web-workers.js +5 -5
  168. package/dist/{utils-Czi6q2Ub.js → utils-ClM91CuL.js} +30 -19
  169. package/package.json +23 -27
  170. 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-BW9nj5-V.js";
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-DG6ZK7Ty.js";
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 getErrorMessage = (error) => {
38
- if (error instanceof Error) return error.message;
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-BuHru-CI.js", import.meta.url).href + "", "" + import.meta.url), { type: "module" });
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
- setObjectUrl(null);
106
- return () => {
107
- isActive = false;
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 (typeof OffscreenCanvas !== "undefined") {
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 ("close" in imageSource && typeof imageSource.close === "function") imageSource.close();
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
- setError(exists ? getErrorMessage(caughtError) : "failedToFetch");
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 hasAnalysed = Boolean(analysis) && Boolean(objectUrl);
227
- const { dominantColors, isDark, isTransparent, transparencyInfo, averageColor } = analysis ?? {};
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: analysis && objectUrl && !error ? objectUrl : imageProps.src,
248
+ src: activeAnalysis && activeObjectUrl && !error ? activeObjectUrl : imageProps.src,
250
249
  style: imageStyle,
251
- className: clsx("es:transition-opacity", !hasAnalysed && !error && processingClassName, typeof className === "function" ? className(classFetchProps) : className),
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") return jsxs("div", {
257
- className: clsx(typeof children !== "function" && "es:flex es:flex-col es:gap-2 es:items-center-safe es:justify-center es:p-2", "es:motion-preset-fade", errorClassName),
258
- children: [typeof children !== "function" && jsx(DecorativeTooltip, {
259
- text: __("Error loading image", "eightshift-ui-components"),
260
- children: cloneElement(imageError, { className: "es:text-surface-600 es:size-8" })
261
- }), typeof children === "function" ? children({
262
- image: imageElement,
263
- hasAnalysed,
264
- isLoaded: true,
265
- dominantColors: void 0,
266
- isDark: void 0,
267
- isTransparent: false,
268
- transparencyInfo: void 0,
269
- averageColor: null,
270
- hasError: true,
271
- errorBadge: jsx("div", {
272
- className: "es:size-full es:flex es:items-center es:justify-center",
273
- children: jsx(DecorativeTooltip, {
274
- text: __("Error loading image", "eightshift-ui-components"),
275
- children: cloneElement(imageError, { className: "es:text-surface-600 es:size-8" })
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
- }) : imageElement]
279
- });
280
- return children && typeof children === "function" ? 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
- * Main tab container.
55
- *
56
- * @component
57
- * @param {TabsProps} props - Component props.
58
- *
59
- * @returns {JSX.Element} The Tabs component.
60
- *
61
- * @example
62
- * <Tabs>
63
- * <TabList>
64
- * <Tab>Tab 1</Tab>
65
- * <Tab>Tab 2</Tab>
66
- * </TabList>
67
- * <TabPanel>Content 1</TabPanel>
68
- * <TabPanel>Content 2</TabPanel>
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-wAe0AAyu.js";
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?: "small" | "default" | "medium" | null | undefined;
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-BJ4_OyUm.js";
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-UpU4cKPh.js";
3
- import { t as Switch } from "../../switch-BJ4_OyUm.js";
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?: "small" | "default" | "large" | null | undefined;
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-BLJdEp8V.js";
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-BW9nj5-V.js";
1
+ import { n as Tooltip, t as DecorativeTooltip } from "../../tooltip-CT-vzIdz.js";
2
2
  export { DecorativeTooltip, Tooltip };