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.
@@ -2,6 +2,7 @@ import { ReactElement } from 'react';
2
2
  import { TextVariant } from '../typography';
3
3
  export type RadioVariant = 'primary' | 'alert';
4
4
  export interface RadioProps {
5
+ className?: string;
5
6
  disabled?: boolean;
6
7
  groupValue?: any;
7
8
  labelHtmlText?: string;
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
- import { RadioListProps, RadioWrapperComponent } from './radio-list.types';
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 { RadioWrapperComponentProps } from './radio-list.types';
3
- export declare const StyledRadioTileBox: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../box/box.types").BoxProps & import("react").RefAttributes<import("../box/box.types").BoxProps>>, import("styled-components").DefaultTheme, RadioWrapperComponentProps, never>;
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 type RadioWrapperComponent = JSXElementConstructor<PropsWithChildren<RadioWrapperComponentProps>>;
25
- export type RadioWrapperComponentProps = {
23
+ export interface RadioTileProps extends RadioProps {
26
24
  isChecked: boolean | undefined;
27
- isDisabled: boolean | undefined;
28
- };
25
+ showAsTiles: boolean | undefined;
26
+ }