@bbl-digital/snorre 3.0.66 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 +479 -480
- package/dist/bundle.min.js +29 -0
- 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/styles.js +18 -18
- 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/DraggableRow/styles.js +5 -5
- package/esm/core/BoxedTable/HeaderCell/styles.js +2 -2
- package/esm/core/BoxedTable/RowCell/index.js +1 -1
- package/esm/core/BoxedTable/TableHeader/styles.js +1 -1
- package/esm/core/BoxedTable/TableRow/styles.js +8 -8
- package/esm/core/BoxedTable/styles.js +11 -11
- 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 +5 -5
- 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 +9 -9
- package/esm/core/DatepickerRange/styles.js +9 -9
- 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/FileInput/styles.js +12 -12
- package/esm/core/GoogleButton/styles.js +1 -1
- 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 +10 -10
- 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/MailMenu/DropdownMenuOption.js +17 -0
- package/esm/core/MailMenu/index.js +42 -0
- package/esm/core/MailMenu/styles.js +34 -0
- 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/NotificationCounter/styles.js +1 -1
- 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/PreemptionCard/index.js +1 -1
- package/esm/core/PreemptionCardLoading/styles.js +3 -3
- package/esm/core/Radio/styles.js +4 -4
- package/esm/core/SearchFilter/index.js +1 -1
- package/esm/core/SearchFilter/styles.js +8 -8
- package/esm/core/SearchSelect/styles.js +5 -5
- package/esm/core/Select/index.js +1 -1
- package/esm/core/Select/styles.js +16 -16
- 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 +5 -5
- package/esm/core/TabNav/styles.js +8 -8
- 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/index.js +0 -1
- package/esm/core/UserMenu/styles.js +7 -7
- package/esm/core/YearWheel/styles.js +3 -3
- package/esm/enums/Keyboard.js +2 -2
- package/esm/globals/styles/styles.js +1 -1
- package/esm/illustrations/styles.js +2 -2
- 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 +11 -11
- package/esm/layout/Menu/AppPicker/styles.js +3 -3
- package/esm/layout/Menu/MenuBottom/index.js +37 -0
- package/esm/layout/Menu/MenuBottom/styles.js +15 -0
- package/esm/layout/Menu/MenuItem/styles.js +2 -2
- package/esm/layout/Menu/SecondaryMenu/styles.js +4 -4
- package/esm/layout/Menu/styles.js +1 -1
- package/esm/layout/Submenu/SubmenuItem/styles.js +3 -3
- package/esm/layout/Submenu/SubmenuLightThemeBg/styles.js +10 -0
- 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 +29 -29
- package/lib/app-shell/index.d.ts +11 -11
- package/lib/app-shell/index.js +1 -1
- package/lib/app-shell/theme.d.ts +122 -122
- package/lib/core/Alert/index.d.ts +23 -23
- 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/hooks/useAutocomplete.d.ts +20 -20
- package/lib/core/Autocomplete/hooks/useHandleDimentions.d.ts +7 -7
- package/lib/core/Autocomplete/index.d.ts +6 -6
- package/lib/core/Autocomplete/index.interfaces.d.ts +82 -82
- package/lib/core/Autocomplete/styles.d.ts +39 -39
- package/lib/core/Autocomplete/styles.js +18 -18
- package/lib/core/Autocomplete/utils/useHandleOptionsHeight.d.ts +6 -6
- 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 +58 -58
- package/lib/core/BarAndLineComposedChart/styles.d.ts +8 -8
- package/lib/core/BarAndLineComposedChart/styles.js +1 -1
- package/lib/core/BarChartWithCustomizedEvent/index.d.ts +56 -56
- package/lib/core/BarChartWithCustomizedEvent/styles.d.ts +9 -9
- package/lib/core/BarChartWithCustomizedEvent/styles.js +1 -1
- package/lib/core/Box/index.d.ts +30 -30
- package/lib/core/Box/styles.d.ts +37 -37
- package/lib/core/Box/styles.js +7 -7
- package/lib/core/BoxedTable/DraggableRow/index.d.ts +14 -14
- package/lib/core/BoxedTable/DraggableRow/styles.d.ts +21 -21
- package/lib/core/BoxedTable/DraggableRow/styles.js +5 -5
- package/lib/core/BoxedTable/HeaderCell/index.d.ts +24 -24
- 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 +26 -26
- package/lib/core/BoxedTable/RowCell/index.js +1 -1
- package/lib/core/BoxedTable/RowCell/styles.d.ts +12 -12
- package/lib/core/BoxedTable/TableHeader/index.d.ts +7 -7
- 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 +19 -19
- package/lib/core/BoxedTable/TableRow/styles.d.ts +25 -25
- package/lib/core/BoxedTable/TableRow/styles.js +8 -8
- package/lib/core/BoxedTable/index.d.ts +18 -18
- package/lib/core/BoxedTable/models.d.ts +5 -5
- package/lib/core/BoxedTable/styles.d.ts +15 -15
- package/lib/core/BoxedTable/styles.js +11 -11
- 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 +20 -20
- package/lib/core/Calendar/styles.js +5 -5
- package/lib/core/Calendar/util.d.ts +2 -2
- package/lib/core/Card/index.d.ts +31 -31
- package/lib/core/Card/styles.d.ts +16 -16
- package/lib/core/Card/styles.js +11 -11
- package/lib/core/Checkbox/index.d.ts +32 -32
- 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 +8 -8
- package/lib/core/CollapseList/styles.d.ts +21 -21
- 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 +7 -7
- 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 +30 -30
- package/lib/core/Datepicker/styles.d.ts +38 -28
- package/lib/core/Datepicker/styles.d.ts.map +1 -1
- package/lib/core/Datepicker/styles.js +9 -9
- package/lib/core/Datepicker/yearMonthForm.d.ts +9 -9
- package/lib/core/Datepicker/yearMonthForm.d.ts.map +1 -1
- package/lib/core/DatepickerRange/index.d.ts +49 -49
- package/lib/core/DatepickerRange/styles.d.ts +28 -28
- package/lib/core/DatepickerRange/styles.js +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 +12 -12
- package/lib/core/DropdownMenu/index.d.ts +11 -11
- 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 +40 -40
- 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 +64 -64
- package/lib/core/FileInput/styles.js +12 -12
- package/lib/core/GoogleButton/index.d.ts +8 -8
- package/lib/core/GoogleButton/styles.d.ts +5 -5
- package/lib/core/GoogleButton/styles.js +1 -1
- package/lib/core/Header/index.d.ts +20 -20
- 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 +20 -20
- package/lib/core/InfoButton/styles.d.ts +34 -34
- 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 +15 -15
- package/lib/core/Link/styles.js +10 -10
- package/lib/core/List/Item.d.ts +6 -6
- package/lib/core/List/Item.js +1 -1
- package/lib/core/List/index.d.ts +34 -34
- 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/MailMenu/DropdownMenuOption.d.ts +8 -0
- package/lib/core/MailMenu/DropdownMenuOption.d.ts.map +1 -0
- package/lib/core/MailMenu/DropdownMenuOption.js +17 -0
- package/lib/core/MailMenu/index.d.ts +8 -0
- package/lib/core/MailMenu/index.d.ts.map +1 -0
- package/lib/core/MailMenu/index.js +42 -0
- package/lib/core/MailMenu/styles.d.ts +12 -0
- package/lib/core/MailMenu/styles.d.ts.map +1 -0
- package/lib/core/MailMenu/styles.js +34 -0
- package/lib/core/Modal/index.d.ts +43 -43
- package/lib/core/Modal/styles.d.ts +42 -42
- package/lib/core/Modal/styles.js +8 -8
- package/lib/core/NoticeCard/index.d.ts +22 -22
- package/lib/core/NoticeCard/models.d.ts +30 -30
- 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 +11 -11
- 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 +2 -2
- package/lib/core/NotificationCounter/index.d.ts +12 -12
- package/lib/core/NotificationCounter/styles.d.ts +4 -4
- package/lib/core/NotificationCounter/styles.js +1 -1
- 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 +13 -13
- 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 +3 -3
- package/lib/core/PieChart/index.d.ts +30 -30
- package/lib/core/PieChart/renderTextContent/index.d.ts +3 -3
- package/lib/core/PieChart/styles.d.ts +14 -14
- 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/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 +24 -24
- package/lib/core/Radio/styles.d.ts +9 -9
- package/lib/core/Radio/styles.js +4 -4
- package/lib/core/SearchFilter/index.d.ts +22 -22
- package/lib/core/SearchFilter/index.js +1 -1
- package/lib/core/SearchFilter/styles.d.ts +30 -30
- package/lib/core/SearchFilter/styles.js +8 -8
- package/lib/core/SearchSelect/hooks/useSelectSearch.d.ts +10 -10
- package/lib/core/SearchSelect/index.d.ts +5 -5
- package/lib/core/SearchSelect/interface/IProps.d.ts +38 -38
- package/lib/core/SearchSelect/styles.d.ts +20 -20
- package/lib/core/SearchSelect/styles.js +5 -5
- package/lib/core/Select/Option.d.ts +22 -22
- package/lib/core/Select/index.d.ts +49 -49
- package/lib/core/Select/index.js +1 -1
- package/lib/core/Select/styles.d.ts +29 -29
- package/lib/core/Select/styles.js +16 -16
- package/lib/core/SimpleBarChart/index.d.ts +56 -56
- package/lib/core/SimpleBarChart/styles.d.ts +8 -8
- package/lib/core/SimpleLineChart/index.d.ts +65 -65
- package/lib/core/SimpleLineChart/styles.d.ts +8 -8
- package/lib/core/SimpleLineChart/styles.js +1 -1
- package/lib/core/Skeleton/index.d.ts +15 -15
- package/lib/core/Skeleton/styles.d.ts +20 -20
- 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 +7 -7
- package/lib/core/TabBar/styles.d.ts +5 -5
- package/lib/core/TabBar/styles.js +1 -1
- package/lib/core/TabNav/TabContext.d.ts +18 -18
- package/lib/core/TabNav/TabNavItem/index.d.ts +34 -34
- package/lib/core/TabNav/TabNavItem/styles.d.ts +26 -26
- package/lib/core/TabNav/TabNavItem/styles.js +5 -5
- package/lib/core/TabNav/index.d.ts +30 -30
- package/lib/core/TabNav/styles.d.ts +24 -24
- package/lib/core/TabNav/styles.js +8 -8
- package/lib/core/TabNav/utils/useContainerDimensions.d.ts +7 -7
- 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 +44 -44
- 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 +7 -7
- package/lib/core/Timeline/styles.d.ts +5 -5
- package/lib/core/Timeline/styles.js +1 -1
- package/lib/core/Timepicker/index.d.ts +36 -36
- 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 +10 -10
- package/lib/core/UserMenu/index.d.ts +19 -19
- package/lib/core/UserMenu/index.d.ts.map +1 -1
- package/lib/core/UserMenu/index.js +0 -1
- 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 +48 -48
- package/lib/core/private/preemption.d.ts +5 -5
- package/lib/core/utils/debounce.d.ts +2 -2
- package/lib/enums/Keyboard.d.ts +14 -14
- package/lib/enums/Keyboard.js +2 -2
- package/lib/globals/styles/breakpoints.d.ts +9 -9
- package/lib/globals/styles/paddings.d.ts +8 -8
- package/lib/globals/styles/styles.d.ts +1 -1
- package/lib/globals/styles/styles.js +1 -1
- package/lib/globals/validation/regularExpressions.d.ts +10 -10
- 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/IconAuditorFilled.d.ts +3 -3
- package/lib/icons/General/IconAuditorOutline.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/IconCases.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 +3 -3
- package/lib/icons/General/IconFullscreenOpen.d.ts +3 -3
- 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/IconHomeFilled.d.ts +3 -3
- package/lib/icons/General/IconHomeOutline.d.ts +3 -3
- package/lib/icons/General/IconHouse.d.ts +3 -3
- package/lib/icons/General/IconHouseBlockFilled.d.ts +3 -3
- package/lib/icons/General/IconHouseBlockOutline.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/IconJanitorFilled.d.ts +3 -3
- package/lib/icons/General/IconJanitorOutline.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/IconLeafFilled.d.ts +3 -3
- package/lib/icons/General/IconLeafOutline.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/IconPinned.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/IconRearrange.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/IconSliders.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/IconGmail.d.ts +3 -3
- package/lib/icons/Logos/IconMasterCard.d.ts +3 -3
- package/lib/icons/Logos/IconOffice365.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 +305 -305
- package/lib/layout/Footer/FooterButton/index.d.ts +15 -15
- package/lib/layout/Footer/FooterButton/styles.d.ts +13 -13
- package/lib/layout/Footer/FooterButton/styles.js +1 -1
- package/lib/layout/Footer/FooterCol/index.d.ts +7 -7
- 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 +7 -7
- 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 +7 -7
- 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 +13 -13
- package/lib/layout/Footer/FooterLink/styles.js +1 -1
- package/lib/layout/Footer/index.d.ts +8 -8
- package/lib/layout/Footer/styles.d.ts +7 -7
- package/lib/layout/Footer/styles.js +2 -2
- package/lib/layout/Layout/index.d.ts +7 -7
- package/lib/layout/Layout/styles.d.ts +5 -5
- package/lib/layout/Layout/styles.js +1 -1
- package/lib/layout/LayoutShell/index.d.ts +22 -22
- package/lib/layout/LayoutShell/styles.d.ts +23 -23
- package/lib/layout/LayoutShell/styles.js +11 -11
- 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 +9 -9
- package/lib/layout/Menu/MainMenu/styles.d.ts +2 -2
- package/lib/layout/Menu/MenuBottom/index.d.ts +14 -0
- package/lib/layout/Menu/MenuBottom/index.d.ts.map +1 -0
- package/lib/layout/Menu/MenuBottom/index.js +37 -0
- package/lib/layout/Menu/MenuBottom/styles.d.ts +4 -0
- package/lib/layout/Menu/MenuBottom/styles.d.ts.map +1 -0
- package/lib/layout/Menu/MenuBottom/styles.js +15 -0
- 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 +7 -7
- package/lib/layout/Menu/MenuSpacer/styles.d.ts +5 -5
- package/lib/layout/Menu/MenuTop/index.d.ts +13 -13
- package/lib/layout/Menu/MenuTop/styles.d.ts +19 -19
- package/lib/layout/Menu/SecondaryMenu/index.d.ts +15 -15
- 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/index.d.ts +11 -11
- 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 +20 -20
- 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/SubmenuLightThemeBg/styles.d.ts +3 -0
- package/lib/layout/Submenu/SubmenuLightThemeBg/styles.d.ts.map +1 -0
- package/lib/layout/Submenu/SubmenuLightThemeBg/styles.js +10 -0
- 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 +11 -11
- 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 +10 -10
- 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 +612 -612
- package/esm/enums/ModifierKey.js +0 -13
- package/lib/enums/ModifierKey.d.ts +0 -12
- package/lib/enums/ModifierKey.d.ts.map +0 -1
- package/lib/enums/ModifierKey.js +0 -13
package/theme-generator.js
CHANGED
@@ -1,612 +1,612 @@
|
|
1
|
-
const fs = require('fs')
|
2
|
-
|
3
|
-
const initTheme = (
|
4
|
-
primary,
|
5
|
-
secondary,
|
6
|
-
bgalpha,
|
7
|
-
secondaryFooter = false,
|
8
|
-
sidemenuColor,
|
9
|
-
sidemenuItemColor,
|
10
|
-
submenuColor,
|
11
|
-
submenuItemColor,
|
12
|
-
submenuTextColor,
|
13
|
-
submenuTextColorActive,
|
14
|
-
customBgColor,
|
15
|
-
customPortalFooterColor,
|
16
|
-
customFooter
|
17
|
-
) => {
|
18
|
-
const styles = {
|
19
|
-
primary: primary,
|
20
|
-
secondary: secondary,
|
21
|
-
bg: customBgColor ? customBgColor : hexToRGBA(primary, bgalpha),
|
22
|
-
primary10opa: hexToRGBA(primary, 0.1),
|
23
|
-
primary20opa: hexToRGBA(primary, 0.2),
|
24
|
-
primary50opa: hexToRGBA(primary, 0.5),
|
25
|
-
primary5darker: shadeColor(primary, -50),
|
26
|
-
secondary5darker: shadeColor(secondary, -50),
|
27
|
-
defaultText: '#000',
|
28
|
-
subtleText: hexToRGBA('#000000', 0.7),
|
29
|
-
secondaryDarkText: shadeColor(secondary, -80),
|
30
|
-
bgDark: '#10105A',
|
31
|
-
bgMedium: '#CFD9EA',
|
32
|
-
bgLight: '#EEF4FB',
|
33
|
-
bgFooter: customFooter
|
34
|
-
? customFooter
|
35
|
-
: secondaryFooter
|
36
|
-
? shadeColor(secondary, -50)
|
37
|
-
: shadeColor(primary, -50),
|
38
|
-
btnDefault: secondary,
|
39
|
-
btnDefaultFontColor: getContrastYIQ(secondary),
|
40
|
-
btnDefaultDarker: shadeColor(secondary, -15),
|
41
|
-
btnDefaultLighter: shadeColor(secondary, 15),
|
42
|
-
btnSuccess: '#4DD964',
|
43
|
-
btnSuccessDarker: '#27B33E',
|
44
|
-
btnSuccessLighter: '#73FF8A',
|
45
|
-
btnDanger: '#EB011A',
|
46
|
-
btnDangerDarker: '#C50000',
|
47
|
-
btnDangerLighter: '#FF2740',
|
48
|
-
btnDisabled: '#D7D7D7',
|
49
|
-
btnHoverTextColor: getContrastYIQ(shadeColor(secondary, -15)),
|
50
|
-
alert: '#EB011A',
|
51
|
-
alertLight: '#FCD6DA',
|
52
|
-
alertBorder: 'rgba(235,1,26,0.25)',
|
53
|
-
info: '#F7B633',
|
54
|
-
infoMedium: '#FBDA99',
|
55
|
-
infoLight: '#FDEDCD',
|
56
|
-
infoBorder: 'rgba(247,182,51,0.5)',
|
57
|
-
success: '#4DD964',
|
58
|
-
successMedium: '#A6ECB2',
|
59
|
-
successLight: '#D2F5D8',
|
60
|
-
successBorder: 'rgba(77,217,100,0.5)',
|
61
|
-
border: '#CFD9EA',
|
62
|
-
gray10: '#BDBDBD',
|
63
|
-
gray20: '#efefef',
|
64
|
-
disabled: '#D7D7D7',
|
65
|
-
shadowSmall: '0px 2px 4px 0px rgba(0, 0, 0, 0.1)',
|
66
|
-
shadowBig: '0px 10px 15px 0px rgba(0, 0, 0, 0.1)',
|
67
|
-
illustrationGray: '#C3D0D8',
|
68
|
-
illustrationPrimary50: hexifyWithWhiteBackground(hexToRGBA(primary, 0.5)),
|
69
|
-
illustrationPrimary40: hexifyWithWhiteBackground(hexToRGBA(primary, 0.4)),
|
70
|
-
illustrationPrimary20: hexifyWithWhiteBackground(hexToRGBA(primary, 0.2)),
|
71
|
-
illustrationPrimary10: hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
|
72
|
-
illustrationPrimary5: hexifyWithWhiteBackground(hexToRGBA(primary, 0.08)),
|
73
|
-
sidemenuColor: sidemenuColor
|
74
|
-
? sidemenuColor
|
75
|
-
: `linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), linear-gradient(${primary}, ${primary})`,
|
76
|
-
sidemenuItemColor: sidemenuItemColor
|
77
|
-
? sidemenuItemColor
|
78
|
-
: `linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), linear-gradient(${primary}, ${primary})`,
|
79
|
-
submenuColor: submenuColor
|
80
|
-
? submenuColor
|
81
|
-
: `linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), linear-gradient(${primary}, ${primary})`,
|
82
|
-
submenuItemColor: submenuItemColor
|
83
|
-
? submenuItemColor
|
84
|
-
: shadeColor(primary, -50),
|
85
|
-
submenuTextColor: submenuTextColor
|
86
|
-
? submenuTextColor
|
87
|
-
: `rgba(255, 255, 255, 0.7)`,
|
88
|
-
submenuTextColorActive: submenuTextColorActive
|
89
|
-
? submenuTextColorActive
|
90
|
-
: `#ffffff`,
|
91
|
-
customPortalFooterColor: customPortalFooterColor,
|
92
|
-
}
|
93
|
-
return styles
|
94
|
-
}
|
95
|
-
|
96
|
-
// Helpers
|
97
|
-
const hexToRGBA = (hex, alpha) => {
|
98
|
-
var r = parseInt(hex.slice(1, 3), 16),
|
99
|
-
g = parseInt(hex.slice(3, 5), 16),
|
100
|
-
b = parseInt(hex.slice(5, 7), 16)
|
101
|
-
|
102
|
-
return 'rgba(' + r + ', ' + g + ', ' + b + ', ' + alpha + ')'
|
103
|
-
}
|
104
|
-
|
105
|
-
function hexifyWithWhiteBackground(color) {
|
106
|
-
var values = color
|
107
|
-
.replace(/rgba?\(/, '')
|
108
|
-
.replace(/\)/, '')
|
109
|
-
.replace(/[\s+]/g, '')
|
110
|
-
.split(',')
|
111
|
-
var a = parseFloat(values[3] || 1),
|
112
|
-
r = Math.floor(a * parseInt(values[0]) + (1 - a) * 255),
|
113
|
-
g = Math.floor(a * parseInt(values[1]) + (1 - a) * 255),
|
114
|
-
b = Math.floor(a * parseInt(values[2]) + (1 - a) * 255)
|
115
|
-
return (
|
116
|
-
'#' +
|
117
|
-
('0' + r.toString(16)).slice(-2) +
|
118
|
-
('0' + g.toString(16)).slice(-2) +
|
119
|
-
('0' + b.toString(16)).slice(-2)
|
120
|
-
)
|
121
|
-
}
|
122
|
-
|
123
|
-
const shadeColor = (color, percent) => {
|
124
|
-
var R = parseInt(color.substring(1, 3), 16)
|
125
|
-
var G = parseInt(color.substring(3, 5), 16)
|
126
|
-
var B = parseInt(color.substring(5, 7), 16)
|
127
|
-
|
128
|
-
R = parseInt('' + (R * (100 + percent)) / 100)
|
129
|
-
G = parseInt('' + (G * (100 + percent)) / 100)
|
130
|
-
B = parseInt('' + (B * (100 + percent)) / 100)
|
131
|
-
|
132
|
-
R = R < 255 ? R : 255
|
133
|
-
G = G < 255 ? G : 255
|
134
|
-
B = B < 255 ? B : 255
|
135
|
-
|
136
|
-
var RR = R.toString(16).length === 1 ? '0' + R.toString(16) : R.toString(16)
|
137
|
-
var GG = G.toString(16).length === 1 ? '0' + G.toString(16) : G.toString(16)
|
138
|
-
var BB = B.toString(16).length === 1 ? '0' + B.toString(16) : B.toString(16)
|
139
|
-
|
140
|
-
return '#' + RR + GG + BB
|
141
|
-
}
|
142
|
-
|
143
|
-
const getContrastYIQ = (hexcolor) => {
|
144
|
-
hexcolor = hexcolor.replace('#', '')
|
145
|
-
var r = parseInt(hexcolor.substr(0, 2), 16)
|
146
|
-
var g = parseInt(hexcolor.substr(2, 2), 16)
|
147
|
-
var b = parseInt(hexcolor.substr(4, 2), 16)
|
148
|
-
var yiq = (r * 299 + g * 587 + b * 114) / 1000
|
149
|
-
return yiq >= 128 ? 'black' : 'white'
|
150
|
-
}
|
151
|
-
|
152
|
-
const updateTheme = (bbl) => {
|
153
|
-
if (bbl) {
|
154
|
-
const b = bbls.find((x) => x.bbl === bbl)
|
155
|
-
console.log(b)
|
156
|
-
updateBbl(
|
157
|
-
b.bbl,
|
158
|
-
b.theme.primary,
|
159
|
-
b.theme.secondary,
|
160
|
-
b.theme.alpha,
|
161
|
-
b.theme.secondaryFooter,
|
162
|
-
b.theme.sidemenuColor,
|
163
|
-
b.theme.sidemenuItemColor,
|
164
|
-
b.theme.submenuColor,
|
165
|
-
b.theme.submenuItemColor,
|
166
|
-
b.theme.submenuTextColor,
|
167
|
-
b.theme.submenuTextColorActive,
|
168
|
-
b.theme.customBgColor,
|
169
|
-
b.theme.customPortalFooterColor,
|
170
|
-
b.theme.customFooter
|
171
|
-
)
|
172
|
-
} else {
|
173
|
-
for (const b of bbls) {
|
174
|
-
updateBbl(
|
175
|
-
b.bbl,
|
176
|
-
b.theme.primary,
|
177
|
-
b.theme.secondary,
|
178
|
-
b.theme.alpha,
|
179
|
-
b.theme.secondaryFooter,
|
180
|
-
b.theme.sidemenuColor,
|
181
|
-
b.theme.sidemenuItemColor,
|
182
|
-
b.theme.submenuColor,
|
183
|
-
b.theme.submenuItemColor,
|
184
|
-
b.theme.submenuTextColor,
|
185
|
-
b.theme.submenuTextColorActive,
|
186
|
-
b.theme.customBgColor,
|
187
|
-
b.theme.customPortalFooterColor,
|
188
|
-
b.theme.customFooter
|
189
|
-
)
|
190
|
-
}
|
191
|
-
}
|
192
|
-
}
|
193
|
-
|
194
|
-
const updateBbl = (
|
195
|
-
bbl,
|
196
|
-
primary,
|
197
|
-
secondary,
|
198
|
-
bgalpha,
|
199
|
-
secondaryFooter = false,
|
200
|
-
sidemenuColor,
|
201
|
-
sidemenuItemColor,
|
202
|
-
submenuColor,
|
203
|
-
submenuItemColor,
|
204
|
-
submenuTextColor,
|
205
|
-
submenuTextColorActive,
|
206
|
-
customBgColor,
|
207
|
-
customPortalFooterColor,
|
208
|
-
customFooter
|
209
|
-
) => {
|
210
|
-
let data = JSON.stringify(
|
211
|
-
initTheme(
|
212
|
-
primary,
|
213
|
-
secondary,
|
214
|
-
bgalpha,
|
215
|
-
secondaryFooter,
|
216
|
-
sidemenuColor,
|
217
|
-
sidemenuItemColor,
|
218
|
-
submenuColor,
|
219
|
-
submenuItemColor,
|
220
|
-
submenuTextColor,
|
221
|
-
submenuTextColorActive,
|
222
|
-
customBgColor,
|
223
|
-
customPortalFooterColor,
|
224
|
-
customFooter
|
225
|
-
)
|
226
|
-
)
|
227
|
-
console.log(data)
|
228
|
-
fs.writeFileSync('themes/' + bbl + '/styles.json', data)
|
229
|
-
}
|
230
|
-
|
231
|
-
const bbls = [
|
232
|
-
{
|
233
|
-
bbl: 'arendal',
|
234
|
-
theme: {
|
235
|
-
primary: '#ED088A',
|
236
|
-
secondary: '#22475F',
|
237
|
-
alpha: '0.02',
|
238
|
-
secondaryFooter: true,
|
239
|
-
},
|
240
|
-
},
|
241
|
-
{
|
242
|
-
bbl: 'kongsberg',
|
243
|
-
theme: {
|
244
|
-
primary: '#ED088A',
|
245
|
-
secondary: '#22475F',
|
246
|
-
alpha: '0.02',
|
247
|
-
secondaryFooter: true,
|
248
|
-
sidemenuColor: '#760445',
|
249
|
-
submenuColor: '#A50660',
|
250
|
-
submenuTextColor: 'rgba(255, 255, 255, 0.8)',
|
251
|
-
},
|
252
|
-
},
|
253
|
-
{
|
254
|
-
bbl: 'labo',
|
255
|
-
theme: {
|
256
|
-
primary: '#ED088A',
|
257
|
-
secondary: '#22475F',
|
258
|
-
alpha: '0.02',
|
259
|
-
secondaryFooter: true,
|
260
|
-
},
|
261
|
-
},
|
262
|
-
{
|
263
|
-
bbl: 'mobo',
|
264
|
-
theme: {
|
265
|
-
primary: '#ED088A',
|
266
|
-
secondary: '#22475F',
|
267
|
-
alpha: '0.02',
|
268
|
-
secondaryFooter: true,
|
269
|
-
},
|
270
|
-
},
|
271
|
-
{
|
272
|
-
bbl: 'moborana',
|
273
|
-
theme: {
|
274
|
-
primary: '#ED088A',
|
275
|
-
secondary: '#22475F',
|
276
|
-
alpha: '0.02',
|
277
|
-
secondaryFooter: true,
|
278
|
-
},
|
279
|
-
},
|
280
|
-
{
|
281
|
-
bbl: 'mosjoen',
|
282
|
-
theme: {
|
283
|
-
primary: '#ED088A',
|
284
|
-
secondary: '#22475F',
|
285
|
-
alpha: '0.02',
|
286
|
-
secondaryFooter: true,
|
287
|
-
},
|
288
|
-
},
|
289
|
-
{
|
290
|
-
bbl: 'notodden',
|
291
|
-
theme: {
|
292
|
-
primary: '#ED088A',
|
293
|
-
secondary: '#22475F',
|
294
|
-
alpha: '0.02',
|
295
|
-
secondaryFooter: true,
|
296
|
-
},
|
297
|
-
},
|
298
|
-
{
|
299
|
-
bbl: 'polarlys',
|
300
|
-
theme: {
|
301
|
-
primary: '#ED088A',
|
302
|
-
secondary: '#22475F',
|
303
|
-
alpha: '0.02',
|
304
|
-
secondaryFooter: true,
|
305
|
-
},
|
306
|
-
},
|
307
|
-
{
|
308
|
-
bbl: 'sunnbo',
|
309
|
-
theme: {
|
310
|
-
primary: '#0075B2',
|
311
|
-
secondary: '#00527C',
|
312
|
-
alpha: '0.02',
|
313
|
-
},
|
314
|
-
},
|
315
|
-
{
|
316
|
-
bbl: 'vansjobbl',
|
317
|
-
theme: {
|
318
|
-
primary: '#ED088A',
|
319
|
-
secondary: '#22475F',
|
320
|
-
alpha: '0.02',
|
321
|
-
secondaryFooter: true,
|
322
|
-
sidemenuColor: '#760445',
|
323
|
-
submenuColor: '#A50660',
|
324
|
-
submenuTextColor: 'rgba(255, 255, 255, 0.8)',
|
325
|
-
},
|
326
|
-
},
|
327
|
-
{
|
328
|
-
bbl: 'bori',
|
329
|
-
theme: {
|
330
|
-
primary: '#006930',
|
331
|
-
secondary: '#7AB800',
|
332
|
-
alpha: '0.02',
|
333
|
-
},
|
334
|
-
},
|
335
|
-
{
|
336
|
-
bbl: 'bbld',
|
337
|
-
theme: {
|
338
|
-
primary: '#1657E2',
|
339
|
-
secondary: '#10105A',
|
340
|
-
alpha: '0.02',
|
341
|
-
},
|
342
|
-
},
|
343
|
-
{
|
344
|
-
bbl: 'sobbl',
|
345
|
-
theme: {
|
346
|
-
primary: '#227F48',
|
347
|
-
secondary: '#213228',
|
348
|
-
alpha: '0.02',
|
349
|
-
},
|
350
|
-
},
|
351
|
-
{
|
352
|
-
bbl: 'kobbl',
|
353
|
-
theme: {
|
354
|
-
primary: '#A71930',
|
355
|
-
secondary: '#B7C9D3',
|
356
|
-
alpha: '0.02',
|
357
|
-
secondaryFooter: true,
|
358
|
-
},
|
359
|
-
},
|
360
|
-
{
|
361
|
-
bbl: 'ringbo',
|
362
|
-
theme: {
|
363
|
-
primary: '#6585AF',
|
364
|
-
secondary: '#E64596',
|
365
|
-
alpha: '0.02',
|
366
|
-
},
|
367
|
-
},
|
368
|
-
{
|
369
|
-
bbl: 'abbl',
|
370
|
-
theme: {
|
371
|
-
primary: '#227F48',
|
372
|
-
secondary: '#213228',
|
373
|
-
alpha: '0.02',
|
374
|
-
},
|
375
|
-
},
|
376
|
-
{
|
377
|
-
bbl: 'bob',
|
378
|
-
theme: {
|
379
|
-
primary: '#582484',
|
380
|
-
secondary: '#C5E6EF',
|
381
|
-
alpha: '0.02',
|
382
|
-
},
|
383
|
-
},
|
384
|
-
{
|
385
|
-
bbl: 'tobb',
|
386
|
-
theme: {
|
387
|
-
primary: '#477A7B',
|
388
|
-
secondary: '#003865',
|
389
|
-
alpha: '0.04',
|
390
|
-
},
|
391
|
-
},
|
392
|
-
{
|
393
|
-
bbl: 'bomidt',
|
394
|
-
theme: {
|
395
|
-
primary: '#1897B7',
|
396
|
-
secondary: '#4F67AB',
|
397
|
-
alpha: '0.04',
|
398
|
-
},
|
399
|
-
},
|
400
|
-
{
|
401
|
-
bbl: 'bori',
|
402
|
-
theme: {
|
403
|
-
primary: '#006930',
|
404
|
-
secondary: '#7AB800',
|
405
|
-
alpha: '0.02',
|
406
|
-
},
|
407
|
-
},
|
408
|
-
{
|
409
|
-
bbl: 'gobb',
|
410
|
-
theme: {
|
411
|
-
primary: '#661B39',
|
412
|
-
secondary: '#273D45',
|
413
|
-
alpha: '0.04',
|
414
|
-
},
|
415
|
-
},
|
416
|
-
{
|
417
|
-
bbl: 'sorbbl',
|
418
|
-
theme: {
|
419
|
-
primary: '#0075B2',
|
420
|
-
secondary: '#00527C',
|
421
|
-
alpha: '0.02',
|
422
|
-
},
|
423
|
-
},
|
424
|
-
{
|
425
|
-
bbl: 'sbbl',
|
426
|
-
theme: {
|
427
|
-
primary: '#0075B2',
|
428
|
-
secondary: '#00527C',
|
429
|
-
alpha: '0.02',
|
430
|
-
},
|
431
|
-
},
|
432
|
-
{
|
433
|
-
bbl: 'bate',
|
434
|
-
theme: {
|
435
|
-
primary: '#D31F2C',
|
436
|
-
secondary: '#1D1D1B',
|
437
|
-
alpha: '0.02',
|
438
|
-
secondaryFooter: true,
|
439
|
-
},
|
440
|
-
},
|
441
|
-
{
|
442
|
-
bbl: 'nbbo',
|
443
|
-
theme: {
|
444
|
-
primary: '#009199',
|
445
|
-
secondary: '#812979',
|
446
|
-
alpha: '0.02',
|
447
|
-
secondaryFooter: true,
|
448
|
-
},
|
449
|
-
},
|
450
|
-
{
|
451
|
-
bbl: 'haubo',
|
452
|
-
theme: {
|
453
|
-
primary: '#D12725',
|
454
|
-
secondary: '#1C1C1C',
|
455
|
-
alpha: '0.04',
|
456
|
-
secondaryFooter: true,
|
457
|
-
},
|
458
|
-
},
|
459
|
-
{
|
460
|
-
bbl: 'obf',
|
461
|
-
theme: {
|
462
|
-
primary: '#297154',
|
463
|
-
secondary: '#F9F1DF',
|
464
|
-
customBgColor: '#F8F8F8',
|
465
|
-
alpha: '0.04',
|
466
|
-
sidemenuColor: '#14382A',
|
467
|
-
sidemenuItemColor: '#184432',
|
468
|
-
submenuColor: '#194432',
|
469
|
-
customPortalFooterColor: 'rgb(20, 56, 42)',
|
470
|
-
customFooter: '#297154',
|
471
|
-
},
|
472
|
-
},
|
473
|
-
{
|
474
|
-
bbl: 'rtbbl',
|
475
|
-
theme: {
|
476
|
-
primary: '#AA96ED',
|
477
|
-
secondary: '#22475F',
|
478
|
-
alpha: '0.02',
|
479
|
-
secondaryFooter: true,
|
480
|
-
},
|
481
|
-
},
|
482
|
-
{
|
483
|
-
bbl: 'rjukantinn',
|
484
|
-
theme: {
|
485
|
-
primary: '#AA96ED',
|
486
|
-
secondary: '#22475F',
|
487
|
-
alpha: '0.02',
|
488
|
-
secondaryFooter: true,
|
489
|
-
},
|
490
|
-
},
|
491
|
-
{
|
492
|
-
bbl: 'pbbl',
|
493
|
-
theme: {
|
494
|
-
primary: '#0088B8',
|
495
|
-
secondary: '#ED088A',
|
496
|
-
alpha: '0.02',
|
497
|
-
},
|
498
|
-
},
|
499
|
-
{
|
500
|
-
bbl: 'usbl',
|
501
|
-
theme: {
|
502
|
-
primary: '#FA8268',
|
503
|
-
secondary: '#D24448',
|
504
|
-
alpha: '0.04',
|
505
|
-
secondaryFooter: true,
|
506
|
-
sidemenuColor: '#D04547',
|
507
|
-
sidemenuItemColor: '#A73A37',
|
508
|
-
submenuColor: '#F5F2EB',
|
509
|
-
submenuItemColor: 'white',
|
510
|
-
submenuTextColor: 'rgba(0, 0, 0, 0.7)',
|
511
|
-
submenuTextColorActive: 'black',
|
512
|
-
customBgColor: '#FCFBF8',
|
513
|
-
customPortalFooterColor: '#343E40',
|
514
|
-
},
|
515
|
-
},
|
516
|
-
{
|
517
|
-
bbl: 'bodo',
|
518
|
-
theme: {
|
519
|
-
primary: '#DD2C2A',
|
520
|
-
secondary: '#240216',
|
521
|
-
alpha: '0.02',
|
522
|
-
secondaryFooter: true,
|
523
|
-
},
|
524
|
-
},
|
525
|
-
{
|
526
|
-
bbl: 'nobl',
|
527
|
-
theme: {
|
528
|
-
primary: '#DD2C2A',
|
529
|
-
secondary: '#240216',
|
530
|
-
alpha: '0.02',
|
531
|
-
secondaryFooter: true,
|
532
|
-
},
|
533
|
-
},
|
534
|
-
{
|
535
|
-
bbl: 'omt',
|
536
|
-
theme: {
|
537
|
-
primary: '#04A2D7',
|
538
|
-
secondary: '#32395A',
|
539
|
-
alpha: '0.02',
|
540
|
-
secondaryFooter: true,
|
541
|
-
},
|
542
|
-
},
|
543
|
-
{
|
544
|
-
bbl: 'kbbl',
|
545
|
-
theme: {
|
546
|
-
primary: '#7FAB93',
|
547
|
-
secondary: '#BCB3A2',
|
548
|
-
alpha: '0.02',
|
549
|
-
secondaryFooter: true,
|
550
|
-
},
|
551
|
-
},
|
552
|
-
{
|
553
|
-
bbl: 'bonord',
|
554
|
-
theme: {
|
555
|
-
primary: '#3D8471',
|
556
|
-
secondary: '#E5AF7C',
|
557
|
-
alpha: '0.04',
|
558
|
-
},
|
559
|
-
},
|
560
|
-
{
|
561
|
-
bbl: 'vestbo',
|
562
|
-
theme: {
|
563
|
-
primary: '#6BC0DC',
|
564
|
-
secondary: '#466091',
|
565
|
-
alpha: '0.04',
|
566
|
-
secondaryFooter: true,
|
567
|
-
},
|
568
|
-
},
|
569
|
-
{
|
570
|
-
bbl: 'nbbl',
|
571
|
-
theme: {
|
572
|
-
primary: '#ED088A',
|
573
|
-
secondary: '#22475F',
|
574
|
-
alpha: '0.02',
|
575
|
-
secondaryFooter: true,
|
576
|
-
},
|
577
|
-
},
|
578
|
-
{
|
579
|
-
bbl: 'kragero',
|
580
|
-
theme: {
|
581
|
-
primary: '#6585AF',
|
582
|
-
secondary: '#E64596',
|
583
|
-
alpha: '0.02',
|
584
|
-
},
|
585
|
-
},
|
586
|
-
{
|
587
|
-
bbl: 'habo',
|
588
|
-
theme: {
|
589
|
-
primary: '#345681',
|
590
|
-
secondary: '#ED088A',
|
591
|
-
alpha: '0.02',
|
592
|
-
},
|
593
|
-
},
|
594
|
-
{
|
595
|
-
bbl: 'aardal',
|
596
|
-
theme: {
|
597
|
-
primary: '#710718',
|
598
|
-
secondary: '#22475F',
|
599
|
-
alpha: '0.02',
|
600
|
-
},
|
601
|
-
},
|
602
|
-
{
|
603
|
-
bbl: 'skien',
|
604
|
-
theme: {
|
605
|
-
primary: '#ED088A',
|
606
|
-
secondary: '#ED088A',
|
607
|
-
alpha: '0.02',
|
608
|
-
},
|
609
|
-
},
|
610
|
-
]
|
611
|
-
|
612
|
-
updateTheme()
|
1
|
+
const fs = require('fs')
|
2
|
+
|
3
|
+
const initTheme = (
|
4
|
+
primary,
|
5
|
+
secondary,
|
6
|
+
bgalpha,
|
7
|
+
secondaryFooter = false,
|
8
|
+
sidemenuColor,
|
9
|
+
sidemenuItemColor,
|
10
|
+
submenuColor,
|
11
|
+
submenuItemColor,
|
12
|
+
submenuTextColor,
|
13
|
+
submenuTextColorActive,
|
14
|
+
customBgColor,
|
15
|
+
customPortalFooterColor,
|
16
|
+
customFooter
|
17
|
+
) => {
|
18
|
+
const styles = {
|
19
|
+
primary: primary,
|
20
|
+
secondary: secondary,
|
21
|
+
bg: customBgColor ? customBgColor : hexToRGBA(primary, bgalpha),
|
22
|
+
primary10opa: hexToRGBA(primary, 0.1),
|
23
|
+
primary20opa: hexToRGBA(primary, 0.2),
|
24
|
+
primary50opa: hexToRGBA(primary, 0.5),
|
25
|
+
primary5darker: shadeColor(primary, -50),
|
26
|
+
secondary5darker: shadeColor(secondary, -50),
|
27
|
+
defaultText: '#000',
|
28
|
+
subtleText: hexToRGBA('#000000', 0.7),
|
29
|
+
secondaryDarkText: shadeColor(secondary, -80),
|
30
|
+
bgDark: '#10105A',
|
31
|
+
bgMedium: '#CFD9EA',
|
32
|
+
bgLight: '#EEF4FB',
|
33
|
+
bgFooter: customFooter
|
34
|
+
? customFooter
|
35
|
+
: secondaryFooter
|
36
|
+
? shadeColor(secondary, -50)
|
37
|
+
: shadeColor(primary, -50),
|
38
|
+
btnDefault: secondary,
|
39
|
+
btnDefaultFontColor: getContrastYIQ(secondary),
|
40
|
+
btnDefaultDarker: shadeColor(secondary, -15),
|
41
|
+
btnDefaultLighter: shadeColor(secondary, 15),
|
42
|
+
btnSuccess: '#4DD964',
|
43
|
+
btnSuccessDarker: '#27B33E',
|
44
|
+
btnSuccessLighter: '#73FF8A',
|
45
|
+
btnDanger: '#EB011A',
|
46
|
+
btnDangerDarker: '#C50000',
|
47
|
+
btnDangerLighter: '#FF2740',
|
48
|
+
btnDisabled: '#D7D7D7',
|
49
|
+
btnHoverTextColor: getContrastYIQ(shadeColor(secondary, -15)),
|
50
|
+
alert: '#EB011A',
|
51
|
+
alertLight: '#FCD6DA',
|
52
|
+
alertBorder: 'rgba(235,1,26,0.25)',
|
53
|
+
info: '#F7B633',
|
54
|
+
infoMedium: '#FBDA99',
|
55
|
+
infoLight: '#FDEDCD',
|
56
|
+
infoBorder: 'rgba(247,182,51,0.5)',
|
57
|
+
success: '#4DD964',
|
58
|
+
successMedium: '#A6ECB2',
|
59
|
+
successLight: '#D2F5D8',
|
60
|
+
successBorder: 'rgba(77,217,100,0.5)',
|
61
|
+
border: '#CFD9EA',
|
62
|
+
gray10: '#BDBDBD',
|
63
|
+
gray20: '#efefef',
|
64
|
+
disabled: '#D7D7D7',
|
65
|
+
shadowSmall: '0px 2px 4px 0px rgba(0, 0, 0, 0.1)',
|
66
|
+
shadowBig: '0px 10px 15px 0px rgba(0, 0, 0, 0.1)',
|
67
|
+
illustrationGray: '#C3D0D8',
|
68
|
+
illustrationPrimary50: hexifyWithWhiteBackground(hexToRGBA(primary, 0.5)),
|
69
|
+
illustrationPrimary40: hexifyWithWhiteBackground(hexToRGBA(primary, 0.4)),
|
70
|
+
illustrationPrimary20: hexifyWithWhiteBackground(hexToRGBA(primary, 0.2)),
|
71
|
+
illustrationPrimary10: hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
|
72
|
+
illustrationPrimary5: hexifyWithWhiteBackground(hexToRGBA(primary, 0.08)),
|
73
|
+
sidemenuColor: sidemenuColor
|
74
|
+
? sidemenuColor
|
75
|
+
: `linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), linear-gradient(${primary}, ${primary})`,
|
76
|
+
sidemenuItemColor: sidemenuItemColor
|
77
|
+
? sidemenuItemColor
|
78
|
+
: `linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), linear-gradient(${primary}, ${primary})`,
|
79
|
+
submenuColor: submenuColor
|
80
|
+
? submenuColor
|
81
|
+
: `linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), linear-gradient(${primary}, ${primary})`,
|
82
|
+
submenuItemColor: submenuItemColor
|
83
|
+
? submenuItemColor
|
84
|
+
: shadeColor(primary, -50),
|
85
|
+
submenuTextColor: submenuTextColor
|
86
|
+
? submenuTextColor
|
87
|
+
: `rgba(255, 255, 255, 0.7)`,
|
88
|
+
submenuTextColorActive: submenuTextColorActive
|
89
|
+
? submenuTextColorActive
|
90
|
+
: `#ffffff`,
|
91
|
+
customPortalFooterColor: customPortalFooterColor,
|
92
|
+
}
|
93
|
+
return styles
|
94
|
+
}
|
95
|
+
|
96
|
+
// Helpers
|
97
|
+
const hexToRGBA = (hex, alpha) => {
|
98
|
+
var r = parseInt(hex.slice(1, 3), 16),
|
99
|
+
g = parseInt(hex.slice(3, 5), 16),
|
100
|
+
b = parseInt(hex.slice(5, 7), 16)
|
101
|
+
|
102
|
+
return 'rgba(' + r + ', ' + g + ', ' + b + ', ' + alpha + ')'
|
103
|
+
}
|
104
|
+
|
105
|
+
function hexifyWithWhiteBackground(color) {
|
106
|
+
var values = color
|
107
|
+
.replace(/rgba?\(/, '')
|
108
|
+
.replace(/\)/, '')
|
109
|
+
.replace(/[\s+]/g, '')
|
110
|
+
.split(',')
|
111
|
+
var a = parseFloat(values[3] || 1),
|
112
|
+
r = Math.floor(a * parseInt(values[0]) + (1 - a) * 255),
|
113
|
+
g = Math.floor(a * parseInt(values[1]) + (1 - a) * 255),
|
114
|
+
b = Math.floor(a * parseInt(values[2]) + (1 - a) * 255)
|
115
|
+
return (
|
116
|
+
'#' +
|
117
|
+
('0' + r.toString(16)).slice(-2) +
|
118
|
+
('0' + g.toString(16)).slice(-2) +
|
119
|
+
('0' + b.toString(16)).slice(-2)
|
120
|
+
)
|
121
|
+
}
|
122
|
+
|
123
|
+
const shadeColor = (color, percent) => {
|
124
|
+
var R = parseInt(color.substring(1, 3), 16)
|
125
|
+
var G = parseInt(color.substring(3, 5), 16)
|
126
|
+
var B = parseInt(color.substring(5, 7), 16)
|
127
|
+
|
128
|
+
R = parseInt('' + (R * (100 + percent)) / 100)
|
129
|
+
G = parseInt('' + (G * (100 + percent)) / 100)
|
130
|
+
B = parseInt('' + (B * (100 + percent)) / 100)
|
131
|
+
|
132
|
+
R = R < 255 ? R : 255
|
133
|
+
G = G < 255 ? G : 255
|
134
|
+
B = B < 255 ? B : 255
|
135
|
+
|
136
|
+
var RR = R.toString(16).length === 1 ? '0' + R.toString(16) : R.toString(16)
|
137
|
+
var GG = G.toString(16).length === 1 ? '0' + G.toString(16) : G.toString(16)
|
138
|
+
var BB = B.toString(16).length === 1 ? '0' + B.toString(16) : B.toString(16)
|
139
|
+
|
140
|
+
return '#' + RR + GG + BB
|
141
|
+
}
|
142
|
+
|
143
|
+
const getContrastYIQ = (hexcolor) => {
|
144
|
+
hexcolor = hexcolor.replace('#', '')
|
145
|
+
var r = parseInt(hexcolor.substr(0, 2), 16)
|
146
|
+
var g = parseInt(hexcolor.substr(2, 2), 16)
|
147
|
+
var b = parseInt(hexcolor.substr(4, 2), 16)
|
148
|
+
var yiq = (r * 299 + g * 587 + b * 114) / 1000
|
149
|
+
return yiq >= 128 ? 'black' : 'white'
|
150
|
+
}
|
151
|
+
|
152
|
+
const updateTheme = (bbl) => {
|
153
|
+
if (bbl) {
|
154
|
+
const b = bbls.find((x) => x.bbl === bbl)
|
155
|
+
console.log(b)
|
156
|
+
updateBbl(
|
157
|
+
b.bbl,
|
158
|
+
b.theme.primary,
|
159
|
+
b.theme.secondary,
|
160
|
+
b.theme.alpha,
|
161
|
+
b.theme.secondaryFooter,
|
162
|
+
b.theme.sidemenuColor,
|
163
|
+
b.theme.sidemenuItemColor,
|
164
|
+
b.theme.submenuColor,
|
165
|
+
b.theme.submenuItemColor,
|
166
|
+
b.theme.submenuTextColor,
|
167
|
+
b.theme.submenuTextColorActive,
|
168
|
+
b.theme.customBgColor,
|
169
|
+
b.theme.customPortalFooterColor,
|
170
|
+
b.theme.customFooter
|
171
|
+
)
|
172
|
+
} else {
|
173
|
+
for (const b of bbls) {
|
174
|
+
updateBbl(
|
175
|
+
b.bbl,
|
176
|
+
b.theme.primary,
|
177
|
+
b.theme.secondary,
|
178
|
+
b.theme.alpha,
|
179
|
+
b.theme.secondaryFooter,
|
180
|
+
b.theme.sidemenuColor,
|
181
|
+
b.theme.sidemenuItemColor,
|
182
|
+
b.theme.submenuColor,
|
183
|
+
b.theme.submenuItemColor,
|
184
|
+
b.theme.submenuTextColor,
|
185
|
+
b.theme.submenuTextColorActive,
|
186
|
+
b.theme.customBgColor,
|
187
|
+
b.theme.customPortalFooterColor,
|
188
|
+
b.theme.customFooter
|
189
|
+
)
|
190
|
+
}
|
191
|
+
}
|
192
|
+
}
|
193
|
+
|
194
|
+
const updateBbl = (
|
195
|
+
bbl,
|
196
|
+
primary,
|
197
|
+
secondary,
|
198
|
+
bgalpha,
|
199
|
+
secondaryFooter = false,
|
200
|
+
sidemenuColor,
|
201
|
+
sidemenuItemColor,
|
202
|
+
submenuColor,
|
203
|
+
submenuItemColor,
|
204
|
+
submenuTextColor,
|
205
|
+
submenuTextColorActive,
|
206
|
+
customBgColor,
|
207
|
+
customPortalFooterColor,
|
208
|
+
customFooter
|
209
|
+
) => {
|
210
|
+
let data = JSON.stringify(
|
211
|
+
initTheme(
|
212
|
+
primary,
|
213
|
+
secondary,
|
214
|
+
bgalpha,
|
215
|
+
secondaryFooter,
|
216
|
+
sidemenuColor,
|
217
|
+
sidemenuItemColor,
|
218
|
+
submenuColor,
|
219
|
+
submenuItemColor,
|
220
|
+
submenuTextColor,
|
221
|
+
submenuTextColorActive,
|
222
|
+
customBgColor,
|
223
|
+
customPortalFooterColor,
|
224
|
+
customFooter
|
225
|
+
)
|
226
|
+
)
|
227
|
+
console.log(data)
|
228
|
+
fs.writeFileSync('themes/' + bbl + '/styles.json', data)
|
229
|
+
}
|
230
|
+
|
231
|
+
const bbls = [
|
232
|
+
{
|
233
|
+
bbl: 'arendal',
|
234
|
+
theme: {
|
235
|
+
primary: '#ED088A',
|
236
|
+
secondary: '#22475F',
|
237
|
+
alpha: '0.02',
|
238
|
+
secondaryFooter: true,
|
239
|
+
},
|
240
|
+
},
|
241
|
+
{
|
242
|
+
bbl: 'kongsberg',
|
243
|
+
theme: {
|
244
|
+
primary: '#ED088A',
|
245
|
+
secondary: '#22475F',
|
246
|
+
alpha: '0.02',
|
247
|
+
secondaryFooter: true,
|
248
|
+
sidemenuColor: '#760445',
|
249
|
+
submenuColor: '#A50660',
|
250
|
+
submenuTextColor: 'rgba(255, 255, 255, 0.8)',
|
251
|
+
},
|
252
|
+
},
|
253
|
+
{
|
254
|
+
bbl: 'labo',
|
255
|
+
theme: {
|
256
|
+
primary: '#ED088A',
|
257
|
+
secondary: '#22475F',
|
258
|
+
alpha: '0.02',
|
259
|
+
secondaryFooter: true,
|
260
|
+
},
|
261
|
+
},
|
262
|
+
{
|
263
|
+
bbl: 'mobo',
|
264
|
+
theme: {
|
265
|
+
primary: '#ED088A',
|
266
|
+
secondary: '#22475F',
|
267
|
+
alpha: '0.02',
|
268
|
+
secondaryFooter: true,
|
269
|
+
},
|
270
|
+
},
|
271
|
+
{
|
272
|
+
bbl: 'moborana',
|
273
|
+
theme: {
|
274
|
+
primary: '#ED088A',
|
275
|
+
secondary: '#22475F',
|
276
|
+
alpha: '0.02',
|
277
|
+
secondaryFooter: true,
|
278
|
+
},
|
279
|
+
},
|
280
|
+
{
|
281
|
+
bbl: 'mosjoen',
|
282
|
+
theme: {
|
283
|
+
primary: '#ED088A',
|
284
|
+
secondary: '#22475F',
|
285
|
+
alpha: '0.02',
|
286
|
+
secondaryFooter: true,
|
287
|
+
},
|
288
|
+
},
|
289
|
+
{
|
290
|
+
bbl: 'notodden',
|
291
|
+
theme: {
|
292
|
+
primary: '#ED088A',
|
293
|
+
secondary: '#22475F',
|
294
|
+
alpha: '0.02',
|
295
|
+
secondaryFooter: true,
|
296
|
+
},
|
297
|
+
},
|
298
|
+
{
|
299
|
+
bbl: 'polarlys',
|
300
|
+
theme: {
|
301
|
+
primary: '#ED088A',
|
302
|
+
secondary: '#22475F',
|
303
|
+
alpha: '0.02',
|
304
|
+
secondaryFooter: true,
|
305
|
+
},
|
306
|
+
},
|
307
|
+
{
|
308
|
+
bbl: 'sunnbo',
|
309
|
+
theme: {
|
310
|
+
primary: '#0075B2',
|
311
|
+
secondary: '#00527C',
|
312
|
+
alpha: '0.02',
|
313
|
+
},
|
314
|
+
},
|
315
|
+
{
|
316
|
+
bbl: 'vansjobbl',
|
317
|
+
theme: {
|
318
|
+
primary: '#ED088A',
|
319
|
+
secondary: '#22475F',
|
320
|
+
alpha: '0.02',
|
321
|
+
secondaryFooter: true,
|
322
|
+
sidemenuColor: '#760445',
|
323
|
+
submenuColor: '#A50660',
|
324
|
+
submenuTextColor: 'rgba(255, 255, 255, 0.8)',
|
325
|
+
},
|
326
|
+
},
|
327
|
+
{
|
328
|
+
bbl: 'bori',
|
329
|
+
theme: {
|
330
|
+
primary: '#006930',
|
331
|
+
secondary: '#7AB800',
|
332
|
+
alpha: '0.02',
|
333
|
+
},
|
334
|
+
},
|
335
|
+
{
|
336
|
+
bbl: 'bbld',
|
337
|
+
theme: {
|
338
|
+
primary: '#1657E2',
|
339
|
+
secondary: '#10105A',
|
340
|
+
alpha: '0.02',
|
341
|
+
},
|
342
|
+
},
|
343
|
+
{
|
344
|
+
bbl: 'sobbl',
|
345
|
+
theme: {
|
346
|
+
primary: '#227F48',
|
347
|
+
secondary: '#213228',
|
348
|
+
alpha: '0.02',
|
349
|
+
},
|
350
|
+
},
|
351
|
+
{
|
352
|
+
bbl: 'kobbl',
|
353
|
+
theme: {
|
354
|
+
primary: '#A71930',
|
355
|
+
secondary: '#B7C9D3',
|
356
|
+
alpha: '0.02',
|
357
|
+
secondaryFooter: true,
|
358
|
+
},
|
359
|
+
},
|
360
|
+
{
|
361
|
+
bbl: 'ringbo',
|
362
|
+
theme: {
|
363
|
+
primary: '#6585AF',
|
364
|
+
secondary: '#E64596',
|
365
|
+
alpha: '0.02',
|
366
|
+
},
|
367
|
+
},
|
368
|
+
{
|
369
|
+
bbl: 'abbl',
|
370
|
+
theme: {
|
371
|
+
primary: '#227F48',
|
372
|
+
secondary: '#213228',
|
373
|
+
alpha: '0.02',
|
374
|
+
},
|
375
|
+
},
|
376
|
+
{
|
377
|
+
bbl: 'bob',
|
378
|
+
theme: {
|
379
|
+
primary: '#582484',
|
380
|
+
secondary: '#C5E6EF',
|
381
|
+
alpha: '0.02',
|
382
|
+
},
|
383
|
+
},
|
384
|
+
{
|
385
|
+
bbl: 'tobb',
|
386
|
+
theme: {
|
387
|
+
primary: '#477A7B',
|
388
|
+
secondary: '#003865',
|
389
|
+
alpha: '0.04',
|
390
|
+
},
|
391
|
+
},
|
392
|
+
{
|
393
|
+
bbl: 'bomidt',
|
394
|
+
theme: {
|
395
|
+
primary: '#1897B7',
|
396
|
+
secondary: '#4F67AB',
|
397
|
+
alpha: '0.04',
|
398
|
+
},
|
399
|
+
},
|
400
|
+
{
|
401
|
+
bbl: 'bori',
|
402
|
+
theme: {
|
403
|
+
primary: '#006930',
|
404
|
+
secondary: '#7AB800',
|
405
|
+
alpha: '0.02',
|
406
|
+
},
|
407
|
+
},
|
408
|
+
{
|
409
|
+
bbl: 'gobb',
|
410
|
+
theme: {
|
411
|
+
primary: '#661B39',
|
412
|
+
secondary: '#273D45',
|
413
|
+
alpha: '0.04',
|
414
|
+
},
|
415
|
+
},
|
416
|
+
{
|
417
|
+
bbl: 'sorbbl',
|
418
|
+
theme: {
|
419
|
+
primary: '#0075B2',
|
420
|
+
secondary: '#00527C',
|
421
|
+
alpha: '0.02',
|
422
|
+
},
|
423
|
+
},
|
424
|
+
{
|
425
|
+
bbl: 'sbbl',
|
426
|
+
theme: {
|
427
|
+
primary: '#0075B2',
|
428
|
+
secondary: '#00527C',
|
429
|
+
alpha: '0.02',
|
430
|
+
},
|
431
|
+
},
|
432
|
+
{
|
433
|
+
bbl: 'bate',
|
434
|
+
theme: {
|
435
|
+
primary: '#D31F2C',
|
436
|
+
secondary: '#1D1D1B',
|
437
|
+
alpha: '0.02',
|
438
|
+
secondaryFooter: true,
|
439
|
+
},
|
440
|
+
},
|
441
|
+
{
|
442
|
+
bbl: 'nbbo',
|
443
|
+
theme: {
|
444
|
+
primary: '#009199',
|
445
|
+
secondary: '#812979',
|
446
|
+
alpha: '0.02',
|
447
|
+
secondaryFooter: true,
|
448
|
+
},
|
449
|
+
},
|
450
|
+
{
|
451
|
+
bbl: 'haubo',
|
452
|
+
theme: {
|
453
|
+
primary: '#D12725',
|
454
|
+
secondary: '#1C1C1C',
|
455
|
+
alpha: '0.04',
|
456
|
+
secondaryFooter: true,
|
457
|
+
},
|
458
|
+
},
|
459
|
+
{
|
460
|
+
bbl: 'obf',
|
461
|
+
theme: {
|
462
|
+
primary: '#297154',
|
463
|
+
secondary: '#F9F1DF',
|
464
|
+
customBgColor: '#F8F8F8',
|
465
|
+
alpha: '0.04',
|
466
|
+
sidemenuColor: '#14382A',
|
467
|
+
sidemenuItemColor: '#184432',
|
468
|
+
submenuColor: '#194432',
|
469
|
+
customPortalFooterColor: 'rgb(20, 56, 42)',
|
470
|
+
customFooter: '#297154',
|
471
|
+
},
|
472
|
+
},
|
473
|
+
{
|
474
|
+
bbl: 'rtbbl',
|
475
|
+
theme: {
|
476
|
+
primary: '#AA96ED',
|
477
|
+
secondary: '#22475F',
|
478
|
+
alpha: '0.02',
|
479
|
+
secondaryFooter: true,
|
480
|
+
},
|
481
|
+
},
|
482
|
+
{
|
483
|
+
bbl: 'rjukantinn',
|
484
|
+
theme: {
|
485
|
+
primary: '#AA96ED',
|
486
|
+
secondary: '#22475F',
|
487
|
+
alpha: '0.02',
|
488
|
+
secondaryFooter: true,
|
489
|
+
},
|
490
|
+
},
|
491
|
+
{
|
492
|
+
bbl: 'pbbl',
|
493
|
+
theme: {
|
494
|
+
primary: '#0088B8',
|
495
|
+
secondary: '#ED088A',
|
496
|
+
alpha: '0.02',
|
497
|
+
},
|
498
|
+
},
|
499
|
+
{
|
500
|
+
bbl: 'usbl',
|
501
|
+
theme: {
|
502
|
+
primary: '#FA8268',
|
503
|
+
secondary: '#D24448',
|
504
|
+
alpha: '0.04',
|
505
|
+
secondaryFooter: true,
|
506
|
+
sidemenuColor: '#D04547',
|
507
|
+
sidemenuItemColor: '#A73A37',
|
508
|
+
submenuColor: '#F5F2EB',
|
509
|
+
submenuItemColor: 'white',
|
510
|
+
submenuTextColor: 'rgba(0, 0, 0, 0.7)',
|
511
|
+
submenuTextColorActive: 'black',
|
512
|
+
customBgColor: '#FCFBF8',
|
513
|
+
customPortalFooterColor: '#343E40',
|
514
|
+
},
|
515
|
+
},
|
516
|
+
{
|
517
|
+
bbl: 'bodo',
|
518
|
+
theme: {
|
519
|
+
primary: '#DD2C2A',
|
520
|
+
secondary: '#240216',
|
521
|
+
alpha: '0.02',
|
522
|
+
secondaryFooter: true,
|
523
|
+
},
|
524
|
+
},
|
525
|
+
{
|
526
|
+
bbl: 'nobl',
|
527
|
+
theme: {
|
528
|
+
primary: '#DD2C2A',
|
529
|
+
secondary: '#240216',
|
530
|
+
alpha: '0.02',
|
531
|
+
secondaryFooter: true,
|
532
|
+
},
|
533
|
+
},
|
534
|
+
{
|
535
|
+
bbl: 'omt',
|
536
|
+
theme: {
|
537
|
+
primary: '#04A2D7',
|
538
|
+
secondary: '#32395A',
|
539
|
+
alpha: '0.02',
|
540
|
+
secondaryFooter: true,
|
541
|
+
},
|
542
|
+
},
|
543
|
+
{
|
544
|
+
bbl: 'kbbl',
|
545
|
+
theme: {
|
546
|
+
primary: '#7FAB93',
|
547
|
+
secondary: '#BCB3A2',
|
548
|
+
alpha: '0.02',
|
549
|
+
secondaryFooter: true,
|
550
|
+
},
|
551
|
+
},
|
552
|
+
{
|
553
|
+
bbl: 'bonord',
|
554
|
+
theme: {
|
555
|
+
primary: '#3D8471',
|
556
|
+
secondary: '#E5AF7C',
|
557
|
+
alpha: '0.04',
|
558
|
+
},
|
559
|
+
},
|
560
|
+
{
|
561
|
+
bbl: 'vestbo',
|
562
|
+
theme: {
|
563
|
+
primary: '#6BC0DC',
|
564
|
+
secondary: '#466091',
|
565
|
+
alpha: '0.04',
|
566
|
+
secondaryFooter: true,
|
567
|
+
},
|
568
|
+
},
|
569
|
+
{
|
570
|
+
bbl: 'nbbl',
|
571
|
+
theme: {
|
572
|
+
primary: '#ED088A',
|
573
|
+
secondary: '#22475F',
|
574
|
+
alpha: '0.02',
|
575
|
+
secondaryFooter: true,
|
576
|
+
},
|
577
|
+
},
|
578
|
+
{
|
579
|
+
bbl: 'kragero',
|
580
|
+
theme: {
|
581
|
+
primary: '#6585AF',
|
582
|
+
secondary: '#E64596',
|
583
|
+
alpha: '0.02',
|
584
|
+
},
|
585
|
+
},
|
586
|
+
{
|
587
|
+
bbl: 'habo',
|
588
|
+
theme: {
|
589
|
+
primary: '#345681',
|
590
|
+
secondary: '#ED088A',
|
591
|
+
alpha: '0.02',
|
592
|
+
},
|
593
|
+
},
|
594
|
+
{
|
595
|
+
bbl: 'aardal',
|
596
|
+
theme: {
|
597
|
+
primary: '#710718',
|
598
|
+
secondary: '#22475F',
|
599
|
+
alpha: '0.02',
|
600
|
+
},
|
601
|
+
},
|
602
|
+
{
|
603
|
+
bbl: 'skien',
|
604
|
+
theme: {
|
605
|
+
primary: '#ED088A',
|
606
|
+
secondary: '#ED088A',
|
607
|
+
alpha: '0.02',
|
608
|
+
},
|
609
|
+
},
|
610
|
+
]
|
611
|
+
|
612
|
+
updateTheme()
|