@qualtrics/ui-react 2.30.0 → 2.31.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 +13 -0
- package/dist/__shared/cjs/{index-30cc916b.js → index-434a3b72.js} +372 -374
- package/dist/__shared/cjs/{index-e0e97b93.js → index-c13fc74c.js} +3 -3
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Check.js +32 -13
- package/dist/components/Checkbox/Checkbox.js +35 -23
- 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/Dropdown/DropdownOption.js +2 -2
- 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/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/parts/MenuItem.js +2 -2
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- 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_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/hooks/useOverlay/useOverlay2.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 +4 -4
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +30 -16
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +5 -9
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaders.js +5 -1
- package/dist/next/AdvancedTable/AdvancedTableRow.js +3 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Hooks/usePaneSearch.js +1 -1
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/SubMenu.js +6 -6
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/Select/SelectItem.js +4 -4
- package/dist/next/Select/SubSelect.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.js +91 -76
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/next/package.json +1 -1
- package/package.json +1 -1
- package/dist/components/Checkbox/VisualCheckbox.js +0 -31
- package/dist/components/Checkbox/VisualCheckbox2.js +0 -8
|
@@ -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 = {"table":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._8COyq{font-size:14px;color:#32363a;width:100%;max-width:100%;border-collapse:collapse;background-color:#fff;border:none}._8COyq ._1k-38:first-child,._8COyq ._GF-1t:first-child{padding-left:16px}._LJbhD{font-size:12px}._GF-1t{padding:12px 8px;text-align:left;font-weight:700}._obYNN ._fGF4q{border-top:1px solid #ededed}._obYNN ._fGF4q:hover{background-color:#fafafa}._fGF4q{transition:background-color 125ms ease-in;border-bottom:1px solid #ededed}._1k-38{padding:16px 8px;word-break:break-word;text-align:left}";
|
|
4
|
+
var styles = {"table":"_8COyq","tableCell":"_1k-38","tableHeaderCell":"_GF-1t","tableHead":"_LJbhD","tableBody":"_obYNN","tableRow":"_fGF4q"};
|
|
5
|
+
var stylesheet="._8COyq{font-size:14px;color:#32363a;width:100%;max-width:100%;border-collapse:collapse;background-color:#fff;border:none}._8COyq ._1k-38:first-child,._8COyq ._GF-1t:first-child{padding-left:16px}._LJbhD{font-size:12px}._GF-1t{padding:12px 8px;text-align:left;font-weight:700}._obYNN ._fGF4q{border-top:1px solid #ededed}._obYNN ._fGF4q:hover{background-color:#fafafa}._fGF4q{transition:background-color 125ms ease-in;border-bottom:1px solid #ededed}._1k-38{padding:16px 8px;word-break:break-word;text-align:left}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){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 = {"tablist":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._rN8FT{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._rN8FT._asFcc ._Sk0oq{flex:1 1 0px;max-width:none}._Sk0oq{background:inherit;font-family:inherit;font-size:100%;line-height:1.15;margin:0;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-transform:none;text-align:center;color:#6a6d70;height:52px;padding:16px 12px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border:none;border-bottom:2px solid transparent;border-radius:1px;display:block;outline:none;cursor:pointer}._Sk0oq:hover{color:#32363a}._Sk0oq._ao4yy{border-bottom-color:#0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._nEd8C{padding-top:32px}._nEd8C._qbcGV{display:none}._Sk0oq.focus-visible,._Sk0oq:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"tablist":"_rN8FT","grow":"_asFcc","tab":"_Sk0oq","selected":"_ao4yy","tabpanel":"_nEd8C","inactive":"_qbcGV"};
|
|
5
|
+
var stylesheet="._rN8FT{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._rN8FT._asFcc ._Sk0oq{flex:1 1 0px;max-width:none}._Sk0oq{background:inherit;font-family:inherit;font-size:100%;line-height:1.15;margin:0;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-transform:none;text-align:center;color:#6a6d70;height:52px;padding:16px 12px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border:none;border-bottom:2px solid transparent;border-radius:1px;display:block;outline:none;cursor:pointer}._Sk0oq:hover{color:#32363a}._Sk0oq._ao4yy{border-bottom-color:#0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._nEd8C{padding-top:32px}._nEd8C._qbcGV{display:none}._Sk0oq.focus-visible,._Sk0oq:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){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 = {"tooltip":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._v0G9Z{position:absolute;z-index:2000;max-width:240px;padding:8px 16px;color:#fff;text-align:center;text-decoration:none;background-color:#222;border-radius:4px;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);font-size:14px;opacity:0;pointer-events:none;overflow-wrap:break-word;border:1px solid #898989}._v0G9Z._DM5XH{color:#32363a;background-color:#fff}._t2LW1{opacity:1;pointer-events:all}._B9c1-,._B9c1->div{position:absolute;width:8px;height:8px;background:inherit}._B9c1-{visibility:hidden;z-index:2000}._B9c1->div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._B9c1-{bottom:-4px}[data-popper-placement^=top]>._B9c1->div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._B9c1-{left:-5px}[data-popper-placement^=right]>._B9c1->div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._B9c1-{top:-5px}[data-popper-placement^=bottom]>._B9c1->div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._B9c1-{right:-4px}[data-popper-placement^=left]>._B9c1->div{border-bottom-color:transparent;border-left-color:transparent}._DREPc{position:absolute}[data-popper-placement^=top]>._DREPc{bottom:-13px;left:0;width:100%;height:17px}[data-popper-placement^=right]>._DREPc{top:0;left:-13px;width:17px;height:100%}[data-popper-placement^=bottom]>._DREPc{top:-13px;left:0;width:100%;height:17px}[data-popper-placement^=left]>._DREPc{top:0;right:-13px;width:17px;height:100%}";
|
|
4
|
+
var styles = {"tooltip":"_v0G9Z","lightTheme":"_DM5XH","visible":"_t2LW1","arrow":"_B9c1-","offsetBackplate":"_DREPc"};
|
|
5
|
+
var stylesheet="._v0G9Z{position:absolute;z-index:2000;max-width:240px;padding:8px 16px;color:#fff;text-align:center;text-decoration:none;background-color:#222;border-radius:4px;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);font-size:14px;opacity:0;pointer-events:none;overflow-wrap:break-word;border:1px solid #898989}._v0G9Z._DM5XH{color:#32363a;background-color:#fff}._t2LW1{opacity:1;pointer-events:all}._B9c1-,._B9c1->div{position:absolute;width:8px;height:8px;background:inherit}._B9c1-{visibility:hidden;z-index:2000}._B9c1->div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._B9c1-{bottom:-4px}[data-popper-placement^=top]>._B9c1->div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._B9c1-{left:-5px}[data-popper-placement^=right]>._B9c1->div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._B9c1-{top:-5px}[data-popper-placement^=bottom]>._B9c1->div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._B9c1-{right:-4px}[data-popper-placement^=left]>._B9c1->div{border-bottom-color:transparent;border-left-color:transparent}._DREPc{position:absolute}[data-popper-placement^=top]>._DREPc{bottom:-13px;left:0;width:100%;height:17px}[data-popper-placement^=right]>._DREPc{top:0;left:-13px;width:17px;height:100%}[data-popper-placement^=bottom]>._DREPc{top:-13px;left:0;width:100%;height:17px}[data-popper-placement^=left]>._DREPc{top:0;right:-13px;width:17px;height:100%}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){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 = {"colorPickerBtnColor":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._381fa{margin-left:-6px;height:16px;width:16px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._jfXIt{margin-right:-12px;margin-left:4px}._5g168{background-color:#fff;border-radius:4px;box-shadow:0 4px 24px -4px rgba(0,0,0,.5);width:156px}._-kW8o{margin:8px 8px 0;display:flex}._2fzbJ,._ko35K{margin-left:4px}._z-0HB{margin:8px 4px 0 8px;display:flex;flex-wrap:wrap}._DhHVy{margin:0 4px 4px 0}._DhHVy:hover{width:18px;height:18px;margin:-1px 3px 3px -1px}._AcLTQ{margin:4px 8px 8px}._ZQRAD{position:relative;width:96px;height:96px;outline:0}._ZQRAD.focus-visible ._CVb0p,._ZQRAD:focus-visible ._CVb0p{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._-QD-O{background:linear-gradient(90deg,#fff,transparent)}._-QD-O,._WVleY{position:absolute;top:0;right:0;bottom:0;left:0}._WVleY{background:linear-gradient(0deg,#000,transparent)}._CVb0p{position:absolute;border:2px solid #fff;border-radius:5px;height:8px;width:8px;margin:0 0 -4px -4px;box-shadow:0 0 1px 1px rgba(0,0,0,.4),inset 0 0 1px #000}._r-ivF{position:relative;background:linear-gradient(0deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);width:16px;height:96px;outline:0}._r-ivF.focus-visible ._GtItv,._r-ivF:focus-visible ._GtItv{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._GtItv{width:16px;height:4px;background:#fff;border-radius:50%;position:absolute;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._uw-9c{position:relative;width:16px;height:96px}._lBFRE{width:16px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._6OFKL,._lBFRE{position:absolute}._6OFKL{top:0;right:0;bottom:0;left:0;outline:0}._6OFKL.focus-visible ._lBFRE,._6OFKL:focus-visible ._lBFRE{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._comV-{position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(45deg,#d9dadb 25%,transparent 0),linear-gradient(-45deg,#d9dadb 25%,transparent 0),linear-gradient(45deg,transparent 75%,#d9dadb 0),linear-gradient(-45deg,transparent 75%,#d9dadb 0);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}._HgxUO{border-radius:2px;height:16px;width:16px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._HgxUO.focus-visible,._HgxUO:focus-visible{outline:none}._HgxUO.focus-visible,._HgxUO:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._gtHXv{display:flex}._gtHXv ._a-bnv{position:relative;flex-shrink:0;width:26px;height:26px}._gtHXv ._-ueYv{position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #c6c6c6}._gtHXv ._vLPn3{flex-basis:100%;min-width:0;border-top-left-radius:0;border-bottom-left-radius:0}";
|
|
4
|
+
var styles = {"colorPickerBtnColor":"_381fa","colorPickerBtnIcon":"_jfXIt","colorPicker":"_5g168","colorPickerSliderContainer":"_-kW8o","colorPickerHue":"_2fzbJ","colorPickerAlpha":"_ko35K","colorPickerSwatches":"_z-0HB","colorPickerSwatch":"_DhHVy","colorPickerHex":"_AcLTQ","saturation":"_ZQRAD","saturationCircle":"_CVb0p","saturationWhite":"_-QD-O","saturationBlack":"_WVleY","hue":"_r-ivF","hueSlider":"_GtItv","alpha":"_uw-9c","alphaSlider":"_lBFRE","alphaGradient":"_6OFKL","alphaCheckerboard":"_comV-","swatch":"_HgxUO","hex":"_gtHXv","hexSwatch":"_a-bnv","hexSwatchColor":"_-ueYv","hexInput":"_vLPn3"};
|
|
5
|
+
var stylesheet="._381fa{margin-left:-6px;height:16px;width:16px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._jfXIt{margin-right:-12px;margin-left:4px}._5g168{background-color:#fff;border-radius:4px;box-shadow:0 4px 24px -4px rgba(0,0,0,.5);width:156px}._-kW8o{margin:8px 8px 0;display:flex}._2fzbJ,._ko35K{margin-left:4px}._z-0HB{margin:8px 4px 0 8px;display:flex;flex-wrap:wrap}._DhHVy{margin:0 4px 4px 0}._DhHVy:hover{width:18px;height:18px;margin:-1px 3px 3px -1px}._AcLTQ{margin:4px 8px 8px}._ZQRAD{position:relative;width:96px;height:96px;outline:0}._ZQRAD.focus-visible ._CVb0p,._ZQRAD:focus-visible ._CVb0p{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._-QD-O{background:linear-gradient(90deg,#fff,transparent)}._-QD-O,._WVleY{position:absolute;top:0;right:0;bottom:0;left:0}._WVleY{background:linear-gradient(0deg,#000,transparent)}._CVb0p{position:absolute;border:2px solid #fff;border-radius:5px;height:8px;width:8px;margin:0 0 -4px -4px;box-shadow:0 0 1px 1px rgba(0,0,0,.4),inset 0 0 1px #000}._r-ivF{position:relative;background:linear-gradient(0deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);width:16px;height:96px;outline:0}._r-ivF.focus-visible ._GtItv,._r-ivF:focus-visible ._GtItv{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._GtItv{width:16px;height:4px;background:#fff;border-radius:50%;position:absolute;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._uw-9c{position:relative;width:16px;height:96px}._lBFRE{width:16px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._6OFKL,._lBFRE{position:absolute}._6OFKL{top:0;right:0;bottom:0;left:0;outline:0}._6OFKL.focus-visible ._lBFRE,._6OFKL:focus-visible ._lBFRE{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._comV-{position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(45deg,#d9dadb 25%,transparent 0),linear-gradient(-45deg,#d9dadb 25%,transparent 0),linear-gradient(45deg,transparent 75%,#d9dadb 0),linear-gradient(-45deg,transparent 75%,#d9dadb 0);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}._HgxUO{border-radius:2px;height:16px;width:16px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._HgxUO.focus-visible,._HgxUO:focus-visible{outline:none}._HgxUO.focus-visible,._HgxUO:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._gtHXv{display:flex}._gtHXv ._a-bnv{position:relative;flex-shrink:0;width:26px;height:26px}._gtHXv ._-ueYv{position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #c6c6c6}._gtHXv ._vLPn3{flex-basis:100%;min-width:0;border-top-left-radius:0;border-bottom-left-radius:0}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){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 = {"numberStepperContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._JIw65{display:inline-flex}._YVM-B{color:#32363a;background:#fafafa;outline:none;text-align:center;padding:0 12px;min-width:55px;width:100%;font-size:14px;border:1px solid #898989;border-radius:0;-moz-appearance:textfield}._YVM-B:hover:not(._X8Vr6){cursor:pointer;background:#f5f5f5}._YVM-B._eP56d{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._YVM-B._X8Vr6{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._YVM-B._X8Vr6>svg{opacity:.4}._YVM-B::-webkit-inner-spin-button,._YVM-B::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._YVM-B:focus{z-index:0;border:none;border-radius:4px}._YVM-B:focus:not(._eP56d){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._CsBX2,._YVM-B:focus:not(._X8Vr6){background:#fafafa}._CsBX2{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;fill:#515559;outline:none;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._CsBX2:hover:not(._X8Vr6){cursor:pointer;background:#f5f5f5}._CsBX2:active:not(._X8Vr6){background:#e5e5e5}._CsBX2._X8Vr6{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._CsBX2._X8Vr6>svg{opacity:.4}._BLKLs{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;background:#fafafa;fill:#515559;outline:none;border-radius:0 4px 4px 0;border:1px solid #898989;border-left-width:0}._BLKLs:hover:not(._X8Vr6){cursor:pointer;background:#f5f5f5}._BLKLs:active:not(._X8Vr6){background:#e5e5e5}._BLKLs._X8Vr6{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._BLKLs._X8Vr6>svg{opacity:.4}._GjN1D{position:absolute;top:0;left:0;width:0;height:0;margin:0;overflow:hidden}";
|
|
4
|
+
var styles = {"numberStepperContainer":"_JIw65","numberStepperInput":"_YVM-B","disabled":"_X8Vr6","invalid":"_eP56d","decrementBtn":"_CsBX2","incrementBtn":"_BLKLs","inputValueAlert":"_GjN1D"};
|
|
5
|
+
var stylesheet="._JIw65{display:inline-flex}._YVM-B{color:#32363a;background:#fafafa;outline:none;text-align:center;padding:0 12px;min-width:55px;width:100%;font-size:14px;border:1px solid #898989;border-radius:0;-moz-appearance:textfield}._YVM-B:hover:not(._X8Vr6){cursor:pointer;background:#f5f5f5}._YVM-B._eP56d{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._YVM-B._X8Vr6{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._YVM-B._X8Vr6>svg{opacity:.4}._YVM-B::-webkit-inner-spin-button,._YVM-B::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._YVM-B:focus{z-index:0;border:none;border-radius:4px}._YVM-B:focus:not(._eP56d){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._CsBX2,._YVM-B:focus:not(._X8Vr6){background:#fafafa}._CsBX2{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;fill:#515559;outline:none;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._CsBX2:hover:not(._X8Vr6){cursor:pointer;background:#f5f5f5}._CsBX2:active:not(._X8Vr6){background:#e5e5e5}._CsBX2._X8Vr6{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._CsBX2._X8Vr6>svg{opacity:.4}._BLKLs{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;background:#fafafa;fill:#515559;outline:none;border-radius:0 4px 4px 0;border:1px solid #898989;border-left-width:0}._BLKLs:hover:not(._X8Vr6){cursor:pointer;background:#f5f5f5}._BLKLs:active:not(._X8Vr6){background:#e5e5e5}._BLKLs._X8Vr6{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._BLKLs._X8Vr6>svg{opacity:.4}._GjN1D{position:absolute;top:0;left:0;width:0;height:0;margin:0;overflow:hidden}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){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 = {"tabs":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._cO6yu{display:block}._mMR9O{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._-1SPD{color:#6a6d70;cursor:pointer;height:52px;padding:16px 12px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border-bottom:1px solid transparent;border-radius:1px}._-1SPD:hover{color:#32363a}._-1SPD:focus{outline:none}._-1SPD._XlGqg{margin-bottom:-1px;border-bottom:2px solid #0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._jkuyw{padding-top:32px}._jkuyw._aY2BX{display:none}._-1SPD.focus-visible,._-1SPD:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"tabs":"_cO6yu","bar":"_mMR9O","tab":"_-1SPD","active":"_XlGqg","panel":"_jkuyw","inactive":"_aY2BX"};
|
|
5
|
+
var stylesheet="._cO6yu{display:block}._mMR9O{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._-1SPD{color:#6a6d70;cursor:pointer;height:52px;padding:16px 12px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border-bottom:1px solid transparent;border-radius:1px}._-1SPD:hover{color:#32363a}._-1SPD:focus{outline:none}._-1SPD._XlGqg{margin-bottom:-1px;border-bottom:2px solid #0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._jkuyw{padding-top:32px}._jkuyw._aY2BX{display:none}._-1SPD.focus-visible,._-1SPD:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){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 = {"toolbar":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._-zxXW,._TQf4w{display:flex}._-zxXW{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._R9qix{width:69px;min-width:auto;max-width:none}._gWJ9r{width:100%}._kEXkP{margin-bottom:12px;background-color:transparent!important}._kEXkP:hover{background-color:rgba(11,110,208,.08)!important}._kEXkP:hover>svg{fill:#085caf}._kEXkP:hover>span{color:#085caf}._kEXkP:active{background-color:rgba(11,110,208,.12)!important}._kEXkP:active>svg{fill:#0854a1}._kEXkP:active>span{color:#0854a1}._kEXkP._xHGX8{background-color:rgba(11,110,208,.08)!important}._kEXkP._xHGX8>svg{fill:#0b6ed0}._kEXkP._xHGX8>span{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._kEXkP._xHGX8:hover{background-color:rgba(11,110,208,.08)!important}._kEXkP._xHGX8:hover>svg{fill:#085caf}._kEXkP._xHGX8:hover>span{color:#085caf}._kEXkP._xHGX8:active{background-color:rgba(11,110,208,.12)!important}._kEXkP._xHGX8:active>svg{fill:#0854a1}._kEXkP._xHGX8:active>span{color:#0854a1}._RMq19{border-radius:6px}._RMq19>._rS-pW{display:block;fill:#515559}._32oWe{margin-top:auto;margin-bottom:0}._jt3eq{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._jt3eq:hover>._7xcJC{opacity:1}._knRMn{width:0;border-width:0;padding:0}._8R4jf{border-radius:4px;min-width:100%;min-height:100%;outline:none}._yFaeW{width:36px;height:36px;position:absolute;top:48px;right:-18px;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}._7xcJC{opacity:0}._7xcJC:hover,._DkaqY,._yFaeW._xVaZl._xVaZl{opacity:1}._yFaeW._uWTmX._uWTmX{opacity:0}._yFaeW>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._yFaeW>span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._yFaeW>span:hover>svg{fill:#fff}._yFaeW>span:active{background-color:#0854a1;border-color:#0854a1}._yFaeW>span:active>svg{fill:#fff}._yFaeW>span>svg{fill:#515559;border-radius:50%}._8R4jf._dEOM7{display:none!important}._rabUI{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._Khhuy{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._7oSE4{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._JMGoc{fill:#515559}._cKE9V{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}._7oSE4.focus-visible,._7oSE4:focus-visible,._8R4jf.focus-visible,._8R4jf:focus-visible,._rabUI.focus-visible,._rabUI:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._yFaeW.focus-visible,._yFaeW:focus-visible{border-color:#0a3f88}._yFaeW:active>span{background-color:#0854a1;border-color:#0854a1}._yFaeW:active>span>svg{fill:#fff}._7xcJC.focus-visible,._7xcJC:focus-visible{opacity:1}";
|
|
4
|
+
var styles = {"toolbar":"_TQf4w","toolbarNav":"_-zxXW","toolbarNavCollapsed":"_R9qix","toolbarTabs":"_gWJ9r","toolbarTab":"_kEXkP","selected":"_xHGX8","toolbarTabIconButton":"_RMq19","icon":"_rS-pW","tabsExpandCollapseButton":"_32oWe","toolbarPanels":"_jt3eq","toolbarPanelExpandCollapseButtonDefaultHidden":"_7xcJC","toolbarPanelsCollapsed":"_knRMn","toolbarPanel":"_8R4jf","toolbarPanelExpandCollapseButton":"_yFaeW","toolbarPanelExpandCollapseButtonDefaultShown":"_DkaqY","overrideShow":"_xVaZl","overrideHide":"_uWTmX","notSelected":"_dEOM7","buttonWithLabel":"_rabUI","buttonWithLabelLabel":"_Khhuy","iconButtonWithLabel":"_7oSE4","iconButtonWithLabelIcon":"_JMGoc","iconButtonWithLabelLabel":"_cKE9V"};
|
|
5
|
+
var stylesheet="._-zxXW,._TQf4w{display:flex}._-zxXW{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._R9qix{width:69px;min-width:auto;max-width:none}._gWJ9r{width:100%}._kEXkP{margin-bottom:12px;background-color:transparent!important}._kEXkP:hover{background-color:rgba(11,110,208,.08)!important}._kEXkP:hover>svg{fill:#085caf}._kEXkP:hover>span{color:#085caf}._kEXkP:active{background-color:rgba(11,110,208,.12)!important}._kEXkP:active>svg{fill:#0854a1}._kEXkP:active>span{color:#0854a1}._kEXkP._xHGX8{background-color:rgba(11,110,208,.08)!important}._kEXkP._xHGX8>svg{fill:#0b6ed0}._kEXkP._xHGX8>span{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._kEXkP._xHGX8:hover{background-color:rgba(11,110,208,.08)!important}._kEXkP._xHGX8:hover>svg{fill:#085caf}._kEXkP._xHGX8:hover>span{color:#085caf}._kEXkP._xHGX8:active{background-color:rgba(11,110,208,.12)!important}._kEXkP._xHGX8:active>svg{fill:#0854a1}._kEXkP._xHGX8:active>span{color:#0854a1}._RMq19{border-radius:6px}._RMq19>._rS-pW{display:block;fill:#515559}._32oWe{margin-top:auto;margin-bottom:0}._jt3eq{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._jt3eq:hover>._7xcJC{opacity:1}._knRMn{width:0;border-width:0;padding:0}._8R4jf{border-radius:4px;min-width:100%;min-height:100%;outline:none}._yFaeW{width:36px;height:36px;position:absolute;top:48px;right:-18px;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}._7xcJC{opacity:0}._7xcJC:hover,._DkaqY,._yFaeW._xVaZl._xVaZl{opacity:1}._yFaeW._uWTmX._uWTmX{opacity:0}._yFaeW>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._yFaeW>span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._yFaeW>span:hover>svg{fill:#fff}._yFaeW>span:active{background-color:#0854a1;border-color:#0854a1}._yFaeW>span:active>svg{fill:#fff}._yFaeW>span>svg{fill:#515559;border-radius:50%}._8R4jf._dEOM7{display:none!important}._rabUI{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._Khhuy{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._7oSE4{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._JMGoc{fill:#515559}._cKE9V{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}._7oSE4.focus-visible,._7oSE4:focus-visible,._8R4jf.focus-visible,._8R4jf:focus-visible,._rabUI.focus-visible,._rabUI:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._yFaeW.focus-visible,._yFaeW:focus-visible{border-color:#0a3f88}._yFaeW:active>span{background-color:#0854a1;border-color:#0854a1}._yFaeW:active>span>svg{fill:#fff}._7xcJC.focus-visible,._7xcJC:focus-visible{opacity:1}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){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 = {"overlay":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._7wWJq{background-color:#000;opacity:.5;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._G-tf6{visibility:hidden}._csp-N{position:fixed}";
|
|
4
|
+
var styles = {"overlay":"_7wWJq","hidden":"_G-tf6","anchoredToBody":"_csp-N"};
|
|
5
|
+
var stylesheet="._7wWJq{background-color:#000;opacity:.5;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._G-tf6{visibility:hidden}._csp-N{position:fixed}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){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 classes = {"ariaLiveElement":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._B4ZBj{position:absolute;top:-10000px;left:-10000px}";
|
|
4
|
+
var classes = {"ariaLiveElement":"_B4ZBj"};
|
|
5
|
+
var stylesheet="._B4ZBj{position:absolute;top:-10000px;left:-10000px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { classes as default, stylesheet };
|
package/dist/icons/Icon.js
CHANGED
|
@@ -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 = {"icon":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Uo6AT{flex-shrink:0}";
|
|
4
|
+
var styles = {"icon":"_Uo6AT"};
|
|
5
|
+
var stylesheet="._Uo6AT{flex-shrink:0}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
package/dist/icons/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var icons_index = require('../__shared/cjs/index-
|
|
5
|
+
var icons_index = require('../__shared/cjs/index-c13fc74c.js');
|
|
6
6
|
require('@babel/runtime-corejs3/helpers/extends');
|
|
7
7
|
require('react');
|
|
8
8
|
require('classnames');
|
package/dist/index.d.ts
CHANGED
|
@@ -168,7 +168,7 @@ export declare const Checkbox: React_2.ForwardRefExoticComponent<CheckboxProps &
|
|
|
168
168
|
|
|
169
169
|
export declare const CheckboxField: React_2.ForwardRefExoticComponent<CheckboxFieldProps & React_2.RefAttributes<HTMLLabelElement>>;
|
|
170
170
|
|
|
171
|
-
export declare interface CheckboxFieldProps extends Omit<React_2.AllHTMLAttributes<HTMLLabelElement>, 'label' | 'onChange'> {
|
|
171
|
+
export declare interface CheckboxFieldProps extends Omit<React_2.AllHTMLAttributes<HTMLLabelElement>, 'label' | 'onChange' | 'checked' | 'defaultChecked'> {
|
|
172
172
|
id?: CheckboxProps['id'];
|
|
173
173
|
label: React_2.ReactNode;
|
|
174
174
|
checked?: CheckboxProps['checked'];
|
|
@@ -181,11 +181,11 @@ export declare interface CheckboxFieldProps extends Omit<React_2.AllHTMLAttribut
|
|
|
181
181
|
'aria-describedby'?: CheckboxProps['aria-describedby'];
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
export declare interface CheckboxProps extends React_2.AllHTMLAttributes<HTMLSpanElement> {
|
|
184
|
+
export declare interface CheckboxProps extends Omit<React_2.AllHTMLAttributes<HTMLSpanElement>, 'checked' | 'defaultChecked'> {
|
|
185
185
|
id?: string;
|
|
186
186
|
className?: string;
|
|
187
|
-
checked?: boolean;
|
|
188
|
-
defaultChecked?: boolean;
|
|
187
|
+
checked?: boolean | 'mixed';
|
|
188
|
+
defaultChecked?: boolean | 'mixed';
|
|
189
189
|
disabled?: boolean;
|
|
190
190
|
onChange?: (event: React_2.ChangeEvent<HTMLInputElement>) => void;
|
|
191
191
|
value?: string;
|
package/dist/index.es.js
CHANGED
|
@@ -102,6 +102,6 @@ export { default as deprecated_ToolbarPanel } from './components/deprecated_Tool
|
|
|
102
102
|
|
|
103
103
|
/* eslint-disable camelcase */
|
|
104
104
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
105
|
-
const version = '2.
|
|
105
|
+
const version = '2.31.0';
|
|
106
106
|
|
|
107
107
|
export { version };
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./__shared/cjs/index-
|
|
5
|
+
var index = require('./__shared/cjs/index-434a3b72.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
|
-
require('./__shared/cjs/index-
|
|
8
|
+
require('./__shared/cjs/index-c13fc74c.js');
|
|
9
9
|
require('@babel/runtime-corejs3/helpers/extends');
|
|
10
10
|
require('react-popper');
|
|
11
11
|
require('@popperjs/core');
|
|
@@ -19,7 +19,7 @@ require('throttle-debounce');
|
|
|
19
19
|
|
|
20
20
|
/* eslint-disable camelcase */
|
|
21
21
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
22
|
-
const version = '2.
|
|
22
|
+
const version = '2.31.0';
|
|
23
23
|
|
|
24
24
|
exports.Accordion = index.Accordion;
|
|
25
25
|
exports.AccordionHeader = index.AccordionHeader;
|
|
@@ -37,7 +37,7 @@ import useLatest from '../../hooks/useLatest/useLatest.js';
|
|
|
37
37
|
import wrapAround from '../../utils/wrapAround/wrapAround.js';
|
|
38
38
|
|
|
39
39
|
const AdvancedTable = _ref => {
|
|
40
|
-
var
|
|
40
|
+
var _ref8;
|
|
41
41
|
let {
|
|
42
42
|
columnConfigs: externalColumnConfigs,
|
|
43
43
|
rows: rowsPropExternal,
|
|
@@ -318,27 +318,27 @@ const AdvancedTable = _ref => {
|
|
|
318
318
|
const ids = getAllLeafIds(row.rowPropReference);
|
|
319
319
|
const checkedIds = ids.filter(id => checkedRowIdsSet.has(id));
|
|
320
320
|
if (checkedIds.length === ids.length) {
|
|
321
|
-
return
|
|
321
|
+
return true;
|
|
322
322
|
}
|
|
323
323
|
if (checkedIds.length) {
|
|
324
324
|
return 'mixed';
|
|
325
325
|
}
|
|
326
|
-
return
|
|
326
|
+
return false;
|
|
327
327
|
};
|
|
328
328
|
const columnHeaderCheckboxState = useMemo(() => {
|
|
329
329
|
const visibleRows = paginatedRows !== null && paginatedRows !== void 0 ? paginatedRows : rows;
|
|
330
|
-
const checkedRows = visibleRows.filter(row => getCheckboxStateForRow(row) ===
|
|
330
|
+
const checkedRows = visibleRows.filter(row => getCheckboxStateForRow(row) === true);
|
|
331
331
|
if (checkedRows.length === visibleRows.length) {
|
|
332
|
-
return
|
|
332
|
+
return true;
|
|
333
333
|
}
|
|
334
334
|
if (checkedRows.length) {
|
|
335
335
|
return 'mixed';
|
|
336
336
|
}
|
|
337
|
-
return
|
|
337
|
+
return false;
|
|
338
338
|
}, [checkedRowIdsSet, paginatedRows, rows]);
|
|
339
339
|
const handleColumnHeaderCheckboxToggle = () => {
|
|
340
340
|
setLastToggledRowId('');
|
|
341
|
-
if (columnHeaderCheckboxState ===
|
|
341
|
+
if (columnHeaderCheckboxState === true) {
|
|
342
342
|
setCheckedRowIds([]);
|
|
343
343
|
} else {
|
|
344
344
|
const visibleLeafIds = Array.from((paginatedRows !== null && paginatedRows !== void 0 ? paginatedRows : rows).reduce((set, _ref5) => {
|
|
@@ -356,7 +356,7 @@ const AdvancedTable = _ref => {
|
|
|
356
356
|
return;
|
|
357
357
|
}
|
|
358
358
|
const endRow = rows[endIndex];
|
|
359
|
-
const isEndIndexChecked = getCheckboxStateForRow(endRow) ===
|
|
359
|
+
const isEndIndexChecked = getCheckboxStateForRow(endRow) === true;
|
|
360
360
|
setLastToggledRowId(endRow.id);
|
|
361
361
|
const newIds = rows.slice(Math.min(startIndex, endIndex), Math.max(startIndex, endIndex) + 1).reduce((set, _ref6) => {
|
|
362
362
|
let {
|
|
@@ -381,7 +381,7 @@ const AdvancedTable = _ref => {
|
|
|
381
381
|
rowPropReference
|
|
382
382
|
} = row;
|
|
383
383
|
setLastToggledRowId(rowId);
|
|
384
|
-
if (getCheckboxStateForRow(row) ===
|
|
384
|
+
if (getCheckboxStateForRow(row) === true) {
|
|
385
385
|
const idsToUncheck = new Set(getAllLeafIds(rowPropReference));
|
|
386
386
|
setCheckedRowIds(checkedRowIds.filter(id => !idsToUncheck.has(id)));
|
|
387
387
|
} else {
|
|
@@ -593,6 +593,17 @@ const AdvancedTable = _ref => {
|
|
|
593
593
|
ref: createRef(rowIndex, columnIndex)
|
|
594
594
|
};
|
|
595
595
|
};
|
|
596
|
+
|
|
597
|
+
// If all columns have an assigned width we don't want extra space on the side of small tables.
|
|
598
|
+
// This adds a class to table rows and the table header row to restrict their widths in such a case.
|
|
599
|
+
const restrictedWidth = columnConfigs.every(_ref7 => {
|
|
600
|
+
var _columnWidths$id2;
|
|
601
|
+
let {
|
|
602
|
+
id,
|
|
603
|
+
width
|
|
604
|
+
} = _ref7;
|
|
605
|
+
return ((_columnWidths$id2 = columnWidths[id]) !== null && _columnWidths$id2 !== void 0 ? _columnWidths$id2 : width) !== undefined;
|
|
606
|
+
});
|
|
596
607
|
return /*#__PURE__*/React__default.createElement(DndProvider, {
|
|
597
608
|
backend: HTML5Backend,
|
|
598
609
|
context: canUseDOM() ? window : undefined
|
|
@@ -635,6 +646,7 @@ const AdvancedTable = _ref => {
|
|
|
635
646
|
isFocused: headerRowIndex === focusedRowIndex && minColumnIndex === focusedColumnIndex,
|
|
636
647
|
onKeyDown: onKeyDown(headerRowIndex),
|
|
637
648
|
onFocus: onRowFocus(headerRowIndex, minColumnIndex),
|
|
649
|
+
restrictedWidth: restrictedWidth,
|
|
638
650
|
ref: createRef(headerRowIndex, -1)
|
|
639
651
|
}, hasCheckboxColumn || pinnedColumnConfigs.length ? /*#__PURE__*/React__default.createElement("div", {
|
|
640
652
|
role: "presentation",
|
|
@@ -654,7 +666,7 @@ const AdvancedTable = _ref => {
|
|
|
654
666
|
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
655
667
|
role: "rowgroup",
|
|
656
668
|
className: styles.advancedTableRowGroup
|
|
657
|
-
}, ((
|
|
669
|
+
}, ((_ref8 = paginatedRows !== null && paginatedRows !== void 0 ? paginatedRows : rows) !== null && _ref8 !== void 0 ? _ref8 : []).map((row, rowIndex) => {
|
|
658
670
|
const {
|
|
659
671
|
id: rowId,
|
|
660
672
|
data,
|
|
@@ -702,6 +714,8 @@ const AdvancedTable = _ref => {
|
|
|
702
714
|
|
|
703
715
|
"aria-setsize": hasExpandableRows ? depthSize : undefined,
|
|
704
716
|
"aria-posinset": hasExpandableRows ? depthIndex + 1 : undefined // aria-posinset is one-indexed
|
|
717
|
+
,
|
|
718
|
+
restrictedWidth: restrictedWidth
|
|
705
719
|
}), hasCheckboxColumn || pinnedColumnConfigs.length ? /*#__PURE__*/React__default.createElement("div", {
|
|
706
720
|
className: classNames(styles.pinnedContainer, styles.advancedTableRowChild),
|
|
707
721
|
ref: createPinnedContainerRef(paginatedRowIndex)
|
|
@@ -744,13 +758,13 @@ const AdvancedTable = _ref => {
|
|
|
744
758
|
};
|
|
745
759
|
|
|
746
760
|
// TODO: move hook to separate file
|
|
747
|
-
function useSortedRows(
|
|
761
|
+
function useSortedRows(_ref9) {
|
|
748
762
|
let {
|
|
749
763
|
columnConfigs,
|
|
750
764
|
onRowsChange,
|
|
751
765
|
selectedSortOption,
|
|
752
766
|
setCurrentPage
|
|
753
|
-
} =
|
|
767
|
+
} = _ref9;
|
|
754
768
|
const columnConfigsRef = useLatest(columnConfigs);
|
|
755
769
|
const onRowsChangeRef = useLatest(onRowsChange);
|
|
756
770
|
useDidUpdate(() => {
|
|
@@ -759,10 +773,10 @@ function useSortedRows(_ref8) {
|
|
|
759
773
|
columnId,
|
|
760
774
|
index
|
|
761
775
|
} = selectedSortOption;
|
|
762
|
-
const sort = (_columnConfigsRef$cur = columnConfigsRef.current.find(
|
|
776
|
+
const sort = (_columnConfigsRef$cur = columnConfigsRef.current.find(_ref10 => {
|
|
763
777
|
let {
|
|
764
778
|
id
|
|
765
|
-
} =
|
|
779
|
+
} = _ref10;
|
|
766
780
|
return id === columnId;
|
|
767
781
|
})) === null || _columnConfigsRef$cur === void 0 || (_columnConfigsRef$cur = _columnConfigsRef$cur.sortOptions) === null || _columnConfigsRef$cur === void 0 || (_columnConfigsRef$cur = _columnConfigsRef$cur[index]) === null || _columnConfigsRef$cur === void 0 ? void 0 : _columnConfigsRef$cur.sort;
|
|
768
782
|
if (typeof sort === 'function' && onRowsChangeRef.current) {
|
|
@@ -773,7 +787,7 @@ function useSortedRows(_ref8) {
|
|
|
773
787
|
}
|
|
774
788
|
|
|
775
789
|
// TODO: move hook to separate file
|
|
776
|
-
function useFocusState(
|
|
790
|
+
function useFocusState(_ref11) {
|
|
777
791
|
let {
|
|
778
792
|
headerRowIndex,
|
|
779
793
|
maxRowIndex,
|
|
@@ -783,7 +797,7 @@ function useFocusState(_ref10) {
|
|
|
783
797
|
pinnedUnpinnedColumnOrder,
|
|
784
798
|
tableRef,
|
|
785
799
|
currentPage
|
|
786
|
-
} =
|
|
800
|
+
} = _ref11;
|
|
787
801
|
const cellRefs = useRef({});
|
|
788
802
|
const pinnedContainersRef = useRef({});
|
|
789
803
|
const [focusedRowIndex, setFocusedRowIndex] = useState(headerRowIndex);
|