@lumx/react 2.1.6-alpha.5 → 2.1.8
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/esm/_internal/DragHandle.js +1 -1
- package/esm/_internal/DragHandle.js.map +1 -1
- package/esm/_internal/Flag2.js +3 -1
- package/esm/_internal/Flag2.js.map +1 -1
- package/esm/_internal/Lightbox2.js +10 -4
- package/esm/_internal/Lightbox2.js.map +1 -1
- package/esm/_internal/List2.js.map +1 -1
- package/esm/_internal/Message2.js +2 -2
- package/esm/_internal/Message2.js.map +1 -1
- package/esm/_internal/TextField.js +2 -2
- package/esm/_internal/TextField.js.map +1 -1
- package/esm/_internal/UserBlock.js +1 -0
- package/esm/_internal/UserBlock.js.map +1 -1
- package/package.json +10 -15
- package/src/components/alert-dialog/AlertDialog.stories.tsx +9 -2
- package/src/components/autocomplete/AutocompleteMultiple.stories.tsx +1 -1
- package/src/components/avatar/__snapshots__/Avatar.test.tsx.snap +30 -30
- package/src/components/comment-block/__snapshots__/CommentBlock.test.tsx.snap +1 -1
- package/src/components/dialog/Dialog.stories.tsx +9 -2
- package/src/components/drag-handle/DragHandle.tsx +1 -5
- package/src/components/flag/Flag.test.tsx +2 -1
- package/src/components/flag/Flag.tsx +10 -2
- package/src/components/flag/__snapshots__/Flag.test.tsx.snap +15 -0
- package/src/components/image-block/ImageBlock.stories.tsx +2 -2
- package/src/components/image-block/__snapshots__/ImageBlock.test.tsx.snap +1 -1
- package/src/components/lightbox/Lightbox.stories.tsx +82 -0
- package/src/components/lightbox/Lightbox.tsx +12 -4
- package/src/components/message/Message.tsx +2 -2
- package/src/components/mosaic/__snapshots__/Mosaic.test.tsx.snap +18 -18
- package/src/components/notification/Notifications.stories.tsx +16 -10
- package/src/components/skeleton/SkeletonCircle.stories.tsx +1 -1
- package/src/components/skeleton/SkeletonRectangle.stories.tsx +1 -1
- package/src/components/skeleton/SkeletonTypography.stories.tsx +1 -1
- package/src/components/slideshow/__snapshots__/Slideshow.test.tsx.snap +12 -12
- package/src/components/text-field/TextField.stories.tsx +30 -0
- package/src/components/text-field/TextField.tsx +11 -9
- package/src/components/thumbnail/Thumbnail.stories.tsx +2 -2
- package/src/components/thumbnail/__snapshots__/Thumbnail.test.tsx.snap +5 -5
- package/src/components/user-block/UserBlock.stories.tsx +4 -1
- package/src/components/user-block/UserBlock.tsx +1 -0
- package/src/components/user-block/__snapshots__/UserBlock.test.tsx.snap +10 -10
- package/src/stories/chromaticForceScreenSize.tsx +7 -0
- package/src/stories/generated/Autocomplete/Demos.stories.tsx +1 -1
- package/src/stories/generated/Avatar/Demos.stories.tsx +1 -1
- package/src/stories/generated/Badge/Demos.stories.tsx +1 -1
- package/src/stories/generated/Button/Demos.stories.tsx +1 -1
- package/src/stories/generated/Checkbox/Demos.stories.tsx +1 -1
- package/src/stories/generated/Chip/Demos.stories.tsx +1 -1
- package/src/stories/generated/CommentBlock/Demos.stories.tsx +1 -1
- package/src/stories/generated/DatePicker/Demos.stories.tsx +1 -1
- package/src/stories/generated/Dialog/Demos.stories.tsx +1 -1
- package/src/stories/generated/Divider/Demos.stories.tsx +1 -1
- package/src/stories/generated/Dropdown/Demos.stories.tsx +1 -1
- package/src/stories/generated/ExpansionPanel/Demos.stories.tsx +1 -1
- package/src/stories/generated/Icon/Demos.stories.tsx +1 -1
- package/src/stories/generated/ImageBlock/Demos.stories.tsx +1 -1
- package/src/stories/generated/Lightbox/Demos.stories.tsx +1 -1
- package/src/stories/generated/Link/Demos.stories.tsx +1 -1
- package/src/stories/generated/LinkPreview/Demos.stories.tsx +1 -1
- package/src/stories/generated/List/Demos.stories.tsx +1 -1
- package/src/stories/generated/Message/Demos.stories.tsx +1 -1
- package/src/stories/generated/Mosaic/Demos.stories.tsx +1 -1
- package/src/stories/generated/Notification/Demos.stories.tsx +1 -1
- package/src/stories/generated/Popover/Demos.stories.tsx +1 -1
- package/src/stories/generated/PostBlock/Demos.stories.tsx +1 -1
- package/src/stories/generated/Progress/Demos.stories.tsx +1 -1
- package/src/stories/generated/ProgressTracker/Demos.stories.tsx +1 -1
- package/src/stories/generated/RadioButton/Demos.stories.tsx +1 -1
- package/src/stories/generated/Select/Demos.stories.tsx +1 -1
- package/src/stories/generated/SideNavigation/Demos.stories.tsx +1 -1
- package/src/stories/generated/Skeleton/Demos.stories.tsx +1 -1
- package/src/stories/generated/Slider/Demos.stories.tsx +1 -1
- package/src/stories/generated/Slideshow/Demos.stories.tsx +1 -1
- package/src/stories/generated/Switch/Demos.stories.tsx +1 -1
- package/src/stories/generated/Table/Demos.stories.tsx +1 -1
- package/src/stories/generated/Tabs/Demos.stories.tsx +1 -1
- package/src/stories/generated/TextField/Demos.stories.tsx +1 -1
- package/src/stories/generated/Thumbnail/Demos.stories.tsx +1 -1
- package/src/stories/generated/Toolbar/Demos.stories.tsx +1 -1
- package/src/stories/generated/Tooltip/Demos.stories.tsx +1 -1
- package/src/stories/generated/Uploader/Demos.stories.tsx +1 -1
- package/src/stories/generated/UserBlock/Demos.stories.tsx +1 -1
- package/src/stories/knobs/enumKnob.ts +1 -1
- package/src/stories/knobs/image.ts +12 -12
- package/src/untypped-modules.d.ts +2 -0
|
@@ -56,7 +56,7 @@ export const CustomFallback = () => (
|
|
|
56
56
|
|
|
57
57
|
export const WithBadge = () => {
|
|
58
58
|
const thumbnailSize = sizeKnob('Thumbnail size', Size.l);
|
|
59
|
-
const variant = select
|
|
59
|
+
const variant = select('Thumbnail variant', ThumbnailVariant, ThumbnailVariant.rounded);
|
|
60
60
|
const badgeColor = select('Badge color', ColorPalette, ColorPalette.primary);
|
|
61
61
|
const activateFallback = boolean('Activate fallback', false);
|
|
62
62
|
const image = imageKnob();
|
|
@@ -109,7 +109,7 @@ export const Knobs = ({ theme }: any) => {
|
|
|
109
109
|
const fillHeight = boolean('Fill Height', false);
|
|
110
110
|
const focusPoint = { x: focusKnob('Focus X'), y: focusKnob('Focus Y') };
|
|
111
111
|
const image = imageKnob('Image', IMAGES.landscape1);
|
|
112
|
-
const variant = select
|
|
112
|
+
const variant = select('Variant', ThumbnailVariant, ThumbnailVariant.squared);
|
|
113
113
|
const size = sizeKnob('Size', Size.xxl);
|
|
114
114
|
const onClick = boolean('clickable?', false) ? () => console.log('ok') : undefined;
|
|
115
115
|
|
|
@@ -18,7 +18,7 @@ exports[`<Thumbnail> Snapshots and structure should render story 'Clickable' 1`]
|
|
|
18
18
|
alt="Click me"
|
|
19
19
|
className="lumx-thumbnail__image"
|
|
20
20
|
loading="lazy"
|
|
21
|
-
src="landscape1.jpg"
|
|
21
|
+
src="/demo-assets/landscape1.jpg"
|
|
22
22
|
style={Object {}}
|
|
23
23
|
/>
|
|
24
24
|
</div>
|
|
@@ -43,7 +43,7 @@ exports[`<Thumbnail> Snapshots and structure should render story 'ClickableCusto
|
|
|
43
43
|
alt="Click me"
|
|
44
44
|
className="lumx-thumbnail__image"
|
|
45
45
|
loading="lazy"
|
|
46
|
-
src="landscape1.jpg"
|
|
46
|
+
src="/demo-assets/landscape1.jpg"
|
|
47
47
|
style={Object {}}
|
|
48
48
|
/>
|
|
49
49
|
</div>
|
|
@@ -68,7 +68,7 @@ exports[`<Thumbnail> Snapshots and structure should render story 'ClickableLink'
|
|
|
68
68
|
alt="Click me"
|
|
69
69
|
className="lumx-thumbnail__image"
|
|
70
70
|
loading="lazy"
|
|
71
|
-
src="landscape1.jpg"
|
|
71
|
+
src="/demo-assets/landscape1.jpg"
|
|
72
72
|
style={Object {}}
|
|
73
73
|
/>
|
|
74
74
|
</div>
|
|
@@ -116,7 +116,7 @@ exports[`<Thumbnail> Snapshots and structure should render story 'Default' 1`] =
|
|
|
116
116
|
alt="Image alt text"
|
|
117
117
|
className="lumx-thumbnail__image"
|
|
118
118
|
loading="lazy"
|
|
119
|
-
src="landscape1.jpg"
|
|
119
|
+
src="/demo-assets/landscape1.jpg"
|
|
120
120
|
style={Object {}}
|
|
121
121
|
/>
|
|
122
122
|
</div>
|
|
@@ -188,7 +188,7 @@ exports[`<Thumbnail> Snapshots and structure should render story 'WithBadge' 1`]
|
|
|
188
188
|
alt="Image alt text"
|
|
189
189
|
className="lumx-thumbnail__image"
|
|
190
190
|
loading="lazy"
|
|
191
|
-
src="landscape1.jpg"
|
|
191
|
+
src="/demo-assets/landscape1.jpg"
|
|
192
192
|
style={Object {}}
|
|
193
193
|
/>
|
|
194
194
|
</div>
|
|
@@ -31,7 +31,10 @@ export const WithLinks = ({ theme }: any) => {
|
|
|
31
31
|
<UserBlock
|
|
32
32
|
theme={theme}
|
|
33
33
|
name="Emmitt O. Lum"
|
|
34
|
-
linkProps={{
|
|
34
|
+
linkProps={{
|
|
35
|
+
href: 'https://www.lumapps.com',
|
|
36
|
+
target: '_blank',
|
|
37
|
+
}}
|
|
35
38
|
fields={['Creative developer', 'Denpasar']}
|
|
36
39
|
avatarProps={{ image: avatarImageKnob(), alt: 'Avatar' }}
|
|
37
40
|
size={size}
|
|
@@ -146,6 +146,7 @@ export const UserBlock: Comp<UserBlockProps, HTMLDivElement> = forwardRef((props
|
|
|
146
146
|
>
|
|
147
147
|
{avatarProps && (
|
|
148
148
|
<Avatar
|
|
149
|
+
linkAs={linkAs}
|
|
149
150
|
linkProps={linkProps}
|
|
150
151
|
{...avatarProps}
|
|
151
152
|
className={classNames(`${CLASSNAME}__avatar`, avatarProps.className)}
|
|
@@ -19,7 +19,7 @@ Array [
|
|
|
19
19
|
</Badge>
|
|
20
20
|
}
|
|
21
21
|
className="lumx-user-block__avatar"
|
|
22
|
-
image="avatar1.jpg"
|
|
22
|
+
image="/demo-assets/avatar1.jpg"
|
|
23
23
|
onClick={[Function]}
|
|
24
24
|
size="m"
|
|
25
25
|
theme="light"
|
|
@@ -69,7 +69,7 @@ Array [
|
|
|
69
69
|
</Badge>
|
|
70
70
|
}
|
|
71
71
|
className="lumx-user-block__avatar"
|
|
72
|
-
image="avatar2.jpg"
|
|
72
|
+
image="/demo-assets/avatar2.jpg"
|
|
73
73
|
onClick={[Function]}
|
|
74
74
|
size="m"
|
|
75
75
|
theme="light"
|
|
@@ -119,7 +119,7 @@ Array [
|
|
|
119
119
|
</Badge>
|
|
120
120
|
}
|
|
121
121
|
className="lumx-user-block__avatar"
|
|
122
|
-
image="avatar3.jpg"
|
|
122
|
+
image="/demo-assets/avatar3.jpg"
|
|
123
123
|
onClick={[Function]}
|
|
124
124
|
size="m"
|
|
125
125
|
theme="light"
|
|
@@ -165,7 +165,7 @@ Array [
|
|
|
165
165
|
<Avatar
|
|
166
166
|
alt="Avatar"
|
|
167
167
|
className="lumx-user-block__avatar"
|
|
168
|
-
image="avatar1.jpg"
|
|
168
|
+
image="/demo-assets/avatar1.jpg"
|
|
169
169
|
onClick={[Function]}
|
|
170
170
|
size="s"
|
|
171
171
|
theme="light"
|
|
@@ -190,7 +190,7 @@ Array [
|
|
|
190
190
|
<Avatar
|
|
191
191
|
alt="Avatar"
|
|
192
192
|
className="lumx-user-block__avatar"
|
|
193
|
-
image="avatar1.jpg"
|
|
193
|
+
image="/demo-assets/avatar1.jpg"
|
|
194
194
|
onClick={[Function]}
|
|
195
195
|
size="m"
|
|
196
196
|
theme="light"
|
|
@@ -231,7 +231,7 @@ Array [
|
|
|
231
231
|
<Avatar
|
|
232
232
|
alt="Avatar"
|
|
233
233
|
className="lumx-user-block__avatar"
|
|
234
|
-
image="avatar1.jpg"
|
|
234
|
+
image="/demo-assets/avatar1.jpg"
|
|
235
235
|
onClick={[Function]}
|
|
236
236
|
size="l"
|
|
237
237
|
theme="light"
|
|
@@ -285,7 +285,7 @@ exports[`<UserBlock> Snapshots and structure should render story 'WithBadge' 1`]
|
|
|
285
285
|
</Badge>
|
|
286
286
|
}
|
|
287
287
|
className="lumx-user-block__avatar"
|
|
288
|
-
image="avatar1.jpg"
|
|
288
|
+
image="/demo-assets/avatar1.jpg"
|
|
289
289
|
size="m"
|
|
290
290
|
theme="light"
|
|
291
291
|
/>
|
|
@@ -327,7 +327,7 @@ Array [
|
|
|
327
327
|
<Avatar
|
|
328
328
|
alt="Avatar"
|
|
329
329
|
className="lumx-user-block__avatar"
|
|
330
|
-
image="avatar1.jpg"
|
|
330
|
+
image="/demo-assets/avatar1.jpg"
|
|
331
331
|
linkProps={
|
|
332
332
|
Object {
|
|
333
333
|
"href": "https://www.lumapps.com",
|
|
@@ -358,7 +358,7 @@ Array [
|
|
|
358
358
|
<Avatar
|
|
359
359
|
alt="Avatar"
|
|
360
360
|
className="lumx-user-block__avatar"
|
|
361
|
-
image="avatar1.jpg"
|
|
361
|
+
image="/demo-assets/avatar1.jpg"
|
|
362
362
|
linkProps={
|
|
363
363
|
Object {
|
|
364
364
|
"href": "https://www.lumapps.com",
|
|
@@ -405,7 +405,7 @@ Array [
|
|
|
405
405
|
<Avatar
|
|
406
406
|
alt="Avatar"
|
|
407
407
|
className="lumx-user-block__avatar"
|
|
408
|
-
image="avatar1.jpg"
|
|
408
|
+
image="/demo-assets/avatar1.jpg"
|
|
409
409
|
linkProps={
|
|
410
410
|
Object {
|
|
411
411
|
"href": "https://www.lumapps.com",
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import isChromatic from 'chromatic/isChromatic';
|
|
4
|
+
|
|
5
|
+
/** Story decorator used to force a minimum screen size when running in chromatic */
|
|
6
|
+
export const chromaticForceScreenSize = (story: any) =>
|
|
7
|
+
isChromatic() ? <div style={{ minWidth: 1200, minHeight: 800 }}>{story()}</div> : story();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/autocomplete/Demos' };
|
|
4
|
+
export default { title: 'LumX components/autocomplete/Autocomplete Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Default } from './default';
|
|
7
7
|
export { App as Multiple } from './multiple';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/avatar/Demos' };
|
|
4
|
+
export default { title: 'LumX components/avatar/Avatar Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Actions } from './actions';
|
|
7
7
|
export { App as Default } from './default';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/badge/Demos' };
|
|
4
|
+
export default { title: 'LumX components/badge/Badge Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Icon } from './icon';
|
|
7
7
|
export { App as Label } from './label';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/button/Demos' };
|
|
4
|
+
export default { title: 'LumX components/button/Button Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as EmphasisHigh } from './emphasis-high';
|
|
7
7
|
export { App as EmphasisLow } from './emphasis-low';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/chip/Demos' };
|
|
4
|
+
export default { title: 'LumX components/chip/Chip Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Choice } from './choice';
|
|
7
7
|
export { App as Default } from './default';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/comment-block/Demos' };
|
|
4
|
+
export default { title: 'LumX components/comment-block/CommentBlock Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Default } from './default';
|
|
7
7
|
export { App as Relevant } from './relevant';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/date-picker/Demos' };
|
|
4
|
+
export default { title: 'LumX components/date-picker/DatePicker Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Default } from './default';
|
|
7
7
|
export { App as Input } from './input';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/dialog/Demos' };
|
|
4
|
+
export default { title: 'LumX components/dialog/Dialog Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Alert } from './alert';
|
|
7
7
|
export { App as Confirm } from './confirm';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/dropdown/Demos' };
|
|
4
|
+
export default { title: 'LumX components/dropdown/Dropdown Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Default } from './default';
|
|
7
7
|
export { App as Target } from './target';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/expansion-panel/Demos' };
|
|
4
|
+
export default { title: 'LumX components/expansion-panel/ExpansionPanel Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Default } from './default';
|
|
7
7
|
export { App as DragHandle } from './drag-handle';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/icon/Demos' };
|
|
4
|
+
export default { title: 'LumX components/icon/Icon Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Colors } from './colors';
|
|
7
7
|
export { App as Shape } from './shape';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/image-block/Demos' };
|
|
4
|
+
export default { title: 'LumX components/image-block/ImageBlock Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Default } from './default';
|
|
7
7
|
export { App as ImageBlockAbove } from './image-block-above';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/link/Demos' };
|
|
4
|
+
export default { title: 'LumX components/link/Link Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Default } from './default';
|
|
7
7
|
export { App as Implicit } from './implicit';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/link-preview/Demos' };
|
|
4
|
+
export default { title: 'LumX components/link-preview/LinkPreview Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Big } from './big';
|
|
7
7
|
export { App as Default } from './default';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/list/Demos' };
|
|
4
|
+
export default { title: 'LumX components/list/List Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Big } from './big';
|
|
7
7
|
export { App as Huge } from './huge';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/message/Demos' };
|
|
4
|
+
export default { title: 'LumX components/message/Message Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Error } from './error';
|
|
7
7
|
export { App as Info } from './info';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/mosaic/Demos' };
|
|
4
|
+
export default { title: 'LumX components/mosaic/Mosaic Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as FourImages } from './four-images';
|
|
7
7
|
export { App as MoreImages } from './more-images';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/notification/Demos' };
|
|
4
|
+
export default { title: 'LumX components/notification/Notification Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Default } from './default';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/popover/Demos' };
|
|
4
|
+
export default { title: 'LumX components/popover/Popover Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Alignments } from './alignments';
|
|
7
7
|
export { App as Auto } from './auto';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/progress/Demos' };
|
|
4
|
+
export default { title: 'LumX components/progress/Progress Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Circular } from './circular';
|
|
7
7
|
export { App as Linear } from './linear';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/progress-tracker/Demos' };
|
|
4
|
+
export default { title: 'LumX components/progress-tracker/ProgressTracker Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Default } from './default';
|
|
7
7
|
export { App as Error } from './error';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/radio-button/Demos' };
|
|
4
|
+
export default { title: 'LumX components/radio-button/RadioButton Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Default } from './default';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/select/Demos' };
|
|
4
|
+
export default { title: 'LumX components/select/Select Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as MultiSelectChip } from './multi-select-chip';
|
|
7
7
|
export { App as MultiSelectSearch } from './multi-select-search';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/side-navigation/Demos' };
|
|
4
|
+
export default { title: 'LumX components/side-navigation/SideNavigation Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Default } from './default';
|
|
7
7
|
export { App as Emphasis } from './emphasis';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/skeleton/Demos' };
|
|
4
|
+
export default { title: 'LumX components/skeleton/Skeleton Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Animation } from './animation';
|
|
7
7
|
export { App as Circle } from './circle';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/slider/Demos' };
|
|
4
|
+
export default { title: 'LumX components/slider/Slider Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Default } from './default';
|
|
7
7
|
export { App as Precision } from './precision';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/slideshow/Demos' };
|
|
4
|
+
export default { title: 'LumX components/slideshow/Slideshow Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Auto } from './auto';
|
|
7
7
|
export { App as Default } from './default';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/tabs/Demos' };
|
|
4
|
+
export default { title: 'LumX components/tabs/Tabs Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Default } from './default';
|
|
7
7
|
export { App as IconTabs } from './icon-tabs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/text-field/Demos' };
|
|
4
|
+
export default { title: 'LumX components/text-field/TextField Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as CharacterCounter } from './character-counter';
|
|
7
7
|
export { App as Clearable } from './clearable';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/thumbnail/Demos' };
|
|
4
|
+
export default { title: 'LumX components/thumbnail/Thumbnail Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Combined } from './combined';
|
|
7
7
|
export { App as Ratios } from './ratios';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/toolbar/Demos' };
|
|
4
|
+
export default { title: 'LumX components/toolbar/Toolbar Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Back } from './back';
|
|
7
7
|
export { App as Default } from './default';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/tooltip/Demos' };
|
|
4
|
+
export default { title: 'LumX components/tooltip/Tooltip Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Default } from './default';
|
|
7
7
|
export { App as Delay } from './delay';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/uploader/Demos' };
|
|
4
|
+
export default { title: 'LumX components/uploader/Uploader Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Avatar } from './avatar';
|
|
7
7
|
export { App as Default } from './default';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* File generated when storybook is started. Do not edit directly!
|
|
3
3
|
*/
|
|
4
|
-
export default { title: 'LumX components/user-block/Demos' };
|
|
4
|
+
export default { title: 'LumX components/user-block/UserBlock Demos' };
|
|
5
5
|
|
|
6
6
|
export { App as Extended } from './extended';
|
|
7
7
|
export { App as SizeL } from './size-l';
|
|
@@ -10,5 +10,5 @@ export function enumKnob<T>(
|
|
|
10
10
|
const values: Record<string, T> = !isArray(enumObj)
|
|
11
11
|
? enumObj
|
|
12
12
|
: Object.fromEntries(Object.values(enumObj).map((value) => [value, value]));
|
|
13
|
-
return select
|
|
13
|
+
return select(name, values, defaultValue, groupId);
|
|
14
14
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { select } from '@storybook/addon-knobs';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
const avatar1 = '/demo-assets/avatar1.jpg';
|
|
4
|
+
const avatar2 = '/demo-assets/avatar2.jpg';
|
|
5
|
+
const avatar3 = '/demo-assets/avatar3.jpg';
|
|
6
|
+
const avatar4 = '/demo-assets/avatar4.jpg';
|
|
7
|
+
const landscape1 = '/demo-assets/landscape1.jpg';
|
|
8
|
+
const landscape2 = '/demo-assets/landscape2.jpg';
|
|
9
|
+
const landscape3 = '/demo-assets/landscape3.jpg';
|
|
10
|
+
const portrait1 = '/demo-assets/portrait1.jpg';
|
|
11
|
+
const portrait2 = '/demo-assets/portrait2.jpg';
|
|
12
|
+
const portrait3 = '/demo-assets/portrait3.jpg';
|
|
13
|
+
const square1 = '/demo-assets/square1.jpg';
|
|
14
|
+
const square2 = '/demo-assets/square2.jpg';
|
|
15
15
|
|
|
16
16
|
export const AVATAR_IMAGES = { avatar1, avatar2, avatar3, avatar4 };
|
|
17
17
|
|