@popsure/dirty-swan 0.58.6 → 0.59.0-alpha
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/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +349 -285
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/logo/LogoBlack.d.ts +3 -0
- package/dist/cjs/lib/components/logo/LogoColor.d.ts +3 -0
- package/dist/cjs/lib/components/logo/LogoInverted.d.ts +368 -0
- package/dist/cjs/lib/components/logo/LogoInvertedColor.d.ts +368 -0
- package/dist/cjs/lib/components/logo/LogoOrangeBox.d.ts +3 -0
- package/dist/cjs/lib/components/logo/LogoPositiveBlack.d.ts +368 -0
- package/dist/cjs/lib/components/logo/LogoPositiveColor.d.ts +368 -0
- package/dist/cjs/lib/components/logo/LogoWhite.d.ts +3 -0
- package/dist/cjs/lib/components/logo/LogoWrapper/LogoWrapper.d.ts +9 -0
- package/dist/cjs/lib/components/logo/logo.stories.d.ts +10 -0
- package/dist/cjs/lib/components/table/Table.d.ts +2 -1
- package/dist/cjs/lib/components/table/Table.stories.d.ts +6 -2
- package/dist/cjs/lib/components/table/components/TableCell/CTACell/CTACell.d.ts +2 -1
- package/dist/cjs/lib/components/table/components/TableCell/CTACell/CTACell.stories.d.ts +1 -1
- package/dist/cjs/lib/components/table/components/TableContents/TableContents.d.ts +2 -1
- package/dist/cjs/lib/components/table/components/TableSection/TableSection.d.ts +2 -1
- package/dist/cjs/lib/index.d.ts +9 -1
- package/dist/cjs/lib/models/styles.d.ts +1 -1
- package/dist/esm/{TableSection-f41d4248.js → TableSection-5277dae1.js} +4 -3
- package/dist/esm/TableSection-5277dae1.js.map +1 -0
- package/dist/esm/components/accordion/index.js +3 -3
- package/dist/esm/components/accordion/index.js.map +1 -1
- package/dist/esm/components/autocompleteAddress/index.js +2 -2
- package/dist/esm/components/autocompleteAddress/index.js.map +1 -1
- package/dist/esm/components/badge/index.js +4 -4
- package/dist/esm/components/badge/index.js.map +1 -1
- package/dist/esm/components/button/index.stories.js +3 -3
- package/dist/esm/components/button/index.stories.js.map +1 -1
- package/dist/esm/components/cards/card/index.js +2 -2
- package/dist/esm/components/cards/card/index.js.map +1 -1
- package/dist/esm/components/cards/card/index.stories.js +8 -8
- package/dist/esm/components/cards/card/index.stories.js.map +1 -1
- package/dist/esm/components/cards/cardButton/index.js +2 -2
- package/dist/esm/components/cards/cardButton/index.js.map +1 -1
- package/dist/esm/components/cards/index.js +1 -1
- package/dist/esm/components/cards/index.js.map +1 -1
- package/dist/esm/components/cards/infoCard/index.stories.js +1 -1
- package/dist/esm/components/cards/infoCard/index.stories.js.map +1 -1
- package/dist/esm/components/chip/index.js +1 -1
- package/dist/esm/components/comparisonTable/components/AccordionItem/AccordionItem.js +1 -1
- package/dist/esm/components/comparisonTable/components/Row/index.js +1 -1
- package/dist/esm/components/comparisonTable/components/TableArrows/index.js +1 -1
- package/dist/esm/components/comparisonTable/components/TableInfoButton/index.js +1 -1
- package/dist/esm/components/comparisonTable/components/TableRating/index.js +1 -1
- package/dist/esm/components/comparisonTable/components/TableRowHeader/index.js +1 -1
- package/dist/esm/components/comparisonTable/components/TableRowHeader/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/index.js +1 -1
- package/dist/esm/components/downloadButton/index.js +1 -1
- package/dist/esm/components/downloadButton/index.js.map +1 -1
- package/dist/esm/components/icon/icons.stories.js +2 -2
- package/dist/esm/components/icon/icons.stories.js.map +1 -1
- package/dist/esm/components/icon/index.stories.js +1 -1
- package/dist/esm/components/icon/index.stories.js.map +1 -1
- package/dist/esm/components/informationBox/index.js +2 -2
- package/dist/esm/components/informationBox/index.js.map +1 -1
- package/dist/esm/components/input/autoSuggestInput/index.js +1 -1
- package/dist/esm/components/input/checkbox/index.js +1 -1
- package/dist/esm/components/input/checkbox/index.js.map +1 -1
- package/dist/esm/components/input/checkbox/index.stories.js +2 -2
- package/dist/esm/components/input/checkbox/index.stories.js.map +1 -1
- package/dist/esm/components/input/index.js +1 -1
- package/dist/esm/components/input/radio/index.js +1 -1
- package/dist/esm/components/input/radio/index.js.map +1 -1
- package/dist/esm/components/input/radio/index.stories.js +2 -2
- package/dist/esm/components/input/radio/index.stories.js.map +1 -1
- package/dist/esm/components/input/toggle/index.js +2 -2
- package/dist/esm/components/input/toggle/index.js.map +1 -1
- package/dist/esm/components/input/toggle/index.stories.js +2 -2
- package/dist/esm/components/input/toggle/index.stories.js.map +1 -1
- package/dist/esm/components/logo/LogoBlack.js +13 -0
- package/dist/esm/components/logo/LogoBlack.js.map +1 -0
- package/dist/esm/components/logo/LogoColor.js +13 -0
- package/dist/esm/components/logo/LogoColor.js.map +1 -0
- package/dist/esm/components/logo/LogoInverted.js +13 -0
- package/dist/esm/components/logo/LogoInverted.js.map +1 -0
- package/dist/esm/components/logo/LogoInvertedColor.js +13 -0
- package/dist/esm/components/logo/LogoInvertedColor.js.map +1 -0
- package/dist/esm/components/logo/LogoOrangeBox.js +13 -0
- package/dist/esm/components/logo/LogoOrangeBox.js.map +1 -0
- package/dist/esm/components/logo/LogoPositiveBlack.js +13 -0
- package/dist/esm/components/logo/LogoPositiveBlack.js.map +1 -0
- package/dist/esm/components/logo/LogoPositiveColor.js +13 -0
- package/dist/esm/components/logo/LogoPositiveColor.js.map +1 -0
- package/dist/esm/components/logo/LogoWhite.js +13 -0
- package/dist/esm/components/logo/LogoWhite.js.map +1 -0
- package/dist/esm/components/logo/LogoWrapper/LogoWrapper.js +16 -0
- package/dist/esm/components/logo/LogoWrapper/LogoWrapper.js.map +1 -0
- package/dist/esm/components/logo/logo.stories.js +28 -0
- package/dist/esm/components/logo/logo.stories.js.map +1 -0
- package/dist/esm/components/modal/genericModal/index.js +2 -2
- package/dist/esm/components/modal/genericModal/index.js.map +1 -1
- package/dist/esm/components/multiDropzone/UploadFileCell/index.js +4 -4
- package/dist/esm/components/multiDropzone/UploadFileCell/index.js.map +1 -1
- package/dist/esm/components/multiDropzone/index.js +3 -3
- package/dist/esm/components/multiDropzone/index.js.map +1 -1
- package/dist/esm/components/segmentedControl/index.js +4 -4
- package/dist/esm/components/segmentedControl/index.js.map +1 -1
- package/dist/esm/components/signaturePad/index.js +1 -1
- package/dist/esm/components/table/Table.js +9 -9
- package/dist/esm/components/table/Table.js.map +1 -1
- package/dist/esm/components/table/Table.stories.js +8 -4
- package/dist/esm/components/table/Table.stories.js.map +1 -1
- package/dist/esm/components/table/Table.test.js +2 -2
- package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.js +3 -3
- package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.js +1 -1
- package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.js +2 -2
- package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/CTACell/CTACell.js +11 -3
- package/dist/esm/components/table/components/TableCell/CTACell/CTACell.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/CTACell/CTACell.stories.js +1 -0
- package/dist/esm/components/table/components/TableCell/CTACell/CTACell.stories.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/TableCell.js +2 -2
- package/dist/esm/components/table/components/TableCell/TableCell.test.js +1 -1
- package/dist/esm/components/table/components/TableContents/TableContents.js +17 -8
- package/dist/esm/components/table/components/TableContents/TableContents.js.map +1 -1
- package/dist/esm/components/table/components/TableContents/TableContents.test.js +2 -2
- package/dist/esm/components/table/components/TableSection/TableSection.js +2 -2
- package/dist/esm/components/table/components/TableSection/TableSection.test.js +2 -2
- package/dist/esm/components/toast/index.js +1 -1
- package/dist/esm/components/toast/index.stories.js +2 -2
- package/dist/esm/components/toast/index.stories.js.map +1 -1
- package/dist/esm/components/toast/index.test.js +1 -1
- package/dist/esm/{index-4b19aafb.js → index-860896d2.js} +3 -3
- package/dist/esm/index-860896d2.js.map +1 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +11 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/components/logo/LogoBlack.d.ts +3 -0
- package/dist/esm/lib/components/logo/LogoColor.d.ts +3 -0
- package/dist/esm/lib/components/logo/LogoInverted.d.ts +368 -0
- package/dist/esm/lib/components/logo/LogoInvertedColor.d.ts +368 -0
- package/dist/esm/lib/components/logo/LogoOrangeBox.d.ts +3 -0
- package/dist/esm/lib/components/logo/LogoPositiveBlack.d.ts +368 -0
- package/dist/esm/lib/components/logo/LogoPositiveColor.d.ts +368 -0
- package/dist/esm/lib/components/logo/LogoWhite.d.ts +3 -0
- package/dist/esm/lib/components/logo/LogoWrapper/LogoWrapper.d.ts +9 -0
- package/dist/esm/lib/components/logo/logo.stories.d.ts +10 -0
- package/dist/esm/lib/components/table/Table.d.ts +2 -1
- package/dist/esm/lib/components/table/Table.stories.d.ts +6 -2
- package/dist/esm/lib/components/table/components/TableCell/CTACell/CTACell.d.ts +2 -1
- package/dist/esm/lib/components/table/components/TableCell/CTACell/CTACell.stories.d.ts +1 -1
- package/dist/esm/lib/components/table/components/TableContents/TableContents.d.ts +2 -1
- package/dist/esm/lib/components/table/components/TableSection/TableSection.d.ts +2 -1
- package/dist/esm/lib/index.d.ts +9 -1
- package/dist/esm/lib/models/styles.d.ts +1 -1
- package/dist/esm/scss/private/base/demo.js +1 -1
- package/dist/esm/scss/public/demo.js +143 -133
- package/dist/esm/scss/public/demo.js.map +1 -1
- package/dist/esm/util/images/index.stories.js +2 -2
- package/dist/esm/util/images/index.stories.js.map +1 -1
- package/dist/index.css +328 -378
- package/dist/index.css.map +1 -1
- package/dist/lib/scss/index.scss +1 -1
- package/dist/lib/scss/private/base/_typography.scss +4 -4
- package/dist/lib/scss/private/base/style.module.scss +3 -3
- package/dist/lib/scss/private/components/_badge.scss +3 -3
- package/dist/lib/scss/private/components/_buttons.scss +39 -39
- package/dist/lib/scss/private/components/_cards.scss +2 -2
- package/dist/lib/scss/private/components/_input.scss +26 -26
- package/dist/lib/scss/private/components/_notices.scss +4 -4
- package/dist/lib/scss/private/components/_spinner.scss +1 -1
- package/dist/lib/scss/public/colors/default.scss +79 -91
- package/dist/lib/scss/public/demo.tsx +152 -136
- package/dist/lib/scss/public/shadows.scss +10 -5
- package/dist/lib/scss/third-party/_google_places.scss +3 -3
- package/package.json +1 -1
- package/src/index.tsx +8 -0
- package/src/lib/components/accordion/index.tsx +2 -2
- package/src/lib/components/accordion/style.module.scss +10 -10
- package/src/lib/components/autocompleteAddress/index.tsx +1 -1
- package/src/lib/components/autocompleteAddress/style.module.scss +1 -1
- package/src/lib/components/badge/index.tsx +4 -4
- package/src/lib/components/button/index.stories.tsx +8 -8
- package/src/lib/components/cards/card/index.stories.tsx +17 -18
- package/src/lib/components/cards/card/index.tsx +1 -1
- package/src/lib/components/cards/card/style.module.scss +7 -7
- package/src/lib/components/cards/cardButton/index.tsx +2 -2
- package/src/lib/components/cards/infoCard/index.stories.tsx +1 -1
- package/src/lib/components/cards/infoCard/index.tsx +1 -1
- package/src/lib/components/chip/style.module.scss +6 -6
- package/src/lib/components/comparisonTable/components/AccordionItem/AccordionItem.module.scss +2 -2
- package/src/lib/components/comparisonTable/components/Row/style.module.scss +4 -4
- package/src/lib/components/comparisonTable/components/TableArrows/style.module.scss +5 -5
- package/src/lib/components/comparisonTable/components/TableInfoButton/style.module.scss +4 -4
- package/src/lib/components/comparisonTable/components/TableRating/style.module.scss +2 -2
- package/src/lib/components/comparisonTable/components/TableRowHeader/index.tsx +1 -1
- package/src/lib/components/comparisonTable/style.module.scss +3 -3
- package/src/lib/components/dateSelector/components/datepicker.scss +12 -12
- package/src/lib/components/downloadButton/index.tsx +2 -2
- package/src/lib/components/icon/icons.stories.tsx +1 -1
- package/src/lib/components/icon/index.stories.tsx +1 -1
- package/src/lib/components/icon/style.module.scss +1 -1
- package/src/lib/components/informationBox/index.tsx +1 -1
- package/src/lib/components/input/autoSuggestInput/style.module.scss +3 -3
- package/src/lib/components/input/checkbox/index.stories.tsx +2 -2
- package/src/lib/components/input/checkbox/index.tsx +1 -1
- package/src/lib/components/input/radio/index.stories.tsx +2 -2
- package/src/lib/components/input/radio/index.tsx +1 -1
- package/src/lib/components/input/style.module.scss +6 -6
- package/src/lib/components/input/toggle/index.stories.tsx +2 -2
- package/src/lib/components/input/toggle/index.tsx +1 -1
- package/src/lib/components/input/toggle/styles.module.scss +6 -6
- package/src/lib/components/logo/LogoBlack.tsx +13 -0
- package/src/lib/components/logo/LogoColor.tsx +13 -0
- package/src/lib/components/logo/LogoInverted.tsx +41 -0
- package/src/lib/components/logo/LogoInvertedColor.tsx +41 -0
- package/src/lib/components/logo/LogoOrangeBox.tsx +21 -0
- package/src/lib/components/logo/LogoPositiveBlack.tsx +41 -0
- package/src/lib/components/logo/LogoPositiveColor.tsx +41 -0
- package/src/lib/components/logo/LogoWhite.tsx +13 -0
- package/src/lib/components/logo/LogoWrapper/LogoWrapper.tsx +29 -0
- package/src/lib/components/logo/LogoWrapper/styles.module.scss +3 -0
- package/src/lib/components/logo/logo.stories.tsx +75 -0
- package/src/lib/components/modal/genericModal/index.tsx +1 -1
- package/src/lib/components/modal/genericModal/style.module.scss +3 -3
- package/src/lib/components/multiDropzone/UploadFileCell/index.tsx +4 -4
- package/src/lib/components/multiDropzone/UploadFileCell/style.module.scss +4 -4
- package/src/lib/components/multiDropzone/index.tsx +2 -2
- package/src/lib/components/multiDropzone/style.module.scss +3 -3
- package/src/lib/components/segmentedControl/index.tsx +4 -4
- package/src/lib/components/segmentedControl/style.module.scss +1 -1
- package/src/lib/components/signaturePad/style.module.scss +6 -6
- package/src/lib/components/table/Table.stories.tsx +6 -0
- package/src/lib/components/table/Table.tsx +5 -1
- package/src/lib/components/table/components/TableCell/BaseCell/BaseCell.module.scss +1 -1
- package/src/lib/components/table/components/TableCell/BaseCell/BaseCell.tsx +5 -5
- package/src/lib/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.module.scss +3 -3
- package/src/lib/components/table/components/TableCell/ButtonCell/ButtonCell.module.scss +7 -7
- package/src/lib/components/table/components/TableCell/ButtonCell/ButtonCell.tsx +1 -1
- package/src/lib/components/table/components/TableCell/CTACell/CTACell.tsx +12 -6
- package/src/lib/components/table/components/TableCell/TableCell.module.scss +1 -1
- package/src/lib/components/table/components/TableContents/TableContents.tsx +65 -51
- package/src/lib/components/table/components/TableSection/TableSection.tsx +8 -1
- package/src/lib/components/toast/index.stories.tsx +1 -1
- package/src/lib/components/toast/index.tsx +1 -1
- package/src/lib/components/toast/style.module.scss +4 -4
- package/src/lib/index.tsx +16 -0
- package/src/lib/models/styles.ts +12 -31
- package/src/lib/scss/index.scss +1 -1
- package/src/lib/scss/private/base/_typography.scss +4 -4
- package/src/lib/scss/private/base/border_radius.mdx +2 -2
- package/src/lib/scss/private/base/flex/flex.mdx +12 -12
- package/src/lib/scss/private/base/style.module.scss +3 -3
- package/src/lib/scss/private/components/_badge.scss +3 -3
- package/src/lib/scss/private/components/_buttons.scss +39 -39
- package/src/lib/scss/private/components/_cards.scss +2 -2
- package/src/lib/scss/private/components/_input.scss +26 -26
- package/src/lib/scss/private/components/_notices.scss +4 -4
- package/src/lib/scss/private/components/_spinner.scss +1 -1
- package/src/lib/scss/public/colors/default.scss +79 -91
- package/src/lib/scss/public/colors.mdx +1 -1
- package/src/lib/scss/public/demo.tsx +152 -136
- package/src/lib/scss/public/shadows.mdx +13 -12
- package/src/lib/scss/public/shadows.scss +10 -5
- package/src/lib/scss/third-party/_google_places.scss +3 -3
- package/src/lib/util/images/index.stories.tsx +1 -1
- package/src/lib/util/images/style.module.scss +1 -1
- package/dist/esm/TableSection-f41d4248.js.map +0 -1
- package/dist/esm/index-4b19aafb.js.map +0 -1
|
@@ -21,11 +21,11 @@ import '../../../icon/icons/Info.js';
|
|
|
21
21
|
import '../../../../index-5e72c3d4.js';
|
|
22
22
|
import './CTACell/CTACell.js';
|
|
23
23
|
import '../IconRenderer/IconRenderer.js';
|
|
24
|
+
import '../../../button/index.js';
|
|
24
25
|
import './CardCell/CardCell.js';
|
|
25
26
|
import '../../../cards/card/index.js';
|
|
26
27
|
import '../../../icon/icons/ChevronRight.js';
|
|
27
28
|
import './ButtonCell/ButtonCell.js';
|
|
28
|
-
import '../../../button/index.js';
|
|
29
29
|
|
|
30
30
|
var openModal = jest.fn();
|
|
31
31
|
var setup = function (_a) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as __assign, _ as __spreadArray } from '../../../../tslib.es6-a39f91fc.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { useState } from 'react';
|
|
4
|
-
import { T as TableSection } from '../../../../TableSection-
|
|
4
|
+
import { T as TableSection } from '../../../../TableSection-5277dae1.js';
|
|
5
5
|
import ChevronDownIcon from '../../../icon/icons/ChevronDown.js';
|
|
6
6
|
import ChevronUpIcon from '../../../icon/icons/ChevronUp.js';
|
|
7
7
|
import { Card } from '../../../cards/card/index.js';
|
|
@@ -23,10 +23,10 @@ import '../../../comparisonTable/components/TableInfoButton/index.js';
|
|
|
23
23
|
import '../../../icon/icons/Info.js';
|
|
24
24
|
import '../../../../index-5e72c3d4.js';
|
|
25
25
|
import '../TableCell/CTACell/CTACell.js';
|
|
26
|
+
import '../../../button/index.js';
|
|
26
27
|
import '../TableCell/CardCell/CardCell.js';
|
|
27
28
|
import '../../../icon/icons/ChevronRight.js';
|
|
28
29
|
import '../TableCell/ButtonCell/ButtonCell.js';
|
|
29
|
-
import '../../../button/index.js';
|
|
30
30
|
import '../../../../useMediaQuery-1a3a2432.js';
|
|
31
31
|
|
|
32
32
|
var css_248z = ".TableContents-module_cardWrapper__2OVMv {\n height: 88px;\n}\n\n.TableContents-module_card__Mmz6h {\n position: absolute;\n left: 0;\n right: 0;\n z-index: 3;\n}\n\n.TableContents-module_cardIcon__2DXbp {\n width: 20px;\n margin-right: 8px;\n}";
|
|
@@ -35,8 +35,8 @@ styleInject(css_248z);
|
|
|
35
35
|
|
|
36
36
|
var TableContents = function (_a) {
|
|
37
37
|
var _b, _c;
|
|
38
|
-
var className = _a.className, collapsibleSections = _a.collapsibleSections, tableData = _a.tableData, _d = _a.hideColumns, hideColumns = _d === void 0 ? [] : _d, hideDetails = _a.hideDetails, isMobile = _a.isMobile, openModal = _a.openModal, shouldHideDetails = _a.shouldHideDetails, title = _a.title, cellReplacements = _a.cellReplacements, imageComponent = _a.imageComponent;
|
|
39
|
-
var
|
|
38
|
+
var className = _a.className, collapsibleSections = _a.collapsibleSections, tableData = _a.tableData, _d = _a.hideColumns, hideColumns = _d === void 0 ? [] : _d, hideDetails = _a.hideDetails, _e = _a.hideRows, hideRows = _e === void 0 ? [] : _e, isMobile = _a.isMobile, openModal = _a.openModal, shouldHideDetails = _a.shouldHideDetails, title = _a.title, cellReplacements = _a.cellReplacements, imageComponent = _a.imageComponent;
|
|
39
|
+
var _f = useState(null), isSectionOpen = _f[0], setOpenSection = _f[1];
|
|
40
40
|
var firstHeadRow = (_c = (_b = tableData === null || tableData === void 0 ? void 0 : tableData[0]) === null || _b === void 0 ? void 0 : _b.rows) === null || _c === void 0 ? void 0 : _c[0];
|
|
41
41
|
var tableWidth = isMobile ? "".concat((firstHeadRow === null || firstHeadRow === void 0 ? void 0 : firstHeadRow.length) * 50, "%") : '';
|
|
42
42
|
var handleToggleSection = function (index) {
|
|
@@ -44,6 +44,8 @@ var TableContents = function (_a) {
|
|
|
44
44
|
return currentSection === index ? null : index;
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
+
// Calculate global row offset for each section
|
|
48
|
+
var globalRowOffset = 0;
|
|
47
49
|
return (jsx("div", { style: { width: tableWidth }, children: tableData.map(function (_a, index) {
|
|
48
50
|
var rows = _a.rows, _b = _a.section, section = _b === void 0 ? {} : _b;
|
|
49
51
|
var isFirstSection = index === 0;
|
|
@@ -52,14 +54,21 @@ var TableContents = function (_a) {
|
|
|
52
54
|
: isSectionOpen === index || isFirstSection;
|
|
53
55
|
var isVisible = hideDetails ? !shouldHideDetails : true;
|
|
54
56
|
var renderedIcon = (jsx(IconRenderer, { icon: section.icon, imageComponent: imageComponent, width: 20 }));
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
// Calculate section-specific hideRows based on global offset
|
|
58
|
+
var sectionHideRows = hideRows
|
|
59
|
+
.map(function (globalRowIndex) { return globalRowIndex - globalRowOffset; })
|
|
60
|
+
.filter(function (localRowIndex) { return localRowIndex >= 0 && localRowIndex < rows.length; });
|
|
61
|
+
var result = (isFirstSection || isVisible) && (jsxs("div", { children: [(section === null || section === void 0 ? void 0 : section.title) && (jsx("div", { className: styles.cardWrapper, children: jsx("div", { className: classNames(styles.card, 'p0'), children: jsx(Card, __assign({ actionIcon: isExpanded ? (jsx(ChevronUpIcon, { size: 24 })) : (jsx(ChevronDownIcon, { size: 24 })), "aria-expanded": isExpanded ? 'true' : 'false', "aria-hidden": true, classNames: {
|
|
62
|
+
wrapper: 'bg-purple-100 pl16',
|
|
63
|
+
icon: classNames(styles.cardIcon, 'tc-neutral-900'),
|
|
58
64
|
}, dropShadow: false, icon: renderedIcon, title: section.title, titleVariant: "medium" }, (collapsibleSections
|
|
59
65
|
? {
|
|
60
66
|
onClick: function () { return handleToggleSection(index); },
|
|
61
67
|
}
|
|
62
|
-
: {}))) }) })), jsx(Collapsible, { isExpanded: isExpanded, children: jsx(TableSection, { className: classNames(className, 'mb24'), tableCellRows: isFirstSection ? rows : __spreadArray([firstHeadRow], rows, true), hideColumns: hideColumns, hideHeader: true, openModal: openModal, title: "".concat(title).concat((section === null || section === void 0 ? void 0 : section.title) ? " - ".concat(section.title) : ''), width: tableWidth, cellReplacements: cellReplacements, imageComponent: imageComponent }) })] }, index))
|
|
68
|
+
: {}))) }) })), jsx(Collapsible, { isExpanded: isExpanded, children: jsx(TableSection, { className: classNames(className, 'mb24'), tableCellRows: isFirstSection ? rows : __spreadArray([firstHeadRow], rows, true), hideColumns: hideColumns, hideRows: sectionHideRows, hideHeader: true, openModal: openModal, title: "".concat(title).concat((section === null || section === void 0 ? void 0 : section.title) ? " - ".concat(section.title) : ''), width: tableWidth, cellReplacements: cellReplacements, imageComponent: imageComponent }) })] }, index));
|
|
69
|
+
// Update global offset for next section (excluding header row for non-first sections)
|
|
70
|
+
globalRowOffset += rows.length;
|
|
71
|
+
return result;
|
|
63
72
|
}) }));
|
|
64
73
|
};
|
|
65
74
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableContents.js","sources":["../../../../../../../src/lib/components/table/components/TableContents/TableContents.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { TableSection } from '../TableSection/TableSection';\nimport { ChevronDownIcon, ChevronUpIcon } from '../../../icon';\nimport { Card } from '../../../cards/card';\n\nimport styles from './TableContents.module.scss';\nimport classNames from 'classnames';\nimport { Collapsible } from './Collapsible';\nimport { CellReplacements, ModalFunction, TableData } from '../../types';\nimport { IconRenderer } from '../IconRenderer/IconRenderer';\n\nexport interface TableContentsProps {\n className?: string;\n collapsibleSections?: boolean;\n tableData: TableData;\n hideColumns?: number[];\n hideDetails?: boolean;\n isMobile?: boolean;\n openModal?: ModalFunction;\n shouldHideDetails?: boolean;\n title: string;\n cellReplacements?: CellReplacements;\n imageComponent?: (args: any) => JSX.Element;\n}\n\nconst TableContents = ({\n className,\n collapsibleSections,\n tableData,\n hideColumns = [],\n hideDetails,\n isMobile,\n openModal,\n shouldHideDetails,\n title,\n cellReplacements,\n imageComponent,\n}: TableContentsProps) => {\n const [isSectionOpen, setOpenSection] = useState<number | null>(null);\n const firstHeadRow = tableData?.[0]?.rows?.[0];\n const tableWidth = isMobile ? `${firstHeadRow?.length * 50}%` : '';\n const handleToggleSection = (index: number) => {\n setOpenSection((currentSection) =>\n currentSection === index ? null : index\n );\n };\n\n return (\n <div style={{ width: tableWidth }}>\n {tableData.map(({ rows, section = {} }, index) => {\n const isFirstSection = index === 0;\n const isExpanded = !collapsibleSections\n ? true\n : isSectionOpen === index || isFirstSection;\n const isVisible = hideDetails ? !shouldHideDetails : true;\n\n const renderedIcon = (\n <IconRenderer icon={section.icon} imageComponent={imageComponent} width={20} />\n );\n\n
|
|
1
|
+
{"version":3,"file":"TableContents.js","sources":["../../../../../../../src/lib/components/table/components/TableContents/TableContents.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { TableSection } from '../TableSection/TableSection';\nimport { ChevronDownIcon, ChevronUpIcon } from '../../../icon';\nimport { Card } from '../../../cards/card';\n\nimport styles from './TableContents.module.scss';\nimport classNames from 'classnames';\nimport { Collapsible } from './Collapsible';\nimport { CellReplacements, ModalFunction, TableData } from '../../types';\nimport { IconRenderer } from '../IconRenderer/IconRenderer';\n\nexport interface TableContentsProps {\n className?: string;\n collapsibleSections?: boolean;\n tableData: TableData;\n hideColumns?: number[];\n hideDetails?: boolean;\n hideRows?: number[];\n isMobile?: boolean;\n openModal?: ModalFunction;\n shouldHideDetails?: boolean;\n title: string;\n cellReplacements?: CellReplacements;\n imageComponent?: (args: any) => JSX.Element;\n}\n\nconst TableContents = ({\n className,\n collapsibleSections,\n tableData,\n hideColumns = [],\n hideDetails,\n hideRows = [],\n isMobile,\n openModal,\n shouldHideDetails,\n title,\n cellReplacements,\n imageComponent,\n}: TableContentsProps) => {\n const [isSectionOpen, setOpenSection] = useState<number | null>(null);\n const firstHeadRow = tableData?.[0]?.rows?.[0];\n const tableWidth = isMobile ? `${firstHeadRow?.length * 50}%` : '';\n const handleToggleSection = (index: number) => {\n setOpenSection((currentSection) =>\n currentSection === index ? null : index\n );\n };\n\n // Calculate global row offset for each section\n let globalRowOffset = 0;\n\n return (\n <div style={{ width: tableWidth }}>\n {tableData.map(({ rows, section = {} }, index) => {\n const isFirstSection = index === 0;\n const isExpanded = !collapsibleSections\n ? true\n : isSectionOpen === index || isFirstSection;\n const isVisible = hideDetails ? !shouldHideDetails : true;\n\n const renderedIcon = (\n <IconRenderer icon={section.icon} imageComponent={imageComponent} width={20} />\n );\n\n // Calculate section-specific hideRows based on global offset\n const sectionHideRows = hideRows\n .map(globalRowIndex => globalRowIndex - globalRowOffset)\n .filter(localRowIndex => localRowIndex >= 0 && localRowIndex < rows.length);\n\n const result = (isFirstSection || isVisible) && (\n <div key={index}>\n {section?.title && (\n <div className={styles.cardWrapper}>\n <div className={classNames(styles.card, 'p0')}>\n <Card\n actionIcon={\n isExpanded ? (\n <ChevronUpIcon size={24} />\n ) : (\n <ChevronDownIcon size={24} />\n )\n }\n aria-expanded={isExpanded ? 'true' : 'false'}\n aria-hidden\n classNames={{\n wrapper: 'bg-purple-100 pl16',\n icon: classNames(styles.cardIcon, 'tc-neutral-900'),\n }}\n dropShadow={false}\n icon={renderedIcon}\n title={section.title}\n titleVariant=\"medium\"\n {...(collapsibleSections\n ? {\n onClick: () => handleToggleSection(index),\n }\n : {})}\n />\n </div>\n </div>\n )}\n\n <Collapsible isExpanded={isExpanded}>\n <TableSection\n className={classNames(className, 'mb24')}\n tableCellRows={\n isFirstSection ? rows : [firstHeadRow, ...rows]\n }\n hideColumns={hideColumns}\n hideRows={sectionHideRows}\n hideHeader\n openModal={openModal}\n title={`${title}${\n section?.title ? ` - ${section.title}` : ''\n }`}\n width={tableWidth}\n cellReplacements={cellReplacements}\n imageComponent={imageComponent}\n />\n </Collapsible>\n </div>\n );\n\n // Update global offset for next section (excluding header row for non-first sections)\n globalRowOffset += rows.length;\n\n return result;\n })}\n </div>\n );\n};\n\nexport { TableContents };\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0BM,aAAa,GAAG,UAAC,EAaF;;QAZnB,SAAS,eAAA,EACT,mBAAmB,yBAAA,EACnB,SAAS,eAAA,EACT,mBAAgB,EAAhB,WAAW,mBAAG,EAAE,KAAA,EAChB,WAAW,iBAAA,EACX,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAA,EACb,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,iBAAiB,uBAAA,EACjB,KAAK,WAAA,EACL,gBAAgB,sBAAA,EACh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AE,GAAG,EAAE,CAC3C,EACF,KAAK,EAAE,UAAU,EACjB,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,cAAc,GAC9B,GACU,KAjDN,KAAK,CAkDT,CACP,CAAC;;YAGF,eAAe,IAAI,IAAI,CAAC,MAAM,CAAC;YAE/B,OAAO,MAAM,CAAC;SACf,CAAC,GACE,EACN;AACJ;;;;"}
|
|
@@ -6,7 +6,7 @@ import 'react';
|
|
|
6
6
|
import 'react-dom';
|
|
7
7
|
import '../../../../_commonjsHelpers-4730bd53.js';
|
|
8
8
|
import 'react-dom/test-utils';
|
|
9
|
-
import '../../../../TableSection-
|
|
9
|
+
import '../../../../TableSection-5277dae1.js';
|
|
10
10
|
import '../../../../index-6ea95111.js';
|
|
11
11
|
import '../../../../style-inject.es-1f59c1d0.js';
|
|
12
12
|
import '../TableCell/TableCell.js';
|
|
@@ -23,11 +23,11 @@ import '../../../icon/icons/Info.js';
|
|
|
23
23
|
import '../../../../index-5e72c3d4.js';
|
|
24
24
|
import '../TableCell/CTACell/CTACell.js';
|
|
25
25
|
import '../IconRenderer/IconRenderer.js';
|
|
26
|
+
import '../../../button/index.js';
|
|
26
27
|
import '../TableCell/CardCell/CardCell.js';
|
|
27
28
|
import '../../../cards/card/index.js';
|
|
28
29
|
import '../../../icon/icons/ChevronRight.js';
|
|
29
30
|
import '../TableCell/ButtonCell/ButtonCell.js';
|
|
30
|
-
import '../../../button/index.js';
|
|
31
31
|
import '../../../../useMediaQuery-1a3a2432.js';
|
|
32
32
|
import '../../../icon/icons/ChevronDown.js';
|
|
33
33
|
import '../../../icon/icons/ChevronUp.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../../../../tslib.es6-a39f91fc.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import '../../../../index-6ea95111.js';
|
|
4
|
-
export { T as TableSection } from '../../../../TableSection-
|
|
4
|
+
export { T as TableSection } from '../../../../TableSection-5277dae1.js';
|
|
5
5
|
import '../TableCell/TableCell.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import '../../../../useMediaQuery-1a3a2432.js';
|
|
@@ -20,9 +20,9 @@ import '../../../icon/icons/Info.js';
|
|
|
20
20
|
import '../../../../index-5e72c3d4.js';
|
|
21
21
|
import '../TableCell/CTACell/CTACell.js';
|
|
22
22
|
import '../IconRenderer/IconRenderer.js';
|
|
23
|
+
import '../../../button/index.js';
|
|
23
24
|
import '../TableCell/CardCell/CardCell.js';
|
|
24
25
|
import '../../../cards/card/index.js';
|
|
25
26
|
import '../../../icon/icons/ChevronRight.js';
|
|
26
27
|
import '../TableCell/ButtonCell/ButtonCell.js';
|
|
27
|
-
import '../../../button/index.js';
|
|
28
28
|
//# sourceMappingURL=TableSection.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as __assign } from '../../../../tslib.es6-a39f91fc.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { c as customRender, s as screen } from '../../../../customRender-be47569b.js';
|
|
4
|
-
import { T as TableSection } from '../../../../TableSection-
|
|
4
|
+
import { T as TableSection } from '../../../../TableSection-5277dae1.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'react-dom';
|
|
7
7
|
import '../../../../_commonjsHelpers-4730bd53.js';
|
|
@@ -22,11 +22,11 @@ import '../../../icon/icons/Info.js';
|
|
|
22
22
|
import '../../../../index-5e72c3d4.js';
|
|
23
23
|
import '../TableCell/CTACell/CTACell.js';
|
|
24
24
|
import '../IconRenderer/IconRenderer.js';
|
|
25
|
+
import '../../../button/index.js';
|
|
25
26
|
import '../TableCell/CardCell/CardCell.js';
|
|
26
27
|
import '../../../cards/card/index.js';
|
|
27
28
|
import '../../../icon/icons/ChevronRight.js';
|
|
28
29
|
import '../TableCell/ButtonCell/ButtonCell.js';
|
|
29
|
-
import '../../../button/index.js';
|
|
30
30
|
import '../../../../useMediaQuery-1a3a2432.js';
|
|
31
31
|
|
|
32
32
|
var tableCellRows = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../../tslib.es6-a39f91fc.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import '../../index-6ea95111.js';
|
|
4
|
-
export { T as Toast, a as Toaster, t as toast } from '../../index-
|
|
4
|
+
export { T as Toast, a as Toaster, t as toast } from '../../index-860896d2.js';
|
|
5
5
|
import '../icon/icons/X.js';
|
|
6
6
|
import '../../style-inject.es-1f59c1d0.js';
|
|
7
7
|
import 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as __assign } from '../../tslib.es6-a39f91fc.js';
|
|
2
2
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { T as Toast, a as Toaster, s as styles, t as toast } from '../../index-
|
|
3
|
+
import { T as Toast, a as Toaster, s as styles, t as toast } from '../../index-860896d2.js';
|
|
4
4
|
import { Button } from '../button/index.js';
|
|
5
5
|
import { c as classNames } from '../../index-6ea95111.js';
|
|
6
6
|
import '../../style-inject.es-1f59c1d0.js';
|
|
@@ -73,7 +73,7 @@ var ToastStory = function (_a) {
|
|
|
73
73
|
type: type,
|
|
74
74
|
action: action
|
|
75
75
|
}); };
|
|
76
|
-
return (jsxs(Fragment, { children: [jsxs("div", { className: 'mb16', children: [jsx("div", { children: "Show a toast using the following code:" }), jsx("pre", { className: 'bg-
|
|
76
|
+
return (jsxs(Fragment, { children: [jsxs("div", { className: 'mb16', children: [jsx("div", { children: "Show a toast using the following code:" }), jsx("pre", { className: 'bg-neutral-300 br4 d-inline-flex p8 mt8', children: "() => toast(title, { description, type, action })" })] }), jsx(Toaster, { classNames: toasterClassNames }), jsx(Button, { onClick: showToast, children: "Click here to trigger toast" })] }));
|
|
77
77
|
};
|
|
78
78
|
ToastStory.storyName = "Toast";
|
|
79
79
|
var ToastTypes = function (props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.js","sources":["../../../../../src/lib/components/toast/index.stories.tsx"],"sourcesContent":["import { ToasterProps, Toast, ToastProps, ToastType, Toaster, toast } from '.';\nimport { Button } from '../button';\nimport styles from './style.module.scss';\nimport classNames from 'classnames';\n\nconst toastTypes: ToastType[] = ['success', 'warning', 'error', 'information'];\n\nconst story = {\n title: 'JSX/Toast',\n component: Toast,\n argTypes: {\n title: {\n description: 'Title of the toast.',\n },\n description: {\n description: 'Additional description content to be displayed inside the toast.',\n },\n type: {\n description: 'Type of toast to display. This changes the styles/colors of the toast.',\n },\n action: {\n description: 'Object containing a possible action button inside the toast.',\n },\n duration: {\n description: 'Duration in ms that the toast should be displayed.',\n table: {\n defaultValue: { summary: 3000 },\n }\n },\n onDismiss: {\n table: {\n disable: true,\n },\n },\n classNames: {\n description: 'Allows customization of toast and toast wrapper (named as Toaster)',\n table: {\n category: 'Toaster props',\n },\n },\n },\n args: {\n title: 'We couldn’t open the chat',\n description: \"We couldn't open the chat description. We couldn't open the chat description.\",\n action: {\n title: 'Send an email',\n onClick: () => {}\n },\n type: 'success',\n duration: 3000,\n classNames: {\n toast: \"\",\n wrapper: \"\"\n }\n },\n};\n\nconst FakeInlineToast = ({ \n title, \n description, \n action, \n type,\n}: Omit<ToastProps, 'onDismiss'>) => (\n <div className='mb32'>\n <div\n className={classNames(styles.toast, 'br8 bs-lg d-inline-flex')}\n style={{\n padding: \"12px 20px\"\n }}\n >\n <Toast \n title={title}\n onDismiss={() => {}}\n description={description}\n action={action}\n type={type}\n />\n </div>\n </div>\n);\n\nexport const ToastStory = ({ \n title, \n description, \n action, \n type, \n duration, \n classNames: toasterClassNames \n}: ToastProps & ToasterProps) => {\n const showToast = () => toast(\n title, \n {\n description,\n duration,\n type,\n action\n }\n );\n\n return (\n <>\n <div className='mb16'>\n <div>\n Show a toast using the following code:\n </div>\n <pre className='bg-
|
|
1
|
+
{"version":3,"file":"index.stories.js","sources":["../../../../../src/lib/components/toast/index.stories.tsx"],"sourcesContent":["import { ToasterProps, Toast, ToastProps, ToastType, Toaster, toast } from '.';\nimport { Button } from '../button';\nimport styles from './style.module.scss';\nimport classNames from 'classnames';\n\nconst toastTypes: ToastType[] = ['success', 'warning', 'error', 'information'];\n\nconst story = {\n title: 'JSX/Toast',\n component: Toast,\n argTypes: {\n title: {\n description: 'Title of the toast.',\n },\n description: {\n description: 'Additional description content to be displayed inside the toast.',\n },\n type: {\n description: 'Type of toast to display. This changes the styles/colors of the toast.',\n },\n action: {\n description: 'Object containing a possible action button inside the toast.',\n },\n duration: {\n description: 'Duration in ms that the toast should be displayed.',\n table: {\n defaultValue: { summary: 3000 },\n }\n },\n onDismiss: {\n table: {\n disable: true,\n },\n },\n classNames: {\n description: 'Allows customization of toast and toast wrapper (named as Toaster)',\n table: {\n category: 'Toaster props',\n },\n },\n },\n args: {\n title: 'We couldn’t open the chat',\n description: \"We couldn't open the chat description. We couldn't open the chat description.\",\n action: {\n title: 'Send an email',\n onClick: () => {}\n },\n type: 'success',\n duration: 3000,\n classNames: {\n toast: \"\",\n wrapper: \"\"\n }\n },\n};\n\nconst FakeInlineToast = ({ \n title, \n description, \n action, \n type,\n}: Omit<ToastProps, 'onDismiss'>) => (\n <div className='mb32'>\n <div\n className={classNames(styles.toast, 'br8 bs-lg d-inline-flex')}\n style={{\n padding: \"12px 20px\"\n }}\n >\n <Toast \n title={title}\n onDismiss={() => {}}\n description={description}\n action={action}\n type={type}\n />\n </div>\n </div>\n);\n\nexport const ToastStory = ({ \n title, \n description, \n action, \n type, \n duration, \n classNames: toasterClassNames \n}: ToastProps & ToasterProps) => {\n const showToast = () => toast(\n title, \n {\n description,\n duration,\n type,\n action\n }\n );\n\n return (\n <>\n <div className='mb16'>\n <div>\n Show a toast using the following code:\n </div>\n <pre className='bg-neutral-300 br4 d-inline-flex p8 mt8'>\n {\"() => toast(title, { description, type, action })\"}\n </pre>\n </div>\n <Toaster classNames={toasterClassNames} />\n\n <Button onClick={showToast}>Click here to trigger toast</Button>\n </>\n );\n};\n\nToastStory.storyName = \"Toast\";\n\nexport const ToastTypes = (props: ToastProps) => {\n return (\n <>\n {toastTypes.map((toastType) => (\n <div key={toastType} className='d-flex fd-column'>\n <h3 className='p-h3 mb16'>{toastType}</h3>\n <FakeInlineToast {...props} type={toastType} />\n </div>\n ))}\n </>\n );\n};\n\nexport const ToastContent = ({ title, description, action }: ToastProps) => {\n return (\n <div className='d-flex fd-column'>\n <FakeInlineToast title={title} />\n <FakeInlineToast title={title} description={description} />\n <FakeInlineToast title={title} description={description} action={action} />\n <FakeInlineToast title={title} action={action} />\n </div>\n );\n};\n\nexport default story;\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;AAKA,IAAM,UAAU,GAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;IAEzE,KAAK,GAAG;IACZ,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,WAAW,EAAE,qBAAqB;SACnC;QACD,WAAW,EAAE;YACX,WAAW,EAAE,kEAAkE;SAChF;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,wEAAwE;SACtF;QACD,MAAM,EAAE;YACN,WAAW,EAAE,8DAA8D;SAC5E;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,oDAAoD;YACjE,KAAK,EAAE;gBACL,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;aAChC;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE;gBACL,OAAO,EAAE,IAAI;aACd;SACF;QACD,UAAU,EAAE;YACV,WAAW,EAAE,oEAAoE;YACjF,KAAK,EAAE;gBACL,QAAQ,EAAE,eAAe;aAC1B;SACF;KACF;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,2BAA2B;QAClC,WAAW,EAAE,+EAA+E;QAC5F,MAAM,EAAE;YACN,KAAK,EAAE,eAAe;YACtB,OAAO,EAAE,eAAQ;SAClB;QACD,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,UAAU,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AAI,SAAS,EAAC,WAAW,YAAE,SAAS,GAAM,EAC1CA,IAAC,eAAe,eAAK,KAAK,IAAE,IAAI,EAAE,SAAS,IAAI,KAFvC,SAAS,CAGb,IACP,CAAC,GACD,EACH;AACJ,EAAE;IAEW,YAAY,GAAG,UAAC,EAA0C;QAAxC,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,MAAM,YAAA;IACvD,QACEC,cAAK,SAAS,EAAC,kBAAkB,aAC/BD,IAAC,eAAe,IAAC,KAAK,EAAE,KAAK,GAAI,EACjCA,IAAC,eAAe,IAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,GAAI,EAC3DA,IAAC,eAAe,IAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAI,EAC3EA,IAAC,eAAe,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAI,IAC7C,EACN;AACJ;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as __awaiter, d as __generator } from '../../tslib.es6-a39f91fc.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { c as customRender, s as screen } from '../../customRender-be47569b.js';
|
|
4
|
-
import { T as Toast } from '../../index-
|
|
4
|
+
import { T as Toast } from '../../index-860896d2.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'react-dom';
|
|
7
7
|
import '../../_commonjsHelpers-4730bd53.js';
|
|
@@ -6,7 +6,7 @@ import React__default from 'react';
|
|
|
6
6
|
import { a as getAugmentedNamespace } from './_commonjsHelpers-4730bd53.js';
|
|
7
7
|
import XIcon from './components/icon/icons/X.js';
|
|
8
8
|
|
|
9
|
-
var css_248z = ".style-module_toastWrapper__1SC4C {\n margin: 0;\n padding: 0;\n}\n\n.style-module_toast__NY8bo {\n position: relative;\n margin: 0;\n padding: 0;\n width: 392px;\n overflow: hidden;\n}\n\n.style-module_toastContent__3RHpU {\n padding: 4px 0 4px 8px;\n}\n\n.style-module_toastSidebar__NUxSa {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 8px;\n}\n.style-module_toastSidebar--information__2nKT_ {\n background-color: #
|
|
9
|
+
var css_248z = ".style-module_toastWrapper__1SC4C {\n margin: 0;\n padding: 0;\n}\n\n.style-module_toast__NY8bo {\n position: relative;\n margin: 0;\n padding: 0;\n width: 392px;\n overflow: hidden;\n}\n\n.style-module_toastContent__3RHpU {\n padding: 4px 0 4px 8px;\n}\n\n.style-module_toastSidebar__NUxSa {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 8px;\n}\n.style-module_toastSidebar--information__2nKT_ {\n background-color: #8BB4EA;\n}\n.style-module_toastSidebar--error__15Vwo {\n background-color: #E55454;\n}\n.style-module_toastSidebar--warning__33N9y {\n background-color: #F0D26F;\n}\n.style-module_toastSidebar--success__27652 {\n background-color: #85DCB4;\n}\n\n.style-module_closeButton__3S_5n {\n background-color: transparent;\n color: #d2d2d9;\n min-width: 24px;\n}\n.style-module_closeButton__3S_5n:hover {\n color: #696971;\n}\n\n.style-module_actionButton__3ziRG {\n background-color: transparent;\n}\n.style-module_actionButton--warning__2I0LT {\n color: #C5A33E;\n}\n.style-module_actionButton--warning__2I0LT:hover {\n color: #483D18;\n}\n.style-module_actionButton--error__1kJIR {\n color: #E55454;\n}\n.style-module_actionButton--error__1kJIR:hover {\n color: #C64848;\n}\n.style-module_actionButton--success__y96NI {\n color: #599278;\n}\n.style-module_actionButton--success__y96NI:hover {\n color: #2B4639;\n}\n.style-module_actionButton--information__1oeAG {\n color: #5F7BA0;\n}\n.style-module_actionButton--information__1oeAG:hover {\n color: #2D394A;\n}";
|
|
10
10
|
var styles = {"toastWrapper":"style-module_toastWrapper__1SC4C","toast":"style-module_toast__NY8bo","toastContent":"style-module_toastContent__3RHpU","toastSidebar":"style-module_toastSidebar__NUxSa","toastSidebar--information":"style-module_toastSidebar--information__2nKT_","toastSidebar--error":"style-module_toastSidebar--error__15Vwo","toastSidebar--warning":"style-module_toastSidebar--warning__33N9y","toastSidebar--success":"style-module_toastSidebar--success__27652","closeButton":"style-module_closeButton__3S_5n","actionButton":"style-module_actionButton__3ziRG","actionButton--warning":"style-module_actionButton--warning__2I0LT","actionButton--error":"style-module_actionButton--error__1kJIR","actionButton--success":"style-module_actionButton--success__y96NI","actionButton--information":"style-module_actionButton--information__1oeAG"};
|
|
11
11
|
styleInject(css_248z);
|
|
12
12
|
|
|
@@ -210,7 +210,7 @@ var Toaster = function (_a) {
|
|
|
210
210
|
};
|
|
211
211
|
var Toast = function (_a) {
|
|
212
212
|
var action = _a.action, description = _a.description, onDismiss = _a.onDismiss, title = _a.title, _b = _a.type, type = _b === void 0 ? "success" : _b;
|
|
213
|
-
return (jsxs("div", { className: classNames(styles.toastContent, 'd-flex jc-between w100'), children: [jsx("div", { className: classNames(styles.toastSidebar, styles["toastSidebar--".concat(type)]) }), jsxs("div", { className: 'd-flex fd-column jc-center ta-left mr8', children: [jsx("h4", { className: 'p-h4', children: title }), description && (jsx("p", { className: 'p-p p-p--small mt8 tc-
|
|
213
|
+
return (jsxs("div", { className: classNames(styles.toastContent, 'd-flex jc-between w100'), children: [jsx("div", { className: classNames(styles.toastSidebar, styles["toastSidebar--".concat(type)]) }), jsxs("div", { className: 'd-flex fd-column jc-center ta-left mr8', children: [jsx("h4", { className: 'p-h4', children: title }), description && (jsx("p", { className: 'p-p p-p--small mt8 tc-neutral-700', children: description })), action && (jsx("button", { className: classNames(styles.actionButton, styles["actionButton--".concat(type)], 'mt8 c-pointer ta-left'), onClick: function () {
|
|
214
214
|
action.onClick();
|
|
215
215
|
onDismiss();
|
|
216
216
|
}, type: "button", children: action.title }))] }), jsx("div", { className: 'd-flex ai-center', children: jsx("button", { className: classNames(styles.closeButton, 'c-pointer'), onClick: onDismiss, "data-testid": "toast-close-button", children: jsx(XIcon, { size: 24 }) }) })] }));
|
|
@@ -221,4 +221,4 @@ var toast = function (title, _a) {
|
|
|
221
221
|
};
|
|
222
222
|
|
|
223
223
|
export { Toast as T, Toaster as a, styles as s, toast as t };
|
|
224
|
-
//# sourceMappingURL=index-
|
|
224
|
+
//# sourceMappingURL=index-860896d2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-860896d2.js","sources":["../../node_modules/goober/dist/goober.esm.js","../../node_modules/react-hot-toast/dist/index.js","../../../src/lib/components/toast/index.tsx"],"sourcesContent":["let e={data:\"\"},t=t=>\"object\"==typeof window?((t?t.querySelector(\"#_goober\"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement(\"style\")),{innerHTML:\" \",id:\"_goober\"})).firstChild:t||e,r=e=>{let r=t(e),l=r.data;return r.data=\"\",l},l=/(?:([\\u0080-\\uFFFF\\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\\s*)/g,a=/\\/\\*[^]*?\\*\\/| +/g,n=/\\n+/g,o=(e,t)=>{let r=\"\",l=\"\",a=\"\";for(let n in e){let c=e[n];\"@\"==n[0]?\"i\"==n[1]?r=n+\" \"+c+\";\":l+=\"f\"==n[1]?o(c,n):n+\"{\"+o(c,\"k\"==n[1]?\"\":t)+\"}\":\"object\"==typeof c?l+=o(c,t?t.replace(/([^,])+/g,e=>n.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+\" \"+t:t)):n):null!=c&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,\"-$&\").toLowerCase(),a+=o.p?o.p(n,c):n+\":\"+c+\";\")}return r+(t&&a?t+\"{\"+a+\"}\":a)+l},c={},s=e=>{if(\"object\"==typeof e){let t=\"\";for(let r in e)t+=r+s(e[r]);return t}return e},i=(e,t,r,i,p)=>{let u=s(e),d=c[u]||(c[u]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return\"go\"+r})(u));if(!c[d]){let t=u!==e?e:(e=>{let t,r,o=[{}];for(;t=l.exec(e.replace(a,\"\"));)t[4]?o.shift():t[3]?(r=t[3].replace(n,\" \").trim(),o.unshift(o[0][r]=o[0][r]||{})):o[0][t[1]]=t[2].replace(n,\" \").trim();return o[0]})(e);c[d]=o(p?{[\"@keyframes \"+d]:t}:t,r?\"\":\".\"+d)}let f=r&&c.g?c.g:null;return r&&(c.g=c[d]),((e,t,r,l)=>{l?t.data=t.data.replace(l,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(c[d],t,i,f),d},p=(e,t,r)=>e.reduce((e,l,a)=>{let n=t[a];if(n&&n.call){let e=n(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;n=t?\".\"+t:e&&\"object\"==typeof e?e.props?\"\":o(e,\"\"):!1===e?\"\":e}return e+l+(null==n?\"\":n)},\"\");function u(e){let r=this||{},l=e.call?e(r.p):e;return i(l.unshift?l.raw?p(l,[].slice.call(arguments,1),r.p):l.reduce((e,t)=>Object.assign(e,t&&t.call?t(r.p):t),{}):l,t(r.target),r.g,r.o,r.k)}let d,f,g,b=u.bind({g:1}),h=u.bind({k:1});function m(e,t,r,l){o.p=t,d=e,f=r,g=l}function j(e,t){let r=this||{};return function(){let l=arguments;function a(n,o){let c=Object.assign({},n),s=c.className||a.className;r.p=Object.assign({theme:f&&f()},c),r.o=/ *go\\d+/.test(s),c.className=u.apply(r,l)+(s?\" \"+s:\"\"),t&&(c.ref=o);let i=e;return e[0]&&(i=c.as||e,delete c.as),g&&i[0]&&g(c),d(i,c)}return t?t(a):a}}export{u as css,r as extractCss,b as glob,h as keyframes,m as setup,j as styled};\n","\"use client\";\n\"use strict\";var Y=Object.create;var E=Object.defineProperty;var q=Object.getOwnPropertyDescriptor;var G=Object.getOwnPropertyNames;var K=Object.getPrototypeOf,Z=Object.prototype.hasOwnProperty;var ee=(e,t)=>{for(var o in t)E(e,o,{get:t[o],enumerable:!0})},j=(e,t,o,s)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let r of G(t))!Z.call(e,r)&&r!==o&&E(e,r,{get:()=>t[r],enumerable:!(s=q(t,r))||s.enumerable});return e};var W=(e,t,o)=>(o=e!=null?Y(K(e)):{},j(t||!e||!e.__esModule?E(o,\"default\",{value:e,enumerable:!0}):o,e)),te=e=>j(E({},\"__esModule\",{value:!0}),e);var Ve={};ee(Ve,{CheckmarkIcon:()=>F,ErrorIcon:()=>w,LoaderIcon:()=>M,ToastBar:()=>$,ToastIcon:()=>U,Toaster:()=>J,default:()=>_e,resolveValue:()=>u,toast:()=>n,useToaster:()=>V,useToasterStore:()=>_});module.exports=te(Ve);var oe=e=>typeof e==\"function\",u=(e,t)=>oe(e)?e(t):e;var Q=(()=>{let e=0;return()=>(++e).toString()})(),R=(()=>{let e;return()=>{if(e===void 0&&typeof window<\"u\"){let t=matchMedia(\"(prefers-reduced-motion: reduce)\");e=!t||t.matches}return e}})();var k=require(\"react\"),re=20;var v=new Map,se=1e3,X=e=>{if(v.has(e))return;let t=setTimeout(()=>{v.delete(e),l({type:4,toastId:e})},se);v.set(e,t)},ae=e=>{let t=v.get(e);t&&clearTimeout(t)},H=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,re)};case 1:return t.toast.id&&ae(t.toast.id),{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:o}=t;return e.toasts.find(a=>a.id===o.id)?H(e,{type:1,toast:o}):H(e,{type:0,toast:o});case 3:let{toastId:s}=t;return s?X(s):e.toasts.forEach(a=>{X(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===s||s===void 0?{...a,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let r=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+r}))}}},I=[],D={toasts:[],pausedAt:void 0},l=e=>{D=H(D,e),I.forEach(t=>{t(D)})},ie={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},_=(e={})=>{let[t,o]=(0,k.useState)(D);(0,k.useEffect)(()=>(I.push(o),()=>{let r=I.indexOf(o);r>-1&&I.splice(r,1)}),[t]);let s=t.toasts.map(r=>{var a,c;return{...e,...e[r.type],...r,duration:r.duration||((a=e[r.type])==null?void 0:a.duration)||(e==null?void 0:e.duration)||ie[r.type],style:{...e.style,...(c=e[r.type])==null?void 0:c.style,...r.style}}});return{...t,toasts:s}};var ce=(e,t=\"blank\",o)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:\"status\",\"aria-live\":\"polite\"},message:e,pauseDuration:0,...o,id:(o==null?void 0:o.id)||Q()}),S=e=>(t,o)=>{let s=ce(t,e,o);return l({type:2,toast:s}),s.id},n=(e,t)=>S(\"blank\")(e,t);n.error=S(\"error\");n.success=S(\"success\");n.loading=S(\"loading\");n.custom=S(\"custom\");n.dismiss=e=>{l({type:3,toastId:e})};n.remove=e=>l({type:4,toastId:e});n.promise=(e,t,o)=>{let s=n.loading(t.loading,{...o,...o==null?void 0:o.loading});return e.then(r=>(n.success(u(t.success,r),{id:s,...o,...o==null?void 0:o.success}),r)).catch(r=>{n.error(u(t.error,r),{id:s,...o,...o==null?void 0:o.error})}),e};var A=require(\"react\");var pe=(e,t)=>{l({type:1,toast:{id:e,height:t}})},de=()=>{l({type:5,time:Date.now()})},V=e=>{let{toasts:t,pausedAt:o}=_(e);(0,A.useEffect)(()=>{if(o)return;let a=Date.now(),c=t.map(i=>{if(i.duration===1/0)return;let d=(i.duration||0)+i.pauseDuration-(a-i.createdAt);if(d<0){i.visible&&n.dismiss(i.id);return}return setTimeout(()=>n.dismiss(i.id),d)});return()=>{c.forEach(i=>i&&clearTimeout(i))}},[t,o]);let s=(0,A.useCallback)(()=>{o&&l({type:6,time:Date.now()})},[o]),r=(0,A.useCallback)((a,c)=>{let{reverseOrder:i=!1,gutter:d=8,defaultPosition:p}=c||{},g=t.filter(m=>(m.position||p)===(a.position||p)&&m.height),z=g.findIndex(m=>m.id===a.id),O=g.filter((m,B)=>B<z&&m.visible).length;return g.filter(m=>m.visible).slice(...i?[O+1]:[0,O]).reduce((m,B)=>m+(B.height||0)+d,0)},[t]);return{toasts:t,handlers:{updateHeight:pe,startPause:de,endPause:s,calculateOffset:r}}};var T=W(require(\"react\")),b=require(\"goober\");var y=W(require(\"react\")),x=require(\"goober\");var h=require(\"goober\"),me=h.keyframes`\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n opacity: 1;\n}`,ue=h.keyframes`\nfrom {\n transform: scale(0);\n opacity: 0;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}`,le=h.keyframes`\nfrom {\n transform: scale(0) rotate(90deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(90deg);\n\topacity: 1;\n}`,w=(0,h.styled)(\"div\")`\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ${e=>e.primary||\"#ff4b4b\"};\n position: relative;\n transform: rotate(45deg);\n\n animation: ${me} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n\n &:after,\n &:before {\n content: '';\n animation: ${ue} 0.15s ease-out forwards;\n animation-delay: 150ms;\n position: absolute;\n border-radius: 3px;\n opacity: 0;\n background: ${e=>e.secondary||\"#fff\"};\n bottom: 9px;\n left: 4px;\n height: 2px;\n width: 12px;\n }\n\n &:before {\n animation: ${le} 0.15s ease-out forwards;\n animation-delay: 180ms;\n transform: rotate(90deg);\n }\n`;var C=require(\"goober\"),Te=C.keyframes`\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n`,M=(0,C.styled)(\"div\")`\n width: 12px;\n height: 12px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: ${e=>e.secondary||\"#e0e0e0\"};\n border-right-color: ${e=>e.primary||\"#616161\"};\n animation: ${Te} 1s linear infinite;\n`;var P=require(\"goober\"),fe=P.keyframes`\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n\topacity: 1;\n}`,ye=P.keyframes`\n0% {\n\theight: 0;\n\twidth: 0;\n\topacity: 0;\n}\n40% {\n height: 0;\n\twidth: 6px;\n\topacity: 1;\n}\n100% {\n opacity: 1;\n height: 10px;\n}`,F=(0,P.styled)(\"div\")`\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ${e=>e.primary||\"#61d345\"};\n position: relative;\n transform: rotate(45deg);\n\n animation: ${fe} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n &:after {\n content: '';\n box-sizing: border-box;\n animation: ${ye} 0.2s ease-out forwards;\n opacity: 0;\n animation-delay: 200ms;\n position: absolute;\n border-right: 2px solid;\n border-bottom: 2px solid;\n border-color: ${e=>e.secondary||\"#fff\"};\n bottom: 6px;\n left: 6px;\n height: 10px;\n width: 6px;\n }\n`;var ge=(0,x.styled)(\"div\")`\n position: absolute;\n`,he=(0,x.styled)(\"div\")`\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 20px;\n min-height: 20px;\n`,xe=x.keyframes`\nfrom {\n transform: scale(0.6);\n opacity: 0.4;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}`,be=(0,x.styled)(\"div\")`\n position: relative;\n transform: scale(0.6);\n opacity: 0.4;\n min-width: 20px;\n animation: ${xe} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n`,U=({toast:e})=>{let{icon:t,type:o,iconTheme:s}=e;return t!==void 0?typeof t==\"string\"?y.createElement(be,null,t):t:o===\"blank\"?null:y.createElement(he,null,y.createElement(M,{...s}),o!==\"loading\"&&y.createElement(ge,null,o===\"error\"?y.createElement(w,{...s}):y.createElement(F,{...s})))};var Se=e=>`\n0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,Ae=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}\n`,Pe=\"0%{opacity:0;} 100%{opacity:1;}\",Oe=\"0%{opacity:1;} 100%{opacity:0;}\",Ee=(0,b.styled)(\"div\")`\n display: flex;\n align-items: center;\n background: #fff;\n color: #363636;\n line-height: 1.3;\n will-change: transform;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n max-width: 350px;\n pointer-events: auto;\n padding: 8px 10px;\n border-radius: 8px;\n`,Re=(0,b.styled)(\"div\")`\n display: flex;\n justify-content: center;\n margin: 4px 10px;\n color: inherit;\n flex: 1 1 auto;\n white-space: pre-line;\n`,ve=(e,t)=>{let s=e.includes(\"top\")?1:-1,[r,a]=R()?[Pe,Oe]:[Se(s),Ae(s)];return{animation:t?`${(0,b.keyframes)(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${(0,b.keyframes)(a)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},$=T.memo(({toast:e,position:t,style:o,children:s})=>{let r=e.height?ve(e.position||t||\"top-center\",e.visible):{opacity:0},a=T.createElement(U,{toast:e}),c=T.createElement(Re,{...e.ariaProps},u(e.message,e));return T.createElement(Ee,{className:e.className,style:{...r,...o,...e.style}},typeof s==\"function\"?s({icon:a,message:c}):T.createElement(T.Fragment,null,a,c))});var N=require(\"goober\"),f=W(require(\"react\"));(0,N.setup)(f.createElement);var Ie=({id:e,className:t,style:o,onHeightUpdate:s,children:r})=>{let a=f.useCallback(c=>{if(c){let i=()=>{let d=c.getBoundingClientRect().height;s(e,d)};i(),new MutationObserver(i).observe(c,{subtree:!0,childList:!0,characterData:!0})}},[e,s]);return f.createElement(\"div\",{ref:a,className:t,style:o},r)},De=(e,t)=>{let o=e.includes(\"top\"),s=o?{top:0}:{bottom:0},r=e.includes(\"center\")?{justifyContent:\"center\"}:e.includes(\"right\")?{justifyContent:\"flex-end\"}:{};return{left:0,right:0,display:\"flex\",position:\"absolute\",transition:R()?void 0:\"all 230ms cubic-bezier(.21,1.02,.73,1)\",transform:`translateY(${t*(o?1:-1)}px)`,...s,...r}},ke=N.css`\n z-index: 9999;\n > * {\n pointer-events: auto;\n }\n`,L=16,J=({reverseOrder:e,position:t=\"top-center\",toastOptions:o,gutter:s,children:r,containerStyle:a,containerClassName:c})=>{let{toasts:i,handlers:d}=V(o);return f.createElement(\"div\",{style:{position:\"fixed\",zIndex:9999,top:L,left:L,right:L,bottom:L,pointerEvents:\"none\",...a},className:c,onMouseEnter:d.startPause,onMouseLeave:d.endPause},i.map(p=>{let g=p.position||t,z=d.calculateOffset(p,{reverseOrder:e,gutter:s,defaultPosition:t}),O=De(g,z);return f.createElement(Ie,{id:p.id,key:p.id,onHeightUpdate:d.updateHeight,className:p.visible?ke:\"\",style:O},p.type===\"custom\"?u(p.message,p):r?r(p):f.createElement($,{toast:p,position:g}))}))};var _e=n;0&&(module.exports={CheckmarkIcon,ErrorIcon,LoaderIcon,ToastBar,ToastIcon,Toaster,resolveValue,toast,useToaster,useToasterStore});\n//# sourceMappingURL=index.js.map","import { ReactNode } from 'react';\nimport classNames from 'classnames';\n\nimport styles from './style.module.scss';\nimport { Toaster as HotToaster, toast as hotToast } from 'react-hot-toast';\nimport { XIcon } from '../icon';\n\nexport interface ToasterProps {\n classNames?: {\n wrapper?: string;\n toast?: string;\n };\n}\n\nexport type ToastType = 'warning' | 'error' | 'success' | 'information';\n\nexport interface ToastOptions {\n type?: ToastType;\n description?: ReactNode;\n duration?: number;\n action?: {\n title: string;\n onClick: () => void;\n }\n};\n\nexport interface ToastProps extends ToastOptions { \n onDismiss: () => void,\n title: string \n};\n\nconst Toaster = ({ classNames: toasterClassNames }: ToasterProps) => (\n <HotToaster \n containerClassName={toasterClassNames?.wrapper}\n toastOptions={{\n className: classNames(styles.toast, 'bs-lg', toasterClassNames?.toast),\n }}\n />\n);\n\nconst Toast = ({\n action,\n description,\n onDismiss,\n title,\n type = \"success\"\n}: ToastProps) => (\n <div \n className={classNames(\n styles.toastContent,\n 'd-flex jc-between w100'\n )}>\n <div\n className={classNames(\n styles.toastSidebar, \n styles[`toastSidebar--${type}`]\n )}\n />\n <div className='d-flex fd-column jc-center ta-left mr8'>\n <h4 className='p-h4'>{title}</h4>\n \n {description && (\n <p className='p-p p-p--small mt8 tc-neutral-700'>{description}</p>\n )}\n\n {action && (\n <button\n className={classNames(\n styles.actionButton,\n styles[`actionButton--${type}`],\n 'mt8 c-pointer ta-left'\n )}\n onClick={() => {\n action.onClick();\n onDismiss();\n }}\n type=\"button\"\n >\n {action.title}\n </button>\n )}\n </div>\n\n <div className='d-flex ai-center'>\n <button\n className={classNames(styles.closeButton, 'c-pointer')}\n onClick={onDismiss}\n data-testid=\"toast-close-button\"\n >\n <XIcon size={24} /> \n </button>\n </div>\n </div>\n);\n\nconst toast = (title: string, { duration = 3000, ...toastOptions }: ToastOptions) => (\n hotToast((t) => (\n <Toast\n title={title} \n onDismiss={() => hotToast.dismiss(t.id)} \n {...toastOptions}\n />\n ), { duration })\n);\n\nexport { Toaster, Toast, toast };\n"],"names":["l","n","u","f","b","h","j","require$$0","_jsx","HotToaster","_jsxs","hotToast"],"mappings":";;;;;;;;;;;;AAAA,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,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AAE,QAAQ,UAAA,EAAE,CAAC,EACjB;;;;;"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Accordion, DateSelector, SignaturePad, AutocompleteAddress, Input, MultiDropzone, IbanInput, CurrencyInput, BottomModal, RegularModal, BottomOrRegularModal, FullScreenModal, InfoCard, CardButton, Card, Button, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, SegmentedControl, DownloadButton, Checkbox, Radio, Link, InformationBox, Badge, images, illustrations, Spinner, Table, Toggle, Toaster, toast, useEscapeKey, useFocusWithin, useMediaQuery, useOnClickOutside, } from './lib';
|
|
1
|
+
export { Accordion, DateSelector, SignaturePad, AutocompleteAddress, Input, MultiDropzone, IbanInput, CurrencyInput, BottomModal, RegularModal, BottomOrRegularModal, FullScreenModal, InfoCard, CardButton, Card, Button, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, SegmentedControl, DownloadButton, Checkbox, Radio, Link, InformationBox, Badge, images, illustrations, Spinner, Table, Toggle, Toaster, toast, useEscapeKey, useFocusWithin, useMediaQuery, useOnClickOutside, LogoColor, LogoWhite, LogoBlack, LogoOrangeBox, LogoInvertedColor, LogoInverted, LogoPositiveColor, LogoPositiveBlack, } from './lib';
|
|
2
2
|
export * from './lib/components/icon';
|
|
3
3
|
export type { AccordionProps, DownloadStatus, InformationBoxProps, InputProps, IllustrationKeys, FileType, MultiDropzoneProps, TableHeader, UploadedFile, UploadStatus, CardProps, IconWrapperProps, TableData, TableProps, } from './lib';
|
package/dist/esm/index.js
CHANGED
|
@@ -27,12 +27,20 @@ export { Link } from './components/link/index.js';
|
|
|
27
27
|
export { i as illustrations, a as images } from './index-29e6f39e.js';
|
|
28
28
|
export { Spinner } from './components/spinner/index.js';
|
|
29
29
|
export { Toggle } from './components/input/toggle/index.js';
|
|
30
|
-
export { a as Toaster, t as toast } from './index-
|
|
30
|
+
export { a as Toaster, t as toast } from './index-860896d2.js';
|
|
31
31
|
export { Accordion } from './components/accordion/index.js';
|
|
32
32
|
export { Table } from './components/table/Table.js';
|
|
33
33
|
import { useCallback, useEffect } from 'react';
|
|
34
34
|
export { u as useMediaQuery } from './useMediaQuery-1a3a2432.js';
|
|
35
35
|
export { u as useOnClickOutside } from './Calendar-2d7e51b5.js';
|
|
36
|
+
export { LogoColor } from './components/logo/LogoColor.js';
|
|
37
|
+
export { LogoWhite } from './components/logo/LogoWhite.js';
|
|
38
|
+
export { LogoBlack } from './components/logo/LogoBlack.js';
|
|
39
|
+
export { LogoOrangeBox } from './components/logo/LogoOrangeBox.js';
|
|
40
|
+
export { LogoInvertedColor } from './components/logo/LogoInvertedColor.js';
|
|
41
|
+
export { LogoInverted } from './components/logo/LogoInverted.js';
|
|
42
|
+
export { LogoPositiveColor } from './components/logo/LogoPositiveColor.js';
|
|
43
|
+
export { LogoPositiveBlack } from './components/logo/LogoPositiveBlack.js';
|
|
36
44
|
export { default as Svg1Icon } from './components/icon/icons/1.js';
|
|
37
45
|
export { default as Svg2Icon } from './components/icon/icons/2.js';
|
|
38
46
|
export { default as Svg3Icon } from './components/icon/icons/3.js';
|
|
@@ -458,11 +466,12 @@ import './components/table/components/IconRenderer/IconRenderer.js';
|
|
|
458
466
|
import './components/table/components/TableCell/CardCell/CardCell.js';
|
|
459
467
|
import './components/table/components/TableCell/ButtonCell/ButtonCell.js';
|
|
460
468
|
import './components/table/components/TableContents/TableContents.js';
|
|
461
|
-
import './TableSection-
|
|
469
|
+
import './TableSection-5277dae1.js';
|
|
462
470
|
import './components/table/components/TableContents/Collapsible.js';
|
|
463
471
|
import './useTableNavigation-f929fbc9.js';
|
|
464
472
|
import './components/table/components/TableControls/TableControls.js';
|
|
465
473
|
import './useScrollSync-b2d28bed.js';
|
|
474
|
+
import './components/logo/LogoWrapper/LogoWrapper.js';
|
|
466
475
|
|
|
467
476
|
var useEscapeKey = function (callback) {
|
|
468
477
|
var handleOnEscape = useCallback(function (e) {
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/lib/hooks/useEscapeKey.ts","../../../src/lib/hooks/useFocusWithin.ts"],"sourcesContent":["import { useCallback, useEffect } from 'react';\n\nexport const useEscapeKey = (callback: () => void) => {\n const handleOnEscape = useCallback(\n (e: KeyboardEvent) => {\n if (e.key === 'Escape') {\n callback();\n }\n },\n [callback]\n );\n\n useEffect(() => {\n window.addEventListener('keydown', handleOnEscape);\n\n return () => window.removeEventListener('keydown', handleOnEscape);\n }, [handleOnEscape]);\n};\n","import { useEffect } from 'react';\n\nexport const useFocusWithin = (\n ref: HTMLElement | null,\n callback: (isFocusWithin: boolean) => void\n) => {\n useEffect(() => {\n const handleOnFocusIn = () => {\n if (!ref) {\n return;\n }\n\n const hasFocus = ref?.contains(document.activeElement);\n\n callback(Boolean(hasFocus));\n };\n\n document.addEventListener('focusin', handleOnFocusIn);\n\n return () => document?.removeEventListener('focusin', handleOnFocusIn);\n }, [callback, ref]);\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/lib/hooks/useEscapeKey.ts","../../../src/lib/hooks/useFocusWithin.ts"],"sourcesContent":["import { useCallback, useEffect } from 'react';\n\nexport const useEscapeKey = (callback: () => void) => {\n const handleOnEscape = useCallback(\n (e: KeyboardEvent) => {\n if (e.key === 'Escape') {\n callback();\n }\n },\n [callback]\n );\n\n useEffect(() => {\n window.addEventListener('keydown', handleOnEscape);\n\n return () => window.removeEventListener('keydown', handleOnEscape);\n }, [handleOnEscape]);\n};\n","import { useEffect } from 'react';\n\nexport const useFocusWithin = (\n ref: HTMLElement | null,\n callback: (isFocusWithin: boolean) => void\n) => {\n useEffect(() => {\n const handleOnFocusIn = () => {\n if (!ref) {\n return;\n }\n\n const hasFocus = ref?.contains(document.activeElement);\n\n callback(Boolean(hasFocus));\n };\n\n document.addEventListener('focusin', handleOnFocusIn);\n\n return () => document?.removeEventListener('focusin', handleOnFocusIn);\n }, [callback, ref]);\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEa,YAAY,GAAG,UAAC,QAAoB;IAC/C,IAAM,cAAc,GAAG,WAAW,CAChC,UAAC,CAAgB;QACf,IAAI,CAAC,CAAC,GAAG,KAAK,QAAQ,EAAE;YACtB,QAAQ,EAAE,CAAC;SACZ;KACF,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,SAAS,CAAC;QACR,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;QAEnD,OAAO,cAAM,OAAA,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,cAAc,CAAC,GAAA,CAAC;KACpE,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;AACvB;;ICfa,cAAc,GAAG,UAC5B,GAAuB,EACvB,QAA0C;IAE1C,SAAS,CAAC;QACR,IAAM,eAAe,GAAG;YACtB,IAAI,CAAC,GAAG,EAAE;gBACR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