@causw/core 0.0.21 → 0.0.22
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/assets/avatar/defaultAvatar1.cjs +11 -0
- package/dist/assets/avatar/defaultAvatar1.mjs +6 -0
- package/dist/assets/avatar/defaultAvatar1.mjs.map +1 -0
- package/dist/assets/avatar/defaultAvatar2.cjs +11 -0
- package/dist/assets/avatar/defaultAvatar2.mjs +6 -0
- package/dist/assets/avatar/defaultAvatar2.mjs.map +1 -0
- package/dist/assets/avatar/defaultAvatar3.cjs +11 -0
- package/dist/assets/avatar/defaultAvatar3.mjs +6 -0
- package/dist/assets/avatar/defaultAvatar3.mjs.map +1 -0
- package/dist/assets/avatar/defaultAvatar4.cjs +11 -0
- package/dist/assets/avatar/defaultAvatar4.mjs +6 -0
- package/dist/assets/avatar/defaultAvatar4.mjs.map +1 -0
- package/dist/components/Avatar/Avatar.cjs +13 -3
- package/dist/components/Avatar/Avatar.d.cts +2 -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.d.mts.map +1 -1
- package/dist/components/Avatar/Avatar.mjs +13 -3
- package/dist/components/Avatar/Avatar.mjs.map +1 -1
- package/dist/components/Avatar/Avatar.styles.cjs +8 -6
- package/dist/components/Avatar/Avatar.styles.d.cts +36 -18
- package/dist/components/Avatar/Avatar.styles.d.cts.map +1 -1
- package/dist/components/Avatar/Avatar.styles.d.mts +36 -18
- package/dist/components/Avatar/Avatar.styles.d.mts.map +1 -1
- package/dist/components/Avatar/Avatar.styles.mjs +8 -6
- package/dist/components/Avatar/Avatar.styles.mjs.map +1 -1
- package/dist/components/BottomNavigation/BottomNavigation.d.cts +5 -5
- package/dist/components/BottomNavigation/BottomNavigation.d.mts +5 -5
- package/dist/components/BottomNavigation/BottomNavigation.styles.cjs +1 -1
- package/dist/components/BottomNavigation/BottomNavigation.styles.d.cts +3 -3
- package/dist/components/BottomNavigation/BottomNavigation.styles.d.mts +3 -3
- package/dist/components/BottomNavigation/BottomNavigation.styles.mjs +1 -1
- package/dist/components/BottomNavigation/BottomNavigation.styles.mjs.map +1 -1
- package/dist/components/BottomSheet/BottomSheet.d.cts +6 -6
- package/dist/components/BottomSheet/BottomSheet.d.mts +6 -6
- package/dist/components/Box/Box.styles.d.cts +3 -3
- package/dist/components/Box/Box.styles.d.mts +3 -3
- package/dist/components/Button/Button.d.cts +2 -2
- 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.styles.d.cts +3 -3
- package/dist/components/CTAButton/CTAButton.styles.d.mts +3 -3
- package/dist/components/Calendar/Calendar.cjs +49 -24
- package/dist/components/Calendar/Calendar.d.cts +4 -4
- package/dist/components/Calendar/Calendar.d.cts.map +1 -1
- package/dist/components/Calendar/Calendar.d.mts +4 -4
- package/dist/components/Calendar/Calendar.d.mts.map +1 -1
- package/dist/components/Calendar/Calendar.mjs +50 -24
- package/dist/components/Calendar/Calendar.mjs.map +1 -1
- package/dist/components/Calendar/Calendar.styles.cjs +28 -13
- package/dist/components/Calendar/Calendar.styles.d.cts +107 -11
- package/dist/components/Calendar/Calendar.styles.d.cts.map +1 -1
- package/dist/components/Calendar/Calendar.styles.d.mts +107 -11
- package/dist/components/Calendar/Calendar.styles.d.mts.map +1 -1
- package/dist/components/Calendar/Calendar.styles.mjs +28 -13
- package/dist/components/Calendar/Calendar.styles.mjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.cts +4 -4
- package/dist/components/Checkbox/Checkbox.d.mts +4 -4
- package/dist/components/Checkbox/Checkbox.styles.d.cts +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.mts +3 -3
- package/dist/components/DatePicker/DatePicker.d.cts +2 -2
- package/dist/components/DatePicker/DatePicker.d.cts.map +1 -1
- package/dist/components/DatePicker/DatePicker.d.mts +2 -2
- package/dist/components/DatePicker/DatePicker.styles.d.cts +3 -3
- package/dist/components/DatePicker/DatePicker.styles.d.cts.map +1 -1
- package/dist/components/DatePicker/DatePicker.styles.d.mts +3 -3
- package/dist/components/Dialog/Dialog.d.cts +5 -5
- 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.cts.map +1 -1
- 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.mts +3 -3
- package/dist/components/Field/Field.d.cts +5 -5
- package/dist/components/Field/Field.d.mts +5 -5
- package/dist/components/Float/Float.styles.d.cts +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.d.mts.map +1 -1
- 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.cts.map +1 -1
- package/dist/components/Modal/Modal.d.cts +7 -7
- 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.mts +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/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/Separator/Separator.styles.d.mts.map +1 -1
- package/dist/components/Sidebar/Sidebar.d.cts +8 -8
- package/dist/components/Sidebar/Sidebar.d.mts +8 -8
- package/dist/components/Sidebar/Sidebar.styles.d.cts +3 -3
- package/dist/components/Sidebar/Sidebar.styles.d.mts +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/Spacer/Spacer.styles.d.mts +3 -3
- 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.mts +3 -3
- 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.cts +3 -3
- package/dist/components/TextArea/TextArea.d.cts +4 -4
- package/dist/components/TextArea/TextArea.d.mts +4 -4
- package/dist/components/TextInput/TextInput.d.cts +2 -2
- package/dist/components/TextInput/TextInput.styles.d.cts +3 -3
- package/dist/components/Toast/Toast.d.cts +3 -3
- 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/Toast/index.d.cts +1 -3
- package/dist/components/Toast/index.d.mts +1 -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.cts +3 -3
- package/dist/components/VStack/VStack.d.cts +2 -2
- package/dist/components/index.d.cts +0 -2
- package/dist/components/index.d.mts +0 -2
- package/dist/index.cjs +0 -4
- package/dist/index.d.cts +1 -3
- package/dist/index.d.mts +1 -3
- package/dist/index.mjs +1 -3
- package/package.json +3 -3
- package/dist/assets/avatar/default.cjs +0 -11
- package/dist/assets/avatar/default.mjs +0 -6
- package/dist/assets/avatar/default.mjs.map +0 -1
- package/dist/components/Toast/Toaster.cjs +0 -41
- package/dist/components/Toast/Toaster.d.cts +0 -7
- package/dist/components/Toast/Toaster.d.cts.map +0 -1
- package/dist/components/Toast/Toaster.d.mts +0 -7
- package/dist/components/Toast/Toaster.d.mts.map +0 -1
- package/dist/components/Toast/Toaster.mjs +0 -41
- package/dist/components/Toast/Toaster.mjs.map +0 -1
- package/dist/components/Toast/toastStore.cjs +0 -49
- package/dist/components/Toast/toastStore.d.cts +0 -19
- package/dist/components/Toast/toastStore.d.cts.map +0 -1
- package/dist/components/Toast/toastStore.d.mts +0 -19
- package/dist/components/Toast/toastStore.d.mts.map +0 -1
- package/dist/components/Toast/toastStore.mjs +0 -48
- package/dist/components/Toast/toastStore.mjs.map +0 -1
|
@@ -2,14 +2,24 @@ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
const require_Primitive = require('../Primitive/Primitive.cjs');
|
|
3
3
|
const require_mergeStyles = require('../../utils/mergeStyles/mergeStyles.cjs');
|
|
4
4
|
const require_Avatar_styles = require('./Avatar.styles.cjs');
|
|
5
|
-
const
|
|
5
|
+
const require_defaultAvatar1 = require('../../assets/avatar/defaultAvatar1.cjs');
|
|
6
|
+
const require_defaultAvatar2 = require('../../assets/avatar/defaultAvatar2.cjs');
|
|
7
|
+
const require_defaultAvatar3 = require('../../assets/avatar/defaultAvatar3.cjs');
|
|
8
|
+
const require_defaultAvatar4 = require('../../assets/avatar/defaultAvatar4.cjs');
|
|
6
9
|
let react = require("react");
|
|
7
10
|
react = require_rolldown_runtime.__toESM(react);
|
|
8
11
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
12
|
|
|
10
13
|
//#region src/components/Avatar/Avatar.tsx
|
|
11
|
-
const Avatar = ({ size = "
|
|
14
|
+
const Avatar = ({ size = "44", src, alt, className, fallback, ...props }) => {
|
|
12
15
|
const [hasError, setHasError] = react.useState(false);
|
|
16
|
+
const defaultAvatars = [
|
|
17
|
+
require_defaultAvatar1.default,
|
|
18
|
+
require_defaultAvatar2.default,
|
|
19
|
+
require_defaultAvatar3.default,
|
|
20
|
+
require_defaultAvatar4.default
|
|
21
|
+
];
|
|
22
|
+
const randomDefault = react.useMemo(() => defaultAvatars[Math.floor(Math.random() * defaultAvatars.length)], []);
|
|
13
23
|
const { root, image, fallback: fallbackStyle } = require_Avatar_styles.avatar({ size });
|
|
14
24
|
react.useEffect(() => {
|
|
15
25
|
setHasError(false);
|
|
@@ -34,7 +44,7 @@ const Avatar = ({ size = "md", src, alt, className, fallback, ...props }) => {
|
|
|
34
44
|
if (!hasError) setHasError(true);
|
|
35
45
|
}
|
|
36
46
|
}) : renderFallback() ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
37
|
-
src:
|
|
47
|
+
src: randomDefault,
|
|
38
48
|
alt: "default avatar",
|
|
39
49
|
className: image()
|
|
40
50
|
})
|
|
@@ -2,7 +2,7 @@ import { PrimitiveProps } from "../Primitive/Primitive.cjs";
|
|
|
2
2
|
import "../Primitive/index.cjs";
|
|
3
3
|
import { AvatarVariants } from "./Avatar.styles.cjs";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react_jsx_runtime36 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/Avatar/Avatar.d.ts
|
|
8
8
|
interface AvatarProps extends Omit<React$1.ComponentPropsWithoutRef<'span'>, 'alt'>, PrimitiveProps, AvatarVariants {
|
|
@@ -18,7 +18,7 @@ declare const Avatar: {
|
|
|
18
18
|
className,
|
|
19
19
|
fallback,
|
|
20
20
|
...props
|
|
21
|
-
}: AvatarProps):
|
|
21
|
+
}: AvatarProps): react_jsx_runtime36.JSX.Element;
|
|
22
22
|
displayName: string;
|
|
23
23
|
};
|
|
24
24
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.cts","names":[],"sources":["../../../src/components/Avatar/Avatar.tsx"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"Avatar.d.cts","names":[],"sources":["../../../src/components/Avatar/Avatar.tsx"],"mappings":";;;;;;;UAUiB,WAAA,SAEb,IAAA,CAAK,OAAA,CAAM,wBAAA,kBACX,cAAA,EACA,cAAA;EACF,GAAA;EACA,GAAA;EACA,QAAA,GAAW,OAAA,CAAM,SAAA;AAAA;AAAA,cAGN,MAAA;EAAA;;;;;;;KAOV,WAAA,GAAW,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -2,7 +2,7 @@ import { PrimitiveProps } from "../Primitive/Primitive.mjs";
|
|
|
2
2
|
import "../Primitive/index.mjs";
|
|
3
3
|
import { AvatarVariants } from "./Avatar.styles.mjs";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react_jsx_runtime24 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/Avatar/Avatar.d.ts
|
|
8
8
|
interface AvatarProps extends Omit<React$1.ComponentPropsWithoutRef<'span'>, 'alt'>, PrimitiveProps, AvatarVariants {
|
|
@@ -18,7 +18,7 @@ declare const Avatar: {
|
|
|
18
18
|
className,
|
|
19
19
|
fallback,
|
|
20
20
|
...props
|
|
21
|
-
}: AvatarProps):
|
|
21
|
+
}: AvatarProps): react_jsx_runtime24.JSX.Element;
|
|
22
22
|
displayName: string;
|
|
23
23
|
};
|
|
24
24
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.mts","names":[],"sources":["../../../src/components/Avatar/Avatar.tsx"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"Avatar.d.mts","names":[],"sources":["../../../src/components/Avatar/Avatar.tsx"],"mappings":";;;;;;;UAUiB,WAAA,SAEb,IAAA,CAAK,OAAA,CAAM,wBAAA,kBACX,cAAA,EACA,cAAA;EACF,GAAA;EACA,GAAA;EACA,QAAA,GAAW,OAAA,CAAM,SAAA;AAAA;AAAA,cAGN,MAAA;EAAA;;;;;;;KAOV,WAAA,GAAW,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
import { Primitive } from "../Primitive/Primitive.mjs";
|
|
2
2
|
import { mergeStyles } from "../../utils/mergeStyles/mergeStyles.mjs";
|
|
3
3
|
import { avatar } from "./Avatar.styles.mjs";
|
|
4
|
-
import
|
|
4
|
+
import defaultAvatar1_default from "../../assets/avatar/defaultAvatar1.mjs";
|
|
5
|
+
import defaultAvatar2_default from "../../assets/avatar/defaultAvatar2.mjs";
|
|
6
|
+
import defaultAvatar3_default from "../../assets/avatar/defaultAvatar3.mjs";
|
|
7
|
+
import defaultAvatar4_default from "../../assets/avatar/defaultAvatar4.mjs";
|
|
5
8
|
import * as React$1 from "react";
|
|
6
9
|
import { jsx } from "react/jsx-runtime";
|
|
7
10
|
|
|
8
11
|
//#region src/components/Avatar/Avatar.tsx
|
|
9
|
-
const Avatar = ({ size = "
|
|
12
|
+
const Avatar = ({ size = "44", src, alt, className, fallback, ...props }) => {
|
|
10
13
|
const [hasError, setHasError] = React$1.useState(false);
|
|
14
|
+
const defaultAvatars = [
|
|
15
|
+
defaultAvatar1_default,
|
|
16
|
+
defaultAvatar2_default,
|
|
17
|
+
defaultAvatar3_default,
|
|
18
|
+
defaultAvatar4_default
|
|
19
|
+
];
|
|
20
|
+
const randomDefault = React$1.useMemo(() => defaultAvatars[Math.floor(Math.random() * defaultAvatars.length)], []);
|
|
11
21
|
const { root, image, fallback: fallbackStyle } = avatar({ size });
|
|
12
22
|
React$1.useEffect(() => {
|
|
13
23
|
setHasError(false);
|
|
@@ -32,7 +42,7 @@ const Avatar = ({ size = "md", src, alt, className, fallback, ...props }) => {
|
|
|
32
42
|
if (!hasError) setHasError(true);
|
|
33
43
|
}
|
|
34
44
|
}) : renderFallback() ?? /* @__PURE__ */ jsx("img", {
|
|
35
|
-
src:
|
|
45
|
+
src: randomDefault,
|
|
36
46
|
alt: "default avatar",
|
|
37
47
|
className: image()
|
|
38
48
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.mjs","names":["React","
|
|
1
|
+
{"version":3,"file":"Avatar.mjs","names":["React","defaultAvatar1","defaultAvatar2","defaultAvatar3","defaultAvatar4"],"sources":["../../../src/components/Avatar/Avatar.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Primitive, PrimitiveProps } from '../Primitive';\nimport { avatar, AvatarVariants } from './Avatar.styles';\nimport { mergeStyles } from '../../utils';\nimport defaultAvatar1 from '../../assets/avatar/defaultAvatar1.svg';\nimport defaultAvatar2 from '../../assets/avatar/defaultAvatar2.svg';\nimport defaultAvatar3 from '../../assets/avatar/defaultAvatar3.svg';\nimport defaultAvatar4 from '../../assets/avatar/defaultAvatar4.svg';\n\nexport interface AvatarProps\n extends\n Omit<React.ComponentPropsWithoutRef<'span'>, 'alt'>,\n PrimitiveProps,\n AvatarVariants {\n src?: string;\n alt?: string;\n fallback?: React.ReactNode;\n}\n\nexport const Avatar = ({\n size = '44',\n src,\n alt,\n className,\n fallback,\n ...props\n}: AvatarProps) => {\n const [hasError, setHasError] = React.useState(false);\n const defaultAvatars = [\n defaultAvatar1,\n defaultAvatar2,\n defaultAvatar3,\n defaultAvatar4,\n ];\n const randomDefault = React.useMemo(\n () => defaultAvatars[Math.floor(Math.random() * defaultAvatars.length)],\n [],\n );\n const { root, image, fallback: fallbackStyle } = avatar({ size });\n\n React.useEffect(() => {\n setHasError(false);\n }, [src]);\n\n const isValidSrc =\n typeof src === 'string' && src.trim().length > 0 && !hasError;\n\n const renderFallback = () => {\n if (fallback == null) return null;\n\n if (typeof fallback === 'string') {\n return (\n <span className={fallbackStyle()}>\n {fallback.slice(0, 2).toUpperCase()}\n </span>\n );\n }\n return fallback;\n };\n\n return (\n <Primitive.span className={mergeStyles(root(), className)} {...props}>\n {isValidSrc ? (\n <img\n src={src}\n alt={alt ?? 'user profile'}\n className={image()}\n onError={() => {\n if (!hasError) setHasError(true);\n }}\n />\n ) : (\n (renderFallback() ?? (\n <img src={randomDefault} alt=\"default avatar\" className={image()} />\n ))\n )}\n </Primitive.span>\n );\n};\n\nAvatar.displayName = 'Avatar';\n"],"mappings":";;;;;;;;;;;AAoBA,MAAa,UAAU,EACrB,OAAO,MACP,KACA,KACA,WACA,UACA,GAAG,YACc;CACjB,MAAM,CAAC,UAAU,eAAeA,QAAM,SAAS,MAAM;CACrD,MAAM,iBAAiB;EACrBC;EACAC;EACAC;EACAC;EACD;CACD,MAAM,gBAAgBJ,QAAM,cACpB,eAAe,KAAK,MAAM,KAAK,QAAQ,GAAG,eAAe,OAAO,GACtE,EAAE,CACH;CACD,MAAM,EAAE,MAAM,OAAO,UAAU,kBAAkB,OAAO,EAAE,MAAM,CAAC;AAEjE,SAAM,gBAAgB;AACpB,cAAY,MAAM;IACjB,CAAC,IAAI,CAAC;CAET,MAAM,aACJ,OAAO,QAAQ,YAAY,IAAI,MAAM,CAAC,SAAS,KAAK,CAAC;CAEvD,MAAM,uBAAuB;AAC3B,MAAI,YAAY,KAAM,QAAO;AAE7B,MAAI,OAAO,aAAa,SACtB,QACE,oBAAC;GAAK,WAAW,eAAe;aAC7B,SAAS,MAAM,GAAG,EAAE,CAAC,aAAa;IAC9B;AAGX,SAAO;;AAGT,QACE,oBAAC,UAAU;EAAK,WAAW,YAAY,MAAM,EAAE,UAAU;EAAE,GAAI;YAC5D,aACC,oBAAC;GACM;GACL,KAAK,OAAO;GACZ,WAAW,OAAO;GAClB,eAAe;AACb,QAAI,CAAC,SAAU,aAAY,KAAK;;IAElC,GAED,gBAAgB,IACf,oBAAC;GAAI,KAAK;GAAe,KAAI;GAAiB,WAAW,OAAO;IAAI;GAGzD;;AAIrB,OAAO,cAAc"}
|
|
@@ -9,13 +9,15 @@ const avatar = (0, tailwind_variants.tv)({
|
|
|
9
9
|
fallback: "flex h-full w-full items-center justify-center select-none font-semibold"
|
|
10
10
|
},
|
|
11
11
|
variants: { size: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
"36": { root: "h-9 w-9 rounded-md" },
|
|
13
|
+
"40": { root: "h-10 w-10 rounded-md" },
|
|
14
|
+
"44": { root: "h-11 w-11 rounded-md" },
|
|
15
|
+
"64": { root: "h-16 w-16 rounded-lg" },
|
|
16
|
+
"80": { root: "h-20 w-20 rounded-lg" },
|
|
17
|
+
"88": { root: "h-22 w-22 rounded-xl" },
|
|
18
|
+
"120": { root: "h-30 w-30 rounded-2xl" }
|
|
17
19
|
} },
|
|
18
|
-
defaultVariants: { size: "
|
|
20
|
+
defaultVariants: { size: "44" }
|
|
19
21
|
});
|
|
20
22
|
|
|
21
23
|
//#endregion
|
|
@@ -1,22 +1,28 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants19 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Avatar/Avatar.styles.d.ts
|
|
5
|
-
declare const avatar:
|
|
5
|
+
declare const avatar: tailwind_variants19.TVReturnType<{
|
|
6
6
|
size: {
|
|
7
|
-
|
|
7
|
+
'36': {
|
|
8
8
|
root: string;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
'40': {
|
|
11
11
|
root: string;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
'44': {
|
|
14
14
|
root: string;
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
'64': {
|
|
17
17
|
root: string;
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
'80': {
|
|
20
|
+
root: string;
|
|
21
|
+
};
|
|
22
|
+
'88': {
|
|
23
|
+
root: string;
|
|
24
|
+
};
|
|
25
|
+
'120': {
|
|
20
26
|
root: string;
|
|
21
27
|
};
|
|
22
28
|
};
|
|
@@ -26,19 +32,25 @@ declare const avatar: tailwind_variants17.TVReturnType<{
|
|
|
26
32
|
fallback: string;
|
|
27
33
|
}, undefined, {
|
|
28
34
|
size: {
|
|
29
|
-
|
|
35
|
+
'36': {
|
|
36
|
+
root: string;
|
|
37
|
+
};
|
|
38
|
+
'40': {
|
|
30
39
|
root: string;
|
|
31
40
|
};
|
|
32
|
-
|
|
41
|
+
'44': {
|
|
33
42
|
root: string;
|
|
34
43
|
};
|
|
35
|
-
|
|
44
|
+
'64': {
|
|
36
45
|
root: string;
|
|
37
46
|
};
|
|
38
|
-
|
|
47
|
+
'80': {
|
|
39
48
|
root: string;
|
|
40
49
|
};
|
|
41
|
-
|
|
50
|
+
'88': {
|
|
51
|
+
root: string;
|
|
52
|
+
};
|
|
53
|
+
'120': {
|
|
42
54
|
root: string;
|
|
43
55
|
};
|
|
44
56
|
};
|
|
@@ -46,21 +58,27 @@ declare const avatar: tailwind_variants17.TVReturnType<{
|
|
|
46
58
|
root: string;
|
|
47
59
|
image: string;
|
|
48
60
|
fallback: string;
|
|
49
|
-
},
|
|
61
|
+
}, tailwind_variants19.TVReturnType<{
|
|
50
62
|
size: {
|
|
51
|
-
|
|
63
|
+
'36': {
|
|
64
|
+
root: string;
|
|
65
|
+
};
|
|
66
|
+
'40': {
|
|
67
|
+
root: string;
|
|
68
|
+
};
|
|
69
|
+
'44': {
|
|
52
70
|
root: string;
|
|
53
71
|
};
|
|
54
|
-
|
|
72
|
+
'64': {
|
|
55
73
|
root: string;
|
|
56
74
|
};
|
|
57
|
-
|
|
75
|
+
'80': {
|
|
58
76
|
root: string;
|
|
59
77
|
};
|
|
60
|
-
|
|
78
|
+
'88': {
|
|
61
79
|
root: string;
|
|
62
80
|
};
|
|
63
|
-
|
|
81
|
+
'120': {
|
|
64
82
|
root: string;
|
|
65
83
|
};
|
|
66
84
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.styles.d.cts","names":[],"sources":["../../../src/components/Avatar/Avatar.styles.ts"],"mappings":";;;;cAEa,MAAA,
|
|
1
|
+
{"version":3,"file":"Avatar.styles.d.cts","names":[],"sources":["../../../src/components/Avatar/Avatar.styles.ts"],"mappings":";;;;cAEa,MAAA,EAqBX,mBAAA,CArBiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqBjB,mBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,cAAA,GAAiB,YAAA,QAAoB,MAAA"}
|
|
@@ -1,22 +1,28 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants9 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Avatar/Avatar.styles.d.ts
|
|
5
|
-
declare const avatar:
|
|
5
|
+
declare const avatar: tailwind_variants9.TVReturnType<{
|
|
6
6
|
size: {
|
|
7
|
-
|
|
7
|
+
'36': {
|
|
8
8
|
root: string;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
'40': {
|
|
11
11
|
root: string;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
'44': {
|
|
14
14
|
root: string;
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
'64': {
|
|
17
17
|
root: string;
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
'80': {
|
|
20
|
+
root: string;
|
|
21
|
+
};
|
|
22
|
+
'88': {
|
|
23
|
+
root: string;
|
|
24
|
+
};
|
|
25
|
+
'120': {
|
|
20
26
|
root: string;
|
|
21
27
|
};
|
|
22
28
|
};
|
|
@@ -26,19 +32,25 @@ declare const avatar: tailwind_variants7.TVReturnType<{
|
|
|
26
32
|
fallback: string;
|
|
27
33
|
}, undefined, {
|
|
28
34
|
size: {
|
|
29
|
-
|
|
35
|
+
'36': {
|
|
36
|
+
root: string;
|
|
37
|
+
};
|
|
38
|
+
'40': {
|
|
30
39
|
root: string;
|
|
31
40
|
};
|
|
32
|
-
|
|
41
|
+
'44': {
|
|
33
42
|
root: string;
|
|
34
43
|
};
|
|
35
|
-
|
|
44
|
+
'64': {
|
|
36
45
|
root: string;
|
|
37
46
|
};
|
|
38
|
-
|
|
47
|
+
'80': {
|
|
39
48
|
root: string;
|
|
40
49
|
};
|
|
41
|
-
|
|
50
|
+
'88': {
|
|
51
|
+
root: string;
|
|
52
|
+
};
|
|
53
|
+
'120': {
|
|
42
54
|
root: string;
|
|
43
55
|
};
|
|
44
56
|
};
|
|
@@ -46,21 +58,27 @@ declare const avatar: tailwind_variants7.TVReturnType<{
|
|
|
46
58
|
root: string;
|
|
47
59
|
image: string;
|
|
48
60
|
fallback: string;
|
|
49
|
-
},
|
|
61
|
+
}, tailwind_variants9.TVReturnType<{
|
|
50
62
|
size: {
|
|
51
|
-
|
|
63
|
+
'36': {
|
|
64
|
+
root: string;
|
|
65
|
+
};
|
|
66
|
+
'40': {
|
|
67
|
+
root: string;
|
|
68
|
+
};
|
|
69
|
+
'44': {
|
|
52
70
|
root: string;
|
|
53
71
|
};
|
|
54
|
-
|
|
72
|
+
'64': {
|
|
55
73
|
root: string;
|
|
56
74
|
};
|
|
57
|
-
|
|
75
|
+
'80': {
|
|
58
76
|
root: string;
|
|
59
77
|
};
|
|
60
|
-
|
|
78
|
+
'88': {
|
|
61
79
|
root: string;
|
|
62
80
|
};
|
|
63
|
-
|
|
81
|
+
'120': {
|
|
64
82
|
root: string;
|
|
65
83
|
};
|
|
66
84
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.styles.d.mts","names":[],"sources":["../../../src/components/Avatar/Avatar.styles.ts"],"mappings":";;;;cAEa,MAAA,
|
|
1
|
+
{"version":3,"file":"Avatar.styles.d.mts","names":[],"sources":["../../../src/components/Avatar/Avatar.styles.ts"],"mappings":";;;;cAEa,MAAA,EAqBX,kBAAA,CArBiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqBjB,kBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,cAAA,GAAiB,YAAA,QAAoB,MAAA"}
|
|
@@ -8,13 +8,15 @@ const avatar = tv({
|
|
|
8
8
|
fallback: "flex h-full w-full items-center justify-center select-none font-semibold"
|
|
9
9
|
},
|
|
10
10
|
variants: { size: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
"36": { root: "h-9 w-9 rounded-md" },
|
|
12
|
+
"40": { root: "h-10 w-10 rounded-md" },
|
|
13
|
+
"44": { root: "h-11 w-11 rounded-md" },
|
|
14
|
+
"64": { root: "h-16 w-16 rounded-lg" },
|
|
15
|
+
"80": { root: "h-20 w-20 rounded-lg" },
|
|
16
|
+
"88": { root: "h-22 w-22 rounded-xl" },
|
|
17
|
+
"120": { root: "h-30 w-30 rounded-2xl" }
|
|
16
18
|
} },
|
|
17
|
-
defaultVariants: { size: "
|
|
19
|
+
defaultVariants: { size: "44" }
|
|
18
20
|
});
|
|
19
21
|
|
|
20
22
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.styles.mjs","names":[],"sources":["../../../src/components/Avatar/Avatar.styles.ts"],"sourcesContent":["import { tv, type VariantProps } from 'tailwind-variants';\n\nexport const avatar = tv({\n slots: {\n root: 'inline-flex items-center justify-center overflow-hidden bg-gray-100 text-gray-600',\n image: 'h-full w-full object-cover',\n fallback:\n 'flex h-full w-full items-center justify-center select-none font-semibold',\n },\n variants: {\n size: {\n
|
|
1
|
+
{"version":3,"file":"Avatar.styles.mjs","names":[],"sources":["../../../src/components/Avatar/Avatar.styles.ts"],"sourcesContent":["import { tv, type VariantProps } from 'tailwind-variants';\n\nexport const avatar = tv({\n slots: {\n root: 'inline-flex items-center justify-center overflow-hidden bg-gray-100 text-gray-600',\n image: 'h-full w-full object-cover',\n fallback:\n 'flex h-full w-full items-center justify-center select-none font-semibold',\n },\n variants: {\n size: {\n '36': { root: 'h-9 w-9 rounded-md' },\n '40': { root: 'h-10 w-10 rounded-md' },\n '44': { root: 'h-11 w-11 rounded-md' },\n '64': { root: 'h-16 w-16 rounded-lg' },\n '80': { root: 'h-20 w-20 rounded-lg' },\n '88': { root: 'h-22 w-22 rounded-xl' },\n '120': { root: 'h-30 w-30 rounded-2xl' },\n },\n },\n defaultVariants: {\n size: '44',\n },\n});\n\nexport type AvatarVariants = VariantProps<typeof avatar>;\n"],"mappings":";;;AAEA,MAAa,SAAS,GAAG;CACvB,OAAO;EACL,MAAM;EACN,OAAO;EACP,UACE;EACH;CACD,UAAU,EACR,MAAM;EACJ,MAAM,EAAE,MAAM,sBAAsB;EACpC,MAAM,EAAE,MAAM,wBAAwB;EACtC,MAAM,EAAE,MAAM,wBAAwB;EACtC,MAAM,EAAE,MAAM,wBAAwB;EACtC,MAAM,EAAE,MAAM,wBAAwB;EACtC,MAAM,EAAE,MAAM,wBAAwB;EACtC,OAAO,EAAE,MAAM,yBAAyB;EACzC,EACF;CACD,iBAAiB,EACf,MAAM,MACP;CACF,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { PrimitiveProps } from "../Primitive/Primitive.cjs";
|
|
|
2
2
|
import "../Primitive/index.cjs";
|
|
3
3
|
import { BottomNavigationVariants } from "./BottomNavigation.styles.cjs";
|
|
4
4
|
import { ComponentProps, SVGProps } from "react";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react_jsx_runtime37 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/BottomNavigation/BottomNavigation.d.ts
|
|
8
8
|
interface BottomNavigationRootProps extends ComponentProps<'nav'>, PrimitiveProps {
|
|
@@ -26,7 +26,7 @@ declare const BottomNavigation: (({
|
|
|
26
26
|
onSelectChange,
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: BottomNavigationRootProps) =>
|
|
29
|
+
}: BottomNavigationRootProps) => react_jsx_runtime37.JSX.Element) & {
|
|
30
30
|
Item: ({
|
|
31
31
|
selected,
|
|
32
32
|
value,
|
|
@@ -34,19 +34,19 @@ declare const BottomNavigation: (({
|
|
|
34
34
|
children,
|
|
35
35
|
onClick,
|
|
36
36
|
...props
|
|
37
|
-
}: BottomNavigationItemProps) =>
|
|
37
|
+
}: BottomNavigationItemProps) => react_jsx_runtime37.JSX.Element;
|
|
38
38
|
Icon: ({
|
|
39
39
|
children,
|
|
40
40
|
selected,
|
|
41
41
|
className,
|
|
42
42
|
...props
|
|
43
|
-
}: BottomNavigationIconProps) =>
|
|
43
|
+
}: BottomNavigationIconProps) => react_jsx_runtime37.JSX.Element;
|
|
44
44
|
Label: ({
|
|
45
45
|
children,
|
|
46
46
|
selected,
|
|
47
47
|
className,
|
|
48
48
|
...props
|
|
49
|
-
}: BottomNavigationLabelProps) =>
|
|
49
|
+
}: BottomNavigationLabelProps) => react_jsx_runtime37.JSX.Element;
|
|
50
50
|
};
|
|
51
51
|
//#endregion
|
|
52
52
|
export { BottomNavigation };
|
|
@@ -2,7 +2,7 @@ import { PrimitiveProps } from "../Primitive/Primitive.mjs";
|
|
|
2
2
|
import "../Primitive/index.mjs";
|
|
3
3
|
import { BottomNavigationVariants } from "./BottomNavigation.styles.mjs";
|
|
4
4
|
import { ComponentProps, SVGProps } from "react";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react_jsx_runtime78 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/BottomNavigation/BottomNavigation.d.ts
|
|
8
8
|
interface BottomNavigationRootProps extends ComponentProps<'nav'>, PrimitiveProps {
|
|
@@ -26,7 +26,7 @@ declare const BottomNavigation: (({
|
|
|
26
26
|
onSelectChange,
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: BottomNavigationRootProps) =>
|
|
29
|
+
}: BottomNavigationRootProps) => react_jsx_runtime78.JSX.Element) & {
|
|
30
30
|
Item: ({
|
|
31
31
|
selected,
|
|
32
32
|
value,
|
|
@@ -34,19 +34,19 @@ declare const BottomNavigation: (({
|
|
|
34
34
|
children,
|
|
35
35
|
onClick,
|
|
36
36
|
...props
|
|
37
|
-
}: BottomNavigationItemProps) =>
|
|
37
|
+
}: BottomNavigationItemProps) => react_jsx_runtime78.JSX.Element;
|
|
38
38
|
Icon: ({
|
|
39
39
|
children,
|
|
40
40
|
selected,
|
|
41
41
|
className,
|
|
42
42
|
...props
|
|
43
|
-
}: BottomNavigationIconProps) =>
|
|
43
|
+
}: BottomNavigationIconProps) => react_jsx_runtime78.JSX.Element;
|
|
44
44
|
Label: ({
|
|
45
45
|
children,
|
|
46
46
|
selected,
|
|
47
47
|
className,
|
|
48
48
|
...props
|
|
49
|
-
}: BottomNavigationLabelProps) =>
|
|
49
|
+
}: BottomNavigationLabelProps) => react_jsx_runtime78.JSX.Element;
|
|
50
50
|
};
|
|
51
51
|
//#endregion
|
|
52
52
|
export { BottomNavigation };
|
|
@@ -4,7 +4,7 @@ let tailwind_variants = require("tailwind-variants");
|
|
|
4
4
|
//#region src/components/BottomNavigation/BottomNavigation.styles.ts
|
|
5
5
|
const bottomNavigation = (0, tailwind_variants.tv)({
|
|
6
6
|
slots: {
|
|
7
|
-
root: "fixed bg-white right-0 bottom-0 left-0 z-sticky flex h-15 items-center justify-between
|
|
7
|
+
root: "fixed bg-white right-0 bottom-0 left-0 z-sticky flex h-15 items-center justify-between px-12 py-2 pb-safe shadow-[0_-2px_10px_0_rgba(0,0,0,0.08)]",
|
|
8
8
|
item: "group flex flex-1 flex-col items-center justify-center gap-1 text-xs transition-colors",
|
|
9
9
|
icon: "w-5 h-5",
|
|
10
10
|
label: "typo-caption-12-semibold text-center"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants43 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/components/BottomNavigation/BottomNavigation.styles.d.ts
|
|
5
|
-
declare const bottomNavigation:
|
|
5
|
+
declare const bottomNavigation: tailwind_variants43.TVReturnType<{
|
|
6
6
|
selected: {
|
|
7
7
|
true: {
|
|
8
8
|
icon: string;
|
|
@@ -34,7 +34,7 @@ declare const bottomNavigation: tailwind_variants47.TVReturnType<{
|
|
|
34
34
|
item: string;
|
|
35
35
|
icon: string;
|
|
36
36
|
label: string;
|
|
37
|
-
},
|
|
37
|
+
}, tailwind_variants43.TVReturnType<{
|
|
38
38
|
selected: {
|
|
39
39
|
true: {
|
|
40
40
|
icon: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants49 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/components/BottomNavigation/BottomNavigation.styles.d.ts
|
|
5
|
-
declare const bottomNavigation:
|
|
5
|
+
declare const bottomNavigation: tailwind_variants49.TVReturnType<{
|
|
6
6
|
selected: {
|
|
7
7
|
true: {
|
|
8
8
|
icon: string;
|
|
@@ -34,7 +34,7 @@ declare const bottomNavigation: tailwind_variants57.TVReturnType<{
|
|
|
34
34
|
item: string;
|
|
35
35
|
icon: string;
|
|
36
36
|
label: string;
|
|
37
|
-
},
|
|
37
|
+
}, tailwind_variants49.TVReturnType<{
|
|
38
38
|
selected: {
|
|
39
39
|
true: {
|
|
40
40
|
icon: string;
|
|
@@ -3,7 +3,7 @@ import { tv } from "tailwind-variants";
|
|
|
3
3
|
//#region src/components/BottomNavigation/BottomNavigation.styles.ts
|
|
4
4
|
const bottomNavigation = tv({
|
|
5
5
|
slots: {
|
|
6
|
-
root: "fixed bg-white right-0 bottom-0 left-0 z-sticky flex h-15 items-center justify-between
|
|
6
|
+
root: "fixed bg-white right-0 bottom-0 left-0 z-sticky flex h-15 items-center justify-between px-12 py-2 pb-safe shadow-[0_-2px_10px_0_rgba(0,0,0,0.08)]",
|
|
7
7
|
item: "group flex flex-1 flex-col items-center justify-center gap-1 text-xs transition-colors",
|
|
8
8
|
icon: "w-5 h-5",
|
|
9
9
|
label: "typo-caption-12-semibold text-center"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomNavigation.styles.mjs","names":[],"sources":["../../../src/components/BottomNavigation/BottomNavigation.styles.ts"],"sourcesContent":["import { tv, VariantProps } from 'tailwind-variants';\n\nexport const bottomNavigation = tv({\n slots: {\n root: 'fixed bg-white right-0 bottom-0 left-0 z-sticky flex h-15 items-center justify-between
|
|
1
|
+
{"version":3,"file":"BottomNavigation.styles.mjs","names":[],"sources":["../../../src/components/BottomNavigation/BottomNavigation.styles.ts"],"sourcesContent":["import { tv, VariantProps } from 'tailwind-variants';\n\nexport const bottomNavigation = tv({\n slots: {\n root: 'fixed bg-white right-0 bottom-0 left-0 z-sticky flex h-15 items-center justify-between px-12 py-2 pb-safe shadow-[0_-2px_10px_0_rgba(0,0,0,0.08)]',\n item: 'group flex flex-1 flex-col items-center justify-center gap-1 text-xs transition-colors',\n icon: 'w-5 h-5',\n label: 'typo-caption-12-semibold text-center',\n },\n variants: {\n selected: {\n true: {\n icon: 'fill-gray-700',\n label: 'text-gray-600',\n },\n false: {\n icon: 'fill-gray-300 group-hover:fill-gray-500 group-active:fill-gray-500',\n label:\n 'text-gray-300 group-hover:text-gray-500 group-active:text-gray-500',\n },\n },\n },\n defaultVariants: {\n selected: false,\n },\n});\n\nexport type BottomNavigationVariants = VariantProps<typeof bottomNavigation>;\n"],"mappings":";;;AAEA,MAAa,mBAAmB,GAAG;CACjC,OAAO;EACL,MAAM;EACN,MAAM;EACN,MAAM;EACN,OAAO;EACR;CACD,UAAU,EACR,UAAU;EACR,MAAM;GACJ,MAAM;GACN,OAAO;GACR;EACD,OAAO;GACL,MAAM;GACN,OACE;GACH;EACF,EACF;CACD,iBAAiB,EACf,UAAU,OACX;CACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HeaderAlign } from "./BottomSheet.styles.cjs";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime53 from "react/jsx-runtime";
|
|
4
4
|
import * as _radix_ui_react_dialog0 from "@radix-ui/react-dialog";
|
|
5
5
|
import { Drawer } from "vaul";
|
|
6
6
|
|
|
@@ -19,7 +19,7 @@ declare const BottomSheet: {
|
|
|
19
19
|
defaultOpen,
|
|
20
20
|
onOpenChange,
|
|
21
21
|
headerAlign
|
|
22
|
-
}: BottomSheetRootProps):
|
|
22
|
+
}: BottomSheetRootProps): react_jsx_runtime53.JSX.Element;
|
|
23
23
|
displayName: string;
|
|
24
24
|
} & {
|
|
25
25
|
Trigger: React.ForwardRefExoticComponent<_radix_ui_react_dialog0.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -28,7 +28,7 @@ declare const BottomSheet: {
|
|
|
28
28
|
children,
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<typeof Drawer.Content>):
|
|
31
|
+
}: React.ComponentProps<typeof Drawer.Content>): react_jsx_runtime53.JSX.Element;
|
|
32
32
|
displayName: string;
|
|
33
33
|
};
|
|
34
34
|
Header: {
|
|
@@ -38,7 +38,7 @@ declare const BottomSheet: {
|
|
|
38
38
|
}: {
|
|
39
39
|
title?: string;
|
|
40
40
|
className?: string;
|
|
41
|
-
}):
|
|
41
|
+
}): react_jsx_runtime53.JSX.Element;
|
|
42
42
|
displayName: string;
|
|
43
43
|
};
|
|
44
44
|
Body: {
|
|
@@ -50,7 +50,7 @@ declare const BottomSheet: {
|
|
|
50
50
|
children: React.ReactNode;
|
|
51
51
|
className?: string;
|
|
52
52
|
maxHeight?: string | number;
|
|
53
|
-
}):
|
|
53
|
+
}): react_jsx_runtime53.JSX.Element;
|
|
54
54
|
displayName: string;
|
|
55
55
|
};
|
|
56
56
|
Footer: {
|
|
@@ -60,7 +60,7 @@ declare const BottomSheet: {
|
|
|
60
60
|
}: {
|
|
61
61
|
children: React.ReactNode;
|
|
62
62
|
className?: string;
|
|
63
|
-
}):
|
|
63
|
+
}): react_jsx_runtime53.JSX.Element;
|
|
64
64
|
displayName: string;
|
|
65
65
|
};
|
|
66
66
|
};
|