@medusajs/ui 0.0.0-alpha-20230713141422
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/README.md +3 -0
- package/build/cjs/components/alert-dialog/alert-dialog.js +151 -0
- package/build/cjs/components/avatar/avatar.js +97 -0
- package/build/cjs/components/badge/badge.js +98 -0
- package/build/cjs/components/button/button.js +104 -0
- package/build/cjs/components/checkbox/checkbox.js +45 -0
- package/build/cjs/components/container/container.js +36 -0
- package/build/cjs/components/drawer/drawer.js +136 -0
- package/build/cjs/components/dropdown-menu/dropdown-menu.js +168 -0
- package/build/cjs/components/focus-modal/focus-modal.js +102 -0
- package/build/cjs/components/heading/heading.js +52 -0
- package/build/cjs/components/input/input.js +50 -0
- package/build/cjs/components/kbd/kbd.js +39 -0
- package/build/cjs/components/label/label.js +63 -0
- package/build/cjs/components/radio-group/radio-group.js +60 -0
- package/build/cjs/components/switch/switch.js +67 -0
- package/build/cjs/components/text/text.js +71 -0
- package/build/cjs/components/textarea/textarea.js +39 -0
- package/build/cjs/components/toast/toast.js +130 -0
- package/build/cjs/components/toaster/toaster.js +42 -0
- package/build/cjs/components/tooltip/tooltip.js +68 -0
- package/build/cjs/hooks/use-alert-dialog/dialog.js +97 -0
- package/build/cjs/hooks/use-alert-dialog/use-alert-dialog.js +54 -0
- package/build/cjs/hooks/use-toast/use-toast.js +163 -0
- package/build/cjs/hooks/use-toggle-state/use-toggle-state.js +43 -0
- package/build/cjs/index.js +53 -0
- package/build/cjs/utils/clx.js +10 -0
- package/build/esm/components/alert-dialog/alert-dialog.js +129 -0
- package/build/esm/components/avatar/avatar.js +75 -0
- package/build/esm/components/badge/badge.js +77 -0
- package/build/esm/components/button/button.js +83 -0
- package/build/esm/components/checkbox/checkbox.js +23 -0
- package/build/esm/components/container/container.js +15 -0
- package/build/esm/components/drawer/drawer.js +114 -0
- package/build/esm/components/dropdown-menu/dropdown-menu.js +146 -0
- package/build/esm/components/focus-modal/focus-modal.js +80 -0
- package/build/esm/components/heading/heading.js +30 -0
- package/build/esm/components/input/input.js +29 -0
- package/build/esm/components/kbd/kbd.js +18 -0
- package/build/esm/components/label/label.js +40 -0
- package/build/esm/components/radio-group/radio-group.js +38 -0
- package/build/esm/components/switch/switch.js +45 -0
- package/build/esm/components/text/text.js +49 -0
- package/build/esm/components/textarea/textarea.js +18 -0
- package/build/esm/components/toast/toast.js +106 -0
- package/build/esm/components/toaster/toaster.js +21 -0
- package/build/esm/components/tooltip/tooltip.js +46 -0
- package/build/esm/hooks/use-alert-dialog/dialog.js +74 -0
- package/build/esm/hooks/use-alert-dialog/use-alert-dialog.js +33 -0
- package/build/esm/hooks/use-toast/use-toast.js +140 -0
- package/build/esm/hooks/use-toggle-state/use-toggle-state.js +22 -0
- package/build/esm/index.js +24 -0
- package/build/esm/utils/clx.js +8 -0
- package/build/types/src/components/alert-dialog/alert-dialog.d.ts +14 -0
- package/build/types/src/components/alert-dialog/alert-dialog.d.ts.map +1 -0
- package/build/types/src/components/alert-dialog/index.d.ts +2 -0
- package/build/types/src/components/alert-dialog/index.d.ts.map +1 -0
- package/build/types/src/components/avatar/avatar.d.ts +14 -0
- package/build/types/src/components/avatar/avatar.d.ts.map +1 -0
- package/build/types/src/components/avatar/index.d.ts +2 -0
- package/build/types/src/components/avatar/index.d.ts.map +1 -0
- package/build/types/src/components/badge/badge.d.ts +13 -0
- package/build/types/src/components/badge/badge.d.ts.map +1 -0
- package/build/types/src/components/badge/index.d.ts +2 -0
- package/build/types/src/components/badge/index.d.ts.map +1 -0
- package/build/types/src/components/button/button.d.ts +14 -0
- package/build/types/src/components/button/button.d.ts.map +1 -0
- package/build/types/src/components/button/index.d.ts +2 -0
- package/build/types/src/components/button/index.d.ts.map +1 -0
- package/build/types/src/components/checkbox/checkbox.d.ts +5 -0
- package/build/types/src/components/checkbox/checkbox.d.ts.map +1 -0
- package/build/types/src/components/checkbox/index.d.ts +2 -0
- package/build/types/src/components/checkbox/index.d.ts.map +1 -0
- package/build/types/src/components/container/container.d.ts +4 -0
- package/build/types/src/components/container/container.d.ts.map +1 -0
- package/build/types/src/components/container/index.d.ts +2 -0
- package/build/types/src/components/container/index.d.ts.map +1 -0
- package/build/types/src/components/drawer/drawer.d.ts +22 -0
- package/build/types/src/components/drawer/drawer.d.ts.map +1 -0
- package/build/types/src/components/drawer/index.d.ts +2 -0
- package/build/types/src/components/drawer/index.d.ts.map +1 -0
- package/build/types/src/components/dropdown-menu/dropdown-menu.d.ts +26 -0
- package/build/types/src/components/dropdown-menu/dropdown-menu.d.ts.map +1 -0
- package/build/types/src/components/dropdown-menu/index.d.ts +2 -0
- package/build/types/src/components/dropdown-menu/index.d.ts.map +1 -0
- package/build/types/src/components/focus-modal/focus-modal.d.ts +16 -0
- package/build/types/src/components/focus-modal/focus-modal.d.ts.map +1 -0
- package/build/types/src/components/focus-modal/index.d.ts +2 -0
- package/build/types/src/components/focus-modal/index.d.ts.map +1 -0
- package/build/types/src/components/heading/heading.d.ts +9 -0
- package/build/types/src/components/heading/heading.d.ts.map +1 -0
- package/build/types/src/components/heading/index.d.ts +2 -0
- package/build/types/src/components/heading/index.d.ts.map +1 -0
- package/build/types/src/components/input/index.d.ts +2 -0
- package/build/types/src/components/input/index.d.ts.map +1 -0
- package/build/types/src/components/input/input.d.ts +4 -0
- package/build/types/src/components/input/input.d.ts.map +1 -0
- package/build/types/src/components/kbd/index.d.ts +2 -0
- package/build/types/src/components/kbd/index.d.ts.map +1 -0
- package/build/types/src/components/kbd/kbd.d.ts +4 -0
- package/build/types/src/components/kbd/kbd.d.ts.map +1 -0
- package/build/types/src/components/label/index.d.ts +2 -0
- package/build/types/src/components/label/index.d.ts.map +1 -0
- package/build/types/src/components/label/label.d.ts +11 -0
- package/build/types/src/components/label/label.d.ts.map +1 -0
- package/build/types/src/components/radio-group/index.d.ts +2 -0
- package/build/types/src/components/radio-group/index.d.ts.map +1 -0
- package/build/types/src/components/radio-group/radio-group.d.ts +7 -0
- package/build/types/src/components/radio-group/radio-group.d.ts.map +1 -0
- package/build/types/src/components/switch/index.d.ts +2 -0
- package/build/types/src/components/switch/index.d.ts.map +1 -0
- package/build/types/src/components/switch/switch.d.ts +11 -0
- package/build/types/src/components/switch/switch.d.ts.map +1 -0
- package/build/types/src/components/text/index.d.ts +2 -0
- package/build/types/src/components/text/index.d.ts.map +1 -0
- package/build/types/src/components/text/text.d.ts +13 -0
- package/build/types/src/components/text/text.d.ts.map +1 -0
- package/build/types/src/components/textarea/index.d.ts +2 -0
- package/build/types/src/components/textarea/index.d.ts.map +1 -0
- package/build/types/src/components/textarea/textarea.d.ts +4 -0
- package/build/types/src/components/textarea/textarea.d.ts.map +1 -0
- package/build/types/src/components/toast/index.d.ts +2 -0
- package/build/types/src/components/toast/index.d.ts.map +1 -0
- package/build/types/src/components/toast/toast.d.ts +20 -0
- package/build/types/src/components/toast/toast.d.ts.map +1 -0
- package/build/types/src/components/toaster/index.d.ts +2 -0
- package/build/types/src/components/toaster/index.d.ts.map +1 -0
- package/build/types/src/components/toaster/toaster.d.ts +4 -0
- package/build/types/src/components/toaster/toaster.d.ts.map +1 -0
- package/build/types/src/components/tooltip/index.d.ts +2 -0
- package/build/types/src/components/tooltip/index.d.ts.map +1 -0
- package/build/types/src/components/tooltip/tooltip.d.ts +11 -0
- package/build/types/src/components/tooltip/tooltip.d.ts.map +1 -0
- package/build/types/src/hooks/use-alert-dialog/dialog.d.ts +14 -0
- package/build/types/src/hooks/use-alert-dialog/dialog.d.ts.map +1 -0
- package/build/types/src/hooks/use-alert-dialog/index.d.ts +2 -0
- package/build/types/src/hooks/use-alert-dialog/index.d.ts.map +1 -0
- package/build/types/src/hooks/use-alert-dialog/use-alert-dialog.d.ts +5 -0
- package/build/types/src/hooks/use-alert-dialog/use-alert-dialog.d.ts.map +1 -0
- package/build/types/src/hooks/use-toast/index.d.ts +2 -0
- package/build/types/src/hooks/use-toast/index.d.ts.map +1 -0
- package/build/types/src/hooks/use-toast/use-toast.d.ts +45 -0
- package/build/types/src/hooks/use-toast/use-toast.d.ts.map +1 -0
- package/build/types/src/hooks/use-toggle-state/index.d.ts +2 -0
- package/build/types/src/hooks/use-toggle-state/index.d.ts.map +1 -0
- package/build/types/src/hooks/use-toggle-state/use-toggle-state.d.ts +9 -0
- package/build/types/src/hooks/use-toggle-state/use-toggle-state.d.ts.map +1 -0
- package/build/types/src/index.d.ts +25 -0
- package/build/types/src/index.d.ts.map +1 -0
- package/build/types/src/utils/clx.d.ts +3 -0
- package/build/types/src/utils/clx.d.ts.map +1 -0
- package/package.json +111 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
// import * as React from "react"
|
|
4
|
+
|
|
5
|
+
const TOAST_LIMIT = 1;
|
|
6
|
+
const TOAST_REMOVE_DELAY = 1000000;
|
|
7
|
+
let count = 0;
|
|
8
|
+
function genId() {
|
|
9
|
+
count = (count + 1) % Number.MAX_VALUE;
|
|
10
|
+
return count.toString();
|
|
11
|
+
}
|
|
12
|
+
const toastTimeouts = new Map();
|
|
13
|
+
const addToRemoveQueue = toastId => {
|
|
14
|
+
if (toastTimeouts.has(toastId)) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
const timeout = setTimeout(() => {
|
|
18
|
+
toastTimeouts.delete(toastId);
|
|
19
|
+
dispatch({
|
|
20
|
+
type: "REMOVE_TOAST",
|
|
21
|
+
toastId: toastId
|
|
22
|
+
});
|
|
23
|
+
}, TOAST_REMOVE_DELAY);
|
|
24
|
+
toastTimeouts.set(toastId, timeout);
|
|
25
|
+
};
|
|
26
|
+
const reducer = (state, action) => {
|
|
27
|
+
switch (action.type) {
|
|
28
|
+
case "ADD_TOAST":
|
|
29
|
+
return {
|
|
30
|
+
...state,
|
|
31
|
+
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
|
|
32
|
+
};
|
|
33
|
+
case "UPDATE_TOAST":
|
|
34
|
+
return {
|
|
35
|
+
...state,
|
|
36
|
+
toasts: state.toasts.map(t => t.id === action.toast.id ? {
|
|
37
|
+
...t,
|
|
38
|
+
...action.toast
|
|
39
|
+
} : t)
|
|
40
|
+
};
|
|
41
|
+
case "DISMISS_TOAST":
|
|
42
|
+
{
|
|
43
|
+
const {
|
|
44
|
+
toastId
|
|
45
|
+
} = action;
|
|
46
|
+
|
|
47
|
+
// ! Side effects ! - This could be extracted into a dismissToast() action,
|
|
48
|
+
// but I'll keep it here for simplicity
|
|
49
|
+
if (toastId) {
|
|
50
|
+
addToRemoveQueue(toastId);
|
|
51
|
+
} else {
|
|
52
|
+
state.toasts.forEach(toast => {
|
|
53
|
+
addToRemoveQueue(toast.id);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
...state,
|
|
58
|
+
toasts: state.toasts.map(t => t.id === toastId || toastId === undefined ? {
|
|
59
|
+
...t,
|
|
60
|
+
open: false
|
|
61
|
+
} : t)
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
case "REMOVE_TOAST":
|
|
65
|
+
if (action.toastId === undefined) {
|
|
66
|
+
return {
|
|
67
|
+
...state,
|
|
68
|
+
toasts: []
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
...state,
|
|
73
|
+
toasts: state.toasts.filter(t => t.id !== action.toastId)
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
const listeners = [];
|
|
78
|
+
let memoryState = {
|
|
79
|
+
toasts: []
|
|
80
|
+
};
|
|
81
|
+
function dispatch(action) {
|
|
82
|
+
memoryState = reducer(memoryState, action);
|
|
83
|
+
listeners.forEach(listener => {
|
|
84
|
+
listener(memoryState);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function toast({
|
|
88
|
+
...props
|
|
89
|
+
}) {
|
|
90
|
+
const id = genId();
|
|
91
|
+
const update = props => dispatch({
|
|
92
|
+
type: "UPDATE_TOAST",
|
|
93
|
+
toast: {
|
|
94
|
+
...props,
|
|
95
|
+
id
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
const dismiss = () => dispatch({
|
|
99
|
+
type: "DISMISS_TOAST",
|
|
100
|
+
toastId: id
|
|
101
|
+
});
|
|
102
|
+
dispatch({
|
|
103
|
+
type: "ADD_TOAST",
|
|
104
|
+
toast: {
|
|
105
|
+
...props,
|
|
106
|
+
id,
|
|
107
|
+
open: true,
|
|
108
|
+
onOpenChange: open => {
|
|
109
|
+
if (!open) dismiss();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
return {
|
|
114
|
+
id: id,
|
|
115
|
+
dismiss,
|
|
116
|
+
update
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function useToast() {
|
|
120
|
+
const [state, setState] = React.useState(memoryState);
|
|
121
|
+
React.useEffect(() => {
|
|
122
|
+
listeners.push(setState);
|
|
123
|
+
return () => {
|
|
124
|
+
const index = listeners.indexOf(setState);
|
|
125
|
+
if (index > -1) {
|
|
126
|
+
listeners.splice(index, 1);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
}, [state]);
|
|
130
|
+
return {
|
|
131
|
+
...state,
|
|
132
|
+
toast,
|
|
133
|
+
dismiss: toastId => dispatch({
|
|
134
|
+
type: "DISMISS_TOAST",
|
|
135
|
+
toastId
|
|
136
|
+
})
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export { reducer, toast, useToast };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
const useToggleState = (initial = false) => {
|
|
4
|
+
const [state, setState] = React.useState(initial);
|
|
5
|
+
const close = () => {
|
|
6
|
+
setState(false);
|
|
7
|
+
};
|
|
8
|
+
const open = () => {
|
|
9
|
+
setState(true);
|
|
10
|
+
};
|
|
11
|
+
const toggle = () => {
|
|
12
|
+
setState(state => !state);
|
|
13
|
+
};
|
|
14
|
+
const hookData = [state, open, close, toggle];
|
|
15
|
+
hookData.state = state;
|
|
16
|
+
hookData.open = open;
|
|
17
|
+
hookData.close = close;
|
|
18
|
+
hookData.toggle = toggle;
|
|
19
|
+
return hookData;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { useToggleState };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { clx } from './utils/clx.js';
|
|
2
|
+
export { AlertDialog } from './components/alert-dialog/alert-dialog.js';
|
|
3
|
+
export { Avatar } from './components/avatar/avatar.js';
|
|
4
|
+
export { Badge } from './components/badge/badge.js';
|
|
5
|
+
export { Button } from './components/button/button.js';
|
|
6
|
+
export { Checkbox } from './components/checkbox/checkbox.js';
|
|
7
|
+
export { Container } from './components/container/container.js';
|
|
8
|
+
export { Drawer } from './components/drawer/drawer.js';
|
|
9
|
+
export { DropdownMenu } from './components/dropdown-menu/dropdown-menu.js';
|
|
10
|
+
export { FocusModal } from './components/focus-modal/focus-modal.js';
|
|
11
|
+
export { Heading } from './components/heading/heading.js';
|
|
12
|
+
export { Input } from './components/input/input.js';
|
|
13
|
+
export { Kbd } from './components/kbd/kbd.js';
|
|
14
|
+
export { Label } from './components/label/label.js';
|
|
15
|
+
export { RadioGroup } from './components/radio-group/radio-group.js';
|
|
16
|
+
export { Switch } from './components/switch/switch.js';
|
|
17
|
+
export { Text } from './components/text/text.js';
|
|
18
|
+
export { Textarea } from './components/textarea/textarea.js';
|
|
19
|
+
export { Toast } from './components/toast/toast.js';
|
|
20
|
+
export { Toaster } from './components/toaster/toaster.js';
|
|
21
|
+
export { Tooltip } from './components/tooltip/tooltip.js';
|
|
22
|
+
export { useAlertDialog } from './hooks/use-alert-dialog/use-alert-dialog.js';
|
|
23
|
+
export { useToast } from './hooks/use-toast/use-toast.js';
|
|
24
|
+
export { useToggleState } from './hooks/use-toggle-state/use-toggle-state.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as Primitives from "@radix-ui/react-alert-dialog";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const AlertDialog: React.FC<Primitives.AlertDialogProps> & {
|
|
4
|
+
Trigger: React.ForwardRefExoticComponent<Primitives.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
Content: React.ForwardRefExoticComponent<Omit<Primitives.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
Title: React.ForwardRefExoticComponent<Omit<Omit<Primitives.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref">, "asChild"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
7
|
+
Description: React.ForwardRefExoticComponent<Omit<Primitives.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
8
|
+
Action: React.ForwardRefExoticComponent<Omit<Omit<Primitives.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref">, "asChild"> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
Cancel: React.ForwardRefExoticComponent<Omit<Omit<Primitives.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref">, "asChild"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
Header: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
|
|
11
|
+
Footer: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
|
|
12
|
+
};
|
|
13
|
+
export { AlertDialog };
|
|
14
|
+
//# sourceMappingURL=alert-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/alert-dialog/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,8BAA8B,CAAA;AAC1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAwI9B,QAAA,MAAM,WAAW;;;;;;;sCArBd,MAAM,cAAc,CAAC,cAAc,CAAC;sCAYpC,MAAM,cAAc,CAAC,cAAc,CAAC;CAkBrC,CAAA;AAEF,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/alert-dialog/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as Primitives from "@radix-ui/react-avatar";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare const avatarVariants: (props?: ({
|
|
5
|
+
variant?: "squared" | "rounded" | null | undefined;
|
|
6
|
+
size?: "base" | "large" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
|
+
interface AvatarProps extends Omit<React.ComponentPropsWithoutRef<typeof Primitives.Root>, "asChild" | "children" | "size">, VariantProps<typeof avatarVariants> {
|
|
9
|
+
src?: string;
|
|
10
|
+
fallback: string;
|
|
11
|
+
}
|
|
12
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
13
|
+
export { Avatar };
|
|
14
|
+
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAA;AACpD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,QAAA,MAAM,cAAc;;;mFAkBnB,CAAA;AAmBD,UAAU,WACR,SAAQ,IAAI,CACR,KAAK,CAAC,wBAAwB,CAAC,OAAO,UAAU,CAAC,IAAI,CAAC,EACtD,SAAS,GAAG,UAAU,GAAG,MAAM,CAChC,EACD,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,QAAA,MAAM,MAAM,qFA+BX,CAAA;AAGD,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/avatar/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
type?: "default" | "icon" | "rounded" | null | undefined;
|
|
5
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
6
|
+
color?: "green" | "red" | "blue" | "orange" | "grey" | "purple" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
|
+
interface BadgeProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color">, VariantProps<typeof badgeVariants> {
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
12
|
+
export { Badge };
|
|
13
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../../src/components/badge/badge.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,QAAA,MAAM,aAAa;;;;mFA8CjB,CAAA;AAEF,UAAU,UACR,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC,EAC1D,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,KAAK,oFAYV,CAAA;AAGD,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/badge/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "primary" | "secondary" | "transparent" | "danger" | null | undefined;
|
|
5
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
6
|
+
format?: "default" | "icon" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
|
+
interface ButtonProps extends React.ComponentPropsWithoutRef<"button">, VariantProps<typeof buttonVariants> {
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
asChild?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
export { Button };
|
|
14
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,QAAA,MAAM,cAAc;;;;mFAoEnB,CAAA;AAED,UAAU,WACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAC9C,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,MAAM,uFAiBX,CAAA;AAGD,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as Primitives from "@radix-ui/react-checkbox";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<Primitives.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export { Checkbox };
|
|
5
|
+
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkbox/checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,UAAU,MAAM,0BAA0B,CAAA;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,QAAQ,0JAqBZ,CAAA;AAGF,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkbox/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../../src/components/container/container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,SAAS,6GAcb,CAAA;AAGF,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/container/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Primitives from "@radix-ui/react-dialog";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export declare const Drawer: React.FC<Primitives.DialogProps> & {
|
|
4
|
+
Body: {
|
|
5
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
Close: React.ForwardRefExoticComponent<Primitives.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
Content: React.ForwardRefExoticComponent<Omit<Primitives.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Description: React.ForwardRefExoticComponent<Omit<Primitives.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
11
|
+
Footer: {
|
|
12
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
Header: {
|
|
16
|
+
({ children, className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
Title: React.ForwardRefExoticComponent<Omit<Primitives.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
20
|
+
Trigger: React.ForwardRefExoticComponent<Primitives.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=drawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../../src/components/drawer/drawer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAkI9B,eAAO,MAAM,MAAM;;kCA9ChB,MAAM,cAAc,CAAC,cAAc,CAAC;;;;;;;kCAQpC,MAAM,cAAc,CAAC,cAAc,CAAC;;;;4CAjCpC,MAAM,cAAc,CAAC,cAAc,CAAC;;;;;CAgFrC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/drawer/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as Primitives from "@radix-ui/react-dropdown-menu";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const DropdownMenu: React.FC<Primitives.DropdownMenuProps> & {
|
|
4
|
+
Trigger: React.ForwardRefExoticComponent<Primitives.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
Group: React.ForwardRefExoticComponent<Primitives.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
SubMenu: React.FC<Primitives.DropdownMenuSubProps>;
|
|
7
|
+
SubMenuContent: React.ForwardRefExoticComponent<Omit<Primitives.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
SubMenuTrigger: React.ForwardRefExoticComponent<Omit<Primitives.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Content: React.ForwardRefExoticComponent<Omit<Primitives.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Item: React.ForwardRefExoticComponent<Omit<Primitives.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
CheckboxItem: React.ForwardRefExoticComponent<Omit<Primitives.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
RadioGroup: React.ForwardRefExoticComponent<Primitives.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
RadioItem: React.ForwardRefExoticComponent<Omit<Primitives.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Label: React.ForwardRefExoticComponent<Omit<Primitives.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Separator: React.ForwardRefExoticComponent<Omit<Primitives.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
Shortcut: {
|
|
17
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
Hint: {
|
|
21
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export { DropdownMenu };
|
|
26
|
+
//# sourceMappingURL=dropdown-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../../../../src/components/dropdown-menu/dropdown-menu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AA6M9B,QAAA,MAAM,YAAY;;;;;;;;;;;;;;kCAnCf,MAAM,cAAc,CAAC,eAAe,CAAC;;;;kCAmBrC,MAAM,cAAc,CAAC,eAAe,CAAC;;;CA+BtC,CAAA;AAEF,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/dropdown-menu/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as Primitives from "@radix-ui/react-dialog";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export declare const FocusModal: {
|
|
4
|
+
Root: React.FC<Primitives.DialogProps>;
|
|
5
|
+
Trigger: React.ForwardRefExoticComponent<Primitives.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
Content: React.ForwardRefExoticComponent<Omit<Primitives.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Header: {
|
|
8
|
+
({ children, className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
Body: {
|
|
12
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=focus-modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focus-modal.d.ts","sourceRoot":"","sources":["../../../../../src/components/focus-modal/focus-modal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AA2F9B,eAAO,MAAM,UAAU;;;;;4CA/BpB,MAAM,cAAc,CAAC,cAAc,CAAC;;;;kCA0BpC,MAAM,cAAc,CAAC,cAAc,CAAC;;;CAWtC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/focus-modal/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const headingVariants: (props?: ({
|
|
4
|
+
level?: "h1" | "h2" | "h3" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
|
+
type HeadingProps = VariantProps<typeof headingVariants> & React.HTMLAttributes<HTMLHeadingElement>;
|
|
7
|
+
declare const Heading: ({ level, className, ...props }: HeadingProps) => React.JSX.Element;
|
|
8
|
+
export { Heading, headingVariants };
|
|
9
|
+
//# sourceMappingURL=heading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../../../src/components/heading/heading.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,eAAe;;mFAWnB,CAAA;AAEF,KAAK,YAAY,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,GACtD,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAA;AAE1C,QAAA,MAAM,OAAO,mCAAoC,YAAY,sBAS5D,CAAA;AAED,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/heading/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/input/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../src/components/input/input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAiB9B,QAAA,MAAM,KAAK,sHAeT,CAAA;AAGF,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/kbd/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kbd.d.ts","sourceRoot":"","sources":["../../../../../src/components/kbd/kbd.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,QAAA,MAAM,GAAG,sCAIN,MAAM,wBAAwB,CAAC,KAAK,CAAC,sBAavC,CAAA;AAED,OAAO,EAAE,GAAG,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/label/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const labelVariants: (props?: ({
|
|
4
|
+
size?: "xsmall" | "small" | "base" | "large" | null | undefined;
|
|
5
|
+
weight?: "regular" | "plus" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
interface LabelProps extends React.ComponentPropsWithoutRef<"label">, VariantProps<typeof labelVariants> {
|
|
8
|
+
}
|
|
9
|
+
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
10
|
+
export { Label, labelVariants };
|
|
11
|
+
//# sourceMappingURL=label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../../../src/components/label/label.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,aAAa;;;mFAiBjB,CAAA;AAEF,UAAU,UACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC,EAC7C,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzC,QAAA,MAAM,KAAK,qFAUV,CAAA;AAGD,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/radio-group/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as Primitives from "@radix-ui/react-radio-group";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export declare const RadioGroup: {
|
|
4
|
+
Root: React.ForwardRefExoticComponent<Omit<Primitives.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
Item: React.ForwardRefExoticComponent<Omit<Primitives.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../../../src/components/radio-group/radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAA;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AA6C9B,eAAO,MAAM,UAAU;;;CAGtB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/switch/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as Primitives from "@radix-ui/react-switch";
|
|
2
|
+
import { VariantProps } from "class-variance-authority";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare const switchVariants: (props?: ({
|
|
5
|
+
size?: "small" | "base" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
interface SwitchProps extends React.ComponentPropsWithoutRef<typeof Primitives.Root>, VariantProps<typeof switchVariants> {
|
|
8
|
+
}
|
|
9
|
+
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export { Switch };
|
|
11
|
+
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../../src/components/switch/switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,cAAc;;mFAanB,CAAA;AAkBD,UAAU,WACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,UAAU,CAAC,IAAI,CAAC,EAC5D,YAAY,CAAC,OAAO,cAAc,CAAC;CAAG;AAE1C,QAAA,MAAM,MAAM,uFAWV,CAAA;AAGF,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const textVariants: (props?: ({
|
|
4
|
+
size?: "base" | "large" | "xlarge" | null | undefined;
|
|
5
|
+
weight?: "regular" | "plus" | null | undefined;
|
|
6
|
+
family?: "sans" | "mono" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
|
+
interface TextProps extends React.ComponentPropsWithoutRef<"p">, VariantProps<typeof textVariants> {
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
12
|
+
export { Text, textVariants };
|
|
13
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../../src/components/text/text.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,YAAY;;;;mFAqBhB,CAAA;AAEF,UAAU,SACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,EACzC,YAAY,CAAC,OAAO,YAAY,CAAC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,IAAI,wFAyBT,CAAA;AAGD,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,CAAA"}
|