@vygruppen/spor-react 13.0.0 → 13.0.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.
Files changed (77) hide show
  1. package/.turbo/turbo-build.log +8 -8
  2. package/.turbo/turbo-postinstall.log +3 -4
  3. package/CHANGELOG.md +6 -0
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.cts +83 -83
  6. package/dist/index.d.ts +83 -83
  7. package/dist/index.mjs.map +1 -1
  8. package/package.json +3 -3
  9. package/src/accordion/Accordion.tsx +3 -3
  10. package/src/accordion/Expandable.tsx +1 -1
  11. package/src/alert/Alert.tsx +1 -1
  12. package/src/alert/AlertIcon.tsx +1 -1
  13. package/src/alert/ExpandableAlert.tsx +1 -1
  14. package/src/alert/ServiceAlert.tsx +1 -1
  15. package/src/breadcrumb/Breadcrumb.tsx +1 -1
  16. package/src/button/Button.tsx +1 -1
  17. package/src/button/ButtonGroup.tsx +1 -1
  18. package/src/button/Clipboard.tsx +3 -3
  19. package/src/button/CloseButton.tsx +1 -1
  20. package/src/button/FloatingActionButton.tsx +1 -1
  21. package/src/button/IconButton.tsx +1 -1
  22. package/src/calendar/CalendarContext.tsx +1 -1
  23. package/src/color-mode/color-mode.tsx +1 -1
  24. package/src/datepicker/CalendarTriggerButton.tsx +1 -1
  25. package/src/datepicker/DateField.tsx +1 -1
  26. package/src/datepicker/DatePicker.tsx +1 -1
  27. package/src/datepicker/DateTimeSegment.tsx +1 -1
  28. package/src/datepicker/StyledField.tsx +1 -1
  29. package/src/dialog/Dialog.tsx +2 -2
  30. package/src/dialog/Drawer.tsx +4 -4
  31. package/src/input/AttachedInputs.tsx +1 -1
  32. package/src/input/Autocomplete.tsx +1 -1
  33. package/src/input/CardSelect.tsx +2 -2
  34. package/src/input/Checkbox.tsx +1 -1
  35. package/src/input/ChoiceChip.tsx +1 -1
  36. package/src/input/CountryCodeSelect.tsx +1 -1
  37. package/src/input/Field.tsx +2 -2
  38. package/src/input/FloatingLabel.tsx +1 -1
  39. package/src/input/Input.tsx +1 -1
  40. package/src/input/NativeSelect.tsx +1 -1
  41. package/src/input/NumericStepper.tsx +2 -2
  42. package/src/input/PasswordInput.tsx +2 -2
  43. package/src/input/PhoneNumberInput.tsx +1 -1
  44. package/src/input/Popover.tsx +1 -1
  45. package/src/input/Radio.tsx +2 -2
  46. package/src/input/SearchInput.tsx +1 -1
  47. package/src/input/Select.tsx +7 -7
  48. package/src/input/Switch.tsx +1 -1
  49. package/src/input/Textarea.tsx +1 -1
  50. package/src/input/useFLoatingInputState.tsx +1 -1
  51. package/src/layout/PressableCard.tsx +1 -1
  52. package/src/layout/RadioCard.tsx +2 -2
  53. package/src/layout/Separator.tsx +1 -1
  54. package/src/layout/StaticCard.tsx +1 -1
  55. package/src/linjetag/LineIcon.tsx +1 -1
  56. package/src/linjetag/TravelTag.tsx +1 -1
  57. package/src/link/TextLink.tsx +1 -1
  58. package/src/loader/ProgressBar.tsx +1 -1
  59. package/src/loader/ProgressLoader.tsx +1 -1
  60. package/src/loader/Skeleton.tsx +1 -1
  61. package/src/logo/CargonetLogo.tsx +1 -1
  62. package/src/logo/VyLogo.tsx +1 -1
  63. package/src/logo/VyLogoPride.tsx +1 -1
  64. package/src/media-controller/JumpButton.tsx +1 -1
  65. package/src/media-controller/PlayPauseButton.tsx +1 -1
  66. package/src/media-controller/SkipButton.tsx +1 -1
  67. package/src/nudge/Nudge.tsx +3 -3
  68. package/src/pagination/Pagination.tsx +5 -5
  69. package/src/popover/index.tsx +2 -2
  70. package/src/progress-indicator/ProgressIndicator.tsx +1 -1
  71. package/src/stepper/Stepper.tsx +1 -1
  72. package/src/tab/Tabs.tsx +1 -1
  73. package/src/tooltip.tsx +2 -2
  74. package/src/typography/Badge.tsx +1 -1
  75. package/src/typography/Code.tsx +1 -1
  76. package/src/typography/Heading.tsx +1 -1
  77. package/src/typography/Text.tsx +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
3
  "type": "module",
4
- "version": "13.0.0",
4
+ "version": "13.0.1",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -46,9 +46,9 @@
46
46
  "react-stately": "^3.31.1",
47
47
  "react-swipeable": "^7.0.1",
48
48
  "usehooks-ts": "^3.1.0",
49
- "@vygruppen/spor-design-tokens": "4.3.3",
50
49
  "@vygruppen/spor-icon-react": "5.0.0",
51
- "@vygruppen/spor-loader": "0.7.0"
50
+ "@vygruppen/spor-loader": "0.7.0",
51
+ "@vygruppen/spor-design-tokens": "4.3.3"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@react-types/datepicker": "^3.10.0",
@@ -56,7 +56,7 @@ export const Accordion = ({
56
56
  ref,
57
57
  ...props
58
58
  }: AccordionProps & {
59
- ref?: React.RefObject<HTMLDivElement>;
59
+ ref?: React.Ref<HTMLDivElement>;
60
60
  }) => {
61
61
  const { variant = "core", children, gap = 2, css, ...rest } = props;
62
62
  const recipe = useSlotRecipe({ key: "accordion" });
@@ -77,7 +77,7 @@ export const AccordionItemTrigger = function AccordionItemTrigger({
77
77
  ref,
78
78
  ...props
79
79
  }: AccordionItemTriggerProps & {
80
- ref?: React.RefObject<HTMLButtonElement>;
80
+ ref?: React.Ref<HTMLButtonElement>;
81
81
  }) {
82
82
  const {
83
83
  startElement,
@@ -115,7 +115,7 @@ export const AccordionItemContent = function AccordionItemContent({
115
115
  ref,
116
116
  ...props
117
117
  }: AccordionItemContentProps & {
118
- ref?: React.RefObject<HTMLDivElement>;
118
+ ref?: React.Ref<HTMLDivElement>;
119
119
  }) {
120
120
  const {
121
121
  children,
@@ -26,7 +26,7 @@ export const Expandable = ({
26
26
  ref,
27
27
  ...props
28
28
  }: ExpandableProps & {
29
- ref?: React.RefObject<HTMLDivElement>;
29
+ ref?: React.Ref<HTMLDivElement>;
30
30
  }) => {
31
31
  const { title, children, headingLevel, startElement, ...rest } = props;
32
32
  return (
@@ -47,7 +47,7 @@ export const Alert = ({
47
47
  ref,
48
48
  ...props
49
49
  }: AlertProps & {
50
- ref?: React.RefObject<HTMLDivElement>;
50
+ ref?: React.Ref<HTMLDivElement>;
51
51
  }) => {
52
52
  const {
53
53
  title,
@@ -30,7 +30,7 @@ export const AlertIcon = ({
30
30
  variant,
31
31
  customIcon: CustomAlertIcon,
32
32
  }: AlertIconProps & {
33
- ref?: React.RefObject<SVGSVGElement>;
33
+ ref?: React.Ref<SVGSVGElement>;
34
34
  }) => {
35
35
  const { t } = useTranslation();
36
36
 
@@ -63,7 +63,7 @@ export const ExpandableAlert = ({
63
63
  ref,
64
64
  ...props
65
65
  }: ExpandableAlertProps & {
66
- ref?: React.RefObject<HTMLDivElement>;
66
+ ref?: React.Ref<HTMLDivElement>;
67
67
  }) => {
68
68
  const {
69
69
  variant = "info",
@@ -61,7 +61,7 @@ export const ServiceAlert = ({
61
61
  ref,
62
62
  ...props
63
63
  }: ServiceAlertProps & {
64
- ref?: React.RefObject<HTMLDivElement>;
64
+ ref?: React.Ref<HTMLDivElement>;
65
65
  }) => {
66
66
  const {
67
67
  variant = "service",
@@ -26,7 +26,7 @@ export const Breadcrumb = ({
26
26
  css,
27
27
  ...props
28
28
  }: BreadcrumbRootProps & {
29
- ref?: React.RefObject<HTMLDivElement>;
29
+ ref?: React.Ref<HTMLDivElement>;
30
30
  }) => {
31
31
  const validChildren = React.Children.toArray(children).filter((element) =>
32
32
  React.isValidElement(element),
@@ -118,7 +118,7 @@ export const Button = ({
118
118
  children,
119
119
  ...rest
120
120
  }: ButtonProps & {
121
- ref?: React.RefObject<HTMLButtonElement>;
121
+ ref?: React.Ref<HTMLButtonElement>;
122
122
  }) => {
123
123
  const { t } = useTranslation();
124
124
 
@@ -52,7 +52,7 @@ export const ButtonGroup = ({
52
52
  ref,
53
53
  ...props
54
54
  }: ButtonGroupProps & {
55
- ref?: React.RefObject<HTMLDivElement>;
55
+ ref?: React.Ref<HTMLDivElement>;
56
56
  }) => {
57
57
  const recipe = useRecipe({ key: "buttonGroup" });
58
58
  const [recipeProps, restProps] = recipe.splitVariantProps(props);
@@ -24,7 +24,7 @@ const ClipboardIcon = ({
24
24
  ref,
25
25
  ...props
26
26
  }: ChakraClipboard.IndicatorProps & {
27
- ref?: React.RefObject<HTMLDivElement>;
27
+ ref?: React.Ref<HTMLDivElement>;
28
28
  }) => {
29
29
  return (
30
30
  <ChakraClipboard.Indicator
@@ -41,7 +41,7 @@ const ClipboardCopyText = ({
41
41
  ref,
42
42
  ...props
43
43
  }: ChakraClipboard.IndicatorProps & {
44
- ref?: React.RefObject<HTMLDivElement>;
44
+ ref?: React.Ref<HTMLDivElement>;
45
45
  }) => {
46
46
  const { t } = useTranslation();
47
47
  return (
@@ -61,7 +61,7 @@ export const ClipboardButton = ({
61
61
  ref,
62
62
  ...props
63
63
  }: ClipboardButtonProps & {
64
- ref?: React.RefObject<HTMLButtonElement>;
64
+ ref?: React.Ref<HTMLButtonElement>;
65
65
  }) => {
66
66
  return (
67
67
  <ChakraClipboard.Trigger asChild>
@@ -31,7 +31,7 @@ export const CloseButton = ({
31
31
  size = "sm",
32
32
  ...props
33
33
  }: CloseButtonProps & {
34
- ref?: React.RefObject<HTMLButtonElement | null>;
34
+ ref?: React.Ref<HTMLButtonElement | null>;
35
35
  }) => {
36
36
  const { t } = useTranslation();
37
37
  return (
@@ -45,7 +45,7 @@ export const FloatingActionButton = ({
45
45
  placement = "bottom right",
46
46
  ...props
47
47
  }: FloatingActionButtonProps & {
48
- ref?: React.RefObject<HTMLButtonElement>;
48
+ ref?: React.Ref<HTMLButtonElement>;
49
49
  }) => {
50
50
  const scrollDirection = useScrollDirection();
51
51
 
@@ -60,7 +60,7 @@ export const IconButton = ({
60
60
  ref,
61
61
  ...props
62
62
  }: IconButtonProps & {
63
- ref?: React.RefObject<HTMLButtonElement | null>;
63
+ ref?: React.Ref<HTMLButtonElement | null>;
64
64
  }) => {
65
65
  const { icon, size = "sm", loading = false, ...rest } = props;
66
66
  return (
@@ -34,7 +34,7 @@ type BaseCalendarState = {
34
34
  prevButtonProps: AriaButtonProps<"button">;
35
35
  startValue: CalendarDate | null;
36
36
  isSelectingRange: boolean;
37
- ref?: React.RefObject<HTMLDivElement | null>;
37
+ ref?: React.Ref<HTMLDivElement | null>;
38
38
  };
39
39
 
40
40
  type SingleCalendarState = BaseCalendarState & {
@@ -51,7 +51,7 @@ export const ColorModeButton = function ColorModeButton({
51
51
  ref,
52
52
  ...props
53
53
  }: ColorModeButtonProps & {
54
- ref?: React.RefObject<HTMLButtonElement>;
54
+ ref?: React.Ref<HTMLButtonElement>;
55
55
  }) {
56
56
  const { toggleColorMode } = useColorMode();
57
57
  return (
@@ -28,7 +28,7 @@ export const CalendarTriggerButton = ({
28
28
  onPress: _,
29
29
  ...buttonProps
30
30
  }: CalendarTriggerButtonProps & {
31
- ref?: React.RefObject<HTMLDivElement | null>;
31
+ ref?: React.Ref<HTMLDivElement | null>;
32
32
  }) => {
33
33
  const { t } = useTranslation();
34
34
 
@@ -34,7 +34,7 @@ export const DateField = ({
34
34
  ref: externalRef,
35
35
  ...props
36
36
  }: DateFieldProps & {
37
- ref?: React.RefObject<HTMLDivElement>;
37
+ ref?: React.Ref<HTMLDivElement>;
38
38
  }) => {
39
39
  const locale = useCurrentLocale();
40
40
 
@@ -76,7 +76,7 @@ export const DatePicker = ({
76
76
  css,
77
77
  ...props
78
78
  }: DatePickerProps & {
79
- ref?: React.RefObject<HTMLDivElement>;
79
+ ref?: React.Ref<HTMLDivElement>;
80
80
  }) => {
81
81
  const chakraFieldProps = useFieldContext();
82
82
  const state = useDatePickerState({
@@ -27,7 +27,7 @@ export const DateTimeSegment = ({
27
27
  ariaDescription,
28
28
  variant,
29
29
  }: DateTimeSegmentProps & {
30
- ref?: React.RefObject<HTMLDivElement>;
30
+ ref?: React.Ref<HTMLDivElement>;
31
31
  }) => {
32
32
  const internalRef = useRef(null);
33
33
  const ref = externalRef ?? internalRef;
@@ -21,7 +21,7 @@ export const StyledField = function StyledField({
21
21
  ref,
22
22
  ...props
23
23
  }: StyledFieldProps & {
24
- ref?: React.RefObject<HTMLDivElement>;
24
+ ref?: React.Ref<HTMLDivElement>;
25
25
  }) {
26
26
  const {
27
27
  children,
@@ -15,7 +15,7 @@ export const DialogContent = ({
15
15
  ref,
16
16
  ...props
17
17
  }: DialogContentProps & {
18
- ref?: React.RefObject<HTMLDivElement>;
18
+ ref?: React.Ref<HTMLDivElement>;
19
19
  }) => {
20
20
  const {
21
21
  children,
@@ -41,7 +41,7 @@ export const DialogCloseTrigger = function DialogCloseTrigger({
41
41
  ref,
42
42
  ...props
43
43
  }: ChakraDialog.CloseTriggerProps & {
44
- ref?: React.RefObject<HTMLButtonElement>;
44
+ ref?: React.Ref<HTMLButtonElement>;
45
45
  }) {
46
46
  return (
47
47
  <ChakraDialog.CloseTrigger ref={ref} position="absolute" {...props} asChild>
@@ -58,7 +58,7 @@ export const DrawerContent = ({
58
58
  ref,
59
59
  ...props
60
60
  }: DrawerContentProps & {
61
- ref?: React.RefObject<HTMLDivElement>;
61
+ ref?: React.Ref<HTMLDivElement>;
62
62
  }) => {
63
63
  const {
64
64
  children,
@@ -127,7 +127,7 @@ export const DrawerCloseTrigger = function DrawerCloseTrigger({
127
127
  ref,
128
128
  ...props
129
129
  }: DrawerCloseTriggerProps & {
130
- ref?: React.RefObject<HTMLButtonElement>;
130
+ ref?: React.Ref<HTMLButtonElement>;
131
131
  }) {
132
132
  const { showText = false, ...rest } = props;
133
133
  const { size } = useRootDrawerProps();
@@ -151,7 +151,7 @@ export const DrawerBackTrigger = ({
151
151
  ref,
152
152
  ...props
153
153
  }: ChakraDrawer.CloseTriggerProps & {
154
- ref?: React.RefObject<HTMLButtonElement>;
154
+ ref?: React.Ref<HTMLButtonElement>;
155
155
  }) => {
156
156
  const { t } = useTranslation();
157
157
  return (
@@ -169,7 +169,7 @@ export const DrawerFullScreenHeader = ({
169
169
  ref,
170
170
  ...props
171
171
  }: DrawerFullScreenHeaderProps & {
172
- ref?: React.RefObject<HTMLDivElement>;
172
+ ref?: React.Ref<HTMLDivElement>;
173
173
  }) => {
174
174
  const { backTrigger = true, closeTrigger = true, children } = props;
175
175
  return (
@@ -46,7 +46,7 @@ export const AttachedInputs = ({
46
46
  ref,
47
47
  ...props
48
48
  }: AttachedInputsProps & {
49
- ref?: React.RefObject<HTMLDivElement>;
49
+ ref?: React.Ref<HTMLDivElement>;
50
50
  }) => {
51
51
  const recipe = useRecipe({ key: "attachedInputs" });
52
52
  const [recipeProps, { onFlip, flipAriaLabel, ...restProps }] =
@@ -27,7 +27,7 @@ type Props = {
27
27
  loading?: boolean;
28
28
  emptyLabel?: React.ReactNode;
29
29
  openOnFocus?: boolean;
30
- ref?: React.RefObject<HTMLInputElement | null>;
30
+ ref?: React.Ref<HTMLInputElement | null>;
31
31
  } & Omit<ComboboxRootProps, "collection"> &
32
32
  FieldProps;
33
33
 
@@ -22,7 +22,7 @@ export const CardSelectContent = ({
22
22
  children,
23
23
  ...props
24
24
  }: StaticCardProps & {
25
- ref?: React.RefObject<HTMLDivElement>;
25
+ ref?: React.Ref<HTMLDivElement>;
26
26
  }) => {
27
27
  return (
28
28
  <Portal>
@@ -75,7 +75,7 @@ export const CardSelectTrigger = ({
75
75
  children,
76
76
  ...props
77
77
  }: CardSelectTriggerProps & {
78
- ref?: React.RefObject<HTMLButtonElement>;
78
+ ref?: React.Ref<HTMLButtonElement>;
79
79
  }) => {
80
80
  const ChevronIcon =
81
81
  size === "sm" ? DropdownDownFill18Icon : DropdownDownFill24Icon;
@@ -33,7 +33,7 @@ export const Checkbox = ({
33
33
  ref,
34
34
  ...props
35
35
  }: CheckboxProps & {
36
- ref?: React.RefObject<HTMLInputElement>;
36
+ ref?: React.Ref<HTMLInputElement>;
37
37
  }) => {
38
38
  const { children, inputProps, rootRef, ...rest } = props;
39
39
  return (
@@ -56,7 +56,7 @@ export const ChoiceChip = ({
56
56
  onCheckedChange,
57
57
  ...rootProps
58
58
  }: ChoiceChipProps & {
59
- ref?: React.RefObject<HTMLInputElement>;
59
+ ref?: React.Ref<HTMLInputElement>;
60
60
  }) => {
61
61
  return (
62
62
  <CheckboxCard.Root
@@ -41,7 +41,7 @@ export const CountryCodeSelect = ({
41
41
  ref,
42
42
  ...props
43
43
  }: CountryCodeSelectProps & {
44
- ref?: React.RefObject<HTMLDivElement>;
44
+ ref?: React.Ref<HTMLDivElement>;
45
45
  }) => {
46
46
  const { t } = useTranslation();
47
47
 
@@ -84,7 +84,7 @@ export const Field = ({
84
84
  ref,
85
85
  ...props
86
86
  }: FieldProps & {
87
- ref?: React.RefObject<HTMLDivElement>;
87
+ ref?: React.Ref<HTMLDivElement>;
88
88
  }) => {
89
89
  const {
90
90
  label,
@@ -152,7 +152,7 @@ export const FieldErrorText = ({
152
152
  ref,
153
153
  ...props
154
154
  }: ChakraField.ErrorTextProps & {
155
- ref?: React.RefObject<HTMLDivElement>;
155
+ ref?: React.Ref<HTMLDivElement>;
156
156
  }) => {
157
157
  return (
158
158
  <ChakraField.ErrorText ref={ref}>{props.children}</ChakraField.ErrorText>
@@ -4,7 +4,7 @@ export const FloatingLabel = ({
4
4
  ref,
5
5
  ...props
6
6
  }: FieldLabelProps & {
7
- ref?: React.RefObject<HTMLLabelElement | null>;
7
+ ref?: React.Ref<HTMLLabelElement | null>;
8
8
  }) => <Field.Label ref={ref} {...props} css={floatingLabelStyles} />;
9
9
 
10
10
  const floatingLabelStyles = defineStyle({
@@ -77,7 +77,7 @@ export const Input = ({
77
77
  labelAsChild,
78
78
  ...props
79
79
  }: InputProps & {
80
- ref?: React.RefObject<HTMLInputElement | null>;
80
+ ref?: React.Ref<HTMLInputElement | null>;
81
81
  }) => {
82
82
  const recipe = useRecipe({ key: "input" });
83
83
  const [recipeProps, restProps] = recipe.splitVariantProps(props);
@@ -43,7 +43,7 @@ export const NativeSelect = function NativeSelect({
43
43
  ref,
44
44
  ...props
45
45
  }: NativeSelectdProps & {
46
- ref?: React.RefObject<HTMLDivElement>;
46
+ ref?: React.Ref<HTMLDivElement>;
47
47
  }) {
48
48
  const {
49
49
  children,
@@ -67,7 +67,7 @@ export const NumericStepper = ({
67
67
  ref,
68
68
  ...props
69
69
  }: NumericStepperProps & {
70
- ref?: React.RefObject<HTMLDivElement>;
70
+ ref?: React.Ref<HTMLDivElement>;
71
71
  }) => {
72
72
  const {
73
73
  name: nameProperty,
@@ -218,7 +218,7 @@ const VerySmallButton = ({
218
218
  ref,
219
219
  ...props
220
220
  }: VerySmallButtonProps & {
221
- ref?: React.RefObject<HTMLButtonElement | null>;
221
+ ref?: React.Ref<HTMLButtonElement | null>;
222
222
  }) => {
223
223
  const { withStepLabel = false, ...rest } = props;
224
224
 
@@ -46,7 +46,7 @@ export const PasswordInput = ({
46
46
  ref,
47
47
  ...props
48
48
  }: PasswordInputProps & {
49
- ref?: React.RefObject<HTMLInputElement>;
49
+ ref?: React.Ref<HTMLInputElement>;
50
50
  }) => {
51
51
  const {
52
52
  defaultVisible,
@@ -94,7 +94,7 @@ const VisibilityTrigger = ({
94
94
  ref,
95
95
  ...props
96
96
  }: ButtonProps & {
97
- ref?: React.RefObject<HTMLButtonElement>;
97
+ ref?: React.Ref<HTMLButtonElement>;
98
98
  }) => {
99
99
  return (
100
100
  <Button
@@ -45,7 +45,7 @@ export const PhoneNumberInput = ({
45
45
  ref,
46
46
  ...props
47
47
  }: PhoneNumberInputProps & {
48
- ref?: React.RefObject<HTMLInputElement>;
48
+ ref?: React.Ref<HTMLInputElement>;
49
49
  }) => {
50
50
  const {
51
51
  label: externalLabel,
@@ -69,7 +69,7 @@ export const Popover = ({
69
69
  hasBackdrop = true,
70
70
  containerPadding = 12,
71
71
  }: PopoverProps & {
72
- ref?: React.RefObject<HTMLDivElement | null>;
72
+ ref?: React.Ref<HTMLDivElement | null>;
73
73
  }) => {
74
74
  const internalRef = useRef<HTMLDivElement>(null);
75
75
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -32,7 +32,7 @@ export const Radio = ({
32
32
  ref,
33
33
  ...props
34
34
  }: RadioProps & {
35
- ref?: React.RefObject<HTMLInputElement>;
35
+ ref?: React.Ref<HTMLInputElement>;
36
36
  }) => {
37
37
  const { children, inputProps, rootRef, ...rest } = props;
38
38
 
@@ -55,7 +55,7 @@ export const RadioGroup = ({
55
55
  ref,
56
56
  ...props
57
57
  }: RadioGroupProps & {
58
- ref?: React.RefObject<HTMLDivElement>;
58
+ ref?: React.Ref<HTMLDivElement>;
59
59
  }) => {
60
60
  return <ChakraRadioGroup.Root ref={ref} {...props} aria-labelledby="" />;
61
61
  };
@@ -22,7 +22,7 @@ export const SearchInput = ({
22
22
  ref,
23
23
  ...props
24
24
  }: SearchInputProps & {
25
- ref?: React.RefObject<HTMLInputElement>;
25
+ ref?: React.Ref<HTMLInputElement>;
26
26
  }) => {
27
27
  const { t } = useTranslation();
28
28
  const { variant = "core", onReset, label, value } = props;
@@ -61,7 +61,7 @@ export const Select = ({
61
61
  ref,
62
62
  ...props
63
63
  }: SelectProps & {
64
- ref?: React.RefObject<HTMLDivElement>;
64
+ ref?: React.Ref<HTMLDivElement>;
65
65
  }) => {
66
66
  const {
67
67
  variant = "core",
@@ -126,7 +126,7 @@ export const SelectItem = ({
126
126
  ref,
127
127
  ...props
128
128
  }: SelectItemProps & {
129
- ref?: React.RefObject<HTMLDivElement>;
129
+ ref?: React.Ref<HTMLDivElement>;
130
130
  }) => {
131
131
  const { item, children, description, ...rest } = props;
132
132
  const recipe = useSlotRecipe({ key: "select" });
@@ -158,7 +158,7 @@ export const SelectItemGroup = function SelectItemGroup({
158
158
  ref,
159
159
  ...props
160
160
  }: SelectItemGroupProps & {
161
- ref?: React.RefObject<HTMLDivElement>;
161
+ ref?: React.Ref<HTMLDivElement>;
162
162
  }) {
163
163
  const { children, label, ...rest } = props;
164
164
  return (
@@ -178,7 +178,7 @@ export const SelectTrigger = function SelectTrigger({
178
178
  ref,
179
179
  ...props
180
180
  }: SelectTriggerProps & {
181
- ref?: React.RefObject<HTMLButtonElement>;
181
+ ref?: React.Ref<HTMLButtonElement>;
182
182
  }) {
183
183
  const { children, clearable, ...rest } = props;
184
184
  const recipe = useSlotRecipe({ key: "select" });
@@ -209,7 +209,7 @@ const SelectClearTrigger = function SelectClearTrigger({
209
209
  ref,
210
210
  ...props
211
211
  }: SelectClearTriggerProps & {
212
- ref?: React.RefObject<HTMLButtonElement>;
212
+ ref?: React.Ref<HTMLButtonElement>;
213
213
  }) {
214
214
  return (
215
215
  <ChakraSelect.ClearTrigger asChild {...props} ref={ref}>
@@ -233,7 +233,7 @@ export const SelectContent = function SelectContent({
233
233
  ref,
234
234
  ...props
235
235
  }: SelectContentProps & {
236
- ref?: React.RefObject<HTMLDivElement>;
236
+ ref?: React.Ref<HTMLDivElement>;
237
237
  }) {
238
238
  const { portalled = true, portalRef, baseStyle, ...rest } = props;
239
239
  return (
@@ -255,7 +255,7 @@ export const SelectValueText = function SelectValueText({
255
255
  ref,
256
256
  ...props
257
257
  }: SelectValueTextProps & {
258
- ref?: React.RefObject<HTMLSpanElement>;
258
+ ref?: React.Ref<HTMLSpanElement>;
259
259
  }) {
260
260
  const { children, withPlaceholder, placeholder, ...rest } = props;
261
261
  return (
@@ -49,7 +49,7 @@ export const Switch = ({
49
49
  ref,
50
50
  ...props
51
51
  }: SwitchProps & {
52
- ref?: React.RefObject<HTMLInputElement>;
52
+ ref?: React.Ref<HTMLInputElement>;
53
53
  }) => {
54
54
  const {
55
55
  rootRef,
@@ -60,7 +60,7 @@ export const Textarea = ({
60
60
  ref,
61
61
  ...props
62
62
  }: TextareaProps & {
63
- ref?: React.RefObject<HTMLTextAreaElement>;
63
+ ref?: React.Ref<HTMLTextAreaElement>;
64
64
  }) => {
65
65
  const {
66
66
  label,
@@ -8,7 +8,7 @@ export type UseFloatingInputStateProps<
8
8
  onFocus?: (event: FocusEvent<T>) => void;
9
9
  onBlur?: (event: FocusEvent<T>) => void;
10
10
  onChange?: (event: ChangeEvent<T>) => void;
11
- inputRef?: React.RefObject<T>;
11
+ inputRef?: React.Ref<T>;
12
12
  };
13
13
 
14
14
  export function useFloatingInputState<
@@ -45,7 +45,7 @@ export const PressableCard = ({
45
45
  ref,
46
46
  ...props
47
47
  }: PressableCardProps & {
48
- ref?: React.RefObject<HTMLButtonElement>;
48
+ ref?: React.Ref<HTMLButtonElement>;
49
49
  }) => {
50
50
  const recipe = useRecipe({ key: "pressableCard" });
51
51
  const [recipeProps, restProps] = recipe.splitVariantProps(props);
@@ -42,7 +42,7 @@ export const RadioCard = ({
42
42
  ref,
43
43
  ...props
44
44
  }: RadioCardItemProps & {
45
- ref?: React.RefObject<HTMLInputElement>;
45
+ ref?: React.Ref<HTMLInputElement>;
46
46
  }) => {
47
47
  const { inputProps, children } = props;
48
48
  const uniqueId = useId();
@@ -79,7 +79,7 @@ export const RadioCardGroup = ({
79
79
  ref,
80
80
  ...props
81
81
  }: RadioCardRootProps & {
82
- ref?: React.RefObject<HTMLDivElement>;
82
+ ref?: React.Ref<HTMLDivElement>;
83
83
  }) => {
84
84
  const {
85
85
  children,
@@ -9,7 +9,7 @@ export const Separator = ({
9
9
  ref,
10
10
  ...props
11
11
  }: ChakraSeparatorProps & {
12
- ref?: React.RefObject<HTMLDivElement>;
12
+ ref?: React.Ref<HTMLDivElement>;
13
13
  }) => {
14
14
  return <ChakraSeparator {...props} ref={ref} data- />;
15
15
  };