@bbl-digital/snorre 3.0.48 → 3.0.50

Sign up to get free protection for your applications and to get access to all the features.
Files changed (684) 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 +482 -480
  6. package/esm/app-shell/index.js +1 -1
  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/TableHeader/styles.js +1 -1
  18. package/esm/core/BoxedTable/TableRow/styles.js +8 -8
  19. package/esm/core/BoxedTable/styles.js +11 -11
  20. package/esm/core/Button/styles.js +18 -18
  21. package/esm/core/Calendar/CalendarEvent/styles.js +5 -5
  22. package/esm/core/Calendar/CalendarSmallEvent/styles.js +5 -5
  23. package/esm/core/Calendar/styles.js +5 -5
  24. package/esm/core/Card/styles.js +11 -11
  25. package/esm/core/Checkbox/styles.js +5 -5
  26. package/esm/core/CollapseList/styles.js +2 -2
  27. package/esm/core/CommentsTimeline/CommentLine/styles.js +4 -4
  28. package/esm/core/CommentsTimeline/styles.js +1 -1
  29. package/esm/core/CustomText/styles.js +2 -2
  30. package/esm/core/Datepicker/styles.js +9 -9
  31. package/esm/core/DatepickerRange/styles.js +9 -9
  32. package/esm/core/Divider/styles.js +5 -5
  33. package/esm/core/Dropdown/styles.js +3 -3
  34. package/esm/core/DropdownMenu/styles.js +3 -3
  35. package/esm/core/Editor/styles.js +4 -4
  36. package/esm/core/EditorOld/index.js +4 -4
  37. package/esm/core/EditorOld/styles.js +6 -6
  38. package/esm/core/FileInput/styles.js +12 -12
  39. package/esm/core/GoogleButton/styles.js +1 -1
  40. package/esm/core/Header/styles.js +7 -7
  41. package/esm/core/HighlightText/styles.js +1 -1
  42. package/esm/core/Html/styles.js +6 -6
  43. package/esm/core/Image/styles.js +3 -3
  44. package/esm/core/InfoButton/styles.js +9 -9
  45. package/esm/core/Input/index.js +3 -1
  46. package/esm/core/Input/styles.js +14 -14
  47. package/esm/core/Link/styles.js +10 -10
  48. package/esm/core/List/Item.js +1 -1
  49. package/esm/core/List/styles.js +11 -11
  50. package/esm/core/ListPager/styles.js +3 -3
  51. package/esm/core/Modal/styles.js +8 -8
  52. package/esm/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.js +4 -4
  53. package/esm/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.js +1 -1
  54. package/esm/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +3 -3
  55. package/esm/core/NoticeCard/styles.js +4 -4
  56. package/esm/core/NotificationCounter/styles.js +1 -1
  57. package/esm/core/NotificationsMenu/NotificationBell/styles.js +2 -2
  58. package/esm/core/NotificationsMenu/NotificationRow/styles.js +1 -1
  59. package/esm/core/NotificationsMenu/styles.js +2 -2
  60. package/esm/core/PreemptionCard/index.js +1 -1
  61. package/esm/core/PreemptionCardLoading/styles.js +3 -3
  62. package/esm/core/Radio/styles.js +4 -4
  63. package/esm/core/SearchFilter/index.js +1 -1
  64. package/esm/core/SearchFilter/styles.js +8 -8
  65. package/esm/core/SearchSelect/styles.js +5 -5
  66. package/esm/core/Select/index.js +1 -1
  67. package/esm/core/Select/styles.js +16 -16
  68. package/esm/core/SimpleLineChart/styles.js +1 -1
  69. package/esm/core/Skeleton/styles.js +4 -4
  70. package/esm/core/Spinner/styles.js +5 -5
  71. package/esm/core/TabBar/TabItem/styles.js +1 -1
  72. package/esm/core/TabBar/styles.js +1 -1
  73. package/esm/core/TabNav/TabNavItem/styles.js +5 -5
  74. package/esm/core/TabNav/styles.js +8 -8
  75. package/esm/core/Table/styles.js +16 -16
  76. package/esm/core/Tag/styles.js +12 -12
  77. package/esm/core/Text/styles.js +14 -14
  78. package/esm/core/Textarea/styles.js +6 -6
  79. package/esm/core/Timeline/TimelineStep/styles.js +6 -6
  80. package/esm/core/Timeline/styles.js +1 -1
  81. package/esm/core/Timepicker/styles.js +6 -6
  82. package/esm/core/UnitIllustration/index.js +9 -9
  83. package/esm/core/UserMenu/styles.js +7 -7
  84. package/esm/core/YearWheel/styles.js +3 -3
  85. package/esm/enums/Keyboard.js +2 -2
  86. package/esm/globals/styles/styles.js +1 -1
  87. package/esm/illustrations/styles.js +2 -2
  88. package/esm/index.d.js +2 -0
  89. package/esm/layout/Footer/FooterButton/styles.js +1 -1
  90. package/esm/layout/Footer/FooterCol/styles.js +1 -1
  91. package/esm/layout/Footer/FooterGroup/styles.js +1 -1
  92. package/esm/layout/Footer/FooterLabel/styles.js +1 -1
  93. package/esm/layout/Footer/FooterLink/styles.js +1 -1
  94. package/esm/layout/Footer/styles.js +2 -2
  95. package/esm/layout/Layout/styles.js +1 -1
  96. package/esm/layout/LayoutShell/styles.js +11 -11
  97. package/esm/layout/Menu/AppPicker/styles.js +3 -3
  98. package/esm/layout/Menu/MenuBottom/styles.js +2 -2
  99. package/esm/layout/Menu/MenuItem/styles.js +2 -2
  100. package/esm/layout/Menu/SecondaryMenu/styles.js +4 -4
  101. package/esm/layout/Menu/styles.js +1 -1
  102. package/esm/layout/Submenu/SubmenuItem/styles.js +3 -3
  103. package/esm/layout/Submenu/styles.js +10 -10
  104. package/esm/layout/Topbar/styles.js +1 -1
  105. package/esm/shared/recharts/CustomLegend/styles.js +2 -2
  106. package/esm/shared/recharts/CustomTooltip/styles.js +3 -3
  107. package/esm/utils/format.js +6 -6
  108. package/esm/utils/time.js +14 -14
  109. package/infrastructure/azure-pipelines.yml +29 -29
  110. package/jest.config.js +29 -29
  111. package/lib/app-shell/index.d.ts +11 -11
  112. package/lib/app-shell/index.js +1 -1
  113. package/lib/app-shell/theme.d.ts +122 -122
  114. package/lib/core/Alert/index.d.ts +23 -23
  115. package/lib/core/Alert/styles.d.ts +11 -11
  116. package/lib/core/Alert/styles.js +6 -6
  117. package/lib/core/AppLoader/index.d.ts +8 -8
  118. package/lib/core/AppLoader/styles.d.ts +6 -6
  119. package/lib/core/AppLoader/styles.js +1 -1
  120. package/lib/core/Autocomplete/hooks/useAutocomplete.d.ts +20 -20
  121. package/lib/core/Autocomplete/hooks/useHandleDimentions.d.ts +7 -7
  122. package/lib/core/Autocomplete/index.d.ts +6 -6
  123. package/lib/core/Autocomplete/index.interfaces.d.ts +82 -82
  124. package/lib/core/Autocomplete/styles.d.ts +39 -39
  125. package/lib/core/Autocomplete/styles.js +18 -18
  126. package/lib/core/Autocomplete/utils/useHandleOptionsHeight.d.ts +6 -6
  127. package/lib/core/Banner/index.d.ts +18 -18
  128. package/lib/core/Banner/styles.d.ts +17 -17
  129. package/lib/core/Banner/styles.js +4 -4
  130. package/lib/core/BarAndLineComposedChart/index.d.ts +58 -58
  131. package/lib/core/BarAndLineComposedChart/styles.d.ts +8 -8
  132. package/lib/core/BarAndLineComposedChart/styles.js +1 -1
  133. package/lib/core/BarChartWithCustomizedEvent/index.d.ts +56 -56
  134. package/lib/core/BarChartWithCustomizedEvent/styles.d.ts +9 -9
  135. package/lib/core/BarChartWithCustomizedEvent/styles.js +1 -1
  136. package/lib/core/Box/index.d.ts +28 -28
  137. package/lib/core/Box/styles.d.ts +37 -37
  138. package/lib/core/Box/styles.js +7 -7
  139. package/lib/core/BoxedTable/DraggableRow/index.d.ts +14 -14
  140. package/lib/core/BoxedTable/DraggableRow/styles.d.ts +21 -21
  141. package/lib/core/BoxedTable/DraggableRow/styles.js +5 -5
  142. package/lib/core/BoxedTable/HeaderCell/index.d.ts +24 -24
  143. package/lib/core/BoxedTable/HeaderCell/styles.d.ts +3 -3
  144. package/lib/core/BoxedTable/HeaderCell/styles.js +2 -2
  145. package/lib/core/BoxedTable/RowCell/index.d.ts +26 -26
  146. package/lib/core/BoxedTable/RowCell/index.js +1 -1
  147. package/lib/core/BoxedTable/RowCell/styles.d.ts +12 -12
  148. package/lib/core/BoxedTable/TableHeader/index.d.ts +7 -7
  149. package/lib/core/BoxedTable/TableHeader/styles.d.ts +5 -5
  150. package/lib/core/BoxedTable/TableHeader/styles.js +1 -1
  151. package/lib/core/BoxedTable/TableRow/index.d.ts +19 -19
  152. package/lib/core/BoxedTable/TableRow/styles.d.ts +25 -25
  153. package/lib/core/BoxedTable/TableRow/styles.js +8 -8
  154. package/lib/core/BoxedTable/index.d.ts +18 -18
  155. package/lib/core/BoxedTable/models.d.ts +5 -5
  156. package/lib/core/BoxedTable/styles.d.ts +15 -15
  157. package/lib/core/BoxedTable/styles.js +11 -11
  158. package/lib/core/Button/index.d.ts +34 -34
  159. package/lib/core/Button/styles.d.ts +24 -24
  160. package/lib/core/Button/styles.js +18 -18
  161. package/lib/core/Calendar/CalendarEvent/index.d.ts +9 -9
  162. package/lib/core/Calendar/CalendarEvent/styles.d.ts +18 -18
  163. package/lib/core/Calendar/CalendarEvent/styles.js +5 -5
  164. package/lib/core/Calendar/CalendarSmallEvent/index.d.ts +9 -9
  165. package/lib/core/Calendar/CalendarSmallEvent/styles.d.ts +18 -18
  166. package/lib/core/Calendar/CalendarSmallEvent/styles.js +5 -5
  167. package/lib/core/Calendar/index.d.ts +14 -14
  168. package/lib/core/Calendar/styles.d.ts +20 -20
  169. package/lib/core/Calendar/styles.js +5 -5
  170. package/lib/core/Calendar/util.d.ts +2 -2
  171. package/lib/core/Card/index.d.ts +31 -31
  172. package/lib/core/Card/styles.d.ts +16 -16
  173. package/lib/core/Card/styles.js +11 -11
  174. package/lib/core/Checkbox/index.d.ts +32 -32
  175. package/lib/core/Checkbox/styles.d.ts +10 -10
  176. package/lib/core/Checkbox/styles.js +5 -5
  177. package/lib/core/CollapseList/Item.d.ts +11 -11
  178. package/lib/core/CollapseList/index.d.ts +8 -8
  179. package/lib/core/CollapseList/styles.d.ts +21 -21
  180. package/lib/core/CollapseList/styles.js +2 -2
  181. package/lib/core/CommentsTimeline/CommentLine/index.d.ts +23 -23
  182. package/lib/core/CommentsTimeline/CommentLine/styles.d.ts +14 -14
  183. package/lib/core/CommentsTimeline/CommentLine/styles.js +4 -4
  184. package/lib/core/CommentsTimeline/index.d.ts +7 -7
  185. package/lib/core/CommentsTimeline/styles.d.ts +5 -5
  186. package/lib/core/CommentsTimeline/styles.js +1 -1
  187. package/lib/core/CustomText/index.d.ts +24 -24
  188. package/lib/core/CustomText/styles.d.ts +6 -6
  189. package/lib/core/CustomText/styles.js +2 -2
  190. package/lib/core/Datepicker/index.d.ts +30 -30
  191. package/lib/core/Datepicker/styles.d.ts +28 -38
  192. package/lib/core/Datepicker/styles.d.ts.map +1 -1
  193. package/lib/core/Datepicker/styles.js +9 -9
  194. package/lib/core/Datepicker/yearMonthForm.d.ts +9 -9
  195. package/lib/core/DatepickerRange/index.d.ts +49 -49
  196. package/lib/core/DatepickerRange/styles.d.ts +28 -28
  197. package/lib/core/DatepickerRange/styles.js +9 -9
  198. package/lib/core/Divider/index.d.ts +21 -21
  199. package/lib/core/Divider/styles.d.ts +10 -10
  200. package/lib/core/Divider/styles.js +5 -5
  201. package/lib/core/Dropdown/index.d.ts +25 -25
  202. package/lib/core/Dropdown/styles.d.ts +8 -8
  203. package/lib/core/Dropdown/styles.js +3 -3
  204. package/lib/core/DropdownMenu/DropdownMenuOption.d.ts +12 -12
  205. package/lib/core/DropdownMenu/index.d.ts +11 -11
  206. package/lib/core/DropdownMenu/styles.d.ts +11 -11
  207. package/lib/core/DropdownMenu/styles.js +3 -3
  208. package/lib/core/Editor/config.d.ts +5 -5
  209. package/lib/core/Editor/index.d.ts +40 -40
  210. package/lib/core/Editor/styles.d.ts +14 -14
  211. package/lib/core/Editor/styles.js +4 -4
  212. package/lib/core/EditorOld/config.d.ts +55 -55
  213. package/lib/core/EditorOld/index.d.ts +38 -38
  214. package/lib/core/EditorOld/index.js +4 -4
  215. package/lib/core/EditorOld/styles.d.ts +22 -22
  216. package/lib/core/EditorOld/styles.js +6 -6
  217. package/lib/core/FileInput/index.d.ts +27 -27
  218. package/lib/core/FileInput/styles.d.ts +64 -64
  219. package/lib/core/FileInput/styles.js +12 -12
  220. package/lib/core/GoogleButton/index.d.ts +8 -8
  221. package/lib/core/GoogleButton/styles.d.ts +5 -5
  222. package/lib/core/GoogleButton/styles.js +1 -1
  223. package/lib/core/Header/index.d.ts +20 -20
  224. package/lib/core/Header/styles.d.ts +12 -12
  225. package/lib/core/Header/styles.js +7 -7
  226. package/lib/core/HighlightText/index.d.ts +11 -11
  227. package/lib/core/HighlightText/styles.d.ts +5 -5
  228. package/lib/core/HighlightText/styles.js +1 -1
  229. package/lib/core/Html/index.d.ts +20 -20
  230. package/lib/core/Html/styles.d.ts +11 -11
  231. package/lib/core/Html/styles.js +6 -6
  232. package/lib/core/Image/index.d.ts +20 -20
  233. package/lib/core/Image/styles.d.ts +7 -7
  234. package/lib/core/Image/styles.js +3 -3
  235. package/lib/core/InfoButton/index.d.ts +20 -20
  236. package/lib/core/InfoButton/styles.d.ts +34 -34
  237. package/lib/core/InfoButton/styles.js +9 -9
  238. package/lib/core/Input/index.d.ts +53 -53
  239. package/lib/core/Input/index.js +3 -1
  240. package/lib/core/Input/styles.d.ts +19 -19
  241. package/lib/core/Input/styles.js +14 -14
  242. package/lib/core/Link/index.d.ts +25 -25
  243. package/lib/core/Link/styles.d.ts +15 -15
  244. package/lib/core/Link/styles.js +10 -10
  245. package/lib/core/List/Item.d.ts +6 -6
  246. package/lib/core/List/Item.js +1 -1
  247. package/lib/core/List/index.d.ts +34 -34
  248. package/lib/core/List/styles.d.ts +34 -34
  249. package/lib/core/List/styles.js +11 -11
  250. package/lib/core/ListPager/index.d.ts +15 -15
  251. package/lib/core/ListPager/styles.d.ts +10 -10
  252. package/lib/core/ListPager/styles.js +3 -3
  253. package/lib/core/Modal/index.d.ts +43 -43
  254. package/lib/core/Modal/styles.d.ts +42 -42
  255. package/lib/core/Modal/styles.js +8 -8
  256. package/lib/core/NoticeCard/index.d.ts +22 -22
  257. package/lib/core/NoticeCard/models.d.ts +30 -30
  258. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/index.d.ts +9 -9
  259. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.d.ts +18 -18
  260. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.js +4 -4
  261. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/index.d.ts +8 -8
  262. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.d.ts +5 -5
  263. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.js +1 -1
  264. package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/index.d.ts +11 -11
  265. package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.d.ts +13 -13
  266. package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +3 -3
  267. package/lib/core/NoticeCard/styles.d.ts +19 -19
  268. package/lib/core/NoticeCard/styles.js +4 -4
  269. package/lib/core/NoticeCard/utils.d.ts +2 -2
  270. package/lib/core/NotificationCounter/index.d.ts +12 -12
  271. package/lib/core/NotificationCounter/styles.d.ts +4 -4
  272. package/lib/core/NotificationCounter/styles.js +1 -1
  273. package/lib/core/NotificationsMenu/NotificationBell/index.d.ts +7 -7
  274. package/lib/core/NotificationsMenu/NotificationBell/styles.d.ts +6 -6
  275. package/lib/core/NotificationsMenu/NotificationBell/styles.js +2 -2
  276. package/lib/core/NotificationsMenu/NotificationRow/index.d.ts +15 -15
  277. package/lib/core/NotificationsMenu/NotificationRow/styles.d.ts +2 -2
  278. package/lib/core/NotificationsMenu/NotificationRow/styles.js +1 -1
  279. package/lib/core/NotificationsMenu/index.d.ts +13 -13
  280. package/lib/core/NotificationsMenu/styles.d.ts +9 -9
  281. package/lib/core/NotificationsMenu/styles.js +2 -2
  282. package/lib/core/PieChart/ActiveShape/index.d.ts +3 -3
  283. package/lib/core/PieChart/index.d.ts +30 -30
  284. package/lib/core/PieChart/renderTextContent/index.d.ts +3 -3
  285. package/lib/core/PieChart/styles.d.ts +14 -14
  286. package/lib/core/PreemptionCard/index.d.ts +9 -9
  287. package/lib/core/PreemptionCard/index.js +1 -1
  288. package/lib/core/PreemptionCard/models.d.ts +115 -115
  289. package/lib/core/PreemptionCard/styles.d.ts +10 -10
  290. package/lib/core/PreemptionCardLoading/index.d.ts +5 -5
  291. package/lib/core/PreemptionCardLoading/styles.d.ts +13 -13
  292. package/lib/core/PreemptionCardLoading/styles.js +3 -3
  293. package/lib/core/Radio/index.d.ts +24 -24
  294. package/lib/core/Radio/styles.d.ts +9 -9
  295. package/lib/core/Radio/styles.js +4 -4
  296. package/lib/core/SearchFilter/index.d.ts +22 -22
  297. package/lib/core/SearchFilter/index.js +1 -1
  298. package/lib/core/SearchFilter/styles.d.ts +30 -30
  299. package/lib/core/SearchFilter/styles.js +8 -8
  300. package/lib/core/SearchSelect/hooks/useSelectSearch.d.ts +10 -10
  301. package/lib/core/SearchSelect/index.d.ts +5 -5
  302. package/lib/core/SearchSelect/interface/IProps.d.ts +38 -38
  303. package/lib/core/SearchSelect/styles.d.ts +20 -20
  304. package/lib/core/SearchSelect/styles.js +5 -5
  305. package/lib/core/Select/Option.d.ts +22 -22
  306. package/lib/core/Select/index.d.ts +49 -49
  307. package/lib/core/Select/index.js +1 -1
  308. package/lib/core/Select/styles.d.ts +29 -29
  309. package/lib/core/Select/styles.js +16 -16
  310. package/lib/core/SimpleBarChart/index.d.ts +56 -56
  311. package/lib/core/SimpleBarChart/styles.d.ts +8 -8
  312. package/lib/core/SimpleLineChart/index.d.ts +65 -65
  313. package/lib/core/SimpleLineChart/styles.d.ts +8 -8
  314. package/lib/core/SimpleLineChart/styles.js +1 -1
  315. package/lib/core/Skeleton/index.d.ts +15 -15
  316. package/lib/core/Skeleton/styles.d.ts +20 -20
  317. package/lib/core/Skeleton/styles.js +4 -4
  318. package/lib/core/Spinner/index.d.ts +11 -11
  319. package/lib/core/Spinner/styles.d.ts +10 -10
  320. package/lib/core/Spinner/styles.js +5 -5
  321. package/lib/core/TabBar/TabItem/index.d.ts +13 -13
  322. package/lib/core/TabBar/TabItem/styles.d.ts +5 -5
  323. package/lib/core/TabBar/TabItem/styles.js +1 -1
  324. package/lib/core/TabBar/index.d.ts +7 -7
  325. package/lib/core/TabBar/styles.d.ts +5 -5
  326. package/lib/core/TabBar/styles.js +1 -1
  327. package/lib/core/TabNav/TabContext.d.ts +18 -18
  328. package/lib/core/TabNav/TabNavItem/index.d.ts +34 -34
  329. package/lib/core/TabNav/TabNavItem/styles.d.ts +26 -26
  330. package/lib/core/TabNav/TabNavItem/styles.js +5 -5
  331. package/lib/core/TabNav/index.d.ts +30 -30
  332. package/lib/core/TabNav/styles.d.ts +24 -24
  333. package/lib/core/TabNav/styles.js +8 -8
  334. package/lib/core/TabNav/utils/useContainerDimensions.d.ts +7 -7
  335. package/lib/core/Table/Cell.d.ts +22 -22
  336. package/lib/core/Table/Row.d.ts +21 -21
  337. package/lib/core/Table/index.d.ts +10 -10
  338. package/lib/core/Table/styles.d.ts +26 -26
  339. package/lib/core/Table/styles.js +16 -16
  340. package/lib/core/Tag/index.d.ts +44 -44
  341. package/lib/core/Tag/styles.d.ts +17 -17
  342. package/lib/core/Tag/styles.js +12 -12
  343. package/lib/core/Text/index.d.ts +44 -44
  344. package/lib/core/Text/styles.d.ts +19 -19
  345. package/lib/core/Text/styles.js +14 -14
  346. package/lib/core/Textarea/index.d.ts +28 -28
  347. package/lib/core/Textarea/styles.d.ts +16 -16
  348. package/lib/core/Textarea/styles.js +6 -6
  349. package/lib/core/Timeline/TimelineStep/index.d.ts +14 -14
  350. package/lib/core/Timeline/TimelineStep/styles.d.ts +16 -16
  351. package/lib/core/Timeline/TimelineStep/styles.js +6 -6
  352. package/lib/core/Timeline/index.d.ts +7 -7
  353. package/lib/core/Timeline/styles.d.ts +5 -5
  354. package/lib/core/Timeline/styles.js +1 -1
  355. package/lib/core/Timepicker/index.d.ts +36 -36
  356. package/lib/core/Timepicker/styles.d.ts +18 -18
  357. package/lib/core/Timepicker/styles.js +6 -6
  358. package/lib/core/UnitIllustration/index.d.ts +6 -6
  359. package/lib/core/UnitIllustration/index.js +9 -9
  360. package/lib/core/UserMenu/UserMenuOption.d.ts +10 -10
  361. package/lib/core/UserMenu/index.d.ts +19 -19
  362. package/lib/core/UserMenu/styles.d.ts +27 -27
  363. package/lib/core/UserMenu/styles.js +7 -7
  364. package/lib/core/YearWheel/index.d.ts +10 -10
  365. package/lib/core/YearWheel/styles.d.ts +8 -8
  366. package/lib/core/YearWheel/styles.js +3 -3
  367. package/lib/core/private/ButtonOrLink.d.ts +48 -48
  368. package/lib/core/private/preemption.d.ts +5 -5
  369. package/lib/core/utils/debounce.d.ts +2 -2
  370. package/lib/enums/Keyboard.d.ts +14 -14
  371. package/lib/enums/Keyboard.js +2 -2
  372. package/lib/globals/styles/breakpoints.d.ts +9 -9
  373. package/lib/globals/styles/paddings.d.ts +8 -8
  374. package/lib/globals/styles/styles.d.ts +1 -1
  375. package/lib/globals/styles/styles.js +1 -1
  376. package/lib/globals/validation/regularExpressions.d.ts +10 -10
  377. package/lib/hooks/useIsMobile.d.ts +1 -1
  378. package/lib/hooks/useScreenOrientation.d.ts +2 -2
  379. package/lib/icons/General/IconApartment.d.ts +3 -3
  380. package/lib/icons/General/IconArchives.d.ts +3 -3
  381. package/lib/icons/General/IconArea.d.ts +3 -3
  382. package/lib/icons/General/IconArrowDown.d.ts +3 -3
  383. package/lib/icons/General/IconArrowLeft.d.ts +3 -3
  384. package/lib/icons/General/IconArrowRight.d.ts +3 -3
  385. package/lib/icons/General/IconArrowUp.d.ts +3 -3
  386. package/lib/icons/General/IconAttachment.d.ts +3 -3
  387. package/lib/icons/General/IconAuditorFilled.d.ts +3 -3
  388. package/lib/icons/General/IconAuditorOutline.d.ts +3 -3
  389. package/lib/icons/General/IconBack.d.ts +3 -3
  390. package/lib/icons/General/IconBath.d.ts +3 -3
  391. package/lib/icons/General/IconBblFlame.d.ts +3 -3
  392. package/lib/icons/General/IconBblShield.d.ts +3 -3
  393. package/lib/icons/General/IconBblWater.d.ts +3 -3
  394. package/lib/icons/General/IconBellOutline.d.ts +3 -3
  395. package/lib/icons/General/IconBlock.d.ts +3 -3
  396. package/lib/icons/General/IconBoard.d.ts +3 -3
  397. package/lib/icons/General/IconBookmarkFilled.d.ts +3 -3
  398. package/lib/icons/General/IconBookmarkOutline.d.ts +3 -3
  399. package/lib/icons/General/IconBus.d.ts +3 -3
  400. package/lib/icons/General/IconCalendar.d.ts +3 -3
  401. package/lib/icons/General/IconCar.d.ts +3 -3
  402. package/lib/icons/General/IconCaretDown.d.ts +3 -3
  403. package/lib/icons/General/IconCaretLeft.d.ts +3 -3
  404. package/lib/icons/General/IconCaretRight.d.ts +3 -3
  405. package/lib/icons/General/IconCaretUp.d.ts +3 -3
  406. package/lib/icons/General/IconCases.d.ts +3 -3
  407. package/lib/icons/General/IconCheck.d.ts +3 -3
  408. package/lib/icons/General/IconCheckedFilled.d.ts +3 -3
  409. package/lib/icons/General/IconCheckedOutline.d.ts +3 -3
  410. package/lib/icons/General/IconChevronDown.d.ts +3 -3
  411. package/lib/icons/General/IconChevronLeft.d.ts +3 -3
  412. package/lib/icons/General/IconChevronRight.d.ts +3 -3
  413. package/lib/icons/General/IconChoice.d.ts +3 -3
  414. package/lib/icons/General/IconClose.d.ts +3 -3
  415. package/lib/icons/General/IconCloseAlt.d.ts +3 -3
  416. package/lib/icons/General/IconComment.d.ts +3 -3
  417. package/lib/icons/General/IconCommunication.d.ts +3 -3
  418. package/lib/icons/General/IconCommunicationFilled.d.ts +3 -3
  419. package/lib/icons/General/IconCompanyBuilding.d.ts +3 -3
  420. package/lib/icons/General/IconCompanyBuildingFilled.d.ts +3 -3
  421. package/lib/icons/General/IconCompanyBuildingOutline.d.ts +3 -3
  422. package/lib/icons/General/IconDashboard.d.ts +3 -3
  423. package/lib/icons/General/IconDashboardFilled.d.ts +3 -3
  424. package/lib/icons/General/IconDelete.d.ts +3 -3
  425. package/lib/icons/General/IconDocument.d.ts +3 -3
  426. package/lib/icons/General/IconDocumentFilled.d.ts +3 -3
  427. package/lib/icons/General/IconDoor.d.ts +3 -3
  428. package/lib/icons/General/IconDotFilled.d.ts +3 -3
  429. package/lib/icons/General/IconDotOutline.d.ts +3 -3
  430. package/lib/icons/General/IconDownload.d.ts +3 -3
  431. package/lib/icons/General/IconDraft.d.ts +3 -3
  432. package/lib/icons/General/IconEarth.d.ts +3 -3
  433. package/lib/icons/General/IconEconomy.d.ts +3 -3
  434. package/lib/icons/General/IconEconomyFilled.d.ts +3 -3
  435. package/lib/icons/General/IconEdit.d.ts +3 -3
  436. package/lib/icons/General/IconElevator.d.ts +3 -3
  437. package/lib/icons/General/IconErrorFilled.d.ts +3 -3
  438. package/lib/icons/General/IconErrorOutline.d.ts +3 -3
  439. package/lib/icons/General/IconExternalLink.d.ts +3 -3
  440. package/lib/icons/General/IconEye.d.ts +3 -3
  441. package/lib/icons/General/IconEyeDeny.d.ts +3 -3
  442. package/lib/icons/General/IconFamily.d.ts +3 -3
  443. package/lib/icons/General/IconFerry.d.ts +3 -3
  444. package/lib/icons/General/IconFile.d.ts +3 -3
  445. package/lib/icons/General/IconFileAdd.d.ts +3 -3
  446. package/lib/icons/General/IconFileCopy.d.ts +3 -3
  447. package/lib/icons/General/IconFileEdit.d.ts +3 -3
  448. package/lib/icons/General/IconFileExcel.d.ts +3 -3
  449. package/lib/icons/General/IconFilePDF.d.ts +3 -3
  450. package/lib/icons/General/IconFileWord.d.ts +3 -3
  451. package/lib/icons/General/IconFillOut.d.ts +3 -3
  452. package/lib/icons/General/IconFilterList.d.ts +3 -3
  453. package/lib/icons/General/IconFloor.d.ts +3 -3
  454. package/lib/icons/General/IconForward.d.ts +3 -3
  455. package/lib/icons/General/IconFullscreenClose.d.ts +3 -3
  456. package/lib/icons/General/IconFullscreenOpen.d.ts +3 -3
  457. package/lib/icons/General/IconGarage.d.ts +3 -3
  458. package/lib/icons/General/IconGrid.d.ts +3 -3
  459. package/lib/icons/General/IconGym.d.ts +3 -3
  460. package/lib/icons/General/IconHearth.d.ts +3 -3
  461. package/lib/icons/General/IconHearthOutline.d.ts +3 -3
  462. package/lib/icons/General/IconHelp.d.ts +3 -3
  463. package/lib/icons/General/IconHistory.d.ts +3 -3
  464. package/lib/icons/General/IconHomeFilled.d.ts +3 -3
  465. package/lib/icons/General/IconHomeOutline.d.ts +3 -3
  466. package/lib/icons/General/IconHouse.d.ts +3 -3
  467. package/lib/icons/General/IconHouseBlockFilled.d.ts +3 -3
  468. package/lib/icons/General/IconHouseBlockOutline.d.ts +3 -3
  469. package/lib/icons/General/IconHouseOutline.d.ts +3 -3
  470. package/lib/icons/General/IconHumans.d.ts +3 -3
  471. package/lib/icons/General/IconImportantComment.d.ts +3 -3
  472. package/lib/icons/General/IconInbox.d.ts +3 -3
  473. package/lib/icons/General/IconInfoFilled.d.ts +3 -3
  474. package/lib/icons/General/IconInfoOutline.d.ts +3 -3
  475. package/lib/icons/General/IconJanitorFilled.d.ts +3 -3
  476. package/lib/icons/General/IconJanitorOutline.d.ts +3 -3
  477. package/lib/icons/General/IconJointcost.d.ts +3 -3
  478. package/lib/icons/General/IconJointcost2.d.ts +3 -3
  479. package/lib/icons/General/IconKey.d.ts +3 -3
  480. package/lib/icons/General/IconKitchen.d.ts +3 -3
  481. package/lib/icons/General/IconLabel.d.ts +3 -3
  482. package/lib/icons/General/IconLeafFilled.d.ts +3 -3
  483. package/lib/icons/General/IconLeafOutline.d.ts +3 -3
  484. package/lib/icons/General/IconLeisureTime.d.ts +3 -3
  485. package/lib/icons/General/IconLock.d.ts +3 -3
  486. package/lib/icons/General/IconLockLocked.d.ts +3 -3
  487. package/lib/icons/General/IconLockOpen.d.ts +3 -3
  488. package/lib/icons/General/IconLookup.d.ts +3 -3
  489. package/lib/icons/General/IconLookupFilled.d.ts +3 -3
  490. package/lib/icons/General/IconMail.d.ts +3 -3
  491. package/lib/icons/General/IconMap.d.ts +3 -3
  492. package/lib/icons/General/IconMembership.d.ts +3 -3
  493. package/lib/icons/General/IconMembershipFilled.d.ts +3 -3
  494. package/lib/icons/General/IconMenu.d.ts +3 -3
  495. package/lib/icons/General/IconMinus.d.ts +3 -3
  496. package/lib/icons/General/IconMinusAlt.d.ts +3 -3
  497. package/lib/icons/General/IconMinusAltFilled.d.ts +3 -3
  498. package/lib/icons/General/IconMoney.d.ts +3 -3
  499. package/lib/icons/General/IconParking.d.ts +3 -3
  500. package/lib/icons/General/IconPaymentCard.d.ts +3 -3
  501. package/lib/icons/General/IconPhone.d.ts +3 -3
  502. package/lib/icons/General/IconPinned.d.ts +3 -3
  503. package/lib/icons/General/IconPlus.d.ts +3 -3
  504. package/lib/icons/General/IconPlusAlt.d.ts +3 -3
  505. package/lib/icons/General/IconPortalUser.d.ts +3 -3
  506. package/lib/icons/General/IconPrint.d.ts +3 -3
  507. package/lib/icons/General/IconProfile.d.ts +3 -3
  508. package/lib/icons/General/IconProfileFilled.d.ts +3 -3
  509. package/lib/icons/General/IconRearrange.d.ts +3 -3
  510. package/lib/icons/General/IconReciept.d.ts +3 -3
  511. package/lib/icons/General/IconRedo.d.ts +3 -3
  512. package/lib/icons/General/IconRefresh.d.ts +3 -3
  513. package/lib/icons/General/IconReply.d.ts +3 -3
  514. package/lib/icons/General/IconReplyAll.d.ts +3 -3
  515. package/lib/icons/General/IconRoom.d.ts +3 -3
  516. package/lib/icons/General/IconSave.d.ts +3 -3
  517. package/lib/icons/General/IconSearch.d.ts +3 -3
  518. package/lib/icons/General/IconSend.d.ts +3 -3
  519. package/lib/icons/General/IconSettings.d.ts +3 -3
  520. package/lib/icons/General/IconShopping.d.ts +3 -3
  521. package/lib/icons/General/IconSign.d.ts +3 -3
  522. package/lib/icons/General/IconSliders.d.ts +3 -3
  523. package/lib/icons/General/IconSort.d.ts +3 -3
  524. package/lib/icons/General/IconStarFilled.d.ts +3 -3
  525. package/lib/icons/General/IconStarHalf.d.ts +3 -3
  526. package/lib/icons/General/IconStarOutline.d.ts +3 -3
  527. package/lib/icons/General/IconStore.d.ts +3 -3
  528. package/lib/icons/General/IconSubway.d.ts +3 -3
  529. package/lib/icons/General/IconSwitch.d.ts +3 -3
  530. package/lib/icons/General/IconTrain.d.ts +3 -3
  531. package/lib/icons/General/IconTram.d.ts +3 -3
  532. package/lib/icons/General/IconTransport.d.ts +3 -3
  533. package/lib/icons/General/IconTypeOfBuilding.d.ts +3 -3
  534. package/lib/icons/General/IconTypeOfBuildingOutline.d.ts +3 -3
  535. package/lib/icons/General/IconUndo.d.ts +3 -3
  536. package/lib/icons/General/IconUpload.d.ts +3 -3
  537. package/lib/icons/General/IconUser.d.ts +3 -3
  538. package/lib/icons/General/IconUserThin.d.ts +3 -3
  539. package/lib/icons/General/IconVote.d.ts +3 -3
  540. package/lib/icons/General/IconWalk.d.ts +3 -3
  541. package/lib/icons/General/IconWarning.d.ts +3 -3
  542. package/lib/icons/General/IconWarningBell.d.ts +3 -3
  543. package/lib/icons/General/IconWork.d.ts +3 -3
  544. package/lib/icons/General/IconWorkFilled.d.ts +3 -3
  545. package/lib/icons/General/IconZip.d.ts +3 -3
  546. package/lib/icons/Logos/IconAmericanExpress.d.ts +3 -3
  547. package/lib/icons/Logos/IconBankAxept.d.ts +3 -3
  548. package/lib/icons/Logos/IconGmail.d.ts +3 -3
  549. package/lib/icons/Logos/IconMasterCard.d.ts +3 -3
  550. package/lib/icons/Logos/IconOffice365.d.ts +3 -3
  551. package/lib/icons/Logos/IconVisa.d.ts +3 -3
  552. package/lib/icons/withIcon.d.ts +27 -27
  553. package/lib/illustrations/Backgrounds/IllustrationHousesBackground.d.ts +3 -3
  554. package/lib/illustrations/Backgrounds/IllustrationHousesBackgroundWithComposition.d.ts +3 -3
  555. package/lib/illustrations/General/IllustrationError.d.ts +3 -3
  556. package/lib/illustrations/General/IllustrationErrorGeneric.d.ts +3 -3
  557. package/lib/illustrations/General/IllustrationHighHouse.d.ts +3 -3
  558. package/lib/illustrations/General/IllustrationHighHouseComposition.d.ts +3 -3
  559. package/lib/illustrations/General/IllustrationHouse.d.ts +3 -3
  560. package/lib/illustrations/General/IllustrationHouseComposition.d.ts +3 -3
  561. package/lib/illustrations/General/IllustrationHouseMissing.d.ts +3 -3
  562. package/lib/illustrations/General/IllustrationLowHouse.d.ts +3 -3
  563. package/lib/illustrations/General/IllustrationLowHouseComposition.d.ts +3 -3
  564. package/lib/illustrations/General/IllustrationPaperCompleted.d.ts +3 -3
  565. package/lib/illustrations/General/IllustrationPaperMissing.d.ts +3 -3
  566. package/lib/illustrations/General/IllustrationSemiDetachedHouse.d.ts +3 -3
  567. package/lib/illustrations/General/IllustrationSemiDetachedHouseComposition.d.ts +3 -3
  568. package/lib/illustrations/General/IllustrationSmallHouse.d.ts +3 -3
  569. package/lib/illustrations/General/IllustrationSmallHouseComposition.d.ts +3 -3
  570. package/lib/illustrations/General/IllustrationTerraceBlock.d.ts +3 -3
  571. package/lib/illustrations/General/IllustrationTerraceBlockComposition.d.ts +3 -3
  572. package/lib/illustrations/General/IllustrationTownHouse.d.ts +3 -3
  573. package/lib/illustrations/General/IllustrationTownHouseComposition.d.ts +3 -3
  574. package/lib/illustrations/MySite/IllustrationMySiteBuilding.d.ts +3 -3
  575. package/lib/illustrations/MySite/IllustrationMySiteCoffeeBook.d.ts +3 -3
  576. package/lib/illustrations/MySite/IllustrationMySiteComputer.d.ts +3 -3
  577. package/lib/illustrations/MySite/IllustrationMySiteGift.d.ts +3 -3
  578. package/lib/illustrations/MySite/IllustrationMySitePapers.d.ts +3 -3
  579. package/lib/illustrations/MySite/IllustrationMySitePiggyBank.d.ts +3 -3
  580. package/lib/illustrations/MySite/IllustrationMySiteTransfer.d.ts +3 -3
  581. package/lib/illustrations/styles.d.ts +3 -3
  582. package/lib/illustrations/styles.js +2 -2
  583. package/lib/illustrations/withIllustration.d.ts +24 -24
  584. package/lib/index.d.js +2 -0
  585. package/lib/index.d.ts +305 -305
  586. package/lib/layout/Footer/FooterButton/index.d.ts +15 -15
  587. package/lib/layout/Footer/FooterButton/styles.d.ts +13 -13
  588. package/lib/layout/Footer/FooterButton/styles.js +1 -1
  589. package/lib/layout/Footer/FooterCol/index.d.ts +7 -7
  590. package/lib/layout/Footer/FooterCol/styles.d.ts +5 -5
  591. package/lib/layout/Footer/FooterCol/styles.js +1 -1
  592. package/lib/layout/Footer/FooterGroup/index.d.ts +7 -7
  593. package/lib/layout/Footer/FooterGroup/styles.d.ts +5 -5
  594. package/lib/layout/Footer/FooterGroup/styles.js +1 -1
  595. package/lib/layout/Footer/FooterLabel/index.d.ts +7 -7
  596. package/lib/layout/Footer/FooterLabel/styles.d.ts +5 -5
  597. package/lib/layout/Footer/FooterLabel/styles.js +1 -1
  598. package/lib/layout/Footer/FooterLink/index.d.ts +19 -19
  599. package/lib/layout/Footer/FooterLink/styles.d.ts +13 -13
  600. package/lib/layout/Footer/FooterLink/styles.js +1 -1
  601. package/lib/layout/Footer/index.d.ts +8 -8
  602. package/lib/layout/Footer/styles.d.ts +7 -7
  603. package/lib/layout/Footer/styles.js +2 -2
  604. package/lib/layout/Layout/index.d.ts +7 -7
  605. package/lib/layout/Layout/styles.d.ts +5 -5
  606. package/lib/layout/Layout/styles.js +1 -1
  607. package/lib/layout/LayoutShell/index.d.ts +22 -22
  608. package/lib/layout/LayoutShell/styles.d.ts +23 -23
  609. package/lib/layout/LayoutShell/styles.js +11 -11
  610. package/lib/layout/Menu/AppPicker/index.d.ts +19 -19
  611. package/lib/layout/Menu/AppPicker/styles.d.ts +7 -7
  612. package/lib/layout/Menu/AppPicker/styles.js +3 -3
  613. package/lib/layout/Menu/MainMenu/index.d.ts +9 -9
  614. package/lib/layout/Menu/MainMenu/styles.d.ts +2 -2
  615. package/lib/layout/Menu/MenuBottom/index.d.ts +13 -13
  616. package/lib/layout/Menu/MenuBottom/styles.d.ts +3 -3
  617. package/lib/layout/Menu/MenuBottom/styles.js +2 -2
  618. package/lib/layout/Menu/MenuItem/index.d.ts +17 -17
  619. package/lib/layout/Menu/MenuItem/styles.d.ts +3 -3
  620. package/lib/layout/Menu/MenuItem/styles.js +2 -2
  621. package/lib/layout/Menu/MenuSpacer/index.d.ts +7 -7
  622. package/lib/layout/Menu/MenuSpacer/styles.d.ts +5 -5
  623. package/lib/layout/Menu/MenuTop/index.d.ts +13 -13
  624. package/lib/layout/Menu/MenuTop/styles.d.ts +19 -19
  625. package/lib/layout/Menu/SecondaryMenu/index.d.ts +15 -15
  626. package/lib/layout/Menu/SecondaryMenu/styles.d.ts +11 -11
  627. package/lib/layout/Menu/SecondaryMenu/styles.js +4 -4
  628. package/lib/layout/Menu/SecondaryMenuItem/index.d.ts +15 -15
  629. package/lib/layout/Menu/SecondaryMenuItem/styles.d.ts +1 -1
  630. package/lib/layout/Menu/index.d.ts +11 -11
  631. package/lib/layout/Menu/styles.d.ts +2 -2
  632. package/lib/layout/Menu/styles.js +1 -1
  633. package/lib/layout/Submenu/SubmenuItem/index.d.ts +20 -20
  634. package/lib/layout/Submenu/SubmenuItem/styles.d.ts +4 -4
  635. package/lib/layout/Submenu/SubmenuItem/styles.js +3 -3
  636. package/lib/layout/Submenu/SubmenuLightThemeBg/index.d.ts +7 -7
  637. package/lib/layout/Submenu/index.d.ts +16 -16
  638. package/lib/layout/Submenu/styles.d.ts +29 -29
  639. package/lib/layout/Submenu/styles.js +10 -10
  640. package/lib/layout/Topbar/index.d.ts +11 -11
  641. package/lib/layout/Topbar/styles.d.ts +2 -2
  642. package/lib/layout/Topbar/styles.js +1 -1
  643. package/lib/shared/recharts/CustomLegend/index.d.ts +3 -3
  644. package/lib/shared/recharts/CustomLegend/styles.d.ts +13 -13
  645. package/lib/shared/recharts/CustomLegend/styles.js +2 -2
  646. package/lib/shared/recharts/CustomTooltip/index.d.ts +10 -10
  647. package/lib/shared/recharts/CustomTooltip/styles.d.ts +15 -15
  648. package/lib/shared/recharts/CustomTooltip/styles.js +3 -3
  649. package/lib/utils/accountNumber.d.ts +3 -3
  650. package/lib/utils/alpha.d.ts +2 -2
  651. package/lib/utils/array.d.ts +2 -2
  652. package/lib/utils/dates.d.ts +14 -14
  653. package/lib/utils/file.d.ts +2 -2
  654. package/lib/utils/format.d.ts +20 -20
  655. package/lib/utils/format.js +6 -6
  656. package/lib/utils/formatGraphPrice.d.ts +2 -2
  657. package/lib/utils/image.d.ts +2 -2
  658. package/lib/utils/pagination.d.ts +6 -6
  659. package/lib/utils/phone.d.ts +2 -2
  660. package/lib/utils/removeFocusOnMouseUp.d.ts +2 -2
  661. package/lib/utils/time.d.ts +25 -25
  662. package/lib/utils/time.js +14 -14
  663. package/lib/utils/url.d.ts +3 -3
  664. package/package.json +1 -1
  665. package/rollup.config.js +13 -14
  666. package/theme-generator.js +599 -599
  667. package/dist/bundle.min.js +0 -29
  668. package/esm/core/MailMenu/DropdownMenuOption.js +0 -17
  669. package/esm/core/MailMenu/index.js +0 -42
  670. package/esm/core/MailMenu/styles.js +0 -34
  671. package/esm/layout/Submenu/SubmenuLightThemeBg/styles.js +0 -10
  672. package/lib/core/MailMenu/DropdownMenuOption.d.ts +0 -8
  673. package/lib/core/MailMenu/DropdownMenuOption.d.ts.map +0 -1
  674. package/lib/core/MailMenu/DropdownMenuOption.js +0 -17
  675. package/lib/core/MailMenu/index.d.ts +0 -8
  676. package/lib/core/MailMenu/index.d.ts.map +0 -1
  677. package/lib/core/MailMenu/index.js +0 -42
  678. package/lib/core/MailMenu/styles.d.ts +0 -12
  679. package/lib/core/MailMenu/styles.d.ts.map +0 -1
  680. package/lib/core/MailMenu/styles.js +0 -34
  681. package/lib/layout/Submenu/SubmenuLightThemeBg/styles.d.ts +0 -3
  682. package/lib/layout/Submenu/SubmenuLightThemeBg/styles.d.ts.map +0 -1
  683. package/lib/layout/Submenu/SubmenuLightThemeBg/styles.js +0 -10
  684. package/plugins/reactFloater.rollup.js +0 -10
@@ -1,599 +1,599 @@
1
- const fs = require('fs')
2
-
3
- const initTheme = (
4
- primary,
5
- secondary,
6
- bgalpha,
7
- secondaryFooter = false,
8
- sidemenuColor,
9
- sidemenuItemColor,
10
- submenuColor,
11
- submenuItemColor,
12
- submenuTextColor,
13
- submenuTextColorActive,
14
- customBgColor,
15
- customPortalFooterColor
16
- ) => {
17
- const styles = {
18
- primary: primary,
19
- secondary: secondary,
20
- bg: customBgColor ? customBgColor : hexToRGBA(primary, bgalpha),
21
- primary10opa: hexToRGBA(primary, 0.1),
22
- primary20opa: hexToRGBA(primary, 0.2),
23
- primary50opa: hexToRGBA(primary, 0.5),
24
- primary5darker: shadeColor(primary, -50),
25
- secondary5darker: shadeColor(secondary, -50),
26
- defaultText: '#000',
27
- subtleText: hexToRGBA('#000000', 0.7),
28
- secondaryDarkText: shadeColor(secondary, -80),
29
- bgDark: '#10105A',
30
- bgMedium: '#CFD9EA',
31
- bgLight: '#EEF4FB',
32
- bgFooter: secondaryFooter
33
- ? shadeColor(secondary, -50)
34
- : shadeColor(primary, -50),
35
- btnDefault: secondary,
36
- btnDefaultFontColor: getContrastYIQ(secondary),
37
- btnDefaultDarker: shadeColor(secondary, -15),
38
- btnDefaultLighter: shadeColor(secondary, 15),
39
- btnSuccess: '#4DD964',
40
- btnSuccessDarker: '#27B33E',
41
- btnSuccessLighter: '#73FF8A',
42
- btnDanger: '#EB011A',
43
- btnDangerDarker: '#C50000',
44
- btnDangerLighter: '#FF2740',
45
- btnDisabled: '#D7D7D7',
46
- btnHoverTextColor: getContrastYIQ(shadeColor(secondary, -15)),
47
- alert: '#EB011A',
48
- alertLight: '#FCD6DA',
49
- alertBorder: 'rgba(235,1,26,0.25)',
50
- info: '#F7B633',
51
- infoMedium: '#FBDA99',
52
- infoLight: '#FDEDCD',
53
- infoBorder: 'rgba(247,182,51,0.5)',
54
- success: '#4DD964',
55
- successMedium: '#A6ECB2',
56
- successLight: '#D2F5D8',
57
- successBorder: 'rgba(77,217,100,0.5)',
58
- border: '#CFD9EA',
59
- gray10: '#BDBDBD',
60
- gray20: '#efefef',
61
- disabled: '#D7D7D7',
62
- shadowSmall: '0px 2px 4px 0px rgba(0, 0, 0, 0.1)',
63
- shadowBig: '0px 10px 15px 0px rgba(0, 0, 0, 0.1)',
64
- illustrationGray: '#C3D0D8',
65
- illustrationPrimary50: hexifyWithWhiteBackground(hexToRGBA(primary, 0.5)),
66
- illustrationPrimary40: hexifyWithWhiteBackground(hexToRGBA(primary, 0.4)),
67
- illustrationPrimary20: hexifyWithWhiteBackground(hexToRGBA(primary, 0.2)),
68
- illustrationPrimary10: hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
69
- illustrationPrimary5: hexifyWithWhiteBackground(hexToRGBA(primary, 0.08)),
70
- sidemenuColor: sidemenuColor
71
- ? sidemenuColor
72
- : `linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), linear-gradient(${primary}, ${primary})`,
73
- sidemenuItemColor: sidemenuItemColor
74
- ? sidemenuItemColor
75
- : `linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), linear-gradient(${primary}, ${primary})`,
76
- submenuColor: submenuColor
77
- ? submenuColor
78
- : `linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), linear-gradient(${primary}, ${primary})`,
79
- submenuItemColor: submenuItemColor
80
- ? submenuItemColor
81
- : shadeColor(primary, -50),
82
- submenuTextColor: submenuTextColor
83
- ? submenuTextColor
84
- : `rgba(255, 255, 255, 0.7)`,
85
- submenuTextColorActive: submenuTextColorActive
86
- ? submenuTextColorActive
87
- : `#ffffff`,
88
- customPortalFooterColor: customPortalFooterColor,
89
- }
90
- return styles
91
- }
92
-
93
- // Helpers
94
- const hexToRGBA = (hex, alpha) => {
95
- var r = parseInt(hex.slice(1, 3), 16),
96
- g = parseInt(hex.slice(3, 5), 16),
97
- b = parseInt(hex.slice(5, 7), 16)
98
-
99
- return 'rgba(' + r + ', ' + g + ', ' + b + ', ' + alpha + ')'
100
- }
101
-
102
- function hexifyWithWhiteBackground(color) {
103
- var values = color
104
- .replace(/rgba?\(/, '')
105
- .replace(/\)/, '')
106
- .replace(/[\s+]/g, '')
107
- .split(',')
108
- var a = parseFloat(values[3] || 1),
109
- r = Math.floor(a * parseInt(values[0]) + (1 - a) * 255),
110
- g = Math.floor(a * parseInt(values[1]) + (1 - a) * 255),
111
- b = Math.floor(a * parseInt(values[2]) + (1 - a) * 255)
112
- return (
113
- '#' +
114
- ('0' + r.toString(16)).slice(-2) +
115
- ('0' + g.toString(16)).slice(-2) +
116
- ('0' + b.toString(16)).slice(-2)
117
- )
118
- }
119
-
120
- const shadeColor = (color, percent) => {
121
- var R = parseInt(color.substring(1, 3), 16)
122
- var G = parseInt(color.substring(3, 5), 16)
123
- var B = parseInt(color.substring(5, 7), 16)
124
-
125
- R = parseInt('' + (R * (100 + percent)) / 100)
126
- G = parseInt('' + (G * (100 + percent)) / 100)
127
- B = parseInt('' + (B * (100 + percent)) / 100)
128
-
129
- R = R < 255 ? R : 255
130
- G = G < 255 ? G : 255
131
- B = B < 255 ? B : 255
132
-
133
- var RR = R.toString(16).length === 1 ? '0' + R.toString(16) : R.toString(16)
134
- var GG = G.toString(16).length === 1 ? '0' + G.toString(16) : G.toString(16)
135
- var BB = B.toString(16).length === 1 ? '0' + B.toString(16) : B.toString(16)
136
-
137
- return '#' + RR + GG + BB
138
- }
139
-
140
- const getContrastYIQ = (hexcolor) => {
141
- hexcolor = hexcolor.replace('#', '')
142
- var r = parseInt(hexcolor.substr(0, 2), 16)
143
- var g = parseInt(hexcolor.substr(2, 2), 16)
144
- var b = parseInt(hexcolor.substr(4, 2), 16)
145
- var yiq = (r * 299 + g * 587 + b * 114) / 1000
146
- return yiq >= 128 ? 'black' : 'white'
147
- }
148
-
149
- const updateTheme = (bbl) => {
150
- if (bbl) {
151
- const b = bbls.find((x) => x.bbl === bbl)
152
- console.log(b)
153
- updateBbl(
154
- b.bbl,
155
- b.theme.primary,
156
- b.theme.secondary,
157
- b.theme.alpha,
158
- b.theme.secondaryFooter,
159
- b.theme.sidemenuColor,
160
- b.theme.sidemenuItemColor,
161
- b.theme.submenuColor,
162
- b.theme.submenuItemColor,
163
- b.theme.submenuTextColor,
164
- b.theme.submenuTextColorActive,
165
- b.theme.customBgColor,
166
- b.theme.customPortalFooterColor
167
- )
168
- } else {
169
- for (const b of bbls) {
170
- updateBbl(
171
- b.bbl,
172
- b.theme.primary,
173
- b.theme.secondary,
174
- b.theme.alpha,
175
- b.theme.secondaryFooter,
176
- b.theme.sidemenuColor,
177
- b.theme.sidemenuItemColor,
178
- b.theme.submenuColor,
179
- b.theme.submenuItemColor,
180
- b.theme.submenuTextColor,
181
- b.theme.submenuTextColorActive,
182
- b.theme.customBgColor,
183
- b.theme.customPortalFooterColor
184
- )
185
- }
186
- }
187
- }
188
-
189
- const updateBbl = (
190
- bbl,
191
- primary,
192
- secondary,
193
- bgalpha,
194
- secondaryFooter = false,
195
- sidemenuColor,
196
- sidemenuItemColor,
197
- submenuColor,
198
- submenuItemColor,
199
- submenuTextColor,
200
- submenuTextColorActive,
201
- customBgColor,
202
- customPortalFooterColor
203
- ) => {
204
- let data = JSON.stringify(
205
- initTheme(
206
- primary,
207
- secondary,
208
- bgalpha,
209
- secondaryFooter,
210
- sidemenuColor,
211
- sidemenuItemColor,
212
- submenuColor,
213
- submenuItemColor,
214
- submenuTextColor,
215
- submenuTextColorActive,
216
- customBgColor,
217
- customPortalFooterColor
218
- )
219
- )
220
- console.log(data)
221
- fs.writeFileSync('themes/' + bbl + '/styles.json', data)
222
- }
223
-
224
- const bbls = [
225
- {
226
- bbl: 'arendal',
227
- theme: {
228
- primary: '#ED088A',
229
- secondary: '#22475F',
230
- alpha: '0.02',
231
- secondaryFooter: true,
232
- },
233
- },
234
- {
235
- bbl: 'kongsberg',
236
- theme: {
237
- primary: '#ED088A',
238
- secondary: '#22475F',
239
- alpha: '0.02',
240
- secondaryFooter: true,
241
- sidemenuColor: '#760445',
242
- submenuColor: '#A50660',
243
- submenuTextColor: 'rgba(255, 255, 255, 0.8)',
244
- },
245
- },
246
- {
247
- bbl: 'labo',
248
- theme: {
249
- primary: '#ED088A',
250
- secondary: '#22475F',
251
- alpha: '0.02',
252
- secondaryFooter: true,
253
- },
254
- },
255
- {
256
- bbl: 'mobo',
257
- theme: {
258
- primary: '#ED088A',
259
- secondary: '#22475F',
260
- alpha: '0.02',
261
- secondaryFooter: true,
262
- },
263
- },
264
- {
265
- bbl: 'moborana',
266
- theme: {
267
- primary: '#ED088A',
268
- secondary: '#22475F',
269
- alpha: '0.02',
270
- secondaryFooter: true,
271
- },
272
- },
273
- {
274
- bbl: 'mosjoen',
275
- theme: {
276
- primary: '#ED088A',
277
- secondary: '#22475F',
278
- alpha: '0.02',
279
- secondaryFooter: true,
280
- },
281
- },
282
- {
283
- bbl: 'notodden',
284
- theme: {
285
- primary: '#ED088A',
286
- secondary: '#22475F',
287
- alpha: '0.02',
288
- secondaryFooter: true,
289
- },
290
- },
291
- {
292
- bbl: 'polarlys',
293
- theme: {
294
- primary: '#ED088A',
295
- secondary: '#22475F',
296
- alpha: '0.02',
297
- secondaryFooter: true,
298
- },
299
- },
300
- {
301
- bbl: 'sunnbo',
302
- theme: {
303
- primary: '#0075B2',
304
- secondary: '#00527C',
305
- alpha: '0.02',
306
- },
307
- },
308
- {
309
- bbl: 'vansjobbl',
310
- theme: {
311
- primary: '#ED088A',
312
- secondary: '#22475F',
313
- alpha: '0.02',
314
- secondaryFooter: true,
315
- sidemenuColor: '#760445',
316
- submenuColor: '#A50660',
317
- submenuTextColor: 'rgba(255, 255, 255, 0.8)',
318
- },
319
- },
320
- {
321
- bbl: 'bori',
322
- theme: {
323
- primary: '#006930',
324
- secondary: '#7AB800',
325
- alpha: '0.02',
326
- },
327
- },
328
- {
329
- bbl: 'bbld',
330
- theme: {
331
- primary: '#1657E2',
332
- secondary: '#10105A',
333
- alpha: '0.02',
334
- },
335
- },
336
- {
337
- bbl: 'sobbl',
338
- theme: {
339
- primary: '#227F48',
340
- secondary: '#213228',
341
- alpha: '0.02',
342
- },
343
- },
344
- {
345
- bbl: 'kobbl',
346
- theme: {
347
- primary: '#A71930',
348
- secondary: '#B7C9D3',
349
- alpha: '0.02',
350
- secondaryFooter: true,
351
- },
352
- },
353
- {
354
- bbl: 'ringbo',
355
- theme: {
356
- primary: '#6585AF',
357
- secondary: '#E64596',
358
- alpha: '0.02',
359
- },
360
- },
361
- {
362
- bbl: 'abbl',
363
- theme: {
364
- primary: '#227F48',
365
- secondary: '#213228',
366
- alpha: '0.02',
367
- },
368
- },
369
- {
370
- bbl: 'bob',
371
- theme: {
372
- primary: '#582484',
373
- secondary: '#C5E6EF',
374
- alpha: '0.02',
375
- },
376
- },
377
- {
378
- bbl: 'tobb',
379
- theme: {
380
- primary: '#477A7B',
381
- secondary: '#003865',
382
- alpha: '0.04',
383
- },
384
- },
385
- {
386
- bbl: 'bomidt',
387
- theme: {
388
- primary: '#1897B7',
389
- secondary: '#4F67AB',
390
- alpha: '0.04',
391
- },
392
- },
393
- {
394
- bbl: 'bori',
395
- theme: {
396
- primary: '#006930',
397
- secondary: '#7AB800',
398
- alpha: '0.02',
399
- },
400
- },
401
- {
402
- bbl: 'gobb',
403
- theme: {
404
- primary: '#661B39',
405
- secondary: '#273D45',
406
- alpha: '0.04',
407
- },
408
- },
409
- {
410
- bbl: 'sorbbl',
411
- theme: {
412
- primary: '#0075B2',
413
- secondary: '#00527C',
414
- alpha: '0.02',
415
- },
416
- },
417
- {
418
- bbl: 'sbbl',
419
- theme: {
420
- primary: '#0075B2',
421
- secondary: '#00527C',
422
- alpha: '0.02',
423
- },
424
- },
425
- {
426
- bbl: 'bate',
427
- theme: {
428
- primary: '#D31F2C',
429
- secondary: '#1D1D1B',
430
- alpha: '0.02',
431
- secondaryFooter: true,
432
- },
433
- },
434
- {
435
- bbl: 'nbbo',
436
- theme: {
437
- primary: '#009199',
438
- secondary: '#812979',
439
- alpha: '0.02',
440
- secondaryFooter: true,
441
- },
442
- },
443
- {
444
- bbl: 'haubo',
445
- theme: {
446
- primary: '#D12725',
447
- secondary: '#1C1C1C',
448
- alpha: '0.04',
449
- secondaryFooter: true,
450
- },
451
- },
452
- {
453
- bbl: 'obf',
454
- theme: {
455
- primary: '#0276BA',
456
- secondary: '#062740',
457
- alpha: '0.04',
458
- },
459
- },
460
- {
461
- bbl: 'rtbbl',
462
- theme: {
463
- primary: '#AA96ED',
464
- secondary: '#22475F',
465
- alpha: '0.02',
466
- secondaryFooter: true,
467
- },
468
- },
469
- {
470
- bbl: 'rjukantinn',
471
- theme: {
472
- primary: '#AA96ED',
473
- secondary: '#22475F',
474
- alpha: '0.02',
475
- secondaryFooter: true,
476
- },
477
- },
478
- {
479
- bbl: 'pbbl',
480
- theme: {
481
- primary: '#0088B8',
482
- secondary: '#ED088A',
483
- alpha: '0.02',
484
- },
485
- },
486
- {
487
- bbl: 'usbl',
488
- theme: {
489
- primary: '#FA8268',
490
- secondary: '#D24448',
491
- alpha: '0.04',
492
- secondaryFooter: true,
493
- sidemenuColor: '#D04547',
494
- sidemenuItemColor: '#A73A37',
495
- submenuColor: '#F5F2EB',
496
- submenuItemColor: 'white',
497
- submenuTextColor: 'rgba(0, 0, 0, 0.7)',
498
- submenuTextColorActive: 'black',
499
- customBgColor: '#FCFBF8',
500
- customPortalFooterColor: '#343E40',
501
- },
502
- },
503
- {
504
- bbl: 'bodo',
505
- theme: {
506
- primary: '#DD2C2A',
507
- secondary: '#240216',
508
- alpha: '0.02',
509
- secondaryFooter: true,
510
- },
511
- },
512
- {
513
- bbl: 'nobl',
514
- theme: {
515
- primary: '#DD2C2A',
516
- secondary: '#240216',
517
- alpha: '0.02',
518
- secondaryFooter: true,
519
- },
520
- },
521
- {
522
- bbl: 'omt',
523
- theme: {
524
- primary: '#04A2D7',
525
- secondary: '#32395A',
526
- alpha: '0.02',
527
- secondaryFooter: true,
528
- },
529
- },
530
- {
531
- bbl: 'kbbl',
532
- theme: {
533
- primary: '#7FAB93',
534
- secondary: '#BCB3A2',
535
- alpha: '0.02',
536
- secondaryFooter: true,
537
- },
538
- },
539
- {
540
- bbl: 'bonord',
541
- theme: {
542
- primary: '#3D8471',
543
- secondary: '#E5AF7C',
544
- alpha: '0.04',
545
- },
546
- },
547
- {
548
- bbl: 'vestbo',
549
- theme: {
550
- primary: '#6BC0DC',
551
- secondary: '#466091',
552
- alpha: '0.04',
553
- secondaryFooter: true,
554
- },
555
- },
556
- {
557
- bbl: 'nbbl',
558
- theme: {
559
- primary: '#ED088A',
560
- secondary: '#22475F',
561
- alpha: '0.02',
562
- secondaryFooter: true,
563
- },
564
- },
565
- {
566
- bbl: 'kragero',
567
- theme: {
568
- primary: '#6585AF',
569
- secondary: '#E64596',
570
- alpha: '0.02',
571
- },
572
- },
573
- {
574
- bbl: 'habo',
575
- theme: {
576
- primary: '#345681',
577
- secondary: '#ED088A',
578
- alpha: '0.02',
579
- },
580
- },
581
- {
582
- bbl: 'aardal',
583
- theme: {
584
- primary: '#710718',
585
- secondary: '#22475F',
586
- alpha: '0.02',
587
- },
588
- },
589
- {
590
- bbl: 'skien',
591
- theme: {
592
- primary: '#ED088A',
593
- secondary: '#ED088A',
594
- alpha: '0.02',
595
- },
596
- },
597
- ]
598
-
599
- updateTheme()
1
+ const fs = require('fs')
2
+
3
+ const initTheme = (
4
+ primary,
5
+ secondary,
6
+ bgalpha,
7
+ secondaryFooter = false,
8
+ sidemenuColor,
9
+ sidemenuItemColor,
10
+ submenuColor,
11
+ submenuItemColor,
12
+ submenuTextColor,
13
+ submenuTextColorActive,
14
+ customBgColor,
15
+ customPortalFooterColor
16
+ ) => {
17
+ const styles = {
18
+ primary: primary,
19
+ secondary: secondary,
20
+ bg: customBgColor ? customBgColor : hexToRGBA(primary, bgalpha),
21
+ primary10opa: hexToRGBA(primary, 0.1),
22
+ primary20opa: hexToRGBA(primary, 0.2),
23
+ primary50opa: hexToRGBA(primary, 0.5),
24
+ primary5darker: shadeColor(primary, -50),
25
+ secondary5darker: shadeColor(secondary, -50),
26
+ defaultText: '#000',
27
+ subtleText: hexToRGBA('#000000', 0.7),
28
+ secondaryDarkText: shadeColor(secondary, -80),
29
+ bgDark: '#10105A',
30
+ bgMedium: '#CFD9EA',
31
+ bgLight: '#EEF4FB',
32
+ bgFooter: secondaryFooter
33
+ ? shadeColor(secondary, -50)
34
+ : shadeColor(primary, -50),
35
+ btnDefault: secondary,
36
+ btnDefaultFontColor: getContrastYIQ(secondary),
37
+ btnDefaultDarker: shadeColor(secondary, -15),
38
+ btnDefaultLighter: shadeColor(secondary, 15),
39
+ btnSuccess: '#4DD964',
40
+ btnSuccessDarker: '#27B33E',
41
+ btnSuccessLighter: '#73FF8A',
42
+ btnDanger: '#EB011A',
43
+ btnDangerDarker: '#C50000',
44
+ btnDangerLighter: '#FF2740',
45
+ btnDisabled: '#D7D7D7',
46
+ btnHoverTextColor: getContrastYIQ(shadeColor(secondary, -15)),
47
+ alert: '#EB011A',
48
+ alertLight: '#FCD6DA',
49
+ alertBorder: 'rgba(235,1,26,0.25)',
50
+ info: '#F7B633',
51
+ infoMedium: '#FBDA99',
52
+ infoLight: '#FDEDCD',
53
+ infoBorder: 'rgba(247,182,51,0.5)',
54
+ success: '#4DD964',
55
+ successMedium: '#A6ECB2',
56
+ successLight: '#D2F5D8',
57
+ successBorder: 'rgba(77,217,100,0.5)',
58
+ border: '#CFD9EA',
59
+ gray10: '#BDBDBD',
60
+ gray20: '#efefef',
61
+ disabled: '#D7D7D7',
62
+ shadowSmall: '0px 2px 4px 0px rgba(0, 0, 0, 0.1)',
63
+ shadowBig: '0px 10px 15px 0px rgba(0, 0, 0, 0.1)',
64
+ illustrationGray: '#C3D0D8',
65
+ illustrationPrimary50: hexifyWithWhiteBackground(hexToRGBA(primary, 0.5)),
66
+ illustrationPrimary40: hexifyWithWhiteBackground(hexToRGBA(primary, 0.4)),
67
+ illustrationPrimary20: hexifyWithWhiteBackground(hexToRGBA(primary, 0.2)),
68
+ illustrationPrimary10: hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
69
+ illustrationPrimary5: hexifyWithWhiteBackground(hexToRGBA(primary, 0.08)),
70
+ sidemenuColor: sidemenuColor
71
+ ? sidemenuColor
72
+ : `linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), linear-gradient(${primary}, ${primary})`,
73
+ sidemenuItemColor: sidemenuItemColor
74
+ ? sidemenuItemColor
75
+ : `linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), linear-gradient(${primary}, ${primary})`,
76
+ submenuColor: submenuColor
77
+ ? submenuColor
78
+ : `linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), linear-gradient(${primary}, ${primary})`,
79
+ submenuItemColor: submenuItemColor
80
+ ? submenuItemColor
81
+ : shadeColor(primary, -50),
82
+ submenuTextColor: submenuTextColor
83
+ ? submenuTextColor
84
+ : `rgba(255, 255, 255, 0.7)`,
85
+ submenuTextColorActive: submenuTextColorActive
86
+ ? submenuTextColorActive
87
+ : `#ffffff`,
88
+ customPortalFooterColor: customPortalFooterColor,
89
+ }
90
+ return styles
91
+ }
92
+
93
+ // Helpers
94
+ const hexToRGBA = (hex, alpha) => {
95
+ var r = parseInt(hex.slice(1, 3), 16),
96
+ g = parseInt(hex.slice(3, 5), 16),
97
+ b = parseInt(hex.slice(5, 7), 16)
98
+
99
+ return 'rgba(' + r + ', ' + g + ', ' + b + ', ' + alpha + ')'
100
+ }
101
+
102
+ function hexifyWithWhiteBackground(color) {
103
+ var values = color
104
+ .replace(/rgba?\(/, '')
105
+ .replace(/\)/, '')
106
+ .replace(/[\s+]/g, '')
107
+ .split(',')
108
+ var a = parseFloat(values[3] || 1),
109
+ r = Math.floor(a * parseInt(values[0]) + (1 - a) * 255),
110
+ g = Math.floor(a * parseInt(values[1]) + (1 - a) * 255),
111
+ b = Math.floor(a * parseInt(values[2]) + (1 - a) * 255)
112
+ return (
113
+ '#' +
114
+ ('0' + r.toString(16)).slice(-2) +
115
+ ('0' + g.toString(16)).slice(-2) +
116
+ ('0' + b.toString(16)).slice(-2)
117
+ )
118
+ }
119
+
120
+ const shadeColor = (color, percent) => {
121
+ var R = parseInt(color.substring(1, 3), 16)
122
+ var G = parseInt(color.substring(3, 5), 16)
123
+ var B = parseInt(color.substring(5, 7), 16)
124
+
125
+ R = parseInt('' + (R * (100 + percent)) / 100)
126
+ G = parseInt('' + (G * (100 + percent)) / 100)
127
+ B = parseInt('' + (B * (100 + percent)) / 100)
128
+
129
+ R = R < 255 ? R : 255
130
+ G = G < 255 ? G : 255
131
+ B = B < 255 ? B : 255
132
+
133
+ var RR = R.toString(16).length === 1 ? '0' + R.toString(16) : R.toString(16)
134
+ var GG = G.toString(16).length === 1 ? '0' + G.toString(16) : G.toString(16)
135
+ var BB = B.toString(16).length === 1 ? '0' + B.toString(16) : B.toString(16)
136
+
137
+ return '#' + RR + GG + BB
138
+ }
139
+
140
+ const getContrastYIQ = (hexcolor) => {
141
+ hexcolor = hexcolor.replace('#', '')
142
+ var r = parseInt(hexcolor.substr(0, 2), 16)
143
+ var g = parseInt(hexcolor.substr(2, 2), 16)
144
+ var b = parseInt(hexcolor.substr(4, 2), 16)
145
+ var yiq = (r * 299 + g * 587 + b * 114) / 1000
146
+ return yiq >= 128 ? 'black' : 'white'
147
+ }
148
+
149
+ const updateTheme = (bbl) => {
150
+ if (bbl) {
151
+ const b = bbls.find((x) => x.bbl === bbl)
152
+ console.log(b)
153
+ updateBbl(
154
+ b.bbl,
155
+ b.theme.primary,
156
+ b.theme.secondary,
157
+ b.theme.alpha,
158
+ b.theme.secondaryFooter,
159
+ b.theme.sidemenuColor,
160
+ b.theme.sidemenuItemColor,
161
+ b.theme.submenuColor,
162
+ b.theme.submenuItemColor,
163
+ b.theme.submenuTextColor,
164
+ b.theme.submenuTextColorActive,
165
+ b.theme.customBgColor,
166
+ b.theme.customPortalFooterColor
167
+ )
168
+ } else {
169
+ for (const b of bbls) {
170
+ updateBbl(
171
+ b.bbl,
172
+ b.theme.primary,
173
+ b.theme.secondary,
174
+ b.theme.alpha,
175
+ b.theme.secondaryFooter,
176
+ b.theme.sidemenuColor,
177
+ b.theme.sidemenuItemColor,
178
+ b.theme.submenuColor,
179
+ b.theme.submenuItemColor,
180
+ b.theme.submenuTextColor,
181
+ b.theme.submenuTextColorActive,
182
+ b.theme.customBgColor,
183
+ b.theme.customPortalFooterColor
184
+ )
185
+ }
186
+ }
187
+ }
188
+
189
+ const updateBbl = (
190
+ bbl,
191
+ primary,
192
+ secondary,
193
+ bgalpha,
194
+ secondaryFooter = false,
195
+ sidemenuColor,
196
+ sidemenuItemColor,
197
+ submenuColor,
198
+ submenuItemColor,
199
+ submenuTextColor,
200
+ submenuTextColorActive,
201
+ customBgColor,
202
+ customPortalFooterColor
203
+ ) => {
204
+ let data = JSON.stringify(
205
+ initTheme(
206
+ primary,
207
+ secondary,
208
+ bgalpha,
209
+ secondaryFooter,
210
+ sidemenuColor,
211
+ sidemenuItemColor,
212
+ submenuColor,
213
+ submenuItemColor,
214
+ submenuTextColor,
215
+ submenuTextColorActive,
216
+ customBgColor,
217
+ customPortalFooterColor
218
+ )
219
+ )
220
+ console.log(data)
221
+ fs.writeFileSync('themes/' + bbl + '/styles.json', data)
222
+ }
223
+
224
+ const bbls = [
225
+ {
226
+ bbl: 'arendal',
227
+ theme: {
228
+ primary: '#ED088A',
229
+ secondary: '#22475F',
230
+ alpha: '0.02',
231
+ secondaryFooter: true,
232
+ },
233
+ },
234
+ {
235
+ bbl: 'kongsberg',
236
+ theme: {
237
+ primary: '#ED088A',
238
+ secondary: '#22475F',
239
+ alpha: '0.02',
240
+ secondaryFooter: true,
241
+ sidemenuColor: '#760445',
242
+ submenuColor: '#A50660',
243
+ submenuTextColor: 'rgba(255, 255, 255, 0.8)',
244
+ },
245
+ },
246
+ {
247
+ bbl: 'labo',
248
+ theme: {
249
+ primary: '#ED088A',
250
+ secondary: '#22475F',
251
+ alpha: '0.02',
252
+ secondaryFooter: true,
253
+ },
254
+ },
255
+ {
256
+ bbl: 'mobo',
257
+ theme: {
258
+ primary: '#ED088A',
259
+ secondary: '#22475F',
260
+ alpha: '0.02',
261
+ secondaryFooter: true,
262
+ },
263
+ },
264
+ {
265
+ bbl: 'moborana',
266
+ theme: {
267
+ primary: '#ED088A',
268
+ secondary: '#22475F',
269
+ alpha: '0.02',
270
+ secondaryFooter: true,
271
+ },
272
+ },
273
+ {
274
+ bbl: 'mosjoen',
275
+ theme: {
276
+ primary: '#ED088A',
277
+ secondary: '#22475F',
278
+ alpha: '0.02',
279
+ secondaryFooter: true,
280
+ },
281
+ },
282
+ {
283
+ bbl: 'notodden',
284
+ theme: {
285
+ primary: '#ED088A',
286
+ secondary: '#22475F',
287
+ alpha: '0.02',
288
+ secondaryFooter: true,
289
+ },
290
+ },
291
+ {
292
+ bbl: 'polarlys',
293
+ theme: {
294
+ primary: '#ED088A',
295
+ secondary: '#22475F',
296
+ alpha: '0.02',
297
+ secondaryFooter: true,
298
+ },
299
+ },
300
+ {
301
+ bbl: 'sunnbo',
302
+ theme: {
303
+ primary: '#0075B2',
304
+ secondary: '#00527C',
305
+ alpha: '0.02',
306
+ },
307
+ },
308
+ {
309
+ bbl: 'vansjobbl',
310
+ theme: {
311
+ primary: '#ED088A',
312
+ secondary: '#22475F',
313
+ alpha: '0.02',
314
+ secondaryFooter: true,
315
+ sidemenuColor: '#760445',
316
+ submenuColor: '#A50660',
317
+ submenuTextColor: 'rgba(255, 255, 255, 0.8)',
318
+ },
319
+ },
320
+ {
321
+ bbl: 'bori',
322
+ theme: {
323
+ primary: '#006930',
324
+ secondary: '#7AB800',
325
+ alpha: '0.02',
326
+ },
327
+ },
328
+ {
329
+ bbl: 'bbld',
330
+ theme: {
331
+ primary: '#1657E2',
332
+ secondary: '#10105A',
333
+ alpha: '0.02',
334
+ },
335
+ },
336
+ {
337
+ bbl: 'sobbl',
338
+ theme: {
339
+ primary: '#227F48',
340
+ secondary: '#213228',
341
+ alpha: '0.02',
342
+ },
343
+ },
344
+ {
345
+ bbl: 'kobbl',
346
+ theme: {
347
+ primary: '#A71930',
348
+ secondary: '#B7C9D3',
349
+ alpha: '0.02',
350
+ secondaryFooter: true,
351
+ },
352
+ },
353
+ {
354
+ bbl: 'ringbo',
355
+ theme: {
356
+ primary: '#6585AF',
357
+ secondary: '#E64596',
358
+ alpha: '0.02',
359
+ },
360
+ },
361
+ {
362
+ bbl: 'abbl',
363
+ theme: {
364
+ primary: '#227F48',
365
+ secondary: '#213228',
366
+ alpha: '0.02',
367
+ },
368
+ },
369
+ {
370
+ bbl: 'bob',
371
+ theme: {
372
+ primary: '#582484',
373
+ secondary: '#C5E6EF',
374
+ alpha: '0.02',
375
+ },
376
+ },
377
+ {
378
+ bbl: 'tobb',
379
+ theme: {
380
+ primary: '#477A7B',
381
+ secondary: '#003865',
382
+ alpha: '0.04',
383
+ },
384
+ },
385
+ {
386
+ bbl: 'bomidt',
387
+ theme: {
388
+ primary: '#1897B7',
389
+ secondary: '#4F67AB',
390
+ alpha: '0.04',
391
+ },
392
+ },
393
+ {
394
+ bbl: 'bori',
395
+ theme: {
396
+ primary: '#006930',
397
+ secondary: '#7AB800',
398
+ alpha: '0.02',
399
+ },
400
+ },
401
+ {
402
+ bbl: 'gobb',
403
+ theme: {
404
+ primary: '#661B39',
405
+ secondary: '#273D45',
406
+ alpha: '0.04',
407
+ },
408
+ },
409
+ {
410
+ bbl: 'sorbbl',
411
+ theme: {
412
+ primary: '#0075B2',
413
+ secondary: '#00527C',
414
+ alpha: '0.02',
415
+ },
416
+ },
417
+ {
418
+ bbl: 'sbbl',
419
+ theme: {
420
+ primary: '#0075B2',
421
+ secondary: '#00527C',
422
+ alpha: '0.02',
423
+ },
424
+ },
425
+ {
426
+ bbl: 'bate',
427
+ theme: {
428
+ primary: '#D31F2C',
429
+ secondary: '#1D1D1B',
430
+ alpha: '0.02',
431
+ secondaryFooter: true,
432
+ },
433
+ },
434
+ {
435
+ bbl: 'nbbo',
436
+ theme: {
437
+ primary: '#009199',
438
+ secondary: '#812979',
439
+ alpha: '0.02',
440
+ secondaryFooter: true,
441
+ },
442
+ },
443
+ {
444
+ bbl: 'haubo',
445
+ theme: {
446
+ primary: '#D12725',
447
+ secondary: '#1C1C1C',
448
+ alpha: '0.04',
449
+ secondaryFooter: true,
450
+ },
451
+ },
452
+ {
453
+ bbl: 'obf',
454
+ theme: {
455
+ primary: '#0276BA',
456
+ secondary: '#062740',
457
+ alpha: '0.04',
458
+ },
459
+ },
460
+ {
461
+ bbl: 'rtbbl',
462
+ theme: {
463
+ primary: '#AA96ED',
464
+ secondary: '#22475F',
465
+ alpha: '0.02',
466
+ secondaryFooter: true,
467
+ },
468
+ },
469
+ {
470
+ bbl: 'rjukantinn',
471
+ theme: {
472
+ primary: '#AA96ED',
473
+ secondary: '#22475F',
474
+ alpha: '0.02',
475
+ secondaryFooter: true,
476
+ },
477
+ },
478
+ {
479
+ bbl: 'pbbl',
480
+ theme: {
481
+ primary: '#0088B8',
482
+ secondary: '#ED088A',
483
+ alpha: '0.02',
484
+ },
485
+ },
486
+ {
487
+ bbl: 'usbl',
488
+ theme: {
489
+ primary: '#FA8268',
490
+ secondary: '#D24448',
491
+ alpha: '0.04',
492
+ secondaryFooter: true,
493
+ sidemenuColor: '#D04547',
494
+ sidemenuItemColor: '#A73A37',
495
+ submenuColor: '#F5F2EB',
496
+ submenuItemColor: 'white',
497
+ submenuTextColor: 'rgba(0, 0, 0, 0.7)',
498
+ submenuTextColorActive: 'black',
499
+ customBgColor: '#FCFBF8',
500
+ customPortalFooterColor: '#343E40',
501
+ },
502
+ },
503
+ {
504
+ bbl: 'bodo',
505
+ theme: {
506
+ primary: '#DD2C2A',
507
+ secondary: '#240216',
508
+ alpha: '0.02',
509
+ secondaryFooter: true,
510
+ },
511
+ },
512
+ {
513
+ bbl: 'nobl',
514
+ theme: {
515
+ primary: '#DD2C2A',
516
+ secondary: '#240216',
517
+ alpha: '0.02',
518
+ secondaryFooter: true,
519
+ },
520
+ },
521
+ {
522
+ bbl: 'omt',
523
+ theme: {
524
+ primary: '#04A2D7',
525
+ secondary: '#32395A',
526
+ alpha: '0.02',
527
+ secondaryFooter: true,
528
+ },
529
+ },
530
+ {
531
+ bbl: 'kbbl',
532
+ theme: {
533
+ primary: '#7FAB93',
534
+ secondary: '#BCB3A2',
535
+ alpha: '0.02',
536
+ secondaryFooter: true,
537
+ },
538
+ },
539
+ {
540
+ bbl: 'bonord',
541
+ theme: {
542
+ primary: '#3D8471',
543
+ secondary: '#E5AF7C',
544
+ alpha: '0.04',
545
+ },
546
+ },
547
+ {
548
+ bbl: 'vestbo',
549
+ theme: {
550
+ primary: '#6BC0DC',
551
+ secondary: '#466091',
552
+ alpha: '0.04',
553
+ secondaryFooter: true,
554
+ },
555
+ },
556
+ {
557
+ bbl: 'nbbl',
558
+ theme: {
559
+ primary: '#ED088A',
560
+ secondary: '#22475F',
561
+ alpha: '0.02',
562
+ secondaryFooter: true,
563
+ },
564
+ },
565
+ {
566
+ bbl: 'kragero',
567
+ theme: {
568
+ primary: '#6585AF',
569
+ secondary: '#E64596',
570
+ alpha: '0.02',
571
+ },
572
+ },
573
+ {
574
+ bbl: 'habo',
575
+ theme: {
576
+ primary: '#345681',
577
+ secondary: '#ED088A',
578
+ alpha: '0.02',
579
+ },
580
+ },
581
+ {
582
+ bbl: 'aardal',
583
+ theme: {
584
+ primary: '#710718',
585
+ secondary: '#22475F',
586
+ alpha: '0.02',
587
+ },
588
+ },
589
+ {
590
+ bbl: 'skien',
591
+ theme: {
592
+ primary: '#ED088A',
593
+ secondary: '#ED088A',
594
+ alpha: '0.02',
595
+ },
596
+ },
597
+ ]
598
+
599
+ updateTheme()