@yahoo/uds 0.4.1 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- package/cli/README.md +10 -0
- package/cli/codemods/propsToClass.test.tsx +97 -0
- package/cli/codemods/propsToClass.ts +221 -0
- package/cli/codemods/utils/sizingPropToClassMap.ts +89 -0
- package/cli/commands/codemod/codemod.ts +87 -0
- package/cli/commands/codemod/sizingProps.ts +17 -0
- package/cli/preload.ts +1 -1
- package/cli/utils/getCommandHelp.ts +42 -3
- package/cli/utils/getDirChoices.ts +22 -0
- package/cli/utils/purgeCSS.ts +2 -2
- package/dist/{Image.native-DUAFJodS.d.ts → Image.native-CyJCMvgr.d.cts} +2 -2
- package/dist/{Image.native-B3I4JoH3.d.cts → Image.native-M50LC-q7.d.ts} +2 -2
- package/dist/{VStack-DMb_RGRS.d.ts → VStack-R8SACz7K.d.cts} +1 -1
- package/dist/{VStack-BHlRUsOR.d.cts → VStack-fSE_ityd.d.ts} +1 -1
- package/dist/experimental/index.cjs +1 -1
- package/dist/experimental/index.d.cts +2 -2
- package/dist/experimental/index.d.ts +2 -2
- package/dist/experimental/index.js +1 -1
- package/dist/experimental/index.native.cjs +1 -1
- package/dist/experimental/index.native.d.cts +3 -3
- package/dist/experimental/index.native.d.ts +3 -3
- package/dist/experimental/index.native.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +43 -16
- package/dist/index.d.ts +43 -16
- package/dist/index.js +1 -1
- package/dist/{index.native-Bm-r2Dpa.d.cts → index.native-BstClKbg.d.cts} +1 -1
- package/dist/{index.native-BTfOSmUx.d.ts → index.native-DtdUtCNu.d.ts} +1 -1
- package/dist/index.native.cjs +1 -1
- package/dist/index.native.d.cts +75 -9
- package/dist/index.native.d.ts +75 -9
- package/dist/index.native.js +1 -1
- package/dist/styles/globals.css +1 -0
- package/dist/{tailwindPlugin.d.ts → tailwind/plugin.d.cts} +1 -1
- package/dist/{tailwindPlugin.d.cts → tailwind/plugin.d.ts} +1 -1
- package/dist/tokens/index.d.cts +15 -3
- package/dist/tokens/index.d.ts +15 -3
- package/dist/tokens/index.native.d.cts +2 -2
- package/dist/tokens/index.native.d.ts +2 -2
- package/dist/tokens/parseTokens.d.cts +1 -1
- package/dist/tokens/parseTokens.d.ts +1 -1
- package/dist/{types-COiuE8XK.d.ts → types-BN1X8QcB.d.cts} +3 -23
- package/dist/{types-COiuE8XK.d.cts → types-BN1X8QcB.d.ts} +3 -23
- package/dist/types-DRP5tWZG.d.cts +375 -0
- package/dist/types-DRP5tWZG.d.ts +375 -0
- package/package.json +21 -39
- package/dist/styles/fonts.css +0 -1
- package/dist/styles/fonts.d.cts +0 -2
- package/dist/styles/fonts.d.ts +0 -2
- package/dist/styles/globals.d.cts +0 -2
- package/dist/styles/globals.d.ts +0 -2
- package/dist/styles/toast.d.cts +0 -2
- package/dist/styles/toast.d.ts +0 -2
- package/dist/tailwindPurge/utils.cjs +0 -1
- package/dist/tailwindPurge/utils.d.cts +0 -25
- package/dist/tailwindPurge/utils.d.ts +0 -25
- package/dist/tailwindPurge/utils.js +0 -1
- package/dist/tailwindPurge.cjs +0 -4
- package/dist/tailwindPurge.d.cts +0 -20
- package/dist/tailwindPurge.d.ts +0 -20
- package/dist/tailwindPurge.js +0 -4
- package/dist/tokens/parseTokens.native.cjs +0 -1
- package/dist/tokens/parseTokens.native.d.cts +0 -399
- package/dist/tokens/parseTokens.native.d.ts +0 -399
- package/dist/tokens/parseTokens.native.js +0 -1
- package/dist/types-FO65RM-W.d.cts +0 -38
- package/dist/types-FO65RM-W.d.ts +0 -38
- /package/dist/{tailwindPlugin.cjs → tailwind/plugin.cjs} +0 -0
- /package/dist/{tailwindPlugin.js → tailwind/plugin.js} +0 -0
package/dist/tailwindPurge.cjs
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
"use strict";var a=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var l=(o,e)=>{for(var t in e)a(o,t,{get:e[t],enumerable:!0})},p=(o,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of d(e))!s.call(o,r)&&r!==t&&a(o,r,{get:()=>e[r],enumerable:!(n=i(e,r))||n.enumerable});return o};var c=o=>p(a({},"__esModule",{value:!0}),o);var g={};l(g,{componentToTwClasses:()=>f,componentToVariants:()=>x,componentsDependencies:()=>h,variantToTailwindClass:()=>b,variantsList:()=>m});module.exports=c(g);var b={color:"text-accent text-alert text-black text-brand text-positive text-warning text-white text-transparent text-muted text-on-color text-primary text-secondary text-tertiary",placeholderColor:"placeholder:text-accent placeholder:text-alert placeholder:text-black placeholder:text-brand placeholder:text-positive placeholder:text-warning placeholder:text-white placeholder:text-transparent placeholder:text-muted placeholder:text-on-color placeholder:text-primary placeholder:text-secondary placeholder:text-tertiary",fontFamily:"font-icons font-sans font-sans-beta font-sans-condensed font-serif-text font-serif-display font-display1 font-display2 font-display3 font-title1 font-title2 font-title3 font-title4 font-headline1 font-body1 font-label1 font-label2 font-caption1 font-caption2 font-legal1",fontSize:"font-size-display1 font-size-display2 font-size-display3 font-size-title1 font-size-title2 font-size-title3 font-size-title4 font-size-headline1 font-size-body1 font-size-label1 font-size-label2 font-size-caption1 font-size-caption2 font-size-legal1",fontWeight:"font-weight-thin font-weight-extralight font-weight-light font-weight-regular font-weight-medium font-weight-semibold font-weight-bold font-weight-extrabold font-weight-black font-weight-display1 font-weight-display2 font-weight-display3 font-weight-title1 font-weight-title2 font-weight-title3 font-weight-title4 font-weight-headline1 font-weight-body1 font-weight-label1 font-weight-label2 font-weight-caption1 font-weight-caption2 font-weight-legal1",lineHeight:"leading-display1 leading-display2 leading-display3 leading-title1 leading-title2 leading-title3 leading-title4 leading-headline1 leading-body1 leading-label1 leading-label2 leading-caption1 leading-caption2 leading-legal1",textAlign:"text-center text-justify text-start text-end",textTransform:"case-display1 case-display2 case-display3 case-title1 case-title2 case-title3 case-title4 case-headline1 case-body1 case-label1 case-label2 case-caption1 case-caption2 case-legal1 normal-case uppercase lowercase capitalize",spacing:"p-1 p-2 p-3 p-4 p-5 p-6 p-7 p-8 p-9 p-10 p-11 p-12 p-13 p-14 p-[0px]",spacingHorizontal:"px-1 px-2 px-3 px-4 px-5 px-6 px-7 px-8 px-9 px-10 px-11 px-12 px-13 px-14 px-none",spacingVertical:"py-1 py-2 py-3 py-4 py-5 py-6 py-7 py-8 py-9 py-10 py-11 py-12 py-13 py-14 py-none",spacingBottom:"pb-1 pb-2 pb-3 pb-4 pb-5 pb-6 pb-7 pb-8 pb-9 pb-10 pb-11 pb-12 pb-13 pb-14 pb-none",spacingEnd:"pe-1 pe-2 pe-3 pe-4 pe-5 pe-6 pe-7 pe-8 pe-9 pe-10 pe-11 pe-12 pe-13 pe-14 pe-none",spacingStart:"ps-1 ps-2 ps-3 ps-4 ps-5 ps-6 ps-7 ps-8 ps-9 ps-10 ps-11 ps-12 ps-13 ps-14 ps-none",spacingTop:"pt-1 pt-2 pt-3 pt-4 pt-5 pt-6 pt-7 pt-8 pt-9 pt-10 pt-11 pt-12 pt-13 pt-14 pt-none",offset:"-m-1 -m-2 -m-3 -m-4 -m-5 -m-6 -m-7 -m-8 -m-9 -m-10 -m-11 -m-12 -m-13 -m-14 -m-none",offsetVertical:"-my-1 -my-2 -my-3 -my-4 -my-5 -my-6 -my-7 -my-8 -my-9 -my-10 -my-11 -my-12 -my-13 -my-14 -my-none",offsetHorizontal:"-mx-1 -mx-2 -mx-3 -mx-4 -mx-5 -mx-6 -mx-7 -mx-8 -mx-9 -mx-10 -mx-11 -mx-12 -mx-13 -mx-14 -mx-none",offsetBottom:"-mb-1 -mb-2 -mb-3 -mb-4 -mb-5 -mb-6 -mb-7 -mb-8 -mb-9 -mb-10 -mb-11 -mb-12 -mb-13 -mb-14 -mb-none",offsetEnd:"-me-1 -me-2 -me-3 -me-4 -me-5 -me-6 -me-7 -me-8 -me-9 -me-10 -me-11 -me-12 -me-13 -me-14 -me-none",offsetStart:"-ms-1 -ms-2 -ms-3 -ms-4 -ms-5 -ms-6 -ms-7 -ms-8 -ms-9 -ms-10 -ms-11 -ms-12 -ms-13 -ms-14 -ms-none",offsetTop:"-mt-1 -mt-2 -mt-3 -mt-4 -mt-5 -mt-6 -mt-7 -mt-8 -mt-9 -mt-10 -mt-11 -mt-12 -mt-13 -mt-14 -mt-none",columnGap:"gap-x-1 gap-x-2 gap-x-3 gap-x-4 gap-x-5 gap-x-6 gap-x-7 gap-x-8 gap-x-9 gap-x-10 gap-x-11 gap-x-12 gap-x-13 gap-x-14 gap-x-none",rowGap:"gap-y-1 gap-y-2 gap-y-3 gap-y-4 gap-y-5 gap-y-6 gap-y-7 gap-y-8 gap-y-9 gap-y-10 gap-y-11 gap-y-12 gap-y-13 gap-y-14 gap-y-none",backgroundColor:"bg-accent bg-alert bg-black bg-brand bg-positive bg-warning bg-white bg-primary bg-secondary bg-transparent",borderColor:"border-accent border-alert border-black border-brand border-positive border-warning border-white border-transparent border-muted border-primary border-secondary border-tertiary",borderColorOnActive:"active:border-accent active:border-alert active:border-black active:border-brand active:border-positive active:border-warning active:border-white active:border-transparent active:border-muted active:border-primary active:border-secondary active:border-tertiary",borderColorOnFocus:"focus:border-accent focus:border-alert focus:border-black focus:border-brand focus:border-positive focus:border-warning focus:border-white focus:border-transparent focus:border-muted focus:border-primary focus:border-secondary focus:border-tertiary",borderColorOnHover:"hover:border-accent hover:border-alert hover:border-black hover:border-brand hover:border-positive hover:border-warning hover:border-white hover:border-transparent hover:border-muted hover:border-primary hover:border-secondary hover:border-tertiary",borderColorOnChecked:"data-[state=checked]:border-accent data-[state=checked]:border-alert data-[state=checked]:border-black data-[state=checked]:border-brand data-[state=checked]:border-positive data-[state=checked]:border-warning data-[state=checked]:border-white data-[state=checked]:border-transparent data-[state=checked]:border-muted data-[state=checked]:border-primary data-[state=checked]:border-secondary data-[state=checked]:border-tertiary",borderStartColor:"border-s-accent border-s-alert border-s-black border-s-brand border-s-positive border-s-warning border-s-white border-s-transparent border-s-muted border-s-primary border-s-secondary border-s-tertiary",borderEndColor:"border-e-accent border-e-alert border-e-black border-e-brand border-e-positive border-e-warning border-e-white border-e-transparent border-e-muted border-e-primary border-e-secondary border-e-tertiary",borderBottomColor:"border-b-accent border-b-alert border-b-black border-b-brand border-b-positive border-b-warning border-b-white border-b-transparent border-b-muted border-b-primary border-b-secondary border-b-tertiary",borderTopColor:"border-t-accent border-t-alert border-t-black border-t-brand border-t-positive border-t-warning border-t-white border-t-transparent border-t-muted border-t-primary border-t-secondary border-t-tertiary",borderRadius:"rounded-none rounded-xs rounded-sm rounded-md rounded-lg rounded-xl rounded-full",borderTopStartRadius:"rounded-ss-none rounded-ss-xs rounded-ss-sm rounded-ss-md rounded-ss-lg rounded-ss-xl rounded-ss-full",borderTopEndRadius:"rounded-se-none rounded-se-xs rounded-se-sm rounded-se-md rounded-se-lg rounded-se-xl rounded-se-full",borderBottomStartRadius:"rounded-es-none rounded-es-xs rounded-es-sm rounded-es-md rounded-es-lg rounded-es-xl rounded-es-full",borderBottomEndRadius:"rounded-ee-none rounded-ee-xs rounded-ee-sm rounded-ee-md rounded-ee-lg rounded-ee-xl rounded-ee-full",borderWidth:"border-none border-thin border-medium border-thick",borderVerticalWidth:"border-y-none border-y-thin border-y-medium border-y-thick",borderHorizontalWidth:"border-x-none border-x-thin border-x-medium border-x-thick",borderStartWidth:"border-s-none border-s-thin border-s-medium border-s-thick",borderEndWidth:"border-e-none border-e-thin border-e-medium border-e-thick",borderTopWidth:"border-t-none border-t-thin border-t-medium border-t-thick",borderBottomWidth:"border-b-none border-b-thin border-b-medium border-b-thick",height:"h-auto h-full h-screen h-min h-max h-fit h-1/2 h-1/3 h-2/3 h-1/4 h-2/4 h-3/4 h-1/5 h-2/5 h-3/5 h-4/5 h-1/6 h-2/6 h-3/6 h-4/6 h-5/6",minHeight:"min-h-full min-h-min min-h-max min-h-fit min-h-screen",maxHeight:"max-h-full max-h-min max-h-max max-h-fit max-h-screen max-h-[0px]",width:"w-auto w-full w-screen w-min w-max w-fit w-1/2 w-1/3 w-2/3 w-1/4 w-2/4 w-3/4 w-1/5 w-2/5 w-3/5 w-4/5 w-1/6 w-2/6 w-3/6 w-4/6 w-5/6 w-1/12 w-2/12 w-3/12 w-4/12 w-5/12 w-6/12 w-7/12 w-8/12 w-9/12 w-10/12 w-11/12",minWidth:"min-w-full min-w-min min-w-max min-w-fit min-w-screen",maxWidth:"max-w-[0px] max-w-full max-w-min max-w-max max-w-fit",avatarSize:"avatarSize-s avatarSize-m avatarSize-l",iconSize:"iconSize-sm leading-none iconSize-md leading-none iconSize-lg leading-none",alignContent:"content-start content-end content-center content-stretch content-between content-around",alignItems:"items-start items-end items-center items-stretch items-baseline",alignSelf:"self-auto self-start self-end self-center self-stretch self-baseline",flex:"flex-1 flex-auto flex-initial flex-none",flexDirection:"flex-row flex-col flex-row-reverse flex-col-reverse",flexGrow:"grow-0 grow grow-[2] grow-[3]",flexShrink:"shrink-0 shrink",flexWrap:"flex-wrap flex-wrap-reverse flex-nowrap",justifyContent:"justify-start justify-end justify-center justify-between justify-around justify-evenly",flexBasis:"basis-[min-content]",display:"block inline-block inline flex inline-flex table inline-table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row-group table-row flow-root grid contents",overflow:"overflow-auto overflow-hidden overflow-clip overflow-visible overflow-scroll",overflowX:"overflow-x-auto overflow-x-hidden overflow-x-clip overflow-x-visible overflow-x-scroll",overflowY:"overflow-y-auto overflow-y-hidden overflow-y-clip overflow-y-visible overflow-y-scroll",position:"static fixed absolute relative sticky",contentFit:"object-contain object-cover object-fill object-none object-scale-down",colorMode:"uds-color-mode-dark uds-color-mode-light",scaleMode:"uds-scale-mode-xsmall uds-scale-mode-small uds-scale-mode-medium uds-scale-mode-large uds-scale-mode-xlarge uds-scale-mode-xxxlarge uds-scale-mode-xxlarge"},m=["color","placeholderColor","fontFamily","fontSize","fontWeight","lineHeight","textAlign","textTransform","spacing","spacingHorizontal","spacingVertical","spacingBottom","spacingEnd","spacingStart","spacingTop","offset","offsetVertical","offsetHorizontal","offsetBottom","offsetEnd","offsetStart","offsetTop","columnGap","rowGap","backgroundColor","borderColor","borderColorOnActive","borderColorOnFocus","borderColorOnHover","borderColorOnChecked","borderStartColor","borderEndColor","borderBottomColor","borderTopColor","borderRadius","borderTopStartRadius","borderTopEndRadius","borderBottomStartRadius","borderBottomEndRadius","borderWidth","borderVerticalWidth","borderHorizontalWidth","borderStartWidth","borderEndWidth","borderTopWidth","borderBottomWidth","height","minHeight","maxHeight","width","minWidth","maxWidth","avatarSize","iconSize","alignContent","alignItems","alignSelf","flex","flexDirection","flexGrow","flexShrink","flexWrap","justifyContent","flexBasis","display","overflow","overflowX","overflowY","position","contentFit","colorMode","scaleMode"],x={Box:["display","flexDirection","rowGap","columnGap","borderColor","borderRadius","overflow"],HStack:["alignItems","justifyContent"],Icon:["color","iconSize"],Image:[],Pressable:["display","flexDirection","alignItems","justifyContent","spacingVertical","spacingHorizontal","borderRadius","width","columnGap","minWidth","backgroundColor","borderColor","borderBottomWidth","spacingBottom","spacingTop"],Text:["color","fontSize","fontFamily","fontWeight","lineHeight","textTransform","textAlign","display","spacing","borderBottomColor","borderBottomWidth","spacingStart"],VStack:["overflow","maxHeight","spacingHorizontal","minHeight","alignItems","borderRadius","backgroundColor","spacingVertical","position","height","spacing","width"],Accordion:["spacingHorizontal"],Avatar:[],Button:["spacingEnd","spacingVertical"],Chip:[],Dropdown:[],DropdownItem:[],DropdownItemPressable:[],DropdownItems:["overflow"],DropdownTrigger:[],IconButton:["color"],Modal:[],ModalDismiss:[],ModalHeader:[],Popover:[],PopoverAnchor:[],PopoverArrow:[],PopoverDescription:[],PopoverDisclosure:[],PopoverDisclosureArrow:[],PopoverDismiss:[],PopoverHeading:[],PopoverProvider:[],Spinner:[],Tab:[],TabList:[],TabPanel:[],Table:[],Tabs:[],TextInput:["backgroundColor","borderColor","borderWidth","borderRadius","color","placeholderColor","spacingVertical","spacingHorizontal"],TextInputGroup:[],TextInputLabel:[],ToastContainer:[]},f={Box:"container flex border",HStack:"container ",Icon:"flex border outline",Image:"flex border",Pressable:"flex border",Text:"container flex border",VStack:"container ",Accordion:"flex hidden transition-\\[max-height\\] duration-500 ease-in-out hover\\:bg-secondary\\/80:hover",Avatar:"",Button:"",Chip:"inline-flex",Dropdown:"",DropdownItem:"",DropdownItemPressable:"flex cursor-default hover\\:bg-gray-2:hover",DropdownItems:"max-h-\\[312px\\] min-w-\\[220px\\] \\!stroke-muted \\!stroke-1 shadow-md",DropdownTrigger:"flex",IconButton:"h-\\[36px\\] h-\\[48px\\] h-\\[64px\\] w-\\[36px\\] w-\\[48px\\] w-\\[64px\\] leading-\\[0px\\]",Modal:"fixed inset-8 top-\\[250px\\] z-50 mx-auto hidden w-\\[600px\\] origin-center scale-95 opacity-0 shadow-md backdrop-blur-0 transition duration-150 data-\\[enter\\]\\:scale-100[data-enter] data-\\[enter\\]\\:opacity-100[data-enter] data-\\[enter\\]\\:backdrop-blur-sm[data-enter]",ModalDismiss:"fixed inset-8 top-\\[250px\\] z-50 mx-auto hidden w-\\[600px\\] origin-center scale-95 opacity-0 shadow-md backdrop-blur-0 transition duration-150 data-\\[enter\\]\\:scale-100[data-enter] data-\\[enter\\]\\:opacity-100[data-enter] data-\\[enter\\]\\:backdrop-blur-sm[data-enter]",ModalHeader:"fixed inset-8 top-\\[250px\\] z-50 mx-auto hidden w-\\[600px\\] origin-center scale-95 opacity-0 shadow-md backdrop-blur-0 transition duration-150 data-\\[enter\\]\\:scale-100[data-enter] data-\\[enter\\]\\:opacity-100[data-enter] data-\\[enter\\]\\:backdrop-blur-sm[data-enter]",Popover:"",PopoverAnchor:"",PopoverArrow:"",PopoverDescription:"",PopoverDisclosure:"",PopoverDisclosureArrow:"",PopoverDismiss:"",PopoverHeading:"",PopoverProvider:"",Spinner:"sr-only absolute relative left-0 right-0 animate-spin self-center fill-accent text-gray-3",Tab:"flex",TabList:"flex",TabPanel:"flex",Table:"block inline flex table table-cell table-header-group table-row-group table-row grid hidden",Tabs:"flex",TextInput:"",TextInputGroup:"",TextInputLabel:"",ToastContainer:"relative flex hidden cursor-pointer transition"},h={Box:[],HStack:["Box"],Icon:[],Image:[],Pressable:[],Text:[],VStack:["Box"],Accordion:["Icon","Pressable","Text","VStack"],Avatar:[],Button:["Icon","Pressable","Text"],Chip:["Icon","Pressable","Text"],Dropdown:["PopoverProvider"],DropdownItem:["DropdownItemPressable","Icon","Text","VStack"],DropdownItemPressable:["Pressable"],DropdownItems:["Popover","PopoverArrow","VStack"],DropdownTrigger:["PopoverDisclosure","Pressable"],IconButton:["Icon","Pressable"],Modal:["Button","HStack","Text","VStack"],ModalDismiss:["Button","HStack","Text","VStack"],ModalHeader:["Button","HStack","Text","VStack"],Popover:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverAnchor:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverArrow:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverDescription:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverDisclosure:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverDisclosureArrow:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverDismiss:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverHeading:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverProvider:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],Spinner:[],Tab:["Tab","TabList","TabPanel","Icon","Pressable","Text"],TabList:["Tab","TabList","TabPanel","Icon","Pressable","Text"],TabPanel:["Tab","TabList","TabPanel","Icon","Pressable","Text"],Table:["Box","Text"],Tabs:["Tab","TabList","TabPanel","Icon","Pressable","Text"],TextInput:[],TextInputGroup:["TextInput","TextInputLabel","VStack"],TextInputLabel:["Text"],ToastContainer:["ToastContainer","IconButton"]};0&&(module.exports={componentToTwClasses,componentToVariants,componentsDependencies,variantToTailwindClass,variantsList});
|
2
|
-
//! This file is generated by purgeCSS.ts from @yahoo/uds
|
3
|
-
//! Do not edit directly
|
4
|
-
//! If there is issue with this file please report to #ask-uds
|
package/dist/tailwindPurge.d.cts
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
type ComponentToVariants = {
|
2
|
-
[key: string]: string[];
|
3
|
-
};
|
4
|
-
type VariantToTailwindClass = {
|
5
|
-
[key: string]: string;
|
6
|
-
};
|
7
|
-
type VariantsList = string[];
|
8
|
-
type ComponentDependencies = {
|
9
|
-
[key: string]: string[];
|
10
|
-
};
|
11
|
-
type ComponentToTwClasses = {
|
12
|
-
[key: string]: string;
|
13
|
-
};
|
14
|
-
declare const variantToTailwindClass: VariantToTailwindClass;
|
15
|
-
declare const variantsList: VariantsList;
|
16
|
-
declare const componentToVariants: ComponentToVariants;
|
17
|
-
declare const componentToTwClasses: ComponentToTwClasses;
|
18
|
-
declare const componentsDependencies: ComponentDependencies;
|
19
|
-
|
20
|
-
export { type ComponentDependencies, type ComponentToTwClasses, type ComponentToVariants, type VariantToTailwindClass, type VariantsList, componentToTwClasses, componentToVariants, componentsDependencies, variantToTailwindClass, variantsList };
|
package/dist/tailwindPurge.d.ts
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
type ComponentToVariants = {
|
2
|
-
[key: string]: string[];
|
3
|
-
};
|
4
|
-
type VariantToTailwindClass = {
|
5
|
-
[key: string]: string;
|
6
|
-
};
|
7
|
-
type VariantsList = string[];
|
8
|
-
type ComponentDependencies = {
|
9
|
-
[key: string]: string[];
|
10
|
-
};
|
11
|
-
type ComponentToTwClasses = {
|
12
|
-
[key: string]: string;
|
13
|
-
};
|
14
|
-
declare const variantToTailwindClass: VariantToTailwindClass;
|
15
|
-
declare const variantsList: VariantsList;
|
16
|
-
declare const componentToVariants: ComponentToVariants;
|
17
|
-
declare const componentToTwClasses: ComponentToTwClasses;
|
18
|
-
declare const componentsDependencies: ComponentDependencies;
|
19
|
-
|
20
|
-
export { type ComponentDependencies, type ComponentToTwClasses, type ComponentToVariants, type VariantToTailwindClass, type VariantsList, componentToTwClasses, componentToVariants, componentsDependencies, variantToTailwindClass, variantsList };
|
package/dist/tailwindPurge.js
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
var e={color:"text-accent text-alert text-black text-brand text-positive text-warning text-white text-transparent text-muted text-on-color text-primary text-secondary text-tertiary",placeholderColor:"placeholder:text-accent placeholder:text-alert placeholder:text-black placeholder:text-brand placeholder:text-positive placeholder:text-warning placeholder:text-white placeholder:text-transparent placeholder:text-muted placeholder:text-on-color placeholder:text-primary placeholder:text-secondary placeholder:text-tertiary",fontFamily:"font-icons font-sans font-sans-beta font-sans-condensed font-serif-text font-serif-display font-display1 font-display2 font-display3 font-title1 font-title2 font-title3 font-title4 font-headline1 font-body1 font-label1 font-label2 font-caption1 font-caption2 font-legal1",fontSize:"font-size-display1 font-size-display2 font-size-display3 font-size-title1 font-size-title2 font-size-title3 font-size-title4 font-size-headline1 font-size-body1 font-size-label1 font-size-label2 font-size-caption1 font-size-caption2 font-size-legal1",fontWeight:"font-weight-thin font-weight-extralight font-weight-light font-weight-regular font-weight-medium font-weight-semibold font-weight-bold font-weight-extrabold font-weight-black font-weight-display1 font-weight-display2 font-weight-display3 font-weight-title1 font-weight-title2 font-weight-title3 font-weight-title4 font-weight-headline1 font-weight-body1 font-weight-label1 font-weight-label2 font-weight-caption1 font-weight-caption2 font-weight-legal1",lineHeight:"leading-display1 leading-display2 leading-display3 leading-title1 leading-title2 leading-title3 leading-title4 leading-headline1 leading-body1 leading-label1 leading-label2 leading-caption1 leading-caption2 leading-legal1",textAlign:"text-center text-justify text-start text-end",textTransform:"case-display1 case-display2 case-display3 case-title1 case-title2 case-title3 case-title4 case-headline1 case-body1 case-label1 case-label2 case-caption1 case-caption2 case-legal1 normal-case uppercase lowercase capitalize",spacing:"p-1 p-2 p-3 p-4 p-5 p-6 p-7 p-8 p-9 p-10 p-11 p-12 p-13 p-14 p-[0px]",spacingHorizontal:"px-1 px-2 px-3 px-4 px-5 px-6 px-7 px-8 px-9 px-10 px-11 px-12 px-13 px-14 px-none",spacingVertical:"py-1 py-2 py-3 py-4 py-5 py-6 py-7 py-8 py-9 py-10 py-11 py-12 py-13 py-14 py-none",spacingBottom:"pb-1 pb-2 pb-3 pb-4 pb-5 pb-6 pb-7 pb-8 pb-9 pb-10 pb-11 pb-12 pb-13 pb-14 pb-none",spacingEnd:"pe-1 pe-2 pe-3 pe-4 pe-5 pe-6 pe-7 pe-8 pe-9 pe-10 pe-11 pe-12 pe-13 pe-14 pe-none",spacingStart:"ps-1 ps-2 ps-3 ps-4 ps-5 ps-6 ps-7 ps-8 ps-9 ps-10 ps-11 ps-12 ps-13 ps-14 ps-none",spacingTop:"pt-1 pt-2 pt-3 pt-4 pt-5 pt-6 pt-7 pt-8 pt-9 pt-10 pt-11 pt-12 pt-13 pt-14 pt-none",offset:"-m-1 -m-2 -m-3 -m-4 -m-5 -m-6 -m-7 -m-8 -m-9 -m-10 -m-11 -m-12 -m-13 -m-14 -m-none",offsetVertical:"-my-1 -my-2 -my-3 -my-4 -my-5 -my-6 -my-7 -my-8 -my-9 -my-10 -my-11 -my-12 -my-13 -my-14 -my-none",offsetHorizontal:"-mx-1 -mx-2 -mx-3 -mx-4 -mx-5 -mx-6 -mx-7 -mx-8 -mx-9 -mx-10 -mx-11 -mx-12 -mx-13 -mx-14 -mx-none",offsetBottom:"-mb-1 -mb-2 -mb-3 -mb-4 -mb-5 -mb-6 -mb-7 -mb-8 -mb-9 -mb-10 -mb-11 -mb-12 -mb-13 -mb-14 -mb-none",offsetEnd:"-me-1 -me-2 -me-3 -me-4 -me-5 -me-6 -me-7 -me-8 -me-9 -me-10 -me-11 -me-12 -me-13 -me-14 -me-none",offsetStart:"-ms-1 -ms-2 -ms-3 -ms-4 -ms-5 -ms-6 -ms-7 -ms-8 -ms-9 -ms-10 -ms-11 -ms-12 -ms-13 -ms-14 -ms-none",offsetTop:"-mt-1 -mt-2 -mt-3 -mt-4 -mt-5 -mt-6 -mt-7 -mt-8 -mt-9 -mt-10 -mt-11 -mt-12 -mt-13 -mt-14 -mt-none",columnGap:"gap-x-1 gap-x-2 gap-x-3 gap-x-4 gap-x-5 gap-x-6 gap-x-7 gap-x-8 gap-x-9 gap-x-10 gap-x-11 gap-x-12 gap-x-13 gap-x-14 gap-x-none",rowGap:"gap-y-1 gap-y-2 gap-y-3 gap-y-4 gap-y-5 gap-y-6 gap-y-7 gap-y-8 gap-y-9 gap-y-10 gap-y-11 gap-y-12 gap-y-13 gap-y-14 gap-y-none",backgroundColor:"bg-accent bg-alert bg-black bg-brand bg-positive bg-warning bg-white bg-primary bg-secondary bg-transparent",borderColor:"border-accent border-alert border-black border-brand border-positive border-warning border-white border-transparent border-muted border-primary border-secondary border-tertiary",borderColorOnActive:"active:border-accent active:border-alert active:border-black active:border-brand active:border-positive active:border-warning active:border-white active:border-transparent active:border-muted active:border-primary active:border-secondary active:border-tertiary",borderColorOnFocus:"focus:border-accent focus:border-alert focus:border-black focus:border-brand focus:border-positive focus:border-warning focus:border-white focus:border-transparent focus:border-muted focus:border-primary focus:border-secondary focus:border-tertiary",borderColorOnHover:"hover:border-accent hover:border-alert hover:border-black hover:border-brand hover:border-positive hover:border-warning hover:border-white hover:border-transparent hover:border-muted hover:border-primary hover:border-secondary hover:border-tertiary",borderColorOnChecked:"data-[state=checked]:border-accent data-[state=checked]:border-alert data-[state=checked]:border-black data-[state=checked]:border-brand data-[state=checked]:border-positive data-[state=checked]:border-warning data-[state=checked]:border-white data-[state=checked]:border-transparent data-[state=checked]:border-muted data-[state=checked]:border-primary data-[state=checked]:border-secondary data-[state=checked]:border-tertiary",borderStartColor:"border-s-accent border-s-alert border-s-black border-s-brand border-s-positive border-s-warning border-s-white border-s-transparent border-s-muted border-s-primary border-s-secondary border-s-tertiary",borderEndColor:"border-e-accent border-e-alert border-e-black border-e-brand border-e-positive border-e-warning border-e-white border-e-transparent border-e-muted border-e-primary border-e-secondary border-e-tertiary",borderBottomColor:"border-b-accent border-b-alert border-b-black border-b-brand border-b-positive border-b-warning border-b-white border-b-transparent border-b-muted border-b-primary border-b-secondary border-b-tertiary",borderTopColor:"border-t-accent border-t-alert border-t-black border-t-brand border-t-positive border-t-warning border-t-white border-t-transparent border-t-muted border-t-primary border-t-secondary border-t-tertiary",borderRadius:"rounded-none rounded-xs rounded-sm rounded-md rounded-lg rounded-xl rounded-full",borderTopStartRadius:"rounded-ss-none rounded-ss-xs rounded-ss-sm rounded-ss-md rounded-ss-lg rounded-ss-xl rounded-ss-full",borderTopEndRadius:"rounded-se-none rounded-se-xs rounded-se-sm rounded-se-md rounded-se-lg rounded-se-xl rounded-se-full",borderBottomStartRadius:"rounded-es-none rounded-es-xs rounded-es-sm rounded-es-md rounded-es-lg rounded-es-xl rounded-es-full",borderBottomEndRadius:"rounded-ee-none rounded-ee-xs rounded-ee-sm rounded-ee-md rounded-ee-lg rounded-ee-xl rounded-ee-full",borderWidth:"border-none border-thin border-medium border-thick",borderVerticalWidth:"border-y-none border-y-thin border-y-medium border-y-thick",borderHorizontalWidth:"border-x-none border-x-thin border-x-medium border-x-thick",borderStartWidth:"border-s-none border-s-thin border-s-medium border-s-thick",borderEndWidth:"border-e-none border-e-thin border-e-medium border-e-thick",borderTopWidth:"border-t-none border-t-thin border-t-medium border-t-thick",borderBottomWidth:"border-b-none border-b-thin border-b-medium border-b-thick",height:"h-auto h-full h-screen h-min h-max h-fit h-1/2 h-1/3 h-2/3 h-1/4 h-2/4 h-3/4 h-1/5 h-2/5 h-3/5 h-4/5 h-1/6 h-2/6 h-3/6 h-4/6 h-5/6",minHeight:"min-h-full min-h-min min-h-max min-h-fit min-h-screen",maxHeight:"max-h-full max-h-min max-h-max max-h-fit max-h-screen max-h-[0px]",width:"w-auto w-full w-screen w-min w-max w-fit w-1/2 w-1/3 w-2/3 w-1/4 w-2/4 w-3/4 w-1/5 w-2/5 w-3/5 w-4/5 w-1/6 w-2/6 w-3/6 w-4/6 w-5/6 w-1/12 w-2/12 w-3/12 w-4/12 w-5/12 w-6/12 w-7/12 w-8/12 w-9/12 w-10/12 w-11/12",minWidth:"min-w-full min-w-min min-w-max min-w-fit min-w-screen",maxWidth:"max-w-[0px] max-w-full max-w-min max-w-max max-w-fit",avatarSize:"avatarSize-s avatarSize-m avatarSize-l",iconSize:"iconSize-sm leading-none iconSize-md leading-none iconSize-lg leading-none",alignContent:"content-start content-end content-center content-stretch content-between content-around",alignItems:"items-start items-end items-center items-stretch items-baseline",alignSelf:"self-auto self-start self-end self-center self-stretch self-baseline",flex:"flex-1 flex-auto flex-initial flex-none",flexDirection:"flex-row flex-col flex-row-reverse flex-col-reverse",flexGrow:"grow-0 grow grow-[2] grow-[3]",flexShrink:"shrink-0 shrink",flexWrap:"flex-wrap flex-wrap-reverse flex-nowrap",justifyContent:"justify-start justify-end justify-center justify-between justify-around justify-evenly",flexBasis:"basis-[min-content]",display:"block inline-block inline flex inline-flex table inline-table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row-group table-row flow-root grid contents",overflow:"overflow-auto overflow-hidden overflow-clip overflow-visible overflow-scroll",overflowX:"overflow-x-auto overflow-x-hidden overflow-x-clip overflow-x-visible overflow-x-scroll",overflowY:"overflow-y-auto overflow-y-hidden overflow-y-clip overflow-y-visible overflow-y-scroll",position:"static fixed absolute relative sticky",contentFit:"object-contain object-cover object-fill object-none object-scale-down",colorMode:"uds-color-mode-dark uds-color-mode-light",scaleMode:"uds-scale-mode-xsmall uds-scale-mode-small uds-scale-mode-medium uds-scale-mode-large uds-scale-mode-xlarge uds-scale-mode-xxxlarge uds-scale-mode-xxlarge"},o=["color","placeholderColor","fontFamily","fontSize","fontWeight","lineHeight","textAlign","textTransform","spacing","spacingHorizontal","spacingVertical","spacingBottom","spacingEnd","spacingStart","spacingTop","offset","offsetVertical","offsetHorizontal","offsetBottom","offsetEnd","offsetStart","offsetTop","columnGap","rowGap","backgroundColor","borderColor","borderColorOnActive","borderColorOnFocus","borderColorOnHover","borderColorOnChecked","borderStartColor","borderEndColor","borderBottomColor","borderTopColor","borderRadius","borderTopStartRadius","borderTopEndRadius","borderBottomStartRadius","borderBottomEndRadius","borderWidth","borderVerticalWidth","borderHorizontalWidth","borderStartWidth","borderEndWidth","borderTopWidth","borderBottomWidth","height","minHeight","maxHeight","width","minWidth","maxWidth","avatarSize","iconSize","alignContent","alignItems","alignSelf","flex","flexDirection","flexGrow","flexShrink","flexWrap","justifyContent","flexBasis","display","overflow","overflowX","overflowY","position","contentFit","colorMode","scaleMode"],r={Box:["display","flexDirection","rowGap","columnGap","borderColor","borderRadius","overflow"],HStack:["alignItems","justifyContent"],Icon:["color","iconSize"],Image:[],Pressable:["display","flexDirection","alignItems","justifyContent","spacingVertical","spacingHorizontal","borderRadius","width","columnGap","minWidth","backgroundColor","borderColor","borderBottomWidth","spacingBottom","spacingTop"],Text:["color","fontSize","fontFamily","fontWeight","lineHeight","textTransform","textAlign","display","spacing","borderBottomColor","borderBottomWidth","spacingStart"],VStack:["overflow","maxHeight","spacingHorizontal","minHeight","alignItems","borderRadius","backgroundColor","spacingVertical","position","height","spacing","width"],Accordion:["spacingHorizontal"],Avatar:[],Button:["spacingEnd","spacingVertical"],Chip:[],Dropdown:[],DropdownItem:[],DropdownItemPressable:[],DropdownItems:["overflow"],DropdownTrigger:[],IconButton:["color"],Modal:[],ModalDismiss:[],ModalHeader:[],Popover:[],PopoverAnchor:[],PopoverArrow:[],PopoverDescription:[],PopoverDisclosure:[],PopoverDisclosureArrow:[],PopoverDismiss:[],PopoverHeading:[],PopoverProvider:[],Spinner:[],Tab:[],TabList:[],TabPanel:[],Table:[],Tabs:[],TextInput:["backgroundColor","borderColor","borderWidth","borderRadius","color","placeholderColor","spacingVertical","spacingHorizontal"],TextInputGroup:[],TextInputLabel:[],ToastContainer:[]},t={Box:"container flex border",HStack:"container ",Icon:"flex border outline",Image:"flex border",Pressable:"flex border",Text:"container flex border",VStack:"container ",Accordion:"flex hidden transition-\\[max-height\\] duration-500 ease-in-out hover\\:bg-secondary\\/80:hover",Avatar:"",Button:"",Chip:"inline-flex",Dropdown:"",DropdownItem:"",DropdownItemPressable:"flex cursor-default hover\\:bg-gray-2:hover",DropdownItems:"max-h-\\[312px\\] min-w-\\[220px\\] \\!stroke-muted \\!stroke-1 shadow-md",DropdownTrigger:"flex",IconButton:"h-\\[36px\\] h-\\[48px\\] h-\\[64px\\] w-\\[36px\\] w-\\[48px\\] w-\\[64px\\] leading-\\[0px\\]",Modal:"fixed inset-8 top-\\[250px\\] z-50 mx-auto hidden w-\\[600px\\] origin-center scale-95 opacity-0 shadow-md backdrop-blur-0 transition duration-150 data-\\[enter\\]\\:scale-100[data-enter] data-\\[enter\\]\\:opacity-100[data-enter] data-\\[enter\\]\\:backdrop-blur-sm[data-enter]",ModalDismiss:"fixed inset-8 top-\\[250px\\] z-50 mx-auto hidden w-\\[600px\\] origin-center scale-95 opacity-0 shadow-md backdrop-blur-0 transition duration-150 data-\\[enter\\]\\:scale-100[data-enter] data-\\[enter\\]\\:opacity-100[data-enter] data-\\[enter\\]\\:backdrop-blur-sm[data-enter]",ModalHeader:"fixed inset-8 top-\\[250px\\] z-50 mx-auto hidden w-\\[600px\\] origin-center scale-95 opacity-0 shadow-md backdrop-blur-0 transition duration-150 data-\\[enter\\]\\:scale-100[data-enter] data-\\[enter\\]\\:opacity-100[data-enter] data-\\[enter\\]\\:backdrop-blur-sm[data-enter]",Popover:"",PopoverAnchor:"",PopoverArrow:"",PopoverDescription:"",PopoverDisclosure:"",PopoverDisclosureArrow:"",PopoverDismiss:"",PopoverHeading:"",PopoverProvider:"",Spinner:"sr-only absolute relative left-0 right-0 animate-spin self-center fill-accent text-gray-3",Tab:"flex",TabList:"flex",TabPanel:"flex",Table:"block inline flex table table-cell table-header-group table-row-group table-row grid hidden",Tabs:"flex",TextInput:"",TextInputGroup:"",TextInputLabel:"",ToastContainer:"relative flex hidden cursor-pointer transition"},a={Box:[],HStack:["Box"],Icon:[],Image:[],Pressable:[],Text:[],VStack:["Box"],Accordion:["Icon","Pressable","Text","VStack"],Avatar:[],Button:["Icon","Pressable","Text"],Chip:["Icon","Pressable","Text"],Dropdown:["PopoverProvider"],DropdownItem:["DropdownItemPressable","Icon","Text","VStack"],DropdownItemPressable:["Pressable"],DropdownItems:["Popover","PopoverArrow","VStack"],DropdownTrigger:["PopoverDisclosure","Pressable"],IconButton:["Icon","Pressable"],Modal:["Button","HStack","Text","VStack"],ModalDismiss:["Button","HStack","Text","VStack"],ModalHeader:["Button","HStack","Text","VStack"],Popover:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverAnchor:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverArrow:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverDescription:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverDisclosure:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverDisclosureArrow:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverDismiss:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverHeading:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverProvider:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],Spinner:[],Tab:["Tab","TabList","TabPanel","Icon","Pressable","Text"],TabList:["Tab","TabList","TabPanel","Icon","Pressable","Text"],TabPanel:["Tab","TabList","TabPanel","Icon","Pressable","Text"],Table:["Box","Text"],Tabs:["Tab","TabList","TabPanel","Icon","Pressable","Text"],TextInput:[],TextInputGroup:["TextInput","TextInputLabel","VStack"],TextInputLabel:["Text"],ToastContainer:["ToastContainer","IconButton"]};export{t as componentToTwClasses,r as componentToVariants,a as componentsDependencies,e as variantToTailwindClass,o as variantsList};
|
2
|
-
//! This file is generated by purgeCSS.ts from @yahoo/uds
|
3
|
-
//! Do not edit directly
|
4
|
-
//! If there is issue with this file please report to #ask-uds
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";var i=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var d=(e,o)=>{for(var r in o)i(e,r,{get:o[r],enumerable:!0})},b=(e,o,r,t)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of C(o))!T.call(e,n)&&n!==r&&i(e,n,{get:()=>o[n],enumerable:!(t=g(o,n))||t.enumerable});return e};var m=e=>b(i({},"__esModule",{value:!0}),e);var A={};d(A,{parseTokens:()=>M});module.exports=m(A);function l(e,o){return Object.keys(e).reduce((r,t,n)=>(r[t]=o(e[t],t,n),r),{})}function p({spectrum:e,palette:o}){let r=l(e,n=>l(n,s=>`rgb(${s.replaceAll(" ",",")})`)),t=l(o,n=>Object.entries(n).reduce((s,[y,{hue:k,step:u,opacity:a}])=>{let f=e[k][u],c=a?`rgb(${f.replaceAll(" ",",")} / ${a})`:`rgb(${f.replaceAll(" ",",")})`;return{...s,[y]:c}},{}));return{spectrum:r,palette:t}}function M({colorMode:e,...o}){return{...o,colorMode:{light:p(e.light),dark:p(e.dark)}}}0&&(module.exports={parseTokens});
|
@@ -1,399 +0,0 @@
|
|
1
|
-
import { U as UniversalTokensConfig, C as ColorMode, a as ColorsConfig } from '../types-COiuE8XK.cjs';
|
2
|
-
import 'react';
|
3
|
-
|
4
|
-
declare function transformColors({ spectrum, palette }: ColorsConfig): {
|
5
|
-
spectrum: {
|
6
|
-
purple: {
|
7
|
-
9: string;
|
8
|
-
0: string;
|
9
|
-
1: string;
|
10
|
-
2: string;
|
11
|
-
3: string;
|
12
|
-
4: string;
|
13
|
-
5: string;
|
14
|
-
6: string;
|
15
|
-
7: string;
|
16
|
-
8: string;
|
17
|
-
10: string;
|
18
|
-
11: string;
|
19
|
-
12: string;
|
20
|
-
13: string;
|
21
|
-
14: string;
|
22
|
-
15: string;
|
23
|
-
};
|
24
|
-
gray: {
|
25
|
-
9: string;
|
26
|
-
0: string;
|
27
|
-
1: string;
|
28
|
-
2: string;
|
29
|
-
3: string;
|
30
|
-
4: string;
|
31
|
-
5: string;
|
32
|
-
6: string;
|
33
|
-
7: string;
|
34
|
-
8: string;
|
35
|
-
10: string;
|
36
|
-
11: string;
|
37
|
-
12: string;
|
38
|
-
13: string;
|
39
|
-
14: string;
|
40
|
-
15: string;
|
41
|
-
};
|
42
|
-
indigo: {
|
43
|
-
9: string;
|
44
|
-
0: string;
|
45
|
-
1: string;
|
46
|
-
2: string;
|
47
|
-
3: string;
|
48
|
-
4: string;
|
49
|
-
5: string;
|
50
|
-
6: string;
|
51
|
-
7: string;
|
52
|
-
8: string;
|
53
|
-
10: string;
|
54
|
-
11: string;
|
55
|
-
12: string;
|
56
|
-
13: string;
|
57
|
-
14: string;
|
58
|
-
15: string;
|
59
|
-
};
|
60
|
-
blue: {
|
61
|
-
9: string;
|
62
|
-
0: string;
|
63
|
-
1: string;
|
64
|
-
2: string;
|
65
|
-
3: string;
|
66
|
-
4: string;
|
67
|
-
5: string;
|
68
|
-
6: string;
|
69
|
-
7: string;
|
70
|
-
8: string;
|
71
|
-
10: string;
|
72
|
-
11: string;
|
73
|
-
12: string;
|
74
|
-
13: string;
|
75
|
-
14: string;
|
76
|
-
15: string;
|
77
|
-
};
|
78
|
-
cyan: {
|
79
|
-
9: string;
|
80
|
-
0: string;
|
81
|
-
1: string;
|
82
|
-
2: string;
|
83
|
-
3: string;
|
84
|
-
4: string;
|
85
|
-
5: string;
|
86
|
-
6: string;
|
87
|
-
7: string;
|
88
|
-
8: string;
|
89
|
-
10: string;
|
90
|
-
11: string;
|
91
|
-
12: string;
|
92
|
-
13: string;
|
93
|
-
14: string;
|
94
|
-
15: string;
|
95
|
-
};
|
96
|
-
teal: {
|
97
|
-
9: string;
|
98
|
-
0: string;
|
99
|
-
1: string;
|
100
|
-
2: string;
|
101
|
-
3: string;
|
102
|
-
4: string;
|
103
|
-
5: string;
|
104
|
-
6: string;
|
105
|
-
7: string;
|
106
|
-
8: string;
|
107
|
-
10: string;
|
108
|
-
11: string;
|
109
|
-
12: string;
|
110
|
-
13: string;
|
111
|
-
14: string;
|
112
|
-
15: string;
|
113
|
-
};
|
114
|
-
mint: {
|
115
|
-
9: string;
|
116
|
-
0: string;
|
117
|
-
1: string;
|
118
|
-
2: string;
|
119
|
-
3: string;
|
120
|
-
4: string;
|
121
|
-
5: string;
|
122
|
-
6: string;
|
123
|
-
7: string;
|
124
|
-
8: string;
|
125
|
-
10: string;
|
126
|
-
11: string;
|
127
|
-
12: string;
|
128
|
-
13: string;
|
129
|
-
14: string;
|
130
|
-
15: string;
|
131
|
-
};
|
132
|
-
green: {
|
133
|
-
9: string;
|
134
|
-
0: string;
|
135
|
-
1: string;
|
136
|
-
2: string;
|
137
|
-
3: string;
|
138
|
-
4: string;
|
139
|
-
5: string;
|
140
|
-
6: string;
|
141
|
-
7: string;
|
142
|
-
8: string;
|
143
|
-
10: string;
|
144
|
-
11: string;
|
145
|
-
12: string;
|
146
|
-
13: string;
|
147
|
-
14: string;
|
148
|
-
15: string;
|
149
|
-
};
|
150
|
-
lime: {
|
151
|
-
9: string;
|
152
|
-
0: string;
|
153
|
-
1: string;
|
154
|
-
2: string;
|
155
|
-
3: string;
|
156
|
-
4: string;
|
157
|
-
5: string;
|
158
|
-
6: string;
|
159
|
-
7: string;
|
160
|
-
8: string;
|
161
|
-
10: string;
|
162
|
-
11: string;
|
163
|
-
12: string;
|
164
|
-
13: string;
|
165
|
-
14: string;
|
166
|
-
15: string;
|
167
|
-
};
|
168
|
-
citron: {
|
169
|
-
9: string;
|
170
|
-
0: string;
|
171
|
-
1: string;
|
172
|
-
2: string;
|
173
|
-
3: string;
|
174
|
-
4: string;
|
175
|
-
5: string;
|
176
|
-
6: string;
|
177
|
-
7: string;
|
178
|
-
8: string;
|
179
|
-
10: string;
|
180
|
-
11: string;
|
181
|
-
12: string;
|
182
|
-
13: string;
|
183
|
-
14: string;
|
184
|
-
15: string;
|
185
|
-
};
|
186
|
-
yellow: {
|
187
|
-
9: string;
|
188
|
-
0: string;
|
189
|
-
1: string;
|
190
|
-
2: string;
|
191
|
-
3: string;
|
192
|
-
4: string;
|
193
|
-
5: string;
|
194
|
-
6: string;
|
195
|
-
7: string;
|
196
|
-
8: string;
|
197
|
-
10: string;
|
198
|
-
11: string;
|
199
|
-
12: string;
|
200
|
-
13: string;
|
201
|
-
14: string;
|
202
|
-
15: string;
|
203
|
-
};
|
204
|
-
brown: {
|
205
|
-
9: string;
|
206
|
-
0: string;
|
207
|
-
1: string;
|
208
|
-
2: string;
|
209
|
-
3: string;
|
210
|
-
4: string;
|
211
|
-
5: string;
|
212
|
-
6: string;
|
213
|
-
7: string;
|
214
|
-
8: string;
|
215
|
-
10: string;
|
216
|
-
11: string;
|
217
|
-
12: string;
|
218
|
-
13: string;
|
219
|
-
14: string;
|
220
|
-
15: string;
|
221
|
-
};
|
222
|
-
nude: {
|
223
|
-
9: string;
|
224
|
-
0: string;
|
225
|
-
1: string;
|
226
|
-
2: string;
|
227
|
-
3: string;
|
228
|
-
4: string;
|
229
|
-
5: string;
|
230
|
-
6: string;
|
231
|
-
7: string;
|
232
|
-
8: string;
|
233
|
-
10: string;
|
234
|
-
11: string;
|
235
|
-
12: string;
|
236
|
-
13: string;
|
237
|
-
14: string;
|
238
|
-
15: string;
|
239
|
-
};
|
240
|
-
orange: {
|
241
|
-
9: string;
|
242
|
-
0: string;
|
243
|
-
1: string;
|
244
|
-
2: string;
|
245
|
-
3: string;
|
246
|
-
4: string;
|
247
|
-
5: string;
|
248
|
-
6: string;
|
249
|
-
7: string;
|
250
|
-
8: string;
|
251
|
-
10: string;
|
252
|
-
11: string;
|
253
|
-
12: string;
|
254
|
-
13: string;
|
255
|
-
14: string;
|
256
|
-
15: string;
|
257
|
-
};
|
258
|
-
sunset: {
|
259
|
-
9: string;
|
260
|
-
0: string;
|
261
|
-
1: string;
|
262
|
-
2: string;
|
263
|
-
3: string;
|
264
|
-
4: string;
|
265
|
-
5: string;
|
266
|
-
6: string;
|
267
|
-
7: string;
|
268
|
-
8: string;
|
269
|
-
10: string;
|
270
|
-
11: string;
|
271
|
-
12: string;
|
272
|
-
13: string;
|
273
|
-
14: string;
|
274
|
-
15: string;
|
275
|
-
};
|
276
|
-
red: {
|
277
|
-
9: string;
|
278
|
-
0: string;
|
279
|
-
1: string;
|
280
|
-
2: string;
|
281
|
-
3: string;
|
282
|
-
4: string;
|
283
|
-
5: string;
|
284
|
-
6: string;
|
285
|
-
7: string;
|
286
|
-
8: string;
|
287
|
-
10: string;
|
288
|
-
11: string;
|
289
|
-
12: string;
|
290
|
-
13: string;
|
291
|
-
14: string;
|
292
|
-
15: string;
|
293
|
-
};
|
294
|
-
rose: {
|
295
|
-
9: string;
|
296
|
-
0: string;
|
297
|
-
1: string;
|
298
|
-
2: string;
|
299
|
-
3: string;
|
300
|
-
4: string;
|
301
|
-
5: string;
|
302
|
-
6: string;
|
303
|
-
7: string;
|
304
|
-
8: string;
|
305
|
-
10: string;
|
306
|
-
11: string;
|
307
|
-
12: string;
|
308
|
-
13: string;
|
309
|
-
14: string;
|
310
|
-
15: string;
|
311
|
-
};
|
312
|
-
pink: {
|
313
|
-
9: string;
|
314
|
-
0: string;
|
315
|
-
1: string;
|
316
|
-
2: string;
|
317
|
-
3: string;
|
318
|
-
4: string;
|
319
|
-
5: string;
|
320
|
-
6: string;
|
321
|
-
7: string;
|
322
|
-
8: string;
|
323
|
-
10: string;
|
324
|
-
11: string;
|
325
|
-
12: string;
|
326
|
-
13: string;
|
327
|
-
14: string;
|
328
|
-
15: string;
|
329
|
-
};
|
330
|
-
magenta: {
|
331
|
-
9: string;
|
332
|
-
0: string;
|
333
|
-
1: string;
|
334
|
-
2: string;
|
335
|
-
3: string;
|
336
|
-
4: string;
|
337
|
-
5: string;
|
338
|
-
6: string;
|
339
|
-
7: string;
|
340
|
-
8: string;
|
341
|
-
10: string;
|
342
|
-
11: string;
|
343
|
-
12: string;
|
344
|
-
13: string;
|
345
|
-
14: string;
|
346
|
-
15: string;
|
347
|
-
};
|
348
|
-
carbon: {
|
349
|
-
9: string;
|
350
|
-
0: string;
|
351
|
-
1: string;
|
352
|
-
2: string;
|
353
|
-
3: string;
|
354
|
-
4: string;
|
355
|
-
5: string;
|
356
|
-
6: string;
|
357
|
-
7: string;
|
358
|
-
8: string;
|
359
|
-
10: string;
|
360
|
-
11: string;
|
361
|
-
12: string;
|
362
|
-
13: string;
|
363
|
-
14: string;
|
364
|
-
15: string;
|
365
|
-
};
|
366
|
-
};
|
367
|
-
palette: {
|
368
|
-
core: {
|
369
|
-
accent: string;
|
370
|
-
alert: string;
|
371
|
-
brand: string;
|
372
|
-
positive: string;
|
373
|
-
warning: string;
|
374
|
-
};
|
375
|
-
background: {
|
376
|
-
primary: string;
|
377
|
-
secondary: string;
|
378
|
-
};
|
379
|
-
foreground: {
|
380
|
-
primary: string;
|
381
|
-
secondary: string;
|
382
|
-
tertiary: string;
|
383
|
-
muted: string;
|
384
|
-
"on-color": string;
|
385
|
-
};
|
386
|
-
line: {
|
387
|
-
primary: string;
|
388
|
-
secondary: string;
|
389
|
-
tertiary: string;
|
390
|
-
muted: string;
|
391
|
-
};
|
392
|
-
};
|
393
|
-
};
|
394
|
-
type MobileTokens = Omit<UniversalTokensConfig, 'colorMode'> & {
|
395
|
-
colorMode: Record<ColorMode, ReturnType<typeof transformColors>>;
|
396
|
-
};
|
397
|
-
declare function parseTokens({ colorMode, ...config }: UniversalTokensConfig): MobileTokens;
|
398
|
-
|
399
|
-
export { parseTokens };
|