@cloudflare/kumo 2.8.0 → 2.9.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/CHANGELOG.md +88 -0
- package/README.md +3 -39
- package/ai/USAGE.md +89 -80
- package/ai/component-registry.json +165 -55
- package/ai/component-registry.md +484 -94
- package/ai/schemas.ts +4 -2
- package/bin/kumo.js +1 -1
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +1928 -1916
- package/dist/ai/schemas.js +5550 -4085
- package/dist/blocks-source/delete-resource/delete-resource.tsx +5 -5
- package/dist/blocks-source/resource-list/resource-list.test.tsx +1 -1
- package/dist/blocks-source/resource-list/resource-list.tsx +1 -4
- package/dist/button-Bbi7gFL7.d.ts +227 -0
- package/dist/catalog.d.ts +377 -0
- package/dist/catalog.js +347 -215
- package/dist/chunks/AlertDialogTrigger-fn9yjykev9h5l12q.js +24 -0
- package/dist/chunks/AutocompleteItem-clgm7u7zzgjy1hvb.js +82 -0
- package/dist/chunks/Button-oczevl8g75m85ew9.js +27 -0
- package/dist/chunks/CSPContext-guqghj8kxoukvlky.js +17 -0
- package/dist/chunks/CSPProvider-ogozggb4nr6evned.js +24 -0
- package/dist/chunks/CheckboxGroup-h9w1c6bo2nlcc4uj.js +177 -0
- package/dist/chunks/CheckboxGroupContext-f9wox07n2u5moq4h.js +12 -0
- package/dist/chunks/CheckboxIndicator-gz18hapnzraxyz9a.js +49 -0
- package/dist/chunks/CheckboxRoot-g6fb44xqgc0qxusf.js +361 -0
- package/dist/chunks/CollapsiblePanel-mnjlf99v79k3yabx.js +177 -0
- package/dist/chunks/ComboboxChipRemove-opf1zyu9yyp98dqd.js +302 -0
- package/dist/chunks/ComboboxClear-fi4op1n12c99ktca.js +302 -0
- package/dist/chunks/ComboboxEmpty-dr78bn7zilhqbkgc.js +1882 -0
- package/dist/chunks/ComboboxPopup-bugeajuqjattk1n7.js +205 -0
- package/dist/chunks/CompositeItem-l7zee38lq5m224d5.js +23 -0
- package/dist/chunks/CompositeList-bek8pmx9o8cu36ig.js +129 -0
- package/dist/chunks/CompositeListContext-oetjj2x8li8678as.js +18 -0
- package/dist/chunks/CompositeRoot-jm9n0rrea12rfny1.js +225 -0
- package/dist/chunks/CompositeRootContext-ofhzmevv7hadjhyy.js +12 -0
- package/dist/chunks/DialogHandle-o964gplvp59qqv23.js +139 -0
- package/dist/chunks/DialogPopup-cz73mkiyi9c33mhn.js +174 -0
- package/dist/chunks/DialogRoot-kfhbouiouenljp3q.js +15 -0
- package/dist/chunks/DialogTrigger-gzxvssie7e5e1iba.js +139 -0
- package/dist/chunks/DirectionContext-jc1g0w645603sd6p.js +13 -0
- package/dist/chunks/DirectionProvider-gdktkteyrlpnokak.js +21 -0
- package/dist/chunks/FieldControl-oz007qbkl6ejp7di.js +104 -0
- package/dist/chunks/FieldDescription-go88jdymmj9o0ugi.js +121 -0
- package/dist/chunks/FieldItemContext-j85dc0ihramj5ezs.js +10 -0
- package/dist/chunks/FieldLabel-junk2aczkvogpv5d.js +558 -0
- package/dist/chunks/FieldsetLegend-ch85hugankjah152.js +68 -0
- package/dist/chunks/FieldsetRootContext-b633e9uzilttuyfi.js +12 -0
- package/dist/chunks/FloatingPortalLite-ld4o97z16w23x6za.js +25 -0
- package/dist/chunks/FloatingTree-jdm71b3m43e34hk7.js +115 -0
- package/dist/chunks/Form-f1ibju5npd1qqowg.js +102 -0
- package/dist/chunks/FormContext-xz0b4h7ue30fkkn1.js +17 -0
- package/dist/chunks/Input-opaph7rt3w2vx3c0.js +20 -0
- package/dist/chunks/LabelableContext-hetas2e4y0kywfas.js +131 -0
- package/dist/chunks/MenuBackdrop-m0tfcr6sg50f9sn5.js +78 -0
- package/dist/chunks/MenuSubmenuTrigger-n281iqpstcnacsk6.js +1532 -0
- package/dist/chunks/MenuTrigger-dwh2ewyxp5j3ml02.js +266 -0
- package/dist/chunks/Menubar-m8euwx8biy1qpo44.js +117 -0
- package/dist/chunks/MenubarContext-ei2r6vu6lmsspozo.js +12 -0
- package/dist/chunks/MeterLabel-efe4koezlgg05cv8.js +151 -0
- package/dist/chunks/PopoverClose-inm8xliypc51murq.js +666 -0
- package/dist/chunks/RadioGroup-h25jrjmet0gxrvex.js +165 -0
- package/dist/chunks/RadioGroupContext-ft0nndmzqynjz8a2.js +10 -0
- package/dist/chunks/RadioIndicator-lvpixnzpkxpq7rp1.js +296 -0
- package/dist/chunks/ScrollAreaThumb-jydo7azxxwjn1cqf.js +944 -0
- package/dist/chunks/SelectGroupLabel-mug19qcz2k67qule.js +1600 -0
- package/dist/chunks/Separator-b8wf5rea6m1cei8k.js +24 -0
- package/dist/chunks/SwitchRoot-gumgk7356eqv7dve.js +237 -0
- package/dist/chunks/TabsList-obzldrvfzo50uqr4.js +617 -0
- package/dist/chunks/Toggle-hlf7recxsq6mxvax.js +89 -0
- package/dist/chunks/ToggleGroup-l8tfcwe33tlqqm8a.js +106 -0
- package/dist/chunks/ToggleGroupContext-cdk2zo6ciddpockn.js +12 -0
- package/dist/chunks/ToolbarGroupContext-nriz3632ymugfj6h.js +12 -0
- package/dist/chunks/ToolbarInput-oy7o682hhn2jdjen.js +152 -0
- package/dist/chunks/ToolbarRootContext-lvi96r1vvs93rhde.js +12 -0
- package/dist/chunks/TooltipPopup-ehusafczcky9jvae.js +868 -0
- package/dist/chunks/TooltipProvider-iq6hgymrn3b68h50.js +64 -0
- package/dist/chunks/addEventListener-lhqvk2ahlzjsanyg.js +13 -0
- package/dist/chunks/areArraysEqual-nlbeaqlzf4274zr3.js +7 -0
- package/dist/chunks/autocomplete-m8n1c775n0iilomf.js +152 -0
- package/dist/chunks/badge-e16yhhe9xibra5k7.js +148 -0
- package/dist/chunks/banner-cu2mip76zfx0gf27.js +258 -0
- package/dist/chunks/bash-jpzh6zbf5237424t.js +3 -0
- package/dist/chunks/breadcrumbs-hxibrxjtvudy0ir9.js +164 -0
- package/dist/chunks/button-eikucjpgqbsn5m5m.js +260 -0
- package/dist/chunks/chart-bxxlck50zlsbj3kl.js +3083 -0
- package/dist/chunks/checkbox-fovnhs7f1sekaxrh.js +158 -0
- package/dist/chunks/clamp-kvu4wtr1dw6b3pnd.js +7 -0
- package/dist/chunks/clipboard-text-fuyj4apm2xry4hkk.js +198 -0
- package/dist/chunks/cloudflare-logo-g0aimzpllornl0rc.js +186 -0
- package/dist/chunks/code-eu8kzwqnlhoyin24.js +96 -0
- package/dist/chunks/collapsible-lj0glxe1hezap65x.js +178 -0
- package/dist/chunks/combobox-m2nvbt0b1stb2syc.js +301 -0
- package/dist/chunks/command-palette-jjrbvylvvbj0qusg.js +507 -0
- package/dist/chunks/composite-o65hjzwwzb4kvl4w.js +102 -0
- package/dist/chunks/constants-j09lrtg73n4vlx5x.js +5 -0
- package/dist/chunks/core-kjfqbvgicl9i3abf.js +7163 -0
- package/dist/chunks/createBaseUIEventDetails-ddivuhl74gni72qn.js +86 -0
- package/dist/chunks/createToastManager-kjd838m8jog8pddj.js +1233 -0
- package/dist/chunks/css-d3t41yfupsmz7l1a.js +4 -0
- package/dist/chunks/date-picker-njfirc1m165k6yax.js +6786 -0
- package/dist/chunks/date-range-picker-g6sje1ua7n7jerkq.js +335 -0
- package/dist/chunks/dialog-b4r3dv8uvgl2pqem.js +170 -0
- package/dist/chunks/diff-g2re0kj6fh27rgg5.js +4 -0
- package/dist/chunks/dropdown-k0y5j6iuad7tvqgx.js +279 -0
- package/dist/chunks/empty-hmu7x39lnp0z2qm6.js +89 -0
- package/dist/chunks/engine-io35xsj9fgfxtihg.js +10 -0
- package/dist/chunks/engine-javascript-d795u677f1802oaf.js +3103 -0
- package/dist/chunks/engine-oniguruma-xjlw46ay321yj1av.js +388 -0
- package/dist/chunks/error-mm98alb8acdy93vq.js +15 -0
- package/dist/chunks/field-dxe9ne8fqy5whws2.js +70 -0
- package/dist/chunks/flow-fbsv3yek3w7v5a6p.js +10270 -0
- package/dist/chunks/formatNumber-hjijm58g645q6a0n.js +26 -0
- package/dist/chunks/getCssDimensions-mi941fe1jvztqm6b.js +21 -0
- package/dist/chunks/getEmptyRootContext-2utawetz04dqkzyn.js +18 -0
- package/dist/chunks/getPseudoElementBounds-jg72lmrlwgbqhmjh.js +28 -0
- package/dist/chunks/github-light-kb466scjoy42qxpu.js +5 -0
- package/dist/chunks/graphql-gtqr4wytdf0qjybo.js +16 -0
- package/dist/chunks/grid-d43q1qme6ffbbcl1.js +118 -0
- package/dist/chunks/hcl-ohpfnrffs96hzyj5.js +4 -0
- package/dist/chunks/html-ijyj3f9k0foag15c.js +12 -0
- package/dist/chunks/index.parts-9xtishx4m3j6sbg9.js +1429 -0
- package/dist/chunks/index.parts-bsarfaby0ttw67bb.js +206 -0
- package/dist/chunks/index.parts-buqjmx1pfsd225r7.js +30 -0
- package/dist/chunks/index.parts-bzlq2foymrigspiz.js +81 -0
- package/dist/chunks/index.parts-c4kz48uuogge3k9g.js +1462 -0
- package/dist/chunks/index.parts-cou5w8shwfwuk6wo.js +128 -0
- package/dist/chunks/index.parts-etb66t5m85rhhipe.js +11 -0
- package/dist/chunks/index.parts-f3xvfc67ai7txeru.js +127 -0
- package/dist/chunks/index.parts-g0wrrbkxyh0oo730.js +171 -0
- package/dist/chunks/index.parts-g27bw668q8dtcjz8.js +1229 -0
- package/dist/chunks/index.parts-gcwd6ds0od2n1i0p.js +10 -0
- package/dist/chunks/index.parts-ghwrm31fyo614381.js +23 -0
- package/dist/chunks/index.parts-giu46tgp0ypgfq6a.js +88 -0
- package/dist/chunks/index.parts-hi0bbzsnswj74v28.js +11 -0
- package/dist/chunks/index.parts-ixizrcasario34jo.js +213 -0
- package/dist/chunks/index.parts-j775zfdbhcd9ypeb.js +41 -0
- package/dist/chunks/index.parts-jmkwypigix07dit1.js +119 -0
- package/dist/chunks/index.parts-kdoulw17e9zk96yw.js +156 -0
- package/dist/chunks/index.parts-kh9waplhfwlszcyp.js +245 -0
- package/dist/chunks/index.parts-kwqb2nzc7u2zzxqs.js +2464 -0
- package/dist/chunks/index.parts-kwx43zlomuu96clc.js +46 -0
- package/dist/chunks/index.parts-lojnx790s6z0mi1f.js +388 -0
- package/dist/chunks/index.parts-n6t1aj932fytioz8.js +692 -0
- package/dist/chunks/index.parts-ngc39crwuz80oiij.js +13 -0
- package/dist/chunks/index.parts-nq06i1gji6fjnmln.js +192 -0
- package/dist/chunks/index.parts-omt7bu8mbte48ulb.js +73 -0
- package/dist/chunks/index.parts-pb65142mbin4hpc7.js +564 -0
- package/dist/chunks/index2.parts-k2au6nzued1wgy6t.js +95 -0
- package/dist/chunks/index2.parts-noiw2eweufmplfsp.js +10 -0
- package/dist/chunks/inertValue-f9pgp32jxnm88df3.js +9 -0
- package/dist/chunks/input-dwl9oy1f1ufah0bx.js +145 -0
- package/dist/chunks/input-group-otq3m9lach1jyxl0.js +452 -0
- package/dist/chunks/input-o3mtvvtqf69j5k10.js +85 -0
- package/dist/chunks/isElementDisabled-ffsy1y4adxocmexb.js +7 -0
- package/dist/chunks/javascript-b6fq9bl50fdj6813.js +4 -0
- package/dist/chunks/json-h2g0z143t3cs13d7.js +4 -0
- package/dist/chunks/jsonc-jxlzvingck161eej.js +4 -0
- package/dist/chunks/jsx-jp7a33937sef92sn.js +4 -0
- package/dist/chunks/label-opyibemromjwmd0s.js +72 -0
- package/dist/chunks/layer-card-nah241sxhj6i7i03.js +72 -0
- package/dist/chunks/link-1b3jda6cdzl4lkeo.js +112 -0
- package/dist/chunks/link-provider-l9ohtet4pj559eg0.js +60 -0
- package/dist/chunks/loader-j2v6fab8iucuxz1z.js +91 -0
- package/dist/chunks/markdown-eybeqjr58vfygtz1.js +4 -0
- package/dist/chunks/menubar-m0h31eymts6exeke.js +103 -0
- package/dist/chunks/mergeCleanups-pexn3wul6a4zn873.js +15 -0
- package/dist/chunks/meter-iauic8ww87xxqf74.js +35 -0
- package/dist/chunks/pagination-k0yll9ynbi8flc3b.js +290 -0
- package/dist/chunks/popover-l0xg7b854w7txyoz.js +152 -0
- package/dist/chunks/popupStateMapping-jpzw7eyzl8ghiv8s.js +868 -0
- package/dist/chunks/popupStoreUtils-fpjh6veok5pa2hd1.js +367 -0
- package/dist/chunks/portal-provider-langu3fqwfr9tlhm.js +59 -0
- package/dist/chunks/python-nrpnmxq4r6yp6fcd.js +4 -0
- package/dist/chunks/radio-igpo6t2t2tpe08d5.js +173 -0
- package/dist/chunks/resolve-variant-l6x5ksfrjtu4m66l.js +35 -0
- package/dist/chunks/resolveAriaLabelledBy-h9qwvo10ftlj6t9k.js +10 -0
- package/dist/chunks/resolveValueLabel-i36fqhi09ki67hx5.js +89 -0
- package/dist/chunks/rolldown-runtime-hi7ti5xiuxsegr96.js +18 -0
- package/dist/chunks/safePolygon-flrfpyc6fpidq4fb.js +659 -0
- package/dist/chunks/safeReact-bavzz23j5tex60z2.js +18 -0
- package/dist/chunks/select-ln6ibqbbs0n4tiig.js +262 -0
- package/dist/chunks/sensitive-input-karaei12un7z7nep.js +256 -0
- package/dist/chunks/serializeValue-ci3kihruew64i36f.js +13 -0
- package/dist/chunks/shellscript-i4m7lo8wi0f5bl8b.js +4 -0
- package/dist/chunks/sidebar-kvjzu0ya0b2z6eec.js +1297 -0
- package/dist/chunks/skeleton-line-f6sju1dxawm8h9tg.js +40 -0
- package/dist/chunks/sql-do9h6435gka97c4c.js +4 -0
- package/dist/chunks/store-i9l3lkcl6auhkpfl.js +88 -0
- package/dist/chunks/stringifyLocale-cl8et9xf6zon4qbs.js +9 -0
- package/dist/chunks/styles-dbhgpd8fm76fdfo3.js +35 -0
- package/dist/chunks/surface-jwwh5xl06kv9tp7b.js +30 -0
- package/dist/chunks/switch-cusffup6w3tan5ot.js +202 -0
- package/dist/chunks/table-ds3nzcffm3pu9o0l.js +238 -0
- package/dist/chunks/table-of-contents-l66abisn473qzd07.js +231 -0
- package/dist/chunks/tabs-dz3fsnkrznrggilz.js +255 -0
- package/dist/chunks/text-e1ko7r96hsoz2tor.js +109 -0
- package/dist/chunks/toast-itl6qo5oy1vy6d36.js +324 -0
- package/dist/chunks/toml-oyqrgosuct25x413.js +4 -0
- package/dist/chunks/toolbar-gwd1orc8yl7lzaou.js +127 -0
- package/dist/chunks/tooltip-maelyxs1y7a78vje.js +90 -0
- package/dist/chunks/tsx-pem8x69upvmibv6l.js +4 -0
- package/dist/chunks/typescript-pe5y016phdwbgws7.js +4 -0
- package/dist/chunks/useAnchoredPopupScrollLock-bx8vvwcdp25ix0kj.js +31 -0
- package/dist/chunks/useAnimationFrame-ssgc72hyq6sg3yit.js +86 -0
- package/dist/chunks/useAriaLabelledBy-bvw56m1d7czf0w3f.js +38 -0
- package/dist/chunks/useBaseUiId-gqkl5ep5pn6hd0rw.js +13 -0
- package/dist/chunks/useButton-cpo6u2idqcnou6vy.js +149 -0
- package/dist/chunks/useClick-fvwb39qgead2jyft.js +86 -0
- package/dist/chunks/useCollapsiblePanel-bw63vwvq9a3sj73q.js +379 -0
- package/dist/chunks/useCompositeItem-esr3n4pmlssiuxuy.js +31 -0
- package/dist/chunks/useCompositeListItem-0exfww37ospqz69b.js +75 -0
- package/dist/chunks/useControlled-nlx0kk1ksgk0auvi.js +52 -0
- package/dist/chunks/useDismiss-l2gbj4cain4zqtne.js +353 -0
- package/dist/chunks/useFilteredItems-ckor5h4rcmztfgt1.js +183 -0
- package/dist/chunks/useFloatingRootContext-jo582qzez5k9gbgk.js +51 -0
- package/dist/chunks/useFocus-e8drzpkl9flxq1o1.js +122 -0
- package/dist/chunks/useForcedRerendering-el1fbg3ib5yo0v7k.js +14 -0
- package/dist/chunks/useId-l9soitgw3e4jk5ie.js +32 -0
- package/dist/chunks/useIsHydrating-b6whcsimonagru6u.js +22 -0
- package/dist/chunks/useLabel-nh9hf8h7o6oquqn5.js +47 -0
- package/dist/chunks/useLabelableId-b1kwq9st3rjrtakn.js +60 -0
- package/dist/chunks/useListNavigation-iyo9r9vug2g1clmc.js +447 -0
- package/dist/chunks/useOnMount-j4wobeq47l3u9olo.js +12 -0
- package/dist/chunks/useOpenChangeComplete-dpkex2e23s1evpol.js +117 -0
- package/dist/chunks/usePopupViewport-at3zpph46apa78a3.js +343 -0
- package/dist/chunks/usePositioner-h1n5q86am1sjo5hn.js +602 -0
- package/dist/chunks/usePreviousValue-le0grv8f43vmunn1.js +21 -0
- package/dist/chunks/useRegisterFieldControl-m1rxsuvtpau2341n.js +34 -0
- package/dist/chunks/useRegisteredLabelId-dh83mybmzy75waje.js +16 -0
- package/dist/chunks/useRender-gtnbrp1ityffi4xf.js +13 -0
- package/dist/chunks/useRenderDialogRoot-ecyv072j7yj8q0w3.js +262 -0
- package/dist/chunks/useRenderElement-m8kc7jyuczp71mq8.js +433 -0
- package/dist/chunks/useScrollLock-lj0spjth12xjeap0.js +854 -0
- package/dist/chunks/useStableCallback-ninxmksdjvwl6ejj.js +38 -0
- package/dist/chunks/useSwipeDismiss-bpbyw2ihsw3fw6y9.js +818 -0
- package/dist/chunks/useTimeout-oqptmu2xmyv5ccic.js +43 -0
- package/dist/chunks/useTransitionStatus-ig4waxl2kervpyw4.js +66 -0
- package/dist/chunks/useTriggerFocusGuards-j8nano0pqu9dscrz.js +49 -0
- package/dist/chunks/useTypeahead-onenwjyhgw955ygx.js +114 -0
- package/dist/chunks/useValueAsRef-lrn42zari17368c9.js +27 -0
- package/dist/chunks/useValueChanged-kthmz4wk7ywnjwtx.js +18 -0
- package/dist/chunks/utils-0i7gujfv3f3e9dqh.js +19 -0
- package/dist/chunks/valueToPercent-henpkkj3juy3ukeu.js +7 -0
- package/dist/chunks/vendor-floating-ui-dsysdmve7iazaaes.js +1558 -0
- package/dist/chunks/vendor-styling-da1xibnxfkjmtglr.js +3631 -0
- package/dist/chunks/vendor-utils-luqsvbyuig727bnr.js +512 -0
- package/dist/chunks/vesper-ho3j3gt6ilwfuc1g.js +5 -0
- package/dist/chunks/visuallyHidden-n14xllazfozg55ox.js +24 -0
- package/dist/chunks/wasm-nfbosyhilcq70atf.js +8 -0
- package/dist/chunks/yaml-kzk5ddyekbyha04v.js +4 -0
- package/dist/cn-DCSItmT-.d.ts +5 -0
- package/dist/code/server.d.ts +97 -0
- package/dist/code/server.js +146 -84
- package/dist/code.d.ts +82 -0
- package/dist/code.js +348 -248
- package/dist/components/autocomplete.d.ts +2 -0
- package/dist/components/autocomplete.js +2 -8
- package/dist/components/badge.d.ts +2 -0
- package/dist/components/badge.js +2 -6
- package/dist/components/banner.d.ts +2 -0
- package/dist/components/banner.js +2 -6
- package/dist/components/breadcrumbs.d.ts +2 -0
- package/dist/components/breadcrumbs.js +2 -8
- package/dist/components/button.d.ts +3 -0
- package/dist/components/button.js +2 -8
- package/dist/components/chart.d.ts +2 -0
- package/dist/components/chart.js +2 -11
- package/dist/components/checkbox.d.ts +2 -0
- package/dist/components/checkbox.js +2 -7
- package/dist/components/clipboard-text.d.ts +2 -0
- package/dist/components/clipboard-text.js +2 -5
- package/dist/components/cloudflare-logo.d.ts +2 -0
- package/dist/components/cloudflare-logo.js +2 -9
- package/dist/components/code.d.ts +2 -0
- package/dist/components/code.js +2 -6
- package/dist/components/collapsible.d.ts +2 -0
- package/dist/components/collapsible.js +2 -5
- package/dist/components/combobox.d.ts +2 -0
- package/dist/components/combobox.js +2 -5
- package/dist/components/command-palette.d.ts +2 -0
- package/dist/components/command-palette.js +2 -7
- package/dist/components/date-picker.d.ts +2 -0
- package/dist/components/date-picker.js +2 -5
- package/dist/components/date-range-picker.d.ts +2 -0
- package/dist/components/date-range-picker.js +2 -5
- package/dist/components/dialog.d.ts +2 -0
- package/dist/components/dialog.js +2 -10
- package/dist/components/dropdown.d.ts +2 -0
- package/dist/components/dropdown.js +2 -5
- package/dist/components/empty.d.ts +2 -0
- package/dist/components/empty.js +2 -8
- package/dist/components/field.d.ts +2 -0
- package/dist/components/field.js +2 -9
- package/dist/components/flow.d.ts +2 -0
- package/dist/components/flow.js +2 -5795
- package/dist/components/grid.d.ts +2 -0
- package/dist/components/grid.js +2 -10
- package/dist/components/input-group.d.ts +2 -0
- package/dist/components/input-group.js +2 -7
- package/dist/components/input.d.ts +4 -0
- package/dist/components/input.js +4 -13
- package/dist/components/label.d.ts +2 -0
- package/dist/components/label.js +2 -9
- package/dist/components/layer-card.d.ts +2 -0
- package/dist/components/layer-card.js +2 -5
- package/dist/components/link.d.ts +68 -0
- package/dist/components/link.js +2 -8
- package/dist/components/loader.d.ts +2 -0
- package/dist/components/loader.js +3 -7
- package/dist/components/menubar.d.ts +2 -0
- package/dist/components/menubar.js +2 -6
- package/dist/components/meter.d.ts +2 -0
- package/dist/components/meter.js +2 -5
- package/dist/components/pagination.d.ts +2 -0
- package/dist/components/pagination.js +2 -5
- package/dist/components/popover.d.ts +2 -0
- package/dist/components/popover.js +2 -13
- package/dist/components/radio.d.ts +2 -0
- package/dist/components/radio.js +2 -9
- package/dist/components/select.d.ts +2 -0
- package/dist/components/select.js +2 -5
- package/dist/components/sensitive-input.d.ts +2 -0
- package/dist/components/sensitive-input.js +2 -7
- package/dist/components/sidebar.d.ts +2 -0
- package/dist/components/sidebar.js +2 -33
- package/dist/components/surface.d.ts +2 -0
- package/dist/components/surface.js +2 -5
- package/dist/components/switch.d.ts +2 -0
- package/dist/components/switch.js +2 -7
- package/dist/components/table-of-contents.d.ts +2 -0
- package/dist/components/table-of-contents.js +2 -7
- package/dist/components/table.d.ts +2 -0
- package/dist/components/table.js +2 -7
- package/dist/components/tabs.d.ts +2 -0
- package/dist/components/tabs.js +2 -5
- package/dist/components/text.d.ts +2 -0
- package/dist/components/text.js +2 -5
- package/dist/components/toast.d.ts +2 -0
- package/dist/components/toast.js +3 -10
- package/dist/components/toolbar.d.ts +2 -0
- package/dist/components/toolbar.js +2 -7
- package/dist/components/tooltip.d.ts +2 -0
- package/dist/components/tooltip.js +2 -6
- package/dist/field-DIjlHM8W.d.ts +91 -0
- package/dist/index-AMEc1MEg2.d.ts +180 -0
- package/dist/index-B-hCpI5K.d.ts +1 -0
- package/dist/index-B6LJIy7_2.d.ts +52 -0
- package/dist/index-B9niVl3r.d.ts +140 -0
- package/dist/index-BAQwS4mL.d.ts +70 -0
- package/dist/index-BD-gTiEv.d.ts +71 -0
- package/dist/index-BVgXnR1V.d.ts +137 -0
- package/dist/index-Bgl_czT12.d.ts +140 -0
- package/dist/index-BkyMHk632.d.ts +110 -0
- package/dist/index-BlEUcijd.d.ts +795 -0
- package/dist/index-BoPqM1Ia2.d.ts +179 -0
- package/dist/index-BzE0aNpx.d.ts +143 -0
- package/dist/index-C3iraF8M2.d.ts +100 -0
- package/dist/index-CGbkysYW2.d.ts +161 -0
- package/dist/index-CLsBWiaS.d.ts +79 -0
- package/dist/index-CSWbPhke.d.ts +126 -0
- package/dist/index-CYoiniZ4.d.ts +135 -0
- package/dist/index-CeBzVJP8.d.ts +426 -0
- package/dist/index-ClS-eFxE.d.ts +104 -0
- package/dist/index-Cp0aQngm.d.ts +182 -0
- package/dist/index-CzIWigmH.d.ts +62 -0
- package/dist/index-CzTgKPh-.d.ts +105 -0
- package/dist/index-D-y1ktn-.d.ts +68 -0
- package/dist/index-D2Gvly0i2.d.ts +96 -0
- package/dist/index-DBlw3E9m.d.ts +166 -0
- package/dist/index-DCA5tjHa.d.ts +68 -0
- package/dist/index-DIV3riUd2.d.ts +148 -0
- package/dist/index-DJIRVD5B.d.ts +85 -0
- package/dist/index-DUCaDjfd.d.ts +240 -0
- package/dist/index-Di3sC6UF.d.ts +91 -0
- package/dist/index-DnbdiagK.d.ts +171 -0
- package/dist/index-DpzpArsi2.d.ts +614 -0
- package/dist/index-Dsn2VLZv.d.ts +238 -0
- package/dist/index-FZvrMcIo2.d.ts +158 -0
- package/dist/index-J1qdw9mL.d.ts +188 -0
- package/dist/index-Vj9ZzRh0.d.ts +66 -0
- package/dist/index-bAud6rG22.d.ts +278 -0
- package/dist/index-lOWfpkxK.d.ts +118 -0
- package/dist/index-yK3Hayg_.d.ts +40 -0
- package/dist/index.d.ts +102 -0
- package/dist/index.js +195 -348
- package/dist/input-BeWEb-jD.d.ts +122 -0
- package/dist/input-group-DpGSsAZy.d.ts +100 -0
- package/dist/layer-card-BNIn9pqy.d.ts +56 -0
- package/dist/link-provider-tz-NJp9x.d.ts +67 -0
- package/dist/portal-provider-4AHCxYE6.d.ts +51 -0
- package/dist/primitives/accordion.d.ts +1 -0
- package/dist/primitives/accordion.js +2 -5
- package/dist/primitives/alert-dialog.d.ts +1 -0
- package/dist/primitives/alert-dialog.js +2 -5
- package/dist/primitives/autocomplete.d.ts +1 -0
- package/dist/primitives/autocomplete.js +2 -5
- package/dist/primitives/avatar.d.ts +1 -0
- package/dist/primitives/avatar.js +2 -5
- package/dist/primitives/button.d.ts +1 -0
- package/dist/primitives/button.js +2 -5
- package/dist/primitives/checkbox-group.d.ts +1 -0
- package/dist/primitives/checkbox-group.js +2 -5
- package/dist/primitives/checkbox.d.ts +1 -0
- package/dist/primitives/checkbox.js +2 -5
- package/dist/primitives/collapsible.d.ts +1 -0
- package/dist/primitives/collapsible.js +2 -5
- package/dist/primitives/combobox.d.ts +1 -0
- package/dist/primitives/combobox.js +2 -5
- package/dist/primitives/context-menu.d.ts +1 -0
- package/dist/primitives/context-menu.js +2 -5
- package/dist/primitives/csp-provider.d.ts +1 -0
- package/dist/primitives/csp-provider.js +2 -5
- package/dist/primitives/dialog.d.ts +1 -0
- package/dist/primitives/dialog.js +2 -5
- package/dist/primitives/direction-provider.d.ts +1 -0
- package/dist/primitives/direction-provider.js +3 -6
- package/dist/primitives/drawer.d.ts +1 -0
- package/dist/primitives/drawer.js +2 -5
- package/dist/primitives/field.d.ts +1 -0
- package/dist/primitives/field.js +2 -5
- package/dist/primitives/fieldset.d.ts +1 -0
- package/dist/primitives/fieldset.js +2 -5
- package/dist/primitives/form.d.ts +1 -0
- package/dist/primitives/form.js +2 -5
- package/dist/primitives/input.d.ts +1 -0
- package/dist/primitives/input.js +2 -5
- package/dist/primitives/menu.d.ts +1 -0
- package/dist/primitives/menu.js +2 -5
- package/dist/primitives/menubar.d.ts +1 -0
- package/dist/primitives/menubar.js +2 -5
- package/dist/primitives/meter.d.ts +1 -0
- package/dist/primitives/meter.js +2 -5
- package/dist/primitives/navigation-menu.d.ts +1 -0
- package/dist/primitives/navigation-menu.js +2 -5
- package/dist/primitives/number-field.d.ts +1 -0
- package/dist/primitives/number-field.js +2 -5
- package/dist/primitives/otp-field.d.ts +3 -0
- package/dist/primitives/otp-field.js +2 -6
- package/dist/primitives/popover.d.ts +1 -0
- package/dist/primitives/popover.js +2 -5
- package/dist/primitives/preview-card.d.ts +1 -0
- package/dist/primitives/preview-card.js +2 -5
- package/dist/primitives/progress.d.ts +1 -0
- package/dist/primitives/progress.js +2 -5
- package/dist/primitives/radio-group.d.ts +1 -0
- package/dist/primitives/radio-group.js +2 -5
- package/dist/primitives/radio.d.ts +1 -0
- package/dist/primitives/radio.js +2 -5
- package/dist/primitives/scroll-area.d.ts +1 -0
- package/dist/primitives/scroll-area.js +2 -5
- package/dist/primitives/select.d.ts +1 -0
- package/dist/primitives/select.js +2 -5
- package/dist/primitives/separator.d.ts +1 -0
- package/dist/primitives/separator.js +2 -5
- package/dist/primitives/slider.d.ts +1 -0
- package/dist/primitives/slider.js +2 -5
- package/dist/primitives/switch.d.ts +1 -0
- package/dist/primitives/switch.js +2 -5
- package/dist/primitives/tabs.d.ts +1 -0
- package/dist/primitives/tabs.js +2 -5
- package/dist/primitives/toast.d.ts +1 -0
- package/dist/primitives/toast.js +2 -5
- package/dist/primitives/toggle-group.d.ts +1 -0
- package/dist/primitives/toggle-group.js +2 -5
- package/dist/primitives/toggle.d.ts +1 -0
- package/dist/primitives/toggle.js +2 -5
- package/dist/primitives/toolbar.d.ts +1 -0
- package/dist/primitives/toolbar.js +2 -5
- package/dist/primitives/tooltip.d.ts +1 -0
- package/dist/primitives/tooltip.js +2 -5
- package/dist/primitives.d.ts +42 -0
- package/dist/primitives.js +42 -46
- package/dist/registry.d.ts +2 -0
- package/dist/registry.js +0 -1
- package/dist/scripts/theme-generator/config.d.ts +7 -5
- package/dist/scripts/theme-generator/config.js +475 -627
- package/dist/scripts/theme-generator/types.d.ts +51 -49
- package/dist/scripts/theme-generator/types.js +0 -1
- package/dist/styles/kumo-binding.css +35 -8
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/styles/kumo.css +3 -5
- package/dist/styles/theme-fedramp.css +7 -15
- package/dist/styles/theme-kumo.css +101 -56
- package/dist/tooltip-BuCo6Ki4.d.ts +105 -0
- package/dist/types-C402rKiz.d.ts +132 -0
- package/dist/types-CdzJnnIl.d.ts +193 -0
- package/dist/utils.d.ts +4 -0
- package/dist/utils.js +5 -12
- package/package.json +231 -232
- package/scripts/component-registry/index.test.ts +1 -1
- package/scripts/component-registry/metadata.ts +3 -4
- package/scripts/component-registry/props-filter.ts +3 -1
- package/scripts/component-registry/variant-parser.ts +1 -0
- package/scripts/theme-generator/config.ts +21 -22
- package/scripts/theme-generator/generate-css.test.ts +1 -1
- package/dist/ai/schemas.d.ts.map +0 -1
- package/dist/ai/schemas.js.map +0 -1
- package/dist/catalog.js.map +0 -1
- package/dist/chunks/Maps-imwfwgb7do9lr3i5.js +0 -2448
- package/dist/chunks/Maps-imwfwgb7do9lr3i5.js.map +0 -1
- package/dist/chunks/autocomplete-a4gvspveibfuod24.js +0 -193
- package/dist/chunks/autocomplete-a4gvspveibfuod24.js.map +0 -1
- package/dist/chunks/badge-dfc1r37osagi3rs4.js +0 -163
- package/dist/chunks/badge-dfc1r37osagi3rs4.js.map +0 -1
- package/dist/chunks/banner-j52y8l13puk7dybi.js +0 -120
- package/dist/chunks/banner-j52y8l13puk7dybi.js.map +0 -1
- package/dist/chunks/bash-g5z23u7me5rx7bzt.js +0 -15
- package/dist/chunks/bash-g5z23u7me5rx7bzt.js.map +0 -1
- package/dist/chunks/breadcrumbs-js59m7m57bdsveew.js +0 -169
- package/dist/chunks/breadcrumbs-js59m7m57bdsveew.js.map +0 -1
- package/dist/chunks/button-ebfdg9mkhojue36n.js +0 -237
- package/dist/chunks/button-ebfdg9mkhojue36n.js.map +0 -1
- package/dist/chunks/checkbox-k355pnfisqt0h4eg.js +0 -216
- package/dist/chunks/checkbox-k355pnfisqt0h4eg.js.map +0 -1
- package/dist/chunks/clipboard-text-isb05zkg2aox0tp6.js +0 -191
- package/dist/chunks/clipboard-text-isb05zkg2aox0tp6.js.map +0 -1
- package/dist/chunks/cloudflare-logo-fiuocxdxqrxawjfv.js +0 -175
- package/dist/chunks/cloudflare-logo-fiuocxdxqrxawjfv.js.map +0 -1
- package/dist/chunks/cn-bo7ya7641lkickbt.js +0 -22
- package/dist/chunks/cn-bo7ya7641lkickbt.js.map +0 -1
- package/dist/chunks/code-pbkfdfat0yilg6dx.js +0 -61
- package/dist/chunks/code-pbkfdfat0yilg6dx.js.map +0 -1
- package/dist/chunks/collapsible-f9hgtc1u6xvqrgt8.js +0 -76
- package/dist/chunks/collapsible-f9hgtc1u6xvqrgt8.js.map +0 -1
- package/dist/chunks/combobox-hc9wi9nwsyyli8ur.js +0 -408
- package/dist/chunks/combobox-hc9wi9nwsyyli8ur.js.map +0 -1
- package/dist/chunks/command-palette-c03zze4ayuytwxjg.js +0 -403
- package/dist/chunks/command-palette-c03zze4ayuytwxjg.js.map +0 -1
- package/dist/chunks/core-dyku7qctyc40nnhh.js +0 -5464
- package/dist/chunks/core-dyku7qctyc40nnhh.js.map +0 -1
- package/dist/chunks/css-d1mi3wy1sl3fzekh.js +0 -8
- package/dist/chunks/css-d1mi3wy1sl3fzekh.js.map +0 -1
- package/dist/chunks/date-picker-bffp889exjixmgz3.js +0 -2921
- package/dist/chunks/date-picker-bffp889exjixmgz3.js.map +0 -1
- package/dist/chunks/date-range-picker-oks2r14lbbukd545.js +0 -408
- package/dist/chunks/date-range-picker-oks2r14lbbukd545.js.map +0 -1
- package/dist/chunks/dialog-ovhmzfuppr5xix0e.js +0 -134
- package/dist/chunks/dialog-ovhmzfuppr5xix0e.js.map +0 -1
- package/dist/chunks/diff-cpj1h9lg0bw716mj.js +0 -8
- package/dist/chunks/diff-cpj1h9lg0bw716mj.js.map +0 -1
- package/dist/chunks/dropdown-iey8f344rd5dgahz.js +0 -321
- package/dist/chunks/dropdown-iey8f344rd5dgahz.js.map +0 -1
- package/dist/chunks/empty-k83r53jh5utqvv7w.js +0 -94
- package/dist/chunks/empty-k83r53jh5utqvv7w.js.map +0 -1
- package/dist/chunks/engine-javascript-hi1kqifa6nkcridk.js +0 -2638
- package/dist/chunks/engine-javascript-hi1kqifa6nkcridk.js.map +0 -1
- package/dist/chunks/engine-oniguruma-g75h8oxao68cjmhg.js +0 -295
- package/dist/chunks/engine-oniguruma-g75h8oxao68cjmhg.js.map +0 -1
- package/dist/chunks/field-bmglk138wa8bf3ei.js +0 -77
- package/dist/chunks/field-bmglk138wa8bf3ei.js.map +0 -1
- package/dist/chunks/github-light-ulev8flhimfg79ob.js +0 -6
- package/dist/chunks/github-light-ulev8flhimfg79ob.js.map +0 -1
- package/dist/chunks/graphql-ft2h47erta7isqn4.js +0 -16
- package/dist/chunks/graphql-ft2h47erta7isqn4.js.map +0 -1
- package/dist/chunks/grid-jze04557ljywg3uc.js +0 -128
- package/dist/chunks/grid-jze04557ljywg3uc.js.map +0 -1
- package/dist/chunks/hcl-hcu7d6ja6t540ijn.js +0 -8
- package/dist/chunks/hcl-hcu7d6ja6t540ijn.js.map +0 -1
- package/dist/chunks/html-kl304jmqj4jxj777.js +0 -12
- package/dist/chunks/html-kl304jmqj4jxj777.js.map +0 -1
- package/dist/chunks/input-area-sg518xu4pyg4m0km.js +0 -144
- package/dist/chunks/input-area-sg518xu4pyg4m0km.js.map +0 -1
- package/dist/chunks/input-ckl5misj0jd9cu5r.js +0 -130
- package/dist/chunks/input-ckl5misj0jd9cu5r.js.map +0 -1
- package/dist/chunks/input-group-bflx1m6ki55e99vf.js +0 -505
- package/dist/chunks/input-group-bflx1m6ki55e99vf.js.map +0 -1
- package/dist/chunks/javascript-hhx3avh9uv2o27ay.js +0 -8
- package/dist/chunks/javascript-hhx3avh9uv2o27ay.js.map +0 -1
- package/dist/chunks/json-jovp9qemdkp5cziz.js +0 -8
- package/dist/chunks/json-jovp9qemdkp5cziz.js.map +0 -1
- package/dist/chunks/jsonc-jbkkgjer6ispw2u3.js +0 -8
- package/dist/chunks/jsonc-jbkkgjer6ispw2u3.js.map +0 -1
- package/dist/chunks/jsx-ij885l2li2lzfoss.js +0 -8
- package/dist/chunks/jsx-ij885l2li2lzfoss.js.map +0 -1
- package/dist/chunks/label-i1xbmg8y1n0tbtkx.js +0 -68
- package/dist/chunks/label-i1xbmg8y1n0tbtkx.js.map +0 -1
- package/dist/chunks/layer-card-m6h85dpadvee39h2.js +0 -47
- package/dist/chunks/layer-card-m6h85dpadvee39h2.js.map +0 -1
- package/dist/chunks/link-j93fl5m8zrcfivsr.js +0 -95
- package/dist/chunks/link-j93fl5m8zrcfivsr.js.map +0 -1
- package/dist/chunks/link-provider-mn2voeohon7cj9o4.js +0 -22
- package/dist/chunks/link-provider-mn2voeohon7cj9o4.js.map +0 -1
- package/dist/chunks/loader-g8a6j76ue5nq0lr8.js +0 -109
- package/dist/chunks/loader-g8a6j76ue5nq0lr8.js.map +0 -1
- package/dist/chunks/markdown-n2vyyq7l68fy32wc.js +0 -8
- package/dist/chunks/markdown-n2vyyq7l68fy32wc.js.map +0 -1
- package/dist/chunks/menubar-opzxfzylaatfz4nv.js +0 -98
- package/dist/chunks/menubar-opzxfzylaatfz4nv.js.map +0 -1
- package/dist/chunks/meter-6br6z5ekw41trxeh.js +0 -51
- package/dist/chunks/meter-6br6z5ekw41trxeh.js.map +0 -1
- package/dist/chunks/pagination-j33ntwqmm9qskfgv.js +0 -266
- package/dist/chunks/pagination-j33ntwqmm9qskfgv.js.map +0 -1
- package/dist/chunks/popover-cqdmpp8i4hg8gzzx.js +0 -181
- package/dist/chunks/popover-cqdmpp8i4hg8gzzx.js.map +0 -1
- package/dist/chunks/portal-provider-hwmkdmkpvct0cb76.js +0 -18
- package/dist/chunks/portal-provider-hwmkdmkpvct0cb76.js.map +0 -1
- package/dist/chunks/python-gg755pb8oe9ra1d1.js +0 -8
- package/dist/chunks/python-gg755pb8oe9ra1d1.js.map +0 -1
- package/dist/chunks/radio-ejey7i6r4tq314av.js +0 -226
- package/dist/chunks/radio-ejey7i6r4tq314av.js.map +0 -1
- package/dist/chunks/resolve-variant-gw6eh7fa4st8ej7m.js +0 -11
- package/dist/chunks/resolve-variant-gw6eh7fa4st8ej7m.js.map +0 -1
- package/dist/chunks/select-p8adn2tnpom25hpl.js +0 -237
- package/dist/chunks/select-p8adn2tnpom25hpl.js.map +0 -1
- package/dist/chunks/sensitive-input-it1hsswlccq3u7g6.js +0 -273
- package/dist/chunks/sensitive-input-it1hsswlccq3u7g6.js.map +0 -1
- package/dist/chunks/sidebar-7whsl7qwrw5b6ip8.js +0 -1144
- package/dist/chunks/sidebar-7whsl7qwrw5b6ip8.js.map +0 -1
- package/dist/chunks/skeleton-line-omxgxia23vpav94x.js +0 -33
- package/dist/chunks/skeleton-line-omxgxia23vpav94x.js.map +0 -1
- package/dist/chunks/sql-ovukp5mrfunfk5tv.js +0 -8
- package/dist/chunks/sql-ovukp5mrfunfk5tv.js.map +0 -1
- package/dist/chunks/surface-gc2gblserrxcb1eg.js +0 -29
- package/dist/chunks/surface-gc2gblserrxcb1eg.js.map +0 -1
- package/dist/chunks/switch-ljsq915e0l1a5mjd.js +0 -256
- package/dist/chunks/switch-ljsq915e0l1a5mjd.js.map +0 -1
- package/dist/chunks/table-of-contents-cghjqyk43nj5zmlw.js +0 -106
- package/dist/chunks/table-of-contents-cghjqyk43nj5zmlw.js.map +0 -1
- package/dist/chunks/table-ojjjeqszmt9jgnug.js +0 -208
- package/dist/chunks/table-ojjjeqszmt9jgnug.js.map +0 -1
- package/dist/chunks/tabs-kemdy19kfesj2xjr.js +0 -177
- package/dist/chunks/tabs-kemdy19kfesj2xjr.js.map +0 -1
- package/dist/chunks/text-oqp48b9m5u6t62b4.js +0 -103
- package/dist/chunks/text-oqp48b9m5u6t62b4.js.map +0 -1
- package/dist/chunks/toast-ldj9zi940w83ub90.js +0 -386
- package/dist/chunks/toast-ldj9zi940w83ub90.js.map +0 -1
- package/dist/chunks/toml-nczb2z9n0o23o3ci.js +0 -8
- package/dist/chunks/toml-nczb2z9n0o23o3ci.js.map +0 -1
- package/dist/chunks/toolbar-lmylyrod70sn0q4i.js +0 -172
- package/dist/chunks/toolbar-lmylyrod70sn0q4i.js.map +0 -1
- package/dist/chunks/tooltip-mooldq78tg77ekvv.js +0 -103
- package/dist/chunks/tooltip-mooldq78tg77ekvv.js.map +0 -1
- package/dist/chunks/tsx-ehy8lrzet6v54zur.js +0 -8
- package/dist/chunks/tsx-ehy8lrzet6v54zur.js.map +0 -1
- package/dist/chunks/typescript-k4ggjrxhrhcdni6u.js +0 -8
- package/dist/chunks/typescript-k4ggjrxhrhcdni6u.js.map +0 -1
- package/dist/chunks/vendor-base-ui-elpbzr8xeffrz4h2.js +0 -25027
- package/dist/chunks/vendor-base-ui-elpbzr8xeffrz4h2.js.map +0 -1
- package/dist/chunks/vendor-floating-ui-k1zjlb8fkwtcw4k5.js +0 -1310
- package/dist/chunks/vendor-floating-ui-k1zjlb8fkwtcw4k5.js.map +0 -1
- package/dist/chunks/vendor-styling-ofvnbcuht98q88oo.js +0 -3252
- package/dist/chunks/vendor-styling-ofvnbcuht98q88oo.js.map +0 -1
- package/dist/chunks/vendor-utils-m5h2xu7s2rs3pgk5.js +0 -217
- package/dist/chunks/vendor-utils-m5h2xu7s2rs3pgk5.js.map +0 -1
- package/dist/chunks/vesper-ebfu9ns65f2v830s.js +0 -6
- package/dist/chunks/vesper-ebfu9ns65f2v830s.js.map +0 -1
- package/dist/chunks/wasm-oj22f8usru9h7dzg.js +0 -9
- package/dist/chunks/wasm-oj22f8usru9h7dzg.js.map +0 -1
- package/dist/chunks/yaml-e2v22lr79tss2brj.js +0 -8
- package/dist/chunks/yaml-e2v22lr79tss2brj.js.map +0 -1
- package/dist/code/server.js.map +0 -1
- package/dist/code.js.map +0 -1
- package/dist/components/autocomplete.js.map +0 -1
- package/dist/components/badge.js.map +0 -1
- package/dist/components/banner.js.map +0 -1
- package/dist/components/breadcrumbs.js.map +0 -1
- package/dist/components/button.js.map +0 -1
- package/dist/components/chart.js.map +0 -1
- package/dist/components/checkbox.js.map +0 -1
- package/dist/components/clipboard-text.js.map +0 -1
- package/dist/components/cloudflare-logo.js.map +0 -1
- package/dist/components/code.js.map +0 -1
- package/dist/components/collapsible.js.map +0 -1
- package/dist/components/combobox.js.map +0 -1
- package/dist/components/command-palette.js.map +0 -1
- package/dist/components/date-picker.js.map +0 -1
- package/dist/components/date-range-picker.js.map +0 -1
- package/dist/components/dialog.js.map +0 -1
- package/dist/components/dropdown.js.map +0 -1
- package/dist/components/empty.js.map +0 -1
- package/dist/components/field.js.map +0 -1
- package/dist/components/flow.js.map +0 -1
- package/dist/components/grid.js.map +0 -1
- package/dist/components/input-group.js.map +0 -1
- package/dist/components/input.js.map +0 -1
- package/dist/components/label.js.map +0 -1
- package/dist/components/layer-card.js.map +0 -1
- package/dist/components/link.js.map +0 -1
- package/dist/components/loader.js.map +0 -1
- package/dist/components/menubar.js.map +0 -1
- package/dist/components/meter.js.map +0 -1
- package/dist/components/pagination.js.map +0 -1
- package/dist/components/popover.js.map +0 -1
- package/dist/components/radio.js.map +0 -1
- package/dist/components/select.js.map +0 -1
- package/dist/components/sensitive-input.js.map +0 -1
- package/dist/components/sidebar.js.map +0 -1
- package/dist/components/surface.js.map +0 -1
- package/dist/components/switch.js.map +0 -1
- package/dist/components/table-of-contents.js.map +0 -1
- package/dist/components/table.js.map +0 -1
- package/dist/components/tabs.js.map +0 -1
- package/dist/components/text.js.map +0 -1
- package/dist/components/toast.js.map +0 -1
- package/dist/components/toolbar.js.map +0 -1
- package/dist/components/tooltip.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/primitives/accordion.js.map +0 -1
- package/dist/primitives/alert-dialog.js.map +0 -1
- package/dist/primitives/autocomplete.js.map +0 -1
- package/dist/primitives/avatar.js.map +0 -1
- package/dist/primitives/button.js.map +0 -1
- package/dist/primitives/checkbox-group.js.map +0 -1
- package/dist/primitives/checkbox.js.map +0 -1
- package/dist/primitives/collapsible.js.map +0 -1
- package/dist/primitives/combobox.js.map +0 -1
- package/dist/primitives/context-menu.js.map +0 -1
- package/dist/primitives/csp-provider.js.map +0 -1
- package/dist/primitives/dialog.js.map +0 -1
- package/dist/primitives/direction-provider.js.map +0 -1
- package/dist/primitives/drawer.js.map +0 -1
- package/dist/primitives/field.js.map +0 -1
- package/dist/primitives/fieldset.js.map +0 -1
- package/dist/primitives/form.js.map +0 -1
- package/dist/primitives/input.js.map +0 -1
- package/dist/primitives/menu.js.map +0 -1
- package/dist/primitives/menubar.js.map +0 -1
- package/dist/primitives/meter.js.map +0 -1
- package/dist/primitives/navigation-menu.js.map +0 -1
- package/dist/primitives/number-field.js.map +0 -1
- package/dist/primitives/otp-field.js.map +0 -1
- package/dist/primitives/popover.js.map +0 -1
- package/dist/primitives/preview-card.js.map +0 -1
- package/dist/primitives/progress.js.map +0 -1
- package/dist/primitives/radio-group.js.map +0 -1
- package/dist/primitives/radio.js.map +0 -1
- package/dist/primitives/scroll-area.js.map +0 -1
- package/dist/primitives/select.js.map +0 -1
- package/dist/primitives/separator.js.map +0 -1
- package/dist/primitives/slider.js.map +0 -1
- package/dist/primitives/switch.js.map +0 -1
- package/dist/primitives/tabs.js.map +0 -1
- package/dist/primitives/toast.js.map +0 -1
- package/dist/primitives/toggle-group.js.map +0 -1
- package/dist/primitives/toggle.js.map +0 -1
- package/dist/primitives/toolbar.js.map +0 -1
- package/dist/primitives/tooltip.js.map +0 -1
- package/dist/primitives.js.map +0 -1
- package/dist/registry.js.map +0 -1
- package/dist/scripts/theme-generator/config.d.ts.map +0 -1
- package/dist/scripts/theme-generator/config.js.map +0 -1
- package/dist/scripts/theme-generator/generate-css.d.ts +0 -31
- package/dist/scripts/theme-generator/generate-css.d.ts.map +0 -1
- package/dist/scripts/theme-generator/index.d.ts +0 -13
- package/dist/scripts/theme-generator/index.d.ts.map +0 -1
- package/dist/scripts/theme-generator/migrate.d.ts +0 -56
- package/dist/scripts/theme-generator/migrate.d.ts.map +0 -1
- package/dist/scripts/theme-generator/types.d.ts.map +0 -1
- package/dist/scripts/theme-generator/types.js.map +0 -1
- package/dist/src/blocks/delete-resource/delete-resource.d.ts +0 -46
- package/dist/src/blocks/delete-resource/delete-resource.d.ts.map +0 -1
- package/dist/src/blocks/delete-resource/index.d.ts +0 -2
- package/dist/src/blocks/delete-resource/index.d.ts.map +0 -1
- package/dist/src/blocks/page-header/index.d.ts +0 -2
- package/dist/src/blocks/page-header/index.d.ts.map +0 -1
- package/dist/src/blocks/page-header/page-header.d.ts +0 -38
- package/dist/src/blocks/page-header/page-header.d.ts.map +0 -1
- package/dist/src/blocks/resource-list/index.d.ts +0 -2
- package/dist/src/blocks/resource-list/index.d.ts.map +0 -1
- package/dist/src/blocks/resource-list/resource-list.d.ts +0 -18
- package/dist/src/blocks/resource-list/resource-list.d.ts.map +0 -1
- package/dist/src/catalog/catalog.d.ts +0 -75
- package/dist/src/catalog/catalog.d.ts.map +0 -1
- package/dist/src/catalog/data.d.ts +0 -44
- package/dist/src/catalog/data.d.ts.map +0 -1
- package/dist/src/catalog/index.d.ts +0 -39
- package/dist/src/catalog/index.d.ts.map +0 -1
- package/dist/src/catalog/types.d.ts +0 -226
- package/dist/src/catalog/types.d.ts.map +0 -1
- package/dist/src/catalog/visibility.d.ts +0 -37
- package/dist/src/catalog/visibility.d.ts.map +0 -1
- package/dist/src/code/code-highlighted.d.ts +0 -32
- package/dist/src/code/code-highlighted.d.ts.map +0 -1
- package/dist/src/code/context.d.ts +0 -16
- package/dist/src/code/context.d.ts.map +0 -1
- package/dist/src/code/index.d.ts +0 -32
- package/dist/src/code/index.d.ts.map +0 -1
- package/dist/src/code/provider.d.ts +0 -13
- package/dist/src/code/provider.d.ts.map +0 -1
- package/dist/src/code/server.d.ts +0 -95
- package/dist/src/code/server.d.ts.map +0 -1
- package/dist/src/code/types.d.ts +0 -130
- package/dist/src/code/types.d.ts.map +0 -1
- package/dist/src/code/use-shiki-highlighter.d.ts +0 -36
- package/dist/src/code/use-shiki-highlighter.d.ts.map +0 -1
- package/dist/src/command-line/build-cli.d.ts +0 -7
- package/dist/src/command-line/build-cli.d.ts.map +0 -1
- package/dist/src/command-line/cli.d.ts +0 -13
- package/dist/src/command-line/cli.d.ts.map +0 -1
- package/dist/src/command-line/commands/add.d.ts +0 -10
- package/dist/src/command-line/commands/add.d.ts.map +0 -1
- package/dist/src/command-line/commands/ai.d.ts +0 -10
- package/dist/src/command-line/commands/ai.d.ts.map +0 -1
- package/dist/src/command-line/commands/blocks.d.ts +0 -10
- package/dist/src/command-line/commands/blocks.d.ts.map +0 -1
- package/dist/src/command-line/commands/doc.d.ts +0 -14
- package/dist/src/command-line/commands/doc.d.ts.map +0 -1
- package/dist/src/command-line/commands/init.d.ts +0 -18
- package/dist/src/command-line/commands/init.d.ts.map +0 -1
- package/dist/src/command-line/commands/ls.d.ts +0 -10
- package/dist/src/command-line/commands/ls.d.ts.map +0 -1
- package/dist/src/command-line/commands/migrate.d.ts +0 -10
- package/dist/src/command-line/commands/migrate.d.ts.map +0 -1
- package/dist/src/command-line/utils/config.d.ts +0 -42
- package/dist/src/command-line/utils/config.d.ts.map +0 -1
- package/dist/src/command-line/utils/transformer.d.ts +0 -21
- package/dist/src/command-line/utils/transformer.d.ts.map +0 -1
- package/dist/src/components/autocomplete/autocomplete.d.ts +0 -181
- package/dist/src/components/autocomplete/autocomplete.d.ts.map +0 -1
- package/dist/src/components/autocomplete/index.d.ts +0 -3
- package/dist/src/components/autocomplete/index.d.ts.map +0 -1
- package/dist/src/components/badge/badge.d.ts +0 -180
- package/dist/src/components/badge/badge.d.ts.map +0 -1
- package/dist/src/components/badge/index.d.ts +0 -2
- package/dist/src/components/badge/index.d.ts.map +0 -1
- package/dist/src/components/banner/banner.d.ts +0 -106
- package/dist/src/components/banner/banner.d.ts.map +0 -1
- package/dist/src/components/banner/index.d.ts +0 -2
- package/dist/src/components/banner/index.d.ts.map +0 -1
- package/dist/src/components/breadcrumbs/breadcrumbs.d.ts +0 -78
- package/dist/src/components/breadcrumbs/breadcrumbs.d.ts.map +0 -1
- package/dist/src/components/breadcrumbs/index.d.ts +0 -2
- package/dist/src/components/breadcrumbs/index.d.ts.map +0 -1
- package/dist/src/components/button/button.d.ts +0 -214
- package/dist/src/components/button/button.d.ts.map +0 -1
- package/dist/src/components/button/index.d.ts +0 -2
- package/dist/src/components/button/index.d.ts.map +0 -1
- package/dist/src/components/chart/Color.d.ts +0 -107
- package/dist/src/components/chart/Color.d.ts.map +0 -1
- package/dist/src/components/chart/EChart.d.ts +0 -166
- package/dist/src/components/chart/EChart.d.ts.map +0 -1
- package/dist/src/components/chart/Legend.d.ts +0 -51
- package/dist/src/components/chart/Legend.d.ts.map +0 -1
- package/dist/src/components/chart/Maps.d.ts +0 -211
- package/dist/src/components/chart/Maps.d.ts.map +0 -1
- package/dist/src/components/chart/SankeyChart.d.ts +0 -98
- package/dist/src/components/chart/SankeyChart.d.ts.map +0 -1
- package/dist/src/components/chart/TimeseriesChart.d.ts +0 -189
- package/dist/src/components/chart/TimeseriesChart.d.ts.map +0 -1
- package/dist/src/components/chart/index.d.ts +0 -7
- package/dist/src/components/chart/index.d.ts.map +0 -1
- package/dist/src/components/chart/timeseries-markers.d.ts +0 -107
- package/dist/src/components/chart/timeseries-markers.d.ts.map +0 -1
- package/dist/src/components/chart/timeseries-thresholds.d.ts +0 -61
- package/dist/src/components/chart/timeseries-thresholds.d.ts.map +0 -1
- package/dist/src/components/chart/timeseries-tooltip.d.ts +0 -28
- package/dist/src/components/chart/timeseries-tooltip.d.ts.map +0 -1
- package/dist/src/components/chart/tooltip-utils.d.ts +0 -4
- package/dist/src/components/chart/tooltip-utils.d.ts.map +0 -1
- package/dist/src/components/checkbox/checkbox.d.ts +0 -197
- package/dist/src/components/checkbox/checkbox.d.ts.map +0 -1
- package/dist/src/components/checkbox/index.d.ts +0 -2
- package/dist/src/components/checkbox/index.d.ts.map +0 -1
- package/dist/src/components/clipboard-text/clipboard-text.d.ts +0 -88
- package/dist/src/components/clipboard-text/clipboard-text.d.ts.map +0 -1
- package/dist/src/components/clipboard-text/index.d.ts +0 -2
- package/dist/src/components/clipboard-text/index.d.ts.map +0 -1
- package/dist/src/components/cloudflare-logo/cloudflare-logo.d.ts +0 -133
- package/dist/src/components/cloudflare-logo/cloudflare-logo.d.ts.map +0 -1
- package/dist/src/components/cloudflare-logo/index.d.ts +0 -2
- package/dist/src/components/cloudflare-logo/index.d.ts.map +0 -1
- package/dist/src/components/code/code.d.ts +0 -189
- package/dist/src/components/code/code.d.ts.map +0 -1
- package/dist/src/components/code/index.d.ts +0 -4
- package/dist/src/components/code/index.d.ts.map +0 -1
- package/dist/src/components/collapsible/collapsible.d.ts +0 -109
- package/dist/src/components/collapsible/collapsible.d.ts.map +0 -1
- package/dist/src/components/collapsible/index.d.ts +0 -2
- package/dist/src/components/collapsible/index.d.ts.map +0 -1
- package/dist/src/components/combobox/combobox.d.ts +0 -246
- package/dist/src/components/combobox/combobox.d.ts.map +0 -1
- package/dist/src/components/combobox/index.d.ts +0 -3
- package/dist/src/components/combobox/index.d.ts.map +0 -1
- package/dist/src/components/command-palette/command-palette.d.ts +0 -258
- package/dist/src/components/command-palette/command-palette.d.ts.map +0 -1
- package/dist/src/components/command-palette/index.d.ts +0 -3
- package/dist/src/components/command-palette/index.d.ts.map +0 -1
- package/dist/src/components/command-palette/types.d.ts +0 -168
- package/dist/src/components/command-palette/types.d.ts.map +0 -1
- package/dist/src/components/date-picker/date-picker.d.ts +0 -65
- package/dist/src/components/date-picker/date-picker.d.ts.map +0 -1
- package/dist/src/components/date-picker/index.d.ts +0 -4
- package/dist/src/components/date-picker/index.d.ts.map +0 -1
- package/dist/src/components/date-range-picker/date-range-picker.d.ts +0 -125
- package/dist/src/components/date-range-picker/date-range-picker.d.ts.map +0 -1
- package/dist/src/components/date-range-picker/index.d.ts +0 -5
- package/dist/src/components/date-range-picker/index.d.ts.map +0 -1
- package/dist/src/components/dialog/dialog.d.ts +0 -242
- package/dist/src/components/dialog/dialog.d.ts.map +0 -1
- package/dist/src/components/dialog/index.d.ts +0 -2
- package/dist/src/components/dialog/index.d.ts.map +0 -1
- package/dist/src/components/dropdown/dropdown.d.ts +0 -116
- package/dist/src/components/dropdown/dropdown.d.ts.map +0 -1
- package/dist/src/components/dropdown/index.d.ts +0 -2
- package/dist/src/components/dropdown/index.d.ts.map +0 -1
- package/dist/src/components/empty/empty.d.ts +0 -69
- package/dist/src/components/empty/empty.d.ts.map +0 -1
- package/dist/src/components/empty/index.d.ts +0 -2
- package/dist/src/components/empty/index.d.ts.map +0 -1
- package/dist/src/components/field/field.d.ts +0 -89
- package/dist/src/components/field/field.d.ts.map +0 -1
- package/dist/src/components/field/index.d.ts +0 -2
- package/dist/src/components/field/index.d.ts.map +0 -1
- package/dist/src/components/flow/connectors.d.ts +0 -59
- package/dist/src/components/flow/connectors.d.ts.map +0 -1
- package/dist/src/components/flow/diagram.d.ts +0 -105
- package/dist/src/components/flow/diagram.d.ts.map +0 -1
- package/dist/src/components/flow/flow-layout.d.ts +0 -77
- package/dist/src/components/flow/flow-layout.d.ts.map +0 -1
- package/dist/src/components/flow/index.d.ts +0 -26
- package/dist/src/components/flow/index.d.ts.map +0 -1
- package/dist/src/components/flow/node.d.ts +0 -61
- package/dist/src/components/flow/node.d.ts.map +0 -1
- package/dist/src/components/flow/parallel.d.ts +0 -9
- package/dist/src/components/flow/parallel.d.ts.map +0 -1
- package/dist/src/components/flow/use-children.d.ts +0 -27
- package/dist/src/components/flow/use-children.d.ts.map +0 -1
- package/dist/src/components/grid/grid.d.ts +0 -135
- package/dist/src/components/grid/grid.d.ts.map +0 -1
- package/dist/src/components/grid/index.d.ts +0 -2
- package/dist/src/components/grid/index.d.ts.map +0 -1
- package/dist/src/components/input/index.d.ts +0 -19
- package/dist/src/components/input/index.d.ts.map +0 -1
- package/dist/src/components/input/input-area.d.ts +0 -83
- package/dist/src/components/input/input-area.d.ts.map +0 -1
- package/dist/src/components/input/input.d.ts +0 -175
- package/dist/src/components/input/input.d.ts.map +0 -1
- package/dist/src/components/input-group/context.d.ts +0 -96
- package/dist/src/components/input-group/context.d.ts.map +0 -1
- package/dist/src/components/input-group/index.d.ts +0 -2
- package/dist/src/components/input-group/index.d.ts.map +0 -1
- package/dist/src/components/input-group/input-group-addon.d.ts +0 -15
- package/dist/src/components/input-group/input-group-addon.d.ts.map +0 -1
- package/dist/src/components/input-group/input-group-button.d.ts +0 -36
- package/dist/src/components/input-group/input-group-button.d.ts.map +0 -1
- package/dist/src/components/input-group/input-group-input.d.ts +0 -9
- package/dist/src/components/input-group/input-group-input.d.ts.map +0 -1
- package/dist/src/components/input-group/input-group-suffix.d.ts +0 -13
- package/dist/src/components/input-group/input-group-suffix.d.ts.map +0 -1
- package/dist/src/components/input-group/input-group.d.ts +0 -43
- package/dist/src/components/input-group/input-group.d.ts.map +0 -1
- package/dist/src/components/label/index.d.ts +0 -2
- package/dist/src/components/label/index.d.ts.map +0 -1
- package/dist/src/components/label/label.d.ts +0 -67
- package/dist/src/components/label/label.d.ts.map +0 -1
- package/dist/src/components/layer-card/index.d.ts +0 -2
- package/dist/src/components/layer-card/index.d.ts.map +0 -1
- package/dist/src/components/layer-card/layer-card.d.ts +0 -60
- package/dist/src/components/layer-card/layer-card.d.ts.map +0 -1
- package/dist/src/components/link/index.d.ts +0 -2
- package/dist/src/components/link/index.d.ts.map +0 -1
- package/dist/src/components/link/link.d.ts +0 -66
- package/dist/src/components/link/link.d.ts.map +0 -1
- package/dist/src/components/loader/index.d.ts +0 -3
- package/dist/src/components/loader/index.d.ts.map +0 -1
- package/dist/src/components/loader/loader.d.ts +0 -70
- package/dist/src/components/loader/loader.d.ts.map +0 -1
- package/dist/src/components/loader/skeleton-line.d.ts +0 -11
- package/dist/src/components/loader/skeleton-line.d.ts.map +0 -1
- package/dist/src/components/menubar/index.d.ts +0 -3
- package/dist/src/components/menubar/index.d.ts.map +0 -1
- package/dist/src/components/menubar/menubar.d.ts +0 -66
- package/dist/src/components/menubar/menubar.d.ts.map +0 -1
- package/dist/src/components/menubar/use-menu-navigation.d.ts +0 -8
- package/dist/src/components/menubar/use-menu-navigation.d.ts.map +0 -1
- package/dist/src/components/meter/index.d.ts +0 -2
- package/dist/src/components/meter/index.d.ts.map +0 -1
- package/dist/src/components/meter/meter.d.ts +0 -44
- package/dist/src/components/meter/meter.d.ts.map +0 -1
- package/dist/src/components/pagination/index.d.ts +0 -2
- package/dist/src/components/pagination/index.d.ts.map +0 -1
- package/dist/src/components/pagination/pagination.d.ts +0 -241
- package/dist/src/components/pagination/pagination.d.ts.map +0 -1
- package/dist/src/components/popover/index.d.ts +0 -3
- package/dist/src/components/popover/index.d.ts.map +0 -1
- package/dist/src/components/popover/popover.d.ts +0 -178
- package/dist/src/components/popover/popover.d.ts.map +0 -1
- package/dist/src/components/radio/index.d.ts +0 -2
- package/dist/src/components/radio/index.d.ts.map +0 -1
- package/dist/src/components/radio/radio.d.ts +0 -277
- package/dist/src/components/radio/radio.d.ts.map +0 -1
- package/dist/src/components/radio/radio.type-spec.d.ts +0 -12
- package/dist/src/components/radio/radio.type-spec.d.ts.map +0 -1
- package/dist/src/components/select/index.d.ts +0 -2
- package/dist/src/components/select/index.d.ts.map +0 -1
- package/dist/src/components/select/select.d.ts +0 -288
- package/dist/src/components/select/select.d.ts.map +0 -1
- package/dist/src/components/sensitive-input/index.d.ts +0 -2
- package/dist/src/components/sensitive-input/index.d.ts.map +0 -1
- package/dist/src/components/sensitive-input/sensitive-input.d.ts +0 -94
- package/dist/src/components/sensitive-input/sensitive-input.d.ts.map +0 -1
- package/dist/src/components/sidebar/index.d.ts +0 -2
- package/dist/src/components/sidebar/index.d.ts.map +0 -1
- package/dist/src/components/sidebar/sidebar.d.ts +0 -583
- package/dist/src/components/sidebar/sidebar.d.ts.map +0 -1
- package/dist/src/components/surface/index.d.ts +0 -5
- package/dist/src/components/surface/index.d.ts.map +0 -1
- package/dist/src/components/surface/surface.d.ts +0 -64
- package/dist/src/components/surface/surface.d.ts.map +0 -1
- package/dist/src/components/switch/index.d.ts +0 -2
- package/dist/src/components/switch/index.d.ts.map +0 -1
- package/dist/src/components/switch/switch.d.ts +0 -197
- package/dist/src/components/switch/switch.d.ts.map +0 -1
- package/dist/src/components/table/index.d.ts +0 -2
- package/dist/src/components/table/index.d.ts.map +0 -1
- package/dist/src/components/table/table.d.ts +0 -138
- package/dist/src/components/table/table.d.ts.map +0 -1
- package/dist/src/components/table-of-contents/index.d.ts +0 -2
- package/dist/src/components/table-of-contents/index.d.ts.map +0 -1
- package/dist/src/components/table-of-contents/table-of-contents.d.ts +0 -72
- package/dist/src/components/table-of-contents/table-of-contents.d.ts.map +0 -1
- package/dist/src/components/tabs/index.d.ts +0 -3
- package/dist/src/components/tabs/index.d.ts.map +0 -1
- package/dist/src/components/tabs/tabs.d.ts +0 -116
- package/dist/src/components/tabs/tabs.d.ts.map +0 -1
- package/dist/src/components/text/index.d.ts +0 -2
- package/dist/src/components/text/index.d.ts.map +0 -1
- package/dist/src/components/text/text.d.ts +0 -214
- package/dist/src/components/text/text.d.ts.map +0 -1
- package/dist/src/components/text/text.type-spec.d.ts +0 -44
- package/dist/src/components/text/text.type-spec.d.ts.map +0 -1
- package/dist/src/components/toast/index.d.ts +0 -5
- package/dist/src/components/toast/index.d.ts.map +0 -1
- package/dist/src/components/toast/toast.d.ts +0 -197
- package/dist/src/components/toast/toast.d.ts.map +0 -1
- package/dist/src/components/toolbar/index.d.ts +0 -2
- package/dist/src/components/toolbar/index.d.ts.map +0 -1
- package/dist/src/components/toolbar/toolbar.d.ts +0 -50
- package/dist/src/components/toolbar/toolbar.d.ts.map +0 -1
- package/dist/src/components/tooltip/index.d.ts +0 -2
- package/dist/src/components/tooltip/index.d.ts.map +0 -1
- package/dist/src/components/tooltip/tooltip.d.ts +0 -108
- package/dist/src/components/tooltip/tooltip.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -85
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/primitives/accordion.d.ts +0 -13
- package/dist/src/primitives/accordion.d.ts.map +0 -1
- package/dist/src/primitives/alert-dialog.d.ts +0 -13
- package/dist/src/primitives/alert-dialog.d.ts.map +0 -1
- package/dist/src/primitives/autocomplete.d.ts +0 -13
- package/dist/src/primitives/autocomplete.d.ts.map +0 -1
- package/dist/src/primitives/avatar.d.ts +0 -13
- package/dist/src/primitives/avatar.d.ts.map +0 -1
- package/dist/src/primitives/button.d.ts +0 -13
- package/dist/src/primitives/button.d.ts.map +0 -1
- package/dist/src/primitives/checkbox-group.d.ts +0 -13
- package/dist/src/primitives/checkbox-group.d.ts.map +0 -1
- package/dist/src/primitives/checkbox.d.ts +0 -13
- package/dist/src/primitives/checkbox.d.ts.map +0 -1
- package/dist/src/primitives/collapsible.d.ts +0 -13
- package/dist/src/primitives/collapsible.d.ts.map +0 -1
- package/dist/src/primitives/combobox.d.ts +0 -13
- package/dist/src/primitives/combobox.d.ts.map +0 -1
- package/dist/src/primitives/context-menu.d.ts +0 -13
- package/dist/src/primitives/context-menu.d.ts.map +0 -1
- package/dist/src/primitives/csp-provider.d.ts +0 -13
- package/dist/src/primitives/csp-provider.d.ts.map +0 -1
- package/dist/src/primitives/dialog.d.ts +0 -13
- package/dist/src/primitives/dialog.d.ts.map +0 -1
- package/dist/src/primitives/direction-provider.d.ts +0 -13
- package/dist/src/primitives/direction-provider.d.ts.map +0 -1
- package/dist/src/primitives/drawer.d.ts +0 -13
- package/dist/src/primitives/drawer.d.ts.map +0 -1
- package/dist/src/primitives/field.d.ts +0 -13
- package/dist/src/primitives/field.d.ts.map +0 -1
- package/dist/src/primitives/fieldset.d.ts +0 -13
- package/dist/src/primitives/fieldset.d.ts.map +0 -1
- package/dist/src/primitives/form.d.ts +0 -13
- package/dist/src/primitives/form.d.ts.map +0 -1
- package/dist/src/primitives/index.d.ts +0 -56
- package/dist/src/primitives/index.d.ts.map +0 -1
- package/dist/src/primitives/input.d.ts +0 -13
- package/dist/src/primitives/input.d.ts.map +0 -1
- package/dist/src/primitives/menu.d.ts +0 -13
- package/dist/src/primitives/menu.d.ts.map +0 -1
- package/dist/src/primitives/menubar.d.ts +0 -13
- package/dist/src/primitives/menubar.d.ts.map +0 -1
- package/dist/src/primitives/meter.d.ts +0 -13
- package/dist/src/primitives/meter.d.ts.map +0 -1
- package/dist/src/primitives/navigation-menu.d.ts +0 -13
- package/dist/src/primitives/navigation-menu.d.ts.map +0 -1
- package/dist/src/primitives/number-field.d.ts +0 -13
- package/dist/src/primitives/number-field.d.ts.map +0 -1
- package/dist/src/primitives/otp-field.d.ts +0 -14
- package/dist/src/primitives/otp-field.d.ts.map +0 -1
- package/dist/src/primitives/popover.d.ts +0 -13
- package/dist/src/primitives/popover.d.ts.map +0 -1
- package/dist/src/primitives/preview-card.d.ts +0 -13
- package/dist/src/primitives/preview-card.d.ts.map +0 -1
- package/dist/src/primitives/progress.d.ts +0 -13
- package/dist/src/primitives/progress.d.ts.map +0 -1
- package/dist/src/primitives/radio-group.d.ts +0 -13
- package/dist/src/primitives/radio-group.d.ts.map +0 -1
- package/dist/src/primitives/radio.d.ts +0 -13
- package/dist/src/primitives/radio.d.ts.map +0 -1
- package/dist/src/primitives/scroll-area.d.ts +0 -13
- package/dist/src/primitives/scroll-area.d.ts.map +0 -1
- package/dist/src/primitives/select.d.ts +0 -13
- package/dist/src/primitives/select.d.ts.map +0 -1
- package/dist/src/primitives/separator.d.ts +0 -13
- package/dist/src/primitives/separator.d.ts.map +0 -1
- package/dist/src/primitives/slider.d.ts +0 -13
- package/dist/src/primitives/slider.d.ts.map +0 -1
- package/dist/src/primitives/switch.d.ts +0 -13
- package/dist/src/primitives/switch.d.ts.map +0 -1
- package/dist/src/primitives/tabs.d.ts +0 -13
- package/dist/src/primitives/tabs.d.ts.map +0 -1
- package/dist/src/primitives/toast.d.ts +0 -13
- package/dist/src/primitives/toast.d.ts.map +0 -1
- package/dist/src/primitives/toggle-group.d.ts +0 -13
- package/dist/src/primitives/toggle-group.d.ts.map +0 -1
- package/dist/src/primitives/toggle.d.ts +0 -13
- package/dist/src/primitives/toggle.d.ts.map +0 -1
- package/dist/src/primitives/toolbar.d.ts +0 -13
- package/dist/src/primitives/toolbar.d.ts.map +0 -1
- package/dist/src/primitives/tooltip.d.ts +0 -13
- package/dist/src/primitives/tooltip.d.ts.map +0 -1
- package/dist/src/registry/index.d.ts +0 -8
- package/dist/src/registry/index.d.ts.map +0 -1
- package/dist/src/registry/types.d.ts +0 -191
- package/dist/src/registry/types.d.ts.map +0 -1
- package/dist/src/utils/cn.d.ts +0 -3
- package/dist/src/utils/cn.d.ts.map +0 -1
- package/dist/src/utils/index.d.ts +0 -4
- package/dist/src/utils/index.d.ts.map +0 -1
- package/dist/src/utils/link-provider.d.ts +0 -66
- package/dist/src/utils/link-provider.d.ts.map +0 -1
- package/dist/src/utils/portal-provider.d.ts +0 -56
- package/dist/src/utils/portal-provider.d.ts.map +0 -1
- package/dist/src/utils/prop-examples.d.ts +0 -36
- package/dist/src/utils/prop-examples.d.ts.map +0 -1
- package/dist/src/utils/resolve-variant.d.ts +0 -27
- package/dist/src/utils/resolve-variant.d.ts.map +0 -1
- package/dist/utils.js.map +0 -1
|
@@ -0,0 +1,3631 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region ../../node_modules/.pnpm/cnfast@0.0.8/node_modules/cnfast/dist/index.mjs
|
|
3
|
+
const isArray = Array.isArray;
|
|
4
|
+
const resolveClassValue = (value) => {
|
|
5
|
+
if (!value) return "";
|
|
6
|
+
if (typeof value === "string") return value;
|
|
7
|
+
if (typeof value === "number") return "" + value;
|
|
8
|
+
let result = "";
|
|
9
|
+
if (isArray(value)) {
|
|
10
|
+
const length = value.length;
|
|
11
|
+
for (let index = 0; index < length; index++) {
|
|
12
|
+
const item = value[index];
|
|
13
|
+
if (!item) continue;
|
|
14
|
+
const resolved = typeof item === "string" ? item : resolveClassValue(item);
|
|
15
|
+
if (resolved) {
|
|
16
|
+
if (result) result += " ";
|
|
17
|
+
result += resolved;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return result;
|
|
21
|
+
}
|
|
22
|
+
if (typeof value === "object") {
|
|
23
|
+
for (const key in value) if (value[key]) {
|
|
24
|
+
if (result) result += " ";
|
|
25
|
+
result += key;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return result;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Concatenates two arrays faster than the array spread operator.
|
|
32
|
+
*/
|
|
33
|
+
const concatArrays = (array1, array2) => {
|
|
34
|
+
const length1 = array1.length;
|
|
35
|
+
const length2 = array2.length;
|
|
36
|
+
const combinedArray = new Array(length1 + length2);
|
|
37
|
+
for (let i = 0; i < length1; i++) combinedArray[i] = array1[i];
|
|
38
|
+
for (let i = 0; i < length2; i++) combinedArray[length1 + i] = array2[i];
|
|
39
|
+
return combinedArray;
|
|
40
|
+
};
|
|
41
|
+
const createClassValidatorObject = (classGroupId, validator) => ({
|
|
42
|
+
classGroupId,
|
|
43
|
+
validator
|
|
44
|
+
});
|
|
45
|
+
const createClassPartObject = (nextPart = /* @__PURE__ */ new Map(), validators = null, classGroupId) => ({
|
|
46
|
+
nextPart,
|
|
47
|
+
validators,
|
|
48
|
+
classGroupId
|
|
49
|
+
});
|
|
50
|
+
const CLASS_PART_SEPARATOR = "-";
|
|
51
|
+
const EMPTY_CONFLICTS = [];
|
|
52
|
+
const ARBITRARY_PROPERTY_PREFIX = "arbitrary..";
|
|
53
|
+
const createClassGroupUtils = (config) => {
|
|
54
|
+
const classMap = createClassMap(config);
|
|
55
|
+
const { conflictingClassGroups, conflictingClassGroupModifiers } = config;
|
|
56
|
+
const getClassGroupId = (className) => {
|
|
57
|
+
if (className[0] === "[" && className[className.length - 1] === "]") return getGroupIdForArbitraryProperty(className);
|
|
58
|
+
const classParts = className.split(CLASS_PART_SEPARATOR);
|
|
59
|
+
return getGroupRecursive(classParts, classParts[0] === "" && classParts.length > 1 ? 1 : 0, classMap);
|
|
60
|
+
};
|
|
61
|
+
const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
|
|
62
|
+
if (hasPostfixModifier) {
|
|
63
|
+
const modifierConflicts = conflictingClassGroupModifiers[classGroupId];
|
|
64
|
+
const baseConflicts = conflictingClassGroups[classGroupId];
|
|
65
|
+
if (modifierConflicts) {
|
|
66
|
+
if (baseConflicts) return concatArrays(baseConflicts, modifierConflicts);
|
|
67
|
+
return modifierConflicts;
|
|
68
|
+
}
|
|
69
|
+
return baseConflicts || EMPTY_CONFLICTS;
|
|
70
|
+
}
|
|
71
|
+
return conflictingClassGroups[classGroupId] || EMPTY_CONFLICTS;
|
|
72
|
+
};
|
|
73
|
+
return {
|
|
74
|
+
getClassGroupId,
|
|
75
|
+
getConflictingClassGroupIds
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
const getGroupRecursive = (classParts, startIndex, classPartObject) => {
|
|
79
|
+
if (classParts.length - startIndex === 0) return classPartObject.classGroupId;
|
|
80
|
+
const currentClassPart = classParts[startIndex];
|
|
81
|
+
const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
|
|
82
|
+
if (nextClassPartObject) {
|
|
83
|
+
const result = getGroupRecursive(classParts, startIndex + 1, nextClassPartObject);
|
|
84
|
+
if (result) return result;
|
|
85
|
+
}
|
|
86
|
+
const validators = classPartObject.validators;
|
|
87
|
+
if (validators === null) return;
|
|
88
|
+
const classRest = startIndex === 0 ? classParts.join(CLASS_PART_SEPARATOR) : classParts.slice(startIndex).join(CLASS_PART_SEPARATOR);
|
|
89
|
+
const validatorsLength = validators.length;
|
|
90
|
+
for (let index = 0; index < validatorsLength; index++) {
|
|
91
|
+
const validatorObject = validators[index];
|
|
92
|
+
if (validatorObject.validator(classRest)) return validatorObject.classGroupId;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Get the class group ID for an arbitrary property.
|
|
97
|
+
*
|
|
98
|
+
* @param className - The class name to get the group ID for. Is expected to be string starting with `[` and ending with `]`.
|
|
99
|
+
*/
|
|
100
|
+
const getGroupIdForArbitraryProperty = (className) => {
|
|
101
|
+
const content = className.slice(1, -1);
|
|
102
|
+
const colonIndex = content.indexOf(":");
|
|
103
|
+
if (colonIndex === -1) return;
|
|
104
|
+
const property = content.slice(0, colonIndex);
|
|
105
|
+
return property ? ARBITRARY_PROPERTY_PREFIX + property : void 0;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Exported for testing only
|
|
109
|
+
*/
|
|
110
|
+
const createClassMap = (config) => {
|
|
111
|
+
const { theme, classGroups } = config;
|
|
112
|
+
return processClassGroups(classGroups, theme);
|
|
113
|
+
};
|
|
114
|
+
const processClassGroups = (classGroups, theme) => {
|
|
115
|
+
const classMap = createClassPartObject();
|
|
116
|
+
for (const classGroupId in classGroups) {
|
|
117
|
+
const group = classGroups[classGroupId];
|
|
118
|
+
processClassesRecursively(group, classMap, classGroupId, theme);
|
|
119
|
+
}
|
|
120
|
+
return classMap;
|
|
121
|
+
};
|
|
122
|
+
const processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
|
|
123
|
+
const length = classGroup.length;
|
|
124
|
+
for (let index = 0; index < length; index++) {
|
|
125
|
+
const classDefinition = classGroup[index];
|
|
126
|
+
processClassDefinition(classDefinition, classPartObject, classGroupId, theme);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
const processClassDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
|
|
130
|
+
if (typeof classDefinition === "string") {
|
|
131
|
+
processStringDefinition(classDefinition, classPartObject, classGroupId);
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
if (typeof classDefinition === "function") {
|
|
135
|
+
processFunctionDefinition(classDefinition, classPartObject, classGroupId, theme);
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
processObjectDefinition(classDefinition, classPartObject, classGroupId, theme);
|
|
139
|
+
};
|
|
140
|
+
const processStringDefinition = (classDefinition, classPartObject, classGroupId) => {
|
|
141
|
+
const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
|
|
142
|
+
classPartObjectToEdit.classGroupId = classGroupId;
|
|
143
|
+
};
|
|
144
|
+
const processFunctionDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
|
|
145
|
+
if (isThemeGetter(classDefinition)) {
|
|
146
|
+
processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
if (classPartObject.validators === null) classPartObject.validators = [];
|
|
150
|
+
classPartObject.validators.push(createClassValidatorObject(classGroupId, classDefinition));
|
|
151
|
+
};
|
|
152
|
+
const processObjectDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
|
|
153
|
+
const entries = Object.entries(classDefinition);
|
|
154
|
+
const length = entries.length;
|
|
155
|
+
for (let index = 0; index < length; index++) {
|
|
156
|
+
const [key, value] = entries[index];
|
|
157
|
+
processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme);
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
const getPart = (classPartObject, path) => {
|
|
161
|
+
let current = classPartObject;
|
|
162
|
+
const parts = path.split(CLASS_PART_SEPARATOR);
|
|
163
|
+
const length = parts.length;
|
|
164
|
+
for (let index = 0; index < length; index++) {
|
|
165
|
+
const part = parts[index];
|
|
166
|
+
let next = current.nextPart.get(part);
|
|
167
|
+
if (!next) {
|
|
168
|
+
next = createClassPartObject();
|
|
169
|
+
current.nextPart.set(part, next);
|
|
170
|
+
}
|
|
171
|
+
current = next;
|
|
172
|
+
}
|
|
173
|
+
return current;
|
|
174
|
+
};
|
|
175
|
+
const isThemeGetter = (classDefinition) => "isThemeGetter" in classDefinition && classDefinition.isThemeGetter === true;
|
|
176
|
+
const CHAR_MODIFIER_SEPARATOR = 58;
|
|
177
|
+
const CHAR_POSTFIX_SEPARATOR = 47;
|
|
178
|
+
const CHAR_OPEN_BRACKET = 91;
|
|
179
|
+
const CHAR_CLOSE_BRACKET = 93;
|
|
180
|
+
const CHAR_OPEN_PAREN = 40;
|
|
181
|
+
const CHAR_CLOSE_PAREN = 41;
|
|
182
|
+
const CHAR_IMPORTANT = 33;
|
|
183
|
+
const createResultObject = (modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition) => ({
|
|
184
|
+
modifiers,
|
|
185
|
+
hasImportantModifier,
|
|
186
|
+
baseClassName,
|
|
187
|
+
maybePostfixModifierPosition,
|
|
188
|
+
isExternal: void 0
|
|
189
|
+
});
|
|
190
|
+
/**
|
|
191
|
+
* Parse class name into parts.
|
|
192
|
+
*
|
|
193
|
+
* Inspired by `splitAtTopLevelOnly` used in Tailwind CSS
|
|
194
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
|
|
195
|
+
*/
|
|
196
|
+
const parseClassName = (className) => {
|
|
197
|
+
const modifiers = [];
|
|
198
|
+
let bracketDepth = 0;
|
|
199
|
+
let parenDepth = 0;
|
|
200
|
+
let modifierStart = 0;
|
|
201
|
+
let postfixModifierPosition;
|
|
202
|
+
const len = className.length;
|
|
203
|
+
for (let index = 0; index < len; index++) {
|
|
204
|
+
const charCode = className.charCodeAt(index);
|
|
205
|
+
if (bracketDepth === 0 && parenDepth === 0) {
|
|
206
|
+
if (charCode === CHAR_MODIFIER_SEPARATOR) {
|
|
207
|
+
modifiers.push(className.slice(modifierStart, index));
|
|
208
|
+
modifierStart = index + 1;
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
211
|
+
if (charCode === CHAR_POSTFIX_SEPARATOR) {
|
|
212
|
+
postfixModifierPosition = index;
|
|
213
|
+
continue;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
if (charCode === CHAR_OPEN_BRACKET) bracketDepth++;
|
|
217
|
+
else if (charCode === CHAR_CLOSE_BRACKET) bracketDepth--;
|
|
218
|
+
else if (charCode === CHAR_OPEN_PAREN) parenDepth++;
|
|
219
|
+
else if (charCode === CHAR_CLOSE_PAREN) parenDepth--;
|
|
220
|
+
}
|
|
221
|
+
const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.slice(modifierStart);
|
|
222
|
+
let baseClassName = baseClassNameWithImportantModifier;
|
|
223
|
+
let hasImportantModifier = false;
|
|
224
|
+
const lastIndex = baseClassNameWithImportantModifier.length - 1;
|
|
225
|
+
if (baseClassNameWithImportantModifier.charCodeAt(lastIndex) === CHAR_IMPORTANT) {
|
|
226
|
+
baseClassName = baseClassNameWithImportantModifier.slice(0, -1);
|
|
227
|
+
hasImportantModifier = true;
|
|
228
|
+
} else if (baseClassNameWithImportantModifier.charCodeAt(0) === CHAR_IMPORTANT) {
|
|
229
|
+
baseClassName = baseClassNameWithImportantModifier.slice(1);
|
|
230
|
+
hasImportantModifier = true;
|
|
231
|
+
}
|
|
232
|
+
const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
|
|
233
|
+
return createResultObject(modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition);
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* Sorts modifiers according to following schema:
|
|
237
|
+
* - Predefined modifiers are sorted alphabetically
|
|
238
|
+
* - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
|
|
239
|
+
*/
|
|
240
|
+
const createSortModifiers = (config) => {
|
|
241
|
+
const orderSensitiveModifiers = new Set(config.orderSensitiveModifiers);
|
|
242
|
+
return (modifiers) => {
|
|
243
|
+
const result = [];
|
|
244
|
+
let currentSegment = [];
|
|
245
|
+
for (let index = 0; index < modifiers.length; index++) {
|
|
246
|
+
const modifier = modifiers[index];
|
|
247
|
+
const isArbitrary = modifier[0] === "[";
|
|
248
|
+
const isOrderSensitive = orderSensitiveModifiers.has(modifier);
|
|
249
|
+
if (isArbitrary || isOrderSensitive) {
|
|
250
|
+
if (currentSegment.length > 0) {
|
|
251
|
+
currentSegment.sort();
|
|
252
|
+
for (let segmentIndex = 0; segmentIndex < currentSegment.length; segmentIndex++) result.push(currentSegment[segmentIndex]);
|
|
253
|
+
currentSegment = [];
|
|
254
|
+
}
|
|
255
|
+
result.push(modifier);
|
|
256
|
+
} else currentSegment.push(modifier);
|
|
257
|
+
}
|
|
258
|
+
if (currentSegment.length > 0) {
|
|
259
|
+
currentSegment.sort();
|
|
260
|
+
for (let segmentIndex = 0; segmentIndex < currentSegment.length; segmentIndex++) result.push(currentSegment[segmentIndex]);
|
|
261
|
+
}
|
|
262
|
+
return result;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
const EXTERNAL_DESCRIPTOR = {
|
|
266
|
+
isExternal: true,
|
|
267
|
+
classId: -1,
|
|
268
|
+
conflictIds: []
|
|
269
|
+
};
|
|
270
|
+
/**
|
|
271
|
+
* Per-token descriptor cache capacity (entries). Larger than the whole-string LRU because
|
|
272
|
+
* individual tokens are far more numerous but cheap to store; the LRU bound prevents
|
|
273
|
+
* unbounded growth when callers pass dynamically generated arbitrary values (e.g. `w-[123px]`).
|
|
274
|
+
*/
|
|
275
|
+
const DESCRIPTOR_CACHE_SIZE = 4096;
|
|
276
|
+
const createConfigUtils = (config) => {
|
|
277
|
+
const sortModifiers = createSortModifiers(config);
|
|
278
|
+
const postfixLookupClassGroupIds = createPostfixLookupClassGroupIds(config);
|
|
279
|
+
const { getClassGroupId, getConflictingClassGroupIds } = createClassGroupUtils(config);
|
|
280
|
+
let descriptorCache = Object.create(null);
|
|
281
|
+
let previousDescriptorCache = Object.create(null);
|
|
282
|
+
let descriptorCacheSize = 0;
|
|
283
|
+
let claimedGeneration = /* @__PURE__ */ new Int32Array(256);
|
|
284
|
+
let currentGeneration = 0;
|
|
285
|
+
let keepFlags = /* @__PURE__ */ new Uint8Array(64);
|
|
286
|
+
let splitSawNonSpaceWhitespace = false;
|
|
287
|
+
const splitClassList = (classList) => {
|
|
288
|
+
const tokens = [];
|
|
289
|
+
const length = classList.length;
|
|
290
|
+
let tokenStart = -1;
|
|
291
|
+
splitSawNonSpaceWhitespace = false;
|
|
292
|
+
for (let index = 0; index < length; index++) {
|
|
293
|
+
const charCode = classList.charCodeAt(index);
|
|
294
|
+
if (charCode === 32) {
|
|
295
|
+
if (tokenStart !== -1) {
|
|
296
|
+
tokens.push(classList.slice(tokenStart, index));
|
|
297
|
+
tokenStart = -1;
|
|
298
|
+
}
|
|
299
|
+
} else if (charCode >= 9 && charCode <= 13) {
|
|
300
|
+
splitSawNonSpaceWhitespace = true;
|
|
301
|
+
if (tokenStart !== -1) {
|
|
302
|
+
tokens.push(classList.slice(tokenStart, index));
|
|
303
|
+
tokenStart = -1;
|
|
304
|
+
}
|
|
305
|
+
} else if (tokenStart === -1) tokenStart = index;
|
|
306
|
+
}
|
|
307
|
+
if (tokenStart !== -1) tokens.push(classList.slice(tokenStart));
|
|
308
|
+
return tokens;
|
|
309
|
+
};
|
|
310
|
+
const conflictKeyIds = /* @__PURE__ */ new Map();
|
|
311
|
+
let nextConflictKeyId = 0;
|
|
312
|
+
const internConflictKey = (conflictKey) => {
|
|
313
|
+
let id = conflictKeyIds.get(conflictKey);
|
|
314
|
+
if (id === void 0) {
|
|
315
|
+
id = nextConflictKeyId++;
|
|
316
|
+
conflictKeyIds.set(conflictKey, id);
|
|
317
|
+
if (id >= claimedGeneration.length) {
|
|
318
|
+
const grown = new Int32Array(claimedGeneration.length * 2);
|
|
319
|
+
grown.set(claimedGeneration);
|
|
320
|
+
claimedGeneration = grown;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
return id;
|
|
324
|
+
};
|
|
325
|
+
const computeClassDescriptor = (originalClassName) => {
|
|
326
|
+
const { isExternal, modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition } = parseClassName(originalClassName);
|
|
327
|
+
if (isExternal) return EXTERNAL_DESCRIPTOR;
|
|
328
|
+
let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
|
|
329
|
+
let classGroupId;
|
|
330
|
+
if (hasPostfixModifier) {
|
|
331
|
+
classGroupId = getClassGroupId(baseClassName.substring(0, maybePostfixModifierPosition));
|
|
332
|
+
const classGroupIdWithPostfix = classGroupId && postfixLookupClassGroupIds[classGroupId] ? getClassGroupId(baseClassName) : void 0;
|
|
333
|
+
if (classGroupIdWithPostfix && classGroupIdWithPostfix !== classGroupId) {
|
|
334
|
+
classGroupId = classGroupIdWithPostfix;
|
|
335
|
+
hasPostfixModifier = false;
|
|
336
|
+
}
|
|
337
|
+
} else classGroupId = getClassGroupId(baseClassName);
|
|
338
|
+
if (!classGroupId) {
|
|
339
|
+
if (!hasPostfixModifier) return EXTERNAL_DESCRIPTOR;
|
|
340
|
+
classGroupId = getClassGroupId(baseClassName);
|
|
341
|
+
if (!classGroupId) return EXTERNAL_DESCRIPTOR;
|
|
342
|
+
hasPostfixModifier = false;
|
|
343
|
+
}
|
|
344
|
+
const variantModifier = modifiers.length === 0 ? "" : modifiers.length === 1 ? modifiers[0] : sortModifiers(modifiers).join(":");
|
|
345
|
+
const modifierId = hasImportantModifier ? variantModifier + "!" : variantModifier;
|
|
346
|
+
const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
|
|
347
|
+
const conflictIds = [];
|
|
348
|
+
for (let index = 0; index < conflictGroups.length; index++) conflictIds.push(internConflictKey(modifierId + conflictGroups[index]));
|
|
349
|
+
return {
|
|
350
|
+
isExternal: false,
|
|
351
|
+
classId: internConflictKey(modifierId + classGroupId),
|
|
352
|
+
conflictIds
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
const getClassDescriptor = (originalClassName) => {
|
|
356
|
+
let descriptor = descriptorCache[originalClassName];
|
|
357
|
+
if (descriptor !== void 0) return descriptor;
|
|
358
|
+
descriptor = previousDescriptorCache[originalClassName];
|
|
359
|
+
if (descriptor === void 0) descriptor = computeClassDescriptor(originalClassName);
|
|
360
|
+
descriptorCache[originalClassName] = descriptor;
|
|
361
|
+
if (++descriptorCacheSize > DESCRIPTOR_CACHE_SIZE) {
|
|
362
|
+
descriptorCacheSize = 0;
|
|
363
|
+
previousDescriptorCache = descriptorCache;
|
|
364
|
+
descriptorCache = Object.create(null);
|
|
365
|
+
}
|
|
366
|
+
return descriptor;
|
|
367
|
+
};
|
|
368
|
+
const mergeClassList = (classList) => {
|
|
369
|
+
const classNames = splitClassList(classList);
|
|
370
|
+
const classCount = classNames.length;
|
|
371
|
+
if (classCount === 1) return classNames[0];
|
|
372
|
+
currentGeneration = currentGeneration + 1 | 0;
|
|
373
|
+
if (currentGeneration === 0) currentGeneration = 1;
|
|
374
|
+
const generation = currentGeneration;
|
|
375
|
+
if (classCount > keepFlags.length) {
|
|
376
|
+
let capacity = keepFlags.length;
|
|
377
|
+
while (capacity < classCount) capacity *= 2;
|
|
378
|
+
keepFlags = new Uint8Array(capacity);
|
|
379
|
+
}
|
|
380
|
+
let didDrop = false;
|
|
381
|
+
let tokenCharCount = 0;
|
|
382
|
+
for (let index = classCount - 1; index >= 0; index -= 1) {
|
|
383
|
+
const className = classNames[index];
|
|
384
|
+
tokenCharCount += className.length;
|
|
385
|
+
const descriptor = getClassDescriptor(className);
|
|
386
|
+
if (descriptor.isExternal) {
|
|
387
|
+
keepFlags[index] = 1;
|
|
388
|
+
continue;
|
|
389
|
+
}
|
|
390
|
+
const classId = descriptor.classId;
|
|
391
|
+
if (claimedGeneration[classId] === generation) {
|
|
392
|
+
keepFlags[index] = 0;
|
|
393
|
+
didDrop = true;
|
|
394
|
+
continue;
|
|
395
|
+
}
|
|
396
|
+
claimedGeneration[classId] = generation;
|
|
397
|
+
const conflictIds = descriptor.conflictIds;
|
|
398
|
+
for (let conflictIndex = 0; conflictIndex < conflictIds.length; conflictIndex++) claimedGeneration[conflictIds[conflictIndex]] = generation;
|
|
399
|
+
keepFlags[index] = 1;
|
|
400
|
+
}
|
|
401
|
+
if (!didDrop && !splitSawNonSpaceWhitespace && classList.length === tokenCharCount + classCount - 1) return classList;
|
|
402
|
+
let result = "";
|
|
403
|
+
for (let index = 0; index < classCount; index++) if (keepFlags[index] === 1) {
|
|
404
|
+
if (result) result += " ";
|
|
405
|
+
result += classNames[index];
|
|
406
|
+
}
|
|
407
|
+
return result;
|
|
408
|
+
};
|
|
409
|
+
return {
|
|
410
|
+
parseClassName,
|
|
411
|
+
sortModifiers,
|
|
412
|
+
postfixLookupClassGroupIds,
|
|
413
|
+
getClassGroupId,
|
|
414
|
+
getConflictingClassGroupIds,
|
|
415
|
+
getClassDescriptor,
|
|
416
|
+
mergeClassList
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
const createPostfixLookupClassGroupIds = (config) => {
|
|
420
|
+
const lookup = Object.create(null);
|
|
421
|
+
const classGroupIds = config.postfixLookupClassGroups;
|
|
422
|
+
if (classGroupIds) for (let index = 0; index < classGroupIds.length; index++) lookup[classGroupIds[index]] = true;
|
|
423
|
+
return lookup;
|
|
424
|
+
};
|
|
425
|
+
const twJoin = (...classLists) => {
|
|
426
|
+
let index = 0;
|
|
427
|
+
let argument;
|
|
428
|
+
let resolvedValue;
|
|
429
|
+
let string = "";
|
|
430
|
+
while (index < classLists.length) if (argument = classLists[index++]) {
|
|
431
|
+
if (resolvedValue = toValue(argument)) {
|
|
432
|
+
if (string) string += " ";
|
|
433
|
+
string += resolvedValue;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
return string;
|
|
437
|
+
};
|
|
438
|
+
const toValue = (value) => {
|
|
439
|
+
if (typeof value === "string") return value;
|
|
440
|
+
let resolvedValue;
|
|
441
|
+
let string = "";
|
|
442
|
+
for (let index = 0; index < value.length; index++) if (value[index]) {
|
|
443
|
+
if (resolvedValue = toValue(value[index])) {
|
|
444
|
+
if (string) string += " ";
|
|
445
|
+
string += resolvedValue;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
return string;
|
|
449
|
+
};
|
|
450
|
+
/**
|
|
451
|
+
* Whole-string result cache capacity. Matches tailwind-merge's default; cnfast ships a single,
|
|
452
|
+
* non-configurable config so it is baked in rather than exposed as an option.
|
|
453
|
+
*/
|
|
454
|
+
const MERGE_CACHE_SIZE = 500;
|
|
455
|
+
const createTailwindMerge = (createConfig) => {
|
|
456
|
+
let configUtils;
|
|
457
|
+
let mergeClassList;
|
|
458
|
+
let cache = Object.create(null);
|
|
459
|
+
let previousCache = Object.create(null);
|
|
460
|
+
let cacheSize = 0;
|
|
461
|
+
const initTailwindMerge = (classList) => {
|
|
462
|
+
configUtils = createConfigUtils(createConfig());
|
|
463
|
+
mergeClassList = configUtils.mergeClassList;
|
|
464
|
+
merge.mergeString = tailwindMerge;
|
|
465
|
+
return tailwindMerge(classList);
|
|
466
|
+
};
|
|
467
|
+
const tailwindMerge = (classList) => {
|
|
468
|
+
let result = cache[classList];
|
|
469
|
+
if (result !== void 0) return result;
|
|
470
|
+
result = previousCache[classList];
|
|
471
|
+
if (result === void 0) result = mergeClassList(classList);
|
|
472
|
+
cache[classList] = result;
|
|
473
|
+
if (++cacheSize > MERGE_CACHE_SIZE) {
|
|
474
|
+
cacheSize = 0;
|
|
475
|
+
previousCache = cache;
|
|
476
|
+
cache = Object.create(null);
|
|
477
|
+
}
|
|
478
|
+
return result;
|
|
479
|
+
};
|
|
480
|
+
const merge = (...args) => merge.mergeString(twJoin(...args));
|
|
481
|
+
merge.mergeString = initTailwindMerge;
|
|
482
|
+
return merge;
|
|
483
|
+
};
|
|
484
|
+
const fallbackThemeArr = [];
|
|
485
|
+
const fromTheme = (key) => {
|
|
486
|
+
const themeGetter = (theme) => theme[key] || fallbackThemeArr;
|
|
487
|
+
themeGetter.isThemeGetter = true;
|
|
488
|
+
return themeGetter;
|
|
489
|
+
};
|
|
490
|
+
const arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
|
|
491
|
+
const arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
|
|
492
|
+
const fractionRegex = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/;
|
|
493
|
+
const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
|
|
494
|
+
const lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
|
|
495
|
+
const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
|
|
496
|
+
const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
497
|
+
const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
498
|
+
const toNumber = Number;
|
|
499
|
+
const numberIsNaN = Number.isNaN;
|
|
500
|
+
const numberIsInteger = Number.isInteger;
|
|
501
|
+
const isFraction = (value) => fractionRegex.test(value);
|
|
502
|
+
const isNumber = (value) => Boolean(value) && !numberIsNaN(toNumber(value));
|
|
503
|
+
const isInteger = (value) => Boolean(value) && numberIsInteger(toNumber(value));
|
|
504
|
+
const isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
|
|
505
|
+
const isTshirtSize = (value) => tshirtUnitRegex.test(value);
|
|
506
|
+
const isAny = () => true;
|
|
507
|
+
const isLengthOnly = (value) => lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
|
|
508
|
+
const isNever = () => false;
|
|
509
|
+
const isShadow = (value) => shadowRegex.test(value);
|
|
510
|
+
const isImage = (value) => imageRegex.test(value);
|
|
511
|
+
const isAnyNonArbitrary = (value) => !isArbitraryValue(value) && !isArbitraryVariable(value);
|
|
512
|
+
const isNamedContainerQuery = (value) => value.startsWith("@container") && (value[10] === "/" && value[11] !== void 0 || value[11] === "s" && value[16] !== void 0 && value.startsWith("-size/", 10) || value[11] === "n" && value[18] !== void 0 && value.startsWith("-normal/", 10));
|
|
513
|
+
const isArbitrarySize = (value) => getIsArbitraryValue(value, isLabelSize, isNever);
|
|
514
|
+
const isArbitraryValue = (value) => arbitraryValueRegex.test(value);
|
|
515
|
+
const isArbitraryLength = (value) => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
|
|
516
|
+
const isArbitraryNumber = (value) => getIsArbitraryValue(value, isLabelNumber, isNumber);
|
|
517
|
+
const isArbitraryWeight = (value) => getIsArbitraryValue(value, isLabelWeight, isAny);
|
|
518
|
+
const isArbitraryFamilyName = (value) => getIsArbitraryValue(value, isLabelFamilyName, isNever);
|
|
519
|
+
const isArbitraryPosition = (value) => getIsArbitraryValue(value, isLabelPosition, isNever);
|
|
520
|
+
const isArbitraryImage = (value) => getIsArbitraryValue(value, isLabelImage, isImage);
|
|
521
|
+
const isArbitraryShadow = (value) => getIsArbitraryValue(value, isLabelShadow, isShadow);
|
|
522
|
+
const isArbitraryVariable = (value) => arbitraryVariableRegex.test(value);
|
|
523
|
+
const isArbitraryVariableLength = (value) => getIsArbitraryVariable(value, isLabelLength);
|
|
524
|
+
const isArbitraryVariableFamilyName = (value) => getIsArbitraryVariable(value, isLabelFamilyName);
|
|
525
|
+
const isArbitraryVariablePosition = (value) => getIsArbitraryVariable(value, isLabelPosition);
|
|
526
|
+
const isArbitraryVariableSize = (value) => getIsArbitraryVariable(value, isLabelSize);
|
|
527
|
+
const isArbitraryVariableImage = (value) => getIsArbitraryVariable(value, isLabelImage);
|
|
528
|
+
const isArbitraryVariableShadow = (value) => getIsArbitraryVariable(value, isLabelShadow, true);
|
|
529
|
+
const isArbitraryVariableWeight = (value) => getIsArbitraryVariable(value, isLabelWeight, true);
|
|
530
|
+
const getIsArbitraryValue = (value, testLabel, testValue) => {
|
|
531
|
+
const result = arbitraryValueRegex.exec(value);
|
|
532
|
+
if (result) {
|
|
533
|
+
if (result[1]) return testLabel(result[1]);
|
|
534
|
+
return testValue(result[2]);
|
|
535
|
+
}
|
|
536
|
+
return false;
|
|
537
|
+
};
|
|
538
|
+
const getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => {
|
|
539
|
+
const result = arbitraryVariableRegex.exec(value);
|
|
540
|
+
if (result) {
|
|
541
|
+
if (result[1]) return testLabel(result[1]);
|
|
542
|
+
return shouldMatchNoLabel;
|
|
543
|
+
}
|
|
544
|
+
return false;
|
|
545
|
+
};
|
|
546
|
+
const isLabelPosition = (label) => label === "position" || label === "percentage";
|
|
547
|
+
const isLabelImage = (label) => label === "image" || label === "url";
|
|
548
|
+
const isLabelSize = (label) => label === "length" || label === "size" || label === "bg-size";
|
|
549
|
+
const isLabelLength = (label) => label === "length";
|
|
550
|
+
const isLabelNumber = (label) => label === "number";
|
|
551
|
+
const isLabelFamilyName = (label) => label === "family-name";
|
|
552
|
+
const isLabelWeight = (label) => label === "number" || label === "weight";
|
|
553
|
+
const isLabelShadow = (label) => label === "shadow";
|
|
554
|
+
const getDefaultConfig = () => {
|
|
555
|
+
/**
|
|
556
|
+
* Theme getters for theme variable namespaces
|
|
557
|
+
* @see https://tailwindcss.com/docs/theme#theme-variable-namespaces
|
|
558
|
+
*/
|
|
559
|
+
const themeColor = fromTheme("color");
|
|
560
|
+
const themeFont = fromTheme("font");
|
|
561
|
+
const themeText = fromTheme("text");
|
|
562
|
+
const themeFontWeight = fromTheme("font-weight");
|
|
563
|
+
const themeTracking = fromTheme("tracking");
|
|
564
|
+
const themeLeading = fromTheme("leading");
|
|
565
|
+
const themeBreakpoint = fromTheme("breakpoint");
|
|
566
|
+
const themeContainer = fromTheme("container");
|
|
567
|
+
const themeSpacing = fromTheme("spacing");
|
|
568
|
+
const themeRadius = fromTheme("radius");
|
|
569
|
+
const themeShadow = fromTheme("shadow");
|
|
570
|
+
const themeInsetShadow = fromTheme("inset-shadow");
|
|
571
|
+
const themeTextShadow = fromTheme("text-shadow");
|
|
572
|
+
const themeDropShadow = fromTheme("drop-shadow");
|
|
573
|
+
const themeBlur = fromTheme("blur");
|
|
574
|
+
const themePerspective = fromTheme("perspective");
|
|
575
|
+
const themeAspect = fromTheme("aspect");
|
|
576
|
+
const themeEase = fromTheme("ease");
|
|
577
|
+
const themeAnimate = fromTheme("animate");
|
|
578
|
+
/**
|
|
579
|
+
* Helpers to avoid repeating the same scales
|
|
580
|
+
*
|
|
581
|
+
* We use functions that create a new array every time they're called instead of static arrays.
|
|
582
|
+
* This ensures that users who modify any scale by mutating the array (e.g. with `array.push(element)`) don't accidentally mutate arrays in other parts of the config.
|
|
583
|
+
*/
|
|
584
|
+
const scaleBreak = () => [
|
|
585
|
+
"auto",
|
|
586
|
+
"avoid",
|
|
587
|
+
"all",
|
|
588
|
+
"avoid-page",
|
|
589
|
+
"page",
|
|
590
|
+
"left",
|
|
591
|
+
"right",
|
|
592
|
+
"column"
|
|
593
|
+
];
|
|
594
|
+
const scalePosition = () => [
|
|
595
|
+
"center",
|
|
596
|
+
"top",
|
|
597
|
+
"bottom",
|
|
598
|
+
"left",
|
|
599
|
+
"right",
|
|
600
|
+
"top-left",
|
|
601
|
+
"left-top",
|
|
602
|
+
"top-right",
|
|
603
|
+
"right-top",
|
|
604
|
+
"bottom-right",
|
|
605
|
+
"right-bottom",
|
|
606
|
+
"bottom-left",
|
|
607
|
+
"left-bottom"
|
|
608
|
+
];
|
|
609
|
+
const scalePositionWithArbitrary = () => [
|
|
610
|
+
...scalePosition(),
|
|
611
|
+
isArbitraryVariable,
|
|
612
|
+
isArbitraryValue
|
|
613
|
+
];
|
|
614
|
+
const scaleOverflow = () => [
|
|
615
|
+
"auto",
|
|
616
|
+
"hidden",
|
|
617
|
+
"clip",
|
|
618
|
+
"visible",
|
|
619
|
+
"scroll"
|
|
620
|
+
];
|
|
621
|
+
const scaleOverscroll = () => [
|
|
622
|
+
"auto",
|
|
623
|
+
"contain",
|
|
624
|
+
"none"
|
|
625
|
+
];
|
|
626
|
+
const scaleUnambiguousSpacing = () => [
|
|
627
|
+
isArbitraryVariable,
|
|
628
|
+
isArbitraryValue,
|
|
629
|
+
themeSpacing
|
|
630
|
+
];
|
|
631
|
+
const scaleInset = () => [
|
|
632
|
+
isFraction,
|
|
633
|
+
"full",
|
|
634
|
+
"auto",
|
|
635
|
+
...scaleUnambiguousSpacing()
|
|
636
|
+
];
|
|
637
|
+
const scaleGridTemplateColsRows = () => [
|
|
638
|
+
isInteger,
|
|
639
|
+
"none",
|
|
640
|
+
"subgrid",
|
|
641
|
+
isArbitraryVariable,
|
|
642
|
+
isArbitraryValue
|
|
643
|
+
];
|
|
644
|
+
const scaleGridColRowStartAndEnd = () => [
|
|
645
|
+
"auto",
|
|
646
|
+
{ span: [
|
|
647
|
+
"full",
|
|
648
|
+
isInteger,
|
|
649
|
+
isArbitraryVariable,
|
|
650
|
+
isArbitraryValue
|
|
651
|
+
] },
|
|
652
|
+
isInteger,
|
|
653
|
+
isArbitraryVariable,
|
|
654
|
+
isArbitraryValue
|
|
655
|
+
];
|
|
656
|
+
const scaleGridColRowStartOrEnd = () => [
|
|
657
|
+
isInteger,
|
|
658
|
+
"auto",
|
|
659
|
+
isArbitraryVariable,
|
|
660
|
+
isArbitraryValue
|
|
661
|
+
];
|
|
662
|
+
const scaleGridAutoColsRows = () => [
|
|
663
|
+
"auto",
|
|
664
|
+
"min",
|
|
665
|
+
"max",
|
|
666
|
+
"fr",
|
|
667
|
+
isArbitraryVariable,
|
|
668
|
+
isArbitraryValue
|
|
669
|
+
];
|
|
670
|
+
const scaleAlignPrimaryAxis = () => [
|
|
671
|
+
"start",
|
|
672
|
+
"end",
|
|
673
|
+
"center",
|
|
674
|
+
"between",
|
|
675
|
+
"around",
|
|
676
|
+
"evenly",
|
|
677
|
+
"stretch",
|
|
678
|
+
"baseline",
|
|
679
|
+
"center-safe",
|
|
680
|
+
"end-safe"
|
|
681
|
+
];
|
|
682
|
+
const scaleAlignSecondaryAxis = () => [
|
|
683
|
+
"start",
|
|
684
|
+
"end",
|
|
685
|
+
"center",
|
|
686
|
+
"stretch",
|
|
687
|
+
"center-safe",
|
|
688
|
+
"end-safe"
|
|
689
|
+
];
|
|
690
|
+
const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()];
|
|
691
|
+
const scaleSizing = () => [
|
|
692
|
+
isFraction,
|
|
693
|
+
"auto",
|
|
694
|
+
"full",
|
|
695
|
+
"dvw",
|
|
696
|
+
"dvh",
|
|
697
|
+
"lvw",
|
|
698
|
+
"lvh",
|
|
699
|
+
"svw",
|
|
700
|
+
"svh",
|
|
701
|
+
"min",
|
|
702
|
+
"max",
|
|
703
|
+
"fit",
|
|
704
|
+
...scaleUnambiguousSpacing()
|
|
705
|
+
];
|
|
706
|
+
const scaleSizingInline = () => [
|
|
707
|
+
isFraction,
|
|
708
|
+
"screen",
|
|
709
|
+
"full",
|
|
710
|
+
"dvw",
|
|
711
|
+
"lvw",
|
|
712
|
+
"svw",
|
|
713
|
+
"min",
|
|
714
|
+
"max",
|
|
715
|
+
"fit",
|
|
716
|
+
...scaleUnambiguousSpacing()
|
|
717
|
+
];
|
|
718
|
+
const scaleSizingBlock = () => [
|
|
719
|
+
isFraction,
|
|
720
|
+
"screen",
|
|
721
|
+
"full",
|
|
722
|
+
"lh",
|
|
723
|
+
"dvh",
|
|
724
|
+
"lvh",
|
|
725
|
+
"svh",
|
|
726
|
+
"min",
|
|
727
|
+
"max",
|
|
728
|
+
"fit",
|
|
729
|
+
...scaleUnambiguousSpacing()
|
|
730
|
+
];
|
|
731
|
+
const scaleColor = () => [
|
|
732
|
+
themeColor,
|
|
733
|
+
isArbitraryVariable,
|
|
734
|
+
isArbitraryValue
|
|
735
|
+
];
|
|
736
|
+
const scaleBgPosition = () => [
|
|
737
|
+
...scalePosition(),
|
|
738
|
+
isArbitraryVariablePosition,
|
|
739
|
+
isArbitraryPosition,
|
|
740
|
+
{ position: [isArbitraryVariable, isArbitraryValue] }
|
|
741
|
+
];
|
|
742
|
+
const scaleBgRepeat = () => ["no-repeat", { repeat: [
|
|
743
|
+
"",
|
|
744
|
+
"x",
|
|
745
|
+
"y",
|
|
746
|
+
"space",
|
|
747
|
+
"round"
|
|
748
|
+
] }];
|
|
749
|
+
const scaleBgSize = () => [
|
|
750
|
+
"auto",
|
|
751
|
+
"cover",
|
|
752
|
+
"contain",
|
|
753
|
+
isArbitraryVariableSize,
|
|
754
|
+
isArbitrarySize,
|
|
755
|
+
{ size: [isArbitraryVariable, isArbitraryValue] }
|
|
756
|
+
];
|
|
757
|
+
const scaleGradientStopPosition = () => [
|
|
758
|
+
isPercent,
|
|
759
|
+
isArbitraryVariableLength,
|
|
760
|
+
isArbitraryLength
|
|
761
|
+
];
|
|
762
|
+
const scaleRadius = () => [
|
|
763
|
+
"",
|
|
764
|
+
"none",
|
|
765
|
+
"full",
|
|
766
|
+
themeRadius,
|
|
767
|
+
isArbitraryVariable,
|
|
768
|
+
isArbitraryValue
|
|
769
|
+
];
|
|
770
|
+
const scaleBorderWidth = () => [
|
|
771
|
+
"",
|
|
772
|
+
isNumber,
|
|
773
|
+
isArbitraryVariableLength,
|
|
774
|
+
isArbitraryLength
|
|
775
|
+
];
|
|
776
|
+
const scaleLineStyle = () => [
|
|
777
|
+
"solid",
|
|
778
|
+
"dashed",
|
|
779
|
+
"dotted",
|
|
780
|
+
"double"
|
|
781
|
+
];
|
|
782
|
+
const scaleBlendMode = () => [
|
|
783
|
+
"normal",
|
|
784
|
+
"multiply",
|
|
785
|
+
"screen",
|
|
786
|
+
"overlay",
|
|
787
|
+
"darken",
|
|
788
|
+
"lighten",
|
|
789
|
+
"color-dodge",
|
|
790
|
+
"color-burn",
|
|
791
|
+
"hard-light",
|
|
792
|
+
"soft-light",
|
|
793
|
+
"difference",
|
|
794
|
+
"exclusion",
|
|
795
|
+
"hue",
|
|
796
|
+
"saturation",
|
|
797
|
+
"color",
|
|
798
|
+
"luminosity"
|
|
799
|
+
];
|
|
800
|
+
const scaleMaskImagePosition = () => [
|
|
801
|
+
isNumber,
|
|
802
|
+
isPercent,
|
|
803
|
+
isArbitraryVariablePosition,
|
|
804
|
+
isArbitraryPosition
|
|
805
|
+
];
|
|
806
|
+
const scaleBlur = () => [
|
|
807
|
+
"",
|
|
808
|
+
"none",
|
|
809
|
+
themeBlur,
|
|
810
|
+
isArbitraryVariable,
|
|
811
|
+
isArbitraryValue
|
|
812
|
+
];
|
|
813
|
+
const scaleRotate = () => [
|
|
814
|
+
"none",
|
|
815
|
+
isNumber,
|
|
816
|
+
isArbitraryVariable,
|
|
817
|
+
isArbitraryValue
|
|
818
|
+
];
|
|
819
|
+
const scaleScale = () => [
|
|
820
|
+
"none",
|
|
821
|
+
isNumber,
|
|
822
|
+
isArbitraryVariable,
|
|
823
|
+
isArbitraryValue
|
|
824
|
+
];
|
|
825
|
+
const scaleSkew = () => [
|
|
826
|
+
isNumber,
|
|
827
|
+
isArbitraryVariable,
|
|
828
|
+
isArbitraryValue
|
|
829
|
+
];
|
|
830
|
+
const scaleTranslate = () => [
|
|
831
|
+
isFraction,
|
|
832
|
+
"full",
|
|
833
|
+
...scaleUnambiguousSpacing()
|
|
834
|
+
];
|
|
835
|
+
return {
|
|
836
|
+
theme: {
|
|
837
|
+
animate: [
|
|
838
|
+
"spin",
|
|
839
|
+
"ping",
|
|
840
|
+
"pulse",
|
|
841
|
+
"bounce"
|
|
842
|
+
],
|
|
843
|
+
aspect: ["video"],
|
|
844
|
+
blur: [isTshirtSize],
|
|
845
|
+
breakpoint: [isTshirtSize],
|
|
846
|
+
color: [isAny],
|
|
847
|
+
container: [isTshirtSize],
|
|
848
|
+
"drop-shadow": [isTshirtSize],
|
|
849
|
+
ease: [
|
|
850
|
+
"in",
|
|
851
|
+
"out",
|
|
852
|
+
"in-out"
|
|
853
|
+
],
|
|
854
|
+
font: [isAnyNonArbitrary],
|
|
855
|
+
"font-weight": [
|
|
856
|
+
"thin",
|
|
857
|
+
"extralight",
|
|
858
|
+
"light",
|
|
859
|
+
"normal",
|
|
860
|
+
"medium",
|
|
861
|
+
"semibold",
|
|
862
|
+
"bold",
|
|
863
|
+
"extrabold",
|
|
864
|
+
"black"
|
|
865
|
+
],
|
|
866
|
+
"inset-shadow": [isTshirtSize],
|
|
867
|
+
leading: [
|
|
868
|
+
"none",
|
|
869
|
+
"tight",
|
|
870
|
+
"snug",
|
|
871
|
+
"normal",
|
|
872
|
+
"relaxed",
|
|
873
|
+
"loose"
|
|
874
|
+
],
|
|
875
|
+
perspective: [
|
|
876
|
+
"dramatic",
|
|
877
|
+
"near",
|
|
878
|
+
"normal",
|
|
879
|
+
"midrange",
|
|
880
|
+
"distant",
|
|
881
|
+
"none"
|
|
882
|
+
],
|
|
883
|
+
radius: [isTshirtSize],
|
|
884
|
+
shadow: [isTshirtSize],
|
|
885
|
+
spacing: ["px", isNumber],
|
|
886
|
+
text: [isTshirtSize],
|
|
887
|
+
"text-shadow": [isTshirtSize],
|
|
888
|
+
tracking: [
|
|
889
|
+
"tighter",
|
|
890
|
+
"tight",
|
|
891
|
+
"normal",
|
|
892
|
+
"wide",
|
|
893
|
+
"wider",
|
|
894
|
+
"widest"
|
|
895
|
+
]
|
|
896
|
+
},
|
|
897
|
+
classGroups: {
|
|
898
|
+
/**
|
|
899
|
+
* Aspect Ratio
|
|
900
|
+
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
901
|
+
*/
|
|
902
|
+
aspect: [{ aspect: [
|
|
903
|
+
"auto",
|
|
904
|
+
"square",
|
|
905
|
+
isFraction,
|
|
906
|
+
isArbitraryValue,
|
|
907
|
+
isArbitraryVariable,
|
|
908
|
+
themeAspect
|
|
909
|
+
] }],
|
|
910
|
+
/**
|
|
911
|
+
* Container
|
|
912
|
+
* @see https://tailwindcss.com/docs/container
|
|
913
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
914
|
+
*/
|
|
915
|
+
container: ["container"],
|
|
916
|
+
/**
|
|
917
|
+
* Container Type
|
|
918
|
+
* @see https://tailwindcss.com/docs/responsive-design#container-queries
|
|
919
|
+
*/
|
|
920
|
+
"container-type": [{ "@container": [
|
|
921
|
+
"",
|
|
922
|
+
"normal",
|
|
923
|
+
"size",
|
|
924
|
+
isArbitraryVariable,
|
|
925
|
+
isArbitraryValue
|
|
926
|
+
] }],
|
|
927
|
+
/**
|
|
928
|
+
* Container Name
|
|
929
|
+
* @see https://tailwindcss.com/docs/responsive-design#named-containers
|
|
930
|
+
*/
|
|
931
|
+
"container-named": [isNamedContainerQuery],
|
|
932
|
+
/**
|
|
933
|
+
* Columns
|
|
934
|
+
* @see https://tailwindcss.com/docs/columns
|
|
935
|
+
*/
|
|
936
|
+
columns: [{ columns: [
|
|
937
|
+
isNumber,
|
|
938
|
+
isArbitraryValue,
|
|
939
|
+
isArbitraryVariable,
|
|
940
|
+
themeContainer
|
|
941
|
+
] }],
|
|
942
|
+
/**
|
|
943
|
+
* Break After
|
|
944
|
+
* @see https://tailwindcss.com/docs/break-after
|
|
945
|
+
*/
|
|
946
|
+
"break-after": [{ "break-after": scaleBreak() }],
|
|
947
|
+
/**
|
|
948
|
+
* Break Before
|
|
949
|
+
* @see https://tailwindcss.com/docs/break-before
|
|
950
|
+
*/
|
|
951
|
+
"break-before": [{ "break-before": scaleBreak() }],
|
|
952
|
+
/**
|
|
953
|
+
* Break Inside
|
|
954
|
+
* @see https://tailwindcss.com/docs/break-inside
|
|
955
|
+
*/
|
|
956
|
+
"break-inside": [{ "break-inside": [
|
|
957
|
+
"auto",
|
|
958
|
+
"avoid",
|
|
959
|
+
"avoid-page",
|
|
960
|
+
"avoid-column"
|
|
961
|
+
] }],
|
|
962
|
+
/**
|
|
963
|
+
* Box Decoration Break
|
|
964
|
+
* @see https://tailwindcss.com/docs/box-decoration-break
|
|
965
|
+
*/
|
|
966
|
+
"box-decoration": [{ "box-decoration": ["slice", "clone"] }],
|
|
967
|
+
/**
|
|
968
|
+
* Box Sizing
|
|
969
|
+
* @see https://tailwindcss.com/docs/box-sizing
|
|
970
|
+
*/
|
|
971
|
+
box: [{ box: ["border", "content"] }],
|
|
972
|
+
/**
|
|
973
|
+
* Display
|
|
974
|
+
* @see https://tailwindcss.com/docs/display
|
|
975
|
+
*/
|
|
976
|
+
display: [
|
|
977
|
+
"block",
|
|
978
|
+
"inline-block",
|
|
979
|
+
"inline",
|
|
980
|
+
"flex",
|
|
981
|
+
"inline-flex",
|
|
982
|
+
"table",
|
|
983
|
+
"inline-table",
|
|
984
|
+
"table-caption",
|
|
985
|
+
"table-cell",
|
|
986
|
+
"table-column",
|
|
987
|
+
"table-column-group",
|
|
988
|
+
"table-footer-group",
|
|
989
|
+
"table-header-group",
|
|
990
|
+
"table-row-group",
|
|
991
|
+
"table-row",
|
|
992
|
+
"flow-root",
|
|
993
|
+
"grid",
|
|
994
|
+
"inline-grid",
|
|
995
|
+
"contents",
|
|
996
|
+
"list-item",
|
|
997
|
+
"hidden"
|
|
998
|
+
],
|
|
999
|
+
/**
|
|
1000
|
+
* Screen Reader Only
|
|
1001
|
+
* @see https://tailwindcss.com/docs/display#screen-reader-only
|
|
1002
|
+
*/
|
|
1003
|
+
sr: ["sr-only", "not-sr-only"],
|
|
1004
|
+
/**
|
|
1005
|
+
* Floats
|
|
1006
|
+
* @see https://tailwindcss.com/docs/float
|
|
1007
|
+
*/
|
|
1008
|
+
float: [{ float: [
|
|
1009
|
+
"right",
|
|
1010
|
+
"left",
|
|
1011
|
+
"none",
|
|
1012
|
+
"start",
|
|
1013
|
+
"end"
|
|
1014
|
+
] }],
|
|
1015
|
+
/**
|
|
1016
|
+
* Clear
|
|
1017
|
+
* @see https://tailwindcss.com/docs/clear
|
|
1018
|
+
*/
|
|
1019
|
+
clear: [{ clear: [
|
|
1020
|
+
"left",
|
|
1021
|
+
"right",
|
|
1022
|
+
"both",
|
|
1023
|
+
"none",
|
|
1024
|
+
"start",
|
|
1025
|
+
"end"
|
|
1026
|
+
] }],
|
|
1027
|
+
/**
|
|
1028
|
+
* Isolation
|
|
1029
|
+
* @see https://tailwindcss.com/docs/isolation
|
|
1030
|
+
*/
|
|
1031
|
+
isolation: ["isolate", "isolation-auto"],
|
|
1032
|
+
/**
|
|
1033
|
+
* Object Fit
|
|
1034
|
+
* @see https://tailwindcss.com/docs/object-fit
|
|
1035
|
+
*/
|
|
1036
|
+
"object-fit": [{ object: [
|
|
1037
|
+
"contain",
|
|
1038
|
+
"cover",
|
|
1039
|
+
"fill",
|
|
1040
|
+
"none",
|
|
1041
|
+
"scale-down"
|
|
1042
|
+
] }],
|
|
1043
|
+
/**
|
|
1044
|
+
* Object Position
|
|
1045
|
+
* @see https://tailwindcss.com/docs/object-position
|
|
1046
|
+
*/
|
|
1047
|
+
"object-position": [{ object: scalePositionWithArbitrary() }],
|
|
1048
|
+
/**
|
|
1049
|
+
* Overflow
|
|
1050
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
1051
|
+
*/
|
|
1052
|
+
overflow: [{ overflow: scaleOverflow() }],
|
|
1053
|
+
/**
|
|
1054
|
+
* Overflow X
|
|
1055
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
1056
|
+
*/
|
|
1057
|
+
"overflow-x": [{ "overflow-x": scaleOverflow() }],
|
|
1058
|
+
/**
|
|
1059
|
+
* Overflow Y
|
|
1060
|
+
* @see https://tailwindcss.com/docs/overflow
|
|
1061
|
+
*/
|
|
1062
|
+
"overflow-y": [{ "overflow-y": scaleOverflow() }],
|
|
1063
|
+
/**
|
|
1064
|
+
* Overscroll Behavior
|
|
1065
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1066
|
+
*/
|
|
1067
|
+
overscroll: [{ overscroll: scaleOverscroll() }],
|
|
1068
|
+
/**
|
|
1069
|
+
* Overscroll Behavior X
|
|
1070
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1071
|
+
*/
|
|
1072
|
+
"overscroll-x": [{ "overscroll-x": scaleOverscroll() }],
|
|
1073
|
+
/**
|
|
1074
|
+
* Overscroll Behavior Y
|
|
1075
|
+
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1076
|
+
*/
|
|
1077
|
+
"overscroll-y": [{ "overscroll-y": scaleOverscroll() }],
|
|
1078
|
+
/**
|
|
1079
|
+
* Position
|
|
1080
|
+
* @see https://tailwindcss.com/docs/position
|
|
1081
|
+
*/
|
|
1082
|
+
position: [
|
|
1083
|
+
"static",
|
|
1084
|
+
"fixed",
|
|
1085
|
+
"absolute",
|
|
1086
|
+
"relative",
|
|
1087
|
+
"sticky"
|
|
1088
|
+
],
|
|
1089
|
+
/**
|
|
1090
|
+
* Inset
|
|
1091
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1092
|
+
*/
|
|
1093
|
+
inset: [{ inset: scaleInset() }],
|
|
1094
|
+
/**
|
|
1095
|
+
* Inset Inline
|
|
1096
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1097
|
+
*/
|
|
1098
|
+
"inset-x": [{ "inset-x": scaleInset() }],
|
|
1099
|
+
/**
|
|
1100
|
+
* Inset Block
|
|
1101
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1102
|
+
*/
|
|
1103
|
+
"inset-y": [{ "inset-y": scaleInset() }],
|
|
1104
|
+
/**
|
|
1105
|
+
* Inset Inline Start
|
|
1106
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1107
|
+
* @todo class group will be renamed to `inset-s` in next major release
|
|
1108
|
+
*/
|
|
1109
|
+
start: [{
|
|
1110
|
+
"inset-s": scaleInset(),
|
|
1111
|
+
/**
|
|
1112
|
+
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
|
|
1113
|
+
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
1114
|
+
*/
|
|
1115
|
+
start: scaleInset()
|
|
1116
|
+
}],
|
|
1117
|
+
/**
|
|
1118
|
+
* Inset Inline End
|
|
1119
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1120
|
+
* @todo class group will be renamed to `inset-e` in next major release
|
|
1121
|
+
*/
|
|
1122
|
+
end: [{
|
|
1123
|
+
"inset-e": scaleInset(),
|
|
1124
|
+
/**
|
|
1125
|
+
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
|
|
1126
|
+
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
1127
|
+
*/
|
|
1128
|
+
end: scaleInset()
|
|
1129
|
+
}],
|
|
1130
|
+
/**
|
|
1131
|
+
* Inset Block Start
|
|
1132
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1133
|
+
*/
|
|
1134
|
+
"inset-bs": [{ "inset-bs": scaleInset() }],
|
|
1135
|
+
/**
|
|
1136
|
+
* Inset Block End
|
|
1137
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1138
|
+
*/
|
|
1139
|
+
"inset-be": [{ "inset-be": scaleInset() }],
|
|
1140
|
+
/**
|
|
1141
|
+
* Top
|
|
1142
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1143
|
+
*/
|
|
1144
|
+
top: [{ top: scaleInset() }],
|
|
1145
|
+
/**
|
|
1146
|
+
* Right
|
|
1147
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1148
|
+
*/
|
|
1149
|
+
right: [{ right: scaleInset() }],
|
|
1150
|
+
/**
|
|
1151
|
+
* Bottom
|
|
1152
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1153
|
+
*/
|
|
1154
|
+
bottom: [{ bottom: scaleInset() }],
|
|
1155
|
+
/**
|
|
1156
|
+
* Left
|
|
1157
|
+
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1158
|
+
*/
|
|
1159
|
+
left: [{ left: scaleInset() }],
|
|
1160
|
+
/**
|
|
1161
|
+
* Visibility
|
|
1162
|
+
* @see https://tailwindcss.com/docs/visibility
|
|
1163
|
+
*/
|
|
1164
|
+
visibility: [
|
|
1165
|
+
"visible",
|
|
1166
|
+
"invisible",
|
|
1167
|
+
"collapse"
|
|
1168
|
+
],
|
|
1169
|
+
/**
|
|
1170
|
+
* Z-Index
|
|
1171
|
+
* @see https://tailwindcss.com/docs/z-index
|
|
1172
|
+
*/
|
|
1173
|
+
z: [{ z: [
|
|
1174
|
+
isInteger,
|
|
1175
|
+
"auto",
|
|
1176
|
+
isArbitraryVariable,
|
|
1177
|
+
isArbitraryValue
|
|
1178
|
+
] }],
|
|
1179
|
+
/**
|
|
1180
|
+
* Flex Basis
|
|
1181
|
+
* @see https://tailwindcss.com/docs/flex-basis
|
|
1182
|
+
*/
|
|
1183
|
+
basis: [{ basis: [
|
|
1184
|
+
isFraction,
|
|
1185
|
+
"full",
|
|
1186
|
+
"auto",
|
|
1187
|
+
themeContainer,
|
|
1188
|
+
...scaleUnambiguousSpacing()
|
|
1189
|
+
] }],
|
|
1190
|
+
/**
|
|
1191
|
+
* Flex Direction
|
|
1192
|
+
* @see https://tailwindcss.com/docs/flex-direction
|
|
1193
|
+
*/
|
|
1194
|
+
"flex-direction": [{ flex: [
|
|
1195
|
+
"row",
|
|
1196
|
+
"row-reverse",
|
|
1197
|
+
"col",
|
|
1198
|
+
"col-reverse"
|
|
1199
|
+
] }],
|
|
1200
|
+
/**
|
|
1201
|
+
* Flex Wrap
|
|
1202
|
+
* @see https://tailwindcss.com/docs/flex-wrap
|
|
1203
|
+
*/
|
|
1204
|
+
"flex-wrap": [{ flex: [
|
|
1205
|
+
"nowrap",
|
|
1206
|
+
"wrap",
|
|
1207
|
+
"wrap-reverse"
|
|
1208
|
+
] }],
|
|
1209
|
+
/**
|
|
1210
|
+
* Flex
|
|
1211
|
+
* @see https://tailwindcss.com/docs/flex
|
|
1212
|
+
*/
|
|
1213
|
+
flex: [{ flex: [
|
|
1214
|
+
isNumber,
|
|
1215
|
+
isFraction,
|
|
1216
|
+
"auto",
|
|
1217
|
+
"initial",
|
|
1218
|
+
"none",
|
|
1219
|
+
isArbitraryValue
|
|
1220
|
+
] }],
|
|
1221
|
+
/**
|
|
1222
|
+
* Flex Grow
|
|
1223
|
+
* @see https://tailwindcss.com/docs/flex-grow
|
|
1224
|
+
*/
|
|
1225
|
+
grow: [{ grow: [
|
|
1226
|
+
"",
|
|
1227
|
+
isNumber,
|
|
1228
|
+
isArbitraryVariable,
|
|
1229
|
+
isArbitraryValue
|
|
1230
|
+
] }],
|
|
1231
|
+
/**
|
|
1232
|
+
* Flex Shrink
|
|
1233
|
+
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1234
|
+
*/
|
|
1235
|
+
shrink: [{ shrink: [
|
|
1236
|
+
"",
|
|
1237
|
+
isNumber,
|
|
1238
|
+
isArbitraryVariable,
|
|
1239
|
+
isArbitraryValue
|
|
1240
|
+
] }],
|
|
1241
|
+
/**
|
|
1242
|
+
* Order
|
|
1243
|
+
* @see https://tailwindcss.com/docs/order
|
|
1244
|
+
*/
|
|
1245
|
+
order: [{ order: [
|
|
1246
|
+
isInteger,
|
|
1247
|
+
"first",
|
|
1248
|
+
"last",
|
|
1249
|
+
"none",
|
|
1250
|
+
isArbitraryVariable,
|
|
1251
|
+
isArbitraryValue
|
|
1252
|
+
] }],
|
|
1253
|
+
/**
|
|
1254
|
+
* Grid Template Columns
|
|
1255
|
+
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1256
|
+
*/
|
|
1257
|
+
"grid-cols": [{ "grid-cols": scaleGridTemplateColsRows() }],
|
|
1258
|
+
/**
|
|
1259
|
+
* Grid Column Start / End
|
|
1260
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
1261
|
+
*/
|
|
1262
|
+
"col-start-end": [{ col: scaleGridColRowStartAndEnd() }],
|
|
1263
|
+
/**
|
|
1264
|
+
* Grid Column Start
|
|
1265
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
1266
|
+
*/
|
|
1267
|
+
"col-start": [{ "col-start": scaleGridColRowStartOrEnd() }],
|
|
1268
|
+
/**
|
|
1269
|
+
* Grid Column End
|
|
1270
|
+
* @see https://tailwindcss.com/docs/grid-column
|
|
1271
|
+
*/
|
|
1272
|
+
"col-end": [{ "col-end": scaleGridColRowStartOrEnd() }],
|
|
1273
|
+
/**
|
|
1274
|
+
* Grid Template Rows
|
|
1275
|
+
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1276
|
+
*/
|
|
1277
|
+
"grid-rows": [{ "grid-rows": scaleGridTemplateColsRows() }],
|
|
1278
|
+
/**
|
|
1279
|
+
* Grid Row Start / End
|
|
1280
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1281
|
+
*/
|
|
1282
|
+
"row-start-end": [{ row: scaleGridColRowStartAndEnd() }],
|
|
1283
|
+
/**
|
|
1284
|
+
* Grid Row Start
|
|
1285
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1286
|
+
*/
|
|
1287
|
+
"row-start": [{ "row-start": scaleGridColRowStartOrEnd() }],
|
|
1288
|
+
/**
|
|
1289
|
+
* Grid Row End
|
|
1290
|
+
* @see https://tailwindcss.com/docs/grid-row
|
|
1291
|
+
*/
|
|
1292
|
+
"row-end": [{ "row-end": scaleGridColRowStartOrEnd() }],
|
|
1293
|
+
/**
|
|
1294
|
+
* Grid Auto Flow
|
|
1295
|
+
* @see https://tailwindcss.com/docs/grid-auto-flow
|
|
1296
|
+
*/
|
|
1297
|
+
"grid-flow": [{ "grid-flow": [
|
|
1298
|
+
"row",
|
|
1299
|
+
"col",
|
|
1300
|
+
"dense",
|
|
1301
|
+
"row-dense",
|
|
1302
|
+
"col-dense"
|
|
1303
|
+
] }],
|
|
1304
|
+
/**
|
|
1305
|
+
* Grid Auto Columns
|
|
1306
|
+
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1307
|
+
*/
|
|
1308
|
+
"auto-cols": [{ "auto-cols": scaleGridAutoColsRows() }],
|
|
1309
|
+
/**
|
|
1310
|
+
* Grid Auto Rows
|
|
1311
|
+
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1312
|
+
*/
|
|
1313
|
+
"auto-rows": [{ "auto-rows": scaleGridAutoColsRows() }],
|
|
1314
|
+
/**
|
|
1315
|
+
* Gap
|
|
1316
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1317
|
+
*/
|
|
1318
|
+
gap: [{ gap: scaleUnambiguousSpacing() }],
|
|
1319
|
+
/**
|
|
1320
|
+
* Gap X
|
|
1321
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1322
|
+
*/
|
|
1323
|
+
"gap-x": [{ "gap-x": scaleUnambiguousSpacing() }],
|
|
1324
|
+
/**
|
|
1325
|
+
* Gap Y
|
|
1326
|
+
* @see https://tailwindcss.com/docs/gap
|
|
1327
|
+
*/
|
|
1328
|
+
"gap-y": [{ "gap-y": scaleUnambiguousSpacing() }],
|
|
1329
|
+
/**
|
|
1330
|
+
* Justify Content
|
|
1331
|
+
* @see https://tailwindcss.com/docs/justify-content
|
|
1332
|
+
*/
|
|
1333
|
+
"justify-content": [{ justify: [...scaleAlignPrimaryAxis(), "normal"] }],
|
|
1334
|
+
/**
|
|
1335
|
+
* Justify Items
|
|
1336
|
+
* @see https://tailwindcss.com/docs/justify-items
|
|
1337
|
+
*/
|
|
1338
|
+
"justify-items": [{ "justify-items": [...scaleAlignSecondaryAxis(), "normal"] }],
|
|
1339
|
+
/**
|
|
1340
|
+
* Justify Self
|
|
1341
|
+
* @see https://tailwindcss.com/docs/justify-self
|
|
1342
|
+
*/
|
|
1343
|
+
"justify-self": [{ "justify-self": ["auto", ...scaleAlignSecondaryAxis()] }],
|
|
1344
|
+
/**
|
|
1345
|
+
* Align Content
|
|
1346
|
+
* @see https://tailwindcss.com/docs/align-content
|
|
1347
|
+
*/
|
|
1348
|
+
"align-content": [{ content: ["normal", ...scaleAlignPrimaryAxis()] }],
|
|
1349
|
+
/**
|
|
1350
|
+
* Align Items
|
|
1351
|
+
* @see https://tailwindcss.com/docs/align-items
|
|
1352
|
+
*/
|
|
1353
|
+
"align-items": [{ items: [...scaleAlignSecondaryAxis(), { baseline: ["", "last"] }] }],
|
|
1354
|
+
/**
|
|
1355
|
+
* Align Self
|
|
1356
|
+
* @see https://tailwindcss.com/docs/align-self
|
|
1357
|
+
*/
|
|
1358
|
+
"align-self": [{ self: [
|
|
1359
|
+
"auto",
|
|
1360
|
+
...scaleAlignSecondaryAxis(),
|
|
1361
|
+
{ baseline: ["", "last"] }
|
|
1362
|
+
] }],
|
|
1363
|
+
/**
|
|
1364
|
+
* Place Content
|
|
1365
|
+
* @see https://tailwindcss.com/docs/place-content
|
|
1366
|
+
*/
|
|
1367
|
+
"place-content": [{ "place-content": scaleAlignPrimaryAxis() }],
|
|
1368
|
+
/**
|
|
1369
|
+
* Place Items
|
|
1370
|
+
* @see https://tailwindcss.com/docs/place-items
|
|
1371
|
+
*/
|
|
1372
|
+
"place-items": [{ "place-items": [...scaleAlignSecondaryAxis(), "baseline"] }],
|
|
1373
|
+
/**
|
|
1374
|
+
* Place Self
|
|
1375
|
+
* @see https://tailwindcss.com/docs/place-self
|
|
1376
|
+
*/
|
|
1377
|
+
"place-self": [{ "place-self": ["auto", ...scaleAlignSecondaryAxis()] }],
|
|
1378
|
+
/**
|
|
1379
|
+
* Padding
|
|
1380
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1381
|
+
*/
|
|
1382
|
+
p: [{ p: scaleUnambiguousSpacing() }],
|
|
1383
|
+
/**
|
|
1384
|
+
* Padding Inline
|
|
1385
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1386
|
+
*/
|
|
1387
|
+
px: [{ px: scaleUnambiguousSpacing() }],
|
|
1388
|
+
/**
|
|
1389
|
+
* Padding Block
|
|
1390
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1391
|
+
*/
|
|
1392
|
+
py: [{ py: scaleUnambiguousSpacing() }],
|
|
1393
|
+
/**
|
|
1394
|
+
* Padding Inline Start
|
|
1395
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1396
|
+
*/
|
|
1397
|
+
ps: [{ ps: scaleUnambiguousSpacing() }],
|
|
1398
|
+
/**
|
|
1399
|
+
* Padding Inline End
|
|
1400
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1401
|
+
*/
|
|
1402
|
+
pe: [{ pe: scaleUnambiguousSpacing() }],
|
|
1403
|
+
/**
|
|
1404
|
+
* Padding Block Start
|
|
1405
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1406
|
+
*/
|
|
1407
|
+
pbs: [{ pbs: scaleUnambiguousSpacing() }],
|
|
1408
|
+
/**
|
|
1409
|
+
* Padding Block End
|
|
1410
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1411
|
+
*/
|
|
1412
|
+
pbe: [{ pbe: scaleUnambiguousSpacing() }],
|
|
1413
|
+
/**
|
|
1414
|
+
* Padding Top
|
|
1415
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1416
|
+
*/
|
|
1417
|
+
pt: [{ pt: scaleUnambiguousSpacing() }],
|
|
1418
|
+
/**
|
|
1419
|
+
* Padding Right
|
|
1420
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1421
|
+
*/
|
|
1422
|
+
pr: [{ pr: scaleUnambiguousSpacing() }],
|
|
1423
|
+
/**
|
|
1424
|
+
* Padding Bottom
|
|
1425
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1426
|
+
*/
|
|
1427
|
+
pb: [{ pb: scaleUnambiguousSpacing() }],
|
|
1428
|
+
/**
|
|
1429
|
+
* Padding Left
|
|
1430
|
+
* @see https://tailwindcss.com/docs/padding
|
|
1431
|
+
*/
|
|
1432
|
+
pl: [{ pl: scaleUnambiguousSpacing() }],
|
|
1433
|
+
/**
|
|
1434
|
+
* Margin
|
|
1435
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1436
|
+
*/
|
|
1437
|
+
m: [{ m: scaleMargin() }],
|
|
1438
|
+
/**
|
|
1439
|
+
* Margin Inline
|
|
1440
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1441
|
+
*/
|
|
1442
|
+
mx: [{ mx: scaleMargin() }],
|
|
1443
|
+
/**
|
|
1444
|
+
* Margin Block
|
|
1445
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1446
|
+
*/
|
|
1447
|
+
my: [{ my: scaleMargin() }],
|
|
1448
|
+
/**
|
|
1449
|
+
* Margin Inline Start
|
|
1450
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1451
|
+
*/
|
|
1452
|
+
ms: [{ ms: scaleMargin() }],
|
|
1453
|
+
/**
|
|
1454
|
+
* Margin Inline End
|
|
1455
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1456
|
+
*/
|
|
1457
|
+
me: [{ me: scaleMargin() }],
|
|
1458
|
+
/**
|
|
1459
|
+
* Margin Block Start
|
|
1460
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1461
|
+
*/
|
|
1462
|
+
mbs: [{ mbs: scaleMargin() }],
|
|
1463
|
+
/**
|
|
1464
|
+
* Margin Block End
|
|
1465
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1466
|
+
*/
|
|
1467
|
+
mbe: [{ mbe: scaleMargin() }],
|
|
1468
|
+
/**
|
|
1469
|
+
* Margin Top
|
|
1470
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1471
|
+
*/
|
|
1472
|
+
mt: [{ mt: scaleMargin() }],
|
|
1473
|
+
/**
|
|
1474
|
+
* Margin Right
|
|
1475
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1476
|
+
*/
|
|
1477
|
+
mr: [{ mr: scaleMargin() }],
|
|
1478
|
+
/**
|
|
1479
|
+
* Margin Bottom
|
|
1480
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1481
|
+
*/
|
|
1482
|
+
mb: [{ mb: scaleMargin() }],
|
|
1483
|
+
/**
|
|
1484
|
+
* Margin Left
|
|
1485
|
+
* @see https://tailwindcss.com/docs/margin
|
|
1486
|
+
*/
|
|
1487
|
+
ml: [{ ml: scaleMargin() }],
|
|
1488
|
+
/**
|
|
1489
|
+
* Space Between X
|
|
1490
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1491
|
+
*/
|
|
1492
|
+
"space-x": [{ "space-x": scaleUnambiguousSpacing() }],
|
|
1493
|
+
/**
|
|
1494
|
+
* Space Between X Reverse
|
|
1495
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1496
|
+
*/
|
|
1497
|
+
"space-x-reverse": ["space-x-reverse"],
|
|
1498
|
+
/**
|
|
1499
|
+
* Space Between Y
|
|
1500
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1501
|
+
*/
|
|
1502
|
+
"space-y": [{ "space-y": scaleUnambiguousSpacing() }],
|
|
1503
|
+
/**
|
|
1504
|
+
* Space Between Y Reverse
|
|
1505
|
+
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1506
|
+
*/
|
|
1507
|
+
"space-y-reverse": ["space-y-reverse"],
|
|
1508
|
+
/**
|
|
1509
|
+
* Size
|
|
1510
|
+
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1511
|
+
*/
|
|
1512
|
+
size: [{ size: scaleSizing() }],
|
|
1513
|
+
/**
|
|
1514
|
+
* Inline Size
|
|
1515
|
+
* @see https://tailwindcss.com/docs/width
|
|
1516
|
+
*/
|
|
1517
|
+
"inline-size": [{ inline: ["auto", ...scaleSizingInline()] }],
|
|
1518
|
+
/**
|
|
1519
|
+
* Min-Inline Size
|
|
1520
|
+
* @see https://tailwindcss.com/docs/min-width
|
|
1521
|
+
*/
|
|
1522
|
+
"min-inline-size": [{ "min-inline": ["auto", ...scaleSizingInline()] }],
|
|
1523
|
+
/**
|
|
1524
|
+
* Max-Inline Size
|
|
1525
|
+
* @see https://tailwindcss.com/docs/max-width
|
|
1526
|
+
*/
|
|
1527
|
+
"max-inline-size": [{ "max-inline": ["none", ...scaleSizingInline()] }],
|
|
1528
|
+
/**
|
|
1529
|
+
* Block Size
|
|
1530
|
+
* @see https://tailwindcss.com/docs/height
|
|
1531
|
+
*/
|
|
1532
|
+
"block-size": [{ block: ["auto", ...scaleSizingBlock()] }],
|
|
1533
|
+
/**
|
|
1534
|
+
* Min-Block Size
|
|
1535
|
+
* @see https://tailwindcss.com/docs/min-height
|
|
1536
|
+
*/
|
|
1537
|
+
"min-block-size": [{ "min-block": ["auto", ...scaleSizingBlock()] }],
|
|
1538
|
+
/**
|
|
1539
|
+
* Max-Block Size
|
|
1540
|
+
* @see https://tailwindcss.com/docs/max-height
|
|
1541
|
+
*/
|
|
1542
|
+
"max-block-size": [{ "max-block": ["none", ...scaleSizingBlock()] }],
|
|
1543
|
+
/**
|
|
1544
|
+
* Width
|
|
1545
|
+
* @see https://tailwindcss.com/docs/width
|
|
1546
|
+
*/
|
|
1547
|
+
w: [{ w: [
|
|
1548
|
+
themeContainer,
|
|
1549
|
+
"screen",
|
|
1550
|
+
...scaleSizing()
|
|
1551
|
+
] }],
|
|
1552
|
+
/**
|
|
1553
|
+
* Min-Width
|
|
1554
|
+
* @see https://tailwindcss.com/docs/min-width
|
|
1555
|
+
*/
|
|
1556
|
+
"min-w": [{ "min-w": [
|
|
1557
|
+
themeContainer,
|
|
1558
|
+
"screen",
|
|
1559
|
+
"none",
|
|
1560
|
+
...scaleSizing()
|
|
1561
|
+
] }],
|
|
1562
|
+
/**
|
|
1563
|
+
* Max-Width
|
|
1564
|
+
* @see https://tailwindcss.com/docs/max-width
|
|
1565
|
+
*/
|
|
1566
|
+
"max-w": [{ "max-w": [
|
|
1567
|
+
themeContainer,
|
|
1568
|
+
"screen",
|
|
1569
|
+
"none",
|
|
1570
|
+
"prose",
|
|
1571
|
+
(
|
|
1572
|
+
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1573
|
+
{ screen: [themeBreakpoint] }),
|
|
1574
|
+
...scaleSizing()
|
|
1575
|
+
] }],
|
|
1576
|
+
/**
|
|
1577
|
+
* Height
|
|
1578
|
+
* @see https://tailwindcss.com/docs/height
|
|
1579
|
+
*/
|
|
1580
|
+
h: [{ h: [
|
|
1581
|
+
"screen",
|
|
1582
|
+
"lh",
|
|
1583
|
+
...scaleSizing()
|
|
1584
|
+
] }],
|
|
1585
|
+
/**
|
|
1586
|
+
* Min-Height
|
|
1587
|
+
* @see https://tailwindcss.com/docs/min-height
|
|
1588
|
+
*/
|
|
1589
|
+
"min-h": [{ "min-h": [
|
|
1590
|
+
"screen",
|
|
1591
|
+
"lh",
|
|
1592
|
+
"none",
|
|
1593
|
+
...scaleSizing()
|
|
1594
|
+
] }],
|
|
1595
|
+
/**
|
|
1596
|
+
* Max-Height
|
|
1597
|
+
* @see https://tailwindcss.com/docs/max-height
|
|
1598
|
+
*/
|
|
1599
|
+
"max-h": [{ "max-h": [
|
|
1600
|
+
"screen",
|
|
1601
|
+
"lh",
|
|
1602
|
+
...scaleSizing()
|
|
1603
|
+
] }],
|
|
1604
|
+
/**
|
|
1605
|
+
* Font Size
|
|
1606
|
+
* @see https://tailwindcss.com/docs/font-size
|
|
1607
|
+
*/
|
|
1608
|
+
"font-size": [{ text: [
|
|
1609
|
+
"base",
|
|
1610
|
+
themeText,
|
|
1611
|
+
isArbitraryVariableLength,
|
|
1612
|
+
isArbitraryLength
|
|
1613
|
+
] }],
|
|
1614
|
+
/**
|
|
1615
|
+
* Font Smoothing
|
|
1616
|
+
* @see https://tailwindcss.com/docs/font-smoothing
|
|
1617
|
+
*/
|
|
1618
|
+
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
1619
|
+
/**
|
|
1620
|
+
* Font Style
|
|
1621
|
+
* @see https://tailwindcss.com/docs/font-style
|
|
1622
|
+
*/
|
|
1623
|
+
"font-style": ["italic", "not-italic"],
|
|
1624
|
+
/**
|
|
1625
|
+
* Font Weight
|
|
1626
|
+
* @see https://tailwindcss.com/docs/font-weight
|
|
1627
|
+
*/
|
|
1628
|
+
"font-weight": [{ font: [
|
|
1629
|
+
themeFontWeight,
|
|
1630
|
+
isArbitraryVariableWeight,
|
|
1631
|
+
isArbitraryWeight
|
|
1632
|
+
] }],
|
|
1633
|
+
/**
|
|
1634
|
+
* Font Stretch
|
|
1635
|
+
* @see https://tailwindcss.com/docs/font-stretch
|
|
1636
|
+
*/
|
|
1637
|
+
"font-stretch": [{ "font-stretch": [
|
|
1638
|
+
"ultra-condensed",
|
|
1639
|
+
"extra-condensed",
|
|
1640
|
+
"condensed",
|
|
1641
|
+
"semi-condensed",
|
|
1642
|
+
"normal",
|
|
1643
|
+
"semi-expanded",
|
|
1644
|
+
"expanded",
|
|
1645
|
+
"extra-expanded",
|
|
1646
|
+
"ultra-expanded",
|
|
1647
|
+
isPercent,
|
|
1648
|
+
isArbitraryValue
|
|
1649
|
+
] }],
|
|
1650
|
+
/**
|
|
1651
|
+
* Font Family
|
|
1652
|
+
* @see https://tailwindcss.com/docs/font-family
|
|
1653
|
+
*/
|
|
1654
|
+
"font-family": [{ font: [
|
|
1655
|
+
isArbitraryVariableFamilyName,
|
|
1656
|
+
isArbitraryFamilyName,
|
|
1657
|
+
themeFont
|
|
1658
|
+
] }],
|
|
1659
|
+
/**
|
|
1660
|
+
* Font Feature Settings
|
|
1661
|
+
* @see https://tailwindcss.com/docs/font-feature-settings
|
|
1662
|
+
*/
|
|
1663
|
+
"font-features": [{ "font-features": [isArbitraryValue] }],
|
|
1664
|
+
/**
|
|
1665
|
+
* Font Variant Numeric
|
|
1666
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1667
|
+
*/
|
|
1668
|
+
"fvn-normal": ["normal-nums"],
|
|
1669
|
+
/**
|
|
1670
|
+
* Font Variant Numeric
|
|
1671
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1672
|
+
*/
|
|
1673
|
+
"fvn-ordinal": ["ordinal"],
|
|
1674
|
+
/**
|
|
1675
|
+
* Font Variant Numeric
|
|
1676
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1677
|
+
*/
|
|
1678
|
+
"fvn-slashed-zero": ["slashed-zero"],
|
|
1679
|
+
/**
|
|
1680
|
+
* Font Variant Numeric
|
|
1681
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1682
|
+
*/
|
|
1683
|
+
"fvn-figure": ["lining-nums", "oldstyle-nums"],
|
|
1684
|
+
/**
|
|
1685
|
+
* Font Variant Numeric
|
|
1686
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1687
|
+
*/
|
|
1688
|
+
"fvn-spacing": ["proportional-nums", "tabular-nums"],
|
|
1689
|
+
/**
|
|
1690
|
+
* Font Variant Numeric
|
|
1691
|
+
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
1692
|
+
*/
|
|
1693
|
+
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
1694
|
+
/**
|
|
1695
|
+
* Letter Spacing
|
|
1696
|
+
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1697
|
+
*/
|
|
1698
|
+
tracking: [{ tracking: [
|
|
1699
|
+
themeTracking,
|
|
1700
|
+
isArbitraryVariable,
|
|
1701
|
+
isArbitraryValue
|
|
1702
|
+
] }],
|
|
1703
|
+
/**
|
|
1704
|
+
* Line Clamp
|
|
1705
|
+
* @see https://tailwindcss.com/docs/line-clamp
|
|
1706
|
+
*/
|
|
1707
|
+
"line-clamp": [{ "line-clamp": [
|
|
1708
|
+
isNumber,
|
|
1709
|
+
"none",
|
|
1710
|
+
isArbitraryVariable,
|
|
1711
|
+
isArbitraryNumber
|
|
1712
|
+
] }],
|
|
1713
|
+
/**
|
|
1714
|
+
* Line Height
|
|
1715
|
+
* @see https://tailwindcss.com/docs/line-height
|
|
1716
|
+
*/
|
|
1717
|
+
leading: [{ leading: [themeLeading, ...scaleUnambiguousSpacing()] }],
|
|
1718
|
+
/**
|
|
1719
|
+
* List Style Image
|
|
1720
|
+
* @see https://tailwindcss.com/docs/list-style-image
|
|
1721
|
+
*/
|
|
1722
|
+
"list-image": [{ "list-image": [
|
|
1723
|
+
"none",
|
|
1724
|
+
isArbitraryVariable,
|
|
1725
|
+
isArbitraryValue
|
|
1726
|
+
] }],
|
|
1727
|
+
/**
|
|
1728
|
+
* List Style Position
|
|
1729
|
+
* @see https://tailwindcss.com/docs/list-style-position
|
|
1730
|
+
*/
|
|
1731
|
+
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
1732
|
+
/**
|
|
1733
|
+
* List Style Type
|
|
1734
|
+
* @see https://tailwindcss.com/docs/list-style-type
|
|
1735
|
+
*/
|
|
1736
|
+
"list-style-type": [{ list: [
|
|
1737
|
+
"disc",
|
|
1738
|
+
"decimal",
|
|
1739
|
+
"none",
|
|
1740
|
+
isArbitraryVariable,
|
|
1741
|
+
isArbitraryValue
|
|
1742
|
+
] }],
|
|
1743
|
+
/**
|
|
1744
|
+
* Text Alignment
|
|
1745
|
+
* @see https://tailwindcss.com/docs/text-align
|
|
1746
|
+
*/
|
|
1747
|
+
"text-alignment": [{ text: [
|
|
1748
|
+
"left",
|
|
1749
|
+
"center",
|
|
1750
|
+
"right",
|
|
1751
|
+
"justify",
|
|
1752
|
+
"start",
|
|
1753
|
+
"end"
|
|
1754
|
+
] }],
|
|
1755
|
+
/**
|
|
1756
|
+
* Placeholder Color
|
|
1757
|
+
* @deprecated since Tailwind CSS v3.0.0
|
|
1758
|
+
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
1759
|
+
*/
|
|
1760
|
+
"placeholder-color": [{ placeholder: scaleColor() }],
|
|
1761
|
+
/**
|
|
1762
|
+
* Text Color
|
|
1763
|
+
* @see https://tailwindcss.com/docs/text-color
|
|
1764
|
+
*/
|
|
1765
|
+
"text-color": [{ text: scaleColor() }],
|
|
1766
|
+
/**
|
|
1767
|
+
* Text Decoration
|
|
1768
|
+
* @see https://tailwindcss.com/docs/text-decoration
|
|
1769
|
+
*/
|
|
1770
|
+
"text-decoration": [
|
|
1771
|
+
"underline",
|
|
1772
|
+
"overline",
|
|
1773
|
+
"line-through",
|
|
1774
|
+
"no-underline"
|
|
1775
|
+
],
|
|
1776
|
+
/**
|
|
1777
|
+
* Text Decoration Style
|
|
1778
|
+
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1779
|
+
*/
|
|
1780
|
+
"text-decoration-style": [{ decoration: [...scaleLineStyle(), "wavy"] }],
|
|
1781
|
+
/**
|
|
1782
|
+
* Text Decoration Thickness
|
|
1783
|
+
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1784
|
+
*/
|
|
1785
|
+
"text-decoration-thickness": [{ decoration: [
|
|
1786
|
+
isNumber,
|
|
1787
|
+
"from-font",
|
|
1788
|
+
"auto",
|
|
1789
|
+
isArbitraryVariable,
|
|
1790
|
+
isArbitraryLength
|
|
1791
|
+
] }],
|
|
1792
|
+
/**
|
|
1793
|
+
* Text Decoration Color
|
|
1794
|
+
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1795
|
+
*/
|
|
1796
|
+
"text-decoration-color": [{ decoration: scaleColor() }],
|
|
1797
|
+
/**
|
|
1798
|
+
* Text Underline Offset
|
|
1799
|
+
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1800
|
+
*/
|
|
1801
|
+
"underline-offset": [{ "underline-offset": [
|
|
1802
|
+
isNumber,
|
|
1803
|
+
"auto",
|
|
1804
|
+
isArbitraryVariable,
|
|
1805
|
+
isArbitraryValue
|
|
1806
|
+
] }],
|
|
1807
|
+
/**
|
|
1808
|
+
* Text Transform
|
|
1809
|
+
* @see https://tailwindcss.com/docs/text-transform
|
|
1810
|
+
*/
|
|
1811
|
+
"text-transform": [
|
|
1812
|
+
"uppercase",
|
|
1813
|
+
"lowercase",
|
|
1814
|
+
"capitalize",
|
|
1815
|
+
"normal-case"
|
|
1816
|
+
],
|
|
1817
|
+
/**
|
|
1818
|
+
* Text Overflow
|
|
1819
|
+
* @see https://tailwindcss.com/docs/text-overflow
|
|
1820
|
+
*/
|
|
1821
|
+
"text-overflow": [
|
|
1822
|
+
"truncate",
|
|
1823
|
+
"text-ellipsis",
|
|
1824
|
+
"text-clip"
|
|
1825
|
+
],
|
|
1826
|
+
/**
|
|
1827
|
+
* Text Wrap
|
|
1828
|
+
* @see https://tailwindcss.com/docs/text-wrap
|
|
1829
|
+
*/
|
|
1830
|
+
"text-wrap": [{ text: [
|
|
1831
|
+
"wrap",
|
|
1832
|
+
"nowrap",
|
|
1833
|
+
"balance",
|
|
1834
|
+
"pretty"
|
|
1835
|
+
] }],
|
|
1836
|
+
/**
|
|
1837
|
+
* Text Indent
|
|
1838
|
+
* @see https://tailwindcss.com/docs/text-indent
|
|
1839
|
+
*/
|
|
1840
|
+
indent: [{ indent: scaleUnambiguousSpacing() }],
|
|
1841
|
+
/**
|
|
1842
|
+
* Tab Size
|
|
1843
|
+
* @see https://tailwindcss.com/docs/tab-size
|
|
1844
|
+
*/
|
|
1845
|
+
"tab-size": [{ tab: [
|
|
1846
|
+
isInteger,
|
|
1847
|
+
isArbitraryVariable,
|
|
1848
|
+
isArbitraryValue
|
|
1849
|
+
] }],
|
|
1850
|
+
/**
|
|
1851
|
+
* Vertical Alignment
|
|
1852
|
+
* @see https://tailwindcss.com/docs/vertical-align
|
|
1853
|
+
*/
|
|
1854
|
+
"vertical-align": [{ align: [
|
|
1855
|
+
"baseline",
|
|
1856
|
+
"top",
|
|
1857
|
+
"middle",
|
|
1858
|
+
"bottom",
|
|
1859
|
+
"text-top",
|
|
1860
|
+
"text-bottom",
|
|
1861
|
+
"sub",
|
|
1862
|
+
"super",
|
|
1863
|
+
isArbitraryVariable,
|
|
1864
|
+
isArbitraryValue
|
|
1865
|
+
] }],
|
|
1866
|
+
/**
|
|
1867
|
+
* Whitespace
|
|
1868
|
+
* @see https://tailwindcss.com/docs/whitespace
|
|
1869
|
+
*/
|
|
1870
|
+
whitespace: [{ whitespace: [
|
|
1871
|
+
"normal",
|
|
1872
|
+
"nowrap",
|
|
1873
|
+
"pre",
|
|
1874
|
+
"pre-line",
|
|
1875
|
+
"pre-wrap",
|
|
1876
|
+
"break-spaces"
|
|
1877
|
+
] }],
|
|
1878
|
+
/**
|
|
1879
|
+
* Word Break
|
|
1880
|
+
* @see https://tailwindcss.com/docs/word-break
|
|
1881
|
+
*/
|
|
1882
|
+
break: [{ break: [
|
|
1883
|
+
"normal",
|
|
1884
|
+
"words",
|
|
1885
|
+
"all",
|
|
1886
|
+
"keep"
|
|
1887
|
+
] }],
|
|
1888
|
+
/**
|
|
1889
|
+
* Overflow Wrap
|
|
1890
|
+
* @see https://tailwindcss.com/docs/overflow-wrap
|
|
1891
|
+
*/
|
|
1892
|
+
wrap: [{ wrap: [
|
|
1893
|
+
"break-word",
|
|
1894
|
+
"anywhere",
|
|
1895
|
+
"normal"
|
|
1896
|
+
] }],
|
|
1897
|
+
/**
|
|
1898
|
+
* Hyphens
|
|
1899
|
+
* @see https://tailwindcss.com/docs/hyphens
|
|
1900
|
+
*/
|
|
1901
|
+
hyphens: [{ hyphens: [
|
|
1902
|
+
"none",
|
|
1903
|
+
"manual",
|
|
1904
|
+
"auto"
|
|
1905
|
+
] }],
|
|
1906
|
+
/**
|
|
1907
|
+
* Content
|
|
1908
|
+
* @see https://tailwindcss.com/docs/content
|
|
1909
|
+
*/
|
|
1910
|
+
content: [{ content: [
|
|
1911
|
+
"none",
|
|
1912
|
+
isArbitraryVariable,
|
|
1913
|
+
isArbitraryValue
|
|
1914
|
+
] }],
|
|
1915
|
+
/**
|
|
1916
|
+
* Background Attachment
|
|
1917
|
+
* @see https://tailwindcss.com/docs/background-attachment
|
|
1918
|
+
*/
|
|
1919
|
+
"bg-attachment": [{ bg: [
|
|
1920
|
+
"fixed",
|
|
1921
|
+
"local",
|
|
1922
|
+
"scroll"
|
|
1923
|
+
] }],
|
|
1924
|
+
/**
|
|
1925
|
+
* Background Clip
|
|
1926
|
+
* @see https://tailwindcss.com/docs/background-clip
|
|
1927
|
+
*/
|
|
1928
|
+
"bg-clip": [{ "bg-clip": [
|
|
1929
|
+
"border",
|
|
1930
|
+
"padding",
|
|
1931
|
+
"content",
|
|
1932
|
+
"text"
|
|
1933
|
+
] }],
|
|
1934
|
+
/**
|
|
1935
|
+
* Background Origin
|
|
1936
|
+
* @see https://tailwindcss.com/docs/background-origin
|
|
1937
|
+
*/
|
|
1938
|
+
"bg-origin": [{ "bg-origin": [
|
|
1939
|
+
"border",
|
|
1940
|
+
"padding",
|
|
1941
|
+
"content"
|
|
1942
|
+
] }],
|
|
1943
|
+
/**
|
|
1944
|
+
* Background Position
|
|
1945
|
+
* @see https://tailwindcss.com/docs/background-position
|
|
1946
|
+
*/
|
|
1947
|
+
"bg-position": [{ bg: scaleBgPosition() }],
|
|
1948
|
+
/**
|
|
1949
|
+
* Background Repeat
|
|
1950
|
+
* @see https://tailwindcss.com/docs/background-repeat
|
|
1951
|
+
*/
|
|
1952
|
+
"bg-repeat": [{ bg: scaleBgRepeat() }],
|
|
1953
|
+
/**
|
|
1954
|
+
* Background Size
|
|
1955
|
+
* @see https://tailwindcss.com/docs/background-size
|
|
1956
|
+
*/
|
|
1957
|
+
"bg-size": [{ bg: scaleBgSize() }],
|
|
1958
|
+
/**
|
|
1959
|
+
* Background Image
|
|
1960
|
+
* @see https://tailwindcss.com/docs/background-image
|
|
1961
|
+
*/
|
|
1962
|
+
"bg-image": [{ bg: [
|
|
1963
|
+
"none",
|
|
1964
|
+
{
|
|
1965
|
+
linear: [
|
|
1966
|
+
{ to: [
|
|
1967
|
+
"t",
|
|
1968
|
+
"tr",
|
|
1969
|
+
"r",
|
|
1970
|
+
"br",
|
|
1971
|
+
"b",
|
|
1972
|
+
"bl",
|
|
1973
|
+
"l",
|
|
1974
|
+
"tl"
|
|
1975
|
+
] },
|
|
1976
|
+
isInteger,
|
|
1977
|
+
isArbitraryVariable,
|
|
1978
|
+
isArbitraryValue
|
|
1979
|
+
],
|
|
1980
|
+
radial: [
|
|
1981
|
+
"",
|
|
1982
|
+
isArbitraryVariable,
|
|
1983
|
+
isArbitraryValue
|
|
1984
|
+
],
|
|
1985
|
+
conic: [
|
|
1986
|
+
isInteger,
|
|
1987
|
+
isArbitraryVariable,
|
|
1988
|
+
isArbitraryValue
|
|
1989
|
+
]
|
|
1990
|
+
},
|
|
1991
|
+
isArbitraryVariableImage,
|
|
1992
|
+
isArbitraryImage
|
|
1993
|
+
] }],
|
|
1994
|
+
/**
|
|
1995
|
+
* Background Color
|
|
1996
|
+
* @see https://tailwindcss.com/docs/background-color
|
|
1997
|
+
*/
|
|
1998
|
+
"bg-color": [{ bg: scaleColor() }],
|
|
1999
|
+
/**
|
|
2000
|
+
* Gradient Color Stops From Position
|
|
2001
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2002
|
+
*/
|
|
2003
|
+
"gradient-from-pos": [{ from: scaleGradientStopPosition() }],
|
|
2004
|
+
/**
|
|
2005
|
+
* Gradient Color Stops Via Position
|
|
2006
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2007
|
+
*/
|
|
2008
|
+
"gradient-via-pos": [{ via: scaleGradientStopPosition() }],
|
|
2009
|
+
/**
|
|
2010
|
+
* Gradient Color Stops To Position
|
|
2011
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2012
|
+
*/
|
|
2013
|
+
"gradient-to-pos": [{ to: scaleGradientStopPosition() }],
|
|
2014
|
+
/**
|
|
2015
|
+
* Gradient Color Stops From
|
|
2016
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2017
|
+
*/
|
|
2018
|
+
"gradient-from": [{ from: scaleColor() }],
|
|
2019
|
+
/**
|
|
2020
|
+
* Gradient Color Stops Via
|
|
2021
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2022
|
+
*/
|
|
2023
|
+
"gradient-via": [{ via: scaleColor() }],
|
|
2024
|
+
/**
|
|
2025
|
+
* Gradient Color Stops To
|
|
2026
|
+
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2027
|
+
*/
|
|
2028
|
+
"gradient-to": [{ to: scaleColor() }],
|
|
2029
|
+
/**
|
|
2030
|
+
* Border Radius
|
|
2031
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2032
|
+
*/
|
|
2033
|
+
rounded: [{ rounded: scaleRadius() }],
|
|
2034
|
+
/**
|
|
2035
|
+
* Border Radius Start
|
|
2036
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2037
|
+
*/
|
|
2038
|
+
"rounded-s": [{ "rounded-s": scaleRadius() }],
|
|
2039
|
+
/**
|
|
2040
|
+
* Border Radius End
|
|
2041
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2042
|
+
*/
|
|
2043
|
+
"rounded-e": [{ "rounded-e": scaleRadius() }],
|
|
2044
|
+
/**
|
|
2045
|
+
* Border Radius Top
|
|
2046
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2047
|
+
*/
|
|
2048
|
+
"rounded-t": [{ "rounded-t": scaleRadius() }],
|
|
2049
|
+
/**
|
|
2050
|
+
* Border Radius Right
|
|
2051
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2052
|
+
*/
|
|
2053
|
+
"rounded-r": [{ "rounded-r": scaleRadius() }],
|
|
2054
|
+
/**
|
|
2055
|
+
* Border Radius Bottom
|
|
2056
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2057
|
+
*/
|
|
2058
|
+
"rounded-b": [{ "rounded-b": scaleRadius() }],
|
|
2059
|
+
/**
|
|
2060
|
+
* Border Radius Left
|
|
2061
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2062
|
+
*/
|
|
2063
|
+
"rounded-l": [{ "rounded-l": scaleRadius() }],
|
|
2064
|
+
/**
|
|
2065
|
+
* Border Radius Start Start
|
|
2066
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2067
|
+
*/
|
|
2068
|
+
"rounded-ss": [{ "rounded-ss": scaleRadius() }],
|
|
2069
|
+
/**
|
|
2070
|
+
* Border Radius Start End
|
|
2071
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2072
|
+
*/
|
|
2073
|
+
"rounded-se": [{ "rounded-se": scaleRadius() }],
|
|
2074
|
+
/**
|
|
2075
|
+
* Border Radius End End
|
|
2076
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2077
|
+
*/
|
|
2078
|
+
"rounded-ee": [{ "rounded-ee": scaleRadius() }],
|
|
2079
|
+
/**
|
|
2080
|
+
* Border Radius End Start
|
|
2081
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2082
|
+
*/
|
|
2083
|
+
"rounded-es": [{ "rounded-es": scaleRadius() }],
|
|
2084
|
+
/**
|
|
2085
|
+
* Border Radius Top Left
|
|
2086
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2087
|
+
*/
|
|
2088
|
+
"rounded-tl": [{ "rounded-tl": scaleRadius() }],
|
|
2089
|
+
/**
|
|
2090
|
+
* Border Radius Top Right
|
|
2091
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2092
|
+
*/
|
|
2093
|
+
"rounded-tr": [{ "rounded-tr": scaleRadius() }],
|
|
2094
|
+
/**
|
|
2095
|
+
* Border Radius Bottom Right
|
|
2096
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2097
|
+
*/
|
|
2098
|
+
"rounded-br": [{ "rounded-br": scaleRadius() }],
|
|
2099
|
+
/**
|
|
2100
|
+
* Border Radius Bottom Left
|
|
2101
|
+
* @see https://tailwindcss.com/docs/border-radius
|
|
2102
|
+
*/
|
|
2103
|
+
"rounded-bl": [{ "rounded-bl": scaleRadius() }],
|
|
2104
|
+
/**
|
|
2105
|
+
* Border Width
|
|
2106
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2107
|
+
*/
|
|
2108
|
+
"border-w": [{ border: scaleBorderWidth() }],
|
|
2109
|
+
/**
|
|
2110
|
+
* Border Width Inline
|
|
2111
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2112
|
+
*/
|
|
2113
|
+
"border-w-x": [{ "border-x": scaleBorderWidth() }],
|
|
2114
|
+
/**
|
|
2115
|
+
* Border Width Block
|
|
2116
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2117
|
+
*/
|
|
2118
|
+
"border-w-y": [{ "border-y": scaleBorderWidth() }],
|
|
2119
|
+
/**
|
|
2120
|
+
* Border Width Inline Start
|
|
2121
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2122
|
+
*/
|
|
2123
|
+
"border-w-s": [{ "border-s": scaleBorderWidth() }],
|
|
2124
|
+
/**
|
|
2125
|
+
* Border Width Inline End
|
|
2126
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2127
|
+
*/
|
|
2128
|
+
"border-w-e": [{ "border-e": scaleBorderWidth() }],
|
|
2129
|
+
/**
|
|
2130
|
+
* Border Width Block Start
|
|
2131
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2132
|
+
*/
|
|
2133
|
+
"border-w-bs": [{ "border-bs": scaleBorderWidth() }],
|
|
2134
|
+
/**
|
|
2135
|
+
* Border Width Block End
|
|
2136
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2137
|
+
*/
|
|
2138
|
+
"border-w-be": [{ "border-be": scaleBorderWidth() }],
|
|
2139
|
+
/**
|
|
2140
|
+
* Border Width Top
|
|
2141
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2142
|
+
*/
|
|
2143
|
+
"border-w-t": [{ "border-t": scaleBorderWidth() }],
|
|
2144
|
+
/**
|
|
2145
|
+
* Border Width Right
|
|
2146
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2147
|
+
*/
|
|
2148
|
+
"border-w-r": [{ "border-r": scaleBorderWidth() }],
|
|
2149
|
+
/**
|
|
2150
|
+
* Border Width Bottom
|
|
2151
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2152
|
+
*/
|
|
2153
|
+
"border-w-b": [{ "border-b": scaleBorderWidth() }],
|
|
2154
|
+
/**
|
|
2155
|
+
* Border Width Left
|
|
2156
|
+
* @see https://tailwindcss.com/docs/border-width
|
|
2157
|
+
*/
|
|
2158
|
+
"border-w-l": [{ "border-l": scaleBorderWidth() }],
|
|
2159
|
+
/**
|
|
2160
|
+
* Divide Width X
|
|
2161
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2162
|
+
*/
|
|
2163
|
+
"divide-x": [{ "divide-x": scaleBorderWidth() }],
|
|
2164
|
+
/**
|
|
2165
|
+
* Divide Width X Reverse
|
|
2166
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2167
|
+
*/
|
|
2168
|
+
"divide-x-reverse": ["divide-x-reverse"],
|
|
2169
|
+
/**
|
|
2170
|
+
* Divide Width Y
|
|
2171
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2172
|
+
*/
|
|
2173
|
+
"divide-y": [{ "divide-y": scaleBorderWidth() }],
|
|
2174
|
+
/**
|
|
2175
|
+
* Divide Width Y Reverse
|
|
2176
|
+
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2177
|
+
*/
|
|
2178
|
+
"divide-y-reverse": ["divide-y-reverse"],
|
|
2179
|
+
/**
|
|
2180
|
+
* Border Style
|
|
2181
|
+
* @see https://tailwindcss.com/docs/border-style
|
|
2182
|
+
*/
|
|
2183
|
+
"border-style": [{ border: [
|
|
2184
|
+
...scaleLineStyle(),
|
|
2185
|
+
"hidden",
|
|
2186
|
+
"none"
|
|
2187
|
+
] }],
|
|
2188
|
+
/**
|
|
2189
|
+
* Divide Style
|
|
2190
|
+
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
2191
|
+
*/
|
|
2192
|
+
"divide-style": [{ divide: [
|
|
2193
|
+
...scaleLineStyle(),
|
|
2194
|
+
"hidden",
|
|
2195
|
+
"none"
|
|
2196
|
+
] }],
|
|
2197
|
+
/**
|
|
2198
|
+
* Border Color
|
|
2199
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2200
|
+
*/
|
|
2201
|
+
"border-color": [{ border: scaleColor() }],
|
|
2202
|
+
/**
|
|
2203
|
+
* Border Color Inline
|
|
2204
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2205
|
+
*/
|
|
2206
|
+
"border-color-x": [{ "border-x": scaleColor() }],
|
|
2207
|
+
/**
|
|
2208
|
+
* Border Color Block
|
|
2209
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2210
|
+
*/
|
|
2211
|
+
"border-color-y": [{ "border-y": scaleColor() }],
|
|
2212
|
+
/**
|
|
2213
|
+
* Border Color Inline Start
|
|
2214
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2215
|
+
*/
|
|
2216
|
+
"border-color-s": [{ "border-s": scaleColor() }],
|
|
2217
|
+
/**
|
|
2218
|
+
* Border Color Inline End
|
|
2219
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2220
|
+
*/
|
|
2221
|
+
"border-color-e": [{ "border-e": scaleColor() }],
|
|
2222
|
+
/**
|
|
2223
|
+
* Border Color Block Start
|
|
2224
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2225
|
+
*/
|
|
2226
|
+
"border-color-bs": [{ "border-bs": scaleColor() }],
|
|
2227
|
+
/**
|
|
2228
|
+
* Border Color Block End
|
|
2229
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2230
|
+
*/
|
|
2231
|
+
"border-color-be": [{ "border-be": scaleColor() }],
|
|
2232
|
+
/**
|
|
2233
|
+
* Border Color Top
|
|
2234
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2235
|
+
*/
|
|
2236
|
+
"border-color-t": [{ "border-t": scaleColor() }],
|
|
2237
|
+
/**
|
|
2238
|
+
* Border Color Right
|
|
2239
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2240
|
+
*/
|
|
2241
|
+
"border-color-r": [{ "border-r": scaleColor() }],
|
|
2242
|
+
/**
|
|
2243
|
+
* Border Color Bottom
|
|
2244
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2245
|
+
*/
|
|
2246
|
+
"border-color-b": [{ "border-b": scaleColor() }],
|
|
2247
|
+
/**
|
|
2248
|
+
* Border Color Left
|
|
2249
|
+
* @see https://tailwindcss.com/docs/border-color
|
|
2250
|
+
*/
|
|
2251
|
+
"border-color-l": [{ "border-l": scaleColor() }],
|
|
2252
|
+
/**
|
|
2253
|
+
* Divide Color
|
|
2254
|
+
* @see https://tailwindcss.com/docs/divide-color
|
|
2255
|
+
*/
|
|
2256
|
+
"divide-color": [{ divide: scaleColor() }],
|
|
2257
|
+
/**
|
|
2258
|
+
* Outline Style
|
|
2259
|
+
* @see https://tailwindcss.com/docs/outline-style
|
|
2260
|
+
*/
|
|
2261
|
+
"outline-style": [{ outline: [
|
|
2262
|
+
...scaleLineStyle(),
|
|
2263
|
+
"none",
|
|
2264
|
+
"hidden"
|
|
2265
|
+
] }],
|
|
2266
|
+
/**
|
|
2267
|
+
* Outline Offset
|
|
2268
|
+
* @see https://tailwindcss.com/docs/outline-offset
|
|
2269
|
+
*/
|
|
2270
|
+
"outline-offset": [{ "outline-offset": [
|
|
2271
|
+
isNumber,
|
|
2272
|
+
isArbitraryVariable,
|
|
2273
|
+
isArbitraryValue
|
|
2274
|
+
] }],
|
|
2275
|
+
/**
|
|
2276
|
+
* Outline Width
|
|
2277
|
+
* @see https://tailwindcss.com/docs/outline-width
|
|
2278
|
+
*/
|
|
2279
|
+
"outline-w": [{ outline: [
|
|
2280
|
+
"",
|
|
2281
|
+
isNumber,
|
|
2282
|
+
isArbitraryVariableLength,
|
|
2283
|
+
isArbitraryLength
|
|
2284
|
+
] }],
|
|
2285
|
+
/**
|
|
2286
|
+
* Outline Color
|
|
2287
|
+
* @see https://tailwindcss.com/docs/outline-color
|
|
2288
|
+
*/
|
|
2289
|
+
"outline-color": [{ outline: scaleColor() }],
|
|
2290
|
+
/**
|
|
2291
|
+
* Box Shadow
|
|
2292
|
+
* @see https://tailwindcss.com/docs/box-shadow
|
|
2293
|
+
*/
|
|
2294
|
+
shadow: [{ shadow: [
|
|
2295
|
+
"",
|
|
2296
|
+
"none",
|
|
2297
|
+
themeShadow,
|
|
2298
|
+
isArbitraryVariableShadow,
|
|
2299
|
+
isArbitraryShadow
|
|
2300
|
+
] }],
|
|
2301
|
+
/**
|
|
2302
|
+
* Box Shadow Color
|
|
2303
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
2304
|
+
*/
|
|
2305
|
+
"shadow-color": [{ shadow: scaleColor() }],
|
|
2306
|
+
/**
|
|
2307
|
+
* Inset Box Shadow
|
|
2308
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2309
|
+
*/
|
|
2310
|
+
"inset-shadow": [{ "inset-shadow": [
|
|
2311
|
+
"none",
|
|
2312
|
+
themeInsetShadow,
|
|
2313
|
+
isArbitraryVariableShadow,
|
|
2314
|
+
isArbitraryShadow
|
|
2315
|
+
] }],
|
|
2316
|
+
/**
|
|
2317
|
+
* Inset Box Shadow Color
|
|
2318
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
2319
|
+
*/
|
|
2320
|
+
"inset-shadow-color": [{ "inset-shadow": scaleColor() }],
|
|
2321
|
+
/**
|
|
2322
|
+
* Ring Width
|
|
2323
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
2324
|
+
*/
|
|
2325
|
+
"ring-w": [{ ring: scaleBorderWidth() }],
|
|
2326
|
+
/**
|
|
2327
|
+
* Ring Width Inset
|
|
2328
|
+
* @see https://v3.tailwindcss.com/docs/ring-width#inset-rings
|
|
2329
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
2330
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2331
|
+
*/
|
|
2332
|
+
"ring-w-inset": ["ring-inset"],
|
|
2333
|
+
/**
|
|
2334
|
+
* Ring Color
|
|
2335
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
2336
|
+
*/
|
|
2337
|
+
"ring-color": [{ ring: scaleColor() }],
|
|
2338
|
+
/**
|
|
2339
|
+
* Ring Offset Width
|
|
2340
|
+
* @see https://v3.tailwindcss.com/docs/ring-offset-width
|
|
2341
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
2342
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2343
|
+
*/
|
|
2344
|
+
"ring-offset-w": [{ "ring-offset": [isNumber, isArbitraryLength] }],
|
|
2345
|
+
/**
|
|
2346
|
+
* Ring Offset Color
|
|
2347
|
+
* @see https://v3.tailwindcss.com/docs/ring-offset-color
|
|
2348
|
+
* @deprecated since Tailwind CSS v4.0.0
|
|
2349
|
+
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2350
|
+
*/
|
|
2351
|
+
"ring-offset-color": [{ "ring-offset": scaleColor() }],
|
|
2352
|
+
/**
|
|
2353
|
+
* Inset Ring Width
|
|
2354
|
+
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
2355
|
+
*/
|
|
2356
|
+
"inset-ring-w": [{ "inset-ring": scaleBorderWidth() }],
|
|
2357
|
+
/**
|
|
2358
|
+
* Inset Ring Color
|
|
2359
|
+
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
2360
|
+
*/
|
|
2361
|
+
"inset-ring-color": [{ "inset-ring": scaleColor() }],
|
|
2362
|
+
/**
|
|
2363
|
+
* Text Shadow
|
|
2364
|
+
* @see https://tailwindcss.com/docs/text-shadow
|
|
2365
|
+
*/
|
|
2366
|
+
"text-shadow": [{ "text-shadow": [
|
|
2367
|
+
"none",
|
|
2368
|
+
themeTextShadow,
|
|
2369
|
+
isArbitraryVariableShadow,
|
|
2370
|
+
isArbitraryShadow
|
|
2371
|
+
] }],
|
|
2372
|
+
/**
|
|
2373
|
+
* Text Shadow Color
|
|
2374
|
+
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
2375
|
+
*/
|
|
2376
|
+
"text-shadow-color": [{ "text-shadow": scaleColor() }],
|
|
2377
|
+
/**
|
|
2378
|
+
* Opacity
|
|
2379
|
+
* @see https://tailwindcss.com/docs/opacity
|
|
2380
|
+
*/
|
|
2381
|
+
opacity: [{ opacity: [
|
|
2382
|
+
isNumber,
|
|
2383
|
+
isArbitraryVariable,
|
|
2384
|
+
isArbitraryValue
|
|
2385
|
+
] }],
|
|
2386
|
+
/**
|
|
2387
|
+
* Mix Blend Mode
|
|
2388
|
+
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2389
|
+
*/
|
|
2390
|
+
"mix-blend": [{ "mix-blend": [
|
|
2391
|
+
...scaleBlendMode(),
|
|
2392
|
+
"plus-darker",
|
|
2393
|
+
"plus-lighter"
|
|
2394
|
+
] }],
|
|
2395
|
+
/**
|
|
2396
|
+
* Background Blend Mode
|
|
2397
|
+
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2398
|
+
*/
|
|
2399
|
+
"bg-blend": [{ "bg-blend": scaleBlendMode() }],
|
|
2400
|
+
/**
|
|
2401
|
+
* Mask Clip
|
|
2402
|
+
* @see https://tailwindcss.com/docs/mask-clip
|
|
2403
|
+
*/
|
|
2404
|
+
"mask-clip": [{ "mask-clip": [
|
|
2405
|
+
"border",
|
|
2406
|
+
"padding",
|
|
2407
|
+
"content",
|
|
2408
|
+
"fill",
|
|
2409
|
+
"stroke",
|
|
2410
|
+
"view"
|
|
2411
|
+
] }, "mask-no-clip"],
|
|
2412
|
+
/**
|
|
2413
|
+
* Mask Composite
|
|
2414
|
+
* @see https://tailwindcss.com/docs/mask-composite
|
|
2415
|
+
*/
|
|
2416
|
+
"mask-composite": [{ mask: [
|
|
2417
|
+
"add",
|
|
2418
|
+
"subtract",
|
|
2419
|
+
"intersect",
|
|
2420
|
+
"exclude"
|
|
2421
|
+
] }],
|
|
2422
|
+
/**
|
|
2423
|
+
* Mask Image
|
|
2424
|
+
* @see https://tailwindcss.com/docs/mask-image
|
|
2425
|
+
*/
|
|
2426
|
+
"mask-image-linear-pos": [{ "mask-linear": [isNumber] }],
|
|
2427
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": scaleMaskImagePosition() }],
|
|
2428
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": scaleMaskImagePosition() }],
|
|
2429
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": scaleColor() }],
|
|
2430
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": scaleColor() }],
|
|
2431
|
+
"mask-image-t-from-pos": [{ "mask-t-from": scaleMaskImagePosition() }],
|
|
2432
|
+
"mask-image-t-to-pos": [{ "mask-t-to": scaleMaskImagePosition() }],
|
|
2433
|
+
"mask-image-t-from-color": [{ "mask-t-from": scaleColor() }],
|
|
2434
|
+
"mask-image-t-to-color": [{ "mask-t-to": scaleColor() }],
|
|
2435
|
+
"mask-image-r-from-pos": [{ "mask-r-from": scaleMaskImagePosition() }],
|
|
2436
|
+
"mask-image-r-to-pos": [{ "mask-r-to": scaleMaskImagePosition() }],
|
|
2437
|
+
"mask-image-r-from-color": [{ "mask-r-from": scaleColor() }],
|
|
2438
|
+
"mask-image-r-to-color": [{ "mask-r-to": scaleColor() }],
|
|
2439
|
+
"mask-image-b-from-pos": [{ "mask-b-from": scaleMaskImagePosition() }],
|
|
2440
|
+
"mask-image-b-to-pos": [{ "mask-b-to": scaleMaskImagePosition() }],
|
|
2441
|
+
"mask-image-b-from-color": [{ "mask-b-from": scaleColor() }],
|
|
2442
|
+
"mask-image-b-to-color": [{ "mask-b-to": scaleColor() }],
|
|
2443
|
+
"mask-image-l-from-pos": [{ "mask-l-from": scaleMaskImagePosition() }],
|
|
2444
|
+
"mask-image-l-to-pos": [{ "mask-l-to": scaleMaskImagePosition() }],
|
|
2445
|
+
"mask-image-l-from-color": [{ "mask-l-from": scaleColor() }],
|
|
2446
|
+
"mask-image-l-to-color": [{ "mask-l-to": scaleColor() }],
|
|
2447
|
+
"mask-image-x-from-pos": [{ "mask-x-from": scaleMaskImagePosition() }],
|
|
2448
|
+
"mask-image-x-to-pos": [{ "mask-x-to": scaleMaskImagePosition() }],
|
|
2449
|
+
"mask-image-x-from-color": [{ "mask-x-from": scaleColor() }],
|
|
2450
|
+
"mask-image-x-to-color": [{ "mask-x-to": scaleColor() }],
|
|
2451
|
+
"mask-image-y-from-pos": [{ "mask-y-from": scaleMaskImagePosition() }],
|
|
2452
|
+
"mask-image-y-to-pos": [{ "mask-y-to": scaleMaskImagePosition() }],
|
|
2453
|
+
"mask-image-y-from-color": [{ "mask-y-from": scaleColor() }],
|
|
2454
|
+
"mask-image-y-to-color": [{ "mask-y-to": scaleColor() }],
|
|
2455
|
+
"mask-image-radial": [{ "mask-radial": [isArbitraryVariable, isArbitraryValue] }],
|
|
2456
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": scaleMaskImagePosition() }],
|
|
2457
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": scaleMaskImagePosition() }],
|
|
2458
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": scaleColor() }],
|
|
2459
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": scaleColor() }],
|
|
2460
|
+
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
2461
|
+
"mask-image-radial-size": [{ "mask-radial": [{
|
|
2462
|
+
closest: ["side", "corner"],
|
|
2463
|
+
farthest: ["side", "corner"]
|
|
2464
|
+
}] }],
|
|
2465
|
+
"mask-image-radial-pos": [{ "mask-radial-at": scalePosition() }],
|
|
2466
|
+
"mask-image-conic-pos": [{ "mask-conic": [isNumber] }],
|
|
2467
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": scaleMaskImagePosition() }],
|
|
2468
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": scaleMaskImagePosition() }],
|
|
2469
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": scaleColor() }],
|
|
2470
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": scaleColor() }],
|
|
2471
|
+
/**
|
|
2472
|
+
* Mask Mode
|
|
2473
|
+
* @see https://tailwindcss.com/docs/mask-mode
|
|
2474
|
+
*/
|
|
2475
|
+
"mask-mode": [{ mask: [
|
|
2476
|
+
"alpha",
|
|
2477
|
+
"luminance",
|
|
2478
|
+
"match"
|
|
2479
|
+
] }],
|
|
2480
|
+
/**
|
|
2481
|
+
* Mask Origin
|
|
2482
|
+
* @see https://tailwindcss.com/docs/mask-origin
|
|
2483
|
+
*/
|
|
2484
|
+
"mask-origin": [{ "mask-origin": [
|
|
2485
|
+
"border",
|
|
2486
|
+
"padding",
|
|
2487
|
+
"content",
|
|
2488
|
+
"fill",
|
|
2489
|
+
"stroke",
|
|
2490
|
+
"view"
|
|
2491
|
+
] }],
|
|
2492
|
+
/**
|
|
2493
|
+
* Mask Position
|
|
2494
|
+
* @see https://tailwindcss.com/docs/mask-position
|
|
2495
|
+
*/
|
|
2496
|
+
"mask-position": [{ mask: scaleBgPosition() }],
|
|
2497
|
+
/**
|
|
2498
|
+
* Mask Repeat
|
|
2499
|
+
* @see https://tailwindcss.com/docs/mask-repeat
|
|
2500
|
+
*/
|
|
2501
|
+
"mask-repeat": [{ mask: scaleBgRepeat() }],
|
|
2502
|
+
/**
|
|
2503
|
+
* Mask Size
|
|
2504
|
+
* @see https://tailwindcss.com/docs/mask-size
|
|
2505
|
+
*/
|
|
2506
|
+
"mask-size": [{ mask: scaleBgSize() }],
|
|
2507
|
+
/**
|
|
2508
|
+
* Mask Type
|
|
2509
|
+
* @see https://tailwindcss.com/docs/mask-type
|
|
2510
|
+
*/
|
|
2511
|
+
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
2512
|
+
/**
|
|
2513
|
+
* Mask Image
|
|
2514
|
+
* @see https://tailwindcss.com/docs/mask-image
|
|
2515
|
+
*/
|
|
2516
|
+
"mask-image": [{ mask: [
|
|
2517
|
+
"none",
|
|
2518
|
+
isArbitraryVariable,
|
|
2519
|
+
isArbitraryValue
|
|
2520
|
+
] }],
|
|
2521
|
+
/**
|
|
2522
|
+
* Filter
|
|
2523
|
+
* @see https://tailwindcss.com/docs/filter
|
|
2524
|
+
*/
|
|
2525
|
+
filter: [{ filter: [
|
|
2526
|
+
"",
|
|
2527
|
+
"none",
|
|
2528
|
+
isArbitraryVariable,
|
|
2529
|
+
isArbitraryValue
|
|
2530
|
+
] }],
|
|
2531
|
+
/**
|
|
2532
|
+
* Blur
|
|
2533
|
+
* @see https://tailwindcss.com/docs/blur
|
|
2534
|
+
*/
|
|
2535
|
+
blur: [{ blur: scaleBlur() }],
|
|
2536
|
+
/**
|
|
2537
|
+
* Brightness
|
|
2538
|
+
* @see https://tailwindcss.com/docs/brightness
|
|
2539
|
+
*/
|
|
2540
|
+
brightness: [{ brightness: [
|
|
2541
|
+
isNumber,
|
|
2542
|
+
isArbitraryVariable,
|
|
2543
|
+
isArbitraryValue
|
|
2544
|
+
] }],
|
|
2545
|
+
/**
|
|
2546
|
+
* Contrast
|
|
2547
|
+
* @see https://tailwindcss.com/docs/contrast
|
|
2548
|
+
*/
|
|
2549
|
+
contrast: [{ contrast: [
|
|
2550
|
+
isNumber,
|
|
2551
|
+
isArbitraryVariable,
|
|
2552
|
+
isArbitraryValue
|
|
2553
|
+
] }],
|
|
2554
|
+
/**
|
|
2555
|
+
* Drop Shadow
|
|
2556
|
+
* @see https://tailwindcss.com/docs/drop-shadow
|
|
2557
|
+
*/
|
|
2558
|
+
"drop-shadow": [{ "drop-shadow": [
|
|
2559
|
+
"",
|
|
2560
|
+
"none",
|
|
2561
|
+
themeDropShadow,
|
|
2562
|
+
isArbitraryVariableShadow,
|
|
2563
|
+
isArbitraryShadow
|
|
2564
|
+
] }],
|
|
2565
|
+
/**
|
|
2566
|
+
* Drop Shadow Color
|
|
2567
|
+
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
2568
|
+
*/
|
|
2569
|
+
"drop-shadow-color": [{ "drop-shadow": scaleColor() }],
|
|
2570
|
+
/**
|
|
2571
|
+
* Grayscale
|
|
2572
|
+
* @see https://tailwindcss.com/docs/grayscale
|
|
2573
|
+
*/
|
|
2574
|
+
grayscale: [{ grayscale: [
|
|
2575
|
+
"",
|
|
2576
|
+
isNumber,
|
|
2577
|
+
isArbitraryVariable,
|
|
2578
|
+
isArbitraryValue
|
|
2579
|
+
] }],
|
|
2580
|
+
/**
|
|
2581
|
+
* Hue Rotate
|
|
2582
|
+
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2583
|
+
*/
|
|
2584
|
+
"hue-rotate": [{ "hue-rotate": [
|
|
2585
|
+
isNumber,
|
|
2586
|
+
isArbitraryVariable,
|
|
2587
|
+
isArbitraryValue
|
|
2588
|
+
] }],
|
|
2589
|
+
/**
|
|
2590
|
+
* Invert
|
|
2591
|
+
* @see https://tailwindcss.com/docs/invert
|
|
2592
|
+
*/
|
|
2593
|
+
invert: [{ invert: [
|
|
2594
|
+
"",
|
|
2595
|
+
isNumber,
|
|
2596
|
+
isArbitraryVariable,
|
|
2597
|
+
isArbitraryValue
|
|
2598
|
+
] }],
|
|
2599
|
+
/**
|
|
2600
|
+
* Saturate
|
|
2601
|
+
* @see https://tailwindcss.com/docs/saturate
|
|
2602
|
+
*/
|
|
2603
|
+
saturate: [{ saturate: [
|
|
2604
|
+
isNumber,
|
|
2605
|
+
isArbitraryVariable,
|
|
2606
|
+
isArbitraryValue
|
|
2607
|
+
] }],
|
|
2608
|
+
/**
|
|
2609
|
+
* Sepia
|
|
2610
|
+
* @see https://tailwindcss.com/docs/sepia
|
|
2611
|
+
*/
|
|
2612
|
+
sepia: [{ sepia: [
|
|
2613
|
+
"",
|
|
2614
|
+
isNumber,
|
|
2615
|
+
isArbitraryVariable,
|
|
2616
|
+
isArbitraryValue
|
|
2617
|
+
] }],
|
|
2618
|
+
/**
|
|
2619
|
+
* Backdrop Filter
|
|
2620
|
+
* @see https://tailwindcss.com/docs/backdrop-filter
|
|
2621
|
+
*/
|
|
2622
|
+
"backdrop-filter": [{ "backdrop-filter": [
|
|
2623
|
+
"",
|
|
2624
|
+
"none",
|
|
2625
|
+
isArbitraryVariable,
|
|
2626
|
+
isArbitraryValue
|
|
2627
|
+
] }],
|
|
2628
|
+
/**
|
|
2629
|
+
* Backdrop Blur
|
|
2630
|
+
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2631
|
+
*/
|
|
2632
|
+
"backdrop-blur": [{ "backdrop-blur": scaleBlur() }],
|
|
2633
|
+
/**
|
|
2634
|
+
* Backdrop Brightness
|
|
2635
|
+
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2636
|
+
*/
|
|
2637
|
+
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
2638
|
+
isNumber,
|
|
2639
|
+
isArbitraryVariable,
|
|
2640
|
+
isArbitraryValue
|
|
2641
|
+
] }],
|
|
2642
|
+
/**
|
|
2643
|
+
* Backdrop Contrast
|
|
2644
|
+
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2645
|
+
*/
|
|
2646
|
+
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
2647
|
+
isNumber,
|
|
2648
|
+
isArbitraryVariable,
|
|
2649
|
+
isArbitraryValue
|
|
2650
|
+
] }],
|
|
2651
|
+
/**
|
|
2652
|
+
* Backdrop Grayscale
|
|
2653
|
+
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2654
|
+
*/
|
|
2655
|
+
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
2656
|
+
"",
|
|
2657
|
+
isNumber,
|
|
2658
|
+
isArbitraryVariable,
|
|
2659
|
+
isArbitraryValue
|
|
2660
|
+
] }],
|
|
2661
|
+
/**
|
|
2662
|
+
* Backdrop Hue Rotate
|
|
2663
|
+
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2664
|
+
*/
|
|
2665
|
+
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
2666
|
+
isNumber,
|
|
2667
|
+
isArbitraryVariable,
|
|
2668
|
+
isArbitraryValue
|
|
2669
|
+
] }],
|
|
2670
|
+
/**
|
|
2671
|
+
* Backdrop Invert
|
|
2672
|
+
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2673
|
+
*/
|
|
2674
|
+
"backdrop-invert": [{ "backdrop-invert": [
|
|
2675
|
+
"",
|
|
2676
|
+
isNumber,
|
|
2677
|
+
isArbitraryVariable,
|
|
2678
|
+
isArbitraryValue
|
|
2679
|
+
] }],
|
|
2680
|
+
/**
|
|
2681
|
+
* Backdrop Opacity
|
|
2682
|
+
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2683
|
+
*/
|
|
2684
|
+
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
2685
|
+
isNumber,
|
|
2686
|
+
isArbitraryVariable,
|
|
2687
|
+
isArbitraryValue
|
|
2688
|
+
] }],
|
|
2689
|
+
/**
|
|
2690
|
+
* Backdrop Saturate
|
|
2691
|
+
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2692
|
+
*/
|
|
2693
|
+
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
2694
|
+
isNumber,
|
|
2695
|
+
isArbitraryVariable,
|
|
2696
|
+
isArbitraryValue
|
|
2697
|
+
] }],
|
|
2698
|
+
/**
|
|
2699
|
+
* Backdrop Sepia
|
|
2700
|
+
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2701
|
+
*/
|
|
2702
|
+
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
2703
|
+
"",
|
|
2704
|
+
isNumber,
|
|
2705
|
+
isArbitraryVariable,
|
|
2706
|
+
isArbitraryValue
|
|
2707
|
+
] }],
|
|
2708
|
+
/**
|
|
2709
|
+
* Border Collapse
|
|
2710
|
+
* @see https://tailwindcss.com/docs/border-collapse
|
|
2711
|
+
*/
|
|
2712
|
+
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
2713
|
+
/**
|
|
2714
|
+
* Border Spacing
|
|
2715
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2716
|
+
*/
|
|
2717
|
+
"border-spacing": [{ "border-spacing": scaleUnambiguousSpacing() }],
|
|
2718
|
+
/**
|
|
2719
|
+
* Border Spacing X
|
|
2720
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2721
|
+
*/
|
|
2722
|
+
"border-spacing-x": [{ "border-spacing-x": scaleUnambiguousSpacing() }],
|
|
2723
|
+
/**
|
|
2724
|
+
* Border Spacing Y
|
|
2725
|
+
* @see https://tailwindcss.com/docs/border-spacing
|
|
2726
|
+
*/
|
|
2727
|
+
"border-spacing-y": [{ "border-spacing-y": scaleUnambiguousSpacing() }],
|
|
2728
|
+
/**
|
|
2729
|
+
* Table Layout
|
|
2730
|
+
* @see https://tailwindcss.com/docs/table-layout
|
|
2731
|
+
*/
|
|
2732
|
+
"table-layout": [{ table: ["auto", "fixed"] }],
|
|
2733
|
+
/**
|
|
2734
|
+
* Caption Side
|
|
2735
|
+
* @see https://tailwindcss.com/docs/caption-side
|
|
2736
|
+
*/
|
|
2737
|
+
caption: [{ caption: ["top", "bottom"] }],
|
|
2738
|
+
/**
|
|
2739
|
+
* Transition Property
|
|
2740
|
+
* @see https://tailwindcss.com/docs/transition-property
|
|
2741
|
+
*/
|
|
2742
|
+
transition: [{ transition: [
|
|
2743
|
+
"",
|
|
2744
|
+
"all",
|
|
2745
|
+
"colors",
|
|
2746
|
+
"opacity",
|
|
2747
|
+
"shadow",
|
|
2748
|
+
"transform",
|
|
2749
|
+
"none",
|
|
2750
|
+
isArbitraryVariable,
|
|
2751
|
+
isArbitraryValue
|
|
2752
|
+
] }],
|
|
2753
|
+
/**
|
|
2754
|
+
* Transition Behavior
|
|
2755
|
+
* @see https://tailwindcss.com/docs/transition-behavior
|
|
2756
|
+
*/
|
|
2757
|
+
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
2758
|
+
/**
|
|
2759
|
+
* Transition Duration
|
|
2760
|
+
* @see https://tailwindcss.com/docs/transition-duration
|
|
2761
|
+
*/
|
|
2762
|
+
duration: [{ duration: [
|
|
2763
|
+
isNumber,
|
|
2764
|
+
"initial",
|
|
2765
|
+
isArbitraryVariable,
|
|
2766
|
+
isArbitraryValue
|
|
2767
|
+
] }],
|
|
2768
|
+
/**
|
|
2769
|
+
* Transition Timing Function
|
|
2770
|
+
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2771
|
+
*/
|
|
2772
|
+
ease: [{ ease: [
|
|
2773
|
+
"linear",
|
|
2774
|
+
"initial",
|
|
2775
|
+
themeEase,
|
|
2776
|
+
isArbitraryVariable,
|
|
2777
|
+
isArbitraryValue
|
|
2778
|
+
] }],
|
|
2779
|
+
/**
|
|
2780
|
+
* Transition Delay
|
|
2781
|
+
* @see https://tailwindcss.com/docs/transition-delay
|
|
2782
|
+
*/
|
|
2783
|
+
delay: [{ delay: [
|
|
2784
|
+
isNumber,
|
|
2785
|
+
isArbitraryVariable,
|
|
2786
|
+
isArbitraryValue
|
|
2787
|
+
] }],
|
|
2788
|
+
/**
|
|
2789
|
+
* Animation
|
|
2790
|
+
* @see https://tailwindcss.com/docs/animation
|
|
2791
|
+
*/
|
|
2792
|
+
animate: [{ animate: [
|
|
2793
|
+
"none",
|
|
2794
|
+
themeAnimate,
|
|
2795
|
+
isArbitraryVariable,
|
|
2796
|
+
isArbitraryValue
|
|
2797
|
+
] }],
|
|
2798
|
+
/**
|
|
2799
|
+
* Backface Visibility
|
|
2800
|
+
* @see https://tailwindcss.com/docs/backface-visibility
|
|
2801
|
+
*/
|
|
2802
|
+
backface: [{ backface: ["hidden", "visible"] }],
|
|
2803
|
+
/**
|
|
2804
|
+
* Perspective
|
|
2805
|
+
* @see https://tailwindcss.com/docs/perspective
|
|
2806
|
+
*/
|
|
2807
|
+
perspective: [{ perspective: [
|
|
2808
|
+
themePerspective,
|
|
2809
|
+
isArbitraryVariable,
|
|
2810
|
+
isArbitraryValue
|
|
2811
|
+
] }],
|
|
2812
|
+
/**
|
|
2813
|
+
* Perspective Origin
|
|
2814
|
+
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2815
|
+
*/
|
|
2816
|
+
"perspective-origin": [{ "perspective-origin": scalePositionWithArbitrary() }],
|
|
2817
|
+
/**
|
|
2818
|
+
* Rotate
|
|
2819
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
2820
|
+
*/
|
|
2821
|
+
rotate: [{ rotate: scaleRotate() }],
|
|
2822
|
+
/**
|
|
2823
|
+
* Rotate X
|
|
2824
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
2825
|
+
*/
|
|
2826
|
+
"rotate-x": [{ "rotate-x": scaleRotate() }],
|
|
2827
|
+
/**
|
|
2828
|
+
* Rotate Y
|
|
2829
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
2830
|
+
*/
|
|
2831
|
+
"rotate-y": [{ "rotate-y": scaleRotate() }],
|
|
2832
|
+
/**
|
|
2833
|
+
* Rotate Z
|
|
2834
|
+
* @see https://tailwindcss.com/docs/rotate
|
|
2835
|
+
*/
|
|
2836
|
+
"rotate-z": [{ "rotate-z": scaleRotate() }],
|
|
2837
|
+
/**
|
|
2838
|
+
* Scale
|
|
2839
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2840
|
+
*/
|
|
2841
|
+
scale: [{ scale: scaleScale() }],
|
|
2842
|
+
/**
|
|
2843
|
+
* Scale X
|
|
2844
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2845
|
+
*/
|
|
2846
|
+
"scale-x": [{ "scale-x": scaleScale() }],
|
|
2847
|
+
/**
|
|
2848
|
+
* Scale Y
|
|
2849
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2850
|
+
*/
|
|
2851
|
+
"scale-y": [{ "scale-y": scaleScale() }],
|
|
2852
|
+
/**
|
|
2853
|
+
* Scale Z
|
|
2854
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2855
|
+
*/
|
|
2856
|
+
"scale-z": [{ "scale-z": scaleScale() }],
|
|
2857
|
+
/**
|
|
2858
|
+
* Scale 3D
|
|
2859
|
+
* @see https://tailwindcss.com/docs/scale
|
|
2860
|
+
*/
|
|
2861
|
+
"scale-3d": ["scale-3d"],
|
|
2862
|
+
/**
|
|
2863
|
+
* Skew
|
|
2864
|
+
* @see https://tailwindcss.com/docs/skew
|
|
2865
|
+
*/
|
|
2866
|
+
skew: [{ skew: scaleSkew() }],
|
|
2867
|
+
/**
|
|
2868
|
+
* Skew X
|
|
2869
|
+
* @see https://tailwindcss.com/docs/skew
|
|
2870
|
+
*/
|
|
2871
|
+
"skew-x": [{ "skew-x": scaleSkew() }],
|
|
2872
|
+
/**
|
|
2873
|
+
* Skew Y
|
|
2874
|
+
* @see https://tailwindcss.com/docs/skew
|
|
2875
|
+
*/
|
|
2876
|
+
"skew-y": [{ "skew-y": scaleSkew() }],
|
|
2877
|
+
/**
|
|
2878
|
+
* Transform
|
|
2879
|
+
* @see https://tailwindcss.com/docs/transform
|
|
2880
|
+
*/
|
|
2881
|
+
transform: [{ transform: [
|
|
2882
|
+
isArbitraryVariable,
|
|
2883
|
+
isArbitraryValue,
|
|
2884
|
+
"",
|
|
2885
|
+
"none",
|
|
2886
|
+
"gpu",
|
|
2887
|
+
"cpu"
|
|
2888
|
+
] }],
|
|
2889
|
+
/**
|
|
2890
|
+
* Transform Origin
|
|
2891
|
+
* @see https://tailwindcss.com/docs/transform-origin
|
|
2892
|
+
*/
|
|
2893
|
+
"transform-origin": [{ origin: scalePositionWithArbitrary() }],
|
|
2894
|
+
/**
|
|
2895
|
+
* Transform Style
|
|
2896
|
+
* @see https://tailwindcss.com/docs/transform-style
|
|
2897
|
+
*/
|
|
2898
|
+
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
2899
|
+
/**
|
|
2900
|
+
* Translate
|
|
2901
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2902
|
+
*/
|
|
2903
|
+
translate: [{ translate: scaleTranslate() }],
|
|
2904
|
+
/**
|
|
2905
|
+
* Translate X
|
|
2906
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2907
|
+
*/
|
|
2908
|
+
"translate-x": [{ "translate-x": scaleTranslate() }],
|
|
2909
|
+
/**
|
|
2910
|
+
* Translate Y
|
|
2911
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2912
|
+
*/
|
|
2913
|
+
"translate-y": [{ "translate-y": scaleTranslate() }],
|
|
2914
|
+
/**
|
|
2915
|
+
* Translate Z
|
|
2916
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2917
|
+
*/
|
|
2918
|
+
"translate-z": [{ "translate-z": scaleTranslate() }],
|
|
2919
|
+
/**
|
|
2920
|
+
* Translate None
|
|
2921
|
+
* @see https://tailwindcss.com/docs/translate
|
|
2922
|
+
*/
|
|
2923
|
+
"translate-none": ["translate-none"],
|
|
2924
|
+
/**
|
|
2925
|
+
* Zoom
|
|
2926
|
+
* @see https://tailwindcss.com/docs/zoom
|
|
2927
|
+
*/
|
|
2928
|
+
zoom: [{ zoom: [
|
|
2929
|
+
isInteger,
|
|
2930
|
+
isArbitraryVariable,
|
|
2931
|
+
isArbitraryValue
|
|
2932
|
+
] }],
|
|
2933
|
+
/**
|
|
2934
|
+
* Accent Color
|
|
2935
|
+
* @see https://tailwindcss.com/docs/accent-color
|
|
2936
|
+
*/
|
|
2937
|
+
accent: [{ accent: scaleColor() }],
|
|
2938
|
+
/**
|
|
2939
|
+
* Appearance
|
|
2940
|
+
* @see https://tailwindcss.com/docs/appearance
|
|
2941
|
+
*/
|
|
2942
|
+
appearance: [{ appearance: ["none", "auto"] }],
|
|
2943
|
+
/**
|
|
2944
|
+
* Caret Color
|
|
2945
|
+
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2946
|
+
*/
|
|
2947
|
+
"caret-color": [{ caret: scaleColor() }],
|
|
2948
|
+
/**
|
|
2949
|
+
* Color Scheme
|
|
2950
|
+
* @see https://tailwindcss.com/docs/color-scheme
|
|
2951
|
+
*/
|
|
2952
|
+
"color-scheme": [{ scheme: [
|
|
2953
|
+
"normal",
|
|
2954
|
+
"dark",
|
|
2955
|
+
"light",
|
|
2956
|
+
"light-dark",
|
|
2957
|
+
"only-dark",
|
|
2958
|
+
"only-light"
|
|
2959
|
+
] }],
|
|
2960
|
+
/**
|
|
2961
|
+
* Cursor
|
|
2962
|
+
* @see https://tailwindcss.com/docs/cursor
|
|
2963
|
+
*/
|
|
2964
|
+
cursor: [{ cursor: [
|
|
2965
|
+
"auto",
|
|
2966
|
+
"default",
|
|
2967
|
+
"pointer",
|
|
2968
|
+
"wait",
|
|
2969
|
+
"text",
|
|
2970
|
+
"move",
|
|
2971
|
+
"help",
|
|
2972
|
+
"not-allowed",
|
|
2973
|
+
"none",
|
|
2974
|
+
"context-menu",
|
|
2975
|
+
"progress",
|
|
2976
|
+
"cell",
|
|
2977
|
+
"crosshair",
|
|
2978
|
+
"vertical-text",
|
|
2979
|
+
"alias",
|
|
2980
|
+
"copy",
|
|
2981
|
+
"no-drop",
|
|
2982
|
+
"grab",
|
|
2983
|
+
"grabbing",
|
|
2984
|
+
"all-scroll",
|
|
2985
|
+
"col-resize",
|
|
2986
|
+
"row-resize",
|
|
2987
|
+
"n-resize",
|
|
2988
|
+
"e-resize",
|
|
2989
|
+
"s-resize",
|
|
2990
|
+
"w-resize",
|
|
2991
|
+
"ne-resize",
|
|
2992
|
+
"nw-resize",
|
|
2993
|
+
"se-resize",
|
|
2994
|
+
"sw-resize",
|
|
2995
|
+
"ew-resize",
|
|
2996
|
+
"ns-resize",
|
|
2997
|
+
"nesw-resize",
|
|
2998
|
+
"nwse-resize",
|
|
2999
|
+
"zoom-in",
|
|
3000
|
+
"zoom-out",
|
|
3001
|
+
isArbitraryVariable,
|
|
3002
|
+
isArbitraryValue
|
|
3003
|
+
] }],
|
|
3004
|
+
/**
|
|
3005
|
+
* Field Sizing
|
|
3006
|
+
* @see https://tailwindcss.com/docs/field-sizing
|
|
3007
|
+
*/
|
|
3008
|
+
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
3009
|
+
/**
|
|
3010
|
+
* Pointer Events
|
|
3011
|
+
* @see https://tailwindcss.com/docs/pointer-events
|
|
3012
|
+
*/
|
|
3013
|
+
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
3014
|
+
/**
|
|
3015
|
+
* Resize
|
|
3016
|
+
* @see https://tailwindcss.com/docs/resize
|
|
3017
|
+
*/
|
|
3018
|
+
resize: [{ resize: [
|
|
3019
|
+
"none",
|
|
3020
|
+
"",
|
|
3021
|
+
"y",
|
|
3022
|
+
"x"
|
|
3023
|
+
] }],
|
|
3024
|
+
/**
|
|
3025
|
+
* Scroll Behavior
|
|
3026
|
+
* @see https://tailwindcss.com/docs/scroll-behavior
|
|
3027
|
+
*/
|
|
3028
|
+
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
3029
|
+
/**
|
|
3030
|
+
* Scrollbar Thumb Color
|
|
3031
|
+
* @see https://tailwindcss.com/docs/scrollbar-color
|
|
3032
|
+
*/
|
|
3033
|
+
"scrollbar-thumb-color": [{ "scrollbar-thumb": scaleColor() }],
|
|
3034
|
+
/**
|
|
3035
|
+
* Scrollbar Track Color
|
|
3036
|
+
* @see https://tailwindcss.com/docs/scrollbar-color
|
|
3037
|
+
*/
|
|
3038
|
+
"scrollbar-track-color": [{ "scrollbar-track": scaleColor() }],
|
|
3039
|
+
/**
|
|
3040
|
+
* Scrollbar Gutter
|
|
3041
|
+
* @see https://tailwindcss.com/docs/scrollbar-gutter
|
|
3042
|
+
*/
|
|
3043
|
+
"scrollbar-gutter": [{ "scrollbar-gutter": [
|
|
3044
|
+
"auto",
|
|
3045
|
+
"stable",
|
|
3046
|
+
"both"
|
|
3047
|
+
] }],
|
|
3048
|
+
/**
|
|
3049
|
+
* Scrollbar Width
|
|
3050
|
+
* @see https://tailwindcss.com/docs/scrollbar-width
|
|
3051
|
+
*/
|
|
3052
|
+
"scrollbar-w": [{ scrollbar: [
|
|
3053
|
+
"auto",
|
|
3054
|
+
"thin",
|
|
3055
|
+
"none"
|
|
3056
|
+
] }],
|
|
3057
|
+
/**
|
|
3058
|
+
* Scroll Margin
|
|
3059
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3060
|
+
*/
|
|
3061
|
+
"scroll-m": [{ "scroll-m": scaleUnambiguousSpacing() }],
|
|
3062
|
+
/**
|
|
3063
|
+
* Scroll Margin Inline
|
|
3064
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3065
|
+
*/
|
|
3066
|
+
"scroll-mx": [{ "scroll-mx": scaleUnambiguousSpacing() }],
|
|
3067
|
+
/**
|
|
3068
|
+
* Scroll Margin Block
|
|
3069
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3070
|
+
*/
|
|
3071
|
+
"scroll-my": [{ "scroll-my": scaleUnambiguousSpacing() }],
|
|
3072
|
+
/**
|
|
3073
|
+
* Scroll Margin Inline Start
|
|
3074
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3075
|
+
*/
|
|
3076
|
+
"scroll-ms": [{ "scroll-ms": scaleUnambiguousSpacing() }],
|
|
3077
|
+
/**
|
|
3078
|
+
* Scroll Margin Inline End
|
|
3079
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3080
|
+
*/
|
|
3081
|
+
"scroll-me": [{ "scroll-me": scaleUnambiguousSpacing() }],
|
|
3082
|
+
/**
|
|
3083
|
+
* Scroll Margin Block Start
|
|
3084
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3085
|
+
*/
|
|
3086
|
+
"scroll-mbs": [{ "scroll-mbs": scaleUnambiguousSpacing() }],
|
|
3087
|
+
/**
|
|
3088
|
+
* Scroll Margin Block End
|
|
3089
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3090
|
+
*/
|
|
3091
|
+
"scroll-mbe": [{ "scroll-mbe": scaleUnambiguousSpacing() }],
|
|
3092
|
+
/**
|
|
3093
|
+
* Scroll Margin Top
|
|
3094
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3095
|
+
*/
|
|
3096
|
+
"scroll-mt": [{ "scroll-mt": scaleUnambiguousSpacing() }],
|
|
3097
|
+
/**
|
|
3098
|
+
* Scroll Margin Right
|
|
3099
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3100
|
+
*/
|
|
3101
|
+
"scroll-mr": [{ "scroll-mr": scaleUnambiguousSpacing() }],
|
|
3102
|
+
/**
|
|
3103
|
+
* Scroll Margin Bottom
|
|
3104
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3105
|
+
*/
|
|
3106
|
+
"scroll-mb": [{ "scroll-mb": scaleUnambiguousSpacing() }],
|
|
3107
|
+
/**
|
|
3108
|
+
* Scroll Margin Left
|
|
3109
|
+
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3110
|
+
*/
|
|
3111
|
+
"scroll-ml": [{ "scroll-ml": scaleUnambiguousSpacing() }],
|
|
3112
|
+
/**
|
|
3113
|
+
* Scroll Padding
|
|
3114
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3115
|
+
*/
|
|
3116
|
+
"scroll-p": [{ "scroll-p": scaleUnambiguousSpacing() }],
|
|
3117
|
+
/**
|
|
3118
|
+
* Scroll Padding Inline
|
|
3119
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3120
|
+
*/
|
|
3121
|
+
"scroll-px": [{ "scroll-px": scaleUnambiguousSpacing() }],
|
|
3122
|
+
/**
|
|
3123
|
+
* Scroll Padding Block
|
|
3124
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3125
|
+
*/
|
|
3126
|
+
"scroll-py": [{ "scroll-py": scaleUnambiguousSpacing() }],
|
|
3127
|
+
/**
|
|
3128
|
+
* Scroll Padding Inline Start
|
|
3129
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3130
|
+
*/
|
|
3131
|
+
"scroll-ps": [{ "scroll-ps": scaleUnambiguousSpacing() }],
|
|
3132
|
+
/**
|
|
3133
|
+
* Scroll Padding Inline End
|
|
3134
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3135
|
+
*/
|
|
3136
|
+
"scroll-pe": [{ "scroll-pe": scaleUnambiguousSpacing() }],
|
|
3137
|
+
/**
|
|
3138
|
+
* Scroll Padding Block Start
|
|
3139
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3140
|
+
*/
|
|
3141
|
+
"scroll-pbs": [{ "scroll-pbs": scaleUnambiguousSpacing() }],
|
|
3142
|
+
/**
|
|
3143
|
+
* Scroll Padding Block End
|
|
3144
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3145
|
+
*/
|
|
3146
|
+
"scroll-pbe": [{ "scroll-pbe": scaleUnambiguousSpacing() }],
|
|
3147
|
+
/**
|
|
3148
|
+
* Scroll Padding Top
|
|
3149
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3150
|
+
*/
|
|
3151
|
+
"scroll-pt": [{ "scroll-pt": scaleUnambiguousSpacing() }],
|
|
3152
|
+
/**
|
|
3153
|
+
* Scroll Padding Right
|
|
3154
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3155
|
+
*/
|
|
3156
|
+
"scroll-pr": [{ "scroll-pr": scaleUnambiguousSpacing() }],
|
|
3157
|
+
/**
|
|
3158
|
+
* Scroll Padding Bottom
|
|
3159
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3160
|
+
*/
|
|
3161
|
+
"scroll-pb": [{ "scroll-pb": scaleUnambiguousSpacing() }],
|
|
3162
|
+
/**
|
|
3163
|
+
* Scroll Padding Left
|
|
3164
|
+
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3165
|
+
*/
|
|
3166
|
+
"scroll-pl": [{ "scroll-pl": scaleUnambiguousSpacing() }],
|
|
3167
|
+
/**
|
|
3168
|
+
* Scroll Snap Align
|
|
3169
|
+
* @see https://tailwindcss.com/docs/scroll-snap-align
|
|
3170
|
+
*/
|
|
3171
|
+
"snap-align": [{ snap: [
|
|
3172
|
+
"start",
|
|
3173
|
+
"end",
|
|
3174
|
+
"center",
|
|
3175
|
+
"align-none"
|
|
3176
|
+
] }],
|
|
3177
|
+
/**
|
|
3178
|
+
* Scroll Snap Stop
|
|
3179
|
+
* @see https://tailwindcss.com/docs/scroll-snap-stop
|
|
3180
|
+
*/
|
|
3181
|
+
"snap-stop": [{ snap: ["normal", "always"] }],
|
|
3182
|
+
/**
|
|
3183
|
+
* Scroll Snap Type
|
|
3184
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
3185
|
+
*/
|
|
3186
|
+
"snap-type": [{ snap: [
|
|
3187
|
+
"none",
|
|
3188
|
+
"x",
|
|
3189
|
+
"y",
|
|
3190
|
+
"both"
|
|
3191
|
+
] }],
|
|
3192
|
+
/**
|
|
3193
|
+
* Scroll Snap Type Strictness
|
|
3194
|
+
* @see https://tailwindcss.com/docs/scroll-snap-type
|
|
3195
|
+
*/
|
|
3196
|
+
"snap-strictness": [{ snap: ["mandatory", "proximity"] }],
|
|
3197
|
+
/**
|
|
3198
|
+
* Touch Action
|
|
3199
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3200
|
+
*/
|
|
3201
|
+
touch: [{ touch: [
|
|
3202
|
+
"auto",
|
|
3203
|
+
"none",
|
|
3204
|
+
"manipulation"
|
|
3205
|
+
] }],
|
|
3206
|
+
/**
|
|
3207
|
+
* Touch Action X
|
|
3208
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3209
|
+
*/
|
|
3210
|
+
"touch-x": [{ "touch-pan": [
|
|
3211
|
+
"x",
|
|
3212
|
+
"left",
|
|
3213
|
+
"right"
|
|
3214
|
+
] }],
|
|
3215
|
+
/**
|
|
3216
|
+
* Touch Action Y
|
|
3217
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3218
|
+
*/
|
|
3219
|
+
"touch-y": [{ "touch-pan": [
|
|
3220
|
+
"y",
|
|
3221
|
+
"up",
|
|
3222
|
+
"down"
|
|
3223
|
+
] }],
|
|
3224
|
+
/**
|
|
3225
|
+
* Touch Action Pinch Zoom
|
|
3226
|
+
* @see https://tailwindcss.com/docs/touch-action
|
|
3227
|
+
*/
|
|
3228
|
+
"touch-pz": ["touch-pinch-zoom"],
|
|
3229
|
+
/**
|
|
3230
|
+
* User Select
|
|
3231
|
+
* @see https://tailwindcss.com/docs/user-select
|
|
3232
|
+
*/
|
|
3233
|
+
select: [{ select: [
|
|
3234
|
+
"none",
|
|
3235
|
+
"text",
|
|
3236
|
+
"all",
|
|
3237
|
+
"auto"
|
|
3238
|
+
] }],
|
|
3239
|
+
/**
|
|
3240
|
+
* Will Change
|
|
3241
|
+
* @see https://tailwindcss.com/docs/will-change
|
|
3242
|
+
*/
|
|
3243
|
+
"will-change": [{ "will-change": [
|
|
3244
|
+
"auto",
|
|
3245
|
+
"scroll",
|
|
3246
|
+
"contents",
|
|
3247
|
+
"transform",
|
|
3248
|
+
isArbitraryVariable,
|
|
3249
|
+
isArbitraryValue
|
|
3250
|
+
] }],
|
|
3251
|
+
/**
|
|
3252
|
+
* Fill
|
|
3253
|
+
* @see https://tailwindcss.com/docs/fill
|
|
3254
|
+
*/
|
|
3255
|
+
fill: [{ fill: ["none", ...scaleColor()] }],
|
|
3256
|
+
/**
|
|
3257
|
+
* Stroke Width
|
|
3258
|
+
* @see https://tailwindcss.com/docs/stroke-width
|
|
3259
|
+
*/
|
|
3260
|
+
"stroke-w": [{ stroke: [
|
|
3261
|
+
isNumber,
|
|
3262
|
+
isArbitraryVariableLength,
|
|
3263
|
+
isArbitraryLength,
|
|
3264
|
+
isArbitraryNumber
|
|
3265
|
+
] }],
|
|
3266
|
+
/**
|
|
3267
|
+
* Stroke
|
|
3268
|
+
* @see https://tailwindcss.com/docs/stroke
|
|
3269
|
+
*/
|
|
3270
|
+
stroke: [{ stroke: ["none", ...scaleColor()] }],
|
|
3271
|
+
/**
|
|
3272
|
+
* Forced Color Adjust
|
|
3273
|
+
* @see https://tailwindcss.com/docs/forced-color-adjust
|
|
3274
|
+
*/
|
|
3275
|
+
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
3276
|
+
},
|
|
3277
|
+
conflictingClassGroups: {
|
|
3278
|
+
"container-named": ["container-type"],
|
|
3279
|
+
overflow: ["overflow-x", "overflow-y"],
|
|
3280
|
+
overscroll: ["overscroll-x", "overscroll-y"],
|
|
3281
|
+
inset: [
|
|
3282
|
+
"inset-x",
|
|
3283
|
+
"inset-y",
|
|
3284
|
+
"inset-bs",
|
|
3285
|
+
"inset-be",
|
|
3286
|
+
"start",
|
|
3287
|
+
"end",
|
|
3288
|
+
"top",
|
|
3289
|
+
"right",
|
|
3290
|
+
"bottom",
|
|
3291
|
+
"left"
|
|
3292
|
+
],
|
|
3293
|
+
"inset-x": ["right", "left"],
|
|
3294
|
+
"inset-y": ["top", "bottom"],
|
|
3295
|
+
flex: [
|
|
3296
|
+
"basis",
|
|
3297
|
+
"grow",
|
|
3298
|
+
"shrink"
|
|
3299
|
+
],
|
|
3300
|
+
gap: ["gap-x", "gap-y"],
|
|
3301
|
+
p: [
|
|
3302
|
+
"px",
|
|
3303
|
+
"py",
|
|
3304
|
+
"ps",
|
|
3305
|
+
"pe",
|
|
3306
|
+
"pbs",
|
|
3307
|
+
"pbe",
|
|
3308
|
+
"pt",
|
|
3309
|
+
"pr",
|
|
3310
|
+
"pb",
|
|
3311
|
+
"pl"
|
|
3312
|
+
],
|
|
3313
|
+
px: ["pr", "pl"],
|
|
3314
|
+
py: ["pt", "pb"],
|
|
3315
|
+
m: [
|
|
3316
|
+
"mx",
|
|
3317
|
+
"my",
|
|
3318
|
+
"ms",
|
|
3319
|
+
"me",
|
|
3320
|
+
"mbs",
|
|
3321
|
+
"mbe",
|
|
3322
|
+
"mt",
|
|
3323
|
+
"mr",
|
|
3324
|
+
"mb",
|
|
3325
|
+
"ml"
|
|
3326
|
+
],
|
|
3327
|
+
mx: ["mr", "ml"],
|
|
3328
|
+
my: ["mt", "mb"],
|
|
3329
|
+
size: ["w", "h"],
|
|
3330
|
+
"font-size": ["leading"],
|
|
3331
|
+
"fvn-normal": [
|
|
3332
|
+
"fvn-ordinal",
|
|
3333
|
+
"fvn-slashed-zero",
|
|
3334
|
+
"fvn-figure",
|
|
3335
|
+
"fvn-spacing",
|
|
3336
|
+
"fvn-fraction"
|
|
3337
|
+
],
|
|
3338
|
+
"fvn-ordinal": ["fvn-normal"],
|
|
3339
|
+
"fvn-slashed-zero": ["fvn-normal"],
|
|
3340
|
+
"fvn-figure": ["fvn-normal"],
|
|
3341
|
+
"fvn-spacing": ["fvn-normal"],
|
|
3342
|
+
"fvn-fraction": ["fvn-normal"],
|
|
3343
|
+
"line-clamp": ["display", "overflow"],
|
|
3344
|
+
rounded: [
|
|
3345
|
+
"rounded-s",
|
|
3346
|
+
"rounded-e",
|
|
3347
|
+
"rounded-t",
|
|
3348
|
+
"rounded-r",
|
|
3349
|
+
"rounded-b",
|
|
3350
|
+
"rounded-l",
|
|
3351
|
+
"rounded-ss",
|
|
3352
|
+
"rounded-se",
|
|
3353
|
+
"rounded-ee",
|
|
3354
|
+
"rounded-es",
|
|
3355
|
+
"rounded-tl",
|
|
3356
|
+
"rounded-tr",
|
|
3357
|
+
"rounded-br",
|
|
3358
|
+
"rounded-bl"
|
|
3359
|
+
],
|
|
3360
|
+
"rounded-s": ["rounded-ss", "rounded-es"],
|
|
3361
|
+
"rounded-e": ["rounded-se", "rounded-ee"],
|
|
3362
|
+
"rounded-t": ["rounded-tl", "rounded-tr"],
|
|
3363
|
+
"rounded-r": ["rounded-tr", "rounded-br"],
|
|
3364
|
+
"rounded-b": ["rounded-br", "rounded-bl"],
|
|
3365
|
+
"rounded-l": ["rounded-tl", "rounded-bl"],
|
|
3366
|
+
"border-spacing": ["border-spacing-x", "border-spacing-y"],
|
|
3367
|
+
"border-w": [
|
|
3368
|
+
"border-w-x",
|
|
3369
|
+
"border-w-y",
|
|
3370
|
+
"border-w-s",
|
|
3371
|
+
"border-w-e",
|
|
3372
|
+
"border-w-bs",
|
|
3373
|
+
"border-w-be",
|
|
3374
|
+
"border-w-t",
|
|
3375
|
+
"border-w-r",
|
|
3376
|
+
"border-w-b",
|
|
3377
|
+
"border-w-l"
|
|
3378
|
+
],
|
|
3379
|
+
"border-w-x": ["border-w-r", "border-w-l"],
|
|
3380
|
+
"border-w-y": ["border-w-t", "border-w-b"],
|
|
3381
|
+
"border-color": [
|
|
3382
|
+
"border-color-x",
|
|
3383
|
+
"border-color-y",
|
|
3384
|
+
"border-color-s",
|
|
3385
|
+
"border-color-e",
|
|
3386
|
+
"border-color-bs",
|
|
3387
|
+
"border-color-be",
|
|
3388
|
+
"border-color-t",
|
|
3389
|
+
"border-color-r",
|
|
3390
|
+
"border-color-b",
|
|
3391
|
+
"border-color-l"
|
|
3392
|
+
],
|
|
3393
|
+
"border-color-x": ["border-color-r", "border-color-l"],
|
|
3394
|
+
"border-color-y": ["border-color-t", "border-color-b"],
|
|
3395
|
+
translate: [
|
|
3396
|
+
"translate-x",
|
|
3397
|
+
"translate-y",
|
|
3398
|
+
"translate-none"
|
|
3399
|
+
],
|
|
3400
|
+
"translate-none": [
|
|
3401
|
+
"translate",
|
|
3402
|
+
"translate-x",
|
|
3403
|
+
"translate-y",
|
|
3404
|
+
"translate-z"
|
|
3405
|
+
],
|
|
3406
|
+
"scroll-m": [
|
|
3407
|
+
"scroll-mx",
|
|
3408
|
+
"scroll-my",
|
|
3409
|
+
"scroll-ms",
|
|
3410
|
+
"scroll-me",
|
|
3411
|
+
"scroll-mbs",
|
|
3412
|
+
"scroll-mbe",
|
|
3413
|
+
"scroll-mt",
|
|
3414
|
+
"scroll-mr",
|
|
3415
|
+
"scroll-mb",
|
|
3416
|
+
"scroll-ml"
|
|
3417
|
+
],
|
|
3418
|
+
"scroll-mx": ["scroll-mr", "scroll-ml"],
|
|
3419
|
+
"scroll-my": ["scroll-mt", "scroll-mb"],
|
|
3420
|
+
"scroll-p": [
|
|
3421
|
+
"scroll-px",
|
|
3422
|
+
"scroll-py",
|
|
3423
|
+
"scroll-ps",
|
|
3424
|
+
"scroll-pe",
|
|
3425
|
+
"scroll-pbs",
|
|
3426
|
+
"scroll-pbe",
|
|
3427
|
+
"scroll-pt",
|
|
3428
|
+
"scroll-pr",
|
|
3429
|
+
"scroll-pb",
|
|
3430
|
+
"scroll-pl"
|
|
3431
|
+
],
|
|
3432
|
+
"scroll-px": ["scroll-pr", "scroll-pl"],
|
|
3433
|
+
"scroll-py": ["scroll-pt", "scroll-pb"],
|
|
3434
|
+
touch: [
|
|
3435
|
+
"touch-x",
|
|
3436
|
+
"touch-y",
|
|
3437
|
+
"touch-pz"
|
|
3438
|
+
],
|
|
3439
|
+
"touch-x": ["touch"],
|
|
3440
|
+
"touch-y": ["touch"],
|
|
3441
|
+
"touch-pz": ["touch"]
|
|
3442
|
+
},
|
|
3443
|
+
conflictingClassGroupModifiers: { "font-size": ["leading"] },
|
|
3444
|
+
postfixLookupClassGroups: ["container-type"],
|
|
3445
|
+
orderSensitiveModifiers: [
|
|
3446
|
+
"*",
|
|
3447
|
+
"**",
|
|
3448
|
+
"after",
|
|
3449
|
+
"backdrop",
|
|
3450
|
+
"before",
|
|
3451
|
+
"details-content",
|
|
3452
|
+
"file",
|
|
3453
|
+
"first-letter",
|
|
3454
|
+
"first-line",
|
|
3455
|
+
"marker",
|
|
3456
|
+
"placeholder",
|
|
3457
|
+
"selection"
|
|
3458
|
+
]
|
|
3459
|
+
};
|
|
3460
|
+
};
|
|
3461
|
+
const twMerge = createTailwindMerge(getDefaultConfig);
|
|
3462
|
+
/**
|
|
3463
|
+
* Max distinct interpolation tuples remembered per call site. Real tagged-template sites cycle
|
|
3464
|
+
* through a tiny set of dynamic values (a boolean toggling one class, a small variant union), so
|
|
3465
|
+
* this stays small; the bound only guards a site that interpolates high-cardinality values (e.g. a
|
|
3466
|
+
* live color) from growing its per-site list without limit.
|
|
3467
|
+
*/
|
|
3468
|
+
const TEMPLATE_SITE_CACHE = 8;
|
|
3469
|
+
const templateCache = /* @__PURE__ */ new WeakMap();
|
|
3470
|
+
const mergeTemplate = (strings, values) => {
|
|
3471
|
+
const valueCount = values.length;
|
|
3472
|
+
let isCacheable = true;
|
|
3473
|
+
for (let index = 0; index < valueCount; index++) {
|
|
3474
|
+
const value = values[index];
|
|
3475
|
+
if (value && typeof value !== "string") {
|
|
3476
|
+
isCacheable = false;
|
|
3477
|
+
break;
|
|
3478
|
+
}
|
|
3479
|
+
}
|
|
3480
|
+
if (isCacheable) {
|
|
3481
|
+
const entries = templateCache.get(strings);
|
|
3482
|
+
if (entries !== void 0) for (let entryIndex = 0; entryIndex < entries.length; entryIndex++) {
|
|
3483
|
+
const entry = entries[entryIndex];
|
|
3484
|
+
const entryValues = entry.values;
|
|
3485
|
+
let isMatch = true;
|
|
3486
|
+
for (let index = 0; index < valueCount; index++) if (entryValues[index] !== values[index]) {
|
|
3487
|
+
isMatch = false;
|
|
3488
|
+
break;
|
|
3489
|
+
}
|
|
3490
|
+
if (isMatch) return entry.result;
|
|
3491
|
+
}
|
|
3492
|
+
}
|
|
3493
|
+
let joined = strings[0];
|
|
3494
|
+
for (let index = 0; index < valueCount; index++) {
|
|
3495
|
+
const value = values[index];
|
|
3496
|
+
if (value) joined += typeof value === "string" ? value : resolveClassValue(value);
|
|
3497
|
+
joined += strings[index + 1];
|
|
3498
|
+
}
|
|
3499
|
+
const result = twMerge.mergeString(joined);
|
|
3500
|
+
if (isCacheable) {
|
|
3501
|
+
let entries = templateCache.get(strings);
|
|
3502
|
+
if (entries === void 0) {
|
|
3503
|
+
entries = [];
|
|
3504
|
+
templateCache.set(strings, entries);
|
|
3505
|
+
}
|
|
3506
|
+
if (entries.length >= TEMPLATE_SITE_CACHE) entries.shift();
|
|
3507
|
+
entries.push({
|
|
3508
|
+
values,
|
|
3509
|
+
result
|
|
3510
|
+
});
|
|
3511
|
+
}
|
|
3512
|
+
return result;
|
|
3513
|
+
};
|
|
3514
|
+
const IS_V8 = (() => {
|
|
3515
|
+
const error = /* @__PURE__ */ new Error();
|
|
3516
|
+
return !("line" in error) && !("lineNumber" in error);
|
|
3517
|
+
})();
|
|
3518
|
+
const ARG_CACHE_BUCKET_SIZE = 64;
|
|
3519
|
+
/** First-arg buckets kept before a generation rotates into `previousArgCache`. */
|
|
3520
|
+
const ARG_CACHE_SIZE = 500;
|
|
3521
|
+
let argCache = /* @__PURE__ */ new Map();
|
|
3522
|
+
let previousArgCache = /* @__PURE__ */ new Map();
|
|
3523
|
+
let argCacheCount = 0;
|
|
3524
|
+
const mergeVariadicCached = (inputs) => {
|
|
3525
|
+
const length = inputs.length;
|
|
3526
|
+
let firstKey = "";
|
|
3527
|
+
let firstKeyIndex = -1;
|
|
3528
|
+
let truthyStringCount = 0;
|
|
3529
|
+
let everyTruthyIsString = true;
|
|
3530
|
+
for (let index = 0; index < length; index++) {
|
|
3531
|
+
const item = inputs[index];
|
|
3532
|
+
if (!item) continue;
|
|
3533
|
+
if (typeof item !== "string") {
|
|
3534
|
+
everyTruthyIsString = false;
|
|
3535
|
+
break;
|
|
3536
|
+
}
|
|
3537
|
+
if (firstKeyIndex === -1) {
|
|
3538
|
+
firstKey = item;
|
|
3539
|
+
firstKeyIndex = index;
|
|
3540
|
+
}
|
|
3541
|
+
truthyStringCount++;
|
|
3542
|
+
}
|
|
3543
|
+
if (everyTruthyIsString) {
|
|
3544
|
+
if (truthyStringCount === 0) return "";
|
|
3545
|
+
if (truthyStringCount === 1) return twMerge.mergeString(firstKey);
|
|
3546
|
+
let bucket = argCache.get(firstKey);
|
|
3547
|
+
if (bucket === void 0) bucket = previousArgCache.get(firstKey);
|
|
3548
|
+
if (bucket !== void 0) for (let entryIndex = 0; entryIndex < bucket.length; entryIndex++) {
|
|
3549
|
+
const entry = bucket[entryIndex];
|
|
3550
|
+
const rest = entry.rest;
|
|
3551
|
+
if (rest.length !== truthyStringCount - 1) continue;
|
|
3552
|
+
let restIndex = 0;
|
|
3553
|
+
let isMatch = true;
|
|
3554
|
+
for (let index = firstKeyIndex + 1; index < length; index++) {
|
|
3555
|
+
const item = inputs[index];
|
|
3556
|
+
if (!item) continue;
|
|
3557
|
+
if (item !== rest[restIndex++]) {
|
|
3558
|
+
isMatch = false;
|
|
3559
|
+
break;
|
|
3560
|
+
}
|
|
3561
|
+
}
|
|
3562
|
+
if (isMatch) return entry.result;
|
|
3563
|
+
}
|
|
3564
|
+
let joined = firstKey;
|
|
3565
|
+
const rest = [];
|
|
3566
|
+
for (let index = firstKeyIndex + 1; index < length; index++) {
|
|
3567
|
+
const item = inputs[index];
|
|
3568
|
+
if (!item) continue;
|
|
3569
|
+
joined += " " + item;
|
|
3570
|
+
rest.push(item);
|
|
3571
|
+
}
|
|
3572
|
+
const result = twMerge.mergeString(joined);
|
|
3573
|
+
let target = argCache.get(firstKey);
|
|
3574
|
+
if (target === void 0) {
|
|
3575
|
+
target = [];
|
|
3576
|
+
argCache.set(firstKey, target);
|
|
3577
|
+
}
|
|
3578
|
+
if (target.length >= ARG_CACHE_BUCKET_SIZE) target.shift();
|
|
3579
|
+
target.push({
|
|
3580
|
+
rest,
|
|
3581
|
+
result
|
|
3582
|
+
});
|
|
3583
|
+
if (++argCacheCount > ARG_CACHE_SIZE) {
|
|
3584
|
+
argCacheCount = 0;
|
|
3585
|
+
previousArgCache = argCache;
|
|
3586
|
+
argCache = /* @__PURE__ */ new Map();
|
|
3587
|
+
}
|
|
3588
|
+
return result;
|
|
3589
|
+
}
|
|
3590
|
+
let result = "";
|
|
3591
|
+
for (let index = 0; index < length; index++) {
|
|
3592
|
+
const item = inputs[index];
|
|
3593
|
+
if (!item) continue;
|
|
3594
|
+
const resolved = typeof item === "string" ? item : resolveClassValue(item);
|
|
3595
|
+
if (resolved) {
|
|
3596
|
+
if (result) result += " ";
|
|
3597
|
+
result += resolved;
|
|
3598
|
+
}
|
|
3599
|
+
}
|
|
3600
|
+
return twMerge.mergeString(result);
|
|
3601
|
+
};
|
|
3602
|
+
const cn = function() {
|
|
3603
|
+
const first = arguments[0];
|
|
3604
|
+
if (Array.isArray(first) && "raw" in first) {
|
|
3605
|
+
const strings = first;
|
|
3606
|
+
const length = arguments.length;
|
|
3607
|
+
const values = [];
|
|
3608
|
+
for (let index = 1; index < length; index++) values.push(arguments[index]);
|
|
3609
|
+
return mergeTemplate(strings, values);
|
|
3610
|
+
}
|
|
3611
|
+
const length = arguments.length;
|
|
3612
|
+
if (length === 1) return typeof first === "string" ? twMerge.mergeString(first) : twMerge.mergeString(resolveClassValue(first));
|
|
3613
|
+
if (IS_V8) {
|
|
3614
|
+
const inputs = [];
|
|
3615
|
+
for (let index = 0; index < length; index++) inputs.push(arguments[index]);
|
|
3616
|
+
return mergeVariadicCached(inputs);
|
|
3617
|
+
}
|
|
3618
|
+
let result = "";
|
|
3619
|
+
for (let index = 0; index < length; index++) {
|
|
3620
|
+
const item = arguments[index];
|
|
3621
|
+
if (!item) continue;
|
|
3622
|
+
const resolved = typeof item === "string" ? item : resolveClassValue(item);
|
|
3623
|
+
if (resolved) {
|
|
3624
|
+
if (result) result += " ";
|
|
3625
|
+
result += resolved;
|
|
3626
|
+
}
|
|
3627
|
+
}
|
|
3628
|
+
return twMerge.mergeString(result);
|
|
3629
|
+
};
|
|
3630
|
+
//#endregion
|
|
3631
|
+
export { cn as t };
|