@mastra/playground-ui 5.1.4-alpha.3 → 5.1.4-alpha.4
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/index.cjs.js +33 -277
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +33 -277
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/syntax-highlighter.d.ts +4 -0
- package/dist/src/components/ui/form.d.ts +1 -1
- package/dist/src/components/ui/resizable.d.ts +1 -1
- package/dist/src/components/ui/syntax-highlighter.d.ts +6 -0
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -571,8 +571,8 @@ const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
|
|
|
571
571
|
const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
572
572
|
const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
573
573
|
const isFraction = value => fractionRegex.test(value);
|
|
574
|
-
const isNumber = value =>
|
|
575
|
-
const isInteger = value =>
|
|
574
|
+
const isNumber = value => Boolean(value) && !Number.isNaN(Number(value));
|
|
575
|
+
const isInteger = value => Boolean(value) && Number.isInteger(Number(value));
|
|
576
576
|
const isPercent = value => value.endsWith('%') && isNumber(value.slice(0, -1));
|
|
577
577
|
const isTshirtSize = value => tshirtUnitRegex.test(value);
|
|
578
578
|
const isAny = () => true;
|
|
@@ -591,7 +591,7 @@ const isArbitraryLength = value => getIsArbitraryValue(value, isLabelLength, isL
|
|
|
591
591
|
const isArbitraryNumber = value => getIsArbitraryValue(value, isLabelNumber, isNumber);
|
|
592
592
|
const isArbitraryPosition = value => getIsArbitraryValue(value, isLabelPosition, isNever);
|
|
593
593
|
const isArbitraryImage = value => getIsArbitraryValue(value, isLabelImage, isImage);
|
|
594
|
-
const isArbitraryShadow = value => getIsArbitraryValue(value,
|
|
594
|
+
const isArbitraryShadow = value => getIsArbitraryValue(value, isNever, isShadow);
|
|
595
595
|
const isArbitraryVariable = value => arbitraryVariableRegex.test(value);
|
|
596
596
|
const isArbitraryVariableLength = value => getIsArbitraryVariable(value, isLabelLength);
|
|
597
597
|
const isArbitraryVariableFamilyName = value => getIsArbitraryVariable(value, isLabelFamilyName);
|
|
@@ -621,9 +621,11 @@ const getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) =>
|
|
|
621
621
|
return false;
|
|
622
622
|
};
|
|
623
623
|
// Labels
|
|
624
|
-
const isLabelPosition = label => label === 'position'
|
|
625
|
-
const
|
|
626
|
-
const
|
|
624
|
+
const isLabelPosition = label => label === 'position';
|
|
625
|
+
const imageLabels = /*#__PURE__*/new Set(['image', 'url']);
|
|
626
|
+
const isLabelImage = label => imageLabels.has(label);
|
|
627
|
+
const sizeLabels = /*#__PURE__*/new Set(['length', 'size', 'percentage']);
|
|
628
|
+
const isLabelSize = label => sizeLabels.has(label);
|
|
627
629
|
const isLabelLength = label => label === 'length';
|
|
628
630
|
const isLabelNumber = label => label === 'number';
|
|
629
631
|
const isLabelFamilyName = label => label === 'family-name';
|
|
@@ -646,7 +648,6 @@ const getDefaultConfig = () => {
|
|
|
646
648
|
const themeRadius = fromTheme('radius');
|
|
647
649
|
const themeShadow = fromTheme('shadow');
|
|
648
650
|
const themeInsetShadow = fromTheme('inset-shadow');
|
|
649
|
-
const themeTextShadow = fromTheme('text-shadow');
|
|
650
651
|
const themeDropShadow = fromTheme('drop-shadow');
|
|
651
652
|
const themeBlur = fromTheme('blur');
|
|
652
653
|
const themePerspective = fromTheme('perspective');
|
|
@@ -661,16 +662,7 @@ const getDefaultConfig = () => {
|
|
|
661
662
|
*/
|
|
662
663
|
/***/
|
|
663
664
|
const scaleBreak = () => ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];
|
|
664
|
-
const scalePosition = () => ['center', '
|
|
665
|
-
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
666
|
-
'left-top', 'top-right',
|
|
667
|
-
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
668
|
-
'right-top', 'bottom-right',
|
|
669
|
-
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
670
|
-
'right-bottom', 'bottom-left',
|
|
671
|
-
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
672
|
-
'left-bottom'];
|
|
673
|
-
const scalePositionWithArbitrary = () => [...scalePosition(), isArbitraryVariable, isArbitraryValue];
|
|
665
|
+
const scalePosition = () => ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];
|
|
674
666
|
const scaleOverflow = () => ['auto', 'hidden', 'clip', 'visible', 'scroll'];
|
|
675
667
|
const scaleOverscroll = () => ['auto', 'contain', 'none'];
|
|
676
668
|
const scaleUnambiguousSpacing = () => [isArbitraryVariable, isArbitraryValue, themeSpacing];
|
|
@@ -678,34 +670,25 @@ const getDefaultConfig = () => {
|
|
|
678
670
|
const scaleGridTemplateColsRows = () => [isInteger, 'none', 'subgrid', isArbitraryVariable, isArbitraryValue];
|
|
679
671
|
const scaleGridColRowStartAndEnd = () => ['auto', {
|
|
680
672
|
span: ['full', isInteger, isArbitraryVariable, isArbitraryValue]
|
|
681
|
-
},
|
|
673
|
+
}, isArbitraryVariable, isArbitraryValue];
|
|
682
674
|
const scaleGridColRowStartOrEnd = () => [isInteger, 'auto', isArbitraryVariable, isArbitraryValue];
|
|
683
675
|
const scaleGridAutoColsRows = () => ['auto', 'min', 'max', 'fr', isArbitraryVariable, isArbitraryValue];
|
|
684
|
-
const scaleAlignPrimaryAxis = () => ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch', 'baseline'
|
|
685
|
-
const scaleAlignSecondaryAxis = () => ['start', 'end', 'center', 'stretch'
|
|
676
|
+
const scaleAlignPrimaryAxis = () => ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch', 'baseline'];
|
|
677
|
+
const scaleAlignSecondaryAxis = () => ['start', 'end', 'center', 'stretch'];
|
|
686
678
|
const scaleMargin = () => ['auto', ...scaleUnambiguousSpacing()];
|
|
687
679
|
const scaleSizing = () => [isFraction, 'auto', 'full', 'dvw', 'dvh', 'lvw', 'lvh', 'svw', 'svh', 'min', 'max', 'fit', ...scaleUnambiguousSpacing()];
|
|
688
680
|
const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue];
|
|
689
|
-
const
|
|
690
|
-
position: [isArbitraryVariable, isArbitraryValue]
|
|
691
|
-
}];
|
|
692
|
-
const scaleBgRepeat = () => ['no-repeat', {
|
|
693
|
-
repeat: ['', 'x', 'y', 'space', 'round']
|
|
694
|
-
}];
|
|
695
|
-
const scaleBgSize = () => ['auto', 'cover', 'contain', isArbitraryVariableSize, isArbitrarySize, {
|
|
696
|
-
size: [isArbitraryVariable, isArbitraryValue]
|
|
697
|
-
}];
|
|
698
|
-
const scaleGradientStopPosition = () => [isPercent, isArbitraryVariableLength, isArbitraryLength];
|
|
681
|
+
const scaleGradientStopPosition = () => [isPercent, isArbitraryLength];
|
|
699
682
|
const scaleRadius = () => [
|
|
700
683
|
// Deprecated since Tailwind CSS v4.0.0
|
|
701
684
|
'', 'none', 'full', themeRadius, isArbitraryVariable, isArbitraryValue];
|
|
702
685
|
const scaleBorderWidth = () => ['', isNumber, isArbitraryVariableLength, isArbitraryLength];
|
|
703
686
|
const scaleLineStyle = () => ['solid', 'dashed', 'dotted', 'double'];
|
|
704
687
|
const scaleBlendMode = () => ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'];
|
|
705
|
-
const scaleMaskImagePosition = () => [isNumber, isPercent, isArbitraryVariablePosition, isArbitraryPosition];
|
|
706
688
|
const scaleBlur = () => [
|
|
707
689
|
// Deprecated since Tailwind CSS v4.0.0
|
|
708
690
|
'', 'none', themeBlur, isArbitraryVariable, isArbitraryValue];
|
|
691
|
+
const scaleOrigin = () => ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryVariable, isArbitraryValue];
|
|
709
692
|
const scaleRotate = () => ['none', isNumber, isArbitraryVariable, isArbitraryValue];
|
|
710
693
|
const scaleScale = () => ['none', isNumber, isArbitraryVariable, isArbitraryValue];
|
|
711
694
|
const scaleSkew = () => [isNumber, isArbitraryVariable, isArbitraryValue];
|
|
@@ -730,7 +713,6 @@ const getDefaultConfig = () => {
|
|
|
730
713
|
shadow: [isTshirtSize],
|
|
731
714
|
spacing: ['px', isNumber],
|
|
732
715
|
text: [isTshirtSize],
|
|
733
|
-
'text-shadow': [isTshirtSize],
|
|
734
716
|
tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest']
|
|
735
717
|
},
|
|
736
718
|
classGroups: {
|
|
@@ -833,7 +815,7 @@ const getDefaultConfig = () => {
|
|
|
833
815
|
* @see https://tailwindcss.com/docs/object-position
|
|
834
816
|
*/
|
|
835
817
|
'object-position': [{
|
|
836
|
-
object:
|
|
818
|
+
object: [...scalePosition(), isArbitraryValue, isArbitraryVariable]
|
|
837
819
|
}],
|
|
838
820
|
/**
|
|
839
821
|
* Overflow
|
|
@@ -1140,18 +1122,14 @@ const getDefaultConfig = () => {
|
|
|
1140
1122
|
* @see https://tailwindcss.com/docs/align-items
|
|
1141
1123
|
*/
|
|
1142
1124
|
'align-items': [{
|
|
1143
|
-
items: [...scaleAlignSecondaryAxis(),
|
|
1144
|
-
baseline: ['', 'last']
|
|
1145
|
-
}]
|
|
1125
|
+
items: [...scaleAlignSecondaryAxis(), 'baseline']
|
|
1146
1126
|
}],
|
|
1147
1127
|
/**
|
|
1148
1128
|
* Align Self
|
|
1149
1129
|
* @see https://tailwindcss.com/docs/align-self
|
|
1150
1130
|
*/
|
|
1151
1131
|
'align-self': [{
|
|
1152
|
-
self: ['auto', ...scaleAlignSecondaryAxis(),
|
|
1153
|
-
baseline: ['', 'last']
|
|
1154
|
-
}]
|
|
1132
|
+
self: ['auto', ...scaleAlignSecondaryAxis(), 'baseline']
|
|
1155
1133
|
}],
|
|
1156
1134
|
/**
|
|
1157
1135
|
* Place Content
|
|
@@ -1366,21 +1344,21 @@ const getDefaultConfig = () => {
|
|
|
1366
1344
|
* @see https://tailwindcss.com/docs/height
|
|
1367
1345
|
*/
|
|
1368
1346
|
h: [{
|
|
1369
|
-
h: ['screen',
|
|
1347
|
+
h: ['screen', ...scaleSizing()]
|
|
1370
1348
|
}],
|
|
1371
1349
|
/**
|
|
1372
1350
|
* Min-Height
|
|
1373
1351
|
* @see https://tailwindcss.com/docs/min-height
|
|
1374
1352
|
*/
|
|
1375
1353
|
'min-h': [{
|
|
1376
|
-
'min-h': ['screen', '
|
|
1354
|
+
'min-h': ['screen', 'none', ...scaleSizing()]
|
|
1377
1355
|
}],
|
|
1378
1356
|
/**
|
|
1379
1357
|
* Max-Height
|
|
1380
1358
|
* @see https://tailwindcss.com/docs/max-height
|
|
1381
1359
|
*/
|
|
1382
1360
|
'max-h': [{
|
|
1383
|
-
'max-h': ['screen',
|
|
1361
|
+
'max-h': ['screen', ...scaleSizing()]
|
|
1384
1362
|
}],
|
|
1385
1363
|
// ------------------
|
|
1386
1364
|
// --- Typography ---
|
|
@@ -1596,13 +1574,6 @@ const getDefaultConfig = () => {
|
|
|
1596
1574
|
break: [{
|
|
1597
1575
|
break: ['normal', 'words', 'all', 'keep']
|
|
1598
1576
|
}],
|
|
1599
|
-
/**
|
|
1600
|
-
* Overflow Wrap
|
|
1601
|
-
* @see https://tailwindcss.com/docs/overflow-wrap
|
|
1602
|
-
*/
|
|
1603
|
-
wrap: [{
|
|
1604
|
-
wrap: ['break-word', 'anywhere', 'normal']
|
|
1605
|
-
}],
|
|
1606
1577
|
/**
|
|
1607
1578
|
* Hyphens
|
|
1608
1579
|
* @see https://tailwindcss.com/docs/hyphens
|
|
@@ -1646,21 +1617,23 @@ const getDefaultConfig = () => {
|
|
|
1646
1617
|
* @see https://tailwindcss.com/docs/background-position
|
|
1647
1618
|
*/
|
|
1648
1619
|
'bg-position': [{
|
|
1649
|
-
bg:
|
|
1620
|
+
bg: [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition]
|
|
1650
1621
|
}],
|
|
1651
1622
|
/**
|
|
1652
1623
|
* Background Repeat
|
|
1653
1624
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
1654
1625
|
*/
|
|
1655
1626
|
'bg-repeat': [{
|
|
1656
|
-
bg:
|
|
1627
|
+
bg: ['no-repeat', {
|
|
1628
|
+
repeat: ['', 'x', 'y', 'space', 'round']
|
|
1629
|
+
}]
|
|
1657
1630
|
}],
|
|
1658
1631
|
/**
|
|
1659
1632
|
* Background Size
|
|
1660
1633
|
* @see https://tailwindcss.com/docs/background-size
|
|
1661
1634
|
*/
|
|
1662
1635
|
'bg-size': [{
|
|
1663
|
-
bg:
|
|
1636
|
+
bg: ['auto', 'cover', 'contain', isArbitraryVariableSize, isArbitrarySize]
|
|
1664
1637
|
}],
|
|
1665
1638
|
/**
|
|
1666
1639
|
* Background Image
|
|
@@ -2029,7 +2002,7 @@ const getDefaultConfig = () => {
|
|
|
2029
2002
|
* @see https://tailwindcss.com/docs/outline-color
|
|
2030
2003
|
*/
|
|
2031
2004
|
'outline-color': [{
|
|
2032
|
-
outline:
|
|
2005
|
+
outline: [themeColor]
|
|
2033
2006
|
}],
|
|
2034
2007
|
// ---------------
|
|
2035
2008
|
// --- Effects ---
|
|
@@ -2055,7 +2028,7 @@ const getDefaultConfig = () => {
|
|
|
2055
2028
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2056
2029
|
*/
|
|
2057
2030
|
'inset-shadow': [{
|
|
2058
|
-
'inset-shadow': ['none',
|
|
2031
|
+
'inset-shadow': ['none', isArbitraryVariable, isArbitraryValue, themeInsetShadow]
|
|
2059
2032
|
}],
|
|
2060
2033
|
/**
|
|
2061
2034
|
* Inset Box Shadow Color
|
|
@@ -2117,20 +2090,6 @@ const getDefaultConfig = () => {
|
|
|
2117
2090
|
'inset-ring-color': [{
|
|
2118
2091
|
'inset-ring': scaleColor()
|
|
2119
2092
|
}],
|
|
2120
|
-
/**
|
|
2121
|
-
* Text Shadow
|
|
2122
|
-
* @see https://tailwindcss.com/docs/text-shadow
|
|
2123
|
-
*/
|
|
2124
|
-
'text-shadow': [{
|
|
2125
|
-
'text-shadow': ['none', themeTextShadow, isArbitraryVariableShadow, isArbitraryShadow]
|
|
2126
|
-
}],
|
|
2127
|
-
/**
|
|
2128
|
-
* Text Shadow Color
|
|
2129
|
-
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
2130
|
-
*/
|
|
2131
|
-
'text-shadow-color': [{
|
|
2132
|
-
'text-shadow': scaleColor()
|
|
2133
|
-
}],
|
|
2134
2093
|
/**
|
|
2135
2094
|
* Opacity
|
|
2136
2095
|
* @see https://tailwindcss.com/docs/opacity
|
|
@@ -2152,202 +2111,6 @@ const getDefaultConfig = () => {
|
|
|
2152
2111
|
'bg-blend': [{
|
|
2153
2112
|
'bg-blend': scaleBlendMode()
|
|
2154
2113
|
}],
|
|
2155
|
-
/**
|
|
2156
|
-
* Mask Clip
|
|
2157
|
-
* @see https://tailwindcss.com/docs/mask-clip
|
|
2158
|
-
*/
|
|
2159
|
-
'mask-clip': [{
|
|
2160
|
-
'mask-clip': ['border', 'padding', 'content', 'fill', 'stroke', 'view']
|
|
2161
|
-
}, 'mask-no-clip'],
|
|
2162
|
-
/**
|
|
2163
|
-
* Mask Composite
|
|
2164
|
-
* @see https://tailwindcss.com/docs/mask-composite
|
|
2165
|
-
*/
|
|
2166
|
-
'mask-composite': [{
|
|
2167
|
-
mask: ['add', 'subtract', 'intersect', 'exclude']
|
|
2168
|
-
}],
|
|
2169
|
-
/**
|
|
2170
|
-
* Mask Image
|
|
2171
|
-
* @see https://tailwindcss.com/docs/mask-image
|
|
2172
|
-
*/
|
|
2173
|
-
'mask-image-linear-pos': [{
|
|
2174
|
-
'mask-linear': [isNumber]
|
|
2175
|
-
}],
|
|
2176
|
-
'mask-image-linear-from-pos': [{
|
|
2177
|
-
'mask-linear-from': scaleMaskImagePosition()
|
|
2178
|
-
}],
|
|
2179
|
-
'mask-image-linear-to-pos': [{
|
|
2180
|
-
'mask-linear-to': scaleMaskImagePosition()
|
|
2181
|
-
}],
|
|
2182
|
-
'mask-image-linear-from-color': [{
|
|
2183
|
-
'mask-linear-from': scaleColor()
|
|
2184
|
-
}],
|
|
2185
|
-
'mask-image-linear-to-color': [{
|
|
2186
|
-
'mask-linear-to': scaleColor()
|
|
2187
|
-
}],
|
|
2188
|
-
'mask-image-t-from-pos': [{
|
|
2189
|
-
'mask-t-from': scaleMaskImagePosition()
|
|
2190
|
-
}],
|
|
2191
|
-
'mask-image-t-to-pos': [{
|
|
2192
|
-
'mask-t-to': scaleMaskImagePosition()
|
|
2193
|
-
}],
|
|
2194
|
-
'mask-image-t-from-color': [{
|
|
2195
|
-
'mask-t-from': scaleColor()
|
|
2196
|
-
}],
|
|
2197
|
-
'mask-image-t-to-color': [{
|
|
2198
|
-
'mask-t-to': scaleColor()
|
|
2199
|
-
}],
|
|
2200
|
-
'mask-image-r-from-pos': [{
|
|
2201
|
-
'mask-r-from': scaleMaskImagePosition()
|
|
2202
|
-
}],
|
|
2203
|
-
'mask-image-r-to-pos': [{
|
|
2204
|
-
'mask-r-to': scaleMaskImagePosition()
|
|
2205
|
-
}],
|
|
2206
|
-
'mask-image-r-from-color': [{
|
|
2207
|
-
'mask-r-from': scaleColor()
|
|
2208
|
-
}],
|
|
2209
|
-
'mask-image-r-to-color': [{
|
|
2210
|
-
'mask-r-to': scaleColor()
|
|
2211
|
-
}],
|
|
2212
|
-
'mask-image-b-from-pos': [{
|
|
2213
|
-
'mask-b-from': scaleMaskImagePosition()
|
|
2214
|
-
}],
|
|
2215
|
-
'mask-image-b-to-pos': [{
|
|
2216
|
-
'mask-b-to': scaleMaskImagePosition()
|
|
2217
|
-
}],
|
|
2218
|
-
'mask-image-b-from-color': [{
|
|
2219
|
-
'mask-b-from': scaleColor()
|
|
2220
|
-
}],
|
|
2221
|
-
'mask-image-b-to-color': [{
|
|
2222
|
-
'mask-b-to': scaleColor()
|
|
2223
|
-
}],
|
|
2224
|
-
'mask-image-l-from-pos': [{
|
|
2225
|
-
'mask-l-from': scaleMaskImagePosition()
|
|
2226
|
-
}],
|
|
2227
|
-
'mask-image-l-to-pos': [{
|
|
2228
|
-
'mask-l-to': scaleMaskImagePosition()
|
|
2229
|
-
}],
|
|
2230
|
-
'mask-image-l-from-color': [{
|
|
2231
|
-
'mask-l-from': scaleColor()
|
|
2232
|
-
}],
|
|
2233
|
-
'mask-image-l-to-color': [{
|
|
2234
|
-
'mask-l-to': scaleColor()
|
|
2235
|
-
}],
|
|
2236
|
-
'mask-image-x-from-pos': [{
|
|
2237
|
-
'mask-x-from': scaleMaskImagePosition()
|
|
2238
|
-
}],
|
|
2239
|
-
'mask-image-x-to-pos': [{
|
|
2240
|
-
'mask-x-to': scaleMaskImagePosition()
|
|
2241
|
-
}],
|
|
2242
|
-
'mask-image-x-from-color': [{
|
|
2243
|
-
'mask-x-from': scaleColor()
|
|
2244
|
-
}],
|
|
2245
|
-
'mask-image-x-to-color': [{
|
|
2246
|
-
'mask-x-to': scaleColor()
|
|
2247
|
-
}],
|
|
2248
|
-
'mask-image-y-from-pos': [{
|
|
2249
|
-
'mask-y-from': scaleMaskImagePosition()
|
|
2250
|
-
}],
|
|
2251
|
-
'mask-image-y-to-pos': [{
|
|
2252
|
-
'mask-y-to': scaleMaskImagePosition()
|
|
2253
|
-
}],
|
|
2254
|
-
'mask-image-y-from-color': [{
|
|
2255
|
-
'mask-y-from': scaleColor()
|
|
2256
|
-
}],
|
|
2257
|
-
'mask-image-y-to-color': [{
|
|
2258
|
-
'mask-y-to': scaleColor()
|
|
2259
|
-
}],
|
|
2260
|
-
'mask-image-radial': [{
|
|
2261
|
-
'mask-radial': [isArbitraryVariable, isArbitraryValue]
|
|
2262
|
-
}],
|
|
2263
|
-
'mask-image-radial-from-pos': [{
|
|
2264
|
-
'mask-radial-from': scaleMaskImagePosition()
|
|
2265
|
-
}],
|
|
2266
|
-
'mask-image-radial-to-pos': [{
|
|
2267
|
-
'mask-radial-to': scaleMaskImagePosition()
|
|
2268
|
-
}],
|
|
2269
|
-
'mask-image-radial-from-color': [{
|
|
2270
|
-
'mask-radial-from': scaleColor()
|
|
2271
|
-
}],
|
|
2272
|
-
'mask-image-radial-to-color': [{
|
|
2273
|
-
'mask-radial-to': scaleColor()
|
|
2274
|
-
}],
|
|
2275
|
-
'mask-image-radial-shape': [{
|
|
2276
|
-
'mask-radial': ['circle', 'ellipse']
|
|
2277
|
-
}],
|
|
2278
|
-
'mask-image-radial-size': [{
|
|
2279
|
-
'mask-radial': [{
|
|
2280
|
-
closest: ['side', 'corner'],
|
|
2281
|
-
farthest: ['side', 'corner']
|
|
2282
|
-
}]
|
|
2283
|
-
}],
|
|
2284
|
-
'mask-image-radial-pos': [{
|
|
2285
|
-
'mask-radial-at': scalePosition()
|
|
2286
|
-
}],
|
|
2287
|
-
'mask-image-conic-pos': [{
|
|
2288
|
-
'mask-conic': [isNumber]
|
|
2289
|
-
}],
|
|
2290
|
-
'mask-image-conic-from-pos': [{
|
|
2291
|
-
'mask-conic-from': scaleMaskImagePosition()
|
|
2292
|
-
}],
|
|
2293
|
-
'mask-image-conic-to-pos': [{
|
|
2294
|
-
'mask-conic-to': scaleMaskImagePosition()
|
|
2295
|
-
}],
|
|
2296
|
-
'mask-image-conic-from-color': [{
|
|
2297
|
-
'mask-conic-from': scaleColor()
|
|
2298
|
-
}],
|
|
2299
|
-
'mask-image-conic-to-color': [{
|
|
2300
|
-
'mask-conic-to': scaleColor()
|
|
2301
|
-
}],
|
|
2302
|
-
/**
|
|
2303
|
-
* Mask Mode
|
|
2304
|
-
* @see https://tailwindcss.com/docs/mask-mode
|
|
2305
|
-
*/
|
|
2306
|
-
'mask-mode': [{
|
|
2307
|
-
mask: ['alpha', 'luminance', 'match']
|
|
2308
|
-
}],
|
|
2309
|
-
/**
|
|
2310
|
-
* Mask Origin
|
|
2311
|
-
* @see https://tailwindcss.com/docs/mask-origin
|
|
2312
|
-
*/
|
|
2313
|
-
'mask-origin': [{
|
|
2314
|
-
'mask-origin': ['border', 'padding', 'content', 'fill', 'stroke', 'view']
|
|
2315
|
-
}],
|
|
2316
|
-
/**
|
|
2317
|
-
* Mask Position
|
|
2318
|
-
* @see https://tailwindcss.com/docs/mask-position
|
|
2319
|
-
*/
|
|
2320
|
-
'mask-position': [{
|
|
2321
|
-
mask: scaleBgPosition()
|
|
2322
|
-
}],
|
|
2323
|
-
/**
|
|
2324
|
-
* Mask Repeat
|
|
2325
|
-
* @see https://tailwindcss.com/docs/mask-repeat
|
|
2326
|
-
*/
|
|
2327
|
-
'mask-repeat': [{
|
|
2328
|
-
mask: scaleBgRepeat()
|
|
2329
|
-
}],
|
|
2330
|
-
/**
|
|
2331
|
-
* Mask Size
|
|
2332
|
-
* @see https://tailwindcss.com/docs/mask-size
|
|
2333
|
-
*/
|
|
2334
|
-
'mask-size': [{
|
|
2335
|
-
mask: scaleBgSize()
|
|
2336
|
-
}],
|
|
2337
|
-
/**
|
|
2338
|
-
* Mask Type
|
|
2339
|
-
* @see https://tailwindcss.com/docs/mask-type
|
|
2340
|
-
*/
|
|
2341
|
-
'mask-type': [{
|
|
2342
|
-
'mask-type': ['alpha', 'luminance']
|
|
2343
|
-
}],
|
|
2344
|
-
/**
|
|
2345
|
-
* Mask Image
|
|
2346
|
-
* @see https://tailwindcss.com/docs/mask-image
|
|
2347
|
-
*/
|
|
2348
|
-
'mask-image': [{
|
|
2349
|
-
mask: ['none', isArbitraryVariable, isArbitraryValue]
|
|
2350
|
-
}],
|
|
2351
2114
|
// ---------------
|
|
2352
2115
|
// --- Filters ---
|
|
2353
2116
|
// ---------------
|
|
@@ -2388,14 +2151,7 @@ const getDefaultConfig = () => {
|
|
|
2388
2151
|
'drop-shadow': [{
|
|
2389
2152
|
'drop-shadow': [
|
|
2390
2153
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2391
|
-
'', 'none', themeDropShadow,
|
|
2392
|
-
}],
|
|
2393
|
-
/**
|
|
2394
|
-
* Drop Shadow Color
|
|
2395
|
-
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
2396
|
-
*/
|
|
2397
|
-
'drop-shadow-color': [{
|
|
2398
|
-
'drop-shadow': scaleColor()
|
|
2154
|
+
'', 'none', themeDropShadow, isArbitraryVariable, isArbitraryValue]
|
|
2399
2155
|
}],
|
|
2400
2156
|
/**
|
|
2401
2157
|
* Grayscale
|
|
@@ -2616,7 +2372,7 @@ const getDefaultConfig = () => {
|
|
|
2616
2372
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2617
2373
|
*/
|
|
2618
2374
|
'perspective-origin': [{
|
|
2619
|
-
'perspective-origin':
|
|
2375
|
+
'perspective-origin': scaleOrigin()
|
|
2620
2376
|
}],
|
|
2621
2377
|
/**
|
|
2622
2378
|
* Rotate
|
|
@@ -2712,7 +2468,7 @@ const getDefaultConfig = () => {
|
|
|
2712
2468
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2713
2469
|
*/
|
|
2714
2470
|
'transform-origin': [{
|
|
2715
|
-
origin:
|
|
2471
|
+
origin: scaleOrigin()
|
|
2716
2472
|
}],
|
|
2717
2473
|
/**
|
|
2718
2474
|
* Transform Style
|
|
@@ -3080,10 +2836,10 @@ const getDefaultConfig = () => {
|
|
|
3080
2836
|
'rounded-b': ['rounded-br', 'rounded-bl'],
|
|
3081
2837
|
'rounded-l': ['rounded-tl', 'rounded-bl'],
|
|
3082
2838
|
'border-spacing': ['border-spacing-x', 'border-spacing-y'],
|
|
3083
|
-
'border-w': ['border-w-
|
|
2839
|
+
'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],
|
|
3084
2840
|
'border-w-x': ['border-w-r', 'border-w-l'],
|
|
3085
2841
|
'border-w-y': ['border-w-t', 'border-w-b'],
|
|
3086
|
-
'border-color': ['border-color-
|
|
2842
|
+
'border-color': ['border-color-s', 'border-color-e', 'border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],
|
|
3087
2843
|
'border-color-x': ['border-color-r', 'border-color-l'],
|
|
3088
2844
|
'border-color-y': ['border-color-t', 'border-color-b'],
|
|
3089
2845
|
translate: ['translate-x', 'translate-y', 'translate-none'],
|
|
@@ -3102,7 +2858,7 @@ const getDefaultConfig = () => {
|
|
|
3102
2858
|
conflictingClassGroupModifiers: {
|
|
3103
2859
|
'font-size': ['leading']
|
|
3104
2860
|
},
|
|
3105
|
-
orderSensitiveModifiers: ['
|
|
2861
|
+
orderSensitiveModifiers: ['before', 'after', 'placeholder', 'file', 'marker', 'selection', 'first-line', 'first-letter', 'backdrop', '*', '**']
|
|
3106
2862
|
};
|
|
3107
2863
|
};
|
|
3108
2864
|
const twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
|