@lumx/react 4.3.0 → 4.3.1-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 (4) hide show
  1. package/index.d.ts +44 -16
  2. package/index.js +390 -241
  3. package/index.js.map +1 -1
  4. package/package.json +4 -3
package/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import * as _lumx_core_js_types from '@lumx/core/js/types';
4
4
  import { GenericProps, HasTheme as HasTheme$1, ValueOf, HasAriaDisabled as HasAriaDisabled$1, HasCloseMode, Falsy, HasClassName as HasClassName$1, 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, InputHTMLAttributes, ComponentProps } from 'react';
7
+ import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, RefObject, CSSProperties, ImgHTMLAttributes, SetStateAction, Key, ElementType, ComponentProps } from 'react';
8
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
9
9
  import { Selector } from '@lumx/core/js/types/Selector';
10
10
 
@@ -2528,27 +2528,38 @@ declare const ProgressTrackerStepPanel: Comp<ProgressTrackerStepPanelProps, HTML
2528
2528
  /**
2529
2529
  * Defines the props of the component.
2530
2530
  */
2531
- interface RadioButtonProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
2531
+ interface RadioButtonProps$1 extends HasTheme, HasClassName, HasAriaDisabled {
2532
2532
  /** Helper text. */
2533
2533
  helper?: string;
2534
2534
  /** Native input id property. */
2535
2535
  id?: string;
2536
- /** Native input ref. */
2537
- inputRef?: React.Ref<HTMLInputElement>;
2538
2536
  /** Whether it is checked or not. */
2539
2537
  isChecked?: boolean;
2538
+ checked?: boolean;
2540
2539
  /** Whether the component is disabled or not. */
2541
2540
  isDisabled?: boolean;
2542
2541
  /** Label content. */
2543
- label?: ReactNode;
2542
+ label?: JSXElement;
2544
2543
  /** Native input name property. */
2545
2544
  name?: string;
2546
2545
  /** Native input value property. */
2547
2546
  value?: string;
2548
- /** On change callback. */
2549
- onChange?(value?: string, name?: string, event?: SyntheticEvent): void;
2550
2547
  /** optional props for input */
2551
- inputProps?: InputHTMLAttributes<HTMLInputElement>;
2548
+ inputProps?: Record<string, any>;
2549
+ /** Native input ref. */
2550
+ inputRef?: CommonRef;
2551
+ /** Native input id. */
2552
+ inputId: string;
2553
+ /** On change callback. */
2554
+ onChange?(value?: string, name?: string, event?: any): void;
2555
+ /** reference to the root element */
2556
+ ref?: CommonRef;
2557
+ }
2558
+
2559
+ /**
2560
+ * Defines the props of the component.
2561
+ */
2562
+ interface RadioButtonProps extends GenericProps, Omit<RadioButtonProps$1, 'inputId'> {
2552
2563
  }
2553
2564
  /**
2554
2565
  * RadioButton component.
@@ -3039,25 +3050,42 @@ declare const Slides: Comp<SlidesProps, HTMLDivElement>;
3039
3050
  /**
3040
3051
  * Defines the props of the component.
3041
3052
  */
3042
- interface SwitchProps extends GenericProps, HasTheme$1, HasAriaDisabled$1 {
3053
+ interface SwitchProps$1 extends HasTheme, HasClassName, HasAriaDisabled {
3043
3054
  /** Helper text. */
3044
3055
  helper?: string;
3056
+ /** Native input id property. */
3057
+ id?: string;
3045
3058
  /** Whether it is checked or not. */
3046
3059
  isChecked?: boolean;
3060
+ checked?: boolean;
3047
3061
  /** Whether the component is disabled or not. */
3048
3062
  isDisabled?: boolean;
3063
+ /** Label text. */
3064
+ label?: JSXElement;
3049
3065
  /** Native input name property. */
3050
3066
  name?: string;
3051
- /** Position of the switch relative to the label. */
3052
- position?: Extract<Alignment$1, 'right' | 'left'>;
3053
3067
  /** Native input value property. */
3054
3068
  value?: string;
3055
- /** On change callback. */
3056
- onChange?(isChecked: boolean, value?: string, name?: string, event?: SyntheticEvent): void;
3057
3069
  /** optional props for input */
3058
- inputProps?: InputHTMLAttributes<HTMLInputElement>;
3059
- /** Children */
3060
- children?: React.ReactNode;
3070
+ inputProps?: Record<string, any>;
3071
+ /** Native input ref. */
3072
+ inputRef?: CommonRef;
3073
+ /** Native input id. */
3074
+ inputId: string;
3075
+ /** On change callback. */
3076
+ onChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
3077
+ /** Position of the switch relative to the label. */
3078
+ position?: 'left' | 'right';
3079
+ /** reference to the root element */
3080
+ ref?: CommonRef;
3081
+ }
3082
+
3083
+ /**
3084
+ * Defines the props of the component.
3085
+ */
3086
+ interface SwitchProps extends GenericProps, Omit<SwitchProps$1, 'inputId' | 'label'> {
3087
+ /** Children (label content). */
3088
+ children?: React__default.ReactNode;
3061
3089
  }
3062
3090
  /**
3063
3091
  * Switch component.