@jobber/components 6.101.5-JOB-140604-4c8f8f2.41 → 6.101.5-JOB-140604-4487daa.55

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 (177) hide show
  1. package/dist/Autocomplete/Autocomplete.types.d.ts +11 -51
  2. package/dist/Autocomplete/components/MenuList.d.ts +3 -2
  3. package/dist/Autocomplete/components/PersistentRegion.d.ts +3 -2
  4. package/dist/Autocomplete/hooks/useAutocompleteListNav.d.ts +3 -2
  5. package/dist/Autocomplete/index.cjs +95 -51
  6. package/dist/Autocomplete/index.mjs +97 -53
  7. package/dist/Autocomplete/tests/Autocomplete.setup.d.ts +14 -1
  8. package/dist/Autocomplete/useAutocomplete.d.ts +4 -3
  9. package/dist/Autocomplete/utils/interactionUtils.d.ts +14 -0
  10. package/dist/Card-cjs.js +1 -1
  11. package/dist/Card-es.js +1 -1
  12. package/dist/Checkbox/Checkbox.rebuilt.d.ts +2 -2
  13. package/dist/Checkbox/Checkbox.types.d.ts +24 -18
  14. package/dist/Checkbox/index.cjs +9 -2
  15. package/dist/Checkbox/index.mjs +9 -2
  16. package/dist/Chip/Chip.d.ts +1 -2
  17. package/dist/Chip/hooks/useChildComponent.d.ts +4 -3
  18. package/dist/Chip/index.cjs +1 -1
  19. package/dist/Chip-cjs.js +5 -4
  20. package/dist/Chip-es.js +5 -4
  21. package/dist/ChipDismissible-cjs.js +4 -4
  22. package/dist/ChipDismissible-es.js +5 -5
  23. package/dist/Chips/InternalChipDismissible/hooks/index.cjs +2 -2
  24. package/dist/Chips/InternalChipDismissible/hooks/index.mjs +2 -2
  25. package/dist/Chips/InternalChipDismissible/hooks/useInView.d.ts +1 -1
  26. package/dist/Chips/InternalChipDismissible/hooks/useInternalChipDismissibleInput.d.ts +1 -1
  27. package/dist/Chips/InternalChipDismissible/hooks/useScrollToActive.d.ts +1 -1
  28. package/dist/Chips/InternalChipDismissible/index.cjs +2 -2
  29. package/dist/Chips/InternalChipDismissible/index.mjs +2 -2
  30. package/dist/Chips/index.cjs +2 -2
  31. package/dist/Chips/index.mjs +2 -2
  32. package/dist/Combobox/Combobox.d.ts +2 -1
  33. package/dist/Combobox/Combobox.types.d.ts +2 -2
  34. package/dist/Combobox/ComboboxProvider.d.ts +3 -3
  35. package/dist/Combobox/components/ComboboxActivator/ComboboxActivator.d.ts +1 -1
  36. package/dist/Combobox/components/ComboboxContent/ComboboxContent.d.ts +2 -1
  37. package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/ComboboxContentHeader.d.ts +2 -1
  38. package/dist/Combobox/components/ComboboxContent/ComboboxContentList/ComboboxContentList.d.ts +2 -1
  39. package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/ComboboxContentSearch.d.ts +2 -1
  40. package/dist/Combobox/hooks/useCombobox.d.ts +1 -1
  41. package/dist/Combobox/hooks/useComboboxAccessibility.d.ts +2 -2
  42. package/dist/Combobox/hooks/useComboboxContent.d.ts +2 -1
  43. package/dist/Combobox/hooks/useMakeComboboxHandlers.d.ts +1 -1
  44. package/dist/ComboboxActivator-cjs.js +2 -2
  45. package/dist/ComboboxActivator-es.js +3 -3
  46. package/dist/ComboboxTrigger-cjs.js +1 -1
  47. package/dist/ComboboxTrigger-es.js +2 -2
  48. package/dist/DataList/DataList.types.d.ts +2 -2
  49. package/dist/DataList/DataList.utils.d.ts +2 -2
  50. package/dist/DataList/components/DataListHeader/index.cjs +1 -0
  51. package/dist/DataList/components/DataListHeader/index.mjs +1 -0
  52. package/dist/DataList/components/DataListHeaderTile/components/DataListSortingOptions.d.ts +2 -2
  53. package/dist/DataList/components/DataListItem/DataListItemInternal.d.ts +2 -2
  54. package/dist/DataList/components/DataListItem/index.cjs +1 -0
  55. package/dist/DataList/components/DataListItem/index.mjs +1 -0
  56. package/dist/DataList/components/DataListItems/index.cjs +1 -0
  57. package/dist/DataList/components/DataListItems/index.mjs +1 -0
  58. package/dist/DataList/components/DataListLayout/index.cjs +1 -0
  59. package/dist/DataList/components/DataListLayout/index.mjs +1 -0
  60. package/dist/DataList/components/DataListSearch/index.cjs +2 -12
  61. package/dist/DataList/components/DataListSearch/index.mjs +2 -12
  62. package/dist/DataList/hooks/useGetItemActions.d.ts +1 -1
  63. package/dist/DataList/index.cjs +1 -8
  64. package/dist/DataList/index.mjs +1 -8
  65. package/dist/DataListActions-cjs.js +4 -2
  66. package/dist/DataListActions-es.js +4 -2
  67. package/dist/DataListItem-cjs.js +8 -7
  68. package/dist/DataListItem-es.js +9 -8
  69. package/dist/DataListSort-cjs.js +1 -1
  70. package/dist/DataListSort-es.js +2 -2
  71. package/dist/DataTable/SortIcon.d.ts +2 -1
  72. package/dist/DataTable/components/DataTableSortableHeader.d.ts +1 -1
  73. package/dist/DataTable/index.cjs +3 -2
  74. package/dist/DataTable/index.mjs +3 -2
  75. package/dist/DatePicker/DatePicker.d.ts +5 -1
  76. package/dist/DatePicker/index.cjs +2 -2
  77. package/dist/DatePicker/index.mjs +2 -2
  78. package/dist/DatePicker/useFocusOnSelectedDate.d.ts +1 -2
  79. package/dist/DatePicker-cjs.js +4 -2
  80. package/dist/DatePicker-es.js +5 -3
  81. package/dist/FormField/FormFieldAffix.d.ts +2 -2
  82. package/dist/FormField/FormFieldTypes.d.ts +3 -5
  83. package/dist/FormField/FormFieldWrapper.d.ts +5 -1
  84. package/dist/FormField/hooks/useFormFieldFocus.d.ts +1 -1
  85. package/dist/FormField/hooks/useFormFieldWrapperStyles.d.ts +9 -4
  86. package/dist/FormField-cjs.js +35 -31
  87. package/dist/FormField-es.js +35 -31
  88. package/dist/InputDate/InputDate.types.d.ts +12 -7
  89. package/dist/InputDate/index.cjs +35 -12
  90. package/dist/InputDate/index.mjs +35 -12
  91. package/dist/InputDate/useInputDateActivatorActions.d.ts +4 -8
  92. package/dist/InputEmail/InputEmail.types.d.ts +10 -20
  93. package/dist/InputEmail/hooks/useInputEmailActions.d.ts +10 -4
  94. package/dist/InputEmail/index.cjs +43 -60
  95. package/dist/InputEmail/index.mjs +44 -61
  96. package/dist/InputFile-cjs.js +5 -2
  97. package/dist/InputFile-es.js +5 -2
  98. package/dist/InputGroup-cjs.js +5 -2
  99. package/dist/InputGroup-es.js +5 -2
  100. package/dist/InputNumber/InputNumber.rebuilt.types.d.ts +7 -15
  101. package/dist/InputNumber/index.cjs +7 -5
  102. package/dist/InputNumber/index.mjs +7 -5
  103. package/dist/InputPhoneNumber/InputPhoneNumber.types.d.ts +12 -28
  104. package/dist/InputPhoneNumber/hooks/useInputPhoneActions.d.ts +9 -4
  105. package/dist/InputPhoneNumber/index.cjs +37 -36
  106. package/dist/InputPhoneNumber/index.mjs +38 -37
  107. package/dist/InputText/InputText.d.ts +2 -2
  108. package/dist/InputText/InputText.types.d.ts +30 -25
  109. package/dist/InputText/index.cjs +54 -62
  110. package/dist/InputText/index.mjs +55 -63
  111. package/dist/InputText/useInputTextActions.d.ts +11 -5
  112. package/dist/InputText/useTextAreaResize.d.ts +2 -2
  113. package/dist/InputTime/InputTime.rebuilt.d.ts +1 -1
  114. package/dist/InputTime/InputTime.types.d.ts +13 -4
  115. package/dist/InputTime/hooks/useInputTimeActions.d.ts +21 -0
  116. package/dist/InputTime/index.cjs +90 -30
  117. package/dist/InputTime/index.mjs +93 -33
  118. package/dist/InternalChipDismissible-cjs.js +3 -3
  119. package/dist/InternalChipDismissible-es.js +4 -4
  120. package/dist/List/index.cjs +2 -2
  121. package/dist/List/index.mjs +2 -2
  122. package/dist/Menu/Menu.d.ts +2 -4
  123. package/dist/Menu/Menu.types.d.ts +21 -5
  124. package/dist/Menu-cjs.js +9 -9
  125. package/dist/Menu-es.js +9 -9
  126. package/dist/Modal/Modal.types.d.ts +3 -3
  127. package/dist/Modal/ModalContext.rebuilt.d.ts +2 -2
  128. package/dist/MultiSelect/DropDownMenu.d.ts +1 -1
  129. package/dist/MultiSelect/index.cjs +1 -0
  130. package/dist/MultiSelect/index.mjs +1 -0
  131. package/dist/MultiSelect-cjs.js +13 -7
  132. package/dist/MultiSelect-es.js +13 -7
  133. package/dist/RadioGroup/RadioGroup.d.ts +2 -1
  134. package/dist/RadioGroup/RadioOption.d.ts +1 -1
  135. package/dist/RecurringSelect/index.cjs +3 -2
  136. package/dist/RecurringSelect/index.mjs +3 -2
  137. package/dist/Select/Select.types.d.ts +7 -3
  138. package/dist/Select/hooks/useSelectActions.d.ts +5 -5
  139. package/dist/Select/index.cjs +27 -42
  140. package/dist/Select/index.mjs +29 -44
  141. package/dist/StatusLabel/StatusLabel.d.ts +2 -1
  142. package/dist/Tabs/hooks/useTabsOverflow.d.ts +2 -2
  143. package/dist/Tabs-cjs.js +4 -2
  144. package/dist/Tabs-es.js +5 -3
  145. package/dist/Tooltip/useTooltipPositioning.d.ts +1 -1
  146. package/dist/_baseEach-cjs.js +12 -12
  147. package/dist/_baseEach-es.js +1 -1
  148. package/dist/_baseFlatten-cjs.js +2 -2
  149. package/dist/_baseFlatten-es.js +1 -1
  150. package/dist/{_baseGet-cjs.js → _getAllKeys-cjs.js} +181 -181
  151. package/dist/{_baseGet-es.js → _getAllKeys-es.js} +182 -182
  152. package/dist/debounce-es.js +1 -1
  153. package/dist/filterDataAttributes-cjs.js +26 -0
  154. package/dist/filterDataAttributes-es.js +24 -0
  155. package/dist/floating-ui.react-cjs.js +115 -0
  156. package/dist/floating-ui.react-es.js +115 -1
  157. package/dist/helpers-cjs.js +1 -1
  158. package/dist/helpers-es.js +1 -1
  159. package/dist/index.cjs +4 -3
  160. package/dist/index.mjs +3 -2
  161. package/dist/omit-cjs.js +14 -14
  162. package/dist/omit-es.js +1 -1
  163. package/dist/sharedHelpers/filterDataAttributes.d.ts +17 -0
  164. package/dist/sharedHelpers/types.d.ts +231 -0
  165. package/dist/showToast-cjs.js +2 -2
  166. package/dist/showToast-es.js +2 -2
  167. package/dist/styles.css +32 -23
  168. package/dist/useChildComponent-cjs.js +1 -1
  169. package/dist/useChildComponent-es.js +1 -1
  170. package/dist/useScrollToActive-cjs.js +3 -3
  171. package/dist/useScrollToActive-es.js +2 -2
  172. package/dist/utils/mergeRefs.d.ts +2 -2
  173. package/package.json +3 -3
  174. package/dist/InputEmail/hooks/useInputEmailFormField.d.ts +0 -32
  175. package/dist/InputPhoneNumber/hooks/useInputPhoneFormField.d.ts +0 -71
  176. package/dist/InputText/useInputTextFormField.d.ts +0 -352
  177. package/dist/Select/hooks/useSelectFormField.d.ts +0 -34
@@ -10,13 +10,14 @@ require('@jobber/hooks');
10
10
  require('framer-motion');
11
11
  require('@jobber/design');
12
12
  require('../Button-cjs.js');
13
+ var filterDataAttributes = require('../filterDataAttributes-cjs.js');
13
14
  require('../_commonjsHelpers-cjs.js');
14
- require('../_baseGet-cjs.js');
15
+ require('../_getAllKeys-cjs.js');
15
16
  require('../isTypedArray-cjs.js');
16
17
  require('../isObjectLike-cjs.js');
18
+ require('../isSymbol-cjs.js');
17
19
  require('../identity-cjs.js');
18
20
  require('../_getTag-cjs.js');
19
- require('../isSymbol-cjs.js');
20
21
  require('../keysIn-cjs.js');
21
22
  require('../_baseAssignValue-cjs.js');
22
23
  require('../_baseFlatten-cjs.js');
@@ -42,11 +43,11 @@ function useSelectActions({ onChange, onBlur, onFocus, }) {
42
43
  const newValue = event.currentTarget.value;
43
44
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue, event);
44
45
  }
45
- function handleBlur() {
46
- onBlur === null || onBlur === void 0 ? void 0 : onBlur();
46
+ function handleBlur(event) {
47
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
47
48
  }
48
- function handleFocus() {
49
- onFocus === null || onFocus === void 0 ? void 0 : onFocus();
49
+ function handleFocus(event) {
50
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
50
51
  }
51
52
  return {
52
53
  handleChange,
@@ -55,27 +56,15 @@ function useSelectActions({ onChange, onBlur, onFocus, }) {
55
56
  };
56
57
  }
57
58
 
58
- /**
59
- * Hook for managing the props of a Select component.
60
- * Extracted from FormField's useAtlantisFormField.
61
- */
62
- function useSelectFormField({ id, name, disabled, autofocus, description, inline, value, handleChange, handleBlur, handleFocus, }) {
63
- const descriptionIdentifier = `descriptionUUID--${id}`;
64
- const fieldProps = Object.assign({ id,
65
- name,
66
- disabled, autoFocus: autofocus, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, value }, (description &&
67
- !inline && { "aria-describedby": descriptionIdentifier }));
68
- return { fieldProps, descriptionIdentifier };
69
- }
70
-
71
59
  var styles = {"select":"-hmXAsAfH9U-","selectPostfix":"_5ST4c1fXDYU-","spinning":"oOACJmrVDf0-"};
72
60
 
73
61
  function SelectRebuilt(props) {
74
- var _a, _b;
75
- const selectRef = (_a = props.inputRef) !== null && _a !== void 0 ? _a : React.useRef(null);
76
- const wrapperRef = React.useRef(null);
77
- const { inputStyle } = FormField.useFormFieldWrapperStyles(Object.assign({}, omit.omit(props, ["version"])));
78
- const id = useSelectId(props);
62
+ var _a;
63
+ const { mergedRef, wrapperRef } = useSelectRefs(props.inputRef);
64
+ const dataAttrs = filterDataAttributes.filterDataAttributes(props);
65
+ const generatedId = React.useId();
66
+ const id = props.id || generatedId;
67
+ const descriptionIdentifier = `descriptionUUID--${id}`;
79
68
  const { name } = FormField.useAtlantisFormFieldName({
80
69
  nameProp: props.name,
81
70
  id: id,
@@ -85,27 +74,23 @@ function SelectRebuilt(props) {
85
74
  onBlur: props.onBlur,
86
75
  onFocus: props.onFocus,
87
76
  });
88
- const inputProps = omit.omit(props, [
89
- "onChange",
90
- "onBlur",
91
- "onFocus",
92
- "size",
93
- "placeholder",
94
- "version",
95
- ]);
96
- const { fieldProps, descriptionIdentifier } = useSelectFormField(Object.assign(Object.assign({}, inputProps), { id,
97
- name,
98
- handleChange,
99
- handleBlur,
100
- handleFocus }));
101
- return (React.createElement(FormField.FormFieldWrapper, { disabled: props.disabled, size: props.size, align: props.align, inline: props.inline, autofocus: props.autofocus, name: name, wrapperRef: wrapperRef, error: (_b = props.error) !== null && _b !== void 0 ? _b : "", invalid: props.invalid, identifier: id, descriptionIdentifier: descriptionIdentifier, description: props.description, type: "select", placeholder: props.placeholder, value: props.value, prefix: props.prefix, suffix: props.suffix, clearable: "never", maxLength: props.maxLength },
77
+ const descriptionVisible = props.description && !props.inline;
78
+ const isInvalid = Boolean(props.error || props.invalid);
79
+ return (React.createElement(FormField.FormFieldWrapper, { disabled: props.disabled, size: props.size, align: props.align, inline: props.inline, name: name, wrapperRef: wrapperRef, error: (_a = props.error) !== null && _a !== void 0 ? _a : "", invalid: props.invalid, identifier: id, descriptionIdentifier: descriptionIdentifier, description: props.description, type: "select", placeholder: props.placeholder, value: props.value, prefix: props.prefix, suffix: props.suffix, clearable: "never" },
102
80
  React.createElement(React.Fragment, null,
103
- React.createElement("select", Object.assign({}, fieldProps, { ref: selectRef, className: classnames(inputStyle, props.UNSAFE_experimentalStyles && styles.select) }), props.children),
81
+ React.createElement("select", Object.assign({ id: id, name: name, disabled: props.disabled, autoFocus: props.autoFocus, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, value: props.value, "aria-label": props["aria-label"], "aria-describedby": descriptionVisible
82
+ ? descriptionIdentifier
83
+ : props["aria-describedby"], "aria-invalid": isInvalid ? true : undefined, "aria-required": props["aria-required"], ref: mergedRef, className: classnames(FormField.formFieldStyles.input, props.UNSAFE_experimentalStyles && styles.select) }, dataAttrs), props.children),
104
84
  React.createElement(FormField.FormFieldPostFix, { variation: "select", className: styles.selectPostfix }))));
105
85
  }
106
- function useSelectId(props) {
107
- const generatedId = React.useId();
108
- return props.id || generatedId;
86
+ function useSelectRefs(inputRef) {
87
+ const internalRef = React.useRef(null);
88
+ const mergedRef = FormField.mergeRefs([
89
+ internalRef,
90
+ inputRef,
91
+ ]);
92
+ const wrapperRef = React.useRef(null);
93
+ return { mergedRef, wrapperRef };
109
94
  }
110
95
 
111
96
  function SelectOption({ children, disabled, value }) {
@@ -1,6 +1,6 @@
1
- import React__default, { useRef, useId } from 'react';
1
+ import React__default, { useId, useRef } from 'react';
2
2
  import { o as omit } from '../omit-es.js';
3
- import { k as FormField, j as useFormFieldWrapperStyles, b as useAtlantisFormFieldName, f as FormFieldWrapper, l as FormFieldPostFix } from '../FormField-es.js';
3
+ import { k as FormField, b as useAtlantisFormFieldName, f as FormFieldWrapper, l as formFieldStyles, m as FormFieldPostFix, n as mergeRefs } from '../FormField-es.js';
4
4
  import classnames from 'classnames';
5
5
  import '../tslib.es6-es.js';
6
6
  import 'react-hook-form';
@@ -8,13 +8,14 @@ import '@jobber/hooks';
8
8
  import 'framer-motion';
9
9
  import '@jobber/design';
10
10
  import '../Button-es.js';
11
+ import { f as filterDataAttributes } from '../filterDataAttributes-es.js';
11
12
  import '../_commonjsHelpers-es.js';
12
- import '../_baseGet-es.js';
13
+ import '../_getAllKeys-es.js';
13
14
  import '../isTypedArray-es.js';
14
15
  import '../isObjectLike-es.js';
16
+ import '../isSymbol-es.js';
15
17
  import '../identity-es.js';
16
18
  import '../_getTag-es.js';
17
- import '../isSymbol-es.js';
18
19
  import '../keysIn-es.js';
19
20
  import '../_baseAssignValue-es.js';
20
21
  import '../_baseFlatten-es.js';
@@ -40,11 +41,11 @@ function useSelectActions({ onChange, onBlur, onFocus, }) {
40
41
  const newValue = event.currentTarget.value;
41
42
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue, event);
42
43
  }
43
- function handleBlur() {
44
- onBlur === null || onBlur === void 0 ? void 0 : onBlur();
44
+ function handleBlur(event) {
45
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
45
46
  }
46
- function handleFocus() {
47
- onFocus === null || onFocus === void 0 ? void 0 : onFocus();
47
+ function handleFocus(event) {
48
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
48
49
  }
49
50
  return {
50
51
  handleChange,
@@ -53,27 +54,15 @@ function useSelectActions({ onChange, onBlur, onFocus, }) {
53
54
  };
54
55
  }
55
56
 
56
- /**
57
- * Hook for managing the props of a Select component.
58
- * Extracted from FormField's useAtlantisFormField.
59
- */
60
- function useSelectFormField({ id, name, disabled, autofocus, description, inline, value, handleChange, handleBlur, handleFocus, }) {
61
- const descriptionIdentifier = `descriptionUUID--${id}`;
62
- const fieldProps = Object.assign({ id,
63
- name,
64
- disabled, autoFocus: autofocus, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, value }, (description &&
65
- !inline && { "aria-describedby": descriptionIdentifier }));
66
- return { fieldProps, descriptionIdentifier };
67
- }
68
-
69
57
  var styles = {"select":"-hmXAsAfH9U-","selectPostfix":"_5ST4c1fXDYU-","spinning":"oOACJmrVDf0-"};
70
58
 
71
59
  function SelectRebuilt(props) {
72
- var _a, _b;
73
- const selectRef = (_a = props.inputRef) !== null && _a !== void 0 ? _a : useRef(null);
74
- const wrapperRef = useRef(null);
75
- const { inputStyle } = useFormFieldWrapperStyles(Object.assign({}, omit(props, ["version"])));
76
- const id = useSelectId(props);
60
+ var _a;
61
+ const { mergedRef, wrapperRef } = useSelectRefs(props.inputRef);
62
+ const dataAttrs = filterDataAttributes(props);
63
+ const generatedId = useId();
64
+ const id = props.id || generatedId;
65
+ const descriptionIdentifier = `descriptionUUID--${id}`;
77
66
  const { name } = useAtlantisFormFieldName({
78
67
  nameProp: props.name,
79
68
  id: id,
@@ -83,27 +72,23 @@ function SelectRebuilt(props) {
83
72
  onBlur: props.onBlur,
84
73
  onFocus: props.onFocus,
85
74
  });
86
- const inputProps = omit(props, [
87
- "onChange",
88
- "onBlur",
89
- "onFocus",
90
- "size",
91
- "placeholder",
92
- "version",
93
- ]);
94
- const { fieldProps, descriptionIdentifier } = useSelectFormField(Object.assign(Object.assign({}, inputProps), { id,
95
- name,
96
- handleChange,
97
- handleBlur,
98
- handleFocus }));
99
- return (React__default.createElement(FormFieldWrapper, { disabled: props.disabled, size: props.size, align: props.align, inline: props.inline, autofocus: props.autofocus, name: name, wrapperRef: wrapperRef, error: (_b = props.error) !== null && _b !== void 0 ? _b : "", invalid: props.invalid, identifier: id, descriptionIdentifier: descriptionIdentifier, description: props.description, type: "select", placeholder: props.placeholder, value: props.value, prefix: props.prefix, suffix: props.suffix, clearable: "never", maxLength: props.maxLength },
75
+ const descriptionVisible = props.description && !props.inline;
76
+ const isInvalid = Boolean(props.error || props.invalid);
77
+ return (React__default.createElement(FormFieldWrapper, { disabled: props.disabled, size: props.size, align: props.align, inline: props.inline, name: name, wrapperRef: wrapperRef, error: (_a = props.error) !== null && _a !== void 0 ? _a : "", invalid: props.invalid, identifier: id, descriptionIdentifier: descriptionIdentifier, description: props.description, type: "select", placeholder: props.placeholder, value: props.value, prefix: props.prefix, suffix: props.suffix, clearable: "never" },
100
78
  React__default.createElement(React__default.Fragment, null,
101
- React__default.createElement("select", Object.assign({}, fieldProps, { ref: selectRef, className: classnames(inputStyle, props.UNSAFE_experimentalStyles && styles.select) }), props.children),
79
+ React__default.createElement("select", Object.assign({ id: id, name: name, disabled: props.disabled, autoFocus: props.autoFocus, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, value: props.value, "aria-label": props["aria-label"], "aria-describedby": descriptionVisible
80
+ ? descriptionIdentifier
81
+ : props["aria-describedby"], "aria-invalid": isInvalid ? true : undefined, "aria-required": props["aria-required"], ref: mergedRef, className: classnames(formFieldStyles.input, props.UNSAFE_experimentalStyles && styles.select) }, dataAttrs), props.children),
102
82
  React__default.createElement(FormFieldPostFix, { variation: "select", className: styles.selectPostfix }))));
103
83
  }
104
- function useSelectId(props) {
105
- const generatedId = useId();
106
- return props.id || generatedId;
84
+ function useSelectRefs(inputRef) {
85
+ const internalRef = useRef(null);
86
+ const mergedRef = mergeRefs([
87
+ internalRef,
88
+ inputRef,
89
+ ]);
90
+ const wrapperRef = useRef(null);
91
+ return { mergedRef, wrapperRef };
107
92
  }
108
93
 
109
94
  function SelectOption({ children, disabled, value }) {
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { StatusIndicatorType } from "../StatusIndicator/StatusIndicator.type";
2
3
  export interface StatusLabelType {
3
4
  readonly statusLabel: string;
@@ -21,5 +22,5 @@ interface StatusLabelProps {
21
22
  */
22
23
  readonly status: StatusIndicatorType;
23
24
  }
24
- export declare function StatusLabel({ label, alignment, status, }: StatusLabelProps): JSX.Element;
25
+ export declare function StatusLabel({ label, alignment, status, }: StatusLabelProps): React.JSX.Element;
25
26
  export {};
@@ -1,8 +1,8 @@
1
- import type { MutableRefObject } from "react";
1
+ import type { RefObject } from "react";
2
2
  interface UseTabsOverflow {
3
3
  overflowRight: boolean;
4
4
  overflowLeft: boolean;
5
- tabRow: MutableRefObject<HTMLUListElement>;
5
+ tabRow: RefObject<HTMLUListElement | null>;
6
6
  }
7
7
  export declare function useTabsOverflow(): UseTabsOverflow;
8
8
  export {};
package/dist/Tabs-cjs.js CHANGED
@@ -84,7 +84,7 @@ var throttle$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(throttle_
84
84
  function useTabsOverflow() {
85
85
  const [overflowRight, setOverflowRight] = React.useState(false);
86
86
  const [overflowLeft, setOverflowLeft] = React.useState(false);
87
- const tabRow = React.useRef();
87
+ const tabRow = React.useRef(null);
88
88
  const handleOverflowing = () => {
89
89
  if (tabRow.current) {
90
90
  const scrollWidth = tabRow.current.scrollWidth;
@@ -197,7 +197,9 @@ function Tabs({ children, defaultTab = 0, activeTab: controlledActiveTab, onTabC
197
197
  }
198
198
  }, tabIndex: activeTab === index ? 0 : -1 }));
199
199
  }))),
200
- React.createElement("section", { role: "tabpanel", className: styles.tabContent, "aria-label": activeTabProps === null || activeTabProps === void 0 ? void 0 : activeTabProps.label }, activeTabProps === null || activeTabProps === void 0 ? void 0 : activeTabProps.children)));
200
+ React.createElement("section", { role: "tabpanel", className: styles.tabContent, "aria-label": typeof (activeTabProps === null || activeTabProps === void 0 ? void 0 : activeTabProps.label) === "string"
201
+ ? activeTabProps.label
202
+ : undefined }, activeTabProps === null || activeTabProps === void 0 ? void 0 : activeTabProps.children)));
201
203
  }
202
204
  function Tab({ label }) {
203
205
  return React.createElement(React.Fragment, null, label);
package/dist/Tabs-es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import React__default, { useState, useRef, useCallback, useEffect } from 'react';
2
2
  import classnames from 'classnames';
3
3
  import { g as getDefaultExportFromCjs } from './_commonjsHelpers-es.js';
4
- import { a as debounce_1 } from './debounce-es.js';
4
+ import { d as debounce_1 } from './debounce-es.js';
5
5
  import { a as isObject_1 } from './isObjectLike-es.js';
6
6
  import { T as Typography } from './Typography-es.js';
7
7
 
@@ -82,7 +82,7 @@ var throttle$1 = /*@__PURE__*/getDefaultExportFromCjs(throttle_1);
82
82
  function useTabsOverflow() {
83
83
  const [overflowRight, setOverflowRight] = useState(false);
84
84
  const [overflowLeft, setOverflowLeft] = useState(false);
85
- const tabRow = useRef();
85
+ const tabRow = useRef(null);
86
86
  const handleOverflowing = () => {
87
87
  if (tabRow.current) {
88
88
  const scrollWidth = tabRow.current.scrollWidth;
@@ -195,7 +195,9 @@ function Tabs({ children, defaultTab = 0, activeTab: controlledActiveTab, onTabC
195
195
  }
196
196
  }, tabIndex: activeTab === index ? 0 : -1 }));
197
197
  }))),
198
- React__default.createElement("section", { role: "tabpanel", className: styles.tabContent, "aria-label": activeTabProps === null || activeTabProps === void 0 ? void 0 : activeTabProps.label }, activeTabProps === null || activeTabProps === void 0 ? void 0 : activeTabProps.children)));
198
+ React__default.createElement("section", { role: "tabpanel", className: styles.tabContent, "aria-label": typeof (activeTabProps === null || activeTabProps === void 0 ? void 0 : activeTabProps.label) === "string"
199
+ ? activeTabProps.label
200
+ : undefined }, activeTabProps === null || activeTabProps === void 0 ? void 0 : activeTabProps.children)));
199
201
  }
200
202
  function Tab({ label }) {
201
203
  return React__default.createElement(React__default.Fragment, null, label);
@@ -11,7 +11,7 @@ export declare function useTooltipPositioning({ preferredPlacement, }: ToolTipPo
11
11
  }) | undefined;
12
12
  };
13
13
  placement: import("@floating-ui/utils").Placement;
14
- shadowRef: import("react").RefObject<HTMLSpanElement>;
14
+ shadowRef: import("react").RefObject<HTMLSpanElement | null>;
15
15
  setArrowRef: import("react").Dispatch<import("react").SetStateAction<HTMLDivElement | null | undefined>>;
16
16
  setTooltipRef: ((node: HTMLElement | null) => void) & ((node: HTMLElement | null) => void);
17
17
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  var identity$1 = require('./identity-cjs.js');
4
4
  var isObjectLike$1 = require('./isObjectLike-cjs.js');
5
- var _baseGet = require('./_baseGet-cjs.js');
5
+ var _getAllKeys = require('./_getAllKeys-cjs.js');
6
6
  var _getTag = require('./_getTag-cjs.js');
7
7
  var isTypedArray$1 = require('./isTypedArray-cjs.js');
8
8
  var _commonjsHelpers = require('./_commonjsHelpers-cjs.js');
@@ -351,7 +351,7 @@ function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack)
351
351
 
352
352
  var _equalByTag = equalByTag$1;
353
353
 
354
- var getAllKeys = _baseGet._getAllKeys;
354
+ var getAllKeys = _getAllKeys._getAllKeys;
355
355
 
356
356
  /** Used to compose bitmasks for value comparisons. */
357
357
  var COMPARE_PARTIAL_FLAG$3 = 1;
@@ -635,7 +635,7 @@ function isStrictComparable$2(value) {
635
635
  var _isStrictComparable = isStrictComparable$2;
636
636
 
637
637
  var isStrictComparable$1 = _isStrictComparable,
638
- keys$1 = _baseGet.keys_1;
638
+ keys$1 = _getAllKeys.keys_1;
639
639
 
640
640
  /**
641
641
  * Gets the property names, values, and compare flags of `object`.
@@ -704,7 +704,7 @@ function baseMatches$1(source) {
704
704
 
705
705
  var _baseMatches = baseMatches$1;
706
706
 
707
- var baseGet$1 = _baseGet._baseGet;
707
+ var baseGet$1 = _getAllKeys._baseGet;
708
708
 
709
709
  /**
710
710
  * Gets the value at `path` of `object`. If the resolved value is
@@ -755,12 +755,12 @@ function baseHasIn$1(object, key) {
755
755
 
756
756
  var _baseHasIn = baseHasIn$1;
757
757
 
758
- var castPath = _baseGet._castPath,
758
+ var castPath = _getAllKeys._castPath,
759
759
  isArguments = isTypedArray$1.isArguments_1,
760
760
  isArray$1 = isTypedArray$1.isArray_1,
761
761
  isIndex = identity$1._isIndex,
762
762
  isLength = isTypedArray$1.isLength_1,
763
- toKey$2 = _baseGet._toKey;
763
+ toKey$2 = _getAllKeys._toKey;
764
764
 
765
765
  /**
766
766
  * Checks if `path` exists on `object`.
@@ -833,10 +833,10 @@ var hasIn_1 = hasIn$1;
833
833
  var baseIsEqual = _baseIsEqual,
834
834
  get = get_1,
835
835
  hasIn = hasIn_1,
836
- isKey$1 = _baseGet._isKey,
836
+ isKey$1 = _getAllKeys._isKey,
837
837
  isStrictComparable = _isStrictComparable,
838
838
  matchesStrictComparable = _matchesStrictComparable,
839
- toKey$1 = _baseGet._toKey;
839
+ toKey$1 = _getAllKeys._toKey;
840
840
 
841
841
  /** Used to compose bitmasks for value comparisons. */
842
842
  var COMPARE_PARTIAL_FLAG = 1,
@@ -880,7 +880,7 @@ function baseProperty$1(key) {
880
880
 
881
881
  var _baseProperty = baseProperty$1;
882
882
 
883
- var baseGet = _baseGet._baseGet;
883
+ var baseGet = _getAllKeys._baseGet;
884
884
 
885
885
  /**
886
886
  * A specialized version of `baseProperty` which supports deep paths.
@@ -899,8 +899,8 @@ var _basePropertyDeep = basePropertyDeep$1;
899
899
 
900
900
  var baseProperty = _baseProperty,
901
901
  basePropertyDeep = _basePropertyDeep,
902
- isKey = _baseGet._isKey,
903
- toKey = _baseGet._toKey;
902
+ isKey = _getAllKeys._isKey,
903
+ toKey = _getAllKeys._toKey;
904
904
 
905
905
  /**
906
906
  * Creates a function that returns the value at `path` of a given object.
@@ -963,7 +963,7 @@ function baseIteratee(value) {
963
963
  var _baseIteratee = baseIteratee;
964
964
 
965
965
  var baseFor = _baseFor._baseFor,
966
- keys = _baseGet.keys_1;
966
+ keys = _getAllKeys.keys_1;
967
967
 
968
968
  /**
969
969
  * The base implementation of `_.forOwn` without support for iteratee shorthands.
@@ -1,6 +1,6 @@
1
1
  import { g as _MapCache, d as _Uint8Array, e as eq_1, c as _Stack, a as _isIndex, i as identity_1 } from './identity-es.js';
2
2
  import { b as _Symbol, i as isObjectLike_1, a as isObject_1 } from './isObjectLike-es.js';
3
- import { e as _getAllKeys, k as keys_1, b as _baseGet, f as _castPath, g as _toKey, h as _isKey } from './_baseGet-es.js';
3
+ import { e as _getAllKeys, k as keys_1, b as _baseGet, f as _castPath, g as _toKey, h as _isKey } from './_getAllKeys-es.js';
4
4
  import { a as _getTag } from './_getTag-es.js';
5
5
  import { c as isBufferExports, d as isTypedArray_1, a as isArray_1, i as isArguments_1, m as isLength_1, b as isArrayLike_1 } from './isTypedArray-es.js';
6
6
  import { g as getDefaultExportFromCjs } from './_commonjsHelpers-es.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var _baseGet = require('./_baseGet-cjs.js');
3
+ var _getAllKeys = require('./_getAllKeys-cjs.js');
4
4
  var isObjectLike = require('./isObjectLike-cjs.js');
5
5
  var isTypedArray = require('./isTypedArray-cjs.js');
6
6
 
@@ -25,7 +25,7 @@ function isFlattenable$1(value) {
25
25
 
26
26
  var _isFlattenable = isFlattenable$1;
27
27
 
28
- var arrayPush = _baseGet._arrayPush,
28
+ var arrayPush = _getAllKeys._arrayPush,
29
29
  isFlattenable = _isFlattenable;
30
30
 
31
31
  /**
@@ -1,4 +1,4 @@
1
- import { _ as _arrayPush } from './_baseGet-es.js';
1
+ import { _ as _arrayPush } from './_getAllKeys-es.js';
2
2
  import { b as _Symbol } from './isObjectLike-es.js';
3
3
  import { i as isArguments_1, a as isArray_1 } from './isTypedArray-es.js';
4
4