@micromag/core 0.4.98 → 0.4.109

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.
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as React$1 from 'react';
3
2
  import React__default, { ReactNode, ElementType, CSSProperties, MouseEventHandler, ForwardedRef, JSX, MouseEvent, HTMLAttributes, Component as Component$2 } from 'react';
4
3
  import { MessageDescriptor } from 'react-intl';
@@ -89,7 +88,7 @@ interface ButtonProps {
89
88
  onClick?: MouseEventHandler<ButtonElement> | null;
90
89
  refButton?: ForwardedRef<ButtonElement> | null;
91
90
  }
92
- declare function Button$1({ type, theme, size, href, external, direct, target, label, children, focusable, active, icon, iconPosition, disabled, loading, disableOnLoading, withoutStyle, withoutBootstrapStyles, withoutTheme, outline, onClick, className, iconClassName, labelClassName, refButton, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
91
+ declare function Button$1({ type, theme, size, href, external, direct, target, label, children, focusable, active, icon, iconPosition, disabled, loading, disableOnLoading, withoutStyle, withoutBootstrapStyles, withoutTheme, outline, onClick, className, iconClassName, labelClassName, refButton, ...props }: ButtonProps): React$1.JSX.Element;
93
92
 
94
93
  interface ButtonsProps {
95
94
  buttons?: Button$2[];
@@ -100,12 +99,12 @@ interface ButtonsProps {
100
99
  className?: string | null;
101
100
  buttonClassName?: string | null;
102
101
  }
103
- declare function Buttons({ buttons, size, theme, renderButton, onClickButton, buttonClassName, className, }: ButtonsProps): react_jsx_runtime.JSX.Element;
102
+ declare function Buttons({ buttons, size, theme, renderButton, onClickButton, buttonClassName, className, }: ButtonsProps): JSX.Element;
104
103
 
105
104
  interface BackButtonProps extends ButtonProps {
106
105
  className?: string | null;
107
106
  }
108
- declare function BackButton({ ...props }: BackButtonProps): react_jsx_runtime.JSX.Element;
107
+ declare function BackButton({ ...props }: BackButtonProps): React$1.JSX.Element;
109
108
 
110
109
  interface ClearButtonProps extends HTMLAttributes<HTMLButtonElement> {
111
110
  onClick?: MouseEventHandler<HTMLButtonElement> | null;
@@ -113,7 +112,7 @@ interface ClearButtonProps extends HTMLAttributes<HTMLButtonElement> {
113
112
  className?: string | null;
114
113
  disabled?: boolean;
115
114
  }
116
- declare function ClearButton({ onClick, className, iconOnly, disabled, ...props }: ClearButtonProps): react_jsx_runtime.JSX.Element;
115
+ declare function ClearButton({ onClick, className, iconOnly, disabled, ...props }: ClearButtonProps): React$1.JSX.Element;
117
116
 
118
117
  interface FormProps {
119
118
  action: string;
@@ -143,7 +142,7 @@ interface FormProps {
143
142
  actionsClassName?: string | null;
144
143
  cancelClassName?: string | null;
145
144
  }
146
- declare function Form({ action, method, fields: initialFields, initialValue, postForm, submitButtonLabel, submitButtonLoadingLabel, submitButtonTheme, cancelButtonTheme, buttons, children, actionsAlign, withoutActions, withoutComplete, withoutBackButton, onComplete, onResponse, onMessage, onCancel, onCancelHref, onOpenFieldForm, onCloseFieldForm, className, fieldsClassName, actionsClassName, cancelClassName, }: FormProps): react_jsx_runtime.JSX.Element;
145
+ declare function Form({ action, method, fields: initialFields, initialValue, postForm, submitButtonLabel, submitButtonLoadingLabel, submitButtonTheme, cancelButtonTheme, buttons, children, actionsAlign, withoutActions, withoutComplete, withoutBackButton, onComplete, onResponse, onMessage, onCancel, onCancelHref, onOpenFieldForm, onCloseFieldForm, className, fieldsClassName, actionsClassName, cancelClassName, }: FormProps): React__default.JSX.Element;
147
146
 
148
147
  interface FormPanelProps {
149
148
  description?: React__default.ReactNode | null;
@@ -151,7 +150,7 @@ interface FormPanelProps {
151
150
  children?: React__default.ReactNode | null;
152
151
  className?: string | null;
153
152
  }
154
- declare function FormPanel({ description, loading, children, className, ...props }: FormPanelProps): react_jsx_runtime.JSX.Element;
153
+ declare function FormPanel({ description, loading, children, className, ...props }: FormPanelProps): React__default.JSX.Element;
155
154
 
156
155
  interface FieldFormProps {
157
156
  name?: string | null;
@@ -165,55 +164,55 @@ interface FieldFormProps {
165
164
  closeFieldForm: (...args: unknown[]) => void;
166
165
  fieldContext?: unknown | null;
167
166
  }
168
- declare function FieldForm({ name, value, form, formComponents, fields, className, onChange, gotoFieldForm, closeFieldForm, fieldContext, }: FieldFormProps): react_jsx_runtime.JSX.Element | null;
167
+ declare function FieldForm({ name, value, form, formComponents, fields, className, onChange, gotoFieldForm, closeFieldForm, fieldContext, }: FieldFormProps): React$1.JSX.Element | null;
169
168
 
170
169
  interface ArrowIconProps {
171
170
  className?: string | null;
172
171
  color?: string;
173
172
  }
174
- declare function ArrowIcon({ color, className }: ArrowIconProps): react_jsx_runtime.JSX.Element;
173
+ declare function ArrowIcon({ color, className }: ArrowIconProps): React__default.JSX.Element;
175
174
 
176
175
  interface CloseIconProps {
177
176
  className?: string | null;
178
177
  color?: string;
179
178
  }
180
- declare function CloseIcon({ color, className }: CloseIconProps): react_jsx_runtime.JSX.Element;
179
+ declare function CloseIcon({ color, className }: CloseIconProps): React__default.JSX.Element;
181
180
 
182
181
  interface FullscreenIconProps {
183
182
  className?: string | null;
184
183
  color?: string;
185
184
  }
186
- declare function FullscreenIcon({ color, className }: FullscreenIconProps): react_jsx_runtime.JSX.Element;
185
+ declare function FullscreenIcon({ color, className }: FullscreenIconProps): React__default.JSX.Element;
187
186
 
188
187
  interface LinkIconProps {
189
188
  className?: string | null;
190
189
  color?: string;
191
190
  }
192
- declare function LinkIcon({ color, className }: LinkIconProps): react_jsx_runtime.JSX.Element;
191
+ declare function LinkIcon({ color, className }: LinkIconProps): React__default.JSX.Element;
193
192
 
194
193
  interface MuteIconProps {
195
194
  className?: string | null;
196
195
  color?: string;
197
196
  }
198
- declare function MuteIcon({ color, className }: MuteIconProps): react_jsx_runtime.JSX.Element;
197
+ declare function MuteIcon({ color, className }: MuteIconProps): React__default.JSX.Element;
199
198
 
200
199
  interface PauseIconProps {
201
200
  className?: string | null;
202
201
  color?: string;
203
202
  }
204
- declare function PauseIcon({ color, className }: PauseIconProps): react_jsx_runtime.JSX.Element;
203
+ declare function PauseIcon({ color, className }: PauseIconProps): React__default.JSX.Element;
205
204
 
206
205
  interface PlayIconProps {
207
206
  className?: string | null;
208
207
  color?: string | null;
209
208
  }
210
- declare function PlayIcon({ color, className }: PlayIconProps): react_jsx_runtime.JSX.Element;
209
+ declare function PlayIcon({ color, className }: PlayIconProps): React__default.JSX.Element;
211
210
 
212
211
  interface UnmuteIconProps {
213
212
  className?: string | null;
214
213
  color?: string;
215
214
  }
216
- declare function UnmuteIcon({ color, className }: UnmuteIconProps): react_jsx_runtime.JSX.Element;
215
+ declare function UnmuteIcon({ color, className }: UnmuteIconProps): React__default.JSX.Element;
217
216
 
218
217
  interface BreadcrumbProps {
219
218
  items?: MenuItem$1[];
@@ -223,7 +222,7 @@ interface BreadcrumbProps {
223
222
  noWrap?: boolean;
224
223
  className?: string | null;
225
224
  }
226
- declare function Breadcrumb({ items, theme, separator, withoutBar, noWrap, className, }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
225
+ declare function Breadcrumb({ items, theme, separator, withoutBar, noWrap, className, }: BreadcrumbProps): React$1.JSX.Element;
227
226
 
228
227
  interface DropdownProps {
229
228
  items?: MenuItem$1[];
@@ -235,7 +234,7 @@ interface DropdownProps {
235
234
  onClickItem?: ((...args: unknown[]) => void) | null;
236
235
  onClickOutside?: ((...args: unknown[]) => void) | null;
237
236
  }
238
- declare function Dropdown({ items, children, visible, align, className, itemClassName, onClickItem, onClickOutside, }: DropdownProps): react_jsx_runtime.JSX.Element;
237
+ declare function Dropdown({ items, children, visible, align, className, itemClassName, onClickItem, onClickOutside, }: DropdownProps): React$1.JSX.Element;
239
238
 
240
239
  interface MenuProps {
241
240
  items?: MenuItem[];
@@ -256,7 +255,7 @@ interface MenuProps {
256
255
  dropdownLinkClassName?: string | null;
257
256
  dropdownAlign?: DropdownAlign | null;
258
257
  }
259
- declare function Menu({ items, tagName, itemTagName, children, linkAsItem, className, itemClassName, linkClassName, hasSubMenuClassName, subMenuClassName, subMenuItemClassName, subMenuLinkClassName, hasDropdownClassName, dropdownClassName, dropdownItemClassName, dropdownLinkClassName, dropdownAlign, }: MenuProps): react_jsx_runtime.JSX.Element;
258
+ declare function Menu({ items, tagName, itemTagName, children, linkAsItem, className, itemClassName, linkClassName, hasSubMenuClassName, subMenuClassName, subMenuItemClassName, subMenuLinkClassName, hasDropdownClassName, dropdownClassName, dropdownItemClassName, dropdownLinkClassName, dropdownAlign, }: MenuProps): React__default.JSX.Element;
260
259
 
261
260
  interface NavbarProps {
262
261
  brand?: React__default.ReactNode | null;
@@ -274,7 +273,7 @@ interface NavbarProps {
274
273
  breadCrumbsClassName?: string | null;
275
274
  collapseClassName?: string | null;
276
275
  }
277
- declare function Navbar({ brand, brandLink, breadcrumbs, theme, size, compact, noWrap, withoutCollapse, withoutCollapseToggle, children, className, brandClassName, breadCrumbsClassName, collapseClassName, }: NavbarProps): react_jsx_runtime.JSX.Element;
276
+ declare function Navbar({ brand, brandLink, breadcrumbs, theme, size, compact, noWrap, withoutCollapse, withoutCollapseToggle, children, className, brandClassName, breadCrumbsClassName, collapseClassName, }: NavbarProps): React__default.JSX.Element;
278
277
 
279
278
  interface PaginationMenuProps {
280
279
  page?: number;
@@ -290,7 +289,7 @@ interface PaginationMenuProps {
290
289
  linkClassName?: string | null;
291
290
  onClickPage?: ((...args: unknown[]) => void) | null;
292
291
  }
293
- declare function PaginationMenu({ page: parentPage, lastPage: parentLastPage, maxPages: parentMaxPages, total: parentTotal, url, query, withPreviousNext, className, paginationClassName, itemClassName, linkClassName, onClickPage, }: PaginationMenuProps): react_jsx_runtime.JSX.Element;
292
+ declare function PaginationMenu({ page: parentPage, lastPage: parentLastPage, maxPages: parentMaxPages, total: parentTotal, url, query, withPreviousNext, className, paginationClassName, itemClassName, linkClassName, onClickPage, }: PaginationMenuProps): React$1.JSX.Element;
294
293
 
295
294
  interface TabsMenuProps {
296
295
  items?: MenuItem$1[];
@@ -301,7 +300,7 @@ interface TabsMenuProps {
301
300
  className?: string | null;
302
301
  onClickItem?: ((...args: unknown[]) => void) | null;
303
302
  }
304
- declare function TabsMenu({ items, size, theme, renderItemButton, buttonClassName, className, onClickItem, }: TabsMenuProps): react_jsx_runtime.JSX.Element;
303
+ declare function TabsMenu({ items, size, theme, renderItemButton, buttonClassName, className, onClickItem, }: TabsMenuProps): React$1.JSX.Element;
305
304
 
306
305
  interface UploadModalProps {
307
306
  type?: MediaType | unknown[] | null;
@@ -310,10 +309,10 @@ interface UploadModalProps {
310
309
  onUploaded?: ((...args: unknown[]) => void) | null;
311
310
  onRequestClose?: ((...args: unknown[]) => void) | null;
312
311
  }
313
- declare function UploadModal({ type, opened, sources, onUploaded, onRequestClose, }: UploadModalProps): react_jsx_runtime.JSX.Element | null;
312
+ declare function UploadModal({ type, opened, sources, onUploaded, onRequestClose, }: UploadModalProps): React__default.JSX.Element | null;
314
313
 
315
314
  declare const _default: {
316
- (props: any): react_jsx_runtime.JSX.Element;
315
+ (props: any): React__default.JSX.Element;
317
316
  displayName: string;
318
317
  };
319
318
 
@@ -322,14 +321,14 @@ interface PanelProps {
322
321
  title?: string | null;
323
322
  children?: React__default.ReactNode | null;
324
323
  }
325
- declare function Panel({ id, children, title }: PanelProps): react_jsx_runtime.JSX.Element;
324
+ declare function Panel({ id, children, title }: PanelProps): React__default.JSX.Element;
326
325
 
327
326
  interface PanelPortalProps {
328
327
  id?: string | null;
329
328
  data?: Record<string, unknown> | null;
330
329
  children?: React__default.ReactNode | null;
331
330
  }
332
- declare function PanelPortal({ id, data, children }: PanelPortalProps): string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null;
331
+ declare function PanelPortal({ id, data, children }: PanelPortalProps): string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | React__default.JSX.Element | null;
333
332
 
334
333
  interface CardProps {
335
334
  href?: string | null;
@@ -360,7 +359,7 @@ interface CardProps {
360
359
  onClickBody?: ((...args: unknown[]) => void) | null;
361
360
  onClickFooter?: ((...args: unknown[]) => void) | null;
362
361
  }
363
- declare function Card({ href, header, image, imageAlt, imageOverlay, beforeBody, title, subtitle, children, afterBody, links, linksInSameBody, footer, theme, className, imageClassName, headerClassName, titleClassName, subtitleClassName, bodyClassName, footerClassName, onClick, onClickBody, onClickFooter, }: CardProps): react_jsx_runtime.JSX.Element;
362
+ declare function Card({ href, header, image, imageAlt, imageOverlay, beforeBody, title, subtitle, children, afterBody, links, linksInSameBody, footer, theme, className, imageClassName, headerClassName, titleClassName, subtitleClassName, bodyClassName, footerClassName, onClick, onClickBody, onClickFooter, }: CardProps): React__default.JSX.Element;
364
363
 
365
364
  interface CollapsablePanelProps {
366
365
  title?: React__default.ReactNode | null;
@@ -371,7 +370,7 @@ interface CollapsablePanelProps {
371
370
  openedClassName?: string | null;
372
371
  buttonClassName?: string | null;
373
372
  }
374
- declare function CollapsablePanel({ title, children, className, topClassName, contentClassName, openedClassName, buttonClassName, }: CollapsablePanelProps): react_jsx_runtime.JSX.Element;
373
+ declare function CollapsablePanel({ title, children, className, topClassName, contentClassName, openedClassName, buttonClassName, }: CollapsablePanelProps): React__default.JSX.Element;
375
374
 
376
375
  interface CloseProps {
377
376
  stroke?: string;
@@ -379,14 +378,14 @@ interface CloseProps {
379
378
  fill?: string;
380
379
  className?: string | null;
381
380
  }
382
- declare function Close({ stroke, border, fill, className, }: CloseProps): react_jsx_runtime.JSX.Element;
381
+ declare function Close({ stroke, border, fill, className, }: CloseProps): React__default.JSX.Element;
383
382
 
384
383
  interface DateProps {
385
384
  date?: string | null;
386
385
  withTime?: boolean;
387
386
  timeSeparator?: ReactNode;
388
387
  }
389
- declare function Date({ date, withTime, timeSeparator }: DateProps): react_jsx_runtime.JSX.Element;
388
+ declare function Date({ date, withTime, timeSeparator }: DateProps): React$1.JSX.Element;
390
389
 
391
390
  interface DetectorProps {
392
391
  throttleDelay?: number | null;
@@ -398,7 +397,7 @@ interface DetectorProps {
398
397
  children?: React__default.ReactNode | null;
399
398
  className?: string | null;
400
399
  }
401
- declare function Detector({ throttleDelay, threshold, onEnter, onLeave, onChange, disabled, children, className, }: DetectorProps): react_jsx_runtime.JSX.Element;
400
+ declare function Detector({ throttleDelay, threshold, onEnter, onLeave, onChange, disabled, children, className, }: DetectorProps): React__default.JSX.Element;
402
401
 
403
402
  interface ElementComponentProps {
404
403
  name: string;
@@ -408,14 +407,14 @@ interface ElementComponentProps {
408
407
  className?: string | null;
409
408
  placeholderProps?: Record<string, unknown> | null;
410
409
  }
411
- declare function ElementComponent({ name, components, props, isPlaceholder, className, placeholderProps, }: ElementComponentProps): react_jsx_runtime.JSX.Element | "Bad component name" | "Bad component";
410
+ declare function ElementComponent({ name, components, props, isPlaceholder, className, placeholderProps, }: ElementComponentProps): React__default.JSX.Element | "Bad component name" | "Bad component";
412
411
 
413
412
  interface EmptyProps {
414
413
  children?: React__default.ReactNode | null;
415
414
  withoutBorder?: boolean;
416
415
  className?: string | null;
417
416
  }
418
- declare function Empty({ children, withoutBorder, className }: EmptyProps): react_jsx_runtime.JSX.Element;
417
+ declare function Empty({ children, withoutBorder, className }: EmptyProps): React__default.JSX.Element;
419
418
 
420
419
  interface FontFacesProps {
421
420
  fonts?: Font[];
@@ -424,14 +423,14 @@ interface FontFacesProps {
424
423
  format?: string;
425
424
  })[];
426
425
  }
427
- declare function FontFaces({ fonts, formats, }: FontFacesProps): react_jsx_runtime.JSX.Element | null;
426
+ declare function FontFaces({ fonts, formats, }: FontFacesProps): React__default.JSX.Element | null;
428
427
 
429
428
  interface LabelProps {
430
429
  children: Label$2;
431
430
  isHtml?: boolean;
432
431
  values?: Record<string, unknown>;
433
432
  }
434
- declare function Label$1({ children, isHtml, values }: LabelProps): string | number | bigint | boolean | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
433
+ declare function Label$1({ children, isHtml, values }: LabelProps): string | number | bigint | boolean | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | React$1.JSX.Element | null | undefined;
435
434
 
436
435
  interface LinkProps {
437
436
  href?: string;
@@ -442,7 +441,7 @@ interface LinkProps {
442
441
  withoutStyle?: boolean;
443
442
  className?: string | null;
444
443
  }
445
- declare function Link({ href, external, children, target, rel, className, withoutStyle, ...props }: LinkProps): react_jsx_runtime.JSX.Element;
444
+ declare function Link({ href, external, children, target, rel, className, withoutStyle, ...props }: LinkProps): React__default.JSX.Element;
446
445
 
447
446
  interface MediaProps {
448
447
  thumbnail?: React__default.ReactNode | null;
@@ -454,7 +453,7 @@ interface MediaProps {
454
453
  bodyClassName?: string | null;
455
454
  titleClassName?: string | null;
456
455
  }
457
- declare function Media({ thumbnail, thumbnailAlign, children, title, className, thumbnailClassName, bodyClassName, titleClassName, }: MediaProps): react_jsx_runtime.JSX.Element;
456
+ declare function Media({ thumbnail, thumbnailAlign, children, title, className, thumbnailClassName, bodyClassName, titleClassName, }: MediaProps): React__default.JSX.Element;
458
457
 
459
458
  interface MetaProps {
460
459
  title?: string | null;
@@ -464,7 +463,7 @@ interface MetaProps {
464
463
  suffix?: string;
465
464
  children?: React__default.ReactNode | null;
466
465
  }
467
- declare function Meta({ title, url, metadata, fullTitle, suffix, children, }: MetaProps): react_jsx_runtime.JSX.Element;
466
+ declare function Meta({ title, url, metadata, fullTitle, suffix, children, }: MetaProps): React__default.JSX.Element;
468
467
 
469
468
  interface SlideshowProps {
470
469
  items?: React__default.ReactNode[];
@@ -475,7 +474,7 @@ interface SlideshowProps {
475
474
  className?: string | null;
476
475
  children?: React__default.ReactNode | null;
477
476
  }
478
- declare function Slideshow({ items, auto, delay, width, height, className, children, }: SlideshowProps): react_jsx_runtime.JSX.Element;
477
+ declare function Slideshow({ items, auto, delay, width, height, className, children, }: SlideshowProps): React__default.JSX.Element;
479
478
 
480
479
  interface SpinnerProps {
481
480
  animated?: boolean;
@@ -483,7 +482,7 @@ interface SpinnerProps {
483
482
  strokeWidth?: number;
484
483
  className?: string | null;
485
484
  }
486
- declare function Spinner({ animated, color, strokeWidth, className, }: SpinnerProps): react_jsx_runtime.JSX.Element;
485
+ declare function Spinner({ animated, color, strokeWidth, className, }: SpinnerProps): React__default.JSX.Element;
487
486
 
488
487
  interface PlaceholderBlockProps {
489
488
  width?: number | string;
@@ -495,29 +494,29 @@ interface PlaceholderBlockProps {
495
494
  withInvertedColors?: boolean;
496
495
  }
497
496
 
498
- declare function AdFrame({ width, height, ...props }: PlaceholderBlockProps): react_jsx_runtime.JSX.Element;
497
+ declare function AdFrame({ width, height, ...props }: PlaceholderBlockProps): React$1.JSX.Element;
499
498
 
500
- declare function AdImage({ width, height, ...props }: PlaceholderBlockProps): react_jsx_runtime.JSX.Element;
499
+ declare function AdImage({ width, height, ...props }: PlaceholderBlockProps): React$1.JSX.Element;
501
500
 
502
- declare function Audio({ width, height, ...props }: PlaceholderBlockProps): react_jsx_runtime.JSX.Element;
501
+ declare function Audio({ width, height, ...props }: PlaceholderBlockProps): React$1.JSX.Element;
503
502
 
504
- declare function Button({ className, ...props }: PlaceholderBlockProps): react_jsx_runtime.JSX.Element;
503
+ declare function Button({ className, ...props }: PlaceholderBlockProps): React$1.JSX.Element;
505
504
 
506
505
  interface PlaceholderImageProps extends PlaceholderBlockProps {
507
506
  width?: number | string;
508
507
  height?: number | string;
509
508
  className?: string | null;
510
509
  }
511
- declare function PlaceholderImage({ width, height, className, ...props }: PlaceholderImageProps): react_jsx_runtime.JSX.Element;
510
+ declare function PlaceholderImage({ width, height, className, ...props }: PlaceholderImageProps): React$1.JSX.Element;
512
511
 
513
- declare function Line(props: any): react_jsx_runtime.JSX.Element;
512
+ declare function Line(props: any): React__default.JSX.Element;
514
513
 
515
514
  interface MapPlaceholderProps extends PlaceholderBlockProps {
516
515
  withImages?: boolean;
517
516
  }
518
- declare function Map({ withImages, className, ...props }: MapPlaceholderProps): react_jsx_runtime.JSX.Element;
517
+ declare function Map({ withImages, className, ...props }: MapPlaceholderProps): React$1.JSX.Element;
519
518
 
520
- declare function MapPath({ width, height, ...props }: PlaceholderBlockProps): react_jsx_runtime.JSX.Element;
519
+ declare function MapPath({ width, height, ...props }: PlaceholderBlockProps): React$1.JSX.Element;
521
520
 
522
521
  interface PlaceholderTextProps {
523
522
  lines?: number;
@@ -528,23 +527,23 @@ interface PlaceholderTextProps {
528
527
  className?: string | null;
529
528
  }
530
529
 
531
- declare function Quote({ height, lines, ...props }: PlaceholderTextProps): react_jsx_runtime.JSX.Element;
530
+ declare function Quote({ height, lines, ...props }: PlaceholderTextProps): React$1.JSX.Element;
532
531
 
533
- declare function ShortText({ height, lines, ...props }: PlaceholderTextProps): react_jsx_runtime.JSX.Element;
532
+ declare function ShortText({ height, lines, ...props }: PlaceholderTextProps): React$1.JSX.Element;
534
533
 
535
- declare function Subtitle({ height, lines, ...props }: PlaceholderTextProps): react_jsx_runtime.JSX.Element;
534
+ declare function Subtitle({ height, lines, ...props }: PlaceholderTextProps): React$1.JSX.Element;
536
535
 
537
- declare function TextPlaceholder({ height, lines, ...props }: PlaceholderTextProps): react_jsx_runtime.JSX.Element;
536
+ declare function TextPlaceholder({ height, lines, ...props }: PlaceholderTextProps): React$1.JSX.Element;
538
537
 
539
- declare function Timeline(props: any): react_jsx_runtime.JSX.Element;
538
+ declare function Timeline(props: any): React$1.JSX.Element;
540
539
 
541
- declare function Title({ height, lines, ...props }: PlaceholderTextProps): react_jsx_runtime.JSX.Element;
540
+ declare function Title({ height, lines, ...props }: PlaceholderTextProps): React$1.JSX.Element;
542
541
 
543
- declare function Video({ width, height, ...props }: PlaceholderBlockProps): react_jsx_runtime.JSX.Element;
542
+ declare function Video({ width, height, ...props }: PlaceholderBlockProps): React$1.JSX.Element;
544
543
 
545
- declare function Video360({ width, height, className, ...props }: PlaceholderBlockProps): react_jsx_runtime.JSX.Element;
544
+ declare function Video360({ width, height, className, ...props }: PlaceholderBlockProps): React$1.JSX.Element;
546
545
 
547
- declare function VideoLoop({ width, height, ...props }: PlaceholderBlockProps): react_jsx_runtime.JSX.Element;
546
+ declare function VideoLoop({ width, height, ...props }: PlaceholderBlockProps): React$1.JSX.Element;
548
547
 
549
548
  interface ScreenSizerProps {
550
549
  width?: number | null;
@@ -555,7 +554,7 @@ interface ScreenSizerProps {
555
554
  className?: string | null;
556
555
  children: ReactNode;
557
556
  }
558
- declare function ScreenSizer({ width, height, fit, screenWidth, screenHeight, className, children, }: ScreenSizerProps): react_jsx_runtime.JSX.Element;
557
+ declare function ScreenSizer({ width, height, fit, screenWidth, screenHeight, className, children, }: ScreenSizerProps): React$1.JSX.Element;
559
558
 
560
559
  interface ScreenProps {
561
560
  screen: StoryComponent$1;
@@ -564,13 +563,14 @@ interface ScreenProps {
564
563
  index?: number | null;
565
564
  active?: boolean;
566
565
  preload?: boolean;
566
+ focusable?: boolean;
567
567
  current?: boolean;
568
568
  component?: React__default.ReactNode | null;
569
569
  components?: Record<string, ElementType> | null;
570
570
  className?: string | null;
571
571
  mediaRef?: ForwardedRef<MediaElement> | null;
572
572
  }
573
- declare function Screen({ screen, renderContext, screenState, index, active, current, preload, components, component, className, mediaRef, }: ScreenProps): react_jsx_runtime.JSX.Element;
573
+ declare function Screen({ screen, renderContext, screenState, index, active, current, preload, focusable, components, component, className, mediaRef, }: ScreenProps): React__default.JSX.Element;
574
574
 
575
575
  interface ScreenPlaceholderProps {
576
576
  screen: Component;
@@ -581,7 +581,7 @@ interface ScreenPlaceholderProps {
581
581
  withSize?: boolean;
582
582
  className?: string | null;
583
583
  }
584
- declare function ScreenPlaceholder({ screen, layout, screenWidth, screenHeight, screenState, withSize, className, ...props }: ScreenPlaceholderProps): react_jsx_runtime.JSX.Element;
584
+ declare function ScreenPlaceholder({ screen, layout, screenWidth, screenHeight, screenState, withSize, className, ...props }: ScreenPlaceholderProps): React__default.JSX.Element;
585
585
 
586
586
  interface ScreenPreviewProps {
587
587
  screen: Component;
@@ -594,7 +594,7 @@ interface ScreenPreviewProps {
594
594
  withSize?: boolean;
595
595
  hidden?: boolean;
596
596
  }
597
- declare function ScreenPreview({ screen, screenState, width, height, screenWidth, screenHeight, className, withSize, fit, hidden, ...props }: ScreenPreviewProps): react_jsx_runtime.JSX.Element;
597
+ declare function ScreenPreview({ screen, screenState, width, height, screenWidth, screenHeight, className, withSize, fit, hidden, ...props }: ScreenPreviewProps): React__default.JSX.Element;
598
598
 
599
599
  interface ScreenElementProps {
600
600
  children?: React__default.ReactNode | null;
@@ -607,14 +607,14 @@ interface ScreenElementProps {
607
607
  emptyClassName?: string | null;
608
608
  placeholderClassName?: string | null;
609
609
  }
610
- declare function ScreenElement({ children, placeholder, empty, emptyLabel, preview, isEmpty, placeholderProps, emptyClassName, placeholderClassName, }: ScreenElementProps): string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null;
610
+ declare function ScreenElement({ children, placeholder, empty, emptyLabel, preview, isEmpty, placeholderProps, emptyClassName, placeholderClassName, }: ScreenElementProps): string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | React__default.JSX.Element | null;
611
611
 
612
612
  interface ScreensProps {
613
613
  screens: StoryComponent[];
614
614
  screen?: string | null;
615
615
  className?: string | null;
616
616
  }
617
- declare function Screens({ screens, screen: screenId, className }: ScreensProps): react_jsx_runtime.JSX.Element;
617
+ declare function Screens({ screens, screen: screenId, className }: ScreensProps): React__default.JSX.Element;
618
618
 
619
619
  interface TransitionsProps {
620
620
  fullscreen?: boolean;
@@ -625,7 +625,7 @@ interface TransitionsProps {
625
625
  disabled?: boolean;
626
626
  children?: React__default.ReactNode | null;
627
627
  }
628
- declare function Transitions$1({ fullscreen, playing, delay, transitions, onComplete, disabled, children, }: TransitionsProps): string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null;
628
+ declare function Transitions$1({ fullscreen, playing, delay, transitions, onComplete, disabled, children, }: TransitionsProps): string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | React__default.JSX.Element | null;
629
629
 
630
630
  interface TransitionsStaggerProps {
631
631
  transitions?: Transitions | null;
@@ -636,21 +636,21 @@ interface TransitionsStaggerProps {
636
636
  fullscreen?: boolean;
637
637
  children?: React__default.ReactNode | null;
638
638
  }
639
- declare function TransitionsStagger({ transitions, stagger, playing, disabled, delay, fullscreen, children, }: TransitionsStaggerProps): (string | number | bigint | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element)[] | null | undefined;
639
+ declare function TransitionsStagger({ transitions, stagger, playing, disabled, delay, fullscreen, children, }: TransitionsStaggerProps): (string | number | bigint | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | React__default.JSX.Element)[] | null | undefined;
640
640
 
641
641
  interface HighlightStyleProps {
642
642
  selector?: string | null;
643
643
  highlightSelector?: string;
644
644
  style?: Record<string, string | number> | null;
645
645
  }
646
- declare function HighlightStyle({ selector, highlightSelector, style, }: HighlightStyleProps): react_jsx_runtime.JSX.Element | null;
646
+ declare function HighlightStyle({ selector, highlightSelector, style, }: HighlightStyleProps): React__default.JSX.Element | null;
647
647
 
648
648
  interface LinkStyleProps {
649
649
  selector?: string | null;
650
650
  linkSelector?: string;
651
651
  style?: Record<string, string | number> | null;
652
652
  }
653
- declare function LinkStyle({ selector, linkSelector, style }: LinkStyleProps): react_jsx_runtime.JSX.Element | null;
653
+ declare function LinkStyle({ selector, linkSelector, style }: LinkStyleProps): React__default.JSX.Element | null;
654
654
 
655
655
  export { ArrowIcon, BackButton, Breadcrumb, Button$1 as Button, Buttons, Card, ClearButton, Close, CloseIcon, CollapsablePanel, Date, Detector, Dropdown as DropdownMenu, ElementComponent as Element, Empty, FieldForm, FontFaces, Form, FormPanel, FullscreenIcon, HighlightStyle, Label$1 as Label, Link, LinkIcon, LinkStyle, Media, Menu, Meta, MuteIcon, Navbar, PaginationMenu as Pagination, Panel, PanelPortal, _default as Panels, PauseIcon, AdFrame as PlaceholderAdFrame, AdImage as PlaceholderAdImage, Audio as PlaceholderAudio, Button as PlaceholderButton, PlaceholderImage, Line as PlaceholderLine, Map as PlaceholderMap, MapPath as PlaceholderMapPath, Quote as PlaceholderQuote, ShortText as PlaceholderShortText, Subtitle as PlaceholderSubtitle, TextPlaceholder as PlaceholderText, Timeline as PlaceholderTimeline, Title as PlaceholderTitle, Video as PlaceholderVideo, Video360 as PlaceholderVideo360, VideoLoop as PlaceholderVideoLoop, PlayIcon, Screen, ScreenElement, ScreenPlaceholder, ScreenPreview, ScreenSizer, Screens, Slideshow, Spinner, TabsMenu as Tabs, Transitions$1 as Transitions, TransitionsStagger, UnmuteIcon, UploadModal };
656
656
  export type { ButtonProps };
package/es/components.js CHANGED
@@ -11,19 +11,19 @@ import { faAngleDown } from '@fortawesome/free-solid-svg-icons/faAngleDown';
11
11
  import { faAngleUp } from '@fortawesome/free-solid-svg-icons/faAngleUp';
12
12
  import React, { useState, useEffect, useCallback, useRef, createElement, Suspense, useMemo, cloneElement } from 'react';
13
13
  import dayjs from 'dayjs';
14
- import throttle from 'lodash/throttle';
14
+ import throttle from 'lodash-es/throttle';
15
15
  import { useForm, useDocumentEvent, useIntersectionObserver, useDimensionObserver, useDevicePixelRatio } from '@micromag/core/hooks';
16
- import get from 'lodash/get';
16
+ import get from 'lodash-es/get';
17
17
  import { useFieldsManager, useFieldComponent, FieldContextProvider, useFieldContext, withPanels, usePanels, ScreenSizeProvider, useScreenComponent, ScreenProvider, useScreenRenderContext, useScreenSize } from '@micromag/core/contexts';
18
- import isObject from 'lodash/isObject';
19
- import isArray from 'lodash/isArray';
20
- import isString from 'lodash/isString';
18
+ import isObject from 'lodash-es/isObject';
19
+ import isArray from 'lodash-es/isArray';
20
+ import isString from 'lodash-es/isString';
21
21
  import queryString from 'query-string';
22
22
  import { createPortal } from 'react-dom';
23
23
  import { faAd } from '@fortawesome/free-solid-svg-icons/faAd';
24
24
  import { faImage } from '@fortawesome/free-solid-svg-icons/faImage';
25
25
  import { faMusic } from '@fortawesome/free-solid-svg-icons/faMusic';
26
- import isNumber from 'lodash/isNumber';
26
+ import isNumber from 'lodash-es/isNumber';
27
27
  import { faMapMarkerAlt } from '@fortawesome/free-solid-svg-icons/faMapMarkerAlt';
28
28
  import { faMapMarkedAlt } from '@fortawesome/free-solid-svg-icons/faMapMarkedAlt';
29
29
  import { faVideo } from '@fortawesome/free-solid-svg-icons/faVideo';
@@ -5086,7 +5086,7 @@ function ScreenSizer(t0) {
5086
5086
  var styles$4 = {"container":"micromag-core-screens-screen-container"};
5087
5087
 
5088
5088
  function Screen(t0) {
5089
- const $ = c(20);
5089
+ const $ = c(21);
5090
5090
  const {
5091
5091
  screen,
5092
5092
  renderContext: t1,
@@ -5095,10 +5095,11 @@ function Screen(t0) {
5095
5095
  active: t4,
5096
5096
  current: t5,
5097
5097
  preload: t6,
5098
- components: t7,
5099
- component: t8,
5100
- className: t9,
5101
- mediaRef: t10
5098
+ focusable: t7,
5099
+ components: t8,
5100
+ component: t9,
5101
+ className: t10,
5102
+ mediaRef: t11
5102
5103
  } = t0;
5103
5104
  const renderContext = t1 === undefined ? null : t1;
5104
5105
  const screenState = t2 === undefined ? null : t2;
@@ -5106,38 +5107,41 @@ function Screen(t0) {
5106
5107
  const active = t4 === undefined ? true : t4;
5107
5108
  const current = t5 === undefined ? false : t5;
5108
5109
  const preload = t6 === undefined ? true : t6;
5109
- const components = t7 === undefined ? null : t7;
5110
- const component = t8 === undefined ? null : t8;
5111
- const className = t9 === undefined ? null : t9;
5112
- const mediaRef = t10 === undefined ? null : t10;
5113
- let t11;
5110
+ const focusable = t7 === undefined ? true : t7;
5111
+ const components = t8 === undefined ? null : t8;
5112
+ const component = t9 === undefined ? null : t9;
5113
+ const className = t10 === undefined ? null : t10;
5114
+ const mediaRef = t11 === undefined ? null : t11;
5115
+ let t12;
5114
5116
  if ($[0] !== screen) {
5115
- t11 = screen || {};
5117
+ t12 = screen || {};
5116
5118
  $[0] = screen;
5117
- $[1] = t11;
5119
+ $[1] = t12;
5118
5120
  } else {
5119
- t11 = $[1];
5121
+ t12 = $[1];
5120
5122
  }
5121
5123
  const {
5122
- type: t12
5123
- } = t11;
5124
- const type = t12 === undefined ? null : t12;
5125
- let t13;
5124
+ type: t13
5125
+ } = t12;
5126
+ const type = t13 === undefined ? null : t13;
5127
+ let t14;
5126
5128
  if ($[2] !== components || $[3] !== type) {
5127
- t13 = components !== null ? getComponentFromName(type, components) || null : null;
5129
+ t14 = components !== null ? getComponentFromName(type, components) || null : null;
5128
5130
  $[2] = components;
5129
5131
  $[3] = type;
5130
- $[4] = t13;
5132
+ $[4] = t14;
5131
5133
  } else {
5132
- t13 = $[4];
5134
+ t14 = $[4];
5133
5135
  }
5134
- const CustomScreenComponent = t13;
5136
+ const CustomScreenComponent = t14;
5135
5137
  const ContextScreenComponent = useScreenComponent(type);
5136
5138
  const ScreenComponent = CustomScreenComponent || ContextScreenComponent;
5137
- let t14;
5138
- if ($[5] !== ScreenComponent || $[6] !== active || $[7] !== className || $[8] !== component || $[9] !== current || $[10] !== index || $[11] !== mediaRef || $[12] !== preload || $[13] !== screen) {
5139
- t14 = ScreenComponent !== null ? /*#__PURE__*/jsx("div", {
5139
+ let t15;
5140
+ if ($[5] !== ScreenComponent || $[6] !== active || $[7] !== className || $[8] !== component || $[9] !== current || $[10] !== focusable || $[11] !== index || $[12] !== mediaRef || $[13] !== preload || $[14] !== screen) {
5141
+ t15 = ScreenComponent !== null ? /*#__PURE__*/jsx("div", {
5140
5142
  className: classNames([styles$4.container, className]),
5143
+ tabIndex: focusable ? 0 : -1,
5144
+ "aria-hidden": current || active ? "false" : "true",
5141
5145
  children: /*#__PURE__*/jsx(ScreenComponent, {
5142
5146
  ...screen,
5143
5147
  index: index,
@@ -5148,6 +5152,7 @@ function Screen(t0) {
5148
5152
  })
5149
5153
  }) : /*#__PURE__*/jsx("div", {
5150
5154
  className: className,
5155
+ tabIndex: focusable ? 0 : -1,
5151
5156
  children: component
5152
5157
  });
5153
5158
  $[5] = ScreenComponent;
@@ -5155,31 +5160,32 @@ function Screen(t0) {
5155
5160
  $[7] = className;
5156
5161
  $[8] = component;
5157
5162
  $[9] = current;
5158
- $[10] = index;
5159
- $[11] = mediaRef;
5160
- $[12] = preload;
5161
- $[13] = screen;
5162
- $[14] = t14;
5163
+ $[10] = focusable;
5164
+ $[11] = index;
5165
+ $[12] = mediaRef;
5166
+ $[13] = preload;
5167
+ $[14] = screen;
5168
+ $[15] = t15;
5163
5169
  } else {
5164
- t14 = $[14];
5170
+ t15 = $[15];
5165
5171
  }
5166
- let t15;
5167
- if ($[15] !== renderContext || $[16] !== screen || $[17] !== screenState || $[18] !== t14) {
5168
- t15 = /*#__PURE__*/jsx(ScreenProvider, {
5172
+ let t16;
5173
+ if ($[16] !== renderContext || $[17] !== screen || $[18] !== screenState || $[19] !== t15) {
5174
+ t16 = /*#__PURE__*/jsx(ScreenProvider, {
5169
5175
  data: screen,
5170
5176
  renderContext: renderContext,
5171
5177
  screenState: screenState,
5172
- children: t14
5178
+ children: t15
5173
5179
  });
5174
- $[15] = renderContext;
5175
- $[16] = screen;
5176
- $[17] = screenState;
5177
- $[18] = t14;
5180
+ $[16] = renderContext;
5181
+ $[17] = screen;
5182
+ $[18] = screenState;
5178
5183
  $[19] = t15;
5184
+ $[20] = t16;
5179
5185
  } else {
5180
- t15 = $[19];
5186
+ t16 = $[20];
5181
5187
  }
5182
- return t15;
5188
+ return t16;
5183
5189
  }
5184
5190
 
5185
5191
  var styles$3 = {"screen":"micromag-core-screens-screen-placeholder-screen"};