daisyui 2.9.0 → 2.11.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "daisyui",
3
- "version": "2.9.0",
3
+ "version": "2.11.1",
4
4
  "description": "daisyUI - Tailwind CSS Components",
5
5
  "author": "Pouya Saadeghi",
6
6
  "license": "MIT",
@@ -1 +1,43 @@
1
- module.exports = { pattern: /.(sm|md|lg|xl)/, variants: ["sm", "md", "lg", "xl"] };
1
+ // regext for all daisyUI colors
2
+ // ((primary|secondary|accent|neutral)(-focus|-content|))|((info|success|warning|error)(-content|))|(base)(-100|-200|-300|-content)
3
+
4
+ // regex for all Tailwind CSS color utilities
5
+ // (bg|to|via|from|text|ring|fill|caret|stroke|border|divide|accent|shadow|outline|decoration|placeholder|ring-offset)
6
+
7
+ module.exports = [
8
+ {
9
+ pattern: /.*/,
10
+ },
11
+ {
12
+ // responsive utilites for daisyUI responsive modifiers
13
+ pattern: /.(sm|md|lg|xl)/,
14
+ variants: [
15
+ "sm",
16
+ "md",
17
+ "lg",
18
+ "xl",
19
+ ]
20
+ },
21
+ {
22
+ // color utilities for daisyUI colors
23
+ pattern: /(bg|to|via|from|text|fill|stroke|border|outline)-((primary|secondary|accent|neutral)(-focus|-content|))|((info|success|warning|error)(-content|))|(base)(-100|-200|-300|-content)/,
24
+ variants: [
25
+ // "first",
26
+ // "last",
27
+ // "odd",
28
+ // "even",
29
+ // "visited",
30
+ // "checked",
31
+ // "empty",
32
+ // "read-only",
33
+ // "group-hover",
34
+ // "group-focus",
35
+ // "focus-within",
36
+ "hover",
37
+ "focus",
38
+ // "focus-visible",
39
+ // "active",
40
+ // "disabled",
41
+ ],
42
+ },
43
+ ];