@qualtrics/ui-react 2.5.0 → 2.6.1

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.
Files changed (86) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/__shared/cjs/{index-0e2c0191.js → index-c8142113.js} +192 -57
  3. package/dist/__shared/cjs/{index-6a9c8483.js → index-d447e6d9.js} +3 -3
  4. package/dist/components/Accordion/Accordion2.js +3 -3
  5. package/dist/components/BreakpointSwitch/Breakpoint.js +18 -0
  6. package/dist/components/BreakpointSwitch/BreakpointContext.js +9 -0
  7. package/dist/components/BreakpointSwitch/BreakpointSwitch.js +37 -0
  8. package/dist/components/BreakpointSwitch/index.js +2 -0
  9. package/dist/components/Button/Button2.js +3 -3
  10. package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
  11. package/dist/components/Checkbox/Checkbox2.js +3 -3
  12. package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
  13. package/dist/components/ColorPicker/ColorPicker2.js +3 -3
  14. package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +6 -6
  15. package/dist/components/Combobox/Combobox2.js +3 -3
  16. package/dist/components/ConfigPane/ConfigPane2.js +3 -3
  17. package/dist/components/Divider/Divider2.js +3 -3
  18. package/dist/components/Dropdown/Dropdown2.js +3 -3
  19. package/dist/components/FilePicker/FilePicker2.js +3 -3
  20. package/dist/components/FormField/Caption.js +3 -3
  21. package/dist/components/FormField/FormField2.js +3 -3
  22. package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
  23. package/dist/components/IconButton/IconButton2.js +3 -3
  24. package/dist/components/InlineInput/InlineInput.js +8 -3
  25. package/dist/components/InlineInput/InlineInput2.js +3 -3
  26. package/dist/components/Input/Input2.js +3 -3
  27. package/dist/components/InputGroup/InputGroup2.js +3 -3
  28. package/dist/components/Label/Label2.js +3 -3
  29. package/dist/components/Link/Link2.js +3 -3
  30. package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
  31. package/dist/components/LogicEditor/LogicEditor2.js +3 -3
  32. package/dist/components/Modal/Modal2.js +3 -3
  33. package/dist/components/NewMenu/NewMenu.js +3 -3
  34. package/dist/components/NumberStepper/NumberStepper2.js +3 -3
  35. package/dist/components/NumberStepper/NumberStepperInput.js +1 -1
  36. package/dist/components/PageLayout/PageLayout.js +3 -3
  37. package/dist/components/Pagination/Pagination2.js +3 -3
  38. package/dist/components/Popover/Popover2.js +3 -3
  39. package/dist/components/QuickSearch/QuickSearch2.js +3 -3
  40. package/dist/components/Radio/Radio2.js +3 -3
  41. package/dist/components/SearchInput/SearchInput2.js +3 -3
  42. package/dist/components/SidebarNav/SidebarNav2.js +3 -3
  43. package/dist/components/Slider/Slider2.js +3 -3
  44. package/dist/components/Switch/Switch2.js +3 -3
  45. package/dist/components/Table/Table2.js +3 -3
  46. package/dist/components/Tabs/Tabs2.js +3 -3
  47. package/dist/components/Tooltip/Tooltip2.js +3 -3
  48. package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
  49. package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
  50. package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +1 -1
  51. package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
  52. package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
  53. package/dist/components/index.js +1 -0
  54. package/dist/hooks/index.js +2 -0
  55. package/dist/hooks/useBreakpoints/index.js +1 -0
  56. package/dist/hooks/useBreakpoints/useBreakpoints.js +47 -0
  57. package/dist/hooks/useResponsiveValue/index.js +1 -0
  58. package/dist/hooks/useResponsiveValue/useResponsiveValue.js +21 -0
  59. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +8 -3
  60. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
  61. package/dist/icons/Icon.js +3 -3
  62. package/dist/icons/index.js +1 -1
  63. package/dist/index.d.ts +27 -0
  64. package/dist/index.es.js +7 -1
  65. package/dist/index.js +158 -98
  66. package/dist/next/AdvancedTable/AdvancedTable.js +0 -1
  67. package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
  68. package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +2 -1
  69. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
  70. package/dist/next/Combobox/Combobox2.js +3 -3
  71. package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
  72. package/dist/next/Input/Input2.js +3 -3
  73. package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
  74. package/dist/next/SplitButton/SplitButton.js +1 -3
  75. package/dist/next/SplitButton/SplitButton2.js +3 -3
  76. package/dist/next/index.es.js +1 -0
  77. package/dist/next/index.js +24 -25
  78. package/dist/utils/Flyout/Flyout2.js +3 -3
  79. package/dist/utils/Translation/useTranslation.js +6 -4
  80. package/dist/utils/constants.js +14 -2
  81. package/dist/utils/index.js +1 -1
  82. package/dist/utils/mediaQueryManager/index.js +1 -0
  83. package/dist/utils/mediaQueryManager/mediaQueryManager.js +59 -0
  84. package/icons/package.json +1 -0
  85. package/next/package.json +1 -0
  86. package/package.json +3 -1
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._3MBfT{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}._3MBfT._2_hf1{color:#32363a;background-color:#fff}._5sECz{opacity:1;pointer-events:all}._3YCyZ,._3YCyZ>div{position:absolute;width:8px;height:8px;background:inherit}._3YCyZ{visibility:hidden;z-index:2000}._3YCyZ>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._3YCyZ{bottom:-4px}[data-popper-placement^=top]>._3YCyZ>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._3YCyZ{left:-5px}[data-popper-placement^=right]>._3YCyZ>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._3YCyZ{top:-5px}[data-popper-placement^=bottom]>._3YCyZ>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._3YCyZ{right:-4px}[data-popper-placement^=left]>._3YCyZ>div{border-bottom-color:transparent;border-left-color:transparent}._1_8JV{position:absolute}[data-popper-placement^=top]>._1_8JV{bottom:-13px;left:0;width:100%;height:17px}[data-popper-placement^=right]>._1_8JV{top:0;left:-13px;width:17px;height:100%}[data-popper-placement^=bottom]>._1_8JV{top:-13px;left:0;width:100%;height:17px}[data-popper-placement^=left]>._1_8JV{top:0;right:-13px;width:17px;height:100%}";
4
- var styles = {"tooltip":"_3MBfT","lightTheme":"_2_hf1","visible":"_5sECz","arrow":"_3YCyZ","offsetBackplate":"_1_8JV"};
5
- var stylesheet="._3MBfT{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}._3MBfT._2_hf1{color:#32363a;background-color:#fff}._5sECz{opacity:1;pointer-events:all}._3YCyZ,._3YCyZ>div{position:absolute;width:8px;height:8px;background:inherit}._3YCyZ{visibility:hidden;z-index:2000}._3YCyZ>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._3YCyZ{bottom:-4px}[data-popper-placement^=top]>._3YCyZ>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._3YCyZ{left:-5px}[data-popper-placement^=right]>._3YCyZ>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._3YCyZ{top:-5px}[data-popper-placement^=bottom]>._3YCyZ>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._3YCyZ{right:-4px}[data-popper-placement^=left]>._3YCyZ>div{border-bottom-color:transparent;border-left-color:transparent}._1_8JV{position:absolute}[data-popper-placement^=top]>._1_8JV{bottom:-13px;left:0;width:100%;height:17px}[data-popper-placement^=right]>._1_8JV{top:0;left:-13px;width:17px;height:100%}[data-popper-placement^=bottom]>._1_8JV{top:-13px;left:0;width:100%;height:17px}[data-popper-placement^=left]>._1_8JV{top:0;right:-13px;width:17px;height:100%}";
3
+ var css_248z = "._NtokO{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}._NtokO._gJjw4{color:#32363a;background-color:#fff}._3u4vc{opacity:1;pointer-events:all}._b6bCx,._b6bCx>div{position:absolute;width:8px;height:8px;background:inherit}._b6bCx{visibility:hidden;z-index:2000}._b6bCx>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._b6bCx{bottom:-4px}[data-popper-placement^=top]>._b6bCx>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._b6bCx{left:-5px}[data-popper-placement^=right]>._b6bCx>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._b6bCx{top:-5px}[data-popper-placement^=bottom]>._b6bCx>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._b6bCx{right:-4px}[data-popper-placement^=left]>._b6bCx>div{border-bottom-color:transparent;border-left-color:transparent}._phDYc{position:absolute}[data-popper-placement^=top]>._phDYc{bottom:-13px;left:0;width:100%;height:17px}[data-popper-placement^=right]>._phDYc{top:0;left:-13px;width:17px;height:100%}[data-popper-placement^=bottom]>._phDYc{top:-13px;left:0;width:100%;height:17px}[data-popper-placement^=left]>._phDYc{top:0;right:-13px;width:17px;height:100%}";
4
+ var styles = {"tooltip":"_NtokO","lightTheme":"_gJjw4","visible":"_3u4vc","arrow":"_b6bCx","offsetBackplate":"_phDYc"};
5
+ var stylesheet="._NtokO{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}._NtokO._gJjw4{color:#32363a;background-color:#fff}._3u4vc{opacity:1;pointer-events:all}._b6bCx,._b6bCx>div{position:absolute;width:8px;height:8px;background:inherit}._b6bCx{visibility:hidden;z-index:2000}._b6bCx>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._b6bCx{bottom:-4px}[data-popper-placement^=top]>._b6bCx>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._b6bCx{left:-5px}[data-popper-placement^=right]>._b6bCx>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._b6bCx{top:-5px}[data-popper-placement^=bottom]>._b6bCx>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._b6bCx{right:-4px}[data-popper-placement^=left]>._b6bCx>div{border-bottom-color:transparent;border-left-color:transparent}._phDYc{position:absolute}[data-popper-placement^=top]>._phDYc{bottom:-13px;left:0;width:100%;height:17px}[data-popper-placement^=right]>._phDYc{top:0;left:-13px;width:17px;height:100%}[data-popper-placement^=bottom]>._phDYc{top:-13px;left:0;width:100%;height:17px}[data-popper-placement^=left]>._phDYc{top:0;right:-13px;width:17px;height:100%}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._2DYay{margin-left:-6px;height:16px;width:16px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._2pQCY{margin-right:-12px;margin-left:4px}._1Qmrb{background-color:#fff;border-radius:4px;box-shadow:0 4px 24px -4px rgba(0,0,0,.5);width:156px}._1uXHd{margin:8px 8px 0;display:flex}._2KTyT,._2MsVH{margin-left:4px}._1vnJD{margin:8px 4px 0 8px;display:flex;flex-wrap:wrap}._2cqVB{margin:0 4px 4px 0}._2cqVB:hover{width:18px;height:18px;margin:-1px 3px 3px -1px}._Vaqwc{margin:4px 8px 8px}._2mwTf{position:relative;width:96px;height:96px;outline:0}body.keyboard-user ._2mwTf:active:focus ._2_NZ3,body.keyboard-user ._2mwTf:focus ._2_NZ3{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._1QVjn{background:linear-gradient(90deg,#fff,transparent)}._1QVjn,._2kw-I{position:absolute;top:0;right:0;bottom:0;left:0}._2kw-I{background:linear-gradient(0deg,#000,transparent)}._2_NZ3{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}._w_4tE{position:relative;background:linear-gradient(0deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);width:16px;height:96px;outline:0}body.keyboard-user ._w_4tE:active:focus ._1JRcB,body.keyboard-user ._w_4tE:focus ._1JRcB{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._1JRcB{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)}._2-Gix{position:relative;width:16px;height:96px}._3cKbG{width:16px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._2eXmn,._3cKbG{position:absolute}._2eXmn{top:0;right:0;bottom:0;left:0;outline:0}body.keyboard-user ._2eXmn:active:focus ._3cKbG,body.keyboard-user ._2eXmn:focus ._3cKbG{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._1oGRQ{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}._2GcEn{border-radius:2px;height:16px;width:16px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._2GcEn:active:focus,._2GcEn:focus{outline:none}body.keyboard-user ._2GcEn:active:focus,body.keyboard-user ._2GcEn:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._1tOYi{display:flex}._1tOYi ._1-f1x{position:relative;flex-shrink:0;width:26px;height:26px}._1tOYi ._1EPsW{position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #c6c6c6}._1tOYi ._3BkE3{flex-basis:100%;min-width:0;border-top-left-radius:0;border-bottom-left-radius:0}";
4
- var styles = {"colorPickerBtnColor":"_2DYay","colorPickerBtnIcon":"_2pQCY","colorPicker":"_1Qmrb","colorPickerSliderContainer":"_1uXHd","colorPickerHue":"_2MsVH","colorPickerAlpha":"_2KTyT","colorPickerSwatches":"_1vnJD","colorPickerSwatch":"_2cqVB","colorPickerHex":"_Vaqwc","saturation":"_2mwTf","saturationCircle":"_2_NZ3","saturationWhite":"_1QVjn","saturationBlack":"_2kw-I","hue":"_w_4tE","hueSlider":"_1JRcB","alpha":"_2-Gix","alphaSlider":"_3cKbG","alphaGradient":"_2eXmn","alphaCheckerboard":"_1oGRQ","swatch":"_2GcEn","hex":"_1tOYi","hexSwatch":"_1-f1x","hexSwatchColor":"_1EPsW","hexInput":"_3BkE3"};
5
- var stylesheet="._2DYay{margin-left:-6px;height:16px;width:16px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._2pQCY{margin-right:-12px;margin-left:4px}._1Qmrb{background-color:#fff;border-radius:4px;box-shadow:0 4px 24px -4px rgba(0,0,0,.5);width:156px}._1uXHd{margin:8px 8px 0;display:flex}._2KTyT,._2MsVH{margin-left:4px}._1vnJD{margin:8px 4px 0 8px;display:flex;flex-wrap:wrap}._2cqVB{margin:0 4px 4px 0}._2cqVB:hover{width:18px;height:18px;margin:-1px 3px 3px -1px}._Vaqwc{margin:4px 8px 8px}._2mwTf{position:relative;width:96px;height:96px;outline:0}body.keyboard-user ._2mwTf:active:focus ._2_NZ3,body.keyboard-user ._2mwTf:focus ._2_NZ3{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._1QVjn{background:linear-gradient(90deg,#fff,transparent)}._1QVjn,._2kw-I{position:absolute;top:0;right:0;bottom:0;left:0}._2kw-I{background:linear-gradient(0deg,#000,transparent)}._2_NZ3{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}._w_4tE{position:relative;background:linear-gradient(0deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);width:16px;height:96px;outline:0}body.keyboard-user ._w_4tE:active:focus ._1JRcB,body.keyboard-user ._w_4tE:focus ._1JRcB{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._1JRcB{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)}._2-Gix{position:relative;width:16px;height:96px}._3cKbG{width:16px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._2eXmn,._3cKbG{position:absolute}._2eXmn{top:0;right:0;bottom:0;left:0;outline:0}body.keyboard-user ._2eXmn:active:focus ._3cKbG,body.keyboard-user ._2eXmn:focus ._3cKbG{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._1oGRQ{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}._2GcEn{border-radius:2px;height:16px;width:16px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._2GcEn:active:focus,._2GcEn:focus{outline:none}body.keyboard-user ._2GcEn:active:focus,body.keyboard-user ._2GcEn:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._1tOYi{display:flex}._1tOYi ._1-f1x{position:relative;flex-shrink:0;width:26px;height:26px}._1tOYi ._1EPsW{position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #c6c6c6}._1tOYi ._3BkE3{flex-basis:100%;min-width:0;border-top-left-radius:0;border-bottom-left-radius:0}";
3
+ var css_248z = "._3nV7X{margin-left:-6px;height:16px;width:16px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._2FL2B{margin-right:-12px;margin-left:4px}._2MaSu{background-color:#fff;border-radius:4px;box-shadow:0 4px 24px -4px rgba(0,0,0,.5);width:156px}._3Xe0F{margin:8px 8px 0;display:flex}._316iZ,._P9U_Q{margin-left:4px}._3No58{margin:8px 4px 0 8px;display:flex;flex-wrap:wrap}._3xn_U{margin:0 4px 4px 0}._3xn_U:hover{width:18px;height:18px;margin:-1px 3px 3px -1px}._gLSwx{margin:4px 8px 8px}._3ws6l{position:relative;width:96px;height:96px;outline:0}body.keyboard-user ._3ws6l:active:focus ._3K5PY,body.keyboard-user ._3ws6l:focus ._3K5PY{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2R-77{background:linear-gradient(90deg,#fff,transparent)}._2CSCs,._2R-77{position:absolute;top:0;right:0;bottom:0;left:0}._2CSCs{background:linear-gradient(0deg,#000,transparent)}._3K5PY{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}._3KR5a{position:relative;background:linear-gradient(0deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);width:16px;height:96px;outline:0}body.keyboard-user ._3KR5a:active:focus ._4zcRf,body.keyboard-user ._3KR5a:focus ._4zcRf{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._4zcRf{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)}._Wcp9u{position:relative;width:16px;height:96px}._1WB23{width:16px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._1WB23,._3ma1x{position:absolute}._3ma1x{top:0;right:0;bottom:0;left:0;outline:0}body.keyboard-user ._3ma1x:active:focus ._1WB23,body.keyboard-user ._3ma1x:focus ._1WB23{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2deDM{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}._3P4Zj{border-radius:2px;height:16px;width:16px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._3P4Zj:active:focus,._3P4Zj:focus{outline:none}body.keyboard-user ._3P4Zj:active:focus,body.keyboard-user ._3P4Zj:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._1Lwii{display:flex}._1Lwii ._3j1mt{position:relative;flex-shrink:0;width:26px;height:26px}._1Lwii ._h6csj{position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #c6c6c6}._1Lwii ._3PwzA{flex-basis:100%;min-width:0;border-top-left-radius:0;border-bottom-left-radius:0}";
4
+ var styles = {"colorPickerBtnColor":"_3nV7X","colorPickerBtnIcon":"_2FL2B","colorPicker":"_2MaSu","colorPickerSliderContainer":"_3Xe0F","colorPickerHue":"_P9U_Q","colorPickerAlpha":"_316iZ","colorPickerSwatches":"_3No58","colorPickerSwatch":"_3xn_U","colorPickerHex":"_gLSwx","saturation":"_3ws6l","saturationCircle":"_3K5PY","saturationWhite":"_2R-77","saturationBlack":"_2CSCs","hue":"_3KR5a","hueSlider":"_4zcRf","alpha":"_Wcp9u","alphaSlider":"_1WB23","alphaGradient":"_3ma1x","alphaCheckerboard":"_2deDM","swatch":"_3P4Zj","hex":"_1Lwii","hexSwatch":"_3j1mt","hexSwatchColor":"_h6csj","hexInput":"_3PwzA"};
5
+ var stylesheet="._3nV7X{margin-left:-6px;height:16px;width:16px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._2FL2B{margin-right:-12px;margin-left:4px}._2MaSu{background-color:#fff;border-radius:4px;box-shadow:0 4px 24px -4px rgba(0,0,0,.5);width:156px}._3Xe0F{margin:8px 8px 0;display:flex}._316iZ,._P9U_Q{margin-left:4px}._3No58{margin:8px 4px 0 8px;display:flex;flex-wrap:wrap}._3xn_U{margin:0 4px 4px 0}._3xn_U:hover{width:18px;height:18px;margin:-1px 3px 3px -1px}._gLSwx{margin:4px 8px 8px}._3ws6l{position:relative;width:96px;height:96px;outline:0}body.keyboard-user ._3ws6l:active:focus ._3K5PY,body.keyboard-user ._3ws6l:focus ._3K5PY{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2R-77{background:linear-gradient(90deg,#fff,transparent)}._2CSCs,._2R-77{position:absolute;top:0;right:0;bottom:0;left:0}._2CSCs{background:linear-gradient(0deg,#000,transparent)}._3K5PY{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}._3KR5a{position:relative;background:linear-gradient(0deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);width:16px;height:96px;outline:0}body.keyboard-user ._3KR5a:active:focus ._4zcRf,body.keyboard-user ._3KR5a:focus ._4zcRf{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._4zcRf{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)}._Wcp9u{position:relative;width:16px;height:96px}._1WB23{width:16px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._1WB23,._3ma1x{position:absolute}._3ma1x{top:0;right:0;bottom:0;left:0;outline:0}body.keyboard-user ._3ma1x:active:focus ._1WB23,body.keyboard-user ._3ma1x:focus ._1WB23{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2deDM{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}._3P4Zj{border-radius:2px;height:16px;width:16px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._3P4Zj:active:focus,._3P4Zj:focus{outline:none}body.keyboard-user ._3P4Zj:active:focus,body.keyboard-user ._3P4Zj:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._1Lwii{display:flex}._1Lwii ._3j1mt{position:relative;flex-shrink:0;width:26px;height:26px}._1Lwii ._h6csj{position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #c6c6c6}._1Lwii ._3PwzA{flex-basis:100%;min-width:0;border-top-left-radius:0;border-bottom-left-radius:0}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._1jTNR{display:inline-flex}._kRJsI{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}._kRJsI:hover:not(._dyQ72){cursor:pointer;background:#f5f5f5}._kRJsI._3om4N{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._kRJsI._dyQ72{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._kRJsI._dyQ72>svg{opacity:.4}._kRJsI::-webkit-inner-spin-button,._kRJsI::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._kRJsI:focus{z-index:0;border:none;border-radius:4px}._kRJsI:focus:not(._3om4N){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._1WSDV,._kRJsI:focus:not(._dyQ72){background:#fafafa}._1WSDV{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}._1WSDV:hover:not(._dyQ72){cursor:pointer;background:#f5f5f5}._1WSDV:active:not(._dyQ72){background:#e5e5e5}._1WSDV._dyQ72{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._1WSDV._dyQ72>svg{opacity:.4}._2MSa6{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}._2MSa6:hover:not(._dyQ72){cursor:pointer;background:#f5f5f5}._2MSa6:active:not(._dyQ72){background:#e5e5e5}._2MSa6._dyQ72{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._2MSa6._dyQ72>svg{opacity:.4}._OhvEN{position:absolute;top:0;left:0;width:0;height:0;margin:0;overflow:hidden}";
4
- var styles = {"numberStepperContainer":"_1jTNR","numberStepperInput":"_kRJsI","disabled":"_dyQ72","invalid":"_3om4N","decrementBtn":"_1WSDV","incrementBtn":"_2MSa6","inputValueAlert":"_OhvEN"};
5
- var stylesheet="._1jTNR{display:inline-flex}._kRJsI{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}._kRJsI:hover:not(._dyQ72){cursor:pointer;background:#f5f5f5}._kRJsI._3om4N{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._kRJsI._dyQ72{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._kRJsI._dyQ72>svg{opacity:.4}._kRJsI::-webkit-inner-spin-button,._kRJsI::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._kRJsI:focus{z-index:0;border:none;border-radius:4px}._kRJsI:focus:not(._3om4N){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._1WSDV,._kRJsI:focus:not(._dyQ72){background:#fafafa}._1WSDV{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}._1WSDV:hover:not(._dyQ72){cursor:pointer;background:#f5f5f5}._1WSDV:active:not(._dyQ72){background:#e5e5e5}._1WSDV._dyQ72{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._1WSDV._dyQ72>svg{opacity:.4}._2MSa6{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}._2MSa6:hover:not(._dyQ72){cursor:pointer;background:#f5f5f5}._2MSa6:active:not(._dyQ72){background:#e5e5e5}._2MSa6._dyQ72{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._2MSa6._dyQ72>svg{opacity:.4}._OhvEN{position:absolute;top:0;left:0;width:0;height:0;margin:0;overflow:hidden}";
3
+ var css_248z = "._3aI1y{display:inline-flex}._2N7V4{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}._2N7V4:hover:not(._3r7NM){cursor:pointer;background:#f5f5f5}._2N7V4._2b0Jt{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._2N7V4._3r7NM{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._2N7V4._3r7NM>svg{opacity:.4}._2N7V4::-webkit-inner-spin-button,._2N7V4::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._2N7V4:focus{z-index:0;border:none;border-radius:4px}._2N7V4:focus:not(._2b0Jt){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2N7V4:focus:not(._3r7NM),._3_a0-{background:#fafafa}._3_a0-{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}._3_a0-:hover:not(._3r7NM){cursor:pointer;background:#f5f5f5}._3_a0-:active:not(._3r7NM){background:#e5e5e5}._3_a0-._3r7NM{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._3_a0-._3r7NM>svg{opacity:.4}._3hIGD{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}._3hIGD:hover:not(._3r7NM){cursor:pointer;background:#f5f5f5}._3hIGD:active:not(._3r7NM){background:#e5e5e5}._3hIGD._3r7NM{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._3hIGD._3r7NM>svg{opacity:.4}._3Iwp7{position:absolute;top:0;left:0;width:0;height:0;margin:0;overflow:hidden}";
4
+ var styles = {"numberStepperContainer":"_3aI1y","numberStepperInput":"_2N7V4","disabled":"_3r7NM","invalid":"_2b0Jt","decrementBtn":"_3_a0-","incrementBtn":"_3hIGD","inputValueAlert":"_3Iwp7"};
5
+ var stylesheet="._3aI1y{display:inline-flex}._2N7V4{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}._2N7V4:hover:not(._3r7NM){cursor:pointer;background:#f5f5f5}._2N7V4._2b0Jt{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._2N7V4._3r7NM{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._2N7V4._3r7NM>svg{opacity:.4}._2N7V4::-webkit-inner-spin-button,._2N7V4::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._2N7V4:focus{z-index:0;border:none;border-radius:4px}._2N7V4:focus:not(._2b0Jt){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2N7V4:focus:not(._3r7NM),._3_a0-{background:#fafafa}._3_a0-{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}._3_a0-:hover:not(._3r7NM){cursor:pointer;background:#f5f5f5}._3_a0-:active:not(._3r7NM){background:#e5e5e5}._3_a0-._3r7NM{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._3_a0-._3r7NM>svg{opacity:.4}._3hIGD{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}._3hIGD:hover:not(._3r7NM){cursor:pointer;background:#f5f5f5}._3hIGD:active:not(._3r7NM){background:#e5e5e5}._3hIGD._3r7NM{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._3hIGD._3r7NM>svg{opacity:.4}._3Iwp7{position:absolute;top:0;left:0;width:0;height:0;margin:0;overflow:hidden}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -138,7 +138,7 @@ const NumberStepperInput = /*#__PURE__*/React__default.forwardRef((_ref, ref) =>
138
138
  "aria-describedby": internalAriaDescribedby,
139
139
  "aria-invalid": isInputValueInvalid,
140
140
  "aria-disabled": isExternallyDisabled,
141
- onChange: isExternallyDisabled ? undefined : handleInputChange,
141
+ onChange: isExternallyDisabled ? () => {} : handleInputChange,
142
142
  onKeyDown: handleKeyDown,
143
143
  onFocus: handleFocus,
144
144
  onBlur: handleBlur
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._13E7w{display:block}._3b9pD{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._2GQyz{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}._2GQyz:hover{color:#32363a}._2GQyz:focus{outline:none}._2GQyz._2Ib2f{margin-bottom:-1px;border-bottom:2px solid #0b6ed0;color:#32363a}._z0Ew6{padding-top:32px}._z0Ew6._dz1NC{display:none}body.keyboard-user ._2GQyz:active:focus,body.keyboard-user ._2GQyz:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
- var styles = {"tabs":"_13E7w","bar":"_3b9pD","tab":"_2GQyz","active":"_2Ib2f","panel":"_z0Ew6","inactive":"_dz1NC"};
5
- var stylesheet="._13E7w{display:block}._3b9pD{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._2GQyz{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}._2GQyz:hover{color:#32363a}._2GQyz:focus{outline:none}._2GQyz._2Ib2f{margin-bottom:-1px;border-bottom:2px solid #0b6ed0;color:#32363a}._z0Ew6{padding-top:32px}._z0Ew6._dz1NC{display:none}body.keyboard-user ._2GQyz:active:focus,body.keyboard-user ._2GQyz:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
3
+ var css_248z = "._2JZZV{display:block}._2Fv8C{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._3qCBy{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}._3qCBy:hover{color:#32363a}._3qCBy:focus{outline:none}._3qCBy._1UXpU{margin-bottom:-1px;border-bottom:2px solid #0b6ed0;color:#32363a}._1j-cA{padding-top:32px}._1j-cA._oVOII{display:none}body.keyboard-user ._3qCBy:active:focus,body.keyboard-user ._3qCBy:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
+ var styles = {"tabs":"_2JZZV","bar":"_2Fv8C","tab":"_3qCBy","active":"_1UXpU","panel":"_1j-cA","inactive":"_oVOII"};
5
+ var stylesheet="._2JZZV{display:block}._2Fv8C{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._3qCBy{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}._3qCBy:hover{color:#32363a}._3qCBy:focus{outline:none}._3qCBy._1UXpU{margin-bottom:-1px;border-bottom:2px solid #0b6ed0;color:#32363a}._1j-cA{padding-top:32px}._1j-cA._oVOII{display:none}body.keyboard-user ._3qCBy:active:focus,body.keyboard-user ._3qCBy:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._1AoO6,._2fkAG{display:flex}._1AoO6{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._35N8_{width:69px;min-width:auto;max-width:none}._1LA_O{width:100%}._1BO6P{margin-bottom:12px;background-color:transparent!important}._1BO6P:hover{background-color:rgba(11,110,208,.08)!important}._1BO6P:hover>svg{fill:#085caf}._1BO6P:hover>span{color:#085caf}._1BO6P:active{background-color:rgba(11,110,208,.12)!important}._1BO6P:active>svg{fill:#0854a1}._1BO6P:active>span{color:#0854a1}._1BO6P._qyCLk{background-color:rgba(11,110,208,.08)!important}._1BO6P._qyCLk>svg{fill:#0b6ed0}._1BO6P._qyCLk>span{color:#0b6ed0}._1BO6P._qyCLk:hover{background-color:rgba(11,110,208,.08)!important}._1BO6P._qyCLk:hover>svg{fill:#085caf}._1BO6P._qyCLk:hover>span{color:#085caf}._1BO6P._qyCLk:active{background-color:rgba(11,110,208,.12)!important}._1BO6P._qyCLk:active>svg{fill:#0854a1}._1BO6P._qyCLk:active>span{color:#0854a1}._2BPGp{border-radius:6px}._2BPGp>._1vDxK{display:block;fill:#515559}._3ibV9{margin-top:auto;margin-bottom:0}._3jtd6{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._3jtd6:hover>._3XzT5{opacity:1}._3F7Cn{width:0;border-width:0;padding:0}._3iVyo{border-radius:4px;min-width:100%;min-height:100%;outline:none}._1fGR1{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}._3XzT5{opacity:0}._1fGR1._10AUu._10AUu,._3e4QN,._3XzT5:hover{opacity:1}._1fGR1._1N7M2._1N7M2{opacity:0}._1fGR1>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._1fGR1>span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._1fGR1>span:hover>svg{fill:#fff}._1fGR1>span:active{background-color:#0854a1;border-color:#0854a1}._1fGR1>span:active>svg{fill:#fff}._1fGR1>span>svg{fill:#515559;border-radius:50%}._3iVyo._1Omoi{display:none!important}._3cPlI{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._1Txlo{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._coWoS{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._2iP2J{fill:#515559}._Bc_-0{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}body.keyboard-user ._3cPlI:active:focus,body.keyboard-user ._3cPlI:focus,body.keyboard-user ._3iVyo:active:focus,body.keyboard-user ._3iVyo:focus,body.keyboard-user ._coWoS:active:focus,body.keyboard-user ._coWoS:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}body.keyboard-user ._1fGR1:focus{border-color:#0a3f88}body.keyboard-user ._1fGR1:active>span{background-color:#0854a1;border-color:#0854a1}body.keyboard-user ._1fGR1:active>span>svg{fill:#fff}body.keyboard-user ._3XzT5:focus{opacity:1}";
4
- var styles = {"toolbar":"_2fkAG","toolbarNav":"_1AoO6","toolbarNavCollapsed":"_35N8_","toolbarTabs":"_1LA_O","toolbarTab":"_1BO6P","selected":"_qyCLk","toolbarTabIconButton":"_2BPGp","icon":"_1vDxK","tabsExpandCollapseButton":"_3ibV9","toolbarPanels":"_3jtd6","toolbarPanelExpandCollapseButtonDefaultHidden":"_3XzT5","toolbarPanelsCollapsed":"_3F7Cn","toolbarPanel":"_3iVyo","toolbarPanelExpandCollapseButton":"_1fGR1","toolbarPanelExpandCollapseButtonDefaultShown":"_3e4QN","overrideShow":"_10AUu","overrideHide":"_1N7M2","notSelected":"_1Omoi","buttonWithLabel":"_3cPlI","buttonWithLabelLabel":"_1Txlo","iconButtonWithLabel":"_coWoS","iconButtonWithLabelIcon":"_2iP2J","iconButtonWithLabelLabel":"_Bc_-0"};
5
- var stylesheet="._1AoO6,._2fkAG{display:flex}._1AoO6{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._35N8_{width:69px;min-width:auto;max-width:none}._1LA_O{width:100%}._1BO6P{margin-bottom:12px;background-color:transparent!important}._1BO6P:hover{background-color:rgba(11,110,208,.08)!important}._1BO6P:hover>svg{fill:#085caf}._1BO6P:hover>span{color:#085caf}._1BO6P:active{background-color:rgba(11,110,208,.12)!important}._1BO6P:active>svg{fill:#0854a1}._1BO6P:active>span{color:#0854a1}._1BO6P._qyCLk{background-color:rgba(11,110,208,.08)!important}._1BO6P._qyCLk>svg{fill:#0b6ed0}._1BO6P._qyCLk>span{color:#0b6ed0}._1BO6P._qyCLk:hover{background-color:rgba(11,110,208,.08)!important}._1BO6P._qyCLk:hover>svg{fill:#085caf}._1BO6P._qyCLk:hover>span{color:#085caf}._1BO6P._qyCLk:active{background-color:rgba(11,110,208,.12)!important}._1BO6P._qyCLk:active>svg{fill:#0854a1}._1BO6P._qyCLk:active>span{color:#0854a1}._2BPGp{border-radius:6px}._2BPGp>._1vDxK{display:block;fill:#515559}._3ibV9{margin-top:auto;margin-bottom:0}._3jtd6{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._3jtd6:hover>._3XzT5{opacity:1}._3F7Cn{width:0;border-width:0;padding:0}._3iVyo{border-radius:4px;min-width:100%;min-height:100%;outline:none}._1fGR1{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}._3XzT5{opacity:0}._1fGR1._10AUu._10AUu,._3e4QN,._3XzT5:hover{opacity:1}._1fGR1._1N7M2._1N7M2{opacity:0}._1fGR1>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._1fGR1>span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._1fGR1>span:hover>svg{fill:#fff}._1fGR1>span:active{background-color:#0854a1;border-color:#0854a1}._1fGR1>span:active>svg{fill:#fff}._1fGR1>span>svg{fill:#515559;border-radius:50%}._3iVyo._1Omoi{display:none!important}._3cPlI{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._1Txlo{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._coWoS{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._2iP2J{fill:#515559}._Bc_-0{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}body.keyboard-user ._3cPlI:active:focus,body.keyboard-user ._3cPlI:focus,body.keyboard-user ._3iVyo:active:focus,body.keyboard-user ._3iVyo:focus,body.keyboard-user ._coWoS:active:focus,body.keyboard-user ._coWoS:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}body.keyboard-user ._1fGR1:focus{border-color:#0a3f88}body.keyboard-user ._1fGR1:active>span{background-color:#0854a1;border-color:#0854a1}body.keyboard-user ._1fGR1:active>span>svg{fill:#fff}body.keyboard-user ._3XzT5:focus{opacity:1}";
3
+ var css_248z = "._21aHY,._28EiY{display:flex}._28EiY{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._3cQMM{width:69px;min-width:auto;max-width:none}._1uWS0{width:100%}._Qpt2d{margin-bottom:12px;background-color:transparent!important}._Qpt2d:hover{background-color:rgba(11,110,208,.08)!important}._Qpt2d:hover>svg{fill:#085caf}._Qpt2d:hover>span{color:#085caf}._Qpt2d:active{background-color:rgba(11,110,208,.12)!important}._Qpt2d:active>svg{fill:#0854a1}._Qpt2d:active>span{color:#0854a1}._Qpt2d._33yKu{background-color:rgba(11,110,208,.08)!important}._Qpt2d._33yKu>svg{fill:#0b6ed0}._Qpt2d._33yKu>span{color:#0b6ed0}._Qpt2d._33yKu:hover{background-color:rgba(11,110,208,.08)!important}._Qpt2d._33yKu:hover>svg{fill:#085caf}._Qpt2d._33yKu:hover>span{color:#085caf}._Qpt2d._33yKu:active{background-color:rgba(11,110,208,.12)!important}._Qpt2d._33yKu:active>svg{fill:#0854a1}._Qpt2d._33yKu:active>span{color:#0854a1}._wI3Kz{border-radius:6px}._wI3Kz>._3XsDt{display:block;fill:#515559}._1rmQB{margin-top:auto;margin-bottom:0}._3H7K2{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._3H7K2:hover>._5KyJf{opacity:1}._1xuEq{width:0;border-width:0;padding:0}._2Iqo1{border-radius:4px;min-width:100%;min-height:100%;outline:none}._NedOi{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}._5KyJf{opacity:0}._5KyJf:hover,._34eJ2,._NedOi._2VbqN._2VbqN{opacity:1}._NedOi._3lQq3._3lQq3{opacity:0}._NedOi>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._NedOi>span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._NedOi>span:hover>svg{fill:#fff}._NedOi>span:active{background-color:#0854a1;border-color:#0854a1}._NedOi>span:active>svg{fill:#fff}._NedOi>span>svg{fill:#515559;border-radius:50%}._2Iqo1._1FsD6{display:none!important}._3i6_R{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._5aSTE{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._27k93{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._2ikrv{fill:#515559}._eO0b-{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}body.keyboard-user ._2Iqo1:active:focus,body.keyboard-user ._2Iqo1:focus,body.keyboard-user ._3i6_R:active:focus,body.keyboard-user ._3i6_R:focus,body.keyboard-user ._27k93:active:focus,body.keyboard-user ._27k93:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}body.keyboard-user ._NedOi:focus{border-color:#0a3f88}body.keyboard-user ._NedOi:active>span{background-color:#0854a1;border-color:#0854a1}body.keyboard-user ._NedOi:active>span>svg{fill:#fff}body.keyboard-user ._5KyJf:focus{opacity:1}";
4
+ var styles = {"toolbar":"_21aHY","toolbarNav":"_28EiY","toolbarNavCollapsed":"_3cQMM","toolbarTabs":"_1uWS0","toolbarTab":"_Qpt2d","selected":"_33yKu","toolbarTabIconButton":"_wI3Kz","icon":"_3XsDt","tabsExpandCollapseButton":"_1rmQB","toolbarPanels":"_3H7K2","toolbarPanelExpandCollapseButtonDefaultHidden":"_5KyJf","toolbarPanelsCollapsed":"_1xuEq","toolbarPanel":"_2Iqo1","toolbarPanelExpandCollapseButton":"_NedOi","toolbarPanelExpandCollapseButtonDefaultShown":"_34eJ2","overrideShow":"_2VbqN","overrideHide":"_3lQq3","notSelected":"_1FsD6","buttonWithLabel":"_3i6_R","buttonWithLabelLabel":"_5aSTE","iconButtonWithLabel":"_27k93","iconButtonWithLabelIcon":"_2ikrv","iconButtonWithLabelLabel":"_eO0b-"};
5
+ var stylesheet="._21aHY,._28EiY{display:flex}._28EiY{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._3cQMM{width:69px;min-width:auto;max-width:none}._1uWS0{width:100%}._Qpt2d{margin-bottom:12px;background-color:transparent!important}._Qpt2d:hover{background-color:rgba(11,110,208,.08)!important}._Qpt2d:hover>svg{fill:#085caf}._Qpt2d:hover>span{color:#085caf}._Qpt2d:active{background-color:rgba(11,110,208,.12)!important}._Qpt2d:active>svg{fill:#0854a1}._Qpt2d:active>span{color:#0854a1}._Qpt2d._33yKu{background-color:rgba(11,110,208,.08)!important}._Qpt2d._33yKu>svg{fill:#0b6ed0}._Qpt2d._33yKu>span{color:#0b6ed0}._Qpt2d._33yKu:hover{background-color:rgba(11,110,208,.08)!important}._Qpt2d._33yKu:hover>svg{fill:#085caf}._Qpt2d._33yKu:hover>span{color:#085caf}._Qpt2d._33yKu:active{background-color:rgba(11,110,208,.12)!important}._Qpt2d._33yKu:active>svg{fill:#0854a1}._Qpt2d._33yKu:active>span{color:#0854a1}._wI3Kz{border-radius:6px}._wI3Kz>._3XsDt{display:block;fill:#515559}._1rmQB{margin-top:auto;margin-bottom:0}._3H7K2{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._3H7K2:hover>._5KyJf{opacity:1}._1xuEq{width:0;border-width:0;padding:0}._2Iqo1{border-radius:4px;min-width:100%;min-height:100%;outline:none}._NedOi{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}._5KyJf{opacity:0}._5KyJf:hover,._34eJ2,._NedOi._2VbqN._2VbqN{opacity:1}._NedOi._3lQq3._3lQq3{opacity:0}._NedOi>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._NedOi>span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._NedOi>span:hover>svg{fill:#fff}._NedOi>span:active{background-color:#0854a1;border-color:#0854a1}._NedOi>span:active>svg{fill:#fff}._NedOi>span>svg{fill:#515559;border-radius:50%}._2Iqo1._1FsD6{display:none!important}._3i6_R{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._5aSTE{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._27k93{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._2ikrv{fill:#515559}._eO0b-{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}body.keyboard-user ._2Iqo1:active:focus,body.keyboard-user ._2Iqo1:focus,body.keyboard-user ._3i6_R:active:focus,body.keyboard-user ._3i6_R:focus,body.keyboard-user ._27k93:active:focus,body.keyboard-user ._27k93:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}body.keyboard-user ._NedOi:focus{border-color:#0a3f88}body.keyboard-user ._NedOi:active>span{background-color:#0854a1;border-color:#0854a1}body.keyboard-user ._NedOi:active>span>svg{fill:#fff}body.keyboard-user ._5KyJf:focus{opacity:1}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,4 +1,5 @@
1
1
  import './Accordion/index.js';
2
+ import './BreakpointSwitch/index.js';
2
3
  import './Button/index.js';
3
4
  import './ButtonGroup/index.js';
4
5
  import './Checkbox/index.js';
@@ -15,3 +15,5 @@ import './useSSRLayoutEffect/index.js';
15
15
  import './useIsFocused/index.js';
16
16
  import './useIsHovered/index.js';
17
17
  import './useIsTruncated/index.js';
18
+ import './useBreakpoints/index.js';
19
+ import './useResponsiveValue/index.js';
@@ -0,0 +1 @@
1
+ export { default } from './useBreakpoints.js';
@@ -0,0 +1,47 @@
1
+ import { useState, useEffect } from 'react';
2
+ import '../../utils/mediaQueryManager/index.js';
3
+ import { DEFAULT_BREAKPOINTS } from '../../utils/constants.js';
4
+ import '../useLatest/index.js';
5
+ import { getMediaQueryValue, subscribe } from '../../utils/mediaQueryManager/mediaQueryManager.js';
6
+ import useLatest from '../useLatest/useLatest.js';
7
+
8
+ function getMinWidthQuery(length, unit) {
9
+ return "(min-width: ".concat(length).concat(unit, ")");
10
+ }
11
+
12
+ function getInitialValues(breakpointsConfig, unit) {
13
+ const initialValues = {};
14
+ Object.entries(breakpointsConfig).forEach(_ref => {
15
+ let [breakpointName, breakpointValue] = _ref;
16
+ const query = getMinWidthQuery(breakpointValue, unit);
17
+ initialValues[breakpointName] = getMediaQueryValue(query);
18
+ });
19
+ return initialValues;
20
+ }
21
+
22
+ function useBreakpoints() {
23
+ let breakpoints = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_BREAKPOINTS;
24
+ let unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'em';
25
+ const [matches, setMatches] = useState(() => getInitialValues(breakpoints, unit));
26
+ const breakpointsRef = useLatest(breakpoints);
27
+ const unitRef = useLatest(unit);
28
+ useEffect(() => {
29
+ const unsubscribeFns = [];
30
+ Object.entries(breakpointsRef.current).forEach(_ref2 => {
31
+ let [breakpointName, breakpointValue] = _ref2;
32
+ const query = getMinWidthQuery(breakpointValue, unitRef.current);
33
+ const unsubscribe = subscribe(query, event => {
34
+ setMatches(prevValue => ({ ...prevValue,
35
+ [breakpointName]: event.matches
36
+ }));
37
+ });
38
+ unsubscribeFns.push(unsubscribe);
39
+ });
40
+ return () => {
41
+ unsubscribeFns.forEach(fn => fn());
42
+ };
43
+ }, [breakpointsRef, unitRef]);
44
+ return matches;
45
+ }
46
+
47
+ export { useBreakpoints as default };
@@ -0,0 +1 @@
1
+ export { default } from './useResponsiveValue.js';
@@ -0,0 +1,21 @@
1
+ import '../useBreakpoints/index.js';
2
+ import { DEFAULT_BREAKPOINTS } from '../../utils/constants.js';
3
+ import useBreakpoints from '../useBreakpoints/useBreakpoints.js';
4
+
5
+ function useResponsiveValue(values) {
6
+ var _values$returnKey;
7
+
8
+ let breakpoints = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_BREAKPOINTS;
9
+ let unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'em';
10
+ const matches = useBreakpoints(breakpoints, unit);
11
+ const returnKey = Object.keys(values).reduce((acc, k) => {
12
+ if (matches[k] && (typeof acc === 'undefined' || breakpoints[acc] < breakpoints[k])) {
13
+ return k;
14
+ }
15
+
16
+ return acc;
17
+ }, undefined);
18
+ return (_values$returnKey = values[returnKey]) !== null && _values$returnKey !== void 0 ? _values$returnKey : null;
19
+ }
20
+
21
+ export { useResponsiveValue as default };
@@ -11,7 +11,8 @@ function useScreenReaderAnnouncement(politeness) {
11
11
  const ariaLiveElementRef = useRef();
12
12
  const [messageQueue, setMessageQueue] = useState([]); // An array of messages where the first item in the array is the oldest message
13
13
 
14
- const [isAnnouncingMessage, setIsAnnouncingMessage] = useState(false); // Creates the live region element
14
+ const [isAnnouncingMessage, setIsAnnouncingMessage] = useState(false);
15
+ const delayTimer = useRef(); // Creates the live region element
15
16
 
16
17
  useEffect(() => {
17
18
  ariaLiveElementRef.current = document.createElement('span');
@@ -48,14 +49,18 @@ function useScreenReaderAnnouncement(politeness) {
48
49
  delay = 0;
49
50
  }
50
51
 
51
- setTimeout(() => {
52
+ delayTimer.current = setTimeout(() => {
52
53
  if (ariaLiveElementRef.current !== undefined) ariaLiveElementRef.current.textContent = oldestMessage;
53
54
  setMessageQueue(currentMessageQueue => currentMessageQueue.slice(1)); // Removes the oldest message (i.e. first item) from the message queue since it was just announced
54
55
 
55
56
  setIsAnnouncingMessage(false);
56
57
  }, delay);
57
58
  }
58
- }, [isAnnouncingMessage, messageQueue]);
59
+ }, [isAnnouncingMessage, messageQueue]); // Cleanup timeout to avoid memory leaks
60
+
61
+ useEffect(() => () => {
62
+ if (delayTimer.current) clearTimeout(delayTimer.current);
63
+ }, []);
59
64
  /**
60
65
  * Sends a message for the screen reader to read.
61
66
  * @param message - The message that the screen reader will read.
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._2l3oK{position:absolute;top:-10000px;left:-10000px}";
4
- var classes = {"ariaLiveElement":"_2l3oK"};
5
- var stylesheet="._2l3oK{position:absolute;top:-10000px;left:-10000px}";
3
+ var css_248z = "._OQoqK{position:absolute;top:-10000px;left:-10000px}";
4
+ var classes = {"ariaLiveElement":"_OQoqK"};
5
+ var stylesheet="._OQoqK{position:absolute;top:-10000px;left:-10000px}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { classes 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 = "._1qPce{flex-shrink:0}";
4
- var styles = {"icon":"_1qPce"};
5
- var stylesheet="._1qPce{flex-shrink:0}";
3
+ var css_248z = "._37PVo{flex-shrink:0}";
4
+ var styles = {"icon":"_37PVo"};
5
+ var stylesheet="._37PVo{flex-shrink:0}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var icons_index = require('../__shared/cjs/index-6a9c8483.js');
5
+ var icons_index = require('../__shared/cjs/index-d447e6d9.js');
6
6
  require('@babel/runtime-corejs3/helpers/extends');
7
7
  require('react');
8
8
  require('classnames');
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ /// <reference types="react" />
2
+
1
3
  import { ButtonHTMLAttributes } from 'react';
2
4
  import type { ChangeEvent } from 'react';
3
5
  import type { ClipboardEvent as ClipboardEvent_2 } from 'react';
@@ -57,6 +59,15 @@ declare interface BaseNavLinkProps {
57
59
  'data-testid'?: string;
58
60
  }
59
61
 
62
+ export declare function Breakpoint({ size, children, }: {
63
+ size: DefaultBreakpointKeys;
64
+ children: React.ReactNode;
65
+ }): null;
66
+
67
+ export declare function BreakpointSwitch({ children, }: {
68
+ children: React_2.ReactNode;
69
+ }): JSX.Element;
70
+
60
71
  export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
61
72
 
62
73
  export declare const ButtonGroup: React_2.ForwardRefExoticComponent<ButtonGroupProps & React_2.RefAttributes<HTMLSpanElement>>;
@@ -293,6 +304,16 @@ declare const _default: {
293
304
  locked: string;
294
305
  };
295
306
 
307
+ export declare const DEFAULT_BREAKPOINTS: {
308
+ xs: number;
309
+ sm: number;
310
+ md: number;
311
+ lg: number;
312
+ xl: number;
313
+ };
314
+
315
+ declare type DefaultBreakpointKeys = keyof typeof DEFAULT_BREAKPOINTS;
316
+
296
317
  export declare interface deprecated_ColorHsb {
297
318
  h: number;
298
319
  s: number;
@@ -1967,6 +1988,12 @@ export declare interface UIProviderProps {
1967
1988
  children?: ReactNode;
1968
1989
  }
1969
1990
 
1991
+ export declare function useBreakpoints<T extends Record<string, number> | undefined = undefined>(breakpoints?: T, unit?: 'em' | 'px'): T extends Record<string, number> ? Record<keyof T, boolean> : Record<DefaultBreakpointKeys, boolean>;
1992
+
1993
+ export declare function useResponsiveValue<V, C = typeof DEFAULT_BREAKPOINTS>(values: {
1994
+ [K in keyof V]: K extends keyof C ? V[K] : never;
1995
+ }, breakpoints?: C, unit?: 'em' | 'px'): V[keyof V];
1996
+
1970
1997
  declare type ValuesOf<T> = T extends {
1971
1998
  [K in keyof T]: infer U;
1972
1999
  } ? U : never;
package/dist/index.es.js CHANGED
@@ -1,10 +1,16 @@
1
1
  import './utils/index.js';
2
2
  import './components/index.js';
3
+ import './hooks/index.js';
4
+ export { DEFAULT_BREAKPOINTS } from './utils/constants.js';
3
5
  import { enableKeyboardUserClass } from './utils/keyboardUser/keyboardUser.js';
6
+ export { default as useBreakpoints } from './hooks/useBreakpoints/useBreakpoints.js';
7
+ export { default as useResponsiveValue } from './hooks/useResponsiveValue/useResponsiveValue.js';
4
8
  export { Accordion } from './components/Accordion/Accordion.js';
5
9
  export { AccordionSection } from './components/Accordion/AccordionSection.js';
6
10
  export { AccordionHeader } from './components/Accordion/AccordionHeader.js';
7
11
  export { AccordionPanel } from './components/Accordion/AccordionPanel.js';
12
+ export { default as BreakpointSwitch } from './components/BreakpointSwitch/BreakpointSwitch.js';
13
+ export { default as Breakpoint } from './components/BreakpointSwitch/Breakpoint.js';
8
14
  export { Button } from './components/Button/Button.js';
9
15
  export { default as ButtonGroup } from './components/ButtonGroup/ButtonGroup.js';
10
16
  export { default as Checkbox } from './components/Checkbox/Checkbox.js';
@@ -99,6 +105,6 @@ export { default as deprecated_ToolbarPanel } from './components/deprecated_Tool
99
105
 
100
106
  enableKeyboardUserClass();
101
107
 
102
- const version = '2.5.0';
108
+ const version = '2.6.1';
103
109
 
104
110
  export { version };