@aivenio/aquarium 1.18.0-rc1 → 1.18.0-rc3
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/_variables.scss +1 -1
- package/dist/_variables_timescale.scss +1 -1
- package/dist/atoms.cjs +5 -4
- package/dist/atoms.mjs +5 -4
- package/dist/charts.cjs +2180 -0
- package/dist/charts.mjs +2073 -0
- package/dist/src/atoms/Checkbox/Checkbox.d.ts +1 -1
- package/dist/src/atoms/LineClamp/LineClamp.d.ts +1 -1
- package/dist/src/atoms/Popover/Popover.d.ts +2 -2
- package/dist/src/atoms/RadioButton/RadioButton.d.ts +1 -1
- package/dist/src/atoms/Select/Select.d.ts +1 -1
- package/dist/src/atoms/Switch/Switch.d.ts +1 -1
- package/dist/src/charts/Axis/Axis.d.ts +24 -0
- package/dist/src/charts/Axis/Axis.js +40 -0
- package/dist/src/charts/BarChart/BarChart.d.ts +12 -0
- package/dist/src/charts/BarChart/BarChart.js +39 -0
- package/dist/src/charts/Container/Container.d.ts +3 -0
- package/dist/src/charts/Container/Container.js +4 -0
- package/dist/src/charts/Grid/Grid.d.ts +3 -0
- package/dist/src/charts/Grid/Grid.js +4 -0
- package/dist/src/charts/Tooltip/Tooltip.d.ts +4 -0
- package/dist/src/charts/Tooltip/Tooltip.js +9 -0
- package/dist/src/charts/index.d.ts +7 -0
- package/dist/src/charts/index.js +8 -0
- package/dist/src/charts/lib/timeIntervals.d.ts +1 -0
- package/dist/src/charts/lib/timeIntervals.js +3 -0
- package/dist/src/charts/lib/utils.d.ts +6 -0
- package/dist/src/charts/lib/utils.js +33 -0
- package/dist/src/icons/capslock.js +11 -0
- package/dist/src/icons/index.d.ts +5 -3
- package/dist/src/icons/index.js +6 -4
- package/dist/src/icons/loading.js +4 -4
- package/dist/src/icons/pause.js +4 -4
- package/dist/src/icons/play.js +4 -4
- package/dist/src/icons/repeat.js +4 -4
- package/dist/src/icons/stop.js +4 -4
- package/dist/src/molecules/Box/Box.d.ts +28 -28
- package/dist/src/molecules/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/src/molecules/Button/Button.d.ts +8 -8
- package/dist/src/molecules/Button/Button.js +2 -1
- package/dist/src/molecules/DataList/DataList.d.ts +1 -0
- package/dist/src/molecules/DataTable/DataTable.d.ts +1 -0
- package/dist/src/molecules/Icon/Icon.d.ts +2 -2
- package/dist/src/molecules/MultiInput/InputChip.d.ts +1 -1
- package/dist/src/molecules/Navigation/Navigation.d.ts +3 -3
- package/dist/src/molecules/Notification/Notification.d.ts +6 -0
- package/dist/src/molecules/Notification/Notification.js +88 -0
- package/dist/src/molecules/Notification/Notification.spec.d.ts +1 -0
- package/dist/src/molecules/Notification/Notification.spec.js +44 -0
- package/dist/src/molecules/Notification/types.d.ts +37 -0
- package/dist/src/molecules/Notification/types.js +6 -0
- package/dist/src/molecules/Popover/PopoverOverlay.d.ts +1 -1
- package/dist/src/molecules/Spacing/Spacing.d.ts +1 -1
- package/dist/src/molecules/Spacing/Spacing.js +1 -1
- package/dist/src/molecules/index.d.ts +1 -0
- package/dist/src/molecules/index.js +2 -1
- package/dist/src/utils/setupTests.js +16 -1
- package/dist/styles.css +37 -2
- package/dist/styles_timescaledb.css +37 -2
- package/dist/system.cjs +328 -208
- package/dist/system.mjs +315 -199
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +17 -12
- package/dist/aquarium-theme-aiven.css +0 -178
- package/dist/aquarium-theme-timescale.css +0 -178
- package/dist/src/icons/addColumnLeft.js +0 -11
- package/dist/src/icons/addColumnRight.d.ts +0 -9
- package/dist/src/icons/addColumnRight.js +0 -11
- package/dist/src/icons/addRowBottom.d.ts +0 -9
- package/dist/src/icons/addRowBottom.js +0 -11
- package/dist/src/icons/addRowTop.d.ts +0 -9
- package/dist/src/icons/addRowTop.js +0 -11
- package/dist/src/icons/addToArtifact.d.ts +0 -9
- package/dist/src/icons/addToArtifact.js +0 -11
- package/dist/src/icons/application.d.ts +0 -9
- package/dist/src/icons/application.js +0 -11
- package/dist/src/icons/arrowBottomLeft.d.ts +0 -9
- package/dist/src/icons/arrowBottomLeft.js +0 -11
- package/dist/src/icons/arrowBottomRight.d.ts +0 -9
- package/dist/src/icons/arrowBottomRight.js +0 -11
- package/dist/src/icons/arrowCircleRight1.d.ts +0 -9
- package/dist/src/icons/arrowCircleRight1.js +0 -11
- package/dist/src/icons/arrowDown.d.ts +0 -9
- package/dist/src/icons/arrowDown.js +0 -11
- package/dist/src/icons/arrowTopLeft.d.ts +0 -9
- package/dist/src/icons/arrowTopLeft.js +0 -11
- package/dist/src/icons/arrowTopRight.d.ts +0 -9
- package/dist/src/icons/arrowTopRight.js +0 -11
- package/dist/src/icons/arrowUp.d.ts +0 -9
- package/dist/src/icons/arrowUp.js +0 -11
- package/dist/src/icons/arrowsHorizontal.d.ts +0 -9
- package/dist/src/icons/arrowsHorizontal.js +0 -11
- package/dist/src/icons/arrowsVertical.d.ts +0 -9
- package/dist/src/icons/arrowsVertical.js +0 -11
- package/dist/src/icons/asterisk.d.ts +0 -9
- package/dist/src/icons/asterisk.js +0 -11
- package/dist/src/icons/barcode.d.ts +0 -9
- package/dist/src/icons/barcode.js +0 -11
- package/dist/src/icons/bold.d.ts +0 -9
- package/dist/src/icons/bold.js +0 -11
- package/dist/src/icons/bringData.d.ts +0 -9
- package/dist/src/icons/bringData.js +0 -11
- package/dist/src/icons/build.d.ts +0 -9
- package/dist/src/icons/build.js +0 -11
- package/dist/src/icons/calculator.d.ts +0 -9
- package/dist/src/icons/calculator.js +0 -11
- package/dist/src/icons/camera.d.ts +0 -9
- package/dist/src/icons/camera.js +0 -11
- package/dist/src/icons/cellTower.d.ts +0 -9
- package/dist/src/icons/cellTower.js +0 -11
- package/dist/src/icons/changes.d.ts +0 -9
- package/dist/src/icons/changes.js +0 -11
- package/dist/src/icons/circleArrowDown.d.ts +0 -9
- package/dist/src/icons/circleArrowDown.js +0 -11
- package/dist/src/icons/circleArrowLeft.d.ts +0 -9
- package/dist/src/icons/circleArrowLeft.js +0 -11
- package/dist/src/icons/circleArrowRight.d.ts +0 -9
- package/dist/src/icons/circleArrowRight.js +0 -11
- package/dist/src/icons/circleArrowUp.d.ts +0 -9
- package/dist/src/icons/circleArrowUp.js +0 -11
- package/dist/src/icons/citation.d.ts +0 -9
- package/dist/src/icons/citation.js +0 -11
- package/dist/src/icons/clean.d.ts +0 -9
- package/dist/src/icons/clean.js +0 -11
- package/dist/src/icons/collapseAll.d.ts +0 -9
- package/dist/src/icons/collapseAll.js +0 -11
- package/dist/src/icons/columnLayout.d.ts +0 -9
- package/dist/src/icons/columnLayout.js +0 -11
- package/dist/src/icons/comparison.d.ts +0 -9
- package/dist/src/icons/comparison.js +0 -11
- package/dist/src/icons/compass.d.ts +0 -9
- package/dist/src/icons/compass.js +0 -11
- package/dist/src/icons/compressed.d.ts +0 -9
- package/dist/src/icons/compressed.js +0 -11
- package/dist/src/icons/contrast.d.ts +0 -9
- package/dist/src/icons/contrast.js +0 -11
- package/dist/src/icons/control.d.ts +0 -9
- package/dist/src/icons/control.js +0 -11
- package/dist/src/icons/crown.d.ts +0 -9
- package/dist/src/icons/crown.js +0 -11
- package/dist/src/icons/cube.d.ts +0 -9
- package/dist/src/icons/cube.js +0 -11
- package/dist/src/icons/cubeAdd.d.ts +0 -9
- package/dist/src/icons/cubeAdd.js +0 -11
- package/dist/src/icons/cubeRemove.d.ts +0 -9
- package/dist/src/icons/cubeRemove.js +0 -11
- package/dist/src/icons/curvedRangeChart.d.ts +0 -9
- package/dist/src/icons/curvedRangeChart.js +0 -11
- package/dist/src/icons/cut.d.ts +0 -9
- package/dist/src/icons/cut.js +0 -11
- package/dist/src/icons/delta.d.ts +0 -9
- package/dist/src/icons/delta.js +0 -11
- package/dist/src/icons/deriveColumn.d.ts +0 -9
- package/dist/src/icons/deriveColumn.js +0 -11
- package/dist/src/icons/desktop.d.ts +0 -9
- package/dist/src/icons/desktop.js +0 -11
- package/dist/src/icons/diagnosis.d.ts +0 -9
- package/dist/src/icons/diagnosis.js +0 -11
- package/dist/src/icons/diagramTree.d.ts +0 -9
- package/dist/src/icons/diagramTree.js +0 -11
- package/dist/src/icons/directionLeft.d.ts +0 -9
- package/dist/src/icons/directionLeft.js +0 -11
- package/dist/src/icons/directionRight.d.ts +0 -9
- package/dist/src/icons/directionRight.js +0 -11
- package/dist/src/icons/disable.d.ts +0 -9
- package/dist/src/icons/disable.js +0 -11
- package/dist/src/icons/documentOpen.d.ts +0 -9
- package/dist/src/icons/documentOpen.js +0 -11
- package/dist/src/icons/documentShare.d.ts +0 -9
- package/dist/src/icons/documentShare.js +0 -11
- package/dist/src/icons/dollar.d.ts +0 -9
- package/dist/src/icons/dollar.js +0 -11
- package/dist/src/icons/draw.d.ts +0 -9
- package/dist/src/icons/draw.js +0 -11
- package/dist/src/icons/driveTime.d.ts +0 -9
- package/dist/src/icons/driveTime.js +0 -11
- package/dist/src/icons/eject.d.ts +0 -9
- package/dist/src/icons/eject.js +0 -11
- package/dist/src/icons/equals.d.ts +0 -9
- package/dist/src/icons/equals.js +0 -11
- package/dist/src/icons/eraser.d.ts +0 -9
- package/dist/src/icons/eraser.js +0 -11
- package/dist/src/icons/euro.d.ts +0 -9
- package/dist/src/icons/euro.js +0 -11
- package/dist/src/icons/exchange.d.ts +0 -9
- package/dist/src/icons/exchange.js +0 -11
- package/dist/src/icons/excludeRow.d.ts +0 -9
- package/dist/src/icons/excludeRow.js +0 -11
- package/dist/src/icons/eyeOn.d.ts +0 -9
- package/dist/src/icons/eyeOn.js +0 -11
- package/dist/src/icons/fastBackward.d.ts +0 -9
- package/dist/src/icons/fastBackward.js +0 -11
- package/dist/src/icons/fastForward.d.ts +0 -9
- package/dist/src/icons/fastForward.js +0 -11
- package/dist/src/icons/feed.d.ts +0 -9
- package/dist/src/icons/feed.js +0 -11
- package/dist/src/icons/feedSubscribed.d.ts +0 -9
- package/dist/src/icons/feedSubscribed.js +0 -11
- package/dist/src/icons/film.d.ts +0 -9
- package/dist/src/icons/film.js +0 -11
- package/dist/src/icons/filterKeep.d.ts +0 -9
- package/dist/src/icons/filterKeep.js +0 -11
- package/dist/src/icons/filterList.d.ts +0 -9
- package/dist/src/icons/filterList.js +0 -11
- package/dist/src/icons/filterOpen.d.ts +0 -9
- package/dist/src/icons/filterOpen.js +0 -11
- package/dist/src/icons/filterRemove.d.ts +0 -9
- package/dist/src/icons/filterRemove.js +0 -11
- package/dist/src/icons/flame.d.ts +0 -9
- package/dist/src/icons/flame.js +0 -11
- package/dist/src/icons/flash.d.ts +0 -9
- package/dist/src/icons/flash.js +0 -11
- package/dist/src/icons/flowBranch.d.ts +0 -9
- package/dist/src/icons/flowBranch.js +0 -11
- package/dist/src/icons/flowEnd.d.ts +0 -9
- package/dist/src/icons/flowEnd.js +0 -11
- package/dist/src/icons/flowLinear.d.ts +0 -9
- package/dist/src/icons/flowLinear.js +0 -11
- package/dist/src/icons/flowReview.d.ts +0 -9
- package/dist/src/icons/flowReview.js +0 -11
- package/dist/src/icons/flowReviewBranch.d.ts +0 -9
- package/dist/src/icons/flowReviewBranch.js +0 -11
- package/dist/src/icons/flows.d.ts +0 -9
- package/dist/src/icons/flows.js +0 -11
- package/dist/src/icons/folderOpen.d.ts +0 -9
- package/dist/src/icons/folderOpen.js +0 -11
- package/dist/src/icons/folderShared.d.ts +0 -9
- package/dist/src/icons/folderShared.js +0 -11
- package/dist/src/icons/folderSharedOpen.d.ts +0 -9
- package/dist/src/icons/folderSharedOpen.js +0 -11
- package/dist/src/icons/font.d.ts +0 -9
- package/dist/src/icons/font.js +0 -11
- package/dist/src/icons/fork.d.ts +0 -9
- package/dist/src/icons/fork.js +0 -11
- package/dist/src/icons/form.d.ts +0 -9
- package/dist/src/icons/form.js +0 -11
- package/dist/src/icons/fullCircle.d.ts +0 -9
- package/dist/src/icons/fullCircle.js +0 -11
- package/dist/src/icons/fullStackedChart.d.ts +0 -9
- package/dist/src/icons/fullStackedChart.js +0 -11
- package/dist/src/icons/fullscreen.d.ts +0 -9
- package/dist/src/icons/fullscreen.js +0 -11
- package/dist/src/icons/function.d.ts +0 -9
- package/dist/src/icons/function.js +0 -11
- package/dist/src/icons/ganttChart.d.ts +0 -9
- package/dist/src/icons/ganttChart.js +0 -11
- package/dist/src/icons/geolocation.d.ts +0 -9
- package/dist/src/icons/geolocation.js +0 -11
- package/dist/src/icons/geosearch.d.ts +0 -9
- package/dist/src/icons/geosearch.js +0 -11
- package/dist/src/icons/gitPush.d.ts +0 -9
- package/dist/src/icons/gitPush.js +0 -11
- package/dist/src/icons/gitRepo.d.ts +0 -9
- package/dist/src/icons/gitRepo.js +0 -11
- package/dist/src/icons/glass.d.ts +0 -9
- package/dist/src/icons/glass.js +0 -11
- package/dist/src/icons/graph.d.ts +0 -9
- package/dist/src/icons/graph.js +0 -11
- package/dist/src/icons/graphRemove.d.ts +0 -9
- package/dist/src/icons/graphRemove.js +0 -11
- package/dist/src/icons/greaterThan.d.ts +0 -9
- package/dist/src/icons/greaterThan.js +0 -11
- package/dist/src/icons/greaterThanOrEqualTo.d.ts +0 -9
- package/dist/src/icons/greaterThanOrEqualTo.js +0 -11
- package/dist/src/icons/grid.d.ts +0 -9
- package/dist/src/icons/grid.js +0 -11
- package/dist/src/icons/gridView.d.ts +0 -9
- package/dist/src/icons/gridView.js +0 -11
- package/dist/src/icons/groupObjects.d.ts +0 -9
- package/dist/src/icons/groupObjects.js +0 -11
- package/dist/src/icons/hand.d.ts +0 -9
- package/dist/src/icons/hand.js +0 -11
- package/dist/src/icons/handDown.d.ts +0 -9
- package/dist/src/icons/handDown.js +0 -11
- package/dist/src/icons/handLeft.d.ts +0 -9
- package/dist/src/icons/handLeft.js +0 -11
- package/dist/src/icons/handRight.d.ts +0 -9
- package/dist/src/icons/handRight.js +0 -11
- package/dist/src/icons/handUp.d.ts +0 -9
- package/dist/src/icons/handUp.js +0 -11
- package/dist/src/icons/header.d.ts +0 -9
- package/dist/src/icons/header.js +0 -11
- package/dist/src/icons/headerOne.d.ts +0 -9
- package/dist/src/icons/headerOne.js +0 -11
- package/dist/src/icons/headerTwo.d.ts +0 -9
- package/dist/src/icons/headerTwo.js +0 -11
- package/dist/src/icons/headset.d.ts +0 -9
- package/dist/src/icons/headset.js +0 -11
- package/dist/src/icons/heartBroken.d.ts +0 -9
- package/dist/src/icons/heartBroken.js +0 -11
- package/dist/src/icons/heatGrid.d.ts +0 -9
- package/dist/src/icons/heatGrid.js +0 -11
- package/dist/src/icons/heatmap.d.ts +0 -9
- package/dist/src/icons/heatmap.js +0 -11
- package/dist/src/icons/helperManagement.d.ts +0 -9
- package/dist/src/icons/helperManagement.js +0 -11
- package/dist/src/icons/highlight.d.ts +0 -9
- package/dist/src/icons/highlight.js +0 -11
- package/dist/src/icons/horizontalBarChart.d.ts +0 -9
- package/dist/src/icons/horizontalBarChart.js +0 -11
- package/dist/src/icons/horizontalBarChartAsc.d.ts +0 -9
- package/dist/src/icons/horizontalBarChartAsc.js +0 -11
- package/dist/src/icons/horizontalBarChartDesc.d.ts +0 -9
- package/dist/src/icons/horizontalBarChartDesc.js +0 -11
- package/dist/src/icons/horizontalDistribution.d.ts +0 -9
- package/dist/src/icons/horizontalDistribution.js +0 -11
- package/dist/src/icons/imageRotateLeft.d.ts +0 -9
- package/dist/src/icons/imageRotateLeft.js +0 -11
- package/dist/src/icons/imageRotateRight.d.ts +0 -9
- package/dist/src/icons/imageRotateRight.js +0 -11
- package/dist/src/icons/inboxFiltered.d.ts +0 -9
- package/dist/src/icons/inboxFiltered.js +0 -11
- package/dist/src/icons/inboxGeo.d.ts +0 -9
- package/dist/src/icons/inboxGeo.js +0 -11
- package/dist/src/icons/inboxSearch.d.ts +0 -9
- package/dist/src/icons/inboxSearch.js +0 -11
- package/dist/src/icons/inboxUpdate.d.ts +0 -9
- package/dist/src/icons/inboxUpdate.js +0 -11
- package/dist/src/icons/inheritance.d.ts +0 -9
- package/dist/src/icons/inheritance.js +0 -11
- package/dist/src/icons/innerJoin.d.ts +0 -9
- package/dist/src/icons/innerJoin.js +0 -11
- package/dist/src/icons/insert.d.ts +0 -9
- package/dist/src/icons/insert.js +0 -11
- package/dist/src/icons/intersection.d.ts +0 -9
- package/dist/src/icons/intersection.js +0 -11
- package/dist/src/icons/ipAddress.d.ts +0 -9
- package/dist/src/icons/ipAddress.js +0 -11
- package/dist/src/icons/issueClosed.d.ts +0 -9
- package/dist/src/icons/issueClosed.js +0 -11
- package/dist/src/icons/issueNew.d.ts +0 -9
- package/dist/src/icons/issueNew.js +0 -11
- package/dist/src/icons/italic.d.ts +0 -9
- package/dist/src/icons/italic.js +0 -11
- package/dist/src/icons/joinTable.d.ts +0 -9
- package/dist/src/icons/joinTable.js +0 -11
- package/dist/src/icons/key1.d.ts +0 -9
- package/dist/src/icons/key1.js +0 -11
- package/dist/src/icons/keyBackspace.d.ts +0 -9
- package/dist/src/icons/keyBackspace.js +0 -11
- package/dist/src/icons/keyCommand.d.ts +0 -9
- package/dist/src/icons/keyCommand.js +0 -11
- package/dist/src/icons/keyControl.d.ts +0 -9
- package/dist/src/icons/keyControl.js +0 -11
- package/dist/src/icons/keyDelete.d.ts +0 -9
- package/dist/src/icons/keyDelete.js +0 -11
- package/dist/src/icons/keyEnter.d.ts +0 -9
- package/dist/src/icons/keyEnter.js +0 -11
- package/dist/src/icons/keyEscape.d.ts +0 -9
- package/dist/src/icons/keyEscape.js +0 -11
- package/dist/src/icons/keyOption.d.ts +0 -9
- package/dist/src/icons/keyOption.js +0 -11
- package/dist/src/icons/keyShift.d.ts +0 -9
- package/dist/src/icons/keyShift.js +0 -11
- package/dist/src/icons/keyTab.d.ts +0 -9
- package/dist/src/icons/keyTab.js +0 -11
- package/dist/src/icons/knownVehicle.d.ts +0 -9
- package/dist/src/icons/knownVehicle.js +0 -11
- package/dist/src/icons/labTest.d.ts +0 -9
- package/dist/src/icons/labTest.js +0 -11
- package/dist/src/icons/label.d.ts +0 -9
- package/dist/src/icons/label.js +0 -11
- package/dist/src/icons/layout.d.ts +0 -9
- package/dist/src/icons/layout.js +0 -11
- package/dist/src/icons/layoutAuto.d.ts +0 -9
- package/dist/src/icons/layoutAuto.js +0 -11
- package/dist/src/icons/layoutBalloon.d.ts +0 -9
- package/dist/src/icons/layoutBalloon.js +0 -11
- package/dist/src/icons/layoutCircle.d.ts +0 -9
- package/dist/src/icons/layoutCircle.js +0 -11
- package/dist/src/icons/layoutGrid.d.ts +0 -9
- package/dist/src/icons/layoutGrid.js +0 -11
- package/dist/src/icons/layoutGroupBy.d.ts +0 -9
- package/dist/src/icons/layoutGroupBy.js +0 -11
- package/dist/src/icons/layoutHierarchy.d.ts +0 -9
- package/dist/src/icons/layoutHierarchy.js +0 -11
- package/dist/src/icons/layoutLinear.d.ts +0 -9
- package/dist/src/icons/layoutLinear.js +0 -11
- package/dist/src/icons/layoutSkewGrid.d.ts +0 -9
- package/dist/src/icons/layoutSkewGrid.js +0 -11
- package/dist/src/icons/layoutSortedClusters.d.ts +0 -9
- package/dist/src/icons/layoutSortedClusters.js +0 -11
- package/dist/src/icons/leftJoin.d.ts +0 -9
- package/dist/src/icons/leftJoin.js +0 -11
- package/dist/src/icons/lessThan.d.ts +0 -9
- package/dist/src/icons/lessThan.js +0 -11
- package/dist/src/icons/lessThanOrEqualTo.d.ts +0 -9
- package/dist/src/icons/lessThanOrEqualTo.js +0 -11
- package/dist/src/icons/loading1.d.ts +0 -9
- package/dist/src/icons/loading1.js +0 -11
- package/dist/src/icons/locate.d.ts +0 -9
- package/dist/src/icons/locate.js +0 -11
- package/dist/src/icons/manuallyEnteredData.d.ts +0 -9
- package/dist/src/icons/manuallyEnteredData.js +0 -11
- package/dist/src/icons/mapCreate.d.ts +0 -9
- package/dist/src/icons/mapCreate.js +0 -11
- package/dist/src/icons/media.d.ts +0 -9
- package/dist/src/icons/media.js +0 -11
- package/dist/src/icons/menuClosed.d.ts +0 -9
- package/dist/src/icons/menuClosed.js +0 -11
- package/dist/src/icons/menuOpen.d.ts +0 -9
- package/dist/src/icons/menuOpen.js +0 -11
- package/dist/src/icons/mergeColumns.d.ts +0 -9
- package/dist/src/icons/mergeColumns.js +0 -11
- package/dist/src/icons/mergeLinks.d.ts +0 -9
- package/dist/src/icons/mergeLinks.js +0 -11
- package/dist/src/icons/mobilePhone.d.ts +0 -9
- package/dist/src/icons/mobilePhone.js +0 -11
- package/dist/src/icons/mobileVideo.d.ts +0 -9
- package/dist/src/icons/mobileVideo.js +0 -11
- package/dist/src/icons/moon.d.ts +0 -9
- package/dist/src/icons/moon.js +0 -11
- package/dist/src/icons/mountain.d.ts +0 -9
- package/dist/src/icons/mountain.js +0 -11
- package/dist/src/icons/mugshot.d.ts +0 -9
- package/dist/src/icons/mugshot.js +0 -11
- package/dist/src/icons/multiSelect.d.ts +0 -9
- package/dist/src/icons/multiSelect.js +0 -11
- package/dist/src/icons/music.d.ts +0 -9
- package/dist/src/icons/music.js +0 -11
- package/dist/src/icons/newDrawing.d.ts +0 -9
- package/dist/src/icons/newDrawing.js +0 -11
- package/dist/src/icons/newGridItem.d.ts +0 -9
- package/dist/src/icons/newGridItem.js +0 -11
- package/dist/src/icons/newLayer.d.ts +0 -9
- package/dist/src/icons/newLayer.js +0 -11
- package/dist/src/icons/newLayers.d.ts +0 -9
- package/dist/src/icons/newLayers.js +0 -11
- package/dist/src/icons/newLink.d.ts +0 -9
- package/dist/src/icons/newLink.js +0 -11
- package/dist/src/icons/newObject.d.ts +0 -9
- package/dist/src/icons/newObject.js +0 -11
- package/dist/src/icons/newPrescription.d.ts +0 -9
- package/dist/src/icons/newPrescription.js +0 -11
- package/dist/src/icons/newTextBox.d.ts +0 -9
- package/dist/src/icons/newTextBox.js +0 -11
- package/dist/src/icons/ninja.d.ts +0 -9
- package/dist/src/icons/ninja.js +0 -11
- package/dist/src/icons/notEqualTo.d.ts +0 -9
- package/dist/src/icons/notEqualTo.js +0 -11
- package/dist/src/icons/numberedList.d.ts +0 -9
- package/dist/src/icons/numberedList.js +0 -11
- package/dist/src/icons/numerical.d.ts +0 -9
- package/dist/src/icons/numerical.js +0 -11
- package/dist/src/icons/offline.d.ts +0 -9
- package/dist/src/icons/offline.js +0 -11
- package/dist/src/icons/oilField.d.ts +0 -9
- package/dist/src/icons/oilField.js +0 -11
- package/dist/src/icons/oneColumn.d.ts +0 -9
- package/dist/src/icons/oneColumn.js +0 -11
- package/dist/src/icons/pageLayout.d.ts +0 -9
- package/dist/src/icons/pageLayout.js +0 -11
- package/dist/src/icons/panelStats.d.ts +0 -9
- package/dist/src/icons/panelStats.js +0 -11
- package/dist/src/icons/panelTable.d.ts +0 -9
- package/dist/src/icons/panelTable.js +0 -11
- package/dist/src/icons/paragraph.d.ts +0 -9
- package/dist/src/icons/paragraph.js +0 -11
- package/dist/src/icons/path.d.ts +0 -9
- package/dist/src/icons/path.js +0 -11
- package/dist/src/icons/pathSearch.d.ts +0 -9
- package/dist/src/icons/pathSearch.js +0 -11
- package/dist/src/icons/percentage.d.ts +0 -9
- package/dist/src/icons/percentage.js +0 -11
- package/dist/src/icons/pivot.d.ts +0 -9
- package/dist/src/icons/pivot.js +0 -11
- package/dist/src/icons/pivotTable.d.ts +0 -9
- package/dist/src/icons/pivotTable.js +0 -11
- package/dist/src/icons/polygonFilter.d.ts +0 -9
- package/dist/src/icons/polygonFilter.js +0 -11
- package/dist/src/icons/predictiveAnalysis.d.ts +0 -9
- package/dist/src/icons/predictiveAnalysis.js +0 -11
- package/dist/src/icons/prescription.d.ts +0 -9
- package/dist/src/icons/prescription.js +0 -11
- package/dist/src/icons/presentation.d.ts +0 -9
- package/dist/src/icons/presentation.js +0 -11
- package/dist/src/icons/print.d.ts +0 -9
- package/dist/src/icons/print.js +0 -11
- package/dist/src/icons/publishFunction.d.ts +0 -9
- package/dist/src/icons/publishFunction.js +0 -11
- package/dist/src/icons/random.d.ts +0 -9
- package/dist/src/icons/random.js +0 -11
- package/dist/src/icons/record.d.ts +0 -9
- package/dist/src/icons/record.js +0 -11
- package/dist/src/icons/redo.d.ts +0 -9
- package/dist/src/icons/redo.js +0 -11
- package/dist/src/icons/regressionChart.d.ts +0 -9
- package/dist/src/icons/regressionChart.js +0 -11
- package/dist/src/icons/removeColumn.d.ts +0 -9
- package/dist/src/icons/removeColumn.js +0 -11
- package/dist/src/icons/removeColumnLeft.d.ts +0 -9
- package/dist/src/icons/removeColumnLeft.js +0 -11
- package/dist/src/icons/removeColumnRight.d.ts +0 -9
- package/dist/src/icons/removeColumnRight.js +0 -11
- package/dist/src/icons/removeRowBottom.d.ts +0 -9
- package/dist/src/icons/removeRowBottom.js +0 -11
- package/dist/src/icons/removeRowTop.d.ts +0 -9
- package/dist/src/icons/removeRowTop.js +0 -11
- package/dist/src/icons/resolve.d.ts +0 -9
- package/dist/src/icons/resolve.js +0 -11
- package/dist/src/icons/rig.d.ts +0 -9
- package/dist/src/icons/rig.js +0 -11
- package/dist/src/icons/rightJoin.d.ts +0 -9
- package/dist/src/icons/rightJoin.js +0 -11
- package/dist/src/icons/ring.d.ts +0 -9
- package/dist/src/icons/ring.js +0 -11
- package/dist/src/icons/rotateDocument.d.ts +0 -9
- package/dist/src/icons/rotateDocument.js +0 -11
- package/dist/src/icons/rotatePage.d.ts +0 -9
- package/dist/src/icons/rotatePage.js +0 -11
- package/dist/src/icons/satellite.d.ts +0 -9
- package/dist/src/icons/satellite.js +0 -11
- package/dist/src/icons/searchAround.d.ts +0 -9
- package/dist/src/icons/searchAround.js +0 -11
- package/dist/src/icons/searchTemplate.d.ts +0 -9
- package/dist/src/icons/searchTemplate.js +0 -11
- package/dist/src/icons/searchText.d.ts +0 -9
- package/dist/src/icons/searchText.js +0 -11
- package/dist/src/icons/segmentedControl.d.ts +0 -9
- package/dist/src/icons/segmentedControl.js +0 -11
- package/dist/src/icons/select.d.ts +0 -9
- package/dist/src/icons/select.js +0 -11
- package/dist/src/icons/selection.d.ts +0 -9
- package/dist/src/icons/selection.js +0 -11
- package/dist/src/icons/sendTo.d.ts +0 -9
- package/dist/src/icons/sendTo.js +0 -11
- package/dist/src/icons/sendToGraph.d.ts +0 -9
- package/dist/src/icons/sendToGraph.js +0 -11
- package/dist/src/icons/sendToMap.d.ts +0 -9
- package/dist/src/icons/sendToMap.js +0 -11
- package/dist/src/icons/seriesAdd.d.ts +0 -9
- package/dist/src/icons/seriesAdd.js +0 -11
- package/dist/src/icons/seriesConfiguration.d.ts +0 -9
- package/dist/src/icons/seriesConfiguration.js +0 -11
- package/dist/src/icons/seriesDerived.d.ts +0 -9
- package/dist/src/icons/seriesDerived.js +0 -11
- package/dist/src/icons/seriesFiltered.d.ts +0 -9
- package/dist/src/icons/seriesFiltered.js +0 -11
- package/dist/src/icons/seriesSearch.d.ts +0 -9
- package/dist/src/icons/seriesSearch.js +0 -11
- package/dist/src/icons/shop.d.ts +0 -9
- package/dist/src/icons/shop.js +0 -11
- package/dist/src/icons/shoppingCart.d.ts +0 -9
- package/dist/src/icons/shoppingCart.js +0 -11
- package/dist/src/icons/signalSearch.d.ts +0 -9
- package/dist/src/icons/signalSearch.js +0 -11
- package/dist/src/icons/simCard.d.ts +0 -9
- package/dist/src/icons/simCard.js +0 -11
- package/dist/src/icons/snowflake.d.ts +0 -9
- package/dist/src/icons/snowflake.js +0 -11
- package/dist/src/icons/socialMedia.d.ts +0 -9
- package/dist/src/icons/socialMedia.js +0 -11
- package/dist/src/icons/sort.d.ts +0 -9
- package/dist/src/icons/sort.js +0 -11
- package/dist/src/icons/sortAlphabetical.d.ts +0 -9
- package/dist/src/icons/sortAlphabetical.js +0 -11
- package/dist/src/icons/sortAlphabeticalDesc.d.ts +0 -9
- package/dist/src/icons/sortAlphabeticalDesc.js +0 -11
- package/dist/src/icons/sortAsc.d.ts +0 -9
- package/dist/src/icons/sortAsc.js +0 -11
- package/dist/src/icons/sortDesc.d.ts +0 -9
- package/dist/src/icons/sortDesc.js +0 -11
- package/dist/src/icons/sortNumerical.d.ts +0 -9
- package/dist/src/icons/sortNumerical.js +0 -11
- package/dist/src/icons/sortNumericalDesc.d.ts +0 -9
- package/dist/src/icons/sortNumericalDesc.js +0 -11
- package/dist/src/icons/splitColumns.d.ts +0 -9
- package/dist/src/icons/splitColumns.js +0 -11
- package/dist/src/icons/square.d.ts +0 -9
- package/dist/src/icons/square.js +0 -11
- package/dist/src/icons/stackedChart.d.ts +0 -9
- package/dist/src/icons/stackedChart.js +0 -11
- package/dist/src/icons/star.d.ts +0 -9
- package/dist/src/icons/star.js +0 -11
- package/dist/src/icons/starEmpty.d.ts +0 -9
- package/dist/src/icons/starEmpty.js +0 -11
- package/dist/src/icons/stepBackward.d.ts +0 -9
- package/dist/src/icons/stepBackward.js +0 -11
- package/dist/src/icons/stepChart.d.ts +0 -9
- package/dist/src/icons/stepChart.js +0 -11
- package/dist/src/icons/stepForward.d.ts +0 -9
- package/dist/src/icons/stepForward.js +0 -11
- package/dist/src/icons/strikethrough.d.ts +0 -9
- package/dist/src/icons/strikethrough.js +0 -11
- package/dist/src/icons/style.d.ts +0 -9
- package/dist/src/icons/style.js +0 -11
- package/dist/src/icons/symbolCircle.d.ts +0 -9
- package/dist/src/icons/symbolCircle.js +0 -11
- package/dist/src/icons/symbolCross.d.ts +0 -9
- package/dist/src/icons/symbolCross.js +0 -11
- package/dist/src/icons/symbolDiamond.d.ts +0 -9
- package/dist/src/icons/symbolDiamond.js +0 -11
- package/dist/src/icons/symbolSquare.d.ts +0 -9
- package/dist/src/icons/symbolSquare.js +0 -11
- package/dist/src/icons/symbolTriangleDown.d.ts +0 -9
- package/dist/src/icons/symbolTriangleDown.js +0 -11
- package/dist/src/icons/symbolTriangleUp.d.ts +0 -9
- package/dist/src/icons/symbolTriangleUp.js +0 -11
- package/dist/src/icons/takeAction.d.ts +0 -9
- package/dist/src/icons/takeAction.js +0 -11
- package/dist/src/icons/taxi.d.ts +0 -9
- package/dist/src/icons/taxi.js +0 -11
- package/dist/src/icons/textHighlight.d.ts +0 -9
- package/dist/src/icons/textHighlight.js +0 -11
- package/dist/src/icons/th.d.ts +0 -9
- package/dist/src/icons/th.js +0 -11
- package/dist/src/icons/thDerived.d.ts +0 -9
- package/dist/src/icons/thDerived.js +0 -11
- package/dist/src/icons/thDisconnect.d.ts +0 -9
- package/dist/src/icons/thDisconnect.js +0 -11
- package/dist/src/icons/thFiltered.d.ts +0 -9
- package/dist/src/icons/thFiltered.js +0 -11
- package/dist/src/icons/thList.d.ts +0 -9
- package/dist/src/icons/thList.js +0 -11
- package/dist/src/icons/timelineEvents.d.ts +0 -9
- package/dist/src/icons/timelineEvents.js +0 -11
- package/dist/src/icons/tint.d.ts +0 -9
- package/dist/src/icons/tint.js +0 -11
- package/dist/src/icons/torch.d.ts +0 -9
- package/dist/src/icons/torch.js +0 -11
- package/dist/src/icons/tractor.d.ts +0 -9
- package/dist/src/icons/tractor.js +0 -11
- package/dist/src/icons/train.d.ts +0 -9
- package/dist/src/icons/train.js +0 -11
- package/dist/src/icons/translate.d.ts +0 -9
- package/dist/src/icons/translate.js +0 -11
- package/dist/src/icons/tree.d.ts +0 -9
- package/dist/src/icons/tree.js +0 -11
- package/dist/src/icons/trendingDown.d.ts +0 -9
- package/dist/src/icons/trendingDown.js +0 -11
- package/dist/src/icons/trendingUp.d.ts +0 -9
- package/dist/src/icons/trendingUp.js +0 -11
- package/dist/src/icons/truck.d.ts +0 -9
- package/dist/src/icons/truck.js +0 -11
- package/dist/src/icons/twoColumns.d.ts +0 -9
- package/dist/src/icons/twoColumns.js +0 -11
- package/dist/src/icons/unarchive.d.ts +0 -9
- package/dist/src/icons/unarchive.js +0 -11
- package/dist/src/icons/underline.d.ts +0 -9
- package/dist/src/icons/underline.js +0 -11
- package/dist/src/icons/undo.d.ts +0 -9
- package/dist/src/icons/undo.js +0 -11
- package/dist/src/icons/ungroupObjects.d.ts +0 -9
- package/dist/src/icons/ungroupObjects.js +0 -11
- package/dist/src/icons/unknownVehicle.d.ts +0 -9
- package/dist/src/icons/unknownVehicle.js +0 -11
- package/dist/src/icons/unresolve.d.ts +0 -9
- package/dist/src/icons/unresolve.js +0 -11
- package/dist/src/icons/variable.d.ts +0 -9
- package/dist/src/icons/variable.js +0 -11
- package/dist/src/icons/verticalBarChartAsc.d.ts +0 -9
- package/dist/src/icons/verticalBarChartAsc.js +0 -11
- package/dist/src/icons/verticalBarChartDesc.d.ts +0 -9
- package/dist/src/icons/verticalBarChartDesc.js +0 -11
- package/dist/src/icons/verticalDistribution.d.ts +0 -9
- package/dist/src/icons/verticalDistribution.js +0 -11
- package/dist/src/icons/video.d.ts +0 -9
- package/dist/src/icons/video.js +0 -11
- package/dist/src/icons/volumeDown.d.ts +0 -9
- package/dist/src/icons/volumeDown.js +0 -11
- package/dist/src/icons/volumeOff.d.ts +0 -9
- package/dist/src/icons/volumeOff.js +0 -11
- package/dist/src/icons/volumeUp.d.ts +0 -9
- package/dist/src/icons/volumeUp.js +0 -11
- package/dist/src/icons/walk.d.ts +0 -9
- package/dist/src/icons/walk.js +0 -11
- package/dist/src/icons/waterfallChart.d.ts +0 -9
- package/dist/src/icons/waterfallChart.js +0 -11
- package/dist/src/icons/widget.d.ts +0 -9
- package/dist/src/icons/widget.js +0 -11
- package/dist/src/icons/widgetButton.d.ts +0 -9
- package/dist/src/icons/widgetButton.js +0 -11
- package/dist/src/icons/widgetFooter.d.ts +0 -9
- package/dist/src/icons/widgetFooter.js +0 -11
- package/dist/src/icons/widgetHeader.d.ts +0 -9
- package/dist/src/icons/widgetHeader.js +0 -11
- package/dist/src/icons/wrench.d.ts +0 -9
- package/dist/src/icons/wrench.js +0 -11
- package/dist/src/icons/zoomIn.d.ts +0 -9
- package/dist/src/icons/zoomIn.js +0 -11
- package/dist/src/icons/zoomOut.d.ts +0 -9
- package/dist/src/icons/zoomOut.js +0 -11
- package/dist/src/icons/zoomToFit.d.ts +0 -9
- package/dist/src/icons/zoomToFit.js +0 -11
- package/dist/src/js/themeMap.d.ts +0 -268
- package/dist/src/js/themeMap.js +0 -624
- /package/dist/src/icons/{addColumnLeft.d.ts → capslock.d.ts} +0 -0
@@ -0,0 +1,88 @@
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
2
|
+
var t = {};
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
4
|
+
t[p] = s[p];
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
8
|
+
t[p[i]] = s[p[i]];
|
9
|
+
}
|
10
|
+
return t;
|
11
|
+
};
|
12
|
+
import React, { createContext, useContext, useEffect, useReducer } from 'react';
|
13
|
+
import groupBy from 'lodash/groupBy';
|
14
|
+
import { Alert } from '../../../src/molecules/Alert/Alert';
|
15
|
+
import { Spacing } from '../../../src/molecules/Spacing/Spacing';
|
16
|
+
import { ActionTypes, } from './types';
|
17
|
+
const NotificationContext = createContext(null);
|
18
|
+
export const useNotificationContext = () => {
|
19
|
+
const context = useContext(NotificationContext);
|
20
|
+
if (context === null) {
|
21
|
+
throw new Error('NotificationContext was used outside of provider.');
|
22
|
+
}
|
23
|
+
return context;
|
24
|
+
};
|
25
|
+
export const useNotification = () => {
|
26
|
+
const [_, dispatch] = useNotificationContext();
|
27
|
+
return (notification) => {
|
28
|
+
dispatch({ type: ActionTypes.Notify, notification });
|
29
|
+
};
|
30
|
+
};
|
31
|
+
const toNotification = (_a) => {
|
32
|
+
var { id, variant, position, duration } = _a, notification = __rest(_a, ["id", "variant", "position", "duration"]);
|
33
|
+
return (Object.assign(Object.assign({}, notification), { id: id || crypto.randomUUID(), variant: variant || 'default', position: position || 'top', duration: duration || variant === 'danger' ? Infinity : 6000 }));
|
34
|
+
};
|
35
|
+
const reducer = (state, action) => {
|
36
|
+
switch (action.type) {
|
37
|
+
case ActionTypes.Notify:
|
38
|
+
return Object.assign(Object.assign({}, state), { notifications: [...state.notifications, toNotification(action.notification)] });
|
39
|
+
case ActionTypes.Dismiss:
|
40
|
+
return Object.assign(Object.assign({}, state), { notifications: state.notifications.filter((notification) => notification.id !== action.notificationId) });
|
41
|
+
default:
|
42
|
+
throw new Error('Unsupported action type.');
|
43
|
+
}
|
44
|
+
};
|
45
|
+
export const NotificationProvider = ({ children }) => {
|
46
|
+
const [state, dispatch] = useReducer(reducer, { notifications: [] });
|
47
|
+
return React.createElement(NotificationContext.Provider, { value: [state, dispatch] }, children);
|
48
|
+
};
|
49
|
+
const isCentered = (position) => position === 'top' || position === 'bottom';
|
50
|
+
const PADDING = 20;
|
51
|
+
const Notification = ({ notification, onDismiss }) => {
|
52
|
+
const { id, message, title, variant, duration } = notification;
|
53
|
+
useEffect(() => {
|
54
|
+
let timer;
|
55
|
+
if (duration !== Infinity) {
|
56
|
+
timer = setTimeout(() => {
|
57
|
+
onDismiss(id);
|
58
|
+
}, duration);
|
59
|
+
}
|
60
|
+
return () => {
|
61
|
+
if (timer) {
|
62
|
+
clearTimeout(timer);
|
63
|
+
}
|
64
|
+
};
|
65
|
+
}, [duration]);
|
66
|
+
return (React.createElement(Alert, { title: title, type: variant === 'danger' ? 'error' : 'information' }, message));
|
67
|
+
};
|
68
|
+
export const NotificationConsumer = () => {
|
69
|
+
const [state, dispatch] = useNotificationContext();
|
70
|
+
const notificationsByPosition = groupBy(state.notifications, 'position');
|
71
|
+
const positions = Object.keys(notificationsByPosition);
|
72
|
+
const onDismiss = (notificationId) => {
|
73
|
+
dispatch({ type: ActionTypes.Dismiss, notificationId });
|
74
|
+
};
|
75
|
+
return (React.createElement("div", null, positions.map((position) => {
|
76
|
+
var _a;
|
77
|
+
return (React.createElement(Spacing, { gap: "3", key: position, style: {
|
78
|
+
position: 'fixed',
|
79
|
+
bottom: position.includes('bottom') ? PADDING : undefined,
|
80
|
+
top: position.includes('top') ? PADDING : undefined,
|
81
|
+
right: position.includes('right') ? PADDING : undefined,
|
82
|
+
left: isCentered(position) ? '50%' : position.includes('left') ? PADDING : undefined,
|
83
|
+
transform: isCentered(position) ? 'translateX(-50%)' : undefined,
|
84
|
+
zIndex: 9000,
|
85
|
+
} }, (_a = notificationsByPosition[position]) === null || _a === void 0 ? void 0 : _a.map((notification) => (React.createElement(Notification, { key: notification.id, notification: notification, onDismiss: onDismiss })))));
|
86
|
+
})));
|
87
|
+
};
|
88
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTm90aWZpY2F0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL21vbGVjdWxlcy9Ob3RpZmljYXRpb24vTm90aWZpY2F0aW9uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUFBLE9BQU8sS0FBSyxFQUFFLEVBQWlCLGFBQWEsRUFBRSxVQUFVLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxNQUFNLE9BQU8sQ0FBQztBQUMvRixPQUFPLE9BQU8sTUFBTSxnQkFBZ0IsQ0FBQztBQUVyQyxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDbEQsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBRXhELE9BQU8sRUFPTCxXQUFXLEdBQ1osTUFBTSxTQUFTLENBQUM7QUFFakIsTUFBTSxtQkFBbUIsR0FBRyxhQUFhLENBQW9DLElBQUksQ0FBQyxDQUFDO0FBRW5GLE1BQU0sQ0FBQyxNQUFNLHNCQUFzQixHQUFHLEdBQUcsRUFBRTtJQUN6QyxNQUFNLE9BQU8sR0FBRyxVQUFVLENBQUMsbUJBQW1CLENBQUMsQ0FBQztJQUNoRCxJQUFJLE9BQU8sS0FBSyxJQUFJLEVBQUU7UUFDcEIsTUFBTSxJQUFJLEtBQUssQ0FBQyxtREFBbUQsQ0FBQyxDQUFDO0tBQ3RFO0lBQ0QsT0FBTyxPQUFPLENBQU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csQ0FBQyxDQUFDLFlBQVksRUFBRSxFQUFFLENBQUMsQ0FDeEQsb0JBQUMsWUFBWSxJQUFDLEdBQUcsRUFBRSxZQUFZLENBQUMsRUFBRSxFQUFFLFlBQVksRUFBRSxZQUFZLEVBQUUsU0FBUyxFQUFFLFNBQVMsR0FBSSxDQUN6RixDQUFDLENBQ00sQ0FDWCxDQUFDO0lBQ0osQ0FBQyxDQUFDLENBQ0UsQ0FDUCxDQUFDO0FBQ0osQ0FBQyxDQUFDIn0=
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,44 @@
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
8
|
+
});
|
9
|
+
};
|
10
|
+
import React from 'react';
|
11
|
+
import { render, screen } from '@testing-library/react';
|
12
|
+
import userEvent from '@testing-library/user-event';
|
13
|
+
import { Button, NotificationConsumer, NotificationProvider, useNotification } from '../../../src/system';
|
14
|
+
describe('<Notification />', () => {
|
15
|
+
let user;
|
16
|
+
beforeEach(() => {
|
17
|
+
user = userEvent.setup();
|
18
|
+
render(React.createElement(Context, null));
|
19
|
+
});
|
20
|
+
const Context = () => (React.createElement(NotificationProvider, null,
|
21
|
+
React.createElement(Component, null),
|
22
|
+
React.createElement(NotificationConsumer, null)));
|
23
|
+
const Component = () => {
|
24
|
+
const notify = useNotification();
|
25
|
+
const onClick = () => {
|
26
|
+
notify({ message: 'Hello World', id: 'uuid-' + Math.random });
|
27
|
+
};
|
28
|
+
return React.createElement(Button, { onClick: onClick }, "Notify");
|
29
|
+
};
|
30
|
+
it('dispatched notifications are rendered', () => __awaiter(void 0, void 0, void 0, function* () {
|
31
|
+
const button = screen.getByRole('button', { name: 'Notify' });
|
32
|
+
yield user.click(button);
|
33
|
+
yield screen.findByText('Hello World');
|
34
|
+
}));
|
35
|
+
it('multiple notifications are rendered', () => __awaiter(void 0, void 0, void 0, function* () {
|
36
|
+
const button = screen.getByRole('button', { name: 'Notify' });
|
37
|
+
yield user.click(button);
|
38
|
+
yield user.click(button);
|
39
|
+
yield user.click(button);
|
40
|
+
const notifications = yield screen.findAllByText('Hello World');
|
41
|
+
expect(notifications.length).toBe(3);
|
42
|
+
}));
|
43
|
+
});
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTm90aWZpY2F0aW9uLnNwZWMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvbW9sZWN1bGVzL05vdGlmaWNhdGlvbi9Ob3RpZmljYXRpb24uc3BlYy50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUEsT0FBTyxLQUFLLE1BQU0sT0FBTyxDQUFDO0FBQzFCLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDeEQsT0FBTyxTQUFTLE1BQU0sNkJBQTZCLENBQUM7QUFFcEQsT0FBTyxFQUFFLE1BQU0sRUFBRSxvQkFBb0IsRUFBRSxvQkFBb0IsRUFBRSxlQUFlLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFFakcsUUFBUSxDQUFDLGtCQUFrQixFQUFFLEdBQUcsRUFBRTtJQUNoQyxJQUFJLElBQXdDLENBQUM7SUFFN0MsVUFBVSxDQUFDLEdBQUcsRUFBRTtRQUNkLElBQUksR0FBRyxTQUFTLENBQUMsS0FBSyxFQUFF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FDLFFBQVEsRUFBRSxFQUFFLElBQUksRUFBRSxRQUFRLEVBQUUsQ0FBQyxDQUFDO1FBQzlELE1BQU0sSUFBSSxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUN6QixNQUFNLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDekIsTUFBTSxJQUFJLENBQUMsS0FBSyxDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQ3pCLE1BQU0sYUFBYSxHQUFHLE1BQU0sTUFBTSxDQUFDLGFBQWEsQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUNoRSxNQUFNLENBQUMsYUFBYSxDQUFDLE1BQU0sQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUN2QyxDQUFDLENBQUEsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ==
|
@@ -0,0 +1,37 @@
|
|
1
|
+
export declare type Position = 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'top' | 'bottom';
|
2
|
+
export declare type NotificationId = ReturnType<typeof crypto.randomUUID> | string;
|
3
|
+
export declare type Variant = 'danger' | 'default';
|
4
|
+
declare type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
5
|
+
export declare type Notification = {
|
6
|
+
/**
|
7
|
+
* The duration to show the notification in milliseconds. Set to {@link Infinity} to
|
8
|
+
* make the notification persistent. Persistent notifications can only be hidden by user
|
9
|
+
* input. type "danger" is persistent by default.
|
10
|
+
*/
|
11
|
+
duration: number;
|
12
|
+
position: Position;
|
13
|
+
title?: string;
|
14
|
+
message: string;
|
15
|
+
variant: Variant;
|
16
|
+
/**
|
17
|
+
* Either ID provided by the dispatcher or if not provided it will be generated.
|
18
|
+
* This will be used to dismiss and control the notification you have dispatched.
|
19
|
+
*/
|
20
|
+
id: NotificationId;
|
21
|
+
};
|
22
|
+
export declare type DispatchableNotification = PartialBy<Notification, 'id' | 'duration' | 'position' | 'variant'>;
|
23
|
+
export declare type State = {
|
24
|
+
notifications: Notification[];
|
25
|
+
};
|
26
|
+
export declare enum ActionTypes {
|
27
|
+
Notify = 0,
|
28
|
+
Dismiss = 1
|
29
|
+
}
|
30
|
+
export declare type Actions = {
|
31
|
+
type: ActionTypes.Notify;
|
32
|
+
notification: DispatchableNotification;
|
33
|
+
} | {
|
34
|
+
type: ActionTypes.Dismiss;
|
35
|
+
notificationId: NotificationId;
|
36
|
+
};
|
37
|
+
export {};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export var ActionTypes;
|
2
|
+
(function (ActionTypes) {
|
3
|
+
ActionTypes[ActionTypes["Notify"] = 0] = "Notify";
|
4
|
+
ActionTypes[ActionTypes["Dismiss"] = 1] = "Dismiss";
|
5
|
+
})(ActionTypes || (ActionTypes = {}));
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvbW9sZWN1bGVzL05vdGlmaWNhdGlvbi90eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE2QkEsTUFBTSxDQUFOLElBQVksV0FHWDtBQUhELFdBQVksV0FBVztJQUNyQixpREFBTSxDQUFBO0lBQ04sbURBQU8sQ0FBQTtBQUNULENBQUMsRUFIVyxXQUFXLEtBQVgsV0FBVyxRQUd0QiJ9
|
@@ -3,7 +3,7 @@ import { type AriaOverlayProps } from '@react-aria/overlays';
|
|
3
3
|
import { type OverlayTriggerState } from '@react-stately/overlays';
|
4
4
|
import { type PositionProps } from '@react-types/overlays';
|
5
5
|
import { type PopoverPlacement } from './Popover';
|
6
|
-
export declare const PopoverOverlay: React.ForwardRefExoticComponent<AriaOverlayProps & Pick<PositionProps, "offset" | "
|
6
|
+
export declare const PopoverOverlay: React.ForwardRefExoticComponent<AriaOverlayProps & Pick<PositionProps, "offset" | "crossOffset" | "shouldFlip"> & {
|
7
7
|
id?: string | undefined;
|
8
8
|
role?: React.AriaRole | undefined;
|
9
9
|
triggerRef: React.RefObject<Element>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { type BoxProps } from '../../../src/molecules/Box/Box';
|
3
3
|
import type twTheme from '../../../tailwind.theme.json';
|
4
|
-
export declare type SpacingProps = Pick<BoxProps<'div'>, 'alignContent' | 'alignItems' | 'alignSelf' | 'justifyContent'> & {
|
4
|
+
export declare type SpacingProps = Pick<BoxProps<'div'>, 'alignContent' | 'alignItems' | 'alignSelf' | 'justifyContent' | 'style'> & {
|
5
5
|
/**
|
6
6
|
* Gap between children elements.
|
7
7
|
*/
|
@@ -15,4 +15,4 @@ export const Spacing = (_a) => {
|
|
15
15
|
var { gap, row } = _a, rest = __rest(_a, ["gap", "row"]);
|
16
16
|
return React.createElement(Box, Object.assign({}, rest, { display: "flex", flexDirection: row ? 'row' : 'column', gap: gap }));
|
17
17
|
};
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3BhY2luZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9tb2xlY3VsZXMvU3BhY2luZy9TcGFjaW5nLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUFBLE9BQU8sS0FBSyxNQUFNLE9BQU8sQ0FBQztBQUUxQixPQUFPLEVBQWlCLEdBQUcsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBa0IzRCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQTJCLENBQUMsRUFBcUIsRUFBRSxFQUFFO1FBQXpCLEVBQUUsR0FBRyxFQUFFLEdBQUcsT0FBVyxFQUFOLElBQUksY0FBbkIsY0FBcUIsQ0FBRjtJQUNqRSxPQUFPLG9CQUFDLEdBQUcsb0JBQUssSUFBSSxJQUFFLE9BQU8sRUFBQyxNQUFNLEVBQUMsYUFBYSxFQUFFLEdBQUcsQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxRQUFRLEVBQUUsR0FBRyxFQUFFLEdBQUcsSUFBSSxDQUFDO0FBQzNGLENBQUMsQ0FBQyJ9
|
@@ -39,6 +39,7 @@ export * from './MultiInput/MultiInput';
|
|
39
39
|
export * from './MultiSelect/MultiSelect';
|
40
40
|
export * from './NativeSelect/NativeSelect';
|
41
41
|
export * from './Navigation/Navigation';
|
42
|
+
export * from './Notification/Notification';
|
42
43
|
export * from './PageHeader/PageHeader';
|
43
44
|
export * from './Pagination/Pagination';
|
44
45
|
export * from './Popover/Popover';
|
@@ -40,6 +40,7 @@ export * from './MultiInput/MultiInput';
|
|
40
40
|
export * from './MultiSelect/MultiSelect';
|
41
41
|
export * from './NativeSelect/NativeSelect';
|
42
42
|
export * from './Navigation/Navigation';
|
43
|
+
export * from './Notification/Notification';
|
43
44
|
export * from './PageHeader/PageHeader';
|
44
45
|
export * from './Pagination/Pagination';
|
45
46
|
export * from './Popover/Popover';
|
@@ -73,4 +74,4 @@ export * from '../utils/table/useTableSelect';
|
|
73
74
|
export * from '../utils/table/useTableSort';
|
74
75
|
export * from './Pagination/usePagination';
|
75
76
|
export const SelectItem = Select.Item;
|
76
|
-
//# sourceMappingURL=data:application/json;base64,
|
77
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbW9sZWN1bGVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUVoRCxzREFBc0Q7QUFDdEQsY0FBYyxlQUFlL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QXNCLENBQUM7QUFDckMsY0FBYyxnQ0FBZ0MsQ0FBQztBQUMvQyxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsNkJBQTZCLENBQUM7QUFDNUMsY0FBYyw0QkFBNEIsQ0FBQztBQUUzQyxNQUFNLENBQUMsTUFBTSxVQUFVLEdBQUcsTUFBTSxDQUFDLElBQUksQ0FBQyJ9
|
@@ -1,2 +1,17 @@
|
|
1
1
|
import '@testing-library/jest-dom';
|
2
|
-
|
2
|
+
jest.mock('lodash/uniqueId', () => {
|
3
|
+
return {
|
4
|
+
__esModule: true,
|
5
|
+
default: jest.fn(() => 'abcde'),
|
6
|
+
};
|
7
|
+
});
|
8
|
+
beforeAll(() => {
|
9
|
+
Object.defineProperty(window, 'IntersectionObserver', {
|
10
|
+
writable: true,
|
11
|
+
value: jest.fn().mockImplementation(() => ({
|
12
|
+
observe: () => jest.fn(),
|
13
|
+
disconnect: () => jest.fn(),
|
14
|
+
})),
|
15
|
+
});
|
16
|
+
});
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2V0dXBUZXN0cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy91dGlscy9zZXR1cFRlc3RzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sMkJBQTJCLENBQUM7QUFFbkMsSUFBSSxDQUFDLElBQUksQ0FBQyxpQkFBaUIsRUFBRSxHQUFHLEVBQUU7SUFDaEMsT0FBTztRQUNMLFVBQVUsRUFBRSxJQUFJO1FBQ2hCLE9BQU8sRUFBRSxJQUFJLENBQUMsRUFBRSxDQUFDLEdBQUcsRUFBRSxDQUFDLE9BQU8sQ0FBQztLQUNoQyxDQUFDO0FBQ0osQ0FBQyxDQUFDLENBQUM7QUFFSCxTQUFTLENBQUMsR0FBRyxFQUFFO0lBQ2IsTUFBTSxDQUFDLGNBQWMsQ0FBQyxNQUFNLEVBQUUsc0JBQXNCLEVBQUU7UUFDcEQsUUFBUSxFQUFFLElBQUk7UUFDZCxLQUFLLEVBQUUsSUFBSSxDQUFDLEVBQUUsRUFBRSxDQUFDLGtCQUFrQixDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUM7WUFDekMsT0FBTyxFQUFFLEdBQUcsRUFBRSxDQUFDLElBQUksQ0FBQyxFQUFFLEVBQUU7WUFDeEIsVUFBVSxFQUFFLEdBQUcsRUFBRSxDQUFDLElBQUksQ0FBQyxFQUFFLEVBQUU7U0FDNUIsQ0FBQyxDQUFDO0tBQ0osQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ==
|
package/dist/styles.css
CHANGED
@@ -362,6 +362,42 @@ input[type='number'].no-arrows::-webkit-inner-spin-button,input[type='number'].n
|
|
362
362
|
input[type='number'].no-arrows {
|
363
363
|
-moz-appearance: textfield; /* Firefox */
|
364
364
|
}
|
365
|
+
.recharts-cartesian-axis-tick-value {
|
366
|
+
font-family: Inter;
|
367
|
+
font-size: 12px;
|
368
|
+
font-weight: 400;
|
369
|
+
font-style: normal;
|
370
|
+
line-height: 1.26;
|
371
|
+
text-transform: none;
|
372
|
+
fill: #787885;
|
373
|
+
}
|
374
|
+
.recharts-tooltip-wrapper {
|
375
|
+
font-family: Inter;
|
376
|
+
font-size: 12px;
|
377
|
+
font-weight: 400;
|
378
|
+
font-style: normal;
|
379
|
+
line-height: 1.26;
|
380
|
+
text-transform: none;
|
381
|
+
--tw-text-opacity: 1;
|
382
|
+
color: rgb(255 255 255 / var(--tw-text-opacity));
|
383
|
+
}
|
384
|
+
.recharts-tooltip-item {
|
385
|
+
align-items: center;
|
386
|
+
}
|
387
|
+
.recharts-tooltip-item::before {
|
388
|
+
display: inline-block;
|
389
|
+
content: ' ';
|
390
|
+
width: 10px;
|
391
|
+
height: 10px;
|
392
|
+
margin-right: 4px;
|
393
|
+
background: currentColor;
|
394
|
+
}
|
395
|
+
.recharts-tooltip-item>span {
|
396
|
+
color: white;
|
397
|
+
}
|
398
|
+
.recharts-tooltip-item-separator {
|
399
|
+
margin-right: 2px;
|
400
|
+
}
|
365
401
|
.container {
|
366
402
|
width: 100%;
|
367
403
|
}
|
@@ -687,8 +723,7 @@ input[type='number'].no-arrows {
|
|
687
723
|
--tw-ring-opacity: 1;
|
688
724
|
--tw-ring-color: rgb(3 153 227 / var(--tw-ring-opacity));
|
689
725
|
}
|
690
|
-
|
691
|
-
button svg path {
|
726
|
+
.icon-stroke-2 svg path {
|
692
727
|
stroke-width: 2;
|
693
728
|
}
|
694
729
|
.pointer-events-none {
|
@@ -362,6 +362,42 @@ input[type='number'].no-arrows::-webkit-inner-spin-button,input[type='number'].n
|
|
362
362
|
input[type='number'].no-arrows {
|
363
363
|
-moz-appearance: textfield; /* Firefox */
|
364
364
|
}
|
365
|
+
.recharts-cartesian-axis-tick-value {
|
366
|
+
font-family: Inter;
|
367
|
+
font-size: 12px;
|
368
|
+
font-weight: 400;
|
369
|
+
font-style: normal;
|
370
|
+
line-height: 1.26;
|
371
|
+
text-transform: none;
|
372
|
+
fill: #787885;
|
373
|
+
}
|
374
|
+
.recharts-tooltip-wrapper {
|
375
|
+
font-family: Inter;
|
376
|
+
font-size: 12px;
|
377
|
+
font-weight: 400;
|
378
|
+
font-style: normal;
|
379
|
+
line-height: 1.26;
|
380
|
+
text-transform: none;
|
381
|
+
--tw-text-opacity: 1;
|
382
|
+
color: rgb(255 255 255 / var(--tw-text-opacity));
|
383
|
+
}
|
384
|
+
.recharts-tooltip-item {
|
385
|
+
align-items: center;
|
386
|
+
}
|
387
|
+
.recharts-tooltip-item::before {
|
388
|
+
display: inline-block;
|
389
|
+
content: ' ';
|
390
|
+
width: 10px;
|
391
|
+
height: 10px;
|
392
|
+
margin-right: 4px;
|
393
|
+
background: currentColor;
|
394
|
+
}
|
395
|
+
.recharts-tooltip-item>span {
|
396
|
+
color: white;
|
397
|
+
}
|
398
|
+
.recharts-tooltip-item-separator {
|
399
|
+
margin-right: 2px;
|
400
|
+
}
|
365
401
|
.container {
|
366
402
|
width: 100%;
|
367
403
|
}
|
@@ -686,8 +722,7 @@ input[type='number'].no-arrows {
|
|
686
722
|
--tw-ring-opacity: 1;
|
687
723
|
--tw-ring-color: rgb(3 153 227 / var(--tw-ring-opacity));
|
688
724
|
}
|
689
|
-
|
690
|
-
button svg path {
|
725
|
+
.icon-stroke-2 svg path {
|
691
726
|
stroke-width: 2;
|
692
727
|
}
|
693
728
|
.pointer-events-none {
|