@zealicsolutions/web-ui 0.1.91 → 0.1.93
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/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/HorizontalButtons/HorizontalButtons.d.ts +12 -0
- package/dist/cjs/src/atoms/HorizontalButtons/HorizontalButtons.stories.d.ts +9 -0
- package/dist/cjs/src/atoms/index.d.ts +1 -0
- package/dist/cjs/src/molecules/Drawer/styles.d.ts +4 -0
- package/dist/cjs/src/molecules/HorizontalButtonsField/HorizontalButtonsField.d.ts +13 -0
- package/dist/cjs/src/molecules/HorizontalButtonsField/HorizontalButtonsField.stories.d.ts +16 -0
- package/dist/cjs/src/molecules/SettingsSelectionField/SettingsSelectionField.d.ts +10 -0
- package/dist/cjs/src/molecules/SettingsSelectionField/SettingsSelectionField.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/index.d.ts +1 -0
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/HorizontalButtons/HorizontalButtons.d.ts +12 -0
- package/dist/esm/src/atoms/HorizontalButtons/HorizontalButtons.stories.d.ts +9 -0
- package/dist/esm/src/atoms/index.d.ts +1 -0
- package/dist/esm/src/molecules/Drawer/styles.d.ts +4 -0
- package/dist/esm/src/molecules/HorizontalButtonsField/HorizontalButtonsField.d.ts +13 -0
- package/dist/esm/src/molecules/HorizontalButtonsField/HorizontalButtonsField.stories.d.ts +16 -0
- package/dist/esm/src/molecules/SettingsSelectionField/SettingsSelectionField.d.ts +10 -0
- package/dist/esm/src/molecules/SettingsSelectionField/SettingsSelectionField.stories.d.ts +9 -0
- package/dist/esm/src/molecules/index.d.ts +1 -0
- package/dist/index.d.ts +26 -2
- package/package.json +1 -1
@@ -0,0 +1,12 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare type HorizontalButtonsProps = {
|
3
|
+
selectedButtonId: string;
|
4
|
+
buttonOptions: {
|
5
|
+
value: string;
|
6
|
+
id: string;
|
7
|
+
}[];
|
8
|
+
onClick: (value: string) => void;
|
9
|
+
disabled?: boolean;
|
10
|
+
error?: boolean;
|
11
|
+
};
|
12
|
+
export declare const HorizontalButtons: ({ onClick, disabled, buttonOptions, selectedButtonId, error, }: HorizontalButtonsProps) => JSX.Element;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { HorizontalButtons as HorizontalButtonsComponent } from './HorizontalButtons';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ onClick, disabled, buttonOptions, selectedButtonId, error, }: import("./HorizontalButtons").HorizontalButtonsProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const HorizontalButtons: ComponentStory<typeof HorizontalButtonsComponent>;
|
@@ -13,6 +13,7 @@ export * from './ValidationTag/ValidationTag';
|
|
13
13
|
export * from './Video/Video';
|
14
14
|
export * from './Tooltip/Tooltip';
|
15
15
|
export * from './Toast/toast';
|
16
|
+
export * from './HorizontalButtons/HorizontalButtons';
|
16
17
|
export * from './Avatar/Avatar';
|
17
18
|
export * from './Paddings/Paddings';
|
18
19
|
export * from './Divider/Divider';
|
@@ -5,11 +5,15 @@ export declare type Anchor = 'top' | 'left' | 'bottom' | 'right';
|
|
5
5
|
export declare type DrawerProps = DrawerComponentProps & {
|
6
6
|
anchor: Anchor;
|
7
7
|
padding?: SizesTypes | number;
|
8
|
+
height?: number | string;
|
9
|
+
width?: number | string;
|
8
10
|
closeIconColor?: ThemeColors | string;
|
9
11
|
};
|
10
12
|
export declare const BaseDrawer: import("styled-components").StyledComponent<typeof DrawerComponent, import("styled-components").DefaultTheme, DrawerComponentProps & {
|
11
13
|
anchor: Anchor;
|
12
14
|
padding?: number | SizesTypes | undefined;
|
15
|
+
height?: string | number | undefined;
|
16
|
+
width?: string | number | undefined;
|
13
17
|
closeIconColor?: string | undefined;
|
14
18
|
}, never>;
|
15
19
|
export declare const IconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { HorizontalButtonsProps } from 'atoms';
|
3
|
+
import { Control } from 'react-hook-form/dist/types';
|
4
|
+
declare type ToggleFieldProps = {
|
5
|
+
name: string;
|
6
|
+
title: string;
|
7
|
+
control?: Control<any>;
|
8
|
+
description?: string;
|
9
|
+
horizontalButtonsProps: HorizontalButtonsProps;
|
10
|
+
defaultValue?: string;
|
11
|
+
};
|
12
|
+
export declare const HorizontalButtonsField: ({ name, title, control, description, horizontalButtonsProps, }: ToggleFieldProps) => JSX.Element;
|
13
|
+
export {};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { HorizontalButtonsField as HorizontalButtonsFieldComponent } from './HorizontalButtonsField';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ name, title, control, description, horizontalButtonsProps, }: {
|
7
|
+
name: string;
|
8
|
+
title: string;
|
9
|
+
control?: import("react-hook-form").Control<any, any> | undefined;
|
10
|
+
description?: string | undefined;
|
11
|
+
horizontalButtonsProps: import("../..").HorizontalButtonsProps;
|
12
|
+
defaultValue?: string | undefined;
|
13
|
+
}) => JSX.Element;
|
14
|
+
};
|
15
|
+
export default _default;
|
16
|
+
export declare const HorizontalButtonsField: ComponentStory<typeof HorizontalButtonsFieldComponent>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare type SettingsSelectionFieldProps = {
|
3
|
+
options: {
|
4
|
+
title: string;
|
5
|
+
id: string;
|
6
|
+
}[];
|
7
|
+
onChange?: (id: string) => void;
|
8
|
+
fieldTitle: string;
|
9
|
+
};
|
10
|
+
export declare const SettingsSelectionField: ({ options, onChange, fieldTitle, }: SettingsSelectionFieldProps) => JSX.Element;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { SettingsSelectionField as SettingsSelectionFieldComponent } from './SettingsSelectionField';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ options, onChange, fieldTitle, }: import("./SettingsSelectionField").SettingsSelectionFieldProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const SettingsSelectionField: ComponentStory<typeof SettingsSelectionFieldComponent>;
|