demio-ui 1.0.36 → 1.0.37
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 +2 -2
- package/dist/cjs/types/src/components/Popover/Popover.d.ts +8 -0
- package/dist/cjs/types/src/components/Popover/index.d.ts +1 -0
- package/dist/cjs/types/src/components/index.d.ts +1 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/types/src/components/Popover/Popover.d.ts +8 -0
- package/dist/esm/types/src/components/Popover/index.d.ts +1 -0
- package/dist/esm/types/src/components/index.d.ts +1 -0
- package/dist/types.d.ts +33 -26
- package/package.json +2 -1
- package/dist/cjs/types/src/components/ScrollArea/ScrollArea.d.ts +0 -6
- package/dist/cjs/types/src/components/ScrollArea/index.d.ts +0 -1
- package/dist/esm/types/src/components/ScrollArea/ScrollArea.d.ts +0 -6
- package/dist/esm/types/src/components/ScrollArea/index.d.ts +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Popover';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { MouseEventHandler } from 'react';
|
|
2
|
+
import React__default, { MouseEventHandler, FC } from 'react';
|
|
3
3
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
4
4
|
|
|
5
|
-
type Props$
|
|
5
|
+
type Props$c = {
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
children?: string;
|
|
8
8
|
size?: 'small' | 'medium' | 'large';
|
|
@@ -17,9 +17,9 @@ type Props$b = {
|
|
|
17
17
|
/**
|
|
18
18
|
* Button component documentation.
|
|
19
19
|
**/
|
|
20
|
-
declare const Button: React__default.ForwardRefExoticComponent<Props$
|
|
20
|
+
declare const Button: React__default.ForwardRefExoticComponent<Props$c & React__default.RefAttributes<HTMLButtonElement>>;
|
|
21
21
|
|
|
22
|
-
type Props$
|
|
22
|
+
type Props$b = {
|
|
23
23
|
children: string | React__default.ReactNode;
|
|
24
24
|
open: boolean;
|
|
25
25
|
onOpenChange: (open: boolean) => void;
|
|
@@ -35,7 +35,7 @@ type Props$a = {
|
|
|
35
35
|
- Esc closes the component automatically.
|
|
36
36
|
- [Accessibility and Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/dialog#accessibility)
|
|
37
37
|
**/
|
|
38
|
-
declare function Modal({ children, open, onOpenChange, title, hideCloseButton, contentClassName, maxHeight, width, }: Props$
|
|
38
|
+
declare function Modal({ children, open, onOpenChange, title, hideCloseButton, contentClassName, maxHeight, width, }: Props$b): React__default.JSX.Element;
|
|
39
39
|
|
|
40
40
|
type TabsRootProps = {
|
|
41
41
|
value: string;
|
|
@@ -67,7 +67,7 @@ type TabsContentProps = {
|
|
|
67
67
|
};
|
|
68
68
|
declare function TabsContent({ children, value, className }: TabsContentProps): React__default.JSX.Element;
|
|
69
69
|
|
|
70
|
-
type Props$
|
|
70
|
+
type Props$a = {
|
|
71
71
|
checked?: boolean;
|
|
72
72
|
onCheckedChange?: (checked: boolean) => void;
|
|
73
73
|
className?: string;
|
|
@@ -80,9 +80,9 @@ type Props$9 = {
|
|
|
80
80
|
/**
|
|
81
81
|
* Accessibility [Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/switch#keyboard-interactions)
|
|
82
82
|
**/
|
|
83
|
-
declare function Switch({ className, id, disabled, required, name, ...props }: Props$
|
|
83
|
+
declare function Switch({ className, id, disabled, required, name, ...props }: Props$a): React__default.JSX.Element;
|
|
84
84
|
|
|
85
|
-
type Props$
|
|
85
|
+
type Props$9 = {
|
|
86
86
|
children: React__default.ReactNode;
|
|
87
87
|
content: React__default.ReactNode | string;
|
|
88
88
|
open?: boolean;
|
|
@@ -100,7 +100,7 @@ type Props$8 = {
|
|
|
100
100
|
/**
|
|
101
101
|
* Accessibility [Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/tooltip#keyboard-interactions)
|
|
102
102
|
**/
|
|
103
|
-
declare function Tooltip({ children, content, open, defaultOpen, onOpenChange, side, align, className, delayDuration, sideOffset, isPortal, ...props }: Props$
|
|
103
|
+
declare function Tooltip({ children, content, open, defaultOpen, onOpenChange, side, align, className, delayDuration, sideOffset, isPortal, ...props }: Props$9): string | number | boolean | Iterable<React__default.ReactNode> | React__default.JSX.Element | null | undefined;
|
|
104
104
|
|
|
105
105
|
type SelectProps = {
|
|
106
106
|
children: React__default.ReactNode;
|
|
@@ -122,23 +122,23 @@ type SelectItemProps = {
|
|
|
122
122
|
declare const SelectItem: React__default.ForwardRefExoticComponent<SelectItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
123
123
|
declare const SelectItemText: React__default.ForwardRefExoticComponent<SelectPrimitive.SelectItemTextProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
124
124
|
|
|
125
|
-
type Props$
|
|
125
|
+
type Props$8 = {
|
|
126
126
|
htmlFor: string;
|
|
127
127
|
children: React__default.ReactNode;
|
|
128
128
|
className?: string;
|
|
129
129
|
weight?: 'regular' | 'semiBold';
|
|
130
130
|
};
|
|
131
|
-
declare function Label({ htmlFor, children, className, weight }: Props$
|
|
131
|
+
declare function Label({ htmlFor, children, className, weight }: Props$8): React__default.JSX.Element;
|
|
132
132
|
|
|
133
|
-
type Props$
|
|
133
|
+
type Props$7 = {
|
|
134
134
|
children: React__default.ReactNode;
|
|
135
135
|
position?: 'horizontal' | 'vertical';
|
|
136
136
|
justify?: 'between' | 'start';
|
|
137
137
|
alignItems?: 'start' | 'stretch';
|
|
138
138
|
};
|
|
139
|
-
declare function FormGroup({ children, position, justify, alignItems, }: Props$
|
|
139
|
+
declare function FormGroup({ children, position, justify, alignItems, }: Props$7): React__default.JSX.Element;
|
|
140
140
|
|
|
141
|
-
type Props$
|
|
141
|
+
type Props$6 = {
|
|
142
142
|
progress: number;
|
|
143
143
|
max?: number;
|
|
144
144
|
};
|
|
@@ -146,9 +146,9 @@ type Props$5 = {
|
|
|
146
146
|
* Progress component
|
|
147
147
|
* - Provides context for assistive technology to read the progress of a task.
|
|
148
148
|
**/
|
|
149
|
-
declare function Progress({ max, progress, ...props }: Props$
|
|
149
|
+
declare function Progress({ max, progress, ...props }: Props$6): React__default.JSX.Element;
|
|
150
150
|
|
|
151
|
-
type Props$
|
|
151
|
+
type Props$5 = {
|
|
152
152
|
onOpenChange: (open: boolean) => void;
|
|
153
153
|
open: boolean;
|
|
154
154
|
actionText?: string;
|
|
@@ -158,9 +158,9 @@ type Props$4 = {
|
|
|
158
158
|
title?: string;
|
|
159
159
|
description?: string;
|
|
160
160
|
};
|
|
161
|
-
declare function Alert({ onOpenChange, open, actionText, onActionClick, cancelText, onCancelClick, title, description, }: Props$
|
|
161
|
+
declare function Alert({ onOpenChange, open, actionText, onActionClick, cancelText, onCancelClick, title, description, }: Props$5): React__default.JSX.Element;
|
|
162
162
|
|
|
163
|
-
type Props$
|
|
163
|
+
type Props$4 = {
|
|
164
164
|
children: React__default.ReactNode;
|
|
165
165
|
disabled?: boolean;
|
|
166
166
|
id: string;
|
|
@@ -177,9 +177,9 @@ type Props$3 = {
|
|
|
177
177
|
/**
|
|
178
178
|
* Checkbox component documentation.
|
|
179
179
|
**/
|
|
180
|
-
declare function Checkbox({ children, id, checked, onChange, disabled, defaultChecked, name, value, ...props }: Props$
|
|
180
|
+
declare function Checkbox({ children, id, checked, onChange, disabled, defaultChecked, name, value, ...props }: Props$4): React__default.JSX.Element;
|
|
181
181
|
|
|
182
|
-
type Props$
|
|
182
|
+
type Props$3 = {
|
|
183
183
|
items: {
|
|
184
184
|
id: string;
|
|
185
185
|
label: string;
|
|
@@ -194,16 +194,16 @@ type Props$2 = {
|
|
|
194
194
|
disabled?: boolean;
|
|
195
195
|
value?: string;
|
|
196
196
|
};
|
|
197
|
-
declare function RadioGroup({ items, error, defaultValue, ariaLabel, hint, onChange, disabled, value, ...props }: Props$
|
|
197
|
+
declare function RadioGroup({ items, error, defaultValue, ariaLabel, hint, onChange, disabled, value, ...props }: Props$3): React__default.JSX.Element;
|
|
198
198
|
|
|
199
|
-
type Props$
|
|
199
|
+
type Props$2 = {
|
|
200
200
|
children: React__default.ReactNode;
|
|
201
201
|
type?: 'hint' | 'error';
|
|
202
202
|
className?: string;
|
|
203
203
|
};
|
|
204
|
-
declare function InputHint({ children, type, className }: Props$
|
|
204
|
+
declare function InputHint({ children, type, className }: Props$2): React__default.JSX.Element;
|
|
205
205
|
|
|
206
|
-
type Props = {
|
|
206
|
+
type Props$1 = {
|
|
207
207
|
autoComplete?: 'off' | 'on';
|
|
208
208
|
className?: string;
|
|
209
209
|
counterVisibilityLimit?: number;
|
|
@@ -227,7 +227,14 @@ type Props = {
|
|
|
227
227
|
type?: 'text' | 'password' | 'email' | 'number' | 'search' | 'tel' | 'url';
|
|
228
228
|
value?: string;
|
|
229
229
|
};
|
|
230
|
-
declare const Input: React__default.ForwardRefExoticComponent<Props & React__default.RefAttributes<HTMLInputElement>>;
|
|
230
|
+
declare const Input: React__default.ForwardRefExoticComponent<Props$1 & React__default.RefAttributes<HTMLInputElement>>;
|
|
231
|
+
|
|
232
|
+
type Props = {
|
|
233
|
+
align: 'center' | 'start' | 'end';
|
|
234
|
+
content: React__default.ReactNode;
|
|
235
|
+
children: React__default.ReactNode;
|
|
236
|
+
};
|
|
237
|
+
declare const Popover: FC<Props>;
|
|
231
238
|
|
|
232
239
|
var _path$t, _g$p;
|
|
233
240
|
function _extends$t() { _extends$t = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$t.apply(this, arguments); }
|
|
@@ -1065,4 +1072,4 @@ declare namespace index {
|
|
|
1065
1072
|
};
|
|
1066
1073
|
}
|
|
1067
1074
|
|
|
1068
|
-
export { Alert, Button, Checkbox, FormGroup, Input, InputHint, Label, Modal, Progress, RadioGroup, Select, SelectItem, SelectItemText, Switch, Tab, TabsContent, TabsList, TabsRoot, Tooltip, index as icons };
|
|
1075
|
+
export { Alert, Button, Checkbox, FormGroup, Input, InputHint, Label, Modal, Popover, Progress, RadioGroup, Select, SelectItem, SelectItemText, Switch, Tab, TabsContent, TabsList, TabsRoot, Tooltip, index as icons };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "demio-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.37",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"@radix-ui/react-checkbox": "^1.0.4",
|
|
49
49
|
"@radix-ui/react-dialog": "^1.0.4",
|
|
50
50
|
"@radix-ui/react-label": "^2.0.2",
|
|
51
|
+
"@radix-ui/react-popover": "^1.0.6",
|
|
51
52
|
"@radix-ui/react-progress": "^1.0.3",
|
|
52
53
|
"@radix-ui/react-radio-group": "^1.1.3",
|
|
53
54
|
"@radix-ui/react-select": "^1.2.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ScrollArea";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ScrollArea";
|