@ngrok/mantle 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +60 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +356 -45
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,35 @@
|
|
|
1
|
-
import { ClassValue } from "clsx";
|
|
2
|
-
import { AnchorHTMLAttributes, ButtonHTMLAttributes, HTMLAttributes, CSSProperties, InputHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes, TextareaHTMLAttributes, PropsWithChildren } from "react";
|
|
3
1
|
import { VariantProps as _VariantProps1 } from "class-variance-authority";
|
|
2
|
+
import { ClassValue } from "clsx";
|
|
3
|
+
import { HTMLAttributes, AnchorHTMLAttributes, ButtonHTMLAttributes, CSSProperties, InputHTMLAttributes, ComponentPropsWithoutRef, SelectHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes, TextareaHTMLAttributes, PropsWithChildren } from "react";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
5
6
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
6
7
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
7
8
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
9
|
+
/**
|
|
10
|
+
* Makes all properties in an object non-nullable, recursively.
|
|
11
|
+
*/
|
|
12
|
+
type DeepNonNullable<Type> = {
|
|
13
|
+
[Property in keyof Type]-?: Type[Property] & {};
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Variant props that are optional and cannot be `null`.
|
|
17
|
+
*
|
|
18
|
+
* Using VariantProps directly from CVA produces that can be `null`, which is not what we want.
|
|
19
|
+
*/
|
|
20
|
+
type VariantProps<Variants extends (props?: Record<PropertyKey, unknown> | undefined) => string> = Partial<DeepNonNullable<_VariantProps1<Variants>>>;
|
|
8
21
|
/**
|
|
9
22
|
* Conditionally add Tailwind (and other) CSS classes.
|
|
10
23
|
*
|
|
11
24
|
* Allows for tailwind overrides in LTR-specificity-like order of applied classes.
|
|
12
25
|
*/
|
|
13
26
|
export function cx(...inputs: ClassValue[]): string;
|
|
27
|
+
export const Alert: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & Partial<import("types/src/deep-non-nullable").DeepNonNullable<import("class-variance-authority").VariantProps<(props?: ({
|
|
28
|
+
priority?: "default" | "success" | "danger" | "info" | "warning" | null | undefined;
|
|
29
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string>>> & import("react").RefAttributes<HTMLDivElement>>;
|
|
30
|
+
export const AlertContent: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
31
|
+
export const AlertTitle: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
32
|
+
export const AlertDescription: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
14
33
|
/**
|
|
15
34
|
* Utility type for adding the `asChild` boolean prop to a component.
|
|
16
35
|
*/
|
|
@@ -42,18 +61,6 @@ export const anchorClassNames: (className: string | undefined) => string;
|
|
|
42
61
|
* [`@remix-run/react` `<Link>`](https://remix.run/docs/en/main/components/link).
|
|
43
62
|
*/
|
|
44
63
|
export const Anchor: import("react").ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement> & WithAsChild & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
45
|
-
/**
|
|
46
|
-
* Makes all properties in an object non-nullable, recursively.
|
|
47
|
-
*/
|
|
48
|
-
type DeepNonNullable<Type> = {
|
|
49
|
-
[Property in keyof Type]-?: Type[Property] & {};
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Variant props that are optional and cannot be `null`.
|
|
53
|
-
*
|
|
54
|
-
* Using VariantProps directly from CVA produces that can be `null`, which is not what we want.
|
|
55
|
-
*/
|
|
56
|
-
type VariantProps<Variants extends (props?: Record<PropertyKey, unknown> | undefined) => string> = Partial<DeepNonNullable<_VariantProps1<Variants>>>;
|
|
57
64
|
declare const buttonVariants: (props?: ({
|
|
58
65
|
appearance?: "outline" | "solid" | "ghost" | null | undefined;
|
|
59
66
|
priority?: "default" | "muted" | "danger" | null | undefined;
|
|
@@ -186,6 +193,30 @@ type Meta = z.infer<typeof metaSchema>;
|
|
|
186
193
|
* CodeBlock components as props.
|
|
187
194
|
*/
|
|
188
195
|
export function parseMetastring(value: string | undefined): Meta;
|
|
196
|
+
export const DropdownMenu: import("react").FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
197
|
+
export const DropdownMenuTrigger: import("react").ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
198
|
+
export const DropdownMenuGroup: import("react").ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
199
|
+
export const DropdownMenuPortal: import("react").FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
200
|
+
export const DropdownMenuSub: import("react").FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
201
|
+
export const DropdownMenuRadioGroup: import("react").ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
202
|
+
export const DropdownMenuSubTrigger: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
203
|
+
inset?: boolean | undefined;
|
|
204
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
205
|
+
export const DropdownMenuSubContent: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
206
|
+
export const DropdownMenuContent: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
207
|
+
export const DropdownMenuItem: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
208
|
+
inset?: boolean | undefined;
|
|
209
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
210
|
+
export const DropdownMenuCheckboxItem: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
211
|
+
export const DropdownMenuRadioItem: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
212
|
+
export const DropdownMenuLabel: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
213
|
+
inset?: boolean | undefined;
|
|
214
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
215
|
+
export const DropdownMenuSeparator: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
216
|
+
export const DropdownMenuShortcut: {
|
|
217
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
218
|
+
displayName: string;
|
|
219
|
+
};
|
|
189
220
|
/**
|
|
190
221
|
* A component to render inline code.
|
|
191
222
|
*/
|
|
@@ -245,10 +276,17 @@ export const MediaObjectMedia: import("react").ForwardRefExoticComponent<HTMLAtt
|
|
|
245
276
|
* The container for the content slot of a media object.
|
|
246
277
|
*/
|
|
247
278
|
export const MediaObjectContent: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
279
|
+
export type PasswordInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "autoComplete" | "type"> & {
|
|
280
|
+
autoComplete?: AutoComplete;
|
|
281
|
+
};
|
|
282
|
+
export const PasswordInput: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "autoComplete"> & {
|
|
283
|
+
autoComplete?: AutoComplete | undefined;
|
|
284
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
248
285
|
export const Popover: import("react").FC<PopoverPrimitive.PopoverProps>;
|
|
249
286
|
export const PopoverTrigger: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
250
287
|
export const PopoverContent: import("react").ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
251
|
-
|
|
288
|
+
type SelectProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Root> & Pick<SelectHTMLAttributes<HTMLSelectElement>, "aria-invalid">;
|
|
289
|
+
export const Select: ({ children, ...props }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
252
290
|
export const SelectGroup: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
253
291
|
export const SelectValue: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
254
292
|
export const SelectTrigger: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -270,6 +308,13 @@ export const SheetFooter: ({ className, ...props }: HTMLAttributes<HTMLDivElemen
|
|
|
270
308
|
export const SheetTitle: import("react").ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
271
309
|
export const SheetDescription: import("react").ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
272
310
|
type Props = Exclude<HTMLAttributes<HTMLDivElement>, "children">;
|
|
311
|
+
/**
|
|
312
|
+
* A skeleton is a placeholder for content that is loading.
|
|
313
|
+
* By using a skeleton, you can give the user an idea of what the content will
|
|
314
|
+
* look like and reduce the perceived loading time and CLS (Cumulative Layout Shift).
|
|
315
|
+
*
|
|
316
|
+
* @note Default height is 1rem.
|
|
317
|
+
*/
|
|
273
318
|
export function Skeleton({ className, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
274
319
|
export const Table: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLTableElement> & import("react").RefAttributes<HTMLTableElement>>;
|
|
275
320
|
export const TableHeader: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & import("react").RefAttributes<HTMLTableSectionElement>>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;;;;;;AAAA;;GAEG;AACH,qBAA4B,IAAI,IAAI;KAClC,QAAQ,IAAI,MAAM,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE;CAC/C,CAAC;ACFF;;;;GAIG;AACH,kBAAyB,QAAQ,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,WAAW,EAAE,OAAO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ACH,0BAA0B,CAAC,OAAO,KAAK,EAAE,QAAQ,EAAE,CAAC,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC;AA6B3E,iCAA0B,iBAAiB,GAAG;IAC7C,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,8BAAuB,EAAE,QAAQ,EAAE,YAAuB,EAAE,UAAgC,EAAE,EAAE,kBAAkB,2CAmDjH;AAED;;;;GAIG;AACH,+CAMC;AAkED,oDAA6C,EAC5C,YAAuB,EACvB,UAAgC,GAChC,EAAE;IACF,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB,UA6BA;AAED;;;GAGG;AACH,OAAA,MAAM;;;6CAYL,CAAC;AEzQF,OAAA,MAAM,2FAA0B,CAAC;AAEjC,OAAA,MAAM,2EAAc,CAAC;AAErB,OAAA,MAAM,mKAAwB,CAAC;AAE/B,OAAA,MAAM,6NAYL,CAAC","sources":["components/components/types/src/deep-non-nullable.ts","components/components/types/src/variant-props.ts","components/components/core/src/cx.ts","components/components/core/index.ts","components/components/alert/src/alert.tsx","components/components/alert/index.tsx","components/components/types/src/as-child.ts","components/components/anchor/src/anchor.tsx","components/components/anchor/index.tsx","components/components/button/src/button.tsx","components/components/button/index.tsx","components/components/card/src/card.tsx","components/components/card/index.tsx","components/components/types/src/with-style-props.ts","components/components/code-block/src/line-numbers.ts","components/components/code-block/src/supported-languages.ts","components/components/code-block/src/code-block.tsx","components/components/code-block/src/code.ts","components/components/code-block/src/parse-metastring.ts","components/components/code-block/index.tsx","components/components/dropdown-menu/src/dropdown-menu.tsx","components/components/dropdown-menu/index.tsx","components/components/inline-code/src/inline-code.tsx","components/components/inline-code/index.tsx","components/components/input/src/types.ts","components/components/input/src/input.tsx","components/components/input/index.tsx","components/components/media-object/src/media-object.tsx","components/components/media-object/index.tsx","components/components/password-input/src/password-input.tsx","components/components/password-input/index.tsx","components/components/popover/src/popover.tsx","components/components/popover/index.tsx","components/components/select/src/select.tsx","components/components/select/index.tsx","components/components/sheet/src/sheet.tsx","components/components/sheet/index.tsx","components/components/skeleton/src/skeleton.tsx","components/components/skeleton/index.tsx","components/components/table/src/table.tsx","components/components/table/index.tsx","components/components/text-area/src/text-area.tsx","components/components/text-area/index.tsx","components/components/hooks/use-matches-media-query.tsx","components/components/theme-provider/src/theme-provider.tsx","components/components/theme-provider/index.tsx","components/components/tooltip/src/tooltip.tsx","components/components/tooltip/index.tsx","components/components/types/index.ts","components/components/index.tsx","components/index.tsx"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"export * from \"./alert\";\nexport * from \"./anchor\";\nexport * from \"./button\";\nexport * from \"./card\";\nexport * from \"./code-block\";\nexport * from \"./core\";\nexport * from \"./dropdown-menu\";\nexport * from \"./inline-code\";\nexport * from \"./input\";\nexport * from \"./media-object\";\nexport * from \"./password-input\";\nexport * from \"./popover\";\nexport * from \"./select\";\nexport * from \"./sheet\";\nexport * from \"./skeleton\";\nexport * from \"./table\";\nexport * from \"./text-area\";\nexport * from \"./theme-provider\";\nexport * from \"./tooltip\";\n\n// types exports\nexport * from \"./types\";\n"],"names":[],"version":3,"file":"index.d.ts.map"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {jsx as $hLlzK$jsx, jsxs as $hLlzK$jsxs, Fragment as $hLlzK$Fragment} from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {forwardRef as $hLlzK$forwardRef, createContext as $hLlzK$createContext, useState as $hLlzK$useState, useMemo as $hLlzK$useMemo, useRef as $hLlzK$useRef, useId as $hLlzK$useId, useContext as $hLlzK$useContext, useEffect as $hLlzK$useEffect} from "react";
|
|
2
|
+
import {cva as $hLlzK$cva} from "class-variance-authority";
|
|
3
|
+
import {forwardRef as $hLlzK$forwardRef, createContext as $hLlzK$createContext, useState as $hLlzK$useState, useMemo as $hLlzK$useMemo, useRef as $hLlzK$useRef, useId as $hLlzK$useId, useContext as $hLlzK$useContext, useEffect as $hLlzK$useEffect, useCallback as $hLlzK$useCallback, useSyncExternalStore as $hLlzK$useSyncExternalStore} from "react";
|
|
4
4
|
import {clsx as $hLlzK$clsx} from "clsx";
|
|
5
5
|
import {twMerge as $hLlzK$twMerge} from "tailwind-merge";
|
|
6
|
-
import {
|
|
6
|
+
import {Slot as $hLlzK$Slot} from "@radix-ui/react-slot";
|
|
7
7
|
import $hLlzK$prismjs from "prismjs";
|
|
8
8
|
import "prismjs/components/prism-bash.js";
|
|
9
9
|
import "prismjs/components/prism-jsx.js";
|
|
@@ -14,21 +14,28 @@ import {Copy as $hLlzK$Copy} from "@phosphor-icons/react/Copy";
|
|
|
14
14
|
import {useCopyToClipboard as $hLlzK$useCopyToClipboard} from "@uidotdev/usehooks";
|
|
15
15
|
import $hLlzK$tinyinvariant from "tiny-invariant";
|
|
16
16
|
import {z as $hLlzK$z} from "zod";
|
|
17
|
-
import {
|
|
17
|
+
import {CaretRight as $hLlzK$CaretRight} from "@phosphor-icons/react/CaretRight";
|
|
18
|
+
import {Circle as $hLlzK$Circle} from "@phosphor-icons/react/Circle";
|
|
19
|
+
import {Root as $hLlzK$Root, Trigger as $hLlzK$Trigger, Group as $hLlzK$Group, Portal as $hLlzK$Portal, Sub as $hLlzK$Sub, RadioGroup as $hLlzK$RadioGroup, SubTrigger as $hLlzK$SubTrigger, SubContent as $hLlzK$SubContent, Content as $hLlzK$Content, Item as $hLlzK$Item, CheckboxItem as $hLlzK$CheckboxItem, ItemIndicator as $hLlzK$ItemIndicator, RadioItem as $hLlzK$RadioItem, Label as $hLlzK$Label, Separator as $hLlzK$Separator} from "@radix-ui/react-dropdown-menu";
|
|
20
|
+
import {Eye as $hLlzK$Eye} from "@phosphor-icons/react/Eye";
|
|
21
|
+
import {EyeClosed as $hLlzK$EyeClosed} from "@phosphor-icons/react/EyeClosed";
|
|
22
|
+
import {Root as $hLlzK$Root1, Trigger as $hLlzK$Trigger1, Portal as $hLlzK$Portal1, Content as $hLlzK$Content1} from "@radix-ui/react-popover";
|
|
18
23
|
import {CaretUp as $hLlzK$CaretUp} from "@phosphor-icons/react/CaretUp";
|
|
19
|
-
import {Root as $hLlzK$
|
|
24
|
+
import {Root as $hLlzK$Root2, Group as $hLlzK$Group1, 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$Label1, Item as $hLlzK$Item1, ItemIndicator as $hLlzK$ItemIndicator1, ItemText as $hLlzK$ItemText, Separator as $hLlzK$Separator1} from "@radix-ui/react-select";
|
|
20
25
|
import {X as $hLlzK$X} from "@phosphor-icons/react/X";
|
|
21
|
-
import {Root as $hLlzK$
|
|
22
|
-
import {Provider as $hLlzK$Provider, Root as $hLlzK$
|
|
26
|
+
import {Root as $hLlzK$Root3, Trigger as $hLlzK$Trigger3, Close as $hLlzK$Close, Portal as $hLlzK$Portal3, Overlay as $hLlzK$Overlay, Content as $hLlzK$Content3, Title as $hLlzK$Title, Description as $hLlzK$Description} from "@radix-ui/react-dialog";
|
|
27
|
+
import {Provider as $hLlzK$Provider, Root as $hLlzK$Root4, Trigger as $hLlzK$Trigger4, Content as $hLlzK$Content4} from "@radix-ui/react-tooltip";
|
|
23
28
|
|
|
24
29
|
|
|
25
30
|
function $parcel$export(e, n, v, s) {
|
|
26
31
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
27
32
|
}
|
|
28
|
-
var $
|
|
33
|
+
var $692b8643d76d8987$exports = {};
|
|
29
34
|
|
|
30
|
-
$parcel$export($
|
|
31
|
-
$parcel$export($
|
|
35
|
+
$parcel$export($692b8643d76d8987$exports, "Alert", function () { return $70398adbd69bc3b3$export$caec2af78bcc877f; });
|
|
36
|
+
$parcel$export($692b8643d76d8987$exports, "AlertContent", function () { return $70398adbd69bc3b3$export$7738e9160ff0021e; });
|
|
37
|
+
$parcel$export($692b8643d76d8987$exports, "AlertTitle", function () { return $70398adbd69bc3b3$export$4a7253439a300753; });
|
|
38
|
+
$parcel$export($692b8643d76d8987$exports, "AlertDescription", function () { return $70398adbd69bc3b3$export$d4feae172fccda11; });
|
|
32
39
|
|
|
33
40
|
|
|
34
41
|
|
|
@@ -39,6 +46,58 @@ function $a4274013049f8f7f$export$a274e22fb40f762e(...inputs) {
|
|
|
39
46
|
}
|
|
40
47
|
|
|
41
48
|
|
|
49
|
+
const $70398adbd69bc3b3$var$alertVariants = (0, $hLlzK$cva)("relative w-full rounded-lg border px-4 py-3 text-sm flex gap-4", {
|
|
50
|
+
variants: {
|
|
51
|
+
priority: {
|
|
52
|
+
danger: "border-red-600 text-red-600 bg-red-50",
|
|
53
|
+
default: "bg-white text-gray-900 border-black",
|
|
54
|
+
info: "border-blue-600 bg-blue-50 text-blue-600",
|
|
55
|
+
success: "border-green-600 bg-green-50 text-green-600",
|
|
56
|
+
warning: "border-amber-600 bg-amber-50 text-amber-600"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
defaultVariants: {
|
|
60
|
+
priority: "default"
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
const $70398adbd69bc3b3$export$caec2af78bcc877f = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, priority: priority, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
64
|
+
ref: ref,
|
|
65
|
+
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)($70398adbd69bc3b3$var$alertVariants({
|
|
66
|
+
priority: priority
|
|
67
|
+
}), className),
|
|
68
|
+
...props
|
|
69
|
+
}));
|
|
70
|
+
$70398adbd69bc3b3$export$caec2af78bcc877f.displayName = "Alert";
|
|
71
|
+
const $70398adbd69bc3b3$export$7738e9160ff0021e = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
72
|
+
ref: ref,
|
|
73
|
+
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("min-w-0 flex-1", className),
|
|
74
|
+
...props
|
|
75
|
+
}));
|
|
76
|
+
$70398adbd69bc3b3$export$7738e9160ff0021e.displayName = "AlertContent";
|
|
77
|
+
const $70398adbd69bc3b3$export$4a7253439a300753 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("h5", {
|
|
78
|
+
ref: ref,
|
|
79
|
+
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("mb-1 font-medium leading-none tracking-tight", className),
|
|
80
|
+
...props
|
|
81
|
+
}));
|
|
82
|
+
$70398adbd69bc3b3$export$4a7253439a300753.displayName = "AlertTitle";
|
|
83
|
+
const $70398adbd69bc3b3$export$d4feae172fccda11 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
84
|
+
ref: ref,
|
|
85
|
+
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("text-sm [&_p]:leading-relaxed", className),
|
|
86
|
+
...props
|
|
87
|
+
}));
|
|
88
|
+
$70398adbd69bc3b3$export$d4feae172fccda11.displayName = "AlertDescription";
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
var $814757e656175971$exports = {};
|
|
94
|
+
|
|
95
|
+
$parcel$export($814757e656175971$exports, "Anchor", function () { return $d7b44a6bfb86e793$export$b688253958b8dfe7; });
|
|
96
|
+
$parcel$export($814757e656175971$exports, "anchorClassNames", function () { return $d7b44a6bfb86e793$export$86577199b2baf6c3; });
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
42
101
|
const $d7b44a6bfb86e793$export$86577199b2baf6c3 = (className)=>(0, $a4274013049f8f7f$export$a274e22fb40f762e)("text-blue-600 focus-visible:ring-blue-600/25 cursor-pointer rounded bg-transparent focus:outline-none focus-visible:ring hover:underline", className);
|
|
43
102
|
/**
|
|
44
103
|
* Fundamental component for rendering links to external addresses.
|
|
@@ -578,6 +637,130 @@ $parcel$export($9aef41c2b2e4cb89$exports, "cx", function () { return $a427401304
|
|
|
578
637
|
|
|
579
638
|
|
|
580
639
|
|
|
640
|
+
var $b9dc47a206b82e7f$exports = {};
|
|
641
|
+
|
|
642
|
+
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenu", function () { return $a54417aeb05f1278$export$e44a253a59704894; });
|
|
643
|
+
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuTrigger", function () { return $a54417aeb05f1278$export$d2469213b3befba9; });
|
|
644
|
+
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuContent", function () { return $a54417aeb05f1278$export$6e76d93a37c01248; });
|
|
645
|
+
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuItem", function () { return $a54417aeb05f1278$export$ed97964d1871885d; });
|
|
646
|
+
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuCheckboxItem", function () { return $a54417aeb05f1278$export$53a69729da201fa9; });
|
|
647
|
+
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuRadioItem", function () { return $a54417aeb05f1278$export$e4f69b41b1637536; });
|
|
648
|
+
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuLabel", function () { return $a54417aeb05f1278$export$76e48c5b57f24495; });
|
|
649
|
+
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuSeparator", function () { return $a54417aeb05f1278$export$da160178fd3bc7e9; });
|
|
650
|
+
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuShortcut", function () { return $a54417aeb05f1278$export$b1e098e2962e8df5; });
|
|
651
|
+
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuGroup", function () { return $a54417aeb05f1278$export$246bebaba3a2f70e; });
|
|
652
|
+
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuPortal", function () { return $a54417aeb05f1278$export$cd369b4d4d54efc9; });
|
|
653
|
+
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuSub", function () { return $a54417aeb05f1278$export$2f307d81a64f5442; });
|
|
654
|
+
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuSubContent", function () { return $a54417aeb05f1278$export$f34ec8bc2482cc5f; });
|
|
655
|
+
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuSubTrigger", function () { return $a54417aeb05f1278$export$21dcb7ec56f874cf; });
|
|
656
|
+
$parcel$export($b9dc47a206b82e7f$exports, "DropdownMenuRadioGroup", function () { return $a54417aeb05f1278$export$3323ad73d55f587e; });
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
const $a54417aeb05f1278$export$e44a253a59704894 = $hLlzK$Root;
|
|
665
|
+
const $a54417aeb05f1278$export$d2469213b3befba9 = $hLlzK$Trigger;
|
|
666
|
+
const $a54417aeb05f1278$export$246bebaba3a2f70e = $hLlzK$Group;
|
|
667
|
+
const $a54417aeb05f1278$export$cd369b4d4d54efc9 = $hLlzK$Portal;
|
|
668
|
+
const $a54417aeb05f1278$export$2f307d81a64f5442 = $hLlzK$Sub;
|
|
669
|
+
const $a54417aeb05f1278$export$3323ad73d55f587e = $hLlzK$RadioGroup;
|
|
670
|
+
const $a54417aeb05f1278$export$21dcb7ec56f874cf = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, inset: inset, children: children, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsxs)($hLlzK$SubTrigger, {
|
|
671
|
+
ref: ref,
|
|
672
|
+
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent", inset && "pl-8", className),
|
|
673
|
+
...props,
|
|
674
|
+
children: [
|
|
675
|
+
children,
|
|
676
|
+
/*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$CaretRight), {
|
|
677
|
+
className: "ml-auto h-4 w-4",
|
|
678
|
+
weight: "bold"
|
|
679
|
+
})
|
|
680
|
+
]
|
|
681
|
+
}));
|
|
682
|
+
$a54417aeb05f1278$export$21dcb7ec56f874cf.displayName = $hLlzK$SubTrigger.displayName;
|
|
683
|
+
const $a54417aeb05f1278$export$f34ec8bc2482cc5f = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$SubContent, {
|
|
684
|
+
ref: ref,
|
|
685
|
+
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-white p-1 text-popover-foreground shadow-lg 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-[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", className),
|
|
686
|
+
...props
|
|
687
|
+
}));
|
|
688
|
+
$a54417aeb05f1278$export$f34ec8bc2482cc5f.displayName = $hLlzK$SubContent.displayName;
|
|
689
|
+
const $a54417aeb05f1278$export$6e76d93a37c01248 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, sideOffset: sideOffset = 4, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Portal, {
|
|
690
|
+
children: /*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Content, {
|
|
691
|
+
ref: ref,
|
|
692
|
+
sideOffset: sideOffset,
|
|
693
|
+
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[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", className),
|
|
694
|
+
...props
|
|
695
|
+
})
|
|
696
|
+
}));
|
|
697
|
+
$a54417aeb05f1278$export$6e76d93a37c01248.displayName = $hLlzK$Content.displayName;
|
|
698
|
+
const $a54417aeb05f1278$export$ed97964d1871885d = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, inset: inset, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Item, {
|
|
699
|
+
ref: ref,
|
|
700
|
+
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", inset && "pl-8", className),
|
|
701
|
+
...props
|
|
702
|
+
}));
|
|
703
|
+
$a54417aeb05f1278$export$ed97964d1871885d.displayName = $hLlzK$Item.displayName;
|
|
704
|
+
const $a54417aeb05f1278$export$53a69729da201fa9 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, checked: checked, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsxs)($hLlzK$CheckboxItem, {
|
|
705
|
+
ref: ref,
|
|
706
|
+
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className),
|
|
707
|
+
checked: checked,
|
|
708
|
+
...props,
|
|
709
|
+
children: [
|
|
710
|
+
/*#__PURE__*/ (0, $hLlzK$jsx)("span", {
|
|
711
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
712
|
+
children: /*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$ItemIndicator, {
|
|
713
|
+
children: /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$Check), {
|
|
714
|
+
className: "h-4 w-4",
|
|
715
|
+
weight: "bold"
|
|
716
|
+
})
|
|
717
|
+
})
|
|
718
|
+
}),
|
|
719
|
+
children
|
|
720
|
+
]
|
|
721
|
+
}));
|
|
722
|
+
$a54417aeb05f1278$export$53a69729da201fa9.displayName = $hLlzK$CheckboxItem.displayName;
|
|
723
|
+
const $a54417aeb05f1278$export$e4f69b41b1637536 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsxs)($hLlzK$RadioItem, {
|
|
724
|
+
ref: ref,
|
|
725
|
+
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className),
|
|
726
|
+
...props,
|
|
727
|
+
children: [
|
|
728
|
+
/*#__PURE__*/ (0, $hLlzK$jsx)("span", {
|
|
729
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
730
|
+
children: /*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$ItemIndicator, {
|
|
731
|
+
children: /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$Circle), {
|
|
732
|
+
className: "h-2 w-2",
|
|
733
|
+
weight: "fill"
|
|
734
|
+
})
|
|
735
|
+
})
|
|
736
|
+
}),
|
|
737
|
+
children
|
|
738
|
+
]
|
|
739
|
+
}));
|
|
740
|
+
$a54417aeb05f1278$export$e4f69b41b1637536.displayName = $hLlzK$RadioItem.displayName;
|
|
741
|
+
const $a54417aeb05f1278$export$76e48c5b57f24495 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, inset: inset, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Label, {
|
|
742
|
+
ref: ref,
|
|
743
|
+
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className),
|
|
744
|
+
...props
|
|
745
|
+
}));
|
|
746
|
+
$a54417aeb05f1278$export$76e48c5b57f24495.displayName = $hLlzK$Label.displayName;
|
|
747
|
+
const $a54417aeb05f1278$export$da160178fd3bc7e9 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Separator, {
|
|
748
|
+
ref: ref,
|
|
749
|
+
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("-mx-1 my-1 h-px bg-muted", className),
|
|
750
|
+
...props
|
|
751
|
+
}));
|
|
752
|
+
$a54417aeb05f1278$export$da160178fd3bc7e9.displayName = $hLlzK$Separator.displayName;
|
|
753
|
+
const $a54417aeb05f1278$export$b1e098e2962e8df5 = ({ className: className, ...props })=>{
|
|
754
|
+
return /*#__PURE__*/ (0, $hLlzK$jsx)("span", {
|
|
755
|
+
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("ml-auto text-xs tracking-widest opacity-60", className),
|
|
756
|
+
...props
|
|
757
|
+
});
|
|
758
|
+
};
|
|
759
|
+
$a54417aeb05f1278$export$b1e098e2962e8df5.displayName = "DropdownMenuShortcut";
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
|
|
581
764
|
var $49d620f73f88e7de$exports = {};
|
|
582
765
|
|
|
583
766
|
$parcel$export($49d620f73f88e7de$exports, "InlineCode", function () { return $be9526d49a216cc9$export$7f1bf47c7f50a6aa; });
|
|
@@ -680,6 +863,59 @@ $1efa43e76774bcf1$export$8d93ffc9d5ebcf0c.displayName = "MediaObjectContent";
|
|
|
680
863
|
|
|
681
864
|
|
|
682
865
|
|
|
866
|
+
var $b459be25b0c516ed$exports = {};
|
|
867
|
+
|
|
868
|
+
$parcel$export($b459be25b0c516ed$exports, "PasswordInput", function () { return $66e13ce5ec226639$export$b28585a458fee016; });
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
const $66e13ce5ec226639$var$passwordInputVariants = (0, $hLlzK$cva)("flex h-11 sm:h-9 w-full rounded-md border bg-white dark:bg-gray-50 px-3 py-2 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-4 disabled:pointer-events-none disabled:opacity-50 sm:text-sm", {
|
|
876
|
+
variants: {
|
|
877
|
+
state: {
|
|
878
|
+
default: "text-gray-900 border-gray-300 placeholder:text-gray-400 focus:border-blue-600 focus:ring-blue-500/25",
|
|
879
|
+
danger: "border-red-600 focus:border-red-600 focus:ring-red-500/25"
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
defaultVariants: {
|
|
883
|
+
state: "default"
|
|
884
|
+
}
|
|
885
|
+
});
|
|
886
|
+
const $66e13ce5ec226639$export$b28585a458fee016 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, style: style, ...inputProps }, ref)=>{
|
|
887
|
+
const [showPassword, setShowPassword] = (0, $hLlzK$useState)(false);
|
|
888
|
+
const type = showPassword ? "text" : "password";
|
|
889
|
+
const state = inputProps["aria-invalid"] ? "danger" : "default";
|
|
890
|
+
return /*#__PURE__*/ (0, $hLlzK$jsxs)("div", {
|
|
891
|
+
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)($66e13ce5ec226639$var$passwordInputVariants({
|
|
892
|
+
state: state
|
|
893
|
+
}), className),
|
|
894
|
+
style: style,
|
|
895
|
+
children: [
|
|
896
|
+
/*#__PURE__*/ (0, $hLlzK$jsx)("input", {
|
|
897
|
+
ref: ref,
|
|
898
|
+
className: "m-0 flex-1 rounded bg-transparent p-0 focus:outline-none",
|
|
899
|
+
type: type,
|
|
900
|
+
...inputProps
|
|
901
|
+
}),
|
|
902
|
+
/*#__PURE__*/ (0, $hLlzK$jsx)("button", {
|
|
903
|
+
type: "button",
|
|
904
|
+
tabIndex: -1,
|
|
905
|
+
className: "ml-1 cursor-pointer bg-inherit p-0 text-size-inherit text-gray-600 hover:text-gray-900",
|
|
906
|
+
onClick: ()=>{
|
|
907
|
+
setShowPassword((s)=>!s);
|
|
908
|
+
},
|
|
909
|
+
children: showPassword ? /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$Eye), {}) : /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$EyeClosed), {})
|
|
910
|
+
})
|
|
911
|
+
]
|
|
912
|
+
});
|
|
913
|
+
});
|
|
914
|
+
$66e13ce5ec226639$export$b28585a458fee016.displayName = "PasswordInput";
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
|
|
683
919
|
var $c20827da6ac8f3e9$exports = {};
|
|
684
920
|
|
|
685
921
|
$parcel$export($c20827da6ac8f3e9$exports, "Popover", function () { return $e1568f28b56f66ee$export$5b6b19405a83ff9d; });
|
|
@@ -689,10 +925,10 @@ $parcel$export($c20827da6ac8f3e9$exports, "PopoverContent", function () { return
|
|
|
689
925
|
|
|
690
926
|
|
|
691
927
|
|
|
692
|
-
const $e1568f28b56f66ee$export$5b6b19405a83ff9d = $hLlzK$
|
|
693
|
-
const $e1568f28b56f66ee$export$7dacb05d26466c3 = $hLlzK$
|
|
694
|
-
const $e1568f28b56f66ee$export$d7e1f420b25549ff = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, align: align = "center", sideOffset: sideOffset = 4, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$
|
|
695
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$
|
|
928
|
+
const $e1568f28b56f66ee$export$5b6b19405a83ff9d = $hLlzK$Root1;
|
|
929
|
+
const $e1568f28b56f66ee$export$7dacb05d26466c3 = $hLlzK$Trigger1;
|
|
930
|
+
const $e1568f28b56f66ee$export$d7e1f420b25549ff = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, align: align = "center", sideOffset: sideOffset = 4, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Portal1, {
|
|
931
|
+
children: /*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Content1, {
|
|
696
932
|
ref: ref,
|
|
697
933
|
align: align,
|
|
698
934
|
sideOffset: sideOffset,
|
|
@@ -700,7 +936,7 @@ const $e1568f28b56f66ee$export$d7e1f420b25549ff = /*#__PURE__*/ (0, $hLlzK$forwa
|
|
|
700
936
|
...props
|
|
701
937
|
})
|
|
702
938
|
}));
|
|
703
|
-
$e1568f28b56f66ee$export$d7e1f420b25549ff.displayName = $hLlzK$
|
|
939
|
+
$e1568f28b56f66ee$export$d7e1f420b25549ff.displayName = $hLlzK$Content1.displayName;
|
|
704
940
|
|
|
705
941
|
|
|
706
942
|
|
|
@@ -722,13 +958,42 @@ $parcel$export($08d8b7c38a500c5a$exports, "SelectValue", function () { return $b
|
|
|
722
958
|
|
|
723
959
|
|
|
724
960
|
|
|
725
|
-
|
|
726
|
-
const $b0b413c594e2809e$
|
|
961
|
+
|
|
962
|
+
const $b0b413c594e2809e$var$SelectAriaInvalidContext = /*#__PURE__*/ (0, $hLlzK$createContext)(undefined);
|
|
963
|
+
const $b0b413c594e2809e$export$ef9b1a59e592288f = ({ children: children, ...props })=>{
|
|
964
|
+
return /*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Root2, {
|
|
965
|
+
...props,
|
|
966
|
+
children: /*#__PURE__*/ (0, $hLlzK$jsx)($b0b413c594e2809e$var$SelectAriaInvalidContext.Provider, {
|
|
967
|
+
value: props["aria-invalid"],
|
|
968
|
+
children: children
|
|
969
|
+
})
|
|
970
|
+
});
|
|
971
|
+
};
|
|
972
|
+
const $b0b413c594e2809e$export$ee25a334c55de1f4 = $hLlzK$Group1;
|
|
727
973
|
const $b0b413c594e2809e$export$e288731fd71264f0 = $hLlzK$Value;
|
|
728
|
-
const $b0b413c594e2809e$
|
|
974
|
+
const $b0b413c594e2809e$var$selectTriggerVariants = (0, $hLlzK$cva)("flex h-11 w-full items-center justify-between rounded-md border bg-white px-3 py-2 placeholder:text-gray-300 hover:bg-gray-500/5 focus:outline-none focus:ring-4 disabled:pointer-events-none disabled:opacity-50 dark:bg-gray-50 dark:hover:bg-gray-500/5 sm:h-9 sm:text-sm [&>span]:line-clamp-1 [&>span]:text-left", {
|
|
975
|
+
variants: {
|
|
976
|
+
state: {
|
|
977
|
+
danger: "border-red-600 focus:border-red-600 focus:ring-red-500/25",
|
|
978
|
+
default: "text-gray-900 border-gray-300 placeholder:text-gray-400 focus:border-blue-600 focus:ring-blue-500/25"
|
|
979
|
+
}
|
|
980
|
+
},
|
|
981
|
+
defaultVariants: {
|
|
982
|
+
state: "default"
|
|
983
|
+
}
|
|
984
|
+
});
|
|
985
|
+
const $b0b413c594e2809e$export$3ac1e88a1c0b9f1 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, ...props }, ref)=>{
|
|
986
|
+
const ariaInvalidContext = (0, $hLlzK$useContext)($b0b413c594e2809e$var$SelectAriaInvalidContext);
|
|
987
|
+
var _props_ariainvalid;
|
|
988
|
+
const ariaInvalid = (_props_ariainvalid = props["aria-invalid"]) !== null && _props_ariainvalid !== void 0 ? _props_ariainvalid : ariaInvalidContext;
|
|
989
|
+
const state = ariaInvalid ? "danger" : "default";
|
|
990
|
+
return /*#__PURE__*/ (0, $hLlzK$jsxs)($hLlzK$Trigger2, {
|
|
729
991
|
ref: ref,
|
|
730
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)(
|
|
992
|
+
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)($b0b413c594e2809e$var$selectTriggerVariants({
|
|
993
|
+
state: state
|
|
994
|
+
}), className),
|
|
731
995
|
...props,
|
|
996
|
+
"aria-invalid": ariaInvalid,
|
|
732
997
|
children: [
|
|
733
998
|
children,
|
|
734
999
|
/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Icon, {
|
|
@@ -739,8 +1004,9 @@ const $b0b413c594e2809e$export$3ac1e88a1c0b9f1 = /*#__PURE__*/ (0, $hLlzK$forwar
|
|
|
739
1004
|
})
|
|
740
1005
|
})
|
|
741
1006
|
]
|
|
742
|
-
})
|
|
743
|
-
|
|
1007
|
+
});
|
|
1008
|
+
});
|
|
1009
|
+
$b0b413c594e2809e$export$3ac1e88a1c0b9f1.displayName = $hLlzK$Trigger2.displayName;
|
|
744
1010
|
const $b0b413c594e2809e$export$d8117927658af6d7 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$ScrollUpButton, {
|
|
745
1011
|
ref: ref,
|
|
746
1012
|
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("flex cursor-default items-center justify-center py-1", className),
|
|
@@ -761,8 +1027,8 @@ const $b0b413c594e2809e$export$ff951e476c12189 = /*#__PURE__*/ (0, $hLlzK$forwar
|
|
|
761
1027
|
})
|
|
762
1028
|
}));
|
|
763
1029
|
$b0b413c594e2809e$export$ff951e476c12189.displayName = $hLlzK$ScrollDownButton.displayName;
|
|
764
|
-
const $b0b413c594e2809e$export$c973a4b3cb86a03d = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, position: position = "popper", ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$
|
|
765
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsxs)($hLlzK$
|
|
1030
|
+
const $b0b413c594e2809e$export$c973a4b3cb86a03d = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, position: position = "popper", ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Portal2, {
|
|
1031
|
+
children: /*#__PURE__*/ (0, $hLlzK$jsxs)($hLlzK$Content2, {
|
|
766
1032
|
ref: ref,
|
|
767
1033
|
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-card text-popover-foreground shadow-lg 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-[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", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
|
|
768
1034
|
position: position,
|
|
@@ -777,21 +1043,21 @@ const $b0b413c594e2809e$export$c973a4b3cb86a03d = /*#__PURE__*/ (0, $hLlzK$forwa
|
|
|
777
1043
|
]
|
|
778
1044
|
})
|
|
779
1045
|
}));
|
|
780
|
-
$b0b413c594e2809e$export$c973a4b3cb86a03d.displayName = $hLlzK$
|
|
781
|
-
const $b0b413c594e2809e$export$f67338d29bd972f8 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$
|
|
1046
|
+
$b0b413c594e2809e$export$c973a4b3cb86a03d.displayName = $hLlzK$Content2.displayName;
|
|
1047
|
+
const $b0b413c594e2809e$export$f67338d29bd972f8 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Label1, {
|
|
782
1048
|
ref: ref,
|
|
783
1049
|
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("px-2 py-1.5 text-sm font-semibold", className),
|
|
784
1050
|
...props
|
|
785
1051
|
}));
|
|
786
|
-
$b0b413c594e2809e$export$f67338d29bd972f8.displayName = $hLlzK$
|
|
787
|
-
const $b0b413c594e2809e$export$13ef48a934230896 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsxs)($hLlzK$
|
|
1052
|
+
$b0b413c594e2809e$export$f67338d29bd972f8.displayName = $hLlzK$Label1.displayName;
|
|
1053
|
+
const $b0b413c594e2809e$export$13ef48a934230896 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, children: children, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsxs)($hLlzK$Item1, {
|
|
788
1054
|
ref: ref,
|
|
789
1055
|
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-blue-600 focus:text-white data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className),
|
|
790
1056
|
...props,
|
|
791
1057
|
children: [
|
|
792
1058
|
/*#__PURE__*/ (0, $hLlzK$jsx)("span", {
|
|
793
1059
|
className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
794
|
-
children: /*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$
|
|
1060
|
+
children: /*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$ItemIndicator1, {
|
|
795
1061
|
children: /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$Check), {
|
|
796
1062
|
className: "h-4 w-4",
|
|
797
1063
|
weight: "bold"
|
|
@@ -803,13 +1069,13 @@ const $b0b413c594e2809e$export$13ef48a934230896 = /*#__PURE__*/ (0, $hLlzK$forwa
|
|
|
803
1069
|
})
|
|
804
1070
|
]
|
|
805
1071
|
}));
|
|
806
|
-
$b0b413c594e2809e$export$13ef48a934230896.displayName = $hLlzK$
|
|
807
|
-
const $b0b413c594e2809e$export$eba4b1df07cb1d3 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$
|
|
1072
|
+
$b0b413c594e2809e$export$13ef48a934230896.displayName = $hLlzK$Item1.displayName;
|
|
1073
|
+
const $b0b413c594e2809e$export$eba4b1df07cb1d3 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Separator1, {
|
|
808
1074
|
ref: ref,
|
|
809
1075
|
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("-mx-1 my-1 h-px bg-muted", className),
|
|
810
1076
|
...props
|
|
811
1077
|
}));
|
|
812
|
-
$b0b413c594e2809e$export$eba4b1df07cb1d3.displayName = $hLlzK$
|
|
1078
|
+
$b0b413c594e2809e$export$eba4b1df07cb1d3.displayName = $hLlzK$Separator1.displayName;
|
|
813
1079
|
|
|
814
1080
|
|
|
815
1081
|
|
|
@@ -833,10 +1099,10 @@ $parcel$export($96ca09627b32042e$exports, "SheetTrigger", function () { return $
|
|
|
833
1099
|
|
|
834
1100
|
|
|
835
1101
|
|
|
836
|
-
const $de4859618f6880e3$export$a9bf29f8d87ebbee = $hLlzK$
|
|
837
|
-
const $de4859618f6880e3$export$de69b9b0343a1903 = $hLlzK$
|
|
1102
|
+
const $de4859618f6880e3$export$a9bf29f8d87ebbee = $hLlzK$Root3;
|
|
1103
|
+
const $de4859618f6880e3$export$de69b9b0343a1903 = $hLlzK$Trigger3;
|
|
838
1104
|
const $de4859618f6880e3$export$99d85c8298ee6511 = $hLlzK$Close;
|
|
839
|
-
const $de4859618f6880e3$export$721c917f47f6cb = $hLlzK$
|
|
1105
|
+
const $de4859618f6880e3$export$721c917f47f6cb = $hLlzK$Portal3;
|
|
840
1106
|
const $de4859618f6880e3$export$48dbb295cbd054d8 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)($hLlzK$Overlay, {
|
|
841
1107
|
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("fixed inset-0 z-50 bg-background/80 blur data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className),
|
|
842
1108
|
...props,
|
|
@@ -859,7 +1125,7 @@ const $de4859618f6880e3$var$SheetVariants = (0, $hLlzK$cva)("fixed z-50 flex fle
|
|
|
859
1125
|
const $de4859618f6880e3$export$fe5ec5b76996e2d3 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ side: side = "right", className: className, children: children, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsxs)($de4859618f6880e3$export$721c917f47f6cb, {
|
|
860
1126
|
children: [
|
|
861
1127
|
/*#__PURE__*/ (0, $hLlzK$jsx)($de4859618f6880e3$export$48dbb295cbd054d8, {}),
|
|
862
|
-
/*#__PURE__*/ (0, $hLlzK$jsxs)($hLlzK$
|
|
1128
|
+
/*#__PURE__*/ (0, $hLlzK$jsxs)($hLlzK$Content3, {
|
|
863
1129
|
ref: ref,
|
|
864
1130
|
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)($de4859618f6880e3$var$SheetVariants({
|
|
865
1131
|
side: side
|
|
@@ -883,7 +1149,7 @@ const $de4859618f6880e3$export$fe5ec5b76996e2d3 = /*#__PURE__*/ (0, $hLlzK$forwa
|
|
|
883
1149
|
})
|
|
884
1150
|
]
|
|
885
1151
|
}));
|
|
886
|
-
$de4859618f6880e3$export$fe5ec5b76996e2d3.displayName = $hLlzK$
|
|
1152
|
+
$de4859618f6880e3$export$fe5ec5b76996e2d3.displayName = $hLlzK$Content3.displayName;
|
|
887
1153
|
const $de4859618f6880e3$export$8e574df6e3b8d781 = ({ className: className, ...props })=>/*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
888
1154
|
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("flex-1 overflow-y-auto p-6", className),
|
|
889
1155
|
...props
|
|
@@ -917,9 +1183,15 @@ var $e4ab606c19eb58c8$exports = {};
|
|
|
917
1183
|
$parcel$export($e4ab606c19eb58c8$exports, "Skeleton", function () { return $53866fd1feac4bca$export$8f31e4c4a37b8e9c; });
|
|
918
1184
|
|
|
919
1185
|
|
|
920
|
-
|
|
1186
|
+
/**
|
|
1187
|
+
* A skeleton is a placeholder for content that is loading.
|
|
1188
|
+
* By using a skeleton, you can give the user an idea of what the content will
|
|
1189
|
+
* look like and reduce the perceived loading time and CLS (Cumulative Layout Shift).
|
|
1190
|
+
*
|
|
1191
|
+
* @note Default height is 1rem.
|
|
1192
|
+
*/ function $53866fd1feac4bca$export$8f31e4c4a37b8e9c({ className: className, ...props }) {
|
|
921
1193
|
return /*#__PURE__*/ (0, $hLlzK$jsx)("div", {
|
|
922
|
-
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("animate-pulse rounded-md bg-gray-200", className),
|
|
1194
|
+
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("h-4 animate-pulse rounded-md bg-gray-200", className),
|
|
923
1195
|
...props
|
|
924
1196
|
});
|
|
925
1197
|
}
|
|
@@ -1043,6 +1315,23 @@ $parcel$export($1139165ac42b5b24$exports, "useTheme", function () { return $dda3
|
|
|
1043
1315
|
|
|
1044
1316
|
|
|
1045
1317
|
|
|
1318
|
+
|
|
1319
|
+
function $09c25728f9af4f32$export$4a69f2d3e9a6da8a(query) {
|
|
1320
|
+
const subscribe = (0, $hLlzK$useCallback)((callback)=>{
|
|
1321
|
+
const matchMedia = window.matchMedia(query);
|
|
1322
|
+
matchMedia.addEventListener("change", callback);
|
|
1323
|
+
return ()=>{
|
|
1324
|
+
matchMedia.removeEventListener("change", callback);
|
|
1325
|
+
};
|
|
1326
|
+
}, [
|
|
1327
|
+
query
|
|
1328
|
+
]);
|
|
1329
|
+
return (0, $hLlzK$useSyncExternalStore)(subscribe, ()=>{
|
|
1330
|
+
return window.matchMedia(query).matches;
|
|
1331
|
+
}, ()=>false);
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
|
|
1046
1335
|
/**
|
|
1047
1336
|
* prefersDarkModeMediaQuery is the media query used to detect if the user prefers dark mode.
|
|
1048
1337
|
*/ const $dda3493dd750e32f$var$prefersDarkModeMediaQuery = "(prefers-color-scheme: dark)";
|
|
@@ -1161,14 +1450,36 @@ $parcel$export($1139165ac42b5b24$exports, "useTheme", function () { return $dda3
|
|
|
1161
1450
|
htmlElement.classList.remove(...$dda3493dd750e32f$var$themes);
|
|
1162
1451
|
const prefersDarkMode = window.matchMedia($dda3493dd750e32f$var$prefersDarkModeMediaQuery).matches;
|
|
1163
1452
|
const prefersHighContrast = window.matchMedia($dda3493dd750e32f$var$prefersHighContrastMediaQuery).matches;
|
|
1164
|
-
const newTheme =
|
|
1453
|
+
const newTheme = $dda3493dd750e32f$var$resolveTheme(theme, {
|
|
1165
1454
|
prefersDarkMode: prefersDarkMode,
|
|
1166
1455
|
prefersHighContrast: prefersHighContrast
|
|
1167
|
-
})
|
|
1456
|
+
});
|
|
1168
1457
|
htmlElement.classList.add(newTheme);
|
|
1169
1458
|
htmlElement.dataset.appliedTheme = newTheme;
|
|
1170
1459
|
htmlElement.dataset.theme = theme;
|
|
1171
1460
|
}
|
|
1461
|
+
/**
|
|
1462
|
+
* 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.
|
|
1463
|
+
* This will mirror the result that gets applied to the <html> element.
|
|
1464
|
+
*/ function $dda3493dd750e32f$var$resolveTheme(theme, { prefersDarkMode: prefersDarkMode, prefersHighContrast: prefersHighContrast }) {
|
|
1465
|
+
if (theme === "system") return $dda3493dd750e32f$export$4fb60975b7de64a3({
|
|
1466
|
+
prefersDarkMode: prefersDarkMode,
|
|
1467
|
+
prefersHighContrast: prefersHighContrast
|
|
1468
|
+
});
|
|
1469
|
+
return theme;
|
|
1470
|
+
}
|
|
1471
|
+
/**
|
|
1472
|
+
* 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.
|
|
1473
|
+
* This will mirror the result that gets applied to the <html> element.
|
|
1474
|
+
*/ function $dda3493dd750e32f$export$9335dc9d919c3613() {
|
|
1475
|
+
const [theme] = $dda3493dd750e32f$export$93d4e7f90805808f();
|
|
1476
|
+
const prefersDarkMode = (0, $09c25728f9af4f32$export$4a69f2d3e9a6da8a)($dda3493dd750e32f$var$prefersDarkModeMediaQuery);
|
|
1477
|
+
const prefersHighContrast = (0, $09c25728f9af4f32$export$4a69f2d3e9a6da8a)($dda3493dd750e32f$var$prefersHighContrastMediaQuery);
|
|
1478
|
+
return $dda3493dd750e32f$var$resolveTheme(theme, {
|
|
1479
|
+
prefersDarkMode: prefersDarkMode,
|
|
1480
|
+
prefersHighContrast: prefersHighContrast
|
|
1481
|
+
});
|
|
1482
|
+
}
|
|
1172
1483
|
function $dda3493dd750e32f$export$4fb60975b7de64a3({ prefersDarkMode: prefersDarkMode, prefersHighContrast: prefersHighContrast }) {
|
|
1173
1484
|
if (prefersHighContrast) return prefersDarkMode ? "dark-high-contrast" : "light-high-contrast";
|
|
1174
1485
|
return prefersDarkMode ? "dark" : "light";
|
|
@@ -1229,15 +1540,15 @@ $parcel$export($d2d52c6753841931$exports, "TooltipProvider", function () { retur
|
|
|
1229
1540
|
|
|
1230
1541
|
|
|
1231
1542
|
const $aae96005fa706805$export$f78649fb9ca566b8 = (0, $hLlzK$Provider);
|
|
1232
|
-
const $aae96005fa706805$export$28c660c63b792dea = (0, $hLlzK$
|
|
1233
|
-
const $aae96005fa706805$export$8c610744efcf8a1d = (0, $hLlzK$
|
|
1234
|
-
const $aae96005fa706805$export$e9003e2be37ec060 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, sideOffset: sideOffset = 4, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$
|
|
1543
|
+
const $aae96005fa706805$export$28c660c63b792dea = (0, $hLlzK$Root4);
|
|
1544
|
+
const $aae96005fa706805$export$8c610744efcf8a1d = (0, $hLlzK$Trigger4);
|
|
1545
|
+
const $aae96005fa706805$export$e9003e2be37ec060 = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ className: className, sideOffset: sideOffset = 4, ...props }, ref)=>/*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$Content4), {
|
|
1235
1546
|
ref: ref,
|
|
1236
1547
|
sideOffset: sideOffset,
|
|
1237
1548
|
className: (0, $a4274013049f8f7f$export$a274e22fb40f762e)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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", className),
|
|
1238
1549
|
...props
|
|
1239
1550
|
}));
|
|
1240
|
-
$aae96005fa706805$export$e9003e2be37ec060.displayName = (0, $hLlzK$
|
|
1551
|
+
$aae96005fa706805$export$e9003e2be37ec060.displayName = (0, $hLlzK$Content4).displayName;
|
|
1241
1552
|
|
|
1242
1553
|
|
|
1243
1554
|
|
|
@@ -1247,5 +1558,5 @@ var $930e48a10c6e5fee$exports = {};
|
|
|
1247
1558
|
|
|
1248
1559
|
|
|
1249
1560
|
|
|
1250
|
-
export {$d7b44a6bfb86e793$export$b688253958b8dfe7 as Anchor, $d7b44a6bfb86e793$export$86577199b2baf6c3 as anchorClassNames, $c2638d7be6bdca12$export$353f5b6fc5456de1 as Button, $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, $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, $6a7317e4fdb7be9c$export$6565f9f03506010b as code, $c58b35aa9fcfa4d0$export$2b83d7916142717 as parseMetastring, $3107245668823796$export$47c66070d6d6cd6d as isSupportedLanguage, $3107245668823796$export$dbb82c29aa7faca4 as parseLanguage, $a4274013049f8f7f$export$a274e22fb40f762e as cx, $be9526d49a216cc9$export$7f1bf47c7f50a6aa as InlineCode, $69de6bdb0e8d2083$export$f5b8910cec6cf069 as Input, $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, $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$2d1315cd4e7dcc1 as PreventWrongThemeFlash, $dda3493dd750e32f$export$d8964aec282183a3 as ThemeProvider, $dda3493dd750e32f$export$6b08dcdbd4008308 as isTheme, $dda3493dd750e32f$export$1dca76bcd3720cbb as preventWrongThemeFlashScriptContent, $dda3493dd750e32f$export$bca14c5b3b88a9c9 as theme, $dda3493dd750e32f$export$93d4e7f90805808f as useTheme, $aae96005fa706805$export$28c660c63b792dea as Tooltip, $aae96005fa706805$export$8c610744efcf8a1d as TooltipTrigger, $aae96005fa706805$export$e9003e2be37ec060 as TooltipContent, $aae96005fa706805$export$f78649fb9ca566b8 as TooltipProvider};
|
|
1561
|
+
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, $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, $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, $6a7317e4fdb7be9c$export$6565f9f03506010b as code, $c58b35aa9fcfa4d0$export$2b83d7916142717 as parseMetastring, $3107245668823796$export$47c66070d6d6cd6d as isSupportedLanguage, $3107245668823796$export$dbb82c29aa7faca4 as parseLanguage, $a4274013049f8f7f$export$a274e22fb40f762e as cx, $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, $a54417aeb05f1278$export$246bebaba3a2f70e as DropdownMenuGroup, $a54417aeb05f1278$export$cd369b4d4d54efc9 as DropdownMenuPortal, $a54417aeb05f1278$export$2f307d81a64f5442 as DropdownMenuSub, $a54417aeb05f1278$export$f34ec8bc2482cc5f as DropdownMenuSubContent, $a54417aeb05f1278$export$21dcb7ec56f874cf as DropdownMenuSubTrigger, $a54417aeb05f1278$export$3323ad73d55f587e as DropdownMenuRadioGroup, $be9526d49a216cc9$export$7f1bf47c7f50a6aa as InlineCode, $69de6bdb0e8d2083$export$f5b8910cec6cf069 as Input, $1efa43e76774bcf1$export$c5be64db09f93414 as MediaObject, $1efa43e76774bcf1$export$a850f92726a1f836 as MediaObjectMedia, $1efa43e76774bcf1$export$8d93ffc9d5ebcf0c as MediaObjectContent, $66e13ce5ec226639$export$b28585a458fee016 as PasswordInput, $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, $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$2d1315cd4e7dcc1 as PreventWrongThemeFlash, $dda3493dd750e32f$export$d8964aec282183a3 as ThemeProvider, $dda3493dd750e32f$export$6b08dcdbd4008308 as isTheme, $dda3493dd750e32f$export$1dca76bcd3720cbb as preventWrongThemeFlashScriptContent, $dda3493dd750e32f$export$bca14c5b3b88a9c9 as theme, $dda3493dd750e32f$export$93d4e7f90805808f as useTheme, $aae96005fa706805$export$28c660c63b792dea as Tooltip, $aae96005fa706805$export$8c610744efcf8a1d as TooltipTrigger, $aae96005fa706805$export$e9003e2be37ec060 as TooltipContent, $aae96005fa706805$export$f78649fb9ca566b8 as TooltipProvider};
|
|
1251
1562
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGQO,SAAS,0CAAG,GAAG,MAAoB;IACzC,OAAO,CAAA,GAAA,cAAM,EAAE,CAAA,GAAA,WAAG,EAAE;AACrB;;;ADLA,MAAM,4CAAmB,CAAC,YACzB,CAAA,GAAA,yCAAC,EACA,4IACA;AAKF;;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AAA,GAAA,yCAAC,EACX,mYACA;QAEA,GAAG,KAAK;;AAIZ,0CAAe,WAAW,GAAG,CAAA,GAAA,eAAM,EAAE,WAAW;;;;;;","sources":["components/index.tsx","components/anchor/index.tsx","components/anchor/src/anchor.tsx","components/core/src/cx.ts","components/button/index.tsx","components/button/src/button.tsx","components/card/index.tsx","components/card/src/card.tsx","components/code-block/index.tsx","components/code-block/src/code-block.tsx","components/code-block/src/supported-languages.ts","components/code-block/src/code.ts","components/code-block/src/parse-metastring.ts","components/core/index.ts","components/inline-code/index.tsx","components/inline-code/src/inline-code.tsx","components/input/index.tsx","components/input/src/input.tsx","components/media-object/index.tsx","components/media-object/src/media-object.tsx","components/popover/index.tsx","components/popover/src/popover.tsx","components/select/index.tsx","components/select/src/select.tsx","components/sheet/index.tsx","components/sheet/src/sheet.tsx","components/skeleton/index.tsx","components/skeleton/src/skeleton.tsx","components/table/index.tsx","components/table/src/table.tsx","components/text-area/index.tsx","components/text-area/src/text-area.tsx","components/theme-provider/index.tsx","components/theme-provider/src/theme-provider.tsx","components/tooltip/index.tsx","components/tooltip/src/tooltip.tsx","components/types/index.ts"],"sourcesContent":["export * from \"./anchor\";\nexport * from \"./button\";\nexport * from \"./card\";\nexport * from \"./code-block\";\nexport * from \"./core\";\nexport * from \"./inline-code\";\nexport * from \"./input\";\nexport * from \"./media-object\";\nexport * from \"./popover\";\nexport * from \"./select\";\nexport * from \"./sheet\";\nexport * from \"./skeleton\";\nexport * from \"./table\";\nexport * from \"./text-area\";\nexport * from \"./theme-provider\";\nexport * from \"./tooltip\";\n\n// types exports\nexport * from \"./types\";\n","export { Anchor, anchorClassNames } from \"./src/anchor\";\n","import { Slot } from \"@radix-ui/react-slot\";\nimport { AnchorHTMLAttributes, forwardRef } from \"react\";\nimport { cx } from \"../../core\";\nimport { WithAsChild } from \"../../types/src/as-child\";\n\nconst anchorClassNames = (className: string | undefined) =>\n\tcx(\n\t\t\"text-blue-600 focus-visible:ring-blue-600/25 cursor-pointer rounded bg-transparent focus:outline-none focus-visible:ring hover:underline\",\n\t\tclassName,\n\t);\n\ntype AnchorProps = AnchorHTMLAttributes<HTMLAnchorElement> & WithAsChild;\n\n/**\n * Fundamental component for rendering links to external addresses.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a\n *\n * @note If you need to link to an internal application route, prefer using the\n * [`react-router-dom` `<Link>`](https://reactrouter.com/en/main/components/link) or the\n * [`@remix-run/react` `<Link>`](https://remix.run/docs/en/main/components/link).\n */\nconst Anchor = forwardRef<HTMLAnchorElement, AnchorProps>(({ asChild, className, ...props }, ref) => {\n\tconst Component = asChild ? Slot : \"a\";\n\n\treturn <Component className={anchorClassNames(className)} ref={ref} {...props} />;\n});\nAnchor.displayName = \"Anchor\";\n\nexport { Anchor, anchorClassNames };\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/**\n * Conditionally add Tailwind (and other) CSS classes.\n *\n * Allows for tailwind overrides in LTR-specificity-like order of applied classes.\n */\nexport function cx(...inputs: ClassValue[]) {\n\treturn twMerge(clsx(inputs));\n}\n","export { Button } from \"./src/button\";\n\nexport type { ButtonProps } from \"./src/button\";\n","import { Slot } from \"@radix-ui/react-slot\";\nimport { cva } from \"class-variance-authority\";\nimport { forwardRef, type ButtonHTMLAttributes } from \"react\";\nimport { cx } from \"../../core\";\nimport type { WithAsChild } from \"../../types/src/as-child\";\nimport type { VariantProps } from \"../../types/src/variant-props\";\n\nconst buttonVariants = cva(\n\t\"inline-flex items-center justify-center rounded-md font-medium focus-visible:outline-none focus-visible:ring-4 disabled:pointer-events-none disabled:opacity-50 h-11 sm:h-9 px-3 border whitespace-nowrap sm:text-sm\",\n\t{\n\t\tvariants: {\n\t\t\tappearance: {\n\t\t\t\toutline:\n\t\t\t\t\t\"bg-white dark:bg-gray-50 border-blue-600 text-blue-600 hover:bg-blue-500/5 dark:hover:bg-blue-500/5 active:bg-blue-500/10 focus-visible:ring-blue-500/25\",\n\t\t\t\tsolid:\n\t\t\t\t\t\"border-transparent bg-blue-500 text-button hover:bg-blue-600 dark:hover:bg-blue-400 active:bg-blue-700 dark:active:bg-blue-300 focus-visible:border-blue-600 focus-visible:ring-blue-500/25\",\n\t\t\t\tghost:\n\t\t\t\t\t\"border-transparent text-blue-600 hover:bg-blue-500/5 active:bg-blue-500/10 focus-visible:ring-blue-500/25\",\n\t\t\t},\n\t\t\tpriority: {\n\t\t\t\tdefault: \"\",\n\t\t\t\tdanger: \"\",\n\t\t\t\tmuted: \"\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tappearance: \"ghost\",\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tappearance: \"ghost\",\n\t\t\t\tpriority: \"danger\",\n\t\t\t\tclass: \"border-transparent text-red-600 hover:bg-red-500/5 active:bg-red-500/10 focus-visible:ring-red-500/25\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tappearance: \"outline\",\n\t\t\t\tpriority: \"danger\",\n\t\t\t\tclass:\n\t\t\t\t\t\"bg-white dark:bg-gray-50 border-red-600 text-red-600 dark:hover:bg-red-500/5 hover:bg-red-500/5 active:bg-red-500/10 focus-visible:ring-red-500/25\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tappearance: \"solid\",\n\t\t\t\tpriority: \"danger\",\n\t\t\t\tclass:\n\t\t\t\t\t\"border-transparent bg-red-500 hover:bg-red-600 active:bg-red-700 focus-visible:ring-red-500/25 focus-visible:border-red-600 dark:hover:bg-red-400 dark:active:bg-red-300\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tappearance: \"ghost\",\n\t\t\t\tpriority: \"muted\",\n\t\t\t\tclass:\n\t\t\t\t\t\"border-transparent text-gray-900 hover:bg-gray-500/5 active:bg-gray-500/10 focus-visible:ring-blue-500/25\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tappearance: \"outline\",\n\t\t\t\tpriority: \"muted\",\n\t\t\t\tclass:\n\t\t\t\t\t\"bg-white dark:bg-gray-50 border-gray-300 text-gray-900 hover:bg-gray-500/5 dark:hover:bg-gray-500/5 active:bg-gray-500/10 focus-visible:ring-blue-500/25 focus-visible:border-blue-600\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tappearance: \"solid\",\n\t\t\t\tpriority: \"muted\",\n\t\t\t\tclass:\n\t\t\t\t\t\"border-transparent bg-gray-500 hover:bg-gray-600 active:bg-gray-700 focus-visible:ring-gray-500/25 focus-visible:border-gray-600 dark:hover:bg-gray-400 dark:active:bg-gray-300\",\n\t\t\t},\n\t\t],\n\t},\n);\n\ntype ButtonVariants = VariantProps<typeof buttonVariants>;\n\n/**\n * The props for the `Button` component.\n */\nexport type ButtonProps = WithAsChild & ButtonHTMLAttributes<HTMLButtonElement> & ButtonVariants;\n\n/**\n * Renders a button or a component that looks like a button, an interactive\n * element activated by a user with a mouse, keyboard, finger, voice command, or\n * other assistive technology. Once activated, it then performs an action, such\n * as submitting a form or opening a dialog.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button\n */\nconst Button = forwardRef<HTMLButtonElement, ButtonProps>(\n\t({ className, appearance = \"ghost\", priority = \"default\", asChild = false, ...props }, ref) => {\n\t\tconst Comp = asChild ? Slot : \"button\";\n\n\t\treturn <Comp className={cx(buttonVariants({ appearance, priority, className }))} ref={ref} {...props} />;\n\t},\n);\nButton.displayName = \"Button\";\n\nexport { Button, buttonVariants };\n","export { Card, CardBody, CardFooter, CardHeader, CardTitle } from \"./src/card\";\n\nexport type { CardProps, CardTitleProps } from \"./src/card\";\n","import { Slot } from \"@radix-ui/react-slot\";\nimport type { HTMLAttributes } from \"react\";\nimport { forwardRef } from \"react\";\nimport { cx } from \"../../core\";\nimport type { WithAsChild } from \"../../types/src/as-child\";\n\nexport type CardProps = HTMLAttributes<HTMLDivElement>;\n\n/**\n * A container that can be used to display content in a box resembling a playing\n * card.\n */\nexport const Card = forwardRef<HTMLDivElement, CardProps>(({ className, children, ...rest }, ref) => (\n\t<div\n\t\tref={ref}\n\t\tclassName={cx(\"relative rounded-md border border-gray-300 bg-white dark:bg-gray-50\", className)}\n\t\t{...rest}\n\t>\n\t\t{children}\n\t</div>\n));\nCard.displayName = \"Card\";\n\n/**\n * The main content of a card. Usually composed as a direct child of a `Card` component.\n */\nexport const CardBody = forwardRef<HTMLDivElement, CardProps>(({ className, children, ...rest }, ref) => (\n\t<div ref={ref} className={cx(\"p-6\", className)} {...rest}>\n\t\t{children}\n\t</div>\n));\nCardBody.displayName = \"CardBody\";\n\n/**\n * The footer container of a card. Usually composed as a direct child of a `Card` component.\n */\nexport const CardFooter = forwardRef<HTMLDivElement, CardProps>(({ className, children, ...rest }, ref) => (\n\t<div ref={ref} className={cx(\"border-t border-gray-300 px-6 py-3\", className)} {...rest}>\n\t\t{children}\n\t</div>\n));\nCardFooter.displayName = \"CardFooter\";\n\n/**\n * The header container of a card. Usually composed as a direct child of a `Card` component.\n */\nexport const CardHeader = forwardRef<HTMLDivElement, CardProps>(({ className, children, ...rest }, ref) => (\n\t<div ref={ref} className={cx(\"border-b border-gray-300 px-6 py-3\", className)} {...rest}>\n\t\t{children}\n\t</div>\n));\nCardHeader.displayName = \"CardHeader\";\n\nexport type CardTitleProps = HTMLAttributes<HTMLHeadingElement> & WithAsChild;\n\n/**\n * The title of a card. Usually composed as a direct child of a `CardHeader` component.\n */\nexport const CardTitle = forwardRef<HTMLParagraphElement, CardTitleProps>(({ className, asChild, ...props }, ref) => {\n\tconst Comp = asChild ? Slot : \"h3\";\n\treturn <Comp ref={ref} className={cx(\"font-semibold leading-none tracking-tight\", className)} {...props} />;\n});\nCardTitle.displayName = \"CardTitle\";\n","export {\n\tCodeBlock,\n\tCodeBlockBody,\n\tCodeBlockCode,\n\tCodeBlockCopyButton,\n\tCodeBlockExpanderButton,\n\tCodeBlockHeader,\n\tCodeBlockTitle,\n} from \"./src/code-block\";\n\nexport { code } from \"./src/code\";\nexport { parseMetastring } from \"./src/parse-metastring\";\nexport { isSupportedLanguage, parseLanguage } from \"./src/supported-languages\";\n","import { Slot } from \"@radix-ui/react-slot\";\nimport Prism from \"prismjs\";\nimport {\n\tcreateContext,\n\tDispatch,\n\tElementRef,\n\tforwardRef,\n\tHTMLAttributes,\n\tSetStateAction,\n\tuseContext,\n\tuseEffect,\n\tuseId,\n\tuseMemo,\n\tuseRef,\n\tuseState,\n} from \"react\";\nimport \"prismjs/components/prism-bash.js\";\nimport \"prismjs/components/prism-jsx.js\";\nimport \"prismjs/components/prism-tsx.js\";\nimport { CaretDown } from \"@phosphor-icons/react/CaretDown\";\nimport { Check } from \"@phosphor-icons/react/Check\";\nimport { Copy } from \"@phosphor-icons/react/Copy\";\nimport { useCopyToClipboard } from \"@uidotdev/usehooks\";\nimport assert from \"tiny-invariant\";\nimport { cx } from \"../../core\";\nimport type { WithStyleProps } from \"../../types/src/with-style-props\";\nimport { LineRange } from \"./line-numbers\";\nimport { formatLanguageClassName, type SupportedLanguage } from \"./supported-languages\";\n\n/**\n * TODO(cody):\n * - fix line numbers, maybe try grid instead of :before and flex?\n * - fix line hightlighting\n * - fix line wrapping? horizontal scrolling has problems w/ line highlighting :(\n */\n\ntype CodeBlockContextType = {\n\tcodeId: string | undefined;\n\tcopyText: string;\n\thasCodeExpander: boolean;\n\tisCodeExpanded: boolean;\n\tregisterCodeId: (id: string) => void;\n\tsetCopyText: (newCopyText: string) => void;\n\tsetHasCodeExpander: (value: boolean) => void;\n\tsetIsCodeExpanded: Dispatch<SetStateAction<boolean>>;\n\tunregisterCodeId: (id: string) => void;\n};\n\nconst CodeBlockContext = createContext<CodeBlockContextType>({\n\tcodeId: undefined,\n\tcopyText: \"\",\n\thasCodeExpander: false,\n\tisCodeExpanded: false,\n\tregisterCodeId: () => {},\n\tsetCopyText: () => {},\n\tsetHasCodeExpander: () => {},\n\tsetIsCodeExpanded: () => {},\n\tunregisterCodeId: () => {},\n});\n\nconst CodeBlock = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => {\n\tconst [copyText, setCopyText] = useState(\"\");\n\tconst [hasCodeExpander, setHasCodeExpander] = useState(false);\n\tconst [isCodeExpanded, setIsCodeExpanded] = useState(false);\n\tconst [codeId, setCodeId] = useState<string | undefined>(undefined);\n\n\tconst context: CodeBlockContextType = useMemo(\n\t\t() =>\n\t\t\t({\n\t\t\t\tcodeId,\n\t\t\t\tcopyText,\n\t\t\t\thasCodeExpander,\n\t\t\t\tisCodeExpanded,\n\t\t\t\tregisterCodeId: (id) => {\n\t\t\t\t\tsetCodeId((old) => {\n\t\t\t\t\t\tassert(old == null, \"You can only render a single CodeBlockCode within a CodeBlock.\");\n\t\t\t\t\t\treturn id;\n\t\t\t\t\t});\n\t\t\t\t},\n\t\t\t\tsetCopyText,\n\t\t\t\tsetHasCodeExpander,\n\t\t\t\tsetIsCodeExpanded,\n\t\t\t\tunregisterCodeId: (id) => {\n\t\t\t\t\tsetCodeId((old) => {\n\t\t\t\t\t\tassert(old === id, \"You can only render a single CodeBlockCode within a CodeBlock.\");\n\t\t\t\t\t\treturn undefined;\n\t\t\t\t\t});\n\t\t\t\t},\n\t\t\t}) as const,\n\t\t[codeId, copyText, hasCodeExpander, isCodeExpanded],\n\t);\n\n\treturn (\n\t\t<CodeBlockContext.Provider value={context}>\n\t\t\t<div\n\t\t\t\tclassName={cx(\n\t\t\t\t\t\"overflow-hidden rounded-md border border-gray-300 bg-gray-50 font-mono text-[0.8125rem]\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tref={ref}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</CodeBlockContext.Provider>\n\t);\n});\nCodeBlock.displayName = \"CodeBlock\";\n\nconst CodeBlockBody = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (\n\t<div className={cx(\"relative\", className)} ref={ref} {...props} />\n));\nCodeBlockBody.displayName = \"CodeBlockBody\";\n\ntype CodeBlockCodeProps = WithStyleProps & {\n\tchildren?: string | undefined;\n\thighlightLines?: (LineRange | number)[];\n\tlanguage?: SupportedLanguage;\n\tshowLineNumbers?: boolean;\n};\n\nconst CodeBlockCode = forwardRef<HTMLPreElement, CodeBlockCodeProps>((props, ref) => {\n\tconst { children, className, language = \"sh\", style } = props;\n\tconst innerPreRef = useRef<ElementRef<\"pre\">>();\n\tconst id = useId();\n\tconst { hasCodeExpander, isCodeExpanded, registerCodeId, setCopyText, unregisterCodeId } =\n\t\tuseContext(CodeBlockContext);\n\n\t// trim any leading and trailing whitespace/empty lines\n\tconst trimmedCode = children?.trim() ?? \"\";\n\n\tuseEffect(() => {\n\t\tconst preElement = innerPreRef.current;\n\t\tif (!preElement) {\n\t\t\treturn;\n\t\t}\n\t\tPrism.highlightElement(preElement);\n\t}, [trimmedCode, children]);\n\n\tuseEffect(() => {\n\t\tsetCopyText(trimmedCode);\n\t}, [trimmedCode, setCopyText]);\n\n\tuseEffect(() => {\n\t\tregisterCodeId(id);\n\n\t\treturn () => {\n\t\t\tunregisterCodeId(id);\n\t\t};\n\t}, [id, registerCodeId, unregisterCodeId]);\n\n\treturn (\n\t\t<pre\n\t\t\taria-expanded={hasCodeExpander ? isCodeExpanded : undefined}\n\t\t\tclassName={cx(\n\t\t\t\tformatLanguageClassName(language),\n\t\t\t\t\"scrollbar overflow-x-auto overflow-y-hidden p-4 pr-[3.375rem] firefox:after:mr-[3.375rem] firefox:after:inline-block firefox:after:content-['']\",\n\t\t\t\t\"aria-[expanded='false']:max-h-[13.6rem]\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-lang={language}\n\t\t\tid={id}\n\t\t\tref={(node) => {\n\t\t\t\tinnerPreRef.current = node ?? undefined;\n\t\t\t\treturn ref;\n\t\t\t}}\n\t\t\tstyle={{\n\t\t\t\ttabSize: 2,\n\t\t\t\tMozTabSize: 2,\n\t\t\t\t...style,\n\t\t\t}}\n\t\t>\n\t\t\t<code>{trimmedCode}</code>\n\t\t</pre>\n\t);\n});\nCodeBlockCode.displayName = \"CodeBlockCode\";\n\nconst CodeBlockHeader = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (\n\t<div\n\t\tclassName={cx(\"flex items-center gap-1 border-b border-gray-300 bg-gray-100 px-4 py-2 text-gray-700\", className)}\n\t\tref={ref}\n\t\t{...props}\n\t/>\n));\nCodeBlockHeader.displayName = \"CodeBlockHeader\";\n\nconst CodeBlockTitle = forwardRef<HTMLHeadingElement, HTMLAttributes<HTMLHeadingElement> & { asChild?: boolean }>(\n\t({ asChild = false, className, ...props }, ref) => {\n\t\tconst Comp = asChild ? Slot : \"h3\";\n\t\treturn <Comp ref={ref} className={cx(\"font-mono text-[0.8125rem] font-normal\", className)} {...props} />;\n\t},\n);\nCodeBlockTitle.displayName = \"CodeBlockTitle\";\n\ntype CodeBlockCopyButtonProps = WithStyleProps & {\n\tonCopy?: (value: string) => void;\n\tonCopyError?: (error: unknown) => void;\n};\n\nconst CodeBlockCopyButton = forwardRef<HTMLButtonElement, CodeBlockCopyButtonProps>(\n\t({ className, onCopy, onCopyError, style }, ref) => {\n\t\tconst { copyText } = useContext(CodeBlockContext);\n\t\tconst [, copyToClipboard] = useCopyToClipboard();\n\t\tconst [copied, setCopied] = useState(false);\n\n\t\tuseEffect(() => {\n\t\t\tif (copied) {\n\t\t\t\tconst timeoutId = window.setTimeout(() => {\n\t\t\t\t\tsetCopied(false);\n\t\t\t\t}, 2000);\n\n\t\t\t\treturn () => {\n\t\t\t\t\tclearTimeout(timeoutId);\n\t\t\t\t};\n\t\t\t}\n\t\t}, [copied]);\n\n\t\treturn (\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclassName={cx(\n\t\t\t\t\t\"absolute right-3 top-3 z-10 flex h-7 w-7 items-center justify-center rounded-sm border border-gray-300 bg-gray-50 shadow-[-1rem_0_0.75rem_-0.375rem_hsl(var(--gray-050)),1rem_0_0_-0.25rem_hsl(var(--gray-050))] hover:border-gray-400 hover:bg-gray-200 focus-visible:border-blue-500 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-blue-600/25\",\n\t\t\t\t\tcopied &&\n\t\t\t\t\t\t\"w-auto gap-1 border-transparent bg-green-500 pl-2 pr-1.5 text-white hover:border-transparent hover:bg-green-500 focus:bg-green-500 focus-visible:border-green-600 focus-visible:ring-green-600/25\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tref={ref}\n\t\t\t\tstyle={style}\n\t\t\t\tonClick={async () => {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tawait copyToClipboard(copyText);\n\t\t\t\t\t\tonCopy?.(copyText);\n\t\t\t\t\t\tsetCopied(true);\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tonCopyError?.(error);\n\t\t\t\t\t}\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<span className=\"sr-only\">Copy code</span>\n\t\t\t\t{copied ? (\n\t\t\t\t\t<>\n\t\t\t\t\t\tCopied\n\t\t\t\t\t\t<Check className=\"h-4 w-4\" weight=\"bold\" />\n\t\t\t\t\t</>\n\t\t\t\t) : (\n\t\t\t\t\t<Copy className=\"-ml-px h-5 w-5\" />\n\t\t\t\t)}\n\t\t\t</button>\n\t\t);\n\t},\n);\nCodeBlockCopyButton.displayName = \"CodeBlockCopyButton\";\n\ntype CodeBlockExpanderButtonProps = Omit<\n\tHTMLAttributes<HTMLButtonElement>,\n\t\"children\" | \"aria-controls\" | \"aria-expanded\"\n>;\n\nconst CodeBlockExpanderButton = forwardRef<HTMLButtonElement, CodeBlockExpanderButtonProps>(\n\t({ className, onClick, ...props }, ref) => {\n\t\tconst { codeId, isCodeExpanded, setIsCodeExpanded, setHasCodeExpander } = useContext(CodeBlockContext);\n\n\t\tuseEffect(() => {\n\t\t\tsetHasCodeExpander(true);\n\n\t\t\treturn () => {\n\t\t\t\tsetHasCodeExpander(false);\n\t\t\t};\n\t\t}, [setHasCodeExpander]);\n\n\t\treturn (\n\t\t\t<button\n\t\t\t\t{...props}\n\t\t\t\taria-controls={codeId}\n\t\t\t\taria-expanded={isCodeExpanded}\n\t\t\t\tclassName={cx(\n\t\t\t\t\t\"bg-gray-050 flex w-full items-center justify-center gap-0.5 border-t border-gray-300 px-4 py-2 font-sans text-gray-700 hover:bg-gray-100\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tref={ref}\n\t\t\t\ttype=\"button\"\n\t\t\t\tonClick={(event) => {\n\t\t\t\t\tsetIsCodeExpanded((prev) => !prev);\n\t\t\t\t\tonClick?.(event);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{isCodeExpanded ? \"Show less\" : \"Show more\"}{\" \"}\n\t\t\t\t<CaretDown\n\t\t\t\t\tclassName={cx(\"h-4 w-4\", isCodeExpanded && \"rotate-180\", \"transition-all duration-150\")}\n\t\t\t\t\tweight=\"bold\"\n\t\t\t\t/>\n\t\t\t</button>\n\t\t);\n\t},\n);\nCodeBlockExpanderButton.displayName = \"CodeBlockExpanderButton\";\n\nexport {\n\tCodeBlock,\n\tCodeBlockBody,\n\tCodeBlockCode,\n\tCodeBlockCopyButton,\n\tCodeBlockExpanderButton,\n\tCodeBlockHeader,\n\tCodeBlockTitle,\n};\n","/**\n * List of supported languages for syntax highlighting.\n * @private\n */\nexport const supportedLanguages = [\n\t\"bash\",\n\t\"cs\",\n\t\"csharp\",\n\t\"css\",\n\t\"dotnet\",\n\t\"go\",\n\t\"html\",\n\t\"java\",\n\t\"javascript\",\n\t\"js\",\n\t\"json\",\n\t\"jsx\",\n\t\"py\",\n\t\"python\",\n\t\"rb\",\n\t\"ruby\",\n\t\"rust\",\n\t\"sh\",\n\t\"shell\",\n\t\"ts\",\n\t\"tsx\",\n\t\"typescript\",\n\t\"yaml\",\n\t\"yml\",\n] as const;\n\n/**\n * Supported languages for syntax highlighting.\n */\nexport type SupportedLanguage = (typeof supportedLanguages)[number];\n\n/**\n * Parses a markdown code block (```) language class into a SupportedLanguage.\n * Defaults to \"sh\" if no supported language is found.\n */\nexport function parseLanguage(\n\tvalue: `language-${string}` | `lang-${string}` | (string & {}) | undefined,\n): SupportedLanguage {\n\tif (!value) {\n\t\treturn \"sh\";\n\t}\n\n\t// remove leading \"language-\" and \"lang-\" prefixes\n\t// find first '-' and slice from there\n\tconst maybeLanguage = value.trim().slice(value.indexOf(\"-\") + 1);\n\n\treturn isSupportedLanguage(maybeLanguage) ? maybeLanguage : \"sh\";\n}\n\n/**\n * Type Predicate: checks if an arbitrary value is a supported syntax highlighting language.\n */\nexport const isSupportedLanguage = (value: unknown): value is SupportedLanguage => {\n\treturn typeof value === \"string\" && supportedLanguages.includes(value as SupportedLanguage);\n};\n\n/**\n * A class name for a language that Prism.js can understand.\n */\ntype LanguageClass = `language-${SupportedLanguage}`;\n\n/**\n * Formats a language name into a class name that Prism.js can understand.\n * @default \"language-sh\"\n */\nexport function formatLanguageClassName(language: SupportedLanguage | undefined = \"sh\") {\n\tconst lang = language ?? \"sh\";\n\tconst className: LanguageClass = `language-${lang}`;\n\treturn className;\n}\n","type Primitive = string | number | boolean | undefined | null;\n\n/**\n * Tagged template literal to format code blocks and normalize leading indentation\n */\nexport function code(strings: TemplateStringsArray, ...values: Primitive[]): string {\n\tif (!isTemplateStringsArray(strings) || !Array.isArray(values)) {\n\t\tthrow new Error(\n\t\t\t\"It looks like you tried to call `code` as a function. Make sure to use it as a tagged template.\\n\\tExample: code`SELECT * FROM users`, not code('SELECT * FROM users')\",\n\t\t);\n\t}\n\n\tconst text = String.raw({ raw: strings }, ...values);\n\n\t// fine the minimum indentation of the code block\n\tconst minIndent = findMinIndent(text);\n\tconst lines = text.trim().split(\"\\n\");\n\n\treturn lines\n\t\t.map((line) => {\n\t\t\t// remove nothing if the line doesn't start with indentation\n\t\t\tif (/^\\S+/.test(line)) {\n\t\t\t\treturn line;\n\t\t\t}\n\t\t\treturn line.slice(minIndent);\n\t\t})\n\t\t.join(\"\\n\");\n\t// replace all tabs with 2 spaces\n\t// .replace(/\\t/g, \" \")\n}\n\n/**\n * Find the shortest indentation of a multiline string\n */\nfunction findMinIndent(value: string): number {\n\tconst match = value.match(/^[ \\t]*(?=\\S)/gm);\n\n\tif (!match) {\n\t\treturn 0;\n\t}\n\n\treturn match.reduce((acc, curr) => Math.min(acc, curr.length), Infinity);\n}\n\n/**\n * Type guard to check if a value is a `TemplateStringsArray`\n */\nfunction isTemplateStringsArray(strings: unknown): strings is TemplateStringsArray {\n\treturn Array.isArray(strings) && \"raw\" in strings && Array.isArray(strings.raw);\n}\n","import { z } from \"zod\";\n\nconst modes = [\"file\", \"cli\"] as const;\nexport type Mode = (typeof modes)[number];\n\nconst metaSchema = z.object({\n\tcollapsible: z.boolean().default(false),\n\tdisableCopy: z.boolean().default(false),\n\tmode: z.enum(modes).optional(),\n\ttitle: z.string().trim().optional(),\n});\n\nexport type MetaInput = z.input<typeof metaSchema>;\n\nexport type Meta = z.infer<typeof metaSchema>;\n\nexport const defaultMeta = {\n\tcollapsible: false,\n\tdisableCopy: false,\n\tmode: undefined,\n\ttitle: undefined,\n} as const satisfies Meta;\n\nexport type DefaultMeta = typeof defaultMeta;\n\n/**\n * Parses a markdown code block (```) metastring into a meta object.\n * Defaults to DefaultMeta if no metastring given or if metastring is invalid.\n * Useful for parsing the metastring from a markdown code block to pass into the\n * CodeBlock components as props.\n */\nexport function parseMetastring(value: string | undefined): Meta {\n\tconst metastring = value?.trim() ?? \"\";\n\tif (!metastring) {\n\t\treturn defaultMeta;\n\t}\n\n\tconst metaJson = tokenizeMetastring(metastring).reduce<Record<string, unknown>>((acc, token) => {\n\t\tconst [key, _value] = token.split(\"=\");\n\t\tif (!key) {\n\t\t\treturn acc;\n\t\t}\n\t\tconst value = normalizeValue(_value);\n\t\tacc[key] = value ?? true;\n\t\treturn acc;\n\t}, {});\n\n\ttry {\n\t\tconst parsed = metaSchema.parse(metaJson);\n\n\t\t// return the parsed meta object, with default values filled in\n\t\treturn {\n\t\t\t...defaultMeta,\n\t\t\t...parsed,\n\t\t};\n\t} catch (_) {\n\t\treturn defaultMeta;\n\t}\n}\n\n/**\n * Remove leading and trailing `\"` quotes around value\n * @private\n */\nexport function normalizeValue(value: string | undefined) {\n\treturn value?.trim().replace(/^\"(.*)\"$/, \"$1\");\n}\n\n/**\n * Splits a metastring into an array of tokens that can be parsed into a meta object.\n * Should allow for quotes and spaces in tokens\n * @private\n */\nexport function tokenizeMetastring(value: string | undefined): string[] {\n\tconst input = value?.trim() ?? \"\";\n\tconst result: string[] = [];\n\n\tlet currentString = \"\";\n\tlet inQuotes = false;\n\n\tfor (const char of input) {\n\t\tif (char === \" \" && !inQuotes) {\n\t\t\tif (currentString) {\n\t\t\t\tresult.push(currentString);\n\t\t\t\tcurrentString = \"\";\n\t\t\t}\n\t\t} else if (char === '\"') {\n\t\t\tinQuotes = !inQuotes;\n\t\t\tcurrentString += char;\n\t\t} else {\n\t\t\tcurrentString += char;\n\t\t}\n\t}\n\n\tif (currentString) {\n\t\tresult.push(currentString);\n\t}\n\n\treturn result;\n}\n","export { cx } from \"./src/cx\";\n","export { InlineCode } from \"./src/inline-code\";\n","import { forwardRef, HTMLAttributes } from \"react\";\nimport { cx } from \"../../core\";\n\n/**\n * A component to render inline code.\n */\nconst InlineCode = forwardRef<HTMLSpanElement, HTMLAttributes<HTMLSpanElement>>(({ className, ...props }, ref) => (\n\t<code\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"rounded-md border border-gray-300 bg-gray-100 px-1 py-0.5 font-mono text-[0.8em] dark:border-gray-500 dark:bg-gray-200\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nInlineCode.displayName = \"InlineCode\";\n\nexport { InlineCode };\n","export { Input } from \"./src/input\";\n\nexport type { InputProps } from \"./src/input\";\nexport type { AutoComplete, InputType } from \"./src/types\";\n","import { cva } from \"class-variance-authority\";\nimport type { InputHTMLAttributes } from \"react\";\nimport { forwardRef } from \"react\";\nimport { cx } from \"../../core\";\nimport type { AutoComplete, InputType } from \"./types\";\n\nconst inputVariants = cva(\n\t\"flex h-11 sm:h-9 w-full rounded-md border bg-white dark:bg-gray-50 px-3 py-2 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-4 disabled:pointer-events-none disabled:opacity-50 sm:text-sm\",\n\t{\n\t\tvariants: {\n\t\t\tstate: {\n\t\t\t\tdefault: \"text-gray-900 border-gray-300 placeholder:text-gray-400 focus:border-blue-600 focus:ring-blue-500/25\",\n\t\t\t\tdanger: \"border-red-600 focus:border-red-600 focus:ring-red-500/25\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tstate: \"default\",\n\t\t},\n\t},\n);\n\n/**\n * The props for the `Input` component.\n */\nexport type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, \"autoComplete\" | \"type\"> & {\n\tautoComplete?: AutoComplete;\n\ttype?: InputType;\n};\n\n/**\n * Used to create interactive controls for web-based forms in order to accept data from the user\n */\nconst Input = forwardRef<HTMLInputElement, InputProps>(({ className, type = \"text\", ...props }, ref) => {\n\tconst state = props[\"aria-invalid\"] ? \"danger\" : \"default\";\n\treturn <input className={cx(inputVariants({ state }), className)} ref={ref} type={type} {...props} />;\n});\nInput.displayName = \"Input\";\n\nexport { Input };\n","export { MediaObject, MediaObjectMedia, MediaObjectContent } from \"./src/media-object\";\n","import { forwardRef } from \"react\";\nimport type { HTMLAttributes } from \"react\";\nimport { cx } from \"../../core\";\n\n/**\n * The media object is an image/icon (media) to the left, with descriptive\n * content (title and subtitle/description) to the right.\n *\n * Change the spacing between the media and content by passing a `gap-*` class.\n * The default gap is `gap-4`.\n *\n * Use flexbox utilities to change the alignment of the media and content.\n *\n * Compose the media object with the `MediaObjectMedia` and `MediaObjectContent`\n * components as direct children.\n */\nconst MediaObject = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(\n\t({ className, children, style }, ref) => (\n\t\t<div ref={ref} className={cx(\"flex gap-4\", className)} style={style}>\n\t\t\t{children}\n\t\t</div>\n\t),\n);\nMediaObject.displayName = \"MediaObject\";\n\n/**\n * The container for an image or icon to display in the media slot of the media object.\n */\nconst MediaObjectMedia = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(\n\t({ className, children, style }, ref) => (\n\t\t<div ref={ref} className={cx(\"shrink-0 leading-none\", className)} style={style}>\n\t\t\t{children}\n\t\t</div>\n\t),\n);\nMediaObjectMedia.displayName = \"MediaObjectMedia\";\n\n/**\n * The container for the content slot of a media object.\n */\nconst MediaObjectContent = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(\n\t({ className, children, style }, ref) => (\n\t\t<div ref={ref} className={cx(\"min-w-0 flex-1\", className)} style={style}>\n\t\t\t{children}\n\t\t</div>\n\t),\n);\nMediaObjectContent.displayName = \"MediaObjectContent\";\n\nexport { MediaObject, MediaObjectMedia, MediaObjectContent };\n","export { Popover, PopoverTrigger, PopoverContent } from \"./src/popover\";\n","import * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport { ComponentPropsWithoutRef, ElementRef, forwardRef } from \"react\";\nimport { cx } from \"../../core\";\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverContent = forwardRef<\n\tElementRef<typeof PopoverPrimitive.Content>,\n\tComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n\t<PopoverPrimitive.Portal>\n\t\t<PopoverPrimitive.Content\n\t\t\tref={ref}\n\t\t\talign={align}\n\t\t\tsideOffset={sideOffset}\n\t\t\tclassName={cx(\n\t\t\t\t\"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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-[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\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t</PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverTrigger, PopoverContent };\n","export {\n\tSelect,\n\tSelectContent,\n\tSelectGroup,\n\tSelectLabel,\n\tSelectItem,\n\tSelectSeparator,\n\tSelectTrigger,\n\tSelectValue,\n} from \"./src/select\";\n","import { CaretDown } from \"@phosphor-icons/react/CaretDown\";\nimport { CaretUp } from \"@phosphor-icons/react/CaretUp\";\nimport { Check } from \"@phosphor-icons/react/Check\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\";\nimport { forwardRef } from \"react\";\nimport { cx } from \"../../core\";\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = forwardRef<\n\tElementRef<typeof SelectPrimitive.Trigger>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n\t<SelectPrimitive.Trigger\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"flex h-11 w-full items-center justify-between rounded-md border border-gray-300 bg-white px-3 py-2 placeholder:text-gray-300 hover:bg-gray-500/5 focus:border-blue-600 focus:outline-none focus:ring-4 focus:ring-blue-500/25 disabled:pointer-events-none disabled:opacity-50 dark:bg-gray-50 dark:hover:bg-gray-500/5 sm:h-9 sm:text-sm [&>span]:line-clamp-1 [&>span]:text-left\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t{children}\n\t\t<SelectPrimitive.Icon asChild>\n\t\t\t<CaretDown className=\"h-4 w-4 shrink-0\" weight=\"bold\" />\n\t\t</SelectPrimitive.Icon>\n\t</SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = forwardRef<\n\tElementRef<typeof SelectPrimitive.ScrollUpButton>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.ScrollUpButton\n\t\tref={ref}\n\t\tclassName={cx(\"flex cursor-default items-center justify-center py-1\", className)}\n\t\t{...props}\n\t>\n\t\t<CaretUp className=\"h-4 w-4\" weight=\"bold\" />\n\t</SelectPrimitive.ScrollUpButton>\n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = forwardRef<\n\tElementRef<typeof SelectPrimitive.ScrollDownButton>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.ScrollDownButton\n\t\tref={ref}\n\t\tclassName={cx(\"flex cursor-default items-center justify-center py-1\", className)}\n\t\t{...props}\n\t>\n\t\t<CaretDown className=\"h-4 w-4\" weight=\"bold\" />\n\t</SelectPrimitive.ScrollDownButton>\n));\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = forwardRef<\n\tElementRef<typeof SelectPrimitive.Content>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n\t<SelectPrimitive.Portal>\n\t\t<SelectPrimitive.Content\n\t\t\tref={ref}\n\t\t\tclassName={cx(\n\t\t\t\t\"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-card text-popover-foreground shadow-lg 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-[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\",\n\t\t\t\tposition === \"popper\" &&\n\t\t\t\t\t\"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tposition={position}\n\t\t\t{...props}\n\t\t>\n\t\t\t<SelectScrollUpButton />\n\t\t\t<SelectPrimitive.Viewport\n\t\t\t\tclassName={cx(\n\t\t\t\t\t\"p-1\",\n\t\t\t\t\tposition === \"popper\" &&\n\t\t\t\t\t\t\"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]\",\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</SelectPrimitive.Viewport>\n\t\t\t<SelectScrollDownButton />\n\t\t</SelectPrimitive.Content>\n\t</SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = forwardRef<\n\tElementRef<typeof SelectPrimitive.Label>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.Label ref={ref} className={cx(\"px-2 py-1.5 text-sm font-semibold\", className)} {...props} />\n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = forwardRef<\n\tElementRef<typeof SelectPrimitive.Item>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n\t<SelectPrimitive.Item\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-blue-600 focus:text-white data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t<span className=\"absolute right-2 flex h-3.5 w-3.5 items-center justify-center\">\n\t\t\t<SelectPrimitive.ItemIndicator>\n\t\t\t\t<Check className=\"h-4 w-4\" weight=\"bold\" />\n\t\t\t</SelectPrimitive.ItemIndicator>\n\t\t</span>\n\t\t<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n\t</SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = forwardRef<\n\tElementRef<typeof SelectPrimitive.Separator>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.Separator ref={ref} className={cx(\"-mx-1 my-1 h-px bg-muted\", className)} {...props} />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n\tSelect,\n\tSelectGroup,\n\tSelectValue,\n\tSelectTrigger,\n\tSelectContent,\n\tSelectLabel,\n\tSelectItem,\n\tSelectSeparator,\n\tSelectScrollUpButton,\n\tSelectScrollDownButton,\n};\n","export {\n\tSheet,\n\tSheetBody,\n\tSheetClose,\n\tSheetContent,\n\tSheetDescription,\n\tSheetFooter,\n\tSheetHeader,\n\tSheetOverlay,\n\tSheetPortal,\n\tSheetTitle,\n\tSheetTrigger,\n} from \"./src/sheet\";\n","import { X } from \"@phosphor-icons/react/X\";\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { ComponentPropsWithoutRef, ElementRef, forwardRef, HTMLAttributes } from \"react\";\nimport { cx } from \"../../core\";\n\nconst Sheet = SheetPrimitive.Root;\n\nconst SheetTrigger = SheetPrimitive.Trigger;\n\nconst SheetClose = SheetPrimitive.Close;\n\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = forwardRef<\n\tElementRef<typeof SheetPrimitive.Overlay>,\n\tComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n\t<SheetPrimitive.Overlay\n\t\tclassName={cx(\n\t\t\t\"fixed inset-0 z-50 bg-background/80 blur data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t\tref={ref}\n\t/>\n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nconst SheetVariants = cva(\n\t\"fixed z-50 flex flex-col bg-background shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500\",\n\t{\n\t\tvariants: {\n\t\t\tside: {\n\t\t\t\ttop: \"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top\",\n\t\t\t\tbottom:\n\t\t\t\t\t\"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom\",\n\t\t\t\tleft: \"inset-y-0 left-0 h-full w-full border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm\",\n\t\t\t\tright:\n\t\t\t\t\t\"inset-y-0 right-0 h-full w-full border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tside: \"right\",\n\t\t},\n\t},\n);\n\ntype SheetContentProps = {} & ComponentPropsWithoutRef<typeof SheetPrimitive.Content> &\n\tVariantProps<typeof SheetVariants>;\n\nconst SheetContent = forwardRef<ElementRef<typeof SheetPrimitive.Content>, SheetContentProps>(\n\t({ side = \"right\", className, children, ...props }, ref) => (\n\t\t<SheetPortal>\n\t\t\t<SheetOverlay />\n\t\t\t<SheetPrimitive.Content ref={ref} className={cx(SheetVariants({ side }), className)} {...props}>\n\t\t\t\t{children}\n\t\t\t\t<SheetPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary\">\n\t\t\t\t\t<X className=\"h-6 w-6\" />\n\t\t\t\t\t<span className=\"sr-only\">Close</span>\n\t\t\t\t</SheetPrimitive.Close>\n\t\t\t</SheetPrimitive.Content>\n\t\t</SheetPortal>\n\t),\n);\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\nconst SheetBody = ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => (\n\t<div className={cx(\"flex-1 overflow-y-auto p-6\", className)} {...props} />\n);\n\nconst SheetHeader = ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => (\n\t<div className={cx(\"shrink-0 border-b border-gray-300 px-6 py-4\", className)} {...props} />\n);\n\nconst SheetFooter = ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => (\n\t<div className={cx(\"shrink-0 border-t border-gray-300 px-6 py-2.5\", className)} {...props} />\n);\n\nconst SheetTitle = forwardRef<\n\tElementRef<typeof SheetPrimitive.Title>,\n\tComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n\t<SheetPrimitive.Title ref={ref} className={cx(\"text-lg font-semibold text-gray-900\", className)} {...props} />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = forwardRef<\n\tElementRef<typeof SheetPrimitive.Description>,\n\tComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n\t<SheetPrimitive.Description ref={ref} className={cx(\"text-sm text-gray-600\", className)} {...props} />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n\tSheet,\n\tSheetBody,\n\tSheetClose,\n\tSheetContent,\n\tSheetDescription,\n\tSheetFooter,\n\tSheetHeader,\n\tSheetOverlay,\n\tSheetPortal,\n\tSheetTitle,\n\tSheetTrigger,\n};\n","export { Skeleton } from \"./src/skeleton\";\n","import { HTMLAttributes } from \"react\";\nimport { cx } from \"../../core\";\n\ntype Props = Exclude<HTMLAttributes<HTMLDivElement>, \"children\">;\n\nfunction Skeleton({ className, ...props }: Props) {\n\treturn <div className={cx(\"animate-pulse rounded-md bg-gray-200\", className)} {...props} />;\n}\n\nexport { Skeleton };\n","export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption } from \"./src/table\";\n","import { forwardRef, HTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from \"react\";\nimport { cx } from \"../../core\";\n\nconst Table = forwardRef<HTMLTableElement, HTMLAttributes<HTMLTableElement>>(({ className, ...props }, ref) => (\n\t<div className=\"relative w-full overflow-auto\">\n\t\t<table ref={ref} className={cx(\"w-full caption-bottom text-sm\", className)} {...props} />\n\t</div>\n));\nTable.displayName = \"Table\";\n\nconst TableHeader = forwardRef<HTMLTableSectionElement, HTMLAttributes<HTMLTableSectionElement>>(\n\t({ className, ...props }, ref) => (\n\t\t<thead ref={ref} className={cx(\"bg-background [&_tr]:border-b\", className)} {...props} />\n\t),\n);\nTableHeader.displayName = \"TableHeader\";\n\nconst TableBody = forwardRef<HTMLTableSectionElement, HTMLAttributes<HTMLTableSectionElement>>(\n\t({ className, ...props }, ref) => (\n\t\t<tbody ref={ref} className={cx(\"[&_tr:last-child]:border-0\", className)} {...props} />\n\t),\n);\nTableBody.displayName = \"TableBody\";\n\nconst TableFooter = forwardRef<HTMLTableSectionElement, HTMLAttributes<HTMLTableSectionElement>>(\n\t({ className, ...props }, ref) => (\n\t\t<tfoot\n\t\t\tref={ref}\n\t\t\tclassName={cx(\"border-t border-gray-300 bg-gray-50/50 font-medium [&>tr]:last:border-b-0\", className)}\n\t\t\t{...props}\n\t\t/>\n\t),\n);\nTableFooter.displayName = \"TableFooter\";\n\nconst TableRow = forwardRef<HTMLTableRowElement, HTMLAttributes<HTMLTableRowElement>>(\n\t({ className, ...props }, ref) => (\n\t\t<tr\n\t\t\tref={ref}\n\t\t\tclassName={cx(\"border-b border-gray-300 hover:bg-muted/50 data-[state=selected]:bg-muted\", className)}\n\t\t\t{...props}\n\t\t/>\n\t),\n);\nTableRow.displayName = \"TableRow\";\n\nconst TableHead = forwardRef<HTMLTableCellElement, ThHTMLAttributes<HTMLTableCellElement>>(\n\t({ className, ...props }, ref) => (\n\t\t<th\n\t\t\tref={ref}\n\t\t\tclassName={cx(\n\t\t\t\t\"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t),\n);\nTableHead.displayName = \"TableHead\";\n\nconst TableCell = forwardRef<HTMLTableCellElement, TdHTMLAttributes<HTMLTableCellElement>>(\n\t({ className, ...props }, ref) => (\n\t\t<td ref={ref} className={cx(\"p-4 align-middle [&:has([role=checkbox])]:pr-0\", className)} {...props} />\n\t),\n);\nTableCell.displayName = \"TableCell\";\n\nconst TableCaption = forwardRef<HTMLTableCaptionElement, HTMLAttributes<HTMLTableCaptionElement>>(\n\t({ className, ...props }, ref) => (\n\t\t<caption ref={ref} className={cx(\"border-t border-gray-300 py-4 text-sm text-gray-500\", className)} {...props} />\n\t),\n);\nTableCaption.displayName = \"TableCaption\";\n\nexport { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };\n","export { TextArea } from \"./src/text-area\";\n\nexport type { TextAreaProps } from \"./src/text-area\";\n","import { VariantProps } from \"@/types/src/variant-props\";\nimport { cva } from \"class-variance-authority\";\nimport { forwardRef } from \"react\";\nimport type { TextareaHTMLAttributes } from \"react\";\nimport { cx } from \"../../core\";\n\nconst textAreaVariants = cva(\n\t\"flex min-h-16 w-full rounded-md border border-input bg-white dark:bg-gray-50 px-3 py-2 shadow-sm focus-visible:outline-none focus-visible:ring-4 disabled:pointer-events-none disabled:opacity-50 sm:text-sm\",\n\t{\n\t\tvariants: {\n\t\t\tstate: {\n\t\t\t\tdefault: \"text-gray-900 border-gray-300 placeholder:text-gray-400 focus:border-blue-600 focus:ring-blue-500/25\",\n\t\t\t\tdanger: \"border-red-600 focus:border-red-600 focus:ring-red-500/25\",\n\t\t\t},\n\t\t\tappearance: {\n\t\t\t\tmonospaced: \"font-mono text-[0.9375rem] sm:text-[0.8125rem]\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tstate: \"default\",\n\t\t},\n\t},\n);\n\ntype TextAreaVariants = VariantProps<typeof textAreaVariants>;\n\nexport type TextAreaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & Pick<TextAreaVariants, \"appearance\">;\n\nconst TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(({ appearance, className, ...props }, ref) => {\n\tconst state = props[\"aria-invalid\"] ? \"danger\" : \"default\";\n\treturn <textarea className={cx(textAreaVariants({ appearance, state }), className)} ref={ref} {...props} />;\n});\nTextArea.displayName = \"TextArea\";\n\nexport { TextArea };\n","export { PreventWrongThemeFlash, ThemeProvider } from \"./src/theme-provider\";\n\nexport { isTheme, preventWrongThemeFlashScriptContent, theme, useTheme } from \"./src/theme-provider\";\n\nexport type { Theme, ThemeProviderProps } from \"./src/theme-provider\";\n","import type { PropsWithChildren } from \"react\";\nimport { createContext, useContext, useEffect, useMemo, useState } from \"react\";\nimport invariant from \"tiny-invariant\";\n\n/**\n * prefersDarkModeMediaQuery is the media query used to detect if the user prefers dark mode.\n */\nconst prefersDarkModeMediaQuery = \"(prefers-color-scheme: dark)\" as const;\n\n/**\n * prefersHighContrastMediaQuery is the media query used to detect if the user prefers high contrast mode.\n */\nconst prefersHighContrastMediaQuery = \"(prefers-contrast: more)\" as const;\n\n/**\n * themes is a tuple of valid themes.\n */\nconst themes = [\"system\", \"light\", \"dark\", \"light-high-contrast\", \"dark-high-contrast\"] as const;\n\n/**\n * Theme is a string literal type that represents a valid theme.\n */\ntype Theme = (typeof themes)[number];\n\n/**\n * theme is a helper which translates the Theme type into a string literal type.\n */\nconst theme = (value: Theme) => value;\n\n/**\n * Type predicate that checks if a value is a valid theme.\n */\nfunction isTheme(value: unknown): value is Theme {\n\tif (typeof value !== \"string\") {\n\t\treturn false;\n\t}\n\n\treturn themes.includes(value as Theme);\n}\n\n/**\n * DEFAULT_STORAGE_KEY is the default key used to store the theme in localStorage.\n */\nconst DEFAULT_STORAGE_KEY = \"mantle-ui-theme\" as const;\n\n/**\n * ThemeProviderState is the shape of the state returned by the ThemeProviderContext.\n */\ntype ThemeProviderState = [theme: Theme, setTheme: (theme: Theme) => void];\n\n/**\n * Initial state for the ThemeProviderContext.\n */\nconst initialState: ThemeProviderState = [\"system\", () => null];\n\n/**\n * ThemeProviderContext is a React Context that provides the current theme and a function to set the theme.\n */\nconst ThemeProviderContext = createContext<ThemeProviderState>(initialState);\n\n/**\n * isBrowser returns true if the code is running in a browser environment.\n */\nconst isBrowser = () => typeof window !== \"undefined\";\n\n/**\n * Gets the stored theme from localStorage or returns the default theme if no theme is stored.\n */\nfunction getStoredTheme(storageKey: string, defaultTheme: Theme = \"system\") {\n\tconst fallbackTheme = defaultTheme ?? \"system\";\n\tif (isBrowser()) {\n\t\tconst storedTheme = window.localStorage.getItem(storageKey);\n\t\treturn isTheme(storedTheme) ? storedTheme : fallbackTheme;\n\t}\n\treturn fallbackTheme;\n}\n\ntype ThemeProviderProps = PropsWithChildren & {\n\tdefaultTheme?: Theme;\n\tstorageKey?: string;\n};\n\n/**\n * ThemeProvider is a React Context Provider that provides the current theme and a function to set the theme.\n */\nfunction ThemeProvider({ children, defaultTheme = \"system\", storageKey = DEFAULT_STORAGE_KEY }: ThemeProviderProps) {\n\tconst [theme, setTheme] = useState<Theme>(() => {\n\t\tconst initialTheme = getStoredTheme(storageKey, defaultTheme);\n\t\tapplyTheme(initialTheme);\n\t\treturn initialTheme;\n\t});\n\n\tuseEffect(() => {\n\t\tconst storedTheme = getStoredTheme(storageKey, defaultTheme);\n\t\tsetTheme(storedTheme);\n\t\tapplyTheme(storedTheme);\n\t}, [defaultTheme, storageKey]);\n\n\tuseEffect(() => {\n\t\tconst prefersDarkMql = window.matchMedia(prefersDarkModeMediaQuery);\n\t\tconst prefersHighContrastMql = window.matchMedia(prefersHighContrastMediaQuery);\n\n\t\tconst onChange = () => {\n\t\t\tconst storedTheme = getStoredTheme(storageKey, defaultTheme);\n\n\t\t\t// If the stored theme is not \"system\", then the user has explicitly set a theme and we should not\n\t\t\t// automatically change the theme when the user's system preferences change.\n\t\t\tif (storedTheme !== \"system\") {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tapplyTheme(\"system\");\n\t\t};\n\n\t\tprefersDarkMql.addEventListener(\"change\", onChange);\n\t\tprefersHighContrastMql.addEventListener(\"change\", onChange);\n\n\t\treturn () => {\n\t\t\tprefersDarkMql.removeEventListener(\"change\", onChange);\n\t\t\tprefersHighContrastMql.removeEventListener(\"change\", onChange);\n\t\t};\n\t}, [defaultTheme, storageKey]);\n\n\tconst value: ThemeProviderState = useMemo(\n\t\t() => [\n\t\t\ttheme,\n\t\t\t(theme: Theme) => {\n\t\t\t\twindow.localStorage.setItem(storageKey, theme);\n\t\t\t\tsetTheme(theme);\n\t\t\t\tapplyTheme(theme);\n\t\t\t},\n\t\t],\n\t\t[storageKey, theme],\n\t);\n\n\treturn <ThemeProviderContext.Provider value={value}>{children}</ThemeProviderContext.Provider>;\n}\n\n/**\n * useTheme returns the current theme and a function to set the theme.\n *\n * @note This function will throw an error if used outside of a ThemeProvider context tree.\n */\nfunction useTheme() {\n\tconst context = useContext(ThemeProviderContext);\n\n\tinvariant(context, \"useTheme must be used within a ThemeProvider\");\n\n\treturn context;\n}\n\n/**\n * Applies the given theme to the <html> element.\n */\nfunction applyTheme(theme: Theme) {\n\tif (!isBrowser()) {\n\t\treturn;\n\t}\n\n\tconst htmlElement = window.document.documentElement;\n\thtmlElement.classList.remove(...themes);\n\tconst prefersDarkMode = window.matchMedia(prefersDarkModeMediaQuery).matches;\n\tconst prefersHighContrast = window.matchMedia(prefersHighContrastMediaQuery).matches;\n\tconst newTheme = theme === \"system\" ? determineThemeFromMediaQuery({ prefersDarkMode, prefersHighContrast }) : theme;\n\thtmlElement.classList.add(newTheme);\n\thtmlElement.dataset.appliedTheme = newTheme;\n\thtmlElement.dataset.theme = theme;\n}\n\n/**\n * determineThemeFromMediaQuery returns the theme that should be used based on the user's media query preferences.\n * @private\n */\nexport function determineThemeFromMediaQuery({\n\tprefersDarkMode,\n\tprefersHighContrast,\n}: {\n\tprefersDarkMode: boolean;\n\tprefersHighContrast: boolean;\n}) {\n\tif (prefersHighContrast) {\n\t\treturn prefersDarkMode ? \"dark-high-contrast\" : \"light-high-contrast\";\n\t}\n\n\treturn prefersDarkMode ? \"dark\" : \"light\";\n}\n\nfunction preventWrongThemeFlashScriptContent({\n\tdefaultTheme = \"system\",\n\tstorageKey = DEFAULT_STORAGE_KEY,\n}: {\n\tdefaultTheme?: Theme;\n\tstorageKey?: string;\n}) {\n\treturn `\n(function() {\n\tconst themes = ${JSON.stringify(themes)};\n\tconst isTheme = (value) => typeof value === \"string\" && themes.includes(value);\n\tconst fallbackTheme = \"${defaultTheme}\" ?? \"system\";\n\tconst maybeStoredTheme = window.localStorage.getItem(\"${storageKey}\");\n\tconst hasStoredTheme = isTheme(maybeStoredTheme);\n\tif (!hasStoredTheme) {\n\t\twindow.localStorage.setItem(\"${storageKey}\", fallbackTheme);\n\t}\n\tconst themePreference = hasStoredTheme ? maybeStoredTheme : fallbackTheme;\n\tconst prefersDarkMode = window.matchMedia(\"${prefersDarkModeMediaQuery}\").matches;\n\tconst prefersHighContrast = window.matchMedia(\"${prefersHighContrastMediaQuery}\").matches;\n\tlet initialTheme = themePreference;\n\tif (initialTheme === \"system\") {\n\t\tif (prefersHighContrast) {\n\t\t\tinitialTheme = prefersDarkMode ? \"dark-high-contrast\" : \"light-high-contrast\";\n\t\t} else {\n\t\t\tinitialTheme = prefersDarkMode ? \"dark\" : \"light\";\n\t\t}\n\t}\n\tconst htmlElement = document.documentElement;\n\thtmlElement.classList.remove(...themes);\n\thtmlElement.classList.add(initialTheme);\n\thtmlElement.dataset.appliedTheme = initialTheme;\n\thtmlElement.dataset.theme = themePreference;\n})();\n`.trim();\n}\n\n/**\n * PreventWrongThemeFlash is a React component that prevents the wrong theme from flashing on initial page load.\n * Render as high as possible in the DOM, preferably in the <head> element.\n */\nconst PreventWrongThemeFlash = ({\n\tdefaultTheme = \"system\",\n\tstorageKey = DEFAULT_STORAGE_KEY,\n}: {\n\tdefaultTheme?: Theme;\n\tstorageKey?: string;\n}) => (\n\t<script\n\t\tdangerouslySetInnerHTML={{\n\t\t\t__html: preventWrongThemeFlashScriptContent({ defaultTheme, storageKey }),\n\t\t}}\n\t/>\n);\n\nexport type { Theme, ThemeProviderProps };\nexport { isTheme, preventWrongThemeFlashScriptContent, PreventWrongThemeFlash, ThemeProvider, theme, useTheme };\n","export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from \"./src/tooltip\";\n","import { Content, Provider, Root, Trigger } from \"@radix-ui/react-tooltip\";\nimport { ComponentPropsWithoutRef, ElementRef, forwardRef } from \"react\";\nimport { cx } from \"../../core\";\n\nconst TooltipProvider = Provider;\n\nconst Tooltip = Root;\n\nconst TooltipTrigger = Trigger;\n\nconst TooltipContent = forwardRef<ElementRef<typeof Content>, ComponentPropsWithoutRef<typeof Content>>(\n\t({ className, sideOffset = 4, ...props }, ref) => (\n\t\t<Content\n\t\t\tref={ref}\n\t\t\tsideOffset={sideOffset}\n\t\t\tclassName={cx(\n\t\t\t\t\"z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t),\n);\nTooltipContent.displayName = Content.displayName;\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };\n","export type { WithAsChild } from \"./src/as-child\";\nexport type { WithStyleProps } from \"./src/with-style-props\";\n"],"names":[],"version":3,"file":"index.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AG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AEjD,OAAO,mCAAa,OAAO;yBAAE;6BAAiB;IAAoB;AACnE;AAMO,SAAS,0CAA6B,mBAC5C,eAAe,uBACf,mBAAmB,EAInB;IACA,IAAI,qBACH,OAAO,kBAAkB,uBAAuB;IAGjD,OAAO,kBAAkB,SAAS;AACnC;AAEA,SAAS,0CAAoC,gBAC5C,eAAe,sBACf,aAAa,2CAIb;IACA,OAAO,CAAC;;gBAEO,EAAE,KAAK,SAAS,CAAC,8BAAQ;;wBAEjB,EAAE,aAAa;uDACgB,EAAE,WAAW;;;+BAGrC,EAAE,WAAW;;;4CAGA,EAAE,gDAA0B;gDACxB,EAAE,oDAA8B;;;;;;;;;;;;;;;AAehF,CAAC,CAAC,IAAI;AACN;AAEA;;;CAGC,GACD,MAAM,2CAAyB,CAAC,gBAC/B,eAAe,sBACf,aAAa,2CAIb,iBACA,gBAAC;QACA,yBAAyB;YACxB,QAAQ,0CAAoC;8BAAE;4BAAc;YAAW;QACxE;;;;;;;;;;;;;;;;AGvQF,MAAM,4CAAkB,CAAA,GAAA,eAAO;AAE/B,MAAM,4CAAU,CAAA,GAAA,YAAG;AAEnB,MAAM,4CAAiB,CAAA,GAAA,eAAM;AAE7B,MAAM,0DAAiB,CAAA,GAAA,iBAAS,EAC/B,CAAC,aAAE,SAAS,cAAE,aAAa,GAAG,GAAG,OAAO,EAAE,oBACzC,gBAAC,CAAA,GAAA,eAAM;QACN,KAAK;QACL,YAAY;QACZ,WAAW,CAAA,GAAA,yCAAC,EACX,mYACA;QAEA,GAAG,KAAK;;AAIZ,0CAAe,WAAW,GAAG,CAAA,GAAA,eAAM,EAAE,WAAW;;;;;;;","sources":["components/index.tsx","components/alert/index.tsx","components/alert/src/alert.tsx","components/core/src/cx.ts","components/anchor/index.tsx","components/anchor/src/anchor.tsx","components/button/index.tsx","components/button/src/button.tsx","components/card/index.tsx","components/card/src/card.tsx","components/code-block/index.tsx","components/code-block/src/code-block.tsx","components/code-block/src/supported-languages.ts","components/code-block/src/code.ts","components/code-block/src/parse-metastring.ts","components/core/index.ts","components/dropdown-menu/index.tsx","components/dropdown-menu/src/dropdown-menu.tsx","components/inline-code/index.tsx","components/inline-code/src/inline-code.tsx","components/input/index.tsx","components/input/src/input.tsx","components/media-object/index.tsx","components/media-object/src/media-object.tsx","components/password-input/index.tsx","components/password-input/src/password-input.tsx","components/popover/index.tsx","components/popover/src/popover.tsx","components/select/index.tsx","components/select/src/select.tsx","components/sheet/index.tsx","components/sheet/src/sheet.tsx","components/skeleton/index.tsx","components/skeleton/src/skeleton.tsx","components/table/index.tsx","components/table/src/table.tsx","components/text-area/index.tsx","components/text-area/src/text-area.tsx","components/theme-provider/index.tsx","components/theme-provider/src/theme-provider.tsx","components/hooks/use-matches-media-query.tsx","components/tooltip/index.tsx","components/tooltip/src/tooltip.tsx","components/types/index.ts"],"sourcesContent":["export * from \"./alert\";\nexport * from \"./anchor\";\nexport * from \"./button\";\nexport * from \"./card\";\nexport * from \"./code-block\";\nexport * from \"./core\";\nexport * from \"./dropdown-menu\";\nexport * from \"./inline-code\";\nexport * from \"./input\";\nexport * from \"./media-object\";\nexport * from \"./password-input\";\nexport * from \"./popover\";\nexport * from \"./select\";\nexport * from \"./sheet\";\nexport * from \"./skeleton\";\nexport * from \"./table\";\nexport * from \"./text-area\";\nexport * from \"./theme-provider\";\nexport * from \"./tooltip\";\n\n// types exports\nexport * from \"./types\";\n","export { Alert, AlertContent, AlertTitle, AlertDescription } from \"./src/alert\";\n","import type { VariantProps } from \"@/types/src/variant-props\";\nimport { cva } from \"class-variance-authority\";\nimport { forwardRef } from \"react\";\nimport type { HTMLAttributes } from \"react\";\nimport { cx } from \"../../core\";\n\nconst alertVariants = cva(\"relative w-full rounded-lg border px-4 py-3 text-sm flex gap-4\", {\n\tvariants: {\n\t\tpriority: {\n\t\t\tdanger: \"border-red-600 text-red-600 bg-red-50\",\n\t\t\tdefault: \"bg-white text-gray-900 border-black\",\n\t\t\tinfo: \"border-blue-600 bg-blue-50 text-blue-600\",\n\t\t\tsuccess: \"border-green-600 bg-green-50 text-green-600\",\n\t\t\twarning: \"border-amber-600 bg-amber-50 text-amber-600\",\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tpriority: \"default\",\n\t},\n});\n\ntype AlertVariants = VariantProps<typeof alertVariants>;\n\nconst Alert = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement> & AlertVariants>(\n\t({ className, priority, ...props }, ref) => (\n\t\t<div ref={ref} className={cx(alertVariants({ priority }), className)} {...props} />\n\t),\n);\nAlert.displayName = \"Alert\";\n\nconst AlertContent = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (\n\t<div ref={ref} className={cx(\"min-w-0 flex-1\", className)} {...props} />\n));\nAlertContent.displayName = \"AlertContent\";\n\nconst AlertTitle = forwardRef<HTMLParagraphElement, HTMLAttributes<HTMLHeadingElement>>(\n\t({ className, ...props }, ref) => (\n\t\t<h5 ref={ref} className={cx(\"mb-1 font-medium leading-none tracking-tight\", className)} {...props} />\n\t),\n);\nAlertTitle.displayName = \"AlertTitle\";\n\nconst AlertDescription = forwardRef<HTMLParagraphElement, HTMLAttributes<HTMLParagraphElement>>(\n\t({ className, ...props }, ref) => (\n\t\t<div ref={ref} className={cx(\"text-sm [&_p]:leading-relaxed\", className)} {...props} />\n\t),\n);\nAlertDescription.displayName = \"AlertDescription\";\n\nexport { Alert, AlertContent, AlertTitle, AlertDescription };\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/**\n * Conditionally add Tailwind (and other) CSS classes.\n *\n * Allows for tailwind overrides in LTR-specificity-like order of applied classes.\n */\nexport function cx(...inputs: ClassValue[]) {\n\treturn twMerge(clsx(inputs));\n}\n","export { Anchor, anchorClassNames } from \"./src/anchor\";\n","import { Slot } from \"@radix-ui/react-slot\";\nimport { AnchorHTMLAttributes, forwardRef } from \"react\";\nimport { cx } from \"../../core\";\nimport { WithAsChild } from \"../../types/src/as-child\";\n\nconst anchorClassNames = (className: string | undefined) =>\n\tcx(\n\t\t\"text-blue-600 focus-visible:ring-blue-600/25 cursor-pointer rounded bg-transparent focus:outline-none focus-visible:ring hover:underline\",\n\t\tclassName,\n\t);\n\ntype AnchorProps = AnchorHTMLAttributes<HTMLAnchorElement> & WithAsChild;\n\n/**\n * Fundamental component for rendering links to external addresses.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a\n *\n * @note If you need to link to an internal application route, prefer using the\n * [`react-router-dom` `<Link>`](https://reactrouter.com/en/main/components/link) or the\n * [`@remix-run/react` `<Link>`](https://remix.run/docs/en/main/components/link).\n */\nconst Anchor = forwardRef<HTMLAnchorElement, AnchorProps>(({ asChild, className, ...props }, ref) => {\n\tconst Component = asChild ? Slot : \"a\";\n\n\treturn <Component className={anchorClassNames(className)} ref={ref} {...props} />;\n});\nAnchor.displayName = \"Anchor\";\n\nexport { Anchor, anchorClassNames };\n","export { Button } from \"./src/button\";\n\nexport type { ButtonProps } from \"./src/button\";\n","import { Slot } from \"@radix-ui/react-slot\";\nimport { cva } from \"class-variance-authority\";\nimport { forwardRef, type ButtonHTMLAttributes } from \"react\";\nimport { cx } from \"../../core\";\nimport type { WithAsChild } from \"../../types/src/as-child\";\nimport type { VariantProps } from \"../../types/src/variant-props\";\n\nconst buttonVariants = cva(\n\t\"inline-flex items-center justify-center rounded-md font-medium focus-visible:outline-none focus-visible:ring-4 disabled:pointer-events-none disabled:opacity-50 h-11 sm:h-9 px-3 border whitespace-nowrap sm:text-sm\",\n\t{\n\t\tvariants: {\n\t\t\tappearance: {\n\t\t\t\toutline:\n\t\t\t\t\t\"bg-white dark:bg-gray-50 border-blue-600 text-blue-600 hover:bg-blue-500/5 dark:hover:bg-blue-500/5 active:bg-blue-500/10 focus-visible:ring-blue-500/25\",\n\t\t\t\tsolid:\n\t\t\t\t\t\"border-transparent bg-blue-500 text-button hover:bg-blue-600 dark:hover:bg-blue-400 active:bg-blue-700 dark:active:bg-blue-300 focus-visible:border-blue-600 focus-visible:ring-blue-500/25\",\n\t\t\t\tghost:\n\t\t\t\t\t\"border-transparent text-blue-600 hover:bg-blue-500/5 active:bg-blue-500/10 focus-visible:ring-blue-500/25\",\n\t\t\t},\n\t\t\tpriority: {\n\t\t\t\tdefault: \"\",\n\t\t\t\tdanger: \"\",\n\t\t\t\tmuted: \"\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tappearance: \"ghost\",\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tappearance: \"ghost\",\n\t\t\t\tpriority: \"danger\",\n\t\t\t\tclass: \"border-transparent text-red-600 hover:bg-red-500/5 active:bg-red-500/10 focus-visible:ring-red-500/25\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tappearance: \"outline\",\n\t\t\t\tpriority: \"danger\",\n\t\t\t\tclass:\n\t\t\t\t\t\"bg-white dark:bg-gray-50 border-red-600 text-red-600 dark:hover:bg-red-500/5 hover:bg-red-500/5 active:bg-red-500/10 focus-visible:ring-red-500/25\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tappearance: \"solid\",\n\t\t\t\tpriority: \"danger\",\n\t\t\t\tclass:\n\t\t\t\t\t\"border-transparent bg-red-500 hover:bg-red-600 active:bg-red-700 focus-visible:ring-red-500/25 focus-visible:border-red-600 dark:hover:bg-red-400 dark:active:bg-red-300\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tappearance: \"ghost\",\n\t\t\t\tpriority: \"muted\",\n\t\t\t\tclass:\n\t\t\t\t\t\"border-transparent text-gray-900 hover:bg-gray-500/5 active:bg-gray-500/10 focus-visible:ring-blue-500/25\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tappearance: \"outline\",\n\t\t\t\tpriority: \"muted\",\n\t\t\t\tclass:\n\t\t\t\t\t\"bg-white dark:bg-gray-50 border-gray-300 text-gray-900 hover:bg-gray-500/5 dark:hover:bg-gray-500/5 active:bg-gray-500/10 focus-visible:ring-blue-500/25 focus-visible:border-blue-600\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tappearance: \"solid\",\n\t\t\t\tpriority: \"muted\",\n\t\t\t\tclass:\n\t\t\t\t\t\"border-transparent bg-gray-500 hover:bg-gray-600 active:bg-gray-700 focus-visible:ring-gray-500/25 focus-visible:border-gray-600 dark:hover:bg-gray-400 dark:active:bg-gray-300\",\n\t\t\t},\n\t\t],\n\t},\n);\n\ntype ButtonVariants = VariantProps<typeof buttonVariants>;\n\n/**\n * The props for the `Button` component.\n */\nexport type ButtonProps = WithAsChild & ButtonHTMLAttributes<HTMLButtonElement> & ButtonVariants;\n\n/**\n * Renders a button or a component that looks like a button, an interactive\n * element activated by a user with a mouse, keyboard, finger, voice command, or\n * other assistive technology. Once activated, it then performs an action, such\n * as submitting a form or opening a dialog.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button\n */\nconst Button = forwardRef<HTMLButtonElement, ButtonProps>(\n\t({ className, appearance = \"ghost\", priority = \"default\", asChild = false, ...props }, ref) => {\n\t\tconst Comp = asChild ? Slot : \"button\";\n\n\t\treturn <Comp className={cx(buttonVariants({ appearance, priority, className }))} ref={ref} {...props} />;\n\t},\n);\nButton.displayName = \"Button\";\n\nexport { Button, buttonVariants };\n","export { Card, CardBody, CardFooter, CardHeader, CardTitle } from \"./src/card\";\n\nexport type { CardProps, CardTitleProps } from \"./src/card\";\n","import { Slot } from \"@radix-ui/react-slot\";\nimport type { HTMLAttributes } from \"react\";\nimport { forwardRef } from \"react\";\nimport { cx } from \"../../core\";\nimport type { WithAsChild } from \"../../types/src/as-child\";\n\nexport type CardProps = HTMLAttributes<HTMLDivElement>;\n\n/**\n * A container that can be used to display content in a box resembling a playing\n * card.\n */\nexport const Card = forwardRef<HTMLDivElement, CardProps>(({ className, children, ...rest }, ref) => (\n\t<div\n\t\tref={ref}\n\t\tclassName={cx(\"relative rounded-md border border-gray-300 bg-white dark:bg-gray-50\", className)}\n\t\t{...rest}\n\t>\n\t\t{children}\n\t</div>\n));\nCard.displayName = \"Card\";\n\n/**\n * The main content of a card. Usually composed as a direct child of a `Card` component.\n */\nexport const CardBody = forwardRef<HTMLDivElement, CardProps>(({ className, children, ...rest }, ref) => (\n\t<div ref={ref} className={cx(\"p-6\", className)} {...rest}>\n\t\t{children}\n\t</div>\n));\nCardBody.displayName = \"CardBody\";\n\n/**\n * The footer container of a card. Usually composed as a direct child of a `Card` component.\n */\nexport const CardFooter = forwardRef<HTMLDivElement, CardProps>(({ className, children, ...rest }, ref) => (\n\t<div ref={ref} className={cx(\"border-t border-gray-300 px-6 py-3\", className)} {...rest}>\n\t\t{children}\n\t</div>\n));\nCardFooter.displayName = \"CardFooter\";\n\n/**\n * The header container of a card. Usually composed as a direct child of a `Card` component.\n */\nexport const CardHeader = forwardRef<HTMLDivElement, CardProps>(({ className, children, ...rest }, ref) => (\n\t<div ref={ref} className={cx(\"border-b border-gray-300 px-6 py-3\", className)} {...rest}>\n\t\t{children}\n\t</div>\n));\nCardHeader.displayName = \"CardHeader\";\n\nexport type CardTitleProps = HTMLAttributes<HTMLHeadingElement> & WithAsChild;\n\n/**\n * The title of a card. Usually composed as a direct child of a `CardHeader` component.\n */\nexport const CardTitle = forwardRef<HTMLParagraphElement, CardTitleProps>(({ className, asChild, ...props }, ref) => {\n\tconst Comp = asChild ? Slot : \"h3\";\n\treturn <Comp ref={ref} className={cx(\"font-semibold leading-none tracking-tight\", className)} {...props} />;\n});\nCardTitle.displayName = \"CardTitle\";\n","export {\n\tCodeBlock,\n\tCodeBlockBody,\n\tCodeBlockCode,\n\tCodeBlockCopyButton,\n\tCodeBlockExpanderButton,\n\tCodeBlockHeader,\n\tCodeBlockTitle,\n} from \"./src/code-block\";\n\nexport { code } from \"./src/code\";\nexport { parseMetastring } from \"./src/parse-metastring\";\nexport { isSupportedLanguage, parseLanguage } from \"./src/supported-languages\";\n","import { Slot } from \"@radix-ui/react-slot\";\nimport Prism from \"prismjs\";\nimport {\n\tcreateContext,\n\tDispatch,\n\tElementRef,\n\tforwardRef,\n\tHTMLAttributes,\n\tSetStateAction,\n\tuseContext,\n\tuseEffect,\n\tuseId,\n\tuseMemo,\n\tuseRef,\n\tuseState,\n} from \"react\";\nimport \"prismjs/components/prism-bash.js\";\nimport \"prismjs/components/prism-jsx.js\";\nimport \"prismjs/components/prism-tsx.js\";\nimport { CaretDown } from \"@phosphor-icons/react/CaretDown\";\nimport { Check } from \"@phosphor-icons/react/Check\";\nimport { Copy } from \"@phosphor-icons/react/Copy\";\nimport { useCopyToClipboard } from \"@uidotdev/usehooks\";\nimport assert from \"tiny-invariant\";\nimport { cx } from \"../../core\";\nimport type { WithStyleProps } from \"../../types/src/with-style-props\";\nimport { LineRange } from \"./line-numbers\";\nimport { formatLanguageClassName, type SupportedLanguage } from \"./supported-languages\";\n\n/**\n * TODO(cody):\n * - fix line numbers, maybe try grid instead of :before and flex?\n * - fix line hightlighting\n * - fix line wrapping? horizontal scrolling has problems w/ line highlighting :(\n */\n\ntype CodeBlockContextType = {\n\tcodeId: string | undefined;\n\tcopyText: string;\n\thasCodeExpander: boolean;\n\tisCodeExpanded: boolean;\n\tregisterCodeId: (id: string) => void;\n\tsetCopyText: (newCopyText: string) => void;\n\tsetHasCodeExpander: (value: boolean) => void;\n\tsetIsCodeExpanded: Dispatch<SetStateAction<boolean>>;\n\tunregisterCodeId: (id: string) => void;\n};\n\nconst CodeBlockContext = createContext<CodeBlockContextType>({\n\tcodeId: undefined,\n\tcopyText: \"\",\n\thasCodeExpander: false,\n\tisCodeExpanded: false,\n\tregisterCodeId: () => {},\n\tsetCopyText: () => {},\n\tsetHasCodeExpander: () => {},\n\tsetIsCodeExpanded: () => {},\n\tunregisterCodeId: () => {},\n});\n\nconst CodeBlock = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => {\n\tconst [copyText, setCopyText] = useState(\"\");\n\tconst [hasCodeExpander, setHasCodeExpander] = useState(false);\n\tconst [isCodeExpanded, setIsCodeExpanded] = useState(false);\n\tconst [codeId, setCodeId] = useState<string | undefined>(undefined);\n\n\tconst context: CodeBlockContextType = useMemo(\n\t\t() =>\n\t\t\t({\n\t\t\t\tcodeId,\n\t\t\t\tcopyText,\n\t\t\t\thasCodeExpander,\n\t\t\t\tisCodeExpanded,\n\t\t\t\tregisterCodeId: (id) => {\n\t\t\t\t\tsetCodeId((old) => {\n\t\t\t\t\t\tassert(old == null, \"You can only render a single CodeBlockCode within a CodeBlock.\");\n\t\t\t\t\t\treturn id;\n\t\t\t\t\t});\n\t\t\t\t},\n\t\t\t\tsetCopyText,\n\t\t\t\tsetHasCodeExpander,\n\t\t\t\tsetIsCodeExpanded,\n\t\t\t\tunregisterCodeId: (id) => {\n\t\t\t\t\tsetCodeId((old) => {\n\t\t\t\t\t\tassert(old === id, \"You can only render a single CodeBlockCode within a CodeBlock.\");\n\t\t\t\t\t\treturn undefined;\n\t\t\t\t\t});\n\t\t\t\t},\n\t\t\t}) as const,\n\t\t[codeId, copyText, hasCodeExpander, isCodeExpanded],\n\t);\n\n\treturn (\n\t\t<CodeBlockContext.Provider value={context}>\n\t\t\t<div\n\t\t\t\tclassName={cx(\n\t\t\t\t\t\"overflow-hidden rounded-md border border-gray-300 bg-gray-50 font-mono text-[0.8125rem]\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tref={ref}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</CodeBlockContext.Provider>\n\t);\n});\nCodeBlock.displayName = \"CodeBlock\";\n\nconst CodeBlockBody = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (\n\t<div className={cx(\"relative\", className)} ref={ref} {...props} />\n));\nCodeBlockBody.displayName = \"CodeBlockBody\";\n\ntype CodeBlockCodeProps = WithStyleProps & {\n\tchildren?: string | undefined;\n\thighlightLines?: (LineRange | number)[];\n\tlanguage?: SupportedLanguage;\n\tshowLineNumbers?: boolean;\n};\n\nconst CodeBlockCode = forwardRef<HTMLPreElement, CodeBlockCodeProps>((props, ref) => {\n\tconst { children, className, language = \"sh\", style } = props;\n\tconst innerPreRef = useRef<ElementRef<\"pre\">>();\n\tconst id = useId();\n\tconst { hasCodeExpander, isCodeExpanded, registerCodeId, setCopyText, unregisterCodeId } =\n\t\tuseContext(CodeBlockContext);\n\n\t// trim any leading and trailing whitespace/empty lines\n\tconst trimmedCode = children?.trim() ?? \"\";\n\n\tuseEffect(() => {\n\t\tconst preElement = innerPreRef.current;\n\t\tif (!preElement) {\n\t\t\treturn;\n\t\t}\n\t\tPrism.highlightElement(preElement);\n\t}, [trimmedCode, children]);\n\n\tuseEffect(() => {\n\t\tsetCopyText(trimmedCode);\n\t}, [trimmedCode, setCopyText]);\n\n\tuseEffect(() => {\n\t\tregisterCodeId(id);\n\n\t\treturn () => {\n\t\t\tunregisterCodeId(id);\n\t\t};\n\t}, [id, registerCodeId, unregisterCodeId]);\n\n\treturn (\n\t\t<pre\n\t\t\taria-expanded={hasCodeExpander ? isCodeExpanded : undefined}\n\t\t\tclassName={cx(\n\t\t\t\tformatLanguageClassName(language),\n\t\t\t\t\"scrollbar overflow-x-auto overflow-y-hidden p-4 pr-[3.375rem] firefox:after:mr-[3.375rem] firefox:after:inline-block firefox:after:content-['']\",\n\t\t\t\t\"aria-[expanded='false']:max-h-[13.6rem]\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-lang={language}\n\t\t\tid={id}\n\t\t\tref={(node) => {\n\t\t\t\tinnerPreRef.current = node ?? undefined;\n\t\t\t\treturn ref;\n\t\t\t}}\n\t\t\tstyle={{\n\t\t\t\ttabSize: 2,\n\t\t\t\tMozTabSize: 2,\n\t\t\t\t...style,\n\t\t\t}}\n\t\t>\n\t\t\t<code>{trimmedCode}</code>\n\t\t</pre>\n\t);\n});\nCodeBlockCode.displayName = \"CodeBlockCode\";\n\nconst CodeBlockHeader = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (\n\t<div\n\t\tclassName={cx(\"flex items-center gap-1 border-b border-gray-300 bg-gray-100 px-4 py-2 text-gray-700\", className)}\n\t\tref={ref}\n\t\t{...props}\n\t/>\n));\nCodeBlockHeader.displayName = \"CodeBlockHeader\";\n\nconst CodeBlockTitle = forwardRef<HTMLHeadingElement, HTMLAttributes<HTMLHeadingElement> & { asChild?: boolean }>(\n\t({ asChild = false, className, ...props }, ref) => {\n\t\tconst Comp = asChild ? Slot : \"h3\";\n\t\treturn <Comp ref={ref} className={cx(\"font-mono text-[0.8125rem] font-normal\", className)} {...props} />;\n\t},\n);\nCodeBlockTitle.displayName = \"CodeBlockTitle\";\n\ntype CodeBlockCopyButtonProps = WithStyleProps & {\n\tonCopy?: (value: string) => void;\n\tonCopyError?: (error: unknown) => void;\n};\n\nconst CodeBlockCopyButton = forwardRef<HTMLButtonElement, CodeBlockCopyButtonProps>(\n\t({ className, onCopy, onCopyError, style }, ref) => {\n\t\tconst { copyText } = useContext(CodeBlockContext);\n\t\tconst [, copyToClipboard] = useCopyToClipboard();\n\t\tconst [copied, setCopied] = useState(false);\n\n\t\tuseEffect(() => {\n\t\t\tif (copied) {\n\t\t\t\tconst timeoutId = window.setTimeout(() => {\n\t\t\t\t\tsetCopied(false);\n\t\t\t\t}, 2000);\n\n\t\t\t\treturn () => {\n\t\t\t\t\tclearTimeout(timeoutId);\n\t\t\t\t};\n\t\t\t}\n\t\t}, [copied]);\n\n\t\treturn (\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclassName={cx(\n\t\t\t\t\t\"absolute right-3 top-3 z-10 flex h-7 w-7 items-center justify-center rounded-sm border border-gray-300 bg-gray-50 shadow-[-1rem_0_0.75rem_-0.375rem_hsl(var(--gray-050)),1rem_0_0_-0.25rem_hsl(var(--gray-050))] hover:border-gray-400 hover:bg-gray-200 focus-visible:border-blue-500 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-blue-600/25\",\n\t\t\t\t\tcopied &&\n\t\t\t\t\t\t\"w-auto gap-1 border-transparent bg-green-500 pl-2 pr-1.5 text-white hover:border-transparent hover:bg-green-500 focus:bg-green-500 focus-visible:border-green-600 focus-visible:ring-green-600/25\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tref={ref}\n\t\t\t\tstyle={style}\n\t\t\t\tonClick={async () => {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tawait copyToClipboard(copyText);\n\t\t\t\t\t\tonCopy?.(copyText);\n\t\t\t\t\t\tsetCopied(true);\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tonCopyError?.(error);\n\t\t\t\t\t}\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<span className=\"sr-only\">Copy code</span>\n\t\t\t\t{copied ? (\n\t\t\t\t\t<>\n\t\t\t\t\t\tCopied\n\t\t\t\t\t\t<Check className=\"h-4 w-4\" weight=\"bold\" />\n\t\t\t\t\t</>\n\t\t\t\t) : (\n\t\t\t\t\t<Copy className=\"-ml-px h-5 w-5\" />\n\t\t\t\t)}\n\t\t\t</button>\n\t\t);\n\t},\n);\nCodeBlockCopyButton.displayName = \"CodeBlockCopyButton\";\n\ntype CodeBlockExpanderButtonProps = Omit<\n\tHTMLAttributes<HTMLButtonElement>,\n\t\"children\" | \"aria-controls\" | \"aria-expanded\"\n>;\n\nconst CodeBlockExpanderButton = forwardRef<HTMLButtonElement, CodeBlockExpanderButtonProps>(\n\t({ className, onClick, ...props }, ref) => {\n\t\tconst { codeId, isCodeExpanded, setIsCodeExpanded, setHasCodeExpander } = useContext(CodeBlockContext);\n\n\t\tuseEffect(() => {\n\t\t\tsetHasCodeExpander(true);\n\n\t\t\treturn () => {\n\t\t\t\tsetHasCodeExpander(false);\n\t\t\t};\n\t\t}, [setHasCodeExpander]);\n\n\t\treturn (\n\t\t\t<button\n\t\t\t\t{...props}\n\t\t\t\taria-controls={codeId}\n\t\t\t\taria-expanded={isCodeExpanded}\n\t\t\t\tclassName={cx(\n\t\t\t\t\t\"bg-gray-050 flex w-full items-center justify-center gap-0.5 border-t border-gray-300 px-4 py-2 font-sans text-gray-700 hover:bg-gray-100\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tref={ref}\n\t\t\t\ttype=\"button\"\n\t\t\t\tonClick={(event) => {\n\t\t\t\t\tsetIsCodeExpanded((prev) => !prev);\n\t\t\t\t\tonClick?.(event);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{isCodeExpanded ? \"Show less\" : \"Show more\"}{\" \"}\n\t\t\t\t<CaretDown\n\t\t\t\t\tclassName={cx(\"h-4 w-4\", isCodeExpanded && \"rotate-180\", \"transition-all duration-150\")}\n\t\t\t\t\tweight=\"bold\"\n\t\t\t\t/>\n\t\t\t</button>\n\t\t);\n\t},\n);\nCodeBlockExpanderButton.displayName = \"CodeBlockExpanderButton\";\n\nexport {\n\tCodeBlock,\n\tCodeBlockBody,\n\tCodeBlockCode,\n\tCodeBlockCopyButton,\n\tCodeBlockExpanderButton,\n\tCodeBlockHeader,\n\tCodeBlockTitle,\n};\n","/**\n * List of supported languages for syntax highlighting.\n * @private\n */\nexport const supportedLanguages = [\n\t\"bash\",\n\t\"cs\",\n\t\"csharp\",\n\t\"css\",\n\t\"dotnet\",\n\t\"go\",\n\t\"html\",\n\t\"java\",\n\t\"javascript\",\n\t\"js\",\n\t\"json\",\n\t\"jsx\",\n\t\"py\",\n\t\"python\",\n\t\"rb\",\n\t\"ruby\",\n\t\"rust\",\n\t\"sh\",\n\t\"shell\",\n\t\"ts\",\n\t\"tsx\",\n\t\"typescript\",\n\t\"yaml\",\n\t\"yml\",\n] as const;\n\n/**\n * Supported languages for syntax highlighting.\n */\nexport type SupportedLanguage = (typeof supportedLanguages)[number];\n\n/**\n * Parses a markdown code block (```) language class into a SupportedLanguage.\n * Defaults to \"sh\" if no supported language is found.\n */\nexport function parseLanguage(\n\tvalue: `language-${string}` | `lang-${string}` | (string & {}) | undefined,\n): SupportedLanguage {\n\tif (!value) {\n\t\treturn \"sh\";\n\t}\n\n\t// remove leading \"language-\" and \"lang-\" prefixes\n\t// find first '-' and slice from there\n\tconst maybeLanguage = value.trim().slice(value.indexOf(\"-\") + 1);\n\n\treturn isSupportedLanguage(maybeLanguage) ? maybeLanguage : \"sh\";\n}\n\n/**\n * Type Predicate: checks if an arbitrary value is a supported syntax highlighting language.\n */\nexport const isSupportedLanguage = (value: unknown): value is SupportedLanguage => {\n\treturn typeof value === \"string\" && supportedLanguages.includes(value as SupportedLanguage);\n};\n\n/**\n * A class name for a language that Prism.js can understand.\n */\ntype LanguageClass = `language-${SupportedLanguage}`;\n\n/**\n * Formats a language name into a class name that Prism.js can understand.\n * @default \"language-sh\"\n */\nexport function formatLanguageClassName(language: SupportedLanguage | undefined = \"sh\") {\n\tconst lang = language ?? \"sh\";\n\tconst className: LanguageClass = `language-${lang}`;\n\treturn className;\n}\n","type Primitive = string | number | boolean | undefined | null;\n\n/**\n * Tagged template literal to format code blocks and normalize leading indentation\n */\nexport function code(strings: TemplateStringsArray, ...values: Primitive[]): string {\n\tif (!isTemplateStringsArray(strings) || !Array.isArray(values)) {\n\t\tthrow new Error(\n\t\t\t\"It looks like you tried to call `code` as a function. Make sure to use it as a tagged template.\\n\\tExample: code`SELECT * FROM users`, not code('SELECT * FROM users')\",\n\t\t);\n\t}\n\n\tconst text = String.raw({ raw: strings }, ...values);\n\n\t// fine the minimum indentation of the code block\n\tconst minIndent = findMinIndent(text);\n\tconst lines = text.trim().split(\"\\n\");\n\n\treturn lines\n\t\t.map((line) => {\n\t\t\t// remove nothing if the line doesn't start with indentation\n\t\t\tif (/^\\S+/.test(line)) {\n\t\t\t\treturn line;\n\t\t\t}\n\t\t\treturn line.slice(minIndent);\n\t\t})\n\t\t.join(\"\\n\");\n\t// replace all tabs with 2 spaces\n\t// .replace(/\\t/g, \" \")\n}\n\n/**\n * Find the shortest indentation of a multiline string\n */\nfunction findMinIndent(value: string): number {\n\tconst match = value.match(/^[ \\t]*(?=\\S)/gm);\n\n\tif (!match) {\n\t\treturn 0;\n\t}\n\n\treturn match.reduce((acc, curr) => Math.min(acc, curr.length), Infinity);\n}\n\n/**\n * Type guard to check if a value is a `TemplateStringsArray`\n */\nfunction isTemplateStringsArray(strings: unknown): strings is TemplateStringsArray {\n\treturn Array.isArray(strings) && \"raw\" in strings && Array.isArray(strings.raw);\n}\n","import { z } from \"zod\";\n\nconst modes = [\"file\", \"cli\"] as const;\nexport type Mode = (typeof modes)[number];\n\nconst metaSchema = z.object({\n\tcollapsible: z.boolean().default(false),\n\tdisableCopy: z.boolean().default(false),\n\tmode: z.enum(modes).optional(),\n\ttitle: z.string().trim().optional(),\n});\n\nexport type MetaInput = z.input<typeof metaSchema>;\n\nexport type Meta = z.infer<typeof metaSchema>;\n\nexport const defaultMeta = {\n\tcollapsible: false,\n\tdisableCopy: false,\n\tmode: undefined,\n\ttitle: undefined,\n} as const satisfies Meta;\n\nexport type DefaultMeta = typeof defaultMeta;\n\n/**\n * Parses a markdown code block (```) metastring into a meta object.\n * Defaults to DefaultMeta if no metastring given or if metastring is invalid.\n * Useful for parsing the metastring from a markdown code block to pass into the\n * CodeBlock components as props.\n */\nexport function parseMetastring(value: string | undefined): Meta {\n\tconst metastring = value?.trim() ?? \"\";\n\tif (!metastring) {\n\t\treturn defaultMeta;\n\t}\n\n\tconst metaJson = tokenizeMetastring(metastring).reduce<Record<string, unknown>>((acc, token) => {\n\t\tconst [key, _value] = token.split(\"=\");\n\t\tif (!key) {\n\t\t\treturn acc;\n\t\t}\n\t\tconst value = normalizeValue(_value);\n\t\tacc[key] = value ?? true;\n\t\treturn acc;\n\t}, {});\n\n\ttry {\n\t\tconst parsed = metaSchema.parse(metaJson);\n\n\t\t// return the parsed meta object, with default values filled in\n\t\treturn {\n\t\t\t...defaultMeta,\n\t\t\t...parsed,\n\t\t};\n\t} catch (_) {\n\t\treturn defaultMeta;\n\t}\n}\n\n/**\n * Remove leading and trailing `\"` quotes around value\n * @private\n */\nexport function normalizeValue(value: string | undefined) {\n\treturn value?.trim().replace(/^\"(.*)\"$/, \"$1\");\n}\n\n/**\n * Splits a metastring into an array of tokens that can be parsed into a meta object.\n * Should allow for quotes and spaces in tokens\n * @private\n */\nexport function tokenizeMetastring(value: string | undefined): string[] {\n\tconst input = value?.trim() ?? \"\";\n\tconst result: string[] = [];\n\n\tlet currentString = \"\";\n\tlet inQuotes = false;\n\n\tfor (const char of input) {\n\t\tif (char === \" \" && !inQuotes) {\n\t\t\tif (currentString) {\n\t\t\t\tresult.push(currentString);\n\t\t\t\tcurrentString = \"\";\n\t\t\t}\n\t\t} else if (char === '\"') {\n\t\t\tinQuotes = !inQuotes;\n\t\t\tcurrentString += char;\n\t\t} else {\n\t\t\tcurrentString += char;\n\t\t}\n\t}\n\n\tif (currentString) {\n\t\tresult.push(currentString);\n\t}\n\n\treturn result;\n}\n","export { cx } from \"./src/cx\";\n","export {\n\tDropdownMenu,\n\tDropdownMenuTrigger,\n\tDropdownMenuContent,\n\tDropdownMenuItem,\n\tDropdownMenuCheckboxItem,\n\tDropdownMenuRadioItem,\n\tDropdownMenuLabel,\n\tDropdownMenuSeparator,\n\tDropdownMenuShortcut,\n\tDropdownMenuGroup,\n\tDropdownMenuPortal,\n\tDropdownMenuSub,\n\tDropdownMenuSubContent,\n\tDropdownMenuSubTrigger,\n\tDropdownMenuRadioGroup,\n} from \"./src/dropdown-menu\";\n","import { CaretRight } from \"@phosphor-icons/react/CaretRight\";\nimport { Check } from \"@phosphor-icons/react/Check\";\nimport { Circle } from \"@phosphor-icons/react/Circle\";\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\";\nimport { forwardRef } from \"react\";\nimport { cx } from \"../../core\";\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst DropdownMenuSubTrigger = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n\t\tinset?: boolean;\n\t}\n>(({ className, inset, children, ...props }, ref) => (\n\t<DropdownMenuPrimitive.SubTrigger\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent\",\n\t\t\tinset && \"pl-8\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t{children}\n\t\t<CaretRight className=\"ml-auto h-4 w-4\" weight=\"bold\" />\n\t</DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.SubContent>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n\t<DropdownMenuPrimitive.SubContent\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-white p-1 text-popover-foreground shadow-lg 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-[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\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\nconst DropdownMenuContent = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.Content>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Portal>\n\t\t<DropdownMenuPrimitive.Content\n\t\t\tref={ref}\n\t\t\tsideOffset={sideOffset}\n\t\t\tclassName={cx(\n\t\t\t\t\"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[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\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t</DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nconst DropdownMenuItem = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.Item>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n\t\tinset?: boolean;\n\t}\n>(({ className, inset, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Item\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n\t\t\tinset && \"pl-8\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst DropdownMenuCheckboxItem = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n\t<DropdownMenuPrimitive.CheckboxItem\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n\t\t\tclassName,\n\t\t)}\n\t\tchecked={checked}\n\t\t{...props}\n\t>\n\t\t<span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n\t\t\t<DropdownMenuPrimitive.ItemIndicator>\n\t\t\t\t<Check className=\"h-4 w-4\" weight=\"bold\" />\n\t\t\t</DropdownMenuPrimitive.ItemIndicator>\n\t\t</span>\n\t\t{children}\n\t</DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n\t<DropdownMenuPrimitive.RadioItem\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t<span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n\t\t\t<DropdownMenuPrimitive.ItemIndicator>\n\t\t\t\t<Circle className=\"h-2 w-2\" weight=\"fill\" />\n\t\t\t</DropdownMenuPrimitive.ItemIndicator>\n\t\t</span>\n\t\t{children}\n\t</DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nconst DropdownMenuLabel = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.Label>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n\t\tinset?: boolean;\n\t}\n>(({ className, inset, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Label\n\t\tref={ref}\n\t\tclassName={cx(\"px-2 py-1.5 text-sm font-semibold\", inset && \"pl-8\", className)}\n\t\t{...props}\n\t/>\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst DropdownMenuSeparator = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.Separator>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Separator ref={ref} className={cx(\"-mx-1 my-1 h-px bg-muted\", className)} {...props} />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nconst DropdownMenuShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {\n\treturn <span className={cx(\"ml-auto text-xs tracking-widest opacity-60\", className)} {...props} />;\n};\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\";\n\nexport {\n\tDropdownMenu,\n\tDropdownMenuTrigger,\n\tDropdownMenuContent,\n\tDropdownMenuItem,\n\tDropdownMenuCheckboxItem,\n\tDropdownMenuRadioItem,\n\tDropdownMenuLabel,\n\tDropdownMenuSeparator,\n\tDropdownMenuShortcut,\n\tDropdownMenuGroup,\n\tDropdownMenuPortal,\n\tDropdownMenuSub,\n\tDropdownMenuSubContent,\n\tDropdownMenuSubTrigger,\n\tDropdownMenuRadioGroup,\n};\n","export { InlineCode } from \"./src/inline-code\";\n","import { forwardRef, HTMLAttributes } from \"react\";\nimport { cx } from \"../../core\";\n\n/**\n * A component to render inline code.\n */\nconst InlineCode = forwardRef<HTMLSpanElement, HTMLAttributes<HTMLSpanElement>>(({ className, ...props }, ref) => (\n\t<code\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"rounded-md border border-gray-300 bg-gray-100 px-1 py-0.5 font-mono text-[0.8em] dark:border-gray-500 dark:bg-gray-200\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nInlineCode.displayName = \"InlineCode\";\n\nexport { InlineCode };\n","export { Input } from \"./src/input\";\n\nexport type { InputProps } from \"./src/input\";\nexport type { AutoComplete, InputType } from \"./src/types\";\n","import { cva } from \"class-variance-authority\";\nimport type { InputHTMLAttributes } from \"react\";\nimport { forwardRef } from \"react\";\nimport { cx } from \"../../core\";\nimport type { AutoComplete, InputType } from \"./types\";\n\nconst inputVariants = cva(\n\t\"flex h-11 sm:h-9 w-full rounded-md border bg-white dark:bg-gray-50 px-3 py-2 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-4 disabled:pointer-events-none disabled:opacity-50 sm:text-sm\",\n\t{\n\t\tvariants: {\n\t\t\tstate: {\n\t\t\t\tdefault: \"text-gray-900 border-gray-300 placeholder:text-gray-400 focus:border-blue-600 focus:ring-blue-500/25\",\n\t\t\t\tdanger: \"border-red-600 focus:border-red-600 focus:ring-red-500/25\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tstate: \"default\",\n\t\t},\n\t},\n);\n\n/**\n * The props for the `Input` component.\n */\nexport type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, \"autoComplete\" | \"type\"> & {\n\tautoComplete?: AutoComplete;\n\ttype?: InputType;\n};\n\n/**\n * Used to create interactive controls for web-based forms in order to accept data from the user\n */\nconst Input = forwardRef<HTMLInputElement, InputProps>(({ className, type = \"text\", ...props }, ref) => {\n\tconst state = props[\"aria-invalid\"] ? \"danger\" : \"default\";\n\treturn <input className={cx(inputVariants({ state }), className)} ref={ref} type={type} {...props} />;\n});\nInput.displayName = \"Input\";\n\nexport { Input };\n","export { MediaObject, MediaObjectMedia, MediaObjectContent } from \"./src/media-object\";\n","import { forwardRef } from \"react\";\nimport type { HTMLAttributes } from \"react\";\nimport { cx } from \"../../core\";\n\n/**\n * The media object is an image/icon (media) to the left, with descriptive\n * content (title and subtitle/description) to the right.\n *\n * Change the spacing between the media and content by passing a `gap-*` class.\n * The default gap is `gap-4`.\n *\n * Use flexbox utilities to change the alignment of the media and content.\n *\n * Compose the media object with the `MediaObjectMedia` and `MediaObjectContent`\n * components as direct children.\n */\nconst MediaObject = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(\n\t({ className, children, style }, ref) => (\n\t\t<div ref={ref} className={cx(\"flex gap-4\", className)} style={style}>\n\t\t\t{children}\n\t\t</div>\n\t),\n);\nMediaObject.displayName = \"MediaObject\";\n\n/**\n * The container for an image or icon to display in the media slot of the media object.\n */\nconst MediaObjectMedia = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(\n\t({ className, children, style }, ref) => (\n\t\t<div ref={ref} className={cx(\"shrink-0 leading-none\", className)} style={style}>\n\t\t\t{children}\n\t\t</div>\n\t),\n);\nMediaObjectMedia.displayName = \"MediaObjectMedia\";\n\n/**\n * The container for the content slot of a media object.\n */\nconst MediaObjectContent = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(\n\t({ className, children, style }, ref) => (\n\t\t<div ref={ref} className={cx(\"min-w-0 flex-1\", className)} style={style}>\n\t\t\t{children}\n\t\t</div>\n\t),\n);\nMediaObjectContent.displayName = \"MediaObjectContent\";\n\nexport { MediaObject, MediaObjectMedia, MediaObjectContent };\n","export { PasswordInput } from \"./src/password-input\";\n\nexport type { PasswordInputProps } from \"./src/password-input\";\n","import { Eye } from \"@phosphor-icons/react/Eye\";\nimport { EyeClosed } from \"@phosphor-icons/react/EyeClosed\";\nimport { cva } from \"class-variance-authority\";\nimport { forwardRef, useState } from \"react\";\nimport type { InputHTMLAttributes } from \"react\";\nimport { cx } from \"../../core\";\nimport type { AutoComplete, InputType } from \"../../input\";\nimport { VariantProps } from \"../../types/src/variant-props\";\n\nexport type PasswordInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, \"autoComplete\" | \"type\"> & {\n\tautoComplete?: AutoComplete;\n};\n\nconst passwordInputVariants = cva(\n\t\"flex h-11 sm:h-9 w-full rounded-md border bg-white dark:bg-gray-50 px-3 py-2 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-4 disabled:pointer-events-none disabled:opacity-50 sm:text-sm\",\n\t{\n\t\tvariants: {\n\t\t\tstate: {\n\t\t\t\tdefault: \"text-gray-900 border-gray-300 placeholder:text-gray-400 focus:border-blue-600 focus:ring-blue-500/25\",\n\t\t\t\tdanger: \"border-red-600 focus:border-red-600 focus:ring-red-500/25\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tstate: \"default\",\n\t\t},\n\t},\n);\n\ntype PasswordInputVariants = VariantProps<typeof passwordInputVariants>;\n\nconst PasswordInput = forwardRef<HTMLInputElement, PasswordInputProps>(({ className, style, ...inputProps }, ref) => {\n\tconst [showPassword, setShowPassword] = useState<boolean>(false);\n\tconst type: Extract<InputType, \"text\" | \"password\"> = showPassword ? \"text\" : \"password\";\n\tconst state: PasswordInputVariants[\"state\"] = inputProps[\"aria-invalid\"] ? \"danger\" : \"default\";\n\n\treturn (\n\t\t<div className={cx(passwordInputVariants({ state }), className)} style={style}>\n\t\t\t<input\n\t\t\t\tref={ref}\n\t\t\t\tclassName=\"m-0 flex-1 rounded bg-transparent p-0 focus:outline-none\"\n\t\t\t\ttype={type}\n\t\t\t\t{...inputProps}\n\t\t\t/>\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\ttabIndex={-1}\n\t\t\t\tclassName=\"ml-1 cursor-pointer bg-inherit p-0 text-size-inherit text-gray-600 hover:text-gray-900\"\n\t\t\t\tonClick={() => {\n\t\t\t\t\tsetShowPassword((s) => !s);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{showPassword ? <Eye /> : <EyeClosed />}\n\t\t\t</button>\n\t\t</div>\n\t);\n});\nPasswordInput.displayName = \"PasswordInput\";\n\nexport { PasswordInput };\n","export { Popover, PopoverTrigger, PopoverContent } from \"./src/popover\";\n","import * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport { ComponentPropsWithoutRef, ElementRef, forwardRef } from \"react\";\nimport { cx } from \"../../core\";\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverContent = forwardRef<\n\tElementRef<typeof PopoverPrimitive.Content>,\n\tComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n\t<PopoverPrimitive.Portal>\n\t\t<PopoverPrimitive.Content\n\t\t\tref={ref}\n\t\t\talign={align}\n\t\t\tsideOffset={sideOffset}\n\t\t\tclassName={cx(\n\t\t\t\t\"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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-[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\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t</PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverTrigger, PopoverContent };\n","export {\n\tSelect,\n\tSelectContent,\n\tSelectGroup,\n\tSelectLabel,\n\tSelectItem,\n\tSelectSeparator,\n\tSelectTrigger,\n\tSelectValue,\n} from \"./src/select\";\n","import { CaretDown } from \"@phosphor-icons/react/CaretDown\";\nimport { CaretUp } from \"@phosphor-icons/react/CaretUp\";\nimport { Check } from \"@phosphor-icons/react/Check\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { cva } from \"class-variance-authority\";\nimport type { ComponentPropsWithoutRef, ElementRef, SelectHTMLAttributes } from \"react\";\nimport { createContext, forwardRef, useContext } from \"react\";\nimport { cx } from \"../../core\";\nimport type { VariantProps } from \"../../types/src/variant-props\";\n\nconst SelectAriaInvalidContext = createContext<SelectHTMLAttributes<HTMLSelectElement>[\"aria-invalid\"]>(undefined);\n\ntype SelectProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Root> &\n\tPick<SelectHTMLAttributes<HTMLSelectElement>, \"aria-invalid\">;\n\nconst Select = ({ children, ...props }: SelectProps) => {\n\treturn (\n\t\t<SelectPrimitive.Root {...props}>\n\t\t\t<SelectAriaInvalidContext.Provider value={props[\"aria-invalid\"]}>{children}</SelectAriaInvalidContext.Provider>\n\t\t</SelectPrimitive.Root>\n\t);\n};\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst selectTriggerVariants = cva(\n\t\"flex h-11 w-full items-center justify-between rounded-md border bg-white px-3 py-2 placeholder:text-gray-300 hover:bg-gray-500/5 focus:outline-none focus:ring-4 disabled:pointer-events-none disabled:opacity-50 dark:bg-gray-50 dark:hover:bg-gray-500/5 sm:h-9 sm:text-sm [&>span]:line-clamp-1 [&>span]:text-left\",\n\t{\n\t\tvariants: {\n\t\t\tstate: {\n\t\t\t\tdanger: \"border-red-600 focus:border-red-600 focus:ring-red-500/25\",\n\t\t\t\tdefault: \"text-gray-900 border-gray-300 placeholder:text-gray-400 focus:border-blue-600 focus:ring-blue-500/25\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tstate: \"default\",\n\t\t},\n\t},\n);\n\ntype SelectTriggerVariants = VariantProps<typeof selectTriggerVariants>;\n\nconst SelectTrigger = forwardRef<\n\tElementRef<typeof SelectPrimitive.Trigger>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => {\n\tconst ariaInvalidContext = useContext(SelectAriaInvalidContext);\n\tconst ariaInvalid = props[\"aria-invalid\"] ?? ariaInvalidContext;\n\tconst state = ariaInvalid ? \"danger\" : (\"default\" satisfies SelectTriggerVariants[\"state\"]);\n\n\treturn (\n\t\t<SelectPrimitive.Trigger\n\t\t\tref={ref}\n\t\t\tclassName={cx(selectTriggerVariants({ state }), className)}\n\t\t\t{...props}\n\t\t\taria-invalid={ariaInvalid}\n\t\t>\n\t\t\t{children}\n\t\t\t<SelectPrimitive.Icon asChild>\n\t\t\t\t<CaretDown className=\"h-4 w-4 shrink-0\" weight=\"bold\" />\n\t\t\t</SelectPrimitive.Icon>\n\t\t</SelectPrimitive.Trigger>\n\t);\n});\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = forwardRef<\n\tElementRef<typeof SelectPrimitive.ScrollUpButton>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.ScrollUpButton\n\t\tref={ref}\n\t\tclassName={cx(\"flex cursor-default items-center justify-center py-1\", className)}\n\t\t{...props}\n\t>\n\t\t<CaretUp className=\"h-4 w-4\" weight=\"bold\" />\n\t</SelectPrimitive.ScrollUpButton>\n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = forwardRef<\n\tElementRef<typeof SelectPrimitive.ScrollDownButton>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.ScrollDownButton\n\t\tref={ref}\n\t\tclassName={cx(\"flex cursor-default items-center justify-center py-1\", className)}\n\t\t{...props}\n\t>\n\t\t<CaretDown className=\"h-4 w-4\" weight=\"bold\" />\n\t</SelectPrimitive.ScrollDownButton>\n));\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = forwardRef<\n\tElementRef<typeof SelectPrimitive.Content>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n\t<SelectPrimitive.Portal>\n\t\t<SelectPrimitive.Content\n\t\t\tref={ref}\n\t\t\tclassName={cx(\n\t\t\t\t\"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-card text-popover-foreground shadow-lg 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-[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\",\n\t\t\t\tposition === \"popper\" &&\n\t\t\t\t\t\"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tposition={position}\n\t\t\t{...props}\n\t\t>\n\t\t\t<SelectScrollUpButton />\n\t\t\t<SelectPrimitive.Viewport\n\t\t\t\tclassName={cx(\n\t\t\t\t\t\"p-1\",\n\t\t\t\t\tposition === \"popper\" &&\n\t\t\t\t\t\t\"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]\",\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</SelectPrimitive.Viewport>\n\t\t\t<SelectScrollDownButton />\n\t\t</SelectPrimitive.Content>\n\t</SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = forwardRef<\n\tElementRef<typeof SelectPrimitive.Label>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.Label ref={ref} className={cx(\"px-2 py-1.5 text-sm font-semibold\", className)} {...props} />\n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = forwardRef<\n\tElementRef<typeof SelectPrimitive.Item>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n\t<SelectPrimitive.Item\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-blue-600 focus:text-white data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t<span className=\"absolute right-2 flex h-3.5 w-3.5 items-center justify-center\">\n\t\t\t<SelectPrimitive.ItemIndicator>\n\t\t\t\t<Check className=\"h-4 w-4\" weight=\"bold\" />\n\t\t\t</SelectPrimitive.ItemIndicator>\n\t\t</span>\n\t\t<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n\t</SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = forwardRef<\n\tElementRef<typeof SelectPrimitive.Separator>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.Separator ref={ref} className={cx(\"-mx-1 my-1 h-px bg-muted\", className)} {...props} />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n\tSelect,\n\tSelectGroup,\n\tSelectValue,\n\tSelectTrigger,\n\tSelectContent,\n\tSelectLabel,\n\tSelectItem,\n\tSelectSeparator,\n\tSelectScrollUpButton,\n\tSelectScrollDownButton,\n};\n","export {\n\tSheet,\n\tSheetBody,\n\tSheetClose,\n\tSheetContent,\n\tSheetDescription,\n\tSheetFooter,\n\tSheetHeader,\n\tSheetOverlay,\n\tSheetPortal,\n\tSheetTitle,\n\tSheetTrigger,\n} from \"./src/sheet\";\n","import { X } from \"@phosphor-icons/react/X\";\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { ComponentPropsWithoutRef, ElementRef, forwardRef, HTMLAttributes } from \"react\";\nimport { cx } from \"../../core\";\n\nconst Sheet = SheetPrimitive.Root;\n\nconst SheetTrigger = SheetPrimitive.Trigger;\n\nconst SheetClose = SheetPrimitive.Close;\n\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = forwardRef<\n\tElementRef<typeof SheetPrimitive.Overlay>,\n\tComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n\t<SheetPrimitive.Overlay\n\t\tclassName={cx(\n\t\t\t\"fixed inset-0 z-50 bg-background/80 blur data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t\tref={ref}\n\t/>\n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nconst SheetVariants = cva(\n\t\"fixed z-50 flex flex-col bg-background shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500\",\n\t{\n\t\tvariants: {\n\t\t\tside: {\n\t\t\t\ttop: \"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top\",\n\t\t\t\tbottom:\n\t\t\t\t\t\"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom\",\n\t\t\t\tleft: \"inset-y-0 left-0 h-full w-full border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm\",\n\t\t\t\tright:\n\t\t\t\t\t\"inset-y-0 right-0 h-full w-full border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tside: \"right\",\n\t\t},\n\t},\n);\n\ntype SheetContentProps = {} & ComponentPropsWithoutRef<typeof SheetPrimitive.Content> &\n\tVariantProps<typeof SheetVariants>;\n\nconst SheetContent = forwardRef<ElementRef<typeof SheetPrimitive.Content>, SheetContentProps>(\n\t({ side = \"right\", className, children, ...props }, ref) => (\n\t\t<SheetPortal>\n\t\t\t<SheetOverlay />\n\t\t\t<SheetPrimitive.Content ref={ref} className={cx(SheetVariants({ side }), className)} {...props}>\n\t\t\t\t{children}\n\t\t\t\t<SheetPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary\">\n\t\t\t\t\t<X className=\"h-6 w-6\" />\n\t\t\t\t\t<span className=\"sr-only\">Close</span>\n\t\t\t\t</SheetPrimitive.Close>\n\t\t\t</SheetPrimitive.Content>\n\t\t</SheetPortal>\n\t),\n);\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\nconst SheetBody = ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => (\n\t<div className={cx(\"flex-1 overflow-y-auto p-6\", className)} {...props} />\n);\n\nconst SheetHeader = ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => (\n\t<div className={cx(\"shrink-0 border-b border-gray-300 px-6 py-4\", className)} {...props} />\n);\n\nconst SheetFooter = ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => (\n\t<div className={cx(\"shrink-0 border-t border-gray-300 px-6 py-2.5\", className)} {...props} />\n);\n\nconst SheetTitle = forwardRef<\n\tElementRef<typeof SheetPrimitive.Title>,\n\tComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n\t<SheetPrimitive.Title ref={ref} className={cx(\"text-lg font-semibold text-gray-900\", className)} {...props} />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = forwardRef<\n\tElementRef<typeof SheetPrimitive.Description>,\n\tComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n\t<SheetPrimitive.Description ref={ref} className={cx(\"text-sm text-gray-600\", className)} {...props} />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n\tSheet,\n\tSheetBody,\n\tSheetClose,\n\tSheetContent,\n\tSheetDescription,\n\tSheetFooter,\n\tSheetHeader,\n\tSheetOverlay,\n\tSheetPortal,\n\tSheetTitle,\n\tSheetTrigger,\n};\n","export { Skeleton } from \"./src/skeleton\";\n","import { HTMLAttributes } from \"react\";\nimport { cx } from \"../../core\";\n\ntype Props = Exclude<HTMLAttributes<HTMLDivElement>, \"children\">;\n\n/**\n * A skeleton is a placeholder for content that is loading.\n * By using a skeleton, you can give the user an idea of what the content will\n * look like and reduce the perceived loading time and CLS (Cumulative Layout Shift).\n *\n * @note Default height is 1rem.\n */\nfunction Skeleton({ className, ...props }: Props) {\n\treturn <div className={cx(\"h-4 animate-pulse rounded-md bg-gray-200\", className)} {...props} />;\n}\n\nexport { Skeleton };\n","export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption } from \"./src/table\";\n","import { forwardRef, HTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from \"react\";\nimport { cx } from \"../../core\";\n\nconst Table = forwardRef<HTMLTableElement, HTMLAttributes<HTMLTableElement>>(({ className, ...props }, ref) => (\n\t<div className=\"relative w-full overflow-auto\">\n\t\t<table ref={ref} className={cx(\"w-full caption-bottom text-sm\", className)} {...props} />\n\t</div>\n));\nTable.displayName = \"Table\";\n\nconst TableHeader = forwardRef<HTMLTableSectionElement, HTMLAttributes<HTMLTableSectionElement>>(\n\t({ className, ...props }, ref) => (\n\t\t<thead ref={ref} className={cx(\"bg-background [&_tr]:border-b\", className)} {...props} />\n\t),\n);\nTableHeader.displayName = \"TableHeader\";\n\nconst TableBody = forwardRef<HTMLTableSectionElement, HTMLAttributes<HTMLTableSectionElement>>(\n\t({ className, ...props }, ref) => (\n\t\t<tbody ref={ref} className={cx(\"[&_tr:last-child]:border-0\", className)} {...props} />\n\t),\n);\nTableBody.displayName = \"TableBody\";\n\nconst TableFooter = forwardRef<HTMLTableSectionElement, HTMLAttributes<HTMLTableSectionElement>>(\n\t({ className, ...props }, ref) => (\n\t\t<tfoot\n\t\t\tref={ref}\n\t\t\tclassName={cx(\"border-t border-gray-300 bg-gray-50/50 font-medium [&>tr]:last:border-b-0\", className)}\n\t\t\t{...props}\n\t\t/>\n\t),\n);\nTableFooter.displayName = \"TableFooter\";\n\nconst TableRow = forwardRef<HTMLTableRowElement, HTMLAttributes<HTMLTableRowElement>>(\n\t({ className, ...props }, ref) => (\n\t\t<tr\n\t\t\tref={ref}\n\t\t\tclassName={cx(\"border-b border-gray-300 hover:bg-muted/50 data-[state=selected]:bg-muted\", className)}\n\t\t\t{...props}\n\t\t/>\n\t),\n);\nTableRow.displayName = \"TableRow\";\n\nconst TableHead = forwardRef<HTMLTableCellElement, ThHTMLAttributes<HTMLTableCellElement>>(\n\t({ className, ...props }, ref) => (\n\t\t<th\n\t\t\tref={ref}\n\t\t\tclassName={cx(\n\t\t\t\t\"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t),\n);\nTableHead.displayName = \"TableHead\";\n\nconst TableCell = forwardRef<HTMLTableCellElement, TdHTMLAttributes<HTMLTableCellElement>>(\n\t({ className, ...props }, ref) => (\n\t\t<td ref={ref} className={cx(\"p-4 align-middle [&:has([role=checkbox])]:pr-0\", className)} {...props} />\n\t),\n);\nTableCell.displayName = \"TableCell\";\n\nconst TableCaption = forwardRef<HTMLTableCaptionElement, HTMLAttributes<HTMLTableCaptionElement>>(\n\t({ className, ...props }, ref) => (\n\t\t<caption ref={ref} className={cx(\"border-t border-gray-300 py-4 text-sm text-gray-500\", className)} {...props} />\n\t),\n);\nTableCaption.displayName = \"TableCaption\";\n\nexport { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };\n","export { TextArea } from \"./src/text-area\";\n\nexport type { TextAreaProps } from \"./src/text-area\";\n","import { VariantProps } from \"@/types/src/variant-props\";\nimport { cva } from \"class-variance-authority\";\nimport { forwardRef } from \"react\";\nimport type { TextareaHTMLAttributes } from \"react\";\nimport { cx } from \"../../core\";\n\nconst textAreaVariants = cva(\n\t\"flex min-h-16 w-full rounded-md border border-input bg-white dark:bg-gray-50 px-3 py-2 shadow-sm focus-visible:outline-none focus-visible:ring-4 disabled:pointer-events-none disabled:opacity-50 sm:text-sm\",\n\t{\n\t\tvariants: {\n\t\t\tstate: {\n\t\t\t\tdefault: \"text-gray-900 border-gray-300 placeholder:text-gray-400 focus:border-blue-600 focus:ring-blue-500/25\",\n\t\t\t\tdanger: \"border-red-600 focus:border-red-600 focus:ring-red-500/25\",\n\t\t\t},\n\t\t\tappearance: {\n\t\t\t\tmonospaced: \"font-mono text-[0.9375rem] sm:text-[0.8125rem]\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tstate: \"default\",\n\t\t},\n\t},\n);\n\ntype TextAreaVariants = VariantProps<typeof textAreaVariants>;\n\nexport type TextAreaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & Pick<TextAreaVariants, \"appearance\">;\n\nconst TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(({ appearance, className, ...props }, ref) => {\n\tconst state = props[\"aria-invalid\"] ? \"danger\" : \"default\";\n\treturn <textarea className={cx(textAreaVariants({ appearance, state }), className)} ref={ref} {...props} />;\n});\nTextArea.displayName = \"TextArea\";\n\nexport { TextArea };\n","export { PreventWrongThemeFlash, ThemeProvider } from \"./src/theme-provider\";\n\nexport { isTheme, preventWrongThemeFlashScriptContent, theme, useTheme } from \"./src/theme-provider\";\n\nexport type { Theme, ThemeProviderProps } from \"./src/theme-provider\";\n","import type { PropsWithChildren } from \"react\";\nimport { createContext, useContext, useEffect, useMemo, useState } from \"react\";\nimport invariant from \"tiny-invariant\";\nimport { useMatchesMediaQuery } from \"../../hooks/use-matches-media-query\";\n\n/**\n * prefersDarkModeMediaQuery is the media query used to detect if the user prefers dark mode.\n */\nconst prefersDarkModeMediaQuery = \"(prefers-color-scheme: dark)\" as const;\n\n/**\n * prefersHighContrastMediaQuery is the media query used to detect if the user prefers high contrast mode.\n */\nconst prefersHighContrastMediaQuery = \"(prefers-contrast: more)\" as const;\n\n/**\n * themes is a tuple of valid themes.\n */\nconst themes = [\"system\", \"light\", \"dark\", \"light-high-contrast\", \"dark-high-contrast\"] as const;\n\n/**\n * Theme is a string literal type that represents a valid theme.\n */\ntype Theme = (typeof themes)[number];\n\n/**\n * theme is a helper which translates the Theme type into a string literal type.\n */\nconst theme = (value: Theme) => value;\n\n/**\n * Type predicate that checks if a value is a valid theme.\n */\nfunction isTheme(value: unknown): value is Theme {\n\tif (typeof value !== \"string\") {\n\t\treturn false;\n\t}\n\n\treturn themes.includes(value as Theme);\n}\n\n/**\n * DEFAULT_STORAGE_KEY is the default key used to store the theme in localStorage.\n */\nconst DEFAULT_STORAGE_KEY = \"mantle-ui-theme\" as const;\n\n/**\n * ThemeProviderState is the shape of the state returned by the ThemeProviderContext.\n */\ntype ThemeProviderState = [theme: Theme, setTheme: (theme: Theme) => void];\n\n/**\n * Initial state for the ThemeProviderContext.\n */\nconst initialState: ThemeProviderState = [\"system\", () => null];\n\n/**\n * ThemeProviderContext is a React Context that provides the current theme and a function to set the theme.\n */\nconst ThemeProviderContext = createContext<ThemeProviderState>(initialState);\n\n/**\n * isBrowser returns true if the code is running in a browser environment.\n */\nconst isBrowser = () => typeof window !== \"undefined\";\n\n/**\n * Gets the stored theme from localStorage or returns the default theme if no theme is stored.\n */\nfunction getStoredTheme(storageKey: string, defaultTheme: Theme = \"system\") {\n\tconst fallbackTheme = defaultTheme ?? \"system\";\n\tif (isBrowser()) {\n\t\tconst storedTheme = window.localStorage.getItem(storageKey);\n\t\treturn isTheme(storedTheme) ? storedTheme : fallbackTheme;\n\t}\n\treturn fallbackTheme;\n}\n\ntype ThemeProviderProps = PropsWithChildren & {\n\tdefaultTheme?: Theme;\n\tstorageKey?: string;\n};\n\n/**\n * ThemeProvider is a React Context Provider that provides the current theme and a function to set the theme.\n */\nfunction ThemeProvider({ children, defaultTheme = \"system\", storageKey = DEFAULT_STORAGE_KEY }: ThemeProviderProps) {\n\tconst [theme, setTheme] = useState<Theme>(() => {\n\t\tconst initialTheme = getStoredTheme(storageKey, defaultTheme);\n\t\tapplyTheme(initialTheme);\n\t\treturn initialTheme;\n\t});\n\n\tuseEffect(() => {\n\t\tconst storedTheme = getStoredTheme(storageKey, defaultTheme);\n\t\tsetTheme(storedTheme);\n\t\tapplyTheme(storedTheme);\n\t}, [defaultTheme, storageKey]);\n\n\tuseEffect(() => {\n\t\tconst prefersDarkMql = window.matchMedia(prefersDarkModeMediaQuery);\n\t\tconst prefersHighContrastMql = window.matchMedia(prefersHighContrastMediaQuery);\n\n\t\tconst onChange = () => {\n\t\t\tconst storedTheme = getStoredTheme(storageKey, defaultTheme);\n\n\t\t\t// If the stored theme is not \"system\", then the user has explicitly set a theme and we should not\n\t\t\t// automatically change the theme when the user's system preferences change.\n\t\t\tif (storedTheme !== \"system\") {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tapplyTheme(\"system\");\n\t\t};\n\n\t\tprefersDarkMql.addEventListener(\"change\", onChange);\n\t\tprefersHighContrastMql.addEventListener(\"change\", onChange);\n\n\t\treturn () => {\n\t\t\tprefersDarkMql.removeEventListener(\"change\", onChange);\n\t\t\tprefersHighContrastMql.removeEventListener(\"change\", onChange);\n\t\t};\n\t}, [defaultTheme, storageKey]);\n\n\tconst value: ThemeProviderState = useMemo(\n\t\t() => [\n\t\t\ttheme,\n\t\t\t(theme: Theme) => {\n\t\t\t\twindow.localStorage.setItem(storageKey, theme);\n\t\t\t\tsetTheme(theme);\n\t\t\t\tapplyTheme(theme);\n\t\t\t},\n\t\t],\n\t\t[storageKey, theme],\n\t);\n\n\treturn <ThemeProviderContext.Provider value={value}>{children}</ThemeProviderContext.Provider>;\n}\n\n/**\n * useTheme returns the current theme and a function to set the theme.\n *\n * @note This function will throw an error if used outside of a ThemeProvider context tree.\n */\nfunction useTheme() {\n\tconst context = useContext(ThemeProviderContext);\n\n\tinvariant(context, \"useTheme must be used within a ThemeProvider\");\n\n\treturn context;\n}\n\n/**\n * Applies the given theme to the <html> element.\n */\nfunction applyTheme(theme: Theme) {\n\tif (!isBrowser()) {\n\t\treturn;\n\t}\n\n\tconst htmlElement = window.document.documentElement;\n\thtmlElement.classList.remove(...themes);\n\tconst prefersDarkMode = window.matchMedia(prefersDarkModeMediaQuery).matches;\n\tconst prefersHighContrast = window.matchMedia(prefersHighContrastMediaQuery).matches;\n\tconst newTheme = resolveTheme(theme, { prefersDarkMode, prefersHighContrast });\n\thtmlElement.classList.add(newTheme);\n\thtmlElement.dataset.appliedTheme = newTheme;\n\thtmlElement.dataset.theme = theme;\n}\n\n/**\n * 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.\n * This will mirror the result that gets applied to the <html> element.\n */\nfunction resolveTheme(\n\ttheme: Theme,\n\t{ prefersDarkMode, prefersHighContrast }: { prefersDarkMode: boolean; prefersHighContrast: boolean },\n) {\n\tif (theme === \"system\") {\n\t\treturn determineThemeFromMediaQuery({ prefersDarkMode, prefersHighContrast });\n\t}\n\n\treturn theme;\n}\n\n/**\n * 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.\n * This will mirror the result that gets applied to the <html> element.\n */\nfunction useAppliedTheme() {\n\tconst [theme] = useTheme();\n\n\tconst prefersDarkMode = useMatchesMediaQuery(prefersDarkModeMediaQuery);\n\tconst prefersHighContrast = useMatchesMediaQuery(prefersHighContrastMediaQuery);\n\n\treturn resolveTheme(theme, { prefersDarkMode, prefersHighContrast });\n}\n\n/**\n * determineThemeFromMediaQuery returns the theme that should be used based on the user's media query preferences.\n * @private\n */\nexport function determineThemeFromMediaQuery({\n\tprefersDarkMode,\n\tprefersHighContrast,\n}: {\n\tprefersDarkMode: boolean;\n\tprefersHighContrast: boolean;\n}) {\n\tif (prefersHighContrast) {\n\t\treturn prefersDarkMode ? \"dark-high-contrast\" : \"light-high-contrast\";\n\t}\n\n\treturn prefersDarkMode ? \"dark\" : \"light\";\n}\n\nfunction preventWrongThemeFlashScriptContent({\n\tdefaultTheme = \"system\",\n\tstorageKey = DEFAULT_STORAGE_KEY,\n}: {\n\tdefaultTheme?: Theme;\n\tstorageKey?: string;\n}) {\n\treturn `\n(function() {\n\tconst themes = ${JSON.stringify(themes)};\n\tconst isTheme = (value) => typeof value === \"string\" && themes.includes(value);\n\tconst fallbackTheme = \"${defaultTheme}\" ?? \"system\";\n\tconst maybeStoredTheme = window.localStorage.getItem(\"${storageKey}\");\n\tconst hasStoredTheme = isTheme(maybeStoredTheme);\n\tif (!hasStoredTheme) {\n\t\twindow.localStorage.setItem(\"${storageKey}\", fallbackTheme);\n\t}\n\tconst themePreference = hasStoredTheme ? maybeStoredTheme : fallbackTheme;\n\tconst prefersDarkMode = window.matchMedia(\"${prefersDarkModeMediaQuery}\").matches;\n\tconst prefersHighContrast = window.matchMedia(\"${prefersHighContrastMediaQuery}\").matches;\n\tlet initialTheme = themePreference;\n\tif (initialTheme === \"system\") {\n\t\tif (prefersHighContrast) {\n\t\t\tinitialTheme = prefersDarkMode ? \"dark-high-contrast\" : \"light-high-contrast\";\n\t\t} else {\n\t\t\tinitialTheme = prefersDarkMode ? \"dark\" : \"light\";\n\t\t}\n\t}\n\tconst htmlElement = document.documentElement;\n\thtmlElement.classList.remove(...themes);\n\thtmlElement.classList.add(initialTheme);\n\thtmlElement.dataset.appliedTheme = initialTheme;\n\thtmlElement.dataset.theme = themePreference;\n})();\n`.trim();\n}\n\n/**\n * PreventWrongThemeFlash is a React component that prevents the wrong theme from flashing on initial page load.\n * Render as high as possible in the DOM, preferably in the <head> element.\n */\nconst PreventWrongThemeFlash = ({\n\tdefaultTheme = \"system\",\n\tstorageKey = DEFAULT_STORAGE_KEY,\n}: {\n\tdefaultTheme?: Theme;\n\tstorageKey?: string;\n}) => (\n\t<script\n\t\tdangerouslySetInnerHTML={{\n\t\t\t__html: preventWrongThemeFlashScriptContent({ defaultTheme, storageKey }),\n\t\t}}\n\t/>\n);\n\nexport type { Theme, ThemeProviderProps };\nexport {\n\tisTheme,\n\tPreventWrongThemeFlash,\n\tpreventWrongThemeFlashScriptContent,\n\ttheme,\n\tThemeProvider,\n\tuseAppliedTheme,\n\tuseTheme,\n};\n","import { useCallback, useSyncExternalStore } from \"react\";\n\nexport function useMatchesMediaQuery(query: string) {\n\tconst subscribe = useCallback(\n\t\t(callback: () => void) => {\n\t\t\tconst matchMedia = window.matchMedia(query);\n\n\t\t\tmatchMedia.addEventListener(\"change\", callback);\n\t\t\treturn () => {\n\t\t\t\tmatchMedia.removeEventListener(\"change\", callback);\n\t\t\t};\n\t\t},\n\t\t[query],\n\t);\n\n\treturn useSyncExternalStore(\n\t\tsubscribe,\n\t\t() => {\n\t\t\treturn window.matchMedia(query).matches;\n\t\t},\n\t\t() => false,\n\t);\n}\n","export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from \"./src/tooltip\";\n","import { Content, Provider, Root, Trigger } from \"@radix-ui/react-tooltip\";\nimport { ComponentPropsWithoutRef, ElementRef, forwardRef } from \"react\";\nimport { cx } from \"../../core\";\n\nconst TooltipProvider = Provider;\n\nconst Tooltip = Root;\n\nconst TooltipTrigger = Trigger;\n\nconst TooltipContent = forwardRef<ElementRef<typeof Content>, ComponentPropsWithoutRef<typeof Content>>(\n\t({ className, sideOffset = 4, ...props }, ref) => (\n\t\t<Content\n\t\t\tref={ref}\n\t\t\tsideOffset={sideOffset}\n\t\t\tclassName={cx(\n\t\t\t\t\"z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t),\n);\nTooltipContent.displayName = Content.displayName;\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };\n","export type { WithAsChild } from \"./src/as-child\";\nexport type { WithStyleProps } from \"./src/with-style-props\";\n"],"names":[],"version":3,"file":"index.js.map"}
|