daisyui 4.3.0-alpha.10 → 4.3.0-alpha.11

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": "4.3.0-alpha.10",
3
+ "version": "4.3.0-alpha.11",
4
4
  "description": "daisyUI - Tailwind CSS Components",
5
5
  "author": "Pouya Saadeghi",
6
6
  "license": "MIT",
@@ -1,10 +1,10 @@
1
1
  const colorNames = require("./colorNames")
2
2
  const themeDefaults = require("./themeDefaults")
3
3
 
4
- const { toGamut, interpolate, wcagContrast } = require("culori")
4
+ const { toGamut, interpolate, wcagContrast } = require("culori/require")
5
5
 
6
- const cutNumber = (number) => (number ? +number.toFixed(6) : 0);
7
- const toGamutOKLCH = toGamut("oklch");
6
+ const cutNumber = (number) => (number ? +number.toFixed(6) : 0)
7
+ const toGamutOKLCH = toGamut("oklch")
8
8
 
9
9
  module.exports = {
10
10
  isDark: (color) => {
@@ -37,7 +37,7 @@ module.exports = {
37
37
  const resultObj = {}
38
38
 
39
39
  Object.entries(input).forEach(([rule, value]) => {
40
- if (Object.hasOwn(colorNames,rule)) {
40
+ if (Object.hasOwn(colorNames, rule)) {
41
41
  const colorObj = toGamutOKLCH(value)
42
42
  resultObj[colorNames[rule]] = this.colorObjToString(colorObj)
43
43
  } else {
@@ -128,7 +128,7 @@ module.exports = {
128
128
  })
129
129
 
130
130
  // add other custom styles
131
- if (!Object.hasOwn(colorNames,rule)) {
131
+ if (!Object.hasOwn(colorNames, rule)) {
132
132
  resultObj[rule] = value
133
133
  }
134
134
  })