@bbl-digital/snorre 4.0.0-beta.1 → 4.0.0-beta.11
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 +365 -935
- 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 +0 -3
- package/esm/core/Modal/Modal.stories.js +117 -0
- package/esm/core/Modal/index.js +1 -12
- 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 +132 -0
- package/esm/core/Text/index.js +3 -4
- package/esm/core/Text/styles.js +24 -15
- 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 +0 -1
- 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 +0 -2
- 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 +0 -2
- package/esm/illustrations/MySite/IllustrationMySiteDashboard.js +0 -2
- package/esm/illustrations/MySite/IllustrationMySiteGift.js +0 -2
- package/esm/illustrations/MySite/IllustrationMySiteMailbox.js +0 -2
- 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 +0 -1
- package/esm/illustrations/withIllustration.js +2 -4
- 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 +5 -4
- package/esm/layout/Menu/AppPicker/styles.js +0 -9
- 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 +0 -2
- 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 +0 -11
- package/esm/layout/Submenu/styles.js +0 -2
- 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 +0 -3
- package/infrastructure/azure-pipelines.yml +2 -2
- package/lib/app-shell/index.js +0 -3
- package/lib/app-shell/theme.d.ts +93 -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.js +0 -3
- 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.js +1 -12
- 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 +21 -0
- package/lib/core/Text/Text.stories.d.ts.map +1 -0
- package/lib/core/Text/Text.stories.js +132 -0
- package/lib/core/Text/index.d.ts +3 -1
- package/lib/core/Text/index.d.ts.map +1 -1
- package/lib/core/Text/index.js +3 -4
- package/lib/core/Text/styles.d.ts +15 -14
- package/lib/core/Text/styles.d.ts.map +1 -1
- package/lib/core/Text/styles.js +24 -15
- 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.js +0 -1
- 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.js +0 -2
- 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.js +0 -2
- package/lib/illustrations/MySite/IllustrationMySiteDashboard.js +0 -2
- package/lib/illustrations/MySite/IllustrationMySiteGift.js +0 -2
- package/lib/illustrations/MySite/IllustrationMySiteMailbox.js +0 -2
- 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.js +0 -1
- package/lib/illustrations/withIllustration.js +2 -4
- 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 +5 -4
- package/lib/layout/Menu/AppPicker/styles.js +0 -9
- 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.js +0 -2
- 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.js +0 -11
- package/lib/layout/Submenu/styles.js +0 -2
- 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.js +0 -3
- package/package.json +21 -15
- package/theme-bbls.js +4 -2
- package/theme-generator.js +13 -2
- 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
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Tooptip.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Tooltip/Tooptip.stories.tsx"],"names":[],"mappings":";AAGA,wBAGS;AAET,eAAO,MAAM,cAAc;;;CAO1B,CAAA"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import Tooltip from '.';
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
3
|
+
export default {
|
4
|
+
title: 'Core/Tooltip',
|
5
|
+
component: Tooltip
|
6
|
+
};
|
7
|
+
export const TooltipDefault = {
|
8
|
+
render: () => /*#__PURE__*/_jsx(Tooltip, {
|
9
|
+
tooltip: "I React",
|
10
|
+
delay: 0,
|
11
|
+
children: "geaugaeuhgaehugaehu"
|
12
|
+
}),
|
13
|
+
name: 'Tooltip'
|
14
|
+
};
|
@@ -5,7 +5,6 @@ import { useTooltipTriggerState } from 'react-stately';
|
|
5
5
|
import { styles } from './styles';
|
6
6
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
7
7
|
import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
8
|
-
|
9
8
|
const TooltipChild = ({
|
10
9
|
state,
|
11
10
|
...props
|
@@ -19,7 +18,6 @@ const TooltipChild = ({
|
|
19
18
|
children: props.children
|
20
19
|
});
|
21
20
|
};
|
22
|
-
|
23
21
|
const Tooltip = props => {
|
24
22
|
let state = useTooltipTriggerState(props);
|
25
23
|
let ref = React.useRef(null);
|
@@ -38,5 +36,4 @@ const Tooltip = props => {
|
|
38
36
|
})]
|
39
37
|
});
|
40
38
|
};
|
41
|
-
|
42
39
|
export default Tooltip;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
2
|
-
|
3
2
|
import { css } from '@emotion/react';
|
4
3
|
export const styles = {
|
5
4
|
default: process.env.NODE_ENV === "production" ? {
|
@@ -7,7 +7,6 @@ import IllustrationSmallHouseComposition from '../../illustrations/General/Illus
|
|
7
7
|
import IllustrationTerraceBlockComposition from '../../illustrations/General/IllustrationTerraceBlockComposition';
|
8
8
|
import IllustrationTownHouseComposition from '../../illustrations/General/IllustrationTownHouseComposition';
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
10
|
-
|
11
10
|
const UnitIllustration = ({
|
12
11
|
type
|
13
12
|
}) => {
|
@@ -16,46 +15,39 @@ const UnitIllustration = ({
|
|
16
15
|
return /*#__PURE__*/_jsx(IllustrationLowHouseComposition, {
|
17
16
|
withBackground: true
|
18
17
|
});
|
19
|
-
|
20
18
|
case 'Rekkehus':
|
21
19
|
return /*#__PURE__*/_jsx(IllustrationTownHouseComposition, {
|
22
20
|
withBackground: true
|
23
21
|
});
|
24
|
-
|
25
22
|
case 'Høyblokk':
|
26
23
|
case 'Blokk':
|
27
24
|
return /*#__PURE__*/_jsx(IllustrationHighHouseComposition, {
|
28
25
|
withBackground: true
|
29
26
|
});
|
30
|
-
|
31
27
|
case 'Terrasseblokk':
|
32
28
|
return /*#__PURE__*/_jsx(IllustrationTerraceBlockComposition, {
|
33
29
|
withBackground: true
|
34
30
|
});
|
35
|
-
|
36
31
|
case 'Hus':
|
37
32
|
return /*#__PURE__*/_jsx(IllustrationHouseComposition, {
|
38
33
|
withBackground: true
|
39
34
|
});
|
40
|
-
|
41
35
|
case 'Småhus':
|
42
36
|
return /*#__PURE__*/_jsx(IllustrationSmallHouseComposition, {
|
43
37
|
withBackground: true
|
44
38
|
});
|
45
|
-
|
46
39
|
case 'Flermannsbolig':
|
47
40
|
return /*#__PURE__*/_jsx(IllustrationSemiDetachedHouseComposition, {
|
48
41
|
withBackground: true
|
49
42
|
});
|
50
|
-
|
51
43
|
default:
|
52
44
|
return /*#__PURE__*/_jsx(IllustrationHouseComposition, {
|
53
45
|
withBackground: true
|
54
46
|
});
|
55
47
|
}
|
56
48
|
};
|
57
|
-
|
58
49
|
export default UnitIllustration;
|
50
|
+
|
59
51
|
/*
|
60
52
|
Lavblokk
|
61
53
|
Høyblokk
|
@@ -0,0 +1,19 @@
|
|
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 TypeMysite: {
|
8
|
+
render: () => JSX.Element;
|
9
|
+
name: string;
|
10
|
+
};
|
11
|
+
export declare const Avatar: {
|
12
|
+
render: () => JSX.Element;
|
13
|
+
name: string;
|
14
|
+
};
|
15
|
+
export declare const WithoutText: {
|
16
|
+
render: () => JSX.Element;
|
17
|
+
name: string;
|
18
|
+
};
|
19
|
+
//# sourceMappingURL=UserMenu.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"UserMenu.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/UserMenu/UserMenu.stories.tsx"],"names":[],"mappings":";AAKA,wBAGS;AAET,eAAO,MAAM,OAAO;;;CAkBnB,CAAA;AAED,eAAO,MAAM,UAAU;;;CAmBtB,CAAA;AAED,eAAO,MAAM,MAAM;;;CAoBlB,CAAA;AAED,eAAO,MAAM,WAAW;;;CAqBvB,CAAA"}
|
@@ -0,0 +1,91 @@
|
|
1
|
+
import UserMenu from '.';
|
2
|
+
import UserMenuOption from './UserMenuOption';
|
3
|
+
import Button from '../Button';
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
5
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
6
|
+
export default {
|
7
|
+
title: 'Core/UserMenu',
|
8
|
+
component: UserMenu
|
9
|
+
};
|
10
|
+
export const Default = {
|
11
|
+
render: () => /*#__PURE__*/_jsxs(UserMenu, {
|
12
|
+
name: "Donald Duck",
|
13
|
+
firstname: "Donald",
|
14
|
+
email: "dd@andeby.no",
|
15
|
+
logout: /*#__PURE__*/_jsx(Button, {
|
16
|
+
outline: true,
|
17
|
+
children: "Logg ut"
|
18
|
+
}),
|
19
|
+
children: [/*#__PURE__*/_jsx(UserMenuOption, {
|
20
|
+
onClick: () => console.log('Option 1 clicked'),
|
21
|
+
children: "Option 1"
|
22
|
+
}), /*#__PURE__*/_jsx(UserMenuOption, {
|
23
|
+
onClick: () => console.log('Option 2 clicked'),
|
24
|
+
children: "Option 2"
|
25
|
+
})]
|
26
|
+
}),
|
27
|
+
name: 'Default'
|
28
|
+
};
|
29
|
+
export const TypeMysite = {
|
30
|
+
render: () => /*#__PURE__*/_jsxs(UserMenu, {
|
31
|
+
type: "mysite",
|
32
|
+
name: "Donald Duck",
|
33
|
+
firstname: "hello",
|
34
|
+
email: "dd@andeby.no",
|
35
|
+
logout: /*#__PURE__*/_jsx(Button, {
|
36
|
+
outline: true,
|
37
|
+
children: "Logg ut"
|
38
|
+
}),
|
39
|
+
children: [/*#__PURE__*/_jsx(UserMenuOption, {
|
40
|
+
onClick: () => console.log('Option 1 clicked'),
|
41
|
+
children: "Option 1"
|
42
|
+
}), /*#__PURE__*/_jsx(UserMenuOption, {
|
43
|
+
onClick: () => console.log('Option 2 clicked'),
|
44
|
+
children: "Option 2"
|
45
|
+
})]
|
46
|
+
}),
|
47
|
+
name: 'Type mysite'
|
48
|
+
};
|
49
|
+
export const Avatar = {
|
50
|
+
render: () => /*#__PURE__*/_jsxs(UserMenu, {
|
51
|
+
type: "mysite",
|
52
|
+
name: "Donald Duck",
|
53
|
+
firstname: "Donald",
|
54
|
+
email: "dd@andeby.no",
|
55
|
+
avatarUrl: "https://bblid-api.test.bbl.no/api/user/navneregister/1EC3310EA1174233A3197E6864790030/image?2021-04-16T20:31:19.241Z",
|
56
|
+
logout: /*#__PURE__*/_jsx(Button, {
|
57
|
+
outline: true,
|
58
|
+
children: "Logg ut"
|
59
|
+
}),
|
60
|
+
children: [/*#__PURE__*/_jsx(UserMenuOption, {
|
61
|
+
onClick: () => console.log('Option 1 clicked'),
|
62
|
+
children: "Option 1"
|
63
|
+
}), /*#__PURE__*/_jsx(UserMenuOption, {
|
64
|
+
onClick: () => console.log('Option 2 clicked'),
|
65
|
+
children: "Option 2"
|
66
|
+
})]
|
67
|
+
}),
|
68
|
+
name: 'Avatar'
|
69
|
+
};
|
70
|
+
export const WithoutText = {
|
71
|
+
render: () => /*#__PURE__*/_jsxs(UserMenu, {
|
72
|
+
name: "Donald Duck",
|
73
|
+
email: "dd@andeby.no",
|
74
|
+
iconSize: 30,
|
75
|
+
iconType: "thin",
|
76
|
+
hideAvatarOnButton: true,
|
77
|
+
avatarUrl: "https://bblid-api.test.bbl.no/api/user/navneregister/1EC3310EA1174233A3197E6864790030/image?2021-04-16T20:31:19.241Z",
|
78
|
+
logout: /*#__PURE__*/_jsx(Button, {
|
79
|
+
outline: true,
|
80
|
+
children: "Logg ut"
|
81
|
+
}),
|
82
|
+
children: [/*#__PURE__*/_jsx(UserMenuOption, {
|
83
|
+
onClick: () => console.log('Option 1 clicked'),
|
84
|
+
children: "Option 1"
|
85
|
+
}), /*#__PURE__*/_jsx(UserMenuOption, {
|
86
|
+
onClick: () => console.log('Option 2 clicked'),
|
87
|
+
children: "Option 2"
|
88
|
+
})]
|
89
|
+
}),
|
90
|
+
name: 'Without text'
|
91
|
+
};
|
@@ -3,7 +3,6 @@ import React from 'react';
|
|
3
3
|
import { userMenuOption } from './styles';
|
4
4
|
import Link from '../Link';
|
5
5
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
6
|
-
|
7
6
|
const UserMenuOption = ({
|
8
7
|
onClick,
|
9
8
|
children
|
@@ -18,5 +17,4 @@ const UserMenuOption = ({
|
|
18
17
|
children: children ? children : ''
|
19
18
|
});
|
20
19
|
};
|
21
|
-
|
22
20
|
export default UserMenuOption;
|
@@ -7,7 +7,6 @@ import { useTheme } from '@emotion/react';
|
|
7
7
|
import IconUserThin from '../../icons/General/IconUserThin';
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
9
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
10
|
-
|
11
10
|
const UserMenu = ({
|
12
11
|
name,
|
13
12
|
firstname,
|
@@ -30,26 +29,21 @@ const UserMenu = ({
|
|
30
29
|
useEffect(() => {
|
31
30
|
const handleClickOutside = e => {
|
32
31
|
const node = contextMenuRef.current;
|
33
|
-
|
34
32
|
if (node && node.contains(e.target)) {
|
35
33
|
return;
|
36
34
|
}
|
37
|
-
|
38
35
|
setTimeout(() => {
|
39
36
|
setOpen(false);
|
40
37
|
}, 50);
|
41
38
|
};
|
42
|
-
|
43
39
|
const handleOptionsClick = e => {
|
44
40
|
const node = optionsRef.current;
|
45
|
-
|
46
41
|
if (node && node.contains(e.target)) {
|
47
42
|
setTimeout(() => {
|
48
43
|
setOpen(false);
|
49
44
|
}, 100);
|
50
45
|
}
|
51
46
|
};
|
52
|
-
|
53
47
|
if (open) {
|
54
48
|
document.addEventListener('mouseup', handleClickOutside);
|
55
49
|
document.addEventListener('mouseup', handleOptionsClick);
|
@@ -57,7 +51,6 @@ const UserMenu = ({
|
|
57
51
|
document.removeEventListener('mouseup', handleClickOutside);
|
58
52
|
document.removeEventListener('mouseup', handleOptionsClick);
|
59
53
|
}
|
60
|
-
|
61
54
|
return () => {
|
62
55
|
document.removeEventListener('mouseup', handleClickOutside);
|
63
56
|
document.removeEventListener('mouseup', handleOptionsClick);
|
@@ -118,5 +111,4 @@ const UserMenu = ({
|
|
118
111
|
})]
|
119
112
|
});
|
120
113
|
};
|
121
|
-
|
122
114
|
export default UserMenu;
|
@@ -1,7 +1,5 @@
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
2
|
-
|
3
2
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
4
|
-
|
5
3
|
import { css } from '@emotion/react';
|
6
4
|
export const UserWrapper = _styled("div", process.env.NODE_ENV === "production" ? {
|
7
5
|
target: "e1je83v55"
|
@@ -0,0 +1,11 @@
|
|
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 SelectedMonth: {
|
8
|
+
render: () => JSX.Element;
|
9
|
+
name: string;
|
10
|
+
};
|
11
|
+
//# sourceMappingURL=YearWheel.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"YearWheel.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/YearWheel/YearWheel.stories.tsx"],"names":[],"mappings":";AAGA,wBAGS;AAET,eAAO,MAAM,OAAO;;;CASnB,CAAA;AAED,eAAO,MAAM,aAAa;;;CASzB,CAAA"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import YearWheel from '.';
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
3
|
+
export default {
|
4
|
+
title: 'Core/YearWheel',
|
5
|
+
component: YearWheel
|
6
|
+
};
|
7
|
+
export const Default = {
|
8
|
+
render: () => /*#__PURE__*/_jsx(YearWheel, {
|
9
|
+
selectedMonth: 1,
|
10
|
+
onMonthClick: month => console.log('month clicked', month)
|
11
|
+
}),
|
12
|
+
name: 'Default'
|
13
|
+
};
|
14
|
+
export const SelectedMonth = {
|
15
|
+
render: () => /*#__PURE__*/_jsx(YearWheel, {
|
16
|
+
selectedMonth: 1,
|
17
|
+
onMonthClick: month => console.log('month clicked', month)
|
18
|
+
}),
|
19
|
+
name: 'Selected month'
|
20
|
+
};
|
@@ -3,7 +3,6 @@ import React from 'react';
|
|
3
3
|
import { activepie, pathFill, Wrapper } from './styles';
|
4
4
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
5
5
|
import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
6
|
-
|
7
6
|
const YearWheel = ({
|
8
7
|
selectedMonth,
|
9
8
|
onMonthClick
|
@@ -207,5 +206,4 @@ const YearWheel = ({
|
|
207
206
|
})
|
208
207
|
});
|
209
208
|
};
|
210
|
-
|
211
209
|
export default YearWheel;
|
@@ -1,7 +1,5 @@
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
2
|
-
|
3
2
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
4
|
-
|
5
3
|
import { css } from '@emotion/react';
|
6
4
|
export const Wrapper = _styled("div", process.env.NODE_ENV === "production" ? {
|
7
5
|
target: "esjpkup0"
|
@@ -2,7 +2,6 @@ import React, { useEffect } from 'react';
|
|
2
2
|
import removeFocusOnMouseUp from '../../utils/removeFocusOnMouseUp';
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
4
4
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
5
|
-
|
6
5
|
const ButtonOrLink = ({
|
7
6
|
afterIcon,
|
8
7
|
beforeIcon,
|
@@ -33,43 +32,40 @@ const ButtonOrLink = ({
|
|
33
32
|
} else if (onClick) {
|
34
33
|
onClick(event);
|
35
34
|
}
|
36
|
-
};
|
37
|
-
|
35
|
+
};
|
38
36
|
|
37
|
+
// Remove outline after click
|
39
38
|
const handleMouseUp = event => {
|
40
39
|
removeFocusOnMouseUp(event);
|
41
|
-
|
42
40
|
if (onMouseUp) {
|
43
41
|
onMouseUp(event);
|
44
42
|
}
|
45
43
|
};
|
46
|
-
|
47
44
|
const handleKeyPress = event => {
|
48
45
|
if (onEnterKeyPress && event.key === 'Enter') onEnterKeyPress(event);
|
49
46
|
if (onEscapeKeyPress && event.key === 'Escape') onEscapeKeyPress(event);
|
50
47
|
if (onKeyPress && event.key === onKeyPress.key) onKeyPress.action(event);
|
51
48
|
};
|
52
|
-
|
53
49
|
useEffect(() => {
|
54
50
|
const hasKeyPressEvents = onEnterKeyPress || onEscapeKeyPress || onKeyPress;
|
55
51
|
if (!hasKeyPressEvents) return;
|
56
52
|
window.addEventListener('keyup', handleKeyPress);
|
57
53
|
return () => {
|
58
54
|
if (hasKeyPressEvents) window.removeEventListener('keyup', handleKeyPress);
|
59
|
-
};
|
55
|
+
};
|
56
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
60
57
|
}, []);
|
61
58
|
const Tag = href ? 'a' : 'button';
|
62
|
-
const props = {};
|
59
|
+
const props = {};
|
63
60
|
|
61
|
+
// Determine props based on element type
|
64
62
|
if (href) {
|
65
63
|
props.href = href;
|
66
64
|
props.rel = rel;
|
67
65
|
props.download = download;
|
68
66
|
if (target) props.target = target;
|
69
|
-
|
70
67
|
if (openInNewWindow) {
|
71
68
|
props.target = '_blank';
|
72
|
-
|
73
69
|
if (props.rel === undefined) {
|
74
70
|
props.rel = 'noopener noreferrer';
|
75
71
|
}
|
@@ -78,8 +74,8 @@ const ButtonOrLink = ({
|
|
78
74
|
props.disabled = disabled || loading || false;
|
79
75
|
props.type = type || 'button';
|
80
76
|
}
|
81
|
-
|
82
|
-
|
77
|
+
return /*#__PURE__*/_jsxs(Tag, {
|
78
|
+
...restProps,
|
83
79
|
...props,
|
84
80
|
"data-tracking-name": trackingName,
|
85
81
|
"data-tracking-event": trackingEvent,
|
@@ -92,5 +88,4 @@ const ButtonOrLink = ({
|
|
92
88
|
}), !loading && afterIcon ? afterIcon : null]
|
93
89
|
});
|
94
90
|
};
|
95
|
-
|
96
91
|
export default ButtonOrLink;
|
@@ -1,22 +1,18 @@
|
|
1
1
|
const getAreaTextForPreemptionUnit = unit => unit.subArea ? unit.subArea : unit.area ? unit.area : unit.city;
|
2
|
-
|
3
2
|
const isDeadlineClosing = date => {
|
4
3
|
const date1 = new Date(date);
|
5
4
|
const date2 = new Date();
|
6
5
|
const diffHours = Math.ceil(Math.abs(date1.valueOf() - date2.valueOf()) / 3600000);
|
7
6
|
return diffHours < 72;
|
8
7
|
};
|
9
|
-
|
10
8
|
const getMeldefristText = preemption => {
|
11
9
|
const date1 = new Date(preemption.deadline);
|
12
10
|
const date2 = new Date();
|
13
11
|
const diffHours = Math.ceil(Math.abs(date1.valueOf() - date2.valueOf()) / 3600000);
|
14
|
-
|
15
12
|
if (diffHours > 36) {
|
16
13
|
return ' ' + Math.ceil(diffHours / 24) + ' dager';
|
17
14
|
} else {
|
18
15
|
return ' ' + diffHours + ' timer';
|
19
16
|
}
|
20
17
|
};
|
21
|
-
|
22
18
|
export { getAreaTextForPreemptionUnit, isDeadlineClosing, getMeldefristText };
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { useState, useEffect } from 'react';
|
2
|
-
|
3
2
|
const useDebounce = (value, delay) => {
|
4
3
|
const [debouncedValue, setDebouncedValue] = useState(value);
|
5
4
|
useEffect(() => {
|
@@ -13,5 +12,4 @@ const useDebounce = (value, delay) => {
|
|
13
12
|
}, [value, delay]);
|
14
13
|
return debouncedValue;
|
15
14
|
};
|
16
|
-
|
17
15
|
export { useDebounce };
|
package/lib/enums/Keyboard.js
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
export declare enum ModifierKey {
|
2
|
+
enter = "Enter",
|
3
|
+
tab = "Tab",
|
4
|
+
space = " ",
|
5
|
+
escape = "Escape",
|
6
|
+
shift = "Shift",
|
7
|
+
right = "ArrowRight",
|
8
|
+
left = "ArrowLeft",
|
9
|
+
up = "ArrowUp",
|
10
|
+
down = "ArrowDown"
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=ModifierKey.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModifierKey.d.ts","sourceRoot":"","sources":["../../src/packages/enums/ModifierKey.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,KAAK,MAAM;IACX,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,KAAK,eAAe;IACpB,IAAI,cAAc;IAClB,EAAE,YAAY;IACd,IAAI,cAAc;CACnB"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export let ModifierKey;
|
2
|
+
|
3
|
+
(function (ModifierKey) {
|
4
|
+
ModifierKey["enter"] = "Enter";
|
5
|
+
ModifierKey["tab"] = "Tab";
|
6
|
+
ModifierKey["space"] = " ";
|
7
|
+
ModifierKey["escape"] = "Escape";
|
8
|
+
ModifierKey["shift"] = "Shift";
|
9
|
+
ModifierKey["right"] = "ArrowRight";
|
10
|
+
ModifierKey["left"] = "ArrowLeft";
|
11
|
+
ModifierKey["up"] = "ArrowUp";
|
12
|
+
ModifierKey["down"] = "ArrowDown";
|
13
|
+
})(ModifierKey || (ModifierKey = {}));
|
@@ -1,5 +1,4 @@
|
|
1
1
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
2
|
-
|
3
2
|
import { css } from '@emotion/react';
|
4
3
|
export const defaultOutline = process.env.NODE_ENV === "production" ? {
|
5
4
|
name: "1d1mls9",
|
package/lib/hooks/useIsMobile.js
CHANGED
@@ -6,13 +6,11 @@ export const useIsMobile = width => {
|
|
6
6
|
height: window.innerHeight
|
7
7
|
};
|
8
8
|
};
|
9
|
-
|
10
9
|
const [windowSize, setWindowSize] = useState(getSize);
|
11
10
|
useEffect(() => {
|
12
11
|
const handleResize = () => {
|
13
12
|
setWindowSize(getSize());
|
14
13
|
};
|
15
|
-
|
16
14
|
window.addEventListener('resize', handleResize);
|
17
15
|
return () => window.removeEventListener('resize', handleResize);
|
18
16
|
}, []);
|
@@ -1,24 +1,17 @@
|
|
1
1
|
import { useState, useEffect } from 'react';
|
2
|
-
|
3
2
|
const getOrientation = () => {
|
4
3
|
const isIOS = navigator?.userAgent.match(/iPhone|iPad|iPod/i);
|
5
|
-
|
6
4
|
if (Boolean(isIOS)) {
|
7
5
|
const orientation = window?.orientation;
|
8
|
-
|
9
6
|
switch (orientation) {
|
10
7
|
case 0:
|
11
8
|
return 'portrait-primary';
|
12
|
-
|
13
9
|
case -90:
|
14
10
|
return 'landscape-primary';
|
15
|
-
|
16
11
|
case 90:
|
17
12
|
return 'landscape-secondary';
|
18
|
-
|
19
13
|
case 180:
|
20
14
|
return 'portrait-secondary';
|
21
|
-
|
22
15
|
default:
|
23
16
|
return 'portrait-primary';
|
24
17
|
}
|
@@ -26,14 +19,11 @@ const getOrientation = () => {
|
|
26
19
|
return window?.screen?.orientation?.type ? window.screen.orientation.type : 'portrait-primary';
|
27
20
|
}
|
28
21
|
};
|
29
|
-
|
30
22
|
export const useScreenOrientation = () => {
|
31
23
|
const [orientation, setOrientation] = useState(getOrientation());
|
32
|
-
|
33
24
|
const updateOrientation = _ => {
|
34
25
|
setOrientation(getOrientation());
|
35
26
|
};
|
36
|
-
|
37
27
|
useEffect(() => {
|
38
28
|
window.addEventListener('orientationchange', updateOrientation);
|
39
29
|
return () => {
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import withIcon from '../withIcon';
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
4
|
-
|
5
4
|
const IconApartment = props => {
|
6
5
|
return /*#__PURE__*/_jsx("svg", {
|
7
6
|
viewBox: "0 0 24 24",
|
@@ -11,5 +10,4 @@ const IconApartment = props => {
|
|
11
10
|
})
|
12
11
|
});
|
13
12
|
};
|
14
|
-
|
15
13
|
export default withIcon('IconApartment')(IconApartment);
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import withIcon from '../withIcon';
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
4
|
-
|
5
4
|
const IconArchives = props => {
|
6
5
|
return /*#__PURE__*/_jsx("svg", {
|
7
6
|
viewBox: "0 0 24 24",
|
@@ -11,5 +10,4 @@ const IconArchives = props => {
|
|
11
10
|
})
|
12
11
|
});
|
13
12
|
};
|
14
|
-
|
15
13
|
export default withIcon('IconArchives')(IconArchives);
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import withIcon from '../withIcon';
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
4
|
-
|
5
4
|
const IconArea = props => {
|
6
5
|
return /*#__PURE__*/_jsx("svg", {
|
7
6
|
viewBox: "0 0 24 24",
|
@@ -11,5 +10,4 @@ const IconArea = props => {
|
|
11
10
|
})
|
12
11
|
});
|
13
12
|
};
|
14
|
-
|
15
13
|
export default withIcon('IconArea')(IconArea);
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import withIcon from '../withIcon';
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
4
|
-
|
5
4
|
const IconArrowDown = props => {
|
6
5
|
return /*#__PURE__*/_jsx("svg", {
|
7
6
|
viewBox: "0 0 24 24",
|
@@ -11,5 +10,4 @@ const IconArrowDown = props => {
|
|
11
10
|
})
|
12
11
|
});
|
13
12
|
};
|
14
|
-
|
15
13
|
export default withIcon('IconArrowDown')(IconArrowDown);
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import withIcon from '../withIcon';
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
4
|
-
|
5
4
|
const IconArrowLeft = props => {
|
6
5
|
return /*#__PURE__*/_jsx("svg", {
|
7
6
|
viewBox: "0 0 24 24",
|
@@ -11,5 +10,4 @@ const IconArrowLeft = props => {
|
|
11
10
|
})
|
12
11
|
});
|
13
12
|
};
|
14
|
-
|
15
13
|
export default withIcon('IconArrowLeft')(IconArrowLeft);
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import withIcon from '../withIcon';
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
4
|
-
|
5
4
|
const IconArrowRight = props => {
|
6
5
|
return /*#__PURE__*/_jsx("svg", {
|
7
6
|
viewBox: "0 0 24 24",
|
@@ -11,5 +10,4 @@ const IconArrowRight = props => {
|
|
11
10
|
})
|
12
11
|
});
|
13
12
|
};
|
14
|
-
|
15
13
|
export default withIcon('IconArrowRight')(IconArrowRight);
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import withIcon from '../withIcon';
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
4
|
-
|
5
4
|
const IconArrowUp = props => {
|
6
5
|
return /*#__PURE__*/_jsx("svg", {
|
7
6
|
viewBox: "0 0 24 24",
|
@@ -11,5 +10,4 @@ const IconArrowUp = props => {
|
|
11
10
|
})
|
12
11
|
});
|
13
12
|
};
|
14
|
-
|
15
13
|
export default withIcon('IconArrowUp')(IconArrowUp);
|