@frontfriend/tailwind 4.0.9 → 4.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +36 -32
- package/dist/components-config-schema.js +1 -1
- package/dist/components-config-schema.js.map +2 -2
- package/dist/ffdc.js +1 -1
- package/dist/ffdc.js.map +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +2 -2
- package/dist/lib/core/components-config-schema.js +1 -1
- package/dist/lib/core/components-config-schema.js.map +2 -2
- package/dist/lib/core/default-config-data.js +1 -1
- package/dist/lib/core/default-config-data.js.map +2 -2
- package/dist/lib/core/default-config.js +1 -1
- package/dist/lib/core/default-config.js.map +2 -2
- package/dist/lib/core/token-processor.js +1 -1
- package/dist/lib/core/token-processor.js.map +2 -2
- package/dist/next.js +1 -1
- package/dist/next.js.map +2 -2
- package/dist/vite.js +5 -5
- package/dist/vite.js.map +3 -3
- package/dist/vite.mjs +2 -2
- package/dist/vite.mjs.map +3 -3
- package/package.json +1 -1
- package/scripts/master-components-config.json +1488 -796
- package/scripts/update-default-config-data.js +27 -15
|
@@ -235,13 +235,16 @@ const MINIMAL_V4_FALLBACKS = {
|
|
|
235
235
|
handle: 'bg-border focus-visible:ring-ring relative flex w-px items-center justify-center',
|
|
236
236
|
},
|
|
237
237
|
stepper: {
|
|
238
|
-
root: '
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
238
|
+
root: 'block w-full',
|
|
239
|
+
nav: 'group/stepper-nav inline-flex data-[orientation=horizontal]:w-full data-[orientation=horizontal]:flex-row data-[orientation=vertical]:flex-col',
|
|
240
|
+
item: 'group/step flex items-center justify-center not-last:flex-1 data-[disabled]:pointer-events-none data-[disabled]:opacity-60 group-data-[orientation=horizontal]/stepper-nav:flex-row group-data-[orientation=vertical]/stepper-nav:flex-col',
|
|
241
|
+
trigger: 'focus-visible:border-ring focus-visible:ring-ring/50 inline-flex cursor-pointer items-center gap-2.5 rounded-full outline-none focus-visible:z-10 focus-visible:ring-3 disabled:pointer-events-none disabled:opacity-60',
|
|
242
|
+
indicator: 'border-background bg-muted text-foreground data-[state=completed]:bg-primary data-[state=completed]:text-primary-foreground data-[state=active]:bg-primary data-[state=active]:text-primary-foreground relative flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full text-xs',
|
|
243
|
+
separator: 'bg-muted group-data-[state=completed]/step:bg-primary data-[state=completed]:bg-primary m-0.5 rounded-sm group-data-[orientation=horizontal]/stepper-nav:h-0.5 group-data-[orientation=horizontal]/stepper-nav:flex-1 group-data-[orientation=vertical]/stepper-nav:h-12 group-data-[orientation=vertical]/stepper-nav:w-0.5',
|
|
244
|
+
title: 'text-sm leading-none font-medium text-foreground',
|
|
245
|
+
description: 'text-sm text-muted-foreground',
|
|
246
|
+
panel: 'w-full',
|
|
247
|
+
content: 'w-full',
|
|
245
248
|
},
|
|
246
249
|
themeprovider: { root: 'contents' },
|
|
247
250
|
themepicker: {
|
|
@@ -587,14 +590,23 @@ function neutralizeClassToken(token) {
|
|
|
587
590
|
if (DIRECT_CLASS_MAP[token]) return DIRECT_CLASS_MAP[token];
|
|
588
591
|
|
|
589
592
|
const { prefix, base } = splitVariants(token);
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
593
|
+
// Peel off an opacity suffix (e.g. `/50`)
|
|
594
|
+
const opacityMatch = base.match(/^(.*?)(\/\d{1,3})$/);
|
|
595
|
+
const core = opacityMatch ? opacityMatch[1] : base;
|
|
596
|
+
const opacity = opacityMatch ? opacityMatch[2] : '';
|
|
597
|
+
|
|
598
|
+
let mappedCore = DIRECT_CLASS_MAP[core]
|
|
599
|
+
|| mapBgClass(core, prefix)
|
|
600
|
+
|| mapTextClass(core, prefix)
|
|
601
|
+
|| mapBorderClass(core, prefix)
|
|
602
|
+
|| mapRadiusClass(core)
|
|
603
|
+
|| core;
|
|
604
|
+
|
|
605
|
+
// An explicit opacity on the source token wins over any tone-derived opacity
|
|
606
|
+
// that withVariantTone may have appended (e.g. bg-primary/90).
|
|
607
|
+
if (opacity) mappedCore = mappedCore.replace(/\/\d{1,3}$/, '') + opacity;
|
|
608
|
+
|
|
609
|
+
return `${prefix}${mappedCore}`;
|
|
598
610
|
}
|
|
599
611
|
|
|
600
612
|
function neutralizeClassString(value) {
|