reaxify 0.0.98 → 1.3.0
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/_virtual/_commonjsHelpers.cjs.js +1 -1
- package/dist/_virtual/_commonjsHelpers.es.js +3 -4
- package/dist/_virtual/index.cjs.js +1 -1
- package/dist/_virtual/index.cjs2.js +1 -1
- package/dist/_virtual/index.cjs3.js +1 -1
- package/dist/_virtual/index.es.js +3 -4
- package/dist/_virtual/index.es2.js +2 -3
- package/dist/_virtual/index.es3.js +0 -1
- package/dist/_virtual/react-is.development.cjs.js +1 -1
- package/dist/_virtual/react-is.development.es.js +0 -1
- package/dist/_virtual/react-is.production.min.cjs.js +1 -1
- package/dist/_virtual/react-is.production.min.es.js +2 -3
- package/dist/axios/index.d.ts.map +1 -1
- package/dist/axios/useAxios.cjs.js +1 -1
- package/dist/axios/useAxios.es.js +7 -7
- package/dist/components/Accordion/index.cjs.js +1 -1
- package/dist/components/Accordion/index.d.ts +4 -2
- package/dist/components/Accordion/index.d.ts.map +1 -1
- package/dist/components/Accordion/index.es.js +80 -96
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.d.ts +6 -11
- package/dist/components/Alert/index.d.ts.map +1 -1
- package/dist/components/Alert/index.es.js +122 -99
- package/dist/components/Avatar/index.cjs.js +1 -1
- package/dist/components/Avatar/index.d.ts +3 -3
- package/dist/components/Avatar/index.d.ts.map +1 -1
- package/dist/components/Avatar/index.es.js +108 -97
- package/dist/components/Badge/index.cjs.js +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/index.es.js +35 -35
- package/dist/components/Button/index.cjs.js +1 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.es.js +97 -99
- package/dist/components/ButtonGroup/index.cjs.js +1 -1
- package/dist/components/ButtonGroup/index.d.ts +0 -4
- package/dist/components/ButtonGroup/index.d.ts.map +1 -1
- package/dist/components/ButtonGroup/index.es.js +41 -37
- package/dist/components/Card/index.cjs.js +1 -1
- package/dist/components/Card/index.d.ts +4 -4
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Card/index.es.js +62 -36
- package/dist/components/Collapse/index.cjs.js +1 -0
- package/dist/components/Collapse/index.d.ts +14 -0
- package/dist/components/Collapse/index.d.ts.map +1 -0
- package/dist/components/Collapse/index.es.js +57 -0
- package/dist/components/Divider/index.cjs.js +1 -1
- package/dist/components/Divider/index.d.ts.map +1 -1
- package/dist/components/Divider/index.es.js +21 -18
- package/dist/components/Drawer/index.cjs.js +1 -1
- package/dist/components/Drawer/index.d.ts +6 -9
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/index.es.js +143 -104
- package/dist/components/Fill/index.cjs.js +1 -1
- package/dist/components/Fill/index.d.ts +1 -1
- package/dist/components/Fill/index.d.ts.map +1 -1
- package/dist/components/Fill/index.es.js +18 -10
- package/dist/components/InputGroup/index.cjs.js +1 -1
- package/dist/components/InputGroup/index.d.ts.map +1 -1
- package/dist/components/InputGroup/index.es.js +49 -37
- package/dist/components/List/index.cjs.js +1 -0
- package/dist/components/List/index.d.ts +25 -0
- package/dist/components/List/index.d.ts.map +1 -0
- package/dist/components/List/index.es.js +169 -0
- package/dist/components/Menu/index.cjs.js +1 -1
- package/dist/components/Menu/index.d.ts +3 -2
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/index.es.js +115 -96
- package/dist/components/Modal/index.cjs.js +1 -1
- package/dist/components/Modal/index.d.ts +7 -9
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.es.js +134 -87
- package/dist/components/Portal/index.cjs.js +1 -1
- package/dist/components/Portal/index.d.ts.map +1 -1
- package/dist/components/Portal/index.es.js +5 -4
- package/dist/components/Progress/index.cjs.js +1 -1
- package/dist/components/Progress/index.d.ts +1 -1
- package/dist/components/Progress/index.d.ts.map +1 -1
- package/dist/components/Progress/index.es.js +27 -22
- package/dist/components/Skeleton/index.cjs.js +1 -1
- package/dist/components/Skeleton/index.d.ts.map +1 -1
- package/dist/components/Skeleton/index.es.js +8 -8
- package/dist/components/Spacer/index.cjs.js +1 -1
- package/dist/components/Spacer/index.d.ts.map +1 -1
- package/dist/components/Spacer/index.es.js +5 -5
- package/dist/components/Spinner/index.cjs.js +1 -1
- package/dist/components/Spinner/index.d.ts +3 -2
- package/dist/components/Spinner/index.d.ts.map +1 -1
- package/dist/components/Spinner/index.es.js +17 -16
- package/dist/components/Stack/index.cjs.js +1 -1
- package/dist/components/Stack/index.d.ts.map +1 -1
- package/dist/components/Stack/index.es.js +30 -28
- package/dist/components/Switch/index.cjs.js +1 -1
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.es.js +17 -13
- package/dist/components/Table/index.cjs.js +1 -1
- package/dist/components/Table/index.d.ts +12 -6
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.es.js +143 -87
- package/dist/components/Tabs/index.cjs.js +1 -1
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tabs/index.es.js +58 -48
- package/dist/components/Toggle/index.cjs.js +1 -0
- package/dist/components/Toggle/index.d.ts +48 -0
- package/dist/components/Toggle/index.d.ts.map +1 -0
- package/dist/components/Toggle/index.es.js +115 -0
- package/dist/components/Tooltip/index.cjs.js +1 -1
- package/dist/components/Tooltip/index.d.ts +16 -9
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.es.js +191 -114
- package/dist/components/Typography/index.cjs.js +1 -1
- package/dist/components/Typography/index.d.ts +2 -2
- package/dist/components/Typography/index.d.ts.map +1 -1
- package/dist/components/Typography/index.es.js +19 -17
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.es.js +48 -41
- package/dist/helpers/anchorPointer.cjs.js +1 -0
- package/dist/helpers/anchorPointer.d.ts +8 -0
- package/dist/helpers/anchorPointer.d.ts.map +1 -0
- package/dist/helpers/anchorPointer.es.js +11 -0
- package/dist/helpers/cn.cjs.js +1 -1
- package/dist/helpers/cn.es.js +2 -3
- package/dist/helpers/copy.cjs.js +1 -1
- package/dist/helpers/copy.es.js +4 -5
- package/dist/helpers/createPolymorphicComponent.cjs.js +1 -0
- package/dist/helpers/createPolymorphicComponent.d.ts +7 -0
- package/dist/helpers/createPolymorphicComponent.d.ts.map +1 -0
- package/dist/helpers/createPolymorphicComponent.es.js +15 -0
- package/dist/helpers/index.cjs.js +1 -1
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.es.js +30 -25
- package/dist/helpers/isEmpty.cjs.js +1 -1
- package/dist/helpers/isEmpty.es.js +0 -1
- package/dist/helpers/isServer.cjs.js +1 -1
- package/dist/helpers/isServer.es.js +0 -1
- package/dist/helpers/randomID.cjs.js +1 -1
- package/dist/helpers/randomID.es.js +0 -1
- package/dist/helpers/replaceNonDigits.cjs.js +1 -1
- package/dist/helpers/replaceNonDigits.es.js +4 -5
- package/dist/helpers/replacePersianNumbers.cjs.js +1 -1
- package/dist/helpers/replacePersianNumbers.es.js +0 -1
- package/dist/helpers/scrollIntoView.cjs.js +1 -1
- package/dist/helpers/scrollIntoView.es.js +4 -5
- package/dist/helpers/twoDigitNumber.cjs.js +1 -1
- package/dist/helpers/twoDigitNumber.es.js +0 -1
- package/dist/helpers/wait.cjs.js +1 -1
- package/dist/helpers/wait.es.js +5 -6
- package/dist/hooks/index.cjs.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.es.js +6 -4
- package/dist/hooks/usePreventableClose.cjs.js +1 -0
- package/dist/hooks/usePreventableClose.d.ts +8 -0
- package/dist/hooks/usePreventableClose.d.ts.map +1 -0
- package/dist/hooks/usePreventableClose.es.js +21 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.cjs.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.es.js +2 -3
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.es.js +7 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.cjs.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.es.js +0 -1
- package/dist/node_modules/@tanstack/hotkeys/dist/constants.cjs.js +1 -1
- package/dist/node_modules/@tanstack/hotkeys/dist/constants.es.js +0 -1
- package/dist/node_modules/@tanstack/hotkeys/dist/format.cjs.js +1 -1
- package/dist/node_modules/@tanstack/hotkeys/dist/format.es.js +4 -5
- package/dist/node_modules/@tanstack/hotkeys/dist/hotkey-manager.cjs.js +1 -1
- package/dist/node_modules/@tanstack/hotkeys/dist/hotkey-manager.es.js +11 -12
- package/dist/node_modules/@tanstack/hotkeys/dist/manager.utils.cjs.js +1 -1
- package/dist/node_modules/@tanstack/hotkeys/dist/manager.utils.es.js +0 -1
- package/dist/node_modules/@tanstack/hotkeys/dist/match.cjs.js +1 -1
- package/dist/node_modules/@tanstack/hotkeys/dist/match.es.js +2 -3
- package/dist/node_modules/@tanstack/hotkeys/dist/parse.cjs.js +1 -1
- package/dist/node_modules/@tanstack/hotkeys/dist/parse.es.js +45 -42
- package/dist/node_modules/@tanstack/react-hotkeys/dist/HotkeysProvider.cjs.js +1 -1
- package/dist/node_modules/@tanstack/react-hotkeys/dist/HotkeysProvider.es.js +0 -1
- package/dist/node_modules/@tanstack/react-hotkeys/dist/useHotkey.cjs.js +1 -1
- package/dist/node_modules/@tanstack/react-hotkeys/dist/useHotkey.es.js +3 -4
- package/dist/node_modules/@tanstack/react-hotkeys/dist/utils.cjs.js +1 -1
- package/dist/node_modules/@tanstack/react-hotkeys/dist/utils.es.js +0 -1
- package/dist/node_modules/@tanstack/store/dist/esm/alien.cjs.js +1 -1
- package/dist/node_modules/@tanstack/store/dist/esm/alien.es.js +22 -23
- package/dist/node_modules/@tanstack/store/dist/esm/atom.cjs.js +1 -1
- package/dist/node_modules/@tanstack/store/dist/esm/atom.es.js +0 -1
- package/dist/node_modules/@tanstack/store/dist/esm/store.cjs.js +1 -1
- package/dist/node_modules/@tanstack/store/dist/esm/store.es.js +2 -3
- package/dist/node_modules/iconsax-react/dist/esm/ArrowDown2.cjs.js +1 -1
- package/dist/node_modules/iconsax-react/dist/esm/ArrowDown2.es.js +0 -1
- package/dist/node_modules/iconsax-react/dist/esm/_rollupPluginBabelHelpers-3bc641ae.cjs.js +1 -1
- package/dist/node_modules/iconsax-react/dist/esm/_rollupPluginBabelHelpers-3bc641ae.es.js +12 -13
- package/dist/node_modules/object-assign/index.cjs.js +1 -1
- package/dist/node_modules/object-assign/index.es.js +7 -8
- package/dist/node_modules/prop-types/checkPropTypes.cjs.js +1 -1
- package/dist/node_modules/prop-types/checkPropTypes.es.js +12 -13
- package/dist/node_modules/prop-types/factoryWithThrowingShims.cjs.js +1 -1
- package/dist/node_modules/prop-types/factoryWithThrowingShims.es.js +6 -7
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.cjs.js +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.es.js +1 -2
- package/dist/node_modules/prop-types/index.cjs.js +1 -1
- package/dist/node_modules/prop-types/index.es.js +3 -4
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.cjs.js +1 -1
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.es.js +0 -1
- package/dist/node_modules/prop-types/lib/has.cjs.js +1 -1
- package/dist/node_modules/prop-types/lib/has.es.js +2 -3
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.cjs.js +2 -2
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.es.js +0 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.cjs.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.es.js +0 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.cjs.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.es.js +3 -4
- package/dist/node_modules/react-animate-height/dist/esm/index.cjs.js +1 -1
- package/dist/node_modules/react-animate-height/dist/esm/index.es.js +0 -1
- package/dist/node_modules/react-transition-group/esm/Transition.cjs.js +1 -1
- package/dist/node_modules/react-transition-group/esm/Transition.es.js +0 -1
- package/dist/node_modules/react-transition-group/esm/TransitionGroupContext.cjs.js +1 -1
- package/dist/node_modules/react-transition-group/esm/TransitionGroupContext.es.js +2 -3
- package/dist/node_modules/react-transition-group/esm/config.cjs.js +1 -1
- package/dist/node_modules/react-transition-group/esm/config.es.js +2 -3
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.cjs.js +1 -1
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.es.js +2 -3
- package/dist/node_modules/react-transition-group/esm/utils/reflow.cjs.js +1 -1
- package/dist/node_modules/react-transition-group/esm/utils/reflow.es.js +3 -4
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.js +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.es.js +0 -1
- package/dist/providers/ThemeProvider.d.ts +33 -1
- package/dist/providers/ThemeProvider.d.ts.map +1 -1
- package/dist/providers/index.cjs.js +1 -1
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/index.es.js +3 -2
- package/dist/stores/portalElement.cjs.js +1 -1
- package/dist/stores/portalElement.d.ts.map +1 -1
- package/dist/stores/portalElement.es.js +13 -10
- package/dist/style.css +1 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +7 -3
- package/dist/reaxify.css +0 -1
|
@@ -1,129 +1,206 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import N from "
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
color:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
import { jsx as k } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as I, useMemo as R, useCallback as N, useEffect as W, createContext as J, useContext as K } from "react";
|
|
4
|
+
import { twMerge as $ } from "../../node_modules/tailwind-merge/dist/bundle-mjs.es.js";
|
|
5
|
+
import Q from "../Portal/index.es.js";
|
|
6
|
+
import A from "../../hooks/useClasses.es.js";
|
|
7
|
+
import { getAnchorPointer as U } from "../../helpers/anchorPointer.es.js";
|
|
8
|
+
import V from "../../node_modules/react-transition-group/esm/Transition.es.js";
|
|
9
|
+
const j = J({
|
|
10
|
+
placement: "top",
|
|
11
|
+
color: "dark",
|
|
12
|
+
transitionState: "unmounted"
|
|
13
|
+
});
|
|
14
|
+
function B() {
|
|
15
|
+
return K(j);
|
|
16
|
+
}
|
|
17
|
+
function S({
|
|
18
|
+
open: l = !1,
|
|
19
|
+
anchorEl: c = null,
|
|
20
|
+
anchorPointer: r = !1,
|
|
21
|
+
placement: t = "top",
|
|
22
|
+
color: p = "dark",
|
|
23
|
+
duration: x = 300,
|
|
24
|
+
onEnter: w,
|
|
25
|
+
onEntering: n,
|
|
26
|
+
onEntered: g,
|
|
27
|
+
onExit: O,
|
|
28
|
+
onExiting: X,
|
|
29
|
+
onExited: Y,
|
|
30
|
+
className: q,
|
|
31
|
+
children: D
|
|
17
32
|
}) {
|
|
18
|
-
const
|
|
19
|
-
var e;
|
|
20
|
-
if (!a) return "border-transparent";
|
|
21
|
-
const t = {
|
|
22
|
-
primary: "bg-primary text-white",
|
|
23
|
-
secondary: "bg-secondary text-white",
|
|
24
|
-
success: "bg-success text-white",
|
|
25
|
-
info: "bg-info text-white",
|
|
26
|
-
warning: "bg-warning text-white",
|
|
27
|
-
danger: "bg-danger text-white",
|
|
28
|
-
dark: "bg-dark text-white",
|
|
29
|
-
light: "bg-light text-dark"
|
|
30
|
-
};
|
|
31
|
-
return [t == null ? void 0 : t[a], (e = n == null ? void 0 : n.color) == null ? void 0 : e[a]];
|
|
32
|
-
}, [a, n == null ? void 0 : n.color]), z = p(() => {
|
|
33
|
-
var o;
|
|
34
|
-
return ["size-0 min-w-(--width) min-h-(--height) top-(--top) right-(--right) bottom-(--bottom) left-(--left) justify-end items-center p-1.5", {
|
|
35
|
-
top: "-translate-y-full flex-col origin-bottom",
|
|
36
|
-
end: "translate-x-[calc(var(--ratio)*100%)] flex-row-reverse origin-left rtl:origin-right",
|
|
37
|
-
bottom: "translate-y-full flex-col-reverse origin-top",
|
|
38
|
-
start: "translate-x-[calc(var(--ratio)*-100%)] flex-row origin-right rtl:origin-left"
|
|
39
|
-
}[i], (o = n == null ? void 0 : n.placement) == null ? void 0 : o[i]];
|
|
40
|
-
}, [i, n == null ? void 0 : n.placement]), L = {
|
|
33
|
+
const s = A((e) => e.tooltip), f = I(null), b = 0, y = 16, F = {
|
|
41
34
|
entering: "scale-100 opacity-100",
|
|
42
35
|
entered: "scale-100 opacity-100",
|
|
43
36
|
exiting: "scale-75 opacity-0",
|
|
44
37
|
exited: "scale-75 opacity-0",
|
|
45
38
|
unmounted: ""
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
var e, o;
|
|
69
|
-
(o = (e = r.props).onBlur) == null || o.call(e, t), l(!1);
|
|
39
|
+
}, G = R(() => {
|
|
40
|
+
var d;
|
|
41
|
+
return [t === "top" || t === "bottom" ? "flex-col" : "flex-row", {
|
|
42
|
+
top: "flex-col origin-bottom",
|
|
43
|
+
bottom: "flex-col-reverse origin-top",
|
|
44
|
+
start: "flex-row origin-right rtl:origin-left",
|
|
45
|
+
end: "flex-row-reverse origin-left rtl:origin-right"
|
|
46
|
+
}[t], (d = s == null ? void 0 : s.placement) == null ? void 0 : d[t]];
|
|
47
|
+
}, [t, s == null ? void 0 : s.placement]), E = N((e) => {
|
|
48
|
+
var a, d, i;
|
|
49
|
+
(a = f.current) == null || a.style.setProperty("--left", `${e.left}px`), (d = f.current) == null || d.style.setProperty("--right", `${e.right}px`), (i = f.current) == null || i.style.setProperty("--top", `${e.top}px`);
|
|
50
|
+
}, []), v = N(() => {
|
|
51
|
+
if (!l || !c || !f.current) return;
|
|
52
|
+
const e = f.current, a = window.innerWidth, d = window.innerHeight, i = e.offsetWidth, M = e.offsetHeight;
|
|
53
|
+
let z, P, L, H, C, T;
|
|
54
|
+
if (r) {
|
|
55
|
+
const o = U(c);
|
|
56
|
+
if (!o) return;
|
|
57
|
+
z = o.x, P = o.x, L = o.y, H = o.y, C = o.x, T = o.y;
|
|
58
|
+
} else {
|
|
59
|
+
const o = c.getBoundingClientRect();
|
|
60
|
+
z = o.left, P = o.right, L = o.top, H = o.bottom, C = o.left + o.width / 2, T = o.top + o.height / 2;
|
|
70
61
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
62
|
+
let m, h, u;
|
|
63
|
+
switch (t) {
|
|
64
|
+
case "top":
|
|
65
|
+
m = C - i / 2, h = a - C - i / 2, u = L - M - b;
|
|
66
|
+
break;
|
|
67
|
+
case "bottom":
|
|
68
|
+
m = C - i / 2, h = a - C - i / 2, u = H + b;
|
|
69
|
+
break;
|
|
70
|
+
case "start":
|
|
71
|
+
m = z - i - b, h = a - P - b - i, u = T - M / 2;
|
|
72
|
+
break;
|
|
73
|
+
case "end":
|
|
74
|
+
m = P + b, h = a - z + b, u = T - M / 2;
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
m = Math.min(Math.max(m, y), a - i - y), h = Math.min(Math.max(h, y), a - i - y), u = Math.min(Math.max(u, y), d - M - y), E({ left: m, right: h, top: u });
|
|
78
|
+
}, [l, c, r, t, E]);
|
|
79
|
+
return W(() => {
|
|
80
|
+
v();
|
|
81
|
+
}, [v, D]), W(() => {
|
|
82
|
+
const e = () => v();
|
|
83
|
+
return window.addEventListener("scroll", e), window.addEventListener("resize", e), () => {
|
|
84
|
+
window.removeEventListener("scroll", e), window.removeEventListener("resize", e);
|
|
85
|
+
};
|
|
86
|
+
}, [v]), /* @__PURE__ */ k(Q, { children: /* @__PURE__ */ k(
|
|
87
|
+
V,
|
|
88
|
+
{
|
|
89
|
+
nodeRef: f,
|
|
90
|
+
in: l,
|
|
91
|
+
timeout: x,
|
|
92
|
+
unmountOnExit: !0,
|
|
93
|
+
onEnter: w,
|
|
94
|
+
onEntering: n,
|
|
95
|
+
onEntered: g,
|
|
96
|
+
onExit: O,
|
|
97
|
+
onExiting: X,
|
|
98
|
+
onExited: Y,
|
|
99
|
+
children: (e) => /* @__PURE__ */ k(
|
|
100
|
+
j.Provider,
|
|
101
|
+
{
|
|
102
|
+
value: { placement: t, color: p, transitionState: e },
|
|
103
|
+
children: /* @__PURE__ */ k(
|
|
104
|
+
"div",
|
|
101
105
|
{
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
ref: f,
|
|
107
|
+
"data-name": "tooltip",
|
|
108
|
+
"data-open": l,
|
|
109
|
+
style: { transitionDuration: `${x}ms` },
|
|
110
|
+
className: $(
|
|
111
|
+
"flex items-center justify-center fixed z-1 pointer-events-none top-(--top) left-(--left) right-auto origin-top-left rtl:left-auto rtl:right-(--right) rtl:origin-top-right transition-[scale,opacity]",
|
|
112
|
+
s == null ? void 0 : s.base,
|
|
113
|
+
G,
|
|
114
|
+
F[e],
|
|
115
|
+
q
|
|
107
116
|
),
|
|
108
|
-
|
|
109
|
-
children: b
|
|
110
|
-
}
|
|
111
|
-
),
|
|
112
|
-
/* @__PURE__ */ c(
|
|
113
|
-
"span",
|
|
114
|
-
{
|
|
115
|
-
className: x(
|
|
116
|
-
"block size-3 min-w-3 min-h-3 bg-dark rotate-45",
|
|
117
|
-
M,
|
|
118
|
-
d
|
|
119
|
-
)
|
|
117
|
+
children: D
|
|
120
118
|
}
|
|
121
119
|
)
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
}
|
|
123
|
+
) });
|
|
124
|
+
}
|
|
125
|
+
function Z({
|
|
126
|
+
className: l,
|
|
127
|
+
children: c,
|
|
128
|
+
...r
|
|
129
|
+
}) {
|
|
130
|
+
const t = A((w) => {
|
|
131
|
+
var n;
|
|
132
|
+
return (n = w.tooltip) == null ? void 0 : n.content;
|
|
133
|
+
}), { color: p } = B(), x = R(() => {
|
|
134
|
+
var n;
|
|
135
|
+
return [{
|
|
136
|
+
primary: "bg-primary text-white",
|
|
137
|
+
secondary: "bg-secondary text-white",
|
|
138
|
+
success: "bg-success text-white",
|
|
139
|
+
info: "bg-info text-white",
|
|
140
|
+
warning: "bg-warning text-white",
|
|
141
|
+
danger: "bg-danger text-white",
|
|
142
|
+
dark: "bg-dark text-white",
|
|
143
|
+
light: "bg-light text-dark"
|
|
144
|
+
}[p], (n = t == null ? void 0 : t.color) == null ? void 0 : n[p]];
|
|
145
|
+
}, [p, t == null ? void 0 : t.color]);
|
|
146
|
+
return /* @__PURE__ */ k(
|
|
147
|
+
"span",
|
|
148
|
+
{
|
|
149
|
+
role: "tooltip",
|
|
150
|
+
"data-name": "tooltip-content",
|
|
151
|
+
className: $(
|
|
152
|
+
"relative block size-fit min-w-fit min-h-fit text-sm rounded px-2 py-px whitespace-nowrap z-1",
|
|
153
|
+
t == null ? void 0 : t.base,
|
|
154
|
+
x,
|
|
155
|
+
l
|
|
156
|
+
),
|
|
157
|
+
...r,
|
|
158
|
+
children: c
|
|
159
|
+
}
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
function _({
|
|
163
|
+
className: l,
|
|
164
|
+
...c
|
|
165
|
+
}) {
|
|
166
|
+
const r = A((n) => {
|
|
167
|
+
var g;
|
|
168
|
+
return (g = n.tooltip) == null ? void 0 : g.arrow;
|
|
169
|
+
}), { color: t, placement: p } = B(), x = R(() => ({
|
|
170
|
+
top: "-translate-y-2/3",
|
|
171
|
+
bottom: "translate-y-2/3",
|
|
172
|
+
start: "-translate-x-2/3 rtl:translate-x-2/3",
|
|
173
|
+
end: "translate-x-2/3 rtl:-translate-x-2/3"
|
|
174
|
+
})[p], [p]), w = R(() => {
|
|
175
|
+
var g;
|
|
176
|
+
return [{
|
|
177
|
+
primary: "bg-primary",
|
|
178
|
+
secondary: "bg-secondary",
|
|
179
|
+
success: "bg-success",
|
|
180
|
+
info: "bg-info",
|
|
181
|
+
warning: "bg-warning",
|
|
182
|
+
danger: "bg-danger",
|
|
183
|
+
dark: "bg-dark",
|
|
184
|
+
light: "bg-light"
|
|
185
|
+
}[t], (g = r == null ? void 0 : r.color) == null ? void 0 : g[t]];
|
|
186
|
+
}, [t, r == null ? void 0 : r.color]);
|
|
187
|
+
return /* @__PURE__ */ k(
|
|
188
|
+
"span",
|
|
189
|
+
{
|
|
190
|
+
"data-name": "tooltip-arrow",
|
|
191
|
+
className: $(
|
|
192
|
+
"block size-3 min-w-3 min-h-3 rotate-45 shrink-0",
|
|
193
|
+
r == null ? void 0 : r.base,
|
|
194
|
+
x,
|
|
195
|
+
w,
|
|
196
|
+
l
|
|
197
|
+
),
|
|
198
|
+
...c
|
|
199
|
+
}
|
|
200
|
+
);
|
|
126
201
|
}
|
|
202
|
+
S.Content = Z;
|
|
203
|
+
S.Arrow = _;
|
|
127
204
|
export {
|
|
128
|
-
|
|
205
|
+
S as default
|
|
129
206
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";const m=require("react/jsx-runtime"),
|
|
1
|
+
"use client";"use strict";const m=require("react/jsx-runtime"),r=require("react"),u=require("../../node_modules/tailwind-merge/dist/bundle-mjs.cjs.js"),x=require("../../hooks/useClasses.cjs.js"),g=require("../../helpers/createPolymorphicComponent.cjs.js");function p({as:o,variant:t="body-1",className:d,...a}){const e=x(n=>n.typography),s=r.useMemo(()=>{const n={"heading-1":"h1","heading-2":"h2","heading-3":"h3","heading-4":"h4","heading-5":"h5","heading-6":"h6","body-1":"p","body-2":"p","body-3":"p"};return g.asComponent(o,n[t]||"p")},[o,t]),h=r.useMemo(()=>{var i;return[{"heading-1":"text-5xl font-semibold","heading-2":"text-4xl font-semibold","heading-3":"text-3xl font-semibold","heading-4":"text-2xl font-semibold","heading-5":"text-xl font-medium","heading-6":"text-lg font-medium","body-1":"text-base font-normal","body-2":"text-sm font-normal","body-3":"text-xs font-normal"}[t],(i=e==null?void 0:e.variant)==null?void 0:i[t]]},[t,e==null?void 0:e.variant]);return m.jsx(s,{"data-name":"typography",className:u.twMerge(e==null?void 0:e.base,h,d),...a})}module.exports=p;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ComponentPropsWithAs, TypographyVariant } from '../../types';
|
|
2
|
-
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
3
|
type TypographyProps = {
|
|
4
4
|
variant?: TypographyVariant;
|
|
5
5
|
};
|
|
6
|
-
export default function Typography<E extends
|
|
6
|
+
export default function Typography<E extends ElementType = "p">({ as, variant, className, ...props }: ComponentPropsWithAs<E, TypographyProps>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,WAAW,EAAW,MAAM,OAAO,CAAC;AAG7C,KAAK,eAAe,GAAG;IACrB,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,CAAC,SAAS,WAAW,GAAG,GAAG,EAAE,EAC9D,EAAE,EACF,OAAkB,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,EAAE,eAAe,CAAC,2CAqC1C"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo as d } from "react";
|
|
4
|
+
import { twMerge as g } from "../../node_modules/tailwind-merge/dist/bundle-mjs.es.js";
|
|
5
|
+
import x from "../../hooks/useClasses.es.js";
|
|
6
|
+
import { asComponent as f } from "../../helpers/createPolymorphicComponent.es.js";
|
|
7
|
+
function c({
|
|
8
|
+
as: e,
|
|
8
9
|
variant: o = "body-1",
|
|
9
|
-
className:
|
|
10
|
-
...
|
|
10
|
+
className: a,
|
|
11
|
+
...i
|
|
11
12
|
}) {
|
|
12
|
-
const t =
|
|
13
|
+
const t = x((n) => n.typography), r = d(() => f(e, {
|
|
13
14
|
"heading-1": "h1",
|
|
14
15
|
"heading-2": "h2",
|
|
15
16
|
"heading-3": "h3",
|
|
@@ -19,8 +20,8 @@ function y({
|
|
|
19
20
|
"body-1": "p",
|
|
20
21
|
"body-2": "p",
|
|
21
22
|
"body-3": "p"
|
|
22
|
-
}[o] || "p", [
|
|
23
|
-
var
|
|
23
|
+
}[o] || "p"), [e, o]), h = d(() => {
|
|
24
|
+
var m;
|
|
24
25
|
return [{
|
|
25
26
|
"heading-1": "text-5xl font-semibold",
|
|
26
27
|
"heading-2": "text-4xl font-semibold",
|
|
@@ -31,16 +32,17 @@ function y({
|
|
|
31
32
|
"body-1": "text-base font-normal",
|
|
32
33
|
"body-2": "text-sm font-normal",
|
|
33
34
|
"body-3": "text-xs font-normal"
|
|
34
|
-
}[o], (
|
|
35
|
+
}[o], (m = t == null ? void 0 : t.variant) == null ? void 0 : m[o]];
|
|
35
36
|
}, [o, t == null ? void 0 : t.variant]);
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
-
|
|
37
|
+
return /* @__PURE__ */ p(
|
|
38
|
+
r,
|
|
38
39
|
{
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
"data-name": "typography",
|
|
41
|
+
className: g(t == null ? void 0 : t.base, h, a),
|
|
42
|
+
...i
|
|
41
43
|
}
|
|
42
44
|
);
|
|
43
45
|
}
|
|
44
46
|
export {
|
|
45
|
-
|
|
47
|
+
c as default
|
|
46
48
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../style.css');;/* empty css */const r=require("./Accordion/index.cjs.js"),i=require("./Alert/index.cjs.js"),n=require("./Avatar/index.cjs.js"),t=require("./Badge/index.cjs.js"),o=require("./Button/index.cjs.js"),u=require("./ButtonGroup/index.cjs.js"),d=require("./Card/index.cjs.js"),s=require("./Collapse/index.cjs.js"),c=require("./Divider/index.cjs.js"),q=require("./Drawer/index.cjs.js"),x=require("./Fill/index.cjs.js"),$=require("./InputGroup/index.cjs.js"),l=require("./List/index.cjs.js"),a=require("./Menu/index.cjs.js"),g=require("./Modal/index.cjs.js"),p=require("./Portal/index.cjs.js"),T=require("./Progress/index.cjs.js"),S=require("./Skeleton/index.cjs.js"),f=require("./Spacer/index.cjs.js"),b=require("./Spinner/index.cjs.js"),y=require("./Stack/index.cjs.js"),C=require("./Switch/index.cjs.js"),h=require("./Table/index.cjs.js"),k=require("./Tabs/index.cjs.js"),e=require("./Toggle/index.cjs.js"),v=require("./Tooltip/index.cjs.js"),A=require("./Typography/index.cjs.js");exports.Accordion=r;exports.Alert=i;exports.Avatar=n;exports.Badge=t;exports.Button=o;exports.ButtonGroup=u;exports.Card=d;exports.Collapse=s;exports.Divider=c;exports.Drawer=q.default;exports.Fill=x;exports.InputGroup=$;exports.List=l;exports.Menu=a;exports.Modal=g.default;exports.Portal=p;exports.Progress=T;exports.Skeleton=S;exports.Spacer=f;exports.Spinner=b;exports.Stack=y;exports.Switch=C;exports.Table=h;exports.Tabs=k.default;exports.Toggle=e.default;exports.useToggleContext=e.useToggleContext;exports.Tooltip=v;exports.Typography=A;
|
|
@@ -5,10 +5,12 @@ export { default as Badge } from './Badge';
|
|
|
5
5
|
export { default as Button } from './Button';
|
|
6
6
|
export { default as ButtonGroup } from './ButtonGroup';
|
|
7
7
|
export { default as Card } from './Card';
|
|
8
|
+
export { default as Collapse } from './Collapse';
|
|
8
9
|
export { default as Divider } from './Divider';
|
|
9
10
|
export { default as Drawer } from './Drawer';
|
|
10
11
|
export { default as Fill } from './Fill';
|
|
11
12
|
export { default as InputGroup } from './InputGroup';
|
|
13
|
+
export { default as List } from './List';
|
|
12
14
|
export { default as Menu } from './Menu';
|
|
13
15
|
export { default as Modal } from './Modal';
|
|
14
16
|
export { default as Portal } from './Portal';
|
|
@@ -20,6 +22,8 @@ export { default as Stack } from './Stack';
|
|
|
20
22
|
export { default as Switch } from './Switch';
|
|
21
23
|
export { default as Table } from './Table';
|
|
22
24
|
export { default as Tabs } from './Tabs';
|
|
25
|
+
export { default as Toggle, useToggleContext } from './Toggle';
|
|
26
|
+
export type { ToggleRef } from './Toggle';
|
|
23
27
|
export { default as Tooltip } from './Tooltip';
|
|
24
28
|
export { default as Typography } from './Typography';
|
|
25
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC/D,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,52 +1,59 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
2
|
+
import '../style.css';/* empty css */
|
|
3
|
+
import { default as r } from "./Accordion/index.es.js";
|
|
3
4
|
import { default as f } from "./Alert/index.es.js";
|
|
4
5
|
import { default as p } from "./Avatar/index.es.js";
|
|
5
|
-
import { default as
|
|
6
|
+
import { default as s } from "./Badge/index.es.js";
|
|
6
7
|
import { default as m } from "./Button/index.es.js";
|
|
7
8
|
import { default as i } from "./ButtonGroup/index.es.js";
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as T } from "./
|
|
10
|
-
import { default as A } from "./
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as I } from "./
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as O } from "./
|
|
23
|
-
import { default as R } from "./
|
|
24
|
-
import { default as V } from "./
|
|
25
|
-
import { default as X } from "./
|
|
26
|
-
|
|
9
|
+
import { default as g } from "./Card/index.es.js";
|
|
10
|
+
import { default as T } from "./Collapse/index.es.js";
|
|
11
|
+
import { default as A } from "./Divider/index.es.js";
|
|
12
|
+
import { default as C } from "./Drawer/index.es.js";
|
|
13
|
+
import { default as h } from "./Fill/index.es.js";
|
|
14
|
+
import { default as v } from "./InputGroup/index.es.js";
|
|
15
|
+
import { default as y } from "./List/index.es.js";
|
|
16
|
+
import { default as G } from "./Menu/index.es.js";
|
|
17
|
+
import { default as P } from "./Modal/index.es.js";
|
|
18
|
+
import { default as I } from "./Portal/index.es.js";
|
|
19
|
+
import { default as j } from "./Progress/index.es.js";
|
|
20
|
+
import { default as z } from "./Skeleton/index.es.js";
|
|
21
|
+
import { default as H } from "./Spacer/index.es.js";
|
|
22
|
+
import { default as K } from "./Spinner/index.es.js";
|
|
23
|
+
import { default as O } from "./Stack/index.es.js";
|
|
24
|
+
import { default as R } from "./Switch/index.es.js";
|
|
25
|
+
import { default as V } from "./Table/index.es.js";
|
|
26
|
+
import { default as X } from "./Tabs/index.es.js";
|
|
27
|
+
import { default as Z, useToggleContext as _ } from "./Toggle/index.es.js";
|
|
28
|
+
import { default as ee } from "./Tooltip/index.es.js";
|
|
29
|
+
import { default as te } from "./Typography/index.es.js";
|
|
27
30
|
export {
|
|
28
|
-
|
|
31
|
+
r as Accordion,
|
|
29
32
|
f as Alert,
|
|
30
33
|
p as Avatar,
|
|
31
|
-
|
|
34
|
+
s as Badge,
|
|
32
35
|
m as Button,
|
|
33
36
|
i as ButtonGroup,
|
|
34
|
-
|
|
35
|
-
T as
|
|
36
|
-
A as
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
I as
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
O as
|
|
49
|
-
R as
|
|
50
|
-
V as
|
|
51
|
-
X as
|
|
37
|
+
g as Card,
|
|
38
|
+
T as Collapse,
|
|
39
|
+
A as Divider,
|
|
40
|
+
C as Drawer,
|
|
41
|
+
h as Fill,
|
|
42
|
+
v as InputGroup,
|
|
43
|
+
y as List,
|
|
44
|
+
G as Menu,
|
|
45
|
+
P as Modal,
|
|
46
|
+
I as Portal,
|
|
47
|
+
j as Progress,
|
|
48
|
+
z as Skeleton,
|
|
49
|
+
H as Spacer,
|
|
50
|
+
K as Spinner,
|
|
51
|
+
O as Stack,
|
|
52
|
+
R as Switch,
|
|
53
|
+
V as Table,
|
|
54
|
+
X as Tabs,
|
|
55
|
+
Z as Toggle,
|
|
56
|
+
ee as Tooltip,
|
|
57
|
+
te as Typography,
|
|
58
|
+
_ as useToggleContext
|
|
52
59
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=new WeakMap;function r(e,n,o){t.set(e,{x:n,y:o})}function c(e){return t.get(e)}exports.getAnchorPointer=c;exports.setAnchorPointer=r;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type AnchorPointer = {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
};
|
|
5
|
+
export declare function setAnchorPointer(el: HTMLElement, x: number, y: number): void;
|
|
6
|
+
export declare function getAnchorPointer(el: HTMLElement): AnchorPointer | undefined;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=anchorPointer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchorPointer.d.ts","sourceRoot":"","sources":["../../src/helpers/anchorPointer.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAI9C,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,QAErE;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,WAAW,6BAE/C"}
|
package/dist/helpers/cn.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use
|
|
1
|
+
"use strict";function t(...n){if(n.length)return n.filter(Boolean).join(" ")}module.exports=t;
|
package/dist/helpers/cn.es.js
CHANGED
package/dist/helpers/copy.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use
|
|
1
|
+
"use strict";async function a(e){var t,r;return!((t=navigator==null?void 0:navigator.clipboard)!=null&&t.writeText)?Promise.reject(!1):await((r=navigator==null?void 0:navigator.clipboard)==null?void 0:r.writeText(e).then(()=>!0).catch(()=>!1))}module.exports=a;
|
package/dist/helpers/copy.es.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return !((t = navigator == null ? void 0 : navigator.clipboard) != null && t.writeText) ? Promise.reject(!1) : await ((e = navigator == null ? void 0 : navigator.clipboard) == null ? void 0 : e.writeText(r).then(() => !0).catch(() => !1));
|
|
1
|
+
async function o(e) {
|
|
2
|
+
var t, r;
|
|
3
|
+
return !((t = navigator == null ? void 0 : navigator.clipboard) != null && t.writeText) ? Promise.reject(!1) : await ((r = navigator == null ? void 0 : navigator.clipboard) == null ? void 0 : r.writeText(e).then(() => !0).catch(() => !1));
|
|
5
4
|
}
|
|
6
5
|
export {
|
|
7
|
-
|
|
6
|
+
o as default
|
|
8
7
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),m=require("react");function n(o,e){return o??e}function p(o){return m.forwardRef(function({as:t,...r},c){const i=n(t,o);return u.jsx(i,{ref:c,...r})})}exports.asComponent=n;exports.createPolymorphicComponent=p;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithAs } from '../types';
|
|
2
|
+
import { ElementType, ReactElement, Ref } from 'react';
|
|
3
|
+
export declare function asComponent(as: ElementType | undefined, defaultAs: ElementType): ElementType;
|
|
4
|
+
export declare function createPolymorphicComponent<D extends ElementType>(defaultAs: D): <E extends ElementType = D>(props: ComponentPropsWithAs<E> & {
|
|
5
|
+
ref?: Ref<unknown>;
|
|
6
|
+
}) => ReactElement | null;
|
|
7
|
+
//# sourceMappingURL=createPolymorphicComponent.d.ts.map
|