demio-ui 1.0.6 → 1.0.7

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.
Files changed (41) hide show
  1. package/dist/cjs/index.css +1 -0
  2. package/dist/cjs/index.js.map +1 -0
  3. package/dist/cjs/types/jest.config.d.ts +11 -0
  4. package/dist/cjs/types/src/components/Button/Button.d.ts +18 -0
  5. package/dist/cjs/types/src/components/Button/index.d.ts +1 -0
  6. package/dist/cjs/types/src/components/Label/Label.d.ts +7 -0
  7. package/dist/cjs/types/src/components/Label/index.d.ts +1 -0
  8. package/dist/cjs/types/src/components/Modal/Modal.d.ts +15 -0
  9. package/dist/cjs/types/src/components/Modal/index.d.ts +1 -0
  10. package/dist/cjs/types/src/components/Select/Select.d.ts +17 -0
  11. package/dist/cjs/types/src/components/Select/index.d.ts +1 -0
  12. package/dist/cjs/types/src/components/Switch/Switch.d.ts +16 -0
  13. package/dist/cjs/types/src/components/Switch/index.d.ts +1 -0
  14. package/dist/cjs/types/src/components/Tabs/Tabs.d.ts +31 -0
  15. package/dist/cjs/types/src/components/Tabs/index.d.ts +1 -0
  16. package/dist/cjs/types/src/components/Tooltip/Tooltip.d.ts +20 -0
  17. package/dist/cjs/types/src/components/Tooltip/index.d.ts +1 -0
  18. package/dist/cjs/types/src/components/index.d.ts +7 -0
  19. package/dist/cjs/types/src/index.d.ts +2 -0
  20. package/dist/esm/index.css +1 -0
  21. package/dist/esm/index.js +7 -0
  22. package/dist/esm/index.js.map +1 -0
  23. package/dist/esm/types/jest.config.d.ts +11 -0
  24. package/dist/esm/types/src/components/Button/Button.d.ts +18 -0
  25. package/dist/esm/types/src/components/Button/index.d.ts +1 -0
  26. package/dist/esm/types/src/components/Label/Label.d.ts +7 -0
  27. package/dist/esm/types/src/components/Label/index.d.ts +1 -0
  28. package/dist/esm/types/src/components/Modal/Modal.d.ts +15 -0
  29. package/dist/esm/types/src/components/Modal/index.d.ts +1 -0
  30. package/dist/esm/types/src/components/Select/Select.d.ts +17 -0
  31. package/dist/esm/types/src/components/Select/index.d.ts +1 -0
  32. package/dist/esm/types/src/components/Switch/Switch.d.ts +16 -0
  33. package/dist/esm/types/src/components/Switch/index.d.ts +1 -0
  34. package/dist/esm/types/src/components/Tabs/Tabs.d.ts +31 -0
  35. package/dist/esm/types/src/components/Tabs/index.d.ts +1 -0
  36. package/dist/esm/types/src/components/Tooltip/Tooltip.d.ts +20 -0
  37. package/dist/esm/types/src/components/Tooltip/index.d.ts +1 -0
  38. package/dist/esm/types/src/components/index.d.ts +7 -0
  39. package/dist/esm/types/src/index.d.ts +2 -0
  40. package/dist/types.d.ts +120 -0
  41. package/package.json +2 -2
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ collectCoverage: boolean;
3
+ coverageDirectory: string;
4
+ testEnvironment: string;
5
+ moduleNameMapper: {
6
+ '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': string;
7
+ '\\.(css)$': string;
8
+ };
9
+ modulePathIgnorePatterns: string[];
10
+ };
11
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import React, { MouseEventHandler } from 'react';
2
+ type Props = {
3
+ disabled?: boolean;
4
+ children?: string;
5
+ size?: 'small' | 'medium' | 'large';
6
+ variant?: 'primary' | 'secondary';
7
+ onClick: MouseEventHandler<HTMLButtonElement>;
8
+ type?: 'button' | 'submit' | 'reset';
9
+ className?: string;
10
+ prefix?: string | React.ReactNode;
11
+ suffix?: string | React.ReactNode;
12
+ fullWidth?: boolean;
13
+ };
14
+ /**
15
+ * Button component documentation.
16
+ **/
17
+ declare function Button({ disabled, children, onClick, size, variant, type, prefix, suffix, className, fullWidth, ...props }: Props): React.JSX.Element;
18
+ export default Button;
@@ -0,0 +1 @@
1
+ export { default } from './Button';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ htmlFor: string;
4
+ children: React.ReactNode;
5
+ };
6
+ declare function Label({ htmlFor, children }: Props): React.JSX.Element;
7
+ export default Label;
@@ -0,0 +1 @@
1
+ export { default } from './Label';
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ children: string | React.ReactNode;
4
+ open: boolean;
5
+ onOpenChange: (open: boolean) => void;
6
+ title?: string;
7
+ };
8
+ /**
9
+ - Focus is automatically trapped when modal.
10
+ - Manages screen reader announcements with Title and Description components.
11
+ - Esc closes the component automatically.
12
+ - [Accessibility and Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/dialog#accessibility)
13
+ **/
14
+ declare function Modal({ children, open, onOpenChange, title }: Props): React.JSX.Element;
15
+ export default Modal;
@@ -0,0 +1 @@
1
+ export { default } from './Modal';
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ type SelectProps = {
3
+ children: React.ReactNode;
4
+ sideOffset?: number;
5
+ position?: 'item-aligned' | 'popper';
6
+ value?: string;
7
+ disabled?: boolean;
8
+ onValueChange?: (value: string) => void;
9
+ };
10
+ export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLButtonElement>>;
11
+ type SelectItemProps = {
12
+ children: React.ReactNode;
13
+ value: string;
14
+ disabled?: boolean;
15
+ };
16
+ export declare const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
17
+ export {};
@@ -0,0 +1 @@
1
+ export { Select, SelectItem } from './Select';
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ checked?: boolean;
4
+ onCheckedChange?: (checked: boolean) => void;
5
+ className?: string;
6
+ id?: string;
7
+ disabled?: boolean;
8
+ required?: boolean;
9
+ value?: string;
10
+ name: string;
11
+ };
12
+ /**
13
+ * Accessibility [Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/switch#keyboard-interactions)
14
+ **/
15
+ declare function Switch({ className, id, disabled, required, name, ...props }: Props): React.JSX.Element;
16
+ export default Switch;
@@ -0,0 +1 @@
1
+ export { default } from './Switch';
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ type TabsRootProps = {
3
+ value: string;
4
+ onValueChange: (value: string) => void;
5
+ defaultValue?: string;
6
+ className?: string;
7
+ children: React.ReactNode;
8
+ };
9
+ /**
10
+ - [Full keyboard navigation](https://www.radix-ui.com/docs/primitives/components/tabs#accessibility).
11
+ **/
12
+ export declare function TabsRoot({ children, className, ...props }: TabsRootProps): React.JSX.Element;
13
+ type TabsListProps = {
14
+ className?: string;
15
+ children: React.ReactNode;
16
+ };
17
+ export declare function TabsList({ children, className }: TabsListProps): React.JSX.Element;
18
+ type TabProps = {
19
+ value: string;
20
+ className?: string;
21
+ children: React.ReactNode;
22
+ disabled?: boolean;
23
+ };
24
+ export declare function Tab({ children, className, ...props }: TabProps): React.JSX.Element;
25
+ type TabsContentProps = {
26
+ value: string;
27
+ className?: string;
28
+ children: React.ReactNode;
29
+ };
30
+ export declare function TabsContent({ children, value, className }: TabsContentProps): React.JSX.Element;
31
+ export {};
@@ -0,0 +1 @@
1
+ export { Tab, TabsContent, TabsList, TabsRoot } from './Tabs';
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ children: React.ReactNode;
4
+ content: React.ReactNode | string;
5
+ open?: boolean;
6
+ defaultOpen?: boolean;
7
+ onOpenChange?: (open: boolean) => void;
8
+ side?: 'top' | 'right' | 'bottom' | 'left';
9
+ align?: 'start' | 'center' | 'end';
10
+ className?: string;
11
+ delayDuration?: number;
12
+ skipDelayDuration?: number;
13
+ alignOffset?: number;
14
+ sideOffset?: number;
15
+ };
16
+ /**
17
+ * Accessibility [Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/tooltip#keyboard-interactions)
18
+ **/
19
+ export declare function Tooltip({ children, content, open, defaultOpen, onOpenChange, side, align, className, delayDuration, sideOffset, ...props }: Props): React.JSX.Element;
20
+ export default Tooltip;
@@ -0,0 +1 @@
1
+ export { default } from './Tooltip';
@@ -0,0 +1,7 @@
1
+ export { default as Button } from './Button';
2
+ export { default as Modal } from './Modal';
3
+ export { Tab, TabsContent, TabsList, TabsRoot } from './Tabs';
4
+ export { default as Switch } from './Switch';
5
+ export { default as Tooltip } from './Tooltip';
6
+ export { Select, SelectItem } from './Select';
7
+ export { default as Label } from './Label';
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ export * from './components';
@@ -0,0 +1,120 @@
1
+ import React, { MouseEventHandler } from 'react';
2
+
3
+ type Props$4 = {
4
+ disabled?: boolean;
5
+ children?: string;
6
+ size?: 'small' | 'medium' | 'large';
7
+ variant?: 'primary' | 'secondary';
8
+ onClick: MouseEventHandler<HTMLButtonElement>;
9
+ type?: 'button' | 'submit' | 'reset';
10
+ className?: string;
11
+ prefix?: string | React.ReactNode;
12
+ suffix?: string | React.ReactNode;
13
+ fullWidth?: boolean;
14
+ };
15
+ /**
16
+ * Button component documentation.
17
+ **/
18
+ declare function Button({ disabled, children, onClick, size, variant, type, prefix, suffix, className, fullWidth, ...props }: Props$4): React.JSX.Element;
19
+
20
+ type Props$3 = {
21
+ children: string | React.ReactNode;
22
+ open: boolean;
23
+ onOpenChange: (open: boolean) => void;
24
+ title?: string;
25
+ };
26
+ /**
27
+ - Focus is automatically trapped when modal.
28
+ - Manages screen reader announcements with Title and Description components.
29
+ - Esc closes the component automatically.
30
+ - [Accessibility and Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/dialog#accessibility)
31
+ **/
32
+ declare function Modal({ children, open, onOpenChange, title }: Props$3): React.JSX.Element;
33
+
34
+ type TabsRootProps = {
35
+ value: string;
36
+ onValueChange: (value: string) => void;
37
+ defaultValue?: string;
38
+ className?: string;
39
+ children: React.ReactNode;
40
+ };
41
+ /**
42
+ - [Full keyboard navigation](https://www.radix-ui.com/docs/primitives/components/tabs#accessibility).
43
+ **/
44
+ declare function TabsRoot({ children, className, ...props }: TabsRootProps): React.JSX.Element;
45
+ type TabsListProps = {
46
+ className?: string;
47
+ children: React.ReactNode;
48
+ };
49
+ declare function TabsList({ children, className }: TabsListProps): React.JSX.Element;
50
+ type TabProps = {
51
+ value: string;
52
+ className?: string;
53
+ children: React.ReactNode;
54
+ disabled?: boolean;
55
+ };
56
+ declare function Tab({ children, className, ...props }: TabProps): React.JSX.Element;
57
+ type TabsContentProps = {
58
+ value: string;
59
+ className?: string;
60
+ children: React.ReactNode;
61
+ };
62
+ declare function TabsContent({ children, value, className }: TabsContentProps): React.JSX.Element;
63
+
64
+ type Props$2 = {
65
+ checked?: boolean;
66
+ onCheckedChange?: (checked: boolean) => void;
67
+ className?: string;
68
+ id?: string;
69
+ disabled?: boolean;
70
+ required?: boolean;
71
+ value?: string;
72
+ name: string;
73
+ };
74
+ /**
75
+ * Accessibility [Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/switch#keyboard-interactions)
76
+ **/
77
+ declare function Switch({ className, id, disabled, required, name, ...props }: Props$2): React.JSX.Element;
78
+
79
+ type Props$1 = {
80
+ children: React.ReactNode;
81
+ content: React.ReactNode | string;
82
+ open?: boolean;
83
+ defaultOpen?: boolean;
84
+ onOpenChange?: (open: boolean) => void;
85
+ side?: 'top' | 'right' | 'bottom' | 'left';
86
+ align?: 'start' | 'center' | 'end';
87
+ className?: string;
88
+ delayDuration?: number;
89
+ skipDelayDuration?: number;
90
+ alignOffset?: number;
91
+ sideOffset?: number;
92
+ };
93
+ /**
94
+ * Accessibility [Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/tooltip#keyboard-interactions)
95
+ **/
96
+ declare function Tooltip({ children, content, open, defaultOpen, onOpenChange, side, align, className, delayDuration, sideOffset, ...props }: Props$1): React.JSX.Element;
97
+
98
+ type SelectProps = {
99
+ children: React.ReactNode;
100
+ sideOffset?: number;
101
+ position?: 'item-aligned' | 'popper';
102
+ value?: string;
103
+ disabled?: boolean;
104
+ onValueChange?: (value: string) => void;
105
+ };
106
+ declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLButtonElement>>;
107
+ type SelectItemProps = {
108
+ children: React.ReactNode;
109
+ value: string;
110
+ disabled?: boolean;
111
+ };
112
+ declare const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
113
+
114
+ type Props = {
115
+ htmlFor: string;
116
+ children: React.ReactNode;
117
+ };
118
+ declare function Label({ htmlFor, children }: Props): React.JSX.Element;
119
+
120
+ export { Button, Label, Modal, Select, SelectItem, Switch, Tab, TabsContent, TabsList, TabsRoot, Tooltip };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "demio-ui",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,7 +12,7 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "types": "dist/index.d.ts",
14
14
  "files": [
15
- "build/**/*",
15
+ "dist/**/*",
16
16
  "README.md",
17
17
  "package.json"
18
18
  ],