demio-ui 2.1.41 → 2.1.43

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.
@@ -1 +1,3 @@
1
- export { default as Dropdown } from './Dropdown';
1
+ import { default as Dropdown } from './Dropdown';
2
+ import { default as DropdownItem } from './DropdownItem';
3
+ export { Dropdown, DropdownItem };
@@ -4,7 +4,7 @@ export { default as Button } from './Button';
4
4
  export { default as Card } from './Card';
5
5
  export { default as Checkbox } from './Checkbox';
6
6
  export { default as Drawer } from './Drawer';
7
- export { Dropdown } from './Dropdown';
7
+ export { Dropdown, DropdownItem } from './Dropdown';
8
8
  export { default as FormGroup } from './FormGroup';
9
9
  export { default as InfoBanner } from './InfoBanner';
10
10
  export { default as Input } from './Input';
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$i = {
7
+ type Props$j = {
8
8
  open: boolean;
9
9
  actionText?: string;
10
10
  onActionClick: MouseEventHandler<HTMLButtonElement>;
@@ -19,11 +19,11 @@ type Props$i = {
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$i): React__default.JSX.Element;
22
+ declare function Alert({ open, actionText, onActionClick, cancelText, onCancelClick, title, description, showLoader, isOkDisabled, actionButtonType, maxWidth, onClose, isCloseButtonVisible, }: Props$j): 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$h {
26
+ interface Props$i {
27
27
  src?: string;
28
28
  size?: AvatarSizeType;
29
29
  userName?: string;
@@ -31,9 +31,9 @@ interface Props$h {
31
31
  className?: string;
32
32
  fallbackDelay?: number;
33
33
  }
34
- declare const Avatar: FC<Props$h>;
34
+ declare const Avatar: FC<Props$i>;
35
35
 
36
- type Props$g = {
36
+ type Props$h = {
37
37
  disabled?: boolean;
38
38
  children?: string;
39
39
  size?: 'small' | 'medium' | 'large';
@@ -49,9 +49,9 @@ type Props$g = {
49
49
  /**
50
50
  * Button component documentation.
51
51
  **/
52
- declare const Button: React__default.ForwardRefExoticComponent<Props$g & React__default.RefAttributes<HTMLButtonElement>>;
52
+ declare const Button: React__default.ForwardRefExoticComponent<Props$h & React__default.RefAttributes<HTMLButtonElement>>;
53
53
 
54
- type Props$f = {
54
+ type Props$g = {
55
55
  children?: ReactNode;
56
56
  className?: string;
57
57
  isEmptyStateAvailable?: boolean;
@@ -60,9 +60,9 @@ type Props$f = {
60
60
  emptyStateText?: ReactNode;
61
61
  shadowElevation?: number;
62
62
  };
63
- declare const Card: FC<Props$f>;
63
+ declare const Card: FC<Props$g>;
64
64
 
65
- type Props$e = {
65
+ type Props$f = {
66
66
  children: React__default.ReactNode;
67
67
  disabled?: boolean;
68
68
  id: string;
@@ -79,9 +79,9 @@ type Props$e = {
79
79
  /**
80
80
  * Checkbox component documentation.
81
81
  **/
82
- declare function Checkbox({ children, id, checked, onChange, disabled, defaultChecked, name, value, ...props }: Props$e): React__default.JSX.Element;
82
+ declare function Checkbox({ children, id, checked, onChange, disabled, defaultChecked, name, value, ...props }: Props$f): React__default.JSX.Element;
83
83
 
84
- type Props$d = {
84
+ type Props$e = {
85
85
  children?: ReactNode;
86
86
  isOpen?: boolean;
87
87
  className?: string;
@@ -90,9 +90,9 @@ type Props$d = {
90
90
  toggleDrawer?: (open: boolean) => void;
91
91
  align?: 'left' | 'right';
92
92
  };
93
- declare const Drawer: FC<Props$d>;
93
+ declare const Drawer: FC<Props$e>;
94
94
 
95
- type Props$c = {
95
+ type Props$d = {
96
96
  align?: 'start' | 'center' | 'end';
97
97
  children: ReactNode;
98
98
  className?: string;
@@ -103,7 +103,15 @@ type Props$c = {
103
103
  trigger: ReactNode;
104
104
  contentSideOffset?: number;
105
105
  };
106
- declare const Dropdown: FC<Props$c>;
106
+ declare const Dropdown: FC<Props$d>;
107
+
108
+ type Props$c = {
109
+ children: ReactNode;
110
+ className?: string;
111
+ isClosable?: boolean;
112
+ asChild?: boolean;
113
+ };
114
+ declare const DropdownItem: FC<Props$c>;
107
115
 
108
116
  type Props$b = {
109
117
  children: React__default.ReactNode;
@@ -1662,4 +1670,4 @@ declare namespace index {
1662
1670
  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, 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 };
1663
1671
  }
1664
1672
 
1665
- export { Alert, Avatar, Button, Card, Checkbox, Drawer, Dropdown, FormGroup, InfoBanner, Input, InputHint, Label, Loader, Modal, Popover, Progress, RadioGroup, Select, SelectItem, SelectItemText, Switch, Tab, TabsContent, TabsList, TabsRoot, Tag, Tooltip, Typography, index as icons };
1673
+ export { Alert, Avatar, Button, Card, Checkbox, Drawer, Dropdown, DropdownItem, FormGroup, InfoBanner, Input, InputHint, Label, Loader, Modal, Popover, Progress, RadioGroup, Select, SelectItem, SelectItemText, Switch, Tab, TabsContent, TabsList, TabsRoot, Tag, Tooltip, Typography, index as icons };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "demio-ui",
3
- "version": "2.1.41",
3
+ "version": "2.1.43",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",