@chayns-components/core 5.0.0-beta.4 → 5.0.0-beta.400

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (428) hide show
  1. package/README.md +3 -9
  2. package/lib/api/image/post.d.ts +16 -0
  3. package/lib/api/image/post.js +34 -0
  4. package/lib/api/image/post.js.map +1 -0
  5. package/lib/api/video/post.d.ts +16 -0
  6. package/lib/api/video/post.js +31 -0
  7. package/lib/api/video/post.js.map +1 -0
  8. package/lib/components/accordion/Accordion.d.ts +72 -6
  9. package/lib/components/accordion/Accordion.js +122 -166
  10. package/lib/components/accordion/Accordion.js.map +1 -1
  11. package/lib/components/accordion/Accordion.styles.d.ts +9 -0
  12. package/lib/components/accordion/Accordion.styles.js +95 -0
  13. package/lib/components/accordion/Accordion.styles.js.map +1 -0
  14. package/lib/components/accordion/accordion-body/AccordionBody.d.ts +20 -2
  15. package/lib/components/accordion/accordion-body/AccordionBody.js +25 -25
  16. package/lib/components/accordion/accordion-body/AccordionBody.js.map +1 -1
  17. package/lib/components/accordion/accordion-body/AccordionBody.styles.d.ts +268 -0
  18. package/lib/components/accordion/accordion-body/AccordionBody.styles.js +24 -0
  19. package/lib/components/accordion/accordion-body/AccordionBody.styles.js.map +1 -0
  20. package/lib/components/accordion/accordion-content/AccordionContent.d.ts +14 -3
  21. package/lib/components/accordion/accordion-content/AccordionContent.js +20 -24
  22. package/lib/components/accordion/accordion-content/AccordionContent.js.map +1 -1
  23. package/lib/components/accordion/accordion-content/AccordionContent.styles.d.ts +8 -0
  24. package/lib/components/accordion/accordion-content/AccordionContent.styles.js +34 -0
  25. package/lib/components/accordion/accordion-content/AccordionContent.styles.js.map +1 -0
  26. package/lib/components/accordion/accordion-group/AccordionGroup.d.ts +27 -0
  27. package/lib/components/accordion/accordion-group/AccordionGroup.js +57 -0
  28. package/lib/components/accordion/accordion-group/AccordionGroup.js.map +1 -0
  29. package/lib/components/accordion/accordion-head/AccordionHead.d.ts +10 -4
  30. package/lib/components/accordion/accordion-head/AccordionHead.js +95 -129
  31. package/lib/components/accordion/accordion-head/AccordionHead.js.map +1 -1
  32. package/lib/components/accordion/accordion-head/AccordionHead.styles.d.ts +2424 -0
  33. package/lib/components/accordion/accordion-head/AccordionHead.styles.js +154 -0
  34. package/lib/components/accordion/accordion-head/AccordionHead.styles.js.map +1 -0
  35. package/lib/components/accordion/accordion-intro/AccordionIntro.d.ts +9 -0
  36. package/lib/components/accordion/accordion-intro/AccordionIntro.js +20 -0
  37. package/lib/components/accordion/accordion-intro/AccordionIntro.js.map +1 -0
  38. package/lib/components/accordion/accordion-intro/AccordionIntro.styles.d.ts +2 -0
  39. package/lib/components/accordion/accordion-intro/AccordionIntro.styles.js +12 -0
  40. package/lib/components/accordion/accordion-intro/AccordionIntro.styles.js.map +1 -0
  41. package/lib/components/accordion/accordion-item/AccordionItem.d.ts +9 -0
  42. package/lib/components/accordion/accordion-item/AccordionItem.js +27 -0
  43. package/lib/components/accordion/accordion-item/AccordionItem.js.map +1 -0
  44. package/lib/components/accordion/accordion-item/AccordionItem.styles.d.ts +7 -0
  45. package/lib/components/accordion/accordion-item/AccordionItem.styles.js +33 -0
  46. package/lib/components/accordion/accordion-item/AccordionItem.styles.js.map +1 -0
  47. package/lib/components/accordion/utils.d.ts +11 -0
  48. package/lib/components/accordion/utils.js +36 -0
  49. package/lib/components/accordion/utils.js.map +1 -0
  50. package/lib/components/amount-control/AmountControl.d.ts +22 -0
  51. package/lib/components/amount-control/AmountControl.js +185 -0
  52. package/lib/components/amount-control/AmountControl.js.map +1 -0
  53. package/lib/components/amount-control/AmountControl.styles.d.ts +288 -0
  54. package/lib/components/amount-control/AmountControl.styles.js +58 -0
  55. package/lib/components/amount-control/AmountControl.styles.js.map +1 -0
  56. package/lib/components/amount-control/utils.d.ts +7 -0
  57. package/lib/components/amount-control/utils.js +22 -0
  58. package/lib/components/amount-control/utils.js.map +1 -0
  59. package/lib/components/badge/Badge.d.ts +9 -1
  60. package/lib/components/badge/Badge.js +15 -28
  61. package/lib/components/badge/Badge.js.map +1 -1
  62. package/lib/components/badge/Badge.styles.d.ts +6 -0
  63. package/lib/components/badge/Badge.styles.js +31 -0
  64. package/lib/components/badge/Badge.styles.js.map +1 -0
  65. package/lib/components/button/Button.d.ts +7 -3
  66. package/lib/components/button/Button.js +69 -47
  67. package/lib/components/button/Button.js.map +1 -1
  68. package/lib/components/button/Button.styles.d.ts +541 -0
  69. package/lib/components/button/Button.styles.js +81 -0
  70. package/lib/components/button/Button.styles.js.map +1 -0
  71. package/lib/components/checkbox/Checkbox.d.ts +33 -0
  72. package/lib/components/checkbox/Checkbox.js +49 -0
  73. package/lib/components/checkbox/Checkbox.js.map +1 -0
  74. package/lib/components/checkbox/Checkbox.styles.d.ts +13 -0
  75. package/lib/components/checkbox/Checkbox.styles.js +140 -0
  76. package/lib/components/checkbox/Checkbox.styles.js.map +1 -0
  77. package/lib/components/code-highlighter/CodeHighlighter.d.ts +36 -0
  78. package/lib/components/code-highlighter/CodeHighlighter.js +85 -0
  79. package/lib/components/code-highlighter/CodeHighlighter.js.map +1 -0
  80. package/lib/components/code-highlighter/CodeHighlighter.styles.d.ts +16 -0
  81. package/lib/components/code-highlighter/CodeHighlighter.styles.js +88 -0
  82. package/lib/components/code-highlighter/CodeHighlighter.styles.js.map +1 -0
  83. package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.d.ts +9 -0
  84. package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.js +41 -0
  85. package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.js.map +1 -0
  86. package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.styles.d.ts +9 -0
  87. package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.styles.js +24 -0
  88. package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.styles.js.map +1 -0
  89. package/lib/components/color-scheme-provider/ColorSchemeProvider.d.ts +8 -1
  90. package/lib/components/color-scheme-provider/ColorSchemeProvider.js +45 -83
  91. package/lib/components/color-scheme-provider/ColorSchemeProvider.js.map +1 -1
  92. package/lib/components/color-scheme-provider/font.d.ts +6 -0
  93. package/lib/components/color-scheme-provider/font.js +59 -0
  94. package/lib/components/color-scheme-provider/font.js.map +1 -0
  95. package/lib/components/combobox/ComboBox.d.ts +43 -0
  96. package/lib/components/combobox/ComboBox.js +187 -0
  97. package/lib/components/combobox/ComboBox.js.map +1 -0
  98. package/lib/components/combobox/ComboBox.styles.d.ts +289 -0
  99. package/lib/components/combobox/ComboBox.styles.js +184 -0
  100. package/lib/components/combobox/ComboBox.styles.js.map +1 -0
  101. package/lib/components/combobox/combobox-item/ComboBoxItem.d.ts +12 -0
  102. package/lib/components/combobox/combobox-item/ComboBoxItem.js +40 -0
  103. package/lib/components/combobox/combobox-item/ComboBoxItem.js.map +1 -0
  104. package/lib/components/combobox/combobox-item/ComboBoxItem.styles.d.ts +11 -0
  105. package/lib/components/combobox/combobox-item/ComboBoxItem.styles.js +62 -0
  106. package/lib/components/combobox/combobox-item/ComboBoxItem.styles.js.map +1 -0
  107. package/lib/components/content-card/ContentCard.d.ts +13 -0
  108. package/lib/components/content-card/ContentCard.js +21 -0
  109. package/lib/components/content-card/ContentCard.js.map +1 -0
  110. package/lib/components/content-card/ContentCard.styles.d.ts +2 -0
  111. package/lib/components/content-card/ContentCard.styles.js +22 -0
  112. package/lib/components/content-card/ContentCard.styles.js.map +1 -0
  113. package/lib/components/context-menu/ContextMenu.d.ts +51 -0
  114. package/lib/components/context-menu/ContextMenu.js +153 -0
  115. package/lib/components/context-menu/ContextMenu.js.map +1 -0
  116. package/lib/components/context-menu/ContextMenu.styles.d.ts +2 -0
  117. package/lib/components/context-menu/ContextMenu.styles.js +12 -0
  118. package/lib/components/context-menu/ContextMenu.styles.js.map +1 -0
  119. package/lib/components/context-menu/constants/alignment.d.ts +8 -0
  120. package/lib/components/context-menu/constants/alignment.js +16 -0
  121. package/lib/components/context-menu/constants/alignment.js.map +1 -0
  122. package/lib/components/context-menu/context-menu-content/ContextMenuContent.d.ts +10 -0
  123. package/lib/components/context-menu/context-menu-content/ContextMenuContent.js +79 -0
  124. package/lib/components/context-menu/context-menu-content/ContextMenuContent.js.map +1 -0
  125. package/lib/components/context-menu/context-menu-content/ContextMenuContent.styles.d.ts +276 -0
  126. package/lib/components/context-menu/context-menu-content/ContextMenuContent.styles.js +112 -0
  127. package/lib/components/context-menu/context-menu-content/ContextMenuContent.styles.js.map +1 -0
  128. package/lib/components/date-info/DateInfo.d.ts +37 -0
  129. package/lib/components/date-info/DateInfo.js +111 -0
  130. package/lib/components/date-info/DateInfo.js.map +1 -0
  131. package/lib/components/date-info/constants/language.d.ts +22 -0
  132. package/lib/components/date-info/constants/language.js +629 -0
  133. package/lib/components/date-info/constants/language.js.map +1 -0
  134. package/lib/components/date-info/utils/format.d.ts +49 -0
  135. package/lib/components/date-info/utils/format.js +315 -0
  136. package/lib/components/date-info/utils/format.js.map +1 -0
  137. package/lib/components/date-info/utils/language.d.ts +7 -0
  138. package/lib/components/date-info/utils/language.js +57 -0
  139. package/lib/components/date-info/utils/language.js.map +1 -0
  140. package/lib/components/file-input/FileInput.d.ts +29 -0
  141. package/lib/components/file-input/FileInput.js +121 -0
  142. package/lib/components/file-input/FileInput.js.map +1 -0
  143. package/lib/components/file-input/FileInput.styles.d.ts +277 -0
  144. package/lib/components/file-input/FileInput.styles.js +46 -0
  145. package/lib/components/file-input/FileInput.styles.js.map +1 -0
  146. package/lib/components/file-input/file-list/FileListItem.d.ts +9 -0
  147. package/lib/components/file-input/file-list/FileListItem.js +36 -0
  148. package/lib/components/file-input/file-list/FileListItem.js.map +1 -0
  149. package/lib/components/file-input/file-list/FileListItem.styles.d.ts +2 -0
  150. package/lib/components/file-input/file-list/FileListItem.styles.js +10 -0
  151. package/lib/components/file-input/file-list/FileListItem.styles.js.map +1 -0
  152. package/lib/components/filter-buttons/FilterButtons.d.ts +22 -0
  153. package/lib/components/filter-buttons/FilterButtons.js +88 -0
  154. package/lib/components/filter-buttons/FilterButtons.js.map +1 -0
  155. package/lib/components/filter-buttons/FilterButtons.styles.d.ts +2 -0
  156. package/lib/components/filter-buttons/FilterButtons.styles.js +14 -0
  157. package/lib/components/filter-buttons/FilterButtons.styles.js.map +1 -0
  158. package/lib/components/filter-buttons/filter-button/FilterButton.d.ts +14 -0
  159. package/lib/components/filter-buttons/filter-button/FilterButton.js +47 -0
  160. package/lib/components/filter-buttons/filter-button/FilterButton.js.map +1 -0
  161. package/lib/components/filter-buttons/filter-button/FilterButton.styles.d.ts +287 -0
  162. package/lib/components/filter-buttons/filter-button/FilterButton.styles.js +104 -0
  163. package/lib/components/filter-buttons/filter-button/FilterButton.styles.js.map +1 -0
  164. package/lib/components/filter-buttons/types.d.ts +15 -0
  165. package/lib/components/filter-buttons/types.js +17 -0
  166. package/lib/components/filter-buttons/types.js.map +1 -0
  167. package/lib/components/grid-image/GridImage.d.ts +19 -0
  168. package/lib/components/grid-image/GridImage.js +45 -0
  169. package/lib/components/grid-image/GridImage.js.map +1 -0
  170. package/lib/components/grid-image/GridImage.styles.d.ts +22 -0
  171. package/lib/components/grid-image/GridImage.styles.js +101 -0
  172. package/lib/components/grid-image/GridImage.styles.js.map +1 -0
  173. package/lib/components/icon/Icon.d.ts +11 -3
  174. package/lib/components/icon/Icon.js +37 -82
  175. package/lib/components/icon/Icon.js.map +1 -1
  176. package/lib/components/icon/Icon.styles.d.ts +15 -0
  177. package/lib/components/icon/Icon.styles.js +74 -0
  178. package/lib/components/icon/Icon.styles.js.map +1 -0
  179. package/lib/components/icon/utils.d.ts +1 -0
  180. package/lib/components/icon/utils.js +12 -0
  181. package/lib/components/icon/utils.js.map +1 -0
  182. package/lib/components/input/Input.d.ts +65 -0
  183. package/lib/components/input/Input.js +118 -0
  184. package/lib/components/input/Input.js.map +1 -0
  185. package/lib/components/input/Input.styles.d.ts +541 -0
  186. package/lib/components/input/Input.styles.js +98 -0
  187. package/lib/components/input/Input.styles.js.map +1 -0
  188. package/lib/components/list/List.d.ts +18 -0
  189. package/lib/components/list/List.js +52 -0
  190. package/lib/components/list/List.js.map +1 -0
  191. package/lib/components/list/list-item/ListItem.d.ts +67 -0
  192. package/lib/components/list/list-item/ListItem.js +91 -0
  193. package/lib/components/list/list-item/ListItem.js.map +1 -0
  194. package/lib/components/list/list-item/ListItem.styles.d.ts +8 -0
  195. package/lib/components/list/list-item/ListItem.styles.js +44 -0
  196. package/lib/components/list/list-item/ListItem.styles.js.map +1 -0
  197. package/lib/components/list/list-item/list-item-body/ListItemBody.d.ts +7 -0
  198. package/lib/components/list/list-item/list-item-body/ListItemBody.js +57 -0
  199. package/lib/components/list/list-item/list-item-body/ListItemBody.js.map +1 -0
  200. package/lib/components/list/list-item/list-item-body/ListItemBody.styles.d.ts +267 -0
  201. package/lib/components/list/list-item/list-item-body/ListItemBody.styles.js +13 -0
  202. package/lib/components/list/list-item/list-item-body/ListItemBody.styles.js.map +1 -0
  203. package/lib/components/list/list-item/list-item-content/ListItemContent.d.ts +9 -0
  204. package/lib/components/list/list-item/list-item-content/ListItemContent.js +20 -0
  205. package/lib/components/list/list-item/list-item-content/ListItemContent.js.map +1 -0
  206. package/lib/components/list/list-item/list-item-content/ListItemContent.styles.d.ts +2 -0
  207. package/lib/components/list/list-item/list-item-content/ListItemContent.styles.js +18 -0
  208. package/lib/components/list/list-item/list-item-content/ListItemContent.styles.js.map +1 -0
  209. package/lib/components/list/list-item/list-item-head/ListItemHead.d.ts +18 -0
  210. package/lib/components/list/list-item/list-item-head/ListItemHead.js +99 -0
  211. package/lib/components/list/list-item/list-item-head/ListItemHead.js.map +1 -0
  212. package/lib/components/list/list-item/list-item-head/ListItemHead.styles.d.ts +550 -0
  213. package/lib/components/list/list-item/list-item-head/ListItemHead.styles.js +99 -0
  214. package/lib/components/list/list-item/list-item-head/ListItemHead.styles.js.map +1 -0
  215. package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.d.ts +6 -0
  216. package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.js +22 -0
  217. package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.js.map +1 -0
  218. package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.styles.d.ts +2 -0
  219. package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.styles.js +31 -0
  220. package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.styles.js.map +1 -0
  221. package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.d.ts +7 -0
  222. package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.js +43 -0
  223. package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.js.map +1 -0
  224. package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.styles.d.ts +11 -0
  225. package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.styles.js +50 -0
  226. package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.styles.js.map +1 -0
  227. package/lib/components/mention-finder/MentionFinder.d.ts +31 -0
  228. package/lib/components/mention-finder/MentionFinder.js +139 -0
  229. package/lib/components/mention-finder/MentionFinder.js.map +1 -0
  230. package/lib/components/mention-finder/MentionFinder.styles.d.ts +270 -0
  231. package/lib/components/mention-finder/MentionFinder.styles.js +92 -0
  232. package/lib/components/mention-finder/MentionFinder.styles.js.map +1 -0
  233. package/lib/components/mention-finder/constants/alignment.d.ts +4 -0
  234. package/lib/components/mention-finder/constants/alignment.js +12 -0
  235. package/lib/components/mention-finder/constants/alignment.js.map +1 -0
  236. package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.d.ts +10 -0
  237. package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.js +31 -0
  238. package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.js.map +1 -0
  239. package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.styles.d.ts +10 -0
  240. package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.styles.js +91 -0
  241. package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.styles.js.map +1 -0
  242. package/lib/components/number-input/NumberInput.d.ts +46 -0
  243. package/lib/components/number-input/NumberInput.js +123 -0
  244. package/lib/components/number-input/NumberInput.js.map +1 -0
  245. package/lib/components/number-input/constants/number.d.ts +4 -0
  246. package/lib/components/number-input/constants/number.js +11 -0
  247. package/lib/components/number-input/constants/number.js.map +1 -0
  248. package/lib/components/number-input/utils/number.d.ts +21 -0
  249. package/lib/components/number-input/utils/number.js +64 -0
  250. package/lib/components/number-input/utils/number.js.map +1 -0
  251. package/lib/components/popup/Popup.d.ts +30 -0
  252. package/lib/components/popup/Popup.js +154 -0
  253. package/lib/components/popup/Popup.js.map +1 -0
  254. package/lib/components/popup/Popup.styles.d.ts +5 -0
  255. package/lib/components/popup/Popup.styles.js +26 -0
  256. package/lib/components/popup/Popup.styles.js.map +1 -0
  257. package/lib/components/popup/popup-content/PopupContent.d.ts +9 -0
  258. package/lib/components/popup/popup-content/PopupContent.js +66 -0
  259. package/lib/components/popup/popup-content/PopupContent.js.map +1 -0
  260. package/lib/components/popup/popup-content/PopupContent.styles.d.ts +274 -0
  261. package/lib/components/popup/popup-content/PopupContent.styles.js +92 -0
  262. package/lib/components/popup/popup-content/PopupContent.styles.js.map +1 -0
  263. package/lib/components/popup/types.d.ts +16 -0
  264. package/lib/components/popup/types.js +16 -0
  265. package/lib/components/popup/types.js.map +1 -0
  266. package/lib/components/progress-bar/ProgressBar.d.ts +9 -0
  267. package/lib/components/progress-bar/ProgressBar.js +38 -0
  268. package/lib/components/progress-bar/ProgressBar.js.map +1 -0
  269. package/lib/components/progress-bar/ProgressBar.styles.d.ts +271 -0
  270. package/lib/components/progress-bar/ProgressBar.styles.js +36 -0
  271. package/lib/components/progress-bar/ProgressBar.styles.js.map +1 -0
  272. package/lib/components/radio-button/RadioButton.d.ts +26 -0
  273. package/lib/components/radio-button/RadioButton.js +85 -0
  274. package/lib/components/radio-button/RadioButton.js.map +1 -0
  275. package/lib/components/radio-button/RadioButton.styles.d.ts +22 -0
  276. package/lib/components/radio-button/RadioButton.styles.js +95 -0
  277. package/lib/components/radio-button/RadioButton.styles.js.map +1 -0
  278. package/lib/components/radio-button/radio-button-group/RadioButtonGroup.d.ts +17 -0
  279. package/lib/components/radio-button/radio-button-group/RadioButtonGroup.js +46 -0
  280. package/lib/components/radio-button/radio-button-group/RadioButtonGroup.js.map +1 -0
  281. package/lib/components/radio-button/types.d.ts +4 -0
  282. package/lib/components/radio-button/types.js +2 -0
  283. package/lib/components/radio-button/types.js.map +1 -0
  284. package/lib/components/scroll-view/ScrollView.d.ts +13 -0
  285. package/lib/components/scroll-view/ScrollView.js +22 -0
  286. package/lib/components/scroll-view/ScrollView.js.map +1 -0
  287. package/lib/components/scroll-view/ScrollView.styles.d.ts +7 -0
  288. package/lib/components/scroll-view/ScrollView.styles.js +26 -0
  289. package/lib/components/scroll-view/ScrollView.styles.js.map +1 -0
  290. package/lib/components/search-box/SearchBox.d.ts +34 -0
  291. package/lib/components/search-box/SearchBox.js +246 -0
  292. package/lib/components/search-box/SearchBox.js.map +1 -0
  293. package/lib/components/search-box/SearchBox.styles.d.ts +272 -0
  294. package/lib/components/search-box/SearchBox.styles.js +56 -0
  295. package/lib/components/search-box/SearchBox.styles.js.map +1 -0
  296. package/lib/components/search-box/search-box-item/SearchBoxItem.d.ts +9 -0
  297. package/lib/components/search-box/search-box-item/SearchBoxItem.js +30 -0
  298. package/lib/components/search-box/search-box-item/SearchBoxItem.js.map +1 -0
  299. package/lib/components/search-box/search-box-item/SearchBoxItem.styles.d.ts +7 -0
  300. package/lib/components/search-box/search-box-item/SearchBoxItem.styles.js +37 -0
  301. package/lib/components/search-box/search-box-item/SearchBoxItem.styles.js.map +1 -0
  302. package/lib/components/search-box/types.d.ts +4 -0
  303. package/lib/components/search-box/types.js +2 -0
  304. package/lib/components/search-box/types.js.map +1 -0
  305. package/lib/components/search-box/utils.d.ts +7 -0
  306. package/lib/components/search-box/utils.js +23 -0
  307. package/lib/components/search-box/utils.js.map +1 -0
  308. package/lib/components/search-input/SearchInput.d.ts +33 -0
  309. package/lib/components/search-input/SearchInput.js +102 -0
  310. package/lib/components/search-input/SearchInput.js.map +1 -0
  311. package/lib/components/search-input/SearchInput.styles.d.ts +534 -0
  312. package/lib/components/search-input/SearchInput.styles.js +26 -0
  313. package/lib/components/search-input/SearchInput.styles.js.map +1 -0
  314. package/lib/components/setup-wizard/SetupWizard.d.ts +23 -0
  315. package/lib/components/setup-wizard/SetupWizard.js +79 -0
  316. package/lib/components/setup-wizard/SetupWizard.js.map +1 -0
  317. package/lib/components/setup-wizard/SetupWizard.styles.d.ts +2 -0
  318. package/lib/components/setup-wizard/SetupWizard.styles.js +10 -0
  319. package/lib/components/setup-wizard/SetupWizard.styles.js.map +1 -0
  320. package/lib/components/setup-wizard/setup-wizard-item/SetupWizardItem.d.ts +25 -0
  321. package/lib/components/setup-wizard/setup-wizard-item/SetupWizardItem.js +60 -0
  322. package/lib/components/setup-wizard/setup-wizard-item/SetupWizardItem.js.map +1 -0
  323. package/lib/components/setup-wizard/setup-wizard-item/SetupWizardItem.styles.d.ts +3 -0
  324. package/lib/components/setup-wizard/setup-wizard-item/SetupWizardItem.styles.js +14 -0
  325. package/lib/components/setup-wizard/setup-wizard-item/SetupWizardItem.styles.js.map +1 -0
  326. package/lib/components/sharing-bar/SharingBar.d.ts +18 -0
  327. package/lib/components/sharing-bar/SharingBar.js +110 -0
  328. package/lib/components/sharing-bar/SharingBar.js.map +1 -0
  329. package/lib/components/sharing-bar/SharingBar.styles.d.ts +6 -0
  330. package/lib/components/sharing-bar/SharingBar.styles.js +24 -0
  331. package/lib/components/sharing-bar/SharingBar.styles.js.map +1 -0
  332. package/lib/components/slider/Slider.d.ts +21 -0
  333. package/lib/components/slider/Slider.js +51 -0
  334. package/lib/components/slider/Slider.js.map +1 -0
  335. package/lib/components/slider/Slider.styles.d.ts +10 -0
  336. package/lib/components/slider/Slider.styles.js +74 -0
  337. package/lib/components/slider/Slider.styles.js.map +1 -0
  338. package/lib/components/small-wait-cursor/SmallWaitCursor.d.ts +31 -0
  339. package/lib/components/small-wait-cursor/SmallWaitCursor.js +42 -0
  340. package/lib/components/small-wait-cursor/SmallWaitCursor.js.map +1 -0
  341. package/lib/components/small-wait-cursor/SmallWaitCursor.styles.d.ts +19 -0
  342. package/lib/components/small-wait-cursor/SmallWaitCursor.styles.js +101 -0
  343. package/lib/components/small-wait-cursor/SmallWaitCursor.styles.js.map +1 -0
  344. package/lib/components/text-area/TextArea.d.ts +29 -0
  345. package/lib/components/text-area/TextArea.js +72 -0
  346. package/lib/components/text-area/TextArea.js.map +1 -0
  347. package/lib/components/text-area/TextArea.styles.d.ts +13 -0
  348. package/lib/components/text-area/TextArea.styles.js +79 -0
  349. package/lib/components/text-area/TextArea.styles.js.map +1 -0
  350. package/lib/components/tooltip/Tooltip.d.ts +18 -0
  351. package/lib/components/tooltip/Tooltip.js +32 -0
  352. package/lib/components/tooltip/Tooltip.js.map +1 -0
  353. package/lib/components/tooltip/Tooltip.styles.d.ts +2 -0
  354. package/lib/components/tooltip/Tooltip.styles.js +10 -0
  355. package/lib/components/tooltip/Tooltip.styles.js.map +1 -0
  356. package/lib/components/tooltip/interface.d.ts +4 -0
  357. package/lib/components/tooltip/interface.js +2 -0
  358. package/lib/components/tooltip/interface.js.map +1 -0
  359. package/lib/components/tooltip/tooltip-item/TooltipItem.d.ts +7 -0
  360. package/lib/components/tooltip/tooltip-item/TooltipItem.js +20 -0
  361. package/lib/components/tooltip/tooltip-item/TooltipItem.js.map +1 -0
  362. package/lib/components/tooltip/tooltip-item/TooltipItem.styles.d.ts +8 -0
  363. package/lib/components/tooltip/tooltip-item/TooltipItem.styles.js +29 -0
  364. package/lib/components/tooltip/tooltip-item/TooltipItem.styles.js.map +1 -0
  365. package/lib/components/truncation/Truncation.d.ts +25 -0
  366. package/lib/components/truncation/Truncation.js +86 -0
  367. package/lib/components/truncation/Truncation.js.map +1 -0
  368. package/lib/components/truncation/Truncation.styles.d.ts +270 -0
  369. package/lib/components/truncation/Truncation.styles.js +27 -0
  370. package/lib/components/truncation/Truncation.styles.js.map +1 -0
  371. package/lib/constants/codeHighlighter.d.ts +7 -0
  372. package/lib/constants/codeHighlighter.js +13 -0
  373. package/lib/constants/codeHighlighter.js.map +1 -0
  374. package/lib/hooks/colorMode.d.ts +2 -0
  375. package/lib/hooks/colorMode.js +22 -0
  376. package/lib/hooks/colorMode.js.map +1 -0
  377. package/lib/hooks/uuid.d.ts +1 -0
  378. package/lib/hooks/uuid.js +14 -0
  379. package/lib/hooks/uuid.js.map +1 -0
  380. package/lib/index.d.ts +50 -0
  381. package/lib/index.js +312 -11
  382. package/lib/index.js.map +1 -1
  383. package/lib/types/chayns.d.ts +115 -0
  384. package/lib/types/chayns.js +13 -0
  385. package/lib/types/chayns.js.map +1 -0
  386. package/lib/types/codeHighlighter.d.ts +10 -0
  387. package/lib/types/codeHighlighter.js +12 -0
  388. package/lib/types/codeHighlighter.js.map +1 -0
  389. package/lib/types/comboBox.d.ts +4 -0
  390. package/lib/types/comboBox.js +12 -0
  391. package/lib/types/comboBox.js.map +1 -0
  392. package/lib/types/file.d.ts +42 -0
  393. package/lib/types/file.js +2 -0
  394. package/lib/types/file.js.map +1 -0
  395. package/lib/types/parser/prettier-parser-babel.d.js +2 -0
  396. package/lib/types/parser/prettier-parser-babel.d.js.map +1 -0
  397. package/lib/types/parser/prettier-parser-graphql.d.js +2 -0
  398. package/lib/types/parser/prettier-parser-graphql.d.js.map +1 -0
  399. package/lib/types/parser/prettier-parser-html.d.js +2 -0
  400. package/lib/types/parser/prettier-parser-html.d.js.map +1 -0
  401. package/lib/types/parser/prettier-parser-markdown.d.js +2 -0
  402. package/lib/types/parser/prettier-parser-markdown.d.js.map +1 -0
  403. package/lib/types/parser/prettier-parser-postcss.d.js +2 -0
  404. package/lib/types/parser/prettier-parser-postcss.d.js.map +1 -0
  405. package/lib/types/parser/prettier-parser-yaml.d.js +2 -0
  406. package/lib/types/parser/prettier-parser-yaml.d.js.map +1 -0
  407. package/lib/utils/calculate.d.ts +3 -0
  408. package/lib/utils/calculate.js +49 -0
  409. package/lib/utils/calculate.js.map +1 -0
  410. package/lib/utils/codeHighlighter.d.ts +4 -0
  411. package/lib/utils/codeHighlighter.js +361 -0
  412. package/lib/utils/codeHighlighter.js.map +1 -0
  413. package/lib/utils/file.d.ts +363 -0
  414. package/lib/utils/file.js +402 -0
  415. package/lib/utils/file.js.map +1 -0
  416. package/lib/utils/fileDialog.d.ts +7 -0
  417. package/lib/utils/fileDialog.js +73 -0
  418. package/lib/utils/fileDialog.js.map +1 -0
  419. package/lib/utils/isTobitEmployee.d.ts +1 -0
  420. package/lib/utils/isTobitEmployee.js +28 -0
  421. package/lib/utils/isTobitEmployee.js.map +1 -0
  422. package/lib/utils/truncation.d.ts +1 -0
  423. package/lib/utils/truncation.js +34 -0
  424. package/lib/utils/truncation.js.map +1 -0
  425. package/lib/utils/uploadFile.d.ts +9 -0
  426. package/lib/utils/uploadFile.js +47 -0
  427. package/lib/utils/uploadFile.js.map +1 -0
  428. package/package.json +72 -62
@@ -0,0 +1,31 @@
1
+ import { CSSProperties, FC } from 'react';
2
+ export declare enum SmallWaitCursorSize {
3
+ Small = 16,
4
+ Medium = 30
5
+ }
6
+ export declare enum SmallWaitCursorSpeed {
7
+ Slow = 1.5,
8
+ Medium = 1,
9
+ Fast = 0.5
10
+ }
11
+ export type SmallWaitCursorProps = {
12
+ color?: CSSProperties['color'];
13
+ /**
14
+ * Specifies whether the wait cursor should be displayed with a background.
15
+ */
16
+ shouldHideBackground?: boolean;
17
+ /**
18
+ * Specifies whether the wait cursor should be displayed.
19
+ */
20
+ shouldHideWaitCursor?: boolean;
21
+ /**
22
+ * The size of the wait cursor in pixels. Use the SmallWaitCursorSize enum for this prop.
23
+ */
24
+ size?: SmallWaitCursorSize;
25
+ /**
26
+ * The speed of the animation in seconds. Use the SmallWaitCursorSpeed enum for this prop.
27
+ */
28
+ speed?: SmallWaitCursorSpeed;
29
+ };
30
+ declare const SmallWaitCursor: FC<SmallWaitCursorProps>;
31
+ export default SmallWaitCursor;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.SmallWaitCursorSpeed = exports.SmallWaitCursorSize = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _SmallWaitCursor = require("./SmallWaitCursor.styles");
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ // noinspection JSUnusedGlobalSymbols
11
+ let SmallWaitCursorSize = exports.SmallWaitCursorSize = /*#__PURE__*/function (SmallWaitCursorSize) {
12
+ SmallWaitCursorSize[SmallWaitCursorSize["Small"] = 16] = "Small";
13
+ SmallWaitCursorSize[SmallWaitCursorSize["Medium"] = 30] = "Medium";
14
+ return SmallWaitCursorSize;
15
+ }({});
16
+ let SmallWaitCursorSpeed = exports.SmallWaitCursorSpeed = /*#__PURE__*/function (SmallWaitCursorSpeed) {
17
+ SmallWaitCursorSpeed[SmallWaitCursorSpeed["Slow"] = 1.5] = "Slow";
18
+ SmallWaitCursorSpeed[SmallWaitCursorSpeed["Medium"] = 1] = "Medium";
19
+ SmallWaitCursorSpeed[SmallWaitCursorSpeed["Fast"] = 0.5] = "Fast";
20
+ return SmallWaitCursorSpeed;
21
+ }({});
22
+ const SmallWaitCursor = _ref => {
23
+ let {
24
+ color,
25
+ shouldHideBackground = false,
26
+ shouldHideWaitCursor = false,
27
+ size = SmallWaitCursorSize.Medium,
28
+ speed = SmallWaitCursorSpeed.Medium
29
+ } = _ref;
30
+ return /*#__PURE__*/_react.default.createElement(_SmallWaitCursor.StyledSmallWaitCursor, {
31
+ shouldShowWaitCursor: !shouldHideWaitCursor,
32
+ size: size
33
+ }, /*#__PURE__*/_react.default.createElement(_SmallWaitCursor.StyledSmallWaitCursorWaitCursor, {
34
+ color: color,
35
+ shouldHideBackground: shouldHideBackground,
36
+ size: size,
37
+ speed: speed
38
+ }), !shouldHideBackground && /*#__PURE__*/_react.default.createElement(_SmallWaitCursor.StyledSmallWaitCursorBackground, null));
39
+ };
40
+ SmallWaitCursor.displayName = 'SmallWaitCursor';
41
+ var _default = exports.default = SmallWaitCursor;
42
+ //# sourceMappingURL=SmallWaitCursor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SmallWaitCursor.js","names":["_react","_interopRequireDefault","require","_SmallWaitCursor","obj","__esModule","default","SmallWaitCursorSize","exports","SmallWaitCursorSpeed","SmallWaitCursor","_ref","color","shouldHideBackground","shouldHideWaitCursor","size","Medium","speed","createElement","StyledSmallWaitCursor","shouldShowWaitCursor","StyledSmallWaitCursorWaitCursor","StyledSmallWaitCursorBackground","displayName","_default"],"sources":["../../../src/components/small-wait-cursor/SmallWaitCursor.tsx"],"sourcesContent":["// noinspection JSUnusedGlobalSymbols\n\nimport React, { CSSProperties, FC } from 'react';\nimport {\n StyledSmallWaitCursor,\n StyledSmallWaitCursorBackground,\n StyledSmallWaitCursorWaitCursor,\n} from './SmallWaitCursor.styles';\n\nexport enum SmallWaitCursorSize {\n Small = 16,\n Medium = 30,\n}\n\nexport enum SmallWaitCursorSpeed {\n Slow = 1.5,\n Medium = 1,\n Fast = 0.5,\n}\n\nexport type SmallWaitCursorProps = {\n color?: CSSProperties['color'];\n /**\n * Specifies whether the wait cursor should be displayed with a background.\n */\n shouldHideBackground?: boolean;\n /**\n * Specifies whether the wait cursor should be displayed.\n */\n shouldHideWaitCursor?: boolean;\n /**\n * The size of the wait cursor in pixels. Use the SmallWaitCursorSize enum for this prop.\n */\n size?: SmallWaitCursorSize;\n /**\n * The speed of the animation in seconds. Use the SmallWaitCursorSpeed enum for this prop.\n */\n speed?: SmallWaitCursorSpeed;\n};\n\nconst SmallWaitCursor: FC<SmallWaitCursorProps> = ({\n color,\n shouldHideBackground = false,\n shouldHideWaitCursor = false,\n size = SmallWaitCursorSize.Medium,\n speed = SmallWaitCursorSpeed.Medium,\n}) => (\n <StyledSmallWaitCursor shouldShowWaitCursor={!shouldHideWaitCursor} size={size}>\n <StyledSmallWaitCursorWaitCursor\n color={color}\n shouldHideBackground={shouldHideBackground}\n size={size}\n speed={speed}\n />\n {!shouldHideBackground && <StyledSmallWaitCursorBackground />}\n </StyledSmallWaitCursor>\n);\n\nSmallWaitCursor.displayName = 'SmallWaitCursor';\n\nexport default SmallWaitCursor;\n"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AAIkC,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAPlC;AAAA,IASYG,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,0BAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAA,OAAnBA,mBAAmB;AAAA;AAAA,IAKnBE,oBAAoB,GAAAD,OAAA,CAAAC,oBAAA,0BAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA;AA0BhC,MAAMC,eAAyC,GAAGC,IAAA;EAAA,IAAC;IAC/CC,KAAK;IACLC,oBAAoB,GAAG,KAAK;IAC5BC,oBAAoB,GAAG,KAAK;IAC5BC,IAAI,GAAGR,mBAAmB,CAACS,MAAM;IACjCC,KAAK,GAAGR,oBAAoB,CAACO;EACjC,CAAC,GAAAL,IAAA;EAAA,oBACGX,MAAA,CAAAM,OAAA,CAAAY,aAAA,CAACf,gBAAA,CAAAgB,qBAAqB;IAACC,oBAAoB,EAAE,CAACN,oBAAqB;IAACC,IAAI,EAAEA;EAAK,gBAC3Ef,MAAA,CAAAM,OAAA,CAAAY,aAAA,CAACf,gBAAA,CAAAkB,+BAA+B;IAC5BT,KAAK,EAAEA,KAAM;IACbC,oBAAoB,EAAEA,oBAAqB;IAC3CE,IAAI,EAAEA,IAAK;IACXE,KAAK,EAAEA;EAAM,CAChB,CAAC,EACD,CAACJ,oBAAoB,iBAAIb,MAAA,CAAAM,OAAA,CAAAY,aAAA,CAACf,gBAAA,CAAAmB,+BAA+B,MAAE,CACzC,CAAC;AAAA,CAC3B;AAEDZ,eAAe,CAACa,WAAW,GAAG,iBAAiB;AAAC,IAAAC,QAAA,GAAAhB,OAAA,CAAAF,OAAA,GAEjCI,eAAe"}
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import type { WithTheme } from '../color-scheme-provider/ColorSchemeProvider';
3
+ import type { SmallWaitCursorProps, SmallWaitCursorSize, SmallWaitCursorSpeed } from './SmallWaitCursor';
4
+ type StyledSmallWaitCursorProps = WithTheme<{
5
+ shouldShowWaitCursor: boolean;
6
+ size: SmallWaitCursorSize;
7
+ }>;
8
+ export declare const StyledSmallWaitCursor: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledSmallWaitCursorProps>>;
9
+ export declare const StyledSmallWaitCursorBackground: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
10
+ theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
11
+ }>>;
12
+ type StyledSmallWaitCursorWaitCursorProps = WithTheme<{
13
+ color: SmallWaitCursorProps['color'];
14
+ shouldHideBackground: SmallWaitCursorProps['shouldHideBackground'];
15
+ size: SmallWaitCursorSize;
16
+ speed: SmallWaitCursorSpeed;
17
+ }>;
18
+ export declare const StyledSmallWaitCursorWaitCursor: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledSmallWaitCursorWaitCursorProps>>;
19
+ export {};
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.StyledSmallWaitCursorWaitCursor = exports.StyledSmallWaitCursorBackground = exports.StyledSmallWaitCursor = void 0;
7
+ var _styledComponents = _interopRequireWildcard(require("styled-components"));
8
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
9
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
10
+ const StyledSmallWaitCursor = exports.StyledSmallWaitCursor = _styledComponents.default.div`
11
+ position: relative;
12
+ height: ${_ref => {
13
+ let {
14
+ size
15
+ } = _ref;
16
+ return size;
17
+ }}px;
18
+ width: ${_ref2 => {
19
+ let {
20
+ size
21
+ } = _ref2;
22
+ return size;
23
+ }}px;
24
+ opacity: ${_ref3 => {
25
+ let {
26
+ shouldShowWaitCursor
27
+ } = _ref3;
28
+ return shouldShowWaitCursor ? 1 : 0;
29
+ }};
30
+ `;
31
+ const StyledSmallWaitCursorBackground = exports.StyledSmallWaitCursorBackground = _styledComponents.default.div`
32
+ background-color: ${_ref4 => {
33
+ let {
34
+ theme
35
+ } = _ref4;
36
+ return theme['100'];
37
+ }};
38
+ border-radius: 50%;
39
+ height: 100%;
40
+ width: 100%;
41
+ position: relative;
42
+ z-index: 1;
43
+ `;
44
+ const spin = (0, _styledComponents.keyframes)`
45
+ from {
46
+ transform: rotate(0deg);
47
+ }
48
+ to {
49
+ transform: rotate(360deg);
50
+ }
51
+ `;
52
+ const StyledSmallWaitCursorWaitCursor = exports.StyledSmallWaitCursorWaitCursor = _styledComponents.default.div`
53
+ position: absolute;
54
+ top: ${_ref5 => {
55
+ let {
56
+ shouldHideBackground
57
+ } = _ref5;
58
+ return shouldHideBackground ? 0 : 5;
59
+ }}px;
60
+ left: ${_ref6 => {
61
+ let {
62
+ shouldHideBackground
63
+ } = _ref6;
64
+ return shouldHideBackground ? 0 : 5;
65
+ }}px;
66
+ z-index: 2;
67
+ border-style: solid;
68
+ border-width: 3px;
69
+ border-color: ${_ref7 => {
70
+ let {
71
+ color,
72
+ theme
73
+ } = _ref7;
74
+ return color ?? theme.headline;
75
+ }};
76
+ height: ${_ref8 => {
77
+ let {
78
+ shouldHideBackground,
79
+ size
80
+ } = _ref8;
81
+ return shouldHideBackground ? '100%' : `${size - 10}px`;
82
+ }};
83
+ width: ${_ref9 => {
84
+ let {
85
+ shouldHideBackground,
86
+ size
87
+ } = _ref9;
88
+ return shouldHideBackground ? '100%' : `${size - 10}px`;
89
+ }};
90
+ border-radius: 50%;
91
+ display: inline-block;
92
+ border-top: 3px solid transparent;
93
+
94
+ animation: ${spin} ${_ref10 => {
95
+ let {
96
+ speed
97
+ } = _ref10;
98
+ return speed;
99
+ }}s linear infinite;
100
+ `;
101
+ //# sourceMappingURL=SmallWaitCursor.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SmallWaitCursor.styles.js","names":["_styledComponents","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","StyledSmallWaitCursor","exports","styled","div","_ref","size","_ref2","_ref3","shouldShowWaitCursor","StyledSmallWaitCursorBackground","_ref4","theme","spin","keyframes","StyledSmallWaitCursorWaitCursor","_ref5","shouldHideBackground","_ref6","_ref7","color","headline","_ref8","_ref9","_ref10","speed"],"sources":["../../../src/components/small-wait-cursor/SmallWaitCursor.styles.ts"],"sourcesContent":["import styled, { keyframes } from 'styled-components';\nimport type { WithTheme } from '../color-scheme-provider/ColorSchemeProvider';\nimport type {\n SmallWaitCursorProps,\n SmallWaitCursorSize,\n SmallWaitCursorSpeed,\n} from './SmallWaitCursor';\n\ntype StyledSmallWaitCursorProps = WithTheme<{\n shouldShowWaitCursor: boolean;\n size: SmallWaitCursorSize;\n}>;\n\nexport const StyledSmallWaitCursor = styled.div<StyledSmallWaitCursorProps>`\n position: relative;\n height: ${({ size }) => size}px;\n width: ${({ size }) => size}px;\n opacity: ${({ shouldShowWaitCursor }) => (shouldShowWaitCursor ? 1 : 0)};\n`;\n\ntype StyledSmallWaitCursorBackgroundProps = WithTheme<unknown>;\n\nexport const StyledSmallWaitCursorBackground = styled.div<StyledSmallWaitCursorBackgroundProps>`\n background-color: ${({ theme }: StyledSmallWaitCursorBackgroundProps) => theme['100']};\n border-radius: 50%;\n height: 100%;\n width: 100%;\n position: relative;\n z-index: 1;\n`;\n\ntype StyledSmallWaitCursorWaitCursorProps = WithTheme<{\n color: SmallWaitCursorProps['color'];\n shouldHideBackground: SmallWaitCursorProps['shouldHideBackground'];\n size: SmallWaitCursorSize;\n speed: SmallWaitCursorSpeed;\n}>;\n\nconst spin = keyframes`\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n`;\n\nexport const StyledSmallWaitCursorWaitCursor = styled.div<StyledSmallWaitCursorWaitCursorProps>`\n position: absolute;\n top: ${({ shouldHideBackground }) => (shouldHideBackground ? 0 : 5)}px;\n left: ${({ shouldHideBackground }) => (shouldHideBackground ? 0 : 5)}px;\n z-index: 2;\n border-style: solid;\n border-width: 3px;\n border-color: ${({ color, theme }: StyledSmallWaitCursorWaitCursorProps) =>\n color ?? theme.headline};\n height: ${({ shouldHideBackground, size }) =>\n shouldHideBackground ? '100%' : `${size - 10}px`};\n width: ${({ shouldHideBackground, size }) =>\n shouldHideBackground ? '100%' : `${size - 10}px`};\n border-radius: 50%;\n display: inline-block;\n border-top: 3px solid transparent;\n\n animation: ${spin} ${({ speed }) => speed}s linear infinite;\n`;\n"],"mappings":"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"}
@@ -0,0 +1,29 @@
1
+ import { ChangeEventHandler, CSSProperties, FC, FocusEventHandler, ReactElement } from 'react';
2
+ export type TextAreaProps = {
3
+ /**
4
+ * The maximum height of the text area.
5
+ */
6
+ maxHeight?: CSSProperties['maxHeight'];
7
+ /**
8
+ * The minimum height of the text area.
9
+ */
10
+ minHeight?: CSSProperties['minHeight'];
11
+ /**
12
+ * Function that is executed when the text area loses focus.
13
+ */
14
+ onBlur?: FocusEventHandler<HTMLTextAreaElement>;
15
+ /**
16
+ * Function that is executed when the text of the text area changes.
17
+ */
18
+ onChange?: ChangeEventHandler<HTMLTextAreaElement>;
19
+ /**
20
+ * Placeholder for the text area field.
21
+ */
22
+ placeholder?: string | ReactElement;
23
+ /**
24
+ * Value if the text area should be controlled.
25
+ */
26
+ value?: string;
27
+ };
28
+ declare const TextArea: FC<TextAreaProps>;
29
+ export default TextArea;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _TextArea = require("./TextArea.styles");
9
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
10
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
+ const TextArea = _ref => {
12
+ let {
13
+ placeholder,
14
+ value,
15
+ onChange,
16
+ onBlur,
17
+ maxHeight = '120px',
18
+ minHeight = '41px'
19
+ } = _ref;
20
+ const [displayedValue, setDisplayedValue] = (0, _react.useState)('');
21
+ const [isOverflowing, setIsOverflowing] = (0, _react.useState)(false);
22
+ const textareaRef = (0, _react.useRef)(null);
23
+ const adjustTextareaHeight = (0, _react.useCallback)(() => {
24
+ if (textareaRef.current) {
25
+ textareaRef.current.style.height = 'auto';
26
+ textareaRef.current.style.height = `${textareaRef.current.scrollHeight}px`;
27
+ setIsOverflowing(textareaRef.current.scrollHeight > parseInt(maxHeight.toString(), 10));
28
+ }
29
+ }, [maxHeight]);
30
+
31
+ /**
32
+ * This hook calculates the height of the TextArea after the displayValue is changed and the content is inside the "textareaRef".
33
+ * To maintain the functionality while clearing the input, the length need to be greater than -1.
34
+ */
35
+ (0, _react.useEffect)(() => {
36
+ if (displayedValue.length > -1) {
37
+ adjustTextareaHeight();
38
+ }
39
+ }, [adjustTextareaHeight, displayedValue]);
40
+
41
+ /**
42
+ * This function sets the external value
43
+ */
44
+ (0, _react.useEffect)(() => {
45
+ if (typeof value === 'string') {
46
+ setDisplayedValue(value);
47
+ }
48
+ }, [value]);
49
+
50
+ /**
51
+ * This function updates the value
52
+ */
53
+ const handleChange = (0, _react.useCallback)(event => {
54
+ setDisplayedValue(event.target.value);
55
+ if (onChange) {
56
+ onChange(event);
57
+ }
58
+ }, [onChange]);
59
+ return (0, _react.useMemo)(() => /*#__PURE__*/_react.default.createElement(_TextArea.StyledTextArea, null, /*#__PURE__*/_react.default.createElement(_TextArea.StyledTextAreaInput, {
60
+ ref: textareaRef,
61
+ value: displayedValue,
62
+ onBlur: onBlur,
63
+ onChange: handleChange,
64
+ maxHeight: maxHeight,
65
+ minHeight: minHeight,
66
+ isOverflowing: isOverflowing,
67
+ rows: 1
68
+ }), !displayedValue && /*#__PURE__*/_react.default.createElement(_TextArea.StyledTextAreaLabel, null, placeholder)), [displayedValue, handleChange, isOverflowing, maxHeight, onBlur, placeholder]);
69
+ };
70
+ TextArea.displayName = 'TextArea';
71
+ var _default = exports.default = TextArea;
72
+ //# sourceMappingURL=TextArea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextArea.js","names":["_react","_interopRequireWildcard","require","_TextArea","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","TextArea","_ref","placeholder","value","onChange","onBlur","maxHeight","minHeight","displayedValue","setDisplayedValue","useState","isOverflowing","setIsOverflowing","textareaRef","useRef","adjustTextareaHeight","useCallback","current","style","height","scrollHeight","parseInt","toString","useEffect","length","handleChange","event","target","useMemo","createElement","StyledTextArea","StyledTextAreaInput","ref","rows","StyledTextAreaLabel","displayName","_default","exports"],"sources":["../../../src/components/text-area/TextArea.tsx"],"sourcesContent":["import React, {\n ChangeEvent,\n ChangeEventHandler,\n CSSProperties,\n FC,\n FocusEventHandler,\n ReactElement,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport { StyledTextArea, StyledTextAreaInput, StyledTextAreaLabel } from './TextArea.styles';\n\nexport type TextAreaProps = {\n /**\n * The maximum height of the text area.\n */\n maxHeight?: CSSProperties['maxHeight'];\n /**\n * The minimum height of the text area.\n */\n minHeight?: CSSProperties['minHeight'];\n /**\n * Function that is executed when the text area loses focus.\n */\n onBlur?: FocusEventHandler<HTMLTextAreaElement>;\n /**\n * Function that is executed when the text of the text area changes.\n */\n onChange?: ChangeEventHandler<HTMLTextAreaElement>;\n /**\n * Placeholder for the text area field.\n */\n placeholder?: string | ReactElement;\n /**\n * Value if the text area should be controlled.\n */\n value?: string;\n};\n\nconst TextArea: FC<TextAreaProps> = ({\n placeholder,\n value,\n onChange,\n onBlur,\n maxHeight = '120px',\n minHeight = '41px',\n}) => {\n const [displayedValue, setDisplayedValue] = useState('');\n const [isOverflowing, setIsOverflowing] = useState(false);\n\n const textareaRef = useRef<HTMLTextAreaElement>(null);\n\n const adjustTextareaHeight = useCallback(() => {\n if (textareaRef.current) {\n textareaRef.current.style.height = 'auto';\n textareaRef.current.style.height = `${textareaRef.current.scrollHeight}px`;\n\n setIsOverflowing(textareaRef.current.scrollHeight > parseInt(maxHeight.toString(), 10));\n }\n }, [maxHeight]);\n\n /**\n * This hook calculates the height of the TextArea after the displayValue is changed and the content is inside the \"textareaRef\".\n * To maintain the functionality while clearing the input, the length need to be greater than -1.\n */\n useEffect(() => {\n if (displayedValue.length > -1) {\n adjustTextareaHeight();\n }\n }, [adjustTextareaHeight, displayedValue]);\n\n /**\n * This function sets the external value\n */\n useEffect(() => {\n if (typeof value === 'string') {\n setDisplayedValue(value);\n }\n }, [value]);\n\n /**\n * This function updates the value\n */\n const handleChange = useCallback(\n (event: ChangeEvent<HTMLTextAreaElement>) => {\n setDisplayedValue(event.target.value);\n\n if (onChange) {\n onChange(event);\n }\n },\n [onChange],\n );\n\n return useMemo(\n () => (\n <StyledTextArea>\n <StyledTextAreaInput\n ref={textareaRef}\n value={displayedValue}\n onBlur={onBlur}\n onChange={handleChange}\n maxHeight={maxHeight}\n minHeight={minHeight}\n isOverflowing={isOverflowing}\n rows={1}\n />\n {!displayedValue && <StyledTextAreaLabel>{placeholder}</StyledTextAreaLabel>}\n </StyledTextArea>\n ),\n [displayedValue, handleChange, isOverflowing, maxHeight, onBlur, placeholder],\n );\n};\n\nTextArea.displayName = 'TextArea';\n\nexport default TextArea;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAaA,IAAAC,SAAA,GAAAD,OAAA;AAA6F,SAAAE,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAJ,wBAAAI,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAI,CAAA,KAAAA,CAAA,CAAAX,GAAA,IAAAW,CAAA,CAAAC,GAAA,IAAAR,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAI,CAAA,IAAAV,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAgB,GAAA,CAAAnB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AA6B7F,MAAMY,QAA2B,GAAGC,IAAA,IAO9B;EAAA,IAP+B;IACjCC,WAAW;IACXC,KAAK;IACLC,QAAQ;IACRC,MAAM;IACNC,SAAS,GAAG,OAAO;IACnBC,SAAS,GAAG;EAChB,CAAC,GAAAN,IAAA;EACG,MAAM,CAACO,cAAc,EAAEC,iBAAiB,CAAC,GAAG,IAAAC,eAAQ,EAAC,EAAE,CAAC;EACxD,MAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAG,IAAAF,eAAQ,EAAC,KAAK,CAAC;EAEzD,MAAMG,WAAW,GAAG,IAAAC,aAAM,EAAsB,IAAI,CAAC;EAErD,MAAMC,oBAAoB,GAAG,IAAAC,kBAAW,EAAC,MAAM;IAC3C,IAAIH,WAAW,CAACI,OAAO,EAAE;MACrBJ,WAAW,CAACI,OAAO,CAACC,KAAK,CAACC,MAAM,GAAG,MAAM;MACzCN,WAAW,CAACI,OAAO,CAACC,KAAK,CAACC,MAAM,GAAI,GAAEN,WAAW,CAACI,OAAO,CAACG,YAAa,IAAG;MAE1ER,gBAAgB,CAACC,WAAW,CAACI,OAAO,CAACG,YAAY,GAAGC,QAAQ,CAACf,SAAS,CAACgB,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAC3F;EACJ,CAAC,EAAE,CAAChB,SAAS,CAAC,CAAC;;EAEf;AACJ;AACA;AACA;EACI,IAAAiB,gBAAS,EAAC,MAAM;IACZ,IAAIf,cAAc,CAACgB,MAAM,GAAG,CAAC,CAAC,EAAE;MAC5BT,oBAAoB,CAAC,CAAC;IAC1B;EACJ,CAAC,EAAE,CAACA,oBAAoB,EAAEP,cAAc,CAAC,CAAC;;EAE1C;AACJ;AACA;EACI,IAAAe,gBAAS,EAAC,MAAM;IACZ,IAAI,OAAOpB,KAAK,KAAK,QAAQ,EAAE;MAC3BM,iBAAiB,CAACN,KAAK,CAAC;IAC5B;EACJ,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;;EAEX;AACJ;AACA;EACI,MAAMsB,YAAY,GAAG,IAAAT,kBAAW,EAC3BU,KAAuC,IAAK;IACzCjB,iBAAiB,CAACiB,KAAK,CAACC,MAAM,CAACxB,KAAK,CAAC;IAErC,IAAIC,QAAQ,EAAE;MACVA,QAAQ,CAACsB,KAAK,CAAC;IACnB;EACJ,CAAC,EACD,CAACtB,QAAQ,CACb,CAAC;EAED,OAAO,IAAAwB,cAAO,EACV,mBACIrD,MAAA,CAAAU,OAAA,CAAA4C,aAAA,CAACnD,SAAA,CAAAoD,cAAc,qBACXvD,MAAA,CAAAU,OAAA,CAAA4C,aAAA,CAACnD,SAAA,CAAAqD,mBAAmB;IAChBC,GAAG,EAAEnB,WAAY;IACjBV,KAAK,EAAEK,cAAe;IACtBH,MAAM,EAAEA,MAAO;IACfD,QAAQ,EAAEqB,YAAa;IACvBnB,SAAS,EAAEA,SAAU;IACrBC,SAAS,EAAEA,SAAU;IACrBI,aAAa,EAAEA,aAAc;IAC7BsB,IAAI,EAAE;EAAE,CACX,CAAC,EACD,CAACzB,cAAc,iBAAIjC,MAAA,CAAAU,OAAA,CAAA4C,aAAA,CAACnD,SAAA,CAAAwD,mBAAmB,QAAEhC,WAAiC,CAC/D,CACnB,EACD,CAACM,cAAc,EAAEiB,YAAY,EAAEd,aAAa,EAAEL,SAAS,EAAED,MAAM,EAAEH,WAAW,CAChF,CAAC;AACL,CAAC;AAEDF,QAAQ,CAACmC,WAAW,GAAG,UAAU;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAApD,OAAA,GAEnBe,QAAQ"}
@@ -0,0 +1,13 @@
1
+ import type { CSSProperties } from 'react';
2
+ import type { WithTheme } from '../color-scheme-provider/ColorSchemeProvider';
3
+ export declare const StyledTextArea: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
4
+ type StyledTextAreaInputProps = WithTheme<{
5
+ maxHeight: CSSProperties['maxHeight'];
6
+ minHeight: CSSProperties['minHeight'];
7
+ isOverflowing: boolean;
8
+ }>;
9
+ export declare const StyledTextAreaInput: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, StyledTextAreaInputProps>>;
10
+ export declare const StyledTextAreaLabel: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
11
+ theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
12
+ }>>;
13
+ export {};
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.StyledTextAreaLabel = exports.StyledTextAreaInput = exports.StyledTextArea = void 0;
7
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ const StyledTextArea = exports.StyledTextArea = _styledComponents.default.div`
10
+ display: flex;
11
+ flex: 1 1 auto;
12
+ min-width: 0;
13
+ position: relative;
14
+ `;
15
+ const StyledTextAreaInput = exports.StyledTextAreaInput = _styledComponents.default.textarea`
16
+ border-radius: 3px;
17
+ border: 1px solid rgba(160, 160, 160, 0.3);
18
+ background-color: ${_ref => {
19
+ let {
20
+ theme
21
+ } = _ref;
22
+ return theme['100'];
23
+ }};
24
+ color: ${_ref2 => {
25
+ let {
26
+ theme
27
+ } = _ref2;
28
+ return theme.text;
29
+ }};
30
+ resize: none;
31
+ overflow-y: ${_ref3 => {
32
+ let {
33
+ isOverflowing
34
+ } = _ref3;
35
+ return isOverflowing ? 'scroll' : 'hidden';
36
+ }};
37
+ max-height: ${_ref4 => {
38
+ let {
39
+ maxHeight
40
+ } = _ref4;
41
+ return maxHeight;
42
+ }};
43
+ min-height: ${_ref5 => {
44
+ let {
45
+ minHeight
46
+ } = _ref5;
47
+ return minHeight;
48
+ }};
49
+ width: 100%;
50
+ padding: 8px 10px;
51
+
52
+ &::-webkit-scrollbar {
53
+ width: 5px;
54
+ }
55
+
56
+ &::-webkit-scrollbar-thumb {
57
+ background: rgba(160, 160, 160, 1);
58
+ border-radius: 3px;
59
+ }
60
+ `;
61
+ const StyledTextAreaLabel = exports.StyledTextAreaLabel = _styledComponents.default.label`
62
+ color: rgba(${_ref6 => {
63
+ let {
64
+ theme
65
+ } = _ref6;
66
+ return theme['text-rgb'];
67
+ }}, 0.45);
68
+ left: 10px;
69
+ top: 12px;
70
+ align-items: baseline;
71
+ display: flex;
72
+ flex: 0 0 auto;
73
+ gap: 4px;
74
+ line-height: 1.3;
75
+ pointer-events: none;
76
+ position: absolute;
77
+ user-select: none;
78
+ `;
79
+ //# sourceMappingURL=TextArea.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextArea.styles.js","names":["_styledComponents","_interopRequireDefault","require","obj","__esModule","default","StyledTextArea","exports","styled","div","StyledTextAreaInput","textarea","_ref","theme","_ref2","text","_ref3","isOverflowing","_ref4","maxHeight","_ref5","minHeight","StyledTextAreaLabel","label","_ref6"],"sources":["../../../src/components/text-area/TextArea.styles.ts"],"sourcesContent":["import type { CSSProperties } from 'react';\nimport styled from 'styled-components';\nimport type { WithTheme } from '../color-scheme-provider/ColorSchemeProvider';\n\nexport const StyledTextArea = styled.div`\n display: flex;\n flex: 1 1 auto;\n min-width: 0;\n position: relative;\n`;\n\ntype StyledTextAreaInputProps = WithTheme<{\n maxHeight: CSSProperties['maxHeight'];\n minHeight: CSSProperties['minHeight'];\n isOverflowing: boolean;\n}>;\n\nexport const StyledTextAreaInput = styled.textarea<StyledTextAreaInputProps>`\n border-radius: 3px;\n border: 1px solid rgba(160, 160, 160, 0.3);\n background-color: ${({ theme }: StyledTextAreaInputProps) => theme['100']};\n color: ${({ theme }: StyledTextAreaInputProps) => theme.text};\n resize: none;\n overflow-y: ${({ isOverflowing }) => (isOverflowing ? 'scroll' : 'hidden')};\n max-height: ${({ maxHeight }: StyledTextAreaInputProps) => maxHeight};\n min-height: ${({ minHeight }: StyledTextAreaInputProps) => minHeight};\n width: 100%;\n padding: 8px 10px;\n\n &::-webkit-scrollbar {\n width: 5px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: rgba(160, 160, 160, 1);\n border-radius: 3px;\n }\n`;\n\ntype StyledTextAreaLabelProps = WithTheme<unknown>;\n\nexport const StyledTextAreaLabel = styled.label<StyledTextAreaLabelProps>`\n color: rgba(${({ theme }: StyledTextAreaLabelProps) => theme['text-rgb']}, 0.45);\n left: 10px;\n top: 12px;\n align-items: baseline;\n display: flex;\n flex: 0 0 auto;\n gap: 4px;\n line-height: 1.3;\n pointer-events: none;\n position: absolute;\n user-select: none;\n`;\n"],"mappings":";;;;;;AACA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAuC,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAGhC,MAAMG,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAGE,yBAAM,CAACC,GAAI;AACzC;AACA;AACA;AACA;AACA,CAAC;AAQM,MAAMC,mBAAmB,GAAAH,OAAA,CAAAG,mBAAA,GAAGF,yBAAM,CAACG,QAAmC;AAC7E;AACA;AACA,wBAAwBC,IAAA;EAAA,IAAC;IAAEC;EAAgC,CAAC,GAAAD,IAAA;EAAA,OAAKC,KAAK,CAAC,KAAK,CAAC;AAAA,CAAC;AAC9E,aAAaC,KAAA;EAAA,IAAC;IAAED;EAAgC,CAAC,GAAAC,KAAA;EAAA,OAAKD,KAAK,CAACE,IAAI;AAAA,CAAC;AACjE;AACA,kBAAkBC,KAAA;EAAA,IAAC;IAAEC;EAAc,CAAC,GAAAD,KAAA;EAAA,OAAMC,aAAa,GAAG,QAAQ,GAAG,QAAQ;AAAA,CAAE;AAC/E,kBAAkBC,KAAA;EAAA,IAAC;IAAEC;EAAoC,CAAC,GAAAD,KAAA;EAAA,OAAKC,SAAS;AAAA,CAAC;AACzE,kBAAkBC,KAAA;EAAA,IAAC;IAAEC;EAAoC,CAAC,GAAAD,KAAA;EAAA,OAAKC,SAAS;AAAA,CAAC;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAIM,MAAMC,mBAAmB,GAAAf,OAAA,CAAAe,mBAAA,GAAGd,yBAAM,CAACe,KAAgC;AAC1E,kBAAkBC,KAAA;EAAA,IAAC;IAAEX;EAAgC,CAAC,GAAAW,KAAA;EAAA,OAAKX,KAAK,CAAC,UAAU,CAAC;AAAA,CAAC;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import type { ITooltipItem } from './interface';
3
+ export type TooltipProps = {
4
+ /**
5
+ * The elements that the tooltip should surround.
6
+ */
7
+ children: ReactNode;
8
+ /**
9
+ * The content that should be displayed.
10
+ */
11
+ item: ITooltipItem;
12
+ /**
13
+ * whether the tooltip should be shown.
14
+ */
15
+ isDisabled?: boolean;
16
+ };
17
+ declare const Tooltip: FC<TooltipProps>;
18
+ export default Tooltip;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _Popup = _interopRequireDefault(require("../popup/Popup"));
9
+ var _TooltipItem = _interopRequireDefault(require("./tooltip-item/TooltipItem"));
10
+ var _Tooltip = require("./Tooltip.styles");
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
+ const Tooltip = _ref => {
15
+ let {
16
+ item,
17
+ children,
18
+ isDisabled
19
+ } = _ref;
20
+ const tooltipRef = (0, _react.useRef)(null);
21
+ return (0, _react.useMemo)(() => /*#__PURE__*/_react.default.createElement(_Tooltip.StyledTooltip, null, isDisabled ? children : /*#__PURE__*/_react.default.createElement(_Popup.default, {
22
+ shouldShowOnHover: true,
23
+ content: /*#__PURE__*/_react.default.createElement(_TooltipItem.default, {
24
+ text: item.text,
25
+ headline: item.headline
26
+ }),
27
+ ref: tooltipRef
28
+ }, children)), [isDisabled, children, item]);
29
+ };
30
+ Tooltip.displayName = 'Tooltip';
31
+ var _default = exports.default = Tooltip;
32
+ //# sourceMappingURL=Tooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.js","names":["_react","_interopRequireWildcard","require","_Popup","_interopRequireDefault","_TooltipItem","_Tooltip","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","Tooltip","_ref","item","children","isDisabled","tooltipRef","useRef","useMemo","createElement","StyledTooltip","shouldShowOnHover","content","text","headline","ref","displayName","_default","exports"],"sources":["../../../src/components/tooltip/Tooltip.tsx"],"sourcesContent":["import React, { FC, ReactNode, useMemo, useRef } from 'react';\nimport Popup from '../popup/Popup';\nimport type { PopupRef } from '../popup/types';\nimport type { ITooltipItem } from './interface';\nimport TooltipItem from './tooltip-item/TooltipItem';\nimport { StyledTooltip } from './Tooltip.styles';\n\nexport type TooltipProps = {\n /**\n * The elements that the tooltip should surround.\n */\n children: ReactNode;\n /**\n * The content that should be displayed.\n */\n item: ITooltipItem;\n /**\n * whether the tooltip should be shown.\n */\n isDisabled?: boolean;\n};\n\nconst Tooltip: FC<TooltipProps> = ({ item, children, isDisabled }) => {\n const tooltipRef = useRef<PopupRef>(null);\n\n return useMemo(\n () => (\n <StyledTooltip>\n {isDisabled ? (\n children\n ) : (\n <Popup\n shouldShowOnHover\n content={<TooltipItem text={item.text} headline={item.headline} />}\n ref={tooltipRef}\n >\n {children}\n </Popup>\n )}\n </StyledTooltip>\n ),\n [isDisabled, children, item]\n );\n};\n\nTooltip.displayName = 'Tooltip';\n\nexport default Tooltip;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,YAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAAiD,SAAAE,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAV,wBAAAU,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAH,UAAA,SAAAG,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAF,OAAA,EAAAE,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAJ,CAAA,UAAAG,CAAA,CAAAE,GAAA,CAAAL,CAAA,OAAAM,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAZ,CAAA,oBAAAY,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAY,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAX,CAAA,EAAAY,CAAA,UAAAI,CAAA,KAAAA,CAAA,CAAAX,GAAA,IAAAW,CAAA,CAAAC,GAAA,IAAAR,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAI,CAAA,IAAAV,CAAA,CAAAM,CAAA,IAAAZ,CAAA,CAAAY,CAAA,YAAAN,CAAA,CAAAR,OAAA,GAAAE,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAc,GAAA,CAAAjB,CAAA,EAAAM,CAAA,GAAAA,CAAA;AAiBjD,MAAMY,OAAyB,GAAGC,IAAA,IAAoC;EAAA,IAAnC;IAAEC,IAAI;IAAEC,QAAQ;IAAEC;EAAW,CAAC,GAAAH,IAAA;EAC7D,MAAMI,UAAU,GAAG,IAAAC,aAAM,EAAW,IAAI,CAAC;EAEzC,OAAO,IAAAC,cAAO,EACV,mBACIpC,MAAA,CAAAS,OAAA,CAAA4B,aAAA,CAAC/B,QAAA,CAAAgC,aAAa,QACTL,UAAU,GACPD,QAAQ,gBAERhC,MAAA,CAAAS,OAAA,CAAA4B,aAAA,CAAClC,MAAA,CAAAM,OAAK;IACF8B,iBAAiB;IACjBC,OAAO,eAAExC,MAAA,CAAAS,OAAA,CAAA4B,aAAA,CAAChC,YAAA,CAAAI,OAAW;MAACgC,IAAI,EAAEV,IAAI,CAACU,IAAK;MAACC,QAAQ,EAAEX,IAAI,CAACW;IAAS,CAAE,CAAE;IACnEC,GAAG,EAAET;EAAW,GAEfF,QACE,CAEA,CAClB,EACD,CAACC,UAAU,EAAED,QAAQ,EAAED,IAAI,CAC/B,CAAC;AACL,CAAC;AAEDF,OAAO,CAACe,WAAW,GAAG,SAAS;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAArC,OAAA,GAEjBoB,OAAO"}
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledTooltip: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.StyledTooltip = void 0;
7
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ const StyledTooltip = exports.StyledTooltip = _styledComponents.default.div``;
10
+ //# sourceMappingURL=Tooltip.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.styles.js","names":["_styledComponents","_interopRequireDefault","require","obj","__esModule","default","StyledTooltip","exports","styled","div"],"sources":["../../../src/components/tooltip/Tooltip.styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nexport const StyledTooltip = styled.div``;\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAuC,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEhC,MAAMG,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAGE,yBAAM,CAACC,GAAI,EAAC"}
@@ -0,0 +1,4 @@
1
+ export interface ITooltipItem {
2
+ headline?: string;
3
+ text: string;
4
+ }
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interface.js","names":[],"sources":["../../../src/components/tooltip/interface.ts"],"sourcesContent":["export interface ITooltipItem {\n headline?: string;\n text: string;\n}\n"],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ export type TooltipProps = {
3
+ headline?: string;
4
+ text: string;
5
+ };
6
+ declare const TooltipItem: FC<TooltipProps>;
7
+ export default TooltipItem;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _TooltipItem = require("./TooltipItem.styles");
9
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
10
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
+ const TooltipItem = _ref => {
12
+ let {
13
+ headline,
14
+ text
15
+ } = _ref;
16
+ return (0, _react.useMemo)(() => /*#__PURE__*/_react.default.createElement(_TooltipItem.StyledTooltipItem, null, /*#__PURE__*/_react.default.createElement(_TooltipItem.StyledTooltipItemHeadline, null, headline), /*#__PURE__*/_react.default.createElement(_TooltipItem.StyledTooltipItemText, null, text)), [headline, text]);
17
+ };
18
+ TooltipItem.displayName = 'TooltipItem';
19
+ var _default = exports.default = TooltipItem;
20
+ //# sourceMappingURL=TooltipItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TooltipItem.js","names":["_react","_interopRequireWildcard","require","_TooltipItem","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","TooltipItem","_ref","headline","text","useMemo","createElement","StyledTooltipItem","StyledTooltipItemHeadline","StyledTooltipItemText","displayName","_default","exports"],"sources":["../../../../src/components/tooltip/tooltip-item/TooltipItem.tsx"],"sourcesContent":["import React, { FC, useMemo } from 'react';\nimport {\n StyledTooltipItem,\n StyledTooltipItemHeadline,\n StyledTooltipItemText,\n} from './TooltipItem.styles';\n\nexport type TooltipProps = {\n headline?: string;\n text: string;\n};\n\nconst TooltipItem: FC<TooltipProps> = ({ headline, text }) =>\n useMemo(\n () => (\n <StyledTooltipItem>\n <StyledTooltipItemHeadline>{headline}</StyledTooltipItemHeadline>\n <StyledTooltipItemText>{text}</StyledTooltipItemText>\n </StyledTooltipItem>\n ),\n [headline, text]\n );\n\nTooltipItem.displayName = 'TooltipItem';\n\nexport default TooltipItem;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAI8B,SAAAE,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAJ,wBAAAI,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAI,CAAA,KAAAA,CAAA,CAAAX,GAAA,IAAAW,CAAA,CAAAC,GAAA,IAAAR,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAI,CAAA,IAAAV,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAgB,GAAA,CAAAnB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAO9B,MAAMY,WAA6B,GAAGC,IAAA;EAAA,IAAC;IAAEC,QAAQ;IAAEC;EAAK,CAAC,GAAAF,IAAA;EAAA,OACrD,IAAAG,cAAO,EACH,mBACI7B,MAAA,CAAAU,OAAA,CAAAoB,aAAA,CAAC3B,YAAA,CAAA4B,iBAAiB,qBACd/B,MAAA,CAAAU,OAAA,CAAAoB,aAAA,CAAC3B,YAAA,CAAA6B,yBAAyB,QAAEL,QAAoC,CAAC,eACjE3B,MAAA,CAAAU,OAAA,CAAAoB,aAAA,CAAC3B,YAAA,CAAA8B,qBAAqB,QAAEL,IAA4B,CACrC,CACtB,EACD,CAACD,QAAQ,EAAEC,IAAI,CACnB,CAAC;AAAA;AAELH,WAAW,CAACS,WAAW,GAAG,aAAa;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA1B,OAAA,GAEzBe,WAAW"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledTooltipItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
3
+ export declare const StyledTooltipItemHeadline: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
4
+ theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
5
+ }>>;
6
+ export declare const StyledTooltipItemText: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {
7
+ theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
8
+ }>>;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.StyledTooltipItemText = exports.StyledTooltipItemHeadline = exports.StyledTooltipItem = void 0;
7
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ const StyledTooltipItem = exports.StyledTooltipItem = _styledComponents.default.div`
10
+ padding: 5px;
11
+ `;
12
+ const StyledTooltipItemHeadline = exports.StyledTooltipItemHeadline = _styledComponents.default.h5`
13
+ color: ${_ref => {
14
+ let {
15
+ theme
16
+ } = _ref;
17
+ return theme.headline;
18
+ }};
19
+ margin: 0;
20
+ `;
21
+ const StyledTooltipItemText = exports.StyledTooltipItemText = _styledComponents.default.p`
22
+ color: ${_ref2 => {
23
+ let {
24
+ theme
25
+ } = _ref2;
26
+ return theme.text;
27
+ }};
28
+ `;
29
+ //# sourceMappingURL=TooltipItem.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TooltipItem.styles.js","names":["_styledComponents","_interopRequireDefault","require","obj","__esModule","default","StyledTooltipItem","exports","styled","div","StyledTooltipItemHeadline","h5","_ref","theme","headline","StyledTooltipItemText","p","_ref2","text"],"sources":["../../../../src/components/tooltip/tooltip-item/TooltipItem.styles.ts"],"sourcesContent":["import styled from 'styled-components';\nimport type { WithTheme } from '../../color-scheme-provider/ColorSchemeProvider';\n\nexport const StyledTooltipItem = styled.div`\n padding: 5px;\n`;\n\ntype StyledTooltipItemHeadlineProps = WithTheme<unknown>;\n\nexport const StyledTooltipItemHeadline = styled.h5<StyledTooltipItemHeadlineProps>`\n color: ${({ theme }: StyledTooltipItemHeadlineProps) => theme.headline};\n margin: 0;\n`;\n\ntype StyledTooltipItemTextProps = WithTheme<unknown>;\n\nexport const StyledTooltipItemText = styled.p<StyledTooltipItemTextProps>`\n color: ${({ theme }: StyledTooltipItemTextProps) => theme.text};\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAuC,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAGhC,MAAMG,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAGE,yBAAM,CAACC,GAAI;AAC5C;AACA,CAAC;AAIM,MAAMC,yBAAyB,GAAAH,OAAA,CAAAG,yBAAA,GAAGF,yBAAM,CAACG,EAAmC;AACnF,aAAaC,IAAA;EAAA,IAAC;IAAEC;EAAsC,CAAC,GAAAD,IAAA;EAAA,OAAKC,KAAK,CAACC,QAAQ;AAAA,CAAC;AAC3E;AACA,CAAC;AAIM,MAAMC,qBAAqB,GAAAR,OAAA,CAAAQ,qBAAA,GAAGP,yBAAM,CAACQ,CAA8B;AAC1E,aAAaC,KAAA;EAAA,IAAC;IAAEJ;EAAkC,CAAC,GAAAI,KAAA;EAAA,OAAKJ,KAAK,CAACK,IAAI;AAAA,CAAC;AACnE,CAAC"}