@lumx/react 2.1.6-alpha.4 → 2.1.8-alpha.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.
Files changed (166) hide show
  1. package/esm/_internal/AlertDialog.js +1 -2
  2. package/esm/_internal/AlertDialog.js.map +1 -1
  3. package/esm/_internal/AutocompleteMultiple.js +1 -2
  4. package/esm/_internal/AutocompleteMultiple.js.map +1 -1
  5. package/esm/_internal/Button2.js +1 -1
  6. package/esm/_internal/Checkbox2.js +1 -2
  7. package/esm/_internal/Checkbox2.js.map +1 -1
  8. package/esm/_internal/DatePickerField.js +1 -1
  9. package/esm/_internal/DragHandle.js +1 -2
  10. package/esm/_internal/DragHandle.js.map +1 -1
  11. package/esm/_internal/ExpansionPanel.js +1 -1
  12. package/esm/_internal/Icon2.js +23 -3
  13. package/esm/_internal/Icon2.js.map +1 -1
  14. package/esm/_internal/IconButton.js +1 -1
  15. package/esm/_internal/Lightbox2.js +11 -5
  16. package/esm/_internal/Lightbox2.js.map +1 -1
  17. package/esm/_internal/Link2.js +1 -1
  18. package/esm/_internal/LinkPreview.js +1 -1
  19. package/esm/_internal/LinkPreview.js.map +1 -1
  20. package/esm/_internal/Message2.js +3 -3
  21. package/esm/_internal/Message2.js.map +1 -1
  22. package/esm/_internal/Notification2.js +1 -2
  23. package/esm/_internal/Notification2.js.map +1 -1
  24. package/esm/_internal/ProgressTrackerStepPanel.js +1 -2
  25. package/esm/_internal/ProgressTrackerStepPanel.js.map +1 -1
  26. package/esm/_internal/SelectMultiple.js +1 -2
  27. package/esm/_internal/SelectMultiple.js.map +1 -1
  28. package/esm/_internal/SideNavigationItem.js +1 -2
  29. package/esm/_internal/SideNavigationItem.js.map +1 -1
  30. package/esm/_internal/SlideshowControls.js +1 -1
  31. package/esm/_internal/TabPanel.js +1 -1
  32. package/esm/_internal/TableRow.js +1 -2
  33. package/esm/_internal/TableRow.js.map +1 -1
  34. package/esm/_internal/TextField.js +3 -4
  35. package/esm/_internal/TextField.js.map +1 -1
  36. package/esm/_internal/Thumbnail2.js +1 -2
  37. package/esm/_internal/Thumbnail2.js.map +1 -1
  38. package/esm/_internal/UserBlock.js +1 -0
  39. package/esm/_internal/UserBlock.js.map +1 -1
  40. package/esm/_internal/alert-dialog.js +1 -2
  41. package/esm/_internal/alert-dialog.js.map +1 -1
  42. package/esm/_internal/autocomplete.js +1 -2
  43. package/esm/_internal/autocomplete.js.map +1 -1
  44. package/esm/_internal/avatar.js +1 -2
  45. package/esm/_internal/avatar.js.map +1 -1
  46. package/esm/_internal/button.js +1 -1
  47. package/esm/_internal/checkbox.js +1 -2
  48. package/esm/_internal/checkbox.js.map +1 -1
  49. package/esm/_internal/comment-block.js +1 -2
  50. package/esm/_internal/comment-block.js.map +1 -1
  51. package/esm/_internal/date-picker.js +1 -2
  52. package/esm/_internal/date-picker.js.map +1 -1
  53. package/esm/_internal/drag-handle.js +1 -2
  54. package/esm/_internal/drag-handle.js.map +1 -1
  55. package/esm/_internal/expansion-panel.js +1 -2
  56. package/esm/_internal/expansion-panel.js.map +1 -1
  57. package/esm/_internal/flag.js +1 -1
  58. package/esm/_internal/icon.js +1 -1
  59. package/esm/_internal/image-block.js +1 -2
  60. package/esm/_internal/image-block.js.map +1 -1
  61. package/esm/_internal/lightbox.js +1 -2
  62. package/esm/_internal/lightbox.js.map +1 -1
  63. package/esm/_internal/link-preview.js +1 -2
  64. package/esm/_internal/link-preview.js.map +1 -1
  65. package/esm/_internal/link.js +1 -1
  66. package/esm/_internal/message.js +1 -2
  67. package/esm/_internal/message.js.map +1 -1
  68. package/esm/_internal/mosaic.js +1 -2
  69. package/esm/_internal/mosaic.js.map +1 -1
  70. package/esm/_internal/notification.js +1 -2
  71. package/esm/_internal/notification.js.map +1 -1
  72. package/esm/_internal/post-block.js +1 -2
  73. package/esm/_internal/post-block.js.map +1 -1
  74. package/esm/_internal/progress-tracker.js +1 -2
  75. package/esm/_internal/progress-tracker.js.map +1 -1
  76. package/esm/_internal/select.js +1 -2
  77. package/esm/_internal/select.js.map +1 -1
  78. package/esm/_internal/side-navigation.js +1 -2
  79. package/esm/_internal/side-navigation.js.map +1 -1
  80. package/esm/_internal/slideshow.js +1 -2
  81. package/esm/_internal/slideshow.js.map +1 -1
  82. package/esm/_internal/table.js +1 -2
  83. package/esm/_internal/table.js.map +1 -1
  84. package/esm/_internal/tabs.js +1 -1
  85. package/esm/_internal/text-field.js +1 -2
  86. package/esm/_internal/text-field.js.map +1 -1
  87. package/esm/_internal/thumbnail.js +1 -2
  88. package/esm/_internal/thumbnail.js.map +1 -1
  89. package/esm/_internal/uploader.js +1 -1
  90. package/esm/_internal/user-block.js +1 -2
  91. package/esm/_internal/user-block.js.map +1 -1
  92. package/esm/index.js +1 -2
  93. package/esm/index.js.map +1 -1
  94. package/package.json +10 -15
  95. package/src/components/alert-dialog/AlertDialog.stories.tsx +9 -2
  96. package/src/components/autocomplete/AutocompleteMultiple.stories.tsx +1 -1
  97. package/src/components/avatar/__snapshots__/Avatar.test.tsx.snap +30 -30
  98. package/src/components/comment-block/__snapshots__/CommentBlock.test.tsx.snap +1 -1
  99. package/src/components/dialog/Dialog.stories.tsx +9 -2
  100. package/src/components/icon/Icon.tsx +5 -0
  101. package/src/components/image-block/ImageBlock.stories.tsx +2 -2
  102. package/src/components/image-block/__snapshots__/ImageBlock.test.tsx.snap +1 -1
  103. package/src/components/lightbox/Lightbox.stories.tsx +82 -0
  104. package/src/components/lightbox/Lightbox.tsx +12 -4
  105. package/src/components/link-preview/LinkPreview.tsx +1 -1
  106. package/src/components/link-preview/__snapshots__/LinkPreview.test.tsx.snap +2 -2
  107. package/src/components/message/Message.tsx +3 -1
  108. package/src/components/mosaic/__snapshots__/Mosaic.test.tsx.snap +18 -18
  109. package/src/components/notification/Notifications.stories.tsx +16 -10
  110. package/src/components/skeleton/SkeletonCircle.stories.tsx +1 -1
  111. package/src/components/skeleton/SkeletonRectangle.stories.tsx +1 -1
  112. package/src/components/skeleton/SkeletonTypography.stories.tsx +1 -1
  113. package/src/components/slideshow/__snapshots__/Slideshow.test.tsx.snap +12 -12
  114. package/src/components/text-field/TextField.stories.tsx +30 -0
  115. package/src/components/text-field/TextField.tsx +11 -9
  116. package/src/components/thumbnail/Thumbnail.stories.tsx +2 -2
  117. package/src/components/thumbnail/__snapshots__/Thumbnail.test.tsx.snap +5 -5
  118. package/src/components/user-block/UserBlock.stories.tsx +4 -1
  119. package/src/components/user-block/UserBlock.tsx +1 -0
  120. package/src/components/user-block/__snapshots__/UserBlock.test.tsx.snap +10 -10
  121. package/src/stories/chromaticForceScreenSize.tsx +7 -0
  122. package/src/stories/generated/Autocomplete/Demos.stories.tsx +1 -1
  123. package/src/stories/generated/Avatar/Demos.stories.tsx +1 -1
  124. package/src/stories/generated/Badge/Demos.stories.tsx +1 -1
  125. package/src/stories/generated/Button/Demos.stories.tsx +1 -1
  126. package/src/stories/generated/Checkbox/Demos.stories.tsx +1 -1
  127. package/src/stories/generated/Chip/Demos.stories.tsx +1 -1
  128. package/src/stories/generated/CommentBlock/Demos.stories.tsx +1 -1
  129. package/src/stories/generated/DatePicker/Demos.stories.tsx +1 -1
  130. package/src/stories/generated/Dialog/Demos.stories.tsx +1 -1
  131. package/src/stories/generated/Divider/Demos.stories.tsx +1 -1
  132. package/src/stories/generated/Dropdown/Demos.stories.tsx +1 -1
  133. package/src/stories/generated/ExpansionPanel/Demos.stories.tsx +1 -1
  134. package/src/stories/generated/Icon/Demos.stories.tsx +1 -1
  135. package/src/stories/generated/ImageBlock/Demos.stories.tsx +1 -1
  136. package/src/stories/generated/Lightbox/Demos.stories.tsx +1 -1
  137. package/src/stories/generated/Link/Demos.stories.tsx +1 -1
  138. package/src/stories/generated/LinkPreview/Demos.stories.tsx +1 -1
  139. package/src/stories/generated/List/Demos.stories.tsx +1 -1
  140. package/src/stories/generated/Message/Demos.stories.tsx +1 -1
  141. package/src/stories/generated/Mosaic/Demos.stories.tsx +1 -1
  142. package/src/stories/generated/Notification/Demos.stories.tsx +1 -1
  143. package/src/stories/generated/Popover/Demos.stories.tsx +1 -1
  144. package/src/stories/generated/PostBlock/Demos.stories.tsx +1 -1
  145. package/src/stories/generated/Progress/Demos.stories.tsx +1 -1
  146. package/src/stories/generated/ProgressTracker/Demos.stories.tsx +1 -1
  147. package/src/stories/generated/RadioButton/Demos.stories.tsx +1 -1
  148. package/src/stories/generated/Select/Demos.stories.tsx +1 -1
  149. package/src/stories/generated/SideNavigation/Demos.stories.tsx +1 -1
  150. package/src/stories/generated/Skeleton/Demos.stories.tsx +1 -1
  151. package/src/stories/generated/Slider/Demos.stories.tsx +1 -1
  152. package/src/stories/generated/Slideshow/Demos.stories.tsx +1 -1
  153. package/src/stories/generated/Switch/Demos.stories.tsx +1 -1
  154. package/src/stories/generated/Table/Demos.stories.tsx +1 -1
  155. package/src/stories/generated/Tabs/Demos.stories.tsx +1 -1
  156. package/src/stories/generated/TextField/Demos.stories.tsx +1 -1
  157. package/src/stories/generated/Thumbnail/Demos.stories.tsx +1 -1
  158. package/src/stories/generated/Toolbar/Demos.stories.tsx +1 -1
  159. package/src/stories/generated/Tooltip/Demos.stories.tsx +1 -1
  160. package/src/stories/generated/Uploader/Demos.stories.tsx +1 -1
  161. package/src/stories/generated/UserBlock/Demos.stories.tsx +1 -1
  162. package/src/stories/knobs/enumKnob.ts +1 -1
  163. package/src/stories/knobs/image.ts +12 -12
  164. package/src/untypped-modules.d.ts +2 -0
  165. package/esm/_internal/mdi.js +0 -22
  166. package/esm/_internal/mdi.js.map +0 -1
@@ -10,7 +10,7 @@ Array [
10
10
  aspectRatio="square"
11
11
  className="lumx-avatar__thumbnail"
12
12
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
13
- image="avatar2.jpg"
13
+ image="/demo-assets/avatar2.jpg"
14
14
  loading="lazy"
15
15
  onClick={[Function]}
16
16
  size="xs"
@@ -25,7 +25,7 @@ Array [
25
25
  aspectRatio="square"
26
26
  className="lumx-avatar__thumbnail"
27
27
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
28
- image="avatar2.jpg"
28
+ image="/demo-assets/avatar2.jpg"
29
29
  loading="lazy"
30
30
  onClick={[Function]}
31
31
  size="s"
@@ -40,7 +40,7 @@ Array [
40
40
  aspectRatio="square"
41
41
  className="lumx-avatar__thumbnail"
42
42
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
43
- image="avatar2.jpg"
43
+ image="/demo-assets/avatar2.jpg"
44
44
  loading="lazy"
45
45
  onClick={[Function]}
46
46
  size="m"
@@ -55,7 +55,7 @@ Array [
55
55
  aspectRatio="square"
56
56
  className="lumx-avatar__thumbnail"
57
57
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
58
- image="avatar2.jpg"
58
+ image="/demo-assets/avatar2.jpg"
59
59
  loading="lazy"
60
60
  onClick={[Function]}
61
61
  size="l"
@@ -70,7 +70,7 @@ Array [
70
70
  aspectRatio="square"
71
71
  className="lumx-avatar__thumbnail"
72
72
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
73
- image="avatar2.jpg"
73
+ image="/demo-assets/avatar2.jpg"
74
74
  loading="lazy"
75
75
  onClick={[Function]}
76
76
  size="xl"
@@ -85,7 +85,7 @@ Array [
85
85
  aspectRatio="square"
86
86
  className="lumx-avatar__thumbnail"
87
87
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
88
- image="avatar2.jpg"
88
+ image="/demo-assets/avatar2.jpg"
89
89
  loading="lazy"
90
90
  onClick={[Function]}
91
91
  size="xxl"
@@ -105,7 +105,7 @@ Array [
105
105
  aspectRatio="square"
106
106
  className="lumx-avatar__thumbnail"
107
107
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
108
- image="avatar1.jpg"
108
+ image="/demo-assets/avatar1.jpg"
109
109
  loading="lazy"
110
110
  size="xs"
111
111
  theme="light"
@@ -119,7 +119,7 @@ Array [
119
119
  aspectRatio="square"
120
120
  className="lumx-avatar__thumbnail"
121
121
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
122
- image="avatar1.jpg"
122
+ image="/demo-assets/avatar1.jpg"
123
123
  loading="lazy"
124
124
  size="s"
125
125
  theme="light"
@@ -133,7 +133,7 @@ Array [
133
133
  aspectRatio="square"
134
134
  className="lumx-avatar__thumbnail"
135
135
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
136
- image="avatar1.jpg"
136
+ image="/demo-assets/avatar1.jpg"
137
137
  loading="lazy"
138
138
  size="m"
139
139
  theme="light"
@@ -147,7 +147,7 @@ Array [
147
147
  aspectRatio="square"
148
148
  className="lumx-avatar__thumbnail"
149
149
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
150
- image="avatar1.jpg"
150
+ image="/demo-assets/avatar1.jpg"
151
151
  loading="lazy"
152
152
  size="l"
153
153
  theme="light"
@@ -161,7 +161,7 @@ Array [
161
161
  aspectRatio="square"
162
162
  className="lumx-avatar__thumbnail"
163
163
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
164
- image="avatar1.jpg"
164
+ image="/demo-assets/avatar1.jpg"
165
165
  loading="lazy"
166
166
  size="xl"
167
167
  theme="light"
@@ -175,7 +175,7 @@ Array [
175
175
  aspectRatio="square"
176
176
  className="lumx-avatar__thumbnail"
177
177
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
178
- image="avatar1.jpg"
178
+ image="/demo-assets/avatar1.jpg"
179
179
  loading="lazy"
180
180
  size="xxl"
181
181
  theme="light"
@@ -194,7 +194,7 @@ Array [
194
194
  aspectRatio="square"
195
195
  className="lumx-avatar__thumbnail"
196
196
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
197
- image="avatar2.jpg"
197
+ image="/demo-assets/avatar2.jpg"
198
198
  loading="lazy"
199
199
  size="xs"
200
200
  theme="light"
@@ -258,7 +258,7 @@ Array [
258
258
  aspectRatio="square"
259
259
  className="lumx-avatar__thumbnail"
260
260
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
261
- image="avatar2.jpg"
261
+ image="/demo-assets/avatar2.jpg"
262
262
  loading="lazy"
263
263
  size="s"
264
264
  theme="light"
@@ -322,7 +322,7 @@ Array [
322
322
  aspectRatio="square"
323
323
  className="lumx-avatar__thumbnail"
324
324
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
325
- image="avatar2.jpg"
325
+ image="/demo-assets/avatar2.jpg"
326
326
  loading="lazy"
327
327
  size="m"
328
328
  theme="light"
@@ -386,7 +386,7 @@ Array [
386
386
  aspectRatio="square"
387
387
  className="lumx-avatar__thumbnail"
388
388
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
389
- image="avatar2.jpg"
389
+ image="/demo-assets/avatar2.jpg"
390
390
  loading="lazy"
391
391
  size="l"
392
392
  theme="light"
@@ -450,7 +450,7 @@ Array [
450
450
  aspectRatio="square"
451
451
  className="lumx-avatar__thumbnail"
452
452
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
453
- image="avatar2.jpg"
453
+ image="/demo-assets/avatar2.jpg"
454
454
  loading="lazy"
455
455
  size="xl"
456
456
  theme="light"
@@ -514,7 +514,7 @@ Array [
514
514
  aspectRatio="square"
515
515
  className="lumx-avatar__thumbnail"
516
516
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
517
- image="avatar2.jpg"
517
+ image="/demo-assets/avatar2.jpg"
518
518
  loading="lazy"
519
519
  size="xxl"
520
520
  theme="light"
@@ -583,7 +583,7 @@ Array [
583
583
  aspectRatio="square"
584
584
  className="lumx-avatar__thumbnail"
585
585
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
586
- image="avatar3.jpg"
586
+ image="/demo-assets/avatar3.jpg"
587
587
  loading="lazy"
588
588
  size="xs"
589
589
  theme="light"
@@ -608,7 +608,7 @@ Array [
608
608
  aspectRatio="square"
609
609
  className="lumx-avatar__thumbnail"
610
610
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
611
- image="avatar3.jpg"
611
+ image="/demo-assets/avatar3.jpg"
612
612
  loading="lazy"
613
613
  size="s"
614
614
  theme="light"
@@ -633,7 +633,7 @@ Array [
633
633
  aspectRatio="square"
634
634
  className="lumx-avatar__thumbnail"
635
635
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
636
- image="avatar3.jpg"
636
+ image="/demo-assets/avatar3.jpg"
637
637
  loading="lazy"
638
638
  size="m"
639
639
  theme="light"
@@ -658,7 +658,7 @@ Array [
658
658
  aspectRatio="square"
659
659
  className="lumx-avatar__thumbnail"
660
660
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
661
- image="avatar3.jpg"
661
+ image="/demo-assets/avatar3.jpg"
662
662
  loading="lazy"
663
663
  size="l"
664
664
  theme="light"
@@ -683,7 +683,7 @@ Array [
683
683
  aspectRatio="square"
684
684
  className="lumx-avatar__thumbnail"
685
685
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
686
- image="avatar3.jpg"
686
+ image="/demo-assets/avatar3.jpg"
687
687
  loading="lazy"
688
688
  size="xl"
689
689
  theme="light"
@@ -708,7 +708,7 @@ Array [
708
708
  aspectRatio="square"
709
709
  className="lumx-avatar__thumbnail"
710
710
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
711
- image="avatar3.jpg"
711
+ image="/demo-assets/avatar3.jpg"
712
712
  loading="lazy"
713
713
  size="xxl"
714
714
  theme="light"
@@ -738,7 +738,7 @@ Array [
738
738
  aspectRatio="square"
739
739
  className="lumx-avatar__thumbnail"
740
740
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
741
- image="portrait3.jpg"
741
+ image="/demo-assets/portrait3.jpg"
742
742
  loading="lazy"
743
743
  size="xs"
744
744
  theme="light"
@@ -752,7 +752,7 @@ Array [
752
752
  aspectRatio="square"
753
753
  className="lumx-avatar__thumbnail"
754
754
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
755
- image="portrait3.jpg"
755
+ image="/demo-assets/portrait3.jpg"
756
756
  loading="lazy"
757
757
  size="s"
758
758
  theme="light"
@@ -766,7 +766,7 @@ Array [
766
766
  aspectRatio="square"
767
767
  className="lumx-avatar__thumbnail"
768
768
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
769
- image="portrait3.jpg"
769
+ image="/demo-assets/portrait3.jpg"
770
770
  loading="lazy"
771
771
  size="m"
772
772
  theme="light"
@@ -780,7 +780,7 @@ Array [
780
780
  aspectRatio="square"
781
781
  className="lumx-avatar__thumbnail"
782
782
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
783
- image="portrait3.jpg"
783
+ image="/demo-assets/portrait3.jpg"
784
784
  loading="lazy"
785
785
  size="l"
786
786
  theme="light"
@@ -794,7 +794,7 @@ Array [
794
794
  aspectRatio="square"
795
795
  className="lumx-avatar__thumbnail"
796
796
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
797
- image="portrait3.jpg"
797
+ image="/demo-assets/portrait3.jpg"
798
798
  loading="lazy"
799
799
  size="xl"
800
800
  theme="light"
@@ -808,7 +808,7 @@ Array [
808
808
  aspectRatio="square"
809
809
  className="lumx-avatar__thumbnail"
810
810
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
811
- image="portrait3.jpg"
811
+ image="/demo-assets/portrait3.jpg"
812
812
  loading="lazy"
813
813
  size="xxl"
814
814
  theme="light"
@@ -12,7 +12,7 @@ exports[`<CommentBlock> Snapshots and structure should render story 'WithHeaderA
12
12
  >
13
13
  <Avatar
14
14
  alt="Avatar"
15
- image="avatar1.jpg"
15
+ image="/demo-assets/avatar1.jpg"
16
16
  onKeyPress={[Function]}
17
17
  size="m"
18
18
  tabIndex={-1}
@@ -15,17 +15,24 @@ import {
15
15
  Theme,
16
16
  Toolbar,
17
17
  } from '@lumx/react';
18
+ import { DIALOG_TRANSITION_DURATION } from '@lumx/core/js/constants';
18
19
  import { select } from '@storybook/addon-knobs';
19
20
  import React, { RefObject, useRef, useState } from 'react';
20
21
  import { Dialog, DialogSizes } from './Dialog';
21
22
  import { loremIpsum } from '../../stories/knobs/lorem';
23
+ import { chromaticForceScreenSize } from '../../stories/chromaticForceScreenSize';
22
24
 
23
25
  export default {
24
26
  title: 'LumX components/dialog/Dialog',
25
27
  parameters: {
26
- // Notifies Chromatic to pause the animations when they finish for the specific story.
27
- chromatic: { pauseAnimationAtEnd: true },
28
+ // Delay Chromatic snapshot to wait for dialog to open.
29
+ chromatic: {
30
+ pauseAnimationAtEnd: true,
31
+ delay: DIALOG_TRANSITION_DURATION,
32
+ },
28
33
  },
34
+ // Force minimum chromatic screen size to make sure the dialog appears in view.
35
+ decorators: [chromaticForceScreenSize],
29
36
  };
30
37
 
31
38
  const header = <header className="lumx-spacing-padding lumx-typography-title">Dialog header</header>;
@@ -4,6 +4,7 @@ import classNames from 'classnames';
4
4
 
5
5
  import { Color, ColorPalette, ColorVariant, Size, Theme } from '@lumx/react';
6
6
  import { Comp, GenericProps, getRootClassName, handleBasicClasses } from '@lumx/react/utils';
7
+ import { mdiAlertCircle } from '@lumx/icons';
7
8
 
8
9
  export type IconSizes = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
9
10
 
@@ -92,6 +93,10 @@ export const Icon: Comp<IconProps, HTMLElement> = forwardRef((props, ref) => {
92
93
  size: iconSize,
93
94
  }),
94
95
  !hasShape && `${CLASSNAME}--no-shape`,
96
+ !hasShape &&
97
+ iconColor === ColorPalette.yellow &&
98
+ icon === mdiAlertCircle &&
99
+ `${CLASSNAME}--has-dark-layer`,
95
100
  `${CLASSNAME}--path`,
96
101
  )}
97
102
  >
@@ -11,8 +11,8 @@ export default { title: 'LumX components/image-block/Image Block' };
11
11
 
12
12
  export const DefaultImageBlock = ({ theme }: any) => {
13
13
  const alt = text('Alternative text', 'Image alt text');
14
- const align = select<Alignment>('Alignment', Alignment, Alignment.center) as any;
15
- const aspectRatio = select<AspectRatio>('Aspect ratio', AspectRatio, AspectRatio.square);
14
+ const align = select('Alignment', Alignment, Alignment.center) as any;
15
+ const aspectRatio = select('Aspect ratio', AspectRatio, AspectRatio.square);
16
16
  const title = text('Title', 'Hello world');
17
17
  const description = text('Description', 'My awesome description');
18
18
  const crossOrigin = enumKnob('CORS', [undefined, 'anonymous', 'use-credentials'], undefined);
@@ -16,7 +16,7 @@ exports[`<ImageBlock> Snapshots and structure should render story 'DefaultImageB
16
16
  "y": 0,
17
17
  }
18
18
  }
19
- image="landscape1.jpg"
19
+ image="/demo-assets/landscape1.jpg"
20
20
  loading="lazy"
21
21
  onClick={false}
22
22
  theme="light"
@@ -0,0 +1,82 @@
1
+ import React from 'react';
2
+ import {
3
+ ImageBlock,
4
+ Slideshow,
5
+ SlideshowItem,
6
+ Toolbar,
7
+ Divider,
8
+ Alignment,
9
+ TextField,
10
+ Typography,
11
+ Link,
12
+ Lightbox,
13
+ ThumbnailProps,
14
+ } from '@lumx/react';
15
+ import { thumbnailsKnob } from '@lumx/react/stories/knobs/thumbnailsKnob';
16
+
17
+ export default { title: 'LumX components/lightbox/Lightbox' };
18
+
19
+ interface RowItemProps {
20
+ image: ThumbnailProps;
21
+ }
22
+
23
+ const RowItem: React.FC<RowItemProps> = ({ image }) => {
24
+ const [isOpen, setOpen] = React.useState(false);
25
+ const { image: url, alt: name } = image;
26
+ const linkRef = React.useRef(null);
27
+
28
+ return (
29
+ <>
30
+ <Toolbar
31
+ label={
32
+ <Link ref={linkRef} typography={Typography.subtitle1} onClick={() => setOpen(true)}>
33
+ {name}
34
+ </Link>
35
+ }
36
+ />
37
+ <Lightbox
38
+ closeButtonProps={{ label: 'Close' }}
39
+ isOpen={isOpen}
40
+ onClose={() => setOpen(false)}
41
+ parentElement={linkRef}
42
+ >
43
+ <Slideshow
44
+ activeIndex={0}
45
+ fillHeight
46
+ slideshowControlsProps={{
47
+ nextButtonProps: { label: 'Next' },
48
+ previousButtonProps: { label: 'Previous' },
49
+ }}
50
+ >
51
+ <SlideshowItem key={name}>
52
+ <ImageBlock align={Alignment.center} alt={name} fillHeight image={url} />
53
+ </SlideshowItem>
54
+ </Slideshow>
55
+ </Lightbox>
56
+ </>
57
+ );
58
+ };
59
+
60
+ export const Focus = () => {
61
+ const [textFieldValue, setTextFieldValue] = React.useState('');
62
+ const images: ThumbnailProps[] = thumbnailsKnob(12);
63
+
64
+ return (
65
+ <>
66
+ <TextField
67
+ value={textFieldValue}
68
+ onChange={setTextFieldValue}
69
+ className="lumx-spacing-margin-vertical-big"
70
+ />
71
+ {images.map((image, index) => {
72
+ const itemPosition = index + 1;
73
+ return (
74
+ <div key={itemPosition}>
75
+ <RowItem image={image} />
76
+ <Divider />
77
+ </div>
78
+ );
79
+ })}
80
+ </>
81
+ );
82
+ };
@@ -10,7 +10,6 @@ import { Comp, GenericProps, getRootClassName, handleBasicClasses } from '@lumx/
10
10
 
11
11
  import { useFocusTrap } from '@lumx/react/hooks/useFocusTrap';
12
12
  import { useDelayedVisibility } from '@lumx/react/hooks/useDelayedVisibility';
13
- import { useFocus } from '@lumx/react/hooks/useFocus';
14
13
  import { useDisableBodyScroll } from '@lumx/react/hooks/useDisableBodyScroll';
15
14
  import { ClickAwayProvider } from '@lumx/react/utils/ClickAwayProvider';
16
15
  import { mergeRefs } from '@lumx/react/utils/mergeRefs';
@@ -90,9 +89,18 @@ export const Lightbox: Comp<LightboxProps, HTMLDivElement> = forwardRef((props,
90
89
  // eslint-disable-next-line react-hooks/rules-of-hooks
91
90
  useFocusTrap(wrapperRef.current, childrenRef.current?.firstChild);
92
91
 
93
- // Focus the parent element on close.
94
- // eslint-disable-next-line react-hooks/rules-of-hooks
95
- useFocus(parentElement?.current, !isOpen);
92
+ const previousOpen = React.useRef(isOpen);
93
+
94
+ React.useEffect(() => {
95
+ if (isOpen !== previousOpen.current) {
96
+ previousOpen.current = isOpen;
97
+
98
+ // Focus the parent element on close.
99
+ if (!isOpen && parentElement && parentElement.current) {
100
+ parentElement.current.focus();
101
+ }
102
+ }
103
+ }, [isOpen, parentElement]);
96
104
 
97
105
  // Close lightbox on escape key pressed.
98
106
  // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -115,7 +115,7 @@ export const LinkPreview: Comp<LinkPreviewProps, HTMLDivElement> = forwardRef((p
115
115
  className={classNames(`${CLASSNAME}__link`, linkProps?.className)}
116
116
  target="_blank"
117
117
  href={link}
118
- color={theme === Theme.light ? ColorPalette.blue : ColorPalette.light}
118
+ color={theme === Theme.light ? ColorPalette.primary : ColorPalette.light}
119
119
  colorVariant={ColorVariant.N}
120
120
  >
121
121
  {link}
@@ -15,7 +15,7 @@ exports[`<LinkPreview> Snapshots and structure should render correctly 1`] = `
15
15
  >
16
16
  <Link
17
17
  className="lumx-link-preview__link"
18
- color="blue"
18
+ color="primary"
19
19
  colorVariant="N"
20
20
  target="_blank"
21
21
  />
@@ -40,7 +40,7 @@ exports[`<LinkPreview> Snapshots and structure should render correctly 2`] = `
40
40
  >
41
41
  <Link
42
42
  className="lumx-link-preview__link"
43
- color="blue"
43
+ color="primary"
44
44
  colorVariant="N"
45
45
  target="_blank"
46
46
  />
@@ -62,7 +62,9 @@ export const Message: Comp<MessageProps, HTMLDivElement> = forwardRef((props, re
62
62
  )}
63
63
  {...forwardedProps}
64
64
  >
65
- {(customIcon || icon) && <Icon className={`${CLASSNAME}__icon`} icon={customIcon || icon} size={Size.xs} />}
65
+ {(customIcon || icon) && (
66
+ <Icon className={`${CLASSNAME}__icon`} icon={customIcon || icon} size={Size.xs} color={color} />
67
+ )}
66
68
  <div className={`${CLASSNAME}__text`}>{children}</div>
67
69
  </div>
68
70
  );
@@ -17,7 +17,7 @@ exports[`<Mosaic> Snapshots and structure should render story FiveThumbnails 1`]
17
17
  aspectRatio="free"
18
18
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
19
19
  fillHeight={true}
20
- image="landscape1.jpg"
20
+ image="/demo-assets/landscape1.jpg"
21
21
  loading="lazy"
22
22
  theme="light"
23
23
  />
@@ -32,7 +32,7 @@ exports[`<Mosaic> Snapshots and structure should render story FiveThumbnails 1`]
32
32
  aspectRatio="free"
33
33
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
34
34
  fillHeight={true}
35
- image="landscape2.jpg"
35
+ image="/demo-assets/landscape2.jpg"
36
36
  loading="lazy"
37
37
  theme="light"
38
38
  />
@@ -47,7 +47,7 @@ exports[`<Mosaic> Snapshots and structure should render story FiveThumbnails 1`]
47
47
  aspectRatio="free"
48
48
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
49
49
  fillHeight={true}
50
- image="landscape3.jpg"
50
+ image="/demo-assets/landscape3.jpg"
51
51
  loading="lazy"
52
52
  theme="light"
53
53
  />
@@ -62,7 +62,7 @@ exports[`<Mosaic> Snapshots and structure should render story FiveThumbnails 1`]
62
62
  aspectRatio="free"
63
63
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
64
64
  fillHeight={true}
65
- image="portrait1.jpg"
65
+ image="/demo-assets/portrait1.jpg"
66
66
  loading="lazy"
67
67
  theme="light"
68
68
  />
@@ -96,7 +96,7 @@ exports[`<Mosaic> Snapshots and structure should render story FourThumbnails 1`]
96
96
  aspectRatio="free"
97
97
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
98
98
  fillHeight={true}
99
- image="landscape1.jpg"
99
+ image="/demo-assets/landscape1.jpg"
100
100
  loading="lazy"
101
101
  theme="light"
102
102
  />
@@ -111,7 +111,7 @@ exports[`<Mosaic> Snapshots and structure should render story FourThumbnails 1`]
111
111
  aspectRatio="free"
112
112
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
113
113
  fillHeight={true}
114
- image="landscape2.jpg"
114
+ image="/demo-assets/landscape2.jpg"
115
115
  loading="lazy"
116
116
  theme="light"
117
117
  />
@@ -126,7 +126,7 @@ exports[`<Mosaic> Snapshots and structure should render story FourThumbnails 1`]
126
126
  aspectRatio="free"
127
127
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
128
128
  fillHeight={true}
129
- image="landscape3.jpg"
129
+ image="/demo-assets/landscape3.jpg"
130
130
  loading="lazy"
131
131
  theme="light"
132
132
  />
@@ -141,7 +141,7 @@ exports[`<Mosaic> Snapshots and structure should render story FourThumbnails 1`]
141
141
  aspectRatio="free"
142
142
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
143
143
  fillHeight={true}
144
- image="portrait1.jpg"
144
+ image="/demo-assets/portrait1.jpg"
145
145
  loading="lazy"
146
146
  theme="light"
147
147
  />
@@ -167,7 +167,7 @@ exports[`<Mosaic> Snapshots and structure should render story OneThumbnail 1`] =
167
167
  aspectRatio="free"
168
168
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
169
169
  fillHeight={true}
170
- image="landscape1.jpg"
170
+ image="/demo-assets/landscape1.jpg"
171
171
  loading="lazy"
172
172
  theme="light"
173
173
  />
@@ -193,7 +193,7 @@ exports[`<Mosaic> Snapshots and structure should render story SixThumbnails 1`]
193
193
  aspectRatio="free"
194
194
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
195
195
  fillHeight={true}
196
- image="landscape1.jpg"
196
+ image="/demo-assets/landscape1.jpg"
197
197
  loading="lazy"
198
198
  onClick={[Function]}
199
199
  theme="light"
@@ -209,7 +209,7 @@ exports[`<Mosaic> Snapshots and structure should render story SixThumbnails 1`]
209
209
  aspectRatio="free"
210
210
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
211
211
  fillHeight={true}
212
- image="landscape2.jpg"
212
+ image="/demo-assets/landscape2.jpg"
213
213
  loading="lazy"
214
214
  onClick={[Function]}
215
215
  theme="light"
@@ -225,7 +225,7 @@ exports[`<Mosaic> Snapshots and structure should render story SixThumbnails 1`]
225
225
  aspectRatio="free"
226
226
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
227
227
  fillHeight={true}
228
- image="landscape3.jpg"
228
+ image="/demo-assets/landscape3.jpg"
229
229
  loading="lazy"
230
230
  onClick={[Function]}
231
231
  theme="light"
@@ -241,7 +241,7 @@ exports[`<Mosaic> Snapshots and structure should render story SixThumbnails 1`]
241
241
  aspectRatio="free"
242
242
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
243
243
  fillHeight={true}
244
- image="portrait1.jpg"
244
+ image="/demo-assets/portrait1.jpg"
245
245
  loading="lazy"
246
246
  onClick={[Function]}
247
247
  theme="light"
@@ -276,7 +276,7 @@ exports[`<Mosaic> Snapshots and structure should render story ThreeThumbnails 1`
276
276
  aspectRatio="free"
277
277
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
278
278
  fillHeight={true}
279
- image="landscape1.jpg"
279
+ image="/demo-assets/landscape1.jpg"
280
280
  loading="lazy"
281
281
  theme="light"
282
282
  />
@@ -291,7 +291,7 @@ exports[`<Mosaic> Snapshots and structure should render story ThreeThumbnails 1`
291
291
  aspectRatio="free"
292
292
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
293
293
  fillHeight={true}
294
- image="landscape2.jpg"
294
+ image="/demo-assets/landscape2.jpg"
295
295
  loading="lazy"
296
296
  theme="light"
297
297
  />
@@ -306,7 +306,7 @@ exports[`<Mosaic> Snapshots and structure should render story ThreeThumbnails 1`
306
306
  aspectRatio="free"
307
307
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
308
308
  fillHeight={true}
309
- image="landscape3.jpg"
309
+ image="/demo-assets/landscape3.jpg"
310
310
  loading="lazy"
311
311
  theme="light"
312
312
  />
@@ -332,7 +332,7 @@ exports[`<Mosaic> Snapshots and structure should render story TwoThumbnails 1`]
332
332
  aspectRatio="free"
333
333
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
334
334
  fillHeight={true}
335
- image="landscape1.jpg"
335
+ image="/demo-assets/landscape1.jpg"
336
336
  loading="lazy"
337
337
  theme="light"
338
338
  />
@@ -347,7 +347,7 @@ exports[`<Mosaic> Snapshots and structure should render story TwoThumbnails 1`]
347
347
  aspectRatio="free"
348
348
  fallback="M21,5V11.59L18,8.58L14,12.59L10,8.59L6,12.59L3,9.58V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5M18,11.42L21,14.43V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V12.42L6,15.41L10,11.41L14,15.41"
349
349
  fillHeight={true}
350
- image="landscape2.jpg"
350
+ image="/demo-assets/landscape2.jpg"
351
351
  loading="lazy"
352
352
  theme="light"
353
353
  />