@bbl-digital/snorre 4.1.81 → 4.1.83
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 +574 -569
- package/esm/app-shell/index.js +2 -2
- 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/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 +11 -11
- package/esm/core/Button/styles.js +19 -19
- 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/FileInput/styles.js +14 -14
- 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/Image/styles.js +6 -6
- package/esm/core/ImagePicker/IconWithBackground.js +1 -1
- package/esm/core/ImagePicker/UploadButton.js +1 -1
- package/esm/core/ImagePicker/styles.js +11 -11
- package/esm/core/ImageViewer/index.js +1 -1
- package/esm/core/ImageViewer/styles.js +7 -7
- package/esm/core/InfoButton/styles.js +9 -9
- package/esm/core/Input/styles.js +19 -19
- 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/Modal/ActionButtons/index.js +1 -1
- 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/NotificationRow/styles.js +3 -3
- package/esm/core/NotificationsMenu/styles.js +3 -3
- package/esm/core/PieChart/styles.js +2 -2
- package/esm/core/PreemptionCard/styles.js +3 -3
- package/esm/core/PreemptionCardLoading/styles.js +3 -3
- package/esm/core/QuillEditor/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 +14 -14
- package/esm/core/SearchSelect/styles.js +5 -5
- package/esm/core/Select/index.js +9 -4
- package/esm/core/Select/styles.js +18 -18
- 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/Stepper/MobileStep/styles.js +7 -7
- package/esm/core/Stepper/Step/index.js +1 -1
- package/esm/core/Stepper/Step/styles.js +5 -5
- package/esm/core/Stepper/styles.js +3 -3
- 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 +13 -13
- package/esm/core/Text/styles.js +16 -16
- package/esm/core/Textarea/styles.js +7 -7
- package/esm/core/Timeline/TimelineStep/styles.js +6 -6
- package/esm/core/Timeline/styles.js +1 -1
- package/esm/core/Timepicker/index.js +3 -3
- package/esm/core/Timepicker/styles.js +7 -7
- package/esm/core/Tooltip/styles.js +2 -2
- package/esm/core/UnitIllustration/index.js +9 -9
- package/esm/core/UserMenu/styles.js +7 -7
- package/esm/core/Video/styles.js +1 -1
- package/esm/core/YearWheel/styles.js +3 -3
- package/esm/enums/Keyboard.js +2 -2
- package/esm/globals/styles/quill.module.js +1 -0
- 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 +8 -8
- package/esm/layout/Menu/AppPicker/styles.js +5 -5
- package/esm/layout/Menu/MainMenu/styles.js +2 -2
- package/esm/layout/Menu/MenuItem/styles.js +3 -3
- 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 +15 -15
- package/esm/layout/Topbar/styles.js +1 -1
- package/esm/shared/components/SbIconGrid/index.js +1 -1
- package/esm/shared/components/VisuallyHidden/index.js +4 -4
- package/esm/shared/recharts/CustomLegend/styles.js +2 -2
- package/esm/shared/recharts/CustomTooltip/styles.js +3 -3
- package/esm/utils/time.js +14 -14
- package/esm/v2/Memberbenefits/MemberbenefitsCard/styles.js +12 -12
- package/esm/v2/core/Box/styles.js +9 -9
- package/esm/v2/core/BoxedTable/DraggableRow/styles.js +5 -5
- package/esm/v2/core/BoxedTable/HeaderCell/styles.js +2 -2
- package/esm/v2/core/BoxedTable/RowCell/index.js +1 -1
- package/esm/v2/core/BoxedTable/RowCell/styles.js +9 -9
- package/esm/v2/core/BoxedTable/TableHeader/styles.js +1 -1
- package/esm/v2/core/BoxedTable/TableRow/styles.js +8 -8
- package/esm/v2/core/BoxedTable/styles.js +16 -16
- package/esm/v2/core/Button/styles.js +19 -19
- package/esm/v2/core/ButtonsFilter/styles.js +1 -1
- package/esm/v2/core/Chip/styles.js +11 -11
- package/esm/v2/core/TabNav/TabNavItem/styles.js +6 -6
- package/esm/v2/core/TabNav/styles.js +7 -7
- package/infrastructure/azure-pipelines.yml +34 -34
- package/jest.config.js +34 -34
- package/lib/app-shell/index.js +2 -2
- package/lib/core/Alert/styles.js +6 -6
- package/lib/core/AppLoader/styles.js +1 -1
- package/lib/core/Autocomplete/styles.d.ts.map +1 -1
- package/lib/core/Autocomplete/styles.js +18 -18
- package/lib/core/Banner/styles.d.ts.map +1 -1
- package/lib/core/Banner/styles.js +4 -4
- package/lib/core/BarAndLineComposedChart/styles.d.ts.map +1 -1
- package/lib/core/BarAndLineComposedChart/styles.js +1 -1
- package/lib/core/BarChartWithCustomizedEvent/styles.d.ts.map +1 -1
- package/lib/core/BarChartWithCustomizedEvent/styles.js +1 -1
- package/lib/core/Box/styles.d.ts.map +1 -1
- package/lib/core/Box/styles.js +7 -7
- package/lib/core/BoxedTable/DraggableRow/styles.d.ts.map +1 -1
- package/lib/core/BoxedTable/DraggableRow/styles.js +5 -5
- package/lib/core/BoxedTable/HeaderCell/styles.js +2 -2
- package/lib/core/BoxedTable/RowCell/index.js +1 -1
- package/lib/core/BoxedTable/RowCell/styles.js +9 -9
- package/lib/core/BoxedTable/TableHeader/styles.d.ts.map +1 -1
- package/lib/core/BoxedTable/TableHeader/styles.js +1 -1
- package/lib/core/BoxedTable/TableRow/styles.d.ts.map +1 -1
- package/lib/core/BoxedTable/TableRow/styles.js +8 -8
- package/lib/core/BoxedTable/styles.d.ts.map +1 -1
- package/lib/core/BoxedTable/styles.js +11 -11
- package/lib/core/Button/index.d.ts.map +1 -1
- package/lib/core/Button/styles.js +19 -19
- package/lib/core/Calendar/CalendarEvent/styles.d.ts.map +1 -1
- package/lib/core/Calendar/CalendarEvent/styles.js +5 -5
- package/lib/core/Calendar/CalendarSmallEvent/styles.d.ts.map +1 -1
- package/lib/core/Calendar/CalendarSmallEvent/styles.js +5 -5
- package/lib/core/Calendar/styles.d.ts.map +1 -1
- package/lib/core/Calendar/styles.js +5 -5
- package/lib/core/Card/styles.js +11 -11
- package/lib/core/Checkbox/styles.js +5 -5
- package/lib/core/CollapseList/styles.d.ts.map +1 -1
- package/lib/core/CollapseList/styles.js +2 -2
- package/lib/core/CommentsTimeline/CommentLine/styles.d.ts.map +1 -1
- package/lib/core/CommentsTimeline/CommentLine/styles.js +4 -4
- package/lib/core/CommentsTimeline/styles.d.ts.map +1 -1
- package/lib/core/CommentsTimeline/styles.js +1 -1
- package/lib/core/CustomText/styles.d.ts.map +1 -1
- package/lib/core/CustomText/styles.js +2 -2
- package/lib/core/Datepicker/styles.d.ts.map +1 -1
- package/lib/core/Datepicker/styles.js +9 -9
- package/lib/core/DatepickerRange/styles.d.ts.map +1 -1
- package/lib/core/DatepickerRange/styles.js +9 -9
- package/lib/core/Divider/styles.js +5 -5
- package/lib/core/Dropdown/styles.js +3 -3
- package/lib/core/DropdownMenu/styles.d.ts.map +1 -1
- package/lib/core/DropdownMenu/styles.js +3 -3
- package/lib/core/FileInput/styles.d.ts.map +1 -1
- package/lib/core/FileInput/styles.js +14 -14
- package/lib/core/GoogleButton/styles.d.ts.map +1 -1
- package/lib/core/GoogleButton/styles.js +1 -1
- package/lib/core/Header/styles.js +7 -7
- package/lib/core/HighlightText/styles.d.ts.map +1 -1
- package/lib/core/HighlightText/styles.js +1 -1
- package/lib/core/Image/styles.js +6 -6
- package/lib/core/ImagePicker/IconWithBackground.js +1 -1
- package/lib/core/ImagePicker/UploadButton.js +1 -1
- package/lib/core/ImagePicker/styles.js +11 -11
- package/lib/core/ImageViewer/index.js +1 -1
- package/lib/core/ImageViewer/styles.js +7 -7
- package/lib/core/InfoButton/styles.d.ts.map +1 -1
- package/lib/core/InfoButton/styles.js +9 -9
- package/lib/core/Input/styles.js +19 -19
- package/lib/core/Link/styles.d.ts.map +1 -1
- package/lib/core/Link/styles.js +10 -10
- package/lib/core/List/Item.js +1 -1
- package/lib/core/List/styles.js +11 -11
- package/lib/core/ListPager/styles.d.ts.map +1 -1
- package/lib/core/ListPager/styles.js +3 -3
- package/lib/core/Modal/ActionButtons/index.js +1 -1
- package/lib/core/Modal/index.d.ts.map +1 -1
- package/lib/core/Modal/styles.d.ts.map +1 -1
- package/lib/core/Modal/styles.js +8 -8
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.d.ts.map +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.js +4 -4
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.d.ts.map +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.js +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.d.ts.map +1 -1
- package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +3 -3
- package/lib/core/NoticeCard/styles.d.ts.map +1 -1
- package/lib/core/NoticeCard/styles.js +4 -4
- package/lib/core/NotificationCounter/styles.js +1 -1
- package/lib/core/NotificationsMenu/NotificationRow/styles.d.ts.map +1 -1
- package/lib/core/NotificationsMenu/NotificationRow/styles.js +3 -3
- package/lib/core/NotificationsMenu/styles.d.ts.map +1 -1
- package/lib/core/NotificationsMenu/styles.js +3 -3
- package/lib/core/PieChart/styles.d.ts.map +1 -1
- package/lib/core/PieChart/styles.js +2 -2
- package/lib/core/PreemptionCard/styles.d.ts.map +1 -1
- package/lib/core/PreemptionCard/styles.js +3 -3
- package/lib/core/PreemptionCardLoading/styles.d.ts.map +1 -1
- package/lib/core/PreemptionCardLoading/styles.js +3 -3
- package/lib/core/QuillEditor/config.d.ts +3 -3
- package/lib/core/QuillEditor/styles.d.ts.map +1 -1
- package/lib/core/QuillEditor/styles.js +3 -3
- package/lib/core/Radio/styles.js +4 -4
- package/lib/core/SearchFilter/index.js +1 -1
- package/lib/core/SearchFilter/styles.d.ts.map +1 -1
- package/lib/core/SearchFilter/styles.js +14 -14
- package/lib/core/SearchSelect/styles.d.ts.map +1 -1
- package/lib/core/SearchSelect/styles.js +5 -5
- package/lib/core/Select/index.d.ts +2 -0
- package/lib/core/Select/index.d.ts.map +1 -1
- package/lib/core/Select/index.js +9 -4
- package/lib/core/Select/styles.d.ts.map +1 -1
- package/lib/core/Select/styles.js +18 -18
- package/lib/core/SimpleBarChart/styles.d.ts.map +1 -1
- package/lib/core/SimpleBarChart/styles.js +1 -1
- package/lib/core/SimpleLineChart/styles.d.ts.map +1 -1
- package/lib/core/SimpleLineChart/styles.js +1 -1
- package/lib/core/Skeleton/styles.d.ts.map +1 -1
- package/lib/core/Skeleton/styles.js +4 -4
- package/lib/core/Spinner/styles.js +5 -5
- package/lib/core/Stepper/MobileStep/styles.d.ts.map +1 -1
- package/lib/core/Stepper/MobileStep/styles.js +7 -7
- package/lib/core/Stepper/Step/index.js +1 -1
- package/lib/core/Stepper/Step/styles.d.ts.map +1 -1
- package/lib/core/Stepper/Step/styles.js +5 -5
- package/lib/core/Stepper/styles.d.ts.map +1 -1
- package/lib/core/Stepper/styles.js +3 -3
- package/lib/core/TabBar/TabItem/styles.d.ts.map +1 -1
- package/lib/core/TabBar/TabItem/styles.js +1 -1
- package/lib/core/TabBar/styles.d.ts.map +1 -1
- package/lib/core/TabBar/styles.js +1 -1
- package/lib/core/TabNav/TabNavItem/styles.d.ts.map +1 -1
- package/lib/core/TabNav/TabNavItem/styles.js +5 -5
- package/lib/core/TabNav/styles.d.ts.map +1 -1
- package/lib/core/TabNav/styles.js +8 -8
- package/lib/core/Table/styles.d.ts.map +1 -1
- package/lib/core/Table/styles.js +16 -16
- package/lib/core/Tag/styles.js +13 -13
- package/lib/core/Text/styles.js +16 -16
- package/lib/core/Textarea/styles.d.ts.map +1 -1
- package/lib/core/Textarea/styles.js +7 -7
- package/lib/core/Timeline/TimelineStep/styles.d.ts.map +1 -1
- package/lib/core/Timeline/TimelineStep/styles.js +6 -6
- package/lib/core/Timeline/styles.d.ts.map +1 -1
- package/lib/core/Timeline/styles.js +1 -1
- package/lib/core/Timepicker/index.js +3 -3
- package/lib/core/Timepicker/styles.d.ts.map +1 -1
- package/lib/core/Timepicker/styles.js +7 -7
- package/lib/core/Tooltip/styles.js +2 -2
- package/lib/core/UnitIllustration/index.js +9 -9
- package/lib/core/UserMenu/styles.d.ts.map +1 -1
- package/lib/core/UserMenu/styles.js +7 -7
- package/lib/core/Video/styles.d.ts.map +1 -1
- package/lib/core/Video/styles.js +1 -1
- package/lib/core/YearWheel/styles.d.ts.map +1 -1
- package/lib/core/YearWheel/styles.js +3 -3
- package/lib/enums/Keyboard.js +2 -2
- package/lib/globals/styles/quill.module.d.ts +2 -0
- package/lib/globals/styles/quill.module.d.ts.map +1 -0
- package/lib/globals/styles/quill.module.js +1 -0
- package/lib/globals/styles/styles.js +1 -1
- package/lib/illustrations/styles.js +2 -2
- package/lib/layout/Footer/FooterButton/styles.d.ts.map +1 -1
- package/lib/layout/Footer/FooterButton/styles.js +1 -1
- package/lib/layout/Footer/FooterCol/styles.d.ts.map +1 -1
- package/lib/layout/Footer/FooterCol/styles.js +1 -1
- package/lib/layout/Footer/FooterGroup/styles.d.ts.map +1 -1
- package/lib/layout/Footer/FooterGroup/styles.js +1 -1
- package/lib/layout/Footer/FooterLabel/styles.d.ts.map +1 -1
- package/lib/layout/Footer/FooterLabel/styles.js +1 -1
- package/lib/layout/Footer/FooterLink/styles.d.ts.map +1 -1
- package/lib/layout/Footer/FooterLink/styles.js +1 -1
- package/lib/layout/Footer/styles.d.ts.map +1 -1
- package/lib/layout/Footer/styles.js +2 -2
- package/lib/layout/Layout/styles.d.ts.map +1 -1
- package/lib/layout/Layout/styles.js +1 -1
- package/lib/layout/LayoutShell/styles.d.ts.map +1 -1
- package/lib/layout/LayoutShell/styles.js +8 -8
- package/lib/layout/Menu/AppPicker/styles.d.ts.map +1 -1
- package/lib/layout/Menu/AppPicker/styles.js +5 -5
- package/lib/layout/Menu/MainMenu/styles.d.ts.map +1 -1
- package/lib/layout/Menu/MainMenu/styles.js +2 -2
- package/lib/layout/Menu/MenuItem/styles.d.ts.map +1 -1
- package/lib/layout/Menu/MenuItem/styles.js +3 -3
- package/lib/layout/Menu/MenuSpacer/styles.d.ts.map +1 -1
- package/lib/layout/Menu/MenuSpacer/styles.js +1 -1
- package/lib/layout/Menu/MenuTop/styles.d.ts.map +1 -1
- package/lib/layout/Menu/MenuTop/styles.js +3 -3
- package/lib/layout/Menu/SecondaryMenu/styles.d.ts.map +1 -1
- package/lib/layout/Menu/SecondaryMenu/styles.js +4 -4
- package/lib/layout/Menu/SecondaryMenuItem/styles.js +1 -1
- package/lib/layout/Menu/styles.d.ts.map +1 -1
- package/lib/layout/Menu/styles.js +1 -1
- package/lib/layout/Submenu/SubmenuItem/styles.js +3 -3
- package/lib/layout/Submenu/styles.d.ts.map +1 -1
- package/lib/layout/Submenu/styles.js +15 -15
- package/lib/layout/Topbar/styles.js +1 -1
- package/lib/shared/components/SbIconGrid/index.js +1 -1
- package/lib/shared/components/VisuallyHidden/index.d.ts.map +1 -1
- package/lib/shared/components/VisuallyHidden/index.js +4 -4
- package/lib/shared/recharts/CustomLegend/styles.d.ts.map +1 -1
- package/lib/shared/recharts/CustomLegend/styles.js +2 -2
- package/lib/shared/recharts/CustomTooltip/styles.d.ts.map +1 -1
- package/lib/shared/recharts/CustomTooltip/styles.js +3 -3
- package/lib/utils/time.js +14 -14
- package/lib/v2/Memberbenefits/MemberbenefitsCard/styles.d.ts.map +1 -1
- package/lib/v2/Memberbenefits/MemberbenefitsCard/styles.js +12 -12
- package/lib/v2/core/Box/styles.d.ts.map +1 -1
- package/lib/v2/core/Box/styles.js +9 -9
- package/lib/v2/core/BoxedTable/DraggableRow/styles.d.ts.map +1 -1
- package/lib/v2/core/BoxedTable/DraggableRow/styles.js +5 -5
- package/lib/v2/core/BoxedTable/HeaderCell/styles.js +2 -2
- package/lib/v2/core/BoxedTable/RowCell/index.js +1 -1
- package/lib/v2/core/BoxedTable/RowCell/styles.js +9 -9
- package/lib/v2/core/BoxedTable/TableHeader/styles.d.ts.map +1 -1
- package/lib/v2/core/BoxedTable/TableHeader/styles.js +1 -1
- package/lib/v2/core/BoxedTable/TableRow/styles.d.ts.map +1 -1
- package/lib/v2/core/BoxedTable/TableRow/styles.js +8 -8
- package/lib/v2/core/BoxedTable/styles.d.ts.map +1 -1
- package/lib/v2/core/BoxedTable/styles.js +16 -16
- package/lib/v2/core/Button/index.d.ts.map +1 -1
- package/lib/v2/core/Button/styles.js +19 -19
- package/lib/v2/core/ButtonsFilter/styles.d.ts.map +1 -1
- package/lib/v2/core/ButtonsFilter/styles.js +1 -1
- package/lib/v2/core/Chip/styles.d.ts.map +1 -1
- package/lib/v2/core/Chip/styles.js +11 -11
- package/lib/v2/core/TabNav/TabNavItem/styles.d.ts.map +1 -1
- package/lib/v2/core/TabNav/TabNavItem/styles.js +6 -6
- package/lib/v2/core/TabNav/styles.d.ts.map +1 -1
- package/lib/v2/core/TabNav/styles.js +7 -7
- package/package.json +1 -1
- package/rollup.config.js +13 -13
- package/theme-bbls.js +467 -467
- package/theme-generator.js +448 -448
- package/theme-helpers.js +62 -62
- package/vite.config.js +6 -6
- package/esm/core/Editor/Editor.stories.js +0 -56
- package/esm/core/Editor/config.js +0 -7
- package/esm/core/Editor/index.js +0 -113
- package/esm/core/Editor/styles.js +0 -43
- package/esm/core/EditorQuillReact/EditorQuillReact.stories.js +0 -59
- package/esm/core/EditorQuillReact/IndentAttributor.js +0 -15
- package/esm/core/EditorQuillReact/config.js +0 -31
- package/esm/core/EditorQuillReact/index.js +0 -103
- package/esm/core/EditorQuillReact/styles.js +0 -34
- package/esm/shared/types/LoadedType.js +0 -1
- package/lib/core/Editor/Editor.stories.d.ts +0 -11
- package/lib/core/Editor/Editor.stories.d.ts.map +0 -1
- package/lib/core/Editor/Editor.stories.js +0 -56
- package/lib/core/Editor/config.d.ts +0 -6
- package/lib/core/Editor/config.d.ts.map +0 -1
- package/lib/core/Editor/config.js +0 -7
- package/lib/core/Editor/index.d.ts +0 -44
- package/lib/core/Editor/index.d.ts.map +0 -1
- package/lib/core/Editor/index.js +0 -113
- package/lib/core/Editor/styles.d.ts +0 -14
- package/lib/core/Editor/styles.d.ts.map +0 -1
- package/lib/core/Editor/styles.js +0 -43
- package/lib/core/EditorQuillReact/EditorQuillReact.stories.d.ts +0 -8
- package/lib/core/EditorQuillReact/EditorQuillReact.stories.d.ts.map +0 -1
- package/lib/core/EditorQuillReact/EditorQuillReact.stories.js +0 -59
- package/lib/core/EditorQuillReact/IndentAttributor.d.ts +0 -7
- package/lib/core/EditorQuillReact/IndentAttributor.d.ts.map +0 -1
- package/lib/core/EditorQuillReact/IndentAttributor.js +0 -15
- package/lib/core/EditorQuillReact/config.d.ts +0 -30
- package/lib/core/EditorQuillReact/config.d.ts.map +0 -1
- package/lib/core/EditorQuillReact/config.js +0 -31
- package/lib/core/EditorQuillReact/index.d.ts +0 -23
- package/lib/core/EditorQuillReact/index.d.ts.map +0 -1
- package/lib/core/EditorQuillReact/index.js +0 -103
- package/lib/core/EditorQuillReact/styles.d.ts +0 -13
- package/lib/core/EditorQuillReact/styles.d.ts.map +0 -1
- package/lib/core/EditorQuillReact/styles.js +0 -34
- package/lib/shared/types/LoadedType.d.ts +0 -7
- package/lib/shared/types/LoadedType.d.ts.map +0 -1
- package/lib/shared/types/LoadedType.js +0 -1
package/theme-generator.js
CHANGED
@@ -1,448 +1,448 @@
|
|
1
|
-
const fs = require('fs')
|
2
|
-
const bbls = require('./theme-bbls.js')
|
3
|
-
const {
|
4
|
-
shadeColor,
|
5
|
-
hexToRGBA,
|
6
|
-
getContrastYIQ,
|
7
|
-
hexifyWithWhiteBackground,
|
8
|
-
} = require('./theme-helpers.js')
|
9
|
-
|
10
|
-
const initTheme = (
|
11
|
-
primary,
|
12
|
-
secondary,
|
13
|
-
bgalpha,
|
14
|
-
customBgColor,
|
15
|
-
customPortalFooterColor,
|
16
|
-
customFooter,
|
17
|
-
defaultMenuBackground,
|
18
|
-
defaultMenuTextColor,
|
19
|
-
defaultMenuItemBackground,
|
20
|
-
defaultMenuItemActiveTextColor,
|
21
|
-
defaultMenuItemActiveBackground,
|
22
|
-
defaultMenuItemIconColor,
|
23
|
-
defaultMenuExternalLinkColor,
|
24
|
-
lightMenuBackground,
|
25
|
-
lightMenuTextColor,
|
26
|
-
lightMenuItemTextColor,
|
27
|
-
lightMenuItemBackground,
|
28
|
-
lightMenuItemActiveTextColor,
|
29
|
-
lightMenuItemActiveBackground,
|
30
|
-
lightMenuItemIconColor,
|
31
|
-
lightMenuExternalLinkColor,
|
32
|
-
submenuColor,
|
33
|
-
submenuItemColor,
|
34
|
-
submenuTextColor,
|
35
|
-
submenuTextColorActive,
|
36
|
-
customIllustrationColor,
|
37
|
-
defaultAppPickerBackground,
|
38
|
-
defaultAppPickerIconColor,
|
39
|
-
defaultAppPickerIconBackgroundColor,
|
40
|
-
defaultAppPickerActiveTextColor,
|
41
|
-
defaultAppPickerActiveBackground,
|
42
|
-
defaultAppPickerActiveIconColor,
|
43
|
-
defaultAppPickerActiveIconBackgroundColor,
|
44
|
-
lightAppPickerBackground,
|
45
|
-
lightAppPickerIconColor,
|
46
|
-
lightAppPickerIconBackground,
|
47
|
-
lightAppPickerActiveTextColor,
|
48
|
-
lightAppPickerActiveBackground,
|
49
|
-
lightAppPickerActiveIconColor,
|
50
|
-
lightAppPickerActiveIconBackground,
|
51
|
-
mypageBoxBorderRadius,
|
52
|
-
mypageBoxShadow,
|
53
|
-
mypageFooterColor,
|
54
|
-
preemptionCardBorderRadius,
|
55
|
-
btnDefault,
|
56
|
-
customGlobalCss = false,
|
57
|
-
secondaryFooter = false
|
58
|
-
) => {
|
59
|
-
const getFooterColor = () => {
|
60
|
-
if (customFooter) return customFooter
|
61
|
-
if (secondaryFooter) return shadeColor(secondary, -50)
|
62
|
-
return shadeColor(primary, -50)
|
63
|
-
}
|
64
|
-
|
65
|
-
const styles = {
|
66
|
-
primary: primary,
|
67
|
-
secondary: secondary,
|
68
|
-
bg: customBgColor ? customBgColor : hexToRGBA(primary, bgalpha),
|
69
|
-
primary10opa: hexToRGBA(primary, 0.1),
|
70
|
-
primary20opa: hexToRGBA(primary, 0.2),
|
71
|
-
primary50opa: hexToRGBA(primary, 0.5),
|
72
|
-
primary5darker: shadeColor(primary, -50),
|
73
|
-
secondary5darker: shadeColor(secondary, -50),
|
74
|
-
defaultText: '#000',
|
75
|
-
subtleText: hexToRGBA('#000000', 0.7),
|
76
|
-
secondaryDarkText: shadeColor(secondary, -80),
|
77
|
-
/**
|
78
|
-
* Backgrounds
|
79
|
-
*/
|
80
|
-
bgDark: '#10105A',
|
81
|
-
bgMedium: '#CFD9EA',
|
82
|
-
bgLight: '#EEF4FB',
|
83
|
-
bgFooter: customFooter
|
84
|
-
? customFooter
|
85
|
-
: secondaryFooter
|
86
|
-
? shadeColor(secondary, -50)
|
87
|
-
: shadeColor(primary, -50),
|
88
|
-
/**
|
89
|
-
* Buttons
|
90
|
-
*/
|
91
|
-
btnDefault: btnDefault ? btnDefault : secondary,
|
92
|
-
btnDefaultFontColor: getContrastYIQ(btnDefault ? btnDefault : secondary),
|
93
|
-
btnDefaultDarker: shadeColor(btnDefault ? btnDefault : secondary, -15),
|
94
|
-
btnDefaultLighter: shadeColor(btnDefault ? btnDefault : secondary, 15),
|
95
|
-
btnSuccess: '#4DD964',
|
96
|
-
btnSuccessDarker: '#27B33E',
|
97
|
-
btnSuccessLighter: '#73FF8A',
|
98
|
-
btnDanger: '#EB011A',
|
99
|
-
btnDangerDarker: '#C50000',
|
100
|
-
btnDangerLighter: '#FF2740',
|
101
|
-
btnDisabled: '#D7D7D7',
|
102
|
-
btnHoverTextColor: getContrastYIQ(
|
103
|
-
shadeColor(btnDefault ? btnDefault : secondary, -15)
|
104
|
-
),
|
105
|
-
/**
|
106
|
-
* Colors
|
107
|
-
*/
|
108
|
-
alert: '#EB011A',
|
109
|
-
alertLight: '#FCD6DA',
|
110
|
-
alertBorder: 'rgba(235,1,26,0.25)',
|
111
|
-
info: '#F7B633',
|
112
|
-
infoMedium: '#FBDA99',
|
113
|
-
infoLight: '#FDEDCD',
|
114
|
-
infoBorder: 'rgba(247,182,51,0.5)',
|
115
|
-
success: '#4DD964',
|
116
|
-
successMedium: '#A6ECB2',
|
117
|
-
successLight: '#D2F5D8',
|
118
|
-
successBorder: 'rgba(77,217,100,0.5)',
|
119
|
-
border: '#CFD9EA',
|
120
|
-
gray10: '#BDBDBD',
|
121
|
-
gray20: '#efefef',
|
122
|
-
disabled: '#D7D7D7',
|
123
|
-
/**
|
124
|
-
* Shadows
|
125
|
-
*/
|
126
|
-
shadowSmall: '0px 2px 4px 0px rgba(0, 0, 0, 0.1)',
|
127
|
-
shadowBig: '0px 10px 15px 0px rgba(0, 0, 0, 0.1)',
|
128
|
-
/**
|
129
|
-
* Illustrations
|
130
|
-
*/
|
131
|
-
illustrationGray: '#C3D0D8',
|
132
|
-
illustrationPrimary50: hexifyWithWhiteBackground(hexToRGBA(primary, 0.5)),
|
133
|
-
illustrationPrimary40: hexifyWithWhiteBackground(hexToRGBA(primary, 0.4)),
|
134
|
-
illustrationPrimary20: hexifyWithWhiteBackground(hexToRGBA(primary, 0.2)),
|
135
|
-
illustrationPrimary10: hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
|
136
|
-
illustrationPrimary5: hexifyWithWhiteBackground(hexToRGBA(primary, 0.08)),
|
137
|
-
customIllustrationColor: customIllustrationColor
|
138
|
-
? customIllustrationColor
|
139
|
-
: primary,
|
140
|
-
|
141
|
-
/**
|
142
|
-
* App picker - Default
|
143
|
-
*/
|
144
|
-
defaultAppPickerBackground: defaultAppPickerBackground
|
145
|
-
? defaultAppPickerBackground
|
146
|
-
: hexToRGBA('#ffffff', 0.3),
|
147
|
-
defaultAppPickerIconColor: defaultAppPickerIconColor
|
148
|
-
? defaultAppPickerIconColor
|
149
|
-
: hexifyWithWhiteBackground(hexToRGBA(primary, 0.5)),
|
150
|
-
defaultAppPickerIconBackgroundColor: defaultAppPickerIconBackgroundColor
|
151
|
-
? defaultAppPickerIconBackgroundColor
|
152
|
-
: hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
|
153
|
-
defaultAppPickerActiveTextColor: defaultAppPickerActiveTextColor
|
154
|
-
? defaultAppPickerActiveTextColor
|
155
|
-
: '#ffffff',
|
156
|
-
defaultAppPickerActiveBackground: defaultAppPickerActiveBackground
|
157
|
-
? defaultAppPickerActiveBackground
|
158
|
-
: '#ffffff',
|
159
|
-
defaultAppPickerActiveIconColor: defaultAppPickerActiveIconColor
|
160
|
-
? defaultAppPickerActiveIconColor
|
161
|
-
: '#000000',
|
162
|
-
defaultAppPickerActiveIconBackgroundColor:
|
163
|
-
defaultAppPickerActiveIconBackgroundColor
|
164
|
-
? defaultAppPickerActiveIconBackgroundColor
|
165
|
-
: '#ffffff',
|
166
|
-
|
167
|
-
/**
|
168
|
-
* App picker - Light
|
169
|
-
*/
|
170
|
-
lightAppPickerBackground: lightAppPickerBackground
|
171
|
-
? lightAppPickerBackground
|
172
|
-
: hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
|
173
|
-
lightAppPickerIconColor: lightAppPickerIconColor
|
174
|
-
? lightAppPickerIconColor
|
175
|
-
: hexifyWithWhiteBackground(hexToRGBA(primary, 0.5)),
|
176
|
-
lightAppPickerIconBackground: lightAppPickerIconBackground
|
177
|
-
? lightAppPickerIconBackground
|
178
|
-
: hexifyWithWhiteBackground('rgba(255, 255, 255, 0.7)'),
|
179
|
-
lightAppPickerTextColor: getContrastYIQ(lightMenuBackground || '#ffffff'),
|
180
|
-
lightAppPickerActiveTextColor: lightAppPickerActiveTextColor
|
181
|
-
? lightAppPickerActiveTextColor
|
182
|
-
: 'black',
|
183
|
-
lightAppPickerActiveBackground: lightAppPickerActiveBackground
|
184
|
-
? lightAppPickerActiveBackground
|
185
|
-
: hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
|
186
|
-
lightAppPickerActiveIconColor: lightAppPickerActiveIconColor
|
187
|
-
? lightAppPickerActiveIconColor
|
188
|
-
: primary,
|
189
|
-
lightAppPickerActiveIconBackground: lightAppPickerActiveIconBackground
|
190
|
-
? lightAppPickerActiveIconBackground
|
191
|
-
: '#ffffff',
|
192
|
-
|
193
|
-
/**
|
194
|
-
* Sidemenu - Default
|
195
|
-
*/
|
196
|
-
defaultMenuBackground: defaultMenuBackground
|
197
|
-
? defaultMenuBackground
|
198
|
-
: `linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), linear-gradient(${primary}, ${primary})`,
|
199
|
-
defaultMenuTextColor: defaultMenuTextColor || '#ffffff',
|
200
|
-
defaultMenuItemBackground: defaultMenuItemBackground || '#ffffff',
|
201
|
-
defaultMenuItemActiveTextColor: defaultMenuItemActiveTextColor || '#ffffff',
|
202
|
-
defaultMenuItemActiveBackground: defaultMenuItemActiveBackground
|
203
|
-
? defaultMenuItemActiveBackground
|
204
|
-
: `linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), linear-gradient(${primary}, ${primary})`,
|
205
|
-
defaultMenuItemIconColor: defaultMenuItemIconColor || '#ffffff',
|
206
|
-
defaultMenuExternalLinkColor: defaultMenuExternalLinkColor || '#ffffff',
|
207
|
-
|
208
|
-
/**
|
209
|
-
* Sidemenu - Light
|
210
|
-
*/
|
211
|
-
lightMenuBackground: lightMenuBackground ? lightMenuBackground : '#ffffff',
|
212
|
-
lightMenuTextColor: lightMenuTextColor ? lightMenuTextColor : 'black',
|
213
|
-
lightMenuItemTextColor: lightMenuItemTextColor
|
214
|
-
? lightMenuItemTextColor
|
215
|
-
: 'black',
|
216
|
-
lightMenuItemBackground: lightMenuItemBackground
|
217
|
-
? lightMenuItemBackground
|
218
|
-
: 'black',
|
219
|
-
lightMenuItemActiveTextColor: lightMenuItemActiveTextColor
|
220
|
-
? lightMenuItemActiveTextColor
|
221
|
-
: 'black',
|
222
|
-
lightMenuItemActiveBackground: lightMenuItemActiveBackground
|
223
|
-
? lightMenuItemActiveBackground
|
224
|
-
: hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
|
225
|
-
lightMenuItemIconColor: lightMenuItemIconColor
|
226
|
-
? lightMenuItemIconColor
|
227
|
-
: primary,
|
228
|
-
lightMenuExternalLinkColor: lightMenuExternalLinkColor
|
229
|
-
? lightMenuExternalLinkColor
|
230
|
-
: primary,
|
231
|
-
|
232
|
-
/**
|
233
|
-
* Submenu
|
234
|
-
*/
|
235
|
-
submenuColor: submenuColor
|
236
|
-
? submenuColor
|
237
|
-
: `linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), linear-gradient(${primary}, ${primary})`,
|
238
|
-
submenuItemColor: submenuItemColor
|
239
|
-
? submenuItemColor
|
240
|
-
: shadeColor(primary, -50),
|
241
|
-
submenuTextColor: submenuTextColor
|
242
|
-
? submenuTextColor
|
243
|
-
: `rgba(255, 255, 255, 0.7)`,
|
244
|
-
submenuTextColorActive: submenuTextColorActive
|
245
|
-
? submenuTextColorActive
|
246
|
-
: `#ffffff`,
|
247
|
-
|
248
|
-
customPortalFooterColor: customPortalFooterColor,
|
249
|
-
|
250
|
-
/**
|
251
|
-
* Boxes
|
252
|
-
*/
|
253
|
-
mypageBoxBorderRadius: mypageBoxBorderRadius
|
254
|
-
? mypageBoxBorderRadius
|
255
|
-
: '16px',
|
256
|
-
preemptionCardBorderRadius: preemptionCardBorderRadius
|
257
|
-
? preemptionCardBorderRadius
|
258
|
-
: '30px',
|
259
|
-
mypageBoxShadow: mypageBoxShadow
|
260
|
-
? mypageBoxShadow
|
261
|
-
: '0 0 10px 0 rgba(0, 0, 0, 0.1)',
|
262
|
-
|
263
|
-
mypageFooterColor: mypageFooterColor
|
264
|
-
? mypageFooterColor
|
265
|
-
: customIllustrationColor
|
266
|
-
? hexToRGBA(customIllustrationColor, 0.1)
|
267
|
-
: hexToRGBA(primary, 0.1),
|
268
|
-
|
269
|
-
customGlobalCss: customGlobalCss,
|
270
|
-
}
|
271
|
-
return styles
|
272
|
-
}
|
273
|
-
|
274
|
-
const updateTheme = (bbl) => {
|
275
|
-
let bblsToUpdate
|
276
|
-
|
277
|
-
if (bbl) {
|
278
|
-
bblsToUpdate = bbls.filter((x) => x.bbl === bbl)
|
279
|
-
} else {
|
280
|
-
bblsToUpdate = bbls
|
281
|
-
}
|
282
|
-
|
283
|
-
for (const b of bblsToUpdate) {
|
284
|
-
updateBbl(
|
285
|
-
b.bbl,
|
286
|
-
b.theme.primary,
|
287
|
-
b.theme.secondary,
|
288
|
-
b.theme.alpha,
|
289
|
-
b.theme.customBgColor,
|
290
|
-
b.theme.customPortalFooterColor,
|
291
|
-
b.theme.customFooter,
|
292
|
-
b.theme.defaultMenuBackground,
|
293
|
-
b.theme.defaultMenuTextColor,
|
294
|
-
b.theme.defaultMenuItemBackground,
|
295
|
-
b.theme.defaultMenuItemActiveTextColor,
|
296
|
-
b.theme.defaultMenuItemActiveBackground,
|
297
|
-
b.theme.defaultMenuItemIconColor,
|
298
|
-
b.theme.defaultMenuExternalLinkColor,
|
299
|
-
b.theme.lightMenuBackground,
|
300
|
-
b.theme.lightMenuTextColor,
|
301
|
-
b.theme.lightMenuItemTextColor,
|
302
|
-
b.theme.lightMenuItemBackground,
|
303
|
-
b.theme.lightMenuItemActiveTextColor,
|
304
|
-
b.theme.lightMenuItemActiveBackground,
|
305
|
-
b.theme.lightMenuItemIconColor,
|
306
|
-
b.theme.lightMenuExternalLinkColor,
|
307
|
-
b.theme.submenuColor,
|
308
|
-
b.theme.submenuItemColor,
|
309
|
-
b.theme.submenuTextColor,
|
310
|
-
b.theme.submenuTextColorActive,
|
311
|
-
b.theme.customIllustrationColor,
|
312
|
-
b.theme.defaultAppPickerBackground,
|
313
|
-
b.theme.defaultAppPickerIconColor,
|
314
|
-
b.theme.defaultAppPickerIconBackgroundColor,
|
315
|
-
b.theme.defaultAppPickerActiveTextColor,
|
316
|
-
b.theme.defaultAppPickerActiveBackground,
|
317
|
-
b.theme.defaultAppPickerActiveIconColor,
|
318
|
-
b.theme.defaultAppPickerActiveIconBackgroundColor,
|
319
|
-
b.theme.lightAppPickerBackground,
|
320
|
-
b.theme.lightAppPickerIconColor,
|
321
|
-
b.theme.lightAppPickerIconBackground,
|
322
|
-
b.theme.lightAppPickerActiveTextColor,
|
323
|
-
b.theme.lightAppPickerActiveBackground,
|
324
|
-
b.theme.lightAppPickerActiveIconColor,
|
325
|
-
b.theme.lightAppPickerActiveIconBackground,
|
326
|
-
b.theme.mypageBoxBorderRadius,
|
327
|
-
b.theme.mypageBoxShadow,
|
328
|
-
b.theme.mypageFooterColor,
|
329
|
-
b.theme.preemptionCardBorderRadius,
|
330
|
-
b.theme.btnDefault,
|
331
|
-
b.theme.customGlobalCss,
|
332
|
-
b.theme.secondaryFooter
|
333
|
-
)
|
334
|
-
}
|
335
|
-
}
|
336
|
-
|
337
|
-
const updateBbl = (
|
338
|
-
bbl,
|
339
|
-
primary,
|
340
|
-
secondary,
|
341
|
-
bgalpha,
|
342
|
-
customBgColor,
|
343
|
-
customPortalFooterColor,
|
344
|
-
customFooter,
|
345
|
-
defaultMenuBackground,
|
346
|
-
defaultMenuTextColor,
|
347
|
-
defaultMenuItemBackground,
|
348
|
-
defaultMenuItemActiveTextColor,
|
349
|
-
defaultMenuItemActiveBackground,
|
350
|
-
defaultMenuItemIconColor,
|
351
|
-
defaultMenuExternalLinkColor,
|
352
|
-
lightMenuBackground,
|
353
|
-
lightMenuTextColor,
|
354
|
-
lightMenuItemTextColor,
|
355
|
-
lightMenuItemBackground,
|
356
|
-
lightMenuItemActiveTextColor,
|
357
|
-
lightMenuItemActiveBackground,
|
358
|
-
lightMenuItemIconColor,
|
359
|
-
lightMenuExternalLinkColor,
|
360
|
-
submenuColor,
|
361
|
-
submenuItemColor,
|
362
|
-
submenuTextColor,
|
363
|
-
submenuTextColorActive,
|
364
|
-
customIllustrationColor,
|
365
|
-
defaultAppPickerBackground,
|
366
|
-
defaultAppPickerIconColor,
|
367
|
-
defaultAppPickerIconBackgroundColor,
|
368
|
-
defaultAppPickerActiveTextColor,
|
369
|
-
defaultAppPickerActiveBackground,
|
370
|
-
defaultAppPickerActiveIconColor,
|
371
|
-
defaultAppPickerActiveIconBackgroundColor,
|
372
|
-
lightAppPickerBackground,
|
373
|
-
lightAppPickerIconColor,
|
374
|
-
lightAppPickerIconBackground,
|
375
|
-
lightAppPickerActiveTextColor,
|
376
|
-
lightAppPickerActiveBackground,
|
377
|
-
lightAppPickerActiveIconColor,
|
378
|
-
lightAppPickerActiveIconBackground,
|
379
|
-
mypageBoxBorderRadius,
|
380
|
-
mypageBoxShadow,
|
381
|
-
mypageFooterColor,
|
382
|
-
preemptionCardBorderRadius,
|
383
|
-
btnDefault,
|
384
|
-
customGlobalCss,
|
385
|
-
secondaryFooter = false
|
386
|
-
) => {
|
387
|
-
console.log('bbl', bbl)
|
388
|
-
let data = JSON.stringify(
|
389
|
-
initTheme(
|
390
|
-
primary,
|
391
|
-
secondary,
|
392
|
-
bgalpha,
|
393
|
-
customBgColor,
|
394
|
-
customPortalFooterColor,
|
395
|
-
customFooter,
|
396
|
-
defaultMenuBackground,
|
397
|
-
defaultMenuTextColor,
|
398
|
-
defaultMenuItemBackground,
|
399
|
-
defaultMenuItemActiveTextColor,
|
400
|
-
defaultMenuItemActiveBackground,
|
401
|
-
defaultMenuItemIconColor,
|
402
|
-
defaultMenuExternalLinkColor,
|
403
|
-
lightMenuBackground,
|
404
|
-
lightMenuTextColor,
|
405
|
-
lightMenuItemTextColor,
|
406
|
-
lightMenuItemBackground,
|
407
|
-
lightMenuItemActiveTextColor,
|
408
|
-
lightMenuItemActiveBackground,
|
409
|
-
lightMenuItemIconColor,
|
410
|
-
lightMenuExternalLinkColor,
|
411
|
-
submenuColor,
|
412
|
-
submenuItemColor,
|
413
|
-
submenuTextColor,
|
414
|
-
submenuTextColorActive,
|
415
|
-
customIllustrationColor,
|
416
|
-
defaultAppPickerBackground,
|
417
|
-
defaultAppPickerIconColor,
|
418
|
-
defaultAppPickerIconBackgroundColor,
|
419
|
-
defaultAppPickerActiveTextColor,
|
420
|
-
defaultAppPickerActiveBackground,
|
421
|
-
defaultAppPickerActiveIconColor,
|
422
|
-
defaultAppPickerActiveIconBackgroundColor,
|
423
|
-
lightAppPickerBackground,
|
424
|
-
lightAppPickerIconColor,
|
425
|
-
lightAppPickerIconBackground,
|
426
|
-
lightAppPickerActiveTextColor,
|
427
|
-
lightAppPickerActiveBackground,
|
428
|
-
lightAppPickerActiveIconColor,
|
429
|
-
lightAppPickerActiveIconBackground,
|
430
|
-
mypageBoxBorderRadius,
|
431
|
-
mypageBoxShadow,
|
432
|
-
mypageFooterColor,
|
433
|
-
preemptionCardBorderRadius,
|
434
|
-
btnDefault,
|
435
|
-
customGlobalCss,
|
436
|
-
secondaryFooter
|
437
|
-
),
|
438
|
-
null,
|
439
|
-
2
|
440
|
-
)
|
441
|
-
console.log(data)
|
442
|
-
fs.writeFileSync('themes/' + bbl + '/styles.json', data)
|
443
|
-
}
|
444
|
-
|
445
|
-
// export bbls with es5
|
446
|
-
module.exports = bbls
|
447
|
-
|
448
|
-
updateTheme()
|
1
|
+
const fs = require('fs')
|
2
|
+
const bbls = require('./theme-bbls.js')
|
3
|
+
const {
|
4
|
+
shadeColor,
|
5
|
+
hexToRGBA,
|
6
|
+
getContrastYIQ,
|
7
|
+
hexifyWithWhiteBackground,
|
8
|
+
} = require('./theme-helpers.js')
|
9
|
+
|
10
|
+
const initTheme = (
|
11
|
+
primary,
|
12
|
+
secondary,
|
13
|
+
bgalpha,
|
14
|
+
customBgColor,
|
15
|
+
customPortalFooterColor,
|
16
|
+
customFooter,
|
17
|
+
defaultMenuBackground,
|
18
|
+
defaultMenuTextColor,
|
19
|
+
defaultMenuItemBackground,
|
20
|
+
defaultMenuItemActiveTextColor,
|
21
|
+
defaultMenuItemActiveBackground,
|
22
|
+
defaultMenuItemIconColor,
|
23
|
+
defaultMenuExternalLinkColor,
|
24
|
+
lightMenuBackground,
|
25
|
+
lightMenuTextColor,
|
26
|
+
lightMenuItemTextColor,
|
27
|
+
lightMenuItemBackground,
|
28
|
+
lightMenuItemActiveTextColor,
|
29
|
+
lightMenuItemActiveBackground,
|
30
|
+
lightMenuItemIconColor,
|
31
|
+
lightMenuExternalLinkColor,
|
32
|
+
submenuColor,
|
33
|
+
submenuItemColor,
|
34
|
+
submenuTextColor,
|
35
|
+
submenuTextColorActive,
|
36
|
+
customIllustrationColor,
|
37
|
+
defaultAppPickerBackground,
|
38
|
+
defaultAppPickerIconColor,
|
39
|
+
defaultAppPickerIconBackgroundColor,
|
40
|
+
defaultAppPickerActiveTextColor,
|
41
|
+
defaultAppPickerActiveBackground,
|
42
|
+
defaultAppPickerActiveIconColor,
|
43
|
+
defaultAppPickerActiveIconBackgroundColor,
|
44
|
+
lightAppPickerBackground,
|
45
|
+
lightAppPickerIconColor,
|
46
|
+
lightAppPickerIconBackground,
|
47
|
+
lightAppPickerActiveTextColor,
|
48
|
+
lightAppPickerActiveBackground,
|
49
|
+
lightAppPickerActiveIconColor,
|
50
|
+
lightAppPickerActiveIconBackground,
|
51
|
+
mypageBoxBorderRadius,
|
52
|
+
mypageBoxShadow,
|
53
|
+
mypageFooterColor,
|
54
|
+
preemptionCardBorderRadius,
|
55
|
+
btnDefault,
|
56
|
+
customGlobalCss = false,
|
57
|
+
secondaryFooter = false
|
58
|
+
) => {
|
59
|
+
const getFooterColor = () => {
|
60
|
+
if (customFooter) return customFooter
|
61
|
+
if (secondaryFooter) return shadeColor(secondary, -50)
|
62
|
+
return shadeColor(primary, -50)
|
63
|
+
}
|
64
|
+
|
65
|
+
const styles = {
|
66
|
+
primary: primary,
|
67
|
+
secondary: secondary,
|
68
|
+
bg: customBgColor ? customBgColor : hexToRGBA(primary, bgalpha),
|
69
|
+
primary10opa: hexToRGBA(primary, 0.1),
|
70
|
+
primary20opa: hexToRGBA(primary, 0.2),
|
71
|
+
primary50opa: hexToRGBA(primary, 0.5),
|
72
|
+
primary5darker: shadeColor(primary, -50),
|
73
|
+
secondary5darker: shadeColor(secondary, -50),
|
74
|
+
defaultText: '#000',
|
75
|
+
subtleText: hexToRGBA('#000000', 0.7),
|
76
|
+
secondaryDarkText: shadeColor(secondary, -80),
|
77
|
+
/**
|
78
|
+
* Backgrounds
|
79
|
+
*/
|
80
|
+
bgDark: '#10105A',
|
81
|
+
bgMedium: '#CFD9EA',
|
82
|
+
bgLight: '#EEF4FB',
|
83
|
+
bgFooter: customFooter
|
84
|
+
? customFooter
|
85
|
+
: secondaryFooter
|
86
|
+
? shadeColor(secondary, -50)
|
87
|
+
: shadeColor(primary, -50),
|
88
|
+
/**
|
89
|
+
* Buttons
|
90
|
+
*/
|
91
|
+
btnDefault: btnDefault ? btnDefault : secondary,
|
92
|
+
btnDefaultFontColor: getContrastYIQ(btnDefault ? btnDefault : secondary),
|
93
|
+
btnDefaultDarker: shadeColor(btnDefault ? btnDefault : secondary, -15),
|
94
|
+
btnDefaultLighter: shadeColor(btnDefault ? btnDefault : secondary, 15),
|
95
|
+
btnSuccess: '#4DD964',
|
96
|
+
btnSuccessDarker: '#27B33E',
|
97
|
+
btnSuccessLighter: '#73FF8A',
|
98
|
+
btnDanger: '#EB011A',
|
99
|
+
btnDangerDarker: '#C50000',
|
100
|
+
btnDangerLighter: '#FF2740',
|
101
|
+
btnDisabled: '#D7D7D7',
|
102
|
+
btnHoverTextColor: getContrastYIQ(
|
103
|
+
shadeColor(btnDefault ? btnDefault : secondary, -15)
|
104
|
+
),
|
105
|
+
/**
|
106
|
+
* Colors
|
107
|
+
*/
|
108
|
+
alert: '#EB011A',
|
109
|
+
alertLight: '#FCD6DA',
|
110
|
+
alertBorder: 'rgba(235,1,26,0.25)',
|
111
|
+
info: '#F7B633',
|
112
|
+
infoMedium: '#FBDA99',
|
113
|
+
infoLight: '#FDEDCD',
|
114
|
+
infoBorder: 'rgba(247,182,51,0.5)',
|
115
|
+
success: '#4DD964',
|
116
|
+
successMedium: '#A6ECB2',
|
117
|
+
successLight: '#D2F5D8',
|
118
|
+
successBorder: 'rgba(77,217,100,0.5)',
|
119
|
+
border: '#CFD9EA',
|
120
|
+
gray10: '#BDBDBD',
|
121
|
+
gray20: '#efefef',
|
122
|
+
disabled: '#D7D7D7',
|
123
|
+
/**
|
124
|
+
* Shadows
|
125
|
+
*/
|
126
|
+
shadowSmall: '0px 2px 4px 0px rgba(0, 0, 0, 0.1)',
|
127
|
+
shadowBig: '0px 10px 15px 0px rgba(0, 0, 0, 0.1)',
|
128
|
+
/**
|
129
|
+
* Illustrations
|
130
|
+
*/
|
131
|
+
illustrationGray: '#C3D0D8',
|
132
|
+
illustrationPrimary50: hexifyWithWhiteBackground(hexToRGBA(primary, 0.5)),
|
133
|
+
illustrationPrimary40: hexifyWithWhiteBackground(hexToRGBA(primary, 0.4)),
|
134
|
+
illustrationPrimary20: hexifyWithWhiteBackground(hexToRGBA(primary, 0.2)),
|
135
|
+
illustrationPrimary10: hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
|
136
|
+
illustrationPrimary5: hexifyWithWhiteBackground(hexToRGBA(primary, 0.08)),
|
137
|
+
customIllustrationColor: customIllustrationColor
|
138
|
+
? customIllustrationColor
|
139
|
+
: primary,
|
140
|
+
|
141
|
+
/**
|
142
|
+
* App picker - Default
|
143
|
+
*/
|
144
|
+
defaultAppPickerBackground: defaultAppPickerBackground
|
145
|
+
? defaultAppPickerBackground
|
146
|
+
: hexToRGBA('#ffffff', 0.3),
|
147
|
+
defaultAppPickerIconColor: defaultAppPickerIconColor
|
148
|
+
? defaultAppPickerIconColor
|
149
|
+
: hexifyWithWhiteBackground(hexToRGBA(primary, 0.5)),
|
150
|
+
defaultAppPickerIconBackgroundColor: defaultAppPickerIconBackgroundColor
|
151
|
+
? defaultAppPickerIconBackgroundColor
|
152
|
+
: hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
|
153
|
+
defaultAppPickerActiveTextColor: defaultAppPickerActiveTextColor
|
154
|
+
? defaultAppPickerActiveTextColor
|
155
|
+
: '#ffffff',
|
156
|
+
defaultAppPickerActiveBackground: defaultAppPickerActiveBackground
|
157
|
+
? defaultAppPickerActiveBackground
|
158
|
+
: '#ffffff',
|
159
|
+
defaultAppPickerActiveIconColor: defaultAppPickerActiveIconColor
|
160
|
+
? defaultAppPickerActiveIconColor
|
161
|
+
: '#000000',
|
162
|
+
defaultAppPickerActiveIconBackgroundColor:
|
163
|
+
defaultAppPickerActiveIconBackgroundColor
|
164
|
+
? defaultAppPickerActiveIconBackgroundColor
|
165
|
+
: '#ffffff',
|
166
|
+
|
167
|
+
/**
|
168
|
+
* App picker - Light
|
169
|
+
*/
|
170
|
+
lightAppPickerBackground: lightAppPickerBackground
|
171
|
+
? lightAppPickerBackground
|
172
|
+
: hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
|
173
|
+
lightAppPickerIconColor: lightAppPickerIconColor
|
174
|
+
? lightAppPickerIconColor
|
175
|
+
: hexifyWithWhiteBackground(hexToRGBA(primary, 0.5)),
|
176
|
+
lightAppPickerIconBackground: lightAppPickerIconBackground
|
177
|
+
? lightAppPickerIconBackground
|
178
|
+
: hexifyWithWhiteBackground('rgba(255, 255, 255, 0.7)'),
|
179
|
+
lightAppPickerTextColor: getContrastYIQ(lightMenuBackground || '#ffffff'),
|
180
|
+
lightAppPickerActiveTextColor: lightAppPickerActiveTextColor
|
181
|
+
? lightAppPickerActiveTextColor
|
182
|
+
: 'black',
|
183
|
+
lightAppPickerActiveBackground: lightAppPickerActiveBackground
|
184
|
+
? lightAppPickerActiveBackground
|
185
|
+
: hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
|
186
|
+
lightAppPickerActiveIconColor: lightAppPickerActiveIconColor
|
187
|
+
? lightAppPickerActiveIconColor
|
188
|
+
: primary,
|
189
|
+
lightAppPickerActiveIconBackground: lightAppPickerActiveIconBackground
|
190
|
+
? lightAppPickerActiveIconBackground
|
191
|
+
: '#ffffff',
|
192
|
+
|
193
|
+
/**
|
194
|
+
* Sidemenu - Default
|
195
|
+
*/
|
196
|
+
defaultMenuBackground: defaultMenuBackground
|
197
|
+
? defaultMenuBackground
|
198
|
+
: `linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), linear-gradient(${primary}, ${primary})`,
|
199
|
+
defaultMenuTextColor: defaultMenuTextColor || '#ffffff',
|
200
|
+
defaultMenuItemBackground: defaultMenuItemBackground || '#ffffff',
|
201
|
+
defaultMenuItemActiveTextColor: defaultMenuItemActiveTextColor || '#ffffff',
|
202
|
+
defaultMenuItemActiveBackground: defaultMenuItemActiveBackground
|
203
|
+
? defaultMenuItemActiveBackground
|
204
|
+
: `linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), linear-gradient(${primary}, ${primary})`,
|
205
|
+
defaultMenuItemIconColor: defaultMenuItemIconColor || '#ffffff',
|
206
|
+
defaultMenuExternalLinkColor: defaultMenuExternalLinkColor || '#ffffff',
|
207
|
+
|
208
|
+
/**
|
209
|
+
* Sidemenu - Light
|
210
|
+
*/
|
211
|
+
lightMenuBackground: lightMenuBackground ? lightMenuBackground : '#ffffff',
|
212
|
+
lightMenuTextColor: lightMenuTextColor ? lightMenuTextColor : 'black',
|
213
|
+
lightMenuItemTextColor: lightMenuItemTextColor
|
214
|
+
? lightMenuItemTextColor
|
215
|
+
: 'black',
|
216
|
+
lightMenuItemBackground: lightMenuItemBackground
|
217
|
+
? lightMenuItemBackground
|
218
|
+
: 'black',
|
219
|
+
lightMenuItemActiveTextColor: lightMenuItemActiveTextColor
|
220
|
+
? lightMenuItemActiveTextColor
|
221
|
+
: 'black',
|
222
|
+
lightMenuItemActiveBackground: lightMenuItemActiveBackground
|
223
|
+
? lightMenuItemActiveBackground
|
224
|
+
: hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
|
225
|
+
lightMenuItemIconColor: lightMenuItemIconColor
|
226
|
+
? lightMenuItemIconColor
|
227
|
+
: primary,
|
228
|
+
lightMenuExternalLinkColor: lightMenuExternalLinkColor
|
229
|
+
? lightMenuExternalLinkColor
|
230
|
+
: primary,
|
231
|
+
|
232
|
+
/**
|
233
|
+
* Submenu
|
234
|
+
*/
|
235
|
+
submenuColor: submenuColor
|
236
|
+
? submenuColor
|
237
|
+
: `linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), linear-gradient(${primary}, ${primary})`,
|
238
|
+
submenuItemColor: submenuItemColor
|
239
|
+
? submenuItemColor
|
240
|
+
: shadeColor(primary, -50),
|
241
|
+
submenuTextColor: submenuTextColor
|
242
|
+
? submenuTextColor
|
243
|
+
: `rgba(255, 255, 255, 0.7)`,
|
244
|
+
submenuTextColorActive: submenuTextColorActive
|
245
|
+
? submenuTextColorActive
|
246
|
+
: `#ffffff`,
|
247
|
+
|
248
|
+
customPortalFooterColor: customPortalFooterColor,
|
249
|
+
|
250
|
+
/**
|
251
|
+
* Boxes
|
252
|
+
*/
|
253
|
+
mypageBoxBorderRadius: mypageBoxBorderRadius
|
254
|
+
? mypageBoxBorderRadius
|
255
|
+
: '16px',
|
256
|
+
preemptionCardBorderRadius: preemptionCardBorderRadius
|
257
|
+
? preemptionCardBorderRadius
|
258
|
+
: '30px',
|
259
|
+
mypageBoxShadow: mypageBoxShadow
|
260
|
+
? mypageBoxShadow
|
261
|
+
: '0 0 10px 0 rgba(0, 0, 0, 0.1)',
|
262
|
+
|
263
|
+
mypageFooterColor: mypageFooterColor
|
264
|
+
? mypageFooterColor
|
265
|
+
: customIllustrationColor
|
266
|
+
? hexToRGBA(customIllustrationColor, 0.1)
|
267
|
+
: hexToRGBA(primary, 0.1),
|
268
|
+
|
269
|
+
customGlobalCss: customGlobalCss,
|
270
|
+
}
|
271
|
+
return styles
|
272
|
+
}
|
273
|
+
|
274
|
+
const updateTheme = (bbl) => {
|
275
|
+
let bblsToUpdate
|
276
|
+
|
277
|
+
if (bbl) {
|
278
|
+
bblsToUpdate = bbls.filter((x) => x.bbl === bbl)
|
279
|
+
} else {
|
280
|
+
bblsToUpdate = bbls
|
281
|
+
}
|
282
|
+
|
283
|
+
for (const b of bblsToUpdate) {
|
284
|
+
updateBbl(
|
285
|
+
b.bbl,
|
286
|
+
b.theme.primary,
|
287
|
+
b.theme.secondary,
|
288
|
+
b.theme.alpha,
|
289
|
+
b.theme.customBgColor,
|
290
|
+
b.theme.customPortalFooterColor,
|
291
|
+
b.theme.customFooter,
|
292
|
+
b.theme.defaultMenuBackground,
|
293
|
+
b.theme.defaultMenuTextColor,
|
294
|
+
b.theme.defaultMenuItemBackground,
|
295
|
+
b.theme.defaultMenuItemActiveTextColor,
|
296
|
+
b.theme.defaultMenuItemActiveBackground,
|
297
|
+
b.theme.defaultMenuItemIconColor,
|
298
|
+
b.theme.defaultMenuExternalLinkColor,
|
299
|
+
b.theme.lightMenuBackground,
|
300
|
+
b.theme.lightMenuTextColor,
|
301
|
+
b.theme.lightMenuItemTextColor,
|
302
|
+
b.theme.lightMenuItemBackground,
|
303
|
+
b.theme.lightMenuItemActiveTextColor,
|
304
|
+
b.theme.lightMenuItemActiveBackground,
|
305
|
+
b.theme.lightMenuItemIconColor,
|
306
|
+
b.theme.lightMenuExternalLinkColor,
|
307
|
+
b.theme.submenuColor,
|
308
|
+
b.theme.submenuItemColor,
|
309
|
+
b.theme.submenuTextColor,
|
310
|
+
b.theme.submenuTextColorActive,
|
311
|
+
b.theme.customIllustrationColor,
|
312
|
+
b.theme.defaultAppPickerBackground,
|
313
|
+
b.theme.defaultAppPickerIconColor,
|
314
|
+
b.theme.defaultAppPickerIconBackgroundColor,
|
315
|
+
b.theme.defaultAppPickerActiveTextColor,
|
316
|
+
b.theme.defaultAppPickerActiveBackground,
|
317
|
+
b.theme.defaultAppPickerActiveIconColor,
|
318
|
+
b.theme.defaultAppPickerActiveIconBackgroundColor,
|
319
|
+
b.theme.lightAppPickerBackground,
|
320
|
+
b.theme.lightAppPickerIconColor,
|
321
|
+
b.theme.lightAppPickerIconBackground,
|
322
|
+
b.theme.lightAppPickerActiveTextColor,
|
323
|
+
b.theme.lightAppPickerActiveBackground,
|
324
|
+
b.theme.lightAppPickerActiveIconColor,
|
325
|
+
b.theme.lightAppPickerActiveIconBackground,
|
326
|
+
b.theme.mypageBoxBorderRadius,
|
327
|
+
b.theme.mypageBoxShadow,
|
328
|
+
b.theme.mypageFooterColor,
|
329
|
+
b.theme.preemptionCardBorderRadius,
|
330
|
+
b.theme.btnDefault,
|
331
|
+
b.theme.customGlobalCss,
|
332
|
+
b.theme.secondaryFooter
|
333
|
+
)
|
334
|
+
}
|
335
|
+
}
|
336
|
+
|
337
|
+
const updateBbl = (
|
338
|
+
bbl,
|
339
|
+
primary,
|
340
|
+
secondary,
|
341
|
+
bgalpha,
|
342
|
+
customBgColor,
|
343
|
+
customPortalFooterColor,
|
344
|
+
customFooter,
|
345
|
+
defaultMenuBackground,
|
346
|
+
defaultMenuTextColor,
|
347
|
+
defaultMenuItemBackground,
|
348
|
+
defaultMenuItemActiveTextColor,
|
349
|
+
defaultMenuItemActiveBackground,
|
350
|
+
defaultMenuItemIconColor,
|
351
|
+
defaultMenuExternalLinkColor,
|
352
|
+
lightMenuBackground,
|
353
|
+
lightMenuTextColor,
|
354
|
+
lightMenuItemTextColor,
|
355
|
+
lightMenuItemBackground,
|
356
|
+
lightMenuItemActiveTextColor,
|
357
|
+
lightMenuItemActiveBackground,
|
358
|
+
lightMenuItemIconColor,
|
359
|
+
lightMenuExternalLinkColor,
|
360
|
+
submenuColor,
|
361
|
+
submenuItemColor,
|
362
|
+
submenuTextColor,
|
363
|
+
submenuTextColorActive,
|
364
|
+
customIllustrationColor,
|
365
|
+
defaultAppPickerBackground,
|
366
|
+
defaultAppPickerIconColor,
|
367
|
+
defaultAppPickerIconBackgroundColor,
|
368
|
+
defaultAppPickerActiveTextColor,
|
369
|
+
defaultAppPickerActiveBackground,
|
370
|
+
defaultAppPickerActiveIconColor,
|
371
|
+
defaultAppPickerActiveIconBackgroundColor,
|
372
|
+
lightAppPickerBackground,
|
373
|
+
lightAppPickerIconColor,
|
374
|
+
lightAppPickerIconBackground,
|
375
|
+
lightAppPickerActiveTextColor,
|
376
|
+
lightAppPickerActiveBackground,
|
377
|
+
lightAppPickerActiveIconColor,
|
378
|
+
lightAppPickerActiveIconBackground,
|
379
|
+
mypageBoxBorderRadius,
|
380
|
+
mypageBoxShadow,
|
381
|
+
mypageFooterColor,
|
382
|
+
preemptionCardBorderRadius,
|
383
|
+
btnDefault,
|
384
|
+
customGlobalCss,
|
385
|
+
secondaryFooter = false
|
386
|
+
) => {
|
387
|
+
console.log('bbl', bbl)
|
388
|
+
let data = JSON.stringify(
|
389
|
+
initTheme(
|
390
|
+
primary,
|
391
|
+
secondary,
|
392
|
+
bgalpha,
|
393
|
+
customBgColor,
|
394
|
+
customPortalFooterColor,
|
395
|
+
customFooter,
|
396
|
+
defaultMenuBackground,
|
397
|
+
defaultMenuTextColor,
|
398
|
+
defaultMenuItemBackground,
|
399
|
+
defaultMenuItemActiveTextColor,
|
400
|
+
defaultMenuItemActiveBackground,
|
401
|
+
defaultMenuItemIconColor,
|
402
|
+
defaultMenuExternalLinkColor,
|
403
|
+
lightMenuBackground,
|
404
|
+
lightMenuTextColor,
|
405
|
+
lightMenuItemTextColor,
|
406
|
+
lightMenuItemBackground,
|
407
|
+
lightMenuItemActiveTextColor,
|
408
|
+
lightMenuItemActiveBackground,
|
409
|
+
lightMenuItemIconColor,
|
410
|
+
lightMenuExternalLinkColor,
|
411
|
+
submenuColor,
|
412
|
+
submenuItemColor,
|
413
|
+
submenuTextColor,
|
414
|
+
submenuTextColorActive,
|
415
|
+
customIllustrationColor,
|
416
|
+
defaultAppPickerBackground,
|
417
|
+
defaultAppPickerIconColor,
|
418
|
+
defaultAppPickerIconBackgroundColor,
|
419
|
+
defaultAppPickerActiveTextColor,
|
420
|
+
defaultAppPickerActiveBackground,
|
421
|
+
defaultAppPickerActiveIconColor,
|
422
|
+
defaultAppPickerActiveIconBackgroundColor,
|
423
|
+
lightAppPickerBackground,
|
424
|
+
lightAppPickerIconColor,
|
425
|
+
lightAppPickerIconBackground,
|
426
|
+
lightAppPickerActiveTextColor,
|
427
|
+
lightAppPickerActiveBackground,
|
428
|
+
lightAppPickerActiveIconColor,
|
429
|
+
lightAppPickerActiveIconBackground,
|
430
|
+
mypageBoxBorderRadius,
|
431
|
+
mypageBoxShadow,
|
432
|
+
mypageFooterColor,
|
433
|
+
preemptionCardBorderRadius,
|
434
|
+
btnDefault,
|
435
|
+
customGlobalCss,
|
436
|
+
secondaryFooter
|
437
|
+
),
|
438
|
+
null,
|
439
|
+
2
|
440
|
+
)
|
441
|
+
console.log(data)
|
442
|
+
fs.writeFileSync('themes/' + bbl + '/styles.json', data)
|
443
|
+
}
|
444
|
+
|
445
|
+
// export bbls with es5
|
446
|
+
module.exports = bbls
|
447
|
+
|
448
|
+
updateTheme()
|