@causw/core 0.0.14 → 0.0.16
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 +3 -2
- package/dist/components/Avatar/Avatar.d.cts.map +1 -1
- package/dist/components/Avatar/Avatar.d.mts +2 -2
- package/dist/components/Avatar/Avatar.styles.d.cts +3 -3
- package/dist/components/Avatar/Avatar.styles.d.mts +3 -3
- package/dist/components/Avatar/index.d.cts +2 -0
- package/dist/components/BottomNavigation/BottomNavigation.d.cts +6 -5
- package/dist/components/BottomNavigation/BottomNavigation.d.cts.map +1 -1
- package/dist/components/BottomNavigation/BottomNavigation.d.mts +5 -5
- package/dist/components/BottomNavigation/BottomNavigation.styles.d.mts +3 -3
- package/dist/components/BottomNavigation/index.d.cts +1 -0
- package/dist/components/BottomSheet/BottomSheet.d.cts +6 -6
- package/dist/components/BottomSheet/BottomSheet.d.mts +6 -6
- package/dist/components/BottomSheet/BottomSheet.styles.d.cts +3 -3
- package/dist/components/BottomSheet/BottomSheet.styles.d.mts +3 -3
- package/dist/components/BottomSheet/index.d.cts +1 -0
- package/dist/components/Box/Box.d.cts +1 -0
- package/dist/components/Box/Box.d.cts.map +1 -1
- package/dist/components/Box/Box.styles.d.mts +3 -3
- package/dist/components/Box/index.d.cts +2 -0
- package/dist/components/Button/Button.d.cts +3 -2
- package/dist/components/Button/Button.d.cts.map +1 -1
- package/dist/components/Button/Button.d.mts +2 -2
- package/dist/components/Button/Button.d.mts.map +1 -1
- package/dist/components/Button/Button.styles.cjs +1 -1
- package/dist/components/Button/Button.styles.d.cts +5 -5
- package/dist/components/Button/Button.styles.d.mts +5 -5
- package/dist/components/Button/Button.styles.mjs +1 -1
- package/dist/components/Button/Button.styles.mjs.map +1 -1
- package/dist/components/Button/index.d.cts +1 -0
- package/dist/components/CTAButton/CTAButton.d.cts +3 -2
- package/dist/components/CTAButton/CTAButton.d.cts.map +1 -1
- package/dist/components/CTAButton/CTAButton.d.mts +2 -2
- package/dist/components/CTAButton/CTAButton.styles.cjs +1 -1
- package/dist/components/CTAButton/CTAButton.styles.d.cts +5 -5
- package/dist/components/CTAButton/CTAButton.styles.d.mts +5 -5
- package/dist/components/CTAButton/CTAButton.styles.mjs +1 -1
- package/dist/components/CTAButton/CTAButton.styles.mjs.map +1 -1
- package/dist/components/CTAButton/index.d.cts +1 -0
- package/dist/components/Calendar/Calendar.d.cts +2 -2
- package/dist/components/Calendar/Calendar.d.mts +2 -2
- package/dist/components/Calendar/Calendar.styles.d.cts +3 -3
- package/dist/components/Calendar/Calendar.styles.d.mts +3 -3
- package/dist/components/Checkbox/Checkbox.d.cts +6 -4
- package/dist/components/Checkbox/Checkbox.d.cts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.mts +4 -4
- package/dist/components/Checkbox/Checkbox.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/Checkbox/index.d.cts +1 -0
- package/dist/components/Chip/Chip.d.cts +3 -2
- package/dist/components/Chip/Chip.d.cts.map +1 -1
- package/dist/components/Chip/Chip.styles.cjs +1 -1
- package/dist/components/Chip/Chip.styles.d.cts +3 -3
- package/dist/components/Chip/Chip.styles.mjs +1 -1
- package/dist/components/Chip/Chip.styles.mjs.map +1 -1
- package/dist/components/Chip/index.d.cts +2 -0
- package/dist/components/Dialog/Dialog.d.cts +1 -0
- package/dist/components/Dialog/Dialog.d.cts.map +1 -1
- package/dist/components/Dialog/index.d.cts +2 -0
- package/dist/components/Drawer/Drawer.d.cts +11 -11
- package/dist/components/Drawer/Drawer.d.mts +3 -3
- package/dist/components/Drawer/Drawer.styles.d.cts +3 -3
- package/dist/components/Drawer/Drawer.styles.d.mts +3 -3
- package/dist/components/Drawer/index.d.cts +1 -0
- package/dist/components/Dropdown/index.d.cts +2 -0
- package/dist/components/Field/Field.d.cts +6 -5
- package/dist/components/Field/Field.d.cts.map +1 -1
- package/dist/components/Field/index.d.cts +1 -0
- package/dist/components/Flex/Flex.d.cts +1 -0
- package/dist/components/Flex/Flex.d.cts.map +1 -1
- package/dist/components/Flex/index.d.cts +2 -0
- package/dist/components/Float/Float.d.cts +1 -0
- package/dist/components/Float/Float.d.cts.map +1 -1
- package/dist/components/Float/index.d.cts +1 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.d.cts +3 -2
- package/dist/components/FloatingActionButton/FloatingActionButton.d.cts.map +1 -1
- package/dist/components/FloatingActionButton/FloatingActionButton.d.mts +2 -2
- package/dist/components/FloatingActionButton/index.d.cts +1 -0
- package/dist/components/Grid/Grid.d.cts +1 -0
- package/dist/components/Grid/Grid.d.cts.map +1 -1
- package/dist/components/Grid/index.d.cts +1 -0
- package/dist/components/HStack/HStack.d.cts +1 -0
- package/dist/components/HStack/HStack.d.cts.map +1 -1
- package/dist/components/HStack/HStack.d.mts +2 -2
- package/dist/components/HStack/index.d.cts +1 -0
- package/dist/components/Modal/Modal.cjs +4 -7
- package/dist/components/Modal/Modal.d.cts +14 -15
- package/dist/components/Modal/Modal.d.cts.map +1 -1
- package/dist/components/Modal/Modal.d.mts +4 -6
- package/dist/components/Modal/Modal.d.mts.map +1 -1
- package/dist/components/Modal/Modal.mjs +4 -7
- package/dist/components/Modal/Modal.mjs.map +1 -1
- package/dist/components/Modal/Modal.styles.cjs +15 -26
- package/dist/components/Modal/Modal.styles.d.cts +3 -39
- package/dist/components/Modal/Modal.styles.d.cts.map +1 -1
- package/dist/components/Modal/Modal.styles.d.mts +0 -36
- package/dist/components/Modal/Modal.styles.d.mts.map +1 -1
- package/dist/components/Modal/Modal.styles.mjs +15 -26
- package/dist/components/Modal/Modal.styles.mjs.map +1 -1
- package/dist/components/Modal/index.d.cts +2 -0
- package/dist/components/Primitive/Primitive.d.cts +16 -16
- package/dist/components/Primitive/index.d.cts +1 -0
- package/dist/components/PullToRefresh/PullToRefresh.cjs +79 -0
- package/dist/components/PullToRefresh/PullToRefresh.d.cts +20 -0
- package/dist/components/PullToRefresh/PullToRefresh.d.cts.map +1 -0
- package/dist/components/PullToRefresh/PullToRefresh.d.mts +20 -0
- package/dist/components/PullToRefresh/PullToRefresh.d.mts.map +1 -0
- package/dist/components/PullToRefresh/PullToRefresh.mjs +78 -0
- package/dist/components/PullToRefresh/PullToRefresh.mjs.map +1 -0
- package/dist/components/PullToRefresh/PullToRefresh.styles.cjs +12 -0
- package/dist/components/PullToRefresh/PullToRefresh.styles.d.cts +46 -0
- package/dist/components/PullToRefresh/PullToRefresh.styles.d.cts.map +1 -0
- package/dist/components/PullToRefresh/PullToRefresh.styles.d.mts +46 -0
- package/dist/components/PullToRefresh/PullToRefresh.styles.d.mts.map +1 -0
- package/dist/components/PullToRefresh/PullToRefresh.styles.mjs +12 -0
- package/dist/components/PullToRefresh/PullToRefresh.styles.mjs.map +1 -0
- package/dist/components/PullToRefresh/index.d.cts +1 -0
- package/dist/components/PullToRefresh/index.d.mts +1 -0
- package/dist/components/Radio/Radio.d.cts +4 -3
- package/dist/components/Radio/Radio.d.cts.map +1 -1
- package/dist/components/Radio/Radio.d.mts +3 -3
- package/dist/components/Radio/index.d.cts +1 -0
- package/dist/components/RatioChart/RatioChart.d.mts +5 -5
- package/dist/components/RatioChart/RatioChartEditor.d.mts +2 -2
- package/dist/components/RatioChart/index.d.cts +2 -0
- package/dist/components/Select/Select.d.mts +5 -5
- package/dist/components/Select/index.d.cts +2 -0
- package/dist/components/Separator/Separator.d.cts +1 -0
- package/dist/components/Separator/Separator.d.cts.map +1 -1
- package/dist/components/Separator/Separator.styles.d.mts +3 -3
- package/dist/components/Separator/index.d.cts +2 -0
- package/dist/components/Sidebar/Sidebar.d.cts +9 -8
- package/dist/components/Sidebar/Sidebar.d.cts.map +1 -1
- package/dist/components/Sidebar/Sidebar.d.mts +8 -8
- package/dist/components/Sidebar/Sidebar.styles.d.cts +3 -3
- package/dist/components/Sidebar/hooks/useSidebarContext.d.cts +2 -0
- package/dist/components/Sidebar/hooks/useSidebarContext.d.cts.map +1 -1
- package/dist/components/Sidebar/index.d.cts +2 -0
- package/dist/components/Skeleton/Skeleton.cjs +34 -0
- package/dist/components/Skeleton/Skeleton.d.cts +25 -0
- package/dist/components/Skeleton/Skeleton.d.cts.map +1 -0
- package/dist/components/Skeleton/Skeleton.d.mts +25 -0
- package/dist/components/Skeleton/Skeleton.d.mts.map +1 -0
- package/dist/components/Skeleton/Skeleton.mjs +33 -0
- package/dist/components/Skeleton/Skeleton.mjs.map +1 -0
- package/dist/components/Skeleton/Skeleton.styles.cjs +40 -0
- package/dist/components/Skeleton/Skeleton.styles.d.cts +50 -0
- package/dist/components/Skeleton/Skeleton.styles.d.cts.map +1 -0
- package/dist/components/Skeleton/Skeleton.styles.d.mts +50 -0
- package/dist/components/Skeleton/Skeleton.styles.d.mts.map +1 -0
- package/dist/components/Skeleton/Skeleton.styles.mjs +39 -0
- package/dist/components/Skeleton/Skeleton.styles.mjs.map +1 -0
- package/dist/components/Skeleton/index.d.cts +1 -0
- package/dist/components/Skeleton/index.d.mts +1 -0
- package/dist/components/Spacer/Spacer.d.cts +1 -0
- package/dist/components/Spacer/Spacer.d.cts.map +1 -1
- package/dist/components/Spacer/Spacer.styles.d.mts +3 -3
- package/dist/components/Spacer/index.d.cts +2 -0
- package/dist/components/Spinner/Spinner.cjs +38 -0
- package/dist/components/Spinner/Spinner.d.cts +17 -0
- package/dist/components/Spinner/Spinner.d.cts.map +1 -0
- package/dist/components/Spinner/Spinner.d.mts +17 -0
- package/dist/components/Spinner/Spinner.d.mts.map +1 -0
- package/dist/components/Spinner/Spinner.mjs +37 -0
- package/dist/components/Spinner/Spinner.mjs.map +1 -0
- package/dist/components/Spinner/Spinner.styles.cjs +34 -0
- package/dist/components/Spinner/Spinner.styles.d.cts +63 -0
- package/dist/components/Spinner/Spinner.styles.d.cts.map +1 -0
- package/dist/components/Spinner/Spinner.styles.d.mts +63 -0
- package/dist/components/Spinner/Spinner.styles.d.mts.map +1 -0
- package/dist/components/Spinner/Spinner.styles.mjs +34 -0
- package/dist/components/Spinner/Spinner.styles.mjs.map +1 -0
- package/dist/components/Spinner/index.d.mts +1 -0
- package/dist/components/Stack/Stack.d.cts +1 -0
- package/dist/components/Stack/Stack.d.cts.map +1 -1
- package/dist/components/Stack/Stack.styles.d.mts +3 -3
- package/dist/components/Stack/index.d.cts +2 -0
- package/dist/components/Tab/Tab.d.cts +7 -6
- package/dist/components/Tab/Tab.d.cts.map +1 -1
- package/dist/components/Tab/Tab.d.mts +6 -6
- package/dist/components/Tab/Tab.styles.d.cts +3 -3
- package/dist/components/Tab/Tab.styles.d.mts +3 -3
- package/dist/components/Tab/index.d.cts +2 -0
- package/dist/components/Text/Text.d.cts +2 -1
- package/dist/components/Text/Text.d.cts.map +1 -1
- package/dist/components/Text/Text.d.mts +1 -1
- package/dist/components/Text/Text.styles.d.mts +3 -3
- package/dist/components/Text/index.d.cts +2 -0
- package/dist/components/TextArea/TextArea.d.cts +5 -4
- package/dist/components/TextArea/TextArea.d.cts.map +1 -1
- package/dist/components/TextArea/TextArea.d.mts +4 -4
- package/dist/components/TextArea/TextArea.d.mts.map +1 -1
- package/dist/components/TextArea/TextArea.styles.d.mts +3 -3
- package/dist/components/TextArea/index.d.cts +1 -0
- package/dist/components/TextInput/TextInput.d.cts +3 -2
- package/dist/components/TextInput/TextInput.d.cts.map +1 -1
- package/dist/components/TextInput/TextInput.styles.d.mts +3 -3
- package/dist/components/TextInput/index.d.cts +2 -0
- package/dist/components/Toast/Toast.d.cts +3 -3
- package/dist/components/Toast/Toast.d.mts +3 -3
- package/dist/components/Toast/Toast.styles.d.cts +3 -3
- package/dist/components/Toast/Toast.styles.d.mts +3 -3
- package/dist/components/Toast/index.d.cts +3 -0
- package/dist/components/Toast/index.d.mts +2 -1
- package/dist/components/Toast/toastStore.cjs +38 -0
- package/dist/components/Toast/toastStore.d.cts +19 -0
- package/dist/components/Toast/toastStore.d.cts.map +1 -0
- package/dist/components/Toast/toastStore.d.mts +19 -0
- package/dist/components/Toast/toastStore.d.mts.map +1 -0
- package/dist/components/Toast/toastStore.mjs +39 -0
- package/dist/components/Toast/toastStore.mjs.map +1 -0
- package/dist/components/Toggle/Toggle.d.cts +6 -4
- package/dist/components/Toggle/Toggle.d.cts.map +1 -1
- package/dist/components/Toggle/Toggle.d.mts +4 -4
- package/dist/components/Toggle/Toggle.styles.d.cts +3 -3
- package/dist/components/Toggle/Toggle.styles.d.mts +3 -3
- package/dist/components/Toggle/index.d.cts +1 -0
- package/dist/components/VStack/VStack.d.cts +1 -0
- package/dist/components/VStack/VStack.d.cts.map +1 -1
- package/dist/components/VStack/VStack.d.mts +2 -2
- package/dist/components/VStack/index.d.cts +1 -0
- package/dist/components/index.d.cts +90 -0
- package/dist/components/index.d.mts +8 -1
- package/dist/index.cjs +8 -0
- package/dist/index.d.cts +7 -1
- package/dist/index.d.mts +5 -1
- package/dist/index.mjs +5 -1
- package/dist/utils/index.d.cts +5 -0
- package/dist/utils/polymorphic/index.d.cts +1 -0
- package/package.json +2 -2
- package/src/styles/global.css +32 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_Spinner = require('../Spinner/Spinner.cjs');
|
|
3
|
+
const require_PullToRefresh_styles = require('./PullToRefresh.styles.cjs');
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
|
|
8
|
+
//#region src/components/PullToRefresh/PullToRefresh.tsx
|
|
9
|
+
const PullToRefresh = ({ children, onRefresh, threshold = 60, className }) => {
|
|
10
|
+
const { wrapper, loaderContainer, content } = require_PullToRefresh_styles.pullToRefresh();
|
|
11
|
+
const containerRef = (0, react.useRef)(null);
|
|
12
|
+
const [pullDistance, setPullDistance] = (0, react.useState)(0);
|
|
13
|
+
const [isRefreshing, setIsRefreshing] = (0, react.useState)(false);
|
|
14
|
+
const [isDragging, setIsDragging] = (0, react.useState)(false);
|
|
15
|
+
const startY = (0, react.useRef)(0);
|
|
16
|
+
const isTopReached = (0, react.useRef)(false);
|
|
17
|
+
const handleTouchStart = (e) => {
|
|
18
|
+
if (isRefreshing) return;
|
|
19
|
+
if (containerRef.current && containerRef.current.scrollTop === 0) {
|
|
20
|
+
isTopReached.current = true;
|
|
21
|
+
startY.current = e.touches[0].clientY;
|
|
22
|
+
setIsDragging(true);
|
|
23
|
+
} else isTopReached.current = false;
|
|
24
|
+
};
|
|
25
|
+
const handleTouchMove = (e) => {
|
|
26
|
+
if (!isTopReached.current || isRefreshing) return;
|
|
27
|
+
const diff = e.touches[0].clientY - startY.current;
|
|
28
|
+
if (diff > 0) {
|
|
29
|
+
setPullDistance(Math.min(diff * .5, threshold * 2.5));
|
|
30
|
+
if (e.cancelable) e.preventDefault();
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const handleTouchEnd = async () => {
|
|
34
|
+
setIsDragging(false);
|
|
35
|
+
if (!isTopReached.current || isRefreshing) return;
|
|
36
|
+
if (pullDistance >= threshold) {
|
|
37
|
+
setIsRefreshing(true);
|
|
38
|
+
setPullDistance(threshold);
|
|
39
|
+
try {
|
|
40
|
+
await onRefresh();
|
|
41
|
+
} finally {
|
|
42
|
+
setIsRefreshing(false);
|
|
43
|
+
setPullDistance(0);
|
|
44
|
+
}
|
|
45
|
+
} else setPullDistance(0);
|
|
46
|
+
};
|
|
47
|
+
const transitionStyle = isDragging ? "none" : "all 0.45s cubic-bezier(0, 0, 0.2, 1)";
|
|
48
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
49
|
+
ref: containerRef,
|
|
50
|
+
className: wrapper({ className }),
|
|
51
|
+
onTouchStart: handleTouchStart,
|
|
52
|
+
onTouchMove: handleTouchMove,
|
|
53
|
+
onTouchEnd: handleTouchEnd,
|
|
54
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
55
|
+
className: loaderContainer(),
|
|
56
|
+
style: {
|
|
57
|
+
height: "auto",
|
|
58
|
+
top: pullDistance > 0 ? `${pullDistance / 2}px` : `-${threshold}px`,
|
|
59
|
+
transform: "translateY(-50%)",
|
|
60
|
+
opacity: pullDistance > 0 ? Math.min(pullDistance / threshold, 1) : 0,
|
|
61
|
+
transition: transitionStyle
|
|
62
|
+
},
|
|
63
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Spinner.Spinner, {
|
|
64
|
+
size: "md",
|
|
65
|
+
speed: "fast"
|
|
66
|
+
})
|
|
67
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
68
|
+
className: content(),
|
|
69
|
+
style: {
|
|
70
|
+
transform: `translateY(${pullDistance}px)`,
|
|
71
|
+
transition: transitionStyle
|
|
72
|
+
},
|
|
73
|
+
children
|
|
74
|
+
})]
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
//#endregion
|
|
79
|
+
exports.PullToRefresh = PullToRefresh;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PullToRefreshVariants } from "./PullToRefresh.styles.cjs";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import * as react_jsx_runtime77 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/PullToRefresh/PullToRefresh.d.ts
|
|
6
|
+
interface PullToRefreshProps extends PullToRefreshVariants {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
onRefresh: () => Promise<void>;
|
|
9
|
+
threshold?: number;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const PullToRefresh: ({
|
|
13
|
+
children,
|
|
14
|
+
onRefresh,
|
|
15
|
+
threshold,
|
|
16
|
+
className
|
|
17
|
+
}: PullToRefreshProps) => react_jsx_runtime77.JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { PullToRefresh, PullToRefreshProps };
|
|
20
|
+
//# sourceMappingURL=PullToRefresh.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PullToRefresh.d.cts","names":[],"sources":["../../../src/components/PullToRefresh/PullToRefresh.tsx"],"mappings":";;;;;UAOiB,kBAAA,SAA2B,qBAAA;EAC1C,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,SAAA,QAAiB,OAAA;EACjB,SAAA;EACA,SAAA;AAAA;AAAA,cAGW,aAAA;EAAiB,QAAA;EAAA,SAAA;EAAA,SAAA;EAAA;AAAA,GAK3B,kBAAA,KAAkB,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PullToRefreshVariants } from "./PullToRefresh.styles.mjs";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import * as react_jsx_runtime77 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/PullToRefresh/PullToRefresh.d.ts
|
|
6
|
+
interface PullToRefreshProps extends PullToRefreshVariants {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
onRefresh: () => Promise<void>;
|
|
9
|
+
threshold?: number;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const PullToRefresh: ({
|
|
13
|
+
children,
|
|
14
|
+
onRefresh,
|
|
15
|
+
threshold,
|
|
16
|
+
className
|
|
17
|
+
}: PullToRefreshProps) => react_jsx_runtime77.JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { PullToRefresh, PullToRefreshProps };
|
|
20
|
+
//# sourceMappingURL=PullToRefresh.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PullToRefresh.d.mts","names":[],"sources":["../../../src/components/PullToRefresh/PullToRefresh.tsx"],"mappings":";;;;;UAOiB,kBAAA,SAA2B,qBAAA;EAC1C,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,SAAA,QAAiB,OAAA;EACjB,SAAA;EACA,SAAA;AAAA;AAAA,cAGW,aAAA;EAAiB,QAAA;EAAA,SAAA;EAAA,SAAA;EAAA;AAAA,GAK3B,kBAAA,KAAkB,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Spinner } from "../Spinner/Spinner.mjs";
|
|
2
|
+
import { pullToRefresh } from "./PullToRefresh.styles.mjs";
|
|
3
|
+
import React, { useRef, useState } from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/PullToRefresh/PullToRefresh.tsx
|
|
7
|
+
const PullToRefresh = ({ children, onRefresh, threshold = 60, className }) => {
|
|
8
|
+
const { wrapper, loaderContainer, content } = pullToRefresh();
|
|
9
|
+
const containerRef = useRef(null);
|
|
10
|
+
const [pullDistance, setPullDistance] = useState(0);
|
|
11
|
+
const [isRefreshing, setIsRefreshing] = useState(false);
|
|
12
|
+
const [isDragging, setIsDragging] = useState(false);
|
|
13
|
+
const startY = useRef(0);
|
|
14
|
+
const isTopReached = useRef(false);
|
|
15
|
+
const handleTouchStart = (e) => {
|
|
16
|
+
if (isRefreshing) return;
|
|
17
|
+
if (containerRef.current && containerRef.current.scrollTop === 0) {
|
|
18
|
+
isTopReached.current = true;
|
|
19
|
+
startY.current = e.touches[0].clientY;
|
|
20
|
+
setIsDragging(true);
|
|
21
|
+
} else isTopReached.current = false;
|
|
22
|
+
};
|
|
23
|
+
const handleTouchMove = (e) => {
|
|
24
|
+
if (!isTopReached.current || isRefreshing) return;
|
|
25
|
+
const diff = e.touches[0].clientY - startY.current;
|
|
26
|
+
if (diff > 0) {
|
|
27
|
+
setPullDistance(Math.min(diff * .5, threshold * 2.5));
|
|
28
|
+
if (e.cancelable) e.preventDefault();
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const handleTouchEnd = async () => {
|
|
32
|
+
setIsDragging(false);
|
|
33
|
+
if (!isTopReached.current || isRefreshing) return;
|
|
34
|
+
if (pullDistance >= threshold) {
|
|
35
|
+
setIsRefreshing(true);
|
|
36
|
+
setPullDistance(threshold);
|
|
37
|
+
try {
|
|
38
|
+
await onRefresh();
|
|
39
|
+
} finally {
|
|
40
|
+
setIsRefreshing(false);
|
|
41
|
+
setPullDistance(0);
|
|
42
|
+
}
|
|
43
|
+
} else setPullDistance(0);
|
|
44
|
+
};
|
|
45
|
+
const transitionStyle = isDragging ? "none" : "all 0.45s cubic-bezier(0, 0, 0.2, 1)";
|
|
46
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
47
|
+
ref: containerRef,
|
|
48
|
+
className: wrapper({ className }),
|
|
49
|
+
onTouchStart: handleTouchStart,
|
|
50
|
+
onTouchMove: handleTouchMove,
|
|
51
|
+
onTouchEnd: handleTouchEnd,
|
|
52
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
53
|
+
className: loaderContainer(),
|
|
54
|
+
style: {
|
|
55
|
+
height: "auto",
|
|
56
|
+
top: pullDistance > 0 ? `${pullDistance / 2}px` : `-${threshold}px`,
|
|
57
|
+
transform: "translateY(-50%)",
|
|
58
|
+
opacity: pullDistance > 0 ? Math.min(pullDistance / threshold, 1) : 0,
|
|
59
|
+
transition: transitionStyle
|
|
60
|
+
},
|
|
61
|
+
children: /* @__PURE__ */ jsx(Spinner, {
|
|
62
|
+
size: "md",
|
|
63
|
+
speed: "fast"
|
|
64
|
+
})
|
|
65
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
66
|
+
className: content(),
|
|
67
|
+
style: {
|
|
68
|
+
transform: `translateY(${pullDistance}px)`,
|
|
69
|
+
transition: transitionStyle
|
|
70
|
+
},
|
|
71
|
+
children
|
|
72
|
+
})]
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
//#endregion
|
|
77
|
+
export { PullToRefresh };
|
|
78
|
+
//# sourceMappingURL=PullToRefresh.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PullToRefresh.mjs","names":[],"sources":["../../../src/components/PullToRefresh/PullToRefresh.tsx"],"sourcesContent":["import React, { useRef, useState } from 'react';\nimport { Spinner } from '../Spinner';\nimport {\n pullToRefresh,\n type PullToRefreshVariants,\n} from './PullToRefresh.styles';\n\nexport interface PullToRefreshProps extends PullToRefreshVariants {\n children: React.ReactNode;\n onRefresh: () => Promise<void>;\n threshold?: number;\n className?: string;\n}\n\nexport const PullToRefresh = ({\n children,\n onRefresh,\n threshold = 60,\n className,\n}: PullToRefreshProps) => {\n const { wrapper, loaderContainer, content } = pullToRefresh();\n\n const containerRef = useRef<HTMLDivElement>(null);\n const [pullDistance, setPullDistance] = useState(0);\n const [isRefreshing, setIsRefreshing] = useState(false);\n const [isDragging, setIsDragging] = useState(false); // [추가] 드래그 상태 감지\n\n const startY = useRef(0);\n const isTopReached = useRef(false);\n\n const handleTouchStart = (e: React.TouchEvent) => {\n if (isRefreshing) return;\n\n if (containerRef.current && containerRef.current.scrollTop === 0) {\n isTopReached.current = true;\n startY.current = e.touches[0].clientY;\n setIsDragging(true);\n } else {\n isTopReached.current = false;\n }\n };\n\n const handleTouchMove = (e: React.TouchEvent) => {\n if (!isTopReached.current || isRefreshing) return;\n\n const currentY = e.touches[0].clientY;\n const diff = currentY - startY.current;\n\n if (diff > 0) {\n const resistance = 0.5;\n const newDistance = Math.min(diff * resistance, threshold * 2.5);\n\n setPullDistance(newDistance);\n\n if (e.cancelable) e.preventDefault();\n }\n };\n\n const handleTouchEnd = async () => {\n setIsDragging(false);\n\n if (!isTopReached.current || isRefreshing) return;\n\n if (pullDistance >= threshold) {\n setIsRefreshing(true);\n setPullDistance(threshold);\n\n try {\n await onRefresh();\n } finally {\n setIsRefreshing(false);\n setPullDistance(0);\n }\n } else {\n // 임계값 못 넘음 -> 0으로 복귀\n setPullDistance(0);\n }\n };\n\n const transitionStyle = isDragging\n ? 'none'\n : 'all 0.45s cubic-bezier(0, 0, 0.2, 1)';\n\n return (\n <div\n ref={containerRef}\n className={wrapper({ className })}\n onTouchStart={handleTouchStart}\n onTouchMove={handleTouchMove}\n onTouchEnd={handleTouchEnd}\n >\n <div\n className={loaderContainer()}\n style={{\n height: 'auto',\n top: pullDistance > 0 ? `${pullDistance / 2}px` : `-${threshold}px`,\n transform: 'translateY(-50%)',\n opacity: pullDistance > 0 ? Math.min(pullDistance / threshold, 1) : 0,\n transition: transitionStyle,\n }}\n >\n <Spinner size=\"md\" speed=\"fast\" />\n </div>\n <div\n className={content()}\n style={{\n transform: `translateY(${pullDistance}px)`,\n transition: transitionStyle,\n }}\n >\n {children}\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;;AAcA,MAAa,iBAAiB,EAC5B,UACA,WACA,YAAY,IACZ,gBACwB;CACxB,MAAM,EAAE,SAAS,iBAAiB,YAAY,eAAe;CAE7D,MAAM,eAAe,OAAuB,KAAK;CACjD,MAAM,CAAC,cAAc,mBAAmB,SAAS,EAAE;CACnD,MAAM,CAAC,cAAc,mBAAmB,SAAS,MAAM;CACvD,MAAM,CAAC,YAAY,iBAAiB,SAAS,MAAM;CAEnD,MAAM,SAAS,OAAO,EAAE;CACxB,MAAM,eAAe,OAAO,MAAM;CAElC,MAAM,oBAAoB,MAAwB;AAChD,MAAI,aAAc;AAElB,MAAI,aAAa,WAAW,aAAa,QAAQ,cAAc,GAAG;AAChE,gBAAa,UAAU;AACvB,UAAO,UAAU,EAAE,QAAQ,GAAG;AAC9B,iBAAc,KAAK;QAEnB,cAAa,UAAU;;CAI3B,MAAM,mBAAmB,MAAwB;AAC/C,MAAI,CAAC,aAAa,WAAW,aAAc;EAG3C,MAAM,OADW,EAAE,QAAQ,GAAG,UACN,OAAO;AAE/B,MAAI,OAAO,GAAG;AAIZ,mBAFoB,KAAK,IAAI,OADV,IAC6B,YAAY,IAAI,CAEpC;AAE5B,OAAI,EAAE,WAAY,GAAE,gBAAgB;;;CAIxC,MAAM,iBAAiB,YAAY;AACjC,gBAAc,MAAM;AAEpB,MAAI,CAAC,aAAa,WAAW,aAAc;AAE3C,MAAI,gBAAgB,WAAW;AAC7B,mBAAgB,KAAK;AACrB,mBAAgB,UAAU;AAE1B,OAAI;AACF,UAAM,WAAW;aACT;AACR,oBAAgB,MAAM;AACtB,oBAAgB,EAAE;;QAIpB,iBAAgB,EAAE;;CAItB,MAAM,kBAAkB,aACpB,SACA;AAEJ,QACE,qBAAC;EACC,KAAK;EACL,WAAW,QAAQ,EAAE,WAAW,CAAC;EACjC,cAAc;EACd,aAAa;EACb,YAAY;aAEZ,oBAAC;GACC,WAAW,iBAAiB;GAC5B,OAAO;IACL,QAAQ;IACR,KAAK,eAAe,IAAI,GAAG,eAAe,EAAE,MAAM,IAAI,UAAU;IAChE,WAAW;IACX,SAAS,eAAe,IAAI,KAAK,IAAI,eAAe,WAAW,EAAE,GAAG;IACpE,YAAY;IACb;aAED,oBAAC;IAAQ,MAAK;IAAK,OAAM;KAAS;IAC9B,EACN,oBAAC;GACC,WAAW,SAAS;GACpB,OAAO;IACL,WAAW,cAAc,aAAa;IACtC,YAAY;IACb;GAEA;IACG;GACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let tailwind_variants = require("tailwind-variants");
|
|
3
|
+
|
|
4
|
+
//#region src/components/PullToRefresh/PullToRefresh.styles.ts
|
|
5
|
+
const pullToRefresh = (0, tailwind_variants.tv)({ slots: {
|
|
6
|
+
wrapper: "relative w-full h-full overflow-y-auto overscroll-y-none touch-pan-y",
|
|
7
|
+
loaderContainer: "absolute top-0 left-0 w-full flex justify-center items-center pointer-events-none z-10",
|
|
8
|
+
content: "relative w-full transition-transform duration-200 ease-out will-change-transform"
|
|
9
|
+
} });
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.pullToRefresh = pullToRefresh;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as tailwind_variants53 from "tailwind-variants";
|
|
2
|
+
import { VariantProps } from "tailwind-variants";
|
|
3
|
+
import * as tailwind_merge0 from "tailwind-merge";
|
|
4
|
+
|
|
5
|
+
//#region src/components/PullToRefresh/PullToRefresh.styles.d.ts
|
|
6
|
+
declare const pullToRefresh: tailwind_variants53.TVReturnType<{
|
|
7
|
+
[key: string]: {
|
|
8
|
+
[key: string]: tailwind_merge0.ClassNameValue | {
|
|
9
|
+
content?: tailwind_merge0.ClassNameValue;
|
|
10
|
+
wrapper?: tailwind_merge0.ClassNameValue;
|
|
11
|
+
loaderContainer?: tailwind_merge0.ClassNameValue;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
} | {
|
|
15
|
+
[x: string]: {
|
|
16
|
+
[x: string]: tailwind_merge0.ClassNameValue | {
|
|
17
|
+
content?: tailwind_merge0.ClassNameValue;
|
|
18
|
+
wrapper?: tailwind_merge0.ClassNameValue;
|
|
19
|
+
loaderContainer?: tailwind_merge0.ClassNameValue;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
} | {}, {
|
|
23
|
+
wrapper: string;
|
|
24
|
+
loaderContainer: string;
|
|
25
|
+
content: string;
|
|
26
|
+
}, undefined, {
|
|
27
|
+
[key: string]: {
|
|
28
|
+
[key: string]: tailwind_merge0.ClassNameValue | {
|
|
29
|
+
content?: tailwind_merge0.ClassNameValue;
|
|
30
|
+
wrapper?: tailwind_merge0.ClassNameValue;
|
|
31
|
+
loaderContainer?: tailwind_merge0.ClassNameValue;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
} | {}, {
|
|
35
|
+
wrapper: string;
|
|
36
|
+
loaderContainer: string;
|
|
37
|
+
content: string;
|
|
38
|
+
}, tailwind_variants53.TVReturnType<unknown, {
|
|
39
|
+
wrapper: string;
|
|
40
|
+
loaderContainer: string;
|
|
41
|
+
content: string;
|
|
42
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
43
|
+
type PullToRefreshVariants = VariantProps<typeof pullToRefresh>;
|
|
44
|
+
//#endregion
|
|
45
|
+
export { PullToRefreshVariants };
|
|
46
|
+
//# sourceMappingURL=PullToRefresh.styles.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PullToRefresh.styles.d.cts","names":[],"sources":["../../../src/components/PullToRefresh/PullToRefresh.styles.ts"],"mappings":";;;;;cAEa,aAAA,sBAAa,YAAA;EAAA;mBASxB,eAAA,CAAA,cAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,qBAAA,GAAwB,YAAA,QAAoB,aAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as tailwind_variants47 from "tailwind-variants";
|
|
2
|
+
import { VariantProps } from "tailwind-variants";
|
|
3
|
+
import * as tailwind_merge0 from "tailwind-merge";
|
|
4
|
+
|
|
5
|
+
//#region src/components/PullToRefresh/PullToRefresh.styles.d.ts
|
|
6
|
+
declare const pullToRefresh: tailwind_variants47.TVReturnType<{
|
|
7
|
+
[key: string]: {
|
|
8
|
+
[key: string]: tailwind_merge0.ClassNameValue | {
|
|
9
|
+
content?: tailwind_merge0.ClassNameValue;
|
|
10
|
+
wrapper?: tailwind_merge0.ClassNameValue;
|
|
11
|
+
loaderContainer?: tailwind_merge0.ClassNameValue;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
} | {
|
|
15
|
+
[x: string]: {
|
|
16
|
+
[x: string]: tailwind_merge0.ClassNameValue | {
|
|
17
|
+
content?: tailwind_merge0.ClassNameValue;
|
|
18
|
+
wrapper?: tailwind_merge0.ClassNameValue;
|
|
19
|
+
loaderContainer?: tailwind_merge0.ClassNameValue;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
} | {}, {
|
|
23
|
+
wrapper: string;
|
|
24
|
+
loaderContainer: string;
|
|
25
|
+
content: string;
|
|
26
|
+
}, undefined, {
|
|
27
|
+
[key: string]: {
|
|
28
|
+
[key: string]: tailwind_merge0.ClassNameValue | {
|
|
29
|
+
content?: tailwind_merge0.ClassNameValue;
|
|
30
|
+
wrapper?: tailwind_merge0.ClassNameValue;
|
|
31
|
+
loaderContainer?: tailwind_merge0.ClassNameValue;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
} | {}, {
|
|
35
|
+
wrapper: string;
|
|
36
|
+
loaderContainer: string;
|
|
37
|
+
content: string;
|
|
38
|
+
}, tailwind_variants47.TVReturnType<unknown, {
|
|
39
|
+
wrapper: string;
|
|
40
|
+
loaderContainer: string;
|
|
41
|
+
content: string;
|
|
42
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
43
|
+
type PullToRefreshVariants = VariantProps<typeof pullToRefresh>;
|
|
44
|
+
//#endregion
|
|
45
|
+
export { PullToRefreshVariants };
|
|
46
|
+
//# sourceMappingURL=PullToRefresh.styles.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PullToRefresh.styles.d.mts","names":[],"sources":["../../../src/components/PullToRefresh/PullToRefresh.styles.ts"],"mappings":";;;;;cAEa,aAAA,sBAAa,YAAA;EAAA;mBASxB,eAAA,CAAA,cAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,qBAAA,GAAwB,YAAA,QAAoB,aAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
|
|
3
|
+
//#region src/components/PullToRefresh/PullToRefresh.styles.ts
|
|
4
|
+
const pullToRefresh = tv({ slots: {
|
|
5
|
+
wrapper: "relative w-full h-full overflow-y-auto overscroll-y-none touch-pan-y",
|
|
6
|
+
loaderContainer: "absolute top-0 left-0 w-full flex justify-center items-center pointer-events-none z-10",
|
|
7
|
+
content: "relative w-full transition-transform duration-200 ease-out will-change-transform"
|
|
8
|
+
} });
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { pullToRefresh };
|
|
12
|
+
//# sourceMappingURL=PullToRefresh.styles.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PullToRefresh.styles.mjs","names":[],"sources":["../../../src/components/PullToRefresh/PullToRefresh.styles.ts"],"sourcesContent":["import { tv, type VariantProps } from 'tailwind-variants';\n\nexport const pullToRefresh = tv({\n slots: {\n wrapper:\n 'relative w-full h-full overflow-y-auto overscroll-y-none touch-pan-y',\n loaderContainer:\n 'absolute top-0 left-0 w-full flex justify-center items-center pointer-events-none z-10',\n content:\n 'relative w-full transition-transform duration-200 ease-out will-change-transform',\n },\n});\n\nexport type PullToRefreshVariants = VariantProps<typeof pullToRefresh>;\n"],"mappings":";;;AAEA,MAAa,gBAAgB,GAAG,EAC9B,OAAO;CACL,SACE;CACF,iBACE;CACF,SACE;CACH,EACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { PullToRefresh, PullToRefreshProps } from "./PullToRefresh.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { PullToRefresh, PullToRefreshProps } from "./PullToRefresh.mjs";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PrimitiveProps } from "../Primitive/Primitive.cjs";
|
|
2
|
+
import "../Primitive/index.cjs";
|
|
2
3
|
import React from "react";
|
|
3
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
5
|
|
|
5
6
|
//#region src/components/Radio/Radio.d.ts
|
|
6
7
|
interface RadioGroupContextValue {
|
|
@@ -25,7 +26,7 @@ declare const RadioGroup: {
|
|
|
25
26
|
className,
|
|
26
27
|
children,
|
|
27
28
|
...props
|
|
28
|
-
}: RadioGroupProps):
|
|
29
|
+
}: RadioGroupProps): react_jsx_runtime0.JSX.Element;
|
|
29
30
|
displayName: string;
|
|
30
31
|
};
|
|
31
32
|
interface RadioProps extends Omit<React.ComponentProps<'input'>, 'type'> {
|
|
@@ -40,7 +41,7 @@ declare const Radio: {
|
|
|
40
41
|
checked: checkedProp,
|
|
41
42
|
onChange,
|
|
42
43
|
...props
|
|
43
|
-
}: RadioProps):
|
|
44
|
+
}: RadioProps): react_jsx_runtime0.JSX.Element;
|
|
44
45
|
displayName: string;
|
|
45
46
|
};
|
|
46
47
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.cts","names":[],"sources":["../../../src/components/Radio/Radio.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Radio.d.cts","names":[],"sources":["../../../src/components/Radio/Radio.tsx"],"mappings":";;;;;;UAMU,sBAAA;EACR,IAAA;EACA,KAAA;EACA,QAAA,IAAY,KAAA;AAAA;AAAA,cAKR,oBAAA,QAAoB,sBAAA;AAAA,UAKT,eAAA,SACP,KAAA,CAAM,cAAA,CAAe,cAAA,GAAiB,cAAA;EAC9C,IAAA;EACA,KAAA;EACA,YAAA;EACA,aAAA,IAAiB,KAAA;EACjB,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,cAGL,UAAA;EAAA;;;;;;;;KAQV,eAAA,GAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;UAuDD,UAAA,SAAmB,IAAA,CAClC,KAAA,CAAM,cAAA;EAGN,KAAA;EACA,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,cAGL,KAAA;EAAA;;;;;;;KAOV,UAAA,GAAU,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PrimitiveProps } from "../Primitive/Primitive.mjs";
|
|
2
2
|
import "../Primitive/index.mjs";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/Radio/Radio.d.ts
|
|
7
7
|
interface RadioGroupContextValue {
|
|
@@ -26,7 +26,7 @@ declare const RadioGroup: {
|
|
|
26
26
|
className,
|
|
27
27
|
children,
|
|
28
28
|
...props
|
|
29
|
-
}: RadioGroupProps):
|
|
29
|
+
}: RadioGroupProps): react_jsx_runtime10.JSX.Element;
|
|
30
30
|
displayName: string;
|
|
31
31
|
};
|
|
32
32
|
interface RadioProps extends Omit<React.ComponentProps<'input'>, 'type'> {
|
|
@@ -41,7 +41,7 @@ declare const Radio: {
|
|
|
41
41
|
checked: checkedProp,
|
|
42
42
|
onChange,
|
|
43
43
|
...props
|
|
44
|
-
}: RadioProps):
|
|
44
|
+
}: RadioProps): react_jsx_runtime10.JSX.Element;
|
|
45
45
|
displayName: string;
|
|
46
46
|
};
|
|
47
47
|
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Radio, RadioGroup, RadioGroupProps, RadioProps, useRadioGroupContext } from "./Radio.cjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/RatioChart/RatioChart.d.ts
|
|
5
5
|
interface RatioChartRootSingleProps extends Omit<React.ComponentProps<'div'>, 'defaultValue'> {
|
|
@@ -30,11 +30,11 @@ interface RatioChartFooterProps extends React.ComponentProps<'div'> {
|
|
|
30
30
|
hideParticipantCount?: boolean;
|
|
31
31
|
}
|
|
32
32
|
declare const RatioChart: {
|
|
33
|
-
(props: RatioChartRootProps):
|
|
33
|
+
(props: RatioChartRootProps): react_jsx_runtime21.JSX.Element;
|
|
34
34
|
displayName: string;
|
|
35
35
|
} & {
|
|
36
36
|
Root: {
|
|
37
|
-
(props: RatioChartRootProps):
|
|
37
|
+
(props: RatioChartRootProps): react_jsx_runtime21.JSX.Element;
|
|
38
38
|
displayName: string;
|
|
39
39
|
};
|
|
40
40
|
Item: {
|
|
@@ -46,7 +46,7 @@ declare const RatioChart: {
|
|
|
46
46
|
disabled: itemDisabled,
|
|
47
47
|
className,
|
|
48
48
|
...props
|
|
49
|
-
}: RatioChartItemProps):
|
|
49
|
+
}: RatioChartItemProps): react_jsx_runtime21.JSX.Element;
|
|
50
50
|
displayName: string;
|
|
51
51
|
};
|
|
52
52
|
Footer: {
|
|
@@ -57,7 +57,7 @@ declare const RatioChart: {
|
|
|
57
57
|
className,
|
|
58
58
|
children,
|
|
59
59
|
...props
|
|
60
|
-
}: RatioChartFooterProps):
|
|
60
|
+
}: RatioChartFooterProps): react_jsx_runtime21.JSX.Element;
|
|
61
61
|
displayName: string;
|
|
62
62
|
};
|
|
63
63
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/RatioChart/RatioChartEditor.d.ts
|
|
5
5
|
interface RatioChartEditorOption {
|
|
@@ -36,7 +36,7 @@ declare const RatioChartEditor: {
|
|
|
36
36
|
disabled,
|
|
37
37
|
className,
|
|
38
38
|
...props
|
|
39
|
-
}: RatioChartEditorProps):
|
|
39
|
+
}: RatioChartEditorProps): react_jsx_runtime20.JSX.Element;
|
|
40
40
|
displayName: string;
|
|
41
41
|
};
|
|
42
42
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SelectVariants } from "./Select.styles.mjs";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
4
4
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
5
5
|
|
|
6
6
|
//#region src/components/Select/Select.d.ts
|
|
@@ -25,7 +25,7 @@ declare const Select: React$1.FC<SelectPrimitive.SelectProps> & {
|
|
|
25
25
|
children,
|
|
26
26
|
error,
|
|
27
27
|
...props
|
|
28
|
-
}: SelectTriggerProps):
|
|
28
|
+
}: SelectTriggerProps): react_jsx_runtime25.JSX.Element;
|
|
29
29
|
displayName: string | undefined;
|
|
30
30
|
};
|
|
31
31
|
Content: {
|
|
@@ -36,14 +36,14 @@ declare const Select: React$1.FC<SelectPrimitive.SelectProps> & {
|
|
|
36
36
|
sideOffset,
|
|
37
37
|
maxHeight,
|
|
38
38
|
...props
|
|
39
|
-
}: SelectContentProps):
|
|
39
|
+
}: SelectContentProps): react_jsx_runtime25.JSX.Element;
|
|
40
40
|
displayName: string | undefined;
|
|
41
41
|
};
|
|
42
42
|
Label: {
|
|
43
43
|
({
|
|
44
44
|
className,
|
|
45
45
|
...props
|
|
46
|
-
}: SelectLabelProps):
|
|
46
|
+
}: SelectLabelProps): react_jsx_runtime25.JSX.Element;
|
|
47
47
|
displayName: string | undefined;
|
|
48
48
|
};
|
|
49
49
|
Item: {
|
|
@@ -51,7 +51,7 @@ declare const Select: React$1.FC<SelectPrimitive.SelectProps> & {
|
|
|
51
51
|
className,
|
|
52
52
|
children,
|
|
53
53
|
...props
|
|
54
|
-
}: SelectItemProps):
|
|
54
|
+
}: SelectItemProps): react_jsx_runtime25.JSX.Element;
|
|
55
55
|
displayName: string | undefined;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Separator.d.cts","names":[],"sources":["../../../src/components/Separator/Separator.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Separator.d.cts","names":[],"sources":["../../../src/components/Separator/Separator.tsx"],"mappings":";;;;;;KAKY,cAAA,WAAyB,WAAA,YAAuB,gBAAA,CAC1D,CAAA,EACA,iBAAA;AAAA,cAGW,SAAA;EAAA,WAAuB,WAAA;IAAW,EAAA;IAAA,WAAA;IAAA,SAAA;IAAA,GAAA;EAAA,GAK5C,cAAA,CAAe,CAAA,IAAE,KAAA,CAAA,YAAA,eAAA,KAAA,CAAA,qBAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
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/Separator/Separator.styles.d.ts
|
|
5
|
-
declare const separator:
|
|
5
|
+
declare const separator: tailwind_variants9.TVReturnType<{
|
|
6
6
|
orientation: {
|
|
7
7
|
horizontal: string;
|
|
8
8
|
vertical: string;
|
|
@@ -12,7 +12,7 @@ declare const separator: tailwind_variants7.TVReturnType<{
|
|
|
12
12
|
horizontal: string;
|
|
13
13
|
vertical: string;
|
|
14
14
|
};
|
|
15
|
-
}, undefined,
|
|
15
|
+
}, undefined, tailwind_variants9.TVReturnType<{
|
|
16
16
|
orientation: {
|
|
17
17
|
horizontal: string;
|
|
18
18
|
vertical: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { PrimitiveProps } from "../Primitive/Primitive.cjs";
|
|
2
|
+
import "../Primitive/index.cjs";
|
|
2
3
|
import { SidebarVariants } from "./Sidebar.styles.cjs";
|
|
3
4
|
import { SidebarValue } from "./hooks/useSidebarContext.cjs";
|
|
4
5
|
import { ComponentProps, SVGProps } from "react";
|
|
5
|
-
import * as
|
|
6
|
+
import * as react_jsx_runtime59 from "react/jsx-runtime";
|
|
6
7
|
|
|
7
8
|
//#region src/components/Sidebar/Sidebar.d.ts
|
|
8
9
|
interface SidebarProps extends ComponentProps<'nav'>, PrimitiveProps {
|
|
@@ -30,34 +31,34 @@ declare const Sidebar: (({
|
|
|
30
31
|
selected,
|
|
31
32
|
onSelectChange,
|
|
32
33
|
...props
|
|
33
|
-
}: SidebarProps) =>
|
|
34
|
+
}: SidebarProps) => react_jsx_runtime59.JSX.Element) & {
|
|
34
35
|
Header: ({
|
|
35
36
|
children,
|
|
36
37
|
...props
|
|
37
|
-
}: SidebarHeaderProps) =>
|
|
38
|
+
}: SidebarHeaderProps) => react_jsx_runtime59.JSX.Element;
|
|
38
39
|
Content: ({
|
|
39
40
|
children,
|
|
40
41
|
...props
|
|
41
|
-
}: SidebarContentProps) =>
|
|
42
|
+
}: SidebarContentProps) => react_jsx_runtime59.JSX.Element;
|
|
42
43
|
Item: ({
|
|
43
44
|
selected,
|
|
44
45
|
value,
|
|
45
46
|
children,
|
|
46
47
|
onClick,
|
|
47
48
|
...props
|
|
48
|
-
}: SidebarItemProps) =>
|
|
49
|
+
}: SidebarItemProps) => react_jsx_runtime59.JSX.Element;
|
|
49
50
|
ItemIcon: ({
|
|
50
51
|
children,
|
|
51
52
|
...props
|
|
52
|
-
}: SidebarItemIconProps) =>
|
|
53
|
+
}: SidebarItemIconProps) => react_jsx_runtime59.JSX.Element;
|
|
53
54
|
ItemText: ({
|
|
54
55
|
children,
|
|
55
56
|
...props
|
|
56
|
-
}: SidebarItemTextProps) =>
|
|
57
|
+
}: SidebarItemTextProps) => react_jsx_runtime59.JSX.Element;
|
|
57
58
|
Footer: ({
|
|
58
59
|
children,
|
|
59
60
|
...props
|
|
60
|
-
}: SidebarFooterProps) =>
|
|
61
|
+
}: SidebarFooterProps) => react_jsx_runtime59.JSX.Element;
|
|
61
62
|
};
|
|
62
63
|
//#endregion
|
|
63
64
|
export { Sidebar };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.d.cts","names":[],"sources":["../../../src/components/Sidebar/Sidebar.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.d.cts","names":[],"sources":["../../../src/components/Sidebar/Sidebar.tsx"],"mappings":";;;;;;;;UAgBiB,YAAA,SAAqB,cAAA,SAAuB,cAAA;EAC3D,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,QAAA,GAAW,YAAA;EACX,cAAA,IAAkB,KAAA,EAAO,YAAA;AAAA;AAAA,UAmBV,kBAAA,SACP,cAAA,SAAuB,cAAA;EAC/B,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,UAaR,mBAAA,SAA4B,cAAA,SAAuB,cAAA;EAC3D,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,UAaR,gBAAA,SAEN,cAAA,YACA,cAAA,EACA,IAAA,CAAK,eAAA;EACP,KAAA,GAAQ,YAAA;EACR,QAAA;AAAA;AAAA,UA4CQ,oBAAA,SACA,QAAA,CAAS,aAAA,GAAgB,cAAA;AAAA,UAWzB,oBAAA,SAA6B,cAAA,UAAwB,cAAA;AAAA,UAYrD,kBAAA,SAA2B,cAAA,SAAuB,cAAA;EAC1D,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,cAaL,OAAA;EAAO,QAAA;EAAA,QAAA;EAAA,cAAA;EAAA,GAAA;AAAA,GAjIjB,YAAA,KAAY,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;KAgBgC,kBAAA,KAAkB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;KAejB,mBAAA,KAAmB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;KAwBhE,gBAAA,KAAgB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;KAsC8B,oBAAA,KAAoB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;KAWpB,oBAAA,KAAoB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;KActB,kBAAA,KAAkB,mBAAA,CAAA,GAAA,CAAA,OAAA;AAAA"}
|