@lumx/react 4.3.2-alpha.3 → 4.3.2-alpha.30

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,6 +1,6 @@
1
1
  import React__default, { useContext, useEffect, useMemo, useRef, createContext } from 'react';
2
2
  import { jsx, Fragment } from 'react/jsx-runtime';
3
- import isEmpty from 'lodash/isEmpty';
3
+ import isEmpty from 'lodash/isEmpty.js';
4
4
  import { createPortal } from 'react-dom';
5
5
 
6
6
  const DisabledStateContext = /*#__PURE__*/React__default.createContext({
package/index.d.ts CHANGED
@@ -1,12 +1,11 @@
1
1
  import { Kind as Kind$1, HorizontalAlignment as HorizontalAlignment$1, Size as Size$1, ColorPalette as ColorPalette$1, Theme as Theme$1, Orientation as Orientation$1, Alignment as Alignment$1, AspectRatio as AspectRatio$1, ColorWithVariants as ColorWithVariants$1, ColorVariant as ColorVariant$1, Typography as Typography$1, Emphasis as Emphasis$1 } from '@lumx/core/js/constants';
2
2
  export * from '@lumx/core/js/constants';
3
3
  import * as _lumx_core_js_types from '@lumx/core/js/types';
4
- import { GenericProps, HasTheme as HasTheme$1, ValueOf as ValueOf$1, HasAriaDisabled as HasAriaDisabled$1, HasCloseMode, HasClassName as HasClassName$1, JSXElement as JSXElement$1, CommonRef as CommonRef$1, Falsy, HeadingElement as HeadingElement$1, HasRequiredLinkHref, HasAriaLabelOrLabelledBy } from '@lumx/core/js/types';
4
+ import { GenericProps, HasTheme as HasTheme$1, ValueOf as ValueOf$1, PropsToOverride, HasAriaDisabled as HasAriaDisabled$1, HasCloseMode, HasClassName as HasClassName$1, JSXElement as JSXElement$1, CommonRef as CommonRef$1, Falsy, HeadingElement as HeadingElement$1, HasRequiredLinkHref, HasAriaLabelOrLabelledBy } from '@lumx/core/js/types';
5
5
  export * from '@lumx/core/js/types';
6
6
  import * as React$1 from 'react';
7
- import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, RefObject, CSSProperties, ImgHTMLAttributes, SetStateAction, Key, ElementType, ComponentProps } from 'react';
7
+ import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, RefObject, CSSProperties, ImgHTMLAttributes, AriaAttributes as AriaAttributes$1, SetStateAction, Key, ElementType, ComponentProps } from 'react';
8
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
9
- import { Selector } from '@lumx/core/js/types/Selector';
10
9
 
11
10
  /** LumX Component Type. */
12
11
  type Comp<P, T = HTMLElement> = {
@@ -541,6 +540,47 @@ interface HasDisabled {
541
540
  disabled?: boolean;
542
541
  }
543
542
 
543
+ /**
544
+ * ARIA attributes type for components.
545
+ * All attributes are optional.
546
+ *
547
+ * This is a custom interface containing only the ARIA attributes
548
+ * actually used in the @lumx/core components, avoiding dependency on React types.
549
+ */
550
+ interface AriaAttributes {
551
+ /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
552
+ 'aria-expanded'?: boolean | 'true' | 'false';
553
+ /** Indicates the availability and type of interactive popup element that can be triggered by the element. */
554
+ 'aria-haspopup'?: boolean | 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
555
+ /** Indicates the current "pressed" state of toggle buttons. */
556
+ 'aria-pressed'?: boolean | 'false' | 'mixed' | 'true';
557
+ /** Defines a string value that labels the current element. */
558
+ 'aria-label'?: string;
559
+ /** Identifies the element (or elements) that labels the current element. */
560
+ 'aria-labelledby'?: string;
561
+ /** Identifies the element (or elements) that describes the object. */
562
+ 'aria-describedby'?: string;
563
+ /** Indicates whether the element is exposed to an accessibility API. */
564
+ 'aria-hidden'?: boolean | 'true' | 'false';
565
+ /** Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. */
566
+ 'aria-disabled'?: boolean | 'true' | 'false';
567
+ /** Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. */
568
+ 'aria-checked'?: boolean | 'false' | 'mixed' | 'true';
569
+ /** Indicates whether items in a table or grid are sorted in ascending or descending order. */
570
+ 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other';
571
+ }
572
+
573
+ type FunctionSelector<TObject, TValue> = (o: TObject) => TValue;
574
+ type FieldSelector<TObject, TValue> = keyof {
575
+ [TKey in keyof TObject as TObject[TKey] extends TValue ? TKey : never]: TObject[TKey];
576
+ };
577
+ /**
578
+ * Value selector on an object
579
+ * - either via an object key
580
+ * - or a selector function
581
+ */
582
+ type Selector<TObject, TValue = string> = FieldSelector<TObject, TValue> | FunctionSelector<TObject, TValue>;
583
+
544
584
  /**
545
585
  * Defines the props of the component.
546
586
  */
@@ -553,10 +593,19 @@ interface BadgeProps$1 extends HasClassName {
553
593
  ref?: CommonRef;
554
594
  }
555
595
 
596
+ /**
597
+ * Props interface for components wrapped with ReactToJSX.
598
+ * It omits JSX-specific props like `children`
599
+ *
600
+ * @template Props - The base props type
601
+ * @template OmitProps - Additional props to omit beyond the defaults (children, className, ref)
602
+ */
603
+ type ReactToJSX<Props, OmitProps extends keyof Props = never> = Omit<Props, PropsToOverride | OmitProps>;
604
+
556
605
  /**
557
606
  * Defines the props of the component.
558
607
  */
559
- interface BadgeProps extends Omit<BadgeProps$1, 'children'>, GenericProps {
608
+ interface BadgeProps extends ReactToJSX<BadgeProps$1>, GenericProps {
560
609
  /** Badge content. */
561
610
  children?: ReactNode;
562
611
  }
@@ -578,7 +627,7 @@ interface BadgeWrapperProps$1 extends HasClassName {
578
627
  ref?: CommonRef;
579
628
  }
580
629
 
581
- interface BadgeWrapperProps extends GenericProps, Omit<BadgeWrapperProps$1, 'children' | 'badge'> {
630
+ interface BadgeWrapperProps extends GenericProps, ReactToJSX<BadgeWrapperProps$1, 'children' | 'badge'> {
582
631
  /** Badge element to display */
583
632
  badge: ReactElement;
584
633
  /** Content to wrap with badge */
@@ -664,7 +713,9 @@ declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
664
713
  */
665
714
  declare const DEFAULT_PROPS: Partial<ButtonProps$1>;
666
715
 
667
- interface ButtonProps extends GenericProps, ButtonProps$1 {
716
+ interface ButtonProps extends GenericProps, ReactToJSX<ButtonProps$1> {
717
+ /** callback for clicking on the button */
718
+ onClick?: (event: React.MouseEvent) => void;
668
719
  }
669
720
  /**
670
721
  * Button component.
@@ -673,7 +724,7 @@ interface ButtonProps extends GenericProps, ButtonProps$1 {
673
724
  * @param ref Component ref.
674
725
  * @return React element.
675
726
  */
676
- declare const Button: Comp<ButtonProps, HTMLAnchorElement | HTMLButtonElement>;
727
+ declare const Button: Comp<ButtonProps, HTMLButtonElement | HTMLAnchorElement>;
677
728
 
678
729
  interface IconButtonProps$1 extends BaseButtonProps {
679
730
  /**
@@ -695,7 +746,7 @@ interface IconButtonProps$1 extends BaseButtonProps {
695
746
  title?: string;
696
747
  }
697
748
 
698
- interface IconButtonProps extends GenericProps, Omit<IconButtonProps$1, 'title' | 'children'> {
749
+ interface IconButtonProps extends GenericProps, ReactToJSX<IconButtonProps$1, 'title' | 'children'> {
699
750
  /**
700
751
  * Props to pass to the tooltip.
701
752
  * If undefined or if tooltipProps.label is undefined, the label prop will be used as tooltip label.
@@ -703,6 +754,8 @@ interface IconButtonProps extends GenericProps, Omit<IconButtonProps$1, 'title'
703
754
  tooltipProps?: Partial<TooltipProps>;
704
755
  /** Whether the tooltip should be hidden or not. */
705
756
  hideTooltip?: boolean;
757
+ /** callback for clicking on the button */
758
+ onClick?: (event: React.MouseEvent) => void;
706
759
  }
707
760
  /**
708
761
  * IconButton component.
@@ -725,7 +778,7 @@ interface ButtonGroupProps$1 extends HasClassName {
725
778
  ref?: CommonRef;
726
779
  }
727
780
 
728
- interface ButtonGroupProps extends GenericProps, ButtonGroupProps$1 {
781
+ interface ButtonGroupProps extends GenericProps, ReactToJSX<ButtonGroupProps$1> {
729
782
  }
730
783
  /**
731
784
  * ButtonGroup component.
@@ -765,7 +818,9 @@ interface CheckboxProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDi
765
818
  /**
766
819
  * Defines the props of the component.
767
820
  */
768
- interface CheckboxProps extends GenericProps, Omit<CheckboxProps$1, 'inputId'> {
821
+ interface CheckboxProps extends GenericProps, ReactToJSX<CheckboxProps$1, 'inputId'> {
822
+ /** On change callback. */
823
+ onChange?(isChecked: boolean, value?: string, name?: string, event?: React__default.ChangeEvent): void;
769
824
  }
770
825
  /**
771
826
  * Checkbox component.
@@ -1108,7 +1163,7 @@ interface DividerProps$1 extends HasTheme, HasClassName {
1108
1163
  /**
1109
1164
  * Defines the props of the component.
1110
1165
  */
1111
- interface DividerProps extends GenericProps, DividerProps$1 {
1166
+ interface DividerProps extends GenericProps, ReactToJSX<DividerProps$1> {
1112
1167
  }
1113
1168
  /**
1114
1169
  * Divider component.
@@ -1413,7 +1468,7 @@ interface FlagProps$1 extends HasClassName, HasTheme {
1413
1468
  Text: (props: TextProps$1) => any;
1414
1469
  }
1415
1470
 
1416
- interface FlagProps extends GenericProps, Omit<FlagProps$1, 'children' | 'Text'> {
1471
+ interface FlagProps extends GenericProps, ReactToJSX<FlagProps$1, 'children' | 'Text'> {
1417
1472
  /** Text label of the flag. */
1418
1473
  label: React.ReactNode;
1419
1474
  }
@@ -1459,7 +1514,7 @@ interface FlexBoxProps$1 extends HasClassName {
1459
1514
  /**
1460
1515
  * Defines the props of the component.
1461
1516
  */
1462
- interface FlexBoxProps extends GenericProps, FlexBoxProps$1 {
1517
+ interface FlexBoxProps extends GenericProps, ReactToJSX<FlexBoxProps$1> {
1463
1518
  /** Customize the root element. */
1464
1519
  as?: React__default.ElementType;
1465
1520
  }
@@ -1488,7 +1543,7 @@ declare const GenericBlockGapSize: Pick<{
1488
1543
  readonly medium: "medium";
1489
1544
  readonly big: "big";
1490
1545
  readonly huge: "huge";
1491
- }, "tiny" | "regular" | "medium" | "big" | "huge">;
1546
+ }, "medium" | "tiny" | "regular" | "big" | "huge">;
1492
1547
  type GenericBlockGapSize = ValueOf$1<typeof GenericBlockGapSize>;
1493
1548
 
1494
1549
  interface GenericBlockProps extends FlexBoxProps {
@@ -1658,22 +1713,35 @@ interface GridItemProps extends GenericProps {
1658
1713
  */
1659
1714
  declare const GridItem: Comp<GridItemProps, HTMLDivElement>;
1660
1715
 
1661
- type GridColumnGapSize = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
1716
+ type GridColumnGapSize = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
1662
1717
  /**
1663
1718
  * Defines the props of the component.
1664
1719
  */
1665
- interface GridColumnProps extends GenericProps {
1720
+ interface GridColumnProps$1 extends HasClassName {
1666
1721
  /** Customize the root element. */
1667
- as?: React.ElementType;
1722
+ as?: any;
1668
1723
  /** Children elements. */
1669
- children?: ReactNode;
1724
+ children?: JSXElement;
1670
1725
  /** Space between columns and rows. */
1671
1726
  gap?: GridColumnGapSize;
1672
1727
  /** Ideal number of columns. */
1673
1728
  maxColumns?: number;
1674
1729
  /** Minimum width for each item, reduce the number of column if there is not enough space. */
1675
1730
  itemMinWidth?: number;
1731
+ /** Custom styles. */
1732
+ style?: any;
1733
+ /** reference to the root element */
1734
+ ref?: CommonRef;
1735
+ }
1736
+
1737
+ /**
1738
+ * Defines the props of the component.
1739
+ */
1740
+ interface GridColumnProps extends GenericProps, ReactToJSX<GridColumnProps$1> {
1741
+ /** Customize the root element. */
1742
+ as?: React.ElementType;
1676
1743
  }
1744
+
1677
1745
  /**
1678
1746
  * The GridColumn is a layout component that can display children in a grid
1679
1747
  * with custom display properties. It also comes with a responsive design,
@@ -1713,7 +1781,7 @@ interface IconProps$1 extends HasClassName, HasTheme {
1713
1781
  ref?: CommonRef;
1714
1782
  }
1715
1783
 
1716
- interface IconProps extends Omit<IconProps$1, 'children'>, GenericProps {
1784
+ interface IconProps extends ReactToJSX<IconProps$1>, GenericProps {
1717
1785
  }
1718
1786
  /**
1719
1787
  * Icon component.
@@ -1854,11 +1922,15 @@ type ThumbnailObjectFit = ValueOf$1<typeof ThumbnailObjectFit>;
1854
1922
  /**
1855
1923
  * Defines the props of the component.
1856
1924
  */
1857
- interface ThumbnailProps extends GenericProps, Omit<ThumbnailProps$1, 'loadingState' | 'isAnyDisabled' | 'focusPointStyle' | 'disabledStateProps' | 'badge'> {
1925
+ interface ThumbnailProps extends GenericProps, ReactToJSX<ThumbnailProps$1, 'loadingState' | 'isAnyDisabled' | 'focusPointStyle' | 'disabledStateProps' | 'badge'> {
1858
1926
  /** Apply relative vertical and horizontal shift (from -1 to 1) on the image position inside the thumbnail. */
1859
1927
  focusPoint?: FocusPoint;
1860
1928
  /** Badge. */
1861
1929
  badge?: ReactElement | Falsy;
1930
+ /** On click callback. */
1931
+ onClick?: React__default.MouseEventHandler<HTMLDivElement>;
1932
+ /** On key press callback. */
1933
+ onKeyPress?: React__default.KeyboardEventHandler<HTMLDivElement>;
1862
1934
  }
1863
1935
  /**
1864
1936
  * Thumbnail component.
@@ -2039,7 +2111,7 @@ interface InputHelperProps$1 extends HasClassName, HasTheme {
2039
2111
  id?: string;
2040
2112
  }
2041
2113
 
2042
- interface InputHelperProps extends InputHelperProps$1, GenericProps {
2114
+ interface InputHelperProps extends ReactToJSX<InputHelperProps$1>, GenericProps {
2043
2115
  }
2044
2116
  /**
2045
2117
  * InputHelper component.
@@ -2063,7 +2135,7 @@ interface InputLabelProps$1 extends HasClassName, HasTheme {
2063
2135
  ref?: CommonRef;
2064
2136
  }
2065
2137
 
2066
- interface InputLabelProps extends InputLabelProps$1, GenericProps {
2138
+ interface InputLabelProps extends ReactToJSX<InputLabelProps$1>, GenericProps {
2067
2139
  }
2068
2140
  /**
2069
2141
  * InputLabel component.
@@ -2077,7 +2149,7 @@ declare const InputLabel: Comp<InputLabelProps, HTMLLabelElement>;
2077
2149
  /**
2078
2150
  * Defines the props of the component.
2079
2151
  */
2080
- interface LightboxProps extends GenericProps, HasTheme$1, Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
2152
+ interface LightboxProps extends GenericProps, HasTheme$1, Pick<AriaAttributes$1, 'aria-label' | 'aria-labelledby'> {
2081
2153
  /** Props to pass to the close button (minus those already set by the Lightbox props). */
2082
2154
  closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
2083
2155
  /** Whether the component is open or not. */
@@ -2142,7 +2214,7 @@ type HTMLAnchorProps = React__default.DetailedHTMLProps<React__default.AnchorHTM
2142
2214
  /**
2143
2215
  * Defines the props of the component.
2144
2216
  */
2145
- interface LinkProps extends GenericProps, Omit<LinkProps$1, 'label'> {
2217
+ interface LinkProps extends GenericProps, ReactToJSX<LinkProps$1, 'label'> {
2146
2218
  /** Link href. */
2147
2219
  href?: HTMLAnchorProps['href'];
2148
2220
  /** Custom react component for the link (can be used to inject react router Link). */
@@ -2151,8 +2223,8 @@ interface LinkProps extends GenericProps, Omit<LinkProps$1, 'label'> {
2151
2223
  target?: HTMLAnchorProps['target'];
2152
2224
  /** Typography variant. */
2153
2225
  typography?: Typography$1;
2154
- /** Children */
2155
- children?: React__default.ReactNode;
2226
+ /** Click handler. */
2227
+ onClick?: (event: React__default.MouseEvent) => void;
2156
2228
  }
2157
2229
  /**
2158
2230
  * Link component.
@@ -2161,7 +2233,7 @@ interface LinkProps extends GenericProps, Omit<LinkProps$1, 'label'> {
2161
2233
  * @param ref Component ref.
2162
2234
  * @return React element.
2163
2235
  */
2164
- declare const Link: Comp<LinkProps, HTMLAnchorElement | HTMLButtonElement>;
2236
+ declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
2165
2237
 
2166
2238
  /**
2167
2239
  * Defines the props of the component.
@@ -2334,9 +2406,7 @@ interface MessageProps$1 extends HasClassName {
2334
2406
  };
2335
2407
  }
2336
2408
 
2337
- interface MessageProps extends GenericProps, Omit<MessageProps$1, 'children' | 'ref'> {
2338
- /** Content. */
2339
- children?: React.ReactNode;
2409
+ interface MessageProps extends GenericProps, ReactToJSX<MessageProps$1> {
2340
2410
  }
2341
2411
  /**
2342
2412
  * Message component.
@@ -2674,7 +2744,9 @@ interface RadioButtonProps$1 extends HasTheme, HasClassName, HasAriaDisabled, Ha
2674
2744
  /**
2675
2745
  * Defines the props of the component.
2676
2746
  */
2677
- interface RadioButtonProps extends GenericProps, Omit<RadioButtonProps$1, 'inputId'> {
2747
+ interface RadioButtonProps extends GenericProps, ReactToJSX<RadioButtonProps$1, 'inputId'> {
2748
+ /** On change callback. */
2749
+ onChange?(value?: string, name?: string, event?: React.ChangeEvent): void;
2678
2750
  }
2679
2751
  /**
2680
2752
  * RadioButton component.
@@ -2688,9 +2760,17 @@ declare const RadioButton: Comp<RadioButtonProps, HTMLDivElement>;
2688
2760
  /**
2689
2761
  * Defines the props of the component.
2690
2762
  */
2691
- interface RadioGroupProps extends GenericProps {
2763
+ interface RadioGroupProps$1 extends HasClassName {
2692
2764
  /** RadioButton elements */
2693
- children: ReactNode;
2765
+ children?: JSXElement;
2766
+ /** reference to the root element */
2767
+ ref?: CommonRef;
2768
+ }
2769
+
2770
+ /**
2771
+ * Defines the props of the component.
2772
+ */
2773
+ interface RadioGroupProps extends GenericProps, ReactToJSX<RadioGroupProps$1> {
2694
2774
  }
2695
2775
  /**
2696
2776
  * RadioGroup component.
@@ -2896,7 +2976,7 @@ interface SkeletonTypographyProps$1 extends HasTheme, HasClassName {
2896
2976
  /**
2897
2977
  * Defines the props of the component.
2898
2978
  */
2899
- interface SkeletonCircleProps extends GenericProps, SkeletonCircleProps$1 {
2979
+ interface SkeletonCircleProps extends GenericProps, ReactToJSX<SkeletonCircleProps$1> {
2900
2980
  }
2901
2981
  /**
2902
2982
  * SkeletonCircle component.
@@ -2910,7 +2990,7 @@ declare const SkeletonCircle: Comp<SkeletonCircleProps, HTMLDivElement>;
2910
2990
  /**
2911
2991
  * Defines the props of the component.
2912
2992
  */
2913
- interface SkeletonRectangleProps extends GenericProps, SkeletonRectangleProps$1 {
2993
+ interface SkeletonRectangleProps extends GenericProps, ReactToJSX<SkeletonRectangleProps$1> {
2914
2994
  }
2915
2995
  /**
2916
2996
  * SkeletonRectangle component.
@@ -2924,7 +3004,7 @@ declare const SkeletonRectangle: Comp<SkeletonRectangleProps, HTMLDivElement>;
2924
3004
  /**
2925
3005
  * Defines the props of the component.
2926
3006
  */
2927
- interface SkeletonTypographyProps extends GenericProps, SkeletonTypographyProps$1 {
3007
+ interface SkeletonTypographyProps extends GenericProps, ReactToJSX<SkeletonTypographyProps$1> {
2928
3008
  }
2929
3009
  /**
2930
3010
  * SkeletonTypography component.
@@ -3219,9 +3299,9 @@ interface SwitchProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisa
3219
3299
  /**
3220
3300
  * Defines the props of the component.
3221
3301
  */
3222
- interface SwitchProps extends GenericProps, Omit<SwitchProps$1, 'inputId' | 'label'> {
3223
- /** Children (label content). */
3224
- children?: React__default.ReactNode;
3302
+ interface SwitchProps extends GenericProps, ReactToJSX<SwitchProps$1, 'inputId' | 'label'> {
3303
+ /** On change callback. */
3304
+ onChange?(isChecked: boolean, value?: string, name?: string, event?: React__default.ChangeEvent): void;
3225
3305
  }
3226
3306
  /**
3227
3307
  * Switch component.
@@ -3503,7 +3583,7 @@ interface TabPanelProps extends GenericProps {
3503
3583
  */
3504
3584
  declare const TabPanel: Comp<TabPanelProps, HTMLDivElement>;
3505
3585
 
3506
- interface TextProps extends TextProps$1, GenericProps {
3586
+ interface TextProps extends ReactToJSX<TextProps$1>, GenericProps {
3507
3587
  }
3508
3588
  /**
3509
3589
  * Text component.
@@ -3616,7 +3696,21 @@ declare const useFocusPointStyle: ({ image, aspectRatio, focusPoint, imgProps: {
3616
3696
  /**
3617
3697
  * Defines the props of the component.
3618
3698
  */
3619
- interface ToolbarProps extends GenericProps {
3699
+ interface ToolbarProps$1 extends HasClassName {
3700
+ /** After content (placed after the label). */
3701
+ after?: JSXElement;
3702
+ /** Before content (placed before the label). */
3703
+ before?: JSXElement;
3704
+ /** Label content. */
3705
+ label?: JSXElement;
3706
+ /** Component ref. */
3707
+ ref?: CommonRef;
3708
+ }
3709
+
3710
+ /**
3711
+ * Defines the props of the component.
3712
+ */
3713
+ interface ToolbarProps extends GenericProps, ReactToJSX<ToolbarProps$1> {
3620
3714
  /** After content (placed after the label). */
3621
3715
  after?: ReactNode;
3622
3716
  /** Before content (placed before the label). */