@still-void/ui 3.5.0 → 3.6.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/CHANGELOG.md +71 -0
- package/README.md +36 -0
- package/dist/css/app-shell.css +129 -0
- package/dist/css/base.css +27 -0
- package/dist/css/content.css +726 -0
- package/dist/css/controls.css +383 -0
- package/dist/css/data.css +190 -0
- package/dist/css/forms.css +318 -0
- package/dist/css/motion.css +49 -0
- package/dist/css/overlays.css +488 -0
- package/dist/css/toast.css +170 -0
- package/dist/react/_modules/behaviors/themeManager.js +10 -0
- package/dist/react/_modules/behaviors/themeManager.js.map +1 -0
- package/dist/react/_modules/components/ui/alert.js +14 -0
- package/dist/react/_modules/components/ui/alert.js.map +1 -0
- package/dist/react/_modules/components/ui/badge.js +9 -0
- package/dist/react/_modules/components/ui/badge.js.map +1 -0
- package/dist/react/_modules/components/ui/button.js +9 -0
- package/dist/react/_modules/components/ui/button.js.map +1 -0
- package/dist/react/_modules/components/ui/card.js +19 -0
- package/dist/react/_modules/components/ui/card.js.map +1 -0
- package/dist/react/_modules/components/ui/chart.js +18 -0
- package/dist/react/_modules/components/ui/chart.js.map +1 -0
- package/dist/react/_modules/components/ui/checkbox.js +8 -0
- package/dist/react/_modules/components/ui/checkbox.js.map +1 -0
- package/dist/react/_modules/components/ui/field.js +9 -0
- package/dist/react/_modules/components/ui/field.js.map +1 -0
- package/dist/react/_modules/components/ui/file-input.js +10 -0
- package/dist/react/_modules/components/ui/file-input.js.map +1 -0
- package/dist/react/_modules/components/ui/icon-set.js +11 -0
- package/dist/react/_modules/components/ui/icon-set.js.map +1 -0
- package/dist/react/_modules/components/ui/icon.js +9 -0
- package/dist/react/_modules/components/ui/icon.js.map +1 -0
- package/dist/react/_modules/components/ui/input.js +10 -0
- package/dist/react/_modules/components/ui/input.js.map +1 -0
- package/dist/react/_modules/components/ui/native-select.js +10 -0
- package/dist/react/_modules/components/ui/native-select.js.map +1 -0
- package/dist/react/_modules/components/ui/pagination.js +23 -0
- package/dist/react/_modules/components/ui/pagination.js.map +1 -0
- package/dist/react/_modules/components/ui/progress.js +8 -0
- package/dist/react/_modules/components/ui/progress.js.map +1 -0
- package/dist/react/_modules/components/ui/radio-group.js +12 -0
- package/dist/react/_modules/components/ui/radio-group.js.map +1 -0
- package/dist/react/_modules/components/ui/separator.js +8 -0
- package/dist/react/_modules/components/ui/separator.js.map +1 -0
- package/dist/react/_modules/components/ui/slot.js +7 -0
- package/dist/react/_modules/components/ui/slot.js.map +1 -0
- package/dist/react/_modules/components/ui/table.js +23 -0
- package/dist/react/_modules/components/ui/table.js.map +1 -0
- package/dist/react/_modules/components/ui/text-link.js +10 -0
- package/dist/react/_modules/components/ui/text-link.js.map +1 -0
- package/dist/react/_modules/components/ui/textarea.js +10 -0
- package/dist/react/_modules/components/ui/textarea.js.map +1 -0
- package/dist/react/_modules/lib/safe-href.js +9 -0
- package/dist/react/_modules/lib/safe-href.js.map +1 -0
- package/dist/react/_modules/lib/utils.js +7 -0
- package/dist/react/_modules/lib/utils.js.map +1 -0
- package/dist/react/_modules/react/components/Article.js +17 -0
- package/dist/react/_modules/react/components/Article.js.map +1 -0
- package/dist/react/_modules/react/components/Content.js +30 -0
- package/dist/react/_modules/react/components/Content.js.map +1 -0
- package/dist/react/_modules/react/components/PageHeader.js +8 -0
- package/dist/react/_modules/react/components/PageHeader.js.map +1 -0
- package/dist/react/_modules/react/components/Shell.js +17 -0
- package/dist/react/_modules/react/components/Shell.js.map +1 -0
- package/dist/react/_modules/react/components/ThemeScript.js +9 -0
- package/dist/react/_modules/react/components/ThemeScript.js.map +1 -0
- package/dist/react/_modules/recipes/article.js +34 -0
- package/dist/react/_modules/recipes/article.js.map +1 -0
- package/dist/react/_modules/recipes/content.js +34 -0
- package/dist/react/_modules/recipes/content.js.map +1 -0
- package/dist/react/_modules/recipes/cx.js +7 -0
- package/dist/react/_modules/recipes/cx.js.map +1 -0
- package/dist/react/_modules/recipes/field.js +12 -0
- package/dist/react/_modules/recipes/field.js.map +1 -0
- package/dist/react/_modules/recipes/shell.js +18 -0
- package/dist/react/_modules/recipes/shell.js.map +1 -0
- package/dist/react/_modules/recipes/table.js +9 -0
- package/dist/react/_modules/recipes/table.js.map +1 -0
- package/dist/react/_modules/tokens/categories.js +12 -0
- package/dist/react/_modules/tokens/categories.js.map +1 -0
- package/dist/react/_modules/tokens/colors.js +23 -0
- package/dist/react/_modules/tokens/colors.js.map +1 -0
- package/dist/react/_modules/tokens/motion.js +9 -0
- package/dist/react/_modules/tokens/motion.js.map +1 -0
- package/dist/react/_modules/tokens/spacing.js +9 -0
- package/dist/react/_modules/tokens/spacing.js.map +1 -0
- package/dist/react/_modules/tokens/typography.js +15 -0
- package/dist/react/_modules/tokens/typography.js.map +1 -0
- package/dist/react/_modules/tokens/zIndex.js +7 -0
- package/dist/react/_modules/tokens/zIndex.js.map +1 -0
- package/dist/react/chunk-2QRW4J2C.js +29 -0
- package/dist/react/chunk-2QRW4J2C.js.map +1 -0
- package/dist/react/chunk-3BWBG3BR.js +82 -0
- package/dist/react/chunk-3BWBG3BR.js.map +1 -0
- package/dist/react/chunk-563PKHIJ.js +48 -0
- package/dist/react/chunk-563PKHIJ.js.map +1 -0
- package/dist/react/chunk-5RPXXOD7.js +50 -0
- package/dist/react/chunk-5RPXXOD7.js.map +1 -0
- package/dist/react/chunk-6PF2SFKH.js +54 -0
- package/dist/react/chunk-6PF2SFKH.js.map +1 -0
- package/dist/react/chunk-7JIE3YAY.js +109 -0
- package/dist/react/chunk-7JIE3YAY.js.map +1 -0
- package/dist/react/chunk-7ZVSFBDK.js +26 -0
- package/dist/react/chunk-7ZVSFBDK.js.map +1 -0
- package/dist/react/chunk-AVAJOAL5.js +10 -0
- package/dist/react/chunk-AVAJOAL5.js.map +1 -0
- package/dist/react/chunk-BXKXO6FU.js +34 -0
- package/dist/react/chunk-BXKXO6FU.js.map +1 -0
- package/dist/react/chunk-CN3PNEZL.js +80 -0
- package/dist/react/chunk-CN3PNEZL.js.map +1 -0
- package/dist/react/chunk-EHJDOUXR.js +144 -0
- package/dist/react/chunk-EHJDOUXR.js.map +1 -0
- package/dist/react/chunk-FX2E23UV.js +28 -0
- package/dist/react/chunk-FX2E23UV.js.map +1 -0
- package/dist/react/chunk-GYGMM6RW.js +20 -0
- package/dist/react/chunk-GYGMM6RW.js.map +1 -0
- package/dist/react/chunk-H7DEOO3V.js +29 -0
- package/dist/react/chunk-H7DEOO3V.js.map +1 -0
- package/dist/react/chunk-HD7O5FNH.js +39 -0
- package/dist/react/chunk-HD7O5FNH.js.map +1 -0
- package/dist/react/chunk-HYLCMS2U.js +28 -0
- package/dist/react/chunk-HYLCMS2U.js.map +1 -0
- package/dist/react/chunk-HYXG2WF4.js +73 -0
- package/dist/react/chunk-HYXG2WF4.js.map +1 -0
- package/dist/react/chunk-KQK7SZ3K.js +52 -0
- package/dist/react/chunk-KQK7SZ3K.js.map +1 -0
- package/dist/react/chunk-KQZBK3XX.js +24 -0
- package/dist/react/chunk-KQZBK3XX.js.map +1 -0
- package/dist/react/chunk-L6WPFLSD.js +39 -0
- package/dist/react/chunk-L6WPFLSD.js.map +1 -0
- package/dist/react/chunk-LOVNG6RF.js +9 -0
- package/dist/react/chunk-LOVNG6RF.js.map +1 -0
- package/dist/react/chunk-M5FFVQKK.js +41 -0
- package/dist/react/chunk-M5FFVQKK.js.map +1 -0
- package/dist/react/chunk-MZEFPODP.js +77 -0
- package/dist/react/chunk-MZEFPODP.js.map +1 -0
- package/dist/react/chunk-NJQN37EG.js +37 -0
- package/dist/react/chunk-NJQN37EG.js.map +1 -0
- package/dist/react/chunk-OEFJMV7G.js +144 -0
- package/dist/react/chunk-OEFJMV7G.js.map +1 -0
- package/dist/react/chunk-P4M4LEI2.js +62 -0
- package/dist/react/chunk-P4M4LEI2.js.map +1 -0
- package/dist/react/chunk-PGDHKADW.js +60 -0
- package/dist/react/chunk-PGDHKADW.js.map +1 -0
- package/dist/react/chunk-QTVPXQ43.js +29 -0
- package/dist/react/chunk-QTVPXQ43.js.map +1 -0
- package/dist/react/chunk-QVOZHMVF.js +14 -0
- package/dist/react/chunk-QVOZHMVF.js.map +1 -0
- package/dist/react/chunk-SJ2YK4NJ.js +27 -0
- package/dist/react/chunk-SJ2YK4NJ.js.map +1 -0
- package/dist/react/chunk-SSMGCYPH.js +79 -0
- package/dist/react/chunk-SSMGCYPH.js.map +1 -0
- package/dist/react/chunk-SUT4G3TE.js +29 -0
- package/dist/react/chunk-SUT4G3TE.js.map +1 -0
- package/dist/react/chunk-SVLIJGBZ.js +14 -0
- package/dist/react/chunk-SVLIJGBZ.js.map +1 -0
- package/dist/react/chunk-SY7EEIC3.js +100 -0
- package/dist/react/chunk-SY7EEIC3.js.map +1 -0
- package/dist/react/chunk-TI3OPDCN.js +25 -0
- package/dist/react/chunk-TI3OPDCN.js.map +1 -0
- package/dist/react/chunk-U6L6J73Y.js +27 -0
- package/dist/react/chunk-U6L6J73Y.js.map +1 -0
- package/dist/react/chunk-VD5O66DN.js +54 -0
- package/dist/react/chunk-VD5O66DN.js.map +1 -0
- package/dist/react/chunk-YDGOXO6Q.js +74 -0
- package/dist/react/chunk-YDGOXO6Q.js.map +1 -0
- package/dist/react/chunk-YTTFCX3E.js +16 -0
- package/dist/react/chunk-YTTFCX3E.js.map +1 -0
- package/dist/react/chunk-YXV3UEL5.js +27 -0
- package/dist/react/chunk-YXV3UEL5.js.map +1 -0
- package/dist/react/client/_modules/behaviors/clipboard.js +8 -0
- package/dist/react/client/_modules/behaviors/clipboard.js.map +1 -0
- package/dist/react/client/_modules/behaviors/mediaQuery.js +8 -0
- package/dist/react/client/_modules/behaviors/mediaQuery.js.map +1 -0
- package/dist/react/client/_modules/behaviors/readingProgress.js +10 -0
- package/dist/react/client/_modules/behaviors/readingProgress.js.map +1 -0
- package/dist/react/client/_modules/behaviors/scrollSpy.js +8 -0
- package/dist/react/client/_modules/behaviors/scrollSpy.js.map +1 -0
- package/dist/react/client/_modules/behaviors/themeManager.js +11 -0
- package/dist/react/client/_modules/behaviors/themeManager.js.map +1 -0
- package/dist/react/client/_modules/components/ui/alert-dialog.js +30 -0
- package/dist/react/client/_modules/components/ui/alert-dialog.js.map +1 -0
- package/dist/react/client/_modules/components/ui/bottom-sheet.js +28 -0
- package/dist/react/client/_modules/components/ui/bottom-sheet.js.map +1 -0
- package/dist/react/client/_modules/components/ui/combobox.js +13 -0
- package/dist/react/client/_modules/components/ui/combobox.js.map +1 -0
- package/dist/react/client/_modules/components/ui/dialog.js +30 -0
- package/dist/react/client/_modules/components/ui/dialog.js.map +1 -0
- package/dist/react/client/_modules/components/ui/dropdown-menu.js +39 -0
- package/dist/react/client/_modules/components/ui/dropdown-menu.js.map +1 -0
- package/dist/react/client/_modules/components/ui/icon-set.js +12 -0
- package/dist/react/client/_modules/components/ui/icon-set.js.map +1 -0
- package/dist/react/client/_modules/components/ui/icon.js +10 -0
- package/dist/react/client/_modules/components/ui/icon.js.map +1 -0
- package/dist/react/client/_modules/components/ui/restore-focus.js +8 -0
- package/dist/react/client/_modules/components/ui/restore-focus.js.map +1 -0
- package/dist/react/client/_modules/components/ui/select.js +29 -0
- package/dist/react/client/_modules/components/ui/select.js.map +1 -0
- package/dist/react/client/_modules/components/ui/tabs.js +15 -0
- package/dist/react/client/_modules/components/ui/tabs.js.map +1 -0
- package/dist/react/client/_modules/components/ui/tooltip.js +15 -0
- package/dist/react/client/_modules/components/ui/tooltip.js.map +1 -0
- package/dist/react/client/_modules/lib/utils.js +8 -0
- package/dist/react/client/_modules/lib/utils.js.map +1 -0
- package/dist/react/client/_modules/react/client/CopyButton.js +11 -0
- package/dist/react/client/_modules/react/client/CopyButton.js.map +1 -0
- package/dist/react/client/_modules/react/client/ReadingProgress.js +14 -0
- package/dist/react/client/_modules/react/client/ReadingProgress.js.map +1 -0
- package/dist/react/client/_modules/react/client/SidebarProvider.js +26 -0
- package/dist/react/client/_modules/react/client/SidebarProvider.js.map +1 -0
- package/dist/react/client/_modules/react/client/TableOfContents.js +14 -0
- package/dist/react/client/_modules/react/client/TableOfContents.js.map +1 -0
- package/dist/react/client/_modules/react/client/ThemeProvider.js +12 -0
- package/dist/react/client/_modules/react/client/ThemeProvider.js.map +1 -0
- package/dist/react/client/_modules/react/client/ThemeToggle.js +14 -0
- package/dist/react/client/_modules/react/client/ThemeToggle.js.map +1 -0
- package/dist/react/client/_modules/react/client/ToastProvider.js +14 -0
- package/dist/react/client/_modules/react/client/ToastProvider.js.map +1 -0
- package/dist/react/client/_modules/react/client/hooks.js +17 -0
- package/dist/react/client/_modules/react/client/hooks.js.map +1 -0
- package/dist/react/client/_modules/react/client/shadcn.js +160 -0
- package/dist/react/client/_modules/react/client/shadcn.js.map +1 -0
- package/dist/react/client/_modules/recipes/article.js +35 -0
- package/dist/react/client/_modules/recipes/article.js.map +1 -0
- package/dist/react/client/_modules/recipes/cx.js +8 -0
- package/dist/react/client/_modules/recipes/cx.js.map +1 -0
- package/dist/react/client/_modules/recipes/field.js +13 -0
- package/dist/react/client/_modules/recipes/field.js.map +1 -0
- package/dist/react/client/_modules/tokens/colors.js +24 -0
- package/dist/react/client/_modules/tokens/colors.js.map +1 -0
- package/dist/react/client/chunk-3MVZ2ES4.js +83 -0
- package/dist/react/client/chunk-3MVZ2ES4.js.map +1 -0
- package/dist/react/client/chunk-7AU2DPOL.js +35 -0
- package/dist/react/client/chunk-7AU2DPOL.js.map +1 -0
- package/dist/react/client/chunk-ABWCVXOO.js +11 -0
- package/dist/react/client/chunk-ABWCVXOO.js.map +1 -0
- package/dist/react/client/chunk-AEXJWMUV.js +52 -0
- package/dist/react/client/chunk-AEXJWMUV.js.map +1 -0
- package/dist/react/client/chunk-CJQZ4BGO.js +125 -0
- package/dist/react/client/chunk-CJQZ4BGO.js.map +1 -0
- package/dist/react/client/chunk-CMMPIPNC.js +30 -0
- package/dist/react/client/chunk-CMMPIPNC.js.map +1 -0
- package/dist/react/client/chunk-CWA3N5RK.js +123 -0
- package/dist/react/client/chunk-CWA3N5RK.js.map +1 -0
- package/dist/react/client/chunk-ECOPTUZT.js +102 -0
- package/dist/react/client/chunk-ECOPTUZT.js.map +1 -0
- package/dist/react/client/chunk-GD7XJWKF.js +102 -0
- package/dist/react/client/chunk-GD7XJWKF.js.map +1 -0
- package/dist/react/client/chunk-JVVNV4DF.js +95 -0
- package/dist/react/client/chunk-JVVNV4DF.js.map +1 -0
- package/dist/react/client/chunk-LDOUB5IA.js +40 -0
- package/dist/react/client/chunk-LDOUB5IA.js.map +1 -0
- package/dist/react/client/chunk-M5QFSQYC.js +40 -0
- package/dist/react/client/chunk-M5QFSQYC.js.map +1 -0
- package/dist/react/client/chunk-MGR4F2BJ.js +67 -0
- package/dist/react/client/chunk-MGR4F2BJ.js.map +1 -0
- package/dist/react/client/chunk-MYTOL2RH.js +61 -0
- package/dist/react/client/chunk-MYTOL2RH.js.map +1 -0
- package/dist/react/client/chunk-N64GC5ZU.js +12 -0
- package/dist/react/client/chunk-N64GC5ZU.js.map +1 -0
- package/dist/react/client/chunk-NEAL74VV.js +130 -0
- package/dist/react/client/chunk-NEAL74VV.js.map +1 -0
- package/dist/react/client/chunk-OF6BMW2X.js +30 -0
- package/dist/react/client/chunk-OF6BMW2X.js.map +1 -0
- package/dist/react/client/chunk-OILITPDP.js +72 -0
- package/dist/react/client/chunk-OILITPDP.js.map +1 -0
- package/dist/react/client/chunk-OU4ACOFA.js +75 -0
- package/dist/react/client/chunk-OU4ACOFA.js.map +1 -0
- package/dist/react/client/chunk-OVMH25G3.js +23 -0
- package/dist/react/client/chunk-OVMH25G3.js.map +1 -0
- package/dist/react/client/chunk-P2UPL6Y3.js +205 -0
- package/dist/react/client/chunk-P2UPL6Y3.js.map +1 -0
- package/dist/react/client/chunk-PAOYY55O.js +41 -0
- package/dist/react/client/chunk-PAOYY55O.js.map +1 -0
- package/dist/react/client/chunk-PYG5NCEU.js +54 -0
- package/dist/react/client/chunk-PYG5NCEU.js.map +1 -0
- package/dist/react/client/chunk-RCZS37V5.js +239 -0
- package/dist/react/client/chunk-RCZS37V5.js.map +1 -0
- package/dist/react/client/chunk-RJFN4KXE.js +36 -0
- package/dist/react/client/chunk-RJFN4KXE.js.map +1 -0
- package/dist/react/client/chunk-RNMQZ6T2.js +62 -0
- package/dist/react/client/chunk-RNMQZ6T2.js.map +1 -0
- package/dist/react/client/chunk-TXL2US4Z.js +53 -0
- package/dist/react/client/chunk-TXL2US4Z.js.map +1 -0
- package/dist/react/client/chunk-U6FMZ32G.js +192 -0
- package/dist/react/client/chunk-U6FMZ32G.js.map +1 -0
- package/dist/react/client/chunk-WR7KQGBM.js +2 -0
- package/dist/react/client/chunk-WR7KQGBM.js.map +1 -0
- package/dist/react/client/chunk-XHL4YEVA.js +17 -0
- package/dist/react/client/chunk-XHL4YEVA.js.map +1 -0
- package/dist/react/client/index.cjs +400 -81
- package/dist/react/client/index.cjs.map +1 -1
- package/dist/react/client/index.d.cts +86 -5
- package/dist/react/client/index.d.ts +86 -5
- package/dist/react/client/index.js +141 -1426
- package/dist/react/client/index.js.map +1 -1
- package/dist/react/index.cjs +368 -183
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +202 -23
- package/dist/react/index.d.ts +202 -23
- package/dist/react/index.js +206 -1231
- package/dist/react/index.js.map +1 -1
- package/dist/shadcn-overrides.css +27 -13
- package/dist/style.css +327 -25
- package/dist/theme.css +73 -24
- package/package.json +36 -6
|
@@ -1,1432 +1,144 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
// src/react/client/ThemeProvider.tsx
|
|
2
|
+
import "./chunk-WR7KQGBM.js";
|
|
4
3
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
bg: "#0A0A0C",
|
|
17
|
-
bgElev: "#111114",
|
|
18
|
-
surface: "#16161B",
|
|
19
|
-
surface2: "#1C1C22",
|
|
20
|
-
border: "rgba(255,255,255,0.08)",
|
|
21
|
-
borderStrong: "rgba(255,255,255,0.14)",
|
|
22
|
-
// WCAG 1.4.11: edge of an input/select/checkbox must read ≥3:1 on every surface; the
|
|
23
|
-
// decorative borders above sit near 1.5:1 and stay decorative.
|
|
24
|
-
controlBorder: "#6B6B76",
|
|
25
|
-
text: "#EDEDF0",
|
|
26
|
-
text2: "#8B8B96",
|
|
27
|
-
// Corrected from #5A5A66 (~2.6:1 on surface) to meet WCAG AA 4.5:1 — text3 is used for
|
|
28
|
-
// real copy (metadata, TOC links), not decoration, so it must be readable, not just muted.
|
|
29
|
-
text3: "#83838F"
|
|
30
|
-
},
|
|
31
|
-
light: {
|
|
32
|
-
bg: "#F7F7F5",
|
|
33
|
-
bgElev: "#FFFFFF",
|
|
34
|
-
surface: "#FFFFFF",
|
|
35
|
-
surface2: "#F2F2EF",
|
|
36
|
-
border: "rgba(0,0,0,0.08)",
|
|
37
|
-
borderStrong: "rgba(0,0,0,0.14)",
|
|
38
|
-
controlBorder: "#85858E",
|
|
39
|
-
text: "#16161B",
|
|
40
|
-
text2: "#5A5A66",
|
|
41
|
-
// Corrected from #8B8B96 (~3.1:1 on white) to meet WCAG AA 4.5:1, same reasoning as dark.
|
|
42
|
-
// A further step from #6F6F78 to #6D6D76: the first fix cleared white/paper (≥4.7:1) but
|
|
43
|
-
// was only ~4.44:1 against surface2 (#F2F2EF), the darkest of the light surfaces — still a
|
|
44
|
-
// failure. Verified against bg/bgElev/surface/surface2 together, not just one background.
|
|
45
|
-
text3: "#6D6D76"
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
var accents = {
|
|
49
|
-
cyan: "oklch(0.78 0.12 210)",
|
|
50
|
-
violet: "oklch(0.72 0.14 295)",
|
|
51
|
-
mint: "oklch(0.78 0.10 160)",
|
|
52
|
-
amber: "oklch(0.78 0.12 75)"
|
|
53
|
-
};
|
|
54
|
-
var themeModes = Object.keys(colors);
|
|
55
|
-
var accentNames = Object.keys(accents);
|
|
56
|
-
var DEFAULT_MODE = "dark";
|
|
57
|
-
var DEFAULT_ACCENT = "cyan";
|
|
58
|
-
|
|
59
|
-
// src/behaviors/themeManager.ts
|
|
60
|
-
var DEFAULT_STORAGE_KEY = "still-void-theme";
|
|
61
|
-
function isMode(value) {
|
|
62
|
-
return themeModes.includes(value);
|
|
63
|
-
}
|
|
64
|
-
function isAccent(value) {
|
|
65
|
-
return accentNames.includes(value);
|
|
66
|
-
}
|
|
67
|
-
function readStorage(key) {
|
|
68
|
-
try {
|
|
69
|
-
const raw = window.localStorage.getItem(key);
|
|
70
|
-
if (!raw) return {};
|
|
71
|
-
const parsed = JSON.parse(raw);
|
|
72
|
-
if (typeof parsed !== "object" || parsed === null) return {};
|
|
73
|
-
const { mode, accent } = parsed;
|
|
74
|
-
return {
|
|
75
|
-
...isMode(mode) ? { mode } : {},
|
|
76
|
-
...isAccent(accent) ? { accent } : {}
|
|
77
|
-
};
|
|
78
|
-
} catch {
|
|
79
|
-
return {};
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
function createThemeManager(options = {}) {
|
|
83
|
-
const root = options.root ?? document.documentElement;
|
|
84
|
-
const storageKey = options.storageKey === null ? null : options.storageKey ?? DEFAULT_STORAGE_KEY;
|
|
85
|
-
const ssrMode = root.getAttribute("data-theme");
|
|
86
|
-
const ssrAccent = root.getAttribute("data-accent");
|
|
87
|
-
const stored = storageKey ? readStorage(storageKey) : {};
|
|
88
|
-
let state = {
|
|
89
|
-
mode: stored.mode ?? (isMode(ssrMode) ? ssrMode : options.defaultMode ?? DEFAULT_MODE),
|
|
90
|
-
accent: stored.accent ?? (isAccent(ssrAccent) ? ssrAccent : options.defaultAccent ?? DEFAULT_ACCENT)
|
|
91
|
-
};
|
|
92
|
-
const listeners = /* @__PURE__ */ new Set();
|
|
93
|
-
function apply() {
|
|
94
|
-
root.setAttribute("data-theme", state.mode);
|
|
95
|
-
root.setAttribute("data-accent", state.accent);
|
|
96
|
-
if (storageKey) {
|
|
97
|
-
try {
|
|
98
|
-
window.localStorage.setItem(storageKey, JSON.stringify(state));
|
|
99
|
-
} catch {
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
for (const listener of listeners) listener(state);
|
|
103
|
-
}
|
|
104
|
-
apply();
|
|
105
|
-
return {
|
|
106
|
-
getState: () => state,
|
|
107
|
-
setMode(mode) {
|
|
108
|
-
state = { ...state, mode };
|
|
109
|
-
apply();
|
|
110
|
-
},
|
|
111
|
-
setAccent(accent) {
|
|
112
|
-
state = { ...state, accent };
|
|
113
|
-
apply();
|
|
114
|
-
},
|
|
115
|
-
toggleMode() {
|
|
116
|
-
state = { ...state, mode: state.mode === "dark" ? "light" : "dark" };
|
|
117
|
-
apply();
|
|
118
|
-
},
|
|
119
|
-
subscribe(listener) {
|
|
120
|
-
listeners.add(listener);
|
|
121
|
-
return () => listeners.delete(listener);
|
|
122
|
-
},
|
|
123
|
-
destroy() {
|
|
124
|
-
listeners.clear();
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// src/react/client/ThemeProvider.tsx
|
|
130
|
-
import { jsx } from "react/jsx-runtime";
|
|
131
|
-
var ThemeContext = createContext(null);
|
|
132
|
-
function ThemeProvider({
|
|
133
|
-
children,
|
|
134
|
-
defaultMode = DEFAULT_MODE,
|
|
135
|
-
defaultAccent = DEFAULT_ACCENT,
|
|
136
|
-
storageKey
|
|
137
|
-
}) {
|
|
138
|
-
const managerRef = useRef(null);
|
|
139
|
-
const [state, setState] = useState({ mode: defaultMode, accent: defaultAccent });
|
|
140
|
-
useEffect(() => {
|
|
141
|
-
const manager = createThemeManager({ defaultMode, defaultAccent, storageKey });
|
|
142
|
-
managerRef.current = manager;
|
|
143
|
-
setState(manager.getState());
|
|
144
|
-
const unsubscribe = manager.subscribe(setState);
|
|
145
|
-
return () => {
|
|
146
|
-
unsubscribe();
|
|
147
|
-
manager.destroy();
|
|
148
|
-
managerRef.current = null;
|
|
149
|
-
};
|
|
150
|
-
}, []);
|
|
151
|
-
const value = useMemo(
|
|
152
|
-
() => ({
|
|
153
|
-
mode: state.mode,
|
|
154
|
-
accent: state.accent,
|
|
155
|
-
setMode: (mode) => managerRef.current?.setMode(mode),
|
|
156
|
-
setAccent: (accent) => managerRef.current?.setAccent(accent),
|
|
157
|
-
toggleMode: () => managerRef.current?.toggleMode()
|
|
158
|
-
}),
|
|
159
|
-
[state]
|
|
160
|
-
);
|
|
161
|
-
return /* @__PURE__ */ jsx(ThemeContext.Provider, { value, children });
|
|
162
|
-
}
|
|
163
|
-
function useTheme() {
|
|
164
|
-
const ctx = useContext(ThemeContext);
|
|
165
|
-
if (!ctx) throw new Error("useTheme must be used within ThemeProvider");
|
|
166
|
-
return ctx;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// src/recipes/cx.ts
|
|
170
|
-
function cx(...parts) {
|
|
171
|
-
return parts.filter(Boolean).join(" ");
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// src/react/client/ThemeToggle.tsx
|
|
175
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
176
|
-
function ThemeToggle({ className, ...rest }) {
|
|
177
|
-
const { mode, toggleMode } = useTheme();
|
|
178
|
-
const next = mode === "dark" ? "light" : "dark";
|
|
179
|
-
return /* @__PURE__ */ jsx2(
|
|
180
|
-
"button",
|
|
181
|
-
{
|
|
182
|
-
type: "button",
|
|
183
|
-
onClick: toggleMode,
|
|
184
|
-
className: cx("sv-header__link", className),
|
|
185
|
-
"aria-label": `Switch to ${next} theme`,
|
|
186
|
-
...rest,
|
|
187
|
-
children: mode === "dark" ? "Light" : "Dark"
|
|
188
|
-
}
|
|
189
|
-
);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
// src/react/client/CopyButton.tsx
|
|
193
|
-
import { useEffect as useEffect2, useRef as useRef2, useState as useState2 } from "react";
|
|
194
|
-
|
|
195
|
-
// src/behaviors/clipboard.ts
|
|
196
|
-
async function copyToClipboard(text) {
|
|
197
|
-
if (typeof navigator === "undefined" || !navigator.clipboard?.writeText) return false;
|
|
198
|
-
try {
|
|
199
|
-
await navigator.clipboard.writeText(text);
|
|
200
|
-
return true;
|
|
201
|
-
} catch {
|
|
202
|
-
return false;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
// src/recipes/article.ts
|
|
207
|
-
var codeBlockClasses = {
|
|
208
|
-
header: "sv-code-block__header",
|
|
209
|
-
pre: "sv-code-block__pre",
|
|
210
|
-
copy: "sv-code-block__copy",
|
|
211
|
-
copyCopied: cx("sv-code-block__copy", "sv-code-block__copy--copied")
|
|
212
|
-
};
|
|
213
|
-
function tableOfContents() {
|
|
214
|
-
return "sv-toc";
|
|
215
|
-
}
|
|
216
|
-
function tocLink(options = {}) {
|
|
217
|
-
return cx(
|
|
218
|
-
"sv-toc__link",
|
|
219
|
-
options.active && "sv-toc__link--active",
|
|
220
|
-
options.depth === 3 && "sv-toc__link--depth-3"
|
|
221
|
-
);
|
|
222
|
-
}
|
|
223
|
-
function readingProgress() {
|
|
224
|
-
return "sv-reading-progress";
|
|
225
|
-
}
|
|
226
|
-
var readingProgressClasses = {
|
|
227
|
-
bar: "sv-reading-progress__bar"
|
|
228
|
-
};
|
|
229
|
-
var READING_PROGRESS_VAR = "--sv-reading-progress";
|
|
230
|
-
|
|
231
|
-
// src/react/client/CopyButton.tsx
|
|
232
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
233
|
-
var COPIED_FEEDBACK_MS = 2e3;
|
|
234
|
-
function CopyButton({
|
|
235
|
-
code,
|
|
236
|
-
label = "Copy",
|
|
237
|
-
copiedLabel = "Copied",
|
|
238
|
-
className,
|
|
239
|
-
...rest
|
|
240
|
-
}) {
|
|
241
|
-
const [copied, setCopied] = useState2(false);
|
|
242
|
-
const timerRef = useRef2(null);
|
|
243
|
-
useEffect2(
|
|
244
|
-
() => () => {
|
|
245
|
-
if (timerRef.current) clearTimeout(timerRef.current);
|
|
246
|
-
},
|
|
247
|
-
[]
|
|
248
|
-
);
|
|
249
|
-
async function handleCopy() {
|
|
250
|
-
const ok = await copyToClipboard(code);
|
|
251
|
-
if (!ok) return;
|
|
252
|
-
setCopied(true);
|
|
253
|
-
if (timerRef.current) clearTimeout(timerRef.current);
|
|
254
|
-
timerRef.current = setTimeout(() => setCopied(false), COPIED_FEEDBACK_MS);
|
|
255
|
-
}
|
|
256
|
-
return /* @__PURE__ */ jsx3(
|
|
257
|
-
"button",
|
|
258
|
-
{
|
|
259
|
-
type: "button",
|
|
260
|
-
onClick: handleCopy,
|
|
261
|
-
className: cx(copied ? codeBlockClasses.copyCopied : codeBlockClasses.copy, className),
|
|
262
|
-
"aria-live": "polite",
|
|
263
|
-
...rest,
|
|
264
|
-
children: copied ? copiedLabel : label
|
|
265
|
-
}
|
|
266
|
-
);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
// src/react/client/TableOfContents.tsx
|
|
270
|
-
import { useMemo as useMemo2 } from "react";
|
|
271
|
-
|
|
272
|
-
// src/react/client/hooks.ts
|
|
273
|
-
import { useEffect as useEffect3, useSyncExternalStore, useState as useState3 } from "react";
|
|
274
|
-
|
|
275
|
-
// src/behaviors/mediaQuery.ts
|
|
276
|
-
function createMediaQuery(query) {
|
|
277
|
-
if (typeof window === "undefined" || !window.matchMedia) {
|
|
278
|
-
return {
|
|
279
|
-
getSnapshot: () => false,
|
|
280
|
-
subscribe: () => () => {
|
|
281
|
-
},
|
|
282
|
-
// no-op unsubscribe
|
|
283
|
-
destroy: () => {
|
|
284
|
-
}
|
|
285
|
-
// no-op
|
|
286
|
-
};
|
|
287
|
-
}
|
|
288
|
-
const mql = window.matchMedia(query);
|
|
289
|
-
const listeners = [];
|
|
290
|
-
let currentMatches = mql.matches;
|
|
291
|
-
let attached = false;
|
|
292
|
-
const handleChange = () => {
|
|
293
|
-
const newMatches = mql.matches;
|
|
294
|
-
if (newMatches !== currentMatches) {
|
|
295
|
-
currentMatches = newMatches;
|
|
296
|
-
for (const listener of [...listeners]) {
|
|
297
|
-
listener();
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
};
|
|
301
|
-
const attachListener = () => {
|
|
302
|
-
if (attached) return;
|
|
303
|
-
attached = true;
|
|
304
|
-
if (mql.addEventListener) {
|
|
305
|
-
mql.addEventListener("change", handleChange);
|
|
306
|
-
} else if (mql.addListener) {
|
|
307
|
-
mql.addListener(handleChange);
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
const detachListener = () => {
|
|
311
|
-
if (!attached) return;
|
|
312
|
-
attached = false;
|
|
313
|
-
if (mql.removeEventListener) {
|
|
314
|
-
mql.removeEventListener("change", handleChange);
|
|
315
|
-
} else if (mql.removeListener) {
|
|
316
|
-
mql.removeListener(handleChange);
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
|
-
return {
|
|
320
|
-
getSnapshot: () => mql.matches,
|
|
321
|
-
subscribe: (listener) => {
|
|
322
|
-
listeners.push(listener);
|
|
323
|
-
attachListener();
|
|
324
|
-
return () => {
|
|
325
|
-
const index = listeners.indexOf(listener);
|
|
326
|
-
if (index >= 0) {
|
|
327
|
-
listeners.splice(index, 1);
|
|
328
|
-
}
|
|
329
|
-
if (listeners.length === 0) {
|
|
330
|
-
detachListener();
|
|
331
|
-
}
|
|
332
|
-
};
|
|
333
|
-
},
|
|
334
|
-
destroy: () => {
|
|
335
|
-
listeners.length = 0;
|
|
336
|
-
detachListener();
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
// src/behaviors/readingProgress.ts
|
|
342
|
-
var raf = typeof window !== "undefined" && typeof window.requestAnimationFrame === "function" ? (cb) => window.requestAnimationFrame(cb) : (
|
|
343
|
-
/* v8 ignore next */
|
|
344
|
-
(cb) => setTimeout(cb, 16)
|
|
345
|
-
);
|
|
346
|
-
var cancelRaf = typeof window !== "undefined" && typeof window.cancelAnimationFrame === "function" ? (id) => window.cancelAnimationFrame(id) : (
|
|
347
|
-
/* v8 ignore next */
|
|
348
|
-
(id) => clearTimeout(id)
|
|
349
|
-
);
|
|
350
|
-
function createReadingProgress(options = {}) {
|
|
351
|
-
const varTarget = options.varTarget === null ? null : options.varTarget ?? document.documentElement;
|
|
352
|
-
let percent = 0;
|
|
353
|
-
function measure() {
|
|
354
|
-
if (options.target) {
|
|
355
|
-
const rect = options.target.getBoundingClientRect();
|
|
356
|
-
const viewport = window.innerHeight;
|
|
357
|
-
const total2 = rect.height - viewport;
|
|
358
|
-
if (total2 <= 0) return 1;
|
|
359
|
-
return Math.min(1, Math.max(0, -rect.top / total2));
|
|
360
|
-
}
|
|
361
|
-
const doc = document.documentElement;
|
|
362
|
-
const total = doc.scrollHeight - window.innerHeight;
|
|
363
|
-
if (total <= 0) return 1;
|
|
364
|
-
return Math.min(1, Math.max(0, window.scrollY / total));
|
|
365
|
-
}
|
|
366
|
-
function update() {
|
|
367
|
-
percent = measure();
|
|
368
|
-
varTarget?.style.setProperty(READING_PROGRESS_VAR, String(percent));
|
|
369
|
-
options.onChange?.(percent);
|
|
370
|
-
}
|
|
371
|
-
let frame = null;
|
|
372
|
-
function onFrame() {
|
|
373
|
-
frame = null;
|
|
374
|
-
update();
|
|
375
|
-
}
|
|
376
|
-
function schedule() {
|
|
377
|
-
if (frame !== null) return;
|
|
378
|
-
frame = raf(onFrame);
|
|
379
|
-
}
|
|
380
|
-
update();
|
|
381
|
-
window.addEventListener("scroll", schedule, { passive: true });
|
|
382
|
-
window.addEventListener("resize", schedule, { passive: true });
|
|
383
|
-
return {
|
|
384
|
-
getPercent: () => percent,
|
|
385
|
-
destroy() {
|
|
386
|
-
window.removeEventListener("scroll", schedule);
|
|
387
|
-
window.removeEventListener("resize", schedule);
|
|
388
|
-
if (frame !== null) cancelRaf(frame);
|
|
389
|
-
}
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
// src/behaviors/scrollSpy.ts
|
|
394
|
-
function createScrollSpy(ids, options) {
|
|
395
|
-
const visible = /* @__PURE__ */ new Map();
|
|
396
|
-
const observer = new IntersectionObserver(
|
|
397
|
-
(entries) => {
|
|
398
|
-
for (const entry of entries) {
|
|
399
|
-
if (entry.isIntersecting) {
|
|
400
|
-
visible.set(entry.target.id, entry.intersectionRatio);
|
|
401
|
-
} else {
|
|
402
|
-
visible.delete(entry.target.id);
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
const active = ids.find((id) => visible.has(id)) ?? null;
|
|
406
|
-
options.onChange(active);
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
rootMargin: options.rootMargin ?? "0px 0px -70% 0px",
|
|
410
|
-
threshold: options.threshold ?? 0
|
|
411
|
-
}
|
|
412
|
-
);
|
|
413
|
-
for (const id of ids) {
|
|
414
|
-
const el = document.getElementById(id);
|
|
415
|
-
if (el) observer.observe(el);
|
|
416
|
-
}
|
|
417
|
-
return {
|
|
418
|
-
destroy: () => observer.disconnect()
|
|
419
|
-
};
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
// src/react/client/hooks.ts
|
|
423
|
-
function useScrollSpy(ids, rootMargin) {
|
|
424
|
-
const [activeId, setActiveId] = useState3(null);
|
|
425
|
-
const key = ids.join("|");
|
|
426
|
-
useEffect3(() => {
|
|
427
|
-
const spy = createScrollSpy(ids, { onChange: setActiveId, rootMargin });
|
|
428
|
-
return () => spy.destroy();
|
|
429
|
-
}, [key, rootMargin]);
|
|
430
|
-
return activeId;
|
|
431
|
-
}
|
|
432
|
-
function useReadingProgress(target, step = 1) {
|
|
433
|
-
const [percent, setPercent] = useState3(0);
|
|
434
|
-
useEffect3(() => {
|
|
435
|
-
const progress = createReadingProgress({
|
|
436
|
-
target: target ?? void 0,
|
|
437
|
-
onChange: (value) => {
|
|
438
|
-
const bucket = step > 0 ? Math.round(value / step) * step : value;
|
|
439
|
-
setPercent((prev) => prev === bucket ? prev : bucket);
|
|
440
|
-
}
|
|
441
|
-
});
|
|
442
|
-
return () => progress.destroy();
|
|
443
|
-
}, [target, step]);
|
|
444
|
-
return percent;
|
|
445
|
-
}
|
|
446
|
-
function useMediaQuery(query) {
|
|
447
|
-
const mq = useSyncExternalStore(
|
|
448
|
-
// subscribe: attach listener and return unsubscribe
|
|
449
|
-
(onStoreChange) => {
|
|
450
|
-
const mediaQuery = createMediaQuery(query);
|
|
451
|
-
const unsubscribe = mediaQuery.subscribe(onStoreChange);
|
|
452
|
-
return () => {
|
|
453
|
-
unsubscribe();
|
|
454
|
-
mediaQuery.destroy();
|
|
455
|
-
};
|
|
456
|
-
},
|
|
457
|
-
// getSnapshot: return current state (after hydration)
|
|
458
|
-
() => {
|
|
459
|
-
const mediaQuery = createMediaQuery(query);
|
|
460
|
-
const matches = mediaQuery.getSnapshot();
|
|
461
|
-
mediaQuery.destroy();
|
|
462
|
-
return matches;
|
|
463
|
-
},
|
|
464
|
-
// getServerSnapshot: return initial state during SSR (desktop/false)
|
|
465
|
-
// R5-01 AC-4: SSR returns false without error
|
|
466
|
-
() => false
|
|
467
|
-
);
|
|
468
|
-
return mq;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
// src/react/client/TableOfContents.tsx
|
|
472
|
-
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
473
|
-
function TableOfContents({ items, rootMargin, className, ...rest }) {
|
|
474
|
-
const ids = useMemo2(() => items.map((item) => item.id), [items]);
|
|
475
|
-
const activeId = useScrollSpy(ids, rootMargin);
|
|
476
|
-
return /* @__PURE__ */ jsx4("nav", { className: cx(tableOfContents(), className), "aria-label": "Table of contents", ...rest, children: items.map((item) => /* @__PURE__ */ jsx4(
|
|
477
|
-
"a",
|
|
478
|
-
{
|
|
479
|
-
href: `#${item.id}`,
|
|
480
|
-
className: tocLink({ active: item.id === activeId, depth: item.depth }),
|
|
481
|
-
"aria-current": item.id === activeId ? "true" : void 0,
|
|
482
|
-
children: item.label
|
|
483
|
-
},
|
|
484
|
-
item.id
|
|
485
|
-
)) });
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
// src/react/client/ReadingProgress.tsx
|
|
489
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
490
|
-
function ReadingProgress({ target, announce, className, ...rest }) {
|
|
491
|
-
const percent = useReadingProgress(target, announce ? 0.1 : 1);
|
|
492
|
-
const a11yProps = announce ? {
|
|
493
|
-
role: "progressbar",
|
|
494
|
-
"aria-valuemin": 0,
|
|
495
|
-
"aria-valuemax": 100,
|
|
496
|
-
"aria-valuenow": Math.round(percent * 100),
|
|
497
|
-
"aria-label": "Reading progress"
|
|
498
|
-
} : { "aria-hidden": true };
|
|
499
|
-
return /* @__PURE__ */ jsx5("div", { className: cx(readingProgress(), className), ...a11yProps, ...rest, children: /* @__PURE__ */ jsx5("div", { className: readingProgressClasses.bar }) });
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
// src/react/client/ToastProvider.tsx
|
|
503
|
-
import * as React2 from "react";
|
|
504
|
-
import * as Toast from "@radix-ui/react-toast";
|
|
505
|
-
|
|
506
|
-
// src/components/ui/icon.tsx
|
|
507
|
-
import * as React from "react";
|
|
508
|
-
|
|
509
|
-
// src/lib/utils.ts
|
|
510
|
-
import { clsx } from "clsx";
|
|
511
|
-
import { twMerge } from "tailwind-merge";
|
|
512
|
-
function cn(...inputs) {
|
|
513
|
-
return twMerge(clsx(inputs));
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
// src/components/ui/icon-set.ts
|
|
4
|
+
Select,
|
|
5
|
+
SelectContent,
|
|
6
|
+
SelectGroup,
|
|
7
|
+
SelectItem,
|
|
8
|
+
SelectLabel,
|
|
9
|
+
SelectScrollDownButton,
|
|
10
|
+
SelectScrollUpButton,
|
|
11
|
+
SelectSeparator,
|
|
12
|
+
SelectTrigger,
|
|
13
|
+
SelectValue
|
|
14
|
+
} from "./chunk-CJQZ4BGO.js";
|
|
517
15
|
import {
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
SunIcon,
|
|
535
|
-
XMarkIcon
|
|
536
|
-
} from "@heroicons/react/24/outline";
|
|
537
|
-
var ICON_GLYPHS = {
|
|
538
|
-
x: XMarkIcon,
|
|
539
|
-
check: CheckIcon,
|
|
540
|
-
"chevron-down": ChevronDownIcon,
|
|
541
|
-
"chevron-up": ChevronUpIcon,
|
|
542
|
-
"chevron-right": ChevronRightIcon,
|
|
543
|
-
"chevron-left": ChevronLeftIcon,
|
|
544
|
-
info: InformationCircleIcon,
|
|
545
|
-
"alert-triangle": ExclamationTriangleIcon,
|
|
546
|
-
"alert-circle": ExclamationCircleIcon,
|
|
547
|
-
"check-circle": CheckCircleIcon,
|
|
548
|
-
copy: DocumentDuplicateIcon,
|
|
549
|
-
sun: SunIcon,
|
|
550
|
-
moon: MoonIcon,
|
|
551
|
-
search: MagnifyingGlassIcon,
|
|
552
|
-
menu: Bars3Icon,
|
|
553
|
-
camera: CameraIcon,
|
|
554
|
-
blocked: NoSymbolIcon,
|
|
555
|
-
pending: ClockIcon
|
|
556
|
-
};
|
|
557
|
-
var ICON_NAMES = Object.keys(ICON_GLYPHS);
|
|
558
|
-
var ICON_FALLBACK_NAME = "alert-circle";
|
|
559
|
-
|
|
560
|
-
// src/components/ui/icon.tsx
|
|
561
|
-
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
562
|
-
var Icon = React.forwardRef(
|
|
563
|
-
({ name, size = "md", label, className, ...props }, ref) => {
|
|
564
|
-
const Glyph = ICON_GLYPHS[name] ?? ICON_GLYPHS[ICON_FALLBACK_NAME];
|
|
565
|
-
return /* @__PURE__ */ jsx6(
|
|
566
|
-
Glyph,
|
|
567
|
-
{
|
|
568
|
-
...props,
|
|
569
|
-
ref,
|
|
570
|
-
"data-icon-name": name,
|
|
571
|
-
className: cn(
|
|
572
|
-
"sv-icon",
|
|
573
|
-
size === "sm" && "sv-icon--sm",
|
|
574
|
-
size === "lg" && "sv-icon--lg",
|
|
575
|
-
className
|
|
576
|
-
),
|
|
577
|
-
"aria-hidden": label === void 0 ? "true" : void 0,
|
|
578
|
-
role: label === void 0 ? void 0 : "img",
|
|
579
|
-
"aria-label": label
|
|
580
|
-
}
|
|
581
|
-
);
|
|
582
|
-
}
|
|
583
|
-
);
|
|
584
|
-
Icon.displayName = "Icon";
|
|
585
|
-
|
|
586
|
-
// src/react/client/ToastProvider.tsx
|
|
587
|
-
import { Fragment, jsx as jsx7, jsxs } from "react/jsx-runtime";
|
|
588
|
-
var ToastContext = React2.createContext(null);
|
|
589
|
-
function useToast() {
|
|
590
|
-
const context = React2.useContext(ToastContext);
|
|
591
|
-
if (!context) {
|
|
592
|
-
throw new Error("useToast must be used within ToastProvider");
|
|
593
|
-
}
|
|
594
|
-
return context;
|
|
595
|
-
}
|
|
596
|
-
var variantConfig = {
|
|
597
|
-
info: { icon: "info", type: "background" },
|
|
598
|
-
success: { icon: "check-circle", type: "background" },
|
|
599
|
-
warning: { icon: "alert-triangle", type: "foreground" },
|
|
600
|
-
danger: { icon: "alert-circle", type: "foreground" }
|
|
601
|
-
};
|
|
602
|
-
function toastReducer(state, action) {
|
|
603
|
-
switch (action.type) {
|
|
604
|
-
case "ADD": {
|
|
605
|
-
return [...state, action.entry];
|
|
606
|
-
}
|
|
607
|
-
case "REMOVE": {
|
|
608
|
-
return state.filter((t) => t.id !== action.id);
|
|
609
|
-
}
|
|
610
|
-
case "UPDATE": {
|
|
611
|
-
return state.map(
|
|
612
|
-
(t) => t.id === action.id ? { ...t, ...action.patch, version: t.version + 1 } : t
|
|
613
|
-
);
|
|
614
|
-
}
|
|
615
|
-
case "REMOVE_ALL": {
|
|
616
|
-
return [];
|
|
617
|
-
}
|
|
618
|
-
/* v8 ignore next 2 */
|
|
619
|
-
default: {
|
|
620
|
-
return state;
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
function ToastProvider({
|
|
625
|
-
children,
|
|
626
|
-
duration = 5e3,
|
|
627
|
-
max = 3,
|
|
628
|
-
label = "Notifications",
|
|
629
|
-
closeLabel = "Close",
|
|
630
|
-
swipeDirection = "right"
|
|
631
|
-
}) {
|
|
632
|
-
const [allToasts, dispatch] = React2.useReducer(toastReducer, []);
|
|
633
|
-
const isMountedRef = React2.useRef(true);
|
|
634
|
-
React2.useEffect(() => {
|
|
635
|
-
isMountedRef.current = true;
|
|
636
|
-
return () => {
|
|
637
|
-
isMountedRef.current = false;
|
|
638
|
-
};
|
|
639
|
-
}, []);
|
|
640
|
-
const validatedMax = typeof max === "number" && Number.isFinite(max) && max > 0 ? Math.floor(max) : 3;
|
|
641
|
-
const displayedToasts = allToasts.slice(-validatedMax);
|
|
642
|
-
const toast = React2.useCallback(
|
|
643
|
-
(options) => {
|
|
644
|
-
if (!isMountedRef.current) return { id: "", dismiss: () => {
|
|
645
|
-
}, update: () => {
|
|
646
|
-
} };
|
|
647
|
-
const id = Math.random().toString(36).substr(2, 9);
|
|
648
|
-
const variant = options.variant ?? "info";
|
|
649
|
-
const duration_val = typeof options.duration === "number" && options.duration > 0 ? options.duration : duration;
|
|
650
|
-
const entry = {
|
|
651
|
-
...options,
|
|
652
|
-
variant,
|
|
653
|
-
duration: duration_val,
|
|
654
|
-
id,
|
|
655
|
-
version: 0
|
|
656
|
-
};
|
|
657
|
-
dispatch({ type: "ADD", entry });
|
|
658
|
-
return {
|
|
659
|
-
id,
|
|
660
|
-
dismiss: () => dispatch({ type: "REMOVE", id }),
|
|
661
|
-
update: (patch) => {
|
|
662
|
-
dispatch({ type: "UPDATE", id, patch });
|
|
663
|
-
}
|
|
664
|
-
};
|
|
665
|
-
},
|
|
666
|
-
[duration]
|
|
667
|
-
);
|
|
668
|
-
const dismiss = React2.useCallback((id) => {
|
|
669
|
-
dispatch({ type: "REMOVE", id });
|
|
670
|
-
}, []);
|
|
671
|
-
const dismissAll = React2.useCallback(() => {
|
|
672
|
-
dispatch({ type: "REMOVE_ALL" });
|
|
673
|
-
}, []);
|
|
674
|
-
React2.useEffect(() => {
|
|
675
|
-
if (allToasts.length > validatedMax) {
|
|
676
|
-
const toRemove = allToasts[0];
|
|
677
|
-
if (toRemove) {
|
|
678
|
-
dismiss(toRemove.id);
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
}, [allToasts.length, validatedMax, dismiss]);
|
|
682
|
-
const value = {
|
|
683
|
-
toast,
|
|
684
|
-
dismiss,
|
|
685
|
-
dismissAll,
|
|
686
|
-
toasts: displayedToasts
|
|
687
|
-
};
|
|
688
|
-
return /* @__PURE__ */ jsx7(ToastContext.Provider, { value, children: /* @__PURE__ */ jsxs(Toast.Provider, { duration, label, swipeDirection, children: [
|
|
689
|
-
children,
|
|
690
|
-
/* @__PURE__ */ jsx7(Toast.Viewport, { className: "sv-toast__viewport" }),
|
|
691
|
-
/* @__PURE__ */ jsx7(
|
|
692
|
-
ToastViewportRenderer,
|
|
693
|
-
{
|
|
694
|
-
toasts: displayedToasts,
|
|
695
|
-
closeLabel,
|
|
696
|
-
duration,
|
|
697
|
-
dismiss
|
|
698
|
-
}
|
|
699
|
-
)
|
|
700
|
-
] }) });
|
|
701
|
-
}
|
|
702
|
-
function ToastViewportRenderer({
|
|
703
|
-
toasts,
|
|
704
|
-
closeLabel,
|
|
705
|
-
duration,
|
|
706
|
-
dismiss
|
|
707
|
-
}) {
|
|
708
|
-
return /* @__PURE__ */ jsx7(Fragment, { children: toasts.map((entry) => {
|
|
709
|
-
const { id, title, description, variant = "info", action } = entry;
|
|
710
|
-
const config = variantConfig[variant];
|
|
711
|
-
const toastDuration = entry.duration ?? duration;
|
|
712
|
-
const handleActionClick = () => {
|
|
713
|
-
if (action?.onClick) {
|
|
714
|
-
action.onClick();
|
|
715
|
-
}
|
|
716
|
-
dismiss(id);
|
|
717
|
-
};
|
|
718
|
-
return /* @__PURE__ */ jsxs(
|
|
719
|
-
Toast.Root,
|
|
720
|
-
{
|
|
721
|
-
open: true,
|
|
722
|
-
onOpenChange: (open) => {
|
|
723
|
-
if (!open) {
|
|
724
|
-
dismiss(id);
|
|
725
|
-
}
|
|
726
|
-
},
|
|
727
|
-
duration: toastDuration,
|
|
728
|
-
type: config.type,
|
|
729
|
-
"data-variant": variant,
|
|
730
|
-
className: cn("sv-toast", `sv-toast--${variant}`),
|
|
731
|
-
children: [
|
|
732
|
-
/* @__PURE__ */ jsx7(Icon, { name: config.icon, className: "sv-toast__icon", "aria-hidden": "true", "data-name": config.icon }),
|
|
733
|
-
/* @__PURE__ */ jsxs("div", { className: "sv-toast__content", children: [
|
|
734
|
-
title && /* @__PURE__ */ jsx7(Toast.Title, { className: "sv-toast__title", children: title }),
|
|
735
|
-
description && /* @__PURE__ */ jsx7(Toast.Description, { className: "sv-toast__description", children: description })
|
|
736
|
-
] }),
|
|
737
|
-
/* @__PURE__ */ jsxs("div", { className: "sv-toast__actions", children: [
|
|
738
|
-
action && /* @__PURE__ */ jsx7(
|
|
739
|
-
Toast.Action,
|
|
740
|
-
{
|
|
741
|
-
altText: action.altText,
|
|
742
|
-
asChild: true,
|
|
743
|
-
children: /* @__PURE__ */ jsx7(
|
|
744
|
-
"button",
|
|
745
|
-
{
|
|
746
|
-
type: "button",
|
|
747
|
-
className: "sv-toast__action",
|
|
748
|
-
onClick: handleActionClick,
|
|
749
|
-
children: action.label
|
|
750
|
-
}
|
|
751
|
-
)
|
|
752
|
-
}
|
|
753
|
-
),
|
|
754
|
-
/* @__PURE__ */ jsx7(Toast.Close, { asChild: true, children: /* @__PURE__ */ jsx7("button", { type: "button", className: "sv-toast__close", "aria-label": closeLabel, children: /* @__PURE__ */ jsx7(Icon, { name: "x" }) }) })
|
|
755
|
-
] })
|
|
756
|
-
]
|
|
757
|
-
},
|
|
758
|
-
`${id}-${entry.version}`
|
|
759
|
-
);
|
|
760
|
-
}) });
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
// src/react/client/SidebarProvider.tsx
|
|
16
|
+
DropdownMenu,
|
|
17
|
+
DropdownMenuCheckboxItem,
|
|
18
|
+
DropdownMenuContent,
|
|
19
|
+
DropdownMenuGroup,
|
|
20
|
+
DropdownMenuItem,
|
|
21
|
+
DropdownMenuLabel,
|
|
22
|
+
DropdownMenuPortal,
|
|
23
|
+
DropdownMenuRadioGroup,
|
|
24
|
+
DropdownMenuRadioItem,
|
|
25
|
+
DropdownMenuSeparator,
|
|
26
|
+
DropdownMenuShortcut,
|
|
27
|
+
DropdownMenuSub,
|
|
28
|
+
DropdownMenuSubContent,
|
|
29
|
+
DropdownMenuSubTrigger,
|
|
30
|
+
DropdownMenuTrigger
|
|
31
|
+
} from "./chunk-NEAL74VV.js";
|
|
764
32
|
import {
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
/* @__PURE__ */ jsx8(Dialog.Title, { className: "sv-sr-only", children: title }),
|
|
875
|
-
/* @__PURE__ */ jsx8("div", { className: "sv-app-sidebar__body", children }),
|
|
876
|
-
/* @__PURE__ */ jsx8(Dialog.Close, { className: "sv-dialog__close", asChild: true, children: /* @__PURE__ */ jsx8("button", { "aria-label": "Close sidebar", children: /* @__PURE__ */ jsx8(Icon, { name: "x" }) }) })
|
|
877
|
-
]
|
|
878
|
-
}
|
|
879
|
-
)
|
|
880
|
-
] }) });
|
|
881
|
-
}
|
|
882
|
-
return /* @__PURE__ */ jsx8(
|
|
883
|
-
"aside",
|
|
884
|
-
{
|
|
885
|
-
ref,
|
|
886
|
-
className: cn("sv-app-sidebar", className),
|
|
887
|
-
id: panelId,
|
|
888
|
-
...props,
|
|
889
|
-
children: /* @__PURE__ */ jsx8("div", { className: "sv-app-sidebar__body", children })
|
|
890
|
-
}
|
|
891
|
-
);
|
|
892
|
-
}
|
|
893
|
-
);
|
|
894
|
-
SidebarPanel.displayName = "SidebarPanel";
|
|
895
|
-
var SidebarTrigger = forwardRef2(
|
|
896
|
-
function SidebarTrigger2({ className, label, children, onClick, ...props }, ref) {
|
|
897
|
-
const { open, toggle, collapsible, panelId, triggerRef } = useSidebar();
|
|
898
|
-
if (collapsible === "none") {
|
|
899
|
-
return null;
|
|
900
|
-
}
|
|
901
|
-
return /* @__PURE__ */ jsx8(
|
|
902
|
-
"button",
|
|
903
|
-
{
|
|
904
|
-
ref: composeRefs(ref, triggerRef),
|
|
905
|
-
type: "button",
|
|
906
|
-
...props,
|
|
907
|
-
className: cn("sv-app-sidebar-trigger", className),
|
|
908
|
-
"aria-expanded": open,
|
|
909
|
-
"aria-controls": panelId,
|
|
910
|
-
"aria-label": label || "Toggle sidebar",
|
|
911
|
-
onClick: (event) => {
|
|
912
|
-
onClick?.(event);
|
|
913
|
-
toggle();
|
|
914
|
-
},
|
|
915
|
-
children: children || /* @__PURE__ */ jsx8(Icon, { name: "menu" })
|
|
916
|
-
}
|
|
917
|
-
);
|
|
918
|
-
}
|
|
919
|
-
);
|
|
920
|
-
SidebarTrigger.displayName = "SidebarTrigger";
|
|
921
|
-
var SidebarInset = forwardRef2(
|
|
922
|
-
function SidebarInset2({ className, ...props }, ref) {
|
|
923
|
-
return /* @__PURE__ */ jsx8("main", { ref, className: cn("sv-app-sidebar-inset", className), ...props });
|
|
924
|
-
}
|
|
925
|
-
);
|
|
926
|
-
SidebarInset.displayName = "SidebarInset";
|
|
927
|
-
|
|
928
|
-
// src/components/ui/dialog.tsx
|
|
929
|
-
import * as React3 from "react";
|
|
930
|
-
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
931
|
-
import { jsx as jsx9, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
932
|
-
var Dialog2 = DialogPrimitive.Root;
|
|
933
|
-
var DialogTrigger = DialogPrimitive.Trigger;
|
|
934
|
-
var DialogPortal = DialogPrimitive.Portal;
|
|
935
|
-
var DialogClose = DialogPrimitive.Close;
|
|
936
|
-
var DialogOverlay = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
937
|
-
DialogPrimitive.Overlay,
|
|
938
|
-
{
|
|
939
|
-
ref,
|
|
940
|
-
className: cn("sv-overlay", className),
|
|
941
|
-
...props
|
|
942
|
-
}
|
|
943
|
-
));
|
|
944
|
-
DialogOverlay.displayName = "DialogOverlay";
|
|
945
|
-
var DialogContent = React3.forwardRef(({ className, children, showCloseButton = true, closeLabel: closeLabelProp, ...props }, ref) => {
|
|
946
|
-
const closeLabel = closeLabelProp && closeLabelProp.trim().length > 0 ? closeLabelProp : "Close dialog";
|
|
947
|
-
return /* @__PURE__ */ jsxs3(DialogPortal, { children: [
|
|
948
|
-
/* @__PURE__ */ jsx9(DialogOverlay, {}),
|
|
949
|
-
/* @__PURE__ */ jsxs3(
|
|
950
|
-
DialogPrimitive.Content,
|
|
951
|
-
{
|
|
952
|
-
ref,
|
|
953
|
-
className: cn("sv-dialog", className),
|
|
954
|
-
...props,
|
|
955
|
-
"aria-modal": "true",
|
|
956
|
-
children: [
|
|
957
|
-
children,
|
|
958
|
-
showCloseButton ? /* @__PURE__ */ jsxs3(DialogPrimitive.Close, { className: "sv-dialog__close", children: [
|
|
959
|
-
/* @__PURE__ */ jsx9(Icon, { name: "x" }),
|
|
960
|
-
/* @__PURE__ */ jsx9("span", { className: "sv-sr-only", children: closeLabel })
|
|
961
|
-
] }) : null
|
|
962
|
-
]
|
|
963
|
-
}
|
|
964
|
-
)
|
|
965
|
-
] });
|
|
966
|
-
});
|
|
967
|
-
DialogContent.displayName = "DialogContent";
|
|
968
|
-
var DialogHeader = ({
|
|
969
|
-
className,
|
|
970
|
-
...props
|
|
971
|
-
}) => /* @__PURE__ */ jsx9("div", { className: cn("sv-dialog__header", className), ...props });
|
|
972
|
-
DialogHeader.displayName = "DialogHeader";
|
|
973
|
-
var DialogFooter = ({
|
|
974
|
-
className,
|
|
975
|
-
...props
|
|
976
|
-
}) => /* @__PURE__ */ jsx9("div", { className: cn("sv-dialog__footer", className), ...props });
|
|
977
|
-
DialogFooter.displayName = "DialogFooter";
|
|
978
|
-
var DialogTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
979
|
-
DialogPrimitive.Title,
|
|
980
|
-
{
|
|
981
|
-
ref,
|
|
982
|
-
className: cn("sv-dialog__title", className),
|
|
983
|
-
...props
|
|
984
|
-
}
|
|
985
|
-
));
|
|
986
|
-
DialogTitle.displayName = "DialogTitle";
|
|
987
|
-
var DialogDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
988
|
-
DialogPrimitive.Description,
|
|
989
|
-
{
|
|
990
|
-
ref,
|
|
991
|
-
className: cn("sv-dialog__description", className),
|
|
992
|
-
...props
|
|
993
|
-
}
|
|
994
|
-
));
|
|
995
|
-
DialogDescription.displayName = "DialogDescription";
|
|
996
|
-
|
|
997
|
-
// src/components/ui/bottom-sheet.tsx
|
|
998
|
-
import * as React4 from "react";
|
|
999
|
-
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
|
1000
|
-
import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1001
|
-
var DISMISS_DISTANCE = 96;
|
|
1002
|
-
var BottomSheetContext = React4.createContext(null);
|
|
1003
|
-
var BottomSheet = ({ open: openProp, defaultOpen = false, onOpenChange, ...props }) => {
|
|
1004
|
-
const [openState, setOpenState] = React4.useState(defaultOpen);
|
|
1005
|
-
const controlled = openProp !== void 0;
|
|
1006
|
-
const open = controlled ? openProp : openState;
|
|
1007
|
-
const setOpen = React4.useCallback(
|
|
1008
|
-
(next) => {
|
|
1009
|
-
if (!controlled) setOpenState(next);
|
|
1010
|
-
onOpenChange?.(next);
|
|
1011
|
-
},
|
|
1012
|
-
[controlled, onOpenChange]
|
|
1013
|
-
);
|
|
1014
|
-
const value = React4.useMemo(() => ({ close: () => setOpen(false) }), [setOpen]);
|
|
1015
|
-
return /* @__PURE__ */ jsx10(BottomSheetContext.Provider, { value, children: /* @__PURE__ */ jsx10(DialogPrimitive2.Root, { open, onOpenChange: setOpen, ...props }) });
|
|
1016
|
-
};
|
|
1017
|
-
var BottomSheetTrigger = DialogPrimitive2.Trigger;
|
|
1018
|
-
var BottomSheetClose = DialogPrimitive2.Close;
|
|
1019
|
-
var BottomSheetOverlay = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(DialogPrimitive2.Overlay, { ref, className: cn("sv-overlay", className), ...props }));
|
|
1020
|
-
BottomSheetOverlay.displayName = "BottomSheetOverlay";
|
|
1021
|
-
var BottomSheetContent = React4.forwardRef(
|
|
1022
|
-
({ className, children, style, showCloseButton = true, closeLabel: closeLabelProp, draggable = true, ...props }, ref) => {
|
|
1023
|
-
const { close } = React4.useContext(BottomSheetContext);
|
|
1024
|
-
const closeLabel = closeLabelProp && closeLabelProp.trim().length > 0 ? closeLabelProp : "Cancel";
|
|
1025
|
-
const [offset, setOffset] = React4.useState(0);
|
|
1026
|
-
const [dragging, setDragging] = React4.useState(false);
|
|
1027
|
-
const startY = React4.useRef(0);
|
|
1028
|
-
const onPointerDown = (event) => {
|
|
1029
|
-
if (!draggable) return;
|
|
1030
|
-
startY.current = event.clientY;
|
|
1031
|
-
setDragging(true);
|
|
1032
|
-
event.currentTarget.setPointerCapture?.(event.pointerId);
|
|
1033
|
-
};
|
|
1034
|
-
const onPointerMove = (event) => {
|
|
1035
|
-
if (!dragging) return;
|
|
1036
|
-
setOffset(Math.max(0, event.clientY - startY.current));
|
|
1037
|
-
};
|
|
1038
|
-
const endDrag = () => {
|
|
1039
|
-
if (!dragging) return;
|
|
1040
|
-
setDragging(false);
|
|
1041
|
-
if (offset >= DISMISS_DISTANCE) close();
|
|
1042
|
-
else setOffset(0);
|
|
1043
|
-
};
|
|
1044
|
-
return /* @__PURE__ */ jsxs4(DialogPrimitive2.Portal, { children: [
|
|
1045
|
-
/* @__PURE__ */ jsx10(BottomSheetOverlay, {}),
|
|
1046
|
-
/* @__PURE__ */ jsxs4(
|
|
1047
|
-
DialogPrimitive2.Content,
|
|
1048
|
-
{
|
|
1049
|
-
ref,
|
|
1050
|
-
className: cn("sv-sheet", className),
|
|
1051
|
-
"data-dragging": dragging ? "true" : void 0,
|
|
1052
|
-
style: { ...style, ["--sv-sheet-drag"]: `${offset}px` },
|
|
1053
|
-
...props,
|
|
1054
|
-
"aria-modal": "true",
|
|
1055
|
-
children: [
|
|
1056
|
-
/* @__PURE__ */ jsx10(
|
|
1057
|
-
"div",
|
|
1058
|
-
{
|
|
1059
|
-
className: "sv-sheet__handle",
|
|
1060
|
-
"data-draggable": draggable ? "true" : void 0,
|
|
1061
|
-
"aria-hidden": "true",
|
|
1062
|
-
onPointerDown,
|
|
1063
|
-
onPointerMove,
|
|
1064
|
-
onPointerUp: endDrag,
|
|
1065
|
-
onPointerCancel: endDrag
|
|
1066
|
-
}
|
|
1067
|
-
),
|
|
1068
|
-
showCloseButton ? /* @__PURE__ */ jsx10(DialogPrimitive2.Close, { className: "sv-btn sv-btn--ghost sv-btn--sm sv-sheet__close", children: closeLabel }) : null,
|
|
1069
|
-
children
|
|
1070
|
-
]
|
|
1071
|
-
}
|
|
1072
|
-
)
|
|
1073
|
-
] });
|
|
1074
|
-
}
|
|
1075
|
-
);
|
|
1076
|
-
BottomSheetContent.displayName = "BottomSheetContent";
|
|
1077
|
-
var BottomSheetHeader = ({ className, ...props }) => /* @__PURE__ */ jsx10("div", { className: cn("sv-sheet__header", className), ...props });
|
|
1078
|
-
BottomSheetHeader.displayName = "BottomSheetHeader";
|
|
1079
|
-
var BottomSheetBody = ({ className, ...props }) => /* @__PURE__ */ jsx10("div", { className: cn("sv-sheet__body", className), ...props });
|
|
1080
|
-
BottomSheetBody.displayName = "BottomSheetBody";
|
|
1081
|
-
var BottomSheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx10("div", { className: cn("sv-sheet__footer", className), ...props });
|
|
1082
|
-
BottomSheetFooter.displayName = "BottomSheetFooter";
|
|
1083
|
-
var BottomSheetTitle = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(DialogPrimitive2.Title, { ref, className: cn("sv-sheet__title", className), ...props }));
|
|
1084
|
-
BottomSheetTitle.displayName = "BottomSheetTitle";
|
|
1085
|
-
var BottomSheetDescription = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(DialogPrimitive2.Description, { ref, className: cn("sv-sheet__description", className), ...props }));
|
|
1086
|
-
BottomSheetDescription.displayName = "BottomSheetDescription";
|
|
1087
|
-
|
|
1088
|
-
// src/components/ui/alert-dialog.tsx
|
|
1089
|
-
import * as React5 from "react";
|
|
1090
|
-
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
1091
|
-
import { jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1092
|
-
var AlertDialog = AlertDialogPrimitive.Root;
|
|
1093
|
-
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
1094
|
-
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
1095
|
-
var AlertDialogOverlay = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
1096
|
-
AlertDialogPrimitive.Overlay,
|
|
1097
|
-
{
|
|
1098
|
-
ref,
|
|
1099
|
-
className: cn("sv-overlay", className),
|
|
1100
|
-
...props
|
|
1101
|
-
}
|
|
1102
|
-
));
|
|
1103
|
-
AlertDialogOverlay.displayName = "AlertDialogOverlay";
|
|
1104
|
-
var AlertDialogContent = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs5(AlertDialogPortal, { children: [
|
|
1105
|
-
/* @__PURE__ */ jsx11(AlertDialogOverlay, {}),
|
|
1106
|
-
/* @__PURE__ */ jsx11(
|
|
1107
|
-
AlertDialogPrimitive.Content,
|
|
1108
|
-
{
|
|
1109
|
-
ref,
|
|
1110
|
-
"aria-modal": "true",
|
|
1111
|
-
className: cn("sv-dialog", className),
|
|
1112
|
-
...props
|
|
1113
|
-
}
|
|
1114
|
-
)
|
|
1115
|
-
] }));
|
|
1116
|
-
AlertDialogContent.displayName = "AlertDialogContent";
|
|
1117
|
-
var AlertDialogHeader = ({
|
|
1118
|
-
className,
|
|
1119
|
-
...props
|
|
1120
|
-
}) => /* @__PURE__ */ jsx11("div", { className: cn("sv-dialog__header", className), ...props });
|
|
1121
|
-
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
1122
|
-
var AlertDialogFooter = ({
|
|
1123
|
-
className,
|
|
1124
|
-
...props
|
|
1125
|
-
}) => /* @__PURE__ */ jsx11("div", { className: cn("sv-dialog__footer", className), ...props });
|
|
1126
|
-
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
1127
|
-
var AlertDialogTitle = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
1128
|
-
AlertDialogPrimitive.Title,
|
|
1129
|
-
{
|
|
1130
|
-
ref,
|
|
1131
|
-
className: cn("sv-dialog__title", className),
|
|
1132
|
-
...props
|
|
1133
|
-
}
|
|
1134
|
-
));
|
|
1135
|
-
AlertDialogTitle.displayName = "AlertDialogTitle";
|
|
1136
|
-
var AlertDialogDescription = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
1137
|
-
AlertDialogPrimitive.Description,
|
|
1138
|
-
{
|
|
1139
|
-
ref,
|
|
1140
|
-
className: cn("sv-dialog__description", className),
|
|
1141
|
-
...props
|
|
1142
|
-
}
|
|
1143
|
-
));
|
|
1144
|
-
AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
1145
|
-
var AlertDialogAction = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
1146
|
-
AlertDialogPrimitive.Action,
|
|
1147
|
-
{
|
|
1148
|
-
ref,
|
|
1149
|
-
className: cn(className),
|
|
1150
|
-
...props
|
|
1151
|
-
}
|
|
1152
|
-
));
|
|
1153
|
-
AlertDialogAction.displayName = "AlertDialogAction";
|
|
1154
|
-
var AlertDialogCancel = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
1155
|
-
AlertDialogPrimitive.Cancel,
|
|
1156
|
-
{
|
|
1157
|
-
ref,
|
|
1158
|
-
className: cn(className),
|
|
1159
|
-
...props
|
|
1160
|
-
}
|
|
1161
|
-
));
|
|
1162
|
-
AlertDialogCancel.displayName = "AlertDialogCancel";
|
|
1163
|
-
|
|
1164
|
-
// src/components/ui/select.tsx
|
|
1165
|
-
import * as React6 from "react";
|
|
1166
|
-
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
1167
|
-
import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1168
|
-
var Select = SelectPrimitive.Root;
|
|
1169
|
-
var SelectGroup = SelectPrimitive.Group;
|
|
1170
|
-
var SelectValue = SelectPrimitive.Value;
|
|
1171
|
-
var SelectTrigger = React6.forwardRef(
|
|
1172
|
-
({ className, children, icon = /* @__PURE__ */ jsx12(Icon, { name: "chevron-down" }), ...props }, ref) => (
|
|
1173
|
-
// The trigger IS a form field, so it shares .sv-field with Input, Textarea
|
|
1174
|
-
// and NativeSelect rather than restating the frame. The utility string this
|
|
1175
|
-
// replaces named `ring-offset-background` and `focus:ring-accent`, neither
|
|
1176
|
-
// of which this package ever declared: the field had no visible focus.
|
|
1177
|
-
/* @__PURE__ */ jsxs6(
|
|
1178
|
-
SelectPrimitive.Trigger,
|
|
1179
|
-
{
|
|
1180
|
-
ref,
|
|
1181
|
-
className: cn("sv-field", className),
|
|
1182
|
-
...props,
|
|
1183
|
-
children: [
|
|
1184
|
-
children,
|
|
1185
|
-
icon === null ? null : /* @__PURE__ */ jsx12(SelectPrimitive.Icon, { children: icon })
|
|
1186
|
-
]
|
|
1187
|
-
}
|
|
1188
|
-
)
|
|
1189
|
-
)
|
|
1190
|
-
);
|
|
1191
|
-
SelectTrigger.displayName = "SelectTrigger";
|
|
1192
|
-
var SelectScrollUpButton = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
1193
|
-
SelectPrimitive.ScrollUpButton,
|
|
1194
|
-
{
|
|
1195
|
-
ref,
|
|
1196
|
-
className: cn("sv-pop__scroll", className),
|
|
1197
|
-
...props,
|
|
1198
|
-
children: /* @__PURE__ */ jsx12(Icon, { name: "chevron-up" })
|
|
1199
|
-
}
|
|
1200
|
-
));
|
|
1201
|
-
SelectScrollUpButton.displayName = "SelectScrollUpButton";
|
|
1202
|
-
var SelectScrollDownButton = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
1203
|
-
SelectPrimitive.ScrollDownButton,
|
|
1204
|
-
{
|
|
1205
|
-
ref,
|
|
1206
|
-
className: cn("sv-pop__scroll", className),
|
|
1207
|
-
...props,
|
|
1208
|
-
children: /* @__PURE__ */ jsx12(Icon, { name: "chevron-down" })
|
|
1209
|
-
}
|
|
1210
|
-
));
|
|
1211
|
-
SelectScrollDownButton.displayName = "SelectScrollDownButton";
|
|
1212
|
-
var SelectContent = React6.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx12(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs6(
|
|
1213
|
-
SelectPrimitive.Content,
|
|
1214
|
-
{
|
|
1215
|
-
ref,
|
|
1216
|
-
className: cn("sv-pop", position === "popper" && "sv-pop--popper", className),
|
|
1217
|
-
position,
|
|
1218
|
-
...props,
|
|
1219
|
-
children: [
|
|
1220
|
-
/* @__PURE__ */ jsx12(SelectScrollUpButton, {}),
|
|
1221
|
-
/* @__PURE__ */ jsx12(
|
|
1222
|
-
SelectPrimitive.Viewport,
|
|
1223
|
-
{
|
|
1224
|
-
className: cn(
|
|
1225
|
-
"sv-pop__viewport",
|
|
1226
|
-
position === "popper" && "sv-pop__viewport--popper"
|
|
1227
|
-
),
|
|
1228
|
-
children
|
|
1229
|
-
}
|
|
1230
|
-
),
|
|
1231
|
-
/* @__PURE__ */ jsx12(SelectScrollDownButton, {})
|
|
1232
|
-
]
|
|
1233
|
-
}
|
|
1234
|
-
) }));
|
|
1235
|
-
SelectContent.displayName = "SelectContent";
|
|
1236
|
-
var SelectItem = React6.forwardRef(({ className, children, icon = /* @__PURE__ */ jsx12(Icon, { name: "check" }), ...props }, ref) => /* @__PURE__ */ jsxs6(
|
|
1237
|
-
SelectPrimitive.Item,
|
|
1238
|
-
{
|
|
1239
|
-
ref,
|
|
1240
|
-
className: cn("sv-menu-item", className),
|
|
1241
|
-
...props,
|
|
1242
|
-
children: [
|
|
1243
|
-
icon === null ? null : /* @__PURE__ */ jsx12(SelectPrimitive.ItemIndicator, { className: "sv-menu-item__indicator", children: icon }),
|
|
1244
|
-
/* @__PURE__ */ jsx12(SelectPrimitive.ItemText, { children })
|
|
1245
|
-
]
|
|
1246
|
-
}
|
|
1247
|
-
));
|
|
1248
|
-
SelectItem.displayName = "SelectItem";
|
|
1249
|
-
var SelectLabel = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
1250
|
-
SelectPrimitive.Label,
|
|
1251
|
-
{
|
|
1252
|
-
ref,
|
|
1253
|
-
className: cn("sv-menu-label", className),
|
|
1254
|
-
...props
|
|
1255
|
-
}
|
|
1256
|
-
));
|
|
1257
|
-
SelectLabel.displayName = "SelectLabel";
|
|
1258
|
-
var SelectSeparator = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
1259
|
-
SelectPrimitive.Separator,
|
|
1260
|
-
{
|
|
1261
|
-
ref,
|
|
1262
|
-
className: cn("sv-menu-separator", className),
|
|
1263
|
-
...props
|
|
1264
|
-
}
|
|
1265
|
-
));
|
|
1266
|
-
SelectSeparator.displayName = "SelectSeparator";
|
|
1267
|
-
|
|
1268
|
-
// src/components/ui/dropdown-menu.tsx
|
|
1269
|
-
import * as React7 from "react";
|
|
1270
|
-
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
1271
|
-
import { jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1272
|
-
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
1273
|
-
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
1274
|
-
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
1275
|
-
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1276
|
-
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1277
|
-
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
1278
|
-
var DropdownMenuSubTrigger = React7.forwardRef(
|
|
1279
|
-
({ className, inset, children, icon = /* @__PURE__ */ jsx13(Icon, { name: "chevron-right" }), ...props }, ref) => /* @__PURE__ */ jsxs7(
|
|
1280
|
-
DropdownMenuPrimitive.SubTrigger,
|
|
1281
|
-
{
|
|
1282
|
-
ref,
|
|
1283
|
-
className: cn("sv-menu-item", inset && "sv-menu-item--inset", className),
|
|
1284
|
-
...props,
|
|
1285
|
-
children: [
|
|
1286
|
-
children,
|
|
1287
|
-
icon
|
|
1288
|
-
]
|
|
1289
|
-
}
|
|
1290
|
-
)
|
|
1291
|
-
);
|
|
1292
|
-
DropdownMenuSubTrigger.displayName = "DropdownMenuSubTrigger";
|
|
1293
|
-
var DropdownMenuSubContent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
1294
|
-
DropdownMenuPrimitive.SubContent,
|
|
1295
|
-
{
|
|
1296
|
-
ref,
|
|
1297
|
-
className: cn("sv-pop", className),
|
|
1298
|
-
...props
|
|
1299
|
-
}
|
|
1300
|
-
));
|
|
1301
|
-
DropdownMenuSubContent.displayName = "DropdownMenuSubContent";
|
|
1302
|
-
var DropdownMenuContent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx13(
|
|
1303
|
-
DropdownMenuPrimitive.Content,
|
|
1304
|
-
{
|
|
1305
|
-
ref,
|
|
1306
|
-
className: cn("sv-pop", className),
|
|
1307
|
-
...props
|
|
1308
|
-
}
|
|
1309
|
-
) }));
|
|
1310
|
-
DropdownMenuContent.displayName = "DropdownMenuContent";
|
|
1311
|
-
var DropdownMenuItem = React7.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
1312
|
-
DropdownMenuPrimitive.Item,
|
|
1313
|
-
{
|
|
1314
|
-
ref,
|
|
1315
|
-
className: cn("sv-menu-item", inset && "sv-menu-item--inset", className),
|
|
1316
|
-
...props
|
|
1317
|
-
}
|
|
1318
|
-
));
|
|
1319
|
-
DropdownMenuItem.displayName = "DropdownMenuItem";
|
|
1320
|
-
var DropdownMenuCheckboxItem = React7.forwardRef(({ className, children, icon = /* @__PURE__ */ jsx13(Icon, { name: "check" }), ...props }, ref) => /* @__PURE__ */ jsxs7(
|
|
1321
|
-
DropdownMenuPrimitive.CheckboxItem,
|
|
1322
|
-
{
|
|
1323
|
-
ref,
|
|
1324
|
-
className: cn("sv-menu-item", className),
|
|
1325
|
-
...props,
|
|
1326
|
-
children: [
|
|
1327
|
-
icon === null ? null : /* @__PURE__ */ jsx13(DropdownMenuPrimitive.ItemIndicator, { className: "sv-menu-item__indicator", children: icon }),
|
|
1328
|
-
children
|
|
1329
|
-
]
|
|
1330
|
-
}
|
|
1331
|
-
));
|
|
1332
|
-
DropdownMenuCheckboxItem.displayName = "DropdownMenuCheckboxItem";
|
|
1333
|
-
var DropdownMenuRadioItem = React7.forwardRef(
|
|
1334
|
-
({ className, children, icon = /* @__PURE__ */ jsx13("span", { className: "sv-menu-item__dot" }), ...props }, ref) => /* @__PURE__ */ jsxs7(
|
|
1335
|
-
DropdownMenuPrimitive.RadioItem,
|
|
1336
|
-
{
|
|
1337
|
-
ref,
|
|
1338
|
-
className: cn("sv-menu-item", className),
|
|
1339
|
-
...props,
|
|
1340
|
-
children: [
|
|
1341
|
-
icon === null ? null : /* @__PURE__ */ jsx13(DropdownMenuPrimitive.ItemIndicator, { className: "sv-menu-item__indicator", children: icon }),
|
|
1342
|
-
children
|
|
1343
|
-
]
|
|
1344
|
-
}
|
|
1345
|
-
)
|
|
1346
|
-
);
|
|
1347
|
-
DropdownMenuRadioItem.displayName = "DropdownMenuRadioItem";
|
|
1348
|
-
var DropdownMenuLabel = React7.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
1349
|
-
DropdownMenuPrimitive.Label,
|
|
1350
|
-
{
|
|
1351
|
-
ref,
|
|
1352
|
-
className: cn("sv-menu-label", inset && "sv-menu-item--inset", className),
|
|
1353
|
-
...props
|
|
1354
|
-
}
|
|
1355
|
-
));
|
|
1356
|
-
DropdownMenuLabel.displayName = "DropdownMenuLabel";
|
|
1357
|
-
var DropdownMenuSeparator = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
1358
|
-
DropdownMenuPrimitive.Separator,
|
|
1359
|
-
{
|
|
1360
|
-
ref,
|
|
1361
|
-
className: cn("sv-menu-separator", className),
|
|
1362
|
-
...props
|
|
1363
|
-
}
|
|
1364
|
-
));
|
|
1365
|
-
DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
|
|
1366
|
-
var DropdownMenuShortcut = ({
|
|
1367
|
-
className,
|
|
1368
|
-
...props
|
|
1369
|
-
}) => /* @__PURE__ */ jsx13("span", { className: cn("sv-menu-shortcut", className), ...props });
|
|
1370
|
-
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1371
|
-
|
|
1372
|
-
// src/components/ui/tabs.tsx
|
|
1373
|
-
import * as React8 from "react";
|
|
1374
|
-
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
1375
|
-
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1376
|
-
var Tabs = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
1377
|
-
TabsPrimitive.Root,
|
|
1378
|
-
{
|
|
1379
|
-
ref,
|
|
1380
|
-
className: cn("sv-tabs", className),
|
|
1381
|
-
...props
|
|
1382
|
-
}
|
|
1383
|
-
));
|
|
1384
|
-
Tabs.displayName = "Tabs";
|
|
1385
|
-
var TabsList = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
1386
|
-
TabsPrimitive.List,
|
|
1387
|
-
{
|
|
1388
|
-
ref,
|
|
1389
|
-
className: cn("sv-tabs__list", className),
|
|
1390
|
-
...props
|
|
1391
|
-
}
|
|
1392
|
-
));
|
|
1393
|
-
TabsList.displayName = "TabsList";
|
|
1394
|
-
var TabsTrigger = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
1395
|
-
TabsPrimitive.Trigger,
|
|
1396
|
-
{
|
|
1397
|
-
ref,
|
|
1398
|
-
className: cn("sv-tabs__trigger", className),
|
|
1399
|
-
...props
|
|
1400
|
-
}
|
|
1401
|
-
));
|
|
1402
|
-
TabsTrigger.displayName = "TabsTrigger";
|
|
1403
|
-
var TabsContent = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
1404
|
-
TabsPrimitive.Content,
|
|
1405
|
-
{
|
|
1406
|
-
ref,
|
|
1407
|
-
className: cn("sv-tabs__content", className),
|
|
1408
|
-
...props
|
|
1409
|
-
}
|
|
1410
|
-
));
|
|
1411
|
-
TabsContent.displayName = "TabsContent";
|
|
1412
|
-
|
|
1413
|
-
// src/components/ui/tooltip.tsx
|
|
1414
|
-
import * as React9 from "react";
|
|
1415
|
-
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
1416
|
-
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1417
|
-
var TooltipProvider = TooltipPrimitive.Provider;
|
|
1418
|
-
var Tooltip = TooltipPrimitive.Root;
|
|
1419
|
-
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
1420
|
-
var TooltipContent = React9.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1421
|
-
TooltipPrimitive.Content,
|
|
1422
|
-
{
|
|
1423
|
-
ref,
|
|
1424
|
-
sideOffset,
|
|
1425
|
-
className: cn("sv-pop", "sv-tooltip", className),
|
|
1426
|
-
...props
|
|
1427
|
-
}
|
|
1428
|
-
));
|
|
1429
|
-
TooltipContent.displayName = "TooltipContent";
|
|
33
|
+
Tabs,
|
|
34
|
+
TabsContent,
|
|
35
|
+
TabsList,
|
|
36
|
+
TabsTrigger
|
|
37
|
+
} from "./chunk-TXL2US4Z.js";
|
|
38
|
+
import {
|
|
39
|
+
Tooltip,
|
|
40
|
+
TooltipContent,
|
|
41
|
+
TooltipProvider,
|
|
42
|
+
TooltipTrigger
|
|
43
|
+
} from "./chunk-OF6BMW2X.js";
|
|
44
|
+
import {
|
|
45
|
+
Combobox,
|
|
46
|
+
defaultComboboxLabels
|
|
47
|
+
} from "./chunk-RCZS37V5.js";
|
|
48
|
+
import "./chunk-CMMPIPNC.js";
|
|
49
|
+
import {
|
|
50
|
+
ToastProvider,
|
|
51
|
+
useToast
|
|
52
|
+
} from "./chunk-U6FMZ32G.js";
|
|
53
|
+
import {
|
|
54
|
+
SidebarInset,
|
|
55
|
+
SidebarPanel,
|
|
56
|
+
SidebarProvider,
|
|
57
|
+
SidebarTrigger,
|
|
58
|
+
useSidebar
|
|
59
|
+
} from "./chunk-P2UPL6Y3.js";
|
|
60
|
+
import {
|
|
61
|
+
Dialog,
|
|
62
|
+
DialogClose,
|
|
63
|
+
DialogContent,
|
|
64
|
+
DialogDescription,
|
|
65
|
+
DialogFooter,
|
|
66
|
+
DialogHeader,
|
|
67
|
+
DialogOverlay,
|
|
68
|
+
DialogPortal,
|
|
69
|
+
DialogTitle,
|
|
70
|
+
DialogTrigger
|
|
71
|
+
} from "./chunk-JVVNV4DF.js";
|
|
72
|
+
import "./chunk-LDOUB5IA.js";
|
|
73
|
+
import "./chunk-AEXJWMUV.js";
|
|
74
|
+
import {
|
|
75
|
+
BottomSheet,
|
|
76
|
+
BottomSheetBody,
|
|
77
|
+
BottomSheetClose,
|
|
78
|
+
BottomSheetContent,
|
|
79
|
+
BottomSheetDescription,
|
|
80
|
+
BottomSheetFooter,
|
|
81
|
+
BottomSheetHeader,
|
|
82
|
+
BottomSheetOverlay,
|
|
83
|
+
BottomSheetTitle,
|
|
84
|
+
BottomSheetTrigger
|
|
85
|
+
} from "./chunk-CWA3N5RK.js";
|
|
86
|
+
import {
|
|
87
|
+
AlertDialog,
|
|
88
|
+
AlertDialogAction,
|
|
89
|
+
AlertDialogCancel,
|
|
90
|
+
AlertDialogContent,
|
|
91
|
+
AlertDialogDescription,
|
|
92
|
+
AlertDialogFooter,
|
|
93
|
+
AlertDialogHeader,
|
|
94
|
+
AlertDialogOverlay,
|
|
95
|
+
AlertDialogPortal,
|
|
96
|
+
AlertDialogTitle,
|
|
97
|
+
AlertDialogTrigger
|
|
98
|
+
} from "./chunk-GD7XJWKF.js";
|
|
99
|
+
import "./chunk-OVMH25G3.js";
|
|
100
|
+
import {
|
|
101
|
+
CopyButton
|
|
102
|
+
} from "./chunk-PYG5NCEU.js";
|
|
103
|
+
import {
|
|
104
|
+
TableOfContents
|
|
105
|
+
} from "./chunk-M5QFSQYC.js";
|
|
106
|
+
import {
|
|
107
|
+
ReadingProgress
|
|
108
|
+
} from "./chunk-RJFN4KXE.js";
|
|
109
|
+
import {
|
|
110
|
+
useMediaQuery,
|
|
111
|
+
useReadingProgress,
|
|
112
|
+
useScrollSpy
|
|
113
|
+
} from "./chunk-MGR4F2BJ.js";
|
|
114
|
+
import {
|
|
115
|
+
createMediaQuery
|
|
116
|
+
} from "./chunk-OILITPDP.js";
|
|
117
|
+
import {
|
|
118
|
+
createReadingProgress
|
|
119
|
+
} from "./chunk-MYTOL2RH.js";
|
|
120
|
+
import {
|
|
121
|
+
createScrollSpy
|
|
122
|
+
} from "./chunk-7AU2DPOL.js";
|
|
123
|
+
import "./chunk-N64GC5ZU.js";
|
|
124
|
+
import {
|
|
125
|
+
ThemeToggle,
|
|
126
|
+
defaultThemeToggleLabels
|
|
127
|
+
} from "./chunk-PAOYY55O.js";
|
|
128
|
+
import {
|
|
129
|
+
ThemeProvider,
|
|
130
|
+
useTheme
|
|
131
|
+
} from "./chunk-RNMQZ6T2.js";
|
|
132
|
+
import {
|
|
133
|
+
DEFAULT_STORAGE_KEY,
|
|
134
|
+
createThemeManager
|
|
135
|
+
} from "./chunk-3MVZ2ES4.js";
|
|
136
|
+
import "./chunk-ECOPTUZT.js";
|
|
137
|
+
import {
|
|
138
|
+
copyToClipboard
|
|
139
|
+
} from "./chunk-XHL4YEVA.js";
|
|
140
|
+
import "./chunk-OU4ACOFA.js";
|
|
141
|
+
import "./chunk-ABWCVXOO.js";
|
|
1430
142
|
export {
|
|
1431
143
|
AlertDialog,
|
|
1432
144
|
AlertDialogAction,
|
|
@@ -1449,9 +161,10 @@ export {
|
|
|
1449
161
|
BottomSheetOverlay,
|
|
1450
162
|
BottomSheetTitle,
|
|
1451
163
|
BottomSheetTrigger,
|
|
164
|
+
Combobox,
|
|
1452
165
|
CopyButton,
|
|
1453
166
|
DEFAULT_STORAGE_KEY,
|
|
1454
|
-
|
|
167
|
+
Dialog,
|
|
1455
168
|
DialogClose,
|
|
1456
169
|
DialogContent,
|
|
1457
170
|
DialogDescription,
|
|
@@ -1508,6 +221,8 @@ export {
|
|
|
1508
221
|
createReadingProgress,
|
|
1509
222
|
createScrollSpy,
|
|
1510
223
|
createThemeManager,
|
|
224
|
+
defaultComboboxLabels,
|
|
225
|
+
defaultThemeToggleLabels,
|
|
1511
226
|
useMediaQuery,
|
|
1512
227
|
useReadingProgress,
|
|
1513
228
|
useScrollSpy,
|