@ngrok/mantle 0.0.42 → 0.1.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/README.md +23 -0
- package/assets/mantle.css +1 -5
- package/dist/alert.d.ts +26 -0
- package/dist/alert.js +2 -0
- package/dist/alert.js.map +1 -0
- package/dist/{components/anchor/src/anchor.d.ts → anchor.d.ts} +6 -4
- package/dist/anchor.js +2 -0
- package/dist/anchor.js.map +1 -0
- package/dist/{components/types/src/as-child.d.ts → as-child-BjnPZ1DU.d.ts} +3 -2
- package/dist/button.d.ts +92 -0
- package/dist/button.js +2 -0
- package/dist/button.js.map +1 -0
- package/dist/card.d.ts +29 -0
- package/dist/card.js +2 -0
- package/dist/card.js.map +1 -0
- package/dist/checkbox.d.ts +6 -0
- package/dist/checkbox.js +2 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/chunk-6R4HKO6I.js +2 -0
- package/dist/chunk-6R4HKO6I.js.map +1 -0
- package/dist/chunk-EX4RHD64.js +2 -0
- package/dist/chunk-EX4RHD64.js.map +1 -0
- package/dist/chunk-REJRMQU5.js +2 -0
- package/dist/chunk-REJRMQU5.js.map +1 -0
- package/dist/chunk-Z4VZBWSY.js +2 -0
- package/dist/chunk-Z4VZBWSY.js.map +1 -0
- package/dist/chunk-Z7MU3U6D.js +2 -0
- package/dist/chunk-Z7MU3U6D.js.map +1 -0
- package/dist/code-block.d.ts +108 -0
- package/dist/code-block.js +4 -0
- package/dist/code-block.js.map +1 -0
- package/dist/core.d.ts +23 -0
- package/dist/core.js +2 -0
- package/dist/core.js.map +1 -0
- package/dist/{components/types/src/deep-non-nullable.d.ts → deep-non-nullable-SmpSvoSd.d.ts} +3 -2
- package/dist/dialog.d.ts +26 -0
- package/dist/dialog.js +2 -0
- package/dist/dialog.js.map +1 -0
- package/dist/dropdown-menu.d.ts +37 -0
- package/dist/dropdown-menu.js +2 -0
- package/dist/dropdown-menu.js.map +1 -0
- package/dist/{components/icon/src/icon.d.ts → icon.d.ts} +7 -6
- package/dist/icon.js +2 -0
- package/dist/icon.js.map +1 -0
- package/dist/inline-code.d.ts +9 -0
- package/dist/inline-code.js +2 -0
- package/dist/inline-code.js.map +1 -0
- package/dist/input.d.ts +75 -0
- package/dist/input.js +2 -0
- package/dist/input.js.map +1 -0
- package/dist/{components/media-object/src/media-object.d.ts → media-object.d.ts} +8 -6
- package/dist/media-object.js +2 -0
- package/dist/media-object.js.map +1 -0
- package/dist/popover.d.ts +8 -0
- package/dist/popover.js +2 -0
- package/dist/popover.js.map +1 -0
- package/dist/select.d.ts +19 -0
- package/dist/select.js +2 -0
- package/dist/select.js.map +1 -0
- package/dist/separator.d.ts +9 -0
- package/dist/separator.js +2 -0
- package/dist/separator.js.map +1 -0
- package/dist/sheet.d.ts +22 -0
- package/dist/sheet.js +2 -0
- package/dist/sheet.js.map +1 -0
- package/dist/{components/skeleton/src/skeleton.d.ts → skeleton.d.ts} +5 -3
- package/dist/skeleton.js +2 -0
- package/dist/skeleton.js.map +1 -0
- package/dist/table.d.ts +13 -0
- package/dist/table.js +2 -0
- package/dist/table.js.map +1 -0
- package/dist/tailwind-preset.d.ts +475 -0
- package/dist/tailwind-preset.js +2 -0
- package/dist/tailwind-preset.js.map +1 -0
- package/dist/text-area.d.ts +19 -0
- package/dist/text-area.js +2 -0
- package/dist/text-area.js.map +1 -0
- package/dist/{components/theme-provider/src/theme-provider.d.ts → theme-provider.d.ts} +15 -16
- package/dist/theme-provider.js +29 -0
- package/dist/theme-provider.js.map +1 -0
- package/dist/tooltip.d.ts +15 -0
- package/dist/tooltip.js +2 -0
- package/dist/tooltip.js.map +1 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -0
- package/dist/variant-props-Dc9PJLzN.d.ts +11 -0
- package/dist/{components/types/src/with-style-props.d.ts → with-style-props-VnLWm0Yd.d.ts} +5 -3
- package/package.json +109 -42
- package/dist/components/alert/index.d.ts +0 -2
- package/dist/components/alert/index.d.ts.map +0 -1
- package/dist/components/alert/src/alert.d.ts +0 -21
- package/dist/components/alert/src/alert.d.ts.map +0 -1
- package/dist/components/anchor/index.d.ts +0 -2
- package/dist/components/anchor/index.d.ts.map +0 -1
- package/dist/components/anchor/src/anchor.d.ts.map +0 -1
- package/dist/components/back-to-top-button/index.d.ts +0 -9
- package/dist/components/back-to-top-button/index.d.ts.map +0 -1
- package/dist/components/button/index.d.ts +0 -5
- package/dist/components/button/index.d.ts.map +0 -1
- package/dist/components/button/src/button.d.ts +0 -43
- package/dist/components/button/src/button.d.ts.map +0 -1
- package/dist/components/button/src/icon-button.d.ts +0 -49
- package/dist/components/button/src/icon-button.d.ts.map +0 -1
- package/dist/components/card/index.d.ts +0 -3
- package/dist/components/card/index.d.ts.map +0 -1
- package/dist/components/card/src/card.d.ts +0 -26
- package/dist/components/card/src/card.d.ts.map +0 -1
- package/dist/components/checkbox/index.d.ts +0 -2
- package/dist/components/checkbox/index.d.ts.map +0 -1
- package/dist/components/checkbox/src/checkbox.d.ts +0 -5
- package/dist/components/checkbox/src/checkbox.d.ts.map +0 -1
- package/dist/components/code-block/index.d.ts +0 -7
- package/dist/components/code-block/index.d.ts.map +0 -1
- package/dist/components/code-block/src/code-block.d.ts +0 -56
- package/dist/components/code-block/src/code-block.d.ts.map +0 -1
- package/dist/components/code-block/src/fmt-code.d.ts +0 -7
- package/dist/components/code-block/src/fmt-code.d.ts.map +0 -1
- package/dist/components/code-block/src/line-numbers.d.ts +0 -9
- package/dist/components/code-block/src/line-numbers.d.ts.map +0 -1
- package/dist/components/code-block/src/parse-metastring.d.ts +0 -49
- package/dist/components/code-block/src/parse-metastring.d.ts.map +0 -1
- package/dist/components/code-block/src/supported-languages.d.ts +0 -26
- package/dist/components/code-block/src/supported-languages.d.ts.map +0 -1
- package/dist/components/core/index.d.ts +0 -2
- package/dist/components/core/index.d.ts.map +0 -1
- package/dist/components/core/src/cx.d.ts +0 -8
- package/dist/components/core/src/cx.d.ts.map +0 -1
- package/dist/components/dialog/index.d.ts +0 -2
- package/dist/components/dialog/index.d.ts.map +0 -1
- package/dist/components/dialog/src/dialog.d.ts +0 -24
- package/dist/components/dialog/src/dialog.d.ts.map +0 -1
- package/dist/components/dropdown-menu/index.d.ts +0 -2
- package/dist/components/dropdown-menu/index.d.ts.map +0 -1
- package/dist/components/dropdown-menu/src/dropdown-menu.d.ts +0 -33
- package/dist/components/dropdown-menu/src/dropdown-menu.d.ts.map +0 -1
- package/dist/components/hooks/use-isomorphic-layout-effect.d.ts +0 -6
- package/dist/components/hooks/use-isomorphic-layout-effect.d.ts.map +0 -1
- package/dist/components/hooks/use-matches-media-query.d.ts +0 -2
- package/dist/components/hooks/use-matches-media-query.d.ts.map +0 -1
- package/dist/components/hooks/use-prefers-reduced-motion.d.ts +0 -5
- package/dist/components/hooks/use-prefers-reduced-motion.d.ts.map +0 -1
- package/dist/components/icon/index.d.ts +0 -3
- package/dist/components/icon/index.d.ts.map +0 -1
- package/dist/components/icon/src/icon.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -24
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/inline-code/index.d.ts +0 -2
- package/dist/components/inline-code/index.d.ts.map +0 -1
- package/dist/components/inline-code/src/inline-code.d.ts +0 -7
- package/dist/components/inline-code/src/inline-code.d.ts.map +0 -1
- package/dist/components/input/index.d.ts +0 -6
- package/dist/components/input/index.d.ts.map +0 -1
- package/dist/components/input/src/input.d.ts +0 -21
- package/dist/components/input/src/input.d.ts.map +0 -1
- package/dist/components/input/src/password-input.d.ts +0 -7
- package/dist/components/input/src/password-input.d.ts.map +0 -1
- package/dist/components/input/src/types.d.ts +0 -51
- package/dist/components/input/src/types.d.ts.map +0 -1
- package/dist/components/media-object/index.d.ts +0 -2
- package/dist/components/media-object/index.d.ts.map +0 -1
- package/dist/components/media-object/src/media-object.d.ts.map +0 -1
- package/dist/components/popover/index.d.ts +0 -2
- package/dist/components/popover/index.d.ts.map +0 -1
- package/dist/components/popover/src/popover.d.ts +0 -7
- package/dist/components/popover/src/popover.d.ts.map +0 -1
- package/dist/components/portal/index.d.ts +0 -7
- package/dist/components/portal/index.d.ts.map +0 -1
- package/dist/components/select/index.d.ts +0 -2
- package/dist/components/select/index.d.ts.map +0 -1
- package/dist/components/select/src/select.d.ts +0 -17
- package/dist/components/select/src/select.d.ts.map +0 -1
- package/dist/components/separator/index.d.ts +0 -2
- package/dist/components/separator/index.d.ts.map +0 -1
- package/dist/components/separator/src/separator.d.ts +0 -8
- package/dist/components/separator/src/separator.d.ts.map +0 -1
- package/dist/components/sheet/index.d.ts +0 -2
- package/dist/components/sheet/index.d.ts.map +0 -1
- package/dist/components/sheet/src/sheet.d.ts +0 -18
- package/dist/components/sheet/src/sheet.d.ts.map +0 -1
- package/dist/components/skeleton/index.d.ts +0 -2
- package/dist/components/skeleton/index.d.ts.map +0 -1
- package/dist/components/skeleton/src/skeleton.d.ts.map +0 -1
- package/dist/components/table/index.d.ts +0 -2
- package/dist/components/table/index.d.ts.map +0 -1
- package/dist/components/table/src/table.d.ts +0 -11
- package/dist/components/table/src/table.d.ts.map +0 -1
- package/dist/components/text-area/index.d.ts +0 -3
- package/dist/components/text-area/index.d.ts.map +0 -1
- package/dist/components/text-area/src/text-area.d.ts +0 -14
- package/dist/components/text-area/src/text-area.d.ts.map +0 -1
- package/dist/components/theme-provider/index.d.ts +0 -5
- package/dist/components/theme-provider/index.d.ts.map +0 -1
- package/dist/components/theme-provider/src/preload-fonts.d.ts +0 -7
- package/dist/components/theme-provider/src/preload-fonts.d.ts.map +0 -1
- package/dist/components/theme-provider/src/theme-provider.d.ts.map +0 -1
- package/dist/components/tooltip/index.d.ts +0 -2
- package/dist/components/tooltip/index.d.ts.map +0 -1
- package/dist/components/tooltip/src/tooltip.d.ts +0 -11
- package/dist/components/tooltip/src/tooltip.d.ts.map +0 -1
- package/dist/components/types/index.d.ts +0 -5
- package/dist/components/types/index.d.ts.map +0 -1
- package/dist/components/types/src/as-child.d.ts.map +0 -1
- package/dist/components/types/src/deep-non-nullable.d.ts.map +0 -1
- package/dist/components/types/src/variant-props.d.ts +0 -9
- package/dist/components/types/src/variant-props.d.ts.map +0 -1
- package/dist/components/types/src/with-style-props.d.ts.map +0 -1
- package/dist/index.js +0 -2140
- package/dist/index.js.map +0 -1
- package/dist/tsconfig.publish.tsbuildinfo +0 -1
package/dist/index.js
DELETED
|
@@ -1,2140 +0,0 @@
|
|
|
1
|
-
import {jsx as $hLlzK$jsx, jsxs as $hLlzK$jsxs, Fragment as $hLlzK$Fragment} from "react/jsx-runtime";
|
|
2
|
-
import {cva as $hLlzK$cva} from "class-variance-authority";
|
|
3
|
-
import {forwardRef as $hLlzK$forwardRef, Children as $hLlzK$Children, isValidElement as $hLlzK$isValidElement, cloneElement as $hLlzK$cloneElement, createContext as $hLlzK$createContext, useState as $hLlzK$useState, useMemo as $hLlzK$useMemo, useId as $hLlzK$useId, useContext as $hLlzK$useContext, useEffect as $hLlzK$useEffect, useRef as $hLlzK$useRef, useCallback as $hLlzK$useCallback, useSyncExternalStore as $hLlzK$useSyncExternalStore} from "react";
|
|
4
|
-
import $hLlzK$clsx1, {clsx as $hLlzK$clsx} from "clsx";
|
|
5
|
-
import {twMerge as $hLlzK$twMerge} from "tailwind-merge";
|
|
6
|
-
import {Slot as $hLlzK$Slot} from "@radix-ui/react-slot";
|
|
7
|
-
import {CircleNotch as $hLlzK$CircleNotch} from "@phosphor-icons/react/CircleNotch";
|
|
8
|
-
import $hLlzK$tinyinvariant from "tiny-invariant";
|
|
9
|
-
import {Root as $hLlzK$Root, Indicator as $hLlzK$Indicator} from "@radix-ui/react-checkbox";
|
|
10
|
-
import $hLlzK$prismjs from "prismjs";
|
|
11
|
-
import "prismjs/components/prism-bash.js";
|
|
12
|
-
import "prismjs/components/prism-csharp.js";
|
|
13
|
-
import "prismjs/components/prism-css.js";
|
|
14
|
-
import "prismjs/components/prism-go.js";
|
|
15
|
-
import "prismjs/components/prism-java.js";
|
|
16
|
-
import "prismjs/components/prism-javascript.js";
|
|
17
|
-
import "prismjs/components/prism-json.js";
|
|
18
|
-
import "prismjs/components/prism-jsx.js";
|
|
19
|
-
import "prismjs/components/prism-markup.js";
|
|
20
|
-
import "prismjs/components/prism-python.js";
|
|
21
|
-
import "prismjs/components/prism-ruby.js";
|
|
22
|
-
import "prismjs/components/prism-rust.js";
|
|
23
|
-
import "prismjs/components/prism-tsx.js";
|
|
24
|
-
import "prismjs/components/prism-typescript.js";
|
|
25
|
-
import "prismjs/components/prism-yaml.js";
|
|
26
|
-
import {CaretDown as $hLlzK$CaretDown} from "@phosphor-icons/react/CaretDown";
|
|
27
|
-
import {Check as $hLlzK$Check} from "@phosphor-icons/react/Check";
|
|
28
|
-
import {Copy as $hLlzK$Copy} from "@phosphor-icons/react/Copy";
|
|
29
|
-
import {useCopyToClipboard as $hLlzK$useCopyToClipboard} from "@uidotdev/usehooks";
|
|
30
|
-
import {z as $hLlzK$z} from "zod";
|
|
31
|
-
import {X as $hLlzK$X} from "@phosphor-icons/react/X";
|
|
32
|
-
import {Root as $hLlzK$Root1, Trigger as $hLlzK$Trigger, Portal as $hLlzK$Portal, Close as $hLlzK$Close, Overlay as $hLlzK$Overlay, Content as $hLlzK$Content, Title as $hLlzK$Title, Description as $hLlzK$Description} from "@radix-ui/react-dialog";
|
|
33
|
-
import {MenuProvider as $hLlzK$MenuProvider, MenuButton as $hLlzK$MenuButton, Menu as $hLlzK$Menu, MenuItem as $hLlzK$MenuItem, MenuItemCheckbox as $hLlzK$MenuItemCheckbox, MenuItemRadio as $hLlzK$MenuItemRadio, MenuItemCheck as $hLlzK$MenuItemCheck} from "@ariakit/react";
|
|
34
|
-
import {Root as $hLlzK$Root2} from "@radix-ui/react-separator";
|
|
35
|
-
import {Warning as $hLlzK$Warning} from "@phosphor-icons/react/Warning";
|
|
36
|
-
import {Eye as $hLlzK$Eye} from "@phosphor-icons/react/Eye";
|
|
37
|
-
import {EyeClosed as $hLlzK$EyeClosed} from "@phosphor-icons/react/EyeClosed";
|
|
38
|
-
import {Root as $hLlzK$Root3, Trigger as $hLlzK$Trigger1, Portal as $hLlzK$Portal1, Content as $hLlzK$Content1} from "@radix-ui/react-popover";
|
|
39
|
-
import {CaretUp as $hLlzK$CaretUp} from "@phosphor-icons/react/CaretUp";
|
|
40
|
-
import {Root as $hLlzK$Root4, Group as $hLlzK$Group, Value as $hLlzK$Value, Trigger as $hLlzK$Trigger2, Icon as $hLlzK$Icon, ScrollUpButton as $hLlzK$ScrollUpButton, ScrollDownButton as $hLlzK$ScrollDownButton, Portal as $hLlzK$Portal2, Content as $hLlzK$Content2, Viewport as $hLlzK$Viewport, Label as $hLlzK$Label, Item as $hLlzK$Item, ItemText as $hLlzK$ItemText, ItemIndicator as $hLlzK$ItemIndicator} from "@radix-ui/react-select";
|
|
41
|
-
import {Provider as $hLlzK$Provider, Root as $hLlzK$Root5, Trigger as $hLlzK$Trigger3, Content as $hLlzK$Content3} from "@radix-ui/react-tooltip";
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
function $parcel$export(e, n, v, s) {
|
|
45
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
46
|
-
}
|
|
47
|
-
var $692b8643d76d8987$exports = {};
|
|
48
|
-
|
|
49
|
-
$parcel$export($692b8643d76d8987$exports, "Alert", function () { return $70398adbd69bc3b3$export$caec2af78bcc877f; });
|
|
50
|
-
$parcel$export($692b8643d76d8987$exports, "AlertContent", function () { return $70398adbd69bc3b3$export$7738e9160ff0021e; });
|
|
51
|
-
$parcel$export($692b8643d76d8987$exports, "AlertTitle", function () { return $70398adbd69bc3b3$export$4a7253439a300753; });
|
|
52
|
-
$parcel$export($692b8643d76d8987$exports, "AlertDescription", function () { return $70398adbd69bc3b3$export$d4feae172fccda11; });
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
function $a4274013049f8f7f$export$a274e22fb40f762e(...inputs) {
|
|
59
|
-
return (0, $hLlzK$twMerge)((0, $hLlzK$clsx)(inputs));
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
const $70398adbd69bc3b3$var$alertVariants = (0, $hLlzK$cva)("relative flex w-full gap-1.5 rounded-md border p-2.5 text-sm", {
|
|
64
|
-
variants: {
|
|
65
|
-
/**
|
|
66
|
-
* The priority of the Alert. Indicates the importance or impact level of the Alert,
|
|
67
|
-
* affecting its color and styling to communicate its purpose to the user.
|
|
68
|
-
* @default "default"
|
|
69
|
-
*/ priority: {
|
|
70
|
-
danger: "border-danger-500/50 bg-danger-500/10 text-danger-700",
|
|
71
|
-
default: "border-neutral-500/50 bg-neutral-500/10 text-neutral-700",
|
|
72
|
-
info: "border-accent-500/50 bg-accent-500/10 text-accent-700",
|
|
73
|
-
success: "border-success-500/50 bg-success-500/10 text-success-700",
|
|
74
|
-
warning: "border-warning-500/50 bg-warning-500/10 text-warning-700"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
defaultVariants: {
|
|
78
|
-
priority: "default"
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
/**
|
|
82
|
-
* Displays a callout for user attention.
|
|
83
|
-
*/ const $70398adbd69bc3b3$export$caec2af78bcc877f = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, priority: priority = "default", ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
84
|
-
ref: ref,
|
|
85
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)($70398adbd69bc3b3$var$alertVariants({
|
|
86
|
-
priority: priority
|
|
87
|
-
}), className),
|
|
88
|
-
...props
|
|
89
|
-
}));
|
|
90
|
-
$70398adbd69bc3b3$export$caec2af78bcc877f.displayName = "Alert";
|
|
91
|
-
/**
|
|
92
|
-
* The container for the content slot of an alert. Place the title and description as direct children.
|
|
93
|
-
*/ const $70398adbd69bc3b3$export$7738e9160ff0021e = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
94
|
-
ref: ref,
|
|
95
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("min-w-0 flex-1", className),
|
|
96
|
-
...props
|
|
97
|
-
}));
|
|
98
|
-
$70398adbd69bc3b3$export$7738e9160ff0021e.displayName = "AlertContent";
|
|
99
|
-
/**
|
|
100
|
-
* The title of an alert.
|
|
101
|
-
*/ const $70398adbd69bc3b3$export$4a7253439a300753 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("h5", {
|
|
102
|
-
ref: ref,
|
|
103
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("font-medium", className),
|
|
104
|
-
...props
|
|
105
|
-
}));
|
|
106
|
-
$70398adbd69bc3b3$export$4a7253439a300753.displayName = "AlertTitle";
|
|
107
|
-
/**
|
|
108
|
-
* The description of an alert.
|
|
109
|
-
*/ const $70398adbd69bc3b3$export$d4feae172fccda11 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
110
|
-
ref: ref,
|
|
111
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("text-sm", className),
|
|
112
|
-
...props
|
|
113
|
-
}));
|
|
114
|
-
$70398adbd69bc3b3$export$d4feae172fccda11.displayName = "AlertDescription";
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
var $814757e656175971$exports = {};
|
|
120
|
-
|
|
121
|
-
$parcel$export($814757e656175971$exports, "Anchor", function () { return $d7b44a6bfb86e793$export$b688253958b8dfe7; });
|
|
122
|
-
$parcel$export($814757e656175971$exports, "anchorClassNames", function () { return $d7b44a6bfb86e793$export$86577199b2baf6c3; });
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
const $d7b44a6bfb86e793$export$86577199b2baf6c3 = (className)=>(0, $a4274013049f8f7f$export$a274e22fb40f762e)("cursor-pointer rounded bg-transparent text-accent-600 hover:underline focus:outline-none focus-visible:ring focus-visible:ring-focus-accent", className);
|
|
128
|
-
/**
|
|
129
|
-
* Fundamental component for rendering links to external addresses.
|
|
130
|
-
*
|
|
131
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a
|
|
132
|
-
*
|
|
133
|
-
* @note If you need to link to an internal application route, prefer using the
|
|
134
|
-
* [`react-router-dom` `<Link>`](https://reactrouter.com/en/main/components/link) or the
|
|
135
|
-
* [`@remix-run/react` `<Link>`](https://remix.run/docs/en/main/components/link).
|
|
136
|
-
*/ const $d7b44a6bfb86e793$export$b688253958b8dfe7 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ asChild: asChild, className: className, ...props }, ref)=>{
|
|
137
|
-
const Component = asChild ? (0, $hLlzK$Slot) : "a";
|
|
138
|
-
return /*#__PURE__*/ (0, $hLlzK$jsx)(Component, {
|
|
139
|
-
className: $d7b44a6bfb86e793$export$86577199b2baf6c3(className),
|
|
140
|
-
ref: ref,
|
|
141
|
-
...props
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
$d7b44a6bfb86e793$export$b688253958b8dfe7.displayName = "Anchor";
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
var $e4a151af04a6a62e$exports = {};
|
|
150
|
-
|
|
151
|
-
$parcel$export($e4a151af04a6a62e$exports, "Button", function () { return $c2638d7be6bdca12$export$353f5b6fc5456de1; });
|
|
152
|
-
$parcel$export($e4a151af04a6a62e$exports, "IconButton", function () { return $348298fd4ccd7722$export$c25acd513dcc8062; });
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Decorates an svg icon with automatic sizing styles.
|
|
167
|
-
* Merges `className` selectors with the following order of precedence (last one wins):
|
|
168
|
-
* 1. Icon base classes
|
|
169
|
-
* 2. svg className
|
|
170
|
-
* 3. Icon className
|
|
171
|
-
*/ const $84b8ef66c3139332$export$f04a61298a47a40f = ({ className: className, style: style, svg: svg })=>{
|
|
172
|
-
const icon = (0, $hLlzK$Children).only(svg);
|
|
173
|
-
(0, $hLlzK$tinyinvariant)(/*#__PURE__*/ (0, $hLlzK$isValidElement)(icon), "Icon must be passed a single SVG icon as a JSX tag.");
|
|
174
|
-
return /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$Fragment), {
|
|
175
|
-
children: /*#__PURE__*/ (0, $hLlzK$cloneElement)(icon, {
|
|
176
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("size-6 sm:size-5 shrink-0", icon.props.className, className),
|
|
177
|
-
style: {
|
|
178
|
-
...icon.props.style,
|
|
179
|
-
...style
|
|
180
|
-
}
|
|
181
|
-
})
|
|
182
|
-
});
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
const $c2638d7be6bdca12$export$dca1ee5a936bb312 = (0, $hLlzK$cva)("items-center justify-center gap-1.5 whitespace-nowrap rounded-md focus-within:outline-none focus-visible:ring-4 disabled:pointer-events-none disabled:opacity-50 aria-disabled:opacity-50 sm:text-sm [&>*]:focus-within:outline-none", {
|
|
187
|
-
variants: {
|
|
188
|
-
/**
|
|
189
|
-
* Defines the visual style of the Button.
|
|
190
|
-
*/ appearance: {
|
|
191
|
-
filled: "inline-flex h-11 border border-transparent bg-filled-accent px-3 font-medium text-on-filled hover:bg-filled-accent-hover focus-visible:border-accent-600 focus-visible:ring-focus-accent active:bg-filled-accent-active sm:h-9",
|
|
192
|
-
ghost: "inline-flex h-11 border border-transparent px-3 font-medium text-accent-600 hover:bg-accent-500/10 hover:text-accent-700 focus-visible:ring-focus-accent active:bg-accent-500/15 active:text-accent-700 sm:h-9",
|
|
193
|
-
outlined: "inline-flex h-11 border border-accent-600 bg-form px-3 font-medium text-accent-600 hover:border-accent-700 hover:bg-accent-500/10 hover:text-accent-700 focus-visible:ring-focus-accent active:border-accent-700 active:bg-accent-500/15 active:text-accent-700 sm:h-9",
|
|
194
|
-
link: "group inline cursor-pointer border-transparent text-accent-600 hover:underline focus-visible:ring-focus-accent"
|
|
195
|
-
},
|
|
196
|
-
/**
|
|
197
|
-
* The side that the icon will render on, if one is present. If `state="pending"`,
|
|
198
|
-
* then the loading icon will also render on this side.
|
|
199
|
-
*/ iconPlacement: {
|
|
200
|
-
end: "pe-2.5",
|
|
201
|
-
start: "ps-2.5"
|
|
202
|
-
},
|
|
203
|
-
/**
|
|
204
|
-
* Whether or not the button is in a loading state, default `false`. Setting `isLoading` will
|
|
205
|
-
* replace any `icon` with a spinner, or add one if an icon wasn't given.
|
|
206
|
-
* It will also disable user interaction with the button and set `aria-disabled`.
|
|
207
|
-
*/ isLoading: {
|
|
208
|
-
false: "",
|
|
209
|
-
true: "opacity-50"
|
|
210
|
-
},
|
|
211
|
-
/**
|
|
212
|
-
* Indicates the importance or impact level of the button, affecting its
|
|
213
|
-
* color and styling to communicate its purpose to the user
|
|
214
|
-
*/ priority: {
|
|
215
|
-
danger: "",
|
|
216
|
-
default: "",
|
|
217
|
-
neutral: ""
|
|
218
|
-
}
|
|
219
|
-
},
|
|
220
|
-
defaultVariants: {
|
|
221
|
-
appearance: "outlined",
|
|
222
|
-
isLoading: false,
|
|
223
|
-
priority: "default"
|
|
224
|
-
},
|
|
225
|
-
compoundVariants: [
|
|
226
|
-
{
|
|
227
|
-
appearance: "ghost",
|
|
228
|
-
priority: "danger",
|
|
229
|
-
class: "border-transparent text-danger-600 hover:bg-danger-500/10 hover:text-danger-700 focus-visible:ring-focus-danger active:bg-danger-500/15 active:text-danger-700"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
appearance: "outlined",
|
|
233
|
-
priority: "danger",
|
|
234
|
-
class: "border-danger-600 bg-form text-danger-600 hover:border-danger-700 hover:bg-danger-500/10 hover:text-danger-700 focus-visible:ring-focus-danger active:border-danger-700 active:bg-danger-500/15 active:text-danger-700"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
appearance: "filled",
|
|
238
|
-
priority: "danger",
|
|
239
|
-
class: "border-transparent bg-filled-danger hover:bg-filled-danger-hover focus-visible:border-danger-600 focus-visible:ring-focus-danger active:bg-filled-danger-active"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
appearance: "link",
|
|
243
|
-
priority: "danger",
|
|
244
|
-
class: "text-danger-600 focus-visible:ring-focus-danger"
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
appearance: "ghost",
|
|
248
|
-
priority: "neutral",
|
|
249
|
-
class: "border-transparent text-strong hover:bg-neutral-500/10 hover:text-strong focus-visible:ring-focus-accent active:bg-neutral-500/15 active:text-strong"
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
appearance: "outlined",
|
|
253
|
-
priority: "neutral",
|
|
254
|
-
class: "border-form bg-form text-strong hover:border-neutral-400 hover:bg-form-hover hover:text-strong focus-visible:border-accent-600 focus-visible:ring-focus-accent active:border-neutral-400 active:bg-neutral-500/10 active:text-strong focus-visible:active:border-accent-600"
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
appearance: "filled",
|
|
258
|
-
priority: "neutral",
|
|
259
|
-
class: "border-transparent bg-filled-neutral hover:bg-filled-neutral-hover focus-visible:border-neutral-600 focus-visible:ring-focus-neutral active:bg-filled-neutral-active"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
appearance: "link",
|
|
263
|
-
priority: "neutral",
|
|
264
|
-
class: "text-strong focus-visible:ring-focus-accent"
|
|
265
|
-
}
|
|
266
|
-
]
|
|
267
|
-
});
|
|
268
|
-
/**
|
|
269
|
-
* Renders a button or a component that looks like a button, an interactive
|
|
270
|
-
* element activated by a user with a mouse, keyboard, finger, voice command, or
|
|
271
|
-
* other assistive technology. Once activated, it then performs an action, such
|
|
272
|
-
* as submitting a form or opening a dialog.
|
|
273
|
-
*
|
|
274
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button
|
|
275
|
-
*/ const $c2638d7be6bdca12$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ "aria-disabled": _ariaDisabled, appearance: appearance = "outlined", asChild: asChild = false, children: children, className: className, icon: propIcon, iconPlacement: iconPlacement = "start", isLoading: isLoading = false, onClickCapture: onClickCapture, priority: priority = "default", ...props }, ref)=>{
|
|
276
|
-
const ariaDisabled = _ariaDisabled !== null && _ariaDisabled !== void 0 ? _ariaDisabled : isLoading;
|
|
277
|
-
const icon = isLoading ? /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$CircleNotch), {
|
|
278
|
-
className: "animate-spin"
|
|
279
|
-
}) : propIcon;
|
|
280
|
-
const _onClickCapture = (event)=>{
|
|
281
|
-
if (isLoading) {
|
|
282
|
-
event.preventDefault();
|
|
283
|
-
event.stopPropagation();
|
|
284
|
-
}
|
|
285
|
-
onClickCapture === null || onClickCapture === void 0 ? void 0 : onClickCapture(event);
|
|
286
|
-
};
|
|
287
|
-
const buttonProps = {
|
|
288
|
-
"aria-disabled": ariaDisabled,
|
|
289
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)($c2638d7be6bdca12$export$dca1ee5a936bb312({
|
|
290
|
-
appearance: appearance,
|
|
291
|
-
priority: priority,
|
|
292
|
-
isLoading: isLoading,
|
|
293
|
-
iconPlacement: icon ? iconPlacement : undefined
|
|
294
|
-
}), className),
|
|
295
|
-
"data-loading": isLoading,
|
|
296
|
-
onClickCapture: _onClickCapture,
|
|
297
|
-
ref: ref,
|
|
298
|
-
...props
|
|
299
|
-
};
|
|
300
|
-
if (asChild) {
|
|
301
|
-
var _singleChild_props;
|
|
302
|
-
const singleChild = (0, $hLlzK$Children).only(children);
|
|
303
|
-
(0, $hLlzK$tinyinvariant)(/*#__PURE__*/ (0, $hLlzK$isValidElement)(singleChild), "When using `asChild`, Button must be passed a single child as a JSX tag.");
|
|
304
|
-
const grandchildren = (_singleChild_props = singleChild.props) === null || _singleChild_props === void 0 ? void 0 : _singleChild_props.children;
|
|
305
|
-
return /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$Slot), {
|
|
306
|
-
...buttonProps,
|
|
307
|
-
children: /*#__PURE__*/ (0, $hLlzK$cloneElement)(singleChild, {}, /*#__PURE__*/ (0, $hLlzK$jsx)($c2638d7be6bdca12$var$InnerContent, {
|
|
308
|
-
appearance: appearance,
|
|
309
|
-
icon: icon,
|
|
310
|
-
iconPlacement: iconPlacement,
|
|
311
|
-
children: grandchildren
|
|
312
|
-
}))
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
return /*#__PURE__*/ (0, $hLlzK$jsx)("button", {
|
|
316
|
-
...buttonProps,
|
|
317
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsx)($c2638d7be6bdca12$var$InnerContent, {
|
|
318
|
-
appearance: appearance,
|
|
319
|
-
icon: icon,
|
|
320
|
-
iconPlacement: iconPlacement,
|
|
321
|
-
children: children
|
|
322
|
-
})
|
|
323
|
-
});
|
|
324
|
-
});
|
|
325
|
-
$c2638d7be6bdca12$export$353f5b6fc5456de1.displayName = "Button";
|
|
326
|
-
const $c2638d7be6bdca12$var$InnerContent = ({ appearance: appearance, children: children, icon: icon, iconPlacement: iconPlacement })=>/*#__PURE__*/ (0, $hLlzK$jsxs)("span", {
|
|
327
|
-
className: (0, $hLlzK$clsx1)("inline-flex items-center gap-1.5 focus-within:outline-none focus-visible:outline-none", appearance === "link" && "group-hover:underline"),
|
|
328
|
-
children: [
|
|
329
|
-
icon && /*#__PURE__*/ (0, $hLlzK$jsx)((0, $84b8ef66c3139332$export$f04a61298a47a40f), {
|
|
330
|
-
svg: icon,
|
|
331
|
-
className: (0, $hLlzK$clsx1)(iconPlacement === "end" && "order-last")
|
|
332
|
-
}),
|
|
333
|
-
children
|
|
334
|
-
]
|
|
335
|
-
});
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
const $348298fd4ccd7722$var$iconButtonVariants = (0, $hLlzK$cva)("inline-flex items-center justify-center rounded-md border focus-within:outline-none focus-visible:ring-4 disabled:pointer-events-none disabled:opacity-50 aria-disabled:opacity-50", {
|
|
346
|
-
variants: {
|
|
347
|
-
/**
|
|
348
|
-
* Defines the visual style of the Button.
|
|
349
|
-
*/ appearance: {
|
|
350
|
-
ghost: "border-transparent text-strong hover:bg-neutral-500/10 hover:text-strong focus-visible:ring-focus-accent active:bg-neutral-500/15 active:text-strong",
|
|
351
|
-
outlined: "border-form bg-form text-strong hover:border-neutral-400 hover:bg-form-hover hover:text-strong focus-visible:border-accent-600 focus-visible:ring-focus-accent active:border-neutral-400 active:bg-neutral-500/10 active:text-strong focus-visible:active:border-accent-600"
|
|
352
|
-
},
|
|
353
|
-
/**
|
|
354
|
-
* Whether or not the button is in a loading state, default `false`. Setting `isLoading` will
|
|
355
|
-
* replace the `icon` with a spinner.
|
|
356
|
-
* It will also disable user interaction with the button and set `aria-disabled`.
|
|
357
|
-
*/ isLoading: {
|
|
358
|
-
false: "",
|
|
359
|
-
true: "opacity-50"
|
|
360
|
-
},
|
|
361
|
-
/**
|
|
362
|
-
* The size of the IconButton.
|
|
363
|
-
*/ size: {
|
|
364
|
-
xs: "size-7 sm:size-6",
|
|
365
|
-
sm: "size-9 sm:size-7",
|
|
366
|
-
md: "size-11 sm:size-9"
|
|
367
|
-
}
|
|
368
|
-
},
|
|
369
|
-
defaultVariants: {
|
|
370
|
-
appearance: "outlined",
|
|
371
|
-
size: "md"
|
|
372
|
-
}
|
|
373
|
-
});
|
|
374
|
-
/**
|
|
375
|
-
* Renders a button or a component that looks like a button, an interactive
|
|
376
|
-
* element activated by a user with a mouse, keyboard, finger, voice command, or
|
|
377
|
-
* other assistive technology. Once activated, it then performs an action, such
|
|
378
|
-
* as submitting a form or opening a dialog.
|
|
379
|
-
* Renders only a single icon as children with an accessible, screen-reader-only label.
|
|
380
|
-
*
|
|
381
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button
|
|
382
|
-
*/ const $348298fd4ccd7722$export$c25acd513dcc8062 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ "aria-disabled": _ariaDisabled, appearance: appearance, asChild: asChild = false, children: children, className: className, isLoading: isLoading = false, icon: propIcon, label: label, onClickCapture: onClickCapture, size: size, ...props }, ref)=>{
|
|
383
|
-
const ariaDisabled = _ariaDisabled !== null && _ariaDisabled !== void 0 ? _ariaDisabled : isLoading;
|
|
384
|
-
const _onClickCapture = (event)=>{
|
|
385
|
-
if (isLoading) {
|
|
386
|
-
event.preventDefault();
|
|
387
|
-
event.stopPropagation();
|
|
388
|
-
}
|
|
389
|
-
onClickCapture === null || onClickCapture === void 0 ? void 0 : onClickCapture(event);
|
|
390
|
-
};
|
|
391
|
-
const buttonProps = {
|
|
392
|
-
"aria-disabled": ariaDisabled,
|
|
393
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)($348298fd4ccd7722$var$iconButtonVariants({
|
|
394
|
-
appearance: appearance,
|
|
395
|
-
isLoading: isLoading,
|
|
396
|
-
size: size
|
|
397
|
-
}), className),
|
|
398
|
-
"data-loading": isLoading,
|
|
399
|
-
onClickCapture: _onClickCapture,
|
|
400
|
-
ref: ref,
|
|
401
|
-
...props
|
|
402
|
-
};
|
|
403
|
-
if (asChild) {
|
|
404
|
-
const singleChild = (0, $hLlzK$Children).only(children);
|
|
405
|
-
const isValidChild = /*#__PURE__*/ (0, $hLlzK$isValidElement)(singleChild);
|
|
406
|
-
const icon = isLoading ? /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$CircleNotch), {
|
|
407
|
-
className: "animate-spin"
|
|
408
|
-
}) : propIcon;
|
|
409
|
-
return /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$Slot), {
|
|
410
|
-
...buttonProps,
|
|
411
|
-
children: isValidChild && /*#__PURE__*/ (0, $hLlzK$cloneElement)(singleChild, {}, /*#__PURE__*/ (0, $hLlzK$jsx)((0, $84b8ef66c3139332$export$f04a61298a47a40f), {
|
|
412
|
-
svg: icon
|
|
413
|
-
}))
|
|
414
|
-
});
|
|
415
|
-
}
|
|
416
|
-
const icon = isLoading ? /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$CircleNotch), {
|
|
417
|
-
className: "animate-spin"
|
|
418
|
-
}) : propIcon;
|
|
419
|
-
return /*#__PURE__*/ (0, $hLlzK$jsxs)("button", {
|
|
420
|
-
...buttonProps,
|
|
421
|
-
children: [
|
|
422
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)("span", {
|
|
423
|
-
className: "sr-only",
|
|
424
|
-
children: label
|
|
425
|
-
}),
|
|
426
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)((0, $84b8ef66c3139332$export$f04a61298a47a40f), {
|
|
427
|
-
svg: icon
|
|
428
|
-
})
|
|
429
|
-
]
|
|
430
|
-
});
|
|
431
|
-
});
|
|
432
|
-
$348298fd4ccd7722$export$c25acd513dcc8062.displayName = "IconButton";
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
var $b9d5893769d495bc$exports = {};
|
|
438
|
-
|
|
439
|
-
$parcel$export($b9d5893769d495bc$exports, "Card", function () { return $267cd022d92c6243$export$60332b2344f7fe41; });
|
|
440
|
-
$parcel$export($b9d5893769d495bc$exports, "CardBody", function () { return $267cd022d92c6243$export$851de33184ecdac4; });
|
|
441
|
-
$parcel$export($b9d5893769d495bc$exports, "CardFooter", function () { return $267cd022d92c6243$export$e9897d434e0741ee; });
|
|
442
|
-
$parcel$export($b9d5893769d495bc$exports, "CardHeader", function () { return $267cd022d92c6243$export$5665775b26e26c5d; });
|
|
443
|
-
$parcel$export($b9d5893769d495bc$exports, "CardTitle", function () { return $267cd022d92c6243$export$474db65c3c394e1c; });
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
const $267cd022d92c6243$export$60332b2344f7fe41 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, ...rest }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
449
|
-
ref: ref,
|
|
450
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("relative divide-y divide-card-muted rounded-md border border-card bg-card", className),
|
|
451
|
-
...rest,
|
|
452
|
-
children: children
|
|
453
|
-
}));
|
|
454
|
-
$267cd022d92c6243$export$60332b2344f7fe41.displayName = "Card";
|
|
455
|
-
const $267cd022d92c6243$export$851de33184ecdac4 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, ...rest }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
456
|
-
ref: ref,
|
|
457
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("p-6", className),
|
|
458
|
-
...rest,
|
|
459
|
-
children: children
|
|
460
|
-
}));
|
|
461
|
-
$267cd022d92c6243$export$851de33184ecdac4.displayName = "CardBody";
|
|
462
|
-
const $267cd022d92c6243$export$e9897d434e0741ee = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, ...rest }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
463
|
-
ref: ref,
|
|
464
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("px-6 py-3", className),
|
|
465
|
-
...rest,
|
|
466
|
-
children: children
|
|
467
|
-
}));
|
|
468
|
-
$267cd022d92c6243$export$e9897d434e0741ee.displayName = "CardFooter";
|
|
469
|
-
const $267cd022d92c6243$export$5665775b26e26c5d = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, ...rest }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
470
|
-
ref: ref,
|
|
471
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("px-6 py-3", className),
|
|
472
|
-
...rest,
|
|
473
|
-
children: children
|
|
474
|
-
}));
|
|
475
|
-
$267cd022d92c6243$export$5665775b26e26c5d.displayName = "CardHeader";
|
|
476
|
-
const $267cd022d92c6243$export$474db65c3c394e1c = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, asChild: asChild, ...props }, ref)=>{
|
|
477
|
-
const Comp = asChild ? (0, $hLlzK$Slot) : "h3";
|
|
478
|
-
return /*#__PURE__*/ (0, $hLlzK$jsx)(Comp, {
|
|
479
|
-
ref: ref,
|
|
480
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("font-semibold leading-none tracking-tight", className),
|
|
481
|
-
...props
|
|
482
|
-
});
|
|
483
|
-
});
|
|
484
|
-
$267cd022d92c6243$export$474db65c3c394e1c.displayName = "CardTitle";
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
var $cca3bc15b1a90c0f$exports = {};
|
|
490
|
-
|
|
491
|
-
$parcel$export($cca3bc15b1a90c0f$exports, "Checkbox", function () { return $4de59be9540e7045$export$48513f6b9f8ce62d; });
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
const $4de59be9540e7045$export$48513f6b9f8ce62d = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsxs)($hLlzK$Root, {
|
|
497
|
-
ref: ref,
|
|
498
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("size-4 shrink-0 appearance-none rounded border border-form bg-form focus:border-accent-600 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-focus-accent disabled:cursor-not-allowed disabled:opacity-50 data-state-checked:border-transparent data-state-checked:bg-filled-accent data-state-indeterminate:border-transparent data-state-indeterminate:bg-filled-accent", className),
|
|
499
|
-
...props,
|
|
500
|
-
children: [
|
|
501
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Indicator, {
|
|
502
|
-
className: "hidden items-center justify-center leading-none text-on-filled data-state-checked:flex",
|
|
503
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsx)($4de59be9540e7045$var$CheckedIcon, {
|
|
504
|
-
className: "size-3"
|
|
505
|
-
})
|
|
506
|
-
}),
|
|
507
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Indicator, {
|
|
508
|
-
className: "hidden items-center justify-center text-on-filled data-state-indeterminate:flex",
|
|
509
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsx)($4de59be9540e7045$var$IndeterminateIcon, {
|
|
510
|
-
className: "size-3"
|
|
511
|
-
})
|
|
512
|
-
}),
|
|
513
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Indicator, {})
|
|
514
|
-
]
|
|
515
|
-
}));
|
|
516
|
-
$4de59be9540e7045$export$48513f6b9f8ce62d.displayName = "Checkbox";
|
|
517
|
-
const $4de59be9540e7045$var$CheckedIcon = ({ className: className, style: style })=>/*#__PURE__*/ (0, $hLlzK$jsx)("svg", {
|
|
518
|
-
className: className,
|
|
519
|
-
style: style,
|
|
520
|
-
viewBox: "0 0 16 16",
|
|
521
|
-
fill: "none",
|
|
522
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
523
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsx)("path", {
|
|
524
|
-
d: "M12.7071 4.29289C13.0976 4.68342 13.0976 5.31658 12.7071 5.70711L6.70711 11.7071C6.31658 12.0976 5.68342 12.0976 5.29289 11.7071L3.29289 9.70711C2.90237 9.31658 2.90237 8.68342 3.29289 8.29289C3.68342 7.90237 4.31658 7.90237 4.70711 8.29289L6 9.58579L11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289Z",
|
|
525
|
-
fill: "currentColor"
|
|
526
|
-
})
|
|
527
|
-
});
|
|
528
|
-
const $4de59be9540e7045$var$IndeterminateIcon = ({ className: className, style: style })=>/*#__PURE__*/ (0, $hLlzK$jsx)("svg", {
|
|
529
|
-
className: className,
|
|
530
|
-
style: style,
|
|
531
|
-
viewBox: "0 0 16 16",
|
|
532
|
-
fill: "none",
|
|
533
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
534
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsx)("path", {
|
|
535
|
-
d: "M4 8C4 7.44772 4.44772 7 5 7H11C11.5523 7 12 7.44772 12 8C12 8.55228 11.5523 9 11 9H5C4.44772 9 4 8.55228 4 8Z",
|
|
536
|
-
fill: "currentColor"
|
|
537
|
-
})
|
|
538
|
-
});
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
var $467de5d6131f2179$exports = {};
|
|
544
|
-
|
|
545
|
-
$parcel$export($467de5d6131f2179$exports, "CodeBlock", function () { return $3e8792480c5dc036$export$6c415d1fdae3dfdb; });
|
|
546
|
-
$parcel$export($467de5d6131f2179$exports, "CodeBlockBody", function () { return $3e8792480c5dc036$export$7e83364d3e7fd36a; });
|
|
547
|
-
$parcel$export($467de5d6131f2179$exports, "CodeBlockCode", function () { return $3e8792480c5dc036$export$1c41328978c69a88; });
|
|
548
|
-
$parcel$export($467de5d6131f2179$exports, "CodeBlockCopyButton", function () { return $3e8792480c5dc036$export$2e9b808b8155db21; });
|
|
549
|
-
$parcel$export($467de5d6131f2179$exports, "CodeBlockExpanderButton", function () { return $3e8792480c5dc036$export$2e996d1cfaa94c3d; });
|
|
550
|
-
$parcel$export($467de5d6131f2179$exports, "CodeBlockHeader", function () { return $3e8792480c5dc036$export$b351deb59183780; });
|
|
551
|
-
$parcel$export($467de5d6131f2179$exports, "CodeBlockTitle", function () { return $3e8792480c5dc036$export$b5654939a1e891d; });
|
|
552
|
-
$parcel$export($467de5d6131f2179$exports, "fmtCode", function () { return $bcf58924b06fb166$export$6e62a5150605254a; });
|
|
553
|
-
$parcel$export($467de5d6131f2179$exports, "defaultMeta", function () { return $c58b35aa9fcfa4d0$export$63f5d3298ab11b24; });
|
|
554
|
-
$parcel$export($467de5d6131f2179$exports, "parseMetastring", function () { return $c58b35aa9fcfa4d0$export$2b83d7916142717; });
|
|
555
|
-
$parcel$export($467de5d6131f2179$exports, "formatLanguageClassName", function () { return $3107245668823796$export$fa66e0e5413be530; });
|
|
556
|
-
$parcel$export($467de5d6131f2179$exports, "isSupportedLanguage", function () { return $3107245668823796$export$47c66070d6d6cd6d; });
|
|
557
|
-
$parcel$export($467de5d6131f2179$exports, "parseLanguage", function () { return $3107245668823796$export$dbb82c29aa7faca4; });
|
|
558
|
-
$parcel$export($467de5d6131f2179$exports, "supportedLanguages", function () { return $3107245668823796$export$1c2c8674a5fbafd; });
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
/**
|
|
585
|
-
* List of supported languages for syntax highlighting.
|
|
586
|
-
* @private
|
|
587
|
-
*/ const $3107245668823796$export$1c2c8674a5fbafd = [
|
|
588
|
-
"bash",
|
|
589
|
-
"cs",
|
|
590
|
-
"csharp",
|
|
591
|
-
"css",
|
|
592
|
-
"dotnet",
|
|
593
|
-
"go",
|
|
594
|
-
"html",
|
|
595
|
-
"java",
|
|
596
|
-
"javascript",
|
|
597
|
-
"js",
|
|
598
|
-
"json",
|
|
599
|
-
"jsx",
|
|
600
|
-
"markup",
|
|
601
|
-
"plain",
|
|
602
|
-
"plaintext",
|
|
603
|
-
"py",
|
|
604
|
-
"python",
|
|
605
|
-
"rb",
|
|
606
|
-
"ruby",
|
|
607
|
-
"rust",
|
|
608
|
-
"sh",
|
|
609
|
-
"shell",
|
|
610
|
-
"text",
|
|
611
|
-
"ts",
|
|
612
|
-
"tsx",
|
|
613
|
-
"txt",
|
|
614
|
-
"typescript",
|
|
615
|
-
"xml",
|
|
616
|
-
"yaml",
|
|
617
|
-
"yml"
|
|
618
|
-
];
|
|
619
|
-
/**
|
|
620
|
-
* Parses a markdown code block (```) language class into a SupportedLanguage.
|
|
621
|
-
* Defaults to "sh" if no supported language is found.
|
|
622
|
-
*/ function $3107245668823796$export$dbb82c29aa7faca4(value) {
|
|
623
|
-
if (!value) return "sh";
|
|
624
|
-
// remove leading "language-" and "lang-" prefixes
|
|
625
|
-
// find first '-' and slice from there
|
|
626
|
-
const maybeLanguage = value.trim().slice(value.indexOf("-") + 1);
|
|
627
|
-
return $3107245668823796$export$47c66070d6d6cd6d(maybeLanguage) ? maybeLanguage : "sh";
|
|
628
|
-
}
|
|
629
|
-
/**
|
|
630
|
-
* Type Predicate: checks if an arbitrary value is a supported syntax highlighting language.
|
|
631
|
-
*/ const $3107245668823796$export$47c66070d6d6cd6d = (value)=>{
|
|
632
|
-
return typeof value === "string" && $3107245668823796$export$1c2c8674a5fbafd.includes(value);
|
|
633
|
-
};
|
|
634
|
-
/**
|
|
635
|
-
* Formats a language name into a class name that Prism.js can understand.
|
|
636
|
-
* @default "language-sh"
|
|
637
|
-
*/ function $3107245668823796$export$fa66e0e5413be530(language = "sh") {
|
|
638
|
-
const lang = language !== null && language !== void 0 ? language : "sh";
|
|
639
|
-
const className = `language-${lang}`;
|
|
640
|
-
return className;
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
const $3e8792480c5dc036$var$CodeBlockContext = /*#__PURE__*/ (0, $hLlzK$createContext)({
|
|
645
|
-
codeId: undefined,
|
|
646
|
-
copyText: "",
|
|
647
|
-
hasCodeExpander: false,
|
|
648
|
-
isCodeExpanded: false,
|
|
649
|
-
registerCodeId: ()=>{},
|
|
650
|
-
setCopyText: ()=>{},
|
|
651
|
-
setHasCodeExpander: ()=>{},
|
|
652
|
-
setIsCodeExpanded: ()=>{},
|
|
653
|
-
unregisterCodeId: ()=>{}
|
|
654
|
-
});
|
|
655
|
-
const $3e8792480c5dc036$export$6c415d1fdae3dfdb = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>{
|
|
656
|
-
const [copyText, setCopyText] = (0, $hLlzK$useState)("");
|
|
657
|
-
const [hasCodeExpander, setHasCodeExpander] = (0, $hLlzK$useState)(false);
|
|
658
|
-
const [isCodeExpanded, setIsCodeExpanded] = (0, $hLlzK$useState)(false);
|
|
659
|
-
const [codeId, setCodeId] = (0, $hLlzK$useState)(undefined);
|
|
660
|
-
const context = (0, $hLlzK$useMemo)(()=>({
|
|
661
|
-
codeId: codeId,
|
|
662
|
-
copyText: copyText,
|
|
663
|
-
hasCodeExpander: hasCodeExpander,
|
|
664
|
-
isCodeExpanded: isCodeExpanded,
|
|
665
|
-
registerCodeId: (id)=>{
|
|
666
|
-
setCodeId((old)=>{
|
|
667
|
-
(0, $hLlzK$tinyinvariant)(old == null, "You can only render a single CodeBlockCode within a CodeBlock.");
|
|
668
|
-
return id;
|
|
669
|
-
});
|
|
670
|
-
},
|
|
671
|
-
setCopyText: setCopyText,
|
|
672
|
-
setHasCodeExpander: setHasCodeExpander,
|
|
673
|
-
setIsCodeExpanded: setIsCodeExpanded,
|
|
674
|
-
unregisterCodeId: (id)=>{
|
|
675
|
-
setCodeId((old)=>{
|
|
676
|
-
(0, $hLlzK$tinyinvariant)(old === id, "You can only render a single CodeBlockCode within a CodeBlock.");
|
|
677
|
-
return undefined;
|
|
678
|
-
});
|
|
679
|
-
}
|
|
680
|
-
}), [
|
|
681
|
-
codeId,
|
|
682
|
-
copyText,
|
|
683
|
-
hasCodeExpander,
|
|
684
|
-
isCodeExpanded
|
|
685
|
-
]);
|
|
686
|
-
return /*#__PURE__*/ (0, $hLlzK$jsx)($3e8792480c5dc036$var$CodeBlockContext.Provider, {
|
|
687
|
-
value: context,
|
|
688
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
689
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("overflow-hidden rounded-md border border-gray-300 bg-gray-50 font-mono text-[0.8125rem]", className),
|
|
690
|
-
ref: ref,
|
|
691
|
-
...props
|
|
692
|
-
})
|
|
693
|
-
});
|
|
694
|
-
});
|
|
695
|
-
$3e8792480c5dc036$export$6c415d1fdae3dfdb.displayName = "CodeBlock";
|
|
696
|
-
const $3e8792480c5dc036$export$7e83364d3e7fd36a = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
697
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("relative", className),
|
|
698
|
-
ref: ref,
|
|
699
|
-
...props
|
|
700
|
-
}));
|
|
701
|
-
$3e8792480c5dc036$export$7e83364d3e7fd36a.displayName = "CodeBlockBody";
|
|
702
|
-
const $3e8792480c5dc036$export$1c41328978c69a88 = /*#__PURE__*/ (0, $hLlzK$forwardRef)((props, ref)=>{
|
|
703
|
-
const { className: className, language: language = "text", style: style, value: value } = props;
|
|
704
|
-
const id = (0, $hLlzK$useId)();
|
|
705
|
-
const { hasCodeExpander: hasCodeExpander, isCodeExpanded: isCodeExpanded, registerCodeId: registerCodeId, setCopyText: setCopyText, unregisterCodeId: unregisterCodeId } = (0, $hLlzK$useContext)($3e8792480c5dc036$var$CodeBlockContext);
|
|
706
|
-
var _value_trim;
|
|
707
|
-
// trim any leading and trailing whitespace/empty lines
|
|
708
|
-
const trimmedCode = (_value_trim = value === null || value === void 0 ? void 0 : value.trim()) !== null && _value_trim !== void 0 ? _value_trim : "";
|
|
709
|
-
const [highlightedCodeInnerHtml, setHighlightedCodeInnerHtml] = (0, $hLlzK$useState)(trimmedCode);
|
|
710
|
-
(0, $hLlzK$useEffect)(()=>{
|
|
711
|
-
const grammar = (0, $hLlzK$prismjs).languages[language];
|
|
712
|
-
(0, $hLlzK$tinyinvariant)(grammar, `CodeBlock does not support the language "${language}". The syntax highlighter does not have a grammar for this language. The supported languages are: ${(0, $3107245668823796$export$1c2c8674a5fbafd).join(", ")}.`);
|
|
713
|
-
const newHighlightedCodeInnerHtml = (0, $hLlzK$prismjs).highlight(trimmedCode, grammar, language);
|
|
714
|
-
setHighlightedCodeInnerHtml(newHighlightedCodeInnerHtml);
|
|
715
|
-
}, [
|
|
716
|
-
trimmedCode,
|
|
717
|
-
language
|
|
718
|
-
]);
|
|
719
|
-
(0, $hLlzK$useEffect)(()=>{
|
|
720
|
-
setCopyText(trimmedCode);
|
|
721
|
-
}, [
|
|
722
|
-
trimmedCode,
|
|
723
|
-
setCopyText
|
|
724
|
-
]);
|
|
725
|
-
(0, $hLlzK$useEffect)(()=>{
|
|
726
|
-
registerCodeId(id);
|
|
727
|
-
return ()=>{
|
|
728
|
-
unregisterCodeId(id);
|
|
729
|
-
};
|
|
730
|
-
}, [
|
|
731
|
-
id,
|
|
732
|
-
registerCodeId,
|
|
733
|
-
unregisterCodeId
|
|
734
|
-
]);
|
|
735
|
-
return /*#__PURE__*/ (0, $hLlzK$jsx)("pre", {
|
|
736
|
-
"aria-expanded": hasCodeExpander ? isCodeExpanded : undefined,
|
|
737
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)((0, $3107245668823796$export$fa66e0e5413be530)(language), "scrollbar overflow-x-auto overflow-y-hidden p-4 pr-[3.375rem] firefox:after:mr-[3.375rem] firefox:after:inline-block firefox:after:content-['']", "aria-collapsed:max-h-[13.6rem]", className),
|
|
738
|
-
"data-lang": language,
|
|
739
|
-
id: id,
|
|
740
|
-
ref: ref,
|
|
741
|
-
style: {
|
|
742
|
-
...style,
|
|
743
|
-
tabSize: 2,
|
|
744
|
-
MozTabSize: 2
|
|
745
|
-
},
|
|
746
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsx)("code", {
|
|
747
|
-
dangerouslySetInnerHTML: {
|
|
748
|
-
__html: highlightedCodeInnerHtml
|
|
749
|
-
}
|
|
750
|
-
})
|
|
751
|
-
});
|
|
752
|
-
});
|
|
753
|
-
$3e8792480c5dc036$export$1c41328978c69a88.displayName = "CodeBlockCode";
|
|
754
|
-
const $3e8792480c5dc036$export$b351deb59183780 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
755
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("flex items-center gap-1 border-b border-gray-300 bg-gray-100 px-4 py-2 text-gray-700", className),
|
|
756
|
-
ref: ref,
|
|
757
|
-
...props
|
|
758
|
-
}));
|
|
759
|
-
$3e8792480c5dc036$export$b351deb59183780.displayName = "CodeBlockHeader";
|
|
760
|
-
const $3e8792480c5dc036$export$b5654939a1e891d = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ asChild: asChild = false, className: className, ...props }, ref)=>{
|
|
761
|
-
const Comp = asChild ? (0, $hLlzK$Slot) : "h3";
|
|
762
|
-
return /*#__PURE__*/ (0, $hLlzK$jsx)(Comp, {
|
|
763
|
-
ref: ref,
|
|
764
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("font-mono text-[0.8125rem] font-normal", className),
|
|
765
|
-
...props
|
|
766
|
-
});
|
|
767
|
-
});
|
|
768
|
-
$3e8792480c5dc036$export$b5654939a1e891d.displayName = "CodeBlockTitle";
|
|
769
|
-
const $3e8792480c5dc036$export$2e9b808b8155db21 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, onCopy: onCopy, onCopyError: onCopyError, style: style }, ref)=>{
|
|
770
|
-
const { copyText: copyText } = (0, $hLlzK$useContext)($3e8792480c5dc036$var$CodeBlockContext);
|
|
771
|
-
const [, copyToClipboard] = (0, $hLlzK$useCopyToClipboard)();
|
|
772
|
-
const [copied, setCopied] = (0, $hLlzK$useState)(false);
|
|
773
|
-
(0, $hLlzK$useEffect)(()=>{
|
|
774
|
-
if (copied) {
|
|
775
|
-
const timeoutId = window.setTimeout(()=>{
|
|
776
|
-
setCopied(false);
|
|
777
|
-
}, 2000);
|
|
778
|
-
return ()=>{
|
|
779
|
-
clearTimeout(timeoutId);
|
|
780
|
-
};
|
|
781
|
-
}
|
|
782
|
-
}, [
|
|
783
|
-
copied
|
|
784
|
-
]);
|
|
785
|
-
return /*#__PURE__*/ (0, $hLlzK$jsxs)("button", {
|
|
786
|
-
type: "button",
|
|
787
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("absolute right-3 top-3 z-10 flex h-7 w-7 items-center justify-center rounded border border-gray-300 bg-gray-50 shadow-[-1rem_0_0.75rem_-0.375rem_hsl(var(--gray-50)),1rem_0_0_-0.25rem_hsl(var(--gray-50))] hover:border-gray-400 hover:bg-gray-200 focus-visible:border-accent-600 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-focus-accent", copied && "w-auto gap-1 border-transparent bg-filled-success pl-2 pr-1.5 text-on-filled hover:border-transparent hover:bg-filled-success focus:bg-filled-success focus-visible:border-success-600 focus-visible:ring-focus-success", className),
|
|
788
|
-
ref: ref,
|
|
789
|
-
style: style,
|
|
790
|
-
onClick: async ()=>{
|
|
791
|
-
try {
|
|
792
|
-
await copyToClipboard(copyText);
|
|
793
|
-
onCopy === null || onCopy === void 0 ? void 0 : onCopy(copyText);
|
|
794
|
-
setCopied(true);
|
|
795
|
-
} catch (error) {
|
|
796
|
-
onCopyError === null || onCopyError === void 0 ? void 0 : onCopyError(error);
|
|
797
|
-
}
|
|
798
|
-
},
|
|
799
|
-
children: [
|
|
800
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)("span", {
|
|
801
|
-
className: "sr-only",
|
|
802
|
-
children: "Copy code"
|
|
803
|
-
}),
|
|
804
|
-
copied ? /*#__PURE__*/ (0, $hLlzK$jsxs)((0, $hLlzK$Fragment), {
|
|
805
|
-
children: [
|
|
806
|
-
"Copied",
|
|
807
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$Check), {
|
|
808
|
-
className: "h-4 w-4",
|
|
809
|
-
weight: "bold"
|
|
810
|
-
})
|
|
811
|
-
]
|
|
812
|
-
}) : /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$Copy), {
|
|
813
|
-
className: "-ml-px h-5 w-5"
|
|
814
|
-
})
|
|
815
|
-
]
|
|
816
|
-
});
|
|
817
|
-
});
|
|
818
|
-
$3e8792480c5dc036$export$2e9b808b8155db21.displayName = "CodeBlockCopyButton";
|
|
819
|
-
const $3e8792480c5dc036$export$2e996d1cfaa94c3d = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, onClick: onClick, ...props }, ref)=>{
|
|
820
|
-
const { codeId: codeId, isCodeExpanded: isCodeExpanded, setIsCodeExpanded: setIsCodeExpanded, setHasCodeExpander: setHasCodeExpander } = (0, $hLlzK$useContext)($3e8792480c5dc036$var$CodeBlockContext);
|
|
821
|
-
(0, $hLlzK$useEffect)(()=>{
|
|
822
|
-
setHasCodeExpander(true);
|
|
823
|
-
return ()=>{
|
|
824
|
-
setHasCodeExpander(false);
|
|
825
|
-
};
|
|
826
|
-
}, [
|
|
827
|
-
setHasCodeExpander
|
|
828
|
-
]);
|
|
829
|
-
return /*#__PURE__*/ (0, $hLlzK$jsxs)("button", {
|
|
830
|
-
...props,
|
|
831
|
-
"aria-controls": codeId,
|
|
832
|
-
"aria-expanded": isCodeExpanded,
|
|
833
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("flex w-full items-center justify-center gap-0.5 border-t border-gray-300 bg-gray-50 px-4 py-2 font-sans text-gray-700 hover:bg-gray-100", className),
|
|
834
|
-
ref: ref,
|
|
835
|
-
type: "button",
|
|
836
|
-
onClick: (event)=>{
|
|
837
|
-
setIsCodeExpanded((prev)=>!prev);
|
|
838
|
-
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
839
|
-
},
|
|
840
|
-
children: [
|
|
841
|
-
isCodeExpanded ? "Show less" : "Show more",
|
|
842
|
-
" ",
|
|
843
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$CaretDown), {
|
|
844
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("h-4 w-4", isCodeExpanded && "rotate-180", "transition-all duration-150"),
|
|
845
|
-
weight: "bold"
|
|
846
|
-
})
|
|
847
|
-
]
|
|
848
|
-
});
|
|
849
|
-
});
|
|
850
|
-
$3e8792480c5dc036$export$2e996d1cfaa94c3d.displayName = "CodeBlockExpanderButton";
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
function $bcf58924b06fb166$export$6e62a5150605254a(strings, ...values) {
|
|
854
|
-
if (!$bcf58924b06fb166$var$isTemplateStringsArray(strings) || !Array.isArray(values)) throw new Error("It looks like you tried to call `fmtCode` as a function. Make sure to use it as a tagged template.\n Example: fmtCode`SELECT * FROM users`, not fmtCode('SELECT * FROM users')");
|
|
855
|
-
const text = String.raw({
|
|
856
|
-
raw: strings
|
|
857
|
-
}, ...values);
|
|
858
|
-
// fine the minimum indentation of the code block
|
|
859
|
-
const minIndent = $bcf58924b06fb166$var$findMinIndent(text);
|
|
860
|
-
const lines = text.trim().split("\n");
|
|
861
|
-
return lines.map((line)=>{
|
|
862
|
-
// remove nothing if the line doesn't start with indentation
|
|
863
|
-
if (/^\S+/.test(line)) return line;
|
|
864
|
-
return line.slice(minIndent);
|
|
865
|
-
}).join("\n");
|
|
866
|
-
// replace all tabs with 2 spaces
|
|
867
|
-
// .replace(/\t/g, " ")
|
|
868
|
-
}
|
|
869
|
-
/**
|
|
870
|
-
* Find the shortest indentation of a multiline string
|
|
871
|
-
*/ function $bcf58924b06fb166$var$findMinIndent(value) {
|
|
872
|
-
const match = value.match(/^[ \t]*(?=\S)/gm);
|
|
873
|
-
if (!match) return 0;
|
|
874
|
-
return match.reduce((acc, curr)=>Math.min(acc, curr.length), Infinity);
|
|
875
|
-
}
|
|
876
|
-
/**
|
|
877
|
-
* Type guard to check if a value is a `TemplateStringsArray`
|
|
878
|
-
*/ function $bcf58924b06fb166$var$isTemplateStringsArray(strings) {
|
|
879
|
-
return Array.isArray(strings) && "raw" in strings && Array.isArray(strings.raw);
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
const $c58b35aa9fcfa4d0$var$modes = [
|
|
885
|
-
"file",
|
|
886
|
-
"cli"
|
|
887
|
-
];
|
|
888
|
-
const $c58b35aa9fcfa4d0$var$metaSchema = (0, $hLlzK$z).object({
|
|
889
|
-
collapsible: (0, $hLlzK$z).boolean().default(false),
|
|
890
|
-
disableCopy: (0, $hLlzK$z).boolean().default(false),
|
|
891
|
-
mode: (0, $hLlzK$z).enum($c58b35aa9fcfa4d0$var$modes).optional(),
|
|
892
|
-
title: (0, $hLlzK$z).string().trim().optional()
|
|
893
|
-
});
|
|
894
|
-
const $c58b35aa9fcfa4d0$export$63f5d3298ab11b24 = {
|
|
895
|
-
collapsible: false,
|
|
896
|
-
disableCopy: false,
|
|
897
|
-
mode: undefined,
|
|
898
|
-
title: undefined
|
|
899
|
-
};
|
|
900
|
-
/**
|
|
901
|
-
* Parses a markdown code block (```) metastring into a meta object.
|
|
902
|
-
* Defaults to DefaultMeta if no metastring given or if metastring is invalid.
|
|
903
|
-
* Useful for parsing the metastring from a markdown code block to pass into the
|
|
904
|
-
* CodeBlock components as props.
|
|
905
|
-
*/ function $c58b35aa9fcfa4d0$export$2b83d7916142717(value) {
|
|
906
|
-
var _value_trim;
|
|
907
|
-
const metastring = (_value_trim = value === null || value === void 0 ? void 0 : value.trim()) !== null && _value_trim !== void 0 ? _value_trim : "";
|
|
908
|
-
if (!metastring) return $c58b35aa9fcfa4d0$export$63f5d3298ab11b24;
|
|
909
|
-
const metaJson = $c58b35aa9fcfa4d0$export$3b54394b2741a26c(metastring).reduce((acc, token)=>{
|
|
910
|
-
const [key, _value] = token.split("=");
|
|
911
|
-
if (!key) return acc;
|
|
912
|
-
const value = $c58b35aa9fcfa4d0$export$3626aedd0f1137ab(_value);
|
|
913
|
-
acc[key] = value !== null && value !== void 0 ? value : true;
|
|
914
|
-
return acc;
|
|
915
|
-
}, {});
|
|
916
|
-
try {
|
|
917
|
-
const parsed = $c58b35aa9fcfa4d0$var$metaSchema.parse(metaJson);
|
|
918
|
-
// return the parsed meta object, with default values filled in
|
|
919
|
-
return {
|
|
920
|
-
...$c58b35aa9fcfa4d0$export$63f5d3298ab11b24,
|
|
921
|
-
...parsed
|
|
922
|
-
};
|
|
923
|
-
} catch (_) {
|
|
924
|
-
return $c58b35aa9fcfa4d0$export$63f5d3298ab11b24;
|
|
925
|
-
}
|
|
926
|
-
}
|
|
927
|
-
function $c58b35aa9fcfa4d0$export$3626aedd0f1137ab(value) {
|
|
928
|
-
return value === null || value === void 0 ? void 0 : value.trim().replace(/^"(.*)"$/, "$1");
|
|
929
|
-
}
|
|
930
|
-
function $c58b35aa9fcfa4d0$export$3b54394b2741a26c(value) {
|
|
931
|
-
var _value_trim;
|
|
932
|
-
const input = (_value_trim = value === null || value === void 0 ? void 0 : value.trim()) !== null && _value_trim !== void 0 ? _value_trim : "";
|
|
933
|
-
const result = [];
|
|
934
|
-
let currentString = "";
|
|
935
|
-
let inQuotes = false;
|
|
936
|
-
for (const char of input){
|
|
937
|
-
if (char === " " && !inQuotes) {
|
|
938
|
-
if (currentString) {
|
|
939
|
-
result.push(currentString);
|
|
940
|
-
currentString = "";
|
|
941
|
-
}
|
|
942
|
-
} else if (char === '"') {
|
|
943
|
-
inQuotes = !inQuotes;
|
|
944
|
-
currentString += char;
|
|
945
|
-
} else currentString += char;
|
|
946
|
-
}
|
|
947
|
-
if (currentString) result.push(currentString);
|
|
948
|
-
return result;
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
var $9aef41c2b2e4cb89$exports = {};
|
|
956
|
-
|
|
957
|
-
$parcel$export($9aef41c2b2e4cb89$exports, "cx", function () { return $a4274013049f8f7f$export$a274e22fb40f762e; });
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
var $a5b47e6e7f820368$exports = {};
|
|
962
|
-
|
|
963
|
-
$parcel$export($a5b47e6e7f820368$exports, "Dialog", function () { return $d95638fc63e2fe90$export$3ddf2d174ce01153; });
|
|
964
|
-
$parcel$export($a5b47e6e7f820368$exports, "DialogPortal", function () { return $d95638fc63e2fe90$export$dad7c95542bacce0; });
|
|
965
|
-
$parcel$export($a5b47e6e7f820368$exports, "DialogOverlay", function () { return $d95638fc63e2fe90$export$bd1d06c79be19e17; });
|
|
966
|
-
$parcel$export($a5b47e6e7f820368$exports, "DialogTrigger", function () { return $d95638fc63e2fe90$export$2e1e1122cf0cba88; });
|
|
967
|
-
$parcel$export($a5b47e6e7f820368$exports, "DialogClose", function () { return $d95638fc63e2fe90$export$fba2fb7cd781b7ac; });
|
|
968
|
-
$parcel$export($a5b47e6e7f820368$exports, "DialogContent", function () { return $d95638fc63e2fe90$export$b6d9565de1e068cf; });
|
|
969
|
-
$parcel$export($a5b47e6e7f820368$exports, "DialogHeader", function () { return $d95638fc63e2fe90$export$742513523b177e3b; });
|
|
970
|
-
$parcel$export($a5b47e6e7f820368$exports, "DialogBody", function () { return $d95638fc63e2fe90$export$5d20f2c38fcde41f; });
|
|
971
|
-
$parcel$export($a5b47e6e7f820368$exports, "DialogFooter", function () { return $d95638fc63e2fe90$export$7bbfb2d443473050; });
|
|
972
|
-
$parcel$export($a5b47e6e7f820368$exports, "DialogTitle", function () { return $d95638fc63e2fe90$export$16f7638e4a34b909; });
|
|
973
|
-
$parcel$export($a5b47e6e7f820368$exports, "DialogDescription", function () { return $d95638fc63e2fe90$export$94e94c2ec2c954d5; });
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
const $d95638fc63e2fe90$export$3ddf2d174ce01153 = $hLlzK$Root1;
|
|
981
|
-
const $d95638fc63e2fe90$export$2e1e1122cf0cba88 = $hLlzK$Trigger;
|
|
982
|
-
const $d95638fc63e2fe90$export$dad7c95542bacce0 = $hLlzK$Portal;
|
|
983
|
-
const $d95638fc63e2fe90$export$fba2fb7cd781b7ac = $hLlzK$Close;
|
|
984
|
-
const $d95638fc63e2fe90$export$bd1d06c79be19e17 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Overlay, {
|
|
985
|
-
ref: ref,
|
|
986
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("fixed inset-0 z-50 bg-overlay backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className),
|
|
987
|
-
...props
|
|
988
|
-
}));
|
|
989
|
-
$d95638fc63e2fe90$export$bd1d06c79be19e17.displayName = $hLlzK$Overlay.displayName;
|
|
990
|
-
const $d95638fc63e2fe90$export$b6d9565de1e068cf = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsxs)($d95638fc63e2fe90$export$dad7c95542bacce0, {
|
|
991
|
-
children: [
|
|
992
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)($d95638fc63e2fe90$export$bd1d06c79be19e17, {}),
|
|
993
|
-
/*#__PURE__*/ (0, $hLlzK$jsxs)($hLlzK$Content, {
|
|
994
|
-
ref: ref,
|
|
995
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("scrollbar fixed left-[50%] top-[50%] z-50 max-h-dvh w-full max-w-lg translate-x-[-50%] translate-y-[-50%] overflow-y-auto rounded-xl border border-dialog bg-dialog p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]", className),
|
|
996
|
-
...props,
|
|
997
|
-
children: [
|
|
998
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Close, {
|
|
999
|
-
asChild: true,
|
|
1000
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsxs)((0, $c2638d7be6bdca12$export$353f5b6fc5456de1), {
|
|
1001
|
-
appearance: "outlined",
|
|
1002
|
-
priority: "neutral",
|
|
1003
|
-
className: "absolute right-3.5 top-3.5 size-11 p-0 sm:size-9",
|
|
1004
|
-
children: [
|
|
1005
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$X), {
|
|
1006
|
-
className: "size-5 shrink-0"
|
|
1007
|
-
}),
|
|
1008
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)("span", {
|
|
1009
|
-
className: "sr-only",
|
|
1010
|
-
children: "Close"
|
|
1011
|
-
})
|
|
1012
|
-
]
|
|
1013
|
-
})
|
|
1014
|
-
}),
|
|
1015
|
-
children
|
|
1016
|
-
]
|
|
1017
|
-
})
|
|
1018
|
-
]
|
|
1019
|
-
}));
|
|
1020
|
-
$d95638fc63e2fe90$export$b6d9565de1e068cf.displayName = $hLlzK$Content.displayName;
|
|
1021
|
-
const $d95638fc63e2fe90$export$742513523b177e3b = ({ className: className, ...props })=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
1022
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("flex shrink-0 flex-col gap-2 text-strong", className),
|
|
1023
|
-
...props
|
|
1024
|
-
});
|
|
1025
|
-
$d95638fc63e2fe90$export$742513523b177e3b.displayName = "DialogHeader";
|
|
1026
|
-
const $d95638fc63e2fe90$export$5d20f2c38fcde41f = ({ className: className, ...props })=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
1027
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("my-6 flex-1 text-body", className),
|
|
1028
|
-
...props
|
|
1029
|
-
});
|
|
1030
|
-
$d95638fc63e2fe90$export$5d20f2c38fcde41f.displayName = "DialogBody";
|
|
1031
|
-
const $d95638fc63e2fe90$export$7bbfb2d443473050 = ({ className: className, ...props })=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
1032
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("flex shrink-0 flex-row-reverse gap-2", className),
|
|
1033
|
-
...props
|
|
1034
|
-
});
|
|
1035
|
-
$d95638fc63e2fe90$export$7bbfb2d443473050.displayName = "DialogFooter";
|
|
1036
|
-
const $d95638fc63e2fe90$export$16f7638e4a34b909 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Title, {
|
|
1037
|
-
ref: ref,
|
|
1038
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("text-lg font-medium leading-none text-strong", className),
|
|
1039
|
-
...props
|
|
1040
|
-
}));
|
|
1041
|
-
$d95638fc63e2fe90$export$16f7638e4a34b909.displayName = $hLlzK$Title.displayName;
|
|
1042
|
-
const $d95638fc63e2fe90$export$94e94c2ec2c954d5 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Description, {
|
|
1043
|
-
ref: ref,
|
|
1044
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("text-muted", className),
|
|
1045
|
-
...props
|
|
1046
|
-
}));
|
|
1047
|
-
$d95638fc63e2fe90$export$94e94c2ec2c954d5.displayName = $hLlzK$Description.displayName;
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
var $b9dc47a206b82e7f$exports = {};
|
|
1053
|
-
|
|
1054
|
-
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenu", function () { return $a54417aeb05f1278$export$e44a253a59704894; });
|
|
1055
|
-
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuTrigger", function () { return $a54417aeb05f1278$export$d2469213b3befba9; });
|
|
1056
|
-
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuContent", function () { return $a54417aeb05f1278$export$6e76d93a37c01248; });
|
|
1057
|
-
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuItem", function () { return $a54417aeb05f1278$export$ed97964d1871885d; });
|
|
1058
|
-
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuCheckboxItem", function () { return $a54417aeb05f1278$export$53a69729da201fa9; });
|
|
1059
|
-
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuRadioItem", function () { return $a54417aeb05f1278$export$e4f69b41b1637536; });
|
|
1060
|
-
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuLabel", function () { return $a54417aeb05f1278$export$76e48c5b57f24495; });
|
|
1061
|
-
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuSeparator", function () { return $a54417aeb05f1278$export$da160178fd3bc7e9; });
|
|
1062
|
-
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuShortcut", function () { return $a54417aeb05f1278$export$b1e098e2962e8df5; });
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
/**
|
|
1073
|
-
* Visually or semantically separates content.
|
|
1074
|
-
*/ const $0e4ef6b27c1ec376$export$1ff3c3f08ae963c0 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, orientation: orientation = "horizontal", decorative: decorative = true, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Root2, {
|
|
1075
|
-
ref: ref,
|
|
1076
|
-
"aria-orientation": decorative ? undefined : orientation,
|
|
1077
|
-
decorative: decorative,
|
|
1078
|
-
orientation: orientation,
|
|
1079
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("shrink-0 bg-gray-500/20 dark-high-contrast:bg-black high-contrast:bg-black dark:bg-gray-600/20", orientation === "horizontal" ? "h-px w-full" : "h-full w-px", className),
|
|
1080
|
-
...props
|
|
1081
|
-
}));
|
|
1082
|
-
$0e4ef6b27c1ec376$export$1ff3c3f08ae963c0.displayName = "Separator";
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
const $a54417aeb05f1278$export$e44a253a59704894 = $hLlzK$MenuProvider;
|
|
1086
|
-
const $a54417aeb05f1278$export$d2469213b3befba9 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ asChild: asChild = false, children: children, ...props }, ref)=>{
|
|
1087
|
-
if (asChild) return /*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$MenuButton, {
|
|
1088
|
-
ref: ref,
|
|
1089
|
-
render: typeof children === "object" && children != null ? children : /*#__PURE__*/ (0, $hLlzK$jsx)("button", {})
|
|
1090
|
-
});
|
|
1091
|
-
return /*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$MenuButton, {
|
|
1092
|
-
ref: ref,
|
|
1093
|
-
...props,
|
|
1094
|
-
children: children
|
|
1095
|
-
});
|
|
1096
|
-
});
|
|
1097
|
-
$a54417aeb05f1278$export$d2469213b3befba9.displayName = "DropdownMenuTrigger";
|
|
1098
|
-
const $a54417aeb05f1278$export$6e76d93a37c01248 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, gutter: gutter = 8, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Menu, {
|
|
1099
|
-
gutter: gutter,
|
|
1100
|
-
ref: ref,
|
|
1101
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("z-50 min-w-[8rem] overflow-hidden rounded border border-popover bg-popover p-1.25 shadow-xl outline-none data-side-bottom:slide-in-from-top-2 data-side-left:slide-in-from-right-2 data-side-right:slide-in-from-left-2 data-side-top:slide-in-from-bottom-2 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 data-state-open:animate-in data-state-open:fade-in-0 data-state-open:zoom-in-95", className),
|
|
1102
|
-
...props
|
|
1103
|
-
}));
|
|
1104
|
-
$a54417aeb05f1278$export$6e76d93a37c01248.displayName = "DropdownMenuContent";
|
|
1105
|
-
const $a54417aeb05f1278$export$ed97964d1871885d = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$MenuItem, {
|
|
1106
|
-
ref: ref,
|
|
1107
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("relative flex cursor-pointer select-none items-center rounded px-2 py-1.5 text-sm font-normal text-strong outline-none data-active-item:bg-popover-hover data-disabled:pointer-events-none data-disabled:opacity-50 data-active-item:dark:bg-popover-hover", className),
|
|
1108
|
-
...props
|
|
1109
|
-
}));
|
|
1110
|
-
$a54417aeb05f1278$export$ed97964d1871885d.displayName = "DropdownMenuItem";
|
|
1111
|
-
const $a54417aeb05f1278$export$53a69729da201fa9 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsxs)($hLlzK$MenuItemCheckbox, {
|
|
1112
|
-
ref: ref,
|
|
1113
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("relative flex cursor-pointer select-none items-center gap-2 rounded py-1.5 pl-2 pr-9 text-sm font-normal text-strong outline-none data-disabled:pointer-events-none data-disabled:opacity-50", "data-active-item:bg-popover", "aria-checked:bg-filled-accent aria-checked:font-medium aria-checked:text-on-filled", className),
|
|
1114
|
-
...props,
|
|
1115
|
-
children: [
|
|
1116
|
-
children,
|
|
1117
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)($a54417aeb05f1278$var$DropdownMenuItemCheck, {
|
|
1118
|
-
className: "absolute right-2 flex items-center"
|
|
1119
|
-
})
|
|
1120
|
-
]
|
|
1121
|
-
}));
|
|
1122
|
-
$a54417aeb05f1278$export$53a69729da201fa9.displayName = "DropdownMenuCheckboxItem";
|
|
1123
|
-
const $a54417aeb05f1278$export$e4f69b41b1637536 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsxs)($hLlzK$MenuItemRadio, {
|
|
1124
|
-
ref: ref,
|
|
1125
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("relative flex cursor-pointer select-none items-center gap-2 rounded py-1.5 pl-2 pr-9 text-sm font-normal text-strong outline-none data-disabled:pointer-events-none data-disabled:opacity-50", "data-active-item:bg-popover-hover data-active-item:dark:bg-popover-hover", "aria-checked:!bg-filled-accent aria-checked:font-medium aria-checked:text-on-filled", className),
|
|
1126
|
-
...props,
|
|
1127
|
-
children: [
|
|
1128
|
-
children,
|
|
1129
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)($a54417aeb05f1278$var$DropdownMenuItemCheck, {
|
|
1130
|
-
className: "absolute right-2 flex items-center"
|
|
1131
|
-
})
|
|
1132
|
-
]
|
|
1133
|
-
}));
|
|
1134
|
-
$a54417aeb05f1278$export$e4f69b41b1637536.displayName = "DropdownMenuRadioItem";
|
|
1135
|
-
const $a54417aeb05f1278$var$DropdownMenuItemCheck = (props)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$MenuItemCheck, {
|
|
1136
|
-
...props,
|
|
1137
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$Check), {
|
|
1138
|
-
className: "size-5",
|
|
1139
|
-
weight: "bold"
|
|
1140
|
-
})
|
|
1141
|
-
});
|
|
1142
|
-
const $a54417aeb05f1278$export$76e48c5b57f24495 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
1143
|
-
ref: ref,
|
|
1144
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("px-2 py-1.5 text-sm font-medium text-strong", className),
|
|
1145
|
-
...props
|
|
1146
|
-
}));
|
|
1147
|
-
$a54417aeb05f1278$export$76e48c5b57f24495.displayName = "DropdownMenuLabel";
|
|
1148
|
-
const $a54417aeb05f1278$export$da160178fd3bc7e9 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)((0, $0e4ef6b27c1ec376$export$1ff3c3f08ae963c0), {
|
|
1149
|
-
ref: ref,
|
|
1150
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("-mx-2 my-1 w-auto", className),
|
|
1151
|
-
...props
|
|
1152
|
-
}));
|
|
1153
|
-
$a54417aeb05f1278$export$da160178fd3bc7e9.displayName = "DropdownMenuSeparator";
|
|
1154
|
-
const $a54417aeb05f1278$export$b1e098e2962e8df5 = ({ className: className, ...props })=>{
|
|
1155
|
-
return /*#__PURE__*/ (0, $hLlzK$jsx)("span", {
|
|
1156
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("ml-auto text-xs tracking-widest opacity-60", className),
|
|
1157
|
-
...props
|
|
1158
|
-
});
|
|
1159
|
-
};
|
|
1160
|
-
$a54417aeb05f1278$export$b1e098e2962e8df5.displayName = "DropdownMenuShortcut";
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
var $b0a9c1c85f8598e5$exports = {};
|
|
1166
|
-
|
|
1167
|
-
$parcel$export($b0a9c1c85f8598e5$exports, "Icon", function () { return $84b8ef66c3139332$export$f04a61298a47a40f; });
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
var $49d620f73f88e7de$exports = {};
|
|
1172
|
-
|
|
1173
|
-
$parcel$export($49d620f73f88e7de$exports, "InlineCode", function () { return $be9526d49a216cc9$export$7f1bf47c7f50a6aa; });
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
/**
|
|
1178
|
-
* A component to render inline code.
|
|
1179
|
-
*/ const $be9526d49a216cc9$export$7f1bf47c7f50a6aa = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("code", {
|
|
1180
|
-
ref: ref,
|
|
1181
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("rounded-md border border-card bg-gray-500/5 px-1 py-0.5 font-mono text-[0.8em]", className),
|
|
1182
|
-
...props
|
|
1183
|
-
}));
|
|
1184
|
-
$be9526d49a216cc9$export$7f1bf47c7f50a6aa.displayName = "InlineCode";
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
var $fd39f83d90873c05$exports = {};
|
|
1190
|
-
|
|
1191
|
-
$parcel$export($fd39f83d90873c05$exports, "Input", function () { return $69de6bdb0e8d2083$export$f5b8910cec6cf069; });
|
|
1192
|
-
$parcel$export($fd39f83d90873c05$exports, "InputCapture", function () { return $69de6bdb0e8d2083$export$a000a5208d0f14c1; });
|
|
1193
|
-
$parcel$export($fd39f83d90873c05$exports, "PasswordInput", function () { return $750bb60d221b9046$export$b28585a458fee016; });
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
/**
|
|
1199
|
-
* Used to create interactive controls for web-based forms in order to accept data from the user
|
|
1200
|
-
*/ const $69de6bdb0e8d2083$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ children: children, className: className, ...props }, forwardedRef)=>{
|
|
1201
|
-
const hasChildren = Boolean(children);
|
|
1202
|
-
const innerRef = (0, $hLlzK$useRef)(null);
|
|
1203
|
-
if (hasChildren) return /*#__PURE__*/ (0, $hLlzK$jsx)($69de6bdb0e8d2083$var$InputContainer, {
|
|
1204
|
-
className: className,
|
|
1205
|
-
forwardedRef: forwardedRef,
|
|
1206
|
-
innerRef: innerRef,
|
|
1207
|
-
...props,
|
|
1208
|
-
children: children
|
|
1209
|
-
});
|
|
1210
|
-
return /*#__PURE__*/ (0, $hLlzK$jsx)($69de6bdb0e8d2083$var$InputContainer, {
|
|
1211
|
-
...props,
|
|
1212
|
-
className: className,
|
|
1213
|
-
forwardedRef: forwardedRef,
|
|
1214
|
-
innerRef: innerRef,
|
|
1215
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsx)($69de6bdb0e8d2083$export$a000a5208d0f14c1, {
|
|
1216
|
-
...props
|
|
1217
|
-
})
|
|
1218
|
-
});
|
|
1219
|
-
});
|
|
1220
|
-
$69de6bdb0e8d2083$export$f5b8910cec6cf069.displayName = "Input";
|
|
1221
|
-
/**
|
|
1222
|
-
* The actual <input /> element that captures user input.
|
|
1223
|
-
*/ const $69de6bdb0e8d2083$export$a000a5208d0f14c1 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ "aria-invalid": _ariaInvalid, className: className, invalid: invalid = false, ...restProps }, ref)=>{
|
|
1224
|
-
const { "aria-invalid": ctxAriaInvalid, invalid: ctxInvalid, forwardedRef: ctxForwardedRef, innerRef: ctxInnerRef, ...ctx } = (0, $hLlzK$useContext)($69de6bdb0e8d2083$var$InputContext);
|
|
1225
|
-
var _ref, _ref1;
|
|
1226
|
-
const ariaInvalid = (_ref1 = (_ref = ctxAriaInvalid !== null && ctxAriaInvalid !== void 0 ? ctxAriaInvalid : ctxInvalid) !== null && _ref !== void 0 ? _ref : _ariaInvalid) !== null && _ref1 !== void 0 ? _ref1 : invalid;
|
|
1227
|
-
var _restProps_type, _ref2;
|
|
1228
|
-
const props = {
|
|
1229
|
-
...ctx,
|
|
1230
|
-
...restProps,
|
|
1231
|
-
type: (_ref2 = (_restProps_type = restProps.type) !== null && _restProps_type !== void 0 ? _restProps_type : ctx.type) !== null && _ref2 !== void 0 ? _ref2 : "text"
|
|
1232
|
-
};
|
|
1233
|
-
return /*#__PURE__*/ (0, $hLlzK$jsx)("input", {
|
|
1234
|
-
"aria-invalid": ariaInvalid,
|
|
1235
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("min-w-0 flex-1 bg-form placeholder:text-placeholder focus:outline-none", className),
|
|
1236
|
-
ref: (node)=>{
|
|
1237
|
-
if (typeof ref === "function") ref(node);
|
|
1238
|
-
else if (ref) ref.current = node;
|
|
1239
|
-
if (typeof ctxForwardedRef === "function") ctxForwardedRef(node);
|
|
1240
|
-
else if (ctxForwardedRef) ctxForwardedRef.current = node;
|
|
1241
|
-
ctxInnerRef.current = node;
|
|
1242
|
-
},
|
|
1243
|
-
...props
|
|
1244
|
-
});
|
|
1245
|
-
});
|
|
1246
|
-
$69de6bdb0e8d2083$export$a000a5208d0f14c1.displayName = "InputCapture";
|
|
1247
|
-
const $69de6bdb0e8d2083$var$InputContext = /*#__PURE__*/ (0, $hLlzK$createContext)({
|
|
1248
|
-
invalid: false,
|
|
1249
|
-
innerRef: {
|
|
1250
|
-
current: null
|
|
1251
|
-
}
|
|
1252
|
-
});
|
|
1253
|
-
/**
|
|
1254
|
-
* The container for the input element.
|
|
1255
|
-
*/ const $69de6bdb0e8d2083$var$InputContainer = ({ "aria-invalid": _ariaInvalid, children: children, className: className, forwardedRef: forwardedRef, innerRef: innerRef, invalid: invalid, style: style, type: type, ...props })=>{
|
|
1256
|
-
const ariaInvalid = _ariaInvalid !== null && _ariaInvalid !== void 0 ? _ariaInvalid : invalid;
|
|
1257
|
-
return /*#__PURE__*/ (0, $hLlzK$jsx)($69de6bdb0e8d2083$var$InputContext.Provider, {
|
|
1258
|
-
value: {
|
|
1259
|
-
"aria-invalid": _ariaInvalid,
|
|
1260
|
-
invalid: invalid,
|
|
1261
|
-
type: type,
|
|
1262
|
-
...props,
|
|
1263
|
-
forwardedRef: forwardedRef,
|
|
1264
|
-
innerRef: innerRef
|
|
1265
|
-
},
|
|
1266
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsxs)("div", {
|
|
1267
|
-
"aria-invalid": ariaInvalid,
|
|
1268
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("flex h-11 w-full items-center gap-1.5 rounded-md border bg-form px-3 py-2 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-within:outline-none focus-within:ring-4 focus-visible:outline-none focus-visible:ring-4 disabled:pointer-events-none disabled:opacity-50 sm:h-9 sm:text-sm", "has-[input:not(:first-child)]:ps-2.5 has-[input:not(:last-child)]:pe-2.5 [&>:not(input)]:shrink-0 [&_svg]:size-6 sm:[&_svg]:size-5", "border-form text-strong focus-within:border-accent-600 focus-within:ring-focus-accent", ariaInvalid && "border-danger-600 pe-2.5 focus-within:border-danger-600 focus-within:ring-focus-danger", className),
|
|
1269
|
-
onClick: ()=>{
|
|
1270
|
-
var _innerRef_current;
|
|
1271
|
-
innerRef === null || innerRef === void 0 ? void 0 : (_innerRef_current = innerRef.current) === null || _innerRef_current === void 0 ? void 0 : _innerRef_current.focus();
|
|
1272
|
-
},
|
|
1273
|
-
style: style,
|
|
1274
|
-
children: [
|
|
1275
|
-
children,
|
|
1276
|
-
invalid && /*#__PURE__*/ (0, $hLlzK$jsxs)("div", {
|
|
1277
|
-
className: "pointer-events-none order-last select-none text-danger-600",
|
|
1278
|
-
children: [
|
|
1279
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)("span", {
|
|
1280
|
-
className: "sr-only",
|
|
1281
|
-
children: [
|
|
1282
|
-
"The value entered for the",
|
|
1283
|
-
props.name,
|
|
1284
|
-
"input has failed validation."
|
|
1285
|
-
].filter(Boolean).join(" ")
|
|
1286
|
-
}),
|
|
1287
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$Warning), {
|
|
1288
|
-
"aria-hidden": true,
|
|
1289
|
-
weight: "fill"
|
|
1290
|
-
})
|
|
1291
|
-
]
|
|
1292
|
-
})
|
|
1293
|
-
]
|
|
1294
|
-
})
|
|
1295
|
-
});
|
|
1296
|
-
};
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
const $750bb60d221b9046$export$b28585a458fee016 = /*#__PURE__*/ (0, $hLlzK$forwardRef)((props, ref)=>{
|
|
1305
|
-
const [showPassword, setShowPassword] = (0, $hLlzK$useState)(false);
|
|
1306
|
-
const type = showPassword ? "text" : "password";
|
|
1307
|
-
const EyeCon = showPassword ? (0, $hLlzK$Eye) : (0, $hLlzK$EyeClosed);
|
|
1308
|
-
return /*#__PURE__*/ (0, $hLlzK$jsxs)((0, $69de6bdb0e8d2083$export$f5b8910cec6cf069), {
|
|
1309
|
-
type: type,
|
|
1310
|
-
ref: ref,
|
|
1311
|
-
...props,
|
|
1312
|
-
children: [
|
|
1313
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)((0, $69de6bdb0e8d2083$export$a000a5208d0f14c1), {}),
|
|
1314
|
-
/*#__PURE__*/ (0, $hLlzK$jsxs)("button", {
|
|
1315
|
-
type: "button",
|
|
1316
|
-
tabIndex: -1,
|
|
1317
|
-
className: "ml-1 cursor-pointer bg-inherit p-0 text-body hover:text-strong",
|
|
1318
|
-
onClick: ()=>{
|
|
1319
|
-
setShowPassword((s)=>!s);
|
|
1320
|
-
},
|
|
1321
|
-
children: [
|
|
1322
|
-
/*#__PURE__*/ (0, $hLlzK$jsxs)("span", {
|
|
1323
|
-
className: "sr-only",
|
|
1324
|
-
children: [
|
|
1325
|
-
"Turn password visibility ",
|
|
1326
|
-
showPassword ? "off" : "on"
|
|
1327
|
-
]
|
|
1328
|
-
}),
|
|
1329
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)(EyeCon, {
|
|
1330
|
-
"aria-hidden": true
|
|
1331
|
-
})
|
|
1332
|
-
]
|
|
1333
|
-
})
|
|
1334
|
-
]
|
|
1335
|
-
});
|
|
1336
|
-
});
|
|
1337
|
-
$750bb60d221b9046$export$b28585a458fee016.displayName = "PasswordInput";
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
var $ae2faa0cd0fa65f5$exports = {};
|
|
1343
|
-
|
|
1344
|
-
$parcel$export($ae2faa0cd0fa65f5$exports, "MediaObject", function () { return $1efa43e76774bcf1$export$c5be64db09f93414; });
|
|
1345
|
-
$parcel$export($ae2faa0cd0fa65f5$exports, "MediaObjectMedia", function () { return $1efa43e76774bcf1$export$a850f92726a1f836; });
|
|
1346
|
-
$parcel$export($ae2faa0cd0fa65f5$exports, "MediaObjectContent", function () { return $1efa43e76774bcf1$export$8d93ffc9d5ebcf0c; });
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
/**
|
|
1351
|
-
* The media object is an image/icon (media) to the left, with descriptive
|
|
1352
|
-
* content (title and subtitle/description) to the right.
|
|
1353
|
-
*
|
|
1354
|
-
* Change the spacing between the media and content by passing a `gap-*` class.
|
|
1355
|
-
* The default gap is `gap-4`.
|
|
1356
|
-
*
|
|
1357
|
-
* Use flexbox utilities to change the alignment of the media and content.
|
|
1358
|
-
*
|
|
1359
|
-
* Compose the media object with the `MediaObjectMedia` and `MediaObjectContent`
|
|
1360
|
-
* components as direct children.
|
|
1361
|
-
*/ const $1efa43e76774bcf1$export$c5be64db09f93414 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, style: style }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
1362
|
-
ref: ref,
|
|
1363
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("flex gap-4", className),
|
|
1364
|
-
style: style,
|
|
1365
|
-
children: children
|
|
1366
|
-
}));
|
|
1367
|
-
$1efa43e76774bcf1$export$c5be64db09f93414.displayName = "MediaObject";
|
|
1368
|
-
/**
|
|
1369
|
-
* The container for an image or icon to display in the media slot of the media object.
|
|
1370
|
-
*/ const $1efa43e76774bcf1$export$a850f92726a1f836 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, style: style }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
1371
|
-
ref: ref,
|
|
1372
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("shrink-0 leading-none", className),
|
|
1373
|
-
style: style,
|
|
1374
|
-
children: children
|
|
1375
|
-
}));
|
|
1376
|
-
$1efa43e76774bcf1$export$a850f92726a1f836.displayName = "MediaObjectMedia";
|
|
1377
|
-
/**
|
|
1378
|
-
* The container for the content slot of a media object.
|
|
1379
|
-
*/ const $1efa43e76774bcf1$export$8d93ffc9d5ebcf0c = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, style: style }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
1380
|
-
ref: ref,
|
|
1381
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("min-w-0 flex-1", className),
|
|
1382
|
-
style: style,
|
|
1383
|
-
children: children
|
|
1384
|
-
}));
|
|
1385
|
-
$1efa43e76774bcf1$export$8d93ffc9d5ebcf0c.displayName = "MediaObjectContent";
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
var $c20827da6ac8f3e9$exports = {};
|
|
1391
|
-
|
|
1392
|
-
$parcel$export($c20827da6ac8f3e9$exports, "Popover", function () { return $e1568f28b56f66ee$export$5b6b19405a83ff9d; });
|
|
1393
|
-
$parcel$export($c20827da6ac8f3e9$exports, "PopoverTrigger", function () { return $e1568f28b56f66ee$export$7dacb05d26466c3; });
|
|
1394
|
-
$parcel$export($c20827da6ac8f3e9$exports, "PopoverContent", function () { return $e1568f28b56f66ee$export$d7e1f420b25549ff; });
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
const $e1568f28b56f66ee$export$5b6b19405a83ff9d = $hLlzK$Root3;
|
|
1400
|
-
const $e1568f28b56f66ee$export$7dacb05d26466c3 = $hLlzK$Trigger1;
|
|
1401
|
-
const $e1568f28b56f66ee$export$d7e1f420b25549ff = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, align: align = "center", sideOffset: sideOffset = 4, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Portal1, {
|
|
1402
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Content1, {
|
|
1403
|
-
ref: ref,
|
|
1404
|
-
align: align,
|
|
1405
|
-
sideOffset: sideOffset,
|
|
1406
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("text-popover-foreground z-50 w-72 rounded-md border border-popover bg-popover p-4 shadow-md outline-none data-side-bottom:slide-in-from-top-2 data-side-left:slide-in-from-right-2 data-side-right:slide-in-from-left-2 data-side-top:slide-in-from-bottom-2 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 data-state-open:animate-in data-state-open:fade-in-0 data-state-open:zoom-in-95", className),
|
|
1407
|
-
...props
|
|
1408
|
-
})
|
|
1409
|
-
}));
|
|
1410
|
-
$e1568f28b56f66ee$export$d7e1f420b25549ff.displayName = $hLlzK$Content1.displayName;
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
var $08d8b7c38a500c5a$exports = {};
|
|
1416
|
-
|
|
1417
|
-
$parcel$export($08d8b7c38a500c5a$exports, "Select", function () { return $b0b413c594e2809e$export$ef9b1a59e592288f; });
|
|
1418
|
-
$parcel$export($08d8b7c38a500c5a$exports, "SelectContent", function () { return $b0b413c594e2809e$export$c973a4b3cb86a03d; });
|
|
1419
|
-
$parcel$export($08d8b7c38a500c5a$exports, "SelectGroup", function () { return $b0b413c594e2809e$export$ee25a334c55de1f4; });
|
|
1420
|
-
$parcel$export($08d8b7c38a500c5a$exports, "SelectLabel", function () { return $b0b413c594e2809e$export$f67338d29bd972f8; });
|
|
1421
|
-
$parcel$export($08d8b7c38a500c5a$exports, "SelectItem", function () { return $b0b413c594e2809e$export$13ef48a934230896; });
|
|
1422
|
-
$parcel$export($08d8b7c38a500c5a$exports, "SelectSeparator", function () { return $b0b413c594e2809e$export$eba4b1df07cb1d3; });
|
|
1423
|
-
$parcel$export($08d8b7c38a500c5a$exports, "SelectTrigger", function () { return $b0b413c594e2809e$export$3ac1e88a1c0b9f1; });
|
|
1424
|
-
$parcel$export($08d8b7c38a500c5a$exports, "SelectValue", function () { return $b0b413c594e2809e$export$e288731fd71264f0; });
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
const $b0b413c594e2809e$var$SelectAriaInvalidContext = /*#__PURE__*/ (0, $hLlzK$createContext)(undefined);
|
|
1435
|
-
const $b0b413c594e2809e$export$ef9b1a59e592288f = ({ children: children, ...props })=>{
|
|
1436
|
-
return /*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Root4, {
|
|
1437
|
-
...props,
|
|
1438
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsx)($b0b413c594e2809e$var$SelectAriaInvalidContext.Provider, {
|
|
1439
|
-
value: props["aria-invalid"],
|
|
1440
|
-
children: children
|
|
1441
|
-
})
|
|
1442
|
-
});
|
|
1443
|
-
};
|
|
1444
|
-
const $b0b413c594e2809e$export$ee25a334c55de1f4 = $hLlzK$Group;
|
|
1445
|
-
const $b0b413c594e2809e$export$e288731fd71264f0 = $hLlzK$Value;
|
|
1446
|
-
const $b0b413c594e2809e$var$selectTriggerVariants = (0, $hLlzK$cva)("flex h-11 w-full items-center justify-between rounded-md border border-form bg-form px-3 py-2 placeholder:text-placeholder hover:bg-form-hover focus:outline-none focus:ring-4 disabled:pointer-events-none disabled:opacity-50 aria-expanded:ring-4 sm:h-9 sm:text-sm [&>span]:line-clamp-1 [&>span]:text-left", {
|
|
1447
|
-
variants: {
|
|
1448
|
-
state: {
|
|
1449
|
-
danger: "border-danger-600 focus:border-danger-600 focus:ring-focus-danger aria-expanded:border-danger-600 aria-expanded:ring-focus-danger",
|
|
1450
|
-
default: "borderpform text-strong placeholder:text-placeholder focus:border-accent-600 focus:ring-focus-accent aria-expanded:border-accent-600 aria-expanded:ring-focus-accent"
|
|
1451
|
-
}
|
|
1452
|
-
},
|
|
1453
|
-
defaultVariants: {
|
|
1454
|
-
state: "default"
|
|
1455
|
-
}
|
|
1456
|
-
});
|
|
1457
|
-
const $b0b413c594e2809e$export$3ac1e88a1c0b9f1 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, ...props }, ref)=>{
|
|
1458
|
-
const ariaInvalidContext = (0, $hLlzK$useContext)($b0b413c594e2809e$var$SelectAriaInvalidContext);
|
|
1459
|
-
var _props_ariainvalid;
|
|
1460
|
-
const ariaInvalid = (_props_ariainvalid = props["aria-invalid"]) !== null && _props_ariainvalid !== void 0 ? _props_ariainvalid : ariaInvalidContext;
|
|
1461
|
-
const state = ariaInvalid ? "danger" : "default";
|
|
1462
|
-
return /*#__PURE__*/ (0, $hLlzK$jsxs)($hLlzK$Trigger2, {
|
|
1463
|
-
ref: ref,
|
|
1464
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)($b0b413c594e2809e$var$selectTriggerVariants({
|
|
1465
|
-
state: state
|
|
1466
|
-
}), className),
|
|
1467
|
-
...props,
|
|
1468
|
-
"aria-invalid": ariaInvalid,
|
|
1469
|
-
children: [
|
|
1470
|
-
children,
|
|
1471
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Icon, {
|
|
1472
|
-
asChild: true,
|
|
1473
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$CaretDown), {
|
|
1474
|
-
className: "size-4 shrink-0",
|
|
1475
|
-
weight: "bold"
|
|
1476
|
-
})
|
|
1477
|
-
})
|
|
1478
|
-
]
|
|
1479
|
-
});
|
|
1480
|
-
});
|
|
1481
|
-
$b0b413c594e2809e$export$3ac1e88a1c0b9f1.displayName = "SelectTrigger";
|
|
1482
|
-
const $b0b413c594e2809e$export$d8117927658af6d7 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$ScrollUpButton, {
|
|
1483
|
-
ref: ref,
|
|
1484
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("flex cursor-default items-center justify-center py-1", className),
|
|
1485
|
-
...props,
|
|
1486
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$CaretUp), {
|
|
1487
|
-
className: "size-4",
|
|
1488
|
-
weight: "bold"
|
|
1489
|
-
})
|
|
1490
|
-
}));
|
|
1491
|
-
$b0b413c594e2809e$export$d8117927658af6d7.displayName = "SelectScrollUpButton";
|
|
1492
|
-
const $b0b413c594e2809e$export$ff951e476c12189 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$ScrollDownButton, {
|
|
1493
|
-
ref: ref,
|
|
1494
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("flex cursor-default items-center justify-center py-1", className),
|
|
1495
|
-
...props,
|
|
1496
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$CaretDown), {
|
|
1497
|
-
className: "size-4",
|
|
1498
|
-
weight: "bold"
|
|
1499
|
-
})
|
|
1500
|
-
}));
|
|
1501
|
-
$b0b413c594e2809e$export$ff951e476c12189.displayName = "SelectScrollDownButton";
|
|
1502
|
-
const $b0b413c594e2809e$export$c973a4b3cb86a03d = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, position: position = "popper", width: width, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Portal2, {
|
|
1503
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsxs)($hLlzK$Content2, {
|
|
1504
|
-
ref: ref,
|
|
1505
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-popover shadow-md data-side-bottom:slide-in-from-top-2 data-side-left:slide-in-from-right-2 data-side-right:slide-in-from-left-2 data-side-top:slide-in-from-bottom-2 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 data-state-open:animate-in data-state-open:fade-in-0 data-state-open:zoom-in-95", "bg-popover", position === "popper" && "max-h-[var(--radix-select-content-available-height)] data-side-bottom:translate-y-2 data-side-left:-translate-x-2 data-side-right:translate-x-2 data-side-top:-translate-y-2", width === "trigger" && "w-[var(--radix-select-trigger-width)]", className),
|
|
1506
|
-
position: position,
|
|
1507
|
-
...props,
|
|
1508
|
-
children: [
|
|
1509
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)($b0b413c594e2809e$export$d8117927658af6d7, {}),
|
|
1510
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Viewport, {
|
|
1511
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("p-1", position === "popper" && "h-[var(--radix-select-trigger-height)] w-full"),
|
|
1512
|
-
children: children
|
|
1513
|
-
}),
|
|
1514
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)($b0b413c594e2809e$export$ff951e476c12189, {})
|
|
1515
|
-
]
|
|
1516
|
-
})
|
|
1517
|
-
}));
|
|
1518
|
-
$b0b413c594e2809e$export$c973a4b3cb86a03d.displayName = "SelectContent";
|
|
1519
|
-
const $b0b413c594e2809e$export$f67338d29bd972f8 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Label, {
|
|
1520
|
-
ref: ref,
|
|
1521
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("px-2 py-1.5 text-sm font-semibold", className),
|
|
1522
|
-
...props
|
|
1523
|
-
}));
|
|
1524
|
-
$b0b413c594e2809e$export$f67338d29bd972f8.displayName = "SelectLabel";
|
|
1525
|
-
const $b0b413c594e2809e$export$13ef48a934230896 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsxs)($hLlzK$Item, {
|
|
1526
|
-
ref: ref,
|
|
1527
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("relative flex w-full cursor-pointer select-none items-center rounded py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-popover-hover data-state-checked:bg-filled-accent data-state-checked:text-on-filled data-disabled:pointer-events-none data-disabled:opacity-50", className),
|
|
1528
|
-
...props,
|
|
1529
|
-
children: [
|
|
1530
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$ItemText, {
|
|
1531
|
-
children: children
|
|
1532
|
-
}),
|
|
1533
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$ItemIndicator, {
|
|
1534
|
-
className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
1535
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$Check), {
|
|
1536
|
-
className: "size-4",
|
|
1537
|
-
weight: "bold"
|
|
1538
|
-
})
|
|
1539
|
-
})
|
|
1540
|
-
]
|
|
1541
|
-
}));
|
|
1542
|
-
$b0b413c594e2809e$export$13ef48a934230896.displayName = "SelectItem";
|
|
1543
|
-
const $b0b413c594e2809e$export$eba4b1df07cb1d3 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)((0, $0e4ef6b27c1ec376$export$1ff3c3f08ae963c0), {
|
|
1544
|
-
ref: ref,
|
|
1545
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("-mx-1 my-1 h-px w-auto", className),
|
|
1546
|
-
...props
|
|
1547
|
-
}));
|
|
1548
|
-
$b0b413c594e2809e$export$eba4b1df07cb1d3.displayName = "SelectSeparator";
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
var $56d64bf3190f86e7$exports = {};
|
|
1554
|
-
|
|
1555
|
-
$parcel$export($56d64bf3190f86e7$exports, "Separator", function () { return $0e4ef6b27c1ec376$export$1ff3c3f08ae963c0; });
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
var $96ca09627b32042e$exports = {};
|
|
1560
|
-
|
|
1561
|
-
$parcel$export($96ca09627b32042e$exports, "Sheet", function () { return $de4859618f6880e3$export$a9bf29f8d87ebbee; });
|
|
1562
|
-
$parcel$export($96ca09627b32042e$exports, "SheetBody", function () { return $de4859618f6880e3$export$8e574df6e3b8d781; });
|
|
1563
|
-
$parcel$export($96ca09627b32042e$exports, "SheetClose", function () { return $de4859618f6880e3$export$99d85c8298ee6511; });
|
|
1564
|
-
$parcel$export($96ca09627b32042e$exports, "SheetContent", function () { return $de4859618f6880e3$export$fe5ec5b76996e2d3; });
|
|
1565
|
-
$parcel$export($96ca09627b32042e$exports, "SheetDescription", function () { return $de4859618f6880e3$export$2ee64bd945b80e4a; });
|
|
1566
|
-
$parcel$export($96ca09627b32042e$exports, "SheetFooter", function () { return $de4859618f6880e3$export$1adeb0155503ee5a; });
|
|
1567
|
-
$parcel$export($96ca09627b32042e$exports, "SheetHeader", function () { return $de4859618f6880e3$export$de7da2aaa45f2eb5; });
|
|
1568
|
-
$parcel$export($96ca09627b32042e$exports, "SheetOverlay", function () { return $de4859618f6880e3$export$48dbb295cbd054d8; });
|
|
1569
|
-
$parcel$export($96ca09627b32042e$exports, "SheetPortal", function () { return $de4859618f6880e3$export$721c917f47f6cb; });
|
|
1570
|
-
$parcel$export($96ca09627b32042e$exports, "SheetTitle", function () { return $de4859618f6880e3$export$4bb009ae36731de9; });
|
|
1571
|
-
$parcel$export($96ca09627b32042e$exports, "SheetTrigger", function () { return $de4859618f6880e3$export$de69b9b0343a1903; });
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
const $de4859618f6880e3$export$a9bf29f8d87ebbee = $hLlzK$Root1;
|
|
1580
|
-
const $de4859618f6880e3$export$de69b9b0343a1903 = $hLlzK$Trigger;
|
|
1581
|
-
const $de4859618f6880e3$export$99d85c8298ee6511 = $hLlzK$Close;
|
|
1582
|
-
const $de4859618f6880e3$export$721c917f47f6cb = $hLlzK$Portal;
|
|
1583
|
-
const $de4859618f6880e3$export$48dbb295cbd054d8 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Overlay, {
|
|
1584
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("fixed inset-0 z-50 bg-overlay backdrop-blur-sm data-state-closed:animate-out data-state-closed:fade-out-0 data-state-open:animate-in data-state-open:fade-in-0", className),
|
|
1585
|
-
...props,
|
|
1586
|
-
ref: ref
|
|
1587
|
-
}));
|
|
1588
|
-
$de4859618f6880e3$export$48dbb295cbd054d8.displayName = $hLlzK$Overlay.displayName;
|
|
1589
|
-
const $de4859618f6880e3$var$SheetVariants = (0, $hLlzK$cva)("fixed z-50 flex flex-col bg-dialog shadow-lg transition ease-in-out data-state-closed:duration-100 data-state-closed:animate-out data-state-open:duration-100 data-state-open:animate-in", {
|
|
1590
|
-
variants: {
|
|
1591
|
-
side: {
|
|
1592
|
-
top: "inset-x-0 top-0 border-b border-dialog data-state-closed:slide-out-to-top data-state-open:slide-in-from-top",
|
|
1593
|
-
bottom: "inset-x-0 bottom-0 border-t border-dialog data-state-closed:slide-out-to-bottom data-state-open:slide-in-from-bottom",
|
|
1594
|
-
left: "inset-y-0 left-0 h-full w-full border-r border-dialog data-state-closed:slide-out-to-left data-state-open:slide-in-from-left sm:max-w-sm",
|
|
1595
|
-
right: "inset-y-0 right-0 h-full w-full border-l border-dialog data-state-closed:slide-out-to-right data-state-open:slide-in-from-right sm:max-w-sm"
|
|
1596
|
-
}
|
|
1597
|
-
},
|
|
1598
|
-
defaultVariants: {
|
|
1599
|
-
side: "right"
|
|
1600
|
-
}
|
|
1601
|
-
});
|
|
1602
|
-
const $de4859618f6880e3$export$fe5ec5b76996e2d3 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ side: side = "right", className: className, children: children, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsxs)($de4859618f6880e3$export$721c917f47f6cb, {
|
|
1603
|
-
children: [
|
|
1604
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)($de4859618f6880e3$export$48dbb295cbd054d8, {}),
|
|
1605
|
-
/*#__PURE__*/ (0, $hLlzK$jsxs)($hLlzK$Content, {
|
|
1606
|
-
ref: ref,
|
|
1607
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)($de4859618f6880e3$var$SheetVariants({
|
|
1608
|
-
side: side
|
|
1609
|
-
}), className),
|
|
1610
|
-
...props,
|
|
1611
|
-
children: [
|
|
1612
|
-
children,
|
|
1613
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Close, {
|
|
1614
|
-
asChild: true,
|
|
1615
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsxs)((0, $c2638d7be6bdca12$export$353f5b6fc5456de1), {
|
|
1616
|
-
appearance: "outlined",
|
|
1617
|
-
priority: "neutral",
|
|
1618
|
-
className: "absolute right-4 top-4 size-11 sm:size-9",
|
|
1619
|
-
children: [
|
|
1620
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$X), {
|
|
1621
|
-
className: "size-5 shrink-0"
|
|
1622
|
-
}),
|
|
1623
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)("span", {
|
|
1624
|
-
className: "sr-only",
|
|
1625
|
-
children: "Close"
|
|
1626
|
-
})
|
|
1627
|
-
]
|
|
1628
|
-
})
|
|
1629
|
-
})
|
|
1630
|
-
]
|
|
1631
|
-
})
|
|
1632
|
-
]
|
|
1633
|
-
}));
|
|
1634
|
-
$de4859618f6880e3$export$fe5ec5b76996e2d3.displayName = $hLlzK$Content.displayName;
|
|
1635
|
-
const $de4859618f6880e3$export$8e574df6e3b8d781 = ({ className: className, ...props })=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
1636
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("scrollbar flex-1 overflow-y-auto p-6 text-body", className),
|
|
1637
|
-
...props
|
|
1638
|
-
});
|
|
1639
|
-
const $de4859618f6880e3$export$de7da2aaa45f2eb5 = ({ className: className, ...props })=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
1640
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("shrink-0 border-b border-dialog-muted px-6 py-4", className),
|
|
1641
|
-
...props
|
|
1642
|
-
});
|
|
1643
|
-
const $de4859618f6880e3$export$1adeb0155503ee5a = ({ className: className, ...props })=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
1644
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("flex shrink-0 flex-row-reverse gap-2 border-t border-dialog-muted px-6 py-2.5", className),
|
|
1645
|
-
...props
|
|
1646
|
-
});
|
|
1647
|
-
const $de4859618f6880e3$export$4bb009ae36731de9 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Title, {
|
|
1648
|
-
ref: ref,
|
|
1649
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("text-lg font-medium text-strong", className),
|
|
1650
|
-
...props
|
|
1651
|
-
}));
|
|
1652
|
-
$de4859618f6880e3$export$4bb009ae36731de9.displayName = $hLlzK$Title.displayName;
|
|
1653
|
-
const $de4859618f6880e3$export$2ee64bd945b80e4a = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Description, {
|
|
1654
|
-
ref: ref,
|
|
1655
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("text-body", className),
|
|
1656
|
-
...props
|
|
1657
|
-
}));
|
|
1658
|
-
$de4859618f6880e3$export$2ee64bd945b80e4a.displayName = $hLlzK$Description.displayName;
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
var $e4ab606c19eb58c8$exports = {};
|
|
1664
|
-
|
|
1665
|
-
$parcel$export($e4ab606c19eb58c8$exports, "Skeleton", function () { return $53866fd1feac4bca$export$8f31e4c4a37b8e9c; });
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
/**
|
|
1669
|
-
* A skeleton is a placeholder for content that is loading.
|
|
1670
|
-
* By using a skeleton, you can give the user an idea of what the content will
|
|
1671
|
-
* look like and reduce the perceived loading time and CLS (Cumulative Layout Shift).
|
|
1672
|
-
*
|
|
1673
|
-
* @note Default height is 1rem.
|
|
1674
|
-
*/ function $53866fd1feac4bca$export$8f31e4c4a37b8e9c({ className: className, ...props }) {
|
|
1675
|
-
return /*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
1676
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("h-4 animate-pulse rounded-md bg-gray-300/25 dark-high-contrast:bg-black/30 high-contrast:bg-black/30 dark:bg-gray-950/10", className),
|
|
1677
|
-
...props
|
|
1678
|
-
});
|
|
1679
|
-
}
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
var $8a0ec98a1adff889$exports = {};
|
|
1685
|
-
|
|
1686
|
-
$parcel$export($8a0ec98a1adff889$exports, "Table", function () { return $fd75fdf931689c59$export$54ec01a60f47d33d; });
|
|
1687
|
-
$parcel$export($8a0ec98a1adff889$exports, "TableHeader", function () { return $fd75fdf931689c59$export$f850895b287ef28e; });
|
|
1688
|
-
$parcel$export($8a0ec98a1adff889$exports, "TableBody", function () { return $fd75fdf931689c59$export$76ccd210b9029917; });
|
|
1689
|
-
$parcel$export($8a0ec98a1adff889$exports, "TableFooter", function () { return $fd75fdf931689c59$export$1f116082bba1f9a8; });
|
|
1690
|
-
$parcel$export($8a0ec98a1adff889$exports, "TableHead", function () { return $fd75fdf931689c59$export$2f4a7be4f0dcc2; });
|
|
1691
|
-
$parcel$export($8a0ec98a1adff889$exports, "TableRow", function () { return $fd75fdf931689c59$export$b05581f4e764e162; });
|
|
1692
|
-
$parcel$export($8a0ec98a1adff889$exports, "TableCell", function () { return $fd75fdf931689c59$export$1e4baea7053fc0e3; });
|
|
1693
|
-
$parcel$export($8a0ec98a1adff889$exports, "TableCaption", function () { return $fd75fdf931689c59$export$35468a455d619eb3; });
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
const $fd75fdf931689c59$export$54ec01a60f47d33d = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>// <div className="">
|
|
1698
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)("table", {
|
|
1699
|
-
ref: ref,
|
|
1700
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("relative w-full caption-bottom overflow-auto text-sm", className),
|
|
1701
|
-
...props
|
|
1702
|
-
}));
|
|
1703
|
-
$fd75fdf931689c59$export$54ec01a60f47d33d.displayName = "Table";
|
|
1704
|
-
const $fd75fdf931689c59$export$f850895b287ef28e = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("thead", {
|
|
1705
|
-
ref: ref,
|
|
1706
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("bg-base [&_tr]:border-b", className),
|
|
1707
|
-
...props
|
|
1708
|
-
}));
|
|
1709
|
-
$fd75fdf931689c59$export$f850895b287ef28e.displayName = "TableHeader";
|
|
1710
|
-
const $fd75fdf931689c59$export$76ccd210b9029917 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("tbody", {
|
|
1711
|
-
ref: ref,
|
|
1712
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("[&_tr:last-child]:border-0", className),
|
|
1713
|
-
...props
|
|
1714
|
-
}));
|
|
1715
|
-
$fd75fdf931689c59$export$76ccd210b9029917.displayName = "TableBody";
|
|
1716
|
-
const $fd75fdf931689c59$export$1f116082bba1f9a8 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("tfoot", {
|
|
1717
|
-
ref: ref,
|
|
1718
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("border-t border-gray-300 bg-gray-50/50 font-medium [&>tr]:last:border-b-0", className),
|
|
1719
|
-
...props
|
|
1720
|
-
}));
|
|
1721
|
-
$fd75fdf931689c59$export$1f116082bba1f9a8.displayName = "TableFooter";
|
|
1722
|
-
const $fd75fdf931689c59$export$b05581f4e764e162 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("tr", {
|
|
1723
|
-
ref: ref,
|
|
1724
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("border-b border-gray-300 hover:bg-gray-200/50 data-state-selected:bg-gray-200", className),
|
|
1725
|
-
...props
|
|
1726
|
-
}));
|
|
1727
|
-
$fd75fdf931689c59$export$b05581f4e764e162.displayName = "TableRow";
|
|
1728
|
-
const $fd75fdf931689c59$export$2f4a7be4f0dcc2 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("th", {
|
|
1729
|
-
ref: ref,
|
|
1730
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0", className),
|
|
1731
|
-
...props
|
|
1732
|
-
}));
|
|
1733
|
-
$fd75fdf931689c59$export$2f4a7be4f0dcc2.displayName = "TableHead";
|
|
1734
|
-
const $fd75fdf931689c59$export$1e4baea7053fc0e3 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("td", {
|
|
1735
|
-
ref: ref,
|
|
1736
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("p-4 align-middle [&:has([role=checkbox])]:pr-0", className),
|
|
1737
|
-
...props
|
|
1738
|
-
}));
|
|
1739
|
-
$fd75fdf931689c59$export$1e4baea7053fc0e3.displayName = "TableCell";
|
|
1740
|
-
const $fd75fdf931689c59$export$35468a455d619eb3 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("caption", {
|
|
1741
|
-
ref: ref,
|
|
1742
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("border-t border-gray-300 py-4 text-sm text-gray-500", className),
|
|
1743
|
-
...props
|
|
1744
|
-
}));
|
|
1745
|
-
$fd75fdf931689c59$export$35468a455d619eb3.displayName = "TableCaption";
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
var $28ef0f9ef87312c9$exports = {};
|
|
1751
|
-
|
|
1752
|
-
$parcel$export($28ef0f9ef87312c9$exports, "TextArea", function () { return $a6907629e3ef14e9$export$f5c9f3c2c4054eec; });
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
const $a6907629e3ef14e9$var$textAreaVariants = (0, $hLlzK$cva)("border-input flex min-h-24 w-full rounded-md border bg-form px-3 py-[calc(theme(spacing[2.5])-1px)] focus-visible:outline-none focus-visible:ring-4 disabled:pointer-events-none disabled:opacity-50 data-drag-over:border-dashed data-drag-over:ring-4 sm:py-[calc(theme(spacing[2])-1px)] sm:text-sm", {
|
|
1758
|
-
variants: {
|
|
1759
|
-
/**
|
|
1760
|
-
* Whether or not the textarea has a validation error.
|
|
1761
|
-
*/ invalid: {
|
|
1762
|
-
false: "border-form text-strong ring-focus-accent placeholder:text-placeholder focus:border-accent-600 data-drag-over:border-accent-600",
|
|
1763
|
-
true: "border-danger-600 ring-focus-danger placeholder:text-placeholder focus:border-danger-600 data-drag-over:border-dashed data-drag-over:border-danger-600"
|
|
1764
|
-
},
|
|
1765
|
-
/**
|
|
1766
|
-
* The visual style of the textarea.
|
|
1767
|
-
*/ appearance: {
|
|
1768
|
-
monospaced: "font-mono text-[0.9375rem] sm:text-[0.8125rem]"
|
|
1769
|
-
}
|
|
1770
|
-
},
|
|
1771
|
-
defaultVariants: {
|
|
1772
|
-
invalid: false
|
|
1773
|
-
}
|
|
1774
|
-
});
|
|
1775
|
-
const $a6907629e3ef14e9$export$f5c9f3c2c4054eec = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ appearance: appearance, "aria-invalid": _ariaInvalid, className: className, invalid: invalid, onDragEnter: onDragEnter, onDragLeave: onDragLeave, onDropCapture: onDropCapture, ...props }, ref)=>{
|
|
1776
|
-
const ariaInvalid = _ariaInvalid !== null && _ariaInvalid !== void 0 ? _ariaInvalid : invalid;
|
|
1777
|
-
const [isDragOver, setIsDragOver] = (0, $hLlzK$useState)(false);
|
|
1778
|
-
const _ref = (0, $hLlzK$useRef)(null);
|
|
1779
|
-
return /*#__PURE__*/ (0, $hLlzK$jsx)("textarea", {
|
|
1780
|
-
"aria-invalid": ariaInvalid,
|
|
1781
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)($a6907629e3ef14e9$var$textAreaVariants({
|
|
1782
|
-
appearance: appearance,
|
|
1783
|
-
invalid: invalid
|
|
1784
|
-
}), className),
|
|
1785
|
-
"data-drag-over": isDragOver,
|
|
1786
|
-
onDragEnter: (event)=>{
|
|
1787
|
-
setIsDragOver(true);
|
|
1788
|
-
onDragEnter === null || onDragEnter === void 0 ? void 0 : onDragEnter(event);
|
|
1789
|
-
},
|
|
1790
|
-
onDragLeave: (event)=>{
|
|
1791
|
-
setIsDragOver(false);
|
|
1792
|
-
onDragLeave === null || onDragLeave === void 0 ? void 0 : onDragLeave(event);
|
|
1793
|
-
},
|
|
1794
|
-
onDropCapture: (event)=>{
|
|
1795
|
-
var _ref_current;
|
|
1796
|
-
setIsDragOver(false);
|
|
1797
|
-
(_ref_current = _ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.focus();
|
|
1798
|
-
onDropCapture === null || onDropCapture === void 0 ? void 0 : onDropCapture(event);
|
|
1799
|
-
},
|
|
1800
|
-
ref: (node)=>{
|
|
1801
|
-
_ref.current = node;
|
|
1802
|
-
if (typeof ref === "function") ref(node);
|
|
1803
|
-
else if (ref) ref.current = node;
|
|
1804
|
-
},
|
|
1805
|
-
...props
|
|
1806
|
-
});
|
|
1807
|
-
});
|
|
1808
|
-
$a6907629e3ef14e9$export$f5c9f3c2c4054eec.displayName = "TextArea";
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
var $1139165ac42b5b24$exports = {};
|
|
1814
|
-
|
|
1815
|
-
$parcel$export($1139165ac42b5b24$exports, "MantleThemeHeadContent", function () { return $dda3493dd750e32f$export$af55aa65d73bedf7; });
|
|
1816
|
-
$parcel$export($1139165ac42b5b24$exports, "ThemeProvider", function () { return $dda3493dd750e32f$export$d8964aec282183a3; });
|
|
1817
|
-
$parcel$export($1139165ac42b5b24$exports, "isTheme", function () { return $dda3493dd750e32f$export$6b08dcdbd4008308; });
|
|
1818
|
-
$parcel$export($1139165ac42b5b24$exports, "preventWrongThemeFlashScriptContent", function () { return $dda3493dd750e32f$export$1dca76bcd3720cbb; });
|
|
1819
|
-
$parcel$export($1139165ac42b5b24$exports, "theme", function () { return $dda3493dd750e32f$export$bca14c5b3b88a9c9; });
|
|
1820
|
-
$parcel$export($1139165ac42b5b24$exports, "useAppliedTheme", function () { return $dda3493dd750e32f$export$9335dc9d919c3613; });
|
|
1821
|
-
$parcel$export($1139165ac42b5b24$exports, "useInitialHtmlThemeProps", function () { return $dda3493dd750e32f$export$4132e7bcc6139686; });
|
|
1822
|
-
$parcel$export($1139165ac42b5b24$exports, "useTheme", function () { return $dda3493dd750e32f$export$93d4e7f90805808f; });
|
|
1823
|
-
$parcel$export($1139165ac42b5b24$exports, "PreloadFonts", function () { return $380730b2f4c100d4$export$24c8fb0221e74d36; });
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
function $09c25728f9af4f32$export$4a69f2d3e9a6da8a(query) {
|
|
1830
|
-
const subscribe = (0, $hLlzK$useCallback)((callback)=>{
|
|
1831
|
-
const matchMedia = window.matchMedia(query);
|
|
1832
|
-
matchMedia.addEventListener("change", callback);
|
|
1833
|
-
return ()=>{
|
|
1834
|
-
matchMedia.removeEventListener("change", callback);
|
|
1835
|
-
};
|
|
1836
|
-
}, [
|
|
1837
|
-
query
|
|
1838
|
-
]);
|
|
1839
|
-
return (0, $hLlzK$useSyncExternalStore)(subscribe, ()=>{
|
|
1840
|
-
return window.matchMedia(query).matches;
|
|
1841
|
-
}, ()=>false);
|
|
1842
|
-
}
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
const $380730b2f4c100d4$var$cdnBase = "https://cdn.ngrok.com/static/fonts";
|
|
1847
|
-
const $380730b2f4c100d4$var$fonts = [
|
|
1848
|
-
"euclid-square/EuclidSquare-Regular-WebS.woff",
|
|
1849
|
-
"euclid-square/EuclidSquare-RegularItalic-WebS.woff",
|
|
1850
|
-
"euclid-square/EuclidSquare-Medium-WebS.woff",
|
|
1851
|
-
"euclid-square/EuclidSquare-Semibold-WebS.woff",
|
|
1852
|
-
"euclid-square/EuclidSquare-MediumItalic-WebS.woff",
|
|
1853
|
-
"ibm-plex-mono/IBMPlexMono-Text.woff",
|
|
1854
|
-
"ibm-plex-mono/IBMPlexMono-TextItalic.woff",
|
|
1855
|
-
"ibm-plex-mono/IBMPlexMono-SemiBold.woff",
|
|
1856
|
-
"ibm-plex-mono/IBMPlexMono-SemiBoldItalic.woff"
|
|
1857
|
-
];
|
|
1858
|
-
const $380730b2f4c100d4$var$fontHref = (font)=>[
|
|
1859
|
-
$380730b2f4c100d4$var$cdnBase,
|
|
1860
|
-
font
|
|
1861
|
-
].join("/");
|
|
1862
|
-
/**
|
|
1863
|
-
* Preload custom fonts used in the theme. This should be added to the head of the document in your application, preferably as high as possible.
|
|
1864
|
-
* Normally you won't use this directly, but instead use the `MantleThemeHeadContent` component which includes this.
|
|
1865
|
-
*/ const $380730b2f4c100d4$export$24c8fb0221e74d36 = ()=>/*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$Fragment), {
|
|
1866
|
-
children: $380730b2f4c100d4$var$fonts.map((font)=>/*#__PURE__*/ (0, $hLlzK$jsx)("link", {
|
|
1867
|
-
rel: "preload",
|
|
1868
|
-
href: $380730b2f4c100d4$var$fontHref(font),
|
|
1869
|
-
as: "font",
|
|
1870
|
-
type: "font/woff",
|
|
1871
|
-
crossOrigin: "anonymous"
|
|
1872
|
-
}, font))
|
|
1873
|
-
});
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
/**
|
|
1877
|
-
* prefersDarkModeMediaQuery is the media query used to detect if the user prefers dark mode.
|
|
1878
|
-
*/ const $dda3493dd750e32f$var$prefersDarkModeMediaQuery = "(prefers-color-scheme: dark)";
|
|
1879
|
-
/**
|
|
1880
|
-
* prefersHighContrastMediaQuery is the media query used to detect if the user prefers high contrast mode.
|
|
1881
|
-
*/ const $dda3493dd750e32f$var$prefersHighContrastMediaQuery = "(prefers-contrast: more)";
|
|
1882
|
-
/**
|
|
1883
|
-
* themes is a tuple of valid themes.
|
|
1884
|
-
*/ const $dda3493dd750e32f$var$themes = [
|
|
1885
|
-
"system",
|
|
1886
|
-
"light",
|
|
1887
|
-
"dark",
|
|
1888
|
-
"light-high-contrast",
|
|
1889
|
-
"dark-high-contrast"
|
|
1890
|
-
];
|
|
1891
|
-
/**
|
|
1892
|
-
* theme is a helper which translates the Theme type into a string literal type.
|
|
1893
|
-
*/ const $dda3493dd750e32f$export$bca14c5b3b88a9c9 = (value)=>value;
|
|
1894
|
-
/**
|
|
1895
|
-
* Type predicate that checks if a value is a valid theme.
|
|
1896
|
-
*/ function $dda3493dd750e32f$export$6b08dcdbd4008308(value) {
|
|
1897
|
-
if (typeof value !== "string") return false;
|
|
1898
|
-
return $dda3493dd750e32f$var$themes.includes(value);
|
|
1899
|
-
}
|
|
1900
|
-
/**
|
|
1901
|
-
* DEFAULT_STORAGE_KEY is the default key used to store the theme in localStorage.
|
|
1902
|
-
*/ const $dda3493dd750e32f$var$DEFAULT_STORAGE_KEY = "mantle-ui-theme";
|
|
1903
|
-
/**
|
|
1904
|
-
* Initial state for the ThemeProviderContext.
|
|
1905
|
-
*/ const $dda3493dd750e32f$var$initialState = [
|
|
1906
|
-
"system",
|
|
1907
|
-
()=>null
|
|
1908
|
-
];
|
|
1909
|
-
/**
|
|
1910
|
-
* ThemeProviderContext is a React Context that provides the current theme and a function to set the theme.
|
|
1911
|
-
*/ const $dda3493dd750e32f$var$ThemeProviderContext = /*#__PURE__*/ (0, $hLlzK$createContext)($dda3493dd750e32f$var$initialState);
|
|
1912
|
-
/**
|
|
1913
|
-
* isBrowser returns true if the code is running in a browser environment.
|
|
1914
|
-
*/ const $dda3493dd750e32f$var$isBrowser = ()=>typeof window !== "undefined";
|
|
1915
|
-
/**
|
|
1916
|
-
* Gets the stored theme from localStorage or returns the default theme if no theme is stored.
|
|
1917
|
-
*/ function $dda3493dd750e32f$var$getStoredTheme(storageKey, defaultTheme = "system") {
|
|
1918
|
-
const fallbackTheme = defaultTheme !== null && defaultTheme !== void 0 ? defaultTheme : "system";
|
|
1919
|
-
if ($dda3493dd750e32f$var$isBrowser()) {
|
|
1920
|
-
const storedTheme = window.localStorage.getItem(storageKey);
|
|
1921
|
-
return $dda3493dd750e32f$export$6b08dcdbd4008308(storedTheme) ? storedTheme : fallbackTheme;
|
|
1922
|
-
}
|
|
1923
|
-
return fallbackTheme;
|
|
1924
|
-
}
|
|
1925
|
-
/**
|
|
1926
|
-
* ThemeProvider is a React Context Provider that provides the current theme and a function to set the theme.
|
|
1927
|
-
*/ function $dda3493dd750e32f$export$d8964aec282183a3({ children: children, defaultTheme: defaultTheme = "system", storageKey: storageKey = $dda3493dd750e32f$var$DEFAULT_STORAGE_KEY }) {
|
|
1928
|
-
const [theme, setTheme] = (0, $hLlzK$useState)(()=>{
|
|
1929
|
-
const initialTheme = $dda3493dd750e32f$var$getStoredTheme(storageKey, defaultTheme);
|
|
1930
|
-
$dda3493dd750e32f$var$applyTheme(initialTheme);
|
|
1931
|
-
return initialTheme;
|
|
1932
|
-
});
|
|
1933
|
-
(0, $hLlzK$useEffect)(()=>{
|
|
1934
|
-
const storedTheme = $dda3493dd750e32f$var$getStoredTheme(storageKey, defaultTheme);
|
|
1935
|
-
setTheme(storedTheme);
|
|
1936
|
-
$dda3493dd750e32f$var$applyTheme(storedTheme);
|
|
1937
|
-
}, [
|
|
1938
|
-
defaultTheme,
|
|
1939
|
-
storageKey
|
|
1940
|
-
]);
|
|
1941
|
-
(0, $hLlzK$useEffect)(()=>{
|
|
1942
|
-
const prefersDarkMql = window.matchMedia($dda3493dd750e32f$var$prefersDarkModeMediaQuery);
|
|
1943
|
-
const prefersHighContrastMql = window.matchMedia($dda3493dd750e32f$var$prefersHighContrastMediaQuery);
|
|
1944
|
-
const onChange = ()=>{
|
|
1945
|
-
const storedTheme = $dda3493dd750e32f$var$getStoredTheme(storageKey, defaultTheme);
|
|
1946
|
-
// If the stored theme is not "system", then the user has explicitly set a theme and we should not
|
|
1947
|
-
// automatically change the theme when the user's system preferences change.
|
|
1948
|
-
if (storedTheme !== "system") return;
|
|
1949
|
-
$dda3493dd750e32f$var$applyTheme("system");
|
|
1950
|
-
};
|
|
1951
|
-
prefersDarkMql.addEventListener("change", onChange);
|
|
1952
|
-
prefersHighContrastMql.addEventListener("change", onChange);
|
|
1953
|
-
return ()=>{
|
|
1954
|
-
prefersDarkMql.removeEventListener("change", onChange);
|
|
1955
|
-
prefersHighContrastMql.removeEventListener("change", onChange);
|
|
1956
|
-
};
|
|
1957
|
-
}, [
|
|
1958
|
-
defaultTheme,
|
|
1959
|
-
storageKey
|
|
1960
|
-
]);
|
|
1961
|
-
const value = (0, $hLlzK$useMemo)(()=>[
|
|
1962
|
-
theme,
|
|
1963
|
-
(theme)=>{
|
|
1964
|
-
window.localStorage.setItem(storageKey, theme);
|
|
1965
|
-
setTheme(theme);
|
|
1966
|
-
$dda3493dd750e32f$var$applyTheme(theme);
|
|
1967
|
-
}
|
|
1968
|
-
], [
|
|
1969
|
-
storageKey,
|
|
1970
|
-
theme
|
|
1971
|
-
]);
|
|
1972
|
-
return /*#__PURE__*/ (0, $hLlzK$jsx)($dda3493dd750e32f$var$ThemeProviderContext.Provider, {
|
|
1973
|
-
value: value,
|
|
1974
|
-
children: children
|
|
1975
|
-
});
|
|
1976
|
-
}
|
|
1977
|
-
/**
|
|
1978
|
-
* useTheme returns the current theme and a function to set the theme.
|
|
1979
|
-
*
|
|
1980
|
-
* @note This function will throw an error if used outside of a ThemeProvider context tree.
|
|
1981
|
-
*/ function $dda3493dd750e32f$export$93d4e7f90805808f() {
|
|
1982
|
-
const context = (0, $hLlzK$useContext)($dda3493dd750e32f$var$ThemeProviderContext);
|
|
1983
|
-
(0, $hLlzK$tinyinvariant)(context, "useTheme must be used within a ThemeProvider");
|
|
1984
|
-
return context;
|
|
1985
|
-
}
|
|
1986
|
-
/**
|
|
1987
|
-
* Applies the given theme to the <html> element.
|
|
1988
|
-
*/ function $dda3493dd750e32f$var$applyTheme(theme) {
|
|
1989
|
-
if (!$dda3493dd750e32f$var$isBrowser()) return;
|
|
1990
|
-
const htmlElement = window.document.documentElement;
|
|
1991
|
-
htmlElement.classList.remove(...$dda3493dd750e32f$var$themes);
|
|
1992
|
-
const prefersDarkMode = window.matchMedia($dda3493dd750e32f$var$prefersDarkModeMediaQuery).matches;
|
|
1993
|
-
const prefersHighContrast = window.matchMedia($dda3493dd750e32f$var$prefersHighContrastMediaQuery).matches;
|
|
1994
|
-
const newTheme = $dda3493dd750e32f$var$resolveTheme(theme, {
|
|
1995
|
-
prefersDarkMode: prefersDarkMode,
|
|
1996
|
-
prefersHighContrast: prefersHighContrast
|
|
1997
|
-
});
|
|
1998
|
-
htmlElement.classList.add(newTheme);
|
|
1999
|
-
htmlElement.dataset.appliedTheme = newTheme;
|
|
2000
|
-
htmlElement.dataset.theme = theme;
|
|
2001
|
-
}
|
|
2002
|
-
/**
|
|
2003
|
-
* If the theme is "system", it will resolve the theme based on the user's media query preferences, otherwise it will return the theme as is.
|
|
2004
|
-
* This will mirror the result that gets applied to the <html> element.
|
|
2005
|
-
*/ function $dda3493dd750e32f$var$resolveTheme(theme, { prefersDarkMode: prefersDarkMode, prefersHighContrast: prefersHighContrast }) {
|
|
2006
|
-
if (theme === "system") return $dda3493dd750e32f$export$4fb60975b7de64a3({
|
|
2007
|
-
prefersDarkMode: prefersDarkMode,
|
|
2008
|
-
prefersHighContrast: prefersHighContrast
|
|
2009
|
-
});
|
|
2010
|
-
return theme;
|
|
2011
|
-
}
|
|
2012
|
-
/**
|
|
2013
|
-
* If the theme is "system", it will resolve the theme based on the user's media query preferences, otherwise it will return the theme as is.
|
|
2014
|
-
* This will mirror the result that gets applied to the <html> element.
|
|
2015
|
-
*/ function $dda3493dd750e32f$export$9335dc9d919c3613() {
|
|
2016
|
-
const [theme] = $dda3493dd750e32f$export$93d4e7f90805808f();
|
|
2017
|
-
const prefersDarkMode = (0, $09c25728f9af4f32$export$4a69f2d3e9a6da8a)($dda3493dd750e32f$var$prefersDarkModeMediaQuery);
|
|
2018
|
-
const prefersHighContrast = (0, $09c25728f9af4f32$export$4a69f2d3e9a6da8a)($dda3493dd750e32f$var$prefersHighContrastMediaQuery);
|
|
2019
|
-
return $dda3493dd750e32f$var$resolveTheme(theme, {
|
|
2020
|
-
prefersDarkMode: prefersDarkMode,
|
|
2021
|
-
prefersHighContrast: prefersHighContrast
|
|
2022
|
-
});
|
|
2023
|
-
}
|
|
2024
|
-
function $dda3493dd750e32f$export$4fb60975b7de64a3({ prefersDarkMode: prefersDarkMode, prefersHighContrast: prefersHighContrast }) {
|
|
2025
|
-
if (prefersHighContrast) return prefersDarkMode ? "dark-high-contrast" : "light-high-contrast";
|
|
2026
|
-
return prefersDarkMode ? "dark" : "light";
|
|
2027
|
-
}
|
|
2028
|
-
function $dda3493dd750e32f$export$1dca76bcd3720cbb({ defaultTheme: defaultTheme = "system", storageKey: storageKey = $dda3493dd750e32f$var$DEFAULT_STORAGE_KEY }) {
|
|
2029
|
-
return `
|
|
2030
|
-
(function() {
|
|
2031
|
-
const themes = ${JSON.stringify($dda3493dd750e32f$var$themes)};
|
|
2032
|
-
const isTheme = (value) => typeof value === "string" && themes.includes(value);
|
|
2033
|
-
const fallbackTheme = "${defaultTheme}" ?? "system";
|
|
2034
|
-
const maybeStoredTheme = window.localStorage.getItem("${storageKey}");
|
|
2035
|
-
const hasStoredTheme = isTheme(maybeStoredTheme);
|
|
2036
|
-
if (!hasStoredTheme) {
|
|
2037
|
-
window.localStorage.setItem("${storageKey}", fallbackTheme);
|
|
2038
|
-
}
|
|
2039
|
-
const themePreference = hasStoredTheme ? maybeStoredTheme : fallbackTheme;
|
|
2040
|
-
const prefersDarkMode = window.matchMedia("${$dda3493dd750e32f$var$prefersDarkModeMediaQuery}").matches;
|
|
2041
|
-
const prefersHighContrast = window.matchMedia("${$dda3493dd750e32f$var$prefersHighContrastMediaQuery}").matches;
|
|
2042
|
-
let initialTheme = themePreference;
|
|
2043
|
-
if (initialTheme === "system") {
|
|
2044
|
-
if (prefersHighContrast) {
|
|
2045
|
-
initialTheme = prefersDarkMode ? "dark-high-contrast" : "light-high-contrast";
|
|
2046
|
-
} else {
|
|
2047
|
-
initialTheme = prefersDarkMode ? "dark" : "light";
|
|
2048
|
-
}
|
|
2049
|
-
}
|
|
2050
|
-
const htmlElement = document.documentElement;
|
|
2051
|
-
htmlElement.classList.remove(...themes);
|
|
2052
|
-
htmlElement.classList.add(initialTheme);
|
|
2053
|
-
htmlElement.dataset.appliedTheme = initialTheme;
|
|
2054
|
-
htmlElement.dataset.theme = themePreference;
|
|
2055
|
-
})();
|
|
2056
|
-
`.trim();
|
|
2057
|
-
}
|
|
2058
|
-
/**
|
|
2059
|
-
* MantleThemeHeadContent is a React component that prevents the wrong theme from flashing on initial page load.
|
|
2060
|
-
* Render as high as possible in the <head> element.
|
|
2061
|
-
*/ const $dda3493dd750e32f$export$af55aa65d73bedf7 = ({ defaultTheme: defaultTheme = "system", storageKey: storageKey = $dda3493dd750e32f$var$DEFAULT_STORAGE_KEY })=>/*#__PURE__*/ (0, $hLlzK$jsxs)((0, $hLlzK$Fragment), {
|
|
2062
|
-
children: [
|
|
2063
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)("script", {
|
|
2064
|
-
dangerouslySetInnerHTML: {
|
|
2065
|
-
__html: $dda3493dd750e32f$export$1dca76bcd3720cbb({
|
|
2066
|
-
defaultTheme: defaultTheme,
|
|
2067
|
-
storageKey: storageKey
|
|
2068
|
-
})
|
|
2069
|
-
}
|
|
2070
|
-
}),
|
|
2071
|
-
/*#__PURE__*/ (0, $hLlzK$jsx)((0, $380730b2f4c100d4$export$24c8fb0221e74d36), {})
|
|
2072
|
-
]
|
|
2073
|
-
});
|
|
2074
|
-
/**
|
|
2075
|
-
* useInitialHtmlThemeProps returns the initial props that should be applied to the <html> element to prevent react hydration errors.
|
|
2076
|
-
*/ function $dda3493dd750e32f$export$4132e7bcc6139686(props) {
|
|
2077
|
-
const { className: className = "", defaultTheme: defaultTheme = "system", storageKey: storageKey = $dda3493dd750e32f$var$DEFAULT_STORAGE_KEY } = props !== null && props !== void 0 ? props : {};
|
|
2078
|
-
return (0, $hLlzK$useMemo)(()=>{
|
|
2079
|
-
if (!$dda3493dd750e32f$var$isBrowser()) return {
|
|
2080
|
-
className: (0, $hLlzK$clsx1)(className),
|
|
2081
|
-
"data-applied-theme": "system",
|
|
2082
|
-
"data-theme": "system"
|
|
2083
|
-
};
|
|
2084
|
-
const prefersDarkMode = window.matchMedia($dda3493dd750e32f$var$prefersDarkModeMediaQuery).matches;
|
|
2085
|
-
const prefersHighContrast = window.matchMedia($dda3493dd750e32f$var$prefersHighContrastMediaQuery).matches;
|
|
2086
|
-
const initialTheme = $dda3493dd750e32f$var$getStoredTheme(storageKey, defaultTheme);
|
|
2087
|
-
const reolvedTheme = $dda3493dd750e32f$var$resolveTheme(initialTheme, {
|
|
2088
|
-
prefersDarkMode: prefersDarkMode,
|
|
2089
|
-
prefersHighContrast: prefersHighContrast
|
|
2090
|
-
});
|
|
2091
|
-
return {
|
|
2092
|
-
className: (0, $hLlzK$clsx1)(className, reolvedTheme),
|
|
2093
|
-
"data-applied-theme": reolvedTheme,
|
|
2094
|
-
"data-theme": initialTheme
|
|
2095
|
-
};
|
|
2096
|
-
}, [
|
|
2097
|
-
className,
|
|
2098
|
-
defaultTheme,
|
|
2099
|
-
storageKey
|
|
2100
|
-
]);
|
|
2101
|
-
}
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
var $d2d52c6753841931$exports = {};
|
|
2108
|
-
|
|
2109
|
-
$parcel$export($d2d52c6753841931$exports, "Tooltip", function () { return $aae96005fa706805$export$28c660c63b792dea; });
|
|
2110
|
-
$parcel$export($d2d52c6753841931$exports, "TooltipTrigger", function () { return $aae96005fa706805$export$8c610744efcf8a1d; });
|
|
2111
|
-
$parcel$export($d2d52c6753841931$exports, "TooltipContent", function () { return $aae96005fa706805$export$e9003e2be37ec060; });
|
|
2112
|
-
$parcel$export($d2d52c6753841931$exports, "TooltipProvider", function () { return $aae96005fa706805$export$f78649fb9ca566b8; });
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
/**
|
|
2118
|
-
* Wraps your app to provide global functionality to your tooltips.
|
|
2119
|
-
*/ const $aae96005fa706805$export$f78649fb9ca566b8 = ({ delayDuration: delayDuration = 0, ...props })=>/*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$Provider), {
|
|
2120
|
-
delayDuration: delayDuration !== null && delayDuration !== void 0 ? delayDuration : 0,
|
|
2121
|
-
...props
|
|
2122
|
-
});
|
|
2123
|
-
const $aae96005fa706805$export$28c660c63b792dea = (0, $hLlzK$Root5);
|
|
2124
|
-
const $aae96005fa706805$export$8c610744efcf8a1d = (0, $hLlzK$Trigger3);
|
|
2125
|
-
const $aae96005fa706805$export$e9003e2be37ec060 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ children: children, className: className, sideOffset: sideOffset = 4, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$Content3), {
|
|
2126
|
-
ref: ref,
|
|
2127
|
-
sideOffset: sideOffset,
|
|
2128
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("z-50 overflow-hidden rounded-md bg-tooltip px-3 py-1.5 text-sm text-tooltip shadow animate-in fade-in-0 zoom-in-95 data-side-bottom:slide-in-from-top-2 data-side-left:slide-in-from-right-2 data-side-right:slide-in-from-left-2 data-side-top:slide-in-from-bottom-2 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95", className),
|
|
2129
|
-
...props,
|
|
2130
|
-
children: children
|
|
2131
|
-
}));
|
|
2132
|
-
$aae96005fa706805$export$e9003e2be37ec060.displayName = "TooltipContent";
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
export {$70398adbd69bc3b3$export$caec2af78bcc877f as Alert, $70398adbd69bc3b3$export$7738e9160ff0021e as AlertContent, $70398adbd69bc3b3$export$4a7253439a300753 as AlertTitle, $70398adbd69bc3b3$export$d4feae172fccda11 as AlertDescription, $d7b44a6bfb86e793$export$b688253958b8dfe7 as Anchor, $d7b44a6bfb86e793$export$86577199b2baf6c3 as anchorClassNames, $c2638d7be6bdca12$export$353f5b6fc5456de1 as Button, $348298fd4ccd7722$export$c25acd513dcc8062 as IconButton, $267cd022d92c6243$export$60332b2344f7fe41 as Card, $267cd022d92c6243$export$851de33184ecdac4 as CardBody, $267cd022d92c6243$export$e9897d434e0741ee as CardFooter, $267cd022d92c6243$export$5665775b26e26c5d as CardHeader, $267cd022d92c6243$export$474db65c3c394e1c as CardTitle, $4de59be9540e7045$export$48513f6b9f8ce62d as Checkbox, $3e8792480c5dc036$export$6c415d1fdae3dfdb as CodeBlock, $3e8792480c5dc036$export$7e83364d3e7fd36a as CodeBlockBody, $3e8792480c5dc036$export$1c41328978c69a88 as CodeBlockCode, $3e8792480c5dc036$export$2e9b808b8155db21 as CodeBlockCopyButton, $3e8792480c5dc036$export$2e996d1cfaa94c3d as CodeBlockExpanderButton, $3e8792480c5dc036$export$b351deb59183780 as CodeBlockHeader, $3e8792480c5dc036$export$b5654939a1e891d as CodeBlockTitle, $bcf58924b06fb166$export$6e62a5150605254a as fmtCode, $c58b35aa9fcfa4d0$export$63f5d3298ab11b24 as defaultMeta, $c58b35aa9fcfa4d0$export$2b83d7916142717 as parseMetastring, $3107245668823796$export$fa66e0e5413be530 as formatLanguageClassName, $3107245668823796$export$47c66070d6d6cd6d as isSupportedLanguage, $3107245668823796$export$dbb82c29aa7faca4 as parseLanguage, $3107245668823796$export$1c2c8674a5fbafd as supportedLanguages, $a4274013049f8f7f$export$a274e22fb40f762e as cx, $d95638fc63e2fe90$export$3ddf2d174ce01153 as Dialog, $d95638fc63e2fe90$export$dad7c95542bacce0 as DialogPortal, $d95638fc63e2fe90$export$bd1d06c79be19e17 as DialogOverlay, $d95638fc63e2fe90$export$2e1e1122cf0cba88 as DialogTrigger, $d95638fc63e2fe90$export$fba2fb7cd781b7ac as DialogClose, $d95638fc63e2fe90$export$b6d9565de1e068cf as DialogContent, $d95638fc63e2fe90$export$742513523b177e3b as DialogHeader, $d95638fc63e2fe90$export$5d20f2c38fcde41f as DialogBody, $d95638fc63e2fe90$export$7bbfb2d443473050 as DialogFooter, $d95638fc63e2fe90$export$16f7638e4a34b909 as DialogTitle, $d95638fc63e2fe90$export$94e94c2ec2c954d5 as DialogDescription, $a54417aeb05f1278$export$e44a253a59704894 as DropdownMenu, $a54417aeb05f1278$export$d2469213b3befba9 as DropdownMenuTrigger, $a54417aeb05f1278$export$6e76d93a37c01248 as DropdownMenuContent, $a54417aeb05f1278$export$ed97964d1871885d as DropdownMenuItem, $a54417aeb05f1278$export$53a69729da201fa9 as DropdownMenuCheckboxItem, $a54417aeb05f1278$export$e4f69b41b1637536 as DropdownMenuRadioItem, $a54417aeb05f1278$export$76e48c5b57f24495 as DropdownMenuLabel, $a54417aeb05f1278$export$da160178fd3bc7e9 as DropdownMenuSeparator, $a54417aeb05f1278$export$b1e098e2962e8df5 as DropdownMenuShortcut, $84b8ef66c3139332$export$f04a61298a47a40f as Icon, $be9526d49a216cc9$export$7f1bf47c7f50a6aa as InlineCode, $69de6bdb0e8d2083$export$f5b8910cec6cf069 as Input, $69de6bdb0e8d2083$export$a000a5208d0f14c1 as InputCapture, $750bb60d221b9046$export$b28585a458fee016 as PasswordInput, $1efa43e76774bcf1$export$c5be64db09f93414 as MediaObject, $1efa43e76774bcf1$export$a850f92726a1f836 as MediaObjectMedia, $1efa43e76774bcf1$export$8d93ffc9d5ebcf0c as MediaObjectContent, $e1568f28b56f66ee$export$5b6b19405a83ff9d as Popover, $e1568f28b56f66ee$export$7dacb05d26466c3 as PopoverTrigger, $e1568f28b56f66ee$export$d7e1f420b25549ff as PopoverContent, $b0b413c594e2809e$export$ef9b1a59e592288f as Select, $b0b413c594e2809e$export$c973a4b3cb86a03d as SelectContent, $b0b413c594e2809e$export$ee25a334c55de1f4 as SelectGroup, $b0b413c594e2809e$export$f67338d29bd972f8 as SelectLabel, $b0b413c594e2809e$export$13ef48a934230896 as SelectItem, $b0b413c594e2809e$export$eba4b1df07cb1d3 as SelectSeparator, $b0b413c594e2809e$export$3ac1e88a1c0b9f1 as SelectTrigger, $b0b413c594e2809e$export$e288731fd71264f0 as SelectValue, $0e4ef6b27c1ec376$export$1ff3c3f08ae963c0 as Separator, $de4859618f6880e3$export$a9bf29f8d87ebbee as Sheet, $de4859618f6880e3$export$8e574df6e3b8d781 as SheetBody, $de4859618f6880e3$export$99d85c8298ee6511 as SheetClose, $de4859618f6880e3$export$fe5ec5b76996e2d3 as SheetContent, $de4859618f6880e3$export$2ee64bd945b80e4a as SheetDescription, $de4859618f6880e3$export$1adeb0155503ee5a as SheetFooter, $de4859618f6880e3$export$de7da2aaa45f2eb5 as SheetHeader, $de4859618f6880e3$export$48dbb295cbd054d8 as SheetOverlay, $de4859618f6880e3$export$721c917f47f6cb as SheetPortal, $de4859618f6880e3$export$4bb009ae36731de9 as SheetTitle, $de4859618f6880e3$export$de69b9b0343a1903 as SheetTrigger, $53866fd1feac4bca$export$8f31e4c4a37b8e9c as Skeleton, $fd75fdf931689c59$export$54ec01a60f47d33d as Table, $fd75fdf931689c59$export$f850895b287ef28e as TableHeader, $fd75fdf931689c59$export$76ccd210b9029917 as TableBody, $fd75fdf931689c59$export$1f116082bba1f9a8 as TableFooter, $fd75fdf931689c59$export$2f4a7be4f0dcc2 as TableHead, $fd75fdf931689c59$export$b05581f4e764e162 as TableRow, $fd75fdf931689c59$export$1e4baea7053fc0e3 as TableCell, $fd75fdf931689c59$export$35468a455d619eb3 as TableCaption, $a6907629e3ef14e9$export$f5c9f3c2c4054eec as TextArea, $dda3493dd750e32f$export$af55aa65d73bedf7 as MantleThemeHeadContent, $dda3493dd750e32f$export$d8964aec282183a3 as ThemeProvider, $dda3493dd750e32f$export$6b08dcdbd4008308 as isTheme, $dda3493dd750e32f$export$1dca76bcd3720cbb as preventWrongThemeFlashScriptContent, $dda3493dd750e32f$export$bca14c5b3b88a9c9 as theme, $dda3493dd750e32f$export$9335dc9d919c3613 as useAppliedTheme, $dda3493dd750e32f$export$4132e7bcc6139686 as useInitialHtmlThemeProps, $dda3493dd750e32f$export$93d4e7f90805808f as useTheme, $380730b2f4c100d4$export$24c8fb0221e74d36 as PreloadFonts, $aae96005fa706805$export$28c660c63b792dea as Tooltip, $aae96005fa706805$export$8c610744efcf8a1d as TooltipTrigger, $aae96005fa706805$export$e9003e2be37ec060 as TooltipContent, $aae96005fa706805$export$f78649fb9ca566b8 as TooltipProvider};
|
|
2140
|
-
//# sourceMappingURL=index.js.map
|