@bbl-digital/snorre 4.1.0-beta.2 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (940) hide show
  1. package/dist/bundle.js +2325 -941
  2. package/esm/app-shell/index.js +1 -2
  3. package/esm/core/Alert/index.js +1 -2
  4. package/esm/core/AppLoader/index.js +1 -2
  5. package/esm/core/Autocomplete/Autocomplete.stories.js +1 -2
  6. package/esm/core/Autocomplete/index.js +1 -3
  7. package/esm/core/Banner/index.js +1 -2
  8. package/esm/core/BarAndLineComposedChart/BarAndLineComposedChart.stories.js +88 -0
  9. package/esm/core/BarAndLineComposedChart/index.js +19 -9
  10. package/esm/core/BarChartWithCustomizedEvent/index.js +1 -2
  11. package/esm/core/Box/index.js +1 -2
  12. package/esm/core/BoxedTable/BoxedTable.stories.js +304 -409
  13. package/esm/core/BoxedTable/DraggableRow/index.js +14 -17
  14. package/esm/core/BoxedTable/DraggableRow/styles.js +14 -20
  15. package/esm/core/BoxedTable/HeaderCell/styles.js +3 -3
  16. package/esm/core/BoxedTable/RowCell/index.js +4 -14
  17. package/esm/core/BoxedTable/RowCell/styles.js +23 -7
  18. package/esm/core/BoxedTable/TableHeader/index.js +3 -5
  19. package/esm/core/BoxedTable/TableHeader/styles.js +3 -18
  20. package/esm/core/BoxedTable/TableRow/index.js +9 -7
  21. package/esm/core/BoxedTable/TableRow/styles.js +24 -30
  22. package/esm/core/BoxedTable/index.js +7 -19
  23. package/esm/core/BoxedTable/styles.js +19 -25
  24. package/esm/core/Calendar/CalendarEvent/index.js +3 -3
  25. package/esm/core/Calendar/CalendarSmallEvent/index.js +1 -2
  26. package/esm/core/Calendar/index.js +5 -4
  27. package/esm/core/Card/Card.stories.js +1 -2
  28. package/esm/core/Checkbox/index.js +1 -2
  29. package/esm/core/CollapseList/CollapseList.stories.js +1 -2
  30. package/esm/core/CollapseList/Item.js +1 -3
  31. package/esm/core/CommentsTimeline/CommentLine/index.js +1 -2
  32. package/esm/core/CommentsTimeline/CommentsTimeline.stories.js +1 -2
  33. package/esm/core/Datepicker/index.js +16 -7
  34. package/esm/core/Datepicker/styles.js +13 -13
  35. package/esm/core/DatepickerRange/index.js +2 -2
  36. package/esm/core/Dropdown/index.js +1 -2
  37. package/esm/core/DropdownMenu/DropdownMenu.stories.js +1 -3
  38. package/esm/core/DropdownMenu/index.js +1 -2
  39. package/esm/core/Editor/Editor.stories.js +1 -0
  40. package/esm/core/Editor/index.js +5 -3
  41. package/esm/core/EditorQuillReact/EditorQuillReact.stories.js +59 -0
  42. package/esm/core/EditorQuillReact/IndentAttributor.js +15 -0
  43. package/esm/core/EditorQuillReact/config.js +31 -0
  44. package/esm/core/EditorQuillReact/index.js +103 -0
  45. package/esm/core/EditorQuillReact/styles.js +34 -0
  46. package/esm/core/FileInput/index.js +1 -2
  47. package/esm/core/GoogleButton/index.js +2 -2
  48. package/esm/core/Html/Html.stories.js +2 -3
  49. package/esm/core/Html/index.js +3 -1
  50. package/esm/core/Html/styles.js +6 -9
  51. package/esm/core/ImagePicker/UploadButton.js +1 -2
  52. package/esm/core/ImagePicker/index.js +1 -2
  53. package/esm/core/ImageViewer/index.js +1 -2
  54. package/esm/core/InfoButton/index.js +1 -2
  55. package/esm/core/Input/Input.stories.js +20 -1
  56. package/esm/core/Input/index.js +45 -27
  57. package/esm/core/Input/styles.js +20 -18
  58. package/esm/core/Link/index.js +1 -2
  59. package/esm/core/List/Item.js +5 -5
  60. package/esm/core/List/List.stories.js +1 -3
  61. package/esm/core/List/index.js +1 -1
  62. package/esm/core/ListPager/index.js +3 -22
  63. package/esm/core/MediaCarousel/index.js +7 -4
  64. package/esm/core/Modal/Modal.stories.js +1 -2
  65. package/esm/core/Modal/index.js +8 -3
  66. package/esm/core/Modal/styles.js +8 -8
  67. package/esm/core/NoticeCard/NoticeCard.stories.js +1 -4
  68. package/esm/core/NoticeCard/index.js +1 -5
  69. package/esm/core/NoticeCard/privateComponents/NoticeAttachmentBlock/index.js +1 -2
  70. package/esm/core/NoticeCard/privateComponents/NoticeMetaInfo/index.js +4 -16
  71. package/esm/core/NotificationCounter/styles.js +1 -1
  72. package/esm/core/NotificationsMenu/NotificationRow/index.js +2 -2
  73. package/esm/core/NotificationsMenu/NotificationsMenu.stories.js +4 -4
  74. package/esm/core/NotificationsMenu/index.js +34 -17
  75. package/esm/core/NotificationsMenu/styles.js +3 -3
  76. package/esm/core/PieChart/ActiveShape/index.js +1 -2
  77. package/esm/core/PieChart/index.js +9 -4
  78. package/esm/core/PieChart/renderTextContent/index.js +3 -2
  79. package/esm/core/PreemptionCard/PreemptionCard.stories.js +12 -9
  80. package/esm/core/PreemptionCard/index.js +3 -4
  81. package/esm/core/PreemptionCardLoading/index.js +1 -2
  82. package/esm/core/QuillEditor/Attributors/IndentAttributor.js +15 -0
  83. package/esm/core/QuillEditor/Attributors/ListContainer.js +20 -0
  84. package/esm/core/QuillEditor/Attributors/ListItem.js +24 -0
  85. package/esm/core/QuillEditor/QuillEditor.stories.js +56 -0
  86. package/esm/core/QuillEditor/classes/IndentAttributor.js +15 -0
  87. package/esm/core/QuillEditor/classes/LinkSanitizer.js +21 -0
  88. package/esm/core/QuillEditor/classes/ListContainer.js +20 -0
  89. package/esm/core/QuillEditor/classes/ListItem.js +24 -0
  90. package/esm/core/QuillEditor/config.js +28 -0
  91. package/esm/core/QuillEditor/index.js +278 -0
  92. package/esm/core/QuillEditor/styles.js +34 -0
  93. package/esm/core/Radio/Radio.stories.js +1 -2
  94. package/esm/core/Radio/index.js +1 -2
  95. package/esm/core/SearchFilter/SearchFilter.stories.js +1 -2
  96. package/esm/core/SearchFilter/index.js +4 -4
  97. package/esm/core/SearchSelect/index.js +1 -3
  98. package/esm/core/Select/Select.stories.js +1 -2
  99. package/esm/core/Select/index.js +1 -2
  100. package/esm/core/SimpleBarChart/index.js +1 -2
  101. package/esm/core/SimpleLineChart/index.js +1 -2
  102. package/esm/core/Stepper/MobileStep/index.js +33 -0
  103. package/esm/core/Stepper/MobileStep/styles.js +90 -0
  104. package/esm/core/Stepper/Step/index.js +83 -0
  105. package/esm/core/Stepper/Step/styles.js +49 -0
  106. package/esm/core/Stepper/Stepper.stories.js +29 -0
  107. package/esm/core/Stepper/index.js +47 -0
  108. package/esm/core/Stepper/styles.js +24 -0
  109. package/esm/core/TabBar/TabBar.stories.js +1 -2
  110. package/esm/core/TabBar/TabItem/index.js +2 -2
  111. package/esm/core/TabNav/TabNav.stories.js +1 -2
  112. package/esm/core/TabNav/TabNavItem/index.js +1 -2
  113. package/esm/core/TabNav/index.js +1 -2
  114. package/esm/core/Table/Table.stories.js +1 -2
  115. package/esm/core/Tag/index.js +1 -3
  116. package/esm/core/Textarea/index.js +6 -5
  117. package/esm/core/Timeline/Timeline.stories.js +1 -2
  118. package/esm/core/Timeline/TimelineStep/index.js +1 -2
  119. package/esm/core/Timepicker/index.js +1 -2
  120. package/esm/core/Tooltip/index.js +1 -2
  121. package/esm/core/UserMenu/UserMenu.stories.js +1 -2
  122. package/esm/core/UserMenu/index.js +1 -2
  123. package/esm/core/YearWheel/index.js +1 -2
  124. package/esm/core/private/ButtonOrLink.js +1 -2
  125. package/esm/core/private/preemption.js +5 -1
  126. package/esm/globals/validation/regularExpressions.js +1 -1
  127. package/esm/icons/General/IconAuditorFilled.js +1 -2
  128. package/esm/icons/General/IconAuditorOutline.js +1 -2
  129. package/esm/icons/General/IconCamera.js +1 -2
  130. package/esm/icons/General/IconCases.js +1 -2
  131. package/esm/icons/General/IconDocument.js +1 -2
  132. package/esm/icons/General/IconDocumentFilled.js +1 -2
  133. package/esm/icons/General/IconEmailMarkAsRead.js +12 -0
  134. package/esm/icons/General/IconFillOut.js +1 -2
  135. package/esm/icons/General/IconHomeFilled.js +1 -2
  136. package/esm/icons/General/IconHomeOutline.js +1 -2
  137. package/esm/icons/General/IconHouseBlockFilled.js +1 -2
  138. package/esm/icons/General/IconHouseBlockOutline.js +1 -2
  139. package/esm/icons/General/IconImage.js +1 -2
  140. package/esm/icons/General/IconJanitorFilled.js +1 -2
  141. package/esm/icons/General/IconJanitorOutline.js +1 -2
  142. package/esm/icons/General/IconLeafFilled.js +1 -2
  143. package/esm/icons/General/IconLeafOutline.js +1 -2
  144. package/esm/icons/General/IconRearrange.js +1 -2
  145. package/esm/icons/Icon.stories.js +4 -2
  146. package/esm/icons/Logos/IconBankAxept.js +1 -2
  147. package/esm/icons/Logos/IconGmail.js +1 -2
  148. package/esm/icons/Logos/IconMasterCard.js +1 -2
  149. package/esm/icons/Logos/IconOffice365.js +1 -2
  150. package/esm/icons/Logos/IconVisa.js +1 -2
  151. package/esm/illustrations/Backgrounds/IllustrationHousesBackground.js +1 -2
  152. package/esm/illustrations/Backgrounds/IllustrationHousesBackgroundWithComposition.js +1 -2
  153. package/esm/illustrations/General/IllustrationBudget.js +185 -0
  154. package/esm/illustrations/General/IllustrationError.js +1 -2
  155. package/esm/illustrations/General/IllustrationErrorGeneric.js +1 -2
  156. package/esm/illustrations/General/IllustrationHighHouse.js +1 -2
  157. package/esm/illustrations/General/IllustrationHighHouseComposition.js +1 -2
  158. package/esm/illustrations/General/IllustrationHouse.js +1 -2
  159. package/esm/illustrations/General/IllustrationHouseComposition.js +1 -2
  160. package/esm/illustrations/General/IllustrationHouseMissing.js +1 -2
  161. package/esm/illustrations/General/IllustrationLowHouse.js +1 -2
  162. package/esm/illustrations/General/IllustrationLowHouseComposition.js +1 -2
  163. package/esm/illustrations/General/IllustrationPaperCompleted.js +1 -2
  164. package/esm/illustrations/General/IllustrationPaperMissing.js +1 -2
  165. package/esm/illustrations/General/IllustrationSemiDetachedHouse.js +1 -2
  166. package/esm/illustrations/General/IllustrationSemiDetachedHouseComposition.js +1 -2
  167. package/esm/illustrations/General/IllustrationServiceMessage.js +40 -0
  168. package/esm/illustrations/General/IllustrationSmallHouse.js +1 -2
  169. package/esm/illustrations/General/IllustrationSmallHouseComposition.js +1 -2
  170. package/esm/illustrations/General/IllustrationTechninalDifficulties.js +119 -0
  171. package/esm/illustrations/General/IllustrationTerraceBlock.js +1 -2
  172. package/esm/illustrations/General/IllustrationTerraceBlockComposition.js +1 -2
  173. package/esm/illustrations/General/IllustrationTownHouse.js +1 -2
  174. package/esm/illustrations/General/IllustrationTownHouseComposition.js +1 -2
  175. package/esm/illustrations/Illustration.stories.js +18 -3
  176. package/esm/illustrations/MySite/IllustrationMySiteAssociation.js +1 -2
  177. package/esm/illustrations/MySite/IllustrationMySiteBenefits.js +180 -0
  178. package/esm/illustrations/MySite/IllustrationMySiteBuilding.js +1 -2
  179. package/esm/illustrations/MySite/IllustrationMySiteCoffeeBook.js +1 -2
  180. package/esm/illustrations/MySite/IllustrationMySiteComputer.js +1 -2
  181. package/esm/illustrations/MySite/IllustrationMySiteCooperative.js +1 -2
  182. package/esm/illustrations/MySite/IllustrationMySiteDashboard.js +1 -2
  183. package/esm/illustrations/MySite/IllustrationMySiteGift.js +1 -2
  184. package/esm/illustrations/MySite/IllustrationMySiteLetterSent.js +77 -0
  185. package/esm/illustrations/MySite/IllustrationMySiteMailbox.js +1 -2
  186. package/esm/illustrations/MySite/IllustrationMySitePapers.js +1 -2
  187. package/esm/illustrations/MySite/IllustrationMySitePiggyBank.js +1 -2
  188. package/esm/illustrations/MySite/IllustrationMySiteTransfer.js +1 -2
  189. package/esm/index.js +9 -2
  190. package/esm/layout/Footer/Footer.stories.js +1 -2
  191. package/esm/layout/LayoutShell/index.js +1 -2
  192. package/esm/layout/Menu/AppPicker/index.js +3 -4
  193. package/esm/layout/Menu/AppPicker/styles.js +7 -7
  194. package/esm/layout/Menu/MainMenu/index.js +10 -6
  195. package/esm/layout/Menu/MainMenu/styles.js +8 -2
  196. package/esm/layout/Menu/MenuItem/index.js +23 -19
  197. package/esm/layout/Menu/MenuItem/styles.js +17 -2
  198. package/esm/layout/Menu/MenuTop/index.js +1 -2
  199. package/esm/layout/Menu/MenuTop/styles.js +3 -3
  200. package/esm/layout/Menu/SecondaryMenu/index.js +1 -2
  201. package/esm/layout/Menu/SecondaryMenuItem/index.js +1 -2
  202. package/esm/layout/Menu/Sidemenu.stories.js +10 -7
  203. package/esm/layout/Submenu/Submenu.stories.js +1 -2
  204. package/esm/layout/Submenu/SubmenuItem/index.js +23 -19
  205. package/esm/layout/Submenu/SubmenuLightThemeBg/index.js +1 -2
  206. package/esm/layout/Submenu/index.js +13 -10
  207. package/esm/layout/Submenu/styles.js +26 -12
  208. package/esm/shared/recharts/CustomLegend/index.js +1 -2
  209. package/esm/shared/recharts/CustomTooltip/index.js +1 -2
  210. package/esm/utils/dates.js +5 -0
  211. package/esm/utils/format.js +4 -8
  212. package/jest.config.js +5 -0
  213. package/lib/app-shell/index.js +1 -2
  214. package/lib/app-shell/theme.d.ts +1 -1
  215. package/lib/app-shell/theme.d.ts.map +1 -1
  216. package/lib/core/Alert/Alert.stories.d.ts +1 -1
  217. package/lib/core/Alert/Alert.stories.d.ts.map +1 -1
  218. package/lib/core/Alert/index.js +1 -2
  219. package/lib/core/Alert/styles.d.ts +6 -6
  220. package/lib/core/AppLoader/AppLoader.stories.d.ts +1 -1
  221. package/lib/core/AppLoader/AppLoader.stories.d.ts.map +1 -1
  222. package/lib/core/AppLoader/index.js +1 -2
  223. package/lib/core/AppLoader/styles.d.ts +1 -1
  224. package/lib/core/Autocomplete/Autocomplete.stories.d.ts +0 -1
  225. package/lib/core/Autocomplete/Autocomplete.stories.d.ts.map +1 -1
  226. package/lib/core/Autocomplete/Autocomplete.stories.js +1 -2
  227. package/lib/core/Autocomplete/hooks/useAutocomplete.d.ts +0 -1
  228. package/lib/core/Autocomplete/hooks/useAutocomplete.d.ts.map +1 -1
  229. package/lib/core/Autocomplete/hooks/useHandleDimentions.d.ts +0 -1
  230. package/lib/core/Autocomplete/hooks/useHandleDimentions.d.ts.map +1 -1
  231. package/lib/core/Autocomplete/index.d.ts +1 -1
  232. package/lib/core/Autocomplete/index.d.ts.map +1 -1
  233. package/lib/core/Autocomplete/index.js +1 -3
  234. package/lib/core/Autocomplete/styles.d.ts +48 -49
  235. package/lib/core/Autocomplete/styles.d.ts.map +1 -1
  236. package/lib/core/Banner/Banner.stories.d.ts +1 -1
  237. package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
  238. package/lib/core/Banner/index.js +1 -2
  239. package/lib/core/Banner/styles.d.ts +8 -9
  240. package/lib/core/Banner/styles.d.ts.map +1 -1
  241. package/lib/core/BarAndLineComposedChart/BarAndLineComposedChart.stories.d.ts +6 -2
  242. package/lib/core/BarAndLineComposedChart/BarAndLineComposedChart.stories.d.ts.map +1 -1
  243. package/lib/core/BarAndLineComposedChart/BarAndLineComposedChart.stories.js +88 -0
  244. package/lib/core/BarAndLineComposedChart/index.d.ts +10 -1
  245. package/lib/core/BarAndLineComposedChart/index.d.ts.map +1 -1
  246. package/lib/core/BarAndLineComposedChart/index.js +19 -9
  247. package/lib/core/BarAndLineComposedChart/styles.d.ts +2 -3
  248. package/lib/core/BarAndLineComposedChart/styles.d.ts.map +1 -1
  249. package/lib/core/BarChartWithCustomizedEvent/BarChartWithCustomizedEvent.stories.d.ts +2 -2
  250. package/lib/core/BarChartWithCustomizedEvent/BarChartWithCustomizedEvent.stories.d.ts.map +1 -1
  251. package/lib/core/BarChartWithCustomizedEvent/index.js +1 -2
  252. package/lib/core/BarChartWithCustomizedEvent/styles.d.ts +2 -3
  253. package/lib/core/BarChartWithCustomizedEvent/styles.d.ts.map +1 -1
  254. package/lib/core/Box/Box.stories.d.ts +1 -1
  255. package/lib/core/Box/Box.stories.d.ts.map +1 -1
  256. package/lib/core/Box/index.d.ts +1 -1
  257. package/lib/core/Box/index.d.ts.map +1 -1
  258. package/lib/core/Box/index.js +1 -2
  259. package/lib/core/Box/styles.d.ts +39 -40
  260. package/lib/core/Box/styles.d.ts.map +1 -1
  261. package/lib/core/BoxedTable/BoxedTable.stories.d.ts +35 -14
  262. package/lib/core/BoxedTable/BoxedTable.stories.d.ts.map +1 -1
  263. package/lib/core/BoxedTable/BoxedTable.stories.js +304 -409
  264. package/lib/core/BoxedTable/DraggableRow/index.d.ts.map +1 -1
  265. package/lib/core/BoxedTable/DraggableRow/index.js +14 -17
  266. package/lib/core/BoxedTable/DraggableRow/styles.d.ts +11 -16
  267. package/lib/core/BoxedTable/DraggableRow/styles.d.ts.map +1 -1
  268. package/lib/core/BoxedTable/DraggableRow/styles.js +14 -20
  269. package/lib/core/BoxedTable/HeaderCell/styles.d.ts +2 -8
  270. package/lib/core/BoxedTable/HeaderCell/styles.d.ts.map +1 -1
  271. package/lib/core/BoxedTable/HeaderCell/styles.js +3 -3
  272. package/lib/core/BoxedTable/RowCell/index.d.ts +0 -2
  273. package/lib/core/BoxedTable/RowCell/index.d.ts.map +1 -1
  274. package/lib/core/BoxedTable/RowCell/index.js +4 -14
  275. package/lib/core/BoxedTable/RowCell/styles.d.ts +9 -7
  276. package/lib/core/BoxedTable/RowCell/styles.d.ts.map +1 -1
  277. package/lib/core/BoxedTable/RowCell/styles.js +23 -7
  278. package/lib/core/BoxedTable/TableHeader/index.d.ts.map +1 -1
  279. package/lib/core/BoxedTable/TableHeader/index.js +3 -5
  280. package/lib/core/BoxedTable/TableHeader/styles.d.ts +3 -8
  281. package/lib/core/BoxedTable/TableHeader/styles.d.ts.map +1 -1
  282. package/lib/core/BoxedTable/TableHeader/styles.js +3 -18
  283. package/lib/core/BoxedTable/TableRow/index.d.ts.map +1 -1
  284. package/lib/core/BoxedTable/TableRow/index.js +9 -7
  285. package/lib/core/BoxedTable/TableRow/styles.d.ts +17 -22
  286. package/lib/core/BoxedTable/TableRow/styles.d.ts.map +1 -1
  287. package/lib/core/BoxedTable/TableRow/styles.js +24 -30
  288. package/lib/core/BoxedTable/index.d.ts +0 -6
  289. package/lib/core/BoxedTable/index.d.ts.map +1 -1
  290. package/lib/core/BoxedTable/index.js +7 -19
  291. package/lib/core/BoxedTable/styles.d.ts +4 -12
  292. package/lib/core/BoxedTable/styles.d.ts.map +1 -1
  293. package/lib/core/BoxedTable/styles.js +19 -25
  294. package/lib/core/Button/Button.stories.d.ts +1 -1
  295. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  296. package/lib/core/Button/index.d.ts +31 -31
  297. package/lib/core/Button/index.d.ts.map +1 -1
  298. package/lib/core/Button/styles.d.ts +18 -19
  299. package/lib/core/Button/styles.d.ts.map +1 -1
  300. package/lib/core/Calendar/Calendar.stories.d.ts +2 -2
  301. package/lib/core/Calendar/Calendar.stories.d.ts.map +1 -1
  302. package/lib/core/Calendar/CalendarEvent/index.d.ts.map +1 -1
  303. package/lib/core/Calendar/CalendarEvent/index.js +3 -3
  304. package/lib/core/Calendar/CalendarEvent/styles.d.ts +8 -9
  305. package/lib/core/Calendar/CalendarEvent/styles.d.ts.map +1 -1
  306. package/lib/core/Calendar/CalendarSmallEvent/index.js +1 -2
  307. package/lib/core/Calendar/CalendarSmallEvent/styles.d.ts +8 -9
  308. package/lib/core/Calendar/CalendarSmallEvent/styles.d.ts.map +1 -1
  309. package/lib/core/Calendar/index.d.ts.map +1 -1
  310. package/lib/core/Calendar/index.js +5 -4
  311. package/lib/core/Calendar/styles.d.ts +9 -10
  312. package/lib/core/Calendar/styles.d.ts.map +1 -1
  313. package/lib/core/Card/Card.stories.d.ts +1 -2
  314. package/lib/core/Card/Card.stories.d.ts.map +1 -1
  315. package/lib/core/Card/Card.stories.js +1 -2
  316. package/lib/core/Card/index.d.ts +12 -12
  317. package/lib/core/Card/index.d.ts.map +1 -1
  318. package/lib/core/Card/styles.d.ts +11 -11
  319. package/lib/core/Checkbox/Checkbox.stories.d.ts +1 -1
  320. package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
  321. package/lib/core/Checkbox/index.js +1 -2
  322. package/lib/core/Checkbox/styles.d.ts +5 -5
  323. package/lib/core/Checkbox/styles.d.ts.map +1 -1
  324. package/lib/core/CollapseList/CollapseList.stories.d.ts +1 -1
  325. package/lib/core/CollapseList/CollapseList.stories.d.ts.map +1 -1
  326. package/lib/core/CollapseList/CollapseList.stories.js +1 -2
  327. package/lib/core/CollapseList/Item.js +1 -3
  328. package/lib/core/CollapseList/styles.d.ts +32 -33
  329. package/lib/core/CollapseList/styles.d.ts.map +1 -1
  330. package/lib/core/CommentsTimeline/CommentLine/index.js +1 -2
  331. package/lib/core/CommentsTimeline/CommentLine/styles.d.ts +6 -7
  332. package/lib/core/CommentsTimeline/CommentLine/styles.d.ts.map +1 -1
  333. package/lib/core/CommentsTimeline/CommentsTimeline.stories.d.ts +1 -1
  334. package/lib/core/CommentsTimeline/CommentsTimeline.stories.d.ts.map +1 -1
  335. package/lib/core/CommentsTimeline/CommentsTimeline.stories.js +1 -2
  336. package/lib/core/CommentsTimeline/styles.d.ts +2 -3
  337. package/lib/core/CommentsTimeline/styles.d.ts.map +1 -1
  338. package/lib/core/CustomText/CustomText.stories.d.ts +1 -1
  339. package/lib/core/CustomText/CustomText.stories.d.ts.map +1 -1
  340. package/lib/core/CustomText/styles.d.ts +3 -4
  341. package/lib/core/CustomText/styles.d.ts.map +1 -1
  342. package/lib/core/Datepicker/Datepicker.stories.d.ts +1 -2
  343. package/lib/core/Datepicker/Datepicker.stories.d.ts.map +1 -1
  344. package/lib/core/Datepicker/index.d.ts +4 -4
  345. package/lib/core/Datepicker/index.d.ts.map +1 -1
  346. package/lib/core/Datepicker/index.js +16 -7
  347. package/lib/core/Datepicker/styles.d.ts +14 -15
  348. package/lib/core/Datepicker/styles.d.ts.map +1 -1
  349. package/lib/core/Datepicker/styles.js +13 -13
  350. package/lib/core/DatepickerRange/DatepickerRange.stories.d.ts +1 -1
  351. package/lib/core/DatepickerRange/DatepickerRange.stories.d.ts.map +1 -1
  352. package/lib/core/DatepickerRange/index.d.ts +0 -1
  353. package/lib/core/DatepickerRange/index.d.ts.map +1 -1
  354. package/lib/core/DatepickerRange/index.js +2 -2
  355. package/lib/core/DatepickerRange/styles.d.ts +14 -15
  356. package/lib/core/DatepickerRange/styles.d.ts.map +1 -1
  357. package/lib/core/Divider/styles.d.ts +5 -5
  358. package/lib/core/Dropdown/Dropdown.stories.d.ts +1 -1
  359. package/lib/core/Dropdown/Dropdown.stories.d.ts.map +1 -1
  360. package/lib/core/Dropdown/index.js +1 -2
  361. package/lib/core/Dropdown/styles.d.ts +3 -3
  362. package/lib/core/DropdownMenu/DropdownMenu.stories.d.ts +1 -1
  363. package/lib/core/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
  364. package/lib/core/DropdownMenu/DropdownMenu.stories.js +1 -3
  365. package/lib/core/DropdownMenu/index.js +1 -2
  366. package/lib/core/DropdownMenu/styles.d.ts +5 -6
  367. package/lib/core/DropdownMenu/styles.d.ts.map +1 -1
  368. package/lib/core/Editor/Editor.stories.d.ts +1 -1
  369. package/lib/core/Editor/Editor.stories.d.ts.map +1 -1
  370. package/lib/core/Editor/Editor.stories.js +1 -0
  371. package/lib/core/Editor/index.d.ts +3 -0
  372. package/lib/core/Editor/index.d.ts.map +1 -1
  373. package/lib/core/Editor/index.js +5 -3
  374. package/lib/core/Editor/styles.d.ts +6 -7
  375. package/lib/core/Editor/styles.d.ts.map +1 -1
  376. package/lib/core/EditorQuillReact/EditorQuillReact.stories.d.ts +8 -0
  377. package/lib/core/EditorQuillReact/EditorQuillReact.stories.d.ts.map +1 -0
  378. package/lib/core/EditorQuillReact/EditorQuillReact.stories.js +59 -0
  379. package/lib/core/EditorQuillReact/IndentAttributor.d.ts +7 -0
  380. package/lib/core/EditorQuillReact/IndentAttributor.d.ts.map +1 -0
  381. package/lib/core/EditorQuillReact/IndentAttributor.js +15 -0
  382. package/lib/core/EditorQuillReact/config.d.ts +30 -0
  383. package/lib/core/EditorQuillReact/config.d.ts.map +1 -0
  384. package/lib/core/EditorQuillReact/config.js +31 -0
  385. package/lib/core/EditorQuillReact/index.d.ts +23 -0
  386. package/lib/core/EditorQuillReact/index.d.ts.map +1 -0
  387. package/lib/core/EditorQuillReact/index.js +103 -0
  388. package/lib/core/EditorQuillReact/styles.d.ts +13 -0
  389. package/lib/core/EditorQuillReact/styles.d.ts.map +1 -0
  390. package/lib/core/EditorQuillReact/styles.js +34 -0
  391. package/lib/core/FileInput/FileInput.stories.d.ts +1 -1
  392. package/lib/core/FileInput/FileInput.stories.d.ts.map +1 -1
  393. package/lib/core/FileInput/index.js +1 -2
  394. package/lib/core/FileInput/styles.d.ts +55 -56
  395. package/lib/core/FileInput/styles.d.ts.map +1 -1
  396. package/lib/core/GoogleButton/GoogleButton.stories.d.ts +1 -1
  397. package/lib/core/GoogleButton/GoogleButton.stories.d.ts.map +1 -1
  398. package/lib/core/GoogleButton/index.d.ts +1 -1
  399. package/lib/core/GoogleButton/index.d.ts.map +1 -1
  400. package/lib/core/GoogleButton/index.js +2 -2
  401. package/lib/core/GoogleButton/styles.d.ts +2 -3
  402. package/lib/core/GoogleButton/styles.d.ts.map +1 -1
  403. package/lib/core/Header/Header.stories.d.ts +1 -1
  404. package/lib/core/Header/Header.stories.d.ts.map +1 -1
  405. package/lib/core/Header/styles.d.ts +7 -7
  406. package/lib/core/HighlightText/HighlightText.stories.d.ts +1 -1
  407. package/lib/core/HighlightText/HighlightText.stories.d.ts.map +1 -1
  408. package/lib/core/HighlightText/styles.d.ts +2 -3
  409. package/lib/core/HighlightText/styles.d.ts.map +1 -1
  410. package/lib/core/Html/Html.stories.d.ts +1 -1
  411. package/lib/core/Html/Html.stories.d.ts.map +1 -1
  412. package/lib/core/Html/Html.stories.js +2 -3
  413. package/lib/core/Html/index.d.ts +1 -0
  414. package/lib/core/Html/index.d.ts.map +1 -1
  415. package/lib/core/Html/index.js +3 -1
  416. package/lib/core/Html/styles.d.ts +6 -6
  417. package/lib/core/Html/styles.d.ts.map +1 -1
  418. package/lib/core/Html/styles.js +6 -9
  419. package/lib/core/Image/Image.stories.d.ts +1 -1
  420. package/lib/core/Image/Image.stories.d.ts.map +1 -1
  421. package/lib/core/Image/styles.d.ts +6 -6
  422. package/lib/core/ImagePicker/IconWithBackground.d.ts +1 -1
  423. package/lib/core/ImagePicker/IconWithBackground.d.ts.map +1 -1
  424. package/lib/core/ImagePicker/ImagePicker.stories.d.ts +1 -1
  425. package/lib/core/ImagePicker/ImagePicker.stories.d.ts.map +1 -1
  426. package/lib/core/ImagePicker/UploadButton.d.ts +1 -1
  427. package/lib/core/ImagePicker/UploadButton.d.ts.map +1 -1
  428. package/lib/core/ImagePicker/UploadButton.js +1 -2
  429. package/lib/core/ImagePicker/index.d.ts +1 -1
  430. package/lib/core/ImagePicker/index.d.ts.map +1 -1
  431. package/lib/core/ImagePicker/index.js +1 -2
  432. package/lib/core/ImagePicker/styles.d.ts +11 -11
  433. package/lib/core/ImageViewer/ImageViewer.stories.d.ts +1 -1
  434. package/lib/core/ImageViewer/ImageViewer.stories.d.ts.map +1 -1
  435. package/lib/core/ImageViewer/index.d.ts +1 -1
  436. package/lib/core/ImageViewer/index.d.ts.map +1 -1
  437. package/lib/core/ImageViewer/index.js +1 -2
  438. package/lib/core/ImageViewer/styles.d.ts +6 -6
  439. package/lib/core/InfoButton/InfoButton.stories.d.ts +1 -1
  440. package/lib/core/InfoButton/InfoButton.stories.d.ts.map +1 -1
  441. package/lib/core/InfoButton/index.js +1 -2
  442. package/lib/core/InfoButton/styles.d.ts +41 -42
  443. package/lib/core/InfoButton/styles.d.ts.map +1 -1
  444. package/lib/core/Input/Input.stories.d.ts +3 -1
  445. package/lib/core/Input/Input.stories.d.ts.map +1 -1
  446. package/lib/core/Input/Input.stories.js +20 -1
  447. package/lib/core/Input/index.d.ts +8 -2
  448. package/lib/core/Input/index.d.ts.map +1 -1
  449. package/lib/core/Input/index.js +45 -27
  450. package/lib/core/Input/styles.d.ts +19 -17
  451. package/lib/core/Input/styles.d.ts.map +1 -1
  452. package/lib/core/Input/styles.js +20 -18
  453. package/lib/core/Link/Link.stories.d.ts +1 -1
  454. package/lib/core/Link/Link.stories.d.ts.map +1 -1
  455. package/lib/core/Link/index.d.ts +1 -1
  456. package/lib/core/Link/index.d.ts.map +1 -1
  457. package/lib/core/Link/index.js +1 -2
  458. package/lib/core/Link/styles.d.ts +11 -12
  459. package/lib/core/Link/styles.d.ts.map +1 -1
  460. package/lib/core/List/Item.d.ts +1 -1
  461. package/lib/core/List/Item.d.ts.map +1 -1
  462. package/lib/core/List/Item.js +5 -5
  463. package/lib/core/List/List.stories.d.ts +1 -1
  464. package/lib/core/List/List.stories.d.ts.map +1 -1
  465. package/lib/core/List/List.stories.js +1 -3
  466. package/lib/core/List/index.d.ts +1 -1
  467. package/lib/core/List/index.d.ts.map +1 -1
  468. package/lib/core/List/index.js +1 -1
  469. package/lib/core/List/styles.d.ts +11 -11
  470. package/lib/core/ListPager/ListPager.stories.d.ts +1 -1
  471. package/lib/core/ListPager/ListPager.stories.d.ts.map +1 -1
  472. package/lib/core/ListPager/index.d.ts +0 -2
  473. package/lib/core/ListPager/index.d.ts.map +1 -1
  474. package/lib/core/ListPager/index.js +3 -22
  475. package/lib/core/ListPager/styles.d.ts +5 -6
  476. package/lib/core/ListPager/styles.d.ts.map +1 -1
  477. package/lib/core/MediaCarousel/MediaCarousel.stories.d.ts +1 -1
  478. package/lib/core/MediaCarousel/MediaCarousel.stories.d.ts.map +1 -1
  479. package/lib/core/MediaCarousel/index.d.ts +5 -3
  480. package/lib/core/MediaCarousel/index.d.ts.map +1 -1
  481. package/lib/core/MediaCarousel/index.js +7 -4
  482. package/lib/core/MediaCarousel/styles.d.ts +11 -12
  483. package/lib/core/MediaCarousel/styles.d.ts.map +1 -1
  484. package/lib/core/Modal/ActionButtons/index.d.ts +1 -1
  485. package/lib/core/Modal/ActionButtons/index.d.ts.map +1 -1
  486. package/lib/core/Modal/Modal.stories.d.ts +1 -1
  487. package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
  488. package/lib/core/Modal/Modal.stories.js +1 -2
  489. package/lib/core/Modal/index.d.ts +5 -3
  490. package/lib/core/Modal/index.d.ts.map +1 -1
  491. package/lib/core/Modal/index.js +8 -3
  492. package/lib/core/Modal/styles.d.ts +14 -15
  493. package/lib/core/Modal/styles.d.ts.map +1 -1
  494. package/lib/core/Modal/styles.js +8 -8
  495. package/lib/core/NoticeCard/NoticeCard.stories.d.ts +2 -2
  496. package/lib/core/NoticeCard/NoticeCard.stories.d.ts.map +1 -1
  497. package/lib/core/NoticeCard/NoticeCard.stories.js +1 -4
  498. package/lib/core/NoticeCard/index.d.ts.map +1 -1
  499. package/lib/core/NoticeCard/index.js +1 -5
  500. package/lib/core/NoticeCard/models.d.ts +0 -2
  501. package/lib/core/NoticeCard/models.d.ts.map +1 -1
  502. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/index.js +1 -2
  503. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.d.ts +6 -7
  504. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentBlock/styles.d.ts.map +1 -1
  505. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.d.ts +2 -3
  506. package/lib/core/NoticeCard/privateComponents/NoticeAttachmentList/styles.d.ts.map +1 -1
  507. package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/index.d.ts +0 -2
  508. package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/index.d.ts.map +1 -1
  509. package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/index.js +4 -16
  510. package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.d.ts +6 -7
  511. package/lib/core/NoticeCard/privateComponents/NoticeMetaInfo/styles.d.ts.map +1 -1
  512. package/lib/core/NoticeCard/styles.d.ts +8 -9
  513. package/lib/core/NoticeCard/styles.d.ts.map +1 -1
  514. package/lib/core/NotificationCounter/NotificationCounter.stories.d.ts +2 -2
  515. package/lib/core/NotificationCounter/NotificationCounter.stories.d.ts.map +1 -1
  516. package/lib/core/NotificationCounter/styles.d.ts +1 -1
  517. package/lib/core/NotificationCounter/styles.d.ts.map +1 -1
  518. package/lib/core/NotificationCounter/styles.js +1 -1
  519. package/lib/core/NotificationsMenu/NotificationRow/index.d.ts +1 -1
  520. package/lib/core/NotificationsMenu/NotificationRow/index.d.ts.map +1 -1
  521. package/lib/core/NotificationsMenu/NotificationRow/index.js +2 -2
  522. package/lib/core/NotificationsMenu/NotificationRow/styles.d.ts +36 -37
  523. package/lib/core/NotificationsMenu/NotificationRow/styles.d.ts.map +1 -1
  524. package/lib/core/NotificationsMenu/NotificationsMenu.stories.d.ts +1 -1
  525. package/lib/core/NotificationsMenu/NotificationsMenu.stories.d.ts.map +1 -1
  526. package/lib/core/NotificationsMenu/NotificationsMenu.stories.js +4 -4
  527. package/lib/core/NotificationsMenu/index.d.ts +4 -2
  528. package/lib/core/NotificationsMenu/index.d.ts.map +1 -1
  529. package/lib/core/NotificationsMenu/index.js +34 -17
  530. package/lib/core/NotificationsMenu/styles.d.ts +7 -8
  531. package/lib/core/NotificationsMenu/styles.d.ts.map +1 -1
  532. package/lib/core/NotificationsMenu/styles.js +3 -3
  533. package/lib/core/PieChart/ActiveShape/index.js +1 -2
  534. package/lib/core/PieChart/PieChart.stories.d.ts +2 -2
  535. package/lib/core/PieChart/PieChart.stories.d.ts.map +1 -1
  536. package/lib/core/PieChart/index.d.ts +2 -0
  537. package/lib/core/PieChart/index.d.ts.map +1 -1
  538. package/lib/core/PieChart/index.js +9 -4
  539. package/lib/core/PieChart/renderTextContent/index.d.ts +1 -1
  540. package/lib/core/PieChart/renderTextContent/index.d.ts.map +1 -1
  541. package/lib/core/PieChart/renderTextContent/index.js +3 -2
  542. package/lib/core/PieChart/styles.d.ts +4 -5
  543. package/lib/core/PieChart/styles.d.ts.map +1 -1
  544. package/lib/core/PreemptionCard/PreemptionCard.stories.d.ts +6 -7
  545. package/lib/core/PreemptionCard/PreemptionCard.stories.d.ts.map +1 -1
  546. package/lib/core/PreemptionCard/PreemptionCard.stories.js +12 -9
  547. package/lib/core/PreemptionCard/index.d.ts.map +1 -1
  548. package/lib/core/PreemptionCard/index.js +3 -4
  549. package/lib/core/PreemptionCard/styles.d.ts +4 -5
  550. package/lib/core/PreemptionCard/styles.d.ts.map +1 -1
  551. package/lib/core/PreemptionCardLoading/PreemptionCardLoading.stories.d.ts +2 -2
  552. package/lib/core/PreemptionCardLoading/PreemptionCardLoading.stories.d.ts.map +1 -1
  553. package/lib/core/PreemptionCardLoading/index.js +1 -2
  554. package/lib/core/PreemptionCardLoading/styles.d.ts +6 -7
  555. package/lib/core/PreemptionCardLoading/styles.d.ts.map +1 -1
  556. package/lib/core/QuillEditor/Attributors/IndentAttributor.d.ts +7 -0
  557. package/lib/core/QuillEditor/Attributors/IndentAttributor.d.ts.map +1 -0
  558. package/lib/core/QuillEditor/Attributors/IndentAttributor.js +15 -0
  559. package/lib/core/QuillEditor/Attributors/ListContainer.d.ts +10 -0
  560. package/lib/core/QuillEditor/Attributors/ListContainer.d.ts.map +1 -0
  561. package/lib/core/QuillEditor/Attributors/ListContainer.js +20 -0
  562. package/lib/core/QuillEditor/Attributors/ListItem.d.ts +10 -0
  563. package/lib/core/QuillEditor/Attributors/ListItem.d.ts.map +1 -0
  564. package/lib/core/QuillEditor/Attributors/ListItem.js +24 -0
  565. package/lib/core/QuillEditor/QuillEditor.stories.d.ts +28 -0
  566. package/lib/core/QuillEditor/QuillEditor.stories.d.ts.map +1 -0
  567. package/lib/core/QuillEditor/QuillEditor.stories.js +56 -0
  568. package/lib/core/QuillEditor/classes/IndentAttributor.d.ts +7 -0
  569. package/lib/core/QuillEditor/classes/IndentAttributor.d.ts.map +1 -0
  570. package/lib/core/QuillEditor/classes/IndentAttributor.js +15 -0
  571. package/lib/core/QuillEditor/classes/LinkSanitizer.d.ts +6 -0
  572. package/lib/core/QuillEditor/classes/LinkSanitizer.d.ts.map +1 -0
  573. package/lib/core/QuillEditor/classes/LinkSanitizer.js +21 -0
  574. package/lib/core/QuillEditor/classes/ListContainer.d.ts +10 -0
  575. package/lib/core/QuillEditor/classes/ListContainer.d.ts.map +1 -0
  576. package/lib/core/QuillEditor/classes/ListContainer.js +20 -0
  577. package/lib/core/QuillEditor/classes/ListItem.d.ts +10 -0
  578. package/lib/core/QuillEditor/classes/ListItem.d.ts.map +1 -0
  579. package/lib/core/QuillEditor/classes/ListItem.js +24 -0
  580. package/lib/core/QuillEditor/config.d.ts +19 -0
  581. package/lib/core/QuillEditor/config.d.ts.map +1 -0
  582. package/lib/core/QuillEditor/config.js +28 -0
  583. package/lib/core/QuillEditor/index.d.ts +5 -0
  584. package/lib/core/QuillEditor/index.d.ts.map +1 -0
  585. package/lib/core/QuillEditor/index.js +278 -0
  586. package/lib/core/QuillEditor/models.d.ts +78 -0
  587. package/lib/core/QuillEditor/models.d.ts.map +1 -0
  588. package/lib/core/QuillEditor/styles.d.ts +13 -0
  589. package/lib/core/QuillEditor/styles.d.ts.map +1 -0
  590. package/lib/core/QuillEditor/styles.js +34 -0
  591. package/lib/core/Radio/Radio.stories.d.ts +2 -2
  592. package/lib/core/Radio/Radio.stories.d.ts.map +1 -1
  593. package/lib/core/Radio/Radio.stories.js +1 -2
  594. package/lib/core/Radio/index.d.ts +1 -1
  595. package/lib/core/Radio/index.d.ts.map +1 -1
  596. package/lib/core/Radio/index.js +1 -2
  597. package/lib/core/Radio/styles.d.ts +4 -4
  598. package/lib/core/SearchFilter/SearchFilter.stories.d.ts +2 -2
  599. package/lib/core/SearchFilter/SearchFilter.stories.d.ts.map +1 -1
  600. package/lib/core/SearchFilter/SearchFilter.stories.js +1 -2
  601. package/lib/core/SearchFilter/index.d.ts.map +1 -1
  602. package/lib/core/SearchFilter/index.js +4 -4
  603. package/lib/core/SearchFilter/styles.d.ts +14 -15
  604. package/lib/core/SearchFilter/styles.d.ts.map +1 -1
  605. package/lib/core/SearchSelect/SearchSelect.stories.d.ts +2 -2
  606. package/lib/core/SearchSelect/SearchSelect.stories.d.ts.map +1 -1
  607. package/lib/core/SearchSelect/hooks/useSelectSearch.d.ts +0 -1
  608. package/lib/core/SearchSelect/hooks/useSelectSearch.d.ts.map +1 -1
  609. package/lib/core/SearchSelect/index.js +1 -3
  610. package/lib/core/SearchSelect/styles.d.ts +9 -10
  611. package/lib/core/SearchSelect/styles.d.ts.map +1 -1
  612. package/lib/core/Select/Select.stories.d.ts +2 -2
  613. package/lib/core/Select/Select.stories.d.ts.map +1 -1
  614. package/lib/core/Select/Select.stories.js +1 -2
  615. package/lib/core/Select/index.js +1 -2
  616. package/lib/core/Select/styles.d.ts +19 -20
  617. package/lib/core/Select/styles.d.ts.map +1 -1
  618. package/lib/core/SimpleBarChart/SimpleBarChart.stories.d.ts +2 -2
  619. package/lib/core/SimpleBarChart/SimpleBarChart.stories.d.ts.map +1 -1
  620. package/lib/core/SimpleBarChart/index.js +1 -2
  621. package/lib/core/SimpleBarChart/styles.d.ts +2 -3
  622. package/lib/core/SimpleBarChart/styles.d.ts.map +1 -1
  623. package/lib/core/SimpleLineChart/SimpleLineChart.stories.d.ts +2 -2
  624. package/lib/core/SimpleLineChart/SimpleLineChart.stories.d.ts.map +1 -1
  625. package/lib/core/SimpleLineChart/index.js +1 -2
  626. package/lib/core/SimpleLineChart/styles.d.ts +2 -3
  627. package/lib/core/SimpleLineChart/styles.d.ts.map +1 -1
  628. package/lib/core/Skeleton/Skeleton.stories.d.ts +1 -1
  629. package/lib/core/Skeleton/Skeleton.stories.d.ts.map +1 -1
  630. package/lib/core/Skeleton/styles.d.ts +9 -10
  631. package/lib/core/Skeleton/styles.d.ts.map +1 -1
  632. package/lib/core/Spinner/Spinner.stories.d.ts +2 -2
  633. package/lib/core/Spinner/Spinner.stories.d.ts.map +1 -1
  634. package/lib/core/Spinner/styles.d.ts +5 -5
  635. package/lib/core/Spinner/styles.d.ts.map +1 -1
  636. package/lib/core/Stepper/MobileStep/index.d.ts +8 -0
  637. package/lib/core/Stepper/MobileStep/index.d.ts.map +1 -0
  638. package/lib/core/Stepper/MobileStep/index.js +33 -0
  639. package/lib/core/Stepper/MobileStep/styles.d.ts +31 -0
  640. package/lib/core/Stepper/MobileStep/styles.d.ts.map +1 -0
  641. package/lib/core/Stepper/MobileStep/styles.js +90 -0
  642. package/lib/core/Stepper/Step/index.d.ts +12 -0
  643. package/lib/core/Stepper/Step/index.d.ts.map +1 -0
  644. package/lib/core/Stepper/Step/index.js +83 -0
  645. package/lib/core/Stepper/Step/styles.d.ts +27 -0
  646. package/lib/core/Stepper/Step/styles.d.ts.map +1 -0
  647. package/lib/core/Stepper/Step/styles.js +49 -0
  648. package/lib/core/Stepper/Stepper.stories.d.ts +7 -0
  649. package/lib/core/Stepper/Stepper.stories.d.ts.map +1 -0
  650. package/lib/core/Stepper/Stepper.stories.js +29 -0
  651. package/lib/core/Stepper/index.d.ts +18 -0
  652. package/lib/core/Stepper/index.d.ts.map +1 -0
  653. package/lib/core/Stepper/index.js +47 -0
  654. package/lib/core/Stepper/styles.d.ts +13 -0
  655. package/lib/core/Stepper/styles.d.ts.map +1 -0
  656. package/lib/core/Stepper/styles.js +24 -0
  657. package/lib/core/TabBar/TabBar.stories.d.ts +2 -2
  658. package/lib/core/TabBar/TabBar.stories.d.ts.map +1 -1
  659. package/lib/core/TabBar/TabBar.stories.js +1 -2
  660. package/lib/core/TabBar/TabItem/index.js +2 -2
  661. package/lib/core/TabBar/TabItem/styles.d.ts +2 -3
  662. package/lib/core/TabBar/TabItem/styles.d.ts.map +1 -1
  663. package/lib/core/TabBar/styles.d.ts +2 -3
  664. package/lib/core/TabBar/styles.d.ts.map +1 -1
  665. package/lib/core/TabNav/TabNav.stories.d.ts +2 -2
  666. package/lib/core/TabNav/TabNav.stories.d.ts.map +1 -1
  667. package/lib/core/TabNav/TabNav.stories.js +1 -2
  668. package/lib/core/TabNav/TabNavItem/index.js +1 -2
  669. package/lib/core/TabNav/TabNavItem/styles.d.ts +10 -11
  670. package/lib/core/TabNav/TabNavItem/styles.d.ts.map +1 -1
  671. package/lib/core/TabNav/index.js +1 -2
  672. package/lib/core/TabNav/styles.d.ts +12 -13
  673. package/lib/core/TabNav/styles.d.ts.map +1 -1
  674. package/lib/core/TabNav/utils/useContainerDimensions.d.ts.map +1 -1
  675. package/lib/core/Table/Cell.d.ts +1 -1
  676. package/lib/core/Table/Cell.d.ts.map +1 -1
  677. package/lib/core/Table/Row.d.ts +1 -1
  678. package/lib/core/Table/Row.d.ts.map +1 -1
  679. package/lib/core/Table/Table.stories.d.ts +2 -2
  680. package/lib/core/Table/Table.stories.d.ts.map +1 -1
  681. package/lib/core/Table/Table.stories.js +1 -2
  682. package/lib/core/Table/index.d.ts +1 -1
  683. package/lib/core/Table/index.d.ts.map +1 -1
  684. package/lib/core/Table/styles.d.ts +18 -19
  685. package/lib/core/Table/styles.d.ts.map +1 -1
  686. package/lib/core/Tag/Tag.stories.d.ts +1 -1
  687. package/lib/core/Tag/Tag.stories.d.ts.map +1 -1
  688. package/lib/core/Tag/index.js +1 -3
  689. package/lib/core/Tag/styles.d.ts +13 -13
  690. package/lib/core/Text/Text.stories.d.ts +1 -1
  691. package/lib/core/Text/Text.stories.d.ts.map +1 -1
  692. package/lib/core/Text/index.d.ts +1 -1
  693. package/lib/core/Text/index.d.ts.map +1 -1
  694. package/lib/core/Text/styles.d.ts +15 -15
  695. package/lib/core/Textarea/Textarea.stories.d.ts +1 -1
  696. package/lib/core/Textarea/Textarea.stories.d.ts.map +1 -1
  697. package/lib/core/Textarea/index.d.ts +3 -5
  698. package/lib/core/Textarea/index.d.ts.map +1 -1
  699. package/lib/core/Textarea/index.js +6 -5
  700. package/lib/core/Textarea/styles.d.ts +8 -9
  701. package/lib/core/Textarea/styles.d.ts.map +1 -1
  702. package/lib/core/Timeline/Timeline.stories.d.ts +2 -2
  703. package/lib/core/Timeline/Timeline.stories.d.ts.map +1 -1
  704. package/lib/core/Timeline/Timeline.stories.js +1 -2
  705. package/lib/core/Timeline/TimelineStep/index.js +1 -2
  706. package/lib/core/Timeline/TimelineStep/styles.d.ts +7 -8
  707. package/lib/core/Timeline/TimelineStep/styles.d.ts.map +1 -1
  708. package/lib/core/Timeline/styles.d.ts +2 -3
  709. package/lib/core/Timeline/styles.d.ts.map +1 -1
  710. package/lib/core/Timepicker/Timepicker.stories.d.ts +2 -2
  711. package/lib/core/Timepicker/Timepicker.stories.d.ts.map +1 -1
  712. package/lib/core/Timepicker/index.d.ts +1 -1
  713. package/lib/core/Timepicker/index.d.ts.map +1 -1
  714. package/lib/core/Timepicker/index.js +1 -2
  715. package/lib/core/Timepicker/styles.d.ts +9 -10
  716. package/lib/core/Timepicker/styles.d.ts.map +1 -1
  717. package/lib/core/Tooltip/Tooptip.stories.d.ts +2 -2
  718. package/lib/core/Tooltip/Tooptip.stories.d.ts.map +1 -1
  719. package/lib/core/Tooltip/index.js +1 -2
  720. package/lib/core/Tooltip/styles.d.ts +2 -2
  721. package/lib/core/UserMenu/UserMenu.stories.d.ts +2 -2
  722. package/lib/core/UserMenu/UserMenu.stories.d.ts.map +1 -1
  723. package/lib/core/UserMenu/UserMenu.stories.js +1 -2
  724. package/lib/core/UserMenu/index.js +1 -2
  725. package/lib/core/UserMenu/styles.d.ts +14 -15
  726. package/lib/core/UserMenu/styles.d.ts.map +1 -1
  727. package/lib/core/Video/Video.stories.d.ts +2 -1
  728. package/lib/core/Video/Video.stories.d.ts.map +1 -1
  729. package/lib/core/Video/index.d.ts +0 -1
  730. package/lib/core/Video/index.d.ts.map +1 -1
  731. package/lib/core/Video/styles.d.ts +2 -3
  732. package/lib/core/Video/styles.d.ts.map +1 -1
  733. package/lib/core/YearWheel/YearWheel.stories.d.ts +2 -2
  734. package/lib/core/YearWheel/YearWheel.stories.d.ts.map +1 -1
  735. package/lib/core/YearWheel/index.js +1 -2
  736. package/lib/core/YearWheel/styles.d.ts +4 -5
  737. package/lib/core/YearWheel/styles.d.ts.map +1 -1
  738. package/lib/core/private/ButtonOrLink.d.ts +18 -18
  739. package/lib/core/private/ButtonOrLink.d.ts.map +1 -1
  740. package/lib/core/private/ButtonOrLink.js +1 -2
  741. package/lib/core/private/preemption.d.ts.map +1 -1
  742. package/lib/core/private/preemption.js +5 -1
  743. package/lib/globals/styles/styles.d.ts +1 -1
  744. package/lib/globals/validation/regularExpressions.js +1 -1
  745. package/lib/hooks/useIsMobile.d.ts +1 -1
  746. package/lib/hooks/useIsMobile.d.ts.map +1 -1
  747. package/lib/icons/General/IconAuditorFilled.js +1 -2
  748. package/lib/icons/General/IconAuditorOutline.js +1 -2
  749. package/lib/icons/General/IconCamera.js +1 -2
  750. package/lib/icons/General/IconCases.js +1 -2
  751. package/lib/icons/General/IconDocument.js +1 -2
  752. package/lib/icons/General/IconDocumentFilled.js +1 -2
  753. package/lib/icons/General/IconEmailMarkAsRead.d.ts +3 -0
  754. package/lib/icons/General/IconEmailMarkAsRead.d.ts.map +1 -0
  755. package/lib/icons/General/IconEmailMarkAsRead.js +12 -0
  756. package/lib/icons/General/IconFillOut.js +1 -2
  757. package/lib/icons/General/IconHomeFilled.js +1 -2
  758. package/lib/icons/General/IconHomeOutline.js +1 -2
  759. package/lib/icons/General/IconHouseBlockFilled.js +1 -2
  760. package/lib/icons/General/IconHouseBlockOutline.js +1 -2
  761. package/lib/icons/General/IconImage.js +1 -2
  762. package/lib/icons/General/IconJanitorFilled.js +1 -2
  763. package/lib/icons/General/IconJanitorOutline.js +1 -2
  764. package/lib/icons/General/IconLeafFilled.js +1 -2
  765. package/lib/icons/General/IconLeafOutline.js +1 -2
  766. package/lib/icons/General/IconRearrange.js +1 -2
  767. package/lib/icons/Icon.stories.d.ts +0 -1
  768. package/lib/icons/Icon.stories.d.ts.map +1 -1
  769. package/lib/icons/Icon.stories.js +4 -2
  770. package/lib/icons/Logos/IconBankAxept.js +1 -2
  771. package/lib/icons/Logos/IconGmail.js +1 -2
  772. package/lib/icons/Logos/IconMasterCard.js +1 -2
  773. package/lib/icons/Logos/IconOffice365.js +1 -2
  774. package/lib/icons/Logos/IconVisa.js +1 -2
  775. package/lib/icons/withIcon.d.ts +2 -2
  776. package/lib/icons/withIcon.d.ts.map +1 -1
  777. package/lib/illustrations/Backgrounds/IllustrationHousesBackground.js +1 -2
  778. package/lib/illustrations/Backgrounds/IllustrationHousesBackgroundWithComposition.js +1 -2
  779. package/lib/illustrations/General/IllustrationBudget.d.ts +4 -0
  780. package/lib/illustrations/General/IllustrationBudget.d.ts.map +1 -0
  781. package/lib/illustrations/General/IllustrationBudget.js +185 -0
  782. package/lib/illustrations/General/IllustrationError.js +1 -2
  783. package/lib/illustrations/General/IllustrationErrorGeneric.js +1 -2
  784. package/lib/illustrations/General/IllustrationHighHouse.js +1 -2
  785. package/lib/illustrations/General/IllustrationHighHouseComposition.js +1 -2
  786. package/lib/illustrations/General/IllustrationHouse.js +1 -2
  787. package/lib/illustrations/General/IllustrationHouseComposition.js +1 -2
  788. package/lib/illustrations/General/IllustrationHouseMissing.js +1 -2
  789. package/lib/illustrations/General/IllustrationLowHouse.js +1 -2
  790. package/lib/illustrations/General/IllustrationLowHouseComposition.js +1 -2
  791. package/lib/illustrations/General/IllustrationPaperCompleted.js +1 -2
  792. package/lib/illustrations/General/IllustrationPaperMissing.js +1 -2
  793. package/lib/illustrations/General/IllustrationSemiDetachedHouse.js +1 -2
  794. package/lib/illustrations/General/IllustrationSemiDetachedHouseComposition.js +1 -2
  795. package/lib/illustrations/General/IllustrationServiceMessage.d.ts +5 -0
  796. package/lib/illustrations/General/IllustrationServiceMessage.d.ts.map +1 -0
  797. package/lib/illustrations/General/IllustrationServiceMessage.js +40 -0
  798. package/lib/illustrations/General/IllustrationSmallHouse.js +1 -2
  799. package/lib/illustrations/General/IllustrationSmallHouseComposition.js +1 -2
  800. package/lib/illustrations/General/IllustrationTechninalDifficulties.d.ts +5 -0
  801. package/lib/illustrations/General/IllustrationTechninalDifficulties.d.ts.map +1 -0
  802. package/lib/illustrations/General/IllustrationTechninalDifficulties.js +119 -0
  803. package/lib/illustrations/General/IllustrationTerraceBlock.js +1 -2
  804. package/lib/illustrations/General/IllustrationTerraceBlockComposition.js +1 -2
  805. package/lib/illustrations/General/IllustrationTownHouse.js +1 -2
  806. package/lib/illustrations/General/IllustrationTownHouseComposition.js +1 -2
  807. package/lib/illustrations/Illustration.stories.d.ts +0 -1
  808. package/lib/illustrations/Illustration.stories.d.ts.map +1 -1
  809. package/lib/illustrations/Illustration.stories.js +18 -3
  810. package/lib/illustrations/MySite/IllustrationMySiteAssociation.js +1 -2
  811. package/lib/illustrations/MySite/IllustrationMySiteBenefits.d.ts +4 -0
  812. package/lib/illustrations/MySite/IllustrationMySiteBenefits.d.ts.map +1 -0
  813. package/lib/illustrations/MySite/IllustrationMySiteBenefits.js +180 -0
  814. package/lib/illustrations/MySite/IllustrationMySiteBuilding.js +1 -2
  815. package/lib/illustrations/MySite/IllustrationMySiteCoffeeBook.js +1 -2
  816. package/lib/illustrations/MySite/IllustrationMySiteComputer.js +1 -2
  817. package/lib/illustrations/MySite/IllustrationMySiteCooperative.js +1 -2
  818. package/lib/illustrations/MySite/IllustrationMySiteDashboard.js +1 -2
  819. package/lib/illustrations/MySite/IllustrationMySiteGift.js +1 -2
  820. package/lib/illustrations/MySite/IllustrationMySiteLetterSent.d.ts +4 -0
  821. package/lib/illustrations/MySite/IllustrationMySiteLetterSent.d.ts.map +1 -0
  822. package/lib/illustrations/MySite/IllustrationMySiteLetterSent.js +77 -0
  823. package/lib/illustrations/MySite/IllustrationMySiteMailbox.js +1 -2
  824. package/lib/illustrations/MySite/IllustrationMySitePapers.js +1 -2
  825. package/lib/illustrations/MySite/IllustrationMySitePiggyBank.js +1 -2
  826. package/lib/illustrations/MySite/IllustrationMySiteTransfer.js +1 -2
  827. package/lib/illustrations/styles.d.ts +2 -2
  828. package/lib/illustrations/withIllustration.d.ts +2 -2
  829. package/lib/illustrations/withIllustration.d.ts.map +1 -1
  830. package/lib/index.d.ts +9 -2
  831. package/lib/index.d.ts.map +1 -1
  832. package/lib/index.js +9 -2
  833. package/lib/layout/Footer/Footer.stories.d.ts +2 -2
  834. package/lib/layout/Footer/Footer.stories.d.ts.map +1 -1
  835. package/lib/layout/Footer/Footer.stories.js +1 -2
  836. package/lib/layout/Footer/FooterButton/styles.d.ts +27 -28
  837. package/lib/layout/Footer/FooterButton/styles.d.ts.map +1 -1
  838. package/lib/layout/Footer/FooterCol/styles.d.ts +2 -3
  839. package/lib/layout/Footer/FooterCol/styles.d.ts.map +1 -1
  840. package/lib/layout/Footer/FooterGroup/styles.d.ts +2 -3
  841. package/lib/layout/Footer/FooterGroup/styles.d.ts.map +1 -1
  842. package/lib/layout/Footer/FooterLabel/styles.d.ts +2 -3
  843. package/lib/layout/Footer/FooterLabel/styles.d.ts.map +1 -1
  844. package/lib/layout/Footer/FooterLink/styles.d.ts +27 -28
  845. package/lib/layout/Footer/FooterLink/styles.d.ts.map +1 -1
  846. package/lib/layout/Footer/styles.d.ts +3 -4
  847. package/lib/layout/Footer/styles.d.ts.map +1 -1
  848. package/lib/layout/Layout/Layout.stories.d.ts +2 -2
  849. package/lib/layout/Layout/Layout.stories.d.ts.map +1 -1
  850. package/lib/layout/Layout/styles.d.ts +3 -4
  851. package/lib/layout/Layout/styles.d.ts.map +1 -1
  852. package/lib/layout/LayoutShell/LayoutShell.stories.d.ts +2 -2
  853. package/lib/layout/LayoutShell/LayoutShell.stories.d.ts.map +1 -1
  854. package/lib/layout/LayoutShell/index.js +1 -2
  855. package/lib/layout/LayoutShell/styles.d.ts +9 -10
  856. package/lib/layout/LayoutShell/styles.d.ts.map +1 -1
  857. package/lib/layout/Menu/AppPicker/index.d.ts +2 -2
  858. package/lib/layout/Menu/AppPicker/index.d.ts.map +1 -1
  859. package/lib/layout/Menu/AppPicker/index.js +3 -4
  860. package/lib/layout/Menu/AppPicker/styles.d.ts +2 -3
  861. package/lib/layout/Menu/AppPicker/styles.d.ts.map +1 -1
  862. package/lib/layout/Menu/AppPicker/styles.js +7 -7
  863. package/lib/layout/Menu/MainMenu/index.d.ts +1 -1
  864. package/lib/layout/Menu/MainMenu/index.d.ts.map +1 -1
  865. package/lib/layout/Menu/MainMenu/index.js +10 -6
  866. package/lib/layout/Menu/MainMenu/styles.d.ts +5 -2
  867. package/lib/layout/Menu/MainMenu/styles.d.ts.map +1 -1
  868. package/lib/layout/Menu/MainMenu/styles.js +8 -2
  869. package/lib/layout/Menu/MenuItem/index.d.ts +1 -1
  870. package/lib/layout/Menu/MenuItem/index.d.ts.map +1 -1
  871. package/lib/layout/Menu/MenuItem/index.js +23 -19
  872. package/lib/layout/Menu/MenuItem/styles.d.ts +4 -1
  873. package/lib/layout/Menu/MenuItem/styles.d.ts.map +1 -1
  874. package/lib/layout/Menu/MenuItem/styles.js +17 -2
  875. package/lib/layout/Menu/MenuSpacer/styles.d.ts +2 -3
  876. package/lib/layout/Menu/MenuSpacer/styles.d.ts.map +1 -1
  877. package/lib/layout/Menu/MenuTop/index.js +1 -2
  878. package/lib/layout/Menu/MenuTop/styles.d.ts +29 -30
  879. package/lib/layout/Menu/MenuTop/styles.d.ts.map +1 -1
  880. package/lib/layout/Menu/MenuTop/styles.js +3 -3
  881. package/lib/layout/Menu/SecondaryMenu/index.js +1 -2
  882. package/lib/layout/Menu/SecondaryMenu/styles.d.ts +4 -5
  883. package/lib/layout/Menu/SecondaryMenu/styles.d.ts.map +1 -1
  884. package/lib/layout/Menu/SecondaryMenuItem/index.js +1 -2
  885. package/lib/layout/Menu/Sidemenu.stories.d.ts +2 -2
  886. package/lib/layout/Menu/Sidemenu.stories.d.ts.map +1 -1
  887. package/lib/layout/Menu/Sidemenu.stories.js +10 -7
  888. package/lib/layout/Menu/styles.d.ts +2 -3
  889. package/lib/layout/Menu/styles.d.ts.map +1 -1
  890. package/lib/layout/Submenu/Submenu.stories.d.ts +2 -2
  891. package/lib/layout/Submenu/Submenu.stories.d.ts.map +1 -1
  892. package/lib/layout/Submenu/Submenu.stories.js +1 -2
  893. package/lib/layout/Submenu/SubmenuItem/index.d.ts.map +1 -1
  894. package/lib/layout/Submenu/SubmenuItem/index.js +23 -19
  895. package/lib/layout/Submenu/SubmenuItem/styles.d.ts +2 -3
  896. package/lib/layout/Submenu/SubmenuItem/styles.d.ts.map +1 -1
  897. package/lib/layout/Submenu/SubmenuLightThemeBg/index.js +1 -2
  898. package/lib/layout/Submenu/index.d.ts.map +1 -1
  899. package/lib/layout/Submenu/index.js +13 -10
  900. package/lib/layout/Submenu/styles.d.ts +20 -17
  901. package/lib/layout/Submenu/styles.d.ts.map +1 -1
  902. package/lib/layout/Submenu/styles.js +26 -12
  903. package/lib/layout/Topbar/Topbar.stories.d.ts +2 -2
  904. package/lib/layout/Topbar/Topbar.stories.d.ts.map +1 -1
  905. package/lib/layout/Topbar/styles.d.ts +0 -1
  906. package/lib/layout/Topbar/styles.d.ts.map +1 -1
  907. package/lib/shared/components/VisuallyHidden/index.d.ts +2 -3
  908. package/lib/shared/components/VisuallyHidden/index.d.ts.map +1 -1
  909. package/lib/shared/recharts/CustomLegend/index.js +1 -2
  910. package/lib/shared/recharts/CustomLegend/styles.d.ts +5 -6
  911. package/lib/shared/recharts/CustomLegend/styles.d.ts.map +1 -1
  912. package/lib/shared/recharts/CustomTooltip/index.js +1 -2
  913. package/lib/shared/recharts/CustomTooltip/styles.d.ts +6 -7
  914. package/lib/shared/recharts/CustomTooltip/styles.d.ts.map +1 -1
  915. package/lib/utils/accountNumber.d.ts +1 -1
  916. package/lib/utils/accountNumber.d.ts.map +1 -1
  917. package/lib/utils/dates.d.ts +3 -2
  918. package/lib/utils/dates.d.ts.map +1 -1
  919. package/lib/utils/dates.js +5 -0
  920. package/lib/utils/file.d.ts +1 -1
  921. package/lib/utils/file.d.ts.map +1 -1
  922. package/lib/utils/format.d.ts +4 -4
  923. package/lib/utils/format.d.ts.map +1 -1
  924. package/lib/utils/format.js +4 -8
  925. package/lib/utils/removeFocusOnMouseUp.d.ts +0 -1
  926. package/lib/utils/removeFocusOnMouseUp.d.ts.map +1 -1
  927. package/lib/utils/time.d.ts +6 -6
  928. package/lib/utils/time.d.ts.map +1 -1
  929. package/lib/utils/useSnorreTheme.d.ts +1 -1
  930. package/lib/utils/useSnorreTheme.d.ts.map +1 -1
  931. package/package.json +7 -2
  932. package/theme-bbls.js +2 -2
  933. package/lib/shared/types/Accessibility.d.ts +0 -55
  934. package/lib/shared/types/Accessibility.d.ts.map +0 -1
  935. package/lib/shared/types/Accessibility.js +0 -1
  936. package/lib/shared/types/LoadedType.d.ts +0 -7
  937. package/lib/shared/types/LoadedType.d.ts.map +0 -1
  938. package/lib/shared/types/LoadedType.js +0 -1
  939. /package/esm/{shared/types/Accessibility.js → core/QuillEditor/models.js} +0 -0
  940. /package/{esm/shared/types/LoadedType.js → lib/core/QuillEditor/models.js} +0 -0
@@ -1,35 +1,23 @@
1
1
  import React from 'react';
2
- import { IconUser, IconHistory, getFormattedDate, IconFile, IconCalendar, Text } from '../../../..';
2
+ import { IconHistory, getFormattedDate, IconFile, IconCalendar, Text } from '../../../..';
3
3
  import { ddmmyyyy } from '../../../../utils/dates';
4
4
  import { NoticeMetaWrapper, Group, Div } from './styles';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
6
  const NoticeMetaInfo = ({
8
- name,
9
7
  created,
10
8
  updated,
11
9
  hasAttachment,
12
- hasEvent,
13
- updatedBy
10
+ hasEvent
14
11
  }) => {
15
12
  return /*#__PURE__*/_jsxs(NoticeMetaWrapper, {
16
13
  children: [/*#__PURE__*/_jsxs(Group, {
17
- children: [/*#__PURE__*/_jsx(IconUser, {
18
- primary: true
19
- }), /*#__PURE__*/_jsx(Text, {
20
- semibold: true,
21
- size: "14px",
22
- primary: true,
23
- children: name
24
- })]
25
- }), /*#__PURE__*/_jsxs(Group, {
26
14
  children: [/*#__PURE__*/_jsx(IconHistory, {
27
15
  primary: true
28
16
  }), /*#__PURE__*/_jsxs(Text, {
29
17
  semibold: true,
30
18
  size: "14px",
31
19
  primary: true,
32
- children: [created && getFormattedDate(created, ddmmyyyy), updated && updated !== created && ` (Oppdatert: ${getFormattedDate(updated, ddmmyyyy)}${updatedBy ? ` av ${updatedBy})` : ')'} `]
20
+ children: [created && getFormattedDate(created, ddmmyyyy), updated && updated !== created && ` (Oppdatert: ${getFormattedDate(updated, ddmmyyyy)})`]
33
21
  })]
34
22
  }), (hasAttachment || hasEvent) && /*#__PURE__*/_jsxs(Group, {
35
23
  children: [hasAttachment && /*#__PURE__*/_jsx(Div, {
@@ -10,5 +10,5 @@ const getFontSize = digits => {
10
10
  }
11
11
  };
12
12
  export const styles = {
13
- default: (theme, amountDigits) => /*#__PURE__*/css("display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:", theme.primary5darker, ";overflow:hidden;color:white;font-size:", getFontSize(amountDigits), ";line-height:23px;width:23px;height:23px;" + (process.env.NODE_ENV === "production" ? "" : ";label:default;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL05vdGlmaWNhdGlvbkNvdW50ZXIvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWUyRCIsImZpbGUiOiIuLi8uLi8uLi9zcmMvcGFja2FnZXMvY29yZS9Ob3RpZmljYXRpb25Db3VudGVyL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuaW1wb3J0IHsgSUFwcFRoZW1lIH0gZnJvbSAnLi4vLi4vYXBwLXNoZWxsL3RoZW1lJ1xuXG5jb25zdCBnZXRGb250U2l6ZSA9IChkaWdpdHM/OiBudW1iZXIpID0+IHtcbiAgc3dpdGNoIChkaWdpdHMpIHtcbiAgICBjYXNlIDM6XG4gICAgICByZXR1cm4gJzEycHgnXG4gICAgY2FzZSA0OlxuICAgICAgcmV0dXJuICcxMHB4J1xuICAgIGRlZmF1bHQ6XG4gICAgICByZXR1cm4gJzE0cHgnXG4gIH1cbn1cblxuZXhwb3J0IGNvbnN0IHN0eWxlcyA9IHtcbiAgZGVmYXVsdDogKHRoZW1lOiBJQXBwVGhlbWUsIGFtb3VudERpZ2l0cz86IG51bWJlcikgPT4gY3NzYFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICBib3JkZXItcmFkaXVzOiA1MCU7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogJHt0aGVtZS5wcmltYXJ5NWRhcmtlcn07XG4gICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICBjb2xvcjogd2hpdGU7XG4gICAgZm9udC1zaXplOiAke2dldEZvbnRTaXplKGFtb3VudERpZ2l0cyl9O1xuICAgIGxpbmUtaGVpZ2h0OiAyM3B4O1xuICAgIHdpZHRoOiAyM3B4O1xuICAgIGhlaWdodDogMjNweDtcbiAgYCxcbn1cbiJdfQ== */")
13
+ default: (theme, amountDigits) => /*#__PURE__*/css("display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:", theme.alert, ";overflow:hidden;color:white;font-size:", getFontSize(amountDigits), ";line-height:23px;width:23px;height:23px;" + (process.env.NODE_ENV === "production" ? "" : ";label:default;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL05vdGlmaWNhdGlvbkNvdW50ZXIvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWUyRCIsImZpbGUiOiIuLi8uLi8uLi9zcmMvcGFja2FnZXMvY29yZS9Ob3RpZmljYXRpb25Db3VudGVyL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuaW1wb3J0IHsgSUFwcFRoZW1lIH0gZnJvbSAnLi4vLi4vYXBwLXNoZWxsL3RoZW1lJ1xuXG5jb25zdCBnZXRGb250U2l6ZSA9IChkaWdpdHM/OiBudW1iZXIpID0+IHtcbiAgc3dpdGNoIChkaWdpdHMpIHtcbiAgICBjYXNlIDM6XG4gICAgICByZXR1cm4gJzEycHgnXG4gICAgY2FzZSA0OlxuICAgICAgcmV0dXJuICcxMHB4J1xuICAgIGRlZmF1bHQ6XG4gICAgICByZXR1cm4gJzE0cHgnXG4gIH1cbn1cblxuZXhwb3J0IGNvbnN0IHN0eWxlcyA9IHtcbiAgZGVmYXVsdDogKHRoZW1lOiBJQXBwVGhlbWUsIGFtb3VudERpZ2l0cz86IG51bWJlcikgPT4gY3NzYFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICBib3JkZXItcmFkaXVzOiA1MCU7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogJHt0aGVtZS5hbGVydH07XG4gICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICBjb2xvcjogd2hpdGU7XG4gICAgZm9udC1zaXplOiAke2dldEZvbnRTaXplKGFtb3VudERpZ2l0cyl9O1xuICAgIGxpbmUtaGVpZ2h0OiAyM3B4O1xuICAgIHdpZHRoOiAyM3B4O1xuICAgIGhlaWdodDogMjNweDtcbiAgYCxcbn1cbiJdfQ== */")
14
14
  };
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
2
  import Text from '../../Text';
3
3
  import { StyledButton, TextContent, Wrapper } from './styles';
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- import { jsxs as _jsxs } from "react/jsx-runtime";
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
5
  const NotificationRow = ({
7
6
  title,
8
7
  description,
@@ -15,6 +14,7 @@ const NotificationRow = ({
15
14
  onClick: onClick,
16
15
  trackingName: "Felles",
17
16
  trackingEvent: "Klikk varselelement",
17
+ "aria-label": `Varsel om {title}`,
18
18
  children: /*#__PURE__*/_jsxs(Wrapper, {
19
19
  hideBorderBottom: hideBorderBottom,
20
20
  children: [icon, /*#__PURE__*/_jsxs(TextContent, {
@@ -1,9 +1,7 @@
1
1
  import NotificationsMenu from '.';
2
2
  import NotificationRow from './NotificationRow';
3
3
  import IconAttachment from '../../icons/General/IconAttachment';
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- import { Fragment as _Fragment } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
4
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
7
5
  const meta = {
8
6
  title: 'Core/NotificationsMenu',
9
7
  component: NotificationsMenu
@@ -14,13 +12,15 @@ export const Default = {
14
12
  args: {
15
13
  unreadCount: 0,
16
14
  onBellClick: () => console.log('bell click'),
17
- children: 'Her kan man legge hva man vil'
15
+ children: 'Her kan man legge hva man vil',
16
+ animationActive: false
18
17
  }
19
18
  };
20
19
  export const UnreadNotification = {
21
20
  name: 'Unread notification',
22
21
  args: {
23
22
  unreadCount: 5,
23
+ animationActive: true,
24
24
  onBellClick: () => console.log('bell click'),
25
25
  children: /*#__PURE__*/_jsxs(_Fragment, {
26
26
  children: [/*#__PURE__*/_jsx(NotificationRow, {
@@ -4,13 +4,14 @@ import Button from '../Button';
4
4
  import IconBellOutline from '../../icons/General/IconBellOutline';
5
5
  import IconBellFilled from '../../icons/General/IconBellFilled';
6
6
  import Text from '../Text';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
+ import { motion } from 'framer-motion';
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
  const NotificationsMenu = ({
10
10
  unreadCount,
11
11
  triggerClose,
12
12
  radius,
13
13
  children,
14
+ animationActive = false,
14
15
  onBellClick
15
16
  }) => {
16
17
  const ref = /*#__PURE__*/createRef();
@@ -43,22 +44,38 @@ const NotificationsMenu = ({
43
44
  setOpen(!open);
44
45
  onBellClick && onBellClick();
45
46
  };
47
+ const variant = {
48
+ initial: {
49
+ rotate: [0, 10, 0],
50
+ transition: {
51
+ duration: 0.2,
52
+ repeat: Infinity
53
+ }
54
+ },
55
+ none: {}
56
+ };
46
57
  return /*#__PURE__*/_jsxs(NotificationsWrapper, {
47
- children: [/*#__PURE__*/_jsxs(Button, {
48
- nostyle: true,
49
- onClick: onClick,
50
- focusable: true,
51
- trackingName: "Felles",
52
- trackingEvent: "Toggle varselmeny",
53
- children: [hasUnread ? /*#__PURE__*/_jsx(IconBellOutline, {
54
- secondary: true
55
- }) : /*#__PURE__*/_jsx(IconBellFilled, {}), hasUnread && /*#__PURE__*/_jsx(UnreadMark, {
56
- children: /*#__PURE__*/_jsx(Text, {
57
- size: "12px",
58
- color: "white",
59
- children: unreadCount <= maxUnreadCount ? unreadCount : maxUnreadCount
60
- })
61
- })]
58
+ children: [/*#__PURE__*/_jsx(motion.div, {
59
+ animate: animationActive ? 'initial' : 'none',
60
+ variants: variant,
61
+ children: /*#__PURE__*/_jsxs(Button, {
62
+ nostyle: true,
63
+ onClick: onClick,
64
+ focusable: true,
65
+ "aria-expanded": open,
66
+ "aria-label": hasUnread ? 'Uleste notifikasjoner' : 'Ingen uleste notifikasjoner',
67
+ trackingName: "Felles",
68
+ trackingEvent: "Toggle varselmeny",
69
+ children: [hasUnread ? /*#__PURE__*/_jsx(IconBellOutline, {
70
+ secondary: true
71
+ }) : /*#__PURE__*/_jsx(IconBellFilled, {}), hasUnread && /*#__PURE__*/_jsx(UnreadMark, {
72
+ children: /*#__PURE__*/_jsx(Text, {
73
+ size: "12px",
74
+ color: "white",
75
+ children: unreadCount <= maxUnreadCount ? unreadCount : maxUnreadCount
76
+ })
77
+ })]
78
+ })
62
79
  }), open && /*#__PURE__*/_jsx("span", {
63
80
  ref: ref,
64
81
  children: /*#__PURE__*/_jsx(NotificationsContent, {
@@ -11,7 +11,7 @@ export const NotificationsWrapper = /*#__PURE__*/_styled("div", process.env.NODE
11
11
  } : {
12
12
  name: "1ivkyd7",
13
13
  styles: "position:relative;display:flex;flex-direction:row;&>svg{margin-left:0.5em;}",
14
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL05vdGlmaWNhdGlvbnNNZW51L3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFOEMiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL3BhY2thZ2VzL2NvcmUvTm90aWZpY2F0aW9uc01lbnUvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5cbmV4cG9ydCBjb25zdCBOb3RpZmljYXRpb25zV3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcblxuICBkaXNwbGF5OiBmbGV4O1xuICBmbGV4LWRpcmVjdGlvbjogcm93O1xuXG4gICYgPiBzdmcge1xuICAgIG1hcmdpbi1sZWZ0OiAwLjVlbTtcbiAgfVxuYFxuXG5leHBvcnQgY29uc3QgTm90aWZpY2F0aW9uc0NvbnRlbnQgPSBzdHlsZWQuZGl2PHsgJHJhZGl1cz86IHN0cmluZyB9PmBcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTtcbiAgcmlnaHQ6IDA7XG4gIHRvcDogMzBweDtcblxuICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICB3aWR0aDogMzAwcHg7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNjZmQ5ZWE7XG5cbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZmZmZjtcbiAgYm94LXNoYWRvdzogMCAxMHB4IDE1cHggMCByZ2JhKDAsIDAsIDAsIDAuMSk7XG4gIGJvcmRlci1yYWRpdXM6ICR7KHsgJHJhZGl1cyB9KSA9PiAkcmFkaXVzIHx8ICcxMHB4J307XG4gIG92ZXJmbG93OiBoaWRkZW47XG4gIHBhZGRpbmc6IDAuNWVtIDFlbTtcbmBcblxuZXhwb3J0IGNvbnN0IFVucmVhZE1hcmsgPSBzdHlsZWQuZGl2YFxuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICB0b3A6IC02cHg7XG4gIGxlZnQ6IDEwcHg7XG4gIGJhY2tncm91bmQ6ICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUucHJpbWFyeTVkYXJrZXJ9O1xuICBoZWlnaHQ6IDE4cHg7XG4gIHdpZHRoOiAxOHB4O1xuICBib3JkZXItcmFkaXVzOiAxMHB4O1xuYFxuIl19 */",
14
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL05vdGlmaWNhdGlvbnNNZW51L3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFOEMiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL3BhY2thZ2VzL2NvcmUvTm90aWZpY2F0aW9uc01lbnUvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5cbmV4cG9ydCBjb25zdCBOb3RpZmljYXRpb25zV3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcblxuICBkaXNwbGF5OiBmbGV4O1xuICBmbGV4LWRpcmVjdGlvbjogcm93O1xuXG4gICYgPiBzdmcge1xuICAgIG1hcmdpbi1sZWZ0OiAwLjVlbTtcbiAgfVxuYFxuXG5leHBvcnQgY29uc3QgTm90aWZpY2F0aW9uc0NvbnRlbnQgPSBzdHlsZWQuZGl2PHsgJHJhZGl1cz86IHN0cmluZyB9PmBcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTtcbiAgcmlnaHQ6IDA7XG4gIHRvcDogMzBweDtcblxuICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICB3aWR0aDogMzAwcHg7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNjZmQ5ZWE7XG5cbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZmZmZjtcbiAgYm94LXNoYWRvdzogMCAxMHB4IDE1cHggMCByZ2JhKDAsIDAsIDAsIDAuMSk7XG4gIGJvcmRlci1yYWRpdXM6ICR7KHsgJHJhZGl1cyB9KSA9PiAkcmFkaXVzIHx8ICcxMHB4J307XG4gIG92ZXJmbG93OiBoaWRkZW47XG4gIHBhZGRpbmc6IDAuNWVtIDFlbTtcbmBcblxuZXhwb3J0IGNvbnN0IFVucmVhZE1hcmsgPSBzdHlsZWQuZGl2YFxuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICB0b3A6IC02cHg7XG4gIGxlZnQ6IDEwcHg7XG4gIGJhY2tncm91bmQ6ICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUuYWxlcnR9O1xuICBoZWlnaHQ6IDE4cHg7XG4gIHdpZHRoOiAxOHB4O1xuICBib3JkZXItcmFkaXVzOiAxMHB4O1xuYFxuIl19 */",
15
15
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
16
16
  });
17
17
  export const NotificationsContent = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
@@ -21,7 +21,7 @@ export const NotificationsContent = /*#__PURE__*/_styled("div", process.env.NODE
21
21
  label: "NotificationsContent"
22
22
  })("position:absolute;background-color:white;right:0;top:30px;box-sizing:border-box;width:300px;border:1px solid #cfd9ea;background-color:#ffffff;box-shadow:0 10px 15px 0 rgba(0, 0, 0, 0.1);border-radius:", ({
23
23
  $radius
24
- }) => $radius || '10px', ";overflow:hidden;padding:0.5em 1em;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL05vdGlmaWNhdGlvbnNNZW51L3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFhb0UiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL3BhY2thZ2VzL2NvcmUvTm90aWZpY2F0aW9uc01lbnUvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5cbmV4cG9ydCBjb25zdCBOb3RpZmljYXRpb25zV3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcblxuICBkaXNwbGF5OiBmbGV4O1xuICBmbGV4LWRpcmVjdGlvbjogcm93O1xuXG4gICYgPiBzdmcge1xuICAgIG1hcmdpbi1sZWZ0OiAwLjVlbTtcbiAgfVxuYFxuXG5leHBvcnQgY29uc3QgTm90aWZpY2F0aW9uc0NvbnRlbnQgPSBzdHlsZWQuZGl2PHsgJHJhZGl1cz86IHN0cmluZyB9PmBcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTtcbiAgcmlnaHQ6IDA7XG4gIHRvcDogMzBweDtcblxuICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICB3aWR0aDogMzAwcHg7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNjZmQ5ZWE7XG5cbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZmZmZjtcbiAgYm94LXNoYWRvdzogMCAxMHB4IDE1cHggMCByZ2JhKDAsIDAsIDAsIDAuMSk7XG4gIGJvcmRlci1yYWRpdXM6ICR7KHsgJHJhZGl1cyB9KSA9PiAkcmFkaXVzIHx8ICcxMHB4J307XG4gIG92ZXJmbG93OiBoaWRkZW47XG4gIHBhZGRpbmc6IDAuNWVtIDFlbTtcbmBcblxuZXhwb3J0IGNvbnN0IFVucmVhZE1hcmsgPSBzdHlsZWQuZGl2YFxuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICB0b3A6IC02cHg7XG4gIGxlZnQ6IDEwcHg7XG4gIGJhY2tncm91bmQ6ICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUucHJpbWFyeTVkYXJrZXJ9O1xuICBoZWlnaHQ6IDE4cHg7XG4gIHdpZHRoOiAxOHB4O1xuICBib3JkZXItcmFkaXVzOiAxMHB4O1xuYFxuIl19 */"));
24
+ }) => $radius || '10px', ";overflow:hidden;padding:0.5em 1em;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL05vdGlmaWNhdGlvbnNNZW51L3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFhb0UiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL3BhY2thZ2VzL2NvcmUvTm90aWZpY2F0aW9uc01lbnUvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5cbmV4cG9ydCBjb25zdCBOb3RpZmljYXRpb25zV3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcblxuICBkaXNwbGF5OiBmbGV4O1xuICBmbGV4LWRpcmVjdGlvbjogcm93O1xuXG4gICYgPiBzdmcge1xuICAgIG1hcmdpbi1sZWZ0OiAwLjVlbTtcbiAgfVxuYFxuXG5leHBvcnQgY29uc3QgTm90aWZpY2F0aW9uc0NvbnRlbnQgPSBzdHlsZWQuZGl2PHsgJHJhZGl1cz86IHN0cmluZyB9PmBcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTtcbiAgcmlnaHQ6IDA7XG4gIHRvcDogMzBweDtcblxuICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICB3aWR0aDogMzAwcHg7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNjZmQ5ZWE7XG5cbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZmZmZjtcbiAgYm94LXNoYWRvdzogMCAxMHB4IDE1cHggMCByZ2JhKDAsIDAsIDAsIDAuMSk7XG4gIGJvcmRlci1yYWRpdXM6ICR7KHsgJHJhZGl1cyB9KSA9PiAkcmFkaXVzIHx8ICcxMHB4J307XG4gIG92ZXJmbG93OiBoaWRkZW47XG4gIHBhZGRpbmc6IDAuNWVtIDFlbTtcbmBcblxuZXhwb3J0IGNvbnN0IFVucmVhZE1hcmsgPSBzdHlsZWQuZGl2YFxuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICB0b3A6IC02cHg7XG4gIGxlZnQ6IDEwcHg7XG4gIGJhY2tncm91bmQ6ICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUuYWxlcnR9O1xuICBoZWlnaHQ6IDE4cHg7XG4gIHdpZHRoOiAxOHB4O1xuICBib3JkZXItcmFkaXVzOiAxMHB4O1xuYFxuIl19 */"));
25
25
  export const UnreadMark = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
26
26
  target: "ebh5fga0"
27
27
  } : {
@@ -29,4 +29,4 @@ export const UnreadMark = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "
29
29
  label: "UnreadMark"
30
30
  })("position:absolute;display:flex;align-items:center;justify-content:center;top:-6px;left:10px;background:", ({
31
31
  theme
32
- }) => theme.primary5darker, ";height:18px;width:18px;border-radius:10px;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL05vdGlmaWNhdGlvbnNNZW51L3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE4Qm9DIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL05vdGlmaWNhdGlvbnNNZW51L3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuXG5leHBvcnQgY29uc3QgTm90aWZpY2F0aW9uc1dyYXBwZXIgPSBzdHlsZWQuZGl2YFxuICBwb3NpdGlvbjogcmVsYXRpdmU7XG5cbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IHJvdztcblxuICAmID4gc3ZnIHtcbiAgICBtYXJnaW4tbGVmdDogMC41ZW07XG4gIH1cbmBcblxuZXhwb3J0IGNvbnN0IE5vdGlmaWNhdGlvbnNDb250ZW50ID0gc3R5bGVkLmRpdjx7ICRyYWRpdXM/OiBzdHJpbmcgfT5gXG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgYmFja2dyb3VuZC1jb2xvcjogd2hpdGU7XG4gIHJpZ2h0OiAwO1xuICB0b3A6IDMwcHg7XG5cbiAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgd2lkdGg6IDMwMHB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjY2ZkOWVhO1xuXG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmZmZmY7XG4gIGJveC1zaGFkb3c6IDAgMTBweCAxNXB4IDAgcmdiYSgwLCAwLCAwLCAwLjEpO1xuICBib3JkZXItcmFkaXVzOiAkeyh7ICRyYWRpdXMgfSkgPT4gJHJhZGl1cyB8fCAnMTBweCd9O1xuICBvdmVyZmxvdzogaGlkZGVuO1xuICBwYWRkaW5nOiAwLjVlbSAxZW07XG5gXG5cbmV4cG9ydCBjb25zdCBVbnJlYWRNYXJrID0gc3R5bGVkLmRpdmBcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgdG9wOiAtNnB4O1xuICBsZWZ0OiAxMHB4O1xuICBiYWNrZ3JvdW5kOiAkeyh7IHRoZW1lIH0pID0+IHRoZW1lLnByaW1hcnk1ZGFya2VyfTtcbiAgaGVpZ2h0OiAxOHB4O1xuICB3aWR0aDogMThweDtcbiAgYm9yZGVyLXJhZGl1czogMTBweDtcbmBcbiJdfQ== */"));
32
+ }) => theme.alert, ";height:18px;width:18px;border-radius:10px;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL05vdGlmaWNhdGlvbnNNZW51L3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE4Qm9DIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL05vdGlmaWNhdGlvbnNNZW51L3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuXG5leHBvcnQgY29uc3QgTm90aWZpY2F0aW9uc1dyYXBwZXIgPSBzdHlsZWQuZGl2YFxuICBwb3NpdGlvbjogcmVsYXRpdmU7XG5cbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IHJvdztcblxuICAmID4gc3ZnIHtcbiAgICBtYXJnaW4tbGVmdDogMC41ZW07XG4gIH1cbmBcblxuZXhwb3J0IGNvbnN0IE5vdGlmaWNhdGlvbnNDb250ZW50ID0gc3R5bGVkLmRpdjx7ICRyYWRpdXM/OiBzdHJpbmcgfT5gXG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgYmFja2dyb3VuZC1jb2xvcjogd2hpdGU7XG4gIHJpZ2h0OiAwO1xuICB0b3A6IDMwcHg7XG5cbiAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgd2lkdGg6IDMwMHB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjY2ZkOWVhO1xuXG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmZmZmY7XG4gIGJveC1zaGFkb3c6IDAgMTBweCAxNXB4IDAgcmdiYSgwLCAwLCAwLCAwLjEpO1xuICBib3JkZXItcmFkaXVzOiAkeyh7ICRyYWRpdXMgfSkgPT4gJHJhZGl1cyB8fCAnMTBweCd9O1xuICBvdmVyZmxvdzogaGlkZGVuO1xuICBwYWRkaW5nOiAwLjVlbSAxZW07XG5gXG5cbmV4cG9ydCBjb25zdCBVbnJlYWRNYXJrID0gc3R5bGVkLmRpdmBcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgdG9wOiAtNnB4O1xuICBsZWZ0OiAxMHB4O1xuICBiYWNrZ3JvdW5kOiAkeyh7IHRoZW1lIH0pID0+IHRoZW1lLmFsZXJ0fTtcbiAgaGVpZ2h0OiAxOHB4O1xuICB3aWR0aDogMThweDtcbiAgYm9yZGVyLXJhZGl1czogMTBweDtcbmBcbiJdfQ== */"));
@@ -2,8 +2,7 @@ import React from 'react';
2
2
  import { Sector } from 'recharts';
3
3
 
4
4
  /** Renders outer line on the pie chart */
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
6
  const ActiveShape = props => {
8
7
  const {
9
8
  cx,
@@ -4,8 +4,7 @@ import { alpha } from '../../utils/alpha';
4
4
  import ActiveShape from './ActiveShape';
5
5
  import renderTextContent from './renderTextContent';
6
6
  import { PieChartWrapper } from './styles';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
8
  const PieChart = ({
10
9
  width,
11
10
  height,
@@ -15,6 +14,8 @@ const PieChart = ({
15
14
  active,
16
15
  opacity,
17
16
  onActiveChange,
17
+ customMiddleText,
18
+ customMiddleValue,
18
19
  ...rest
19
20
  }) => {
20
21
  const [activeIndex, setActiveIndex] = useState();
@@ -37,6 +38,7 @@ const PieChart = ({
37
38
 
38
39
  /** Avoids re-renders by memoizing parameters */
39
40
  const calculateTitle = useMemo(() => {
41
+ if (customMiddleText) return customMiddleText;
40
42
  const activeItemTitle = activeIndex !== undefined ? data[activeIndex].title : defaultSubtitle;
41
43
  return subtitlePrefix ? `${subtitlePrefix} ${activeItemTitle?.toLocaleLowerCase()}` : activeItemTitle;
42
44
  }, [activeIndex, data, defaultSubtitle, subtitlePrefix]);
@@ -48,6 +50,7 @@ const PieChart = ({
48
50
  width: width,
49
51
  children: /*#__PURE__*/_jsx(ResponsiveContainer, {
50
52
  children: /*#__PURE__*/_jsx(Chart, {
53
+ "aria-label": "Pie chart",
51
54
  children: /*#__PURE__*/_jsxs(Pie, {
52
55
  isAnimationActive: false,
53
56
  data: data,
@@ -65,9 +68,11 @@ const PieChart = ({
65
68
  valueAccessor: () => {}
66
69
  // @ts-ignore
67
70
  ,
68
- content: renderTextContent(activeItemValue, calculateTitle)
71
+ content: renderTextContent(customMiddleValue || activeItemValue, calculateTitle)
69
72
  }), data.map((entry, index) => /*#__PURE__*/_jsx(Cell, {
70
- fill: hoverIndex === index || activeIndex === index ? entry.color : alpha(entry.color || '#000000', 70)
73
+ fill: hoverIndex === index || activeIndex === index ? entry.color : alpha(entry.color || '#000000', 70),
74
+ role: "presentation",
75
+ "aria-label": `${entry.title}: ${entry.value}`
71
76
  }, `cell-${index}`))]
72
77
  })
73
78
  })
@@ -2,8 +2,7 @@ import React from 'react';
2
2
  import { TextContent } from '../styles';
3
3
 
4
4
  /** Renders central text in the pie chart*/
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- import { jsxs as _jsxs } from "react/jsx-runtime";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
6
  const renderTextContent = (num, title) => props => {
8
7
  const {
9
8
  cx,
@@ -16,6 +15,8 @@ const renderTextContent = (num, title) => props => {
16
15
  y: cy,
17
16
  textAnchor: "middle",
18
17
  fill: fill,
18
+ role: "text",
19
+ "aria-label": `${title ? title : ''} ${num}`,
19
20
  children: [/*#__PURE__*/_jsx("tspan", {
20
21
  pointerEvents: "none",
21
22
  x: cx,
@@ -1,9 +1,10 @@
1
1
  import PreemptionCard from '.';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- export default {
3
+ const meta = {
4
4
  title: 'Core/PreemptionCard',
5
5
  component: PreemptionCard
6
6
  };
7
+ export default meta;
7
8
  const dummypreemption = {
8
9
  accept: null,
9
10
  advertisement: null,
@@ -18,7 +19,7 @@ const dummypreemption = {
18
19
  addedJointCost: '200.0',
19
20
  addedJointDebt: '300.0',
20
21
  askingPrice: '100000.0',
21
- fixedPrice: null,
22
+ fixedPrice: '200000.0',
22
23
  jointCosts: '0.0',
23
24
  jointDebt: '0.0',
24
25
  preemptionFee: '4300.0',
@@ -52,17 +53,19 @@ const dummypreemption = {
52
53
  telephone: '22225555',
53
54
  text: 'tilknyttet uten forvaltning',
54
55
  url: null
55
- }
56
+ },
57
+ clarificationInAdvance: true
56
58
  };
57
59
  export const Default = {
58
- render: () => /*#__PURE__*/_jsx("div", {
60
+ args: {
61
+ preemption: dummypreemption,
62
+ onClick: () => console.log('clicked preemption')
63
+ },
64
+ decorators: [Story => /*#__PURE__*/_jsx("div", {
59
65
  style: {
60
66
  maxWidth: '300px'
61
67
  },
62
- children: /*#__PURE__*/_jsx(PreemptionCard, {
63
- preemption: dummypreemption,
64
- onClick: () => console.log('clicked preemption')
65
- })
66
- }),
68
+ children: /*#__PURE__*/_jsx(Story, {})
69
+ })],
67
70
  name: 'Default'
68
71
  };
@@ -10,8 +10,7 @@ import { getAreaTextForPreemptionUnit, getMeldefristText, isDeadlineClosing } fr
10
10
  import Divider from '../Divider';
11
11
  import Header from '../Header';
12
12
  import { getPriceWithLabel, getFormattedPrice, getFormattedDate } from '../../utils/format';
13
- import { jsx as _jsx } from "@emotion/react/jsx-runtime";
14
- import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
13
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
15
14
  const PreemptionCard = ({
16
15
  preemption,
17
16
  onClick
@@ -27,7 +26,7 @@ const PreemptionCard = ({
27
26
  children: [_jsx(SvgHead, {
28
27
  css: /*#__PURE__*/_css({
29
28
  background: 'linear-gradient(' + theme.backgroundColor + ', ' + theme.backgroundColor + '), linear-gradient(' + theme.primary20opa + ', ' + theme.primary20opa + ')'
30
- }, process.env.NODE_ENV === "production" ? "" : ";label:PreemptionCard;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL1ByZWVtcHRpb25DYXJkL2luZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtQ1EiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL3BhY2thZ2VzL2NvcmUvUHJlZW1wdGlvbkNhcmQvaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3hJbXBvcnRTb3VyY2UgQGVtb3Rpb24vcmVhY3QgKi9cbmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCB7IHVzZVRoZW1lIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgeyBTdmdIZWFkLCBVbml0SW5mbywgU3R5bGVkVGFnIH0gZnJvbSAnLi9zdHlsZXMnXG5pbXBvcnQgQ2FyZCBmcm9tICcuLi9DYXJkJ1xuaW1wb3J0IFRleHQgZnJvbSAnLi4vVGV4dCdcbmltcG9ydCB7IElQcmVlbXB0aW9uIH0gZnJvbSAnLi9tb2RlbHMnXG5pbXBvcnQgVW5pdElsbHVzdHJhdGlvbiBmcm9tICcuLi9Vbml0SWxsdXN0cmF0aW9uJ1xuaW1wb3J0IHtcbiAgZ2V0QXJlYVRleHRGb3JQcmVlbXB0aW9uVW5pdCxcbiAgZ2V0TWVsZGVmcmlzdFRleHQsXG4gIGlzRGVhZGxpbmVDbG9zaW5nLFxufSBmcm9tICcuLi9wcml2YXRlL3ByZWVtcHRpb24nXG5pbXBvcnQgRGl2aWRlciBmcm9tICcuLi9EaXZpZGVyJ1xuaW1wb3J0IEhlYWRlciBmcm9tICcuLi9IZWFkZXInXG5pbXBvcnQge1xuICBnZXRQcmljZVdpdGhMYWJlbCxcbiAgZ2V0Rm9ybWF0dGVkUHJpY2UsXG4gIGdldEZvcm1hdHRlZERhdGUsXG59IGZyb20gJy4uLy4uL3V0aWxzL2Zvcm1hdCdcblxuaW50ZXJmYWNlIElQcm9wcyB7XG4gIHByZWVtcHRpb246IElQcmVlbXB0aW9uXG4gIG9uQ2xpY2s6IChpZDogc3RyaW5nKSA9PiB2b2lkXG59XG5cbmNvbnN0IFByZWVtcHRpb25DYXJkOiBSZWFjdC5GQzxJUHJvcHM+ID0gKHsgcHJlZW1wdGlvbiwgb25DbGljayB9KSA9PiB7XG4gIGNvbnN0IHRoZW1lOiBhbnkgPSB1c2VUaGVtZSgpXG5cbiAgY29uc3QgS3ZtID0gPHN1cD4yPC9zdXA+XG5cbiAgcmV0dXJuIChcbiAgICA8Q2FyZCBvbkNsaWNrPXsoKSA9PiBvbkNsaWNrKHByZWVtcHRpb24uaWQpfSB3aXRoaG92ZXIgc2hhZG93PlxuICAgICAgey8qKiBUT0RPIGNoYW5nZSB3aXRoIGNvbXBvbmVudCAqL31cbiAgICAgIDxTdmdIZWFkXG4gICAgICAgIGNzcz17e1xuICAgICAgICAgIGJhY2tncm91bmQ6XG4gICAgICAgICAgICAnbGluZWFyLWdyYWRpZW50KCcgK1xuICAgICAgICAgICAgdGhlbWUuYmFja2dyb3VuZENvbG9yICtcbiAgICAgICAgICAgICcsICcgK1xuICAgICAgICAgICAgdGhlbWUuYmFja2dyb3VuZENvbG9yICtcbiAgICAgICAgICAgICcpLCBsaW5lYXItZ3JhZGllbnQoJyArXG4gICAgICAgICAgICB0aGVtZS5wcmltYXJ5MjBvcGEgK1xuICAgICAgICAgICAgJywgJyArXG4gICAgICAgICAgICB0aGVtZS5wcmltYXJ5MjBvcGEgK1xuICAgICAgICAgICAgJyknLFxuICAgICAgICB9fVxuICAgICAgPlxuICAgICAgICA8VW5pdElsbHVzdHJhdGlvblxuICAgICAgICAgIHR5cGU9e1xuICAgICAgICAgICAgcHJlZW1wdGlvbi51bml0LmJ1aWxkaW5nPy5idWlsZGluZ0NvZGUgfHxcbiAgICAgICAgICAgIHByZWVtcHRpb24udW5pdC5idWlsZGluZ0NvZGVcbiAgICAgICAgICB9XG4gICAgICAgIC8+XG4gICAgICA8L1N2Z0hlYWQ+XG5cbiAgICAgIHsvKiogVE9ETyBjaGFuZ2Ugd2l0aCBjb21wb25lbnQgKi99XG4gICAgICA8VW5pdEluZm8+XG4gICAgICAgIDxUZXh0IHNtYWxsIHN1YnRsZT5cbiAgICAgICAgICB7Z2V0QXJlYVRleHRGb3JQcmVlbXB0aW9uVW5pdChwcmVlbXB0aW9uLnVuaXQpfSAteycgJ31cbiAgICAgICAgICB7cHJlZW1wdGlvbi51bml0LmJ1aWxkaW5nPy5idWlsZGluZ0NvZGUgfHxcbiAgICAgICAgICAgIHByZWVtcHRpb24udW5pdC5idWlsZGluZ0NvZGV9XG4gICAgICAgICAge3ByZWVtcHRpb24udW5pdC5udW1iZXJPZlJvb21zXG4gICAgICAgICAgICA/ICcgLyAnICsgcHJlZW1wdGlvbi51bml0Lm51bWJlck9mUm9vbXMgKyAnLXJvbXMnXG4gICAgICAgICAgICA6IG51bGx9XG4gICAgICAgICAge3ByZWVtcHRpb24udW5pdC5wcmltYXJ5Um9vbVxuICAgICAgICAgICAgPyAnIC8gJyArIHByZWVtcHRpb24udW5pdC5wcmltYXJ5Um9vbSArICcgbSdcbiAgICAgICAgICAgIDogbnVsbH1cbiAgICAgICAgICB7cHJlZW1wdGlvbi51bml0LnByaW1hcnlSb29tID8gS3ZtIDogbnVsbH1cbiAgICAgICAgPC9UZXh0PlxuICAgICAgICA8VGV4dCBib2xkPntwcmVlbXB0aW9uLnVuaXQuYWRkcmVzc308L1RleHQ+XG5cbiAgICAgICAgPERpdmlkZXIgLz5cblxuICAgICAgICA8SGVhZGVyIGxldmVsPXs1fT57Z2V0UHJpY2VXaXRoTGFiZWwocHJlZW1wdGlvbi5wcmljaW5nKX08L0hlYWRlcj5cbiAgICAgICAgPFRleHQgc21hbGwgc3VidGxlPlxuICAgICAgICAgIFRvdGFscHJpcyB7Z2V0Rm9ybWF0dGVkUHJpY2UocHJlZW1wdGlvbi5wcmljaW5nLnRvdGFsUHJpY2UpfVxuICAgICAgICA8L1RleHQ+XG4gICAgICAgIDxUZXh0IHNtYWxsIHN1YnRsZT5cbiAgICAgICAgICBGZWxsZXNrb3N0bmFkIHtnZXRGb3JtYXR0ZWRQcmljZShwcmVlbXB0aW9uLnByaWNpbmcuam9pbnRDb3N0cyl9XG4gICAgICAgIDwvVGV4dD5cblxuICAgICAgICA8U3R5bGVkVGFnXG4gICAgICAgICAgaW5mbz17aXNEZWFkbGluZUNsb3NpbmcocHJlZW1wdGlvbi5kZWFkbGluZSl9XG4gICAgICAgICAgbGlnaHQ9eyFpc0RlYWRsaW5lQ2xvc2luZyhwcmVlbXB0aW9uLmRlYWRsaW5lKX1cbiAgICAgICAgICB0aXRsZT17Z2V0Rm9ybWF0dGVkRGF0ZShwcmVlbXB0aW9uLmRlYWRsaW5lKX1cbiAgICAgICAgPlxuICAgICAgICAgIDxUZXh0IGV4dHJhc21hbGw+XG4gICAgICAgICAgICBNRUxERUZSSVNUOiZuYnNwO1xuICAgICAgICAgICAgPFRleHQgZXh0cmFzbWFsbCBib2xkPlxuICAgICAgICAgICAgICB7Z2V0TWVsZGVmcmlzdFRleHQocHJlZW1wdGlvbil9XG4gICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgPC9UZXh0PlxuICAgICAgICA8L1N0eWxlZFRhZz5cbiAgICAgIDwvVW5pdEluZm8+XG4gICAgPC9DYXJkPlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IFByZWVtcHRpb25DYXJkXG4iXX0= */"),
29
+ }, process.env.NODE_ENV === "production" ? "" : ";label:PreemptionCard;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL1ByZWVtcHRpb25DYXJkL2luZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtQ1EiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL3BhY2thZ2VzL2NvcmUvUHJlZW1wdGlvbkNhcmQvaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3hJbXBvcnRTb3VyY2UgQGVtb3Rpb24vcmVhY3QgKi9cbmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCB7IHVzZVRoZW1lIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgeyBTdmdIZWFkLCBVbml0SW5mbywgU3R5bGVkVGFnIH0gZnJvbSAnLi9zdHlsZXMnXG5pbXBvcnQgQ2FyZCBmcm9tICcuLi9DYXJkJ1xuaW1wb3J0IFRleHQgZnJvbSAnLi4vVGV4dCdcbmltcG9ydCB7IElQcmVlbXB0aW9uIH0gZnJvbSAnLi9tb2RlbHMnXG5pbXBvcnQgVW5pdElsbHVzdHJhdGlvbiBmcm9tICcuLi9Vbml0SWxsdXN0cmF0aW9uJ1xuaW1wb3J0IHtcbiAgZ2V0QXJlYVRleHRGb3JQcmVlbXB0aW9uVW5pdCxcbiAgZ2V0TWVsZGVmcmlzdFRleHQsXG4gIGlzRGVhZGxpbmVDbG9zaW5nLFxufSBmcm9tICcuLi9wcml2YXRlL3ByZWVtcHRpb24nXG5pbXBvcnQgRGl2aWRlciBmcm9tICcuLi9EaXZpZGVyJ1xuaW1wb3J0IEhlYWRlciBmcm9tICcuLi9IZWFkZXInXG5pbXBvcnQge1xuICBnZXRQcmljZVdpdGhMYWJlbCxcbiAgZ2V0Rm9ybWF0dGVkUHJpY2UsXG4gIGdldEZvcm1hdHRlZERhdGUsXG59IGZyb20gJy4uLy4uL3V0aWxzL2Zvcm1hdCdcblxuaW50ZXJmYWNlIElQcm9wcyB7XG4gIHByZWVtcHRpb246IElQcmVlbXB0aW9uXG4gIG9uQ2xpY2s6IChpZDogc3RyaW5nKSA9PiB2b2lkXG59XG5cbmNvbnN0IFByZWVtcHRpb25DYXJkOiBSZWFjdC5GQzxJUHJvcHM+ID0gKHsgcHJlZW1wdGlvbiwgb25DbGljayB9KSA9PiB7XG4gIGNvbnN0IHRoZW1lOiBhbnkgPSB1c2VUaGVtZSgpXG5cbiAgY29uc3QgS3ZtID0gPHN1cD4yPC9zdXA+XG5cbiAgcmV0dXJuIChcbiAgICA8Q2FyZCBvbkNsaWNrPXsoKSA9PiBvbkNsaWNrKHByZWVtcHRpb24uaWQpfSB3aXRoaG92ZXIgc2hhZG93PlxuICAgICAgey8qKiBUT0RPIGNoYW5nZSB3aXRoIGNvbXBvbmVudCAqL31cbiAgICAgIDxTdmdIZWFkXG4gICAgICAgIGNzcz17e1xuICAgICAgICAgIGJhY2tncm91bmQ6XG4gICAgICAgICAgICAnbGluZWFyLWdyYWRpZW50KCcgK1xuICAgICAgICAgICAgdGhlbWUuYmFja2dyb3VuZENvbG9yICtcbiAgICAgICAgICAgICcsICcgK1xuICAgICAgICAgICAgdGhlbWUuYmFja2dyb3VuZENvbG9yICtcbiAgICAgICAgICAgICcpLCBsaW5lYXItZ3JhZGllbnQoJyArXG4gICAgICAgICAgICB0aGVtZS5wcmltYXJ5MjBvcGEgK1xuICAgICAgICAgICAgJywgJyArXG4gICAgICAgICAgICB0aGVtZS5wcmltYXJ5MjBvcGEgK1xuICAgICAgICAgICAgJyknLFxuICAgICAgICB9fVxuICAgICAgPlxuICAgICAgICA8VW5pdElsbHVzdHJhdGlvblxuICAgICAgICAgIHR5cGU9e1xuICAgICAgICAgICAgcHJlZW1wdGlvbi51bml0LmJ1aWxkaW5nPy5idWlsZGluZ0NvZGUgfHxcbiAgICAgICAgICAgIHByZWVtcHRpb24udW5pdC5idWlsZGluZ0NvZGVcbiAgICAgICAgICB9XG4gICAgICAgIC8+XG4gICAgICA8L1N2Z0hlYWQ+XG5cbiAgICAgIHsvKiogVE9ETyBjaGFuZ2Ugd2l0aCBjb21wb25lbnQgKi99XG4gICAgICA8VW5pdEluZm8+XG4gICAgICAgIDxUZXh0IHNtYWxsIHN1YnRsZT5cbiAgICAgICAgICB7Z2V0QXJlYVRleHRGb3JQcmVlbXB0aW9uVW5pdChwcmVlbXB0aW9uLnVuaXQpfSAteycgJ31cbiAgICAgICAgICB7cHJlZW1wdGlvbi51bml0LmJ1aWxkaW5nPy5idWlsZGluZ0NvZGUgfHxcbiAgICAgICAgICAgIHByZWVtcHRpb24udW5pdC5idWlsZGluZ0NvZGV9XG4gICAgICAgICAge3ByZWVtcHRpb24udW5pdC5udW1iZXJPZlJvb21zXG4gICAgICAgICAgICA/ICcgLyAnICsgcHJlZW1wdGlvbi51bml0Lm51bWJlck9mUm9vbXMgKyAnLXJvbXMnXG4gICAgICAgICAgICA6IG51bGx9XG4gICAgICAgICAge3ByZWVtcHRpb24udW5pdC5wcmltYXJ5Um9vbVxuICAgICAgICAgICAgPyAnIC8gJyArIHByZWVtcHRpb24udW5pdC5wcmltYXJ5Um9vbSArICcgbSdcbiAgICAgICAgICAgIDogbnVsbH1cbiAgICAgICAgICB7cHJlZW1wdGlvbi51bml0LnByaW1hcnlSb29tID8gS3ZtIDogbnVsbH1cbiAgICAgICAgPC9UZXh0PlxuICAgICAgICA8VGV4dCBib2xkPntwcmVlbXB0aW9uLnVuaXQuYWRkcmVzc308L1RleHQ+XG5cbiAgICAgICAgPERpdmlkZXIgLz5cblxuICAgICAgICA8SGVhZGVyIGxldmVsPXs1fT5cbiAgICAgICAgICB7Z2V0UHJpY2VXaXRoTGFiZWwoXG4gICAgICAgICAgICBwcmVlbXB0aW9uLmNsYXJpZmljYXRpb25JbkFkdmFuY2UsXG4gICAgICAgICAgICBwcmVlbXB0aW9uLnByaWNpbmdcbiAgICAgICAgICApfVxuICAgICAgICA8L0hlYWRlcj5cbiAgICAgICAgPFRleHQgc21hbGwgc3VidGxlPlxuICAgICAgICAgIFRvdGFscHJpcyB7Z2V0Rm9ybWF0dGVkUHJpY2UocHJlZW1wdGlvbi5wcmljaW5nLnRvdGFsUHJpY2UpfVxuICAgICAgICA8L1RleHQ+XG4gICAgICAgIDxUZXh0IHNtYWxsIHN1YnRsZT5cbiAgICAgICAgICBGZWxsZXNrb3N0bmFkIHtnZXRGb3JtYXR0ZWRQcmljZShwcmVlbXB0aW9uLnByaWNpbmcuam9pbnRDb3N0cyl9XG4gICAgICAgIDwvVGV4dD5cblxuICAgICAgICA8U3R5bGVkVGFnXG4gICAgICAgICAgaW5mbz17aXNEZWFkbGluZUNsb3NpbmcocHJlZW1wdGlvbi5kZWFkbGluZSl9XG4gICAgICAgICAgbGlnaHQ9eyFpc0RlYWRsaW5lQ2xvc2luZyhwcmVlbXB0aW9uLmRlYWRsaW5lKX1cbiAgICAgICAgICB0aXRsZT17Z2V0Rm9ybWF0dGVkRGF0ZShwcmVlbXB0aW9uLmRlYWRsaW5lKX1cbiAgICAgICAgPlxuICAgICAgICAgIDxUZXh0IGV4dHJhc21hbGw+XG4gICAgICAgICAgICBNRUxERUZSSVNUOiZuYnNwO1xuICAgICAgICAgICAgPFRleHQgZXh0cmFzbWFsbCBib2xkPlxuICAgICAgICAgICAgICB7Z2V0TWVsZGVmcmlzdFRleHQocHJlZW1wdGlvbil9XG4gICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgPC9UZXh0PlxuICAgICAgICA8L1N0eWxlZFRhZz5cbiAgICAgIDwvVW5pdEluZm8+XG4gICAgPC9DYXJkPlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IFByZWVtcHRpb25DYXJkXG4iXX0= */"),
31
30
  children: _jsx(UnitIllustration, {
32
31
  type: preemption.unit.building?.buildingCode || preemption.unit.buildingCode
33
32
  })
@@ -41,7 +40,7 @@ const PreemptionCard = ({
41
40
  children: preemption.unit.address
42
41
  }), _jsx(Divider, {}), _jsx(Header, {
43
42
  level: 5,
44
- children: getPriceWithLabel(preemption.pricing)
43
+ children: getPriceWithLabel(preemption.clarificationInAdvance, preemption.pricing)
45
44
  }), _jsxs(Text, {
46
45
  small: true,
47
46
  subtle: true,
@@ -3,8 +3,7 @@ import Card from '../Card';
3
3
  import Divider from '../Divider';
4
4
  import Skeleton from '../Skeleton';
5
5
  import { WrapperUnitInformation, WrapperHeader } from './styles';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
7
  const PreemptionCardLoading = () => {
9
8
  return /*#__PURE__*/_jsxs(Card, {
10
9
  shadow: true,
@@ -0,0 +1,15 @@
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
+ }
@@ -0,0 +1,20 @@
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
+ }
@@ -0,0 +1,24 @@
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 };
@@ -0,0 +1,56 @@
1
+ import QuillEditor from '.';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ export default {
4
+ title: 'Core/QuillEditor',
5
+ component: QuillEditor
6
+ };
7
+ export const Default = {
8
+ render: () => {
9
+ return /*#__PURE__*/_jsx(QuillEditor, {
10
+ onChange: e => console.log(e),
11
+ onBlur: () => console.log('blur'),
12
+ onFocus: () => console.log('focus'),
13
+ initialValue: "<p>Initial value</p>",
14
+ pasteAsText: true,
15
+ onSelectionChange: (range, source, quill) => console.log(range, source, quill)
16
+ });
17
+ },
18
+ name: 'Default'
19
+ };
20
+ export const Rich = {
21
+ render: () => /*#__PURE__*/_jsx(QuillEditor, {
22
+ type: "rich",
23
+ onChange: e => console.log(e)
24
+ }),
25
+ name: 'Rich'
26
+ };
27
+ export const Readonly = {
28
+ render: () => /*#__PURE__*/_jsx(QuillEditor, {
29
+ resize: true,
30
+ readOnly: true,
31
+ initialValue: "Readonly"
32
+ }),
33
+ name: 'Readonly'
34
+ };
35
+ export const CustomSize = {
36
+ render: () => /*#__PURE__*/_jsx(QuillEditor, {
37
+ height: 300,
38
+ width: 400,
39
+ onChange: e => console.log(e)
40
+ }),
41
+ name: 'Custom size'
42
+ };
43
+ export const Placeholder = {
44
+ render: () => /*#__PURE__*/_jsx(QuillEditor, {
45
+ placeholder: "Placeholder",
46
+ onChange: e => console.log(e)
47
+ }),
48
+ name: 'Placeholder'
49
+ };
50
+ export const WithError = {
51
+ render: () => /*#__PURE__*/_jsx(QuillEditor, {
52
+ invalidMessage: "Memes are not allowed",
53
+ onChange: e => console.log(e)
54
+ }),
55
+ name: 'With error'
56
+ };
@@ -0,0 +1,15 @@
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
+ }
@@ -0,0 +1,21 @@
1
+ import Quill from 'quill';
2
+ const Link = Quill.import('formats/link');
3
+ Link.PROTOCOL_WHITELIST = ['http', 'https', 'mailto', 'tel', 'radar', 'rdar', 'smb', 'sms'];
4
+ export class CustomLinkSanitizer extends Link {
5
+ static sanitize(url) {
6
+ // Run default sanitize method from Quill
7
+ const sanitizedUrl = super.sanitize(url);
8
+
9
+ // Not whitelisted URL based on protocol so, let's return `blank`
10
+ if (!sanitizedUrl || sanitizedUrl === 'about:blank') return sanitizedUrl;
11
+
12
+ // Verify if the URL already have a whitelisted protocol
13
+ const hasWhitelistedProtocol = this.PROTOCOL_WHITELIST.some(function (protocol) {
14
+ return sanitizedUrl.startsWith(protocol);
15
+ });
16
+ if (hasWhitelistedProtocol) return sanitizedUrl;
17
+
18
+ // if not, then append only 'http' to not to be a relative URL
19
+ return `http://${sanitizedUrl}`;
20
+ }
21
+ }
@@ -0,0 +1,20 @@
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
+ }
@@ -0,0 +1,24 @@
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 };
@@ -0,0 +1,28 @@
1
+ // Toolbar options
2
+ const sizes = [{
3
+ header: [false, 1, 2, 3, 4, 5, 6]
4
+ }];
5
+ const decorations = ['bold', 'italic', 'underline'];
6
+ const lists = [{
7
+ list: 'bullet'
8
+ }, {
9
+ list: 'ordered'
10
+ }, {
11
+ indent: '+1'
12
+ }, {
13
+ indent: '-1'
14
+ }];
15
+ const alignments = [{
16
+ align: ''
17
+ }, {
18
+ align: 'center'
19
+ }, {
20
+ align: 'right'
21
+ }, {
22
+ align: 'justify'
23
+ }];
24
+ const link = 'link';
25
+ // const image = 'image'
26
+
27
+ export const basicToolbar = [decorations, lists];
28
+ export const richToolbar = [sizes, decorations, lists, alignments, [link]];