@react-aria/color 3.0.0-nightly.3142 → 3.0.0-nightly.3167
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/main.js +6 -7
- package/dist/main.js.map +1 -1
- package/dist/module.js +6 -7
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +9 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +14 -14
- package/src/useColorArea.ts +14 -2
- package/src/useColorField.ts +1 -1
- package/src/useColorWheel.ts +3 -3
package/dist/main.js
CHANGED
|
@@ -212,8 +212,8 @@ $4f97b428b4cbcd4e$exports = {
|
|
|
212
212
|
|
|
213
213
|
|
|
214
214
|
|
|
215
|
-
function $47925bd68062ac17$export$2f92a7a615a014f6(props, state
|
|
216
|
-
let { isDisabled: isDisabled } = props;
|
|
215
|
+
function $47925bd68062ac17$export$2f92a7a615a014f6(props, state) {
|
|
216
|
+
let { isDisabled: isDisabled , inputXRef: inputXRef , inputYRef: inputYRef , containerRef: containerRef } = props;
|
|
217
217
|
let formatMessage = $kZqDi$reactariai18n.useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($4f97b428b4cbcd4e$exports)));
|
|
218
218
|
let { addGlobalListener: addGlobalListener , removeGlobalListener: removeGlobalListener } = $kZqDi$reactariautils.useGlobalListeners();
|
|
219
219
|
let { direction: direction , locale: locale } = $kZqDi$reactariai18n.useLocale();
|
|
@@ -616,7 +616,7 @@ $parcel$export($1d29bf243d4a9a53$exports, "useColorWheel", () => $1d29bf243d4a9a
|
|
|
616
616
|
|
|
617
617
|
|
|
618
618
|
function $1d29bf243d4a9a53$export$9064ff4e44b3729a(props, state, inputRef) {
|
|
619
|
-
let { isDisabled: isDisabled ,
|
|
619
|
+
let { isDisabled: isDisabled , innerRadius: innerRadius , outerRadius: outerRadius , 'aria-label': ariaLabel } = props;
|
|
620
620
|
let { addGlobalListener: addGlobalListener , removeGlobalListener: removeGlobalListener } = $kZqDi$reactariautils.useGlobalListeners();
|
|
621
621
|
let thumbRadius = (innerRadius + outerRadius) / 2;
|
|
622
622
|
let focusInput = $kZqDi$react.useCallback(()=>{
|
|
@@ -786,6 +786,7 @@ function $1d29bf243d4a9a53$export$9064ff4e44b3729a(props, state, inputRef) {
|
|
|
786
786
|
...props,
|
|
787
787
|
'aria-label': ariaLabel
|
|
788
788
|
});
|
|
789
|
+
let { minValue: minValue , maxValue: maxValue , step: step } = state.value.getChannelRange('hue');
|
|
789
790
|
return {
|
|
790
791
|
trackProps: {
|
|
791
792
|
...trackInteractions,
|
|
@@ -827,8 +828,8 @@ function $1d29bf243d4a9a53$export$9064ff4e44b3729a(props, state, inputRef) {
|
|
|
827
828
|
},
|
|
828
829
|
inputProps: $kZqDi$reactariautils.mergeProps(inputLabellingProps, {
|
|
829
830
|
type: 'range',
|
|
830
|
-
min:
|
|
831
|
-
max:
|
|
831
|
+
min: String(minValue),
|
|
832
|
+
max: String(maxValue),
|
|
832
833
|
step: String(step),
|
|
833
834
|
'aria-valuetext': state.value.formatChannelValue('hue', locale),
|
|
834
835
|
disabled: isDisabled,
|
|
@@ -880,8 +881,6 @@ function $58c850037bc7a7ce$export$77e32ca575a28fdf(props, state, ref) {
|
|
|
880
881
|
if (e.deltaY > 0) increment();
|
|
881
882
|
else if (e.deltaY < 0) decrement();
|
|
882
883
|
}, [
|
|
883
|
-
isReadOnly,
|
|
884
|
-
isDisabled,
|
|
885
884
|
decrement,
|
|
886
885
|
increment
|
|
887
886
|
]);
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAyH;;;;ACArJ,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA2G;;;;ACAvI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA4G;;;;ACAxI,yBAAc,GAAG,IAAI,CAAC,KAAK,CA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K;kBACnB,QAAQ;IACV,CAAC,GAAG,KAAK,EAAE,GAAG;IAEhB,MAAM,CAAC,CAAC;oBACN,UAAU;QACV,UAAU,EAAE,gCAAU,CAAC,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,CAAC;YACrE,IAAI,EAAE,CAAS;YACf,CAAe,gBAAE,IAAI;YACrB,CAAe,gBAAE,IAAI;YACrB,CAAe,gBAAE,IAAI;YACrB,CAAgB,iBAAE,IAAI;YACtB,WAAW,EAAE,CAAK;YAClB,UAAU,EAAE,CAAO;YACnB,MAAM,EAAE,MAAM;QAChB,CAAC;IACH,CAAC;AACH,CAAC;;","sources":["packages/@react-aria/color/src/index.ts","packages/@react-aria/color/src/useColorArea.ts","packages/@react-aria/color/intl/*.js","packages/@react-aria/color/intl/ar-AE.json","packages/@react-aria/color/intl/bg-BG.json","packages/@react-aria/color/intl/cs-CZ.json","packages/@react-aria/color/intl/da-DK.json","packages/@react-aria/color/intl/de-DE.json","packages/@react-aria/color/intl/el-GR.json","packages/@react-aria/color/intl/en-US.json","packages/@react-aria/color/intl/es-ES.json","packages/@react-aria/color/intl/et-EE.json","packages/@react-aria/color/intl/fi-FI.json","packages/@react-aria/color/intl/fr-FR.json","packages/@react-aria/color/intl/he-IL.json","packages/@react-aria/color/intl/hr-HR.json","packages/@react-aria/color/intl/hu-HU.json","packages/@react-aria/color/intl/it-IT.json","packages/@react-aria/color/intl/ja-JP.json","packages/@react-aria/color/intl/ko-KR.json","packages/@react-aria/color/intl/lt-LT.json","packages/@react-aria/color/intl/lv-LV.json","packages/@react-aria/color/intl/nb-NO.json","packages/@react-aria/color/intl/nl-NL.json","packages/@react-aria/color/intl/pl-PL.json","packages/@react-aria/color/intl/pt-BR.json","packages/@react-aria/color/intl/pt-PT.json","packages/@react-aria/color/intl/ro-RO.json","packages/@react-aria/color/intl/ru-RU.json","packages/@react-aria/color/intl/sk-SK.json","packages/@react-aria/color/intl/sl-SI.json","packages/@react-aria/color/intl/sr-SP.json","packages/@react-aria/color/intl/sv-SE.json","packages/@react-aria/color/intl/tr-TR.json","packages/@react-aria/color/intl/uk-UA.json","packages/@react-aria/color/intl/zh-CN.json","packages/@react-aria/color/intl/zh-TW.json","packages/@react-aria/color/src/useColorSlider.ts","packages/@react-aria/color/src/useColorWheel.ts","packages/@react-aria/color/src/useColorField.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport * from './useColorArea';\nexport * from './useColorSlider';\nexport * from './useColorWheel';\nexport * from './useColorField';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaColorAreaProps} from '@react-types/color';\nimport {ColorAreaState} from '@react-stately/color';\nimport {focusWithoutScrolling, isAndroid, isIOS, mergeProps, useGlobalListeners, useLabels} from '@react-aria/utils';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {ChangeEvent, HTMLAttributes, InputHTMLAttributes, RefObject, useCallback, useRef} from 'react';\nimport {useKeyboard, useMove} from '@react-aria/interactions';\nimport {useLocale, useMessageFormatter} from '@react-aria/i18n';\nimport {useVisuallyHidden} from '@react-aria/visually-hidden';\n\ninterface ColorAreaAria {\n /** Props for the color area container element. */\n colorAreaProps: HTMLAttributes<HTMLElement>,\n /** Props for the color area gradient foreground element. */\n gradientProps: HTMLAttributes<HTMLElement>,\n /** Props for the thumb element. */\n thumbProps: HTMLAttributes<HTMLElement>,\n /** Props for the visually hidden horizontal range input element. */\n xInputProps: InputHTMLAttributes<HTMLInputElement>,\n /** Props for the visually hidden vertical range input element. */\n yInputProps: InputHTMLAttributes<HTMLInputElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a color wheel component.\n * Color wheels allow users to adjust the hue of an HSL or HSB color value on a circular track.\n */\nexport function useColorArea(props: AriaColorAreaProps, state: ColorAreaState, inputXRef: RefObject<HTMLElement>, inputYRef: RefObject<HTMLElement>, containerRef: RefObject<HTMLElement>): ColorAreaAria {\n let {\n isDisabled\n } = props;\n let formatMessage = useMessageFormatter(intlMessages);\n\n let {addGlobalListener, removeGlobalListener} = useGlobalListeners();\n\n let {direction, locale} = useLocale();\n\n let focusedInputRef = useRef<HTMLElement>(null);\n\n let focusInput = useCallback((inputRef:RefObject<HTMLElement> = inputXRef) => {\n if (inputRef.current) {\n focusWithoutScrolling(inputRef.current);\n }\n }, [inputXRef]);\n\n let stateRef = useRef<ColorAreaState>(null);\n stateRef.current = state;\n let {xChannel, yChannel} = stateRef.current.channels;\n let xChannelStep = stateRef.current.xChannelStep;\n let yChannelStep = stateRef.current.xChannelStep;\n\n let currentPosition = useRef<{x: number, y: number}>(null);\n\n let {keyboardProps} = useKeyboard({\n onKeyDown(e) {\n // these are the cases that useMove doesn't handle\n if (!/^(PageUp|PageDown|Home|End)$/.test(e.key)) {\n e.continuePropagation();\n return;\n }\n // same handling as useMove, don't need to stop propagation, useKeyboard will do that for us\n e.preventDefault();\n // remember to set this and unset it so that onChangeEnd is fired\n stateRef.current.setDragging(true);\n switch (e.key) {\n case 'PageUp':\n stateRef.current.incrementY(stateRef.current.yChannelPageStep);\n focusedInputRef.current = inputYRef.current;\n break;\n case 'PageDown':\n stateRef.current.decrementY(stateRef.current.yChannelPageStep);\n focusedInputRef.current = inputYRef.current;\n break;\n case 'Home':\n direction === 'rtl' ? stateRef.current.incrementX(stateRef.current.xChannelPageStep) : stateRef.current.decrementX(stateRef.current.xChannelPageStep);\n focusedInputRef.current = inputXRef.current;\n break;\n case 'End':\n direction === 'rtl' ? stateRef.current.decrementX(stateRef.current.xChannelPageStep) : stateRef.current.incrementX(stateRef.current.xChannelPageStep);\n focusedInputRef.current = inputXRef.current;\n break;\n }\n stateRef.current.setDragging(false);\n if (focusedInputRef.current) {\n focusInput(focusedInputRef.current ? focusedInputRef : inputXRef);\n focusedInputRef.current = undefined;\n }\n }\n });\n\n let moveHandler = {\n onMoveStart() {\n currentPosition.current = null;\n stateRef.current.setDragging(true);\n },\n onMove({deltaX, deltaY, pointerType, shiftKey}) {\n let {\n incrementX,\n decrementX,\n incrementY,\n decrementY,\n xChannelPageStep,\n xChannelStep,\n yChannelPageStep,\n yChannelStep,\n getThumbPosition,\n setColorFromPoint\n } = stateRef.current;\n if (currentPosition.current == null) {\n currentPosition.current = getThumbPosition();\n }\n let {width, height} = containerRef.current.getBoundingClientRect();\n if (pointerType === 'keyboard') {\n let deltaXValue = shiftKey && xChannelPageStep > xChannelStep ? xChannelPageStep : xChannelStep;\n let deltaYValue = shiftKey && yChannelPageStep > yChannelStep ? yChannelPageStep : yChannelStep;\n if ((deltaX > 0 && direction === 'ltr') || (deltaX < 0 && direction === 'rtl')) {\n incrementX(deltaXValue);\n } else if ((deltaX < 0 && direction === 'ltr') || (deltaX > 0 && direction === 'rtl')) {\n decrementX(deltaXValue);\n } else if (deltaY > 0) {\n decrementY(deltaYValue);\n } else if (deltaY < 0) {\n incrementY(deltaYValue);\n }\n // set the focused input based on which axis has the greater delta\n focusedInputRef.current = (deltaX !== 0 || deltaY !== 0) && Math.abs(deltaY) > Math.abs(deltaX) ? inputYRef.current : inputXRef.current;\n } else {\n currentPosition.current.x += (direction === 'rtl' ? -1 : 1) * deltaX / width ;\n currentPosition.current.y += deltaY / height;\n setColorFromPoint(currentPosition.current.x, currentPosition.current.y);\n }\n },\n onMoveEnd() {\n isOnColorArea.current = undefined;\n stateRef.current.setDragging(false);\n focusInput(focusedInputRef.current ? focusedInputRef : inputXRef);\n focusedInputRef.current = undefined;\n }\n };\n let {moveProps: movePropsThumb} = useMove(moveHandler);\n\n let currentPointer = useRef<number | null | undefined>(undefined);\n let isOnColorArea = useRef<boolean>(false);\n let {moveProps: movePropsContainer} = useMove({\n onMoveStart() {\n if (isOnColorArea.current) {\n moveHandler.onMoveStart();\n }\n },\n onMove(e) {\n if (isOnColorArea.current) {\n moveHandler.onMove(e);\n }\n },\n onMoveEnd() {\n if (isOnColorArea.current) {\n moveHandler.onMoveEnd();\n }\n }\n });\n\n let onThumbDown = (id: number | null) => {\n if (!state.isDragging) {\n currentPointer.current = id;\n focusInput();\n state.setDragging(true);\n if (typeof PointerEvent !== 'undefined') {\n addGlobalListener(window, 'pointerup', onThumbUp, false);\n } else {\n addGlobalListener(window, 'mouseup', onThumbUp, false);\n addGlobalListener(window, 'touchend', onThumbUp, false);\n }\n }\n };\n\n let onThumbUp = (e) => {\n let id = e.pointerId ?? e.changedTouches?.[0].identifier;\n if (id === currentPointer.current) {\n focusInput();\n state.setDragging(false);\n currentPointer.current = undefined;\n isOnColorArea.current = false;\n\n if (typeof PointerEvent !== 'undefined') {\n removeGlobalListener(window, 'pointerup', onThumbUp, false);\n } else {\n removeGlobalListener(window, 'mouseup', onThumbUp, false);\n removeGlobalListener(window, 'touchend', onThumbUp, false);\n }\n }\n };\n\n let onColorAreaDown = (colorArea: Element, id: number | null, clientX: number, clientY: number) => {\n let rect = colorArea.getBoundingClientRect();\n let {width, height} = rect;\n let x = (clientX - rect.x) / width;\n let y = (clientY - rect.y) / height;\n if (direction === 'rtl') {\n x = 1 - x;\n }\n if (x >= 0 && x <= 1 && y >= 0 && y <= 1 && !state.isDragging && currentPointer.current === undefined) {\n isOnColorArea.current = true;\n currentPointer.current = id;\n state.setColorFromPoint(x, y);\n\n focusInput();\n state.setDragging(true);\n\n if (typeof PointerEvent !== 'undefined') {\n addGlobalListener(window, 'pointerup', onColorAreaUp, false);\n } else {\n addGlobalListener(window, 'mouseup', onColorAreaUp, false);\n addGlobalListener(window, 'touchend', onColorAreaUp, false);\n }\n }\n };\n\n let onColorAreaUp = (e) => {\n let id = e.pointerId ?? e.changedTouches?.[0].identifier;\n if (isOnColorArea.current && id === currentPointer.current) {\n isOnColorArea.current = false;\n currentPointer.current = undefined;\n state.setDragging(false);\n focusInput();\n\n if (typeof PointerEvent !== 'undefined') {\n removeGlobalListener(window, 'pointerup', onColorAreaUp, false);\n } else {\n removeGlobalListener(window, 'mouseup', onColorAreaUp, false);\n removeGlobalListener(window, 'touchend', onColorAreaUp, false);\n }\n }\n };\n\n let colorAreaInteractions = isDisabled ? {} : mergeProps({\n ...(typeof PointerEvent !== 'undefined' ? {\n onPointerDown: (e: React.PointerEvent) => {\n if (e.pointerType === 'mouse' && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) {\n return;\n }\n onColorAreaDown(e.currentTarget, e.pointerId, e.clientX, e.clientY);\n }} : {\n onMouseDown: (e: React.MouseEvent) => {\n if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) {\n return;\n }\n onColorAreaDown(e.currentTarget, undefined, e.clientX, e.clientY);\n },\n onTouchStart: (e: React.TouchEvent) => {\n onColorAreaDown(e.currentTarget, e.changedTouches[0].identifier, e.changedTouches[0].clientX, e.changedTouches[0].clientY);\n }\n })\n }, movePropsContainer);\n\n let thumbInteractions = isDisabled ? {} : mergeProps({\n ...(typeof PointerEvent !== 'undefined' ? {\n onPointerDown: (e: React.PointerEvent) => {\n if (e.pointerType === 'mouse' && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) {\n return;\n }\n onThumbDown(e.pointerId);\n }} : {\n onMouseDown: (e: React.MouseEvent) => {\n if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) {\n return;\n }\n onThumbDown(undefined);\n },\n onTouchStart: (e: React.TouchEvent) => {\n onThumbDown(e.changedTouches[0].identifier);\n }\n })\n }, keyboardProps, movePropsThumb);\n\n let isMobile = isIOS() || isAndroid();\n\n let xInputLabellingProps = useLabels({\n ...props,\n 'aria-label': isMobile ? state.value.getChannelName(xChannel, locale) : formatMessage('x/y', {x: state.value.getChannelName(xChannel, locale), y: state.value.getChannelName(yChannel, locale)})\n });\n\n let yInputLabellingProps = useLabels({\n ...props,\n 'aria-label': isMobile ? state.value.getChannelName(yChannel, locale) : formatMessage('x/y', {x: state.value.getChannelName(xChannel, locale), y: state.value.getChannelName(yChannel, locale)})\n });\n\n let colorAriaLabellingProps = useLabels(props);\n\n let getValueTitle = () => [\n formatMessage('colorNameAndValue', {name: state.value.getChannelName('red', locale), value: state.value.formatChannelValue('red', locale)}),\n formatMessage('colorNameAndValue', {name: state.value.getChannelName('green', locale), value: state.value.formatChannelValue('green', locale)}),\n formatMessage('colorNameAndValue', {name: state.value.getChannelName('blue', locale), value: state.value.formatChannelValue('blue', locale)})\n ].join(', ');\n\n let ariaRoleDescription = isMobile ? null : formatMessage('twoDimensionalSlider');\n\n let {visuallyHiddenProps} = useVisuallyHidden({style: {\n opacity: '0.0001',\n width: '100%',\n height: '100%',\n pointerEvents: 'none'\n }});\n\n return {\n colorAreaProps: {\n ...colorAriaLabellingProps,\n ...colorAreaInteractions,\n role: 'group'\n },\n gradientProps: {\n role: 'presentation'\n },\n thumbProps: {\n ...thumbInteractions,\n role: 'presentation'\n },\n xInputProps: {\n ...xInputLabellingProps,\n ...visuallyHiddenProps,\n type: 'range',\n min: state.value.getChannelRange(xChannel).minValue,\n max: state.value.getChannelRange(xChannel).maxValue,\n step: xChannelStep,\n 'aria-roledescription': ariaRoleDescription,\n 'aria-valuetext': (\n isMobile ?\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(xChannel, locale), value: state.value.formatChannelValue(xChannel, locale)})\n :\n [\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(xChannel, locale), value: state.value.formatChannelValue(xChannel, locale)}),\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(yChannel, locale), value: state.value.formatChannelValue(yChannel, locale)})\n ].join(', ')\n ),\n title: getValueTitle(),\n disabled: isDisabled,\n value: state.value.getChannelValue(xChannel),\n tabIndex: 0,\n onChange: (e: ChangeEvent<HTMLInputElement>) => {\n state.setXValue(parseFloat(e.target.value));\n }\n },\n yInputProps: {\n ...yInputLabellingProps,\n ...visuallyHiddenProps,\n type: 'range',\n min: state.value.getChannelRange(yChannel).minValue,\n max: state.value.getChannelRange(yChannel).maxValue,\n step: yChannelStep,\n 'aria-roledescription': ariaRoleDescription,\n 'aria-valuetext': (\n isMobile ?\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(yChannel, locale), value: state.value.formatChannelValue(yChannel, locale)})\n :\n [\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(yChannel, locale), value: state.value.formatChannelValue(yChannel, locale)}),\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(xChannel, locale), value: state.value.formatChannelValue(xChannel, locale)})\n ].join(', ')\n ),\n 'aria-orientation': 'vertical',\n title: getValueTitle(),\n disabled: isDisabled,\n value: state.value.getChannelValue(yChannel),\n tabIndex: -1,\n onChange: (e: ChangeEvent<HTMLInputElement>) => {\n state.setYValue(parseFloat(e.target.value));\n }\n }\n };\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"twoDimensionalSlider\": \"شريط تمرير ثنائي الأبعاد\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D плъзгач\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D posuvník\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-skyder\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-Schieberegler\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Ρυθμιστικό 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D slider\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Control deslizante en 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-liugur\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-liukusäädin\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Curseur 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"מחוון דו-ממדי\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D kliznik\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D csúszka\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Dispositivo di scorrimento 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D スライダー\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D 슬라이더\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D slankiklis\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Plaknes slīdnis\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-glidebryter\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-schuifregelaar\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Suwak 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Controle deslizante 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Controlo de deslize 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Cursor 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Двумерный ползунок\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D jazdec\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-drsnik\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D клизач\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-reglage\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2B slayt gösterisi\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Повзунок 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D 滑块\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D 滑桿\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaColorSliderProps} from '@react-types/color';\nimport {ColorSliderState} from '@react-stately/color';\nimport {HTMLAttributes, RefObject} from 'react';\nimport {mergeProps} from '@react-aria/utils';\nimport {useLocale} from '@react-aria/i18n';\nimport {useSlider, useSliderThumb} from '@react-aria/slider';\n\ninterface ColorSliderAriaOptions extends AriaColorSliderProps {\n /** A ref for the track element. */\n trackRef: RefObject<HTMLElement>,\n /** A ref for the input element. */\n inputRef: RefObject<HTMLInputElement>\n}\n\ninterface ColorSliderAria {\n /** Props for the label element. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the track element. */\n trackProps: HTMLAttributes<HTMLElement>,\n /** Props for the thumb element. */\n thumbProps: HTMLAttributes<HTMLElement>,\n /** Props for the visually hidden range input element. */\n inputProps: HTMLAttributes<HTMLElement>,\n /** Props for the output element, displaying the value of the color slider. */\n outputProps: HTMLAttributes<HTMLElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a color slider component.\n * Color sliders allow users to adjust an individual channel of a color value.\n */\nexport function useColorSlider(props: ColorSliderAriaOptions, state: ColorSliderState): ColorSliderAria {\n let {trackRef, inputRef, orientation, channel, 'aria-label': ariaLabel} = props;\n\n let {locale, direction} = useLocale();\n\n // Provide a default aria-label if there is no other label provided.\n if (!props.label && !ariaLabel && !props['aria-labelledby']) {\n ariaLabel = state.value.getChannelName(channel, locale);\n }\n\n // @ts-ignore - ignore unused incompatible props\n let {groupProps, trackProps, labelProps, outputProps} = useSlider({...props, 'aria-label': ariaLabel}, state, trackRef);\n let {inputProps, thumbProps} = useSliderThumb({\n index: 0,\n orientation,\n isDisabled: props.isDisabled,\n trackRef,\n inputRef\n }, state);\n\n let generateBackground = () => {\n let value = state.getDisplayColor();\n let to: string;\n if (orientation === 'vertical') {\n to = 'top';\n } else if (direction === 'ltr') {\n to = 'right';\n } else {\n to = 'left';\n }\n switch (channel) {\n case 'hue':\n return `linear-gradient(to ${to}, rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)`;\n case 'lightness': {\n // We have to add an extra color stop in the middle so that the hue shows up at all.\n // Otherwise it will always just be black to white.\n let min = state.getThumbMinValue(0);\n let max = state.getThumbMaxValue(0);\n let start = value.withChannelValue(channel, min).toString('css');\n let middle = value.withChannelValue(channel, (max - min) / 2).toString('css');\n let end = value.withChannelValue(channel, max).toString('css');\n return `linear-gradient(to ${to}, ${start}, ${middle}, ${end})`;\n }\n case 'saturation':\n case 'brightness':\n case 'red':\n case 'green':\n case 'blue':\n case 'alpha': {\n let start = value.withChannelValue(channel, state.getThumbMinValue(0)).toString('css');\n let end = value.withChannelValue(channel, state.getThumbMaxValue(0)).toString('css');\n return `linear-gradient(to ${to}, ${start}, ${end})`;\n }\n default:\n throw new Error('Unknown color channel: ' + channel);\n }\n };\n\n let thumbPosition = state.getThumbPercent(0);\n if (orientation === 'vertical' || direction === 'rtl') {\n thumbPosition = 1 - thumbPosition;\n }\n\n return {\n trackProps: {\n ...mergeProps(groupProps, trackProps),\n style: {\n position: 'relative',\n touchAction: 'none',\n background: generateBackground()\n }\n },\n inputProps,\n thumbProps: {\n ...thumbProps,\n style: {\n touchAction: 'none',\n position: 'absolute',\n [orientation === 'vertical' ? 'top' : 'left']: `${thumbPosition * 100}%`,\n transform: 'translate(-50%, -50%)'\n }\n },\n labelProps,\n outputProps\n };\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaColorWheelProps} from '@react-types/color';\nimport {ColorWheelState} from '@react-stately/color';\nimport {focusWithoutScrolling, mergeProps, useGlobalListeners, useLabels} from '@react-aria/utils';\nimport React, {ChangeEvent, HTMLAttributes, InputHTMLAttributes, RefObject, useCallback, useRef} from 'react';\nimport {useKeyboard, useMove} from '@react-aria/interactions';\nimport {useLocale} from '@react-aria/i18n';\n\ninterface ColorWheelAriaProps extends AriaColorWheelProps {\n /** The outer radius of the color wheel. */\n outerRadius: number,\n /** The inner radius of the color wheel. */\n innerRadius: number\n}\n\ninterface ColorWheelAria {\n /** Props for the track element. */\n trackProps: HTMLAttributes<HTMLElement>,\n /** Props for the thumb element. */\n thumbProps: HTMLAttributes<HTMLElement>,\n /** Props for the visually hidden range input element. */\n inputProps: InputHTMLAttributes<HTMLInputElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a color wheel component.\n * Color wheels allow users to adjust the hue of an HSL or HSB color value on a circular track.\n */\nexport function useColorWheel(props: ColorWheelAriaProps, state: ColorWheelState, inputRef: RefObject<HTMLElement>): ColorWheelAria {\n let {\n isDisabled,\n step = 1,\n innerRadius,\n outerRadius,\n 'aria-label': ariaLabel\n } = props;\n\n let {addGlobalListener, removeGlobalListener} = useGlobalListeners();\n\n let thumbRadius = (innerRadius + outerRadius) / 2;\n\n let focusInput = useCallback(() => {\n if (inputRef.current) {\n focusWithoutScrolling(inputRef.current);\n }\n }, [inputRef]);\n\n let stateRef = useRef<ColorWheelState>(null);\n stateRef.current = state;\n\n let currentPosition = useRef<{x: number, y: number}>(null);\n\n let {keyboardProps} = useKeyboard({\n onKeyDown(e) {\n // these are the cases that useMove doesn't handle\n if (!/^(PageUp|PageDown)$/.test(e.key)) {\n e.continuePropagation();\n return;\n }\n // same handling as useMove, don't need to stop propagation, useKeyboard will do that for us\n e.preventDefault();\n // remember to set this and unset it so that onChangeEnd is fired\n stateRef.current.setDragging(true);\n switch (e.key) {\n case 'PageUp':\n e.preventDefault();\n state.increment(stateRef.current.pageStep);\n break;\n case 'PageDown':\n e.preventDefault();\n state.decrement(stateRef.current.pageStep);\n break;\n }\n stateRef.current.setDragging(false);\n }\n });\n\n let moveHandler = {\n onMoveStart() {\n currentPosition.current = null;\n state.setDragging(true);\n },\n onMove({deltaX, deltaY, pointerType, shiftKey}) {\n if (currentPosition.current == null) {\n currentPosition.current = stateRef.current.getThumbPosition(thumbRadius);\n }\n currentPosition.current.x += deltaX;\n currentPosition.current.y += deltaY;\n if (pointerType === 'keyboard') {\n if (deltaX > 0 || deltaY < 0) {\n state.increment(shiftKey ? stateRef.current.pageStep : stateRef.current.step);\n } else if (deltaX < 0 || deltaY > 0) {\n state.decrement(shiftKey ? stateRef.current.pageStep : stateRef.current.step);\n }\n } else {\n stateRef.current.setHueFromPoint(currentPosition.current.x, currentPosition.current.y, thumbRadius);\n }\n },\n onMoveEnd() {\n isOnTrack.current = undefined;\n state.setDragging(false);\n focusInput();\n }\n };\n let {moveProps: movePropsThumb} = useMove(moveHandler);\n\n let currentPointer = useRef<number | null | undefined>(undefined);\n let isOnTrack = useRef<boolean>(false);\n let {moveProps: movePropsContainer} = useMove({\n onMoveStart() {\n if (isOnTrack.current) {\n moveHandler.onMoveStart();\n }\n },\n onMove(e) {\n if (isOnTrack.current) {\n moveHandler.onMove(e);\n }\n },\n onMoveEnd() {\n if (isOnTrack.current) {\n moveHandler.onMoveEnd();\n }\n }\n });\n\n let onThumbDown = (id: number | null) => {\n if (!state.isDragging) {\n currentPointer.current = id;\n focusInput();\n state.setDragging(true);\n\n if (typeof PointerEvent !== 'undefined') {\n addGlobalListener(window, 'pointerup', onThumbUp, false);\n } else {\n addGlobalListener(window, 'mouseup', onThumbUp, false);\n addGlobalListener(window, 'touchend', onThumbUp, false);\n }\n }\n };\n\n let onThumbUp = (e) => {\n let id = e.pointerId ?? e.changedTouches?.[0].identifier;\n if (id === currentPointer.current) {\n focusInput();\n state.setDragging(false);\n currentPointer.current = undefined;\n isOnTrack.current = false;\n\n if (typeof PointerEvent !== 'undefined') {\n removeGlobalListener(window, 'pointerup', onThumbUp, false);\n } else {\n removeGlobalListener(window, 'mouseup', onThumbUp, false);\n removeGlobalListener(window, 'touchend', onThumbUp, false);\n }\n }\n };\n\n let onTrackDown = (track: Element, id: number | null, pageX: number, pageY: number) => {\n let rect = track.getBoundingClientRect();\n let x = pageX - rect.x - rect.width / 2;\n let y = pageY - rect.y - rect.height / 2;\n let radius = Math.sqrt(x * x + y * y);\n if (innerRadius < radius && radius < outerRadius && !state.isDragging && currentPointer.current === undefined) {\n isOnTrack.current = true;\n currentPointer.current = id;\n stateRef.current.setHueFromPoint(x, y, radius);\n\n focusInput();\n state.setDragging(true);\n\n if (typeof PointerEvent !== 'undefined') {\n addGlobalListener(window, 'pointerup', onTrackUp, false);\n } else {\n addGlobalListener(window, 'mouseup', onTrackUp, false);\n addGlobalListener(window, 'touchend', onTrackUp, false);\n }\n }\n };\n\n let onTrackUp = (e) => {\n let id = e.pointerId ?? e.changedTouches?.[0].identifier;\n if (isOnTrack.current && id === currentPointer.current) {\n isOnTrack.current = false;\n currentPointer.current = undefined;\n state.setDragging(false);\n focusInput();\n\n\n if (typeof PointerEvent !== 'undefined') {\n removeGlobalListener(window, 'pointerup', onTrackUp, false);\n } else {\n removeGlobalListener(window, 'mouseup', onTrackUp, false);\n removeGlobalListener(window, 'touchend', onTrackUp, false);\n }\n }\n };\n\n let trackInteractions = isDisabled ? {} : mergeProps({\n ...(typeof PointerEvent !== 'undefined' ? {\n onPointerDown: (e: React.PointerEvent) => {\n if (e.pointerType === 'mouse' && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) {\n return;\n }\n onTrackDown(e.currentTarget, e.pointerId, e.clientX, e.clientY);\n }} : {\n onMouseDown: (e: React.MouseEvent) => {\n if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) {\n return;\n }\n onTrackDown(e.currentTarget, undefined, e.clientX, e.clientY);\n },\n onTouchStart: (e: React.TouchEvent) => {\n onTrackDown(e.currentTarget, e.changedTouches[0].identifier, e.changedTouches[0].clientX, e.changedTouches[0].clientY);\n }\n })\n }, movePropsContainer);\n\n let thumbInteractions = isDisabled ? {} : mergeProps({\n onMouseDown: (e: React.MouseEvent) => {\n if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) {\n return;\n }\n onThumbDown(undefined);\n },\n onPointerDown: (e: React.PointerEvent) => {\n if (e.pointerType === 'mouse' && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) {\n return;\n }\n onThumbDown(e.pointerId);\n },\n onTouchStart: (e: React.TouchEvent) => {\n onThumbDown(e.changedTouches[0].identifier);\n }\n }, keyboardProps, movePropsThumb);\n let {x, y} = state.getThumbPosition(thumbRadius);\n\n // Provide a default aria-label if none is given\n let {locale} = useLocale();\n if (ariaLabel == null && props['aria-labelledby'] == null) {\n ariaLabel = state.value.getChannelName('hue', locale);\n }\n\n let inputLabellingProps = useLabels({\n ...props,\n 'aria-label': ariaLabel\n });\n\n return {\n trackProps: {\n ...trackInteractions,\n style: {\n position: 'relative',\n touchAction: 'none',\n width: outerRadius * 2,\n height: outerRadius * 2,\n background: `\n conic-gradient(\n from 90deg,\n hsl(0, 100%, 50%),\n hsl(30, 100%, 50%),\n hsl(60, 100%, 50%),\n hsl(90, 100%, 50%),\n hsl(120, 100%, 50%),\n hsl(150, 100%, 50%),\n hsl(180, 100%, 50%),\n hsl(210, 100%, 50%),\n hsl(240, 100%, 50%),\n hsl(270, 100%, 50%),\n hsl(300, 100%, 50%),\n hsl(330, 100%, 50%),\n hsl(360, 100%, 50%)\n )\n `,\n clipPath: `path(evenodd, \"${circlePath(outerRadius, outerRadius, outerRadius)} ${circlePath(outerRadius, outerRadius, innerRadius)}\")`\n }\n },\n thumbProps: {\n ...thumbInteractions,\n style: {\n position: 'absolute',\n left: '50%',\n top: '50%',\n transform: `translate(calc(${x}px - 50%), calc(${y}px - 50%))`,\n touchAction: 'none'\n }\n },\n inputProps: mergeProps(\n inputLabellingProps,\n {\n type: 'range',\n min: '0',\n max: '360',\n step: String(step),\n 'aria-valuetext': state.value.formatChannelValue('hue', locale),\n disabled: isDisabled,\n value: `${state.value.getChannelValue('hue')}`,\n onChange: (e: ChangeEvent<HTMLInputElement>) => {\n state.setHue(parseFloat(e.target.value));\n }\n }\n )\n };\n}\n\n// Creates an SVG path string for a circle.\nfunction circlePath(cx: number, cy: number, r: number) {\n return `M ${cx}, ${cy} m ${-r}, 0 a ${r}, ${r}, 0, 1, 0, ${r * 2}, 0 a ${r}, ${r}, 0, 1, 0 ${-r * 2}, 0`;\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaColorFieldProps} from '@react-types/color';\nimport {ColorFieldState} from '@react-stately/color';\nimport {\n HTMLAttributes,\n LabelHTMLAttributes,\n RefObject,\n useCallback,\n useState\n} from 'react';\nimport {mergeProps, useId} from '@react-aria/utils';\nimport {useFocusWithin, useScrollWheel} from '@react-aria/interactions';\nimport {useFormattedTextField} from '@react-aria/textfield';\nimport {useSpinButton} from '@react-aria/spinbutton';\n\ninterface ColorFieldAria {\n /** Props for the label element. */\n labelProps: LabelHTMLAttributes<HTMLLabelElement>,\n /** Props for the input element. */\n inputProps: HTMLAttributes<HTMLInputElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a color field component.\n * Color fields allow users to enter and adjust a hex color value.\n */\nexport function useColorField(\n props: AriaColorFieldProps,\n state: ColorFieldState,\n ref: RefObject<HTMLInputElement>\n): ColorFieldAria {\n let {\n isDisabled,\n isReadOnly,\n isRequired\n } = props;\n\n let {\n colorValue,\n inputValue,\n commit,\n increment,\n decrement,\n incrementToMax,\n decrementToMin\n } = state;\n\n let inputId = useId();\n let {spinButtonProps} = useSpinButton(\n {\n isDisabled,\n isReadOnly,\n isRequired,\n maxValue: 0xFFFFFF,\n minValue: 0,\n onIncrement: increment,\n onIncrementToMax: incrementToMax,\n onDecrement: decrement,\n onDecrementToMin: decrementToMin,\n value: colorValue ? colorValue.toHexInt() : undefined,\n textValue: colorValue ? colorValue.toString('hex') : undefined\n }\n );\n\n let [focusWithin, setFocusWithin] = useState(false);\n let {focusWithinProps} = useFocusWithin({isDisabled, onFocusWithinChange: setFocusWithin});\n\n let onWheel = useCallback((e) => {\n if (Math.abs(e.deltaY) <= Math.abs(e.deltaX)) {\n return;\n }\n if (e.deltaY > 0) {\n increment();\n } else if (e.deltaY < 0) {\n decrement();\n }\n }, [isReadOnly, isDisabled, decrement, increment]);\n // If the input isn't supposed to receive input, disable scrolling.\n let scrollingDisabled = isDisabled || isReadOnly || !focusWithin;\n useScrollWheel({onScroll: onWheel, isDisabled: scrollingDisabled}, ref);\n\n let onChange = value => {\n state.setInputValue(value);\n };\n\n let {labelProps, inputProps} = useFormattedTextField(\n mergeProps(props, {\n id: inputId,\n value: inputValue,\n defaultValue: undefined,\n type: 'text',\n autoComplete: 'off',\n onChange\n }), state, ref);\n\n return {\n labelProps,\n inputProps: mergeProps(inputProps, spinButtonProps, focusWithinProps, {\n role: 'textbox',\n 'aria-valuemax': null,\n 'aria-valuemin': null,\n 'aria-valuenow': null,\n 'aria-valuetext': null,\n autoCorrect: 'off',\n spellCheck: 'false',\n onBlur: commit\n })\n };\n}\n"],"names":[],"version":3,"file":"main.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAyH;;;;ACArJ,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA2G;;;;ACAvI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA4G;;;;ACAxI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA0G;;;;ACAtI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAiH;;;;ACA7I,yBAAc,GAAG,IAAI,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CAAK;kBACnB,QAAQ;IACV,CAAC,GAAG,KAAK,EAAE,GAAG;IAEhB,MAAM,CAAC,CAAC;oBACN,UAAU;QACV,UAAU,EAAE,gCAAU,CAAC,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,CAAC;YACrE,IAAI,EAAE,CAAS;YACf,CAAe,gBAAE,IAAI;YACrB,CAAe,gBAAE,IAAI;YACrB,CAAe,gBAAE,IAAI;YACrB,CAAgB,iBAAE,IAAI;YACtB,WAAW,EAAE,CAAK;YAClB,UAAU,EAAE,CAAO;YACnB,MAAM,EAAE,MAAM;QAChB,CAAC;IACH,CAAC;AACH,CAAC;;","sources":["packages/@react-aria/color/src/index.ts","packages/@react-aria/color/src/useColorArea.ts","packages/@react-aria/color/intl/*.js","packages/@react-aria/color/intl/ar-AE.json","packages/@react-aria/color/intl/bg-BG.json","packages/@react-aria/color/intl/cs-CZ.json","packages/@react-aria/color/intl/da-DK.json","packages/@react-aria/color/intl/de-DE.json","packages/@react-aria/color/intl/el-GR.json","packages/@react-aria/color/intl/en-US.json","packages/@react-aria/color/intl/es-ES.json","packages/@react-aria/color/intl/et-EE.json","packages/@react-aria/color/intl/fi-FI.json","packages/@react-aria/color/intl/fr-FR.json","packages/@react-aria/color/intl/he-IL.json","packages/@react-aria/color/intl/hr-HR.json","packages/@react-aria/color/intl/hu-HU.json","packages/@react-aria/color/intl/it-IT.json","packages/@react-aria/color/intl/ja-JP.json","packages/@react-aria/color/intl/ko-KR.json","packages/@react-aria/color/intl/lt-LT.json","packages/@react-aria/color/intl/lv-LV.json","packages/@react-aria/color/intl/nb-NO.json","packages/@react-aria/color/intl/nl-NL.json","packages/@react-aria/color/intl/pl-PL.json","packages/@react-aria/color/intl/pt-BR.json","packages/@react-aria/color/intl/pt-PT.json","packages/@react-aria/color/intl/ro-RO.json","packages/@react-aria/color/intl/ru-RU.json","packages/@react-aria/color/intl/sk-SK.json","packages/@react-aria/color/intl/sl-SI.json","packages/@react-aria/color/intl/sr-SP.json","packages/@react-aria/color/intl/sv-SE.json","packages/@react-aria/color/intl/tr-TR.json","packages/@react-aria/color/intl/uk-UA.json","packages/@react-aria/color/intl/zh-CN.json","packages/@react-aria/color/intl/zh-TW.json","packages/@react-aria/color/src/useColorSlider.ts","packages/@react-aria/color/src/useColorWheel.ts","packages/@react-aria/color/src/useColorField.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport * from './useColorArea';\nexport * from './useColorSlider';\nexport * from './useColorWheel';\nexport * from './useColorField';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaColorAreaProps} from '@react-types/color';\nimport {ColorAreaState} from '@react-stately/color';\nimport {focusWithoutScrolling, isAndroid, isIOS, mergeProps, useGlobalListeners, useLabels} from '@react-aria/utils';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {ChangeEvent, HTMLAttributes, InputHTMLAttributes, RefObject, useCallback, useRef} from 'react';\nimport {useKeyboard, useMove} from '@react-aria/interactions';\nimport {useLocale, useMessageFormatter} from '@react-aria/i18n';\nimport {useVisuallyHidden} from '@react-aria/visually-hidden';\n\ninterface ColorAreaAria {\n /** Props for the color area container element. */\n colorAreaProps: HTMLAttributes<HTMLElement>,\n /** Props for the color area gradient foreground element. */\n gradientProps: HTMLAttributes<HTMLElement>,\n /** Props for the thumb element. */\n thumbProps: HTMLAttributes<HTMLElement>,\n /** Props for the visually hidden horizontal range input element. */\n xInputProps: InputHTMLAttributes<HTMLInputElement>,\n /** Props for the visually hidden vertical range input element. */\n yInputProps: InputHTMLAttributes<HTMLInputElement>\n}\n\ninterface ColorAreaAriaProps extends AriaColorAreaProps {\n /** A ref to the input that represents the x axis of the color area. */\n inputXRef: RefObject<HTMLElement>,\n /** A ref to the input that represents the y axis of the color area. */\n inputYRef: RefObject<HTMLElement>,\n /** A ref to the color area containing element. */\n containerRef: RefObject<HTMLElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a color wheel component.\n * Color wheels allow users to adjust the hue of an HSL or HSB color value on a circular track.\n */\nexport function useColorArea(props: ColorAreaAriaProps, state: ColorAreaState): ColorAreaAria {\n let {\n isDisabled,\n inputXRef,\n inputYRef,\n containerRef\n } = props;\n let formatMessage = useMessageFormatter(intlMessages);\n\n let {addGlobalListener, removeGlobalListener} = useGlobalListeners();\n\n let {direction, locale} = useLocale();\n\n let focusedInputRef = useRef<HTMLElement>(null);\n\n let focusInput = useCallback((inputRef:RefObject<HTMLElement> = inputXRef) => {\n if (inputRef.current) {\n focusWithoutScrolling(inputRef.current);\n }\n }, [inputXRef]);\n\n let stateRef = useRef<ColorAreaState>(null);\n stateRef.current = state;\n let {xChannel, yChannel} = stateRef.current.channels;\n let xChannelStep = stateRef.current.xChannelStep;\n let yChannelStep = stateRef.current.xChannelStep;\n\n let currentPosition = useRef<{x: number, y: number}>(null);\n\n let {keyboardProps} = useKeyboard({\n onKeyDown(e) {\n // these are the cases that useMove doesn't handle\n if (!/^(PageUp|PageDown|Home|End)$/.test(e.key)) {\n e.continuePropagation();\n return;\n }\n // same handling as useMove, don't need to stop propagation, useKeyboard will do that for us\n e.preventDefault();\n // remember to set this and unset it so that onChangeEnd is fired\n stateRef.current.setDragging(true);\n switch (e.key) {\n case 'PageUp':\n stateRef.current.incrementY(stateRef.current.yChannelPageStep);\n focusedInputRef.current = inputYRef.current;\n break;\n case 'PageDown':\n stateRef.current.decrementY(stateRef.current.yChannelPageStep);\n focusedInputRef.current = inputYRef.current;\n break;\n case 'Home':\n direction === 'rtl' ? stateRef.current.incrementX(stateRef.current.xChannelPageStep) : stateRef.current.decrementX(stateRef.current.xChannelPageStep);\n focusedInputRef.current = inputXRef.current;\n break;\n case 'End':\n direction === 'rtl' ? stateRef.current.decrementX(stateRef.current.xChannelPageStep) : stateRef.current.incrementX(stateRef.current.xChannelPageStep);\n focusedInputRef.current = inputXRef.current;\n break;\n }\n stateRef.current.setDragging(false);\n if (focusedInputRef.current) {\n focusInput(focusedInputRef.current ? focusedInputRef : inputXRef);\n focusedInputRef.current = undefined;\n }\n }\n });\n\n let moveHandler = {\n onMoveStart() {\n currentPosition.current = null;\n stateRef.current.setDragging(true);\n },\n onMove({deltaX, deltaY, pointerType, shiftKey}) {\n let {\n incrementX,\n decrementX,\n incrementY,\n decrementY,\n xChannelPageStep,\n xChannelStep,\n yChannelPageStep,\n yChannelStep,\n getThumbPosition,\n setColorFromPoint\n } = stateRef.current;\n if (currentPosition.current == null) {\n currentPosition.current = getThumbPosition();\n }\n let {width, height} = containerRef.current.getBoundingClientRect();\n if (pointerType === 'keyboard') {\n let deltaXValue = shiftKey && xChannelPageStep > xChannelStep ? xChannelPageStep : xChannelStep;\n let deltaYValue = shiftKey && yChannelPageStep > yChannelStep ? yChannelPageStep : yChannelStep;\n if ((deltaX > 0 && direction === 'ltr') || (deltaX < 0 && direction === 'rtl')) {\n incrementX(deltaXValue);\n } else if ((deltaX < 0 && direction === 'ltr') || (deltaX > 0 && direction === 'rtl')) {\n decrementX(deltaXValue);\n } else if (deltaY > 0) {\n decrementY(deltaYValue);\n } else if (deltaY < 0) {\n incrementY(deltaYValue);\n }\n // set the focused input based on which axis has the greater delta\n focusedInputRef.current = (deltaX !== 0 || deltaY !== 0) && Math.abs(deltaY) > Math.abs(deltaX) ? inputYRef.current : inputXRef.current;\n } else {\n currentPosition.current.x += (direction === 'rtl' ? -1 : 1) * deltaX / width ;\n currentPosition.current.y += deltaY / height;\n setColorFromPoint(currentPosition.current.x, currentPosition.current.y);\n }\n },\n onMoveEnd() {\n isOnColorArea.current = undefined;\n stateRef.current.setDragging(false);\n focusInput(focusedInputRef.current ? focusedInputRef : inputXRef);\n focusedInputRef.current = undefined;\n }\n };\n let {moveProps: movePropsThumb} = useMove(moveHandler);\n\n let currentPointer = useRef<number | null | undefined>(undefined);\n let isOnColorArea = useRef<boolean>(false);\n let {moveProps: movePropsContainer} = useMove({\n onMoveStart() {\n if (isOnColorArea.current) {\n moveHandler.onMoveStart();\n }\n },\n onMove(e) {\n if (isOnColorArea.current) {\n moveHandler.onMove(e);\n }\n },\n onMoveEnd() {\n if (isOnColorArea.current) {\n moveHandler.onMoveEnd();\n }\n }\n });\n\n let onThumbDown = (id: number | null) => {\n if (!state.isDragging) {\n currentPointer.current = id;\n focusInput();\n state.setDragging(true);\n if (typeof PointerEvent !== 'undefined') {\n addGlobalListener(window, 'pointerup', onThumbUp, false);\n } else {\n addGlobalListener(window, 'mouseup', onThumbUp, false);\n addGlobalListener(window, 'touchend', onThumbUp, false);\n }\n }\n };\n\n let onThumbUp = (e) => {\n let id = e.pointerId ?? e.changedTouches?.[0].identifier;\n if (id === currentPointer.current) {\n focusInput();\n state.setDragging(false);\n currentPointer.current = undefined;\n isOnColorArea.current = false;\n\n if (typeof PointerEvent !== 'undefined') {\n removeGlobalListener(window, 'pointerup', onThumbUp, false);\n } else {\n removeGlobalListener(window, 'mouseup', onThumbUp, false);\n removeGlobalListener(window, 'touchend', onThumbUp, false);\n }\n }\n };\n\n let onColorAreaDown = (colorArea: Element, id: number | null, clientX: number, clientY: number) => {\n let rect = colorArea.getBoundingClientRect();\n let {width, height} = rect;\n let x = (clientX - rect.x) / width;\n let y = (clientY - rect.y) / height;\n if (direction === 'rtl') {\n x = 1 - x;\n }\n if (x >= 0 && x <= 1 && y >= 0 && y <= 1 && !state.isDragging && currentPointer.current === undefined) {\n isOnColorArea.current = true;\n currentPointer.current = id;\n state.setColorFromPoint(x, y);\n\n focusInput();\n state.setDragging(true);\n\n if (typeof PointerEvent !== 'undefined') {\n addGlobalListener(window, 'pointerup', onColorAreaUp, false);\n } else {\n addGlobalListener(window, 'mouseup', onColorAreaUp, false);\n addGlobalListener(window, 'touchend', onColorAreaUp, false);\n }\n }\n };\n\n let onColorAreaUp = (e) => {\n let id = e.pointerId ?? e.changedTouches?.[0].identifier;\n if (isOnColorArea.current && id === currentPointer.current) {\n isOnColorArea.current = false;\n currentPointer.current = undefined;\n state.setDragging(false);\n focusInput();\n\n if (typeof PointerEvent !== 'undefined') {\n removeGlobalListener(window, 'pointerup', onColorAreaUp, false);\n } else {\n removeGlobalListener(window, 'mouseup', onColorAreaUp, false);\n removeGlobalListener(window, 'touchend', onColorAreaUp, false);\n }\n }\n };\n\n let colorAreaInteractions = isDisabled ? {} : mergeProps({\n ...(typeof PointerEvent !== 'undefined' ? {\n onPointerDown: (e: React.PointerEvent) => {\n if (e.pointerType === 'mouse' && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) {\n return;\n }\n onColorAreaDown(e.currentTarget, e.pointerId, e.clientX, e.clientY);\n }} : {\n onMouseDown: (e: React.MouseEvent) => {\n if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) {\n return;\n }\n onColorAreaDown(e.currentTarget, undefined, e.clientX, e.clientY);\n },\n onTouchStart: (e: React.TouchEvent) => {\n onColorAreaDown(e.currentTarget, e.changedTouches[0].identifier, e.changedTouches[0].clientX, e.changedTouches[0].clientY);\n }\n })\n }, movePropsContainer);\n\n let thumbInteractions = isDisabled ? {} : mergeProps({\n ...(typeof PointerEvent !== 'undefined' ? {\n onPointerDown: (e: React.PointerEvent) => {\n if (e.pointerType === 'mouse' && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) {\n return;\n }\n onThumbDown(e.pointerId);\n }} : {\n onMouseDown: (e: React.MouseEvent) => {\n if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) {\n return;\n }\n onThumbDown(undefined);\n },\n onTouchStart: (e: React.TouchEvent) => {\n onThumbDown(e.changedTouches[0].identifier);\n }\n })\n }, keyboardProps, movePropsThumb);\n\n let isMobile = isIOS() || isAndroid();\n\n let xInputLabellingProps = useLabels({\n ...props,\n 'aria-label': isMobile ? state.value.getChannelName(xChannel, locale) : formatMessage('x/y', {x: state.value.getChannelName(xChannel, locale), y: state.value.getChannelName(yChannel, locale)})\n });\n\n let yInputLabellingProps = useLabels({\n ...props,\n 'aria-label': isMobile ? state.value.getChannelName(yChannel, locale) : formatMessage('x/y', {x: state.value.getChannelName(xChannel, locale), y: state.value.getChannelName(yChannel, locale)})\n });\n\n let colorAriaLabellingProps = useLabels(props);\n\n let getValueTitle = () => [\n formatMessage('colorNameAndValue', {name: state.value.getChannelName('red', locale), value: state.value.formatChannelValue('red', locale)}),\n formatMessage('colorNameAndValue', {name: state.value.getChannelName('green', locale), value: state.value.formatChannelValue('green', locale)}),\n formatMessage('colorNameAndValue', {name: state.value.getChannelName('blue', locale), value: state.value.formatChannelValue('blue', locale)})\n ].join(', ');\n\n let ariaRoleDescription = isMobile ? null : formatMessage('twoDimensionalSlider');\n\n let {visuallyHiddenProps} = useVisuallyHidden({style: {\n opacity: '0.0001',\n width: '100%',\n height: '100%',\n pointerEvents: 'none'\n }});\n\n return {\n colorAreaProps: {\n ...colorAriaLabellingProps,\n ...colorAreaInteractions,\n role: 'group'\n },\n gradientProps: {\n role: 'presentation'\n },\n thumbProps: {\n ...thumbInteractions,\n role: 'presentation'\n },\n xInputProps: {\n ...xInputLabellingProps,\n ...visuallyHiddenProps,\n type: 'range',\n min: state.value.getChannelRange(xChannel).minValue,\n max: state.value.getChannelRange(xChannel).maxValue,\n step: xChannelStep,\n 'aria-roledescription': ariaRoleDescription,\n 'aria-valuetext': (\n isMobile ?\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(xChannel, locale), value: state.value.formatChannelValue(xChannel, locale)})\n :\n [\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(xChannel, locale), value: state.value.formatChannelValue(xChannel, locale)}),\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(yChannel, locale), value: state.value.formatChannelValue(yChannel, locale)})\n ].join(', ')\n ),\n title: getValueTitle(),\n disabled: isDisabled,\n value: state.value.getChannelValue(xChannel),\n tabIndex: 0,\n onChange: (e: ChangeEvent<HTMLInputElement>) => {\n state.setXValue(parseFloat(e.target.value));\n }\n },\n yInputProps: {\n ...yInputLabellingProps,\n ...visuallyHiddenProps,\n type: 'range',\n min: state.value.getChannelRange(yChannel).minValue,\n max: state.value.getChannelRange(yChannel).maxValue,\n step: yChannelStep,\n 'aria-roledescription': ariaRoleDescription,\n 'aria-valuetext': (\n isMobile ?\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(yChannel, locale), value: state.value.formatChannelValue(yChannel, locale)})\n :\n [\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(yChannel, locale), value: state.value.formatChannelValue(yChannel, locale)}),\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(xChannel, locale), value: state.value.formatChannelValue(xChannel, locale)})\n ].join(', ')\n ),\n 'aria-orientation': 'vertical',\n title: getValueTitle(),\n disabled: isDisabled,\n value: state.value.getChannelValue(yChannel),\n tabIndex: -1,\n onChange: (e: ChangeEvent<HTMLInputElement>) => {\n state.setYValue(parseFloat(e.target.value));\n }\n }\n };\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"twoDimensionalSlider\": \"شريط تمرير ثنائي الأبعاد\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D плъзгач\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D posuvník\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-skyder\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-Schieberegler\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Ρυθμιστικό 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D slider\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Control deslizante en 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-liugur\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-liukusäädin\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Curseur 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"מחוון דו-ממדי\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D kliznik\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D csúszka\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Dispositivo di scorrimento 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D スライダー\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D 슬라이더\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D slankiklis\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Plaknes slīdnis\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-glidebryter\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-schuifregelaar\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Suwak 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Controle deslizante 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Controlo de deslize 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Cursor 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Двумерный ползунок\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D jazdec\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-drsnik\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D клизач\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-reglage\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2B slayt gösterisi\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Повзунок 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D 滑块\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D 滑桿\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaColorSliderProps} from '@react-types/color';\nimport {ColorSliderState} from '@react-stately/color';\nimport {HTMLAttributes, RefObject} from 'react';\nimport {mergeProps} from '@react-aria/utils';\nimport {useLocale} from '@react-aria/i18n';\nimport {useSlider, useSliderThumb} from '@react-aria/slider';\n\ninterface ColorSliderAriaOptions extends AriaColorSliderProps {\n /** A ref for the track element. */\n trackRef: RefObject<HTMLElement>,\n /** A ref for the input element. */\n inputRef: RefObject<HTMLInputElement>\n}\n\ninterface ColorSliderAria {\n /** Props for the label element. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the track element. */\n trackProps: HTMLAttributes<HTMLElement>,\n /** Props for the thumb element. */\n thumbProps: HTMLAttributes<HTMLElement>,\n /** Props for the visually hidden range input element. */\n inputProps: HTMLAttributes<HTMLElement>,\n /** Props for the output element, displaying the value of the color slider. */\n outputProps: HTMLAttributes<HTMLElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a color slider component.\n * Color sliders allow users to adjust an individual channel of a color value.\n */\nexport function useColorSlider(props: ColorSliderAriaOptions, state: ColorSliderState): ColorSliderAria {\n let {trackRef, inputRef, orientation, channel, 'aria-label': ariaLabel} = props;\n\n let {locale, direction} = useLocale();\n\n // Provide a default aria-label if there is no other label provided.\n if (!props.label && !ariaLabel && !props['aria-labelledby']) {\n ariaLabel = state.value.getChannelName(channel, locale);\n }\n\n // @ts-ignore - ignore unused incompatible props\n let {groupProps, trackProps, labelProps, outputProps} = useSlider({...props, 'aria-label': ariaLabel}, state, trackRef);\n let {inputProps, thumbProps} = useSliderThumb({\n index: 0,\n orientation,\n isDisabled: props.isDisabled,\n trackRef,\n inputRef\n }, state);\n\n let generateBackground = () => {\n let value = state.getDisplayColor();\n let to: string;\n if (orientation === 'vertical') {\n to = 'top';\n } else if (direction === 'ltr') {\n to = 'right';\n } else {\n to = 'left';\n }\n switch (channel) {\n case 'hue':\n return `linear-gradient(to ${to}, rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)`;\n case 'lightness': {\n // We have to add an extra color stop in the middle so that the hue shows up at all.\n // Otherwise it will always just be black to white.\n let min = state.getThumbMinValue(0);\n let max = state.getThumbMaxValue(0);\n let start = value.withChannelValue(channel, min).toString('css');\n let middle = value.withChannelValue(channel, (max - min) / 2).toString('css');\n let end = value.withChannelValue(channel, max).toString('css');\n return `linear-gradient(to ${to}, ${start}, ${middle}, ${end})`;\n }\n case 'saturation':\n case 'brightness':\n case 'red':\n case 'green':\n case 'blue':\n case 'alpha': {\n let start = value.withChannelValue(channel, state.getThumbMinValue(0)).toString('css');\n let end = value.withChannelValue(channel, state.getThumbMaxValue(0)).toString('css');\n return `linear-gradient(to ${to}, ${start}, ${end})`;\n }\n default:\n throw new Error('Unknown color channel: ' + channel);\n }\n };\n\n let thumbPosition = state.getThumbPercent(0);\n if (orientation === 'vertical' || direction === 'rtl') {\n thumbPosition = 1 - thumbPosition;\n }\n\n return {\n trackProps: {\n ...mergeProps(groupProps, trackProps),\n style: {\n position: 'relative',\n touchAction: 'none',\n background: generateBackground()\n }\n },\n inputProps,\n thumbProps: {\n ...thumbProps,\n style: {\n touchAction: 'none',\n position: 'absolute',\n [orientation === 'vertical' ? 'top' : 'left']: `${thumbPosition * 100}%`,\n transform: 'translate(-50%, -50%)'\n }\n },\n labelProps,\n outputProps\n };\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaColorWheelProps} from '@react-types/color';\nimport {ColorWheelState} from '@react-stately/color';\nimport {focusWithoutScrolling, mergeProps, useGlobalListeners, useLabels} from '@react-aria/utils';\nimport React, {ChangeEvent, HTMLAttributes, InputHTMLAttributes, RefObject, useCallback, useRef} from 'react';\nimport {useKeyboard, useMove} from '@react-aria/interactions';\nimport {useLocale} from '@react-aria/i18n';\n\ninterface ColorWheelAriaProps extends AriaColorWheelProps {\n /** The outer radius of the color wheel. */\n outerRadius: number,\n /** The inner radius of the color wheel. */\n innerRadius: number\n}\n\ninterface ColorWheelAria {\n /** Props for the track element. */\n trackProps: HTMLAttributes<HTMLElement>,\n /** Props for the thumb element. */\n thumbProps: HTMLAttributes<HTMLElement>,\n /** Props for the visually hidden range input element. */\n inputProps: InputHTMLAttributes<HTMLInputElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a color wheel component.\n * Color wheels allow users to adjust the hue of an HSL or HSB color value on a circular track.\n */\nexport function useColorWheel(props: ColorWheelAriaProps, state: ColorWheelState, inputRef: RefObject<HTMLElement>): ColorWheelAria {\n let {\n isDisabled,\n innerRadius,\n outerRadius,\n 'aria-label': ariaLabel\n } = props;\n\n let {addGlobalListener, removeGlobalListener} = useGlobalListeners();\n\n let thumbRadius = (innerRadius + outerRadius) / 2;\n\n let focusInput = useCallback(() => {\n if (inputRef.current) {\n focusWithoutScrolling(inputRef.current);\n }\n }, [inputRef]);\n\n let stateRef = useRef<ColorWheelState>(null);\n stateRef.current = state;\n\n let currentPosition = useRef<{x: number, y: number}>(null);\n\n let {keyboardProps} = useKeyboard({\n onKeyDown(e) {\n // these are the cases that useMove doesn't handle\n if (!/^(PageUp|PageDown)$/.test(e.key)) {\n e.continuePropagation();\n return;\n }\n // same handling as useMove, don't need to stop propagation, useKeyboard will do that for us\n e.preventDefault();\n // remember to set this and unset it so that onChangeEnd is fired\n stateRef.current.setDragging(true);\n switch (e.key) {\n case 'PageUp':\n e.preventDefault();\n state.increment(stateRef.current.pageStep);\n break;\n case 'PageDown':\n e.preventDefault();\n state.decrement(stateRef.current.pageStep);\n break;\n }\n stateRef.current.setDragging(false);\n }\n });\n\n let moveHandler = {\n onMoveStart() {\n currentPosition.current = null;\n state.setDragging(true);\n },\n onMove({deltaX, deltaY, pointerType, shiftKey}) {\n if (currentPosition.current == null) {\n currentPosition.current = stateRef.current.getThumbPosition(thumbRadius);\n }\n currentPosition.current.x += deltaX;\n currentPosition.current.y += deltaY;\n if (pointerType === 'keyboard') {\n if (deltaX > 0 || deltaY < 0) {\n state.increment(shiftKey ? stateRef.current.pageStep : stateRef.current.step);\n } else if (deltaX < 0 || deltaY > 0) {\n state.decrement(shiftKey ? stateRef.current.pageStep : stateRef.current.step);\n }\n } else {\n stateRef.current.setHueFromPoint(currentPosition.current.x, currentPosition.current.y, thumbRadius);\n }\n },\n onMoveEnd() {\n isOnTrack.current = undefined;\n state.setDragging(false);\n focusInput();\n }\n };\n let {moveProps: movePropsThumb} = useMove(moveHandler);\n\n let currentPointer = useRef<number | null | undefined>(undefined);\n let isOnTrack = useRef<boolean>(false);\n let {moveProps: movePropsContainer} = useMove({\n onMoveStart() {\n if (isOnTrack.current) {\n moveHandler.onMoveStart();\n }\n },\n onMove(e) {\n if (isOnTrack.current) {\n moveHandler.onMove(e);\n }\n },\n onMoveEnd() {\n if (isOnTrack.current) {\n moveHandler.onMoveEnd();\n }\n }\n });\n\n let onThumbDown = (id: number | null) => {\n if (!state.isDragging) {\n currentPointer.current = id;\n focusInput();\n state.setDragging(true);\n\n if (typeof PointerEvent !== 'undefined') {\n addGlobalListener(window, 'pointerup', onThumbUp, false);\n } else {\n addGlobalListener(window, 'mouseup', onThumbUp, false);\n addGlobalListener(window, 'touchend', onThumbUp, false);\n }\n }\n };\n\n let onThumbUp = (e) => {\n let id = e.pointerId ?? e.changedTouches?.[0].identifier;\n if (id === currentPointer.current) {\n focusInput();\n state.setDragging(false);\n currentPointer.current = undefined;\n isOnTrack.current = false;\n\n if (typeof PointerEvent !== 'undefined') {\n removeGlobalListener(window, 'pointerup', onThumbUp, false);\n } else {\n removeGlobalListener(window, 'mouseup', onThumbUp, false);\n removeGlobalListener(window, 'touchend', onThumbUp, false);\n }\n }\n };\n\n let onTrackDown = (track: Element, id: number | null, pageX: number, pageY: number) => {\n let rect = track.getBoundingClientRect();\n let x = pageX - rect.x - rect.width / 2;\n let y = pageY - rect.y - rect.height / 2;\n let radius = Math.sqrt(x * x + y * y);\n if (innerRadius < radius && radius < outerRadius && !state.isDragging && currentPointer.current === undefined) {\n isOnTrack.current = true;\n currentPointer.current = id;\n stateRef.current.setHueFromPoint(x, y, radius);\n\n focusInput();\n state.setDragging(true);\n\n if (typeof PointerEvent !== 'undefined') {\n addGlobalListener(window, 'pointerup', onTrackUp, false);\n } else {\n addGlobalListener(window, 'mouseup', onTrackUp, false);\n addGlobalListener(window, 'touchend', onTrackUp, false);\n }\n }\n };\n\n let onTrackUp = (e) => {\n let id = e.pointerId ?? e.changedTouches?.[0].identifier;\n if (isOnTrack.current && id === currentPointer.current) {\n isOnTrack.current = false;\n currentPointer.current = undefined;\n state.setDragging(false);\n focusInput();\n\n\n if (typeof PointerEvent !== 'undefined') {\n removeGlobalListener(window, 'pointerup', onTrackUp, false);\n } else {\n removeGlobalListener(window, 'mouseup', onTrackUp, false);\n removeGlobalListener(window, 'touchend', onTrackUp, false);\n }\n }\n };\n\n let trackInteractions = isDisabled ? {} : mergeProps({\n ...(typeof PointerEvent !== 'undefined' ? {\n onPointerDown: (e: React.PointerEvent) => {\n if (e.pointerType === 'mouse' && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) {\n return;\n }\n onTrackDown(e.currentTarget, e.pointerId, e.clientX, e.clientY);\n }} : {\n onMouseDown: (e: React.MouseEvent) => {\n if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) {\n return;\n }\n onTrackDown(e.currentTarget, undefined, e.clientX, e.clientY);\n },\n onTouchStart: (e: React.TouchEvent) => {\n onTrackDown(e.currentTarget, e.changedTouches[0].identifier, e.changedTouches[0].clientX, e.changedTouches[0].clientY);\n }\n })\n }, movePropsContainer);\n\n let thumbInteractions = isDisabled ? {} : mergeProps({\n onMouseDown: (e: React.MouseEvent) => {\n if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) {\n return;\n }\n onThumbDown(undefined);\n },\n onPointerDown: (e: React.PointerEvent) => {\n if (e.pointerType === 'mouse' && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) {\n return;\n }\n onThumbDown(e.pointerId);\n },\n onTouchStart: (e: React.TouchEvent) => {\n onThumbDown(e.changedTouches[0].identifier);\n }\n }, keyboardProps, movePropsThumb);\n let {x, y} = state.getThumbPosition(thumbRadius);\n\n // Provide a default aria-label if none is given\n let {locale} = useLocale();\n if (ariaLabel == null && props['aria-labelledby'] == null) {\n ariaLabel = state.value.getChannelName('hue', locale);\n }\n\n let inputLabellingProps = useLabels({\n ...props,\n 'aria-label': ariaLabel\n });\n\n let {minValue, maxValue, step} = state.value.getChannelRange('hue');\n return {\n trackProps: {\n ...trackInteractions,\n style: {\n position: 'relative',\n touchAction: 'none',\n width: outerRadius * 2,\n height: outerRadius * 2,\n background: `\n conic-gradient(\n from 90deg,\n hsl(0, 100%, 50%),\n hsl(30, 100%, 50%),\n hsl(60, 100%, 50%),\n hsl(90, 100%, 50%),\n hsl(120, 100%, 50%),\n hsl(150, 100%, 50%),\n hsl(180, 100%, 50%),\n hsl(210, 100%, 50%),\n hsl(240, 100%, 50%),\n hsl(270, 100%, 50%),\n hsl(300, 100%, 50%),\n hsl(330, 100%, 50%),\n hsl(360, 100%, 50%)\n )\n `,\n clipPath: `path(evenodd, \"${circlePath(outerRadius, outerRadius, outerRadius)} ${circlePath(outerRadius, outerRadius, innerRadius)}\")`\n }\n },\n thumbProps: {\n ...thumbInteractions,\n style: {\n position: 'absolute',\n left: '50%',\n top: '50%',\n transform: `translate(calc(${x}px - 50%), calc(${y}px - 50%))`,\n touchAction: 'none'\n }\n },\n inputProps: mergeProps(\n inputLabellingProps,\n {\n type: 'range',\n min: String(minValue),\n max: String(maxValue),\n step: String(step),\n 'aria-valuetext': state.value.formatChannelValue('hue', locale),\n disabled: isDisabled,\n value: `${state.value.getChannelValue('hue')}`,\n onChange: (e: ChangeEvent<HTMLInputElement>) => {\n state.setHue(parseFloat(e.target.value));\n }\n }\n )\n };\n}\n\n// Creates an SVG path string for a circle.\nfunction circlePath(cx: number, cy: number, r: number) {\n return `M ${cx}, ${cy} m ${-r}, 0 a ${r}, ${r}, 0, 1, 0, ${r * 2}, 0 a ${r}, ${r}, 0, 1, 0 ${-r * 2}, 0`;\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaColorFieldProps} from '@react-types/color';\nimport {ColorFieldState} from '@react-stately/color';\nimport {\n HTMLAttributes,\n LabelHTMLAttributes,\n RefObject,\n useCallback,\n useState\n} from 'react';\nimport {mergeProps, useId} from '@react-aria/utils';\nimport {useFocusWithin, useScrollWheel} from '@react-aria/interactions';\nimport {useFormattedTextField} from '@react-aria/textfield';\nimport {useSpinButton} from '@react-aria/spinbutton';\n\ninterface ColorFieldAria {\n /** Props for the label element. */\n labelProps: LabelHTMLAttributes<HTMLLabelElement>,\n /** Props for the input element. */\n inputProps: HTMLAttributes<HTMLInputElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a color field component.\n * Color fields allow users to enter and adjust a hex color value.\n */\nexport function useColorField(\n props: AriaColorFieldProps,\n state: ColorFieldState,\n ref: RefObject<HTMLInputElement>\n): ColorFieldAria {\n let {\n isDisabled,\n isReadOnly,\n isRequired\n } = props;\n\n let {\n colorValue,\n inputValue,\n commit,\n increment,\n decrement,\n incrementToMax,\n decrementToMin\n } = state;\n\n let inputId = useId();\n let {spinButtonProps} = useSpinButton(\n {\n isDisabled,\n isReadOnly,\n isRequired,\n maxValue: 0xFFFFFF,\n minValue: 0,\n onIncrement: increment,\n onIncrementToMax: incrementToMax,\n onDecrement: decrement,\n onDecrementToMin: decrementToMin,\n value: colorValue ? colorValue.toHexInt() : undefined,\n textValue: colorValue ? colorValue.toString('hex') : undefined\n }\n );\n\n let [focusWithin, setFocusWithin] = useState(false);\n let {focusWithinProps} = useFocusWithin({isDisabled, onFocusWithinChange: setFocusWithin});\n\n let onWheel = useCallback((e) => {\n if (Math.abs(e.deltaY) <= Math.abs(e.deltaX)) {\n return;\n }\n if (e.deltaY > 0) {\n increment();\n } else if (e.deltaY < 0) {\n decrement();\n }\n }, [decrement, increment]);\n // If the input isn't supposed to receive input, disable scrolling.\n let scrollingDisabled = isDisabled || isReadOnly || !focusWithin;\n useScrollWheel({onScroll: onWheel, isDisabled: scrollingDisabled}, ref);\n\n let onChange = value => {\n state.setInputValue(value);\n };\n\n let {labelProps, inputProps} = useFormattedTextField(\n mergeProps(props, {\n id: inputId,\n value: inputValue,\n defaultValue: undefined,\n type: 'text',\n autoComplete: 'off',\n onChange\n }), state, ref);\n\n return {\n labelProps,\n inputProps: mergeProps(inputProps, spinButtonProps, focusWithinProps, {\n role: 'textbox',\n 'aria-valuemax': null,\n 'aria-valuemin': null,\n 'aria-valuenow': null,\n 'aria-valuetext': null,\n autoCorrect: 'off',\n spellCheck: 'false',\n onBlur: commit\n })\n };\n}\n"],"names":[],"version":3,"file":"main.js.map"}
|
package/dist/module.js
CHANGED
|
@@ -196,8 +196,8 @@ $052cfdf4c32eb7c3$exports = {
|
|
|
196
196
|
|
|
197
197
|
|
|
198
198
|
|
|
199
|
-
function $60bd7d6e45dcddfa$export$2f92a7a615a014f6(props, state
|
|
200
|
-
let { isDisabled: isDisabled } = props;
|
|
199
|
+
function $60bd7d6e45dcddfa$export$2f92a7a615a014f6(props, state) {
|
|
200
|
+
let { isDisabled: isDisabled , inputXRef: inputXRef , inputYRef: inputYRef , containerRef: containerRef } = props;
|
|
201
201
|
let formatMessage = $7KHxM$useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($052cfdf4c32eb7c3$exports)));
|
|
202
202
|
let { addGlobalListener: addGlobalListener , removeGlobalListener: removeGlobalListener } = $7KHxM$useGlobalListeners();
|
|
203
203
|
let { direction: direction , locale: locale } = $7KHxM$useLocale();
|
|
@@ -600,7 +600,7 @@ $parcel$export($b4a0a4fdc900495e$exports, "useColorWheel", () => $b4a0a4fdc90049
|
|
|
600
600
|
|
|
601
601
|
|
|
602
602
|
function $b4a0a4fdc900495e$export$9064ff4e44b3729a(props, state, inputRef) {
|
|
603
|
-
let { isDisabled: isDisabled ,
|
|
603
|
+
let { isDisabled: isDisabled , innerRadius: innerRadius , outerRadius: outerRadius , 'aria-label': ariaLabel } = props;
|
|
604
604
|
let { addGlobalListener: addGlobalListener , removeGlobalListener: removeGlobalListener } = $7KHxM$useGlobalListeners();
|
|
605
605
|
let thumbRadius = (innerRadius + outerRadius) / 2;
|
|
606
606
|
let focusInput = $7KHxM$useCallback(()=>{
|
|
@@ -770,6 +770,7 @@ function $b4a0a4fdc900495e$export$9064ff4e44b3729a(props, state, inputRef) {
|
|
|
770
770
|
...props,
|
|
771
771
|
'aria-label': ariaLabel
|
|
772
772
|
});
|
|
773
|
+
let { minValue: minValue , maxValue: maxValue , step: step } = state.value.getChannelRange('hue');
|
|
773
774
|
return {
|
|
774
775
|
trackProps: {
|
|
775
776
|
...trackInteractions,
|
|
@@ -811,8 +812,8 @@ function $b4a0a4fdc900495e$export$9064ff4e44b3729a(props, state, inputRef) {
|
|
|
811
812
|
},
|
|
812
813
|
inputProps: $7KHxM$mergeProps(inputLabellingProps, {
|
|
813
814
|
type: 'range',
|
|
814
|
-
min:
|
|
815
|
-
max:
|
|
815
|
+
min: String(minValue),
|
|
816
|
+
max: String(maxValue),
|
|
816
817
|
step: String(step),
|
|
817
818
|
'aria-valuetext': state.value.formatChannelValue('hue', locale),
|
|
818
819
|
disabled: isDisabled,
|
|
@@ -864,8 +865,6 @@ function $f6896b05b2ecad12$export$77e32ca575a28fdf(props, state, ref) {
|
|
|
864
865
|
if (e.deltaY > 0) increment();
|
|
865
866
|
else if (e.deltaY < 0) decrement();
|
|
866
867
|
}, [
|
|
867
|
-
isReadOnly,
|
|
868
|
-
isDisabled,
|
|
869
868
|
decrement,
|
|
870
869
|
increment
|
|
871
870
|
]);
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;AGAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAyH;;;;ACArJ,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA2G;;;;ACAvI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA4G;;;;ACAxI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA0G;;;;ACAtI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAiH;;;;ACA7I,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA8G;;;;ACA1I,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA0G;;;;ACAtI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAyH;;;;ACArJ,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA0G;;;;ACAtI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA+G;;;;ACA3I,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA2G;;;;ACAvI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA8G;;;;ACA1I,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA2G;;;;ACAvI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA2G;;;;ACA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,CAAC,MAAM,GAAG,CAAC,EACrB,SAAS;IAEb,CAAC,EAAE,CAAC;QAAA,UAAU;QAAE,UAAU;QAAE,SAAS;QAAE,SAAS;IAAA,CAAC;IACjD,EAAmE,AAAnE,iEAAmE;IACnE,GAAG,CAAC,iBAAiB,GAAG,UAAU,IAAI,UAAU,KAAK,WAAW;IAChE,qBAAc,CAAC,CAAC;QAAA,QAAQ,EAAE,OAAO;QAAE,UAAU,EAAE,iBAAiB;IAAA,CAAC,EAAE,GAAG;IAEtE,GAAG,CAAC,QAAQ,IAAG,KAAK,GAAI,CAAC;QACvB,KAAK,CAAC,aAAa,CAAC,KAAK;IAC3B,CAAC;IAED,GAAG,CAAC,CAAC,aAAA,UAAU,eAAE,UAAU,EAAA,CAAC,GAAG,4BAAqB,CAClD,iBAAU,CAAC,KAAK,EAAE,CAAC;QACjB,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,UAAU;QACjB,YAAY,EAAE,SAAS;QACvB,IAAI,EAAE,CAAM;QACZ,YAAY,EAAE,CAAK;kBACnB,QAAQ;IACV,CAAC,GAAG,KAAK,EAAE,GAAG;IAEhB,MAAM,CAAC,CAAC;oBACN,UAAU;QACV,UAAU,EAAE,iBAAU,CAAC,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,CAAC;YACrE,IAAI,EAAE,CAAS;YACf,CAAe,gBAAE,IAAI;YACrB,CAAe,gBAAE,IAAI;YACrB,CAAe,gBAAE,IAAI;YACrB,CAAgB,iBAAE,IAAI;YACtB,WAAW,EAAE,CAAK;YAClB,UAAU,EAAE,CAAO;YACnB,MAAM,EAAE,MAAM;QAChB,CAAC;IACH,CAAC;AACH,CAAC;;","sources":["packages/@react-aria/color/src/index.ts","packages/@react-aria/color/src/useColorArea.ts","packages/@react-aria/color/intl/*.js","packages/@react-aria/color/intl/ar-AE.json","packages/@react-aria/color/intl/bg-BG.json","packages/@react-aria/color/intl/cs-CZ.json","packages/@react-aria/color/intl/da-DK.json","packages/@react-aria/color/intl/de-DE.json","packages/@react-aria/color/intl/el-GR.json","packages/@react-aria/color/intl/en-US.json","packages/@react-aria/color/intl/es-ES.json","packages/@react-aria/color/intl/et-EE.json","packages/@react-aria/color/intl/fi-FI.json","packages/@react-aria/color/intl/fr-FR.json","packages/@react-aria/color/intl/he-IL.json","packages/@react-aria/color/intl/hr-HR.json","packages/@react-aria/color/intl/hu-HU.json","packages/@react-aria/color/intl/it-IT.json","packages/@react-aria/color/intl/ja-JP.json","packages/@react-aria/color/intl/ko-KR.json","packages/@react-aria/color/intl/lt-LT.json","packages/@react-aria/color/intl/lv-LV.json","packages/@react-aria/color/intl/nb-NO.json","packages/@react-aria/color/intl/nl-NL.json","packages/@react-aria/color/intl/pl-PL.json","packages/@react-aria/color/intl/pt-BR.json","packages/@react-aria/color/intl/pt-PT.json","packages/@react-aria/color/intl/ro-RO.json","packages/@react-aria/color/intl/ru-RU.json","packages/@react-aria/color/intl/sk-SK.json","packages/@react-aria/color/intl/sl-SI.json","packages/@react-aria/color/intl/sr-SP.json","packages/@react-aria/color/intl/sv-SE.json","packages/@react-aria/color/intl/tr-TR.json","packages/@react-aria/color/intl/uk-UA.json","packages/@react-aria/color/intl/zh-CN.json","packages/@react-aria/color/intl/zh-TW.json","packages/@react-aria/color/src/useColorSlider.ts","packages/@react-aria/color/src/useColorWheel.ts","packages/@react-aria/color/src/useColorField.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport * from './useColorArea';\nexport * from './useColorSlider';\nexport * from './useColorWheel';\nexport * from './useColorField';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaColorAreaProps} from '@react-types/color';\nimport {ColorAreaState} from '@react-stately/color';\nimport {focusWithoutScrolling, isAndroid, isIOS, mergeProps, useGlobalListeners, useLabels} from '@react-aria/utils';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {ChangeEvent, HTMLAttributes, InputHTMLAttributes, RefObject, useCallback, useRef} from 'react';\nimport {useKeyboard, useMove} from '@react-aria/interactions';\nimport {useLocale, useMessageFormatter} from '@react-aria/i18n';\nimport {useVisuallyHidden} from '@react-aria/visually-hidden';\n\ninterface ColorAreaAria {\n /** Props for the color area container element. */\n colorAreaProps: HTMLAttributes<HTMLElement>,\n /** Props for the color area gradient foreground element. */\n gradientProps: HTMLAttributes<HTMLElement>,\n /** Props for the thumb element. */\n thumbProps: HTMLAttributes<HTMLElement>,\n /** Props for the visually hidden horizontal range input element. */\n xInputProps: InputHTMLAttributes<HTMLInputElement>,\n /** Props for the visually hidden vertical range input element. */\n yInputProps: InputHTMLAttributes<HTMLInputElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a color wheel component.\n * Color wheels allow users to adjust the hue of an HSL or HSB color value on a circular track.\n */\nexport function useColorArea(props: AriaColorAreaProps, state: ColorAreaState, inputXRef: RefObject<HTMLElement>, inputYRef: RefObject<HTMLElement>, containerRef: RefObject<HTMLElement>): ColorAreaAria {\n let {\n isDisabled\n } = props;\n let formatMessage = useMessageFormatter(intlMessages);\n\n let {addGlobalListener, removeGlobalListener} = useGlobalListeners();\n\n let {direction, locale} = useLocale();\n\n let focusedInputRef = useRef<HTMLElement>(null);\n\n let focusInput = useCallback((inputRef:RefObject<HTMLElement> = inputXRef) => {\n if (inputRef.current) {\n focusWithoutScrolling(inputRef.current);\n }\n }, [inputXRef]);\n\n let stateRef = useRef<ColorAreaState>(null);\n stateRef.current = state;\n let {xChannel, yChannel} = stateRef.current.channels;\n let xChannelStep = stateRef.current.xChannelStep;\n let yChannelStep = stateRef.current.xChannelStep;\n\n let currentPosition = useRef<{x: number, y: number}>(null);\n\n let {keyboardProps} = useKeyboard({\n onKeyDown(e) {\n // these are the cases that useMove doesn't handle\n if (!/^(PageUp|PageDown|Home|End)$/.test(e.key)) {\n e.continuePropagation();\n return;\n }\n // same handling as useMove, don't need to stop propagation, useKeyboard will do that for us\n e.preventDefault();\n // remember to set this and unset it so that onChangeEnd is fired\n stateRef.current.setDragging(true);\n switch (e.key) {\n case 'PageUp':\n stateRef.current.incrementY(stateRef.current.yChannelPageStep);\n focusedInputRef.current = inputYRef.current;\n break;\n case 'PageDown':\n stateRef.current.decrementY(stateRef.current.yChannelPageStep);\n focusedInputRef.current = inputYRef.current;\n break;\n case 'Home':\n direction === 'rtl' ? stateRef.current.incrementX(stateRef.current.xChannelPageStep) : stateRef.current.decrementX(stateRef.current.xChannelPageStep);\n focusedInputRef.current = inputXRef.current;\n break;\n case 'End':\n direction === 'rtl' ? stateRef.current.decrementX(stateRef.current.xChannelPageStep) : stateRef.current.incrementX(stateRef.current.xChannelPageStep);\n focusedInputRef.current = inputXRef.current;\n break;\n }\n stateRef.current.setDragging(false);\n if (focusedInputRef.current) {\n focusInput(focusedInputRef.current ? focusedInputRef : inputXRef);\n focusedInputRef.current = undefined;\n }\n }\n });\n\n let moveHandler = {\n onMoveStart() {\n currentPosition.current = null;\n stateRef.current.setDragging(true);\n },\n onMove({deltaX, deltaY, pointerType, shiftKey}) {\n let {\n incrementX,\n decrementX,\n incrementY,\n decrementY,\n xChannelPageStep,\n xChannelStep,\n yChannelPageStep,\n yChannelStep,\n getThumbPosition,\n setColorFromPoint\n } = stateRef.current;\n if (currentPosition.current == null) {\n currentPosition.current = getThumbPosition();\n }\n let {width, height} = containerRef.current.getBoundingClientRect();\n if (pointerType === 'keyboard') {\n let deltaXValue = shiftKey && xChannelPageStep > xChannelStep ? xChannelPageStep : xChannelStep;\n let deltaYValue = shiftKey && yChannelPageStep > yChannelStep ? yChannelPageStep : yChannelStep;\n if ((deltaX > 0 && direction === 'ltr') || (deltaX < 0 && direction === 'rtl')) {\n incrementX(deltaXValue);\n } else if ((deltaX < 0 && direction === 'ltr') || (deltaX > 0 && direction === 'rtl')) {\n decrementX(deltaXValue);\n } else if (deltaY > 0) {\n decrementY(deltaYValue);\n } else if (deltaY < 0) {\n incrementY(deltaYValue);\n }\n // set the focused input based on which axis has the greater delta\n focusedInputRef.current = (deltaX !== 0 || deltaY !== 0) && Math.abs(deltaY) > Math.abs(deltaX) ? inputYRef.current : inputXRef.current;\n } else {\n currentPosition.current.x += (direction === 'rtl' ? -1 : 1) * deltaX / width ;\n currentPosition.current.y += deltaY / height;\n setColorFromPoint(currentPosition.current.x, currentPosition.current.y);\n }\n },\n onMoveEnd() {\n isOnColorArea.current = undefined;\n stateRef.current.setDragging(false);\n focusInput(focusedInputRef.current ? focusedInputRef : inputXRef);\n focusedInputRef.current = undefined;\n }\n };\n let {moveProps: movePropsThumb} = useMove(moveHandler);\n\n let currentPointer = useRef<number | null | undefined>(undefined);\n let isOnColorArea = useRef<boolean>(false);\n let {moveProps: movePropsContainer} = useMove({\n onMoveStart() {\n if (isOnColorArea.current) {\n moveHandler.onMoveStart();\n }\n },\n onMove(e) {\n if (isOnColorArea.current) {\n moveHandler.onMove(e);\n }\n },\n onMoveEnd() {\n if (isOnColorArea.current) {\n moveHandler.onMoveEnd();\n }\n }\n });\n\n let onThumbDown = (id: number | null) => {\n if (!state.isDragging) {\n currentPointer.current = id;\n focusInput();\n state.setDragging(true);\n if (typeof PointerEvent !== 'undefined') {\n addGlobalListener(window, 'pointerup', onThumbUp, false);\n } else {\n addGlobalListener(window, 'mouseup', onThumbUp, false);\n addGlobalListener(window, 'touchend', onThumbUp, false);\n }\n }\n };\n\n let onThumbUp = (e) => {\n let id = e.pointerId ?? e.changedTouches?.[0].identifier;\n if (id === currentPointer.current) {\n focusInput();\n state.setDragging(false);\n currentPointer.current = undefined;\n isOnColorArea.current = false;\n\n if (typeof PointerEvent !== 'undefined') {\n removeGlobalListener(window, 'pointerup', onThumbUp, false);\n } else {\n removeGlobalListener(window, 'mouseup', onThumbUp, false);\n removeGlobalListener(window, 'touchend', onThumbUp, false);\n }\n }\n };\n\n let onColorAreaDown = (colorArea: Element, id: number | null, clientX: number, clientY: number) => {\n let rect = colorArea.getBoundingClientRect();\n let {width, height} = rect;\n let x = (clientX - rect.x) / width;\n let y = (clientY - rect.y) / height;\n if (direction === 'rtl') {\n x = 1 - x;\n }\n if (x >= 0 && x <= 1 && y >= 0 && y <= 1 && !state.isDragging && currentPointer.current === undefined) {\n isOnColorArea.current = true;\n currentPointer.current = id;\n state.setColorFromPoint(x, y);\n\n focusInput();\n state.setDragging(true);\n\n if (typeof PointerEvent !== 'undefined') {\n addGlobalListener(window, 'pointerup', onColorAreaUp, false);\n } else {\n addGlobalListener(window, 'mouseup', onColorAreaUp, false);\n addGlobalListener(window, 'touchend', onColorAreaUp, false);\n }\n }\n };\n\n let onColorAreaUp = (e) => {\n let id = e.pointerId ?? e.changedTouches?.[0].identifier;\n if (isOnColorArea.current && id === currentPointer.current) {\n isOnColorArea.current = false;\n currentPointer.current = undefined;\n state.setDragging(false);\n focusInput();\n\n if (typeof PointerEvent !== 'undefined') {\n removeGlobalListener(window, 'pointerup', onColorAreaUp, false);\n } else {\n removeGlobalListener(window, 'mouseup', onColorAreaUp, false);\n removeGlobalListener(window, 'touchend', onColorAreaUp, false);\n }\n }\n };\n\n let colorAreaInteractions = isDisabled ? {} : mergeProps({\n ...(typeof PointerEvent !== 'undefined' ? {\n onPointerDown: (e: React.PointerEvent) => {\n if (e.pointerType === 'mouse' && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) {\n return;\n }\n onColorAreaDown(e.currentTarget, e.pointerId, e.clientX, e.clientY);\n }} : {\n onMouseDown: (e: React.MouseEvent) => {\n if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) {\n return;\n }\n onColorAreaDown(e.currentTarget, undefined, e.clientX, e.clientY);\n },\n onTouchStart: (e: React.TouchEvent) => {\n onColorAreaDown(e.currentTarget, e.changedTouches[0].identifier, e.changedTouches[0].clientX, e.changedTouches[0].clientY);\n }\n })\n }, movePropsContainer);\n\n let thumbInteractions = isDisabled ? {} : mergeProps({\n ...(typeof PointerEvent !== 'undefined' ? {\n onPointerDown: (e: React.PointerEvent) => {\n if (e.pointerType === 'mouse' && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) {\n return;\n }\n onThumbDown(e.pointerId);\n }} : {\n onMouseDown: (e: React.MouseEvent) => {\n if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) {\n return;\n }\n onThumbDown(undefined);\n },\n onTouchStart: (e: React.TouchEvent) => {\n onThumbDown(e.changedTouches[0].identifier);\n }\n })\n }, keyboardProps, movePropsThumb);\n\n let isMobile = isIOS() || isAndroid();\n\n let xInputLabellingProps = useLabels({\n ...props,\n 'aria-label': isMobile ? state.value.getChannelName(xChannel, locale) : formatMessage('x/y', {x: state.value.getChannelName(xChannel, locale), y: state.value.getChannelName(yChannel, locale)})\n });\n\n let yInputLabellingProps = useLabels({\n ...props,\n 'aria-label': isMobile ? state.value.getChannelName(yChannel, locale) : formatMessage('x/y', {x: state.value.getChannelName(xChannel, locale), y: state.value.getChannelName(yChannel, locale)})\n });\n\n let colorAriaLabellingProps = useLabels(props);\n\n let getValueTitle = () => [\n formatMessage('colorNameAndValue', {name: state.value.getChannelName('red', locale), value: state.value.formatChannelValue('red', locale)}),\n formatMessage('colorNameAndValue', {name: state.value.getChannelName('green', locale), value: state.value.formatChannelValue('green', locale)}),\n formatMessage('colorNameAndValue', {name: state.value.getChannelName('blue', locale), value: state.value.formatChannelValue('blue', locale)})\n ].join(', ');\n\n let ariaRoleDescription = isMobile ? null : formatMessage('twoDimensionalSlider');\n\n let {visuallyHiddenProps} = useVisuallyHidden({style: {\n opacity: '0.0001',\n width: '100%',\n height: '100%',\n pointerEvents: 'none'\n }});\n\n return {\n colorAreaProps: {\n ...colorAriaLabellingProps,\n ...colorAreaInteractions,\n role: 'group'\n },\n gradientProps: {\n role: 'presentation'\n },\n thumbProps: {\n ...thumbInteractions,\n role: 'presentation'\n },\n xInputProps: {\n ...xInputLabellingProps,\n ...visuallyHiddenProps,\n type: 'range',\n min: state.value.getChannelRange(xChannel).minValue,\n max: state.value.getChannelRange(xChannel).maxValue,\n step: xChannelStep,\n 'aria-roledescription': ariaRoleDescription,\n 'aria-valuetext': (\n isMobile ?\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(xChannel, locale), value: state.value.formatChannelValue(xChannel, locale)})\n :\n [\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(xChannel, locale), value: state.value.formatChannelValue(xChannel, locale)}),\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(yChannel, locale), value: state.value.formatChannelValue(yChannel, locale)})\n ].join(', ')\n ),\n title: getValueTitle(),\n disabled: isDisabled,\n value: state.value.getChannelValue(xChannel),\n tabIndex: 0,\n onChange: (e: ChangeEvent<HTMLInputElement>) => {\n state.setXValue(parseFloat(e.target.value));\n }\n },\n yInputProps: {\n ...yInputLabellingProps,\n ...visuallyHiddenProps,\n type: 'range',\n min: state.value.getChannelRange(yChannel).minValue,\n max: state.value.getChannelRange(yChannel).maxValue,\n step: yChannelStep,\n 'aria-roledescription': ariaRoleDescription,\n 'aria-valuetext': (\n isMobile ?\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(yChannel, locale), value: state.value.formatChannelValue(yChannel, locale)})\n :\n [\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(yChannel, locale), value: state.value.formatChannelValue(yChannel, locale)}),\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(xChannel, locale), value: state.value.formatChannelValue(xChannel, locale)})\n ].join(', ')\n ),\n 'aria-orientation': 'vertical',\n title: getValueTitle(),\n disabled: isDisabled,\n value: state.value.getChannelValue(yChannel),\n tabIndex: -1,\n onChange: (e: ChangeEvent<HTMLInputElement>) => {\n state.setYValue(parseFloat(e.target.value));\n }\n }\n };\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"twoDimensionalSlider\": \"شريط تمرير ثنائي الأبعاد\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D плъзгач\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D posuvník\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-skyder\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-Schieberegler\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Ρυθμιστικό 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D slider\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Control deslizante en 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-liugur\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-liukusäädin\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Curseur 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"מחוון דו-ממדי\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D kliznik\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D csúszka\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Dispositivo di scorrimento 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D スライダー\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D 슬라이더\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D slankiklis\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Plaknes slīdnis\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-glidebryter\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-schuifregelaar\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Suwak 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Controle deslizante 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Controlo de deslize 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Cursor 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Двумерный ползунок\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D jazdec\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-drsnik\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D клизач\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-reglage\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2B slayt gösterisi\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Повзунок 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D 滑块\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D 滑桿\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaColorSliderProps} from '@react-types/color';\nimport {ColorSliderState} from '@react-stately/color';\nimport {HTMLAttributes, RefObject} from 'react';\nimport {mergeProps} from '@react-aria/utils';\nimport {useLocale} from '@react-aria/i18n';\nimport {useSlider, useSliderThumb} from '@react-aria/slider';\n\ninterface ColorSliderAriaOptions extends AriaColorSliderProps {\n /** A ref for the track element. */\n trackRef: RefObject<HTMLElement>,\n /** A ref for the input element. */\n inputRef: RefObject<HTMLInputElement>\n}\n\ninterface ColorSliderAria {\n /** Props for the label element. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the track element. */\n trackProps: HTMLAttributes<HTMLElement>,\n /** Props for the thumb element. */\n thumbProps: HTMLAttributes<HTMLElement>,\n /** Props for the visually hidden range input element. */\n inputProps: HTMLAttributes<HTMLElement>,\n /** Props for the output element, displaying the value of the color slider. */\n outputProps: HTMLAttributes<HTMLElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a color slider component.\n * Color sliders allow users to adjust an individual channel of a color value.\n */\nexport function useColorSlider(props: ColorSliderAriaOptions, state: ColorSliderState): ColorSliderAria {\n let {trackRef, inputRef, orientation, channel, 'aria-label': ariaLabel} = props;\n\n let {locale, direction} = useLocale();\n\n // Provide a default aria-label if there is no other label provided.\n if (!props.label && !ariaLabel && !props['aria-labelledby']) {\n ariaLabel = state.value.getChannelName(channel, locale);\n }\n\n // @ts-ignore - ignore unused incompatible props\n let {groupProps, trackProps, labelProps, outputProps} = useSlider({...props, 'aria-label': ariaLabel}, state, trackRef);\n let {inputProps, thumbProps} = useSliderThumb({\n index: 0,\n orientation,\n isDisabled: props.isDisabled,\n trackRef,\n inputRef\n }, state);\n\n let generateBackground = () => {\n let value = state.getDisplayColor();\n let to: string;\n if (orientation === 'vertical') {\n to = 'top';\n } else if (direction === 'ltr') {\n to = 'right';\n } else {\n to = 'left';\n }\n switch (channel) {\n case 'hue':\n return `linear-gradient(to ${to}, rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)`;\n case 'lightness': {\n // We have to add an extra color stop in the middle so that the hue shows up at all.\n // Otherwise it will always just be black to white.\n let min = state.getThumbMinValue(0);\n let max = state.getThumbMaxValue(0);\n let start = value.withChannelValue(channel, min).toString('css');\n let middle = value.withChannelValue(channel, (max - min) / 2).toString('css');\n let end = value.withChannelValue(channel, max).toString('css');\n return `linear-gradient(to ${to}, ${start}, ${middle}, ${end})`;\n }\n case 'saturation':\n case 'brightness':\n case 'red':\n case 'green':\n case 'blue':\n case 'alpha': {\n let start = value.withChannelValue(channel, state.getThumbMinValue(0)).toString('css');\n let end = value.withChannelValue(channel, state.getThumbMaxValue(0)).toString('css');\n return `linear-gradient(to ${to}, ${start}, ${end})`;\n }\n default:\n throw new Error('Unknown color channel: ' + channel);\n }\n };\n\n let thumbPosition = state.getThumbPercent(0);\n if (orientation === 'vertical' || direction === 'rtl') {\n thumbPosition = 1 - thumbPosition;\n }\n\n return {\n trackProps: {\n ...mergeProps(groupProps, trackProps),\n style: {\n position: 'relative',\n touchAction: 'none',\n background: generateBackground()\n }\n },\n inputProps,\n thumbProps: {\n ...thumbProps,\n style: {\n touchAction: 'none',\n position: 'absolute',\n [orientation === 'vertical' ? 'top' : 'left']: `${thumbPosition * 100}%`,\n transform: 'translate(-50%, -50%)'\n }\n },\n labelProps,\n outputProps\n };\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaColorWheelProps} from '@react-types/color';\nimport {ColorWheelState} from '@react-stately/color';\nimport {focusWithoutScrolling, mergeProps, useGlobalListeners, useLabels} from '@react-aria/utils';\nimport React, {ChangeEvent, HTMLAttributes, InputHTMLAttributes, RefObject, useCallback, useRef} from 'react';\nimport {useKeyboard, useMove} from '@react-aria/interactions';\nimport {useLocale} from '@react-aria/i18n';\n\ninterface ColorWheelAriaProps extends AriaColorWheelProps {\n /** The outer radius of the color wheel. */\n outerRadius: number,\n /** The inner radius of the color wheel. */\n innerRadius: number\n}\n\ninterface ColorWheelAria {\n /** Props for the track element. */\n trackProps: HTMLAttributes<HTMLElement>,\n /** Props for the thumb element. */\n thumbProps: HTMLAttributes<HTMLElement>,\n /** Props for the visually hidden range input element. */\n inputProps: InputHTMLAttributes<HTMLInputElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a color wheel component.\n * Color wheels allow users to adjust the hue of an HSL or HSB color value on a circular track.\n */\nexport function useColorWheel(props: ColorWheelAriaProps, state: ColorWheelState, inputRef: RefObject<HTMLElement>): ColorWheelAria {\n let {\n isDisabled,\n step = 1,\n innerRadius,\n outerRadius,\n 'aria-label': ariaLabel\n } = props;\n\n let {addGlobalListener, removeGlobalListener} = useGlobalListeners();\n\n let thumbRadius = (innerRadius + outerRadius) / 2;\n\n let focusInput = useCallback(() => {\n if (inputRef.current) {\n focusWithoutScrolling(inputRef.current);\n }\n }, [inputRef]);\n\n let stateRef = useRef<ColorWheelState>(null);\n stateRef.current = state;\n\n let currentPosition = useRef<{x: number, y: number}>(null);\n\n let {keyboardProps} = useKeyboard({\n onKeyDown(e) {\n // these are the cases that useMove doesn't handle\n if (!/^(PageUp|PageDown)$/.test(e.key)) {\n e.continuePropagation();\n return;\n }\n // same handling as useMove, don't need to stop propagation, useKeyboard will do that for us\n e.preventDefault();\n // remember to set this and unset it so that onChangeEnd is fired\n stateRef.current.setDragging(true);\n switch (e.key) {\n case 'PageUp':\n e.preventDefault();\n state.increment(stateRef.current.pageStep);\n break;\n case 'PageDown':\n e.preventDefault();\n state.decrement(stateRef.current.pageStep);\n break;\n }\n stateRef.current.setDragging(false);\n }\n });\n\n let moveHandler = {\n onMoveStart() {\n currentPosition.current = null;\n state.setDragging(true);\n },\n onMove({deltaX, deltaY, pointerType, shiftKey}) {\n if (currentPosition.current == null) {\n currentPosition.current = stateRef.current.getThumbPosition(thumbRadius);\n }\n currentPosition.current.x += deltaX;\n currentPosition.current.y += deltaY;\n if (pointerType === 'keyboard') {\n if (deltaX > 0 || deltaY < 0) {\n state.increment(shiftKey ? stateRef.current.pageStep : stateRef.current.step);\n } else if (deltaX < 0 || deltaY > 0) {\n state.decrement(shiftKey ? stateRef.current.pageStep : stateRef.current.step);\n }\n } else {\n stateRef.current.setHueFromPoint(currentPosition.current.x, currentPosition.current.y, thumbRadius);\n }\n },\n onMoveEnd() {\n isOnTrack.current = undefined;\n state.setDragging(false);\n focusInput();\n }\n };\n let {moveProps: movePropsThumb} = useMove(moveHandler);\n\n let currentPointer = useRef<number | null | undefined>(undefined);\n let isOnTrack = useRef<boolean>(false);\n let {moveProps: movePropsContainer} = useMove({\n onMoveStart() {\n if (isOnTrack.current) {\n moveHandler.onMoveStart();\n }\n },\n onMove(e) {\n if (isOnTrack.current) {\n moveHandler.onMove(e);\n }\n },\n onMoveEnd() {\n if (isOnTrack.current) {\n moveHandler.onMoveEnd();\n }\n }\n });\n\n let onThumbDown = (id: number | null) => {\n if (!state.isDragging) {\n currentPointer.current = id;\n focusInput();\n state.setDragging(true);\n\n if (typeof PointerEvent !== 'undefined') {\n addGlobalListener(window, 'pointerup', onThumbUp, false);\n } else {\n addGlobalListener(window, 'mouseup', onThumbUp, false);\n addGlobalListener(window, 'touchend', onThumbUp, false);\n }\n }\n };\n\n let onThumbUp = (e) => {\n let id = e.pointerId ?? e.changedTouches?.[0].identifier;\n if (id === currentPointer.current) {\n focusInput();\n state.setDragging(false);\n currentPointer.current = undefined;\n isOnTrack.current = false;\n\n if (typeof PointerEvent !== 'undefined') {\n removeGlobalListener(window, 'pointerup', onThumbUp, false);\n } else {\n removeGlobalListener(window, 'mouseup', onThumbUp, false);\n removeGlobalListener(window, 'touchend', onThumbUp, false);\n }\n }\n };\n\n let onTrackDown = (track: Element, id: number | null, pageX: number, pageY: number) => {\n let rect = track.getBoundingClientRect();\n let x = pageX - rect.x - rect.width / 2;\n let y = pageY - rect.y - rect.height / 2;\n let radius = Math.sqrt(x * x + y * y);\n if (innerRadius < radius && radius < outerRadius && !state.isDragging && currentPointer.current === undefined) {\n isOnTrack.current = true;\n currentPointer.current = id;\n stateRef.current.setHueFromPoint(x, y, radius);\n\n focusInput();\n state.setDragging(true);\n\n if (typeof PointerEvent !== 'undefined') {\n addGlobalListener(window, 'pointerup', onTrackUp, false);\n } else {\n addGlobalListener(window, 'mouseup', onTrackUp, false);\n addGlobalListener(window, 'touchend', onTrackUp, false);\n }\n }\n };\n\n let onTrackUp = (e) => {\n let id = e.pointerId ?? e.changedTouches?.[0].identifier;\n if (isOnTrack.current && id === currentPointer.current) {\n isOnTrack.current = false;\n currentPointer.current = undefined;\n state.setDragging(false);\n focusInput();\n\n\n if (typeof PointerEvent !== 'undefined') {\n removeGlobalListener(window, 'pointerup', onTrackUp, false);\n } else {\n removeGlobalListener(window, 'mouseup', onTrackUp, false);\n removeGlobalListener(window, 'touchend', onTrackUp, false);\n }\n }\n };\n\n let trackInteractions = isDisabled ? {} : mergeProps({\n ...(typeof PointerEvent !== 'undefined' ? {\n onPointerDown: (e: React.PointerEvent) => {\n if (e.pointerType === 'mouse' && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) {\n return;\n }\n onTrackDown(e.currentTarget, e.pointerId, e.clientX, e.clientY);\n }} : {\n onMouseDown: (e: React.MouseEvent) => {\n if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) {\n return;\n }\n onTrackDown(e.currentTarget, undefined, e.clientX, e.clientY);\n },\n onTouchStart: (e: React.TouchEvent) => {\n onTrackDown(e.currentTarget, e.changedTouches[0].identifier, e.changedTouches[0].clientX, e.changedTouches[0].clientY);\n }\n })\n }, movePropsContainer);\n\n let thumbInteractions = isDisabled ? {} : mergeProps({\n onMouseDown: (e: React.MouseEvent) => {\n if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) {\n return;\n }\n onThumbDown(undefined);\n },\n onPointerDown: (e: React.PointerEvent) => {\n if (e.pointerType === 'mouse' && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) {\n return;\n }\n onThumbDown(e.pointerId);\n },\n onTouchStart: (e: React.TouchEvent) => {\n onThumbDown(e.changedTouches[0].identifier);\n }\n }, keyboardProps, movePropsThumb);\n let {x, y} = state.getThumbPosition(thumbRadius);\n\n // Provide a default aria-label if none is given\n let {locale} = useLocale();\n if (ariaLabel == null && props['aria-labelledby'] == null) {\n ariaLabel = state.value.getChannelName('hue', locale);\n }\n\n let inputLabellingProps = useLabels({\n ...props,\n 'aria-label': ariaLabel\n });\n\n return {\n trackProps: {\n ...trackInteractions,\n style: {\n position: 'relative',\n touchAction: 'none',\n width: outerRadius * 2,\n height: outerRadius * 2,\n background: `\n conic-gradient(\n from 90deg,\n hsl(0, 100%, 50%),\n hsl(30, 100%, 50%),\n hsl(60, 100%, 50%),\n hsl(90, 100%, 50%),\n hsl(120, 100%, 50%),\n hsl(150, 100%, 50%),\n hsl(180, 100%, 50%),\n hsl(210, 100%, 50%),\n hsl(240, 100%, 50%),\n hsl(270, 100%, 50%),\n hsl(300, 100%, 50%),\n hsl(330, 100%, 50%),\n hsl(360, 100%, 50%)\n )\n `,\n clipPath: `path(evenodd, \"${circlePath(outerRadius, outerRadius, outerRadius)} ${circlePath(outerRadius, outerRadius, innerRadius)}\")`\n }\n },\n thumbProps: {\n ...thumbInteractions,\n style: {\n position: 'absolute',\n left: '50%',\n top: '50%',\n transform: `translate(calc(${x}px - 50%), calc(${y}px - 50%))`,\n touchAction: 'none'\n }\n },\n inputProps: mergeProps(\n inputLabellingProps,\n {\n type: 'range',\n min: '0',\n max: '360',\n step: String(step),\n 'aria-valuetext': state.value.formatChannelValue('hue', locale),\n disabled: isDisabled,\n value: `${state.value.getChannelValue('hue')}`,\n onChange: (e: ChangeEvent<HTMLInputElement>) => {\n state.setHue(parseFloat(e.target.value));\n }\n }\n )\n };\n}\n\n// Creates an SVG path string for a circle.\nfunction circlePath(cx: number, cy: number, r: number) {\n return `M ${cx}, ${cy} m ${-r}, 0 a ${r}, ${r}, 0, 1, 0, ${r * 2}, 0 a ${r}, ${r}, 0, 1, 0 ${-r * 2}, 0`;\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaColorFieldProps} from '@react-types/color';\nimport {ColorFieldState} from '@react-stately/color';\nimport {\n HTMLAttributes,\n LabelHTMLAttributes,\n RefObject,\n useCallback,\n useState\n} from 'react';\nimport {mergeProps, useId} from '@react-aria/utils';\nimport {useFocusWithin, useScrollWheel} from '@react-aria/interactions';\nimport {useFormattedTextField} from '@react-aria/textfield';\nimport {useSpinButton} from '@react-aria/spinbutton';\n\ninterface ColorFieldAria {\n /** Props for the label element. */\n labelProps: LabelHTMLAttributes<HTMLLabelElement>,\n /** Props for the input element. */\n inputProps: HTMLAttributes<HTMLInputElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a color field component.\n * Color fields allow users to enter and adjust a hex color value.\n */\nexport function useColorField(\n props: AriaColorFieldProps,\n state: ColorFieldState,\n ref: RefObject<HTMLInputElement>\n): ColorFieldAria {\n let {\n isDisabled,\n isReadOnly,\n isRequired\n } = props;\n\n let {\n colorValue,\n inputValue,\n commit,\n increment,\n decrement,\n incrementToMax,\n decrementToMin\n } = state;\n\n let inputId = useId();\n let {spinButtonProps} = useSpinButton(\n {\n isDisabled,\n isReadOnly,\n isRequired,\n maxValue: 0xFFFFFF,\n minValue: 0,\n onIncrement: increment,\n onIncrementToMax: incrementToMax,\n onDecrement: decrement,\n onDecrementToMin: decrementToMin,\n value: colorValue ? colorValue.toHexInt() : undefined,\n textValue: colorValue ? colorValue.toString('hex') : undefined\n }\n );\n\n let [focusWithin, setFocusWithin] = useState(false);\n let {focusWithinProps} = useFocusWithin({isDisabled, onFocusWithinChange: setFocusWithin});\n\n let onWheel = useCallback((e) => {\n if (Math.abs(e.deltaY) <= Math.abs(e.deltaX)) {\n return;\n }\n if (e.deltaY > 0) {\n increment();\n } else if (e.deltaY < 0) {\n decrement();\n }\n }, [isReadOnly, isDisabled, decrement, increment]);\n // If the input isn't supposed to receive input, disable scrolling.\n let scrollingDisabled = isDisabled || isReadOnly || !focusWithin;\n useScrollWheel({onScroll: onWheel, isDisabled: scrollingDisabled}, ref);\n\n let onChange = value => {\n state.setInputValue(value);\n };\n\n let {labelProps, inputProps} = useFormattedTextField(\n mergeProps(props, {\n id: inputId,\n value: inputValue,\n defaultValue: undefined,\n type: 'text',\n autoComplete: 'off',\n onChange\n }), state, ref);\n\n return {\n labelProps,\n inputProps: mergeProps(inputProps, spinButtonProps, focusWithinProps, {\n role: 'textbox',\n 'aria-valuemax': null,\n 'aria-valuemin': null,\n 'aria-valuenow': null,\n 'aria-valuetext': null,\n autoCorrect: 'off',\n spellCheck: 'false',\n onBlur: commit\n })\n };\n}\n"],"names":[],"version":3,"file":"module.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;AGAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAyH;;;;ACArJ,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA2G;;;;ACAvI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA4G;;;;ACAxI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA0G;;;;ACAtI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAiH;;;;ACA7I,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA8G;;;;ACA1I,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA0G;;;;ACAtI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAyH;;;;ACArJ,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA0G;;;;ACAtI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA+G;;;;ACA3I,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA2G;;;;ACAvI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA8G;;;;ACA1I,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA2G;;;;ACAvI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA2G;;;;ACAvI,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA8H;;;;ACA1J,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAyG;;;;ACArI,yBAAc,GAAG,IAAI,CA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M,GAAG,CAAC,EACrB,SAAS;IAEb,CAAC,EAAE,CAAC;QAAA,SAAS;QAAE,SAAS;IAAA,CAAC;IACzB,EAAmE,AAAnE,iEAAmE;IACnE,GAAG,CAAC,iBAAiB,GAAG,UAAU,IAAI,UAAU,KAAK,WAAW;IAChE,qBAAc,CAAC,CAAC;QAAA,QAAQ,EAAE,OAAO;QAAE,UAAU,EAAE,iBAAiB;IAAA,CAAC,EAAE,GAAG;IAEtE,GAAG,CAAC,QAAQ,IAAG,KAAK,GAAI,CAAC;QACvB,KAAK,CAAC,aAAa,CAAC,KAAK;IAC3B,CAAC;IAED,GAAG,CAAC,CAAC,aAAA,UAAU,eAAE,UAAU,EAAA,CAAC,GAAG,4BAAqB,CAClD,iBAAU,CAAC,KAAK,EAAE,CAAC;QACjB,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,UAAU;QACjB,YAAY,EAAE,SAAS;QACvB,IAAI,EAAE,CAAM;QACZ,YAAY,EAAE,CAAK;kBACnB,QAAQ;IACV,CAAC,GAAG,KAAK,EAAE,GAAG;IAEhB,MAAM,CAAC,CAAC;oBACN,UAAU;QACV,UAAU,EAAE,iBAAU,CAAC,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,CAAC;YACrE,IAAI,EAAE,CAAS;YACf,CAAe,gBAAE,IAAI;YACrB,CAAe,gBAAE,IAAI;YACrB,CAAe,gBAAE,IAAI;YACrB,CAAgB,iBAAE,IAAI;YACtB,WAAW,EAAE,CAAK;YAClB,UAAU,EAAE,CAAO;YACnB,MAAM,EAAE,MAAM;QAChB,CAAC;IACH,CAAC;AACH,CAAC;;","sources":["packages/@react-aria/color/src/index.ts","packages/@react-aria/color/src/useColorArea.ts","packages/@react-aria/color/intl/*.js","packages/@react-aria/color/intl/ar-AE.json","packages/@react-aria/color/intl/bg-BG.json","packages/@react-aria/color/intl/cs-CZ.json","packages/@react-aria/color/intl/da-DK.json","packages/@react-aria/color/intl/de-DE.json","packages/@react-aria/color/intl/el-GR.json","packages/@react-aria/color/intl/en-US.json","packages/@react-aria/color/intl/es-ES.json","packages/@react-aria/color/intl/et-EE.json","packages/@react-aria/color/intl/fi-FI.json","packages/@react-aria/color/intl/fr-FR.json","packages/@react-aria/color/intl/he-IL.json","packages/@react-aria/color/intl/hr-HR.json","packages/@react-aria/color/intl/hu-HU.json","packages/@react-aria/color/intl/it-IT.json","packages/@react-aria/color/intl/ja-JP.json","packages/@react-aria/color/intl/ko-KR.json","packages/@react-aria/color/intl/lt-LT.json","packages/@react-aria/color/intl/lv-LV.json","packages/@react-aria/color/intl/nb-NO.json","packages/@react-aria/color/intl/nl-NL.json","packages/@react-aria/color/intl/pl-PL.json","packages/@react-aria/color/intl/pt-BR.json","packages/@react-aria/color/intl/pt-PT.json","packages/@react-aria/color/intl/ro-RO.json","packages/@react-aria/color/intl/ru-RU.json","packages/@react-aria/color/intl/sk-SK.json","packages/@react-aria/color/intl/sl-SI.json","packages/@react-aria/color/intl/sr-SP.json","packages/@react-aria/color/intl/sv-SE.json","packages/@react-aria/color/intl/tr-TR.json","packages/@react-aria/color/intl/uk-UA.json","packages/@react-aria/color/intl/zh-CN.json","packages/@react-aria/color/intl/zh-TW.json","packages/@react-aria/color/src/useColorSlider.ts","packages/@react-aria/color/src/useColorWheel.ts","packages/@react-aria/color/src/useColorField.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport * from './useColorArea';\nexport * from './useColorSlider';\nexport * from './useColorWheel';\nexport * from './useColorField';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaColorAreaProps} from '@react-types/color';\nimport {ColorAreaState} from '@react-stately/color';\nimport {focusWithoutScrolling, isAndroid, isIOS, mergeProps, useGlobalListeners, useLabels} from '@react-aria/utils';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {ChangeEvent, HTMLAttributes, InputHTMLAttributes, RefObject, useCallback, useRef} from 'react';\nimport {useKeyboard, useMove} from '@react-aria/interactions';\nimport {useLocale, useMessageFormatter} from '@react-aria/i18n';\nimport {useVisuallyHidden} from '@react-aria/visually-hidden';\n\ninterface ColorAreaAria {\n /** Props for the color area container element. */\n colorAreaProps: HTMLAttributes<HTMLElement>,\n /** Props for the color area gradient foreground element. */\n gradientProps: HTMLAttributes<HTMLElement>,\n /** Props for the thumb element. */\n thumbProps: HTMLAttributes<HTMLElement>,\n /** Props for the visually hidden horizontal range input element. */\n xInputProps: InputHTMLAttributes<HTMLInputElement>,\n /** Props for the visually hidden vertical range input element. */\n yInputProps: InputHTMLAttributes<HTMLInputElement>\n}\n\ninterface ColorAreaAriaProps extends AriaColorAreaProps {\n /** A ref to the input that represents the x axis of the color area. */\n inputXRef: RefObject<HTMLElement>,\n /** A ref to the input that represents the y axis of the color area. */\n inputYRef: RefObject<HTMLElement>,\n /** A ref to the color area containing element. */\n containerRef: RefObject<HTMLElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a color wheel component.\n * Color wheels allow users to adjust the hue of an HSL or HSB color value on a circular track.\n */\nexport function useColorArea(props: ColorAreaAriaProps, state: ColorAreaState): ColorAreaAria {\n let {\n isDisabled,\n inputXRef,\n inputYRef,\n containerRef\n } = props;\n let formatMessage = useMessageFormatter(intlMessages);\n\n let {addGlobalListener, removeGlobalListener} = useGlobalListeners();\n\n let {direction, locale} = useLocale();\n\n let focusedInputRef = useRef<HTMLElement>(null);\n\n let focusInput = useCallback((inputRef:RefObject<HTMLElement> = inputXRef) => {\n if (inputRef.current) {\n focusWithoutScrolling(inputRef.current);\n }\n }, [inputXRef]);\n\n let stateRef = useRef<ColorAreaState>(null);\n stateRef.current = state;\n let {xChannel, yChannel} = stateRef.current.channels;\n let xChannelStep = stateRef.current.xChannelStep;\n let yChannelStep = stateRef.current.xChannelStep;\n\n let currentPosition = useRef<{x: number, y: number}>(null);\n\n let {keyboardProps} = useKeyboard({\n onKeyDown(e) {\n // these are the cases that useMove doesn't handle\n if (!/^(PageUp|PageDown|Home|End)$/.test(e.key)) {\n e.continuePropagation();\n return;\n }\n // same handling as useMove, don't need to stop propagation, useKeyboard will do that for us\n e.preventDefault();\n // remember to set this and unset it so that onChangeEnd is fired\n stateRef.current.setDragging(true);\n switch (e.key) {\n case 'PageUp':\n stateRef.current.incrementY(stateRef.current.yChannelPageStep);\n focusedInputRef.current = inputYRef.current;\n break;\n case 'PageDown':\n stateRef.current.decrementY(stateRef.current.yChannelPageStep);\n focusedInputRef.current = inputYRef.current;\n break;\n case 'Home':\n direction === 'rtl' ? stateRef.current.incrementX(stateRef.current.xChannelPageStep) : stateRef.current.decrementX(stateRef.current.xChannelPageStep);\n focusedInputRef.current = inputXRef.current;\n break;\n case 'End':\n direction === 'rtl' ? stateRef.current.decrementX(stateRef.current.xChannelPageStep) : stateRef.current.incrementX(stateRef.current.xChannelPageStep);\n focusedInputRef.current = inputXRef.current;\n break;\n }\n stateRef.current.setDragging(false);\n if (focusedInputRef.current) {\n focusInput(focusedInputRef.current ? focusedInputRef : inputXRef);\n focusedInputRef.current = undefined;\n }\n }\n });\n\n let moveHandler = {\n onMoveStart() {\n currentPosition.current = null;\n stateRef.current.setDragging(true);\n },\n onMove({deltaX, deltaY, pointerType, shiftKey}) {\n let {\n incrementX,\n decrementX,\n incrementY,\n decrementY,\n xChannelPageStep,\n xChannelStep,\n yChannelPageStep,\n yChannelStep,\n getThumbPosition,\n setColorFromPoint\n } = stateRef.current;\n if (currentPosition.current == null) {\n currentPosition.current = getThumbPosition();\n }\n let {width, height} = containerRef.current.getBoundingClientRect();\n if (pointerType === 'keyboard') {\n let deltaXValue = shiftKey && xChannelPageStep > xChannelStep ? xChannelPageStep : xChannelStep;\n let deltaYValue = shiftKey && yChannelPageStep > yChannelStep ? yChannelPageStep : yChannelStep;\n if ((deltaX > 0 && direction === 'ltr') || (deltaX < 0 && direction === 'rtl')) {\n incrementX(deltaXValue);\n } else if ((deltaX < 0 && direction === 'ltr') || (deltaX > 0 && direction === 'rtl')) {\n decrementX(deltaXValue);\n } else if (deltaY > 0) {\n decrementY(deltaYValue);\n } else if (deltaY < 0) {\n incrementY(deltaYValue);\n }\n // set the focused input based on which axis has the greater delta\n focusedInputRef.current = (deltaX !== 0 || deltaY !== 0) && Math.abs(deltaY) > Math.abs(deltaX) ? inputYRef.current : inputXRef.current;\n } else {\n currentPosition.current.x += (direction === 'rtl' ? -1 : 1) * deltaX / width ;\n currentPosition.current.y += deltaY / height;\n setColorFromPoint(currentPosition.current.x, currentPosition.current.y);\n }\n },\n onMoveEnd() {\n isOnColorArea.current = undefined;\n stateRef.current.setDragging(false);\n focusInput(focusedInputRef.current ? focusedInputRef : inputXRef);\n focusedInputRef.current = undefined;\n }\n };\n let {moveProps: movePropsThumb} = useMove(moveHandler);\n\n let currentPointer = useRef<number | null | undefined>(undefined);\n let isOnColorArea = useRef<boolean>(false);\n let {moveProps: movePropsContainer} = useMove({\n onMoveStart() {\n if (isOnColorArea.current) {\n moveHandler.onMoveStart();\n }\n },\n onMove(e) {\n if (isOnColorArea.current) {\n moveHandler.onMove(e);\n }\n },\n onMoveEnd() {\n if (isOnColorArea.current) {\n moveHandler.onMoveEnd();\n }\n }\n });\n\n let onThumbDown = (id: number | null) => {\n if (!state.isDragging) {\n currentPointer.current = id;\n focusInput();\n state.setDragging(true);\n if (typeof PointerEvent !== 'undefined') {\n addGlobalListener(window, 'pointerup', onThumbUp, false);\n } else {\n addGlobalListener(window, 'mouseup', onThumbUp, false);\n addGlobalListener(window, 'touchend', onThumbUp, false);\n }\n }\n };\n\n let onThumbUp = (e) => {\n let id = e.pointerId ?? e.changedTouches?.[0].identifier;\n if (id === currentPointer.current) {\n focusInput();\n state.setDragging(false);\n currentPointer.current = undefined;\n isOnColorArea.current = false;\n\n if (typeof PointerEvent !== 'undefined') {\n removeGlobalListener(window, 'pointerup', onThumbUp, false);\n } else {\n removeGlobalListener(window, 'mouseup', onThumbUp, false);\n removeGlobalListener(window, 'touchend', onThumbUp, false);\n }\n }\n };\n\n let onColorAreaDown = (colorArea: Element, id: number | null, clientX: number, clientY: number) => {\n let rect = colorArea.getBoundingClientRect();\n let {width, height} = rect;\n let x = (clientX - rect.x) / width;\n let y = (clientY - rect.y) / height;\n if (direction === 'rtl') {\n x = 1 - x;\n }\n if (x >= 0 && x <= 1 && y >= 0 && y <= 1 && !state.isDragging && currentPointer.current === undefined) {\n isOnColorArea.current = true;\n currentPointer.current = id;\n state.setColorFromPoint(x, y);\n\n focusInput();\n state.setDragging(true);\n\n if (typeof PointerEvent !== 'undefined') {\n addGlobalListener(window, 'pointerup', onColorAreaUp, false);\n } else {\n addGlobalListener(window, 'mouseup', onColorAreaUp, false);\n addGlobalListener(window, 'touchend', onColorAreaUp, false);\n }\n }\n };\n\n let onColorAreaUp = (e) => {\n let id = e.pointerId ?? e.changedTouches?.[0].identifier;\n if (isOnColorArea.current && id === currentPointer.current) {\n isOnColorArea.current = false;\n currentPointer.current = undefined;\n state.setDragging(false);\n focusInput();\n\n if (typeof PointerEvent !== 'undefined') {\n removeGlobalListener(window, 'pointerup', onColorAreaUp, false);\n } else {\n removeGlobalListener(window, 'mouseup', onColorAreaUp, false);\n removeGlobalListener(window, 'touchend', onColorAreaUp, false);\n }\n }\n };\n\n let colorAreaInteractions = isDisabled ? {} : mergeProps({\n ...(typeof PointerEvent !== 'undefined' ? {\n onPointerDown: (e: React.PointerEvent) => {\n if (e.pointerType === 'mouse' && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) {\n return;\n }\n onColorAreaDown(e.currentTarget, e.pointerId, e.clientX, e.clientY);\n }} : {\n onMouseDown: (e: React.MouseEvent) => {\n if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) {\n return;\n }\n onColorAreaDown(e.currentTarget, undefined, e.clientX, e.clientY);\n },\n onTouchStart: (e: React.TouchEvent) => {\n onColorAreaDown(e.currentTarget, e.changedTouches[0].identifier, e.changedTouches[0].clientX, e.changedTouches[0].clientY);\n }\n })\n }, movePropsContainer);\n\n let thumbInteractions = isDisabled ? {} : mergeProps({\n ...(typeof PointerEvent !== 'undefined' ? {\n onPointerDown: (e: React.PointerEvent) => {\n if (e.pointerType === 'mouse' && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) {\n return;\n }\n onThumbDown(e.pointerId);\n }} : {\n onMouseDown: (e: React.MouseEvent) => {\n if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) {\n return;\n }\n onThumbDown(undefined);\n },\n onTouchStart: (e: React.TouchEvent) => {\n onThumbDown(e.changedTouches[0].identifier);\n }\n })\n }, keyboardProps, movePropsThumb);\n\n let isMobile = isIOS() || isAndroid();\n\n let xInputLabellingProps = useLabels({\n ...props,\n 'aria-label': isMobile ? state.value.getChannelName(xChannel, locale) : formatMessage('x/y', {x: state.value.getChannelName(xChannel, locale), y: state.value.getChannelName(yChannel, locale)})\n });\n\n let yInputLabellingProps = useLabels({\n ...props,\n 'aria-label': isMobile ? state.value.getChannelName(yChannel, locale) : formatMessage('x/y', {x: state.value.getChannelName(xChannel, locale), y: state.value.getChannelName(yChannel, locale)})\n });\n\n let colorAriaLabellingProps = useLabels(props);\n\n let getValueTitle = () => [\n formatMessage('colorNameAndValue', {name: state.value.getChannelName('red', locale), value: state.value.formatChannelValue('red', locale)}),\n formatMessage('colorNameAndValue', {name: state.value.getChannelName('green', locale), value: state.value.formatChannelValue('green', locale)}),\n formatMessage('colorNameAndValue', {name: state.value.getChannelName('blue', locale), value: state.value.formatChannelValue('blue', locale)})\n ].join(', ');\n\n let ariaRoleDescription = isMobile ? null : formatMessage('twoDimensionalSlider');\n\n let {visuallyHiddenProps} = useVisuallyHidden({style: {\n opacity: '0.0001',\n width: '100%',\n height: '100%',\n pointerEvents: 'none'\n }});\n\n return {\n colorAreaProps: {\n ...colorAriaLabellingProps,\n ...colorAreaInteractions,\n role: 'group'\n },\n gradientProps: {\n role: 'presentation'\n },\n thumbProps: {\n ...thumbInteractions,\n role: 'presentation'\n },\n xInputProps: {\n ...xInputLabellingProps,\n ...visuallyHiddenProps,\n type: 'range',\n min: state.value.getChannelRange(xChannel).minValue,\n max: state.value.getChannelRange(xChannel).maxValue,\n step: xChannelStep,\n 'aria-roledescription': ariaRoleDescription,\n 'aria-valuetext': (\n isMobile ?\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(xChannel, locale), value: state.value.formatChannelValue(xChannel, locale)})\n :\n [\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(xChannel, locale), value: state.value.formatChannelValue(xChannel, locale)}),\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(yChannel, locale), value: state.value.formatChannelValue(yChannel, locale)})\n ].join(', ')\n ),\n title: getValueTitle(),\n disabled: isDisabled,\n value: state.value.getChannelValue(xChannel),\n tabIndex: 0,\n onChange: (e: ChangeEvent<HTMLInputElement>) => {\n state.setXValue(parseFloat(e.target.value));\n }\n },\n yInputProps: {\n ...yInputLabellingProps,\n ...visuallyHiddenProps,\n type: 'range',\n min: state.value.getChannelRange(yChannel).minValue,\n max: state.value.getChannelRange(yChannel).maxValue,\n step: yChannelStep,\n 'aria-roledescription': ariaRoleDescription,\n 'aria-valuetext': (\n isMobile ?\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(yChannel, locale), value: state.value.formatChannelValue(yChannel, locale)})\n :\n [\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(yChannel, locale), value: state.value.formatChannelValue(yChannel, locale)}),\n formatMessage('colorNameAndValue', {name: state.value.getChannelName(xChannel, locale), value: state.value.formatChannelValue(xChannel, locale)})\n ].join(', ')\n ),\n 'aria-orientation': 'vertical',\n title: getValueTitle(),\n disabled: isDisabled,\n value: state.value.getChannelValue(yChannel),\n tabIndex: -1,\n onChange: (e: ChangeEvent<HTMLInputElement>) => {\n state.setYValue(parseFloat(e.target.value));\n }\n }\n };\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"twoDimensionalSlider\": \"شريط تمرير ثنائي الأبعاد\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D плъзгач\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D posuvník\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-skyder\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-Schieberegler\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Ρυθμιστικό 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D slider\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Control deslizante en 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-liugur\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-liukusäädin\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Curseur 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"מחוון דו-ממדי\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D kliznik\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D csúszka\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Dispositivo di scorrimento 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D スライダー\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D 슬라이더\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D slankiklis\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Plaknes slīdnis\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-glidebryter\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-schuifregelaar\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Suwak 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Controle deslizante 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Controlo de deslize 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Cursor 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Двумерный ползунок\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D jazdec\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-drsnik\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D клизач\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D-reglage\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2B slayt gösterisi\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"Повзунок 2D\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D 滑块\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","{\n \"twoDimensionalSlider\": \"2D 滑桿\",\n \"colorNameAndValue\": \"{name}: {value}\",\n \"x/y\": \"{x} / {y}\"\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaColorSliderProps} from '@react-types/color';\nimport {ColorSliderState} from '@react-stately/color';\nimport {HTMLAttributes, RefObject} from 'react';\nimport {mergeProps} from '@react-aria/utils';\nimport {useLocale} from '@react-aria/i18n';\nimport {useSlider, useSliderThumb} from '@react-aria/slider';\n\ninterface ColorSliderAriaOptions extends AriaColorSliderProps {\n /** A ref for the track element. */\n trackRef: RefObject<HTMLElement>,\n /** A ref for the input element. */\n inputRef: RefObject<HTMLInputElement>\n}\n\ninterface ColorSliderAria {\n /** Props for the label element. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the track element. */\n trackProps: HTMLAttributes<HTMLElement>,\n /** Props for the thumb element. */\n thumbProps: HTMLAttributes<HTMLElement>,\n /** Props for the visually hidden range input element. */\n inputProps: HTMLAttributes<HTMLElement>,\n /** Props for the output element, displaying the value of the color slider. */\n outputProps: HTMLAttributes<HTMLElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a color slider component.\n * Color sliders allow users to adjust an individual channel of a color value.\n */\nexport function useColorSlider(props: ColorSliderAriaOptions, state: ColorSliderState): ColorSliderAria {\n let {trackRef, inputRef, orientation, channel, 'aria-label': ariaLabel} = props;\n\n let {locale, direction} = useLocale();\n\n // Provide a default aria-label if there is no other label provided.\n if (!props.label && !ariaLabel && !props['aria-labelledby']) {\n ariaLabel = state.value.getChannelName(channel, locale);\n }\n\n // @ts-ignore - ignore unused incompatible props\n let {groupProps, trackProps, labelProps, outputProps} = useSlider({...props, 'aria-label': ariaLabel}, state, trackRef);\n let {inputProps, thumbProps} = useSliderThumb({\n index: 0,\n orientation,\n isDisabled: props.isDisabled,\n trackRef,\n inputRef\n }, state);\n\n let generateBackground = () => {\n let value = state.getDisplayColor();\n let to: string;\n if (orientation === 'vertical') {\n to = 'top';\n } else if (direction === 'ltr') {\n to = 'right';\n } else {\n to = 'left';\n }\n switch (channel) {\n case 'hue':\n return `linear-gradient(to ${to}, rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)`;\n case 'lightness': {\n // We have to add an extra color stop in the middle so that the hue shows up at all.\n // Otherwise it will always just be black to white.\n let min = state.getThumbMinValue(0);\n let max = state.getThumbMaxValue(0);\n let start = value.withChannelValue(channel, min).toString('css');\n let middle = value.withChannelValue(channel, (max - min) / 2).toString('css');\n let end = value.withChannelValue(channel, max).toString('css');\n return `linear-gradient(to ${to}, ${start}, ${middle}, ${end})`;\n }\n case 'saturation':\n case 'brightness':\n case 'red':\n case 'green':\n case 'blue':\n case 'alpha': {\n let start = value.withChannelValue(channel, state.getThumbMinValue(0)).toString('css');\n let end = value.withChannelValue(channel, state.getThumbMaxValue(0)).toString('css');\n return `linear-gradient(to ${to}, ${start}, ${end})`;\n }\n default:\n throw new Error('Unknown color channel: ' + channel);\n }\n };\n\n let thumbPosition = state.getThumbPercent(0);\n if (orientation === 'vertical' || direction === 'rtl') {\n thumbPosition = 1 - thumbPosition;\n }\n\n return {\n trackProps: {\n ...mergeProps(groupProps, trackProps),\n style: {\n position: 'relative',\n touchAction: 'none',\n background: generateBackground()\n }\n },\n inputProps,\n thumbProps: {\n ...thumbProps,\n style: {\n touchAction: 'none',\n position: 'absolute',\n [orientation === 'vertical' ? 'top' : 'left']: `${thumbPosition * 100}%`,\n transform: 'translate(-50%, -50%)'\n }\n },\n labelProps,\n outputProps\n };\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaColorWheelProps} from '@react-types/color';\nimport {ColorWheelState} from '@react-stately/color';\nimport {focusWithoutScrolling, mergeProps, useGlobalListeners, useLabels} from '@react-aria/utils';\nimport React, {ChangeEvent, HTMLAttributes, InputHTMLAttributes, RefObject, useCallback, useRef} from 'react';\nimport {useKeyboard, useMove} from '@react-aria/interactions';\nimport {useLocale} from '@react-aria/i18n';\n\ninterface ColorWheelAriaProps extends AriaColorWheelProps {\n /** The outer radius of the color wheel. */\n outerRadius: number,\n /** The inner radius of the color wheel. */\n innerRadius: number\n}\n\ninterface ColorWheelAria {\n /** Props for the track element. */\n trackProps: HTMLAttributes<HTMLElement>,\n /** Props for the thumb element. */\n thumbProps: HTMLAttributes<HTMLElement>,\n /** Props for the visually hidden range input element. */\n inputProps: InputHTMLAttributes<HTMLInputElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a color wheel component.\n * Color wheels allow users to adjust the hue of an HSL or HSB color value on a circular track.\n */\nexport function useColorWheel(props: ColorWheelAriaProps, state: ColorWheelState, inputRef: RefObject<HTMLElement>): ColorWheelAria {\n let {\n isDisabled,\n innerRadius,\n outerRadius,\n 'aria-label': ariaLabel\n } = props;\n\n let {addGlobalListener, removeGlobalListener} = useGlobalListeners();\n\n let thumbRadius = (innerRadius + outerRadius) / 2;\n\n let focusInput = useCallback(() => {\n if (inputRef.current) {\n focusWithoutScrolling(inputRef.current);\n }\n }, [inputRef]);\n\n let stateRef = useRef<ColorWheelState>(null);\n stateRef.current = state;\n\n let currentPosition = useRef<{x: number, y: number}>(null);\n\n let {keyboardProps} = useKeyboard({\n onKeyDown(e) {\n // these are the cases that useMove doesn't handle\n if (!/^(PageUp|PageDown)$/.test(e.key)) {\n e.continuePropagation();\n return;\n }\n // same handling as useMove, don't need to stop propagation, useKeyboard will do that for us\n e.preventDefault();\n // remember to set this and unset it so that onChangeEnd is fired\n stateRef.current.setDragging(true);\n switch (e.key) {\n case 'PageUp':\n e.preventDefault();\n state.increment(stateRef.current.pageStep);\n break;\n case 'PageDown':\n e.preventDefault();\n state.decrement(stateRef.current.pageStep);\n break;\n }\n stateRef.current.setDragging(false);\n }\n });\n\n let moveHandler = {\n onMoveStart() {\n currentPosition.current = null;\n state.setDragging(true);\n },\n onMove({deltaX, deltaY, pointerType, shiftKey}) {\n if (currentPosition.current == null) {\n currentPosition.current = stateRef.current.getThumbPosition(thumbRadius);\n }\n currentPosition.current.x += deltaX;\n currentPosition.current.y += deltaY;\n if (pointerType === 'keyboard') {\n if (deltaX > 0 || deltaY < 0) {\n state.increment(shiftKey ? stateRef.current.pageStep : stateRef.current.step);\n } else if (deltaX < 0 || deltaY > 0) {\n state.decrement(shiftKey ? stateRef.current.pageStep : stateRef.current.step);\n }\n } else {\n stateRef.current.setHueFromPoint(currentPosition.current.x, currentPosition.current.y, thumbRadius);\n }\n },\n onMoveEnd() {\n isOnTrack.current = undefined;\n state.setDragging(false);\n focusInput();\n }\n };\n let {moveProps: movePropsThumb} = useMove(moveHandler);\n\n let currentPointer = useRef<number | null | undefined>(undefined);\n let isOnTrack = useRef<boolean>(false);\n let {moveProps: movePropsContainer} = useMove({\n onMoveStart() {\n if (isOnTrack.current) {\n moveHandler.onMoveStart();\n }\n },\n onMove(e) {\n if (isOnTrack.current) {\n moveHandler.onMove(e);\n }\n },\n onMoveEnd() {\n if (isOnTrack.current) {\n moveHandler.onMoveEnd();\n }\n }\n });\n\n let onThumbDown = (id: number | null) => {\n if (!state.isDragging) {\n currentPointer.current = id;\n focusInput();\n state.setDragging(true);\n\n if (typeof PointerEvent !== 'undefined') {\n addGlobalListener(window, 'pointerup', onThumbUp, false);\n } else {\n addGlobalListener(window, 'mouseup', onThumbUp, false);\n addGlobalListener(window, 'touchend', onThumbUp, false);\n }\n }\n };\n\n let onThumbUp = (e) => {\n let id = e.pointerId ?? e.changedTouches?.[0].identifier;\n if (id === currentPointer.current) {\n focusInput();\n state.setDragging(false);\n currentPointer.current = undefined;\n isOnTrack.current = false;\n\n if (typeof PointerEvent !== 'undefined') {\n removeGlobalListener(window, 'pointerup', onThumbUp, false);\n } else {\n removeGlobalListener(window, 'mouseup', onThumbUp, false);\n removeGlobalListener(window, 'touchend', onThumbUp, false);\n }\n }\n };\n\n let onTrackDown = (track: Element, id: number | null, pageX: number, pageY: number) => {\n let rect = track.getBoundingClientRect();\n let x = pageX - rect.x - rect.width / 2;\n let y = pageY - rect.y - rect.height / 2;\n let radius = Math.sqrt(x * x + y * y);\n if (innerRadius < radius && radius < outerRadius && !state.isDragging && currentPointer.current === undefined) {\n isOnTrack.current = true;\n currentPointer.current = id;\n stateRef.current.setHueFromPoint(x, y, radius);\n\n focusInput();\n state.setDragging(true);\n\n if (typeof PointerEvent !== 'undefined') {\n addGlobalListener(window, 'pointerup', onTrackUp, false);\n } else {\n addGlobalListener(window, 'mouseup', onTrackUp, false);\n addGlobalListener(window, 'touchend', onTrackUp, false);\n }\n }\n };\n\n let onTrackUp = (e) => {\n let id = e.pointerId ?? e.changedTouches?.[0].identifier;\n if (isOnTrack.current && id === currentPointer.current) {\n isOnTrack.current = false;\n currentPointer.current = undefined;\n state.setDragging(false);\n focusInput();\n\n\n if (typeof PointerEvent !== 'undefined') {\n removeGlobalListener(window, 'pointerup', onTrackUp, false);\n } else {\n removeGlobalListener(window, 'mouseup', onTrackUp, false);\n removeGlobalListener(window, 'touchend', onTrackUp, false);\n }\n }\n };\n\n let trackInteractions = isDisabled ? {} : mergeProps({\n ...(typeof PointerEvent !== 'undefined' ? {\n onPointerDown: (e: React.PointerEvent) => {\n if (e.pointerType === 'mouse' && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) {\n return;\n }\n onTrackDown(e.currentTarget, e.pointerId, e.clientX, e.clientY);\n }} : {\n onMouseDown: (e: React.MouseEvent) => {\n if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) {\n return;\n }\n onTrackDown(e.currentTarget, undefined, e.clientX, e.clientY);\n },\n onTouchStart: (e: React.TouchEvent) => {\n onTrackDown(e.currentTarget, e.changedTouches[0].identifier, e.changedTouches[0].clientX, e.changedTouches[0].clientY);\n }\n })\n }, movePropsContainer);\n\n let thumbInteractions = isDisabled ? {} : mergeProps({\n onMouseDown: (e: React.MouseEvent) => {\n if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) {\n return;\n }\n onThumbDown(undefined);\n },\n onPointerDown: (e: React.PointerEvent) => {\n if (e.pointerType === 'mouse' && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) {\n return;\n }\n onThumbDown(e.pointerId);\n },\n onTouchStart: (e: React.TouchEvent) => {\n onThumbDown(e.changedTouches[0].identifier);\n }\n }, keyboardProps, movePropsThumb);\n let {x, y} = state.getThumbPosition(thumbRadius);\n\n // Provide a default aria-label if none is given\n let {locale} = useLocale();\n if (ariaLabel == null && props['aria-labelledby'] == null) {\n ariaLabel = state.value.getChannelName('hue', locale);\n }\n\n let inputLabellingProps = useLabels({\n ...props,\n 'aria-label': ariaLabel\n });\n\n let {minValue, maxValue, step} = state.value.getChannelRange('hue');\n return {\n trackProps: {\n ...trackInteractions,\n style: {\n position: 'relative',\n touchAction: 'none',\n width: outerRadius * 2,\n height: outerRadius * 2,\n background: `\n conic-gradient(\n from 90deg,\n hsl(0, 100%, 50%),\n hsl(30, 100%, 50%),\n hsl(60, 100%, 50%),\n hsl(90, 100%, 50%),\n hsl(120, 100%, 50%),\n hsl(150, 100%, 50%),\n hsl(180, 100%, 50%),\n hsl(210, 100%, 50%),\n hsl(240, 100%, 50%),\n hsl(270, 100%, 50%),\n hsl(300, 100%, 50%),\n hsl(330, 100%, 50%),\n hsl(360, 100%, 50%)\n )\n `,\n clipPath: `path(evenodd, \"${circlePath(outerRadius, outerRadius, outerRadius)} ${circlePath(outerRadius, outerRadius, innerRadius)}\")`\n }\n },\n thumbProps: {\n ...thumbInteractions,\n style: {\n position: 'absolute',\n left: '50%',\n top: '50%',\n transform: `translate(calc(${x}px - 50%), calc(${y}px - 50%))`,\n touchAction: 'none'\n }\n },\n inputProps: mergeProps(\n inputLabellingProps,\n {\n type: 'range',\n min: String(minValue),\n max: String(maxValue),\n step: String(step),\n 'aria-valuetext': state.value.formatChannelValue('hue', locale),\n disabled: isDisabled,\n value: `${state.value.getChannelValue('hue')}`,\n onChange: (e: ChangeEvent<HTMLInputElement>) => {\n state.setHue(parseFloat(e.target.value));\n }\n }\n )\n };\n}\n\n// Creates an SVG path string for a circle.\nfunction circlePath(cx: number, cy: number, r: number) {\n return `M ${cx}, ${cy} m ${-r}, 0 a ${r}, ${r}, 0, 1, 0, ${r * 2}, 0 a ${r}, ${r}, 0, 1, 0 ${-r * 2}, 0`;\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaColorFieldProps} from '@react-types/color';\nimport {ColorFieldState} from '@react-stately/color';\nimport {\n HTMLAttributes,\n LabelHTMLAttributes,\n RefObject,\n useCallback,\n useState\n} from 'react';\nimport {mergeProps, useId} from '@react-aria/utils';\nimport {useFocusWithin, useScrollWheel} from '@react-aria/interactions';\nimport {useFormattedTextField} from '@react-aria/textfield';\nimport {useSpinButton} from '@react-aria/spinbutton';\n\ninterface ColorFieldAria {\n /** Props for the label element. */\n labelProps: LabelHTMLAttributes<HTMLLabelElement>,\n /** Props for the input element. */\n inputProps: HTMLAttributes<HTMLInputElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a color field component.\n * Color fields allow users to enter and adjust a hex color value.\n */\nexport function useColorField(\n props: AriaColorFieldProps,\n state: ColorFieldState,\n ref: RefObject<HTMLInputElement>\n): ColorFieldAria {\n let {\n isDisabled,\n isReadOnly,\n isRequired\n } = props;\n\n let {\n colorValue,\n inputValue,\n commit,\n increment,\n decrement,\n incrementToMax,\n decrementToMin\n } = state;\n\n let inputId = useId();\n let {spinButtonProps} = useSpinButton(\n {\n isDisabled,\n isReadOnly,\n isRequired,\n maxValue: 0xFFFFFF,\n minValue: 0,\n onIncrement: increment,\n onIncrementToMax: incrementToMax,\n onDecrement: decrement,\n onDecrementToMin: decrementToMin,\n value: colorValue ? colorValue.toHexInt() : undefined,\n textValue: colorValue ? colorValue.toString('hex') : undefined\n }\n );\n\n let [focusWithin, setFocusWithin] = useState(false);\n let {focusWithinProps} = useFocusWithin({isDisabled, onFocusWithinChange: setFocusWithin});\n\n let onWheel = useCallback((e) => {\n if (Math.abs(e.deltaY) <= Math.abs(e.deltaX)) {\n return;\n }\n if (e.deltaY > 0) {\n increment();\n } else if (e.deltaY < 0) {\n decrement();\n }\n }, [decrement, increment]);\n // If the input isn't supposed to receive input, disable scrolling.\n let scrollingDisabled = isDisabled || isReadOnly || !focusWithin;\n useScrollWheel({onScroll: onWheel, isDisabled: scrollingDisabled}, ref);\n\n let onChange = value => {\n state.setInputValue(value);\n };\n\n let {labelProps, inputProps} = useFormattedTextField(\n mergeProps(props, {\n id: inputId,\n value: inputValue,\n defaultValue: undefined,\n type: 'text',\n autoComplete: 'off',\n onChange\n }), state, ref);\n\n return {\n labelProps,\n inputProps: mergeProps(inputProps, spinButtonProps, focusWithinProps, {\n role: 'textbox',\n 'aria-valuemax': null,\n 'aria-valuemin': null,\n 'aria-valuenow': null,\n 'aria-valuetext': null,\n autoCorrect: 'off',\n spellCheck: 'false',\n onBlur: commit\n })\n };\n}\n"],"names":[],"version":3,"file":"module.js.map"}
|
package/dist/types.d.ts
CHANGED
|
@@ -13,11 +13,19 @@ interface ColorAreaAria {
|
|
|
13
13
|
/** Props for the visually hidden vertical range input element. */
|
|
14
14
|
yInputProps: InputHTMLAttributes<HTMLInputElement>;
|
|
15
15
|
}
|
|
16
|
+
interface ColorAreaAriaProps extends AriaColorAreaProps {
|
|
17
|
+
/** A ref to the input that represents the x axis of the color area. */
|
|
18
|
+
inputXRef: RefObject<HTMLElement>;
|
|
19
|
+
/** A ref to the input that represents the y axis of the color area. */
|
|
20
|
+
inputYRef: RefObject<HTMLElement>;
|
|
21
|
+
/** A ref to the color area containing element. */
|
|
22
|
+
containerRef: RefObject<HTMLElement>;
|
|
23
|
+
}
|
|
16
24
|
/**
|
|
17
25
|
* Provides the behavior and accessibility implementation for a color wheel component.
|
|
18
26
|
* Color wheels allow users to adjust the hue of an HSL or HSB color value on a circular track.
|
|
19
27
|
*/
|
|
20
|
-
export function useColorArea(props:
|
|
28
|
+
export function useColorArea(props: ColorAreaAriaProps, state: ColorAreaState): ColorAreaAria;
|
|
21
29
|
interface ColorSliderAriaOptions extends AriaColorSliderProps {
|
|
22
30
|
/** A ref for the track element. */
|
|
23
31
|
trackRef: RefObject<HTMLElement>;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;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C,UAAU,EAAE,eAAe,WAAW,CAAC,CAAC;IACxC,yDAAyD;IACzD,UAAU,EAAE,eAAe,WAAW,CAAC,CAAC;IACxC,8EAA8E;IAC9E,WAAW,EAAE,eAAe,WAAW,CAAC,CAAA;CACzC;AAED;;;GAGG;AACH,+BAA+B,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,gBAAgB,GAAG,eAAe,CAqFtG;AC7GD,6BAA8B,SAAQ,mBAAmB;IACvD,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAA;CACpB;AAED;IACE,mCAAmC;IACnC,UAAU,EAAE,eAAe,WAAW,CAAC,CAAC;IACxC,mCAAmC;IACnC,UAAU,EAAE,eAAe,WAAW,CAAC,CAAC;IACxC,yDAAyD;IACzD,UAAU,EAAE,oBAAoB,gBAAgB,CAAC,CAAA;CAClD;AAED;;;GAGG;AACH,8BAA8B,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,UAAU,WAAW,CAAC,GAAG,cAAc,CAmRlI;AChSD;IACE,mCAAmC;IACnC,UAAU,EAAE,oBAAoB,gBAAgB,CAAC,CAAC;IAClD,mCAAmC;IACnC,UAAU,EAAE,eAAe,gBAAgB,CAAC,CAAA;CAC7C;AAED;;;GAGG;AACH,8BACE,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,eAAe,EACtB,GAAG,EAAE,UAAU,gBAAgB,CAAC,GAC/B,cAAc,CA8EhB","sources":["packages/@react-aria/color/src/packages/@react-aria/color/src/useColorArea.ts","packages/@react-aria/color/src/packages/@react-aria/color/src/useColorSlider.ts","packages/@react-aria/color/src/packages/@react-aria/color/src/useColorWheel.ts","packages/@react-aria/color/src/packages/@react-aria/color/src/useColorField.ts","packages/@react-aria/color/src/packages/@react-aria/color/src/index.ts","packages/@react-aria/color/src/index.ts"],"sourcesContent":[null,null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport * from './useColorArea';\nexport * from './useColorSlider';\nexport * from './useColorWheel';\nexport * from './useColorField';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-aria/color",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.3167+847af08e8",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@babel/runtime": "^7.6.2",
|
|
21
|
-
"@internationalized/message": "3.0.6-nightly.
|
|
22
|
-
"@react-aria/i18n": "3.0.0-nightly.
|
|
23
|
-
"@react-aria/interactions": "3.0.0-nightly.
|
|
24
|
-
"@react-aria/slider": "3.0.
|
|
25
|
-
"@react-aria/spinbutton": "3.0.0-nightly.
|
|
26
|
-
"@react-aria/textfield": "3.0.0-nightly.
|
|
27
|
-
"@react-aria/utils": "3.0.0-nightly.
|
|
28
|
-
"@react-aria/visually-hidden": "3.0.0-nightly.
|
|
29
|
-
"@react-stately/color": "3.0.0-nightly.
|
|
30
|
-
"@react-types/color": "3.0.0-nightly.
|
|
31
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
32
|
-
"@react-types/slider": "3.0.
|
|
21
|
+
"@internationalized/message": "3.0.6-nightly.3167+847af08e8",
|
|
22
|
+
"@react-aria/i18n": "3.0.0-nightly.1468+847af08e8",
|
|
23
|
+
"@react-aria/interactions": "3.0.0-nightly.1468+847af08e8",
|
|
24
|
+
"@react-aria/slider": "3.0.7-nightly.3167+847af08e8",
|
|
25
|
+
"@react-aria/spinbutton": "3.0.0-nightly.1468+847af08e8",
|
|
26
|
+
"@react-aria/textfield": "3.0.0-nightly.1468+847af08e8",
|
|
27
|
+
"@react-aria/utils": "3.0.0-nightly.1468+847af08e8",
|
|
28
|
+
"@react-aria/visually-hidden": "3.0.0-nightly.1468+847af08e8",
|
|
29
|
+
"@react-stately/color": "3.0.0-nightly.3167+847af08e8",
|
|
30
|
+
"@react-types/color": "3.0.0-nightly.3167+847af08e8",
|
|
31
|
+
"@react-types/shared": "3.0.0-nightly.1468+847af08e8",
|
|
32
|
+
"@react-types/slider": "3.0.6-nightly.3167+847af08e8"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"react": "^16.8.0 || ^17.0.0-rc.1",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "847af08e81d798761328d3d7e5014a27206a6c87"
|
|
42
42
|
}
|
package/src/useColorArea.ts
CHANGED
|
@@ -33,13 +33,25 @@ interface ColorAreaAria {
|
|
|
33
33
|
yInputProps: InputHTMLAttributes<HTMLInputElement>
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
interface ColorAreaAriaProps extends AriaColorAreaProps {
|
|
37
|
+
/** A ref to the input that represents the x axis of the color area. */
|
|
38
|
+
inputXRef: RefObject<HTMLElement>,
|
|
39
|
+
/** A ref to the input that represents the y axis of the color area. */
|
|
40
|
+
inputYRef: RefObject<HTMLElement>,
|
|
41
|
+
/** A ref to the color area containing element. */
|
|
42
|
+
containerRef: RefObject<HTMLElement>
|
|
43
|
+
}
|
|
44
|
+
|
|
36
45
|
/**
|
|
37
46
|
* Provides the behavior and accessibility implementation for a color wheel component.
|
|
38
47
|
* Color wheels allow users to adjust the hue of an HSL or HSB color value on a circular track.
|
|
39
48
|
*/
|
|
40
|
-
export function useColorArea(props:
|
|
49
|
+
export function useColorArea(props: ColorAreaAriaProps, state: ColorAreaState): ColorAreaAria {
|
|
41
50
|
let {
|
|
42
|
-
isDisabled
|
|
51
|
+
isDisabled,
|
|
52
|
+
inputXRef,
|
|
53
|
+
inputYRef,
|
|
54
|
+
containerRef
|
|
43
55
|
} = props;
|
|
44
56
|
let formatMessage = useMessageFormatter(intlMessages);
|
|
45
57
|
|
package/src/useColorField.ts
CHANGED
|
@@ -85,7 +85,7 @@ export function useColorField(
|
|
|
85
85
|
} else if (e.deltaY < 0) {
|
|
86
86
|
decrement();
|
|
87
87
|
}
|
|
88
|
-
}, [
|
|
88
|
+
}, [decrement, increment]);
|
|
89
89
|
// If the input isn't supposed to receive input, disable scrolling.
|
|
90
90
|
let scrollingDisabled = isDisabled || isReadOnly || !focusWithin;
|
|
91
91
|
useScrollWheel({onScroll: onWheel, isDisabled: scrollingDisabled}, ref);
|
package/src/useColorWheel.ts
CHANGED
|
@@ -40,7 +40,6 @@ interface ColorWheelAria {
|
|
|
40
40
|
export function useColorWheel(props: ColorWheelAriaProps, state: ColorWheelState, inputRef: RefObject<HTMLElement>): ColorWheelAria {
|
|
41
41
|
let {
|
|
42
42
|
isDisabled,
|
|
43
|
-
step = 1,
|
|
44
43
|
innerRadius,
|
|
45
44
|
outerRadius,
|
|
46
45
|
'aria-label': ariaLabel
|
|
@@ -257,6 +256,7 @@ export function useColorWheel(props: ColorWheelAriaProps, state: ColorWheelState
|
|
|
257
256
|
'aria-label': ariaLabel
|
|
258
257
|
});
|
|
259
258
|
|
|
259
|
+
let {minValue, maxValue, step} = state.value.getChannelRange('hue');
|
|
260
260
|
return {
|
|
261
261
|
trackProps: {
|
|
262
262
|
...trackInteractions,
|
|
@@ -300,8 +300,8 @@ export function useColorWheel(props: ColorWheelAriaProps, state: ColorWheelState
|
|
|
300
300
|
inputLabellingProps,
|
|
301
301
|
{
|
|
302
302
|
type: 'range',
|
|
303
|
-
min:
|
|
304
|
-
max:
|
|
303
|
+
min: String(minValue),
|
|
304
|
+
max: String(maxValue),
|
|
305
305
|
step: String(step),
|
|
306
306
|
'aria-valuetext': state.value.formatChannelValue('hue', locale),
|
|
307
307
|
disabled: isDisabled,
|