@procore/core-react 12.53.3 → 12.53.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 (219) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/AnchorNavigation/AnchorNavigation.styles.js +4 -4
  3. package/dist/Avatar/Avatar.styles.js +5 -5
  4. package/dist/AvatarStack/AvatarStack.styles.js +8 -8
  5. package/dist/Badge/Badge.styles.js +2 -2
  6. package/dist/BadgePill/BadgePill.styles.js +4 -4
  7. package/dist/Banner/Banner.styles.js +10 -10
  8. package/dist/Box/Box.styles.js +1 -1
  9. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  10. package/dist/Button/Button.styles.js +5 -5
  11. package/dist/Calendar/Calendar.js +97 -10
  12. package/dist/Calendar/Calendar.js.map +1 -1
  13. package/dist/Calendar/Calendar.styles.d.ts +3 -0
  14. package/dist/Calendar/Calendar.styles.js +13 -9
  15. package/dist/Calendar/Calendar.styles.js.map +1 -1
  16. package/dist/Calendar/Calendar.types.js.map +1 -1
  17. package/dist/Card/Card.styles.js +1 -1
  18. package/dist/Checkbox/Checkbox.styles.js +6 -6
  19. package/dist/ContactItem/ContactItem.styles.js +5 -5
  20. package/dist/Content/Content.styles.js +2 -2
  21. package/dist/DateInput/DateInput.js +1 -1
  22. package/dist/DateInput/DateInput.js.map +1 -1
  23. package/dist/DateInput/DateInput.styles.js +8 -8
  24. package/dist/DateInput/DateInput.styles.js.map +1 -1
  25. package/dist/DateSelect/DateSelect.js +60 -29
  26. package/dist/DateSelect/DateSelect.js.map +1 -1
  27. package/dist/DateSelect/DateSelect.types.d.ts +2 -2
  28. package/dist/DateSelect/DateSelect.types.js.map +1 -1
  29. package/dist/DetailPage/DetailPage.styles.js +7 -7
  30. package/dist/Dropdown/Dropdown.styles.js +3 -3
  31. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  32. package/dist/Dropzone/Dropzone.js +1 -1
  33. package/dist/Dropzone/Dropzone.styles.js +9 -9
  34. package/dist/EmptyState/EmptyState.styles.js +6 -6
  35. package/dist/Field/Field.styles.js +3 -3
  36. package/dist/FileList/FileList.styles.js +3 -3
  37. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  38. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  39. package/dist/FileSelect/FileSelect.styles.js +2 -2
  40. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  41. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  42. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  43. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  44. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  45. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  46. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  47. package/dist/FileToken/FileToken.styles.js +6 -6
  48. package/dist/FilterToken/FilterToken.styles.js +5 -5
  49. package/dist/FlexList/FlexList.styles.js +1 -1
  50. package/dist/Form/Form.js +5 -0
  51. package/dist/Form/Form.js.map +1 -1
  52. package/dist/Form/Form.styles.js +13 -13
  53. package/dist/Form/StyledFormikForm.styles.js +2 -2
  54. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  55. package/dist/Grid/Grid.styles.js +2 -2
  56. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  57. package/dist/Input/Input.styles.js +1 -1
  58. package/dist/Link/Link.styles.js +1 -1
  59. package/dist/ListPage/ListPage.styles.js +8 -8
  60. package/dist/Loader/Loader.styles.js +2 -2
  61. package/dist/MenuImperative/MenuImperative.styles.js +11 -11
  62. package/dist/Modal/Modal.styles.js +13 -13
  63. package/dist/MultiSelect/MultiSelect.js +3 -1
  64. package/dist/MultiSelect/MultiSelect.js.map +1 -1
  65. package/dist/MultiSelect/MultiSelect.styles.js +8 -8
  66. package/dist/MultiSelect/MultiSelect.types.d.ts +5 -0
  67. package/dist/MultiSelect/MultiSelect.types.js.map +1 -1
  68. package/dist/NextMenu/NextMenu.styles.js +3 -3
  69. package/dist/NextTile/NextTile.styles.js +5 -5
  70. package/dist/Notation/Notation.js +1 -1
  71. package/dist/NumberInput/NumberInput.styles.js +7 -7
  72. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  73. package/dist/PageLayout/PageLayout.styles.js +16 -16
  74. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  75. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  76. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  77. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  78. package/dist/Pagination/Pagination.styles.js +5 -5
  79. package/dist/Panel/Panel.styles.js +11 -11
  80. package/dist/Pill/Pill.styles.js +3 -3
  81. package/dist/PillSelect/PillSelect.styles.js +5 -5
  82. package/dist/Popover/Popover.styles.js +2 -2
  83. package/dist/Portal/Portal.styles.js +1 -1
  84. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  85. package/dist/RadioButton/RadioButton.styles.js +3 -3
  86. package/dist/Required/Required.styles.js +3 -3
  87. package/dist/Search/Search.styles.js +5 -5
  88. package/dist/Section/Section.js +0 -1
  89. package/dist/Section/Section.js.map +1 -1
  90. package/dist/Section/Section.styles.js +7 -7
  91. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  92. package/dist/Select/Select.styles.js +8 -8
  93. package/dist/Semantic/Semantic.styles.js +9 -9
  94. package/dist/Slider/Slider.styles.js +5 -5
  95. package/dist/Spinner/Spinner.styles.js +7 -7
  96. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  97. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  98. package/dist/SuperSelect/SuperSelect.styles.js +40 -40
  99. package/dist/SuperSelect/SuperSelect.types.d.ts +7 -0
  100. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  101. package/dist/SuperSelect/useSuperSelect.d.ts +1 -1
  102. package/dist/SuperSelect/useSuperSelect.js +7 -2
  103. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  104. package/dist/Switch/Switch.styles.js +4 -4
  105. package/dist/Table/Table.styles.js +29 -29
  106. package/dist/TableShelf/TableShelf.styles.js +5 -5
  107. package/dist/Tabs/Tabs.styles.js +16 -16
  108. package/dist/Tearsheet/Tearsheet.js +55 -31
  109. package/dist/Tearsheet/Tearsheet.js.map +1 -1
  110. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  111. package/dist/TextArea/TextArea.styles.js +1 -1
  112. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  113. package/dist/Thumbnail/Thumbnail.styles.js +21 -21
  114. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  115. package/dist/TieredSelect/LeafSelectionTieredSelect.js +3 -1
  116. package/dist/TieredSelect/LeafSelectionTieredSelect.js.map +1 -1
  117. package/dist/TieredSelect/TierSelectionTieredSelect.js +3 -1
  118. package/dist/TieredSelect/TierSelectionTieredSelect.js.map +1 -1
  119. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  120. package/dist/Tile/Tile.styles.js +8 -8
  121. package/dist/Title/Title.styles.js +7 -7
  122. package/dist/Toast/Toast.styles.js +3 -3
  123. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  124. package/dist/Token/Token.styles.js +5 -5
  125. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  126. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  127. package/dist/Tooltip/Tooltip.styles.js +3 -3
  128. package/dist/Tree/Tree.js +1 -1
  129. package/dist/Tree/Tree.styles.js +10 -10
  130. package/dist/Typeahead/Typeahead.styles.js +4 -4
  131. package/dist/Typography/Typography.styles.js +1 -1
  132. package/dist/Typography/Typography.table.story.js +2 -2
  133. package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
  134. package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
  135. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +7 -7
  136. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  137. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +25 -25
  138. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  139. package/dist/_typedoc/Banner/Banner.types.json +17 -17
  140. package/dist/_typedoc/Box/Box.types.json +68 -68
  141. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +12 -12
  142. package/dist/_typedoc/Button/Button.types.json +14 -14
  143. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  144. package/dist/_typedoc/Card/Card.types.json +6 -6
  145. package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
  146. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  147. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  148. package/dist/_typedoc/DateSelect/DateSelect.types.json +45 -14
  149. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  150. package/dist/_typedoc/DetailPageTemplate/DetailPageTemplate.types.json +3 -3
  151. package/dist/_typedoc/Dropdown/Dropdown.types.json +38 -38
  152. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +37 -37
  153. package/dist/_typedoc/Dropzone/Dropzone.types.json +50 -50
  154. package/dist/_typedoc/EmptyState/EmptyState.types.json +18 -18
  155. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  156. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  157. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  158. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  159. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +17 -17
  160. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  161. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  162. package/dist/_typedoc/Form/Form.types.json +875 -773
  163. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  164. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  165. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +99 -79
  166. package/dist/_typedoc/Input/Input.types.json +2 -2
  167. package/dist/_typedoc/Link/Link.types.json +1 -1
  168. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  169. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  170. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +90 -90
  171. package/dist/_typedoc/Modal/Modal.types.json +48 -48
  172. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +43 -33
  173. package/dist/_typedoc/NextTile/NextTile.types.json +33 -33
  174. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  175. package/dist/_typedoc/NumberInput/NumberInput.types.json +52 -52
  176. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +33 -33
  177. package/dist/_typedoc/PageLayout/PageLayout.types.json +40 -40
  178. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  179. package/dist/_typedoc/Panel/Panel.types.json +28 -28
  180. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  181. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  182. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  183. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
  184. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  185. package/dist/_typedoc/Required/Required.types.json +5 -5
  186. package/dist/_typedoc/Search/Search.types.json +18 -18
  187. package/dist/_typedoc/Section/Section.types.json +15 -15
  188. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  189. package/dist/_typedoc/Select/Select.types.json +67 -67
  190. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  191. package/dist/_typedoc/SettingsPageTemplate/SettingsPageTemplate.types.json +3 -3
  192. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  193. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  194. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
  195. package/dist/_typedoc/Table/Table.types.json +136 -105
  196. package/dist/_typedoc/Tabs/Tablist.types.json +10 -10
  197. package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
  198. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  199. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  200. package/dist/_typedoc/TextEditor/TextEditor.types.json +11 -11
  201. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  202. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  203. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +43 -43
  204. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +29 -29
  205. package/dist/_typedoc/Tile/Tile.types.json +8 -8
  206. package/dist/_typedoc/Title/Title.types.json +1 -1
  207. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  208. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  209. package/dist/_typedoc/Token/Token.types.json +7 -7
  210. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  211. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +8 -8
  212. package/dist/_typedoc/ToolLandingPageTemplate/ToolLandingPageTemplate.types.json +2 -2
  213. package/dist/_typedoc/Tooltip/Tooltip.types.json +15 -15
  214. package/dist/_typedoc/Tree/Tree.types.json +132 -132
  215. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  216. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  217. package/dist/_typedoc/_utils/types.json +3 -3
  218. package/dist/_typedoc/a11y-tips.json +1 -1
  219. package/package.json +1 -1
@@ -17,41 +17,41 @@ export var tableSelectClassName = 'select--table';
17
17
  var styledSelectButtonDefaultWidth = 248;
18
18
  export var StyledSelectButtonWrapper = /*#__PURE__*/styled.div.withConfig({
19
19
  displayName: "StyledSelectButtonWrapper",
20
- componentId: "core-12_53_3__sc-mr8gwe-0"
20
+ componentId: "core-12_53_4__sc-mr8gwe-0"
21
21
  })(["display:inline-block;position:relative;width:", ";"], function (_ref) {
22
22
  var $block = _ref.$block;
23
23
  return $block ? '100%' : "".concat(styledSelectButtonDefaultWidth, "px");
24
24
  });
25
25
  export var StyledSelectMenu = /*#__PURE__*/styled(Card).withConfig({
26
26
  displayName: "StyledSelectMenu",
27
- componentId: "core-12_53_3__sc-mr8gwe-1"
27
+ componentId: "core-12_53_4__sc-mr8gwe-1"
28
28
  })(["display:flex;max-height:40vh;max-width:", "px;min-width:inherit;"], styledSelectButtonDefaultWidth);
29
29
  export var StyledSelectButtonLabel = /*#__PURE__*/styled.div.withConfig({
30
30
  displayName: "StyledSelectButtonLabel",
31
- componentId: "core-12_53_3__sc-mr8gwe-2"
31
+ componentId: "core-12_53_4__sc-mr8gwe-2"
32
32
  })(["", " flex-grow:1;margin-right:", "px;outline:none;pointer-events:", ";user-select:none;"], getEllipsis(), spacing.sm, function (_ref2) {
33
33
  var $hoverable = _ref2.$hoverable;
34
34
  return $hoverable ? 'initial' : 'none';
35
35
  });
36
36
  export var StyledSelectSpinner = /*#__PURE__*/styled.div.withConfig({
37
37
  displayName: "StyledSelectSpinner",
38
- componentId: "core-12_53_3__sc-mr8gwe-3"
38
+ componentId: "core-12_53_4__sc-mr8gwe-3"
39
39
  })(["align-items:center;display:flex;flex:0 0 auto;justify-content:center;line-height:0;"]);
40
40
  export var StyledSelectArrowContainer = /*#__PURE__*/styled.div.withConfig({
41
41
  displayName: "StyledSelectArrowContainer",
42
- componentId: "core-12_53_3__sc-mr8gwe-4"
42
+ componentId: "core-12_53_4__sc-mr8gwe-4"
43
43
  })(["align-items:center;display:inline-flex;height:16px;justify-content:flex-end;margin-left:", "px;width:8px;"], spacing.sm);
44
44
  export var StyledSelectArrow = /*#__PURE__*/styled.div.withConfig({
45
45
  displayName: "StyledSelectArrow",
46
- componentId: "core-12_53_3__sc-mr8gwe-5"
46
+ componentId: "core-12_53_4__sc-mr8gwe-5"
47
47
  })(["position:relative;", ""], arrowDown(4, 'gray45'));
48
48
  export var StyledSelectClearIcon = /*#__PURE__*/styled(Button).withConfig({
49
49
  displayName: "StyledSelectClearIcon",
50
- componentId: "core-12_53_3__sc-mr8gwe-6"
50
+ componentId: "core-12_53_4__sc-mr8gwe-6"
51
51
  })(["position:absolute;right:29px;top:50%;transform:translateY(-50%);", "{pointer-events:none;}"], StyledContent);
52
52
  export var StyledSelectButton = /*#__PURE__*/styled.div.withConfig({
53
53
  displayName: "StyledSelectButton",
54
- componentId: "core-12_53_3__sc-mr8gwe-7"
54
+ componentId: "core-12_53_4__sc-mr8gwe-7"
55
55
  })(["", " align-items:center;background-color:", ";border-color:", ";border-radius:", "px;border-style:solid;border-width:1px;color:", ";cursor:pointer;display:inline-flex;height:36px;min-height:36px;outline:none;padding:0 ", "px;position:relative;white-space:nowrap;width:", ";&::placeholder{border-color:", ";}&:hover,&:active,&[data-qa=", "]{background-color:", ";border-color:", ";color:", ";}&.focus,&:focus,&[data-qa=", "],", ":focus-within &{", " ", "{stroke:", ";}}", " ", " ", " ", " ", " ", " &.", "{", " ", " ", "}"], getTypographyIntent('body'), colors.white, colors.gray50, borderRadius.md, colors.gray15, spacing.md, function (_ref3) {
56
56
  var $block = _ref3.$block;
57
57
  return $block ? '100%' : "".concat(styledSelectButtonDefaultWidth, "px");
@@ -5,15 +5,15 @@ import { colors } from '../_styles/colors';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledH1 = /*#__PURE__*/styled.h1.withConfig({
7
7
  displayName: "StyledH1",
8
- componentId: "core-12_53_3__sc-172j5qh-0"
8
+ componentId: "core-12_53_4__sc-172j5qh-0"
9
9
  })(["color:", ";", " margin:0;"], colors.gray15, getTypographyIntent('h1'));
10
10
  export var StyledH2 = /*#__PURE__*/styled.h2.withConfig({
11
11
  displayName: "StyledH2",
12
- componentId: "core-12_53_3__sc-172j5qh-1"
12
+ componentId: "core-12_53_4__sc-172j5qh-1"
13
13
  })(["color:", ";", " margin:0;"], colors.gray15, getTypographyIntent('h2'));
14
14
  export var StyledH3 = /*#__PURE__*/styled.h3.withConfig({
15
15
  displayName: "StyledH3",
16
- componentId: "core-12_53_3__sc-172j5qh-2"
16
+ componentId: "core-12_53_4__sc-172j5qh-2"
17
17
  })(["color:", ";", " margin:0;"], colors.gray15, getTypographyIntent('h3'));
18
18
  var topMarginRules = function topMarginRules() {
19
19
  return css(["& + &,p + &,ol + &,ul + &{margin-top:", "px;}"], spacing.lg);
@@ -28,11 +28,11 @@ export function getSmallIconBodyTextRules() {
28
28
  }
29
29
  export var StyledP = /*#__PURE__*/styled.p.withConfig({
30
30
  displayName: "StyledP",
31
- componentId: "core-12_53_3__sc-172j5qh-3"
31
+ componentId: "core-12_53_4__sc-172j5qh-3"
32
32
  })(["color:", ";", " ", " ", ""], colors.gray15, getTypographyIntent('body'), topMarginRules, semiboldRules);
33
33
  export var StyledUL = /*#__PURE__*/styled.ul.withConfig({
34
34
  displayName: "StyledUL",
35
- componentId: "core-12_53_3__sc-172j5qh-4"
35
+ componentId: "core-12_53_4__sc-172j5qh-4"
36
36
  })(["color:", ";margin:0;padding:0;", " ", " padding-left:", "px;list-style-type:", ";"], colors.gray15, getTypographyIntent('body'), topMarginRules, spacing.lg, function (props) {
37
37
  return props.$listStyleType || 'disc';
38
38
  });
@@ -40,7 +40,7 @@ export var StyledOL = /*#__PURE__*/styled(StyledUL).attrs({
40
40
  as: 'ol'
41
41
  }).withConfig({
42
42
  displayName: "StyledOL",
43
- componentId: "core-12_53_3__sc-172j5qh-5"
43
+ componentId: "core-12_53_4__sc-172j5qh-5"
44
44
  })(["list-style-type:", ";"], function (props) {
45
45
  return props.$listStyleType || 'decimal';
46
46
  });
@@ -51,7 +51,7 @@ export var StyledLabel = /*#__PURE__*/styled(StyledTypography).attrs(function (p
51
51
  };
52
52
  }).withConfig({
53
53
  displayName: "StyledLabel",
54
- componentId: "core-12_53_3__sc-172j5qh-6"
54
+ componentId: "core-12_53_4__sc-172j5qh-6"
55
55
  })(["", " ", " > ", "{margin-left:", "px;vertical-align:top;}"], function (_ref) {
56
56
  var _ref$$block = _ref.$block,
57
57
  $block = _ref$$block === void 0 ? false : _ref$$block;
@@ -69,7 +69,7 @@ export function getUnstyledButton() {
69
69
  */
70
70
  export var StyledUnstyledButton = /*#__PURE__*/styled.button.withConfig({
71
71
  displayName: "StyledUnstyledButton",
72
- componentId: "core-12_53_3__sc-172j5qh-7"
72
+ componentId: "core-12_53_4__sc-172j5qh-7"
73
73
  })(["", ""], getUnstyledButton);
74
74
 
75
75
  /**
@@ -77,6 +77,6 @@ export var StyledUnstyledButton = /*#__PURE__*/styled.button.withConfig({
77
77
  */
78
78
  export var StyledAnchor = /*#__PURE__*/styled.a.withConfig({
79
79
  displayName: "StyledAnchor",
80
- componentId: "core-12_53_3__sc-172j5qh-8"
80
+ componentId: "core-12_53_4__sc-172j5qh-8"
81
81
  })([""]);
82
82
  //# sourceMappingURL=Semantic.styles.js.map
@@ -22,13 +22,13 @@ var getTrackBackgroundDisabled = function getTrackBackgroundDisabled(percent) {
22
22
  var getThumbDisabledStyles = /*#__PURE__*/css(["cursor:not-allowed;border:2px solid ", ";"], colors.blue85);
23
23
  export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
24
24
  displayName: "StyledContainer",
25
- componentId: "core-12_53_3__sc-12icguw-0"
25
+ componentId: "core-12_53_4__sc-12icguw-0"
26
26
  })(["position:relative;", ";"], function (props) {
27
27
  return props.$showLabel && 'padding-bottom: 10px';
28
28
  });
29
29
  export var StyledSlider = /*#__PURE__*/styled.input.withConfig({
30
30
  displayName: "StyledSlider",
31
- componentId: "core-12_53_3__sc-12icguw-1"
31
+ componentId: "core-12_53_4__sc-12icguw-1"
32
32
  })(["-webkit-appearance:none;margin:0;padding-top:5px;padding-bottom:5px;width:100%;border:1px solid transparent;background-color:transparent;font-size:12px;&:focus{outline:none;", ";padding-top:5px;padding-bottom:5px;border-radius:2px;}&::-webkit-slider-runnable-track{", " ", "}&:disabled::-webkit-slider-runnable-track{cursor:not-allowed;", "}&::-webkit-slider-thumb{", " -webkit-appearance:none;margin-top:-5px;}&:disabled::-webkit-slider-thumb{", "}&::-moz-range-track{", " ", "}&:disabled::-moz-range-track{cursor:not-allowed;", "}&::-moz-range-thumb{", " height:12px;width:12px;}&:disabled::-moz-range-thumb{", "}&::-ms-track{", " height:", "px;color:transparent;", "}&:disabled::-ms-track{cursor:not-allowed;", "}&::-ms-fill-lower{background:", ";border:0px solid ", ";border-radius:2px;box-shadow:1px 1px 1px ", ";}&::-ms-fill-upper{background:", ";border:0px solid ", ";border-radius:2px;box-shadow:1px 1px 1px ", ";}&::-ms-thumb{", "}&:disabled::-ms-thumb{", "}&:focus::-ms-fill-lower{background:", ";}&:focus::-ms-fill-upper{background:", ";}"], function (props) {
33
33
  return props.$isDragging ? "border: 1px solid transparent" : "border: 1px solid ".concat(colors.blue40);
34
34
  }, getTrackStyles, function (props) {
@@ -46,7 +46,7 @@ export var StyledSlider = /*#__PURE__*/styled.input.withConfig({
46
46
  }, colors.blue50, colors.black, colors.black, colors.gray85, colors.black, colors.black, getThumbStyles, getThumbDisabledStyles, colors.blue50, colors.gray85);
47
47
  export var StyledIncrementOverlay = /*#__PURE__*/styled.div.withConfig({
48
48
  displayName: "StyledIncrementOverlay",
49
- componentId: "core-12_53_3__sc-12icguw-2"
49
+ componentId: "core-12_53_4__sc-12icguw-2"
50
50
  })(["position:relative;width:0;&::before{content:'';height:", "px;width:4px;transform:translateX(-50%);background-color:white;pointer-events:none;", ";display:block;visibility:", ";}z-index:2;"], TRACK_HEIGHT, function (props) {
51
51
  return props.$isDisabled ? "border-left: 1px solid ".concat(props.$filled ? colors.blue85 : colors.gray85, ";\n border-right: 1px solid ").concat(props.$filled ? colors.blue85 : colors.gray85, ";") : "border-left: 1px solid ".concat(props.$filled ? colors.blue50 : colors.gray50, ";\n border-right: 1px solid ").concat(props.$filled ? colors.blue50 : colors.gray50, ";");
52
52
  }, function (props) {
@@ -54,10 +54,10 @@ export var StyledIncrementOverlay = /*#__PURE__*/styled.div.withConfig({
54
54
  });
55
55
  export var StyledIncrementContainer = /*#__PURE__*/styled.div.withConfig({
56
56
  displayName: "StyledIncrementContainer",
57
- componentId: "core-12_53_3__sc-12icguw-3"
57
+ componentId: "core-12_53_4__sc-12icguw-3"
58
58
  })(["position:absolute;display:flex;justify-content:space-between;top:6px;", " left:5px;right:5px;> :first-child{visibility:hidden;}> :last-child{visibility:hidden;}"], applyStylesOnlyToFF("\n top: 12px;\n "));
59
59
  export var StyledLabel = /*#__PURE__*/styled(Typography).withConfig({
60
60
  displayName: "StyledLabel",
61
- componentId: "core-12_53_3__sc-12icguw-4"
61
+ componentId: "core-12_53_4__sc-12icguw-4"
62
62
  })(["visibility:visible;position:absolute;left:50%;transform:translateX(-50%);margin-top:8px;"]);
63
63
  //# sourceMappingURL=Slider.styles.js.map
@@ -10,7 +10,7 @@ var zOverlay = 2;
10
10
  var dash = /*#__PURE__*/keyframes(["0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}"]);
11
11
  export var StyledCircle = /*#__PURE__*/styled.circle.withConfig({
12
12
  displayName: "StyledCircle",
13
- componentId: "core-12_53_3__sc-1igww3-0"
13
+ componentId: "core-12_53_4__sc-1igww3-0"
14
14
  })(["", " stroke-linecap:round;"], function (p) {
15
15
  if (p.$animate) {
16
16
  var animationDelay = -(p.$mountTime % duration);
@@ -51,16 +51,16 @@ function getStrokeColor(_ref2) {
51
51
  }
52
52
  export var StyledSpinnerContainer = /*#__PURE__*/styled.div.withConfig({
53
53
  displayName: "StyledSpinnerContainer",
54
- componentId: "core-12_53_3__sc-1igww3-1"
54
+ componentId: "core-12_53_4__sc-1igww3-1"
55
55
  })(["border-radius:100%;box-sizing:border-box;display:block;flex-shrink:0;position:relative;", " ", "{", "}"], getHeightWidthStroke, StyledCircle, getStrokeColor);
56
56
  export var StyledSpinnerOverlayLabel = /*#__PURE__*/styled.span.withConfig({
57
57
  displayName: "StyledSpinnerOverlayLabel",
58
- componentId: "core-12_53_3__sc-1igww3-2"
58
+ componentId: "core-12_53_4__sc-1igww3-2"
59
59
  })(["", " color:", ";display:block;min-height:20px;padding-top:", "px;text-align:center;transition:opacity ", ";"], getTypographyIntent('body'), colors.gray15, spacing.md, transition);
60
60
  var rotate = /*#__PURE__*/keyframes(["to{transform:rotate(360deg);}"]);
61
61
  export var StyledSpinnerSVG = /*#__PURE__*/styled.svg.withConfig({
62
62
  displayName: "StyledSpinnerSVG",
63
- componentId: "core-12_53_3__sc-1igww3-3"
63
+ componentId: "core-12_53_4__sc-1igww3-3"
64
64
  })(["", " fill:none;height:100%;left:0;margin:auto;position:absolute;right:0;top:0;width:100%;z-index:2;"], function (p) {
65
65
  if (p.$animate) {
66
66
  var animationDelay = -(p.$mountTime % (duration - durationOffset));
@@ -70,15 +70,15 @@ export var StyledSpinnerSVG = /*#__PURE__*/styled.svg.withConfig({
70
70
  var startsWithNoInteraction = /*#__PURE__*/css(["opacity:0;pointer-events:none;transition:opacity ", ";"], transition);
71
71
  export var StyledSpinnerOverlay = /*#__PURE__*/styled.div.withConfig({
72
72
  displayName: "StyledSpinnerOverlay",
73
- componentId: "core-12_53_3__sc-1igww3-4"
73
+ componentId: "core-12_53_4__sc-1igww3-4"
74
74
  })(["", ";background-color:", ";bottom:0;left:0;position:absolute;right:0;top:0;z-index:", ";"], startsWithNoInteraction, colors.white, zOverlay);
75
75
  export var StyledSpinnerContainerWithLabel = /*#__PURE__*/styled.div.withConfig({
76
76
  displayName: "StyledSpinnerContainerWithLabel",
77
- componentId: "core-12_53_3__sc-1igww3-5"
77
+ componentId: "core-12_53_4__sc-1igww3-5"
78
78
  })(["", ";align-items:center;display:flex;flex-direction:column;height:100%;max-height:400px;justify-content:center;position:absolute;top:0;width:100%;z-index:", ";"], startsWithNoInteraction, zContainer);
79
79
  export var StyledSpinnerOverlayContainer = /*#__PURE__*/styled.div.withConfig({
80
80
  displayName: "StyledSpinnerOverlayContainer",
81
- componentId: "core-12_53_3__sc-1igww3-6"
81
+ componentId: "core-12_53_4__sc-1igww3-6"
82
82
  })(["min-height:150px;position:relative;", " ", ""], function (_ref3) {
83
83
  var $loading = _ref3.$loading;
84
84
  if ($loading) {
@@ -11,18 +11,18 @@ var MIN_CARD_HEIGHT = 364;
11
11
  var CARD_TRANSITION = 'all ease 500ms';
12
12
  export var StyledSplitViewCardContainer = /*#__PURE__*/styled.div.withConfig({
13
13
  displayName: "StyledSplitViewCardContainer",
14
- componentId: "core-12_53_3__sc-9hrkda-0"
14
+ componentId: "core-12_53_4__sc-9hrkda-0"
15
15
  })(["display:grid;grid-template-columns:1fr auto;border-radius:", "px;box-shadow:0 0 4px 0 rgba(0,0,0,0.25);min-height:", "px;position:relative;width:100%;@media (min-width:", "){overflow:hidden;}@media (max-width:", "){box-shadow:none;display:flex;flex-direction:column;width:100%;}"], spacing.sm, MIN_CARD_HEIGHT, breakpointMinWidthValues.tabletMd, breakpointMinWidthValues.tabletMd);
16
16
  export var StyledSplitViewCardMain = /*#__PURE__*/styled.div.withConfig({
17
17
  displayName: "StyledSplitViewCardMain",
18
- componentId: "core-12_53_3__sc-9hrkda-1"
18
+ componentId: "core-12_53_4__sc-9hrkda-1"
19
19
  })(["background-color:", ";border-top-left-radius:", "px;border-bottom-left-radius:", "px;position:relative;width:60%;transition:", ";@media (max-width:", "){box-shadow:0 0 4px 0 rgba(0,0,0,0.25);border-radius:", "px;margin-bottom:", "px;width:100%;}", ""], colors.white, spacing.sm, spacing.sm, CARD_TRANSITION, breakpointMinWidthValues.tabletMd, spacing.sm, spacing.sm, function (_ref) {
20
20
  var $open = _ref.$open;
21
21
  return !$open && css(["border-radius:", "px;width:100%;"], spacing.sm);
22
22
  });
23
23
  export var StyledSplitViewCardAside = /*#__PURE__*/styled.div.withConfig({
24
24
  displayName: "StyledSplitViewCardAside",
25
- componentId: "core-12_53_3__sc-9hrkda-2"
25
+ componentId: "core-12_53_4__sc-9hrkda-2"
26
26
  })(["background-color:", ";border-left:1px solid ", ";border-top-right-radius:", "px;border-bottom-right-radius:", "px;display:flex;flex-direction:column;height:100%;width:40%;min-height:", "px;min-width:400px;transition:", ";z-index:2;position:absolute;top:0;right:0;@media screen and (max-width:", "px){min-width:unset;}@media (max-width:", "){box-shadow:0 0 4px 0 rgba(0,0,0,0.25);border:none;border-radius:", "px;position:relative;width:100%;}", " ", ""], colors.white, colors.gray85, spacing.sm, spacing.sm, MIN_CARD_HEIGHT, CARD_TRANSITION, breakpointRawMinWidthValues.tabletSm, breakpointMinWidthValues.tabletMd, spacing.sm, function (_ref2) {
27
27
  var $open = _ref2.$open;
28
28
  return !$open && css(["border:none;border-radius:", "px;@media (min-width:", "){transform:translateX(100%);}@media (max-width:", "){display:none;}"], spacing.sm, breakpointMinWidthValues.tabletMd, breakpointMinWidthValues.tabletMd);
@@ -32,23 +32,23 @@ export var StyledSplitViewCardAside = /*#__PURE__*/styled.div.withConfig({
32
32
  });
33
33
  export var StyledSplitViewCardHeading = /*#__PURE__*/styled(H2).withConfig({
34
34
  displayName: "StyledSplitViewCardHeading",
35
- componentId: "core-12_53_3__sc-9hrkda-3"
35
+ componentId: "core-12_53_4__sc-9hrkda-3"
36
36
  })(["width:100%;"]);
37
37
  export var StyledSplitViewCardTitle = /*#__PURE__*/styled.div.withConfig({
38
38
  displayName: "StyledSplitViewCardTitle",
39
- componentId: "core-12_53_3__sc-9hrkda-4"
39
+ componentId: "core-12_53_4__sc-9hrkda-4"
40
40
  })(["display:flex;justify-content:space-between;margin-bottom:", "px;min-height:36px;"], spacing.sm);
41
41
  export var StyledSplitViewCardHeader = /*#__PURE__*/styled.div.withConfig({
42
42
  displayName: "StyledSplitViewCardHeader",
43
- componentId: "core-12_53_3__sc-9hrkda-5"
43
+ componentId: "core-12_53_4__sc-9hrkda-5"
44
44
  })(["border-bottom:1px solid ", ";display:flex;flex-direction:column;padding:", "px ", "px 0;"], colors.gray85, spacing.lg, spacing.lg);
45
45
  export var StyledSplitViewCardBody = /*#__PURE__*/styled.div.withConfig({
46
46
  displayName: "StyledSplitViewCardBody",
47
- componentId: "core-12_53_3__sc-9hrkda-6"
47
+ componentId: "core-12_53_4__sc-9hrkda-6"
48
48
  })(["display:flex;flex-direction:column;flex:1;padding:", "px ", "px 0;overflow-y:auto;&:focus-visible{", "}"], spacing.lg, spacing.lg, getFocusInset());
49
49
  export var StyledSplitViewCardFooter = /*#__PURE__*/styled.div.withConfig({
50
50
  displayName: "StyledSplitViewCardFooter",
51
- componentId: "core-12_53_3__sc-9hrkda-7"
51
+ componentId: "core-12_53_4__sc-9hrkda-7"
52
52
  })(["display:flex;align-items:center;justify-content:flex-end;padding:", "px;", ""], spacing.lg, function (_ref4) {
53
53
  var $hasShadow = _ref4.$hasShadow;
54
54
  return $hasShadow && css(["box-shadow:0 -4px 6px 0 #0000001a;"]);
@@ -3,6 +3,6 @@ import { Popover } from '../Popover';
3
3
  import { spacing } from '../_styles/spacing';
4
4
  export var StyledFilterPresetPopoverContent = /*#__PURE__*/styled(Popover.Content).withConfig({
5
5
  displayName: "StyledFilterPresetPopoverContent",
6
- componentId: "core-12_53_3__sc-y5qv7b-0"
6
+ componentId: "core-12_53_4__sc-y5qv7b-0"
7
7
  })(["padding:", "px ", "px;"], spacing.sm, spacing.lg);
8
8
  //# sourceMappingURL=SuperSelect.presets.styles.js.map
@@ -22,40 +22,40 @@ var styledSelectButtonDefaultWidth = 248;
22
22
  export var extendedSelectMenuWidth = 360;
23
23
  export var PillSelectOptionWrapper = /*#__PURE__*/styled.div.withConfig({
24
24
  displayName: "PillSelectOptionWrapper",
25
- componentId: "core-12_53_3__sc-1uf5708-0"
25
+ componentId: "core-12_53_4__sc-1uf5708-0"
26
26
  })(["display:flex;align-items:center;justify-content:space-between;padding:", "px ", "px;"], spacing.xs, spacing.lg);
27
27
  export var PillSelectLabel = /*#__PURE__*/styled(Pill).withConfig({
28
28
  displayName: "PillSelectLabel",
29
- componentId: "core-12_53_3__sc-1uf5708-1"
29
+ componentId: "core-12_53_4__sc-1uf5708-1"
30
30
  })(["", ""], getEllipsis);
31
31
  export var PillSelectLabelWrapper = /*#__PURE__*/styled.div.withConfig({
32
32
  displayName: "PillSelectLabelWrapper",
33
- componentId: "core-12_53_3__sc-1uf5708-2"
33
+ componentId: "core-12_53_4__sc-1uf5708-2"
34
34
  })(["display:flex;max-width:100%;pointer-events:auto;", ""], function (_ref) {
35
35
  var disabled = _ref.disabled;
36
36
  return disabled && css(["pointer-events:none;"]);
37
37
  });
38
38
  export var StyledCheckboxContainer = /*#__PURE__*/styled.div.withConfig({
39
39
  displayName: "StyledCheckboxContainer",
40
- componentId: "core-12_53_3__sc-1uf5708-3"
40
+ componentId: "core-12_53_4__sc-1uf5708-3"
41
41
  })(["padding-left:", "px;"], spacing.lg);
42
42
  export var StyledCheckmarkContainer = /*#__PURE__*/styled.div.withConfig({
43
43
  displayName: "StyledCheckmarkContainer",
44
- componentId: "core-12_53_3__sc-1uf5708-4"
44
+ componentId: "core-12_53_4__sc-1uf5708-4"
45
45
  })(["align-items:center;color:", ";display:inline-flex;flex-shrink:0;padding:0 ", "px 0 ", "px;"], colors.blue50, spacing.lg, spacing.sm);
46
46
 
47
47
  // Do not merge with StyledMenu, needed for max-height working in IE
48
48
  export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
49
49
  displayName: "StyledWrapper",
50
- componentId: "core-12_53_3__sc-1uf5708-5"
50
+ componentId: "core-12_53_4__sc-1uf5708-5"
51
51
  })(["display:flex;max-height:inherit;min-width:inherit;outline:none;width:inherit;"]);
52
52
  export var StyledMenu = /*#__PURE__*/styled.div.withConfig({
53
53
  displayName: "StyledMenu",
54
- componentId: "core-12_53_3__sc-1uf5708-6"
54
+ componentId: "core-12_53_4__sc-1uf5708-6"
55
55
  })(["display:flex;flex-direction:column;outline:0;width:100%;"]);
56
56
  export var StyledOptions = /*#__PURE__*/styled.div.withConfig({
57
57
  displayName: "StyledOptions",
58
- componentId: "core-12_53_3__sc-1uf5708-7"
58
+ componentId: "core-12_53_4__sc-1uf5708-7"
59
59
  })(["flex-basis:auto;flex-grow:1;flex-shrink:1;min-height:", "px;", ";padding:", "px 0;position:relative;overflow:hidden;&:focus{", " margin:-1px;}"], optionMinHeight, function (_ref2) {
60
60
  var _ref2$$scrollable = _ref2.$scrollable,
61
61
  $scrollable = _ref2$$scrollable === void 0 ? true : _ref2$$scrollable;
@@ -63,53 +63,53 @@ export var StyledOptions = /*#__PURE__*/styled.div.withConfig({
63
63
  }, spacing.sm, getFocus());
64
64
  export var StyledItemContent = /*#__PURE__*/styled.div.withConfig({
65
65
  displayName: "StyledItemContent",
66
- componentId: "core-12_53_3__sc-1uf5708-8"
66
+ componentId: "core-12_53_4__sc-1uf5708-8"
67
67
  })(["display:flex;flex-direction:row;align-items:center;"]);
68
68
  export var StyledOptionGroupLabel = /*#__PURE__*/styled.div.withConfig({
69
69
  displayName: "StyledOptionGroupLabel",
70
- componentId: "core-12_53_3__sc-1uf5708-9"
70
+ componentId: "core-12_53_4__sc-1uf5708-9"
71
71
  })(["padding:", "px 0 ", "px ", "px;"], spacing.md, spacing.xs, spacing.lg);
72
72
  export var StyledItemLabel = /*#__PURE__*/styled.div.withConfig({
73
73
  displayName: "StyledItemLabel",
74
- componentId: "core-12_53_3__sc-1uf5708-10"
74
+ componentId: "core-12_53_4__sc-1uf5708-10"
75
75
  })(["", ""], function (_ref3) {
76
76
  var $draggable = _ref3.$draggable;
77
77
  return css(["padding:", "px ", "px;overflow-wrap:anywhere;"], spacing.xs, $draggable ? 0 : spacing.lg);
78
78
  });
79
79
  export var StyledDraggableWrapper = /*#__PURE__*/styled.div.withConfig({
80
80
  displayName: "StyledDraggableWrapper",
81
- componentId: "core-12_53_3__sc-1uf5708-11"
81
+ componentId: "core-12_53_4__sc-1uf5708-11"
82
82
  })(["display:flex;width:100%;align-items:center;"]);
83
83
  export var StyledGrip = /*#__PURE__*/styled.div.withConfig({
84
84
  displayName: "StyledGrip",
85
- componentId: "core-12_53_3__sc-1uf5708-12"
85
+ componentId: "core-12_53_4__sc-1uf5708-12"
86
86
  })(["padding:0 2px;height:24px;visibility:hidden;"]);
87
87
  export var StyledFooter = /*#__PURE__*/styled(Box).withConfig({
88
88
  displayName: "StyledFooter",
89
- componentId: "core-12_53_3__sc-1uf5708-13"
89
+ componentId: "core-12_53_4__sc-1uf5708-13"
90
90
  })(["border-top:1px solid ", ";"], colors.gray85);
91
91
  export var StyledHeader = /*#__PURE__*/styled.div.withConfig({
92
92
  displayName: "StyledHeader",
93
- componentId: "core-12_53_3__sc-1uf5708-14"
93
+ componentId: "core-12_53_4__sc-1uf5708-14"
94
94
  })([""]);
95
95
  export var StyledEmptyMessage = /*#__PURE__*/styled.div.withConfig({
96
96
  displayName: "StyledEmptyMessage",
97
- componentId: "core-12_53_3__sc-1uf5708-15"
97
+ componentId: "core-12_53_4__sc-1uf5708-15"
98
98
  })(["", ";padding:", "px ", "px;color:", ";"], getTypographyIntent('body'), spacing.md, spacing.lg, colors.gray45);
99
99
  export var StyledSearchContainer = /*#__PURE__*/styled.div.withConfig({
100
100
  displayName: "StyledSearchContainer",
101
- componentId: "core-12_53_3__sc-1uf5708-16"
101
+ componentId: "core-12_53_4__sc-1uf5708-16"
102
102
  })(["padding:", "px ", "px ", "px;", " > *{pointer-events:none;}"], spacing.lg, spacing.lg, spacing.sm, StyledButton);
103
103
  export var StyledGroup = /*#__PURE__*/styled.div.withConfig({
104
104
  displayName: "StyledGroup",
105
- componentId: "core-12_53_3__sc-1uf5708-17"
105
+ componentId: "core-12_53_4__sc-1uf5708-17"
106
106
  })(["", " color:", ";cursor:", ";font-weight:", ";padding:", "px ", "px;&:not(:first-child){padding-top:", "px;}&&{padding:0;}", "{padding:", "px ", " px;}&:not(:first-child){", "{padding-top:", " px;}}"], getTypographyIntent('body'), colors.gray15, function (_ref4) {
107
107
  var $clickable = _ref4.$clickable;
108
108
  return $clickable ? 'pointer' : 'default';
109
109
  }, typographyWeights.semibold, spacing.xs, spacing.lg, spacing.md + spacing.xs, StyledOptionGroupLabel, spacing.xs, spacing.lg, StyledOptionGroupLabel, spacing.md + spacing.xs);
110
110
  export var StyledItem = /*#__PURE__*/styled.div.withConfig({
111
111
  displayName: "StyledItem",
112
- componentId: "core-12_53_3__sc-1uf5708-18"
112
+ componentId: "core-12_53_4__sc-1uf5708-18"
113
113
  })(["", ";align-items:center;cursor:pointer;list-style-type:none;display:flex;padding:0;", " ", " ", " a{color:", ";display:block;margin:-", "px -", "px;padding:", "px ", "px;text-decoration:none;&:hover{color:", ";text-decoration:none;}}&[data-highlighted='true']{background-color:", ";}", " ", " &:hover,&:active{", "{visibility:visible;}}", "{color:inherit;cursor:pointer;}", " ", " ", ""], getTypographyIntent('body'), function (_ref5) {
114
114
  var $emptyMinHeight = _ref5.$emptyMinHeight;
115
115
  return css(["&:empty{min-height:", "px;}"], $emptyMinHeight);
@@ -150,54 +150,54 @@ export var StyledItem = /*#__PURE__*/styled.div.withConfig({
150
150
  });
151
151
  export var StyledSelectAll = /*#__PURE__*/styled(Box).withConfig({
152
152
  displayName: "StyledSelectAll",
153
- componentId: "core-12_53_3__sc-1uf5708-19"
153
+ componentId: "core-12_53_4__sc-1uf5708-19"
154
154
  })(["padding-top:", "px;padding-bottom:", "px;border-bottom:1px solid ", ";"], spacing.md, spacing.md, colors.gray85);
155
155
  export var StyledDroppable = /*#__PURE__*/styled.div.withConfig({
156
156
  displayName: "StyledDroppable",
157
- componentId: "core-12_53_3__sc-1uf5708-20"
157
+ componentId: "core-12_53_4__sc-1uf5708-20"
158
158
  })(["", ",", "{padding-left:28px;}"], StyledGroup, StyledItem);
159
159
  export var StyledSelectMenu = /*#__PURE__*/styled(Card).withConfig({
160
160
  displayName: "StyledSelectMenu",
161
- componentId: "core-12_53_3__sc-1uf5708-21"
161
+ componentId: "core-12_53_4__sc-1uf5708-21"
162
162
  })(["display:flex;max-height:40vh;max-width:", "px;min-width:inherit;"], styledSelectButtonDefaultWidth);
163
163
  export var StyledLabel = /*#__PURE__*/styled.div.withConfig({
164
164
  displayName: "StyledLabel",
165
- componentId: "core-12_53_3__sc-1uf5708-22"
165
+ componentId: "core-12_53_4__sc-1uf5708-22"
166
166
  })(["", " flex-grow:1;margin-right:", "px;outline:none;pointer-events:", ";user-select:none;"], getEllipsis(), spacing.sm, function (_ref11) {
167
167
  var $hoverable = _ref11.$hoverable;
168
168
  return $hoverable ? 'initial' : 'none';
169
169
  });
170
170
  export var StyledIndicators = /*#__PURE__*/styled.div.withConfig({
171
171
  displayName: "StyledIndicators",
172
- componentId: "core-12_53_3__sc-1uf5708-23"
172
+ componentId: "core-12_53_4__sc-1uf5708-23"
173
173
  })(["align-items:center;align-self:flex-start;display:flex;height:34px;justify-content:flex-end;margin-left:", "px;min-width:40px;width:40px;"], spacing.xs);
174
174
  export var StyledClearIcon = /*#__PURE__*/styled(Button).withConfig({
175
175
  displayName: "StyledClearIcon",
176
- componentId: "core-12_53_3__sc-1uf5708-24"
176
+ componentId: "core-12_53_4__sc-1uf5708-24"
177
177
  })(["position:absolute;right:", "px;top:calc(36px / 2);transform:translateY(-50%);"], spacing.md + spacing.lg);
178
178
  export var StyledSpinner = /*#__PURE__*/styled.div.withConfig({
179
179
  displayName: "StyledSpinner",
180
- componentId: "core-12_53_3__sc-1uf5708-25"
180
+ componentId: "core-12_53_4__sc-1uf5708-25"
181
181
  })(["align-items:center;display:flex;flex:0 0 auto;justify-content:center;line-height:0;"]);
182
182
  export var StyledArrowContainer = /*#__PURE__*/styled.div.withConfig({
183
183
  displayName: "StyledArrowContainer",
184
- componentId: "core-12_53_3__sc-1uf5708-26"
184
+ componentId: "core-12_53_4__sc-1uf5708-26"
185
185
  })(["align-items:center;display:inline-flex;height:16px;justify-content:flex-end;margin-left:", "px;width:8px;"], spacing.sm);
186
186
  export var StyledArrow = /*#__PURE__*/styled.span.withConfig({
187
187
  displayName: "StyledArrow",
188
- componentId: "core-12_53_3__sc-1uf5708-27"
188
+ componentId: "core-12_53_4__sc-1uf5708-27"
189
189
  })(["display:inline-flex;svg{fill:", ";}"], colors.gray45);
190
190
  export var StyledArrowOutline = /*#__PURE__*/styled.polygon.withConfig({
191
191
  displayName: "StyledArrowOutline",
192
- componentId: "core-12_53_3__sc-1uf5708-28"
192
+ componentId: "core-12_53_4__sc-1uf5708-28"
193
193
  })([""]);
194
194
  export var StyledArrowFill = /*#__PURE__*/styled.polygon.withConfig({
195
195
  displayName: "StyledArrowFill",
196
- componentId: "core-12_53_3__sc-1uf5708-29"
196
+ componentId: "core-12_53_4__sc-1uf5708-29"
197
197
  })([""]);
198
198
  export var StyledTrigger = /*#__PURE__*/styled.div.withConfig({
199
199
  displayName: "StyledTrigger",
200
- componentId: "core-12_53_3__sc-1uf5708-30"
200
+ componentId: "core-12_53_4__sc-1uf5708-30"
201
201
  })(["", " align-items:center;background-color:", ";border-color:", ";border-radius:", "px;border-style:solid;border-width:1px;color:", ";cursor:pointer;display:inline-flex;height:36px;min-height:36px;outline:none;padding:0 ", "px;position:relative;white-space:nowrap;width:100%;&::placeholder{border-color:", ";}&:hover,&:active,&[data-qa=", "]{background-color:", ";border-color:", ";color:", ";}&:focus,&:focus-within,&[data-qa=", "]{", " ", "{stroke:", ";}}", " ", " ", " ", " ", "}"], getTypographyIntent('body'), colors.white, colors.gray50, borderRadius.md, colors.gray15, spacing.md, colors.gray45, dataQa.hovered, colors.white, colors.gray20, colors.gray15, dataQa.focused, getFocus(), StyledCircle, colors.blue50, function (_ref12) {
202
202
  var _ref12$$placeholder = _ref12.$placeholder,
203
203
  $placeholder = _ref12$$placeholder === void 0 ? false : _ref12$$placeholder;
@@ -222,7 +222,7 @@ export var StyledTrigger = /*#__PURE__*/styled.div.withConfig({
222
222
  });
223
223
  export var StyledTriggerWrapper = /*#__PURE__*/styled.div.withConfig({
224
224
  displayName: "StyledTriggerWrapper",
225
- componentId: "core-12_53_3__sc-1uf5708-31"
225
+ componentId: "core-12_53_4__sc-1uf5708-31"
226
226
  })(["display:inline-block;position:relative;width:", ";", " ", ""], function (_ref17) {
227
227
  var $block = _ref17.$block;
228
228
  return $block ? '100%' : "".concat(styledSelectButtonDefaultWidth, "px");
@@ -236,35 +236,35 @@ export var StyledTriggerWrapper = /*#__PURE__*/styled.div.withConfig({
236
236
  });
237
237
  export var StyledOverlay = /*#__PURE__*/styled(Card).withConfig({
238
238
  displayName: "StyledOverlay",
239
- componentId: "core-12_53_3__sc-1uf5708-32"
239
+ componentId: "core-12_53_4__sc-1uf5708-32"
240
240
  })(["display:flex;flex-direction:column;"]);
241
241
  export var StyledVirtuoso = /*#__PURE__*/styled(Virtuoso).withConfig({
242
242
  displayName: "StyledVirtuoso",
243
- componentId: "core-12_53_3__sc-1uf5708-33"
243
+ componentId: "core-12_53_4__sc-1uf5708-33"
244
244
  })(["flex:1 1 auto;"]);
245
245
  export var StyledEllipses = /*#__PURE__*/styled.div.withConfig({
246
246
  displayName: "StyledEllipses",
247
- componentId: "core-12_53_3__sc-1uf5708-34"
247
+ componentId: "core-12_53_4__sc-1uf5708-34"
248
248
  })(["", " display:inline-flex;> div{display:inline-flex;width:100%;}"], getEllipsis());
249
249
  export var StyledMultiValueContainer = /*#__PURE__*/styled.div.withConfig({
250
250
  displayName: "StyledMultiValueContainer",
251
- componentId: "core-12_53_3__sc-1uf5708-35"
251
+ componentId: "core-12_53_4__sc-1uf5708-35"
252
252
  })(["display:flex;flex-wrap:wrap;margin-bottom:2px;margin-right:", "px;margin-top:2px;min-width:0;width:100%;"], spacing.xs);
253
253
  export var StyledTokenList = /*#__PURE__*/styled.ul.withConfig({
254
254
  displayName: "StyledTokenList",
255
- componentId: "core-12_53_3__sc-1uf5708-36"
255
+ componentId: "core-12_53_4__sc-1uf5708-36"
256
256
  })(["display:contents;list-style:none;margin:0;padding:0;"]);
257
257
  export var StyledMultiValue = /*#__PURE__*/styled.li.withConfig({
258
258
  displayName: "StyledMultiValue",
259
- componentId: "core-12_53_3__sc-1uf5708-37"
259
+ componentId: "core-12_53_4__sc-1uf5708-37"
260
260
  })(["margin-bottom:2px;margin-right:", "px;margin-top:2px;flex:0 1 auto;> div{max-width:178px;width:100%;}"], spacing.xs);
261
261
  export var StyledMultiInputContainer = /*#__PURE__*/styled.div.withConfig({
262
262
  displayName: "StyledMultiInputContainer",
263
- componentId: "core-12_53_3__sc-1uf5708-38"
263
+ componentId: "core-12_53_4__sc-1uf5708-38"
264
264
  })(["margin-bottom:2px;margin-right:", "px;margin-top:2px;flex:1;max-width:100%;min-width:24px;"], spacing.xs);
265
265
  export var StyledMultiInput = /*#__PURE__*/styled.button.withConfig({
266
266
  displayName: "StyledMultiInput",
267
- componentId: "core-12_53_3__sc-1uf5708-39"
267
+ componentId: "core-12_53_4__sc-1uf5708-39"
268
268
  })(["background-color:transparent;border-width:0;font-family:inherit;padding:0;height:24px;width:100%;text-align:left;cursor:inherit;", " ", " ", " &:disabled{color:inherit;background-color:inherit;}&:focus{box-shadow:none;outline:none;}&:hover{background-color:inherit;border-color:inherit;color:", ";}"], getTypographyIntent('body'), function (_ref20) {
269
269
  var $isNavigatingTokens = _ref20.$isNavigatingTokens;
270
270
  return $isNavigatingTokens && css(["color:transparent;"]);
@@ -82,6 +82,12 @@ export interface SuperSelectConfig {
82
82
  placeholder?: string;
83
83
  preset?: SuperSelectPreset;
84
84
  presetProps?: SuperSelectPresetProps;
85
+ /**
86
+ * Marks the field as mandatory for assistive technology by setting
87
+ * `aria-required` on the element carrying `role="combobox"`. The visual
88
+ * required mark is rendered separately by `Form.Field`.
89
+ */
90
+ required?: boolean;
85
91
  search?: boolean;
86
92
  selectionStyle?: 'highlight' | 'checkbox' | 'checkmark';
87
93
  setOptionGroup?: (option: SuperSelectOption, group: string) => SuperSelectOption;
@@ -105,6 +111,7 @@ export interface SuperSelectApi {
105
111
  placeholder?: string;
106
112
  preset: SuperSelectPreset;
107
113
  presetProps?: any;
114
+ required: boolean;
108
115
  selectionStyle: 'highlight' | 'token' | 'checkbox' | 'checkmark';
109
116
  tabIndex: number;
110
117
  loading: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"SuperSelect.types.js","names":[],"sources":["../../src/SuperSelect/SuperSelect.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { VirtuosoHandle } from 'react-virtuoso'\nimport type * as defaultComponents from './SuperSelect.components'\nimport type { isOptgroupSymbol } from './SuperSelect.constants'\n\nexport interface TokenNavigationProps {\n enabled?: boolean\n tokenRemoveRefs?: React.MutableRefObject<Array<HTMLButtonElement | null>>\n value?: SuperSelectValue\n}\n\nexport interface KeyboardSelectionProps {\n enabled?: boolean\n onSelect?: () => void\n}\n\nexport type SuperSelectValuePrimitive = boolean | string | number\n\nexport type SuperSelectValue =\n | SuperSelectValuePrimitive\n | Array<SuperSelectValuePrimitive>\n | null\n\nexport type SuperSelectOption = any\n\nexport type SuperSelectPreset = '' | 'pill' | 'filter' | 'contacts'\n\nexport type SuperSelectResult = {\n destination?: { index: number } | null\n source: { index: number }\n}\n\nexport interface SuperSelectPresetProps {\n filter?: {\n filterName?: string\n }\n pill?: {}\n contacts?: {}\n ''?: {}\n}\n\nexport interface SuperSelectConfig {\n block?: boolean\n components?: Partial<typeof defaultComponents>\n defaultValue?: SuperSelectValue\n disabled?: boolean\n draggable?: boolean\n emptyMessage?: string\n selectAllEnabled?: boolean\n error?: boolean\n footer?: React.ReactElement\n getOptionGroup?: (option: SuperSelectOption) => string\n getOptionIsBatch?: (option: SuperSelectOption) => boolean\n getOptionIsDisabled?: (option: SuperSelectOption) => boolean\n getOptionIsPartiallySelected?: (option: SuperSelectOption) => boolean\n getOptionIsSelected?: (option: SuperSelectOption) => boolean\n getOptionLabel?: (option: SuperSelectOption) => string\n getOptionValue?: (option: SuperSelectOption) => SuperSelectValuePrimitive\n header?: React.ReactElement\n loading?: boolean\n multiple?: boolean\n onChange?: (value: SuperSelectValue) => void\n onManualSort?: (options: SuperSelectOption[]) => void\n onUnselectAll?: (\n value: SuperSelectValue,\n options: SuperSelectOption[],\n searchValue: string,\n getValue: (opt: SuperSelectOption) => Array<SuperSelectValuePrimitive>\n ) => SuperSelectValue\n /**\n * Callback function triggered when the \"Select All\" functionality is used in a multi-select SuperSelect.\n *\n * This prop is only relevant when `multiple={true}` and `selectAllEnabled={true}`. The callback is invoked\n * when users interact with a select all option in the select list that allows them to\n * select or deselect all available options at once.\n *\n * @param selectedOptions - An array of all options that would be selected when \"Select All\" is triggered.\n * This includes all selectable options (excluding disabled options) that are\n * currently visible and available for selection.\n *\n * @remarks\n * - Only called when the component is in multi-select mode (`multiple={true}`)\n * - Requires `selectAllEnabled={true}` to show the select-all UI\n * - Disabled options are automatically excluded from the selectedOptions array\n * - Allows additional customization of select-all behavior if needed by implementing custom logic within the callback\n *\n * @see {@link selectAllEnabled} - Enable the select-all functionality\n * @see {@link multiple} - Enable multi-select mode\n * @see {@link getOptionIsDisabled} - Function to determine if options are disabled\n */\n onSelectAll?: (selectedOptions: SuperSelectOption[]) => void\n onScrollBottom?: () => void\n onOpenChange?: (open: boolean) => void\n options?: SuperSelectOption[]\n placeholder?: string\n preset?: SuperSelectPreset\n presetProps?: SuperSelectPresetProps\n search?: boolean\n selectionStyle?: 'highlight' | 'checkbox' | 'checkmark'\n setOptionGroup?: (\n option: SuperSelectOption,\n group: string\n ) => SuperSelectOption\n sort?: boolean\n tabIndex?: number\n value?: SuperSelectValue\n overlayMatchesTriggerWidth?: boolean\n 'aria-label'?: string\n 'aria-labelledby'?: string\n}\n\nexport type SuperSelectProps = SuperSelectConfig\n\nexport interface SuperSelectApi {\n config: {\n block: boolean\n disabled: boolean\n draggable: boolean\n emptyMessage: string\n error?: boolean\n footer?: React.ReactElement\n header?: React.ReactElement\n placeholder?: string\n preset: SuperSelectPreset\n presetProps?: any\n selectionStyle: 'highlight' | 'token' | 'checkbox' | 'checkmark'\n tabIndex: number\n loading: boolean\n multiple: boolean\n selectAllEnabled: boolean\n }\n components: typeof defaultComponents\n state: {\n activeMenuIndex: number | null\n isEmpty: () => boolean\n isSelectAllActive: boolean\n listContainerHeight: number\n listId: string\n maxHeight: number\n tokenListId: string\n onDragEnd: (result: SuperSelectResult) => void\n onSelect: (option: SuperSelectOption) => void\n onSelectAll?: (selectedOptions: SuperSelectOption[]) => void\n open: boolean\n options: SuperSelectOption[]\n overlayId: string\n searchValue: string\n selectAllOption: SuperSelectOption\n selectedIndex: number | null\n selectedLabel: string\n selectedOption: SuperSelectOption | null\n setOpen: (open: boolean) => void\n pointer: boolean\n setPointer: any\n setActiveMenuIndex: (index: number | null) => void\n setSearchValue: ((value: string) => void) & { cancel: () => void }\n sourceOptions: SuperSelectOption[]\n value: SuperSelectValue\n width: number\n }\n props: {\n clear: () => Record<string, any>\n emptyMessage: () => Record<string, any>\n footer: () => Record<string, any>\n header: () => Record<string, any>\n item: (...args: any[]) => Record<string, any>\n label: () => Record<string, any>\n menu: () => Record<string, any>\n multiInput: () => Record<string, any>\n overlay: () => Record<string, any>\n search: () => Record<string, any>\n searchContainer: () => Record<string, any>\n statusMessage: () => Record<string, any>\n tokenClear: (index: number) => Record<string, any>\n trigger: () => Record<string, any>\n virtuoso: () => Record<string, any>\n }\n option: {\n group: (option: SuperSelectOption) => string\n isBatch: (option: SuperSelectOption) => boolean\n isPartiallySelected: (option: SuperSelectOption) => boolean\n isSelected: (option: SuperSelectOption) => boolean\n isDisabled: (option: SuperSelectOption) => boolean\n isOptgroup: (option: SuperSelectOption) => boolean\n isOptSelectAll: (option: SuperSelectOption) => boolean\n label: (option: SuperSelectOption) => string\n selectAll: {\n isSelectAllPartiallySelected: (options: SuperSelectOption[]) => boolean\n isSelectAllSelected: (options: SuperSelectOption[]) => boolean\n }\n value: (option: SuperSelectOption) => SuperSelectValuePrimitive\n }\n refs: {\n floating: any\n navigationList: any\n virtuoso: React.RefObject<VirtuosoHandle>\n }\n}\n\nexport interface SuperSelectTriggerProps {\n block?: boolean\n disabled?: boolean\n error?: boolean\n loading?: boolean\n placeholder?: string\n search?: boolean\n tabIndex?: number\n}\n\nexport interface SuperSelectOptgroup {\n label: string\n id: string\n [isOptgroupSymbol]: true\n}\n\nexport interface SuperSelectMenuItemProps\n extends React.HTMLAttributes<HTMLDivElement> {\n isDragging?: boolean\n // data attributes are passed by Virtuoso\n 'data-known-size'?: number\n 'data-index': number\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"SuperSelect.types.js","names":[],"sources":["../../src/SuperSelect/SuperSelect.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { VirtuosoHandle } from 'react-virtuoso'\nimport type * as defaultComponents from './SuperSelect.components'\nimport type { isOptgroupSymbol } from './SuperSelect.constants'\n\nexport interface TokenNavigationProps {\n enabled?: boolean\n tokenRemoveRefs?: React.MutableRefObject<Array<HTMLButtonElement | null>>\n value?: SuperSelectValue\n}\n\nexport interface KeyboardSelectionProps {\n enabled?: boolean\n onSelect?: () => void\n}\n\nexport type SuperSelectValuePrimitive = boolean | string | number\n\nexport type SuperSelectValue =\n | SuperSelectValuePrimitive\n | Array<SuperSelectValuePrimitive>\n | null\n\nexport type SuperSelectOption = any\n\nexport type SuperSelectPreset = '' | 'pill' | 'filter' | 'contacts'\n\nexport type SuperSelectResult = {\n destination?: { index: number } | null\n source: { index: number }\n}\n\nexport interface SuperSelectPresetProps {\n filter?: {\n filterName?: string\n }\n pill?: {}\n contacts?: {}\n ''?: {}\n}\n\nexport interface SuperSelectConfig {\n block?: boolean\n components?: Partial<typeof defaultComponents>\n defaultValue?: SuperSelectValue\n disabled?: boolean\n draggable?: boolean\n emptyMessage?: string\n selectAllEnabled?: boolean\n error?: boolean\n footer?: React.ReactElement\n getOptionGroup?: (option: SuperSelectOption) => string\n getOptionIsBatch?: (option: SuperSelectOption) => boolean\n getOptionIsDisabled?: (option: SuperSelectOption) => boolean\n getOptionIsPartiallySelected?: (option: SuperSelectOption) => boolean\n getOptionIsSelected?: (option: SuperSelectOption) => boolean\n getOptionLabel?: (option: SuperSelectOption) => string\n getOptionValue?: (option: SuperSelectOption) => SuperSelectValuePrimitive\n header?: React.ReactElement\n loading?: boolean\n multiple?: boolean\n onChange?: (value: SuperSelectValue) => void\n onManualSort?: (options: SuperSelectOption[]) => void\n onUnselectAll?: (\n value: SuperSelectValue,\n options: SuperSelectOption[],\n searchValue: string,\n getValue: (opt: SuperSelectOption) => Array<SuperSelectValuePrimitive>\n ) => SuperSelectValue\n /**\n * Callback function triggered when the \"Select All\" functionality is used in a multi-select SuperSelect.\n *\n * This prop is only relevant when `multiple={true}` and `selectAllEnabled={true}`. The callback is invoked\n * when users interact with a select all option in the select list that allows them to\n * select or deselect all available options at once.\n *\n * @param selectedOptions - An array of all options that would be selected when \"Select All\" is triggered.\n * This includes all selectable options (excluding disabled options) that are\n * currently visible and available for selection.\n *\n * @remarks\n * - Only called when the component is in multi-select mode (`multiple={true}`)\n * - Requires `selectAllEnabled={true}` to show the select-all UI\n * - Disabled options are automatically excluded from the selectedOptions array\n * - Allows additional customization of select-all behavior if needed by implementing custom logic within the callback\n *\n * @see {@link selectAllEnabled} - Enable the select-all functionality\n * @see {@link multiple} - Enable multi-select mode\n * @see {@link getOptionIsDisabled} - Function to determine if options are disabled\n */\n onSelectAll?: (selectedOptions: SuperSelectOption[]) => void\n onScrollBottom?: () => void\n onOpenChange?: (open: boolean) => void\n options?: SuperSelectOption[]\n placeholder?: string\n preset?: SuperSelectPreset\n presetProps?: SuperSelectPresetProps\n /**\n * Marks the field as mandatory for assistive technology by setting\n * `aria-required` on the element carrying `role=\"combobox\"`. The visual\n * required mark is rendered separately by `Form.Field`.\n */\n required?: boolean\n search?: boolean\n selectionStyle?: 'highlight' | 'checkbox' | 'checkmark'\n setOptionGroup?: (\n option: SuperSelectOption,\n group: string\n ) => SuperSelectOption\n sort?: boolean\n tabIndex?: number\n value?: SuperSelectValue\n overlayMatchesTriggerWidth?: boolean\n 'aria-label'?: string\n 'aria-labelledby'?: string\n}\n\nexport type SuperSelectProps = SuperSelectConfig\n\nexport interface SuperSelectApi {\n config: {\n block: boolean\n disabled: boolean\n draggable: boolean\n emptyMessage: string\n error?: boolean\n footer?: React.ReactElement\n header?: React.ReactElement\n placeholder?: string\n preset: SuperSelectPreset\n presetProps?: any\n required: boolean\n selectionStyle: 'highlight' | 'token' | 'checkbox' | 'checkmark'\n tabIndex: number\n loading: boolean\n multiple: boolean\n selectAllEnabled: boolean\n }\n components: typeof defaultComponents\n state: {\n activeMenuIndex: number | null\n isEmpty: () => boolean\n isSelectAllActive: boolean\n listContainerHeight: number\n listId: string\n maxHeight: number\n tokenListId: string\n onDragEnd: (result: SuperSelectResult) => void\n onSelect: (option: SuperSelectOption) => void\n onSelectAll?: (selectedOptions: SuperSelectOption[]) => void\n open: boolean\n options: SuperSelectOption[]\n overlayId: string\n searchValue: string\n selectAllOption: SuperSelectOption\n selectedIndex: number | null\n selectedLabel: string\n selectedOption: SuperSelectOption | null\n setOpen: (open: boolean) => void\n pointer: boolean\n setPointer: any\n setActiveMenuIndex: (index: number | null) => void\n setSearchValue: ((value: string) => void) & { cancel: () => void }\n sourceOptions: SuperSelectOption[]\n value: SuperSelectValue\n width: number\n }\n props: {\n clear: () => Record<string, any>\n emptyMessage: () => Record<string, any>\n footer: () => Record<string, any>\n header: () => Record<string, any>\n item: (...args: any[]) => Record<string, any>\n label: () => Record<string, any>\n menu: () => Record<string, any>\n multiInput: () => Record<string, any>\n overlay: () => Record<string, any>\n search: () => Record<string, any>\n searchContainer: () => Record<string, any>\n statusMessage: () => Record<string, any>\n tokenClear: (index: number) => Record<string, any>\n trigger: () => Record<string, any>\n virtuoso: () => Record<string, any>\n }\n option: {\n group: (option: SuperSelectOption) => string\n isBatch: (option: SuperSelectOption) => boolean\n isPartiallySelected: (option: SuperSelectOption) => boolean\n isSelected: (option: SuperSelectOption) => boolean\n isDisabled: (option: SuperSelectOption) => boolean\n isOptgroup: (option: SuperSelectOption) => boolean\n isOptSelectAll: (option: SuperSelectOption) => boolean\n label: (option: SuperSelectOption) => string\n selectAll: {\n isSelectAllPartiallySelected: (options: SuperSelectOption[]) => boolean\n isSelectAllSelected: (options: SuperSelectOption[]) => boolean\n }\n value: (option: SuperSelectOption) => SuperSelectValuePrimitive\n }\n refs: {\n floating: any\n navigationList: any\n virtuoso: React.RefObject<VirtuosoHandle>\n }\n}\n\nexport interface SuperSelectTriggerProps {\n block?: boolean\n disabled?: boolean\n error?: boolean\n loading?: boolean\n placeholder?: string\n search?: boolean\n tabIndex?: number\n}\n\nexport interface SuperSelectOptgroup {\n label: string\n id: string\n [isOptgroupSymbol]: true\n}\n\nexport interface SuperSelectMenuItemProps\n extends React.HTMLAttributes<HTMLDivElement> {\n isDragging?: boolean\n // data attributes are passed by Virtuoso\n 'data-known-size'?: number\n 'data-index': number\n}\n"],"mappings":"","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { SuperSelectApi, SuperSelectConfig } from './SuperSelect.types';
3
- export declare function useSuperSelect({ block, components: customComponents, defaultValue, disabled, draggable, emptyMessage, selectAllEnabled, error, footer, getOptionGroup, getOptionIsBatch, getOptionIsDisabled, getOptionLabel, getOptionIsPartiallySelected, getOptionIsSelected, getOptionValue, onScrollBottom, onOpenChange, header, loading, multiple, onChange, onManualSort, onUnselectAll, onSelectAll, options: sourceOptions, placeholder, preset, presetProps, search, selectionStyle, setOptionGroup, sort, tabIndex, value: value_, overlayMatchesTriggerWidth, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, }: SuperSelectConfig): SuperSelectApi;
3
+ export declare function useSuperSelect({ block, components: customComponents, defaultValue, disabled, draggable, emptyMessage, selectAllEnabled, error, footer, getOptionGroup, getOptionIsBatch, getOptionIsDisabled, getOptionLabel, getOptionIsPartiallySelected, getOptionIsSelected, getOptionValue, onScrollBottom, onOpenChange, header, loading, multiple, onChange, onManualSort, onUnselectAll, onSelectAll, options: sourceOptions, placeholder, preset, presetProps, required, search, selectionStyle, setOptionGroup, sort, tabIndex, value: value_, overlayMatchesTriggerWidth, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, }: SuperSelectConfig): SuperSelectApi;
4
4
  export declare const SuperSelectContext: React.Context<SuperSelectApi | null>;
5
5
  export declare function useSuperSelectContext(): SuperSelectApi;
@@ -151,6 +151,8 @@ export function useSuperSelect(_ref3) {
151
151
  _ref3$preset = _ref3.preset,
152
152
  preset = _ref3$preset === void 0 ? '' : _ref3$preset,
153
153
  presetProps = _ref3.presetProps,
154
+ _ref3$required = _ref3.required,
155
+ required = _ref3$required === void 0 ? false : _ref3$required,
154
156
  _ref3$search = _ref3.search,
155
157
  search = _ref3$search === void 0 ? true : _ref3$search,
156
158
  _ref3$selectionStyle = _ref3.selectionStyle,
@@ -920,7 +922,8 @@ export function useSuperSelect(_ref3) {
920
922
  'aria-controls': open ? listId : undefined,
921
923
  'aria-describedby': selectedValueId,
922
924
  'aria-expanded': open,
923
- 'aria-haspopup': 'listbox'
925
+ 'aria-haspopup': 'listbox',
926
+ 'aria-required': required || undefined
924
927
  }, getAriaLabelProps()), {}, {
925
928
  role: 'combobox',
926
929
  tabIndex: disabled ? -1 : tabIndex
@@ -975,7 +978,8 @@ export function useSuperSelect(_ref3) {
975
978
  'aria-activedescendant': activeDescendantId,
976
979
  'aria-controls': open ? listId : undefined,
977
980
  'aria-expanded': open,
978
- 'aria-haspopup': 'listbox'
981
+ 'aria-haspopup': 'listbox',
982
+ 'aria-required': required || undefined
979
983
  }, getAriaLabelProps()), {}, {
980
984
  role: 'combobox',
981
985
  ref: searchRef,
@@ -1297,6 +1301,7 @@ export function useSuperSelect(_ref3) {
1297
1301
  placeholder: placeholder,
1298
1302
  preset: preset,
1299
1303
  presetProps: presetProps,
1304
+ required: required,
1300
1305
  selectionStyle: selectionStyle,
1301
1306
  tabIndex: tabIndex,
1302
1307
  loading: loading,