@bbl-digital/snorre 4.1.76 → 4.1.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/.husky/_/husky.sh +30 -30
  2. package/.prettierrc +6 -6
  3. package/.vscode/settings.json +3 -3
  4. package/README.md +3 -3
  5. package/dist/bundle.js +563 -563
  6. package/esm/app-shell/index.js +2 -2
  7. package/esm/core/Alert/styles.js +6 -6
  8. package/esm/core/AppLoader/styles.js +1 -1
  9. package/esm/core/Autocomplete/styles.js +18 -18
  10. package/esm/core/Banner/styles.js +4 -4
  11. package/esm/core/BarAndLineComposedChart/styles.js +1 -1
  12. package/esm/core/BarChartWithCustomizedEvent/styles.js +1 -1
  13. package/esm/core/Box/styles.js +7 -7
  14. package/esm/core/BoxedTable/DraggableRow/styles.js +5 -5
  15. package/esm/core/BoxedTable/HeaderCell/styles.js +2 -2
  16. package/esm/core/BoxedTable/RowCell/index.js +1 -1
  17. package/esm/core/BoxedTable/RowCell/styles.js +9 -9
  18. package/esm/core/BoxedTable/TableHeader/styles.js +1 -1
  19. package/esm/core/BoxedTable/TableRow/styles.js +8 -8
  20. package/esm/core/BoxedTable/styles.js +11 -11
  21. package/esm/core/Button/styles.js +19 -19
  22. package/esm/core/Calendar/CalendarEvent/styles.js +5 -5
  23. package/esm/core/Calendar/CalendarSmallEvent/styles.js +5 -5
  24. package/esm/core/Calendar/styles.js +5 -5
  25. package/esm/core/Card/styles.js +11 -11
  26. package/esm/core/Checkbox/styles.js +5 -5
  27. package/esm/core/CollapseList/styles.js +2 -2
  28. package/esm/core/CommentsTimeline/CommentLine/styles.js +4 -4
  29. package/esm/core/CommentsTimeline/styles.js +1 -1
  30. package/esm/core/CustomText/styles.js +2 -2
  31. package/esm/core/Datepicker/styles.js +9 -9
  32. package/esm/core/DatepickerRange/styles.js +9 -9
  33. package/esm/core/Divider/styles.js +5 -5
  34. package/esm/core/Dropdown/styles.js +3 -3
  35. package/esm/core/DropdownMenu/styles.js +3 -3
  36. package/esm/core/FileInput/styles.js +14 -14
  37. package/esm/core/GoogleButton/styles.js +1 -1
  38. package/esm/core/Header/styles.js +7 -7
  39. package/esm/core/HighlightText/styles.js +1 -1
  40. package/esm/core/Image/styles.js +6 -6
  41. package/esm/core/ImagePicker/IconWithBackground.js +1 -1
  42. package/esm/core/ImagePicker/UploadButton.js +1 -1
  43. package/esm/core/ImagePicker/styles.js +11 -11
  44. package/esm/core/ImageViewer/index.js +1 -1
  45. package/esm/core/ImageViewer/styles.js +7 -7
  46. package/esm/core/InfoButton/styles.js +9 -9
  47. package/esm/core/Input/index.js +1 -1
  48. package/esm/core/Input/styles.js +19 -19
  49. package/esm/core/Link/styles.js +10 -10
  50. package/esm/core/List/Item.js +1 -1
  51. package/esm/core/List/styles.js +11 -11
  52. package/esm/core/ListPager/styles.js +3 -3
  53. package/esm/core/Modal/ActionButtons/index.js +1 -1
  54. package/esm/core/Modal/styles.js +8 -8
  55. package/esm/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.js +4 -4
  56. package/esm/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.js +1 -1
  57. package/esm/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +3 -3
  58. package/esm/core/NoticeCard/styles.js +4 -4
  59. package/esm/core/NotificationCounter/styles.js +1 -1
  60. package/esm/core/NotificationsMenu/NotificationRow/styles.js +3 -3
  61. package/esm/core/NotificationsMenu/styles.js +3 -3
  62. package/esm/core/PieChart/styles.js +2 -2
  63. package/esm/core/PreemptionCard/styles.js +3 -3
  64. package/esm/core/PreemptionCardLoading/styles.js +3 -3
  65. package/esm/core/QuillEditor/styles.js +3 -3
  66. package/esm/core/Radio/styles.js +4 -4
  67. package/esm/core/SearchFilter/index.js +1 -1
  68. package/esm/core/SearchFilter/styles.js +14 -14
  69. package/esm/core/SearchSelect/styles.js +5 -5
  70. package/esm/core/Select/index.js +1 -1
  71. package/esm/core/Select/styles.js +18 -18
  72. package/esm/core/SimpleBarChart/styles.js +1 -1
  73. package/esm/core/SimpleLineChart/styles.js +1 -1
  74. package/esm/core/Skeleton/styles.js +4 -4
  75. package/esm/core/Spinner/styles.js +5 -5
  76. package/esm/core/Stepper/MobileStep/styles.js +7 -7
  77. package/esm/core/Stepper/Step/index.js +1 -1
  78. package/esm/core/Stepper/Step/styles.js +5 -5
  79. package/esm/core/Stepper/styles.js +3 -3
  80. package/esm/core/TabBar/TabItem/styles.js +1 -1
  81. package/esm/core/TabBar/styles.js +1 -1
  82. package/esm/core/TabNav/TabNavItem/styles.js +5 -5
  83. package/esm/core/TabNav/styles.js +8 -8
  84. package/esm/core/Table/styles.js +16 -16
  85. package/esm/core/Tag/styles.js +13 -13
  86. package/esm/core/Text/styles.js +16 -16
  87. package/esm/core/Textarea/styles.js +7 -7
  88. package/esm/core/Timeline/TimelineStep/styles.js +6 -6
  89. package/esm/core/Timeline/styles.js +1 -1
  90. package/esm/core/Timepicker/index.js +3 -3
  91. package/esm/core/Timepicker/styles.js +7 -7
  92. package/esm/core/Tooltip/styles.js +2 -2
  93. package/esm/core/UnitIllustration/index.js +9 -9
  94. package/esm/core/UserMenu/styles.js +7 -7
  95. package/esm/core/Video/styles.js +1 -1
  96. package/esm/core/YearWheel/styles.js +3 -3
  97. package/esm/enums/Keyboard.js +2 -2
  98. package/esm/globals/styles/quill.module.js +1 -0
  99. package/esm/globals/styles/styles.js +1 -1
  100. package/esm/illustrations/styles.js +2 -2
  101. package/esm/layout/Footer/FooterButton/styles.js +1 -1
  102. package/esm/layout/Footer/FooterCol/styles.js +1 -1
  103. package/esm/layout/Footer/FooterGroup/styles.js +1 -1
  104. package/esm/layout/Footer/FooterLabel/styles.js +1 -1
  105. package/esm/layout/Footer/FooterLink/styles.js +1 -1
  106. package/esm/layout/Footer/styles.js +2 -2
  107. package/esm/layout/Layout/styles.js +1 -1
  108. package/esm/layout/LayoutShell/styles.js +8 -8
  109. package/esm/layout/Menu/AppPicker/styles.js +5 -5
  110. package/esm/layout/Menu/MainMenu/styles.js +2 -2
  111. package/esm/layout/Menu/MenuItem/styles.js +3 -3
  112. package/esm/layout/Menu/MenuSpacer/styles.js +1 -1
  113. package/esm/layout/Menu/MenuTop/styles.js +3 -3
  114. package/esm/layout/Menu/SecondaryMenu/styles.js +4 -4
  115. package/esm/layout/Menu/SecondaryMenuItem/styles.js +1 -1
  116. package/esm/layout/Menu/styles.js +1 -1
  117. package/esm/layout/Submenu/SubmenuItem/styles.js +3 -3
  118. package/esm/layout/Submenu/styles.js +11 -11
  119. package/esm/layout/Topbar/styles.js +1 -1
  120. package/esm/shared/components/SbIconGrid/index.js +1 -1
  121. package/esm/shared/components/VisuallyHidden/index.js +4 -4
  122. package/esm/shared/recharts/CustomLegend/styles.js +2 -2
  123. package/esm/shared/recharts/CustomTooltip/styles.js +3 -3
  124. package/esm/utils/time.js +14 -14
  125. package/esm/v2/Memberbenefits/MemberbenefitsCard/styles.js +16 -16
  126. package/esm/v2/core/Box/styles.js +9 -9
  127. package/esm/v2/core/Button/styles.js +19 -19
  128. package/esm/v2/core/ButtonsFilter/styles.js +1 -1
  129. package/esm/v2/core/Chip/styles.js +11 -11
  130. package/esm/v2/core/TabNav/TabNavItem/styles.js +6 -6
  131. package/esm/v2/core/TabNav/styles.js +7 -7
  132. package/infrastructure/azure-pipelines.yml +34 -34
  133. package/jest.config.js +34 -34
  134. package/lib/app-shell/index.js +2 -2
  135. package/lib/core/Alert/styles.js +6 -6
  136. package/lib/core/AppLoader/styles.js +1 -1
  137. package/lib/core/Autocomplete/styles.d.ts.map +1 -1
  138. package/lib/core/Autocomplete/styles.js +18 -18
  139. package/lib/core/Banner/styles.d.ts.map +1 -1
  140. package/lib/core/Banner/styles.js +4 -4
  141. package/lib/core/BarAndLineComposedChart/styles.d.ts.map +1 -1
  142. package/lib/core/BarAndLineComposedChart/styles.js +1 -1
  143. package/lib/core/BarChartWithCustomizedEvent/styles.d.ts.map +1 -1
  144. package/lib/core/BarChartWithCustomizedEvent/styles.js +1 -1
  145. package/lib/core/Box/styles.d.ts.map +1 -1
  146. package/lib/core/Box/styles.js +7 -7
  147. package/lib/core/BoxedTable/DraggableRow/styles.d.ts.map +1 -1
  148. package/lib/core/BoxedTable/DraggableRow/styles.js +5 -5
  149. package/lib/core/BoxedTable/HeaderCell/styles.js +2 -2
  150. package/lib/core/BoxedTable/RowCell/index.js +1 -1
  151. package/lib/core/BoxedTable/RowCell/styles.js +9 -9
  152. package/lib/core/BoxedTable/TableHeader/styles.d.ts.map +1 -1
  153. package/lib/core/BoxedTable/TableHeader/styles.js +1 -1
  154. package/lib/core/BoxedTable/TableRow/styles.d.ts.map +1 -1
  155. package/lib/core/BoxedTable/TableRow/styles.js +8 -8
  156. package/lib/core/BoxedTable/styles.d.ts.map +1 -1
  157. package/lib/core/BoxedTable/styles.js +11 -11
  158. package/lib/core/Button/index.d.ts.map +1 -1
  159. package/lib/core/Button/styles.js +19 -19
  160. package/lib/core/Calendar/CalendarEvent/styles.d.ts.map +1 -1
  161. package/lib/core/Calendar/CalendarEvent/styles.js +5 -5
  162. package/lib/core/Calendar/CalendarSmallEvent/styles.d.ts.map +1 -1
  163. package/lib/core/Calendar/CalendarSmallEvent/styles.js +5 -5
  164. package/lib/core/Calendar/styles.d.ts.map +1 -1
  165. package/lib/core/Calendar/styles.js +5 -5
  166. package/lib/core/Card/styles.js +11 -11
  167. package/lib/core/Checkbox/styles.js +5 -5
  168. package/lib/core/CollapseList/styles.d.ts.map +1 -1
  169. package/lib/core/CollapseList/styles.js +2 -2
  170. package/lib/core/CommentsTimeline/CommentLine/styles.d.ts.map +1 -1
  171. package/lib/core/CommentsTimeline/CommentLine/styles.js +4 -4
  172. package/lib/core/CommentsTimeline/styles.d.ts.map +1 -1
  173. package/lib/core/CommentsTimeline/styles.js +1 -1
  174. package/lib/core/CustomText/styles.d.ts.map +1 -1
  175. package/lib/core/CustomText/styles.js +2 -2
  176. package/lib/core/Datepicker/styles.d.ts.map +1 -1
  177. package/lib/core/Datepicker/styles.js +9 -9
  178. package/lib/core/DatepickerRange/styles.d.ts.map +1 -1
  179. package/lib/core/DatepickerRange/styles.js +9 -9
  180. package/lib/core/Divider/styles.js +5 -5
  181. package/lib/core/Dropdown/styles.js +3 -3
  182. package/lib/core/DropdownMenu/styles.d.ts.map +1 -1
  183. package/lib/core/DropdownMenu/styles.js +3 -3
  184. package/lib/core/FileInput/styles.d.ts.map +1 -1
  185. package/lib/core/FileInput/styles.js +14 -14
  186. package/lib/core/GoogleButton/styles.d.ts.map +1 -1
  187. package/lib/core/GoogleButton/styles.js +1 -1
  188. package/lib/core/Header/styles.js +7 -7
  189. package/lib/core/HighlightText/styles.d.ts.map +1 -1
  190. package/lib/core/HighlightText/styles.js +1 -1
  191. package/lib/core/Image/styles.js +6 -6
  192. package/lib/core/ImagePicker/IconWithBackground.js +1 -1
  193. package/lib/core/ImagePicker/UploadButton.js +1 -1
  194. package/lib/core/ImagePicker/styles.js +11 -11
  195. package/lib/core/ImageViewer/index.js +1 -1
  196. package/lib/core/ImageViewer/styles.js +7 -7
  197. package/lib/core/InfoButton/styles.d.ts.map +1 -1
  198. package/lib/core/InfoButton/styles.js +9 -9
  199. package/lib/core/Input/index.d.ts.map +1 -1
  200. package/lib/core/Input/index.js +1 -1
  201. package/lib/core/Input/styles.js +19 -19
  202. package/lib/core/Link/styles.d.ts.map +1 -1
  203. package/lib/core/Link/styles.js +10 -10
  204. package/lib/core/List/Item.js +1 -1
  205. package/lib/core/List/styles.js +11 -11
  206. package/lib/core/ListPager/styles.d.ts.map +1 -1
  207. package/lib/core/ListPager/styles.js +3 -3
  208. package/lib/core/Modal/ActionButtons/index.js +1 -1
  209. package/lib/core/Modal/index.d.ts.map +1 -1
  210. package/lib/core/Modal/styles.d.ts.map +1 -1
  211. package/lib/core/Modal/styles.js +8 -8
  212. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.d.ts.map +1 -1
  213. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.js +4 -4
  214. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.d.ts.map +1 -1
  215. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.js +1 -1
  216. package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.d.ts.map +1 -1
  217. package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +3 -3
  218. package/lib/core/NoticeCard/styles.d.ts.map +1 -1
  219. package/lib/core/NoticeCard/styles.js +4 -4
  220. package/lib/core/NotificationCounter/styles.js +1 -1
  221. package/lib/core/NotificationsMenu/NotificationRow/styles.d.ts.map +1 -1
  222. package/lib/core/NotificationsMenu/NotificationRow/styles.js +3 -3
  223. package/lib/core/NotificationsMenu/styles.d.ts.map +1 -1
  224. package/lib/core/NotificationsMenu/styles.js +3 -3
  225. package/lib/core/PieChart/styles.d.ts.map +1 -1
  226. package/lib/core/PieChart/styles.js +2 -2
  227. package/lib/core/PreemptionCard/styles.d.ts.map +1 -1
  228. package/lib/core/PreemptionCard/styles.js +3 -3
  229. package/lib/core/PreemptionCardLoading/styles.d.ts.map +1 -1
  230. package/lib/core/PreemptionCardLoading/styles.js +3 -3
  231. package/lib/core/QuillEditor/config.d.ts +3 -3
  232. package/lib/core/QuillEditor/styles.d.ts.map +1 -1
  233. package/lib/core/QuillEditor/styles.js +3 -3
  234. package/lib/core/Radio/styles.js +4 -4
  235. package/lib/core/SearchFilter/index.js +1 -1
  236. package/lib/core/SearchFilter/styles.d.ts.map +1 -1
  237. package/lib/core/SearchFilter/styles.js +14 -14
  238. package/lib/core/SearchSelect/styles.d.ts.map +1 -1
  239. package/lib/core/SearchSelect/styles.js +5 -5
  240. package/lib/core/Select/index.js +1 -1
  241. package/lib/core/Select/styles.d.ts.map +1 -1
  242. package/lib/core/Select/styles.js +18 -18
  243. package/lib/core/SimpleBarChart/styles.d.ts.map +1 -1
  244. package/lib/core/SimpleBarChart/styles.js +1 -1
  245. package/lib/core/SimpleLineChart/styles.d.ts.map +1 -1
  246. package/lib/core/SimpleLineChart/styles.js +1 -1
  247. package/lib/core/Skeleton/styles.d.ts.map +1 -1
  248. package/lib/core/Skeleton/styles.js +4 -4
  249. package/lib/core/Spinner/styles.js +5 -5
  250. package/lib/core/Stepper/MobileStep/styles.d.ts.map +1 -1
  251. package/lib/core/Stepper/MobileStep/styles.js +7 -7
  252. package/lib/core/Stepper/Step/index.js +1 -1
  253. package/lib/core/Stepper/Step/styles.d.ts.map +1 -1
  254. package/lib/core/Stepper/Step/styles.js +5 -5
  255. package/lib/core/Stepper/styles.d.ts.map +1 -1
  256. package/lib/core/Stepper/styles.js +3 -3
  257. package/lib/core/TabBar/TabItem/styles.d.ts.map +1 -1
  258. package/lib/core/TabBar/TabItem/styles.js +1 -1
  259. package/lib/core/TabBar/styles.d.ts.map +1 -1
  260. package/lib/core/TabBar/styles.js +1 -1
  261. package/lib/core/TabNav/TabNavItem/styles.d.ts.map +1 -1
  262. package/lib/core/TabNav/TabNavItem/styles.js +5 -5
  263. package/lib/core/TabNav/styles.d.ts.map +1 -1
  264. package/lib/core/TabNav/styles.js +8 -8
  265. package/lib/core/Table/styles.d.ts.map +1 -1
  266. package/lib/core/Table/styles.js +16 -16
  267. package/lib/core/Tag/styles.js +13 -13
  268. package/lib/core/Text/styles.js +16 -16
  269. package/lib/core/Textarea/styles.d.ts.map +1 -1
  270. package/lib/core/Textarea/styles.js +7 -7
  271. package/lib/core/Timeline/TimelineStep/styles.d.ts.map +1 -1
  272. package/lib/core/Timeline/TimelineStep/styles.js +6 -6
  273. package/lib/core/Timeline/styles.d.ts.map +1 -1
  274. package/lib/core/Timeline/styles.js +1 -1
  275. package/lib/core/Timepicker/index.js +3 -3
  276. package/lib/core/Timepicker/styles.d.ts.map +1 -1
  277. package/lib/core/Timepicker/styles.js +7 -7
  278. package/lib/core/Tooltip/styles.js +2 -2
  279. package/lib/core/UnitIllustration/index.js +9 -9
  280. package/lib/core/UserMenu/styles.d.ts.map +1 -1
  281. package/lib/core/UserMenu/styles.js +7 -7
  282. package/lib/core/Video/styles.d.ts.map +1 -1
  283. package/lib/core/Video/styles.js +1 -1
  284. package/lib/core/YearWheel/styles.d.ts.map +1 -1
  285. package/lib/core/YearWheel/styles.js +3 -3
  286. package/lib/enums/Keyboard.js +2 -2
  287. package/lib/globals/styles/quill.module.d.ts +2 -0
  288. package/lib/globals/styles/quill.module.d.ts.map +1 -0
  289. package/lib/globals/styles/quill.module.js +1 -0
  290. package/lib/globals/styles/styles.js +1 -1
  291. package/lib/illustrations/styles.js +2 -2
  292. package/lib/layout/Footer/FooterButton/styles.d.ts.map +1 -1
  293. package/lib/layout/Footer/FooterButton/styles.js +1 -1
  294. package/lib/layout/Footer/FooterCol/styles.d.ts.map +1 -1
  295. package/lib/layout/Footer/FooterCol/styles.js +1 -1
  296. package/lib/layout/Footer/FooterGroup/styles.d.ts.map +1 -1
  297. package/lib/layout/Footer/FooterGroup/styles.js +1 -1
  298. package/lib/layout/Footer/FooterLabel/styles.d.ts.map +1 -1
  299. package/lib/layout/Footer/FooterLabel/styles.js +1 -1
  300. package/lib/layout/Footer/FooterLink/styles.d.ts.map +1 -1
  301. package/lib/layout/Footer/FooterLink/styles.js +1 -1
  302. package/lib/layout/Footer/styles.d.ts.map +1 -1
  303. package/lib/layout/Footer/styles.js +2 -2
  304. package/lib/layout/Layout/styles.d.ts.map +1 -1
  305. package/lib/layout/Layout/styles.js +1 -1
  306. package/lib/layout/LayoutShell/styles.d.ts.map +1 -1
  307. package/lib/layout/LayoutShell/styles.js +8 -8
  308. package/lib/layout/Menu/AppPicker/styles.d.ts.map +1 -1
  309. package/lib/layout/Menu/AppPicker/styles.js +5 -5
  310. package/lib/layout/Menu/MainMenu/styles.d.ts.map +1 -1
  311. package/lib/layout/Menu/MainMenu/styles.js +2 -2
  312. package/lib/layout/Menu/MenuItem/styles.d.ts.map +1 -1
  313. package/lib/layout/Menu/MenuItem/styles.js +3 -3
  314. package/lib/layout/Menu/MenuSpacer/styles.d.ts.map +1 -1
  315. package/lib/layout/Menu/MenuSpacer/styles.js +1 -1
  316. package/lib/layout/Menu/MenuTop/styles.d.ts.map +1 -1
  317. package/lib/layout/Menu/MenuTop/styles.js +3 -3
  318. package/lib/layout/Menu/SecondaryMenu/styles.d.ts.map +1 -1
  319. package/lib/layout/Menu/SecondaryMenu/styles.js +4 -4
  320. package/lib/layout/Menu/SecondaryMenuItem/styles.js +1 -1
  321. package/lib/layout/Menu/styles.d.ts.map +1 -1
  322. package/lib/layout/Menu/styles.js +1 -1
  323. package/lib/layout/Submenu/SubmenuItem/styles.js +3 -3
  324. package/lib/layout/Submenu/styles.d.ts.map +1 -1
  325. package/lib/layout/Submenu/styles.js +11 -11
  326. package/lib/layout/Topbar/styles.js +1 -1
  327. package/lib/shared/components/SbIconGrid/index.js +1 -1
  328. package/lib/shared/components/VisuallyHidden/index.d.ts.map +1 -1
  329. package/lib/shared/components/VisuallyHidden/index.js +4 -4
  330. package/lib/shared/recharts/CustomLegend/styles.d.ts.map +1 -1
  331. package/lib/shared/recharts/CustomLegend/styles.js +2 -2
  332. package/lib/shared/recharts/CustomTooltip/styles.d.ts.map +1 -1
  333. package/lib/shared/recharts/CustomTooltip/styles.js +3 -3
  334. package/lib/utils/time.js +14 -14
  335. package/lib/v2/Memberbenefits/MemberbenefitsCard/styles.d.ts.map +1 -1
  336. package/lib/v2/Memberbenefits/MemberbenefitsCard/styles.js +16 -16
  337. package/lib/v2/core/Box/styles.d.ts.map +1 -1
  338. package/lib/v2/core/Box/styles.js +9 -9
  339. package/lib/v2/core/Button/index.d.ts.map +1 -1
  340. package/lib/v2/core/Button/styles.js +19 -19
  341. package/lib/v2/core/ButtonsFilter/styles.d.ts.map +1 -1
  342. package/lib/v2/core/ButtonsFilter/styles.js +1 -1
  343. package/lib/v2/core/Chip/styles.d.ts.map +1 -1
  344. package/lib/v2/core/Chip/styles.js +11 -11
  345. package/lib/v2/core/TabNav/TabNavItem/styles.d.ts.map +1 -1
  346. package/lib/v2/core/TabNav/TabNavItem/styles.js +6 -6
  347. package/lib/v2/core/TabNav/styles.d.ts.map +1 -1
  348. package/lib/v2/core/TabNav/styles.js +7 -7
  349. package/package.json +1 -1
  350. package/rollup.config.js +13 -13
  351. package/theme-bbls.js +467 -467
  352. package/theme-generator.js +448 -448
  353. package/theme-helpers.js +62 -62
  354. package/vite.config.js +6 -6
  355. package/esm/core/Editor/Editor.stories.js +0 -56
  356. package/esm/core/Editor/config.js +0 -7
  357. package/esm/core/Editor/index.js +0 -113
  358. package/esm/core/Editor/styles.js +0 -43
  359. package/esm/core/EditorQuillReact/EditorQuillReact.stories.js +0 -59
  360. package/esm/core/EditorQuillReact/IndentAttributor.js +0 -15
  361. package/esm/core/EditorQuillReact/config.js +0 -31
  362. package/esm/core/EditorQuillReact/index.js +0 -103
  363. package/esm/core/EditorQuillReact/styles.js +0 -34
  364. package/esm/shared/types/LoadedType.js +0 -1
  365. package/lib/core/Editor/Editor.stories.d.ts +0 -11
  366. package/lib/core/Editor/Editor.stories.d.ts.map +0 -1
  367. package/lib/core/Editor/Editor.stories.js +0 -56
  368. package/lib/core/Editor/config.d.ts +0 -6
  369. package/lib/core/Editor/config.d.ts.map +0 -1
  370. package/lib/core/Editor/config.js +0 -7
  371. package/lib/core/Editor/index.d.ts +0 -44
  372. package/lib/core/Editor/index.d.ts.map +0 -1
  373. package/lib/core/Editor/index.js +0 -113
  374. package/lib/core/Editor/styles.d.ts +0 -14
  375. package/lib/core/Editor/styles.d.ts.map +0 -1
  376. package/lib/core/Editor/styles.js +0 -43
  377. package/lib/core/EditorQuillReact/EditorQuillReact.stories.d.ts +0 -8
  378. package/lib/core/EditorQuillReact/EditorQuillReact.stories.d.ts.map +0 -1
  379. package/lib/core/EditorQuillReact/EditorQuillReact.stories.js +0 -59
  380. package/lib/core/EditorQuillReact/IndentAttributor.d.ts +0 -7
  381. package/lib/core/EditorQuillReact/IndentAttributor.d.ts.map +0 -1
  382. package/lib/core/EditorQuillReact/IndentAttributor.js +0 -15
  383. package/lib/core/EditorQuillReact/config.d.ts +0 -30
  384. package/lib/core/EditorQuillReact/config.d.ts.map +0 -1
  385. package/lib/core/EditorQuillReact/config.js +0 -31
  386. package/lib/core/EditorQuillReact/index.d.ts +0 -23
  387. package/lib/core/EditorQuillReact/index.d.ts.map +0 -1
  388. package/lib/core/EditorQuillReact/index.js +0 -103
  389. package/lib/core/EditorQuillReact/styles.d.ts +0 -13
  390. package/lib/core/EditorQuillReact/styles.d.ts.map +0 -1
  391. package/lib/core/EditorQuillReact/styles.js +0 -34
  392. package/lib/shared/types/LoadedType.d.ts +0 -7
  393. package/lib/shared/types/LoadedType.d.ts.map +0 -1
  394. package/lib/shared/types/LoadedType.js +0 -1
@@ -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()