@zag-js/color-utils 1.39.0 → 1.40.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.
- package/dist/hsb-color.js +4 -4
- package/dist/hsb-color.mjs +4 -4
- package/dist/hsl-color.js +4 -4
- package/dist/hsl-color.mjs +4 -4
- package/dist/rgb-color.js +4 -4
- package/dist/rgb-color.mjs +4 -4
- package/package.json +2 -2
package/dist/hsb-color.js
CHANGED
|
@@ -33,10 +33,10 @@ var HSB_REGEX = /hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+
|
|
|
33
33
|
var _HSBColor = class _HSBColor extends import_color.Color {
|
|
34
34
|
constructor(hue, saturation, brightness, alpha) {
|
|
35
35
|
super();
|
|
36
|
-
this
|
|
37
|
-
this
|
|
38
|
-
this
|
|
39
|
-
this
|
|
36
|
+
__publicField(this, "hue", hue);
|
|
37
|
+
__publicField(this, "saturation", saturation);
|
|
38
|
+
__publicField(this, "brightness", brightness);
|
|
39
|
+
__publicField(this, "alpha", alpha);
|
|
40
40
|
}
|
|
41
41
|
static parse(value) {
|
|
42
42
|
let m;
|
package/dist/hsb-color.mjs
CHANGED
|
@@ -11,10 +11,10 @@ var HSB_REGEX = /hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+
|
|
|
11
11
|
var _HSBColor = class _HSBColor extends Color {
|
|
12
12
|
constructor(hue, saturation, brightness, alpha) {
|
|
13
13
|
super();
|
|
14
|
-
this
|
|
15
|
-
this
|
|
16
|
-
this
|
|
17
|
-
this
|
|
14
|
+
__publicField(this, "hue", hue);
|
|
15
|
+
__publicField(this, "saturation", saturation);
|
|
16
|
+
__publicField(this, "brightness", brightness);
|
|
17
|
+
__publicField(this, "alpha", alpha);
|
|
18
18
|
}
|
|
19
19
|
static parse(value) {
|
|
20
20
|
let m;
|
package/dist/hsl-color.js
CHANGED
|
@@ -34,10 +34,10 @@ var HSL_REGEX = /hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+
|
|
|
34
34
|
var _HSLColor = class _HSLColor extends import_color.Color {
|
|
35
35
|
constructor(hue, saturation, lightness, alpha) {
|
|
36
36
|
super();
|
|
37
|
-
this
|
|
38
|
-
this
|
|
39
|
-
this
|
|
40
|
-
this
|
|
37
|
+
__publicField(this, "hue", hue);
|
|
38
|
+
__publicField(this, "saturation", saturation);
|
|
39
|
+
__publicField(this, "lightness", lightness);
|
|
40
|
+
__publicField(this, "alpha", alpha);
|
|
41
41
|
}
|
|
42
42
|
static parse(value) {
|
|
43
43
|
let m;
|
package/dist/hsl-color.mjs
CHANGED
|
@@ -11,10 +11,10 @@ var HSL_REGEX = /hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+
|
|
|
11
11
|
var _HSLColor = class _HSLColor extends Color {
|
|
12
12
|
constructor(hue, saturation, lightness, alpha) {
|
|
13
13
|
super();
|
|
14
|
-
this
|
|
15
|
-
this
|
|
16
|
-
this
|
|
17
|
-
this
|
|
14
|
+
__publicField(this, "hue", hue);
|
|
15
|
+
__publicField(this, "saturation", saturation);
|
|
16
|
+
__publicField(this, "lightness", lightness);
|
|
17
|
+
__publicField(this, "alpha", alpha);
|
|
18
18
|
}
|
|
19
19
|
static parse(value) {
|
|
20
20
|
let m;
|
package/dist/rgb-color.js
CHANGED
|
@@ -35,10 +35,10 @@ var HEX_STARTING_REGEX = /[^#]/gi;
|
|
|
35
35
|
var _RGBColor = class _RGBColor extends import_color.Color {
|
|
36
36
|
constructor(red, green, blue, alpha) {
|
|
37
37
|
super();
|
|
38
|
-
this
|
|
39
|
-
this
|
|
40
|
-
this
|
|
41
|
-
this
|
|
38
|
+
__publicField(this, "red", red);
|
|
39
|
+
__publicField(this, "green", green);
|
|
40
|
+
__publicField(this, "blue", blue);
|
|
41
|
+
__publicField(this, "alpha", alpha);
|
|
42
42
|
}
|
|
43
43
|
static parse(value) {
|
|
44
44
|
let colors = [];
|
package/dist/rgb-color.mjs
CHANGED
|
@@ -13,10 +13,10 @@ var HEX_STARTING_REGEX = /[^#]/gi;
|
|
|
13
13
|
var _RGBColor = class _RGBColor extends Color {
|
|
14
14
|
constructor(red, green, blue, alpha) {
|
|
15
15
|
super();
|
|
16
|
-
this
|
|
17
|
-
this
|
|
18
|
-
this
|
|
19
|
-
this
|
|
16
|
+
__publicField(this, "red", red);
|
|
17
|
+
__publicField(this, "green", green);
|
|
18
|
+
__publicField(this, "blue", blue);
|
|
19
|
+
__publicField(this, "alpha", alpha);
|
|
20
20
|
}
|
|
21
21
|
static parse(value) {
|
|
22
22
|
let colors = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/color-utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.40.0",
|
|
4
4
|
"description": "Color utilities for zag.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"clean-package": "../../../clean-package.config.json",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@zag-js/utils": "1.
|
|
27
|
+
"@zag-js/utils": "1.40.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"clean-package": "2.2.0"
|