demio-ui 1.0.29 → 1.0.30
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.
|
@@ -8,3 +8,6 @@ export { default as Label } from './Label';
|
|
|
8
8
|
export { default as FormGroup } from './FormGroup';
|
|
9
9
|
export { default as Progress } from './Progress';
|
|
10
10
|
export { default as Alert } from './Alert';
|
|
11
|
+
export { default as Checkbox } from './Checkbox';
|
|
12
|
+
export { default as RadioGroup } from './RadioGroup';
|
|
13
|
+
export { default as InputHint } from './InputHint';
|
package/dist/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import React__default, { MouseEventHandler } from 'react';
|
|
3
3
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
4
4
|
|
|
5
|
-
type Props$
|
|
5
|
+
type Props$a = {
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
children?: string;
|
|
8
8
|
size?: 'small' | 'medium' | 'large';
|
|
@@ -17,9 +17,9 @@ type Props$7 = {
|
|
|
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$a & React__default.RefAttributes<HTMLButtonElement>>;
|
|
21
21
|
|
|
22
|
-
type Props$
|
|
22
|
+
type Props$9 = {
|
|
23
23
|
children: string | React__default.ReactNode;
|
|
24
24
|
open: boolean;
|
|
25
25
|
onOpenChange: (open: boolean) => void;
|
|
@@ -35,7 +35,7 @@ type Props$6 = {
|
|
|
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$9): 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$8 = {
|
|
71
71
|
checked?: boolean;
|
|
72
72
|
onCheckedChange?: (checked: boolean) => void;
|
|
73
73
|
className?: string;
|
|
@@ -80,9 +80,9 @@ type Props$5 = {
|
|
|
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$8): React__default.JSX.Element;
|
|
84
84
|
|
|
85
|
-
type Props$
|
|
85
|
+
type Props$7 = {
|
|
86
86
|
children: React__default.ReactNode;
|
|
87
87
|
content: React__default.ReactNode | string;
|
|
88
88
|
open?: boolean;
|
|
@@ -100,7 +100,7 @@ type Props$4 = {
|
|
|
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$7): 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$6 = {
|
|
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$6): React__default.JSX.Element;
|
|
132
132
|
|
|
133
|
-
type Props$
|
|
133
|
+
type Props$5 = {
|
|
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$5): React__default.JSX.Element;
|
|
140
140
|
|
|
141
|
-
type Props$
|
|
141
|
+
type Props$4 = {
|
|
142
142
|
progress: number;
|
|
143
143
|
max?: number;
|
|
144
144
|
};
|
|
@@ -146,9 +146,9 @@ type Props$1 = {
|
|
|
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$4): React__default.JSX.Element;
|
|
150
150
|
|
|
151
|
-
type Props = {
|
|
151
|
+
type Props$3 = {
|
|
152
152
|
onOpenChange: (open: boolean) => void;
|
|
153
153
|
open: boolean;
|
|
154
154
|
actionText?: string;
|
|
@@ -158,7 +158,44 @@ type Props = {
|
|
|
158
158
|
title?: string;
|
|
159
159
|
description?: string;
|
|
160
160
|
};
|
|
161
|
-
declare function Alert({ onOpenChange, open, actionText, onActionClick, cancelText, onCancelClick, title, description, }: Props): React__default.JSX.Element;
|
|
161
|
+
declare function Alert({ onOpenChange, open, actionText, onActionClick, cancelText, onCancelClick, title, description, }: Props$3): React__default.JSX.Element;
|
|
162
|
+
|
|
163
|
+
type Props$2 = {
|
|
164
|
+
children: React__default.ReactNode;
|
|
165
|
+
disabled?: boolean;
|
|
166
|
+
id: string;
|
|
167
|
+
defaultChecked?: boolean;
|
|
168
|
+
checked?: boolean;
|
|
169
|
+
onChange?: (checked: boolean) => void;
|
|
170
|
+
name?: string;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Checkbox component documentation.
|
|
174
|
+
**/
|
|
175
|
+
declare function Checkbox({ children, id, checked, onChange, disabled, defaultChecked, name, ...props }: Props$2): React__default.JSX.Element;
|
|
176
|
+
|
|
177
|
+
type Props$1 = {
|
|
178
|
+
items: {
|
|
179
|
+
id: string;
|
|
180
|
+
label: string;
|
|
181
|
+
value: string;
|
|
182
|
+
disabled?: boolean;
|
|
183
|
+
}[];
|
|
184
|
+
error?: string;
|
|
185
|
+
defaultValue?: string;
|
|
186
|
+
ariaLabel?: string;
|
|
187
|
+
hint?: string;
|
|
188
|
+
onChange?: (value: string) => void;
|
|
189
|
+
disabled?: boolean;
|
|
190
|
+
value?: string;
|
|
191
|
+
};
|
|
192
|
+
declare function RadioGroup({ items, error, defaultValue, ariaLabel, hint, onChange, disabled, value, ...props }: Props$1): React__default.JSX.Element;
|
|
193
|
+
|
|
194
|
+
type Props = {
|
|
195
|
+
children: React__default.ReactNode;
|
|
196
|
+
type?: 'hint' | 'error';
|
|
197
|
+
};
|
|
198
|
+
declare function InputHint({ children, type }: Props): React__default.JSX.Element;
|
|
162
199
|
|
|
163
200
|
var _path$q, _g$p;
|
|
164
201
|
function _extends$q() { _extends$q = 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$q.apply(this, arguments); }
|
|
@@ -953,4 +990,4 @@ declare namespace index {
|
|
|
953
990
|
};
|
|
954
991
|
}
|
|
955
992
|
|
|
956
|
-
export { Alert, Button, FormGroup, Label, Modal, Progress, Select, SelectItem, SelectItemText, Switch, Tab, TabsContent, TabsList, TabsRoot, Tooltip, index as icons };
|
|
993
|
+
export { Alert, Button, Checkbox, FormGroup, InputHint, Label, Modal, Progress, RadioGroup, Select, SelectItem, SelectItemText, Switch, Tab, TabsContent, TabsList, TabsRoot, Tooltip, index as icons };
|