gantri-components 2.119.0-beta.1 → 2.119.0-beta.2
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.
- package/dist/components/radio/radio.types.d.ts +1 -0
- package/dist/components/radio-list/radio-list.d.ts +1 -2
- package/dist/components/radio-list/radio-list.styles.d.ts +5 -2
- package/dist/components/radio-list/radio-list.types.d.ts +4 -6
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { RadioListProps
|
|
2
|
+
import { RadioListProps } from './radio-list.types';
|
|
3
3
|
export declare const RadioList: {
|
|
4
4
|
<Value extends string>(props: RadioListProps<Value>): React.JSX.Element;
|
|
5
5
|
defaultProps: import("./radio-list.types").RadioListDefaultProps<string | Record<any, any>>;
|
|
6
6
|
};
|
|
7
|
-
export declare const RadioTile: RadioWrapperComponent;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export declare const
|
|
2
|
+
import { RadioTileProps } from './radio-list.types';
|
|
3
|
+
export declare const StyledRadioTile: import("styled-components").StyledComponent<{
|
|
4
|
+
(props: import("../radio/radio.types").RadioProps): import("react").JSX.Element;
|
|
5
|
+
defaultProps: import("../radio/radio.types").RadioProps;
|
|
6
|
+
}, import("styled-components").DefaultTheme, RadioTileProps, never>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { JSXElementConstructor, PropsWithChildren } from 'react';
|
|
2
1
|
import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
|
|
3
2
|
import { CellProps } from '../cell/cell.types';
|
|
4
3
|
import { GridProps } from '../grid/grid.types';
|
|
@@ -11,18 +10,17 @@ export interface RadioListProps<Value extends string> extends Partial<RadioListD
|
|
|
11
10
|
};
|
|
12
11
|
items: (Value | RadioItem)[];
|
|
13
12
|
onSelected: (value: Value) => void | Promise<void>;
|
|
13
|
+
showAsTiles?: boolean;
|
|
14
14
|
value: Value;
|
|
15
15
|
}
|
|
16
16
|
export interface RadioListDefaultProps<Value extends string | Record<any, any>> {
|
|
17
|
-
Component: RadioWrapperComponent;
|
|
18
17
|
idProperty: Value extends string ? string : keyof Value;
|
|
19
18
|
labelProperty: Value extends string ? string : keyof Value;
|
|
20
19
|
}
|
|
21
20
|
export type RadioItem = {
|
|
22
21
|
disabled?: boolean;
|
|
23
22
|
} & Record<any, any>;
|
|
24
|
-
export
|
|
25
|
-
export type RadioWrapperComponentProps = {
|
|
23
|
+
export interface RadioTileProps extends RadioProps {
|
|
26
24
|
isChecked: boolean | undefined;
|
|
27
|
-
|
|
28
|
-
}
|
|
25
|
+
showAsTiles: boolean | undefined;
|
|
26
|
+
}
|