tailwindcss 0.0.0-insiders.a1bc203 → 0.0.0-insiders.a41c4ec

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 CHANGED
@@ -19,6 +19,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
19
  - Add support for "arbitrary properties" ([#6161](https://github.com/tailwindlabs/tailwindcss/pull/6161))
20
20
  - Add `portrait` and `landscape` variants ([#6046](https://github.com/tailwindlabs/tailwindcss/pull/6046))
21
21
  - Add `aspect-attrs` utility by default ([#6178](https://github.com/tailwindlabs/tailwindcss/pull/6178))
22
+ - Add `text-decoration-style`, `text-decoration-thickness`, and `text-underline-offset` utilities ([#6004](https://github.com/tailwindlabs/tailwindcss/pull/6004))
23
+ - Add `menu` reset to preflight ([#6213](https://github.com/tailwindlabs/tailwindcss/pull/6213))
24
+
25
+ ### Changed
26
+
27
+ - Deprecate `decoration-slice` and `decoration-break` in favor `box-decoration-slice` and `box-decoration-break` _(non-breaking)_ ([#6004](https://github.com/tailwindlabs/tailwindcss/pull/6004))
22
28
 
23
29
  ## [3.0.0-alpha.2] - 2021-11-08
24
30
 
@@ -126,6 +126,9 @@ var _default = [
126
126
  "textOpacity",
127
127
  "textDecoration",
128
128
  "textDecorationColor",
129
+ "textDecorationStyle",
130
+ "textDecorationThickness",
131
+ "textUnderlineOffset",
129
132
  "fontSmoothing",
130
133
  "placeholderColor",
131
134
  "placeholderOpacity",
@@ -2315,6 +2315,12 @@ let corePlugins1 = {
2315
2315
  },
2316
2316
  '.decoration-clone': {
2317
2317
  'box-decoration-break': 'clone'
2318
+ },
2319
+ '.box-decoration-slice': {
2320
+ 'box-decoration-break': 'slice'
2321
+ },
2322
+ '.box-decoration-clone': {
2323
+ 'box-decoration-break': 'clone'
2318
2324
  }
2319
2325
  });
2320
2326
  },
@@ -2786,6 +2792,9 @@ let corePlugins1 = {
2786
2792
  '.underline': {
2787
2793
  'text-decoration': 'underline'
2788
2794
  },
2795
+ '.overline': {
2796
+ 'text-decoration': 'overline'
2797
+ },
2789
2798
  '.line-through': {
2790
2799
  'text-decoration': 'line-through'
2791
2800
  },
@@ -2804,11 +2813,55 @@ let corePlugins1 = {
2804
2813
  }, {
2805
2814
  values: (0, _flattenColorPalette).default(theme('textDecorationColor')),
2806
2815
  type: [
2807
- 'color',
2808
- 'any'
2816
+ 'color'
2809
2817
  ]
2810
2818
  });
2811
2819
  },
2820
+ textDecorationStyle: ({ addUtilities })=>{
2821
+ addUtilities({
2822
+ '.decoration-solid': {
2823
+ 'text-decoration-style': 'solid'
2824
+ },
2825
+ '.decoration-double': {
2826
+ 'text-decoration-style': 'double'
2827
+ },
2828
+ '.decoration-dotted': {
2829
+ 'text-decoration-style': 'dotted'
2830
+ },
2831
+ '.decoration-dashed': {
2832
+ 'text-decoration-style': 'dashed'
2833
+ },
2834
+ '.decoration-wavy': {
2835
+ 'text-decoration-style': 'wavy'
2836
+ }
2837
+ });
2838
+ },
2839
+ textDecorationThickness: (0, _createUtilityPlugin).default('textDecorationThickness', [
2840
+ [
2841
+ 'decoration',
2842
+ [
2843
+ 'text-decoration-thickness'
2844
+ ]
2845
+ ]
2846
+ ], {
2847
+ type: [
2848
+ 'length',
2849
+ 'percentage'
2850
+ ]
2851
+ }),
2852
+ textUnderlineOffset: (0, _createUtilityPlugin).default('textUnderlineOffset', [
2853
+ [
2854
+ 'underline-offset',
2855
+ [
2856
+ 'text-underline-offset'
2857
+ ]
2858
+ ]
2859
+ ], {
2860
+ type: [
2861
+ 'length',
2862
+ 'percentage'
2863
+ ]
2864
+ }),
2812
2865
  fontSmoothing: ({ addUtilities })=>{
2813
2866
  addUtilities({
2814
2867
  '.antialiased': {
@@ -288,7 +288,8 @@ legend {
288
288
  }
289
289
 
290
290
  ol,
291
- ul {
291
+ ul,
292
+ menu {
292
293
  list-style: none;
293
294
  margin: 0;
294
295
  padding: 0;
@@ -40,7 +40,16 @@ function formatVariantSelector(current, ...others) {
40
40
  function finalizeSelector(format, { selector: selector1 , candidate , context }) {
41
41
  var ref, ref1;
42
42
  var ref2;
43
- let base = candidate.split((ref2 = context === null || context === void 0 ? void 0 : (ref = context.tailwindConfig) === null || ref === void 0 ? void 0 : ref.separator) !== null && ref2 !== void 0 ? ref2 : ':').pop();
43
+ let separator = (ref2 = context === null || context === void 0 ? void 0 : (ref = context.tailwindConfig) === null || ref === void 0 ? void 0 : ref.separator) !== null && ref2 !== void 0 ? ref2 : ':';
44
+ // Split by the separator, but ignore the separator inside square brackets:
45
+ //
46
+ // E.g.: dark:lg:hover:[paint-order:markers]
47
+ // ┬ ┬ ┬ ┬
48
+ // │ │ │ ╰── We will not split here
49
+ // ╰──┴─────┴─────────────── We will split here
50
+ //
51
+ let splitter = new RegExp(`\\${separator}(?![^[]*\\])`);
52
+ let base = candidate.split(splitter).pop();
44
53
  if (context === null || context === void 0 ? void 0 : (ref1 = context.tailwindConfig) === null || ref1 === void 0 ? void 0 : ref1.prefix) {
45
54
  format = (0, _prefixSelector).default(context.tailwindConfig.prefix, format);
46
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "0.0.0-insiders.a1bc203",
3
+ "version": "0.0.0-insiders.a41c4ec",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -1 +1 @@
1
- export default ["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","display","aspectRatio","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","borderCollapse","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","whitespace","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content"]
1
+ export default ["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","display","aspectRatio","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","borderCollapse","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","whitespace","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content"]
@@ -1396,8 +1396,10 @@ export let corePlugins = {
1396
1396
 
1397
1397
  boxDecorationBreak: ({ addUtilities }) => {
1398
1398
  addUtilities({
1399
- '.decoration-slice': { 'box-decoration-break': 'slice' },
1400
- '.decoration-clone': { 'box-decoration-break': 'clone' },
1399
+ '.decoration-slice': { 'box-decoration-break': 'slice' }, // Deprecated
1400
+ '.decoration-clone': { 'box-decoration-break': 'clone' }, // Deprecated
1401
+ '.box-decoration-slice': { 'box-decoration-break': 'slice' },
1402
+ '.box-decoration-clone': { 'box-decoration-break': 'clone' },
1401
1403
  })
1402
1404
  },
1403
1405
 
@@ -1655,6 +1657,7 @@ export let corePlugins = {
1655
1657
  textDecoration: ({ addUtilities }) => {
1656
1658
  addUtilities({
1657
1659
  '.underline': { 'text-decoration': 'underline' },
1660
+ '.overline': { 'text-decoration': 'overline' },
1658
1661
  '.line-through': { 'text-decoration': 'line-through' },
1659
1662
  '.no-underline': { 'text-decoration': 'none' },
1660
1663
  })
@@ -1667,10 +1670,32 @@ export let corePlugins = {
1667
1670
  return { 'text-decoration-color': toColorValue(value) }
1668
1671
  },
1669
1672
  },
1670
- { values: flattenColorPalette(theme('textDecorationColor')), type: ['color', 'any'] }
1673
+ { values: flattenColorPalette(theme('textDecorationColor')), type: ['color'] }
1671
1674
  )
1672
1675
  },
1673
1676
 
1677
+ textDecorationStyle: ({ addUtilities }) => {
1678
+ addUtilities({
1679
+ '.decoration-solid': { 'text-decoration-style': 'solid' },
1680
+ '.decoration-double': { 'text-decoration-style': 'double' },
1681
+ '.decoration-dotted': { 'text-decoration-style': 'dotted' },
1682
+ '.decoration-dashed': { 'text-decoration-style': 'dashed' },
1683
+ '.decoration-wavy': { 'text-decoration-style': 'wavy' },
1684
+ })
1685
+ },
1686
+
1687
+ textDecorationThickness: createUtilityPlugin(
1688
+ 'textDecorationThickness',
1689
+ [['decoration', ['text-decoration-thickness']]],
1690
+ { type: ['length', 'percentage'] }
1691
+ ),
1692
+
1693
+ textUnderlineOffset: createUtilityPlugin(
1694
+ 'textUnderlineOffset',
1695
+ [['underline-offset', ['text-underline-offset']]],
1696
+ { type: ['length', 'percentage'] }
1697
+ ),
1698
+
1674
1699
  fontSmoothing: ({ addUtilities }) => {
1675
1700
  addUtilities({
1676
1701
  '.antialiased': {
@@ -288,7 +288,8 @@ legend {
288
288
  }
289
289
 
290
290
  ol,
291
- ul {
291
+ ul,
292
+ menu {
292
293
  list-style: none;
293
294
  margin: 0;
294
295
  padding: 0;
@@ -30,7 +30,17 @@ export function formatVariantSelector(current, ...others) {
30
30
  }
31
31
 
32
32
  export function finalizeSelector(format, { selector, candidate, context }) {
33
- let base = candidate.split(context?.tailwindConfig?.separator ?? ':').pop()
33
+ let separator = context?.tailwindConfig?.separator ?? ':'
34
+
35
+ // Split by the separator, but ignore the separator inside square brackets:
36
+ //
37
+ // E.g.: dark:lg:hover:[paint-order:markers]
38
+ // ┬ ┬ ┬ ┬
39
+ // │ │ │ ╰── We will not split here
40
+ // ╰──┴─────┴─────────────── We will split here
41
+ //
42
+ let splitter = new RegExp(`\\${separator}(?![^[]*\\])`)
43
+ let base = candidate.split(splitter).pop()
34
44
 
35
45
  if (context?.tailwindConfig?.prefix) {
36
46
  format = prefixSelector(context.tailwindConfig.prefix, format)
@@ -798,6 +798,23 @@ module.exports = {
798
798
  },
799
799
  textColor: ({ theme }) => theme('colors'),
800
800
  textDecorationColor: ({ theme }) => theme('colors'),
801
+ textDecorationThickness: {
802
+ auto: 'auto',
803
+ 'from-font': 'from-font',
804
+ 0: '0px',
805
+ 1: '1px',
806
+ 2: '2px',
807
+ 4: '4px',
808
+ 8: '8px',
809
+ },
810
+ textUnderlineOffset: {
811
+ auto: 'auto',
812
+ 0: '0px',
813
+ 1: '1px',
814
+ 2: '2px',
815
+ 4: '4px',
816
+ 8: '8px',
817
+ },
801
818
  textIndent: ({ theme }) => ({
802
819
  ...theme('spacing'),
803
820
  }),