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

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 (102) 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/__actions__/LinkButton/v3/LinkButton.cjs +56 -0
  14. package/dist/cjs/__actions__/LinkButton/v3/LinkButton.module.css.cjs +6 -0
  15. package/dist/cjs/__overlays__/Tooltip/v3/Tooltip.cjs +2 -2
  16. package/dist/cjs/actionsV3.cjs +2 -0
  17. package/dist/esm/Calendar/CalendarPopover/CalendarPopover.mjs +1 -1
  18. package/dist/esm/EmptyState/EmptyState.mjs +16 -18
  19. package/dist/esm/EmptyState/EmptyState.module.css.mjs +18 -0
  20. package/dist/esm/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.mjs +1 -1
  21. package/dist/esm/GuidanceBlock/GuidanceBlock.mjs +1 -1
  22. package/dist/esm/GuidanceBlock/GuidanceBlock.module.css.mjs +26 -0
  23. package/dist/esm/MultiSelect/subcomponents/Popover/Popover.mjs +1 -1
  24. package/dist/esm/RichTextEditor/RichTextEditor/RichTextEditor.mjs +1 -1
  25. package/dist/esm/RichTextEditor/RichTextEditor/schema.mjs +1 -1
  26. package/dist/esm/RichTextEditor/utils/schema/nodes.mjs +1 -1
  27. package/dist/esm/TimeField/TimeField.mjs +1 -1
  28. package/dist/esm/__actions__/Button/v3/Button.mjs +44 -9
  29. package/dist/esm/__actions__/Button/v3/Button.module.css.mjs +19 -0
  30. package/dist/esm/__actions__/Button/v3/subcomponents/ButtonContent/ButtonContent.mjs +28 -0
  31. package/dist/esm/__actions__/Button/v3/subcomponents/ButtonContent/ButtonContent.module.css.mjs +7 -0
  32. package/dist/esm/__actions__/Button/v3/subcomponents/PendingContent/PendingContent.mjs +26 -0
  33. package/dist/esm/__actions__/Button/v3/subcomponents/PendingContent/PendingContent.module.css.mjs +6 -0
  34. package/dist/esm/__actions__/LinkButton/v3/LinkButton.mjs +47 -0
  35. package/dist/esm/__actions__/LinkButton/v3/LinkButton.module.css.mjs +4 -0
  36. package/dist/esm/__overlays__/Tooltip/v1/Tooltip.mjs +1 -1
  37. package/dist/esm/__overlays__/Tooltip/v3/Tooltip.mjs +1 -1
  38. package/dist/esm/actionsV3.mjs +1 -0
  39. package/dist/styles.css +552 -463
  40. package/dist/types/EmptyState/EmptyState.d.ts +2 -1
  41. package/dist/types/__actions__/Button/v3/Button.d.ts +17 -4
  42. package/dist/types/__actions__/Button/v3/index.d.ts +1 -0
  43. package/dist/types/__actions__/Button/v3/subcomponents/ButtonContent/ButtonContent.d.ts +11 -0
  44. package/dist/types/__actions__/Button/v3/subcomponents/ButtonContent/index.d.ts +1 -0
  45. package/dist/types/__actions__/Button/v3/subcomponents/PendingContent/PendingContent.d.ts +5 -0
  46. package/dist/types/__actions__/Button/v3/subcomponents/PendingContent/index.d.ts +1 -0
  47. package/dist/types/__actions__/Button/v3/subcomponents/index.d.ts +2 -0
  48. package/dist/types/__actions__/Button/v3/types.d.ts +21 -0
  49. package/dist/types/__actions__/LinkButton/index.d.ts +1 -0
  50. package/dist/types/__actions__/LinkButton/v3/LinkButton.d.ts +11 -0
  51. package/dist/types/__actions__/LinkButton/v3/index.d.ts +1 -0
  52. package/dist/types/__actions__/v3.d.ts +1 -0
  53. package/package.json +8 -8
  54. package/src/EmptyState/EmptyState.module.css +114 -0
  55. package/src/EmptyState/EmptyState.tsx +18 -20
  56. package/src/EmptyState/_docs/EmptyState.stickersheet.stories.tsx +55 -39
  57. package/src/GuidanceBlock/{GuidanceBlock.module.scss → GuidanceBlock.module.css} +60 -114
  58. package/src/GuidanceBlock/GuidanceBlock.tsx +1 -1
  59. package/src/__actions__/Button/v3/Button.module.css +235 -0
  60. package/src/__actions__/Button/v3/Button.tsx +95 -29
  61. package/src/__actions__/Button/v3/_docs/Button--api-specification.mdx +151 -0
  62. package/src/__actions__/Button/v3/_docs/Button--usage-guidelines.mdx +30 -0
  63. package/src/__actions__/Button/v3/_docs/Button.docs.stories.tsx +112 -50
  64. package/src/__actions__/Button/v3/_docs/Button.spec.stories.tsx +80 -120
  65. package/src/__actions__/Button/v3/_docs/Button.stickersheet.stories.tsx +183 -81
  66. package/src/__actions__/Button/v3/index.ts +1 -0
  67. package/src/__actions__/Button/v3/subcomponents/ButtonContent/ButtonContent.module.css +19 -0
  68. package/src/__actions__/Button/v3/subcomponents/ButtonContent/ButtonContent.tsx +40 -0
  69. package/src/__actions__/Button/v3/subcomponents/ButtonContent/index.ts +1 -0
  70. package/src/__actions__/Button/v3/subcomponents/PendingContent/PendingContent.module.css +16 -0
  71. package/src/__actions__/Button/v3/subcomponents/PendingContent/PendingContent.tsx +28 -0
  72. package/src/__actions__/Button/v3/subcomponents/PendingContent/index.ts +1 -0
  73. package/src/__actions__/Button/v3/subcomponents/index.ts +2 -0
  74. package/src/__actions__/Button/v3/types.ts +25 -0
  75. package/src/__actions__/LinkButton/index.ts +1 -0
  76. package/src/__actions__/LinkButton/v3/LinkButton.module.css +4 -0
  77. package/src/__actions__/LinkButton/v3/LinkButton.tsx +72 -0
  78. package/src/__actions__/LinkButton/v3/_docs/LinkButton--api-specification.mdx +210 -0
  79. package/src/__actions__/LinkButton/v3/_docs/LinkButton.doc.stories.tsx +132 -0
  80. package/src/__actions__/LinkButton/v3/_docs/LinkButton.spec.stories.tsx +100 -0
  81. package/src/__actions__/LinkButton/v3/_docs/LinkButton.stickersheet.stories.tsx +176 -0
  82. package/src/__actions__/LinkButton/v3/index.ts +1 -0
  83. package/src/__actions__/Menu/v3/_docs/Menu.docs.stories.tsx +54 -18
  84. package/src/__actions__/Menu/v3/_docs/Menu.spec.stories.tsx +30 -10
  85. package/src/__actions__/Menu/v3/_docs/Menu.stories.tsx +12 -4
  86. package/src/__actions__/v3.ts +1 -0
  87. package/src/__future__/Icon/_docs/Icon.docs.stories.tsx +7 -7
  88. package/src/__overlays__/Tooltip/v3/Tooltip.tsx +1 -1
  89. package/src/__overlays__/Tooltip/v3/_docs/Tooltip.spec.stories.tsx +2 -0
  90. package/dist/cjs/EmptyState/EmptyState.module.scss.cjs +0 -23
  91. package/dist/cjs/GuidanceBlock/GuidanceBlock.module.scss.cjs +0 -33
  92. package/dist/cjs/__actions__/Button/v3/Button.module.scss.cjs +0 -9
  93. package/dist/esm/EmptyState/EmptyState.module.scss.mjs +0 -21
  94. package/dist/esm/GuidanceBlock/GuidanceBlock.module.scss.mjs +0 -31
  95. package/dist/esm/__actions__/Button/v3/Button.module.scss.mjs +0 -7
  96. package/src/EmptyState/EmptyState.module.scss +0 -177
  97. package/src/EmptyState/EmptyState.spec.tsx +0 -48
  98. package/src/EmptyState/_mixins.scss +0 -44
  99. package/src/__actions__/Button/v3/Button.module.scss +0 -104
  100. package/src/__actions__/Button/v3/_docs/ApiSpecification.mdx +0 -173
  101. package/src/__actions__/Button/v3/_docs/Button.mdx +0 -41
  102. package/src/__actions__/Button/v3/_docs/Button.stories.tsx +0 -98
@@ -0,0 +1,176 @@
1
+ import React from "react"
2
+ import { Meta } from "@storybook/react"
3
+ import { within } from "@storybook/test"
4
+ import { Icon } from "~components/__future__/Icon"
5
+ import {
6
+ StickerSheet,
7
+ StickerSheetStory,
8
+ } from "~storybook/components/StickerSheet"
9
+ import { LinkButton, LinkButtonProps } from "../index"
10
+
11
+ export default {
12
+ title: "Actions/LinkButton/LinkButton (v3)",
13
+ parameters: {
14
+ chromatic: { disable: false },
15
+ controls: { disable: true },
16
+ },
17
+ } satisfies Meta
18
+
19
+ const variants = ["primary", "secondary", "tertiary"] satisfies Array<
20
+ LinkButtonProps["variant"]
21
+ >
22
+ const sizes = ["small", "medium", "large"] satisfies Array<
23
+ LinkButtonProps["size"]
24
+ >
25
+
26
+ const RowTemplate = ({
27
+ isReversed = false,
28
+ }: {
29
+ isReversed?: boolean
30
+ }): JSX.Element => (
31
+ <>
32
+ {variants.map(variant =>
33
+ sizes.map(size => (
34
+ <StickerSheet.Row
35
+ key={size + variant}
36
+ isReversed={isReversed}
37
+ rowTitle={`${variant} (${size})`}
38
+ >
39
+ <LinkButton variant={variant} size={size}>
40
+ Label
41
+ </LinkButton>
42
+ <LinkButton
43
+ icon={<Icon name="add" isPresentational />}
44
+ variant={variant}
45
+ size={size}
46
+ >
47
+ Label
48
+ </LinkButton>
49
+ <LinkButton
50
+ icon={
51
+ <Icon name="arrow_forward" shouldMirrorInRTL isPresentational />
52
+ }
53
+ iconPosition="end"
54
+ variant={variant}
55
+ size={size}
56
+ >
57
+ Label
58
+ </LinkButton>
59
+ <LinkButton
60
+ icon={<Icon name="delete" isPresentational />}
61
+ variant={variant}
62
+ hasHiddenLabel
63
+ size={size}
64
+ >
65
+ Label
66
+ </LinkButton>
67
+ <LinkButton
68
+ icon={
69
+ <Icon name="arrow_forward" shouldMirrorInRTL isPresentational />
70
+ }
71
+ iconPosition="end"
72
+ variant={variant}
73
+ size={size}
74
+ isDisabled
75
+ >
76
+ Label
77
+ </LinkButton>
78
+ </StickerSheet.Row>
79
+ ))
80
+ )}
81
+ </>
82
+ )
83
+
84
+ const StickerSheetTemplate: StickerSheetStory = {
85
+ render: ({ isReversed }) => (
86
+ <>
87
+ <StickerSheet heading="Button" isReversed={isReversed}>
88
+ <StickerSheet.Header
89
+ headings={[
90
+ "Base",
91
+ "Icon start",
92
+ "Icon end",
93
+ "hasHiddenLabel",
94
+ "isDisabled",
95
+ ]}
96
+ headingsWidth="10rem"
97
+ hasVerticalHeadings
98
+ verticalHeadingsWidth="12rem"
99
+ />
100
+ <StickerSheet.Body>
101
+ <RowTemplate isReversed={isReversed} />
102
+ </StickerSheet.Body>
103
+ </StickerSheet>
104
+ <StickerSheet heading="Pseudo states" isReversed={isReversed}>
105
+ <StickerSheet.Header
106
+ headings={["isHovered", "isFocusVisible", "isPressed"]}
107
+ headingsWidth="10rem"
108
+ hasVerticalHeadings
109
+ verticalHeadingsWidth="12rem"
110
+ />
111
+ <StickerSheet.Body>
112
+ {variants.map(variant => (
113
+ <StickerSheet.Row
114
+ key={variant}
115
+ isReversed={isReversed}
116
+ rowTitle={variant}
117
+ >
118
+ <LinkButton data-testid="testid__button-hover" variant={variant}>
119
+ Label
120
+ </LinkButton>
121
+ <LinkButton data-testid="testid__button-focus" variant={variant}>
122
+ Label
123
+ </LinkButton>
124
+ <LinkButton
125
+ data-testid="testid__button-pressed"
126
+ variant={variant}
127
+ >
128
+ Label
129
+ </LinkButton>
130
+ </StickerSheet.Row>
131
+ ))}
132
+ </StickerSheet.Body>
133
+ </StickerSheet>
134
+ </>
135
+ ),
136
+ play: ({ canvasElement }) => {
137
+ const canvas = within(canvasElement)
138
+ const focusButtons = canvas.getAllByTestId("testid__button-focus")
139
+ const hoverButtons = canvas.getAllByTestId("testid__button-hover")
140
+ const pressedButton = canvas.getAllByTestId("testid__button-pressed")
141
+
142
+ focusButtons.forEach(button => {
143
+ button.setAttribute("data-focus-visible", "true")
144
+ })
145
+ hoverButtons.forEach(button => {
146
+ button.setAttribute("data-hovered", "true")
147
+ })
148
+ pressedButton.forEach(button => {
149
+ button.setAttribute("data-pressed", "true")
150
+ })
151
+ },
152
+ }
153
+
154
+ export const StickerSheetDefault: StickerSheetStory = {
155
+ ...StickerSheetTemplate,
156
+ name: "Sticker Sheet (Default)",
157
+ }
158
+
159
+ export const StickerSheetRTL: StickerSheetStory = {
160
+ ...StickerSheetTemplate,
161
+ name: "Sticker Sheet (RTL)",
162
+ parameters: {
163
+ textDirection: "rtl",
164
+ },
165
+ }
166
+
167
+ export const StickerSheetReversed: StickerSheetStory = {
168
+ ...StickerSheetTemplate,
169
+ name: "Sticker Sheet (Reversed)",
170
+ parameters: {
171
+ reverseColors: true,
172
+ },
173
+ args: {
174
+ isReversed: true,
175
+ },
176
+ }
@@ -0,0 +1 @@
1
+ export * from "./LinkButton"
@@ -41,8 +41,12 @@ const DefaultMenuItems = (): ReactNode => (
41
41
  export const Actions: Story = {
42
42
  render: ({ defaultOpen: _, ...args }) => (
43
43
  <MenuTrigger {...args}>
44
- <Button className="[--icon-size:24]">
45
- <Icon name="more_horiz" alt="Additional actions" />
44
+ <Button
45
+ size="large"
46
+ icon={<Icon name="more_horiz" isPresentational />}
47
+ hasHiddenLabel
48
+ >
49
+ Additional actions
46
50
  </Button>
47
51
  <Popover>
48
52
  <Menu>
@@ -59,8 +63,12 @@ export const Actions: Story = {
59
63
  export const ItemsDo: Story = {
60
64
  render: ({ defaultOpen, ...args }) => (
61
65
  <MenuTrigger defaultOpen={defaultOpen} {...args}>
62
- <Button className="[--icon-size:24]">
63
- <Icon name="more_horiz" alt="Additional actions" />
66
+ <Button
67
+ size="large"
68
+ icon={<Icon name="more_horiz" isPresentational />}
69
+ hasHiddenLabel
70
+ >
71
+ Additional actions
64
72
  </Button>
65
73
  <Popover>
66
74
  <Menu>
@@ -74,8 +82,12 @@ export const ItemsDo: Story = {
74
82
  export const ItemsDont: Story = {
75
83
  render: ({ defaultOpen, ...args }) => (
76
84
  <MenuTrigger defaultOpen={defaultOpen} {...args}>
77
- <Button className="[--icon-size:24]">
78
- <Icon name="more_horiz" alt="Additional actions" />
85
+ <Button
86
+ size="large"
87
+ icon={<Icon name="more_horiz" isPresentational />}
88
+ hasHiddenLabel
89
+ >
90
+ Additional actions
79
91
  </Button>
80
92
  <Popover>
81
93
  <Menu>
@@ -171,8 +183,12 @@ export const LabelDont: Story = {
171
183
  export const IconsDont: Story = {
172
184
  render: ({ defaultOpen, ...args }) => (
173
185
  <MenuTrigger defaultOpen={defaultOpen}>
174
- <Button className="[--icon-size:24]">
175
- <Icon name="more_horiz" alt="Additional actions" />
186
+ <Button
187
+ size="large"
188
+ icon={<Icon name="more_horiz" isPresentational />}
189
+ hasHiddenLabel
190
+ >
191
+ Additional actions
176
192
  </Button>
177
193
  <Popover>
178
194
  <Menu {...args}>
@@ -193,8 +209,12 @@ export const IconsDont: Story = {
193
209
  export const MenuItemLabelsDont: Story = {
194
210
  render: ({ defaultOpen, ...args }) => (
195
211
  <MenuTrigger defaultOpen={defaultOpen}>
196
- <Button className="[--icon-size:24]">
197
- <Icon name="more_horiz" alt="Additional actions" />
212
+ <Button
213
+ size="large"
214
+ icon={<Icon name="more_horiz" isPresentational />}
215
+ hasHiddenLabel
216
+ >
217
+ Additional actions
198
218
  </Button>
199
219
  <Popover>
200
220
  <Menu {...args}>
@@ -210,8 +230,12 @@ export const MenuItemLabelsDont: Story = {
210
230
  export const SentenceCaseDo: Story = {
211
231
  render: ({ defaultOpen, ...args }) => (
212
232
  <MenuTrigger defaultOpen={defaultOpen}>
213
- <Button className="[--icon-size:24]">
214
- <Icon name="more_horiz" alt="Additional actions" />
233
+ <Button
234
+ size="large"
235
+ icon={<Icon name="more_horiz" isPresentational />}
236
+ hasHiddenLabel
237
+ >
238
+ Additional actions
215
239
  </Button>
216
240
  <Popover>
217
241
  <Menu {...args}>
@@ -227,8 +251,12 @@ export const SentenceCaseDo: Story = {
227
251
  export const SentenceCaseDont: Story = {
228
252
  render: ({ defaultOpen, ...args }) => (
229
253
  <MenuTrigger defaultOpen={defaultOpen}>
230
- <Button className="[--icon-size:24]">
231
- <Icon name="more_horiz" alt="Additional actions" />
254
+ <Button
255
+ size="large"
256
+ icon={<Icon name="more_horiz" isPresentational />}
257
+ hasHiddenLabel
258
+ >
259
+ Additional actions
232
260
  </Button>
233
261
  <Popover>
234
262
  <Menu {...args}>
@@ -244,8 +272,12 @@ export const SentenceCaseDont: Story = {
244
272
  export const ElipsesDo: Story = {
245
273
  render: ({ defaultOpen, ...args }) => (
246
274
  <MenuTrigger defaultOpen={defaultOpen}>
247
- <Button className="[--icon-size:24]">
248
- <Icon name="more_horiz" alt="Additional actions" />
275
+ <Button
276
+ size="large"
277
+ icon={<Icon name="more_horiz" isPresentational />}
278
+ hasHiddenLabel
279
+ >
280
+ Additional actions
249
281
  </Button>
250
282
  <Popover>
251
283
  <Menu {...args}>
@@ -261,8 +293,12 @@ export const ElipsesDo: Story = {
261
293
  export const ElipsesDont: Story = {
262
294
  render: ({ defaultOpen, ...args }) => (
263
295
  <MenuTrigger defaultOpen={defaultOpen}>
264
- <Button className="[--icon-size:24]">
265
- <Icon name="more_horiz" alt="Additional actions" />
296
+ <Button
297
+ size="large"
298
+ icon={<Icon name="more_horiz" isPresentational />}
299
+ hasHiddenLabel
300
+ >
301
+ Additional actions
266
302
  </Button>
267
303
  <Popover>
268
304
  <Menu {...args}>
@@ -36,8 +36,12 @@ export const KitchenSink: Story = {
36
36
  ],
37
37
  render: ({ defaultOpen, ...args }) => (
38
38
  <MenuTrigger defaultOpen={defaultOpen} {...args}>
39
- <Button>
40
- <Icon name="more_horiz" alt="Additional actions" />
39
+ <Button
40
+ size="large"
41
+ icon={<Icon name="more_horiz" isPresentational />}
42
+ hasHiddenLabel
43
+ >
44
+ Additional actions
41
45
  </Button>
42
46
  <Popover>
43
47
  <Menu>
@@ -84,9 +88,14 @@ export const KitchenSink: Story = {
84
88
  export const Basic: Story = {
85
89
  render: ({ defaultOpen, ...args }) => (
86
90
  <MenuTrigger defaultOpen={defaultOpen} {...args}>
87
- <Button>
88
- <Icon name="more_horiz" alt="Additional actions" />
91
+ <Button
92
+ size="large"
93
+ icon={<Icon name="more_horiz" isPresentational />}
94
+ hasHiddenLabel
95
+ >
96
+ Additional actions
89
97
  </Button>
98
+
90
99
  <Popover>
91
100
  <Menu>
92
101
  <MenuItem
@@ -165,8 +174,12 @@ const mockOnClick = fn()
165
174
  export const DisabledItems: Story = {
166
175
  render: () => (
167
176
  <MenuTrigger>
168
- <Button>
169
- <Icon name="more_horiz" alt="Additional actions" />
177
+ <Button
178
+ size="large"
179
+ icon={<Icon name="more_horiz" isPresentational />}
180
+ hasHiddenLabel
181
+ >
182
+ Additional actions
170
183
  </Button>
171
184
  <Popover>
172
185
  <Menu>
@@ -205,8 +218,12 @@ export const DisabledItems: Story = {
205
218
  export const WithSections: Story = {
206
219
  render: () => (
207
220
  <MenuTrigger>
208
- <Button>
209
- <Icon name="more_horiz" alt="Additional actions" />
221
+ <Button
222
+ size="large"
223
+ icon={<Icon name="more_horiz" isPresentational />}
224
+ hasHiddenLabel
225
+ >
226
+ Additional actions
210
227
  </Button>
211
228
  <Popover>
212
229
  <Menu>
@@ -237,8 +254,11 @@ export const Controlled: Story = {
237
254
  Toggle open
238
255
  </button>
239
256
  <MenuTrigger isOpen={isOpen} onOpenChange={setOpen}>
240
- <Button>
241
- <Icon name="more_horiz" alt="Additional actions" />
257
+ <Button
258
+ icon={<Icon name="more_horiz" isPresentational />}
259
+ hasHiddenLabel
260
+ >
261
+ Additional actions
242
262
  </Button>
243
263
  <Popover>
244
264
  <Menu>
@@ -25,8 +25,12 @@ type Story = StoryObj<typeof meta>
25
25
  export const Playground: Story = {
26
26
  render: ({ defaultOpen: _, ...args }) => (
27
27
  <MenuTrigger {...args}>
28
- <Button className="[--icon-size:24]">
29
- <Icon name="more_horiz" alt="Additional actions" />
28
+ <Button
29
+ size="large"
30
+ icon={<Icon name="more_horiz" isPresentational />}
31
+ hasHiddenLabel
32
+ >
33
+ Additional actions
30
34
  </Button>
31
35
  <Popover>
32
36
  <Menu>
@@ -68,8 +72,12 @@ export const Controlled: Story = {
68
72
  export const RichContent: Story = {
69
73
  render: ({ defaultOpen: _, ...args }) => (
70
74
  <MenuTrigger {...args}>
71
- <Button className="[--icon-size:24]">
72
- <Icon name="more_horiz" alt="Additional actions" />
75
+ <Button
76
+ size="large"
77
+ icon={<Icon name="more_horiz" isPresentational />}
78
+ hasHiddenLabel
79
+ >
80
+ Additional actions
73
81
  </Button>
74
82
  <Popover>
75
83
  <Menu>
@@ -1,2 +1,3 @@
1
1
  export * from "./Menu/v3"
2
2
  export * from "./Button/v3"
3
+ export * from "./LinkButton/v3"
@@ -124,20 +124,20 @@ export const Size: Story = {
124
124
 
125
125
  export const MeaningfulIcon: Story = {
126
126
  render: args => (
127
- <Button>
128
- <Icon {...args} />
129
- </Button>
127
+ <Tag color="blue" icon={<Icon {...args} />}>
128
+ Meaningful icons can be helpful
129
+ </Tag>
130
130
  ),
131
- args: { isPresentational: false, alt: "Favourite" },
131
+ args: { isPresentational: false, alt: "Info:", name: "info", isFilled: true },
132
132
  }
133
133
 
134
134
  export const PresentationalIcon: Story = {
135
135
  render: args => (
136
- <Button>
137
- <Icon {...args} /> Favourite
136
+ <Button icon={<Icon {...args} />} hasHiddenLabel>
137
+ Label
138
138
  </Button>
139
139
  ),
140
- args: { isPresentational: true },
140
+ args: { isPresentational: true, name: "add" },
141
141
  }
142
142
 
143
143
  const IconSetButton = ({
@@ -1,5 +1,4 @@
1
1
  import React, { forwardRef, useContext, useLayoutEffect, useState } from "react"
2
- import { VisuallyHidden } from "react-aria"
3
2
  import {
4
3
  Tooltip as RACTooltip,
5
4
  TooltipContext,
@@ -7,6 +6,7 @@ import {
7
6
  TooltipTriggerStateContext,
8
7
  useContextProps,
9
8
  } from "react-aria-components"
9
+ import { VisuallyHidden } from "~components/VisuallyHidden"
10
10
  import { useReversedColors } from "~components/__utilities__/v3"
11
11
  import { mergeClassNames } from "~components/utils/mergeClassNames"
12
12
  import { OverlayArrow } from "./OverlayArrow"
@@ -33,6 +33,8 @@ export default meta
33
33
 
34
34
  type Story = StoryObj<typeof meta>
35
35
 
36
+ // TODO: update this to use the new button component v3
37
+
36
38
  export const OnButton: Story = {
37
39
  render: ({ defaultOpen, isOpen, ...args }) => (
38
40
  <TooltipTrigger defaultOpen={defaultOpen} isOpen={isOpen}>
@@ -1,23 +0,0 @@
1
- 'use strict';
2
-
3
- var styles = {
4
- "container": "EmptyState-module_container__-B5OU",
5
- "straightCorners": "EmptyState-module_straightCorners__Aeou0",
6
- "sidebarAndContent": "EmptyState-module_sidebarAndContent__Eysay",
7
- "contentOnly": "EmptyState-module_contentOnly__RWVVX",
8
- "positive": "EmptyState-module_positive__o3dXR",
9
- "negative": "EmptyState-module_negative__e5ci6",
10
- "action": "EmptyState-module_action__OdsgJ",
11
- "neutral": "EmptyState-module_neutral__L6fBb",
12
- "success": "EmptyState-module_success__y7jKP",
13
- "warning": "EmptyState-module_warning__-PrRp",
14
- "informative": "EmptyState-module_informative__x0GSr",
15
- "expert-advice": "EmptyState-module_expert-advice__VVB8i",
16
- "illustrationSide": "EmptyState-module_illustrationSide__ZSjF3",
17
- "textSide": "EmptyState-module_textSide__tv54w",
18
- "illustration": "EmptyState-module_illustration__HyD2k",
19
- "textSideInner": "EmptyState-module_textSideInner__Yynhi",
20
- "heading": "EmptyState-module_heading__y-yvC",
21
- "description": "EmptyState-module_description__fsJOc"
22
- };
23
- module.exports = styles;
@@ -1,33 +0,0 @@
1
- 'use strict';
2
-
3
- var styles = {
4
- "rightMargin": "GuidanceBlock-module_rightMargin__-iEFa",
5
- "noRightMargin": "GuidanceBlock-module_noRightMargin__4Uy9N",
6
- "banner": "GuidanceBlock-module_banner__FxKcd",
7
- "noMaxWidth": "GuidanceBlock-module_noMaxWidth__UzHP1",
8
- "illustrationWrapper": "GuidanceBlock-module_illustrationWrapper__AEljX",
9
- "illustration": "GuidanceBlock-module_illustration__sU1Vu",
10
- "hasSceneIllustration": "GuidanceBlock-module_hasSceneIllustration__tvFRD",
11
- "descriptionContainer": "GuidanceBlock-module_descriptionContainer__aywtY",
12
- "descriptionAndActions": "GuidanceBlock-module_descriptionAndActions__E5BcL",
13
- "buttonContainer": "GuidanceBlock-module_buttonContainer__U2Hxn",
14
- "hidden": "GuidanceBlock-module_hidden__CbgXn",
15
- "headingWrapper": "GuidanceBlock-module_headingWrapper__zgVmA",
16
- "cancel": "GuidanceBlock-module_cancel__UaIA-",
17
- "icon": "GuidanceBlock-module_icon__y2xz8",
18
- "disabled": "GuidanceBlock-module_disabled__Uhgsr",
19
- "hover": "GuidanceBlock-module_hover__7V9x1",
20
- "active": "GuidanceBlock-module_active__YJaZt",
21
- "default": "GuidanceBlock-module_default__Ffblg",
22
- "positive": "GuidanceBlock-module_positive__yENlT",
23
- "negative": "GuidanceBlock-module_negative__E-Jvh",
24
- "assertive": "GuidanceBlock-module_assertive__6PZlM",
25
- "informative": "GuidanceBlock-module_informative__ZUH4j",
26
- "cautionary": "GuidanceBlock-module_cautionary__sJ1CE",
27
- "prominent": "GuidanceBlock-module_prominent__nn-r4",
28
- "inline": "GuidanceBlock-module_inline__GwOWR",
29
- "stacked": "GuidanceBlock-module_stacked__rDupX",
30
- "centerContent": "GuidanceBlock-module_centerContent__m3IhB",
31
- "smallScreenTextAlignment": "GuidanceBlock-module_smallScreenTextAlignment__oWufj"
32
- };
33
- module.exports = styles;
@@ -1,9 +0,0 @@
1
- 'use strict';
2
-
3
- var styles = {
4
- "button": "Button-module_button__QOSYH",
5
- "default": "Button-module_default__gSx3e",
6
- "reversed": "Button-module_reversed__DT-Id",
7
- "small": "Button-module_small__S-t5B"
8
- };
9
- module.exports = styles;
@@ -1,21 +0,0 @@
1
- var styles = {
2
- "container": "EmptyState-module_container__-B5OU",
3
- "straightCorners": "EmptyState-module_straightCorners__Aeou0",
4
- "sidebarAndContent": "EmptyState-module_sidebarAndContent__Eysay",
5
- "contentOnly": "EmptyState-module_contentOnly__RWVVX",
6
- "positive": "EmptyState-module_positive__o3dXR",
7
- "negative": "EmptyState-module_negative__e5ci6",
8
- "action": "EmptyState-module_action__OdsgJ",
9
- "neutral": "EmptyState-module_neutral__L6fBb",
10
- "success": "EmptyState-module_success__y7jKP",
11
- "warning": "EmptyState-module_warning__-PrRp",
12
- "informative": "EmptyState-module_informative__x0GSr",
13
- "expert-advice": "EmptyState-module_expert-advice__VVB8i",
14
- "illustrationSide": "EmptyState-module_illustrationSide__ZSjF3",
15
- "textSide": "EmptyState-module_textSide__tv54w",
16
- "illustration": "EmptyState-module_illustration__HyD2k",
17
- "textSideInner": "EmptyState-module_textSideInner__Yynhi",
18
- "heading": "EmptyState-module_heading__y-yvC",
19
- "description": "EmptyState-module_description__fsJOc"
20
- };
21
- export { styles as default };
@@ -1,31 +0,0 @@
1
- var styles = {
2
- "rightMargin": "GuidanceBlock-module_rightMargin__-iEFa",
3
- "noRightMargin": "GuidanceBlock-module_noRightMargin__4Uy9N",
4
- "banner": "GuidanceBlock-module_banner__FxKcd",
5
- "noMaxWidth": "GuidanceBlock-module_noMaxWidth__UzHP1",
6
- "illustrationWrapper": "GuidanceBlock-module_illustrationWrapper__AEljX",
7
- "illustration": "GuidanceBlock-module_illustration__sU1Vu",
8
- "hasSceneIllustration": "GuidanceBlock-module_hasSceneIllustration__tvFRD",
9
- "descriptionContainer": "GuidanceBlock-module_descriptionContainer__aywtY",
10
- "descriptionAndActions": "GuidanceBlock-module_descriptionAndActions__E5BcL",
11
- "buttonContainer": "GuidanceBlock-module_buttonContainer__U2Hxn",
12
- "hidden": "GuidanceBlock-module_hidden__CbgXn",
13
- "headingWrapper": "GuidanceBlock-module_headingWrapper__zgVmA",
14
- "cancel": "GuidanceBlock-module_cancel__UaIA-",
15
- "icon": "GuidanceBlock-module_icon__y2xz8",
16
- "disabled": "GuidanceBlock-module_disabled__Uhgsr",
17
- "hover": "GuidanceBlock-module_hover__7V9x1",
18
- "active": "GuidanceBlock-module_active__YJaZt",
19
- "default": "GuidanceBlock-module_default__Ffblg",
20
- "positive": "GuidanceBlock-module_positive__yENlT",
21
- "negative": "GuidanceBlock-module_negative__E-Jvh",
22
- "assertive": "GuidanceBlock-module_assertive__6PZlM",
23
- "informative": "GuidanceBlock-module_informative__ZUH4j",
24
- "cautionary": "GuidanceBlock-module_cautionary__sJ1CE",
25
- "prominent": "GuidanceBlock-module_prominent__nn-r4",
26
- "inline": "GuidanceBlock-module_inline__GwOWR",
27
- "stacked": "GuidanceBlock-module_stacked__rDupX",
28
- "centerContent": "GuidanceBlock-module_centerContent__m3IhB",
29
- "smallScreenTextAlignment": "GuidanceBlock-module_smallScreenTextAlignment__oWufj"
30
- };
31
- export { styles as default };
@@ -1,7 +0,0 @@
1
- var styles = {
2
- "button": "Button-module_button__QOSYH",
3
- "default": "Button-module_default__gSx3e",
4
- "reversed": "Button-module_reversed__DT-Id",
5
- "small": "Button-module_small__S-t5B"
6
- };
7
- export { styles as default };