demio-ui 2.0.4 → 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 +7 -8
- 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 +7 -8
- 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 -41
- package/package.json +1 -1
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
childClass: string;
|
|
2
|
+
import { Root, Trigger, Content, Portal, PopoverContentTypeProps } from '@radix-ui/react-popover';
|
|
3
|
+
export type Props = {
|
|
5
4
|
children: React.ReactNode;
|
|
6
5
|
content: React.ReactNode;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
contentClassName?: string;
|
|
7
|
+
triggerClassName?: string;
|
|
8
|
+
container?: HTMLElement | null;
|
|
9
|
+
contentProps?: PopoverContentTypeProps;
|
|
11
10
|
};
|
|
12
11
|
declare const Popover: FC<Props>;
|
|
13
|
-
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,14 +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
|
-
align: 'center' | 'start' | 'end';
|
|
138
|
-
childClass: string;
|
|
139
139
|
children: React__default.ReactNode;
|
|
140
140
|
content: React__default.ReactNode;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
contentClassName?: string;
|
|
142
|
+
triggerClassName?: string;
|
|
143
|
+
container?: HTMLElement | null;
|
|
144
|
+
contentProps?: PopoverContentTypeProps;
|
|
145
145
|
};
|
|
146
146
|
declare const Popover: FC<Props$4>;
|
|
147
147
|
|
|
@@ -174,41 +174,6 @@ type Props$2 = {
|
|
|
174
174
|
};
|
|
175
175
|
declare function RadioGroup({ items, error, defaultValue, ariaLabel, hint, onChange, disabled, value, className, ...props }: Props$2): React__default.JSX.Element;
|
|
176
176
|
|
|
177
|
-
type Props$1 = {
|
|
178
|
-
checked?: boolean;
|
|
179
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
180
|
-
className?: string;
|
|
181
|
-
id?: string;
|
|
182
|
-
disabled?: boolean;
|
|
183
|
-
required?: boolean;
|
|
184
|
-
value?: string;
|
|
185
|
-
name: string;
|
|
186
|
-
};
|
|
187
|
-
/**
|
|
188
|
-
* Accessibility [Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/switch#keyboard-interactions)
|
|
189
|
-
**/
|
|
190
|
-
declare function Switch({ className, id, disabled, required, name, ...props }: Props$1): React__default.JSX.Element;
|
|
191
|
-
|
|
192
|
-
type Props = {
|
|
193
|
-
children: React__default.ReactNode;
|
|
194
|
-
content: React__default.ReactNode | string;
|
|
195
|
-
open?: boolean;
|
|
196
|
-
defaultOpen?: boolean;
|
|
197
|
-
onOpenChange?: (open: boolean) => void;
|
|
198
|
-
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
199
|
-
align?: 'start' | 'center' | 'end';
|
|
200
|
-
className?: string;
|
|
201
|
-
delayDuration?: number;
|
|
202
|
-
skipDelayDuration?: number;
|
|
203
|
-
alignOffset?: number;
|
|
204
|
-
sideOffset?: number;
|
|
205
|
-
isPortal?: boolean;
|
|
206
|
-
};
|
|
207
|
-
/**
|
|
208
|
-
* Accessibility [Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/tooltip#keyboard-interactions)
|
|
209
|
-
**/
|
|
210
|
-
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;
|
|
211
|
-
|
|
212
177
|
type SelectProps = {
|
|
213
178
|
children: React__default.ReactNode;
|
|
214
179
|
sideOffset?: number;
|
|
@@ -232,6 +197,21 @@ type SelectItemProps = {
|
|
|
232
197
|
declare const SelectItem: React__default.ForwardRefExoticComponent<SelectItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
233
198
|
declare const SelectItemText: React__default.ForwardRefExoticComponent<SelectPrimitive.SelectItemTextProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
234
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
|
+
|
|
235
215
|
type TabsRootProps = {
|
|
236
216
|
value: string;
|
|
237
217
|
onValueChange: (value: string) => void;
|
|
@@ -262,6 +242,26 @@ type TabsContentProps = {
|
|
|
262
242
|
};
|
|
263
243
|
declare function TabsContent({ children, value, className }: TabsContentProps): React__default.JSX.Element;
|
|
264
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
|
+
|
|
265
265
|
var _path$M, _g$x;
|
|
266
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); }
|
|
267
267
|
var SvgAdd = function SvgAdd(props) {
|