@homebound/beam 2.369.2 → 2.369.4

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 (239) hide show
  1. package/dist/Css.js +7 -7
  2. package/dist/components/Accordion.js +1 -2
  3. package/dist/components/AccordionList.js +1 -2
  4. package/dist/components/AutoSaveIndicator.js +1 -2
  5. package/dist/components/AutoSaveStatus/AutoSaveStatusProvider.js +3 -3
  6. package/dist/components/AutoSaveStatus/useAutoSaveStatus.js +1 -2
  7. package/dist/components/Avatar/Avatar.js +1 -2
  8. package/dist/components/Avatar/AvatarButton.js +2 -2
  9. package/dist/components/Avatar/AvatarGroup.js +1 -2
  10. package/dist/components/Banner.js +1 -2
  11. package/dist/components/BeamContext.js +3 -3
  12. package/dist/components/Button.js +1 -2
  13. package/dist/components/ButtonDatePicker.js +1 -2
  14. package/dist/components/ButtonGroup.js +1 -2
  15. package/dist/components/ButtonMenu.js +1 -2
  16. package/dist/components/ButtonModal.js +1 -2
  17. package/dist/components/Chip.d.ts +1 -1
  18. package/dist/components/Chip.js +3 -3
  19. package/dist/components/Chips.js +1 -2
  20. package/dist/components/Copy.js +1 -2
  21. package/dist/components/CssReset.js +2 -2
  22. package/dist/components/DnDGrid/DnDGrid.js +2 -2
  23. package/dist/components/DnDGrid/DnDGridContext.js +2 -2
  24. package/dist/components/DnDGrid/DnDGridItemHandle.js +1 -2
  25. package/dist/components/DnDGrid/useDnDGridItem.js +1 -2
  26. package/dist/components/Filters/BooleanFilter.js +1 -2
  27. package/dist/components/Filters/CheckboxFilter.js +1 -2
  28. package/dist/components/Filters/DateFilter.js +1 -2
  29. package/dist/components/Filters/DateRangeFilter.js +1 -2
  30. package/dist/components/Filters/FilterModal.js +2 -3
  31. package/dist/components/Filters/MultiFilter.js +1 -2
  32. package/dist/components/Filters/NumberRangeFilter.js +1 -2
  33. package/dist/components/Filters/SingleFilter.js +2 -3
  34. package/dist/components/Filters/ToggleFilter.js +1 -2
  35. package/dist/components/Filters/TreeFilter.js +1 -2
  36. package/dist/components/Filters/index.d.ts +1 -1
  37. package/dist/components/Filters/index.js +3 -3
  38. package/dist/components/Filters/testDomain.js +3 -3
  39. package/dist/components/Filters/types.d.ts +0 -1
  40. package/dist/components/Filters/utils.js +2 -2
  41. package/dist/components/Grid/ResponsiveGrid.js +1 -2
  42. package/dist/components/Grid/ResponsiveGridItem.js +1 -2
  43. package/dist/components/Grid/useResponsiveGrid.js +1 -2
  44. package/dist/components/Grid/useResponsiveGridItem.js +1 -2
  45. package/dist/components/HbLoadingSpinner.js +3 -3
  46. package/dist/components/HelperText.js +1 -2
  47. package/dist/components/Icon.d.ts +2 -1
  48. package/dist/components/Icon.js +3 -2
  49. package/dist/components/IconButton.js +2 -2
  50. package/dist/components/Label.js +3 -3
  51. package/dist/components/Layout/FullBleed.js +1 -2
  52. package/dist/components/Layout/PreventBrowserScroll.js +1 -2
  53. package/dist/components/Layout/RightPaneLayout/RightPaneContext.js +3 -3
  54. package/dist/components/Layout/RightPaneLayout/RightPaneLayout.js +1 -2
  55. package/dist/components/Layout/RightPaneLayout/useRightPane.js +1 -2
  56. package/dist/components/Layout/ScrollableContent.js +1 -2
  57. package/dist/components/Layout/ScrollableParent.js +3 -3
  58. package/dist/components/Loader.js +1 -2
  59. package/dist/components/LoadingSkeleton.js +1 -2
  60. package/dist/components/MaxLines.js +3 -4
  61. package/dist/components/Modal/Modal.js +5 -6
  62. package/dist/components/Modal/ModalContext.js +3 -3
  63. package/dist/components/Modal/OpenModal.d.ts +0 -1
  64. package/dist/components/Modal/OpenModal.js +1 -2
  65. package/dist/components/Modal/TestModalContent.js +3 -4
  66. package/dist/components/Modal/useModal.js +1 -2
  67. package/dist/components/NavLink.js +2 -3
  68. package/dist/components/Pagination.js +4 -4
  69. package/dist/components/PresentationContext.js +3 -3
  70. package/dist/components/ScrollShadows.js +1 -2
  71. package/dist/components/Snackbar/Snackbar.js +1 -2
  72. package/dist/components/Snackbar/SnackbarContext.js +3 -3
  73. package/dist/components/Snackbar/SnackbarNotice.js +1 -2
  74. package/dist/components/Snackbar/useSnackbar.js +1 -2
  75. package/dist/components/Stepper.js +1 -2
  76. package/dist/components/SuperDrawer/ConfirmCloseModal.js +1 -2
  77. package/dist/components/SuperDrawer/SuperDrawer.js +1 -2
  78. package/dist/components/SuperDrawer/components/SuperDrawerHeader.js +1 -2
  79. package/dist/components/SuperDrawer/useSuperDrawer.js +1 -2
  80. package/dist/components/SuperDrawer/utils.js +1 -1
  81. package/dist/components/Table/GridTable.js +13 -16
  82. package/dist/components/Table/GridTableApi.js +3 -3
  83. package/dist/components/Table/TableActions.js +1 -2
  84. package/dist/components/Table/TableStyles.js +2 -2
  85. package/dist/components/Table/components/CollapseToggle.js +1 -2
  86. package/dist/components/Table/components/EditColumnsButton.js +1 -2
  87. package/dist/components/Table/components/ExpandableHeader.js +1 -2
  88. package/dist/components/Table/components/KeptGroupRow.js +1 -2
  89. package/dist/components/Table/components/SelectToggle.js +1 -2
  90. package/dist/components/Table/components/SortHeader.js +1 -2
  91. package/dist/components/Table/components/cell.js +1 -1
  92. package/dist/components/Table/hooks/useSetupColumnSizes.js +1 -2
  93. package/dist/components/Table/utils/ColumnState.js +1 -1
  94. package/dist/components/Table/utils/GridRowLookup.js +2 -3
  95. package/dist/components/Table/utils/RowState.d.ts +1 -1
  96. package/dist/components/Table/utils/RowState.js +1 -1
  97. package/dist/components/Table/utils/TableState.js +2 -2
  98. package/dist/components/Table/utils/columns.js +12 -12
  99. package/dist/components/Table/utils/simpleHelpers.js +2 -2
  100. package/dist/components/Table/utils/sortRows.js +4 -5
  101. package/dist/components/Table/utils/utils.js +15 -15
  102. package/dist/components/Table/utils/visitor.js +1 -2
  103. package/dist/components/Tabs.js +6 -7
  104. package/dist/components/Tag.d.ts +1 -1
  105. package/dist/components/Tag.js +6 -7
  106. package/dist/components/Toast/Toast.js +1 -2
  107. package/dist/components/Toast/ToastContext.js +3 -3
  108. package/dist/components/Toast/useToast.js +1 -2
  109. package/dist/components/ToggleChip.js +1 -2
  110. package/dist/components/ToggleChips.js +1 -2
  111. package/dist/components/Tooltip.js +7 -6
  112. package/dist/components/index.d.ts +1 -1
  113. package/dist/components/index.js +4 -4
  114. package/dist/components/internal/CompoundField.d.ts +0 -1
  115. package/dist/components/internal/CompoundField.js +1 -2
  116. package/dist/components/internal/ContextualModal.js +1 -2
  117. package/dist/components/internal/DatePicker/DatePicker.js +1 -2
  118. package/dist/components/internal/DatePicker/DatePickerOverlay.js +1 -2
  119. package/dist/components/internal/DatePicker/DateRangePicker.js +1 -2
  120. package/dist/components/internal/DatePicker/Day.js +1 -2
  121. package/dist/components/internal/DatePicker/Header.js +2 -3
  122. package/dist/components/internal/DatePicker/WeekHeader.js +1 -2
  123. package/dist/components/internal/Menu.js +1 -2
  124. package/dist/components/internal/MenuItem.js +1 -2
  125. package/dist/components/internal/MenuSection.js +1 -2
  126. package/dist/components/internal/OverlayTrigger.js +5 -6
  127. package/dist/components/internal/Popover.js +2 -3
  128. package/dist/components/testData.js +2 -2
  129. package/dist/forms/BoundCheckboxField.js +1 -2
  130. package/dist/forms/BoundCheckboxGroupField.js +1 -2
  131. package/dist/forms/BoundChipSelectField.d.ts +0 -1
  132. package/dist/forms/BoundChipSelectField.js +1 -2
  133. package/dist/forms/BoundDateField.js +1 -2
  134. package/dist/forms/BoundDateRangeField.js +1 -2
  135. package/dist/forms/BoundIconCardField.d.ts +1 -1
  136. package/dist/forms/BoundIconCardField.js +3 -4
  137. package/dist/forms/BoundIconCardGroupField.d.ts +1 -1
  138. package/dist/forms/BoundIconCardGroupField.js +1 -2
  139. package/dist/forms/BoundMultiLineSelectField.d.ts +0 -1
  140. package/dist/forms/BoundMultiLineSelectField.js +1 -2
  141. package/dist/forms/BoundMultiSelectField.d.ts +0 -1
  142. package/dist/forms/BoundMultiSelectField.js +1 -2
  143. package/dist/forms/BoundNumberField.js +1 -2
  144. package/dist/forms/BoundRadioGroupField.js +1 -2
  145. package/dist/forms/BoundRichTextField.js +1 -2
  146. package/dist/forms/BoundSelectAndTextField.d.ts +0 -1
  147. package/dist/forms/BoundSelectAndTextField.js +1 -2
  148. package/dist/forms/BoundSelectField.d.ts +0 -1
  149. package/dist/forms/BoundSelectField.js +2 -3
  150. package/dist/forms/BoundSwitchField.js +1 -2
  151. package/dist/forms/BoundTextAreaField.js +1 -2
  152. package/dist/forms/BoundTextField.js +1 -2
  153. package/dist/forms/BoundToggleChipGroupField.js +1 -2
  154. package/dist/forms/BoundTreeSelectField.d.ts +0 -1
  155. package/dist/forms/BoundTreeSelectField.js +1 -2
  156. package/dist/forms/FormHeading.js +1 -2
  157. package/dist/forms/FormLines.js +4 -5
  158. package/dist/forms/FormStateApp.js +3 -3
  159. package/dist/forms/StaticField.js +1 -2
  160. package/dist/forms/StepperFormApp.js +1 -2
  161. package/dist/forms/SubmitButton.js +1 -2
  162. package/dist/forms/formStateDomain.js +1 -1
  163. package/dist/forms/index.d.ts +2 -2
  164. package/dist/forms/index.js +2 -2
  165. package/dist/forms/labelUtils.js +1 -2
  166. package/dist/hooks/useBreakpoint.js +1 -2
  167. package/dist/hooks/useComputed.d.ts +42 -1
  168. package/dist/hooks/useComputed.js +43 -3
  169. package/dist/hooks/useFilter.js +1 -2
  170. package/dist/hooks/useGroupBy.js +1 -2
  171. package/dist/hooks/useHover.js +1 -2
  172. package/dist/hooks/usePersistedFilter.js +2 -3
  173. package/dist/hooks/useQueryState.js +1 -2
  174. package/dist/hooks/useRenderCount.js +1 -2
  175. package/dist/hooks/useSessionStorage.js +1 -2
  176. package/dist/inputs/Autocomplete.js +1 -2
  177. package/dist/inputs/Checkbox.js +1 -2
  178. package/dist/inputs/CheckboxBase.js +2 -3
  179. package/dist/inputs/CheckboxGroup.js +1 -2
  180. package/dist/inputs/ChipSelectField.js +5 -5
  181. package/dist/inputs/ChipTextField.js +1 -2
  182. package/dist/inputs/DateFields/DateField.js +1 -2
  183. package/dist/inputs/DateFields/DateField.mock.js +1 -2
  184. package/dist/inputs/DateFields/DateFieldBase.js +2 -3
  185. package/dist/inputs/DateFields/DateRangeField.js +1 -2
  186. package/dist/inputs/DateFields/utils.js +7 -7
  187. package/dist/inputs/ErrorMessage.js +1 -2
  188. package/dist/inputs/IconCard.js +2 -2
  189. package/dist/inputs/IconCardGroup.js +5 -6
  190. package/dist/inputs/MultiLineSelectField.d.ts +0 -1
  191. package/dist/inputs/MultiLineSelectField.js +1 -2
  192. package/dist/inputs/MultiSelectField.js +1 -2
  193. package/dist/inputs/NumberField.js +2 -3
  194. package/dist/inputs/RadioGroupField.js +2 -2
  195. package/dist/inputs/RichTextField.d.ts +1 -1
  196. package/dist/inputs/RichTextField.js +2 -3
  197. package/dist/inputs/RichTextField.mock.js +1 -2
  198. package/dist/inputs/SelectField.d.ts +0 -1
  199. package/dist/inputs/SelectField.js +1 -2
  200. package/dist/inputs/Switch.js +3 -3
  201. package/dist/inputs/SwitchGroup.js +1 -2
  202. package/dist/inputs/TextAreaField.js +1 -2
  203. package/dist/inputs/TextField.js +1 -2
  204. package/dist/inputs/TextFieldBase.js +2 -3
  205. package/dist/inputs/ToggleButton.js +2 -2
  206. package/dist/inputs/ToggleChipGroup.d.ts +1 -1
  207. package/dist/inputs/ToggleChipGroup.js +2 -3
  208. package/dist/inputs/TreeSelectField/TreeOption.js +1 -2
  209. package/dist/inputs/TreeSelectField/TreeSelectField.js +5 -5
  210. package/dist/inputs/TreeSelectField/utils.js +5 -6
  211. package/dist/inputs/Value.js +2 -3
  212. package/dist/inputs/hooks/useGrowingTextField.js +1 -2
  213. package/dist/inputs/index.d.ts +1 -1
  214. package/dist/inputs/index.js +1 -1
  215. package/dist/inputs/internal/ComboBoxBase.js +6 -6
  216. package/dist/inputs/internal/ComboBoxInput.js +2 -3
  217. package/dist/inputs/internal/ListBox.js +1 -2
  218. package/dist/inputs/internal/ListBoxChip.js +1 -2
  219. package/dist/inputs/internal/ListBoxSection.js +1 -2
  220. package/dist/inputs/internal/ListBoxToggleChip.js +1 -2
  221. package/dist/inputs/internal/LoadingDots.js +1 -2
  222. package/dist/inputs/internal/MenuSearchField.js +1 -2
  223. package/dist/inputs/internal/Option.js +1 -2
  224. package/dist/inputs/internal/VirtualizedOptions.d.ts +0 -1
  225. package/dist/inputs/internal/VirtualizedOptions.js +1 -2
  226. package/dist/inputs/utils.js +1 -2
  227. package/dist/types.js +1 -2
  228. package/dist/utils/defaultLabel.js +1 -2
  229. package/dist/utils/defaultTestId.js +1 -2
  230. package/dist/utils/getInteractiveElement.js +1 -2
  231. package/dist/utils/index.js +12 -12
  232. package/dist/utils/options.js +2 -3
  233. package/dist/utils/rtl.d.ts +2 -3
  234. package/dist/utils/rtl.js +13 -13
  235. package/dist/utils/sb.d.ts +3 -3
  236. package/dist/utils/sb.js +7 -7
  237. package/dist/utils/shallowEqual.js +1 -2
  238. package/dist/utils/useTestIds.js +2 -3
  239. package/package.json +38 -45
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RichTextField = void 0;
3
+ exports.RichTextField = RichTextField;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
5
  const change_case_1 = require("change-case");
6
6
  const react_1 = require("react");
@@ -16,7 +16,6 @@ function RichTextField(props) {
16
16
  props.onChange(value, value, props.mergeTags || []);
17
17
  }, onBlur: onBlur, onFocus: onFocus, readOnly: readOnly, ...tid }));
18
18
  }
19
- exports.RichTextField = RichTextField;
20
19
  function defaultTestId(label) {
21
20
  return (0, change_case_1.camelCase)(label);
22
21
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Value } from "./";
3
2
  import { ComboBoxBaseProps } from "./internal/ComboBoxBase";
4
3
  import { HasIdIsh, HasNameIsh, Optional } from "../types";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SelectField = void 0;
3
+ exports.SelectField = SelectField;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const ComboBoxBase_1 = require("./internal/ComboBoxBase");
@@ -16,4 +16,3 @@ function SelectField(props) {
16
16
  }
17
17
  } }));
18
18
  }
19
- exports.SelectField = SelectField;
@@ -1,15 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.switchSelectedHoverStyles = exports.switchFocusStyles = exports.switchHoverStyles = exports.Switch = void 0;
3
+ exports.switchSelectedHoverStyles = exports.switchFocusStyles = exports.switchHoverStyles = void 0;
4
+ exports.Switch = Switch;
4
5
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
6
  const react_1 = require("react");
6
7
  const react_aria_1 = require("react-aria");
7
8
  const components_1 = require("../components");
8
9
  const Label_1 = require("../components/Label");
10
+ const PresentationContext_1 = require("../components/PresentationContext");
9
11
  const Css_1 = require("../Css");
10
12
  const Icon_1 = require("../components/Icon");
11
13
  const utils_1 = require("../utils");
12
- const PresentationContext_1 = require("../components/PresentationContext");
13
14
  function Switch(props) {
14
15
  const { fieldProps } = (0, PresentationContext_1.usePresentationContext)();
15
16
  const { labelLeftFieldWidth = "50%" } = fieldProps !== null && fieldProps !== void 0 ? fieldProps : {};
@@ -44,7 +45,6 @@ function Switch(props) {
44
45
  ...(isSelected && switchCircleSelectedStyles(compact)),
45
46
  }, children: withIcon && ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { icon: isSelected ? "check" : "x", color: isSelected ? Css_1.Palette.Blue700 : Css_1.Palette.Gray400 })) }) }) }), labelStyle === "inline" && ((0, jsx_runtime_1.jsx)(Label_1.Label, { label: label, tooltip: tooltip, inline: true, xss: Css_1.Css.smMd.gray900.if(compact).add("lineHeight", "1").$ })), (0, jsx_runtime_1.jsx)(react_aria_1.VisuallyHidden, { children: (0, jsx_runtime_1.jsx)("input", { ref: ref, ...inputProps, ...focusProps, ...tid }) })] }));
46
47
  }
47
- exports.Switch = Switch;
48
48
  /** Styles */
49
49
  // Element sizes
50
50
  const toggleHeight = (isCompact) => (isCompact ? 16 : 24);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SwitchGroup = void 0;
3
+ exports.SwitchGroup = SwitchGroup;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
5
  const react_aria_1 = require("react-aria");
6
6
  const Css_1 = require("../Css");
@@ -21,4 +21,3 @@ function SwitchGroup(props) {
21
21
  const { isSelected, addValue, removeValue } = groupState;
22
22
  return ((0, jsx_runtime_1.jsxs)("fieldset", { ...groupProps, children: [(0, jsx_runtime_1.jsx)("legend", { ...labelProps, css: Css_1.Css.sm.gray500.mb1.$, children: label }), (0, jsx_runtime_1.jsx)("div", { css: Css_1.Css.df.fdc.gap2.$, children: options.map(({ label, value }) => ((0, jsx_runtime_1.jsx)(Switch_1.Switch, { compact: compact, label: label, onChange: (isSelected) => (isSelected ? addValue(value) : removeValue(value)), selected: isSelected(value), withIcon: withIcon }, value))) })] }));
23
23
  }
24
- exports.SwitchGroup = SwitchGroup;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextAreaField = void 0;
3
+ exports.TextAreaField = TextAreaField;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const react_aria_1 = require("react-aria");
@@ -41,4 +41,3 @@ function TextAreaField(props) {
41
41
  }, inputRef);
42
42
  return ((0, jsx_runtime_1.jsx)(TextFieldBase_1.TextFieldBase, { ...(0, react_aria_1.mergeProps)(otherProps, { onBlur, onFocus }), multiline: true, labelProps: labelProps, inputProps: inputProps, inputRef: inputRef, inputWrapRef: inputWrapRef, textAreaMinHeight: preventNewLines ? 0 : undefined, tooltip: (0, components_1.resolveTooltip)(disabled, undefined, readOnly) }));
43
43
  }
44
- exports.TextAreaField = TextAreaField;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextField = void 0;
3
+ exports.TextField = TextField;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const react_aria_1 = require("react-aria");
@@ -42,4 +42,3 @@ function TextField(props) {
42
42
  }
43
43
  return ((0, jsx_runtime_1.jsx)(TextFieldBase_1.TextFieldBase, { ...(0, react_aria_1.mergeProps)(textFieldProps, { onBlur, onFocus }), errorMsg: errorMsg, required: required, labelProps: labelProps, inputProps: inputProps, inputRef: inputRef, tooltip: (0, components_1.resolveTooltip)(disabled, undefined, readOnly), hideErrorMessage: hideErrorMessage }));
44
44
  }
45
- exports.TextField = TextField;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextFieldBase = void 0;
3
+ exports.TextFieldBase = TextFieldBase;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const react_aria_1 = require("react-aria");
@@ -12,9 +12,9 @@ const Css_1 = require("../Css");
12
12
  const labelUtils_1 = require("../forms/labelUtils");
13
13
  const useGetRef_1 = require("../hooks/useGetRef");
14
14
  const ErrorMessage_1 = require("./ErrorMessage");
15
+ const utils_1 = require("./utils");
15
16
  const defaultTestId_1 = require("../utils/defaultTestId");
16
17
  const useTestIds_1 = require("../utils/useTestIds");
17
- const utils_1 = require("./utils");
18
18
  // Used by both TextField and TextArea
19
19
  function TextFieldBase(props) {
20
20
  var _a, _b, _c, _d, _e, _f, _g, _h;
@@ -164,4 +164,3 @@ function TextFieldBase(props) {
164
164
  // Reduces the margin between the error/helper text and input field
165
165
  (0, jsx_runtime_1.jsxs)("div", { css: Css_1.Css.mtPx(-8).$, children: [errorMsg && !errorInTooltip && ((0, jsx_runtime_1.jsx)(ErrorMessage_1.ErrorMessage, { id: errorMessageId, errorMsg: errorMsg, hidden: hideErrorMessage, ...tid.errorMsg })), helperText && (0, jsx_runtime_1.jsx)(HelperText_1.HelperText, { helperText: helperText, ...tid.helperText })] }))] }));
166
166
  }
167
- exports.TextFieldBase = TextFieldBase;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.togglePressStyles = exports.toggleFocusStyles = exports.toggleHoverStyles = exports.ToggleButton = void 0;
3
+ exports.togglePressStyles = exports.toggleFocusStyles = exports.toggleHoverStyles = void 0;
4
+ exports.ToggleButton = ToggleButton;
4
5
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
6
  const react_1 = require("react");
6
7
  const react_aria_1 = require("react-aria");
@@ -53,7 +54,6 @@ function ToggleButton(props) {
53
54
  children: ((0, jsx_runtime_1.jsxs)("label", { ...labelAttrs, children: [icon && (0, jsx_runtime_1.jsx)(components_1.Icon, { icon: icon }), label, (0, jsx_runtime_1.jsx)(react_aria_1.VisuallyHidden, { children: (0, jsx_runtime_1.jsx)("input", { ref: ref, ...inputProps, ...tid.value }) })] })),
54
55
  });
55
56
  }
56
- exports.ToggleButton = ToggleButton;
57
57
  /** Styles */
58
58
  // Toggle element styles
59
59
  exports.toggleHoverStyles = Css_1.Css.bgGray100.$;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from "react";
2
- import { Xss } from "../Css";
3
2
  import { PresentationFieldProps } from "../components/PresentationContext";
3
+ import { Xss } from "../Css";
4
4
  type ToggleChipXss = Xss<"color" | "backgroundColor">;
5
5
  type ToggleChipItemProps = {
6
6
  label: string;
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ToggleChipGroup = void 0;
3
+ exports.ToggleChipGroup = ToggleChipGroup;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const react_aria_1 = require("react-aria");
7
7
  const react_stately_1 = require("react-stately");
8
8
  const components_1 = require("../components");
9
9
  const Label_1 = require("../components/Label");
10
+ const PresentationContext_1 = require("../components/PresentationContext");
10
11
  const Css_1 = require("../Css");
11
12
  const useTestIds_1 = require("../utils/useTestIds");
12
- const PresentationContext_1 = require("../components/PresentationContext");
13
13
  function ToggleChipGroup(props) {
14
14
  var _a;
15
15
  const { fieldProps } = (0, PresentationContext_1.usePresentationContext)();
@@ -23,7 +23,6 @@ function ToggleChipGroup(props) {
23
23
  .if(labelStyle === "left")
24
24
  .w(labelLeftFieldWidth).$, children: options.map((o) => ((0, jsx_runtime_1.jsx)(ToggleChip, { value: o.value, groupState: state, selected: state.value.includes(o.value), label: o.label, disabled: o.disabled, startAdornment: o.startAdornment, xss: xss, ...tid[o.value] }, o.value))) })] }));
25
25
  }
26
- exports.ToggleChipGroup = ToggleChipGroup;
27
26
  function ToggleChip(props) {
28
27
  var _a, _b, _c;
29
28
  const { label, value, groupState, selected: isSelected, disabled = false, startAdornment, xss, ...others } = props;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TreeOption = void 0;
3
+ exports.TreeOption = TreeOption;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const react_aria_1 = require("react-aria");
@@ -55,7 +55,6 @@ function TreeOption(props) {
55
55
  return false;
56
56
  }, css: Css_1.Css.br4.hPx(16).wPx(16).bgTransparent.onHover.bgGray300.$, ...tid[`collapseToggle_${item.key}`], children: (0, jsx_runtime_1.jsx)(components_1.Icon, { icon: collapsedKeys.includes(item.key) ? "triangleRight" : "triangleDown", inc: 2 }) })) })), (0, jsx_runtime_1.jsxs)("span", { css: Css_1.Css.df.aic.gap1.h100.fg1.py1.pr2.$, ref: ref, ...optionProps, "data-label": item.textValue, children: [(0, jsx_runtime_1.jsx)(CheckboxBase_1.StyledCheckbox, { isDisabled: isDisabled, isSelected: isSelected, isIndeterminate: isIndeterminate, ...tid[item.key.toString()] }), (0, jsx_runtime_1.jsx)("div", { css: Css_1.Css.pl1.$, children: item.rendered })] })] }));
57
57
  }
58
- exports.TreeOption = TreeOption;
59
58
  function hasSelectedChildren(childOption, state, getOptionValue) {
60
59
  if (childOption.children && childOption.children.length > 0) {
61
60
  return childOption.children.some((child) => hasSelectedChildren(child, state, getOptionValue));
@@ -23,7 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.CollapsedContext = exports.useTreeSelectFieldProvider = exports.TreeSelectField = void 0;
26
+ exports.CollapsedContext = void 0;
27
+ exports.TreeSelectField = TreeSelectField;
28
+ exports.useTreeSelectFieldProvider = useTreeSelectFieldProvider;
27
29
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
28
30
  const react_1 = __importStar(require("react"));
29
31
  const react_aria_1 = require("react-aria");
@@ -32,12 +34,12 @@ const components_1 = require("../../components");
32
34
  const internal_1 = require("../../components/internal");
33
35
  const PresentationContext_1 = require("../../components/PresentationContext");
34
36
  const Css_1 = require("../../Css");
37
+ const ComboBoxBase_1 = require("../internal/ComboBoxBase");
35
38
  const ComboBoxInput_1 = require("../internal/ComboBoxInput");
36
39
  const ListBox_1 = require("../internal/ListBox");
37
40
  const utils_1 = require("./utils");
38
- const Value_1 = require("../Value");
39
41
  const utils_2 = require("../utils");
40
- const ComboBoxBase_1 = require("../internal/ComboBoxBase");
42
+ const Value_1 = require("../Value");
41
43
  function TreeSelectField(props) {
42
44
  const { getOptionValue = (opt) => opt.id, // if unset, assume O implements HasId
43
45
  getOptionLabel = (opt) => opt.name, // if unset, assume O implements HasName
@@ -63,11 +65,9 @@ function TreeSelectField(props) {
63
65
  onSelect({ all, leaf, root });
64
66
  } }) }));
65
67
  }
66
- exports.TreeSelectField = TreeSelectField;
67
68
  function useTreeSelectFieldProvider() {
68
69
  return (0, react_1.useContext)(exports.CollapsedContext);
69
70
  }
70
- exports.useTreeSelectFieldProvider = useTreeSelectFieldProvider;
71
71
  // create the context to hold the collapsed state, default should be false
72
72
  exports.CollapsedContext = react_1.default.createContext({
73
73
  collapsedKeys: [],
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isLeveledNode = exports.isLeveledOption = exports.flattenOptions = exports.findOptions = exports.findOption = void 0;
3
+ exports.findOption = findOption;
4
+ exports.findOptions = findOptions;
5
+ exports.flattenOptions = flattenOptions;
6
+ exports.isLeveledOption = isLeveledOption;
7
+ exports.isLeveledNode = isLeveledNode;
4
8
  /** Finds first option by Key, and returns it + any parents. */
5
9
  function findOption(options, key, getOptionValue) {
6
10
  // This is technically an array of "maybe FoundOption"
@@ -17,7 +21,6 @@ function findOption(options, key, getOptionValue) {
17
21
  }
18
22
  return undefined;
19
23
  }
20
- exports.findOption = findOption;
21
24
  /** Finds all options by Key, and returns it + any parents. */
22
25
  function findOptions(options, key, getOptionValue) {
23
26
  // This is technically an array of "maybe FoundOption"
@@ -35,17 +38,13 @@ function findOptions(options, key, getOptionValue) {
35
38
  }
36
39
  return found;
37
40
  }
38
- exports.findOptions = findOptions;
39
41
  function flattenOptions(o) {
40
42
  var _a;
41
43
  return [o, ...(((_a = o.children) === null || _a === void 0 ? void 0 : _a.length) ? o.children.flatMap((oc) => flattenOptions(oc)) : [])];
42
44
  }
43
- exports.flattenOptions = flattenOptions;
44
45
  function isLeveledOption(option) {
45
46
  return Array.isArray(option) && option.length === 2 && typeof option[1] === "number";
46
47
  }
47
- exports.isLeveledOption = isLeveledOption;
48
48
  function isLeveledNode(node) {
49
49
  return isLeveledOption(node.value);
50
50
  }
51
- exports.isLeveledNode = isLeveledNode;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.valueToKey = exports.keyToValue = void 0;
3
+ exports.keyToValue = keyToValue;
4
+ exports.valueToKey = valueToKey;
4
5
  function keyToValue(key) {
5
6
  if (typeof key === "number") {
6
7
  // react-aria's selection manager always returns strings, so we probably
@@ -28,7 +29,6 @@ function keyToValue(key) {
28
29
  throw new Error(`Unsupported key ${key}`);
29
30
  }
30
31
  }
31
- exports.keyToValue = keyToValue;
32
32
  function valueToKey(value) {
33
33
  if (typeof value === "string") {
34
34
  return value;
@@ -51,4 +51,3 @@ function valueToKey(value) {
51
51
  throw new Error(`Unsupported value ${value}`);
52
52
  }
53
53
  }
54
- exports.valueToKey = valueToKey;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useGrowingTextField = void 0;
3
+ exports.useGrowingTextField = useGrowingTextField;
4
4
  const utils_1 = require("@react-aria/utils");
5
5
  const react_1 = require("react");
6
6
  function useGrowingTextField({ inputRef, inputWrapRef, value, disabled }) {
@@ -39,4 +39,3 @@ function useGrowingTextField({ inputRef, inputWrapRef, value, disabled }) {
39
39
  }
40
40
  }, [onHeightChange, value, inputRef, disabled, inputWrapRef]);
41
41
  }
42
- exports.useGrowingTextField = useGrowingTextField;
@@ -4,6 +4,7 @@ export * from "./CheckboxGroup";
4
4
  export * from "./ChipSelectField";
5
5
  export * from "./DateFields";
6
6
  export * from "./ErrorMessage";
7
+ export * from "./IconCard";
7
8
  export * from "./MultiLineSelectField";
8
9
  export * from "./MultiSelectField";
9
10
  export * from "./NumberField";
@@ -19,5 +20,4 @@ export type { TextFieldApi } from "./TextField";
19
20
  export * from "./ToggleButton";
20
21
  export * from "./ToggleChipGroup";
21
22
  export * from "./TreeSelectField";
22
- export * from "./IconCard";
23
23
  export type { Value } from "./Value";
@@ -21,6 +21,7 @@ __exportStar(require("./CheckboxGroup"), exports);
21
21
  __exportStar(require("./ChipSelectField"), exports);
22
22
  __exportStar(require("./DateFields"), exports);
23
23
  __exportStar(require("./ErrorMessage"), exports);
24
+ __exportStar(require("./IconCard"), exports);
24
25
  __exportStar(require("./MultiLineSelectField"), exports);
25
26
  __exportStar(require("./MultiSelectField"), exports);
26
27
  __exportStar(require("./NumberField"), exports);
@@ -34,4 +35,3 @@ __exportStar(require("./TextField"), exports);
34
35
  __exportStar(require("./ToggleButton"), exports);
35
36
  __exportStar(require("./ToggleChipGroup"), exports);
36
37
  __exportStar(require("./TreeSelectField"), exports);
37
- __exportStar(require("./IconCard"), exports);
@@ -3,8 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.disabledOptionToKeyedTuple = exports.addNewOption = exports.unsetOption = exports.initializeOptions = exports.ComboBoxBase = void 0;
6
+ exports.addNewOption = exports.unsetOption = void 0;
7
+ exports.ComboBoxBase = ComboBoxBase;
8
+ exports.initializeOptions = initializeOptions;
9
+ exports.disabledOptionToKeyedTuple = disabledOptionToKeyedTuple;
7
10
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
11
+ const fast_deep_equal_1 = __importDefault(require("fast-deep-equal"));
8
12
  const react_1 = require("react");
9
13
  const react_aria_1 = require("react-aria");
10
14
  const react_stately_1 = require("react-stately");
@@ -14,10 +18,9 @@ const PresentationContext_1 = require("../../components/PresentationContext");
14
18
  const Css_1 = require("../../Css");
15
19
  const ComboBoxInput_1 = require("./ComboBoxInput");
16
20
  const ListBox_1 = require("./ListBox");
17
- const Value_1 = require("../Value");
18
21
  const utils_1 = require("../utils");
22
+ const Value_1 = require("../Value");
19
23
  const use_debounce_1 = require("use-debounce");
20
- const fast_deep_equal_1 = __importDefault(require("fast-deep-equal"));
21
24
  /**
22
25
  * Provides a non-native select/dropdown widget that allows the user to type to filter the options.
23
26
  *
@@ -251,7 +254,6 @@ function ComboBoxBase(props) {
251
254
  const fieldMaxWidth = (0, utils_1.getFieldWidth)(fullWidth);
252
255
  return ((0, jsx_runtime_1.jsxs)("div", { css: Css_1.Css.df.fdc.w100.maxw(fieldMaxWidth).if(labelStyle === "left").maxw100.$, ref: comboBoxRef, children: [(0, jsx_runtime_1.jsx)(ComboBoxInput_1.ComboBoxInput, { ...otherProps, fullWidth: fullWidth, buttonProps: buttonProps, buttonRef: triggerRef, inputProps: inputProps, inputRef: inputRef, inputWrapRef: inputWrapRef, listBoxRef: listBoxRef, state: state, labelProps: labelProps, selectedOptions: selectedOptions, getOptionValue: getOptionValue, getOptionLabel: getOptionLabel, contrast: contrast, nothingSelectedText: nothingSelectedText, borderless: borderless, tooltip: (0, components_1.resolveTooltip)(disabled, undefined, readOnly), resetField: resetField }), state.isOpen && ((0, jsx_runtime_1.jsx)(internal_1.Popover, { triggerRef: triggerRef, popoverRef: popoverRef, positionProps: positionProps, onClose: () => state.close(), isOpen: state.isOpen, minWidth: 200, children: (0, jsx_runtime_1.jsx)(ListBox_1.ListBox, { ...listBoxProps, positionProps: positionProps, state: state, listBoxRef: listBoxRef, selectedOptions: selectedOptions, getOptionLabel: getOptionLabel, getOptionValue: (o) => (0, Value_1.valueToKey)(getOptionValue(o)), contrast: contrast, horizontalLayout: labelStyle === "left", loading: fieldState.optionsLoading, disabledOptionsWithReasons: disabledOptionsWithReasons }) }))] }));
253
256
  }
254
- exports.ComboBoxBase = ComboBoxBase;
255
257
  function getInputValue(selectedOptions, getOptionLabel, multiselect, nothingSelectedText, readOnly) {
256
258
  return selectedOptions.length === 1
257
259
  ? getOptionLabel(selectedOptions[0])
@@ -292,7 +294,6 @@ function initializeOptions(optionsOrLoad, getOptionValue, unsetLabel, addNew) {
292
294
  }
293
295
  return opts;
294
296
  }
295
- exports.initializeOptions = initializeOptions;
296
297
  /** A marker option to automatically add an "Unset" option to the start of options. */
297
298
  exports.unsetOption = {};
298
299
  exports.addNewOption = { id: "new", name: "Add New" };
@@ -304,4 +305,3 @@ function disabledOptionToKeyedTuple(disabledOption) {
304
305
  return [(0, Value_1.valueToKey)(disabledOption), undefined];
305
306
  }
306
307
  }
307
- exports.disabledOptionToKeyedTuple = disabledOptionToKeyedTuple;
@@ -1,17 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ComboBoxInput = void 0;
3
+ exports.ComboBoxInput = ComboBoxInput;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const react_aria_1 = require("react-aria");
7
7
  const components_1 = require("../../components");
8
8
  const PresentationContext_1 = require("../../components/PresentationContext");
9
9
  const Css_1 = require("../../Css");
10
+ const useGrowingTextField_1 = require("../hooks/useGrowingTextField");
10
11
  const TextFieldBase_1 = require("../TextFieldBase");
11
12
  const TreeSelectField_1 = require("../TreeSelectField/TreeSelectField");
12
13
  const utils_1 = require("../TreeSelectField/utils");
13
14
  const utils_2 = require("../../utils");
14
- const useGrowingTextField_1 = require("../hooks/useGrowingTextField");
15
15
  function ComboBoxInput(props) {
16
16
  const { inputProps, buttonProps, buttonRef, errorMsg, state, fieldDecoration, onBlur, onFocus, selectedOptions, selectedOptionsLabels, getOptionValue, getOptionLabel, sizeToContent = false, contrast = false, nothingSelectedText, resetField, isTree, listBoxRef, inputRef, inputWrapRef, multiline = false, ...otherProps } = props;
17
17
  const { wrap = false } = (0, PresentationContext_1.usePresentationContext)();
@@ -150,7 +150,6 @@ function ComboBoxInput(props) {
150
150
  },
151
151
  } }));
152
152
  }
153
- exports.ComboBoxInput = ComboBoxInput;
154
153
  function SelectedOptionBullets({ labels = [] }) {
155
154
  return (0, jsx_runtime_1.jsx)("div", { children: labels === null || labels === void 0 ? void 0 : labels.map((label) => (0, jsx_runtime_1.jsx)("li", { children: label }, label)) });
156
155
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListBox = void 0;
3
+ exports.ListBox = ListBox;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const react_aria_1 = require("react-aria");
@@ -66,6 +66,5 @@ function ListBox(props) {
66
66
  // Only scroll on focus if using VirtualFocus (used for ComboBoxState (SelectField), but not SelectState (ChipSelectField))
67
67
  scrollOnFocus: props.shouldUseVirtualFocus, loading: loading, disabledOptionsWithReasons: disabledOptionsWithReasons, isTree: isTree, allowCollapsing: allowCollapsing })) })] }));
68
68
  }
69
- exports.ListBox = ListBox;
70
69
  // UX specified maximum height for a ListBox (in pixels)
71
70
  const maxPopoverHeight = 512;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListBoxChip = void 0;
3
+ exports.ListBoxChip = ListBoxChip;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
5
  const PresentationContext_1 = require("../../components/PresentationContext");
6
6
  const Css_1 = require("../../Css");
@@ -9,4 +9,3 @@ function ListBoxChip({ label }) {
9
9
  const { fieldProps } = (0, PresentationContext_1.usePresentationContext)();
10
10
  return ((0, jsx_runtime_1.jsx)("span", { css: Css_1.Css[(_a = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.typeScale) !== null && _a !== void 0 ? _a : "sm"].tal.bgGray300.gray900.br16.pxPx(10).pyPx(2).lineClamp1.wbba.$, title: label, children: label }));
11
11
  }
12
- exports.ListBoxChip = ListBoxChip;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListBoxSection = void 0;
3
+ exports.ListBoxSection = ListBoxSection;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
5
  const react_aria_1 = require("react-aria");
6
6
  const Css_1 = require("../../Css");
@@ -17,4 +17,3 @@ function ListBoxSection(props) {
17
17
  const childNodes = [...section.childNodes];
18
18
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isPersistentSection && (0, jsx_runtime_1.jsx)("li", { ...separatorProps, css: Css_1.Css.bt.bcGray200.$ }), (0, jsx_runtime_1.jsx)("li", { ...itemProps, css: Css_1.Css.if(!isPersistentSection).oa.$, children: (0, jsx_runtime_1.jsx)("ul", { css: Css_1.Css.listReset.if(!isPersistentSection).hPx(popoverHeight - constants_1.sectionSeparatorHeight - constants_1.persistentItemHeight).$, ...groupProps, children: isPersistentSection ? (childNodes.map((item) => ((0, jsx_runtime_1.jsx)(Option_1.Option, { item: item, state: state, contrast: contrast, disabledReason: disabledOptionsWithReasons[item.key] }, item.key)))) : ((0, jsx_runtime_1.jsx)(VirtualizedOptions_1.VirtualizedOptions, { state: state, items: childNodes, onListHeightChange: onListHeightChange, contrast: contrast, scrollOnFocus: scrollOnFocus, disabledOptionsWithReasons: disabledOptionsWithReasons })) }) })] }));
19
19
  }
20
- exports.ListBoxSection = ListBoxSection;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListBoxToggleChip = void 0;
3
+ exports.ListBoxToggleChip = ListBoxToggleChip;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
5
  const components_1 = require("../../components");
6
6
  const Css_1 = require("../../Css");
@@ -11,4 +11,3 @@ function ListBoxToggleChip(props) {
11
11
  state.selectionManager.toggleSelection(String(getOptionValue(option)));
12
12
  }, disabled: disabled }) }));
13
13
  }
14
- exports.ListBoxToggleChip = ListBoxToggleChip;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LoadingDots = void 0;
3
+ exports.LoadingDots = LoadingDots;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
5
  const Css_1 = require("../../Css");
6
6
  const utils_1 = require("../../utils");
@@ -26,4 +26,3 @@ function LoadingDots({ contrast }) {
26
26
  .addIn("&:after", Css_1.Css.rightPx(-12).add("animationDelay", "600ms").$).$,
27
27
  } }) }));
28
28
  }
29
- exports.LoadingDots = LoadingDots;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MenuSearchField = void 0;
3
+ exports.MenuSearchField = MenuSearchField;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
5
  const textfield_1 = require("@react-aria/textfield");
6
6
  const react_1 = require("react");
@@ -13,4 +13,3 @@ function MenuSearchField(props) {
13
13
  const { labelProps, inputProps } = (0, textfield_1.useTextField)({ ...props }, inputRef);
14
14
  return ((0, jsx_runtime_1.jsx)(TextFieldBase_1.TextFieldBase, { label: "", labelProps: labelProps, inputProps: inputProps, startAdornment: (0, jsx_runtime_1.jsx)(components_1.Icon, { icon: "search" }), ...tid.search }));
15
15
  }
16
- exports.MenuSearchField = MenuSearchField;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Option = void 0;
3
+ exports.Option = Option;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const react_aria_1 = require("react-aria");
@@ -42,4 +42,3 @@ function Option(props) {
42
42
  : Css_1.Palette.White }) }))] })),
43
43
  });
44
44
  }
45
- exports.Option = Option;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Node } from "@react-types/shared";
3
2
  import { SelectState } from "react-stately";
4
3
  import { LeveledOption } from "../TreeSelectField/utils";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VirtualizedOptions = void 0;
3
+ exports.VirtualizedOptions = VirtualizedOptions;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const react_virtuoso_1 = require("react-virtuoso");
@@ -58,4 +58,3 @@ function VirtualizedOptions(props) {
58
58
  Footer: typeof loading === "function" ? loading : () => (0, jsx_runtime_1.jsx)(LoadingDots_1.LoadingDots, { contrast: contrast }),
59
59
  } }));
60
60
  }
61
- exports.VirtualizedOptions = VirtualizedOptions;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getFieldWidth = void 0;
3
+ exports.getFieldWidth = getFieldWidth;
4
4
  function getFieldWidth(fullWidth) {
5
5
  return fullWidth ? "100%" : "550px";
6
6
  }
7
- exports.getFieldWidth = getFieldWidth;
package/dist/types.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.assertNever = void 0;
3
+ exports.assertNever = assertNever;
4
4
  function assertNever(x) {
5
5
  throw new Error("Unexpected object: " + x);
6
6
  }
7
- exports.assertNever = assertNever;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultLabel = void 0;
3
+ exports.defaultLabel = defaultLabel;
4
4
  const change_case_1 = require("change-case");
5
5
  /**
6
6
  * Guesses a label based on an `id`-ish string, i.e. even an id of
@@ -12,4 +12,3 @@ const change_case_1 = require("change-case");
12
12
  function defaultLabel(id) {
13
13
  return (0, change_case_1.capitalCase)(id).replace(/Ids?$/, "").trim();
14
14
  }
15
- exports.defaultLabel = defaultLabel;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultTestId = void 0;
3
+ exports.defaultTestId = defaultTestId;
4
4
  const change_case_1 = require("change-case");
5
5
  /**
6
6
  * Guesses an id based on a label string, i.e. given `Homeowner Contract`,
@@ -16,4 +16,3 @@ function defaultTestId(label) {
16
16
  // means "the 4th element with a data-testid value of 'm'".
17
17
  return (0, change_case_1.camelCase)(label.replace(":", ""));
18
18
  }
19
- exports.defaultTestId = defaultTestId;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getButtonOrLink = void 0;
3
+ exports.getButtonOrLink = getButtonOrLink;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
5
  const react_router_dom_1 = require("react-router-dom");
6
6
  const index_1 = require("./index");
@@ -12,4 +12,3 @@ onClick, attrs, openInNew = false, downloadLink = false) {
12
12
  // Type `(e: PressEvent) => {}` is only used but Button.tsx, which passes the `onClick` prop as part of the `attrs`.
13
13
  (0, jsx_runtime_1.jsx)("button", { onClick: onClick, ...attrs, children: content }));
14
14
  }
15
- exports.getButtonOrLink = getButtonOrLink;