@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
@@ -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
|
import bp from '../../../globals/styles/breakpoints';
|
7
5
|
import Button from '../../../core/Button';
|
@@ -15,19 +13,15 @@ export const Wrapper = /*#__PURE__*/_styled(Button, process.env.NODE_ENV === "pr
|
|
15
13
|
label: "Wrapper"
|
16
14
|
})(props => {
|
17
15
|
const isLightTheme = props.isLightTheme;
|
18
|
-
|
19
16
|
const getBackgroundColor = () => {
|
20
17
|
if (props.small) {
|
21
18
|
return 'transparent';
|
22
19
|
}
|
23
|
-
|
24
20
|
if (props.selected) {
|
25
21
|
return isLightTheme ? props.theme.lightAppPickerActiveBackground : props.theme.defaultAppPickerActiveBackground;
|
26
22
|
}
|
27
|
-
|
28
23
|
return isLightTheme ? props.theme.lightAppPickerBackground : props.theme.defaultAppPickerBackground;
|
29
24
|
};
|
30
|
-
|
31
25
|
return /*#__PURE__*/css("height:", props.selected ? '70px' : '50px', ";width:", !props.selected ? '50px' : !props.small ? '66px' : 'auto', ";border-radius:8px;position:relative;background-color:", getBackgroundColor(), ";span{display:flex;flex-direction:column;justify-content:center;align-items:center;}@media screen and (max-width: ", bp.medium, "){height:", props.selected ? '60px' : '48px', ";width:", props.selected ? '55%' : '45%', ";span{flex-direction:row;span{display:inline-block;margin-left:0.5em;}}}&:hover,&:focus{background-color:", getBackgroundColor(), ";}&:focus-visible{outline:", defaultOutline, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:Wrapper;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wYWNrYWdlcy9sYXlvdXQvTWVudS9BcHBQaWNrZXIvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTJCWSIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMvcGFja2FnZXMvbGF5b3V0L01lbnUvQXBwUGlja2VyL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHsgY3NzIH0gZnJ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xuICBjb25zdCBpc0xpZ2h0VGhlbWUgPSBwcm9wcy5pc0xpZ2h0VGhlbWVcblxuICBjb25zdCBnZXRCYWNrZ3JvdW5kQ29sb3IgPSAoKSA9PiB7XG4gICAgaWYgKHByb3BzLnNtYWxsKSB7XG4gICAgICByZXR1cm4gcHJvcHMudGhlbWUuaWxsdXN0cmF0aW9uUHJpbWFyeTEwXG4gICAgfVxuXG4gICAgcmV0dXJuIGlzTGlnaHRUaGVtZVxuICAgICAgPyBwcm9wcy50aGVtZS5saWdodEFwcFBpY2tlckljb25CYWNrZ3JvdW5kXG4gICAgICA6IHByb3BzLnRoZW1lLmRlZmF1bHRBcHBQaWNrZXJJY29uQmFja2dyb3VuZENvbG9yXG4gIH1cblxuICByZXR1cm4gY3NzYFxuICAgICYuc2VsZWN0ZWQge1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgICAgIGhlaWdodDogNDBweDtcbiAgICAgIHdpZHRoOiA0MHB4O1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogJHtnZXRCYWNrZ3JvdW5kQ29sb3IoKX07XG4gICAgICBtYXJnaW4tYm90dG9tOiAwLjJlbTtcbiAgICB9XG4gIGBcbn0pXG5cbmV4cG9ydCBjb25zdCBBYnNvbHV0ZVRleHQgPSBzdHlsZWQuc3BhbmBcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBsaW5lLWhlaWdodDogbm9ybWFsO1xuICBib3R0b206IGNhbGMoLTExcHggLSA1cHgpO1xuICBvcGFjaXR5OiAwLjc1O1xuYFxuIl19 */");
|
32
26
|
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy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vbHV0ZVRleHQgPSBzdHlsZWQuc3BhbmBcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBsaW5lLWhlaWdodDogbm9ybWFsO1xuICBib3R0b206IGNhbGMoLTExcHggLSA1cHgpO1xuICBvcGFjaXR5OiAwLjc1O1xuYFxuIl19 */");
|
33
27
|
export const IconWrapper = _styled("div", process.env.NODE_ENV === "production" ? {
|
@@ -37,15 +31,12 @@ export const IconWrapper = _styled("div", process.env.NODE_ENV === "production"
|
|
37
31
|
label: "IconWrapper"
|
38
32
|
})(props => {
|
39
33
|
const isLightTheme = props.isLightTheme;
|
40
|
-
|
41
34
|
const getBackgroundColor = () => {
|
42
35
|
if (props.small) {
|
43
36
|
return props.theme.illustrationPrimary10;
|
44
37
|
}
|
45
|
-
|
46
38
|
return isLightTheme ? props.theme.lightAppPickerIconBackground : props.theme.defaultAppPickerIconBackgroundColor;
|
47
39
|
};
|
48
|
-
|
49
40
|
return /*#__PURE__*/css("&.selected{display:flex;align-items:center;justify-content:center;border-radius:50%;height:40px;width:40px;background-color:", getBackgroundColor(), ";margin-bottom:0.2em;}" + (process.env.NODE_ENV === "production" ? "" : ";label:IconWrapper;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wYWNrYWdlcy9sYXlvdXQvTWVudS9BcHBQaWNrZXIvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQThFWSIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMvcGFja2FnZXMvbGF5b3V0L01lbnUvQXBwUGlja2VyL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgYnAgZ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0xpZ2h0VGhlbWVcblxuICBjb25zdCBnZXRCYWNrZ3JvdW5kQ29sb3IgPSAoKSA9PiB7XG4gICAgaWYgKHByb3BzLnNtYWxsKSB7XG4gICAgICByZXR1cm4gcHJvcHMudGhlbWUuaWxsdXN0cmF0aW9uUHJpbWFyeTEwXG4gICAgfVxuXG4gICAgcmV0dXJuIGlzTGlnaHRUaGVtZVxuICAgICAgPyBwcm9wcy50aGVtZS5saWdodEFwcFBpY2tlckljb25CYWNrZ3JvdW5kXG4gICAgICA6IHByb3BzLnRoZW1lLmRlZmF1bHRBcHBQaWNrZXJJY29uQmFja2dyb3VuZENvbG9yXG4gIH1cblxuICByZXR1cm4gY3NzYFxuICAgICYuc2VsZWN0ZWQge1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgICAgIGhlaWdodDogNDBweDtcbiAgICAgIHdpZHRoOiA0MHB4O1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogJHtnZXRCYWNrZ3JvdW5kQ29sb3IoKX07XG4gICAgICBtYXJnaW4tYm90dG9tOiAwLjJlbTtcbiAgICB9XG4gIGBcbn0pXG5cbmV4cG9ydCBjb25zdCBBYnNvbHV0ZVRleHQgPSBzdHlsZWQuc3BhbmBcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBsaW5lLWhlaWdodDogbm9ybWFsO1xuICBib3R0b206IGNhbGMoLTExcHggLSA1cHgpO1xuICBvcGFjaXR5OiAwLjc1O1xuYFxuIl19 */");
|
50
41
|
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wYWNrYWdlcy9sYXlvdXQvTWVudS9BcHBQaWNrZXIvc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vbHV0ZTtcbiAgbGluZS1oZWlnaHQ6IG5vcm1hbDtcbiAgYm90dG9tOiBjYWxjKC0xMXB4IC0gNXB4KTtcbiAgb3BhY2l0eTogMC43NTtcbmBcbiJdfQ== */");
|
51
42
|
export const AbsoluteText = _styled("span", process.env.NODE_ENV === "production" ? {
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { Wrapper } from './styles';
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
4
|
-
|
5
4
|
const MainMenu = ({
|
6
5
|
small,
|
7
6
|
children
|
@@ -12,5 +11,4 @@ const MainMenu = ({
|
|
12
11
|
children: children
|
13
12
|
});
|
14
13
|
};
|
15
|
-
|
16
14
|
export default MainMenu;
|
@@ -4,7 +4,6 @@ import { useTheme } from '@emotion/react';
|
|
4
4
|
import Text from '../../../core/Text';
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
6
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
7
|
-
|
8
7
|
const MenuItem = ({
|
9
8
|
small,
|
10
9
|
icon,
|
@@ -33,5 +32,4 @@ const MenuItem = ({
|
|
33
32
|
})
|
34
33
|
});
|
35
34
|
};
|
36
|
-
|
37
35
|
export default MenuItem;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { Wrapper } from './styles';
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
4
|
-
|
5
4
|
const MenuSpacer = ({
|
6
5
|
children
|
7
6
|
}) => {
|
@@ -9,5 +8,4 @@ const MenuSpacer = ({
|
|
9
8
|
children: children
|
10
9
|
});
|
11
10
|
};
|
12
|
-
|
13
11
|
export default MenuSpacer;
|
@@ -2,7 +2,6 @@ import React, { Fragment } from 'react';
|
|
2
2
|
import { StyledLink, Logo, AppPickerWrapper } from './styles';
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
4
4
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
5
|
-
|
6
5
|
const MenuTop = ({
|
7
6
|
small,
|
8
7
|
logo,
|
@@ -25,5 +24,4 @@ const MenuTop = ({
|
|
25
24
|
})]
|
26
25
|
});
|
27
26
|
};
|
28
|
-
|
29
27
|
export default MenuTop;
|
@@ -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 Link from '../../../core/Link';
|
6
4
|
import { css } from '@emotion/react';
|
7
5
|
import bp from '../../../globals/styles/breakpoints';
|
@@ -4,7 +4,6 @@ import { IconChevronLeft, Text, useIsMobile } from '../../..';
|
|
4
4
|
import { CollapseWrapper, IconWrapper, Wrapper, ChildrenWrapper } from './styles';
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
6
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
7
|
-
|
8
7
|
const SecondaryMenu = ({
|
9
8
|
small,
|
10
9
|
lightTheme,
|
@@ -30,7 +29,7 @@ const SecondaryMenu = ({
|
|
30
29
|
"data-tracking-event": 'Menu toggle: ' + (!small ? 'collapse' : 'expand'),
|
31
30
|
children: /*#__PURE__*/_jsx(IconChevronLeft, {
|
32
31
|
size: "9px",
|
33
|
-
color: lightTheme ? theme.
|
32
|
+
color: lightTheme ? theme.btnDefault : 'white'
|
34
33
|
})
|
35
34
|
}), !small && label && /*#__PURE__*/_jsx(Text, {
|
36
35
|
size: "10px",
|
@@ -39,5 +38,4 @@ const SecondaryMenu = ({
|
|
39
38
|
})]
|
40
39
|
});
|
41
40
|
};
|
42
|
-
|
43
41
|
export default SecondaryMenu;
|
@@ -4,7 +4,6 @@ import { useTheme } from '@emotion/react';
|
|
4
4
|
import Text from '../../../core/Text';
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
6
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
7
|
-
|
8
7
|
const SecondaryMenuItem = ({
|
9
8
|
icon,
|
10
9
|
lightTheme,
|
@@ -27,5 +26,4 @@ const SecondaryMenuItem = ({
|
|
27
26
|
})]
|
28
27
|
});
|
29
28
|
};
|
30
|
-
|
31
29
|
export default SecondaryMenuItem;
|
@@ -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 MenuDefault: {
|
4
|
+
render: () => JSX.Element;
|
5
|
+
name: string;
|
6
|
+
};
|
7
|
+
export declare const Collapsed: {
|
8
|
+
render: () => JSX.Element;
|
9
|
+
name: string;
|
10
|
+
};
|
11
|
+
export declare const LightTheme: {
|
12
|
+
render: () => JSX.Element;
|
13
|
+
name: string;
|
14
|
+
};
|
15
|
+
export declare const LightThemeCollapsed: {
|
16
|
+
render: () => JSX.Element;
|
17
|
+
name: string;
|
18
|
+
};
|
19
|
+
//# sourceMappingURL=Sidemenu.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Sidemenu.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/layout/Menu/Sidemenu.stories.tsx"],"names":[],"mappings":";AAWA,wBAUS;AAET,eAAO,MAAM,WAAW;;;CA6FvB,CAAA;AAED,eAAO,MAAM,SAAS;;;CAgDrB,CAAA;AAED,eAAO,MAAM,UAAU;;;CAuDtB,CAAA;AAED,eAAO,MAAM,mBAAmB;;;CAyD/B,CAAA"}
|
@@ -0,0 +1,323 @@
|
|
1
|
+
import Menu from '.';
|
2
|
+
import MenuTop from './MenuTop';
|
3
|
+
import MainMenu from './MainMenu';
|
4
|
+
import AppPicker from './AppPicker';
|
5
|
+
import SecondaryMenu from './SecondaryMenu';
|
6
|
+
import MenuItem from './MenuItem';
|
7
|
+
import SecondaryMenuItem from './SecondaryMenuItem';
|
8
|
+
import MenuSpacer from './MenuSpacer';
|
9
|
+
import IconProfile from '../../icons/General/IconProfile';
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
11
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
12
|
+
export default {
|
13
|
+
title: 'Layout/Menu',
|
14
|
+
component: Menu,
|
15
|
+
parameters: {
|
16
|
+
docs: {
|
17
|
+
story: {
|
18
|
+
height: '100vh'
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
};
|
23
|
+
export const MenuDefault = {
|
24
|
+
render: () => /*#__PURE__*/_jsxs(Menu, {
|
25
|
+
open: true,
|
26
|
+
children: [/*#__PURE__*/_jsxs(MenuTop, {
|
27
|
+
small: false,
|
28
|
+
logo: "",
|
29
|
+
onLogoClick: () => console.log('home'),
|
30
|
+
children: [/*#__PURE__*/_jsx(AppPicker, {
|
31
|
+
lightTheme: true,
|
32
|
+
small: false,
|
33
|
+
selected: true,
|
34
|
+
label: "App 1",
|
35
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
36
|
+
size: "30px"
|
37
|
+
}),
|
38
|
+
onClick: () => console.log('picker click')
|
39
|
+
}), /*#__PURE__*/_jsx(AppPicker, {
|
40
|
+
lightTheme: true,
|
41
|
+
small: false,
|
42
|
+
label: "App 2",
|
43
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {}),
|
44
|
+
onClick: () => console.log('picker click')
|
45
|
+
})]
|
46
|
+
}), /*#__PURE__*/_jsxs(MenuSpacer, {
|
47
|
+
children: [/*#__PURE__*/_jsxs(MainMenu, {
|
48
|
+
small: false,
|
49
|
+
children: [/*#__PURE__*/_jsx(MenuItem, {
|
50
|
+
onClick: () => console.log('item 1 click'),
|
51
|
+
small: false,
|
52
|
+
label: "Item 1",
|
53
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
54
|
+
color: "white",
|
55
|
+
size: "14px"
|
56
|
+
}),
|
57
|
+
lightTheme: false,
|
58
|
+
active: true
|
59
|
+
}), /*#__PURE__*/_jsx(MenuItem, {
|
60
|
+
onClick: () => console.log('item 2 click'),
|
61
|
+
small: false,
|
62
|
+
label: "Item 1",
|
63
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
64
|
+
color: "white",
|
65
|
+
size: "14px"
|
66
|
+
}),
|
67
|
+
lightTheme: false,
|
68
|
+
active: false
|
69
|
+
}), /*#__PURE__*/_jsx(MenuItem, {
|
70
|
+
onClick: () => console.log('item 3 click'),
|
71
|
+
small: false,
|
72
|
+
label: "Item 3",
|
73
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
74
|
+
color: "white",
|
75
|
+
size: "14px"
|
76
|
+
}),
|
77
|
+
lightTheme: false,
|
78
|
+
active: false
|
79
|
+
}), /*#__PURE__*/_jsx(MenuItem, {
|
80
|
+
onClick: () => console.log('item 4 click'),
|
81
|
+
small: false,
|
82
|
+
label: "Item 4",
|
83
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
84
|
+
color: "white",
|
85
|
+
size: "14px"
|
86
|
+
}),
|
87
|
+
lightTheme: false,
|
88
|
+
active: false
|
89
|
+
}), /*#__PURE__*/_jsx(MenuItem, {
|
90
|
+
onClick: () => console.log('item 5 click'),
|
91
|
+
small: false,
|
92
|
+
label: "Item 5",
|
93
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
94
|
+
color: "white",
|
95
|
+
size: "14px"
|
96
|
+
}),
|
97
|
+
lightTheme: false,
|
98
|
+
active: false
|
99
|
+
}), /*#__PURE__*/_jsx(MenuItem, {
|
100
|
+
onClick: () => console.log('item 6 click'),
|
101
|
+
small: false,
|
102
|
+
label: "Item 6",
|
103
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
104
|
+
color: "white",
|
105
|
+
size: "14px"
|
106
|
+
}),
|
107
|
+
lightTheme: false,
|
108
|
+
active: false
|
109
|
+
})]
|
110
|
+
}), /*#__PURE__*/_jsxs(SecondaryMenu, {
|
111
|
+
small: false,
|
112
|
+
onMenuToggle: e => console.log('Toggle'),
|
113
|
+
label: "KLG BBL",
|
114
|
+
children: [/*#__PURE__*/_jsx(SecondaryMenuItem, {
|
115
|
+
href: "#",
|
116
|
+
label: "Link in new tab",
|
117
|
+
target: "_blank",
|
118
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
119
|
+
color: "white",
|
120
|
+
size: "20px"
|
121
|
+
})
|
122
|
+
}), /*#__PURE__*/_jsx(SecondaryMenuItem, {
|
123
|
+
href: "#",
|
124
|
+
label: "Link in same tab",
|
125
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
126
|
+
color: "white",
|
127
|
+
size: "20px"
|
128
|
+
})
|
129
|
+
})]
|
130
|
+
})]
|
131
|
+
})]
|
132
|
+
}),
|
133
|
+
name: 'Menu'
|
134
|
+
};
|
135
|
+
export const Collapsed = {
|
136
|
+
render: () => /*#__PURE__*/_jsxs(Menu, {
|
137
|
+
open: false,
|
138
|
+
children: [/*#__PURE__*/_jsxs(MenuTop, {
|
139
|
+
small: true,
|
140
|
+
logo: "",
|
141
|
+
onLogoClick: () => console.log('home'),
|
142
|
+
children: [/*#__PURE__*/_jsx(AppPicker, {
|
143
|
+
lightTheme: false,
|
144
|
+
small: true,
|
145
|
+
selected: true,
|
146
|
+
label: "App 1",
|
147
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
148
|
+
size: "30px"
|
149
|
+
})
|
150
|
+
}), /*#__PURE__*/_jsx(AppPicker, {
|
151
|
+
label: "",
|
152
|
+
lightTheme: false,
|
153
|
+
small: true,
|
154
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {})
|
155
|
+
})]
|
156
|
+
}), /*#__PURE__*/_jsxs(MenuSpacer, {
|
157
|
+
children: [/*#__PURE__*/_jsxs(MainMenu, {
|
158
|
+
small: true,
|
159
|
+
children: [/*#__PURE__*/_jsx(MenuItem, {
|
160
|
+
onClick: () => console.log('item 1 click'),
|
161
|
+
small: true,
|
162
|
+
label: "Item 1",
|
163
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
164
|
+
color: "white",
|
165
|
+
size: "14px"
|
166
|
+
}),
|
167
|
+
lightTheme: false,
|
168
|
+
active: true
|
169
|
+
}), /*#__PURE__*/_jsx(MenuItem, {
|
170
|
+
onClick: () => console.log('item 2 click'),
|
171
|
+
small: true,
|
172
|
+
label: "Item 1",
|
173
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
174
|
+
color: "white",
|
175
|
+
size: "14px"
|
176
|
+
}),
|
177
|
+
lightTheme: false,
|
178
|
+
active: false
|
179
|
+
})]
|
180
|
+
}), /*#__PURE__*/_jsx(SecondaryMenu, {
|
181
|
+
small: true,
|
182
|
+
onMenuToggle: e => console.log('Toggle'),
|
183
|
+
label: "KLG BBL",
|
184
|
+
children: /*#__PURE__*/_jsx(SecondaryMenuItem, {
|
185
|
+
href: "#",
|
186
|
+
label: "Link",
|
187
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
188
|
+
color: "white",
|
189
|
+
size: "20px"
|
190
|
+
})
|
191
|
+
})
|
192
|
+
})]
|
193
|
+
})]
|
194
|
+
}),
|
195
|
+
name: 'Collapsed'
|
196
|
+
};
|
197
|
+
export const LightTheme = {
|
198
|
+
render: () => /*#__PURE__*/_jsxs(Menu, {
|
199
|
+
open: true,
|
200
|
+
lightTheme: true,
|
201
|
+
children: [/*#__PURE__*/_jsxs(MenuTop, {
|
202
|
+
small: false,
|
203
|
+
logo: "",
|
204
|
+
onLogoClick: () => console.log('home'),
|
205
|
+
children: [/*#__PURE__*/_jsx(AppPicker, {
|
206
|
+
small: false,
|
207
|
+
lightTheme: true,
|
208
|
+
label: "Portalen",
|
209
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {})
|
210
|
+
}), /*#__PURE__*/_jsx(AppPicker, {
|
211
|
+
small: false,
|
212
|
+
lightTheme: true,
|
213
|
+
label: "Min side",
|
214
|
+
selected: true,
|
215
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
216
|
+
size: "30px"
|
217
|
+
})
|
218
|
+
})]
|
219
|
+
}), /*#__PURE__*/_jsxs(MenuSpacer, {
|
220
|
+
children: [/*#__PURE__*/_jsxs(MainMenu, {
|
221
|
+
small: false,
|
222
|
+
children: [/*#__PURE__*/_jsx(MenuItem, {
|
223
|
+
onClick: () => console.log('item 1 click'),
|
224
|
+
small: false,
|
225
|
+
label: "Item 1",
|
226
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
227
|
+
size: "14px"
|
228
|
+
}),
|
229
|
+
lightTheme: true,
|
230
|
+
active: true
|
231
|
+
}), /*#__PURE__*/_jsx(MenuItem, {
|
232
|
+
onClick: () => console.log('item 2 click'),
|
233
|
+
small: false,
|
234
|
+
label: "Item 1",
|
235
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
236
|
+
size: "14px"
|
237
|
+
}),
|
238
|
+
lightTheme: true,
|
239
|
+
active: false
|
240
|
+
})]
|
241
|
+
}), /*#__PURE__*/_jsx(SecondaryMenu, {
|
242
|
+
small: false,
|
243
|
+
lightTheme: true,
|
244
|
+
onMenuToggle: e => console.log('Toggle'),
|
245
|
+
label: "KLG BBL",
|
246
|
+
children: /*#__PURE__*/_jsx(SecondaryMenuItem, {
|
247
|
+
lightTheme: true,
|
248
|
+
href: "#",
|
249
|
+
label: "Link",
|
250
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
251
|
+
size: "20px"
|
252
|
+
})
|
253
|
+
})
|
254
|
+
})]
|
255
|
+
})]
|
256
|
+
}),
|
257
|
+
name: 'Light theme'
|
258
|
+
};
|
259
|
+
export const LightThemeCollapsed = {
|
260
|
+
render: () => /*#__PURE__*/_jsxs(Menu, {
|
261
|
+
open: false,
|
262
|
+
lightTheme: true,
|
263
|
+
children: [/*#__PURE__*/_jsxs(MenuTop, {
|
264
|
+
small: true,
|
265
|
+
logo: "",
|
266
|
+
onLogoClick: () => console.log('home'),
|
267
|
+
children: [/*#__PURE__*/_jsx(AppPicker, {
|
268
|
+
label: "",
|
269
|
+
small: true,
|
270
|
+
lightTheme: true,
|
271
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {}),
|
272
|
+
onClick: () => console.log('picker click')
|
273
|
+
}), /*#__PURE__*/_jsx(AppPicker, {
|
274
|
+
small: true,
|
275
|
+
lightTheme: true,
|
276
|
+
selected: true,
|
277
|
+
label: "App 2",
|
278
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
279
|
+
size: "30px"
|
280
|
+
}),
|
281
|
+
onClick: () => console.log('picker click')
|
282
|
+
})]
|
283
|
+
}), /*#__PURE__*/_jsxs(MenuSpacer, {
|
284
|
+
children: [/*#__PURE__*/_jsxs(MainMenu, {
|
285
|
+
small: true,
|
286
|
+
children: [/*#__PURE__*/_jsx(MenuItem, {
|
287
|
+
onClick: () => console.log('item 1 click'),
|
288
|
+
small: true,
|
289
|
+
label: "Item 1",
|
290
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
291
|
+
size: "14px"
|
292
|
+
}),
|
293
|
+
lightTheme: true,
|
294
|
+
active: true
|
295
|
+
}), /*#__PURE__*/_jsx(MenuItem, {
|
296
|
+
onClick: () => console.log('item 2 click'),
|
297
|
+
small: true,
|
298
|
+
label: "Item 1",
|
299
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
300
|
+
size: "14px"
|
301
|
+
}),
|
302
|
+
lightTheme: true,
|
303
|
+
active: false
|
304
|
+
})]
|
305
|
+
}), /*#__PURE__*/_jsx(SecondaryMenu, {
|
306
|
+
small: true,
|
307
|
+
lightTheme: true,
|
308
|
+
onMenuToggle: e => console.log('Toggle'),
|
309
|
+
label: "KLG BBL",
|
310
|
+
children: /*#__PURE__*/_jsx(SecondaryMenuItem, {
|
311
|
+
lightTheme: true,
|
312
|
+
href: "#",
|
313
|
+
label: "Link",
|
314
|
+
icon: /*#__PURE__*/_jsx(IconProfile, {
|
315
|
+
color: "white",
|
316
|
+
size: "20px"
|
317
|
+
})
|
318
|
+
})
|
319
|
+
})]
|
320
|
+
})]
|
321
|
+
}),
|
322
|
+
name: 'Light theme collapsed'
|
323
|
+
};
|
package/lib/layout/Menu/index.js
CHANGED
@@ -2,7 +2,6 @@ import React from 'react';
|
|
2
2
|
import { Wrapper } from './styles';
|
3
3
|
import { useTheme } from '@emotion/react';
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
5
|
-
|
6
5
|
const Menu = ({
|
7
6
|
lightTheme,
|
8
7
|
open,
|
@@ -16,5 +15,4 @@ const Menu = ({
|
|
16
15
|
children: children
|
17
16
|
});
|
18
17
|
};
|
19
|
-
|
20
18
|
export default Menu;
|
@@ -0,0 +1,27 @@
|
|
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 SubmenuDefault: {
|
4
|
+
render: () => JSX.Element;
|
5
|
+
name: string;
|
6
|
+
};
|
7
|
+
export declare const Lighttheme: {
|
8
|
+
render: () => JSX.Element;
|
9
|
+
name: string;
|
10
|
+
};
|
11
|
+
export declare const LightthemeIllustration: {
|
12
|
+
render: () => JSX.Element;
|
13
|
+
name: string;
|
14
|
+
};
|
15
|
+
export declare const NoItems: {
|
16
|
+
render: () => JSX.Element;
|
17
|
+
name: string;
|
18
|
+
};
|
19
|
+
export declare const NoItemsLight: {
|
20
|
+
render: () => JSX.Element;
|
21
|
+
name: string;
|
22
|
+
};
|
23
|
+
export declare const CustomHeader: {
|
24
|
+
render: () => JSX.Element;
|
25
|
+
name: string;
|
26
|
+
};
|
27
|
+
//# sourceMappingURL=Submenu.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Submenu.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/layout/Submenu/Submenu.stories.tsx"],"names":[],"mappings":";AAKA,wBAGS;AAET,eAAO,MAAM,cAAc;;;CAa1B,CAAA;AAED,eAAO,MAAM,UAAU;;;CAkBtB,CAAA;AAED,eAAO,MAAM,sBAAsB;;;CAsBlC,CAAA;AAED,eAAO,MAAM,OAAO;;;CAGnB,CAAA;AAED,eAAO,MAAM,YAAY;;;CAGxB,CAAA;AAED,eAAO,MAAM,YAAY;;;CA8BxB,CAAA"}
|
@@ -0,0 +1,94 @@
|
|
1
|
+
import Submenu from '.';
|
2
|
+
import SubmenuItem from './SubmenuItem';
|
3
|
+
import IllustrationMySitePiggyBank from '../../illustrations/MySite/IllustrationMySitePiggyBank';
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
5
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
6
|
+
export default {
|
7
|
+
title: 'Layout/Submenu',
|
8
|
+
component: Submenu
|
9
|
+
};
|
10
|
+
export const SubmenuDefault = {
|
11
|
+
render: () => /*#__PURE__*/_jsxs(Submenu, {
|
12
|
+
header: "Header",
|
13
|
+
children: [/*#__PURE__*/_jsx(SubmenuItem, {
|
14
|
+
label: "item 1",
|
15
|
+
active: true,
|
16
|
+
onClick: () => console.log('item click')
|
17
|
+
}), /*#__PURE__*/_jsx(SubmenuItem, {
|
18
|
+
label: "item 2",
|
19
|
+
onClick: () => console.log('item click')
|
20
|
+
})]
|
21
|
+
}),
|
22
|
+
name: 'Submenu'
|
23
|
+
};
|
24
|
+
export const Lighttheme = {
|
25
|
+
render: () => /*#__PURE__*/_jsxs(Submenu, {
|
26
|
+
lightTheme: true,
|
27
|
+
header: "Header",
|
28
|
+
children: [/*#__PURE__*/_jsx(SubmenuItem, {
|
29
|
+
label: "Item 1",
|
30
|
+
lightTheme: true,
|
31
|
+
active: true,
|
32
|
+
onClick: () => console.log('item click')
|
33
|
+
}), /*#__PURE__*/_jsx(SubmenuItem, {
|
34
|
+
label: "Item 2",
|
35
|
+
lightTheme: true,
|
36
|
+
onClick: () => console.log('item click')
|
37
|
+
})]
|
38
|
+
}),
|
39
|
+
name: 'Lighttheme'
|
40
|
+
};
|
41
|
+
export const LightthemeIllustration = {
|
42
|
+
render: () => /*#__PURE__*/_jsxs(Submenu, {
|
43
|
+
lightTheme: true,
|
44
|
+
header: "Header",
|
45
|
+
illustration: /*#__PURE__*/_jsx(IllustrationMySitePiggyBank, {}),
|
46
|
+
children: [/*#__PURE__*/_jsx(SubmenuItem, {
|
47
|
+
label: "Item 1",
|
48
|
+
lightTheme: true,
|
49
|
+
active: true,
|
50
|
+
onClick: () => console.log('item click')
|
51
|
+
}), /*#__PURE__*/_jsx(SubmenuItem, {
|
52
|
+
label: "Item 2",
|
53
|
+
lightTheme: true,
|
54
|
+
onClick: () => console.log('item click')
|
55
|
+
})]
|
56
|
+
}),
|
57
|
+
name: 'Lighttheme - illustration'
|
58
|
+
};
|
59
|
+
export const NoItems = {
|
60
|
+
render: () => /*#__PURE__*/_jsx(Submenu, {
|
61
|
+
header: "Just a header"
|
62
|
+
}),
|
63
|
+
name: 'No items'
|
64
|
+
};
|
65
|
+
export const NoItemsLight = {
|
66
|
+
render: () => /*#__PURE__*/_jsx(Submenu, {
|
67
|
+
lightTheme: true,
|
68
|
+
header: "Just a header"
|
69
|
+
}),
|
70
|
+
name: 'No items light'
|
71
|
+
};
|
72
|
+
export const CustomHeader = {
|
73
|
+
render: () => /*#__PURE__*/_jsxs(Submenu, {
|
74
|
+
lightTheme: true,
|
75
|
+
customHeader: /*#__PURE__*/_jsx("p", {
|
76
|
+
style: {
|
77
|
+
zIndex: 1,
|
78
|
+
margin: 0
|
79
|
+
},
|
80
|
+
children: "header"
|
81
|
+
}),
|
82
|
+
children: [/*#__PURE__*/_jsx(SubmenuItem, {
|
83
|
+
label: "Item 1",
|
84
|
+
lightTheme: true,
|
85
|
+
active: true,
|
86
|
+
onClick: () => console.log('item click')
|
87
|
+
}), /*#__PURE__*/_jsx(SubmenuItem, {
|
88
|
+
label: "Item 2",
|
89
|
+
lightTheme: true,
|
90
|
+
onClick: () => console.log('item click')
|
91
|
+
})]
|
92
|
+
}),
|
93
|
+
name: 'Custom header'
|
94
|
+
};
|