@react-stately/color
Advanced tools
Comparing version
@@ -390,7 +390,3 @@ var $097dc310d9980f22$exports = require("./intlStrings.main.js"); | ||
constructor(red, green, blue, alpha){ | ||
super(); | ||
this.red = red; | ||
this.green = green; | ||
this.blue = blue; | ||
this.alpha = alpha; | ||
super(), this.red = red, this.green = green, this.blue = blue, this.alpha = alpha; | ||
} | ||
@@ -532,7 +528,3 @@ } | ||
constructor(hue, saturation, brightness, alpha){ | ||
super(); | ||
this.hue = hue; | ||
this.saturation = saturation; | ||
this.brightness = brightness; | ||
this.alpha = alpha; | ||
super(), this.hue = hue, this.saturation = saturation, this.brightness = brightness, this.alpha = alpha; | ||
} | ||
@@ -674,7 +666,3 @@ } | ||
constructor(hue, saturation, lightness, alpha){ | ||
super(); | ||
this.hue = hue; | ||
this.saturation = saturation; | ||
this.lightness = lightness; | ||
this.alpha = alpha; | ||
super(), this.hue = hue, this.saturation = saturation, this.lightness = lightness, this.alpha = alpha; | ||
} | ||
@@ -681,0 +669,0 @@ } |
@@ -382,7 +382,3 @@ import $34yyy$intlStringsmodulejs from "./intlStrings.module.js"; | ||
constructor(red, green, blue, alpha){ | ||
super(); | ||
this.red = red; | ||
this.green = green; | ||
this.blue = blue; | ||
this.alpha = alpha; | ||
super(), this.red = red, this.green = green, this.blue = blue, this.alpha = alpha; | ||
} | ||
@@ -524,7 +520,3 @@ } | ||
constructor(hue, saturation, brightness, alpha){ | ||
super(); | ||
this.hue = hue; | ||
this.saturation = saturation; | ||
this.brightness = brightness; | ||
this.alpha = alpha; | ||
super(), this.hue = hue, this.saturation = saturation, this.brightness = brightness, this.alpha = alpha; | ||
} | ||
@@ -666,7 +658,3 @@ } | ||
constructor(hue, saturation, lightness, alpha){ | ||
super(); | ||
this.hue = hue; | ||
this.saturation = saturation; | ||
this.lightness = lightness; | ||
this.alpha = alpha; | ||
super(), this.hue = hue, this.saturation = saturation, this.lightness = lightness, this.alpha = alpha; | ||
} | ||
@@ -673,0 +661,0 @@ } |
@@ -26,3 +26,3 @@ var $83fe1a57d631223b$exports = require("./Color.main.js"); | ||
return (0, $83fe1a57d631223b$exports.parseColor)(value); | ||
} catch (err) { | ||
} catch { | ||
return undefined; | ||
@@ -29,0 +29,0 @@ } |
@@ -20,3 +20,3 @@ import {parseColor as $799cddbef784668f$export$6e865ea70d7724f} from "./Color.module.js"; | ||
return (0, $799cddbef784668f$export$6e865ea70d7724f)(value); | ||
} catch (err) { | ||
} catch { | ||
return undefined; | ||
@@ -23,0 +23,0 @@ } |
@@ -62,3 +62,3 @@ var $83fe1a57d631223b$exports = require("./Color.main.js"); | ||
color = (0, $83fe1a57d631223b$exports.parseColor)(inputValue.startsWith('#') ? inputValue : `#${inputValue}`); | ||
} catch (err) { | ||
} catch { | ||
color = null; | ||
@@ -65,0 +65,0 @@ } |
@@ -56,3 +56,3 @@ import {parseColor as $799cddbef784668f$export$6e865ea70d7724f} from "./Color.module.js"; | ||
color = (0, $799cddbef784668f$export$6e865ea70d7724f)(inputValue.startsWith('#') ? inputValue : `#${inputValue}`); | ||
} catch (err) { | ||
} catch { | ||
color = null; | ||
@@ -59,0 +59,0 @@ } |
{ | ||
"name": "@react-stately/color", | ||
"version": "3.0.0-nightly-a626c2596-240926", | ||
"version": "3.0.0-nightly-a792c1ad5-250222", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,20 +25,18 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@internationalized/number": "^3.0.0-nightly-a626c2596-240926", | ||
"@internationalized/string": "^3.0.0-nightly-a626c2596-240926", | ||
"@react-aria/i18n": "^3.0.0-nightly-a626c2596-240926", | ||
"@react-stately/form": "^3.0.0-nightly-a626c2596-240926", | ||
"@react-stately/numberfield": "^3.0.0-nightly-a626c2596-240926", | ||
"@react-stately/slider": "^3.0.0-nightly-a626c2596-240926", | ||
"@react-stately/utils": "^3.0.0-nightly-a626c2596-240926", | ||
"@react-types/color": "3.0.0-nightly-a626c2596-240926", | ||
"@react-types/shared": "^3.0.0-nightly-a626c2596-240926", | ||
"@internationalized/number": "3.0.0-nightly-a792c1ad5-250222", | ||
"@internationalized/string": "3.0.0-nightly-a792c1ad5-250222", | ||
"@react-stately/form": "3.0.0-nightly-a792c1ad5-250222", | ||
"@react-stately/numberfield": "3.0.0-nightly-a792c1ad5-250222", | ||
"@react-stately/slider": "3.0.0-nightly-a792c1ad5-250222", | ||
"@react-stately/utils": "3.0.0-nightly-a792c1ad5-250222", | ||
"@react-types/color": "3.0.0-nightly-a792c1ad5-250222", | ||
"@react-types/shared": "3.0.0-nightly-a792c1ad5-250222", | ||
"@swc/helpers": "^0.5.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0" | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"stableVersion": "3.7.2" | ||
} | ||
} |
@@ -22,3 +22,3 @@ /* | ||
return parseColor(value); | ||
} catch (err) { | ||
} catch { | ||
return undefined; | ||
@@ -25,0 +25,0 @@ } |
@@ -104,3 +104,3 @@ /* | ||
color = parseColor(inputValue.startsWith('#') ? inputValue : `#${inputValue}`); | ||
} catch (err) { | ||
} catch { | ||
color = null; | ||
@@ -107,0 +107,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
10
-9.09%789274
-0.2%10017
-0.36%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated