@yahoo/uds 3.53.0 → 3.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/utils/configWorker.ts +2 -7
- package/dist/{Box-UFimrc8A.d.cts → Box-BrCNYpJf.d.cts} +1 -1
- package/dist/{Box-BTypshx6.d.ts → Box-CZiBJY-U.d.ts} +1 -1
- package/dist/{Box-CBmDMJqu.d.ts → Box-DvNI3HDT.d.ts} +1 -1
- package/dist/{Box-Fp6C8p0o.d.cts → Box-L9TrtxY6.d.cts} +1 -1
- package/dist/{Pressable-BkG5JEtl.d.cts → Pressable-Bzvs31vV.d.cts} +1 -1
- package/dist/{Pressable-DKQvrcC0.d.ts → Pressable-C_cD8YqL.d.ts} +1 -1
- package/dist/{Pressable-CfDFSCDf.d.cts → Pressable-CpTWnaJC.d.cts} +1 -1
- package/dist/{Pressable-DjIXR0Fy.d.ts → Pressable-CrGdyngS.d.ts} +1 -1
- package/dist/{Text-CiP8Me3d.d.cts → Text-CTWa1DHn.d.cts} +1 -1
- package/dist/{Text-CtmIdGJm.d.cts → Text-CpFNy7i9.d.cts} +1 -1
- package/dist/{Text-DyzX3P8H.d.ts → Text-DxibXWon.d.ts} +1 -1
- package/dist/{Text-f-wnu9Eq.d.ts → Text-cfrk-aSz.d.ts} +1 -1
- package/dist/{VStack-BmvkK46o.d.ts → VStack-APl_ya0J.d.ts} +2 -2
- package/dist/{VStack-4RUygAt3.d.cts → VStack-BZA9jJeV.d.cts} +2 -2
- package/dist/{VStack-D0A-vg14.d.ts → VStack-CITd7-eN.d.ts} +2 -2
- package/dist/{VStack-c0PLMC6X.d.cts → VStack-DasFpGHh.d.cts} +2 -2
- package/dist/chunk-RKYTJ6XJ.js +2 -0
- package/dist/chunk-RRXNQVLV.cjs +1 -0
- package/dist/client/Menu.d.cts +4 -4
- package/dist/client/Menu.d.ts +4 -4
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/defaultTokensConfig.cjs +1 -1
- package/dist/defaultTokensConfig.d.cts +2 -2
- package/dist/defaultTokensConfig.d.ts +2 -2
- package/dist/defaultTokensConfig.js +1 -1
- package/dist/experimental/client/SwitchV2.cjs +0 -1
- package/dist/experimental/client/SwitchV2.d.cts +1 -1
- package/dist/experimental/client/SwitchV2.d.ts +1 -1
- package/dist/experimental/client/SwitchV2.js +0 -1
- package/dist/fixtures.cjs +2 -344
- package/dist/fixtures.d.cts +1 -19
- package/dist/fixtures.d.ts +1 -19
- package/dist/fixtures.js +1 -341
- package/dist/{index-CynzbL1I.d.ts → index-Bj4zcQ8D.d.ts} +1 -1
- package/dist/{index-x2kCLG17.d.ts → index-DvgJJnbq.d.ts} +1 -1
- package/dist/{index-C8Il81Uq.d.cts → index-fOaETFpl.d.cts} +1 -1
- package/dist/{index-CZdNenSe.d.cts → index-jFh7u5rS.d.cts} +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- 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.d.cts +1 -1
- package/dist/tailwind/plugin.d.ts +1 -1
- package/dist/tailwind/plugin.js +1 -1
- package/dist/tailwind/utils.d.cts +1 -1
- package/dist/tailwind/utils.d.ts +1 -1
- package/dist/tokens/automation/configs.d.cts +2 -2
- package/dist/tokens/automation/configs.d.ts +2 -2
- package/dist/tokens/automation/properties.d.cts +2 -2
- package/dist/tokens/automation/properties.d.ts +2 -2
- package/dist/tokens/index.d.cts +4 -4
- package/dist/tokens/index.d.ts +4 -4
- package/dist/tokens/parseTokens.cjs +1 -1
- package/dist/tokens/parseTokens.d.cts +7 -19
- package/dist/tokens/parseTokens.d.ts +7 -19
- package/dist/tokens/parseTokens.js +1 -1
- package/dist/{types-D4nxp5eC.d.cts → types-BAsHl1tU.d.cts} +0 -7
- package/dist/{types-D4nxp5eC.d.ts → types-BAsHl1tU.d.ts} +0 -7
- package/dist/{types-DCAXTOkZ.d.cts → types-CRqbgWm9.d.cts} +0 -7
- package/dist/{types-DCAXTOkZ.d.ts → types-CRqbgWm9.d.ts} +0 -7
- package/package.json +1 -1
- package/cli/FlattenButtonVariant.mock.tsx +0 -17
- package/dist/chunk-F43AI46P.cjs +0 -1
- package/dist/chunk-MLPUM5T5.js +0 -2
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
"use strict";var e=require("../../chunk-WQLTYMTS.cjs"),t=require("../../chunk-G2EVPCQY.cjs"),a=require("../../chunk-24SIYFLS.cjs"),o=require("motion/react-m"),i=require("react"),r=require("react/jsx-runtime");function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(a){if("default"!==a){var o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:function(){return e[a]}})}}),t.default=e,Object.freeze(t)}var c=()=>import("../../domMax-7KVFVNKB.cjs").then(({domMax:e})=>e),s=n(o).create(a.Box),l=i.forwardRef(function({id:o,isOn:n,defaultIsOn:l,onChange:d,label:u,labelPosition:h="start",size:f="md",onIcon:x,offIcon:m,reduceMotion:p,disabled:y,required:b,onFocus:w,onBlur:v,className:S,layerClassNames:g,...j},N){const C=i.useId(),V=o??`uds-input-${C}`,k=i.useRef(null),I=void 0!==n,[q,M]=i.useState(I?n:l),z=i.useCallback(e=>{d?.(e),I||M(e.target.checked)},[I,d]),B=i.useCallback(e=>{w?.(e)},[w]),O=i.useCallback(e=>{v?.(e)},[v]),P=p?"always":"user",A=p?"duration-0":"duration-120 motion-reduce:duration-0";i.useEffect(()=>{I&&M(n)},[n,I]);const F={root:a.getStyles({switchSizeRoot:f,switchVariantRoot:"default",switchVariantActiveRoot:q?"on":"off",className:a.cx("group","flex","items-center","start"===h?"flex-row":"flex-row-reverse",...y?["cursor-default","opacity-50"]:["cursor-pointer"],g?.root,S)}),switch:a.getStyles({switchVariantSwitch:"default",switchSizeSwitch:f,switchVariantActiveSwitch:q?"on":"off",className:a.cx("uds-ring","uds-ring-within","relative","rounded-full","items-center",A,"transition-[background-color,box-shadow]",g?.switch)}),handleContainer:a.cx("pointer-events-none","relative","w-full","h-full"),handle:a.getStyles({switchSizeHandle:f,className:a.cx("absolute","top-0","bottom-0",q?"right-0":"left-0",g?.handle)}),handleContents:a.cx("relative","w-full","h-full","rounded-full","overflow-hidden",!y&&"group-hover:scale-105","opacity-95",!y&&"group-hover:opacity-100",A,"transition-[transform,opacity]"),handleCircle:a.getStyles({switchVariantActiveHandle:q?"on":"off",switchVariantHandle:"default",className:a.cx("absolute","top-0","left-0","right-0","bottom-0")}),handleIcon:a.getStyles({switchSizeHandleIcon:f,switchVariantHandleIcon:"default",switchVariantActiveHandleIcon:q?"on":"off",className:a.cx("absolute","opacity-0","top-1/2","left-1/2","transform","translate-x-[-50%]","translate-y-[-50%]",A,"transition-opacity")}),htmlCheckbox:a.cx("cursor-[inherit]","absolute","opacity-0","top-1/2","left-1/2","w-[calc(100%+2px)]","h-[calc(100%+2px)]","transform","translate-x-[-50%]","translate-y-[-50%]"),label:a.cx("start"===h?"text-start":"text-end",g?.label)},H=u?"label":"div";return r.jsx(t.SpringMotionConfig,{reducedMotion:P,loadFeatures:c,layoutVariant:"bouncy",layoutSpeed:"4",children:r.jsxs(H,{className:F.root,"data-testid":"switch-root",tabIndex:-1,children:[r.jsxs(a.Box,{className:F.switch,children:[r.jsx("input",{type:"checkbox",...j,ref:e=>{k.current=e,"function"==typeof N?N(e):null!==N&&(N.current=e)},onFocus:B,onBlur:O,id:V,disabled:y,required:b,checked:I?q:void 0,defaultChecked:I?void 0:l,onChange:z,className:F.htmlCheckbox,style:{}}),r.jsx(a.Box,{className:F.handleContainer,children:r.jsx(s,{className:F.handle,layout:"position",layoutDependency:q,children:r.jsxs(a.Box,{className:F.handleContents,children:[r.jsx(a.Box,{className:F.handleCircle}),x&&r.jsx(a.IconSlot,{icon:x,iconProps:{variant:"fill",size:"sm"},"data-testid":"on-icon",className:a.cx(F.handleIcon,q?"opacity-100":"opacity-0")}),m&&r.jsx(a.IconSlot,{icon:m,iconProps:{variant:"fill",size:"sm"},"data-testid":"off-icon",className:a.cx(F.handleIcon,q?"opacity-0":"opacity-100")})]})})})]}),u&&r.jsx(e.FormLabel,{as:"div",variant:"inherit",color:"inherit",required:b,label:u,className:F.label})]})})});/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */l.displayName="SwitchV2";var d=t.AvoidMotionLibraryProvider;exports.SwitchV2=l,exports.SwitchV2AvoidMotionLibraryProvider=d;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import{FormLabel as t}from"../../chunk-5ZBIY6AW.js";import{SpringMotionConfig as e,AvoidMotionLibraryProvider as a}from"../../chunk-WJFHQKE4.js";import{Box as o,cx as i,getStyles as n,IconSlot as r}from"../../chunk-XHHJDMZ3.js";import*as l from"motion/react-m";import{forwardRef as c,useId as s,useRef as d,useState as h,useCallback as u,useEffect as m}from"react";import{jsx as f,jsxs as p}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var w=()=>import("../../domMax-XRPNJ6D3.js").then(({domMax:t})=>t),y=l.create(o),b=c(function({id:a,isOn:l,defaultIsOn:c,onChange:b,label:v,labelPosition:N="start",size:x="md",onIcon:C,offIcon:g,reduceMotion:I,disabled:k,required:V,onFocus:H,onBlur:S,className:z,layerClassNames:j,...A},M){const F=s(),P=a??`uds-input-${F}`,R=d(null),q=void 0!==l,[B,D]=h(q?l:c),J=u(t=>{b?.(t),q||D(t.target.checked)},[q,b]),O=u(t=>{H?.(t)},[H]),W=u(t=>{S?.(t)},[S]),X=I?"always":"user",Z=I?"duration-0":"duration-120 motion-reduce:duration-0";m(()=>{q&&D(l)},[l,q]);const E={root:n({switchSizeRoot:x,switchVariantRoot:"default",switchVariantActiveRoot:B?"on":"off",className:i("group","flex","items-center","start"===N?"flex-row":"flex-row-reverse",...k?["cursor-default","opacity-50"]:["cursor-pointer"],j?.root,z)}),switch:n({switchVariantSwitch:"default",switchSizeSwitch:x,switchVariantActiveSwitch:B?"on":"off",className:i("uds-ring","uds-ring-within","relative","rounded-full","items-center",Z,"transition-[background-color,box-shadow]",j?.switch)}),handleContainer:i("pointer-events-none","relative","w-full","h-full"),handle:n({switchSizeHandle:x,className:i("absolute","top-0","bottom-0",B?"right-0":"left-0",j?.handle)}),handleContents:i("relative","w-full","h-full","rounded-full","overflow-hidden",!k&&"group-hover:scale-105","opacity-95",!k&&"group-hover:opacity-100",Z,"transition-[transform,opacity]"),handleCircle:n({switchVariantActiveHandle:B?"on":"off",switchVariantHandle:"default",className:i("absolute","top-0","left-0","right-0","bottom-0")}),handleIcon:n({switchSizeHandleIcon:x,switchVariantHandleIcon:"default",switchVariantActiveHandleIcon:B?"on":"off",className:i("absolute","opacity-0","top-1/2","left-1/2","transform","translate-x-[-50%]","translate-y-[-50%]",Z,"transition-opacity")}),htmlCheckbox:i("cursor-[inherit]","absolute","opacity-0","top-1/2","left-1/2","w-[calc(100%+2px)]","h-[calc(100%+2px)]","transform","translate-x-[-50%]","translate-y-[-50%]"),label:i("start"===N?"text-start":"text-end",j?.label)};return f(e,{reducedMotion:X,loadFeatures:w,layoutVariant:"bouncy",layoutSpeed:"4",children:p(v?"label":"div",{className:E.root,"data-testid":"switch-root",tabIndex:-1,children:[p(o,{className:E.switch,children:[f("input",{type:"checkbox",...A,ref:t=>{R.current=t,"function"==typeof M?M(t):null!==M&&(M.current=t)},onFocus:O,onBlur:W,id:P,disabled:k,required:V,checked:q?B:void 0,defaultChecked:q?void 0:c,onChange:J,className:E.htmlCheckbox,style:{}}),f(o,{className:E.handleContainer,children:f(y,{className:E.handle,layout:"position",layoutDependency:B,children:p(o,{className:E.handleContents,children:[f(o,{className:E.handleCircle}),C&&f(r,{icon:C,iconProps:{variant:"fill",size:"sm"},"data-testid":"on-icon",className:i(E.handleIcon,B?"opacity-100":"opacity-0")}),g&&f(r,{icon:g,iconProps:{variant:"fill",size:"sm"},"data-testid":"off-icon",className:i(E.handleIcon,B?"opacity-0":"opacity-100")})]})})})]}),v&&f(t,{as:"div",variant:"inherit",color:"inherit",required:V,label:v,className:E.label})]})})});b.displayName="SwitchV2";var v=a;export{b as SwitchV2,v as SwitchV2AvoidMotionLibraryProvider};
|
package/dist/fixtures.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.alwaysPaletteAliases = exports.avatarShapes = exports.avatarSizes = exports.backgroundColors = exports.backgroundPaletteColors = exports.badgeSizes = exports.badgeVariants = exports.borderRadii = exports.borderRadiusRamp = exports.borderWidthRamp = exports.borderWidths = exports.breakpoints = exports.buttonClassNames = exports.buttonColorProperties = exports.buttonIconSvgSize = exports.buttonKinds = exports.buttonMotionEffects = exports.buttonMotionProperties = exports.buttonPalettes = exports.buttonSizeProperties = exports.buttonSizes = exports.buttonStates = exports.buttonVariants = exports.buttonVariantsFlat = exports.buttonVariantsPrimary = exports.buttonVariantsSecondary = exports.buttonVariantsTertiary = exports.checkboxSizes = exports.checkboxVariants = exports.chipSizes =
|
|
3
|
+
exports.chipVariants = exports.colorModes = exports.fontAliases = exports.fontIds = exports.fontUrls = exports.fontWeights = exports.foregroundColors = exports.foregroundPaletteColors = exports.hueSteps = exports.hues = exports.iconButtonClassNames = exports.iconButtonSizes = exports.iconSizes = exports.iconVariants = exports.inputSizes = exports.lineColors = exports.linePaletteColors = exports.motionSpringConfig = exports.motionSpringConfigOptions = exports.motionVariantSpeeds = exports.motionVariants = exports.palette = exports.regionModes = exports.scaleEffectMap = exports.scaleModes = exports.shadowColors = exports.shadowOffsetMap = exports.shadowOffsets = exports.shadowOpacities = exports.shadowOpacityMap = exports.shadowPaletteColors = exports.shadowSpreadRadii = exports.shadowSpreadRadiusMap = exports.shadowVariants = exports.shadowVariantsInvert = exports.shadowVariantsWithInvert = exports.spacingAliases = exports.spacingMap = exports.spectrumColors = exports.switchSizes = exports.tailwindColorsAsUds = exports.textDecorationLines = exports.textProperties = exports.textTransforms = exports.textVariants = exports.textVariantsTypography = exports.textVariantsUi = exports.textVariantsWithoutEmphasized = exports.tshirtSizes = exports.typographyStyleProperties = void 0;
|
|
4
|
+
exports.alwaysPaletteAliases = exports.avatarShapes = exports.avatarSizes = exports.backgroundColors = exports.backgroundPaletteColors = exports.badgeSizes = exports.badgeVariants = exports.borderRadii = exports.borderRadiusRamp = exports.borderWidthRamp = exports.borderWidths = exports.breakpoints = exports.buttonClassNames = exports.buttonColorProperties = exports.buttonIconSvgSize = exports.buttonKinds = exports.buttonMotionEffects = exports.buttonMotionProperties = exports.buttonPalettes = exports.buttonSizeProperties = exports.buttonSizes = exports.buttonStates = exports.buttonVariants = exports.buttonVariantsFlat = exports.buttonVariantsPrimary = exports.buttonVariantsSecondary = exports.buttonVariantsTertiary = exports.checkboxSizes = exports.checkboxVariants = exports.chipSizes = void 0;
|
|
5
5
|
exports.sortPalette = sortPalette;
|
|
6
6
|
var __create = Object.create;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -2140,348 +2140,6 @@ var textTransforms = [
|
|
|
2140
2140
|
"capitalize"
|
|
2141
2141
|
];
|
|
2142
2142
|
exports.textTransforms = textTransforms;
|
|
2143
|
-
var fontSizeRamp = {
|
|
2144
|
-
xSmall: {
|
|
2145
|
-
display1: -2,
|
|
2146
|
-
display2: -3,
|
|
2147
|
-
display3: -3,
|
|
2148
|
-
title1: -3,
|
|
2149
|
-
title2: -3,
|
|
2150
|
-
title3: -3,
|
|
2151
|
-
title4: -3,
|
|
2152
|
-
headline1: -3,
|
|
2153
|
-
body1: -3,
|
|
2154
|
-
label1: -2,
|
|
2155
|
-
label2: -2,
|
|
2156
|
-
label3: -2,
|
|
2157
|
-
label4: -2,
|
|
2158
|
-
caption1: -1,
|
|
2159
|
-
caption2: -1,
|
|
2160
|
-
legal1: -1,
|
|
2161
|
-
ui1: 0,
|
|
2162
|
-
ui2: 0,
|
|
2163
|
-
ui3: 0,
|
|
2164
|
-
ui4: 0,
|
|
2165
|
-
ui5: 0,
|
|
2166
|
-
ui6: 0
|
|
2167
|
-
},
|
|
2168
|
-
small: {
|
|
2169
|
-
display1: -2,
|
|
2170
|
-
display2: -2,
|
|
2171
|
-
display3: -2,
|
|
2172
|
-
title1: -2,
|
|
2173
|
-
title2: -2,
|
|
2174
|
-
title3: -2,
|
|
2175
|
-
title4: -2,
|
|
2176
|
-
headline1: -2,
|
|
2177
|
-
body1: -2,
|
|
2178
|
-
label1: -1,
|
|
2179
|
-
label2: -1,
|
|
2180
|
-
label3: -1,
|
|
2181
|
-
label4: -1,
|
|
2182
|
-
caption1: 0,
|
|
2183
|
-
caption2: 0,
|
|
2184
|
-
legal1: 0,
|
|
2185
|
-
ui1: 0,
|
|
2186
|
-
ui2: 0,
|
|
2187
|
-
ui3: 0,
|
|
2188
|
-
ui4: 0,
|
|
2189
|
-
ui5: 0,
|
|
2190
|
-
ui6: 0
|
|
2191
|
-
},
|
|
2192
|
-
medium: {
|
|
2193
|
-
display1: -1,
|
|
2194
|
-
display2: -1,
|
|
2195
|
-
display3: -1,
|
|
2196
|
-
title1: -1,
|
|
2197
|
-
title2: -1,
|
|
2198
|
-
title3: -1,
|
|
2199
|
-
title4: -1,
|
|
2200
|
-
headline1: -1,
|
|
2201
|
-
body1: -1,
|
|
2202
|
-
label1: -1,
|
|
2203
|
-
label2: -1,
|
|
2204
|
-
label3: -1,
|
|
2205
|
-
label4: -1,
|
|
2206
|
-
caption1: 0,
|
|
2207
|
-
caption2: 0,
|
|
2208
|
-
legal1: 0,
|
|
2209
|
-
ui1: 0,
|
|
2210
|
-
ui2: 0,
|
|
2211
|
-
ui3: 0,
|
|
2212
|
-
ui4: 0,
|
|
2213
|
-
ui5: 0,
|
|
2214
|
-
ui6: 0
|
|
2215
|
-
},
|
|
2216
|
-
large: {
|
|
2217
|
-
display1: 0,
|
|
2218
|
-
display2: 0,
|
|
2219
|
-
display3: 0,
|
|
2220
|
-
title1: 0,
|
|
2221
|
-
title2: 0,
|
|
2222
|
-
title3: 0,
|
|
2223
|
-
title4: 0,
|
|
2224
|
-
headline1: 0,
|
|
2225
|
-
body1: 0,
|
|
2226
|
-
label1: 0,
|
|
2227
|
-
label2: 0,
|
|
2228
|
-
label3: 0,
|
|
2229
|
-
label4: 0,
|
|
2230
|
-
caption1: 0,
|
|
2231
|
-
caption2: 0,
|
|
2232
|
-
legal1: 0,
|
|
2233
|
-
ui1: 0,
|
|
2234
|
-
ui2: 0,
|
|
2235
|
-
ui3: 0,
|
|
2236
|
-
ui4: 0,
|
|
2237
|
-
ui5: 0,
|
|
2238
|
-
ui6: 0
|
|
2239
|
-
},
|
|
2240
|
-
xLarge: {
|
|
2241
|
-
display1: 2,
|
|
2242
|
-
display2: 2,
|
|
2243
|
-
display3: 2,
|
|
2244
|
-
title1: 2,
|
|
2245
|
-
title2: 2,
|
|
2246
|
-
title3: 2,
|
|
2247
|
-
title4: 2,
|
|
2248
|
-
headline1: 2,
|
|
2249
|
-
body1: 0,
|
|
2250
|
-
label1: 2,
|
|
2251
|
-
label2: 2,
|
|
2252
|
-
label3: 2,
|
|
2253
|
-
label4: 2,
|
|
2254
|
-
caption1: 2,
|
|
2255
|
-
caption2: 2,
|
|
2256
|
-
legal1: 2,
|
|
2257
|
-
ui1: 2,
|
|
2258
|
-
ui2: 2,
|
|
2259
|
-
ui3: 2,
|
|
2260
|
-
ui4: 2,
|
|
2261
|
-
ui5: 2,
|
|
2262
|
-
ui6: 2
|
|
2263
|
-
},
|
|
2264
|
-
xxLarge: {
|
|
2265
|
-
display1: 4,
|
|
2266
|
-
display2: 4,
|
|
2267
|
-
display3: 4,
|
|
2268
|
-
title1: 4,
|
|
2269
|
-
title2: 4,
|
|
2270
|
-
title3: 4,
|
|
2271
|
-
title4: 6,
|
|
2272
|
-
headline1: 4,
|
|
2273
|
-
body1: 4,
|
|
2274
|
-
label1: 4,
|
|
2275
|
-
label2: 4,
|
|
2276
|
-
label3: 4,
|
|
2277
|
-
label4: 4,
|
|
2278
|
-
caption1: 4,
|
|
2279
|
-
caption2: 4,
|
|
2280
|
-
legal1: 4,
|
|
2281
|
-
ui1: 4,
|
|
2282
|
-
ui2: 4,
|
|
2283
|
-
ui3: 4,
|
|
2284
|
-
ui4: 4,
|
|
2285
|
-
ui5: 4,
|
|
2286
|
-
ui6: 4
|
|
2287
|
-
},
|
|
2288
|
-
xxxLarge: {
|
|
2289
|
-
display1: 6,
|
|
2290
|
-
display2: 6,
|
|
2291
|
-
display3: 6,
|
|
2292
|
-
title1: 6,
|
|
2293
|
-
title2: 6,
|
|
2294
|
-
title3: 6,
|
|
2295
|
-
title4: 8,
|
|
2296
|
-
headline1: 6,
|
|
2297
|
-
body1: 6,
|
|
2298
|
-
label1: 6,
|
|
2299
|
-
label2: 6,
|
|
2300
|
-
label3: 6,
|
|
2301
|
-
label4: 6,
|
|
2302
|
-
caption1: 6,
|
|
2303
|
-
caption2: 6,
|
|
2304
|
-
legal1: 6,
|
|
2305
|
-
ui1: 6,
|
|
2306
|
-
ui2: 6,
|
|
2307
|
-
ui3: 6,
|
|
2308
|
-
ui4: 6,
|
|
2309
|
-
ui5: 6,
|
|
2310
|
-
ui6: 6
|
|
2311
|
-
}
|
|
2312
|
-
};
|
|
2313
|
-
exports.fontSizeRamp = fontSizeRamp;
|
|
2314
|
-
var lineHeightRamp = {
|
|
2315
|
-
xSmall: {
|
|
2316
|
-
display1: 0,
|
|
2317
|
-
display3: 0,
|
|
2318
|
-
display2: 0,
|
|
2319
|
-
title1: -4,
|
|
2320
|
-
title2: -4,
|
|
2321
|
-
title3: -4,
|
|
2322
|
-
title4: 0,
|
|
2323
|
-
headline1: -4,
|
|
2324
|
-
body1: -4,
|
|
2325
|
-
label1: -4,
|
|
2326
|
-
label2: -4,
|
|
2327
|
-
label3: -4,
|
|
2328
|
-
label4: -4,
|
|
2329
|
-
caption1: 0,
|
|
2330
|
-
caption2: 0,
|
|
2331
|
-
legal1: -4,
|
|
2332
|
-
ui1: 0,
|
|
2333
|
-
ui2: 0,
|
|
2334
|
-
ui3: 0,
|
|
2335
|
-
ui4: 0,
|
|
2336
|
-
ui5: 0,
|
|
2337
|
-
ui6: 0
|
|
2338
|
-
},
|
|
2339
|
-
small: {
|
|
2340
|
-
display1: 0,
|
|
2341
|
-
display3: 0,
|
|
2342
|
-
display2: 0,
|
|
2343
|
-
title1: 0,
|
|
2344
|
-
title2: -4,
|
|
2345
|
-
title3: -4,
|
|
2346
|
-
title4: 0,
|
|
2347
|
-
headline1: 0,
|
|
2348
|
-
body1: 0,
|
|
2349
|
-
label1: -4,
|
|
2350
|
-
label2: -4,
|
|
2351
|
-
label3: -4,
|
|
2352
|
-
label4: -4,
|
|
2353
|
-
caption1: 0,
|
|
2354
|
-
caption2: 0,
|
|
2355
|
-
legal1: 0,
|
|
2356
|
-
ui1: 0,
|
|
2357
|
-
ui2: 0,
|
|
2358
|
-
ui3: 0,
|
|
2359
|
-
ui4: 0,
|
|
2360
|
-
ui5: 0,
|
|
2361
|
-
ui6: 0
|
|
2362
|
-
},
|
|
2363
|
-
medium: {
|
|
2364
|
-
display1: 0,
|
|
2365
|
-
display3: 0,
|
|
2366
|
-
display2: 0,
|
|
2367
|
-
title1: 0,
|
|
2368
|
-
title2: 0,
|
|
2369
|
-
title3: 0,
|
|
2370
|
-
title4: 0,
|
|
2371
|
-
headline1: 0,
|
|
2372
|
-
body1: 0,
|
|
2373
|
-
label1: -4,
|
|
2374
|
-
label2: -4,
|
|
2375
|
-
label3: -4,
|
|
2376
|
-
label4: -4,
|
|
2377
|
-
caption1: 0,
|
|
2378
|
-
caption2: 0,
|
|
2379
|
-
legal1: 0,
|
|
2380
|
-
ui1: 0,
|
|
2381
|
-
ui2: 0,
|
|
2382
|
-
ui3: 0,
|
|
2383
|
-
ui4: 0,
|
|
2384
|
-
ui5: 0,
|
|
2385
|
-
ui6: 0
|
|
2386
|
-
},
|
|
2387
|
-
large: {
|
|
2388
|
-
display1: 0,
|
|
2389
|
-
display3: 0,
|
|
2390
|
-
display2: 0,
|
|
2391
|
-
title1: 0,
|
|
2392
|
-
title2: 0,
|
|
2393
|
-
title3: 0,
|
|
2394
|
-
title4: 0,
|
|
2395
|
-
headline1: 0,
|
|
2396
|
-
body1: 0,
|
|
2397
|
-
label1: 0,
|
|
2398
|
-
label2: 0,
|
|
2399
|
-
label3: 0,
|
|
2400
|
-
label4: 0,
|
|
2401
|
-
caption1: 0,
|
|
2402
|
-
caption2: 0,
|
|
2403
|
-
legal1: 0,
|
|
2404
|
-
ui1: 0,
|
|
2405
|
-
ui2: 0,
|
|
2406
|
-
ui3: 0,
|
|
2407
|
-
ui4: 0,
|
|
2408
|
-
ui5: 0,
|
|
2409
|
-
ui6: 0
|
|
2410
|
-
},
|
|
2411
|
-
xLarge: {
|
|
2412
|
-
display1: 0,
|
|
2413
|
-
display3: 0,
|
|
2414
|
-
display2: 0,
|
|
2415
|
-
title1: 4,
|
|
2416
|
-
title2: 0,
|
|
2417
|
-
title3: 0,
|
|
2418
|
-
title4: 0,
|
|
2419
|
-
headline1: 4,
|
|
2420
|
-
body1: 4,
|
|
2421
|
-
label1: 0,
|
|
2422
|
-
label2: 0,
|
|
2423
|
-
label3: 0,
|
|
2424
|
-
label4: 0,
|
|
2425
|
-
caption1: 4,
|
|
2426
|
-
caption2: 4,
|
|
2427
|
-
legal1: 0,
|
|
2428
|
-
ui1: 0,
|
|
2429
|
-
ui2: 0,
|
|
2430
|
-
ui3: 0,
|
|
2431
|
-
ui4: 0,
|
|
2432
|
-
ui5: 0,
|
|
2433
|
-
ui6: 0
|
|
2434
|
-
},
|
|
2435
|
-
xxLarge: {
|
|
2436
|
-
display1: 0,
|
|
2437
|
-
display3: 0,
|
|
2438
|
-
display2: 0,
|
|
2439
|
-
title1: 4,
|
|
2440
|
-
title2: 4,
|
|
2441
|
-
title3: 4,
|
|
2442
|
-
title4: 0,
|
|
2443
|
-
headline1: 8,
|
|
2444
|
-
body1: 8,
|
|
2445
|
-
label1: 4,
|
|
2446
|
-
label2: 4,
|
|
2447
|
-
label3: 4,
|
|
2448
|
-
label4: 4,
|
|
2449
|
-
caption1: 4,
|
|
2450
|
-
caption2: 4,
|
|
2451
|
-
legal1: 4,
|
|
2452
|
-
ui1: 0,
|
|
2453
|
-
ui2: 0,
|
|
2454
|
-
ui3: 0,
|
|
2455
|
-
ui4: 0,
|
|
2456
|
-
ui5: 0,
|
|
2457
|
-
ui6: 0
|
|
2458
|
-
},
|
|
2459
|
-
xxxLarge: {
|
|
2460
|
-
display1: 0,
|
|
2461
|
-
display3: 0,
|
|
2462
|
-
display2: 0,
|
|
2463
|
-
title1: 8,
|
|
2464
|
-
title2: 8,
|
|
2465
|
-
title3: 4,
|
|
2466
|
-
title4: 8,
|
|
2467
|
-
headline1: 8,
|
|
2468
|
-
body1: 8,
|
|
2469
|
-
label1: 8,
|
|
2470
|
-
label2: 8,
|
|
2471
|
-
label3: 8,
|
|
2472
|
-
label4: 8,
|
|
2473
|
-
caption1: 8,
|
|
2474
|
-
caption2: 8,
|
|
2475
|
-
legal1: 4,
|
|
2476
|
-
ui1: 0,
|
|
2477
|
-
ui2: 0,
|
|
2478
|
-
ui3: 0,
|
|
2479
|
-
ui4: 0,
|
|
2480
|
-
ui5: 0,
|
|
2481
|
-
ui6: 0
|
|
2482
|
-
}
|
|
2483
|
-
};
|
|
2484
|
-
exports.lineHeightRamp = lineHeightRamp;
|
|
2485
2143
|
var avatarSizes = [
|
|
2486
2144
|
"sm",
|
|
2487
2145
|
"md",
|
package/dist/fixtures.d.cts
CHANGED
|
@@ -35,24 +35,6 @@ declare const fontIds: ("centra-no2" | "inter" | "roboto-mono" | "yahoo-sans" |
|
|
|
35
35
|
declare const fontUrls: FontFamilyCDNUrl[];
|
|
36
36
|
declare const fontWeights: FontWeightDescriptive[];
|
|
37
37
|
declare const textTransforms: TextTransform[];
|
|
38
|
-
declare const fontSizeRamp: {
|
|
39
|
-
xSmall: Record<TextVariant, number>;
|
|
40
|
-
small: Record<TextVariant, number>;
|
|
41
|
-
medium: Record<TextVariant, number>;
|
|
42
|
-
large: Record<TextVariant, number>;
|
|
43
|
-
xLarge: Record<TextVariant, number>;
|
|
44
|
-
xxLarge: Record<TextVariant, number>;
|
|
45
|
-
xxxLarge: Record<TextVariant, number>;
|
|
46
|
-
};
|
|
47
|
-
declare const lineHeightRamp: {
|
|
48
|
-
xSmall: Record<TextVariant, number>;
|
|
49
|
-
small: Record<TextVariant, number>;
|
|
50
|
-
medium: Record<TextVariant, number>;
|
|
51
|
-
large: Record<TextVariant, number>;
|
|
52
|
-
xLarge: Record<TextVariant, number>;
|
|
53
|
-
xxLarge: Record<TextVariant, number>;
|
|
54
|
-
xxxLarge: Record<TextVariant, number>;
|
|
55
|
-
};
|
|
56
38
|
declare const avatarSizes: AvatarSize[];
|
|
57
39
|
declare const avatarShapes: TShirtSize[];
|
|
58
40
|
declare const borderRadii: TShirtSize[];
|
|
@@ -120,4 +102,4 @@ declare const chipVariants: ChipVariant[];
|
|
|
120
102
|
declare const chipSizes: ChipSize[];
|
|
121
103
|
declare const badgeVariants: BadgeVariant[];
|
|
122
104
|
declare const badgeSizes: BadgeSize[];
|
|
123
|
-
export { alwaysPaletteAliases, avatarShapes, avatarSizes, backgroundColors, backgroundPaletteColors, badgeSizes, badgeVariants, borderRadii, borderRadiusRamp, borderWidthRamp, borderWidths, breakpoints, buttonClassNames, buttonColorProperties, buttonIconSvgSize, buttonKinds, buttonMotionEffects, buttonMotionProperties, buttonPalettes, buttonSizeProperties, buttonSizes, buttonStates, buttonVariants, buttonVariantsFlat, buttonVariantsPrimary, buttonVariantsSecondary, buttonVariantsTertiary, checkboxSizes, checkboxVariants, chipSizes, chipVariants, colorModes, fontAliases, fontIds,
|
|
105
|
+
export { alwaysPaletteAliases, avatarShapes, avatarSizes, backgroundColors, backgroundPaletteColors, badgeSizes, badgeVariants, borderRadii, borderRadiusRamp, borderWidthRamp, borderWidths, breakpoints, buttonClassNames, buttonColorProperties, buttonIconSvgSize, buttonKinds, buttonMotionEffects, buttonMotionProperties, buttonPalettes, buttonSizeProperties, buttonSizes, buttonStates, buttonVariants, buttonVariantsFlat, buttonVariantsPrimary, buttonVariantsSecondary, buttonVariantsTertiary, checkboxSizes, checkboxVariants, chipSizes, chipVariants, colorModes, fontAliases, fontIds, fontUrls, fontWeights, foregroundColors, foregroundPaletteColors, hues, hueSteps, iconButtonClassNames, iconButtonSizes, iconSizes, iconVariants, inputSizes, lineColors, linePaletteColors, motionSpringConfig, motionSpringConfigOptions, motionVariants, motionVariantSpeeds, palette, regionModes, scaleEffectMap, scaleModes, shadowColors, shadowOffsetMap, shadowOffsets, shadowOpacities, shadowOpacityMap, shadowPaletteColors, shadowSpreadRadii, shadowSpreadRadiusMap, shadowVariants, shadowVariantsInvert, shadowVariantsWithInvert, sortPalette, spacingAliases, spacingMap, spectrumColors, switchSizes, tailwindColorsAsUds, textDecorationLines, textProperties, textTransforms, textVariants, textVariantsTypography, textVariantsUi, textVariantsWithoutEmphasized, tshirtSizes, typographyStyleProperties, };
|
package/dist/fixtures.d.ts
CHANGED
|
@@ -35,24 +35,6 @@ declare const fontIds: ("centra-no2" | "inter" | "roboto-mono" | "yahoo-sans" |
|
|
|
35
35
|
declare const fontUrls: FontFamilyCDNUrl[];
|
|
36
36
|
declare const fontWeights: FontWeightDescriptive[];
|
|
37
37
|
declare const textTransforms: TextTransform[];
|
|
38
|
-
declare const fontSizeRamp: {
|
|
39
|
-
xSmall: Record<TextVariant, number>;
|
|
40
|
-
small: Record<TextVariant, number>;
|
|
41
|
-
medium: Record<TextVariant, number>;
|
|
42
|
-
large: Record<TextVariant, number>;
|
|
43
|
-
xLarge: Record<TextVariant, number>;
|
|
44
|
-
xxLarge: Record<TextVariant, number>;
|
|
45
|
-
xxxLarge: Record<TextVariant, number>;
|
|
46
|
-
};
|
|
47
|
-
declare const lineHeightRamp: {
|
|
48
|
-
xSmall: Record<TextVariant, number>;
|
|
49
|
-
small: Record<TextVariant, number>;
|
|
50
|
-
medium: Record<TextVariant, number>;
|
|
51
|
-
large: Record<TextVariant, number>;
|
|
52
|
-
xLarge: Record<TextVariant, number>;
|
|
53
|
-
xxLarge: Record<TextVariant, number>;
|
|
54
|
-
xxxLarge: Record<TextVariant, number>;
|
|
55
|
-
};
|
|
56
38
|
declare const avatarSizes: AvatarSize[];
|
|
57
39
|
declare const avatarShapes: TShirtSize[];
|
|
58
40
|
declare const borderRadii: TShirtSize[];
|
|
@@ -120,4 +102,4 @@ declare const chipVariants: ChipVariant[];
|
|
|
120
102
|
declare const chipSizes: ChipSize[];
|
|
121
103
|
declare const badgeVariants: BadgeVariant[];
|
|
122
104
|
declare const badgeSizes: BadgeSize[];
|
|
123
|
-
export { alwaysPaletteAliases, avatarShapes, avatarSizes, backgroundColors, backgroundPaletteColors, badgeSizes, badgeVariants, borderRadii, borderRadiusRamp, borderWidthRamp, borderWidths, breakpoints, buttonClassNames, buttonColorProperties, buttonIconSvgSize, buttonKinds, buttonMotionEffects, buttonMotionProperties, buttonPalettes, buttonSizeProperties, buttonSizes, buttonStates, buttonVariants, buttonVariantsFlat, buttonVariantsPrimary, buttonVariantsSecondary, buttonVariantsTertiary, checkboxSizes, checkboxVariants, chipSizes, chipVariants, colorModes, fontAliases, fontIds,
|
|
105
|
+
export { alwaysPaletteAliases, avatarShapes, avatarSizes, backgroundColors, backgroundPaletteColors, badgeSizes, badgeVariants, borderRadii, borderRadiusRamp, borderWidthRamp, borderWidths, breakpoints, buttonClassNames, buttonColorProperties, buttonIconSvgSize, buttonKinds, buttonMotionEffects, buttonMotionProperties, buttonPalettes, buttonSizeProperties, buttonSizes, buttonStates, buttonVariants, buttonVariantsFlat, buttonVariantsPrimary, buttonVariantsSecondary, buttonVariantsTertiary, checkboxSizes, checkboxVariants, chipSizes, chipVariants, colorModes, fontAliases, fontIds, fontUrls, fontWeights, foregroundColors, foregroundPaletteColors, hues, hueSteps, iconButtonClassNames, iconButtonSizes, iconSizes, iconVariants, inputSizes, lineColors, linePaletteColors, motionSpringConfig, motionSpringConfigOptions, motionVariants, motionVariantSpeeds, palette, regionModes, scaleEffectMap, scaleModes, shadowColors, shadowOffsetMap, shadowOffsets, shadowOpacities, shadowOpacityMap, shadowPaletteColors, shadowSpreadRadii, shadowSpreadRadiusMap, shadowVariants, shadowVariantsInvert, shadowVariantsWithInvert, sortPalette, spacingAliases, spacingMap, spectrumColors, switchSizes, tailwindColorsAsUds, textDecorationLines, textProperties, textTransforms, textVariants, textVariantsTypography, textVariantsUi, textVariantsWithoutEmphasized, tshirtSizes, typographyStyleProperties, };
|