@incognia/cosmik 0.42.0-beta.0 → 0.42.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index2.cjs");const x=require("./index3.cjs"),q=require("./index4.cjs"),D=require("./index5.cjs"),r=require("./index6.cjs"),C=require("./index7.cjs"),S=require("./index8.cjs"),w=require("./index9.cjs"),u=require("./index10.cjs"),P=require("./index11.cjs"),n=require("./index12.cjs"),i=require("./index13.cjs"),e=require("./index14.cjs"),h=require("./index15.cjs"),T=require("./index16.cjs"),$=require("./index17.cjs"),v=require("./index18.cjs"),d=require("./index19.cjs"),A=require("./index20.cjs"),l=require("./index21.cjs"),p=require("./index22.cjs"),L=require("./index23.cjs"),m=require("./index24.cjs"),o=require("./index25.cjs"),I=require("./index26.cjs"),t=require("./index27.cjs"),y=require("./index28.cjs"),V=require("sonner"),B=require("./index29.cjs"),F=require("./index30.cjs"),a=require("./index31.cjs"),s=require("./index32.cjs"),G=require("./index33.cjs"),H=require("./index34.cjs"),b=require("./index35.cjs"),M=require("./index36.cjs"),c=require("./index37.cjs"),g=require("./index38.cjs");exports.Colors=x.default;exports.tailwindTheme=q.default;exports.Alert=D.Alert;exports.AlertDescription=D.AlertDescription;exports.AlertTitle=D.AlertTitle;exports.AlertDialog=r.AlertDialog;exports.AlertDialogAction=r.AlertDialogAction;exports.AlertDialogCancel=r.AlertDialogCancel;exports.AlertDialogContent=r.AlertDialogContent;exports.AlertDialogDescription=r.AlertDialogDescription;exports.AlertDialogFooter=r.AlertDialogFooter;exports.AlertDialogHeader=r.AlertDialogHeader;exports.AlertDialogTitle=r.AlertDialogTitle;exports.AlertDialogTrigger=r.AlertDialogTrigger;exports.Badge=C.Badge;exports.badgeVariants=C.badgeVariants;exports.Button=S.Button;exports.buttonVariants=S.buttonVariants;exports.Calendar=w.Calendar;exports.Card=u.Card;exports.CardContent=u.CardContent;exports.CardDescription=u.CardDescription;exports.CardFooter=u.CardFooter;exports.CardHeader=u.CardHeader;exports.CardTitle=u.CardTitle;exports.Checkbox=P.Checkbox;exports.Command=n.Command;exports.CommandDialog=n.CommandDialog;exports.CommandEmpty=n.CommandEmpty;exports.CommandGroup=n.CommandGroup;exports.CommandInput=n.CommandInput;exports.CommandItem=n.CommandItem;exports.CommandList=n.CommandList;exports.CommandSeparator=n.CommandSeparator;exports.CommandShortcut=n.CommandShortcut;exports.Dialog=i.Dialog;exports.DialogContent=i.DialogContent;exports.DialogDescription=i.DialogDescription;exports.DialogFooter=i.DialogFooter;exports.DialogHeader=i.DialogHeader;exports.DialogOverlay=i.DialogOverlay;exports.DialogPortal=i.DialogPortal;exports.DialogTitle=i.DialogTitle;exports.DialogTrigger=i.DialogTrigger;exports.DropdownMenu=e.DropdownMenu;exports.DropdownMenuCheckboxItem=e.DropdownMenuCheckboxItem;exports.DropdownMenuContent=e.DropdownMenuContent;exports.DropdownMenuGroup=e.DropdownMenuGroup;exports.DropdownMenuItem=e.DropdownMenuItem;exports.DropdownMenuLabel=e.DropdownMenuLabel;exports.DropdownMenuPortal=e.DropdownMenuPortal;exports.DropdownMenuRadioGroup=e.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=e.DropdownMenuRadioItem;exports.DropdownMenuSeparator=e.DropdownMenuSeparator;exports.DropdownMenuShortcut=e.DropdownMenuShortcut;exports.DropdownMenuSub=e.DropdownMenuSub;exports.DropdownMenuSubContent=e.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=e.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=e.DropdownMenuTrigger;exports.Filter=h.Filter;exports.FilterBar=T.FilterBar;exports.FilterBarContent=T.FilterBarContent;exports.FilterBarScrollableContent=T.FilterBarScrollableContent;exports.Input=$.Input;exports.Label=v.Label;exports.Layout=d.Layout;exports.LayoutContent=d.LayoutContent;exports.LayoutMain=d.LayoutMain;exports.LayoutScrollableContent=d.LayoutScrollableContent;exports.LayoutSidebar=d.LayoutSidebar;exports.LayoutTopbar=d.LayoutTopbar;exports.Loading=A.Loading;exports.Pagination=l.Pagination;exports.PaginationButton=l.PaginationButton;exports.PaginationContent=l.PaginationContent;exports.PaginationEllipsis=l.PaginationEllipsis;exports.PaginationItem=l.PaginationItem;exports.PaginationNext=l.PaginationNext;exports.PaginationPrevious=l.PaginationPrevious;exports.Popover=p.Popover;exports.PopoverAnchor=p.PopoverAnchor;exports.PopoverContent=p.PopoverContent;exports.PopoverTrigger=p.PopoverTrigger;exports.Progress=L.Progress;exports.RadioGroup=m.RadioGroup;exports.RadioGroupItem=m.RadioGroupItem;exports.Select=o.Select;exports.SelectContent=o.SelectContent;exports.SelectGroup=o.SelectGroup;exports.SelectItem=o.SelectItem;exports.SelectLabel=o.SelectLabel;exports.SelectScrollDownButton=o.SelectScrollDownButton;exports.SelectScrollUpButton=o.SelectScrollUpButton;exports.SelectSeparator=o.SelectSeparator;exports.SelectTrigger=o.SelectTrigger;exports.SelectValue=o.SelectValue;exports.Separator=I.Separator;exports.Sheet=t.Sheet;exports.SheetClose=t.SheetClose;exports.SheetContent=t.SheetContent;exports.SheetDescription=t.SheetDescription;exports.SheetFooter=t.SheetFooter;exports.SheetHeader=t.SheetHeader;exports.SheetOverlay=t.SheetOverlay;exports.SheetPortal=t.SheetPortal;exports.SheetTitle=t.SheetTitle;exports.SheetTrigger=t.SheetTrigger;exports.Skeleton=y.Skeleton;Object.defineProperty(exports,"sonnerToast",{enumerable:!0,get:()=>V.toast});exports.Sonner=B.Toaster;exports.Switch=F.Switch;exports.Table=a.Table;exports.TableBody=a.TableBody;exports.TableCaption=a.TableCaption;exports.TableCell=a.TableCell;exports.TableFooter=a.TableFooter;exports.TableHead=a.TableHead;exports.TableHeader=a.TableHeader;exports.TableRow=a.TableRow;exports.Tabs=s.Tabs;exports.TabsContent=s.TabsContent;exports.TabsList=s.TabsList;exports.TabsTrigger=s.TabsTrigger;exports.TagInput=G.TagInput;exports.Textarea=H.Textarea;exports.Toggle=b.Toggle;exports.toggleVariants=b.toggleVariants;exports.ToggleGroup=M.ToggleGroup;exports.ToggleGroupItem=M.ToggleGroupItem;exports.Tooltip=c.Tooltip;exports.TooltipContent=c.TooltipContent;exports.TooltipPortal=c.TooltipPortal;exports.TooltipProvider=c.TooltipProvider;exports.TooltipTrigger=c.TooltipTrigger;exports.VerticalNavigationMenu=g.VerticalNavigationMenu;exports.VerticalNavigationMenuHeading=g.VerticalNavigationMenuHeading;exports.VerticalNavigationMenuItem=g.VerticalNavigationMenuItem;exports.VerticalNavigationMenuLink=g.VerticalNavigationMenuLink;exports.VerticalNavigationMenuList=g.VerticalNavigationMenuList;exports.VerticalNavigationMenuSeparator=g.VerticalNavigationMenuSeparator;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index2.cjs");const x=require("./index3.cjs"),q=require("./index4.cjs"),S=require("./index5.cjs"),r=require("./index6.cjs"),D=require("./index7.cjs"),C=require("./index8.cjs"),w=require("./index9.cjs"),g=require("./index10.cjs"),P=require("./index11.cjs"),n=require("./index12.cjs"),i=require("./index13.cjs"),e=require("./index14.cjs"),v=require("./index15.cjs"),T=require("./index16.cjs"),h=require("./index17.cjs"),$=require("./index18.cjs"),d=require("./index19.cjs"),A=require("./index20.cjs"),u=require("./index21.cjs"),p=require("./index22.cjs"),L=require("./index23.cjs"),b=require("./index24.cjs"),o=require("./index25.cjs"),V=require("./index26.cjs"),t=require("./index27.cjs"),I=require("./index28.cjs"),y=require("sonner"),N=require("./index29.cjs"),B=require("./index30.cjs"),l=require("./index31.cjs"),s=require("./index32.cjs"),F=require("./index33.cjs"),G=require("./index34.cjs"),m=require("./index35.cjs"),M=require("./index36.cjs"),c=require("./index37.cjs"),a=require("./index38.cjs");exports.Colors=x.default;exports.tailwindTheme=q.default;exports.Alert=S.Alert;exports.AlertDescription=S.AlertDescription;exports.AlertTitle=S.AlertTitle;exports.AlertDialog=r.AlertDialog;exports.AlertDialogAction=r.AlertDialogAction;exports.AlertDialogCancel=r.AlertDialogCancel;exports.AlertDialogContent=r.AlertDialogContent;exports.AlertDialogDescription=r.AlertDialogDescription;exports.AlertDialogFooter=r.AlertDialogFooter;exports.AlertDialogHeader=r.AlertDialogHeader;exports.AlertDialogTitle=r.AlertDialogTitle;exports.AlertDialogTrigger=r.AlertDialogTrigger;exports.Badge=D.Badge;exports.badgeVariants=D.badgeVariants;exports.Button=C.Button;exports.buttonVariants=C.buttonVariants;exports.Calendar=w.Calendar;exports.Card=g.Card;exports.CardContent=g.CardContent;exports.CardDescription=g.CardDescription;exports.CardFooter=g.CardFooter;exports.CardHeader=g.CardHeader;exports.CardTitle=g.CardTitle;exports.Checkbox=P.Checkbox;exports.Command=n.Command;exports.CommandDialog=n.CommandDialog;exports.CommandEmpty=n.CommandEmpty;exports.CommandGroup=n.CommandGroup;exports.CommandInput=n.CommandInput;exports.CommandItem=n.CommandItem;exports.CommandList=n.CommandList;exports.CommandSeparator=n.CommandSeparator;exports.CommandShortcut=n.CommandShortcut;exports.Dialog=i.Dialog;exports.DialogContent=i.DialogContent;exports.DialogDescription=i.DialogDescription;exports.DialogFooter=i.DialogFooter;exports.DialogHeader=i.DialogHeader;exports.DialogOverlay=i.DialogOverlay;exports.DialogPortal=i.DialogPortal;exports.DialogTitle=i.DialogTitle;exports.DialogTrigger=i.DialogTrigger;exports.DropdownMenu=e.DropdownMenu;exports.DropdownMenuCheckboxItem=e.DropdownMenuCheckboxItem;exports.DropdownMenuContent=e.DropdownMenuContent;exports.DropdownMenuGroup=e.DropdownMenuGroup;exports.DropdownMenuItem=e.DropdownMenuItem;exports.DropdownMenuLabel=e.DropdownMenuLabel;exports.DropdownMenuPortal=e.DropdownMenuPortal;exports.DropdownMenuRadioGroup=e.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=e.DropdownMenuRadioItem;exports.DropdownMenuSeparator=e.DropdownMenuSeparator;exports.DropdownMenuShortcut=e.DropdownMenuShortcut;exports.DropdownMenuSub=e.DropdownMenuSub;exports.DropdownMenuSubContent=e.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=e.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=e.DropdownMenuTrigger;exports.Filter=v.Filter;exports.FilterBar=T.FilterBar;exports.FilterBarContent=T.FilterBarContent;exports.FilterBarScrollableContent=T.FilterBarScrollableContent;exports.Input=h.Input;exports.Label=$.Label;exports.Layout=d.Layout;exports.LayoutContent=d.LayoutContent;exports.LayoutMain=d.LayoutMain;exports.LayoutScrollableContent=d.LayoutScrollableContent;exports.LayoutSidebar=d.LayoutSidebar;exports.LayoutTopbar=d.LayoutTopbar;exports.Loading=A.Loading;exports.Pagination=u.Pagination;exports.PaginationButton=u.PaginationButton;exports.PaginationContent=u.PaginationContent;exports.PaginationEllipsis=u.PaginationEllipsis;exports.PaginationItem=u.PaginationItem;exports.PaginationNext=u.PaginationNext;exports.PaginationPrevious=u.PaginationPrevious;exports.Popover=p.Popover;exports.PopoverAnchor=p.PopoverAnchor;exports.PopoverContent=p.PopoverContent;exports.PopoverTrigger=p.PopoverTrigger;exports.Progress=L.Progress;exports.RadioGroup=b.RadioGroup;exports.RadioGroupItem=b.RadioGroupItem;exports.Select=o.Select;exports.SelectContent=o.SelectContent;exports.SelectGroup=o.SelectGroup;exports.SelectItem=o.SelectItem;exports.SelectLabel=o.SelectLabel;exports.SelectScrollDownButton=o.SelectScrollDownButton;exports.SelectScrollUpButton=o.SelectScrollUpButton;exports.SelectSeparator=o.SelectSeparator;exports.SelectTrigger=o.SelectTrigger;exports.SelectValue=o.SelectValue;exports.Separator=V.Separator;exports.Sheet=t.Sheet;exports.SheetClose=t.SheetClose;exports.SheetContent=t.SheetContent;exports.SheetDescription=t.SheetDescription;exports.SheetFooter=t.SheetFooter;exports.SheetHeader=t.SheetHeader;exports.SheetOverlay=t.SheetOverlay;exports.SheetPortal=t.SheetPortal;exports.SheetTitle=t.SheetTitle;exports.SheetTrigger=t.SheetTrigger;exports.Skeleton=I.Skeleton;Object.defineProperty(exports,"sonnerToast",{enumerable:!0,get:()=>y.toast});exports.Sonner=N.Toaster;exports.Switch=B.Switch;exports.Table=l.Table;exports.TableBody=l.TableBody;exports.TableCaption=l.TableCaption;exports.TableCell=l.TableCell;exports.TableFooter=l.TableFooter;exports.TableHead=l.TableHead;exports.TableHeader=l.TableHeader;exports.TableRow=l.TableRow;exports.Tabs=s.Tabs;exports.TabsContent=s.TabsContent;exports.TabsList=s.TabsList;exports.TabsTrigger=s.TabsTrigger;exports.TagInput=F.TagInput;exports.Textarea=G.Textarea;exports.Toggle=m.Toggle;exports.toggleVariants=m.toggleVariants;exports.ToggleGroup=M.ToggleGroup;exports.ToggleGroupItem=M.ToggleGroupItem;exports.Tooltip=c.Tooltip;exports.TooltipContent=c.TooltipContent;exports.TooltipPortal=c.TooltipPortal;exports.TooltipProvider=c.TooltipProvider;exports.TooltipTrigger=c.TooltipTrigger;exports.VerticalNavigationMenu=a.VerticalNavigationMenu;exports.VerticalNavigationMenuHeading=a.VerticalNavigationMenuHeading;exports.VerticalNavigationMenuItem=a.VerticalNavigationMenuItem;exports.VerticalNavigationMenuLink=a.VerticalNavigationMenuLink;exports.VerticalNavigationMenuList=a.VerticalNavigationMenuList;exports.VerticalNavigationMenuSeparator=a.VerticalNavigationMenuSeparator;exports.VerticalNavigationMenuSub=a.VerticalNavigationMenuSub;exports.VerticalNavigationMenuSubContent=a.VerticalNavigationMenuSubContent;exports.VerticalNavigationMenuSubTrigger=a.VerticalNavigationMenuSubTrigger;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.ts CHANGED
@@ -44,5 +44,5 @@ export { Textarea } from './Textarea';
44
44
  export { Toggle, toggleVariants } from './Toggle';
45
45
  export { ToggleGroup, ToggleGroupItem } from './ToggleGroup';
46
46
  export { Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger } from './Tooltip';
47
- export { VerticalNavigationMenu, VerticalNavigationMenuHeading, VerticalNavigationMenuItem, VerticalNavigationMenuLink, VerticalNavigationMenuList, VerticalNavigationMenuSeparator } from './VerticalNavigationMenu';
47
+ export { VerticalNavigationMenu, VerticalNavigationMenuHeading, VerticalNavigationMenuItem, VerticalNavigationMenuLink, VerticalNavigationMenuList, VerticalNavigationMenuSub, VerticalNavigationMenuSubContent, VerticalNavigationMenuSubTrigger, VerticalNavigationMenuSeparator } from './VerticalNavigationMenu';
48
48
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,aAAa,CAAA;AAEpB;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAElE;;GAEG;AACH,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAE7D,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EACL,IAAI,EACJ,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,EACV,MAAM,QAAQ,CAAA;AAEf,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,gB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E,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAE5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EACL,KAAK,EACL,SAAS,EACT,YAAY,EACZ,SAAS,EACT,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAQ,EACT,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEjE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEjD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE5D,OAAO,EACL,OAAO,EACP,cAAc,EACd,aAAa,EACb,eAAe,EACf,cAAc,EACf,MAAM,WAAW,CAAA;AAElB,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,gCAAgC,EAChC,gCAAgC,EAChC,+BAA+B,EAChC,MAAM,0BAA0B,CAAA"}
package/dist/index.js CHANGED
@@ -1,65 +1,65 @@
1
1
  import "./index2.js";
2
- import { default as t } from "./index3.js";
2
+ import { default as r } from "./index3.js";
3
3
  import { default as n } from "./index4.js";
4
- import { Alert as l, AlertDescription as p, AlertTitle as m } from "./index5.js";
5
- import { AlertDialog as u, AlertDialogAction as d, AlertDialogCancel as x, AlertDialogContent as D, AlertDialogDescription as T, AlertDialogFooter as f, AlertDialogHeader as C, AlertDialogTitle as S, AlertDialogTrigger as c } from "./index6.js";
4
+ import { Alert as l, AlertDescription as p, AlertTitle as g } from "./index5.js";
5
+ import { AlertDialog as u, AlertDialogAction as d, AlertDialogCancel as x, AlertDialogContent as S, AlertDialogDescription as T, AlertDialogFooter as D, AlertDialogHeader as f, AlertDialogTitle as C, AlertDialogTrigger as c } from "./index6.js";
6
6
  import { Badge as b, badgeVariants as M } from "./index7.js";
7
7
  import { Button as P, buttonVariants as h } from "./index8.js";
8
8
  import { Calendar as A } from "./index9.js";
9
- import { Card as I, CardContent as y, CardDescription as V, CardFooter as B, CardHeader as F, CardTitle as G } from "./index10.js";
10
- import { Checkbox as N } from "./index11.js";
9
+ import { Card as V, CardContent as I, CardDescription as y, CardFooter as N, CardHeader as B, CardTitle as F } from "./index10.js";
10
+ import { Checkbox as H } from "./index11.js";
11
11
  import { Command as k, CommandDialog as E, CommandEmpty as O, CommandGroup as U, CommandInput as j, CommandItem as q, CommandList as z, CommandSeparator as J, CommandShortcut as K } from "./index12.js";
12
- import { Dialog as W, DialogContent as X, DialogDescription as Y, DialogFooter as Z, DialogHeader as _, DialogOverlay as $, DialogPortal as oo, DialogTitle as eo, DialogTrigger as ro } from "./index13.js";
13
- import { DropdownMenu as ao, DropdownMenuCheckboxItem as no, DropdownMenuContent as io, DropdownMenuGroup as lo, DropdownMenuItem as po, DropdownMenuLabel as mo, DropdownMenuPortal as go, DropdownMenuRadioGroup as uo, DropdownMenuRadioItem as xo, DropdownMenuSeparator as Do, DropdownMenuShortcut as To, DropdownMenuSub as fo, DropdownMenuSubContent as Co, DropdownMenuSubTrigger as So, DropdownMenuTrigger as co } from "./index14.js";
12
+ import { Dialog as W, DialogContent as X, DialogDescription as Y, DialogFooter as Z, DialogHeader as _, DialogOverlay as $, DialogPortal as oo, DialogTitle as eo, DialogTrigger as to } from "./index13.js";
13
+ import { DropdownMenu as ao, DropdownMenuCheckboxItem as no, DropdownMenuContent as io, DropdownMenuGroup as lo, DropdownMenuItem as po, DropdownMenuLabel as go, DropdownMenuPortal as mo, DropdownMenuRadioGroup as uo, DropdownMenuRadioItem as xo, DropdownMenuSeparator as So, DropdownMenuShortcut as To, DropdownMenuSub as Do, DropdownMenuSubContent as fo, DropdownMenuSubTrigger as Co, DropdownMenuTrigger as co } from "./index14.js";
14
14
  import { Filter as bo } from "./index15.js";
15
15
  import { FilterBar as wo, FilterBarContent as Po, FilterBarScrollableContent as ho } from "./index16.js";
16
16
  import { Input as Ao } from "./index17.js";
17
- import { Label as Io } from "./index18.js";
18
- import { Layout as Vo, LayoutContent as Bo, LayoutMain as Fo, LayoutScrollableContent as Go, LayoutSidebar as Ho, LayoutTopbar as No } from "./index19.js";
17
+ import { Label as Vo } from "./index18.js";
18
+ import { Layout as yo, LayoutContent as No, LayoutMain as Bo, LayoutScrollableContent as Fo, LayoutSidebar as Go, LayoutTopbar as Ho } from "./index19.js";
19
19
  import { Loading as ko } from "./index20.js";
20
20
  import { Pagination as Oo, PaginationButton as Uo, PaginationContent as jo, PaginationEllipsis as qo, PaginationItem as zo, PaginationNext as Jo, PaginationPrevious as Ko } from "./index21.js";
21
21
  import { Popover as Wo, PopoverAnchor as Xo, PopoverContent as Yo, PopoverTrigger as Zo } from "./index22.js";
22
22
  import { Progress as $o } from "./index23.js";
23
- import { RadioGroup as ee, RadioGroupItem as re } from "./index24.js";
24
- import { Select as ae, SelectContent as ne, SelectGroup as ie, SelectItem as le, SelectLabel as pe, SelectScrollDownButton as me, SelectScrollUpButton as ge, SelectSeparator as ue, SelectTrigger as de, SelectValue as xe } from "./index25.js";
23
+ import { RadioGroup as ee, RadioGroupItem as te } from "./index24.js";
24
+ import { Select as ae, SelectContent as ne, SelectGroup as ie, SelectItem as le, SelectLabel as pe, SelectScrollDownButton as ge, SelectScrollUpButton as me, SelectSeparator as ue, SelectTrigger as de, SelectValue as xe } from "./index25.js";
25
25
  import { Separator as Te } from "./index26.js";
26
- import { Sheet as Ce, SheetClose as Se, SheetContent as ce, SheetDescription as se, SheetFooter as be, SheetHeader as Me, SheetOverlay as we, SheetPortal as Pe, SheetTitle as he, SheetTrigger as ve } from "./index27.js";
26
+ import { Sheet as fe, SheetClose as Ce, SheetContent as ce, SheetDescription as se, SheetFooter as be, SheetHeader as Me, SheetOverlay as we, SheetPortal as Pe, SheetTitle as he, SheetTrigger as ve } from "./index27.js";
27
27
  import { Skeleton as Le } from "./index28.js";
28
- import { toast as ye } from "sonner";
29
- import { Toaster as Be } from "./index29.js";
30
- import { Switch as Ge } from "./index30.js";
31
- import { Table as Ne, TableBody as Re, TableCaption as ke, TableCell as Ee, TableFooter as Oe, TableHead as Ue, TableHeader as je, TableRow as qe } from "./index31.js";
28
+ import { toast as Ie } from "sonner";
29
+ import { Toaster as Ne } from "./index29.js";
30
+ import { Switch as Fe } from "./index30.js";
31
+ import { Table as He, TableBody as Re, TableCaption as ke, TableCell as Ee, TableFooter as Oe, TableHead as Ue, TableHeader as je, TableRow as qe } from "./index31.js";
32
32
  import { Tabs as Je, TabsContent as Ke, TabsList as Qe, TabsTrigger as We } from "./index32.js";
33
33
  import { TagInput as Ye } from "./index33.js";
34
34
  import { Textarea as _e } from "./index34.js";
35
- import { Toggle as or, toggleVariants as er } from "./index35.js";
36
- import { ToggleGroup as tr, ToggleGroupItem as ar } from "./index36.js";
37
- import { Tooltip as ir, TooltipContent as lr, TooltipPortal as pr, TooltipProvider as mr, TooltipTrigger as gr } from "./index37.js";
38
- import { VerticalNavigationMenu as dr, VerticalNavigationMenuHeading as xr, VerticalNavigationMenuItem as Dr, VerticalNavigationMenuLink as Tr, VerticalNavigationMenuList as fr, VerticalNavigationMenuSeparator as Cr } from "./index38.js";
35
+ import { Toggle as ot, toggleVariants as et } from "./index35.js";
36
+ import { ToggleGroup as rt, ToggleGroupItem as at } from "./index36.js";
37
+ import { Tooltip as it, TooltipContent as lt, TooltipPortal as pt, TooltipProvider as gt, TooltipTrigger as mt } from "./index37.js";
38
+ import { VerticalNavigationMenu as dt, VerticalNavigationMenuHeading as xt, VerticalNavigationMenuItem as St, VerticalNavigationMenuLink as Tt, VerticalNavigationMenuList as Dt, VerticalNavigationMenuSeparator as ft, VerticalNavigationMenuSub as Ct, VerticalNavigationMenuSubContent as ct, VerticalNavigationMenuSubTrigger as st } from "./index38.js";
39
39
  export {
40
40
  l as Alert,
41
41
  p as AlertDescription,
42
42
  u as AlertDialog,
43
43
  d as AlertDialogAction,
44
44
  x as AlertDialogCancel,
45
- D as AlertDialogContent,
45
+ S as AlertDialogContent,
46
46
  T as AlertDialogDescription,
47
- f as AlertDialogFooter,
48
- C as AlertDialogHeader,
49
- S as AlertDialogTitle,
47
+ D as AlertDialogFooter,
48
+ f as AlertDialogHeader,
49
+ C as AlertDialogTitle,
50
50
  c as AlertDialogTrigger,
51
- m as AlertTitle,
51
+ g as AlertTitle,
52
52
  b as Badge,
53
53
  P as Button,
54
54
  A as Calendar,
55
- I as Card,
56
- y as CardContent,
57
- V as CardDescription,
58
- B as CardFooter,
59
- F as CardHeader,
60
- G as CardTitle,
61
- N as Checkbox,
62
- t as Colors,
55
+ V as Card,
56
+ I as CardContent,
57
+ y as CardDescription,
58
+ N as CardFooter,
59
+ B as CardHeader,
60
+ F as CardTitle,
61
+ H as Checkbox,
62
+ r as Colors,
63
63
  k as Command,
64
64
  E as CommandDialog,
65
65
  O as CommandEmpty,
@@ -77,34 +77,34 @@ export {
77
77
  $ as DialogOverlay,
78
78
  oo as DialogPortal,
79
79
  eo as DialogTitle,
80
- ro as DialogTrigger,
80
+ to as DialogTrigger,
81
81
  ao as DropdownMenu,
82
82
  no as DropdownMenuCheckboxItem,
83
83
  io as DropdownMenuContent,
84
84
  lo as DropdownMenuGroup,
85
85
  po as DropdownMenuItem,
86
- mo as DropdownMenuLabel,
87
- go as DropdownMenuPortal,
86
+ go as DropdownMenuLabel,
87
+ mo as DropdownMenuPortal,
88
88
  uo as DropdownMenuRadioGroup,
89
89
  xo as DropdownMenuRadioItem,
90
- Do as DropdownMenuSeparator,
90
+ So as DropdownMenuSeparator,
91
91
  To as DropdownMenuShortcut,
92
- fo as DropdownMenuSub,
93
- Co as DropdownMenuSubContent,
94
- So as DropdownMenuSubTrigger,
92
+ Do as DropdownMenuSub,
93
+ fo as DropdownMenuSubContent,
94
+ Co as DropdownMenuSubTrigger,
95
95
  co as DropdownMenuTrigger,
96
96
  bo as Filter,
97
97
  wo as FilterBar,
98
98
  Po as FilterBarContent,
99
99
  ho as FilterBarScrollableContent,
100
100
  Ao as Input,
101
- Io as Label,
102
- Vo as Layout,
103
- Bo as LayoutContent,
104
- Fo as LayoutMain,
105
- Go as LayoutScrollableContent,
106
- Ho as LayoutSidebar,
107
- No as LayoutTopbar,
101
+ Vo as Label,
102
+ yo as Layout,
103
+ No as LayoutContent,
104
+ Bo as LayoutMain,
105
+ Fo as LayoutScrollableContent,
106
+ Go as LayoutSidebar,
107
+ Ho as LayoutTopbar,
108
108
  ko as Loading,
109
109
  Oo as Pagination,
110
110
  Uo as PaginationButton,
@@ -119,20 +119,20 @@ export {
119
119
  Zo as PopoverTrigger,
120
120
  $o as Progress,
121
121
  ee as RadioGroup,
122
- re as RadioGroupItem,
122
+ te as RadioGroupItem,
123
123
  ae as Select,
124
124
  ne as SelectContent,
125
125
  ie as SelectGroup,
126
126
  le as SelectItem,
127
127
  pe as SelectLabel,
128
- me as SelectScrollDownButton,
129
- ge as SelectScrollUpButton,
128
+ ge as SelectScrollDownButton,
129
+ me as SelectScrollUpButton,
130
130
  ue as SelectSeparator,
131
131
  de as SelectTrigger,
132
132
  xe as SelectValue,
133
133
  Te as Separator,
134
- Ce as Sheet,
135
- Se as SheetClose,
134
+ fe as Sheet,
135
+ Ce as SheetClose,
136
136
  ce as SheetContent,
137
137
  se as SheetDescription,
138
138
  be as SheetFooter,
@@ -142,9 +142,9 @@ export {
142
142
  he as SheetTitle,
143
143
  ve as SheetTrigger,
144
144
  Le as Skeleton,
145
- Be as Sonner,
146
- Ge as Switch,
147
- Ne as Table,
145
+ Ne as Sonner,
146
+ Fe as Switch,
147
+ He as Table,
148
148
  Re as TableBody,
149
149
  ke as TableCaption,
150
150
  Ee as TableCell,
@@ -158,24 +158,27 @@ export {
158
158
  We as TabsTrigger,
159
159
  Ye as TagInput,
160
160
  _e as Textarea,
161
- or as Toggle,
162
- tr as ToggleGroup,
163
- ar as ToggleGroupItem,
164
- ir as Tooltip,
165
- lr as TooltipContent,
166
- pr as TooltipPortal,
167
- mr as TooltipProvider,
168
- gr as TooltipTrigger,
169
- dr as VerticalNavigationMenu,
170
- xr as VerticalNavigationMenuHeading,
171
- Dr as VerticalNavigationMenuItem,
172
- Tr as VerticalNavigationMenuLink,
173
- fr as VerticalNavigationMenuList,
174
- Cr as VerticalNavigationMenuSeparator,
161
+ ot as Toggle,
162
+ rt as ToggleGroup,
163
+ at as ToggleGroupItem,
164
+ it as Tooltip,
165
+ lt as TooltipContent,
166
+ pt as TooltipPortal,
167
+ gt as TooltipProvider,
168
+ mt as TooltipTrigger,
169
+ dt as VerticalNavigationMenu,
170
+ xt as VerticalNavigationMenuHeading,
171
+ St as VerticalNavigationMenuItem,
172
+ Tt as VerticalNavigationMenuLink,
173
+ Dt as VerticalNavigationMenuList,
174
+ ft as VerticalNavigationMenuSeparator,
175
+ Ct as VerticalNavigationMenuSub,
176
+ ct as VerticalNavigationMenuSubContent,
177
+ st as VerticalNavigationMenuSubTrigger,
175
178
  M as badgeVariants,
176
179
  h as buttonVariants,
177
- ye as sonnerToast,
180
+ Ie as sonnerToast,
178
181
  n as tailwindTheme,
179
- er as toggleVariants
182
+ et as toggleVariants
180
183
  };
181
184
  //# sourceMappingURL=index.js.map
package/dist/index39.cjs CHANGED
@@ -1,2 +1,2 @@
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;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("./index49.cjs"),w=require("./index50.cjs"),v=require("./index51.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.js CHANGED
@@ -1,6 +1,6 @@
1
- import { getDefaultExportFromCjs as d } from "./index47.js";
2
- import { c as w } from "./index48.js";
3
- import { c as v } from "./index49.js";
1
+ import { getDefaultExportFromCjs as d } from "./index49.js";
2
+ import { c as w } from "./index50.js";
3
+ import { c as v } from "./index51.js";
4
4
  const f = w, l = v, y = [
5
5
  // To be honest, I don't really feel like keyword belongs in color convert, but eh.
6
6
  "keyword",
package/dist/index45.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index50.cjs"),R=require("react");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index47.cjs"),R=require("react");/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
package/dist/index45.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as t } from "./index50.js";
1
+ import { __exports as t } from "./index47.js";
2
2
  import R from "react";
3
3
  /**
4
4
  * @license React
package/dist/index46.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("./index51.cjs"),tr=require("react");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("./index48.cjs"),tr=require("react");/**
2
2
  * @license React
3
3
  * react-jsx-runtime.development.js
4
4
  *
package/dist/index46.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as R } from "./index51.js";
1
+ import { __exports as R } from "./index48.js";
2
2
  import tr from "react";
3
3
  /**
4
4
  * @license React
package/dist/index47.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}exports.getDefaultExportFromCjs=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
2
2
  //# sourceMappingURL=index47.cjs.map
package/dist/index47.js CHANGED
@@ -1,7 +1,5 @@
1
- function e(t) {
2
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3
- }
1
+ var r = {};
4
2
  export {
5
- e as getDefaultExportFromCjs
3
+ r as __exports
6
4
  };
7
5
  //# sourceMappingURL=index47.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index47.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
1
+ {"version":3,"file":"index47.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index48.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index52.cjs"),M=require("./index53.cjs"),x=require("./index54.cjs");var v=M.colorName,f=x.simpleSwizzleExports,m=Object.hasOwnProperty,w=Object.create(null);for(var b in v)m.call(v,b)&&(w[v[b]]=b);var l=p.__module.exports={to:{},get:{}};l.get=function(r){var n=r.substring(0,3).toLowerCase(),t,o;switch(n){case"hsl":t=l.get.hsl(r),o="hsl";break;case"hwb":t=l.get.hwb(r),o="hwb";break;default:t=l.get.rgb(r),o="rgb";break}return t?{model:o,value:t}:null};l.get.rgb=function(r){if(!r)return null;var n=/^#([a-f0-9]{3,4})$/i,t=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,o=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,d=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^(\w+)$/,s=[0,0,0,1],a,e,h;if(a=r.match(t)){for(h=a[2],a=a[1],e=0;e<3;e++){var g=e*2;s[e]=parseInt(a.slice(g,g+2),16)}h&&(s[3]=parseInt(h,16)/255)}else if(a=r.match(n)){for(a=a[1],h=a[3],e=0;e<3;e++)s[e]=parseInt(a[e]+a[e],16);h&&(s[3]=parseInt(h+h,16)/255)}else if(a=r.match(o)){for(e=0;e<3;e++)s[e]=parseInt(a[e+1],0);a[4]&&(a[5]?s[3]=parseFloat(a[4])*.01:s[3]=parseFloat(a[4]))}else if(a=r.match(d)){for(e=0;e<3;e++)s[e]=Math.round(parseFloat(a[e+1])*2.55);a[4]&&(a[5]?s[3]=parseFloat(a[4])*.01:s[3]=parseFloat(a[4]))}else return(a=r.match(i))?a[1]==="transparent"?[0,0,0,0]:m.call(v,a[1])?(s=v[a[1]],s[3]=1,s):null:null;for(e=0;e<3;e++)s[e]=u(s[e],0,255);return s[3]=u(s[3],0,1),s};l.get.hsl=function(r){if(!r)return null;var n=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,t=r.match(n);if(t){var o=parseFloat(t[4]),d=(parseFloat(t[1])%360+360)%360,i=u(parseFloat(t[2]),0,100),s=u(parseFloat(t[3]),0,100),a=u(isNaN(o)?1:o,0,1);return[d,i,s,a]}return null};l.get.hwb=function(r){if(!r)return null;var n=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,t=r.match(n);if(t){var o=parseFloat(t[4]),d=(parseFloat(t[1])%360+360)%360,i=u(parseFloat(t[2]),0,100),s=u(parseFloat(t[3]),0,100),a=u(isNaN(o)?1:o,0,1);return[d,i,s,a]}return null};l.to.hex=function(){var r=f(arguments);return"#"+c(r[0])+c(r[1])+c(r[2])+(r[3]<1?c(Math.round(r[3]*255)):"")};l.to.rgb=function(){var r=f(arguments);return r.length<4||r[3]===1?"rgb("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+")":"rgba("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+", "+r[3]+")"};l.to.rgb.percent=function(){var r=f(arguments),n=Math.round(r[0]/255*100),t=Math.round(r[1]/255*100),o=Math.round(r[2]/255*100);return r.length<4||r[3]===1?"rgb("+n+"%, "+t+"%, "+o+"%)":"rgba("+n+"%, "+t+"%, "+o+"%, "+r[3]+")"};l.to.hsl=function(){var r=f(arguments);return r.length<4||r[3]===1?"hsl("+r[0]+", "+r[1]+"%, "+r[2]+"%)":"hsla("+r[0]+", "+r[1]+"%, "+r[2]+"%, "+r[3]+")"};l.to.hwb=function(){var r=f(arguments),n="";return r.length>=4&&r[3]!==1&&(n=", "+r[3]),"hwb("+r[0]+", "+r[1]+"%, "+r[2]+"%"+n+")"};l.to.keyword=function(r){return w[r.slice(0,3)]};function u(r,n,t){return Math.min(Math.max(n,r),t)}function c(r){var n=Math.round(r).toString(16).toUpperCase();return n.length<2?"0"+n:n}var F=p.__module.exports;exports.colorStringExports=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
2
2
  //# sourceMappingURL=index48.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index48.cjs","sources":["../node_modules/.pnpm/color-string@1.9.1/node_modules/color-string/index.js"],"sourcesContent":["/* MIT license */\nvar colorNames = require('color-name');\nvar swizzle = require('simple-swizzle');\nvar hasOwnProperty = Object.hasOwnProperty;\n\nvar reverseNames = Object.create(null);\n\n// create a list of reverse color names\nfor (var name in colorNames) {\n\tif (hasOwnProperty.call(colorNames, name)) {\n\t\treverseNames[colorNames[name]] = name;\n\t}\n}\n\nvar cs = module.exports = {\n\tto: {},\n\tget: {}\n};\n\ncs.get = function (string) {\n\tvar prefix = string.substring(0, 3).toLowerCase();\n\tvar val;\n\tvar model;\n\tswitch (prefix) {\n\t\tcase 'hsl':\n\t\t\tval = cs.get.hsl(string);\n\t\t\tmodel = 'hsl';\n\t\t\tbreak;\n\t\tcase 'hwb':\n\t\t\tval = cs.get.hwb(string);\n\t\t\tmodel = 'hwb';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tval = cs.get.rgb(string);\n\t\t\tmodel = 'rgb';\n\t\t\tbreak;\n\t}\n\n\tif (!val) {\n\t\treturn null;\n\t}\n\n\treturn {model: model, value: val};\n};\n\ncs.get.rgb = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar abbr = /^#([a-f0-9]{3,4})$/i;\n\tvar hex = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;\n\tvar rgba = /^rgba?\\(\\s*([+-]?\\d+)(?=[\\s,])\\s*(?:,\\s*)?([+-]?\\d+)(?=[\\s,])\\s*(?:,\\s*)?([+-]?\\d+)\\s*(?:[,|\\/]\\s*([+-]?[\\d\\.]+)(%?)\\s*)?\\)$/;\n\tvar per = /^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,?\\s*([+-]?[\\d\\.]+)\\%\\s*,?\\s*([+-]?[\\d\\.]+)\\%\\s*(?:[,|\\/]\\s*([+-]?[\\d\\.]+)(%?)\\s*)?\\)$/;\n\tvar keyword = /^(\\w+)$/;\n\n\tvar rgb = [0, 0, 0, 1];\n\tvar match;\n\tvar i;\n\tvar hexAlpha;\n\n\tif (match = string.match(hex)) {\n\t\thexAlpha = match[2];\n\t\tmatch = match[1];\n\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\t// https://jsperf.com/slice-vs-substr-vs-substring-methods-long-string/19\n\t\t\tvar i2 = i * 2;\n\t\t\trgb[i] = parseInt(match.slice(i2, i2 + 2), 16);\n\t\t}\n\n\t\tif (hexAlpha) {\n\t\t\trgb[3] = parseInt(hexAlpha, 16) / 255;\n\t\t}\n\t} else if (match = string.match(abbr)) {\n\t\tmatch = match[1];\n\t\thexAlpha = match[3];\n\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = parseInt(match[i] + match[i], 16);\n\t\t}\n\n\t\tif (hexAlpha) {\n\t\t\trgb[3] = parseInt(hexAlpha + hexAlpha, 16) / 255;\n\t\t}\n\t} else if (match = string.match(rgba)) {\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = parseInt(match[i + 1], 0);\n\t\t}\n\n\t\tif (match[4]) {\n\t\t\tif (match[5]) {\n\t\t\t\trgb[3] = parseFloat(match[4]) * 0.01;\n\t\t\t} else {\n\t\t\t\trgb[3] = parseFloat(match[4]);\n\t\t\t}\n\t\t}\n\t} else if (match = string.match(per)) {\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);\n\t\t}\n\n\t\tif (match[4]) {\n\t\t\tif (match[5]) {\n\t\t\t\trgb[3] = parseFloat(match[4]) * 0.01;\n\t\t\t} else {\n\t\t\t\trgb[3] = parseFloat(match[4]);\n\t\t\t}\n\t\t}\n\t} else if (match = string.match(keyword)) {\n\t\tif (match[1] === 'transparent') {\n\t\t\treturn [0, 0, 0, 0];\n\t\t}\n\n\t\tif (!hasOwnProperty.call(colorNames, match[1])) {\n\t\t\treturn null;\n\t\t}\n\n\t\trgb = colorNames[match[1]];\n\t\trgb[3] = 1;\n\n\t\treturn rgb;\n\t} else {\n\t\treturn null;\n\t}\n\n\tfor (i = 0; i < 3; i++) {\n\t\trgb[i] = clamp(rgb[i], 0, 255);\n\t}\n\trgb[3] = clamp(rgb[3], 0, 1);\n\n\treturn rgb;\n};\n\ncs.get.hsl = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar hsl = /^hsla?\\(\\s*([+-]?(?:\\d{0,3}\\.)?\\d+)(?:deg)?\\s*,?\\s*([+-]?[\\d\\.]+)%\\s*,?\\s*([+-]?[\\d\\.]+)%\\s*(?:[,|\\/]\\s*([+-]?(?=\\.\\d|\\d)(?:0|[1-9]\\d*)?(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)\\s*)?\\)$/;\n\tvar match = string.match(hsl);\n\n\tif (match) {\n\t\tvar alpha = parseFloat(match[4]);\n\t\tvar h = ((parseFloat(match[1]) % 360) + 360) % 360;\n\t\tvar s = clamp(parseFloat(match[2]), 0, 100);\n\t\tvar l = clamp(parseFloat(match[3]), 0, 100);\n\t\tvar a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);\n\n\t\treturn [h, s, l, a];\n\t}\n\n\treturn null;\n};\n\ncs.get.hwb = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar hwb = /^hwb\\(\\s*([+-]?\\d{0,3}(?:\\.\\d+)?)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?(?=\\.\\d|\\d)(?:0|[1-9]\\d*)?(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)\\s*)?\\)$/;\n\tvar match = string.match(hwb);\n\n\tif (match) {\n\t\tvar alpha = parseFloat(match[4]);\n\t\tvar h = ((parseFloat(match[1]) % 360) + 360) % 360;\n\t\tvar w = clamp(parseFloat(match[2]), 0, 100);\n\t\tvar b = clamp(parseFloat(match[3]), 0, 100);\n\t\tvar a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);\n\t\treturn [h, w, b, a];\n\t}\n\n\treturn null;\n};\n\ncs.to.hex = function () {\n\tvar rgba = swizzle(arguments);\n\n\treturn (\n\t\t'#' +\n\t\thexDouble(rgba[0]) +\n\t\thexDouble(rgba[1]) +\n\t\thexDouble(rgba[2]) +\n\t\t(rgba[3] < 1\n\t\t\t? (hexDouble(Math.round(rgba[3] * 255)))\n\t\t\t: '')\n\t);\n};\n\ncs.to.rgb = function () {\n\tvar rgba = swizzle(arguments);\n\n\treturn rgba.length < 4 || rgba[3] === 1\n\t\t? 'rgb(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ')'\n\t\t: 'rgba(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ', ' + rgba[3] + ')';\n};\n\ncs.to.rgb.percent = function () {\n\tvar rgba = swizzle(arguments);\n\n\tvar r = Math.round(rgba[0] / 255 * 100);\n\tvar g = Math.round(rgba[1] / 255 * 100);\n\tvar b = Math.round(rgba[2] / 255 * 100);\n\n\treturn rgba.length < 4 || rgba[3] === 1\n\t\t? 'rgb(' + r + '%, ' + g + '%, ' + b + '%)'\n\t\t: 'rgba(' + r + '%, ' + g + '%, ' + b + '%, ' + rgba[3] + ')';\n};\n\ncs.to.hsl = function () {\n\tvar hsla = swizzle(arguments);\n\treturn hsla.length < 4 || hsla[3] === 1\n\t\t? 'hsl(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%)'\n\t\t: 'hsla(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%, ' + hsla[3] + ')';\n};\n\n// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax\n// (hwb have alpha optional & 1 is default value)\ncs.to.hwb = function () {\n\tvar hwba = swizzle(arguments);\n\n\tvar a = '';\n\tif (hwba.length >= 4 && hwba[3] !== 1) {\n\t\ta = ', ' + hwba[3];\n\t}\n\n\treturn 'hwb(' + hwba[0] + ', ' + hwba[1] + '%, ' + hwba[2] + '%' + a + ')';\n};\n\ncs.to.keyword = function (rgb) {\n\treturn reverseNames[rgb.slice(0, 3)];\n};\n\n// helpers\nfunction clamp(num, min, max) {\n\treturn Math.min(Math.max(min, num), max);\n}\n\nfunction hexDouble(num) {\n\tvar str = Math.round(num).toString(16).toUpperCase();\n\treturn (str.length < 2) ? '0' + str : str;\n}\n"],"names":["colorNames","require$$0","swizzle","require$$1","hasOwnProperty","reverseNames","name","cs","colorStringModule","string","prefix","val","model","abbr","hex","rgba","per","keyword","rgb","match","i","hexAlpha","i2","clamp","hsl","alpha","h","s","l","hwb","w","b","hexDouble","r","g","hsla","hwba","a","num","min","max","str"],"mappings":"uKACA,IAAIA,EAAaC,EAAAA,UACbC,EAAUC,EAAAA,qBACVC,EAAiB,OAAO,eAExBC,EAAe,OAAO,OAAO,IAAI,EAGrC,QAASC,KAAQN,EACZI,EAAe,KAAKJ,EAAYM,CAAI,IACvCD,EAAaL,EAAWM,CAAI,CAAC,EAAIA,GAInC,IAAIC,EAAKC,EAAA,SAAA,QAAiB,CACzB,GAAI,CAAE,EACN,IAAK,CAAE,CACR,EAEAD,EAAG,IAAM,SAAUE,EAAQ,CAC1B,IAAIC,EAASD,EAAO,UAAU,EAAG,CAAC,EAAE,cAChCE,EACAC,EACJ,OAAQF,EAAM,CACb,IAAK,MACJC,EAAMJ,EAAG,IAAI,IAAIE,CAAM,EACvBG,EAAQ,MACR,MACD,IAAK,MACJD,EAAMJ,EAAG,IAAI,IAAIE,CAAM,EACvBG,EAAQ,MACR,MACD,QACCD,EAAMJ,EAAG,IAAI,IAAIE,CAAM,EACvBG,EAAQ,MACR,KACD,CAED,OAAKD,EAIE,CAAC,MAAOC,EAAO,MAAOD,CAAG,EAHxB,IAIT,EAEAJ,EAAG,IAAI,IAAM,SAAUE,EAAQ,CAC9B,GAAI,CAACA,EACJ,OAAO,KAGR,IAAII,EAAO,sBACPC,EAAM,kCACNC,EAAO,+HACP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AOA,EAAK,OAAS,GAAKA,EAAK,CAAC,IAAM,EACnC,OAASkB,EAAI,MAAQC,EAAI,MAAQH,EAAI,KACrC,QAAUE,EAAI,MAAQC,EAAI,MAAQH,EAAI,MAAQhB,EAAK,CAAC,EAAI,GAC5D,EAEAR,EAAG,GAAG,IAAM,UAAY,CACvB,IAAI4B,EAAOjC,EAAQ,SAAS,EAC5B,OAAOiC,EAAK,OAAS,GAAKA,EAAK,CAAC,IAAM,EACnC,OAASA,EAAK,CAAC,EAAI,KAAOA,EAAK,CAAC,EAAI,MAAQA,EAAK,CAAC,EAAI,KACtD,QAAUA,EAAK,CAAC,EAAI,KAAOA,EAAK,CAAC,EAAI,MAAQA,EAAK,CAAC,EAAI,MAAQA,EAAK,CAAC,EAAI,GAC7E,EAIA5B,EAAG,GAAG,IAAM,UAAY,CACvB,IAAI6B,EAAOlC,EAAQ,SAAS,EAExBmC,EAAI,GACR,OAAID,EAAK,QAAU,GAAKA,EAAK,CAAC,IAAM,IACnCC,EAAI,KAAOD,EAAK,CAAC,GAGX,OAASA,EAAK,CAAC,EAAI,KAAOA,EAAK,CAAC,EAAI,MAAQA,EAAK,CAAC,EAAI,IAAMC,EAAI,GACxE,EAEA9B,EAAG,GAAG,QAAU,SAAUW,EAAK,CAC9B,OAAOb,EAAaa,EAAI,MAAM,EAAG,CAAC,CAAC,CACpC,EAGA,SAASK,EAAMe,EAAKC,EAAKC,EAAK,CAC7B,OAAO,KAAK,IAAI,KAAK,IAAID,EAAKD,CAAG,EAAGE,CAAG,CACxC,CAEA,SAASR,EAAUM,EAAK,CACvB,IAAIG,EAAM,KAAK,MAAMH,CAAG,EAAE,SAAS,EAAE,EAAE,cACvC,OAAQG,EAAI,OAAS,EAAK,IAAMA,EAAMA,CACvC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index48.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index48.js CHANGED
@@ -1,108 +1,5 @@
1
- import { __module as g } from "./index52.js";
2
- import { c as M } from "./index53.js";
3
- import { s as F } from "./index54.js";
4
- var d = M, i = F, m = Object.hasOwnProperty, w = /* @__PURE__ */ Object.create(null);
5
- for (var b in d)
6
- m.call(d, b) && (w[d[b]] = b);
7
- var l = g.exports = {
8
- to: {},
9
- get: {}
10
- };
11
- l.get = function(r) {
12
- var n = r.substring(0, 3).toLowerCase(), t, o;
13
- switch (n) {
14
- case "hsl":
15
- t = l.get.hsl(r), o = "hsl";
16
- break;
17
- case "hwb":
18
- t = l.get.hwb(r), o = "hwb";
19
- break;
20
- default:
21
- t = l.get.rgb(r), o = "rgb";
22
- break;
23
- }
24
- return t ? { model: o, value: t } : null;
25
- };
26
- l.get.rgb = function(r) {
27
- if (!r)
28
- return null;
29
- var n = /^#([a-f0-9]{3,4})$/i, t = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i, o = /^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, f = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, v = /^(\w+)$/, s = [0, 0, 0, 1], a, e, h;
30
- if (a = r.match(t)) {
31
- for (h = a[2], a = a[1], e = 0; e < 3; e++) {
32
- var p = e * 2;
33
- s[e] = parseInt(a.slice(p, p + 2), 16);
34
- }
35
- h && (s[3] = parseInt(h, 16) / 255);
36
- } else if (a = r.match(n)) {
37
- for (a = a[1], h = a[3], e = 0; e < 3; e++)
38
- s[e] = parseInt(a[e] + a[e], 16);
39
- h && (s[3] = parseInt(h + h, 16) / 255);
40
- } else if (a = r.match(o)) {
41
- for (e = 0; e < 3; e++)
42
- s[e] = parseInt(a[e + 1], 0);
43
- a[4] && (a[5] ? s[3] = parseFloat(a[4]) * 0.01 : s[3] = parseFloat(a[4]));
44
- } else if (a = r.match(f)) {
45
- for (e = 0; e < 3; e++)
46
- s[e] = Math.round(parseFloat(a[e + 1]) * 2.55);
47
- a[4] && (a[5] ? s[3] = parseFloat(a[4]) * 0.01 : s[3] = parseFloat(a[4]));
48
- } else
49
- return (a = r.match(v)) ? a[1] === "transparent" ? [0, 0, 0, 0] : m.call(d, a[1]) ? (s = d[a[1]], s[3] = 1, s) : null : null;
50
- for (e = 0; e < 3; e++)
51
- s[e] = u(s[e], 0, 255);
52
- return s[3] = u(s[3], 0, 1), s;
53
- };
54
- l.get.hsl = function(r) {
55
- if (!r)
56
- return null;
57
- var n = /^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/, t = r.match(n);
58
- if (t) {
59
- var o = parseFloat(t[4]), f = (parseFloat(t[1]) % 360 + 360) % 360, v = u(parseFloat(t[2]), 0, 100), s = u(parseFloat(t[3]), 0, 100), a = u(isNaN(o) ? 1 : o, 0, 1);
60
- return [f, v, s, a];
61
- }
62
- return null;
63
- };
64
- l.get.hwb = function(r) {
65
- if (!r)
66
- return null;
67
- var n = /^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/, t = r.match(n);
68
- if (t) {
69
- var o = parseFloat(t[4]), f = (parseFloat(t[1]) % 360 + 360) % 360, v = u(parseFloat(t[2]), 0, 100), s = u(parseFloat(t[3]), 0, 100), a = u(isNaN(o) ? 1 : o, 0, 1);
70
- return [f, v, s, a];
71
- }
72
- return null;
73
- };
74
- l.to.hex = function() {
75
- var r = i(arguments);
76
- return "#" + c(r[0]) + c(r[1]) + c(r[2]) + (r[3] < 1 ? c(Math.round(r[3] * 255)) : "");
77
- };
78
- l.to.rgb = function() {
79
- var r = i(arguments);
80
- return r.length < 4 || r[3] === 1 ? "rgb(" + Math.round(r[0]) + ", " + Math.round(r[1]) + ", " + Math.round(r[2]) + ")" : "rgba(" + Math.round(r[0]) + ", " + Math.round(r[1]) + ", " + Math.round(r[2]) + ", " + r[3] + ")";
81
- };
82
- l.to.rgb.percent = function() {
83
- var r = i(arguments), n = Math.round(r[0] / 255 * 100), t = Math.round(r[1] / 255 * 100), o = Math.round(r[2] / 255 * 100);
84
- return r.length < 4 || r[3] === 1 ? "rgb(" + n + "%, " + t + "%, " + o + "%)" : "rgba(" + n + "%, " + t + "%, " + o + "%, " + r[3] + ")";
85
- };
86
- l.to.hsl = function() {
87
- var r = i(arguments);
88
- return r.length < 4 || r[3] === 1 ? "hsl(" + r[0] + ", " + r[1] + "%, " + r[2] + "%)" : "hsla(" + r[0] + ", " + r[1] + "%, " + r[2] + "%, " + r[3] + ")";
89
- };
90
- l.to.hwb = function() {
91
- var r = i(arguments), n = "";
92
- return r.length >= 4 && r[3] !== 1 && (n = ", " + r[3]), "hwb(" + r[0] + ", " + r[1] + "%, " + r[2] + "%" + n + ")";
93
- };
94
- l.to.keyword = function(r) {
95
- return w[r.slice(0, 3)];
96
- };
97
- function u(r, n, t) {
98
- return Math.min(Math.max(n, r), t);
99
- }
100
- function c(r) {
101
- var n = Math.round(r).toString(16).toUpperCase();
102
- return n.length < 2 ? "0" + n : n;
103
- }
104
- var k = g.exports;
1
+ var e = {};
105
2
  export {
106
- k as c
3
+ e as __exports
107
4
  };
108
5
  //# sourceMappingURL=index48.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index48.js","sources":["../node_modules/.pnpm/color-string@1.9.1/node_modules/color-string/index.js"],"sourcesContent":["/* MIT license */\nvar colorNames = require('color-name');\nvar swizzle = require('simple-swizzle');\nvar hasOwnProperty = Object.hasOwnProperty;\n\nvar reverseNames = Object.create(null);\n\n// create a list of reverse color names\nfor (var name in colorNames) {\n\tif (hasOwnProperty.call(colorNames, name)) {\n\t\treverseNames[colorNames[name]] = name;\n\t}\n}\n\nvar cs = module.exports = {\n\tto: {},\n\tget: {}\n};\n\ncs.get = function (string) {\n\tvar prefix = string.substring(0, 3).toLowerCase();\n\tvar val;\n\tvar model;\n\tswitch (prefix) {\n\t\tcase 'hsl':\n\t\t\tval = cs.get.hsl(string);\n\t\t\tmodel = 'hsl';\n\t\t\tbreak;\n\t\tcase 'hwb':\n\t\t\tval = cs.get.hwb(string);\n\t\t\tmodel = 'hwb';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tval = cs.get.rgb(string);\n\t\t\tmodel = 'rgb';\n\t\t\tbreak;\n\t}\n\n\tif (!val) {\n\t\treturn null;\n\t}\n\n\treturn {model: model, value: val};\n};\n\ncs.get.rgb = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar abbr = /^#([a-f0-9]{3,4})$/i;\n\tvar hex = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;\n\tvar rgba = /^rgba?\\(\\s*([+-]?\\d+)(?=[\\s,])\\s*(?:,\\s*)?([+-]?\\d+)(?=[\\s,])\\s*(?:,\\s*)?([+-]?\\d+)\\s*(?:[,|\\/]\\s*([+-]?[\\d\\.]+)(%?)\\s*)?\\)$/;\n\tvar per = /^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,?\\s*([+-]?[\\d\\.]+)\\%\\s*,?\\s*([+-]?[\\d\\.]+)\\%\\s*(?:[,|\\/]\\s*([+-]?[\\d\\.]+)(%?)\\s*)?\\)$/;\n\tvar keyword = /^(\\w+)$/;\n\n\tvar rgb = [0, 0, 0, 1];\n\tvar match;\n\tvar i;\n\tvar hexAlpha;\n\n\tif (match = string.match(hex)) {\n\t\thexAlpha = match[2];\n\t\tmatch = match[1];\n\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\t// https://jsperf.com/slice-vs-substr-vs-substring-methods-long-string/19\n\t\t\tvar i2 = i * 2;\n\t\t\trgb[i] = parseInt(match.slice(i2, i2 + 2), 16);\n\t\t}\n\n\t\tif (hexAlpha) {\n\t\t\trgb[3] = parseInt(hexAlpha, 16) / 255;\n\t\t}\n\t} else if (match = string.match(abbr)) {\n\t\tmatch = match[1];\n\t\thexAlpha = match[3];\n\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = parseInt(match[i] + match[i], 16);\n\t\t}\n\n\t\tif (hexAlpha) {\n\t\t\trgb[3] = parseInt(hexAlpha + hexAlpha, 16) / 255;\n\t\t}\n\t} else if (match = string.match(rgba)) {\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = parseInt(match[i + 1], 0);\n\t\t}\n\n\t\tif (match[4]) {\n\t\t\tif (match[5]) {\n\t\t\t\trgb[3] = parseFloat(match[4]) * 0.01;\n\t\t\t} else {\n\t\t\t\trgb[3] = parseFloat(match[4]);\n\t\t\t}\n\t\t}\n\t} else if (match = string.match(per)) {\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);\n\t\t}\n\n\t\tif (match[4]) {\n\t\t\tif (match[5]) {\n\t\t\t\trgb[3] = parseFloat(match[4]) * 0.01;\n\t\t\t} else {\n\t\t\t\trgb[3] = parseFloat(match[4]);\n\t\t\t}\n\t\t}\n\t} else if (match = string.match(keyword)) {\n\t\tif (match[1] === 'transparent') {\n\t\t\treturn [0, 0, 0, 0];\n\t\t}\n\n\t\tif (!hasOwnProperty.call(colorNames, match[1])) {\n\t\t\treturn null;\n\t\t}\n\n\t\trgb = colorNames[match[1]];\n\t\trgb[3] = 1;\n\n\t\treturn rgb;\n\t} else {\n\t\treturn null;\n\t}\n\n\tfor (i = 0; i < 3; i++) {\n\t\trgb[i] = clamp(rgb[i], 0, 255);\n\t}\n\trgb[3] = clamp(rgb[3], 0, 1);\n\n\treturn rgb;\n};\n\ncs.get.hsl = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar hsl = /^hsla?\\(\\s*([+-]?(?:\\d{0,3}\\.)?\\d+)(?:deg)?\\s*,?\\s*([+-]?[\\d\\.]+)%\\s*,?\\s*([+-]?[\\d\\.]+)%\\s*(?:[,|\\/]\\s*([+-]?(?=\\.\\d|\\d)(?:0|[1-9]\\d*)?(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)\\s*)?\\)$/;\n\tvar match = string.match(hsl);\n\n\tif (match) {\n\t\tvar alpha = parseFloat(match[4]);\n\t\tvar h = ((parseFloat(match[1]) % 360) + 360) % 360;\n\t\tvar s = clamp(parseFloat(match[2]), 0, 100);\n\t\tvar l = clamp(parseFloat(match[3]), 0, 100);\n\t\tvar a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);\n\n\t\treturn [h, s, l, a];\n\t}\n\n\treturn null;\n};\n\ncs.get.hwb = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar hwb = /^hwb\\(\\s*([+-]?\\d{0,3}(?:\\.\\d+)?)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?(?=\\.\\d|\\d)(?:0|[1-9]\\d*)?(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)\\s*)?\\)$/;\n\tvar match = string.match(hwb);\n\n\tif (match) {\n\t\tvar alpha = parseFloat(match[4]);\n\t\tvar h = ((parseFloat(match[1]) % 360) + 360) % 360;\n\t\tvar w = clamp(parseFloat(match[2]), 0, 100);\n\t\tvar b = clamp(parseFloat(match[3]), 0, 100);\n\t\tvar a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);\n\t\treturn [h, w, b, a];\n\t}\n\n\treturn null;\n};\n\ncs.to.hex = function () {\n\tvar rgba = swizzle(arguments);\n\n\treturn (\n\t\t'#' +\n\t\thexDouble(rgba[0]) +\n\t\thexDouble(rgba[1]) +\n\t\thexDouble(rgba[2]) +\n\t\t(rgba[3] < 1\n\t\t\t? (hexDouble(Math.round(rgba[3] * 255)))\n\t\t\t: '')\n\t);\n};\n\ncs.to.rgb = function () {\n\tvar rgba = swizzle(arguments);\n\n\treturn rgba.length < 4 || rgba[3] === 1\n\t\t? 'rgb(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ')'\n\t\t: 'rgba(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ', ' + rgba[3] + ')';\n};\n\ncs.to.rgb.percent = function () {\n\tvar rgba = swizzle(arguments);\n\n\tvar r = Math.round(rgba[0] / 255 * 100);\n\tvar g = Math.round(rgba[1] / 255 * 100);\n\tvar b = Math.round(rgba[2] / 255 * 100);\n\n\treturn rgba.length < 4 || rgba[3] === 1\n\t\t? 'rgb(' + r + '%, ' + g + '%, ' + b + '%)'\n\t\t: 'rgba(' + r + '%, ' + g + '%, ' + b + '%, ' + rgba[3] + ')';\n};\n\ncs.to.hsl = function () {\n\tvar hsla = swizzle(arguments);\n\treturn hsla.length < 4 || hsla[3] === 1\n\t\t? 'hsl(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%)'\n\t\t: 'hsla(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%, ' + hsla[3] + ')';\n};\n\n// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax\n// (hwb have alpha optional & 1 is default value)\ncs.to.hwb = function () {\n\tvar hwba = swizzle(arguments);\n\n\tvar a = '';\n\tif (hwba.length >= 4 && hwba[3] !== 1) {\n\t\ta = ', ' + hwba[3];\n\t}\n\n\treturn 'hwb(' + hwba[0] + ', ' + hwba[1] + '%, ' + hwba[2] + '%' + a + ')';\n};\n\ncs.to.keyword = function (rgb) {\n\treturn reverseNames[rgb.slice(0, 3)];\n};\n\n// helpers\nfunction clamp(num, min, max) {\n\treturn Math.min(Math.max(min, num), max);\n}\n\nfunction hexDouble(num) {\n\tvar str = Math.round(num).toString(16).toUpperCase();\n\treturn (str.length < 2) ? '0' + str : str;\n}\n"],"names":["colorNames","require$$0","swizzle","require$$1","hasOwnProperty","reverseNames","name","cs","colorStringModule","string","prefix","val","model","abbr","hex","rgba","per","keyword","rgb","match","i","hexAlpha","i2","clamp","hsl","alpha","h","s","l","hwb","w","b","hexDouble","r","g","hsla","hwba","a","num","min","max","str"],"mappings":";;;AACA,IAAIA,IAAaC,GACbC,IAAUC,GACVC,IAAiB,OAAO,gBAExBC,IAAe,uBAAO,OAAO,IAAI;AAGrC,SAASC,KAAQN;AAChB,EAAII,EAAe,KAAKJ,GAAYM,CAAI,MACvCD,EAAaL,EAAWM,CAAI,CAAC,IAAIA;AAInC,IAAIC,IAAKC,EAAA,UAAiB;AAAA,EACzB,IAAI,CAAE;AAAA,EACN,KAAK,CAAE;AACR;AAEAD,EAAG,MAAM,SAAUE,GAAQ;AAC1B,MAAIC,IAASD,EAAO,UAAU,GAAG,CAAC,EAAE,eAChCE,GACAC;AACJ,UAAQF,GAAM;AAAA,IACb,KAAK;AACJ,MAAAC,IAAMJ,EAAG,IAAI,IAAIE,CAAM,GACvBG,IAAQ;AACR;AAAA,IACD,KAAK;AACJ,MAAAD,IAAMJ,EAAG,IAAI,IAAIE,CAAM,GACvBG,IAAQ;AACR;AAAA,IACD;AACC,MAAAD,IAAMJ,EAAG,IAAI,IAAIE,CAAM,GACvBG,IAAQ;AACR;AAAA,EACD;AAED,SAAKD,IAIE,EAAC,OAAOC,GAAO,OAAOD,EAAG,IAHxB;AAIT;AAEAJ,EAAG,IAAI,MAAM,SAAUE,GAAQ;AAC9B,MAAI,CAACA;AACJ,WAAO;AAGR,MAAII,IAAO,uBACPC,IAAM,mCACNC,IAAO,gIACPC,IAAM,wHACNC,IAAU,WAEVC,IAAM,CAAC,GAAG,GAAG,GAAG,CAAC,GACjBC,GACAC,GACAC;AAEJ,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AAOA,EAAK,SAAS,KAAKA,EAAK,CAAC,MAAM,IACnC,SAASkB,IAAI,QAAQC,IAAI,QAAQH,IAAI,OACrC,UAAUE,IAAI,QAAQC,IAAI,QAAQH,IAAI,QAAQhB,EAAK,CAAC,IAAI;AAC5D;AAEAR,EAAG,GAAG,MAAM,WAAY;AACvB,MAAI4B,IAAOjC,EAAQ,SAAS;AAC5B,SAAOiC,EAAK,SAAS,KAAKA,EAAK,CAAC,MAAM,IACnC,SAASA,EAAK,CAAC,IAAI,OAAOA,EAAK,CAAC,IAAI,QAAQA,EAAK,CAAC,IAAI,OACtD,UAAUA,EAAK,CAAC,IAAI,OAAOA,EAAK,CAAC,IAAI,QAAQA,EAAK,CAAC,IAAI,QAAQA,EAAK,CAAC,IAAI;AAC7E;AAIA5B,EAAG,GAAG,MAAM,WAAY;AACvB,MAAI6B,IAAOlC,EAAQ,SAAS,GAExBmC,IAAI;AACR,SAAID,EAAK,UAAU,KAAKA,EAAK,CAAC,MAAM,MACnCC,IAAI,OAAOD,EAAK,CAAC,IAGX,SAASA,EAAK,CAAC,IAAI,OAAOA,EAAK,CAAC,IAAI,QAAQA,EAAK,CAAC,IAAI,MAAMC,IAAI;AACxE;AAEA9B,EAAG,GAAG,UAAU,SAAUW,GAAK;AAC9B,SAAOb,EAAaa,EAAI,MAAM,GAAG,CAAC,CAAC;AACpC;AAGA,SAASK,EAAMe,GAAKC,GAAKC,GAAK;AAC7B,SAAO,KAAK,IAAI,KAAK,IAAID,GAAKD,CAAG,GAAGE,CAAG;AACxC;AAEA,SAASR,EAAUM,GAAK;AACvB,MAAIG,IAAM,KAAK,MAAMH,CAAG,EAAE,SAAS,EAAE,EAAE;AACvC,SAAQG,EAAI,SAAS,IAAK,MAAMA,IAAMA;AACvC;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index48.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index49.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index55.cjs"),a=require("./index56.cjs"),i=l.conversions,v=a.route,c={},f=Object.keys(i);function p(n){const t=function(...o){const e=o[0];return e==null?e:(e.length>1&&(o=e),n(o))};return"conversion"in n&&(t.conversion=n.conversion),t}function b(n){const t=function(...o){const e=o[0];if(e==null)return e;e.length>1&&(o=e);const r=n(o);if(typeof r=="object")for(let u=r.length,s=0;s<u;s++)r[s]=Math.round(r[s]);return r};return"conversion"in n&&(t.conversion=n.conversion),t}f.forEach(n=>{c[n]={},Object.defineProperty(c[n],"channels",{value:i[n].channels}),Object.defineProperty(c[n],"labels",{value:i[n].labels});const t=v(n);Object.keys(t).forEach(e=>{const r=t[e];c[n][e]=b(r),c[n][e].raw=p(r)})});var h=c;exports.colorConvert=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}exports.getDefaultExportFromCjs=e;
2
2
  //# sourceMappingURL=index49.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index49.cjs","sources":["../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js"],"sourcesContent":["const conversions = require('./conversions');\nconst route = require('./route');\n\nconst convert = {};\n\nconst models = Object.keys(conversions);\n\nfunction wrapRaw(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\treturn fn(args);\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nfunction wrapRounded(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\tconst result = fn(args);\n\n\t\t// We're assuming the result is an array here.\n\t\t// see notice in conversions.js; don't use box types\n\t\t// in conversion functions.\n\t\tif (typeof result === 'object') {\n\t\t\tfor (let len = result.length, i = 0; i < len; i++) {\n\t\t\t\tresult[i] = Math.round(result[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nmodels.forEach(fromModel => {\n\tconvert[fromModel] = {};\n\n\tObject.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});\n\tObject.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});\n\n\tconst routes = route(fromModel);\n\tconst routeModels = Object.keys(routes);\n\n\trouteModels.forEach(toModel => {\n\t\tconst fn = routes[toModel];\n\n\t\tconvert[fromModel][toModel] = wrapRounded(fn);\n\t\tconvert[fromModel][toModel].raw = wrapRaw(fn);\n\t});\n});\n\nmodule.exports = convert;\n"],"names":["conversions","require$$0","route","require$$1","convert","models","wrapRaw","fn","wrappedFn","args","arg0","wrapRounded","result","len","i","fromModel","routes","toModel","colorConvert"],"mappings":"4IAAMA,EAAcC,EAAAA,YACdC,EAAQC,EAAAA,MAERC,EAAU,CAAA,EAEVC,EAAS,OAAO,KAAKL,CAAW,EAEtC,SAASM,EAAQC,EAAI,CACpB,MAAMC,EAAY,YAAaC,EAAM,CACpC,MAAMC,EAAOD,EAAK,CAAC,EACnB,OAA0BC,GAAS,KAC3BA,GAGJA,EAAK,OAAS,IACjBD,EAAOC,GAGDH,EAAGE,CAAI,EAChB,EAGC,MAAI,eAAgBF,IACnBC,EAAU,WAAaD,EAAG,YAGpBC,CACR,CAEA,SAASG,EAAYJ,EAAI,CACxB,MAAMC,EAAY,YAAaC,EAAM,CACpC,MAAMC,EAAOD,EAAK,CAAC,EAEnB,GAA0BC,GAAS,KAClC,OAAOA,EAGJA,EAAK,OAAS,IACjBD,EAAOC,GAGR,MAAME,EAASL,EAAGE,CAAI,EAKtB,GAAI,OAAOG,GAAW,SACrB,QAASC,EAAMD,EAAO,OAAQE,EAAI,EAAGA,EAAID,EAAKC,IAC7CF,EAAOE,CAAC,EAAI,KAAK,MAAMF,EAAOE,CAAC,CAAC,EAIlC,OAAOF,CACT,EAGC,MAAI,eAAgBL,IACnBC,EAAU,WAAaD,EAAG,YAGpBC,CACR,CAEAH,EAAO,QAAQU,GAAa,CAC3BX,EAAQW,CAAS,EAAI,GAErB,OAAO,eAAeX,EAAQW,CAAS,EAAG,WAAY,CAAC,MAAOf,EAAYe,CAAS,EAAE,QAAQ,CAAC,EAC9F,OAAO,eAAeX,EAAQW,CAAS,EAAG,SAAU,CAAC,MAAOf,EAAYe,CAAS,EAAE,MAAM,CAAC,EAE1F,MAAMC,EAASd,EAAMa,CAAS,EACV,OAAO,KAAKC,CAAM,EAE1B,QAAQC,GAAW,CAC9B,MAAMV,EAAKS,EAAOC,CAAO,EAEzBb,EAAQW,CAAS,EAAEE,CAAO,EAAIN,EAAYJ,CAAE,EAC5CH,EAAQW,CAAS,EAAEE,CAAO,EAAE,IAAMX,EAAQC,CAAE,CAC9C,CAAE,CACF,CAAC,EAED,IAAAW,EAAiBd","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index49.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index49.js CHANGED
@@ -1,37 +1,7 @@
1
- import { c as a } from "./index55.js";
2
- import { r as l } from "./index56.js";
3
- const i = a, v = l, c = {}, p = Object.keys(i);
4
- function f(n) {
5
- const t = function(...o) {
6
- const e = o[0];
7
- return e == null ? e : (e.length > 1 && (o = e), n(o));
8
- };
9
- return "conversion" in n && (t.conversion = n.conversion), t;
1
+ function e(t) {
2
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
10
3
  }
11
- function h(n) {
12
- const t = function(...o) {
13
- const e = o[0];
14
- if (e == null)
15
- return e;
16
- e.length > 1 && (o = e);
17
- const r = n(o);
18
- if (typeof r == "object")
19
- for (let u = r.length, s = 0; s < u; s++)
20
- r[s] = Math.round(r[s]);
21
- return r;
22
- };
23
- return "conversion" in n && (t.conversion = n.conversion), t;
24
- }
25
- p.forEach((n) => {
26
- c[n] = {}, Object.defineProperty(c[n], "channels", { value: i[n].channels }), Object.defineProperty(c[n], "labels", { value: i[n].labels });
27
- const t = v(n);
28
- Object.keys(t).forEach((e) => {
29
- const r = t[e];
30
- c[n][e] = h(r), c[n][e].raw = f(r);
31
- });
32
- });
33
- var d = c;
34
4
  export {
35
- d as c
5
+ e as getDefaultExportFromCjs
36
6
  };
37
7
  //# sourceMappingURL=index49.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index49.js","sources":["../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js"],"sourcesContent":["const conversions = require('./conversions');\nconst route = require('./route');\n\nconst convert = {};\n\nconst models = Object.keys(conversions);\n\nfunction wrapRaw(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\treturn fn(args);\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nfunction wrapRounded(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\tconst result = fn(args);\n\n\t\t// We're assuming the result is an array here.\n\t\t// see notice in conversions.js; don't use box types\n\t\t// in conversion functions.\n\t\tif (typeof result === 'object') {\n\t\t\tfor (let len = result.length, i = 0; i < len; i++) {\n\t\t\t\tresult[i] = Math.round(result[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nmodels.forEach(fromModel => {\n\tconvert[fromModel] = {};\n\n\tObject.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});\n\tObject.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});\n\n\tconst routes = route(fromModel);\n\tconst routeModels = Object.keys(routes);\n\n\trouteModels.forEach(toModel => {\n\t\tconst fn = routes[toModel];\n\n\t\tconvert[fromModel][toModel] = wrapRounded(fn);\n\t\tconvert[fromModel][toModel].raw = wrapRaw(fn);\n\t});\n});\n\nmodule.exports = convert;\n"],"names":["conversions","require$$0","route","require$$1","convert","models","wrapRaw","fn","wrappedFn","args","arg0","wrapRounded","result","len","i","fromModel","routes","toModel","colorConvert"],"mappings":";;AAAA,MAAMA,IAAcC,GACdC,IAAQC,GAERC,IAAU,CAAA,GAEVC,IAAS,OAAO,KAAKL,CAAW;AAEtC,SAASM,EAAQC,GAAI;AACpB,QAAMC,IAAY,YAAaC,GAAM;AACpC,UAAMC,IAAOD,EAAK,CAAC;AACnB,WAA0BC,KAAS,OAC3BA,KAGJA,EAAK,SAAS,MACjBD,IAAOC,IAGDH,EAAGE,CAAI;AAAA,EAChB;AAGC,SAAI,gBAAgBF,MACnBC,EAAU,aAAaD,EAAG,aAGpBC;AACR;AAEA,SAASG,EAAYJ,GAAI;AACxB,QAAMC,IAAY,YAAaC,GAAM;AACpC,UAAMC,IAAOD,EAAK,CAAC;AAEnB,QAA0BC,KAAS;AAClC,aAAOA;AAGR,IAAIA,EAAK,SAAS,MACjBD,IAAOC;AAGR,UAAME,IAASL,EAAGE,CAAI;AAKtB,QAAI,OAAOG,KAAW;AACrB,eAASC,IAAMD,EAAO,QAAQE,IAAI,GAAGA,IAAID,GAAKC;AAC7C,QAAAF,EAAOE,CAAC,IAAI,KAAK,MAAMF,EAAOE,CAAC,CAAC;AAIlC,WAAOF;AAAA,EACT;AAGC,SAAI,gBAAgBL,MACnBC,EAAU,aAAaD,EAAG,aAGpBC;AACR;AAEAH,EAAO,QAAQ,CAAAU,MAAa;AAC3B,EAAAX,EAAQW,CAAS,IAAI,IAErB,OAAO,eAAeX,EAAQW,CAAS,GAAG,YAAY,EAAC,OAAOf,EAAYe,CAAS,EAAE,SAAQ,CAAC,GAC9F,OAAO,eAAeX,EAAQW,CAAS,GAAG,UAAU,EAAC,OAAOf,EAAYe,CAAS,EAAE,OAAM,CAAC;AAE1F,QAAMC,IAASd,EAAMa,CAAS;AAG9B,EAFoB,OAAO,KAAKC,CAAM,EAE1B,QAAQ,CAAAC,MAAW;AAC9B,UAAMV,IAAKS,EAAOC,CAAO;AAEzB,IAAAb,EAAQW,CAAS,EAAEE,CAAO,IAAIN,EAAYJ,CAAE,GAC5CH,EAAQW,CAAS,EAAEE,CAAO,EAAE,MAAMX,EAAQC,CAAE;AAAA,EAC9C,CAAE;AACF,CAAC;AAED,IAAAW,IAAiBd;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index49.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
package/dist/index50.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index52.cjs"),M=require("./index53.cjs"),x=require("./index54.cjs");var v=M.colorName,f=x.simpleSwizzleExports,m=Object.hasOwnProperty,w=Object.create(null);for(var b in v)m.call(v,b)&&(w[v[b]]=b);var l=p.__module.exports={to:{},get:{}};l.get=function(r){var n=r.substring(0,3).toLowerCase(),t,o;switch(n){case"hsl":t=l.get.hsl(r),o="hsl";break;case"hwb":t=l.get.hwb(r),o="hwb";break;default:t=l.get.rgb(r),o="rgb";break}return t?{model:o,value:t}:null};l.get.rgb=function(r){if(!r)return null;var n=/^#([a-f0-9]{3,4})$/i,t=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,o=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,d=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^(\w+)$/,s=[0,0,0,1],a,e,h;if(a=r.match(t)){for(h=a[2],a=a[1],e=0;e<3;e++){var g=e*2;s[e]=parseInt(a.slice(g,g+2),16)}h&&(s[3]=parseInt(h,16)/255)}else if(a=r.match(n)){for(a=a[1],h=a[3],e=0;e<3;e++)s[e]=parseInt(a[e]+a[e],16);h&&(s[3]=parseInt(h+h,16)/255)}else if(a=r.match(o)){for(e=0;e<3;e++)s[e]=parseInt(a[e+1],0);a[4]&&(a[5]?s[3]=parseFloat(a[4])*.01:s[3]=parseFloat(a[4]))}else if(a=r.match(d)){for(e=0;e<3;e++)s[e]=Math.round(parseFloat(a[e+1])*2.55);a[4]&&(a[5]?s[3]=parseFloat(a[4])*.01:s[3]=parseFloat(a[4]))}else return(a=r.match(i))?a[1]==="transparent"?[0,0,0,0]:m.call(v,a[1])?(s=v[a[1]],s[3]=1,s):null:null;for(e=0;e<3;e++)s[e]=u(s[e],0,255);return s[3]=u(s[3],0,1),s};l.get.hsl=function(r){if(!r)return null;var n=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,t=r.match(n);if(t){var o=parseFloat(t[4]),d=(parseFloat(t[1])%360+360)%360,i=u(parseFloat(t[2]),0,100),s=u(parseFloat(t[3]),0,100),a=u(isNaN(o)?1:o,0,1);return[d,i,s,a]}return null};l.get.hwb=function(r){if(!r)return null;var n=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,t=r.match(n);if(t){var o=parseFloat(t[4]),d=(parseFloat(t[1])%360+360)%360,i=u(parseFloat(t[2]),0,100),s=u(parseFloat(t[3]),0,100),a=u(isNaN(o)?1:o,0,1);return[d,i,s,a]}return null};l.to.hex=function(){var r=f(arguments);return"#"+c(r[0])+c(r[1])+c(r[2])+(r[3]<1?c(Math.round(r[3]*255)):"")};l.to.rgb=function(){var r=f(arguments);return r.length<4||r[3]===1?"rgb("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+")":"rgba("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+", "+r[3]+")"};l.to.rgb.percent=function(){var r=f(arguments),n=Math.round(r[0]/255*100),t=Math.round(r[1]/255*100),o=Math.round(r[2]/255*100);return r.length<4||r[3]===1?"rgb("+n+"%, "+t+"%, "+o+"%)":"rgba("+n+"%, "+t+"%, "+o+"%, "+r[3]+")"};l.to.hsl=function(){var r=f(arguments);return r.length<4||r[3]===1?"hsl("+r[0]+", "+r[1]+"%, "+r[2]+"%)":"hsla("+r[0]+", "+r[1]+"%, "+r[2]+"%, "+r[3]+")"};l.to.hwb=function(){var r=f(arguments),n="";return r.length>=4&&r[3]!==1&&(n=", "+r[3]),"hwb("+r[0]+", "+r[1]+"%, "+r[2]+"%"+n+")"};l.to.keyword=function(r){return w[r.slice(0,3)]};function u(r,n,t){return Math.min(Math.max(n,r),t)}function c(r){var n=Math.round(r).toString(16).toUpperCase();return n.length<2?"0"+n:n}var F=p.__module.exports;exports.colorStringExports=F;
2
2
  //# sourceMappingURL=index50.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index50.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index50.cjs","sources":["../node_modules/.pnpm/color-string@1.9.1/node_modules/color-string/index.js"],"sourcesContent":["/* MIT license */\nvar colorNames = require('color-name');\nvar swizzle = require('simple-swizzle');\nvar hasOwnProperty = Object.hasOwnProperty;\n\nvar reverseNames = Object.create(null);\n\n// create a list of reverse color names\nfor (var name in colorNames) {\n\tif (hasOwnProperty.call(colorNames, name)) {\n\t\treverseNames[colorNames[name]] = name;\n\t}\n}\n\nvar cs = module.exports = {\n\tto: {},\n\tget: {}\n};\n\ncs.get = function (string) {\n\tvar prefix = string.substring(0, 3).toLowerCase();\n\tvar val;\n\tvar model;\n\tswitch (prefix) {\n\t\tcase 'hsl':\n\t\t\tval = cs.get.hsl(string);\n\t\t\tmodel = 'hsl';\n\t\t\tbreak;\n\t\tcase 'hwb':\n\t\t\tval = cs.get.hwb(string);\n\t\t\tmodel = 'hwb';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tval = cs.get.rgb(string);\n\t\t\tmodel = 'rgb';\n\t\t\tbreak;\n\t}\n\n\tif (!val) {\n\t\treturn null;\n\t}\n\n\treturn {model: model, value: val};\n};\n\ncs.get.rgb = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar abbr = /^#([a-f0-9]{3,4})$/i;\n\tvar hex = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;\n\tvar rgba = /^rgba?\\(\\s*([+-]?\\d+)(?=[\\s,])\\s*(?:,\\s*)?([+-]?\\d+)(?=[\\s,])\\s*(?:,\\s*)?([+-]?\\d+)\\s*(?:[,|\\/]\\s*([+-]?[\\d\\.]+)(%?)\\s*)?\\)$/;\n\tvar per = /^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,?\\s*([+-]?[\\d\\.]+)\\%\\s*,?\\s*([+-]?[\\d\\.]+)\\%\\s*(?:[,|\\/]\\s*([+-]?[\\d\\.]+)(%?)\\s*)?\\)$/;\n\tvar keyword = /^(\\w+)$/;\n\n\tvar rgb = [0, 0, 0, 1];\n\tvar match;\n\tvar i;\n\tvar hexAlpha;\n\n\tif (match = string.match(hex)) {\n\t\thexAlpha = match[2];\n\t\tmatch = match[1];\n\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\t// https://jsperf.com/slice-vs-substr-vs-substring-methods-long-string/19\n\t\t\tvar i2 = i * 2;\n\t\t\trgb[i] = parseInt(match.slice(i2, i2 + 2), 16);\n\t\t}\n\n\t\tif (hexAlpha) {\n\t\t\trgb[3] = parseInt(hexAlpha, 16) / 255;\n\t\t}\n\t} else if (match = string.match(abbr)) {\n\t\tmatch = match[1];\n\t\thexAlpha = match[3];\n\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = parseInt(match[i] + match[i], 16);\n\t\t}\n\n\t\tif (hexAlpha) {\n\t\t\trgb[3] = parseInt(hexAlpha + hexAlpha, 16) / 255;\n\t\t}\n\t} else if (match = string.match(rgba)) {\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = parseInt(match[i + 1], 0);\n\t\t}\n\n\t\tif (match[4]) {\n\t\t\tif (match[5]) {\n\t\t\t\trgb[3] = parseFloat(match[4]) * 0.01;\n\t\t\t} else {\n\t\t\t\trgb[3] = parseFloat(match[4]);\n\t\t\t}\n\t\t}\n\t} else if (match = string.match(per)) {\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);\n\t\t}\n\n\t\tif (match[4]) {\n\t\t\tif (match[5]) {\n\t\t\t\trgb[3] = parseFloat(match[4]) * 0.01;\n\t\t\t} else {\n\t\t\t\trgb[3] = parseFloat(match[4]);\n\t\t\t}\n\t\t}\n\t} else if (match = string.match(keyword)) {\n\t\tif (match[1] === 'transparent') {\n\t\t\treturn [0, 0, 0, 0];\n\t\t}\n\n\t\tif (!hasOwnProperty.call(colorNames, match[1])) {\n\t\t\treturn null;\n\t\t}\n\n\t\trgb = colorNames[match[1]];\n\t\trgb[3] = 1;\n\n\t\treturn rgb;\n\t} else {\n\t\treturn null;\n\t}\n\n\tfor (i = 0; i < 3; i++) {\n\t\trgb[i] = clamp(rgb[i], 0, 255);\n\t}\n\trgb[3] = clamp(rgb[3], 0, 1);\n\n\treturn rgb;\n};\n\ncs.get.hsl = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar hsl = /^hsla?\\(\\s*([+-]?(?:\\d{0,3}\\.)?\\d+)(?:deg)?\\s*,?\\s*([+-]?[\\d\\.]+)%\\s*,?\\s*([+-]?[\\d\\.]+)%\\s*(?:[,|\\/]\\s*([+-]?(?=\\.\\d|\\d)(?:0|[1-9]\\d*)?(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)\\s*)?\\)$/;\n\tvar match = string.match(hsl);\n\n\tif (match) {\n\t\tvar alpha = parseFloat(match[4]);\n\t\tvar h = ((parseFloat(match[1]) % 360) + 360) % 360;\n\t\tvar s = clamp(parseFloat(match[2]), 0, 100);\n\t\tvar l = clamp(parseFloat(match[3]), 0, 100);\n\t\tvar a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);\n\n\t\treturn [h, s, l, a];\n\t}\n\n\treturn null;\n};\n\ncs.get.hwb = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar hwb = /^hwb\\(\\s*([+-]?\\d{0,3}(?:\\.\\d+)?)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?(?=\\.\\d|\\d)(?:0|[1-9]\\d*)?(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)\\s*)?\\)$/;\n\tvar match = string.match(hwb);\n\n\tif (match) {\n\t\tvar alpha = parseFloat(match[4]);\n\t\tvar h = ((parseFloat(match[1]) % 360) + 360) % 360;\n\t\tvar w = clamp(parseFloat(match[2]), 0, 100);\n\t\tvar b = clamp(parseFloat(match[3]), 0, 100);\n\t\tvar a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);\n\t\treturn [h, w, b, a];\n\t}\n\n\treturn null;\n};\n\ncs.to.hex = function () {\n\tvar rgba = swizzle(arguments);\n\n\treturn (\n\t\t'#' +\n\t\thexDouble(rgba[0]) +\n\t\thexDouble(rgba[1]) +\n\t\thexDouble(rgba[2]) +\n\t\t(rgba[3] < 1\n\t\t\t? (hexDouble(Math.round(rgba[3] * 255)))\n\t\t\t: '')\n\t);\n};\n\ncs.to.rgb = function () {\n\tvar rgba = swizzle(arguments);\n\n\treturn rgba.length < 4 || rgba[3] === 1\n\t\t? 'rgb(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ')'\n\t\t: 'rgba(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ', ' + rgba[3] + ')';\n};\n\ncs.to.rgb.percent = function () {\n\tvar rgba = swizzle(arguments);\n\n\tvar r = Math.round(rgba[0] / 255 * 100);\n\tvar g = Math.round(rgba[1] / 255 * 100);\n\tvar b = Math.round(rgba[2] / 255 * 100);\n\n\treturn rgba.length < 4 || rgba[3] === 1\n\t\t? 'rgb(' + r + '%, ' + g + '%, ' + b + '%)'\n\t\t: 'rgba(' + r + '%, ' + g + '%, ' + b + '%, ' + rgba[3] + ')';\n};\n\ncs.to.hsl = function () {\n\tvar hsla = swizzle(arguments);\n\treturn hsla.length < 4 || hsla[3] === 1\n\t\t? 'hsl(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%)'\n\t\t: 'hsla(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%, ' + hsla[3] + ')';\n};\n\n// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax\n// (hwb have alpha optional & 1 is default value)\ncs.to.hwb = function () {\n\tvar hwba = swizzle(arguments);\n\n\tvar a = '';\n\tif (hwba.length >= 4 && hwba[3] !== 1) {\n\t\ta = ', ' + hwba[3];\n\t}\n\n\treturn 'hwb(' + hwba[0] + ', ' + hwba[1] + '%, ' + hwba[2] + '%' + a + ')';\n};\n\ncs.to.keyword = function (rgb) {\n\treturn reverseNames[rgb.slice(0, 3)];\n};\n\n// helpers\nfunction clamp(num, min, max) {\n\treturn Math.min(Math.max(min, num), max);\n}\n\nfunction hexDouble(num) {\n\tvar str = Math.round(num).toString(16).toUpperCase();\n\treturn (str.length < 2) ? '0' + str : str;\n}\n"],"names":["colorNames","require$$0","swizzle","require$$1","hasOwnProperty","reverseNames","name","cs","colorStringModule","string","prefix","val","model","abbr","hex","rgba","per","keyword","rgb","match","i","hexAlpha","i2","clamp","hsl","alpha","h","s","l","hwb","w","b","hexDouble","r","g","hsla","hwba","a","num","min","max","str"],"mappings":"uKACA,IAAIA,EAAaC,EAAAA,UACbC,EAAUC,EAAAA,qBACVC,EAAiB,OAAO,eAExBC,EAAe,OAAO,OAAO,IAAI,EAGrC,QAASC,KAAQN,EACZI,EAAe,KAAKJ,EAAYM,CAAI,IACvCD,EAAaL,EAAWM,CAAI,CAAC,EAAIA,GAInC,IAAIC,EAAKC,EAAA,SAAA,QAAiB,CACzB,GAAI,CAAE,EACN,IAAK,CAAE,CACR,EAEAD,EAAG,IAAM,SAAUE,EAAQ,CAC1B,IAAIC,EAASD,EAAO,UAAU,EAAG,CAAC,EAAE,cAChCE,EACAC,EACJ,OAAQF,EAAM,CACb,IAAK,MACJC,EAAMJ,EAAG,IAAI,IAAIE,CAAM,EACvBG,EAAQ,MACR,MACD,IAAK,MACJD,EAAMJ,EAAG,IAAI,IAAIE,CAAM,EACvBG,EAAQ,MACR,MACD,QACCD,EAAMJ,EAAG,IAAI,IAAIE,CAAM,EACvBG,EAAQ,MACR,K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vC,OAAQG,EAAI,OAAS,EAAK,IAAMA,EAAMA,CACvC","x_google_ignoreList":[0]}
package/dist/index50.js CHANGED
@@ -1,5 +1,108 @@
1
- var r = {};
1
+ import { __module as g } from "./index52.js";
2
+ import { c as M } from "./index53.js";
3
+ import { s as F } from "./index54.js";
4
+ var d = M, i = F, m = Object.hasOwnProperty, w = /* @__PURE__ */ Object.create(null);
5
+ for (var b in d)
6
+ m.call(d, b) && (w[d[b]] = b);
7
+ var l = g.exports = {
8
+ to: {},
9
+ get: {}
10
+ };
11
+ l.get = function(r) {
12
+ var n = r.substring(0, 3).toLowerCase(), t, o;
13
+ switch (n) {
14
+ case "hsl":
15
+ t = l.get.hsl(r), o = "hsl";
16
+ break;
17
+ case "hwb":
18
+ t = l.get.hwb(r), o = "hwb";
19
+ break;
20
+ default:
21
+ t = l.get.rgb(r), o = "rgb";
22
+ break;
23
+ }
24
+ return t ? { model: o, value: t } : null;
25
+ };
26
+ l.get.rgb = function(r) {
27
+ if (!r)
28
+ return null;
29
+ var n = /^#([a-f0-9]{3,4})$/i, t = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i, o = /^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, f = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/, v = /^(\w+)$/, s = [0, 0, 0, 1], a, e, h;
30
+ if (a = r.match(t)) {
31
+ for (h = a[2], a = a[1], e = 0; e < 3; e++) {
32
+ var p = e * 2;
33
+ s[e] = parseInt(a.slice(p, p + 2), 16);
34
+ }
35
+ h && (s[3] = parseInt(h, 16) / 255);
36
+ } else if (a = r.match(n)) {
37
+ for (a = a[1], h = a[3], e = 0; e < 3; e++)
38
+ s[e] = parseInt(a[e] + a[e], 16);
39
+ h && (s[3] = parseInt(h + h, 16) / 255);
40
+ } else if (a = r.match(o)) {
41
+ for (e = 0; e < 3; e++)
42
+ s[e] = parseInt(a[e + 1], 0);
43
+ a[4] && (a[5] ? s[3] = parseFloat(a[4]) * 0.01 : s[3] = parseFloat(a[4]));
44
+ } else if (a = r.match(f)) {
45
+ for (e = 0; e < 3; e++)
46
+ s[e] = Math.round(parseFloat(a[e + 1]) * 2.55);
47
+ a[4] && (a[5] ? s[3] = parseFloat(a[4]) * 0.01 : s[3] = parseFloat(a[4]));
48
+ } else
49
+ return (a = r.match(v)) ? a[1] === "transparent" ? [0, 0, 0, 0] : m.call(d, a[1]) ? (s = d[a[1]], s[3] = 1, s) : null : null;
50
+ for (e = 0; e < 3; e++)
51
+ s[e] = u(s[e], 0, 255);
52
+ return s[3] = u(s[3], 0, 1), s;
53
+ };
54
+ l.get.hsl = function(r) {
55
+ if (!r)
56
+ return null;
57
+ var n = /^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/, t = r.match(n);
58
+ if (t) {
59
+ var o = parseFloat(t[4]), f = (parseFloat(t[1]) % 360 + 360) % 360, v = u(parseFloat(t[2]), 0, 100), s = u(parseFloat(t[3]), 0, 100), a = u(isNaN(o) ? 1 : o, 0, 1);
60
+ return [f, v, s, a];
61
+ }
62
+ return null;
63
+ };
64
+ l.get.hwb = function(r) {
65
+ if (!r)
66
+ return null;
67
+ var n = /^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/, t = r.match(n);
68
+ if (t) {
69
+ var o = parseFloat(t[4]), f = (parseFloat(t[1]) % 360 + 360) % 360, v = u(parseFloat(t[2]), 0, 100), s = u(parseFloat(t[3]), 0, 100), a = u(isNaN(o) ? 1 : o, 0, 1);
70
+ return [f, v, s, a];
71
+ }
72
+ return null;
73
+ };
74
+ l.to.hex = function() {
75
+ var r = i(arguments);
76
+ return "#" + c(r[0]) + c(r[1]) + c(r[2]) + (r[3] < 1 ? c(Math.round(r[3] * 255)) : "");
77
+ };
78
+ l.to.rgb = function() {
79
+ var r = i(arguments);
80
+ return r.length < 4 || r[3] === 1 ? "rgb(" + Math.round(r[0]) + ", " + Math.round(r[1]) + ", " + Math.round(r[2]) + ")" : "rgba(" + Math.round(r[0]) + ", " + Math.round(r[1]) + ", " + Math.round(r[2]) + ", " + r[3] + ")";
81
+ };
82
+ l.to.rgb.percent = function() {
83
+ var r = i(arguments), n = Math.round(r[0] / 255 * 100), t = Math.round(r[1] / 255 * 100), o = Math.round(r[2] / 255 * 100);
84
+ return r.length < 4 || r[3] === 1 ? "rgb(" + n + "%, " + t + "%, " + o + "%)" : "rgba(" + n + "%, " + t + "%, " + o + "%, " + r[3] + ")";
85
+ };
86
+ l.to.hsl = function() {
87
+ var r = i(arguments);
88
+ return r.length < 4 || r[3] === 1 ? "hsl(" + r[0] + ", " + r[1] + "%, " + r[2] + "%)" : "hsla(" + r[0] + ", " + r[1] + "%, " + r[2] + "%, " + r[3] + ")";
89
+ };
90
+ l.to.hwb = function() {
91
+ var r = i(arguments), n = "";
92
+ return r.length >= 4 && r[3] !== 1 && (n = ", " + r[3]), "hwb(" + r[0] + ", " + r[1] + "%, " + r[2] + "%" + n + ")";
93
+ };
94
+ l.to.keyword = function(r) {
95
+ return w[r.slice(0, 3)];
96
+ };
97
+ function u(r, n, t) {
98
+ return Math.min(Math.max(n, r), t);
99
+ }
100
+ function c(r) {
101
+ var n = Math.round(r).toString(16).toUpperCase();
102
+ return n.length < 2 ? "0" + n : n;
103
+ }
104
+ var k = g.exports;
2
105
  export {
3
- r as __exports
106
+ k as c
4
107
  };
5
108
  //# sourceMappingURL=index50.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index50.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index50.js","sources":["../node_modules/.pnpm/color-string@1.9.1/node_modules/color-string/index.js"],"sourcesContent":["/* MIT license */\nvar colorNames = require('color-name');\nvar swizzle = require('simple-swizzle');\nvar hasOwnProperty = Object.hasOwnProperty;\n\nvar reverseNames = Object.create(null);\n\n// create a list of reverse color names\nfor (var name in colorNames) {\n\tif (hasOwnProperty.call(colorNames, name)) {\n\t\treverseNames[colorNames[name]] = name;\n\t}\n}\n\nvar cs = module.exports = {\n\tto: {},\n\tget: {}\n};\n\ncs.get = function (string) {\n\tvar prefix = string.substring(0, 3).toLowerCase();\n\tvar val;\n\tvar model;\n\tswitch (prefix) {\n\t\tcase 'hsl':\n\t\t\tval = cs.get.hsl(string);\n\t\t\tmodel = 'hsl';\n\t\t\tbreak;\n\t\tcase 'hwb':\n\t\t\tval = cs.get.hwb(string);\n\t\t\tmodel = 'hwb';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tval = cs.get.rgb(string);\n\t\t\tmodel = 'rgb';\n\t\t\tbreak;\n\t}\n\n\tif (!val) {\n\t\treturn null;\n\t}\n\n\treturn {model: model, value: val};\n};\n\ncs.get.rgb = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar abbr = /^#([a-f0-9]{3,4})$/i;\n\tvar hex = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;\n\tvar rgba = /^rgba?\\(\\s*([+-]?\\d+)(?=[\\s,])\\s*(?:,\\s*)?([+-]?\\d+)(?=[\\s,])\\s*(?:,\\s*)?([+-]?\\d+)\\s*(?:[,|\\/]\\s*([+-]?[\\d\\.]+)(%?)\\s*)?\\)$/;\n\tvar per = /^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,?\\s*([+-]?[\\d\\.]+)\\%\\s*,?\\s*([+-]?[\\d\\.]+)\\%\\s*(?:[,|\\/]\\s*([+-]?[\\d\\.]+)(%?)\\s*)?\\)$/;\n\tvar keyword = /^(\\w+)$/;\n\n\tvar rgb = [0, 0, 0, 1];\n\tvar match;\n\tvar i;\n\tvar hexAlpha;\n\n\tif (match = string.match(hex)) {\n\t\thexAlpha = match[2];\n\t\tmatch = match[1];\n\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\t// https://jsperf.com/slice-vs-substr-vs-substring-methods-long-string/19\n\t\t\tvar i2 = i * 2;\n\t\t\trgb[i] = parseInt(match.slice(i2, i2 + 2), 16);\n\t\t}\n\n\t\tif (hexAlpha) {\n\t\t\trgb[3] = parseInt(hexAlpha, 16) / 255;\n\t\t}\n\t} else if (match = string.match(abbr)) {\n\t\tmatch = match[1];\n\t\thexAlpha = match[3];\n\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = parseInt(match[i] + match[i], 16);\n\t\t}\n\n\t\tif (hexAlpha) {\n\t\t\trgb[3] = parseInt(hexAlpha + hexAlpha, 16) / 255;\n\t\t}\n\t} else if (match = string.match(rgba)) {\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = parseInt(match[i + 1], 0);\n\t\t}\n\n\t\tif (match[4]) {\n\t\t\tif (match[5]) {\n\t\t\t\trgb[3] = parseFloat(match[4]) * 0.01;\n\t\t\t} else {\n\t\t\t\trgb[3] = parseFloat(match[4]);\n\t\t\t}\n\t\t}\n\t} else if (match = string.match(per)) {\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);\n\t\t}\n\n\t\tif (match[4]) {\n\t\t\tif (match[5]) {\n\t\t\t\trgb[3] = parseFloat(match[4]) * 0.01;\n\t\t\t} else {\n\t\t\t\trgb[3] = parseFloat(match[4]);\n\t\t\t}\n\t\t}\n\t} else if (match = string.match(keyword)) {\n\t\tif (match[1] === 'transparent') {\n\t\t\treturn [0, 0, 0, 0];\n\t\t}\n\n\t\tif (!hasOwnProperty.call(colorNames, match[1])) {\n\t\t\treturn null;\n\t\t}\n\n\t\trgb = colorNames[match[1]];\n\t\trgb[3] = 1;\n\n\t\treturn rgb;\n\t} else {\n\t\treturn null;\n\t}\n\n\tfor (i = 0; i < 3; i++) {\n\t\trgb[i] = clamp(rgb[i], 0, 255);\n\t}\n\trgb[3] = clamp(rgb[3], 0, 1);\n\n\treturn rgb;\n};\n\ncs.get.hsl = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar hsl = /^hsla?\\(\\s*([+-]?(?:\\d{0,3}\\.)?\\d+)(?:deg)?\\s*,?\\s*([+-]?[\\d\\.]+)%\\s*,?\\s*([+-]?[\\d\\.]+)%\\s*(?:[,|\\/]\\s*([+-]?(?=\\.\\d|\\d)(?:0|[1-9]\\d*)?(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)\\s*)?\\)$/;\n\tvar match = string.match(hsl);\n\n\tif (match) {\n\t\tvar alpha = parseFloat(match[4]);\n\t\tvar h = ((parseFloat(match[1]) % 360) + 360) % 360;\n\t\tvar s = clamp(parseFloat(match[2]), 0, 100);\n\t\tvar l = clamp(parseFloat(match[3]), 0, 100);\n\t\tvar a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);\n\n\t\treturn [h, s, l, a];\n\t}\n\n\treturn null;\n};\n\ncs.get.hwb = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar hwb = /^hwb\\(\\s*([+-]?\\d{0,3}(?:\\.\\d+)?)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?(?=\\.\\d|\\d)(?:0|[1-9]\\d*)?(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)\\s*)?\\)$/;\n\tvar match = string.match(hwb);\n\n\tif (match) {\n\t\tvar alpha = parseFloat(match[4]);\n\t\tvar h = ((parseFloat(match[1]) % 360) + 360) % 360;\n\t\tvar w = clamp(parseFloat(match[2]), 0, 100);\n\t\tvar b = clamp(parseFloat(match[3]), 0, 100);\n\t\tvar a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);\n\t\treturn [h, w, b, a];\n\t}\n\n\treturn null;\n};\n\ncs.to.hex = function () {\n\tvar rgba = swizzle(arguments);\n\n\treturn (\n\t\t'#' +\n\t\thexDouble(rgba[0]) +\n\t\thexDouble(rgba[1]) +\n\t\thexDouble(rgba[2]) +\n\t\t(rgba[3] < 1\n\t\t\t? (hexDouble(Math.round(rgba[3] * 255)))\n\t\t\t: '')\n\t);\n};\n\ncs.to.rgb = function () {\n\tvar rgba = swizzle(arguments);\n\n\treturn rgba.length < 4 || rgba[3] === 1\n\t\t? 'rgb(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ')'\n\t\t: 'rgba(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ', ' + rgba[3] + ')';\n};\n\ncs.to.rgb.percent = function () {\n\tvar rgba = swizzle(arguments);\n\n\tvar r = Math.round(rgba[0] / 255 * 100);\n\tvar g = Math.round(rgba[1] / 255 * 100);\n\tvar b = Math.round(rgba[2] / 255 * 100);\n\n\treturn rgba.length < 4 || rgba[3] === 1\n\t\t? 'rgb(' + r + '%, ' + g + '%, ' + b + '%)'\n\t\t: 'rgba(' + r + '%, ' + g + '%, ' + b + '%, ' + rgba[3] + ')';\n};\n\ncs.to.hsl = function () {\n\tvar hsla = swizzle(arguments);\n\treturn hsla.length < 4 || hsla[3] === 1\n\t\t? 'hsl(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%)'\n\t\t: 'hsla(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%, ' + hsla[3] + ')';\n};\n\n// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax\n// (hwb have alpha optional & 1 is default value)\ncs.to.hwb = function () {\n\tvar hwba = swizzle(arguments);\n\n\tvar a = '';\n\tif (hwba.length >= 4 && hwba[3] !== 1) {\n\t\ta = ', ' + hwba[3];\n\t}\n\n\treturn 'hwb(' + hwba[0] + ', ' + hwba[1] + '%, ' + hwba[2] + '%' + a + ')';\n};\n\ncs.to.keyword = function (rgb) {\n\treturn reverseNames[rgb.slice(0, 3)];\n};\n\n// helpers\nfunction clamp(num, min, max) {\n\treturn Math.min(Math.max(min, num), max);\n}\n\nfunction hexDouble(num) {\n\tvar str = Math.round(num).toString(16).toUpperCase();\n\treturn (str.length < 2) ? '0' + str : str;\n}\n"],"names":["colorNames","require$$0","swizzle","require$$1","hasOwnProperty","reverseNames","name","cs","colorStringModule","string","prefix","val","model","abbr","hex","rgba","per","keyword","rgb","match","i","hexAlpha","i2","clamp","hsl","alpha","h","s","l","hwb","w","b","hexDouble","r","g","hsla","hwba","a","num","min","max","str"],"mappings":";;;AACA,IAAIA,IAAaC,GACbC,IAAUC,GACVC,IAAiB,OAAO,gBAExBC,IAAe,uBAAO,OAAO,IAAI;AAGrC,SAASC,KAAQN;AAChB,EAAII,EAAe,KAAKJ,GAAYM,CAAI,MACvCD,EAAaL,EAAWM,CAAI,CAAC,IAAIA;AAInC,IAAIC,IAAKC,EAAA,UAAiB;AAAA,EACzB,IAAI,CAAE;AAAA,EACN,KAAK,CAAE;AACR;AAEAD,EAAG,MAAM,SAAUE,GAAQ;AAC1B,MAAIC,IAASD,EAAO,UAAU,GAAG,CAAC,EAAE,eAChCE,GACAC;AACJ,UAAQF,GAAM;AAAA,IACb,KAAK;AACJ,MAAAC,IAAMJ,EAAG,IAAI,IAAIE,CAAM,GACvBG,IAAQ;AACR;AAAA,IACD,KAAK;AACJ,MAAAD,IAAMJ,EAAG,IAAI,IAAIE,CAAM,GACvBG,IAAQ;AACR;AAAA,IACD;AACC,MAAAD,IAAMJ,EAAG,IAAI,IAAIE,C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,GAAKD,CAAG,GAAGE,CAAG;AACxC;AAEA,SAASR,EAAUM,GAAK;AACvB,MAAIG,IAAM,KAAK,MAAMH,CAAG,EAAE,SAAS,EAAE,EAAE;AACvC,SAAQG,EAAI,SAAS,IAAK,MAAMA,IAAMA;AACvC;;","x_google_ignoreList":[0]}
package/dist/index51.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index55.cjs"),a=require("./index56.cjs"),i=l.conversions,v=a.route,c={},f=Object.keys(i);function p(n){const t=function(...o){const e=o[0];return e==null?e:(e.length>1&&(o=e),n(o))};return"conversion"in n&&(t.conversion=n.conversion),t}function b(n){const t=function(...o){const e=o[0];if(e==null)return e;e.length>1&&(o=e);const r=n(o);if(typeof r=="object")for(let u=r.length,s=0;s<u;s++)r[s]=Math.round(r[s]);return r};return"conversion"in n&&(t.conversion=n.conversion),t}f.forEach(n=>{c[n]={},Object.defineProperty(c[n],"channels",{value:i[n].channels}),Object.defineProperty(c[n],"labels",{value:i[n].labels});const t=v(n);Object.keys(t).forEach(e=>{const r=t[e];c[n][e]=b(r),c[n][e].raw=p(r)})});var h=c;exports.colorConvert=h;
2
2
  //# sourceMappingURL=index51.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index51.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index51.cjs","sources":["../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js"],"sourcesContent":["const conversions = require('./conversions');\nconst route = require('./route');\n\nconst convert = {};\n\nconst models = Object.keys(conversions);\n\nfunction wrapRaw(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\treturn fn(args);\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nfunction wrapRounded(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\tconst result = fn(args);\n\n\t\t// We're assuming the result is an array here.\n\t\t// see notice in conversions.js; don't use box types\n\t\t// in conversion functions.\n\t\tif (typeof result === 'object') {\n\t\t\tfor (let len = result.length, i = 0; i < len; i++) {\n\t\t\t\tresult[i] = Math.round(result[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nmodels.forEach(fromModel => {\n\tconvert[fromModel] = {};\n\n\tObject.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});\n\tObject.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});\n\n\tconst routes = route(fromModel);\n\tconst routeModels = Object.keys(routes);\n\n\trouteModels.forEach(toModel => {\n\t\tconst fn = routes[toModel];\n\n\t\tconvert[fromModel][toModel] = wrapRounded(fn);\n\t\tconvert[fromModel][toModel].raw = wrapRaw(fn);\n\t});\n});\n\nmodule.exports = convert;\n"],"names":["conversions","require$$0","route","require$$1","convert","models","wrapRaw","fn","wrappedFn","args","arg0","wrapRounded","result","len","i","fromModel","routes","toModel","colorConvert"],"mappings":"4IAAMA,EAAcC,EAAAA,YACdC,EAAQC,EAAAA,MAERC,EAAU,CAAA,EAEVC,EAAS,OAAO,KAAKL,CAAW,EAEtC,SAASM,EAAQC,EAAI,CACpB,MAAMC,EAAY,YAAaC,EAAM,CACpC,MAAMC,EAAOD,EAAK,CAAC,EACnB,OAA0BC,GAAS,KAC3BA,GAGJA,EAAK,OAAS,IACjBD,EAAOC,GAGDH,EAAGE,CAAI,EAChB,EAGC,MAAI,eAAgBF,IACnBC,EAAU,WAAaD,EAAG,YAGpBC,CACR,CAEA,SAASG,EAAYJ,EAAI,CACxB,MAAMC,EAAY,YAAaC,EAAM,CACpC,MAAMC,EAAOD,EAAK,CAAC,EAEnB,GAA0BC,GAAS,KAClC,OAAOA,EAGJA,EAAK,OAAS,IACjBD,EAAOC,GAGR,MAAME,EAASL,EAAGE,CAAI,EAKtB,GAAI,OAAOG,GAAW,SACrB,QAASC,EAAMD,EAAO,OAAQE,EAAI,EAAGA,EAAID,EAAKC,IAC7CF,EAAOE,CAAC,EAAI,KAAK,MAAMF,EAAOE,CAAC,CAAC,EAIlC,OAAOF,CACT,EAGC,MAAI,eAAgBL,IACnBC,EAAU,WAAaD,EAAG,YAGpBC,CACR,CAEAH,EAAO,QAAQU,GAAa,CAC3BX,EAAQW,CAAS,EAAI,GAErB,OAAO,eAAeX,EAAQW,CAAS,EAAG,WAAY,CAAC,MAAOf,EAAYe,CAAS,EAAE,QAAQ,CAAC,EAC9F,OAAO,eAAeX,EAAQW,CAAS,EAAG,SAAU,CAAC,MAAOf,EAAYe,CAAS,EAAE,MAAM,CAAC,EAE1F,MAAMC,EAASd,EAAMa,CAAS,EACV,OAAO,KAAKC,CAAM,EAE1B,QAAQC,GAAW,CAC9B,MAAMV,EAAKS,EAAOC,CAAO,EAEzBb,EAAQW,CAAS,EAAEE,CAAO,EAAIN,EAAYJ,CAAE,EAC5CH,EAAQW,CAAS,EAAEE,CAAO,EAAE,IAAMX,EAAQC,CAAE,CAC9C,CAAE,CACF,CAAC,EAED,IAAAW,EAAiBd","x_google_ignoreList":[0]}
package/dist/index51.js CHANGED
@@ -1,5 +1,37 @@
1
- var e = {};
1
+ import { c as a } from "./index55.js";
2
+ import { r as l } from "./index56.js";
3
+ const i = a, v = l, c = {}, p = Object.keys(i);
4
+ function f(n) {
5
+ const t = function(...o) {
6
+ const e = o[0];
7
+ return e == null ? e : (e.length > 1 && (o = e), n(o));
8
+ };
9
+ return "conversion" in n && (t.conversion = n.conversion), t;
10
+ }
11
+ function h(n) {
12
+ const t = function(...o) {
13
+ const e = o[0];
14
+ if (e == null)
15
+ return e;
16
+ e.length > 1 && (o = e);
17
+ const r = n(o);
18
+ if (typeof r == "object")
19
+ for (let u = r.length, s = 0; s < u; s++)
20
+ r[s] = Math.round(r[s]);
21
+ return r;
22
+ };
23
+ return "conversion" in n && (t.conversion = n.conversion), t;
24
+ }
25
+ p.forEach((n) => {
26
+ c[n] = {}, Object.defineProperty(c[n], "channels", { value: i[n].channels }), Object.defineProperty(c[n], "labels", { value: i[n].labels });
27
+ const t = v(n);
28
+ Object.keys(t).forEach((e) => {
29
+ const r = t[e];
30
+ c[n][e] = h(r), c[n][e].raw = f(r);
31
+ });
32
+ });
33
+ var d = c;
2
34
  export {
3
- e as __exports
35
+ d as c
4
36
  };
5
37
  //# sourceMappingURL=index51.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index51.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index51.js","sources":["../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js"],"sourcesContent":["const conversions = require('./conversions');\nconst route = require('./route');\n\nconst convert = {};\n\nconst models = Object.keys(conversions);\n\nfunction wrapRaw(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\treturn fn(args);\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nfunction wrapRounded(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\tconst result = fn(args);\n\n\t\t// We're assuming the result is an array here.\n\t\t// see notice in conversions.js; don't use box types\n\t\t// in conversion functions.\n\t\tif (typeof result === 'object') {\n\t\t\tfor (let len = result.length, i = 0; i < len; i++) {\n\t\t\t\tresult[i] = Math.round(result[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nmodels.forEach(fromModel => {\n\tconvert[fromModel] = {};\n\n\tObject.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});\n\tObject.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});\n\n\tconst routes = route(fromModel);\n\tconst routeModels = Object.keys(routes);\n\n\trouteModels.forEach(toModel => {\n\t\tconst fn = routes[toModel];\n\n\t\tconvert[fromModel][toModel] = wrapRounded(fn);\n\t\tconvert[fromModel][toModel].raw = wrapRaw(fn);\n\t});\n});\n\nmodule.exports = convert;\n"],"names":["conversions","require$$0","route","require$$1","convert","models","wrapRaw","fn","wrappedFn","args","arg0","wrapRounded","result","len","i","fromModel","routes","toModel","colorConvert"],"mappings":";;AAAA,MAAMA,IAAcC,GACdC,IAAQC,GAERC,IAAU,CAAA,GAEVC,IAAS,OAAO,KAAKL,CAAW;AAEtC,SAASM,EAAQC,GAAI;AACpB,QAAMC,IAAY,YAAaC,GAAM;AACpC,UAAMC,IAAOD,EAAK,CAAC;AACnB,WAA0BC,KAAS,OAC3BA,KAGJA,EAAK,SAAS,MACjBD,IAAOC,IAGDH,EAAGE,CAAI;AAAA,EAChB;AAGC,SAAI,gBAAgBF,MACnBC,EAAU,aAAaD,EAAG,aAGpBC;AACR;AAEA,SAASG,EAAYJ,GAAI;AACxB,QAAMC,IAAY,YAAaC,GAAM;AACpC,UAAMC,IAAOD,EAAK,CAAC;AAEnB,QAA0BC,KAAS;AAClC,aAAOA;AAGR,IAAIA,EAAK,SAAS,MACjBD,IAAOC;AAGR,UAAME,IAASL,EAAGE,CAAI;AAKtB,QAAI,OAAOG,KAAW;AACrB,eAASC,IAAMD,EAAO,QAAQE,IAAI,GAAGA,IAAID,GAAKC;AAC7C,QAAAF,EAAOE,CAAC,IAAI,KAAK,MAAMF,EAAOE,CAAC,CAAC;AAIlC,WAAOF;AAAA,EACT;AAGC,SAAI,gBAAgBL,MACnBC,EAAU,aAAaD,EAAG,aAGpBC;AACR;AAEAH,EAAO,QAAQ,CAAAU,MAAa;AAC3B,EAAAX,EAAQW,CAAS,IAAI,IAErB,OAAO,eAAeX,EAAQW,CAAS,GAAG,YAAY,EAAC,OAAOf,EAAYe,CAAS,EAAE,SAAQ,CAAC,GAC9F,OAAO,eAAeX,EAAQW,CAAS,GAAG,UAAU,EAAC,OAAOf,EAAYe,CAAS,EAAE,OAAM,CAAC;AAE1F,QAAMC,IAASd,EAAMa,CAAS;AAG9B,EAFoB,OAAO,KAAKC,CAAM,EAE1B,QAAQ,CAAAC,MAAW;AAC9B,UAAMV,IAAKS,EAAOC,CAAO;AAEzB,IAAAb,EAAQW,CAAS,EAAEE,CAAO,IAAIN,EAAYJ,CAAE,GAC5CH,EAAQW,CAAS,EAAEE,CAAO,EAAE,MAAMX,EAAQC,CAAE;AAAA,EAC9C,CAAE;AACF,CAAC;AAED,IAAAW,IAAiBd;","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "homepage": "https://inloco.github.io/cosmik",
3
3
  "name": "@incognia/cosmik",
4
- "version": "0.42.0-beta.0",
4
+ "version": "0.42.0-beta.1",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",