@kaizen/components 1.68.1 → 1.68.3
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.
- package/codemods/README.md +104 -33
- package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs +16 -3
- package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +16 -3
- package/dist/styles.css +47 -39
- package/dist/types/Tile/subcomponents/GenericTile/GenericTile.d.ts +3 -1
- package/locales/en.json +8 -0
- package/package.json +1 -1
- package/src/Avatar/_docs/Avatar.stickersheet.stories.tsx +30 -32
- package/src/AvatarGroup/_docs/AvatarGroup.stickersheet.stories.tsx +14 -16
- package/src/Badge/_docs/Badge.stickersheet.stories.tsx +22 -22
- package/src/Brand/_docs/Brand.stickersheet.stories.tsx +24 -26
- package/src/BrandMoment/_docs/BrandMoment.stickersheet.stories.tsx +35 -39
- package/src/ButtonGroup/_docs/ButtonGroup.stickersheet.stories.tsx +117 -122
- package/src/Calendar/CalendarPopover/_docs/CalendarPopover.stickersheet.stories.tsx +4 -4
- package/src/Calendar/CalendarRange/_docs/CalendarRange.stickersheet.stories.tsx +22 -30
- package/src/Calendar/CalendarSingle/_docs/CalendarSingle.stickersheet.stories.tsx +58 -58
- package/src/Card/_docs/Card.stickersheet.stories.tsx +12 -16
- package/src/Checkbox/Checkbox/_docs/Checkbox.stickersheet.stories.tsx +24 -27
- package/src/Checkbox/CheckboxField/_docs/CheckboxField.stickersheet.stories.tsx +31 -34
- package/src/Checkbox/CheckboxGroup/_docs/CheckboxGroup.stickersheet.stories.tsx +25 -29
- package/src/ClearButton/_docs/ClearButton.stickersheet.stories.tsx +9 -9
- package/src/Collapsible/Collapsible/_docs/Collapsible.stickersheet.stories.tsx +56 -62
- package/src/Collapsible/CollapsibleGroup/_docs/CollapsibleGroup.stickersheet.stories.tsx +19 -21
- package/src/Collapsible/ExpertAdviceCollapsible/_docs/ExpertAdviceCollapsible.stickersheets.stories.tsx +6 -8
- package/src/DatePicker/_docs/DatePicker.stickersheet.stories.tsx +129 -144
- package/src/DatePicker/_docs/getLocale.stickersheet.stories.tsx +9 -11
- package/src/DateRangePicker/_docs/DateRangePicker.stickersheet.stories.tsx +26 -28
- package/src/Divider/_docs/Divider.stickersheet.stories.tsx +13 -10
- package/src/EmptyState/_docs/EmptyState.stickersheet.stories.tsx +7 -2
- package/src/ErrorPage/_docs/ErrorPage.stickersheet.stories.tsx +16 -20
- package/src/FieldGroup/_docs/FieldGroup.stickersheet.stories.tsx +5 -8
- package/src/FieldMessage/_docs/FieldMessage.stickersheet.stories.tsx +10 -20
- package/src/Filter/Filter/_docs/Filter.stickersheet.stories.tsx +13 -15
- package/src/Filter/FilterBar/_docs/FilterBar.stickersheet.stories.tsx +33 -47
- package/src/Filter/FilterButton/_docs/filter-buttons.stickersheet.stories.tsx +45 -51
- package/src/Filter/FilterDatePicker/_docs/FilterDatePicker.stickersheet.stories.tsx +74 -93
- package/src/Filter/FilterDateRangePicker/_docs/FilterDateRangePicker.stickersheet.stories.tsx +110 -128
- package/src/Filter/FilterSelect/_docs/FilterSelect.stickersheet.stories.tsx +239 -249
- package/src/GuidanceBlock/_docs/GuidanceBlock.stickersheet.stories.tsx +38 -40
- package/src/Heading/_docs/Heading.stickersheet.stories.tsx +101 -111
- package/src/Icon/_docs/Icon.stickersheet.stories.tsx +13 -19
- package/src/Illustration/Scene/BrandMomentCaptureIntro/_docs/BrandMomentCaptureIntro.stickersheet.stories.tsx +8 -8
- package/src/Illustration/Scene/_docs/Scene.stickersheet.stories.tsx +139 -185
- package/src/Illustration/subcomponents/VideoPlayer/VideoPlayer.stickersheet.stories.tsx +39 -41
- package/src/Input/Input/_docs/Input.stickersheet.stories.tsx +30 -33
- package/src/Input/InputRange/_docs/InputRange.stickersheet.stories.tsx +21 -20
- package/src/Input/InputSearch/_docs/InputSearch.stickersheet.stories.tsx +137 -144
- package/src/Label/_docs/Label.stickersheet.stories.tsx +78 -85
- package/src/LabelledMessage/_docs/LabelledMessage.stickersheet.stories.tsx +3 -5
- package/src/LikertScaleLegacy/_docs/LikertScaleLegacy.stickersheet.stories.tsx +82 -82
- package/src/Loading/LoadingGraphic/_docs/LoadingGraphic.stickersheet.stories.tsx +18 -20
- package/src/Loading/LoadingGraphic/_docs/LoadingGraphic.stories.tsx +46 -52
- package/src/Loading/LoadingHeading/_docs/LoadingHeading.stickersheet.stories.tsx +14 -18
- package/src/Loading/LoadingHeading/_docs/LoadingHeading.stories.tsx +7 -13
- package/src/Loading/LoadingParagraph/_docs/LoadingParagraph.stickersheet.stories.tsx +14 -16
- package/src/Loading/LoadingSpinner/_docs/LoadingSpinner.stickersheet.stories.tsx +13 -15
- package/src/MultiSelect/_docs/MultiSelect.stickersheet.stories.tsx +69 -74
- package/src/MultiSelect/subcomponents/Checkbox/_docs/Checkbox.stickersheet.stories.tsx +22 -28
- package/src/MultiSelect/subcomponents/MultiSelectOptionField/_docs/MultiSelectOptionField.stickersheet.stories.tsx +62 -67
- package/src/MultiSelect/subcomponents/MultiSelectOptions/_docs/MultiSelectOptions.stickersheet.stories.tsx +21 -28
- package/src/MultiSelect/subcomponents/MultiSelectToggle/_docs/MultiSelectToggle.stickersheet.stories.tsx +69 -93
- package/src/Notification/GlobalNotification/_docs/GlobalNotification.stickersheet.stories.tsx +13 -16
- package/src/Notification/InlineNotification/_docs/InlineNotification.stickersheet.stories.tsx +13 -16
- package/src/Pagination/_docs/Pagination.stickersheet.stories.tsx +60 -74
- package/src/Pagination/subcomponents/DirectionalLink/_docs/DirectionalLink.stickersheet.stories.tsx +21 -23
- package/src/Pagination/subcomponents/PaginationLink/_docs/PaginationLink.stickersheet.stories.tsx +24 -28
- package/src/Popover/_docs/Popover.stickersheet.stories.tsx +33 -45
- package/src/ProgressBar/_docs/ProgressBar.stickersheet.stories.tsx +15 -26
- package/src/Radio/Radio/_docs/Radio.stickersheet.stories.tsx +46 -54
- package/src/Radio/RadioField/_docs/RadioField.stickersheet.stories.tsx +51 -54
- package/src/Radio/RadioGroup/_docs/RadioGroup.stickersheet.stories.tsx +80 -86
- package/src/RichTextEditor/EditableRichTextContent/_docs/EditableRichTextContent.stickersheet.stories.tsx +42 -58
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stickersheet.stories.tsx +34 -57
- package/src/SearchField/_docs/SearchField.stickersheet.stories.tsx +32 -31
- package/src/Select/_docs/Select.stickersheet.stories.tsx +128 -127
- package/src/Slider/_docs/Slider.stickersheet.stories.tsx +85 -96
- package/src/SplitButton/_docs/SplitButton.stickersheet.stories.tsx +62 -68
- package/src/Tag/_docs/Tag.stickersheet.stories.tsx +49 -57
- package/src/Text/_docs/Text.stickersheet.stories.tsx +43 -47
- package/src/TextArea/_docs/TextArea.stickersheet.stories.tsx +28 -31
- package/src/TextAreaField/_docs/TextAreaField.stickersheet.stories.tsx +71 -89
- package/src/TextField/_docs/TextField.stickersheet.stories.tsx +47 -50
- package/src/Tile/InformationTile/_docs/InformationTile.mdx +4 -0
- package/src/Tile/InformationTile/_docs/InformationTile.stickersheet.stories.tsx +15 -21
- package/src/Tile/InformationTile/_docs/InformationTile.stories.tsx +7 -0
- package/src/Tile/MultiActionTile/_docs/MultiActionTile.stickersheet.stories.tsx +15 -21
- package/src/Tile/TileGrid/_docs/TileGrid.stickersheet.stories.tsx +91 -99
- package/src/Tile/subcomponents/GenericTile/GenericTile.spec.stories.tsx +65 -5
- package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +20 -2
- package/src/Tile/subcomponents/GenericTile/_docs/GenericTile.stickersheet.stories.tsx +15 -21
- package/src/TimeField/_docs/TimeField.stickersheet.stories.tsx +74 -83
- package/src/TitleBlockZen/_docs/TitleBlockZen.stories.tsx +73 -75
- package/src/ToggleSwitch/ToggleSwitch/_docs/ToggleSwitch.stickersheet.stories.tsx +24 -27
- package/src/ToggleSwitch/ToggleSwitchField/_docs/ToggleSwitchField.stickersheet.stories.tsx +47 -50
- package/src/Well/_docs/Well.stickersheet.stories.tsx +31 -41
- package/src/__actions__/Button/v1/Button/_docs/Button.stickersheet.stories.tsx +107 -146
- package/src/__actions__/Button/v1/IconButton/_docs/IconButton.stickersheet.stories.tsx +26 -29
- package/src/__actions__/Button/v3/_docs/Button.stickersheet.stories.tsx +141 -159
- package/src/__actions__/Menu/v1/_docs/Menu.stickersheet.stories.tsx +33 -36
- package/src/__actions__/Menu/v3/MenuItem.module.css +11 -3
- package/src/__actions__/Menu/v3/_docs/Menu.docs.stories.tsx +14 -5
- package/src/__actions__/Menu/v3/_docs/Menu.spec.stories.tsx +5 -0
- package/src/__actions__/Menu/v3/_docs/Menu.stories.tsx +2 -0
- package/src/__future__/Icon/_docs/Icon.docs.stories.tsx +17 -23
- package/src/__future__/Icon/_docs/Icon.stickersheet.stories.tsx +63 -72
- package/src/__future__/Select/_docs/Select.stickersheet.stories.tsx +287 -309
- package/src/__future__/Tag/RemovableTag/_docs/RemovableTag.stickersheet.stories.tsx +42 -46
- package/src/__future__/Tag/Tag/_docs/Tag.stickersheet.stories.tsx +14 -17
- package/src/__overlays__/Tooltip/v1/_docs/Tooltip.stickersheet.stories.tsx +101 -103
- package/src/__overlays__/Tooltip/v3/_docs/Tooltip.stickersheet.stories.tsx +3 -4
|
@@ -16,52 +16,48 @@ export default {
|
|
|
16
16
|
|
|
17
17
|
const StickerSheetTemplate: StickerSheetStory = {
|
|
18
18
|
render: () => (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
</StickerSheet.Row>
|
|
62
|
-
</StickerSheet.Body>
|
|
63
|
-
</StickerSheet>
|
|
64
|
-
</>
|
|
19
|
+
<StickerSheet
|
|
20
|
+
title="RemovableTag"
|
|
21
|
+
headers={["Default", "Hover", "Focus", "Focus visible"]}
|
|
22
|
+
>
|
|
23
|
+
<StickerSheet.Row>
|
|
24
|
+
<RemovableTag
|
|
25
|
+
removeButtonProps={{
|
|
26
|
+
ariaLabel: "Remove tag",
|
|
27
|
+
onClick: () => alert("clicked"),
|
|
28
|
+
}}
|
|
29
|
+
>
|
|
30
|
+
My tag
|
|
31
|
+
</RemovableTag>
|
|
32
|
+
<RemovableTag
|
|
33
|
+
data-sb-pseudo-styles="hover"
|
|
34
|
+
removeButtonProps={{
|
|
35
|
+
ariaLabel: "Remove tag",
|
|
36
|
+
onClick: () => alert("clicked"),
|
|
37
|
+
}}
|
|
38
|
+
>
|
|
39
|
+
My tag
|
|
40
|
+
</RemovableTag>
|
|
41
|
+
<RemovableTag
|
|
42
|
+
data-sb-pseudo-styles="focus"
|
|
43
|
+
removeButtonProps={{
|
|
44
|
+
ariaLabel: "Remove tag",
|
|
45
|
+
onClick: () => alert("clicked"),
|
|
46
|
+
}}
|
|
47
|
+
>
|
|
48
|
+
My tag
|
|
49
|
+
</RemovableTag>
|
|
50
|
+
<RemovableTag
|
|
51
|
+
data-sb-pseudo-styles="focus-visible"
|
|
52
|
+
removeButtonProps={{
|
|
53
|
+
ariaLabel: "Remove tag",
|
|
54
|
+
onClick: () => alert("clicked"),
|
|
55
|
+
}}
|
|
56
|
+
>
|
|
57
|
+
My tag
|
|
58
|
+
</RemovableTag>
|
|
59
|
+
</StickerSheet.Row>
|
|
60
|
+
</StickerSheet>
|
|
65
61
|
),
|
|
66
62
|
parameters: {
|
|
67
63
|
pseudo: {
|
|
@@ -18,23 +18,20 @@ export default {
|
|
|
18
18
|
|
|
19
19
|
const StickerSheetTemplate: StickerSheetStory = {
|
|
20
20
|
render: () => (
|
|
21
|
-
<StickerSheet
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
</StickerSheet.Row>
|
|
36
|
-
))}
|
|
37
|
-
</StickerSheet.Body>
|
|
21
|
+
<StickerSheet title="Tag" headers={["Label Only", "Icon"]}>
|
|
22
|
+
{TagColorKeys.map(color => (
|
|
23
|
+
<StickerSheet.Row key={color}>
|
|
24
|
+
<Tag color={color}>
|
|
25
|
+
{color.charAt(0).toUpperCase() + color.slice(1)}
|
|
26
|
+
</Tag>
|
|
27
|
+
<Tag
|
|
28
|
+
icon={<Icon name="label" isPresentational isFilled />}
|
|
29
|
+
color={color}
|
|
30
|
+
>
|
|
31
|
+
{color.charAt(0).toUpperCase() + color.slice(1)}
|
|
32
|
+
</Tag>
|
|
33
|
+
</StickerSheet.Row>
|
|
34
|
+
))}
|
|
38
35
|
</StickerSheet>
|
|
39
36
|
),
|
|
40
37
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react"
|
|
2
|
-
import {
|
|
2
|
+
import { Meta } from "@storybook/react"
|
|
3
3
|
import isChromatic from "chromatic/isChromatic"
|
|
4
4
|
import { IconButton } from "~components/__actions__/v2"
|
|
5
5
|
import { Icon } from "~components/__future__/Icon"
|
|
@@ -9,10 +9,7 @@ import {
|
|
|
9
9
|
} from "~storybook/components/StickerSheet"
|
|
10
10
|
import { Tooltip } from "../index"
|
|
11
11
|
|
|
12
|
-
const
|
|
13
|
-
if (isChromatic()) args.isInitiallyVisible = true
|
|
14
|
-
return <Story />
|
|
15
|
-
}
|
|
12
|
+
const IS_CHROMATIC = isChromatic()
|
|
16
13
|
|
|
17
14
|
export default {
|
|
18
15
|
title: "Overlays/Tooltip/v1",
|
|
@@ -20,7 +17,9 @@ export default {
|
|
|
20
17
|
chromatic: { disable: false },
|
|
21
18
|
controls: { disable: true },
|
|
22
19
|
},
|
|
23
|
-
|
|
20
|
+
args: {
|
|
21
|
+
isInitiallyVisible: IS_CHROMATIC,
|
|
22
|
+
},
|
|
24
23
|
} satisfies Meta
|
|
25
24
|
|
|
26
25
|
const cellStyle = {
|
|
@@ -30,104 +29,103 @@ const cellStyle = {
|
|
|
30
29
|
const StickerSheetTemplate: StickerSheetStory = {
|
|
31
30
|
render: props => (
|
|
32
31
|
<div style={{ padding: "50px 100px" }}>
|
|
33
|
-
<StickerSheet
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
/>
|
|
43
|
-
|
|
44
|
-
</
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
/>
|
|
51
|
-
|
|
52
|
-
</
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
/>
|
|
59
|
-
|
|
60
|
-
</
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
/>
|
|
72
|
-
|
|
73
|
-
</
|
|
74
|
-
</StickerSheet.
|
|
75
|
-
</StickerSheet.
|
|
32
|
+
<StickerSheet
|
|
33
|
+
title="Positions"
|
|
34
|
+
headers={["Top", "Bottom", "Left", "Right"]}
|
|
35
|
+
>
|
|
36
|
+
<StickerSheet.Row>
|
|
37
|
+
<StickerSheet.Cell style={cellStyle}>
|
|
38
|
+
<Tooltip {...props} position="above" text="Tooltip label">
|
|
39
|
+
<IconButton
|
|
40
|
+
label="Label"
|
|
41
|
+
icon={<Icon name="more_horiz" isPresentational />}
|
|
42
|
+
/>
|
|
43
|
+
</Tooltip>
|
|
44
|
+
</StickerSheet.Cell>
|
|
45
|
+
<StickerSheet.Cell style={cellStyle}>
|
|
46
|
+
<Tooltip {...props} position="below" text="Tooltip label">
|
|
47
|
+
<IconButton
|
|
48
|
+
label="Label"
|
|
49
|
+
icon={<Icon name="more_horiz" isPresentational />}
|
|
50
|
+
/>
|
|
51
|
+
</Tooltip>
|
|
52
|
+
</StickerSheet.Cell>
|
|
53
|
+
<StickerSheet.Cell style={cellStyle}>
|
|
54
|
+
<Tooltip {...props} position="left" text="Tooltip label">
|
|
55
|
+
<IconButton
|
|
56
|
+
label="Label"
|
|
57
|
+
icon={<Icon name="more_horiz" isPresentational />}
|
|
58
|
+
/>
|
|
59
|
+
</Tooltip>
|
|
60
|
+
</StickerSheet.Cell>
|
|
61
|
+
<StickerSheet.Cell style={cellStyle}>
|
|
62
|
+
<Tooltip
|
|
63
|
+
{...props}
|
|
64
|
+
position="right"
|
|
65
|
+
text="Tooltip label"
|
|
66
|
+
mood="default"
|
|
67
|
+
>
|
|
68
|
+
<IconButton
|
|
69
|
+
label="Label"
|
|
70
|
+
icon={<Icon name="more_horiz" isPresentational />}
|
|
71
|
+
/>
|
|
72
|
+
</Tooltip>
|
|
73
|
+
</StickerSheet.Cell>
|
|
74
|
+
</StickerSheet.Row>
|
|
76
75
|
</StickerSheet>
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
</StickerSheet.Body>
|
|
76
|
+
|
|
77
|
+
<StickerSheet
|
|
78
|
+
title="Moods"
|
|
79
|
+
headers={[
|
|
80
|
+
"Default",
|
|
81
|
+
"Informative",
|
|
82
|
+
"Positive",
|
|
83
|
+
"Highlight",
|
|
84
|
+
"Cautionary",
|
|
85
|
+
]}
|
|
86
|
+
>
|
|
87
|
+
<StickerSheet.Row>
|
|
88
|
+
<StickerSheet.Cell style={cellStyle}>
|
|
89
|
+
<Tooltip {...props} text="Tooltip label" mood="default">
|
|
90
|
+
<IconButton
|
|
91
|
+
label="Label"
|
|
92
|
+
icon={<Icon name="more_horiz" isPresentational />}
|
|
93
|
+
/>
|
|
94
|
+
</Tooltip>
|
|
95
|
+
</StickerSheet.Cell>
|
|
96
|
+
<StickerSheet.Cell style={cellStyle}>
|
|
97
|
+
<Tooltip {...props} text="Tooltip label" mood="informative">
|
|
98
|
+
<IconButton
|
|
99
|
+
label="Label"
|
|
100
|
+
icon={<Icon name="more_horiz" isPresentational />}
|
|
101
|
+
/>
|
|
102
|
+
</Tooltip>
|
|
103
|
+
</StickerSheet.Cell>
|
|
104
|
+
<StickerSheet.Cell style={cellStyle}>
|
|
105
|
+
<Tooltip {...props} text="Tooltip label" mood="positive">
|
|
106
|
+
<IconButton
|
|
107
|
+
label="Label"
|
|
108
|
+
icon={<Icon name="more_horiz" isPresentational />}
|
|
109
|
+
/>
|
|
110
|
+
</Tooltip>
|
|
111
|
+
</StickerSheet.Cell>
|
|
112
|
+
<StickerSheet.Cell style={cellStyle}>
|
|
113
|
+
<Tooltip {...props} text="Tooltip label" mood="highlight">
|
|
114
|
+
<IconButton
|
|
115
|
+
label="Label"
|
|
116
|
+
icon={<Icon name="more_horiz" isPresentational />}
|
|
117
|
+
/>
|
|
118
|
+
</Tooltip>
|
|
119
|
+
</StickerSheet.Cell>
|
|
120
|
+
<StickerSheet.Cell style={cellStyle}>
|
|
121
|
+
<Tooltip {...props} text="Tooltip label" mood="cautionary">
|
|
122
|
+
<IconButton
|
|
123
|
+
label="Label"
|
|
124
|
+
icon={<Icon name="more_horiz" isPresentational />}
|
|
125
|
+
/>
|
|
126
|
+
</Tooltip>
|
|
127
|
+
</StickerSheet.Cell>
|
|
128
|
+
</StickerSheet.Row>
|
|
131
129
|
</StickerSheet>
|
|
132
130
|
</div>
|
|
133
131
|
),
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
|
-
import { Meta, composeStories } from "@storybook/react"
|
|
2
|
+
import { type Meta, type StoryObj, composeStories } from "@storybook/react"
|
|
3
3
|
import { ReversedColors } from "~components/__utilities__/v3"
|
|
4
4
|
import { mergeClassNames } from "~components/utils/mergeClassNames"
|
|
5
|
-
import { StickerSheetStory } from "~storybook/components/StickerSheet"
|
|
6
5
|
import * as testStories from "./Tooltip.spec.stories"
|
|
7
6
|
|
|
8
7
|
export default {
|
|
@@ -15,7 +14,7 @@ export default {
|
|
|
15
14
|
|
|
16
15
|
const Stories = composeStories(testStories)
|
|
17
16
|
|
|
18
|
-
export const Standard:
|
|
17
|
+
export const Standard: StoryObj = {
|
|
19
18
|
name: "Sticker Sheet (Default)",
|
|
20
19
|
render: args => (
|
|
21
20
|
<div className="grid gap-x-128 gap-y-128 grid-cols-1 md:grid-cols-2 lg:grid-cols-3">
|
|
@@ -36,7 +35,7 @@ export const Standard: StickerSheetStory = {
|
|
|
36
35
|
),
|
|
37
36
|
}
|
|
38
37
|
|
|
39
|
-
export const StickerSheetRTL:
|
|
38
|
+
export const StickerSheetRTL: StoryObj = {
|
|
40
39
|
...Standard,
|
|
41
40
|
name: "Sticker Sheet (RTL)",
|
|
42
41
|
parameters: {
|