demio-ui 2.0.5 → 2.0.6
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/Popover/Popover.d.ts +6 -13
- package/dist/cjs/types/src/components/Popover/index.d.ts +1 -1
- package/dist/cjs/types/src/components/index.d.ts +3 -3
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/types/src/components/Popover/Popover.d.ts +6 -13
- package/dist/esm/types/src/components/Popover/index.d.ts +1 -1
- package/dist/esm/types/src/components/index.d.ts +3 -3
- package/dist/types.d.ts +41 -47
- package/package.json +1 -1
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
+
import { Root, Trigger, Content, Portal, PopoverContentTypeProps } from '@radix-ui/react-popover';
|
|
2
3
|
export type Props = {
|
|
3
|
-
childClass: string;
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
content: React.ReactNode;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
className?: string;
|
|
11
|
-
contentProps: {
|
|
12
|
-
className?: string;
|
|
13
|
-
style?: React.CSSProperties;
|
|
14
|
-
align?: 'center' | 'start' | 'end';
|
|
15
|
-
};
|
|
16
|
-
modal?: boolean;
|
|
6
|
+
contentClassName?: string;
|
|
7
|
+
triggerClassName?: string;
|
|
8
|
+
container?: HTMLElement | null;
|
|
9
|
+
contentProps?: PopoverContentTypeProps;
|
|
17
10
|
};
|
|
18
11
|
declare const Popover: FC<Props>;
|
|
19
|
-
export
|
|
12
|
+
export { Root as PopoverRoot, Trigger as PopoverTrigger, Content as PopoverContent, Portal as PopoverPortal, Popover, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Popover, PopoverRoot, PopoverTrigger, PopoverContent, PopoverPortal } from './Popover';
|
|
@@ -7,10 +7,10 @@ export { default as InputHint } from './InputHint';
|
|
|
7
7
|
export { default as Label } from './Label';
|
|
8
8
|
export { default as Loader } from './Loader';
|
|
9
9
|
export { default as Modal } from './Modal';
|
|
10
|
-
export {
|
|
10
|
+
export { Popover, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger } from './Popover';
|
|
11
11
|
export { default as Progress } from './Progress';
|
|
12
12
|
export { default as RadioGroup } from './RadioGroup';
|
|
13
|
-
export { default as Switch } from './Switch';
|
|
14
|
-
export { default as Tooltip } from './Tooltip';
|
|
15
13
|
export { Select, SelectItem, SelectItemText } from './Select';
|
|
14
|
+
export { default as Switch } from './Switch';
|
|
16
15
|
export { Tab, TabsContent, TabsList, TabsRoot } from './Tabs';
|
|
16
|
+
export { default as Tooltip } from './Tooltip';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { MouseEventHandler, FC } from 'react';
|
|
3
|
+
import { PopoverContentTypeProps } from '@radix-ui/react-popover';
|
|
4
|
+
export { Content as PopoverContent, Portal as PopoverPortal, Root as PopoverRoot, Trigger as PopoverTrigger } from '@radix-ui/react-popover';
|
|
3
5
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
4
6
|
|
|
5
7
|
type Props$d = {
|
|
@@ -134,20 +136,12 @@ type Props$5 = {
|
|
|
134
136
|
declare function Modal({ children, contentClassName, isCloseButtonVisible, onClose, onOpenChange, open, overlayClassName, title, contentStyle, }: Props$5): React__default.JSX.Element;
|
|
135
137
|
|
|
136
138
|
type Props$4 = {
|
|
137
|
-
childClass: string;
|
|
138
139
|
children: React__default.ReactNode;
|
|
139
140
|
content: React__default.ReactNode;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
className?: string;
|
|
145
|
-
contentProps: {
|
|
146
|
-
className?: string;
|
|
147
|
-
style?: React__default.CSSProperties;
|
|
148
|
-
align?: 'center' | 'start' | 'end';
|
|
149
|
-
};
|
|
150
|
-
modal?: boolean;
|
|
141
|
+
contentClassName?: string;
|
|
142
|
+
triggerClassName?: string;
|
|
143
|
+
container?: HTMLElement | null;
|
|
144
|
+
contentProps?: PopoverContentTypeProps;
|
|
151
145
|
};
|
|
152
146
|
declare const Popover: FC<Props$4>;
|
|
153
147
|
|
|
@@ -180,41 +174,6 @@ type Props$2 = {
|
|
|
180
174
|
};
|
|
181
175
|
declare function RadioGroup({ items, error, defaultValue, ariaLabel, hint, onChange, disabled, value, className, ...props }: Props$2): React__default.JSX.Element;
|
|
182
176
|
|
|
183
|
-
type Props$1 = {
|
|
184
|
-
checked?: boolean;
|
|
185
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
186
|
-
className?: string;
|
|
187
|
-
id?: string;
|
|
188
|
-
disabled?: boolean;
|
|
189
|
-
required?: boolean;
|
|
190
|
-
value?: string;
|
|
191
|
-
name: string;
|
|
192
|
-
};
|
|
193
|
-
/**
|
|
194
|
-
* Accessibility [Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/switch#keyboard-interactions)
|
|
195
|
-
**/
|
|
196
|
-
declare function Switch({ className, id, disabled, required, name, ...props }: Props$1): React__default.JSX.Element;
|
|
197
|
-
|
|
198
|
-
type Props = {
|
|
199
|
-
children: React__default.ReactNode;
|
|
200
|
-
content: React__default.ReactNode | string;
|
|
201
|
-
open?: boolean;
|
|
202
|
-
defaultOpen?: boolean;
|
|
203
|
-
onOpenChange?: (open: boolean) => void;
|
|
204
|
-
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
205
|
-
align?: 'start' | 'center' | 'end';
|
|
206
|
-
className?: string;
|
|
207
|
-
delayDuration?: number;
|
|
208
|
-
skipDelayDuration?: number;
|
|
209
|
-
alignOffset?: number;
|
|
210
|
-
sideOffset?: number;
|
|
211
|
-
isPortal?: boolean;
|
|
212
|
-
};
|
|
213
|
-
/**
|
|
214
|
-
* Accessibility [Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/tooltip#keyboard-interactions)
|
|
215
|
-
**/
|
|
216
|
-
declare function Tooltip({ children, content, open, defaultOpen, onOpenChange, side, align, className, delayDuration, sideOffset, isPortal, ...props }: Props): string | number | boolean | React__default.JSX.Element | Iterable<React__default.ReactNode> | null | undefined;
|
|
217
|
-
|
|
218
177
|
type SelectProps = {
|
|
219
178
|
children: React__default.ReactNode;
|
|
220
179
|
sideOffset?: number;
|
|
@@ -238,6 +197,21 @@ type SelectItemProps = {
|
|
|
238
197
|
declare const SelectItem: React__default.ForwardRefExoticComponent<SelectItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
239
198
|
declare const SelectItemText: React__default.ForwardRefExoticComponent<SelectPrimitive.SelectItemTextProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
240
199
|
|
|
200
|
+
type Props$1 = {
|
|
201
|
+
checked?: boolean;
|
|
202
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
203
|
+
className?: string;
|
|
204
|
+
id?: string;
|
|
205
|
+
disabled?: boolean;
|
|
206
|
+
required?: boolean;
|
|
207
|
+
value?: string;
|
|
208
|
+
name: string;
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* Accessibility [Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/switch#keyboard-interactions)
|
|
212
|
+
**/
|
|
213
|
+
declare function Switch({ className, id, disabled, required, name, ...props }: Props$1): React__default.JSX.Element;
|
|
214
|
+
|
|
241
215
|
type TabsRootProps = {
|
|
242
216
|
value: string;
|
|
243
217
|
onValueChange: (value: string) => void;
|
|
@@ -268,6 +242,26 @@ type TabsContentProps = {
|
|
|
268
242
|
};
|
|
269
243
|
declare function TabsContent({ children, value, className }: TabsContentProps): React__default.JSX.Element;
|
|
270
244
|
|
|
245
|
+
type Props = {
|
|
246
|
+
children: React__default.ReactNode;
|
|
247
|
+
content: React__default.ReactNode | string;
|
|
248
|
+
open?: boolean;
|
|
249
|
+
defaultOpen?: boolean;
|
|
250
|
+
onOpenChange?: (open: boolean) => void;
|
|
251
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
252
|
+
align?: 'start' | 'center' | 'end';
|
|
253
|
+
className?: string;
|
|
254
|
+
delayDuration?: number;
|
|
255
|
+
skipDelayDuration?: number;
|
|
256
|
+
alignOffset?: number;
|
|
257
|
+
sideOffset?: number;
|
|
258
|
+
isPortal?: boolean;
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* Accessibility [Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/tooltip#keyboard-interactions)
|
|
262
|
+
**/
|
|
263
|
+
declare function Tooltip({ children, content, open, defaultOpen, onOpenChange, side, align, className, delayDuration, sideOffset, isPortal, ...props }: Props): string | number | boolean | React__default.JSX.Element | Iterable<React__default.ReactNode> | null | undefined;
|
|
264
|
+
|
|
271
265
|
var _path$M, _g$x;
|
|
272
266
|
function _extends$N() { _extends$N = 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$N.apply(this, arguments); }
|
|
273
267
|
var SvgAdd = function SvgAdd(props) {
|