daisyui 2.3.1 → 2.3.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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/src/index.js +12 -12
package/README.md CHANGED
@@ -74,7 +74,7 @@ module.exports = {
74
74
  Loading CSS files from CDN is not recommended for production. It's better to install Tailwind and daisyUI as Nodejs dependencies so you can config/customize everything, and purge unused styles.
75
75
 
76
76
  ```html
77
- <link href="https://cdn.jsdelivr.net/npm/daisyui@2.3.0/dist/full.css" rel="stylesheet" type="text/css" />
77
+ <link href="https://cdn.jsdelivr.net/npm/daisyui@2.3.3/dist/full.css" rel="stylesheet" type="text/css" />
78
78
  <script src="https://cdn.tailwindcss.com"></script>
79
79
  ```
80
80
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "daisyui",
3
- "version": "2.3.1",
3
+ "version": "2.3.4",
4
4
  "description": "daisyUI - Tailwind CSS Components",
5
5
  "author": "Pouya Saadeghi",
6
6
  "license": "MIT",
package/src/index.js CHANGED
@@ -11,7 +11,7 @@ let utilitiesStyled = require("../dist/utilities-styled");
11
11
  const themes = require("./colors/themes");
12
12
  const colorFunctions = require("./colors/functions");
13
13
  const postcssJs = require('postcss-js');
14
- const postcssPrefix = require('postcss-class-prefix');
14
+ // const postcssPrefix = require('postcss-class-prefix');
15
15
 
16
16
  const mainFunction = ({ addBase, addComponents, addUtilities, config }) => {
17
17
  let diasyuiIncludedItems = [];
@@ -63,12 +63,12 @@ const mainFunction = ({ addBase, addComponents, addUtilities, config }) => {
63
63
  console.log("\x1b[36m%s\x1b[0m", " Direction:", "\x1b[0m", "RTL");
64
64
  file = styledRtl;
65
65
  }
66
-
66
+
67
67
  // add prefix to class names if specified
68
- const prefix = config('daisyui.prefix');
69
- if (prefix) {
70
- file = postcssJs.sync(postcssPrefix(prefix))(file);
71
- }
68
+ // const prefix = config('daisyui.prefix');
69
+ // if (prefix) {
70
+ // file = postcssJs.sync(postcssPrefix(prefix))(file);
71
+ // }
72
72
 
73
73
  addComponents(file);
74
74
 
@@ -80,13 +80,13 @@ const mainFunction = ({ addBase, addComponents, addUtilities, config }) => {
80
80
  // inject @utilities style needed by components
81
81
  if (config("daisyui.utils") != false) {
82
82
  addComponents(utilities, { variants: ["responsive"] });
83
- if (prefix) {
84
- utilitiesUnstyled = postcssJs.sync(postcssPrefix(prefix))(utilitiesUnstyled);
85
- }
83
+ // if (prefix) {
84
+ // utilitiesUnstyled = postcssJs.sync(postcssPrefix(prefix))(utilitiesUnstyled);
85
+ // }
86
86
  addComponents(utilitiesUnstyled, { variants: ["responsive"] });
87
- if (prefix) {
88
- utilitiesStyled = postcssJs.sync(postcssPrefix(prefix))(utilitiesStyled);
89
- }
87
+ // if (prefix) {
88
+ // utilitiesStyled = postcssJs.sync(postcssPrefix(prefix))(utilitiesStyled);
89
+ // }
90
90
  addComponents(utilitiesStyled, { variants: ["responsive"] });
91
91
  diasyuiIncludedItems.push("utilities");
92
92
  }