@lumx/react 3.1.4 → 3.2.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.
- package/_internal/types.d.ts +16 -5
- package/index.d.ts +51 -4
- package/index.js +621 -417
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/alert-dialog/AlertDialog.stories.tsx +96 -165
- package/src/components/alert-dialog/AlertDialog.test.tsx +15 -23
- package/src/components/avatar/Avatar.stories.tsx +91 -62
- package/src/components/avatar/Avatar.test.tsx +9 -24
- package/src/components/badge/Badge.stories.tsx +63 -38
- package/src/components/button/Button.stories.tsx +147 -139
- package/src/components/button/IconButton.stories.tsx +45 -0
- package/src/components/checkbox/Checkbox.stories.tsx +37 -30
- package/src/components/chip/Chip.stories.tsx +77 -15
- package/src/components/comment-block/CommentBlock.stories.tsx +90 -25
- package/src/components/comment-block/CommentBlock.test.tsx +12 -17
- package/src/components/date-picker/DatePickerField.stories.tsx +52 -83
- package/src/components/dialog/Dialog.stories.tsx +132 -240
- package/src/components/dialog/Dialog.test.tsx +6 -30
- package/src/components/dialog/Dialog.tsx +17 -3
- package/src/components/dropdown/Dropdown.stories.tsx +1 -186
- package/src/components/flag/Flag.stories.tsx +33 -18
- package/src/components/flag/Flag.test.tsx +1 -8
- package/src/components/flex-box/FlexBox.stories.tsx +151 -238
- package/src/components/flex-box/FlexBox.test.tsx +9 -49
- package/src/components/generic-block/GenericBlock.stories.jsx +1 -1
- package/src/components/grid-column/GridColumn.stories.tsx +46 -0
- package/src/components/heading/Heading.stories.tsx +57 -95
- package/src/components/icon/Icon.stories.tsx +67 -70
- package/src/components/image-block/ImageBlock.stories.tsx +103 -47
- package/src/components/image-block/ImageBlock.test.tsx +12 -17
- package/src/components/inline-list/InlineList.stories.tsx +45 -29
- package/src/components/input-helper/InputHelper.stories.tsx +31 -25
- package/src/components/input-label/InputLabel.stories.tsx +33 -10
- package/src/components/lightbox/Lightbox.stories.tsx +39 -77
- package/src/components/lightbox/Lightbox.test.tsx +12 -17
- package/src/components/link/Link.stories.tsx +98 -128
- package/src/components/link-preview/LinkPreview.stories.tsx +48 -75
- package/src/components/list/List.stories.tsx +59 -84
- package/src/components/list/List.test.tsx +8 -17
- package/src/components/list/ListDivider.stories.tsx +9 -4
- package/src/components/list/ListDivider.test.tsx +12 -17
- package/src/components/list/ListItem.stories.tsx +97 -59
- package/src/components/list/ListItem.test.tsx +12 -17
- package/src/components/list/ListSubheader.stories.tsx +8 -5
- package/src/components/list/ListSubheader.test.tsx +12 -18
- package/src/components/message/Message.stories.tsx +51 -22
- package/src/components/mosaic/Mosaic.stories.tsx +78 -74
- package/src/components/mosaic/Mosaic.test.tsx +0 -31
- package/src/components/navigation/Navigation.stories.tsx +67 -0
- package/src/components/navigation/Navigation.test.tsx +58 -0
- package/src/components/navigation/Navigation.tsx +62 -0
- package/src/components/navigation/NavigationItem.test.tsx +37 -0
- package/src/components/navigation/NavigationItem.tsx +89 -0
- package/src/components/navigation/NavigationSection.test.tsx +126 -0
- package/src/components/navigation/NavigationSection.tsx +109 -0
- package/src/components/navigation/context.tsx +6 -0
- package/src/components/navigation/index.ts +1 -0
- package/src/components/notification/Notifications.stories.tsx +52 -47
- package/src/components/popover/Popover.stories.tsx +68 -201
- package/src/components/popover-dialog/PopoverDialog.stories.tsx +26 -65
- package/src/components/post-block/PostBlock.test.tsx +12 -17
- package/src/components/progress/ProgressCircular.stories.tsx +24 -12
- package/src/components/progress/ProgressLinear.stories.tsx +6 -2
- package/src/components/radio-button/RadioButton.stories.tsx +35 -24
- package/src/components/select/Select.stories.tsx +19 -23
- package/src/components/skeleton/SkeletonCircle.stories.tsx +37 -21
- package/src/components/skeleton/SkeletonCircle.test.tsx +12 -17
- package/src/components/skeleton/SkeletonRectangle.stories.tsx +74 -99
- package/src/components/skeleton/SkeletonRectangle.test.tsx +12 -17
- package/src/components/skeleton/SkeletonTypography.test.tsx +12 -17
- package/src/components/slider/Slider.stories.tsx +41 -25
- package/src/components/slider/Slider.test.tsx +12 -18
- package/src/components/slideshow/Slideshow.stories.tsx +31 -61
- package/src/components/slideshow/Slideshow.test.tsx +15 -23
- package/src/components/slideshow/SlideshowControls.stories.tsx +4 -6
- package/src/components/switch/Switch.stories.tsx +35 -32
- package/src/components/table/Table.test.tsx +12 -17
- package/src/components/tabs/Tabs.stories.tsx +4 -3
- package/src/components/text/Text.stories.tsx +130 -0
- package/src/components/text-field/TextField.stories.tsx +114 -148
- package/src/components/thumbnail/Thumbnail.stories.tsx +106 -255
- package/src/components/thumbnail/Thumbnail.test.tsx +12 -35
- package/src/components/tooltip/Tooltip.stories.tsx +51 -136
- package/src/components/user-block/UserBlock.stories.tsx +67 -56
- package/src/components/user-block/UserBlock.test.tsx +1 -5
- package/src/index.ts +1 -0
- package/src/stories/controls/color.ts +6 -0
- package/src/stories/controls/element.ts +6 -0
- package/src/stories/controls/focusPoint.ts +1 -0
- package/src/stories/controls/icons.ts +6 -0
- package/src/stories/{knobs → controls}/image.ts +6 -16
- package/src/stories/controls/selectArgType.ts +4 -0
- package/src/stories/controls/theme.ts +3 -0
- package/src/stories/controls/typography.ts +5 -0
- package/src/stories/controls/withUndefined.ts +1 -0
- package/src/stories/decorators/withChromaticForceScreenSize.tsx +8 -0
- package/src/stories/decorators/withCombinations.tsx +99 -0
- package/src/stories/decorators/withNestedProps.tsx +23 -0
- package/src/stories/{withResizableBox.tsx → decorators/withResizableBox.tsx} +6 -10
- package/src/stories/decorators/withValueOnChange.tsx +18 -0
- package/src/stories/decorators/withWrapper.tsx +19 -0
- package/src/stories/utils/CustomLink.tsx +8 -2
- package/src/stories/{knobs → utils}/lorem.ts +9 -9
- package/src/testing/utils/commonTestsSuiteRTL.ts +2 -3
- package/src/testing/utils/index.ts +0 -2
- package/src/untypped-modules.d.ts +0 -2
- package/src/utils/MaterialThemeSwitcher/MaterialThemeSwitcher.tsx +1 -1
- package/src/utils/ThemeContext.ts +4 -0
- package/src/utils/forwardRefPolymorphic.ts +9 -0
- package/src/utils/type.ts +28 -4
- package/src/components/alert-dialog/__snapshots__/AlertDialog.test.tsx.snap +0 -551
- package/src/components/avatar/__snapshots__/Avatar.test.tsx.snap +0 -681
- package/src/components/comment-block/__snapshots__/CommentBlock.test.tsx.snap +0 -92
- package/src/components/dialog/__snapshots__/Dialog.test.tsx.snap +0 -960
- package/src/components/expansion-panel/ExpansionPanel.stories.tsx +0 -65
- package/src/components/flag/__snapshots__/Flag.test.tsx.snap +0 -133
- package/src/components/flex-box/__snapshots__/FlexBox.test.tsx.snap +0 -492
- package/src/components/grid-column/GridColumn.stories.jsx +0 -56
- package/src/components/image-block/__snapshots__/ImageBlock.test.tsx.snap +0 -64
- package/src/components/lightbox/__snapshots__/Lightbox.test.tsx.snap +0 -194
- package/src/components/list/__snapshots__/List.test.tsx.snap +0 -360
- package/src/components/list/__snapshots__/ListDivider.test.tsx.snap +0 -7
- package/src/components/list/__snapshots__/ListItem.test.tsx.snap +0 -160
- package/src/components/list/__snapshots__/ListSubheader.test.tsx.snap +0 -9
- package/src/components/mosaic/__snapshots__/Mosaic.test.tsx.snap +0 -357
- package/src/components/post-block/__snapshots__/PostBlock.test.tsx.snap +0 -139
- package/src/components/skeleton/__snapshots__/SkeletonCircle.test.tsx.snap +0 -54
- package/src/components/skeleton/__snapshots__/SkeletonRectangle.test.tsx.snap +0 -177
- package/src/components/skeleton/__snapshots__/SkeletonTypography.test.tsx.snap +0 -174
- package/src/components/slider/__snapshots__/Slider.test.tsx.snap +0 -122
- package/src/components/slideshow/__snapshots__/Slideshow.test.tsx.snap +0 -157
- package/src/components/table/__snapshots__/Table.test.tsx.snap +0 -263
- package/src/components/text/Text.stories.jsx +0 -75
- package/src/components/thumbnail/__snapshots__/Thumbnail.test.tsx.snap +0 -130
- package/src/components/user-block/__snapshots__/UserBlock.test.tsx.snap +0 -362
- package/src/stories/chromaticForceScreenSize.tsx +0 -7
- package/src/stories/knobs/buttonKnob.ts +0 -9
- package/src/stories/knobs/emphasisKnob.ts +0 -8
- package/src/stories/knobs/enumKnob.ts +0 -14
- package/src/stories/knobs/focusKnob.ts +0 -3
- package/src/stories/knobs/sizeKnob.ts +0 -5
- package/src/stories/knobs/thumbnailsKnob.ts +0 -9
- package/src/testing/utils/itShouldRenderStories.tsx +0 -103
|
@@ -1,551 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`<AlertDialog> Snapshots and structure should render story 'Default' 1`] = `
|
|
4
|
-
<Dialog
|
|
5
|
-
className="lumx-alert-dialog lumx-alert-dialog--kind-info"
|
|
6
|
-
dialogProps={
|
|
7
|
-
{
|
|
8
|
-
"aria-describedby": "uid-description",
|
|
9
|
-
"aria-labelledby": "uid-title",
|
|
10
|
-
"id": "uid",
|
|
11
|
-
"role": "alertdialog",
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
focusElement={
|
|
15
|
-
{
|
|
16
|
-
"current": null,
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
isOpen={true}
|
|
20
|
-
onClose={[Function]}
|
|
21
|
-
parentElement={
|
|
22
|
-
{
|
|
23
|
-
"current": undefined,
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
size="tiny"
|
|
27
|
-
>
|
|
28
|
-
<header>
|
|
29
|
-
<Toolbar
|
|
30
|
-
before={
|
|
31
|
-
<Icon
|
|
32
|
-
color="blue"
|
|
33
|
-
icon="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
|
|
34
|
-
size="s"
|
|
35
|
-
/>
|
|
36
|
-
}
|
|
37
|
-
className="lumx-spacing-margin-horizontal"
|
|
38
|
-
label={
|
|
39
|
-
<h2
|
|
40
|
-
className="lumx-typography-title"
|
|
41
|
-
id="uid-title"
|
|
42
|
-
>
|
|
43
|
-
Default (info)
|
|
44
|
-
</h2>
|
|
45
|
-
}
|
|
46
|
-
/>
|
|
47
|
-
</header>
|
|
48
|
-
<p
|
|
49
|
-
className="lumx-typography-body2 lumx-spacing-padding-vertical-big lumx-spacing-padding-horizontal-huge"
|
|
50
|
-
id="uid-description"
|
|
51
|
-
>
|
|
52
|
-
Consequat deserunt officia aute laborum tempor anim sint est.
|
|
53
|
-
</p>
|
|
54
|
-
<footer>
|
|
55
|
-
<Toolbar
|
|
56
|
-
after={
|
|
57
|
-
<React.Fragment>
|
|
58
|
-
<Button
|
|
59
|
-
className="lumx-spacing-margin-left-regular"
|
|
60
|
-
color="blue"
|
|
61
|
-
emphasis="high"
|
|
62
|
-
onClick={[Function]}
|
|
63
|
-
size="m"
|
|
64
|
-
theme="light"
|
|
65
|
-
>
|
|
66
|
-
Confirm
|
|
67
|
-
</Button>
|
|
68
|
-
</React.Fragment>
|
|
69
|
-
}
|
|
70
|
-
className="lumx-spacing-margin-horizontal"
|
|
71
|
-
/>
|
|
72
|
-
</footer>
|
|
73
|
-
</Dialog>
|
|
74
|
-
`;
|
|
75
|
-
|
|
76
|
-
exports[`<AlertDialog> Snapshots and structure should render story 'Error' 1`] = `
|
|
77
|
-
<Dialog
|
|
78
|
-
className="lumx-alert-dialog lumx-alert-dialog--kind-error"
|
|
79
|
-
dialogProps={
|
|
80
|
-
{
|
|
81
|
-
"aria-describedby": "alert-dialog-description",
|
|
82
|
-
"aria-labelledby": "alert-dialog-title",
|
|
83
|
-
"id": "alert-dialog",
|
|
84
|
-
"role": "alertdialog",
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
focusElement={
|
|
88
|
-
{
|
|
89
|
-
"current": null,
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
isOpen={true}
|
|
93
|
-
onClose={[Function]}
|
|
94
|
-
parentElement={
|
|
95
|
-
{
|
|
96
|
-
"current": undefined,
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
size="tiny"
|
|
100
|
-
>
|
|
101
|
-
<header>
|
|
102
|
-
<Toolbar
|
|
103
|
-
before={
|
|
104
|
-
<Icon
|
|
105
|
-
color="red"
|
|
106
|
-
icon="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"
|
|
107
|
-
size="s"
|
|
108
|
-
/>
|
|
109
|
-
}
|
|
110
|
-
className="lumx-spacing-margin-horizontal"
|
|
111
|
-
label={
|
|
112
|
-
<h2
|
|
113
|
-
className="lumx-typography-title"
|
|
114
|
-
id="alert-dialog-title"
|
|
115
|
-
>
|
|
116
|
-
Error
|
|
117
|
-
</h2>
|
|
118
|
-
}
|
|
119
|
-
/>
|
|
120
|
-
</header>
|
|
121
|
-
<p
|
|
122
|
-
className="lumx-typography-body2 lumx-spacing-padding-vertical-big lumx-spacing-padding-horizontal-huge"
|
|
123
|
-
id="alert-dialog-description"
|
|
124
|
-
>
|
|
125
|
-
Consequat deserunt officia aute laborum tempor anim sint est.
|
|
126
|
-
</p>
|
|
127
|
-
<footer>
|
|
128
|
-
<Toolbar
|
|
129
|
-
after={
|
|
130
|
-
<React.Fragment>
|
|
131
|
-
<Button
|
|
132
|
-
className="lumx-spacing-margin-left-regular"
|
|
133
|
-
color="red"
|
|
134
|
-
emphasis="high"
|
|
135
|
-
onClick={[Function]}
|
|
136
|
-
size="m"
|
|
137
|
-
theme="light"
|
|
138
|
-
>
|
|
139
|
-
OK
|
|
140
|
-
</Button>
|
|
141
|
-
</React.Fragment>
|
|
142
|
-
}
|
|
143
|
-
className="lumx-spacing-margin-horizontal"
|
|
144
|
-
/>
|
|
145
|
-
</footer>
|
|
146
|
-
</Dialog>
|
|
147
|
-
`;
|
|
148
|
-
|
|
149
|
-
exports[`<AlertDialog> Snapshots and structure should render story 'RichDescription' 1`] = `
|
|
150
|
-
<Dialog
|
|
151
|
-
className="lumx-alert-dialog lumx-alert-dialog--kind-info"
|
|
152
|
-
dialogProps={
|
|
153
|
-
{
|
|
154
|
-
"aria-describedby": "alert-dialog-description",
|
|
155
|
-
"aria-labelledby": "alert-dialog-title",
|
|
156
|
-
"id": "alert-dialog",
|
|
157
|
-
"role": "alertdialog",
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
focusElement={
|
|
161
|
-
{
|
|
162
|
-
"current": null,
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
isOpen={true}
|
|
166
|
-
onClose={[Function]}
|
|
167
|
-
parentElement={
|
|
168
|
-
{
|
|
169
|
-
"current": undefined,
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
size="tiny"
|
|
173
|
-
>
|
|
174
|
-
<header>
|
|
175
|
-
<Toolbar
|
|
176
|
-
before={
|
|
177
|
-
<Icon
|
|
178
|
-
color="blue"
|
|
179
|
-
icon="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
|
|
180
|
-
size="s"
|
|
181
|
-
/>
|
|
182
|
-
}
|
|
183
|
-
className="lumx-spacing-margin-horizontal"
|
|
184
|
-
label={
|
|
185
|
-
<h2
|
|
186
|
-
className="lumx-typography-title"
|
|
187
|
-
id="alert-dialog-title"
|
|
188
|
-
>
|
|
189
|
-
With Rich Description
|
|
190
|
-
</h2>
|
|
191
|
-
}
|
|
192
|
-
/>
|
|
193
|
-
</header>
|
|
194
|
-
<div
|
|
195
|
-
className="lumx-typography-body2 lumx-spacing-padding-vertical-big lumx-spacing-padding-horizontal-huge"
|
|
196
|
-
id="alert-dialog-description"
|
|
197
|
-
>
|
|
198
|
-
Amet ut elit dolore irure mollit
|
|
199
|
-
<strong>
|
|
200
|
-
sunt culpa esse
|
|
201
|
-
</strong>
|
|
202
|
-
.
|
|
203
|
-
<br />
|
|
204
|
-
Ea ut Lorem.
|
|
205
|
-
<br />
|
|
206
|
-
<Link
|
|
207
|
-
href="https://example.com"
|
|
208
|
-
target="_blank"
|
|
209
|
-
>
|
|
210
|
-
Link
|
|
211
|
-
</Link>
|
|
212
|
-
</div>
|
|
213
|
-
<footer>
|
|
214
|
-
<Toolbar
|
|
215
|
-
after={
|
|
216
|
-
<React.Fragment>
|
|
217
|
-
<Button
|
|
218
|
-
className="lumx-spacing-margin-left-regular"
|
|
219
|
-
color="blue"
|
|
220
|
-
emphasis="high"
|
|
221
|
-
onClick={[Function]}
|
|
222
|
-
size="m"
|
|
223
|
-
theme="light"
|
|
224
|
-
>
|
|
225
|
-
OK
|
|
226
|
-
</Button>
|
|
227
|
-
</React.Fragment>
|
|
228
|
-
}
|
|
229
|
-
className="lumx-spacing-margin-horizontal"
|
|
230
|
-
/>
|
|
231
|
-
</footer>
|
|
232
|
-
</Dialog>
|
|
233
|
-
`;
|
|
234
|
-
|
|
235
|
-
exports[`<AlertDialog> Snapshots and structure should render story 'Success' 1`] = `
|
|
236
|
-
<Dialog
|
|
237
|
-
className="lumx-alert-dialog lumx-alert-dialog--kind-success"
|
|
238
|
-
dialogProps={
|
|
239
|
-
{
|
|
240
|
-
"aria-describedby": "alert-dialog-description",
|
|
241
|
-
"aria-labelledby": "alert-dialog-title",
|
|
242
|
-
"id": "alert-dialog",
|
|
243
|
-
"role": "alertdialog",
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
focusElement={
|
|
247
|
-
{
|
|
248
|
-
"current": null,
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
isOpen={true}
|
|
252
|
-
onClose={[Function]}
|
|
253
|
-
parentElement={
|
|
254
|
-
{
|
|
255
|
-
"current": undefined,
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
size="tiny"
|
|
259
|
-
>
|
|
260
|
-
<header>
|
|
261
|
-
<Toolbar
|
|
262
|
-
before={
|
|
263
|
-
<Icon
|
|
264
|
-
color="green"
|
|
265
|
-
icon="M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z"
|
|
266
|
-
size="s"
|
|
267
|
-
/>
|
|
268
|
-
}
|
|
269
|
-
className="lumx-spacing-margin-horizontal"
|
|
270
|
-
label={
|
|
271
|
-
<h2
|
|
272
|
-
className="lumx-typography-title"
|
|
273
|
-
id="alert-dialog-title"
|
|
274
|
-
>
|
|
275
|
-
Success
|
|
276
|
-
</h2>
|
|
277
|
-
}
|
|
278
|
-
/>
|
|
279
|
-
</header>
|
|
280
|
-
<p
|
|
281
|
-
className="lumx-typography-body2 lumx-spacing-padding-vertical-big lumx-spacing-padding-horizontal-huge"
|
|
282
|
-
id="alert-dialog-description"
|
|
283
|
-
>
|
|
284
|
-
Consequat deserunt officia aute laborum tempor anim sint est.
|
|
285
|
-
</p>
|
|
286
|
-
<footer>
|
|
287
|
-
<Toolbar
|
|
288
|
-
after={
|
|
289
|
-
<React.Fragment>
|
|
290
|
-
<Button
|
|
291
|
-
className="lumx-spacing-margin-left-regular"
|
|
292
|
-
color="green"
|
|
293
|
-
emphasis="high"
|
|
294
|
-
onClick={[Function]}
|
|
295
|
-
size="m"
|
|
296
|
-
theme="light"
|
|
297
|
-
>
|
|
298
|
-
OK
|
|
299
|
-
</Button>
|
|
300
|
-
</React.Fragment>
|
|
301
|
-
}
|
|
302
|
-
className="lumx-spacing-margin-horizontal"
|
|
303
|
-
/>
|
|
304
|
-
</footer>
|
|
305
|
-
</Dialog>
|
|
306
|
-
`;
|
|
307
|
-
|
|
308
|
-
exports[`<AlertDialog> Snapshots and structure should render story 'Warning' 1`] = `
|
|
309
|
-
<Dialog
|
|
310
|
-
className="lumx-alert-dialog lumx-alert-dialog--kind-warning"
|
|
311
|
-
dialogProps={
|
|
312
|
-
{
|
|
313
|
-
"aria-describedby": "alert-dialog-description",
|
|
314
|
-
"aria-labelledby": "alert-dialog-title",
|
|
315
|
-
"id": "alert-dialog",
|
|
316
|
-
"role": "alertdialog",
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
focusElement={
|
|
320
|
-
{
|
|
321
|
-
"current": null,
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
isOpen={true}
|
|
325
|
-
onClose={[Function]}
|
|
326
|
-
parentElement={
|
|
327
|
-
{
|
|
328
|
-
"current": undefined,
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
size="tiny"
|
|
332
|
-
>
|
|
333
|
-
<header>
|
|
334
|
-
<Toolbar
|
|
335
|
-
before={
|
|
336
|
-
<Icon
|
|
337
|
-
color="yellow"
|
|
338
|
-
icon="M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
|
|
339
|
-
size="s"
|
|
340
|
-
/>
|
|
341
|
-
}
|
|
342
|
-
className="lumx-spacing-margin-horizontal"
|
|
343
|
-
label={
|
|
344
|
-
<h2
|
|
345
|
-
className="lumx-typography-title"
|
|
346
|
-
id="alert-dialog-title"
|
|
347
|
-
>
|
|
348
|
-
Warning
|
|
349
|
-
</h2>
|
|
350
|
-
}
|
|
351
|
-
/>
|
|
352
|
-
</header>
|
|
353
|
-
<p
|
|
354
|
-
className="lumx-typography-body2 lumx-spacing-padding-vertical-big lumx-spacing-padding-horizontal-huge"
|
|
355
|
-
id="alert-dialog-description"
|
|
356
|
-
>
|
|
357
|
-
Consequat deserunt officia aute laborum tempor anim sint est.
|
|
358
|
-
</p>
|
|
359
|
-
<footer>
|
|
360
|
-
<Toolbar
|
|
361
|
-
after={
|
|
362
|
-
<React.Fragment>
|
|
363
|
-
<Button
|
|
364
|
-
className="lumx-spacing-margin-left-regular"
|
|
365
|
-
color="yellow"
|
|
366
|
-
emphasis="high"
|
|
367
|
-
onClick={[Function]}
|
|
368
|
-
size="m"
|
|
369
|
-
theme="light"
|
|
370
|
-
>
|
|
371
|
-
OK
|
|
372
|
-
</Button>
|
|
373
|
-
</React.Fragment>
|
|
374
|
-
}
|
|
375
|
-
className="lumx-spacing-margin-horizontal"
|
|
376
|
-
/>
|
|
377
|
-
</footer>
|
|
378
|
-
</Dialog>
|
|
379
|
-
`;
|
|
380
|
-
|
|
381
|
-
exports[`<AlertDialog> Snapshots and structure should render story 'WithCancel' 1`] = `
|
|
382
|
-
<Dialog
|
|
383
|
-
className="lumx-alert-dialog lumx-alert-dialog--kind-info"
|
|
384
|
-
dialogProps={
|
|
385
|
-
{
|
|
386
|
-
"aria-describedby": "alert-dialog-description",
|
|
387
|
-
"aria-labelledby": "alert-dialog-title",
|
|
388
|
-
"id": "alert-dialog",
|
|
389
|
-
"role": "alertdialog",
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
focusElement={
|
|
393
|
-
{
|
|
394
|
-
"current": null,
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
isOpen={true}
|
|
398
|
-
onClose={[Function]}
|
|
399
|
-
parentElement={
|
|
400
|
-
{
|
|
401
|
-
"current": undefined,
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
size="tiny"
|
|
405
|
-
>
|
|
406
|
-
<header>
|
|
407
|
-
<Toolbar
|
|
408
|
-
before={
|
|
409
|
-
<Icon
|
|
410
|
-
color="blue"
|
|
411
|
-
icon="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
|
|
412
|
-
size="s"
|
|
413
|
-
/>
|
|
414
|
-
}
|
|
415
|
-
className="lumx-spacing-margin-horizontal"
|
|
416
|
-
label={
|
|
417
|
-
<h2
|
|
418
|
-
className="lumx-typography-title"
|
|
419
|
-
id="alert-dialog-title"
|
|
420
|
-
>
|
|
421
|
-
With Cancel
|
|
422
|
-
</h2>
|
|
423
|
-
}
|
|
424
|
-
/>
|
|
425
|
-
</header>
|
|
426
|
-
<p
|
|
427
|
-
className="lumx-typography-body2 lumx-spacing-padding-vertical-big lumx-spacing-padding-horizontal-huge"
|
|
428
|
-
id="alert-dialog-description"
|
|
429
|
-
>
|
|
430
|
-
Consequat deserunt officia aute laborum tempor anim sint est.
|
|
431
|
-
</p>
|
|
432
|
-
<footer>
|
|
433
|
-
<Toolbar
|
|
434
|
-
after={
|
|
435
|
-
<React.Fragment>
|
|
436
|
-
<Button
|
|
437
|
-
emphasis="medium"
|
|
438
|
-
onClick={[Function]}
|
|
439
|
-
size="m"
|
|
440
|
-
theme="light"
|
|
441
|
-
>
|
|
442
|
-
Cancel
|
|
443
|
-
</Button>
|
|
444
|
-
<Button
|
|
445
|
-
className="lumx-spacing-margin-left-regular"
|
|
446
|
-
color="blue"
|
|
447
|
-
emphasis="high"
|
|
448
|
-
onClick={[Function]}
|
|
449
|
-
size="m"
|
|
450
|
-
theme="light"
|
|
451
|
-
>
|
|
452
|
-
OK
|
|
453
|
-
</Button>
|
|
454
|
-
</React.Fragment>
|
|
455
|
-
}
|
|
456
|
-
className="lumx-spacing-margin-horizontal"
|
|
457
|
-
/>
|
|
458
|
-
</footer>
|
|
459
|
-
</Dialog>
|
|
460
|
-
`;
|
|
461
|
-
|
|
462
|
-
exports[`<AlertDialog> Snapshots and structure should render story 'WithForwardedProps' 1`] = `
|
|
463
|
-
<Dialog
|
|
464
|
-
className="lumx-alert-dialog lumx-alert-dialog--kind-info"
|
|
465
|
-
dialogProps={
|
|
466
|
-
{
|
|
467
|
-
"aria-describedby": "alert-dialog-description",
|
|
468
|
-
"aria-labelledby": "alert-dialog-title",
|
|
469
|
-
"id": "alert-dialog",
|
|
470
|
-
"role": "alertdialog",
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
focusElement={
|
|
474
|
-
{
|
|
475
|
-
"current": null,
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
isOpen={true}
|
|
479
|
-
onClose={[Function]}
|
|
480
|
-
parentElement={
|
|
481
|
-
{
|
|
482
|
-
"current": undefined,
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
size="tiny"
|
|
486
|
-
>
|
|
487
|
-
<header>
|
|
488
|
-
<Toolbar
|
|
489
|
-
before={
|
|
490
|
-
<Icon
|
|
491
|
-
color="blue"
|
|
492
|
-
icon="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
|
|
493
|
-
size="s"
|
|
494
|
-
/>
|
|
495
|
-
}
|
|
496
|
-
className="lumx-spacing-margin-horizontal"
|
|
497
|
-
label={
|
|
498
|
-
<h2
|
|
499
|
-
className="lumx-typography-title"
|
|
500
|
-
id="alert-dialog-title"
|
|
501
|
-
>
|
|
502
|
-
With Forwarded Props
|
|
503
|
-
</h2>
|
|
504
|
-
}
|
|
505
|
-
/>
|
|
506
|
-
</header>
|
|
507
|
-
<p
|
|
508
|
-
className="lumx-typography-body2 lumx-spacing-padding-vertical-big lumx-spacing-padding-horizontal-huge"
|
|
509
|
-
id="alert-dialog-description"
|
|
510
|
-
>
|
|
511
|
-
Consequat deserunt officia aute laborum tempor anim sint est.
|
|
512
|
-
</p>
|
|
513
|
-
<footer>
|
|
514
|
-
<Toolbar
|
|
515
|
-
after={
|
|
516
|
-
<React.Fragment>
|
|
517
|
-
<Button
|
|
518
|
-
emphasis="medium"
|
|
519
|
-
onClick={[Function]}
|
|
520
|
-
size="m"
|
|
521
|
-
style={
|
|
522
|
-
{
|
|
523
|
-
"color": "blue",
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
theme="light"
|
|
527
|
-
>
|
|
528
|
-
Cancel
|
|
529
|
-
</Button>
|
|
530
|
-
<Button
|
|
531
|
-
className="lumx-spacing-margin-left-regular"
|
|
532
|
-
color="blue"
|
|
533
|
-
emphasis="high"
|
|
534
|
-
onClick={[Function]}
|
|
535
|
-
size="m"
|
|
536
|
-
style={
|
|
537
|
-
{
|
|
538
|
-
"color": "red",
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
theme="light"
|
|
542
|
-
>
|
|
543
|
-
OK
|
|
544
|
-
</Button>
|
|
545
|
-
</React.Fragment>
|
|
546
|
-
}
|
|
547
|
-
className="lumx-spacing-margin-horizontal"
|
|
548
|
-
/>
|
|
549
|
-
</footer>
|
|
550
|
-
</Dialog>
|
|
551
|
-
`;
|