@epam/uui 5.13.3-beta.3 → 5.13.3-beta.5

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.
@@ -2,11 +2,11 @@ import * as React from 'react';
2
2
  import { IEditable, IHasRawProps, Overwrite } from '@epam/uui-core';
3
3
  import { ButtonProps } from '../buttons';
4
4
  import { ControlSize } from '../types';
5
- type MultiSwitchItem<TValue> = ButtonProps & {
5
+ type MultiSwitchItem = ButtonProps & {
6
6
  /**
7
7
  * Defines the id of MultiSwitchItem.
8
8
  */
9
- id: TValue;
9
+ id: any;
10
10
  };
11
11
  interface MultiSwitchMods {
12
12
  /**
@@ -27,15 +27,10 @@ export type MultiSwitchCoreProps<TValue> = IEditable<TValue> & IHasRawProps<Reac
27
27
  /**
28
28
  * Defines an array of MultiSwitchItems.
29
29
  */
30
- items: MultiSwitchItem<TValue>[];
30
+ items: MultiSwitchItem[];
31
31
  };
32
32
  /** Represents the properties for the MultiSwitch component. */
33
33
  export type MultiSwitchProps<TValue = unknown> = MultiSwitchCoreProps<TValue> & Overwrite<MultiSwitchMods, MultiSwitchModsOverride>;
34
- export declare const MultiSwitch: React.ForwardRefExoticComponent<IEditable<unknown> & IHasRawProps<React.HTMLAttributes<HTMLDivElement>> & {
35
- /**
36
- * Defines an array of MultiSwitchItems.
37
- */
38
- items: MultiSwitchItem<unknown>[];
39
- } & Omit<MultiSwitchMods, never> & MultiSwitchModsOverride & React.RefAttributes<HTMLDivElement>>;
34
+ export declare const MultiSwitch: <TValue>(props: MultiSwitchProps<TValue>, ref: React.ForwardedRef<HTMLDivElement>) => JSX.Element;
40
35
  export {};
41
36
  //# sourceMappingURL=MultiSwitch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MultiSwitch.d.ts","sourceRoot":"","sources":["../../../components/inputs/MultiSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,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,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,UAAU,eAAe;IACrB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAChC;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,uBAAuB;CAAG;AAE3C,sEAAsE;AACtE,MAAM,MAAM,oBAAoB,CAAC,MAAM,IAAI,SAAS,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,GAAG;IAChH;;OAEG;IACH,KAAK,EAAE,eAAe,EAAE,CAAC;CAC5B,CAAC;AAEF,+DAA+D;AAC/D,MAAM,MAAM,gBAAgB,CAAC,MAAM,GAAG,OAAO,IAAI,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,eAAe,EAAE,uBAAuB,CAAC,CAAC;AAgCpI,eAAO,MAAM,WAAW,kBAA6D,iBAAiB,MAAM,CAAC,OAAO,MAAM,YAAY,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC"}
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { Overwrite } from '@epam/uui-core';
2
3
  import { RadioInputProps as uuiRadioInputProps } from '@epam/uui-components';
3
4
  type RadioInputMods = {
4
5
  /**
@@ -7,13 +8,11 @@ type RadioInputMods = {
7
8
  */
8
9
  size?: '12' | '18';
9
10
  };
11
+ export interface RadioInputModsOverride {
12
+ }
10
13
  /** Represents the properties of a RadioInput component. */
11
- export type RadioInputProps = RadioInputMods & uuiRadioInputProps;
12
- export declare const RadioInput: import("react").ComponentType<RadioInputMods & import("@epam/uui-core").IHasCX & import("@epam/uui-core").IDisableable & import("@epam/uui-core").IEditable<boolean> & import("@epam/uui-core").IHasLabel & import("@epam/uui-core").ICanBeReadonly & import("@epam/uui-core").IAnalyticableOnChange<boolean> & import("@epam/uui-core").IHasRawProps<import("react").LabelHTMLAttributes<HTMLLabelElement>> & import("@epam/uui-core").ICanFocus<HTMLInputElement> & import("@epam/uui-core").IHasTabIndex & {
13
- icon?: import("@epam/uui-core").Icon;
14
- renderLabel?(): import("react").ReactNode;
15
- id?: string;
16
- name?: string;
17
- } & import("react").RefAttributes<any>>;
14
+ export interface RadioInputProps extends uuiRadioInputProps, Overwrite<RadioInputMods, RadioInputModsOverride> {
15
+ }
16
+ export declare const RadioInput: import("react").ComponentType<RadioInputProps & import("react").RefAttributes<any>>;
18
17
  export {};
19
18
  //# sourceMappingURL=RadioInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioInput.d.ts","sourceRoot":"","sources":["../../../components/inputs/RadioInput.tsx"],"names":[],"mappings":";AACA,OAAO,EAA+B,eAAe,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAK1G,KAAK,cAAc,GAAG;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACtB,CAAC;AAEF,2DAA2D;AAC3D,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG,kBAAkB,CAAC;AAWlE,eAAO,MAAM,UAAU;;;;;uCAItB,CAAC"}
1
+ {"version":3,"file":"RadioInput.d.ts","sourceRoot":"","sources":["../../../components/inputs/RadioInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAA+B,eAAe,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAK1G,KAAK,cAAc,GAAG;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,sBAAsB;CAAG;AAE1C,2DAA2D;AAC3D,MAAM,WAAW,eAAgB,SAAQ,kBAAkB,EAAE,SAAS,CAAC,cAAc,EAAE,sBAAsB,CAAC;CAAG;AAWjH,eAAO,MAAM,UAAU,qFAItB,CAAC"}