@umami/react-zen 0.252.0 → 0.253.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.
@@ -107,13 +107,11 @@ const preset: Config = {
107
107
  },
108
108
  plugins: [
109
109
  plugin(({ addVariant }) => {
110
- // Component state variants
111
- addVariant('pressed', '&[data-pressed]');
110
+ // Data-attribute state variants emitted by Base UI parts.
111
+ // `disabled`, `focus-visible`, `hover` and `active` are intentionally NOT
112
+ // overridden so the native pseudo-classes keep working; use Tailwind's
113
+ // built-in `data-disabled:` / `data-highlighted:` for non-native Base UI parts.
112
114
  addVariant('selected', '&[data-selected]');
113
- addVariant('disabled', '&[data-disabled]');
114
- addVariant('focused', '&[data-focused]');
115
- addVariant('focus-visible', '&[data-focus-visible]');
116
- addVariant('hovered', '&[data-hovered]');
117
115
  addVariant('indeterminate', '&[data-indeterminate]');
118
116
  addVariant('expanded', '&[data-expanded]');
119
117
  addVariant('readonly', '&[data-readonly]');
@@ -131,11 +129,9 @@ const preset: Config = {
131
129
  addVariant('orientation-vertical', "&[data-orientation='vertical']");
132
130
 
133
131
  // Group variants for nested state selectors
134
- addVariant('group-pressed', ':merge(.group)[data-pressed] &');
135
132
  addVariant('group-selected', ':merge(.group)[data-selected] &');
136
133
  addVariant('group-disabled', ':merge(.group)[data-disabled] &');
137
134
  addVariant('group-expanded', ':merge(.group)[data-expanded] &');
138
- addVariant('group-focus-visible', ':merge(.group)[data-focus-visible] &');
139
135
  addVariant('group-indeterminate', ':merge(.group)[data-indeterminate] &');
140
136
  }),
141
137
  ],