@react-spectrum/color 3.0.0-beta.32 → 3.0.0-beta.34
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/ColorArea.main.js +98 -0
- package/dist/ColorArea.main.js.map +1 -0
- package/dist/ColorArea.mjs +93 -0
- package/dist/ColorArea.module.js +93 -0
- package/dist/ColorArea.module.js.map +1 -0
- package/dist/ColorEditor.32e497e8.css +20 -0
- package/dist/ColorEditor.32e497e8.css.map +1 -0
- package/dist/ColorEditor.main.js +116 -0
- package/dist/ColorEditor.main.js.map +1 -0
- package/dist/ColorEditor.mjs +111 -0
- package/dist/ColorEditor.module.js +111 -0
- package/dist/ColorEditor.module.js.map +1 -0
- package/dist/ColorField.main.js +99 -0
- package/dist/ColorField.main.js.map +1 -0
- package/dist/ColorField.mjs +94 -0
- package/dist/ColorField.module.js +94 -0
- package/dist/ColorField.module.js.map +1 -0
- package/dist/ColorPicker.ab9f47c0.css +204 -0
- package/dist/ColorPicker.ab9f47c0.css.map +1 -0
- package/dist/ColorPicker.main.js +125 -0
- package/dist/ColorPicker.main.js.map +1 -0
- package/dist/ColorPicker.mjs +116 -0
- package/dist/ColorPicker.module.js +116 -0
- package/dist/ColorPicker.module.js.map +1 -0
- package/dist/ColorSlider.main.js +129 -0
- package/dist/ColorSlider.main.js.map +1 -0
- package/dist/ColorSlider.mjs +124 -0
- package/dist/ColorSlider.module.js +124 -0
- package/dist/ColorSlider.module.js.map +1 -0
- package/dist/ColorSwatch.f6e6f811.css +260 -0
- package/dist/ColorSwatch.f6e6f811.css.map +1 -0
- package/dist/ColorSwatch.main.js +94 -0
- package/dist/ColorSwatch.main.js.map +1 -0
- package/dist/ColorSwatch.mjs +84 -0
- package/dist/ColorSwatch.module.js +84 -0
- package/dist/ColorSwatch.module.js.map +1 -0
- package/dist/ColorSwatchPicker.1575be06.css +356 -0
- package/dist/ColorSwatchPicker.1575be06.css.map +1 -0
- package/dist/ColorSwatchPicker.main.js +115 -0
- package/dist/ColorSwatchPicker.main.js.map +1 -0
- package/dist/ColorSwatchPicker.mjs +106 -0
- package/dist/ColorSwatchPicker.module.js +106 -0
- package/dist/ColorSwatchPicker.module.js.map +1 -0
- package/dist/ColorThumb.main.js +144 -0
- package/dist/ColorThumb.main.js.map +1 -0
- package/dist/ColorThumb.mjs +139 -0
- package/dist/ColorThumb.module.js +139 -0
- package/dist/ColorThumb.module.js.map +1 -0
- package/dist/ColorWheel.main.js +118 -0
- package/dist/ColorWheel.main.js.map +1 -0
- package/dist/ColorWheel.mjs +113 -0
- package/dist/ColorWheel.module.js +113 -0
- package/dist/ColorWheel.module.js.map +1 -0
- package/dist/ar-AE.main.js +10 -0
- package/dist/ar-AE.main.js.map +1 -0
- package/dist/ar-AE.mjs +12 -0
- package/dist/ar-AE.module.js +12 -0
- package/dist/ar-AE.module.js.map +1 -0
- package/dist/bg-BG.main.js +10 -0
- package/dist/bg-BG.main.js.map +1 -0
- package/dist/bg-BG.mjs +12 -0
- package/dist/bg-BG.module.js +12 -0
- package/dist/bg-BG.module.js.map +1 -0
- package/dist/colorarea_vars_css.main.js +29 -0
- package/dist/colorarea_vars_css.main.js.map +1 -0
- package/dist/colorarea_vars_css.mjs +31 -0
- package/dist/colorarea_vars_css.module.js +31 -0
- package/dist/colorarea_vars_css.module.js.map +1 -0
- package/dist/colorfield.faeff3c2.css +12 -0
- package/dist/colorfield.faeff3c2.css.map +1 -0
- package/dist/colorfield_css.main.js +11 -0
- package/dist/colorfield_css.main.js.map +1 -0
- package/dist/colorfield_css.mjs +13 -0
- package/dist/colorfield_css.module.js +13 -0
- package/dist/colorfield_css.module.js.map +1 -0
- package/dist/colorhandle_vars_css.main.js +26 -0
- package/dist/colorhandle_vars_css.main.js.map +1 -0
- package/dist/colorhandle_vars_css.mjs +28 -0
- package/dist/colorhandle_vars_css.module.js +28 -0
- package/dist/colorhandle_vars_css.module.js.map +1 -0
- package/dist/colorloupe_vars_css.main.js +23 -0
- package/dist/colorloupe_vars_css.main.js.map +1 -0
- package/dist/colorloupe_vars_css.mjs +25 -0
- package/dist/colorloupe_vars_css.module.js +25 -0
- package/dist/colorloupe_vars_css.module.js.map +1 -0
- package/dist/colorslider_vars_css.main.js +53 -0
- package/dist/colorslider_vars_css.main.js.map +1 -0
- package/dist/colorslider_vars_css.mjs +55 -0
- package/dist/colorslider_vars_css.module.js +55 -0
- package/dist/colorslider_vars_css.module.js.map +1 -0
- package/dist/colorwheel_vars_css.main.js +35 -0
- package/dist/colorwheel_vars_css.main.js.map +1 -0
- package/dist/colorwheel_vars_css.mjs +37 -0
- package/dist/colorwheel_vars_css.module.js +37 -0
- package/dist/colorwheel_vars_css.module.js.map +1 -0
- package/dist/cs-CZ.main.js +10 -0
- package/dist/cs-CZ.main.js.map +1 -0
- package/dist/cs-CZ.mjs +12 -0
- package/dist/cs-CZ.module.js +12 -0
- package/dist/cs-CZ.module.js.map +1 -0
- package/dist/da-DK.main.js +10 -0
- package/dist/da-DK.main.js.map +1 -0
- package/dist/da-DK.mjs +12 -0
- package/dist/da-DK.module.js +12 -0
- package/dist/da-DK.module.js.map +1 -0
- package/dist/de-DE.main.js +10 -0
- package/dist/de-DE.main.js.map +1 -0
- package/dist/de-DE.mjs +12 -0
- package/dist/de-DE.module.js +12 -0
- package/dist/de-DE.module.js.map +1 -0
- package/dist/el-GR.main.js +10 -0
- package/dist/el-GR.main.js.map +1 -0
- package/dist/el-GR.mjs +12 -0
- package/dist/el-GR.module.js +12 -0
- package/dist/el-GR.module.js.map +1 -0
- package/dist/en-US.main.js +10 -0
- package/dist/en-US.main.js.map +1 -0
- package/dist/en-US.mjs +12 -0
- package/dist/en-US.module.js +12 -0
- package/dist/en-US.module.js.map +1 -0
- package/dist/es-ES.main.js +10 -0
- package/dist/es-ES.main.js.map +1 -0
- package/dist/es-ES.mjs +12 -0
- package/dist/es-ES.module.js +12 -0
- package/dist/es-ES.module.js.map +1 -0
- package/dist/et-EE.main.js +10 -0
- package/dist/et-EE.main.js.map +1 -0
- package/dist/et-EE.mjs +12 -0
- package/dist/et-EE.module.js +12 -0
- package/dist/et-EE.module.js.map +1 -0
- package/dist/fi-FI.main.js +10 -0
- package/dist/fi-FI.main.js.map +1 -0
- package/dist/fi-FI.mjs +12 -0
- package/dist/fi-FI.module.js +12 -0
- package/dist/fi-FI.module.js.map +1 -0
- package/dist/fr-FR.main.js +10 -0
- package/dist/fr-FR.main.js.map +1 -0
- package/dist/fr-FR.mjs +12 -0
- package/dist/fr-FR.module.js +12 -0
- package/dist/fr-FR.module.js.map +1 -0
- package/dist/he-IL.main.js +10 -0
- package/dist/he-IL.main.js.map +1 -0
- package/dist/he-IL.mjs +12 -0
- package/dist/he-IL.module.js +12 -0
- package/dist/he-IL.module.js.map +1 -0
- package/dist/hr-HR.main.js +10 -0
- package/dist/hr-HR.main.js.map +1 -0
- package/dist/hr-HR.mjs +12 -0
- package/dist/hr-HR.module.js +12 -0
- package/dist/hr-HR.module.js.map +1 -0
- package/dist/hu-HU.main.js +10 -0
- package/dist/hu-HU.main.js.map +1 -0
- package/dist/hu-HU.mjs +12 -0
- package/dist/hu-HU.module.js +12 -0
- package/dist/hu-HU.module.js.map +1 -0
- package/dist/import.mjs +10 -546
- package/dist/intlStrings.main.js +108 -0
- package/dist/intlStrings.main.js.map +1 -0
- package/dist/intlStrings.mjs +110 -0
- package/dist/intlStrings.module.js +110 -0
- package/dist/intlStrings.module.js.map +1 -0
- package/dist/it-IT.main.js +10 -0
- package/dist/it-IT.main.js.map +1 -0
- package/dist/it-IT.mjs +12 -0
- package/dist/it-IT.module.js +12 -0
- package/dist/it-IT.module.js.map +1 -0
- package/dist/ja-JP.main.js +10 -0
- package/dist/ja-JP.main.js.map +1 -0
- package/dist/ja-JP.mjs +12 -0
- package/dist/ja-JP.module.js +12 -0
- package/dist/ja-JP.module.js.map +1 -0
- package/dist/ko-KR.main.js +10 -0
- package/dist/ko-KR.main.js.map +1 -0
- package/dist/ko-KR.mjs +12 -0
- package/dist/ko-KR.module.js +12 -0
- package/dist/ko-KR.module.js.map +1 -0
- package/dist/lt-LT.main.js +10 -0
- package/dist/lt-LT.main.js.map +1 -0
- package/dist/lt-LT.mjs +12 -0
- package/dist/lt-LT.module.js +12 -0
- package/dist/lt-LT.module.js.map +1 -0
- package/dist/lv-LV.main.js +10 -0
- package/dist/lv-LV.main.js.map +1 -0
- package/dist/lv-LV.mjs +12 -0
- package/dist/lv-LV.module.js +12 -0
- package/dist/lv-LV.module.js.map +1 -0
- package/dist/main.js +18 -544
- package/dist/main.js.map +1 -1
- package/dist/module.js +10 -546
- package/dist/module.js.map +1 -1
- package/dist/nb-NO.main.js +10 -0
- package/dist/nb-NO.main.js.map +1 -0
- package/dist/nb-NO.mjs +12 -0
- package/dist/nb-NO.module.js +12 -0
- package/dist/nb-NO.module.js.map +1 -0
- package/dist/nl-NL.main.js +10 -0
- package/dist/nl-NL.main.js.map +1 -0
- package/dist/nl-NL.mjs +12 -0
- package/dist/nl-NL.module.js +12 -0
- package/dist/nl-NL.module.js.map +1 -0
- package/dist/pl-PL.main.js +10 -0
- package/dist/pl-PL.main.js.map +1 -0
- package/dist/pl-PL.mjs +12 -0
- package/dist/pl-PL.module.js +12 -0
- package/dist/pl-PL.module.js.map +1 -0
- package/dist/pt-BR.main.js +10 -0
- package/dist/pt-BR.main.js.map +1 -0
- package/dist/pt-BR.mjs +12 -0
- package/dist/pt-BR.module.js +12 -0
- package/dist/pt-BR.module.js.map +1 -0
- package/dist/pt-PT.main.js +10 -0
- package/dist/pt-PT.main.js.map +1 -0
- package/dist/pt-PT.mjs +12 -0
- package/dist/pt-PT.module.js +12 -0
- package/dist/pt-PT.module.js.map +1 -0
- package/dist/ro-RO.main.js +10 -0
- package/dist/ro-RO.main.js.map +1 -0
- package/dist/ro-RO.mjs +12 -0
- package/dist/ro-RO.module.js +12 -0
- package/dist/ro-RO.module.js.map +1 -0
- package/dist/ru-RU.main.js +10 -0
- package/dist/ru-RU.main.js.map +1 -0
- package/dist/ru-RU.mjs +12 -0
- package/dist/ru-RU.module.js +12 -0
- package/dist/ru-RU.module.js.map +1 -0
- package/dist/sk-SK.main.js +10 -0
- package/dist/sk-SK.main.js.map +1 -0
- package/dist/sk-SK.mjs +12 -0
- package/dist/sk-SK.module.js +12 -0
- package/dist/sk-SK.module.js.map +1 -0
- package/dist/sl-SI.main.js +10 -0
- package/dist/sl-SI.main.js.map +1 -0
- package/dist/sl-SI.mjs +12 -0
- package/dist/sl-SI.module.js +12 -0
- package/dist/sl-SI.module.js.map +1 -0
- package/dist/sr-SP.main.js +10 -0
- package/dist/sr-SP.main.js.map +1 -0
- package/dist/sr-SP.mjs +12 -0
- package/dist/sr-SP.module.js +12 -0
- package/dist/sr-SP.module.js.map +1 -0
- package/dist/sv-SE.main.js +10 -0
- package/dist/sv-SE.main.js.map +1 -0
- package/dist/sv-SE.mjs +12 -0
- package/dist/sv-SE.module.js +12 -0
- package/dist/sv-SE.module.js.map +1 -0
- package/dist/tr-TR.main.js +10 -0
- package/dist/tr-TR.main.js.map +1 -0
- package/dist/tr-TR.mjs +12 -0
- package/dist/tr-TR.module.js +12 -0
- package/dist/tr-TR.module.js.map +1 -0
- package/dist/types.d.ts +77 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/uk-UA.main.js +10 -0
- package/dist/uk-UA.main.js.map +1 -0
- package/dist/uk-UA.mjs +12 -0
- package/dist/uk-UA.module.js +12 -0
- package/dist/uk-UA.module.js.map +1 -0
- package/dist/vars.53b417c1.css +75 -0
- package/dist/vars.53b417c1.css.map +1 -0
- package/dist/vars.6fa9fa04.css +93 -0
- package/dist/vars.6fa9fa04.css.map +1 -0
- package/dist/vars.aa07b6d2.css +120 -0
- package/dist/vars.aa07b6d2.css.map +1 -0
- package/dist/vars.ac235018.css +93 -0
- package/dist/vars.ac235018.css.map +1 -0
- package/dist/vars.cc682729.css +41 -0
- package/dist/vars.cc682729.css.map +1 -0
- package/dist/zh-CN.main.js +10 -0
- package/dist/zh-CN.main.js.map +1 -0
- package/dist/zh-CN.mjs +12 -0
- package/dist/zh-CN.module.js +12 -0
- package/dist/zh-CN.module.js.map +1 -0
- package/dist/zh-TW.main.js +10 -0
- package/dist/zh-TW.main.js.map +1 -0
- package/dist/zh-TW.mjs +12 -0
- package/dist/zh-TW.module.js +12 -0
- package/dist/zh-TW.module.js.map +1 -0
- package/package.json +23 -17
- package/src/ColorArea.tsx +7 -6
- package/src/ColorEditor.tsx +63 -0
- package/src/ColorField.tsx +67 -14
- package/src/ColorPicker.tsx +122 -0
- package/src/ColorSlider.tsx +6 -4
- package/src/ColorSwatch.tsx +102 -0
- package/src/ColorSwatchPicker.tsx +118 -0
- package/src/ColorThumb.tsx +72 -25
- package/src/ColorWheel.tsx +5 -2
- package/src/index.ts +10 -0
- package/dist/main.css +0 -491
- package/dist/main.css.map +0 -1
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import {ColorThumb as $3a90e89d07d7bbd5$export$a3cc47cee1c1ccc} from "./ColorThumb.mjs";
|
|
2
|
+
import "./vars.aa07b6d2.css";
|
|
3
|
+
import $fxUYb$colorslider_vars_cssmodulejs from "./colorslider_vars_css.mjs";
|
|
4
|
+
import {useFocusableRef as $fxUYb$useFocusableRef, useStyleProps as $fxUYb$useStyleProps, classNames as $fxUYb$classNames, SlotProvider as $fxUYb$SlotProvider} from "@react-spectrum/utils";
|
|
5
|
+
import {useContextProps as $fxUYb$useContextProps, ColorSliderContext as $fxUYb$ColorSliderContext} from "react-aria-components";
|
|
6
|
+
import {Label as $fxUYb$Label} from "@react-spectrum/label";
|
|
7
|
+
import $fxUYb$react, {useRef as $fxUYb$useRef, useState as $fxUYb$useState} from "react";
|
|
8
|
+
import {useColorSlider as $fxUYb$useColorSlider} from "@react-aria/color";
|
|
9
|
+
import {useColorSliderState as $fxUYb$useColorSliderState} from "@react-stately/color";
|
|
10
|
+
import {useFocusVisible as $fxUYb$useFocusVisible, useFocus as $fxUYb$useFocus} from "@react-aria/interactions";
|
|
11
|
+
import {useLocale as $fxUYb$useLocale} from "@react-aria/i18n";
|
|
12
|
+
import {useProviderProps as $fxUYb$useProviderProps} from "@react-spectrum/provider";
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
function $parcel$interopDefault(a) {
|
|
16
|
+
return a && a.__esModule ? a.default : a;
|
|
17
|
+
}
|
|
18
|
+
/*
|
|
19
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
20
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
21
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
22
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
23
|
+
*
|
|
24
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
25
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
26
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
27
|
+
* governing permissions and limitations under the License.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
function $3870e4ce67ed7ee1$var$ColorSlider(props, ref) {
|
|
40
|
+
props = (0, $fxUYb$useProviderProps)(props);
|
|
41
|
+
let inputRef = (0, $fxUYb$useRef)(null);
|
|
42
|
+
let trackRef = (0, $fxUYb$useRef)(null);
|
|
43
|
+
let domRef = (0, $fxUYb$useFocusableRef)(ref, inputRef);
|
|
44
|
+
[props, domRef] = (0, $fxUYb$useContextProps)(props, domRef, (0, $fxUYb$ColorSliderContext));
|
|
45
|
+
let { isDisabled: isDisabled, channel: channel, orientation: orientation, label: label, showValueLabel: showValueLabel, 'aria-label': ariaLabel } = props;
|
|
46
|
+
let vertical = orientation === 'vertical';
|
|
47
|
+
let { styleProps: styleProps } = (0, $fxUYb$useStyleProps)(props);
|
|
48
|
+
let { locale: locale } = (0, $fxUYb$useLocale)();
|
|
49
|
+
let state = (0, $fxUYb$useColorSliderState)({
|
|
50
|
+
...props,
|
|
51
|
+
locale: locale
|
|
52
|
+
});
|
|
53
|
+
// If vertical and a label is provided, use it as an aria-label instead.
|
|
54
|
+
if (vertical && label) {
|
|
55
|
+
ariaLabel = ariaLabel || (typeof label === 'string' ? label : undefined);
|
|
56
|
+
label = null;
|
|
57
|
+
}
|
|
58
|
+
// If no external label, aria-label or aria-labelledby is provided,
|
|
59
|
+
// default to displaying the localized channel value.
|
|
60
|
+
// Specifically check if label is undefined. If label is `null` then display no visible label.
|
|
61
|
+
// A default aria-label is provided by useColorSlider in that case.
|
|
62
|
+
if (label === undefined && !ariaLabel && !props['aria-labelledby'] && !vertical) label = state.value.getChannelName(channel, locale);
|
|
63
|
+
// Show the value label by default if there is a visible label
|
|
64
|
+
if (showValueLabel == null) showValueLabel = !!label;
|
|
65
|
+
let { inputProps: inputProps, thumbProps: thumbProps, trackProps: trackProps, labelProps: labelProps, outputProps: outputProps } = (0, $fxUYb$useColorSlider)({
|
|
66
|
+
...props,
|
|
67
|
+
label: label,
|
|
68
|
+
'aria-label': ariaLabel,
|
|
69
|
+
trackRef: trackRef,
|
|
70
|
+
inputRef: inputRef
|
|
71
|
+
}, state);
|
|
72
|
+
let { isFocusVisible: isFocusVisible } = (0, $fxUYb$useFocusVisible)();
|
|
73
|
+
let [isFocused, setIsFocused] = (0, $fxUYb$useState)(false);
|
|
74
|
+
let { focusProps: focusProps } = (0, $fxUYb$useFocus)({
|
|
75
|
+
isDisabled: isDisabled,
|
|
76
|
+
onFocusChange: setIsFocused
|
|
77
|
+
});
|
|
78
|
+
return /*#__PURE__*/ (0, $fxUYb$react).createElement("div", {
|
|
79
|
+
ref: domRef,
|
|
80
|
+
...styleProps,
|
|
81
|
+
className: (0, $fxUYb$classNames)((0, ($parcel$interopDefault($fxUYb$colorslider_vars_cssmodulejs))), {
|
|
82
|
+
'spectrum-ColorSlider-container--horizontal': !vertical,
|
|
83
|
+
'spectrum-ColorSlider-container--vertical': vertical
|
|
84
|
+
})
|
|
85
|
+
}, label && /*#__PURE__*/ (0, $fxUYb$react).createElement("div", {
|
|
86
|
+
className: (0, $fxUYb$classNames)((0, ($parcel$interopDefault($fxUYb$colorslider_vars_cssmodulejs))), 'spectrum-ColorSlider-labelContainer')
|
|
87
|
+
}, /*#__PURE__*/ (0, $fxUYb$react).createElement((0, $fxUYb$Label), labelProps, label), props.contextualHelp && /*#__PURE__*/ (0, $fxUYb$react).createElement((0, $fxUYb$SlotProvider), {
|
|
88
|
+
slots: {
|
|
89
|
+
actionButton: {
|
|
90
|
+
UNSAFE_className: (0, $fxUYb$classNames)((0, ($parcel$interopDefault($fxUYb$colorslider_vars_cssmodulejs))), 'spectrum-ColorSlider-contextualHelp')
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}, props.contextualHelp), showValueLabel && /*#__PURE__*/ (0, $fxUYb$react).createElement((0, $fxUYb$Label), {
|
|
94
|
+
elementType: "span",
|
|
95
|
+
UNSAFE_className: (0, $fxUYb$classNames)((0, ($parcel$interopDefault($fxUYb$colorslider_vars_cssmodulejs))), 'spectrum-ColorSlider-valueLabel')
|
|
96
|
+
}, /*#__PURE__*/ (0, $fxUYb$react).createElement("output", outputProps, state.value.formatChannelValue(channel, locale)))), /*#__PURE__*/ (0, $fxUYb$react).createElement("div", {
|
|
97
|
+
...trackProps,
|
|
98
|
+
ref: trackRef,
|
|
99
|
+
className: (0, $fxUYb$classNames)((0, ($parcel$interopDefault($fxUYb$colorslider_vars_cssmodulejs))), 'spectrum-ColorSlider', {
|
|
100
|
+
'is-disabled': isDisabled,
|
|
101
|
+
'spectrum-ColorSlider--vertical': vertical
|
|
102
|
+
})
|
|
103
|
+
}, /*#__PURE__*/ (0, $fxUYb$react).createElement((0, $3a90e89d07d7bbd5$export$a3cc47cee1c1ccc), {
|
|
104
|
+
value: state.getDisplayColor(),
|
|
105
|
+
isFocused: isFocused && isFocusVisible,
|
|
106
|
+
isDisabled: isDisabled,
|
|
107
|
+
isDragging: state.isThumbDragging(0),
|
|
108
|
+
containerRef: trackRef,
|
|
109
|
+
className: (0, $fxUYb$classNames)((0, ($parcel$interopDefault($fxUYb$colorslider_vars_cssmodulejs))), 'spectrum-ColorSlider-handle'),
|
|
110
|
+
...thumbProps
|
|
111
|
+
}, /*#__PURE__*/ (0, $fxUYb$react).createElement("input", {
|
|
112
|
+
...inputProps,
|
|
113
|
+
...focusProps,
|
|
114
|
+
ref: inputRef,
|
|
115
|
+
className: (0, $fxUYb$classNames)((0, ($parcel$interopDefault($fxUYb$colorslider_vars_cssmodulejs))), 'spectrum-ColorSlider-slider')
|
|
116
|
+
}))));
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* ColorSliders allow users to adjust an individual channel of a color value.
|
|
120
|
+
*/ let $3870e4ce67ed7ee1$export$44fd664bcca5b6fb = /*#__PURE__*/ (0, $fxUYb$react).forwardRef($3870e4ce67ed7ee1$var$ColorSlider);
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
export {$3870e4ce67ed7ee1$export$44fd664bcca5b6fb as ColorSlider};
|
|
124
|
+
//# sourceMappingURL=ColorSlider.module.js.map
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import {ColorThumb as $3a90e89d07d7bbd5$export$a3cc47cee1c1ccc} from "./ColorThumb.module.js";
|
|
2
|
+
import "./vars.aa07b6d2.css";
|
|
3
|
+
import $fxUYb$colorslider_vars_cssmodulejs from "./colorslider_vars_css.module.js";
|
|
4
|
+
import {useFocusableRef as $fxUYb$useFocusableRef, useStyleProps as $fxUYb$useStyleProps, classNames as $fxUYb$classNames, SlotProvider as $fxUYb$SlotProvider} from "@react-spectrum/utils";
|
|
5
|
+
import {useContextProps as $fxUYb$useContextProps, ColorSliderContext as $fxUYb$ColorSliderContext} from "react-aria-components";
|
|
6
|
+
import {Label as $fxUYb$Label} from "@react-spectrum/label";
|
|
7
|
+
import $fxUYb$react, {useRef as $fxUYb$useRef, useState as $fxUYb$useState} from "react";
|
|
8
|
+
import {useColorSlider as $fxUYb$useColorSlider} from "@react-aria/color";
|
|
9
|
+
import {useColorSliderState as $fxUYb$useColorSliderState} from "@react-stately/color";
|
|
10
|
+
import {useFocusVisible as $fxUYb$useFocusVisible, useFocus as $fxUYb$useFocus} from "@react-aria/interactions";
|
|
11
|
+
import {useLocale as $fxUYb$useLocale} from "@react-aria/i18n";
|
|
12
|
+
import {useProviderProps as $fxUYb$useProviderProps} from "@react-spectrum/provider";
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
function $parcel$interopDefault(a) {
|
|
16
|
+
return a && a.__esModule ? a.default : a;
|
|
17
|
+
}
|
|
18
|
+
/*
|
|
19
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
20
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
21
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
22
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
23
|
+
*
|
|
24
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
25
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
26
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
27
|
+
* governing permissions and limitations under the License.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
function $3870e4ce67ed7ee1$var$ColorSlider(props, ref) {
|
|
40
|
+
props = (0, $fxUYb$useProviderProps)(props);
|
|
41
|
+
let inputRef = (0, $fxUYb$useRef)(null);
|
|
42
|
+
let trackRef = (0, $fxUYb$useRef)(null);
|
|
43
|
+
let domRef = (0, $fxUYb$useFocusableRef)(ref, inputRef);
|
|
44
|
+
[props, domRef] = (0, $fxUYb$useContextProps)(props, domRef, (0, $fxUYb$ColorSliderContext));
|
|
45
|
+
let { isDisabled: isDisabled, channel: channel, orientation: orientation, label: label, showValueLabel: showValueLabel, 'aria-label': ariaLabel } = props;
|
|
46
|
+
let vertical = orientation === 'vertical';
|
|
47
|
+
let { styleProps: styleProps } = (0, $fxUYb$useStyleProps)(props);
|
|
48
|
+
let { locale: locale } = (0, $fxUYb$useLocale)();
|
|
49
|
+
let state = (0, $fxUYb$useColorSliderState)({
|
|
50
|
+
...props,
|
|
51
|
+
locale: locale
|
|
52
|
+
});
|
|
53
|
+
// If vertical and a label is provided, use it as an aria-label instead.
|
|
54
|
+
if (vertical && label) {
|
|
55
|
+
ariaLabel = ariaLabel || (typeof label === 'string' ? label : undefined);
|
|
56
|
+
label = null;
|
|
57
|
+
}
|
|
58
|
+
// If no external label, aria-label or aria-labelledby is provided,
|
|
59
|
+
// default to displaying the localized channel value.
|
|
60
|
+
// Specifically check if label is undefined. If label is `null` then display no visible label.
|
|
61
|
+
// A default aria-label is provided by useColorSlider in that case.
|
|
62
|
+
if (label === undefined && !ariaLabel && !props['aria-labelledby'] && !vertical) label = state.value.getChannelName(channel, locale);
|
|
63
|
+
// Show the value label by default if there is a visible label
|
|
64
|
+
if (showValueLabel == null) showValueLabel = !!label;
|
|
65
|
+
let { inputProps: inputProps, thumbProps: thumbProps, trackProps: trackProps, labelProps: labelProps, outputProps: outputProps } = (0, $fxUYb$useColorSlider)({
|
|
66
|
+
...props,
|
|
67
|
+
label: label,
|
|
68
|
+
'aria-label': ariaLabel,
|
|
69
|
+
trackRef: trackRef,
|
|
70
|
+
inputRef: inputRef
|
|
71
|
+
}, state);
|
|
72
|
+
let { isFocusVisible: isFocusVisible } = (0, $fxUYb$useFocusVisible)();
|
|
73
|
+
let [isFocused, setIsFocused] = (0, $fxUYb$useState)(false);
|
|
74
|
+
let { focusProps: focusProps } = (0, $fxUYb$useFocus)({
|
|
75
|
+
isDisabled: isDisabled,
|
|
76
|
+
onFocusChange: setIsFocused
|
|
77
|
+
});
|
|
78
|
+
return /*#__PURE__*/ (0, $fxUYb$react).createElement("div", {
|
|
79
|
+
ref: domRef,
|
|
80
|
+
...styleProps,
|
|
81
|
+
className: (0, $fxUYb$classNames)((0, ($parcel$interopDefault($fxUYb$colorslider_vars_cssmodulejs))), {
|
|
82
|
+
'spectrum-ColorSlider-container--horizontal': !vertical,
|
|
83
|
+
'spectrum-ColorSlider-container--vertical': vertical
|
|
84
|
+
})
|
|
85
|
+
}, label && /*#__PURE__*/ (0, $fxUYb$react).createElement("div", {
|
|
86
|
+
className: (0, $fxUYb$classNames)((0, ($parcel$interopDefault($fxUYb$colorslider_vars_cssmodulejs))), 'spectrum-ColorSlider-labelContainer')
|
|
87
|
+
}, /*#__PURE__*/ (0, $fxUYb$react).createElement((0, $fxUYb$Label), labelProps, label), props.contextualHelp && /*#__PURE__*/ (0, $fxUYb$react).createElement((0, $fxUYb$SlotProvider), {
|
|
88
|
+
slots: {
|
|
89
|
+
actionButton: {
|
|
90
|
+
UNSAFE_className: (0, $fxUYb$classNames)((0, ($parcel$interopDefault($fxUYb$colorslider_vars_cssmodulejs))), 'spectrum-ColorSlider-contextualHelp')
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}, props.contextualHelp), showValueLabel && /*#__PURE__*/ (0, $fxUYb$react).createElement((0, $fxUYb$Label), {
|
|
94
|
+
elementType: "span",
|
|
95
|
+
UNSAFE_className: (0, $fxUYb$classNames)((0, ($parcel$interopDefault($fxUYb$colorslider_vars_cssmodulejs))), 'spectrum-ColorSlider-valueLabel')
|
|
96
|
+
}, /*#__PURE__*/ (0, $fxUYb$react).createElement("output", outputProps, state.value.formatChannelValue(channel, locale)))), /*#__PURE__*/ (0, $fxUYb$react).createElement("div", {
|
|
97
|
+
...trackProps,
|
|
98
|
+
ref: trackRef,
|
|
99
|
+
className: (0, $fxUYb$classNames)((0, ($parcel$interopDefault($fxUYb$colorslider_vars_cssmodulejs))), 'spectrum-ColorSlider', {
|
|
100
|
+
'is-disabled': isDisabled,
|
|
101
|
+
'spectrum-ColorSlider--vertical': vertical
|
|
102
|
+
})
|
|
103
|
+
}, /*#__PURE__*/ (0, $fxUYb$react).createElement((0, $3a90e89d07d7bbd5$export$a3cc47cee1c1ccc), {
|
|
104
|
+
value: state.getDisplayColor(),
|
|
105
|
+
isFocused: isFocused && isFocusVisible,
|
|
106
|
+
isDisabled: isDisabled,
|
|
107
|
+
isDragging: state.isThumbDragging(0),
|
|
108
|
+
containerRef: trackRef,
|
|
109
|
+
className: (0, $fxUYb$classNames)((0, ($parcel$interopDefault($fxUYb$colorslider_vars_cssmodulejs))), 'spectrum-ColorSlider-handle'),
|
|
110
|
+
...thumbProps
|
|
111
|
+
}, /*#__PURE__*/ (0, $fxUYb$react).createElement("input", {
|
|
112
|
+
...inputProps,
|
|
113
|
+
...focusProps,
|
|
114
|
+
ref: inputRef,
|
|
115
|
+
className: (0, $fxUYb$classNames)((0, ($parcel$interopDefault($fxUYb$colorslider_vars_cssmodulejs))), 'spectrum-ColorSlider-slider')
|
|
116
|
+
}))));
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* ColorSliders allow users to adjust an individual channel of a color value.
|
|
120
|
+
*/ let $3870e4ce67ed7ee1$export$44fd664bcca5b6fb = /*#__PURE__*/ (0, $fxUYb$react).forwardRef($3870e4ce67ed7ee1$var$ColorSlider);
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
export {$3870e4ce67ed7ee1$export$44fd664bcca5b6fb as ColorSlider};
|
|
124
|
+
//# sourceMappingURL=ColorSlider.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;AAgBD,SAAS,kCAAY,KAA+B,EAAE,GAAiC;IACrF,QAAQ,CAAA,GAAA,uBAAe,EAAE;IACzB,IAAI,WAAW,CAAA,GAAA,aAAK,EAAE;IACtB,IAAI,WAAW,CAAA,GAAA,aAAK,EAAE;IACtB,IAAI,SAAS,CAAA,GAAA,sBAAc,EAAE,KAAK;IAClC,CAAC,OAAO,OAAO,GAAG,CAAA,GAAA,sBAAc,EAAE,OAAO,QAAQ,CAAA,GAAA,yBAAiB;IAElE,IAAI,cACF,UAAU,WACV,OAAO,eACP,WAAW,SACX,KAAK,kBACL,cAAc,EACd,cAAc,SAAS,EACxB,GAAG;IACJ,IAAI,WAAW,gBAAgB;IAE/B,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,UAAC,MAAM,EAAC,GAAG,CAAA,GAAA,gBAAQ;IAEvB,IAAI,QAAQ,CAAA,GAAA,0BAAkB,EAAE;QAAC,GAAG,KAAK;gBAAE;IAAM;IAEjD,wEAAwE;IACxE,IAAI,YAAY,OAAO;QACrB,YAAY,aAAc,CAAA,OAAO,UAAU,WAAW,QAAQ,SAAQ;QACtE,QAAQ;IACV;IAEA,mEAAmE;IACnE,qDAAqD;IACrD,8FAA8F;IAC9F,mEAAmE;IACnE,IAAI,UAAU,aAAa,CAAC,aAAa,CAAC,KAAK,CAAC,kBAAkB,IAAI,CAAC,UACrE,QAAQ,MAAM,KAAK,CAAC,cAAc,CAAC,SAAS;IAG9C,8DAA8D;IAC9D,IAAI,kBAAkB,MACpB,iBAAiB,CAAC,CAAC;IAGrB,IAAI,cAAC,UAAU,cAAE,UAAU,cAAE,UAAU,cAAE,UAAU,eAAE,WAAW,EAAC,GAAG,CAAA,GAAA,qBAAa,EAAE;QACjF,GAAG,KAAK;eACR;QACA,cAAc;kBACd;kBACA;IACF,GAAG;IAEH,IAAI,kBAAC,cAAc,EAAC,GAAG,CAAA,GAAA,sBAAc;IACrC,IAAI,CAAC,WAAW,aAAa,GAAG,CAAA,GAAA,eAAO,EAAE;IACzC,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,eAAO,EAAE;oBAC1B;QACA,eAAe;IACjB;IAEA,qBACE,gCAAC;QACC,KAAK;QACJ,GAAG,UAAU;QACd,WAAW,CAAA,GAAA,iBAAS,EAClB,CAAA,GAAA,6DAAK,GACL;YACE,8CAA8C,CAAC;YAC/C,4CAA4C;QAC9C;OAED,uBACC,gCAAC;QAAI,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,6DAAK,GAAG;qBACjC,gCAAC,CAAA,GAAA,YAAI,GAAM,YAAa,QACvB,MAAM,cAAc,kBACnB,gCAAC,CAAA,GAAA,mBAAW;QACV,OAAO;YACL,cAAc;gBACZ,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,6DAAK,GAAG;YACvC;QACF;OACC,MAAM,cAAc,GAGxB,gCACC,gCAAC,CAAA,GAAA,YAAI;QAAE,aAAY;QAAO,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,6DAAK,GAAG;qBAC7D,gCAAC,UAAW,aAAc,MAAM,KAAK,CAAC,kBAAkB,CAAC,SAAS,0BAK1E,gCAAC;QACE,GAAG,UAAU;QACd,KAAK;QACL,WAAW,CAAA,GAAA,iBAAS,EAClB,CAAA,GAAA,6DAAK,GACL,wBAAwB;YACtB,eAAe;YACf,kCAAkC;QACpC;qBAGF,gCAAC,CAAA,GAAA,wCAAS;QACR,OAAO,MAAM,eAAe;QAC5B,WAAW,aAAa;QACxB,YAAY;QACZ,YAAY,MAAM,eAAe,CAAC;QAClC,cAAc;QACd,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,6DAAK,GAAG;QAC7B,GAAG,UAAU;qBACd,gCAAC;QAAO,GAAG,UAAU;QAAG,GAAG,UAAU;QAAE,KAAK;QAAU,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,6DAAK,GAAG;;AAK9F;AAEA;;CAEC,GACD,IAAI,0DAAe,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/color/src/ColorSlider.tsx"],"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\nimport {classNames, SlotProvider, useFocusableRef, useStyleProps} from '@react-spectrum/utils';\nimport {ColorSliderContext, useContextProps} from 'react-aria-components';\nimport {ColorThumb} from './ColorThumb';\nimport {FocusableRef} from '@react-types/shared';\nimport {Label} from '@react-spectrum/label';\nimport React, {useRef, useState} from 'react';\nimport {SpectrumColorSliderProps} from '@react-types/color';\nimport styles from '@adobe/spectrum-css-temp/components/colorslider/vars.css';\nimport {useColorSlider} from '@react-aria/color';\nimport {useColorSliderState} from '@react-stately/color';\nimport {useFocus, useFocusVisible} from '@react-aria/interactions';\nimport {useLocale} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction ColorSlider(props: SpectrumColorSliderProps, ref: FocusableRef<HTMLDivElement>) {\n props = useProviderProps(props);\n let inputRef = useRef(null);\n let trackRef = useRef(null);\n let domRef = useFocusableRef(ref, inputRef);\n [props, domRef] = useContextProps(props, domRef, ColorSliderContext);\n\n let {\n isDisabled,\n channel,\n orientation,\n label,\n showValueLabel,\n 'aria-label': ariaLabel\n } = props;\n let vertical = orientation === 'vertical';\n\n let {styleProps} = useStyleProps(props);\n let {locale} = useLocale();\n\n let state = useColorSliderState({...props, locale});\n\n // If vertical and a label is provided, use it as an aria-label instead.\n if (vertical && label) {\n ariaLabel = ariaLabel || (typeof label === 'string' ? label : undefined);\n label = null;\n }\n\n // If no external label, aria-label or aria-labelledby is provided,\n // default to displaying the localized channel value.\n // Specifically check if label is undefined. If label is `null` then display no visible label.\n // A default aria-label is provided by useColorSlider in that case.\n if (label === undefined && !ariaLabel && !props['aria-labelledby'] && !vertical) {\n label = state.value.getChannelName(channel, locale);\n }\n\n // Show the value label by default if there is a visible label\n if (showValueLabel == null) {\n showValueLabel = !!label;\n }\n\n let {inputProps, thumbProps, trackProps, labelProps, outputProps} = useColorSlider({\n ...props,\n label,\n 'aria-label': ariaLabel,\n trackRef,\n inputRef\n }, state);\n\n let {isFocusVisible} = useFocusVisible();\n let [isFocused, setIsFocused] = useState(false);\n let {focusProps} = useFocus({\n isDisabled,\n onFocusChange: setIsFocused\n });\n\n return (\n <div\n ref={domRef}\n {...styleProps}\n className={classNames(\n styles,\n {\n 'spectrum-ColorSlider-container--horizontal': !vertical,\n 'spectrum-ColorSlider-container--vertical': vertical\n }\n )}>\n {label &&\n <div className={classNames(styles, 'spectrum-ColorSlider-labelContainer')}>\n <Label {...labelProps}>{label}</Label>\n {props.contextualHelp &&\n <SlotProvider\n slots={{\n actionButton: {\n UNSAFE_className: classNames(styles, 'spectrum-ColorSlider-contextualHelp')\n }\n }}>\n {props.contextualHelp}\n </SlotProvider>\n }\n {showValueLabel && (\n <Label elementType=\"span\" UNSAFE_className={classNames(styles, 'spectrum-ColorSlider-valueLabel')}>\n <output {...outputProps}>{state.value.formatChannelValue(channel, locale)}</output>\n </Label>\n )}\n </div>\n }\n <div\n {...trackProps}\n ref={trackRef}\n className={classNames(\n styles,\n 'spectrum-ColorSlider', {\n 'is-disabled': isDisabled,\n 'spectrum-ColorSlider--vertical': vertical\n }\n )\n }>\n <ColorThumb\n value={state.getDisplayColor()}\n isFocused={isFocused && isFocusVisible}\n isDisabled={isDisabled}\n isDragging={state.isThumbDragging(0)}\n containerRef={trackRef}\n className={classNames(styles, 'spectrum-ColorSlider-handle')}\n {...thumbProps}>\n <input {...inputProps} {...focusProps} ref={inputRef} className={classNames(styles, 'spectrum-ColorSlider-slider')} />\n </ColorThumb>\n </div>\n </div>\n );\n}\n\n/**\n * ColorSliders allow users to adjust an individual channel of a color value.\n */\nlet _ColorSlider = React.forwardRef(ColorSlider);\nexport {_ColorSlider as ColorSlider};\n"],"names":[],"version":3,"file":"ColorSlider.module.js.map"}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
@layer a {
|
|
2
|
+
.oe {
|
|
3
|
+
width: calc(1rem * var(--spectrum-global-dimension-scale-factor));
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.og {
|
|
7
|
+
width: calc(1.5rem * var(--spectrum-global-dimension-scale-factor));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.oi {
|
|
11
|
+
width: calc(2rem * var(--spectrum-global-dimension-scale-factor));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ok {
|
|
15
|
+
width: calc(2.5rem * var(--spectrum-global-dimension-scale-factor));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ne {
|
|
19
|
+
height: calc(1rem * var(--spectrum-global-dimension-scale-factor));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ng {
|
|
23
|
+
height: calc(1.5rem * var(--spectrum-global-dimension-scale-factor));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ni {
|
|
27
|
+
height: calc(2rem * var(--spectrum-global-dimension-scale-factor));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.nk {
|
|
31
|
+
height: calc(2.5rem * var(--spectrum-global-dimension-scale-factor));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
._pc:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
35
|
+
border-top-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
._pc:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
39
|
+
border-top-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
._pc:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
43
|
+
border-top-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
._pc:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
47
|
+
border-top-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
._pa:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
51
|
+
border-top-left-radius: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
._pa:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
55
|
+
border-top-left-radius: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
._pa:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
59
|
+
border-top-right-radius: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
._pa:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
63
|
+
border-top-right-radius: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
._pf:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
67
|
+
border-top-left-radius: 9999px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
._pf:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
71
|
+
border-top-left-radius: 9999px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
._pf:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
75
|
+
border-top-right-radius: 9999px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
._pf:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
79
|
+
border-top-right-radius: 9999px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
._qc:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
83
|
+
border-top-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
._qc:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
87
|
+
border-top-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
._qc:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
91
|
+
border-top-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
._qc:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
95
|
+
border-top-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
._qa:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
99
|
+
border-top-right-radius: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
._qa:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
103
|
+
border-top-right-radius: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
._qa:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
107
|
+
border-top-left-radius: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
._qa:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
111
|
+
border-top-left-radius: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
._qf:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
115
|
+
border-top-right-radius: 9999px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
._qf:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
119
|
+
border-top-right-radius: 9999px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
._qf:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
123
|
+
border-top-left-radius: 9999px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
._qf:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
127
|
+
border-top-left-radius: 9999px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
._rc:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
131
|
+
border-bottom-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
._rc:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
135
|
+
border-bottom-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
._rc:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
139
|
+
border-bottom-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
._rc:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
143
|
+
border-bottom-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
._ra:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
147
|
+
border-bottom-left-radius: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
._ra:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
151
|
+
border-bottom-left-radius: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
._ra:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
155
|
+
border-bottom-right-radius: 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
._ra:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
159
|
+
border-bottom-right-radius: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
._rf:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
163
|
+
border-bottom-left-radius: 9999px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
._rf:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
167
|
+
border-bottom-left-radius: 9999px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
._rf:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
171
|
+
border-bottom-right-radius: 9999px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
._rf:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
175
|
+
border-bottom-right-radius: 9999px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
._sc:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
179
|
+
border-bottom-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
._sc:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
183
|
+
border-bottom-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
._sc:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
187
|
+
border-bottom-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
._sc:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
191
|
+
border-bottom-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
._sa:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
195
|
+
border-bottom-right-radius: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
._sa:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
199
|
+
border-bottom-right-radius: 0;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
._sa:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
203
|
+
border-bottom-left-radius: 0;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
._sa:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
207
|
+
border-bottom-left-radius: 0;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
._sf:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
211
|
+
border-bottom-right-radius: 9999px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
._sf:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
215
|
+
border-bottom-right-radius: 9999px;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
._sf:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
219
|
+
border-bottom-left-radius: 9999px;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
._sf:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
223
|
+
border-bottom-left-radius: 9999px;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.c-1n5whoe {
|
|
227
|
+
border-color: color-mix(in srgb, var(--spectrum-gray-900), transparent 49%);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.wb {
|
|
231
|
+
border-top-width: var(--spectrum-alias-border-size-thin, var(--spectrum-global-dimension-static-size-10));
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.xb {
|
|
235
|
+
border-bottom-width: var(--spectrum-alias-border-size-thin, var(--spectrum-global-dimension-static-size-10));
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.ub {
|
|
239
|
+
border-inline-start-width: var(--spectrum-alias-border-size-thin, var(--spectrum-global-dimension-static-size-10));
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.vb {
|
|
243
|
+
border-inline-end-width: var(--spectrum-alias-border-size-thin, var(--spectrum-global-dimension-static-size-10));
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.Aa {
|
|
247
|
+
border-style: solid;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.__ka {
|
|
251
|
+
box-sizing: border-box;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
._tb {
|
|
255
|
+
forced-color-adjust: none;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
@layer b;
|
|
260
|
+
/*# sourceMappingURL=ColorSwatch.f6e6f811.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA;EAGE;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;;AArKF","sources":["packages/@react-spectrum/color/src/ColorSwatch.tsx"],"sourcesContent":["@layer a, b;\n\n@layer a {\n .oe {\n width: calc(1rem * var(--spectrum-global-dimension-scale-factor));\n }\n}\n\n@layer a {\n .og {\n width: calc(1.5rem * var(--spectrum-global-dimension-scale-factor));\n }\n}\n\n@layer a {\n .oi {\n width: calc(2rem * var(--spectrum-global-dimension-scale-factor));\n }\n}\n\n@layer a {\n .ok {\n width: calc(2.5rem * var(--spectrum-global-dimension-scale-factor));\n }\n}\n\n@layer a {\n .ne {\n height: calc(1rem * var(--spectrum-global-dimension-scale-factor));\n }\n}\n\n@layer a {\n .ng {\n height: calc(1.5rem * var(--spectrum-global-dimension-scale-factor));\n }\n}\n\n@layer a {\n .ni {\n height: calc(2rem * var(--spectrum-global-dimension-scale-factor));\n }\n}\n\n@layer a {\n .nk {\n height: calc(2.5rem * var(--spectrum-global-dimension-scale-factor));\n }\n}\n\n@layer a {\n ._pc {\n border-start-start-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));\n }\n}\n\n@layer a {\n ._pa {\n border-start-start-radius: 0px;\n }\n}\n\n@layer a {\n ._pf {\n border-start-start-radius: 9999px;\n }\n}\n\n@layer a {\n ._qc {\n border-start-end-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));\n }\n}\n\n@layer a {\n ._qa {\n border-start-end-radius: 0px;\n }\n}\n\n@layer a {\n ._qf {\n border-start-end-radius: 9999px;\n }\n}\n\n@layer a {\n ._rc {\n border-end-start-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));\n }\n}\n\n@layer a {\n ._ra {\n border-end-start-radius: 0px;\n }\n}\n\n@layer a {\n ._rf {\n border-end-start-radius: 9999px;\n }\n}\n\n@layer a {\n ._sc {\n border-end-end-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));\n }\n}\n\n@layer a {\n ._sa {\n border-end-end-radius: 0px;\n }\n}\n\n@layer a {\n ._sf {\n border-end-end-radius: 9999px;\n }\n}\n\n@layer a {\n .c-1n5whoe {\n border-color: color-mix(in srgb, var(--spectrum-gray-900), transparent 49%);\n }\n}\n\n@layer a {\n .wb {\n border-top-width: var(--spectrum-alias-border-size-thin, var(--spectrum-global-dimension-static-size-10));\n }\n}\n\n@layer a {\n .xb {\n border-bottom-width: var(--spectrum-alias-border-size-thin, var(--spectrum-global-dimension-static-size-10));\n }\n}\n\n@layer a {\n .ub {\n border-inline-start-width: var(--spectrum-alias-border-size-thin, var(--spectrum-global-dimension-static-size-10));\n }\n}\n\n@layer a {\n .vb {\n border-inline-end-width: var(--spectrum-alias-border-size-thin, var(--spectrum-global-dimension-static-size-10));\n }\n}\n\n@layer a {\n .Aa {\n border-style: solid;\n }\n}\n\n@layer a {\n .__ka {\n box-sizing: border-box;\n }\n}\n\n@layer a {\n ._tb {\n forced-color-adjust: none;\n }\n}\n\n"],"names":[],"version":3,"file":"ColorSwatch.f6e6f811.css.map"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
require("./ColorSwatch.f6e6f811.css");
|
|
2
|
+
var $ikjCA$reactariacolor = require("@react-aria/color");
|
|
3
|
+
var $ikjCA$reactariacomponents = require("react-aria-components");
|
|
4
|
+
var $ikjCA$react = require("react");
|
|
5
|
+
var $ikjCA$reactspectrumutils = require("@react-spectrum/utils");
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
function $parcel$interopDefault(a) {
|
|
9
|
+
return a && a.__esModule ? a.default : a;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function $parcel$export(e, n, v, s) {
|
|
13
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
$parcel$export(module.exports, "SpectrumColorSwatchContext", () => $f076f5c85640192a$export$8529d7908a78c058);
|
|
17
|
+
$parcel$export(module.exports, "ColorSwatch", () => $f076f5c85640192a$export$cae13e90592f246a);
|
|
18
|
+
/*
|
|
19
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
20
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
21
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
22
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
23
|
+
*
|
|
24
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
25
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
26
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
27
|
+
* governing permissions and limitations under the License.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
const $f076f5c85640192a$export$8529d7908a78c058 = /*#__PURE__*/ (0, $ikjCA$react.createContext)(null);
|
|
33
|
+
function $f076f5c85640192a$var$ColorSwatch(props, ref) {
|
|
34
|
+
let domRef = (0, $ikjCA$reactspectrumutils.useDOMRef)(ref);
|
|
35
|
+
[props, domRef] = (0, $ikjCA$reactariacomponents.useContextProps)(props, domRef, (0, $ikjCA$reactariacomponents.ColorSwatchContext));
|
|
36
|
+
let { colorSwatchProps: colorSwatchProps, color: color } = (0, $ikjCA$reactariacolor.useColorSwatch)(props);
|
|
37
|
+
let { styleProps: styleProps } = (0, $ikjCA$reactspectrumutils.useStyleProps)(props);
|
|
38
|
+
let ctx = (0, $ikjCA$react.useContext)($f076f5c85640192a$export$8529d7908a78c058);
|
|
39
|
+
let { size: size = (ctx === null || ctx === void 0 ? void 0 : ctx.size) || 'M', rounding: rounding = (ctx === null || ctx === void 0 ? void 0 : ctx.rounding) || 'default' } = props;
|
|
40
|
+
let swatch = /*#__PURE__*/ (0, ($parcel$interopDefault($ikjCA$react))).createElement("div", {
|
|
41
|
+
...colorSwatchProps,
|
|
42
|
+
...styleProps,
|
|
43
|
+
ref: domRef,
|
|
44
|
+
style: {
|
|
45
|
+
...styleProps.style,
|
|
46
|
+
// TODO: should there be a distinction between transparent and no value (e.g. null)?
|
|
47
|
+
background: color.getChannelValue('alpha') > 0 ? `linear-gradient(${color}, ${color}), repeating-conic-gradient(#e6e6e6 0% 25%, white 0% 50%) 0% 50% / 16px 16px` : 'linear-gradient(to bottom right, transparent calc(50% - 2px), var(--spectrum-red-900) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)) no-repeat'
|
|
48
|
+
},
|
|
49
|
+
className: function anonymous(props) {
|
|
50
|
+
let rules = "";
|
|
51
|
+
if (props.size === "L") rules += ' ok';
|
|
52
|
+
else if (props.size === "M") rules += ' oi';
|
|
53
|
+
else if (props.size === "S") rules += ' og';
|
|
54
|
+
else if (props.size === "XS") rules += ' oe';
|
|
55
|
+
if (props.size === "L") rules += ' nk';
|
|
56
|
+
else if (props.size === "M") rules += ' ni';
|
|
57
|
+
else if (props.size === "S") rules += ' ng';
|
|
58
|
+
else if (props.size === "XS") rules += ' ne';
|
|
59
|
+
if (props.rounding === "full") rules += ' _pf';
|
|
60
|
+
else if (props.rounding === "none") rules += ' _pa';
|
|
61
|
+
else if (props.rounding === "default") rules += ' _pc';
|
|
62
|
+
if (props.rounding === "full") rules += ' _qf';
|
|
63
|
+
else if (props.rounding === "none") rules += ' _qa';
|
|
64
|
+
else if (props.rounding === "default") rules += ' _qc';
|
|
65
|
+
if (props.rounding === "full") rules += ' _rf';
|
|
66
|
+
else if (props.rounding === "none") rules += ' _ra';
|
|
67
|
+
else if (props.rounding === "default") rules += ' _rc';
|
|
68
|
+
if (props.rounding === "full") rules += ' _sf';
|
|
69
|
+
else if (props.rounding === "none") rules += ' _sa';
|
|
70
|
+
else if (props.rounding === "default") rules += ' _sc';
|
|
71
|
+
rules += ' c-1n5whoe';
|
|
72
|
+
rules += ' wb';
|
|
73
|
+
rules += ' xb';
|
|
74
|
+
rules += ' ub';
|
|
75
|
+
rules += ' vb';
|
|
76
|
+
rules += ' Aa';
|
|
77
|
+
rules += ' __ka';
|
|
78
|
+
rules += ' _tb';
|
|
79
|
+
return rules;
|
|
80
|
+
}({
|
|
81
|
+
size: size,
|
|
82
|
+
rounding: rounding
|
|
83
|
+
})
|
|
84
|
+
});
|
|
85
|
+
// ColorSwatchPicker needs to wrap the swatch in a ListBoxItem.
|
|
86
|
+
if (ctx) return ctx.useWrapper(swatch, color, rounding);
|
|
87
|
+
return swatch;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* A ColorSwatch displays a preview of a selected color.
|
|
91
|
+
*/ let $f076f5c85640192a$export$cae13e90592f246a = /*#__PURE__*/ (0, $ikjCA$react.forwardRef)($f076f5c85640192a$var$ColorSwatch);
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
//# sourceMappingURL=ColorSwatch.main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AA2BM,MAAM,0DAA6B,CAAA,GAAA,0BAAY,EAA0C;AAEhG,SAAS,kCAAY,KAA+B,EAAE,GAA2B;IAC/E,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,CAAC,OAAO,OAAO,GAAG,CAAA,GAAA,0CAAc,EAAE,OAAO,QAAQ,CAAA,GAAA,6CAAiB;IAClE,IAAI,oBAAC,gBAAgB,SAAE,KAAK,EAAC,GAAG,CAAA,GAAA,oCAAa,EAAE;IAC/C,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,MAAM,CAAA,GAAA,uBAAS,EAAE;IACrB,IAAI,QACF,OAAO,CAAA,gBAAA,0BAAA,IAAK,IAAI,KAAI,eACpB,WAAW,CAAA,gBAAA,0BAAA,IAAK,QAAQ,KAAI,WAC7B,GAAG;IAEJ,IAAI,uBACF,0DAAC;QACE,GAAG,gBAAgB;QACnB,GAAG,UAAU;QACd,KAAK;QACL,OAAO;YACL,GAAG,WAAW,KAAK;YACnB,oFAAoF;YACpF,YAAY,MAAM,eAAe,CAAC,WAAW,IACzC,CAAC,gBAAgB,EAAE,MAAM,EAAE,EAAE,MAAM,4EAA4E,CAAC,GAEhH;QACN;QACA,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAuBR;kBAAC;sBAAM;QAAQ;;IAGtB,+DAA+D;IAC/D,IAAI,KACF,OAAO,IAAI,UAAU,CAAC,QAAQ,OAAO;IAGvC,OAAO;AACT;AAEA;;CAEC,GACD,IAAI,0DAAe,CAAA,GAAA,uBAAS,EAAE","sources":["packages/@react-spectrum/color/src/ColorSwatch.tsx"],"sourcesContent":["/*\n * Copyright 2024 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 {AriaColorSwatchProps, useColorSwatch} from '@react-aria/color';\nimport {Color} from '@react-types/color';\nimport {ColorSwatchContext, useContextProps} from 'react-aria-components';\nimport {DOMRef, StyleProps} from '@react-types/shared';\nimport React, {createContext, forwardRef, JSX, ReactElement, useContext} from 'react';\nimport {style} from '@react-spectrum/style-macro-s1' with {type: 'macro'};\nimport {useDOMRef, useStyleProps} from '@react-spectrum/utils';\n\nexport interface SpectrumColorSwatchProps extends AriaColorSwatchProps, StyleProps {\n /**\n * The size of the ColorSwatch.\n * @default \"M\"\n */\n size?: 'XS' | 'S' | 'M' | 'L',\n /**\n * The corner rounding of the ColorSwatch.\n * @default \"default\"\n */\n rounding?: 'default' | 'none' | 'full'\n}\n\ninterface SpectrumColorSwatchContextValue extends Pick<SpectrumColorSwatchProps, 'size' | 'rounding'> {\n useWrapper: (swatch: ReactElement, color: Color, rounding: SpectrumColorSwatchProps['rounding']) => JSX.Element\n}\n\nexport const SpectrumColorSwatchContext = createContext<SpectrumColorSwatchContextValue | null>(null);\n\nfunction ColorSwatch(props: SpectrumColorSwatchProps, ref: DOMRef<HTMLDivElement>): JSX.Element {\n let domRef = useDOMRef(ref);\n [props, domRef] = useContextProps(props, domRef, ColorSwatchContext);\n let {colorSwatchProps, color} = useColorSwatch(props);\n let {styleProps} = useStyleProps(props);\n let ctx = useContext(SpectrumColorSwatchContext);\n let {\n size = ctx?.size || 'M',\n rounding = ctx?.rounding || 'default'\n } = props;\n\n let swatch = (\n <div\n {...colorSwatchProps}\n {...styleProps}\n ref={domRef}\n style={{\n ...styleProps.style,\n // TODO: should there be a distinction between transparent and no value (e.g. null)?\n background: color.getChannelValue('alpha') > 0\n ? `linear-gradient(${color}, ${color}), repeating-conic-gradient(#e6e6e6 0% 25%, white 0% 50%) 0% 50% / 16px 16px`\n // Red slash to indicate there is no selected color.\n : 'linear-gradient(to bottom right, transparent calc(50% - 2px), var(--spectrum-red-900) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)) no-repeat'\n }}\n className={style({\n size: {\n size: {\n XS: 4,\n S: 6,\n M: 8,\n L: 10\n }\n },\n borderRadius: {\n rounding: {\n default: 'default',\n none: 'none',\n full: 'full'\n }\n },\n // Trick to create a partially transparent color from a variable.\n // Ideally we'd use relative color syntax for this but it's not in Firefox yet.\n borderColor: '[color-mix(in srgb, var(--spectrum-gray-900), transparent 49%)]',\n borderWidth: 1,\n borderStyle: 'solid',\n boxSizing: 'border-box',\n forcedColorAdjust: 'none'\n })({size, rounding})} />\n );\n\n // ColorSwatchPicker needs to wrap the swatch in a ListBoxItem.\n if (ctx) {\n return ctx.useWrapper(swatch, color, rounding);\n }\n\n return swatch;\n}\n\n/**\n * A ColorSwatch displays a preview of a selected color.\n */\nlet _ColorSwatch = forwardRef(ColorSwatch);\nexport {_ColorSwatch as ColorSwatch};\n"],"names":[],"version":3,"file":"ColorSwatch.main.js.map"}
|