demio-ui 1.0.9 → 1.0.13
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/.DS_Store +0 -0
- package/dist/cjs/index.css +1 -1
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/types/src/components/Alert/Alert.d.ts +13 -0
- package/dist/cjs/types/src/components/Alert/index.d.ts +1 -0
- package/dist/cjs/types/src/components/Button/Button.d.ts +2 -2
- package/dist/cjs/types/src/components/FormGroup/FormGroup.d.ts +2 -1
- package/dist/cjs/types/src/components/Select/Select.d.ts +1 -0
- package/dist/cjs/types/src/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/cjs/types/src/components/index.d.ts +1 -0
- package/dist/cjs/types/src/icons/index.d.ts +5 -1
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/types/src/components/Alert/Alert.d.ts +13 -0
- package/dist/esm/types/src/components/Alert/index.d.ts +1 -0
- package/dist/esm/types/src/components/Button/Button.d.ts +2 -2
- package/dist/esm/types/src/components/FormGroup/FormGroup.d.ts +2 -1
- package/dist/esm/types/src/components/Select/Select.d.ts +1 -0
- package/dist/esm/types/src/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/esm/types/src/components/index.d.ts +1 -0
- package/dist/esm/types/src/icons/index.d.ts +5 -1
- package/dist/types.d.ts +235 -106
- package/package.json +2 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { MouseEventHandler } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
onOpenChange: (open: boolean) => void;
|
|
4
|
+
open: boolean;
|
|
5
|
+
actionText?: string;
|
|
6
|
+
onActionClick: MouseEventHandler<HTMLButtonElement>;
|
|
7
|
+
cancelText?: string;
|
|
8
|
+
onCancelClick: MouseEventHandler<HTMLButtonElement>;
|
|
9
|
+
title?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
};
|
|
12
|
+
declare function Alert({ onOpenChange, open, actionText, onActionClick, cancelText, onCancelClick, title, description, }: Props): React.JSX.Element;
|
|
13
|
+
export default Alert;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Alert';
|
|
@@ -3,7 +3,7 @@ type Props = {
|
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
children?: string;
|
|
5
5
|
size?: 'small' | 'medium' | 'large';
|
|
6
|
-
variant?: 'primary' | 'secondary';
|
|
6
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'danger';
|
|
7
7
|
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
8
8
|
type?: 'button' | 'submit' | 'reset';
|
|
9
9
|
className?: string;
|
|
@@ -14,5 +14,5 @@ type Props = {
|
|
|
14
14
|
/**
|
|
15
15
|
* Button component documentation.
|
|
16
16
|
**/
|
|
17
|
-
declare
|
|
17
|
+
declare const Button: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLButtonElement>>;
|
|
18
18
|
export default Button;
|
|
@@ -3,6 +3,7 @@ type Props = {
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
position?: 'horizontal' | 'vertical';
|
|
5
5
|
justify?: 'between' | 'start';
|
|
6
|
+
alignItems?: 'start' | 'stretch';
|
|
6
7
|
};
|
|
7
|
-
declare function FormGroup({ children, position, justify }: Props): React.JSX.Element;
|
|
8
|
+
declare function FormGroup({ children, position, justify, alignItems, }: Props): React.JSX.Element;
|
|
8
9
|
export default FormGroup;
|
|
@@ -9,6 +9,7 @@ type SelectProps = {
|
|
|
9
9
|
onValueChange?: (value: string) => void;
|
|
10
10
|
id: string;
|
|
11
11
|
icon?: React.ReactNode | string;
|
|
12
|
+
placeholder?: string;
|
|
12
13
|
};
|
|
13
14
|
export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLButtonElement>>;
|
|
14
15
|
type SelectItemProps = {
|
|
@@ -16,5 +16,5 @@ type Props = {
|
|
|
16
16
|
/**
|
|
17
17
|
* Accessibility [Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/tooltip#keyboard-interactions)
|
|
18
18
|
**/
|
|
19
|
-
export declare function Tooltip({ children, content, open, defaultOpen, onOpenChange, side, align, className, delayDuration, sideOffset, ...props }: Props): React.JSX.Element;
|
|
19
|
+
export declare function Tooltip({ children, content, open, defaultOpen, onOpenChange, side, align, className, delayDuration, sideOffset, ...props }: Props): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
20
20
|
export default Tooltip;
|
|
@@ -2,9 +2,11 @@ import AddIcon from './add.svg';
|
|
|
2
2
|
import BlockIcon from './block.svg';
|
|
3
3
|
import BlurOnIcon from './blur_on.svg';
|
|
4
4
|
import CachedIcon from './cached.svg';
|
|
5
|
+
import CheckCircleIcon from './check_circle.svg';
|
|
5
6
|
import CloseIcon from './close.svg';
|
|
6
7
|
import DeleteIcon from './delete.svg';
|
|
7
8
|
import InfoIcon from './info.svg';
|
|
9
|
+
import InfoSolidIcon from './info-1.svg';
|
|
8
10
|
import ArrowDownIcon from './keyboard_arrow_down.svg';
|
|
9
11
|
import MicOnSolidIcon from './mic-1.svg';
|
|
10
12
|
import MicOnfIcon from './mic.svg';
|
|
@@ -18,4 +20,6 @@ import VolumeOffIcon from './volume_off-1.svg';
|
|
|
18
20
|
import VolumeOffSolidIcon from './volume_off.svg';
|
|
19
21
|
import VolumeUpIcon from './volume_up-1.svg';
|
|
20
22
|
import VolumeUpSolidIcon from './volume_up.svg';
|
|
21
|
-
|
|
23
|
+
import WarningSolidIcon from './warning.svg';
|
|
24
|
+
import WarningIcon from './warning-1.svg';
|
|
25
|
+
export { AddIcon, ArrowDownIcon, BlockIcon, BlurOnIcon, CachedIcon, CheckCircleIcon, CloseIcon, DeleteIcon, InfoIcon, MicOffIcon, MicOffSolidIcon, MicOnfIcon, MicOnSolidIcon, VideoCamOffIcon, VideoCamOffSolidIcon, VideoCamOnIcon, VideoCamOnSolidIcon, VolumeOffIcon, VolumeOffSolidIcon, VolumeUpIcon, VolumeUpSolidIcon, InfoSolidIcon, WarningSolidIcon, WarningIcon, };
|