@incognia/cosmik 0.40.2 → 0.42.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -7
- package/dist/Alert/index.d.ts +2 -2
- package/dist/Alert/index.d.ts.map +1 -1
- package/dist/AlertDialog/index.d.ts +5 -5
- package/dist/AlertDialog/index.d.ts.map +1 -1
- package/dist/Badge/index.d.ts +6 -7
- package/dist/Badge/index.d.ts.map +1 -1
- package/dist/Button/index.d.ts +6 -6
- package/dist/Button/index.d.ts.map +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Colors.d.ts +71 -0
- package/dist/Colors.d.ts.map +1 -0
- package/dist/Command/index.d.ts +20 -20
- package/dist/Command/index.d.ts.map +1 -1
- package/dist/Dialog/index.d.ts +2 -2
- package/dist/Dialog/index.d.ts.map +1 -1
- package/dist/DropdownMenu/index.d.ts +4 -4
- package/dist/DropdownMenu/index.d.ts.map +1 -1
- package/dist/Filter/index.d.ts +4 -2
- package/dist/Filter/index.d.ts.map +1 -1
- package/dist/FilterBar/GradientScroll.d.ts +4 -4
- package/dist/FilterBar/index.d.ts +2 -2
- package/dist/Label/index.d.ts +2 -2
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.d.ts.map +1 -1
- package/dist/Pagination/index.d.ts +3 -3
- package/dist/Pagination/index.d.ts.map +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.d.ts.map +1 -1
- package/dist/Select/index.d.ts +1 -1
- package/dist/Select/index.d.ts.map +1 -1
- package/dist/Sheet/index.d.ts +23 -13
- package/dist/Sheet/index.d.ts.map +1 -1
- package/dist/Skeleton/index.d.ts +1 -0
- package/dist/Skeleton/index.d.ts.map +1 -1
- package/dist/Sonner/index.d.ts +1 -0
- package/dist/Sonner/index.d.ts.map +1 -1
- package/dist/Table/index.d.ts +2 -2
- package/dist/Table/index.d.ts.map +1 -1
- package/dist/Tabs/index.d.ts +1 -1
- package/dist/Tabs/index.d.ts.map +1 -1
- package/dist/TagInput/index.d.ts +2 -2
- package/dist/TagInput/index.d.ts.map +1 -1
- package/dist/Toggle/index.d.ts +3 -3
- package/dist/ToggleGroup/index.d.ts +13 -4
- package/dist/ToggleGroup/index.d.ts.map +1 -1
- package/dist/Tooltip/index.d.ts +11 -7
- package/dist/Tooltip/index.d.ts.map +1 -1
- package/dist/VerticalNavigationMenu/index.d.ts +10 -1
- package/dist/VerticalNavigationMenu/index.d.ts.map +1 -1
- package/dist/cosmik.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +178 -173
- package/dist/index.js.map +1 -1
- package/dist/index10.cjs +1 -1
- package/dist/index10.cjs.map +1 -1
- package/dist/index10.js +34 -127
- package/dist/index10.js.map +1 -1
- package/dist/index11.cjs +1 -1
- package/dist/index11.cjs.map +1 -1
- package/dist/index11.js +28 -105
- package/dist/index11.js.map +1 -1
- package/dist/index12.cjs +1 -1
- package/dist/index12.cjs.map +1 -1
- package/dist/index12.js +112 -112
- package/dist/index12.js.map +1 -1
- package/dist/index13.cjs +1 -1
- package/dist/index13.cjs.map +1 -1
- package/dist/index13.js +103 -96
- package/dist/index13.js.map +1 -1
- package/dist/index14.cjs +1 -1
- package/dist/index14.cjs.map +1 -1
- package/dist/index14.js +141 -22
- package/dist/index14.js.map +1 -1
- package/dist/index15.cjs +1 -1
- package/dist/index15.cjs.map +1 -1
- package/dist/index15.js +105 -22
- package/dist/index15.js.map +1 -1
- package/dist/index16.cjs +1 -1
- package/dist/index16.cjs.map +1 -1
- package/dist/index16.js +22 -17
- package/dist/index16.js.map +1 -1
- package/dist/index17.cjs +1 -1
- package/dist/index17.cjs.map +1 -1
- package/dist/index17.js +22 -58
- package/dist/index17.js.map +1 -1
- package/dist/index18.cjs +1 -1
- package/dist/index18.cjs.map +1 -1
- package/dist/index18.js +17 -20
- package/dist/index18.js.map +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.cjs.map +1 -1
- package/dist/index19.js +64 -96
- package/dist/index19.js.map +1 -1
- package/dist/index2.cjs +2 -0
- package/dist/index2.cjs.map +1 -0
- package/dist/index2.js +5 -0
- package/dist/index2.js.map +1 -0
- package/dist/index20.cjs +1 -1
- package/dist/index20.cjs.map +1 -1
- package/dist/index20.js +20 -22
- package/dist/index20.js.map +1 -1
- package/dist/index21.cjs +1 -1
- package/dist/index21.cjs.map +1 -1
- package/dist/index21.js +93 -21
- package/dist/index21.js.map +1 -1
- package/dist/index22.cjs +1 -1
- package/dist/index22.cjs.map +1 -1
- package/dist/index22.js +19 -27
- package/dist/index22.js.map +1 -1
- package/dist/index23.cjs +1 -1
- package/dist/index23.cjs.map +1 -1
- package/dist/index23.js +19 -126
- package/dist/index23.js.map +1 -1
- package/dist/index24.cjs +1 -1
- package/dist/index24.cjs.map +1 -1
- package/dist/index24.js +30 -23
- package/dist/index24.js.map +1 -1
- package/dist/index25.cjs +1 -1
- package/dist/index25.cjs.map +1 -1
- package/dist/index25.js +130 -128
- package/dist/index25.js.map +1 -1
- package/dist/index26.cjs +1 -1
- package/dist/index26.cjs.map +1 -1
- package/dist/index26.js +21 -13
- package/dist/index26.js.map +1 -1
- package/dist/index27.cjs +1 -1
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +103 -28
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +1 -1
- package/dist/index28.cjs.map +1 -1
- package/dist/index28.js +15 -27
- package/dist/index28.js.map +1 -1
- package/dist/index29.cjs +1 -1
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +30 -108
- package/dist/index29.js.map +1 -1
- package/dist/index3.cjs +1 -1
- package/dist/index3.cjs.map +1 -1
- package/dist/index3.js +70 -54
- package/dist/index3.js.map +1 -1
- package/dist/index30.cjs +1 -1
- package/dist/index30.cjs.map +1 -1
- package/dist/index30.js +23 -38
- package/dist/index30.js.map +1 -1
- package/dist/index31.cjs +1 -1
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +102 -73
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +1 -1
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +42 -23
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +1 -1
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +78 -78
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +1 -1
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +20 -67
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +1 -1
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +75 -55
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +36 -58
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +1 -1
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +33 -3
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +1 -1
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +122 -33
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +1 -1
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +261 -11
- package/dist/index39.js.map +1 -1
- package/dist/index4.cjs +1 -1
- package/dist/index4.cjs.map +1 -1
- package/dist/index4.js +324 -112
- package/dist/index4.js.map +1 -1
- package/dist/index40.cjs +1 -1
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +6 -118
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +1 -1
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +12 -13
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +1 -1
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +118 -7
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +1 -1
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +14 -2
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +1 -9
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +2 -26
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +3 -16
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +21 -593
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +19 -1
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +598 -14
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +1 -1
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +3 -2728
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +1 -1
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +105 -2
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +1 -1
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +34 -2
- package/dist/index49.js.map +1 -1
- package/dist/index5.cjs +1 -1
- package/dist/index5.cjs.map +1 -1
- package/dist/index5.js +41 -77
- package/dist/index5.js.map +1 -1
- package/dist/index50.cjs +2 -0
- package/dist/index50.cjs.map +1 -0
- package/dist/index50.js +5 -0
- package/dist/index50.js.map +1 -0
- package/dist/index51.cjs +2 -0
- package/dist/index51.cjs.map +1 -0
- package/dist/index51.js +5 -0
- package/dist/index51.js.map +1 -0
- package/dist/index52.cjs +2 -0
- package/dist/index52.cjs.map +1 -0
- package/dist/index52.js +5 -0
- package/dist/index52.js.map +1 -0
- package/dist/index53.cjs +2 -0
- package/dist/index53.cjs.map +1 -0
- package/dist/index53.js +154 -0
- package/dist/index53.js.map +1 -0
- package/dist/index54.cjs +2 -0
- package/dist/index54.cjs.map +1 -0
- package/dist/index54.js +19 -0
- package/dist/index54.js.map +1 -0
- package/dist/index55.cjs +2 -0
- package/dist/index55.cjs.map +1 -0
- package/dist/index55.js +345 -0
- package/dist/index55.js.map +1 -0
- package/dist/index56.cjs +2 -0
- package/dist/index56.cjs.map +1 -0
- package/dist/index56.js +48 -0
- package/dist/index56.js.map +1 -0
- package/dist/index57.cjs +2 -0
- package/dist/index57.cjs.map +1 -0
- package/dist/index57.js +5 -0
- package/dist/index57.js.map +1 -0
- package/dist/index58.cjs +2 -0
- package/dist/index58.cjs.map +1 -0
- package/dist/index58.js +7 -0
- package/dist/index58.js.map +1 -0
- package/dist/index6.cjs +1 -1
- package/dist/index6.cjs.map +1 -1
- package/dist/index6.js +110 -157
- package/dist/index6.js.map +1 -1
- package/dist/index7.cjs +1 -1
- package/dist/index7.cjs.map +1 -1
- package/dist/index7.js +85 -65
- package/dist/index7.js.map +1 -1
- package/dist/index8.cjs +1 -1
- package/dist/index8.cjs.map +1 -1
- package/dist/index8.js +155 -42
- package/dist/index8.js.map +1 -1
- package/dist/index9.cjs +1 -1
- package/dist/index9.cjs.map +1 -1
- package/dist/index9.js +70 -33
- package/dist/index9.js.map +1 -1
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/tailwind-theme-config.d.ts +318 -0
- package/dist/tailwind-theme-config.d.ts.map +1 -0
- package/package.json +63 -58
- package/dist/cosmik-theme.css +0 -185
package/dist/index37.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index37.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index37.js","sources":["../src/Tooltip/index.tsx"],"sourcesContent":["'use client'\n\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip'\nimport { VariantProps, cva } from 'class-variance-authority'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst tooltipContentVariants = cva(\n 'z-50 overflow-hidden rounded px-12 py-8 text-sm shadow-200 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n {\n variants: {\n variant: {\n default: 'bg-gray-800 text-white text-sm',\n inverted: 'bg-white text-gray-800 border border-gray-900-8'\n }\n },\n defaultVariants: {\n variant: 'default'\n }\n }\n)\n\nconst TooltipProvider = TooltipPrimitive.Provider\n\nconst Tooltip = TooltipPrimitive.Root\n\nconst TooltipPortal = TooltipPrimitive.Portal\n\nconst TooltipTrigger = TooltipPrimitive.Trigger\n\ninterface TooltipContentProps\n extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>,\n VariantProps<typeof tooltipContentVariants> {\n asChild?: boolean\n}\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n TooltipContentProps\n>(({ variant, className, sideOffset = 4, ...props }, ref) => (\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(tooltipContentVariants({ variant, className }))}\n {...props}\n />\n))\nTooltipContent.displayName = TooltipPrimitive.Content.displayName\n\nexport {\n Tooltip,\n TooltipContent,\n TooltipPortal,\n TooltipProvider,\n TooltipTrigger\n}\n"],"names":["tooltipContentVariants","cva","TooltipProvider","TooltipPrimitive","Tooltip","TooltipPortal","TooltipTrigger","TooltipContent","React","variant","className","sideOffset","props","ref","jsx","cn"],"mappings":";;;;;AAOA,MAAMA,IAAyBC;AAAA,EAC7B;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,IACX;AAAA,EACF;AACF,GAEMC,IAAkBC,EAAiB,UAEnCC,IAAUD,EAAiB,MAE3BE,IAAgBF,EAAiB,QAEjCG,IAAiBH,EAAiB,SAQlCI,IAAiBC,EAAM,WAG3B,CAAC,EAAE,SAAAC,GAAS,WAAAC,GAAW,YAAAC,IAAa,GAAG,GAAGC,EAAM,GAAGC,MACnDC,gBAAAA,EAAA;AAAA,EAACX,EAAiB;AAAA,EAAjB;AAAA,IACC,KAAAU;AAAA,IACA,YAAAF;AAAA,IACA,WAAWI,EAAGf,EAAuB,EAAE,SAAAS,GAAS,WAAAC,EAAW,CAAA,CAAC;AAAA,IAC3D,GAAGE;AAAA,EAAA;AACN,CACD;AACDL,EAAe,cAAcJ,EAAiB,QAAQ;"}
|
package/dist/index38.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index40.cjs"),j=require("@radix-ui/react-collapsible"),b=require("@radix-ui/react-navigation-menu"),y=require("lucide-react"),R=require("react"),M=require("./index26.cjs"),n=require("./index41.cjs");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const c=u(j),r=u(b),s=u(R),p=s.forwardRef((e,t)=>i.jsxRuntimeExports.jsx(r.Root,{ref:t,orientation:"vertical",...e}));p.displayName=r.Root.displayName;const x=s.forwardRef(({className:e,...t},a)=>i.jsxRuntimeExports.jsx(r.List,{ref:a,className:n.cn("group flex flex-col list-none pb-12 gap-4",e),...t}));x.displayName=r.List.displayName;function V({className:e,...t}){return i.jsxRuntimeExports.jsx("div",{className:n.cn("flex items-start justify-start text-sm text-gray-600 mt-16 mb-2 px-12",e),...t})}function h({...e}){return i.jsxRuntimeExports.jsx(M.Separator,{...e})}const m=s.forwardRef(({className:e,...t},a)=>i.jsxRuntimeExports.jsx(r.Item,{ref:a,className:n.cn("w-full",e),...t}));m.displayName=r.Item.displayName;const g=s.forwardRef(({className:e,...t},a)=>i.jsxRuntimeExports.jsx(r.Link,{ref:a,className:n.cn("flex justify-start px-12 py-[8px] w-full font-normal text-gray-900 hover:bg-gray-200 hover:text-purple-800 focus-visible:outline-none focus-visible:bg-gray-200 focus-visible:text-purple-900 data-[active]:bg-purple-900 hover:data-[active]:bg-purple-900 data-[active]:text-white rounded",e),...t}));g.displayName=r.Link.displayName;const d=s.forwardRef(({className:e,...t},a)=>i.jsxRuntimeExports.jsx(c.Root,{ref:a,className:n.cn("w-full",e),...t}));d.displayName="VerticalNavigationMenuSub";const f=s.forwardRef(({className:e,children:t,icon:a,chevron:o=!0,...l},N)=>i.jsxRuntimeExports.jsx(c.Trigger,{ref:N,className:n.cn("group/subtrigger flex justify-start items-center px-12 py-[8px] w-full font-normal text-gray-900 hover:bg-gray-200 hover:text-purple-800 focus-visible:outline-none focus-visible:bg-gray-200 focus-visible:text-purple-900 rounded",e),...l,children:i.jsxRuntimeExports.jsxs("span",{className:"flex w-full items-center justify-between",children:[i.jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-x-4",children:[a?i.jsxRuntimeExports.jsx("span",{className:"shrink-0",children:a}):null,i.jsxRuntimeExports.jsx("span",{className:"text-left",children:t})]}),o?i.jsxRuntimeExports.jsx(y.ChevronRight,{"aria-hidden":"true",className:"h-16 w-16 shrink-0 text-gray-600 transition-transform duration-200 group-data-[state=open]/subtrigger:rotate-90"}):null]})}));f.displayName="VerticalNavigationMenuSubTrigger";const v=s.forwardRef(({className:e,indentClassName:t="mx-24 px-8 py-4 border-l border-gray-900-8",children:a,...o},l)=>i.jsxRuntimeExports.jsx(c.Content,{ref:l,className:n.cn("overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e),...o,children:i.jsxRuntimeExports.jsx("div",{className:n.cn("",t),children:a})}));v.displayName="VerticalNavigationMenuSubContent";exports.VerticalNavigationMenu=p;exports.VerticalNavigationMenuHeading=V;exports.VerticalNavigationMenuItem=m;exports.VerticalNavigationMenuLink=g;exports.VerticalNavigationMenuList=x;exports.VerticalNavigationMenuSeparator=h;exports.VerticalNavigationMenuSub=d;exports.VerticalNavigationMenuSubContent=v;exports.VerticalNavigationMenuSubTrigger=f;
|
|
2
2
|
//# sourceMappingURL=index38.cjs.map
|
package/dist/index38.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index38.cjs","sources":["../
|
|
1
|
+
{"version":3,"file":"index38.cjs","sources":["../src/VerticalNavigationMenu/index.tsx"],"sourcesContent":["import * as CollapsiblePrimitive from '@radix-ui/react-collapsible'\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu'\nimport { ChevronRight } from 'lucide-react'\nimport * as React from 'react'\nimport { Separator } from '../Separator'\nimport { cn } from '../lib/utils'\n\nconst VerticalNavigationMenu = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>\n>((props, ref) => (\n <NavigationMenuPrimitive.Root ref={ref} orientation=\"vertical\" {...props} />\n))\nVerticalNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName\n\nconst VerticalNavigationMenuList = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn('group flex flex-col list-none pb-12 gap-4', className)}\n {...props}\n />\n))\nVerticalNavigationMenuList.displayName =\n NavigationMenuPrimitive.List.displayName\n\nfunction VerticalNavigationMenuHeading({\n className,\n ...props\n}: React.ComponentPropsWithoutRef<'div'>) {\n return (\n <div\n className={cn(\n 'flex items-start justify-start text-sm text-gray-600 mt-16 mb-2 px-12',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction VerticalNavigationMenuSeparator({\n ...props\n}: React.ComponentPropsWithoutRef<'div'>) {\n return <Separator {...props} />\n}\n\nconst VerticalNavigationMenuItem = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Item\n ref={ref}\n className={cn('w-full', className)}\n {...props}\n />\n))\nVerticalNavigationMenuItem.displayName =\n NavigationMenuPrimitive.Item.displayName\n\nconst VerticalNavigationMenuLink = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Link>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Link>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Link\n ref={ref}\n className={cn(\n 'flex justify-start px-12 py-[8px] w-full font-normal text-gray-900 hover:bg-gray-200 hover:text-purple-800 focus-visible:outline-none focus-visible:bg-gray-200 focus-visible:text-purple-900 data-[active]:bg-purple-900 hover:data-[active]:bg-purple-900 data-[active]:text-white rounded',\n className\n )}\n {...props}\n />\n))\nVerticalNavigationMenuLink.displayName =\n NavigationMenuPrimitive.Link.displayName\n\nconst VerticalNavigationMenuSub = React.forwardRef<\n React.ElementRef<typeof CollapsiblePrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CollapsiblePrimitive.Root\n ref={ref}\n className={cn('w-full', className)}\n {...props}\n />\n))\nVerticalNavigationMenuSub.displayName = 'VerticalNavigationMenuSub'\n\ntype SubTriggerProps = React.ComponentPropsWithoutRef<\n typeof CollapsiblePrimitive.Trigger\n> & {\n icon?: React.ReactNode\n chevron?: boolean\n}\n\nconst VerticalNavigationMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof CollapsiblePrimitive.Trigger>,\n SubTriggerProps\n>(({ className, children, icon, chevron = true, ...props }, ref) => (\n <CollapsiblePrimitive.Trigger\n ref={ref}\n className={cn(\n 'group/subtrigger flex justify-start items-center px-12 py-[8px] w-full font-normal text-gray-900 hover:bg-gray-200 hover:text-purple-800 focus-visible:outline-none focus-visible:bg-gray-200 focus-visible:text-purple-900 rounded',\n className\n )}\n {...props}\n >\n <span className=\"flex w-full items-center justify-between\">\n <span className=\"flex items-center gap-x-4\">\n {icon ? <span className=\"shrink-0\">{icon}</span> : null}\n <span className=\"text-left\">{children}</span>\n </span>\n\n {chevron ? (\n <ChevronRight\n aria-hidden=\"true\"\n className=\"h-16 w-16 shrink-0 text-gray-600 transition-transform duration-200 group-data-[state=open]/subtrigger:rotate-90\"\n />\n ) : null}\n </span>\n </CollapsiblePrimitive.Trigger>\n))\nVerticalNavigationMenuSubTrigger.displayName =\n 'VerticalNavigationMenuSubTrigger'\n\ntype SubContentProps = React.ComponentPropsWithoutRef<\n typeof CollapsiblePrimitive.Content\n> & {\n indentClassName?: string\n}\n\nconst VerticalNavigationMenuSubContent = React.forwardRef<\n React.ElementRef<typeof CollapsiblePrimitive.Content>,\n SubContentProps\n>(\n (\n {\n className,\n indentClassName = 'mx-24 px-8 py-4 border-l border-gray-900-8',\n children,\n ...props\n },\n ref\n ) => (\n <CollapsiblePrimitive.Content\n ref={ref}\n className={cn(\n 'overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down',\n className\n )}\n {...props}\n >\n <div className={cn('', indentClassName)}>{children}</div>\n </CollapsiblePrimitive.Content>\n )\n)\nVerticalNavigationMenuSubContent.displayName =\n 'VerticalNavigationMenuSubContent'\n\nexport {\n VerticalNavigationMenu,\n VerticalNavigationMenuHeading,\n VerticalNavigationMenuItem,\n VerticalNavigationMenuLink,\n VerticalNavigationMenuList,\n VerticalNavigationMenuSeparator,\n VerticalNavigationMenuSub,\n VerticalNavigationMenuSubTrigger,\n VerticalNavigationMenuSubContent\n}\n"],"names":["VerticalNavigationMenu","React","props","ref","jsx","NavigationMenuPrimitive","VerticalNavigationMenuList","className","cn","VerticalNavigationMenuHeading","VerticalNavigationMenuSeparator","Separator","VerticalNavigationMenuItem","VerticalNavigationMenuLink","VerticalNavigationMenuSub","CollapsiblePrimitive","VerticalNavigationMenuSubTrigger","children","icon","chevron","jsxs","ChevronRight","VerticalNavigationMenuSubContent","indentClassName"],"mappings":"klBAOMA,EAAyBC,EAAM,WAGnC,CAACC,EAAOC,IACRC,EAAAA,kBAAAA,IAACC,EAAwB,KAAxB,CAA6B,IAAAF,EAAU,YAAY,WAAY,GAAGD,CAAO,CAAA,CAC3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17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
1
|
+
import { j as t } from "./index40.js";
|
|
2
|
+
import * as u from "@radix-ui/react-collapsible";
|
|
3
|
+
import * as s from "@radix-ui/react-navigation-menu";
|
|
4
|
+
import { ChevronRight as m } from "lucide-react";
|
|
5
|
+
import * as o from "react";
|
|
6
|
+
import { Separator as p } from "./index26.js";
|
|
7
|
+
import { cn as r } from "./index41.js";
|
|
8
|
+
const f = o.forwardRef((e, a) => /* @__PURE__ */ t.jsx(s.Root, { ref: a, orientation: "vertical", ...e }));
|
|
9
|
+
f.displayName = s.Root.displayName;
|
|
10
|
+
const d = o.forwardRef(({ className: e, ...a }, i) => /* @__PURE__ */ t.jsx(
|
|
11
|
+
s.List,
|
|
12
|
+
{
|
|
13
|
+
ref: i,
|
|
14
|
+
className: r("group flex flex-col list-none pb-12 gap-4", e),
|
|
15
|
+
...a
|
|
16
|
+
}
|
|
17
|
+
));
|
|
18
|
+
d.displayName = s.List.displayName;
|
|
19
|
+
function M({
|
|
20
|
+
className: e,
|
|
21
|
+
...a
|
|
22
|
+
}) {
|
|
23
|
+
return /* @__PURE__ */ t.jsx(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: r(
|
|
27
|
+
"flex items-start justify-start text-sm text-gray-600 mt-16 mb-2 px-12",
|
|
28
|
+
e
|
|
29
|
+
),
|
|
30
|
+
...a
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
function R({
|
|
35
|
+
...e
|
|
36
|
+
}) {
|
|
37
|
+
return /* @__PURE__ */ t.jsx(p, { ...e });
|
|
38
|
+
}
|
|
39
|
+
const g = o.forwardRef(({ className: e, ...a }, i) => /* @__PURE__ */ t.jsx(
|
|
40
|
+
s.Item,
|
|
41
|
+
{
|
|
42
|
+
ref: i,
|
|
43
|
+
className: r("w-full", e),
|
|
44
|
+
...a
|
|
45
|
+
}
|
|
46
|
+
));
|
|
47
|
+
g.displayName = s.Item.displayName;
|
|
48
|
+
const x = o.forwardRef(({ className: e, ...a }, i) => /* @__PURE__ */ t.jsx(
|
|
49
|
+
s.Link,
|
|
50
|
+
{
|
|
51
|
+
ref: i,
|
|
52
|
+
className: r(
|
|
53
|
+
"flex justify-start px-12 py-[8px] w-full font-normal text-gray-900 hover:bg-gray-200 hover:text-purple-800 focus-visible:outline-none focus-visible:bg-gray-200 focus-visible:text-purple-900 data-[active]:bg-purple-900 hover:data-[active]:bg-purple-900 data-[active]:text-white rounded",
|
|
54
|
+
e
|
|
55
|
+
),
|
|
56
|
+
...a
|
|
57
|
+
}
|
|
58
|
+
));
|
|
59
|
+
x.displayName = s.Link.displayName;
|
|
60
|
+
const N = o.forwardRef(({ className: e, ...a }, i) => /* @__PURE__ */ t.jsx(
|
|
61
|
+
u.Root,
|
|
62
|
+
{
|
|
63
|
+
ref: i,
|
|
64
|
+
className: r("w-full", e),
|
|
65
|
+
...a
|
|
66
|
+
}
|
|
67
|
+
));
|
|
68
|
+
N.displayName = "VerticalNavigationMenuSub";
|
|
69
|
+
const v = o.forwardRef(({ className: e, children: a, icon: i, chevron: n = !0, ...l }, c) => /* @__PURE__ */ t.jsx(
|
|
70
|
+
u.Trigger,
|
|
71
|
+
{
|
|
72
|
+
ref: c,
|
|
73
|
+
className: r(
|
|
74
|
+
"group/subtrigger flex justify-start items-center px-12 py-[8px] w-full font-normal text-gray-900 hover:bg-gray-200 hover:text-purple-800 focus-visible:outline-none focus-visible:bg-gray-200 focus-visible:text-purple-900 rounded",
|
|
75
|
+
e
|
|
76
|
+
),
|
|
77
|
+
...l,
|
|
78
|
+
children: /* @__PURE__ */ t.jsxs("span", { className: "flex w-full items-center justify-between", children: [
|
|
79
|
+
/* @__PURE__ */ t.jsxs("span", { className: "flex items-center gap-x-4", children: [
|
|
80
|
+
i ? /* @__PURE__ */ t.jsx("span", { className: "shrink-0", children: i }) : null,
|
|
81
|
+
/* @__PURE__ */ t.jsx("span", { className: "text-left", children: a })
|
|
82
|
+
] }),
|
|
83
|
+
n ? /* @__PURE__ */ t.jsx(
|
|
84
|
+
m,
|
|
85
|
+
{
|
|
86
|
+
"aria-hidden": "true",
|
|
87
|
+
className: "h-16 w-16 shrink-0 text-gray-600 transition-transform duration-200 group-data-[state=open]/subtrigger:rotate-90"
|
|
88
|
+
}
|
|
89
|
+
) : null
|
|
90
|
+
] })
|
|
91
|
+
}
|
|
92
|
+
));
|
|
93
|
+
v.displayName = "VerticalNavigationMenuSubTrigger";
|
|
94
|
+
const y = o.forwardRef(
|
|
95
|
+
({
|
|
96
|
+
className: e,
|
|
97
|
+
indentClassName: a = "mx-24 px-8 py-4 border-l border-gray-900-8",
|
|
98
|
+
children: i,
|
|
99
|
+
...n
|
|
100
|
+
}, l) => /* @__PURE__ */ t.jsx(
|
|
101
|
+
u.Content,
|
|
102
|
+
{
|
|
103
|
+
ref: l,
|
|
104
|
+
className: r(
|
|
105
|
+
"overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
106
|
+
e
|
|
107
|
+
),
|
|
108
|
+
...n,
|
|
109
|
+
children: /* @__PURE__ */ t.jsx("div", { className: r("", a), children: i })
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
);
|
|
113
|
+
y.displayName = "VerticalNavigationMenuSubContent";
|
|
32
114
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
115
|
+
f as VerticalNavigationMenu,
|
|
116
|
+
M as VerticalNavigationMenuHeading,
|
|
117
|
+
g as VerticalNavigationMenuItem,
|
|
118
|
+
x as VerticalNavigationMenuLink,
|
|
119
|
+
d as VerticalNavigationMenuList,
|
|
120
|
+
R as VerticalNavigationMenuSeparator,
|
|
121
|
+
N as VerticalNavigationMenuSub,
|
|
122
|
+
y as VerticalNavigationMenuSubContent,
|
|
123
|
+
v as VerticalNavigationMenuSubTrigger
|
|
35
124
|
};
|
|
36
125
|
//# sourceMappingURL=index38.js.map
|
package/dist/index38.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index38.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index38.js","sources":["../src/VerticalNavigationMenu/index.tsx"],"sourcesContent":["import * as CollapsiblePrimitive from '@radix-ui/react-collapsible'\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu'\nimport { ChevronRight } from 'lucide-react'\nimport * as React from 'react'\nimport { Separator } from '../Separator'\nimport { cn } from '../lib/utils'\n\nconst VerticalNavigationMenu = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>\n>((props, ref) => (\n <NavigationMenuPrimitive.Root ref={ref} orientation=\"vertical\" {...props} />\n))\nVerticalNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName\n\nconst VerticalNavigationMenuList = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn('group flex flex-col list-none pb-12 gap-4', className)}\n {...props}\n />\n))\nVerticalNavigationMenuList.displayName =\n NavigationMenuPrimitive.List.displayName\n\nfunction VerticalNavigationMenuHeading({\n className,\n ...props\n}: React.ComponentPropsWithoutRef<'div'>) {\n return (\n <div\n className={cn(\n 'flex items-start justify-start text-sm text-gray-600 mt-16 mb-2 px-12',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction VerticalNavigationMenuSeparator({\n ...props\n}: React.ComponentPropsWithoutRef<'div'>) {\n return <Separator {...props} />\n}\n\nconst VerticalNavigationMenuItem = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Item\n ref={ref}\n className={cn('w-full', className)}\n {...props}\n />\n))\nVerticalNavigationMenuItem.displayName =\n NavigationMenuPrimitive.Item.displayName\n\nconst VerticalNavigationMenuLink = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Link>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Link>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Link\n ref={ref}\n className={cn(\n 'flex justify-start px-12 py-[8px] w-full font-normal text-gray-900 hover:bg-gray-200 hover:text-purple-800 focus-visible:outline-none focus-visible:bg-gray-200 focus-visible:text-purple-900 data-[active]:bg-purple-900 hover:data-[active]:bg-purple-900 data-[active]:text-white rounded',\n className\n )}\n {...props}\n />\n))\nVerticalNavigationMenuLink.displayName =\n NavigationMenuPrimitive.Link.displayName\n\nconst VerticalNavigationMenuSub = React.forwardRef<\n React.ElementRef<typeof CollapsiblePrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CollapsiblePrimitive.Root\n ref={ref}\n className={cn('w-full', className)}\n {...props}\n />\n))\nVerticalNavigationMenuSub.displayName = 'VerticalNavigationMenuSub'\n\ntype SubTriggerProps = React.ComponentPropsWithoutRef<\n typeof CollapsiblePrimitive.Trigger\n> & {\n icon?: React.ReactNode\n chevron?: boolean\n}\n\nconst VerticalNavigationMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof CollapsiblePrimitive.Trigger>,\n SubTriggerProps\n>(({ className, children, icon, chevron = true, ...props }, ref) => (\n <CollapsiblePrimitive.Trigger\n ref={ref}\n className={cn(\n 'group/subtrigger flex justify-start items-center px-12 py-[8px] w-full font-normal text-gray-900 hover:bg-gray-200 hover:text-purple-800 focus-visible:outline-none focus-visible:bg-gray-200 focus-visible:text-purple-900 rounded',\n className\n )}\n {...props}\n >\n <span className=\"flex w-full items-center justify-between\">\n <span className=\"flex items-center gap-x-4\">\n {icon ? <span className=\"shrink-0\">{icon}</span> : null}\n <span className=\"text-left\">{children}</span>\n </span>\n\n {chevron ? (\n <ChevronRight\n aria-hidden=\"true\"\n className=\"h-16 w-16 shrink-0 text-gray-600 transition-transform duration-200 group-data-[state=open]/subtrigger:rotate-90\"\n />\n ) : null}\n </span>\n </CollapsiblePrimitive.Trigger>\n))\nVerticalNavigationMenuSubTrigger.displayName =\n 'VerticalNavigationMenuSubTrigger'\n\ntype SubContentProps = React.ComponentPropsWithoutRef<\n typeof CollapsiblePrimitive.Content\n> & {\n indentClassName?: string\n}\n\nconst VerticalNavigationMenuSubContent = React.forwardRef<\n React.ElementRef<typeof CollapsiblePrimitive.Content>,\n SubContentProps\n>(\n (\n {\n className,\n indentClassName = 'mx-24 px-8 py-4 border-l border-gray-900-8',\n children,\n ...props\n },\n ref\n ) => (\n <CollapsiblePrimitive.Content\n ref={ref}\n className={cn(\n 'overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down',\n className\n )}\n {...props}\n >\n <div className={cn('', indentClassName)}>{children}</div>\n </CollapsiblePrimitive.Content>\n )\n)\nVerticalNavigationMenuSubContent.displayName =\n 'VerticalNavigationMenuSubContent'\n\nexport {\n VerticalNavigationMenu,\n VerticalNavigationMenuHeading,\n VerticalNavigationMenuItem,\n VerticalNavigationMenuLink,\n VerticalNavigationMenuList,\n VerticalNavigationMenuSeparator,\n VerticalNavigationMenuSub,\n VerticalNavigationMenuSubTrigger,\n VerticalNavigationMenuSubContent\n}\n"],"names":["VerticalNavigationMenu","React","props","ref","jsx","NavigationMenuPrimitive","VerticalNavigationMenuList","className","cn","VerticalNavigationMenuHeading","VerticalNavigationMenuSeparator","Separator","VerticalNavigationMenuItem","VerticalNavigationMenuLink","VerticalNavigationMenuSub","CollapsiblePrimitive","VerticalNavigationMenuSubTrigger","children","icon","chevron","jsxs","ChevronRight","VerticalNavigationMenuSubContent","indentClassName"],"mappings":";;;;;;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ClB,UAAAN;AAAA,IACA,GAAGf;AAAA,KAELC,MAEAC,gBAAAA,EAAA;AAAA,IAACW,EAAqB;AAAA,IAArB;AAAA,MACC,KAAAZ;AAAA,MACA,WAAWK;AAAA,QACT;AAAA,QACAD;AAAA,MACF;AAAA,MACC,GAAGL;AAAA,MAEJ,gCAAC,OAAI,EAAA,WAAWM,EAAG,IAAIe,CAAe,GAAI,UAAAN,GAAS;AAAA,IAAA;AAAA,EACrD;AAEJ;AACAK,EAAiC,cAC/B;"}
|
package/dist/index39.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("./index47.cjs"),w=require("./index48.cjs"),v=require("./index49.cjs"),f=w.colorStringExports,l=v.colorConvert,y=["keyword","gray","hex"],b={};for(const t of Object.keys(l))b[[...l[t].labels].sort().join("")]=t;const p={};function h(t,r){if(!(this instanceof h))return new h(t,r);if(r&&r in y&&(r=null),r&&!(r in l))throw new Error("Unknown model: "+r);let o,n;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof h)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){const e=f.get(t);if(e===null)throw new Error("Unable to parse color from string: "+t);this.model=e.model,n=l[this.model].channels,this.color=e.value.slice(0,n),this.valpha=typeof e.value[n]=="number"?e.value[n]:1}else if(t.length>0){this.model=r||"rgb",n=l[this.model].channels;const e=Array.prototype.slice.call(t,0,n);this.color=d(e,n),this.valpha=typeof t[n]=="number"?t[n]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;const e=Object.keys(t);"alpha"in t&&(e.splice(e.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);const a=e.sort().join("");if(!(a in b))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=b[a];const{labels:u}=l[this.model],c=[];for(o=0;o<u.length;o++)c.push(t[u[o]]);this.color=d(c)}if(p[this.model])for(n=l[this.model].channels,o=0;o<n;o++){const e=p[this.model][o];e&&(this.color[o]=e(this.color[o]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}h.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let r=this.model in f.to?this:this.rgb();r=r.round(typeof t=="number"?t:1);const o=r.valpha===1?r.color:[...r.color,this.valpha];return f.to[r.model](o)},percentString(t){const r=this.rgb().round(typeof t=="number"?t:1),o=r.valpha===1?r.color:[...r.color,this.valpha];return f.to.rgb.percent(o)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:r}=l[this.model],{labels:o}=l[this.model];for(let n=0;n<r;n++)t[o[n]]=this.color[n];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new h([...this.color.map(k(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new h([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:s("rgb",0,i(255)),green:s("rgb",1,i(255)),blue:s("rgb",2,i(255)),hue:s(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:s("hsl",1,i(100)),lightness:s("hsl",2,i(100)),saturationv:s("hsv",1,i(100)),value:s("hsv",2,i(100)),chroma:s("hcg",1,i(100)),gray:s("hcg",2,i(100)),white:s("hwb",1,i(100)),wblack:s("hwb",2,i(100)),cyan:s("cmyk",0,i(100)),magenta:s("cmyk",1,i(100)),yellow:s("cmyk",2,i(100)),black:s("cmyk",3,i(100)),x:s("xyz",0,i(95.047)),y:s("xyz",1,i(100)),z:s("xyz",2,i(108.833)),l:s("lab",0,i(100)),a:s("lab",1),b:s("lab",2),keyword(t){return t!==void 0?new h(t):l[this.model].keyword(this.color)},hex(t){return t!==void 0?new h(t):f.to.hex(this.rgb().round().color)},hexa(t){if(t!==void 0)return new h(t);const r=this.rgb().round().color;let o=Math.round(this.valpha*255).toString(16).toUpperCase();return o.length===1&&(o="0"+o),f.to.hex(r)+o},rgbNumber(){const t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){const t=this.rgb().color,r=[];for(const[o,n]of t.entries()){const e=n/255;r[o]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return .2126*r[0]+.7152*r[1]+.0722*r[2]},contrast(t){const r=this.luminosity(),o=t.luminosity();return r>o?(r+.05)/(o+.05):(o+.05)/(r+.05)},level(t){const r=this.contrast(t);return r>=7?"AAA":r>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let r=0;r<3;r++)t.color[r]=255-t.color[r];return t},lighten(t){const r=this.hsl();return r.color[2]+=r.color[2]*t,r},darken(t){const r=this.hsl();return r.color[2]-=r.color[2]*t,r},saturate(t){const r=this.hsl();return r.color[1]+=r.color[1]*t,r},desaturate(t){const r=this.hsl();return r.color[1]-=r.color[1]*t,r},whiten(t){const r=this.hwb();return r.color[1]+=r.color[1]*t,r},blacken(t){const r=this.hwb();return r.color[2]+=r.color[2]*t,r},grayscale(){const t=this.rgb().color,r=t[0]*.3+t[1]*.59+t[2]*.11;return h.rgb(r,r,r)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const r=this.hsl();let o=r.color[0];return o=(o+t)%360,o=o<0?360+o:o,r.color[0]=o,r},mix(t,r){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const o=t.rgb(),n=this.rgb(),e=r===void 0?.5:r,a=2*e-1,u=o.alpha()-n.alpha(),c=((a*u===-1?a:(a+u)/(1+a*u))+1)/2,g=1-c;return h.rgb(c*o.red()+g*n.red(),c*o.green()+g*n.green(),c*o.blue()+g*n.blue(),o.alpha()*e+n.alpha()*(1-e))}};for(const t of Object.keys(l)){if(y.includes(t))continue;const{channels:r}=l[t];h.prototype[t]=function(...o){return this.model===t?new h(this):o.length>0?new h(o,t):new h([...A(l[this.model][t].raw(this.color)),this.valpha],t)},h[t]=function(...o){let n=o[0];return typeof n=="number"&&(n=d(o,r)),new h(n,t)}}function x(t,r){return Number(t.toFixed(r))}function k(t){return function(r){return x(r,t)}}function s(t,r,o){t=Array.isArray(t)?t:[t];for(const n of t)(p[n]||(p[n]=[]))[r]=o;return t=t[0],function(n){let e;return n!==void 0?(o&&(n=o(n)),e=this[t](),e.color[r]=n,e):(e=this[t]().color[r],o&&(e=o(e)),e)}}function i(t){return function(r){return Math.max(0,Math.min(t,r))}}function A(t){return Array.isArray(t)?t:[t]}function d(t,r){for(let o=0;o<r;o++)typeof t[o]!="number"&&(t[o]=0);return t}var F=h;const M=m.getDefaultExportFromCjs(F);exports.default=M;
|
|
2
2
|
//# sourceMappingURL=index39.cjs.map
|
package/dist/index39.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index39.cjs","sources":["../src/lib/utils.ts"],"sourcesContent":["import { type ClassValue, clsx } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n\nexport function debounce<F extends (...args: Parameters<F>) => ReturnType<F>>(\n func: F,\n waitFor: number\n) {\n let timeout: ReturnType<typeof setTimeout>\n\n const debounced = (...args: Parameters<F>) => {\n clearTimeout(timeout)\n timeout = setTimeout(() => func(...args), waitFor)\n }\n\n return debounced\n}\n"],"names":["cn","inputs","twMerge","clsx","debounce","func","waitFor","timeout","args"],"mappings":"4IAGO,SAASA,KAAMC,EAAsB,CAC1C,OAAOC,EAAAA,QAAQC,OAAKF,CAAM,CAAC,CAC7B,CAEO,SAASG,EACdC,EACAC,EACA,CACA,IAAIC,EAOJ,MALkB,IAAIC,IAAwB,CAC5C,aAAaD,CAAO,EACpBA,EAAU,WAAW,IAAMF,EAAK,GAAGG,CAAI,EAAGF,CAAO,CACnD,CAGF"}
|
|
1
|
+
{"version":3,"file":"index39.cjs","sources":["../node_modules/.pnpm/color@4.2.3/node_modules/color/index.js"],"sourcesContent":["const colorString = require('color-string');\nconst convert = require('color-convert');\n\nconst skippedModels = [\n\t// To be honest, I don't really feel like keyword belongs in color convert, but eh.\n\t'keyword',\n\n\t// Gray conflicts with some method names, and has its own method defined.\n\t'gray',\n\n\t// Shouldn't really be in color-convert either...\n\t'hex',\n];\n\nconst hashedModelKeys = {};\nfor (const model of Object.keys(convert)) {\n\thashedModelKeys[[...convert[model].labels].sort().join('')] = model;\n}\n\nconst limiters = {};\n\nfunction Color(object, model) {\n\tif (!(this instanceof Color)) {\n\t\treturn new Color(object, model);\n\t}\n\n\tif (model && model in skippedModels) {\n\t\tmodel = null;\n\t}\n\n\tif (model && !(model in convert)) {\n\t\tthrow new Error('Unknown model: ' + model);\n\t}\n\n\tlet i;\n\tlet channels;\n\n\tif (object == null) { // eslint-disable-line no-eq-null,eqeqeq\n\t\tthis.model = 'rgb';\n\t\tthis.color = [0, 0, 0];\n\t\tthis.valpha = 1;\n\t} else if (object instanceof Color) {\n\t\tthis.model = object.model;\n\t\tthis.color = [...object.color];\n\t\tthis.valpha = object.valpha;\n\t} else if (typeof object === 'string') {\n\t\tconst result = colorString.get(object);\n\t\tif (result === null) {\n\t\t\tthrow new Error('Unable to parse color from string: ' + object);\n\t\t}\n\n\t\tthis.model = result.model;\n\t\tchannels = convert[this.model].channels;\n\t\tthis.color = result.value.slice(0, channels);\n\t\tthis.valpha = typeof result.value[channels] === 'number' ? result.value[channels] : 1;\n\t} else if (object.length > 0) {\n\t\tthis.model = model || 'rgb';\n\t\tchannels = convert[this.model].channels;\n\t\tconst newArray = Array.prototype.slice.call(object, 0, channels);\n\t\tthis.color = zeroArray(newArray, channels);\n\t\tthis.valpha = typeof object[channels] === 'number' ? object[channels] : 1;\n\t} else if (typeof object === 'number') {\n\t\t// This is always RGB - can be converted later on.\n\t\tthis.model = 'rgb';\n\t\tthis.color = [\n\t\t\t(object >> 16) & 0xFF,\n\t\t\t(object >> 8) & 0xFF,\n\t\t\tobject & 0xFF,\n\t\t];\n\t\tthis.valpha = 1;\n\t} else {\n\t\tthis.valpha = 1;\n\n\t\tconst keys = Object.keys(object);\n\t\tif ('alpha' in object) {\n\t\t\tkeys.splice(keys.indexOf('alpha'), 1);\n\t\t\tthis.valpha = typeof object.alpha === 'number' ? object.alpha : 0;\n\t\t}\n\n\t\tconst hashedKeys = keys.sort().join('');\n\t\tif (!(hashedKeys in hashedModelKeys)) {\n\t\t\tthrow new Error('Unable to parse color from object: ' + JSON.stringify(object));\n\t\t}\n\n\t\tthis.model = hashedModelKeys[hashedKeys];\n\n\t\tconst {labels} = convert[this.model];\n\t\tconst color = [];\n\t\tfor (i = 0; i < labels.length; i++) {\n\t\t\tcolor.push(object[labels[i]]);\n\t\t}\n\n\t\tthis.color = zeroArray(color);\n\t}\n\n\t// Perform limitations (clamping, etc.)\n\tif (limiters[this.model]) {\n\t\tchannels = convert[this.model].channels;\n\t\tfor (i = 0; i < channels; i++) {\n\t\t\tconst limit = limiters[this.model][i];\n\t\t\tif (limit) {\n\t\t\t\tthis.color[i] = limit(this.color[i]);\n\t\t\t}\n\t\t}\n\t}\n\n\tthis.valpha = Math.max(0, Math.min(1, this.valpha));\n\n\tif (Object.freeze) {\n\t\tObject.freeze(this);\n\t}\n}\n\nColor.prototype = {\n\ttoString() {\n\t\treturn this.string();\n\t},\n\n\ttoJSON() {\n\t\treturn this[this.model]();\n\t},\n\n\tstring(places) {\n\t\tlet self = this.model in colorString.to ? this : this.rgb();\n\t\tself = self.round(typeof places === 'number' ? places : 1);\n\t\tconst args = self.valpha === 1 ? self.color : [...self.color, this.valpha];\n\t\treturn colorString.to[self.model](args);\n\t},\n\n\tpercentString(places) {\n\t\tconst self = this.rgb().round(typeof places === 'number' ? places : 1);\n\t\tconst args = self.valpha === 1 ? self.color : [...self.color, this.valpha];\n\t\treturn colorString.to.rgb.percent(args);\n\t},\n\n\tarray() {\n\t\treturn this.valpha === 1 ? [...this.color] : [...this.color, this.valpha];\n\t},\n\n\tobject() {\n\t\tconst result = {};\n\t\tconst {channels} = convert[this.model];\n\t\tconst {labels} = convert[this.model];\n\n\t\tfor (let i = 0; i < channels; i++) {\n\t\t\tresult[labels[i]] = this.color[i];\n\t\t}\n\n\t\tif (this.valpha !== 1) {\n\t\t\tresult.alpha = this.valpha;\n\t\t}\n\n\t\treturn result;\n\t},\n\n\tunitArray() {\n\t\tconst rgb = this.rgb().color;\n\t\trgb[0] /= 255;\n\t\trgb[1] /= 255;\n\t\trgb[2] /= 255;\n\n\t\tif (this.valpha !== 1) {\n\t\t\trgb.push(this.valpha);\n\t\t}\n\n\t\treturn rgb;\n\t},\n\n\tunitObject() {\n\t\tconst rgb = this.rgb().object();\n\t\trgb.r /= 255;\n\t\trgb.g /= 255;\n\t\trgb.b /= 255;\n\n\t\tif (this.valpha !== 1) {\n\t\t\trgb.alpha = this.valpha;\n\t\t}\n\n\t\treturn rgb;\n\t},\n\n\tround(places) {\n\t\tplaces = Math.max(places || 0, 0);\n\t\treturn new Color([...this.color.map(roundToPlace(places)), this.valpha], this.model);\n\t},\n\n\talpha(value) {\n\t\tif (value !== undefined) {\n\t\t\treturn new Color([...this.color, Math.max(0, Math.min(1, value))], this.model);\n\t\t}\n\n\t\treturn this.valpha;\n\t},\n\n\t// Rgb\n\tred: getset('rgb', 0, maxfn(255)),\n\tgreen: getset('rgb', 1, maxfn(255)),\n\tblue: getset('rgb', 2, maxfn(255)),\n\n\thue: getset(['hsl', 'hsv', 'hsl', 'hwb', 'hcg'], 0, value => ((value % 360) + 360) % 360),\n\n\tsaturationl: getset('hsl', 1, maxfn(100)),\n\tlightness: getset('hsl', 2, maxfn(100)),\n\n\tsaturationv: getset('hsv', 1, maxfn(100)),\n\tvalue: getset('hsv', 2, maxfn(100)),\n\n\tchroma: getset('hcg', 1, maxfn(100)),\n\tgray: getset('hcg', 2, maxfn(100)),\n\n\twhite: getset('hwb', 1, maxfn(100)),\n\twblack: getset('hwb', 2, maxfn(100)),\n\n\tcyan: getset('cmyk', 0, maxfn(100)),\n\tmagenta: getset('cmyk', 1, maxfn(100)),\n\tyellow: getset('cmyk', 2, maxfn(100)),\n\tblack: getset('cmyk', 3, maxfn(100)),\n\n\tx: getset('xyz', 0, maxfn(95.047)),\n\ty: getset('xyz', 1, maxfn(100)),\n\tz: getset('xyz', 2, maxfn(108.833)),\n\n\tl: getset('lab', 0, maxfn(100)),\n\ta: getset('lab', 1),\n\tb: getset('lab', 2),\n\n\tkeyword(value) {\n\t\tif (value !== undefined) {\n\t\t\treturn new Color(value);\n\t\t}\n\n\t\treturn convert[this.model].keyword(this.color);\n\t},\n\n\thex(value) {\n\t\tif (value !== undefined) {\n\t\t\treturn new Color(value);\n\t\t}\n\n\t\treturn colorString.to.hex(this.rgb().round().color);\n\t},\n\n\thexa(value) {\n\t\tif (value !== undefined) {\n\t\t\treturn new Color(value);\n\t\t}\n\n\t\tconst rgbArray = this.rgb().round().color;\n\n\t\tlet alphaHex = Math.round(this.valpha * 255).toString(16).toUpperCase();\n\t\tif (alphaHex.length === 1) {\n\t\t\talphaHex = '0' + alphaHex;\n\t\t}\n\n\t\treturn colorString.to.hex(rgbArray) + alphaHex;\n\t},\n\n\trgbNumber() {\n\t\tconst rgb = this.rgb().color;\n\t\treturn ((rgb[0] & 0xFF) << 16) | ((rgb[1] & 0xFF) << 8) | (rgb[2] & 0xFF);\n\t},\n\n\tluminosity() {\n\t\t// http://www.w3.org/TR/WCAG20/#relativeluminancedef\n\t\tconst rgb = this.rgb().color;\n\n\t\tconst lum = [];\n\t\tfor (const [i, element] of rgb.entries()) {\n\t\t\tconst chan = element / 255;\n\t\t\tlum[i] = (chan <= 0.04045) ? chan / 12.92 : ((chan + 0.055) / 1.055) ** 2.4;\n\t\t}\n\n\t\treturn 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];\n\t},\n\n\tcontrast(color2) {\n\t\t// http://www.w3.org/TR/WCAG20/#contrast-ratiodef\n\t\tconst lum1 = this.luminosity();\n\t\tconst lum2 = color2.luminosity();\n\n\t\tif (lum1 > lum2) {\n\t\t\treturn (lum1 + 0.05) / (lum2 + 0.05);\n\t\t}\n\n\t\treturn (lum2 + 0.05) / (lum1 + 0.05);\n\t},\n\n\tlevel(color2) {\n\t\t// https://www.w3.org/TR/WCAG/#contrast-enhanced\n\t\tconst contrastRatio = this.contrast(color2);\n\t\tif (contrastRatio >= 7) {\n\t\t\treturn 'AAA';\n\t\t}\n\n\t\treturn (contrastRatio >= 4.5) ? 'AA' : '';\n\t},\n\n\tisDark() {\n\t\t// YIQ equation from http://24ways.org/2010/calculating-color-contrast\n\t\tconst rgb = this.rgb().color;\n\t\tconst yiq = (rgb[0] * 2126 + rgb[1] * 7152 + rgb[2] * 722) / 10000;\n\t\treturn yiq < 128;\n\t},\n\n\tisLight() {\n\t\treturn !this.isDark();\n\t},\n\n\tnegate() {\n\t\tconst rgb = this.rgb();\n\t\tfor (let i = 0; i < 3; i++) {\n\t\t\trgb.color[i] = 255 - rgb.color[i];\n\t\t}\n\n\t\treturn rgb;\n\t},\n\n\tlighten(ratio) {\n\t\tconst hsl = this.hsl();\n\t\thsl.color[2] += hsl.color[2] * ratio;\n\t\treturn hsl;\n\t},\n\n\tdarken(ratio) {\n\t\tconst hsl = this.hsl();\n\t\thsl.color[2] -= hsl.color[2] * ratio;\n\t\treturn hsl;\n\t},\n\n\tsaturate(ratio) {\n\t\tconst hsl = this.hsl();\n\t\thsl.color[1] += hsl.color[1] * ratio;\n\t\treturn hsl;\n\t},\n\n\tdesaturate(ratio) {\n\t\tconst hsl = this.hsl();\n\t\thsl.color[1] -= hsl.color[1] * ratio;\n\t\treturn hsl;\n\t},\n\n\twhiten(ratio) {\n\t\tconst hwb = this.hwb();\n\t\thwb.color[1] += hwb.color[1] * ratio;\n\t\treturn hwb;\n\t},\n\n\tblacken(ratio) {\n\t\tconst hwb = this.hwb();\n\t\thwb.color[2] += hwb.color[2] * ratio;\n\t\treturn hwb;\n\t},\n\n\tgrayscale() {\n\t\t// http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale\n\t\tconst rgb = this.rgb().color;\n\t\tconst value = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;\n\t\treturn Color.rgb(value, value, value);\n\t},\n\n\tfade(ratio) {\n\t\treturn this.alpha(this.valpha - (this.valpha * ratio));\n\t},\n\n\topaquer(ratio) {\n\t\treturn this.alpha(this.valpha + (this.valpha * ratio));\n\t},\n\n\trotate(degrees) {\n\t\tconst hsl = this.hsl();\n\t\tlet hue = hsl.color[0];\n\t\thue = (hue + degrees) % 360;\n\t\thue = hue < 0 ? 360 + hue : hue;\n\t\thsl.color[0] = hue;\n\t\treturn hsl;\n\t},\n\n\tmix(mixinColor, weight) {\n\t\t// Ported from sass implementation in C\n\t\t// https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209\n\t\tif (!mixinColor || !mixinColor.rgb) {\n\t\t\tthrow new Error('Argument to \"mix\" was not a Color instance, but rather an instance of ' + typeof mixinColor);\n\t\t}\n\n\t\tconst color1 = mixinColor.rgb();\n\t\tconst color2 = this.rgb();\n\t\tconst p = weight === undefined ? 0.5 : weight;\n\n\t\tconst w = 2 * p - 1;\n\t\tconst a = color1.alpha() - color2.alpha();\n\n\t\tconst w1 = (((w * a === -1) ? w : (w + a) / (1 + w * a)) + 1) / 2;\n\t\tconst w2 = 1 - w1;\n\n\t\treturn Color.rgb(\n\t\t\tw1 * color1.red() + w2 * color2.red(),\n\t\t\tw1 * color1.green() + w2 * color2.green(),\n\t\t\tw1 * color1.blue() + w2 * color2.blue(),\n\t\t\tcolor1.alpha() * p + color2.alpha() * (1 - p));\n\t},\n};\n\n// Model conversion methods and static constructors\nfor (const model of Object.keys(convert)) {\n\tif (skippedModels.includes(model)) {\n\t\tcontinue;\n\t}\n\n\tconst {channels} = convert[model];\n\n\t// Conversion methods\n\tColor.prototype[model] = function (...args) {\n\t\tif (this.model === model) {\n\t\t\treturn new Color(this);\n\t\t}\n\n\t\tif (args.length > 0) {\n\t\t\treturn new Color(args, model);\n\t\t}\n\n\t\treturn new Color([...assertArray(convert[this.model][model].raw(this.color)), this.valpha], model);\n\t};\n\n\t// 'static' construction methods\n\tColor[model] = function (...args) {\n\t\tlet color = args[0];\n\t\tif (typeof color === 'number') {\n\t\t\tcolor = zeroArray(args, channels);\n\t\t}\n\n\t\treturn new Color(color, model);\n\t};\n}\n\nfunction roundTo(number, places) {\n\treturn Number(number.toFixed(places));\n}\n\nfunction roundToPlace(places) {\n\treturn function (number) {\n\t\treturn roundTo(number, places);\n\t};\n}\n\nfunction getset(model, channel, modifier) {\n\tmodel = Array.isArray(model) ? model : [model];\n\n\tfor (const m of model) {\n\t\t(limiters[m] || (limiters[m] = []))[channel] = modifier;\n\t}\n\n\tmodel = model[0];\n\n\treturn function (value) {\n\t\tlet result;\n\n\t\tif (value !== undefined) {\n\t\t\tif (modifier) {\n\t\t\t\tvalue = modifier(value);\n\t\t\t}\n\n\t\t\tresult = this[model]();\n\t\t\tresult.color[channel] = value;\n\t\t\treturn result;\n\t\t}\n\n\t\tresult = this[model]().color[channel];\n\t\tif (modifier) {\n\t\t\tresult = modifier(result);\n\t\t}\n\n\t\treturn result;\n\t};\n}\n\nfunction maxfn(max) {\n\treturn function (v) {\n\t\treturn Math.max(0, Math.min(max, v));\n\t};\n}\n\nfunction assertArray(value) {\n\treturn Array.isArray(value) ? value : [value];\n}\n\nfunction zeroArray(array, length) {\n\tfor (let i = 0; i < length; i++) {\n\t\tif (typeof array[i] !== 'number') {\n\t\t\tarray[i] = 0;\n\t\t}\n\t}\n\n\treturn array;\n}\n\nmodule.exports = Color;\n"],"names":["colorString","require$$0","convert","require$$1","skippedModels","hashedModelKeys","model","limiters","Color","object","i","channels","result","newArray","zeroArray","keys","hashedKeys","labels","color","limit","places","self","args","rgb","roundToPlace","value","getset","maxfn","rgbArray","alphaHex","lum","element","chan","color2","lum1","lum2","contrastRatio","ratio","hsl","hwb","degrees","hue","mixinColor","weight","color1","p","w","a","w1","w2","assertArray","roundTo","number","channel","modifier","m","max","v","array","length"],"mappings":"mMAAMA,EAAcC,EAAAA,mBACdC,EAAUC,EAAAA,aAEVC,EAAgB,CAErB,UAGA,OAGA,KACD,EAEMC,EAAkB,CAAA,EACxB,UAAWC,KAAS,OAAO,KAAKJ,CAAO,EACtCG,EAAgB,CAAC,GAAGH,EAAQI,CAAK,EAAE,MAAM,EAAE,KAAI,EAAG,KAAK,EAAE,CAAC,EAAIA,EAG/D,MAAMC,EAAW,CAAA,EAEjB,SAASC,EAAMC,EAAQH,EAAO,CAC7B,GAAI,EAAE,gBAAgBE,GACrB,OAAO,IAAIA,EAAMC,EAAQH,CAAK,EAO/B,GAJIA,GAASA,KAASF,IACrBE,EAAQ,MAGLA,GAAS,EAAEA,KAASJ,GACvB,MAAM,IAAI,MAAM,kBAAoBI,CAAK,EAG1C,IAAII,EACAC,EAEJ,GAAIF,GAAU,KACb,KAAK,MAAQ,MACb,KAAK,MAAQ,CAAC,EAAG,EAAG,CAAC,EACrB,KAAK,OAAS,UACJA,aAAkBD,EAC5B,KAAK,MAAQC,EAAO,MACpB,KAAK,MAAQ,CAAC,GAAGA,EAAO,KAAK,EAC7B,KAAK,OAASA,EAAO,eACX,OAAOA,GAAW,SAAU,CACtC,MAAMG,EAASZ,EAAY,IAAIS,CAAM,EACrC,GAAIG,IAAW,KACd,MAAM,IAAI,MAAM,sCAAwCH,CAAM,EAG/D,KAAK,MAAQG,EAAO,MACpBD,EAAWT,EAAQ,KAAK,KAAK,EAAE,SAC/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