@marigold/components 1.3.0 → 2.1.1

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/index.mjs CHANGED
@@ -1,3 +1,6 @@
1
+ // src/hooks.ts
2
+ import { useAsyncList, useListData } from "@react-stately/data";
3
+
1
4
  // src/Aside/Aside.tsx
2
5
  import React from "react";
3
6
 
@@ -97,14 +100,11 @@ var Breakout = ({
97
100
  };
98
101
 
99
102
  // src/Button/Button.tsx
100
- import React5, {
101
- forwardRef,
102
- useImperativeHandle,
103
- useRef
104
- } from "react";
103
+ import React5, { forwardRef } from "react";
105
104
  import { useButton } from "@react-aria/button";
106
105
  import { useFocusRing } from "@react-aria/focus";
107
- import { mergeProps } from "@react-aria/utils";
106
+ import { useHover } from "@react-aria/interactions";
107
+ import { mergeProps, useObjectRef } from "@react-aria/utils";
108
108
  import {
109
109
  Box as Box2,
110
110
  useComponentStyles as useComponentStyles2,
@@ -117,34 +117,55 @@ var Button = forwardRef(
117
117
  variant,
118
118
  size,
119
119
  disabled,
120
+ onClick,
121
+ onPress,
122
+ onPressStart,
123
+ onPressEnd,
124
+ onPressChange,
125
+ onPressUp,
126
+ fullWidth,
120
127
  ...props
121
128
  }, ref) => {
122
- const buttonRef = useRef(null);
123
- useImperativeHandle(ref, () => buttonRef.current);
129
+ const buttonRef = useObjectRef(ref);
130
+ const { hoverProps, isHovered } = useHover({ isDisabled: disabled });
131
+ const { isFocusVisible, focusProps } = useFocusRing({
132
+ autoFocus: props.autoFocus
133
+ });
124
134
  const { buttonProps, isPressed } = useButton(
125
135
  {
126
136
  ...props,
137
+ onClick,
138
+ onPress,
139
+ onPressStart,
140
+ onPressEnd,
141
+ onPressChange,
142
+ onPressUp,
127
143
  elementType: typeof as === "string" ? as : "span",
128
144
  isDisabled: disabled
129
145
  },
130
146
  buttonRef
131
147
  );
132
- const { isFocusVisible, focusProps } = useFocusRing();
133
148
  const styles = useComponentStyles2("Button", { variant, size });
134
149
  const stateProps = useStateProps({
135
150
  active: isPressed,
136
- focus: isFocusVisible
151
+ focusVisible: isFocusVisible,
152
+ hover: isHovered
137
153
  });
138
154
  return /* @__PURE__ */ React5.createElement(Box2, {
139
- ...mergeProps(buttonProps, focusProps),
155
+ ...mergeProps(buttonProps, focusProps, hoverProps, props),
140
156
  ...stateProps,
141
157
  as,
142
158
  ref: buttonRef,
143
159
  __baseCSS: {
144
160
  display: "inline-flex",
145
161
  alignItems: "center",
162
+ justifyContent: "center",
146
163
  gap: "0.5ch",
147
- cursor: disabled ? "not-allowed" : "pointer"
164
+ cursor: disabled ? "not-allowed" : "pointer",
165
+ width: fullWidth ? "100%" : void 0,
166
+ "&:focus": {
167
+ outline: 0
168
+ }
148
169
  },
149
170
  css: styles
150
171
  }, children);
@@ -190,8 +211,8 @@ var Center = ({
190
211
  import React10, { forwardRef as forwardRef2 } from "react";
191
212
  import { useCheckbox, useCheckboxGroupItem } from "@react-aria/checkbox";
192
213
  import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
193
- import { useHover } from "@react-aria/interactions";
194
- import { useObjectRef } from "@react-aria/utils";
214
+ import { useHover as useHover2 } from "@react-aria/interactions";
215
+ import { useObjectRef as useObjectRef2 } from "@react-aria/utils";
195
216
  import { useToggleState } from "@react-stately/toggle";
196
217
  import {
197
218
  Box as Box6,
@@ -330,7 +351,7 @@ var Checkbox = forwardRef2(
330
351
  error,
331
352
  ...props
332
353
  }, ref) => {
333
- const inputRef = useObjectRef(ref);
354
+ const inputRef = useObjectRef2(ref);
334
355
  const checkboxProps = {
335
356
  isIndeterminate: indeterminate,
336
357
  isDisabled: disabled,
@@ -357,6 +378,7 @@ var Checkbox = forwardRef2(
357
378
  useToggleState({
358
379
  isSelected: checked,
359
380
  defaultSelected: defaultChecked,
381
+ isReadOnly: readOnly,
360
382
  ...props
361
383
  }),
362
384
  inputRef
@@ -369,7 +391,7 @@ var Checkbox = forwardRef2(
369
391
  },
370
392
  { parts: ["container", "label", "checkbox"] }
371
393
  );
372
- const { hoverProps, isHovered } = useHover({});
394
+ const { hoverProps, isHovered } = useHover2({});
373
395
  const { isFocusVisible, focusProps } = useFocusRing2();
374
396
  const stateProps = useStateProps2({
375
397
  hover: isHovered,
@@ -518,7 +540,7 @@ var Content = ({
518
540
  };
519
541
 
520
542
  // src/Dialog/Dialog.tsx
521
- import React21, { useRef as useRef4 } from "react";
543
+ import React21, { useRef as useRef3 } from "react";
522
544
  import { useButton as useButton2 } from "@react-aria/button";
523
545
  import { useDialog } from "@react-aria/dialog";
524
546
  import {
@@ -570,7 +592,7 @@ var DialogContext = createContext2({});
570
592
  var useDialogContext = () => useContext2(DialogContext);
571
593
 
572
594
  // src/Dialog/DialogTrigger.tsx
573
- import React20, { useRef as useRef3 } from "react";
595
+ import React20, { useRef as useRef2 } from "react";
574
596
  import { PressResponder } from "@react-aria/interactions";
575
597
  import { useOverlayTriggerState } from "@react-stately/overlays";
576
598
 
@@ -578,7 +600,7 @@ import { useOverlayTriggerState } from "@react-stately/overlays";
578
600
  import React17, { forwardRef as forwardRef3 } from "react";
579
601
  import { FocusScope } from "@react-aria/focus";
580
602
  import { useModal, useOverlay, usePreventScroll } from "@react-aria/overlays";
581
- import { mergeProps as mergeProps2, useObjectRef as useObjectRef2 } from "@react-aria/utils";
603
+ import { mergeProps as mergeProps2, useObjectRef as useObjectRef3 } from "@react-aria/utils";
582
604
 
583
605
  // src/Overlay/Underlay.tsx
584
606
  import React16 from "react";
@@ -599,7 +621,7 @@ var Underlay = ({ size, variant, ...props }) => {
599
621
  // src/Overlay/Modal.tsx
600
622
  var Modal = forwardRef3(
601
623
  ({ children, open, dismissable, keyboardDismissable, onClose, ...props }, ref) => {
602
- const modalRef = useObjectRef2(ref);
624
+ const modalRef = useObjectRef3(ref);
603
625
  const { overlayProps, underlayProps } = useOverlay(
604
626
  {
605
627
  isOpen: open,
@@ -655,7 +677,7 @@ var Overlay = ({
655
677
  };
656
678
 
657
679
  // src/Overlay/Popover.tsx
658
- import React19, { forwardRef as forwardRef4, useRef as useRef2 } from "react";
680
+ import React19, { forwardRef as forwardRef4, useRef } from "react";
659
681
  import { useModal as useModal2, useOverlay as useOverlay2 } from "@react-aria/overlays";
660
682
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
661
683
  var Popover = forwardRef4(
@@ -668,7 +690,7 @@ var Popover = forwardRef4(
668
690
  minWidth = 0,
669
691
  ...props
670
692
  }, ref) => {
671
- const fallbackRef = useRef2(null);
693
+ const fallbackRef = useRef(null);
672
694
  const popoverRef = ref || fallbackRef;
673
695
  const { overlayProps } = useOverlay2(
674
696
  {
@@ -699,7 +721,7 @@ var DialogTrigger = ({
699
721
  keyboardDismissable = true
700
722
  }) => {
701
723
  const [dialogTrigger, dialog] = React20.Children.toArray(children);
702
- const dialogTriggerRef = useRef3(null);
724
+ const dialogTriggerRef = useRef2(null);
703
725
  const state = useOverlayTriggerState({});
704
726
  const ctx = { open: state.isOpen, close: state.close };
705
727
  return /* @__PURE__ */ React20.createElement(DialogContext.Provider, {
@@ -720,7 +742,7 @@ var DialogTrigger = ({
720
742
 
721
743
  // src/Dialog/Dialog.tsx
722
744
  var CloseButton = ({ css }) => {
723
- const ref = useRef4(null);
745
+ const ref = useRef3(null);
724
746
  const { close } = useDialogContext();
725
747
  const { buttonProps } = useButton2(
726
748
  {
@@ -778,7 +800,7 @@ var Dialog = ({
778
800
  closeButton,
779
801
  ...props
780
802
  }) => {
781
- const ref = useRef4(null);
803
+ const ref = useRef3(null);
782
804
  const { close } = useDialogContext();
783
805
  const { dialogProps, titleProps } = useDialog(props, ref);
784
806
  const styles = useComponentStyles11(
@@ -826,13 +848,25 @@ var Footer = ({ children, variant, size, ...props }) => {
826
848
 
827
849
  // src/Image/Image.tsx
828
850
  import React24 from "react";
851
+ import { Box as Box12 } from "@marigold/system";
829
852
  import { useComponentStyles as useComponentStyles14 } from "@marigold/system";
830
- var Image = ({ variant, ...props }) => {
831
- const styles = useComponentStyles14("Image", { variant });
832
- return /* @__PURE__ */ React24.createElement(Box, {
853
+ var Image = ({
854
+ variant,
855
+ size,
856
+ fit,
857
+ position,
858
+ ...props
859
+ }) => {
860
+ const styles = useComponentStyles14("Image", { variant, size });
861
+ const css = {
862
+ ...styles,
863
+ objectFit: fit,
864
+ objectPosition: position
865
+ };
866
+ return /* @__PURE__ */ React24.createElement(Box12, {
833
867
  ...props,
834
868
  as: "img",
835
- css: styles
869
+ css
836
870
  });
837
871
  };
838
872
 
@@ -867,11 +901,11 @@ var Inline = ({
867
901
 
868
902
  // src/Input/Input.tsx
869
903
  import React26, { forwardRef as forwardRef5 } from "react";
870
- import { Box as Box12, useComponentStyles as useComponentStyles15 } from "@marigold/system";
904
+ import { Box as Box13, useComponentStyles as useComponentStyles15 } from "@marigold/system";
871
905
  var Input = forwardRef5(
872
906
  ({ variant, size, type = "text", ...props }, ref) => {
873
907
  const styles = useComponentStyles15("Input", { variant, size });
874
- return /* @__PURE__ */ React26.createElement(Box12, {
908
+ return /* @__PURE__ */ React26.createElement(Box13, {
875
909
  ...props,
876
910
  ref,
877
911
  as: "input",
@@ -885,7 +919,7 @@ var Input = forwardRef5(
885
919
  import React27, { forwardRef as forwardRef6 } from "react";
886
920
  import { useLink } from "@react-aria/link";
887
921
  import { useComponentStyles as useComponentStyles16 } from "@marigold/system";
888
- import { useObjectRef as useObjectRef3 } from "@react-aria/utils";
922
+ import { useObjectRef as useObjectRef4 } from "@react-aria/utils";
889
923
  var Link = forwardRef6(
890
924
  ({
891
925
  as = "a",
@@ -897,7 +931,7 @@ var Link = forwardRef6(
897
931
  onPressStart,
898
932
  ...props
899
933
  }, ref) => {
900
- const linkRef = useObjectRef3(ref);
934
+ const linkRef = useObjectRef4(ref);
901
935
  const { linkProps } = useLink(
902
936
  {
903
937
  ...props,
@@ -920,7 +954,7 @@ var Link = forwardRef6(
920
954
  // src/List/List.tsx
921
955
  import React29 from "react";
922
956
  import {
923
- Box as Box14,
957
+ Box as Box15,
924
958
  useComponentStyles as useComponentStyles17
925
959
  } from "@marigold/system";
926
960
 
@@ -931,10 +965,10 @@ var useListContext = () => useContext3(ListContext);
931
965
 
932
966
  // src/List/ListItem.tsx
933
967
  import React28 from "react";
934
- import { Box as Box13 } from "@marigold/system";
968
+ import { Box as Box14 } from "@marigold/system";
935
969
  var ListItem = ({ children, ...props }) => {
936
970
  const { styles } = useListContext();
937
- return /* @__PURE__ */ React28.createElement(Box13, {
971
+ return /* @__PURE__ */ React28.createElement(Box14, {
938
972
  ...props,
939
973
  as: "li",
940
974
  css: styles
@@ -954,7 +988,7 @@ var List = ({
954
988
  { variant, size },
955
989
  { parts: ["ul", "ol", "item"] }
956
990
  );
957
- return /* @__PURE__ */ React29.createElement(Box14, {
991
+ return /* @__PURE__ */ React29.createElement(Box15, {
958
992
  ...props,
959
993
  as,
960
994
  css: styles[as]
@@ -965,14 +999,14 @@ var List = ({
965
999
  List.Item = ListItem;
966
1000
 
967
1001
  // src/Menu/Menu.tsx
968
- import React32, { useRef as useRef7 } from "react";
1002
+ import React32, { useRef as useRef6 } from "react";
969
1003
  import { FocusScope as FocusScope2 } from "@react-aria/focus";
970
1004
  import { useMenu } from "@react-aria/menu";
971
1005
  import { DismissButton } from "@react-aria/overlays";
972
1006
  import { Item } from "@react-stately/collections";
973
1007
  import { useTreeState } from "@react-stately/tree";
974
1008
  import {
975
- Box as Box16,
1009
+ Box as Box17,
976
1010
  useComponentStyles as useComponentStyles18
977
1011
  } from "@marigold/system";
978
1012
 
@@ -982,15 +1016,15 @@ var MenuContext = createContext4({});
982
1016
  var useMenuContext = () => useContext4(MenuContext);
983
1017
 
984
1018
  // src/Menu/MenuTrigger.tsx
985
- import React30, { useRef as useRef5 } from "react";
1019
+ import React30, { useRef as useRef4 } from "react";
986
1020
  import { useMenuTriggerState } from "@react-stately/menu";
987
1021
  import { useMenuTrigger } from "@react-aria/menu";
988
1022
  import { useOverlayPosition } from "@react-aria/overlays";
989
1023
  import { PressResponder as PressResponder2 } from "@react-aria/interactions";
990
1024
  var MenuTrigger = ({ disabled, children }) => {
991
1025
  const [menuTrigger, menu] = React30.Children.toArray(children);
992
- const menuTriggerRef = useRef5(null);
993
- const overlayRef = useRef5(null);
1026
+ const menuTriggerRef = useRef4(null);
1027
+ const overlayRef = useRef4(null);
994
1028
  const state = useMenuTriggerState({});
995
1029
  const { menuTriggerProps, menuProps } = useMenuTrigger(
996
1030
  { trigger: "press", isDisabled: disabled },
@@ -1026,13 +1060,13 @@ var MenuTrigger = ({ disabled, children }) => {
1026
1060
  };
1027
1061
 
1028
1062
  // src/Menu/MenuItem.tsx
1029
- import React31, { useRef as useRef6 } from "react";
1063
+ import React31, { useRef as useRef5 } from "react";
1030
1064
  import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
1031
1065
  import { useMenuItem } from "@react-aria/menu";
1032
1066
  import { mergeProps as mergeProps4 } from "@react-aria/utils";
1033
- import { Box as Box15, useStateProps as useStateProps3 } from "@marigold/system";
1067
+ import { Box as Box16, useStateProps as useStateProps3 } from "@marigold/system";
1034
1068
  var MenuItem = ({ item, state, onAction, css }) => {
1035
- const ref = useRef6(null);
1069
+ const ref = useRef5(null);
1036
1070
  const { onClose } = useMenuContext();
1037
1071
  const { menuItemProps } = useMenuItem(
1038
1072
  {
@@ -1047,7 +1081,7 @@ var MenuItem = ({ item, state, onAction, css }) => {
1047
1081
  const stateProps = useStateProps3({
1048
1082
  focus: isFocusVisible
1049
1083
  });
1050
- return /* @__PURE__ */ React31.createElement(Box15, {
1084
+ return /* @__PURE__ */ React31.createElement(Box16, {
1051
1085
  as: "li",
1052
1086
  ref,
1053
1087
  __baseCSS: {
@@ -1065,7 +1099,7 @@ var MenuItem = ({ item, state, onAction, css }) => {
1065
1099
  var Menu = ({ variant, size, ...props }) => {
1066
1100
  const { triggerWidth, ...menuContext } = useMenuContext();
1067
1101
  const ownProps = { ...props, ...menuContext };
1068
- const ref = useRef7(null);
1102
+ const ref = useRef6(null);
1069
1103
  const state = useTreeState({ ...ownProps, selectionMode: "none" });
1070
1104
  const { menuProps } = useMenu(ownProps, state, ref);
1071
1105
  const styles = useComponentStyles18(
@@ -1077,7 +1111,7 @@ var Menu = ({ variant, size, ...props }) => {
1077
1111
  restoreFocus: true
1078
1112
  }, /* @__PURE__ */ React32.createElement("div", null, /* @__PURE__ */ React32.createElement(DismissButton, {
1079
1113
  onDismiss: ownProps.onClose
1080
- }), /* @__PURE__ */ React32.createElement(Box16, {
1114
+ }), /* @__PURE__ */ React32.createElement(Box17, {
1081
1115
  as: "ul",
1082
1116
  ref,
1083
1117
  style: { width: triggerWidth },
@@ -1145,26 +1179,26 @@ var Message = ({
1145
1179
  // src/NumberField/NumberField.tsx
1146
1180
  import React37, { forwardRef as forwardRef7 } from "react";
1147
1181
  import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
1148
- import { useHover as useHover3 } from "@react-aria/interactions";
1182
+ import { useHover as useHover4 } from "@react-aria/interactions";
1149
1183
  import { useLocale } from "@react-aria/i18n";
1150
1184
  import { useNumberField } from "@react-aria/numberfield";
1151
- import { mergeProps as mergeProps6, useObjectRef as useObjectRef4 } from "@react-aria/utils";
1185
+ import { mergeProps as mergeProps6, useObjectRef as useObjectRef5 } from "@react-aria/utils";
1152
1186
  import { useNumberFieldState } from "@react-stately/numberfield";
1153
1187
  import {
1154
- Box as Box20,
1188
+ Box as Box21,
1155
1189
  useComponentStyles as useComponentStyles21,
1156
1190
  useStateProps as useStateProps5
1157
1191
  } from "@marigold/system";
1158
1192
 
1159
1193
  // src/FieldBase/FieldBase.tsx
1160
1194
  import React35 from "react";
1161
- import { Box as Box18 } from "@marigold/system";
1195
+ import { Box as Box19 } from "@marigold/system";
1162
1196
 
1163
1197
  // src/HelpText/HelpText.tsx
1164
1198
  import React34 from "react";
1165
1199
  import { Exclamation as Exclamation2 } from "@marigold/icons";
1166
1200
  import {
1167
- Box as Box17,
1201
+ Box as Box18,
1168
1202
  useComponentStyles as useComponentStyles20
1169
1203
  } from "@marigold/system";
1170
1204
  var HelpText = ({
@@ -1185,7 +1219,7 @@ var HelpText = ({
1185
1219
  { variant, size },
1186
1220
  { parts: ["container", "icon"] }
1187
1221
  );
1188
- return /* @__PURE__ */ React34.createElement(Box17, {
1222
+ return /* @__PURE__ */ React34.createElement(Box18, {
1189
1223
  ...hasErrorMessage ? errorMessageProps : descriptionProps,
1190
1224
  ...props,
1191
1225
  __baseCSS: { display: "flex", alignItems: "center", gap: 4 },
@@ -1214,7 +1248,7 @@ var FieldBase = ({
1214
1248
  stateProps
1215
1249
  }) => {
1216
1250
  const hasHelpText = !!description || errorMessage && error;
1217
- return /* @__PURE__ */ React35.createElement(Box18, {
1251
+ return /* @__PURE__ */ React35.createElement(Box19, {
1218
1252
  css: { display: "flex", flexDirection: "column", width }
1219
1253
  }, label && /* @__PURE__ */ React35.createElement(Label, {
1220
1254
  required,
@@ -1236,12 +1270,12 @@ var FieldBase = ({
1236
1270
  };
1237
1271
 
1238
1272
  // src/NumberField/StepButton.tsx
1239
- import React36, { useRef as useRef8 } from "react";
1273
+ import React36, { useRef as useRef7 } from "react";
1240
1274
  import { useButton as useButton3 } from "@react-aria/button";
1241
- import { useHover as useHover2 } from "@react-aria/interactions";
1275
+ import { useHover as useHover3 } from "@react-aria/interactions";
1242
1276
  import { mergeProps as mergeProps5 } from "@react-aria/utils";
1243
- import { Box as Box19, useStateProps as useStateProps4 } from "@marigold/system";
1244
- var Plus = () => /* @__PURE__ */ React36.createElement(Box19, {
1277
+ import { Box as Box20, useStateProps as useStateProps4 } from "@marigold/system";
1278
+ var Plus = () => /* @__PURE__ */ React36.createElement(Box20, {
1245
1279
  as: "svg",
1246
1280
  __baseCSS: { width: 16, height: 16 },
1247
1281
  viewBox: "0 0 20 20",
@@ -1251,7 +1285,7 @@ var Plus = () => /* @__PURE__ */ React36.createElement(Box19, {
1251
1285
  clipRule: "evenodd",
1252
1286
  d: "M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z"
1253
1287
  }));
1254
- var Minus = () => /* @__PURE__ */ React36.createElement(Box19, {
1288
+ var Minus = () => /* @__PURE__ */ React36.createElement(Box20, {
1255
1289
  as: "svg",
1256
1290
  __baseCSS: { width: 16, height: 16 },
1257
1291
  viewBox: "0 0 20 20",
@@ -1262,19 +1296,19 @@ var Minus = () => /* @__PURE__ */ React36.createElement(Box19, {
1262
1296
  d: "M3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
1263
1297
  }));
1264
1298
  var StepButton = ({ direction, css, ...props }) => {
1265
- const ref = useRef8(null);
1299
+ const ref = useRef7(null);
1266
1300
  const { buttonProps, isPressed } = useButton3(
1267
1301
  { ...props, elementType: "div" },
1268
1302
  ref
1269
1303
  );
1270
- const { hoverProps, isHovered } = useHover2(props);
1304
+ const { hoverProps, isHovered } = useHover3(props);
1271
1305
  const stateProps = useStateProps4({
1272
1306
  active: isPressed,
1273
1307
  hover: isHovered,
1274
1308
  disabled: props.isDisabled
1275
1309
  });
1276
1310
  const Icon3 = direction === "up" ? Plus : Minus;
1277
- return /* @__PURE__ */ React36.createElement(Box19, {
1311
+ return /* @__PURE__ */ React36.createElement(Box20, {
1278
1312
  __baseCSS: {
1279
1313
  display: "flex",
1280
1314
  alignItems: "center",
@@ -1309,7 +1343,7 @@ var NumberField = forwardRef7(
1309
1343
  };
1310
1344
  const showStepper = !hideStepper;
1311
1345
  const { locale } = useLocale();
1312
- const inputRef = useObjectRef4(ref);
1346
+ const inputRef = useObjectRef5(ref);
1313
1347
  const state = useNumberFieldState({ ...props, locale });
1314
1348
  const {
1315
1349
  labelProps,
@@ -1320,7 +1354,7 @@ var NumberField = forwardRef7(
1320
1354
  incrementButtonProps,
1321
1355
  decrementButtonProps
1322
1356
  } = useNumberField(props, state, inputRef);
1323
- const { hoverProps, isHovered } = useHover3({ isDisabled: disabled });
1357
+ const { hoverProps, isHovered } = useHover4({ isDisabled: disabled });
1324
1358
  const { focusProps, isFocused } = useFocusRing4({
1325
1359
  within: true,
1326
1360
  isTextInput: true,
@@ -1351,7 +1385,7 @@ var NumberField = forwardRef7(
1351
1385
  variant,
1352
1386
  size,
1353
1387
  width
1354
- }, /* @__PURE__ */ React37.createElement(Box20, {
1388
+ }, /* @__PURE__ */ React37.createElement(Box21, {
1355
1389
  "data-group": true,
1356
1390
  __baseCSS: {
1357
1391
  display: "flex",
@@ -1421,12 +1455,12 @@ function MarigoldProvider({
1421
1455
  import React40, {
1422
1456
  forwardRef as forwardRef8
1423
1457
  } from "react";
1424
- import { useHover as useHover4 } from "@react-aria/interactions";
1458
+ import { useHover as useHover5 } from "@react-aria/interactions";
1425
1459
  import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
1426
1460
  import { useRadio } from "@react-aria/radio";
1427
- import { useObjectRef as useObjectRef5 } from "@react-aria/utils";
1461
+ import { useObjectRef as useObjectRef6 } from "@react-aria/utils";
1428
1462
  import {
1429
- Box as Box22,
1463
+ Box as Box23,
1430
1464
  useComponentStyles as useComponentStyles23,
1431
1465
  useStateProps as useStateProps6
1432
1466
  } from "@marigold/system";
@@ -1443,7 +1477,7 @@ import React39 from "react";
1443
1477
  import { useRadioGroup } from "@react-aria/radio";
1444
1478
  import { useRadioGroupState } from "@react-stately/radio";
1445
1479
  import {
1446
- Box as Box21,
1480
+ Box as Box22,
1447
1481
  useComponentStyles as useComponentStyles22
1448
1482
  } from "@marigold/system";
1449
1483
  var RadioGroup = ({
@@ -1472,14 +1506,14 @@ var RadioGroup = ({
1472
1506
  { variant, size },
1473
1507
  { parts: ["container", "group"] }
1474
1508
  );
1475
- return /* @__PURE__ */ React39.createElement(Box21, {
1509
+ return /* @__PURE__ */ React39.createElement(Box22, {
1476
1510
  ...radioGroupProps,
1477
1511
  css: styles.container
1478
1512
  }, props.label && /* @__PURE__ */ React39.createElement(Label, {
1479
1513
  as: "span",
1480
1514
  required,
1481
1515
  ...labelProps
1482
- }, props.label), /* @__PURE__ */ React39.createElement(Box21, {
1516
+ }, props.label), /* @__PURE__ */ React39.createElement(Box22, {
1483
1517
  role: "presentation",
1484
1518
  "data-orientation": orientation,
1485
1519
  __baseCSS: {
@@ -1503,7 +1537,7 @@ var Dot = () => /* @__PURE__ */ React40.createElement("svg", {
1503
1537
  cy: "3",
1504
1538
  r: "3"
1505
1539
  }));
1506
- var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React40.createElement(Box22, {
1540
+ var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React40.createElement(Box23, {
1507
1541
  "aria-hidden": "true",
1508
1542
  __baseCSS: {
1509
1543
  width: 16,
@@ -1528,7 +1562,7 @@ var Radio = forwardRef8(
1528
1562
  width: groupWidth,
1529
1563
  ...state
1530
1564
  } = useRadioGroupContext();
1531
- const inputRef = useObjectRef5(ref);
1565
+ const inputRef = useObjectRef6(ref);
1532
1566
  const { inputProps } = useRadio(
1533
1567
  { isDisabled: disabled, ...props },
1534
1568
  state,
@@ -1539,7 +1573,7 @@ var Radio = forwardRef8(
1539
1573
  { variant: variant || props.variant, size: size || props.size },
1540
1574
  { parts: ["container", "label", "radio"] }
1541
1575
  );
1542
- const { hoverProps, isHovered } = useHover4({});
1576
+ const { hoverProps, isHovered } = useHover5({});
1543
1577
  const { isFocusVisible, focusProps } = useFocusRing5();
1544
1578
  const stateProps = useStateProps6({
1545
1579
  hover: isHovered,
@@ -1549,7 +1583,7 @@ var Radio = forwardRef8(
1549
1583
  readOnly: props.readOnly,
1550
1584
  error
1551
1585
  });
1552
- return /* @__PURE__ */ React40.createElement(Box22, {
1586
+ return /* @__PURE__ */ React40.createElement(Box23, {
1553
1587
  as: "label",
1554
1588
  __baseCSS: {
1555
1589
  display: "flex",
@@ -1561,7 +1595,7 @@ var Radio = forwardRef8(
1561
1595
  css: styles.container,
1562
1596
  ...hoverProps,
1563
1597
  ...stateProps
1564
- }, /* @__PURE__ */ React40.createElement(Box22, {
1598
+ }, /* @__PURE__ */ React40.createElement(Box23, {
1565
1599
  as: "input",
1566
1600
  ref: inputRef,
1567
1601
  css: {
@@ -1580,7 +1614,7 @@ var Radio = forwardRef8(
1580
1614
  checked: inputProps.checked,
1581
1615
  css: styles.radio,
1582
1616
  ...stateProps
1583
- }), /* @__PURE__ */ React40.createElement(Box22, {
1617
+ }), /* @__PURE__ */ React40.createElement(Box23, {
1584
1618
  css: styles.label,
1585
1619
  ...stateProps
1586
1620
  }, props.children));
@@ -1591,7 +1625,7 @@ Radio.Group = RadioGroup;
1591
1625
  // src/Select/Select.tsx
1592
1626
  import React44, {
1593
1627
  forwardRef as forwardRef10,
1594
- useRef as useRef10
1628
+ useRef as useRef9
1595
1629
  } from "react";
1596
1630
  import { useButton as useButton4 } from "@react-aria/button";
1597
1631
  import { FocusScope as FocusScope3, useFocusRing as useFocusRing6 } from "@react-aria/focus";
@@ -1600,18 +1634,18 @@ import { DismissButton as DismissButton2, useOverlayPosition as useOverlayPositi
1600
1634
  import { HiddenSelect, useSelect } from "@react-aria/select";
1601
1635
  import { useSelectState } from "@react-stately/select";
1602
1636
  import { Item as Item2, Section } from "@react-stately/collections";
1603
- import { mergeProps as mergeProps7, useObjectRef as useObjectRef7 } from "@react-aria/utils";
1637
+ import { mergeProps as mergeProps7, useObjectRef as useObjectRef8 } from "@react-aria/utils";
1604
1638
  import {
1605
- Box as Box26,
1639
+ Box as Box27,
1606
1640
  useComponentStyles as useComponentStyles25,
1607
1641
  useStateProps as useStateProps8
1608
1642
  } from "@marigold/system";
1609
1643
 
1610
1644
  // src/ListBox/ListBox.tsx
1611
1645
  import React43, { forwardRef as forwardRef9 } from "react";
1612
- import { useObjectRef as useObjectRef6 } from "@react-aria/utils";
1646
+ import { useObjectRef as useObjectRef7 } from "@react-aria/utils";
1613
1647
  import {
1614
- Box as Box25,
1648
+ Box as Box26,
1615
1649
  useComponentStyles as useComponentStyles24
1616
1650
  } from "@marigold/system";
1617
1651
  import { useListBox } from "@react-aria/listbox";
@@ -1624,14 +1658,14 @@ var useListBoxContext = () => useContext6(ListBoxContext);
1624
1658
  // src/ListBox/ListBoxSection.tsx
1625
1659
  import React42 from "react";
1626
1660
  import { useListBoxSection } from "@react-aria/listbox";
1627
- import { Box as Box24 } from "@marigold/system";
1661
+ import { Box as Box25 } from "@marigold/system";
1628
1662
 
1629
1663
  // src/ListBox/ListBoxOption.tsx
1630
- import React41, { useRef as useRef9 } from "react";
1664
+ import React41, { useRef as useRef8 } from "react";
1631
1665
  import { useOption } from "@react-aria/listbox";
1632
- import { Box as Box23, useStateProps as useStateProps7 } from "@marigold/system";
1666
+ import { Box as Box24, useStateProps as useStateProps7 } from "@marigold/system";
1633
1667
  var ListBoxOption = ({ item, state }) => {
1634
- const ref = useRef9(null);
1668
+ const ref = useRef8(null);
1635
1669
  const { optionProps, isSelected, isDisabled, isFocused } = useOption(
1636
1670
  {
1637
1671
  key: item.key
@@ -1645,7 +1679,7 @@ var ListBoxOption = ({ item, state }) => {
1645
1679
  disabled: isDisabled,
1646
1680
  focusVisible: isFocused
1647
1681
  });
1648
- return /* @__PURE__ */ React41.createElement(Box23, {
1682
+ return /* @__PURE__ */ React41.createElement(Box24, {
1649
1683
  as: "li",
1650
1684
  ref,
1651
1685
  css: styles.option,
@@ -1661,14 +1695,14 @@ var ListBoxSection = ({ section, state }) => {
1661
1695
  "aria-label": section["aria-label"]
1662
1696
  });
1663
1697
  const { styles } = useListBoxContext();
1664
- return /* @__PURE__ */ React42.createElement(Box24, {
1698
+ return /* @__PURE__ */ React42.createElement(Box25, {
1665
1699
  as: "li",
1666
1700
  css: styles.section,
1667
1701
  ...itemProps
1668
- }, section.rendered && /* @__PURE__ */ React42.createElement(Box24, {
1702
+ }, section.rendered && /* @__PURE__ */ React42.createElement(Box25, {
1669
1703
  css: styles.sectionTitle,
1670
1704
  ...headingProps
1671
- }, section.rendered), /* @__PURE__ */ React42.createElement(Box24, {
1705
+ }, section.rendered), /* @__PURE__ */ React42.createElement(Box25, {
1672
1706
  as: "ul",
1673
1707
  __baseCSS: { listStyle: "none", p: 0 },
1674
1708
  css: styles.list,
@@ -1683,7 +1717,7 @@ var ListBoxSection = ({ section, state }) => {
1683
1717
  // src/ListBox/ListBox.tsx
1684
1718
  var ListBox = forwardRef9(
1685
1719
  ({ state, variant, size, ...props }, ref) => {
1686
- const innerRef = useObjectRef6(ref);
1720
+ const innerRef = useObjectRef7(ref);
1687
1721
  const { listBoxProps } = useListBox(props, state, innerRef);
1688
1722
  const styles = useComponentStyles24(
1689
1723
  "ListBox",
@@ -1692,9 +1726,9 @@ var ListBox = forwardRef9(
1692
1726
  );
1693
1727
  return /* @__PURE__ */ React43.createElement(ListBoxContext.Provider, {
1694
1728
  value: { styles }
1695
- }, /* @__PURE__ */ React43.createElement(Box25, {
1729
+ }, /* @__PURE__ */ React43.createElement(Box26, {
1696
1730
  css: styles.container
1697
- }, /* @__PURE__ */ React43.createElement(Box25, {
1731
+ }, /* @__PURE__ */ React43.createElement(Box26, {
1698
1732
  as: "ul",
1699
1733
  ref: innerRef,
1700
1734
  __baseCSS: { listStyle: "none", p: 0 },
@@ -1725,7 +1759,7 @@ var messages = {
1725
1759
  };
1726
1760
 
1727
1761
  // src/Select/Select.tsx
1728
- var Chevron = ({ css }) => /* @__PURE__ */ React44.createElement(Box26, {
1762
+ var Chevron = ({ css }) => /* @__PURE__ */ React44.createElement(Box27, {
1729
1763
  as: "svg",
1730
1764
  __baseCSS: { width: 16, height: 16 },
1731
1765
  css,
@@ -1741,7 +1775,7 @@ var Chevron = ({ css }) => /* @__PURE__ */ React44.createElement(Box26, {
1741
1775
  var Select = forwardRef10(
1742
1776
  ({ variant, size, width, open, disabled, required, error, ...rest }, ref) => {
1743
1777
  const formatMessage = useMessageFormatter(messages);
1744
- const buttonRef = useObjectRef7(ref);
1778
+ const buttonRef = useObjectRef8(ref);
1745
1779
  const props = {
1746
1780
  isOpen: open,
1747
1781
  isDisabled: disabled,
@@ -1764,7 +1798,7 @@ var Select = forwardRef10(
1764
1798
  buttonRef
1765
1799
  );
1766
1800
  const { focusProps, isFocusVisible } = useFocusRing6();
1767
- const overlayRef = useRef10(null);
1801
+ const overlayRef = useRef9(null);
1768
1802
  const { overlayProps: positionProps } = useOverlayPosition2({
1769
1803
  targetRef: buttonRef,
1770
1804
  overlayRef,
@@ -1802,7 +1836,7 @@ var Select = forwardRef10(
1802
1836
  label: props.label,
1803
1837
  name: props.name,
1804
1838
  isDisabled: disabled
1805
- }), /* @__PURE__ */ React44.createElement(Box26, {
1839
+ }), /* @__PURE__ */ React44.createElement(Box27, {
1806
1840
  as: "button",
1807
1841
  __baseCSS: {
1808
1842
  display: "flex",
@@ -1815,7 +1849,7 @@ var Select = forwardRef10(
1815
1849
  ref: buttonRef,
1816
1850
  ...mergeProps7(buttonProps, focusProps),
1817
1851
  ...stateProps
1818
- }, /* @__PURE__ */ React44.createElement(Box26, {
1852
+ }, /* @__PURE__ */ React44.createElement(Box27, {
1819
1853
  css: {
1820
1854
  overflow: "hidden",
1821
1855
  whiteSpace: "nowrap"
@@ -1853,7 +1887,7 @@ import React46, { forwardRef as forwardRef11 } from "react";
1853
1887
  import { useSlider } from "@react-aria/slider";
1854
1888
  import { useSliderState } from "@react-stately/slider";
1855
1889
  import { useNumberFormatter } from "@react-aria/i18n";
1856
- import { useObjectRef as useObjectRef8 } from "@react-aria/utils";
1890
+ import { useObjectRef as useObjectRef9 } from "@react-aria/utils";
1857
1891
  import { useComponentStyles as useComponentStyles26 } from "@marigold/system";
1858
1892
 
1859
1893
  // src/Slider/Thumb.tsx
@@ -1889,29 +1923,23 @@ var Thumb = ({ state, trackRef, styles, ...props }) => {
1889
1923
  state.setThumbEditable(0, !disabled);
1890
1924
  }, [disabled, state]);
1891
1925
  return /* @__PURE__ */ React45.createElement(Box, {
1892
- __baseCSS: {
1893
- position: "absolute",
1894
- top: 16,
1895
- transform: "translateX(-50%)",
1896
- left: `${state.getThumbPercent(0) * 100}%`
1897
- }
1898
- }, /* @__PURE__ */ React45.createElement(Box, {
1926
+ __baseCSS: { top: "50%" },
1927
+ css: styles,
1899
1928
  ...thumbProps,
1900
- __baseCSS: styles,
1901
1929
  ...stateProps
1902
1930
  }, /* @__PURE__ */ React45.createElement(VisuallyHidden, null, /* @__PURE__ */ React45.createElement(Box, {
1903
1931
  as: "input",
1904
1932
  type: "range",
1905
1933
  ref: inputRef,
1906
1934
  ...mergeProps8(inputProps, focusProps)
1907
- }))));
1935
+ })));
1908
1936
  };
1909
1937
 
1910
1938
  // src/Slider/Slider.tsx
1911
1939
  var Slider = forwardRef11(
1912
1940
  ({ variant, size, width = "100%", ...props }, ref) => {
1913
1941
  const { formatOptions } = props;
1914
- const trackRef = useObjectRef8(ref);
1942
+ const trackRef = useObjectRef9(ref);
1915
1943
  const numberFormatter = useNumberFormatter(formatOptions);
1916
1944
  const state = useSliderState({ ...props, numberFormatter });
1917
1945
  const { groupProps, trackProps, labelProps, outputProps } = useSlider(
@@ -1950,13 +1978,16 @@ var Slider = forwardRef11(
1950
1978
  ...trackProps,
1951
1979
  ref: trackRef,
1952
1980
  __baseCSS: {
1953
- position: "relative",
1954
1981
  height: 32,
1955
1982
  width: "100%",
1956
1983
  cursor: props.disabled ? "not-allowed" : "pointer"
1957
1984
  }
1958
1985
  }, /* @__PURE__ */ React46.createElement(Box, {
1959
- __baseCSS: styles.track
1986
+ __baseCSS: {
1987
+ top: "50%",
1988
+ transform: "translateY(-50%)"
1989
+ },
1990
+ css: styles.track
1960
1991
  }), /* @__PURE__ */ React46.createElement(Thumb, {
1961
1992
  state,
1962
1993
  trackRef,
@@ -1968,8 +1999,8 @@ var Slider = forwardRef11(
1968
1999
 
1969
2000
  // src/Split/Split.tsx
1970
2001
  import React47 from "react";
1971
- import { Box as Box27 } from "@marigold/system";
1972
- var Split = (props) => /* @__PURE__ */ React47.createElement(Box27, {
2002
+ import { Box as Box28 } from "@marigold/system";
2003
+ var Split = (props) => /* @__PURE__ */ React47.createElement(Box28, {
1973
2004
  ...props,
1974
2005
  role: "separator",
1975
2006
  css: { flexGrow: 1 }
@@ -2011,7 +2042,7 @@ var Stack = ({
2011
2042
  import React49, { forwardRef as forwardRef12 } from "react";
2012
2043
  import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
2013
2044
  import { useSwitch } from "@react-aria/switch";
2014
- import { useObjectRef as useObjectRef9 } from "@react-aria/utils";
2045
+ import { useObjectRef as useObjectRef10 } from "@react-aria/utils";
2015
2046
  import { useToggleState as useToggleState2 } from "@react-stately/toggle";
2016
2047
  import {
2017
2048
  useComponentStyles as useComponentStyles27,
@@ -2028,7 +2059,7 @@ var Switch = forwardRef12(
2028
2059
  defaultChecked,
2029
2060
  ...rest
2030
2061
  }, ref) => {
2031
- const inputRef = useObjectRef9(ref);
2062
+ const inputRef = useObjectRef10(ref);
2032
2063
  const props = {
2033
2064
  isSelected: checked,
2034
2065
  isDisabled: disabled,
@@ -2112,7 +2143,7 @@ var Switch = forwardRef12(
2112
2143
  );
2113
2144
 
2114
2145
  // src/Table/Table.tsx
2115
- import React58, { useRef as useRef17 } from "react";
2146
+ import React58, { useRef as useRef16 } from "react";
2116
2147
  import { useTable } from "@react-aria/table";
2117
2148
  import {
2118
2149
  Cell,
@@ -2123,7 +2154,7 @@ import {
2123
2154
  useTableState
2124
2155
  } from "@react-stately/table";
2125
2156
  import {
2126
- Box as Box33,
2157
+ Box as Box34,
2127
2158
  useComponentStyles as useComponentStyles28
2128
2159
  } from "@marigold/system";
2129
2160
 
@@ -2143,13 +2174,13 @@ var TableBody = ({ children }) => {
2143
2174
  };
2144
2175
 
2145
2176
  // src/Table/TableCell.tsx
2146
- import React51, { useRef as useRef11 } from "react";
2177
+ import React51, { useRef as useRef10 } from "react";
2147
2178
  import { useTableCell } from "@react-aria/table";
2148
2179
  import { useFocusRing as useFocusRing9 } from "@react-aria/focus";
2149
2180
  import { mergeProps as mergeProps9 } from "@react-aria/utils";
2150
- import { Box as Box28, useStateProps as useStateProps11 } from "@marigold/system";
2181
+ import { Box as Box29, useStateProps as useStateProps11 } from "@marigold/system";
2151
2182
  var TableCell = ({ cell }) => {
2152
- const ref = useRef11(null);
2183
+ const ref = useRef10(null);
2153
2184
  const { state, styles } = useTableContext();
2154
2185
  const disabled = state.disabledKeys.has(cell.parentKey);
2155
2186
  const { gridCellProps } = useTableCell(
@@ -2161,7 +2192,7 @@ var TableCell = ({ cell }) => {
2161
2192
  );
2162
2193
  const { focusProps, isFocusVisible } = useFocusRing9();
2163
2194
  const stateProps = useStateProps11({ disabled, focusVisible: isFocusVisible });
2164
- return /* @__PURE__ */ React51.createElement(Box28, {
2195
+ return /* @__PURE__ */ React51.createElement(Box29, {
2165
2196
  as: "td",
2166
2197
  ref,
2167
2198
  css: styles.cell,
@@ -2171,11 +2202,11 @@ var TableCell = ({ cell }) => {
2171
2202
  };
2172
2203
 
2173
2204
  // src/Table/TableCheckboxCell.tsx
2174
- import React52, { useRef as useRef12 } from "react";
2205
+ import React52, { useRef as useRef11 } from "react";
2175
2206
  import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
2176
2207
  import { useFocusRing as useFocusRing10 } from "@react-aria/focus";
2177
2208
  import { mergeProps as mergeProps10 } from "@react-aria/utils";
2178
- import { Box as Box29, useStateProps as useStateProps12 } from "@marigold/system";
2209
+ import { Box as Box30, useStateProps as useStateProps12 } from "@marigold/system";
2179
2210
 
2180
2211
  // src/Table/utils.ts
2181
2212
  var mapCheckboxProps = ({
@@ -2199,7 +2230,7 @@ var mapCheckboxProps = ({
2199
2230
 
2200
2231
  // src/Table/TableCheckboxCell.tsx
2201
2232
  var TableCheckboxCell = ({ cell }) => {
2202
- const ref = useRef12(null);
2233
+ const ref = useRef11(null);
2203
2234
  const { state, styles } = useTableContext();
2204
2235
  const disabled = state.disabledKeys.has(cell.parentKey);
2205
2236
  const { gridCellProps } = useTableCell2(
@@ -2214,7 +2245,7 @@ var TableCheckboxCell = ({ cell }) => {
2214
2245
  );
2215
2246
  const { focusProps, isFocusVisible } = useFocusRing10();
2216
2247
  const stateProps = useStateProps12({ disabled, focusVisible: isFocusVisible });
2217
- return /* @__PURE__ */ React52.createElement(Box29, {
2248
+ return /* @__PURE__ */ React52.createElement(Box30, {
2218
2249
  as: "td",
2219
2250
  ref,
2220
2251
  __baseCSS: {
@@ -2231,16 +2262,16 @@ var TableCheckboxCell = ({ cell }) => {
2231
2262
  };
2232
2263
 
2233
2264
  // src/Table/TableColumnHeader.tsx
2234
- import React53, { useRef as useRef13 } from "react";
2265
+ import React53, { useRef as useRef12 } from "react";
2235
2266
  import { useFocusRing as useFocusRing11 } from "@react-aria/focus";
2236
- import { useHover as useHover5 } from "@react-aria/interactions";
2267
+ import { useHover as useHover6 } from "@react-aria/interactions";
2237
2268
  import { useTableColumnHeader } from "@react-aria/table";
2238
2269
  import { mergeProps as mergeProps11 } from "@react-aria/utils";
2239
- import { Box as Box30, useStateProps as useStateProps13 } from "@marigold/system";
2270
+ import { Box as Box31, useStateProps as useStateProps13 } from "@marigold/system";
2240
2271
  var SortIndicator = ({
2241
2272
  direction = "ascending",
2242
2273
  visible
2243
- }) => /* @__PURE__ */ React53.createElement(Box30, {
2274
+ }) => /* @__PURE__ */ React53.createElement(Box31, {
2244
2275
  as: "span",
2245
2276
  role: "presentation",
2246
2277
  "aria-hidden": "true",
@@ -2252,7 +2283,7 @@ var SortIndicator = ({
2252
2283
  }, direction === "ascending" ? "\u25B2" : "\u25BC");
2253
2284
  var TableColumnHeader = ({ column }) => {
2254
2285
  var _a, _b;
2255
- const ref = useRef13(null);
2286
+ const ref = useRef12(null);
2256
2287
  const { state, styles } = useTableContext();
2257
2288
  const { columnHeaderProps } = useTableColumnHeader(
2258
2289
  {
@@ -2261,13 +2292,13 @@ var TableColumnHeader = ({ column }) => {
2261
2292
  state,
2262
2293
  ref
2263
2294
  );
2264
- const { hoverProps, isHovered } = useHover5({});
2295
+ const { hoverProps, isHovered } = useHover6({});
2265
2296
  const { focusProps, isFocusVisible } = useFocusRing11();
2266
2297
  const stateProps = useStateProps13({
2267
2298
  hover: isHovered,
2268
2299
  focusVisible: isFocusVisible
2269
2300
  });
2270
- return /* @__PURE__ */ React53.createElement(Box30, {
2301
+ return /* @__PURE__ */ React53.createElement(Box31, {
2271
2302
  as: "th",
2272
2303
  colSpan: column.colspan,
2273
2304
  ref,
@@ -2291,11 +2322,11 @@ var TableHeader = ({ children }) => {
2291
2322
  };
2292
2323
 
2293
2324
  // src/Table/TableHeaderRow.tsx
2294
- import React55, { useRef as useRef14 } from "react";
2325
+ import React55, { useRef as useRef13 } from "react";
2295
2326
  import { useTableHeaderRow } from "@react-aria/table";
2296
2327
  var TableHeaderRow = ({ item, children }) => {
2297
2328
  const { state } = useTableContext();
2298
- const ref = useRef14(null);
2329
+ const ref = useRef13(null);
2299
2330
  const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
2300
2331
  return /* @__PURE__ */ React55.createElement("tr", {
2301
2332
  ...rowProps,
@@ -2304,14 +2335,14 @@ var TableHeaderRow = ({ item, children }) => {
2304
2335
  };
2305
2336
 
2306
2337
  // src/Table/TableRow.tsx
2307
- import React56, { useRef as useRef15 } from "react";
2338
+ import React56, { useRef as useRef14 } from "react";
2308
2339
  import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
2309
- import { useHover as useHover6 } from "@react-aria/interactions";
2340
+ import { useHover as useHover7 } from "@react-aria/interactions";
2310
2341
  import { useTableRow } from "@react-aria/table";
2311
2342
  import { mergeProps as mergeProps12 } from "@react-aria/utils";
2312
- import { Box as Box31, useStateProps as useStateProps14 } from "@marigold/system";
2343
+ import { Box as Box32, useStateProps as useStateProps14 } from "@marigold/system";
2313
2344
  var TableRow = ({ children, row }) => {
2314
- const ref = useRef15(null);
2345
+ const ref = useRef14(null);
2315
2346
  const { state, styles } = useTableContext();
2316
2347
  const { rowProps, isPressed } = useTableRow(
2317
2348
  {
@@ -2323,7 +2354,7 @@ var TableRow = ({ children, row }) => {
2323
2354
  const disabled = state.disabledKeys.has(row.key);
2324
2355
  const selected = state.selectionManager.isSelected(row.key);
2325
2356
  const { focusProps, isFocusVisible } = useFocusRing12({ within: true });
2326
- const { hoverProps, isHovered } = useHover6({ isDisabled: disabled });
2357
+ const { hoverProps, isHovered } = useHover7({ isDisabled: disabled });
2327
2358
  const stateProps = useStateProps14({
2328
2359
  disabled,
2329
2360
  selected,
@@ -2331,7 +2362,7 @@ var TableRow = ({ children, row }) => {
2331
2362
  focusVisible: isFocusVisible,
2332
2363
  active: isPressed
2333
2364
  });
2334
- return /* @__PURE__ */ React56.createElement(Box31, {
2365
+ return /* @__PURE__ */ React56.createElement(Box32, {
2335
2366
  as: "tr",
2336
2367
  ref,
2337
2368
  css: styles.row,
@@ -2341,17 +2372,17 @@ var TableRow = ({ children, row }) => {
2341
2372
  };
2342
2373
 
2343
2374
  // src/Table/TableSelectAllCell.tsx
2344
- import React57, { useRef as useRef16 } from "react";
2375
+ import React57, { useRef as useRef15 } from "react";
2345
2376
  import { useFocusRing as useFocusRing13 } from "@react-aria/focus";
2346
- import { useHover as useHover7 } from "@react-aria/interactions";
2377
+ import { useHover as useHover8 } from "@react-aria/interactions";
2347
2378
  import {
2348
2379
  useTableColumnHeader as useTableColumnHeader2,
2349
2380
  useTableSelectAllCheckbox
2350
2381
  } from "@react-aria/table";
2351
2382
  import { mergeProps as mergeProps13 } from "@react-aria/utils";
2352
- import { Box as Box32, useStateProps as useStateProps15 } from "@marigold/system";
2383
+ import { Box as Box33, useStateProps as useStateProps15 } from "@marigold/system";
2353
2384
  var TableSelectAllCell = ({ column }) => {
2354
- const ref = useRef16(null);
2385
+ const ref = useRef15(null);
2355
2386
  const { state, styles } = useTableContext();
2356
2387
  const { columnHeaderProps } = useTableColumnHeader2(
2357
2388
  {
@@ -2361,13 +2392,13 @@ var TableSelectAllCell = ({ column }) => {
2361
2392
  ref
2362
2393
  );
2363
2394
  const { checkboxProps } = mapCheckboxProps(useTableSelectAllCheckbox(state));
2364
- const { hoverProps, isHovered } = useHover7({});
2395
+ const { hoverProps, isHovered } = useHover8({});
2365
2396
  const { focusProps, isFocusVisible } = useFocusRing13();
2366
2397
  const stateProps = useStateProps15({
2367
2398
  hover: isHovered,
2368
2399
  focusVisible: isFocusVisible
2369
2400
  });
2370
- return /* @__PURE__ */ React57.createElement(Box32, {
2401
+ return /* @__PURE__ */ React57.createElement(Box33, {
2371
2402
  as: "th",
2372
2403
  ref,
2373
2404
  __baseCSS: {
@@ -2390,7 +2421,7 @@ var Table = ({
2390
2421
  stretch,
2391
2422
  ...props
2392
2423
  }) => {
2393
- const tableRef = useRef17(null);
2424
+ const tableRef = useRef16(null);
2394
2425
  const state = useTableState({
2395
2426
  ...props,
2396
2427
  showSelectionCheckboxes: props.selectionMode === "multiple" && props.selectionBehavior !== "replace"
@@ -2404,7 +2435,7 @@ var Table = ({
2404
2435
  const { collection } = state;
2405
2436
  return /* @__PURE__ */ React58.createElement(TableContext.Provider, {
2406
2437
  value: { state, styles }
2407
- }, /* @__PURE__ */ React58.createElement(Box33, {
2438
+ }, /* @__PURE__ */ React58.createElement(Box34, {
2408
2439
  as: "table",
2409
2440
  ref: tableRef,
2410
2441
  __baseCSS: {
@@ -2454,7 +2485,7 @@ import React59 from "react";
2454
2485
  import {
2455
2486
  useComponentStyles as useComponentStyles29
2456
2487
  } from "@marigold/system";
2457
- import { Box as Box34 } from "@marigold/system";
2488
+ import { Box as Box35 } from "@marigold/system";
2458
2489
  var Text = ({
2459
2490
  variant,
2460
2491
  size,
@@ -2470,7 +2501,7 @@ var Text = ({
2470
2501
  variant,
2471
2502
  size
2472
2503
  });
2473
- return /* @__PURE__ */ React59.createElement(Box34, {
2504
+ return /* @__PURE__ */ React59.createElement(Box35, {
2474
2505
  as: "p",
2475
2506
  ...props,
2476
2507
  css: { color, cursor, outline, fontSize, textAlign: align, ...styles }
@@ -2479,12 +2510,12 @@ var Text = ({
2479
2510
 
2480
2511
  // src/TextArea/TextArea.tsx
2481
2512
  import React60, { forwardRef as forwardRef13 } from "react";
2482
- import { useHover as useHover8 } from "@react-aria/interactions";
2513
+ import { useHover as useHover9 } from "@react-aria/interactions";
2483
2514
  import { useFocusRing as useFocusRing14 } from "@react-aria/focus";
2484
2515
  import { useTextField } from "@react-aria/textfield";
2485
- import { useObjectRef as useObjectRef10 } from "@react-aria/utils";
2516
+ import { useObjectRef as useObjectRef11 } from "@react-aria/utils";
2486
2517
  import {
2487
- Box as Box35,
2518
+ Box as Box36,
2488
2519
  useComponentStyles as useComponentStyles30,
2489
2520
  useStateProps as useStateProps16
2490
2521
  } from "@marigold/system";
@@ -2501,7 +2532,7 @@ var TextArea = forwardRef13(
2501
2532
  ...props
2502
2533
  }, ref) => {
2503
2534
  const { label, description, errorMessage } = props;
2504
- const textAreaRef = useObjectRef10(ref);
2535
+ const textAreaRef = useObjectRef11(ref);
2505
2536
  const { labelProps, inputProps, descriptionProps, errorMessageProps } = useTextField(
2506
2537
  {
2507
2538
  inputElementType: "textarea",
@@ -2513,7 +2544,7 @@ var TextArea = forwardRef13(
2513
2544
  },
2514
2545
  textAreaRef
2515
2546
  );
2516
- const { hoverProps, isHovered } = useHover8({});
2547
+ const { hoverProps, isHovered } = useHover9({});
2517
2548
  const { focusProps, isFocusVisible } = useFocusRing14();
2518
2549
  const stateProps = useStateProps16({
2519
2550
  hover: isHovered,
@@ -2536,7 +2567,7 @@ var TextArea = forwardRef13(
2536
2567
  variant,
2537
2568
  size,
2538
2569
  width
2539
- }, /* @__PURE__ */ React60.createElement(Box35, {
2570
+ }, /* @__PURE__ */ React60.createElement(Box36, {
2540
2571
  as: "textarea",
2541
2572
  css: styles,
2542
2573
  ref: textAreaRef,
@@ -2551,15 +2582,15 @@ var TextArea = forwardRef13(
2551
2582
 
2552
2583
  // src/TextField/TextField.tsx
2553
2584
  import React61, { forwardRef as forwardRef14 } from "react";
2554
- import { useHover as useHover9 } from "@react-aria/interactions";
2585
+ import { useHover as useHover10 } from "@react-aria/interactions";
2555
2586
  import { useFocusRing as useFocusRing15 } from "@react-aria/focus";
2556
2587
  import { useTextField as useTextField2 } from "@react-aria/textfield";
2557
- import { useObjectRef as useObjectRef11 } from "@react-aria/utils";
2588
+ import { useObjectRef as useObjectRef12 } from "@react-aria/utils";
2558
2589
  import { useStateProps as useStateProps17 } from "@marigold/system";
2559
2590
  var TextField = forwardRef14(
2560
2591
  ({ variant, size, width, disabled, required, readOnly, error, ...props }, ref) => {
2561
2592
  const { label, description, errorMessage, autoFocus } = props;
2562
- const inputRef = useObjectRef11(ref);
2593
+ const inputRef = useObjectRef12(ref);
2563
2594
  const { labelProps, inputProps, descriptionProps, errorMessageProps } = useTextField2(
2564
2595
  {
2565
2596
  isDisabled: disabled,
@@ -2570,7 +2601,7 @@ var TextField = forwardRef14(
2570
2601
  },
2571
2602
  inputRef
2572
2603
  );
2573
- const { hoverProps, isHovered } = useHover9({});
2604
+ const { hoverProps, isHovered } = useHover10({});
2574
2605
  const { focusProps, isFocusVisible } = useFocusRing15({
2575
2606
  isTextInput: true,
2576
2607
  autoFocus
@@ -2625,7 +2656,7 @@ var Tiles = React62.forwardRef(
2625
2656
  import React64 from "react";
2626
2657
  import { useTooltip } from "@react-aria/tooltip";
2627
2658
  import {
2628
- Box as Box36,
2659
+ Box as Box37,
2629
2660
  useComponentStyles as useComponentStyles31
2630
2661
  } from "@marigold/system";
2631
2662
 
@@ -2635,7 +2666,7 @@ var TooltipContext = createContext8({});
2635
2666
  var useTooltipContext = () => useContext8(TooltipContext);
2636
2667
 
2637
2668
  // src/Tooltip/TooltipTrigger.tsx
2638
- import React63, { useRef as useRef18 } from "react";
2669
+ import React63, { useRef as useRef17 } from "react";
2639
2670
  import { FocusableProvider } from "@react-aria/focus";
2640
2671
  import { useOverlayPosition as useOverlayPosition3 } from "@react-aria/overlays";
2641
2672
  import { useTooltipTrigger } from "@react-aria/tooltip";
@@ -2656,8 +2687,8 @@ var TooltipTrigger = ({
2656
2687
  delay,
2657
2688
  placement
2658
2689
  };
2659
- const tooltipTriggerRef = useRef18(null);
2660
- const overlayRef = useRef18(null);
2690
+ const tooltipTriggerRef = useRef17(null);
2691
+ const overlayRef = useRef17(null);
2661
2692
  const state = useTooltipTriggerState(props);
2662
2693
  const { triggerProps, tooltipProps } = useTooltipTrigger(
2663
2694
  props,
@@ -2702,13 +2733,13 @@ var Tooltip = ({ children, variant, size }) => {
2702
2733
  { variant, size },
2703
2734
  { parts: ["container", "arrow"] }
2704
2735
  );
2705
- return /* @__PURE__ */ React64.createElement(Box36, {
2736
+ return /* @__PURE__ */ React64.createElement(Box37, {
2706
2737
  ...tooltipProps,
2707
2738
  ...rest,
2708
2739
  ref: overlayRef,
2709
2740
  css: styles.container,
2710
2741
  "data-placement": placement
2711
- }, /* @__PURE__ */ React64.createElement("div", null, children), /* @__PURE__ */ React64.createElement(Box36, {
2742
+ }, /* @__PURE__ */ React64.createElement("div", null, children), /* @__PURE__ */ React64.createElement(Box37, {
2712
2743
  ...arrowProps,
2713
2744
  __baseCSS: {
2714
2745
  position: "absolute",
@@ -2771,6 +2802,8 @@ export {
2771
2802
  Tooltip,
2772
2803
  Underlay,
2773
2804
  VisuallyHidden,
2805
+ useAsyncList,
2774
2806
  useCheckboxGroupContext,
2807
+ useListData,
2775
2808
  useTheme2 as useTheme
2776
2809
  };