@kaizen/components 2.4.0 → 3.0.0

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 (216) hide show
  1. package/dist/cjs/src/Button/Button.cjs +2 -4
  2. package/dist/cjs/src/GuidanceBlock/GuidanceBlock.cjs +16 -82
  3. package/dist/cjs/src/GuidanceBlock/GuidanceBlock.module.css.cjs +0 -1
  4. package/dist/cjs/src/Heading/Heading.cjs +1 -1
  5. package/dist/cjs/src/Heading/Heading.module.css.cjs +22 -0
  6. package/dist/cjs/src/Label/Label.cjs +1 -1
  7. package/dist/cjs/src/Label/Label.module.css.cjs +16 -0
  8. package/dist/cjs/src/LabelledMessage/LabelledMessage.cjs +1 -1
  9. package/dist/cjs/src/LabelledMessage/LabelledMessage.module.css.cjs +7 -0
  10. package/dist/cjs/src/LinkButton/LinkButton.cjs +2 -4
  11. package/dist/cjs/src/Modal/ConfirmationModal/ConfirmationModal.cjs +3 -2
  12. package/dist/cjs/src/Modal/ContextModal/ContextModal.cjs +0 -1
  13. package/dist/cjs/src/Modal/GenericModal/GenericModal.cjs +2 -2
  14. package/dist/cjs/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.cjs +3 -6
  15. package/dist/cjs/src/Notification/InlineNotification/InlineNotification.cjs +1 -1
  16. package/dist/cjs/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.cjs +1 -1
  17. package/dist/cjs/src/Notification/ToastNotification/ToastNotificationsList/{ToastNotificationsList.module.scss.cjs → ToastNotificationsList.module.css.cjs} +1 -1
  18. package/dist/cjs/src/Notification/subcomponents/CancelButton/CancelButton.cjs +1 -1
  19. package/dist/cjs/src/Notification/subcomponents/GenericNotification/GenericNotification.cjs +1 -1
  20. package/dist/cjs/src/Notification/subcomponents/GenericNotification/GenericNotification.module.css.cjs +29 -0
  21. package/dist/cjs/src/Notification/subcomponents/NotificationHeading/NotificationHeading.cjs +1 -1
  22. package/dist/cjs/src/Select/Select.cjs +23 -22
  23. package/dist/cjs/src/Select/Select.module.scss.cjs +0 -1
  24. package/dist/cjs/src/SingleSelect/SingleSelect.cjs +12 -19
  25. package/dist/cjs/src/SingleSelect/subcomponents/SelectToggle/SelectToggle.cjs +3 -5
  26. package/dist/cjs/src/SingleSelect/subcomponents/SelectToggle/SelectToggle.module.scss.cjs +0 -1
  27. package/dist/cjs/src/Text/Text.cjs +1 -1
  28. package/dist/cjs/src/Text/Text.module.css.cjs +16 -0
  29. package/dist/cjs/src/TimeField/TimeField.cjs +2 -3
  30. package/dist/cjs/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.cjs +1 -1
  31. package/dist/cjs/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.css.cjs +13 -0
  32. package/dist/cjs/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.cjs +1 -1
  33. package/dist/cjs/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.css.cjs +9 -0
  34. package/dist/cjs/src/Tooltip/OverlayArrow.cjs +1 -1
  35. package/dist/cjs/src/Tooltip/OverlayArrow.module.css.cjs +7 -0
  36. package/dist/cjs/src/Tooltip/Tooltip.cjs +1 -1
  37. package/dist/cjs/src/Tooltip/Tooltip.module.css.cjs +7 -0
  38. package/dist/esm/src/Button/Button.mjs +2 -4
  39. package/dist/esm/src/GuidanceBlock/GuidanceBlock.mjs +18 -84
  40. package/dist/esm/src/GuidanceBlock/GuidanceBlock.module.css.mjs +0 -1
  41. package/dist/esm/src/Heading/Heading.mjs +1 -1
  42. package/dist/esm/src/Heading/Heading.module.css.mjs +20 -0
  43. package/dist/esm/src/Label/Label.mjs +1 -1
  44. package/dist/esm/src/Label/Label.module.css.mjs +14 -0
  45. package/dist/esm/src/LabelledMessage/LabelledMessage.mjs +1 -1
  46. package/dist/esm/src/LabelledMessage/LabelledMessage.module.css.mjs +5 -0
  47. package/dist/esm/src/LinkButton/LinkButton.mjs +2 -4
  48. package/dist/esm/src/Modal/ConfirmationModal/ConfirmationModal.mjs +3 -2
  49. package/dist/esm/src/Modal/ContextModal/ContextModal.mjs +0 -1
  50. package/dist/esm/src/Modal/GenericModal/GenericModal.mjs +2 -2
  51. package/dist/esm/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.mjs +3 -6
  52. package/dist/esm/src/Notification/InlineNotification/InlineNotification.mjs +1 -1
  53. package/dist/esm/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.mjs +1 -1
  54. package/dist/esm/src/Notification/ToastNotification/ToastNotificationsList/{ToastNotificationsList.module.scss.mjs → ToastNotificationsList.module.css.mjs} +1 -1
  55. package/dist/esm/src/Notification/subcomponents/CancelButton/CancelButton.mjs +1 -1
  56. package/dist/esm/src/Notification/subcomponents/GenericNotification/GenericNotification.mjs +1 -1
  57. package/dist/esm/src/Notification/subcomponents/GenericNotification/GenericNotification.module.css.mjs +27 -0
  58. package/dist/esm/src/Notification/subcomponents/NotificationHeading/NotificationHeading.mjs +1 -1
  59. package/dist/esm/src/Select/Select.mjs +23 -22
  60. package/dist/esm/src/Select/Select.module.scss.mjs +0 -1
  61. package/dist/esm/src/SingleSelect/SingleSelect.mjs +12 -19
  62. package/dist/esm/src/SingleSelect/subcomponents/SelectToggle/SelectToggle.mjs +3 -5
  63. package/dist/esm/src/SingleSelect/subcomponents/SelectToggle/SelectToggle.module.scss.mjs +0 -1
  64. package/dist/esm/src/Text/Text.mjs +1 -1
  65. package/dist/esm/src/Text/Text.module.css.mjs +14 -0
  66. package/dist/esm/src/TimeField/TimeField.mjs +2 -3
  67. package/dist/esm/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.mjs +1 -1
  68. package/dist/esm/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.css.mjs +11 -0
  69. package/dist/esm/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.mjs +1 -1
  70. package/dist/esm/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.css.mjs +7 -0
  71. package/dist/esm/src/Tooltip/OverlayArrow.mjs +1 -1
  72. package/dist/esm/src/Tooltip/OverlayArrow.module.css.mjs +5 -0
  73. package/dist/esm/src/Tooltip/Tooltip.mjs +1 -1
  74. package/dist/esm/src/Tooltip/Tooltip.module.css.mjs +5 -0
  75. package/dist/styles.css +725 -613
  76. package/dist/types/Button/Button.d.ts +0 -5
  77. package/dist/types/Calendar/CalendarRange/CalendarRange.d.ts +2 -1
  78. package/dist/types/Calendar/CalendarSingle/CalendarSingle.d.ts +2 -1
  79. package/dist/types/Calendar/types.d.ts +1 -0
  80. package/dist/types/GuidanceBlock/GuidanceBlock.d.ts +1 -26
  81. package/dist/types/Input/Input/Input.d.ts +1 -6
  82. package/dist/types/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.d.ts +1 -5
  83. package/dist/types/Select/Select.d.ts +3 -13
  84. package/dist/types/SingleSelect/SingleSelect.d.ts +2 -24
  85. package/dist/types/SingleSelect/subcomponents/SelectToggle/SelectToggle.d.ts +2 -12
  86. package/dist/types/TextArea/TextArea.d.ts +1 -6
  87. package/dist/types/TimeField/TimeField.d.ts +1 -1
  88. package/locales/ar.json +4 -0
  89. package/locales/bg.json +4 -0
  90. package/locales/cs.json +4 -0
  91. package/locales/cy.json +4 -0
  92. package/locales/da.json +4 -0
  93. package/locales/de.json +4 -0
  94. package/locales/el.json +4 -0
  95. package/locales/en-GB.json +4 -0
  96. package/locales/en.json +4 -0
  97. package/locales/es-419.json +4 -0
  98. package/locales/es.json +4 -0
  99. package/locales/et.json +4 -0
  100. package/locales/fi.json +4 -0
  101. package/locales/fr-CA.json +4 -0
  102. package/locales/fr.json +4 -0
  103. package/locales/he.json +4 -0
  104. package/locales/hi.json +4 -0
  105. package/locales/ht.json +4 -0
  106. package/locales/hu.json +4 -0
  107. package/locales/id.json +4 -0
  108. package/locales/it.json +4 -0
  109. package/locales/ja.json +4 -0
  110. package/locales/km-KH.json +4 -0
  111. package/locales/ko.json +4 -0
  112. package/locales/lt.json +4 -0
  113. package/locales/lv.json +4 -0
  114. package/locales/mi.json +4 -0
  115. package/locales/ms.json +4 -0
  116. package/locales/nb.json +4 -0
  117. package/locales/nl.json +4 -0
  118. package/locales/pl.json +4 -0
  119. package/locales/pt-BR.json +4 -0
  120. package/locales/pt.json +4 -0
  121. package/locales/ro.json +4 -0
  122. package/locales/ru.json +4 -0
  123. package/locales/si-LK.json +4 -0
  124. package/locales/sk.json +4 -0
  125. package/locales/sr.json +4 -0
  126. package/locales/sv.json +4 -0
  127. package/locales/th.json +4 -0
  128. package/locales/tl.json +4 -0
  129. package/locales/tr.json +4 -0
  130. package/locales/uk.json +4 -0
  131. package/locales/vi.json +4 -0
  132. package/locales/zh-TW.json +4 -0
  133. package/locales/zh.json +4 -0
  134. package/package.json +1 -2
  135. package/src/Button/Button.tsx +1 -8
  136. package/src/Button/_docs/Button--api-specification.mdx +0 -1
  137. package/src/Calendar/CalendarRange/CalendarRange.tsx +4 -1
  138. package/src/Calendar/CalendarSingle/CalendarSingle.tsx +4 -1
  139. package/src/Calendar/types.ts +18 -0
  140. package/src/GuidanceBlock/GuidanceBlock.module.css +0 -8
  141. package/src/GuidanceBlock/GuidanceBlock.spec.tsx +1 -26
  142. package/src/GuidanceBlock/GuidanceBlock.tsx +2 -112
  143. package/src/GuidanceBlock/_docs/GuidanceBlock.stories.tsx +0 -90
  144. package/src/Heading/Heading.module.css +111 -0
  145. package/src/Heading/Heading.tsx +1 -1
  146. package/src/Input/Input/Input.module.scss +0 -31
  147. package/src/Input/Input/Input.tsx +1 -6
  148. package/src/Label/Label.module.css +97 -0
  149. package/src/Label/Label.tsx +1 -1
  150. package/src/Label/_docs/Label.stickersheet.stories.tsx +9 -4
  151. package/src/LabelledMessage/{LabelledMessage.module.scss → LabelledMessage.module.css} +1 -3
  152. package/src/LabelledMessage/LabelledMessage.tsx +1 -1
  153. package/src/LinkButton/LinkButton.tsx +1 -3
  154. package/src/LinkButton/_docs/LinkButton--api-specification.mdx +0 -1
  155. package/src/Modal/ConfirmationModal/ConfirmationModal.tsx +7 -6
  156. package/src/Modal/ContextModal/ContextModal.tsx +0 -1
  157. package/src/Modal/GenericModal/GenericModal.tsx +3 -4
  158. package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.tsx +2 -8
  159. package/src/Notification/InlineNotification/InlineNotification.tsx +1 -1
  160. package/src/Notification/InlineNotification/_docs/InlineNotification.stickersheet.stories.tsx +1 -1
  161. package/src/Notification/ToastNotification/ToastNotificationsList/{ToastNotificationsList.module.scss → ToastNotificationsList.module.css} +6 -8
  162. package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.tsx +1 -1
  163. package/src/Notification/subcomponents/CancelButton/CancelButton.tsx +1 -1
  164. package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.css +392 -0
  165. package/src/Notification/subcomponents/GenericNotification/GenericNotification.tsx +1 -1
  166. package/src/Notification/subcomponents/NotificationHeading/NotificationHeading.tsx +1 -1
  167. package/src/Select/Select.module.scss +0 -16
  168. package/src/Select/Select.tsx +24 -25
  169. package/src/SingleSelect/SingleSelect.tsx +1 -14
  170. package/src/SingleSelect/_docs/SingleSelect.stories.tsx +5 -2
  171. package/src/SingleSelect/subcomponents/SelectToggle/SelectToggle.module.scss +0 -8
  172. package/src/SingleSelect/subcomponents/SelectToggle/SelectToggle.tsx +2 -9
  173. package/src/Text/Text.module.css +71 -0
  174. package/src/Text/Text.tsx +1 -1
  175. package/src/TextArea/TextArea.tsx +1 -6
  176. package/src/TimeField/TimeField.tsx +2 -9
  177. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.css +141 -0
  178. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.tsx +1 -1
  179. package/src/ToggleSwitch/ToggleSwitchField/{ToggleSwitchField.module.scss → ToggleSwitchField.module.css} +1 -3
  180. package/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.tsx +1 -1
  181. package/src/Tooltip/OverlayArrow.module.css +45 -0
  182. package/src/Tooltip/OverlayArrow.tsx +1 -1
  183. package/src/Tooltip/Tooltip.module.css +62 -0
  184. package/src/Tooltip/Tooltip.tsx +1 -1
  185. package/dist/cjs/src/Heading/Heading.module.scss.cjs +0 -22
  186. package/dist/cjs/src/Label/Label.module.scss.cjs +0 -15
  187. package/dist/cjs/src/LabelledMessage/LabelledMessage.module.scss.cjs +0 -7
  188. package/dist/cjs/src/Modal/util/console.cjs +0 -16
  189. package/dist/cjs/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss.cjs +0 -29
  190. package/dist/cjs/src/Text/Text.module.scss.cjs +0 -16
  191. package/dist/cjs/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss.cjs +0 -13
  192. package/dist/cjs/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss.cjs +0 -9
  193. package/dist/cjs/src/Tooltip/OverlayArrow.module.scss.cjs +0 -7
  194. package/dist/cjs/src/Tooltip/Tooltip.module.scss.cjs +0 -7
  195. package/dist/esm/src/Heading/Heading.module.scss.mjs +0 -20
  196. package/dist/esm/src/Label/Label.module.scss.mjs +0 -13
  197. package/dist/esm/src/LabelledMessage/LabelledMessage.module.scss.mjs +0 -5
  198. package/dist/esm/src/Modal/util/console.mjs +0 -13
  199. package/dist/esm/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss.mjs +0 -27
  200. package/dist/esm/src/Text/Text.module.scss.mjs +0 -14
  201. package/dist/esm/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss.mjs +0 -11
  202. package/dist/esm/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss.mjs +0 -7
  203. package/dist/esm/src/Tooltip/OverlayArrow.module.scss.mjs +0 -5
  204. package/dist/esm/src/Tooltip/Tooltip.module.scss.mjs +0 -5
  205. package/dist/types/Modal/util/console.d.ts +0 -5
  206. package/dist/types/utils/useResizeObserver.d.ts +0 -22
  207. package/src/Heading/Heading.module.scss +0 -115
  208. package/src/Label/Label.module.scss +0 -105
  209. package/src/Modal/util/console.ts +0 -13
  210. package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +0 -138
  211. package/src/Notification/subcomponents/GenericNotification/_mixins.scss +0 -366
  212. package/src/Text/Text.module.scss +0 -74
  213. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +0 -139
  214. package/src/Tooltip/OverlayArrow.module.scss +0 -45
  215. package/src/Tooltip/Tooltip.module.scss +0 -68
  216. package/src/utils/useResizeObserver.ts +0 -73
@@ -33,10 +33,8 @@ var Button = React.forwardRef(function (_a, ref) {
33
33
  _f = _a.hasHiddenPendingLabel,
34
34
  propsHasHiddenPendingLabel = _f === void 0 ? false : _f,
35
35
  pendingLabel = _a.pendingLabel,
36
- isReversed = _a.isReversed,
37
- restProps = tslib.__rest(_a, ["variant", "size", "className", "children", "isDisabled", "isFullWidth", "icon", "iconPosition", "hasHiddenLabel", "isPending", "hasHiddenPendingLabel", "pendingLabel", "isReversed"]);
38
- var shouldUseReverse = ReversedColors.useReversedColors();
39
- var isReversedVariant = isReversed !== null && isReversed !== void 0 ? isReversed : shouldUseReverse;
36
+ restProps = tslib.__rest(_a, ["variant", "size", "className", "children", "isDisabled", "isFullWidth", "icon", "iconPosition", "hasHiddenLabel", "isPending", "hasHiddenPendingLabel", "pendingLabel"]);
37
+ var isReversedVariant = ReversedColors.useReversedColors();
40
38
  var pendingProps = isPending ? {
41
39
  isPending: isPending,
42
40
  hasHiddenPendingLabel: hasHiddenLabel || propsHasHiddenPendingLabel,
@@ -3,12 +3,8 @@
3
3
  var tslib = require('tslib');
4
4
  var React = require('react');
5
5
  var classnames = require('classnames');
6
- var Button = require('../ButtonV1/Button/Button.cjs');
7
- require('../ButtonV1/IconButton/IconButton.cjs');
8
6
  var Heading = require('../Heading/Heading.cjs');
9
- var Icon = require('../Icon/Icon.cjs');
10
7
  var Text = require('../Text/Text.cjs');
11
- var Tooltip = require('../TooltipV1/Tooltip.cjs');
12
8
  var useMediaQueries = require('../utils/useMediaQueries.cjs');
13
9
  var GuidanceBlock_module = require('./GuidanceBlock.module.css.cjs');
14
10
  function _interopDefault(e) {
@@ -18,69 +14,29 @@ function _interopDefault(e) {
18
14
  }
19
15
  var React__default = /*#__PURE__*/_interopDefault(React);
20
16
  var classnames__default = /*#__PURE__*/_interopDefault(classnames);
21
- var WithTooltip = function (_a) {
22
- var tooltipProps = _a.tooltipProps,
23
- children = _a.children;
24
- return tooltipProps ? React__default.default.createElement(Tooltip.Tooltip, tslib.__assign({}, tooltipProps), children) : React__default.default.createElement(React__default.default.Fragment, null, children);
25
- };
17
+
26
18
  /**
27
19
  * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082093807/Guidance+Block Guidance} |
28
20
  * {@link https://cultureamp.design/?path=/docs/components-guidanceblock--docs Storybook}
29
21
  */
30
22
  var GuidanceBlock = function (_a) {
31
- var _b, _c, _d, _e, _f;
32
- var _g = _a.layout,
33
- layout = _g === void 0 ? 'default' : _g,
34
- _h = _a.variant,
35
- variant = _h === void 0 ? 'default' : _h,
36
- _j = _a.withActionButtonArrow,
37
- withActionButtonArrow = _j === void 0 ? true : _j,
38
- _k = _a.noMaxWidth,
39
- noMaxWidth = _k === void 0 ? false : _k,
40
- _l = _a.illustrationType,
41
- illustrationType = _l === void 0 ? 'spot' : _l,
42
- _m = _a.smallScreenTextAlignment,
43
- smallScreenTextAlignment = _m === void 0 ? 'center' : _m,
44
- actions = _a.actions,
23
+ var _b, _c, _d, _e;
24
+ var _f = _a.layout,
25
+ layout = _f === void 0 ? 'default' : _f,
26
+ _g = _a.variant,
27
+ variant = _g === void 0 ? 'default' : _g,
28
+ _h = _a.noMaxWidth,
29
+ noMaxWidth = _h === void 0 ? false : _h,
30
+ _j = _a.illustrationType,
31
+ illustrationType = _j === void 0 ? 'spot' : _j,
32
+ _k = _a.smallScreenTextAlignment,
33
+ smallScreenTextAlignment = _k === void 0 ? 'center' : _k,
45
34
  illustration = _a.illustration,
46
- secondaryDismiss = _a.secondaryDismiss,
47
35
  actionsSlot = _a.actionsSlot,
48
- restProps = tslib.__rest(_a, ["layout", "variant", "withActionButtonArrow", "noMaxWidth", "illustrationType", "smallScreenTextAlignment", "actions", "illustration", "secondaryDismiss", "actionsSlot"]);
49
- var _o = React.useState(false),
50
- hidden = _o[0],
51
- setHidden = _o[1];
52
- var _p = React.useState(false),
53
- removed = _p[0],
54
- setRemoved = _p[1];
36
+ restProps = tslib.__rest(_a, ["layout", "variant", "noMaxWidth", "illustrationType", "smallScreenTextAlignment", "illustration", "actionsSlot"]);
55
37
  var queries = useMediaQueries.useMediaQueries().queries;
56
- var containerRef = React__default.default.createRef();
57
- var handleDismissBanner = function () {
58
- var _a;
59
- setHidden(true);
60
- (_a = actions === null || actions === void 0 ? void 0 : actions.dismiss) === null || _a === void 0 ? void 0 : _a.onClick();
61
- };
62
- var onTransitionEnd = function (e) {
63
- // Be careful: this assumes the final CSS property to be animated is "margin-top".
64
- if (hidden && e.propertyName === 'margin-top') {
65
- setRemoved(true);
66
- }
67
- };
68
- var marginTop = function () {
69
- if (hidden && containerRef.current) {
70
- return -containerRef.current.clientHeight + 'px';
71
- }
72
- return '0';
73
- };
74
- if (removed) {
75
- return React__default.default.createElement(React__default.default.Fragment, null);
76
- }
77
38
  return React__default.default.createElement("div", {
78
- className: classnames__default.default(GuidanceBlock_module.banner, variant && GuidanceBlock_module[variant], layout && GuidanceBlock_module[layout], hidden && GuidanceBlock_module.hidden, queries.isSmall && GuidanceBlock_module.centerContent, noMaxWidth && GuidanceBlock_module.noMaxWidth, illustrationType === 'scene' && GuidanceBlock_module.hasSceneIllustration, smallScreenTextAlignment === 'left' && GuidanceBlock_module.smallScreenTextAlignment),
79
- style: {
80
- marginTop: marginTop()
81
- },
82
- ref: containerRef,
83
- onTransitionEnd: onTransitionEnd
39
+ className: classnames__default.default(GuidanceBlock_module.banner, variant && GuidanceBlock_module[variant], layout && GuidanceBlock_module[layout], queries.isSmall && GuidanceBlock_module.centerContent, noMaxWidth && GuidanceBlock_module.noMaxWidth, illustrationType === 'scene' && GuidanceBlock_module.hasSceneIllustration, smallScreenTextAlignment === 'left' && GuidanceBlock_module.smallScreenTextAlignment)
84
40
  }, React__default.default.createElement("div", {
85
41
  className: GuidanceBlock_module.illustrationWrapper
86
42
  }, React__default.default.createElement("div", {
@@ -99,31 +55,9 @@ var GuidanceBlock = function (_a) {
99
55
  }, (_d = restProps === null || restProps === void 0 ? void 0 : restProps.text) === null || _d === void 0 ? void 0 : _d.title)), React__default.default.createElement(Text.Text, {
100
56
  tag: "p",
101
57
  variant: "body"
102
- }, (_e = restProps === null || restProps === void 0 ? void 0 : restProps.text) === null || _e === void 0 ? void 0 : _e.description))), (actions === null || actions === void 0 ? void 0 : actions.primary) || actionsSlot ? React__default.default.createElement("div", {
58
+ }, (_e = restProps === null || restProps === void 0 ? void 0 : restProps.text) === null || _e === void 0 ? void 0 : _e.description))), actionsSlot && React__default.default.createElement("div", {
103
59
  className: GuidanceBlock_module.buttonContainer
104
- }, (actions === null || actions === void 0 ? void 0 : actions.primary) && React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement(WithTooltip, {
105
- tooltipProps: actions.primary.tooltip
106
- }, React__default.default.createElement(Button.Button, tslib.__assign({
107
- icon: withActionButtonArrow ? React__default.default.createElement(Icon.Icon, {
108
- name: "arrow_forward",
109
- isPresentational: true,
110
- shouldMirrorInRTL: true
111
- }) : undefined,
112
- iconPosition: "end"
113
- }, actions.primary, {
114
- fullWidth: queries.isSmall
115
- }))), (actions === null || actions === void 0 ? void 0 : actions.secondary) && React__default.default.createElement(WithTooltip, {
116
- tooltipProps: actions.secondary.tooltip
117
- }, React__default.default.createElement("div", {
118
- className: GuidanceBlock_module.secondaryAction
119
- }, React__default.default.createElement(Button.Button, tslib.__assign({
120
- secondary: true
121
- }, actions.secondary, {
122
- onClick: secondaryDismiss ? function () {
123
- return handleDismissBanner();
124
- } : (_f = actions === null || actions === void 0 ? void 0 : actions.secondary) === null || _f === void 0 ? void 0 : _f.onClick,
125
- fullWidth: queries.isSmall
126
- }))))), !actions && actionsSlot && actionsSlot) : null));
60
+ }, actionsSlot)));
127
61
  };
128
62
  GuidanceBlock.displayName = 'GuidanceBlock';
129
63
  exports.GuidanceBlock = GuidanceBlock;
@@ -9,7 +9,6 @@ var styles = {
9
9
  "descriptionContainer": "GuidanceBlock-module_descriptionContainer__w1-P-",
10
10
  "descriptionAndActions": "GuidanceBlock-module_descriptionAndActions__aQhc9",
11
11
  "buttonContainer": "GuidanceBlock-module_buttonContainer__bcVmB",
12
- "hidden": "GuidanceBlock-module_hidden__mwvrs",
13
12
  "headingWrapper": "GuidanceBlock-module_headingWrapper__OfZB5",
14
13
  "default": "GuidanceBlock-module_default__7naG4",
15
14
  "positive": "GuidanceBlock-module_positive__iCp-1",
@@ -3,7 +3,7 @@
3
3
  var tslib = require('tslib');
4
4
  var React = require('react');
5
5
  var classnames = require('classnames');
6
- var Heading_module = require('./Heading.module.scss.cjs');
6
+ var Heading_module = require('./Heading.module.css.cjs');
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ var styles = {
4
+ "heading": "Heading-module_heading__6D0PM",
5
+ "display-0": "Heading-module_display-0__Dmiig",
6
+ "composable-header-title": "Heading-module_composable-header-title__CPBzk",
7
+ "heading-1": "Heading-module_heading-1__-GXEH",
8
+ "heading-2": "Heading-module_heading-2__LiRAV",
9
+ "heading-3": "Heading-module_heading-3__nVAgQ",
10
+ "heading-4": "Heading-module_heading-4__ESVT7",
11
+ "heading-5": "Heading-module_heading-5__zzZxI",
12
+ "heading-6": "Heading-module_heading-6__-JvYA",
13
+ "dark": "Heading-module_dark__vO-Uw",
14
+ "dark-reduced-opacity": "Heading-module_dark-reduced-opacity__24gWp",
15
+ "white": "Heading-module_white__AJgq4",
16
+ "white-reduced-opacity": "Heading-module_white-reduced-opacity__VvQaa",
17
+ "positive": "Heading-module_positive__GVkBf",
18
+ "small": "Heading-module_small__bALDR",
19
+ "large": "Heading-module_large__FLTyA",
20
+ "negative": "Heading-module_negative__exyNh"
21
+ };
22
+ module.exports = styles;
@@ -3,7 +3,7 @@
3
3
  var tslib = require('tslib');
4
4
  var React = require('react');
5
5
  var classnames = require('classnames');
6
- var Label_module = require('./Label.module.scss.cjs');
6
+ var Label_module = require('./Label.module.css.cjs');
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var styles = {
4
+ "label": "Label-module_label__jvxMB",
5
+ "reversed": "Label-module_reversed__Qu7Kc",
6
+ "disabled": "Label-module_disabled__3Mej6",
7
+ "text": "Label-module_text__zkbHj",
8
+ "checkboxOrRadio": "Label-module_checkboxOrRadio__lzm9I",
9
+ "checkbox": "Label-module_checkbox__vtFpn",
10
+ "radio": "Label-module_radio__xenTn",
11
+ "toggle": "Label-module_toggle__prty7",
12
+ "prependedLabel": "Label-module_prependedLabel__XhXdP",
13
+ "appendedLabel": "Label-module_appendedLabel__vp5Uc",
14
+ "prominent": "Label-module_prominent__dW3K7"
15
+ };
16
+ module.exports = styles;
@@ -3,7 +3,7 @@
3
3
  var tslib = require('tslib');
4
4
  var React = require('react');
5
5
  var classnames = require('classnames');
6
- var LabelledMessage_module = require('./LabelledMessage.module.scss.cjs');
6
+ var LabelledMessage_module = require('./LabelledMessage.module.css.cjs');
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ var styles = {
4
+ "labelledMessage": "LabelledMessage-module_labelledMessage__kz-UQ",
5
+ "labelSeparator": "LabelledMessage-module_labelSeparator__A-4BK"
6
+ };
7
+ module.exports = styles;
@@ -37,10 +37,8 @@ var LinkButton = React.forwardRef(function (_a, ref) {
37
37
  isFullWidth = _f === void 0 ? false : _f,
38
38
  isDisabled = _a.isDisabled,
39
39
  className = _a.className,
40
- isReversed = _a.isReversed,
41
- otherProps = tslib.__rest(_a, ["children", "variant", "size", "icon", "iconPosition", "hasHiddenLabel", "isFullWidth", "isDisabled", "className", "isReversed"]);
42
- var shouldUseReverse = ReversedColors.useReversedColors();
43
- var isReversedVariant = isReversed !== null && isReversed !== void 0 ? isReversed : shouldUseReverse;
40
+ otherProps = tslib.__rest(_a, ["children", "variant", "size", "icon", "iconPosition", "hasHiddenLabel", "isFullWidth", "isDisabled", "className"]);
41
+ var isReversedVariant = ReversedColors.useReversedColors();
44
42
  return React__default.default.createElement(reactAriaComponents.Link, tslib.__assign({
45
43
  ref: ref,
46
44
  className: mergeClassNames.mergeClassNames(LinkButton_module.linkButton, Button_module.button, Button_module[size], hasHiddenLabel && Button_module["".concat(size, "IconButton")], isDisabled && Button_module.isDisabled, isReversedVariant ? Button_module["".concat(variant, "Reversed")] : Button_module[variant], isFullWidth && Button_module.fullWidth, className),
@@ -85,7 +85,9 @@ var ConfirmationModal = function (_a) {
85
85
  if (onConfirm) {
86
86
  var confirmAction = {
87
87
  label: confirmLabel,
88
- onClick: onConfirm
88
+ onClick: onConfirm,
89
+ destructive: variant === 'warning',
90
+ primary: variant !== 'warning'
89
91
  };
90
92
  var workingProps = confirmWorking ? {
91
93
  working: true,
@@ -126,7 +128,6 @@ var ConfirmationModal = function (_a) {
126
128
  className: classnames__default.default(isProminent && ConfirmationModal_module.prominent, !unpadded && ConfirmationModal_module.padded)
127
129
  }, React__default.default.createElement(ModalAccessibleDescription.ModalAccessibleDescription, null, children))), React__default.default.createElement(ModalFooter.ModalFooter, {
128
130
  actions: footerActions,
129
- appearance: variant == 'warning' ? 'destructive' : 'primary',
130
131
  unpadded: unpadded
131
132
  })));
132
133
  };
@@ -97,7 +97,6 @@ var ContextModal = function (_a) {
97
97
  })))), React__default.default.createElement(ModalFooter.ModalFooter, {
98
98
  variant: image ? 'context' : undefined,
99
99
  actions: footerActions,
100
- appearance: "primary",
101
100
  unpadded: unpadded
102
101
  })));
103
102
  };
@@ -6,7 +6,6 @@ var react = require('@headlessui/react');
6
6
  var classnames = require('classnames');
7
7
  var reactFocusOn = require('react-focus-on');
8
8
  var useIsClientReady = require('../../utils/useIsClientReady/useIsClientReady.cjs');
9
- var console = require('../util/console.cjs');
10
9
  var ModalContext = require('./context/ModalContext.cjs');
11
10
  var GenericModal_module = require('./GenericModal.module.scss.cjs');
12
11
  function _interopDefault(e) {
@@ -50,7 +49,8 @@ var GenericModal = function (_a) {
50
49
  // Ensure that consumers have provided an element that labels the modal
51
50
  // to meet ARIA accessibility guidelines.
52
51
  if (!document.getElementById(labelledByID)) {
53
- console.warn("When using the Modal component, you must provide a label for the modal.\n Make sure you have a <ModalAccessibleLabel /> component with content that labels the modal.");
52
+ // eslint-disable-next-line no-console
53
+ console.warn('When using the Modal component, you must provide a label for the modal. Make sure you have a <ModalAccessibleLabel /> component with content that labels the modal.');
54
54
  }
55
55
  };
56
56
  var focusOnAccessibleLabel = function () {
@@ -18,11 +18,9 @@ var classnames__default = /*#__PURE__*/_interopDefault(classnames);
18
18
  var ModalFooter = function (_a) {
19
19
  var unpadded = _a.unpadded,
20
20
  actions = _a.actions,
21
- _b = _a.appearance,
22
- appearance = _b === void 0 ? 'primary' : _b,
23
21
  alignStart = _a.alignStart,
24
22
  variant = _a.variant,
25
- props = tslib.__rest(_a, ["unpadded", "actions", "appearance", "alignStart", "variant"]);
23
+ props = tslib.__rest(_a, ["unpadded", "actions", "alignStart", "variant"]);
26
24
  var queries = useMediaQueries.useMediaQueries().queries;
27
25
  return React__default.default.createElement(ModalBody.ModalBody, {
28
26
  inputEdit: variant === 'inputEdit'
@@ -34,9 +32,8 @@ var ModalFooter = function (_a) {
34
32
  key: index
35
33
  }, React__default.default.createElement(Button.Button, tslib.__assign({
36
34
  type: "button",
37
- primary: index === 0 && appearance === 'primary',
38
- destructive: index === 0 && appearance === 'destructive',
39
- secondary: index > 0,
35
+ primary: index === 0 && !action.destructive && !action.secondary,
36
+ secondary: index > 0 && !action.destructive && !action.primary,
40
37
  fullWidth: queries.isSmall
41
38
  }, action)));
42
39
  })));
@@ -4,7 +4,7 @@ var tslib = require('tslib');
4
4
  var React = require('react');
5
5
  var classnames = require('classnames');
6
6
  var GenericNotification = require('../subcomponents/GenericNotification/GenericNotification.cjs');
7
- var GenericNotification_module = require('../subcomponents/GenericNotification/GenericNotification.module.scss.cjs');
7
+ var GenericNotification_module = require('../subcomponents/GenericNotification/GenericNotification.module.css.cjs');
8
8
  function _interopDefault(e) {
9
9
  return e && e.__esModule ? e : {
10
10
  default: e
@@ -3,7 +3,7 @@
3
3
  var React = require('react');
4
4
  var ToastNotificationContext = require('../context/ToastNotificationContext.cjs');
5
5
  var ToastNotificationsMap = require('./subcomponents/ToastNotificationsMap/ToastNotificationsMap.cjs');
6
- var ToastNotificationsList_module = require('./ToastNotificationsList.module.scss.cjs');
6
+ var ToastNotificationsList_module = require('./ToastNotificationsList.module.css.cjs');
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var styles = {
4
- "toastNotificationsList": "ToastNotificationsList-module_toastNotificationsList__APiSP"
4
+ "toastNotificationsList": "ToastNotificationsList-module_toastNotificationsList__AUm-A"
5
5
  };
6
6
  module.exports = styles;
@@ -2,7 +2,7 @@
2
2
 
3
3
  var React = require('react');
4
4
  var Icon = require('../../../Icon/Icon.cjs');
5
- var GenericNotification_module = require('../GenericNotification/GenericNotification.module.scss.cjs');
5
+ var GenericNotification_module = require('../GenericNotification/GenericNotification.module.css.cjs');
6
6
  function _interopDefault(e) {
7
7
  return e && e.__esModule ? e : {
8
8
  default: e
@@ -7,7 +7,7 @@ var isRefObject = require('../../../utils/isRefObject.cjs');
7
7
  var CancelButton = require('../CancelButton/CancelButton.cjs');
8
8
  var NotificationHeading = require('../NotificationHeading/NotificationHeading.cjs');
9
9
  var NotificationIcon = require('../NotificationIcon/NotificationIcon.cjs');
10
- var GenericNotification_module = require('./GenericNotification.module.scss.cjs');
10
+ var GenericNotification_module = require('./GenericNotification.module.css.cjs');
11
11
  function _interopDefault(e) {
12
12
  return e && e.__esModule ? e : {
13
13
  default: e
@@ -0,0 +1,29 @@
1
+ 'use strict';
2
+
3
+ var styles = {
4
+ "notification": "GenericNotification-module_notification__-lOMz",
5
+ "inline": "GenericNotification-module_inline__lnYb9",
6
+ "toast": "GenericNotification-module_toast__dPvtC",
7
+ "global": "GenericNotification-module_global__i1IKL",
8
+ "success": "GenericNotification-module_success__HMC7W",
9
+ "informative": "GenericNotification-module_informative__S4sGn",
10
+ "cautionary": "GenericNotification-module_cautionary__VMbSA",
11
+ "security": "GenericNotification-module_security__pdJT9",
12
+ "warning": "GenericNotification-module_warning__42AEX",
13
+ "hidden": "GenericNotification-module_hidden__QOpq1",
14
+ "icon": "GenericNotification-module_icon__rMIaU",
15
+ "textContainer": "GenericNotification-module_textContainer__yHSKi",
16
+ "forceMultiline": "GenericNotification-module_forceMultiline__SlLf9",
17
+ "title": "GenericNotification-module_title__3cvl6",
18
+ "notificationTitle": "GenericNotification-module_notificationTitle__-yijp",
19
+ "text": "GenericNotification-module_text__B5r5l",
20
+ "cancel": "GenericNotification-module_cancel__4O-Ys",
21
+ "disabled": "GenericNotification-module_disabled__V2Wyr",
22
+ "hover": "GenericNotification-module_hover__erovs",
23
+ "active": "GenericNotification-module_active__2ksOr",
24
+ "cancelLabel": "GenericNotification-module_cancelLabel__uLIuz",
25
+ "noBottomMargin": "GenericNotification-module_noBottomMargin__okqYr",
26
+ "persistent": "GenericNotification-module_persistent__y-Jp7",
27
+ "subtle": "GenericNotification-module_subtle__TCixZ"
28
+ };
29
+ module.exports = styles;
@@ -2,7 +2,7 @@
2
2
 
3
3
  var React = require('react');
4
4
  var Heading = require('../../../Heading/Heading.cjs');
5
- var GenericNotification_module = require('../GenericNotification/GenericNotification.module.scss.cjs');
5
+ var GenericNotification_module = require('../GenericNotification/GenericNotification.module.css.cjs');
6
6
  function _interopDefault(e) {
7
7
  return e && e.__esModule ? e : {
8
8
  default: e
@@ -3,8 +3,10 @@
3
3
  var tslib = require('tslib');
4
4
  var React = require('react');
5
5
  var classnames = require('classnames');
6
+ var reactAria = require('react-aria');
6
7
  var ReactSelect = require('react-select');
7
8
  var Async = require('react-select/async');
9
+ var ClearButton = require('../ClearButton/ClearButton.cjs');
8
10
  var FieldMessage = require('../FieldMessage/FieldMessage.cjs');
9
11
  var Icon = require('../Icon/Icon.cjs');
10
12
  var Label = require('../Label/Label.cjs');
@@ -20,6 +22,14 @@ var classnames__default = /*#__PURE__*/_interopDefault(classnames);
20
22
  var ReactSelect__default = /*#__PURE__*/_interopDefault(ReactSelect);
21
23
  var Async__default = /*#__PURE__*/_interopDefault(Async);
22
24
 
25
+ // react-select defaults to showing "Select..." placeholder text, which goes against our a11y
26
+ // standards — use `label` for the field name and `description` for help text instead.
27
+ // `noPlaceholderText` overrides the default string; `NullPlaceholder` removes the empty DOM node
28
+ // that react-select still renders even when the text is empty.
29
+ var noPlaceholderText = '';
30
+ var NullPlaceholder = function () {
31
+ return null;
32
+ };
23
33
  /**
24
34
  * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896474/Select Guidance} |
25
35
  * {@link https://cultureamp.design/?path=/docs/components-select--docs Storybook}
@@ -36,8 +46,7 @@ var Select = React__default.default.forwardRef(function (_a, ref) {
36
46
  description = _a.description,
37
47
  propsFullWidth = _a.fullWidth,
38
48
  propsClassName = _a.className,
39
- placeholder = _a.placeholder,
40
- props = tslib.__rest(_a, ["variant", "status", "reversed", "label", "validationMessage", "description", "fullWidth", "className", "placeholder"]);
49
+ props = tslib.__rest(_a, ["variant", "status", "reversed", "label", "validationMessage", "description", "fullWidth", "className"]);
41
50
  var reactId = React.useId();
42
51
  // the default for fullWidth depends on the variant
43
52
  var fullWidth = propsFullWidth !== null && propsFullWidth !== void 0 ? propsFullWidth : !['secondary', 'secondary-small'].includes(variant);
@@ -49,10 +58,10 @@ var Select = React__default.default.forwardRef(function (_a, ref) {
49
58
  }, label) : null, React__default.default.createElement(ReactSelect__default.default, tslib.__assign({}, props, {
50
59
  ref: ref,
51
60
  "aria-labelledby": labelId,
52
- placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : '',
61
+ placeholder: noPlaceholderText,
53
62
  components: {
54
63
  Control: Control,
55
- Placeholder: Placeholder,
64
+ Placeholder: NullPlaceholder,
56
65
  DropdownIndicator: DropdownIndicator,
57
66
  Menu: Menu,
58
67
  GroupHeading: GroupHeading,
@@ -77,14 +86,13 @@ var Select = React__default.default.forwardRef(function (_a, ref) {
77
86
  Select.displayName = 'Select';
78
87
  var AsyncSelect = React__default.default.forwardRef(function (_a, ref) {
79
88
  var propsClassName = _a.className,
80
- placeholder = _a.placeholder,
81
- props = tslib.__rest(_a, ["className", "placeholder"]);
89
+ props = tslib.__rest(_a, ["className"]);
82
90
  return React__default.default.createElement(Async__default.default, tslib.__assign({}, props, {
83
91
  ref: ref,
84
- placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : '',
92
+ placeholder: noPlaceholderText,
85
93
  components: {
86
94
  Control: Control,
87
- Placeholder: Placeholder,
95
+ Placeholder: NullPlaceholder,
88
96
  DropdownIndicator: DropdownIndicator,
89
97
  Menu: Menu,
90
98
  Option: Option,
@@ -94,7 +102,7 @@ var AsyncSelect = React__default.default.forwardRef(function (_a, ref) {
94
102
  MultiValue: MultiValue,
95
103
  IndicatorsContainer: IndicatorsContainer,
96
104
  ValueContainer: ValueContainer,
97
- ClearIndicator: undefined,
105
+ ClearIndicator: ClearIndicator,
98
106
  IndicatorSeparator: null,
99
107
  LoadingMessage: LoadingMessage
100
108
  },
@@ -109,13 +117,6 @@ var Control = function (props) {
109
117
  className: classnames__default.default(Select_module.control, props.isFocused && Select_module.focusedControl, props.isDisabled && Select_module.disabled)
110
118
  })));
111
119
  };
112
- var Placeholder = function (props) {
113
- return React__default.default.createElement(ReactSelect.components.Placeholder, tslib.__assign({}, props, {
114
- className: Select_module.placeholderOverrides
115
- }), React__default.default.createElement("span", {
116
- className: Select_module.placeholder
117
- }, props.children));
118
- };
119
120
  var DropdownIndicator = function (props) {
120
121
  return React__default.default.createElement(ReactSelect.components.DropdownIndicator, tslib.__assign({}, props, {
121
122
  className: Select_module.dropdownIndicator
@@ -184,12 +185,12 @@ var ValueContainer = function (props) {
184
185
  }));
185
186
  };
186
187
  var ClearIndicator = function (props) {
187
- return React__default.default.createElement(ReactSelect.components.ClearIndicator, tslib.__assign({}, props, {
188
- className: Select_module.clearIndicator
189
- }), React__default.default.createElement(Icon.Icon, {
190
- name: "cancel",
191
- isPresentational: true,
192
- isFilled: true
188
+ var buttonRef = React__default.default.useRef(null);
189
+ var buttonProps = reactAria.useButton(tslib.__assign(tslib.__assign({}, props), {
190
+ onClick: props.clearValue
191
+ }), buttonRef).buttonProps;
192
+ return React__default.default.createElement(ClearButton.ClearButton, tslib.__assign({}, buttonProps, {
193
+ classNameOverride: Select_module.clearIndicator
193
194
  }));
194
195
  };
195
196
  exports.AsyncSelect = AsyncSelect;
@@ -13,7 +13,6 @@ var styles = {
13
13
  "valueContainer": "Select-module_valueContainer__MGkpr",
14
14
  "indicatorsContainer": "Select-module_indicatorsContainer__2xCsm",
15
15
  "loadingMessage": "Select-module_loadingMessage__4Ej9T",
16
- "placeholder": "Select-module_placeholder__OAeGA",
17
16
  "menu": "Select-module_menu__axmUL",
18
17
  "groupHeading": "Select-module_groupHeading__eNw6U",
19
18
  "option": "Select-module_option__EdP-F",
@@ -10,7 +10,7 @@ var FieldMessage = require('../FieldMessage/FieldMessage.cjs');
10
10
  var Popover = require('../MultiSelect/subcomponents/Popover/Popover.cjs');
11
11
  var reactDom = require('@floating-ui/react-dom');
12
12
  var SelectContext = require('./context/SelectContext.cjs');
13
- var ListBox = require('./subcomponents/ListBox/ListBox.cjs');
13
+ require('./subcomponents/ListBox/ListBox.cjs');
14
14
  var ListBoxSection = require('./subcomponents/ListBoxSection/ListBoxSection.cjs');
15
15
  var ListItem = require('./subcomponents/ListItem/ListItem.cjs');
16
16
  require('./subcomponents/ListItems/ListItems.cjs');
@@ -50,12 +50,10 @@ var SingleSelect = function (_a) {
50
50
  classNameOverride = _a.classNameOverride,
51
51
  selectedKey = _a.selectedKey,
52
52
  description = _a.description,
53
- _d = _a.placeholder,
54
- placeholder = _d === void 0 ? '' : _d,
55
53
  isDisabled = _a.isDisabled,
56
54
  onSelectionChange = _a.onSelectionChange,
57
55
  portalContainerId = _a.portalContainerId,
58
- restProps = tslib.__rest(_a, ["label", "items", "id", "trigger", "children", "status", "validationMessage", "isReversed", "isRequired", "isFullWidth", "classNameOverride", "selectedKey", "description", "placeholder", "isDisabled", "onSelectionChange", "portalContainerId"]);
56
+ restProps = tslib.__rest(_a, ["label", "items", "id", "trigger", "children", "status", "validationMessage", "isReversed", "isRequired", "isFullWidth", "classNameOverride", "selectedKey", "description", "isDisabled", "onSelectionChange", "portalContainerId"]);
59
57
  var refs = reactDom.useFloating().refs;
60
58
  var triggerRef = refs.reference;
61
59
  var fallbackId = React.useId();
@@ -71,7 +69,6 @@ var SingleSelect = function (_a) {
71
69
  disabledKeys: disabledKeys,
72
70
  selectedKey: typeof selectedKey === 'number' ? selectedKey.toString() : selectedKey,
73
71
  description: description,
74
- placeholder: placeholder,
75
72
  isDisabled: isDisabled,
76
73
  isRequired: isRequired,
77
74
  onSelectionChange: onSelectionChange ? function (key) {
@@ -79,13 +76,13 @@ var SingleSelect = function (_a) {
79
76
  } : undefined
80
77
  }, restProps);
81
78
  var state = select.useSelectState(ariaSelectProps);
82
- var _e = select$1.useSelect(ariaSelectProps, state, triggerRef),
83
- labelProps = _e.labelProps,
84
- reactAriaTriggerProps = _e.triggerProps,
85
- valueProps = _e.valueProps,
86
- menuProps = _e.menuProps,
87
- errorMessageProps = _e.errorMessageProps,
88
- descriptionProps = _e.descriptionProps;
79
+ var _d = select$1.useSelect(ariaSelectProps, state, triggerRef),
80
+ labelProps = _d.labelProps,
81
+ reactAriaTriggerProps = _d.triggerProps,
82
+ valueProps = _d.valueProps,
83
+ menuProps = _d.menuProps,
84
+ errorMessageProps = _d.errorMessageProps,
85
+ descriptionProps = _d.descriptionProps;
89
86
  // Hack incoming:
90
87
  // react-aria/useSelect wants to prefix the combobox's accessible name with the value of the select.
91
88
  // We use role=combobox, meaning screen readers will read the value.
@@ -102,7 +99,6 @@ var SingleSelect = function (_a) {
102
99
  'value': (_b = state === null || state === void 0 ? void 0 : state.selectedItem) === null || _b === void 0 ? void 0 : _b.rendered,
103
100
  valueProps: valueProps,
104
101
  'isOpen': state.isOpen,
105
- placeholder: placeholder,
106
102
  status: status,
107
103
  'isDisabled': triggerProps.isDisabled,
108
104
  isReversed: isReversed,
@@ -110,9 +106,9 @@ var SingleSelect = function (_a) {
110
106
  'aria-describedby': classnames__default.default(validationMessage && validationId, description && descriptionId),
111
107
  'aria-required': isRequired
112
108
  });
113
- var _f = React.useState(),
114
- portalContainer = _f[0],
115
- setPortalContainer = _f[1];
109
+ var _e = React.useState(),
110
+ portalContainer = _e[0],
111
+ setPortalContainer = _e[1];
116
112
  React.useEffect(function () {
117
113
  if (portalContainerId) {
118
114
  var portalElement = document.getElementById(portalContainerId);
@@ -153,7 +149,4 @@ SingleSelect.Section = ListBoxSection.ListBoxSection;
153
149
  SingleSelect.SectionDivider = SectionDivider.SectionDivider;
154
150
  SingleSelect.Option = Option.Option;
155
151
  SingleSelect.ItemDefaultRender = ListItem.ListItem;
156
- // @deprecated Legacy exported aliases
157
- SingleSelect.TriggerButton = SelectToggle.SelectToggle;
158
- SingleSelect.ListBox = ListBox.ListBox;
159
152
  exports.SingleSelect = SingleSelect;