@yahoo/uds 3.21.0 → 3.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/bin/uds-darwin-arm64-baseline +0 -0
- package/cli/bin/uds-darwin-x64 +0 -0
- package/cli/bin/uds-linux-arm64 +0 -0
- package/cli/bin/uds-linux-x64-baseline +0 -0
- package/dist/analytics/server.cjs +1 -1
- package/dist/analytics/server.js +1 -1
- package/dist/chunk-3WKHS4HP.cjs +1 -1
- package/dist/chunk-44EYIAVP.cjs +1 -1
- package/dist/chunk-6OYKLY27.js +1 -1
- package/dist/chunk-BCGLIYVJ.js +1 -1
- package/dist/chunk-CO72B6KB.js +1 -1
- package/dist/chunk-DJUNEWZ7.js +1 -1
- package/dist/chunk-DOU22WQU.js +1 -1
- package/dist/chunk-DR45EMIP.cjs +1 -1
- package/dist/chunk-EWJ3J526.js +1 -1
- package/dist/chunk-HLPRIDDR.js +1 -1
- package/dist/chunk-J7PUOUXC.cjs +1 -1
- package/dist/chunk-KF3ZAI5G.js +1 -1
- package/dist/chunk-LMKMOCXO.js +1 -1
- package/dist/chunk-NAVOLTJQ.cjs +1 -1
- package/dist/chunk-NUEZVMWZ.cjs +1 -1
- package/dist/chunk-NW3RYPC2.cjs +1 -1
- package/dist/chunk-NYQHJWTA.cjs +1 -1
- package/dist/chunk-QJFI4SGB.cjs +1 -1
- package/dist/chunk-QRYRSFZY.js +1 -1
- package/dist/chunk-S5UKKXRV.js +1 -1
- package/dist/chunk-VEV6WWFB.cjs +1 -1
- package/dist/chunk-ZMUVDUDE.cjs +1 -1
- package/dist/client/Menu.cjs +2 -2
- package/dist/client/Menu.js +2 -2
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.js +1 -1
- package/dist/experimental/client/SwitchV2.cjs +2 -1
- package/dist/experimental/client/SwitchV2.js +2 -1
- package/dist/experimental/client/index.cjs +1 -1
- package/dist/experimental/client/index.js +1 -1
- package/dist/experimental/index.cjs +1 -1
- package/dist/experimental/index.js +1 -1
- package/dist/fixtures.d.cts +1 -1
- package/dist/fixtures.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.cjs +1 -1
- package/dist/tailwind/plugin.js +1 -1
- package/dist/tailwind/tsMorph.cjs +1 -1
- package/dist/tailwind/tsMorph.js +1 -1
- package/dist/tokens/automation/configs.cjs +1 -1
- package/dist/tokens/automation/configs.js +1 -1
- package/package.json +12 -12
- package/dist/Input-CjSSpDxo.d.ts +0 -42
- package/dist/Input-j8aXgNl5.d.cts +0 -42
- package/dist/Pressable-BuGapAWr.d.cts +0 -44
- package/dist/Pressable-DkqJ7djj.d.ts +0 -44
- package/dist/VStack-BPdz1Irb.d.ts +0 -112
- package/dist/VStack-I7A-h7cx.d.cts +0 -112
- package/dist/chunk-25EGJJTF.js +0 -1
- package/dist/chunk-3KD7Z4VU.cjs +0 -1
- package/dist/chunk-3LMD4WN2.cjs +0 -1
- package/dist/chunk-FB24G54Q.js +0 -1
- package/dist/chunk-FE2NSEV3.cjs +0 -1
- package/dist/chunk-FSOKVNOU.cjs +0 -1
- package/dist/chunk-HVO44Q6L.js +0 -3
- package/dist/chunk-LLOJ3DFF.js +0 -2
- package/dist/chunk-MAVEX7MK.js +0 -1
- package/dist/chunk-MY5QUB5N.js +0 -1
- package/dist/chunk-NOZDL36X.cjs +0 -3
- package/dist/chunk-W2Y5UCIX.cjs +0 -1
- package/dist/chunk-Y6EOG5IR.cjs +0 -2
- package/dist/chunk-Z2ZVRADJ.js +0 -2
- package/dist/index-C39loIM9.d.cts +0 -243
- package/dist/index-CGhLQEyB.d.ts +0 -243
- package/dist/types-D113cJbW.d.cts +0 -10465
- package/dist/types-D113cJbW.d.ts +0 -10465
@@ -1 +1 @@
|
|
1
|
-
import{createSubComponentConfig as e,createVariantConfigWithProperties as a,createLayerConfig as r,createConfigurableProperty as o,createVariantConfigWithComponentStates as l,createComponentStates as t}from"../../chunk-6OYKLY27.js";import{borderRadii as s,spectrumColors as i,linePaletteColors as n,alwaysPaletteAliases as d,backgroundPaletteColors as p,foregroundPaletteColors as u,iconSizes as c,textVariants as y,borderWidths as b,spacingAliases as m,shadowVariantsWithInvert as f,shadowVariants as v,textDecorationLines as h}from"@yahoo/uds/fixtures";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var x={label:"Avatar",description:"An avatar is a visual element that represents a user or entity, usually shown as a circle or square with an image, icon, or initials. It's commonly used in profiles, comments, or messages to help identify people.",variants:{size:a({label:"Size",description:"These sizes will apply across all variants",isConfigurable:!0,default:"md",options:["xs","sm","md","lg","xl"],layers:{root:r({label:"root",properties:{height:o({name:"height",label:"Height",typeOfFixture:["spacingAliases"],values:[m],defaults:{xs:"6",sm:"7",md:"10",lg:"12",xl:"16"}}),width:o({name:"width",label:"Width",typeOfFixture:["spacingAliases"],values:[m],defaults:{xs:"6",sm:"7",md:"10",lg:"12",xl:"16"}}),borderWidth:o({name:"borderWidth",label:"Border width",typeOfFixture:["borderWidths"],values:[b],defaults:{xs:"thin",sm:"thin",md:"thin",lg:"thin",xl:"thin"}}),textVariant:o({name:"textVariant",label:"Text variant",typeOfFixture:["textVariants"],values:[y],defaults:{xs:"caption1",sm:"caption2",md:"headline1",lg:"title4",xl:"title3"}})}}),icon:r({label:"icon",properties:{iconSize:o({name:"iconSize",label:"Icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{xs:"sm",sm:"sm",md:"md",lg:"lg",xl:"lg"}})}})}})},subComponents:{text:e({label:"Text",description:"",variants:{variant:a({label:"Variant",description:"Shapes and sizes defined here will be applied across the entire family of Avatar (Icon, Image, Text)",isConfigurable:!0,options:["primary","secondary"],default:"primary",layers:{root:r({label:"root",properties:{color:o({name:"color",label:"text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{primary:"brand",secondary:"secondary"}}),backgroundColor:o({name:"backgroundColor",label:"background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],defaults:{primary:"primary",secondary:"secondary"}}),borderColor:o({name:"borderColor",label:"border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],defaults:{primary:"brand",secondary:"secondary"}}),borderRadius:o({name:"borderRadius",label:"Border radius",typeOfFixture:["borderRadii"],values:[s],defaults:{primary:"full",secondary:"sm"}})}})}})}}),image:e({label:"Image",description:"",variants:{variant:a({label:"Variant",description:"Shapes and sizes defined here will be applied across the entire family of Avatar (Icon, Image, Text)",isConfigurable:!0,options:["primary","secondary"],default:"primary",layers:{root:r({label:"root",properties:{borderColor:o({name:"borderColor",label:"border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],defaults:{primary:"muted",secondary:"muted"}}),borderRadius:o({name:"borderRadius",label:"border radius",typeOfFixture:["borderRadii"],values:[s],defaults:{primary:"full",secondary:"sm"}})}})}})}}),icon:e({label:"Icon",description:"",variants:{variant:a({label:"Variant",description:"Shapes and sizes defined here will be applied across the entire family of Avatar (Icon, Image, Text)",isConfigurable:!0,options:["primary","secondary"],default:"primary",layers:{root:r({label:"root",properties:{color:o({name:"color",label:"icon color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{primary:"muted",secondary:"muted"}}),backgroundColor:o({name:"backgroundColor",label:"background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],defaults:{primary:"secondary",secondary:"secondary"}}),borderColor:o({name:"borderColor",label:"border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],defaults:{primary:"primary",secondary:"primary"}}),borderRadius:o({name:"borderRadius",label:"border radius",typeOfFixture:["borderRadii"],values:[s],defaults:{primary:"full",secondary:"sm"}})}})}})}})}};var g={label:"Badge",description:"Component for demo purposes and testing the automation",variants:{size:a({label:"Size",description:"These sizes will apply across all variants",isConfigurable:!0,default:"md",options:["xs","sm","md","lg"],layers:{root:r({label:"root",properties:{spacingHorizontal:o({name:"spacingHorizontal",label:"Spacing horizontal",typeOfFixture:["spacingAliases"],values:[m],defaults:{xs:"2",sm:"4",md:"6",lg:"8"}}),spacingVertical:o({name:"spacingVertical",label:"Spacing vertical",typeOfFixture:["spacingAliases"],values:[m],defaults:{xs:"0.5",sm:"1",md:"1.5",lg:"2"}}),gap:o({name:"gap",label:"Gap",typeOfFixture:["spacingAliases"],values:[m],defaults:{xs:"2",sm:"4",md:"6",lg:"8"}}),textVariant:o({name:"textVariant",label:"Text variant",typeOfFixture:["textVariants"],values:[y],defaults:{xs:"label4",sm:"label3",md:"label2",lg:"label1"}})}}),icon:r({label:"icon",properties:{size:o({name:"iconSize",label:"Icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{xs:"sm",sm:"sm",md:"md",lg:"lg"}})}})}}),variant:a({label:"Variants",description:"",isConfigurable:!0,default:"primary",options:["primary","secondary","brand","brand-secondary","alert","alert-secondary","warning","warning-secondary","positive","positive-secondary","info","info-secondary"],layers:{root:r({label:"root",properties:{backgroundColor:o({name:"backgroundColor",label:"Background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary",alert:"alert","alert-secondary":"alert-secondary",warning:"warning","warning-secondary":"warning-secondary",positive:"positive","positive-secondary":"positive-secondary",info:"info","info-secondary":"info-secondary"}}),color:o({name:"color",label:"Text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary",alert:"alert","alert-secondary":"alert-secondary",warning:"warning","warning-secondary":"warning-secondary",positive:"positive","positive-secondary":"positive-secondary",info:"info","info-secondary":"info-secondary"}}),borderWidth:o({name:"borderWidth",label:"Border width",typeOfFixture:["borderWidths"],values:[b],defaults:{primary:"thin",secondary:"none",brand:"none","brand-secondary":"none",alert:"none","alert-secondary":"none",warning:"none","warning-secondary":"none",positive:"none","positive-secondary":"none",info:"none","info-secondary":"none"}}),borderColor:o({name:"borderColor",label:"border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary",alert:"alert","alert-secondary":"alert-secondary",warning:"warning","warning-secondary":"warning-secondary",positive:"positive","positive-secondary":"positive-secondary",info:"info","info-secondary":"info-secondary"}}),borderRadius:o({name:"borderRadius",label:"Border radius",typeOfFixture:["borderRadii"],values:[s],defaults:{primary:"sm",secondary:"sm",brand:"sm","brand-secondary":"sm",alert:"sm","alert-secondary":"sm",warning:"sm","warning-secondary":"sm",positive:"sm","positive-secondary":"sm",info:"sm","info-secondary":"sm"}}),shadow:o({name:"shadow",label:"Drop shadow",typeOfFixture:["shadowVariants"],supportsCustom:!0,values:[v],defaults:{primary:"2xl",secondary:"xl",brand:"md","brand-secondary":"xl",alert:"xl","alert-secondary":"xl",warning:"xl","warning-secondary":"xl",positive:"xl","positive-secondary":"xl",info:"xl","info-secondary":"sm"}}),insetShadow:o({name:"insetShadow",label:"Inset shadow",typeOfFixture:["shadowVariantsWithInvert"],supportsCustom:!0,values:[f],defaults:{primary:"2xl-invert",secondary:"md-invert",brand:"md","brand-secondary":"xl",alert:"xl","alert-secondary":"xl-invert",warning:"xl","warning-secondary":"xl",positive:"xl","positive-secondary":"xl",info:"xl","info-secondary":"sm"}})}}),icon:r({label:"icon",properties:{color:o({name:"color",label:"Icon color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary",alert:"alert","alert-secondary":"alert-secondary",warning:"warning","warning-secondary":"warning-secondary",positive:"positive","positive-secondary":"positive-secondary",info:"info","info-secondary":"info-secondary"}})}})}})}};var C={label:"Checkbox",description:"A checkbox is a small, interactive element that lets users select one or more options from a list.",variants:{size:a({label:"size",isConfigurable:!0,options:["sm","md"],default:"md",description:"",layers:{root:r({label:"root",properties:{gap:o({name:"gap",label:"Gap",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"2",md:"2.5"}}),textVariant:o({name:"textVariant",label:"Text variant",typeOfFixture:["textVariants"],values:[y],defaults:{sm:"label4",md:"label2"}})}}),checkbox:r({label:"checkbox",properties:{borderWidth:o({name:"borderWidth",label:"Checkbox border width",typeOfFixture:["borderWidths"],values:[b],defaults:{sm:"thin",md:"thin"}}),height:o({name:"height",label:"Checkbox height",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"4",md:"5"}}),width:o({name:"width",label:"Checkbox width",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"4",md:"5"}})}})}}),variant:l({label:"variant",description:"",isConfigurable:!0,options:["primary","secondary","alert","alert-secondary"],default:"primary",componentStates:{value:t({label:"value",options:["checked","unchecked","indeterminate"],layers:{root:r({label:"root",properties:{color:o({name:"color",label:"Label color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","disabled"],defaults:{primary:"primary",secondary:"primary",alert:"primary","alert-secondary":"primary"}})}}),checkbox:r({label:"checkbox",properties:{borderColor:o({name:"borderColor",label:"border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],pseudoStates:["hover","pressed","disabled"],defaults:{primary:"tertiary",secondary:"tertiary",alert:"tertiary","alert-secondary":"tertiary"}}),backgroundColor:o({name:"backgroundColor",label:"Checkbox background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],pseudoStates:["hover","pressed","disabled"],defaults:{primary:"secondary",secondary:"secondary",alert:"secondary","alert-secondary":"secondary"}}),shadow:o({name:"shadow",label:"Drop shadow",typeOfFixture:["shadowVariants"],supportsCustom:!0,values:[v],pseudoStates:["hover","pressed","disabled"],defaults:{primary:"none",secondary:"none",alert:"md","alert-secondary":"none"}}),insetShadow:o({name:"insetShadow",label:"Inset shadow",typeOfFixture:["shadowVariantsWithInvert"],supportsCustom:!0,values:[f],pseudoStates:["hover","pressed","disabled"],defaults:{primary:"2xl-invert",secondary:"md-invert",alert:"md","alert-secondary":"xl"}})}}),checkboxIcon:r({label:"checkboxIcon",properties:{color:o({name:"color",label:"Icon color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","disabled"],defaults:{primary:"primary",secondary:"primary",alert:"primary","alert-secondary":"primary"}})}})}})}})}};var w={label:"Chip",description:"A chip is a small, interactive element that presents information, actions, or selections in a compact form — commonly used for tags, filters, or user input.",subComponents:{toggle:e({label:"Toggle",description:"",variants:{variant:l({label:"Variant",description:"",isConfigurable:!0,default:"primary",options:["primary","secondary","brand","brand-secondary"],componentStates:{active:t({label:"active",options:["on","off"],layers:{root:r({label:"root",properties:{backgroundColor:o({name:"backgroundColor",label:"Background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",brand:"secondary","brand-secondary":"secondary"}}),color:o({name:"color",label:"Text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",brand:"secondary","brand-secondary":"secondary"}}),borderWidth:o({name:"borderWidth",label:"Border width",typeOfFixture:["borderWidths"],pseudoStates:["hover","pressed"],values:[b],defaults:{primary:"thin",secondary:"none",brand:"none","brand-secondary":"none"}}),borderColor:o({name:"borderColor",label:"Border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary"}}),shadow:o({name:"shadow",label:"Drop shadow",typeOfFixture:["shadowVariants"],supportsCustom:!0,values:[v],pseudoStates:["hover","pressed"],defaults:{primary:"2xl",secondary:"xl",brand:"md","brand-secondary":"xl"}}),insetShadow:o({name:"insetShadow",label:"Inset shadow",typeOfFixture:["shadowVariantsWithInvert"],supportsCustom:!0,values:[f],pseudoStates:["hover","pressed"],defaults:{primary:"2xl-invert",secondary:"md-invert",brand:"md","brand-secondary":"xl"}})}}),icon:r({label:"icon",properties:{color:o({name:"color",label:"Icon color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],pseudoStates:["hover","pressed"],values:[i,u,d],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary"}})}})}})}})}}),dismissible:e({label:"Dismissible",description:"",variants:{variant:a({label:"Variant",description:"",isConfigurable:!0,default:"primary",options:["primary","secondary","brand","brand-secondary"],layers:{root:r({label:"root",properties:{backgroundColor:o({name:"backgroundColor",label:"Background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],pseudoStates:["hover","pressed"],defaults:{primary:"gray-4",secondary:"blue-4",brand:"red-4","brand-secondary":"purple-4"}}),color:o({name:"color",label:"Text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed"],defaults:{primary:"gray-9",secondary:"blue-9",brand:"red-9","brand-secondary":"red-4"}}),borderWidth:o({name:"borderWidth",label:"Border width",typeOfFixture:["borderWidths"],pseudoStates:["hover","pressed"],values:[b],defaults:{primary:"thin",secondary:"none",brand:"none","brand-secondary":"none"}}),borderColor:o({name:"borderColor",label:"Border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary"}}),shadow:o({name:"shadow",label:"Drop shadow",typeOfFixture:["shadowVariants"],supportsCustom:!0,values:[v],pseudoStates:["hover","pressed"],defaults:{primary:"2xl",secondary:"xl",brand:"md","brand-secondary":"xl"}}),insetShadow:o({name:"insetShadow",label:"Inset shadow",typeOfFixture:["shadowVariantsWithInvert"],supportsCustom:!0,values:[f],pseudoStates:["hover","pressed"],defaults:{primary:"2xl-invert",secondary:"md-invert",brand:"md","brand-secondary":"xl"}})}}),icon:r({label:"icon",properties:{color:o({name:"color",label:"Icon color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary"}})}})}})}}),link:e({label:"Link",description:"",variants:{variant:a({label:"Variant",description:"",isConfigurable:!0,default:"primary",options:["primary","secondary","brand","brand-secondary"],layers:{root:r({label:"root",properties:{backgroundColor:o({name:"backgroundColor",label:"Background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",brand:"secondary","brand-secondary":"secondary"}}),color:o({name:"color",label:"Text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",brand:"secondary","brand-secondary":"secondary"}}),borderWidth:o({name:"borderWidth",label:"Border width",typeOfFixture:["borderWidths"],values:[b],pseudoStates:["hover","pressed"],defaults:{primary:"thin",secondary:"none",brand:"none","brand-secondary":"none"}}),borderColor:o({name:"borderColor",label:"Border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary"}}),shadow:o({name:"shadow",label:"Drop shadow",typeOfFixture:["shadowVariants"],supportsCustom:!0,values:[v],pseudoStates:["hover","pressed"],defaults:{primary:"2xl",secondary:"xl",brand:"md","brand-secondary":"xl"}}),insetShadow:o({name:"insetShadow",label:"Inset shadow",typeOfFixture:["shadowVariantsWithInvert"],supportsCustom:!0,values:[f],pseudoStates:["hover","pressed"],defaults:{primary:"2xl-invert",secondary:"md-invert",brand:"md","brand-secondary":"xl"}})}}),icon:r({label:"icon",properties:{color:o({name:"color",label:"Icon color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary"}})}})}})}})},variants:{size:a({label:"Size",description:"These sizes will apply across all variants",isConfigurable:!0,default:"md",options:["sm","md"],layers:{root:r({label:"root",properties:{spacingHorizontal:o({name:"spacingHorizontal",label:"Spacing horizontal",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"3",md:"3"}}),spacingVertical:o({name:"spacingVertical",label:"Spacing vertical",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"1",md:"1.5"}}),gap:o({name:"gap",label:"Gap",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"2",md:"2"}}),textVariant:o({name:"textVariant",label:"Text variant",typeOfFixture:["textVariants"],values:[y],defaults:{sm:"label1",md:"label1"}}),borderRadius:o({name:"borderRadius",label:"Border radius",typeOfFixture:["borderRadii"],values:[s],defaults:{sm:"full",md:"full"}})}}),icon:r({label:"icon",properties:{size:o({name:"iconSize",label:"Icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{sm:"sm",md:"md"}})}})}})}};var O={label:"Divider",description:"Divider lines are purely decorative and non-interactive, serving as a visual guide. Use as horizontal and vertical lines.",variants:{variant:a({label:"Variant",description:"",isConfigurable:!0,default:"primary",options:["primary","secondary","tertiary","muted"],layers:{root:r({label:"root",properties:{gap:o({name:"gap",label:"Gap",typeOfFixture:["spacingAliases"],values:[m],defaults:{primary:"2",secondary:"2",tertiary:"2",muted:"2"}})}}),line:r({label:"line",properties:{borderWidth:o({name:"borderWidth",label:"Thickness",typeOfFixture:["borderWidths"],values:[b.filter((e=>"none"!==e))],defaults:{primary:"thin",secondary:"thin",tertiary:"thin",muted:"thin"}}),borderColor:o({name:"borderColor",label:"Border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],defaults:{primary:"primary",secondary:"secondary",tertiary:"tertiary",muted:"muted"}})}}),label:r({label:"label",properties:{textVariant:o({name:"textVariant",label:"text variant",typeOfFixture:["textVariants"],values:[y],defaults:{primary:"label3",secondary:"label3",tertiary:"label3",muted:"label3"}}),color:o({name:"color",label:"Text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{primary:"primary",secondary:"secondary",tertiary:"tertiary",muted:"muted"}})}})}})}};var F={label:"input",description:"An input field is a box where users can type or select information. It can also open a dropdown menu to show options or help collect data.",variants:{size:a({label:"size",isConfigurable:!0,options:["md","lg"],default:"md",description:"",layers:{root:r({label:"root",properties:{}}),inputWrapper:r({label:"inputWrapper",properties:{spacingHorizontal:o({name:"spacingHorizontal",label:"Spacing horizontal",typeOfFixture:["spacingAliases"],values:[m],defaults:{md:"3.5",lg:"4"}}),spacingVertical:o({name:"spacingVertical",label:"Spacing vertical",typeOfFixture:["spacingAliases"],values:[m],defaults:{md:"2",lg:"3.5"}}),gap:o({name:"gap",label:"Gap",typeOfFixture:["spacingAliases"],values:[m],defaults:{md:"3",lg:"3"}}),borderWidth:o({name:"borderWidth",label:"Border width",typeOfFixture:["borderWidths"],values:[b],pseudoStates:["pressed","invalid"],defaults:{md:"thin",lg:"thin"}}),borderRadius:o({name:"borderRadius",label:"Border radius",typeOfFixture:["borderRadii"],values:[s],defaults:{md:"md",lg:"md"}}),textVariant:o({name:"textVariant",label:"Input text style",typeOfFixture:["textVariants"],pseudoStates:["hover"],values:[y],defaults:{md:"label2",lg:"label2"}})}}),input:r({label:"input",properties:{height:o({name:"height",label:"Input element height",typeOfFixture:["spacingAliases"],values:[m],defaults:{md:"6",lg:"6"}})}}),startIcon:r({label:"startIcon",properties:{size:o({name:"iconSize",label:"Start icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{md:"md",lg:"md"}})}}),endIcon:r({label:"endIcon",properties:{size:o({name:"iconSize",label:"End icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{md:"md",lg:"md"}})}}),label:r({label:"label",properties:{textVariant:o({name:"textVariant",label:"Label text style",typeOfFixture:["textVariants"],values:[y],defaults:{md:"label4",lg:"label4"}})}}),helperIcon:r({label:"helperIcon",properties:{size:o({name:"iconSize",label:"Helper text icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{md:"sm",lg:"sm"}})}}),helperText:r({label:"helperText",properties:{textVariant:o({name:"textVariant",label:"Label text style",typeOfFixture:["textVariants"],values:[y],defaults:{md:"label4",lg:"label4"}})}})}}),variant:l({label:"variant",description:"",isConfigurable:!0,options:["default"],default:"default",componentStates:{value:t({label:"value",options:["filled","empty"],layers:{root:r({label:"root",properties:{}}),inputWrapper:r({label:"input",properties:{borderColor:o({name:"borderColor",label:"Border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"tertiary"}}),backgroundColor:o({name:"backgroundColor",label:"Background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"primary"}})}}),input:r({label:"input",properties:{color:o({name:"color",label:"Input text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"muted"}})}}),inputPlaceholder:r({label:"inputPlaceholder",pseudoSelector:"::placeholder",properties:{color:o({name:"color",label:"Input text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"muted"}})}}),startIcon:r({label:"startIcon",properties:{color:o({name:"color",label:"Start icon color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"muted"}})}}),endIcon:r({label:"endIcon",properties:{color:o({name:"color",label:"End icon color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"muted"}})}}),label:r({label:"label",properties:{color:o({name:"color",label:"Label color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"muted"}})}}),labelRequired:r({label:"labelRequired",properties:{color:o({name:"color",label:"Required color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"muted"}})}}),helperIcon:r({label:"helperIcon",properties:{color:o({name:"color",label:"Helper icon color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"muted"}})}}),helperText:r({label:"helpText",properties:{color:o({name:"color",label:"Helper text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"brand"}})}})}})}})}};var S={label:"Link",description:"Customizing your own buttons involves adjusting text styles, icon sizes, and spacing values to create a personalized button.",variants:{textStyle:a({label:"Text Style",description:"",isConfigurable:!0,default:"title1",options:y,layers:{root:r({label:"root",properties:{gap:o({name:"gap",label:"Gap",typeOfFixture:["spacingAliases"],values:[m],defaults:{display1:"2",display2:"2",display3:"2",title1:"2",title2:"2",title3:"2",title4:"2",headline1:"2",body1:"2",label1:"2",label2:"2",label3:"2",label4:"2",caption1:"2",caption2:"2",legal1:"2"}})}}),icon:r({label:"icon",properties:{size:o({name:"iconSize",label:"Icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{display1:"lg",display2:"lg",display3:"lg",title1:"md",title2:"md",title3:"md",title4:"md",headline1:"md",body1:"md",label1:"md",label2:"md",label3:"md",label4:"sm",caption1:"md",caption2:"sm",legal1:"md"}})}})}}),variant:a({label:"Variants",description:"Variants",isConfigurable:!0,default:"primary",options:["primary","secondary","tertiary","on-color"],layers:{root:r({label:"root",properties:{color:o({name:"color",label:"Text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",tertiary:"tertiary","on-color":"on-color"}}),textDecorationLine:o({name:"textDecorationLine",label:"Underline",typeOfFixture:["textDecorationLines"],values:[h],pseudoStates:["hover","pressed"],defaults:{primary:"none",secondary:"none",tertiary:"none","on-color":"none"}})}}),iconStart:r({label:"iconStart",properties:{color:o({name:"color",label:"Icon start color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],pseudoStates:["hover","pressed"],values:[i,u,d],defaults:{primary:"primary",secondary:"secondary",tertiary:"tertiary","on-color":"on-color"}})}}),iconEnd:r({label:"iconEnd",properties:{color:o({name:"color",label:"Icon end color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],pseudoStates:["hover","pressed"],values:[i,u,d],defaults:{primary:"primary",secondary:"secondary",tertiary:"tertiary","on-color":"on-color"}})}})}})}};var P={label:"Menu",description:"A menu is a component that offers a list of choices to the user, such as a set of actions or functions. ",variants:{size:a({label:"size",description:"",isConfigurable:!0,options:["default"],default:"default",layers:{root:r({label:"root",properties:{}}),startIcon:r({label:"startIcon",properties:{size:o({name:"iconSize",label:"Icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{default:"sm"}})}}),endIcon:r({label:"endIcon",properties:{size:o({name:"iconSize",label:"Icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{default:"sm"}})}})}})},subComponents:{item:e({label:"Item",description:"",variants:{variant:l({label:"variant",description:"",isConfigurable:!0,options:["default"],default:"default",componentStates:{active:t({label:"active",options:["on","off"],layers:{root:r({label:"root",properties:{backgroundColor:o({name:"backgroundColor",pseudoStates:["hover","focused"],label:"background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],defaults:{default:"brand-secondary"}})}}),text:r({label:"text",properties:{color:o({name:"color",label:"Text color",pseudoStates:["hover","focused"],typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{default:"brand"}}),textVariant:o({name:"textVariant",label:"Text variant",typeOfFixture:["textVariants"],pseudoStates:["hover","focused"],values:[y],defaults:{default:"label2"}})}}),icon:r({label:"icon",properties:{color:o({name:"color",label:"Icon color",pseudoStates:["hover","focused"],typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{default:"brand"}})}})}})}})}}),itemCheckbox:e({label:"ItemCheckbox",description:"",variants:{variant:l({label:"variant",description:"",isConfigurable:!0,options:["default"],default:"default",componentStates:{active:t({label:"active",options:["on","off"],layers:{root:r({label:"root",properties:{backgroundColor:o({name:"backgroundColor",label:"background color",pseudoStates:["hover","focused"],typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],defaults:{default:"brand-secondary"}})}}),text:r({label:"text",properties:{textVariant:o({name:"textVariant",label:"Text variant",typeOfFixture:["textVariants"],pseudoStates:["hover","focused"],values:[y],defaults:{default:"label2"}}),color:o({name:"color",label:"Text color",pseudoStates:["hover","focused"],typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{default:"brand"}})}}),startIcon:r({label:"startIcon",properties:{color:o({name:"color",label:"Icon color",pseudoStates:["hover","focused"],typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{default:"brand"}})}}),endIcon:r({label:"endIcon",properties:{color:o({name:"color",label:"Icon color",pseudoStates:["hover","focused"],typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{default:"brand"}})}})}})}})}}),divider:e({label:"divider",description:"",variants:{variant:a({label:"variant",description:"",isConfigurable:!0,options:["default"],default:"default",layers:{root:r({label:"root",properties:{}}),text:r({label:"text",properties:{color:o({name:"color",label:"text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{default:"muted"}}),textVariant:o({name:"textVariant",label:"text variant",typeOfFixture:["textVariants"],values:[y],defaults:{default:"label3"}})}}),line:r({label:"line",properties:{borderWidth:o({name:"borderWidth",label:"line thickness",typeOfFixture:["borderWidths"],values:[b.filter((e=>"none"!==e))],defaults:{default:"thin"}}),borderColor:o({name:"borderColor",label:"line color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],defaults:{default:"transparent"}})}})}})}})}};var A={label:"Radio",description:"Component for demo purposes and testing the automation",variants:{variant:l({label:"Variant",description:"Preview the colors, spacing values, and motion effects of your component at their default size.",isConfigurable:!0,options:["primary","secondary","alert","alert-secondary"],default:"primary",componentStates:{value:t({label:"value",options:["checked","unchecked"],layers:{root:r({label:"root",properties:{color:o({name:"color",label:"Label color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",alert:"alert","alert-secondary":"alert-secondary"}})}}),radio:r({label:"radio",properties:{borderColor:o({name:"borderColor",label:"Radio border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],pseudoStates:["hover","pressed"],defaults:{primary:"tertiary",secondary:"secondary",alert:"alert","alert-secondary":"alert-secondary"}}),backgroundColor:o({name:"backgroundColor",label:"Radio background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],pseudoStates:["hover","pressed"],defaults:{primary:"secondary",secondary:"secondary",alert:"secondary","alert-secondary":"secondary"}}),shadow:o({name:"shadow",label:"Drop shadow",typeOfFixture:["shadowVariants"],supportsCustom:!0,values:[v],pseudoStates:["hover","pressed"],defaults:{primary:"2xl",secondary:"xl",alert:"xl","alert-secondary":"xl"}}),insetShadow:o({name:"insetShadow",label:"Inset shadow",typeOfFixture:["shadowVariantsWithInvert"],supportsCustom:!0,values:[f],pseudoStates:["hover","pressed"],defaults:{primary:"2xl-invert",secondary:"md-invert",alert:"xl","alert-secondary":"xl-invert"}})}}),radioCircle:r({label:"radioCircle",properties:{backgroundColor:o({name:"backgroundColor",label:"Radio circle color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],pseudoStates:["hover","pressed"],defaults:{primary:"brand",secondary:"brand-secondary",alert:"alert","alert-secondary":"alert-secondary"}})}})}})}}),size:a({label:"Size",description:"These sizes will apply across all variants",isConfigurable:!0,default:"sm",options:["sm","md"],layers:{root:r({label:"root",properties:{gap:o({name:"gap",label:"Gap",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"2",md:"2.5"}}),textVariant:o({name:"textVariant",label:"Text variant",typeOfFixture:["textVariants"],values:[y],defaults:{sm:"label4",md:"label2"}})}}),radio:r({label:"radio",properties:{borderWidth:o({name:"borderWidth",label:"Radio border width",typeOfFixture:["borderWidths"],values:[b],defaults:{sm:"thin",md:"thin"}}),height:o({name:"height",label:"Radio height",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"4",md:"5"}}),width:o({name:"width",label:"Radio width",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"4",md:"5"}})}})}})}};var k={label:"Switch",description:"A switch is a toggle control that lets users turn a setting on or off. It’s commonly used for binary actions like enabling or disabling a feature.",variants:{variant:l({label:"Variant",description:"A switch is a toggle control that lets users turn a setting on or off. It’s commonly used for binary actions like enabling or disabling a feature.",default:"default",options:["default"],isConfigurable:!0,componentStates:{active:t({label:"active",options:["on","off"],layers:{root:r({label:"root",properties:{labelColor:o({name:"color",label:"Label color",pseudoStates:["hover"],typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{default:"secondary"}})}}),switch:r({label:"switch",properties:{backgroundColor:o({name:"backgroundColor",label:"Track background color",pseudoStates:["hover"],typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],defaults:{default:"brand"}}),borderColor:o({name:"borderColor",label:"Track border color",pseudoStates:["hover"],typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],defaults:{default:"brand"}}),shadow:o({name:"shadow",label:"Drop shadow",typeOfFixture:["shadowVariants"],supportsCustom:!0,values:[v],pseudoStates:["hover"],defaults:{default:"xl"}}),insetShadow:o({name:"insetShadow",label:"Inset shadow",typeOfFixture:["shadowVariantsWithInvert"],supportsCustom:!0,values:[f],pseudoStates:["hover"],defaults:{default:"2xl-invert"}})}}),handle:r({label:"handle",properties:{backgroundColor:o({name:"backgroundColor",label:"Handle color",pseudoStates:["hover"],typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],defaults:{default:"primary"}}),shadow:o({name:"shadow",label:"Drop shadow",typeOfFixture:["shadowVariants"],supportsCustom:!0,values:[v],pseudoStates:["hover"],defaults:{default:"xl"}}),insetShadow:o({name:"insetShadow",label:"Inset shadow",typeOfFixture:["shadowVariantsWithInvert"],supportsCustom:!0,values:[f],pseudoStates:["hover"],defaults:{default:"2xl-invert"}})}}),handleIcon:r({label:"handleIcon",properties:{color:o({name:"color",label:"Icon color",pseudoStates:["hover"],typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u],defaults:{default:"brand"}})}})}})}}),size:a({label:"Size",description:"These sizes will apply across all variants",isConfigurable:!0,default:"md",options:["sm","md"],layers:{root:r({label:"root",properties:{spacingHorizontal:o({name:"spacingHorizontal",label:"Spacing horizontal",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"0",md:"0"}}),spacingVertical:o({name:"spacingVertical",label:"Spacing vertical",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"1",md:"1.5"}}),gap:o({name:"gap",label:"Gap",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"2",md:"2"}}),textVariant:o({name:"textVariant",label:"Text variant",typeOfFixture:["textVariants"],values:[y],defaults:{sm:"label4",md:"label2"}})}}),switch:r({label:"switch",properties:{height:o({name:"height",label:"Track height",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"5",md:"7"}}),width:o({name:"width",label:"Track width",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"8",md:"12"}}),borderWidth:o({name:"borderWidth",label:"Track border width",typeOfFixture:["borderWidths"],values:[b],defaults:{sm:"none",md:"none"}}),padding:o({name:"padding",label:"Track padding",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"0.5",md:"0.5"}})}}),handle:r({label:"Handle",properties:{height:o({name:"height",label:"Track height",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"4",md:"6"}}),width:o({name:"width",label:"Track width",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"4",md:"6"}})}}),handleIcon:r({label:"Icon",properties:{size:o({name:"iconSize",label:"Icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{sm:"sm",md:"sm"}})}})}})}};export{x as AvatarConfig,g as BadgeConfig,C as CheckboxConfig,w as ChipConfig,O as DividerConfig,F as InputConfig,S as LinkConfig,P as MenuConfig,A as RadioConfig,k as SwitchConfig};
|
1
|
+
import{createSubComponentConfig as e,createVariantConfigWithProperties as a,createLayerConfig as r,createConfigurableProperty as o,createVariantConfigWithComponentStates as l,createComponentStates as t}from"../../chunk-6OYKLY27.js";import{borderRadii as s,spectrumColors as i,linePaletteColors as n,alwaysPaletteAliases as d,backgroundPaletteColors as p,foregroundPaletteColors as u,iconSizes as c,textVariants as y,borderWidths as b,spacingAliases as m,shadowVariantsWithInvert as f,shadowVariants as v,textDecorationLines as h}from"@yahoo/uds/fixtures";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var x={label:"Avatar",description:"An avatar is a visual element that represents a user or entity, usually shown as a circle or square with an image, icon, or initials. It's commonly used in profiles, comments, or messages to help identify people.",variants:{size:a({label:"Size",description:"These sizes will apply across all variants",isConfigurable:!0,default:"md",options:["xs","sm","md","lg","xl"],layers:{root:r({label:"root",properties:{height:o({name:"height",label:"Height",typeOfFixture:["spacingAliases"],values:[m],defaults:{xs:"6",sm:"7",md:"10",lg:"12",xl:"16"}}),width:o({name:"width",label:"Width",typeOfFixture:["spacingAliases"],values:[m],defaults:{xs:"6",sm:"7",md:"10",lg:"12",xl:"16"}}),borderWidth:o({name:"borderWidth",label:"Border width",typeOfFixture:["borderWidths"],values:[b],defaults:{xs:"thin",sm:"thin",md:"thin",lg:"thin",xl:"thin"}}),textVariant:o({name:"textVariant",label:"Text variant",typeOfFixture:["textVariants"],values:[y],defaults:{xs:"caption1",sm:"caption2",md:"headline1",lg:"title4",xl:"title3"}})}}),icon:r({label:"icon",properties:{iconSize:o({name:"iconSize",label:"Icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{xs:"sm",sm:"sm",md:"md",lg:"lg",xl:"lg"}})}})}})},subComponents:{text:e({label:"Text",description:"",variants:{variant:a({label:"Variant",description:"Shapes and sizes defined here will be applied across the entire family of Avatar (Icon, Image, Text)",isConfigurable:!0,options:["primary","secondary"],default:"primary",layers:{root:r({label:"root",properties:{color:o({name:"color",label:"text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{primary:"brand",secondary:"secondary"}}),backgroundColor:o({name:"backgroundColor",label:"background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],defaults:{primary:"primary",secondary:"secondary"}}),borderColor:o({name:"borderColor",label:"border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],defaults:{primary:"brand",secondary:"secondary"}}),borderRadius:o({name:"borderRadius",label:"Border radius",typeOfFixture:["borderRadii"],values:[s],defaults:{primary:"full",secondary:"sm"}})}})}})}}),image:e({label:"Image",description:"",variants:{variant:a({label:"Variant",description:"Shapes and sizes defined here will be applied across the entire family of Avatar (Icon, Image, Text)",isConfigurable:!0,options:["primary","secondary"],default:"primary",layers:{root:r({label:"root",properties:{borderColor:o({name:"borderColor",label:"border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],defaults:{primary:"muted",secondary:"muted"}}),borderRadius:o({name:"borderRadius",label:"border radius",typeOfFixture:["borderRadii"],values:[s],defaults:{primary:"full",secondary:"sm"}})}})}})}}),icon:e({label:"Icon",description:"",variants:{variant:a({label:"Variant",description:"Shapes and sizes defined here will be applied across the entire family of Avatar (Icon, Image, Text)",isConfigurable:!0,options:["primary","secondary"],default:"primary",layers:{root:r({label:"root",properties:{color:o({name:"color",label:"icon color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{primary:"muted",secondary:"muted"}}),backgroundColor:o({name:"backgroundColor",label:"background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],defaults:{primary:"secondary",secondary:"secondary"}}),borderColor:o({name:"borderColor",label:"border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],defaults:{primary:"primary",secondary:"primary"}}),borderRadius:o({name:"borderRadius",label:"border radius",typeOfFixture:["borderRadii"],values:[s],defaults:{primary:"full",secondary:"sm"}})}})}})}})}};var g={label:"Badge",description:"Component for demo purposes and testing the automation",variants:{size:a({label:"Size",description:"These sizes will apply across all variants",isConfigurable:!0,default:"md",options:["xs","sm","md","lg"],layers:{root:r({label:"root",properties:{spacingHorizontal:o({name:"spacingHorizontal",label:"Spacing horizontal",typeOfFixture:["spacingAliases"],values:[m],defaults:{xs:"2",sm:"4",md:"6",lg:"8"}}),spacingVertical:o({name:"spacingVertical",label:"Spacing vertical",typeOfFixture:["spacingAliases"],values:[m],defaults:{xs:"0.5",sm:"1",md:"1.5",lg:"2"}}),gap:o({name:"gap",label:"Gap",typeOfFixture:["spacingAliases"],values:[m],defaults:{xs:"2",sm:"4",md:"6",lg:"8"}}),textVariant:o({name:"textVariant",label:"Text variant",typeOfFixture:["textVariants"],values:[y],defaults:{xs:"label4",sm:"label3",md:"label2",lg:"label1"}})}}),icon:r({label:"icon",properties:{size:o({name:"iconSize",label:"Icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{xs:"sm",sm:"sm",md:"md",lg:"lg"}})}})}}),variant:a({label:"Variants",description:"",isConfigurable:!0,default:"primary",options:["primary","secondary","brand","brand-secondary","alert","alert-secondary","warning","warning-secondary","positive","positive-secondary","info","info-secondary"],layers:{root:r({label:"root",properties:{backgroundColor:o({name:"backgroundColor",label:"Background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary",alert:"alert","alert-secondary":"alert-secondary",warning:"warning","warning-secondary":"warning-secondary",positive:"positive","positive-secondary":"positive-secondary",info:"info","info-secondary":"info-secondary"}}),color:o({name:"color",label:"Text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary",alert:"alert","alert-secondary":"alert-secondary",warning:"warning","warning-secondary":"warning-secondary",positive:"positive","positive-secondary":"positive-secondary",info:"info","info-secondary":"info-secondary"}}),borderWidth:o({name:"borderWidth",label:"Border width",typeOfFixture:["borderWidths"],values:[b],defaults:{primary:"thin",secondary:"none",brand:"none","brand-secondary":"none",alert:"none","alert-secondary":"none",warning:"none","warning-secondary":"none",positive:"none","positive-secondary":"none",info:"none","info-secondary":"none"}}),borderColor:o({name:"borderColor",label:"border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary",alert:"alert","alert-secondary":"alert-secondary",warning:"warning","warning-secondary":"warning-secondary",positive:"positive","positive-secondary":"positive-secondary",info:"info","info-secondary":"info-secondary"}}),borderRadius:o({name:"borderRadius",label:"Border radius",typeOfFixture:["borderRadii"],values:[s],defaults:{primary:"sm",secondary:"sm",brand:"sm","brand-secondary":"sm",alert:"sm","alert-secondary":"sm",warning:"sm","warning-secondary":"sm",positive:"sm","positive-secondary":"sm",info:"sm","info-secondary":"sm"}}),shadow:o({name:"shadow",label:"Drop shadow",typeOfFixture:["shadowVariants"],supportsCustom:!0,values:[v],defaults:{primary:"2xl",secondary:"xl",brand:"md","brand-secondary":"xl",alert:"xl","alert-secondary":"xl",warning:"xl","warning-secondary":"xl",positive:"xl","positive-secondary":"xl",info:"xl","info-secondary":"sm"}}),insetShadow:o({name:"insetShadow",label:"Inset shadow",typeOfFixture:["shadowVariantsWithInvert"],supportsCustom:!0,values:[f],defaults:{primary:"2xl-invert",secondary:"md-invert",brand:"md","brand-secondary":"xl",alert:"xl","alert-secondary":"xl-invert",warning:"xl","warning-secondary":"xl",positive:"xl","positive-secondary":"xl",info:"xl","info-secondary":"sm"}})}}),icon:r({label:"icon",properties:{color:o({name:"color",label:"Icon color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary",alert:"alert","alert-secondary":"alert-secondary",warning:"warning","warning-secondary":"warning-secondary",positive:"positive","positive-secondary":"positive-secondary",info:"info","info-secondary":"info-secondary"}})}})}})}};var C={label:"Checkbox",description:"A checkbox is a small, interactive element that lets users select one or more options from a list.",variants:{size:a({label:"size",isConfigurable:!0,options:["sm","md"],default:"md",description:"",layers:{root:r({label:"root",properties:{gap:o({name:"gap",label:"Gap",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"2",md:"2.5"}}),textVariant:o({name:"textVariant",label:"Text variant",typeOfFixture:["textVariants"],values:[y],defaults:{sm:"label4",md:"label2"}})}}),checkbox:r({label:"checkbox",properties:{borderWidth:o({name:"borderWidth",label:"Checkbox border width",typeOfFixture:["borderWidths"],values:[b],defaults:{sm:"thin",md:"thin"}}),height:o({name:"height",label:"Checkbox height",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"4",md:"5"}}),width:o({name:"width",label:"Checkbox width",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"4",md:"5"}})}})}}),variant:l({label:"variant",description:"",isConfigurable:!0,options:["primary","secondary","alert","alert-secondary"],default:"primary",componentStates:{value:t({label:"value",options:["checked","unchecked","indeterminate"],layers:{root:r({label:"root",properties:{color:o({name:"color",label:"Label color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","disabled"],defaults:{primary:"primary",secondary:"primary",alert:"primary","alert-secondary":"primary"}})}}),checkbox:r({label:"checkbox",properties:{borderColor:o({name:"borderColor",label:"border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],pseudoStates:["hover","pressed","disabled"],defaults:{primary:"tertiary",secondary:"tertiary",alert:"tertiary","alert-secondary":"tertiary"}}),backgroundColor:o({name:"backgroundColor",label:"Checkbox background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],pseudoStates:["hover","pressed","disabled"],defaults:{primary:"secondary",secondary:"secondary",alert:"secondary","alert-secondary":"secondary"}}),shadow:o({name:"shadow",label:"Drop shadow",typeOfFixture:["shadowVariants"],supportsCustom:!0,values:[v],pseudoStates:["hover","pressed","disabled"],defaults:{primary:"none",secondary:"none",alert:"md","alert-secondary":"none"}}),insetShadow:o({name:"insetShadow",label:"Inset shadow",typeOfFixture:["shadowVariantsWithInvert"],supportsCustom:!0,values:[f],pseudoStates:["hover","pressed","disabled"],defaults:{primary:"2xl-invert",secondary:"md-invert",alert:"md","alert-secondary":"xl"}})}}),checkboxIcon:r({label:"checkboxIcon",properties:{color:o({name:"color",label:"Icon color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","disabled"],defaults:{primary:"primary",secondary:"primary",alert:"primary","alert-secondary":"primary"}})}})}})}})}};var w={label:"Chip",description:"A chip is a small, interactive element that presents information, actions, or selections in a compact form — commonly used for tags, filters, or user input.",subComponents:{toggle:e({label:"Toggle",description:"",variants:{variant:l({label:"Variant",description:"",isConfigurable:!0,default:"primary",options:["primary","secondary","brand","brand-secondary"],componentStates:{active:t({label:"active",options:["on","off"],layers:{root:r({label:"root",properties:{backgroundColor:o({name:"backgroundColor",label:"Background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",brand:"secondary","brand-secondary":"secondary"}}),color:o({name:"color",label:"Text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",brand:"secondary","brand-secondary":"secondary"}}),borderWidth:o({name:"borderWidth",label:"Border width",typeOfFixture:["borderWidths"],pseudoStates:["hover","pressed"],values:[b],defaults:{primary:"thin",secondary:"none",brand:"none","brand-secondary":"none"}}),borderColor:o({name:"borderColor",label:"Border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary"}}),shadow:o({name:"shadow",label:"Drop shadow",typeOfFixture:["shadowVariants"],supportsCustom:!0,values:[v],pseudoStates:["hover","pressed"],defaults:{primary:"2xl",secondary:"xl",brand:"md","brand-secondary":"xl"}}),insetShadow:o({name:"insetShadow",label:"Inset shadow",typeOfFixture:["shadowVariantsWithInvert"],supportsCustom:!0,values:[f],pseudoStates:["hover","pressed"],defaults:{primary:"2xl-invert",secondary:"md-invert",brand:"md","brand-secondary":"xl"}})}}),icon:r({label:"icon",properties:{color:o({name:"color",label:"Icon color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],pseudoStates:["hover","pressed"],values:[i,u,d],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary"}})}})}})}})}}),dismissible:e({label:"Dismissible",description:"",variants:{variant:a({label:"Variant",description:"",isConfigurable:!0,default:"primary",options:["primary","secondary","brand","brand-secondary"],layers:{root:r({label:"root",properties:{backgroundColor:o({name:"backgroundColor",label:"Background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],pseudoStates:["hover","pressed"],defaults:{primary:"gray-4",secondary:"blue-4",brand:"red-4","brand-secondary":"purple-4"}}),color:o({name:"color",label:"Text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed"],defaults:{primary:"gray-9",secondary:"blue-9",brand:"red-9","brand-secondary":"red-4"}}),borderWidth:o({name:"borderWidth",label:"Border width",typeOfFixture:["borderWidths"],pseudoStates:["hover","pressed"],values:[b],defaults:{primary:"thin",secondary:"none",brand:"none","brand-secondary":"none"}}),borderColor:o({name:"borderColor",label:"Border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary"}}),shadow:o({name:"shadow",label:"Drop shadow",typeOfFixture:["shadowVariants"],supportsCustom:!0,values:[v],pseudoStates:["hover","pressed"],defaults:{primary:"2xl",secondary:"xl",brand:"md","brand-secondary":"xl"}}),insetShadow:o({name:"insetShadow",label:"Inset shadow",typeOfFixture:["shadowVariantsWithInvert"],supportsCustom:!0,values:[f],pseudoStates:["hover","pressed"],defaults:{primary:"2xl-invert",secondary:"md-invert",brand:"md","brand-secondary":"xl"}})}}),icon:r({label:"icon",properties:{color:o({name:"color",label:"Icon color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary"}})}})}})}}),link:e({label:"Link",description:"",variants:{variant:a({label:"Variant",description:"",isConfigurable:!0,default:"primary",options:["primary","secondary","brand","brand-secondary"],layers:{root:r({label:"root",properties:{backgroundColor:o({name:"backgroundColor",label:"Background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",brand:"secondary","brand-secondary":"secondary"}}),color:o({name:"color",label:"Text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",brand:"secondary","brand-secondary":"secondary"}}),borderWidth:o({name:"borderWidth",label:"Border width",typeOfFixture:["borderWidths"],values:[b],pseudoStates:["hover","pressed"],defaults:{primary:"thin",secondary:"none",brand:"none","brand-secondary":"none"}}),borderColor:o({name:"borderColor",label:"Border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary"}}),shadow:o({name:"shadow",label:"Drop shadow",typeOfFixture:["shadowVariants"],supportsCustom:!0,values:[v],pseudoStates:["hover","pressed"],defaults:{primary:"2xl",secondary:"xl",brand:"md","brand-secondary":"xl"}}),insetShadow:o({name:"insetShadow",label:"Inset shadow",typeOfFixture:["shadowVariantsWithInvert"],supportsCustom:!0,values:[f],pseudoStates:["hover","pressed"],defaults:{primary:"2xl-invert",secondary:"md-invert",brand:"md","brand-secondary":"xl"}})}}),icon:r({label:"icon",properties:{color:o({name:"color",label:"Icon color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",brand:"brand","brand-secondary":"brand-secondary"}})}})}})}})},variants:{size:a({label:"Size",description:"These sizes will apply across all variants",isConfigurable:!0,default:"md",options:["sm","md"],layers:{root:r({label:"root",properties:{spacingHorizontal:o({name:"spacingHorizontal",label:"Spacing horizontal",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"3",md:"3"}}),spacingVertical:o({name:"spacingVertical",label:"Spacing vertical",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"1",md:"1.5"}}),gap:o({name:"gap",label:"Gap",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"2",md:"2"}}),textVariant:o({name:"textVariant",label:"Text variant",typeOfFixture:["textVariants"],values:[y],defaults:{sm:"label1",md:"label1"}}),borderRadius:o({name:"borderRadius",label:"Border radius",typeOfFixture:["borderRadii"],values:[s],defaults:{sm:"full",md:"full"}})}}),icon:r({label:"icon",properties:{size:o({name:"iconSize",label:"Icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{sm:"sm",md:"md"}})}})}})}};var O={label:"Divider",description:"Divider lines are purely decorative and non-interactive, serving as a visual guide. Use as horizontal and vertical lines.",variants:{variant:a({label:"Variant",description:"",isConfigurable:!0,default:"primary",options:["primary","secondary","tertiary","muted"],layers:{root:r({label:"root",properties:{gap:o({name:"gap",label:"Gap",typeOfFixture:["spacingAliases"],values:[m],defaults:{primary:"2",secondary:"2",tertiary:"2",muted:"2"}})}}),line:r({label:"line",properties:{borderWidth:o({name:"borderWidth",label:"Thickness",typeOfFixture:["borderWidths"],values:[b.filter(e=>"none"!==e)],defaults:{primary:"thin",secondary:"thin",tertiary:"thin",muted:"thin"}}),borderColor:o({name:"borderColor",label:"Border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],defaults:{primary:"primary",secondary:"secondary",tertiary:"tertiary",muted:"muted"}})}}),label:r({label:"label",properties:{textVariant:o({name:"textVariant",label:"text variant",typeOfFixture:["textVariants"],values:[y],defaults:{primary:"label3",secondary:"label3",tertiary:"label3",muted:"label3"}}),color:o({name:"color",label:"Text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{primary:"primary",secondary:"secondary",tertiary:"tertiary",muted:"muted"}})}})}})}};var F={label:"input",description:"An input field is a box where users can type or select information. It can also open a dropdown menu to show options or help collect data.",variants:{size:a({label:"size",isConfigurable:!0,options:["md","lg"],default:"md",description:"",layers:{root:r({label:"root",properties:{}}),inputWrapper:r({label:"inputWrapper",properties:{spacingHorizontal:o({name:"spacingHorizontal",label:"Spacing horizontal",typeOfFixture:["spacingAliases"],values:[m],defaults:{md:"3.5",lg:"4"}}),spacingVertical:o({name:"spacingVertical",label:"Spacing vertical",typeOfFixture:["spacingAliases"],values:[m],defaults:{md:"2",lg:"3.5"}}),gap:o({name:"gap",label:"Gap",typeOfFixture:["spacingAliases"],values:[m],defaults:{md:"3",lg:"3"}}),borderWidth:o({name:"borderWidth",label:"Border width",typeOfFixture:["borderWidths"],values:[b],pseudoStates:["pressed","invalid"],defaults:{md:"thin",lg:"thin"}}),borderRadius:o({name:"borderRadius",label:"Border radius",typeOfFixture:["borderRadii"],values:[s],defaults:{md:"md",lg:"md"}}),textVariant:o({name:"textVariant",label:"Input text style",typeOfFixture:["textVariants"],pseudoStates:["hover"],values:[y],defaults:{md:"label2",lg:"label2"}})}}),input:r({label:"input",properties:{height:o({name:"height",label:"Input element height",typeOfFixture:["spacingAliases"],values:[m],defaults:{md:"6",lg:"6"}})}}),startIcon:r({label:"startIcon",properties:{size:o({name:"iconSize",label:"Start icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{md:"md",lg:"md"}})}}),endIcon:r({label:"endIcon",properties:{size:o({name:"iconSize",label:"End icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{md:"md",lg:"md"}})}}),label:r({label:"label",properties:{textVariant:o({name:"textVariant",label:"Label text style",typeOfFixture:["textVariants"],values:[y],defaults:{md:"label4",lg:"label4"}})}}),helperIcon:r({label:"helperIcon",properties:{size:o({name:"iconSize",label:"Helper text icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{md:"sm",lg:"sm"}})}}),helperText:r({label:"helperText",properties:{textVariant:o({name:"textVariant",label:"Label text style",typeOfFixture:["textVariants"],values:[y],defaults:{md:"label4",lg:"label4"}})}})}}),variant:l({label:"variant",description:"",isConfigurable:!0,options:["default"],default:"default",componentStates:{value:t({label:"value",options:["filled","empty"],layers:{root:r({label:"root",properties:{}}),inputWrapper:r({label:"input",properties:{borderColor:o({name:"borderColor",label:"Border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"tertiary"}}),backgroundColor:o({name:"backgroundColor",label:"Background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"primary"}})}}),input:r({label:"input",properties:{color:o({name:"color",label:"Input text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"muted"}})}}),inputPlaceholder:r({label:"inputPlaceholder",pseudoSelector:"::placeholder",properties:{color:o({name:"color",label:"Input text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"muted"}})}}),startIcon:r({label:"startIcon",properties:{color:o({name:"color",label:"Start icon color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"muted"}})}}),endIcon:r({label:"endIcon",properties:{color:o({name:"color",label:"End icon color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"muted"}})}}),label:r({label:"label",properties:{color:o({name:"color",label:"Label color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"muted"}})}}),labelRequired:r({label:"labelRequired",properties:{color:o({name:"color",label:"Required color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"muted"}})}}),helperIcon:r({label:"helperIcon",properties:{color:o({name:"color",label:"Helper icon color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"muted"}})}}),helperText:r({label:"helpText",properties:{color:o({name:"color",label:"Helper text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed","focus-within","invalid","invalid&hover","invalid&pressed","readonly","disabled"],defaults:{default:"brand"}})}})}})}})}};var S={label:"Link",description:"Customizing your own buttons involves adjusting text styles, icon sizes, and spacing values to create a personalized button.",variants:{textStyle:a({label:"Text Style",description:"",isConfigurable:!0,default:"title1",options:y,layers:{root:r({label:"root",properties:{gap:o({name:"gap",label:"Gap",typeOfFixture:["spacingAliases"],values:[m],defaults:{display1:"2",display2:"2",display3:"2",title1:"2",title2:"2",title3:"2",title4:"2",headline1:"2",body1:"2",label1:"2",label2:"2",label3:"2",label4:"2",caption1:"2",caption2:"2",legal1:"2"}})}}),icon:r({label:"icon",properties:{size:o({name:"iconSize",label:"Icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{display1:"lg",display2:"lg",display3:"lg",title1:"md",title2:"md",title3:"md",title4:"md",headline1:"md",body1:"md",label1:"md",label2:"md",label3:"md",label4:"sm",caption1:"md",caption2:"sm",legal1:"md"}})}})}}),variant:a({label:"Variants",description:"Variants",isConfigurable:!0,default:"primary",options:["primary","secondary","tertiary","on-color"],layers:{root:r({label:"root",properties:{color:o({name:"color",label:"Text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",tertiary:"tertiary","on-color":"on-color"}}),textDecorationLine:o({name:"textDecorationLine",label:"Underline",typeOfFixture:["textDecorationLines"],values:[h],pseudoStates:["hover","pressed"],defaults:{primary:"none",secondary:"none",tertiary:"none","on-color":"none"}})}}),iconStart:r({label:"iconStart",properties:{color:o({name:"color",label:"Icon start color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],pseudoStates:["hover","pressed"],values:[i,u,d],defaults:{primary:"primary",secondary:"secondary",tertiary:"tertiary","on-color":"on-color"}})}}),iconEnd:r({label:"iconEnd",properties:{color:o({name:"color",label:"Icon end color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],pseudoStates:["hover","pressed"],values:[i,u,d],defaults:{primary:"primary",secondary:"secondary",tertiary:"tertiary","on-color":"on-color"}})}})}})}};var P={label:"Menu",description:"A menu is a component that offers a list of choices to the user, such as a set of actions or functions. ",variants:{size:a({label:"size",description:"",isConfigurable:!0,options:["default"],default:"default",layers:{root:r({label:"root",properties:{}}),startIcon:r({label:"startIcon",properties:{size:o({name:"iconSize",label:"Icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{default:"sm"}})}}),endIcon:r({label:"endIcon",properties:{size:o({name:"iconSize",label:"Icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{default:"sm"}})}})}})},subComponents:{item:e({label:"Item",description:"",variants:{variant:l({label:"variant",description:"",isConfigurable:!0,options:["default"],default:"default",componentStates:{active:t({label:"active",options:["on","off"],layers:{root:r({label:"root",properties:{backgroundColor:o({name:"backgroundColor",pseudoStates:["hover","focused"],label:"background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],defaults:{default:"brand-secondary"}})}}),text:r({label:"text",properties:{color:o({name:"color",label:"Text color",pseudoStates:["hover","focused"],typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{default:"brand"}}),textVariant:o({name:"textVariant",label:"Text variant",typeOfFixture:["textVariants"],pseudoStates:["hover","focused"],values:[y],defaults:{default:"label2"}})}}),icon:r({label:"icon",properties:{color:o({name:"color",label:"Icon color",pseudoStates:["hover","focused"],typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{default:"brand"}})}})}})}})}}),itemCheckbox:e({label:"ItemCheckbox",description:"",variants:{variant:l({label:"variant",description:"",isConfigurable:!0,options:["default"],default:"default",componentStates:{active:t({label:"active",options:["on","off"],layers:{root:r({label:"root",properties:{backgroundColor:o({name:"backgroundColor",label:"background color",pseudoStates:["hover","focused"],typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],defaults:{default:"brand-secondary"}})}}),text:r({label:"text",properties:{textVariant:o({name:"textVariant",label:"Text variant",typeOfFixture:["textVariants"],pseudoStates:["hover","focused"],values:[y],defaults:{default:"label2"}}),color:o({name:"color",label:"Text color",pseudoStates:["hover","focused"],typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{default:"brand"}})}}),startIcon:r({label:"startIcon",properties:{color:o({name:"color",label:"Icon color",pseudoStates:["hover","focused"],typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{default:"brand"}})}}),endIcon:r({label:"endIcon",properties:{color:o({name:"color",label:"Icon color",pseudoStates:["hover","focused"],typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{default:"brand"}})}})}})}})}}),divider:e({label:"divider",description:"",variants:{variant:a({label:"variant",description:"",isConfigurable:!0,options:["default"],default:"default",layers:{root:r({label:"root",properties:{}}),text:r({label:"text",properties:{color:o({name:"color",label:"text color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{default:"muted"}}),textVariant:o({name:"textVariant",label:"text variant",typeOfFixture:["textVariants"],values:[y],defaults:{default:"label3"}})}}),line:r({label:"line",properties:{borderWidth:o({name:"borderWidth",label:"line thickness",typeOfFixture:["borderWidths"],values:[b.filter(e=>"none"!==e)],defaults:{default:"thin"}}),borderColor:o({name:"borderColor",label:"line color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],defaults:{default:"transparent"}})}})}})}})}};var A={label:"Radio",description:"Component for demo purposes and testing the automation",variants:{variant:l({label:"Variant",description:"Preview the colors, spacing values, and motion effects of your component at their default size.",isConfigurable:!0,options:["primary","secondary","alert","alert-secondary"],default:"primary",componentStates:{value:t({label:"value",options:["checked","unchecked"],layers:{root:r({label:"root",properties:{color:o({name:"color",label:"Label color",typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],pseudoStates:["hover","pressed"],defaults:{primary:"primary",secondary:"secondary",alert:"alert","alert-secondary":"alert-secondary"}})}}),radio:r({label:"radio",properties:{borderColor:o({name:"borderColor",label:"Radio border color",typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],pseudoStates:["hover","pressed"],defaults:{primary:"tertiary",secondary:"secondary",alert:"alert","alert-secondary":"alert-secondary"}}),backgroundColor:o({name:"backgroundColor",label:"Radio background color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],pseudoStates:["hover","pressed"],defaults:{primary:"secondary",secondary:"secondary",alert:"secondary","alert-secondary":"secondary"}}),shadow:o({name:"shadow",label:"Drop shadow",typeOfFixture:["shadowVariants"],supportsCustom:!0,values:[v],pseudoStates:["hover","pressed"],defaults:{primary:"2xl",secondary:"xl",alert:"xl","alert-secondary":"xl"}}),insetShadow:o({name:"insetShadow",label:"Inset shadow",typeOfFixture:["shadowVariantsWithInvert"],supportsCustom:!0,values:[f],pseudoStates:["hover","pressed"],defaults:{primary:"2xl-invert",secondary:"md-invert",alert:"xl","alert-secondary":"xl-invert"}})}}),radioCircle:r({label:"radioCircle",properties:{backgroundColor:o({name:"backgroundColor",label:"Radio circle color",typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],pseudoStates:["hover","pressed"],defaults:{primary:"brand",secondary:"brand-secondary",alert:"alert","alert-secondary":"alert-secondary"}})}})}})}}),size:a({label:"Size",description:"These sizes will apply across all variants",isConfigurable:!0,default:"sm",options:["sm","md"],layers:{root:r({label:"root",properties:{gap:o({name:"gap",label:"Gap",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"2",md:"2.5"}}),textVariant:o({name:"textVariant",label:"Text variant",typeOfFixture:["textVariants"],values:[y],defaults:{sm:"label4",md:"label2"}})}}),radio:r({label:"radio",properties:{borderWidth:o({name:"borderWidth",label:"Radio border width",typeOfFixture:["borderWidths"],values:[b],defaults:{sm:"thin",md:"thin"}}),height:o({name:"height",label:"Radio height",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"4",md:"5"}}),width:o({name:"width",label:"Radio width",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"4",md:"5"}})}})}})}};var k={label:"Switch",description:"A switch is a toggle control that lets users turn a setting on or off. It’s commonly used for binary actions like enabling or disabling a feature.",variants:{variant:l({label:"Variant",description:"A switch is a toggle control that lets users turn a setting on or off. It’s commonly used for binary actions like enabling or disabling a feature.",default:"default",options:["default"],isConfigurable:!0,componentStates:{active:t({label:"active",options:["on","off"],layers:{root:r({label:"root",properties:{labelColor:o({name:"color",label:"Label color",pseudoStates:["hover"],typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u,d],defaults:{default:"secondary"}})}}),switch:r({label:"switch",properties:{backgroundColor:o({name:"backgroundColor",label:"Track background color",pseudoStates:["hover"],typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],defaults:{default:"brand"}}),borderColor:o({name:"borderColor",label:"Track border color",pseudoStates:["hover"],typeOfFixture:["spectrumColors","linePaletteColors","alwaysPaletteAliases"],values:[i,n,d],defaults:{default:"brand"}}),shadow:o({name:"shadow",label:"Drop shadow",typeOfFixture:["shadowVariants"],supportsCustom:!0,values:[v],pseudoStates:["hover"],defaults:{default:"xl"}}),insetShadow:o({name:"insetShadow",label:"Inset shadow",typeOfFixture:["shadowVariantsWithInvert"],supportsCustom:!0,values:[f],pseudoStates:["hover"],defaults:{default:"2xl-invert"}})}}),handle:r({label:"handle",properties:{backgroundColor:o({name:"backgroundColor",label:"Handle color",pseudoStates:["hover"],typeOfFixture:["spectrumColors","backgroundPaletteColors","alwaysPaletteAliases"],values:[i,p,d],defaults:{default:"primary"}}),shadow:o({name:"shadow",label:"Drop shadow",typeOfFixture:["shadowVariants"],supportsCustom:!0,values:[v],pseudoStates:["hover"],defaults:{default:"xl"}}),insetShadow:o({name:"insetShadow",label:"Inset shadow",typeOfFixture:["shadowVariantsWithInvert"],supportsCustom:!0,values:[f],pseudoStates:["hover"],defaults:{default:"2xl-invert"}})}}),handleIcon:r({label:"handleIcon",properties:{color:o({name:"color",label:"Icon color",pseudoStates:["hover"],typeOfFixture:["spectrumColors","foregroundPaletteColors","alwaysPaletteAliases"],values:[i,u],defaults:{default:"brand"}})}})}})}}),size:a({label:"Size",description:"These sizes will apply across all variants",isConfigurable:!0,default:"md",options:["sm","md"],layers:{root:r({label:"root",properties:{spacingHorizontal:o({name:"spacingHorizontal",label:"Spacing horizontal",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"0",md:"0"}}),spacingVertical:o({name:"spacingVertical",label:"Spacing vertical",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"1",md:"1.5"}}),gap:o({name:"gap",label:"Gap",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"2",md:"2"}}),textVariant:o({name:"textVariant",label:"Text variant",typeOfFixture:["textVariants"],values:[y],defaults:{sm:"label4",md:"label2"}})}}),switch:r({label:"switch",properties:{height:o({name:"height",label:"Track height",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"5",md:"7"}}),width:o({name:"width",label:"Track width",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"8",md:"12"}}),borderWidth:o({name:"borderWidth",label:"Track border width",typeOfFixture:["borderWidths"],values:[b],defaults:{sm:"none",md:"none"}}),padding:o({name:"padding",label:"Track padding",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"0.5",md:"0.5"}})}}),handle:r({label:"Handle",properties:{height:o({name:"height",label:"Track height",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"4",md:"6"}}),width:o({name:"width",label:"Track width",typeOfFixture:["spacingAliases"],values:[m],defaults:{sm:"4",md:"6"}})}}),handleIcon:r({label:"Icon",properties:{size:o({name:"iconSize",label:"Icon size",typeOfFixture:["iconSizes"],values:[c],defaults:{sm:"sm",md:"sm"}})}})}})}};export{x as AvatarConfig,g as BadgeConfig,C as CheckboxConfig,w as ChipConfig,O as DividerConfig,F as InputConfig,S as LinkConfig,P as MenuConfig,A as RadioConfig,k as SwitchConfig};
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@yahoo/uds",
|
3
3
|
"description": "Yahoo Universal System",
|
4
|
-
"version": "3.
|
4
|
+
"version": "3.22.0",
|
5
5
|
"type": "module",
|
6
6
|
"bin": {
|
7
7
|
"uds": "./cli/uds-cli.js"
|
@@ -199,18 +199,18 @@
|
|
199
199
|
"typecheck:uds": "tsc -p . --noEmit"
|
200
200
|
},
|
201
201
|
"dependencies": {
|
202
|
-
"@ariakit/react": "^0.4.
|
202
|
+
"@ariakit/react": "^0.4.17",
|
203
203
|
"bluebun": "^0.0.34",
|
204
204
|
"clsx": "^2.1.1",
|
205
205
|
"imurmurhash": "^0.1.4",
|
206
206
|
"lodash-es": "^4.17.21",
|
207
|
-
"motion": "^12.
|
207
|
+
"motion": "^12.23.12",
|
208
208
|
"prompts": "^2.4.2",
|
209
|
-
"react-toastify": "^11.0.
|
210
|
-
"semver": "^7.
|
209
|
+
"react-toastify": "^11.0.5",
|
210
|
+
"semver": "^7.7.2",
|
211
211
|
"simple-update-notifier": "^2.0.0",
|
212
|
-
"tailwind-merge": "^2.
|
213
|
-
"ts-morph": "^
|
212
|
+
"tailwind-merge": "^2.6.0",
|
213
|
+
"ts-morph": "^26.0.0",
|
214
214
|
"type-fest": "^4.41.0",
|
215
215
|
"uuid": "^11.0.3"
|
216
216
|
},
|
@@ -225,12 +225,12 @@
|
|
225
225
|
"@types/semver": "^7.5.8",
|
226
226
|
"@yahoo/uds-icons": "workspace:*",
|
227
227
|
"@yahoo/uds-test-utils": "workspace:*",
|
228
|
-
"autoprefixer": "^10.4.
|
229
|
-
"chalk": "^5.
|
230
|
-
"concurrently": "^9.0
|
231
|
-
"postcss": "^8.
|
228
|
+
"autoprefixer": "^10.4.21",
|
229
|
+
"chalk": "^5.5.0",
|
230
|
+
"concurrently": "^9.2.0",
|
231
|
+
"postcss": "^8.5.6",
|
232
232
|
"tailwindcss": "^3.4.13",
|
233
|
-
"terser": "^5.
|
233
|
+
"terser": "^5.43.1",
|
234
234
|
"tsconfig": "workspace:*",
|
235
235
|
"tsup": "^8.5.0"
|
236
236
|
},
|
package/dist/Input-CjSSpDxo.d.ts
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
import * as react from 'react';
|
2
|
-
import { U as UniversalInputProps } from './types-D113cJbW.js';
|
3
|
-
import { HTMLMotionProps } from 'motion/react';
|
4
|
-
|
5
|
-
type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
|
6
|
-
type NativeInputProps = Omit<HtmlInputProps, 'height' | 'size' | 'width' | 'color' | 'required'>;
|
7
|
-
interface InputProps extends NativeInputProps, UniversalInputProps {
|
8
|
-
/** The type of the input element. Reduced set of options from the HTML input type attribute.
|
9
|
-
* @default 'text'
|
10
|
-
*/
|
11
|
-
type?: Exclude<NativeInputProps['type'], 'button' | 'checkbox' | 'color' | 'file' | 'radio' | 'range' | 'reset' | 'submit' | 'search'>;
|
12
|
-
}
|
13
|
-
/**
|
14
|
-
* **📦 An input that allows users to enter text and collect data.**
|
15
|
-
*
|
16
|
-
* @componentType Client component
|
17
|
-
*
|
18
|
-
* @description
|
19
|
-
* An input field is a component that takes text typed into it. It can also serve as a way to display a selection and trigger a dropdown menu. Inputs are interactive elements that users can click, tap, or otherwise engage with to collect data and open dropdowns, or both.
|
20
|
-
*
|
21
|
-
* @see
|
22
|
-
* Check out the {@link https://uds.build/docs/components/input Input Docs} for more info
|
23
|
-
*
|
24
|
-
* @usage
|
25
|
-
* - Forms: For collecting data like names, emails, passwords, etc. (e.g., sign-up, login, or contact forms).
|
26
|
-
* - Search Bars: Allowing users to enter search queries to find content.
|
27
|
-
* - Filters/Settings: When users need to specify preferences, like selecting a date or adjusting a number value.
|
28
|
-
* - Feedback/Comments: Letting users leave reviews, comments, or feedback.
|
29
|
-
*
|
30
|
-
* @example
|
31
|
-
* ```tsx
|
32
|
-
* 'use client';
|
33
|
-
* import { Input } from "@yahoo/uds";
|
34
|
-
*
|
35
|
-
* <Input label="Name" placeholder="Enter your name" required />
|
36
|
-
*```
|
37
|
-
*
|
38
|
-
* @related [Checkbox](https://uds.build/docs/components/checkbox), [Radio](https://uds.build/docs/components/radio).
|
39
|
-
**/
|
40
|
-
declare const Input: react.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
41
|
-
|
42
|
-
export { type InputProps as I, Input as a };
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import * as react from 'react';
|
2
|
-
import { U as UniversalInputProps } from './types-D113cJbW.cjs';
|
3
|
-
import { HTMLMotionProps } from 'motion/react';
|
4
|
-
|
5
|
-
type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
|
6
|
-
type NativeInputProps = Omit<HtmlInputProps, 'height' | 'size' | 'width' | 'color' | 'required'>;
|
7
|
-
interface InputProps extends NativeInputProps, UniversalInputProps {
|
8
|
-
/** The type of the input element. Reduced set of options from the HTML input type attribute.
|
9
|
-
* @default 'text'
|
10
|
-
*/
|
11
|
-
type?: Exclude<NativeInputProps['type'], 'button' | 'checkbox' | 'color' | 'file' | 'radio' | 'range' | 'reset' | 'submit' | 'search'>;
|
12
|
-
}
|
13
|
-
/**
|
14
|
-
* **📦 An input that allows users to enter text and collect data.**
|
15
|
-
*
|
16
|
-
* @componentType Client component
|
17
|
-
*
|
18
|
-
* @description
|
19
|
-
* An input field is a component that takes text typed into it. It can also serve as a way to display a selection and trigger a dropdown menu. Inputs are interactive elements that users can click, tap, or otherwise engage with to collect data and open dropdowns, or both.
|
20
|
-
*
|
21
|
-
* @see
|
22
|
-
* Check out the {@link https://uds.build/docs/components/input Input Docs} for more info
|
23
|
-
*
|
24
|
-
* @usage
|
25
|
-
* - Forms: For collecting data like names, emails, passwords, etc. (e.g., sign-up, login, or contact forms).
|
26
|
-
* - Search Bars: Allowing users to enter search queries to find content.
|
27
|
-
* - Filters/Settings: When users need to specify preferences, like selecting a date or adjusting a number value.
|
28
|
-
* - Feedback/Comments: Letting users leave reviews, comments, or feedback.
|
29
|
-
*
|
30
|
-
* @example
|
31
|
-
* ```tsx
|
32
|
-
* 'use client';
|
33
|
-
* import { Input } from "@yahoo/uds";
|
34
|
-
*
|
35
|
-
* <Input label="Name" placeholder="Enter your name" required />
|
36
|
-
*```
|
37
|
-
*
|
38
|
-
* @related [Checkbox](https://uds.build/docs/components/checkbox), [Radio](https://uds.build/docs/components/radio).
|
39
|
-
**/
|
40
|
-
declare const Input: react.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
41
|
-
|
42
|
-
export { type InputProps as I, Input as a };
|
@@ -1,44 +0,0 @@
|
|
1
|
-
import * as react from 'react';
|
2
|
-
import { a as UniversalPressableProps } from './types-D113cJbW.cjs';
|
3
|
-
|
4
|
-
type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
|
5
|
-
interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
|
6
|
-
}
|
7
|
-
/**
|
8
|
-
* **🖲️ A primitive component for creating button interactions with accessibility support**
|
9
|
-
*
|
10
|
-
* @componentType Client component
|
11
|
-
*
|
12
|
-
* @description
|
13
|
-
* The Pressable component is a primitive component that can be used
|
14
|
-
* to create button interactions with accessibility support. It can be used
|
15
|
-
* to trigger an action, such as submitting a form, navigating to a new page,
|
16
|
-
* or adding interactivity to a section or card.
|
17
|
-
*
|
18
|
-
* @example
|
19
|
-
* ```tsx
|
20
|
-
* import { Pressable } from '@yahoo/uds';
|
21
|
-
*
|
22
|
-
* <Pressable
|
23
|
-
* backgroundColor="secondary"
|
24
|
-
* borderWidth="thin"
|
25
|
-
* borderColor="primary"
|
26
|
-
* borderRadius="lg"
|
27
|
-
* onPress={() => console.log('Pressed!')}
|
28
|
-
* >
|
29
|
-
* <Text variant="body1" color="primary" spacingHorizontal="7" spacingVertical="5">Click me...</Text>
|
30
|
-
* </Pressable>
|
31
|
-
* ```
|
32
|
-
*
|
33
|
-
* @usage
|
34
|
-
* - If you need to add interactivity to a section or card.
|
35
|
-
* - If you need a highly customized version of [Button](./button)
|
36
|
-
*
|
37
|
-
* @see The {@link https://uds.build/docs/components/pressable Pressable Docs} for more info
|
38
|
-
*
|
39
|
-
* @related [Button](https://uds.build/docs/components/button), [IconButton](https://uds.build/docs/components/icon-button)
|
40
|
-
*
|
41
|
-
*/
|
42
|
-
declare const Pressable: react.ForwardRefExoticComponent<PressableProps & react.RefAttributes<HTMLButtonElement>>;
|
43
|
-
|
44
|
-
export { type PressableProps as P, Pressable as a };
|
@@ -1,44 +0,0 @@
|
|
1
|
-
import * as react from 'react';
|
2
|
-
import { a as UniversalPressableProps } from './types-D113cJbW.js';
|
3
|
-
|
4
|
-
type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
|
5
|
-
interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
|
6
|
-
}
|
7
|
-
/**
|
8
|
-
* **🖲️ A primitive component for creating button interactions with accessibility support**
|
9
|
-
*
|
10
|
-
* @componentType Client component
|
11
|
-
*
|
12
|
-
* @description
|
13
|
-
* The Pressable component is a primitive component that can be used
|
14
|
-
* to create button interactions with accessibility support. It can be used
|
15
|
-
* to trigger an action, such as submitting a form, navigating to a new page,
|
16
|
-
* or adding interactivity to a section or card.
|
17
|
-
*
|
18
|
-
* @example
|
19
|
-
* ```tsx
|
20
|
-
* import { Pressable } from '@yahoo/uds';
|
21
|
-
*
|
22
|
-
* <Pressable
|
23
|
-
* backgroundColor="secondary"
|
24
|
-
* borderWidth="thin"
|
25
|
-
* borderColor="primary"
|
26
|
-
* borderRadius="lg"
|
27
|
-
* onPress={() => console.log('Pressed!')}
|
28
|
-
* >
|
29
|
-
* <Text variant="body1" color="primary" spacingHorizontal="7" spacingVertical="5">Click me...</Text>
|
30
|
-
* </Pressable>
|
31
|
-
* ```
|
32
|
-
*
|
33
|
-
* @usage
|
34
|
-
* - If you need to add interactivity to a section or card.
|
35
|
-
* - If you need a highly customized version of [Button](./button)
|
36
|
-
*
|
37
|
-
* @see The {@link https://uds.build/docs/components/pressable Pressable Docs} for more info
|
38
|
-
*
|
39
|
-
* @related [Button](https://uds.build/docs/components/button), [IconButton](https://uds.build/docs/components/icon-button)
|
40
|
-
*
|
41
|
-
*/
|
42
|
-
declare const Pressable: react.ForwardRefExoticComponent<PressableProps & react.RefAttributes<HTMLButtonElement>>;
|
43
|
-
|
44
|
-
export { type PressableProps as P, Pressable as a };
|
@@ -1,112 +0,0 @@
|
|
1
|
-
import * as react from 'react';
|
2
|
-
import { m as UniversalBoxProps, n as UniversalStackProps, o as UniversalDividerProps } from './types-D113cJbW.js';
|
3
|
-
|
4
|
-
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
5
|
-
interface BoxProps extends UniversalBoxProps, DivProps {
|
6
|
-
}
|
7
|
-
/**
|
8
|
-
* **📦 A layout component that can be used to compose other components**
|
9
|
-
*
|
10
|
-
* @description
|
11
|
-
* The most simple component we ship - a div. But with all the power of the UDS design system.
|
12
|
-
* By default, `Box` is a flexbox container. When working with vertical or horizontal layouts,
|
13
|
-
* consider using [VStack](./v-stack) or [HStack](./h-stack) respectively.
|
14
|
-
*
|
15
|
-
* @example
|
16
|
-
* ```tsx
|
17
|
-
* import { Box } from '@yahoo/uds';
|
18
|
-
*
|
19
|
-
* <Box backgroundColor="primary" spacing="6">
|
20
|
-
* Any kind of content can go here!
|
21
|
-
* </Box>
|
22
|
-
* ```
|
23
|
-
*
|
24
|
-
* @usage
|
25
|
-
* - If you need to div-like container to apply padding, shapes, or other styling.
|
26
|
-
* - If you're creating card components.
|
27
|
-
*
|
28
|
-
* @see The {@link https://uds.build/docs/components/box Box Docs} for more info
|
29
|
-
*
|
30
|
-
* @related [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
|
31
|
-
*/
|
32
|
-
declare const Box: react.ForwardRefExoticComponent<BoxProps & react.RefAttributes<HTMLDivElement>>;
|
33
|
-
|
34
|
-
interface DividerCoreProps extends Omit<BoxProps, 'color' | 'borderColor' | 'borderWidth'>, Omit<UniversalStackProps, 'separator' | 'asChild'>, Omit<UniversalDividerProps, 'variant'> {
|
35
|
-
layerClassNames?: {
|
36
|
-
root?: string;
|
37
|
-
text?: string;
|
38
|
-
line?: string;
|
39
|
-
};
|
40
|
-
}
|
41
|
-
|
42
|
-
type VariantWithInherit = Exclude<UniversalDividerProps['variant'], undefined> | 'inherit';
|
43
|
-
interface DividerInternalProps extends DividerCoreProps {
|
44
|
-
variant?: VariantWithInherit;
|
45
|
-
}
|
46
|
-
|
47
|
-
type DividerProps = Omit<DividerInternalProps, 'layerClassNames'>;
|
48
|
-
/**
|
49
|
-
* **📦 A divider component that can be used to visually separate components**
|
50
|
-
*
|
51
|
-
* @description
|
52
|
-
* The Divider component is a visual element used to separate content and create clear groupings within a layout. It helps establish hierarchy, improve readability, and guide users through sections of an interface. Dividers can appear as horizontal or vertical lines and are commonly used between related content blocks, within menus, or in dense UI areas to reduce visual clutter.
|
53
|
-
*
|
54
|
-
* @example
|
55
|
-
* ```tsx
|
56
|
-
* import { Divider } from '@yahoo/uds';
|
57
|
-
*
|
58
|
-
* // Default primary horizontal divider. Similar to <hr />
|
59
|
-
* <Divider />
|
60
|
-
*
|
61
|
-
* // A vertical divider.
|
62
|
-
* <Divider vertical />
|
63
|
-
*
|
64
|
-
* // A horizontal divider with the secondary styling.
|
65
|
-
* <Divider variant="secondary" />
|
66
|
-
*
|
67
|
-
* // A vertical divider with the tertiary styling.
|
68
|
-
* <Divider vertical variant="tertiary" />
|
69
|
-
* ```
|
70
|
-
*
|
71
|
-
* @usage
|
72
|
-
* - Visually separating parts of a page. Usually used in conjuction with [HStack](./h-stack) or [VStack](./v-stack).
|
73
|
-
*
|
74
|
-
* @see The {@link https://uds.build/docs/components/divider Divider Docs} for more info
|
75
|
-
*
|
76
|
-
* @related [Box](https://uds.build/docs/components/box), [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
|
77
|
-
*/
|
78
|
-
declare const Divider: react.ForwardRefExoticComponent<DividerProps & react.RefAttributes<HTMLDivElement>>;
|
79
|
-
|
80
|
-
type VStackProps = UniversalStackProps & DivProps;
|
81
|
-
/**
|
82
|
-
* **🥞 A layout component that arranges its children in rows using flexbox**
|
83
|
-
*
|
84
|
-
* @description
|
85
|
-
* VStack is a layout component that arranges its children in rows using [flexbox](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox)
|
86
|
-
* and can be used to compose larger layouts. VStack is similar to [Box](./box) but provides additional features like a `gap` property to
|
87
|
-
* add spacing between children.
|
88
|
-
*
|
89
|
-
* @example
|
90
|
-
* ```tsx
|
91
|
-
* import { VStack, Text } from '@yahoo/uds';
|
92
|
-
*
|
93
|
-
* <VStack gap="6">
|
94
|
-
* <Text variant="body1" color="primary">First</Text>
|
95
|
-
* <Text variant="body1" color="primary">Second</Text>
|
96
|
-
* <Text variant="body1" color="primary">Third</Text>
|
97
|
-
* </VStack>
|
98
|
-
* ```
|
99
|
-
*
|
100
|
-
* @usage
|
101
|
-
* - Create a column of items, optionally with gaps between.
|
102
|
-
* - Create rows that are sized to their content (height only). By default each child will fill the width of the VStack.
|
103
|
-
* - Create rows that fill the available space within the parent container.
|
104
|
-
* - Create rows of proportionate size to each other (also known as a ratio-based layout).
|
105
|
-
*
|
106
|
-
* @see The {@link https://uds.build/docs/components/v-stack VStack Docs} for more info
|
107
|
-
*
|
108
|
-
* @related [Box](https://uds.build/docs/components/box), [HStack](https://uds.build/docs/components/h-stack)
|
109
|
-
**/
|
110
|
-
declare const VStack: react.ForwardRefExoticComponent<UniversalStackProps & DivProps & react.RefAttributes<HTMLDivElement>>;
|
111
|
-
|
112
|
-
export { type BoxProps as B, type DividerProps as D, type VStackProps as V, type DivProps as a, Box as b, Divider as c, VStack as d };
|