demio-ui 2.1.50 → 2.1.51
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.css +1 -1
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/types/src/components/Badge/Badge.d.ts +10 -0
- package/dist/cjs/types/src/components/Badge/index.d.ts +1 -0
- package/dist/cjs/types/src/components/Drawer/Drawer.d.ts +1 -0
- package/dist/cjs/types/src/components/Modal/Modal.d.ts +2 -2
- package/dist/cjs/types/src/components/MultiSelect/MultiSelect.d.ts +1 -0
- package/dist/cjs/types/src/components/index.d.ts +1 -0
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/types/src/components/Badge/Badge.d.ts +10 -0
- package/dist/esm/types/src/components/Badge/index.d.ts +1 -0
- package/dist/esm/types/src/components/Drawer/Drawer.d.ts +1 -0
- package/dist/esm/types/src/components/Modal/Modal.d.ts +2 -2
- package/dist/esm/types/src/components/MultiSelect/MultiSelect.d.ts +1 -0
- package/dist/esm/types/src/components/index.d.ts +1 -0
- package/dist/types.d.ts +18 -7
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export type Props = {
|
|
3
|
+
className?: string;
|
|
4
|
+
icon?: ReactNode;
|
|
5
|
+
variant?: 'outlined' | 'contained';
|
|
6
|
+
color?: 'green' | 'orange' | 'gray' | 'purple' | 'blue';
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
declare const Badge: FC<Props>;
|
|
10
|
+
export default Badge;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Badge';
|
|
@@ -3,7 +3,6 @@ type Props = {
|
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
contentClassName?: string;
|
|
5
5
|
isCloseButtonVisible?: boolean;
|
|
6
|
-
onClose?: () => void;
|
|
7
6
|
onOpenChange: (open: boolean) => void;
|
|
8
7
|
open: boolean;
|
|
9
8
|
overlayClassName?: string;
|
|
@@ -12,6 +11,7 @@ type Props = {
|
|
|
12
11
|
childrenClassName?: string;
|
|
13
12
|
title?: ReactNode;
|
|
14
13
|
body?: ReactNode;
|
|
14
|
+
isClosable?: boolean;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
- Focus is automatically trapped when modal.
|
|
@@ -19,5 +19,5 @@ type Props = {
|
|
|
19
19
|
- Esc closes the component automatically.
|
|
20
20
|
- [Accessibility and Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/dialog#accessibility)
|
|
21
21
|
**/
|
|
22
|
-
declare function Modal({ children, contentClassName, isCloseButtonVisible,
|
|
22
|
+
declare function Modal({ children, contentClassName, isCloseButtonVisible, onOpenChange, open, overlayClassName, title, isClosable, }: Props): React.JSX.Element;
|
|
23
23
|
export default Modal;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as Alert } from './Alert';
|
|
2
2
|
export { default as Avatar } from './Avatar';
|
|
3
|
+
export { default as Badge } from './Badge';
|
|
3
4
|
export { default as Button } from './Button';
|
|
4
5
|
export { default as Card } from './Card';
|
|
5
6
|
export { default as Checkbox } from './Checkbox';
|
package/dist/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { PopoverContentTypeProps } from '@radix-ui/react-popover';
|
|
|
4
4
|
export { Content as PopoverContent, Portal as PopoverPortal, Root as PopoverRoot, Trigger as PopoverTrigger } from '@radix-ui/react-popover';
|
|
5
5
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
6
6
|
|
|
7
|
-
type Props$
|
|
7
|
+
type Props$l = {
|
|
8
8
|
open: boolean;
|
|
9
9
|
actionText?: string;
|
|
10
10
|
onActionClick: MouseEventHandler<HTMLButtonElement>;
|
|
@@ -19,11 +19,11 @@ type Props$k = {
|
|
|
19
19
|
maxWidth?: string;
|
|
20
20
|
isCloseButtonVisible?: boolean;
|
|
21
21
|
};
|
|
22
|
-
declare function Alert({ open, actionText, onActionClick, cancelText, onCancelClick, title, description, showLoader, isOkDisabled, actionButtonType, maxWidth, onClose, isCloseButtonVisible, }: Props$
|
|
22
|
+
declare function Alert({ open, actionText, onActionClick, cancelText, onCancelClick, title, description, showLoader, isOkDisabled, actionButtonType, maxWidth, onClose, isCloseButtonVisible, }: Props$l): React__default.JSX.Element;
|
|
23
23
|
|
|
24
24
|
declare const AVATAR_SIZES: readonly [16, 24, 32, 40, 48, 64, 80, 96, 128];
|
|
25
25
|
type AvatarSizeType = (typeof AVATAR_SIZES)[number];
|
|
26
|
-
interface Props$
|
|
26
|
+
interface Props$k {
|
|
27
27
|
src?: string;
|
|
28
28
|
size?: AvatarSizeType;
|
|
29
29
|
userName?: string;
|
|
@@ -31,7 +31,16 @@ interface Props$j {
|
|
|
31
31
|
className?: string;
|
|
32
32
|
fallbackDelay?: number;
|
|
33
33
|
}
|
|
34
|
-
declare const Avatar: FC<Props$
|
|
34
|
+
declare const Avatar: FC<Props$k>;
|
|
35
|
+
|
|
36
|
+
type Props$j = {
|
|
37
|
+
className?: string;
|
|
38
|
+
icon?: ReactNode;
|
|
39
|
+
variant?: 'outlined' | 'contained';
|
|
40
|
+
color?: 'green' | 'orange' | 'gray' | 'purple' | 'blue';
|
|
41
|
+
children: ReactNode;
|
|
42
|
+
};
|
|
43
|
+
declare const Badge: FC<Props$j>;
|
|
35
44
|
|
|
36
45
|
type Props$i = {
|
|
37
46
|
disabled?: boolean;
|
|
@@ -89,6 +98,7 @@ type Props$f = {
|
|
|
89
98
|
header?: ReactNode;
|
|
90
99
|
toggleDrawer?: (open: boolean) => void;
|
|
91
100
|
align?: 'left' | 'right';
|
|
101
|
+
isClosable?: boolean;
|
|
92
102
|
};
|
|
93
103
|
declare const Drawer: FC<Props$f>;
|
|
94
104
|
|
|
@@ -187,7 +197,6 @@ type Props$6 = {
|
|
|
187
197
|
children: ReactNode;
|
|
188
198
|
contentClassName?: string;
|
|
189
199
|
isCloseButtonVisible?: boolean;
|
|
190
|
-
onClose?: () => void;
|
|
191
200
|
onOpenChange: (open: boolean) => void;
|
|
192
201
|
open: boolean;
|
|
193
202
|
overlayClassName?: string;
|
|
@@ -196,6 +205,7 @@ type Props$6 = {
|
|
|
196
205
|
childrenClassName?: string;
|
|
197
206
|
title?: ReactNode;
|
|
198
207
|
body?: ReactNode;
|
|
208
|
+
isClosable?: boolean;
|
|
199
209
|
};
|
|
200
210
|
/**
|
|
201
211
|
- Focus is automatically trapped when modal.
|
|
@@ -203,7 +213,7 @@ type Props$6 = {
|
|
|
203
213
|
- Esc closes the component automatically.
|
|
204
214
|
- [Accessibility and Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/dialog#accessibility)
|
|
205
215
|
**/
|
|
206
|
-
declare function Modal({ children, contentClassName, isCloseButtonVisible,
|
|
216
|
+
declare function Modal({ children, contentClassName, isCloseButtonVisible, onOpenChange, open, overlayClassName, title, isClosable, }: Props$6): React__default.JSX.Element;
|
|
207
217
|
|
|
208
218
|
type Option = unknown;
|
|
209
219
|
interface Props$5 {
|
|
@@ -223,6 +233,7 @@ interface Props$5 {
|
|
|
223
233
|
onChange?: ((value: Option) => void) | null;
|
|
224
234
|
options?: Option[];
|
|
225
235
|
placeholder?: string;
|
|
236
|
+
portalTarget?: HTMLElement;
|
|
226
237
|
value?: Option;
|
|
227
238
|
}
|
|
228
239
|
declare const MultiSelect: FC<Props$5>;
|
|
@@ -1707,4 +1718,4 @@ declare namespace index {
|
|
|
1707
1718
|
export { SvgAdd as AddIcon, SvgKeyboardArrowDown as ArrowDownIcon, SvgArrowLeft as ArrowLeftIcon, SvgBarChart as BarChartIcon, SvgBlock as BlockIcon, SvgBlurOn as BlurOnIcon, SvgCached as CachedIcon, SvgCalendar as CalendarIcon, SvgCalendarStar as CalendarStarIcon, SvgCheckCircle as CheckCircleIcon, SvgCheckbox as CheckboxIcon, SvgCheckboxUncheck as CheckboxUncheckIcon, SvgClock as ClockIcon, SvgClose as CloseIcon, SvgCustomize as CustomizeIcon, SvgDelete as DeleteIcon, SvgDots as DotsIcon, SvgEdit as EditIcon, SvgElectricBolt as ElectricBoltIcon, SvgEventDetails as EventDetailsIcon, SvgEventRepeat as EventRepeatIcon, SvgExclamation as ExclamationIcon, SvgExternalLink as ExternalLinkIcon, SvgFile as FileIcon, SvgFilterList as FilterListIcon, SvgInfo as InfoIcon, SvgInfo1 as InfoSolidIcon, SvgItems as ItemsIcon, SvgList as ListIcon, SvgListTh as ListThIcon, SvgLock as LockIcon, SvgMagic as MagicIcon, SvgMaterials as MaterialsIcon, SvgMicOff1 as MicOffIcon, SvgMicOff as MicOffSolidIcon, SvgMic1 as MicOnSolidIcon, SvgMic as MicOnfIcon, SvgPasswordEyeCrossed as PasswordEyeCrossedIcon, SvgPasswordEye as PasswordEyeIcon, SvgPerson as Person, SvgPlay as PlayIcon, SvgPoll as PollIcon, SvgProgress as ProgressIcon, SvgReplayDisabled as ReplayDisabledIcon, SvgRocket as RocketIcon, SvgSearch as SearchIcon, SvgSmile as SmileIcon, SvgStackedEmail as StackedEmailIcon, SvgToday as TodayIcon, SvgTrendingDown as TrendingDownIcon, SvgTrendingUp as TrendingUpIcon, SvgVideocamOff as VideoCamOffIcon, SvgVideocamOff1 as VideoCamOffSolidIcon, SvgVideocam as VideoCamOnIcon, SvgVideocam1 as VideoCamOnSolidIcon, SvgVolumeOff1 as VolumeOffIcon, SvgVolumeOff as VolumeOffSolidIcon, SvgVolumeUp1 as VolumeUpIcon, SvgVolumeUp as VolumeUpSolidIcon, SvgWarning1 as WarningIcon, SvgWarning as WarningSolidIcon };
|
|
1708
1719
|
}
|
|
1709
1720
|
|
|
1710
|
-
export { Alert, Avatar, Button, Card, Checkbox, Drawer, Dropdown, DropdownItem, FormGroup, InfoBanner, Input, InputHint, Label, Loader, Modal, MultiSelect, Popover, Progress, RadioGroup, Select, SelectItem, SelectItemText, Switch, Tab, TabsContent, TabsList, TabsRoot, Tag, Tooltip, Typography, index as icons };
|
|
1721
|
+
export { Alert, Avatar, Badge, Button, Card, Checkbox, Drawer, Dropdown, DropdownItem, FormGroup, InfoBanner, Input, InputHint, Label, Loader, Modal, MultiSelect, Popover, Progress, RadioGroup, Select, SelectItem, SelectItemText, Switch, Tab, TabsContent, TabsList, TabsRoot, Tag, Tooltip, Typography, index as icons };
|