@bbl-digital/snorre 4.1.33 → 4.1.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (402) 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 +593 -583
  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/Item.js +1 -1
  28. package/esm/core/CollapseList/styles.js +2 -2
  29. package/esm/core/CommentsTimeline/CommentLine/styles.js +4 -4
  30. package/esm/core/CommentsTimeline/styles.js +1 -1
  31. package/esm/core/CustomText/styles.js +2 -2
  32. package/esm/core/Datepicker/styles.js +9 -9
  33. package/esm/core/DatepickerRange/styles.js +9 -9
  34. package/esm/core/Divider/styles.js +5 -5
  35. package/esm/core/Dropdown/styles.js +3 -3
  36. package/esm/core/DropdownMenu/styles.js +3 -3
  37. package/esm/core/Editor/config.js +7 -19
  38. package/esm/core/Editor/index.js +113 -173
  39. package/esm/core/Editor/styles.js +43 -60
  40. package/esm/core/EditorQuillReact/index.js +1 -1
  41. package/esm/core/EditorQuillReact/styles.js +3 -3
  42. package/esm/core/FileInput/styles.js +14 -14
  43. package/esm/core/GoogleButton/styles.js +1 -1
  44. package/esm/core/Header/styles.js +7 -7
  45. package/esm/core/HighlightText/styles.js +1 -1
  46. package/esm/core/Html/styles.js +6 -6
  47. package/esm/core/Image/styles.js +6 -6
  48. package/esm/core/ImagePicker/IconWithBackground.js +1 -1
  49. package/esm/core/ImagePicker/UploadButton.js +1 -1
  50. package/esm/core/ImagePicker/styles.js +11 -11
  51. package/esm/core/ImageViewer/index.js +1 -1
  52. package/esm/core/ImageViewer/styles.js +7 -7
  53. package/esm/core/InfoButton/styles.js +9 -9
  54. package/esm/core/Input/index.js +17 -4
  55. package/esm/core/Input/styles.js +19 -19
  56. package/esm/core/Link/styles.js +10 -10
  57. package/esm/core/List/Item.js +1 -1
  58. package/esm/core/List/styles.js +11 -11
  59. package/esm/core/ListPager/index.js +1 -1
  60. package/esm/core/ListPager/styles.js +3 -3
  61. package/esm/core/MediaCarousel/styles.js +6 -6
  62. package/esm/core/Modal/ActionButtons/index.js +1 -1
  63. package/esm/core/Modal/styles.js +8 -8
  64. package/esm/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.js +4 -4
  65. package/esm/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.js +1 -1
  66. package/esm/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +3 -3
  67. package/esm/core/NoticeCard/styles.js +4 -4
  68. package/esm/core/NotificationCounter/styles.js +1 -1
  69. package/esm/core/NotificationsMenu/NotificationRow/styles.js +3 -3
  70. package/esm/core/NotificationsMenu/styles.js +3 -3
  71. package/esm/core/PieChart/styles.js +2 -2
  72. package/esm/core/PreemptionCard/styles.js +3 -3
  73. package/esm/core/PreemptionCardLoading/styles.js +3 -3
  74. package/esm/core/QuillEditor/styles.js +3 -3
  75. package/esm/core/Radio/styles.js +4 -4
  76. package/esm/core/SearchFilter/index.js +1 -1
  77. package/esm/core/SearchFilter/styles.js +14 -14
  78. package/esm/core/SearchSelect/styles.js +5 -5
  79. package/esm/core/Select/index.js +1 -1
  80. package/esm/core/Select/styles.js +18 -18
  81. package/esm/core/SimpleBarChart/styles.js +1 -1
  82. package/esm/core/SimpleLineChart/styles.js +1 -1
  83. package/esm/core/Skeleton/styles.js +4 -4
  84. package/esm/core/Spinner/styles.js +5 -5
  85. package/esm/core/Stepper/MobileStep/styles.js +7 -7
  86. package/esm/core/Stepper/Step/index.js +1 -1
  87. package/esm/core/Stepper/Step/styles.js +5 -5
  88. package/esm/core/Stepper/styles.js +3 -3
  89. package/esm/core/TabBar/TabItem/styles.js +1 -1
  90. package/esm/core/TabBar/styles.js +1 -1
  91. package/esm/core/TabNav/TabNavItem/styles.js +5 -5
  92. package/esm/core/TabNav/styles.js +8 -8
  93. package/esm/core/Table/styles.js +16 -16
  94. package/esm/core/Tag/styles.js +13 -13
  95. package/esm/core/Text/styles.js +16 -16
  96. package/esm/core/Textarea/styles.js +7 -7
  97. package/esm/core/Timeline/TimelineStep/styles.js +6 -6
  98. package/esm/core/Timeline/styles.js +1 -1
  99. package/esm/core/Timepicker/index.js +3 -3
  100. package/esm/core/Timepicker/styles.js +7 -7
  101. package/esm/core/Tooltip/styles.js +2 -2
  102. package/esm/core/UnitIllustration/index.js +9 -9
  103. package/esm/core/UserMenu/styles.js +7 -7
  104. package/esm/core/Video/styles.js +1 -1
  105. package/esm/core/YearWheel/styles.js +3 -3
  106. package/esm/enums/Keyboard.js +2 -2
  107. package/esm/globals/styles/styles.js +1 -1
  108. package/esm/illustrations/styles.js +2 -2
  109. package/esm/layout/Footer/FooterButton/styles.js +1 -1
  110. package/esm/layout/Footer/FooterCol/styles.js +1 -1
  111. package/esm/layout/Footer/FooterGroup/styles.js +1 -1
  112. package/esm/layout/Footer/FooterLabel/styles.js +1 -1
  113. package/esm/layout/Footer/FooterLink/styles.js +1 -1
  114. package/esm/layout/Footer/styles.js +2 -2
  115. package/esm/layout/Layout/styles.js +1 -1
  116. package/esm/layout/LayoutShell/styles.js +8 -8
  117. package/esm/layout/Menu/AppPicker/styles.js +5 -5
  118. package/esm/layout/Menu/MainMenu/styles.js +2 -2
  119. package/esm/layout/Menu/MenuItem/index.js +0 -1
  120. package/esm/layout/Menu/MenuItem/styles.js +3 -3
  121. package/esm/layout/Menu/MenuSpacer/styles.js +1 -1
  122. package/esm/layout/Menu/MenuTop/styles.js +3 -3
  123. package/esm/layout/Menu/SecondaryMenu/styles.js +4 -4
  124. package/esm/layout/Menu/SecondaryMenuItem/styles.js +1 -1
  125. package/esm/layout/Menu/styles.js +1 -1
  126. package/esm/layout/Submenu/SubmenuItem/index.js +0 -2
  127. package/esm/layout/Submenu/SubmenuItem/styles.js +3 -3
  128. package/esm/layout/Submenu/styles.js +11 -11
  129. package/esm/layout/Topbar/styles.js +1 -1
  130. package/esm/shared/components/SbIconGrid/index.js +1 -1
  131. package/esm/shared/components/VisuallyHidden/index.js +4 -4
  132. package/esm/shared/recharts/CustomLegend/styles.js +2 -2
  133. package/esm/shared/recharts/CustomTooltip/styles.js +3 -3
  134. package/esm/shared/types/LoadedType.js +1 -0
  135. package/esm/utils/time.js +14 -14
  136. package/infrastructure/azure-pipelines.yml +34 -34
  137. package/jest.config.js +34 -34
  138. package/lib/app-shell/index.js +2 -2
  139. package/lib/core/Alert/styles.js +6 -6
  140. package/lib/core/AppLoader/styles.js +1 -1
  141. package/lib/core/Autocomplete/styles.d.ts +5 -5
  142. package/lib/core/Autocomplete/styles.d.ts.map +1 -1
  143. package/lib/core/Autocomplete/styles.js +18 -18
  144. package/lib/core/Banner/styles.d.ts.map +1 -1
  145. package/lib/core/Banner/styles.js +4 -4
  146. package/lib/core/BarAndLineComposedChart/styles.d.ts.map +1 -1
  147. package/lib/core/BarAndLineComposedChart/styles.js +1 -1
  148. package/lib/core/BarChartWithCustomizedEvent/styles.d.ts.map +1 -1
  149. package/lib/core/BarChartWithCustomizedEvent/styles.js +1 -1
  150. package/lib/core/Box/styles.d.ts +5 -5
  151. package/lib/core/Box/styles.d.ts.map +1 -1
  152. package/lib/core/Box/styles.js +7 -7
  153. package/lib/core/BoxedTable/DraggableRow/styles.d.ts.map +1 -1
  154. package/lib/core/BoxedTable/DraggableRow/styles.js +5 -5
  155. package/lib/core/BoxedTable/HeaderCell/styles.js +2 -2
  156. package/lib/core/BoxedTable/RowCell/index.js +1 -1
  157. package/lib/core/BoxedTable/RowCell/styles.js +9 -9
  158. package/lib/core/BoxedTable/TableHeader/styles.d.ts.map +1 -1
  159. package/lib/core/BoxedTable/TableHeader/styles.js +1 -1
  160. package/lib/core/BoxedTable/TableRow/styles.d.ts.map +1 -1
  161. package/lib/core/BoxedTable/TableRow/styles.js +8 -8
  162. package/lib/core/BoxedTable/styles.d.ts.map +1 -1
  163. package/lib/core/BoxedTable/styles.js +11 -11
  164. package/lib/core/Button/index.d.ts.map +1 -1
  165. package/lib/core/Button/styles.js +19 -19
  166. package/lib/core/Calendar/CalendarEvent/styles.d.ts.map +1 -1
  167. package/lib/core/Calendar/CalendarEvent/styles.js +5 -5
  168. package/lib/core/Calendar/CalendarSmallEvent/styles.d.ts.map +1 -1
  169. package/lib/core/Calendar/CalendarSmallEvent/styles.js +5 -5
  170. package/lib/core/Calendar/styles.d.ts.map +1 -1
  171. package/lib/core/Calendar/styles.js +5 -5
  172. package/lib/core/Card/styles.js +11 -11
  173. package/lib/core/Checkbox/styles.js +5 -5
  174. package/lib/core/CollapseList/Item.js +1 -1
  175. package/lib/core/CollapseList/styles.d.ts +5 -5
  176. package/lib/core/CollapseList/styles.d.ts.map +1 -1
  177. package/lib/core/CollapseList/styles.js +2 -2
  178. package/lib/core/CommentsTimeline/CommentLine/styles.d.ts.map +1 -1
  179. package/lib/core/CommentsTimeline/CommentLine/styles.js +4 -4
  180. package/lib/core/CommentsTimeline/styles.d.ts.map +1 -1
  181. package/lib/core/CommentsTimeline/styles.js +1 -1
  182. package/lib/core/CustomText/styles.d.ts.map +1 -1
  183. package/lib/core/CustomText/styles.js +2 -2
  184. package/lib/core/Datepicker/styles.d.ts.map +1 -1
  185. package/lib/core/Datepicker/styles.js +9 -9
  186. package/lib/core/DatepickerRange/styles.d.ts.map +1 -1
  187. package/lib/core/DatepickerRange/styles.js +9 -9
  188. package/lib/core/Divider/styles.js +5 -5
  189. package/lib/core/Dropdown/styles.js +3 -3
  190. package/lib/core/DropdownMenu/styles.d.ts.map +1 -1
  191. package/lib/core/DropdownMenu/styles.js +3 -3
  192. package/lib/core/Editor/config.d.ts +5 -0
  193. package/lib/core/Editor/config.d.ts.map +1 -1
  194. package/lib/core/Editor/config.js +7 -19
  195. package/lib/core/Editor/index.d.ts +43 -0
  196. package/lib/core/Editor/index.d.ts.map +1 -1
  197. package/lib/core/Editor/index.js +113 -173
  198. package/lib/core/Editor/styles.d.ts +13 -0
  199. package/lib/core/Editor/styles.d.ts.map +1 -1
  200. package/lib/core/Editor/styles.js +43 -60
  201. package/lib/core/EditorQuillReact/config.d.ts +6 -6
  202. package/lib/core/EditorQuillReact/index.js +1 -1
  203. package/lib/core/EditorQuillReact/styles.d.ts.map +1 -1
  204. package/lib/core/EditorQuillReact/styles.js +3 -3
  205. package/lib/core/FileInput/styles.d.ts +5 -5
  206. package/lib/core/FileInput/styles.d.ts.map +1 -1
  207. package/lib/core/FileInput/styles.js +14 -14
  208. package/lib/core/GoogleButton/styles.d.ts.map +1 -1
  209. package/lib/core/GoogleButton/styles.js +1 -1
  210. package/lib/core/Header/styles.js +7 -7
  211. package/lib/core/HighlightText/styles.d.ts.map +1 -1
  212. package/lib/core/HighlightText/styles.js +1 -1
  213. package/lib/core/Html/styles.js +6 -6
  214. package/lib/core/Image/styles.js +6 -6
  215. package/lib/core/ImagePicker/IconWithBackground.js +1 -1
  216. package/lib/core/ImagePicker/UploadButton.js +1 -1
  217. package/lib/core/ImagePicker/styles.js +11 -11
  218. package/lib/core/ImageViewer/index.js +1 -1
  219. package/lib/core/ImageViewer/styles.js +7 -7
  220. package/lib/core/InfoButton/styles.d.ts +5 -5
  221. package/lib/core/InfoButton/styles.d.ts.map +1 -1
  222. package/lib/core/InfoButton/styles.js +9 -9
  223. package/lib/core/Input/index.d.ts.map +1 -1
  224. package/lib/core/Input/index.js +17 -4
  225. package/lib/core/Input/styles.js +19 -19
  226. package/lib/core/Link/styles.d.ts.map +1 -1
  227. package/lib/core/Link/styles.js +10 -10
  228. package/lib/core/List/Item.js +1 -1
  229. package/lib/core/List/styles.js +11 -11
  230. package/lib/core/ListPager/index.js +1 -1
  231. package/lib/core/ListPager/styles.d.ts.map +1 -1
  232. package/lib/core/ListPager/styles.js +3 -3
  233. package/lib/core/MediaCarousel/styles.d.ts.map +1 -1
  234. package/lib/core/MediaCarousel/styles.js +6 -6
  235. package/lib/core/Modal/ActionButtons/index.js +1 -1
  236. package/lib/core/Modal/index.d.ts.map +1 -1
  237. package/lib/core/Modal/styles.d.ts.map +1 -1
  238. package/lib/core/Modal/styles.js +8 -8
  239. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.d.ts.map +1 -1
  240. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.js +4 -4
  241. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.d.ts.map +1 -1
  242. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.js +1 -1
  243. package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.d.ts.map +1 -1
  244. package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.js +3 -3
  245. package/lib/core/NoticeCard/styles.d.ts.map +1 -1
  246. package/lib/core/NoticeCard/styles.js +4 -4
  247. package/lib/core/NotificationCounter/styles.js +1 -1
  248. package/lib/core/NotificationsMenu/NotificationRow/styles.d.ts +5 -5
  249. package/lib/core/NotificationsMenu/NotificationRow/styles.d.ts.map +1 -1
  250. package/lib/core/NotificationsMenu/NotificationRow/styles.js +3 -3
  251. package/lib/core/NotificationsMenu/styles.d.ts.map +1 -1
  252. package/lib/core/NotificationsMenu/styles.js +3 -3
  253. package/lib/core/PieChart/styles.d.ts.map +1 -1
  254. package/lib/core/PieChart/styles.js +2 -2
  255. package/lib/core/PreemptionCard/styles.d.ts.map +1 -1
  256. package/lib/core/PreemptionCard/styles.js +3 -3
  257. package/lib/core/PreemptionCardLoading/styles.d.ts.map +1 -1
  258. package/lib/core/PreemptionCardLoading/styles.js +3 -3
  259. package/lib/core/QuillEditor/styles.d.ts.map +1 -1
  260. package/lib/core/QuillEditor/styles.js +3 -3
  261. package/lib/core/Radio/styles.js +4 -4
  262. package/lib/core/SearchFilter/index.js +1 -1
  263. package/lib/core/SearchFilter/styles.d.ts.map +1 -1
  264. package/lib/core/SearchFilter/styles.js +14 -14
  265. package/lib/core/SearchSelect/styles.d.ts.map +1 -1
  266. package/lib/core/SearchSelect/styles.js +5 -5
  267. package/lib/core/Select/index.js +1 -1
  268. package/lib/core/Select/styles.d.ts.map +1 -1
  269. package/lib/core/Select/styles.js +18 -18
  270. package/lib/core/SimpleBarChart/styles.d.ts.map +1 -1
  271. package/lib/core/SimpleBarChart/styles.js +1 -1
  272. package/lib/core/SimpleLineChart/styles.d.ts.map +1 -1
  273. package/lib/core/SimpleLineChart/styles.js +1 -1
  274. package/lib/core/Skeleton/styles.d.ts.map +1 -1
  275. package/lib/core/Skeleton/styles.js +4 -4
  276. package/lib/core/Spinner/styles.js +5 -5
  277. package/lib/core/Stepper/MobileStep/styles.d.ts.map +1 -1
  278. package/lib/core/Stepper/MobileStep/styles.js +7 -7
  279. package/lib/core/Stepper/Step/index.js +1 -1
  280. package/lib/core/Stepper/Step/styles.d.ts.map +1 -1
  281. package/lib/core/Stepper/Step/styles.js +5 -5
  282. package/lib/core/Stepper/styles.d.ts.map +1 -1
  283. package/lib/core/Stepper/styles.js +3 -3
  284. package/lib/core/TabBar/TabItem/styles.d.ts.map +1 -1
  285. package/lib/core/TabBar/TabItem/styles.js +1 -1
  286. package/lib/core/TabBar/styles.d.ts.map +1 -1
  287. package/lib/core/TabBar/styles.js +1 -1
  288. package/lib/core/TabNav/TabNavItem/styles.d.ts.map +1 -1
  289. package/lib/core/TabNav/TabNavItem/styles.js +5 -5
  290. package/lib/core/TabNav/styles.d.ts.map +1 -1
  291. package/lib/core/TabNav/styles.js +8 -8
  292. package/lib/core/Table/styles.d.ts.map +1 -1
  293. package/lib/core/Table/styles.js +16 -16
  294. package/lib/core/Tag/styles.js +13 -13
  295. package/lib/core/Text/styles.js +16 -16
  296. package/lib/core/Textarea/styles.d.ts.map +1 -1
  297. package/lib/core/Textarea/styles.js +7 -7
  298. package/lib/core/Timeline/TimelineStep/styles.d.ts.map +1 -1
  299. package/lib/core/Timeline/TimelineStep/styles.js +6 -6
  300. package/lib/core/Timeline/styles.d.ts.map +1 -1
  301. package/lib/core/Timeline/styles.js +1 -1
  302. package/lib/core/Timepicker/index.js +3 -3
  303. package/lib/core/Timepicker/styles.d.ts.map +1 -1
  304. package/lib/core/Timepicker/styles.js +7 -7
  305. package/lib/core/Tooltip/styles.js +2 -2
  306. package/lib/core/UnitIllustration/index.js +9 -9
  307. package/lib/core/UserMenu/styles.d.ts.map +1 -1
  308. package/lib/core/UserMenu/styles.js +7 -7
  309. package/lib/core/Video/styles.d.ts.map +1 -1
  310. package/lib/core/Video/styles.js +1 -1
  311. package/lib/core/YearWheel/styles.d.ts.map +1 -1
  312. package/lib/core/YearWheel/styles.js +3 -3
  313. package/lib/enums/Keyboard.js +2 -2
  314. package/lib/globals/styles/styles.js +1 -1
  315. package/lib/illustrations/styles.js +2 -2
  316. package/lib/layout/Footer/FooterButton/styles.d.ts +5 -5
  317. package/lib/layout/Footer/FooterButton/styles.d.ts.map +1 -1
  318. package/lib/layout/Footer/FooterButton/styles.js +1 -1
  319. package/lib/layout/Footer/FooterCol/styles.d.ts.map +1 -1
  320. package/lib/layout/Footer/FooterCol/styles.js +1 -1
  321. package/lib/layout/Footer/FooterGroup/styles.d.ts.map +1 -1
  322. package/lib/layout/Footer/FooterGroup/styles.js +1 -1
  323. package/lib/layout/Footer/FooterLabel/styles.d.ts.map +1 -1
  324. package/lib/layout/Footer/FooterLabel/styles.js +1 -1
  325. package/lib/layout/Footer/FooterLink/styles.d.ts +5 -5
  326. package/lib/layout/Footer/FooterLink/styles.d.ts.map +1 -1
  327. package/lib/layout/Footer/FooterLink/styles.js +1 -1
  328. package/lib/layout/Footer/styles.d.ts.map +1 -1
  329. package/lib/layout/Footer/styles.js +2 -2
  330. package/lib/layout/Layout/styles.d.ts.map +1 -1
  331. package/lib/layout/Layout/styles.js +1 -1
  332. package/lib/layout/LayoutShell/styles.d.ts.map +1 -1
  333. package/lib/layout/LayoutShell/styles.js +8 -8
  334. package/lib/layout/Menu/AppPicker/styles.d.ts.map +1 -1
  335. package/lib/layout/Menu/AppPicker/styles.js +5 -5
  336. package/lib/layout/Menu/MainMenu/styles.d.ts.map +1 -1
  337. package/lib/layout/Menu/MainMenu/styles.js +2 -2
  338. package/lib/layout/Menu/MenuItem/index.d.ts.map +1 -1
  339. package/lib/layout/Menu/MenuItem/index.js +0 -1
  340. package/lib/layout/Menu/MenuItem/styles.d.ts.map +1 -1
  341. package/lib/layout/Menu/MenuItem/styles.js +3 -3
  342. package/lib/layout/Menu/MenuSpacer/styles.d.ts.map +1 -1
  343. package/lib/layout/Menu/MenuSpacer/styles.js +1 -1
  344. package/lib/layout/Menu/MenuTop/styles.d.ts +5 -5
  345. package/lib/layout/Menu/MenuTop/styles.d.ts.map +1 -1
  346. package/lib/layout/Menu/MenuTop/styles.js +3 -3
  347. package/lib/layout/Menu/SecondaryMenu/styles.d.ts.map +1 -1
  348. package/lib/layout/Menu/SecondaryMenu/styles.js +4 -4
  349. package/lib/layout/Menu/SecondaryMenuItem/styles.js +1 -1
  350. package/lib/layout/Menu/styles.d.ts.map +1 -1
  351. package/lib/layout/Menu/styles.js +1 -1
  352. package/lib/layout/Submenu/SubmenuItem/index.d.ts.map +1 -1
  353. package/lib/layout/Submenu/SubmenuItem/index.js +0 -2
  354. package/lib/layout/Submenu/SubmenuItem/styles.js +3 -3
  355. package/lib/layout/Submenu/styles.d.ts.map +1 -1
  356. package/lib/layout/Submenu/styles.js +11 -11
  357. package/lib/layout/Topbar/styles.js +1 -1
  358. package/lib/shared/components/SbIconGrid/index.js +1 -1
  359. package/lib/shared/components/VisuallyHidden/index.d.ts.map +1 -1
  360. package/lib/shared/components/VisuallyHidden/index.js +4 -4
  361. package/lib/shared/recharts/CustomLegend/styles.d.ts.map +1 -1
  362. package/lib/shared/recharts/CustomLegend/styles.js +2 -2
  363. package/lib/shared/recharts/CustomTooltip/styles.d.ts.map +1 -1
  364. package/lib/shared/recharts/CustomTooltip/styles.js +3 -3
  365. package/lib/shared/types/LoadedType.d.ts +7 -0
  366. package/lib/shared/types/LoadedType.d.ts.map +1 -0
  367. package/lib/shared/types/LoadedType.js +1 -0
  368. package/lib/utils/time.js +14 -14
  369. package/package.json +1 -1
  370. package/rollup.config.js +13 -13
  371. package/theme-bbls.js +467 -467
  372. package/theme-generator.js +448 -448
  373. package/theme-helpers.js +62 -62
  374. package/vite.config.js +6 -6
  375. package/esm/core/BoxedTable/TableBody/index.js +0 -10
  376. package/esm/core/BoxedTable/TableBody/styles.js +0 -16
  377. package/esm/core/NotificationsMenu/NotificationBell/index.js +0 -19
  378. package/esm/core/NotificationsMenu/NotificationBell/styles.js +0 -21
  379. package/esm/core/QuillEditor/Attributors/IndentAttributor.js +0 -15
  380. package/esm/core/QuillEditor/Attributors/ListContainer.js +0 -20
  381. package/esm/core/QuillEditor/Attributors/ListItem.js +0 -24
  382. package/lib/core/BoxedTable/TableBody/index.d.ts +0 -7
  383. package/lib/core/BoxedTable/TableBody/index.d.ts.map +0 -1
  384. package/lib/core/BoxedTable/TableBody/index.js +0 -10
  385. package/lib/core/BoxedTable/TableBody/styles.d.ts +0 -6
  386. package/lib/core/BoxedTable/TableBody/styles.d.ts.map +0 -1
  387. package/lib/core/BoxedTable/TableBody/styles.js +0 -16
  388. package/lib/core/NotificationsMenu/NotificationBell/index.d.ts +0 -8
  389. package/lib/core/NotificationsMenu/NotificationBell/index.d.ts.map +0 -1
  390. package/lib/core/NotificationsMenu/NotificationBell/index.js +0 -19
  391. package/lib/core/NotificationsMenu/NotificationBell/styles.d.ts +0 -7
  392. package/lib/core/NotificationsMenu/NotificationBell/styles.d.ts.map +0 -1
  393. package/lib/core/NotificationsMenu/NotificationBell/styles.js +0 -21
  394. package/lib/core/QuillEditor/Attributors/IndentAttributor.d.ts +0 -7
  395. package/lib/core/QuillEditor/Attributors/IndentAttributor.d.ts.map +0 -1
  396. package/lib/core/QuillEditor/Attributors/IndentAttributor.js +0 -15
  397. package/lib/core/QuillEditor/Attributors/ListContainer.d.ts +0 -10
  398. package/lib/core/QuillEditor/Attributors/ListContainer.d.ts.map +0 -1
  399. package/lib/core/QuillEditor/Attributors/ListContainer.js +0 -20
  400. package/lib/core/QuillEditor/Attributors/ListItem.d.ts +0 -10
  401. package/lib/core/QuillEditor/Attributors/ListItem.d.ts.map +0 -1
  402. package/lib/core/QuillEditor/Attributors/ListItem.js +0 -24
package/theme-helpers.js CHANGED
@@ -1,62 +1,62 @@
1
- // Helpers
2
- const hexToRGBA = (hex, alpha) => {
3
- var r = parseInt(hex.slice(1, 3), 16),
4
- g = parseInt(hex.slice(3, 5), 16),
5
- b = parseInt(hex.slice(5, 7), 16)
6
-
7
- return 'rgba(' + r + ', ' + g + ', ' + b + ', ' + alpha + ')'
8
- }
9
-
10
- const hexifyWithWhiteBackground = (color) => {
11
- var values = color
12
- .replace(/rgba?\(/, '')
13
- .replace(/\)/, '')
14
- .replace(/[\s+]/g, '')
15
- .split(',')
16
- var a = parseFloat(values[3] || 1),
17
- r = Math.floor(a * parseInt(values[0]) + (1 - a) * 255),
18
- g = Math.floor(a * parseInt(values[1]) + (1 - a) * 255),
19
- b = Math.floor(a * parseInt(values[2]) + (1 - a) * 255)
20
- return (
21
- '#' +
22
- ('0' + r.toString(16)).slice(-2) +
23
- ('0' + g.toString(16)).slice(-2) +
24
- ('0' + b.toString(16)).slice(-2)
25
- )
26
- }
27
-
28
- const shadeColor = (color, percent) => {
29
- var R = parseInt(color.substring(1, 3), 16)
30
- var G = parseInt(color.substring(3, 5), 16)
31
- var B = parseInt(color.substring(5, 7), 16)
32
-
33
- R = parseInt('' + (R * (100 + percent)) / 100)
34
- G = parseInt('' + (G * (100 + percent)) / 100)
35
- B = parseInt('' + (B * (100 + percent)) / 100)
36
-
37
- R = R < 255 ? R : 255
38
- G = G < 255 ? G : 255
39
- B = B < 255 ? B : 255
40
-
41
- var RR = R.toString(16).length === 1 ? '0' + R.toString(16) : R.toString(16)
42
- var GG = G.toString(16).length === 1 ? '0' + G.toString(16) : G.toString(16)
43
- var BB = B.toString(16).length === 1 ? '0' + B.toString(16) : B.toString(16)
44
-
45
- return '#' + RR + GG + BB
46
- }
47
-
48
- const getContrastYIQ = (hexcolor) => {
49
- hexcolor = hexcolor.replace('#', '')
50
- var r = parseInt(hexcolor.substr(0, 2), 16)
51
- var g = parseInt(hexcolor.substr(2, 2), 16)
52
- var b = parseInt(hexcolor.substr(4, 2), 16)
53
- var yiq = (r * 299 + g * 587 + b * 114) / 1000
54
- return yiq >= 128 ? 'black' : 'white'
55
- }
56
-
57
- module.exports = {
58
- hexToRGBA,
59
- hexifyWithWhiteBackground,
60
- shadeColor,
61
- getContrastYIQ,
62
- }
1
+ // Helpers
2
+ const hexToRGBA = (hex, alpha) => {
3
+ var r = parseInt(hex.slice(1, 3), 16),
4
+ g = parseInt(hex.slice(3, 5), 16),
5
+ b = parseInt(hex.slice(5, 7), 16)
6
+
7
+ return 'rgba(' + r + ', ' + g + ', ' + b + ', ' + alpha + ')'
8
+ }
9
+
10
+ const hexifyWithWhiteBackground = (color) => {
11
+ var values = color
12
+ .replace(/rgba?\(/, '')
13
+ .replace(/\)/, '')
14
+ .replace(/[\s+]/g, '')
15
+ .split(',')
16
+ var a = parseFloat(values[3] || 1),
17
+ r = Math.floor(a * parseInt(values[0]) + (1 - a) * 255),
18
+ g = Math.floor(a * parseInt(values[1]) + (1 - a) * 255),
19
+ b = Math.floor(a * parseInt(values[2]) + (1 - a) * 255)
20
+ return (
21
+ '#' +
22
+ ('0' + r.toString(16)).slice(-2) +
23
+ ('0' + g.toString(16)).slice(-2) +
24
+ ('0' + b.toString(16)).slice(-2)
25
+ )
26
+ }
27
+
28
+ const shadeColor = (color, percent) => {
29
+ var R = parseInt(color.substring(1, 3), 16)
30
+ var G = parseInt(color.substring(3, 5), 16)
31
+ var B = parseInt(color.substring(5, 7), 16)
32
+
33
+ R = parseInt('' + (R * (100 + percent)) / 100)
34
+ G = parseInt('' + (G * (100 + percent)) / 100)
35
+ B = parseInt('' + (B * (100 + percent)) / 100)
36
+
37
+ R = R < 255 ? R : 255
38
+ G = G < 255 ? G : 255
39
+ B = B < 255 ? B : 255
40
+
41
+ var RR = R.toString(16).length === 1 ? '0' + R.toString(16) : R.toString(16)
42
+ var GG = G.toString(16).length === 1 ? '0' + G.toString(16) : G.toString(16)
43
+ var BB = B.toString(16).length === 1 ? '0' + B.toString(16) : B.toString(16)
44
+
45
+ return '#' + RR + GG + BB
46
+ }
47
+
48
+ const getContrastYIQ = (hexcolor) => {
49
+ hexcolor = hexcolor.replace('#', '')
50
+ var r = parseInt(hexcolor.substr(0, 2), 16)
51
+ var g = parseInt(hexcolor.substr(2, 2), 16)
52
+ var b = parseInt(hexcolor.substr(4, 2), 16)
53
+ var yiq = (r * 299 + g * 587 + b * 114) / 1000
54
+ return yiq >= 128 ? 'black' : 'white'
55
+ }
56
+
57
+ module.exports = {
58
+ hexToRGBA,
59
+ hexifyWithWhiteBackground,
60
+ shadeColor,
61
+ getContrastYIQ,
62
+ }
package/vite.config.js CHANGED
@@ -1,6 +1,6 @@
1
- import { defineConfig } from 'vite'
2
- import react from '@vitejs/plugin-react'
3
-
4
- export default defineConfig({
5
- plugins: [react()],
6
- })
1
+ import { defineConfig } from 'vite'
2
+ import react from '@vitejs/plugin-react'
3
+
4
+ export default defineConfig({
5
+ plugins: [react()],
6
+ })
@@ -1,10 +0,0 @@
1
- import { BodyWrapper } from './styles';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const TableBody = ({
4
- children
5
- }) => {
6
- return /*#__PURE__*/_jsx(BodyWrapper, {
7
- children: children
8
- });
9
- };
10
- export default TableBody;
@@ -1,16 +0,0 @@
1
- import _styled from "@emotion/styled/base";
2
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
3
- export const BodyWrapper = /*#__PURE__*/_styled("tbody", process.env.NODE_ENV === "production" ? {
4
- target: "e1u8g1t20"
5
- } : {
6
- target: "e1u8g1t20",
7
- label: "BodyWrapper"
8
- })(process.env.NODE_ENV === "production" ? {
9
- name: "ixi98c",
10
- styles: "display:flex;flex-direction:column;grid-row-gap:1em"
11
- } : {
12
- name: "ixi98c",
13
- styles: "display:flex;flex-direction:column;grid-row-gap:1em",
14
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0JveGVkVGFibGUvVGFibGVCb2R5L3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFdUMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjL3BhY2thZ2VzL2NvcmUvQm94ZWRUYWJsZS9UYWJsZUJvZHkvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5cbmV4cG9ydCBjb25zdCBCb2R5V3JhcHBlciA9IHN0eWxlZC50Ym9keWBcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgZ3JpZC1yb3ctZ2FwOiAxZW07XG5gXG4iXX0= */",
15
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
16
- });
@@ -1,19 +0,0 @@
1
- import { useTheme } from '@emotion/react';
2
- import React from 'react';
3
- import IconBellOutline from '../../../icons/General/IconBellOutline';
4
- import { UnreadMark, Wrapper } from './styles';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
- const NotificationBell = ({
8
- unread
9
- }) => {
10
- const theme = useTheme();
11
- return /*#__PURE__*/_jsxs(Wrapper, {
12
- children: [/*#__PURE__*/_jsx(IconBellOutline, {
13
- secondary: true
14
- }), unread && /*#__PURE__*/_jsx(UnreadMark, {
15
- color: theme.primary
16
- })]
17
- });
18
- };
19
- export default NotificationBell;
@@ -1,21 +0,0 @@
1
- import _styled from "@emotion/styled/base";
2
- export const Wrapper = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
3
- target: "e1vzi48j1"
4
- } : {
5
- target: "e1vzi48j1",
6
- label: "Wrapper"
7
- })(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL05vdGlmaWNhdGlvbnNNZW51L05vdGlmaWNhdGlvbkJlbGwvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVpQyIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMvcGFja2FnZXMvY29yZS9Ob3RpZmljYXRpb25zTWVudS9Ob3RpZmljYXRpb25CZWxsL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuXG5leHBvcnQgY29uc3QgV3JhcHBlciA9IHN0eWxlZC5kaXZgYFxuXG5leHBvcnQgY29uc3QgVW5yZWFkTWFyayA9IHN0eWxlZC5kaXYoXG4gIChwcm9wczogYW55KSA9PiBgXG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgdG9wOiAtMnB4O1xuICBsZWZ0OiAxMHB4O1xuICBiYWNrZ3JvdW5kOiAke3Byb3BzLmNvbG9yfTtcbiAgaGVpZ2h0OiAxMHB4O1xuICB3aWR0aDogMTBweDtcbiAgYm9yZGVyLXJhZGl1czogMTBweDtcbmBcbilcbiJdfQ== */");
8
- export const UnreadMark = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
9
- target: "e1vzi48j0"
10
- } : {
11
- target: "e1vzi48j0",
12
- label: "UnreadMark"
13
- })(props => `
14
- position: absolute;
15
- top: -2px;
16
- left: 10px;
17
- background: ${props.color};
18
- height: 10px;
19
- width: 10px;
20
- border-radius: 10px;
21
- `, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL05vdGlmaWNhdGlvbnNNZW51L05vdGlmaWNhdGlvbkJlbGwvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUkwQiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMvcGFja2FnZXMvY29yZS9Ob3RpZmljYXRpb25zTWVudS9Ob3RpZmljYXRpb25CZWxsL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuXG5leHBvcnQgY29uc3QgV3JhcHBlciA9IHN0eWxlZC5kaXZgYFxuXG5leHBvcnQgY29uc3QgVW5yZWFkTWFyayA9IHN0eWxlZC5kaXYoXG4gIChwcm9wczogYW55KSA9PiBgXG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgdG9wOiAtMnB4O1xuICBsZWZ0OiAxMHB4O1xuICBiYWNrZ3JvdW5kOiAke3Byb3BzLmNvbG9yfTtcbiAgaGVpZ2h0OiAxMHB4O1xuICB3aWR0aDogMTBweDtcbiAgYm9yZGVyLXJhZGl1czogMTBweDtcbmBcbilcbiJdfQ== */");
@@ -1,15 +0,0 @@
1
- import Quill from 'quill';
2
- const Parchment = Quill.import('parchment');
3
- export class IndentAttributor extends Parchment.StyleAttributor {
4
- constructor(...args) {
5
- super(...args);
6
- }
7
- add(node, value) {
8
- if (value === 0) {
9
- this.remove(node);
10
- return true;
11
- } else {
12
- return super.add(node, `${value}em`);
13
- }
14
- }
15
- }
@@ -1,20 +0,0 @@
1
- import Quill from 'quill';
2
- const ListContainer = Quill.import('formats/list-container');
3
- export class MyListContainer extends ListContainer {
4
- static tagName = ['OL', 'UL'];
5
- static defaultTag = 'OL';
6
- static create(value) {
7
- return document.createElement(this.getTag(value));
8
- }
9
- static getTag(val) {
10
- const map = {
11
- bullet: 'UL',
12
- ordered: 'OL'
13
- };
14
- return map[val] || this.defaultTag;
15
- }
16
- checkMerge() {
17
- // Only merge if the next list is the same type as this one
18
- return super.checkMerge() && this.domNode.tagName === this.next?.domNode.tagName;
19
- }
20
- }
@@ -1,24 +0,0 @@
1
- import Quill from 'quill';
2
- import { MyListContainer } from './ListContainer';
3
- const ListItem = Quill.import('formats/list');
4
- class MyListItem extends ListItem {
5
- static requiredContainer = MyListContainer;
6
- static register() {
7
- Quill.register(MyListContainer, true);
8
- }
9
- optimize(context) {
10
- if (this.statics.requiredContainer && !(this.parent instanceof this.statics.requiredContainer)) {
11
- // Insert the format value (bullet, ordered) into wrap arguments
12
- this.wrap(this.statics.requiredContainer.blotName, MyListItem.formats(this.domNode));
13
- }
14
- super.optimize(context);
15
- }
16
- format(name, value) {
17
- // If the list type is different, wrap this list item in a new MyListContainer of that type
18
- if (name === ListItem.blotName && value !== MyListItem.formats(this.domNode)) {
19
- this.wrap(this.statics.requiredContainer.blotName, value);
20
- }
21
- super.format(name, value);
22
- }
23
- }
24
- export { MyListItem as default };
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- declare type Props = {
3
- children: React.ReactNode;
4
- };
5
- declare const TableBody: ({ children }: Props) => import("react").JSX.Element;
6
- export default TableBody;
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/packages/core/BoxedTable/TableBody/index.tsx"],"names":[],"mappings":";AAEA,aAAK,KAAK,GAAG;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,CAAA;AACD,QAAA,MAAM,SAAS,iBAAkB,KAAK,gCAErC,CAAA;AACD,eAAe,SAAS,CAAA"}
@@ -1,10 +0,0 @@
1
- import { BodyWrapper } from './styles';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const TableBody = ({
4
- children
5
- }) => {
6
- return /*#__PURE__*/_jsx(BodyWrapper, {
7
- children: children
8
- });
9
- };
10
- export default TableBody;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const BodyWrapper: import("@emotion/styled").StyledComponent<{
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
5
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, {}>;
6
- //# sourceMappingURL=styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/packages/core/BoxedTable/TableBody/styles.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,WAAW;;;2HAIvB,CAAA"}
@@ -1,16 +0,0 @@
1
- import _styled from "@emotion/styled/base";
2
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
3
- export const BodyWrapper = /*#__PURE__*/_styled("tbody", process.env.NODE_ENV === "production" ? {
4
- target: "e1u8g1t20"
5
- } : {
6
- target: "e1u8g1t20",
7
- label: "BodyWrapper"
8
- })(process.env.NODE_ENV === "production" ? {
9
- name: "ixi98c",
10
- styles: "display:flex;flex-direction:column;grid-row-gap:1em"
11
- } : {
12
- name: "ixi98c",
13
- styles: "display:flex;flex-direction:column;grid-row-gap:1em",
14
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0JveGVkVGFibGUvVGFibGVCb2R5L3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFdUMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjL3BhY2thZ2VzL2NvcmUvQm94ZWRUYWJsZS9UYWJsZUJvZHkvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5cbmV4cG9ydCBjb25zdCBCb2R5V3JhcHBlciA9IHN0eWxlZC50Ym9keWBcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgZ3JpZC1yb3ctZ2FwOiAxZW07XG5gXG4iXX0= */",
15
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
16
- });
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- /** Unread prop for showing marker */
4
- unread: boolean;
5
- }
6
- declare const NotificationBell: React.FC<IProps>;
7
- export default NotificationBell;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/packages/core/NotificationsMenu/NotificationBell/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,UAAU,MAAM;IACd,qCAAqC;IACrC,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAQtC,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -1,19 +0,0 @@
1
- import { useTheme } from '@emotion/react';
2
- import React from 'react';
3
- import IconBellOutline from '../../../icons/General/IconBellOutline';
4
- import { UnreadMark, Wrapper } from './styles';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
- const NotificationBell = ({
8
- unread
9
- }) => {
10
- const theme = useTheme();
11
- return /*#__PURE__*/_jsxs(Wrapper, {
12
- children: [/*#__PURE__*/_jsx(IconBellOutline, {
13
- secondary: true
14
- }), unread && /*#__PURE__*/_jsx(UnreadMark, {
15
- color: theme.primary
16
- })]
17
- });
18
- };
19
- export default NotificationBell;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Wrapper: import("@emotion/styled").StyledComponent<{
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
5
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
- export declare const UnreadMark: import("@emotion/styled").StyledComponent<any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
- //# sourceMappingURL=styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/packages/core/NotificationsMenu/NotificationBell/styles.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,OAAO;;;yGAAe,CAAA;AAEnC,eAAO,MAAM,UAAU,uJAUtB,CAAA"}
@@ -1,21 +0,0 @@
1
- import _styled from "@emotion/styled/base";
2
- export const Wrapper = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
3
- target: "e1vzi48j1"
4
- } : {
5
- target: "e1vzi48j1",
6
- label: "Wrapper"
7
- })(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL05vdGlmaWNhdGlvbnNNZW51L05vdGlmaWNhdGlvbkJlbGwvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVpQyIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMvcGFja2FnZXMvY29yZS9Ob3RpZmljYXRpb25zTWVudS9Ob3RpZmljYXRpb25CZWxsL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuXG5leHBvcnQgY29uc3QgV3JhcHBlciA9IHN0eWxlZC5kaXZgYFxuXG5leHBvcnQgY29uc3QgVW5yZWFkTWFyayA9IHN0eWxlZC5kaXYoXG4gIChwcm9wczogYW55KSA9PiBgXG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgdG9wOiAtMnB4O1xuICBsZWZ0OiAxMHB4O1xuICBiYWNrZ3JvdW5kOiAke3Byb3BzLmNvbG9yfTtcbiAgaGVpZ2h0OiAxMHB4O1xuICB3aWR0aDogMTBweDtcbiAgYm9yZGVyLXJhZGl1czogMTBweDtcbmBcbilcbiJdfQ== */");
8
- export const UnreadMark = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
9
- target: "e1vzi48j0"
10
- } : {
11
- target: "e1vzi48j0",
12
- label: "UnreadMark"
13
- })(props => `
14
- position: absolute;
15
- top: -2px;
16
- left: 10px;
17
- background: ${props.color};
18
- height: 10px;
19
- width: 10px;
20
- border-radius: 10px;
21
- `, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL05vdGlmaWNhdGlvbnNNZW51L05vdGlmaWNhdGlvbkJlbGwvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUkwQiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMvcGFja2FnZXMvY29yZS9Ob3RpZmljYXRpb25zTWVudS9Ob3RpZmljYXRpb25CZWxsL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuXG5leHBvcnQgY29uc3QgV3JhcHBlciA9IHN0eWxlZC5kaXZgYFxuXG5leHBvcnQgY29uc3QgVW5yZWFkTWFyayA9IHN0eWxlZC5kaXYoXG4gIChwcm9wczogYW55KSA9PiBgXG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgdG9wOiAtMnB4O1xuICBsZWZ0OiAxMHB4O1xuICBiYWNrZ3JvdW5kOiAke3Byb3BzLmNvbG9yfTtcbiAgaGVpZ2h0OiAxMHB4O1xuICB3aWR0aDogMTBweDtcbiAgYm9yZGVyLXJhZGl1czogMTBweDtcbmBcbilcbiJdfQ== */");
@@ -1,7 +0,0 @@
1
- declare const Parchment: any;
2
- export declare class IndentAttributor extends Parchment.StyleAttributor {
3
- constructor(...args: any);
4
- add(node: any, value: any): any;
5
- }
6
- export {};
7
- //# sourceMappingURL=IndentAttributor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IndentAttributor.d.ts","sourceRoot":"","sources":["../../../../src/packages/core/QuillEditor/Attributors/IndentAttributor.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,SAAS,EAAgC,GAAG,CAAA;AAClD,qBAAa,gBAAiB,SAAQ,SAAS,CAAC,eAAe;gBACjD,GAAG,IAAI,EAAE,GAAG;IAGxB,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG;CAQ1B"}
@@ -1,15 +0,0 @@
1
- import Quill from 'quill';
2
- const Parchment = Quill.import('parchment');
3
- export class IndentAttributor extends Parchment.StyleAttributor {
4
- constructor(...args) {
5
- super(...args);
6
- }
7
- add(node, value) {
8
- if (value === 0) {
9
- this.remove(node);
10
- return true;
11
- } else {
12
- return super.add(node, `${value}em`);
13
- }
14
- }
15
- }
@@ -1,10 +0,0 @@
1
- declare const ListContainer: any;
2
- export declare class MyListContainer extends ListContainer {
3
- static tagName: string[];
4
- static defaultTag: string;
5
- static create(value: 'bullet' | 'ordered'): HTMLElement;
6
- static getTag(val: 'bullet' | 'ordered'): string;
7
- checkMerge(): any;
8
- }
9
- export {};
10
- //# sourceMappingURL=ListContainer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ListContainer.d.ts","sourceRoot":"","sources":["../../../../src/packages/core/QuillEditor/Attributors/ListContainer.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,aAAa,EAA6C,GAAG,CAAA;AACnE,qBAAa,eAAgB,SAAQ,aAAa;IAChD,MAAM,CAAC,OAAO,WAAe;IAC7B,MAAM,CAAC,UAAU,SAAO;IAExB,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,GAAG,SAAS;IAIzC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,QAAQ,GAAG,SAAS;IAQvC,UAAU;CAMX"}
@@ -1,20 +0,0 @@
1
- import Quill from 'quill';
2
- const ListContainer = Quill.import('formats/list-container');
3
- export class MyListContainer extends ListContainer {
4
- static tagName = ['OL', 'UL'];
5
- static defaultTag = 'OL';
6
- static create(value) {
7
- return document.createElement(this.getTag(value));
8
- }
9
- static getTag(val) {
10
- const map = {
11
- bullet: 'UL',
12
- ordered: 'OL'
13
- };
14
- return map[val] || this.defaultTag;
15
- }
16
- checkMerge() {
17
- // Only merge if the next list is the same type as this one
18
- return super.checkMerge() && this.domNode.tagName === this.next?.domNode.tagName;
19
- }
20
- }
@@ -1,10 +0,0 @@
1
- import { MyListContainer } from './ListContainer';
2
- declare const ListItem: any;
3
- declare class MyListItem extends ListItem {
4
- static requiredContainer: typeof MyListContainer;
5
- static register(): void;
6
- optimize(context: any): void;
7
- format(name: any, value: any): void;
8
- }
9
- export { MyListItem as default };
10
- //# sourceMappingURL=ListItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/packages/core/QuillEditor/Attributors/ListItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,QAAA,MAAM,QAAQ,EAAmC,GAAG,CAAA;AACpD,cAAM,UAAW,SAAQ,QAAQ;IAC/B,MAAM,CAAC,iBAAiB,yBAAkB;IAE1C,MAAM,CAAC,QAAQ;IAIf,QAAQ,CAAC,OAAO,EAAE,GAAG;IAcrB,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG;CAU7B;AAED,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,CAAA"}
@@ -1,24 +0,0 @@
1
- import Quill from 'quill';
2
- import { MyListContainer } from './ListContainer';
3
- const ListItem = Quill.import('formats/list');
4
- class MyListItem extends ListItem {
5
- static requiredContainer = MyListContainer;
6
- static register() {
7
- Quill.register(MyListContainer, true);
8
- }
9
- optimize(context) {
10
- if (this.statics.requiredContainer && !(this.parent instanceof this.statics.requiredContainer)) {
11
- // Insert the format value (bullet, ordered) into wrap arguments
12
- this.wrap(this.statics.requiredContainer.blotName, MyListItem.formats(this.domNode));
13
- }
14
- super.optimize(context);
15
- }
16
- format(name, value) {
17
- // If the list type is different, wrap this list item in a new MyListContainer of that type
18
- if (name === ListItem.blotName && value !== MyListItem.formats(this.domNode)) {
19
- this.wrap(this.statics.requiredContainer.blotName, value);
20
- }
21
- super.format(name, value);
22
- }
23
- }
24
- export { MyListItem as default };