@councilbox/councilbox-ui 2.0.53 → 2.0.55
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/Accordion.js +3 -0
- package/Alert.js +3 -0
- package/Avatar.js +3 -0
- package/AvatarGroup.js +3 -0
- package/Block.js +3 -0
- package/Button.js +3 -0
- package/ButtonBasic.js +3 -0
- package/Checkbox.js +3 -0
- package/DatePicker.js +3 -0
- package/DateRangePicker.js +3 -0
- package/DateTimePicker.js +3 -0
- package/DragDrop.js +3 -0
- package/DrawerPanel.js +3 -0
- package/DropDown.js +3 -0
- package/EnhancedTable.js +3 -0
- package/FabButton.js +3 -0
- package/Grid.js +3 -0
- package/Header.js +3 -0
- package/IconButton.js +3 -0
- package/IconButtonSquare.js +3 -0
- package/IconFont.js +3 -0
- package/InputAutocomplete.js +3 -0
- package/InputPassword.js +3 -0
- package/InputText.js +3 -0
- package/InputTextArea.js +3 -0
- package/LoadingSection.js +3 -0
- package/MenuItem.js +3 -0
- package/MenuLateralLeft.js +3 -0
- package/MenuLateralRight.js +3 -0
- package/Modal.js +3 -0
- package/Radio.js +3 -0
- package/RichTextInput.js +3 -0
- package/Scrollbar.js +3 -0
- package/ScrollbarNew.js +3 -0
- package/SelectInput.js +3 -0
- package/Slider.js +3 -0
- package/Spacing.js +3 -0
- package/Stars.js +3 -0
- package/Stepper.js +3 -0
- package/Table.js +3 -0
- package/TableBody.js +3 -0
- package/TableCell.js +3 -0
- package/TableContainer.js +3 -0
- package/TableHead.js +3 -0
- package/TableRow.js +3 -0
- package/TableSortLabel.js +3 -0
- package/Tabs.js +3 -0
- package/Tag.js +3 -0
- package/TextInput.js +3 -0
- package/ThemeProvider.js +3 -0
- package/TimePicker.js +3 -0
- package/Timeline.js +3 -0
- package/ToastProvider.js +3 -0
- package/Toggle.js +3 -0
- package/Tooltip.js +3 -0
- package/Typography.js +3 -0
- package/dist/HOCs/overlayA11yStack.js +47 -0
- package/dist/HOCs/useA11yGuard.js +38 -0
- package/dist/HOCs/useDynamicStyles.js +41 -60
- 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 +119 -99
- package/dist/components/1.Introduction.stories.mdx +4 -1
- package/dist/components/2.Changelog.stories.mdx +54 -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/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/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/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/DatePicker/Calendar.js +243 -0
- package/dist/components/DatePicker/DatePicker.css +197 -0
- package/dist/components/DatePicker/DatePicker.js +384 -0
- package/dist/components/DatePicker/DatePicker.stories.js +180 -0
- package/dist/components/DatePicker/dateUtils.js +478 -0
- package/dist/components/DateRangePicker/DateRangePicker.css +41 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +435 -0
- package/dist/components/DateRangePicker/DateRangePicker.stories.js +147 -0
- package/dist/components/DateRangePicker/RangeCalendar.js +188 -0
- package/dist/components/DateTimePicker/DateTimePicker.css +4 -0
- package/dist/components/DateTimePicker/DateTimePicker.js +481 -0
- package/dist/components/DateTimePicker/DateTimePicker.stories.js +144 -0
- package/dist/components/DateTimePicker/TimeColumns.css +46 -0
- package/dist/components/DateTimePicker/TimeColumns.js +175 -0
- package/dist/components/DragDrop/DragDrop.css +20 -9
- package/dist/components/DragDrop/DragDrop.js +83 -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/DropDown/DesignDropDown.stories.js +87 -97
- package/dist/components/DropDown/DropDown.js +179 -343
- package/dist/components/DropDown/DropDown.stories.js +6 -12
- 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/Header/DesignHeader.stories.js +20 -24
- package/dist/components/Header/Header.js +227 -246
- 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 +135 -140
- package/dist/components/IconButton/IconButton.stories.js +12 -13
- package/dist/components/IconButtonSquare/DesignIconButtonSquare.stories.js +5 -11
- package/dist/components/IconButtonSquare/IconButtonSquare.js +14 -28
- package/dist/components/IconButtonSquare/IconButtonSquare.stories.js +7 -13
- 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/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 +96 -83
- package/dist/components/InputText/InputText.js +211 -215
- package/dist/components/InputText/InputText.stories.js +11 -11
- 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 +131 -140
- package/dist/components/MenuItem/MenuItem.stories.js +6 -15
- package/dist/components/MenuLateralLeft/MenuLateralLeft.css +24 -0
- package/dist/components/MenuLateralLeft/MenuLateralLeft.js +120 -157
- package/dist/components/MenuLateralLeft/MenuLateralLeft.stories.js +5 -12
- package/dist/components/MenuLateralRight/MenuLateralRight.css +2 -2
- package/dist/components/MenuLateralRight/MenuLateralRight.js +91 -79
- 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 +156 -145
- package/dist/components/Modal/Modal.stories.js +7 -16
- 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/RichTextInput/DesignRichTextInput.stories.js +119 -0
- package/dist/components/RichTextInput/RichTextInput.css +309 -0
- package/dist/components/RichTextInput/RichTextInput.js +851 -0
- package/dist/components/RichTextInput/RichTextInput.stories.js +33 -0
- package/dist/components/Ripple/DesignRipple.js +42 -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/ScrollbarNew/DesignScrollbarNew.js +24 -0
- package/dist/components/ScrollbarNew/ScrollbarNew.css +79 -0
- package/dist/components/ScrollbarNew/ScrollbarNew.js +426 -0
- package/dist/components/ScrollbarNew/ScrollbarNew.stories.js +37 -0
- package/dist/components/SelectInput/DesignSelectInput.js +22 -45
- package/dist/components/SelectInput/SelectInput.js +171 -218
- package/dist/components/SelectInput/SelectInput.stories.js +6 -15
- 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/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 -138
- package/dist/components/Tabs/Tabs.stories.js +5 -12
- 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/TimePicker/TimePicker.css +3 -0
- package/dist/components/TimePicker/TimePicker.js +359 -0
- package/dist/components/TimePicker/TimePicker.stories.js +132 -0
- 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/Toast/DesignToast.stories.js +174 -0
- package/dist/components/Toast/Toast.css +154 -0
- package/dist/components/Toast/Toast.js +165 -0
- package/dist/components/Toast/Toast.stories.js +33 -0
- package/dist/components/Toast/ToastProvider.js +33 -0
- package/dist/components/Toast/ToastRoot.js +89 -0
- package/dist/components/Toast/toastStore.js +127 -0
- package/dist/components/Toast/useToast.js +42 -0
- package/dist/components/Toggle/Toggle.css +10 -0
- package/dist/components/Toggle/Toggle.js +123 -100
- 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 +195 -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/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/styleFont.css +1 -1
- package/dist/styles/stylesheet.js +10 -22
- package/dist/styles/zIndexConsts.css +2 -0
- 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 +67 -4
- package/toast.js +7 -0
- package/useCouncilboxTheme.js +7 -0
- package/useToast.js +7 -0
- package/dist/components/Accordion/AccordionOld.css +0 -16
- package/dist/components/Accordion/AccordionOld.js +0 -115
- package/dist/components/Avatar/AvatarOld.js +0 -138
- package/dist/components/ButtonBasic/ButtonBasicOld.css +0 -41
- package/dist/components/ButtonBasic/ButtonBasicOld.js +0 -231
- package/dist/components/Checkbox/CheckboxOld.css +0 -31
- package/dist/components/Checkbox/CheckboxOld.js +0 -112
- package/dist/components/DrawerPanel/DrawerPanelOld.css +0 -56
- package/dist/components/DrawerPanel/DrawerPanelOld.js +0 -233
- package/dist/components/DropDown/DropDownOld.css +0 -3
- package/dist/components/DropDown/DropDownOld.js +0 -186
- package/dist/components/Grid/GridItemOld.js +0 -43
- package/dist/components/Grid/GridOld.css +0 -0
- package/dist/components/Grid/GridOld.js +0 -53
- package/dist/components/IconButton/IconButtonOld.css +0 -0
- package/dist/components/IconButton/IconButtonOld.js +0 -138
- package/dist/components/IconButtonSquare/IconButtonSquareOld.css +0 -43
- package/dist/components/IconButtonSquare/IconButtonSquareOld.js +0 -133
- package/dist/components/InputAutocomplete/InputAutocompleteOld.css +0 -5
- package/dist/components/InputAutocomplete/InputAutocompleteOld.js +0 -178
- package/dist/components/InputText/InputTextOld.css +0 -10
- package/dist/components/InputText/InputTextOld.js +0 -340
- package/dist/components/MenuItem/MenuItemOld.js +0 -139
- package/dist/components/Modal/ModalOld.css +0 -3
- package/dist/components/Modal/ModalOld.js +0 -230
- package/dist/components/RadioButton/RadioOld.css +0 -31
- package/dist/components/RadioButton/RadioOld.js +0 -142
- package/dist/components/SelectInput/SelectInputOld.css +0 -17
- package/dist/components/SelectInput/SelectInputOld.js +0 -325
- package/dist/components/Table/TableOld.css +0 -79
- package/dist/components/Table/TableOld.js +0 -165
- package/dist/components/Tabs/TabsOld.js +0 -92
- package/dist/components/Typography/TypographyOld.js +0 -132
|
@@ -3,23 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
6
|
+
exports["default"] = void 0;
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
require("../../styles/main.css");
|
|
11
|
-
|
|
12
9
|
var _Timeline = _interopRequireDefault(require("./Timeline"));
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
11
|
var DesignTimeline = function DesignTimeline(_ref) {
|
|
17
12
|
var last = _ref.last;
|
|
18
|
-
return /*#__PURE__*/_react
|
|
13
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Timeline["default"], null, "Timeline1"), /*#__PURE__*/_react["default"].createElement(_Timeline["default"], null, "Timeline2"), /*#__PURE__*/_react["default"].createElement(_Timeline["default"], {
|
|
19
14
|
last: last
|
|
20
15
|
}, "Timeline3"));
|
|
21
16
|
};
|
|
22
|
-
|
|
23
17
|
DesignTimeline.displayName = "DesignTimeline";
|
|
24
18
|
var _default = DesignTimeline;
|
|
25
|
-
exports
|
|
19
|
+
exports["default"] = _default;
|
|
@@ -1,72 +1,92 @@
|
|
|
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
|
require("./Timeline.css");
|
|
13
|
-
|
|
14
11
|
var _useDynamicStyles2 = _interopRequireDefault(require("../../HOCs/useDynamicStyles"));
|
|
15
|
-
|
|
16
12
|
var _excluded = ["sx", "style", "prefixClass", "className", "last", "children"];
|
|
17
|
-
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
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; }
|
|
29
|
-
|
|
30
|
-
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; }
|
|
31
|
-
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
+
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); }
|
|
15
|
+
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; }
|
|
16
|
+
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; }
|
|
17
|
+
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; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
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); }
|
|
20
|
+
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; }
|
|
21
|
+
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; }
|
|
22
|
+
var TIMELINE_UL_CLASS = 'cbx-Timeline';
|
|
23
|
+
var TIMELINE_LI_CLASS = 'cbx-Timeline-li';
|
|
32
24
|
var Timeline = function Timeline(_ref) {
|
|
33
25
|
var sx = _ref.sx,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
dynamicPrefixClass = _useDynamicStyles.prefixClass;
|
|
44
|
-
|
|
26
|
+
style = _ref.style,
|
|
27
|
+
propPrefixClass = _ref.prefixClass,
|
|
28
|
+
className = _ref.className,
|
|
29
|
+
last = _ref.last,
|
|
30
|
+
children = _ref.children,
|
|
31
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
32
|
+
var _useDynamicStyles = (0, _useDynamicStyles2["default"])(sx),
|
|
33
|
+
stylesInLine = _useDynamicStyles.stylesInLine,
|
|
34
|
+
dynamicPrefixClass = _useDynamicStyles.prefixClass;
|
|
45
35
|
var prefixClass = propPrefixClass || dynamicPrefixClass;
|
|
46
|
-
|
|
47
|
-
|
|
36
|
+
var ulRef = _react["default"].useRef(null);
|
|
37
|
+
var updateSetPosition = _react["default"].useCallback(function () {
|
|
38
|
+
var ul = ulRef.current;
|
|
39
|
+
if (!ul || !ul.parentElement) return;
|
|
40
|
+
var siblingLists = Array.from(ul.parentElement.children).filter(function (el) {
|
|
41
|
+
return el.tagName === 'UL' && el.classList.contains(TIMELINE_UL_CLASS);
|
|
42
|
+
});
|
|
43
|
+
var total = siblingLists.length;
|
|
44
|
+
var index = siblingLists.indexOf(ul) + 1;
|
|
45
|
+
var li = ul.querySelector("li.".concat(TIMELINE_LI_CLASS)) || ul.firstElementChild;
|
|
46
|
+
if (li && total > 0 && index > 0) {
|
|
47
|
+
li.setAttribute('aria-setsize', String(total));
|
|
48
|
+
li.setAttribute('aria-posinset', String(index));
|
|
49
|
+
}
|
|
50
|
+
}, []);
|
|
51
|
+
_react["default"].useLayoutEffect(function () {
|
|
52
|
+
var _ulRef$current;
|
|
53
|
+
updateSetPosition();
|
|
54
|
+
var parent = (_ulRef$current = ulRef.current) === null || _ulRef$current === void 0 ? void 0 : _ulRef$current.parentElement;
|
|
55
|
+
if (!parent) return undefined;
|
|
56
|
+
var observer = new MutationObserver(updateSetPosition);
|
|
57
|
+
observer.observe(parent, {
|
|
58
|
+
childList: true
|
|
59
|
+
});
|
|
60
|
+
return function () {
|
|
61
|
+
return observer.disconnect();
|
|
62
|
+
};
|
|
63
|
+
}, [updateSetPosition]);
|
|
64
|
+
return /*#__PURE__*/_react["default"].createElement("ul", _extends({
|
|
65
|
+
ref: ulRef,
|
|
66
|
+
className: "".concat(prefixClass(TIMELINE_UL_CLASS), " ").concat(className || ''),
|
|
48
67
|
style: _objectSpread(_objectSpread({}, style), stylesInLine)
|
|
49
|
-
}, props), /*#__PURE__*/_react
|
|
50
|
-
className: prefixClass(
|
|
51
|
-
}, /*#__PURE__*/_react
|
|
68
|
+
}, props), /*#__PURE__*/_react["default"].createElement("li", {
|
|
69
|
+
className: prefixClass(TIMELINE_LI_CLASS)
|
|
70
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
52
71
|
className: prefixClass('cbx-Timeline-block')
|
|
53
|
-
}, /*#__PURE__*/_react
|
|
54
|
-
className: prefixClass('cbx-Timeline-circle')
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
72
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
73
|
+
className: prefixClass('cbx-Timeline-circle'),
|
|
74
|
+
"aria-hidden": "true"
|
|
75
|
+
}), !last && /*#__PURE__*/_react["default"].createElement("span", {
|
|
76
|
+
className: prefixClass('cbx-Timeline-line'),
|
|
77
|
+
"aria-hidden": "true"
|
|
78
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
58
79
|
className: prefixClass('cbx-Timeline-content')
|
|
59
80
|
}, children)));
|
|
60
81
|
};
|
|
61
|
-
|
|
62
82
|
Timeline.displayName = "Timeline";
|
|
63
83
|
Timeline.propTypes = {
|
|
64
|
-
className: _propTypes
|
|
65
|
-
last: _propTypes
|
|
84
|
+
className: _propTypes["default"].string,
|
|
85
|
+
last: _propTypes["default"].bool
|
|
66
86
|
};
|
|
67
87
|
Timeline.defaultProps = {
|
|
68
88
|
className: '',
|
|
69
89
|
last: false
|
|
70
90
|
};
|
|
71
91
|
var _default = Timeline;
|
|
72
|
-
exports
|
|
92
|
+
exports["default"] = _default;
|
|
@@ -3,19 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
6
|
+
exports["default"] = exports.DesignTimelineTemplate = void 0;
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _Timeline = _interopRequireDefault(require("./Timeline"));
|
|
11
|
-
|
|
12
9
|
var _DesignTimeline = _interopRequireDefault(require("./DesignTimeline.stories"));
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
11
|
var _default = {
|
|
17
12
|
title: 'Components/Timeline',
|
|
18
|
-
component: _Timeline
|
|
13
|
+
component: _Timeline["default"],
|
|
19
14
|
parameters: {
|
|
20
15
|
storybookCodePanel: {
|
|
21
16
|
disabled: false,
|
|
@@ -31,12 +26,10 @@ var _default = {
|
|
|
31
26
|
}
|
|
32
27
|
}
|
|
33
28
|
};
|
|
34
|
-
exports
|
|
35
|
-
|
|
29
|
+
exports["default"] = _default;
|
|
36
30
|
var Template = function Template(args) {
|
|
37
|
-
return /*#__PURE__*/_react
|
|
31
|
+
return /*#__PURE__*/_react["default"].createElement(_DesignTimeline["default"], args);
|
|
38
32
|
};
|
|
39
|
-
|
|
40
33
|
Template.displayName = "Template";
|
|
41
34
|
var DesignTimelineTemplate = Template.bind({});
|
|
42
35
|
exports.DesignTimelineTemplate = DesignTimelineTemplate;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
require("../../styles/main.css");
|
|
9
|
+
var _useToast3 = require("./useToast");
|
|
10
|
+
var _ButtonBasic = _interopRequireDefault(require("../ButtonBasic/ButtonBasic"));
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
13
|
+
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."); }
|
|
14
|
+
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; } }
|
|
15
|
+
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; }
|
|
16
|
+
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; } }
|
|
17
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
18
|
+
// No <ToastProvider> anywhere in this story on purpose - it demonstrates that
|
|
19
|
+
// useToast()/toast() work with zero setup.
|
|
20
|
+
|
|
21
|
+
// Mounts and fires a toast in the same tick, then shows the hook's own reactive `toasts.length`
|
|
22
|
+
// - exercises the exact race window between useToast()'s initial snapshot and its subscription.
|
|
23
|
+
var MountAndFireImmediately = function MountAndFireImmediately() {
|
|
24
|
+
var _useToast = (0, _useToast3.useToast)(),
|
|
25
|
+
toast = _useToast.toast,
|
|
26
|
+
toasts = _useToast.toasts;
|
|
27
|
+
var fired = _react["default"].useRef(false);
|
|
28
|
+
_react["default"].useEffect(function () {
|
|
29
|
+
if (!fired.current) {
|
|
30
|
+
fired.current = true;
|
|
31
|
+
toast({
|
|
32
|
+
message: 'Disparado en el mismo mount.',
|
|
33
|
+
severity: 'info',
|
|
34
|
+
vertical: 'bottom',
|
|
35
|
+
horizontal: 'center'
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}, [toast]);
|
|
39
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
40
|
+
id: "mount-fire-toasts-length"
|
|
41
|
+
}, "toasts.length (hook): ", toasts.length);
|
|
42
|
+
};
|
|
43
|
+
MountAndFireImmediately.displayName = "MountAndFireImmediately";
|
|
44
|
+
var DesignToastButtons = function DesignToastButtons() {
|
|
45
|
+
var _useToast2 = (0, _useToast3.useToast)(),
|
|
46
|
+
toast = _useToast2.toast,
|
|
47
|
+
closeAll = _useToast2.closeAll;
|
|
48
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
49
|
+
style: {
|
|
50
|
+
display: 'flex',
|
|
51
|
+
flexWrap: 'wrap',
|
|
52
|
+
gap: '1rem',
|
|
53
|
+
padding: '2rem',
|
|
54
|
+
maxWidth: '55%'
|
|
55
|
+
}
|
|
56
|
+
}, /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], {
|
|
57
|
+
text: "Success",
|
|
58
|
+
onClick: function onClick() {
|
|
59
|
+
return toast({
|
|
60
|
+
message: 'Guardado correctamente.',
|
|
61
|
+
severity: 'success'
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}), /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], {
|
|
65
|
+
text: "Error",
|
|
66
|
+
onClick: function onClick() {
|
|
67
|
+
return toast({
|
|
68
|
+
message: 'No se pudo subir el archivo.',
|
|
69
|
+
severity: 'error'
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}), /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], {
|
|
73
|
+
text: "Warning",
|
|
74
|
+
onClick: function onClick() {
|
|
75
|
+
return toast({
|
|
76
|
+
message: 'Revisa los datos antes de continuar.',
|
|
77
|
+
severity: 'warning'
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}), /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], {
|
|
81
|
+
text: "Info",
|
|
82
|
+
onClick: function onClick() {
|
|
83
|
+
return toast({
|
|
84
|
+
message: 'La sesión caduca en 5 minutos.',
|
|
85
|
+
severity: 'info'
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}), /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], {
|
|
89
|
+
text: "Con t\xEDtulo",
|
|
90
|
+
onClick: function onClick() {
|
|
91
|
+
return toast({
|
|
92
|
+
title: 'Error al subir',
|
|
93
|
+
message: 'archivo.pdf supera el tamaño máximo.',
|
|
94
|
+
severity: 'error'
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}), /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], {
|
|
98
|
+
text: "Persistente (sin autoClose)",
|
|
99
|
+
onClick: function onClick() {
|
|
100
|
+
return toast({
|
|
101
|
+
message: 'Esto no se cierra solo.',
|
|
102
|
+
severity: 'info',
|
|
103
|
+
autoClose: false
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}), /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], {
|
|
107
|
+
id: "btn-short",
|
|
108
|
+
text: "Corto (1.5s)",
|
|
109
|
+
onClick: function onClick() {
|
|
110
|
+
return toast({
|
|
111
|
+
message: 'Se cierra en 1.5s',
|
|
112
|
+
severity: 'info',
|
|
113
|
+
autoClose: 1500
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}), /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], {
|
|
117
|
+
id: "btn-long",
|
|
118
|
+
text: "Largo (6s)",
|
|
119
|
+
onClick: function onClick() {
|
|
120
|
+
return toast({
|
|
121
|
+
message: 'Se cierra en 6s',
|
|
122
|
+
severity: 'warning',
|
|
123
|
+
autoClose: 6000
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}), /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], {
|
|
127
|
+
text: "Bottom-left",
|
|
128
|
+
onClick: function onClick() {
|
|
129
|
+
return toast({
|
|
130
|
+
message: 'Anclado abajo a la izquierda.',
|
|
131
|
+
severity: 'success',
|
|
132
|
+
vertical: 'bottom',
|
|
133
|
+
horizontal: 'left'
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}), /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], {
|
|
137
|
+
text: "Disparar 8 seguidos",
|
|
138
|
+
onClick: function onClick() {
|
|
139
|
+
var severities = ['success', 'error', 'warning', 'info'];
|
|
140
|
+
for (var i = 0; i < 8; i += 1) {
|
|
141
|
+
toast({
|
|
142
|
+
message: "Notificaci\xF3n n\xFAmero ".concat(i + 1),
|
|
143
|
+
severity: severities[i % severities.length]
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}), /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], {
|
|
148
|
+
text: "Cerrar todos",
|
|
149
|
+
variant: "secondary",
|
|
150
|
+
onClick: closeAll
|
|
151
|
+
}));
|
|
152
|
+
};
|
|
153
|
+
DesignToastButtons.displayName = "DesignToastButtons";
|
|
154
|
+
var DesignToast = function DesignToast() {
|
|
155
|
+
var _React$useState = _react["default"].useState(false),
|
|
156
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
157
|
+
showMountFire = _React$useState2[0],
|
|
158
|
+
setShowMountFire = _React$useState2[1];
|
|
159
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(DesignToastButtons, null), /*#__PURE__*/_react["default"].createElement("div", {
|
|
160
|
+
style: {
|
|
161
|
+
padding: '0 2rem'
|
|
162
|
+
}
|
|
163
|
+
}, /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], {
|
|
164
|
+
id: "btn-mount-fire",
|
|
165
|
+
text: "Montar componente que dispara al instante",
|
|
166
|
+
onClick: function onClick() {
|
|
167
|
+
return setShowMountFire(function (v) {
|
|
168
|
+
return !v;
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
}), showMountFire && /*#__PURE__*/_react["default"].createElement(MountAndFireImmediately, null)));
|
|
172
|
+
};
|
|
173
|
+
var _default = DesignToast;
|
|
174
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
.cbx-toast-stack {
|
|
2
|
+
position: fixed;
|
|
3
|
+
z-index: var(--zIdxToast);
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: var(--spacing8);
|
|
7
|
+
padding: var(--spacing16);
|
|
8
|
+
max-width: calc(100vw - 2 * var(--spacing16));
|
|
9
|
+
pointer-events: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.cbx-toast-stack-top {
|
|
13
|
+
top: 0;
|
|
14
|
+
flex-direction: column-reverse;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.cbx-toast-stack-bottom {
|
|
18
|
+
bottom: 0;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.cbx-toast-stack-right {
|
|
23
|
+
right: 0;
|
|
24
|
+
align-items: flex-end;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.cbx-toast-stack-left {
|
|
28
|
+
left: 0;
|
|
29
|
+
align-items: flex-start;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.cbx-toast-stack-center {
|
|
33
|
+
left: 50%;
|
|
34
|
+
transform: translateX(-50%);
|
|
35
|
+
align-items: center;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.cbx-toast {
|
|
39
|
+
pointer-events: auto;
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: flex-start;
|
|
42
|
+
gap: var(--spacing12);
|
|
43
|
+
min-width: 18rem;
|
|
44
|
+
max-width: 26rem;
|
|
45
|
+
padding: var(--spacing12) var(--spacing12) var(--spacing12) var(--spacing16);
|
|
46
|
+
border-radius: 0.75rem;
|
|
47
|
+
box-shadow: 0 0.375rem 1.5rem rgba(0, 0, 0, 0.18);
|
|
48
|
+
color: var(--white);
|
|
49
|
+
font-family: var(--font-primary);
|
|
50
|
+
opacity: 0;
|
|
51
|
+
transition: opacity 200ms ease, transform 200ms ease;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.cbx-toast-success {
|
|
55
|
+
background: var(--success);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.cbx-toast-error {
|
|
59
|
+
background: var(--error);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.cbx-toast-warning {
|
|
63
|
+
background: var(--warning);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.cbx-toast-info {
|
|
67
|
+
background: var(--info);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.cbx-toast-right {
|
|
71
|
+
transform: translateX(2rem);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.cbx-toast-left {
|
|
75
|
+
transform: translateX(-2rem);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.cbx-toast-center {
|
|
79
|
+
transform: translateY(-0.75rem);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.cbx-toast-visible {
|
|
83
|
+
opacity: 1;
|
|
84
|
+
transform: translate(0, 0);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.cbx-toast-leaving.cbx-toast-right {
|
|
88
|
+
opacity: 0;
|
|
89
|
+
transform: translateX(2rem);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.cbx-toast-leaving.cbx-toast-left {
|
|
93
|
+
opacity: 0;
|
|
94
|
+
transform: translateX(-2rem);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.cbx-toast-leaving.cbx-toast-center {
|
|
98
|
+
opacity: 0;
|
|
99
|
+
transform: translateY(-0.75rem);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.cbx-toast-icon {
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
font-size: 1.375rem;
|
|
106
|
+
line-height: 1;
|
|
107
|
+
flex-shrink: 0;
|
|
108
|
+
margin-top: 0.125rem;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.cbx-toast-content {
|
|
112
|
+
flex: 1;
|
|
113
|
+
min-width: 0;
|
|
114
|
+
word-break: break-word;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.cbx-toast-title {
|
|
118
|
+
margin-bottom: var(--spacing4);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.cbx-toast-message {
|
|
122
|
+
font-size: 0.875rem;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.cbx-toast-close.cbx-IconButton {
|
|
126
|
+
flex-shrink: 0;
|
|
127
|
+
width: 1.75rem;
|
|
128
|
+
min-width: 1.75rem;
|
|
129
|
+
height: 1.75rem;
|
|
130
|
+
padding: 0.25rem;
|
|
131
|
+
font-size: 1rem;
|
|
132
|
+
color: var(--white);
|
|
133
|
+
margin: -0.25rem -0.25rem 0 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.cbx-toast-close.cbx-IconButton:hover {
|
|
137
|
+
background-color: rgba(255, 255, 255, 0.16) !important;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@media (max-width: 480px) {
|
|
141
|
+
.cbx-toast-stack {
|
|
142
|
+
left: 0;
|
|
143
|
+
right: 0;
|
|
144
|
+
transform: none;
|
|
145
|
+
align-items: stretch;
|
|
146
|
+
padding: var(--spacing8);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.cbx-toast {
|
|
150
|
+
min-width: 0;
|
|
151
|
+
max-width: none;
|
|
152
|
+
width: 100%;
|
|
153
|
+
}
|
|
154
|
+
}
|