@causw/core 0.0.11 → 0.0.13
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.cjs +78 -0
- package/dist/components/BottomNavigation/BottomNavigation.d.cts +48 -0
- package/dist/components/BottomNavigation/BottomNavigation.d.cts.map +1 -0
- package/dist/components/BottomNavigation/BottomNavigation.d.mts +49 -0
- package/dist/components/BottomNavigation/BottomNavigation.d.mts.map +1 -0
- package/dist/components/BottomNavigation/BottomNavigation.mjs +78 -0
- package/dist/components/BottomNavigation/BottomNavigation.mjs.map +1 -0
- package/dist/components/BottomNavigation/BottomNavigation.styles.cjs +26 -0
- package/dist/components/BottomNavigation/BottomNavigation.styles.d.cts +57 -0
- package/dist/components/BottomNavigation/BottomNavigation.styles.d.cts.map +1 -0
- package/dist/components/BottomNavigation/BottomNavigation.styles.d.mts +57 -0
- package/dist/components/BottomNavigation/BottomNavigation.styles.d.mts.map +1 -0
- package/dist/components/BottomNavigation/BottomNavigation.styles.mjs +26 -0
- package/dist/components/BottomNavigation/BottomNavigation.styles.mjs.map +1 -0
- package/dist/components/BottomNavigation/hooks/useBottomNavigationContext.cjs +22 -0
- package/dist/components/BottomNavigation/hooks/useBottomNavigationContext.mjs +19 -0
- package/dist/components/BottomNavigation/hooks/useBottomNavigationContext.mjs.map +1 -0
- package/dist/components/BottomNavigation/index.d.mts +1 -0
- package/dist/components/BottomSheet/BottomSheet.cjs +94 -0
- package/dist/components/BottomSheet/BottomSheet.d.cts +69 -0
- package/dist/components/BottomSheet/BottomSheet.d.cts.map +1 -0
- package/dist/components/BottomSheet/BottomSheet.d.mts +69 -0
- package/dist/components/BottomSheet/BottomSheet.d.mts.map +1 -0
- package/dist/components/BottomSheet/BottomSheet.mjs +93 -0
- package/dist/components/BottomSheet/BottomSheet.mjs.map +1 -0
- package/dist/components/BottomSheet/BottomSheet.styles.cjs +21 -0
- package/dist/components/BottomSheet/BottomSheet.styles.d.cts +54 -0
- package/dist/components/BottomSheet/BottomSheet.styles.d.cts.map +1 -0
- package/dist/components/BottomSheet/BottomSheet.styles.d.mts +54 -0
- package/dist/components/BottomSheet/BottomSheet.styles.d.mts.map +1 -0
- package/dist/components/BottomSheet/BottomSheet.styles.mjs +21 -0
- package/dist/components/BottomSheet/BottomSheet.styles.mjs.map +1 -0
- package/dist/components/BottomSheet/index.d.mts +1 -0
- package/dist/components/Box/Box.styles.d.cts +3 -3
- package/dist/components/Box/Box.styles.d.cts.map +1 -1
- package/dist/components/Button/Button.d.cts +2 -2
- package/dist/components/Button/Button.styles.d.mts +3 -3
- package/dist/components/CTAButton/CTAButton.d.cts +2 -2
- package/dist/components/CTAButton/CTAButton.styles.d.mts +3 -3
- package/dist/components/Calendar/Calendar.cjs +191 -0
- package/dist/components/Calendar/Calendar.d.cts +40 -0
- package/dist/components/Calendar/Calendar.d.cts.map +1 -0
- package/dist/components/Calendar/Calendar.d.mts +40 -0
- package/dist/components/Calendar/Calendar.d.mts.map +1 -0
- package/dist/components/Calendar/Calendar.mjs +190 -0
- package/dist/components/Calendar/Calendar.mjs.map +1 -0
- package/dist/components/Calendar/Calendar.styles.cjs +121 -0
- package/dist/components/Calendar/Calendar.styles.d.cts +269 -0
- package/dist/components/Calendar/Calendar.styles.d.cts.map +1 -0
- package/dist/components/Calendar/Calendar.styles.d.mts +269 -0
- package/dist/components/Calendar/Calendar.styles.d.mts.map +1 -0
- package/dist/components/Calendar/Calendar.styles.mjs +120 -0
- package/dist/components/Calendar/Calendar.styles.mjs.map +1 -0
- package/dist/components/Calendar/index.d.mts +1 -0
- 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/Dialog/Dialog.d.cts +13 -13
- package/dist/components/Drawer/Drawer.cjs +41 -0
- package/dist/components/Drawer/Drawer.d.cts +29 -0
- package/dist/components/Drawer/Drawer.d.cts.map +1 -0
- package/dist/components/Drawer/Drawer.d.mts +29 -0
- package/dist/components/Drawer/Drawer.d.mts.map +1 -0
- package/dist/components/Drawer/Drawer.mjs +40 -0
- package/dist/components/Drawer/Drawer.mjs.map +1 -0
- package/dist/components/Drawer/Drawer.styles.cjs +23 -0
- package/dist/components/Drawer/Drawer.styles.d.cts +36 -0
- package/dist/components/Drawer/Drawer.styles.d.cts.map +1 -0
- package/dist/components/Drawer/Drawer.styles.d.mts +36 -0
- package/dist/components/Drawer/Drawer.styles.d.mts.map +1 -0
- package/dist/components/Drawer/Drawer.styles.mjs +23 -0
- package/dist/components/Drawer/Drawer.styles.mjs.map +1 -0
- package/dist/components/Drawer/index.d.mts +1 -0
- 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.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/Float/Float.styles.d.mts +3 -3
- package/dist/components/FloatingActionButton/FloatingActionButton.d.cts +2 -2
- 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/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 +7 -7
- package/dist/components/Modal/Modal.d.mts +7 -7
- 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/Radio/Radio.d.cts +3 -3
- 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/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.mts +3 -3
- package/dist/components/Separator/Separator.styles.d.mts.map +1 -1
- package/dist/components/Sidebar/Sidebar.cjs +95 -0
- package/dist/components/Sidebar/Sidebar.d.cts +64 -0
- package/dist/components/Sidebar/Sidebar.d.cts.map +1 -0
- package/dist/components/Sidebar/Sidebar.d.mts +65 -0
- package/dist/components/Sidebar/Sidebar.d.mts.map +1 -0
- package/dist/components/Sidebar/Sidebar.mjs +95 -0
- package/dist/components/Sidebar/Sidebar.mjs.map +1 -0
- package/dist/components/Sidebar/Sidebar.styles.cjs +32 -0
- package/dist/components/Sidebar/Sidebar.styles.d.cts +75 -0
- package/dist/components/Sidebar/Sidebar.styles.d.cts.map +1 -0
- package/dist/components/Sidebar/Sidebar.styles.d.mts +75 -0
- package/dist/components/Sidebar/Sidebar.styles.d.mts.map +1 -0
- package/dist/components/Sidebar/Sidebar.styles.mjs +32 -0
- package/dist/components/Sidebar/Sidebar.styles.mjs.map +1 -0
- package/dist/components/Sidebar/hooks/useSidebarContext.cjs +22 -0
- package/dist/components/Sidebar/hooks/useSidebarContext.d.cts +5 -0
- package/dist/components/Sidebar/hooks/useSidebarContext.d.cts.map +1 -0
- package/dist/components/Sidebar/hooks/useSidebarContext.d.mts +7 -0
- package/dist/components/Sidebar/hooks/useSidebarContext.d.mts.map +1 -0
- package/dist/components/Sidebar/hooks/useSidebarContext.mjs +19 -0
- package/dist/components/Sidebar/hooks/useSidebarContext.mjs.map +1 -0
- package/dist/components/Sidebar/index.d.mts +2 -0
- package/dist/components/Spacer/Spacer.styles.d.cts +3 -3
- package/dist/components/Spacer/Spacer.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.mts +3 -3
- package/dist/components/Text/Text.d.cts +1 -1
- package/dist/components/Text/Text.d.mts +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.mts +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.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 +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/Toggle/Toggle.d.cts +4 -4
- 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.mts +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.mts +12 -1
- package/dist/hooks/bottomSheet/useBottomSheet.cjs +15 -0
- package/dist/hooks/bottomSheet/useBottomSheet.mjs +13 -0
- package/dist/hooks/bottomSheet/useBottomSheet.mjs.map +1 -0
- package/dist/index.cjs +10 -0
- package/dist/index.d.cts +7 -1
- package/dist/index.d.mts +7 -1
- package/dist/index.mjs +6 -1
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants23 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Toast/Toast.styles.d.ts
|
|
5
|
-
declare const toast:
|
|
5
|
+
declare const toast: tailwind_variants23.TVReturnType<{
|
|
6
6
|
variant: {
|
|
7
7
|
default: {
|
|
8
8
|
root: string;
|
|
@@ -20,7 +20,7 @@ declare const toast: tailwind_variants15.TVReturnType<{
|
|
|
20
20
|
}, {
|
|
21
21
|
root: string[];
|
|
22
22
|
viewport: string[];
|
|
23
|
-
},
|
|
23
|
+
}, tailwind_variants23.TVReturnType<{
|
|
24
24
|
variant: {
|
|
25
25
|
default: {
|
|
26
26
|
root: string;
|
|
@@ -1,8 +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/Toast/Toast.styles.d.ts
|
|
5
|
-
declare const toast:
|
|
5
|
+
declare const toast: tailwind_variants21.TVReturnType<{
|
|
6
6
|
variant: {
|
|
7
7
|
default: {
|
|
8
8
|
root: string;
|
|
@@ -20,7 +20,7 @@ declare const toast: tailwind_variants23.TVReturnType<{
|
|
|
20
20
|
}, {
|
|
21
21
|
root: string[];
|
|
22
22
|
viewport: string[];
|
|
23
|
-
},
|
|
23
|
+
}, tailwind_variants21.TVReturnType<{
|
|
24
24
|
variant: {
|
|
25
25
|
default: {
|
|
26
26
|
root: string;
|
|
@@ -3,7 +3,7 @@ import { PolymorphicProps } from "../../utils/polymorphic/polymorphic.cjs";
|
|
|
3
3
|
import { TextElement } from "../Text/Text.cjs";
|
|
4
4
|
import { ToggleVariants } from "./Toggle.styles.cjs";
|
|
5
5
|
import React from "react";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/Toggle/Toggle.d.ts
|
|
9
9
|
interface ToggleRootProps extends Omit<React.ComponentProps<'label'>, 'onChange'>, ToggleVariants {
|
|
@@ -21,11 +21,11 @@ declare const Toggle: {
|
|
|
21
21
|
children,
|
|
22
22
|
className,
|
|
23
23
|
...props
|
|
24
|
-
}: ToggleRootProps):
|
|
24
|
+
}: ToggleRootProps): react_jsx_runtime9.JSX.Element;
|
|
25
25
|
displayName: string;
|
|
26
26
|
} & {
|
|
27
27
|
Switch: {
|
|
28
|
-
():
|
|
28
|
+
(): react_jsx_runtime9.JSX.Element;
|
|
29
29
|
displayName: string;
|
|
30
30
|
};
|
|
31
31
|
Label: {
|
|
@@ -35,7 +35,7 @@ declare const Toggle: {
|
|
|
35
35
|
textColor,
|
|
36
36
|
className,
|
|
37
37
|
...props
|
|
38
|
-
}: ToggleLabelProps<E>):
|
|
38
|
+
}: ToggleLabelProps<E>): react_jsx_runtime9.JSX.Element;
|
|
39
39
|
displayName: string;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
@@ -5,7 +5,7 @@ import "../Text/index.mjs";
|
|
|
5
5
|
import "../../utils/index.mjs";
|
|
6
6
|
import { ToggleVariants } from "./Toggle.styles.mjs";
|
|
7
7
|
import React from "react";
|
|
8
|
-
import * as
|
|
8
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/components/Toggle/Toggle.d.ts
|
|
11
11
|
interface ToggleRootProps extends Omit<React.ComponentProps<'label'>, 'onChange'>, ToggleVariants {
|
|
@@ -23,11 +23,11 @@ declare const Toggle: {
|
|
|
23
23
|
children,
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: ToggleRootProps):
|
|
26
|
+
}: ToggleRootProps): react_jsx_runtime4.JSX.Element;
|
|
27
27
|
displayName: string;
|
|
28
28
|
} & {
|
|
29
29
|
Switch: {
|
|
30
|
-
():
|
|
30
|
+
(): react_jsx_runtime4.JSX.Element;
|
|
31
31
|
displayName: string;
|
|
32
32
|
};
|
|
33
33
|
Label: {
|
|
@@ -37,7 +37,7 @@ declare const Toggle: {
|
|
|
37
37
|
textColor,
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
40
|
-
}: ToggleLabelProps<E>):
|
|
40
|
+
}: ToggleLabelProps<E>): react_jsx_runtime4.JSX.Element;
|
|
41
41
|
displayName: string;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.d.mts","names":[],"sources":["../../../src/components/Toggle/Toggle.tsx"],"mappings":";;;;;;;;;;UAyBiB,eAAA,SACP,IAAA,CAAK,KAAA,CAAM,cAAA,wBAAsC,cAAA;EACzD,cAAA;EACA,eAAA,IAAmB,OAAA;EACnB,QAAA,GAAW,KAAA,CAAM,SAAA;AAAA;AAAA,KAwDP,gBAAA,WAA2B,WAAA,aAAwB,gBAAA,CAC7D,CAAA,EACA,YAAA;AAAA,cA8BW,MAAA;EAAA;;;;;;;;KA7EV,eAAA,GAAe,
|
|
1
|
+
{"version":3,"file":"Toggle.d.mts","names":[],"sources":["../../../src/components/Toggle/Toggle.tsx"],"mappings":";;;;;;;;;;UAyBiB,eAAA,SACP,IAAA,CAAK,KAAA,CAAM,cAAA,wBAAsC,cAAA;EACzD,cAAA;EACA,eAAA,IAAmB,OAAA;EACnB,QAAA,GAAW,KAAA,CAAM,SAAA;AAAA;AAAA,KAwDP,gBAAA,WAA2B,WAAA,aAAwB,gBAAA,CAC7D,CAAA,EACA,YAAA;AAAA,cA8BW,MAAA;EAAA;;;;;;;;KA7EV,eAAA,GAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;eAkDa,WAAA;MAAW,QAAA;MAAA,UAAA;MAAA,SAAA;MAAA,SAAA;MAAA,GAAA;IAAA,GAMvC,gBAAA,CAAiB,CAAA,IAAE,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants29 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Toggle/Toggle.styles.d.ts
|
|
5
|
-
declare const toggle:
|
|
5
|
+
declare const toggle: tailwind_variants29.TVReturnType<{
|
|
6
6
|
checked: {
|
|
7
7
|
true: {
|
|
8
8
|
switch: string;
|
|
@@ -46,7 +46,7 @@ declare const toggle: tailwind_variants31.TVReturnType<{
|
|
|
46
46
|
switch: string;
|
|
47
47
|
switchThumb: string;
|
|
48
48
|
label: string;
|
|
49
|
-
},
|
|
49
|
+
}, tailwind_variants29.TVReturnType<{
|
|
50
50
|
checked: {
|
|
51
51
|
true: {
|
|
52
52
|
switch: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { StackProps } from "../Stack/Stack.cjs";
|
|
2
2
|
import { ElementType } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/VStack/VStack.d.ts
|
|
6
6
|
type VStackProps<E extends ElementType = 'div'> = Omit<StackProps<E>, 'direction'>;
|
|
7
7
|
declare const VStack: {
|
|
8
8
|
<E extends ElementType = "div">({
|
|
9
9
|
...props
|
|
10
|
-
}: VStackProps<E>):
|
|
10
|
+
}: VStackProps<E>): react_jsx_runtime19.JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { StackProps } from "../Stack/Stack.mjs";
|
|
2
2
|
import "../Stack/index.mjs";
|
|
3
3
|
import { ElementType } from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/VStack/VStack.d.ts
|
|
7
7
|
type VStackProps<E extends ElementType = 'div'> = Omit<StackProps<E>, 'direction'>;
|
|
8
8
|
declare const VStack: {
|
|
9
9
|
<E extends ElementType = "div">({
|
|
10
10
|
...props
|
|
11
|
-
}: VStackProps<E>):
|
|
11
|
+
}: VStackProps<E>): react_jsx_runtime19.JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
14
14
|
//#endregion
|
|
@@ -71,4 +71,15 @@ import { Toast, ToastProps, ToastProvider, ToastViewport, ToastViewportProps } f
|
|
|
71
71
|
import "./Toast/index.mjs";
|
|
72
72
|
import { ModalVariants } from "./Modal/Modal.styles.mjs";
|
|
73
73
|
import { Modal, ModalActionProps, ModalContentProps, ModalDescriptionProps, ModalFooterProps, ModalOverlayProps, ModalTitleProps } from "./Modal/Modal.mjs";
|
|
74
|
-
import "./Modal/index.mjs";
|
|
74
|
+
import "./Modal/index.mjs";
|
|
75
|
+
import { SidebarVariants } from "./Sidebar/Sidebar.styles.mjs";
|
|
76
|
+
import { Sidebar } from "./Sidebar/Sidebar.mjs";
|
|
77
|
+
import "./Sidebar/index.mjs";
|
|
78
|
+
import { BottomNavigation } from "./BottomNavigation/BottomNavigation.mjs";
|
|
79
|
+
import "./BottomNavigation/index.mjs";
|
|
80
|
+
import { Calendar, CalendarEvent, CalendarProps } from "./Calendar/Calendar.mjs";
|
|
81
|
+
import "./Calendar/index.mjs";
|
|
82
|
+
import { Drawer } from "./Drawer/Drawer.mjs";
|
|
83
|
+
import { BottomSheet } from "./BottomSheet/BottomSheet.mjs";
|
|
84
|
+
import "./BottomSheet/index.mjs";
|
|
85
|
+
import "./Drawer/index.mjs";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let react = require("react");
|
|
3
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
4
|
+
|
|
5
|
+
//#region src/hooks/bottomSheet/useBottomSheet.ts
|
|
6
|
+
const BottomSheetContext = (0, react.createContext)(void 0);
|
|
7
|
+
const useBottomSheet = () => {
|
|
8
|
+
const context = react.default.useContext(BottomSheetContext);
|
|
9
|
+
if (!context) throw new Error("useBottomSheet must be used within a BottomSheetProvider");
|
|
10
|
+
return context;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.BottomSheetContext = BottomSheetContext;
|
|
15
|
+
exports.useBottomSheet = useBottomSheet;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { createContext } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/bottomSheet/useBottomSheet.ts
|
|
4
|
+
const BottomSheetContext = createContext(void 0);
|
|
5
|
+
const useBottomSheet = () => {
|
|
6
|
+
const context = React.useContext(BottomSheetContext);
|
|
7
|
+
if (!context) throw new Error("useBottomSheet must be used within a BottomSheetProvider");
|
|
8
|
+
return context;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { BottomSheetContext, useBottomSheet };
|
|
13
|
+
//# sourceMappingURL=useBottomSheet.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBottomSheet.mjs","names":[],"sources":["../../../src/hooks/bottomSheet/useBottomSheet.ts"],"sourcesContent":["import React, { createContext } from 'react';\nimport { HeaderAlign } from '../../components/BottomSheet/BottomSheet.styles';\n\ninterface BottomSheetContextValue {\n headerAlign: HeaderAlign;\n isOpen: boolean;\n onOpen: () => void;\n onClose: () => void;\n}\n\nexport const BottomSheetContext = createContext<\n BottomSheetContextValue | undefined\n>(undefined);\n\nexport const useBottomSheet = () => {\n const context = React.useContext(BottomSheetContext);\n if (!context) {\n throw new Error('useBottomSheet must be used within a BottomSheetProvider');\n }\n return context;\n};\n"],"mappings":";;;AAUA,MAAa,qBAAqB,cAEhC,OAAU;AAEZ,MAAa,uBAAuB;CAClC,MAAM,UAAU,MAAM,WAAW,mBAAmB;AACpD,KAAI,CAAC,QACH,OAAM,IAAI,MAAM,2DAA2D;AAE7E,QAAO"}
|
package/dist/index.cjs
CHANGED
|
@@ -32,14 +32,23 @@ const require_Avatar = require('./components/Avatar/Avatar.cjs');
|
|
|
32
32
|
const require_Tab = require('./components/Tab/Tab.cjs');
|
|
33
33
|
const require_Toast = require('./components/Toast/Toast.cjs');
|
|
34
34
|
const require_Modal = require('./components/Modal/Modal.cjs');
|
|
35
|
+
const require_Sidebar = require('./components/Sidebar/Sidebar.cjs');
|
|
36
|
+
const require_BottomNavigation = require('./components/BottomNavigation/BottomNavigation.cjs');
|
|
37
|
+
const require_Calendar = require('./components/Calendar/Calendar.cjs');
|
|
38
|
+
const require_Drawer = require('./components/Drawer/Drawer.cjs');
|
|
39
|
+
const require_BottomSheet = require('./components/BottomSheet/BottomSheet.cjs');
|
|
35
40
|
|
|
36
41
|
exports.Avatar = require_Avatar.Avatar;
|
|
42
|
+
exports.BottomNavigation = require_BottomNavigation.BottomNavigation;
|
|
43
|
+
exports.BottomSheet = require_BottomSheet.BottomSheet;
|
|
37
44
|
exports.Box = require_Box.Box;
|
|
38
45
|
exports.Button = require_Button.Button;
|
|
39
46
|
exports.CTAButton = require_CTAButton.CTAButton;
|
|
47
|
+
exports.Calendar = require_Calendar.Calendar;
|
|
40
48
|
exports.Checkbox = require_Checkbox.Checkbox;
|
|
41
49
|
exports.Chip = require_Chip.Chip;
|
|
42
50
|
exports.Dialog = require_Dialog.Dialog;
|
|
51
|
+
exports.Drawer = require_Drawer.Drawer;
|
|
43
52
|
exports.Dropdown = require_Dropdown.Dropdown;
|
|
44
53
|
exports.Field = require_Field.Field;
|
|
45
54
|
exports.Flex = require_Flex.Flex;
|
|
@@ -55,6 +64,7 @@ exports.RatioChart = require_RatioChart.RatioChart;
|
|
|
55
64
|
exports.RatioChartEditor = require_RatioChartEditor.RatioChartEditor;
|
|
56
65
|
exports.Select = require_Select.Select;
|
|
57
66
|
exports.Separator = require_Separator.Separator;
|
|
67
|
+
exports.Sidebar = require_Sidebar.Sidebar;
|
|
58
68
|
exports.Spacer = require_Spacer.Spacer;
|
|
59
69
|
exports.Stack = require_Stack.Stack;
|
|
60
70
|
exports.Tab = require_Tab.Tab;
|
package/dist/index.d.cts
CHANGED
|
@@ -47,4 +47,10 @@ import { ToastVariants } from "./components/Toast/Toast.styles.cjs";
|
|
|
47
47
|
import { Toast, ToastProps, ToastProvider, ToastViewport, ToastViewportProps } from "./components/Toast/Toast.cjs";
|
|
48
48
|
import { ModalVariants } from "./components/Modal/Modal.styles.cjs";
|
|
49
49
|
import { Modal, ModalActionProps, ModalContentProps, ModalDescriptionProps, ModalFooterProps, ModalOverlayProps, ModalTitleProps } from "./components/Modal/Modal.cjs";
|
|
50
|
-
|
|
50
|
+
import { SidebarVariants } from "./components/Sidebar/Sidebar.styles.cjs";
|
|
51
|
+
import { Sidebar } from "./components/Sidebar/Sidebar.cjs";
|
|
52
|
+
import { BottomNavigation } from "./components/BottomNavigation/BottomNavigation.cjs";
|
|
53
|
+
import { Calendar, CalendarEvent, CalendarProps } from "./components/Calendar/Calendar.cjs";
|
|
54
|
+
import { Drawer } from "./components/Drawer/Drawer.cjs";
|
|
55
|
+
import { BottomSheet } from "./components/BottomSheet/BottomSheet.cjs";
|
|
56
|
+
export { Avatar, AvatarProps, AvatarVariants, BottomNavigation, BottomSheet, Box, BoxProps, BoxVariants, Button, ButtonProps, CTAButton, CTAButtonProps, Calendar, CalendarEvent, CalendarProps, Checkbox, CheckboxLabelProps, CheckboxRootProps, Chip, ChipProps, ChipVariants, Dialog, DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogOverlayProps, DialogPortalProps, DialogProps, DialogTitleProps, DialogTriggerProps, DialogVariants, Drawer, 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, 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, Spacer, SpacerProps, SpacerVariants, 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, useRadioGroupContext };
|
package/dist/index.d.mts
CHANGED
|
@@ -48,5 +48,11 @@ import { ToastVariants } from "./components/Toast/Toast.styles.mjs";
|
|
|
48
48
|
import { Toast, ToastProps, ToastProvider, ToastViewport, ToastViewportProps } from "./components/Toast/Toast.mjs";
|
|
49
49
|
import { ModalVariants } from "./components/Modal/Modal.styles.mjs";
|
|
50
50
|
import { Modal, ModalActionProps, ModalContentProps, ModalDescriptionProps, ModalFooterProps, ModalOverlayProps, ModalTitleProps } from "./components/Modal/Modal.mjs";
|
|
51
|
+
import { SidebarVariants } from "./components/Sidebar/Sidebar.styles.mjs";
|
|
52
|
+
import { Sidebar } from "./components/Sidebar/Sidebar.mjs";
|
|
53
|
+
import { BottomNavigation } from "./components/BottomNavigation/BottomNavigation.mjs";
|
|
54
|
+
import { Calendar, CalendarEvent, CalendarProps } from "./components/Calendar/Calendar.mjs";
|
|
55
|
+
import { Drawer } from "./components/Drawer/Drawer.mjs";
|
|
56
|
+
import { BottomSheet } from "./components/BottomSheet/BottomSheet.mjs";
|
|
51
57
|
import "./components/index.mjs";
|
|
52
|
-
export { Avatar, AvatarProps, AvatarVariants, Box, BoxProps, BoxVariants, Button, ButtonProps, CTAButton, CTAButtonProps, Checkbox, CheckboxLabelProps, CheckboxRootProps, Chip, ChipProps, ChipVariants, 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, Radio, RadioGroup, RadioGroupProps, RadioProps, RatioChart, RatioChartEditor, RatioChartEditorOption, RatioChartEditorProps, RatioChartFooterProps, RatioChartItemProps, RatioChartRootProps, Select, SelectContentProps, SelectGroupProps, SelectItemProps, SelectLabelProps, SelectProps, SelectTriggerProps, SelectValueProps, SelectVariants, Separator, SeparatorProps, SeparatorVariants, Spacer, SpacerProps, SpacerVariants, 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, useRadioGroupContext };
|
|
58
|
+
export { Avatar, AvatarProps, AvatarVariants, BottomNavigation, BottomSheet, Box, BoxProps, BoxVariants, Button, ButtonProps, CTAButton, CTAButtonProps, Calendar, CalendarEvent, CalendarProps, Checkbox, CheckboxLabelProps, CheckboxRootProps, Chip, ChipProps, ChipVariants, Dialog, DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogOverlayProps, DialogPortalProps, DialogProps, DialogTitleProps, DialogTriggerProps, DialogVariants, Drawer, 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, 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, Spacer, SpacerProps, SpacerVariants, 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, useRadioGroupContext };
|
package/dist/index.mjs
CHANGED
|
@@ -32,5 +32,10 @@ import { Avatar } from "./components/Avatar/Avatar.mjs";
|
|
|
32
32
|
import { Tab } from "./components/Tab/Tab.mjs";
|
|
33
33
|
import { Toast, ToastProvider, ToastViewport } from "./components/Toast/Toast.mjs";
|
|
34
34
|
import { Modal } from "./components/Modal/Modal.mjs";
|
|
35
|
+
import { Sidebar } from "./components/Sidebar/Sidebar.mjs";
|
|
36
|
+
import { BottomNavigation } from "./components/BottomNavigation/BottomNavigation.mjs";
|
|
37
|
+
import { Calendar } from "./components/Calendar/Calendar.mjs";
|
|
38
|
+
import { Drawer } from "./components/Drawer/Drawer.mjs";
|
|
39
|
+
import { BottomSheet } from "./components/BottomSheet/BottomSheet.mjs";
|
|
35
40
|
|
|
36
|
-
export { Avatar, Box, Button, CTAButton, Checkbox, Chip, Dialog, Dropdown, Field, Flex, Float, FloatingActionButton, Grid, HStack, Modal, Primitive, Radio, RadioGroup, RatioChart, RatioChartEditor, Select, Separator, Spacer, Stack, Tab, Text, TextArea, TextInput, Toast, ToastProvider, ToastViewport, Toggle, VStack, box, convertPxToRem, mergeStyles, splitVariantProps, useRadioGroupContext };
|
|
41
|
+
export { Avatar, BottomNavigation, BottomSheet, Box, Button, CTAButton, Calendar, Checkbox, Chip, Dialog, Drawer, Dropdown, Field, Flex, Float, FloatingActionButton, Grid, HStack, Modal, Primitive, Radio, RadioGroup, RatioChart, RatioChartEditor, Select, Separator, Sidebar, Spacer, Stack, Tab, Text, TextArea, TextInput, Toast, ToastProvider, ToastViewport, Toggle, VStack, box, convertPxToRem, mergeStyles, splitVariantProps, useRadioGroupContext };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@causw/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
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,7 @@
|
|
|
36
36
|
"date-fns": "^4.1.0",
|
|
37
37
|
"tailwind-merge": "^3.4.0",
|
|
38
38
|
"tailwind-variants": "^3.2.2",
|
|
39
|
-
"@causw/icons": "0.0.
|
|
39
|
+
"@causw/icons": "0.0.10",
|
|
40
40
|
"@causw/tokens": "0.0.12"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|