@ngrok/mantle 0.1.47 → 0.1.48

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.
@@ -295,9 +295,9 @@ declare const DropdownMenuSeparator: react.ForwardRefExoticComponent<Omit<{
295
295
  onTransitionEnd?: react.TransitionEventHandler<HTMLDivElement> | undefined;
296
296
  onTransitionEndCapture?: react.TransitionEventHandler<HTMLDivElement> | undefined;
297
297
  key?: react.Key | null | undefined;
298
- asChild?: boolean;
299
- orientation?: "horizontal" | "vertical";
300
- decorative?: boolean;
298
+ asChild?: boolean | undefined;
299
+ orientation?: ("horizontal" | "vertical") | undefined;
300
+ decorative?: boolean | undefined;
301
301
  } & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
302
302
  declare const DropdownMenuShortcut: {
303
303
  ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
package/dist/select.d.ts CHANGED
@@ -317,9 +317,9 @@ declare const SelectSeparator: react.ForwardRefExoticComponent<Omit<{
317
317
  onTransitionEnd?: react.TransitionEventHandler<HTMLDivElement> | undefined;
318
318
  onTransitionEndCapture?: react.TransitionEventHandler<HTMLDivElement> | undefined;
319
319
  key?: react.Key | null | undefined;
320
- orientation?: "horizontal" | "vertical";
321
- asChild?: boolean;
322
- decorative?: boolean;
320
+ orientation?: ("horizontal" | "vertical") | undefined;
321
+ asChild?: boolean | undefined;
322
+ decorative?: boolean | undefined;
323
323
  } & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
324
324
 
325
325
  export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue };
package/dist/sheet.d.ts CHANGED
@@ -9,22 +9,77 @@ import './as-child-Cvu56SuO.js';
9
9
  import './variant-props-Dc9PJLzN.js';
10
10
  import './deep-non-nullable-SmpSvoSd.js';
11
11
 
12
+ /**
13
+ * The root component for a sheet. Should compose the `SheetTrigger` and `SheetContent`.
14
+ * Acts as a stateful provider for the sheet's open/closed state.
15
+ */
12
16
  declare const Sheet: react.FC<DialogPrimitive.DialogProps>;
17
+ /**
18
+ * The trigger for a sheet. Should be rendered as a child of the `Sheet` component.
19
+ * Renders an unstyled button by default, but can be customized with the `asChild` prop.
20
+ */
13
21
  declare const SheetTrigger: react.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
22
+ /**
23
+ * The close button for a sheet. Should be rendered as a child of the `SheetContent` component.
24
+ * Renders an unstyled button by default, but can be customized with the `asChild` prop.
25
+ */
14
26
  declare const SheetClose: react.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
27
+ /**
28
+ * The portal for a sheet. Should be rendered as a child of the `Sheet` component.
29
+ * Renders a portal that the `SheetOverlay` and `SheetContent` is rendered into.
30
+ *
31
+ * You likely don't need to use this component directly, as it is used internally by the `SheetContent` component.
32
+ */
15
33
  declare const SheetPortal: react.FC<DialogPrimitive.DialogPortalProps>;
34
+ /**
35
+ * The overlay backdrop for a sheet. Should be rendered as a child of the `SheetPortal` component.
36
+ *
37
+ * You likely don't need to use this component directly, as it is used internally by the `SheetContent` component.
38
+ */
16
39
  declare const SheetOverlay: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
40
+ /**
41
+ * The main container for a sheet. Renders on top of the overlay backdrop.
42
+ * Should compose the `SheetHeader`, `SheetBody`, and `SheetFooter`.
43
+ */
17
44
  declare const SheetContent: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
18
45
  side?: "left" | "right" | "bottom" | "top" | null | undefined;
19
46
  } & class_variance_authority_types.ClassProp) | undefined) => string> & react.RefAttributes<HTMLDivElement>>;
20
47
  type SheetCloseIconButtonProps = Partial<Omit<IconButtonProps, "icon">>;
48
+ /**
49
+ * An icon button that closes the sheet when clicked. Should be rendered within the `SheetHeader` as a child of `SheetActions`.
50
+ */
21
51
  declare const SheetCloseIconButton: ({ size, type, label, appearance, ...props }: SheetCloseIconButtonProps) => react_jsx_runtime.JSX.Element;
52
+ /**
53
+ * The body container for a sheet. This is where you would typically place the main content of the sheet.
54
+ * Should be rendered as a child of `SheetContent`.
55
+ */
22
56
  declare const SheetBody: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
57
+ /**
58
+ * The header container for a sheet. This is where you would typically place the title, description, and actions.
59
+ * Should be rendered as a child of `SheetContent`.
60
+ */
23
61
  declare const SheetHeader: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
62
+ /**
63
+ * The footer container for a sheet. This is where you would typically place close and submit buttons.
64
+ * Should be rendered as a child of `SheetContent`.
65
+ */
24
66
  declare const SheetFooter: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
67
+ /**
68
+ * The title for a sheet. Typically rendered as a child of `SheetTitleGroup`.
69
+ * Defaults to an `h2` element, but can be changed via the `asChild` prop.
70
+ */
25
71
  declare const SheetTitle: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>, "ref"> & react.RefAttributes<HTMLHeadingElement>>;
72
+ /**
73
+ * A group container for the title and actions of a sheet. Typically rendered as a child of `SheetHeader`.
74
+ */
26
75
  declare const SheetTitleGroup: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
76
+ /**
77
+ * A description for a sheet. Typically rendered as a child of `SheetHeader`.
78
+ */
27
79
  declare const SheetDescription: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>, "ref"> & react.RefAttributes<HTMLParagraphElement>>;
80
+ /**
81
+ * A group container for the actions of a sheet. Typically rendered as a child of `SheetTitleGroup`.
82
+ */
28
83
  declare const SheetActions: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
29
84
 
30
85
  export { Sheet, SheetActions, SheetBody, SheetClose, SheetCloseIconButton, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTitleGroup, SheetTrigger };
package/dist/sheet.js CHANGED
@@ -1,2 +1,2 @@
1
- import{a as d}from"./chunk-Q6UDWWVP.js";import"./chunk-VCISMRMX.js";import"./chunk-MODFDUXR.js";import"./chunk-YPS473FU.js";import"./chunk-GJVJTVHQ.js";import{a}from"./chunk-A5H52ODC.js";import{X as u}from"@phosphor-icons/react/X";import*as e from"@radix-ui/react-dialog";import{cva as y}from"class-variance-authority";import{forwardRef as n}from"react";import{jsx as r,jsxs as H}from"react/jsx-runtime";var P=e.Root,b=e.Trigger,g=e.Close,p=e.Portal,m=n(({className:t,...o},i)=>r(e.Overlay,{className:a("fixed inset-0 z-40 bg-overlay backdrop-blur-sm data-state-closed:animate-out data-state-closed:fade-out-0 data-state-open:animate-in data-state-open:fade-in-0",t),...o,ref:i}));m.displayName=e.Overlay.displayName;var C=y("fixed z-40 flex flex-col bg-dialog shadow-lg outline-none transition ease-in-out focus-within:outline-none data-state-closed:duration-100 data-state-closed:animate-out data-state-open:duration-100 data-state-open:animate-in",{variants:{side:{top:"inset-x-0 top-0 border-b border-dialog data-state-closed:slide-out-to-top data-state-open:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t border-dialog data-state-closed:slide-out-to-bottom data-state-open:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-full border-r border-dialog data-state-closed:slide-out-to-left data-state-open:slide-in-from-left sm:max-w-[30rem]",right:"inset-y-0 right-0 h-full w-full border-l border-dialog data-state-closed:slide-out-to-right data-state-open:slide-in-from-right sm:max-w-[30rem]"}},defaultVariants:{side:"right"}}),h=n(({side:t="right",className:o,children:i,...s},l)=>H(p,{children:[r(m,{}),r(e.Content,{ref:l,className:a(C({side:t}),o),...s,children:i})]}));h.displayName=e.Content.displayName;var x=({size:t="md",type:o="button",label:i="Close Sheet",appearance:s="ghost",...l})=>r(e.Close,{asChild:!0,children:r(d,{appearance:s,icon:r(u,{}),label:i,size:t,type:o,...l})}),T=({className:t,...o})=>r("div",{className:a("scrollbar flex-1 overflow-y-auto p-6 text-body",t),...o}),N=({className:t,...o})=>r("div",{className:a("flex shrink-0 flex-col gap-2 border-b border-dialog-muted py-4 pl-6 pr-4","has-[.icon-button]:pr-4",t),...o}),R=({className:t,...o})=>r("div",{className:a("flex shrink-0 flex-row-reverse gap-2 border-t border-dialog-muted px-6 py-2.5",t),...o}),f=n(({className:t,...o},i)=>r(e.Title,{ref:i,className:a("flex-1 truncate text-lg font-medium text-strong",t),...o}));f.displayName=e.Title.displayName;var c=n(({children:t,className:o,...i},s)=>r("div",{className:a("flex items-center justify-between gap-2",o),...i,ref:s,children:t}));c.displayName="SheetTitleGroup";var S=n(({className:t,...o},i)=>r(e.Description,{ref:i,className:a("text-sm text-body",t),...o}));S.displayName=e.Description.displayName;var v=n(({children:t,className:o,...i},s)=>r("div",{className:a("flex h-full items-center gap-2",o),...i,ref:s,children:t}));v.displayName="SheetActions";export{P as Sheet,v as SheetActions,T as SheetBody,g as SheetClose,x as SheetCloseIconButton,h as SheetContent,S as SheetDescription,R as SheetFooter,N as SheetHeader,m as SheetOverlay,p as SheetPortal,f as SheetTitle,c as SheetTitleGroup,b as SheetTrigger};
1
+ import{a as d}from"./chunk-Q6UDWWVP.js";import"./chunk-VCISMRMX.js";import"./chunk-MODFDUXR.js";import"./chunk-YPS473FU.js";import"./chunk-GJVJTVHQ.js";import{a}from"./chunk-A5H52ODC.js";import{X as v}from"@phosphor-icons/react/X";import*as e from"@radix-ui/react-dialog";import{cva as y}from"class-variance-authority";import{forwardRef as n}from"react";import{jsx as r,jsxs as H}from"react/jsx-runtime";var P=e.Root,b=e.Trigger,g=e.Close,p=e.Portal,m=n(({className:t,...o},i)=>r(e.Overlay,{className:a("fixed inset-0 z-40 bg-overlay backdrop-blur-sm data-state-closed:animate-out data-state-closed:fade-out-0 data-state-open:animate-in data-state-open:fade-in-0",t),...o,ref:i}));m.displayName=e.Overlay.displayName;var C=y("fixed z-40 flex flex-col bg-dialog shadow-lg outline-none transition ease-in-out focus-within:outline-none data-state-closed:duration-100 data-state-closed:animate-out data-state-open:duration-100 data-state-open:animate-in",{variants:{side:{top:"inset-x-0 top-0 border-b border-dialog data-state-closed:slide-out-to-top data-state-open:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t border-dialog data-state-closed:slide-out-to-bottom data-state-open:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-full border-r border-dialog data-state-closed:slide-out-to-left data-state-open:slide-in-from-left sm:max-w-[30rem]",right:"inset-y-0 right-0 h-full w-full border-l border-dialog data-state-closed:slide-out-to-right data-state-open:slide-in-from-right sm:max-w-[30rem]"}},defaultVariants:{side:"right"}}),h=n(({side:t="right",className:o,children:i,...s},l)=>H(p,{children:[r(m,{}),r(e.Content,{ref:l,className:a(C({side:t}),o),...s,children:i})]}));h.displayName=e.Content.displayName;var x=({size:t="md",type:o="button",label:i="Close Sheet",appearance:s="ghost",...l})=>r(e.Close,{asChild:!0,children:r(d,{appearance:s,icon:r(v,{}),label:i,size:t,type:o,...l})}),T=({className:t,...o})=>r("div",{className:a("scrollbar flex-1 overflow-y-auto p-6 text-body",t),...o}),N=({className:t,...o})=>r("div",{className:a("flex shrink-0 flex-col gap-2 border-b border-dialog-muted py-4 pl-6 pr-4","has-[.icon-button]:pr-4",t),...o}),R=({className:t,...o})=>r("div",{className:a("flex shrink-0 justify-end gap-2 border-t border-dialog-muted px-6 py-2.5",t),...o}),f=n(({className:t,...o},i)=>r(e.Title,{ref:i,className:a("flex-1 truncate text-lg font-medium text-strong",t),...o}));f.displayName=e.Title.displayName;var c=n(({children:t,className:o,...i},s)=>r("div",{className:a("flex items-center justify-between gap-2",o),...i,ref:s,children:t}));c.displayName="SheetTitleGroup";var S=n(({className:t,...o},i)=>r(e.Description,{ref:i,className:a("text-sm text-body",t),...o}));S.displayName=e.Description.displayName;var u=n(({children:t,className:o,...i},s)=>r("div",{className:a("flex h-full items-center gap-2",o),...i,ref:s,children:t}));u.displayName="SheetActions";export{P as Sheet,u as SheetActions,T as SheetBody,g as SheetClose,x as SheetCloseIconButton,h as SheetContent,S as SheetDescription,R as SheetFooter,N as SheetHeader,m as SheetOverlay,p as SheetPortal,f as SheetTitle,c as SheetTitleGroup,b as SheetTrigger};
2
2
  //# sourceMappingURL=sheet.js.map
package/dist/sheet.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../packages/sheet/src/sheet.tsx"],"sourcesContent":["import { X } from \"@phosphor-icons/react/X\";\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { forwardRef } from \"react\";\nimport type { ComponentPropsWithoutRef, ElementRef, HTMLAttributes } from \"react\";\nimport { IconButton, type IconButtonProps } from \"../../button\";\nimport { cx } from \"../../cx\";\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-40 bg-overlay backdrop-blur-sm data-state-closed:animate-out data-state-closed:fade-out-0 data-state-open:animate-in data-state-open:fade-in-0\",\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-40 flex flex-col bg-dialog shadow-lg outline-none transition ease-in-out focus-within:outline-none data-state-closed:duration-100 data-state-closed:animate-out data-state-open:duration-100 data-state-open:animate-in\",\n\t{\n\t\tvariants: {\n\t\t\tside: {\n\t\t\t\ttop: \"inset-x-0 top-0 border-b border-dialog 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 border-dialog 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 border-dialog data-state-closed:slide-out-to-left data-state-open:slide-in-from-left sm:max-w-[30rem]\",\n\t\t\t\tright:\n\t\t\t\t\t\"inset-y-0 right-0 h-full w-full border-l border-dialog data-state-closed:slide-out-to-right data-state-open:slide-in-from-right sm:max-w-[30rem]\",\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</SheetPrimitive.Content>\n\t\t</SheetPortal>\n\t),\n);\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\ntype SheetCloseIconButtonProps = Partial<Omit<IconButtonProps, \"icon\">>;\nconst SheetCloseIconButton = ({\n\tsize = \"md\",\n\ttype = \"button\",\n\tlabel = \"Close Sheet\",\n\tappearance = \"ghost\",\n\t...props\n}: SheetCloseIconButtonProps) => (\n\t<SheetPrimitive.Close asChild>\n\t\t<IconButton appearance={appearance} icon={<X />} label={label} size={size} type={type} {...props} />\n\t</SheetPrimitive.Close>\n);\n\nconst SheetBody = ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => (\n\t<div className={cx(\"scrollbar flex-1 overflow-y-auto p-6 text-body\", className)} {...props} />\n);\n\nconst SheetHeader = ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => (\n\t<div\n\t\tclassName={cx(\n\t\t\t\"flex shrink-0 flex-col gap-2 border-b border-dialog-muted py-4 pl-6 pr-4\",\n\t\t\t\"has-[.icon-button]:pr-4\", // when there are actions in the header, shorten the padding\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n);\n\nconst SheetFooter = ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => (\n\t<div\n\t\tclassName={cx(\"flex shrink-0 flex-row-reverse gap-2 border-t border-dialog-muted px-6 py-2.5\", className)}\n\t\t{...props}\n\t/>\n);\n\nconst SheetTitle = forwardRef<\n\tElementRef<typeof SheetPrimitive.Title>,\n\tComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n\t<SheetPrimitive.Title\n\t\tref={ref}\n\t\tclassName={cx(\"flex-1 truncate text-lg font-medium text-strong\", className)}\n\t\t{...props}\n\t/>\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetTitleGroup = forwardRef<ElementRef<\"div\">, HTMLAttributes<HTMLDivElement>>(\n\t({ children, className, ...props }, ref) => (\n\t\t<div className={cx(\"flex items-center justify-between gap-2\", className)} {...props} ref={ref}>\n\t\t\t{children}\n\t\t</div>\n\t),\n);\nSheetTitleGroup.displayName = \"SheetTitleGroup\";\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-body\", className)} {...props} />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nconst SheetActions = forwardRef<ElementRef<\"div\">, HTMLAttributes<HTMLDivElement>>(\n\t({ children, className, ...props }, ref) => (\n\t\t<div className={cx(\"flex h-full items-center gap-2\", className)} {...props} ref={ref}>\n\t\t\t{children}\n\t\t</div>\n\t),\n);\nSheetActions.displayName = \"SheetActions\";\n\nexport {\n\tSheet,\n\tSheetActions,\n\tSheetBody,\n\tSheetClose,\n\tSheetCloseIconButton,\n\tSheetContent,\n\tSheetDescription,\n\tSheetFooter,\n\tSheetHeader,\n\tSheetOverlay,\n\tSheetPortal,\n\tSheetTitle,\n\tSheetTitleGroup,\n\tSheetTrigger,\n};\n"],"mappings":"2LAAA,OAAS,KAAAA,MAAS,0BAClB,UAAYC,MAAoB,yBAChC,OAAS,OAAAC,MAA8B,2BACvC,OAAS,cAAAC,MAAkB,QAiB1B,cAAAC,EAmCC,QAAAC,MAnCD,oBAZD,IAAMC,EAAuB,OAEvBC,EAA8B,UAE9BC,EAA4B,QAE5BC,EAA6B,SAE7BC,EAAeC,EAGnB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAC3BV,EAAgB,UAAf,CACA,UAAWW,EACV,iKACAH,CACD,EACC,GAAGC,EACJ,IAAKC,EACN,CACA,EACDJ,EAAa,YAA6B,UAAQ,YAElD,IAAMM,EAAgBC,EACrB,kOACA,CACC,SAAU,CACT,KAAM,CACL,IAAK,8GACL,OACC,uHACD,KAAM,gJACN,MACC,kJACF,CACD,EACA,gBAAiB,CAChB,KAAM,OACP,CACD,CACD,EAKMC,EAAeP,EACpB,CAAC,CAAE,KAAAQ,EAAO,QAAS,UAAAP,EAAW,SAAAQ,EAAU,GAAGP,CAAM,EAAGC,IACnDT,EAACI,EAAA,CACA,UAAAL,EAACM,EAAA,EAAa,EACdN,EAAgB,UAAf,CAAuB,IAAKU,EAAK,UAAWC,EAAGC,EAAc,CAAE,KAAAG,CAAK,CAAC,EAAGP,CAAS,EAAI,GAAGC,EACvF,SAAAO,EACF,GACD,CAEF,EACAF,EAAa,YAA6B,UAAQ,YA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iB,YAA6B,cAAY,YAE1D,IAAMC,EAAevB,EACpB,CAAC,CAAE,SAAAS,EAAU,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IACnCV,EAAC,OAAI,UAAWW,EAAG,iCAAkCH,CAAS,EAAI,GAAGC,EAAO,IAAKC,EAC/E,SAAAM,EACF,CAEF,EACAc,EAAa,YAAc","names":["X","SheetPrimitive","cva","forwardRef","jsx","jsxs","Sheet","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","forwardRef","className","props","ref","cx","SheetVariants","cva","SheetContent","side","children","SheetCloseIconButton","size","type","label","appearance","IconButton","X","SheetBody","SheetHeader","SheetFooter","SheetTitle","SheetTitleGroup","SheetDescription","SheetActions"]}
1
+ {"version":3,"sources":["../packages/sheet/src/sheet.tsx"],"sourcesContent":["import { X } from \"@phosphor-icons/react/X\";\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { forwardRef } from \"react\";\nimport type { ComponentPropsWithoutRef, ElementRef, HTMLAttributes } from \"react\";\nimport { IconButton, type IconButtonProps } from \"../../button\";\nimport { cx } from \"../../cx\";\n\n/**\n * The root component for a sheet. Should compose the `SheetTrigger` and `SheetContent`.\n * Acts as a stateful provider for the sheet's open/closed state.\n */\nconst Sheet = SheetPrimitive.Root;\n\n/**\n * The trigger for a sheet. Should be rendered as a child of the `Sheet` component.\n * Renders an unstyled button by default, but can be customized with the `asChild` prop.\n */\nconst SheetTrigger = SheetPrimitive.Trigger;\n\n/**\n * The close button for a sheet. Should be rendered as a child of the `SheetContent` component.\n * Renders an unstyled button by default, but can be customized with the `asChild` prop.\n */\nconst SheetClose = SheetPrimitive.Close;\n\n/**\n * The portal for a sheet. Should be rendered as a child of the `Sheet` component.\n * Renders a portal that the `SheetOverlay` and `SheetContent` is rendered into.\n *\n * You likely don't need to use this component directly, as it is used internally by the `SheetContent` component.\n */\nconst SheetPortal = SheetPrimitive.Portal;\n\n/**\n * The overlay backdrop for a sheet. Should be rendered as a child of the `SheetPortal` component.\n *\n * You likely don't need to use this component directly, as it is used internally by the `SheetContent` component.\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-40 bg-overlay backdrop-blur-sm data-state-closed:animate-out data-state-closed:fade-out-0 data-state-open:animate-in data-state-open:fade-in-0\",\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-40 flex flex-col bg-dialog shadow-lg outline-none transition ease-in-out focus-within:outline-none data-state-closed:duration-100 data-state-closed:animate-out data-state-open:duration-100 data-state-open:animate-in\",\n\t{\n\t\tvariants: {\n\t\t\tside: {\n\t\t\t\ttop: \"inset-x-0 top-0 border-b border-dialog 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 border-dialog 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 border-dialog data-state-closed:slide-out-to-left data-state-open:slide-in-from-left sm:max-w-[30rem]\",\n\t\t\t\tright:\n\t\t\t\t\t\"inset-y-0 right-0 h-full w-full border-l border-dialog data-state-closed:slide-out-to-right data-state-open:slide-in-from-right sm:max-w-[30rem]\",\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\n/**\n * The main container for a sheet. Renders on top of the overlay backdrop.\n * Should compose the `SheetHeader`, `SheetBody`, and `SheetFooter`.\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</SheetPrimitive.Content>\n\t\t</SheetPortal>\n\t),\n);\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\ntype SheetCloseIconButtonProps = Partial<Omit<IconButtonProps, \"icon\">>;\n\n/**\n * An icon button that closes the sheet when clicked. Should be rendered within the `SheetHeader` as a child of `SheetActions`.\n */\nconst SheetCloseIconButton = ({\n\tsize = \"md\",\n\ttype = \"button\",\n\tlabel = \"Close Sheet\",\n\tappearance = \"ghost\",\n\t...props\n}: SheetCloseIconButtonProps) => (\n\t<SheetPrimitive.Close asChild>\n\t\t<IconButton appearance={appearance} icon={<X />} label={label} size={size} type={type} {...props} />\n\t</SheetPrimitive.Close>\n);\n\n/**\n * The body container for a sheet. This is where you would typically place the main content of the sheet.\n * Should be rendered as a child of `SheetContent`.\n */\nconst SheetBody = ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => (\n\t<div className={cx(\"scrollbar flex-1 overflow-y-auto p-6 text-body\", className)} {...props} />\n);\n\n/**\n * The header container for a sheet. This is where you would typically place the title, description, and actions.\n * Should be rendered as a child of `SheetContent`.\n */\nconst SheetHeader = ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => (\n\t<div\n\t\tclassName={cx(\n\t\t\t\"flex shrink-0 flex-col gap-2 border-b border-dialog-muted py-4 pl-6 pr-4\",\n\t\t\t\"has-[.icon-button]:pr-4\", // when there are actions in the header, shorten the padding\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n);\n\n/**\n * The footer container for a sheet. This is where you would typically place close and submit buttons.\n * Should be rendered as a child of `SheetContent`.\n */\nconst SheetFooter = ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => (\n\t<div\n\t\tclassName={cx(\"flex shrink-0 justify-end gap-2 border-t border-dialog-muted px-6 py-2.5\", className)}\n\t\t{...props}\n\t/>\n);\n\n/**\n * The title for a sheet. Typically rendered as a child of `SheetTitleGroup`.\n * Defaults to an `h2` element, but can be changed via the `asChild` prop.\n */\nconst SheetTitle = forwardRef<\n\tElementRef<typeof SheetPrimitive.Title>,\n\tComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n\t<SheetPrimitive.Title\n\t\tref={ref}\n\t\tclassName={cx(\"flex-1 truncate text-lg font-medium text-strong\", className)}\n\t\t{...props}\n\t/>\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\n/**\n * A group container for the title and actions of a sheet. Typically rendered as a child of `SheetHeader`.\n */\nconst SheetTitleGroup = forwardRef<ElementRef<\"div\">, HTMLAttributes<HTMLDivElement>>(\n\t({ children, className, ...props }, ref) => (\n\t\t<div className={cx(\"flex items-center justify-between gap-2\", className)} {...props} ref={ref}>\n\t\t\t{children}\n\t\t</div>\n\t),\n);\nSheetTitleGroup.displayName = \"SheetTitleGroup\";\n\n/**\n * A description for a sheet. Typically rendered as a child of `SheetHeader`.\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-body\", className)} {...props} />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\n/**\n * A group container for the actions of a sheet. Typically rendered as a child of `SheetTitleGroup`.\n */\nconst SheetActions = forwardRef<ElementRef<\"div\">, HTMLAttributes<HTMLDivElement>>(\n\t({ children, className, ...props }, ref) => (\n\t\t<div className={cx(\"flex h-full items-center gap-2\", className)} {...props} ref={ref}>\n\t\t\t{children}\n\t\t</div>\n\t),\n);\nSheetActions.displayName = \"SheetActions\";\n\nexport {\n\tSheet,\n\tSheetActions,\n\tSheetBody,\n\tSheetClose,\n\tSheetCloseIconButton,\n\tSheetContent,\n\tSheetDescription,\n\tSheetFooter,\n\tSheetHeader,\n\tSheetOverlay,\n\tSheetPortal,\n\tSheetTitle,\n\tSheetTitleGroup,\n\tSheetTrigger,\n};\n"],"mappings":"2LAAA,OAAS,KAAAA,MAAS,0BAClB,UAAYC,MAAoB,yBAChC,OAAS,OAAAC,MAA8B,2BACvC,OAAS,cAAAC,MAAkB,QAwC1B,cAAAC,EAuCC,QAAAC,MAvCD,oBA/BD,IAAMC,EAAuB,OAMvBC,EAA8B,UAM9BC,EAA4B,QAQ5BC,EAA6B,SAO7BC,EAAeC,EAGnB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAC3BV,EAAgB,UAAf,CACA,UAAWW,EACV,iKACAH,CACD,EACC,GAAGC,EACJ,IAAKC,EACN,CACA,EACDJ,EAAa,YAA6B,UAAQ,YAElD,IAAMM,EAAgBC,EACrB,kOACA,CACC,SAAU,CACT,KAAM,CACL,IAAK,8GACL,OACC,uHACD,KAAM,gJACN,MACC,kJACF,CACD,EACA,gBAAiB,CAChB,KAAM,OACP,CACD,CACD,EASMC,EAAeP,EACpB,CAAC,CAAE,KAAAQ,EAAO,QAAS,UAAAP,EAAW,SAAAQ,EAAU,GAAGP,CAAM,EAAGC,IACnDT,EAACI,EAAA,CACA,UAAAL,EAACM,EAAA,EAAa,EACdN,EAAgB,UAAf,CAAuB,IAAKU,EAAK,UAAWC,EAAGC,EAAc,CAAE,KAAAG,CAAK,CAAC,EAAGP,CAAS,EAAI,GAAGC,EACvF,SAAAO,EACF,GACD,CAEF,EACAF,EAAa,YAA6B,UAAQ,YAOlD,IAAMG,EAAuB,CAAC,CAC7B,KAAAC,EAAO,KACP,KAAAC,EAAO,SACP,MAAAC,EAAQ,cACR,WAAAC,EAAa,QACb,GAAGZ,CACJ,IACCT,EAAgB,QAAf,CAAqB,QAAO,GAC5B,SAAAA,EAACsB,EAAA,C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/E,SAAAM,EACF,CAEF,EACAc,EAAa,YAAc","names":["X","SheetPrimitive","cva","forwardRef","jsx","jsxs","Sheet","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","forwardRef","className","props","ref","cx","SheetVariants","cva","SheetContent","side","children","SheetCloseIconButton","size","type","label","appearance","IconButton","X","SheetBody","SheetHeader","SheetFooter","SheetTitle","SheetTitleGroup","SheetDescription","SheetActions"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../node_modules/mini-svg-data-uri/shorter-css-color-names.js","../node_modules/mini-svg-data-uri/index.js","../packages/tailwind-preset/src/tailwind.preset.ts","../packages/tailwind-preset/src/tailwind-plugin-animation-duration.ts","../packages/tailwind-preset/src/shared.ts","../packages/tailwind-preset/src/tailwind-plugin-aria-enabled.ts","../packages/tailwind-preset/src/tailwind-plugin-firefox-variant.ts","../packages/tailwind-preset/src/tailwind-plugin-gradient-stop.ts","../packages/tailwind-preset/src/tailwind-plugin-pointing-variants.ts","../packages/tailwind-preset/src/tailwind-plugin-where-variant.ts","../packages/tailwind-preset/src/resolve-mantle-content-glob.ts"],"names":["require_shorter_css_color_names","__commonJSMin","exports","module","require_mini_svg_data_uri","shorterNames","REGEX","collapseWhitespace","str","dataURIPayload","string","specialHexEncode","colorCodeToShorterNames","key","match","svgToTinyDataUri","svgString","body","import_mini_svg_data_uri","tailwindCssAnimatePlugin","defaultTheme","plugin","filterDefault","values","flattenObject","obj","options","result","parentKey","separator","newKey","animationDurationPlugin","api","value","ariaEnabledVariantPlugin","modifySelectors","className","firefoxVariantPlugin","container","isFirefoxRule","rule","gradientStopPlugin","pointingVariantsPlugin","pointerCoarse","pointerFine","pointerNone","hoverHover","hoverNone","whereVariantPlugin","colors","mantlePreset","svgToDataUri","addVariant","path","resolveMantleContentGlob","require","presetPath","error"],"mappings":"ygBAAA,IAAAA,EAAAC,EAAA,CAAAC,EAAAC,IAAA,cAAAA,EAAO,QAAU,CACf,KAAM,sCACN,MAAO,uBACP,MAAO,uBACP,OA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,CAAK,EAIX,oCACR,CACD","sourcesContent":["module.exports = {\n aqua: /#00ffff(ff)?(?!\\w)|#0ff(f)?(?!\\w)/gi,\n azure: /#f0ffff(ff)?(?!\\w)/gi,\n beige: /#f5f5dc(ff)?(?!\\w)/gi,\n bisque: /#ffe4c4(ff)?(?!\\w)/gi,\n black: /#000000(ff)?(?!\\w)|#000(f)?(?!\\w)/gi,\n blue: /#0000ff(ff)?(?!\\w)|#00f(f)?(?!\\w)/gi,\n brown: /#a52a2a(ff)?(?!\\w)/gi,\n coral: /#ff7f50(ff)?(?!\\w)/gi,\n cornsilk: /#fff8dc(ff)?(?!\\w)/gi,\n crimson: /#dc143c(ff)?(?!\\w)/gi,\n cyan: /#00ffff(ff)?(?!\\w)|#0ff(f)?(?!\\w)/gi,\n darkblue: /#00008b(ff)?(?!\\w)/gi,\n darkcyan: /#008b8b(ff)?(?!\\w)/gi,\n darkgrey: /#a9a9a9(ff)?(?!\\w)/gi,\n darkred: /#8b0000(ff)?(?!\\w)/gi,\n deeppink: /#ff1493(ff)?(?!\\w)/gi,\n dimgrey: /#696969(ff)?(?!\\w)/gi,\n gold: /#ffd700(ff)?(?!\\w)/gi,\n green: /#008000(ff)?(?!\\w)/gi,\n grey: /#808080(ff)?(?!\\w)/gi,\n honeydew: /#f0fff0(ff)?(?!\\w)/gi,\n hotpink: /#ff69b4(ff)?(?!\\w)/gi,\n indigo: /#4b0082(ff)?(?!\\w)/gi,\n ivory: /#fffff0(ff)?(?!\\w)/gi,\n khaki: /#f0e68c(ff)?(?!\\w)/gi,\n lavender: /#e6e6fa(ff)?(?!\\w)/gi,\n lime: /#00ff00(ff)?(?!\\w)|#0f0(f)?(?!\\w)/gi,\n linen: /#faf0e6(ff)?(?!\\w)/gi,\n maroon: /#800000(ff)?(?!\\w)/gi,\n moccasin: /#ffe4b5(ff)?(?!\\w)/gi,\n navy: /#000080(ff)?(?!\\w)/gi,\n oldlace: /#fdf5e6(ff)?(?!\\w)/gi,\n olive: /#808000(ff)?(?!\\w)/gi,\n orange: /#ffa500(ff)?(?!\\w)/gi,\n orchid: /#da70d6(ff)?(?!\\w)/gi,\n peru: /#cd853f(ff)?(?!\\w)/gi,\n pink: /#ffc0cb(ff)?(?!\\w)/gi,\n plum: /#dda0dd(ff)?(?!\\w)/gi,\n purple: /#800080(ff)?(?!\\w)/gi,\n red: /#ff0000(ff)?(?!\\w)|#f00(f)?(?!\\w)/gi,\n salmon: /#fa8072(ff)?(?!\\w)/gi,\n seagreen: /#2e8b57(ff)?(?!\\w)/gi,\n seashell: /#fff5ee(ff)?(?!\\w)/gi,\n sienna: /#a0522d(ff)?(?!\\w)/gi,\n silver: /#c0c0c0(ff)?(?!\\w)/gi,\n skyblue: /#87ceeb(ff)?(?!\\w)/gi,\n snow: /#fffafa(ff)?(?!\\w)/gi,\n tan: /#d2b48c(ff)?(?!\\w)/gi,\n teal: /#008080(ff)?(?!\\w)/gi,\n thistle: /#d8bfd8(ff)?(?!\\w)/gi,\n tomato: /#ff6347(ff)?(?!\\w)/gi,\n violet: /#ee82ee(ff)?(?!\\w)/gi,\n wheat: /#f5deb3(ff)?(?!\\w)/gi,\n white: /#ffffff(ff)?(?!\\w)|#fff(f)?(?!\\w)/gi,\n};\n","var shorterNames = require('./shorter-css-color-names');\nvar REGEX = {\n whitespace: /\\s+/g,\n urlHexPairs: /%[\\dA-F]{2}/g,\n quotes: /\"/g,\n}\n\nfunction collapseWhitespace(str) {\n return str.trim().replace(REGEX.whitespace, ' ');\n}\n\nfunction dataURIPayload(string) {\n return encodeURIComponent(string)\n .replace(REGEX.urlHexPairs, specialHexEncode);\n}\n\n// `#` gets converted to `%23`, so quite a few CSS named colors are shorter than\n// their equivalent URL-encoded hex codes.\nfunction colorCodeToShorterNames(string) {\n Object.keys(shorterNames).forEach(function(key) {\n if (shorterNames[key].test(string)) {\n string = string.replace(shorterNames[key], key);\n }\n });\n\n return string;\n}\n\nfunction specialHexEncode(match) {\n switch (match) { // Browsers tolerate these characters, and they're frequent\n case '%20': return ' ';\n case '%3D': return '=';\n case '%3A': return ':';\n case '%2F': return '/';\n default: return match.toLowerCase(); // compresses better\n }\n}\n\nfunction svgToTinyDataUri(svgString) {\n if (typeof svgString !== 'string') {\n throw new TypeError('Expected a string, but received ' + typeof svgString);\n }\n // Strip the Byte-Order Mark if the SVG has one\n if (svgString.charCodeAt(0) === 0xfeff) { svgString = svgString.slice(1) }\n\n var body = colorCodeToShorterNames(collapseWhitespace(svgString))\n .replace(REGEX.quotes, \"'\");\n return 'data:image/svg+xml,' + dataURIPayload(body);\n}\n\nsvgToTinyDataUri.toSrcset = function toSrcset(svgString) {\n return svgToTinyDataUri(svgString).replace(/ /g, '%20');\n}\n\nmodule.exports = svgToTinyDataUri;\n","import svgToDataUri from \"mini-svg-data-uri\";\nimport type { Config } from \"tailwindcss\";\nimport tailwindCssAnimatePlugin from \"tailwindcss-animate\";\nimport defaultTheme from \"tailwindcss/defaultTheme\";\nimport plugin from \"tailwindcss/plugin\";\nimport { animationDurationPlugin } from \"./tailwind-plugin-animation-duration.js\";\nimport { ariaEnabledVariantPlugin } from \"./tailwind-plugin-aria-enabled.js\";\nimport { firefoxVariantPlugin } from \"./tailwind-plugin-firefox-variant.js\";\nimport { gradientStopPlugin } from \"./tailwind-plugin-gradient-stop.js\";\nimport { pointingVariantsPlugin } from \"./tailwind-plugin-pointing-variants.js\";\nimport { whereVariantPlugin } from \"./tailwind-plugin-where-variant.js\";\n\nconst colors = {\n\tinherit: \"inherit\",\n\tcurrent: \"currentColor\",\n\ttransparent: \"transparent\",\n\twhite: \"hsl(var(--white) / <alpha-value>)\",\n\tblack: \"hsl(var(--black) / <alpha-value>)\",\n\tgray: {\n\t\t50: \"hsl(var(--gray-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--gray-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--gray-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--gray-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--gray-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--gray-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--gray-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--gray-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--gray-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--gray-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--gray-950) / <alpha-value>)\",\n\t},\n\tred: {\n\t\t50: \"hsl(var(--red-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--red-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--red-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--red-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--red-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--red-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--red-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--red-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--red-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--red-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--red-950) / <alpha-value>)\",\n\t},\n\torange: {\n\t\t50: \"hsl(var(--orange-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--orange-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--orange-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--orange-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--orange-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--orange-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--orange-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--orange-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--orange-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--orange-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--orange-950) / <alpha-value>)\",\n\t},\n\tamber: {\n\t\t50: \"hsl(var(--amber-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--amber-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--amber-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--amber-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--amber-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--amber-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--amber-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--amber-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--amber-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--amber-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--amber-950) / <alpha-value>)\",\n\t},\n\tyellow: {\n\t\t50: \"hsl(var(--yellow-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--yellow-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--yellow-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--yellow-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--yellow-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--yellow-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--yellow-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--yellow-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--yellow-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--yellow-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--yellow-950) / <alpha-value>)\",\n\t},\n\tlime: {\n\t\t50: \"hsl(var(--lime-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--lime-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--lime-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--lime-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--lime-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--lime-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--lime-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--lime-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--lime-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--lime-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--lime-950) / <alpha-value>)\",\n\t},\n\tgreen: {\n\t\t50: \"hsl(var(--green-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--green-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--green-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--green-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--green-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--green-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--green-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--green-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--green-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--green-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--green-950) / <alpha-value>)\",\n\t},\n\temerald: {\n\t\t50: \"hsl(var(--emerald-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--emerald-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--emerald-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--emerald-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--emerald-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--emerald-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--emerald-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--emerald-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--emerald-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--emerald-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--emerald-950) / <alpha-value>)\",\n\t},\n\tteal: {\n\t\t50: \"hsl(var(--teal-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--teal-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--teal-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--teal-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--teal-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--teal-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--teal-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--teal-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--teal-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--teal-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--teal-950) / <alpha-value>)\",\n\t},\n\tcyan: {\n\t\t50: \"hsl(var(--cyan-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--cyan-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--cyan-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--cyan-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--cyan-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--cyan-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--cyan-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--cyan-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--cyan-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--cyan-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--cyan-950) / <alpha-value>)\",\n\t},\n\tsky: {\n\t\t50: \"hsl(var(--sky-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--sky-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--sky-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--sky-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--sky-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--sky-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--sky-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--sky-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--sky-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--sky-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--sky-950) / <alpha-value>)\",\n\t},\n\tblue: {\n\t\t50: \"hsl(var(--blue-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--blue-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--blue-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--blue-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--blue-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--blue-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--blue-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--blue-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--blue-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--blue-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--blue-950) / <alpha-value>)\",\n\t},\n\tindigo: {\n\t\t50: \"hsl(var(--indigo-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--indigo-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--indigo-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--indigo-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--indigo-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--indigo-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--indigo-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--indigo-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--indigo-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--indigo-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--indigo-950) / <alpha-value>)\",\n\t},\n\tviolet: {\n\t\t50: \"hsl(var(--violet-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--violet-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--violet-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--violet-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--violet-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--violet-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--violet-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--violet-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--violet-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--violet-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--violet-950) / <alpha-value>)\",\n\t},\n\tpurple: {\n\t\t50: \"hsl(var(--purple-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--purple-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--purple-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--purple-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--purple-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--purple-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--purple-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--purple-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--purple-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--purple-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--purple-950) / <alpha-value>)\",\n\t},\n\tfuchsia: {\n\t\t50: \"hsl(var(--fuchsia-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--fuchsia-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--fuchsia-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--fuchsia-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--fuchsia-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--fuchsia-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--fuchsia-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--fuchsia-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--fuchsia-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--fuchsia-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--fuchsia-950) / <alpha-value>)\",\n\t},\n\tpink: {\n\t\t50: \"hsl(var(--pink-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--pink-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--pink-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--pink-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--pink-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--pink-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--pink-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--pink-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--pink-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--pink-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--pink-950) / <alpha-value>)\",\n\t},\n\trose: {\n\t\t50: \"hsl(var(--rose-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--rose-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--rose-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--rose-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--rose-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--rose-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--rose-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--rose-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--rose-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--rose-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--rose-950) / <alpha-value>)\",\n\t},\n\tneutral: {\n\t\t50: \"hsl(var(--neutral-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--neutral-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--neutral-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--neutral-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--neutral-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--neutral-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--neutral-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--neutral-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--neutral-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--neutral-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--neutral-950) / <alpha-value>)\",\n\t},\n\taccent: {\n\t\t50: \"hsl(var(--accent-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--accent-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--accent-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--accent-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--accent-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--accent-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--accent-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--accent-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--accent-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--accent-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--accent-950) / <alpha-value>)\",\n\t},\n\tdanger: {\n\t\t50: \"hsl(var(--danger-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--danger-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--danger-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--danger-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--danger-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--danger-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--danger-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--danger-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--danger-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--danger-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--danger-950) / <alpha-value>)\",\n\t},\n\twarning: {\n\t\t50: \"hsl(var(--warning-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--warning-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--warning-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--warning-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--warning-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--warning-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--warning-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--warning-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--warning-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--warning-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--warning-950) / <alpha-value>)\",\n\t},\n\tsuccess: {\n\t\t50: \"hsl(var(--success-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--success-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--success-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--success-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--success-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--success-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--success-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--success-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--success-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--success-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--success-950) / <alpha-value>)\",\n\t},\n};\n\nconst mantlePreset = {\n\tcontent: [],\n\tdarkMode: \"class\",\n\ttheme: {\n\t\tcolors,\n\t\tcontainer: {\n\t\t\tcenter: true,\n\t\t\tpadding: \"2rem\",\n\t\t\tscreens: {\n\t\t\t\t\"2xl\": \"1400px\",\n\t\t\t},\n\t\t},\n\t\textend: {\n\t\t\tanimation: {\n\t\t\t\t\"accordion-down\": \"accordion-down 0.2s ease-out\",\n\t\t\t\t\"accordion-up\": \"accordion-up 0.2s ease-out\",\n\t\t\t},\n\t\t\taria: {\n\t\t\t\tcollapsed: 'expanded=\"false\"',\n\t\t\t\tinvalid: 'invalid=\"true\"',\n\t\t\t\tunchecked: 'checked=\"false\"',\n\t\t\t},\n\t\t\tbackgroundImage: {\n\t\t\t\t\"checked-icon\": `url(\"${svgToDataUri(`<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 16 16\"><path fill=\"#fff\" d=\"M12.7071 4.29289c.3905.39053.3905 1.02369 0 1.41422L6.70711 11.7071c-.39053.3905-1.02369.3905-1.41422 0l-2-1.99999c-.39052-.39053-.39052-1.02369 0-1.41422.39053-.39052 1.02369-.39052 1.41422 0L6 9.58579l5.2929-5.2929c.3905-.39052 1.0237-.39052 1.4142 0Z\"/></svg>`)}\")`,\n\t\t\t\t\"indeterminate-icon\": `url(\"${svgToDataUri(`<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 16 16\"><path fill=\"#fff\" d=\"M4 8c0-.55228.44772-1 1-1h6c.5523 0 1 .44772 1 1s-.4477 1-1 1H5c-.55228 0-1-.44772-1-1Z\"/></svg>`)}\")`,\n\t\t\t},\n\t\t\tboxShadow: {\n\t\t\t\tsm: \"0px 1px 2px 0 hsl(var(--shadow-color) / var(--shadow-first))\",\n\t\t\t\tDEFAULT:\n\t\t\t\t\t\"0px 1px 2px -1px hsl(var(--shadow-color) / var(--shadow-second)), 0px 1px 3px 0px hsl(var(--shadow-color) / var(--shadow-second))\",\n\t\t\t\tmd: \"0px 2px 13px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 2px 4px -2px hsl(var(--shadow-color) / var(--shadow-second)), 0px 4px 6px -1px hsl(var(--shadow-color) / var(--shadow-second))\",\n\t\t\t\tlg: \"0px 1px 13px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 4px 6px -4px hsl(var(--shadow-color) / var(--shadow-second)), 0px 10px 15px -3px hsl(var(--shadow-color) / var(--shadow-second))\",\n\t\t\t\txl: \"0px 0px 15px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 8px 10px -6px hsl(var(--shadow-color) / var(--shadow-second)), 0px 20px 25px -5px hsl(var(--shadow-color) / var(--shadow-second))\",\n\t\t\t\t\"2xl\":\n\t\t\t\t\t\"0px 0px 15px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 11px 10px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 17px 25px 2px hsl(var(--shadow-color) / var(--shadow-second))\",\n\t\t\t\tinner: \"inset 0px 2px 4px 0px hsl(var(--shadow-color) / var(--shadow-first))\",\n\t\t\t},\n\t\t\tbackgroundColor: {\n\t\t\t\tbase: \"hsl(var(--bg-base))\",\n\t\t\t\tcard: \"hsl(var(--bg-card))\",\n\t\t\t\tdialog: \"hsl(var(--bg-dialog))\",\n\t\t\t\tform: \"hsl(var(--bg-form))\",\n\t\t\t\toverlay: \"hsl(var(--bg-overlay))\",\n\t\t\t\tpopover: \"hsl(var(--bg-popover))\",\n\t\t\t\ttooltip: \"hsl(var(--bg-tooltip))\",\n\t\t\t\t\"base-hover\": \"hsl(var(--bg-base-hover))\",\n\t\t\t\t\"card-hover\": \"hsl(var(--bg-card-hover))\",\n\t\t\t\t\"filled-accent-active\": \"hsl(var(--bg-filled-accent-active))\",\n\t\t\t\t\"filled-accent-hover\": \"hsl(var(--bg-filled-accent-hover))\",\n\t\t\t\t\"filled-accent\": \"hsl(var(--bg-filled-accent))\",\n\t\t\t\t\"filled-danger-active\": \"hsl(var(--bg-filled-danger-active))\",\n\t\t\t\t\"filled-danger-hover\": \"hsl(var(--bg-filled-danger-hover))\",\n\t\t\t\t\"filled-danger\": \"hsl(var(--bg-filled-danger))\",\n\t\t\t\t\"filled-neutral-active\": \"hsl(var(--bg-filled-neutral-active))\",\n\t\t\t\t\"filled-neutral-hover\": \"hsl(var(--bg-filled-neutral-hover))\",\n\t\t\t\t\"filled-neutral\": \"hsl(var(--bg-filled-neutral))\",\n\t\t\t\t\"filled-success-active\": \"hsl(var(--bg-filled-success-active))\",\n\t\t\t\t\"filled-success-hover\": \"hsl(var(--bg-filled-success-hover))\",\n\t\t\t\t\"filled-success\": \"hsl(var(--bg-filled-success))\",\n\t\t\t\t\"filled-warning-active\": \"hsl(var(--bg-filled-warning-active))\",\n\t\t\t\t\"filled-warning-hover\": \"hsl(var(--bg-filled-warning-hover))\",\n\t\t\t\t\"filled-warning\": \"hsl(var(--bg-filled-warning))\",\n\t\t\t\t\"form-active\": \"hsl(var(--bg-form-active))\",\n\t\t\t\t\"form-hover\": \"hsl(var(--bg-form-hover))\",\n\t\t\t\t\"popover-hover\": \"hsl(var(--bg-popover-hover))\",\n\t\t\t},\n\t\t\ttextColor: {\n\t\t\t\tbody: \"hsl(var(--text-body))\",\n\t\t\t\tmuted: \"hsl(var(--text-muted))\",\n\t\t\t\tplaceholder: \"hsl(var(--text-placeholder))\",\n\t\t\t\tstrong: \"hsl(var(--text-strong))\",\n\t\t\t\ttooltip: \"hsl(var(--text-tooltip))\",\n\t\t\t\t\"on-filled\": \"hsl(var(--text-on-filled))\",\n\t\t\t},\n\t\t\tborderColor: {\n\t\t\t\tbase: \"hsl(var(--border-base))\",\n\t\t\t\tcard: \"hsl(var(--border-card))\",\n\t\t\t\tdialog: \"hsl(var(--border-dialog))\",\n\t\t\t\tform: \"hsl(var(--border-form))\",\n\t\t\t\tpopover: \"hsl(var(--border-popover))\",\n\t\t\t\t\"base-muted\": \"hsl(var(--border-base-muted))\",\n\t\t\t\t\"card-muted\": \"hsl(var(--border-card-muted))\",\n\t\t\t\t\"dialog-muted\": \"hsl(var(--border-dialog-muted))\",\n\t\t\t\t\"popover-muted\": \"hsl(var(--border-popover-muted))\",\n\t\t\t},\n\t\t\tringColor: {\n\t\t\t\t\"focus-accent\": \"hsl(var(--ring-focus-accent))\",\n\t\t\t\t\"focus-danger\": \"hsl(var(--ring-focus-danger))\",\n\t\t\t\t\"focus-neutral\": \"hsl(var(--ring-focus-neutral))\",\n\t\t\t\t\"focus-success\": \"hsl(var(--ring-focus-success))\",\n\t\t\t\t\"focus-warning\": \"hsl(var(--ring-focus-warning))\",\n\t\t\t},\n\t\t\tcursor: {\n\t\t\t\tinherit: \"inherit\",\n\t\t\t\tinitial: \"initial\",\n\t\t\t},\n\t\t\tdata: {\n\t\t\t\t\"active-item\": \"active-item\",\n\t\t\t\t\"drag-over\": 'drag-over=\"true\"',\n\t\t\t\tdisabled: \"disabled\",\n\t\t\t\thighlighted: \"highlighted\",\n\t\t\t\t\"orientation-horizontal\": 'orientation=\"horizontal\"',\n\t\t\t\t\"orientation-vertical\": 'orientation=\"vertical\"',\n\t\t\t\t\"side-bottom\": 'side=\"bottom\"',\n\t\t\t\t\"side-left\": 'side=\"left\"',\n\t\t\t\t\"side-right\": 'side=\"right\"',\n\t\t\t\t\"side-top\": 'side=\"top\"',\n\t\t\t\t\"state-active\": 'state~=\"active\"',\n\t\t\t\t\"state-checked\": 'state~=\"checked\"',\n\t\t\t\t\"state-closed\": 'state~=\"closed\"',\n\t\t\t\t\"state-idle\": 'state~=\"idle\"',\n\t\t\t\t\"state-inactive\": 'state~=\"inactive\"',\n\t\t\t\t\"state-indeterminate\": 'state~=\"indeterminate\"',\n\t\t\t\t\"state-open\": 'state~=\"open\"',\n\t\t\t\t\"state-pending\": 'state~=\"pending\"',\n\t\t\t\t\"state-selected\": 'state~=\"selected\"',\n\t\t\t\t\"state-submitting\": 'state~=\"submitting\"',\n\t\t\t\t\"state-unchecked\": 'state~=\"unchecked\"',\n\t\t\t\t\"validation-error\": 'validation=\"error\"',\n\t\t\t\t\"validation-success\": 'validation=\"success\"',\n\t\t\t\t\"validation-warning\": 'validation=\"warning\"',\n\t\t\t},\n\t\t\tfontFamily: {\n\t\t\t\tsans: [\"EuclidSquare\", ...defaultTheme.fontFamily.sans],\n\t\t\t\tmono: [\"IBMPlexMono\", ...defaultTheme.fontFamily.mono],\n\t\t\t\tbody: [\"Nunito Sans\", ...defaultTheme.fontFamily.sans],\n\t\t\t},\n\t\t\tfontSize: {\n\t\t\t\t\"size-inherit\": \"inherit\",\n\t\t\t},\n\t\t\tfontWeight: {\n\t\t\t\tinitial: \"initial\",\n\t\t\t},\n\t\t\tkeyframes: {\n\t\t\t\t\"accordion-down\": {\n\t\t\t\t\tfrom: { height: \"0\" },\n\t\t\t\t\tto: { height: \"var(--radix-accordion-content-height)\" },\n\t\t\t\t},\n\t\t\t\t\"accordion-up\": {\n\t\t\t\t\tfrom: { height: \"var(--radix-accordion-content-height)\" },\n\t\t\t\t\tto: { height: \"0\" },\n\t\t\t\t},\n\t\t\t\tspin: {\n\t\t\t\t\tfrom: { transform: \"rotate(var(--spin-start-deg, 0))\" },\n\t\t\t\t\tto: { transform: \"rotate(var(--spin-end-deg, 360deg))\" },\n\t\t\t\t} as const,\n\t\t\t},\n\t\t\tlineHeight: {\n\t\t\t\t0: \"0\",\n\t\t\t\tinitial: \"initial\",\n\t\t\t},\n\t\t\tscreens: {\n\t\t\t\txs: \"480px\",\n\t\t\t},\n\t\t\tspacing: {\n\t\t\t\t\"1.25\": \"0.3125rem\", // 5px\n\t\t\t},\n\t\t\ttransitionProperty: {\n\t\t\t\t\"max-height\": \"max-height\",\n\t\t\t},\n\t\t\tzIndex: {\n\t\t\t\t1: \"1\",\n\t\t\t\tmax: \"2147483647\",\n\t\t\t},\n\t\t},\n\t},\n\tplugins: [\n\t\tanimationDurationPlugin,\n\t\tariaEnabledVariantPlugin,\n\t\tfirefoxVariantPlugin,\n\t\tgradientStopPlugin,\n\t\tpointingVariantsPlugin,\n\t\ttailwindCssAnimatePlugin,\n\t\twhereVariantPlugin,\n\t\tplugin(function ({ addVariant }) {\n\t\t\taddVariant(\"dark-high-contrast\", [\":is(.dark-high-contrast &)\"]);\n\t\t\taddVariant(\"high-contrast\", [\":is(.light-high-contrast &)\"]);\n\t\t}),\n\t\tplugin(function ({ addVariant }) {\n\t\t\taddVariant(\"not-disabled\", [\"&:not(:disabled)\"]);\n\t\t}),\n\t],\n} satisfies Config;\n\nexport type MantlePreset = typeof mantlePreset;\n\nexport { mantlePreset };\n","import plugin from \"tailwindcss/plugin\";\nimport type { PluginAPI } from \"tailwindcss/types/config\";\nimport { filterDefault } from \"./shared\";\n\n/**\n * This plugin adds animation-duration utilities to TailwindCSS\n * These are similar to the transition-duration utilities but for animations instead of transitions.\n * It also supports arbitrary values, e.g. `animation-duration-[15s]`.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-duration\n * @see https://tailwindcss.com/docs/transition-duration\n */\nconst animationDurationPlugin = plugin((api: PluginAPI) => {\n\tapi.matchUtilities(\n\t\t{ \"animation-duration\": (value) => ({ animationDuration: value }) },\n\t\t{ values: filterDefault(api.theme(\"animationDuration\")) },\n\t);\n});\n\nexport { animationDurationPlugin };\n","/**\n * Filters out the \"DEFAULT\" key from the given object.\n */\nexport function filterDefault(values: Record<string, string>) {\n\treturn Object.fromEntries(Object.entries(values).filter(([key]) => key !== \"DEFAULT\"));\n}\n\ntype AnyObject = Record<string, any>;\n\ntype FlattenObjectOptions = {\n\tparentKey: string;\n\tseparator?: string;\n};\n\n/**\n * Flattens an object to a single level deep object.\n */\nexport function flattenObject(obj: AnyObject, options?: FlattenObjectOptions) {\n\tlet result: AnyObject = {};\n\tconst { parentKey = \"\", separator = \"-\" } = options ?? {};\n\n\tfor (let key in obj) {\n\t\tif (obj.hasOwnProperty(key)) {\n\t\t\tlet newKey = parentKey ? `${parentKey}${separator}${key}` : key;\n\n\t\t\tif (typeof obj[key] === \"object\" && obj[key] != null && !Array.isArray(obj[key])) {\n\t\t\t\tObject.assign(result, flattenObject(obj[key], { parentKey: newKey }));\n\t\t\t} else {\n\t\t\t\tresult[newKey] = obj[key];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn result;\n}\n","import plugin from \"tailwindcss/plugin\";\nimport type { PluginAPI } from \"tailwindcss/types/config\";\n\n/**\n * This plugin adds the following variant: aria-enabled\n */\nconst ariaEnabledVariantPlugin = plugin((api: PluginAPI) => {\n\tapi.addVariant(\n\t\t\"aria-enabled\",\n\t\t// @ts-expect-error addVariant is not typed correctly\n\t\t({ modifySelectors, separator }: { modifySelectors: unknown; separator: string }) => {\n\t\t\t// @ts-expect-error modifySelectors is not typed correctly\n\t\t\tmodifySelectors(({ className }: { className: string }) => {\n\t\t\t\treturn `:not([aria-disabled]).${api.e(`aria-enabled${separator}${className}`)}`;\n\t\t\t});\n\t\t},\n\t);\n});\n\nexport { ariaEnabledVariantPlugin };\n","import type { Postcss, Root } from \"postcss\";\nimport plugin from \"tailwindcss/plugin\";\nimport type { PluginAPI } from \"tailwindcss/types/config\";\n\n/**\n * This plugin adds a `firefox` variant to TailwindCSS.\n *\n * @see https://gist.github.com/samselikoff/b3c5126ee4f4e69e60b0af0aa5bfb2e7\n */\nconst firefoxVariantPlugin = plugin(\n\t// @ts-expect-error PluginAPI is not typed correctly, missing postcss\n\t(api: PluginAPI & { postcss: Postcss }) => {\n\t\t// @ts-expect-error addVariant is not typed correctly\n\t\tapi.addVariant(\"firefox\", ({ container, separator }: { container: Root; separator: string }) => {\n\t\t\tconst isFirefoxRule = api.postcss.atRule({\n\t\t\t\tname: \"supports\",\n\t\t\t\tparams: \"(-moz-appearance:none)\",\n\t\t\t});\n\t\t\tisFirefoxRule.append(container.nodes);\n\t\t\tcontainer.append(isFirefoxRule);\n\t\t\tisFirefoxRule.walkRules((rule) => {\n\t\t\t\trule.selector = `.${api.e(`firefox${separator}${rule.selector.slice(1).replace(/\\\\/g, \"\")}`)}`;\n\t\t\t});\n\t\t});\n\t},\n);\n\nexport { firefoxVariantPlugin };\n","import plugin from \"tailwindcss/plugin\";\nimport type { PluginAPI } from \"tailwindcss/types/config\";\nimport { filterDefault, flattenObject } from \"./shared\";\n\n/**\n * This plugin adds a stop svg utilities to TailwindCSS\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/stop#attributes\n */\nconst gradientStopPlugin = plugin((api: PluginAPI) => {\n\tapi.matchUtilities(\n\t\t{ \"stop-opacity\": (value) => ({ \"stop-opacity\": value }) },\n\t\t{ values: filterDefault(api.theme(\"opacity\")), respectImportant: true, respectPrefix: true },\n\t);\n\n\tapi.matchUtilities(\n\t\t{ \"stop-color\": (value) => ({ \"stop-color\": value }) },\n\t\t{\n\t\t\tvalues: flattenObject(api.theme(\"colors\")),\n\t\t\trespectImportant: true,\n\t\t\trespectPrefix: true,\n\t\t\ttype: \"color\",\n\t\t},\n\t);\n});\n\nexport { gradientStopPlugin };\n","import type { Postcss, Root } from \"postcss\";\nimport plugin from \"tailwindcss/plugin\";\nimport type { PluginAPI } from \"tailwindcss/types/config\";\n\n/**\n * This plugin adds the following variants to TailwindCSS:\n * - `pointer-coarse`\n * - `pointer-fine`\n * - `pointer-none`\n * - `hover-hover`\n * - `hover-none`\n *\n * @see https://css-tricks.com/touch-devices-not-judged-size/\n */\nconst pointingVariantsPlugin = plugin(\n\t// @ts-expect-error PluginAPI is not typed correctly, missing postcss\n\t(api: PluginAPI & { postcss: Postcss }) => {\n\t\t// @ts-expect-error addVariant is not typed correctly\n\t\tapi.addVariant(\"pointer-coarse\", ({ container, separator }: { container: Root; separator: string }) => {\n\t\t\tconst pointerCoarse = api.postcss.atRule({ name: \"media\", params: \"(pointer: coarse)\" });\n\t\t\tpointerCoarse.append(container.nodes);\n\t\t\tcontainer.append(pointerCoarse);\n\t\t\tpointerCoarse.walkRules((rule) => {\n\t\t\t\trule.selector = `.${api.e(`pointer-coarse${separator}${rule.selector.slice(1).replace(/\\\\/g, \"\")}`)}`;\n\t\t\t});\n\t\t});\n\n\t\t// @ts-expect-error addVariant is not typed correctly\n\t\tapi.addVariant(\"pointer-fine\", ({ container, separator }: { container: Root; separator: string }) => {\n\t\t\tconst pointerFine = api.postcss.atRule({ name: \"media\", params: \"(pointer: fine)\" });\n\t\t\tpointerFine.append(container.nodes);\n\t\t\tcontainer.append(pointerFine);\n\t\t\tpointerFine.walkRules((rule) => {\n\t\t\t\trule.selector = `.${api.e(`pointer-fine${separator}${rule.selector.slice(1).replace(/\\\\/g, \"\")}`)}`;\n\t\t\t});\n\t\t});\n\n\t\t// @ts-expect-error addVariant is not typed correctly\n\t\tapi.addVariant(\"pointer-none\", ({ container, separator }: { container: Root; separator: string }) => {\n\t\t\tconst pointerNone = api.postcss.atRule({ name: \"media\", params: \"(pointer: none)\" });\n\t\t\tpointerNone.append(container.nodes);\n\t\t\tcontainer.append(pointerNone);\n\t\t\tpointerNone.walkRules((rule) => {\n\t\t\t\trule.selector = `.${api.e(`pointer-none${separator}${rule.selector.slice(1).replace(/\\\\/g, \"\")}`)}`;\n\t\t\t});\n\t\t});\n\n\t\t// @ts-expect-error addVariant is not typed correctly\n\t\tapi.addVariant(\"hover-hover\", ({ container, separator }: { container: Root; separator: string }) => {\n\t\t\tconst hoverHover = api.postcss.atRule({ name: \"media\", params: \"(hover: hover)\" });\n\t\t\thoverHover.append(container.nodes);\n\t\t\tcontainer.append(hoverHover);\n\t\t\thoverHover.walkRules((rule) => {\n\t\t\t\trule.selector = `.${api.e(`hover-hover${separator}${rule.selector.slice(1).replace(/\\\\/g, \"\")}`)}`;\n\t\t\t});\n\t\t});\n\n\t\t// @ts-expect-error addVariant is not typed correctly\n\t\tapi.addVariant(\"hover-none\", ({ container, separator }: { container: Root; separator: string }) => {\n\t\t\tconst hoverNone = api.postcss.atRule({ name: \"media\", params: \"(hover: none)\" });\n\t\t\thoverNone.append(container.nodes);\n\t\t\tcontainer.append(hoverNone);\n\t\t\thoverNone.walkRules((rule) => {\n\t\t\t\trule.selector = `.${api.e(`hover-none${separator}${rule.selector.slice(1).replace(/\\\\/g, \"\")}`)}`;\n\t\t\t});\n\t\t});\n\t},\n);\n\nexport { pointingVariantsPlugin };\n","import plugin from \"tailwindcss/plugin\";\nimport type { PluginAPI } from \"tailwindcss/types/config\";\n\n/**\n * This plugin adds a :where() variant to TailwindCSS\n *\n * This is useful to avoid specificity issues when using overridable base styles\n * since reduces the specificity of the selector to zero (0, 0, 0).\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/:where\n */\nconst whereVariantPlugin = plugin((api: PluginAPI) => {\n\tapi.addVariant(\n\t\t\"where\",\n\t\t// @ts-expect-error addVariant is not typed correctly\n\t\t({\n\t\t\tmodifySelectors,\n\t\t\tseparator,\n\t\t}: {\n\t\t\tmodifySelectors: (args: { className: string }) => string;\n\t\t\tseparator: string;\n\t\t}) => {\n\t\t\t// @ts-expect-error modifySelectors is not typed correctly\n\t\t\tmodifySelectors(({ className }: { className: string }) => {\n\t\t\t\treturn `:where(&.${api.e(`where${separator}${className}`)})`;\n\t\t\t});\n\t\t},\n\t);\n});\n\nexport { whereVariantPlugin };\n","import path from \"node:path\";\n\n/**\n * Resolve the glob path to all mantle component content.\n * For use in your app's tailwind config content field.\n *\n * This works whether or not the `@ngrok/mantle` package is hoisted to a root node_modules,\n * e.g. in a js monorepo using workspaces.\n *\n * @example\n * import { createRequire } from \"node:module\";\n * import { resolveMantleContentGlob } from \"@ngrok/mantle/tailwind-preset\";\n *\n * const mantleContentGlob = resolveMantleContentGlob(createRequire(import.meta.url));\n *\n * export default {\n * content: [mantleContentGlob, \"/your/app/content/here\"],\n * // ...\n * }\n */\nfunction resolveMantleContentGlob(require: NodeRequire) {\n\ttry {\n\t\t/**\n\t\t * use the tailwind-preset module path since it is dual exported as cjs and esm\n\t\t * as long as we rely on postcss we need to reference a cjs module only or it will fail to resolve\n\t\t */\n\t\tconst presetPath = require.resolve(\"@ngrok/mantle/tailwind-preset\");\n\n\t\t/**\n\t\t * resolve the glob path to all mantle component content\n\t\t * need to go up two levels to get to the mantle package root since the\n\t\t * tailwind-preset exists at node_modules/@ngrok/mantle/dist/tailwind-preset.js\n\t\t */\n\t\treturn path.join(presetPath, \"..\", \"..\", \"**\", \"*.js\");\n\t} catch (error) {\n\t\tconsole.warn(error);\n\n\t\t// unlikely, BUT if require.resolve throws, just return a best guess glob of the mantle package\n\t\t// assumes the mantle package is hoisted to the root node_modules\n\t\treturn \"node_modules/@ngrok/mantle/**/*.js\";\n\t}\n}\n\nexport {\n\t//,\n\tresolveMantleContentGlob,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/mantle/mantle/dist/tailwind-preset.cjs","../node_modules/mini-svg-data-uri/shorter-css-color-names.js","../node_modules/mini-svg-data-uri/index.js","../packages/tailwind-preset/src/tailwind.preset.ts","../packages/tailwind-preset/src/shared.ts"],"names":["require_shorter_css_color_names","__commonJSMin","exports","module","require_mini_svg_data_uri","shorterNames","REGEX","collapseWhitespace","str","dataURIPayload","string","specialHexEncode","colorCodeToShorterNames","key","match","svgToTinyDataUri","svgString","body","import_mini_svg_data_uri","filterDefault","values","flattenObject","obj","options","result","parentKey","separator","newKey"],"mappings":"AAAA,iRAAI,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,C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A,EAAMA,CAAAA,GAAQ,SAAS,CAAC,CACtF,CAYO,SAASQ,CAAAA,CAAcC,CAAAA,CAAgBC,CAAAA,CAAgC,CAC7E,IAAIC,CAAAA,CAAoB,CAAC,CAAA,CACnB,CAAE,SAAA,CAAAC,CAAAA,CAAY,EAAA,CAAI,SAAA,CAAAC,CAAAA,CAAY,GAAI,CAAA,kBAAIH,CAAAA,SAAW,CAAC,GAAA,CAExD,GAAA,CAAA,IAASV,EAAAA,GAAOS,CAAAA,CACf,EAAA,CAAIA,CAAAA,CAAI,cAAA,CAAeT,CAAG,CAAA,CAAG,CAC5B,IAAIc,CAAAA,CAASF,CAAAA,CAAY,CAAA,EAAA","file":"/home/runner/work/mantle/mantle/dist/tailwind-preset.cjs","sourcesContent":[null,"module.exports = {\n aqua: /#00ffff(ff)?(?!\\w)|#0ff(f)?(?!\\w)/gi,\n azure: /#f0ffff(ff)?(?!\\w)/gi,\n beige: /#f5f5dc(ff)?(?!\\w)/gi,\n bisque: /#ffe4c4(ff)?(?!\\w)/gi,\n black: /#000000(ff)?(?!\\w)|#000(f)?(?!\\w)/gi,\n blue: /#0000ff(ff)?(?!\\w)|#00f(f)?(?!\\w)/gi,\n brown: /#a52a2a(ff)?(?!\\w)/gi,\n coral: /#ff7f50(ff)?(?!\\w)/gi,\n cornsilk: /#fff8dc(ff)?(?!\\w)/gi,\n crimson: /#dc143c(ff)?(?!\\w)/gi,\n cyan: /#00ffff(ff)?(?!\\w)|#0ff(f)?(?!\\w)/gi,\n darkblue: /#00008b(ff)?(?!\\w)/gi,\n darkcyan: /#008b8b(ff)?(?!\\w)/gi,\n darkgrey: /#a9a9a9(ff)?(?!\\w)/gi,\n darkred: /#8b0000(ff)?(?!\\w)/gi,\n deeppink: /#ff1493(ff)?(?!\\w)/gi,\n dimgrey: /#696969(ff)?(?!\\w)/gi,\n gold: /#ffd700(ff)?(?!\\w)/gi,\n green: /#008000(ff)?(?!\\w)/gi,\n grey: /#808080(ff)?(?!\\w)/gi,\n honeydew: /#f0fff0(ff)?(?!\\w)/gi,\n hotpink: /#ff69b4(ff)?(?!\\w)/gi,\n indigo: /#4b0082(ff)?(?!\\w)/gi,\n ivory: /#fffff0(ff)?(?!\\w)/gi,\n khaki: /#f0e68c(ff)?(?!\\w)/gi,\n lavender: /#e6e6fa(ff)?(?!\\w)/gi,\n lime: /#00ff00(ff)?(?!\\w)|#0f0(f)?(?!\\w)/gi,\n linen: /#faf0e6(ff)?(?!\\w)/gi,\n maroon: /#800000(ff)?(?!\\w)/gi,\n moccasin: /#ffe4b5(ff)?(?!\\w)/gi,\n navy: /#000080(ff)?(?!\\w)/gi,\n oldlace: /#fdf5e6(ff)?(?!\\w)/gi,\n olive: /#808000(ff)?(?!\\w)/gi,\n orange: /#ffa500(ff)?(?!\\w)/gi,\n orchid: /#da70d6(ff)?(?!\\w)/gi,\n peru: /#cd853f(ff)?(?!\\w)/gi,\n pink: /#ffc0cb(ff)?(?!\\w)/gi,\n plum: /#dda0dd(ff)?(?!\\w)/gi,\n purple: /#800080(ff)?(?!\\w)/gi,\n red: /#ff0000(ff)?(?!\\w)|#f00(f)?(?!\\w)/gi,\n salmon: /#fa8072(ff)?(?!\\w)/gi,\n seagreen: /#2e8b57(ff)?(?!\\w)/gi,\n seashell: /#fff5ee(ff)?(?!\\w)/gi,\n sienna: /#a0522d(ff)?(?!\\w)/gi,\n silver: /#c0c0c0(ff)?(?!\\w)/gi,\n skyblue: /#87ceeb(ff)?(?!\\w)/gi,\n snow: /#fffafa(ff)?(?!\\w)/gi,\n tan: /#d2b48c(ff)?(?!\\w)/gi,\n teal: /#008080(ff)?(?!\\w)/gi,\n thistle: /#d8bfd8(ff)?(?!\\w)/gi,\n tomato: /#ff6347(ff)?(?!\\w)/gi,\n violet: /#ee82ee(ff)?(?!\\w)/gi,\n wheat: /#f5deb3(ff)?(?!\\w)/gi,\n white: /#ffffff(ff)?(?!\\w)|#fff(f)?(?!\\w)/gi,\n};\n","var shorterNames = require('./shorter-css-color-names');\nvar REGEX = {\n whitespace: /\\s+/g,\n urlHexPairs: /%[\\dA-F]{2}/g,\n quotes: /\"/g,\n}\n\nfunction collapseWhitespace(str) {\n return str.trim().replace(REGEX.whitespace, ' ');\n}\n\nfunction dataURIPayload(string) {\n return encodeURIComponent(string)\n .replace(REGEX.urlHexPairs, specialHexEncode);\n}\n\n// `#` gets converted to `%23`, so quite a few CSS named colors are shorter than\n// their equivalent URL-encoded hex codes.\nfunction colorCodeToShorterNames(string) {\n Object.keys(shorterNames).forEach(function(key) {\n if (shorterNames[key].test(string)) {\n string = string.replace(shorterNames[key], key);\n }\n });\n\n return string;\n}\n\nfunction specialHexEncode(match) {\n switch (match) { // Browsers tolerate these characters, and they're frequent\n case '%20': return ' ';\n case '%3D': return '=';\n case '%3A': return ':';\n case '%2F': return '/';\n default: return match.toLowerCase(); // compresses better\n }\n}\n\nfunction svgToTinyDataUri(svgString) {\n if (typeof svgString !== 'string') {\n throw new TypeError('Expected a string, but received ' + typeof svgString);\n }\n // Strip the Byte-Order Mark if the SVG has one\n if (svgString.charCodeAt(0) === 0xfeff) { svgString = svgString.slice(1) }\n\n var body = colorCodeToShorterNames(collapseWhitespace(svgString))\n .replace(REGEX.quotes, \"'\");\n return 'data:image/svg+xml,' + dataURIPayload(body);\n}\n\nsvgToTinyDataUri.toSrcset = function toSrcset(svgString) {\n return svgToTinyDataUri(svgString).replace(/ /g, '%20');\n}\n\nmodule.exports = svgToTinyDataUri;\n","import svgToDataUri from \"mini-svg-data-uri\";\nimport type { Config } from \"tailwindcss\";\nimport tailwindCssAnimatePlugin from \"tailwindcss-animate\";\nimport defaultTheme from \"tailwindcss/defaultTheme\";\nimport plugin from \"tailwindcss/plugin\";\nimport { animationDurationPlugin } from \"./tailwind-plugin-animation-duration.js\";\nimport { ariaEnabledVariantPlugin } from \"./tailwind-plugin-aria-enabled.js\";\nimport { firefoxVariantPlugin } from \"./tailwind-plugin-firefox-variant.js\";\nimport { gradientStopPlugin } from \"./tailwind-plugin-gradient-stop.js\";\nimport { pointingVariantsPlugin } from \"./tailwind-plugin-pointing-variants.js\";\nimport { whereVariantPlugin } from \"./tailwind-plugin-where-variant.js\";\n\nconst colors = {\n\tinherit: \"inherit\",\n\tcurrent: \"currentColor\",\n\ttransparent: \"transparent\",\n\twhite: \"hsl(var(--white) / <alpha-value>)\",\n\tblack: \"hsl(var(--black) / <alpha-value>)\",\n\tgray: {\n\t\t50: \"hsl(var(--gray-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--gray-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--gray-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--gray-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--gray-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--gray-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--gray-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--gray-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--gray-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--gray-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--gray-950) / <alpha-value>)\",\n\t},\n\tred: {\n\t\t50: \"hsl(var(--red-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--red-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--red-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--red-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--red-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--red-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--red-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--red-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--red-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--red-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--red-950) / <alpha-value>)\",\n\t},\n\torange: {\n\t\t50: \"hsl(var(--orange-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--orange-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--orange-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--orange-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--orange-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--orange-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--orange-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--orange-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--orange-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--orange-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--orange-950) / <alpha-value>)\",\n\t},\n\tamber: {\n\t\t50: \"hsl(var(--amber-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--amber-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--amber-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--amber-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--amber-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--amber-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--amber-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--amber-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--amber-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--amber-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--amber-950) / <alpha-value>)\",\n\t},\n\tyellow: {\n\t\t50: \"hsl(var(--yellow-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--yellow-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--yellow-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--yellow-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--yellow-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--yellow-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--yellow-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--yellow-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--yellow-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--yellow-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--yellow-950) / <alpha-value>)\",\n\t},\n\tlime: {\n\t\t50: \"hsl(var(--lime-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--lime-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--lime-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--lime-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--lime-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--lime-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--lime-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--lime-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--lime-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--lime-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--lime-950) / <alpha-value>)\",\n\t},\n\tgreen: {\n\t\t50: \"hsl(var(--green-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--green-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--green-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--green-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--green-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--green-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--green-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--green-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--green-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--green-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--green-950) / <alpha-value>)\",\n\t},\n\temerald: {\n\t\t50: \"hsl(var(--emerald-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--emerald-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--emerald-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--emerald-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--emerald-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--emerald-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--emerald-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--emerald-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--emerald-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--emerald-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--emerald-950) / <alpha-value>)\",\n\t},\n\tteal: {\n\t\t50: \"hsl(var(--teal-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--teal-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--teal-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--teal-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--teal-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--teal-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--teal-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--teal-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--teal-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--teal-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--teal-950) / <alpha-value>)\",\n\t},\n\tcyan: {\n\t\t50: \"hsl(var(--cyan-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--cyan-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--cyan-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--cyan-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--cyan-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--cyan-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--cyan-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--cyan-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--cyan-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--cyan-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--cyan-950) / <alpha-value>)\",\n\t},\n\tsky: {\n\t\t50: \"hsl(var(--sky-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--sky-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--sky-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--sky-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--sky-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--sky-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--sky-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--sky-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--sky-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--sky-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--sky-950) / <alpha-value>)\",\n\t},\n\tblue: {\n\t\t50: \"hsl(var(--blue-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--blue-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--blue-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--blue-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--blue-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--blue-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--blue-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--blue-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--blue-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--blue-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--blue-950) / <alpha-value>)\",\n\t},\n\tindigo: {\n\t\t50: \"hsl(var(--indigo-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--indigo-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--indigo-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--indigo-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--indigo-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--indigo-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--indigo-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--indigo-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--indigo-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--indigo-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--indigo-950) / <alpha-value>)\",\n\t},\n\tviolet: {\n\t\t50: \"hsl(var(--violet-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--violet-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--violet-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--violet-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--violet-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--violet-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--violet-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--violet-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--violet-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--violet-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--violet-950) / <alpha-value>)\",\n\t},\n\tpurple: {\n\t\t50: \"hsl(var(--purple-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--purple-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--purple-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--purple-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--purple-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--purple-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--purple-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--purple-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--purple-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--purple-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--purple-950) / <alpha-value>)\",\n\t},\n\tfuchsia: {\n\t\t50: \"hsl(var(--fuchsia-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--fuchsia-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--fuchsia-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--fuchsia-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--fuchsia-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--fuchsia-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--fuchsia-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--fuchsia-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--fuchsia-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--fuchsia-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--fuchsia-950) / <alpha-value>)\",\n\t},\n\tpink: {\n\t\t50: \"hsl(var(--pink-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--pink-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--pink-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--pink-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--pink-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--pink-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--pink-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--pink-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--pink-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--pink-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--pink-950) / <alpha-value>)\",\n\t},\n\trose: {\n\t\t50: \"hsl(var(--rose-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--rose-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--rose-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--rose-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--rose-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--rose-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--rose-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--rose-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--rose-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--rose-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--rose-950) / <alpha-value>)\",\n\t},\n\tneutral: {\n\t\t50: \"hsl(var(--neutral-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--neutral-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--neutral-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--neutral-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--neutral-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--neutral-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--neutral-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--neutral-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--neutral-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--neutral-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--neutral-950) / <alpha-value>)\",\n\t},\n\taccent: {\n\t\t50: \"hsl(var(--accent-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--accent-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--accent-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--accent-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--accent-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--accent-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--accent-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--accent-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--accent-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--accent-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--accent-950) / <alpha-value>)\",\n\t},\n\tdanger: {\n\t\t50: \"hsl(var(--danger-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--danger-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--danger-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--danger-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--danger-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--danger-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--danger-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--danger-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--danger-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--danger-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--danger-950) / <alpha-value>)\",\n\t},\n\twarning: {\n\t\t50: \"hsl(var(--warning-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--warning-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--warning-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--warning-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--warning-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--warning-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--warning-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--warning-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--warning-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--warning-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--warning-950) / <alpha-value>)\",\n\t},\n\tsuccess: {\n\t\t50: \"hsl(var(--success-50) / <alpha-value>)\",\n\t\t100: \"hsl(var(--success-100) / <alpha-value>)\",\n\t\t200: \"hsl(var(--success-200) / <alpha-value>)\",\n\t\t300: \"hsl(var(--success-300) / <alpha-value>)\",\n\t\t400: \"hsl(var(--success-400) / <alpha-value>)\",\n\t\t500: \"hsl(var(--success-500) / <alpha-value>)\",\n\t\t600: \"hsl(var(--success-600) / <alpha-value>)\",\n\t\t700: \"hsl(var(--success-700) / <alpha-value>)\",\n\t\t800: \"hsl(var(--success-800) / <alpha-value>)\",\n\t\t900: \"hsl(var(--success-900) / <alpha-value>)\",\n\t\t950: \"hsl(var(--success-950) / <alpha-value>)\",\n\t},\n};\n\nconst mantlePreset = {\n\tcontent: [],\n\tdarkMode: \"class\",\n\ttheme: {\n\t\tcolors,\n\t\tcontainer: {\n\t\t\tcenter: true,\n\t\t\tpadding: \"2rem\",\n\t\t\tscreens: {\n\t\t\t\t\"2xl\": \"1400px\",\n\t\t\t},\n\t\t},\n\t\textend: {\n\t\t\tanimation: {\n\t\t\t\t\"accordion-down\": \"accordion-down 0.2s ease-out\",\n\t\t\t\t\"accordion-up\": \"accordion-up 0.2s ease-out\",\n\t\t\t},\n\t\t\taria: {\n\t\t\t\tcollapsed: 'expanded=\"false\"',\n\t\t\t\tinvalid: 'invalid=\"true\"',\n\t\t\t\tunchecked: 'checked=\"false\"',\n\t\t\t},\n\t\t\tbackgroundImage: {\n\t\t\t\t\"checked-icon\": `url(\"${svgToDataUri(`<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 16 16\"><path fill=\"#fff\" d=\"M12.7071 4.29289c.3905.39053.3905 1.02369 0 1.41422L6.70711 11.7071c-.39053.3905-1.02369.3905-1.41422 0l-2-1.99999c-.39052-.39053-.39052-1.02369 0-1.41422.39053-.39052 1.02369-.39052 1.41422 0L6 9.58579l5.2929-5.2929c.3905-.39052 1.0237-.39052 1.4142 0Z\"/></svg>`)}\")`,\n\t\t\t\t\"indeterminate-icon\": `url(\"${svgToDataUri(`<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 16 16\"><path fill=\"#fff\" d=\"M4 8c0-.55228.44772-1 1-1h6c.5523 0 1 .44772 1 1s-.4477 1-1 1H5c-.55228 0-1-.44772-1-1Z\"/></svg>`)}\")`,\n\t\t\t},\n\t\t\tboxShadow: {\n\t\t\t\tsm: \"0px 1px 2px 0 hsl(var(--shadow-color) / var(--shadow-first))\",\n\t\t\t\tDEFAULT:\n\t\t\t\t\t\"0px 1px 2px -1px hsl(var(--shadow-color) / var(--shadow-second)), 0px 1px 3px 0px hsl(var(--shadow-color) / var(--shadow-second))\",\n\t\t\t\tmd: \"0px 2px 13px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 2px 4px -2px hsl(var(--shadow-color) / var(--shadow-second)), 0px 4px 6px -1px hsl(var(--shadow-color) / var(--shadow-second))\",\n\t\t\t\tlg: \"0px 1px 13px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 4px 6px -4px hsl(var(--shadow-color) / var(--shadow-second)), 0px 10px 15px -3px hsl(var(--shadow-color) / var(--shadow-second))\",\n\t\t\t\txl: \"0px 0px 15px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 8px 10px -6px hsl(var(--shadow-color) / var(--shadow-second)), 0px 20px 25px -5px hsl(var(--shadow-color) / var(--shadow-second))\",\n\t\t\t\t\"2xl\":\n\t\t\t\t\t\"0px 0px 15px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 11px 10px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 17px 25px 2px hsl(var(--shadow-color) / var(--shadow-second))\",\n\t\t\t\tinner: \"inset 0px 2px 4px 0px hsl(var(--shadow-color) / var(--shadow-first))\",\n\t\t\t},\n\t\t\tbackgroundColor: {\n\t\t\t\tbase: \"hsl(var(--bg-base))\",\n\t\t\t\tcard: \"hsl(var(--bg-card))\",\n\t\t\t\tdialog: \"hsl(var(--bg-dialog))\",\n\t\t\t\tform: \"hsl(var(--bg-form))\",\n\t\t\t\toverlay: \"hsl(var(--bg-overlay))\",\n\t\t\t\tpopover: \"hsl(var(--bg-popover))\",\n\t\t\t\ttooltip: \"hsl(var(--bg-tooltip))\",\n\t\t\t\t\"base-hover\": \"hsl(var(--bg-base-hover))\",\n\t\t\t\t\"card-hover\": \"hsl(var(--bg-card-hover))\",\n\t\t\t\t\"filled-accent-active\": \"hsl(var(--bg-filled-accent-active))\",\n\t\t\t\t\"filled-accent-hover\": \"hsl(var(--bg-filled-accent-hover))\",\n\t\t\t\t\"filled-accent\": \"hsl(var(--bg-filled-accent))\",\n\t\t\t\t\"filled-danger-active\": \"hsl(var(--bg-filled-danger-active))\",\n\t\t\t\t\"filled-danger-hover\": \"hsl(var(--bg-filled-danger-hover))\",\n\t\t\t\t\"filled-danger\": \"hsl(var(--bg-filled-danger))\",\n\t\t\t\t\"filled-neutral-active\": \"hsl(var(--bg-filled-neutral-active))\",\n\t\t\t\t\"filled-neutral-hover\": \"hsl(var(--bg-filled-neutral-hover))\",\n\t\t\t\t\"filled-neutral\": \"hsl(var(--bg-filled-neutral))\",\n\t\t\t\t\"filled-success-active\": \"hsl(var(--bg-filled-success-active))\",\n\t\t\t\t\"filled-success-hover\": \"hsl(var(--bg-filled-success-hover))\",\n\t\t\t\t\"filled-success\": \"hsl(var(--bg-filled-success))\",\n\t\t\t\t\"filled-warning-active\": \"hsl(var(--bg-filled-warning-active))\",\n\t\t\t\t\"filled-warning-hover\": \"hsl(var(--bg-filled-warning-hover))\",\n\t\t\t\t\"filled-warning\": \"hsl(var(--bg-filled-warning))\",\n\t\t\t\t\"form-active\": \"hsl(var(--bg-form-active))\",\n\t\t\t\t\"form-hover\": \"hsl(var(--bg-form-hover))\",\n\t\t\t\t\"popover-hover\": \"hsl(var(--bg-popover-hover))\",\n\t\t\t},\n\t\t\ttextColor: {\n\t\t\t\tbody: \"hsl(var(--text-body))\",\n\t\t\t\tmuted: \"hsl(var(--text-muted))\",\n\t\t\t\tplaceholder: \"hsl(var(--text-placeholder))\",\n\t\t\t\tstrong: \"hsl(var(--text-strong))\",\n\t\t\t\ttooltip: \"hsl(var(--text-tooltip))\",\n\t\t\t\t\"on-filled\": \"hsl(var(--text-on-filled))\",\n\t\t\t},\n\t\t\tborderColor: {\n\t\t\t\tbase: \"hsl(var(--border-base))\",\n\t\t\t\tcard: \"hsl(var(--border-card))\",\n\t\t\t\tdialog: \"hsl(var(--border-dialog))\",\n\t\t\t\tform: \"hsl(var(--border-form))\",\n\t\t\t\tpopover: \"hsl(var(--border-popover))\",\n\t\t\t\t\"base-muted\": \"hsl(var(--border-base-muted))\",\n\t\t\t\t\"card-muted\": \"hsl(var(--border-card-muted))\",\n\t\t\t\t\"dialog-muted\": \"hsl(var(--border-dialog-muted))\",\n\t\t\t\t\"popover-muted\": \"hsl(var(--border-popover-muted))\",\n\t\t\t},\n\t\t\tringColor: {\n\t\t\t\t\"focus-accent\": \"hsl(var(--ring-focus-accent))\",\n\t\t\t\t\"focus-danger\": \"hsl(var(--ring-focus-danger))\",\n\t\t\t\t\"focus-neutral\": \"hsl(var(--ring-focus-neutral))\",\n\t\t\t\t\"focus-success\": \"hsl(var(--ring-focus-success))\",\n\t\t\t\t\"focus-warning\": \"hsl(var(--ring-focus-warning))\",\n\t\t\t},\n\t\t\tcursor: {\n\t\t\t\tinherit: \"inherit\",\n\t\t\t\tinitial: \"initial\",\n\t\t\t},\n\t\t\tdata: {\n\t\t\t\t\"active-item\": \"active-item\",\n\t\t\t\t\"drag-over\": 'drag-over=\"true\"',\n\t\t\t\tdisabled: \"disabled\",\n\t\t\t\thighlighted: \"highlighted\",\n\t\t\t\t\"orientation-horizontal\": 'orientation=\"horizontal\"',\n\t\t\t\t\"orientation-vertical\": 'orientation=\"vertical\"',\n\t\t\t\t\"side-bottom\": 'side=\"bottom\"',\n\t\t\t\t\"side-left\": 'side=\"left\"',\n\t\t\t\t\"side-right\": 'side=\"right\"',\n\t\t\t\t\"side-top\": 'side=\"top\"',\n\t\t\t\t\"state-active\": 'state~=\"active\"',\n\t\t\t\t\"state-checked\": 'state~=\"checked\"',\n\t\t\t\t\"state-closed\": 'state~=\"closed\"',\n\t\t\t\t\"state-idle\": 'state~=\"idle\"',\n\t\t\t\t\"state-inactive\": 'state~=\"inactive\"',\n\t\t\t\t\"state-indeterminate\": 'state~=\"indeterminate\"',\n\t\t\t\t\"state-open\": 'state~=\"open\"',\n\t\t\t\t\"state-pending\": 'state~=\"pending\"',\n\t\t\t\t\"state-selected\": 'state~=\"selected\"',\n\t\t\t\t\"state-submitting\": 'state~=\"submitting\"',\n\t\t\t\t\"state-unchecked\": 'state~=\"unchecked\"',\n\t\t\t\t\"validation-error\": 'validation=\"error\"',\n\t\t\t\t\"validation-success\": 'validation=\"success\"',\n\t\t\t\t\"validation-warning\": 'validation=\"warning\"',\n\t\t\t},\n\t\t\tfontFamily: {\n\t\t\t\tsans: [\"EuclidSquare\", ...defaultTheme.fontFamily.sans],\n\t\t\t\tmono: [\"IBMPlexMono\", ...defaultTheme.fontFamily.mono],\n\t\t\t\tbody: [\"Nunito Sans\", ...defaultTheme.fontFamily.sans],\n\t\t\t},\n\t\t\tfontSize: {\n\t\t\t\t\"size-inherit\": \"inherit\",\n\t\t\t},\n\t\t\tfontWeight: {\n\t\t\t\tinitial: \"initial\",\n\t\t\t},\n\t\t\tkeyframes: {\n\t\t\t\t\"accordion-down\": {\n\t\t\t\t\tfrom: { height: \"0\" },\n\t\t\t\t\tto: { height: \"var(--radix-accordion-content-height)\" },\n\t\t\t\t},\n\t\t\t\t\"accordion-up\": {\n\t\t\t\t\tfrom: { height: \"var(--radix-accordion-content-height)\" },\n\t\t\t\t\tto: { height: \"0\" },\n\t\t\t\t},\n\t\t\t\tspin: {\n\t\t\t\t\tfrom: { transform: \"rotate(var(--spin-start-deg, 0))\" },\n\t\t\t\t\tto: { transform: \"rotate(var(--spin-end-deg, 360deg))\" },\n\t\t\t\t} as const,\n\t\t\t},\n\t\t\tlineHeight: {\n\t\t\t\t0: \"0\",\n\t\t\t\tinitial: \"initial\",\n\t\t\t},\n\t\t\tscreens: {\n\t\t\t\txs: \"480px\",\n\t\t\t},\n\t\t\tspacing: {\n\t\t\t\t\"1.25\": \"0.3125rem\", // 5px\n\t\t\t},\n\t\t\ttransitionProperty: {\n\t\t\t\t\"max-height\": \"max-height\",\n\t\t\t},\n\t\t\tzIndex: {\n\t\t\t\t1: \"1\",\n\t\t\t\tmax: \"2147483647\",\n\t\t\t},\n\t\t},\n\t},\n\tplugins: [\n\t\tanimationDurationPlugin,\n\t\tariaEnabledVariantPlugin,\n\t\tfirefoxVariantPlugin,\n\t\tgradientStopPlugin,\n\t\tpointingVariantsPlugin,\n\t\ttailwindCssAnimatePlugin,\n\t\twhereVariantPlugin,\n\t\tplugin(function ({ addVariant }) {\n\t\t\taddVariant(\"dark-high-contrast\", [\":is(.dark-high-contrast &)\"]);\n\t\t\taddVariant(\"high-contrast\", [\":is(.light-high-contrast &)\"]);\n\t\t}),\n\t\tplugin(function ({ addVariant }) {\n\t\t\taddVariant(\"not-disabled\", [\"&:not(:disabled)\"]);\n\t\t}),\n\t],\n} satisfies Config;\n\nexport type MantlePreset = typeof mantlePreset;\n\nexport { mantlePreset };\n","/**\n * Filters out the \"DEFAULT\" key from the given object.\n */\nexport function filterDefault(values: Record<string, string>) {\n\treturn Object.fromEntries(Object.entries(values).filter(([key]) => key !== \"DEFAULT\"));\n}\n\ntype AnyObject = Record<string, any>;\n\ntype FlattenObjectOptions = {\n\tparentKey: string;\n\tseparator?: string;\n};\n\n/**\n * Flattens an object to a single level deep object.\n */\nexport function flattenObject(obj: AnyObject, options?: FlattenObjectOptions) {\n\tlet result: AnyObject = {};\n\tconst { parentKey = \"\", separator = \"-\" } = options ?? {};\n\n\tfor (let key in obj) {\n\t\tif (obj.hasOwnProperty(key)) {\n\t\t\tlet newKey = parentKey ? `${parentKey}${separator}${key}` : key;\n\n\t\t\tif (typeof obj[key] === \"object\" && obj[key] != null && !Array.isArray(obj[key])) {\n\t\t\t\tObject.assign(result, flattenObject(obj[key], { parentKey: newKey }));\n\t\t\t} else {\n\t\t\t\tresult[newKey] = obj[key];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn result;\n}\n"]}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "mantle is ngrok's UI library and design system.",
4
4
  "author": "ngrok",
5
5
  "license": "MIT",
6
- "version": "0.1.47",
6
+ "version": "0.1.48",
7
7
  "homepage": "https://mantle.ngrok.com",
8
8
  "repository": {
9
9
  "type": "git",
@@ -34,14 +34,14 @@
34
34
  "@radix-ui/react-switch": "1.1.0",
35
35
  "@radix-ui/react-tabs": "1.1.0",
36
36
  "@radix-ui/react-tooltip": "1.1.2",
37
- "@remix-run/css-bundle": "2.10.2",
38
- "@remix-run/node": "2.10.2",
39
- "@remix-run/react": "2.10.2",
40
- "@remix-run/serve": "2.10.2",
37
+ "@remix-run/css-bundle": "2.10.3",
38
+ "@remix-run/node": "2.10.3",
39
+ "@remix-run/react": "2.10.3",
40
+ "@remix-run/serve": "2.10.3",
41
41
  "@uidotdev/usehooks": "2.4.1",
42
42
  "class-variance-authority": "0.7.0",
43
43
  "clsx": "2.1.1",
44
- "isbot": "5.1.12",
44
+ "isbot": "5.1.13",
45
45
  "prismjs": "1.29.0",
46
46
  "react-day-picker": "8.10.1",
47
47
  "tailwind-merge": "2.4.0",
@@ -50,39 +50,38 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@commander-js/extra-typings": "12.1.0",
53
- "@ianvs/prettier-plugin-sort-imports": "4.3.0",
53
+ "@ianvs/prettier-plugin-sort-imports": "4.3.1",
54
54
  "@phosphor-icons/react": "2.1.7",
55
- "@remix-run/dev": "2.10.2",
56
- "@testing-library/dom": "10.3.1",
55
+ "@remix-run/dev": "2.10.3",
56
+ "@testing-library/dom": "10.4.0",
57
57
  "@testing-library/react": "16.0.0",
58
58
  "@testing-library/user-event": "14.5.2",
59
59
  "@types/bun": "latest",
60
- "@types/node": "20.14.10",
61
60
  "@types/prismjs": "1.26.4",
62
61
  "@types/react": "18.3.3",
63
62
  "@types/react-dom": "18.3.0",
64
63
  "@vitejs/plugin-react": "4.3.1",
65
- "@vitest/ui": "2.0.2",
64
+ "@vitest/ui": "2.0.4",
66
65
  "autoprefixer": "10.4.19",
67
66
  "browserslist": "4.23.2",
68
- "bun-types": "1.1.18",
67
+ "bun-types": "1.1.20",
69
68
  "commander": "12.1.0",
70
69
  "copyfiles": "2.4.1",
71
70
  "date-fns": "3.6.0",
72
- "jsdom": "24.1.0",
71
+ "jsdom": "24.1.1",
73
72
  "mini-svg-data-uri": "1.4.4",
74
73
  "postcss": "8.4.39",
75
- "prettier": "3.3.2",
74
+ "prettier": "3.3.3",
76
75
  "prettier-plugin-tailwindcss": "0.6.5",
77
76
  "react": "18.3.1",
78
77
  "react-dom": "18.3.1",
79
- "react-router-dom": "6.24.1",
80
- "tailwindcss": "3.4.4",
81
- "tsup": "8.1.0",
82
- "typescript": "5.5.3",
83
- "vite": "5.3.3",
78
+ "react-router-dom": "6.25.1",
79
+ "tailwindcss": "3.4.6",
80
+ "tsup": "8.2.2",
81
+ "typescript": "5.5.4",
82
+ "vite": "5.3.4",
84
83
  "vite-tsconfig-paths": "4.3.2",
85
- "vitest": "2.0.2",
84
+ "vitest": "2.0.4",
86
85
  "vitest-dom": "0.1.1",
87
86
  "zod": "3.23.8"
88
87
  },
@@ -94,7 +93,7 @@
94
93
  "postcss": "^8.0.0",
95
94
  "react": "^18.3.1",
96
95
  "react-dom": "^18.3.1",
97
- "tailwindcss": "^3.4.4",
96
+ "tailwindcss": "^3.4.6",
98
97
  "zod": "^3.23.8"
99
98
  },
100
99
  "exports": {