@qualtrics/ui-react 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/__shared/cjs/{index-6a9c8483.js → index-0b32024d.js} +3 -3
- package/dist/__shared/cjs/{index-0e2c0191.js → index-9ce19e39.js} +186 -53
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/BreakpointSwitch/Breakpoint.js +18 -0
- package/dist/components/BreakpointSwitch/BreakpointContext.js +9 -0
- package/dist/components/BreakpointSwitch/BreakpointSwitch.js +37 -0
- package/dist/components/BreakpointSwitch/index.js +2 -0
- package/dist/components/Button/Button2.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +6 -6
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +8 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/NumberStepper/NumberStepperInput.js +1 -1
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +1 -1
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/index.js +1 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/useBreakpoints/index.js +1 -0
- package/dist/hooks/useBreakpoints/useBreakpoints.js +47 -0
- package/dist/hooks/useResponsiveValue/index.js +1 -0
- package/dist/hooks/useResponsiveValue/useResponsiveValue.js +21 -0
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +8 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +27 -0
- package/dist/index.es.js +7 -1
- package/dist/index.js +158 -98
- package/dist/next/AdvancedTable/AdvancedTable.js +0 -1
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +2 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/SplitButton/SplitButton.js +1 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/index.es.js +1 -0
- package/dist/next/index.js +24 -25
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/constants.js +14 -2
- package/dist/utils/index.js +1 -1
- package/dist/utils/mediaQueryManager/index.js +1 -0
- package/dist/utils/mediaQueryManager/mediaQueryManager.js +59 -0
- package/icons/package.json +1 -0
- package/next/package.json +1 -0
- package/package.json +3 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var AccordionStyles = {"accordion":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._VmYsB{width:100%;display:flex;flex-direction:column}._VmYsB._Rtpo3{grid-gap:20px;gap:20px}._3LHVn{display:flex;width:100%;border:none;outline:none;background-color:#fff;color:#32363a;font-size:14px;font-weight:700;line-height:24px;text-align:left;align-items:center;padding:10px 16px 10px 0;cursor:pointer}._3QL4K{flex:1}._2uhBq{padding:8px 16px 16px 24px;font-size:14px;line-height:20px}._139kp ._3LHVn{border-radius:4px}._139kp ._3LHVn:hover:not(._1pNjV){background-color:rgba(50,54,58,.08)}._139kp ._3LHVn:active:not(._1pNjV){background-color:rgba(50,54,58,.11)}._3Fvg6 ._3LHVn{font-weight:400;padding-left:12px;border-top:1px solid #eee}._3Fvg6 ._3LHVn:hover:not(._1pNjV){background-color:rgba(50,54,58,.08)}._3Fvg6 ._3LHVn:active:not(._1pNjV){background-color:rgba(50,54,58,.11)}._Rtpo3 ._c1HsI{border-radius:6px;box-shadow:0 3px 4px rgba(0,0,0,.05),0 6px 10px rgba(0,0,0,.05)}._Rtpo3 ._c1HsI._xhSa2{box-shadow:none}._Rtpo3 ._c1HsI._xhSa2 ._3LHVn{border-radius:6px}._Rtpo3 ._3LHVn{border:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-weight:400;padding:22px 20px}._Rtpo3 ._3LHVn ._3QL4K{padding-left:20px}._Rtpo3 ._3LHVn:hover:not(disabled){border:1px solid #c2c2c2}._Rtpo3 ._3LHVn:active:not(._1pNjV){border:1px solid #898989}._Rtpo3 ._2uhBq{padding:24px 20px;color:#6a6d70;border:1px solid #e5e5e5;border-top:none;border-radius:0 0 6px 6px}._xhSa2 ._2uhBq{display:none}._1pNjV{opacity:.6;cursor:default}body.keyboard-user ._3LHVn:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;position:relative}body.keyboard-user ._3LHVn:focus:before{z-index:1}body.keyboard-user ._3Fvg6 ._3LHVn:focus{border-color:transparent}";
|
|
4
|
+
var AccordionStyles = {"accordion":"_VmYsB","block-variant":"_Rtpo3","header":"_3LHVn","title":"_3QL4K","panel":"_2uhBq","default-variant":"_139kp","disabled":"_1pNjV","outlined-variant":"_3Fvg6","section":"_c1HsI","closed":"_xhSa2"};
|
|
5
|
+
var stylesheet="._VmYsB{width:100%;display:flex;flex-direction:column}._VmYsB._Rtpo3{grid-gap:20px;gap:20px}._3LHVn{display:flex;width:100%;border:none;outline:none;background-color:#fff;color:#32363a;font-size:14px;font-weight:700;line-height:24px;text-align:left;align-items:center;padding:10px 16px 10px 0;cursor:pointer}._3QL4K{flex:1}._2uhBq{padding:8px 16px 16px 24px;font-size:14px;line-height:20px}._139kp ._3LHVn{border-radius:4px}._139kp ._3LHVn:hover:not(._1pNjV){background-color:rgba(50,54,58,.08)}._139kp ._3LHVn:active:not(._1pNjV){background-color:rgba(50,54,58,.11)}._3Fvg6 ._3LHVn{font-weight:400;padding-left:12px;border-top:1px solid #eee}._3Fvg6 ._3LHVn:hover:not(._1pNjV){background-color:rgba(50,54,58,.08)}._3Fvg6 ._3LHVn:active:not(._1pNjV){background-color:rgba(50,54,58,.11)}._Rtpo3 ._c1HsI{border-radius:6px;box-shadow:0 3px 4px rgba(0,0,0,.05),0 6px 10px rgba(0,0,0,.05)}._Rtpo3 ._c1HsI._xhSa2{box-shadow:none}._Rtpo3 ._c1HsI._xhSa2 ._3LHVn{border-radius:6px}._Rtpo3 ._3LHVn{border:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-weight:400;padding:22px 20px}._Rtpo3 ._3LHVn ._3QL4K{padding-left:20px}._Rtpo3 ._3LHVn:hover:not(disabled){border:1px solid #c2c2c2}._Rtpo3 ._3LHVn:active:not(._1pNjV){border:1px solid #898989}._Rtpo3 ._2uhBq{padding:24px 20px;color:#6a6d70;border:1px solid #e5e5e5;border-top:none;border-radius:0 0 6px 6px}._xhSa2 ._2uhBq{display:none}._1pNjV{opacity:.6;cursor:default}body.keyboard-user ._3LHVn:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;position:relative}body.keyboard-user ._3LHVn:focus:before{z-index:1}body.keyboard-user ._3Fvg6 ._3LHVn:focus{border-color:transparent}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { AccordionStyles as default, stylesheet };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useBreakpointContext } from './BreakpointContext.js';
|
|
2
|
+
|
|
3
|
+
function Breakpoint(_ref) {
|
|
4
|
+
let {
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
6
|
+
size,
|
|
7
|
+
children
|
|
8
|
+
} = _ref;
|
|
9
|
+
const inBreakpointSwitch = useBreakpointContext();
|
|
10
|
+
|
|
11
|
+
if (!inBreakpointSwitch) {
|
|
12
|
+
throw new Error('Breakpoint must be inside a BreakpointSwitch');
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { Breakpoint as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../../utils/index.js';
|
|
2
|
+
import createContextUtilities from '../../utils/createContextUtilities/createContextUtilities.js';
|
|
3
|
+
|
|
4
|
+
const {
|
|
5
|
+
useContext: useBreakpointContext,
|
|
6
|
+
Provider: BreakpointContextProvider
|
|
7
|
+
} = createContextUtilities(false);
|
|
8
|
+
|
|
9
|
+
export { BreakpointContextProvider, useBreakpointContext };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import '../../hooks/index.js';
|
|
3
|
+
import Breakpoint from './Breakpoint.js';
|
|
4
|
+
import { BreakpointContextProvider } from './BreakpointContext.js';
|
|
5
|
+
import useResponsiveValue from '../../hooks/useResponsiveValue/useResponsiveValue.js';
|
|
6
|
+
|
|
7
|
+
function BreakpointSwitch(_ref) {
|
|
8
|
+
let {
|
|
9
|
+
children
|
|
10
|
+
} = _ref;
|
|
11
|
+
const childList = {};
|
|
12
|
+
React__default.Children.forEach(children, element => {
|
|
13
|
+
// Ignore non-elements. This allows people to more easily inline conditionals.
|
|
14
|
+
if (! /*#__PURE__*/React__default.isValidElement(element)) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (element.type !== Breakpoint) {
|
|
19
|
+
throw new Error('BreakpointSwitch can only have Breakpoint children');
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const currentSize = element.props.size;
|
|
23
|
+
|
|
24
|
+
if (!currentSize) {
|
|
25
|
+
throw new Error('Breakpoint must have a size set.');
|
|
26
|
+
} else if (childList[currentSize]) {
|
|
27
|
+
throw new Error('BreakpointSwitch can only have one Breakpoint targeting each size');
|
|
28
|
+
} else {
|
|
29
|
+
childList[currentSize] = element.props.children;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
return /*#__PURE__*/React__default.createElement(BreakpointContextProvider, {
|
|
33
|
+
value: true
|
|
34
|
+
}, useResponsiveValue(childList));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { BreakpointSwitch as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var buttonStyles = {"btn":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Yk2Xi{padding:0 16px;font-size:14px;line-height:14px;color:#fff;fill:#fff;background-color:#fff;border:1px solid #fff;border-radius:4px;height:36px;min-height:36px;cursor:pointer;position:relative;display:inline-flex;justify-content:center;align-items:center;text-decoration:none;overflow:hidden;transition:border .2s,background .2s,color .2s}._Yk2Xi._-oXHR{padding:0 8px;height:26px;min-height:26px}._Yk2Xi._2ZwDM{display:block;width:100%}._Yk2Xi._2BON5{cursor:not-allowed;opacity:.4}._Yk2Xi:active:focus,._Yk2Xi:focus{outline:none}._Yk2Xi._1D-SQ{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._Yk2Xi._1D-SQ:hover:not(._2BON5){background-color:#eee}._Yk2Xi._1D-SQ:active:not(._2BON5){background-color:#e5e5e5}._Yk2Xi._iitgR{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._Yk2Xi._iitgR:hover:not(._2BON5){background-color:#085caf;border-color:#085caf}._Yk2Xi._iitgR:active:not(._2BON5){background-color:#0854a1;border-color:#0854a1}._Yk2Xi._1sX5o{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._Yk2Xi._1sX5o:hover:not(._2BON5){background-color:#eef5fc}._Yk2Xi._1sX5o:active:not(._2BON5){background-color:#e1edf9}._Yk2Xi._8TBW9{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._Yk2Xi._8TBW9:hover:not(._2BON5){background-color:#eef5fc;border-color:#eef5fc}._Yk2Xi._8TBW9:active:not(._2BON5){background-color:#e1edf9;border-color:#e1edf9}._Yk2Xi._1r5sb{color:#0b6ed0;fill:#0b6ed0;padding:0}._Yk2Xi._1r5sb:hover:not(._2BON5){color:#085caf}._Yk2Xi._1r5sb:active:not(._2BON5){color:#0854a1}._Yk2Xi._iU8Lj{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._Yk2Xi._iU8Lj:hover:not(._2BON5){background-color:#ffecec}._Yk2Xi._iU8Lj:active:not(._2BON5){background-color:#ffdbdb}._3CpP-,body.keyboard-user ._Yk2Xi:active:focus,body.keyboard-user ._Yk2Xi:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var buttonStyles = {"btn":"_Yk2Xi","small":"_-oXHR","full":"_2ZwDM","disabled":"_2BON5","default":"_1D-SQ","primary":"_iitgR","secondary":"_1sX5o","tertiary":"_8TBW9","link":"_1r5sb","danger":"_iU8Lj","keyboardFocused":"_3CpP-"};
|
|
5
|
+
var stylesheet="._Yk2Xi{padding:0 16px;font-size:14px;line-height:14px;color:#fff;fill:#fff;background-color:#fff;border:1px solid #fff;border-radius:4px;height:36px;min-height:36px;cursor:pointer;position:relative;display:inline-flex;justify-content:center;align-items:center;text-decoration:none;overflow:hidden;transition:border .2s,background .2s,color .2s}._Yk2Xi._-oXHR{padding:0 8px;height:26px;min-height:26px}._Yk2Xi._2ZwDM{display:block;width:100%}._Yk2Xi._2BON5{cursor:not-allowed;opacity:.4}._Yk2Xi:active:focus,._Yk2Xi:focus{outline:none}._Yk2Xi._1D-SQ{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._Yk2Xi._1D-SQ:hover:not(._2BON5){background-color:#eee}._Yk2Xi._1D-SQ:active:not(._2BON5){background-color:#e5e5e5}._Yk2Xi._iitgR{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._Yk2Xi._iitgR:hover:not(._2BON5){background-color:#085caf;border-color:#085caf}._Yk2Xi._iitgR:active:not(._2BON5){background-color:#0854a1;border-color:#0854a1}._Yk2Xi._1sX5o{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._Yk2Xi._1sX5o:hover:not(._2BON5){background-color:#eef5fc}._Yk2Xi._1sX5o:active:not(._2BON5){background-color:#e1edf9}._Yk2Xi._8TBW9{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._Yk2Xi._8TBW9:hover:not(._2BON5){background-color:#eef5fc;border-color:#eef5fc}._Yk2Xi._8TBW9:active:not(._2BON5){background-color:#e1edf9;border-color:#e1edf9}._Yk2Xi._1r5sb{color:#0b6ed0;fill:#0b6ed0;padding:0}._Yk2Xi._1r5sb:hover:not(._2BON5){color:#085caf}._Yk2Xi._1r5sb:active:not(._2BON5){color:#0854a1}._Yk2Xi._iU8Lj{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._Yk2Xi._iU8Lj:hover:not(._2BON5){background-color:#ffecec}._Yk2Xi._iU8Lj:active:not(._2BON5){background-color:#ffdbdb}._3CpP-,body.keyboard-user ._Yk2Xi:active:focus,body.keyboard-user ._Yk2Xi:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { buttonStyles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"buttonGroup":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._3QBT8{display:inline-flex;align-items:stretch}._3QBT8._dbBMd{width:100%}._3QBT8 ._1ZIQb{margin:0;min-width:0}._3QBT8 ._1ZIQb:focus{z-index:20}._3QBT8 ._1ZIQb:hover{z-index:10}._3QBT8 ._1ZIQb._31x7O{border:none}._3QBT8 ._1ZIQb._dbBMd{display:inline-flex;width:auto;flex-grow:1}._3QBT8 ._1ZIQb:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._3QBT8 ._1ZIQb:first-child._31x7O{border-right:1px solid #fff}._3QBT8 ._1ZIQb:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._3QBT8 ._1ZIQb:not(:last-child):not(:first-child)._31x7O{border-left:1px solid #fff;border-right:1px solid #fff}._3QBT8 ._1ZIQb:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._3QBT8 ._1ZIQb:last-child._31x7O{border-left:1px solid #fff}._3QBT8 ._1ZIQb:only-child{margin:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px}";
|
|
4
|
+
var styles = {"buttonGroup":"_3QBT8","full":"_dbBMd","buttonGroupElement":"_1ZIQb","primary":"_31x7O"};
|
|
5
|
+
var stylesheet="._3QBT8{display:inline-flex;align-items:stretch}._3QBT8._dbBMd{width:100%}._3QBT8 ._1ZIQb{margin:0;min-width:0}._3QBT8 ._1ZIQb:focus{z-index:20}._3QBT8 ._1ZIQb:hover{z-index:10}._3QBT8 ._1ZIQb._31x7O{border:none}._3QBT8 ._1ZIQb._dbBMd{display:inline-flex;width:auto;flex-grow:1}._3QBT8 ._1ZIQb:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._3QBT8 ._1ZIQb:first-child._31x7O{border-right:1px solid #fff}._3QBT8 ._1ZIQb:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._3QBT8 ._1ZIQb:not(:last-child):not(:first-child)._31x7O{border-left:1px solid #fff;border-right:1px solid #fff}._3QBT8 ._1ZIQb:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._3QBT8 ._1ZIQb:last-child._31x7O{border-left:1px solid #fff}._3QBT8 ._1ZIQb:only-child{margin:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"checkbox":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._34SuB{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._8pFii,._34SuB{cursor:pointer;height:16px;width:16px}._8pFii{position:absolute;opacity:0;z-index:10}._8pFii:checked~._2k5Y->._17UlF{fill-opacity:1}._8pFii:checked:enabled~._2k5Y-{border-color:transparent;background-color:#0b6ed0}._8pFii:checked:enabled~._2k5Y->._17UlF{fill:#fff}._8pFii:checked:enabled:hover~._2k5Y-{background-color:#085caf}._8pFii:not(:checked):enabled:hover~._2k5Y-{border-color:#0b6ed0}._8pFii:disabled{cursor:not-allowed}._8pFii:disabled~._2k5Y-{opacity:.4}._1pV9l{color:#32363a;display:flex;align-items:center;cursor:pointer}._f_Hes{cursor:auto;color:hsla(0,0%,53.7%,.4)}._2jpX_{margin-right:12px;flex-shrink:0}._2k5Y-{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0}._17UlF{fill:#0b6ed0;fill-opacity:0}body.keyboard-user ._8pFii:active:focus~._2k5Y-,body.keyboard-user ._8pFii:focus~._2k5Y-{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"checkbox":"_34SuB","input":"_8pFii","check":"_2k5Y-","checkIcon":"_17UlF","label":"_1pV9l","labelDisabled":"_f_Hes","wrappedInput":"_2jpX_"};
|
|
5
|
+
var stylesheet="._34SuB{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._8pFii,._34SuB{cursor:pointer;height:16px;width:16px}._8pFii{position:absolute;opacity:0;z-index:10}._8pFii:checked~._2k5Y->._17UlF{fill-opacity:1}._8pFii:checked:enabled~._2k5Y-{border-color:transparent;background-color:#0b6ed0}._8pFii:checked:enabled~._2k5Y->._17UlF{fill:#fff}._8pFii:checked:enabled:hover~._2k5Y-{background-color:#085caf}._8pFii:not(:checked):enabled:hover~._2k5Y-{border-color:#0b6ed0}._8pFii:disabled{cursor:not-allowed}._8pFii:disabled~._2k5Y-{opacity:.4}._1pV9l{color:#32363a;display:flex;align-items:center;cursor:pointer}._f_Hes{cursor:auto;color:hsla(0,0%,53.7%,.4)}._2jpX_{margin-right:12px;flex-shrink:0}._2k5Y-{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0}._17UlF{fill:#0b6ed0;fill-opacity:0}body.keyboard-user ._8pFii:active:focus~._2k5Y-,body.keyboard-user ._8pFii:focus~._2k5Y-{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"checkbox":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2OuNU{display:inline-flex;position:relative}._2OuNU,._3bJiT{cursor:pointer;height:16px;width:16px}._3bJiT{position:absolute;opacity:0;z-index:10}._3bJiT._1R9AC~._yxecn>._1D6l1{fill-opacity:1}._3bJiT._1R9AC~._yxecn{border-color:transparent;background-color:#0b6ed0}._3bJiT._1R9AC~._yxecn>._1D6l1{fill:#fff}._3bJiT._1R9AC:hover~._yxecn{background-color:#085caf}._3bJiT:not(._1R9AC):hover~._yxecn{border-color:#0b6ed0}._3bJiT._2h4pE{cursor:not-allowed}._3bJiT._2h4pE~._yxecn{opacity:.4}._yxecn{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0}._1D6l1{fill:#0b6ed0;fill-opacity:0}";
|
|
4
|
+
var styles = {"checkbox":"_2OuNU","input":"_3bJiT","checked":"_1R9AC","check":"_yxecn","checkIcon":"_1D6l1","disabled":"_2h4pE"};
|
|
5
|
+
var stylesheet="._2OuNU{display:inline-flex;position:relative}._2OuNU,._3bJiT{cursor:pointer;height:16px;width:16px}._3bJiT{position:absolute;opacity:0;z-index:10}._3bJiT._1R9AC~._yxecn>._1D6l1{fill-opacity:1}._3bJiT._1R9AC~._yxecn{border-color:transparent;background-color:#0b6ed0}._3bJiT._1R9AC~._yxecn>._1D6l1{fill:#fff}._3bJiT._1R9AC:hover~._yxecn{background-color:#085caf}._3bJiT:not(._1R9AC):hover~._yxecn{border-color:#0b6ed0}._3bJiT._2h4pE{cursor:not-allowed}._3bJiT._2h4pE~._yxecn{opacity:.4}._yxecn{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0}._1D6l1{fill:#0b6ed0;fill-opacity:0}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"colorPicker":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._OA7EO{display:flex;line-height:1.15}._OA7EO ._vfr6h{display:flex;align-items:center;background-color:#fafafa;border:0;border-radius:4px 0 0 4px;padding:0;cursor:pointer;outline:none}._OA7EO ._vfr6h:hover:not(._2W3uH){background-color:#f5f5f5}._OA7EO ._vfr6h._2W3uH{cursor:not-allowed;fill:rgba(81,85,89,.4)}._OA7EO ._vfr6h:active:not(._2W3uH){background-color:#eee}._OA7EO ._1MrKv{width:18px;height:36px;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._OA7EO ._1MrKv._2W3uH{border-color:#d9d9d9}._OA7EO ._3xLaG{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:18px 18px;background-position:0 0,9px 0,9px -9px,0 9px}._OA7EO ._3gb2w{width:18px;height:36px;border:1px solid #898989;border-width:1px 0}._OA7EO ._3gb2w._2W3uH{border-color:#d9d9d9}._OA7EO ._2kTD2{height:36px;border:1px solid #898989;border-width:1px 0}._OA7EO ._2kTD2._2W3uH{border-color:#d9d9d9}._OA7EO ._LLSMO{border-radius:0 4px 4px 0;width:115px;padding-left:21px}._OA7EO ._2JyR3{position:absolute;top:10px;left:13px;font-size:14px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._OA7EO ._2JyR3._2WF3D{color:#9d9fa1}body.keyboard-user ._vfr6h:active:focus,body.keyboard-user ._vfr6h:focus{background:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;z-index:10}._1NvU2{width:264px;padding:8px;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1);line-height:1.15}._1NvU2 ._3oHhT{position:relative;width:246px;height:150px;border-radius:4px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,transparent);background-origin:border-box}._1NvU2 ._1uctM{position:absolute;width:12px;height:12px;border-radius:50%;border:1px solid #fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.5);outline:none;cursor:pointer}._1NvU2 ._hQQgX{display:flex;justify-content:space-between;margin:12px 0}._1NvU2 ._2cCgg{display:flex}._1NvU2 ._2sot2{width:19px;height:38px;border-radius:2px 0 0 2px;border:1px solid rgba(0,0,0,.43);border-right-width:0}._1NvU2 ._3fEui{width:19px;height:38px;border-radius:0 2px 2px 0;border:1px solid rgba(0,0,0,.43);border-left-width:0}._1NvU2 ._13xR7{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:19px 19px;background-position:0 0,9.5px 0,9.5px -9.5px,0 9.5px;border-radius:0 2px 2px 0}._1NvU2 ._1cQNo{width:202px;height:38px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(90deg,red,red 2%,#ff0 18%,#0f0 34%,#0ff 50%,#00f 66%,#f0f 82%,red 98%,red)}._1NvU2 ._1cQNo._3D2vA{height:16px;margin-bottom:6px}._1NvU2 ._32OEz{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:38px;outline:none;cursor:pointer;top:-1px}._1NvU2 ._32OEz._3D2vA{height:16px}._1NvU2 ._3UYtX{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:16px 16px;background-position:0 0,8px 0,8px -8px,0 8px;border-radius:1px}._1NvU2 ._AkVvZ{width:202px;height:16px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background-origin:border-box!important}._1NvU2 ._Gcx6i{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:16px;outline:none;cursor:pointer;top:-1px}._1NvU2 ._1JofI{display:flex;justify-content:space-between}._1NvU2 ._M8H6o{display:flex;flex-direction:column;align-items:center}._1NvU2 ._M8H6o._2RE18{margin-left:4px}._1NvU2 ._2DDnn{position:absolute;top:3px;left:5px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._1NvU2 ._1ftw9{padding:3px 4px 3px 13px!important;width:78px}._1NvU2 ._16YbK{text-align:right;padding:3px 4px 3px 0!important;width:34px}._1NvU2 ._1GUc1{text-align:right;padding:3px 16px 3px 0!important;width:46px}._1NvU2 ._22OEs{position:absolute;top:3px;right:4px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._1NvU2 ._3FkZG{line-height:22px}._1NvU2 ._rvYEn{display:flex}._1NvU2 ._1QE2f{display:flex;flex-wrap:wrap;margin:9px -3px -3px}._1NvU2 ._3l83M{width:22px;height:22px;margin:3px;border-radius:4px;border:1px solid rgba(0,0,0,.43);outline:none;cursor:pointer}._1WOte{position:relative}._3FupO{display:none}._2ceSi{border:0;clip:rect(0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;position:absolute}body.keyboard-user ._1uctM:focus{box-shadow:inset 0 0 0 1px rgba(0,0,0,.5),0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fff}body.keyboard-user ._3l83M:focus,body.keyboard-user ._32OEz:focus,body.keyboard-user ._Gcx6i:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"colorPicker":"_OA7EO","colorPickerButton":"_vfr6h","disabledButton":"_2W3uH","colorPickerButtonPreview":"_1MrKv","alphaBackground":"_3xLaG","colorPickerButtonAlphaPreview":"_3gb2w","caretIcon":"_2kTD2","colorPickerInput":"_LLSMO","colorPickerInputDecoration":"_2JyR3","disabledDecoration":"_2WF3D","colorPickerFlyout":"_1NvU2","saturationGrid":"_3oHhT","saturationLoop":"_1uctM","sliderGroup":"_hQQgX","sliderPreviewContainer":"_2cCgg","sliderPreview":"_2sot2","sliderPreviewAlpha":"_3fEui","sliderPreviewAlphaBackground":"_13xR7","hueSliderRail":"_1cQNo","alphaEnabled":"_3D2vA","hueSliderThumb":"_32OEz","alphaSliderRailBackground":"_3UYtX","alphaSliderRail":"_AkVvZ","alphaSliderThumb":"_Gcx6i","hexInputGroup":"_1JofI","hexInputContainer":"_M8H6o","rgbInputContainer":"_2RE18","hexInputDecoration":"_2DDnn","hexInput":"_1ftw9","rgbInput":"_16YbK","alphaInput":"_1GUc1","alphaInputDecoration":"_22OEs","inputLabel":"_3FkZG","rgbContainer":"_rvYEn","palette":"_1QE2f","swatch":"_3l83M","relativePositionContainer":"_1WOte","hidden":"_3FupO","hiddenLiveRegion":"_2ceSi"};
|
|
5
|
+
var stylesheet="._OA7EO{display:flex;line-height:1.15}._OA7EO ._vfr6h{display:flex;align-items:center;background-color:#fafafa;border:0;border-radius:4px 0 0 4px;padding:0;cursor:pointer;outline:none}._OA7EO ._vfr6h:hover:not(._2W3uH){background-color:#f5f5f5}._OA7EO ._vfr6h._2W3uH{cursor:not-allowed;fill:rgba(81,85,89,.4)}._OA7EO ._vfr6h:active:not(._2W3uH){background-color:#eee}._OA7EO ._1MrKv{width:18px;height:36px;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._OA7EO ._1MrKv._2W3uH{border-color:#d9d9d9}._OA7EO ._3xLaG{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:18px 18px;background-position:0 0,9px 0,9px -9px,0 9px}._OA7EO ._3gb2w{width:18px;height:36px;border:1px solid #898989;border-width:1px 0}._OA7EO ._3gb2w._2W3uH{border-color:#d9d9d9}._OA7EO ._2kTD2{height:36px;border:1px solid #898989;border-width:1px 0}._OA7EO ._2kTD2._2W3uH{border-color:#d9d9d9}._OA7EO ._LLSMO{border-radius:0 4px 4px 0;width:115px;padding-left:21px}._OA7EO ._2JyR3{position:absolute;top:10px;left:13px;font-size:14px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._OA7EO ._2JyR3._2WF3D{color:#9d9fa1}body.keyboard-user ._vfr6h:active:focus,body.keyboard-user ._vfr6h:focus{background:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;z-index:10}._1NvU2{width:264px;padding:8px;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1);line-height:1.15}._1NvU2 ._3oHhT{position:relative;width:246px;height:150px;border-radius:4px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,transparent);background-origin:border-box}._1NvU2 ._1uctM{position:absolute;width:12px;height:12px;border-radius:50%;border:1px solid #fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.5);outline:none;cursor:pointer}._1NvU2 ._hQQgX{display:flex;justify-content:space-between;margin:12px 0}._1NvU2 ._2cCgg{display:flex}._1NvU2 ._2sot2{width:19px;height:38px;border-radius:2px 0 0 2px;border:1px solid rgba(0,0,0,.43);border-right-width:0}._1NvU2 ._3fEui{width:19px;height:38px;border-radius:0 2px 2px 0;border:1px solid rgba(0,0,0,.43);border-left-width:0}._1NvU2 ._13xR7{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:19px 19px;background-position:0 0,9.5px 0,9.5px -9.5px,0 9.5px;border-radius:0 2px 2px 0}._1NvU2 ._1cQNo{width:202px;height:38px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(90deg,red,red 2%,#ff0 18%,#0f0 34%,#0ff 50%,#00f 66%,#f0f 82%,red 98%,red)}._1NvU2 ._1cQNo._3D2vA{height:16px;margin-bottom:6px}._1NvU2 ._32OEz{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:38px;outline:none;cursor:pointer;top:-1px}._1NvU2 ._32OEz._3D2vA{height:16px}._1NvU2 ._3UYtX{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:16px 16px;background-position:0 0,8px 0,8px -8px,0 8px;border-radius:1px}._1NvU2 ._AkVvZ{width:202px;height:16px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background-origin:border-box!important}._1NvU2 ._Gcx6i{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:16px;outline:none;cursor:pointer;top:-1px}._1NvU2 ._1JofI{display:flex;justify-content:space-between}._1NvU2 ._M8H6o{display:flex;flex-direction:column;align-items:center}._1NvU2 ._M8H6o._2RE18{margin-left:4px}._1NvU2 ._2DDnn{position:absolute;top:3px;left:5px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._1NvU2 ._1ftw9{padding:3px 4px 3px 13px!important;width:78px}._1NvU2 ._16YbK{text-align:right;padding:3px 4px 3px 0!important;width:34px}._1NvU2 ._1GUc1{text-align:right;padding:3px 16px 3px 0!important;width:46px}._1NvU2 ._22OEs{position:absolute;top:3px;right:4px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._1NvU2 ._3FkZG{line-height:22px}._1NvU2 ._rvYEn{display:flex}._1NvU2 ._1QE2f{display:flex;flex-wrap:wrap;margin:9px -3px -3px}._1NvU2 ._3l83M{width:22px;height:22px;margin:3px;border-radius:4px;border:1px solid rgba(0,0,0,.43);outline:none;cursor:pointer}._1WOte{position:relative}._3FupO{display:none}._2ceSi{border:0;clip:rect(0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;position:absolute}body.keyboard-user ._1uctM:focus{box-shadow:inset 0 0 0 1px rgba(0,0,0,.5),0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fff}body.keyboard-user ._3l83M:focus,body.keyboard-user ._32OEz:focus,body.keyboard-user ._Gcx6i:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -38,7 +38,7 @@ function RGBInput(_ref) {
|
|
|
38
38
|
min: 0,
|
|
39
39
|
max: 255,
|
|
40
40
|
value: internalValue,
|
|
41
|
-
onChange: e => setInternalValue(parseInt(e.target.value, 10)),
|
|
41
|
+
onChange: e => setInternalValue(parseInt(e.target.value, 10) || 0),
|
|
42
42
|
onBlur: onBlur,
|
|
43
43
|
"aria-label": ariaLabel,
|
|
44
44
|
"data-testid": getSubDataTestId(dataTestId, "".concat(label, "-channel"))
|
|
@@ -93,13 +93,13 @@ const ColorPickerFlyoutInputs = function HexInputGroup(_ref2) {
|
|
|
93
93
|
}, [color.alpha, isAlphaEnabled]);
|
|
94
94
|
|
|
95
95
|
function handleAlphaBlur(e) {
|
|
96
|
-
const newAlpha = Math.min(Math.max(parseInt(e.target.value, 10), 0), 100);
|
|
96
|
+
const newAlpha = Math.min(Math.max(parseInt(e.target.value, 10) || 0, 0), 100);
|
|
97
97
|
onAlphaBlur(newAlpha);
|
|
98
98
|
setInternalAlpha(newAlpha);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
function handleInternalAlphaChange(e) {
|
|
102
|
-
const newAlpha = e.target.value;
|
|
102
|
+
const newAlpha = e.target.value || '0';
|
|
103
103
|
setInternalAlpha(parseInt(newAlpha, 10));
|
|
104
104
|
}
|
|
105
105
|
|
|
@@ -130,7 +130,7 @@ const ColorPickerFlyoutInputs = function HexInputGroup(_ref2) {
|
|
|
130
130
|
, {
|
|
131
131
|
value: parseInt(color.hex.substring(1, 3), 16) || 0,
|
|
132
132
|
onBlur: e => {
|
|
133
|
-
const r = Math.max(Math.min(parseInt(e.target.value, 10), 255), 0).toString(16);
|
|
133
|
+
const r = Math.max(Math.min(parseInt(e.target.value, 10) || 0, 255), 0).toString(16);
|
|
134
134
|
const rgb = hexToRgb(color.hex);
|
|
135
135
|
onHexBlur( // if hex is incomplete, fill missing color channels with 0
|
|
136
136
|
rgbToHex({
|
|
@@ -147,7 +147,7 @@ const ColorPickerFlyoutInputs = function HexInputGroup(_ref2) {
|
|
|
147
147
|
, {
|
|
148
148
|
value: parseInt(color.hex.substring(3, 5), 16) || 0,
|
|
149
149
|
onBlur: e => {
|
|
150
|
-
const g = Math.max(Math.min(parseInt(e.target.value, 10), 255), 0).toString(16);
|
|
150
|
+
const g = Math.max(Math.min(parseInt(e.target.value, 10) || 0, 255), 0).toString(16);
|
|
151
151
|
const rgb = hexToRgb(color.hex);
|
|
152
152
|
onHexBlur( // if hex is incomplete, fill missing color channels with 0
|
|
153
153
|
rgbToHex({
|
|
@@ -164,7 +164,7 @@ const ColorPickerFlyoutInputs = function HexInputGroup(_ref2) {
|
|
|
164
164
|
, {
|
|
165
165
|
value: parseInt(color.hex.substring(5, 7), 16) || 0,
|
|
166
166
|
onBlur: e => {
|
|
167
|
-
const b = Math.max(Math.min(parseInt(e.target.value, 10), 255), 0).toString(16);
|
|
167
|
+
const b = Math.max(Math.min(parseInt(e.target.value, 10) || 0, 255), 0).toString(16);
|
|
168
168
|
const rgb = hexToRgb(color.hex);
|
|
169
169
|
onHexBlur( // if hex is incomplete, fill missing color channels with 0
|
|
170
170
|
rgbToHex({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"combobox":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._3AaPZ{position:relative;display:inline-block}._2tpOW{padding-right:36px}._FFD-s{margin-top:4px}._3oHHn{position:absolute;right:4px;bottom:4px;height:28px;width:28px;border-radius:4px;fill:#515559;cursor:pointer}._3oHHn:hover{background-color:rgba(50,54,58,.08)}._3oHHn:active{background-color:rgba(50,54,58,.11)}._3oHHn._18n7q{transform:rotate(-180deg)}._3oHHn._2UrGG{opacity:.4}._M3Vz5{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}._2UrGG{cursor:not-allowed}._2UrGG:hover{background-color:transparent}";
|
|
4
|
+
var styles = {"combobox":"_3AaPZ","comboboxInput":"_2tpOW","labelledInput":"_FFD-s","comboboxIcon":"_3oHHn","open":"_18n7q","disabled":"_2UrGG","comboboxEmpty":"_M3Vz5"};
|
|
5
|
+
var stylesheet="._3AaPZ{position:relative;display:inline-block}._2tpOW{padding-right:36px}._FFD-s{margin-top:4px}._3oHHn{position:absolute;right:4px;bottom:4px;height:28px;width:28px;border-radius:4px;fill:#515559;cursor:pointer}._3oHHn:hover{background-color:rgba(50,54,58,.08)}._3oHHn:active{background-color:rgba(50,54,58,.11)}._3oHHn._18n7q{transform:rotate(-180deg)}._3oHHn._2UrGG{opacity:.4}._M3Vz5{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}._2UrGG{cursor:not-allowed}._2UrGG:hover{background-color:transparent}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"paneContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2UAxg{grid-area:configPane;position:relative;height:100%}._3eLuw{overflow:hidden;height:100%;position:absolute;background-color:#fff;top:0;transition:width .5s;width:292px;border-right:1px solid #898989;box-sizing:border-box}._2JEpP._3kdOc ._3eLuw,._2JEpP:not(._2Rut6) ._3eLuw{-webkit-clip-path:inset(0 -20px 0 0);clip-path:inset(0 -20px 0 0);box-shadow:0 8px 20px 0 rgba(0,0,0,.1),0 4px 6px 0 rgba(0,0,0,.05)}._2Rut6 ._3eLuw{width:0}._3kdOc._2Rut6 ._3eLuw{width:30px;cursor:pointer}._imWAx ._3eLuw{border-right-color:#eee}._VlSM0{height:100%;position:relative;width:292px}._2JEpP ._VlSM0,._2Rut6 ._VlSM0{width:0}._3kdOc._2JEpP ._VlSM0,._3kdOc._2Rut6 ._VlSM0{width:30px}._1LU4m ._VlSM0{transition:width .5s}._3q-V0{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._2Rut6 ._3q-V0{visibility:hidden}._1LU4m ._3q-V0{visibility:visible}._3q-V0 ._1GkAD{width:252px;margin-left:20px}._JIeRr{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._B8k42{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._B8k42 *{font-weight:400;font-size:16px;margin:0}._DOsgA{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._2Rut6 ._DOsgA{left:0}._3kdOc._2Rut6 ._DOsgA{left:30px}._DOsgA ._364Bx{width:4px;height:100%}._3kdOc._2Rut6 ._3eLuw:hover+._DOsgA ._364Bx,._DOsgA:hover ._364Bx{background-color:#9dc5ed}._3kdOc._2Rut6 ._3eLuw:hover+._DOsgA ._3aGLn>span,._DOsgA:hover ._3aGLn>span{background-color:#0b6ed0;border-color:#0b6ed0}._3kdOc._2Rut6 ._3eLuw:hover+._DOsgA ._3aGLn>span>svg,._DOsgA:hover ._3aGLn>span>svg{fill:#fff}._3kdOc._2Rut6 ._3eLuw:hover+._DOsgA ._3aGLn:active>span,._DOsgA:hover ._3aGLn:active>span{background-color:#0854a1;border-color:#0854a1}._3kdOc._2Rut6 ._3eLuw:hover+._DOsgA ._3aGLn:active>span>svg,._DOsgA:hover ._3aGLn:active>span>svg{fill:#fff}._DOsgA ._3aGLn{left:-16px;width:36px;height:36px;position:absolute;top:48px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10;opacity:0}._DOsgA ._3aGLn._3Fv2U._3Fv2U._3Fv2U{opacity:1}._DOsgA ._3aGLn._166zo._166zo._166zo{opacity:0}._DOsgA ._3aGLn:active>span{background-color:#0854a1;border-color:#0854a1}._DOsgA ._3aGLn:active>span>svg{fill:#fff}._DOsgA ._3aGLn>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._DOsgA ._3aGLn>span>svg{fill:#515559;border-radius:50%}._2Rut6 ._DOsgA ._3aGLn,._3eLuw:hover+._DOsgA ._3aGLn,._DOsgA:hover ._3aGLn{opacity:1}body.keyboard-user ._3aGLn:focus{opacity:1;border-color:#0a3f88}";
|
|
4
|
+
var styles = {"paneContainer":"_2UAxg","paneContentContainer":"_3eLuw","unpinned":"_2JEpP","hidden":"_2Rut6","preview":"_3kdOc","openHidden":"_imWAx","spacer":"_VlSM0","transitioning":"_1LU4m","paneContent":"_3q-V0","paneContentInner":"_1GkAD","header":"_JIeRr","title":"_B8k42","clickableArea":"_DOsgA","hoverBorder":"_364Bx","toolbarPanelExpandCollapseButton":"_3aGLn","overrideShow":"_3Fv2U","overrideHide":"_166zo"};
|
|
5
|
+
var stylesheet="._2UAxg{grid-area:configPane;position:relative;height:100%}._3eLuw{overflow:hidden;height:100%;position:absolute;background-color:#fff;top:0;transition:width .5s;width:292px;border-right:1px solid #898989;box-sizing:border-box}._2JEpP._3kdOc ._3eLuw,._2JEpP:not(._2Rut6) ._3eLuw{-webkit-clip-path:inset(0 -20px 0 0);clip-path:inset(0 -20px 0 0);box-shadow:0 8px 20px 0 rgba(0,0,0,.1),0 4px 6px 0 rgba(0,0,0,.05)}._2Rut6 ._3eLuw{width:0}._3kdOc._2Rut6 ._3eLuw{width:30px;cursor:pointer}._imWAx ._3eLuw{border-right-color:#eee}._VlSM0{height:100%;position:relative;width:292px}._2JEpP ._VlSM0,._2Rut6 ._VlSM0{width:0}._3kdOc._2JEpP ._VlSM0,._3kdOc._2Rut6 ._VlSM0{width:30px}._1LU4m ._VlSM0{transition:width .5s}._3q-V0{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._2Rut6 ._3q-V0{visibility:hidden}._1LU4m ._3q-V0{visibility:visible}._3q-V0 ._1GkAD{width:252px;margin-left:20px}._JIeRr{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._B8k42{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._B8k42 *{font-weight:400;font-size:16px;margin:0}._DOsgA{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._2Rut6 ._DOsgA{left:0}._3kdOc._2Rut6 ._DOsgA{left:30px}._DOsgA ._364Bx{width:4px;height:100%}._3kdOc._2Rut6 ._3eLuw:hover+._DOsgA ._364Bx,._DOsgA:hover ._364Bx{background-color:#9dc5ed}._3kdOc._2Rut6 ._3eLuw:hover+._DOsgA ._3aGLn>span,._DOsgA:hover ._3aGLn>span{background-color:#0b6ed0;border-color:#0b6ed0}._3kdOc._2Rut6 ._3eLuw:hover+._DOsgA ._3aGLn>span>svg,._DOsgA:hover ._3aGLn>span>svg{fill:#fff}._3kdOc._2Rut6 ._3eLuw:hover+._DOsgA ._3aGLn:active>span,._DOsgA:hover ._3aGLn:active>span{background-color:#0854a1;border-color:#0854a1}._3kdOc._2Rut6 ._3eLuw:hover+._DOsgA ._3aGLn:active>span>svg,._DOsgA:hover ._3aGLn:active>span>svg{fill:#fff}._DOsgA ._3aGLn{left:-16px;width:36px;height:36px;position:absolute;top:48px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10;opacity:0}._DOsgA ._3aGLn._3Fv2U._3Fv2U._3Fv2U{opacity:1}._DOsgA ._3aGLn._166zo._166zo._166zo{opacity:0}._DOsgA ._3aGLn:active>span{background-color:#0854a1;border-color:#0854a1}._DOsgA ._3aGLn:active>span>svg{fill:#fff}._DOsgA ._3aGLn>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._DOsgA ._3aGLn>span>svg{fill:#515559;border-radius:50%}._2Rut6 ._DOsgA ._3aGLn,._3eLuw:hover+._DOsgA ._3aGLn,._DOsgA:hover ._3aGLn{opacity:1}body.keyboard-user ._3aGLn:focus{opacity:1;border-color:#0a3f88}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"divider":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._1Z__z{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
|
|
4
|
+
var styles = {"divider":"_1Z__z"};
|
|
5
|
+
var stylesheet="._1Z__z{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2_231{position:relative;display:inline-block}._26-oO{display:inline-flex;justify-content:space-between;align-items:center;background-color:#fafafa;border:1px solid #898989;border-radius:4px;height:36px;color:#515559;outline:none;cursor:pointer}._26-oO:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._26-oO:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._26-oO:disabled,._26-oO[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._26-oO._4TLEO{border-color:#b00}._26-oO._4TLEO:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._26-oO._1RRC1{min-width:120px;padding:0 4px 0 12px}._26-oO._nDihP{margin-top:4px}._26-oO._2nJHu:not([aria-disabled=true]):not(:disabled){color:#32363a}._26-oO ._2Vvmc{min-height:10px}._26-oO ._2Vvmc._1FBFc{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._26-oO ._2M4Vx{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._26-oO ._2M4Vx._1oog-{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._26-oO ._2M4Vx._1PFZ7{transform:rotate(-180deg)}._20Wvl[aria-disabled=true]{cursor:not-allowed;opacity:.65}._1OSum{position:-webkit-sticky;position:sticky;top:0;z-index:20;padding:4px 8px 8px!important;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;background-color:#fff!important}._3XLzR{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}._1zHRK{fill:#515559}._3isGT{margin:2px 12px 2px 0}._3isGT._3kTfE>svg{border-color:#0b6ed0}._3BzKT{width:100%}";
|
|
4
|
+
var styles = {"container":"_2_231","button":"_26-oO","invalid":"_4TLEO","hasText":"_1RRC1","labelled":"_nDihP","selected":"_2nJHu","buttonLabel":"_2Vvmc","isString":"_1FBFc","icon":"_2M4Vx","disabled":"_1oog-","open":"_1PFZ7","option":"_20Wvl","search":"_1OSum","emptyOption":"_3XLzR","searchIcon":"_1zHRK","checkbox":"_3isGT","highlighted":"_3kTfE","searchInput":"_3BzKT"};
|
|
5
|
+
var stylesheet="._2_231{position:relative;display:inline-block}._26-oO{display:inline-flex;justify-content:space-between;align-items:center;background-color:#fafafa;border:1px solid #898989;border-radius:4px;height:36px;color:#515559;outline:none;cursor:pointer}._26-oO:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._26-oO:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._26-oO:disabled,._26-oO[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._26-oO._4TLEO{border-color:#b00}._26-oO._4TLEO:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._26-oO._1RRC1{min-width:120px;padding:0 4px 0 12px}._26-oO._nDihP{margin-top:4px}._26-oO._2nJHu:not([aria-disabled=true]):not(:disabled){color:#32363a}._26-oO ._2Vvmc{min-height:10px}._26-oO ._2Vvmc._1FBFc{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._26-oO ._2M4Vx{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._26-oO ._2M4Vx._1oog-{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._26-oO ._2M4Vx._1PFZ7{transform:rotate(-180deg)}._20Wvl[aria-disabled=true]{cursor:not-allowed;opacity:.65}._1OSum{position:-webkit-sticky;position:sticky;top:0;z-index:20;padding:4px 8px 8px!important;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;background-color:#fff!important}._3XLzR{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}._1zHRK{fill:#515559}._3isGT{margin:2px 12px 2px 0}._3isGT._3kTfE>svg{border-color:#0b6ed0}._3BzKT{width:100%}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var filePickerStyles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2DmyC{position:relative}._DdWkh{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._ARKtH{margin-left:16px;font-size:14px;color:#32363a}._ARKtH ._15o11{margin-right:16px}";
|
|
4
|
+
var filePickerStyles = {"container":"_2DmyC","fileInput":"_DdWkh","fileDetails":"_ARKtH","fileName":"_15o11"};
|
|
5
|
+
var stylesheet="._2DmyC{position:relative}._DdWkh{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._ARKtH{margin-left:16px;font-size:14px;color:#32363a}._ARKtH ._15o11{margin-right:16px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { filePickerStyles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"caption":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._15JsU{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._1CnHI{color:#74777a;fill:#74777a}._I-FVI{color:#b00;fill:#b00}._2wgSo,._W9V1M{margin-left:-2px;margin-right:3px}";
|
|
4
|
+
var styles = {"caption":"_15JsU","helperText":"_1CnHI","errorText":"_I-FVI","errorIcon":"_2wgSo","readOnlyIcon":"_W9V1M"};
|
|
5
|
+
var stylesheet="._15JsU{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._1CnHI{color:#74777a;fill:#74777a}._I-FVI{color:#b00;fill:#b00}._2wgSo,._W9V1M{margin-left:-2px;margin-right:3px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"formField":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._D_ef8{display:flex;flex-direction:column;align-items:flex-start}._2nx-N{margin-top:6px;max-width:100%}._2nx-N *+*{margin-top:4px}";
|
|
4
|
+
var styles = {"formField":"_D_ef8","captionContainer":"_2nx-N"};
|
|
5
|
+
var stylesheet="._D_ef8{display:flex;flex-direction:column;align-items:flex-start}._2nx-N{margin-top:6px;max-width:100%}._2nx-N *+*{margin-top:4px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"dialog":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2mutk{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@-webkit-keyframes _3Qr3C{0%{transform:scale3d(.7,.7,.7);opacity:0}}@keyframes _3Qr3C{0%{transform:scale3d(.7,.7,.7);opacity:0}}._3II8S{-webkit-animation:_3Qr3C both;animation:_3Qr3C both;-webkit-animation-duration:.2s;animation-duration:.2s}@-webkit-keyframes _1dvRs{to{transform:scale3d(.7,.7,.7);opacity:0}}@keyframes _1dvRs{to{transform:scale3d(.7,.7,.7);opacity:0}}._3wL_u{-webkit-animation:_1dvRs both;animation:_1dvRs both;-webkit-animation-duration:.2s;animation-duration:.2s}";
|
|
4
|
+
var styles = {"dialog":"_2mutk","transitionIn":"_3II8S","showAnimation":"_3Qr3C","transitionOut":"_3wL_u","hideAnimation":"_1dvRs"};
|
|
5
|
+
var stylesheet="._2mutk{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@-webkit-keyframes _3Qr3C{0%{transform:scale3d(.7,.7,.7);opacity:0}}@keyframes _3Qr3C{0%{transform:scale3d(.7,.7,.7);opacity:0}}._3II8S{-webkit-animation:_3Qr3C both;animation:_3Qr3C both;-webkit-animation-duration:.2s;animation-duration:.2s}@-webkit-keyframes _1dvRs{to{transform:scale3d(.7,.7,.7);opacity:0}}@keyframes _1dvRs{to{transform:scale3d(.7,.7,.7);opacity:0}}._3wL_u{-webkit-animation:_1dvRs both;animation:_1dvRs both;-webkit-animation-duration:.2s;animation-duration:.2s}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"button":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._36Twg{border-radius:4px;border:none;height:36px;width:36px;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;cursor:pointer;fill:#515559;background-color:transparent;transition:background .2s,color .2s}._36Twg:focus{outline:none}._36Twg:hover:not(._3MMvC){background-color:rgba(50,54,58,.08)}._36Twg:active:not(._3MMvC){background-color:rgba(50,54,58,.11);stroke-width:2}._36Twg._3MMvC{cursor:not-allowed;opacity:.6}body.keyboard-user ._36Twg:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"button":"_36Twg","disabled":"_3MMvC"};
|
|
5
|
+
var stylesheet="._36Twg{border-radius:4px;border:none;height:36px;width:36px;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;cursor:pointer;fill:#515559;background-color:transparent;transition:background .2s,color .2s}._36Twg:focus{outline:none}._36Twg:hover:not(._3MMvC){background-color:rgba(50,54,58,.08)}._36Twg:active:not(._3MMvC){background-color:rgba(50,54,58,.11);stroke-width:2}._36Twg._3MMvC{cursor:not-allowed;opacity:.6}body.keyboard-user ._36Twg:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -112,8 +112,13 @@ const InlineInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
112
112
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
113
113
|
// @ts-ignore: `textinput` is a non-standard IE only event so TS doesn't recognize it
|
|
114
114
|
|
|
115
|
-
useEventListener(internalRef, 'textinput', handleChange);
|
|
116
|
-
|
|
115
|
+
useEventListener(internalRef, 'textinput', handleChange); // Need additional wrapper div to prevent focus from being sent to contentEditable span unintentionally
|
|
116
|
+
// stack overflow:
|
|
117
|
+
// https://stackoverflow.com/questions/34354085/clicking-outside-a-contenteditable-div-stills-give-focus-to-it
|
|
118
|
+
|
|
119
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
120
|
+
className: styles.container
|
|
121
|
+
}, /*#__PURE__*/React__default.createElement("span", _extends({}, rest, {
|
|
117
122
|
ref: mergeRefs(ref, internalRef, focusRef),
|
|
118
123
|
className: classNames(className, styles.inlineInput, {
|
|
119
124
|
[styles.isEditing]: isEditing
|
|
@@ -130,7 +135,7 @@ const InlineInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
130
135
|
"aria-multiline": "false",
|
|
131
136
|
"aria-readonly": isFocused && !isEditing,
|
|
132
137
|
tabIndex: tabIndex
|
|
133
|
-
}), defaultValue);
|
|
138
|
+
}), defaultValue));
|
|
134
139
|
});
|
|
135
140
|
|
|
136
141
|
export { InlineInput as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"inlineInput":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._3-jK_{display:inline-block}._2q4S4{color:#085caf;cursor:pointer;font-size:14px;box-sizing:border-box;padding:4px;margin:-5px;outline:0;border:1px solid transparent;border-radius:4px;background-clip:padding-box;display:block}._2q4S4::-moz-selection{background-color:rgba(11,110,208,.11)}._2q4S4::selection{background-color:rgba(11,110,208,.11)}._2q4S4:focus,._2q4S4:hover{background-color:#f5f5f5}._2q4S4:focus{border:2px solid #0a3f88;padding:3px}._2q4S4:focus._JPvSy{background-color:#fafafa;cursor:text;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 1px 8px hsla(0,0%,66.7%,.5)}";
|
|
4
|
+
var styles = {"container":"_3-jK_","inlineInput":"_2q4S4","isEditing":"_JPvSy"};
|
|
5
|
+
var stylesheet="._3-jK_{display:inline-block}._2q4S4{color:#085caf;cursor:pointer;font-size:14px;box-sizing:border-box;padding:4px;margin:-5px;outline:0;border:1px solid transparent;border-radius:4px;background-clip:padding-box;display:block}._2q4S4::-moz-selection{background-color:rgba(11,110,208,.11)}._2q4S4::selection{background-color:rgba(11,110,208,.11)}._2q4S4:focus,._2q4S4:hover{background-color:#f5f5f5}._2q4S4:focus{border:2px solid #0a3f88;padding:3px}._2q4S4:focus._JPvSy{background-color:#fafafa;cursor:text;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 1px 8px hsla(0,0%,66.7%,.5)}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|