@qualtrics/ui-react 2.0.1-alpha.0 → 2.1.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 +37 -1
- package/dist/__shared/cjs/{index-4e8591db.js → index-80e2e7de.js} +3 -3
- package/dist/__shared/cjs/{index-eae68a34.js → index-f3b44352.js} +51 -48
- package/dist/components/Accordion/Accordion2.js +3 -3
- 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/ColorPicker/ColorPicker2.js +3 -3
- 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/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/Controls.js +3 -2
- package/dist/components/LogicEditor/LogicEditor.js +2 -0
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal.js +10 -0
- 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 +3 -0
- 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/SearchInput.js +6 -2
- 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 +3 -0
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -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 +6 -3
- package/dist/index.es.js +1 -1
- package/dist/index.js +106 -89
- package/dist/next/AdvancedTable/AdvancedTable.js +24 -20
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +3 -4
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +4 -4
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +16 -7
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +4 -2
- 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/SplitButton2.js +3 -3
- package/dist/next/index.d.ts +1 -0
- package/dist/next/index.js +69 -57
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/package.json +2 -2
package/dist/next/index.js
CHANGED
|
@@ -9,8 +9,8 @@ var classNames = require('classnames');
|
|
|
9
9
|
var reactDnd = require('react-dnd');
|
|
10
10
|
var reactDndHtml5Backend = require('react-dnd-html5-backend');
|
|
11
11
|
var useResizeObserver = require('@react-hook/resize-observer');
|
|
12
|
-
var index = require('../__shared/cjs/index-
|
|
13
|
-
var icons_index = require('../__shared/cjs/index-
|
|
12
|
+
var index = require('../__shared/cjs/index-f3b44352.js');
|
|
13
|
+
var icons_index = require('../__shared/cjs/index-80e2e7de.js');
|
|
14
14
|
var libphonenumberJs = require('libphonenumber-js');
|
|
15
15
|
var InputMask = require('react-input-mask');
|
|
16
16
|
require('throttle-debounce');
|
|
@@ -29,9 +29,9 @@ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
|
29
29
|
var useResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(useResizeObserver);
|
|
30
30
|
var InputMask__default = /*#__PURE__*/_interopDefaultLegacy(InputMask);
|
|
31
31
|
|
|
32
|
-
var css_248z$5 = ".
|
|
33
|
-
var styles$5 = {"advancedTable":"
|
|
34
|
-
var stylesheet$5=".
|
|
32
|
+
var css_248z$5 = "._4w33T{overflow:auto;position:relative;max-width:100%;max-height:100%}._4w33T,._zgWJ7{background-color:#fff}._zgWJ7{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._3Yqs0{margin-bottom:4px}._21s3t{position:-webkit-sticky;position:sticky;top:0;z-index:100}._1SCqk{display:flex}._1SCqk:focus{outline:none}body.keyboard-user ._1SCqk:focus ._2vout:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}body.keyboard-user ._1SCqk:focus ._2vout:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._1SCqk:focus ._2vout:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._1SCqk:focus ._2vout._24Wwm:after{right:-3px;bottom:1px}._12fqx{padding-right:3px}._3QP_5{display:flex}._3QP_5._3Ffiu ._2vout{cursor:pointer}._3QP_5._1lWEK ._2vout{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._3QP_5._1lWEK ._2vout._24Wwm{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._3QP_5._1lWEK ._2vout._24Wwm ._3VCro,._3QP_5._1lWEK ._2vout._24Wwm ._193qE,._3QP_5._1lWEK ._2vout._24Wwm ._ctNOM{background-color:rgba(11,110,208,.08)}._3QP_5._3Ffiu:hover:not(._1lWEK):not(._205QZ) ._2vout{background-color:#f9f9f9}._3QP_5._3Ffiu:active:not(._1lWEK):not(._205QZ) ._2vout{background-color:#f3f3f3}._3QP_5:focus{outline:none}body.keyboard-user ._3QP_5:focus ._2vout:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}body.keyboard-user ._3QP_5:focus ._2vout:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3QP_5:focus ._2vout:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3QP_5:focus ._2vout._24Wwm:after{right:-3px;bottom:0}._3QP_5:last-of-type:focus{outline:none}body.keyboard-user ._3QP_5:last-of-type:focus ._2vout:after{content:\"\";display:block;position:absolute;top:-2px;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}body.keyboard-user ._3QP_5:last-of-type:focus ._2vout:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3QP_5:last-of-type:focus ._2vout:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3QP_5:last-of-type:focus ._2vout._24Wwm:after{right:-3px;bottom:1px}._3QP_5:last-of-type ._193qE:focus{outline:none}body.keyboard-user ._3QP_5:last-of-type ._193qE._3xYpv:after,body.keyboard-user ._3QP_5:last-of-type ._193qE:focus:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._3QP_5:first-of-type:focus{outline:none}body.keyboard-user ._3QP_5:first-of-type:focus ._2vout:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}body.keyboard-user ._3QP_5:first-of-type:focus ._2vout:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3QP_5:first-of-type:focus ._2vout:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3QP_5:first-of-type:focus ._2vout._24Wwm:after{right:-3px;bottom:0}._3QP_5:first-of-type ._193qE:focus{outline:none}body.keyboard-user ._3QP_5:first-of-type ._193qE._3xYpv:after,body.keyboard-user ._3QP_5:first-of-type ._193qE:focus:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._2qEN1{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #d9d9d9;flex-shrink:0;font-size:12px;line-height:16px;font-weight:700;color:#6a6d70;background-color:#fff;position:relative}._2qEN1._2NOUe{flex-grow:1}._2qEN1._1HRDO{cursor:pointer}._2qEN1._1HRDO:hover:not(._27wad){background-color:#f9f9f9;border-bottom-color:#6a6d70}._2qEN1._1HRDO:active:not(._27wad){background-color:#f3f3f3}._2qEN1._t60IJ:not(._27wad){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._2qEN1._27wad{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._2qEN1 ._PxLk9{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._2qEN1 ._PxLk9._2cWE6{left:-1px}._2qEN1 ._PxLk9._qmk2N{right:0}._2qEN1 ._2SEJm{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._2qEN1 ._2SEJm._2cWE6{left:-2px}._2qEN1 ._2SEJm._qmk2N{right:-1px}._2qEN1:first-of-type ._2cWE6._PxLk9{left:0;width:2px;border-left:1px solid #fff}._2qEN1:first-of-type ._2cWE6._2SEJm{left:0}._2qEN1:last-of-type ._qmk2N._PxLk9{right:0;width:2px;border-right:1px solid #fff}._2qEN1:last-of-type ._qmk2N._2SEJm{right:0}._2qEN1 ._3p54Y{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._2qEN1 ._3p54Y ._1pUxC{position:absolute;width:2px;right:2px;top:0;bottom:0}._2qEN1 ._3p54Y ._1pUxC._2g_RF{background-color:#0a6ed1}._2qEN1 ._3p54Y:hover ._1pUxC:not(._2g_RF){background-color:#d9d9d9}._2qEN1 ._1HbGQ{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._2qEN1 ._1HbGQ._7SguP{flex-direction:row-reverse;justify-content:flex-start}._2qEN1 ._1HbGQ._7SguP ._28uMs{margin:1px 7px 1px 1px}._2qEN1 ._1HbGQ ._1Ty0R{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;pointer-events:none}._2qEN1 ._1HbGQ ._28uMs{margin:1px 1px 1px 7px;flex-shrink:0}._2qEN1 ._3AsVt{margin-left:6px;margin-right:4px;flex-shrink:0}._2qEN1 ._2UUM7{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._2qEN1:focus{outline:none}body.keyboard-user ._2qEN1._3xYpv:after,body.keyboard-user ._2qEN1:focus:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._bEwJu{margin-right:6px}._24Wwm{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._24Wwm[focus-within]{z-index:30}._24Wwm:focus-within{z-index:30}._193qE{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #eee;flex-shrink:0;font-size:14px;line-height:20px;color:#32363a;position:relative}._193qE ._27PKY{width:100%;padding:12px 12px 11px;overflow:hidden}._193qE._27wad{background-color:#efefef;border-bottom-color:#dfdfe1}._193qE._2NOUe{flex-grow:1}._193qE:focus{outline:none}body.keyboard-user ._193qE._3xYpv:after,body.keyboard-user ._193qE:focus:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._ctNOM{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._ctNOM._3kaiT{border-bottom-color:#d9d9d9}._3VCro{display:flex;align-items:center;justify-content:center;min-height:44px;width:40px;border-bottom:1px solid #eee;padding:12px 12px 11px;flex-shrink:0;cursor:pointer}._3VCro._3kaiT{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._3VCro:focus input~span,._3VCro:hover input~span{border-color:#0b6ed0}._3VCro ._3S40Z{position:relative;display:inline-flex}._3VCro ._3S40Z ._2OY6z{margin:0!important}._3VCro ._3S40Z ._DKmot{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._1WtUp{justify-content:flex-start}._FvZtN{justify-content:center;text-align:center}._7SguP{justify-content:flex-end;text-align:right}._1I3Ld{display:none}._1f96d{opacity:0;height:0;width:0;overflow:hidden}._1f96d,._1obaT{position:absolute}._1obaT{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._2OSAO{width:246px}";
|
|
33
|
+
var styles$5 = {"advancedTable":"_4w33T","advancedTablePaginationContainer":"_zgWJ7","advancedTablePagination":"_3Yqs0","advancedTableColumnHeadersRowGroup":"_21s3t","advancedTableColumnHeaders":"_1SCqk","advancedTableRowChild":"_2vout","pinnedContainer":"_24Wwm","advancedTableRowGroup":"_12fqx","advancedTableRow":"_3QP_5","hasRowAction":"_3Ffiu","isSelected":"_1lWEK","advancedTableCheckbox":"_3VCro","advancedTableCell":"_193qE","advancedTableExpandRowSpacer":"_ctNOM","isCheckboxHovered":"_205QZ","showFocusRing":"_3xYpv","advancedTableColumnHeader":"_2qEN1","fillRemainingSpace":"_2NOUe","isSortable":"_1HRDO","isDragging":"_27wad","isSorted":"_t60IJ","dropTargetLine":"_PxLk9","dropTargetLeft":"_2cWE6","dropTargetRight":"_qmk2N","dropTargetMarker":"_2SEJm","resizeHandle":"_3p54Y","resizeLine":"_1pUxC","isResizing":"_2g_RF","advancedTableColumnHeaderLabel":"_1HbGQ","rightAligned":"_7SguP","sortIcon":"_28uMs","advancedTableColumnHeaderLabelText":"_1Ty0R","advancedTableColumnHeaderMenu":"_3AsVt","advancedTableColumnHeaderMenuHiddenAnchor":"_2UUM7","advancedTableColumnHeaderMenuItemIcon":"_bEwJu","advancedTableCellContainer":"_27PKY","header":"_3kaiT","checkboxContainer":"_3S40Z","checkbox":"_2OY6z","mixed":"_DKmot","leftAligned":"_1WtUp","centerAligned":"_FvZtN","hiddenDescription":"_1I3Ld","hiddenLiveRegion":"_1f96d","dragPreview":"_1obaT","rowActionMenuPane":"_2OSAO"};
|
|
34
|
+
var stylesheet$5="._4w33T{overflow:auto;position:relative;max-width:100%;max-height:100%}._4w33T,._zgWJ7{background-color:#fff}._zgWJ7{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._3Yqs0{margin-bottom:4px}._21s3t{position:-webkit-sticky;position:sticky;top:0;z-index:100}._1SCqk{display:flex}._1SCqk:focus{outline:none}body.keyboard-user ._1SCqk:focus ._2vout:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}body.keyboard-user ._1SCqk:focus ._2vout:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._1SCqk:focus ._2vout:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._1SCqk:focus ._2vout._24Wwm:after{right:-3px;bottom:1px}._12fqx{padding-right:3px}._3QP_5{display:flex}._3QP_5._3Ffiu ._2vout{cursor:pointer}._3QP_5._1lWEK ._2vout{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._3QP_5._1lWEK ._2vout._24Wwm{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._3QP_5._1lWEK ._2vout._24Wwm ._3VCro,._3QP_5._1lWEK ._2vout._24Wwm ._193qE,._3QP_5._1lWEK ._2vout._24Wwm ._ctNOM{background-color:rgba(11,110,208,.08)}._3QP_5._3Ffiu:hover:not(._1lWEK):not(._205QZ) ._2vout{background-color:#f9f9f9}._3QP_5._3Ffiu:active:not(._1lWEK):not(._205QZ) ._2vout{background-color:#f3f3f3}._3QP_5:focus{outline:none}body.keyboard-user ._3QP_5:focus ._2vout:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}body.keyboard-user ._3QP_5:focus ._2vout:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3QP_5:focus ._2vout:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3QP_5:focus ._2vout._24Wwm:after{right:-3px;bottom:0}._3QP_5:last-of-type:focus{outline:none}body.keyboard-user ._3QP_5:last-of-type:focus ._2vout:after{content:\"\";display:block;position:absolute;top:-2px;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}body.keyboard-user ._3QP_5:last-of-type:focus ._2vout:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3QP_5:last-of-type:focus ._2vout:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3QP_5:last-of-type:focus ._2vout._24Wwm:after{right:-3px;bottom:1px}._3QP_5:last-of-type ._193qE:focus{outline:none}body.keyboard-user ._3QP_5:last-of-type ._193qE._3xYpv:after,body.keyboard-user ._3QP_5:last-of-type ._193qE:focus:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._3QP_5:first-of-type:focus{outline:none}body.keyboard-user ._3QP_5:first-of-type:focus ._2vout:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}body.keyboard-user ._3QP_5:first-of-type:focus ._2vout:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3QP_5:first-of-type:focus ._2vout:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3QP_5:first-of-type:focus ._2vout._24Wwm:after{right:-3px;bottom:0}._3QP_5:first-of-type ._193qE:focus{outline:none}body.keyboard-user ._3QP_5:first-of-type ._193qE._3xYpv:after,body.keyboard-user ._3QP_5:first-of-type ._193qE:focus:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._2qEN1{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #d9d9d9;flex-shrink:0;font-size:12px;line-height:16px;font-weight:700;color:#6a6d70;background-color:#fff;position:relative}._2qEN1._2NOUe{flex-grow:1}._2qEN1._1HRDO{cursor:pointer}._2qEN1._1HRDO:hover:not(._27wad){background-color:#f9f9f9;border-bottom-color:#6a6d70}._2qEN1._1HRDO:active:not(._27wad){background-color:#f3f3f3}._2qEN1._t60IJ:not(._27wad){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._2qEN1._27wad{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._2qEN1 ._PxLk9{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._2qEN1 ._PxLk9._2cWE6{left:-1px}._2qEN1 ._PxLk9._qmk2N{right:0}._2qEN1 ._2SEJm{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._2qEN1 ._2SEJm._2cWE6{left:-2px}._2qEN1 ._2SEJm._qmk2N{right:-1px}._2qEN1:first-of-type ._2cWE6._PxLk9{left:0;width:2px;border-left:1px solid #fff}._2qEN1:first-of-type ._2cWE6._2SEJm{left:0}._2qEN1:last-of-type ._qmk2N._PxLk9{right:0;width:2px;border-right:1px solid #fff}._2qEN1:last-of-type ._qmk2N._2SEJm{right:0}._2qEN1 ._3p54Y{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._2qEN1 ._3p54Y ._1pUxC{position:absolute;width:2px;right:2px;top:0;bottom:0}._2qEN1 ._3p54Y ._1pUxC._2g_RF{background-color:#0a6ed1}._2qEN1 ._3p54Y:hover ._1pUxC:not(._2g_RF){background-color:#d9d9d9}._2qEN1 ._1HbGQ{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._2qEN1 ._1HbGQ._7SguP{flex-direction:row-reverse;justify-content:flex-start}._2qEN1 ._1HbGQ._7SguP ._28uMs{margin:1px 7px 1px 1px}._2qEN1 ._1HbGQ ._1Ty0R{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;pointer-events:none}._2qEN1 ._1HbGQ ._28uMs{margin:1px 1px 1px 7px;flex-shrink:0}._2qEN1 ._3AsVt{margin-left:6px;margin-right:4px;flex-shrink:0}._2qEN1 ._2UUM7{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._2qEN1:focus{outline:none}body.keyboard-user ._2qEN1._3xYpv:after,body.keyboard-user ._2qEN1:focus:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._bEwJu{margin-right:6px}._24Wwm{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._24Wwm[focus-within]{z-index:30}._24Wwm:focus-within{z-index:30}._193qE{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #eee;flex-shrink:0;font-size:14px;line-height:20px;color:#32363a;position:relative}._193qE ._27PKY{width:100%;padding:12px 12px 11px;overflow:hidden}._193qE._27wad{background-color:#efefef;border-bottom-color:#dfdfe1}._193qE._2NOUe{flex-grow:1}._193qE:focus{outline:none}body.keyboard-user ._193qE._3xYpv:after,body.keyboard-user ._193qE:focus:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._ctNOM{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._ctNOM._3kaiT{border-bottom-color:#d9d9d9}._3VCro{display:flex;align-items:center;justify-content:center;min-height:44px;width:40px;border-bottom:1px solid #eee;padding:12px 12px 11px;flex-shrink:0;cursor:pointer}._3VCro._3kaiT{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._3VCro:focus input~span,._3VCro:hover input~span{border-color:#0b6ed0}._3VCro ._3S40Z{position:relative;display:inline-flex}._3VCro ._3S40Z ._2OY6z{margin:0!important}._3VCro ._3S40Z ._DKmot{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._1WtUp{justify-content:flex-start}._FvZtN{justify-content:center;text-align:center}._7SguP{justify-content:flex-end;text-align:right}._1I3Ld{display:none}._1f96d{opacity:0;height:0;width:0;overflow:hidden}._1f96d,._1obaT{position:absolute}._1obaT{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._2OSAO{width:246px}";
|
|
35
35
|
icons_index.styleInject(css_248z$5);
|
|
36
36
|
|
|
37
37
|
// TODO: Move the imported types into this file to avoid a ciruclar dependency warning.
|
|
@@ -66,6 +66,7 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
66
66
|
setIsOpen,
|
|
67
67
|
columnId,
|
|
68
68
|
columnHeaderRef,
|
|
69
|
+
'data-testid': dataTestId,
|
|
69
70
|
...rest
|
|
70
71
|
} = _ref;
|
|
71
72
|
const {
|
|
@@ -78,7 +79,8 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
78
79
|
let {
|
|
79
80
|
onSelect,
|
|
80
81
|
Icon,
|
|
81
|
-
label
|
|
82
|
+
label,
|
|
83
|
+
'data-testid': menuItemDataTestId
|
|
82
84
|
} = _ref2;
|
|
83
85
|
return /*#__PURE__*/React__default["default"].createElement(index.MenuItem, {
|
|
84
86
|
role: "menuitem" // Enables having an action menu item inside of a SelectMenu
|
|
@@ -91,7 +93,8 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
91
93
|
setIsOpen(false);
|
|
92
94
|
(_columnHeaderRef$curr = columnHeaderRef.current) === null || _columnHeaderRef$curr === void 0 ? void 0 : _columnHeaderRef$curr.focus();
|
|
93
95
|
onSelect === null || onSelect === void 0 ? void 0 : onSelect();
|
|
94
|
-
}
|
|
96
|
+
},
|
|
97
|
+
"date-testid": menuItemDataTestId
|
|
95
98
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
96
99
|
size: "small",
|
|
97
100
|
className: styles$5.advancedTableColumnHeaderMenuItemIcon,
|
|
@@ -107,7 +110,8 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
107
110
|
pinItem = getActionMenuItem({
|
|
108
111
|
onSelect: () => onIsPinnedChange(!isPinned),
|
|
109
112
|
Icon: pinIcon,
|
|
110
|
-
label: pinLabel
|
|
113
|
+
label: pinLabel,
|
|
114
|
+
'data-testid': index.getSubDataTestId(dataTestId, 'ColumnHeaderMenu-PinColumn')
|
|
111
115
|
});
|
|
112
116
|
}
|
|
113
117
|
|
|
@@ -143,7 +147,8 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
143
147
|
return [/*#__PURE__*/React__default["default"].createElement(index.MenuItem, {
|
|
144
148
|
key: ascendingValue,
|
|
145
149
|
value: ascendingValue,
|
|
146
|
-
label: ascendingLabel
|
|
150
|
+
label: ascendingLabel,
|
|
151
|
+
"data-testid": index.getSubDataTestId(dataTestId, "ColumnHeaderMenu-Sort-".concat(index$1, "-").concat(SortDirections.Ascending))
|
|
147
152
|
}, /*#__PURE__*/React__default["default"].createElement(AscendingIconComponent, {
|
|
148
153
|
size: "small",
|
|
149
154
|
className: styles$5.advancedTableColumnHeaderMenuItemIcon,
|
|
@@ -151,7 +156,8 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
151
156
|
}), ascendingLabel), /*#__PURE__*/React__default["default"].createElement(index.MenuItem, {
|
|
152
157
|
key: descendingValue,
|
|
153
158
|
value: descendingValue,
|
|
154
|
-
label: descendingLabel
|
|
159
|
+
label: descendingLabel,
|
|
160
|
+
"data-testid": index.getSubDataTestId(dataTestId, "ColumnHeaderMenu-Sort-".concat(index$1, "-").concat(SortDirections.Descending))
|
|
155
161
|
}, /*#__PURE__*/React__default["default"].createElement(DescendingIconComponent, {
|
|
156
162
|
size: "small",
|
|
157
163
|
className: styles$5.advancedTableColumnHeaderMenuItemIcon,
|
|
@@ -160,11 +166,13 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
160
166
|
}), (sortOptions === null || sortOptions === void 0 ? void 0 : sortOptions.length) && (onIsPinnedChange || onMoveLeft || onMoveRight) && /*#__PURE__*/React__default["default"].createElement(index.Divider, null), pinItem, onMoveLeft && getActionMenuItem({
|
|
161
167
|
onSelect: onMoveLeft,
|
|
162
168
|
Icon: icons_index.ArrowLeftIcon,
|
|
163
|
-
label: translate('advancedTable.moveColumnLeft')
|
|
169
|
+
label: translate('advancedTable.moveColumnLeft'),
|
|
170
|
+
'data-testid': index.getSubDataTestId(dataTestId, 'ColumnHeaderMenu-MoveColumnLeft')
|
|
164
171
|
}), onMoveRight && getActionMenuItem({
|
|
165
172
|
onSelect: onMoveRight,
|
|
166
173
|
Icon: icons_index.ArrowRightIcon,
|
|
167
|
-
label: translate('advancedTable.moveColumnRight')
|
|
174
|
+
label: translate('advancedTable.moveColumnRight'),
|
|
175
|
+
'data-testid': index.getSubDataTestId(dataTestId, 'ColumnHeaderMenu-MoveColumnRight')
|
|
168
176
|
}));
|
|
169
177
|
};
|
|
170
178
|
|
|
@@ -374,8 +382,7 @@ const AdvancedTableColumnHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
374
382
|
setDropTargetSide,
|
|
375
383
|
tableId,
|
|
376
384
|
tableHeight,
|
|
377
|
-
isRowActionMenuColumn
|
|
378
|
-
isFinalNonRowActionsColumn
|
|
385
|
+
isRowActionMenuColumn
|
|
379
386
|
} = _ref;
|
|
380
387
|
const labelRef = React.useRef(null);
|
|
381
388
|
const [ellipsisShown, setEllipsisShown] = React.useState();
|
|
@@ -576,7 +583,8 @@ const AdvancedTableColumnHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
576
583
|
return (_columnHeaderRef$curr4 = columnHeaderRef.current) === null || _columnHeaderRef$curr4 === void 0 ? void 0 : _columnHeaderRef$curr4.focus();
|
|
577
584
|
},
|
|
578
585
|
columnId: id,
|
|
579
|
-
columnHeaderRef
|
|
586
|
+
columnHeaderRef,
|
|
587
|
+
'data-testid': dataTestId
|
|
580
588
|
};
|
|
581
589
|
React.useEffect(() => {
|
|
582
590
|
if (labelRef.current) {
|
|
@@ -605,7 +613,7 @@ const AdvancedTableColumnHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
605
613
|
[styles$5.isSorted]: isSorted,
|
|
606
614
|
[styles$5.showFocusRing]: isHiddenMenuOpen,
|
|
607
615
|
[styles$5.isDragging]: isDragging,
|
|
608
|
-
[styles$5.fillRemainingSpace]:
|
|
616
|
+
[styles$5.fillRemainingSpace]: width === undefined
|
|
609
617
|
}),
|
|
610
618
|
style: {
|
|
611
619
|
width: computedWidth
|
|
@@ -690,7 +698,6 @@ const AdvancedTableCell = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
690
698
|
onKeyDown,
|
|
691
699
|
onFocus,
|
|
692
700
|
isDragging,
|
|
693
|
-
isFinalNonRowActionsColumn,
|
|
694
701
|
className,
|
|
695
702
|
...rest
|
|
696
703
|
} = _ref;
|
|
@@ -753,7 +760,7 @@ const AdvancedTableCell = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
753
760
|
[styles$5.centerAligned]: alignment === Alignments.Center,
|
|
754
761
|
[styles$5.rightAligned]: alignment === Alignments.Right,
|
|
755
762
|
[styles$5.isDragging]: isDragging,
|
|
756
|
-
[styles$5.fillRemainingSpace]:
|
|
763
|
+
[styles$5.fillRemainingSpace]: width === undefined
|
|
757
764
|
}),
|
|
758
765
|
style: {
|
|
759
766
|
width: computedWidth
|
|
@@ -761,7 +768,7 @@ const AdvancedTableCell = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
761
768
|
ref: index.mergeRefs(ref, cellRef)
|
|
762
769
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
763
770
|
className: styles$5.advancedTableCellContainer
|
|
764
|
-
},
|
|
771
|
+
}, typeof renderCellContent === 'function' ? renderCellContent({
|
|
765
772
|
value,
|
|
766
773
|
setValue,
|
|
767
774
|
focusCell,
|
|
@@ -771,7 +778,7 @@ const AdvancedTableCell = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
771
778
|
columnId,
|
|
772
779
|
rowIndex,
|
|
773
780
|
columnIndex
|
|
774
|
-
}) : value))
|
|
781
|
+
}) : value));
|
|
775
782
|
});
|
|
776
783
|
|
|
777
784
|
const AdvancedTableRow = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -926,7 +933,8 @@ const AdvancedTablePagination = _ref => {
|
|
|
926
933
|
setCurrentPage,
|
|
927
934
|
rows,
|
|
928
935
|
ariaLabel,
|
|
929
|
-
onPageChange
|
|
936
|
+
onPageChange,
|
|
937
|
+
'data-testid': dataTestId
|
|
930
938
|
} = _ref;
|
|
931
939
|
|
|
932
940
|
const handlePageChange = _ref2 => {
|
|
@@ -944,7 +952,8 @@ const AdvancedTablePagination = _ref => {
|
|
|
944
952
|
"aria-label": ariaLabel,
|
|
945
953
|
numPages: Math.max(Math.ceil(rows.length / rowsPerPage), 1),
|
|
946
954
|
currentPage: currentPage,
|
|
947
|
-
onPageChange: handlePageChange
|
|
955
|
+
onPageChange: handlePageChange,
|
|
956
|
+
"data-testid": dataTestId
|
|
948
957
|
}));
|
|
949
958
|
};
|
|
950
959
|
|
|
@@ -1517,13 +1526,6 @@ const AdvancedTable = _ref => {
|
|
|
1517
1526
|
}
|
|
1518
1527
|
};
|
|
1519
1528
|
|
|
1520
|
-
const isFinalNonRowActionsColumn = columnIndex => {
|
|
1521
|
-
const columnCount = unpinnedColumnConfigs.length + pinnedColumnConfigs.length;
|
|
1522
|
-
const finalColumnIsRowActions = Boolean(rowActions);
|
|
1523
|
-
const finalNonRowActionsColumnIndex = columnCount - (finalColumnIsRowActions ? 2 : 1);
|
|
1524
|
-
return columnIndex === finalNonRowActionsColumnIndex;
|
|
1525
|
-
};
|
|
1526
|
-
|
|
1527
1529
|
const getColumnHeaderProps = (columnConfig, columnIndex, isPinned) => {
|
|
1528
1530
|
var _columnWidths$id;
|
|
1529
1531
|
|
|
@@ -1539,17 +1541,27 @@ const AdvancedTable = _ref => {
|
|
|
1539
1541
|
return {
|
|
1540
1542
|
id,
|
|
1541
1543
|
isRowActionMenuColumn,
|
|
1542
|
-
isFinalNonRowActionsColumn: isFinalNonRowActionsColumn(columnIndex),
|
|
1543
1544
|
'data-testid': dataTestId && id ? "".concat(dataTestId, "-").concat(id) : undefined,
|
|
1544
1545
|
label: headerLabel,
|
|
1545
1546
|
width: (_columnWidths$id = columnWidths[id]) !== null && _columnWidths$id !== void 0 ? _columnWidths$id : width,
|
|
1546
1547
|
widthBuffer: columnIndex === 0 && maxRowDepth > 0 ? columnWidthBuffers[0] : undefined,
|
|
1547
1548
|
onWidthChange: disableUserResizableColumns || isRowActionMenuColumn ? undefined : newWidth => {
|
|
1548
1549
|
setColumnWidths(currentColumnWidths => {
|
|
1549
|
-
const
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1550
|
+
const newColumnsWidths = columnOrder.reduce((map, colId, index) => {
|
|
1551
|
+
if (colId === id) {
|
|
1552
|
+
map[colId] = newWidth;
|
|
1553
|
+
} else if (currentColumnWidths[colId]) {
|
|
1554
|
+
map[colId] = currentColumnWidths[colId];
|
|
1555
|
+
} else {
|
|
1556
|
+
var _cellRefs$current, _cellRefs$current$hea;
|
|
1557
|
+
|
|
1558
|
+
const colRef = (_cellRefs$current = cellRefs.current) === null || _cellRefs$current === void 0 ? void 0 : (_cellRefs$current$hea = _cellRefs$current[headerRowIndex]) === null || _cellRefs$current$hea === void 0 ? void 0 : _cellRefs$current$hea[index];
|
|
1559
|
+
map[colId] = colRef === null || colRef === void 0 ? void 0 : colRef.getBoundingClientRect().width;
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
return map;
|
|
1563
|
+
}, {});
|
|
1564
|
+
return newColumnsWidths;
|
|
1553
1565
|
});
|
|
1554
1566
|
},
|
|
1555
1567
|
alignment,
|
|
@@ -1593,7 +1605,6 @@ const AdvancedTable = _ref => {
|
|
|
1593
1605
|
const value = data[columnId];
|
|
1594
1606
|
return {
|
|
1595
1607
|
value,
|
|
1596
|
-
isFinalNonRowActionsColumn: isFinalNonRowActionsColumn(columnIndex),
|
|
1597
1608
|
setValue: newValue => {
|
|
1598
1609
|
const newRows = [...rowsProp];
|
|
1599
1610
|
newRows[rowIndex].data[columnId] = newValue;
|
|
@@ -1791,7 +1802,8 @@ const AdvancedTable = _ref => {
|
|
|
1791
1802
|
ariaLabel: paginationAriaLabel,
|
|
1792
1803
|
rows: rowsProp,
|
|
1793
1804
|
currentPage: currentPage,
|
|
1794
|
-
setCurrentPage: setCurrentPage
|
|
1805
|
+
setCurrentPage: setCurrentPage,
|
|
1806
|
+
"data-testid": index.getSubDataTestId(dataTestId, 'TablePagination')
|
|
1795
1807
|
}) : null));
|
|
1796
1808
|
}; // TODO: move hook to separate file
|
|
1797
1809
|
|
|
@@ -1870,10 +1882,10 @@ function useFocusState(_ref8) {
|
|
|
1870
1882
|
const focusCell = index.useEventCallback(cell => {
|
|
1871
1883
|
// Manually scroll cells/rows into view if needed
|
|
1872
1884
|
if (index.getIsKeyboardUser()) {
|
|
1873
|
-
var _tableRef$current, _cellRefs$
|
|
1885
|
+
var _tableRef$current, _cellRefs$current2, _cellRefs$current2$he;
|
|
1874
1886
|
|
|
1875
1887
|
const tablePos = (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.getBoundingClientRect();
|
|
1876
|
-
const header = (_cellRefs$
|
|
1888
|
+
const header = (_cellRefs$current2 = cellRefs.current) === null || _cellRefs$current2 === void 0 ? void 0 : (_cellRefs$current2$he = _cellRefs$current2[headerRowIndex]) === null || _cellRefs$current2$he === void 0 ? void 0 : _cellRefs$current2$he[-1];
|
|
1877
1889
|
const headerPos = header === null || header === void 0 ? void 0 : header.getBoundingClientRect();
|
|
1878
1890
|
let cellPos = cell === null || cell === void 0 ? void 0 : cell.getBoundingClientRect(); // Vertical scroll
|
|
1879
1891
|
|
|
@@ -1920,19 +1932,19 @@ function useFocusState(_ref8) {
|
|
|
1920
1932
|
|
|
1921
1933
|
index.useDidUpdate(() => {
|
|
1922
1934
|
if (focusedColumnId) {
|
|
1923
|
-
var _cellRefs$
|
|
1935
|
+
var _cellRefs$current3, _cellRefs$current3$fo;
|
|
1924
1936
|
|
|
1925
1937
|
const columnIndex = pinnedUnpinnedColumnOrder.indexOf(focusedColumnId);
|
|
1926
|
-
focusCell((_cellRefs$
|
|
1938
|
+
focusCell((_cellRefs$current3 = cellRefs.current) === null || _cellRefs$current3 === void 0 ? void 0 : (_cellRefs$current3$fo = _cellRefs$current3[focusedRowIndex]) === null || _cellRefs$current3$fo === void 0 ? void 0 : _cellRefs$current3$fo[columnIndex]);
|
|
1927
1939
|
setFocusedColumnIndex(columnIndex);
|
|
1928
1940
|
setFocusedColumnId(undefined);
|
|
1929
1941
|
}
|
|
1930
1942
|
}, [focusedColumnId, pinnedUnpinnedColumnOrder]); // Focus cell when the focused indices change
|
|
1931
1943
|
|
|
1932
1944
|
index.useDidUpdate(() => {
|
|
1933
|
-
var _cellRefs$
|
|
1945
|
+
var _cellRefs$current4, _cellRefs$current4$fo;
|
|
1934
1946
|
|
|
1935
|
-
const newFocusedCell = (_cellRefs$
|
|
1947
|
+
const newFocusedCell = (_cellRefs$current4 = cellRefs.current) === null || _cellRefs$current4 === void 0 ? void 0 : (_cellRefs$current4$fo = _cellRefs$current4[focusedRowIndex]) === null || _cellRefs$current4$fo === void 0 ? void 0 : _cellRefs$current4$fo[focusedColumnIndex];
|
|
1936
1948
|
/* Prevent cells from stealing focus from their children when they
|
|
1937
1949
|
* receive focus, but still allow focus to move from a cell to a row.
|
|
1938
1950
|
*/
|
|
@@ -1959,9 +1971,9 @@ function useFocusState(_ref8) {
|
|
|
1959
1971
|
|
|
1960
1972
|
/* eslint-disable import/prefer-default-export */
|
|
1961
1973
|
|
|
1962
|
-
var css_248z$4 = ".
|
|
1963
|
-
var styles$4 = {"collapsibleSearchInput":"
|
|
1964
|
-
var stylesheet$4=".
|
|
1974
|
+
var css_248z$4 = "._ISNsZ{display:inline-block;width:36px;transition:width .25s ease-out}._MrxCF{width:100%}._3RAH2>input{padding-right:0!important}._2djqd>svg{fill:#515559}";
|
|
1975
|
+
var styles$4 = {"collapsibleSearchInput":"_ISNsZ","searchInput":"_MrxCF","searchInputCollapsed":"_3RAH2","iconButton":"_2djqd"};
|
|
1976
|
+
var stylesheet$4="._ISNsZ{display:inline-block;width:36px;transition:width .25s ease-out}._MrxCF{width:100%}._3RAH2>input{padding-right:0!important}._2djqd>svg{fill:#515559}";
|
|
1965
1977
|
icons_index.styleInject(css_248z$4);
|
|
1966
1978
|
|
|
1967
1979
|
const CollapsibleSearchInputIconButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -2115,9 +2127,9 @@ const CollapsibleSearchInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2115
2127
|
}));
|
|
2116
2128
|
});
|
|
2117
2129
|
|
|
2118
|
-
var css_248z$3 = ".
|
|
2119
|
-
var styles$3 = {"input":"
|
|
2120
|
-
var stylesheet$3=".
|
|
2130
|
+
var css_248z$3 = "._1XtDp input{padding-left:76px!important}._EF8s9 input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._EF8s9 input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._EF8s9 input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._3KTFH{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._3KTFH,._3KTFH._EF8s9:hover{background-color:transparent!important}._3KTFH:hover{background-color:rgba(50,54,58,.08)!important}._3KTFH:active{background-color:rgba(50,54,58,.11)!important}._3KTFH svg{top:2px!important}._1vuCU{position:relative}._2-vwJ{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
2131
|
+
var styles$3 = {"input":"_1XtDp","disabled":"_EF8s9","dropdown":"_3KTFH","container":"_1vuCU","countryCode":"_2-vwJ"};
|
|
2132
|
+
var stylesheet$3="._1XtDp input{padding-left:76px!important}._EF8s9 input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._EF8s9 input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._EF8s9 input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._3KTFH{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._3KTFH,._3KTFH._EF8s9:hover{background-color:transparent!important}._3KTFH:hover{background-color:rgba(50,54,58,.08)!important}._3KTFH:active{background-color:rgba(50,54,58,.11)!important}._3KTFH svg{top:2px!important}._1vuCU{position:relative}._2-vwJ{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
2121
2133
|
icons_index.styleInject(css_248z$3);
|
|
2122
2134
|
|
|
2123
2135
|
const PhoneNumberInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -2857,9 +2869,9 @@ function Combobox(_ref) {
|
|
|
2857
2869
|
}, children);
|
|
2858
2870
|
}
|
|
2859
2871
|
|
|
2860
|
-
var css_248z$2 = ".
|
|
2861
|
-
var styles$2 = {"loadingSpinner":"
|
|
2862
|
-
var stylesheet$2=".
|
|
2872
|
+
var css_248z$2 = "._mwzkL :after{background-color:#515559!important}._2H7Xp{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._2H7Xp ._2F-bJ ._24JX-{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._2H7Xp ._2F-bJ:first-child ._1MM9O{display:none}._2H7Xp ._1gdH7{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._2H7Xp ._1gdH7:hover{background-color:#efefef}._2H7Xp ._1gdH7:hover._2PXQ2{background-color:#e4effa}._2H7Xp ._1gdH7._2PXQ2{background-color:#ebf3fb}._2H7Xp ._1gdH7:active:not(._2PXQ2){background-color:#e8e9e9}";
|
|
2873
|
+
var styles$2 = {"loadingSpinner":"_mwzkL","flyout":"_2H7Xp","group":"_2F-bJ","header":"_24JX-","divider":"_1MM9O","option":"_1gdH7","selected":"_2PXQ2"};
|
|
2874
|
+
var stylesheet$2="._mwzkL :after{background-color:#515559!important}._2H7Xp{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._2H7Xp ._2F-bJ ._24JX-{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._2H7Xp ._2F-bJ:first-child ._1MM9O{display:none}._2H7Xp ._1gdH7{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._2H7Xp ._1gdH7:hover{background-color:#efefef}._2H7Xp ._1gdH7:hover._2PXQ2{background-color:#e4effa}._2H7Xp ._1gdH7._2PXQ2{background-color:#ebf3fb}._2H7Xp ._1gdH7:active:not(._2PXQ2){background-color:#e8e9e9}";
|
|
2863
2875
|
icons_index.styleInject(css_248z$2);
|
|
2864
2876
|
|
|
2865
2877
|
const ComboboxInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -3170,9 +3182,9 @@ function ComboboxOption(_ref) {
|
|
|
3170
3182
|
}, label);
|
|
3171
3183
|
}
|
|
3172
3184
|
|
|
3173
|
-
var css_248z$1 = ".
|
|
3174
|
-
var styles$1 = {"container":"
|
|
3175
|
-
var stylesheet$1=".
|
|
3185
|
+
var css_248z$1 = "._1ajtX{display:flex}._IRT90{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._IRT90._3HgzA{background-color:#fff}._IRT90._3HgzA._2vfml:not(._IRT90._3HgzA._2JB8V),._IRT90._12qsa,body.keyboard-user ._IRT90._3HgzA._1a0t6:not(._3fckH){background-color:#0b6ed0}._IRT90._12qsa._2JB8V._2vfml,._IRT90._12qsa._3fckH._1a0t6,._IRT90._12qsa._3fckH._2JB8V{opacity:.4}._3KRVd{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._3KRVd:focus{z-index:1}._934HJ{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._934HJ svg{margin-left:1px}._934HJ._3HgzA{background-color:#0b6ed0;border-color:transparent}._934HJ._3HgzA svg{fill:#fff!important}._934HJ._3HgzA:not(._1WPuw):hover{background-color:#085caf!important}._934HJ._3HgzA:not(._1WPuw):active{background-color:#0854a1!important}._934HJ._3HgzA._1WPuw{opacity:.4}._934HJ._3HgzA._1WPuw svg{background-color:transparent}._934HJ._12qsa{border-color:#0b6ed0;background-color:#fff}._934HJ._12qsa svg{fill:#0b6ed0!important}._934HJ._12qsa:not(._1WPuw):hover{background-color:#eef5fc!important}._934HJ._12qsa:not(._1WPuw):active{background-color:#e1edf9!important}._934HJ._12qsa._1WPuw{opacity:.4}._934HJ._12qsa._1WPuw svg{background-color:transparent}._E-7oO{width:260px}";
|
|
3186
|
+
var styles$1 = {"container":"_1ajtX","divider":"_IRT90","primary":"_3HgzA","mainButtonFocus":"_1a0t6","mainButtonDisabled":"_3fckH","dropdownButtonFocus":"_2vfml","dropdownButtonDisabled":"_2JB8V","secondary":"_12qsa","mainButton":"_3KRVd","dropdownButton":"_934HJ","disabled":"_1WPuw","dropdownOption":"_E-7oO"};
|
|
3187
|
+
var stylesheet$1="._1ajtX{display:flex}._IRT90{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._IRT90._3HgzA{background-color:#fff}._IRT90._3HgzA._2vfml:not(._IRT90._3HgzA._2JB8V),._IRT90._12qsa,body.keyboard-user ._IRT90._3HgzA._1a0t6:not(._3fckH){background-color:#0b6ed0}._IRT90._12qsa._2JB8V._2vfml,._IRT90._12qsa._3fckH._1a0t6,._IRT90._12qsa._3fckH._2JB8V{opacity:.4}._3KRVd{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._3KRVd:focus{z-index:1}._934HJ{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._934HJ svg{margin-left:1px}._934HJ._3HgzA{background-color:#0b6ed0;border-color:transparent}._934HJ._3HgzA svg{fill:#fff!important}._934HJ._3HgzA:not(._1WPuw):hover{background-color:#085caf!important}._934HJ._3HgzA:not(._1WPuw):active{background-color:#0854a1!important}._934HJ._3HgzA._1WPuw{opacity:.4}._934HJ._3HgzA._1WPuw svg{background-color:transparent}._934HJ._12qsa{border-color:#0b6ed0;background-color:#fff}._934HJ._12qsa svg{fill:#0b6ed0!important}._934HJ._12qsa:not(._1WPuw):hover{background-color:#eef5fc!important}._934HJ._12qsa:not(._1WPuw):active{background-color:#e1edf9!important}._934HJ._12qsa._1WPuw{opacity:.4}._934HJ._12qsa._1WPuw svg{background-color:transparent}._E-7oO{width:260px}";
|
|
3176
3188
|
icons_index.styleInject(css_248z$1);
|
|
3177
3189
|
|
|
3178
3190
|
const SplitButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -3274,9 +3286,9 @@ const SplitButtonOption = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3274
3286
|
}, children);
|
|
3275
3287
|
});
|
|
3276
3288
|
|
|
3277
|
-
var css_248z = ".
|
|
3278
|
-
var styles = {"button":"
|
|
3279
|
-
var stylesheet=".
|
|
3289
|
+
var css_248z = "._n2Tvi{display:flex;justify-content:space-between;align-items:center;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._n2Tvi:hover:not(._3Y9Zm){background-color:rgba(50,54,58,.08)}._n2Tvi:hover:not(._3Y9Zm)._2sdcF{border-color:#085caf;background-color:rgba(11,110,208,.04)}._n2Tvi:hover:not(._3Y9Zm)._2sdcF>._3HLRq{color:#32363a}._n2Tvi:hover:not(._3Y9Zm)._2sdcF>._3r5L0{fill:#32363a}._n2Tvi:hover:not(._3Y9Zm)._2sdcF>._29bpM{fill:#085caf}._n2Tvi:hover:not(._3Y9Zm)._2sdcF>._2acPK{background-color:rgba(11,110,208,.11)}._n2Tvi:hover:not(._3Y9Zm)._2sdcF>._2acPK>._fXihR{color:#085caf}._n2Tvi:active{background-color:#e8e9e9}._n2Tvi._3Y9Zm{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._n2Tvi._2sdcF{border-color:#0b6ed0}._3r5L0{fill:#515559;margin-right:4px}._3HLRq{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._3HLRq+._2acPK{margin-left:6px}._3HLRq._3Y9Zm{color:#74777a}._2acPK{display:flex;justify-content:center;align-items:center;max-width:350px;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._fXihR{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._29bpM{fill:#515559}._29bpM._3Y9Zm,._29bpM._3Y9Zm._2sdcF{fill:rgba(116,119,122,.4)}._29bpM._2sdcF{fill:#0b6ed0}._29bpM._3V5nR{transform:rotate(-180deg)}body.keyboard-user ._n2Tvi:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
3290
|
+
var styles = {"button":"_n2Tvi","disabled":"_3Y9Zm","selected":"_2sdcF","label":"_3HLRq","lockIcon":"_3r5L0","chevronIcon":"_29bpM","selectedFiltersContainer":"_2acPK","selectedFilters":"_fXihR","open":"_3V5nR"};
|
|
3291
|
+
var stylesheet="._n2Tvi{display:flex;justify-content:space-between;align-items:center;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._n2Tvi:hover:not(._3Y9Zm){background-color:rgba(50,54,58,.08)}._n2Tvi:hover:not(._3Y9Zm)._2sdcF{border-color:#085caf;background-color:rgba(11,110,208,.04)}._n2Tvi:hover:not(._3Y9Zm)._2sdcF>._3HLRq{color:#32363a}._n2Tvi:hover:not(._3Y9Zm)._2sdcF>._3r5L0{fill:#32363a}._n2Tvi:hover:not(._3Y9Zm)._2sdcF>._29bpM{fill:#085caf}._n2Tvi:hover:not(._3Y9Zm)._2sdcF>._2acPK{background-color:rgba(11,110,208,.11)}._n2Tvi:hover:not(._3Y9Zm)._2sdcF>._2acPK>._fXihR{color:#085caf}._n2Tvi:active{background-color:#e8e9e9}._n2Tvi._3Y9Zm{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._n2Tvi._2sdcF{border-color:#0b6ed0}._3r5L0{fill:#515559;margin-right:4px}._3HLRq{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._3HLRq+._2acPK{margin-left:6px}._3HLRq._3Y9Zm{color:#74777a}._2acPK{display:flex;justify-content:center;align-items:center;max-width:350px;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._fXihR{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._29bpM{fill:#515559}._29bpM._3Y9Zm,._29bpM._3Y9Zm._2sdcF{fill:rgba(116,119,122,.4)}._29bpM._2sdcF{fill:#0b6ed0}._29bpM._3V5nR{transform:rotate(-180deg)}body.keyboard-user ._n2Tvi:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
3280
3292
|
icons_index.styleInject(css_248z);
|
|
3281
3293
|
|
|
3282
3294
|
const FilterAnchor = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -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 = {"flyout":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._d49OP{background-color:#fff;border-radius:4px;border:4px solid transparent;border-right:none;border-left:none;box-shadow:0 0 0 1px #eee,0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;max-width:500px;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._3a6ME{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;cursor:pointer;font-size:14px;color:#32363a;word-break:break-word;outline:none}._3a6ME._2A9Y6,._3a6ME._MVtum._3a6ME:hover{background-color:#efefef}._3a6ME._2njTN{background-color:#ebf3fb;font-weight:500}._3a6ME._2njTN._2A9Y6,._3a6ME._2njTN._MVtum._3a6ME._2njTN:hover{background-color:#e4effa}._3a6ME:active:not(._2njTN):not([aria-disabled=true]){background-color:#e8e9e9}._3hijG ._-ZCq7{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;font-size:12px;color:#32363a;font-weight:700;word-break:break-word}._3hijG ._1h8BF{display:none}._3hijG:not(:first-child) ._1h8BF{display:block;margin:3.5px 0}._2syc8{width:100%;height:40px}";
|
|
4
|
+
var styles = {"flyout":"_d49OP","flyoutOption":"_3a6ME","highlighted":"_2A9Y6","hoverHighlight":"_MVtum","selected":"_2njTN","flyoutHeader":"_3hijG","headerContent":"_-ZCq7","headerDivider":"_1h8BF","flyoutSpinner":"_2syc8"};
|
|
5
|
+
var stylesheet="._d49OP{background-color:#fff;border-radius:4px;border:4px solid transparent;border-right:none;border-left:none;box-shadow:0 0 0 1px #eee,0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;max-width:500px;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._3a6ME{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;cursor:pointer;font-size:14px;color:#32363a;word-break:break-word;outline:none}._3a6ME._2A9Y6,._3a6ME._MVtum._3a6ME:hover{background-color:#efefef}._3a6ME._2njTN{background-color:#ebf3fb;font-weight:500}._3a6ME._2njTN._2A9Y6,._3a6ME._2njTN._MVtum._3a6ME._2njTN:hover{background-color:#e4effa}._3a6ME:active:not(._2njTN):not([aria-disabled=true]){background-color:#e8e9e9}._3hijG ._-ZCq7{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;font-size:12px;color:#32363a;font-weight:700;word-break:break-word}._3hijG ._1h8BF{display:none}._3hijG:not(:first-child) ._1h8BF{display:block;margin:3.5px 0}._2syc8{width:100%;height:40px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qualtrics/ui-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Official Qualtrics UI component library designed for React",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"@cypress/webpack-dev-server": "^1.7.0",
|
|
118
118
|
"@emotion/css": "^11.10.0",
|
|
119
119
|
"@microsoft/api-extractor": "^7.19.4",
|
|
120
|
-
"@qualtrics-translations/qualtricsdesignsystemui": "0.6.
|
|
120
|
+
"@qualtrics-translations/qualtricsdesignsystemui": "0.6.12309",
|
|
121
121
|
"@rollup/plugin-babel": "^5.0.2",
|
|
122
122
|
"@rollup/plugin-commonjs": "^22.0.1",
|
|
123
123
|
"@rollup/plugin-json": "^4.0.3",
|