@n3wth/ui 0.7.0 → 0.9.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/atoms/AnimatedText/AnimatedText.js +65 -0
- package/dist/atoms/AnimatedText/AnimatedText.js.map +1 -0
- package/dist/atoms/Avatar/Avatar.js +55 -0
- package/dist/atoms/Avatar/Avatar.js.map +1 -0
- package/dist/atoms/Badge/Badge.js +57 -0
- package/dist/atoms/Badge/Badge.js.map +1 -0
- package/dist/atoms/Button/Button.js +92 -0
- package/dist/atoms/Button/Button.js.map +1 -0
- package/dist/atoms/Character/Character.js +155 -0
- package/dist/atoms/Character/Character.js.map +1 -0
- package/dist/atoms/CodeBlock/CodeBlock.js +75 -0
- package/dist/atoms/CodeBlock/CodeBlock.js.map +1 -0
- package/dist/atoms/HamburgerIcon/HamburgerIcon.js +50 -0
- package/dist/atoms/HamburgerIcon/HamburgerIcon.js.map +1 -0
- package/dist/atoms/Icon/Icon.js +199 -0
- package/dist/atoms/Icon/Icon.js.map +1 -0
- package/dist/atoms/Input/Input.js +80 -0
- package/dist/atoms/Input/Input.js.map +1 -0
- package/dist/atoms/Label/Label.js +32 -0
- package/dist/atoms/Label/Label.js.map +1 -0
- package/dist/atoms/NoiseOverlay/NoiseOverlay.js +32 -0
- package/dist/atoms/NoiseOverlay/NoiseOverlay.js.map +1 -0
- package/dist/atoms/Progress/Progress.js +63 -0
- package/dist/atoms/Progress/Progress.js.map +1 -0
- package/dist/atoms/ScrollIndicator/ScrollIndicator.js +51 -0
- package/dist/atoms/ScrollIndicator/ScrollIndicator.js.map +1 -0
- package/dist/atoms/Separator/Separator.js +28 -0
- package/dist/atoms/Separator/Separator.js.map +1 -0
- package/dist/atoms/Shape/Shape.js +110 -0
- package/dist/atoms/Shape/Shape.js.map +1 -0
- package/dist/atoms/Shape/patterns.js +66 -0
- package/dist/atoms/Shape/patterns.js.map +1 -0
- package/dist/atoms/Skeleton/Skeleton.js +77 -0
- package/dist/atoms/Skeleton/Skeleton.js.map +1 -0
- package/dist/atoms/SpeechBubble/SpeechBubble.js +98 -0
- package/dist/atoms/SpeechBubble/SpeechBubble.js.map +1 -0
- package/dist/atoms/Switch/Switch.js +78 -0
- package/dist/atoms/Switch/Switch.js.map +1 -0
- package/dist/atoms/Textarea/Textarea.js +40 -0
- package/dist/atoms/Textarea/Textarea.js.map +1 -0
- package/dist/atoms/Tooltip/Tooltip.js +153 -0
- package/dist/atoms/Tooltip/Tooltip.js.map +1 -0
- package/dist/hooks/useButtonPulse.js +43 -0
- package/dist/hooks/useButtonPulse.js.map +1 -0
- package/dist/hooks/useCountUp.js +52 -0
- package/dist/hooks/useCountUp.js.map +1 -0
- package/dist/hooks/useKeyboardShortcuts.js +37 -0
- package/dist/hooks/useKeyboardShortcuts.js.map +1 -0
- package/dist/hooks/useMediaQuery.js +59 -0
- package/dist/hooks/useMediaQuery.js.map +1 -0
- package/dist/hooks/usePageTransition.js +39 -0
- package/dist/hooks/usePageTransition.js.map +1 -0
- package/dist/hooks/useReducedMotion.js +57 -0
- package/dist/hooks/useReducedMotion.js.map +1 -0
- package/dist/hooks/useScrollReveal.js +61 -0
- package/dist/hooks/useScrollReveal.js.map +1 -0
- package/dist/hooks/useStaggerList.js +54 -0
- package/dist/hooks/useStaggerList.js.map +1 -0
- package/dist/hooks/useTextReveal.js +59 -0
- package/dist/hooks/useTextReveal.js.map +1 -0
- package/dist/hooks/useTheme.js +37 -0
- package/dist/hooks/useTheme.js.map +1 -0
- package/dist/hooks/useToast.js +84 -0
- package/dist/hooks/useToast.js.map +1 -0
- package/dist/index.js +147 -7925
- package/dist/index.js.map +1 -1
- package/dist/molecules/Accordion/Accordion.js +178 -0
- package/dist/molecules/Accordion/Accordion.js.map +1 -0
- package/dist/molecules/Card/Card.js +104 -0
- package/dist/molecules/Card/Card.js.map +1 -0
- package/dist/molecules/CommandBox/CommandBox.js +65 -0
- package/dist/molecules/CommandBox/CommandBox.js.map +1 -0
- package/dist/molecules/CompositeShape/CompositeShape.js +69 -0
- package/dist/molecules/CompositeShape/CompositeShape.js.map +1 -0
- package/dist/molecules/CompositeShape/presets.js +71 -0
- package/dist/molecules/CompositeShape/presets.js.map +1 -0
- package/dist/molecules/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/molecules/Dropdown/Dropdown.js +530 -0
- package/dist/molecules/Dropdown/Dropdown.js.map +1 -0
- package/dist/molecules/ErrorBoundary/ErrorBoundary.js +128 -0
- package/dist/molecules/ErrorBoundary/ErrorBoundary.js.map +1 -0
- package/dist/molecules/MobileDrawer/MobileDrawer.js +78 -0
- package/dist/molecules/MobileDrawer/MobileDrawer.js.map +1 -0
- package/dist/molecules/Modal/Modal.js +262 -0
- package/dist/molecules/Modal/Modal.js.map +1 -0
- package/dist/molecules/NavLink/NavLink.js +38 -0
- package/dist/molecules/NavLink/NavLink.js.map +1 -0
- package/dist/molecules/Tabs/Tabs.js +188 -0
- package/dist/molecules/Tabs/Tabs.js.map +1 -0
- package/dist/molecules/ThemeToggle/ThemeToggle.js +48 -0
- package/dist/molecules/ThemeToggle/ThemeToggle.js.map +1 -0
- package/dist/molecules/Toast/Toast.js +156 -0
- package/dist/molecules/Toast/Toast.js.map +1 -0
- package/dist/node_modules/clsx/dist/clsx.js +17 -0
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/IconoirContext.js +6 -0
- package/dist/node_modules/iconoir-react/dist/esm/IconoirContext.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/ArrowDown.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/ArrowDown.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/ArrowLeft.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/ArrowLeft.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/ArrowRight.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/ArrowRight.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/ArrowUp.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/ArrowUp.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/ArrowUpRight.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/ArrowUpRight.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Bell.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Bell.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Calendar.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Calendar.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Check.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Check.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/CheckCircle.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/CheckCircle.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Clock.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Clock.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Code.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Code.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Copy.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Copy.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Download.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Download.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/EditPencil.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/EditPencil.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Eye.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Eye.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/EyeClosed.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/EyeClosed.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Filter.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Filter.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Folder.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Folder.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Github.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Github.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/HalfMoon.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/HalfMoon.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Heart.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Heart.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Home.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Home.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/InfoCircle.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/InfoCircle.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Link.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Link.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/List.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/List.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Lock.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Lock.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/LockSlash.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/LockSlash.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Mail.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Mail.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Menu.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Menu.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Minus.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Minus.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/MoreHoriz.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/MoreHoriz.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/MoreVert.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/MoreVert.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/NavArrowDown.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/NavArrowDown.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/NavArrowLeft.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/NavArrowLeft.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/NavArrowRight.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/NavArrowRight.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/NavArrowUp.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/NavArrowUp.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/OpenInWindow.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/OpenInWindow.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Page.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Page.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Plus.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Plus.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/RefreshDouble.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/RefreshDouble.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Search.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Search.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Settings.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Settings.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/SortDown.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/SortDown.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Sparks.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Sparks.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Star.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Star.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/SunLight.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/SunLight.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Terminal.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Terminal.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Trash.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Trash.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Upload.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Upload.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/User.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/User.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/ViewGrid.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/ViewGrid.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/WarningTriangle.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/WarningTriangle.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Xmark.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/Xmark.js.map +1 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/XmarkCircle.js +17 -0
- package/dist/node_modules/iconoir-react/dist/esm/regular/XmarkCircle.js.map +1 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2996 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/organisms/Footer/Footer.js +108 -0
- package/dist/organisms/Footer/Footer.js.map +1 -0
- package/dist/organisms/Hero/Hero.d.ts.map +1 -1
- package/dist/organisms/Hero/Hero.js +101 -0
- package/dist/organisms/Hero/Hero.js.map +1 -0
- package/dist/organisms/Nav/Nav.js +177 -0
- package/dist/organisms/Nav/Nav.js.map +1 -0
- package/dist/organisms/Section/Section.js +57 -0
- package/dist/organisms/Section/Section.js.map +1 -0
- package/dist/theme.css +86 -0
- package/dist/tokens/colors.js +105 -0
- package/dist/tokens/colors.js.map +1 -0
- package/dist/tokens/effects.js +26 -0
- package/dist/tokens/effects.js.map +1 -0
- package/dist/tokens/motion.js +25 -0
- package/dist/tokens/motion.js.map +1 -0
- package/dist/tokens/spacing.js +31 -0
- package/dist/tokens/spacing.js.map +1 -0
- package/dist/tokens/typography.js +63 -0
- package/dist/tokens/typography.js.map +1 -0
- package/dist/utils/cn.js +9 -0
- package/dist/utils/cn.js.map +1 -0
- package/package.json +8 -5
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { jsx as R, jsxs as P } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as N, useState as j, useRef as I, useId as L, useCallback as w, useEffect as M, createContext as B, useContext as D } from "react";
|
|
3
|
+
import { cn as $ } from "../../utils/cn.js";
|
|
4
|
+
import { useReducedMotion as U } from "../../hooks/useReducedMotion.js";
|
|
5
|
+
const C = B(null);
|
|
6
|
+
function A() {
|
|
7
|
+
const t = D(C);
|
|
8
|
+
if (!t)
|
|
9
|
+
throw new Error("Tabs compound components must be used within a <Tabs> parent");
|
|
10
|
+
return t;
|
|
11
|
+
}
|
|
12
|
+
const z = N(
|
|
13
|
+
({ value: t, onChange: c, defaultValue: f, variant: l = "underline", children: n, className: e, ...o }, a) => {
|
|
14
|
+
const [p, m] = j(f ?? ""), d = I(/* @__PURE__ */ new Map()), x = L(), h = t !== void 0 ? t : p, i = w(
|
|
15
|
+
(u) => {
|
|
16
|
+
t === void 0 && m(u), c?.(u);
|
|
17
|
+
},
|
|
18
|
+
[t, c]
|
|
19
|
+
), r = w((u, g) => {
|
|
20
|
+
g ? d.current.set(u, g) : d.current.delete(u);
|
|
21
|
+
}, []), y = w(() => d.current, []);
|
|
22
|
+
return /* @__PURE__ */ R(C.Provider, { value: { activeValue: h, setActiveValue: i, variant: l, baseId: x, registerTab: r, getTabElements: y }, children: /* @__PURE__ */ R("div", { ref: a, className: $("flex flex-col", e), ...o, children: n }) });
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
z.displayName = "Tabs";
|
|
26
|
+
const H = N(
|
|
27
|
+
({ glass: t = !1, children: c, className: f, ...l }, n) => {
|
|
28
|
+
const { variant: e, activeValue: o, getTabElements: a } = A(), p = I(null), m = I(null), d = U(), x = w(
|
|
29
|
+
(r) => {
|
|
30
|
+
p.current = r, typeof n == "function" ? n(r) : n && (n.current = r);
|
|
31
|
+
},
|
|
32
|
+
[n]
|
|
33
|
+
);
|
|
34
|
+
M(() => {
|
|
35
|
+
const r = m.current, y = p.current;
|
|
36
|
+
if (!r || !y) return;
|
|
37
|
+
const g = a().get(o);
|
|
38
|
+
if (!g) {
|
|
39
|
+
r.style.opacity = "0";
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const s = y.getBoundingClientRect(), v = g.getBoundingClientRect(), b = v.left - s.left, k = v.width;
|
|
43
|
+
r.style.opacity = "1", r.style.transform = `translateX(${b}px)`, r.style.width = `${k}px`, e === "pill" && (r.style.height = `${v.height}px`);
|
|
44
|
+
}, [o, e, a]);
|
|
45
|
+
const h = e === "underline", i = e === "pill";
|
|
46
|
+
return /* @__PURE__ */ P(
|
|
47
|
+
"div",
|
|
48
|
+
{
|
|
49
|
+
ref: x,
|
|
50
|
+
role: "tablist",
|
|
51
|
+
className: $(
|
|
52
|
+
"relative flex items-center gap-1",
|
|
53
|
+
h && "border-b border-[var(--glass-border)]",
|
|
54
|
+
i && [
|
|
55
|
+
"p-1 rounded-full",
|
|
56
|
+
"bg-[var(--glass-bg)]",
|
|
57
|
+
"border border-[var(--glass-border)]"
|
|
58
|
+
],
|
|
59
|
+
t && "backdrop-blur-lg",
|
|
60
|
+
f
|
|
61
|
+
),
|
|
62
|
+
...l,
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ R(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
ref: m,
|
|
68
|
+
"aria-hidden": !0,
|
|
69
|
+
className: $(
|
|
70
|
+
"absolute left-0",
|
|
71
|
+
d ? "transition-none" : "transition-[transform,width,opacity] duration-200 ease-out",
|
|
72
|
+
h && [
|
|
73
|
+
"bottom-0 h-[2px]",
|
|
74
|
+
"bg-[var(--color-white)]"
|
|
75
|
+
],
|
|
76
|
+
i && [
|
|
77
|
+
"top-1 rounded-full",
|
|
78
|
+
"bg-[var(--color-white)]"
|
|
79
|
+
]
|
|
80
|
+
),
|
|
81
|
+
style: { opacity: 0, width: 0 }
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
c
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
H.displayName = "TabsList";
|
|
91
|
+
const K = N(
|
|
92
|
+
({ value: t, children: c, className: f, onKeyDown: l, ...n }, e) => {
|
|
93
|
+
const { activeValue: o, setActiveValue: a, variant: p, baseId: m, registerTab: d, getTabElements: x } = A(), h = I(null), i = o === t, r = w(
|
|
94
|
+
(s) => {
|
|
95
|
+
h.current = s, d(t, s), typeof e == "function" ? e(s) : e && (e.current = s);
|
|
96
|
+
},
|
|
97
|
+
[e, d, t]
|
|
98
|
+
), y = w(
|
|
99
|
+
(s) => {
|
|
100
|
+
if (l?.(s), s.defaultPrevented) return;
|
|
101
|
+
const v = x(), b = Array.from(v.keys()), k = b.indexOf(t);
|
|
102
|
+
let T;
|
|
103
|
+
switch (s.key) {
|
|
104
|
+
case "ArrowRight":
|
|
105
|
+
T = (k + 1) % b.length;
|
|
106
|
+
break;
|
|
107
|
+
case "ArrowLeft":
|
|
108
|
+
T = (k - 1 + b.length) % b.length;
|
|
109
|
+
break;
|
|
110
|
+
case "Home":
|
|
111
|
+
T = 0;
|
|
112
|
+
break;
|
|
113
|
+
case "End":
|
|
114
|
+
T = b.length - 1;
|
|
115
|
+
break;
|
|
116
|
+
default:
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
s.preventDefault();
|
|
120
|
+
const E = b[T], V = v.get(E);
|
|
121
|
+
V && (V.focus(), a(E));
|
|
122
|
+
},
|
|
123
|
+
[l, x, t, a]
|
|
124
|
+
), u = p === "underline", g = p === "pill";
|
|
125
|
+
return /* @__PURE__ */ R(
|
|
126
|
+
"button",
|
|
127
|
+
{
|
|
128
|
+
ref: r,
|
|
129
|
+
role: "tab",
|
|
130
|
+
type: "button",
|
|
131
|
+
id: `${m}-tab-${t}`,
|
|
132
|
+
"aria-selected": i,
|
|
133
|
+
"aria-controls": `${m}-panel-${t}`,
|
|
134
|
+
tabIndex: i ? 0 : -1,
|
|
135
|
+
onClick: () => a(t),
|
|
136
|
+
onKeyDown: y,
|
|
137
|
+
className: $(
|
|
138
|
+
"relative z-10",
|
|
139
|
+
"inline-flex items-center justify-center",
|
|
140
|
+
"text-sm font-medium",
|
|
141
|
+
"focus-ring",
|
|
142
|
+
"transition-colors duration-200 ease-out",
|
|
143
|
+
"cursor-pointer",
|
|
144
|
+
"whitespace-nowrap",
|
|
145
|
+
u && [
|
|
146
|
+
"px-3 py-2",
|
|
147
|
+
i ? "text-[var(--color-white)]" : "text-[var(--color-grey-400)] hover:text-[var(--color-white)]"
|
|
148
|
+
],
|
|
149
|
+
g && [
|
|
150
|
+
"px-3 py-1.5",
|
|
151
|
+
"rounded-full",
|
|
152
|
+
i ? "text-[var(--color-bg)]" : "text-[var(--color-grey-400)] hover:text-[var(--color-white)]"
|
|
153
|
+
],
|
|
154
|
+
f
|
|
155
|
+
),
|
|
156
|
+
...n,
|
|
157
|
+
children: c
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
);
|
|
162
|
+
K.displayName = "TabsTab";
|
|
163
|
+
const O = N(
|
|
164
|
+
({ value: t, children: c, className: f, ...l }, n) => {
|
|
165
|
+
const { activeValue: e, baseId: o } = A();
|
|
166
|
+
return e === t ? /* @__PURE__ */ R(
|
|
167
|
+
"div",
|
|
168
|
+
{
|
|
169
|
+
ref: n,
|
|
170
|
+
role: "tabpanel",
|
|
171
|
+
id: `${o}-panel-${t}`,
|
|
172
|
+
"aria-labelledby": `${o}-tab-${t}`,
|
|
173
|
+
tabIndex: 0,
|
|
174
|
+
className: $("mt-2 focus-ring", f),
|
|
175
|
+
...l,
|
|
176
|
+
children: c
|
|
177
|
+
}
|
|
178
|
+
) : null;
|
|
179
|
+
}
|
|
180
|
+
);
|
|
181
|
+
O.displayName = "TabsPanel";
|
|
182
|
+
export {
|
|
183
|
+
z as Tabs,
|
|
184
|
+
H as TabsList,
|
|
185
|
+
O as TabsPanel,
|
|
186
|
+
K as TabsTab
|
|
187
|
+
};
|
|
188
|
+
//# sourceMappingURL=Tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.js","sources":["../../../src/molecules/Tabs/Tabs.tsx"],"sourcesContent":["import {\n forwardRef,\n createContext,\n useContext,\n useState,\n useCallback,\n useRef,\n useEffect,\n useId,\n type HTMLAttributes,\n type ButtonHTMLAttributes,\n type ReactNode,\n type KeyboardEvent,\n} from 'react'\nimport { cn } from '../../utils/cn'\nimport { useReducedMotion } from '../../hooks/useReducedMotion'\n\ntype TabsVariant = 'underline' | 'pill'\n\ninterface TabsContextValue {\n activeValue: string\n setActiveValue: (value: string) => void\n variant: TabsVariant\n baseId: string\n registerTab: (value: string, element: HTMLButtonElement | null) => void\n getTabElements: () => Map<string, HTMLButtonElement>\n}\n\nconst TabsContext = createContext<TabsContextValue | null>(null)\n\nfunction useTabsContext() {\n const context = useContext(TabsContext)\n if (!context) {\n throw new Error('Tabs compound components must be used within a <Tabs> parent')\n }\n return context\n}\n\n// --- Tabs Root ---\n\nexport interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {\n /** The controlled active tab value */\n value?: string\n /** Callback when active tab changes */\n onChange?: (value: string) => void\n /** The default active tab value for uncontrolled mode */\n defaultValue?: string\n /** Visual variant */\n variant?: TabsVariant\n children: ReactNode\n}\n\nexport const Tabs = forwardRef<HTMLDivElement, TabsProps>(\n ({ value, onChange, defaultValue, variant = 'underline', children, className, ...props }, ref) => {\n const [internalValue, setInternalValue] = useState(defaultValue ?? '')\n const tabElementsRef = useRef<Map<string, HTMLButtonElement>>(new Map())\n const baseId = useId()\n\n const activeValue = value !== undefined ? value : internalValue\n\n const setActiveValue = useCallback(\n (newValue: string) => {\n if (value === undefined) {\n setInternalValue(newValue)\n }\n onChange?.(newValue)\n },\n [value, onChange]\n )\n\n const registerTab = useCallback((tabValue: string, element: HTMLButtonElement | null) => {\n if (element) {\n tabElementsRef.current.set(tabValue, element)\n } else {\n tabElementsRef.current.delete(tabValue)\n }\n }, [])\n\n const getTabElements = useCallback(() => tabElementsRef.current, [])\n\n return (\n <TabsContext.Provider value={{ activeValue, setActiveValue, variant, baseId, registerTab, getTabElements }}>\n <div ref={ref} className={cn('flex flex-col', className)} {...props}>\n {children}\n </div>\n </TabsContext.Provider>\n )\n }\n)\n\nTabs.displayName = 'Tabs'\n\n// --- TabsList ---\n\nexport interface TabsListProps extends HTMLAttributes<HTMLDivElement> {\n /** Enable glass morphism background */\n glass?: boolean\n children: ReactNode\n}\n\nexport const TabsList = forwardRef<HTMLDivElement, TabsListProps>(\n ({ glass = false, children, className, ...props }, ref) => {\n const { variant, activeValue, getTabElements } = useTabsContext()\n const listRef = useRef<HTMLDivElement>(null)\n const indicatorRef = useRef<HTMLDivElement>(null)\n const prefersReducedMotion = useReducedMotion()\n\n // Merge forwarded ref with internal ref\n const mergedRef = useCallback(\n (node: HTMLDivElement | null) => {\n (listRef as React.MutableRefObject<HTMLDivElement | null>).current = node\n if (typeof ref === 'function') ref(node)\n else if (ref) (ref as React.MutableRefObject<HTMLDivElement | null>).current = node\n },\n [ref]\n )\n\n // Animate indicator position\n useEffect(() => {\n const indicator = indicatorRef.current\n const list = listRef.current\n if (!indicator || !list) return\n\n const tabs = getTabElements()\n const activeTab = tabs.get(activeValue)\n if (!activeTab) {\n indicator.style.opacity = '0'\n return\n }\n\n const listRect = list.getBoundingClientRect()\n const tabRect = activeTab.getBoundingClientRect()\n\n const left = tabRect.left - listRect.left\n const width = tabRect.width\n\n indicator.style.opacity = '1'\n indicator.style.transform = `translateX(${left}px)`\n indicator.style.width = `${width}px`\n\n if (variant === 'pill') {\n indicator.style.height = `${tabRect.height}px`\n }\n }, [activeValue, variant, getTabElements])\n\n const isUnderline = variant === 'underline'\n const isPill = variant === 'pill'\n\n return (\n <div\n ref={mergedRef}\n role=\"tablist\"\n className={cn(\n 'relative flex items-center gap-1',\n isUnderline && 'border-b border-[var(--glass-border)]',\n isPill && [\n 'p-1 rounded-full',\n 'bg-[var(--glass-bg)]',\n 'border border-[var(--glass-border)]',\n ],\n glass && 'backdrop-blur-lg',\n className\n )}\n {...props}\n >\n {/* Animated indicator */}\n <div\n ref={indicatorRef}\n aria-hidden\n className={cn(\n 'absolute left-0',\n prefersReducedMotion\n ? 'transition-none'\n : 'transition-[transform,width,opacity] duration-200 ease-out',\n isUnderline && [\n 'bottom-0 h-[2px]',\n 'bg-[var(--color-white)]',\n ],\n isPill && [\n 'top-1 rounded-full',\n 'bg-[var(--color-white)]',\n ],\n )}\n style={{ opacity: 0, width: 0 }}\n />\n {children}\n </div>\n )\n }\n)\n\nTabsList.displayName = 'TabsList'\n\n// --- TabsTab ---\n\nexport interface TabsTabProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** Unique value identifying this tab */\n value: string\n children: ReactNode\n}\n\nexport const TabsTab = forwardRef<HTMLButtonElement, TabsTabProps>(\n ({ value, children, className, onKeyDown, ...props }, ref) => {\n const { activeValue, setActiveValue, variant, baseId, registerTab, getTabElements } = useTabsContext()\n const internalRef = useRef<HTMLButtonElement | null>(null)\n const isActive = activeValue === value\n\n const mergedRef = useCallback(\n (node: HTMLButtonElement | null) => {\n internalRef.current = node\n registerTab(value, node)\n if (typeof ref === 'function') ref(node)\n else if (ref) (ref as React.MutableRefObject<HTMLButtonElement | null>).current = node\n },\n [ref, registerTab, value]\n )\n\n const handleKeyDown = useCallback(\n (e: KeyboardEvent<HTMLButtonElement>) => {\n onKeyDown?.(e)\n if (e.defaultPrevented) return\n\n const tabs = getTabElements()\n const tabValues = Array.from(tabs.keys())\n const currentIndex = tabValues.indexOf(value)\n\n let targetIndex: number\n\n switch (e.key) {\n case 'ArrowRight':\n targetIndex = (currentIndex + 1) % tabValues.length\n break\n case 'ArrowLeft':\n targetIndex = (currentIndex - 1 + tabValues.length) % tabValues.length\n break\n case 'Home':\n targetIndex = 0\n break\n case 'End':\n targetIndex = tabValues.length - 1\n break\n default:\n return\n }\n\n e.preventDefault()\n const targetValue = tabValues[targetIndex]\n const targetElement = tabs.get(targetValue)\n if (targetElement) {\n targetElement.focus()\n setActiveValue(targetValue)\n }\n },\n [onKeyDown, getTabElements, value, setActiveValue]\n )\n\n const isUnderline = variant === 'underline'\n const isPill = variant === 'pill'\n\n return (\n <button\n ref={mergedRef}\n role=\"tab\"\n type=\"button\"\n id={`${baseId}-tab-${value}`}\n aria-selected={isActive}\n aria-controls={`${baseId}-panel-${value}`}\n tabIndex={isActive ? 0 : -1}\n onClick={() => setActiveValue(value)}\n onKeyDown={handleKeyDown}\n className={cn(\n 'relative z-10',\n 'inline-flex items-center justify-center',\n 'text-sm font-medium',\n 'focus-ring',\n 'transition-colors duration-200 ease-out',\n 'cursor-pointer',\n 'whitespace-nowrap',\n isUnderline && [\n 'px-3 py-2',\n isActive\n ? 'text-[var(--color-white)]'\n : 'text-[var(--color-grey-400)] hover:text-[var(--color-white)]',\n ],\n isPill && [\n 'px-3 py-1.5',\n 'rounded-full',\n isActive\n ? 'text-[var(--color-bg)]'\n : 'text-[var(--color-grey-400)] hover:text-[var(--color-white)]',\n ],\n className\n )}\n {...props}\n >\n {children}\n </button>\n )\n }\n)\n\nTabsTab.displayName = 'TabsTab'\n\n// --- TabsPanel ---\n\nexport interface TabsPanelProps extends HTMLAttributes<HTMLDivElement> {\n /** The tab value this panel corresponds to */\n value: string\n children: ReactNode\n}\n\nexport const TabsPanel = forwardRef<HTMLDivElement, TabsPanelProps>(\n ({ value, children, className, ...props }, ref) => {\n const { activeValue, baseId } = useTabsContext()\n const isActive = activeValue === value\n\n if (!isActive) return null\n\n return (\n <div\n ref={ref}\n role=\"tabpanel\"\n id={`${baseId}-panel-${value}`}\n aria-labelledby={`${baseId}-tab-${value}`}\n tabIndex={0}\n className={cn('mt-2 focus-ring', className)}\n {...props}\n >\n {children}\n </div>\n )\n }\n)\n\nTabsPanel.displayName = 'TabsPanel'\n"],"names":["TabsContext","createContext","useTabsContext","context","useContext","Tabs","forwardRef","value","onChange","defaultValue","variant","children","className","props","ref","internalValue","setInternalValue","useState","tabElementsRef","useRef","baseId","useId","activeValue","setActiveValue","useCallback","newValue","registerTab","tabValue","element","getTabElements","jsx","cn","TabsList","glass","listRef","indicatorRef","prefersReducedMotion","useReducedMotion","mergedRef","node","useEffect","indicator","list","activeTab","listRect","tabRect","left","width","isUnderline","isPill","jsxs","TabsTab","onKeyDown","internalRef","isActive","handleKeyDown","e","tabs","tabValues","currentIndex","targetIndex","targetValue","targetElement","TabsPanel"],"mappings":";;;;AA4BA,MAAMA,IAAcC,EAAuC,IAAI;AAE/D,SAASC,IAAiB;AACxB,QAAMC,IAAUC,EAAWJ,CAAW;AACtC,MAAI,CAACG;AACH,UAAM,IAAI,MAAM,8DAA8D;AAEhF,SAAOA;AACT;AAgBO,MAAME,IAAO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AA;AAGhC,WAFiBoB,MAAgBf,IAK/B,gBAAAuB;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAAhB;AAAA,QACA,MAAK;AAAA,QACL,IAAI,GAAGM,CAAM,UAAUb,CAAK;AAAA,QAC5B,mBAAiB,GAAGa,CAAM,QAAQb,CAAK;AAAA,QACvC,UAAU;AAAA,QACV,WAAWwB,EAAG,mBAAmBnB,CAAS;AAAA,QACzC,GAAGC;AAAA,QAEH,UAAAF;AAAA,MAAA;AAAA,IAAA,IAZiB;AAAA,EAexB;AACF;AAEAoD,EAAU,cAAc;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { cn as l } from "../../utils/cn.js";
|
|
3
|
+
import { Icon as c } from "../../atoms/Icon/Icon.js";
|
|
4
|
+
function h({
|
|
5
|
+
theme: r,
|
|
6
|
+
onToggle: t,
|
|
7
|
+
size: e = "md",
|
|
8
|
+
className: a,
|
|
9
|
+
...n
|
|
10
|
+
}) {
|
|
11
|
+
const s = {
|
|
12
|
+
sm: "w-8 h-8",
|
|
13
|
+
md: "w-10 h-10"
|
|
14
|
+
}, i = {
|
|
15
|
+
sm: "sm",
|
|
16
|
+
md: "md"
|
|
17
|
+
};
|
|
18
|
+
return /* @__PURE__ */ o(
|
|
19
|
+
"button",
|
|
20
|
+
{
|
|
21
|
+
type: "button",
|
|
22
|
+
onClick: t,
|
|
23
|
+
className: l(
|
|
24
|
+
"inline-flex items-center justify-center",
|
|
25
|
+
"rounded-full",
|
|
26
|
+
"border border-[var(--glass-border)]",
|
|
27
|
+
"bg-transparent",
|
|
28
|
+
"text-[var(--color-grey-400)]",
|
|
29
|
+
"transition-all duration-200 ease-out",
|
|
30
|
+
"hover:border-[var(--glass-highlight)]",
|
|
31
|
+
"hover:bg-[var(--glass-bg)]",
|
|
32
|
+
"hover:text-[var(--color-white)]",
|
|
33
|
+
"hover:scale-105",
|
|
34
|
+
"active:scale-95",
|
|
35
|
+
"focus-ring",
|
|
36
|
+
s[e],
|
|
37
|
+
a
|
|
38
|
+
),
|
|
39
|
+
"aria-label": `Switch to ${r === "dark" ? "light" : "dark"} mode`,
|
|
40
|
+
...n,
|
|
41
|
+
children: /* @__PURE__ */ o(c, { name: r === "dark" ? "sun" : "moon", size: i[e] })
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
h as ThemeToggle
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=ThemeToggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeToggle.js","sources":["../../../src/molecules/ThemeToggle/ThemeToggle.tsx"],"sourcesContent":["import { type ButtonHTMLAttributes } from 'react'\nimport { cn } from '../../utils/cn'\nimport { Icon } from '../../atoms/Icon'\n\nexport interface ThemeToggleProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {\n theme: 'dark' | 'light'\n onToggle: () => void\n size?: 'sm' | 'md'\n}\n\nexport function ThemeToggle({\n theme,\n onToggle,\n size = 'md',\n className,\n ...props\n}: ThemeToggleProps) {\n const sizes = {\n sm: 'w-8 h-8',\n md: 'w-10 h-10',\n }\n\n const iconSizes = {\n sm: 'sm' as const,\n md: 'md' as const,\n }\n\n return (\n <button\n type=\"button\"\n onClick={onToggle}\n className={cn(\n 'inline-flex items-center justify-center',\n 'rounded-full',\n 'border border-[var(--glass-border)]',\n 'bg-transparent',\n 'text-[var(--color-grey-400)]',\n 'transition-all duration-200 ease-out',\n 'hover:border-[var(--glass-highlight)]',\n 'hover:bg-[var(--glass-bg)]',\n 'hover:text-[var(--color-white)]',\n 'hover:scale-105',\n 'active:scale-95',\n 'focus-ring',\n sizes[size],\n className\n )}\n aria-label={`Switch to ${theme === 'dark' ? 'light' : 'dark'} mode`}\n {...props}\n >\n <Icon name={theme === 'dark' ? 'sun' : 'moon'} size={iconSizes[size]} />\n </button>\n )\n}\n"],"names":["ThemeToggle","theme","onToggle","size","className","props","sizes","iconSizes","jsx","cn","Icon"],"mappings":";;;AAUO,SAASA,EAAY;AAAA,EAC1B,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,WAAAC;AAAA,EACA,GAAGC;AACL,GAAqB;AACnB,QAAMC,IAAQ;AAAA,IACZ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA,GAGAC,IAAY;AAAA,IAChB,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA;AAGN,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,SAASN;AAAA,MACT,WAAWO;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACAH,EAAMH,CAAI;AAAA,QACVC;AAAA,MAAA;AAAA,MAEF,cAAY,aAAaH,MAAU,SAAS,UAAU,MAAM;AAAA,MAC3D,GAAGI;AAAA,MAEJ,UAAA,gBAAAG,EAACE,GAAA,EAAK,MAAMT,MAAU,SAAS,QAAQ,QAAQ,MAAMM,EAAUJ,CAAI,EAAA,CAAG;AAAA,IAAA;AAAA,EAAA;AAG5E;"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { jsx as t, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as I, useState as g, useRef as T, useCallback as k, useEffect as b } from "react";
|
|
3
|
+
import { cn as i } from "../../utils/cn.js";
|
|
4
|
+
import { Icon as p } from "../../atoms/Icon/Icon.js";
|
|
5
|
+
const z = {
|
|
6
|
+
default: "bell",
|
|
7
|
+
success: "success",
|
|
8
|
+
error: "error",
|
|
9
|
+
warning: "warning",
|
|
10
|
+
info: "info"
|
|
11
|
+
}, C = {
|
|
12
|
+
default: [
|
|
13
|
+
"border-[var(--glass-border)]"
|
|
14
|
+
],
|
|
15
|
+
success: [
|
|
16
|
+
"border-[var(--color-sage)]/30"
|
|
17
|
+
],
|
|
18
|
+
error: [
|
|
19
|
+
"border-[var(--color-coral)]/30"
|
|
20
|
+
],
|
|
21
|
+
warning: [
|
|
22
|
+
"border-[var(--color-gold)]/30"
|
|
23
|
+
],
|
|
24
|
+
info: [
|
|
25
|
+
"border-[var(--color-mint)]/30"
|
|
26
|
+
]
|
|
27
|
+
}, E = {
|
|
28
|
+
default: "text-[var(--color-grey-400)]",
|
|
29
|
+
success: "text-[var(--color-sage)]",
|
|
30
|
+
error: "text-[var(--color-coral)]",
|
|
31
|
+
warning: "text-[var(--color-gold)]",
|
|
32
|
+
info: "text-[var(--color-mint)]"
|
|
33
|
+
}, S = I(
|
|
34
|
+
({
|
|
35
|
+
variant: e = "default",
|
|
36
|
+
title: r,
|
|
37
|
+
description: a,
|
|
38
|
+
duration: o = 5e3,
|
|
39
|
+
icon: v,
|
|
40
|
+
onDismiss: f,
|
|
41
|
+
open: n = !0,
|
|
42
|
+
className: h,
|
|
43
|
+
...w
|
|
44
|
+
}, N) => {
|
|
45
|
+
const [l, u] = g(n), [c, d] = g(!1), m = T(null), s = k(() => {
|
|
46
|
+
d(!0), setTimeout(() => {
|
|
47
|
+
u(!1), f?.();
|
|
48
|
+
}, 200);
|
|
49
|
+
}, [f]);
|
|
50
|
+
if (b(() => {
|
|
51
|
+
if (!n) {
|
|
52
|
+
s();
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
u(!0), d(!1);
|
|
56
|
+
}, [n, s]), b(() => {
|
|
57
|
+
if (o > 0 && l && !c)
|
|
58
|
+
return m.current = setTimeout(s, o), () => {
|
|
59
|
+
m.current && clearTimeout(m.current);
|
|
60
|
+
};
|
|
61
|
+
}, [o, l, c, s]), !l) return null;
|
|
62
|
+
const y = v ?? /* @__PURE__ */ t(
|
|
63
|
+
p,
|
|
64
|
+
{
|
|
65
|
+
name: z[e],
|
|
66
|
+
size: "sm",
|
|
67
|
+
className: E[e]
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
return /* @__PURE__ */ t(
|
|
71
|
+
"div",
|
|
72
|
+
{
|
|
73
|
+
ref: N,
|
|
74
|
+
role: "alert",
|
|
75
|
+
"aria-live": "polite",
|
|
76
|
+
className: i(
|
|
77
|
+
// Base
|
|
78
|
+
"pointer-events-auto",
|
|
79
|
+
"w-[360px] max-w-[calc(100vw-2rem)]",
|
|
80
|
+
"rounded-2xl border",
|
|
81
|
+
"bg-[var(--glass-bg)] backdrop-blur-lg",
|
|
82
|
+
"p-4",
|
|
83
|
+
// Animation
|
|
84
|
+
"motion-safe:transition-[transform,opacity] motion-safe:duration-200 motion-safe:ease-out",
|
|
85
|
+
c ? "opacity-0 translate-x-2" : "opacity-100 translate-x-0 motion-safe:animate-[toastSlideIn_0.3s_cubic-bezier(0.4,0,0.2,1)]",
|
|
86
|
+
// Variant border
|
|
87
|
+
C[e],
|
|
88
|
+
h
|
|
89
|
+
),
|
|
90
|
+
...w,
|
|
91
|
+
children: /* @__PURE__ */ x("div", { className: "flex items-start gap-3", children: [
|
|
92
|
+
/* @__PURE__ */ t("span", { className: "mt-0.5 shrink-0", children: y }),
|
|
93
|
+
/* @__PURE__ */ x("div", { className: "flex-1 min-w-0", children: [
|
|
94
|
+
r && /* @__PURE__ */ t("p", { className: "text-sm font-medium text-[var(--color-white)]", children: r }),
|
|
95
|
+
a && /* @__PURE__ */ t("p", { className: i(
|
|
96
|
+
"text-sm text-[var(--color-grey-400)]",
|
|
97
|
+
r && "mt-1"
|
|
98
|
+
), children: a })
|
|
99
|
+
] }),
|
|
100
|
+
/* @__PURE__ */ t(
|
|
101
|
+
"button",
|
|
102
|
+
{
|
|
103
|
+
onClick: s,
|
|
104
|
+
className: i(
|
|
105
|
+
"shrink-0 mt-0.5",
|
|
106
|
+
"rounded-full p-1",
|
|
107
|
+
"text-[var(--color-grey-400)]",
|
|
108
|
+
"hover:text-[var(--color-white)] hover:bg-[var(--glass-bg)]",
|
|
109
|
+
"transition-colors duration-150",
|
|
110
|
+
"focus-ring"
|
|
111
|
+
),
|
|
112
|
+
"aria-label": "Dismiss notification",
|
|
113
|
+
children: /* @__PURE__ */ t(p, { name: "x", size: "xs" })
|
|
114
|
+
}
|
|
115
|
+
)
|
|
116
|
+
] })
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
S.displayName = "Toast";
|
|
122
|
+
const R = {
|
|
123
|
+
"top-right": "top-0 right-0 items-end",
|
|
124
|
+
"top-left": "top-0 left-0 items-start",
|
|
125
|
+
"top-center": "top-0 left-1/2 -translate-x-1/2 items-center",
|
|
126
|
+
"bottom-right": "bottom-0 right-0 items-end",
|
|
127
|
+
"bottom-left": "bottom-0 left-0 items-start",
|
|
128
|
+
"bottom-center": "bottom-0 left-1/2 -translate-x-1/2 items-center"
|
|
129
|
+
};
|
|
130
|
+
function q({
|
|
131
|
+
position: e = "top-right",
|
|
132
|
+
children: r,
|
|
133
|
+
className: a,
|
|
134
|
+
...o
|
|
135
|
+
}) {
|
|
136
|
+
return /* @__PURE__ */ t(
|
|
137
|
+
"div",
|
|
138
|
+
{
|
|
139
|
+
className: i(
|
|
140
|
+
"fixed z-50",
|
|
141
|
+
"flex flex-col gap-3",
|
|
142
|
+
"p-4",
|
|
143
|
+
"pointer-events-none",
|
|
144
|
+
R[e],
|
|
145
|
+
a
|
|
146
|
+
),
|
|
147
|
+
...o,
|
|
148
|
+
children: r
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
export {
|
|
153
|
+
S as Toast,
|
|
154
|
+
q as ToastContainer
|
|
155
|
+
};
|
|
156
|
+
//# sourceMappingURL=Toast.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.js","sources":["../../../src/molecules/Toast/Toast.tsx"],"sourcesContent":["import {\n forwardRef,\n type HTMLAttributes,\n type ReactNode,\n useEffect,\n useRef,\n useState,\n useCallback,\n} from 'react'\nimport { cn } from '../../utils/cn'\nimport { Icon } from '../../atoms/Icon'\nimport type { IconName } from '../../atoms/Icon'\n\nexport type ToastVariant = 'default' | 'success' | 'error' | 'warning' | 'info'\n\nexport type ToastPosition =\n | 'top-right'\n | 'top-left'\n | 'top-center'\n | 'bottom-right'\n | 'bottom-left'\n | 'bottom-center'\n\nexport interface ToastData {\n id: string\n variant: ToastVariant\n title?: string\n description?: string\n duration?: number\n icon?: ReactNode\n}\n\nexport interface ToastProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {\n variant?: ToastVariant\n title?: string\n description?: string\n duration?: number\n icon?: ReactNode\n onDismiss?: () => void\n open?: boolean\n}\n\nconst variantIcons: Record<ToastVariant, IconName> = {\n default: 'bell',\n success: 'success',\n error: 'error',\n warning: 'warning',\n info: 'info',\n}\n\nconst variantStyles: Record<ToastVariant, string[]> = {\n default: [\n 'border-[var(--glass-border)]',\n ],\n success: [\n 'border-[var(--color-sage)]/30',\n ],\n error: [\n 'border-[var(--color-coral)]/30',\n ],\n warning: [\n 'border-[var(--color-gold)]/30',\n ],\n info: [\n 'border-[var(--color-mint)]/30',\n ],\n}\n\nconst variantIconColors: Record<ToastVariant, string> = {\n default: 'text-[var(--color-grey-400)]',\n success: 'text-[var(--color-sage)]',\n error: 'text-[var(--color-coral)]',\n warning: 'text-[var(--color-gold)]',\n info: 'text-[var(--color-mint)]',\n}\n\nexport const Toast = forwardRef<HTMLDivElement, ToastProps>(\n (\n {\n variant = 'default',\n title,\n description,\n duration = 5000,\n icon,\n onDismiss,\n open = true,\n className,\n ...props\n },\n ref\n ) => {\n const [isVisible, setIsVisible] = useState(open)\n const [isExiting, setIsExiting] = useState(false)\n const timerRef = useRef<ReturnType<typeof setTimeout> | null>(null)\n\n const handleDismiss = useCallback(() => {\n setIsExiting(true)\n setTimeout(() => {\n setIsVisible(false)\n onDismiss?.()\n }, 200)\n }, [onDismiss])\n\n useEffect(() => {\n if (!open) {\n handleDismiss()\n return\n }\n setIsVisible(true)\n setIsExiting(false)\n }, [open, handleDismiss])\n\n useEffect(() => {\n if (duration > 0 && isVisible && !isExiting) {\n timerRef.current = setTimeout(handleDismiss, duration)\n return () => {\n if (timerRef.current) clearTimeout(timerRef.current)\n }\n }\n }, [duration, isVisible, isExiting, handleDismiss])\n\n if (!isVisible) return null\n\n const iconElement = icon ?? (\n <Icon\n name={variantIcons[variant]}\n size=\"sm\"\n className={variantIconColors[variant]}\n />\n )\n\n return (\n <div\n ref={ref}\n role=\"alert\"\n aria-live=\"polite\"\n className={cn(\n // Base\n 'pointer-events-auto',\n 'w-[360px] max-w-[calc(100vw-2rem)]',\n 'rounded-2xl border',\n 'bg-[var(--glass-bg)] backdrop-blur-lg',\n 'p-4',\n // Animation\n 'motion-safe:transition-[transform,opacity] motion-safe:duration-200 motion-safe:ease-out',\n isExiting\n ? 'opacity-0 translate-x-2'\n : 'opacity-100 translate-x-0 motion-safe:animate-[toastSlideIn_0.3s_cubic-bezier(0.4,0,0.2,1)]',\n // Variant border\n variantStyles[variant],\n className\n )}\n {...props}\n >\n <div className=\"flex items-start gap-3\">\n <span className=\"mt-0.5 shrink-0\">{iconElement}</span>\n <div className=\"flex-1 min-w-0\">\n {title && (\n <p className=\"text-sm font-medium text-[var(--color-white)]\">\n {title}\n </p>\n )}\n {description && (\n <p className={cn(\n 'text-sm text-[var(--color-grey-400)]',\n title && 'mt-1'\n )}>\n {description}\n </p>\n )}\n </div>\n <button\n onClick={handleDismiss}\n className={cn(\n 'shrink-0 mt-0.5',\n 'rounded-full p-1',\n 'text-[var(--color-grey-400)]',\n 'hover:text-[var(--color-white)] hover:bg-[var(--glass-bg)]',\n 'transition-colors duration-150',\n 'focus-ring',\n )}\n aria-label=\"Dismiss notification\"\n >\n <Icon name=\"x\" size=\"xs\" />\n </button>\n </div>\n </div>\n )\n }\n)\n\nToast.displayName = 'Toast'\n\nexport interface ToastContainerProps extends HTMLAttributes<HTMLDivElement> {\n position?: ToastPosition\n children?: ReactNode\n}\n\nconst positionStyles: Record<ToastPosition, string> = {\n 'top-right': 'top-0 right-0 items-end',\n 'top-left': 'top-0 left-0 items-start',\n 'top-center': 'top-0 left-1/2 -translate-x-1/2 items-center',\n 'bottom-right': 'bottom-0 right-0 items-end',\n 'bottom-left': 'bottom-0 left-0 items-start',\n 'bottom-center': 'bottom-0 left-1/2 -translate-x-1/2 items-center',\n}\n\nexport function ToastContainer({\n position = 'top-right',\n children,\n className,\n ...props\n}: ToastContainerProps) {\n return (\n <div\n className={cn(\n 'fixed z-50',\n 'flex flex-col gap-3',\n 'p-4',\n 'pointer-events-none',\n positionStyles[position],\n className\n )}\n {...props}\n >\n {children}\n </div>\n )\n}\n"],"names":["variantIcons","variantStyles","variantIconColors","Toast","forwardRef","variant","title","description","duration","icon","onDismiss","open","className","props","ref","isVisible","setIsVisible","useState","isExiting","setIsExiting","timerRef","useRef","handleDismiss","useCallback","useEffect","iconElement","jsx","Icon","cn","jsxs","positionStyles","ToastContainer","position","children"],"mappings":";;;;AA0CA,MAAMA,IAA+C;AAAA,EACnD,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AACR,GAEMC,IAAgD;AAAA,EACpD,SAAS;AAAA,IACP;AAAA,EAAA;AAAA,EAEF,SAAS;AAAA,IACP;AAAA,EAAA;AAAA,EAEF,OAAO;AAAA,IACL;AAAA,EAAA;AAAA,EAEF,SAAS;AAAA,IACP;AAAA,EAAA;AAAA,EAEF,MAAM;AAAA,IACJ;AAAA,EAAA;AAEJ,GAEMC,IAAkD;AAAA,EACtD,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AACR,GAEaC,IAAQC;AAAA,EACnB,CACE;AAAA,IACE,SAAAC,IAAU;AAAA,IACV,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,MAAAC;AAAA,IACA,WAAAC;AAAA,IACA,MA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;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function i(r) {
|
|
2
|
+
var f, n, t = "";
|
|
3
|
+
if (typeof r == "string" || typeof r == "number") t += r;
|
|
4
|
+
else if (typeof r == "object") if (Array.isArray(r)) {
|
|
5
|
+
var o = r.length;
|
|
6
|
+
for (f = 0; f < o; f++) r[f] && (n = i(r[f])) && (t && (t += " "), t += n);
|
|
7
|
+
} else for (n in r) r[n] && (t && (t += " "), t += n);
|
|
8
|
+
return t;
|
|
9
|
+
}
|
|
10
|
+
function a() {
|
|
11
|
+
for (var r, f, n = 0, t = "", o = arguments.length; n < o; n++) (r = arguments[n]) && (f = i(r)) && (t && (t += " "), t += f);
|
|
12
|
+
return t;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
a as clsx
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=clsx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clsx.js","sources":["../../../../node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"names":["r","e","t","f","n","clsx"],"mappings":"AAAA,SAASA,EAAEC,GAAE;AAAC,MAAIC,GAAEC,GAAEC,IAAE;AAAG,MAAa,OAAOH,KAAjB,YAA8B,OAAOA,KAAjB,SAAmB,CAAAG,KAAGH;AAAA,WAAoB,OAAOA,KAAjB,SAAmB,KAAG,MAAM,QAAQA,CAAC,GAAE;AAAC,QAAI,IAAEA,EAAE;AAAO,SAAIC,IAAE,GAAEA,IAAE,GAAEA,IAAI,CAAAD,EAAEC,CAAC,MAAIC,IAAEH,EAAEC,EAAEC,CAAC,CAAC,OAAKE,MAAIA,KAAG,MAAKA,KAAGD;AAAA,EAAE,MAAM,MAAIA,KAAKF,EAAE,CAAAA,EAAEE,CAAC,MAAIC,MAAIA,KAAG,MAAKA,KAAGD;AAAG,SAAOC;AAAC;AAAQ,SAASC,IAAM;AAAC,WAAQJ,GAAEC,GAAEC,IAAE,GAAEC,IAAE,IAAG,IAAE,UAAU,QAAOD,IAAE,GAAEA,IAAI,EAACF,IAAE,UAAUE,CAAC,OAAKD,IAAEF,EAAEC,CAAC,OAAKG,MAAIA,KAAG,MAAKA,KAAGF;AAAG,SAAOE;AAAC;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconoirContext.js","sources":["../../../../../node_modules/iconoir-react/dist/esm/IconoirContext.mjs"],"sourcesContent":["\"use client\";import o from\"react\";const t=o.createContext({});function i({iconProps:e,children:r}){return o.createElement(t.Provider,{value:e||{},children:r})}export{t as IconoirContext,i as IconoirProvider};\n"],"names":["t","o"],"mappings":";AAAuC,MAACA,IAAEC,EAAE,cAAc,CAAA,CAAE;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { forwardRef as c } from "react";
|
|
3
|
+
import { IconoirContext as p } from "../IconoirContext.js";
|
|
4
|
+
var s = Object.defineProperty, a = Object.getOwnPropertySymbols, u = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable, i = (t, r, e) => r in t ? s(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e, n = (t, r) => {
|
|
5
|
+
for (var e in r || (r = {})) u.call(r, e) && i(t, e, r[e]);
|
|
6
|
+
if (a) for (var e of a(r)) f.call(r, e) && i(t, e, r[e]);
|
|
7
|
+
return t;
|
|
8
|
+
};
|
|
9
|
+
const m = (t, r) => {
|
|
10
|
+
const e = o.useContext(p), l = n(n({}, e), t);
|
|
11
|
+
return o.createElement("svg", n({ width: "1.5em", height: "1.5em", viewBox: "0 0 24 24", strokeWidth: 1.5, fill: "none", xmlns: "http://www.w3.org/2000/svg", color: "currentColor", ref: r }, l), o.createElement("path", { d: "M12 3L12 21M12 21L20.5 12.5M12 21L3.5 12.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
12
|
+
}, v = c(m);
|
|
13
|
+
var d = v;
|
|
14
|
+
export {
|
|
15
|
+
d as default
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=ArrowDown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowDown.js","sources":["../../../../../../node_modules/iconoir-react/dist/esm/regular/ArrowDown.mjs"],"sourcesContent":["\"use client\";var p=Object.defineProperty;var s=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;var i=(t,o,r)=>o in t?p(t,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[o]=r,e=(t,o)=>{for(var r in o||(o={}))f.call(o,r)&&i(t,r,o[r]);if(s)for(var r of s(o))c.call(o,r)&&i(t,r,o[r]);return t};import*as n from\"react\";import{forwardRef as l}from\"react\";import{IconoirContext as d}from\"../IconoirContext.mjs\";const u=(t,o)=>{const r=n.useContext(d),m=e(e({},r),t);return n.createElement(\"svg\",e({width:\"1.5em\",height:\"1.5em\",viewBox:\"0 0 24 24\",strokeWidth:1.5,fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",color:\"currentColor\",ref:o},m),n.createElement(\"path\",{d:\"M12 3L12 21M12 21L20.5 12.5M12 21L3.5 12.5\",stroke:\"currentColor\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}))},w=l(u);var x=w;export{x as default};\n"],"names":["p","s","f","c","o","r","e","u","t","n","d","m","w","l","x"],"mappings":";;;AAAa,IAAIA,IAAE,OAAO,gBAAmBC,IAAE,OAAO,uBAA0BC,IAAE,OAAO,UAAU,gBAAeC,IAAE,OAAO,UAAU,sBAAyB,IAAE,CAAC,GAAEC,GAAEC,MAAID,KAAK,IAAEJ,EAAE,GAAEI,GAAE,EAAC,YAAW,IAAG,cAAa,IAAG,UAAS,IAAG,OAAMC,EAAC,CAAC,IAAE,EAAED,CAAC,IAAEC,GAAEC,IAAE,CAAC,GAAEF,MAAI;AAAC,WAAQC,KAAKD,MAAIA,IAAE,CAAA,GAAI,CAAAF,EAAE,KAAKE,GAAEC,CAAC,KAAG,EAAE,GAAEA,GAAED,EAAEC,CAAC,CAAC;AAAE,MAAGJ,EAAE,UAAQI,KAAKJ,EAAEG,CAAC,EAAE,CAAAD,EAAE,KAAKC,GAAEC,CAAC,KAAG,EAAE,GAAEA,GAAED,EAAEC,CAAC,CAAC;AAAE,SAAO;AAAC;AAAoH,MAAME,IAAE,CAACC,GAAEJ,MAAI;AAAC,QAAMC,IAAEI,EAAE,WAAWC,CAAC,GAAEC,IAAEL,EAAEA,EAAE,CAAA,GAAGD,CAAC,GAAEG,CAAC;AAAE,SAAOC,EAAE,cAAc,OAAMH,EAAE,EAAC,OAAM,SAAQ,QAAO,SAAQ,SAAQ,aAAY,aAAY,KAAI,MAAK,QAAO,OAAM,8BAA6B,OAAM,gBAAe,KAAIF,EAAC,GAAEO,CAAC,GAAEF,EAAE,cAAc,QAAO,EAAC,GAAE,8CAA6C,QAAO,gBAAe,eAAc,SAAQ,gBAAe,QAAO,CAAC,CAAC;AAAC,GAAEG,IAAEC,EAAEN,CAAC;AAAK,IAACO,IAAEF;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { forwardRef as c } from "react";
|
|
3
|
+
import { IconoirContext as p } from "../IconoirContext.js";
|
|
4
|
+
var s = Object.defineProperty, a = Object.getOwnPropertySymbols, u = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable, i = (t, r, e) => r in t ? s(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e, n = (t, r) => {
|
|
5
|
+
for (var e in r || (r = {})) u.call(r, e) && i(t, e, r[e]);
|
|
6
|
+
if (a) for (var e of a(r)) f.call(r, e) && i(t, e, r[e]);
|
|
7
|
+
return t;
|
|
8
|
+
};
|
|
9
|
+
const m = (t, r) => {
|
|
10
|
+
const e = o.useContext(p), l = n(n({}, e), t);
|
|
11
|
+
return o.createElement("svg", n({ width: "1.5em", height: "1.5em", viewBox: "0 0 24 24", strokeWidth: 1.5, fill: "none", xmlns: "http://www.w3.org/2000/svg", color: "currentColor", ref: r }, l), o.createElement("path", { d: "M21 12L3 12M3 12L11.5 3.5M3 12L11.5 20.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
12
|
+
}, v = c(m);
|
|
13
|
+
var d = v;
|
|
14
|
+
export {
|
|
15
|
+
d as default
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=ArrowLeft.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowLeft.js","sources":["../../../../../../node_modules/iconoir-react/dist/esm/regular/ArrowLeft.mjs"],"sourcesContent":["\"use client\";var p=Object.defineProperty;var s=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;var i=(t,o,r)=>o in t?p(t,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[o]=r,e=(t,o)=>{for(var r in o||(o={}))f.call(o,r)&&i(t,r,o[r]);if(s)for(var r of s(o))c.call(o,r)&&i(t,r,o[r]);return t};import*as n from\"react\";import{forwardRef as l}from\"react\";import{IconoirContext as d}from\"../IconoirContext.mjs\";const u=(t,o)=>{const r=n.useContext(d),m=e(e({},r),t);return n.createElement(\"svg\",e({width:\"1.5em\",height:\"1.5em\",viewBox:\"0 0 24 24\",strokeWidth:1.5,fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",color:\"currentColor\",ref:o},m),n.createElement(\"path\",{d:\"M21 12L3 12M3 12L11.5 3.5M3 12L11.5 20.5\",stroke:\"currentColor\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}))},w=l(u);var x=w;export{x as default};\n"],"names":["p","s","f","c","o","r","e","u","t","n","d","m","w","l","x"],"mappings":";;;AAAa,IAAIA,IAAE,OAAO,gBAAmBC,IAAE,OAAO,uBAA0BC,IAAE,OAAO,UAAU,gBAAeC,IAAE,OAAO,UAAU,sBAAyB,IAAE,CAAC,GAAEC,GAAEC,MAAID,KAAK,IAAEJ,EAAE,GAAEI,GAAE,EAAC,YAAW,IAAG,cAAa,IAAG,UAAS,IAAG,OAAMC,EAAC,CAAC,IAAE,EAAED,CAAC,IAAEC,GAAEC,IAAE,CAAC,GAAEF,MAAI;AAAC,WAAQC,KAAKD,MAAIA,IAAE,CAAA,GAAI,CAAAF,EAAE,KAAKE,GAAEC,CAAC,KAAG,EAAE,GAAEA,GAAED,EAAEC,CAAC,CAAC;AAAE,MAAGJ,EAAE,UAAQI,KAAKJ,EAAEG,CAAC,EAAE,CAAAD,EAAE,KAAKC,GAAEC,CAAC,KAAG,EAAE,GAAEA,GAAED,EAAEC,CAAC,CAAC;AAAE,SAAO;AAAC;AAAoH,MAAME,IAAE,CAACC,GAAEJ,MAAI;AAAC,QAAMC,IAAEI,EAAE,WAAWC,CAAC,GAAEC,IAAEL,EAAEA,EAAE,CAAA,GAAGD,CAAC,GAAEG,CAAC;AAAE,SAAOC,EAAE,cAAc,OAAMH,EAAE,EAAC,OAAM,SAAQ,QAAO,SAAQ,SAAQ,aAAY,aAAY,KAAI,MAAK,QAAO,OAAM,8BAA6B,OAAM,gBAAe,KAAIF,EAAC,GAAEO,CAAC,GAAEF,EAAE,cAAc,QAAO,EAAC,GAAE,4CAA2C,QAAO,gBAAe,eAAc,SAAQ,gBAAe,QAAO,CAAC,CAAC;AAAC,GAAEG,IAAEC,EAAEN,CAAC;AAAK,IAACO,IAAEF;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { forwardRef as c } from "react";
|
|
3
|
+
import { IconoirContext as p } from "../IconoirContext.js";
|
|
4
|
+
var s = Object.defineProperty, a = Object.getOwnPropertySymbols, u = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable, i = (t, r, e) => r in t ? s(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e, n = (t, r) => {
|
|
5
|
+
for (var e in r || (r = {})) u.call(r, e) && i(t, e, r[e]);
|
|
6
|
+
if (a) for (var e of a(r)) f.call(r, e) && i(t, e, r[e]);
|
|
7
|
+
return t;
|
|
8
|
+
};
|
|
9
|
+
const m = (t, r) => {
|
|
10
|
+
const e = o.useContext(p), l = n(n({}, e), t);
|
|
11
|
+
return o.createElement("svg", n({ width: "1.5em", height: "1.5em", viewBox: "0 0 24 24", strokeWidth: 1.5, fill: "none", xmlns: "http://www.w3.org/2000/svg", color: "currentColor", ref: r }, l), o.createElement("path", { d: "M3 12L21 12M21 12L12.5 3.5M21 12L12.5 20.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
12
|
+
}, v = c(m);
|
|
13
|
+
var d = v;
|
|
14
|
+
export {
|
|
15
|
+
d as default
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=ArrowRight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowRight.js","sources":["../../../../../../node_modules/iconoir-react/dist/esm/regular/ArrowRight.mjs"],"sourcesContent":["\"use client\";var p=Object.defineProperty;var s=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;var i=(t,o,r)=>o in t?p(t,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[o]=r,e=(t,o)=>{for(var r in o||(o={}))f.call(o,r)&&i(t,r,o[r]);if(s)for(var r of s(o))c.call(o,r)&&i(t,r,o[r]);return t};import*as n from\"react\";import{forwardRef as l}from\"react\";import{IconoirContext as d}from\"../IconoirContext.mjs\";const u=(t,o)=>{const r=n.useContext(d),m=e(e({},r),t);return n.createElement(\"svg\",e({width:\"1.5em\",height:\"1.5em\",viewBox:\"0 0 24 24\",strokeWidth:1.5,fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",color:\"currentColor\",ref:o},m),n.createElement(\"path\",{d:\"M3 12L21 12M21 12L12.5 3.5M21 12L12.5 20.5\",stroke:\"currentColor\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}))},w=l(u);var x=w;export{x as default};\n"],"names":["p","s","f","c","o","r","e","u","t","n","d","m","w","l","x"],"mappings":";;;AAAa,IAAIA,IAAE,OAAO,gBAAmBC,IAAE,OAAO,uBAA0BC,IAAE,OAAO,UAAU,gBAAeC,IAAE,OAAO,UAAU,sBAAyB,IAAE,CAAC,GAAEC,GAAEC,MAAID,KAAK,IAAEJ,EAAE,GAAEI,GAAE,EAAC,YAAW,IAAG,cAAa,IAAG,UAAS,IAAG,OAAMC,EAAC,CAAC,IAAE,EAAED,CAAC,IAAEC,GAAEC,IAAE,CAAC,GAAEF,MAAI;AAAC,WAAQC,KAAKD,MAAIA,IAAE,CAAA,GAAI,CAAAF,EAAE,KAAKE,GAAEC,CAAC,KAAG,EAAE,GAAEA,GAAED,EAAEC,CAAC,CAAC;AAAE,MAAGJ,EAAE,UAAQI,KAAKJ,EAAEG,CAAC,EAAE,CAAAD,EAAE,KAAKC,GAAEC,CAAC,KAAG,EAAE,GAAEA,GAAED,EAAEC,CAAC,CAAC;AAAE,SAAO;AAAC;AAAoH,MAAME,IAAE,CAACC,GAAEJ,MAAI;AAAC,QAAMC,IAAEI,EAAE,WAAWC,CAAC,GAAEC,IAAEL,EAAEA,EAAE,CAAA,GAAGD,CAAC,GAAEG,CAAC;AAAE,SAAOC,EAAE,cAAc,OAAMH,EAAE,EAAC,OAAM,SAAQ,QAAO,SAAQ,SAAQ,aAAY,aAAY,KAAI,MAAK,QAAO,OAAM,8BAA6B,OAAM,gBAAe,KAAIF,EAAC,GAAEO,CAAC,GAAEF,EAAE,cAAc,QAAO,EAAC,GAAE,8CAA6C,QAAO,gBAAe,eAAc,SAAQ,gBAAe,QAAO,CAAC,CAAC;AAAC,GAAEG,IAAEC,EAAEN,CAAC;AAAK,IAACO,IAAEF;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { forwardRef as c } from "react";
|
|
3
|
+
import { IconoirContext as p } from "../IconoirContext.js";
|
|
4
|
+
var s = Object.defineProperty, a = Object.getOwnPropertySymbols, u = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable, i = (t, r, e) => r in t ? s(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e, n = (t, r) => {
|
|
5
|
+
for (var e in r || (r = {})) u.call(r, e) && i(t, e, r[e]);
|
|
6
|
+
if (a) for (var e of a(r)) f.call(r, e) && i(t, e, r[e]);
|
|
7
|
+
return t;
|
|
8
|
+
};
|
|
9
|
+
const m = (t, r) => {
|
|
10
|
+
const e = o.useContext(p), l = n(n({}, e), t);
|
|
11
|
+
return o.createElement("svg", n({ width: "1.5em", height: "1.5em", viewBox: "0 0 24 24", strokeWidth: 1.5, fill: "none", xmlns: "http://www.w3.org/2000/svg", color: "currentColor", ref: r }, l), o.createElement("path", { d: "M12 21L12 3M12 3L20.5 11.5M12 3L3.5 11.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
12
|
+
}, v = c(m);
|
|
13
|
+
var d = v;
|
|
14
|
+
export {
|
|
15
|
+
d as default
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=ArrowUp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowUp.js","sources":["../../../../../../node_modules/iconoir-react/dist/esm/regular/ArrowUp.mjs"],"sourcesContent":["\"use client\";var p=Object.defineProperty;var s=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;var i=(t,o,r)=>o in t?p(t,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[o]=r,e=(t,o)=>{for(var r in o||(o={}))f.call(o,r)&&i(t,r,o[r]);if(s)for(var r of s(o))c.call(o,r)&&i(t,r,o[r]);return t};import*as n from\"react\";import{forwardRef as l}from\"react\";import{IconoirContext as d}from\"../IconoirContext.mjs\";const u=(t,o)=>{const r=n.useContext(d),m=e(e({},r),t);return n.createElement(\"svg\",e({width:\"1.5em\",height:\"1.5em\",viewBox:\"0 0 24 24\",strokeWidth:1.5,fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",color:\"currentColor\",ref:o},m),n.createElement(\"path\",{d:\"M12 21L12 3M12 3L20.5 11.5M12 3L3.5 11.5\",stroke:\"currentColor\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}))},w=l(u);var x=w;export{x as default};\n"],"names":["p","s","f","c","o","r","e","u","t","n","d","m","w","l","x"],"mappings":";;;AAAa,IAAIA,IAAE,OAAO,gBAAmBC,IAAE,OAAO,uBAA0BC,IAAE,OAAO,UAAU,gBAAeC,IAAE,OAAO,UAAU,sBAAyB,IAAE,CAAC,GAAEC,GAAEC,MAAID,KAAK,IAAEJ,EAAE,GAAEI,GAAE,EAAC,YAAW,IAAG,cAAa,IAAG,UAAS,IAAG,OAAMC,EAAC,CAAC,IAAE,EAAED,CAAC,IAAEC,GAAEC,IAAE,CAAC,GAAEF,MAAI;AAAC,WAAQC,KAAKD,MAAIA,IAAE,CAAA,GAAI,CAAAF,EAAE,KAAKE,GAAEC,CAAC,KAAG,EAAE,GAAEA,GAAED,EAAEC,CAAC,CAAC;AAAE,MAAGJ,EAAE,UAAQI,KAAKJ,EAAEG,CAAC,EAAE,CAAAD,EAAE,KAAKC,GAAEC,CAAC,KAAG,EAAE,GAAEA,GAAED,EAAEC,CAAC,CAAC;AAAE,SAAO;AAAC;AAAoH,MAAME,IAAE,CAACC,GAAEJ,MAAI;AAAC,QAAMC,IAAEI,EAAE,WAAWC,CAAC,GAAEC,IAAEL,EAAEA,EAAE,CAAA,GAAGD,CAAC,GAAEG,CAAC;AAAE,SAAOC,EAAE,cAAc,OAAMH,EAAE,EAAC,OAAM,SAAQ,QAAO,SAAQ,SAAQ,aAAY,aAAY,KAAI,MAAK,QAAO,OAAM,8BAA6B,OAAM,gBAAe,KAAIF,EAAC,GAAEO,CAAC,GAAEF,EAAE,cAAc,QAAO,EAAC,GAAE,4CAA2C,QAAO,gBAAe,eAAc,SAAQ,gBAAe,QAAO,CAAC,CAAC;AAAC,GAAEG,IAAEC,EAAEN,CAAC;AAAK,IAACO,IAAEF;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { forwardRef as c } from "react";
|
|
3
|
+
import { IconoirContext as p } from "../IconoirContext.js";
|
|
4
|
+
var s = Object.defineProperty, a = Object.getOwnPropertySymbols, u = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable, i = (t, r, e) => r in t ? s(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e, n = (t, r) => {
|
|
5
|
+
for (var e in r || (r = {})) u.call(r, e) && i(t, e, r[e]);
|
|
6
|
+
if (a) for (var e of a(r)) f.call(r, e) && i(t, e, r[e]);
|
|
7
|
+
return t;
|
|
8
|
+
};
|
|
9
|
+
const m = (t, r) => {
|
|
10
|
+
const e = o.useContext(p), l = n(n({}, e), t);
|
|
11
|
+
return o.createElement("svg", n({ width: "1.5em", height: "1.5em", viewBox: "0 0 24 24", strokeWidth: 1.5, fill: "none", xmlns: "http://www.w3.org/2000/svg", color: "currentColor", ref: r }, l), o.createElement("path", { d: "M6.00005 19L19 5.99996M19 5.99996V18.48M19 5.99996H6.52005", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
12
|
+
}, v = c(m);
|
|
13
|
+
var d = v;
|
|
14
|
+
export {
|
|
15
|
+
d as default
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=ArrowUpRight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowUpRight.js","sources":["../../../../../../node_modules/iconoir-react/dist/esm/regular/ArrowUpRight.mjs"],"sourcesContent":["\"use client\";var p=Object.defineProperty;var s=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;var i=(t,o,r)=>o in t?p(t,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[o]=r,e=(t,o)=>{for(var r in o||(o={}))f.call(o,r)&&i(t,r,o[r]);if(s)for(var r of s(o))c.call(o,r)&&i(t,r,o[r]);return t};import*as n from\"react\";import{forwardRef as l}from\"react\";import{IconoirContext as d}from\"../IconoirContext.mjs\";const u=(t,o)=>{const r=n.useContext(d),m=e(e({},r),t);return n.createElement(\"svg\",e({width:\"1.5em\",height:\"1.5em\",viewBox:\"0 0 24 24\",strokeWidth:1.5,fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",color:\"currentColor\",ref:o},m),n.createElement(\"path\",{d:\"M6.00005 19L19 5.99996M19 5.99996V18.48M19 5.99996H6.52005\",stroke:\"currentColor\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}))},w=l(u);var h=w;export{h as default};\n"],"names":["p","s","f","c","o","r","e","u","t","n","d","m","w","l","h"],"mappings":";;;AAAa,IAAIA,IAAE,OAAO,gBAAmBC,IAAE,OAAO,uBAA0BC,IAAE,OAAO,UAAU,gBAAeC,IAAE,OAAO,UAAU,sBAAyB,IAAE,CAAC,GAAEC,GAAEC,MAAID,KAAK,IAAEJ,EAAE,GAAEI,GAAE,EAAC,YAAW,IAAG,cAAa,IAAG,UAAS,IAAG,OAAMC,EAAC,CAAC,IAAE,EAAED,CAAC,IAAEC,GAAEC,IAAE,CAAC,GAAEF,MAAI;AAAC,WAAQC,KAAKD,MAAIA,IAAE,CAAA,GAAI,CAAAF,EAAE,KAAKE,GAAEC,CAAC,KAAG,EAAE,GAAEA,GAAED,EAAEC,CAAC,CAAC;AAAE,MAAGJ,EAAE,UAAQI,KAAKJ,EAAEG,CAAC,EAAE,CAAAD,EAAE,KAAKC,GAAEC,CAAC,KAAG,EAAE,GAAEA,GAAED,EAAEC,CAAC,CAAC;AAAE,SAAO;AAAC;AAAoH,MAAME,IAAE,CAACC,GAAEJ,MAAI;AAAC,QAAMC,IAAEI,EAAE,WAAWC,CAAC,GAAEC,IAAEL,EAAEA,EAAE,CAAA,GAAGD,CAAC,GAAEG,CAAC;AAAE,SAAOC,EAAE,cAAc,OAAMH,EAAE,EAAC,OAAM,SAAQ,QAAO,SAAQ,SAAQ,aAAY,aAAY,KAAI,MAAK,QAAO,OAAM,8BAA6B,OAAM,gBAAe,KAAIF,EAAC,GAAEO,CAAC,GAAEF,EAAE,cAAc,QAAO,EAAC,GAAE,8DAA6D,QAAO,gBAAe,eAAc,SAAQ,gBAAe,QAAO,CAAC,CAAC;AAAC,GAAEG,IAAEC,EAAEN,CAAC;AAAK,IAACO,IAAEF;","x_google_ignoreList":[0]}
|