@bbl-digital/snorre 2.2.99 → 2.2.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.husky/_/husky.sh +30 -30
- package/.prettierrc +6 -6
- package/.vscode/settings.json +3 -3
- package/README.md +3 -3
- package/dist/bundle.js +1090 -757
- package/esm/app-shell/index.js +1 -1
- package/esm/core/Alert/styles.js +6 -6
- package/esm/core/AppLoader/styles.js +1 -1
- package/esm/core/Autocomplete/index.js +247 -0
- package/esm/core/Autocomplete/styles.js +58 -0
- package/esm/core/Autocomplete/utils/useHandleOptionsHeight.js +16 -0
- package/esm/core/Banner/styles.js +4 -4
- package/esm/core/BarAndLineComposedChart/styles.js +1 -1
- package/esm/core/BarChartWithCustomizedEvent/styles.js +1 -1
- package/esm/core/Box/styles.js +7 -7
- package/esm/core/BoxedTable/HeaderCell/styles.js +2 -2
- package/esm/core/BoxedTable/RowCell/index.js +1 -1
- package/esm/core/BoxedTable/RowCell/styles.js +9 -9
- package/esm/core/BoxedTable/TableHeader/styles.js +1 -1
- package/esm/core/BoxedTable/TableRow/styles.js +8 -8
- package/esm/core/BoxedTable/styles.js +8 -8
- package/esm/core/Button/styles.js +18 -18
- package/esm/core/Calendar/CalendarEvent/styles.js +5 -5
- package/esm/core/Calendar/CalendarSmallEvent/styles.js +5 -5
- package/esm/core/Calendar/styles.js +6 -6
- package/esm/core/Card/styles.js +11 -11
- package/esm/core/Checkbox/styles.js +5 -5
- package/esm/core/CollapseList/styles.js +2 -2
- package/esm/core/CommentsTimeline/CommentLine/styles.js +4 -4
- package/esm/core/CommentsTimeline/styles.js +1 -1
- package/esm/core/CustomText/styles.js +2 -2
- package/esm/core/Datepicker/styles.js +8 -8
- package/esm/core/Divider/styles.js +5 -5
- package/esm/core/Dropdown/styles.js +3 -3
- package/esm/core/DropdownMenu/styles.js +3 -3
- package/esm/core/Editor/styles.js +4 -4
- package/esm/core/EditorOld/index.js +4 -4
- package/esm/core/EditorOld/styles.js +6 -6
- package/esm/core/Header/styles.js +7 -7
- package/esm/core/HighlightText/styles.js +1 -1
- package/esm/core/Html/styles.js +6 -6
- package/esm/core/Image/styles.js +3 -3
- package/esm/core/InfoButton/styles.js +9 -9
- package/esm/core/Input/styles.js +14 -14
- package/esm/core/Link/styles.js +9 -9
- package/esm/core/List/Item.js +1 -1
- package/esm/core/List/styles.js +11 -11
- package/esm/core/ListPager/styles.js +3 -3
- package/esm/core/Modal/index.js +7 -4
- package/esm/core/Modal/styles.js +8 -8
- package/esm/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.js +4 -4
- package/esm/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.js +1 -1
- package/esm/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +3 -3
- package/esm/core/NoticeCard/styles.js +4 -4
- package/esm/core/NotificationsMenu/NotificationBell/styles.js +2 -2
- package/esm/core/NotificationsMenu/NotificationRow/styles.js +1 -1
- package/esm/core/NotificationsMenu/styles.js +2 -2
- package/esm/core/PieChart/styles.js +2 -2
- package/esm/core/PreemptionCard/index.js +1 -1
- package/esm/core/PreemptionCard/styles.js +3 -3
- package/esm/core/PreemptionCardLoading/styles.js +3 -3
- package/esm/core/Radio/styles.js +3 -3
- package/esm/core/Select/index.js +1 -1
- package/esm/core/Select/styles.js +15 -15
- package/esm/core/SimpleBarChart/CustomLegend/index.js +27 -0
- package/esm/core/SimpleBarChart/CustomLegend/styles.js +25 -0
- package/esm/core/SimpleBarChart/CustomTooltip/index.js +45 -0
- package/esm/core/SimpleBarChart/CustomTooltip/styles.js +39 -0
- package/esm/core/SimpleBarChart/SimpleBarChart.data.js +49 -0
- package/esm/core/SimpleBarChart/styles.js +1 -1
- package/esm/core/SimpleLineChart/styles.js +1 -1
- package/esm/core/Skeleton/styles.js +4 -4
- package/esm/core/Spinner/styles.js +5 -5
- package/esm/core/TabBar/TabItem/styles.js +1 -1
- package/esm/core/TabBar/styles.js +1 -1
- package/esm/core/TabNav/TabNavItem/styles.js +2 -2
- package/esm/core/TabNav/styles.js +7 -7
- package/esm/core/Table/styles.js +16 -16
- package/esm/core/Tag/styles.js +12 -12
- package/esm/core/Text/styles.js +14 -14
- package/esm/core/Textarea/styles.js +6 -6
- package/esm/core/Timeline/TimelineStep/styles.js +6 -6
- package/esm/core/Timeline/styles.js +1 -1
- package/esm/core/Timepicker/styles.js +6 -6
- package/esm/core/UnitIllustration/index.js +9 -9
- package/esm/core/UserMenu/styles.js +7 -7
- package/esm/core/YearWheel/styles.js +3 -3
- package/esm/icons/General/IconFullscreenClose.js +15 -0
- package/esm/icons/General/IconFullscreenOpen.js +15 -0
- package/esm/illustrations/styles.js +2 -2
- package/esm/index.js +4 -1
- package/esm/layout/Footer/FooterButton/styles.js +1 -1
- package/esm/layout/Footer/FooterCol/styles.js +1 -1
- package/esm/layout/Footer/FooterGroup/styles.js +1 -1
- package/esm/layout/Footer/FooterLabel/styles.js +1 -1
- package/esm/layout/Footer/FooterLink/styles.js +1 -1
- package/esm/layout/Footer/styles.js +2 -2
- package/esm/layout/Layout/styles.js +1 -1
- package/esm/layout/LayoutShell/styles.js +10 -10
- package/esm/layout/Menu/AppPicker/styles.js +3 -3
- package/esm/layout/Menu/MainMenu/styles.js +1 -1
- package/esm/layout/Menu/MenuItem/styles.js +2 -2
- package/esm/layout/Menu/MenuSpacer/styles.js +1 -1
- package/esm/layout/Menu/MenuTop/styles.js +3 -3
- package/esm/layout/Menu/SecondaryMenu/styles.js +4 -4
- package/esm/layout/Menu/SecondaryMenuItem/styles.js +1 -1
- package/esm/layout/Menu/styles.js +1 -1
- package/esm/layout/Submenu/SubmenuItem/styles.js +3 -3
- package/esm/layout/Submenu/styles.js +10 -10
- package/esm/layout/Topbar/styles.js +1 -1
- package/esm/shared/recharts/CustomLegend/styles.js +2 -2
- package/esm/shared/recharts/CustomTooltip/styles.js +3 -3
- package/esm/utils/format.js +6 -6
- package/esm/utils/time.js +14 -14
- package/infrastructure/azure-pipelines.yml +29 -29
- package/jest.config.js +33 -33
- package/lib/app-shell/index.d.ts +8 -8
- package/lib/app-shell/index.js +1 -1
- package/lib/app-shell/theme.d.ts +122 -122
- package/lib/core/Alert/index.d.ts +21 -21
- package/lib/core/Alert/styles.d.ts +11 -11
- package/lib/core/Alert/styles.js +6 -6
- package/lib/core/AppLoader/index.d.ts +8 -8
- package/lib/core/AppLoader/styles.d.ts +6 -6
- package/lib/core/AppLoader/styles.js +1 -1
- package/lib/core/Autocomplete/index.d.ts +69 -0
- package/lib/core/Autocomplete/index.d.ts.map +1 -0
- package/lib/core/Autocomplete/index.js +247 -0
- package/lib/core/Autocomplete/styles.d.ts +21 -0
- package/lib/core/Autocomplete/styles.d.ts.map +1 -0
- package/lib/core/Autocomplete/styles.js +58 -0
- package/lib/core/Autocomplete/utils/useHandleOptionsHeight.d.ts +7 -0
- package/lib/core/Autocomplete/utils/useHandleOptionsHeight.d.ts.map +1 -0
- package/lib/core/Autocomplete/utils/useHandleOptionsHeight.js +16 -0
- package/lib/core/Banner/index.d.ts +18 -18
- package/lib/core/Banner/styles.d.ts +17 -17
- package/lib/core/Banner/styles.js +4 -4
- package/lib/core/BarAndLineComposedChart/index.d.ts +56 -56
- package/lib/core/BarAndLineComposedChart/styles.d.ts +8 -8
- package/lib/core/BarAndLineComposedChart/styles.js +1 -1
- package/lib/core/BarChartWithCustomizedEvent/index.d.ts +55 -55
- package/lib/core/BarChartWithCustomizedEvent/styles.d.ts +9 -9
- package/lib/core/BarChartWithCustomizedEvent/styles.js +1 -1
- package/lib/core/Box/index.d.ts +25 -25
- package/lib/core/Box/styles.d.ts +39 -39
- package/lib/core/Box/styles.js +7 -7
- package/lib/core/BoxedTable/HeaderCell/index.d.ts +22 -22
- package/lib/core/BoxedTable/HeaderCell/styles.d.ts +3 -3
- package/lib/core/BoxedTable/HeaderCell/styles.js +2 -2
- package/lib/core/BoxedTable/RowCell/index.d.ts +24 -24
- package/lib/core/BoxedTable/RowCell/index.js +1 -1
- package/lib/core/BoxedTable/RowCell/styles.d.ts +12 -12
- package/lib/core/BoxedTable/RowCell/styles.js +9 -9
- package/lib/core/BoxedTable/TableHeader/index.d.ts +5 -5
- package/lib/core/BoxedTable/TableHeader/styles.d.ts +5 -5
- package/lib/core/BoxedTable/TableHeader/styles.js +1 -1
- package/lib/core/BoxedTable/TableRow/index.d.ts +17 -17
- package/lib/core/BoxedTable/TableRow/styles.d.ts +55 -55
- package/lib/core/BoxedTable/TableRow/styles.js +8 -8
- package/lib/core/BoxedTable/index.d.ts +11 -11
- package/lib/core/BoxedTable/styles.d.ts +2 -2
- package/lib/core/BoxedTable/styles.js +8 -8
- package/lib/core/Button/index.d.ts +34 -34
- package/lib/core/Button/styles.d.ts +24 -24
- package/lib/core/Button/styles.js +18 -18
- package/lib/core/Calendar/CalendarEvent/index.d.ts +9 -9
- package/lib/core/Calendar/CalendarEvent/styles.d.ts +18 -18
- package/lib/core/Calendar/CalendarEvent/styles.js +5 -5
- package/lib/core/Calendar/CalendarSmallEvent/index.d.ts +9 -9
- package/lib/core/Calendar/CalendarSmallEvent/styles.d.ts +18 -18
- package/lib/core/Calendar/CalendarSmallEvent/styles.js +5 -5
- package/lib/core/Calendar/index.d.ts +14 -14
- package/lib/core/Calendar/styles.d.ts +12 -12
- package/lib/core/Calendar/styles.js +6 -6
- package/lib/core/Calendar/util.d.ts +2 -2
- package/lib/core/Card/index.d.ts +29 -29
- package/lib/core/Card/styles.d.ts +16 -16
- package/lib/core/Card/styles.js +11 -11
- package/lib/core/Checkbox/index.d.ts +30 -30
- package/lib/core/Checkbox/styles.d.ts +10 -10
- package/lib/core/Checkbox/styles.js +5 -5
- package/lib/core/CollapseList/Item.d.ts +11 -11
- package/lib/core/CollapseList/index.d.ts +4 -4
- package/lib/core/CollapseList/styles.d.ts +24 -24
- package/lib/core/CollapseList/styles.js +2 -2
- package/lib/core/CommentsTimeline/CommentLine/index.d.ts +23 -23
- package/lib/core/CommentsTimeline/CommentLine/styles.d.ts +14 -14
- package/lib/core/CommentsTimeline/CommentLine/styles.js +4 -4
- package/lib/core/CommentsTimeline/index.d.ts +5 -5
- package/lib/core/CommentsTimeline/styles.d.ts +5 -5
- package/lib/core/CommentsTimeline/styles.js +1 -1
- package/lib/core/CustomText/index.d.ts +24 -24
- package/lib/core/CustomText/styles.d.ts +6 -6
- package/lib/core/CustomText/styles.js +2 -2
- package/lib/core/Datepicker/index.d.ts +28 -28
- package/lib/core/Datepicker/styles.d.ts +27 -27
- package/lib/core/Datepicker/styles.js +8 -8
- package/lib/core/Datepicker/yearMonthForm.d.ts +9 -9
- package/lib/core/Divider/index.d.ts +21 -21
- package/lib/core/Divider/styles.d.ts +10 -10
- package/lib/core/Divider/styles.js +5 -5
- package/lib/core/Dropdown/index.d.ts +25 -25
- package/lib/core/Dropdown/styles.d.ts +8 -8
- package/lib/core/Dropdown/styles.js +3 -3
- package/lib/core/DropdownMenu/DropdownMenuOption.d.ts +10 -10
- package/lib/core/DropdownMenu/index.d.ts +9 -9
- package/lib/core/DropdownMenu/styles.d.ts +11 -11
- package/lib/core/DropdownMenu/styles.js +3 -3
- package/lib/core/Editor/config.d.ts +5 -5
- package/lib/core/Editor/index.d.ts +38 -38
- package/lib/core/Editor/styles.d.ts +14 -14
- package/lib/core/Editor/styles.js +4 -4
- package/lib/core/EditorOld/config.d.ts +55 -55
- package/lib/core/EditorOld/index.d.ts +38 -38
- package/lib/core/EditorOld/index.js +4 -4
- package/lib/core/EditorOld/styles.d.ts +22 -22
- package/lib/core/EditorOld/styles.js +6 -6
- package/lib/core/FileInput/index.d.ts +27 -27
- package/lib/core/FileInput/styles.d.ts +66 -66
- package/lib/core/Header/index.d.ts +16 -16
- package/lib/core/Header/styles.d.ts +12 -12
- package/lib/core/Header/styles.js +7 -7
- package/lib/core/HighlightText/index.d.ts +11 -11
- package/lib/core/HighlightText/styles.d.ts +5 -5
- package/lib/core/HighlightText/styles.js +1 -1
- package/lib/core/Html/index.d.ts +20 -20
- package/lib/core/Html/styles.d.ts +11 -11
- package/lib/core/Html/styles.js +6 -6
- package/lib/core/Image/index.d.ts +20 -20
- package/lib/core/Image/styles.d.ts +7 -7
- package/lib/core/Image/styles.js +3 -3
- package/lib/core/InfoButton/index.d.ts +18 -18
- package/lib/core/InfoButton/styles.d.ts +36 -36
- package/lib/core/InfoButton/styles.js +9 -9
- package/lib/core/Input/index.d.ts +53 -53
- package/lib/core/Input/styles.d.ts +19 -19
- package/lib/core/Input/styles.js +14 -14
- package/lib/core/Link/index.d.ts +25 -25
- package/lib/core/Link/styles.d.ts +14 -14
- package/lib/core/Link/styles.js +9 -9
- package/lib/core/List/Item.d.ts +3 -3
- package/lib/core/List/Item.js +1 -1
- package/lib/core/List/index.d.ts +32 -32
- package/lib/core/List/styles.d.ts +34 -34
- package/lib/core/List/styles.js +11 -11
- package/lib/core/ListPager/index.d.ts +15 -15
- package/lib/core/ListPager/styles.d.ts +10 -10
- package/lib/core/ListPager/styles.js +3 -3
- package/lib/core/Modal/index.d.ts +46 -46
- package/lib/core/Modal/index.d.ts.map +1 -1
- package/lib/core/Modal/index.js +7 -4
- package/lib/core/Modal/styles.d.ts +45 -45
- package/lib/core/Modal/styles.js +8 -8
- package/lib/core/NoticeCard/index.d.ts +22 -22
- package/lib/core/NoticeCard/models.d.ts +29 -29
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/index.d.ts +9 -9
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.d.ts +18 -18
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.js +4 -4
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/index.d.ts +8 -8
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.d.ts +5 -5
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.js +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/index.d.ts +10 -10
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.d.ts +13 -13
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +3 -3
- package/lib/core/NoticeCard/styles.d.ts +19 -19
- package/lib/core/NoticeCard/styles.js +4 -4
- package/lib/core/NoticeCard/utils.d.ts +3 -3
- package/lib/core/NotificationsMenu/NotificationBell/index.d.ts +7 -7
- package/lib/core/NotificationsMenu/NotificationBell/styles.d.ts +6 -6
- package/lib/core/NotificationsMenu/NotificationBell/styles.js +2 -2
- package/lib/core/NotificationsMenu/NotificationRow/index.d.ts +15 -15
- package/lib/core/NotificationsMenu/NotificationRow/styles.d.ts +2 -2
- package/lib/core/NotificationsMenu/NotificationRow/styles.js +1 -1
- package/lib/core/NotificationsMenu/index.d.ts +11 -11
- package/lib/core/NotificationsMenu/styles.d.ts +9 -9
- package/lib/core/NotificationsMenu/styles.js +2 -2
- package/lib/core/PieChart/ActiveShape/index.d.ts +4 -4
- package/lib/core/PieChart/index.d.ts +30 -30
- package/lib/core/PieChart/renderTextContent/index.d.ts +4 -4
- package/lib/core/PieChart/styles.d.ts +14 -14
- package/lib/core/PieChart/styles.js +2 -2
- package/lib/core/PreemptionCard/index.d.ts +9 -9
- package/lib/core/PreemptionCard/index.js +1 -1
- package/lib/core/PreemptionCard/models.d.ts +115 -115
- package/lib/core/PreemptionCard/styles.d.ts +10 -10
- package/lib/core/PreemptionCard/styles.js +3 -3
- package/lib/core/PreemptionCardLoading/index.d.ts +5 -5
- package/lib/core/PreemptionCardLoading/styles.d.ts +13 -13
- package/lib/core/PreemptionCardLoading/styles.js +3 -3
- package/lib/core/Radio/index.d.ts +14 -14
- package/lib/core/Radio/styles.d.ts +8 -8
- package/lib/core/Radio/styles.js +3 -3
- package/lib/core/Select/Option.d.ts +16 -16
- package/lib/core/Select/index.d.ts +45 -45
- package/lib/core/Select/index.js +1 -1
- package/lib/core/Select/styles.d.ts +29 -29
- package/lib/core/Select/styles.js +15 -15
- package/lib/core/SimpleBarChart/CustomLegend/index.d.ts +4 -0
- package/lib/core/SimpleBarChart/CustomLegend/index.d.ts.map +1 -0
- package/lib/core/SimpleBarChart/CustomLegend/index.js +27 -0
- package/lib/core/SimpleBarChart/CustomLegend/styles.d.ts +13 -0
- package/lib/core/SimpleBarChart/CustomLegend/styles.d.ts.map +1 -0
- package/lib/core/SimpleBarChart/CustomLegend/styles.js +25 -0
- package/lib/core/SimpleBarChart/CustomTooltip/index.d.ts +5 -0
- package/lib/core/SimpleBarChart/CustomTooltip/index.d.ts.map +1 -0
- package/lib/core/SimpleBarChart/CustomTooltip/index.js +45 -0
- package/lib/core/SimpleBarChart/CustomTooltip/styles.d.ts +16 -0
- package/lib/core/SimpleBarChart/CustomTooltip/styles.d.ts.map +1 -0
- package/lib/core/SimpleBarChart/CustomTooltip/styles.js +39 -0
- package/lib/core/SimpleBarChart/SimpleBarChart.data.d.ts +6 -0
- package/lib/core/SimpleBarChart/SimpleBarChart.data.d.ts.map +1 -0
- package/lib/core/SimpleBarChart/SimpleBarChart.data.js +49 -0
- package/lib/core/SimpleBarChart/index.d.ts +45 -45
- package/lib/core/SimpleBarChart/styles.d.ts +8 -8
- package/lib/core/SimpleBarChart/styles.js +1 -1
- package/lib/core/SimpleLineChart/index.d.ts +61 -61
- package/lib/core/SimpleLineChart/styles.d.ts +8 -8
- package/lib/core/SimpleLineChart/styles.js +1 -1
- package/lib/core/Skeleton/index.d.ts +10 -10
- package/lib/core/Skeleton/styles.d.ts +26 -26
- package/lib/core/Skeleton/styles.js +4 -4
- package/lib/core/Spinner/index.d.ts +11 -11
- package/lib/core/Spinner/styles.d.ts +10 -10
- package/lib/core/Spinner/styles.js +5 -5
- package/lib/core/TabBar/TabItem/index.d.ts +13 -13
- package/lib/core/TabBar/TabItem/styles.d.ts +5 -5
- package/lib/core/TabBar/TabItem/styles.js +1 -1
- package/lib/core/TabBar/index.d.ts +5 -5
- package/lib/core/TabBar/styles.d.ts +5 -5
- package/lib/core/TabBar/styles.js +1 -1
- package/lib/core/TabNav/TabContext.d.ts +17 -17
- package/lib/core/TabNav/TabNavItem/index.d.ts +14 -14
- package/lib/core/TabNav/TabNavItem/styles.d.ts +9 -9
- package/lib/core/TabNav/TabNavItem/styles.js +2 -2
- package/lib/core/TabNav/index.d.ts +24 -24
- package/lib/core/TabNav/styles.d.ts +20 -20
- package/lib/core/TabNav/styles.js +7 -7
- package/lib/core/TabNav/utils/useContainerDimensions.d.ts +4 -4
- package/lib/core/Table/Cell.d.ts +22 -22
- package/lib/core/Table/Row.d.ts +21 -21
- package/lib/core/Table/index.d.ts +10 -10
- package/lib/core/Table/styles.d.ts +26 -26
- package/lib/core/Table/styles.js +16 -16
- package/lib/core/Tag/index.d.ts +38 -38
- package/lib/core/Tag/styles.d.ts +17 -17
- package/lib/core/Tag/styles.js +12 -12
- package/lib/core/Text/index.d.ts +44 -44
- package/lib/core/Text/styles.d.ts +19 -19
- package/lib/core/Text/styles.js +14 -14
- package/lib/core/Textarea/index.d.ts +28 -28
- package/lib/core/Textarea/styles.d.ts +16 -16
- package/lib/core/Textarea/styles.js +6 -6
- package/lib/core/Timeline/TimelineStep/index.d.ts +14 -14
- package/lib/core/Timeline/TimelineStep/styles.d.ts +16 -16
- package/lib/core/Timeline/TimelineStep/styles.js +6 -6
- package/lib/core/Timeline/index.d.ts +3 -3
- package/lib/core/Timeline/styles.d.ts +5 -5
- package/lib/core/Timeline/styles.js +1 -1
- package/lib/core/Timepicker/index.d.ts +34 -34
- package/lib/core/Timepicker/styles.d.ts +18 -18
- package/lib/core/Timepicker/styles.js +6 -6
- package/lib/core/UnitIllustration/index.d.ts +6 -6
- package/lib/core/UnitIllustration/index.js +9 -9
- package/lib/core/UserMenu/UserMenuOption.d.ts +7 -7
- package/lib/core/UserMenu/index.d.ts +17 -17
- package/lib/core/UserMenu/styles.d.ts +27 -27
- package/lib/core/UserMenu/styles.js +7 -7
- package/lib/core/YearWheel/index.d.ts +10 -10
- package/lib/core/YearWheel/styles.d.ts +8 -8
- package/lib/core/YearWheel/styles.js +3 -3
- package/lib/core/private/ButtonOrLink.d.ts +39 -39
- package/lib/core/private/preemption.d.ts +5 -5
- package/lib/core/utils/debounce.d.ts +2 -2
- package/lib/globals/styles/breakpoints.d.ts +9 -9
- package/lib/globals/styles/paddings.d.ts +8 -8
- package/lib/globals/validation/regularExpressions.d.ts +9 -9
- package/lib/hooks/useIsMobile.d.ts +1 -1
- package/lib/hooks/useScreenOrientation.d.ts +2 -2
- package/lib/icons/General/IconApartment.d.ts +3 -3
- package/lib/icons/General/IconArchives.d.ts +3 -3
- package/lib/icons/General/IconArea.d.ts +3 -3
- package/lib/icons/General/IconArrowDown.d.ts +3 -3
- package/lib/icons/General/IconArrowLeft.d.ts +3 -3
- package/lib/icons/General/IconArrowRight.d.ts +3 -3
- package/lib/icons/General/IconArrowUp.d.ts +3 -3
- package/lib/icons/General/IconAttachment.d.ts +3 -3
- package/lib/icons/General/IconBack.d.ts +3 -3
- package/lib/icons/General/IconBath.d.ts +3 -3
- package/lib/icons/General/IconBblFlame.d.ts +3 -3
- package/lib/icons/General/IconBblShield.d.ts +3 -3
- package/lib/icons/General/IconBblWater.d.ts +3 -3
- package/lib/icons/General/IconBellOutline.d.ts +3 -3
- package/lib/icons/General/IconBlock.d.ts +3 -3
- package/lib/icons/General/IconBoard.d.ts +3 -3
- package/lib/icons/General/IconBookmarkFilled.d.ts +3 -3
- package/lib/icons/General/IconBookmarkOutline.d.ts +3 -3
- package/lib/icons/General/IconBus.d.ts +3 -3
- package/lib/icons/General/IconCalendar.d.ts +3 -3
- package/lib/icons/General/IconCar.d.ts +3 -3
- package/lib/icons/General/IconCaretDown.d.ts +3 -3
- package/lib/icons/General/IconCaretLeft.d.ts +3 -3
- package/lib/icons/General/IconCaretRight.d.ts +3 -3
- package/lib/icons/General/IconCaretUp.d.ts +3 -3
- package/lib/icons/General/IconCheck.d.ts +3 -3
- package/lib/icons/General/IconCheckedFilled.d.ts +3 -3
- package/lib/icons/General/IconCheckedOutline.d.ts +3 -3
- package/lib/icons/General/IconChevronDown.d.ts +3 -3
- package/lib/icons/General/IconChevronLeft.d.ts +3 -3
- package/lib/icons/General/IconChevronRight.d.ts +3 -3
- package/lib/icons/General/IconChoice.d.ts +3 -3
- package/lib/icons/General/IconClose.d.ts +3 -3
- package/lib/icons/General/IconCloseAlt.d.ts +3 -3
- package/lib/icons/General/IconComment.d.ts +3 -3
- package/lib/icons/General/IconCommunication.d.ts +3 -3
- package/lib/icons/General/IconCommunicationFilled.d.ts +3 -3
- package/lib/icons/General/IconCompanyBuilding.d.ts +3 -3
- package/lib/icons/General/IconCompanyBuildingFilled.d.ts +3 -3
- package/lib/icons/General/IconCompanyBuildingOutline.d.ts +3 -3
- package/lib/icons/General/IconDashboard.d.ts +3 -3
- package/lib/icons/General/IconDashboardFilled.d.ts +3 -3
- package/lib/icons/General/IconDelete.d.ts +3 -3
- package/lib/icons/General/IconDocument.d.ts +3 -3
- package/lib/icons/General/IconDocumentFilled.d.ts +3 -3
- package/lib/icons/General/IconDoor.d.ts +3 -3
- package/lib/icons/General/IconDotFilled.d.ts +3 -3
- package/lib/icons/General/IconDotOutline.d.ts +3 -3
- package/lib/icons/General/IconDownload.d.ts +3 -3
- package/lib/icons/General/IconDraft.d.ts +3 -3
- package/lib/icons/General/IconEarth.d.ts +3 -3
- package/lib/icons/General/IconEconomy.d.ts +3 -3
- package/lib/icons/General/IconEconomyFilled.d.ts +3 -3
- package/lib/icons/General/IconEdit.d.ts +3 -3
- package/lib/icons/General/IconElevator.d.ts +3 -3
- package/lib/icons/General/IconErrorFilled.d.ts +3 -3
- package/lib/icons/General/IconErrorOutline.d.ts +3 -3
- package/lib/icons/General/IconExternalLink.d.ts +3 -3
- package/lib/icons/General/IconEye.d.ts +3 -3
- package/lib/icons/General/IconEyeDeny.d.ts +3 -3
- package/lib/icons/General/IconFamily.d.ts +3 -3
- package/lib/icons/General/IconFerry.d.ts +3 -3
- package/lib/icons/General/IconFile.d.ts +3 -3
- package/lib/icons/General/IconFileAdd.d.ts +3 -3
- package/lib/icons/General/IconFileCopy.d.ts +3 -3
- package/lib/icons/General/IconFileEdit.d.ts +3 -3
- package/lib/icons/General/IconFileExcel.d.ts +3 -3
- package/lib/icons/General/IconFilePDF.d.ts +3 -3
- package/lib/icons/General/IconFileWord.d.ts +3 -3
- package/lib/icons/General/IconFillOut.d.ts +3 -3
- package/lib/icons/General/IconFilterList.d.ts +3 -3
- package/lib/icons/General/IconFloor.d.ts +3 -3
- package/lib/icons/General/IconForward.d.ts +3 -3
- package/lib/icons/General/IconFullscreenClose.d.ts +4 -0
- package/lib/icons/General/IconFullscreenClose.d.ts.map +1 -0
- package/lib/icons/General/IconFullscreenClose.js +15 -0
- package/lib/icons/General/IconFullscreenOpen.d.ts +4 -0
- package/lib/icons/General/IconFullscreenOpen.d.ts.map +1 -0
- package/lib/icons/General/IconFullscreenOpen.js +15 -0
- package/lib/icons/General/IconGarage.d.ts +3 -3
- package/lib/icons/General/IconGrid.d.ts +3 -3
- package/lib/icons/General/IconGym.d.ts +3 -3
- package/lib/icons/General/IconHearth.d.ts +3 -3
- package/lib/icons/General/IconHearthOutline.d.ts +3 -3
- package/lib/icons/General/IconHelp.d.ts +3 -3
- package/lib/icons/General/IconHistory.d.ts +3 -3
- package/lib/icons/General/IconHouse.d.ts +3 -3
- package/lib/icons/General/IconHouseOutline.d.ts +3 -3
- package/lib/icons/General/IconHumans.d.ts +3 -3
- package/lib/icons/General/IconImportantComment.d.ts +3 -3
- package/lib/icons/General/IconInbox.d.ts +3 -3
- package/lib/icons/General/IconInfoFilled.d.ts +3 -3
- package/lib/icons/General/IconInfoOutline.d.ts +3 -3
- package/lib/icons/General/IconJointcost.d.ts +3 -3
- package/lib/icons/General/IconJointcost2.d.ts +3 -3
- package/lib/icons/General/IconKey.d.ts +3 -3
- package/lib/icons/General/IconKitchen.d.ts +3 -3
- package/lib/icons/General/IconLabel.d.ts +3 -3
- package/lib/icons/General/IconLeisureTime.d.ts +3 -3
- package/lib/icons/General/IconLock.d.ts +3 -3
- package/lib/icons/General/IconLockLocked.d.ts +3 -3
- package/lib/icons/General/IconLockOpen.d.ts +3 -3
- package/lib/icons/General/IconLookup.d.ts +3 -3
- package/lib/icons/General/IconLookupFilled.d.ts +3 -3
- package/lib/icons/General/IconMail.d.ts +3 -3
- package/lib/icons/General/IconMap.d.ts +3 -3
- package/lib/icons/General/IconMembership.d.ts +3 -3
- package/lib/icons/General/IconMembershipFilled.d.ts +3 -3
- package/lib/icons/General/IconMenu.d.ts +3 -3
- package/lib/icons/General/IconMinus.d.ts +3 -3
- package/lib/icons/General/IconMinusAlt.d.ts +3 -3
- package/lib/icons/General/IconMinusAltFilled.d.ts +3 -3
- package/lib/icons/General/IconMoney.d.ts +3 -3
- package/lib/icons/General/IconParking.d.ts +3 -3
- package/lib/icons/General/IconPaymentCard.d.ts +3 -3
- package/lib/icons/General/IconPhone.d.ts +3 -3
- package/lib/icons/General/IconPlus.d.ts +3 -3
- package/lib/icons/General/IconPlusAlt.d.ts +3 -3
- package/lib/icons/General/IconPortalUser.d.ts +3 -3
- package/lib/icons/General/IconPrint.d.ts +3 -3
- package/lib/icons/General/IconProfile.d.ts +3 -3
- package/lib/icons/General/IconProfileFilled.d.ts +3 -3
- package/lib/icons/General/IconReciept.d.ts +3 -3
- package/lib/icons/General/IconRedo.d.ts +3 -3
- package/lib/icons/General/IconRefresh.d.ts +3 -3
- package/lib/icons/General/IconReply.d.ts +3 -3
- package/lib/icons/General/IconReplyAll.d.ts +3 -3
- package/lib/icons/General/IconRoom.d.ts +3 -3
- package/lib/icons/General/IconSave.d.ts +3 -3
- package/lib/icons/General/IconSearch.d.ts +3 -3
- package/lib/icons/General/IconSend.d.ts +3 -3
- package/lib/icons/General/IconSettings.d.ts +3 -3
- package/lib/icons/General/IconShopping.d.ts +3 -3
- package/lib/icons/General/IconSign.d.ts +3 -3
- package/lib/icons/General/IconSort.d.ts +3 -3
- package/lib/icons/General/IconStarFilled.d.ts +3 -3
- package/lib/icons/General/IconStarHalf.d.ts +3 -3
- package/lib/icons/General/IconStarOutline.d.ts +3 -3
- package/lib/icons/General/IconStore.d.ts +3 -3
- package/lib/icons/General/IconSubway.d.ts +3 -3
- package/lib/icons/General/IconSwitch.d.ts +3 -3
- package/lib/icons/General/IconTrain.d.ts +3 -3
- package/lib/icons/General/IconTram.d.ts +3 -3
- package/lib/icons/General/IconTransport.d.ts +3 -3
- package/lib/icons/General/IconTypeOfBuilding.d.ts +3 -3
- package/lib/icons/General/IconTypeOfBuildingOutline.d.ts +3 -3
- package/lib/icons/General/IconUndo.d.ts +3 -3
- package/lib/icons/General/IconUpload.d.ts +3 -3
- package/lib/icons/General/IconUser.d.ts +3 -3
- package/lib/icons/General/IconUserThin.d.ts +3 -3
- package/lib/icons/General/IconVote.d.ts +3 -3
- package/lib/icons/General/IconWalk.d.ts +3 -3
- package/lib/icons/General/IconWarning.d.ts +3 -3
- package/lib/icons/General/IconWarningBell.d.ts +3 -3
- package/lib/icons/General/IconWork.d.ts +3 -3
- package/lib/icons/General/IconWorkFilled.d.ts +3 -3
- package/lib/icons/General/IconZip.d.ts +3 -3
- package/lib/icons/Logos/IconAmericanExpress.d.ts +3 -3
- package/lib/icons/Logos/IconBankAxept.d.ts +3 -3
- package/lib/icons/Logos/IconMasterCard.d.ts +3 -3
- package/lib/icons/Logos/IconVisa.d.ts +3 -3
- package/lib/icons/withIcon.d.ts +27 -27
- package/lib/illustrations/Backgrounds/IllustrationHousesBackground.d.ts +3 -3
- package/lib/illustrations/Backgrounds/IllustrationHousesBackgroundWithComposition.d.ts +3 -3
- package/lib/illustrations/General/IllustrationError.d.ts +3 -3
- package/lib/illustrations/General/IllustrationErrorGeneric.d.ts +3 -3
- package/lib/illustrations/General/IllustrationHighHouse.d.ts +3 -3
- package/lib/illustrations/General/IllustrationHighHouseComposition.d.ts +3 -3
- package/lib/illustrations/General/IllustrationHouse.d.ts +3 -3
- package/lib/illustrations/General/IllustrationHouseComposition.d.ts +3 -3
- package/lib/illustrations/General/IllustrationHouseMissing.d.ts +3 -3
- package/lib/illustrations/General/IllustrationLowHouse.d.ts +3 -3
- package/lib/illustrations/General/IllustrationLowHouseComposition.d.ts +3 -3
- package/lib/illustrations/General/IllustrationPaperCompleted.d.ts +3 -3
- package/lib/illustrations/General/IllustrationPaperMissing.d.ts +3 -3
- package/lib/illustrations/General/IllustrationSemiDetachedHouse.d.ts +3 -3
- package/lib/illustrations/General/IllustrationSemiDetachedHouseComposition.d.ts +3 -3
- package/lib/illustrations/General/IllustrationSmallHouse.d.ts +3 -3
- package/lib/illustrations/General/IllustrationSmallHouseComposition.d.ts +3 -3
- package/lib/illustrations/General/IllustrationTerraceBlock.d.ts +3 -3
- package/lib/illustrations/General/IllustrationTerraceBlockComposition.d.ts +3 -3
- package/lib/illustrations/General/IllustrationTownHouse.d.ts +3 -3
- package/lib/illustrations/General/IllustrationTownHouseComposition.d.ts +3 -3
- package/lib/illustrations/MySite/IllustrationMySiteBuilding.d.ts +3 -3
- package/lib/illustrations/MySite/IllustrationMySiteCoffeeBook.d.ts +3 -3
- package/lib/illustrations/MySite/IllustrationMySiteComputer.d.ts +3 -3
- package/lib/illustrations/MySite/IllustrationMySiteGift.d.ts +3 -3
- package/lib/illustrations/MySite/IllustrationMySitePapers.d.ts +3 -3
- package/lib/illustrations/MySite/IllustrationMySitePiggyBank.d.ts +3 -3
- package/lib/illustrations/MySite/IllustrationMySiteTransfer.d.ts +3 -3
- package/lib/illustrations/styles.d.ts +3 -3
- package/lib/illustrations/styles.js +2 -2
- package/lib/illustrations/withIllustration.d.ts +24 -24
- package/lib/index.d.ts +284 -281
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -1
- package/lib/layout/Footer/FooterButton/index.d.ts +15 -15
- package/lib/layout/Footer/FooterButton/styles.d.ts +16 -16
- package/lib/layout/Footer/FooterButton/styles.js +1 -1
- package/lib/layout/Footer/FooterCol/index.d.ts +5 -5
- package/lib/layout/Footer/FooterCol/styles.d.ts +5 -5
- package/lib/layout/Footer/FooterCol/styles.js +1 -1
- package/lib/layout/Footer/FooterGroup/index.d.ts +5 -5
- package/lib/layout/Footer/FooterGroup/styles.d.ts +5 -5
- package/lib/layout/Footer/FooterGroup/styles.js +1 -1
- package/lib/layout/Footer/FooterLabel/index.d.ts +5 -5
- package/lib/layout/Footer/FooterLabel/styles.d.ts +5 -5
- package/lib/layout/Footer/FooterLabel/styles.js +1 -1
- package/lib/layout/Footer/FooterLink/index.d.ts +19 -19
- package/lib/layout/Footer/FooterLink/styles.d.ts +16 -16
- package/lib/layout/Footer/FooterLink/styles.js +1 -1
- package/lib/layout/Footer/index.d.ts +6 -6
- package/lib/layout/Footer/styles.d.ts +7 -7
- package/lib/layout/Footer/styles.js +2 -2
- package/lib/layout/Layout/index.d.ts +6 -6
- package/lib/layout/Layout/styles.d.ts +5 -5
- package/lib/layout/Layout/styles.js +1 -1
- package/lib/layout/LayoutShell/index.d.ts +15 -15
- package/lib/layout/LayoutShell/styles.d.ts +21 -21
- package/lib/layout/LayoutShell/styles.js +10 -10
- package/lib/layout/Menu/AppPicker/index.d.ts +19 -19
- package/lib/layout/Menu/AppPicker/styles.d.ts +7 -7
- package/lib/layout/Menu/AppPicker/styles.js +3 -3
- package/lib/layout/Menu/MainMenu/index.d.ts +7 -7
- package/lib/layout/Menu/MainMenu/styles.d.ts +2 -2
- package/lib/layout/Menu/MainMenu/styles.js +1 -1
- package/lib/layout/Menu/MenuItem/index.d.ts +17 -17
- package/lib/layout/Menu/MenuItem/styles.d.ts +3 -3
- package/lib/layout/Menu/MenuItem/styles.js +2 -2
- package/lib/layout/Menu/MenuSpacer/index.d.ts +3 -3
- package/lib/layout/Menu/MenuSpacer/styles.d.ts +5 -5
- package/lib/layout/Menu/MenuSpacer/styles.js +1 -1
- package/lib/layout/Menu/MenuTop/index.d.ts +11 -11
- package/lib/layout/Menu/MenuTop/styles.d.ts +21 -21
- package/lib/layout/Menu/MenuTop/styles.js +3 -3
- package/lib/layout/Menu/SecondaryMenu/index.d.ts +13 -13
- package/lib/layout/Menu/SecondaryMenu/styles.d.ts +11 -11
- package/lib/layout/Menu/SecondaryMenu/styles.js +4 -4
- package/lib/layout/Menu/SecondaryMenuItem/index.d.ts +15 -15
- package/lib/layout/Menu/SecondaryMenuItem/styles.d.ts +1 -1
- package/lib/layout/Menu/SecondaryMenuItem/styles.js +1 -1
- package/lib/layout/Menu/index.d.ts +9 -9
- package/lib/layout/Menu/styles.d.ts +2 -2
- package/lib/layout/Menu/styles.js +1 -1
- package/lib/layout/Submenu/SubmenuItem/index.d.ts +18 -18
- package/lib/layout/Submenu/SubmenuItem/styles.d.ts +4 -4
- package/lib/layout/Submenu/SubmenuItem/styles.js +3 -3
- package/lib/layout/Submenu/SubmenuLightThemeBg/index.d.ts +7 -7
- package/lib/layout/Submenu/index.d.ts +16 -16
- package/lib/layout/Submenu/styles.d.ts +29 -29
- package/lib/layout/Submenu/styles.js +10 -10
- package/lib/layout/Topbar/index.d.ts +7 -7
- package/lib/layout/Topbar/styles.d.ts +2 -2
- package/lib/layout/Topbar/styles.js +1 -1
- package/lib/shared/recharts/CustomLegend/index.d.ts +3 -3
- package/lib/shared/recharts/CustomLegend/styles.d.ts +13 -13
- package/lib/shared/recharts/CustomLegend/styles.js +2 -2
- package/lib/shared/recharts/CustomTooltip/index.d.ts +8 -8
- package/lib/shared/recharts/CustomTooltip/styles.d.ts +15 -15
- package/lib/shared/recharts/CustomTooltip/styles.js +3 -3
- package/lib/utils/accountNumber.d.ts +3 -3
- package/lib/utils/alpha.d.ts +2 -2
- package/lib/utils/array.d.ts +2 -2
- package/lib/utils/dates.d.ts +14 -14
- package/lib/utils/file.d.ts +2 -2
- package/lib/utils/format.d.ts +20 -20
- package/lib/utils/format.js +6 -6
- package/lib/utils/formatGraphPrice.d.ts +2 -2
- package/lib/utils/image.d.ts +2 -2
- package/lib/utils/pagination.d.ts +6 -6
- package/lib/utils/phone.d.ts +2 -2
- package/lib/utils/removeFocusOnMouseUp.d.ts +2 -2
- package/lib/utils/time.d.ts +25 -25
- package/lib/utils/time.js +14 -14
- package/lib/utils/url.d.ts +3 -3
- package/package.json +1 -1
- package/rollup.config.js +13 -13
- package/theme-generator.js +599 -599
package/esm/app-shell/index.js
CHANGED
@@ -11,7 +11,7 @@ const Wrapper = _styled("div", process.env.NODE_ENV === "production" ? {
|
|
11
11
|
label: "Wrapper"
|
12
12
|
})("min-height:100vh;width:auto;background-color:", ({
|
13
13
|
theme
|
14
|
-
}) => theme.bg, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
14
|
+
}) => theme.bg, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYWNrYWdlcy9hcHAtc2hlbGwvaW5kZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUsrQiIsImZpbGUiOiIuLi8uLi9zcmMvcGFja2FnZXMvYXBwLXNoZWxsL2luZGV4LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcclxuaW1wb3J0IHsgVGhlbWVQcm92aWRlciB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xyXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcclxuaW1wb3J0IHsgSUFwcFRoZW1lLCBpbml0VGhlbWUgfSBmcm9tICcuL3RoZW1lJ1xyXG5cclxuY29uc3QgV3JhcHBlciA9IHN0eWxlZC5kaXY8YW55PmBcclxuICBtaW4taGVpZ2h0OiAxMDB2aDtcclxuICB3aWR0aDogYXV0bztcclxuICBiYWNrZ3JvdW5kLWNvbG9yOiAkeyh7IHRoZW1lIH0pID0+IHRoZW1lLmJnfTtcclxuYFxyXG5cclxuaW50ZXJmYWNlIElQcm9wcyB7XHJcbiAgdGhlbWU6IGFueSxcclxuICBkZWZhdWx0VGV4dENvbG9yPzogc3RyaW5nLFxyXG4gIGNoaWxkcmVuOiBOb25OdWxsYWJsZTxSZWFjdC5SZWFjdE5vZGU+XHJcbn1cclxuXHJcbmNvbnN0IEFwcFNoZWxsOiBSZWFjdC5GQzxJUHJvcHM+ID0gKHsgdGhlbWUsIGRlZmF1bHRUZXh0Q29sb3IsIGNoaWxkcmVuIH0pID0+IHtcclxuICBjb25zdCBhcHBUaGVtZTogSUFwcFRoZW1lID0gaW5pdFRoZW1lKHRoZW1lLCBkZWZhdWx0VGV4dENvbG9yKVxyXG5cclxuICByZXR1cm4gKFxyXG4gICAgPFRoZW1lUHJvdmlkZXIgdGhlbWU9e2FwcFRoZW1lfT5cclxuICAgICAgPFdyYXBwZXI+e2NoaWxkcmVufTwvV3JhcHBlcj5cclxuICAgIDwvVGhlbWVQcm92aWRlcj5cclxuICApXHJcbn1cclxuXHJcbmV4cG9ydCBkZWZhdWx0IEFwcFNoZWxsXHJcbiJdfQ== */"));
|
15
15
|
|
16
16
|
const AppShell = ({
|
17
17
|
theme,
|
package/esm/core/Alert/styles.js
CHANGED
@@ -2,18 +2,18 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
2
2
|
|
3
3
|
import { css } from '@emotion/react';
|
4
4
|
const styles = {
|
5
|
-
default: theme => /*#__PURE__*/css("position:relative;display:flex;align-items:center;justify-content:space-between;font-size:14px;background-color:", theme.bgLight, ";border:1px solid ", theme.bgMedium, ";color:", theme.bgDark, ";padding:1em;&>button svg polygon{fill:", theme.bgDark, ";opacity:0.25;}" + (process.env.NODE_ENV === "production" ? "" : ";label:styles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
6
|
-
success: theme => /*#__PURE__*/css("background-color:", theme.successLight, ";color:", theme.defaultText, ";border-color:", theme.successBorder, ";&>button svg polygon{fill:", theme.bgDark, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:styles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
7
|
-
danger: theme => /*#__PURE__*/css("background-color:", theme.alertLight, ";color:", theme.defaultText, ";border-color:", theme.alertBorder, ";&>button svg polygon{fill:", theme.defaultText, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:styles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
8
|
-
info: theme => /*#__PURE__*/css("background-color:", theme.infoLight, ";color:", theme.defaultText, ";border-color:", theme.infoBorder, ";&>button svg polygon{fill:", theme.defaultText, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:styles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
9
|
-
primary: theme => /*#__PURE__*/css("background-color:", theme.illustrationPrimary10, ";border-color:", theme.illustrationPrimary50, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:styles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
5
|
+
default: theme => /*#__PURE__*/css("position:relative;display:flex;align-items:center;justify-content:space-between;font-size:14px;background-color:", theme.bgLight, ";border:1px solid ", theme.bgMedium, ";color:", theme.bgDark, ";padding:1em;&>button svg polygon{fill:", theme.bgDark, ";opacity:0.25;}" + (process.env.NODE_ENV === "production" ? "" : ";label:styles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0FsZXJ0L3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLTyIsImZpbGUiOiIuLi8uLi8uLi9zcmMvcGFja2FnZXMvY29yZS9BbGVydC9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcclxu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MgfVxyXG4iXX0= */"),
|
6
|
+
success: theme => /*#__PURE__*/css("background-color:", theme.successLight, ";color:", theme.defaultText, ";border-color:", theme.successBorder, ";&>button svg polygon{fill:", theme.bgDark, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:styles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0FsZXJ0L3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFzQk8iLCJmaWxlIjoiLi4vLi4vLi4vc3JjL3BhY2thZ2VzL2NvcmUvQWxlcnQvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXHJcbmltcG9ydCB7IElBcHBUaGVtZSB9IGZyb20gJy4uLy4uL2FwcC1zaGVsbC90aGVtZSdcclxuXHJcbmNvbnN0IHN0eWxlcyA9IHtcclxuICBkZWZhdWx0OiAodGhlbWU6IElBcHBUaGVtZSkgPT5cclxuICAgIGNzc2BcclxuICAgICAgcG9zaXRpb246IHJlbGF0aXZlO1xyXG4gICAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xyXG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XHJcbiAgICAgIGZvbnQtc2l6ZTogMTRweDtcclxuICAgICAgYmFja2dyb3VuZC1jb2xvcjogJHt0aGVtZS5iZ0xpZ2h0fTtcclxuICAgICAgYm9yZGVyOiAxcHggc29saWQgJHt0aGVtZS5iZ01lZGl1bX07XHJcbiAgICAgIGNvbG9yOiAke3RoZW1lLmJnRGFya307XHJcbiAgICAgIHBhZGRpbmc6IDFlbTtcclxuXHJcbiAgICAgICYgPiBidXR0b24gc3ZnIHBvbHl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yXG5cclxuICAgICAgJiA+IGJ1dHRvbiBzdmcgcG9seWdvbiB7XHJcbiAgICAgICAgZmlsbDogJHt0aGVtZS5kZWZhdWx0VGV4dH07XHJcbiAgICAgIH1cclxuICAgIGAsXHJcbiAgcHJpbWFyeTogKHRoZW1lOiBJQXBwVGhlbWUpID0+IGNzc2BcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICR7dGhlbWUuaWxsdXN0cmF0aW9uUHJpbWFyeTEwfTtcclxuICAgIGJvcmRlci1jb2xvcjogJHt0aGVtZS5pbGx1c3RyYXRpb25QcmltYXJ5NTB9O1xyXG4gIGAsXHJcbiAgcm91bmRlZDogY3NzYFxyXG4gICAgYm9yZGVyLXJhZGl1czogMTZweDtcclxuICAgIHBhZGRpbmc6IDEuNWVtO1xyXG4gIGAsXHJcbn1cclxuXHJcbmV4cG9ydCBkZWZhdWx0IHN0eWxlc1xyXG5cclxuZXhwb3J0IHsgc3R5bGVzIH1cclxuIl19 */"),
|
7
|
+
danger: theme => /*#__PURE__*/css("background-color:", theme.alertLight, ";color:", theme.defaultText, ";border-color:", theme.alertBorder, ";&>button svg polygon{fill:", theme.defaultText, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:styles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0FsZXJ0L3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFnQ08iLCJmaWxlIjoiLi4vLi4vLi4vc3JjL3BhY2thZ2VzL2NvcmUvQWxlcnQvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXHJcbmltcG9ydCB7IElBcHBUaGVtZSB9IGZyb20gJy4uLy4uL2FwcC1zaGVsbC90aGVtZSdcclxu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Y2tncm91bmQtY29sb3I6ICR7dGhlbWUuYWxlcnRMaWdodH07XHJcbiAgICAgIGNvbG9yOiAke3RoZW1lLmRlZmF1bHRUZXh0fTtcclxuICAgICAgYm9yZGVyLWNvbG9yOiAke3RoZW1lLmFsZXJ0Qm9yZGVyfTtcclxuXHJcbiAgICAgICYgPiBidXR0b24gc3ZnIHBvbHlnb24ge1xyXG4gICAgICAgIGZpbGw6ICR7dGhlbWUuZGVmYXVsdFRleHR9O1xyXG4gICAgICB9XHJcbiAgICBgLFxyXG4gIGluZm86ICh0aGVtZTogSUFwcFRoZW1lKSA9PlxyXG4gICAgY3NzYFxyXG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke3RoZW1lLmluZm9MaWdodH07XHJcbiAgICAgIGNvbG9yOiAke3RoZW1lLmRlZmF1bHRUZXh0fTtcclxuICAgICAgYm9yZGVyLWNvbG9yOiAke3RoZW1lLmluZm9Cb3JkZXJ9O1xyXG5cclxuICAgICAgJiA+IGJ1dHRvbiBzdmcgcG9seWdvbiB7XHJcbiAgICAgICAgZmlsbDogJHt0aGVtZS5kZWZhdWx0VGV4dH07XHJcbiAgICAgIH1cclxuICAgIGAsXHJcbiAgcHJpbWFyeTogKHRoZW1lOiBJQXBwVGhlbWUpID0+IGNzc2BcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICR7dGhlbWUuaWxsdXN0cmF0aW9uUHJpbWFyeTEwfTtcclxuICAgIGJvcmRlci1jb2xvcjogJHt0aGVtZS5pbGx1c3RyYXRpb25QcmltYXJ5NTB9O1xyXG4gIGAsXHJcbiAgcm91bmRlZDogY3NzYFxyXG4gICAgYm9yZGVyLXJhZGl1czogMTZweDtcclxuICAgIHBhZGRpbmc6IDEuNWVtO1xyXG4gIGAsXHJcbn1cclxuXHJcbmV4cG9ydCBkZWZhdWx0IHN0eWxlc1xyXG5cclxuZXhwb3J0IHsgc3R5bGVzIH1cclxuIl19 */"),
|
8
|
+
info: theme => /*#__PURE__*/css("background-color:", theme.infoLight, ";color:", theme.defaultText, ";border-color:", theme.infoBorder, ";&>button svg polygon{fill:", theme.defaultText, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:styles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0FsZXJ0L3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEwQ08iLCJmaWxlIjoiLi4vLi4vLi4vc3JjL3BhY2thZ2VzL2NvcmUvQWxlcnQvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXHJcbmltcG9ydCB7IElBcHBUaGVtZSB9IGZyb20gJy4uLy4uL2FwcC1zaGVsbC90aGVtZSdcclxuXHJcbmNvbnN0IHN0eWxlcyA9IHtcclxuICBkZWZhdWx0OiAodGhlbWU6IElBcHBUaGVtZSkgPT5cclxuICAgIGNzc2BcclxuICAgICAgcG9zaXRpb246IHJlbGF0aXZlO1xyXG4gICAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xyXG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XHJcbiAgICAgIGZvbnQtc2l6ZTogMTRweDtcclxuICAgICAgYmFja2dyb3VuZC1jb2xvcjogJHt0aGVtZS5iZ0xpZ2h0fTtcclxuICAgICAgYm9yZGVyOiAxcHggc29saWQgJHt0aGVtZS5iZ01lZGl1bX07XHJcbiAgICAgIGNvbG9yOiAke3RoZW1lLmJnRGFya307XHJcbiAgICAgIHBhZGRpbmc6IDFlbTtcclxuXHJcbiAgICAgICYgPiBidXR0b24gc3ZnIHBvbHlnb24ge1xyXG4gICAgICAgIGZpbGw6ICR7dGhlbWUuYmdEYXJrf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HJcbiAgICAgICAgZmlsbDogJHt0aGVtZS5kZWZhdWx0VGV4dH07XHJcbiAgICAgIH1cclxuICAgIGAsXHJcbiAgcHJpbWFyeTogKHRoZW1lOiBJQXBwVGhlbWUpID0+IGNzc2BcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICR7dGhlbWUuaWxsdXN0cmF0aW9uUHJpbWFyeTEwfTtcclxuICAgIGJvcmRlci1jb2xvcjogJHt0aGVtZS5pbGx1c3RyYXRpb25QcmltYXJ5NTB9O1xyXG4gIGAsXHJcbiAgcm91bmRlZDogY3NzYFxyXG4gICAgYm9yZGVyLXJhZGl1czogMTZweDtcclxuICAgIHBhZGRpbmc6IDEuNWVtO1xyXG4gIGAsXHJcbn1cclxuXHJcbmV4cG9ydCBkZWZhdWx0IHN0eWxlc1xyXG5cclxuZXhwb3J0IHsgc3R5bGVzIH1cclxuIl19 */"),
|
9
|
+
primary: theme => /*#__PURE__*/css("background-color:", theme.illustrationPrimary10, ";border-color:", theme.illustrationPrimary50, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:styles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0FsZXJ0L3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtRG9DIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0FsZXJ0L3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xyXG5pbXBvcnQgeyBJQXBwVGhlbWUgfSBmcm9tICcuLi8uLi9hcHAtc2hlbGwvdGhlbWUnXHJcblxyXG5jb25zdCBzdHlsZXMgPSB7XHJcbiAgZGVmYXVsdDogKHRoZW1lOiBJQXBwVGhlbWUpID0+X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JcbiAgICAgIGJvcmRlci1jb2xvcjogJHt0aGVtZS5hbGVydEJvcmRlcn07XHJcblxyXG4gICAgICAmID4gYnV0dG9uIHN2ZyBwb2x5Z29uIHtcclxuICAgICAgICBmaWxsOiAke3RoZW1lLmRlZmF1bHRUZXh0fTtcclxuICAgICAgfVxyXG4gICAgYCxcclxuICBpbmZvOiAodGhlbWU6IElBcHBUaGVtZSkgPT5cclxuICAgIGNzc2BcclxuICAgICAgYmFja2dyb3VuZC1jb2xvcjogJHt0aGVtZS5pbmZvTGlnaHR9O1xyXG4gICAgICBjb2xvcjogJHt0aGVtZS5kZWZhdWx0VGV4dH07XHJcbiAgICAgIGJvcmRlci1jb2xvcjogJHt0aGVtZS5pbmZvQm9yZGVyfTtcclxuXHJcbiAgICAgICYgPiBidXR0b24gc3ZnIHBvbHlnb24ge1xyXG4gICAgICAgIGZpbGw6ICR7dGhlbWUuZGVmYXVsdFRleHR9O1xyXG4gICAgICB9XHJcbiAgICBgLFxyXG4gIHByaW1hcnk6ICh0aGVtZTogSUFwcFRoZW1lKSA9PiBjc3NgXHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke3RoZW1lLmlsbHVzdHJhdGlvblByaW1hcnkxMH07XHJcbiAgICBib3JkZXItY29sb3I6ICR7dGhlbWUuaWxsdXN0cmF0aW9uUHJpbWFyeTUwfTtcclxuICBgLFxyXG4gIHJvdW5kZWQ6IGNzc2BcclxuICAgIGJvcmRlci1yYWRpdXM6IDE2cHg7XHJcbiAgICBwYWRkaW5nOiAxLjVlbTtcclxuICBgLFxyXG59XHJcblxyXG5leHBvcnQgZGVmYXVsdCBzdHlsZXNcclxuXHJcbmV4cG9ydCB7IHN0eWxlcyB9XHJcbiJdfQ== */"),
|
10
10
|
rounded: process.env.NODE_ENV === "production" ? {
|
11
11
|
name: "118z35s",
|
12
12
|
styles: "border-radius:16px;padding:1.5em"
|
13
13
|
} : {
|
14
14
|
name: "1q6n14v-rounded",
|
15
15
|
styles: "border-radius:16px;padding:1.5em;label:rounded;",
|
16
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
16
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0FsZXJ0L3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1RGMiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL3BhY2thZ2VzL2NvcmUvQWxlcnQvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXHJcbmltcG9ydCB7IElBcHBUaGVtZSB9IGZyb20gJy4uLy4uL2FwcC1zaGVsbC90aGVtZSdcclxuXHJcbmNvbnN0IHN0eWxlcyA9IHtcclxuICBkZWZhdWx0OiAodGhlbWU6IElBcHBUaGVtZSkgPT5cclxuICAgIGNzc2BcclxuICAgICAgcG9zaXRpb246IHJlbGF0aXZlO1xyXG4gICAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xyXG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XHJcbiAgICAgIGZvbnQtc2l6ZTogMTRweDtcclxuICAgICAgYmFja2dyb3VuZC1jb2xvcjogJHt0aGVtZS5iZ0xpZ2h0fTtcclxuICAgICAgYm9yZGVyOiAxcHggc29saWQgJHt0aGVtZS5iZ01lZGl1bX07XHJcbiAgICAgIGNvbG9yOiAke3RoZW1lLmJnRGFya307XHJcbiAgICAgIHBhZGRpbmc6IDFlbTtcclxuXHJcbiAgICAgICYgPiBidXR0b24gc3ZnIHBvbHlnb24ge1xyXG4gICAgICAgIGZpbGw6ICR7dGhlbWUuYmdEYXJrfTtcclxuICAgICAgICBvcGFjaXR5OiAwLjI1O1xyXG4gICAgICB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dH07XHJcbiAgICAgIH1cclxuICAgIGAsXHJcbiAgcHJpbWFyeTogKHRoZW1lOiBJQXBwVGhlbWUpID0+IGNzc2BcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICR7dGhlbWUuaWxsdXN0cmF0aW9uUHJpbWFyeTEwfTtcclxuICAgIGJvcmRlci1jb2xvcjogJHt0aGVtZS5pbGx1c3RyYXRpb25QcmltYXJ5NTB9O1xyXG4gIGAsXHJcbiAgcm91bmRlZDogY3NzYFxyXG4gICAgYm9yZGVyLXJhZGl1czogMTZweDtcclxuICAgIHBhZGRpbmc6IDEuNWVtO1xyXG4gIGAsXHJcbn1cclxuXHJcbmV4cG9ydCBkZWZhdWx0IHN0eWxlc1xyXG5cclxuZXhwb3J0IHsgc3R5bGVzIH1cclxuIl19 */",
|
17
17
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
18
18
|
}
|
19
19
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { css } from '@emotion/react';
|
2
2
|
const styles = {
|
3
|
-
default: (theme, color) => /*#__PURE__*/css("display:inline-block;position:relative;min-width:58px;height:10px;div{position:absolute;width:10px;height:10px;border-radius:50%;background:", color ? color : '#ccc', ";animation-timing-function:cubic-bezier(0, 1, 1, 0);}div:nth-of-type(1){left:6px;animation:lds-ellipsis1 0.6s infinite;}div:nth-of-type(2){left:6px;animation:lds-ellipsis2 0.6s infinite;}div:nth-of-type(3){left:24px;animation:lds-ellipsis2 0.6s infinite;}div:nth-of-type(4){left:42px;animation:lds-ellipsis3 0.6s infinite;}@keyframes lds-ellipsis1{0%{transform:scale(0);}100%{transform:scale(1);}}@keyframes lds-ellipsis3{0%{transform:scale(1);}100%{transform:scale(0);}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0);}100%{transform:translate(18px, 0);}}" + (process.env.NODE_ENV === "production" ? "" : ";label:styles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
3
|
+
default: (theme, color) => /*#__PURE__*/css("display:inline-block;position:relative;min-width:58px;height:10px;div{position:absolute;width:10px;height:10px;border-radius:50%;background:", color ? color : '#ccc', ";animation-timing-function:cubic-bezier(0, 1, 1, 0);}div:nth-of-type(1){left:6px;animation:lds-ellipsis1 0.6s infinite;}div:nth-of-type(2){left:6px;animation:lds-ellipsis2 0.6s infinite;}div:nth-of-type(3){left:24px;animation:lds-ellipsis2 0.6s infinite;}div:nth-of-type(4){left:42px;animation:lds-ellipsis3 0.6s infinite;}@keyframes lds-ellipsis1{0%{transform:scale(0);}100%{transform:scale(1);}}@keyframes lds-ellipsis3{0%{transform:scale(1);}100%{transform:scale(0);}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0);}100%{transform:translate(18px, 0);}}" + (process.env.NODE_ENV === "production" ? "" : ";label:styles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0FwcExvYWRlci9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS08iLCJmaWxlIjoiLi4vLi4vLi4vc3JjL3BhY2thZ2VzL2NvcmUvQXBwTG9hZGVyL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xyXG5pbXBvcnQgeyBJQXBwVGhlbWUgfSBmcm9tICcuLi8uLi9hcHAtc2hlbGwvdGhlbWUnXHJcblxyXG5jb25zdCBzdHlsZXMgPSB7XHJcbiAgZGVmYXVsdDogKHRoZW1lOiBJQXBwVGhlbWUsIGNvbG9yOiBzdHJpbmcgfCB1bmRlZmluZWQpID0+XHJcbiAgICBjc3NgXHJcbiAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jaztcclxuICAgICAgcG9zaXRpb246IHJlbGF0aXZlO1xyXG4gICAgICBtaW4td2lkdGg6IDU4cHg7XHJcbiAgICAgIGhlaWdodDogMTBweDtcclxuICAgICAgZGl2IHtcclxuICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XHJcbiAgICAgICAgd2lkdGg6IDEwcHg7XHJcbiAgICAgICAgaGVpZ2h0OiAxMHB4O1xyXG4gICAgICAgIGJvcmRlci1yYWRpdXM6IDUwJTtcclxuICAgICAgICBiYWNrZ3JvdW5kOiAke2NvbG9yID8gY29sb3IgOiAnI2NjYyd9O1xyXG4gICAgICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGN1YmljLWJlemllcigwLCAxLCAxLCAwKTtcclxuICAgICAgfVxyXG4gICAgICBkaXY6bnRoLW9mLXR5cGUoMSkge1xyXG4gICAgICAgIGxlZnQ6IDZweDtcclxuICAgICAgICBhbmltYXRpb246IGxkcy1lbGxpcHNpczEgMC42cyBpbmZpbml0ZTtcclxuICAgICAgfVxyXG4gICAgICBkaXY6bnRoLW9mLXR5cGUoMikge1xyXG4gICAgICAgIGxlZnQ6IDZweDtcclxuICAgICAgICBhbmltYXRpb246IGxkcy1lbGxpcHNpczIgMC42cyBpbmZpbml0ZTtcclxuICAgICAgfVxyXG4gICAgICBkaXY6bnRoLW9mLXR5cGUoMykge1xyXG4gICAgICAgIGxlZnQ6IDI0cHg7XHJcbiAgICAgICAgYW5pbWF0aW9uOiBsZHMtZWxsaXBzaXMyIDAuNnMgaW5maW5pdGU7XHJcbiAgICAgIH1cclxuICAgICAgZGl2Om50aC1vZi10eXBlKDQpIHtcclxuICAgICAgICBsZWZ0OiA0MnB4O1xyXG4gICAgICAgIGFuaW1hdGlvbjogbGRzLWVsbGlwc2lzMyAwLjZzIGluZmluaXRlO1xyXG4gICAgICB9XHJcbiAgICAgIEBrZXlmcmFtZXMgbGRzLWVsbGlwc2lzMSB7XHJcbiAgICAgICAgMCUge1xyXG4gICAgICAgICAgdHJhbnNmb3JtOiBzY2FsZSgwKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgMTAwJSB7XHJcbiAgICAgICAgICB0cmFuc2Zvcm06IHNjYWxlKDEpO1xyXG4gICAgICAgIH1cclxuICAgICAgfVxyXG4gICAgICBAa2V5ZnJhbWVzIGxkcy1lbGxpcHNpczMge1xyXG4gICAgICAgIDAlIHtcclxuICAgICAgICAgIHRyYW5zZm9ybTogc2NhbGUoMSk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIDEwMCUge1xyXG4gICAgICAgICAgdHJhbnNmb3JtOiBzY2FsZSgwKTtcclxuICAgICAgICB9XHJcbiAgICAgIH1cclxuICAgICAgQGtleWZyYW1lcyBsZHMtZWxsaXBzaXMyIHtcclxuICAgICAgICAwJSB7XHJcbiAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgwLCAwKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgMTAwJSB7XHJcbiAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgxOHB4LCAwKTtcclxuICAgICAgICB9XHJcbiAgICAgIH1cclxuICAgIGAsXHJcbn1cclxuXHJcbmV4cG9ydCBkZWZhdWx0IHN0eWxlc1xyXG5cclxuZXhwb3J0IHsgc3R5bGVzIH1cclxuIl19 */")
|
4
4
|
};
|
5
5
|
export default styles;
|
6
6
|
export { styles };
|
@@ -0,0 +1,247 @@
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
2
|
+
import React, { createRef, useState } from 'react';
|
3
|
+
import { styles, ErrorMessage } from './styles';
|
4
|
+
import { useEffect } from 'react';
|
5
|
+
import { useDebounce } from '../utils/debounce';
|
6
|
+
import IconErrorOutline from '../../icons/General/IconErrorOutline';
|
7
|
+
import Spinner from '../Spinner';
|
8
|
+
import useHandleOptionsHeight from './utils/useHandleOptionsHeight';
|
9
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
10
|
+
import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
11
|
+
import { Fragment as _Fragment } from "@emotion/react/jsx-runtime";
|
12
|
+
const Autocomplete = /*#__PURE__*/React.forwardRef(({
|
13
|
+
onDebounceChange,
|
14
|
+
debounceDelay,
|
15
|
+
height,
|
16
|
+
css,
|
17
|
+
...props
|
18
|
+
}, ref) => {
|
19
|
+
const {
|
20
|
+
optionsHeight,
|
21
|
+
optionsRef
|
22
|
+
} = useHandleOptionsHeight();
|
23
|
+
const valuesRef = /*#__PURE__*/createRef();
|
24
|
+
const [showValues, setShowValues] = useState(!!props.isOpen);
|
25
|
+
const [highlightedIndex, setHighlightedIndex] = useState(null);
|
26
|
+
const [value, setValueChanged] = useState(props.value ? props.value : '');
|
27
|
+
const [inputDirty, setInputDirty] = useState(false);
|
28
|
+
const debouncedValue = useDebounce(value, debounceDelay ? debounceDelay : 0);
|
29
|
+
|
30
|
+
const onInputChange = e => {
|
31
|
+
setInputDirty(true);
|
32
|
+
setValueChanged(e.target.value);
|
33
|
+
|
34
|
+
if (props.values) {
|
35
|
+
// Maybe?
|
36
|
+
setHighlightedIndex(0);
|
37
|
+
}
|
38
|
+
|
39
|
+
if (props.onChange) {
|
40
|
+
props.onChange(e);
|
41
|
+
}
|
42
|
+
};
|
43
|
+
|
44
|
+
const handleOnInputClick = () => {
|
45
|
+
if (props.values?.length) setHighlightedIndex(0);
|
46
|
+
setShowValues(true);
|
47
|
+
};
|
48
|
+
|
49
|
+
const handleValueClick = value => {
|
50
|
+
setShowValues(false);
|
51
|
+
props.onSelectItem?.(value);
|
52
|
+
};
|
53
|
+
|
54
|
+
const handleEnter = e => {
|
55
|
+
e.preventDefault();
|
56
|
+
e.stopPropagation();
|
57
|
+
if (!showValues) return;
|
58
|
+
|
59
|
+
if (!props.values?.length) {
|
60
|
+
// If there is no autocomplete value in the list, send object with just { value }
|
61
|
+
props.onSelectItem?.({
|
62
|
+
value
|
63
|
+
});
|
64
|
+
}
|
65
|
+
|
66
|
+
if (highlightedIndex === null || !props.values?.length) {
|
67
|
+
return;
|
68
|
+
}
|
69
|
+
|
70
|
+
const item = props.values[highlightedIndex];
|
71
|
+
props.onSelectItem?.(item);
|
72
|
+
setShowValues(false);
|
73
|
+
};
|
74
|
+
|
75
|
+
const handleUp = e => {
|
76
|
+
e.preventDefault();
|
77
|
+
e.stopPropagation();
|
78
|
+
if (!showValues) return;
|
79
|
+
|
80
|
+
if (highlightedIndex === null || !props.values?.length) {
|
81
|
+
return;
|
82
|
+
}
|
83
|
+
|
84
|
+
const newHighlightIndex = highlightedIndex - 1;
|
85
|
+
|
86
|
+
if (newHighlightIndex < 0) {
|
87
|
+
setHighlightedIndex(null);
|
88
|
+
setShowValues(false);
|
89
|
+
return;
|
90
|
+
}
|
91
|
+
|
92
|
+
setHighlightedIndex(newHighlightIndex);
|
93
|
+
};
|
94
|
+
|
95
|
+
const handleDown = e => {
|
96
|
+
if (!showValues) return;
|
97
|
+
e.preventDefault();
|
98
|
+
e.stopPropagation();
|
99
|
+
|
100
|
+
if (highlightedIndex === null || !props.values?.length) {
|
101
|
+
return;
|
102
|
+
}
|
103
|
+
|
104
|
+
const newHighlightIndex = highlightedIndex + 1;
|
105
|
+
|
106
|
+
if (newHighlightIndex === props.values.length) {
|
107
|
+
setHighlightedIndex(null);
|
108
|
+
setShowValues(false);
|
109
|
+
return;
|
110
|
+
}
|
111
|
+
|
112
|
+
setHighlightedIndex(newHighlightIndex);
|
113
|
+
};
|
114
|
+
|
115
|
+
const handleEscape = () => {
|
116
|
+
setShowValues(false);
|
117
|
+
setHighlightedIndex(null);
|
118
|
+
};
|
119
|
+
|
120
|
+
const handleOnKeyDown = e => {
|
121
|
+
const {
|
122
|
+
key
|
123
|
+
} = e;
|
124
|
+
|
125
|
+
if (showValues && props.values?.length) {
|
126
|
+
setHighlightedIndex(0);
|
127
|
+
} else {
|
128
|
+
setHighlightedIndex(null);
|
129
|
+
}
|
130
|
+
|
131
|
+
switch (key) {
|
132
|
+
case 'Enter':
|
133
|
+
handleEnter(e);
|
134
|
+
break;
|
135
|
+
|
136
|
+
case 'ArrowUp':
|
137
|
+
handleUp(e);
|
138
|
+
break;
|
139
|
+
|
140
|
+
case 'ArrowDown':
|
141
|
+
case 'Tab':
|
142
|
+
handleDown(e);
|
143
|
+
break;
|
144
|
+
|
145
|
+
case 'Escape':
|
146
|
+
handleEscape();
|
147
|
+
break;
|
148
|
+
|
149
|
+
default:
|
150
|
+
break;
|
151
|
+
}
|
152
|
+
}; // Handle debounce
|
153
|
+
|
154
|
+
|
155
|
+
useEffect(() => {
|
156
|
+
const handleDebounceChange = value => {
|
157
|
+
if (onDebounceChange && inputDirty) {
|
158
|
+
onDebounceChange(value);
|
159
|
+
}
|
160
|
+
};
|
161
|
+
|
162
|
+
handleDebounceChange(debouncedValue); // eslint-disable-next-line react-hooks/exhaustive-deps
|
163
|
+
}, [debouncedValue]);
|
164
|
+
useEffect(() => {
|
165
|
+
setShowValues(!!props.isOpen);
|
166
|
+
}, [props.isOpen]);
|
167
|
+
useEffect(() => {
|
168
|
+
const handleClickOutside = e => {
|
169
|
+
const node = valuesRef.current;
|
170
|
+
|
171
|
+
if (node && node.contains(e.target)) {
|
172
|
+
return;
|
173
|
+
}
|
174
|
+
|
175
|
+
setShowValues(false);
|
176
|
+
};
|
177
|
+
|
178
|
+
if (showValues) {
|
179
|
+
document.addEventListener('mousedown', handleClickOutside);
|
180
|
+
} else {
|
181
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
182
|
+
}
|
183
|
+
|
184
|
+
return () => {
|
185
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
186
|
+
};
|
187
|
+
}, [showValues, valuesRef]);
|
188
|
+
return _jsxs(_Fragment, {
|
189
|
+
children: [_jsxs("label", {
|
190
|
+
css: theme => [styles.default(theme), (props.invalid || props.invalidMessage) && styles.invalid(theme), props.validation && styles.validation, height && styles.height(height), css && css],
|
191
|
+
children: [props.label && _jsx("span", {
|
192
|
+
children: props.label
|
193
|
+
}), _jsxs("div", {
|
194
|
+
css: theme => [styles.inputWrapper(theme)],
|
195
|
+
children: [_jsxs("div", {
|
196
|
+
css: styles.inputBox,
|
197
|
+
children: [_jsx("input", {
|
198
|
+
type: "text",
|
199
|
+
placeholder: props.placeholder,
|
200
|
+
value: value,
|
201
|
+
disabled: props.disabled,
|
202
|
+
autoFocus: props.focus,
|
203
|
+
onBlur: props.onBlur,
|
204
|
+
onFocus: props.onFocus,
|
205
|
+
onChange: onInputChange,
|
206
|
+
onKeyDown: handleOnKeyDown,
|
207
|
+
onClick: handleOnInputClick,
|
208
|
+
ref: ref,
|
209
|
+
name: props.name,
|
210
|
+
autoComplete: "off",
|
211
|
+
css: theme => [props.disabled && styles.disabled(theme)],
|
212
|
+
children: React.Children.map(props.children, child => child ?? null)
|
213
|
+
}), props.loading && _jsx(Spinner, {
|
214
|
+
size: 14
|
215
|
+
}), props.actions && _jsx("div", {
|
216
|
+
children: props.actions
|
217
|
+
})]
|
218
|
+
}), props.renderOptions && _jsx("div", {
|
219
|
+
ref: optionsRef,
|
220
|
+
css: styles.inputValues,
|
221
|
+
children: props.renderOptions
|
222
|
+
})]
|
223
|
+
}), props.invalidMessage && _jsxs("div", {
|
224
|
+
css: styles.invalidMessage,
|
225
|
+
children: [_jsx(IconErrorOutline, {
|
226
|
+
size: "16px"
|
227
|
+
}), _jsx("span", {
|
228
|
+
css: theme => [ErrorMessage(theme)],
|
229
|
+
children: props.invalidMessage
|
230
|
+
})]
|
231
|
+
})]
|
232
|
+
}), (props.values?.length || props.renderCustomValueInput) && !props.loading && showValues && _jsxs("div", {
|
233
|
+
ref: valuesRef,
|
234
|
+
css: () => [styles.listWrapper, Boolean(optionsHeight) && styles.listWrapperTopPosition(optionsHeight), Boolean(optionsHeight) && props.invalidMessage && styles.listWrapperTopPosition(optionsHeight + 30), props.inputValuesMaxWidth && styles.listWrapperMaxWidth(props.inputValuesMaxWidth)],
|
235
|
+
children: [props.values?.length && _jsx("ul", {
|
236
|
+
css: theme => [styles.list(theme)],
|
237
|
+
children: props.values.map((item, index) => _jsx("li", {
|
238
|
+
tabIndex: 0,
|
239
|
+
css: index === highlightedIndex ? styles.highlightedItem : null,
|
240
|
+
onClick: () => handleValueClick(item),
|
241
|
+
children: props.labelFromValues ? item[props.labelFromValues] : item.label
|
242
|
+
}, props.keyFromValues ? item[props.keyFromValues] : item.key))
|
243
|
+
}), props.renderCustomValueInput && props.renderCustomValueInput]
|
244
|
+
})]
|
245
|
+
});
|
246
|
+
});
|
247
|
+
export default Autocomplete;
|