@causw/core 0.0.15 → 0.0.17
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 +123 -0
- package/dist/components/Avatar/Avatar.d.cts +3 -2
- package/dist/components/Avatar/Avatar.d.cts.map +1 -1
- package/dist/components/Avatar/Avatar.d.mts +2 -2
- package/dist/components/Avatar/Avatar.styles.d.cts +3 -3
- package/dist/components/Avatar/Avatar.styles.d.mts +3 -3
- package/dist/components/Avatar/index.d.cts +2 -0
- package/dist/components/BottomNavigation/BottomNavigation.d.cts +6 -5
- package/dist/components/BottomNavigation/BottomNavigation.d.cts.map +1 -1
- package/dist/components/BottomNavigation/BottomNavigation.d.mts +5 -5
- package/dist/components/BottomNavigation/BottomNavigation.styles.d.mts +3 -3
- package/dist/components/BottomNavigation/index.d.cts +1 -0
- package/dist/components/BottomSheet/BottomSheet.d.cts +6 -6
- package/dist/components/BottomSheet/BottomSheet.d.mts +6 -6
- package/dist/components/BottomSheet/BottomSheet.styles.d.cts +3 -3
- package/dist/components/BottomSheet/BottomSheet.styles.d.mts +3 -3
- package/dist/components/BottomSheet/index.d.cts +1 -0
- package/dist/components/Box/Box.d.cts +1 -0
- package/dist/components/Box/Box.d.cts.map +1 -1
- package/dist/components/Box/index.d.cts +2 -0
- package/dist/components/Button/Button.d.cts +3 -2
- package/dist/components/Button/Button.d.cts.map +1 -1
- package/dist/components/Button/Button.d.mts +2 -2
- package/dist/components/Button/Button.d.mts.map +1 -1
- package/dist/components/Button/Button.styles.cjs +1 -1
- package/dist/components/Button/Button.styles.d.cts +5 -5
- package/dist/components/Button/Button.styles.d.mts +5 -5
- package/dist/components/Button/Button.styles.mjs +1 -1
- package/dist/components/Button/Button.styles.mjs.map +1 -1
- package/dist/components/Button/index.d.cts +1 -0
- package/dist/components/CTAButton/CTAButton.d.cts +3 -2
- package/dist/components/CTAButton/CTAButton.d.cts.map +1 -1
- package/dist/components/CTAButton/CTAButton.styles.cjs +1 -1
- package/dist/components/CTAButton/CTAButton.styles.d.cts +5 -5
- package/dist/components/CTAButton/CTAButton.styles.d.mts +5 -5
- package/dist/components/CTAButton/CTAButton.styles.mjs +1 -1
- package/dist/components/CTAButton/CTAButton.styles.mjs.map +1 -1
- package/dist/components/CTAButton/index.d.cts +1 -0
- package/dist/components/Calendar/Calendar.cjs +2 -2
- package/dist/components/Calendar/Calendar.d.cts +4 -2
- package/dist/components/Calendar/Calendar.d.cts.map +1 -1
- package/dist/components/Calendar/Calendar.d.mts +4 -2
- package/dist/components/Calendar/Calendar.d.mts.map +1 -1
- package/dist/components/Calendar/Calendar.mjs +2 -2
- package/dist/components/Calendar/Calendar.mjs.map +1 -1
- package/dist/components/Calendar/Calendar.styles.d.cts +3 -3
- package/dist/components/Calendar/Calendar.styles.d.mts +3 -3
- package/dist/components/Checkbox/Checkbox.d.cts +6 -4
- package/dist/components/Checkbox/Checkbox.d.cts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.mts +4 -4
- package/dist/components/Checkbox/Checkbox.styles.d.cts +3 -3
- package/dist/components/Checkbox/index.d.cts +1 -0
- package/dist/components/Chip/Chip.d.cts +3 -2
- package/dist/components/Chip/Chip.d.cts.map +1 -1
- package/dist/components/Chip/Chip.d.mts +2 -2
- package/dist/components/Chip/Chip.styles.cjs +1 -1
- package/dist/components/Chip/Chip.styles.d.cts +3 -3
- package/dist/components/Chip/Chip.styles.d.mts +3 -3
- package/dist/components/Chip/Chip.styles.mjs +1 -1
- package/dist/components/Chip/Chip.styles.mjs.map +1 -1
- package/dist/components/Chip/index.d.cts +2 -0
- package/dist/components/DatePicker/DatePicker.cjs +93 -0
- package/dist/components/DatePicker/DatePicker.d.cts +40 -0
- package/dist/components/DatePicker/DatePicker.d.cts.map +1 -0
- package/dist/components/DatePicker/DatePicker.d.mts +41 -0
- package/dist/components/DatePicker/DatePicker.d.mts.map +1 -0
- package/dist/components/DatePicker/DatePicker.mjs +92 -0
- package/dist/components/DatePicker/DatePicker.mjs.map +1 -0
- package/dist/components/DatePicker/DatePicker.styles.cjs +33 -0
- package/dist/components/DatePicker/DatePicker.styles.d.cts +84 -0
- package/dist/components/DatePicker/DatePicker.styles.d.cts.map +1 -0
- package/dist/components/DatePicker/DatePicker.styles.d.mts +84 -0
- package/dist/components/DatePicker/DatePicker.styles.d.mts.map +1 -0
- package/dist/components/DatePicker/DatePicker.styles.mjs +33 -0
- package/dist/components/DatePicker/DatePicker.styles.mjs.map +1 -0
- package/dist/components/DatePicker/index.d.cts +2 -0
- package/dist/components/DatePicker/index.d.mts +2 -0
- package/dist/components/Dialog/Dialog.d.cts +9 -8
- package/dist/components/Dialog/Dialog.d.cts.map +1 -1
- package/dist/components/Dialog/Dialog.d.mts +5 -5
- package/dist/components/Dialog/Dialog.styles.d.cts +3 -3
- package/dist/components/Dialog/Dialog.styles.d.mts +3 -3
- package/dist/components/Dialog/index.d.cts +2 -0
- package/dist/components/Drawer/Drawer.d.cts +11 -11
- package/dist/components/Drawer/Drawer.d.cts.map +1 -1
- package/dist/components/Drawer/Drawer.d.mts +3 -3
- package/dist/components/Drawer/Drawer.styles.d.cts +3 -3
- package/dist/components/Drawer/Drawer.styles.d.mts +3 -3
- package/dist/components/Drawer/index.d.cts +1 -0
- package/dist/components/Dropdown/Dropdown.d.mts +3 -3
- package/dist/components/Dropdown/Dropdown.styles.d.cts +3 -3
- package/dist/components/Dropdown/Dropdown.styles.d.mts +3 -3
- package/dist/components/Dropdown/Dropdown.styles.d.mts.map +1 -1
- package/dist/components/Dropdown/index.d.cts +2 -0
- package/dist/components/Field/Field.d.cts +6 -5
- package/dist/components/Field/Field.d.cts.map +1 -1
- package/dist/components/Field/Field.d.mts +5 -5
- package/dist/components/Field/index.d.cts +1 -0
- package/dist/components/Flex/Flex.d.cts +1 -0
- package/dist/components/Flex/Flex.d.cts.map +1 -1
- package/dist/components/Flex/index.d.cts +2 -0
- package/dist/components/Float/Float.d.cts +1 -0
- package/dist/components/Float/Float.d.cts.map +1 -1
- package/dist/components/Float/Float.styles.d.mts +3 -3
- package/dist/components/Float/index.d.cts +1 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.d.cts +3 -2
- package/dist/components/FloatingActionButton/FloatingActionButton.d.cts.map +1 -1
- package/dist/components/FloatingActionButton/FloatingActionButton.d.mts +2 -2
- package/dist/components/FloatingActionButton/FloatingActionButton.styles.d.cts +3 -3
- package/dist/components/FloatingActionButton/FloatingActionButton.styles.d.mts +3 -3
- package/dist/components/FloatingActionButton/index.d.cts +1 -0
- package/dist/components/Grid/Grid.d.cts +1 -0
- package/dist/components/Grid/Grid.d.cts.map +1 -1
- package/dist/components/Grid/Grid.styles.d.mts +3 -3
- package/dist/components/Grid/index.d.cts +1 -0
- package/dist/components/HStack/HStack.d.cts +3 -2
- package/dist/components/HStack/HStack.d.cts.map +1 -1
- package/dist/components/HStack/HStack.d.mts +2 -2
- package/dist/components/HStack/index.d.cts +1 -0
- package/dist/components/Modal/Modal.cjs +4 -7
- package/dist/components/Modal/Modal.d.cts +14 -15
- package/dist/components/Modal/Modal.d.cts.map +1 -1
- package/dist/components/Modal/Modal.d.mts +10 -12
- package/dist/components/Modal/Modal.d.mts.map +1 -1
- package/dist/components/Modal/Modal.mjs +4 -7
- package/dist/components/Modal/Modal.mjs.map +1 -1
- package/dist/components/Modal/Modal.styles.cjs +15 -26
- package/dist/components/Modal/Modal.styles.d.cts +3 -39
- package/dist/components/Modal/Modal.styles.d.cts.map +1 -1
- package/dist/components/Modal/Modal.styles.d.mts +0 -36
- package/dist/components/Modal/Modal.styles.d.mts.map +1 -1
- package/dist/components/Modal/Modal.styles.mjs +15 -26
- package/dist/components/Modal/Modal.styles.mjs.map +1 -1
- package/dist/components/Modal/index.d.cts +2 -0
- package/dist/components/Primitive/Primitive.d.cts +16 -16
- package/dist/components/Primitive/Primitive.d.mts +16 -16
- package/dist/components/Primitive/index.d.cts +1 -0
- package/dist/components/PullToRefresh/PullToRefresh.cjs +79 -0
- package/dist/components/PullToRefresh/PullToRefresh.d.cts +20 -0
- package/dist/components/PullToRefresh/PullToRefresh.d.cts.map +1 -0
- package/dist/components/PullToRefresh/PullToRefresh.d.mts +20 -0
- package/dist/components/PullToRefresh/PullToRefresh.d.mts.map +1 -0
- package/dist/components/PullToRefresh/PullToRefresh.mjs +78 -0
- package/dist/components/PullToRefresh/PullToRefresh.mjs.map +1 -0
- package/dist/components/PullToRefresh/PullToRefresh.styles.cjs +12 -0
- package/dist/components/PullToRefresh/PullToRefresh.styles.d.cts +46 -0
- package/dist/components/PullToRefresh/PullToRefresh.styles.d.cts.map +1 -0
- package/dist/components/PullToRefresh/PullToRefresh.styles.d.mts +46 -0
- package/dist/components/PullToRefresh/PullToRefresh.styles.d.mts.map +1 -0
- package/dist/components/PullToRefresh/PullToRefresh.styles.mjs +12 -0
- package/dist/components/PullToRefresh/PullToRefresh.styles.mjs.map +1 -0
- package/dist/components/PullToRefresh/index.d.cts +1 -0
- package/dist/components/PullToRefresh/index.d.mts +1 -0
- package/dist/components/Radio/Radio.d.cts +4 -3
- package/dist/components/Radio/Radio.d.cts.map +1 -1
- package/dist/components/Radio/index.d.cts +1 -0
- package/dist/components/RatioChart/RatioChart.d.cts +5 -5
- package/dist/components/RatioChart/RatioChart.d.mts +5 -5
- package/dist/components/RatioChart/RatioChartEditor.d.cts +2 -2
- package/dist/components/RatioChart/RatioChartEditor.d.mts +2 -2
- package/dist/components/RatioChart/index.d.cts +2 -0
- package/dist/components/Select/Select.d.mts +5 -5
- package/dist/components/Select/Select.styles.d.cts +3 -3
- package/dist/components/Select/index.d.cts +2 -0
- package/dist/components/Separator/Separator.d.cts +1 -0
- package/dist/components/Separator/Separator.d.cts.map +1 -1
- package/dist/components/Separator/Separator.styles.cjs +1 -1
- package/dist/components/Separator/Separator.styles.d.mts +3 -3
- package/dist/components/Separator/Separator.styles.mjs +1 -1
- package/dist/components/Separator/Separator.styles.mjs.map +1 -1
- package/dist/components/Separator/index.d.cts +2 -0
- package/dist/components/Sidebar/Sidebar.d.cts +9 -8
- package/dist/components/Sidebar/Sidebar.d.cts.map +1 -1
- package/dist/components/Sidebar/Sidebar.d.mts +8 -8
- package/dist/components/Sidebar/Sidebar.styles.d.mts +3 -3
- package/dist/components/Sidebar/hooks/useSidebarContext.d.cts +2 -0
- package/dist/components/Sidebar/hooks/useSidebarContext.d.cts.map +1 -1
- package/dist/components/Sidebar/index.d.cts +2 -0
- package/dist/components/Skeleton/Skeleton.cjs +34 -0
- package/dist/components/Skeleton/Skeleton.d.cts +25 -0
- package/dist/components/Skeleton/Skeleton.d.cts.map +1 -0
- package/dist/components/Skeleton/Skeleton.d.mts +25 -0
- package/dist/components/Skeleton/Skeleton.d.mts.map +1 -0
- package/dist/components/Skeleton/Skeleton.mjs +33 -0
- package/dist/components/Skeleton/Skeleton.mjs.map +1 -0
- package/dist/components/Skeleton/Skeleton.styles.cjs +40 -0
- package/dist/components/Skeleton/Skeleton.styles.d.cts +50 -0
- package/dist/components/Skeleton/Skeleton.styles.d.cts.map +1 -0
- package/dist/components/Skeleton/Skeleton.styles.d.mts +50 -0
- package/dist/components/Skeleton/Skeleton.styles.d.mts.map +1 -0
- package/dist/components/Skeleton/Skeleton.styles.mjs +39 -0
- package/dist/components/Skeleton/Skeleton.styles.mjs.map +1 -0
- package/dist/components/Skeleton/index.d.cts +1 -0
- package/dist/components/Skeleton/index.d.mts +1 -0
- package/dist/components/Spacer/Spacer.d.cts +1 -0
- package/dist/components/Spacer/Spacer.d.cts.map +1 -1
- package/dist/components/Spacer/Spacer.styles.d.mts +3 -3
- package/dist/components/Spacer/Spacer.styles.d.mts.map +1 -1
- package/dist/components/Spacer/index.d.cts +2 -0
- package/dist/components/Spinner/Spinner.cjs +38 -0
- package/dist/components/Spinner/Spinner.d.cts +17 -0
- package/dist/components/Spinner/Spinner.d.cts.map +1 -0
- package/dist/components/Spinner/Spinner.d.mts +17 -0
- package/dist/components/Spinner/Spinner.d.mts.map +1 -0
- package/dist/components/Spinner/Spinner.mjs +37 -0
- package/dist/components/Spinner/Spinner.mjs.map +1 -0
- package/dist/components/Spinner/Spinner.styles.cjs +34 -0
- package/dist/components/Spinner/Spinner.styles.d.cts +63 -0
- package/dist/components/Spinner/Spinner.styles.d.cts.map +1 -0
- package/dist/components/Spinner/Spinner.styles.d.mts +63 -0
- package/dist/components/Spinner/Spinner.styles.d.mts.map +1 -0
- package/dist/components/Spinner/Spinner.styles.mjs +34 -0
- package/dist/components/Spinner/Spinner.styles.mjs.map +1 -0
- package/dist/components/Spinner/index.d.mts +1 -0
- package/dist/components/Stack/Stack.d.cts +1 -0
- package/dist/components/Stack/Stack.d.cts.map +1 -1
- package/dist/components/Stack/Stack.styles.d.mts +3 -3
- package/dist/components/Stack/index.d.cts +2 -0
- package/dist/components/Tab/Tab.d.cts +7 -6
- package/dist/components/Tab/Tab.d.cts.map +1 -1
- package/dist/components/Tab/Tab.d.mts +6 -6
- package/dist/components/Tab/Tab.styles.d.cts +3 -3
- package/dist/components/Tab/index.d.cts +2 -0
- package/dist/components/Text/Text.d.cts +2 -1
- package/dist/components/Text/Text.d.cts.map +1 -1
- package/dist/components/Text/Text.d.mts +1 -1
- package/dist/components/Text/index.d.cts +2 -0
- package/dist/components/TextArea/TextArea.d.cts +5 -4
- package/dist/components/TextArea/TextArea.d.cts.map +1 -1
- package/dist/components/TextArea/TextArea.d.mts +4 -4
- package/dist/components/TextArea/TextArea.styles.d.cts +3 -3
- package/dist/components/TextArea/TextArea.styles.d.mts +3 -3
- package/dist/components/TextArea/index.d.cts +1 -0
- package/dist/components/TextInput/TextInput.d.cts +3 -2
- package/dist/components/TextInput/TextInput.d.cts.map +1 -1
- package/dist/components/TextInput/TextInput.d.mts +2 -2
- package/dist/components/TextInput/index.d.cts +2 -0
- package/dist/components/Toast/Toast.d.cts +5 -5
- package/dist/components/Toast/Toast.d.cts.map +1 -1
- package/dist/components/Toast/Toast.d.mts +3 -3
- package/dist/components/Toast/Toast.styles.d.cts +3 -3
- package/dist/components/Toast/Toast.styles.d.mts +3 -3
- package/dist/components/Toast/index.d.cts +3 -0
- package/dist/components/Toast/index.d.mts +2 -1
- package/dist/components/Toast/toastStore.cjs +38 -0
- package/dist/components/Toast/toastStore.d.cts +19 -0
- package/dist/components/Toast/toastStore.d.cts.map +1 -0
- package/dist/components/Toast/toastStore.d.mts +19 -0
- package/dist/components/Toast/toastStore.d.mts.map +1 -0
- package/dist/components/Toast/toastStore.mjs +39 -0
- package/dist/components/Toast/toastStore.mjs.map +1 -0
- package/dist/components/Toggle/Toggle.d.cts +6 -4
- package/dist/components/Toggle/Toggle.d.cts.map +1 -1
- package/dist/components/Toggle/Toggle.d.mts +4 -4
- package/dist/components/Toggle/Toggle.d.mts.map +1 -1
- package/dist/components/Toggle/Toggle.styles.d.cts +3 -3
- package/dist/components/Toggle/index.d.cts +1 -0
- package/dist/components/VStack/VStack.d.cts +3 -2
- package/dist/components/VStack/VStack.d.cts.map +1 -1
- package/dist/components/VStack/VStack.d.mts +2 -2
- package/dist/components/VStack/index.d.cts +1 -0
- package/dist/components/index.d.cts +93 -0
- package/dist/components/index.d.mts +11 -1
- package/dist/index.cjs +10 -0
- package/dist/index.d.cts +9 -1
- package/dist/index.d.mts +7 -1
- package/dist/index.mjs +6 -1
- package/dist/utils/index.d.cts +5 -0
- package/dist/utils/polymorphic/index.d.cts +1 -0
- package/package.json +3 -3
- package/src/styles/global.css +32 -0
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { CTAButton } from "../CTAButton/CTAButton.cjs";
|
|
2
|
+
import "../CTAButton/index.cjs";
|
|
1
3
|
import { Dialog } from "../Dialog/Dialog.cjs";
|
|
4
|
+
import "../Dialog/index.cjs";
|
|
2
5
|
import { ModalVariants } from "./Modal.styles.cjs";
|
|
3
|
-
import * as
|
|
6
|
+
import * as react12 from "react";
|
|
4
7
|
import { ComponentProps } from "react";
|
|
5
|
-
import * as
|
|
8
|
+
import * as react_jsx_runtime38 from "react/jsx-runtime";
|
|
6
9
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
7
10
|
|
|
8
11
|
//#region src/components/Modal/Modal.d.ts
|
|
@@ -11,18 +14,18 @@ type ModalContentProps = ComponentProps<typeof DialogPrimitive.Content>;
|
|
|
11
14
|
interface ModalTitleProps extends ComponentProps<typeof DialogPrimitive.Title>, Pick<ModalVariants, 'textAlign'> {}
|
|
12
15
|
interface ModalDescriptionProps extends ComponentProps<typeof DialogPrimitive.Description>, Pick<ModalVariants, 'textAlign'> {}
|
|
13
16
|
type ModalFooterProps = ComponentProps<'div'>;
|
|
14
|
-
|
|
17
|
+
type ModalActionProps = ComponentProps<typeof CTAButton>;
|
|
15
18
|
declare const Modal: {
|
|
16
|
-
(props: ComponentProps<typeof Dialog>):
|
|
19
|
+
(props: ComponentProps<typeof Dialog>): react_jsx_runtime38.JSX.Element;
|
|
17
20
|
displayName: string;
|
|
18
21
|
} & {
|
|
19
|
-
Trigger:
|
|
22
|
+
Trigger: react12.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react12.RefAttributes<HTMLButtonElement>>;
|
|
20
23
|
Content: {
|
|
21
24
|
({
|
|
22
25
|
className,
|
|
23
26
|
children,
|
|
24
27
|
...props
|
|
25
|
-
}: ModalContentProps):
|
|
28
|
+
}: ModalContentProps): react_jsx_runtime38.JSX.Element;
|
|
26
29
|
displayName: string;
|
|
27
30
|
};
|
|
28
31
|
Title: {
|
|
@@ -30,7 +33,7 @@ declare const Modal: {
|
|
|
30
33
|
className,
|
|
31
34
|
textAlign,
|
|
32
35
|
...props
|
|
33
|
-
}: ModalTitleProps):
|
|
36
|
+
}: ModalTitleProps): react_jsx_runtime38.JSX.Element;
|
|
34
37
|
displayName: string;
|
|
35
38
|
};
|
|
36
39
|
Description: {
|
|
@@ -38,7 +41,7 @@ declare const Modal: {
|
|
|
38
41
|
className,
|
|
39
42
|
textAlign,
|
|
40
43
|
...props
|
|
41
|
-
}: ModalDescriptionProps):
|
|
44
|
+
}: ModalDescriptionProps): react_jsx_runtime38.JSX.Element;
|
|
42
45
|
displayName: string;
|
|
43
46
|
};
|
|
44
47
|
Footer: {
|
|
@@ -46,16 +49,12 @@ declare const Modal: {
|
|
|
46
49
|
className,
|
|
47
50
|
children,
|
|
48
51
|
...props
|
|
49
|
-
}: ModalFooterProps):
|
|
52
|
+
}: ModalFooterProps): react_jsx_runtime38.JSX.Element;
|
|
50
53
|
displayName: string;
|
|
51
54
|
};
|
|
52
|
-
Close:
|
|
55
|
+
Close: react12.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react12.RefAttributes<HTMLButtonElement>>;
|
|
53
56
|
ActionButton: {
|
|
54
|
-
(
|
|
55
|
-
className,
|
|
56
|
-
variant,
|
|
57
|
-
...props
|
|
58
|
-
}: ModalActionProps): react_jsx_runtime46.JSX.Element;
|
|
57
|
+
(props: ModalActionProps): react_jsx_runtime38.JSX.Element;
|
|
59
58
|
displayName: string;
|
|
60
59
|
};
|
|
61
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.cts","names":[],"sources":["../../../src/components/Modal/Modal.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Modal.d.cts","names":[],"sources":["../../../src/components/Modal/Modal.tsx"],"mappings":";;;;;;;;;;;KAMY,iBAAA,GAAoB,cAAA,QAAsB,eAAA,CAAgB,OAAA;AAAA,KAS1D,iBAAA,GAAoB,cAAA,QAAsB,eAAA,CAAgB,OAAA;AAAA,UAcrD,eAAA,SAEb,cAAA,QAAsB,eAAA,CAAgB,KAAA,GACtC,IAAA,CAAK,aAAA;AAAA,UAYQ,qBAAA,SAEb,cAAA,QAAsB,eAAA,CAAgB,WAAA,GACtC,IAAA,CAAK,aAAA;AAAA,KAgBG,gBAAA,GAAmB,cAAA;AAAA,KAWnB,gBAAA,GAAmB,cAAA,QAAsB,SAAA;AAAA,cAYxC,KAAA;EAAA,QALa,cAAA,QAAsB,MAAA,IAAO,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;;OAjEE,iBAAA,GAAiB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;OAiBlB,eAAA,GAAe,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;OAmBpE,qBAAA,GAAqB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;OAYgC,gBAAA,GAAgB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;YAY5C,gBAAA,GAAgB,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { CTAButton } from "../CTAButton/CTAButton.mjs";
|
|
2
|
+
import "../CTAButton/index.mjs";
|
|
1
3
|
import { Dialog } from "../Dialog/Dialog.mjs";
|
|
2
4
|
import "../Dialog/index.mjs";
|
|
3
5
|
import { ModalVariants } from "./Modal.styles.mjs";
|
|
4
6
|
import * as react12 from "react";
|
|
5
7
|
import { ComponentProps } from "react";
|
|
6
|
-
import * as
|
|
8
|
+
import * as react_jsx_runtime45 from "react/jsx-runtime";
|
|
7
9
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
8
10
|
|
|
9
11
|
//#region src/components/Modal/Modal.d.ts
|
|
@@ -12,9 +14,9 @@ type ModalContentProps = ComponentProps<typeof DialogPrimitive.Content>;
|
|
|
12
14
|
interface ModalTitleProps extends ComponentProps<typeof DialogPrimitive.Title>, Pick<ModalVariants, 'textAlign'> {}
|
|
13
15
|
interface ModalDescriptionProps extends ComponentProps<typeof DialogPrimitive.Description>, Pick<ModalVariants, 'textAlign'> {}
|
|
14
16
|
type ModalFooterProps = ComponentProps<'div'>;
|
|
15
|
-
|
|
17
|
+
type ModalActionProps = ComponentProps<typeof CTAButton>;
|
|
16
18
|
declare const Modal: {
|
|
17
|
-
(props: ComponentProps<typeof Dialog>):
|
|
19
|
+
(props: ComponentProps<typeof Dialog>): react_jsx_runtime45.JSX.Element;
|
|
18
20
|
displayName: string;
|
|
19
21
|
} & {
|
|
20
22
|
Trigger: react12.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react12.RefAttributes<HTMLButtonElement>>;
|
|
@@ -23,7 +25,7 @@ declare const Modal: {
|
|
|
23
25
|
className,
|
|
24
26
|
children,
|
|
25
27
|
...props
|
|
26
|
-
}: ModalContentProps):
|
|
28
|
+
}: ModalContentProps): react_jsx_runtime45.JSX.Element;
|
|
27
29
|
displayName: string;
|
|
28
30
|
};
|
|
29
31
|
Title: {
|
|
@@ -31,7 +33,7 @@ declare const Modal: {
|
|
|
31
33
|
className,
|
|
32
34
|
textAlign,
|
|
33
35
|
...props
|
|
34
|
-
}: ModalTitleProps):
|
|
36
|
+
}: ModalTitleProps): react_jsx_runtime45.JSX.Element;
|
|
35
37
|
displayName: string;
|
|
36
38
|
};
|
|
37
39
|
Description: {
|
|
@@ -39,7 +41,7 @@ declare const Modal: {
|
|
|
39
41
|
className,
|
|
40
42
|
textAlign,
|
|
41
43
|
...props
|
|
42
|
-
}: ModalDescriptionProps):
|
|
44
|
+
}: ModalDescriptionProps): react_jsx_runtime45.JSX.Element;
|
|
43
45
|
displayName: string;
|
|
44
46
|
};
|
|
45
47
|
Footer: {
|
|
@@ -47,16 +49,12 @@ declare const Modal: {
|
|
|
47
49
|
className,
|
|
48
50
|
children,
|
|
49
51
|
...props
|
|
50
|
-
}: ModalFooterProps):
|
|
52
|
+
}: ModalFooterProps): react_jsx_runtime45.JSX.Element;
|
|
51
53
|
displayName: string;
|
|
52
54
|
};
|
|
53
55
|
Close: react12.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react12.RefAttributes<HTMLButtonElement>>;
|
|
54
56
|
ActionButton: {
|
|
55
|
-
(
|
|
56
|
-
className,
|
|
57
|
-
variant,
|
|
58
|
-
...props
|
|
59
|
-
}: ModalActionProps): react_jsx_runtime51.JSX.Element;
|
|
57
|
+
(props: ModalActionProps): react_jsx_runtime45.JSX.Element;
|
|
60
58
|
displayName: string;
|
|
61
59
|
};
|
|
62
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.mts","names":[],"sources":["../../../src/components/Modal/Modal.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Modal.d.mts","names":[],"sources":["../../../src/components/Modal/Modal.tsx"],"mappings":";;;;;;;;;;;KAMY,iBAAA,GAAoB,cAAA,QAAsB,eAAA,CAAgB,OAAA;AAAA,KAS1D,iBAAA,GAAoB,cAAA,QAAsB,eAAA,CAAgB,OAAA;AAAA,UAcrD,eAAA,SAEb,cAAA,QAAsB,eAAA,CAAgB,KAAA,GACtC,IAAA,CAAK,aAAA;AAAA,UAYQ,qBAAA,SAEb,cAAA,QAAsB,eAAA,CAAgB,WAAA,GACtC,IAAA,CAAK,aAAA;AAAA,KAgBG,gBAAA,GAAmB,cAAA;AAAA,KAWnB,gBAAA,GAAmB,cAAA,QAAsB,SAAA;AAAA,cAYxC,KAAA;EAAA,QALa,cAAA,QAAsB,MAAA,IAAO,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;;OAjEE,iBAAA,GAAiB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;OAiBlB,eAAA,GAAe,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;OAmBpE,qBAAA,GAAqB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;OAYgC,gBAAA,GAAgB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;YAY5C,gBAAA,GAAgB,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CTAButton } from "../CTAButton/CTAButton.mjs";
|
|
1
2
|
import { Dialog } from "../Dialog/Dialog.mjs";
|
|
2
3
|
import { modal } from "./Modal.styles.mjs";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -52,13 +53,9 @@ const ModalFooter = ({ className, children, ...props }) => {
|
|
|
52
53
|
});
|
|
53
54
|
};
|
|
54
55
|
ModalFooter.displayName = "ModalFooter";
|
|
55
|
-
const ModalAction = (
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
className: actionButton({
|
|
59
|
-
className,
|
|
60
|
-
variant
|
|
61
|
-
}),
|
|
56
|
+
const ModalAction = (props) => {
|
|
57
|
+
return /* @__PURE__ */ jsx(CTAButton, {
|
|
58
|
+
fullWidth: true,
|
|
62
59
|
...props
|
|
63
60
|
});
|
|
64
61
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.mjs","names":[],"sources":["../../../src/components/Modal/Modal.tsx"],"sourcesContent":["import { ComponentProps } from 'react';\nimport { Dialog } from '../Dialog';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { modal, ModalVariants } from './Modal.styles';\n\nexport type ModalOverlayProps = ComponentProps<typeof DialogPrimitive.Overlay>;\nconst ModalOverlay = ({ className, ...props }: ModalOverlayProps) => {\n const { overlay } = modal();\n return (\n <DialogPrimitive.Overlay className={overlay({ className })} {...props} />\n );\n};\nModalOverlay.displayName = 'ModalOverlay';\n\nexport type ModalContentProps = ComponentProps<typeof DialogPrimitive.Content>;\nconst ModalContent = ({ className, children, ...props }: ModalContentProps) => {\n const { content } = modal();\n return (\n <DialogPrimitive.Portal>\n <ModalOverlay />\n <DialogPrimitive.Content className={content({ className })} {...props}>\n {children}\n </DialogPrimitive.Content>\n </DialogPrimitive.Portal>\n );\n};\nModalContent.displayName = 'ModalContent';\n\nexport interface ModalTitleProps\n extends\n ComponentProps<typeof DialogPrimitive.Title>,\n Pick<ModalVariants, 'textAlign'> {}\nconst ModalTitle = ({ className, textAlign, ...props }: ModalTitleProps) => {\n const { title } = modal();\n return (\n <DialogPrimitive.Title\n className={title({ className, textAlign })}\n {...props}\n />\n );\n};\nModalTitle.displayName = 'ModalTitle';\n\nexport interface ModalDescriptionProps\n extends\n ComponentProps<typeof DialogPrimitive.Description>,\n Pick<ModalVariants, 'textAlign'> {}\nconst ModalDescription = ({\n className,\n textAlign,\n ...props\n}: ModalDescriptionProps) => {\n const { description } = modal();\n return (\n <DialogPrimitive.Description\n className={description({ className, textAlign })}\n {...props}\n />\n );\n};\nModalDescription.displayName = 'ModalDescription';\n\nexport type ModalFooterProps = ComponentProps<'div'>;\nconst ModalFooter = ({ className, children, ...props }: ModalFooterProps) => {\n const { footer } = modal();\n return (\n <div className={footer({ className })} {...props}>\n {children}\n </div>\n );\n};\nModalFooter.displayName = 'ModalFooter';\n\nexport
|
|
1
|
+
{"version":3,"file":"Modal.mjs","names":[],"sources":["../../../src/components/Modal/Modal.tsx"],"sourcesContent":["import { ComponentProps } from 'react';\nimport { Dialog } from '../Dialog';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { modal, ModalVariants } from './Modal.styles';\nimport { CTAButton } from '../CTAButton';\n\nexport type ModalOverlayProps = ComponentProps<typeof DialogPrimitive.Overlay>;\nconst ModalOverlay = ({ className, ...props }: ModalOverlayProps) => {\n const { overlay } = modal();\n return (\n <DialogPrimitive.Overlay className={overlay({ className })} {...props} />\n );\n};\nModalOverlay.displayName = 'ModalOverlay';\n\nexport type ModalContentProps = ComponentProps<typeof DialogPrimitive.Content>;\nconst ModalContent = ({ className, children, ...props }: ModalContentProps) => {\n const { content } = modal();\n return (\n <DialogPrimitive.Portal>\n <ModalOverlay />\n <DialogPrimitive.Content className={content({ className })} {...props}>\n {children}\n </DialogPrimitive.Content>\n </DialogPrimitive.Portal>\n );\n};\nModalContent.displayName = 'ModalContent';\n\nexport interface ModalTitleProps\n extends\n ComponentProps<typeof DialogPrimitive.Title>,\n Pick<ModalVariants, 'textAlign'> {}\nconst ModalTitle = ({ className, textAlign, ...props }: ModalTitleProps) => {\n const { title } = modal();\n return (\n <DialogPrimitive.Title\n className={title({ className, textAlign })}\n {...props}\n />\n );\n};\nModalTitle.displayName = 'ModalTitle';\n\nexport interface ModalDescriptionProps\n extends\n ComponentProps<typeof DialogPrimitive.Description>,\n Pick<ModalVariants, 'textAlign'> {}\nconst ModalDescription = ({\n className,\n textAlign,\n ...props\n}: ModalDescriptionProps) => {\n const { description } = modal();\n return (\n <DialogPrimitive.Description\n className={description({ className, textAlign })}\n {...props}\n />\n );\n};\nModalDescription.displayName = 'ModalDescription';\n\nexport type ModalFooterProps = ComponentProps<'div'>;\nconst ModalFooter = ({ className, children, ...props }: ModalFooterProps) => {\n const { footer } = modal();\n return (\n <div className={footer({ className })} {...props}>\n {children}\n </div>\n );\n};\nModalFooter.displayName = 'ModalFooter';\n\nexport type ModalActionProps = ComponentProps<typeof CTAButton>;\n\nconst ModalAction = (props: ModalActionProps) => {\n return <CTAButton fullWidth {...props} />;\n};\nModalAction.displayName = 'ModalAction';\n\nconst ModalRoot = (props: ComponentProps<typeof Dialog>) => (\n <Dialog {...props} />\n);\nModalRoot.displayName = 'Modal';\n\nexport const Modal = Object.assign(ModalRoot, {\n Trigger: Dialog.Trigger,\n Content: ModalContent,\n Title: ModalTitle,\n Description: ModalDescription,\n Footer: ModalFooter,\n Close: Dialog.Close,\n ActionButton: ModalAction,\n});\n"],"mappings":";;;;;;;AAOA,MAAM,gBAAgB,EAAE,WAAW,GAAG,YAA+B;CACnE,MAAM,EAAE,YAAY,OAAO;AAC3B,QACE,oBAAC,gBAAgB;EAAQ,WAAW,QAAQ,EAAE,WAAW,CAAC;EAAE,GAAI;GAAS;;AAG7E,aAAa,cAAc;AAG3B,MAAM,gBAAgB,EAAE,WAAW,UAAU,GAAG,YAA+B;CAC7E,MAAM,EAAE,YAAY,OAAO;AAC3B,QACE,qBAAC,gBAAgB,qBACf,oBAAC,iBAAe,EAChB,oBAAC,gBAAgB;EAAQ,WAAW,QAAQ,EAAE,WAAW,CAAC;EAAE,GAAI;EAC7D;GACuB,IACH;;AAG7B,aAAa,cAAc;AAM3B,MAAM,cAAc,EAAE,WAAW,WAAW,GAAG,YAA6B;CAC1E,MAAM,EAAE,UAAU,OAAO;AACzB,QACE,oBAAC,gBAAgB;EACf,WAAW,MAAM;GAAE;GAAW;GAAW,CAAC;EAC1C,GAAI;GACJ;;AAGN,WAAW,cAAc;AAMzB,MAAM,oBAAoB,EACxB,WACA,WACA,GAAG,YACwB;CAC3B,MAAM,EAAE,gBAAgB,OAAO;AAC/B,QACE,oBAAC,gBAAgB;EACf,WAAW,YAAY;GAAE;GAAW;GAAW,CAAC;EAChD,GAAI;GACJ;;AAGN,iBAAiB,cAAc;AAG/B,MAAM,eAAe,EAAE,WAAW,UAAU,GAAG,YAA8B;CAC3E,MAAM,EAAE,WAAW,OAAO;AAC1B,QACE,oBAAC;EAAI,WAAW,OAAO,EAAE,WAAW,CAAC;EAAE,GAAI;EACxC;GACG;;AAGV,YAAY,cAAc;AAI1B,MAAM,eAAe,UAA4B;AAC/C,QAAO,oBAAC;EAAU;EAAU,GAAI;GAAS;;AAE3C,YAAY,cAAc;AAE1B,MAAM,aAAa,UACjB,oBAAC,UAAO,GAAI,QAAS;AAEvB,UAAU,cAAc;AAExB,MAAa,QAAQ,OAAO,OAAO,WAAW;CAC5C,SAAS,OAAO;CAChB,SAAS;CACT,OAAO;CACP,aAAa;CACb,QAAQ;CACR,OAAO,OAAO;CACd,cAAc;CACf,CAAC"}
|
|
@@ -5,33 +5,25 @@ let tailwind_variants = require("tailwind-variants");
|
|
|
5
5
|
const modal = (0, tailwind_variants.tv)({
|
|
6
6
|
slots: {
|
|
7
7
|
overlay: "fixed inset-0 z-modal bg-black/50 backdrop-blur-sm data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out",
|
|
8
|
-
content: "fixed left-[50%] top-[50%] z-modal flex w-[19.5rem] md:w-[26.25rem] translate-x-[-50%] translate-y-[-50%] flex-col items-center justify-center rounded-[1rem] bg-white pb-
|
|
8
|
+
content: "fixed left-[50%] top-[50%] z-modal flex w-[19.5rem] md:w-[26.25rem] translate-x-[-50%] translate-y-[-50%] flex-col items-center justify-center rounded-[1rem] bg-white pb-4 pt-8 shadow-lg data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out focus:outline-none",
|
|
9
9
|
title: "w-full typo-subtitle-18-bold text-gray-800",
|
|
10
10
|
description: "w-full mt-2 typo-body-16-regular text-gray-500",
|
|
11
|
-
footer: "mt-
|
|
12
|
-
actionButton: "flex flex-1 items-center justify-center py-3 px-10 rounded-md typo-subtitle-16-semibold transition-colors focus:outline-none"
|
|
11
|
+
footer: "mt-8 gap-2 flex w-full items-start px-4"
|
|
13
12
|
},
|
|
14
|
-
variants: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
cancel: { actionButton: "text-gray-400 hover:bg-gray-50 active:bg-gray-100 data-[active]:bg-gray-100" }
|
|
13
|
+
variants: { textAlign: {
|
|
14
|
+
center: {
|
|
15
|
+
title: "text-center px-10",
|
|
16
|
+
description: "text-center px-10"
|
|
19
17
|
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
description: "text-left px-8"
|
|
28
|
-
},
|
|
29
|
-
right: {
|
|
30
|
-
title: "text-right",
|
|
31
|
-
description: "text-right"
|
|
32
|
-
}
|
|
18
|
+
left: {
|
|
19
|
+
title: "text-left px-8",
|
|
20
|
+
description: "text-left px-8"
|
|
21
|
+
},
|
|
22
|
+
right: {
|
|
23
|
+
title: "text-right",
|
|
24
|
+
description: "text-right"
|
|
33
25
|
}
|
|
34
|
-
},
|
|
26
|
+
} },
|
|
35
27
|
compoundVariants: [{
|
|
36
28
|
textAlign: "left",
|
|
37
29
|
title: "flex"
|
|
@@ -39,10 +31,7 @@ const modal = (0, tailwind_variants.tv)({
|
|
|
39
31
|
textAlign: "right",
|
|
40
32
|
title: "flex"
|
|
41
33
|
}],
|
|
42
|
-
defaultVariants: {
|
|
43
|
-
variant: "primary",
|
|
44
|
-
textAlign: "center"
|
|
45
|
-
}
|
|
34
|
+
defaultVariants: { textAlign: "center" }
|
|
46
35
|
});
|
|
47
36
|
|
|
48
37
|
//#endregion
|
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants21 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Modal/Modal.styles.d.ts
|
|
5
|
-
declare const modal:
|
|
6
|
-
variant: {
|
|
7
|
-
primary: {
|
|
8
|
-
actionButton: string;
|
|
9
|
-
};
|
|
10
|
-
destructive: {
|
|
11
|
-
actionButton: string;
|
|
12
|
-
};
|
|
13
|
-
cancel: {
|
|
14
|
-
actionButton: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
5
|
+
declare const modal: tailwind_variants21.TVReturnType<{
|
|
17
6
|
textAlign: {
|
|
18
7
|
center: {
|
|
19
8
|
title: string;
|
|
@@ -34,19 +23,7 @@ declare const modal: tailwind_variants25.TVReturnType<{
|
|
|
34
23
|
title: string;
|
|
35
24
|
description: string;
|
|
36
25
|
footer: string;
|
|
37
|
-
actionButton: string;
|
|
38
26
|
}, undefined, {
|
|
39
|
-
variant: {
|
|
40
|
-
primary: {
|
|
41
|
-
actionButton: string;
|
|
42
|
-
};
|
|
43
|
-
destructive: {
|
|
44
|
-
actionButton: string;
|
|
45
|
-
};
|
|
46
|
-
cancel: {
|
|
47
|
-
actionButton: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
27
|
textAlign: {
|
|
51
28
|
center: {
|
|
52
29
|
title: string;
|
|
@@ -67,19 +44,7 @@ declare const modal: tailwind_variants25.TVReturnType<{
|
|
|
67
44
|
title: string;
|
|
68
45
|
description: string;
|
|
69
46
|
footer: string;
|
|
70
|
-
|
|
71
|
-
}, tailwind_variants25.TVReturnType<{
|
|
72
|
-
variant: {
|
|
73
|
-
primary: {
|
|
74
|
-
actionButton: string;
|
|
75
|
-
};
|
|
76
|
-
destructive: {
|
|
77
|
-
actionButton: string;
|
|
78
|
-
};
|
|
79
|
-
cancel: {
|
|
80
|
-
actionButton: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
47
|
+
}, tailwind_variants21.TVReturnType<{
|
|
83
48
|
textAlign: {
|
|
84
49
|
center: {
|
|
85
50
|
title: string;
|
|
@@ -100,7 +65,6 @@ declare const modal: tailwind_variants25.TVReturnType<{
|
|
|
100
65
|
title: string;
|
|
101
66
|
description: string;
|
|
102
67
|
footer: string;
|
|
103
|
-
actionButton: string;
|
|
104
68
|
}, undefined, unknown, unknown, undefined>>;
|
|
105
69
|
type ModalVariants = VariantProps<typeof modal>;
|
|
106
70
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.styles.d.cts","names":[],"sources":["../../../src/components/Modal/Modal.styles.ts"],"mappings":";;;;cAEa,KAAA,
|
|
1
|
+
{"version":3,"file":"Modal.styles.d.cts","names":[],"sources":["../../../src/components/Modal/Modal.styles.ts"],"mappings":";;;;cAEa,KAAA,EAuCX,mBAAA,CAvCgB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuChB,mBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;KAEU,aAAA,GAAgB,YAAA,QAAoB,KAAA"}
|
|
@@ -3,17 +3,6 @@ import { VariantProps } from "tailwind-variants";
|
|
|
3
3
|
|
|
4
4
|
//#region src/components/Modal/Modal.styles.d.ts
|
|
5
5
|
declare const modal: tailwind_variants27.TVReturnType<{
|
|
6
|
-
variant: {
|
|
7
|
-
primary: {
|
|
8
|
-
actionButton: string;
|
|
9
|
-
};
|
|
10
|
-
destructive: {
|
|
11
|
-
actionButton: string;
|
|
12
|
-
};
|
|
13
|
-
cancel: {
|
|
14
|
-
actionButton: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
6
|
textAlign: {
|
|
18
7
|
center: {
|
|
19
8
|
title: string;
|
|
@@ -34,19 +23,7 @@ declare const modal: tailwind_variants27.TVReturnType<{
|
|
|
34
23
|
title: string;
|
|
35
24
|
description: string;
|
|
36
25
|
footer: string;
|
|
37
|
-
actionButton: string;
|
|
38
26
|
}, undefined, {
|
|
39
|
-
variant: {
|
|
40
|
-
primary: {
|
|
41
|
-
actionButton: string;
|
|
42
|
-
};
|
|
43
|
-
destructive: {
|
|
44
|
-
actionButton: string;
|
|
45
|
-
};
|
|
46
|
-
cancel: {
|
|
47
|
-
actionButton: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
27
|
textAlign: {
|
|
51
28
|
center: {
|
|
52
29
|
title: string;
|
|
@@ -67,19 +44,7 @@ declare const modal: tailwind_variants27.TVReturnType<{
|
|
|
67
44
|
title: string;
|
|
68
45
|
description: string;
|
|
69
46
|
footer: string;
|
|
70
|
-
actionButton: string;
|
|
71
47
|
}, tailwind_variants27.TVReturnType<{
|
|
72
|
-
variant: {
|
|
73
|
-
primary: {
|
|
74
|
-
actionButton: string;
|
|
75
|
-
};
|
|
76
|
-
destructive: {
|
|
77
|
-
actionButton: string;
|
|
78
|
-
};
|
|
79
|
-
cancel: {
|
|
80
|
-
actionButton: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
48
|
textAlign: {
|
|
84
49
|
center: {
|
|
85
50
|
title: string;
|
|
@@ -100,7 +65,6 @@ declare const modal: tailwind_variants27.TVReturnType<{
|
|
|
100
65
|
title: string;
|
|
101
66
|
description: string;
|
|
102
67
|
footer: string;
|
|
103
|
-
actionButton: string;
|
|
104
68
|
}, undefined, unknown, unknown, undefined>>;
|
|
105
69
|
type ModalVariants = VariantProps<typeof modal>;
|
|
106
70
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.styles.d.mts","names":[],"sources":["../../../src/components/Modal/Modal.styles.ts"],"mappings":";;;;cAEa,KAAA,
|
|
1
|
+
{"version":3,"file":"Modal.styles.d.mts","names":[],"sources":["../../../src/components/Modal/Modal.styles.ts"],"mappings":";;;;cAEa,KAAA,EAuCX,mBAAA,CAvCgB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuChB,mBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;KAEU,aAAA,GAAgB,YAAA,QAAoB,KAAA"}
|
|
@@ -4,33 +4,25 @@ import { tv } from "tailwind-variants";
|
|
|
4
4
|
const modal = tv({
|
|
5
5
|
slots: {
|
|
6
6
|
overlay: "fixed inset-0 z-modal bg-black/50 backdrop-blur-sm data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out",
|
|
7
|
-
content: "fixed left-[50%] top-[50%] z-modal flex w-[19.5rem] md:w-[26.25rem] translate-x-[-50%] translate-y-[-50%] flex-col items-center justify-center rounded-[1rem] bg-white pb-
|
|
7
|
+
content: "fixed left-[50%] top-[50%] z-modal flex w-[19.5rem] md:w-[26.25rem] translate-x-[-50%] translate-y-[-50%] flex-col items-center justify-center rounded-[1rem] bg-white pb-4 pt-8 shadow-lg data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out focus:outline-none",
|
|
8
8
|
title: "w-full typo-subtitle-18-bold text-gray-800",
|
|
9
9
|
description: "w-full mt-2 typo-body-16-regular text-gray-500",
|
|
10
|
-
footer: "mt-
|
|
11
|
-
actionButton: "flex flex-1 items-center justify-center py-3 px-10 rounded-md typo-subtitle-16-semibold transition-colors focus:outline-none"
|
|
10
|
+
footer: "mt-8 gap-2 flex w-full items-start px-4"
|
|
12
11
|
},
|
|
13
|
-
variants: {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
cancel: { actionButton: "text-gray-400 hover:bg-gray-50 active:bg-gray-100 data-[active]:bg-gray-100" }
|
|
12
|
+
variants: { textAlign: {
|
|
13
|
+
center: {
|
|
14
|
+
title: "text-center px-10",
|
|
15
|
+
description: "text-center px-10"
|
|
18
16
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
description: "text-left px-8"
|
|
27
|
-
},
|
|
28
|
-
right: {
|
|
29
|
-
title: "text-right",
|
|
30
|
-
description: "text-right"
|
|
31
|
-
}
|
|
17
|
+
left: {
|
|
18
|
+
title: "text-left px-8",
|
|
19
|
+
description: "text-left px-8"
|
|
20
|
+
},
|
|
21
|
+
right: {
|
|
22
|
+
title: "text-right",
|
|
23
|
+
description: "text-right"
|
|
32
24
|
}
|
|
33
|
-
},
|
|
25
|
+
} },
|
|
34
26
|
compoundVariants: [{
|
|
35
27
|
textAlign: "left",
|
|
36
28
|
title: "flex"
|
|
@@ -38,10 +30,7 @@ const modal = tv({
|
|
|
38
30
|
textAlign: "right",
|
|
39
31
|
title: "flex"
|
|
40
32
|
}],
|
|
41
|
-
defaultVariants: {
|
|
42
|
-
variant: "primary",
|
|
43
|
-
textAlign: "center"
|
|
44
|
-
}
|
|
33
|
+
defaultVariants: { textAlign: "center" }
|
|
45
34
|
});
|
|
46
35
|
|
|
47
36
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.styles.mjs","names":[],"sources":["../../../src/components/Modal/Modal.styles.ts"],"sourcesContent":["import { tv, VariantProps } from 'tailwind-variants';\n\nexport const modal = tv({\n slots: {\n overlay:\n 'fixed inset-0 z-modal bg-black/50 backdrop-blur-sm data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out',\n content:\n 'fixed left-[50%] top-[50%] z-modal flex w-[19.5rem] md:w-[26.25rem] translate-x-[-50%] translate-y-[-50%] flex-col items-center justify-center rounded-[1rem] bg-white pb-
|
|
1
|
+
{"version":3,"file":"Modal.styles.mjs","names":[],"sources":["../../../src/components/Modal/Modal.styles.ts"],"sourcesContent":["import { tv, VariantProps } from 'tailwind-variants';\n\nexport const modal = tv({\n slots: {\n overlay:\n 'fixed inset-0 z-modal bg-black/50 backdrop-blur-sm data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out',\n content:\n 'fixed left-[50%] top-[50%] z-modal flex w-[19.5rem] md:w-[26.25rem] translate-x-[-50%] translate-y-[-50%] flex-col items-center justify-center rounded-[1rem] bg-white pb-4 pt-8 shadow-lg data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out focus:outline-none',\n title: 'w-full typo-subtitle-18-bold text-gray-800',\n description: 'w-full mt-2 typo-body-16-regular text-gray-500',\n footer: 'mt-8 gap-2 flex w-full items-start px-4',\n },\n variants: {\n textAlign: {\n center: {\n title: 'text-center px-10',\n description: 'text-center px-10',\n },\n left: {\n title: 'text-left px-8',\n description: 'text-left px-8',\n },\n right: {\n title: 'text-right',\n description: 'text-right',\n },\n },\n },\n compoundVariants: [\n {\n textAlign: 'left',\n title: 'flex',\n },\n {\n textAlign: 'right',\n title: 'flex',\n },\n ],\n defaultVariants: {\n textAlign: 'center',\n },\n});\n\nexport type ModalVariants = VariantProps<typeof modal>;\n"],"mappings":";;;AAEA,MAAa,QAAQ,GAAG;CACtB,OAAO;EACL,SACE;EACF,SACE;EACF,OAAO;EACP,aAAa;EACb,QAAQ;EACT;CACD,UAAU,EACR,WAAW;EACT,QAAQ;GACN,OAAO;GACP,aAAa;GACd;EACD,MAAM;GACJ,OAAO;GACP,aAAa;GACd;EACD,OAAO;GACL,OAAO;GACP,aAAa;GACd;EACF,EACF;CACD,kBAAkB,CAChB;EACE,WAAW;EACX,OAAO;EACR,EACD;EACE,WAAW;EACX,OAAO;EACR,CACF;CACD,iBAAiB,EACf,WAAW,UACZ;CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime45 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Primitive/Primitive.d.ts
|
|
5
5
|
interface PrimitiveProps {
|
|
@@ -12,63 +12,63 @@ interface PrimitiveProps {
|
|
|
12
12
|
type PrimitivePropsWithRef<E extends React$1.ElementType> = React$1.ComponentProps<E> & PrimitiveProps;
|
|
13
13
|
declare const Primitive: {
|
|
14
14
|
div: {
|
|
15
|
-
(props: PrimitivePropsWithRef<"div">):
|
|
15
|
+
(props: PrimitivePropsWithRef<"div">): react_jsx_runtime45.JSX.Element;
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
18
18
|
span: {
|
|
19
|
-
(props: PrimitivePropsWithRef<"span">):
|
|
19
|
+
(props: PrimitivePropsWithRef<"span">): react_jsx_runtime45.JSX.Element;
|
|
20
20
|
displayName: string;
|
|
21
21
|
};
|
|
22
22
|
img: {
|
|
23
|
-
(props: PrimitivePropsWithRef<"img">):
|
|
23
|
+
(props: PrimitivePropsWithRef<"img">): react_jsx_runtime45.JSX.Element;
|
|
24
24
|
displayName: string;
|
|
25
25
|
};
|
|
26
26
|
button: {
|
|
27
|
-
(props: PrimitivePropsWithRef<"button">):
|
|
27
|
+
(props: PrimitivePropsWithRef<"button">): react_jsx_runtime45.JSX.Element;
|
|
28
28
|
displayName: string;
|
|
29
29
|
};
|
|
30
30
|
label: {
|
|
31
|
-
(props: PrimitivePropsWithRef<"label">):
|
|
31
|
+
(props: PrimitivePropsWithRef<"label">): react_jsx_runtime45.JSX.Element;
|
|
32
32
|
displayName: string;
|
|
33
33
|
};
|
|
34
34
|
input: {
|
|
35
|
-
(props: PrimitivePropsWithRef<"input">):
|
|
35
|
+
(props: PrimitivePropsWithRef<"input">): react_jsx_runtime45.JSX.Element;
|
|
36
36
|
displayName: string;
|
|
37
37
|
};
|
|
38
38
|
textarea: {
|
|
39
|
-
(props: PrimitivePropsWithRef<"textarea">):
|
|
39
|
+
(props: PrimitivePropsWithRef<"textarea">): react_jsx_runtime45.JSX.Element;
|
|
40
40
|
displayName: string;
|
|
41
41
|
};
|
|
42
42
|
a: {
|
|
43
|
-
(props: PrimitivePropsWithRef<"a">):
|
|
43
|
+
(props: PrimitivePropsWithRef<"a">): react_jsx_runtime45.JSX.Element;
|
|
44
44
|
displayName: string;
|
|
45
45
|
};
|
|
46
46
|
p: {
|
|
47
|
-
(props: PrimitivePropsWithRef<"p">):
|
|
47
|
+
(props: PrimitivePropsWithRef<"p">): react_jsx_runtime45.JSX.Element;
|
|
48
48
|
displayName: string;
|
|
49
49
|
};
|
|
50
50
|
h2: {
|
|
51
|
-
(props: PrimitivePropsWithRef<"h2">):
|
|
51
|
+
(props: PrimitivePropsWithRef<"h2">): react_jsx_runtime45.JSX.Element;
|
|
52
52
|
displayName: string;
|
|
53
53
|
};
|
|
54
54
|
ul: {
|
|
55
|
-
(props: PrimitivePropsWithRef<"ul">):
|
|
55
|
+
(props: PrimitivePropsWithRef<"ul">): react_jsx_runtime45.JSX.Element;
|
|
56
56
|
displayName: string;
|
|
57
57
|
};
|
|
58
58
|
li: {
|
|
59
|
-
(props: PrimitivePropsWithRef<"li">):
|
|
59
|
+
(props: PrimitivePropsWithRef<"li">): react_jsx_runtime45.JSX.Element;
|
|
60
60
|
displayName: string;
|
|
61
61
|
};
|
|
62
62
|
svg: {
|
|
63
|
-
(props: PrimitivePropsWithRef<"svg">):
|
|
63
|
+
(props: PrimitivePropsWithRef<"svg">): react_jsx_runtime45.JSX.Element;
|
|
64
64
|
displayName: string;
|
|
65
65
|
};
|
|
66
66
|
circle: {
|
|
67
|
-
(props: PrimitivePropsWithRef<"circle">):
|
|
67
|
+
(props: PrimitivePropsWithRef<"circle">): react_jsx_runtime45.JSX.Element;
|
|
68
68
|
displayName: string;
|
|
69
69
|
};
|
|
70
70
|
nav: {
|
|
71
|
-
(props: PrimitivePropsWithRef<"nav">):
|
|
71
|
+
(props: PrimitivePropsWithRef<"nav">): react_jsx_runtime45.JSX.Element;
|
|
72
72
|
displayName: string;
|
|
73
73
|
};
|
|
74
74
|
};
|