@kaizen/components 0.0.0-canary-package-bundler-v2-20241113071536 → 0.0.0-canary-link-button-wip-canary-20241121010628

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 (93) hide show
  1. package/codemods/README.md +16 -1
  2. package/codemods/upgradeIconV1/getNewIconPropsFromOldIconName.ts +9 -9
  3. package/dist/cjs/EmptyState/EmptyState.cjs +15 -17
  4. package/dist/cjs/EmptyState/EmptyState.module.css.cjs +20 -0
  5. package/dist/cjs/GuidanceBlock/GuidanceBlock.cjs +1 -1
  6. package/dist/cjs/GuidanceBlock/GuidanceBlock.module.css.cjs +28 -0
  7. package/dist/cjs/__actions__/Button/v3/Button.cjs +43 -8
  8. package/dist/cjs/__actions__/Button/v3/Button.module.css.cjs +21 -0
  9. package/dist/cjs/__actions__/Button/v3/subcomponents/ButtonContent/ButtonContent.cjs +37 -0
  10. package/dist/cjs/__actions__/Button/v3/subcomponents/ButtonContent/ButtonContent.module.css.cjs +9 -0
  11. package/dist/cjs/__actions__/Button/v3/subcomponents/PendingContent/PendingContent.cjs +35 -0
  12. package/dist/cjs/__actions__/Button/v3/subcomponents/PendingContent/PendingContent.module.css.cjs +8 -0
  13. package/dist/cjs/__overlays__/Tooltip/v3/Tooltip.cjs +2 -2
  14. package/dist/esm/Calendar/CalendarPopover/CalendarPopover.mjs +1 -1
  15. package/dist/esm/EmptyState/EmptyState.mjs +16 -18
  16. package/dist/esm/EmptyState/EmptyState.module.css.mjs +18 -0
  17. package/dist/esm/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.mjs +1 -1
  18. package/dist/esm/GuidanceBlock/GuidanceBlock.mjs +1 -1
  19. package/dist/esm/GuidanceBlock/GuidanceBlock.module.css.mjs +26 -0
  20. package/dist/esm/MultiSelect/subcomponents/Popover/Popover.mjs +1 -1
  21. package/dist/esm/RichTextEditor/RichTextEditor/RichTextEditor.mjs +1 -1
  22. package/dist/esm/RichTextEditor/RichTextEditor/schema.mjs +1 -1
  23. package/dist/esm/RichTextEditor/utils/schema/nodes.mjs +1 -1
  24. package/dist/esm/TimeField/TimeField.mjs +1 -1
  25. package/dist/esm/__actions__/Button/v3/Button.mjs +44 -9
  26. package/dist/esm/__actions__/Button/v3/Button.module.css.mjs +19 -0
  27. package/dist/esm/__actions__/Button/v3/subcomponents/ButtonContent/ButtonContent.mjs +28 -0
  28. package/dist/esm/__actions__/Button/v3/subcomponents/ButtonContent/ButtonContent.module.css.mjs +7 -0
  29. package/dist/esm/__actions__/Button/v3/subcomponents/PendingContent/PendingContent.mjs +26 -0
  30. package/dist/esm/__actions__/Button/v3/subcomponents/PendingContent/PendingContent.module.css.mjs +6 -0
  31. package/dist/esm/__overlays__/Tooltip/v1/Tooltip.mjs +1 -1
  32. package/dist/esm/__overlays__/Tooltip/v3/Tooltip.mjs +1 -1
  33. package/dist/styles.css +547 -463
  34. package/dist/types/EmptyState/EmptyState.d.ts +2 -1
  35. package/dist/types/__actions__/Button/v3/Button.d.ts +17 -4
  36. package/dist/types/__actions__/Button/v3/index.d.ts +1 -0
  37. package/dist/types/__actions__/Button/v3/subcomponents/ButtonContent/ButtonContent.d.ts +11 -0
  38. package/dist/types/__actions__/Button/v3/subcomponents/ButtonContent/index.d.ts +1 -0
  39. package/dist/types/__actions__/Button/v3/subcomponents/PendingContent/PendingContent.d.ts +5 -0
  40. package/dist/types/__actions__/Button/v3/subcomponents/PendingContent/index.d.ts +1 -0
  41. package/dist/types/__actions__/Button/v3/subcomponents/index.d.ts +2 -0
  42. package/dist/types/__actions__/Button/v3/types.d.ts +21 -0
  43. package/dist/types/__actions__/LinkButton/index.d.ts +1 -0
  44. package/dist/types/__actions__/LinkButton/v3/LinkButton.d.ts +11 -0
  45. package/dist/types/__actions__/LinkButton/v3/index.d.ts +1 -0
  46. package/package.json +8 -8
  47. package/src/EmptyState/EmptyState.module.css +114 -0
  48. package/src/EmptyState/EmptyState.tsx +18 -20
  49. package/src/EmptyState/_docs/EmptyState.stickersheet.stories.tsx +55 -39
  50. package/src/GuidanceBlock/{GuidanceBlock.module.scss → GuidanceBlock.module.css} +60 -114
  51. package/src/GuidanceBlock/GuidanceBlock.tsx +1 -1
  52. package/src/__actions__/Button/v3/Button.module.css +235 -0
  53. package/src/__actions__/Button/v3/Button.tsx +95 -29
  54. package/src/__actions__/Button/v3/_docs/Button--api-specification.mdx +151 -0
  55. package/src/__actions__/Button/v3/_docs/Button--usage-guidelines.mdx +30 -0
  56. package/src/__actions__/Button/v3/_docs/Button.docs.stories.tsx +112 -50
  57. package/src/__actions__/Button/v3/_docs/Button.spec.stories.tsx +80 -120
  58. package/src/__actions__/Button/v3/_docs/Button.stickersheet.stories.tsx +183 -81
  59. package/src/__actions__/Button/v3/index.ts +1 -0
  60. package/src/__actions__/Button/v3/subcomponents/ButtonContent/ButtonContent.module.css +19 -0
  61. package/src/__actions__/Button/v3/subcomponents/ButtonContent/ButtonContent.tsx +40 -0
  62. package/src/__actions__/Button/v3/subcomponents/ButtonContent/index.ts +1 -0
  63. package/src/__actions__/Button/v3/subcomponents/PendingContent/PendingContent.module.css +16 -0
  64. package/src/__actions__/Button/v3/subcomponents/PendingContent/PendingContent.tsx +28 -0
  65. package/src/__actions__/Button/v3/subcomponents/PendingContent/index.ts +1 -0
  66. package/src/__actions__/Button/v3/subcomponents/index.ts +2 -0
  67. package/src/__actions__/Button/v3/types.ts +25 -0
  68. package/src/__actions__/LinkButton/index.ts +1 -0
  69. package/src/__actions__/LinkButton/v3/LinkButton.module.css +4 -0
  70. package/src/__actions__/LinkButton/v3/LinkButton.tsx +71 -0
  71. package/src/__actions__/LinkButton/v3/_docs/LinkButton--api-specification.mdx +200 -0
  72. package/src/__actions__/LinkButton/v3/_docs/LinkButton.doc.stories.tsx +131 -0
  73. package/src/__actions__/LinkButton/v3/_docs/LinkButton.spec.stories.tsx +100 -0
  74. package/src/__actions__/LinkButton/v3/index.ts +1 -0
  75. package/src/__actions__/Menu/v3/_docs/Menu.docs.stories.tsx +54 -18
  76. package/src/__actions__/Menu/v3/_docs/Menu.spec.stories.tsx +30 -10
  77. package/src/__actions__/Menu/v3/_docs/Menu.stories.tsx +12 -4
  78. package/src/__future__/Icon/_docs/Icon.docs.stories.tsx +7 -7
  79. package/src/__overlays__/Tooltip/v3/Tooltip.tsx +1 -1
  80. package/src/__overlays__/Tooltip/v3/_docs/Tooltip.spec.stories.tsx +2 -0
  81. package/dist/cjs/EmptyState/EmptyState.module.scss.cjs +0 -23
  82. package/dist/cjs/GuidanceBlock/GuidanceBlock.module.scss.cjs +0 -33
  83. package/dist/cjs/__actions__/Button/v3/Button.module.scss.cjs +0 -9
  84. package/dist/esm/EmptyState/EmptyState.module.scss.mjs +0 -21
  85. package/dist/esm/GuidanceBlock/GuidanceBlock.module.scss.mjs +0 -31
  86. package/dist/esm/__actions__/Button/v3/Button.module.scss.mjs +0 -7
  87. package/src/EmptyState/EmptyState.module.scss +0 -177
  88. package/src/EmptyState/EmptyState.spec.tsx +0 -48
  89. package/src/EmptyState/_mixins.scss +0 -44
  90. package/src/__actions__/Button/v3/Button.module.scss +0 -104
  91. package/src/__actions__/Button/v3/_docs/ApiSpecification.mdx +0 -173
  92. package/src/__actions__/Button/v3/_docs/Button.mdx +0 -41
  93. package/src/__actions__/Button/v3/_docs/Button.stories.tsx +0 -98
@@ -37,7 +37,22 @@ pnpm kaizen-codemod src migrateWellVariantToColor
37
37
  - `removeInputEditModalMood`: Removes `InputEditModal` component prop `mood`
38
38
  - `removePopoverVariant`: Removes `Popover` component props `variant` and `customIcon`
39
39
  - `upgradeIconV1`: Migrates `*Icon` components to a new equivalent
40
- - `CaMonogramIcon` becomes `Brand`
40
+ - `CaMonogramIcon` becomes `Brand` variant `enso`
41
+ - `inheritSize` will be removed if set, if not set then `style` will be added to make it 20px (manually adjust to a `className` if you can)
41
42
  - `SpinnerIcon` becomes `LoadingSpinner`
43
+ - `aria-label` will be replaced with `accessibilityLabel` (with a fallback value of `"Loading"`)
44
+ - `role` will be removed
45
+ - `viewBox` will be removed
42
46
  - All other Icons become future `Icon`
43
47
  - **Note:** See [Icon API Specification (Future)](https://cultureamp.design/?path=/docs/illustrations-icon-icon-future-api-specification--docs) for setup instructions
48
+ - Icons previously filled may become unfilled. This is intentional as filled icons should only be for active states or selection (see [Icon Usage Guidelines (Future)](https://cultureamp.design/?path=/docs/illustrations-icon-icon-future-usage-guidelines--docs#do-use-the-appropriate-fill-for-the-icon-context-and-state))
49
+ - `role="presentational"` becomes `isPresentational`
50
+ - `role="img"` will be removed (as `aria-label` should exist)
51
+ - `aria-label` becomes `alt`
52
+ - `classNameOverride` becomes `className`
53
+ - `inheritSize` will remain - however is no longer a valid prop, therefore will have a TypeScript error and will be prefixed with a comment to manually fix the usage
54
+ - `aria-hidden` becomes `isPresentational`
55
+ - `color` becomes an inline `style` (manually adjust to a `className` if you can)
56
+ - `fontSize` will be removed
57
+ - `height` and `width` become an inline `style` (manually adjust to a `className` if you can, ideally setting `--icon-size`)
58
+ - `viewBox` will be removed
@@ -88,10 +88,10 @@ const iconMap = new Map<keyof typeof OLD_ICONS, NewIconProps>([
88
88
  ["EngagementWhiteIcon", undefined],
89
89
  ["EqualIcon", undefined],
90
90
  ["EqualWhiteIcon", undefined],
91
- ["ExclamationIcon", { name: "error" }],
91
+ ["ExclamationIcon", { name: "error", isFilled: true }],
92
92
  ["ExclamationOctagonIcon", { name: "warning" }],
93
93
  ["ExclamationOctagonWhiteIcon", undefined],
94
- ["ExclamationWhiteIcon", { name: "error" }],
94
+ ["ExclamationWhiteIcon", { name: "error", isFilled: true }],
95
95
  ["ExperienceIcon", undefined],
96
96
  ["ExportIcon", { name: "cloud_download" }],
97
97
  ["ExportWhiteIcon", { name: "cloud_download" }],
@@ -138,8 +138,8 @@ const iconMap = new Map<keyof typeof OLD_ICONS, NewIconProps>([
138
138
  ["IncreaseIndentIcon", { name: "format_indent_increase" }],
139
139
  ["IndicatorActiveIcon", { name: "radio_button_checked" }],
140
140
  ["IndicatorInactiveIcon", { name: "radio_button_unchecked" }],
141
- ["InformationIcon", { name: "info" }],
142
- ["InformationWhiteIcon", { name: "info" }],
141
+ ["InformationIcon", { name: "info", isFilled: true }],
142
+ ["InformationWhiteIcon", { name: "info", isFilled: true }],
143
143
  ["InsightIcon", { name: "find_in_page" }],
144
144
  ["InsightsIcon", undefined],
145
145
  ["InvisibleIcon", { name: "visibility_off" }],
@@ -180,9 +180,9 @@ const iconMap = new Map<keyof typeof OLD_ICONS, NewIconProps>([
180
180
  ["ProcessManagerIcon", { name: "playlist_add_check" }],
181
181
  ["PromotionIcon", { name: "grade" }],
182
182
  ["PromotionWhiteIcon", undefined],
183
- ["QuestionIcon", { name: "help" }],
183
+ ["QuestionIcon", { name: "help", isFilled: true }],
184
184
  ["QuestionsIcon", undefined],
185
- ["QuestionWhiteIcon", { name: "help" }],
185
+ ["QuestionWhiteIcon", { name: "help", isFilled: true }],
186
186
  ["RedoIcon", { name: "redo" }],
187
187
  ["RefreshIcon", { name: "refresh" }],
188
188
  ["RemoveLinkIcon", { name: "link_off" }],
@@ -193,7 +193,7 @@ const iconMap = new Map<keyof typeof OLD_ICONS, NewIconProps>([
193
193
  ["SaveIcon", undefined],
194
194
  ["SearchIcon", { name: "search" }],
195
195
  ["SearchWhiteIcon", { name: "search" }],
196
- ["SecurityTipIcon", { name: "privacy_tip" }],
196
+ ["SecurityTipIcon", { name: "privacy_tip", isFilled: true }],
197
197
  ["SendIcon", { name: "send" }],
198
198
  ["SendRtlIcon", undefined],
199
199
  ["SettingsIcon", { name: "settings" }],
@@ -209,8 +209,8 @@ const iconMap = new Map<keyof typeof OLD_ICONS, NewIconProps>([
209
209
  ["StartIcon", { name: "keyboard_tab_rtl" }],
210
210
  ["SubtractIcon", { name: "remove" }],
211
211
  ["SubtractWhiteIcon", undefined],
212
- ["SuccessIcon", { name: "check_circle" }],
213
- ["SuccessWhiteIcon", { name: "check_circle" }],
212
+ ["SuccessIcon", { name: "check_circle", isFilled: true }],
213
+ ["SuccessWhiteIcon", { name: "check_circle", isFilled: true }],
214
214
  ["SupportIcon", { name: "support" }],
215
215
  ["SurveysIcon", { name: "assignment" }],
216
216
  ["SurveysWhiteIcon", { name: "assignment" }],
@@ -8,7 +8,7 @@ require('../Illustration/subcomponents/Base/Base.cjs');
8
8
  require('../Illustration/Scene/BrandMomentCaptureIntro/BrandMomentCaptureIntro.cjs');
9
9
  var Scene = require('../Illustration/Scene/Scene.cjs');
10
10
  var Text = require('../Text/Text.cjs');
11
- var EmptyState_module = require('./EmptyState.module.scss.cjs');
11
+ var EmptyState_module = require('./EmptyState.module.css.cjs');
12
12
  function _interopDefault(e) {
13
13
  return e && e.__esModule ? e : {
14
14
  default: e
@@ -39,24 +39,25 @@ var EmptyState = function (_a) {
39
39
  id = _a.id,
40
40
  illustrationType = _a.illustrationType,
41
41
  _b = _a.variant,
42
- variant = _b === void 0 ? "informative" : _b,
43
- _c = _a.layoutContext,
44
- layoutContext = _c === void 0 ? "sidebarAndContent" : _c,
45
- headingProps = _a.headingProps,
42
+ variant = _b === void 0 ? "informative" : _b;
43
+ _a.layoutContext;
44
+ var headingProps = _a.headingProps,
46
45
  bodyText = _a.bodyText,
47
46
  straightCorners = _a.straightCorners,
48
- _d = _a.isAnimated,
49
- isAnimated = _d === void 0 ? true : _d,
50
- _e = _a.loop,
51
- loop = _e === void 0 ? false : _e,
47
+ _c = _a.isAnimated,
48
+ isAnimated = _c === void 0 ? true : _c,
49
+ _d = _a.loop,
50
+ loop = _d === void 0 ? false : _d,
52
51
  classNameOverride = _a.classNameOverride,
53
52
  props = tslib.__rest(_a, ["children", "id", "illustrationType", "variant", "layoutContext", "headingProps", "bodyText", "straightCorners", "isAnimated", "loop", "classNameOverride"]);
54
53
  var IllustrationComponent = ILLUSTRATIONS[illustrationType !== null && illustrationType !== void 0 ? illustrationType : variant];
55
54
  return React__default.default.createElement("div", tslib.__assign({
56
- className: classnames__default.default(EmptyState_module.container, illustrationType ? EmptyState_module[illustrationType] : EmptyState_module[variant], EmptyState_module[layoutContext], straightCorners && EmptyState_module.straightCorners, classNameOverride),
55
+ className: classnames__default.default(EmptyState_module.container, illustrationType ? EmptyState_module[illustrationType] : EmptyState_module[variant], straightCorners && EmptyState_module.straightCorners, classNameOverride),
57
56
  id: id
58
57
  }, props), React__default.default.createElement("div", {
59
- className: EmptyState_module.illustrationSide
58
+ className: EmptyState_module.content
59
+ }, React__default.default.createElement("div", {
60
+ className: EmptyState_module.illustrationContainer
60
61
  }, isAnimated ? React__default.default.createElement(IllustrationComponent, {
61
62
  isAnimated: true,
62
63
  loop: loop,
@@ -64,15 +65,12 @@ var EmptyState = function (_a) {
64
65
  }) : React__default.default.createElement(IllustrationComponent, {
65
66
  classNameOverride: EmptyState_module.illustration
66
67
  })), React__default.default.createElement("div", {
67
- className: EmptyState_module.textSide
68
- }, React__default.default.createElement("div", {
69
- className: EmptyState_module.textSideInner
68
+ className: EmptyState_module.textContainer
70
69
  }, headingProps && React__default.default.createElement(Heading.Heading, tslib.__assign({
71
70
  classNameOverride: EmptyState_module.heading
72
71
  }, headingProps)), React__default.default.createElement(Text.Text, {
73
- variant: "body",
74
- classNameOverride: EmptyState_module.description
75
- }, bodyText), children)));
72
+ variant: "body"
73
+ }, bodyText), children && React__default.default.createElement("span", null, children))));
76
74
  };
77
75
  EmptyState.displayName = "EmptyState";
78
76
  exports.EmptyState = EmptyState;
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var styles = {
4
+ "container": "EmptyState-module_container__0kOpV",
5
+ "straightCorners": "EmptyState-module_straightCorners__BNh-9",
6
+ "positive": "EmptyState-module_positive__Z2a3J",
7
+ "negative": "EmptyState-module_negative__mSmjN",
8
+ "action": "EmptyState-module_action__l1243",
9
+ "neutral": "EmptyState-module_neutral__i9IVq",
10
+ "success": "EmptyState-module_success__w9nvN",
11
+ "warning": "EmptyState-module_warning__vdEBx",
12
+ "informative": "EmptyState-module_informative__aeHUD",
13
+ "expert-advice": "EmptyState-module_expert-advice__05WOw",
14
+ "content": "EmptyState-module_content__dggps",
15
+ "illustrationContainer": "EmptyState-module_illustrationContainer__2Ch-u",
16
+ "illustration": "EmptyState-module_illustration__QSUZA",
17
+ "textContainer": "EmptyState-module_textContainer__jJ9NS",
18
+ "heading": "EmptyState-module_heading__pEPi3"
19
+ };
20
+ module.exports = styles;
@@ -8,7 +8,7 @@ var Heading = require('../Heading/Heading.cjs');
8
8
  var Text = require('../Text/Text.cjs');
9
9
  var Icon = require('../__future__/Icon/Icon.cjs');
10
10
  var index = require('../__overlays__/Tooltip/v1/index.cjs');
11
- var GuidanceBlock_module = require('./GuidanceBlock.module.scss.cjs');
11
+ var GuidanceBlock_module = require('./GuidanceBlock.module.css.cjs');
12
12
  var Button = require('../__actions__/Button/v1/Button/Button.cjs');
13
13
  function _interopDefault(e) {
14
14
  return e && e.__esModule ? e : {
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ var styles = {
4
+ "rightMargin": "GuidanceBlock-module_rightMargin__T6JO2",
5
+ "noRightMargin": "GuidanceBlock-module_noRightMargin__MczwN",
6
+ "banner": "GuidanceBlock-module_banner__7FT39",
7
+ "noMaxWidth": "GuidanceBlock-module_noMaxWidth__UCCUk",
8
+ "illustrationWrapper": "GuidanceBlock-module_illustrationWrapper__tK4Xr",
9
+ "illustration": "GuidanceBlock-module_illustration__LiDV3",
10
+ "hasSceneIllustration": "GuidanceBlock-module_hasSceneIllustration__eBOyt",
11
+ "descriptionContainer": "GuidanceBlock-module_descriptionContainer__w1-P-",
12
+ "descriptionAndActions": "GuidanceBlock-module_descriptionAndActions__aQhc9",
13
+ "buttonContainer": "GuidanceBlock-module_buttonContainer__bcVmB",
14
+ "hidden": "GuidanceBlock-module_hidden__mwvrs",
15
+ "headingWrapper": "GuidanceBlock-module_headingWrapper__OfZB5",
16
+ "default": "GuidanceBlock-module_default__7naG4",
17
+ "positive": "GuidanceBlock-module_positive__iCp-1",
18
+ "negative": "GuidanceBlock-module_negative__wWBlw",
19
+ "assertive": "GuidanceBlock-module_assertive__bNdnQ",
20
+ "informative": "GuidanceBlock-module_informative__KeJWO",
21
+ "cautionary": "GuidanceBlock-module_cautionary__5Vkw6",
22
+ "prominent": "GuidanceBlock-module_prominent__rWTgt",
23
+ "inline": "GuidanceBlock-module_inline__B-Ubr",
24
+ "stacked": "GuidanceBlock-module_stacked__4dS71",
25
+ "centerContent": "GuidanceBlock-module_centerContent__9Vlup",
26
+ "smallScreenTextAlignment": "GuidanceBlock-module_smallScreenTextAlignment__-UXo9"
27
+ };
28
+ module.exports = styles;
@@ -4,7 +4,9 @@ var tslib = require('tslib');
4
4
  var React = require('react');
5
5
  var reactAriaComponents = require('react-aria-components');
6
6
  var mergeClassNames = require('../../../utils/mergeClassNames.cjs');
7
- var Button_module = require('./Button.module.scss.cjs');
7
+ var PendingContent = require('./subcomponents/PendingContent/PendingContent.cjs');
8
+ var ButtonContent = require('./subcomponents/ButtonContent/ButtonContent.cjs');
9
+ var Button_module = require('./Button.module.css.cjs');
8
10
  var ReversedColors = require('../../../__utilities__/ReversedColors/v3/ReversedColors.cjs');
9
11
  function _interopDefault(e) {
10
12
  return e && e.__esModule ? e : {
@@ -12,17 +14,50 @@ function _interopDefault(e) {
12
14
  };
13
15
  }
14
16
  var React__default = /*#__PURE__*/_interopDefault(React);
15
- var Button = function (_a) {
17
+ var Button = React.forwardRef(function (_a, ref) {
16
18
  var _b = _a.variant,
17
- variant = _b === void 0 ? "default" : _b,
18
- className = _a.className,
19
+ variant = _b === void 0 ? "primary" : _b,
19
20
  _c = _a.size,
20
21
  size = _c === void 0 ? "medium" : _c,
22
+ className = _a.className,
21
23
  children = _a.children,
22
- otherProps = tslib.__rest(_a, ["variant", "className", "size", "children"]);
24
+ isDisabled = _a.isDisabled,
25
+ _d = _a.isFullWidth,
26
+ isFullWidth = _d === void 0 ? false : _d,
27
+ icon = _a.icon,
28
+ iconPosition = _a.iconPosition,
29
+ _e = _a.hasHiddenLabel,
30
+ hasHiddenLabel = _e === void 0 ? false : _e,
31
+ isPending = _a.isPending,
32
+ _f = _a.hasHiddenPendingLabel,
33
+ propsHasHiddenPendingLabel = _f === void 0 ? false : _f,
34
+ pendingLabel = _a.pendingLabel,
35
+ restProps = tslib.__rest(_a, ["variant", "size", "className", "children", "isDisabled", "isFullWidth", "icon", "iconPosition", "hasHiddenLabel", "isPending", "hasHiddenPendingLabel", "pendingLabel"]);
23
36
  var isReversed = ReversedColors.useReversedColors();
37
+ var pendingProps = isPending ? {
38
+ isPending: isPending,
39
+ hasHiddenPendingLabel: hasHiddenLabel || propsHasHiddenPendingLabel,
40
+ pendingLabel: pendingLabel
41
+ } : {};
42
+ var buttonContentClass = isPending ? !hasHiddenLabel && propsHasHiddenPendingLabel ? Button_module.retainContentWidth : Button_module.hideContentWidth : undefined;
24
43
  return React__default.default.createElement(reactAriaComponents.Button, tslib.__assign({
25
- className: mergeClassNames.mergeClassNames(Button_module.button, Button_module[variant], Button_module[size], isReversed && Button_module.reversed, className)
26
- }, otherProps), children);
27
- };
44
+ ref: ref,
45
+ className: mergeClassNames.mergeClassNames(Button_module.button, Button_module[size], hasHiddenLabel && Button_module["".concat(size, "IconButton")], isDisabled && Button_module.isDisabled, isReversed ? Button_module["".concat(variant, "Reversed")] : Button_module[variant], isFullWidth && Button_module.fullWidth, className),
46
+ isDisabled: isDisabled,
47
+ isPending: isPending
48
+ }, restProps), function (racStateProps) {
49
+ var childIsFunction = typeof children === "function";
50
+ return React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement(ButtonContent.ButtonContent, {
51
+ size: size,
52
+ icon: icon,
53
+ iconPosition: iconPosition,
54
+ hasHiddenLabel: hasHiddenLabel,
55
+ className: buttonContentClass
56
+ }, childIsFunction ? children(racStateProps) : children), React__default.default.createElement("span", {
57
+ "aria-live": "polite"
58
+ }, pendingProps.isPending && React__default.default.createElement(PendingContent.PendingContent, tslib.__assign({}, pendingProps, {
59
+ size: size
60
+ }))));
61
+ });
62
+ });
28
63
  exports.Button = Button;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ var styles = {
4
+ "button": "Button-module_button__vlUCI",
5
+ "fullWidth": "Button-module_fullWidth__qIkG6",
6
+ "small": "Button-module_small__FYPwk",
7
+ "medium": "Button-module_medium__4LOhQ",
8
+ "large": "Button-module_large__MjtVH",
9
+ "smallIconButton": "Button-module_smallIconButton__4gN-i",
10
+ "mediumIconButton": "Button-module_mediumIconButton__CEXv-",
11
+ "largeIconButton": "Button-module_largeIconButton__Apt33",
12
+ "secondary": "Button-module_secondary__Mmev0",
13
+ "tertiary": "Button-module_tertiary__MJjKC",
14
+ "primaryReversed": "Button-module_primaryReversed__m4kze",
15
+ "secondaryReversed": "Button-module_secondaryReversed__Q435c",
16
+ "tertiaryReversed": "Button-module_tertiaryReversed__Q-UqR",
17
+ "isDisabled": "Button-module_isDisabled__m1eE-",
18
+ "hideContentWidth": "Button-module_hideContentWidth__-E94d",
19
+ "retainContentWidth": "Button-module_retainContentWidth__b4IEC"
20
+ };
21
+ module.exports = styles;
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ var tslib = require('tslib');
4
+ var React = require('react');
5
+ var classnames = require('classnames');
6
+ var VisuallyHidden = require('../../../../../VisuallyHidden/VisuallyHidden.cjs');
7
+ var ButtonContent_module = require('./ButtonContent.module.css.cjs');
8
+ function _interopDefault(e) {
9
+ return e && e.__esModule ? e : {
10
+ default: e
11
+ };
12
+ }
13
+ var React__default = /*#__PURE__*/_interopDefault(React);
14
+ var classnames__default = /*#__PURE__*/_interopDefault(classnames);
15
+
16
+ /** Renders the inner content of the button, handling icon and label visibility */
17
+ var ButtonContent = function (_a) {
18
+ var children = _a.children,
19
+ hasHiddenLabel = _a.hasHiddenLabel,
20
+ _b = _a.size,
21
+ size = _b === void 0 ? "medium" : _b,
22
+ icon = _a.icon,
23
+ _c = _a.iconPosition,
24
+ iconPosition = _c === void 0 ? "start" : _c,
25
+ className = _a.className,
26
+ restProps = tslib.__rest(_a, ["children", "hasHiddenLabel", "size", "icon", "iconPosition", "className"]);
27
+ return React__default.default.createElement("span", tslib.__assign({
28
+ className: classnames__default.default(className, ButtonContent_module.buttonContent, ButtonContent_module[size])
29
+ }, restProps), icon && iconPosition === "start" && React__default.default.createElement("span", {
30
+ className: ButtonContent_module.buttonIcon
31
+ }, icon), hasHiddenLabel ? React__default.default.createElement(VisuallyHidden.VisuallyHidden, null, children) : React__default.default.createElement("span", {
32
+ className: ButtonContent_module.buttonLabel
33
+ }, children), icon && iconPosition === "end" && React__default.default.createElement("span", {
34
+ className: ButtonContent_module.buttonIcon
35
+ }, icon));
36
+ };
37
+ exports.ButtonContent = ButtonContent;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var styles = {
4
+ "buttonContent": "ButtonContent-module_buttonContent__v5mHZ",
5
+ "large": "ButtonContent-module_large__mLOdb",
6
+ "buttonLabel": "ButtonContent-module_buttonLabel__T5XAq",
7
+ "buttonIcon": "ButtonContent-module_buttonIcon__qkAX-"
8
+ };
9
+ module.exports = styles;
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var classnames = require('classnames');
5
+ require('../../../../../Loading/LoadingGraphic/LoadingGraphic.cjs');
6
+ require('../../../../../Loading/LoadingHeading/LoadingHeading.cjs');
7
+ require('../../../../../Loading/LoadingInput/LoadingInput.cjs');
8
+ require('../../../../../Loading/LoadingParagraph/LoadingParagraph.cjs');
9
+ var LoadingSpinner = require('../../../../../Loading/LoadingSpinner/LoadingSpinner.cjs');
10
+ var VisuallyHidden = require('../../../../../VisuallyHidden/VisuallyHidden.cjs');
11
+ var PendingContent_module = require('./PendingContent.module.css.cjs');
12
+ function _interopDefault(e) {
13
+ return e && e.__esModule ? e : {
14
+ default: e
15
+ };
16
+ }
17
+ var React__default = /*#__PURE__*/_interopDefault(React);
18
+ var classnames__default = /*#__PURE__*/_interopDefault(classnames);
19
+
20
+ /** Renders the pending content of the button, handling pending label visibility and spinner positioning */
21
+ var PendingContent = function (_a) {
22
+ var pendingLabel = _a.pendingLabel,
23
+ _b = _a.hasHiddenPendingLabel,
24
+ hasHiddenPendingLabel = _b === void 0 ? false : _b,
25
+ _c = _a.size,
26
+ size = _c === void 0 ? "medium" : _c;
27
+ return React__default.default.createElement("span", {
28
+ className: classnames__default.default(PendingContent_module.pendingContent, PendingContent_module[size])
29
+ }, hasHiddenPendingLabel ? React__default.default.createElement(VisuallyHidden.VisuallyHidden, null, pendingLabel) : React__default.default.createElement("span", null, pendingLabel), React__default.default.createElement(LoadingSpinner.LoadingSpinner, {
30
+ size: size === "small" ? "xs" : "sm",
31
+ accessibilityLabel: "",
32
+ classNameOverride: hasHiddenPendingLabel ? PendingContent_module.centerSpinner : undefined
33
+ }));
34
+ };
35
+ exports.PendingContent = PendingContent;
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ var styles = {
4
+ "pendingContent": "PendingContent-module_pendingContent__c4IFS",
5
+ "large": "PendingContent-module_large__ypTxk",
6
+ "centerSpinner": "PendingContent-module_centerSpinner__EYn7L"
7
+ };
8
+ module.exports = styles;
@@ -2,8 +2,8 @@
2
2
 
3
3
  var tslib = require('tslib');
4
4
  var React = require('react');
5
- var reactAria = require('react-aria');
6
5
  var reactAriaComponents = require('react-aria-components');
6
+ var VisuallyHidden = require('../../../VisuallyHidden/VisuallyHidden.cjs');
7
7
  var mergeClassNames = require('../../../utils/mergeClassNames.cjs');
8
8
  var OverlayArrow = require('./OverlayArrow.cjs');
9
9
  var Tooltip_module = require('./Tooltip.module.scss.cjs');
@@ -42,7 +42,7 @@ var Tooltip = React.forwardRef(function (_a, ref) {
42
42
  className: mergeClassNames.mergeClassNames(Tooltip_module.tooltip, className, reverseColors && Tooltip_module.reversed)
43
43
  }), function (renderProps) {
44
44
  return React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement(OverlayArrow.OverlayArrow, null), typeof children === "function" ? children(renderProps) : children);
45
- }), shouldInlineHiddenContent ? React__default.default.createElement(reactAria.VisuallyHidden, null, typeof children === "function" ? children({
45
+ }), shouldInlineHiddenContent ? React__default.default.createElement(VisuallyHidden.VisuallyHidden, null, typeof children === "function" ? children({
46
46
  placement: "center",
47
47
  isEntering: false,
48
48
  isExiting: false,
@@ -1,6 +1,6 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import React, { useState } from 'react';
3
- import { useFloating, size, offset, autoPlacement, autoUpdate } from '@floating-ui/react-dom';
3
+ import { useFloating, autoUpdate, size, offset, autoPlacement } from '@floating-ui/react-dom';
4
4
  import classnames from 'classnames';
5
5
  import styles from './CalendarPopover.module.scss.mjs';
6
6
 
@@ -4,9 +4,9 @@ import classnames from 'classnames';
4
4
  import { Heading } from '../Heading/Heading.mjs';
5
5
  import '../Illustration/subcomponents/Base/Base.mjs';
6
6
  import '../Illustration/Scene/BrandMomentCaptureIntro/BrandMomentCaptureIntro.mjs';
7
- import { EmptyStatesPositive, EmptyStatesNegative, EmptyStatesInformative, EmptyStatesNeutral } from '../Illustration/Scene/Scene.mjs';
7
+ import { EmptyStatesNegative, EmptyStatesNeutral, EmptyStatesPositive, EmptyStatesInformative } from '../Illustration/Scene/Scene.mjs';
8
8
  import { Text } from '../Text/Text.mjs';
9
- import styles from './EmptyState.module.scss.mjs';
9
+ import styles from './EmptyState.module.css.mjs';
10
10
  var ILLUSTRATIONS = {
11
11
  success: EmptyStatesPositive,
12
12
  warning: EmptyStatesNegative,
@@ -31,24 +31,25 @@ const EmptyState = /*#__PURE__*/function () {
31
31
  id = _a.id,
32
32
  illustrationType = _a.illustrationType,
33
33
  _b = _a.variant,
34
- variant = _b === void 0 ? "informative" : _b,
35
- _c = _a.layoutContext,
36
- layoutContext = _c === void 0 ? "sidebarAndContent" : _c,
37
- headingProps = _a.headingProps,
34
+ variant = _b === void 0 ? "informative" : _b;
35
+ _a.layoutContext;
36
+ var headingProps = _a.headingProps,
38
37
  bodyText = _a.bodyText,
39
38
  straightCorners = _a.straightCorners,
40
- _d = _a.isAnimated,
41
- isAnimated = _d === void 0 ? true : _d,
42
- _e = _a.loop,
43
- loop = _e === void 0 ? false : _e,
39
+ _c = _a.isAnimated,
40
+ isAnimated = _c === void 0 ? true : _c,
41
+ _d = _a.loop,
42
+ loop = _d === void 0 ? false : _d,
44
43
  classNameOverride = _a.classNameOverride,
45
44
  props = __rest(_a, ["children", "id", "illustrationType", "variant", "layoutContext", "headingProps", "bodyText", "straightCorners", "isAnimated", "loop", "classNameOverride"]);
46
45
  var IllustrationComponent = ILLUSTRATIONS[illustrationType !== null && illustrationType !== void 0 ? illustrationType : variant];
47
46
  return /*#__PURE__*/React.createElement("div", __assign({
48
- className: classnames(styles.container, illustrationType ? styles[illustrationType] : styles[variant], styles[layoutContext], straightCorners && styles.straightCorners, classNameOverride),
47
+ className: classnames(styles.container, illustrationType ? styles[illustrationType] : styles[variant], straightCorners && styles.straightCorners, classNameOverride),
49
48
  id: id
50
49
  }, props), /*#__PURE__*/React.createElement("div", {
51
- className: styles.illustrationSide
50
+ className: styles.content
51
+ }, /*#__PURE__*/React.createElement("div", {
52
+ className: styles.illustrationContainer
52
53
  }, isAnimated ? ( /*#__PURE__*/React.createElement(IllustrationComponent, {
53
54
  isAnimated: true,
54
55
  loop: loop,
@@ -56,15 +57,12 @@ const EmptyState = /*#__PURE__*/function () {
56
57
  })) : ( /*#__PURE__*/React.createElement(IllustrationComponent, {
57
58
  classNameOverride: styles.illustration
58
59
  }))), /*#__PURE__*/React.createElement("div", {
59
- className: styles.textSide
60
- }, /*#__PURE__*/React.createElement("div", {
61
- className: styles.textSideInner
60
+ className: styles.textContainer
62
61
  }, headingProps && ( /*#__PURE__*/React.createElement(Heading, __assign({
63
62
  classNameOverride: styles.heading
64
63
  }, headingProps))), /*#__PURE__*/React.createElement(Text, {
65
- variant: "body",
66
- classNameOverride: styles.description
67
- }, bodyText), children)));
64
+ variant: "body"
65
+ }, bodyText), children && /*#__PURE__*/React.createElement("span", null, children))));
68
66
  };
69
67
  EmptyState.displayName = "EmptyState";
70
68
  return EmptyState;
@@ -0,0 +1,18 @@
1
+ var styles = {
2
+ "container": "EmptyState-module_container__0kOpV",
3
+ "straightCorners": "EmptyState-module_straightCorners__BNh-9",
4
+ "positive": "EmptyState-module_positive__Z2a3J",
5
+ "negative": "EmptyState-module_negative__mSmjN",
6
+ "action": "EmptyState-module_action__l1243",
7
+ "neutral": "EmptyState-module_neutral__i9IVq",
8
+ "success": "EmptyState-module_success__w9nvN",
9
+ "warning": "EmptyState-module_warning__vdEBx",
10
+ "informative": "EmptyState-module_informative__aeHUD",
11
+ "expert-advice": "EmptyState-module_expert-advice__05WOw",
12
+ "content": "EmptyState-module_content__dggps",
13
+ "illustrationContainer": "EmptyState-module_illustrationContainer__2Ch-u",
14
+ "illustration": "EmptyState-module_illustration__QSUZA",
15
+ "textContainer": "EmptyState-module_textContainer__jJ9NS",
16
+ "heading": "EmptyState-module_heading__pEPi3"
17
+ };
18
+ export { styles as default };
@@ -1,4 +1,4 @@
1
- import { __assign, __spreadArray } from 'tslib';
1
+ import { __spreadArray, __assign } from 'tslib';
2
2
  import React, { useState, useEffect } from 'react';
3
3
  import classnames from 'classnames';
4
4
  import { useSelectionContext } from '../../context/SelectionProvider/SelectionProvider.mjs';
@@ -6,7 +6,7 @@ import { Heading } from '../Heading/Heading.mjs';
6
6
  import { Text } from '../Text/Text.mjs';
7
7
  import { Icon } from '../__future__/Icon/Icon.mjs';
8
8
  import { Tooltip } from '../__overlays__/Tooltip/v1/index.mjs';
9
- import styles from './GuidanceBlock.module.scss.mjs';
9
+ import styles from './GuidanceBlock.module.css.mjs';
10
10
  import { Button } from '../__actions__/Button/v1/Button/Button.mjs';
11
11
  var WithTooltip = function (_a) {
12
12
  var tooltipProps = _a.tooltipProps,
@@ -0,0 +1,26 @@
1
+ var styles = {
2
+ "rightMargin": "GuidanceBlock-module_rightMargin__T6JO2",
3
+ "noRightMargin": "GuidanceBlock-module_noRightMargin__MczwN",
4
+ "banner": "GuidanceBlock-module_banner__7FT39",
5
+ "noMaxWidth": "GuidanceBlock-module_noMaxWidth__UCCUk",
6
+ "illustrationWrapper": "GuidanceBlock-module_illustrationWrapper__tK4Xr",
7
+ "illustration": "GuidanceBlock-module_illustration__LiDV3",
8
+ "hasSceneIllustration": "GuidanceBlock-module_hasSceneIllustration__eBOyt",
9
+ "descriptionContainer": "GuidanceBlock-module_descriptionContainer__w1-P-",
10
+ "descriptionAndActions": "GuidanceBlock-module_descriptionAndActions__aQhc9",
11
+ "buttonContainer": "GuidanceBlock-module_buttonContainer__bcVmB",
12
+ "hidden": "GuidanceBlock-module_hidden__mwvrs",
13
+ "headingWrapper": "GuidanceBlock-module_headingWrapper__OfZB5",
14
+ "default": "GuidanceBlock-module_default__7naG4",
15
+ "positive": "GuidanceBlock-module_positive__iCp-1",
16
+ "negative": "GuidanceBlock-module_negative__wWBlw",
17
+ "assertive": "GuidanceBlock-module_assertive__bNdnQ",
18
+ "informative": "GuidanceBlock-module_informative__KeJWO",
19
+ "cautionary": "GuidanceBlock-module_cautionary__5Vkw6",
20
+ "prominent": "GuidanceBlock-module_prominent__rWTgt",
21
+ "inline": "GuidanceBlock-module_inline__B-Ubr",
22
+ "stacked": "GuidanceBlock-module_stacked__4dS71",
23
+ "centerContent": "GuidanceBlock-module_centerContent__9Vlup",
24
+ "smallScreenTextAlignment": "GuidanceBlock-module_smallScreenTextAlignment__-UXo9"
25
+ };
26
+ export { styles as default };
@@ -1,7 +1,7 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import { createPortal } from 'react-dom';
4
- import { useFloating, offset, flip, size, autoUpdate } from '@floating-ui/react-dom';
4
+ import { useFloating, autoUpdate, offset, flip, size } from '@floating-ui/react-dom';
5
5
  import classnames from 'classnames';
6
6
  import { FocusOn } from 'react-focus-on';
7
7
  import styles from './Popover.module.scss.mjs';
@@ -1,4 +1,4 @@
1
- import { __rest, __assign, __spreadArray } from 'tslib';
1
+ import { __rest, __spreadArray, __assign } from 'tslib';
2
2
  import React, { useId, useState, useEffect } from 'react';
3
3
  import classnames from 'classnames';
4
4
  import { FieldMessage } from '../../FieldMessage/FieldMessage.mjs';
@@ -1,4 +1,4 @@
1
- import { __spreadArray, __assign } from 'tslib';
1
+ import { __assign, __spreadArray } from 'tslib';
2
2
  import { TOOLBAR_CONTROLS } from '../constants.mjs';
3
3
  import 'prosemirror-commands';
4
4
  import 'prosemirror-keymap';
@@ -1,6 +1,6 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import { nodes } from 'prosemirror-schema-basic';
3
- import { orderedList, bulletList, listItem } from 'prosemirror-schema-list';
3
+ import { listItem, bulletList, orderedList } from 'prosemirror-schema-list';
4
4
  var getNodes = function () {
5
5
  // We use camel case names instead of ProseMirror's snake case, so we remove any snake case properties here before spreading
6
6
  var hardBreak = nodes.hard_break,
@@ -1,4 +1,4 @@
1
- import { __assign, __rest } from 'tslib';
1
+ import { __rest, __assign } from 'tslib';
2
2
  import React, { useId } from 'react';
3
3
  import { Time } from '@internationalized/date';
4
4
  import { useTimeField } from '@react-aria/datepicker';