@uiw/react-color-hue
Advanced tools
Comparing version 1.1.0 to 1.1.1
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -9,25 +8,18 @@ value: true | ||
exports["default"] = void 0; | ||
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2")); | ||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties")); | ||
var _react = _interopRequireDefault(require("react")); | ||
var _reactColorAlpha = _interopRequireDefault(require("@uiw/react-color-alpha")); | ||
var _jsxRuntime = require("react/jsx-runtime"); | ||
var _excluded = ["prefixCls", "className", "hue", "onChange", "direction"]; | ||
var Hue = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) { | ||
var _props$prefixCls = props.prefixCls, | ||
prefixCls = _props$prefixCls === void 0 ? 'w-color-hue' : _props$prefixCls, | ||
className = props.className, | ||
_props$hue = props.hue, | ||
hue = _props$hue === void 0 ? 0 : _props$hue, | ||
_onChange = props.onChange, | ||
_props$direction = props.direction, | ||
direction = _props$direction === void 0 ? 'horizontal' : _props$direction, | ||
other = (0, _objectWithoutProperties2["default"])(props, _excluded); | ||
prefixCls = _props$prefixCls === void 0 ? 'w-color-hue' : _props$prefixCls, | ||
className = props.className, | ||
_props$hue = props.hue, | ||
hue = _props$hue === void 0 ? 0 : _props$hue, | ||
_onChange = props.onChange, | ||
_props$direction = props.direction, | ||
direction = _props$direction === void 0 ? 'horizontal' : _props$direction, | ||
other = (0, _objectWithoutProperties2["default"])(props, _excluded); | ||
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorAlpha["default"], (0, _objectSpread2["default"])((0, _objectSpread2["default"])({ | ||
@@ -52,3 +44,2 @@ ref: ref, | ||
}); | ||
Hue.displayName = 'Hue'; | ||
@@ -55,0 +46,0 @@ var _default = Hue; |
@@ -9,10 +9,9 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
var { | ||
prefixCls = 'w-color-hue', | ||
className, | ||
hue = 0, | ||
onChange: _onChange, | ||
direction = 'horizontal' | ||
} = props, | ||
other = _objectWithoutPropertiesLoose(props, _excluded); | ||
prefixCls = 'w-color-hue', | ||
className, | ||
hue = 0, | ||
onChange: _onChange, | ||
direction = 'horizontal' | ||
} = props, | ||
other = _objectWithoutPropertiesLoose(props, _excluded); | ||
return /*#__PURE__*/_jsx(Alpha, _extends({ | ||
@@ -19,0 +18,0 @@ ref: ref, |
{ | ||
"name": "@uiw/react-color-hue", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Color hue", | ||
@@ -37,6 +37,6 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"dependencies": { | ||
"@babel/runtime": "~7.18.0", | ||
"@uiw/color-convert": "1.1.0", | ||
"@uiw/react-color-alpha": "1.1.0" | ||
"@babel/runtime": "~7.19.0", | ||
"@uiw/color-convert": "1.1.1", | ||
"@uiw/react-color-alpha": "1.1.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12217
+ Added@babel/runtime@7.19.4(transitive)
+ Added@uiw/color-convert@1.1.1(transitive)
+ Added@uiw/react-color-alpha@1.1.1(transitive)
+ Added@uiw/react-drag-event-interactive@1.1.1(transitive)
- Removed@babel/runtime@7.18.9(transitive)
- Removed@uiw/color-convert@1.1.0(transitive)
- Removed@uiw/react-color-alpha@1.1.0(transitive)
- Removed@uiw/react-drag-event-interactive@1.1.0(transitive)
Updated@babel/runtime@~7.19.0
Updated@uiw/color-convert@1.1.1
Updated@uiw/react-color-alpha@1.1.1