@bbl-digital/snorre 4.2.30 → 4.2.31
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bundle.js +42795 -35806
- package/esm/app-shell/index.js +21 -14
- package/esm/app-shell/theme.js +9 -2
- package/esm/core/Alert/Alert.stories.js +15 -8
- package/esm/core/Alert/index.js +24 -14
- package/esm/core/Alert/styles.js +15 -11
- package/esm/core/AppLoader/AppLoader.stories.js +11 -4
- package/esm/core/AppLoader/index.js +15 -7
- package/esm/core/AppLoader/styles.js +10 -5
- package/esm/core/Autocomplete/Autocomplete.stories.js +80 -73
- package/esm/core/Autocomplete/hooks/useAutocomplete.js +24 -17
- package/esm/core/Autocomplete/hooks/useHandleDimentions.js +12 -6
- package/esm/core/Autocomplete/index.interfaces.js +5 -1
- package/esm/core/Autocomplete/index.js +60 -51
- package/esm/core/Autocomplete/styles.js +32 -29
- package/esm/core/Banner/Banner.stories.js +33 -26
- package/esm/core/Banner/index.js +18 -10
- package/esm/core/Banner/styles.js +16 -10
- package/esm/core/BarAndLineComposedChart/BarAndLineComposedChart.stories.js +15 -8
- package/esm/core/BarAndLineComposedChart/index.js +30 -23
- package/esm/core/BarAndLineComposedChart/styles.js +9 -2
- package/esm/core/BarChartWithCustomizedEvent/BarChartWithCustomizedEvent.stories.js +14 -7
- package/esm/core/BarChartWithCustomizedEvent/index.js +31 -22
- package/esm/core/BarChartWithCustomizedEvent/styles.js +11 -4
- package/esm/core/Box/Box.stories.js +26 -19
- package/esm/core/Box/index.js +28 -18
- package/esm/core/Box/styles.js +21 -18
- package/esm/core/BoxedTable/BoxedTable.stories.js +141 -134
- package/esm/core/BoxedTable/DraggableRow/index.js +20 -13
- package/esm/core/BoxedTable/DraggableRow/styles.js +18 -14
- package/esm/core/BoxedTable/HeaderCell/index.js +17 -9
- package/esm/core/BoxedTable/HeaderCell/styles.js +13 -5
- package/esm/core/BoxedTable/RowCell/index.js +14 -6
- package/esm/core/BoxedTable/RowCell/styles.js +21 -18
- package/esm/core/BoxedTable/TableHeader/index.js +12 -5
- package/esm/core/BoxedTable/TableHeader/styles.js +10 -4
- package/esm/core/BoxedTable/TableRow/index.js +27 -18
- package/esm/core/BoxedTable/TableRow/styles.js +19 -16
- package/esm/core/BoxedTable/index.js +18 -11
- package/esm/core/BoxedTable/models.js +5 -1
- package/esm/core/BoxedTable/styles.js +22 -22
- package/esm/core/Button/Button.stories.js +29 -22
- package/esm/core/Button/index.js +22 -14
- package/esm/core/Button/styles.js +30 -32
- package/esm/core/Calendar/Calendar.stories.js +17 -10
- package/esm/core/Calendar/CalendarEvent/index.js +35 -26
- package/esm/core/Calendar/CalendarEvent/styles.js +19 -16
- package/esm/core/Calendar/CalendarSmallEvent/index.js +34 -25
- package/esm/core/Calendar/CalendarSmallEvent/styles.js +19 -16
- package/esm/core/Calendar/index.js +47 -41
- package/esm/core/Calendar/styles.js +22 -18
- package/esm/core/Calendar/util.js +11 -4
- package/esm/core/Card/Card.stories.js +29 -22
- package/esm/core/Card/index.js +17 -9
- package/esm/core/Card/styles.js +20 -21
- package/esm/core/Checkbox/Checkbox.stories.js +15 -8
- package/esm/core/Checkbox/index.js +20 -11
- package/esm/core/Checkbox/styles.js +14 -12
- package/esm/core/CollapseList/CollapseList.stories.js +27 -20
- package/esm/core/CollapseList/Item.js +23 -15
- package/esm/core/CollapseList/index.js +15 -7
- package/esm/core/CollapseList/styles.js +14 -8
- package/esm/core/CommentsTimeline/CommentLine/index.js +25 -18
- package/esm/core/CommentsTimeline/CommentLine/styles.js +18 -12
- package/esm/core/CommentsTimeline/CommentsTimeline.stories.js +32 -25
- package/esm/core/CommentsTimeline/index.js +12 -5
- package/esm/core/CommentsTimeline/styles.js +10 -4
- package/esm/core/CustomText/CustomText.stories.js +14 -7
- package/esm/core/CustomText/index.js +18 -10
- package/esm/core/CustomText/styles.js +13 -8
- package/esm/core/Datepicker/Datepicker.stories.js +22 -15
- package/esm/core/Datepicker/index.js +57 -47
- package/esm/core/Datepicker/styles.js +25 -20
- package/esm/core/DatepickerRange/DatepickerRange.stories.js +14 -7
- package/esm/core/DatepickerRange/index.js +20 -13
- package/esm/core/DatepickerRange/styles.js +21 -15
- package/esm/core/Divider/index.js +13 -6
- package/esm/core/Divider/styles.js +14 -10
- package/esm/core/Dropdown/Dropdown.stories.js +23 -16
- package/esm/core/Dropdown/index.js +29 -19
- package/esm/core/Dropdown/styles.js +12 -7
- package/esm/core/DropdownMenu/DropdownMenu.stories.js +27 -20
- package/esm/core/DropdownMenu/DropdownMenuOption.js +15 -7
- package/esm/core/DropdownMenu/index.js +21 -12
- package/esm/core/DropdownMenu/styles.js +15 -9
- package/esm/core/FileInput/FileInput.stories.js +20 -13
- package/esm/core/FileInput/index.js +42 -33
- package/esm/core/FileInput/styles.js +34 -36
- package/esm/core/GoogleButton/GoogleButton.stories.js +11 -4
- package/esm/core/GoogleButton/index.js +14 -7
- package/esm/core/GoogleButton/styles.js +10 -4
- package/esm/core/Header/Header.stories.js +18 -11
- package/esm/core/Header/index.js +14 -6
- package/esm/core/Header/styles.js +18 -12
- package/esm/core/HighlightText/HighlightText.stories.js +12 -5
- package/esm/core/HighlightText/index.js +16 -9
- package/esm/core/HighlightText/styles.js +10 -4
- package/esm/core/Html/Html.stories.js +18 -11
- package/esm/core/Html/index.js +16 -8
- package/esm/core/Html/styles.js +15 -11
- package/esm/core/Image/Image.stories.js +15 -8
- package/esm/core/Image/index.js +19 -10
- package/esm/core/Image/styles.js +15 -11
- package/esm/core/ImagePicker/IconWithBackground.js +14 -7
- package/esm/core/ImagePicker/ImagePicker.stories.js +17 -10
- package/esm/core/ImagePicker/UploadButton.js +21 -13
- package/esm/core/ImagePicker/index.js +49 -41
- package/esm/core/ImagePicker/styles.js +24 -24
- package/esm/core/ImageViewer/ImageViewer.stories.js +11 -4
- package/esm/core/ImageViewer/index.js +45 -37
- package/esm/core/ImageViewer/styles.js +15 -12
- package/esm/core/InfoButton/InfoButton.stories.js +22 -15
- package/esm/core/InfoButton/index.js +25 -15
- package/esm/core/InfoButton/styles.js +24 -21
- package/esm/core/Input/Input.stories.js +35 -28
- package/esm/core/Input/index.js +47 -38
- package/esm/core/Input/styles.js +28 -27
- package/esm/core/Link/Link.stories.js +19 -12
- package/esm/core/Link/index.js +21 -13
- package/esm/core/Link/styles.js +29 -24
- package/esm/core/List/Item.js +11 -5
- package/esm/core/List/List.stories.js +72 -65
- package/esm/core/List/index.js +23 -10
- package/esm/core/List/styles.js +20 -18
- package/esm/core/ListPager/ListPager.stories.js +11 -4
- package/esm/core/ListPager/index.js +24 -17
- package/esm/core/ListPager/styles.js +15 -9
- package/esm/core/MediaCarousel/MediaCarousel.stories.js +12 -5
- package/esm/core/MediaCarousel/index.js +30 -23
- package/esm/core/MediaCarousel/styles.js +18 -13
- package/esm/core/Modal/ActionButtons/index.js +15 -8
- package/esm/core/Modal/Modal.stories.js +49 -42
- package/esm/core/Modal/index.js +51 -41
- package/esm/core/Modal/styles.js +26 -22
- package/esm/core/NoticeCard/NoticeCard.stories.js +15 -8
- package/esm/core/NoticeCard/index.js +50 -41
- package/esm/core/NoticeCard/models.js +7 -1
- package/esm/core/NoticeCard/privateComponents/NoticeAttachmentBlock/index.js +24 -17
- package/esm/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.js +16 -10
- package/esm/core/NoticeCard/privateComponents/NoticeAttachmentList/index.js +17 -8
- package/esm/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.js +10 -4
- package/esm/core/NoticeCard/privateComponents/NoticeMetaInfo/index.js +23 -16
- package/esm/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +13 -8
- package/esm/core/NoticeCard/styles.js +18 -13
- package/esm/core/NoticeCard/utils.js +20 -11
- package/esm/core/NotificationCounter/NotificationCounter.stories.js +15 -8
- package/esm/core/NotificationCounter/index.js +11 -5
- package/esm/core/NotificationCounter/styles.js +9 -3
- package/esm/core/NotificationsMenu/NotificationRow/index.js +18 -11
- package/esm/core/NotificationsMenu/NotificationRow/styles.js +16 -11
- package/esm/core/NotificationsMenu/NotificationsMenu.stories.js +22 -15
- package/esm/core/NotificationsMenu/index.js +30 -21
- package/esm/core/NotificationsMenu/styles.js +12 -6
- package/esm/core/PieChart/ActiveShape/index.js +14 -9
- package/esm/core/PieChart/PieChart.stories.js +19 -12
- package/esm/core/PieChart/index.js +32 -23
- package/esm/core/PieChart/renderTextContent/index.js +15 -10
- package/esm/core/PieChart/styles.js +13 -7
- package/esm/core/PreemptionCard/PreemptionCard.stories.js +14 -7
- package/esm/core/PreemptionCard/index.js +45 -38
- package/esm/core/PreemptionCard/models.js +7 -1
- package/esm/core/PreemptionCard/styles.js +18 -14
- package/esm/core/PreemptionCardLoading/PreemptionCardLoading.stories.js +14 -7
- package/esm/core/PreemptionCardLoading/index.js +19 -12
- package/esm/core/PreemptionCardLoading/styles.js +14 -10
- package/esm/core/QuillEditor/QuillEditor.stories.js +31 -24
- package/esm/core/QuillEditor/classes/LinkSanitizer.js +12 -4
- package/esm/core/QuillEditor/classes/ListItem.js +10 -3
- package/esm/core/QuillEditor/config.js +8 -2
- package/esm/core/QuillEditor/index.js +61 -54
- package/esm/core/QuillEditor/models.js +5 -1
- package/esm/core/QuillEditor/styles.js +15 -10
- package/esm/core/Radio/Radio.stories.js +27 -20
- package/esm/core/Radio/index.js +16 -8
- package/esm/core/Radio/styles.js +13 -9
- package/esm/core/SearchFilter/SearchFilter.stories.js +36 -29
- package/esm/core/SearchFilter/index.js +53 -43
- package/esm/core/SearchFilter/styles.js +33 -32
- package/esm/core/SearchSelect/SearchSelect.stories.js +18 -11
- package/esm/core/SearchSelect/hooks/useSelectSearch.js +13 -7
- package/esm/core/SearchSelect/index.js +36 -26
- package/esm/core/SearchSelect/interface/IProps.js +5 -1
- package/esm/core/SearchSelect/styles.js +19 -17
- package/esm/core/Select/Option.js +18 -10
- package/esm/core/Select/Select.stories.js +85 -78
- package/esm/core/Select/index.js +46 -31
- package/esm/core/Select/styles.js +33 -33
- package/esm/core/SimpleBarChart/SimpleBarChart.stories.js +21 -14
- package/esm/core/SimpleBarChart/index.js +27 -20
- package/esm/core/SimpleBarChart/styles.js +9 -2
- package/esm/core/SimpleLineChart/SimpleLineChart.stories.js +24 -17
- package/esm/core/SimpleLineChart/index.js +25 -18
- package/esm/core/SimpleLineChart/styles.js +9 -2
- package/esm/core/Skeleton/Skeleton.stories.js +14 -7
- package/esm/core/Skeleton/index.js +14 -7
- package/esm/core/Skeleton/styles.js +14 -7
- package/esm/core/Spinner/Spinner.stories.js +19 -12
- package/esm/core/Spinner/index.js +14 -6
- package/esm/core/Spinner/styles.js +14 -9
- package/esm/core/Stepper/MobileStep/index.js +17 -10
- package/esm/core/Stepper/MobileStep/styles.js +20 -18
- package/esm/core/Stepper/Step/index.js +31 -25
- package/esm/core/Stepper/Step/styles.js +18 -13
- package/esm/core/Stepper/Stepper.stories.js +11 -4
- package/esm/core/Stepper/index.js +27 -18
- package/esm/core/Stepper/styles.js +13 -7
- package/esm/core/TabBar/TabBar.stories.js +19 -12
- package/esm/core/TabBar/TabItem/index.js +14 -7
- package/esm/core/TabBar/TabItem/styles.js +10 -4
- package/esm/core/TabBar/index.js +12 -5
- package/esm/core/TabBar/styles.js +10 -4
- package/esm/core/TabNav/TabContext.js +21 -12
- package/esm/core/TabNav/TabNav.stories.js +85 -78
- package/esm/core/TabNav/TabNavItem/index.js +36 -26
- package/esm/core/TabNav/TabNavItem/styles.js +18 -11
- package/esm/core/TabNav/index.js +38 -28
- package/esm/core/TabNav/styles.js +23 -18
- package/esm/core/TabNav/utils/useContainerDimensions.js +13 -6
- package/esm/core/Table/Cell.js +14 -6
- package/esm/core/Table/Row.js +13 -6
- package/esm/core/Table/Table.stories.js +41 -34
- package/esm/core/Table/index.js +28 -10
- package/esm/core/Table/styles.js +27 -27
- package/esm/core/Tag/Tag.stories.js +28 -21
- package/esm/core/Tag/index.js +22 -14
- package/esm/core/Tag/styles.js +22 -21
- package/esm/core/Text/Text.stories.js +25 -18
- package/esm/core/Text/index.js +14 -6
- package/esm/core/Text/styles.js +25 -28
- package/esm/core/Textarea/Textarea.stories.js +15 -8
- package/esm/core/Textarea/index.js +24 -15
- package/esm/core/Textarea/styles.js +20 -15
- package/esm/core/Timeline/Timeline.stories.js +17 -10
- package/esm/core/Timeline/TimelineStep/index.js +21 -13
- package/esm/core/Timeline/TimelineStep/styles.js +19 -14
- package/esm/core/Timeline/index.js +12 -5
- package/esm/core/Timeline/styles.js +10 -4
- package/esm/core/Timepicker/Timepicker.stories.js +25 -18
- package/esm/core/Timepicker/index.js +35 -27
- package/esm/core/Timepicker/styles.js +19 -16
- package/esm/core/Tooltip/Tooptip.stories.js +13 -6
- package/esm/core/Tooltip/index.js +24 -16
- package/esm/core/Tooltip/styles.js +10 -5
- package/esm/core/UnitIllustration/index.js +25 -19
- package/esm/core/UserMenu/UserMenu.stories.js +33 -26
- package/esm/core/UserMenu/UserMenuOption.js +15 -7
- package/esm/core/UserMenu/index.js +39 -30
- package/esm/core/UserMenu/styles.js +23 -19
- package/esm/core/Video/Video.stories.js +20 -13
- package/esm/core/Video/index.js +19 -11
- package/esm/core/Video/styles.js +10 -4
- package/esm/core/YearWheel/YearWheel.stories.js +15 -8
- package/esm/core/YearWheel/index.js +65 -57
- package/esm/core/YearWheel/styles.js +15 -7
- package/esm/core/private/ButtonOrLink.js +18 -9
- package/esm/core/private/preemption.js +9 -1
- package/esm/core/utils/debounce.js +10 -4
- package/esm/enums/Keyboard.js +7 -2
- package/esm/global.d.js +3 -2
- package/esm/globals/styles/breakpoints.js +7 -1
- package/esm/globals/styles/paddings.js +7 -1
- package/esm/globals/styles/styles.js +9 -4
- package/esm/globals/validation/regularExpressions.js +7 -1
- package/esm/hooks/useIsMobile.js +12 -5
- package/esm/hooks/useScreenOrientation.js +12 -5
- package/esm/icons/General/IconApartment.js +13 -6
- package/esm/icons/General/IconArchives.js +13 -6
- package/esm/icons/General/IconArea.js +13 -6
- package/esm/icons/General/IconArrowDown.js +13 -6
- package/esm/icons/General/IconArrowLeft.js +13 -6
- package/esm/icons/General/IconArrowRight.js +13 -6
- package/esm/icons/General/IconArrowUp.js +13 -6
- package/esm/icons/General/IconAttachment.js +13 -6
- package/esm/icons/General/IconAuditorFilled.js +24 -17
- package/esm/icons/General/IconAuditorOutline.js +24 -17
- package/esm/icons/General/IconBack.js +13 -6
- package/esm/icons/General/IconBath.js +13 -6
- package/esm/icons/General/IconBblFlame.js +13 -6
- package/esm/icons/General/IconBblShield.js +13 -6
- package/esm/icons/General/IconBblWater.js +13 -6
- package/esm/icons/General/IconBellFilled.js +13 -6
- package/esm/icons/General/IconBellOutline.js +13 -6
- package/esm/icons/General/IconBlock.js +13 -6
- package/esm/icons/General/IconBoard.js +13 -6
- package/esm/icons/General/IconBookmarkFilled.js +13 -6
- package/esm/icons/General/IconBookmarkOutline.js +13 -6
- package/esm/icons/General/IconBus.js +13 -6
- package/esm/icons/General/IconCalendar.js +13 -6
- package/esm/icons/General/IconCamera.js +14 -7
- package/esm/icons/General/IconCar.js +13 -6
- package/esm/icons/General/IconCaretDown.js +13 -6
- package/esm/icons/General/IconCaretLeft.js +13 -6
- package/esm/icons/General/IconCaretRight.js +13 -6
- package/esm/icons/General/IconCaretUp.js +13 -6
- package/esm/icons/General/IconCases.js +28 -21
- package/esm/icons/General/IconCheck.js +13 -6
- package/esm/icons/General/IconCheckedFilled.js +13 -6
- package/esm/icons/General/IconCheckedOutline.js +13 -6
- package/esm/icons/General/IconChevronDown.js +13 -6
- package/esm/icons/General/IconChevronLeft.js +13 -6
- package/esm/icons/General/IconChevronRight.js +13 -6
- package/esm/icons/General/IconChoice.js +13 -6
- package/esm/icons/General/IconClose.js +13 -6
- package/esm/icons/General/IconCloseAlt.js +13 -6
- package/esm/icons/General/IconComment.js +13 -6
- package/esm/icons/General/IconCommunication.js +13 -6
- package/esm/icons/General/IconCommunicationFilled.js +13 -6
- package/esm/icons/General/IconCompanyBuilding.js +13 -6
- package/esm/icons/General/IconCompanyBuildingFilled.js +13 -6
- package/esm/icons/General/IconCompanyBuildingOutline.js +13 -6
- package/esm/icons/General/IconDashboard.js +13 -6
- package/esm/icons/General/IconDashboardFilled.js +13 -6
- package/esm/icons/General/IconDelete.js +13 -6
- package/esm/icons/General/IconDocument.js +23 -16
- package/esm/icons/General/IconDocumentFilled.js +23 -16
- package/esm/icons/General/IconDoor.js +13 -6
- package/esm/icons/General/IconDotFilled.js +13 -6
- package/esm/icons/General/IconDotOutline.js +13 -6
- package/esm/icons/General/IconDownload.js +13 -6
- package/esm/icons/General/IconDraft.js +13 -6
- package/esm/icons/General/IconEarth.js +13 -6
- package/esm/icons/General/IconEconomy.js +13 -6
- package/esm/icons/General/IconEconomyFilled.js +13 -6
- package/esm/icons/General/IconEdit.js +13 -6
- package/esm/icons/General/IconElevator.js +13 -6
- package/esm/icons/General/IconEmailMarkAsRead.js +12 -5
- package/esm/icons/General/IconErrorFilled.js +13 -6
- package/esm/icons/General/IconErrorOutline.js +13 -6
- package/esm/icons/General/IconExternalLink.js +13 -6
- package/esm/icons/General/IconEye.js +13 -6
- package/esm/icons/General/IconEyeDeny.js +13 -6
- package/esm/icons/General/IconFamily.js +13 -6
- package/esm/icons/General/IconFerry.js +13 -6
- package/esm/icons/General/IconFile.js +13 -6
- package/esm/icons/General/IconFileAdd.js +13 -6
- package/esm/icons/General/IconFileCopy.js +13 -6
- package/esm/icons/General/IconFileEdit.js +13 -6
- package/esm/icons/General/IconFileExcel.js +13 -6
- package/esm/icons/General/IconFilePDF.js +13 -6
- package/esm/icons/General/IconFileWord.js +13 -6
- package/esm/icons/General/IconFillOut.js +15 -8
- package/esm/icons/General/IconFilterList.js +13 -6
- package/esm/icons/General/IconFloor.js +13 -6
- package/esm/icons/General/IconForward.js +13 -6
- package/esm/icons/General/IconFullscreenClose.js +13 -6
- package/esm/icons/General/IconFullscreenOpen.js +13 -6
- package/esm/icons/General/IconGarage.js +13 -6
- package/esm/icons/General/IconGrid.js +13 -6
- package/esm/icons/General/IconGym.js +13 -6
- package/esm/icons/General/IconHearth.js +13 -6
- package/esm/icons/General/IconHearthOutline.js +13 -6
- package/esm/icons/General/IconHelp.js +13 -6
- package/esm/icons/General/IconHistory.js +13 -6
- package/esm/icons/General/IconHomeFilled.js +20 -13
- package/esm/icons/General/IconHomeOutline.js +20 -13
- package/esm/icons/General/IconHouse.js +13 -6
- package/esm/icons/General/IconHouseBlockFilled.js +20 -13
- package/esm/icons/General/IconHouseBlockOutline.js +20 -13
- package/esm/icons/General/IconHouseOutline.js +13 -6
- package/esm/icons/General/IconHumans.js +13 -6
- package/esm/icons/General/IconImage.js +14 -7
- package/esm/icons/General/IconImportantComment.js +13 -6
- package/esm/icons/General/IconInbox.js +13 -6
- package/esm/icons/General/IconInfoFilled.js +13 -6
- package/esm/icons/General/IconInfoOutline.js +13 -6
- package/esm/icons/General/IconJanitorFilled.js +24 -17
- package/esm/icons/General/IconJanitorOutline.js +24 -17
- package/esm/icons/General/IconJointcost.js +13 -6
- package/esm/icons/General/IconJointcost2.js +13 -6
- package/esm/icons/General/IconKey.js +13 -6
- package/esm/icons/General/IconKitchen.js +13 -6
- package/esm/icons/General/IconLabel.js +13 -6
- package/esm/icons/General/IconLeafFilled.js +23 -16
- package/esm/icons/General/IconLeafOutline.js +25 -18
- package/esm/icons/General/IconLeisureTime.js +13 -6
- package/esm/icons/General/IconLock.js +13 -6
- package/esm/icons/General/IconLockLocked.js +13 -6
- package/esm/icons/General/IconLockOpen.js +13 -6
- package/esm/icons/General/IconLookup.js +13 -6
- package/esm/icons/General/IconLookupFilled.js +13 -6
- package/esm/icons/General/IconMail.js +13 -6
- package/esm/icons/General/IconMap.js +13 -6
- package/esm/icons/General/IconMedal.js +12 -5
- package/esm/icons/General/IconMembership.js +13 -6
- package/esm/icons/General/IconMembershipFilled.js +13 -6
- package/esm/icons/General/IconMenu.js +13 -6
- package/esm/icons/General/IconMinus.js +13 -6
- package/esm/icons/General/IconMinusAlt.js +13 -6
- package/esm/icons/General/IconMinusAltFilled.js +13 -6
- package/esm/icons/General/IconMoney.js +13 -6
- package/esm/icons/General/IconParking.js +13 -6
- package/esm/icons/General/IconPaymentCard.js +13 -6
- package/esm/icons/General/IconPercent.js +12 -5
- package/esm/icons/General/IconPhone.js +13 -6
- package/esm/icons/General/IconPinned.js +13 -6
- package/esm/icons/General/IconPlus.js +13 -6
- package/esm/icons/General/IconPlusAlt.js +13 -6
- package/esm/icons/General/IconPortalUser.js +13 -6
- package/esm/icons/General/IconPrint.js +13 -6
- package/esm/icons/General/IconProfile.js +13 -6
- package/esm/icons/General/IconProfileFilled.js +13 -6
- package/esm/icons/General/IconRearrange.js +23 -16
- package/esm/icons/General/IconReciept.js +13 -6
- package/esm/icons/General/IconRedo.js +13 -6
- package/esm/icons/General/IconRefresh.js +13 -6
- package/esm/icons/General/IconReply.js +13 -6
- package/esm/icons/General/IconReplyAll.js +13 -6
- package/esm/icons/General/IconRoom.js +13 -6
- package/esm/icons/General/IconSave.js +13 -6
- package/esm/icons/General/IconSearch.js +13 -6
- package/esm/icons/General/IconSend.js +13 -6
- package/esm/icons/General/IconSettings.js +13 -6
- package/esm/icons/General/IconShopping.js +13 -6
- package/esm/icons/General/IconSign.js +13 -6
- package/esm/icons/General/IconSliders.js +13 -6
- package/esm/icons/General/IconSort.js +13 -6
- package/esm/icons/General/IconStarFilled.js +13 -6
- package/esm/icons/General/IconStarHalf.js +13 -6
- package/esm/icons/General/IconStarOutline.js +13 -6
- package/esm/icons/General/IconStore.js +13 -6
- package/esm/icons/General/IconSubway.js +13 -6
- package/esm/icons/General/IconSwitch.js +13 -6
- package/esm/icons/General/IconTrain.js +13 -6
- package/esm/icons/General/IconTram.js +13 -6
- package/esm/icons/General/IconTransport.js +13 -6
- package/esm/icons/General/IconTypeOfBuilding.js +13 -6
- package/esm/icons/General/IconTypeOfBuildingOutline.js +13 -6
- package/esm/icons/General/IconUndo.js +13 -6
- package/esm/icons/General/IconUpload.js +13 -6
- package/esm/icons/General/IconUser.js +13 -6
- package/esm/icons/General/IconUserThin.js +13 -6
- package/esm/icons/General/IconVote.js +13 -6
- package/esm/icons/General/IconWalk.js +13 -6
- package/esm/icons/General/IconWarning.js +13 -6
- package/esm/icons/General/IconWarningBell.js +13 -6
- package/esm/icons/General/IconWork.js +13 -6
- package/esm/icons/General/IconWorkFilled.js +13 -6
- package/esm/icons/General/IconZip.js +13 -6
- package/esm/icons/Icon.stories.js +393 -389
- package/esm/icons/Logos/IconAmericanExpress.js +13 -6
- package/esm/icons/Logos/IconBankAxept.js +21 -14
- package/esm/icons/Logos/IconGmail.js +15 -8
- package/esm/icons/Logos/IconMasterCard.js +18 -11
- package/esm/icons/Logos/IconOffice365.js +41 -34
- package/esm/icons/Logos/IconVisa.js +18 -11
- package/esm/icons/withIcon.js +13 -6
- package/esm/illustrations/Backgrounds/IllustrationHousesBackground.js +1228 -1221
- package/esm/illustrations/Backgrounds/IllustrationHousesBackgroundWithComposition.js +1468 -1459
- package/esm/illustrations/General/IllustrationBudget.js +66 -59
- package/esm/illustrations/General/IllustrationError.js +134 -127
- package/esm/illustrations/General/IllustrationErrorGeneric.js +121 -114
- package/esm/illustrations/General/IllustrationHighHouse.js +46 -39
- package/esm/illustrations/General/IllustrationHighHouseComposition.js +68 -61
- package/esm/illustrations/General/IllustrationHouse.js +26 -19
- package/esm/illustrations/General/IllustrationHouseComposition.js +43 -36
- package/esm/illustrations/General/IllustrationHouseMissing.js +52 -45
- package/esm/illustrations/General/IllustrationLowHouse.js +31 -24
- package/esm/illustrations/General/IllustrationLowHouseComposition.js +53 -46
- package/esm/illustrations/General/IllustrationPaperCompleted.js +71 -64
- package/esm/illustrations/General/IllustrationPaperMissing.js +77 -70
- package/esm/illustrations/General/IllustrationSemiDetachedHouse.js +27 -20
- package/esm/illustrations/General/IllustrationSemiDetachedHouseComposition.js +47 -40
- package/esm/illustrations/General/IllustrationServiceMessage.js +21 -13
- package/esm/illustrations/General/IllustrationSmallHouse.js +21 -14
- package/esm/illustrations/General/IllustrationSmallHouseComposition.js +41 -34
- package/esm/illustrations/General/IllustrationTechninalDifficulties.js +40 -32
- package/esm/illustrations/General/IllustrationTerraceBlock.js +40 -33
- package/esm/illustrations/General/IllustrationTerraceBlockComposition.js +60 -53
- package/esm/illustrations/General/IllustrationTownHouse.js +31 -24
- package/esm/illustrations/General/IllustrationTownHouseComposition.js +53 -46
- package/esm/illustrations/Illustration.stories.js +97 -90
- package/esm/illustrations/MySite/IllustrationMySiteAssociation.js +34 -27
- package/esm/illustrations/MySite/IllustrationMySiteBenefits.js +61 -54
- package/esm/illustrations/MySite/IllustrationMySiteBuilding.js +48 -41
- package/esm/illustrations/MySite/IllustrationMySiteCoffeeBook.js +43 -36
- package/esm/illustrations/MySite/IllustrationMySiteComputer.js +47 -40
- package/esm/illustrations/MySite/IllustrationMySiteCooperative.js +46 -39
- package/esm/illustrations/MySite/IllustrationMySiteDashboard.js +42 -35
- package/esm/illustrations/MySite/IllustrationMySiteGift.js +76 -69
- package/esm/illustrations/MySite/IllustrationMySiteLetterSent.js +30 -23
- package/esm/illustrations/MySite/IllustrationMySiteMailbox.js +38 -31
- package/esm/illustrations/MySite/IllustrationMySitePapers.js +67 -60
- package/esm/illustrations/MySite/IllustrationMySitePiggyBank.js +59 -52
- package/esm/illustrations/MySite/IllustrationMySiteTransfer.js +34 -27
- package/esm/illustrations/styles.js +13 -7
- package/esm/illustrations/withIllustration.js +15 -7
- package/esm/index.js +2396 -326
- package/esm/layout/Footer/Footer.stories.js +34 -27
- package/esm/layout/Footer/FooterButton/index.js +13 -5
- package/esm/layout/Footer/FooterButton/styles.js +11 -5
- package/esm/layout/Footer/FooterCol/index.js +12 -5
- package/esm/layout/Footer/FooterCol/styles.js +10 -4
- package/esm/layout/Footer/FooterGroup/index.js +12 -5
- package/esm/layout/Footer/FooterGroup/styles.js +10 -4
- package/esm/layout/Footer/FooterLabel/index.js +12 -5
- package/esm/layout/Footer/FooterLabel/styles.js +10 -4
- package/esm/layout/Footer/FooterLink/index.js +13 -5
- package/esm/layout/Footer/FooterLink/styles.js +11 -5
- package/esm/layout/Footer/index.js +15 -7
- package/esm/layout/Footer/styles.js +14 -6
- package/esm/layout/Layout/Layout.stories.js +14 -7
- package/esm/layout/Layout/index.js +12 -5
- package/esm/layout/Layout/styles.js +11 -4
- package/esm/layout/LayoutShell/LayoutShell.stories.js +28 -21
- package/esm/layout/LayoutShell/index.js +24 -15
- package/esm/layout/LayoutShell/styles.js +24 -20
- package/esm/layout/Menu/AppPicker/index.js +21 -14
- package/esm/layout/Menu/AppPicker/styles.js +18 -12
- package/esm/layout/Menu/MainMenu/index.js +13 -6
- package/esm/layout/Menu/MainMenu/styles.js +13 -6
- package/esm/layout/Menu/MenuItem/index.js +18 -11
- package/esm/layout/Menu/MenuItem/styles.js +16 -10
- package/esm/layout/Menu/MenuSpacer/index.js +12 -5
- package/esm/layout/Menu/MenuSpacer/styles.js +11 -4
- package/esm/layout/Menu/MenuTop/index.js +16 -8
- package/esm/layout/Menu/MenuTop/styles.js +17 -11
- package/esm/layout/Menu/SecondaryMenu/index.js +21 -14
- package/esm/layout/Menu/SecondaryMenu/styles.js +19 -12
- package/esm/layout/Menu/SecondaryMenuItem/index.js +16 -9
- package/esm/layout/Menu/SecondaryMenuItem/styles.js +12 -5
- package/esm/layout/Menu/Sidemenu.stories.js +93 -86
- package/esm/layout/Menu/index.js +14 -7
- package/esm/layout/Menu/styles.js +12 -5
- package/esm/layout/Submenu/Submenu.stories.js +35 -28
- package/esm/layout/Submenu/SubmenuItem/index.js +32 -22
- package/esm/layout/Submenu/SubmenuItem/styles.js +17 -10
- package/esm/layout/Submenu/SubmenuLightThemeBg/index.js +20 -13
- package/esm/layout/Submenu/index.js +45 -35
- package/esm/layout/Submenu/styles.js +30 -25
- package/esm/layout/Topbar/Topbar.stories.js +15 -8
- package/esm/layout/Topbar/index.js +12 -5
- package/esm/layout/Topbar/styles.js +9 -2
- package/esm/shared/components/SbIconGrid/index.js +15 -9
- package/esm/shared/components/VisuallyHidden/index.js +11 -5
- package/esm/shared/recharts/CustomLegend/index.js +20 -12
- package/esm/shared/recharts/CustomLegend/styles.js +14 -8
- package/esm/shared/recharts/CustomTooltip/index.js +26 -19
- package/esm/shared/recharts/CustomTooltip/styles.js +15 -10
- package/esm/utils/accountNumber.js +8 -1
- package/esm/utils/alpha.js +7 -2
- package/esm/utils/array.js +7 -1
- package/esm/utils/dates.js +25 -15
- package/esm/utils/file.js +11 -3
- package/esm/utils/format.js +18 -4
- package/esm/utils/formatGraphPrice.js +7 -2
- package/esm/utils/image.js +7 -1
- package/esm/utils/pagination.js +11 -1
- package/esm/utils/phone.js +7 -1
- package/esm/utils/removeFocusOnMouseUp.js +7 -1
- package/esm/utils/time.js +25 -12
- package/esm/utils/url.js +8 -1
- package/esm/utils/useSnorreTheme.js +15 -9
- package/esm/v2/Memberbenefits/MemberbenefitsCard/MemberbenefitsCard.stories.js +20 -14
- package/esm/v2/Memberbenefits/MemberbenefitsCard/index.js +43 -34
- package/esm/v2/Memberbenefits/MemberbenefitsCard/model.js +7 -1
- package/esm/v2/Memberbenefits/MemberbenefitsCard/styles.js +31 -35
- package/esm/v2/core/Box/Box.stories.js +31 -24
- package/esm/v2/core/Box/index.js +31 -21
- package/esm/v2/core/Box/styles.js +26 -22
- package/esm/v2/core/BoxedTable/BoxedTable.stories.js +141 -134
- package/esm/v2/core/BoxedTable/DraggableRow/index.js +20 -13
- package/esm/v2/core/BoxedTable/DraggableRow/styles.js +18 -14
- package/esm/v2/core/BoxedTable/HeaderCell/index.js +19 -11
- package/esm/v2/core/BoxedTable/HeaderCell/styles.js +13 -5
- package/esm/v2/core/BoxedTable/RowCell/index.js +14 -6
- package/esm/v2/core/BoxedTable/RowCell/styles.js +21 -18
- package/esm/v2/core/BoxedTable/TableHeader/index.js +12 -5
- package/esm/v2/core/BoxedTable/TableHeader/styles.js +10 -4
- package/esm/v2/core/BoxedTable/TableRow/index.js +27 -18
- package/esm/v2/core/BoxedTable/TableRow/styles.js +19 -16
- package/esm/v2/core/BoxedTable/index.js +24 -15
- package/esm/v2/core/BoxedTable/models.js +5 -1
- package/esm/v2/core/BoxedTable/styles.js +27 -31
- package/esm/v2/core/Button/Button.stories.js +42 -35
- package/esm/v2/core/Button/index.js +22 -14
- package/esm/v2/core/Button/styles.js +30 -31
- package/esm/v2/core/ButtonsFilter/ButtonsFilter.stories.js +13 -6
- package/esm/v2/core/ButtonsFilter/index.js +20 -13
- package/esm/v2/core/ButtonsFilter/styles.js +10 -4
- package/esm/v2/core/Chip/Chip.stories.js +25 -18
- package/esm/v2/core/Chip/index.js +21 -14
- package/esm/v2/core/Chip/styles.js +22 -17
- package/esm/v2/core/TabNav/TabContext.js +21 -12
- package/esm/v2/core/TabNav/TabNav.stories.js +85 -78
- package/esm/v2/core/TabNav/TabNavItem/index.js +36 -26
- package/esm/v2/core/TabNav/TabNavItem/styles.js +19 -13
- package/esm/v2/core/TabNav/index.js +38 -28
- package/esm/v2/core/TabNav/styles.js +21 -17
- package/esm/v2/core/TabNav/utils/useContainerDimensions.js +13 -6
- package/esm/v2/hooks/useOverflow.js +14 -8
- package/esm/v2/index.js +97 -14
- package/jest.config.js +16 -21
- package/lib/app-shell/index.js +21 -14
- package/lib/app-shell/theme.js +9 -2
- package/lib/core/Alert/Alert.stories.js +15 -8
- package/lib/core/Alert/index.js +24 -14
- package/lib/core/Alert/styles.js +15 -11
- package/lib/core/AppLoader/AppLoader.stories.js +11 -4
- package/lib/core/AppLoader/index.js +15 -7
- package/lib/core/AppLoader/styles.js +10 -5
- package/lib/core/Autocomplete/Autocomplete.stories.js +80 -73
- package/lib/core/Autocomplete/hooks/useAutocomplete.js +24 -17
- package/lib/core/Autocomplete/hooks/useHandleDimentions.js +12 -6
- package/lib/core/Autocomplete/index.interfaces.js +5 -1
- package/lib/core/Autocomplete/index.js +60 -51
- package/lib/core/Autocomplete/styles.d.ts.map +1 -1
- package/lib/core/Autocomplete/styles.js +32 -29
- package/lib/core/Banner/Banner.stories.js +33 -26
- package/lib/core/Banner/index.js +18 -10
- package/lib/core/Banner/styles.d.ts.map +1 -1
- package/lib/core/Banner/styles.js +16 -10
- package/lib/core/BarAndLineComposedChart/BarAndLineComposedChart.stories.js +15 -8
- package/lib/core/BarAndLineComposedChart/index.js +30 -23
- package/lib/core/BarAndLineComposedChart/styles.d.ts.map +1 -1
- package/lib/core/BarAndLineComposedChart/styles.js +9 -2
- package/lib/core/BarChartWithCustomizedEvent/BarChartWithCustomizedEvent.stories.js +14 -7
- package/lib/core/BarChartWithCustomizedEvent/index.js +31 -22
- package/lib/core/BarChartWithCustomizedEvent/styles.d.ts.map +1 -1
- package/lib/core/BarChartWithCustomizedEvent/styles.js +11 -4
- package/lib/core/Box/Box.stories.js +26 -19
- package/lib/core/Box/index.js +28 -18
- package/lib/core/Box/styles.d.ts.map +1 -1
- package/lib/core/Box/styles.js +21 -18
- package/lib/core/BoxedTable/BoxedTable.stories.js +141 -134
- package/lib/core/BoxedTable/DraggableRow/index.js +20 -13
- package/lib/core/BoxedTable/DraggableRow/styles.d.ts.map +1 -1
- package/lib/core/BoxedTable/DraggableRow/styles.js +18 -14
- package/lib/core/BoxedTable/HeaderCell/index.js +17 -9
- package/lib/core/BoxedTable/HeaderCell/styles.js +13 -5
- package/lib/core/BoxedTable/RowCell/index.js +14 -6
- package/lib/core/BoxedTable/RowCell/styles.js +21 -18
- package/lib/core/BoxedTable/TableHeader/index.js +12 -5
- package/lib/core/BoxedTable/TableHeader/styles.d.ts.map +1 -1
- package/lib/core/BoxedTable/TableHeader/styles.js +10 -4
- package/lib/core/BoxedTable/TableRow/index.js +27 -18
- package/lib/core/BoxedTable/TableRow/styles.d.ts.map +1 -1
- package/lib/core/BoxedTable/TableRow/styles.js +19 -16
- package/lib/core/BoxedTable/index.js +18 -11
- package/lib/core/BoxedTable/models.js +5 -1
- package/lib/core/BoxedTable/styles.d.ts.map +1 -1
- package/lib/core/BoxedTable/styles.js +22 -22
- package/lib/core/Button/Button.stories.js +29 -22
- package/lib/core/Button/index.d.ts.map +1 -1
- package/lib/core/Button/index.js +22 -14
- package/lib/core/Button/styles.js +30 -32
- package/lib/core/Calendar/Calendar.stories.js +17 -10
- package/lib/core/Calendar/CalendarEvent/index.js +35 -26
- package/lib/core/Calendar/CalendarEvent/styles.d.ts.map +1 -1
- package/lib/core/Calendar/CalendarEvent/styles.js +19 -16
- package/lib/core/Calendar/CalendarSmallEvent/index.js +34 -25
- package/lib/core/Calendar/CalendarSmallEvent/styles.d.ts.map +1 -1
- package/lib/core/Calendar/CalendarSmallEvent/styles.js +19 -16
- package/lib/core/Calendar/index.d.ts +0 -1
- package/lib/core/Calendar/index.d.ts.map +1 -1
- package/lib/core/Calendar/index.js +47 -41
- package/lib/core/Calendar/styles.d.ts.map +1 -1
- package/lib/core/Calendar/styles.js +22 -18
- package/lib/core/Calendar/util.js +11 -4
- package/lib/core/Card/Card.stories.js +29 -22
- package/lib/core/Card/index.js +17 -9
- package/lib/core/Card/styles.js +20 -21
- package/lib/core/Checkbox/Checkbox.stories.js +15 -8
- package/lib/core/Checkbox/index.js +20 -11
- package/lib/core/Checkbox/styles.js +14 -12
- package/lib/core/CollapseList/CollapseList.stories.js +27 -20
- package/lib/core/CollapseList/Item.js +23 -15
- package/lib/core/CollapseList/index.js +15 -7
- package/lib/core/CollapseList/styles.d.ts.map +1 -1
- package/lib/core/CollapseList/styles.js +14 -8
- package/lib/core/CommentsTimeline/CommentLine/index.js +25 -18
- package/lib/core/CommentsTimeline/CommentLine/styles.d.ts.map +1 -1
- package/lib/core/CommentsTimeline/CommentLine/styles.js +18 -12
- package/lib/core/CommentsTimeline/CommentsTimeline.stories.js +32 -25
- package/lib/core/CommentsTimeline/index.js +12 -5
- package/lib/core/CommentsTimeline/styles.d.ts.map +1 -1
- package/lib/core/CommentsTimeline/styles.js +10 -4
- package/lib/core/CustomText/CustomText.stories.js +14 -7
- package/lib/core/CustomText/index.js +18 -10
- package/lib/core/CustomText/styles.d.ts.map +1 -1
- package/lib/core/CustomText/styles.js +13 -8
- package/lib/core/Datepicker/Datepicker.stories.js +22 -15
- package/lib/core/Datepicker/index.js +57 -47
- package/lib/core/Datepicker/styles.d.ts.map +1 -1
- package/lib/core/Datepicker/styles.js +25 -20
- package/lib/core/DatepickerRange/DatepickerRange.stories.js +14 -7
- package/lib/core/DatepickerRange/index.js +20 -13
- package/lib/core/DatepickerRange/styles.d.ts.map +1 -1
- package/lib/core/DatepickerRange/styles.js +21 -15
- package/lib/core/Divider/index.js +13 -6
- package/lib/core/Divider/styles.js +14 -10
- package/lib/core/Dropdown/Dropdown.stories.js +23 -16
- package/lib/core/Dropdown/index.js +29 -19
- package/lib/core/Dropdown/styles.js +12 -7
- package/lib/core/DropdownMenu/DropdownMenu.stories.js +27 -20
- package/lib/core/DropdownMenu/DropdownMenuOption.js +15 -7
- package/lib/core/DropdownMenu/index.js +21 -12
- package/lib/core/DropdownMenu/styles.d.ts.map +1 -1
- package/lib/core/DropdownMenu/styles.js +15 -9
- package/lib/core/FileInput/FileInput.stories.js +20 -13
- package/lib/core/FileInput/index.js +42 -33
- package/lib/core/FileInput/styles.d.ts.map +1 -1
- package/lib/core/FileInput/styles.js +34 -36
- package/lib/core/GoogleButton/GoogleButton.stories.js +11 -4
- package/lib/core/GoogleButton/index.js +14 -7
- package/lib/core/GoogleButton/styles.d.ts.map +1 -1
- package/lib/core/GoogleButton/styles.js +10 -4
- package/lib/core/Header/Header.stories.js +18 -11
- package/lib/core/Header/index.js +14 -6
- package/lib/core/Header/styles.js +18 -12
- package/lib/core/HighlightText/HighlightText.stories.js +12 -5
- package/lib/core/HighlightText/index.js +16 -9
- package/lib/core/HighlightText/styles.d.ts.map +1 -1
- package/lib/core/HighlightText/styles.js +10 -4
- package/lib/core/Html/Html.stories.js +18 -11
- package/lib/core/Html/index.js +16 -8
- package/lib/core/Html/styles.js +15 -11
- package/lib/core/Image/Image.stories.js +15 -8
- package/lib/core/Image/index.js +19 -10
- package/lib/core/Image/styles.js +15 -11
- package/lib/core/ImagePicker/IconWithBackground.js +14 -7
- package/lib/core/ImagePicker/ImagePicker.stories.js +17 -10
- package/lib/core/ImagePicker/UploadButton.js +21 -13
- package/lib/core/ImagePicker/index.js +49 -41
- package/lib/core/ImagePicker/styles.js +24 -24
- package/lib/core/ImageViewer/ImageViewer.stories.js +11 -4
- package/lib/core/ImageViewer/index.js +45 -37
- package/lib/core/ImageViewer/styles.js +15 -12
- package/lib/core/InfoButton/InfoButton.stories.js +22 -15
- package/lib/core/InfoButton/index.js +25 -15
- package/lib/core/InfoButton/styles.d.ts.map +1 -1
- package/lib/core/InfoButton/styles.js +24 -21
- package/lib/core/Input/Input.stories.js +35 -28
- package/lib/core/Input/index.js +47 -38
- package/lib/core/Input/styles.js +28 -27
- package/lib/core/Link/Link.stories.js +19 -12
- package/lib/core/Link/index.js +21 -13
- package/lib/core/Link/styles.d.ts.map +1 -1
- package/lib/core/Link/styles.js +29 -24
- package/lib/core/List/Item.js +11 -5
- package/lib/core/List/List.stories.js +72 -65
- package/lib/core/List/index.js +23 -10
- package/lib/core/List/styles.js +20 -18
- package/lib/core/ListPager/ListPager.stories.js +11 -4
- package/lib/core/ListPager/index.js +24 -17
- package/lib/core/ListPager/styles.d.ts.map +1 -1
- package/lib/core/ListPager/styles.js +15 -9
- package/lib/core/MediaCarousel/MediaCarousel.stories.js +12 -5
- package/lib/core/MediaCarousel/index.js +30 -23
- package/lib/core/MediaCarousel/styles.d.ts.map +1 -1
- package/lib/core/MediaCarousel/styles.js +18 -13
- package/lib/core/Modal/ActionButtons/index.js +15 -8
- package/lib/core/Modal/Modal.stories.js +49 -42
- package/lib/core/Modal/index.js +51 -41
- package/lib/core/Modal/styles.d.ts.map +1 -1
- package/lib/core/Modal/styles.js +26 -22
- package/lib/core/NoticeCard/NoticeCard.stories.js +15 -8
- package/lib/core/NoticeCard/index.js +50 -41
- package/lib/core/NoticeCard/models.js +7 -1
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/index.js +24 -17
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.d.ts.map +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.js +16 -10
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/index.js +17 -8
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.d.ts.map +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.js +10 -4
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/index.js +23 -16
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.d.ts.map +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +13 -8
- package/lib/core/NoticeCard/styles.d.ts.map +1 -1
- package/lib/core/NoticeCard/styles.js +18 -13
- package/lib/core/NoticeCard/utils.js +20 -11
- package/lib/core/NotificationCounter/NotificationCounter.stories.js +15 -8
- package/lib/core/NotificationCounter/index.js +11 -5
- package/lib/core/NotificationCounter/styles.js +9 -3
- package/lib/core/NotificationsMenu/NotificationRow/index.js +18 -11
- package/lib/core/NotificationsMenu/NotificationRow/styles.d.ts.map +1 -1
- package/lib/core/NotificationsMenu/NotificationRow/styles.js +16 -11
- package/lib/core/NotificationsMenu/NotificationsMenu.stories.js +22 -15
- package/lib/core/NotificationsMenu/index.js +30 -21
- package/lib/core/NotificationsMenu/styles.d.ts.map +1 -1
- package/lib/core/NotificationsMenu/styles.js +12 -6
- package/lib/core/PieChart/ActiveShape/index.js +14 -9
- package/lib/core/PieChart/PieChart.stories.js +19 -12
- package/lib/core/PieChart/index.js +32 -23
- package/lib/core/PieChart/renderTextContent/index.js +15 -10
- package/lib/core/PieChart/styles.d.ts.map +1 -1
- package/lib/core/PieChart/styles.js +13 -7
- package/lib/core/PreemptionCard/PreemptionCard.stories.js +14 -7
- package/lib/core/PreemptionCard/index.js +45 -38
- package/lib/core/PreemptionCard/models.js +7 -1
- package/lib/core/PreemptionCard/styles.d.ts.map +1 -1
- package/lib/core/PreemptionCard/styles.js +18 -14
- package/lib/core/PreemptionCardLoading/PreemptionCardLoading.stories.js +14 -7
- package/lib/core/PreemptionCardLoading/index.js +19 -12
- package/lib/core/PreemptionCardLoading/styles.d.ts.map +1 -1
- package/lib/core/PreemptionCardLoading/styles.js +14 -10
- package/lib/core/QuillEditor/QuillEditor.stories.js +31 -24
- package/lib/core/QuillEditor/classes/LinkSanitizer.js +12 -4
- package/lib/core/QuillEditor/classes/ListItem.js +10 -3
- package/lib/core/QuillEditor/config.d.ts +3 -3
- package/lib/core/QuillEditor/config.js +8 -2
- package/lib/core/QuillEditor/index.js +61 -54
- package/lib/core/QuillEditor/models.js +5 -1
- package/lib/core/QuillEditor/styles.d.ts.map +1 -1
- package/lib/core/QuillEditor/styles.js +15 -10
- package/lib/core/Radio/Radio.stories.js +27 -20
- package/lib/core/Radio/index.js +16 -8
- package/lib/core/Radio/styles.js +13 -9
- package/lib/core/SearchFilter/SearchFilter.stories.js +36 -29
- package/lib/core/SearchFilter/index.js +53 -43
- package/lib/core/SearchFilter/styles.d.ts.map +1 -1
- package/lib/core/SearchFilter/styles.js +33 -32
- package/lib/core/SearchSelect/SearchSelect.stories.js +18 -11
- package/lib/core/SearchSelect/hooks/useSelectSearch.js +13 -7
- package/lib/core/SearchSelect/index.js +36 -26
- package/lib/core/SearchSelect/interface/IProps.js +5 -1
- package/lib/core/SearchSelect/styles.d.ts.map +1 -1
- package/lib/core/SearchSelect/styles.js +19 -17
- package/lib/core/Select/Option.js +18 -10
- package/lib/core/Select/Select.stories.js +85 -78
- package/lib/core/Select/index.js +46 -31
- package/lib/core/Select/styles.d.ts.map +1 -1
- package/lib/core/Select/styles.js +33 -33
- package/lib/core/SimpleBarChart/SimpleBarChart.stories.js +21 -14
- package/lib/core/SimpleBarChart/index.js +27 -20
- package/lib/core/SimpleBarChart/styles.d.ts.map +1 -1
- package/lib/core/SimpleBarChart/styles.js +9 -2
- package/lib/core/SimpleLineChart/SimpleLineChart.stories.js +24 -17
- package/lib/core/SimpleLineChart/index.js +25 -18
- package/lib/core/SimpleLineChart/styles.d.ts.map +1 -1
- package/lib/core/SimpleLineChart/styles.js +9 -2
- package/lib/core/Skeleton/Skeleton.stories.js +14 -7
- package/lib/core/Skeleton/index.js +14 -7
- package/lib/core/Skeleton/styles.d.ts.map +1 -1
- package/lib/core/Skeleton/styles.js +14 -7
- package/lib/core/Spinner/Spinner.stories.js +19 -12
- package/lib/core/Spinner/index.js +14 -6
- package/lib/core/Spinner/styles.js +14 -9
- package/lib/core/Stepper/MobileStep/index.js +17 -10
- package/lib/core/Stepper/MobileStep/styles.d.ts.map +1 -1
- package/lib/core/Stepper/MobileStep/styles.js +20 -18
- package/lib/core/Stepper/Step/index.js +31 -25
- package/lib/core/Stepper/Step/styles.d.ts.map +1 -1
- package/lib/core/Stepper/Step/styles.js +18 -13
- package/lib/core/Stepper/Stepper.stories.js +11 -4
- package/lib/core/Stepper/index.js +27 -18
- package/lib/core/Stepper/styles.d.ts.map +1 -1
- package/lib/core/Stepper/styles.js +13 -7
- package/lib/core/TabBar/TabBar.stories.js +19 -12
- package/lib/core/TabBar/TabItem/index.js +14 -7
- package/lib/core/TabBar/TabItem/styles.d.ts.map +1 -1
- package/lib/core/TabBar/TabItem/styles.js +10 -4
- package/lib/core/TabBar/index.js +12 -5
- package/lib/core/TabBar/styles.d.ts.map +1 -1
- package/lib/core/TabBar/styles.js +10 -4
- package/lib/core/TabNav/TabContext.js +21 -12
- package/lib/core/TabNav/TabNav.stories.js +85 -78
- package/lib/core/TabNav/TabNavItem/index.js +36 -26
- package/lib/core/TabNav/TabNavItem/styles.d.ts.map +1 -1
- package/lib/core/TabNav/TabNavItem/styles.js +18 -11
- package/lib/core/TabNav/index.js +38 -28
- package/lib/core/TabNav/styles.d.ts.map +1 -1
- package/lib/core/TabNav/styles.js +23 -18
- package/lib/core/TabNav/utils/useContainerDimensions.js +13 -6
- package/lib/core/Table/Cell.js +14 -6
- package/lib/core/Table/Row.js +13 -6
- package/lib/core/Table/Table.stories.js +41 -34
- package/lib/core/Table/index.js +28 -10
- package/lib/core/Table/styles.d.ts.map +1 -1
- package/lib/core/Table/styles.js +27 -27
- package/lib/core/Tag/Tag.stories.js +28 -21
- package/lib/core/Tag/index.js +22 -14
- package/lib/core/Tag/styles.js +22 -21
- package/lib/core/Text/Text.stories.js +25 -18
- package/lib/core/Text/index.js +14 -6
- package/lib/core/Text/styles.js +25 -28
- package/lib/core/Textarea/Textarea.stories.js +15 -8
- package/lib/core/Textarea/index.js +24 -15
- package/lib/core/Textarea/styles.d.ts.map +1 -1
- package/lib/core/Textarea/styles.js +20 -15
- package/lib/core/Timeline/Timeline.stories.js +17 -10
- package/lib/core/Timeline/TimelineStep/index.js +21 -13
- package/lib/core/Timeline/TimelineStep/styles.d.ts.map +1 -1
- package/lib/core/Timeline/TimelineStep/styles.js +19 -14
- package/lib/core/Timeline/index.js +12 -5
- package/lib/core/Timeline/styles.d.ts.map +1 -1
- package/lib/core/Timeline/styles.js +10 -4
- package/lib/core/Timepicker/Timepicker.stories.js +25 -18
- package/lib/core/Timepicker/index.js +35 -27
- package/lib/core/Timepicker/styles.d.ts.map +1 -1
- package/lib/core/Timepicker/styles.js +19 -16
- package/lib/core/Tooltip/Tooptip.stories.js +13 -6
- package/lib/core/Tooltip/index.js +24 -16
- package/lib/core/Tooltip/styles.js +10 -5
- package/lib/core/UnitIllustration/index.js +25 -19
- package/lib/core/UserMenu/UserMenu.stories.js +33 -26
- package/lib/core/UserMenu/UserMenuOption.js +15 -7
- package/lib/core/UserMenu/index.js +39 -30
- package/lib/core/UserMenu/styles.d.ts.map +1 -1
- package/lib/core/UserMenu/styles.js +23 -19
- package/lib/core/Video/Video.stories.js +20 -13
- package/lib/core/Video/index.js +19 -11
- package/lib/core/Video/styles.d.ts.map +1 -1
- package/lib/core/Video/styles.js +10 -4
- package/lib/core/YearWheel/YearWheel.stories.js +15 -8
- package/lib/core/YearWheel/index.js +65 -57
- package/lib/core/YearWheel/styles.d.ts.map +1 -1
- package/lib/core/YearWheel/styles.js +15 -7
- package/lib/core/private/ButtonOrLink.js +18 -9
- package/lib/core/private/preemption.js +9 -1
- package/lib/core/utils/debounce.js +10 -4
- package/lib/enums/Keyboard.js +7 -2
- package/lib/global.d.js +3 -2
- package/lib/globals/styles/breakpoints.js +7 -1
- package/lib/globals/styles/paddings.js +7 -1
- package/lib/globals/styles/styles.js +9 -4
- package/lib/globals/validation/regularExpressions.js +7 -1
- package/lib/hooks/useIsMobile.js +12 -5
- package/lib/hooks/useScreenOrientation.js +12 -5
- package/lib/icons/General/IconApartment.js +13 -6
- package/lib/icons/General/IconArchives.js +13 -6
- package/lib/icons/General/IconArea.js +13 -6
- package/lib/icons/General/IconArrowDown.js +13 -6
- package/lib/icons/General/IconArrowLeft.js +13 -6
- package/lib/icons/General/IconArrowRight.js +13 -6
- package/lib/icons/General/IconArrowUp.js +13 -6
- package/lib/icons/General/IconAttachment.js +13 -6
- package/lib/icons/General/IconAuditorFilled.js +24 -17
- package/lib/icons/General/IconAuditorOutline.js +24 -17
- package/lib/icons/General/IconBack.js +13 -6
- package/lib/icons/General/IconBath.js +13 -6
- package/lib/icons/General/IconBblFlame.js +13 -6
- package/lib/icons/General/IconBblShield.js +13 -6
- package/lib/icons/General/IconBblWater.js +13 -6
- package/lib/icons/General/IconBellFilled.js +13 -6
- package/lib/icons/General/IconBellOutline.js +13 -6
- package/lib/icons/General/IconBlock.js +13 -6
- package/lib/icons/General/IconBoard.js +13 -6
- package/lib/icons/General/IconBookmarkFilled.js +13 -6
- package/lib/icons/General/IconBookmarkOutline.js +13 -6
- package/lib/icons/General/IconBus.js +13 -6
- package/lib/icons/General/IconCalendar.js +13 -6
- package/lib/icons/General/IconCamera.js +14 -7
- package/lib/icons/General/IconCar.js +13 -6
- package/lib/icons/General/IconCaretDown.js +13 -6
- package/lib/icons/General/IconCaretLeft.js +13 -6
- package/lib/icons/General/IconCaretRight.js +13 -6
- package/lib/icons/General/IconCaretUp.js +13 -6
- package/lib/icons/General/IconCases.js +28 -21
- package/lib/icons/General/IconCheck.js +13 -6
- package/lib/icons/General/IconCheckedFilled.js +13 -6
- package/lib/icons/General/IconCheckedOutline.js +13 -6
- package/lib/icons/General/IconChevronDown.js +13 -6
- package/lib/icons/General/IconChevronLeft.js +13 -6
- package/lib/icons/General/IconChevronRight.js +13 -6
- package/lib/icons/General/IconChoice.js +13 -6
- package/lib/icons/General/IconClose.js +13 -6
- package/lib/icons/General/IconCloseAlt.js +13 -6
- package/lib/icons/General/IconComment.js +13 -6
- package/lib/icons/General/IconCommunication.js +13 -6
- package/lib/icons/General/IconCommunicationFilled.js +13 -6
- package/lib/icons/General/IconCompanyBuilding.js +13 -6
- package/lib/icons/General/IconCompanyBuildingFilled.js +13 -6
- package/lib/icons/General/IconCompanyBuildingOutline.js +13 -6
- package/lib/icons/General/IconDashboard.js +13 -6
- package/lib/icons/General/IconDashboardFilled.js +13 -6
- package/lib/icons/General/IconDelete.js +13 -6
- package/lib/icons/General/IconDocument.js +23 -16
- package/lib/icons/General/IconDocumentFilled.js +23 -16
- package/lib/icons/General/IconDoor.js +13 -6
- package/lib/icons/General/IconDotFilled.js +13 -6
- package/lib/icons/General/IconDotOutline.js +13 -6
- package/lib/icons/General/IconDownload.js +13 -6
- package/lib/icons/General/IconDraft.js +13 -6
- package/lib/icons/General/IconEarth.js +13 -6
- package/lib/icons/General/IconEconomy.js +13 -6
- package/lib/icons/General/IconEconomyFilled.js +13 -6
- package/lib/icons/General/IconEdit.js +13 -6
- package/lib/icons/General/IconElevator.js +13 -6
- package/lib/icons/General/IconEmailMarkAsRead.js +12 -5
- package/lib/icons/General/IconErrorFilled.js +13 -6
- package/lib/icons/General/IconErrorOutline.js +13 -6
- package/lib/icons/General/IconExternalLink.js +13 -6
- package/lib/icons/General/IconEye.js +13 -6
- package/lib/icons/General/IconEyeDeny.js +13 -6
- package/lib/icons/General/IconFamily.js +13 -6
- package/lib/icons/General/IconFerry.js +13 -6
- package/lib/icons/General/IconFile.js +13 -6
- package/lib/icons/General/IconFileAdd.js +13 -6
- package/lib/icons/General/IconFileCopy.js +13 -6
- package/lib/icons/General/IconFileEdit.js +13 -6
- package/lib/icons/General/IconFileExcel.js +13 -6
- package/lib/icons/General/IconFilePDF.js +13 -6
- package/lib/icons/General/IconFileWord.js +13 -6
- package/lib/icons/General/IconFillOut.js +15 -8
- package/lib/icons/General/IconFilterList.js +13 -6
- package/lib/icons/General/IconFloor.js +13 -6
- package/lib/icons/General/IconForward.js +13 -6
- package/lib/icons/General/IconFullscreenClose.js +13 -6
- package/lib/icons/General/IconFullscreenOpen.js +13 -6
- package/lib/icons/General/IconGarage.js +13 -6
- package/lib/icons/General/IconGrid.js +13 -6
- package/lib/icons/General/IconGym.js +13 -6
- package/lib/icons/General/IconHearth.js +13 -6
- package/lib/icons/General/IconHearthOutline.js +13 -6
- package/lib/icons/General/IconHelp.js +13 -6
- package/lib/icons/General/IconHistory.js +13 -6
- package/lib/icons/General/IconHomeFilled.js +20 -13
- package/lib/icons/General/IconHomeOutline.js +20 -13
- package/lib/icons/General/IconHouse.js +13 -6
- package/lib/icons/General/IconHouseBlockFilled.js +20 -13
- package/lib/icons/General/IconHouseBlockOutline.js +20 -13
- package/lib/icons/General/IconHouseOutline.js +13 -6
- package/lib/icons/General/IconHumans.js +13 -6
- package/lib/icons/General/IconImage.js +14 -7
- package/lib/icons/General/IconImportantComment.js +13 -6
- package/lib/icons/General/IconInbox.js +13 -6
- package/lib/icons/General/IconInfoFilled.js +13 -6
- package/lib/icons/General/IconInfoOutline.js +13 -6
- package/lib/icons/General/IconJanitorFilled.js +24 -17
- package/lib/icons/General/IconJanitorOutline.js +24 -17
- package/lib/icons/General/IconJointcost.js +13 -6
- package/lib/icons/General/IconJointcost2.js +13 -6
- package/lib/icons/General/IconKey.js +13 -6
- package/lib/icons/General/IconKitchen.js +13 -6
- package/lib/icons/General/IconLabel.js +13 -6
- package/lib/icons/General/IconLeafFilled.js +23 -16
- package/lib/icons/General/IconLeafOutline.js +25 -18
- package/lib/icons/General/IconLeisureTime.js +13 -6
- package/lib/icons/General/IconLock.js +13 -6
- package/lib/icons/General/IconLockLocked.js +13 -6
- package/lib/icons/General/IconLockOpen.js +13 -6
- package/lib/icons/General/IconLookup.js +13 -6
- package/lib/icons/General/IconLookupFilled.js +13 -6
- package/lib/icons/General/IconMail.js +13 -6
- package/lib/icons/General/IconMap.js +13 -6
- package/lib/icons/General/IconMedal.js +12 -5
- package/lib/icons/General/IconMembership.js +13 -6
- package/lib/icons/General/IconMembershipFilled.js +13 -6
- package/lib/icons/General/IconMenu.js +13 -6
- package/lib/icons/General/IconMinus.js +13 -6
- package/lib/icons/General/IconMinusAlt.js +13 -6
- package/lib/icons/General/IconMinusAltFilled.js +13 -6
- package/lib/icons/General/IconMoney.js +13 -6
- package/lib/icons/General/IconParking.js +13 -6
- package/lib/icons/General/IconPaymentCard.js +13 -6
- package/lib/icons/General/IconPercent.js +12 -5
- package/lib/icons/General/IconPhone.js +13 -6
- package/lib/icons/General/IconPinned.js +13 -6
- package/lib/icons/General/IconPlus.js +13 -6
- package/lib/icons/General/IconPlusAlt.js +13 -6
- package/lib/icons/General/IconPortalUser.js +13 -6
- package/lib/icons/General/IconPrint.js +13 -6
- package/lib/icons/General/IconProfile.js +13 -6
- package/lib/icons/General/IconProfileFilled.js +13 -6
- package/lib/icons/General/IconRearrange.js +23 -16
- package/lib/icons/General/IconReciept.js +13 -6
- package/lib/icons/General/IconRedo.js +13 -6
- package/lib/icons/General/IconRefresh.js +13 -6
- package/lib/icons/General/IconReply.js +13 -6
- package/lib/icons/General/IconReplyAll.js +13 -6
- package/lib/icons/General/IconRoom.js +13 -6
- package/lib/icons/General/IconSave.js +13 -6
- package/lib/icons/General/IconSearch.js +13 -6
- package/lib/icons/General/IconSend.js +13 -6
- package/lib/icons/General/IconSettings.js +13 -6
- package/lib/icons/General/IconShopping.js +13 -6
- package/lib/icons/General/IconSign.js +13 -6
- package/lib/icons/General/IconSliders.js +13 -6
- package/lib/icons/General/IconSort.js +13 -6
- package/lib/icons/General/IconStarFilled.js +13 -6
- package/lib/icons/General/IconStarHalf.js +13 -6
- package/lib/icons/General/IconStarOutline.js +13 -6
- package/lib/icons/General/IconStore.js +13 -6
- package/lib/icons/General/IconSubway.js +13 -6
- package/lib/icons/General/IconSwitch.js +13 -6
- package/lib/icons/General/IconTrain.js +13 -6
- package/lib/icons/General/IconTram.js +13 -6
- package/lib/icons/General/IconTransport.js +13 -6
- package/lib/icons/General/IconTypeOfBuilding.js +13 -6
- package/lib/icons/General/IconTypeOfBuildingOutline.js +13 -6
- package/lib/icons/General/IconUndo.js +13 -6
- package/lib/icons/General/IconUpload.js +13 -6
- package/lib/icons/General/IconUser.js +13 -6
- package/lib/icons/General/IconUserThin.js +13 -6
- package/lib/icons/General/IconVote.js +13 -6
- package/lib/icons/General/IconWalk.js +13 -6
- package/lib/icons/General/IconWarning.js +13 -6
- package/lib/icons/General/IconWarningBell.js +13 -6
- package/lib/icons/General/IconWork.js +13 -6
- package/lib/icons/General/IconWorkFilled.js +13 -6
- package/lib/icons/General/IconZip.js +13 -6
- package/lib/icons/Icon.stories.js +393 -389
- package/lib/icons/Logos/IconAmericanExpress.js +13 -6
- package/lib/icons/Logos/IconBankAxept.js +21 -14
- package/lib/icons/Logos/IconGmail.js +15 -8
- package/lib/icons/Logos/IconMasterCard.js +18 -11
- package/lib/icons/Logos/IconOffice365.js +41 -34
- package/lib/icons/Logos/IconVisa.js +18 -11
- package/lib/icons/withIcon.js +13 -6
- package/lib/illustrations/Backgrounds/IllustrationHousesBackground.js +1228 -1221
- package/lib/illustrations/Backgrounds/IllustrationHousesBackgroundWithComposition.js +1468 -1459
- package/lib/illustrations/General/IllustrationBudget.js +66 -59
- package/lib/illustrations/General/IllustrationError.js +134 -127
- package/lib/illustrations/General/IllustrationErrorGeneric.js +121 -114
- package/lib/illustrations/General/IllustrationHighHouse.js +46 -39
- package/lib/illustrations/General/IllustrationHighHouseComposition.js +68 -61
- package/lib/illustrations/General/IllustrationHouse.js +26 -19
- package/lib/illustrations/General/IllustrationHouseComposition.js +43 -36
- package/lib/illustrations/General/IllustrationHouseMissing.js +52 -45
- package/lib/illustrations/General/IllustrationLowHouse.js +31 -24
- package/lib/illustrations/General/IllustrationLowHouseComposition.js +53 -46
- package/lib/illustrations/General/IllustrationPaperCompleted.js +71 -64
- package/lib/illustrations/General/IllustrationPaperMissing.js +77 -70
- package/lib/illustrations/General/IllustrationSemiDetachedHouse.js +27 -20
- package/lib/illustrations/General/IllustrationSemiDetachedHouseComposition.js +47 -40
- package/lib/illustrations/General/IllustrationServiceMessage.js +21 -13
- package/lib/illustrations/General/IllustrationSmallHouse.js +21 -14
- package/lib/illustrations/General/IllustrationSmallHouseComposition.js +41 -34
- package/lib/illustrations/General/IllustrationTechninalDifficulties.js +40 -32
- package/lib/illustrations/General/IllustrationTerraceBlock.js +40 -33
- package/lib/illustrations/General/IllustrationTerraceBlockComposition.js +60 -53
- package/lib/illustrations/General/IllustrationTownHouse.js +31 -24
- package/lib/illustrations/General/IllustrationTownHouseComposition.js +53 -46
- package/lib/illustrations/Illustration.stories.js +97 -90
- package/lib/illustrations/MySite/IllustrationMySiteAssociation.js +34 -27
- package/lib/illustrations/MySite/IllustrationMySiteBenefits.js +61 -54
- package/lib/illustrations/MySite/IllustrationMySiteBuilding.js +48 -41
- package/lib/illustrations/MySite/IllustrationMySiteCoffeeBook.js +43 -36
- package/lib/illustrations/MySite/IllustrationMySiteComputer.js +47 -40
- package/lib/illustrations/MySite/IllustrationMySiteCooperative.js +46 -39
- package/lib/illustrations/MySite/IllustrationMySiteDashboard.js +42 -35
- package/lib/illustrations/MySite/IllustrationMySiteGift.js +76 -69
- package/lib/illustrations/MySite/IllustrationMySiteLetterSent.js +30 -23
- package/lib/illustrations/MySite/IllustrationMySiteMailbox.js +38 -31
- package/lib/illustrations/MySite/IllustrationMySitePapers.js +67 -60
- package/lib/illustrations/MySite/IllustrationMySitePiggyBank.js +59 -52
- package/lib/illustrations/MySite/IllustrationMySiteTransfer.js +34 -27
- package/lib/illustrations/styles.js +13 -7
- package/lib/illustrations/withIllustration.js +15 -7
- package/lib/index.js +2396 -326
- package/lib/layout/Footer/Footer.stories.js +34 -27
- package/lib/layout/Footer/FooterButton/index.js +13 -5
- package/lib/layout/Footer/FooterButton/styles.d.ts.map +1 -1
- package/lib/layout/Footer/FooterButton/styles.js +11 -5
- package/lib/layout/Footer/FooterCol/index.js +12 -5
- package/lib/layout/Footer/FooterCol/styles.d.ts.map +1 -1
- package/lib/layout/Footer/FooterCol/styles.js +10 -4
- package/lib/layout/Footer/FooterGroup/index.js +12 -5
- package/lib/layout/Footer/FooterGroup/styles.d.ts.map +1 -1
- package/lib/layout/Footer/FooterGroup/styles.js +10 -4
- package/lib/layout/Footer/FooterLabel/index.js +12 -5
- package/lib/layout/Footer/FooterLabel/styles.d.ts.map +1 -1
- package/lib/layout/Footer/FooterLabel/styles.js +10 -4
- package/lib/layout/Footer/FooterLink/index.js +13 -5
- package/lib/layout/Footer/FooterLink/styles.d.ts.map +1 -1
- package/lib/layout/Footer/FooterLink/styles.js +11 -5
- package/lib/layout/Footer/index.js +15 -7
- package/lib/layout/Footer/styles.d.ts.map +1 -1
- package/lib/layout/Footer/styles.js +14 -6
- package/lib/layout/Layout/Layout.stories.js +14 -7
- package/lib/layout/Layout/index.js +12 -5
- package/lib/layout/Layout/styles.d.ts.map +1 -1
- package/lib/layout/Layout/styles.js +11 -4
- package/lib/layout/LayoutShell/LayoutShell.stories.js +28 -21
- package/lib/layout/LayoutShell/index.js +24 -15
- package/lib/layout/LayoutShell/styles.d.ts.map +1 -1
- package/lib/layout/LayoutShell/styles.js +24 -20
- package/lib/layout/Menu/AppPicker/index.js +21 -14
- package/lib/layout/Menu/AppPicker/styles.d.ts.map +1 -1
- package/lib/layout/Menu/AppPicker/styles.js +18 -12
- package/lib/layout/Menu/MainMenu/index.js +13 -6
- package/lib/layout/Menu/MainMenu/styles.d.ts.map +1 -1
- package/lib/layout/Menu/MainMenu/styles.js +13 -6
- package/lib/layout/Menu/MenuItem/index.js +18 -11
- package/lib/layout/Menu/MenuItem/styles.d.ts.map +1 -1
- package/lib/layout/Menu/MenuItem/styles.js +16 -10
- package/lib/layout/Menu/MenuSpacer/index.js +12 -5
- package/lib/layout/Menu/MenuSpacer/styles.d.ts.map +1 -1
- package/lib/layout/Menu/MenuSpacer/styles.js +11 -4
- package/lib/layout/Menu/MenuTop/index.js +16 -8
- package/lib/layout/Menu/MenuTop/styles.d.ts.map +1 -1
- package/lib/layout/Menu/MenuTop/styles.js +17 -11
- package/lib/layout/Menu/SecondaryMenu/index.js +21 -14
- package/lib/layout/Menu/SecondaryMenu/styles.d.ts.map +1 -1
- package/lib/layout/Menu/SecondaryMenu/styles.js +19 -12
- package/lib/layout/Menu/SecondaryMenuItem/index.js +16 -9
- package/lib/layout/Menu/SecondaryMenuItem/styles.js +12 -5
- package/lib/layout/Menu/Sidemenu.stories.js +93 -86
- package/lib/layout/Menu/index.js +14 -7
- package/lib/layout/Menu/styles.d.ts.map +1 -1
- package/lib/layout/Menu/styles.js +12 -5
- package/lib/layout/Submenu/Submenu.stories.js +35 -28
- package/lib/layout/Submenu/SubmenuItem/index.js +32 -22
- package/lib/layout/Submenu/SubmenuItem/styles.js +17 -10
- package/lib/layout/Submenu/SubmenuLightThemeBg/index.js +20 -13
- package/lib/layout/Submenu/index.js +45 -35
- package/lib/layout/Submenu/styles.d.ts.map +1 -1
- package/lib/layout/Submenu/styles.js +30 -25
- package/lib/layout/Topbar/Topbar.stories.js +15 -8
- package/lib/layout/Topbar/index.js +12 -5
- package/lib/layout/Topbar/styles.js +9 -2
- package/lib/shared/components/SbIconGrid/index.js +15 -9
- package/lib/shared/components/VisuallyHidden/index.d.ts.map +1 -1
- package/lib/shared/components/VisuallyHidden/index.js +11 -5
- package/lib/shared/recharts/CustomLegend/index.js +20 -12
- package/lib/shared/recharts/CustomLegend/styles.d.ts.map +1 -1
- package/lib/shared/recharts/CustomLegend/styles.js +14 -8
- package/lib/shared/recharts/CustomTooltip/index.js +26 -19
- package/lib/shared/recharts/CustomTooltip/styles.d.ts.map +1 -1
- package/lib/shared/recharts/CustomTooltip/styles.js +15 -10
- package/lib/utils/accountNumber.js +8 -1
- package/lib/utils/alpha.js +7 -2
- package/lib/utils/array.js +7 -1
- package/lib/utils/dates.js +25 -15
- package/lib/utils/file.js +11 -3
- package/lib/utils/format.js +18 -4
- package/lib/utils/formatGraphPrice.js +7 -2
- package/lib/utils/image.js +7 -1
- package/lib/utils/pagination.js +11 -1
- package/lib/utils/phone.js +7 -1
- package/lib/utils/removeFocusOnMouseUp.js +7 -1
- package/lib/utils/time.js +25 -12
- package/lib/utils/url.js +8 -1
- package/lib/utils/useSnorreTheme.js +15 -9
- package/lib/v2/Memberbenefits/MemberbenefitsCard/MemberbenefitsCard.stories.js +20 -14
- package/lib/v2/Memberbenefits/MemberbenefitsCard/index.js +43 -34
- package/lib/v2/Memberbenefits/MemberbenefitsCard/model.js +7 -1
- package/lib/v2/Memberbenefits/MemberbenefitsCard/styles.d.ts.map +1 -1
- package/lib/v2/Memberbenefits/MemberbenefitsCard/styles.js +31 -35
- package/lib/v2/core/Box/Box.stories.js +31 -24
- package/lib/v2/core/Box/index.js +31 -21
- package/lib/v2/core/Box/styles.d.ts.map +1 -1
- package/lib/v2/core/Box/styles.js +26 -22
- package/lib/v2/core/BoxedTable/BoxedTable.stories.js +141 -134
- package/lib/v2/core/BoxedTable/DraggableRow/index.js +20 -13
- package/lib/v2/core/BoxedTable/DraggableRow/styles.d.ts.map +1 -1
- package/lib/v2/core/BoxedTable/DraggableRow/styles.js +18 -14
- package/lib/v2/core/BoxedTable/HeaderCell/index.js +19 -11
- package/lib/v2/core/BoxedTable/HeaderCell/styles.js +13 -5
- package/lib/v2/core/BoxedTable/RowCell/index.js +14 -6
- package/lib/v2/core/BoxedTable/RowCell/styles.js +21 -18
- package/lib/v2/core/BoxedTable/TableHeader/index.js +12 -5
- package/lib/v2/core/BoxedTable/TableHeader/styles.d.ts.map +1 -1
- package/lib/v2/core/BoxedTable/TableHeader/styles.js +10 -4
- package/lib/v2/core/BoxedTable/TableRow/index.js +27 -18
- package/lib/v2/core/BoxedTable/TableRow/styles.d.ts.map +1 -1
- package/lib/v2/core/BoxedTable/TableRow/styles.js +19 -16
- package/lib/v2/core/BoxedTable/index.js +24 -15
- package/lib/v2/core/BoxedTable/models.js +5 -1
- package/lib/v2/core/BoxedTable/styles.d.ts.map +1 -1
- package/lib/v2/core/BoxedTable/styles.js +27 -31
- package/lib/v2/core/Button/Button.stories.js +42 -35
- package/lib/v2/core/Button/index.d.ts.map +1 -1
- package/lib/v2/core/Button/index.js +22 -14
- package/lib/v2/core/Button/styles.js +30 -31
- package/lib/v2/core/ButtonsFilter/ButtonsFilter.stories.js +13 -6
- package/lib/v2/core/ButtonsFilter/index.js +20 -13
- package/lib/v2/core/ButtonsFilter/styles.d.ts.map +1 -1
- package/lib/v2/core/ButtonsFilter/styles.js +10 -4
- package/lib/v2/core/Chip/Chip.stories.js +25 -18
- package/lib/v2/core/Chip/index.js +21 -14
- package/lib/v2/core/Chip/styles.d.ts.map +1 -1
- package/lib/v2/core/Chip/styles.js +22 -17
- package/lib/v2/core/TabNav/TabContext.js +21 -12
- package/lib/v2/core/TabNav/TabNav.stories.js +85 -78
- package/lib/v2/core/TabNav/TabNavItem/index.js +36 -26
- package/lib/v2/core/TabNav/TabNavItem/styles.d.ts.map +1 -1
- package/lib/v2/core/TabNav/TabNavItem/styles.js +19 -13
- package/lib/v2/core/TabNav/index.js +38 -28
- package/lib/v2/core/TabNav/styles.d.ts.map +1 -1
- package/lib/v2/core/TabNav/styles.js +21 -17
- package/lib/v2/core/TabNav/utils/useContainerDimensions.js +13 -6
- package/lib/v2/hooks/useOverflow.js +14 -8
- package/lib/v2/index.js +97 -14
- package/package.json +14 -5
@@ -1,167 +1,174 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = exports.WithInfoButton = exports.Width = exports.SelectNative = exports.SelectDefault = exports.Primary10 = exports.OptionsWidth = exports.Opacity08 = exports.MaxHeight = exports.Input = exports.Icon = exports.Disabled = void 0;
|
7
|
+
var _addonActions = require("@storybook/addon-actions");
|
8
|
+
var _ = _interopRequireDefault(require("."));
|
9
|
+
var _Option = _interopRequireDefault(require("./Option"));
|
10
|
+
var _IconTypeOfBuilding = _interopRequireDefault(require("../../icons/General/IconTypeOfBuilding"));
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
13
|
+
var _default = exports.default = {
|
7
14
|
title: 'Core/Select',
|
8
|
-
component:
|
15
|
+
component: _.default
|
9
16
|
};
|
10
|
-
|
11
|
-
render: () => /*#__PURE__*/
|
17
|
+
const SelectDefault = exports.SelectDefault = {
|
18
|
+
render: () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_.default, {
|
12
19
|
text: "Sorter etter",
|
13
|
-
onChange: action('onChange'),
|
14
|
-
children: [/*#__PURE__*/
|
20
|
+
onChange: (0, _addonActions.action)('onChange'),
|
21
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
15
22
|
disabled: true,
|
16
23
|
value: "1",
|
17
24
|
children: "Option 1"
|
18
|
-
}), /*#__PURE__*/
|
25
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
19
26
|
value: "2",
|
20
27
|
children: "Option 2"
|
21
|
-
}), /*#__PURE__*/
|
28
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
22
29
|
value: "3",
|
23
30
|
children: "Option 3"
|
24
31
|
})]
|
25
32
|
}),
|
26
33
|
name: 'Select'
|
27
34
|
};
|
28
|
-
|
29
|
-
render: () => /*#__PURE__*/
|
35
|
+
const Width = exports.Width = {
|
36
|
+
render: () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_.default, {
|
30
37
|
text: "Sorter etter",
|
31
38
|
type: "primary10",
|
32
39
|
width: "400px",
|
33
|
-
onChange: action('onChange'),
|
34
|
-
children: [/*#__PURE__*/
|
40
|
+
onChange: (0, _addonActions.action)('onChange'),
|
41
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
35
42
|
disabled: true,
|
36
43
|
value: "1",
|
37
44
|
children: "Option 1"
|
38
|
-
}), /*#__PURE__*/
|
45
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
39
46
|
value: "2",
|
40
47
|
children: "Option 2"
|
41
|
-
}), /*#__PURE__*/
|
48
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
42
49
|
value: "3",
|
43
50
|
children: "Option 3"
|
44
51
|
})]
|
45
52
|
}),
|
46
53
|
name: 'Width'
|
47
54
|
};
|
48
|
-
|
49
|
-
render: () => /*#__PURE__*/
|
55
|
+
const OptionsWidth = exports.OptionsWidth = {
|
56
|
+
render: () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_.default, {
|
50
57
|
text: "Sorter etter",
|
51
58
|
optionsWidth: "400px",
|
52
|
-
onChange: action('onChange'),
|
53
|
-
children: [/*#__PURE__*/
|
59
|
+
onChange: (0, _addonActions.action)('onChange'),
|
60
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
54
61
|
disabled: true,
|
55
62
|
value: "1",
|
56
63
|
children: "Option 1"
|
57
|
-
}), /*#__PURE__*/
|
64
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
58
65
|
value: "2",
|
59
66
|
children: "Option 2"
|
60
|
-
}), /*#__PURE__*/
|
67
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
61
68
|
value: "3",
|
62
69
|
children: "Option 3"
|
63
70
|
})]
|
64
71
|
}),
|
65
72
|
name: 'Options width'
|
66
73
|
};
|
67
|
-
|
68
|
-
render: () => /*#__PURE__*/
|
74
|
+
const SelectNative = exports.SelectNative = {
|
75
|
+
render: () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_.default, {
|
69
76
|
text: "Sorter etter",
|
70
77
|
native: true,
|
71
|
-
onChange: action('onChange'),
|
72
|
-
children: [/*#__PURE__*/
|
78
|
+
onChange: (0, _addonActions.action)('onChange'),
|
79
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
73
80
|
disabled: true,
|
74
81
|
value: "1",
|
75
82
|
children: "Option 1"
|
76
|
-
}), /*#__PURE__*/
|
83
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
77
84
|
value: "2",
|
78
85
|
children: "Option 2"
|
79
|
-
}), /*#__PURE__*/
|
86
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
80
87
|
value: "3",
|
81
88
|
children: "Option 3"
|
82
89
|
})]
|
83
90
|
}),
|
84
91
|
name: 'Select - native'
|
85
92
|
};
|
86
|
-
|
87
|
-
render: () => /*#__PURE__*/
|
93
|
+
const Input = exports.Input = {
|
94
|
+
render: () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_.default, {
|
88
95
|
text: "Velg en",
|
89
96
|
label: "Label",
|
90
97
|
input: true,
|
91
|
-
onChange: action('onChange'),
|
92
|
-
children: [/*#__PURE__*/
|
98
|
+
onChange: (0, _addonActions.action)('onChange'),
|
99
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
93
100
|
disabled: true,
|
94
101
|
value: "1",
|
95
102
|
children: "Option 1"
|
96
|
-
}), /*#__PURE__*/
|
103
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
97
104
|
value: "2",
|
98
105
|
children: "Option 2"
|
99
|
-
}), /*#__PURE__*/
|
106
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
100
107
|
value: "3",
|
101
108
|
children: "Option 3"
|
102
109
|
})]
|
103
110
|
}),
|
104
111
|
name: 'Input'
|
105
112
|
};
|
106
|
-
|
107
|
-
render: () => /*#__PURE__*/
|
113
|
+
const Icon = exports.Icon = {
|
114
|
+
render: () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_.default, {
|
108
115
|
text: "Velg en",
|
109
116
|
label: "Label",
|
110
|
-
icon: /*#__PURE__*/
|
117
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconTypeOfBuilding.default, {
|
111
118
|
primary: true
|
112
119
|
}),
|
113
|
-
onChange: action('onChange'),
|
114
|
-
children: [/*#__PURE__*/
|
120
|
+
onChange: (0, _addonActions.action)('onChange'),
|
121
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
115
122
|
disabled: true,
|
116
123
|
value: "1",
|
117
124
|
children: "Option 1"
|
118
|
-
}), /*#__PURE__*/
|
125
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
119
126
|
value: "2",
|
120
127
|
children: "Option 2"
|
121
|
-
}), /*#__PURE__*/
|
128
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
122
129
|
value: "3",
|
123
130
|
children: "Option 3"
|
124
131
|
})]
|
125
132
|
}),
|
126
133
|
name: 'Icon'
|
127
134
|
};
|
128
|
-
|
129
|
-
render: () => /*#__PURE__*/
|
135
|
+
const Primary10 = exports.Primary10 = {
|
136
|
+
render: () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_.default, {
|
130
137
|
text: "Background with 10 opacity",
|
131
138
|
type: "primary10",
|
132
|
-
onChange: action('onChange'),
|
133
|
-
children: [/*#__PURE__*/
|
139
|
+
onChange: (0, _addonActions.action)('onChange'),
|
140
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
134
141
|
disabled: true,
|
135
142
|
value: "1",
|
136
143
|
children: "Option 1"
|
137
|
-
}), /*#__PURE__*/
|
144
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
138
145
|
value: "2",
|
139
146
|
children: "Option 2"
|
140
|
-
}), /*#__PURE__*/
|
147
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
141
148
|
value: "3",
|
142
149
|
children: "Option 3"
|
143
150
|
})]
|
144
151
|
}),
|
145
152
|
name: 'Primary10'
|
146
153
|
};
|
147
|
-
|
148
|
-
render: () => /*#__PURE__*/
|
154
|
+
const Opacity08 = exports.Opacity08 = {
|
155
|
+
render: () => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
149
156
|
style: {
|
150
157
|
backgroundColor: '#04112D',
|
151
158
|
padding: '2em'
|
152
159
|
},
|
153
|
-
children: /*#__PURE__*/
|
160
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_.default, {
|
154
161
|
text: "Opacity08",
|
155
162
|
type: "opacity08",
|
156
|
-
onChange: action('onChange'),
|
157
|
-
children: [/*#__PURE__*/
|
163
|
+
onChange: (0, _addonActions.action)('onChange'),
|
164
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
158
165
|
disabled: true,
|
159
166
|
value: "1",
|
160
167
|
children: "Option 1"
|
161
|
-
}), /*#__PURE__*/
|
168
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
162
169
|
value: "2",
|
163
170
|
children: "Option 2"
|
164
|
-
}), /*#__PURE__*/
|
171
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
165
172
|
value: "3",
|
166
173
|
children: "Option 3"
|
167
174
|
})]
|
@@ -169,37 +176,37 @@ export const Opacity08 = {
|
|
169
176
|
}),
|
170
177
|
name: 'Opacity08'
|
171
178
|
};
|
172
|
-
|
173
|
-
render: () => /*#__PURE__*/
|
179
|
+
const MaxHeight = exports.MaxHeight = {
|
180
|
+
render: () => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
174
181
|
style: {
|
175
182
|
backgroundColor: '#04112D',
|
176
183
|
padding: '2em'
|
177
184
|
},
|
178
|
-
children: /*#__PURE__*/
|
185
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_.default, {
|
179
186
|
text: "maxHeight",
|
180
187
|
type: "opacity08",
|
181
|
-
onChange: action('onChange'),
|
188
|
+
onChange: (0, _addonActions.action)('onChange'),
|
182
189
|
maxHeight: "100px",
|
183
|
-
children: [/*#__PURE__*/
|
190
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
184
191
|
disabled: true,
|
185
192
|
value: "1",
|
186
193
|
children: "Option 1"
|
187
|
-
}), /*#__PURE__*/
|
194
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
188
195
|
value: "2",
|
189
196
|
children: "Option 2"
|
190
|
-
}), /*#__PURE__*/
|
197
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
191
198
|
value: "3",
|
192
199
|
children: "Option 3"
|
193
|
-
}), /*#__PURE__*/
|
200
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
194
201
|
value: "3",
|
195
202
|
children: "Option 4"
|
196
|
-
}), /*#__PURE__*/
|
203
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
197
204
|
value: "3",
|
198
205
|
children: "Option 5"
|
199
|
-
}), /*#__PURE__*/
|
206
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
200
207
|
value: "3",
|
201
208
|
children: "Option 6"
|
202
|
-
}), /*#__PURE__*/
|
209
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
203
210
|
value: "3",
|
204
211
|
children: "Option 7"
|
205
212
|
})]
|
@@ -207,36 +214,36 @@ export const MaxHeight = {
|
|
207
214
|
}),
|
208
215
|
name: 'MaxHeight'
|
209
216
|
};
|
210
|
-
|
211
|
-
render: () => /*#__PURE__*/
|
217
|
+
const Disabled = exports.Disabled = {
|
218
|
+
render: () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_.default, {
|
212
219
|
text: "Im disabled",
|
213
220
|
input: true,
|
214
221
|
disabled: true,
|
215
|
-
children: [/*#__PURE__*/
|
222
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
216
223
|
value: "1",
|
217
224
|
children: "Option 1"
|
218
|
-
}), /*#__PURE__*/
|
225
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
219
226
|
value: "2",
|
220
227
|
children: "Option 2"
|
221
228
|
})]
|
222
229
|
}),
|
223
230
|
name: 'Disabled'
|
224
231
|
};
|
225
|
-
|
226
|
-
render: () => /*#__PURE__*/
|
232
|
+
const WithInfoButton = exports.WithInfoButton = {
|
233
|
+
render: () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_.default, {
|
227
234
|
text: "Velg en",
|
228
235
|
label: "With info button",
|
229
236
|
input: true,
|
230
|
-
onChange: action('onChange'),
|
237
|
+
onChange: (0, _addonActions.action)('onChange'),
|
231
238
|
info: "Ullamco nisi excepteur quis ut sint ipsum deserunt dolor. Nulla cillum exercitation labore fugiat nulla do duis irure dolore.",
|
232
|
-
children: [/*#__PURE__*/
|
239
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
233
240
|
disabled: true,
|
234
241
|
value: "1",
|
235
242
|
children: "Option 1"
|
236
|
-
}), /*#__PURE__*/
|
243
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
237
244
|
value: "2",
|
238
245
|
children: "Option 2"
|
239
|
-
}), /*#__PURE__*/
|
246
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Option.default, {
|
240
247
|
value: "3",
|
241
248
|
children: "Option 3"
|
242
249
|
})]
|
package/esm/core/Select/index.js
CHANGED
@@ -1,14 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
Object.defineProperty(exports, "Option", {
|
7
|
+
enumerable: true,
|
8
|
+
get: function () {
|
9
|
+
return _Option.default;
|
10
|
+
}
|
11
|
+
});
|
12
|
+
exports.default = void 0;
|
13
|
+
var _react = _interopRequireWildcard(require("react"));
|
14
|
+
var _Option = _interopRequireDefault(require("./Option"));
|
15
|
+
var _styles = require("./styles");
|
16
|
+
var _InfoButton = _interopRequireDefault(require("../InfoButton"));
|
17
|
+
var _IconHelp = _interopRequireDefault(require("../../icons/General/IconHelp"));
|
18
|
+
var _Button = _interopRequireDefault(require("../Button"));
|
19
|
+
var _IconChevronDown = _interopRequireDefault(require("../../icons/General/IconChevronDown"));
|
20
|
+
var _List = _interopRequireDefault(require("../List"));
|
21
|
+
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
22
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
23
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
24
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
1
25
|
/** @jsxImportSource @emotion/react */
|
2
|
-
|
3
|
-
import Option from './Option';
|
4
|
-
import { SelectWrapper, OptionsWrapper, styles, StyledLabel } from './styles';
|
5
|
-
import InfoButton from '../InfoButton';
|
6
|
-
import IconHelp from '../../icons/General/IconHelp';
|
7
|
-
import Button from '../Button';
|
8
|
-
import IconChevronDown from '../../icons/General/IconChevronDown';
|
9
|
-
import List from '../List';
|
10
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
11
|
-
export { Option };
|
26
|
+
|
12
27
|
const Select = ({
|
13
28
|
input,
|
14
29
|
icon,
|
@@ -30,8 +45,8 @@ const Select = ({
|
|
30
45
|
infoPlacement = 'left',
|
31
46
|
...props
|
32
47
|
}) => {
|
33
|
-
const ref = /*#__PURE__*/createRef();
|
34
|
-
const [open, toggleOpen] = useState(false);
|
48
|
+
const ref = /*#__PURE__*/(0, _react.createRef)();
|
49
|
+
const [open, toggleOpen] = (0, _react.useState)(false);
|
35
50
|
const onClick = function () {
|
36
51
|
toggleOpen(!open && !disabled);
|
37
52
|
props.onOpenChange?.(!open);
|
@@ -40,13 +55,13 @@ const Select = ({
|
|
40
55
|
toggleOpen(open);
|
41
56
|
props.onOpenChange?.(open);
|
42
57
|
};
|
43
|
-
useEffect(() => {
|
58
|
+
(0, _react.useEffect)(() => {
|
44
59
|
if (closeKey) {
|
45
60
|
handleOpen(false);
|
46
61
|
}
|
47
62
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
48
63
|
}, [closeKey]);
|
49
|
-
useEffect(() => {
|
64
|
+
(0, _react.useEffect)(() => {
|
50
65
|
const handleClickOutside = e => {
|
51
66
|
const node = ref.current;
|
52
67
|
if (node && node.contains(e.target)) {
|
@@ -73,28 +88,28 @@ const Select = ({
|
|
73
88
|
handleOpen(false);
|
74
89
|
}
|
75
90
|
};
|
76
|
-
const Label =
|
91
|
+
const Label = (0, _jsxRuntime.jsx)(_styles.StyledLabel, {
|
77
92
|
withInfo: Boolean(info),
|
78
93
|
children: label
|
79
94
|
});
|
80
|
-
const NonNative =
|
95
|
+
const NonNative = (0, _jsxRuntime.jsxs)(_styles.SelectWrapper, {
|
81
96
|
ref: ref,
|
82
97
|
className: className,
|
83
|
-
css: theme => [styles.default, input && styles.input(theme), input && open && styles.open(theme), type === 'primary10' && styles.primary10(theme), icon && styles.withIcon, type === 'opacity08' && styles.opacity08(theme), width && styles.width(width), maxHeight && styles.maxHeight(maxHeight), customStyle && customStyle, open && customOpenstyle && customOpenstyle, disabled && styles.disabled(theme)],
|
98
|
+
css: theme => [_styles.styles.default, input && _styles.styles.input(theme), input && open && _styles.styles.open(theme), type === 'primary10' && _styles.styles.primary10(theme), icon && _styles.styles.withIcon, type === 'opacity08' && _styles.styles.opacity08(theme), width && _styles.styles.width(width), maxHeight && _styles.styles.maxHeight(maxHeight), customStyle && customStyle, open && customOpenstyle && customOpenstyle, disabled && _styles.styles.disabled(theme)],
|
84
99
|
"aria-expanded": open,
|
85
100
|
"aria-label": label ? label : 'Select',
|
86
|
-
children: [input && label && Label, info &&
|
87
|
-
css: styles.infoButton,
|
88
|
-
children:
|
89
|
-
icon:
|
101
|
+
children: [input && label && Label, info && (0, _jsxRuntime.jsx)("span", {
|
102
|
+
css: _styles.styles.infoButton,
|
103
|
+
children: (0, _jsxRuntime.jsx)(_InfoButton.default, {
|
104
|
+
icon: (0, _jsxRuntime.jsx)(_IconHelp.default, {
|
90
105
|
primary: true
|
91
106
|
}),
|
92
107
|
place: infoPlacement,
|
93
108
|
children: info
|
94
109
|
})
|
95
|
-
}),
|
110
|
+
}), (0, _jsxRuntime.jsx)(_Button.default, {
|
96
111
|
nostyle: true,
|
97
|
-
afterIcon:
|
112
|
+
afterIcon: (0, _jsxRuntime.jsx)(_IconChevronDown.default, {
|
98
113
|
flipVertical: open,
|
99
114
|
size: 14
|
100
115
|
}),
|
@@ -105,15 +120,15 @@ const Select = ({
|
|
105
120
|
trackingEvent: trackingEvent,
|
106
121
|
tabIndex: disabled ? -1 : undefined,
|
107
122
|
children: props.selectedValue ? props.selectedValue : props.text || ''
|
108
|
-
}),
|
109
|
-
css: [input && styles.inputstyle(!!label), optionsWidth && styles.optionsWidth(optionsWidth), process.env.NODE_ENV === "production" ? "" : ";label:NonNative;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL1NlbGVjdC9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUxRIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL1NlbGVjdC9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeEltcG9ydFNvdXJjZSBAZW1vdGlvbi9yZWFjdCAqL1xuaW1wb3J0IFJlYWN0LCB7XG4gIFJlYWN0Tm9kZSxcbiAgUmVhY3RFbGVtZW50LFxuICB1c2VTdGF0ZSxcbiAgY3JlYXRlUmVmLFxuICB1c2VFZmZlY3QsXG59IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgU2VyaWFsaXplZFN0eWxlcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuaW1wb3J0IE9wdGlvbiBmcm9tICcuL09wdGlvbidcbmltcG9ydCB7IFNlbGVjdFdyYXBwZXIsIE9wdGlvbnNXcmFwcGVyLCBzdHlsZXMsIFN0eWxlZExhYmVsIH0gZnJvbSAnLi9zdHlsZXMnXG5pbXBvcnQgSW5mb0J1dHRvbiBmcm9tICcuLi9JbmZvQnV0dG9uJ1xuaW1wb3J0IEljb25IZWxwIGZyb20gJy4uLy4uL2ljb25zL0dlbmVyYWwvSWNvbkhlbHAnXG5pbXBvcnQgQnV0dG9uIGZyb20gJy4uL0J1dHRvbidcbmltcG9ydCBJY29uQ2hldnJvbkRvd24gZnJvbSAnLi4vLi4vaWNvbnMvR2VuZXJhbC9JY29uQ2hldnJvbkRvd24nXG5pbXBvcnQgTGlzdCBmcm9tICcuLi9MaXN0J1xuXG5leHBvcnQgeyBPcHRpb24gfVxu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d9XG4gICAgPlxuICAgICAge2lucHV0ICYmIGxhYmVsICYmIExhYmVsfVxuICAgICAge2luZm8gJiYgKFxuICAgICAgICA8c3BhbiBjc3M9e3N0eWxlcy5pbmZvQnV0dG9ufT5cbiAgICAgICAgICA8SW5mb0J1dHRvbiBpY29uPXs8SWNvbkhlbHAgcHJpbWFyeSAvPn0gcGxhY2U9e2luZm9QbGFjZW1lbnR9PlxuICAgICAgICAgICAge2luZm99XG4gICAgICAgICAgPC9JbmZvQnV0dG9uPlxuICAgICAgICA8L3NwYW4+XG4gICAgICApfVxuICAgICAgPEJ1dHRvblxuICAgICAgICBub3N0eWxlXG4gICAgICAgIGFmdGVySWNvbj17PEljb25DaGV2cm9uRG93biBmbGlwVmVydGljYWw9e29wZW59IHNpemU9ezE0fSAvPn1cbiAgICAgICAgb25DbGljaz17b25DbGlja31cbiAgICAgICAgYmVmb3JlSWNvbj17aWNvbn1cbiAgICAgICAgYXV0b0ZvY3VzPXtmb2N1c31cbiAgICAgICAgdHJhY2tpbmdOYW1lPXt0cmFja2luZ05hbWV9XG4gICAgICAgIHRyYWNraW5nRXZlbnQ9e3RyYWNraW5nRXZlbnR9XG4gICAgICAgIHRhYkluZGV4PXtkaXNhYmxlZCA/IC0xIDogdW5kZWZpbmVkfVxuICAgICAgPlxuICAgICAgICB7cHJvcHMuc2VsZWN0ZWRWYWx1ZSA/IHByb3BzLnNlbGVjdGVkVmFsdWUgOiBwcm9wcy50ZXh0IHx8ICcnfVxuICAgICAgPC9CdXR0b24+XG4gICAgICA8T3B0aW9uc1dyYXBwZXJcbiAgICAgICAgY3NzPXtbXG4gICAgICAgICAgaW5wdXQgJiYgc3R5bGVzLmlucHV0c3R5bGUoISFsYWJlbCksXG4gICAgICAgICAgb3B0aW9uc1dpZHRoICYmIHN0eWxlcy5vcHRpb25zV2lkdGgob3B0aW9uc1dpZHRoKSxcbiAgICAgICAgXX1cbiAgICAgID5cbiAgICAgICAge29wZW4gPyAoXG4gICAgICAgICAgPExpc3Qgc2VsZWN0TGlzdD5cbiAgICAgICAgICAgIHtwcm9wcy5jaGlsZHJlblxuICAgICAgICAgICAgICAuZmlsdGVyKCh4KSA9PiB4KVxuICAgICAgICAgICAgICAubWFwKChjaGlsZCwga2V5KSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKCFjaGlsZCkge1xuICAgICAgICAgICAgICAgICAgcmV0dXJuIG51bGxcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcmV0dXJuIFJlYWN0LmNsb25lRWxlbWVudChjaGlsZCBhcyBSZWFjdEVsZW1lbnQsIHtcbiAgICAgICAgICAgICAgICAgIG9uQ2hhbmdlOiBvbkNoYW5nZSxcbiAgICAgICAgICAgICAgICAgIGtleSxcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICB9KX1cbiAgICAgICAgICA8L0xpc3Q+XG4gICAgICAgICkgOiBudWxsfVxuICAgICAgPC9PcHRpb25zV3JhcHBlcj5cbiAgICA8L1NlbGVjdFdyYXBwZXI+XG4gIClcblxuICBjb25zdCBOYXRpdmUgPSAoXG4gICAgPHNlbGVjdFxuICAgICAgY2xhc3NOYW1lPXtjbGFzc05hbWV9XG4gICAgICBjc3M9eyh0aGVtZSkgPT4gW1xuICAgICAgICBzdHlsZXMuZGVmYXVsdCxcbiAgICAgICAgaW5wdXQgJiYgc3R5bGVzLmlucHV0KHRoZW1lKSxcbiAgICAgICAgaW5wdXQgJiYgb3BlbiAmJiBzdHlsZXMub3Blbih0aGVtZSksXG4gICAgICAgIHR5cGUgPT09ICdwcmltYXJ5MTAnICYmIHN0eWxlcy5wcmltYXJ5MTAodGhlbWUpLFxuICAgICAgICBpY29uICYmIHN0eWxlcy53aXRoSWNvbixcbiAgICAgIF19XG4gICAgICB2YWx1ZT17cHJvcHMuc2VsZWN0ZWRWYWx1ZSA/IHByb3BzLnNlbGVjdGVkVmFsdWUgOiBwcm9wcy50ZXh0IHx8ICcnfVxuICAgICAgb25DaGFuZ2U9eyhlKSA9PiBvbkNoYW5nZShlLnRhcmdldC52YWx1ZSl9XG4gICAgPlxuICAgICAge3Byb3BzLmNoaWxkcmVuXG4gICAgICAgIC5maWx0ZXIoKHgpID0+IHgpXG4gICAgICAgIC5tYXAoKGNoaWxkOiBhbnksIGtleTogYW55KSA9PiB7XG4gICAgICAgICAgaWYgKCFjaGlsZCkge1xuICAgICAgICAgICAgcmV0dXJuIG51bGxcbiAgICAgICAgICB9XG4gICAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICAgIDxvcHRpb24ga2V5PXtrZXl9IHZhbHVlPXtjaGlsZC5wcm9wcy52YWx1ZX0+XG4gICAgICAgICAgICAgIHtjaGlsZC5wcm9wcy5jaGlsZHJlbn1cbiAgICAgICAgICAgIDwvb3B0aW9uPlxuICAgICAgICAgIClcbiAgICAgICAgfSl9XG4gICAgPC9zZWxlY3Q+XG4gIClcblxuICByZXR1cm4gbmF0aXZlID8gTmF0aXZlIDogTm9uTmF0aXZlXG59XG5cbmV4cG9ydCBkZWZhdWx0IFNlbGVjdFxuIl19 */"],
|
110
|
-
children: open ?
|
123
|
+
}), (0, _jsxRuntime.jsx)(_styles.OptionsWrapper, {
|
124
|
+
css: [input && _styles.styles.inputstyle(!!label), optionsWidth && _styles.styles.optionsWidth(optionsWidth), process.env.NODE_ENV === "production" ? "" : ";label:NonNative;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL1NlbGVjdC9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUxRIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL1NlbGVjdC9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeEltcG9ydFNvdXJjZSBAZW1vdGlvbi9yZWFjdCAqL1xuaW1w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lwVmVydGljYWw9e29wZW59IHNpemU9ezE0fSAvPn1cbiAgICAgICAgb25DbGljaz17b25DbGlja31cbiAgICAgICAgYmVmb3JlSWNvbj17aWNvbn1cbiAgICAgICAgYXV0b0ZvY3VzPXtmb2N1c31cbiAgICAgICAgdHJhY2tpbmdOYW1lPXt0cmFja2luZ05hbWV9XG4gICAgICAgIHRyYWNraW5nRXZlbnQ9e3RyYWNraW5nRXZlbnR9XG4gICAgICAgIHRhYkluZGV4PXtkaXNhYmxlZCA/IC0xIDogdW5kZWZpbmVkfVxuICAgICAgPlxuICAgICAgICB7cHJvcHMuc2VsZWN0ZWRWYWx1ZSA/IHByb3BzLnNlbGVjdGVkVmFsdWUgOiBwcm9wcy50ZXh0IHx8ICcnfVxuICAgICAgPC9CdXR0b24+XG4gICAgICA8T3B0aW9uc1dyYXBwZXJcbiAgICAgICAgY3NzPXtbXG4gICAgICAgICAgaW5wdXQgJiYgc3R5bGVzLmlucHV0c3R5bGUoISFsYWJlbCksXG4gICAgICAgICAgb3B0aW9uc1dpZHRoICYmIHN0eWxlcy5vcHRpb25zV2lkdGgob3B0aW9uc1dpZHRoKSxcbiAgICAgICAgXX1cbiAgICAgID5cbiAgICAgICAge29wZW4gPyAoXG4gICAgICAgICAgPExpc3Qgc2VsZWN0TGlzdD5cbiAgICAgICAgICAgIHtwcm9wcy5jaGlsZHJlblxuICAgICAgICAgICAgICAuZmlsdGVyKCh4KSA9PiB4KVxuICAgICAgICAgICAgICAubWFwKChjaGlsZCwga2V5KSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKCFjaGlsZCkge1xuICAgICAgICAgICAgICAgICAgcmV0dXJuIG51bGxcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcmV0dXJuIFJlYWN0LmNsb25lRWxlbWVudChjaGlsZCBhcyBSZWFjdEVsZW1lbnQsIHtcbiAgICAgICAgICAgICAgICAgIG9uQ2hhbmdlOiBvbkNoYW5nZSxcbiAgICAgICAgICAgICAg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cbiAgICAgICAgICAgIDwvb3B0aW9uPlxuICAgICAgICAgIClcbiAgICAgICAgfSl9XG4gICAgPC9zZWxlY3Q+XG4gIClcblxuICByZXR1cm4gbmF0aXZlID8gTmF0aXZlIDogTm9uTmF0aXZlXG59XG5cbmV4cG9ydCBkZWZhdWx0IFNlbGVjdFxuIl19 */"],
|
125
|
+
children: open ? (0, _jsxRuntime.jsx)(_List.default, {
|
111
126
|
selectList: true,
|
112
127
|
children: props.children.filter(x => x).map((child, key) => {
|
113
128
|
if (!child) {
|
114
129
|
return null;
|
115
130
|
}
|
116
|
-
return /*#__PURE__*/
|
131
|
+
return /*#__PURE__*/_react.default.cloneElement(child, {
|
117
132
|
onChange: onChange,
|
118
133
|
key
|
119
134
|
});
|
@@ -121,16 +136,16 @@ const Select = ({
|
|
121
136
|
}) : null
|
122
137
|
})]
|
123
138
|
});
|
124
|
-
const Native =
|
139
|
+
const Native = (0, _jsxRuntime.jsx)("select", {
|
125
140
|
className: className,
|
126
|
-
css: theme => [styles.default, input && styles.input(theme), input && open && styles.open(theme), type === 'primary10' && styles.primary10(theme), icon && styles.withIcon],
|
141
|
+
css: theme => [_styles.styles.default, input && _styles.styles.input(theme), input && open && _styles.styles.open(theme), type === 'primary10' && _styles.styles.primary10(theme), icon && _styles.styles.withIcon],
|
127
142
|
value: props.selectedValue ? props.selectedValue : props.text || '',
|
128
143
|
onChange: e => onChange(e.target.value),
|
129
144
|
children: props.children.filter(x => x).map((child, key) => {
|
130
145
|
if (!child) {
|
131
146
|
return null;
|
132
147
|
}
|
133
|
-
return
|
148
|
+
return (0, _jsxRuntime.jsx)("option", {
|
134
149
|
value: child.props.value,
|
135
150
|
children: child.props.children
|
136
151
|
}, key);
|
@@ -138,4 +153,4 @@ const Select = ({
|
|
138
153
|
});
|
139
154
|
return native ? Native : NonNative;
|
140
155
|
};
|
141
|
-
|
156
|
+
var _default = exports.default = Select;
|