@causw/core 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Avatar/Avatar.d.cts +2 -2
- 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.cts.map +1 -1
- package/dist/components/Avatar/Avatar.styles.d.mts +3 -3
- package/dist/components/BottomNavigation/BottomNavigation.d.cts +5 -5
- package/dist/components/BottomNavigation/BottomNavigation.d.mts +5 -5
- package/dist/components/BottomSheet/BottomSheet.cjs +6 -6
- package/dist/components/BottomSheet/BottomSheet.d.cts +7 -7
- package/dist/components/BottomSheet/BottomSheet.d.cts.map +1 -1
- package/dist/components/BottomSheet/BottomSheet.d.mts +7 -7
- package/dist/components/BottomSheet/BottomSheet.d.mts.map +1 -1
- package/dist/components/BottomSheet/BottomSheet.mjs +3 -3
- package/dist/components/BottomSheet/BottomSheet.mjs.map +1 -1
- package/dist/components/BottomSheet/BottomSheet.styles.cjs +8 -3
- package/dist/components/BottomSheet/BottomSheet.styles.d.cts +9 -6
- package/dist/components/BottomSheet/BottomSheet.styles.d.cts.map +1 -1
- package/dist/components/BottomSheet/BottomSheet.styles.d.mts +9 -6
- package/dist/components/BottomSheet/BottomSheet.styles.d.mts.map +1 -1
- package/dist/components/BottomSheet/BottomSheet.styles.mjs +8 -3
- package/dist/components/BottomSheet/BottomSheet.styles.mjs.map +1 -1
- package/dist/components/Box/Box.styles.d.cts +3 -3
- package/dist/components/Button/Button.d.cts +2 -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.d.cts +3 -3
- package/dist/components/Button/Button.styles.d.mts +3 -3
- package/dist/components/CTAButton/CTAButton.d.cts +2 -2
- package/dist/components/CTAButton/CTAButton.d.cts.map +1 -1
- package/dist/components/CTAButton/CTAButton.d.mts +2 -2
- package/dist/components/CTAButton/CTAButton.styles.d.cts +3 -3
- package/dist/components/CTAButton/CTAButton.styles.d.mts +3 -3
- package/dist/components/Calendar/Calendar.d.cts +2 -2
- package/dist/components/Calendar/Calendar.d.mts +2 -2
- package/dist/components/Calendar/Calendar.styles.d.mts +3 -3
- package/dist/components/Checkbox/Checkbox.d.cts +4 -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.d.mts.map +1 -1
- package/dist/components/Checkbox/Checkbox.styles.d.cts +3 -3
- package/dist/components/Checkbox/Checkbox.styles.d.mts +3 -3
- package/dist/components/Chip/Chip.d.cts +2 -2
- package/dist/components/Chip/Chip.d.mts +2 -2
- package/dist/components/Chip/Chip.styles.d.cts +3 -3
- package/dist/components/Chip/Chip.styles.d.cts.map +1 -1
- package/dist/components/Chip/Chip.styles.d.mts +3 -3
- package/dist/components/DatePicker/DatePicker.d.cts +2 -2
- package/dist/components/DatePicker/DatePicker.d.mts +2 -2
- package/dist/components/DatePicker/DatePicker.styles.d.cts +3 -3
- package/dist/components/Dialog/Dialog.d.cts +13 -13
- 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/Dialog.styles.d.mts.map +1 -1
- package/dist/components/Dropdown/Dropdown.d.cts +3 -3
- 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.cts.map +1 -1
- package/dist/components/Dropdown/Dropdown.styles.d.mts +3 -3
- package/dist/components/Field/Field.d.cts +5 -5
- package/dist/components/Field/Field.d.cts.map +1 -1
- package/dist/components/Float/Float.styles.d.cts +3 -3
- package/dist/components/FloatingActionButton/FloatingActionButton.d.cts +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/Grid/Grid.styles.d.cts +3 -3
- package/dist/components/Grid/Grid.styles.d.mts +3 -3
- package/dist/components/HStack/HStack.d.cts +2 -2
- package/dist/components/HStack/HStack.d.mts +2 -2
- package/dist/components/Modal/Modal.d.cts +10 -10
- package/dist/components/Modal/Modal.d.mts +10 -10
- package/dist/components/Modal/Modal.styles.d.cts +3 -3
- package/dist/components/Modal/Modal.styles.d.mts +3 -3
- package/dist/components/Primitive/Primitive.d.cts +16 -16
- package/dist/components/Primitive/Primitive.d.mts +16 -16
- package/dist/components/PullToRefresh/PullToRefresh.d.cts +2 -2
- package/dist/components/PullToRefresh/PullToRefresh.d.mts +2 -2
- package/dist/components/PullToRefresh/PullToRefresh.styles.d.cts +3 -3
- package/dist/components/PullToRefresh/PullToRefresh.styles.d.mts +3 -3
- package/dist/components/Radio/Radio.d.cts +3 -3
- package/dist/components/Radio/Radio.d.mts +3 -3
- package/dist/components/Radio/Radio.d.mts.map +1 -1
- package/dist/components/RatioChart/RatioChart.d.cts +5 -5
- package/dist/components/RatioChart/RatioChartEditor.d.cts +2 -2
- package/dist/components/Select/Select.d.cts +5 -5
- package/dist/components/Select/Select.d.mts +5 -5
- package/dist/components/Select/Select.styles.d.cts +3 -3
- package/dist/components/Select/Select.styles.d.mts +3 -3
- package/dist/components/Select/Select.styles.d.mts.map +1 -1
- package/dist/components/Separator/Separator.styles.d.cts +3 -3
- package/dist/components/Separator/Separator.styles.d.cts.map +1 -1
- package/dist/components/Separator/Separator.styles.d.mts +3 -3
- package/dist/components/Sidebar/Sidebar.d.cts +8 -8
- package/dist/components/Sidebar/Sidebar.styles.d.cts +3 -3
- package/dist/components/Skeleton/Skeleton.d.cts +2 -2
- package/dist/components/Skeleton/Skeleton.d.mts +2 -2
- package/dist/components/Skeleton/Skeleton.styles.d.cts +3 -3
- package/dist/components/Skeleton/Skeleton.styles.d.mts +3 -3
- package/dist/components/Spacer/Spacer.styles.d.cts +3 -3
- package/dist/components/Spacer/Spacer.styles.d.cts.map +1 -1
- package/dist/components/Spinner/Spinner.d.cts +2 -2
- package/dist/components/Spinner/Spinner.d.mts +2 -2
- package/dist/components/Spinner/Spinner.styles.d.cts +3 -3
- package/dist/components/Spinner/Spinner.styles.d.mts +3 -3
- package/dist/components/Stack/Stack.styles.d.cts +3 -3
- package/dist/components/Stack/Stack.styles.d.cts.map +1 -1
- package/dist/components/Tab/Tab.d.cts +6 -6
- package/dist/components/Tab/Tab.d.mts +6 -6
- package/dist/components/Tab/Tab.styles.d.cts +3 -3
- package/dist/components/Tab/Tab.styles.d.cts.map +1 -1
- package/dist/components/Tab/Tab.styles.d.mts +3 -3
- package/dist/components/Text/Text.d.cts +3 -3
- package/dist/components/Text/Text.d.mts +1 -1
- package/dist/components/Text/Text.styles.d.cts +3 -3
- package/dist/components/Text/Text.styles.d.cts.map +1 -1
- package/dist/components/Text/Text.styles.d.mts +3 -3
- package/dist/components/TextArea/TextArea.d.cts +4 -4
- package/dist/components/TextArea/TextArea.d.mts +4 -4
- package/dist/components/TextArea/TextArea.styles.d.cts +3 -3
- package/dist/components/TextInput/TextInput.d.cts +2 -2
- package/dist/components/TextInput/TextInput.d.mts +2 -2
- package/dist/components/TextInput/TextInput.styles.d.cts +3 -3
- package/dist/components/TextInput/TextInput.styles.d.mts +3 -3
- 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 +5 -5
- package/dist/components/Toast/Toast.styles.d.cts +3 -3
- package/dist/components/Toast/Toast.styles.d.mts +3 -3
- package/dist/components/Toggle/Toggle.d.cts +4 -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.styles.d.cts +3 -3
- package/dist/components/VStack/VStack.d.cts +2 -2
- package/dist/components/VStack/VStack.d.mts +2 -2
- package/dist/components/index.d.cts +0 -2
- package/dist/components/index.d.mts +0 -2
- package/dist/index.cjs +0 -2
- package/dist/index.d.cts +1 -2
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +1 -2
- package/package.json +3 -2
- package/src/styles/global.css +1 -1
- package/dist/components/Drawer/Drawer.cjs +0 -41
- package/dist/components/Drawer/Drawer.d.cts +0 -29
- package/dist/components/Drawer/Drawer.d.cts.map +0 -1
- package/dist/components/Drawer/Drawer.d.mts +0 -29
- package/dist/components/Drawer/Drawer.d.mts.map +0 -1
- package/dist/components/Drawer/Drawer.mjs +0 -40
- package/dist/components/Drawer/Drawer.mjs.map +0 -1
- package/dist/components/Drawer/Drawer.styles.cjs +0 -23
- package/dist/components/Drawer/Drawer.styles.d.cts +0 -36
- package/dist/components/Drawer/Drawer.styles.d.cts.map +0 -1
- package/dist/components/Drawer/Drawer.styles.d.mts +0 -36
- package/dist/components/Drawer/Drawer.styles.d.mts.map +0 -1
- package/dist/components/Drawer/Drawer.styles.mjs +0 -23
- package/dist/components/Drawer/Drawer.styles.mjs.map +0 -1
- package/dist/components/Drawer/index.d.cts +0 -1
- package/dist/components/Drawer/index.d.mts +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -53,7 +53,6 @@ import { SidebarVariants } from "./components/Sidebar/Sidebar.styles.mjs";
|
|
|
53
53
|
import { Sidebar } from "./components/Sidebar/Sidebar.mjs";
|
|
54
54
|
import { BottomNavigation } from "./components/BottomNavigation/BottomNavigation.mjs";
|
|
55
55
|
import { Calendar, CalendarEvent, CalendarProps } from "./components/Calendar/Calendar.mjs";
|
|
56
|
-
import { Drawer } from "./components/Drawer/Drawer.mjs";
|
|
57
56
|
import { BottomSheet } from "./components/BottomSheet/BottomSheet.mjs";
|
|
58
57
|
import { Skeleton, SkeletonProps } from "./components/Skeleton/Skeleton.mjs";
|
|
59
58
|
import { Spinner, SpinnerProps } from "./components/Spinner/Spinner.mjs";
|
|
@@ -61,4 +60,4 @@ import { PullToRefresh, PullToRefreshProps } from "./components/PullToRefresh/Pu
|
|
|
61
60
|
import { DatePickerVariants } from "./components/DatePicker/DatePicker.styles.mjs";
|
|
62
61
|
import { DatePicker, DatePickerProps } from "./components/DatePicker/DatePicker.mjs";
|
|
63
62
|
import "./components/index.mjs";
|
|
64
|
-
export { Avatar, AvatarProps, AvatarVariants, BottomNavigation, BottomSheet, Box, BoxProps, BoxVariants, Button, ButtonProps, CTAButton, CTAButtonProps, Calendar, CalendarEvent, CalendarProps, Checkbox, CheckboxLabelProps, CheckboxRootProps, Chip, ChipProps, ChipVariants, DatePicker, DatePickerProps, DatePickerVariants, Dialog, DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogOverlayProps, DialogPortalProps, DialogProps, DialogTitleProps, DialogTriggerProps, DialogVariants,
|
|
63
|
+
export { Avatar, AvatarProps, AvatarVariants, BottomNavigation, BottomSheet, Box, BoxProps, BoxVariants, Button, ButtonProps, CTAButton, CTAButtonProps, Calendar, CalendarEvent, CalendarProps, Checkbox, CheckboxLabelProps, CheckboxRootProps, Chip, ChipProps, ChipVariants, DatePicker, DatePickerProps, DatePickerVariants, Dialog, DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogOverlayProps, DialogPortalProps, DialogProps, DialogTitleProps, DialogTriggerProps, DialogVariants, Dropdown, DropdownContentProps, DropdownItemProps, DropdownProps, DropdownTriggerProps, DropdownVariants, Field, FieldDescriptionProps, FieldErrorDescriptionProps, FieldLabelProps, FieldProps, Flex, FlexAlign, FlexDirection, FlexGap, FlexJustify, FlexProps, Float, FloatProps, FloatingActionButton, FloatingActionButtonProps, Grid, GridProps, HStack, HStackProps, Modal, ModalActionProps, ModalContentProps, ModalDescriptionProps, ModalFooterProps, ModalOverlayProps, ModalTitleProps, ModalVariants, PolymorphicProps, PolymorphicPropsWithoutRef, Primitive, PrimitiveProps, PullToRefresh, PullToRefreshProps, Radio, RadioGroup, RadioGroupProps, RadioProps, RatioChart, RatioChartEditor, RatioChartEditorOption, RatioChartEditorProps, RatioChartFooterProps, RatioChartItemProps, RatioChartRootProps, Select, SelectContentProps, SelectGroupProps, SelectItemProps, SelectLabelProps, SelectProps, SelectTriggerProps, SelectValueProps, SelectVariants, Separator, SeparatorProps, SeparatorVariants, Sidebar, SidebarVariants, Skeleton, SkeletonProps, Spacer, SpacerProps, SpacerVariants, Spinner, SpinnerProps, Stack, StackProps, StackVariants, Tab, TabContentProps, TabListProps, TabRootProps, TabTabItemProps, TabVariants, Text, TextArea, TextAreaFooterProps, TextAreaInputProps, TextAreaProps, TextElement, TextInput, TextInputProps, TextInputVariants, TextProps, TextVariants, Toast, ToastProps, ToastProvider, ToastVariants, ToastViewport, ToastViewportProps, Toggle, ToggleLabelProps, ToggleRootProps, VStack, VStackProps, box, convertPxToRem, mergeStyles, splitVariantProps, toast, useRadioGroupContext };
|
package/dist/index.mjs
CHANGED
|
@@ -36,11 +36,10 @@ import { Modal } from "./components/Modal/Modal.mjs";
|
|
|
36
36
|
import { Sidebar } from "./components/Sidebar/Sidebar.mjs";
|
|
37
37
|
import { BottomNavigation } from "./components/BottomNavigation/BottomNavigation.mjs";
|
|
38
38
|
import { Calendar } from "./components/Calendar/Calendar.mjs";
|
|
39
|
-
import { Drawer } from "./components/Drawer/Drawer.mjs";
|
|
40
39
|
import { BottomSheet } from "./components/BottomSheet/BottomSheet.mjs";
|
|
41
40
|
import { Skeleton } from "./components/Skeleton/Skeleton.mjs";
|
|
42
41
|
import { Spinner } from "./components/Spinner/Spinner.mjs";
|
|
43
42
|
import { PullToRefresh } from "./components/PullToRefresh/PullToRefresh.mjs";
|
|
44
43
|
import { DatePicker } from "./components/DatePicker/DatePicker.mjs";
|
|
45
44
|
|
|
46
|
-
export { Avatar, BottomNavigation, BottomSheet, Box, Button, CTAButton, Calendar, Checkbox, Chip, DatePicker, Dialog,
|
|
45
|
+
export { Avatar, BottomNavigation, BottomSheet, Box, Button, CTAButton, Calendar, Checkbox, Chip, DatePicker, Dialog, Dropdown, Field, Flex, Float, FloatingActionButton, Grid, HStack, Modal, Primitive, PullToRefresh, Radio, RadioGroup, RatioChart, RatioChartEditor, Select, Separator, Sidebar, Skeleton, Spacer, Spinner, Stack, Tab, Text, TextArea, TextInput, Toast, ToastProvider, ToastViewport, Toggle, VStack, box, convertPxToRem, mergeStyles, splitVariantProps, toast, useRadioGroupContext };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@causw/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "Core components and utilities for CAUSW Design System - CAU Software Community Service",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"date-fns": "^4.1.0",
|
|
37
37
|
"tailwind-merge": "^3.4.0",
|
|
38
38
|
"tailwind-variants": "^3.2.2",
|
|
39
|
-
"
|
|
39
|
+
"vaul": "^1.1.2",
|
|
40
|
+
"@causw/icons": "1.0.3",
|
|
40
41
|
"@causw/tokens": "0.0.12"
|
|
41
42
|
},
|
|
42
43
|
"peerDependencies": {
|
package/src/styles/global.css
CHANGED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_Drawer_styles = require('./Drawer.styles.cjs');
|
|
3
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
-
let _radix_ui_react_dialog = require("@radix-ui/react-dialog");
|
|
5
|
-
_radix_ui_react_dialog = require_rolldown_runtime.__toESM(_radix_ui_react_dialog);
|
|
6
|
-
|
|
7
|
-
//#region src/components/Drawer/Drawer.tsx
|
|
8
|
-
const DrawerRoot = _radix_ui_react_dialog.Root;
|
|
9
|
-
const DrawerTrigger = _radix_ui_react_dialog.Trigger;
|
|
10
|
-
const DrawerClose = _radix_ui_react_dialog.Close;
|
|
11
|
-
const DrawerPortal = _radix_ui_react_dialog.Portal;
|
|
12
|
-
const DrawerTitle = _radix_ui_react_dialog.Title;
|
|
13
|
-
const DrawerDescription = _radix_ui_react_dialog.Description;
|
|
14
|
-
const DrawerOverlay = ({ className, ...props }) => {
|
|
15
|
-
const { overlay } = require_Drawer_styles.drawer();
|
|
16
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_dialog.Overlay, {
|
|
17
|
-
className: overlay({ className }),
|
|
18
|
-
...props
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
const DrawerContent = ({ position, className, children, ...props }) => {
|
|
22
|
-
const { content } = require_Drawer_styles.drawer({ position });
|
|
23
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_dialog.Content, {
|
|
24
|
-
className: content({ className }),
|
|
25
|
-
...props,
|
|
26
|
-
children
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
const Drawer = Object.assign(DrawerRoot, {
|
|
30
|
-
Root: DrawerRoot,
|
|
31
|
-
Trigger: DrawerTrigger,
|
|
32
|
-
Close: DrawerClose,
|
|
33
|
-
Portal: DrawerPortal,
|
|
34
|
-
Overlay: DrawerOverlay,
|
|
35
|
-
Content: DrawerContent,
|
|
36
|
-
Title: DrawerTitle,
|
|
37
|
-
Description: DrawerDescription
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
//#endregion
|
|
41
|
-
exports.Drawer = Drawer;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { DrawerVariants } from "./Drawer.styles.cjs";
|
|
2
|
-
import * as react5 from "react";
|
|
3
|
-
import * as react_jsx_runtime70 from "react/jsx-runtime";
|
|
4
|
-
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
5
|
-
|
|
6
|
-
//#region src/components/Drawer/Drawer.d.ts
|
|
7
|
-
type DrawerOverlayProps = React.ComponentProps<typeof DialogPrimitive.Overlay>;
|
|
8
|
-
type DrawerContentProps = React.ComponentProps<typeof DialogPrimitive.Content> & DrawerVariants;
|
|
9
|
-
declare const Drawer: react5.FC<DialogPrimitive.DialogProps> & {
|
|
10
|
-
Root: react5.FC<DialogPrimitive.DialogProps>;
|
|
11
|
-
Trigger: react5.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react5.RefAttributes<HTMLButtonElement>>;
|
|
12
|
-
Close: react5.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react5.RefAttributes<HTMLButtonElement>>;
|
|
13
|
-
Portal: react5.FC<DialogPrimitive.DialogPortalProps>;
|
|
14
|
-
Overlay: ({
|
|
15
|
-
className,
|
|
16
|
-
...props
|
|
17
|
-
}: DrawerOverlayProps) => react_jsx_runtime70.JSX.Element;
|
|
18
|
-
Content: ({
|
|
19
|
-
position,
|
|
20
|
-
className,
|
|
21
|
-
children,
|
|
22
|
-
...props
|
|
23
|
-
}: DrawerContentProps) => react_jsx_runtime70.JSX.Element;
|
|
24
|
-
Title: react5.ForwardRefExoticComponent<DialogPrimitive.DialogTitleProps & react5.RefAttributes<HTMLHeadingElement>>;
|
|
25
|
-
Description: react5.ForwardRefExoticComponent<DialogPrimitive.DialogDescriptionProps & react5.RefAttributes<HTMLParagraphElement>>;
|
|
26
|
-
};
|
|
27
|
-
//#endregion
|
|
28
|
-
export { Drawer };
|
|
29
|
-
//# sourceMappingURL=Drawer.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.cts","names":[],"sources":["../../../src/components/Drawer/Drawer.tsx"],"mappings":";;;;;;KAUK,kBAAA,GAAqB,KAAA,CAAM,cAAA,QAAsB,eAAA,CAAgB,OAAA;AAAA,KASjE,kBAAA,GAAqB,KAAA,CAAM,cAAA,QAAsB,eAAA,CAAgB,OAAA,IACpE,cAAA;AAAA,cAgBW,MAAA,EAAM,MAAA,CAAA,EAAA,CAAA,eAAA,CAAA,WAAA;;;;;;;;KAxB6B,kBAAA,KAAkB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;KAe/D,kBAAA,KAAkB,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { DrawerVariants } from "./Drawer.styles.mjs";
|
|
2
|
-
import * as react16 from "react";
|
|
3
|
-
import * as react_jsx_runtime82 from "react/jsx-runtime";
|
|
4
|
-
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
5
|
-
|
|
6
|
-
//#region src/components/Drawer/Drawer.d.ts
|
|
7
|
-
type DrawerOverlayProps = React.ComponentProps<typeof DialogPrimitive.Overlay>;
|
|
8
|
-
type DrawerContentProps = React.ComponentProps<typeof DialogPrimitive.Content> & DrawerVariants;
|
|
9
|
-
declare const Drawer: react16.FC<DialogPrimitive.DialogProps> & {
|
|
10
|
-
Root: react16.FC<DialogPrimitive.DialogProps>;
|
|
11
|
-
Trigger: react16.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react16.RefAttributes<HTMLButtonElement>>;
|
|
12
|
-
Close: react16.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react16.RefAttributes<HTMLButtonElement>>;
|
|
13
|
-
Portal: react16.FC<DialogPrimitive.DialogPortalProps>;
|
|
14
|
-
Overlay: ({
|
|
15
|
-
className,
|
|
16
|
-
...props
|
|
17
|
-
}: DrawerOverlayProps) => react_jsx_runtime82.JSX.Element;
|
|
18
|
-
Content: ({
|
|
19
|
-
position,
|
|
20
|
-
className,
|
|
21
|
-
children,
|
|
22
|
-
...props
|
|
23
|
-
}: DrawerContentProps) => react_jsx_runtime82.JSX.Element;
|
|
24
|
-
Title: react16.ForwardRefExoticComponent<DialogPrimitive.DialogTitleProps & react16.RefAttributes<HTMLHeadingElement>>;
|
|
25
|
-
Description: react16.ForwardRefExoticComponent<DialogPrimitive.DialogDescriptionProps & react16.RefAttributes<HTMLParagraphElement>>;
|
|
26
|
-
};
|
|
27
|
-
//#endregion
|
|
28
|
-
export { Drawer };
|
|
29
|
-
//# sourceMappingURL=Drawer.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.mts","names":[],"sources":["../../../src/components/Drawer/Drawer.tsx"],"mappings":";;;;;;KAUK,kBAAA,GAAqB,KAAA,CAAM,cAAA,QAAsB,eAAA,CAAgB,OAAA;AAAA,KASjE,kBAAA,GAAqB,KAAA,CAAM,cAAA,QAAsB,eAAA,CAAgB,OAAA,IACpE,cAAA;AAAA,cAgBW,MAAA,EAAM,OAAA,CAAA,EAAA,CAAA,eAAA,CAAA,WAAA;;;;;;;;KAxB6B,kBAAA,KAAkB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;KAe/D,kBAAA,KAAkB,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { drawer } from "./Drawer.styles.mjs";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
4
|
-
|
|
5
|
-
//#region src/components/Drawer/Drawer.tsx
|
|
6
|
-
const DrawerRoot = DialogPrimitive.Root;
|
|
7
|
-
const DrawerTrigger = DialogPrimitive.Trigger;
|
|
8
|
-
const DrawerClose = DialogPrimitive.Close;
|
|
9
|
-
const DrawerPortal = DialogPrimitive.Portal;
|
|
10
|
-
const DrawerTitle = DialogPrimitive.Title;
|
|
11
|
-
const DrawerDescription = DialogPrimitive.Description;
|
|
12
|
-
const DrawerOverlay = ({ className, ...props }) => {
|
|
13
|
-
const { overlay } = drawer();
|
|
14
|
-
return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, {
|
|
15
|
-
className: overlay({ className }),
|
|
16
|
-
...props
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
const DrawerContent = ({ position, className, children, ...props }) => {
|
|
20
|
-
const { content } = drawer({ position });
|
|
21
|
-
return /* @__PURE__ */ jsx(DialogPrimitive.Content, {
|
|
22
|
-
className: content({ className }),
|
|
23
|
-
...props,
|
|
24
|
-
children
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
const Drawer = Object.assign(DrawerRoot, {
|
|
28
|
-
Root: DrawerRoot,
|
|
29
|
-
Trigger: DrawerTrigger,
|
|
30
|
-
Close: DrawerClose,
|
|
31
|
-
Portal: DrawerPortal,
|
|
32
|
-
Overlay: DrawerOverlay,
|
|
33
|
-
Content: DrawerContent,
|
|
34
|
-
Title: DrawerTitle,
|
|
35
|
-
Description: DrawerDescription
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
//#endregion
|
|
39
|
-
export { Drawer };
|
|
40
|
-
//# sourceMappingURL=Drawer.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.mjs","names":[],"sources":["../../../src/components/Drawer/Drawer.tsx"],"sourcesContent":["import * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { drawer, DrawerVariants } from './Drawer.styles';\n\nconst DrawerRoot = DialogPrimitive.Root;\nconst DrawerTrigger = DialogPrimitive.Trigger;\nconst DrawerClose = DialogPrimitive.Close;\nconst DrawerPortal = DialogPrimitive.Portal;\nconst DrawerTitle = DialogPrimitive.Title;\nconst DrawerDescription = DialogPrimitive.Description;\n\ntype DrawerOverlayProps = React.ComponentProps<typeof DialogPrimitive.Overlay>;\n\nconst DrawerOverlay = ({ className, ...props }: DrawerOverlayProps) => {\n const { overlay } = drawer();\n return (\n <DialogPrimitive.Overlay className={overlay({ className })} {...props} />\n );\n};\n\ntype DrawerContentProps = React.ComponentProps<typeof DialogPrimitive.Content> &\n DrawerVariants;\n\nconst DrawerContent = ({\n position,\n className,\n children,\n ...props\n}: DrawerContentProps) => {\n const { content } = drawer({ position });\n return (\n <DialogPrimitive.Content className={content({ className })} {...props}>\n {children}\n </DialogPrimitive.Content>\n );\n};\n\nexport const Drawer = Object.assign(DrawerRoot, {\n Root: DrawerRoot,\n Trigger: DrawerTrigger,\n Close: DrawerClose,\n Portal: DrawerPortal,\n Overlay: DrawerOverlay,\n Content: DrawerContent,\n Title: DrawerTitle,\n Description: DrawerDescription,\n});\n"],"mappings":";;;;;AAGA,MAAM,aAAa,gBAAgB;AACnC,MAAM,gBAAgB,gBAAgB;AACtC,MAAM,cAAc,gBAAgB;AACpC,MAAM,eAAe,gBAAgB;AACrC,MAAM,cAAc,gBAAgB;AACpC,MAAM,oBAAoB,gBAAgB;AAI1C,MAAM,iBAAiB,EAAE,WAAW,GAAG,YAAgC;CACrE,MAAM,EAAE,YAAY,QAAQ;AAC5B,QACE,oBAAC,gBAAgB;EAAQ,WAAW,QAAQ,EAAE,WAAW,CAAC;EAAE,GAAI;GAAS;;AAO7E,MAAM,iBAAiB,EACrB,UACA,WACA,UACA,GAAG,YACqB;CACxB,MAAM,EAAE,YAAY,OAAO,EAAE,UAAU,CAAC;AACxC,QACE,oBAAC,gBAAgB;EAAQ,WAAW,QAAQ,EAAE,WAAW,CAAC;EAAE,GAAI;EAC7D;GACuB;;AAI9B,MAAa,SAAS,OAAO,OAAO,YAAY;CAC9C,MAAM;CACN,SAAS;CACT,OAAO;CACP,QAAQ;CACR,SAAS;CACT,SAAS;CACT,OAAO;CACP,aAAa;CACd,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let tailwind_variants = require("tailwind-variants");
|
|
3
|
-
|
|
4
|
-
//#region src/components/Drawer/Drawer.styles.ts
|
|
5
|
-
const drawer = (0, tailwind_variants.tv)({
|
|
6
|
-
slots: {
|
|
7
|
-
overlay: [
|
|
8
|
-
"fixed inset-0 z-50",
|
|
9
|
-
"data-[state=open]:animate-overlay-show",
|
|
10
|
-
"data-[state=closed]:animate-overlay-hide"
|
|
11
|
-
],
|
|
12
|
-
content: [
|
|
13
|
-
"fixed z-50 w-full",
|
|
14
|
-
"data-[state=open]:animate-content-show",
|
|
15
|
-
"data-[state=closed]:animate-content-hide"
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
variants: { position: { bottom: { content: "bottom-0" } } },
|
|
19
|
-
defaultVariants: { position: "bottom" }
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
//#endregion
|
|
23
|
-
exports.drawer = drawer;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as tailwind_variants51 from "tailwind-variants";
|
|
2
|
-
import { VariantProps } from "tailwind-variants";
|
|
3
|
-
|
|
4
|
-
//#region src/components/Drawer/Drawer.styles.d.ts
|
|
5
|
-
declare const drawer: tailwind_variants51.TVReturnType<{
|
|
6
|
-
position: {
|
|
7
|
-
bottom: {
|
|
8
|
-
content: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
}, {
|
|
12
|
-
overlay: string[];
|
|
13
|
-
content: string[];
|
|
14
|
-
}, undefined, {
|
|
15
|
-
position: {
|
|
16
|
-
bottom: {
|
|
17
|
-
content: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
}, {
|
|
21
|
-
overlay: string[];
|
|
22
|
-
content: string[];
|
|
23
|
-
}, tailwind_variants51.TVReturnType<{
|
|
24
|
-
position: {
|
|
25
|
-
bottom: {
|
|
26
|
-
content: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
}, {
|
|
30
|
-
overlay: string[];
|
|
31
|
-
content: string[];
|
|
32
|
-
}, undefined, unknown, unknown, undefined>>;
|
|
33
|
-
type DrawerVariants = VariantProps<typeof drawer>;
|
|
34
|
-
//#endregion
|
|
35
|
-
export { DrawerVariants };
|
|
36
|
-
//# sourceMappingURL=Drawer.styles.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.styles.d.cts","names":[],"sources":["../../../src/components/Drawer/Drawer.styles.ts"],"mappings":";;;;cAEa,MAAA,EAuBX,mBAAA,CAvBiB,YAAA;;;;;;;;;;;;;;;;;;GAuBjB,mBAAA,CAAA,YAAA;;;;;;;;;;KAEU,cAAA,GAAiB,YAAA,QAAoB,MAAA"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as tailwind_variants53 from "tailwind-variants";
|
|
2
|
-
import { VariantProps } from "tailwind-variants";
|
|
3
|
-
|
|
4
|
-
//#region src/components/Drawer/Drawer.styles.d.ts
|
|
5
|
-
declare const drawer: tailwind_variants53.TVReturnType<{
|
|
6
|
-
position: {
|
|
7
|
-
bottom: {
|
|
8
|
-
content: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
}, {
|
|
12
|
-
overlay: string[];
|
|
13
|
-
content: string[];
|
|
14
|
-
}, undefined, {
|
|
15
|
-
position: {
|
|
16
|
-
bottom: {
|
|
17
|
-
content: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
}, {
|
|
21
|
-
overlay: string[];
|
|
22
|
-
content: string[];
|
|
23
|
-
}, tailwind_variants53.TVReturnType<{
|
|
24
|
-
position: {
|
|
25
|
-
bottom: {
|
|
26
|
-
content: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
}, {
|
|
30
|
-
overlay: string[];
|
|
31
|
-
content: string[];
|
|
32
|
-
}, undefined, unknown, unknown, undefined>>;
|
|
33
|
-
type DrawerVariants = VariantProps<typeof drawer>;
|
|
34
|
-
//#endregion
|
|
35
|
-
export { DrawerVariants };
|
|
36
|
-
//# sourceMappingURL=Drawer.styles.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.styles.d.mts","names":[],"sources":["../../../src/components/Drawer/Drawer.styles.ts"],"mappings":";;;;cAEa,MAAA,EAuBX,mBAAA,CAvBiB,YAAA;;;;;;;;;;;;;;;;;;GAuBjB,mBAAA,CAAA,YAAA;;;;;;;;;;KAEU,cAAA,GAAiB,YAAA,QAAoB,MAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { tv } from "tailwind-variants";
|
|
2
|
-
|
|
3
|
-
//#region src/components/Drawer/Drawer.styles.ts
|
|
4
|
-
const drawer = tv({
|
|
5
|
-
slots: {
|
|
6
|
-
overlay: [
|
|
7
|
-
"fixed inset-0 z-50",
|
|
8
|
-
"data-[state=open]:animate-overlay-show",
|
|
9
|
-
"data-[state=closed]:animate-overlay-hide"
|
|
10
|
-
],
|
|
11
|
-
content: [
|
|
12
|
-
"fixed z-50 w-full",
|
|
13
|
-
"data-[state=open]:animate-content-show",
|
|
14
|
-
"data-[state=closed]:animate-content-hide"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
variants: { position: { bottom: { content: "bottom-0" } } },
|
|
18
|
-
defaultVariants: { position: "bottom" }
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
//#endregion
|
|
22
|
-
export { drawer };
|
|
23
|
-
//# sourceMappingURL=Drawer.styles.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.styles.mjs","names":[],"sources":["../../../src/components/Drawer/Drawer.styles.ts"],"sourcesContent":["import { tv, type VariantProps } from 'tailwind-variants';\n\nexport const drawer = tv({\n slots: {\n overlay: [\n 'fixed inset-0 z-50',\n 'data-[state=open]:animate-overlay-show',\n 'data-[state=closed]:animate-overlay-hide',\n ],\n content: [\n 'fixed z-50 w-full',\n 'data-[state=open]:animate-content-show',\n 'data-[state=closed]:animate-content-hide',\n ],\n },\n variants: {\n position: {\n bottom: {\n content: 'bottom-0',\n },\n },\n },\n defaultVariants: {\n position: 'bottom',\n },\n});\n\nexport type DrawerVariants = VariantProps<typeof drawer>;\n"],"mappings":";;;AAEA,MAAa,SAAS,GAAG;CACvB,OAAO;EACL,SAAS;GACP;GACA;GACA;GACD;EACD,SAAS;GACP;GACA;GACA;GACD;EACF;CACD,UAAU,EACR,UAAU,EACR,QAAQ,EACN,SAAS,YACV,EACF,EACF;CACD,iBAAiB,EACf,UAAU,UACX;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { Drawer } from "./Drawer.cjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { Drawer } from "./Drawer.mjs";
|