@bbl-digital/snorre 4.0.0-alpha.7 → 4.0.0-beta.10
Sign up to get free protection for your applications and to get access to all the features.
- package/.prettierignore +0 -1
- package/dist/bundle.js +850 -958
- package/esm/app-shell/index.js +0 -3
- package/esm/app-shell/theme.js +3 -2
- package/esm/core/Alert/Alert.stories.js +43 -0
- package/esm/core/Alert/index.js +2 -3
- package/esm/core/Alert/styles.js +6 -7
- package/esm/core/AppLoader/AppLoader.stories.js +10 -0
- package/esm/core/AppLoader/index.js +0 -2
- package/esm/core/Autocomplete/Autocomplete.stories.js +327 -0
- package/esm/core/Autocomplete/hooks/useAutocomplete.js +14 -49
- package/esm/core/Autocomplete/hooks/useHandleDimentions.js +2 -3
- package/esm/core/Autocomplete/index.js +2 -3
- package/esm/core/Autocomplete/styles.js +0 -2
- package/esm/core/Banner/Banner.stories.js +68 -0
- package/esm/core/Banner/index.js +0 -2
- package/esm/core/Banner/styles.js +0 -2
- package/esm/core/BarAndLineComposedChart/BarAndLineComposedChart.stories.js +94 -0
- package/esm/core/BarAndLineComposedChart/index.js +0 -2
- package/esm/core/BarChartWithCustomizedEvent/BarChartWithCustomizedEvent.stories.js +80 -0
- package/esm/core/BarChartWithCustomizedEvent/index.js +0 -3
- package/esm/core/Box/Box.stories.js +89 -0
- package/esm/core/Box/index.js +0 -4
- package/esm/core/Box/styles.js +0 -6
- package/esm/core/BoxedTable/BoxedTable.stories.js +351 -0
- package/esm/core/BoxedTable/DraggableRow/index.js +0 -2
- package/esm/core/BoxedTable/DraggableRow/styles.js +0 -2
- package/esm/core/BoxedTable/HeaderCell/index.js +0 -4
- package/esm/core/BoxedTable/RowCell/index.js +0 -2
- package/esm/core/BoxedTable/RowCell/styles.js +0 -2
- package/esm/core/BoxedTable/TableHeader/index.js +0 -2
- package/esm/core/BoxedTable/TableHeader/styles.js +0 -2
- package/esm/core/BoxedTable/TableRow/index.js +0 -7
- package/esm/core/BoxedTable/TableRow/styles.js +0 -2
- package/esm/core/BoxedTable/index.js +2 -5
- package/esm/core/BoxedTable/styles.js +11 -34
- package/esm/core/Button/Button.stories.js +121 -0
- package/esm/core/Button/index.js +0 -4
- package/esm/core/Button/styles.js +0 -4
- package/esm/core/Calendar/Calendar.stories.js +39 -0
- package/esm/core/Calendar/CalendarEvent/index.js +0 -8
- package/esm/core/Calendar/CalendarEvent/styles.js +0 -2
- package/esm/core/Calendar/CalendarSmallEvent/index.js +0 -8
- package/esm/core/Calendar/CalendarSmallEvent/styles.js +0 -2
- package/esm/core/Calendar/index.js +0 -5
- package/esm/core/Calendar/styles.js +0 -2
- package/esm/core/Calendar/util.js +0 -2
- package/esm/core/Card/Card.stories.js +69 -0
- package/esm/core/Card/index.js +0 -3
- package/esm/core/Card/styles.js +0 -1
- package/esm/core/Checkbox/Checkbox.stories.js +43 -0
- package/esm/core/Checkbox/index.js +0 -4
- package/esm/core/Checkbox/styles.js +0 -3
- package/esm/core/CollapseList/CollapseList.stories.js +43 -0
- package/esm/core/CollapseList/Item.js +0 -4
- package/esm/core/CollapseList/index.js +0 -2
- package/esm/core/CollapseList/styles.js +0 -2
- package/esm/core/CommentsTimeline/CommentLine/index.js +0 -2
- package/esm/core/CommentsTimeline/CommentLine/styles.js +0 -2
- package/esm/core/CommentsTimeline/CommentsTimeline.stories.js +79 -0
- package/esm/core/CommentsTimeline/index.js +0 -2
- package/esm/core/CommentsTimeline/styles.js +0 -2
- package/esm/core/CustomText/CustomText.stories.js +33 -0
- package/esm/core/CustomText/index.js +0 -6
- package/esm/core/CustomText/styles.js +0 -2
- package/esm/core/Datepicker/Datepicker.stories.js +58 -0
- package/esm/core/Datepicker/index.js +0 -20
- package/esm/core/Datepicker/styles.js +0 -2
- package/esm/core/DatepickerRange/DatepickerRange.stories.js +21 -0
- package/esm/core/DatepickerRange/index.js +17 -5
- package/esm/core/DatepickerRange/styles.js +0 -2
- package/esm/core/Divider/index.js +1 -2
- package/esm/core/Divider/styles.js +0 -1
- package/esm/core/Dropdown/Dropdown.stories.js +53 -0
- package/esm/core/Dropdown/index.js +0 -8
- package/esm/core/DropdownMenu/DropdownMenu.stories.js +47 -0
- package/esm/core/DropdownMenu/DropdownMenuOption.js +0 -2
- package/esm/core/DropdownMenu/index.js +0 -4
- package/esm/core/DropdownMenu/styles.js +0 -2
- package/esm/core/Editor/Editor.stories.js +54 -0
- package/esm/core/Editor/index.js +2 -6
- package/esm/core/Editor/styles.js +0 -2
- package/esm/core/FileInput/FileInput.stories.js +77 -0
- package/esm/core/FileInput/index.js +10 -13
- package/esm/core/FileInput/styles.js +32 -14
- package/esm/core/GoogleButton/GoogleButton.stories.js +12 -0
- package/esm/core/GoogleButton/index.js +0 -3
- package/esm/core/GoogleButton/styles.js +0 -2
- package/esm/core/Header/Header.stories.js +65 -0
- package/esm/core/Header/index.js +0 -2
- package/esm/core/HighlightText/HighlightText.stories.js +22 -0
- package/esm/core/HighlightText/index.js +0 -2
- package/esm/core/HighlightText/styles.js +0 -2
- package/esm/core/Html/Html.stories.js +43 -0
- package/esm/core/Html/index.js +0 -2
- package/esm/core/Html/styles.js +0 -1
- package/esm/core/Image/Image.stories.js +26 -0
- package/esm/core/Image/index.js +1 -2
- package/esm/core/Image/styles.js +0 -1
- package/esm/core/ImageCarousel/index.js +70 -0
- package/esm/core/ImageCarousel/styles.js +58 -0
- package/esm/core/ImagePicker/IconWithBackground.js +0 -2
- package/esm/core/ImagePicker/ImagePicker.stories.js +28 -0
- package/esm/core/ImagePicker/UploadButton.js +0 -2
- package/esm/core/ImagePicker/index.js +2 -5
- package/esm/core/ImagePicker/styles.js +0 -1
- package/esm/core/InfoButton/InfoButton.stories.js +57 -0
- package/esm/core/InfoButton/index.js +2 -9
- package/esm/core/InfoButton/styles.js +13 -15
- package/esm/core/Input/Input.stories.js +158 -0
- package/esm/core/Input/index.js +8 -11
- package/esm/core/Input/styles.js +16 -25
- package/esm/core/Link/Link.stories.js +75 -0
- package/esm/core/Link/index.js +2 -3
- package/esm/core/Link/styles.js +0 -2
- package/esm/core/List/Item.js +0 -3
- package/esm/core/List/List.stories.js +157 -0
- package/esm/core/List/index.js +0 -3
- package/esm/core/List/styles.js +0 -4
- package/esm/core/ListPager/ListPager.stories.js +16 -0
- package/esm/core/ListPager/index.js +0 -8
- package/esm/core/ListPager/styles.js +0 -2
- package/esm/core/Modal/ActionButtons/index.js +22 -0
- package/esm/core/Modal/Modal.stories.js +117 -0
- package/esm/core/Modal/index.js +6 -15
- package/esm/core/Modal/styles.js +0 -4
- package/esm/core/NoticeCard/NoticeCard.stories.js +61 -0
- package/esm/core/NoticeCard/index.js +0 -4
- package/esm/core/NoticeCard/models.js +0 -1
- package/esm/core/NoticeCard/privateComponents/NoticeAttachmentBlock/index.js +2 -3
- package/esm/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.js +4 -6
- package/esm/core/NoticeCard/privateComponents/NoticeAttachmentList/index.js +0 -2
- package/esm/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.js +0 -2
- package/esm/core/NoticeCard/privateComponents/NoticeMetaInfo/index.js +0 -2
- package/esm/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +0 -2
- package/esm/core/NoticeCard/styles.js +0 -2
- package/esm/core/NoticeCard/utils.js +0 -3
- package/esm/core/NotificationCounter/NotificationCounter.stories.js +19 -0
- package/esm/core/NotificationCounter/index.js +1 -2
- package/esm/core/NotificationCounter/styles.js +0 -4
- package/esm/core/NotificationsMenu/NotificationBell/index.js +0 -2
- package/esm/core/NotificationsMenu/NotificationRow/index.js +0 -2
- package/esm/core/NotificationsMenu/NotificationsMenu.stories.js +33 -0
- package/esm/core/NotificationsMenu/index.js +0 -8
- package/esm/core/NotificationsMenu/styles.js +0 -2
- package/esm/core/PieChart/ActiveShape/index.js +1 -3
- package/esm/core/PieChart/PieChart.stories.js +81 -0
- package/esm/core/PieChart/index.js +6 -7
- package/esm/core/PieChart/renderTextContent/index.js +1 -3
- package/esm/core/PieChart/styles.js +0 -2
- package/esm/core/PreemptionCard/PreemptionCard.stories.js +68 -0
- package/esm/core/PreemptionCard/index.js +0 -5
- package/esm/core/PreemptionCard/models.js +0 -1
- package/esm/core/PreemptionCard/styles.js +0 -2
- package/esm/core/PreemptionCardLoading/PreemptionCardLoading.stories.js +15 -0
- package/esm/core/PreemptionCardLoading/index.js +0 -2
- package/esm/core/PreemptionCardLoading/styles.js +0 -2
- package/esm/core/Radio/Radio.stories.js +66 -0
- package/esm/core/Radio/index.js +0 -2
- package/esm/core/Radio/styles.js +0 -1
- package/esm/core/SearchFilter/SearchFilter.stories.js +113 -0
- package/esm/core/SearchFilter/index.js +2 -10
- package/esm/core/SearchFilter/styles.js +0 -4
- package/esm/core/SearchSelect/SearchSelect.stories.js +52 -0
- package/esm/core/SearchSelect/hooks/useSelectSearch.js +2 -3
- package/esm/core/SearchSelect/index.js +4 -12
- package/esm/core/SearchSelect/styles.js +0 -2
- package/esm/core/Select/Option.js +2 -4
- package/esm/core/Select/Select.stories.js +246 -0
- package/esm/core/Select/index.js +21 -20
- package/esm/core/Select/styles.js +36 -33
- package/esm/core/SimpleBarChart/SimpleBarChart.stories.js +174 -0
- package/esm/core/SimpleBarChart/index.js +0 -3
- package/esm/core/SimpleLineChart/SimpleLineChart.stories.js +53 -0
- package/esm/core/SimpleLineChart/index.js +0 -2
- package/esm/core/Skeleton/Skeleton.stories.js +46 -0
- package/esm/core/Skeleton/index.js +0 -4
- package/esm/core/Skeleton/styles.js +0 -2
- package/esm/core/Spinner/Spinner.stories.js +30 -0
- package/esm/core/Spinner/index.js +0 -2
- package/esm/core/TabBar/TabBar.stories.js +38 -0
- package/esm/core/TabBar/TabItem/index.js +0 -2
- package/esm/core/TabBar/TabItem/styles.js +0 -2
- package/esm/core/TabBar/index.js +0 -2
- package/esm/core/TabBar/styles.js +0 -2
- package/esm/core/TabNav/TabContext.js +8 -5
- package/esm/core/TabNav/TabNav.stories.js +306 -0
- package/esm/core/TabNav/TabNavItem/index.js +2 -6
- package/esm/core/TabNav/TabNavItem/styles.js +0 -2
- package/esm/core/TabNav/index.js +11 -14
- package/esm/core/TabNav/styles.js +0 -2
- package/esm/core/TabNav/utils/useContainerDimensions.js +0 -1
- package/esm/core/Table/Cell.js +2 -3
- package/esm/core/Table/Row.js +2 -3
- package/esm/core/Table/Table.stories.js +83 -0
- package/esm/core/Table/index.js +4 -4
- package/esm/core/Table/styles.js +0 -2
- package/esm/core/Tag/Tag.stories.js +112 -0
- package/esm/core/Tag/index.js +0 -2
- package/esm/core/Tag/styles.js +0 -1
- package/esm/core/Text/Text.stories.js +103 -0
- package/esm/core/Text/index.js +0 -2
- package/esm/core/Text/styles.js +0 -1
- package/esm/core/Textarea/Textarea.stories.js +33 -0
- package/esm/core/Textarea/index.js +0 -5
- package/esm/core/Textarea/styles.js +0 -2
- package/esm/core/Timeline/Timeline.stories.js +25 -0
- package/esm/core/Timeline/TimelineStep/index.js +0 -2
- package/esm/core/Timeline/TimelineStep/styles.js +0 -2
- package/esm/core/Timeline/index.js +0 -2
- package/esm/core/Timeline/styles.js +0 -2
- package/esm/core/Timepicker/Timepicker.stories.js +77 -0
- package/esm/core/Timepicker/index.js +7 -16
- package/esm/core/Timepicker/styles.js +0 -2
- package/esm/core/Tooltip/Tooptip.stories.js +14 -0
- package/esm/core/Tooltip/index.js +0 -3
- package/esm/core/Tooltip/styles.js +2 -3
- package/esm/core/UnitIllustration/index.js +1 -9
- package/esm/core/UserMenu/UserMenu.stories.js +91 -0
- package/esm/core/UserMenu/UserMenuOption.js +0 -2
- package/esm/core/UserMenu/index.js +0 -8
- package/esm/core/UserMenu/styles.js +0 -2
- package/esm/core/YearWheel/YearWheel.stories.js +20 -0
- package/esm/core/YearWheel/index.js +0 -2
- package/esm/core/YearWheel/styles.js +0 -2
- package/esm/core/private/ButtonOrLink.js +8 -13
- package/esm/core/private/preemption.js +0 -4
- package/esm/core/utils/debounce.js +0 -2
- package/esm/enums/Keyboard.js +1 -1
- package/esm/enums/ModifierKey.js +13 -0
- package/esm/globals/styles/styles.js +0 -1
- package/esm/hooks/useIsMobile.js +0 -2
- package/esm/hooks/useScreenOrientation.js +0 -10
- package/esm/icons/General/IconApartment.js +0 -2
- package/esm/icons/General/IconArchives.js +0 -2
- package/esm/icons/General/IconArea.js +0 -2
- package/esm/icons/General/IconArrowDown.js +0 -2
- package/esm/icons/General/IconArrowLeft.js +0 -2
- package/esm/icons/General/IconArrowRight.js +0 -2
- package/esm/icons/General/IconArrowUp.js +0 -2
- package/esm/icons/General/IconAttachment.js +0 -2
- package/esm/icons/General/IconAuditorFilled.js +0 -2
- package/esm/icons/General/IconAuditorOutline.js +0 -2
- package/esm/icons/General/IconBack.js +0 -2
- package/esm/icons/General/IconBath.js +0 -2
- package/esm/icons/General/IconBblFlame.js +2 -3
- package/esm/icons/General/IconBblShield.js +2 -3
- package/esm/icons/General/IconBblWater.js +2 -3
- package/esm/icons/General/IconBellOutline.js +0 -2
- package/esm/icons/General/IconBlock.js +0 -2
- package/esm/icons/General/IconBoard.js +0 -2
- package/esm/icons/General/IconBookmarkFilled.js +0 -2
- package/esm/icons/General/IconBookmarkOutline.js +0 -2
- package/esm/icons/General/IconBus.js +0 -2
- package/esm/icons/General/IconCalendar.js +0 -2
- package/esm/icons/General/IconCamera.js +0 -2
- package/esm/icons/General/IconCar.js +0 -2
- package/esm/icons/General/IconCaretDown.js +0 -2
- package/esm/icons/General/IconCaretLeft.js +0 -2
- package/esm/icons/General/IconCaretRight.js +0 -2
- package/esm/icons/General/IconCaretUp.js +0 -2
- package/esm/icons/General/IconCases.js +0 -2
- package/esm/icons/General/IconCheck.js +0 -2
- package/esm/icons/General/IconCheckedFilled.js +0 -2
- package/esm/icons/General/IconCheckedOutline.js +0 -2
- package/esm/icons/General/IconChevronDown.js +0 -2
- package/esm/icons/General/IconChevronLeft.js +0 -2
- package/esm/icons/General/IconChevronRight.js +0 -2
- package/esm/icons/General/IconChoice.js +0 -2
- package/esm/icons/General/IconClose.js +0 -2
- package/esm/icons/General/IconCloseAlt.js +0 -2
- package/esm/icons/General/IconComment.js +0 -2
- package/esm/icons/General/IconCommunication.js +0 -2
- package/esm/icons/General/IconCommunicationFilled.js +0 -2
- package/esm/icons/General/IconCompanyBuilding.js +0 -2
- package/esm/icons/General/IconCompanyBuildingFilled.js +0 -2
- package/esm/icons/General/IconCompanyBuildingOutline.js +0 -2
- package/esm/icons/General/IconDashboard.js +0 -2
- package/esm/icons/General/IconDashboardFilled.js +0 -2
- package/esm/icons/General/IconDelete.js +0 -2
- package/esm/icons/General/IconDocument.js +0 -2
- package/esm/icons/General/IconDocumentFilled.js +0 -2
- package/esm/icons/General/IconDoor.js +0 -2
- package/esm/icons/General/IconDotFilled.js +0 -2
- package/esm/icons/General/IconDotOutline.js +0 -2
- package/esm/icons/General/IconDownload.js +0 -2
- package/esm/icons/General/IconDraft.js +0 -2
- package/esm/icons/General/IconEarth.js +0 -2
- package/esm/icons/General/IconEconomy.js +0 -2
- package/esm/icons/General/IconEconomyFilled.js +0 -2
- package/esm/icons/General/IconEdit.js +0 -2
- package/esm/icons/General/IconElevator.js +0 -2
- package/esm/icons/General/IconErrorFilled.js +0 -2
- package/esm/icons/General/IconErrorOutline.js +0 -2
- package/esm/icons/General/IconExternalLink.js +0 -2
- package/esm/icons/General/IconEye.js +0 -2
- package/esm/icons/General/IconEyeDeny.js +0 -2
- package/esm/icons/General/IconFamily.js +0 -2
- package/esm/icons/General/IconFerry.js +0 -2
- package/esm/icons/General/IconFile.js +0 -2
- package/esm/icons/General/IconFileAdd.js +0 -2
- package/esm/icons/General/IconFileCopy.js +0 -2
- package/esm/icons/General/IconFileEdit.js +0 -2
- package/esm/icons/General/IconFileExcel.js +0 -2
- package/esm/icons/General/IconFilePDF.js +0 -2
- package/esm/icons/General/IconFileWord.js +0 -2
- package/esm/icons/General/IconFillOut.js +0 -2
- package/esm/icons/General/IconFilterList.js +0 -2
- package/esm/icons/General/IconFloor.js +0 -2
- package/esm/icons/General/IconForward.js +0 -2
- package/esm/icons/General/IconFullscreenClose.js +0 -2
- package/esm/icons/General/IconFullscreenOpen.js +0 -2
- package/esm/icons/General/IconGarage.js +0 -2
- package/esm/icons/General/IconGrid.js +0 -2
- package/esm/icons/General/IconGym.js +0 -2
- package/esm/icons/General/IconHearth.js +0 -2
- package/esm/icons/General/IconHearthOutline.js +0 -2
- package/esm/icons/General/IconHelp.js +0 -2
- package/esm/icons/General/IconHistory.js +0 -2
- package/esm/icons/General/IconHomeFilled.js +0 -2
- package/esm/icons/General/IconHomeOutline.js +0 -2
- package/esm/icons/General/IconHouse.js +0 -2
- package/esm/icons/General/IconHouseBlockFilled.js +0 -2
- package/esm/icons/General/IconHouseBlockOutline.js +0 -2
- package/esm/icons/General/IconHouseOutline.js +0 -2
- package/esm/icons/General/IconHumans.js +0 -2
- package/esm/icons/General/IconImage.js +0 -2
- package/esm/icons/General/IconImportantComment.js +0 -2
- package/esm/icons/General/IconInbox.js +0 -2
- package/esm/icons/General/IconInfoFilled.js +0 -2
- package/esm/icons/General/IconInfoOutline.js +0 -2
- package/esm/icons/General/IconJanitorFilled.js +0 -2
- package/esm/icons/General/IconJanitorOutline.js +0 -2
- package/esm/icons/General/IconJointcost.js +0 -2
- package/esm/icons/General/IconJointcost2.js +0 -2
- package/esm/icons/General/IconKey.js +0 -2
- package/esm/icons/General/IconKitchen.js +0 -2
- package/esm/icons/General/IconLabel.js +0 -2
- package/esm/icons/General/IconLeafFilled.js +0 -2
- package/esm/icons/General/IconLeafOutline.js +0 -2
- package/esm/icons/General/IconLeisureTime.js +0 -2
- package/esm/icons/General/IconLock.js +0 -2
- package/esm/icons/General/IconLockLocked.js +0 -2
- package/esm/icons/General/IconLockOpen.js +0 -2
- package/esm/icons/General/IconLookup.js +0 -2
- package/esm/icons/General/IconLookupFilled.js +0 -2
- package/esm/icons/General/IconMail.js +0 -2
- package/esm/icons/General/IconMap.js +0 -2
- package/esm/icons/General/IconMembership.js +0 -2
- package/esm/icons/General/IconMembershipFilled.js +0 -2
- package/esm/icons/General/IconMenu.js +0 -2
- package/esm/icons/General/IconMinus.js +0 -2
- package/esm/icons/General/IconMinusAlt.js +0 -2
- package/esm/icons/General/IconMinusAltFilled.js +0 -2
- package/esm/icons/General/IconMoney.js +0 -2
- package/esm/icons/General/IconParking.js +0 -2
- package/esm/icons/General/IconPaymentCard.js +0 -2
- package/esm/icons/General/IconPhone.js +0 -2
- package/esm/icons/General/IconPinned.js +0 -2
- package/esm/icons/General/IconPlus.js +0 -2
- package/esm/icons/General/IconPlusAlt.js +0 -2
- package/esm/icons/General/IconPortalUser.js +0 -2
- package/esm/icons/General/IconPrint.js +0 -2
- package/esm/icons/General/IconProfile.js +0 -2
- package/esm/icons/General/IconProfileFilled.js +0 -2
- package/esm/icons/General/IconRearrange.js +0 -2
- package/esm/icons/General/IconReciept.js +0 -2
- package/esm/icons/General/IconRedo.js +0 -2
- package/esm/icons/General/IconRefresh.js +0 -2
- package/esm/icons/General/IconReply.js +0 -2
- package/esm/icons/General/IconReplyAll.js +0 -2
- package/esm/icons/General/IconRoom.js +0 -2
- package/esm/icons/General/IconSave.js +0 -2
- package/esm/icons/General/IconSearch.js +0 -2
- package/esm/icons/General/IconSend.js +0 -2
- package/esm/icons/General/IconSettings.js +0 -2
- package/esm/icons/General/IconShopping.js +0 -2
- package/esm/icons/General/IconSign.js +0 -2
- package/esm/icons/General/IconSliders.js +0 -2
- package/esm/icons/General/IconSort.js +0 -2
- package/esm/icons/General/IconStarFilled.js +0 -2
- package/esm/icons/General/IconStarHalf.js +0 -2
- package/esm/icons/General/IconStarOutline.js +0 -2
- package/esm/icons/General/IconStore.js +0 -2
- package/esm/icons/General/IconSubway.js +0 -2
- package/esm/icons/General/IconSwitch.js +0 -2
- package/esm/icons/General/IconTrain.js +0 -2
- package/esm/icons/General/IconTram.js +0 -2
- package/esm/icons/General/IconTransport.js +0 -2
- package/esm/icons/General/IconTypeOfBuilding.js +0 -2
- package/esm/icons/General/IconTypeOfBuildingOutline.js +0 -2
- package/esm/icons/General/IconUndo.js +0 -2
- package/esm/icons/General/IconUpload.js +0 -2
- package/esm/icons/General/IconUser.js +0 -2
- package/esm/icons/General/IconUserThin.js +0 -2
- package/esm/icons/General/IconVote.js +0 -2
- package/esm/icons/General/IconWalk.js +0 -2
- package/esm/icons/General/IconWarning.js +0 -2
- package/esm/icons/General/IconWarningBell.js +0 -2
- package/esm/icons/General/IconWork.js +0 -2
- package/esm/icons/General/IconWorkFilled.js +0 -2
- package/esm/icons/General/IconZip.js +0 -2
- package/esm/icons/Icon.stories.js +629 -0
- package/esm/icons/Logos/IconAmericanExpress.js +0 -2
- package/esm/icons/Logos/IconBankAxept.js +0 -2
- package/esm/icons/Logos/IconGmail.js +0 -2
- package/esm/icons/Logos/IconMasterCard.js +0 -2
- package/esm/icons/Logos/IconOffice365.js +0 -2
- package/esm/icons/Logos/IconVisa.js +0 -2
- package/esm/icons/withIcon.js +2 -3
- package/esm/illustrations/Backgrounds/IllustrationHousesBackground.js +0 -2
- package/esm/illustrations/Backgrounds/IllustrationHousesBackgroundWithComposition.js +0 -2
- package/esm/illustrations/General/IllustrationError.js +0 -2
- package/esm/illustrations/General/IllustrationErrorGeneric.js +0 -2
- package/esm/illustrations/General/IllustrationHighHouse.js +0 -2
- package/esm/illustrations/General/IllustrationHighHouseComposition.js +0 -2
- package/esm/illustrations/General/IllustrationHouse.js +0 -2
- package/esm/illustrations/General/IllustrationHouseComposition.js +0 -2
- package/esm/illustrations/General/IllustrationHouseMissing.js +0 -2
- package/esm/illustrations/General/IllustrationLowHouse.js +0 -2
- package/esm/illustrations/General/IllustrationLowHouseComposition.js +0 -2
- package/esm/illustrations/General/IllustrationPaperCompleted.js +0 -2
- package/esm/illustrations/General/IllustrationPaperMissing.js +0 -2
- package/esm/illustrations/General/IllustrationSemiDetachedHouse.js +0 -2
- package/esm/illustrations/General/IllustrationSemiDetachedHouseComposition.js +0 -2
- package/esm/illustrations/General/IllustrationSmallHouse.js +0 -2
- package/esm/illustrations/General/IllustrationSmallHouseComposition.js +0 -2
- package/esm/illustrations/General/IllustrationTerraceBlock.js +0 -2
- package/esm/illustrations/General/IllustrationTerraceBlockComposition.js +0 -2
- package/esm/illustrations/General/IllustrationTownHouse.js +0 -2
- package/esm/illustrations/General/IllustrationTownHouseComposition.js +0 -2
- package/esm/illustrations/Illustration.stories.js +173 -0
- package/esm/illustrations/MySite/IllustrationMySiteAssociation.js +79 -0
- package/esm/illustrations/MySite/IllustrationMySiteBuilding.js +0 -2
- package/esm/illustrations/MySite/IllustrationMySiteCoffeeBook.js +0 -2
- package/esm/illustrations/MySite/IllustrationMySiteComputer.js +0 -2
- package/esm/illustrations/MySite/IllustrationMySiteCooperative.js +117 -0
- package/esm/illustrations/MySite/IllustrationMySiteDashboard.js +131 -0
- package/esm/illustrations/MySite/IllustrationMySiteGift.js +0 -2
- package/esm/illustrations/MySite/IllustrationMySiteMailbox.js +99 -0
- package/esm/illustrations/MySite/IllustrationMySitePapers.js +0 -2
- package/esm/illustrations/MySite/IllustrationMySitePiggyBank.js +0 -2
- package/esm/illustrations/MySite/IllustrationMySiteTransfer.js +0 -2
- package/esm/illustrations/styles.js +6 -3
- package/esm/illustrations/withIllustration.js +2 -4
- package/esm/index.js +5 -1
- package/esm/layout/Footer/Footer.stories.js +62 -0
- package/esm/layout/Footer/FooterButton/index.js +2 -3
- package/esm/layout/Footer/FooterButton/styles.js +0 -2
- package/esm/layout/Footer/FooterCol/index.js +0 -2
- package/esm/layout/Footer/FooterCol/styles.js +0 -2
- package/esm/layout/Footer/FooterGroup/index.js +0 -2
- package/esm/layout/Footer/FooterGroup/styles.js +0 -2
- package/esm/layout/Footer/FooterLabel/index.js +0 -2
- package/esm/layout/Footer/FooterLabel/styles.js +0 -2
- package/esm/layout/Footer/FooterLink/index.js +2 -3
- package/esm/layout/Footer/FooterLink/styles.js +0 -2
- package/esm/layout/Footer/index.js +0 -2
- package/esm/layout/Layout/Layout.stories.js +14 -0
- package/esm/layout/Layout/index.js +0 -2
- package/esm/layout/LayoutShell/LayoutShell.stories.js +116 -0
- package/esm/layout/LayoutShell/index.js +0 -2
- package/esm/layout/LayoutShell/styles.js +0 -2
- package/esm/layout/Menu/AppPicker/index.js +8 -5
- package/esm/layout/Menu/AppPicker/styles.js +26 -5
- package/esm/layout/Menu/MainMenu/index.js +0 -2
- package/esm/layout/Menu/MenuItem/index.js +0 -2
- package/esm/layout/Menu/MenuSpacer/index.js +0 -2
- package/esm/layout/Menu/MenuTop/index.js +0 -2
- package/esm/layout/Menu/MenuTop/styles.js +0 -2
- package/esm/layout/Menu/SecondaryMenu/index.js +1 -3
- package/esm/layout/Menu/SecondaryMenuItem/index.js +0 -2
- package/esm/layout/Menu/Sidemenu.stories.js +323 -0
- package/esm/layout/Menu/index.js +1 -4
- package/esm/layout/Menu/styles.js +1 -1
- package/esm/layout/Submenu/Submenu.stories.js +94 -0
- package/esm/layout/Submenu/SubmenuItem/index.js +0 -7
- package/esm/layout/Submenu/SubmenuItem/styles.js +0 -5
- package/esm/layout/Submenu/SubmenuLightThemeBg/index.js +0 -2
- package/esm/layout/Submenu/index.js +1 -12
- package/esm/layout/Submenu/styles.js +10 -12
- package/esm/layout/Topbar/Topbar.stories.js +23 -0
- package/esm/layout/Topbar/index.js +0 -2
- package/esm/shared/components/SbIconGrid/index.js +27 -0
- package/esm/shared/recharts/CustomLegend/styles.js +0 -2
- package/esm/shared/recharts/CustomTooltip/index.js +0 -11
- package/esm/shared/recharts/CustomTooltip/styles.js +0 -2
- package/esm/shared/types/LoadedType.js +1 -0
- package/esm/utils/accountNumber.js +1 -7
- package/esm/utils/alpha.js +0 -1
- package/esm/utils/array.js +1 -3
- package/esm/utils/dates.js +0 -10
- package/esm/utils/file.js +1 -0
- package/esm/utils/format.js +3 -21
- package/esm/utils/formatGraphPrice.js +0 -15
- package/esm/utils/image.js +0 -3
- package/esm/utils/pagination.js +0 -5
- package/esm/utils/phone.js +8 -13
- package/esm/utils/time.js +4 -14
- package/esm/utils/url.js +0 -2
- package/esm/utils/useSnorreTheme.js +4 -11
- package/infrastructure/azure-pipelines.yml +6 -1
- package/lib/app-shell/index.js +0 -3
- package/lib/app-shell/theme.d.ts +95 -1
- package/lib/app-shell/theme.d.ts.map +1 -1
- package/lib/app-shell/theme.js +3 -2
- package/lib/core/Alert/Alert.stories.d.ts +23 -0
- package/lib/core/Alert/Alert.stories.d.ts.map +1 -0
- package/lib/core/Alert/Alert.stories.js +43 -0
- package/lib/core/Alert/index.d.ts +1 -1
- package/lib/core/Alert/index.d.ts.map +1 -1
- package/lib/core/Alert/index.js +2 -3
- package/lib/core/Alert/styles.d.ts +1 -1
- package/lib/core/Alert/styles.d.ts.map +1 -1
- package/lib/core/Alert/styles.js +6 -7
- package/lib/core/AppLoader/AppLoader.stories.d.ts +7 -0
- package/lib/core/AppLoader/AppLoader.stories.d.ts.map +1 -0
- package/lib/core/AppLoader/AppLoader.stories.js +10 -0
- package/lib/core/AppLoader/index.js +0 -2
- package/lib/core/Autocomplete/Autocomplete.stories.d.ts +71 -0
- package/lib/core/Autocomplete/Autocomplete.stories.d.ts.map +1 -0
- package/lib/core/Autocomplete/Autocomplete.stories.js +327 -0
- package/lib/core/Autocomplete/hooks/useAutocomplete.js +14 -49
- package/lib/core/Autocomplete/hooks/useHandleDimentions.js +2 -3
- package/lib/core/Autocomplete/index.js +2 -3
- package/lib/core/Autocomplete/styles.js +0 -2
- package/lib/core/Banner/Banner.stories.d.ts +23 -0
- package/lib/core/Banner/Banner.stories.d.ts.map +1 -0
- package/lib/core/Banner/Banner.stories.js +68 -0
- package/lib/core/Banner/index.js +0 -2
- package/lib/core/Banner/styles.js +0 -2
- package/lib/core/BarAndLineComposedChart/BarAndLineComposedChart.stories.d.ts +8 -0
- package/lib/core/BarAndLineComposedChart/BarAndLineComposedChart.stories.d.ts.map +1 -0
- package/lib/core/BarAndLineComposedChart/BarAndLineComposedChart.stories.js +94 -0
- package/lib/core/BarAndLineComposedChart/index.js +0 -2
- package/lib/core/BarChartWithCustomizedEvent/BarChartWithCustomizedEvent.stories.d.ts +14 -0
- package/lib/core/BarChartWithCustomizedEvent/BarChartWithCustomizedEvent.stories.d.ts.map +1 -0
- package/lib/core/BarChartWithCustomizedEvent/BarChartWithCustomizedEvent.stories.js +80 -0
- package/lib/core/BarChartWithCustomizedEvent/index.js +0 -3
- package/lib/core/Box/Box.stories.d.ts +39 -0
- package/lib/core/Box/Box.stories.d.ts.map +1 -0
- package/lib/core/Box/Box.stories.js +89 -0
- package/lib/core/Box/index.js +0 -4
- package/lib/core/Box/styles.js +0 -6
- package/lib/core/BoxedTable/BoxedTable.stories.d.ts +35 -0
- package/lib/core/BoxedTable/BoxedTable.stories.d.ts.map +1 -0
- package/lib/core/BoxedTable/BoxedTable.stories.js +351 -0
- package/lib/core/BoxedTable/DraggableRow/index.js +0 -2
- package/lib/core/BoxedTable/DraggableRow/styles.js +0 -2
- package/lib/core/BoxedTable/HeaderCell/index.js +0 -4
- package/lib/core/BoxedTable/RowCell/index.js +0 -2
- package/lib/core/BoxedTable/RowCell/styles.js +0 -2
- package/lib/core/BoxedTable/TableHeader/index.js +0 -2
- package/lib/core/BoxedTable/TableHeader/styles.js +0 -2
- package/lib/core/BoxedTable/TableRow/index.js +0 -7
- package/lib/core/BoxedTable/TableRow/styles.js +0 -2
- package/lib/core/BoxedTable/index.d.ts.map +1 -1
- package/lib/core/BoxedTable/index.js +2 -5
- package/lib/core/BoxedTable/styles.d.ts.map +1 -1
- package/lib/core/BoxedTable/styles.js +11 -34
- package/lib/core/Button/Button.stories.d.ts +63 -0
- package/lib/core/Button/Button.stories.d.ts.map +1 -0
- package/lib/core/Button/Button.stories.js +121 -0
- package/lib/core/Button/index.js +0 -4
- package/lib/core/Button/styles.js +0 -4
- package/lib/core/Calendar/Calendar.stories.d.ts +15 -0
- package/lib/core/Calendar/Calendar.stories.d.ts.map +1 -0
- package/lib/core/Calendar/Calendar.stories.js +39 -0
- package/lib/core/Calendar/CalendarEvent/index.js +0 -8
- package/lib/core/Calendar/CalendarEvent/styles.js +0 -2
- package/lib/core/Calendar/CalendarSmallEvent/index.js +0 -8
- package/lib/core/Calendar/CalendarSmallEvent/styles.js +0 -2
- package/lib/core/Calendar/index.js +0 -5
- package/lib/core/Calendar/styles.js +0 -2
- package/lib/core/Calendar/util.js +0 -2
- package/lib/core/Card/Card.stories.d.ts +49 -0
- package/lib/core/Card/Card.stories.d.ts.map +1 -0
- package/lib/core/Card/Card.stories.js +69 -0
- package/lib/core/Card/index.js +0 -3
- package/lib/core/Card/styles.js +0 -1
- package/lib/core/Checkbox/Checkbox.stories.d.ts +23 -0
- package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -0
- package/lib/core/Checkbox/Checkbox.stories.js +43 -0
- package/lib/core/Checkbox/index.js +0 -4
- package/lib/core/Checkbox/styles.js +0 -3
- package/lib/core/CollapseList/CollapseList.stories.d.ts +11 -0
- package/lib/core/CollapseList/CollapseList.stories.d.ts.map +1 -0
- package/lib/core/CollapseList/CollapseList.stories.js +43 -0
- package/lib/core/CollapseList/Item.js +0 -4
- package/lib/core/CollapseList/index.js +0 -2
- package/lib/core/CollapseList/styles.js +0 -2
- package/lib/core/CommentsTimeline/CommentLine/index.js +0 -2
- package/lib/core/CommentsTimeline/CommentLine/styles.js +0 -2
- package/lib/core/CommentsTimeline/CommentsTimeline.stories.d.ts +11 -0
- package/lib/core/CommentsTimeline/CommentsTimeline.stories.d.ts.map +1 -0
- package/lib/core/CommentsTimeline/CommentsTimeline.stories.js +79 -0
- package/lib/core/CommentsTimeline/index.js +0 -2
- package/lib/core/CommentsTimeline/styles.js +0 -2
- package/lib/core/CustomText/CustomText.stories.d.ts +19 -0
- package/lib/core/CustomText/CustomText.stories.d.ts.map +1 -0
- package/lib/core/CustomText/CustomText.stories.js +33 -0
- package/lib/core/CustomText/index.js +0 -6
- package/lib/core/CustomText/styles.js +0 -2
- package/lib/core/Datepicker/Datepicker.stories.d.ts +27 -0
- package/lib/core/Datepicker/Datepicker.stories.d.ts.map +1 -0
- package/lib/core/Datepicker/Datepicker.stories.js +58 -0
- package/lib/core/Datepicker/index.js +0 -20
- package/lib/core/Datepicker/styles.js +0 -2
- package/lib/core/Datepicker/yearMonthForm.d.ts.map +1 -1
- package/lib/core/DatepickerRange/DatepickerRange.stories.d.ts +7 -0
- package/lib/core/DatepickerRange/DatepickerRange.stories.d.ts.map +1 -0
- package/lib/core/DatepickerRange/DatepickerRange.stories.js +21 -0
- package/lib/core/DatepickerRange/index.js +17 -5
- package/lib/core/DatepickerRange/styles.js +0 -2
- package/lib/core/Divider/index.js +1 -2
- package/lib/core/Divider/styles.js +0 -1
- package/lib/core/Dropdown/Dropdown.stories.d.ts +23 -0
- package/lib/core/Dropdown/Dropdown.stories.d.ts.map +1 -0
- package/lib/core/Dropdown/Dropdown.stories.js +53 -0
- package/lib/core/Dropdown/index.js +0 -8
- package/lib/core/DropdownMenu/DropdownMenu.stories.d.ts +15 -0
- package/lib/core/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -0
- package/lib/core/DropdownMenu/DropdownMenu.stories.js +47 -0
- package/lib/core/DropdownMenu/DropdownMenuOption.js +0 -2
- package/lib/core/DropdownMenu/index.js +0 -4
- package/lib/core/DropdownMenu/styles.js +0 -2
- package/lib/core/Editor/Editor.stories.d.ts +23 -0
- package/lib/core/Editor/Editor.stories.d.ts.map +1 -0
- package/lib/core/Editor/Editor.stories.js +54 -0
- package/lib/core/Editor/index.js +2 -6
- package/lib/core/Editor/styles.js +0 -2
- package/lib/core/FileInput/FileInput.stories.d.ts +15 -0
- package/lib/core/FileInput/FileInput.stories.d.ts.map +1 -0
- package/lib/core/FileInput/FileInput.stories.js +77 -0
- package/lib/core/FileInput/index.d.ts +5 -1
- package/lib/core/FileInput/index.d.ts.map +1 -1
- package/lib/core/FileInput/index.js +10 -13
- package/lib/core/FileInput/styles.d.ts +3 -0
- package/lib/core/FileInput/styles.d.ts.map +1 -1
- package/lib/core/FileInput/styles.js +32 -14
- package/lib/core/GoogleButton/GoogleButton.stories.d.ts +7 -0
- package/lib/core/GoogleButton/GoogleButton.stories.d.ts.map +1 -0
- package/lib/core/GoogleButton/GoogleButton.stories.js +12 -0
- package/lib/core/GoogleButton/index.js +0 -3
- package/lib/core/GoogleButton/styles.js +0 -2
- package/lib/core/Header/Header.stories.d.ts +35 -0
- package/lib/core/Header/Header.stories.d.ts.map +1 -0
- package/lib/core/Header/Header.stories.js +65 -0
- package/lib/core/Header/index.js +0 -2
- package/lib/core/HighlightText/HighlightText.stories.d.ts +11 -0
- package/lib/core/HighlightText/HighlightText.stories.d.ts.map +1 -0
- package/lib/core/HighlightText/HighlightText.stories.js +22 -0
- package/lib/core/HighlightText/index.js +0 -2
- package/lib/core/HighlightText/styles.js +0 -2
- package/lib/core/Html/Html.stories.d.ts +19 -0
- package/lib/core/Html/Html.stories.d.ts.map +1 -0
- package/lib/core/Html/Html.stories.js +43 -0
- package/lib/core/Html/index.js +0 -2
- package/lib/core/Html/styles.js +0 -1
- package/lib/core/Image/Image.stories.d.ts +15 -0
- package/lib/core/Image/Image.stories.d.ts.map +1 -0
- package/lib/core/Image/Image.stories.js +26 -0
- package/lib/core/Image/index.js +1 -2
- package/lib/core/Image/styles.js +0 -1
- package/lib/core/ImageCarousel/index.d.ts +11 -0
- package/lib/core/ImageCarousel/index.d.ts.map +1 -0
- package/lib/core/ImageCarousel/index.js +70 -0
- package/lib/core/ImageCarousel/styles.d.ts +26 -0
- package/lib/core/ImageCarousel/styles.d.ts.map +1 -0
- package/lib/core/ImageCarousel/styles.js +58 -0
- package/lib/core/ImagePicker/IconWithBackground.js +0 -2
- package/lib/core/ImagePicker/ImagePicker.stories.d.ts +17 -0
- package/lib/core/ImagePicker/ImagePicker.stories.d.ts.map +1 -0
- package/lib/core/ImagePicker/ImagePicker.stories.js +28 -0
- package/lib/core/ImagePicker/UploadButton.js +0 -2
- package/lib/core/ImagePicker/index.js +2 -5
- package/lib/core/ImagePicker/styles.js +0 -1
- package/lib/core/InfoButton/InfoButton.stories.d.ts +23 -0
- package/lib/core/InfoButton/InfoButton.stories.d.ts.map +1 -0
- package/lib/core/InfoButton/InfoButton.stories.js +57 -0
- package/lib/core/InfoButton/index.d.ts +2 -0
- package/lib/core/InfoButton/index.d.ts.map +1 -1
- package/lib/core/InfoButton/index.js +2 -9
- package/lib/core/InfoButton/styles.d.ts.map +1 -1
- package/lib/core/InfoButton/styles.js +13 -15
- package/lib/core/Input/Input.stories.d.ts +20 -0
- package/lib/core/Input/Input.stories.d.ts.map +1 -0
- package/lib/core/Input/Input.stories.js +158 -0
- package/lib/core/Input/index.d.ts +6 -4
- package/lib/core/Input/index.d.ts.map +1 -1
- package/lib/core/Input/index.js +8 -11
- package/lib/core/Input/styles.d.ts +1 -1
- package/lib/core/Input/styles.d.ts.map +1 -1
- package/lib/core/Input/styles.js +16 -25
- package/lib/core/Link/Link.stories.d.ts +39 -0
- package/lib/core/Link/Link.stories.d.ts.map +1 -0
- package/lib/core/Link/Link.stories.js +75 -0
- package/lib/core/Link/index.js +2 -3
- package/lib/core/Link/styles.js +0 -2
- package/lib/core/List/Item.js +0 -3
- package/lib/core/List/List.stories.d.ts +39 -0
- package/lib/core/List/List.stories.d.ts.map +1 -0
- package/lib/core/List/List.stories.js +157 -0
- package/lib/core/List/index.js +0 -3
- package/lib/core/List/styles.js +0 -4
- package/lib/core/ListPager/ListPager.stories.d.ts +7 -0
- package/lib/core/ListPager/ListPager.stories.d.ts.map +1 -0
- package/lib/core/ListPager/ListPager.stories.js +16 -0
- package/lib/core/ListPager/index.js +0 -8
- package/lib/core/ListPager/styles.js +0 -2
- package/lib/core/Modal/ActionButtons/index.d.ts +10 -0
- package/lib/core/Modal/ActionButtons/index.d.ts.map +1 -0
- package/lib/core/Modal/ActionButtons/index.js +22 -0
- package/lib/core/Modal/Modal.stories.d.ts +23 -0
- package/lib/core/Modal/Modal.stories.d.ts.map +1 -0
- package/lib/core/Modal/Modal.stories.js +117 -0
- package/lib/core/Modal/index.d.ts +9 -2
- package/lib/core/Modal/index.d.ts.map +1 -1
- package/lib/core/Modal/index.js +6 -15
- package/lib/core/Modal/styles.js +0 -4
- package/lib/core/NoticeCard/NoticeCard.stories.d.ts +11 -0
- package/lib/core/NoticeCard/NoticeCard.stories.d.ts.map +1 -0
- package/lib/core/NoticeCard/NoticeCard.stories.js +61 -0
- package/lib/core/NoticeCard/index.js +0 -4
- package/lib/core/NoticeCard/models.js +0 -1
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/index.d.ts.map +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/index.js +2 -3
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.d.ts +1 -0
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.d.ts.map +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.js +4 -6
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/index.js +0 -2
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.js +0 -2
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/index.js +0 -2
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +0 -2
- package/lib/core/NoticeCard/styles.js +0 -2
- package/lib/core/NoticeCard/utils.js +0 -3
- package/lib/core/NotificationCounter/NotificationCounter.stories.d.ts +11 -0
- package/lib/core/NotificationCounter/NotificationCounter.stories.d.ts.map +1 -0
- package/lib/core/NotificationCounter/NotificationCounter.stories.js +19 -0
- package/lib/core/NotificationCounter/index.js +1 -2
- package/lib/core/NotificationCounter/styles.js +0 -4
- package/lib/core/NotificationsMenu/NotificationBell/index.js +0 -2
- package/lib/core/NotificationsMenu/NotificationRow/index.js +0 -2
- package/lib/core/NotificationsMenu/NotificationsMenu.stories.d.ts +11 -0
- package/lib/core/NotificationsMenu/NotificationsMenu.stories.d.ts.map +1 -0
- package/lib/core/NotificationsMenu/NotificationsMenu.stories.js +33 -0
- package/lib/core/NotificationsMenu/index.js +0 -8
- package/lib/core/NotificationsMenu/styles.js +0 -2
- package/lib/core/PieChart/ActiveShape/index.js +1 -3
- package/lib/core/PieChart/PieChart.stories.d.ts +20 -0
- package/lib/core/PieChart/PieChart.stories.d.ts.map +1 -0
- package/lib/core/PieChart/PieChart.stories.js +81 -0
- package/lib/core/PieChart/index.js +6 -7
- package/lib/core/PieChart/renderTextContent/index.js +1 -3
- package/lib/core/PieChart/styles.js +0 -2
- package/lib/core/PreemptionCard/PreemptionCard.stories.d.ts +7 -0
- package/lib/core/PreemptionCard/PreemptionCard.stories.d.ts.map +1 -0
- package/lib/core/PreemptionCard/PreemptionCard.stories.js +68 -0
- package/lib/core/PreemptionCard/index.js +0 -5
- package/lib/core/PreemptionCard/models.js +0 -1
- package/lib/core/PreemptionCard/styles.js +0 -2
- package/lib/core/PreemptionCardLoading/PreemptionCardLoading.stories.d.ts +7 -0
- package/lib/core/PreemptionCardLoading/PreemptionCardLoading.stories.d.ts.map +1 -0
- package/lib/core/PreemptionCardLoading/PreemptionCardLoading.stories.js +15 -0
- package/lib/core/PreemptionCardLoading/index.js +0 -2
- package/lib/core/PreemptionCardLoading/styles.js +0 -2
- package/lib/core/Radio/Radio.stories.d.ts +19 -0
- package/lib/core/Radio/Radio.stories.d.ts.map +1 -0
- package/lib/core/Radio/Radio.stories.js +66 -0
- package/lib/core/Radio/index.js +0 -2
- package/lib/core/Radio/styles.js +0 -1
- package/lib/core/SearchFilter/SearchFilter.stories.d.ts +19 -0
- package/lib/core/SearchFilter/SearchFilter.stories.d.ts.map +1 -0
- package/lib/core/SearchFilter/SearchFilter.stories.js +113 -0
- package/lib/core/SearchFilter/index.js +2 -10
- package/lib/core/SearchFilter/styles.js +0 -4
- package/lib/core/SearchSelect/SearchSelect.stories.d.ts +12 -0
- package/lib/core/SearchSelect/SearchSelect.stories.d.ts.map +1 -0
- package/lib/core/SearchSelect/SearchSelect.stories.js +52 -0
- package/lib/core/SearchSelect/hooks/useSelectSearch.js +2 -3
- package/lib/core/SearchSelect/index.js +4 -12
- package/lib/core/SearchSelect/styles.js +0 -2
- package/lib/core/Select/Option.d.ts.map +1 -1
- package/lib/core/Select/Option.js +2 -4
- package/lib/core/Select/Select.stories.d.ts +47 -0
- package/lib/core/Select/Select.stories.d.ts.map +1 -0
- package/lib/core/Select/Select.stories.js +246 -0
- package/lib/core/Select/index.d.ts +6 -2
- package/lib/core/Select/index.d.ts.map +1 -1
- package/lib/core/Select/index.js +21 -20
- package/lib/core/Select/styles.d.ts +3 -0
- package/lib/core/Select/styles.d.ts.map +1 -1
- package/lib/core/Select/styles.js +36 -33
- package/lib/core/SimpleBarChart/SimpleBarChart.stories.d.ts +29 -0
- package/lib/core/SimpleBarChart/SimpleBarChart.stories.d.ts.map +1 -0
- package/lib/core/SimpleBarChart/SimpleBarChart.stories.js +174 -0
- package/lib/core/SimpleBarChart/index.js +0 -3
- package/lib/core/SimpleLineChart/SimpleLineChart.stories.d.ts +8 -0
- package/lib/core/SimpleLineChart/SimpleLineChart.stories.d.ts.map +1 -0
- package/lib/core/SimpleLineChart/SimpleLineChart.stories.js +53 -0
- package/lib/core/SimpleLineChart/index.js +0 -2
- package/lib/core/Skeleton/Skeleton.stories.d.ts +37 -0
- package/lib/core/Skeleton/Skeleton.stories.d.ts.map +1 -0
- package/lib/core/Skeleton/Skeleton.stories.js +46 -0
- package/lib/core/Skeleton/index.js +0 -4
- package/lib/core/Skeleton/styles.js +0 -2
- package/lib/core/Spinner/Spinner.stories.d.ts +19 -0
- package/lib/core/Spinner/Spinner.stories.d.ts.map +1 -0
- package/lib/core/Spinner/Spinner.stories.js +30 -0
- package/lib/core/Spinner/index.js +0 -2
- package/lib/core/TabBar/TabBar.stories.d.ts +7 -0
- package/lib/core/TabBar/TabBar.stories.d.ts.map +1 -0
- package/lib/core/TabBar/TabBar.stories.js +38 -0
- package/lib/core/TabBar/TabItem/index.js +0 -2
- package/lib/core/TabBar/TabItem/styles.js +0 -2
- package/lib/core/TabBar/index.js +0 -2
- package/lib/core/TabBar/styles.js +0 -2
- package/lib/core/TabNav/TabContext.js +8 -5
- package/lib/core/TabNav/TabNav.stories.d.ts +47 -0
- package/lib/core/TabNav/TabNav.stories.d.ts.map +1 -0
- package/lib/core/TabNav/TabNav.stories.js +306 -0
- package/lib/core/TabNav/TabNavItem/index.js +2 -6
- package/lib/core/TabNav/TabNavItem/styles.js +0 -2
- package/lib/core/TabNav/index.js +11 -14
- package/lib/core/TabNav/styles.js +0 -2
- package/lib/core/TabNav/utils/useContainerDimensions.js +0 -1
- package/lib/core/Table/Cell.js +2 -3
- package/lib/core/Table/Row.js +2 -3
- package/lib/core/Table/Table.stories.d.ts +11 -0
- package/lib/core/Table/Table.stories.d.ts.map +1 -0
- package/lib/core/Table/Table.stories.js +83 -0
- package/lib/core/Table/index.d.ts +5 -1
- package/lib/core/Table/index.d.ts.map +1 -1
- package/lib/core/Table/index.js +4 -4
- package/lib/core/Table/styles.js +0 -2
- package/lib/core/Tag/Tag.stories.d.ts +59 -0
- package/lib/core/Tag/Tag.stories.d.ts.map +1 -0
- package/lib/core/Tag/Tag.stories.js +112 -0
- package/lib/core/Tag/index.js +0 -2
- package/lib/core/Tag/styles.js +0 -1
- package/lib/core/Text/Text.stories.d.ts +59 -0
- package/lib/core/Text/Text.stories.d.ts.map +1 -0
- package/lib/core/Text/Text.stories.js +103 -0
- package/lib/core/Text/index.js +0 -2
- package/lib/core/Text/styles.js +0 -1
- package/lib/core/Textarea/Textarea.stories.d.ts +19 -0
- package/lib/core/Textarea/Textarea.stories.d.ts.map +1 -0
- package/lib/core/Textarea/Textarea.stories.js +33 -0
- package/lib/core/Textarea/index.js +0 -5
- package/lib/core/Textarea/styles.js +0 -2
- package/lib/core/Timeline/Timeline.stories.d.ts +7 -0
- package/lib/core/Timeline/Timeline.stories.d.ts.map +1 -0
- package/lib/core/Timeline/Timeline.stories.js +25 -0
- package/lib/core/Timeline/TimelineStep/index.js +0 -2
- package/lib/core/Timeline/TimelineStep/styles.js +0 -2
- package/lib/core/Timeline/index.js +0 -2
- package/lib/core/Timeline/styles.js +0 -2
- package/lib/core/Timepicker/Timepicker.stories.d.ts +31 -0
- package/lib/core/Timepicker/Timepicker.stories.d.ts.map +1 -0
- package/lib/core/Timepicker/Timepicker.stories.js +77 -0
- package/lib/core/Timepicker/index.js +7 -16
- package/lib/core/Timepicker/styles.js +0 -2
- package/lib/core/Tooltip/Tooptip.stories.d.ts +7 -0
- package/lib/core/Tooltip/Tooptip.stories.d.ts.map +1 -0
- package/lib/core/Tooltip/Tooptip.stories.js +14 -0
- package/lib/core/Tooltip/index.js +0 -3
- package/lib/core/Tooltip/styles.d.ts.map +1 -1
- package/lib/core/Tooltip/styles.js +2 -3
- package/lib/core/UnitIllustration/index.js +1 -9
- package/lib/core/UserMenu/UserMenu.stories.d.ts +19 -0
- package/lib/core/UserMenu/UserMenu.stories.d.ts.map +1 -0
- package/lib/core/UserMenu/UserMenu.stories.js +91 -0
- package/lib/core/UserMenu/UserMenuOption.js +0 -2
- package/lib/core/UserMenu/index.js +0 -8
- package/lib/core/UserMenu/styles.js +0 -2
- package/lib/core/YearWheel/YearWheel.stories.d.ts +11 -0
- package/lib/core/YearWheel/YearWheel.stories.d.ts.map +1 -0
- package/lib/core/YearWheel/YearWheel.stories.js +20 -0
- package/lib/core/YearWheel/index.js +0 -2
- package/lib/core/YearWheel/styles.js +0 -2
- package/lib/core/private/ButtonOrLink.js +8 -13
- package/lib/core/private/preemption.js +0 -4
- package/lib/core/utils/debounce.js +0 -2
- package/lib/enums/Keyboard.js +1 -1
- package/lib/enums/ModifierKey.d.ts +12 -0
- package/lib/enums/ModifierKey.d.ts.map +1 -0
- package/lib/enums/ModifierKey.js +13 -0
- package/lib/globals/styles/styles.js +0 -1
- package/lib/hooks/useIsMobile.js +0 -2
- package/lib/hooks/useScreenOrientation.js +0 -10
- package/lib/icons/General/IconApartment.js +0 -2
- package/lib/icons/General/IconArchives.js +0 -2
- package/lib/icons/General/IconArea.js +0 -2
- package/lib/icons/General/IconArrowDown.js +0 -2
- package/lib/icons/General/IconArrowLeft.js +0 -2
- package/lib/icons/General/IconArrowRight.js +0 -2
- package/lib/icons/General/IconArrowUp.js +0 -2
- package/lib/icons/General/IconAttachment.js +0 -2
- package/lib/icons/General/IconAuditorFilled.js +0 -2
- package/lib/icons/General/IconAuditorOutline.js +0 -2
- package/lib/icons/General/IconBack.js +0 -2
- package/lib/icons/General/IconBath.js +0 -2
- package/lib/icons/General/IconBblFlame.js +2 -3
- package/lib/icons/General/IconBblShield.js +2 -3
- package/lib/icons/General/IconBblWater.js +2 -3
- package/lib/icons/General/IconBellOutline.js +0 -2
- package/lib/icons/General/IconBlock.js +0 -2
- package/lib/icons/General/IconBoard.js +0 -2
- package/lib/icons/General/IconBookmarkFilled.js +0 -2
- package/lib/icons/General/IconBookmarkOutline.js +0 -2
- package/lib/icons/General/IconBus.js +0 -2
- package/lib/icons/General/IconCalendar.js +0 -2
- package/lib/icons/General/IconCamera.js +0 -2
- package/lib/icons/General/IconCar.js +0 -2
- package/lib/icons/General/IconCaretDown.js +0 -2
- package/lib/icons/General/IconCaretLeft.js +0 -2
- package/lib/icons/General/IconCaretRight.js +0 -2
- package/lib/icons/General/IconCaretUp.js +0 -2
- package/lib/icons/General/IconCases.js +0 -2
- package/lib/icons/General/IconCheck.js +0 -2
- package/lib/icons/General/IconCheckedFilled.js +0 -2
- package/lib/icons/General/IconCheckedOutline.js +0 -2
- package/lib/icons/General/IconChevronDown.js +0 -2
- package/lib/icons/General/IconChevronLeft.js +0 -2
- package/lib/icons/General/IconChevronRight.js +0 -2
- package/lib/icons/General/IconChoice.js +0 -2
- package/lib/icons/General/IconClose.js +0 -2
- package/lib/icons/General/IconCloseAlt.js +0 -2
- package/lib/icons/General/IconComment.js +0 -2
- package/lib/icons/General/IconCommunication.js +0 -2
- package/lib/icons/General/IconCommunicationFilled.js +0 -2
- package/lib/icons/General/IconCompanyBuilding.js +0 -2
- package/lib/icons/General/IconCompanyBuildingFilled.js +0 -2
- package/lib/icons/General/IconCompanyBuildingOutline.js +0 -2
- package/lib/icons/General/IconDashboard.js +0 -2
- package/lib/icons/General/IconDashboardFilled.js +0 -2
- package/lib/icons/General/IconDelete.js +0 -2
- package/lib/icons/General/IconDocument.js +0 -2
- package/lib/icons/General/IconDocumentFilled.js +0 -2
- package/lib/icons/General/IconDoor.js +0 -2
- package/lib/icons/General/IconDotFilled.js +0 -2
- package/lib/icons/General/IconDotOutline.js +0 -2
- package/lib/icons/General/IconDownload.js +0 -2
- package/lib/icons/General/IconDraft.js +0 -2
- package/lib/icons/General/IconEarth.js +0 -2
- package/lib/icons/General/IconEconomy.js +0 -2
- package/lib/icons/General/IconEconomyFilled.js +0 -2
- package/lib/icons/General/IconEdit.js +0 -2
- package/lib/icons/General/IconElevator.js +0 -2
- package/lib/icons/General/IconErrorFilled.js +0 -2
- package/lib/icons/General/IconErrorOutline.js +0 -2
- package/lib/icons/General/IconExternalLink.js +0 -2
- package/lib/icons/General/IconEye.js +0 -2
- package/lib/icons/General/IconEyeDeny.js +0 -2
- package/lib/icons/General/IconFamily.js +0 -2
- package/lib/icons/General/IconFerry.js +0 -2
- package/lib/icons/General/IconFile.js +0 -2
- package/lib/icons/General/IconFileAdd.js +0 -2
- package/lib/icons/General/IconFileCopy.js +0 -2
- package/lib/icons/General/IconFileEdit.js +0 -2
- package/lib/icons/General/IconFileExcel.js +0 -2
- package/lib/icons/General/IconFilePDF.js +0 -2
- package/lib/icons/General/IconFileWord.js +0 -2
- package/lib/icons/General/IconFillOut.js +0 -2
- package/lib/icons/General/IconFilterList.js +0 -2
- package/lib/icons/General/IconFloor.js +0 -2
- package/lib/icons/General/IconForward.js +0 -2
- package/lib/icons/General/IconFullscreenClose.js +0 -2
- package/lib/icons/General/IconFullscreenOpen.js +0 -2
- package/lib/icons/General/IconGarage.js +0 -2
- package/lib/icons/General/IconGrid.js +0 -2
- package/lib/icons/General/IconGym.js +0 -2
- package/lib/icons/General/IconHearth.js +0 -2
- package/lib/icons/General/IconHearthOutline.js +0 -2
- package/lib/icons/General/IconHelp.js +0 -2
- package/lib/icons/General/IconHistory.js +0 -2
- package/lib/icons/General/IconHomeFilled.js +0 -2
- package/lib/icons/General/IconHomeOutline.js +0 -2
- package/lib/icons/General/IconHouse.js +0 -2
- package/lib/icons/General/IconHouseBlockFilled.js +0 -2
- package/lib/icons/General/IconHouseBlockOutline.js +0 -2
- package/lib/icons/General/IconHouseOutline.js +0 -2
- package/lib/icons/General/IconHumans.js +0 -2
- package/lib/icons/General/IconImage.js +0 -2
- package/lib/icons/General/IconImportantComment.js +0 -2
- package/lib/icons/General/IconInbox.js +0 -2
- package/lib/icons/General/IconInfoFilled.js +0 -2
- package/lib/icons/General/IconInfoOutline.js +0 -2
- package/lib/icons/General/IconJanitorFilled.js +0 -2
- package/lib/icons/General/IconJanitorOutline.js +0 -2
- package/lib/icons/General/IconJointcost.js +0 -2
- package/lib/icons/General/IconJointcost2.js +0 -2
- package/lib/icons/General/IconKey.js +0 -2
- package/lib/icons/General/IconKitchen.js +0 -2
- package/lib/icons/General/IconLabel.js +0 -2
- package/lib/icons/General/IconLeafFilled.js +0 -2
- package/lib/icons/General/IconLeafOutline.js +0 -2
- package/lib/icons/General/IconLeisureTime.js +0 -2
- package/lib/icons/General/IconLock.js +0 -2
- package/lib/icons/General/IconLockLocked.js +0 -2
- package/lib/icons/General/IconLockOpen.js +0 -2
- package/lib/icons/General/IconLookup.js +0 -2
- package/lib/icons/General/IconLookupFilled.js +0 -2
- package/lib/icons/General/IconMail.js +0 -2
- package/lib/icons/General/IconMap.js +0 -2
- package/lib/icons/General/IconMembership.js +0 -2
- package/lib/icons/General/IconMembershipFilled.js +0 -2
- package/lib/icons/General/IconMenu.js +0 -2
- package/lib/icons/General/IconMinus.js +0 -2
- package/lib/icons/General/IconMinusAlt.js +0 -2
- package/lib/icons/General/IconMinusAltFilled.js +0 -2
- package/lib/icons/General/IconMoney.js +0 -2
- package/lib/icons/General/IconParking.js +0 -2
- package/lib/icons/General/IconPaymentCard.js +0 -2
- package/lib/icons/General/IconPhone.js +0 -2
- package/lib/icons/General/IconPinned.js +0 -2
- package/lib/icons/General/IconPlus.js +0 -2
- package/lib/icons/General/IconPlusAlt.js +0 -2
- package/lib/icons/General/IconPortalUser.js +0 -2
- package/lib/icons/General/IconPrint.js +0 -2
- package/lib/icons/General/IconProfile.js +0 -2
- package/lib/icons/General/IconProfileFilled.js +0 -2
- package/lib/icons/General/IconRearrange.js +0 -2
- package/lib/icons/General/IconReciept.js +0 -2
- package/lib/icons/General/IconRedo.js +0 -2
- package/lib/icons/General/IconRefresh.js +0 -2
- package/lib/icons/General/IconReply.js +0 -2
- package/lib/icons/General/IconReplyAll.js +0 -2
- package/lib/icons/General/IconRoom.js +0 -2
- package/lib/icons/General/IconSave.js +0 -2
- package/lib/icons/General/IconSearch.js +0 -2
- package/lib/icons/General/IconSend.js +0 -2
- package/lib/icons/General/IconSettings.js +0 -2
- package/lib/icons/General/IconShopping.js +0 -2
- package/lib/icons/General/IconSign.js +0 -2
- package/lib/icons/General/IconSliders.js +0 -2
- package/lib/icons/General/IconSort.js +0 -2
- package/lib/icons/General/IconStarFilled.js +0 -2
- package/lib/icons/General/IconStarHalf.js +0 -2
- package/lib/icons/General/IconStarOutline.js +0 -2
- package/lib/icons/General/IconStore.js +0 -2
- package/lib/icons/General/IconSubway.js +0 -2
- package/lib/icons/General/IconSwitch.js +0 -2
- package/lib/icons/General/IconTrain.js +0 -2
- package/lib/icons/General/IconTram.js +0 -2
- package/lib/icons/General/IconTransport.js +0 -2
- package/lib/icons/General/IconTypeOfBuilding.js +0 -2
- package/lib/icons/General/IconTypeOfBuildingOutline.js +0 -2
- package/lib/icons/General/IconUndo.js +0 -2
- package/lib/icons/General/IconUpload.js +0 -2
- package/lib/icons/General/IconUser.js +0 -2
- package/lib/icons/General/IconUserThin.js +0 -2
- package/lib/icons/General/IconVote.js +0 -2
- package/lib/icons/General/IconWalk.js +0 -2
- package/lib/icons/General/IconWarning.js +0 -2
- package/lib/icons/General/IconWarningBell.js +0 -2
- package/lib/icons/General/IconWork.js +0 -2
- package/lib/icons/General/IconWorkFilled.js +0 -2
- package/lib/icons/General/IconZip.js +0 -2
- package/lib/icons/Icon.stories.d.ts +60 -0
- package/lib/icons/Icon.stories.d.ts.map +1 -0
- package/lib/icons/Icon.stories.js +629 -0
- package/lib/icons/Logos/IconAmericanExpress.js +0 -2
- package/lib/icons/Logos/IconBankAxept.js +0 -2
- package/lib/icons/Logos/IconGmail.js +0 -2
- package/lib/icons/Logos/IconMasterCard.js +0 -2
- package/lib/icons/Logos/IconOffice365.js +0 -2
- package/lib/icons/Logos/IconVisa.js +0 -2
- package/lib/icons/withIcon.d.ts +2 -0
- package/lib/icons/withIcon.d.ts.map +1 -1
- package/lib/icons/withIcon.js +2 -3
- package/lib/illustrations/Backgrounds/IllustrationHousesBackground.js +0 -2
- package/lib/illustrations/Backgrounds/IllustrationHousesBackgroundWithComposition.js +0 -2
- package/lib/illustrations/General/IllustrationError.js +0 -2
- package/lib/illustrations/General/IllustrationErrorGeneric.js +0 -2
- package/lib/illustrations/General/IllustrationHighHouse.js +0 -2
- package/lib/illustrations/General/IllustrationHighHouseComposition.js +0 -2
- package/lib/illustrations/General/IllustrationHouse.js +0 -2
- package/lib/illustrations/General/IllustrationHouseComposition.js +0 -2
- package/lib/illustrations/General/IllustrationHouseMissing.js +0 -2
- package/lib/illustrations/General/IllustrationLowHouse.js +0 -2
- package/lib/illustrations/General/IllustrationLowHouseComposition.js +0 -2
- package/lib/illustrations/General/IllustrationPaperCompleted.js +0 -2
- package/lib/illustrations/General/IllustrationPaperMissing.js +0 -2
- package/lib/illustrations/General/IllustrationSemiDetachedHouse.js +0 -2
- package/lib/illustrations/General/IllustrationSemiDetachedHouseComposition.js +0 -2
- package/lib/illustrations/General/IllustrationSmallHouse.js +0 -2
- package/lib/illustrations/General/IllustrationSmallHouseComposition.js +0 -2
- package/lib/illustrations/General/IllustrationTerraceBlock.js +0 -2
- package/lib/illustrations/General/IllustrationTerraceBlockComposition.js +0 -2
- package/lib/illustrations/General/IllustrationTownHouse.js +0 -2
- package/lib/illustrations/General/IllustrationTownHouseComposition.js +0 -2
- package/lib/illustrations/Illustration.stories.d.ts +27 -0
- package/lib/illustrations/Illustration.stories.d.ts.map +1 -0
- package/lib/illustrations/Illustration.stories.js +173 -0
- package/lib/illustrations/MySite/IllustrationMySiteAssociation.d.ts +4 -0
- package/lib/illustrations/MySite/IllustrationMySiteAssociation.d.ts.map +1 -0
- package/lib/illustrations/MySite/IllustrationMySiteAssociation.js +79 -0
- package/lib/illustrations/MySite/IllustrationMySiteBuilding.js +0 -2
- package/lib/illustrations/MySite/IllustrationMySiteCoffeeBook.js +0 -2
- package/lib/illustrations/MySite/IllustrationMySiteComputer.js +0 -2
- package/lib/illustrations/MySite/IllustrationMySiteCooperative.d.ts +4 -0
- package/lib/illustrations/MySite/IllustrationMySiteCooperative.d.ts.map +1 -0
- package/lib/illustrations/MySite/IllustrationMySiteCooperative.js +117 -0
- package/lib/illustrations/MySite/IllustrationMySiteDashboard.d.ts +4 -0
- package/lib/illustrations/MySite/IllustrationMySiteDashboard.d.ts.map +1 -0
- package/lib/illustrations/MySite/IllustrationMySiteDashboard.js +131 -0
- package/lib/illustrations/MySite/IllustrationMySiteGift.js +0 -2
- package/lib/illustrations/MySite/IllustrationMySiteMailbox.d.ts +4 -0
- package/lib/illustrations/MySite/IllustrationMySiteMailbox.d.ts.map +1 -0
- package/lib/illustrations/MySite/IllustrationMySiteMailbox.js +99 -0
- package/lib/illustrations/MySite/IllustrationMySitePapers.js +0 -2
- package/lib/illustrations/MySite/IllustrationMySitePiggyBank.js +0 -2
- package/lib/illustrations/MySite/IllustrationMySiteTransfer.js +0 -2
- package/lib/illustrations/styles.d.ts.map +1 -1
- package/lib/illustrations/styles.js +6 -3
- package/lib/illustrations/withIllustration.d.ts.map +1 -1
- package/lib/illustrations/withIllustration.js +2 -4
- package/lib/index.d.ts +5 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -1
- package/lib/layout/Footer/Footer.stories.d.ts +11 -0
- package/lib/layout/Footer/Footer.stories.d.ts.map +1 -0
- package/lib/layout/Footer/Footer.stories.js +62 -0
- package/lib/layout/Footer/FooterButton/index.js +2 -3
- package/lib/layout/Footer/FooterButton/styles.js +0 -2
- package/lib/layout/Footer/FooterCol/index.js +0 -2
- package/lib/layout/Footer/FooterCol/styles.js +0 -2
- package/lib/layout/Footer/FooterGroup/index.js +0 -2
- package/lib/layout/Footer/FooterGroup/styles.js +0 -2
- package/lib/layout/Footer/FooterLabel/index.js +0 -2
- package/lib/layout/Footer/FooterLabel/styles.js +0 -2
- package/lib/layout/Footer/FooterLink/index.js +2 -3
- package/lib/layout/Footer/FooterLink/styles.js +0 -2
- package/lib/layout/Footer/index.js +0 -2
- package/lib/layout/Layout/Layout.stories.d.ts +7 -0
- package/lib/layout/Layout/Layout.stories.d.ts.map +1 -0
- package/lib/layout/Layout/Layout.stories.js +14 -0
- package/lib/layout/Layout/index.js +0 -2
- package/lib/layout/LayoutShell/LayoutShell.stories.d.ts +15 -0
- package/lib/layout/LayoutShell/LayoutShell.stories.d.ts.map +1 -0
- package/lib/layout/LayoutShell/LayoutShell.stories.js +116 -0
- package/lib/layout/LayoutShell/index.js +0 -2
- package/lib/layout/LayoutShell/styles.js +0 -2
- package/lib/layout/Menu/AppPicker/index.d.ts.map +1 -1
- package/lib/layout/Menu/AppPicker/index.js +8 -5
- package/lib/layout/Menu/AppPicker/styles.d.ts.map +1 -1
- package/lib/layout/Menu/AppPicker/styles.js +26 -5
- package/lib/layout/Menu/MainMenu/index.js +0 -2
- package/lib/layout/Menu/MenuItem/index.js +0 -2
- package/lib/layout/Menu/MenuSpacer/index.js +0 -2
- package/lib/layout/Menu/MenuTop/index.js +0 -2
- package/lib/layout/Menu/MenuTop/styles.js +0 -2
- package/lib/layout/Menu/SecondaryMenu/index.js +1 -3
- package/lib/layout/Menu/SecondaryMenuItem/index.js +0 -2
- package/lib/layout/Menu/Sidemenu.stories.d.ts +19 -0
- package/lib/layout/Menu/Sidemenu.stories.d.ts.map +1 -0
- package/lib/layout/Menu/Sidemenu.stories.js +323 -0
- package/lib/layout/Menu/index.d.ts.map +1 -1
- package/lib/layout/Menu/index.js +1 -4
- package/lib/layout/Menu/styles.d.ts +11 -1
- package/lib/layout/Menu/styles.d.ts.map +1 -1
- package/lib/layout/Menu/styles.js +1 -1
- package/lib/layout/Submenu/Submenu.stories.d.ts +27 -0
- package/lib/layout/Submenu/Submenu.stories.d.ts.map +1 -0
- package/lib/layout/Submenu/Submenu.stories.js +94 -0
- package/lib/layout/Submenu/SubmenuItem/index.js +0 -7
- package/lib/layout/Submenu/SubmenuItem/styles.js +0 -5
- package/lib/layout/Submenu/SubmenuLightThemeBg/index.js +0 -2
- package/lib/layout/Submenu/index.d.ts.map +1 -1
- package/lib/layout/Submenu/index.js +1 -12
- package/lib/layout/Submenu/styles.d.ts.map +1 -1
- package/lib/layout/Submenu/styles.js +10 -12
- package/lib/layout/Topbar/Topbar.stories.d.ts +11 -0
- package/lib/layout/Topbar/Topbar.stories.d.ts.map +1 -0
- package/lib/layout/Topbar/Topbar.stories.js +23 -0
- package/lib/layout/Topbar/index.js +0 -2
- package/lib/shared/components/SbIconGrid/index.d.ts +7 -0
- package/lib/shared/components/SbIconGrid/index.d.ts.map +1 -0
- package/lib/shared/components/SbIconGrid/index.js +27 -0
- package/lib/shared/recharts/CustomLegend/styles.js +0 -2
- package/lib/shared/recharts/CustomTooltip/index.js +0 -11
- package/lib/shared/recharts/CustomTooltip/styles.js +0 -2
- package/lib/shared/types/LoadedType.d.ts +7 -0
- package/lib/shared/types/LoadedType.d.ts.map +1 -0
- package/lib/shared/types/LoadedType.js +1 -0
- package/lib/utils/accountNumber.js +1 -7
- package/lib/utils/alpha.js +0 -1
- package/lib/utils/array.js +1 -3
- package/lib/utils/dates.js +0 -10
- package/lib/utils/file.js +1 -0
- package/lib/utils/format.js +3 -21
- package/lib/utils/formatGraphPrice.js +0 -15
- package/lib/utils/image.js +0 -3
- package/lib/utils/pagination.js +0 -5
- package/lib/utils/phone.js +8 -13
- package/lib/utils/time.js +4 -14
- package/lib/utils/url.js +0 -2
- package/lib/utils/useSnorreTheme.d.ts.map +1 -1
- package/lib/utils/useSnorreTheme.js +4 -11
- package/package.json +21 -15
- package/theme-bbls.js +26 -5
- package/theme-generator.js +31 -4
- package/esm/index.d.js +0 -2
- package/esm/layout/Menu/MenuBottom/index.js +0 -37
- package/esm/layout/Menu/MenuBottom/styles.js +0 -15
- package/lib/index.d.js +0 -2
- package/lib/layout/Menu/MenuBottom/index.d.ts +0 -14
- package/lib/layout/Menu/MenuBottom/index.d.ts.map +0 -1
- package/lib/layout/Menu/MenuBottom/index.js +0 -37
- package/lib/layout/Menu/MenuBottom/styles.d.ts +0 -4
- package/lib/layout/Menu/MenuBottom/styles.d.ts.map +0 -1
- package/lib/layout/Menu/MenuBottom/styles.js +0 -15
package/esm/utils/format.js
CHANGED
@@ -1,21 +1,18 @@
|
|
1
1
|
import { datesAreOnSameDay, ddmmyyyy } from './dates';
|
2
|
+
|
2
3
|
/**
|
3
4
|
* PRICES
|
4
5
|
*/
|
5
|
-
|
6
6
|
const getFormattedPrice = (price, decimals, roundDown) => {
|
7
7
|
if (isNaN(price)) {
|
8
8
|
return price;
|
9
9
|
}
|
10
|
-
|
11
10
|
if (price === undefined || price === null) {
|
12
11
|
return '';
|
13
12
|
}
|
14
|
-
|
15
13
|
if (roundDown) {
|
16
14
|
price = Math.floor(price);
|
17
15
|
}
|
18
|
-
|
19
16
|
const formatted = new Intl.NumberFormat(['no-NO', 'nb-NO'], {
|
20
17
|
style: 'decimal',
|
21
18
|
useGrouping: true,
|
@@ -25,32 +22,26 @@ const getFormattedPrice = (price, decimals, roundDown) => {
|
|
25
22
|
}).format(price);
|
26
23
|
return decimals ? formatted : formatted.replace(/,/g, '.');
|
27
24
|
};
|
28
|
-
|
29
25
|
const getPriceWithLabel = pricing => {
|
30
26
|
return `${getPriceLabel(pricing)} ${getFormattedPriceWithEnding(getPrice(pricing))}`;
|
31
27
|
};
|
32
|
-
|
33
28
|
const getPriceLabel = pricing => {
|
34
29
|
return pricing.fixedPrice ? 'Fastpris' : 'Prisantydning';
|
35
30
|
};
|
36
|
-
|
37
31
|
const getPrice = pricing => {
|
38
32
|
return pricing.fixedPrice ? pricing.fixedPrice : pricing.askingPrice;
|
39
33
|
};
|
40
|
-
|
41
34
|
const getFormattedPriceWithEnding = (price, decimals) => {
|
42
35
|
if (price === undefined || price === null) {
|
43
36
|
return 'Ikke angitt';
|
44
37
|
}
|
45
|
-
|
46
38
|
const formattedPrice = getFormattedPrice(price, decimals);
|
47
39
|
return formattedPrice + ' kr';
|
48
40
|
};
|
41
|
+
|
49
42
|
/**
|
50
43
|
* DATES
|
51
44
|
*/
|
52
|
-
|
53
|
-
|
54
45
|
const getFormattedDate = (date, opt) => {
|
55
46
|
const options = opt || {
|
56
47
|
hour: 'numeric',
|
@@ -62,47 +53,39 @@ const getFormattedDate = (date, opt) => {
|
|
62
53
|
};
|
63
54
|
return new Intl.DateTimeFormat(['no-NO', 'nb-NO', 'nn-NO', 'de-DE'], options).format(new Date(date));
|
64
55
|
};
|
65
|
-
|
66
56
|
const getFormattedTime = date => {
|
67
57
|
const parsedDate = new Date(date);
|
68
58
|
return (parsedDate.getHours() < 10 ? '0' : '') + parsedDate.getHours() + ':' + (parsedDate.getMinutes() < 10 ? '0' : '') + parsedDate.getMinutes();
|
69
59
|
};
|
70
|
-
|
71
60
|
const getFormattedDateTimePretty = (date, opt = ddmmyyyy) => {
|
72
61
|
if (!date) return '';
|
73
62
|
return `${getFormattedDate(date, opt)} kl ${getFormattedTime(date)}`;
|
74
63
|
};
|
64
|
+
|
75
65
|
/**
|
76
66
|
* OTHERS
|
77
67
|
*/
|
78
|
-
|
79
|
-
|
80
68
|
const getTitleString = text => {
|
81
69
|
if (!text) return '';
|
82
70
|
text = text.toLowerCase();
|
83
71
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
84
72
|
};
|
85
|
-
|
86
73
|
const getFormattedCardNumber = cardNumber => {
|
87
74
|
if (!cardNumber) return '';
|
88
75
|
cardNumber = cardNumber.replace(/\s/g, '');
|
89
76
|
let formatted = '';
|
90
|
-
|
91
77
|
for (var i = 0; i < cardNumber.length; i++) {
|
92
78
|
if (i % 4 === 0 && i > 0) formatted = formatted.concat(' ');
|
93
79
|
formatted = formatted.concat(cardNumber[i]);
|
94
80
|
}
|
95
|
-
|
96
81
|
return formatted;
|
97
82
|
};
|
98
|
-
|
99
83
|
const getFormattedOrganizationNumber = organizationNumber => {
|
100
84
|
let org = String(organizationNumber);
|
101
85
|
if (!org) return '';
|
102
86
|
org = org.replace(/\s/g, '');
|
103
87
|
return org.replace(/\B(?=(\d{3})+(?!\d))/g, ' ');
|
104
88
|
};
|
105
|
-
|
106
89
|
const getFormattedTimePeriod = (startDate, endDate) => {
|
107
90
|
const start = startDate ? new Date(startDate) : null;
|
108
91
|
const end = endDate ? new Date(endDate) : null;
|
@@ -110,5 +93,4 @@ const getFormattedTimePeriod = (startDate, endDate) => {
|
|
110
93
|
if (start && end && datesAreOnSameDay(start, end)) return `${getFormattedDateTimePretty(start)}-${getFormattedTime(end)}`;
|
111
94
|
return `${start ? getFormattedDateTimePretty(start) + ' ' : ''}-${end ? ' ' + getFormattedDateTimePretty(end) : ''}`;
|
112
95
|
};
|
113
|
-
|
114
96
|
export { getFormattedOrganizationNumber, getFormattedPrice, getFormattedPriceWithEnding, getFormattedDate, getTitleString, getFormattedCardNumber, getFormattedTime, getPriceWithLabel, getFormattedDateTimePretty, getFormattedTimePeriod };
|
@@ -1,28 +1,21 @@
|
|
1
1
|
const firstIndexIsNegative = value => value.charAt(0) === '-';
|
2
|
-
|
3
2
|
const precisionValueIsZero = (value, maxEnd) => {
|
4
3
|
return firstIndexIsNegative(value) ? value.charAt(2 + maxEnd) === '0' : value.charAt(1 + maxEnd) === '0';
|
5
4
|
};
|
6
|
-
|
7
5
|
const setLeftSide = (value, sliceLeft) => {
|
8
6
|
return firstIndexIsNegative(value) ? `-${value.slice(sliceLeft.start + 1, sliceLeft.end + 1)}` : value.slice(sliceLeft.start, sliceLeft.end);
|
9
7
|
};
|
10
|
-
|
11
8
|
const setRightSide = (value, sliceRight, sliceLeftEnd) => {
|
12
9
|
return precisionValueIsZero(value, sliceLeftEnd) ? '' : `.${value.slice(sliceRight.start, sliceRight.end)}`;
|
13
10
|
};
|
14
|
-
|
15
11
|
const getFormat = (value, sliceLeft, sliceRight, sizeTerm) => {
|
16
12
|
return `${setLeftSide(value, sliceLeft)}${setRightSide(value, sliceRight, sliceLeft.end)}${sizeTerm}`;
|
17
13
|
};
|
18
|
-
|
19
14
|
const formatAxisPrice = val => {
|
20
15
|
const value = String(val);
|
21
|
-
|
22
16
|
if (value.match(/^(-\d)|(\d)+$/)) {
|
23
17
|
const santizitedValue = firstIndexIsNegative(value) ? value.replace('-', '') : value;
|
24
18
|
const count = santizitedValue.length;
|
25
|
-
|
26
19
|
if (count > 3) {
|
27
20
|
switch (count) {
|
28
21
|
case 4:
|
@@ -33,7 +26,6 @@ const formatAxisPrice = val => {
|
|
33
26
|
start: 1,
|
34
27
|
end: 2
|
35
28
|
}, 'k');
|
36
|
-
|
37
29
|
case 5:
|
38
30
|
return getFormat(value, {
|
39
31
|
start: 0,
|
@@ -42,7 +34,6 @@ const formatAxisPrice = val => {
|
|
42
34
|
start: 2,
|
43
35
|
end: 3
|
44
36
|
}, 'k');
|
45
|
-
|
46
37
|
case 6:
|
47
38
|
return getFormat(value, {
|
48
39
|
start: 0,
|
@@ -51,7 +42,6 @@ const formatAxisPrice = val => {
|
|
51
42
|
start: 3,
|
52
43
|
end: 4
|
53
44
|
}, 'k');
|
54
|
-
|
55
45
|
case 7:
|
56
46
|
return getFormat(value, {
|
57
47
|
start: 0,
|
@@ -60,7 +50,6 @@ const formatAxisPrice = val => {
|
|
60
50
|
start: 1,
|
61
51
|
end: 2
|
62
52
|
}, 'm');
|
63
|
-
|
64
53
|
case 8:
|
65
54
|
return getFormat(value, {
|
66
55
|
start: 0,
|
@@ -69,7 +58,6 @@ const formatAxisPrice = val => {
|
|
69
58
|
start: 2,
|
70
59
|
end: 3
|
71
60
|
}, 'm');
|
72
|
-
|
73
61
|
case 9:
|
74
62
|
return getFormat(value, {
|
75
63
|
start: 0,
|
@@ -78,7 +66,6 @@ const formatAxisPrice = val => {
|
|
78
66
|
start: 3,
|
79
67
|
end: 4
|
80
68
|
}, 'm');
|
81
|
-
|
82
69
|
default:
|
83
70
|
return getFormat(value, {
|
84
71
|
start: 0,
|
@@ -90,8 +77,6 @@ const formatAxisPrice = val => {
|
|
90
77
|
}
|
91
78
|
}
|
92
79
|
}
|
93
|
-
|
94
80
|
return value;
|
95
81
|
};
|
96
|
-
|
97
82
|
export { formatAxisPrice };
|
package/esm/utils/image.js
CHANGED
package/esm/utils/pagination.js
CHANGED
@@ -3,24 +3,19 @@ const getCurrentPage = (take, skip) => {
|
|
3
3
|
if (skip === 0) return 1;
|
4
4
|
return Math.floor(skip / take + 1);
|
5
5
|
};
|
6
|
-
|
7
6
|
const getSkippedItems = (pageNumber, take) => {
|
8
7
|
if (pageNumber === undefined || take === undefined) return NaN;
|
9
8
|
return (pageNumber - 1) * take;
|
10
9
|
};
|
11
|
-
|
12
10
|
const getHasPreviousPages = (currentPage, totalPages) => {
|
13
11
|
return currentPage > 3 && totalPages > 5;
|
14
12
|
};
|
15
|
-
|
16
13
|
const getHasMorePages = (currentPage, totalPages) => {
|
17
14
|
return currentPage < totalPages - 2 && totalPages > 5;
|
18
15
|
};
|
19
|
-
|
20
16
|
const getFirstButtonIndex = (currentPage, totalPages) => {
|
21
17
|
if (totalPages <= 5 || currentPage <= 3) return 0;
|
22
18
|
if (totalPages - currentPage <= 2) return totalPages - 5;
|
23
19
|
return currentPage - 3;
|
24
20
|
};
|
25
|
-
|
26
21
|
export { getCurrentPage, getSkippedItems, getHasPreviousPages, getHasMorePages, getFirstButtonIndex };
|
package/esm/utils/phone.js
CHANGED
@@ -1,38 +1,33 @@
|
|
1
1
|
const formatBusinessOrMobilePhone = phone => {
|
2
2
|
// check with match if number starts with 4 or 9
|
3
3
|
const isMobilePhone = phone.match(/^(4|9)(\d{7})$/);
|
4
|
-
|
5
4
|
if (isMobilePhone) {
|
6
|
-
const [, prefix, numb] = isMobilePhone;
|
7
|
-
|
5
|
+
const [, prefix, numb] = isMobilePhone;
|
6
|
+
// Mobile phone formatting 999 88 777
|
8
7
|
return `${prefix}${numb.slice(0, 2)} ${numb.slice(2, 4)} ${numb.slice(4, 7)}`;
|
9
|
-
}
|
10
|
-
|
8
|
+
}
|
11
9
|
|
10
|
+
// Business formatting 11 22 33 44
|
12
11
|
return `${phone.slice(0, 2)} ${phone.slice(2, 4)} ${phone.slice(4, 6)} ${phone.slice(6, 8)}`;
|
13
12
|
};
|
14
|
-
|
15
13
|
const getFormatedPhone = phone => {
|
16
|
-
const cleaned = String(phone).replace(/ /g, '');
|
14
|
+
const cleaned = String(phone).replace(/ /g, '');
|
17
15
|
|
16
|
+
// Check if phone starts with 0047
|
18
17
|
const zeros = cleaned.match(/^(0047|\+47)(\d{8})$/);
|
19
|
-
|
20
18
|
if (zeros) {
|
21
19
|
const [, prefix, numb] = zeros;
|
22
20
|
return `${prefix} ${formatBusinessOrMobilePhone(numb)}`;
|
23
|
-
}
|
24
|
-
|
21
|
+
}
|
25
22
|
|
23
|
+
// Check if phone starts with +47
|
26
24
|
let plus = cleaned.match(/^(\+47)(\d{3})(\d{2})(\d{3})$/);
|
27
|
-
|
28
25
|
if (plus) {
|
29
26
|
const [, prefix, numb] = plus;
|
30
27
|
return `${prefix} ${formatBusinessOrMobilePhone(numb)}`;
|
31
28
|
}
|
32
|
-
|
33
29
|
if (cleaned.length === 8) return formatBusinessOrMobilePhone(cleaned);
|
34
30
|
if (!phone) return 'Ikke angitt';
|
35
31
|
return cleaned;
|
36
32
|
};
|
37
|
-
|
38
33
|
export { getFormatedPhone };
|
package/esm/utils/time.js
CHANGED
@@ -3,32 +3,29 @@ export const DEFAULT_VALUE_SHORT = `00${DEFAULT_DIVIDER}00`;
|
|
3
3
|
export const DEFAULT_VALUE_SHORT_NULLABLE = `--${DEFAULT_DIVIDER}--`;
|
4
4
|
export const DEFAULT_VALUE_FULL = `00${DEFAULT_DIVIDER}00${DEFAULT_DIVIDER}00`;
|
5
5
|
export const DEFAULT_VALUE_FULL_NULLABLE = `--${DEFAULT_DIVIDER}--${DEFAULT_DIVIDER}--`;
|
6
|
-
|
7
6
|
const formatTimeItem = (value, isNullable = false) => {
|
8
7
|
return `${value || ''}${isNullable ? '--' : '00'}`.substring(0, 2);
|
9
8
|
};
|
9
|
+
|
10
10
|
/**
|
11
11
|
* Checks if input is a number
|
12
12
|
*/
|
13
|
-
|
14
|
-
|
15
13
|
export function isNumber(value) {
|
16
14
|
const number = Number(value);
|
17
15
|
return !isNaN(number) && String(value) === String(number);
|
18
16
|
}
|
17
|
+
|
19
18
|
/**
|
20
19
|
* Validates time to keep the format:
|
21
20
|
* default 00:00 or 00:00:00 if showSeconds is true
|
22
21
|
*
|
23
22
|
* The function also keeps track of the cursor position
|
24
23
|
*/
|
25
|
-
|
26
24
|
export const validateTimeAndCursor = (showSeconds = false, value = '', defaultValue = '', divider = DEFAULT_DIVIDER, cursorPosition = 0, isNullable = false) => {
|
27
25
|
const [oldHH, oldMM, oldSS] = defaultValue.split(divider);
|
28
26
|
let newCursorPosition = Number(cursorPosition);
|
29
27
|
let [HH, MM, SS] = String(value).split(divider);
|
30
28
|
HH = formatTimeItem(HH, isNullable);
|
31
|
-
|
32
29
|
if (Number(HH[0]) > 2) {
|
33
30
|
HH = oldHH;
|
34
31
|
newCursorPosition -= 1;
|
@@ -40,31 +37,26 @@ export const validateTimeAndCursor = (showSeconds = false, value = '', defaultVa
|
|
40
37
|
HH = '23';
|
41
38
|
}
|
42
39
|
}
|
43
|
-
|
44
40
|
MM = formatTimeItem(MM, isNullable);
|
45
|
-
|
46
41
|
if (Number(MM[0]) > 5) {
|
47
42
|
MM = oldMM;
|
48
43
|
newCursorPosition -= 1;
|
49
44
|
}
|
50
|
-
|
51
45
|
if (showSeconds) {
|
52
46
|
SS = formatTimeItem(SS, isNullable);
|
53
|
-
|
54
47
|
if (Number(SS[0]) > 5) {
|
55
48
|
SS = oldSS;
|
56
49
|
newCursorPosition -= 1;
|
57
50
|
}
|
58
51
|
}
|
59
|
-
|
60
52
|
const validatedValue = showSeconds ? `${HH}${divider}${MM}${divider}${SS}` : `${HH}${divider}${MM}`;
|
61
53
|
return [validatedValue, newCursorPosition];
|
62
54
|
};
|
55
|
+
|
63
56
|
/**
|
64
57
|
* Converts a Date to String with the format:
|
65
58
|
* default 00:00 or 00:00:00 if showSeconds is true
|
66
59
|
*/
|
67
|
-
|
68
60
|
export const handleDateToStringConvertion = (date, showSeconds) => {
|
69
61
|
const d = new Date(date);
|
70
62
|
const hours = d.getHours().toString().padStart(2, '0');
|
@@ -72,12 +64,12 @@ export const handleDateToStringConvertion = (date, showSeconds) => {
|
|
72
64
|
const seconds = d.getSeconds().toString().padStart(2, '0');
|
73
65
|
return `${hours}${DEFAULT_DIVIDER}${minutes}${showSeconds ? `${DEFAULT_DIVIDER}${seconds}` : ''}`;
|
74
66
|
};
|
67
|
+
|
75
68
|
/**
|
76
69
|
* Converts a String to Date with the format:
|
77
70
|
* If value is formatted as 00:00:00 it will return the date with chosen seconds
|
78
71
|
* If value is formatted as 00:00 it will return the date with seconds set to 00
|
79
72
|
*/
|
80
|
-
|
81
73
|
export const handleStringToDateConvertion = (value, originalDate) => {
|
82
74
|
const [hours, minutes, seconds] = value.split(DEFAULT_DIVIDER);
|
83
75
|
const date = originalDate || new Date(0, 0, 0);
|
@@ -96,10 +88,8 @@ export const getTimeFromHours = hours => {
|
|
96
88
|
};
|
97
89
|
export const getTimeStringFromHours = hours => {
|
98
90
|
const time = getTimeFromHours(hours);
|
99
|
-
|
100
91
|
if (time.days) {
|
101
92
|
return `${time.days} dag${time.days > 1 ? 'er' : ''} og ${time.hours} time${time.hours !== 1 ? 'r' : ''}`;
|
102
93
|
}
|
103
|
-
|
104
94
|
return `${time.hours} time${time.hours !== 1 ? 'r' : ''}`;
|
105
95
|
};
|
package/esm/utils/url.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
const getDomainFromUrl = url => {
|
2
2
|
return url.replace(/^(?:https?:\/\/)?(?:www\.)?/i, '').split('/')[0];
|
3
3
|
};
|
4
|
-
|
5
4
|
const getUrlWithProtocol = url => {
|
6
5
|
if (url.startsWith('http') || url.startsWith('//')) {
|
7
6
|
return url;
|
@@ -9,5 +8,4 @@ const getUrlWithProtocol = url => {
|
|
9
8
|
return 'https://' + url;
|
10
9
|
}
|
11
10
|
};
|
12
|
-
|
13
11
|
export { getDomainFromUrl, getUrlWithProtocol };
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { useEffect, useState } from 'react';
|
2
2
|
import { initTheme } from '../app-shell/theme';
|
3
|
-
|
4
3
|
const useSnorreTheme = ({
|
5
4
|
themeUrl,
|
6
5
|
defaultTextColor
|
@@ -9,7 +8,7 @@ const useSnorreTheme = ({
|
|
9
8
|
const [theme, setTheme] = useState();
|
10
9
|
const [globals, setGlobals] = useState();
|
11
10
|
useEffect(() => {
|
12
|
-
const
|
11
|
+
const getTheme = async themeUrl => {
|
13
12
|
const pstyle = fetch(`${themeUrl}/styles.json`);
|
14
13
|
const pglobal = fetch(`${themeUrl}/globals.css`);
|
15
14
|
const [styles, global] = await Promise.all([pstyle, pglobal]);
|
@@ -18,21 +17,15 @@ const useSnorreTheme = ({
|
|
18
17
|
setTheme(p);
|
19
18
|
setGlobals(g);
|
20
19
|
};
|
21
|
-
|
22
|
-
getThemeStuff(themeUrl);
|
20
|
+
getTheme(themeUrl);
|
23
21
|
}, [themeUrl]);
|
24
22
|
useEffect(() => {
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
if (theme) {
|
29
|
-
setAppTheme(initTheme(theme, defaultTextColor));
|
30
|
-
}
|
23
|
+
if (!theme) return;
|
24
|
+
setAppTheme(initTheme(theme, defaultTextColor));
|
31
25
|
}, [theme, defaultTextColor]);
|
32
26
|
return {
|
33
27
|
appTheme,
|
34
28
|
globals
|
35
29
|
};
|
36
30
|
};
|
37
|
-
|
38
31
|
export default useSnorreTheme;
|
@@ -5,9 +5,14 @@ trigger:
|
|
5
5
|
|
6
6
|
pool:
|
7
7
|
name: Azure Pipelines
|
8
|
-
vmImage: ubuntu-
|
8
|
+
vmImage: ubuntu-latest
|
9
9
|
|
10
10
|
steps:
|
11
|
+
- task: NodeTool@0
|
12
|
+
inputs:
|
13
|
+
versionSpec: '16.10.0'
|
14
|
+
displayName: 'Install Node.js 16.10.0'
|
15
|
+
|
11
16
|
- script: yarn install
|
12
17
|
displayName: 'Yarn '
|
13
18
|
|
package/lib/app-shell/index.js
CHANGED
@@ -5,7 +5,6 @@ import AppLoader from '../core/AppLoader';
|
|
5
5
|
import useSnorreTheme from '../utils/useSnorreTheme';
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
7
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
8
|
-
|
9
8
|
const Wrapper = _styled("div", process.env.NODE_ENV === "production" ? {
|
10
9
|
target: "ep4gpb60"
|
11
10
|
} : {
|
@@ -14,7 +13,6 @@ const Wrapper = _styled("div", process.env.NODE_ENV === "production" ? {
|
|
14
13
|
})("min-height:100vh;width:auto;background-color:", ({
|
15
14
|
theme
|
16
15
|
}) => theme.bg, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYWNrYWdlcy9hcHAtc2hlbGwvaW5kZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU0rQiIsImZpbGUiOiIuLi8uLi9zcmMvcGFja2FnZXMvYXBwLXNoZWxsL2luZGV4LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCB7IGNzcywgR2xvYmFsLCBUaGVtZVByb3ZpZGVyIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCBBcHBMb2FkZXIgZnJvbSAnLi4vY29yZS9BcHBMb2FkZXInXG5pbXBvcnQgdXNlU25vcnJlVGhlbWUgZnJvbSAnLi4vdXRpbHMvdXNlU25vcnJlVGhlbWUnXG5cbmNvbnN0IFdyYXBwZXIgPSBzdHlsZWQuZGl2PGFueT5gXG4gIG1pbi1oZWlnaHQ6IDEwMHZoO1xuICB3aWR0aDogYXV0bztcbiAgYmFja2dyb3VuZC1jb2xvcjogJHsoeyB0aGVtZSB9KSA9PiB0aGVtZS5iZ307XG5gXG5cbmludGVyZmFjZSBJUHJvcHMge1xuICAvKiogQXBwIHRoZW1lICovXG4gIHRoZW1lVXJsOiBzdHJpbmdcbiAgLyoqIE92ZXJyaWRlIGRlZmF1bHQgdGV4dCBjb2xvciBmb3IgYXBwICovXG4gIGRlZmF1bHRUZXh0Q29sb3I/OiBzdHJpbmdcbiAgLyoqIENoaWxkcmVuICovXG4gIGNoaWxkcmVuOiBOb25OdWxsYWJsZTxSZWFjdC5SZWFjdE5vZGU+XG59XG5cbmNvbnN0IEFwcFNoZWxsOiBSZWFjdC5GQzxJUHJvcHM+ID0gKHtcbiAgdGhlbWVVcmwsXG4gIGRlZmF1bHRUZXh0Q29sb3IsXG4gIGNoaWxkcmVuLFxufSkgPT4ge1xuICBjb25zdCB7IGFwcFRoZW1lLCBnbG9iYWxzIH0gPSB1c2VTbm9ycmVUaGVtZSh7IHRoZW1lVXJsLCBkZWZhdWx0VGV4dENvbG9yIH0pXG5cbiAgcmV0dXJuIGFwcFRoZW1lICYmIGdsb2JhbHMgPyAoXG4gICAgPFRoZW1lUHJvdmlkZXIgdGhlbWU9e2FwcFRoZW1lfT5cbiAgICAgIHsvKiogR2xvYmFsIHN0eWxlcyAqL31cbiAgICAgIDxHbG9iYWxcbiAgICAgICAgc3R5bGVzPXtjc3NgXG4gICAgICAgICAgJHtnbG9iYWxzfVxuICAgICAgICBgfVxuICAgICAgLz5cblxuICAgICAgPFdyYXBwZXI+e2NoaWxkcmVufTwvV3JhcHBlcj5cbiAgICA8L1RoZW1lUHJvdmlkZXI+XG4gICkgOiAoXG4gICAgPEFwcExvYWRlciAvPlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IEFwcFNoZWxsXG4iXX0= */"));
|
17
|
-
|
18
16
|
const AppShell = ({
|
19
17
|
themeUrl,
|
20
18
|
defaultTextColor,
|
@@ -36,5 +34,4 @@ const AppShell = ({
|
|
36
34
|
})]
|
37
35
|
}) : /*#__PURE__*/_jsx(AppLoader, {});
|
38
36
|
};
|
39
|
-
|
40
37
|
export default AppShell;
|
package/lib/app-shell/theme.d.ts
CHANGED
@@ -51,6 +51,7 @@ export interface IAppTheme {
|
|
51
51
|
illustrationPrimary20: string;
|
52
52
|
illustrationPrimary10: string;
|
53
53
|
illustrationPrimary5: string;
|
54
|
+
customIllustrationColor: string;
|
54
55
|
customPortalFooterColor: string | null;
|
55
56
|
defaultMenuBackground: string;
|
56
57
|
defaultMenuTextColor: string;
|
@@ -90,5 +91,98 @@ export interface IAppTheme {
|
|
90
91
|
mypageBoxShadow: string;
|
91
92
|
preemptionCardBorderRadius: string;
|
92
93
|
}
|
93
|
-
export declare const initTheme: (values:
|
94
|
+
export declare const initTheme: (values: IAppTheme, defaultTextColor?: string | undefined) => {
|
95
|
+
defaultText: string;
|
96
|
+
primary: string;
|
97
|
+
secondary: string;
|
98
|
+
primary10opa: string;
|
99
|
+
primary20opa: string;
|
100
|
+
primary50opa: string;
|
101
|
+
primary5darker: string;
|
102
|
+
secondary5darker: string;
|
103
|
+
subtleText: string;
|
104
|
+
secondaryDarkText: string;
|
105
|
+
bg: string;
|
106
|
+
bgLight: string;
|
107
|
+
bgMedium: string;
|
108
|
+
bgDark: string;
|
109
|
+
bgFooter: string;
|
110
|
+
btnDefault: string;
|
111
|
+
btnDefaultFontColor: string;
|
112
|
+
btnDefaultDarker: string;
|
113
|
+
btnDefaultLighter: string;
|
114
|
+
btnSuccess: string;
|
115
|
+
btnSuccessDarker: string;
|
116
|
+
btnSuccessLighter: string;
|
117
|
+
btnDanger: string;
|
118
|
+
btnDangerDarker: string;
|
119
|
+
btnDangerLighter: string;
|
120
|
+
btnDisabled: string;
|
121
|
+
btnHoverTextColor: string;
|
122
|
+
btnBackBorder: string;
|
123
|
+
alert: string;
|
124
|
+
alertLight: string;
|
125
|
+
alertBorder: string;
|
126
|
+
info: string;
|
127
|
+
infoMedium: string;
|
128
|
+
infoLight: string;
|
129
|
+
infoBorder: string;
|
130
|
+
success: string;
|
131
|
+
successMedium: string;
|
132
|
+
successLight: string;
|
133
|
+
successBorder: string;
|
134
|
+
border: string;
|
135
|
+
gray10: string;
|
136
|
+
gray20: string;
|
137
|
+
disabled: string;
|
138
|
+
shadowSmall: string;
|
139
|
+
shadowSmallDarker: string;
|
140
|
+
shadowBig: string;
|
141
|
+
illustrationGray: string;
|
142
|
+
illustrationPrimary50: string;
|
143
|
+
illustrationPrimary40: string;
|
144
|
+
illustrationPrimary20: string;
|
145
|
+
illustrationPrimary10: string;
|
146
|
+
illustrationPrimary5: string;
|
147
|
+
customIllustrationColor: string;
|
148
|
+
customPortalFooterColor: string | null;
|
149
|
+
defaultMenuBackground: string;
|
150
|
+
defaultMenuTextColor: string;
|
151
|
+
defaultMenuItemBackground: string;
|
152
|
+
defaultMenuItemActiveTextColor: string;
|
153
|
+
defaultMenuItemActiveBackground: string;
|
154
|
+
defaultMenuItemIconColor: string;
|
155
|
+
defaultMenuExternalLinkColor: string;
|
156
|
+
lightMenuBackground: string;
|
157
|
+
lightMenuTextColor: string;
|
158
|
+
lightMenuItemTextColor: string;
|
159
|
+
lightMenuItemBackground: string;
|
160
|
+
lightMenuItemActiveTextColor: string;
|
161
|
+
lightMenuItemActiveBackground: string;
|
162
|
+
lightMenuItemIconColor: string;
|
163
|
+
lightMenuExternalLinkColor: string;
|
164
|
+
submenuColor: string;
|
165
|
+
submenuItemColor: string;
|
166
|
+
submenuTextColor: string;
|
167
|
+
submenuTextColorActive: string;
|
168
|
+
defaultAppPickerBackground: string;
|
169
|
+
defaultAppPickerIconColor: string;
|
170
|
+
defaultAppPickerIconBackgroundColor: string;
|
171
|
+
defaultAppPickerActiveTextColor: string;
|
172
|
+
defaultAppPickerActiveBackground: string;
|
173
|
+
defaultAppPickerActiveIconColor: string;
|
174
|
+
defaultAppPickerActiveIconBackgroundColor: string;
|
175
|
+
lightAppPickerBackground: string;
|
176
|
+
lightAppPickerTextColor: string;
|
177
|
+
lightAppPickerIconColor: string;
|
178
|
+
lightAppPickerIconBackground: string;
|
179
|
+
lightAppPickerActiveTextColor: string;
|
180
|
+
lightAppPickerActiveBackground: string;
|
181
|
+
lightAppPickerActiveIconColor: string;
|
182
|
+
lightAppPickerActiveIconBackground: string;
|
183
|
+
mypageBoxBorderRadius: string;
|
184
|
+
mypageBoxShadow: string;
|
185
|
+
preemptionCardBorderRadius: string;
|
186
|
+
};
|
187
|
+
export default IAppTheme;
|
94
188
|
//# sourceMappingURL=theme.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/packages/app-shell/theme.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IAExB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,MAAM,CAAA;IACtB,gBAAgB,EAAE,MAAM,CAAA;IAGxB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB,EAAE,MAAM,CAAA;IAGzB,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAGhB,UAAU,EAAE,MAAM,CAAA;IAClB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,MAAM,CAAA;IACxB,WAAW,EAAE,MAAM,CAAA;IACnB,iBAAiB,EAAE,MAAM,CAAA;IACzB,aAAa,EAAE,MAAM,CAAA;IAGrB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IAGrB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAGhB,WAAW,EAAE,MAAM,CAAA;IACnB,iBAAiB,EAAE,MAAM,CAAA;IACzB,SAAS,EAAE,MAAM,CAAA;IAGjB,gBAAgB,EAAE,MAAM,CAAA;IACxB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,qBAAqB,EAAE,MAAM,CAAA;IAC7B,qBAAqB,EAAE,MAAM,CAAA;IAC7B,qBAAqB,EAAE,MAAM,CAAA;IAC7B,oBAAoB,EAAE,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/packages/app-shell/theme.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IAExB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,MAAM,CAAA;IACtB,gBAAgB,EAAE,MAAM,CAAA;IAGxB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB,EAAE,MAAM,CAAA;IAGzB,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAGhB,UAAU,EAAE,MAAM,CAAA;IAClB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,MAAM,CAAA;IACxB,WAAW,EAAE,MAAM,CAAA;IACnB,iBAAiB,EAAE,MAAM,CAAA;IACzB,aAAa,EAAE,MAAM,CAAA;IAGrB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IAGrB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAGhB,WAAW,EAAE,MAAM,CAAA;IACnB,iBAAiB,EAAE,MAAM,CAAA;IACzB,SAAS,EAAE,MAAM,CAAA;IAGjB,gBAAgB,EAAE,MAAM,CAAA;IACxB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,qBAAqB,EAAE,MAAM,CAAA;IAC7B,qBAAqB,EAAE,MAAM,CAAA;IAC7B,qBAAqB,EAAE,MAAM,CAAA;IAC7B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,uBAAuB,EAAE,MAAM,CAAA;IAG/B,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAA;IAGtC,qBAAqB,EAAE,MAAM,CAAA;IAC7B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,yBAAyB,EAAE,MAAM,CAAA;IACjC,8BAA8B,EAAE,MAAM,CAAA;IACtC,+BAA+B,EAAE,MAAM,CAAA;IACvC,wBAAwB,EAAE,MAAM,CAAA;IAChC,4BAA4B,EAAE,MAAM,CAAA;IACpC,mBAAmB,EAAE,MAAM,CAAA;IAC3B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,sBAAsB,EAAE,MAAM,CAAA;IAC9B,uBAAuB,EAAE,MAAM,CAAA;IAC/B,4BAA4B,EAAE,MAAM,CAAA;IACpC,6BAA6B,EAAE,MAAM,CAAA;IACrC,sBAAsB,EAAE,MAAM,CAAA;IAC9B,0BAA0B,EAAE,MAAM,CAAA;IAClC,YAAY,EAAE,MAAM,CAAA;IACpB,gBAAgB,EAAE,MAAM,CAAA;IACxB,gBAAgB,EAAE,MAAM,CAAA;IACxB,sBAAsB,EAAE,MAAM,CAAA;IAE9B,0BAA0B,EAAE,MAAM,CAAA;IAClC,yBAAyB,EAAE,MAAM,CAAA;IACjC,mCAAmC,EAAE,MAAM,CAAA;IAC3C,+BAA+B,EAAE,MAAM,CAAA;IACvC,gCAAgC,EAAE,MAAM,CAAA;IACxC,+BAA+B,EAAE,MAAM,CAAA;IACvC,yCAAyC,EAAE,MAAM,CAAA;IACjD,wBAAwB,EAAE,MAAM,CAAA;IAChC,uBAAuB,EAAE,MAAM,CAAA;IAC/B,uBAAuB,EAAE,MAAM,CAAA;IAC/B,4BAA4B,EAAE,MAAM,CAAA;IACpC,6BAA6B,EAAE,MAAM,CAAA;IACrC,8BAA8B,EAAE,MAAM,CAAA;IACtC,6BAA6B,EAAE,MAAM,CAAA;IACrC,kCAAkC,EAAE,MAAM,CAAA;IAE1C,qBAAqB,EAAE,MAAM,CAAA;IAC7B,eAAe,EAAE,MAAM,CAAA;IACvB,0BAA0B,EAAE,MAAM,CAAA;CACnC;AAED,eAAO,MAAM,SAAS,WAAY,SAAS;;aAjHhC,MAAM;eACJ,MAAM;kBACH,MAAM;kBACN,MAAM;kBACN,MAAM;oBACJ,MAAM;sBACJ,MAAM;gBAIZ,MAAM;uBACC,MAAM;QAGrB,MAAM;aACD,MAAM;cACL,MAAM;YACR,MAAM;cACJ,MAAM;gBAGJ,MAAM;yBACG,MAAM;sBACT,MAAM;uBACL,MAAM;gBACb,MAAM;sBACA,MAAM;uBACL,MAAM;eACd,MAAM;qBACA,MAAM;sBACL,MAAM;iBACX,MAAM;uBACA,MAAM;mBACV,MAAM;WAGd,MAAM;gBACD,MAAM;iBACL,MAAM;UACb,MAAM;gBACA,MAAM;eACP,MAAM;gBACL,MAAM;aACT,MAAM;mBACA,MAAM;kBACP,MAAM;mBACL,MAAM;YAGb,MAAM;YACN,MAAM;YACN,MAAM;cACJ,MAAM;iBAGH,MAAM;uBACA,MAAM;eACd,MAAM;sBAGC,MAAM;2BACD,MAAM;2BACN,MAAM;2BACN,MAAM;2BACN,MAAM;0BACP,MAAM;6BACH,MAAM;6BAGN,MAAM,GAAG,IAAI;2BAGf,MAAM;0BACP,MAAM;+BACD,MAAM;oCACD,MAAM;qCACL,MAAM;8BACb,MAAM;kCACF,MAAM;yBACf,MAAM;wBACP,MAAM;4BACF,MAAM;6BACL,MAAM;kCACD,MAAM;mCACL,MAAM;4BACb,MAAM;gCACF,MAAM;kBACpB,MAAM;sBACF,MAAM;sBACN,MAAM;4BACA,MAAM;gCAEF,MAAM;+BACP,MAAM;yCACI,MAAM;qCACV,MAAM;sCACL,MAAM;qCACP,MAAM;+CACI,MAAM;8BACvB,MAAM;6BACP,MAAM;6BACN,MAAM;kCACD,MAAM;mCACL,MAAM;oCACL,MAAM;mCACP,MAAM;wCACD,MAAM;2BAEnB,MAAM;qBACZ,MAAM;gCACK,MAAM;CASnC,CAAA;AAED,eAAe,SAAS,CAAA"}
|
package/lib/app-shell/theme.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
export const initTheme = (values, defaultTextColor) => {
|
2
|
-
const styles = {
|
3
|
-
|
2
|
+
const styles = {
|
3
|
+
...values,
|
4
|
+
defaultText: defaultTextColor || values?.defaultText || '#000'
|
4
5
|
};
|
5
6
|
return styles;
|
6
7
|
};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
2
|
+
export default _default;
|
3
|
+
export declare const Default: {
|
4
|
+
render: () => JSX.Element;
|
5
|
+
name: string;
|
6
|
+
};
|
7
|
+
export declare const Success: {
|
8
|
+
render: () => JSX.Element;
|
9
|
+
name: string;
|
10
|
+
};
|
11
|
+
export declare const Info: {
|
12
|
+
render: () => JSX.Element;
|
13
|
+
name: string;
|
14
|
+
};
|
15
|
+
export declare const Danger: {
|
16
|
+
render: () => JSX.Element;
|
17
|
+
name: string;
|
18
|
+
};
|
19
|
+
export declare const WithoutClose: {
|
20
|
+
render: () => JSX.Element;
|
21
|
+
name: string;
|
22
|
+
};
|
23
|
+
//# sourceMappingURL=Alert.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Alert.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Alert/Alert.stories.tsx"],"names":[],"mappings":";AAGA,wBAGS;AAET,eAAO,MAAM,OAAO;;;CAOnB,CAAA;AAED,eAAO,MAAM,OAAO;;;CAOnB,CAAA;AAED,eAAO,MAAM,IAAI;;;CAOhB,CAAA;AAED,eAAO,MAAM,MAAM;;;CAOlB,CAAA;AAED,eAAO,MAAM,YAAY;;;CAGxB,CAAA"}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import Alert from '.';
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
3
|
+
export default {
|
4
|
+
title: 'Core/Alert',
|
5
|
+
component: Alert
|
6
|
+
};
|
7
|
+
export const Default = {
|
8
|
+
render: () => /*#__PURE__*/_jsx(Alert, {
|
9
|
+
onClose: () => console.log('close'),
|
10
|
+
children: "Here is some general information."
|
11
|
+
}),
|
12
|
+
name: 'Default'
|
13
|
+
};
|
14
|
+
export const Success = {
|
15
|
+
render: () => /*#__PURE__*/_jsx(Alert, {
|
16
|
+
success: true,
|
17
|
+
onClose: () => console.log('close'),
|
18
|
+
children: "Thank you for feedback!"
|
19
|
+
}),
|
20
|
+
name: 'Success'
|
21
|
+
};
|
22
|
+
export const Info = {
|
23
|
+
render: () => /*#__PURE__*/_jsx(Alert, {
|
24
|
+
info: true,
|
25
|
+
onClose: () => console.log('close'),
|
26
|
+
children: "The service is down between 23:00 - 05:00."
|
27
|
+
}),
|
28
|
+
name: 'Info'
|
29
|
+
};
|
30
|
+
export const Danger = {
|
31
|
+
render: () => /*#__PURE__*/_jsx(Alert, {
|
32
|
+
danger: true,
|
33
|
+
onClose: () => console.log('close'),
|
34
|
+
children: "There has been a mistake. Could not reach service."
|
35
|
+
}),
|
36
|
+
name: 'Danger'
|
37
|
+
};
|
38
|
+
export const WithoutClose = {
|
39
|
+
render: () => /*#__PURE__*/_jsx(Alert, {
|
40
|
+
children: "Cannot close this message."
|
41
|
+
}),
|
42
|
+
name: 'Without close'
|
43
|
+
};
|