@bbl-digital/snorre 4.1.80 → 4.1.82

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