@councilbox/councilbox-ui 2.0.52 → 2.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/HOCs/overlayA11yStack.js +47 -0
- package/dist/HOCs/useA11yGuard.js +38 -0
- package/dist/HOCs/useDynamicStyles.js +18 -38
- package/dist/HOCs/useMenuNavigation.js +110 -0
- package/dist/HOCs/useOverlay.js +87 -0
- package/dist/HOCs/usePopoverPosition.js +228 -0
- package/dist/HOCs/useRipple.js +17 -35
- package/dist/HOCs/useWindowSize.js +24 -42
- package/dist/build-index.js +49 -99
- package/dist/components/1.Introduction.stories.mdx +1 -1
- package/dist/components/2.Changelog.stories.mdx +45 -0
- package/dist/components/3.Guide.stories.mdx +1 -1
- package/dist/components/Accordion/Accordion.css +7 -0
- package/dist/components/Accordion/Accordion.js +97 -102
- package/dist/components/Accordion/Accordion.stories.js +10 -12
- package/dist/components/Accordion/AccordionOld.js +32 -56
- package/dist/components/Accordion/DesignAccordion.stories.js +10 -21
- package/dist/components/Alert/Alert.js +55 -55
- package/dist/components/Alert/Alert.stories.js +10 -11
- package/dist/components/Avatar/Avatar.js +82 -74
- package/dist/components/Avatar/Avatar.stories.js +19 -23
- package/dist/components/Avatar/AvatarOld.js +46 -60
- package/dist/components/Avatar/DesignAvatar.stories.js +18 -26
- package/dist/components/Avatar/DesignAvatarText.stories.js +31 -40
- package/dist/components/AvatarGroup/AvatarGroup.js +7 -14
- package/dist/components/AvatarGroup/AvatarGroup.stories.js +6 -13
- package/dist/components/AvatarGroup/DesignAvatarGroup.stories.js +34 -45
- package/dist/components/Block/Block.css +3 -3
- package/dist/components/Block/Block.js +31 -45
- package/dist/components/Block/Block.stories.js +5 -12
- package/dist/components/Block/DesignBlock.stories.js +7 -13
- package/dist/components/Button/Button.js +44 -66
- package/dist/components/Button/Button.stories.js +8 -14
- package/dist/components/Button/button.css +1 -1
- package/dist/components/ButtonBasic/ButtonBasic.css +6 -1
- package/dist/components/ButtonBasic/ButtonBasic.js +96 -118
- package/dist/components/ButtonBasic/ButtonBasic.stories.js +14 -15
- package/dist/components/ButtonBasic/ButtonBasicOld.js +57 -77
- package/dist/components/Checkbox/Checkbox.css +6 -0
- package/dist/components/Checkbox/Checkbox.js +81 -100
- package/dist/components/Checkbox/Checkbox.stories.js +10 -11
- package/dist/components/Checkbox/CheckboxOld.js +19 -35
- package/dist/components/DragDrop/DragDrop.css +20 -9
- package/dist/components/DragDrop/DragDrop.js +80 -76
- package/dist/components/DragDrop/DragDrop.stories.js +9 -16
- package/dist/components/DrawerPanel/DesignDrawerPanel.js +35 -53
- package/dist/components/DrawerPanel/DrawerPanel.js +157 -146
- package/dist/components/DrawerPanel/DrawerPanel.stories.js +10 -12
- package/dist/components/DrawerPanel/DrawerPanelOld.js +76 -98
- package/dist/components/DropDown/DesignDropDown.stories.js +79 -97
- package/dist/components/DropDown/DropDown.js +168 -342
- package/dist/components/DropDown/DropDown.stories.js +6 -12
- package/dist/components/DropDown/DropDownOld.js +57 -89
- package/dist/components/DropDown/PopoverPlayground.js +68 -98
- package/dist/components/EnhancedTable/DesignEnhancedTable.stories.js +26 -36
- package/dist/components/EnhancedTable/EnhancedMyTable.js +16 -19
- package/dist/components/EnhancedTable/EnhancedTable.js +77 -136
- package/dist/components/EnhancedTable/EnhancedTable.stories.js +5 -12
- package/dist/components/EnhancedTable/EnhancedTableBody.js +11 -14
- package/dist/components/EnhancedTable/EnhancedTableCell.js +25 -34
- package/dist/components/EnhancedTable/EnhancedTableContainer.js +11 -14
- package/dist/components/EnhancedTable/EnhancedTableHead.js +11 -14
- package/dist/components/EnhancedTable/EnhancedTableRow.js +15 -18
- package/dist/components/EnhancedTable/EnhancedTableSortLabel.js +15 -18
- package/dist/components/FabButton/DesignFabButton.stories.js +9 -16
- package/dist/components/FabButton/FabButton.js +51 -54
- package/dist/components/FabButton/FabButton.stories.js +10 -12
- package/dist/components/Grid/DesignGrid.stories.js +7 -14
- package/dist/components/Grid/Grid.js +38 -46
- package/dist/components/Grid/Grid.stories.js +6 -13
- package/dist/components/Grid/GridItem.js +37 -39
- package/dist/components/Grid/GridItemOld.js +13 -18
- package/dist/components/Grid/GridOld.js +14 -21
- package/dist/components/Header/DesignHeader.stories.js +20 -24
- package/dist/components/Header/Header.js +201 -242
- package/dist/components/Header/Header.stories.js +9 -21
- package/dist/components/Header/header.css +10 -5
- package/dist/components/IconButton/DesignIconButton.stories.js +31 -36
- package/dist/components/IconButton/IconButton.css +6 -1
- package/dist/components/IconButton/IconButton.js +132 -138
- package/dist/components/IconButton/IconButton.stories.js +12 -13
- package/dist/components/IconButton/IconButtonOld.js +41 -57
- package/dist/components/IconButtonSquare/DesignIconButtonSquare.stories.js +5 -11
- package/dist/components/IconButtonSquare/IconButtonSquare.js +11 -25
- package/dist/components/IconButtonSquare/IconButtonSquare.stories.js +7 -13
- package/dist/components/IconButtonSquare/IconButtonSquareOld.js +44 -62
- package/dist/components/IconFont/IconFont.js +27 -48
- package/dist/components/IconFont/IconFont.stories.js +5 -11
- package/dist/components/InputAutocomplete/InputAutocomplete.css +6 -0
- package/dist/components/InputAutocomplete/InputAutocomplete.js +184 -260
- package/dist/components/InputAutocomplete/InputAutocomplete.stories.js +5 -11
- package/dist/components/InputAutocomplete/InputAutocompleteOld.js +43 -62
- package/dist/components/InputPassword/InputPassword.css +0 -6
- package/dist/components/InputPassword/InputPassword.js +58 -73
- package/dist/components/InputPassword/InputPassword.stories.js +5 -11
- package/dist/components/InputText/InputText.css +86 -78
- package/dist/components/InputText/InputText.js +207 -211
- package/dist/components/InputText/InputText.stories.js +11 -11
- package/dist/components/InputText/InputTextOld.js +48 -74
- package/dist/components/InputTextArea/DesignInputTextArea.stories.js +38 -51
- package/dist/components/InputTextArea/InputTextArea.js +84 -93
- package/dist/components/InputTextArea/InputTextArea.stories.js +5 -12
- package/dist/components/LoadingSection/LoadingSection.js +44 -51
- package/dist/components/LoadingSection/LoadingSection.stories.js +5 -11
- package/dist/components/MenuItem/DesignMenuItem.stories.js +20 -34
- package/dist/components/MenuItem/MenuItem.css +7 -2
- package/dist/components/MenuItem/MenuItem.js +100 -113
- package/dist/components/MenuItem/MenuItem.stories.js +6 -15
- package/dist/components/MenuItem/MenuItemOld.js +40 -56
- package/dist/components/MenuLateralLeft/MenuLateralLeft.css +24 -0
- package/dist/components/MenuLateralLeft/MenuLateralLeft.js +123 -160
- package/dist/components/MenuLateralLeft/MenuLateralLeft.stories.js +5 -12
- package/dist/components/MenuLateralRight/MenuLateralRight.css +2 -2
- package/dist/components/MenuLateralRight/MenuLateralRight.js +73 -77
- package/dist/components/MenuLateralRight/MenuLateralRight.stories.js +5 -12
- package/dist/components/Modal/DesignModal.stories.js +15 -30
- package/dist/components/Modal/Modal.css +35 -15
- package/dist/components/Modal/Modal.js +154 -145
- package/dist/components/Modal/Modal.stories.js +7 -16
- package/dist/components/Modal/ModalOld.js +73 -90
- package/dist/components/PaginationFooter/DesignPaginationFooter.stories.js +4 -10
- package/dist/components/PaginationFooter/PaginationFooter.css +10 -0
- package/dist/components/PaginationFooter/PaginationFooter.js +99 -91
- package/dist/components/PaginationFooter/PaginationFooter.stories.js +5 -12
- package/dist/components/RadioButton/Radio.css +19 -18
- package/dist/components/RadioButton/Radio.js +65 -83
- package/dist/components/RadioButton/Radio.stories.js +27 -36
- package/dist/components/RadioButton/RadioOld.js +23 -39
- package/dist/components/Ripple/DesignRipple.js +25 -41
- package/dist/components/Ripple/Ripple.stories.js +5 -11
- package/dist/components/Scrollbar/DesignScrollbar.js +5 -10
- package/dist/components/Scrollbar/Scrollbar.js +37 -56
- package/dist/components/Scrollbar/Scrollbar.stories.js +5 -12
- package/dist/components/SelectInput/DesignSelectInput.js +22 -45
- package/dist/components/SelectInput/SelectInput.js +101 -155
- package/dist/components/SelectInput/SelectInput.stories.js +6 -15
- package/dist/components/SelectInput/SelectInputOld.js +52 -81
- package/dist/components/Slider/DesignSlider.js +8 -14
- package/dist/components/Slider/Slider.css +57 -37
- package/dist/components/Slider/Slider.js +85 -84
- package/dist/components/Slider/Slider.stories.js +5 -12
- package/dist/components/Spacing/Spacing.js +38 -45
- package/dist/components/Spacing/Spacing.stories.js +5 -11
- package/dist/components/Stars/DesignStars.js +17 -30
- package/dist/components/Stars/Stars.css +55 -104
- package/dist/components/Stars/Stars.js +89 -73
- package/dist/components/Stars/Stars.stories.js +5 -12
- package/dist/components/Stepper/DesignStepper.stories.js +16 -30
- package/dist/components/Stepper/Stepper.css +46 -10
- package/dist/components/Stepper/Stepper.js +118 -134
- package/dist/components/Stepper/Stepper.stories.js +5 -12
- package/dist/components/Table/DesignTable.stories.js +200 -211
- package/dist/components/Table/Table.css +33 -2
- package/dist/components/Table/Table.js +30 -38
- package/dist/components/Table/Table.stories.js +5 -12
- package/dist/components/Table/TableBody.js +22 -34
- package/dist/components/Table/TableCell.js +71 -61
- package/dist/components/Table/TableContainer.js +22 -34
- package/dist/components/Table/TableHead.js +22 -34
- package/dist/components/Table/TableOld.js +52 -84
- package/dist/components/Table/TableRow.js +33 -37
- package/dist/components/Table/TableSortLabel.js +42 -52
- package/dist/components/Tabs/DesignTabs.js +14 -28
- package/dist/components/Tabs/Tabs.css +30 -11
- package/dist/components/Tabs/Tabs.js +151 -137
- package/dist/components/Tabs/Tabs.stories.js +5 -12
- package/dist/components/Tabs/TabsOld.js +28 -42
- package/dist/components/Tag/DesignTags.stories.js +24 -39
- package/dist/components/Tag/Tag.css +61 -42
- package/dist/components/Tag/Tag.js +93 -91
- package/dist/components/Tag/Tag.stories.js +5 -12
- package/dist/components/TextInput/TextInput.js +38 -54
- package/dist/components/TextInput/TextInput.stories.js +5 -11
- package/dist/components/ThemeProvider/Colors.js +2 -2
- package/dist/components/ThemeProvider/CouncilboxThemeContext.js +7 -10
- package/dist/components/ThemeProvider/ThemeProvider.js +34 -52
- package/dist/components/Timeline/DesignTimeline.stories.js +4 -10
- package/dist/components/Timeline/Timeline.js +66 -46
- package/dist/components/Timeline/Timeline.stories.js +5 -12
- package/dist/components/Toggle/Toggle.css +10 -0
- package/dist/components/Toggle/Toggle.js +115 -98
- package/dist/components/Toggle/Toggle.stories.js +10 -11
- package/dist/components/Tooltip/DesignTooltip.stories.js +10 -16
- package/dist/components/Tooltip/Tooltip.css +17 -1
- package/dist/components/Tooltip/Tooltip.js +190 -366
- package/dist/components/Tooltip/Tooltip.stories.js +5 -12
- package/dist/components/Typography/Typography.css +57 -6
- package/dist/components/Typography/Typography.js +44 -97
- package/dist/components/Typography/Typography.stories.js +5 -11
- package/dist/components/Typography/TypographyOld.js +29 -42
- package/dist/index.js +2 -6
- package/dist/reportWebVitals.js +8 -14
- package/dist/storybook.test.js +2 -4
- package/dist/styles/colorConsts.css +4 -4
- package/dist/styles/main.css +16 -0
- package/dist/styles/stylesheet.js +10 -22
- package/dist/testing/TestAutocomplete.js +74 -97
- package/dist/testing/TestComponents.js +5 -10
- package/dist/testing/TestDropdown.js +33 -41
- package/dist/utils/autoDetectScroll.js +12 -35
- package/dist/utils/index.js +37 -63
- package/dist/utils/useFallbackId.js +19 -0
- package/package.json +5 -2
|
@@ -1,431 +1,258 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
7
|
+
exports["default"] = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
10
|
var _reactDom = require("react-dom");
|
|
13
|
-
|
|
14
11
|
require("../../styles/main.css");
|
|
15
|
-
|
|
16
12
|
require("./Tooltip.css");
|
|
17
|
-
|
|
18
13
|
var _useDynamicStyles2 = _interopRequireDefault(require("../../HOCs/useDynamicStyles"));
|
|
19
|
-
|
|
14
|
+
var _usePopoverPosition2 = _interopRequireDefault(require("../../HOCs/usePopoverPosition"));
|
|
15
|
+
var _useFallbackId = _interopRequireDefault(require("../../utils/useFallbackId"));
|
|
20
16
|
var _excluded = ["id", "open", "anchorOrigin", "transformOrigin", "placement", "forceClose", "sx", "style", "styles", "prefixClass", "setOpen", "className", "children", "title"];
|
|
21
|
-
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
|
-
|
|
32
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
33
|
-
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
18
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
|
|
19
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
22
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
23
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
24
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
34
25
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
35
|
-
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
function
|
|
39
|
-
|
|
40
|
-
function
|
|
41
|
-
|
|
42
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
|
-
|
|
44
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
45
|
-
|
|
46
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
47
|
-
|
|
26
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
27
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }
|
|
28
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
29
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
30
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
|
|
31
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
|
|
48
32
|
var OUT_MARGIN = 4;
|
|
49
33
|
var ANIMATION_DURATION = 100;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
if (transformOrigin.horizontal === 'left') {
|
|
111
|
-
left = anchorHorizontal - transformHorizontal;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
if (transformOrigin.horizontal === 'right') {
|
|
115
|
-
if (anchorOrigin.horizontal === 'center') {
|
|
116
|
-
right = anchorHorizontal - transformHorizontal;
|
|
117
|
-
} else {
|
|
118
|
-
right = viewportWidth - anchorRect[anchorOrigin.horizontal];
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
if (right + tooltipRect.width > viewportWidth) {
|
|
122
|
-
left = OUT_MARGIN;
|
|
123
|
-
right = null;
|
|
124
|
-
}
|
|
34
|
+
var getTooltipPlacements = function getTooltipPlacements(placementTooltip) {
|
|
35
|
+
switch (placementTooltip) {
|
|
36
|
+
case 'top':
|
|
37
|
+
return {
|
|
38
|
+
computedAnchorOrigin: {
|
|
39
|
+
vertical: 'top',
|
|
40
|
+
horizontal: 'center'
|
|
41
|
+
},
|
|
42
|
+
computedTransformOrigin: {
|
|
43
|
+
vertical: 'bottom',
|
|
44
|
+
horizontal: 'center'
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
case 'right':
|
|
48
|
+
return {
|
|
49
|
+
computedAnchorOrigin: {
|
|
50
|
+
vertical: 'center',
|
|
51
|
+
horizontal: 'right'
|
|
52
|
+
},
|
|
53
|
+
computedTransformOrigin: {
|
|
54
|
+
vertical: 'center',
|
|
55
|
+
horizontal: 'left'
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
case 'bottom':
|
|
59
|
+
return {
|
|
60
|
+
computedAnchorOrigin: {
|
|
61
|
+
vertical: 'bottom',
|
|
62
|
+
horizontal: 'center'
|
|
63
|
+
},
|
|
64
|
+
computedTransformOrigin: {
|
|
65
|
+
vertical: 'top',
|
|
66
|
+
horizontal: 'center'
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
case 'left':
|
|
70
|
+
return {
|
|
71
|
+
computedAnchorOrigin: {
|
|
72
|
+
vertical: 'center',
|
|
73
|
+
horizontal: 'left'
|
|
74
|
+
},
|
|
75
|
+
computedTransformOrigin: {
|
|
76
|
+
vertical: 'center',
|
|
77
|
+
horizontal: 'right'
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
default:
|
|
81
|
+
return {
|
|
82
|
+
computedAnchorOrigin: {
|
|
83
|
+
vertical: 'center',
|
|
84
|
+
horizontal: 'right'
|
|
85
|
+
},
|
|
86
|
+
computedTransformOrigin: {
|
|
87
|
+
vertical: 'center',
|
|
88
|
+
horizontal: 'left'
|
|
89
|
+
}
|
|
90
|
+
};
|
|
125
91
|
}
|
|
126
|
-
|
|
127
|
-
if (transformOrigin.horizontal === 'center') {
|
|
128
|
-
left = anchorHorizontal - transformHorizontal;
|
|
129
|
-
|
|
130
|
-
if (left + tooltipRect.width > viewportWidth) {
|
|
131
|
-
right = OUT_MARGIN;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
if (left < 0) {
|
|
135
|
-
left = OUT_MARGIN;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
if (left + tooltipRect.width > viewportWidth) {
|
|
140
|
-
right = OUT_MARGIN;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
if (left < 0) {
|
|
144
|
-
left = OUT_MARGIN;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
if (transformOrigin.vertical === 'bottom') {
|
|
148
|
-
if (anchorOrigin.vertical === 'center') {
|
|
149
|
-
bottom = viewportHeight - anchorVertical;
|
|
150
|
-
} else {
|
|
151
|
-
bottom = viewportHeight - anchorRect[anchorOrigin.vertical];
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
if (bottom + tooltipRect.height > viewportHeight) {
|
|
155
|
-
top = OUT_MARGIN;
|
|
156
|
-
bottom = null;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
return {
|
|
161
|
-
top: top,
|
|
162
|
-
left: left,
|
|
163
|
-
right: right,
|
|
164
|
-
bottom: bottom
|
|
165
|
-
};
|
|
166
92
|
};
|
|
167
|
-
|
|
168
|
-
var
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
var memoizedSx = _react.default.useMemo(function () {
|
|
93
|
+
var Tooltip = function Tooltip(_ref) {
|
|
94
|
+
var id = _ref.id,
|
|
95
|
+
open = _ref.open,
|
|
96
|
+
_ref$anchorOrigin = _ref.anchorOrigin,
|
|
97
|
+
anchorOrigin = _ref$anchorOrigin === void 0 ? {
|
|
98
|
+
vertical: 'center',
|
|
99
|
+
horizontal: 'right'
|
|
100
|
+
} : _ref$anchorOrigin,
|
|
101
|
+
_ref$transformOrigin = _ref.transformOrigin,
|
|
102
|
+
transformOrigin = _ref$transformOrigin === void 0 ? {
|
|
103
|
+
vertical: 'center',
|
|
104
|
+
horizontal: 'left'
|
|
105
|
+
} : _ref$transformOrigin,
|
|
106
|
+
placement = _ref.placement,
|
|
107
|
+
forceClose = _ref.forceClose,
|
|
108
|
+
sx = _ref.sx,
|
|
109
|
+
style = _ref.style,
|
|
110
|
+
styles = _ref.styles,
|
|
111
|
+
propPrefixClass = _ref.prefixClass,
|
|
112
|
+
setOpen = _ref.setOpen,
|
|
113
|
+
className = _ref.className,
|
|
114
|
+
children = _ref.children,
|
|
115
|
+
title = _ref.title,
|
|
116
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
117
|
+
var memoizedSx = _react["default"].useMemo(function () {
|
|
194
118
|
return sx;
|
|
195
119
|
}, []);
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
dynamicPrefixClass = _useDynamicStyles.prefixClass;
|
|
200
|
-
|
|
120
|
+
var _useDynamicStyles = (0, _useDynamicStyles2["default"])(memoizedSx),
|
|
121
|
+
stylesInLine = _useDynamicStyles.stylesInLine,
|
|
122
|
+
dynamicPrefixClass = _useDynamicStyles.prefixClass;
|
|
201
123
|
var prefixClass = propPrefixClass || dynamicPrefixClass;
|
|
202
|
-
|
|
203
|
-
var
|
|
204
|
-
|
|
205
|
-
var
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
var
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
124
|
+
var containerTooltipRef = _react["default"].useRef(null);
|
|
125
|
+
var tooltipRef = _react["default"].useRef(null);
|
|
126
|
+
var timeoutRef = _react["default"].useRef(null);
|
|
127
|
+
var childElement = /*#__PURE__*/_react["default"].isValidElement(children) && !Array.isArray(children) ? _react["default"].Children.only(children) : /*#__PURE__*/_react["default"].createElement("span", {
|
|
128
|
+
tabIndex: 0
|
|
129
|
+
}, children);
|
|
130
|
+
var generatedId = (0, _useFallbackId["default"])('cbx-tooltip');
|
|
131
|
+
var tooltipId = id || generatedId;
|
|
132
|
+
var _React$useState = _react["default"].useState(open || false),
|
|
133
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
134
|
+
isOpen = _React$useState2[0],
|
|
135
|
+
setIsOpenState = _React$useState2[1];
|
|
136
|
+
var _React$useState3 = _react["default"].useState(false),
|
|
137
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
138
|
+
isVisible = _React$useState4[0],
|
|
139
|
+
setIsVisible = _React$useState4[1];
|
|
140
|
+
var _React$useState5 = _react["default"].useState(open || false),
|
|
141
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
142
|
+
shouldRender = _React$useState6[0],
|
|
143
|
+
setShouldRender = _React$useState6[1];
|
|
144
|
+
var _React$useMemo = _react["default"].useMemo(function () {
|
|
145
|
+
return getTooltipPlacements(placement);
|
|
146
|
+
}, [placement]),
|
|
147
|
+
computedAnchorOrigin = _React$useMemo.computedAnchorOrigin,
|
|
148
|
+
computedTransformOrigin = _React$useMemo.computedTransformOrigin;
|
|
149
|
+
var _usePopoverPosition = (0, _usePopoverPosition2["default"])({
|
|
150
|
+
anchorRef: containerTooltipRef,
|
|
151
|
+
popoverRef: tooltipRef,
|
|
152
|
+
isOpen: isOpen,
|
|
153
|
+
anchorOrigin: placement ? computedAnchorOrigin : anchorOrigin,
|
|
154
|
+
transformOrigin: placement ? computedTransformOrigin : transformOrigin,
|
|
155
|
+
outMargin: OUT_MARGIN,
|
|
156
|
+
baseStyles: {
|
|
157
|
+
height: 'fit-content'
|
|
158
|
+
}
|
|
159
|
+
}),
|
|
160
|
+
popoverStyles = _usePopoverPosition.popoverStyles,
|
|
161
|
+
adjustPosition = _usePopoverPosition.adjustPosition;
|
|
231
162
|
var setIsOpen = function setIsOpen(value) {
|
|
232
163
|
setIsOpenState(value);
|
|
233
|
-
|
|
234
164
|
if (setOpen) {
|
|
235
165
|
setOpen(value);
|
|
236
166
|
}
|
|
237
167
|
};
|
|
238
|
-
|
|
239
|
-
var openTooltip = _react.default.useCallback(function () {
|
|
168
|
+
var openTooltip = _react["default"].useCallback(function () {
|
|
240
169
|
if (timeoutRef.current) {
|
|
241
170
|
clearTimeout(timeoutRef.current);
|
|
242
171
|
timeoutRef.current = null;
|
|
243
172
|
}
|
|
244
|
-
|
|
245
173
|
setShouldRender(true);
|
|
246
174
|
setIsOpen(true);
|
|
247
175
|
}, []);
|
|
248
|
-
|
|
249
|
-
var closeTooltip = _react.default.useCallback(function () {
|
|
176
|
+
var closeTooltip = _react["default"].useCallback(function () {
|
|
250
177
|
setIsOpen(false);
|
|
251
|
-
|
|
252
178
|
if (forceClose) {
|
|
253
179
|
forceClose(false);
|
|
254
180
|
}
|
|
255
|
-
|
|
256
181
|
timeoutRef.current = setTimeout(function () {
|
|
257
182
|
setShouldRender(false);
|
|
258
183
|
}, ANIMATION_DURATION);
|
|
259
184
|
}, [forceClose]);
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
switch (placementTooltip) {
|
|
263
|
-
case 'top':
|
|
264
|
-
return {
|
|
265
|
-
computedAnchorOrigin: {
|
|
266
|
-
vertical: 'top',
|
|
267
|
-
horizontal: 'center'
|
|
268
|
-
},
|
|
269
|
-
computedTransformOrigin: {
|
|
270
|
-
vertical: 'bottom',
|
|
271
|
-
horizontal: 'center'
|
|
272
|
-
}
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
case 'right':
|
|
276
|
-
return {
|
|
277
|
-
computedAnchorOrigin: {
|
|
278
|
-
vertical: 'center',
|
|
279
|
-
horizontal: 'right'
|
|
280
|
-
},
|
|
281
|
-
computedTransformOrigin: {
|
|
282
|
-
vertical: 'center',
|
|
283
|
-
horizontal: 'left'
|
|
284
|
-
}
|
|
285
|
-
};
|
|
286
|
-
|
|
287
|
-
case 'bottom':
|
|
288
|
-
return {
|
|
289
|
-
computedAnchorOrigin: {
|
|
290
|
-
vertical: 'bottom',
|
|
291
|
-
horizontal: 'center'
|
|
292
|
-
},
|
|
293
|
-
computedTransformOrigin: {
|
|
294
|
-
vertical: 'top',
|
|
295
|
-
horizontal: 'center'
|
|
296
|
-
}
|
|
297
|
-
};
|
|
298
|
-
|
|
299
|
-
case 'left':
|
|
300
|
-
return {
|
|
301
|
-
computedAnchorOrigin: {
|
|
302
|
-
vertical: 'center',
|
|
303
|
-
horizontal: 'left'
|
|
304
|
-
},
|
|
305
|
-
computedTransformOrigin: {
|
|
306
|
-
vertical: 'center',
|
|
307
|
-
horizontal: 'right'
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
default:
|
|
312
|
-
return {
|
|
313
|
-
computedAnchorOrigin: {
|
|
314
|
-
vertical: 'center',
|
|
315
|
-
horizontal: 'right'
|
|
316
|
-
},
|
|
317
|
-
computedTransformOrigin: {
|
|
318
|
-
vertical: 'center',
|
|
319
|
-
horizontal: 'left'
|
|
320
|
-
}
|
|
321
|
-
};
|
|
322
|
-
}
|
|
323
|
-
};
|
|
324
|
-
|
|
325
|
-
var adjustPopoverPosition = _react.default.useCallback(function () {
|
|
326
|
-
if (!containerTooltipRef.current || !tooltipRef.current) return;
|
|
327
|
-
var anchorRect = containerTooltipRef.current.getBoundingClientRect();
|
|
328
|
-
var tooltipRect = tooltipRef.current.getBoundingClientRect();
|
|
329
|
-
var viewportWidth = window.innerWidth;
|
|
330
|
-
var viewportHeight = window.innerHeight;
|
|
331
|
-
|
|
332
|
-
var _getTooltipPlacements = getTooltipPlacements(placement),
|
|
333
|
-
computedAnchorOrigin = _getTooltipPlacements.computedAnchorOrigin,
|
|
334
|
-
computedTransformOrigin = _getTooltipPlacements.computedTransformOrigin;
|
|
335
|
-
|
|
336
|
-
var anchorOriginPopover = anchorOrigin;
|
|
337
|
-
var transformOriginPopover = transformOrigin;
|
|
338
|
-
|
|
339
|
-
if (placement) {
|
|
340
|
-
anchorOriginPopover = computedAnchorOrigin;
|
|
341
|
-
transformOriginPopover = computedTransformOrigin;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
var _getDefaultCoordinate = getDefaultCoordinates({
|
|
345
|
-
transformOrigin: transformOriginPopover,
|
|
346
|
-
anchorOrigin: anchorOriginPopover,
|
|
347
|
-
tooltipRect: tooltipRect,
|
|
348
|
-
viewportWidth: viewportWidth,
|
|
349
|
-
viewportHeight: viewportHeight,
|
|
350
|
-
anchorRect: anchorRect,
|
|
351
|
-
printLogs: id === 'centro'
|
|
352
|
-
}),
|
|
353
|
-
top = _getDefaultCoordinate.top,
|
|
354
|
-
left = _getDefaultCoordinate.left,
|
|
355
|
-
right = _getDefaultCoordinate.right,
|
|
356
|
-
bottom = _getDefaultCoordinate.bottom;
|
|
357
|
-
|
|
358
|
-
setPopoverStyles(_objectSpread(_objectSpread({
|
|
359
|
-
position: 'absolute',
|
|
360
|
-
height: 'fit-content'
|
|
361
|
-
}, bottom ? {
|
|
362
|
-
bottom: "".concat(bottom, "px")
|
|
363
|
-
} : {
|
|
364
|
-
top: "".concat(top, "px")
|
|
365
|
-
}), right ? {
|
|
366
|
-
right: "".concat(right, "px")
|
|
367
|
-
} : {
|
|
368
|
-
left: "".concat(left, "px")
|
|
369
|
-
}));
|
|
370
|
-
}, [setPopoverStyles, containerTooltipRef.current]);
|
|
371
|
-
|
|
372
|
-
_react.default.useLayoutEffect(function () {
|
|
373
|
-
if (isOpen) {
|
|
374
|
-
setIsVisible(true);
|
|
375
|
-
adjustPopoverPosition();
|
|
376
|
-
window.addEventListener('resize', adjustPopoverPosition);
|
|
377
|
-
} else {
|
|
378
|
-
setIsVisible(false);
|
|
379
|
-
}
|
|
380
|
-
|
|
185
|
+
_react["default"].useLayoutEffect(function () {
|
|
186
|
+
setIsVisible(isOpen);
|
|
381
187
|
return function () {
|
|
382
|
-
window.removeEventListener('resize', adjustPopoverPosition);
|
|
383
|
-
|
|
384
188
|
if (timeoutRef.current) {
|
|
385
189
|
clearTimeout(timeoutRef.current);
|
|
386
190
|
}
|
|
387
191
|
};
|
|
388
|
-
}, [isOpen
|
|
389
|
-
|
|
192
|
+
}, [isOpen]);
|
|
193
|
+
_react["default"].useEffect(function () {
|
|
194
|
+
if (!isOpen) return undefined;
|
|
195
|
+
var handleKeyDown = function handleKeyDown(event) {
|
|
196
|
+
if (event.key === 'Escape' || event.key === 'Esc') {
|
|
197
|
+
closeTooltip();
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
201
|
+
return function () {
|
|
202
|
+
return document.removeEventListener('keydown', handleKeyDown);
|
|
203
|
+
};
|
|
204
|
+
}, [isOpen, closeTooltip]);
|
|
390
205
|
var handleMouseEnter = function handleMouseEnter(event) {
|
|
391
206
|
if (childElement.props.onMouseEnter) {
|
|
392
207
|
childElement.props.onMouseEnter(event);
|
|
393
208
|
}
|
|
394
|
-
|
|
395
209
|
openTooltip();
|
|
396
210
|
};
|
|
397
|
-
|
|
398
211
|
var handleMouseLeave = function handleMouseLeave(event) {
|
|
399
212
|
if (childElement.props.onMouseLeave) {
|
|
400
213
|
childElement.props.onMouseLeave(event);
|
|
401
214
|
}
|
|
402
|
-
|
|
403
215
|
timeoutRef.current = setTimeout(function () {
|
|
404
216
|
closeTooltip();
|
|
405
217
|
}, ANIMATION_DURATION);
|
|
406
218
|
};
|
|
407
|
-
|
|
219
|
+
var handleFocus = function handleFocus(event) {
|
|
220
|
+
if (childElement.props.onFocus) {
|
|
221
|
+
childElement.props.onFocus(event);
|
|
222
|
+
}
|
|
223
|
+
openTooltip();
|
|
224
|
+
};
|
|
225
|
+
var handleBlur = function handleBlur(event) {
|
|
226
|
+
if (childElement.props.onBlur) {
|
|
227
|
+
childElement.props.onBlur(event);
|
|
228
|
+
}
|
|
229
|
+
closeTooltip();
|
|
230
|
+
};
|
|
408
231
|
var handleTooltipMouseEnter = function handleTooltipMouseEnter() {
|
|
409
232
|
if (timeoutRef.current) {
|
|
410
233
|
clearTimeout(timeoutRef.current);
|
|
411
234
|
timeoutRef.current = null;
|
|
412
235
|
}
|
|
413
236
|
};
|
|
414
|
-
|
|
415
237
|
var handleTooltipMouseLeave = function handleTooltipMouseLeave() {
|
|
416
238
|
timeoutRef.current = setTimeout(function () {
|
|
417
239
|
closeTooltip();
|
|
418
240
|
}, ANIMATION_DURATION);
|
|
419
241
|
};
|
|
420
|
-
|
|
421
|
-
var clonedChild = /*#__PURE__*/_react
|
|
242
|
+
var existingDescribedBy = childElement.props['aria-describedby'];
|
|
243
|
+
var clonedChild = /*#__PURE__*/_react["default"].cloneElement(childElement, {
|
|
422
244
|
onMouseEnter: handleMouseEnter,
|
|
423
245
|
onMouseLeave: handleMouseLeave,
|
|
424
|
-
|
|
246
|
+
onFocus: handleFocus,
|
|
247
|
+
onBlur: handleBlur,
|
|
248
|
+
ref: containerTooltipRef,
|
|
249
|
+
'aria-describedby': title && shouldRender ? [existingDescribedBy, tooltipId].filter(Boolean).join(' ') : existingDescribedBy
|
|
425
250
|
});
|
|
426
|
-
|
|
427
251
|
var getTooltip = function getTooltip() {
|
|
428
|
-
return /*#__PURE__*/_react
|
|
252
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, clonedChild, shouldRender && /*#__PURE__*/(0, _reactDom.createPortal)(/*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
253
|
+
id: tooltipId,
|
|
254
|
+
role: "tooltip",
|
|
255
|
+
"aria-hidden": !isOpen,
|
|
429
256
|
className: prefixClass("cbx-tooltip-options-container ".concat(isVisible && popoverStyles ? 'cbx-tooltip-options-container-opened' : 'cbx-tooltip-options-container-closed', " ").concat(className || '')),
|
|
430
257
|
ref: tooltipRef,
|
|
431
258
|
style: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, styles), style), stylesInLine), popoverStyles),
|
|
@@ -437,28 +264,25 @@ var Tooltip = function Tooltip(_ref2) {
|
|
|
437
264
|
}
|
|
438
265
|
}, props), title), document.body));
|
|
439
266
|
};
|
|
440
|
-
|
|
441
|
-
_react.default.useEffect(function () {
|
|
267
|
+
_react["default"].useEffect(function () {
|
|
442
268
|
if (!tooltipRef.current) return;
|
|
443
269
|
var observer = new ResizeObserver(function () {
|
|
444
|
-
|
|
270
|
+
adjustPosition();
|
|
445
271
|
});
|
|
446
272
|
observer.observe(tooltipRef.current);
|
|
447
273
|
return function () {
|
|
448
274
|
observer.disconnect();
|
|
449
275
|
};
|
|
450
|
-
}, [tooltipRef.current,
|
|
451
|
-
|
|
276
|
+
}, [tooltipRef.current, adjustPosition]);
|
|
452
277
|
return title === '' ? children : getTooltip();
|
|
453
278
|
};
|
|
454
|
-
|
|
455
279
|
Tooltip.propTypes = {
|
|
456
|
-
id: _propTypes
|
|
457
|
-
anchorOrigin: _propTypes
|
|
458
|
-
transformOrigin: _propTypes
|
|
459
|
-
placement: _propTypes
|
|
460
|
-
className: _propTypes
|
|
461
|
-
title: _propTypes
|
|
280
|
+
id: _propTypes["default"].string,
|
|
281
|
+
anchorOrigin: _propTypes["default"].object,
|
|
282
|
+
transformOrigin: _propTypes["default"].object,
|
|
283
|
+
placement: _propTypes["default"].string,
|
|
284
|
+
className: _propTypes["default"].string,
|
|
285
|
+
title: _propTypes["default"].node
|
|
462
286
|
};
|
|
463
287
|
Tooltip.defaultProps = {
|
|
464
288
|
id: '',
|
|
@@ -475,4 +299,4 @@ Tooltip.defaultProps = {
|
|
|
475
299
|
title: ''
|
|
476
300
|
};
|
|
477
301
|
var _default = Tooltip;
|
|
478
|
-
exports
|
|
302
|
+
exports["default"] = _default;
|