@chayns-components/core 5.0.0-beta.29 → 5.0.0-beta.293

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 (337) 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 +28 -3
  9. package/lib/components/accordion/Accordion.js +74 -86
  10. package/lib/components/accordion/Accordion.js.map +1 -1
  11. package/lib/components/accordion/Accordion.styles.d.ts +3 -2
  12. package/lib/components/accordion/Accordion.styles.js +95 -27
  13. package/lib/components/accordion/Accordion.styles.js.map +1 -1
  14. package/lib/components/accordion/accordion-body/AccordionBody.d.ts +17 -2
  15. package/lib/components/accordion/accordion-body/AccordionBody.js +23 -15
  16. package/lib/components/accordion/accordion-body/AccordionBody.js.map +1 -1
  17. package/lib/components/accordion/accordion-body/AccordionBody.styles.d.ts +4 -1
  18. package/lib/components/accordion/accordion-body/AccordionBody.styles.js +15 -11
  19. package/lib/components/accordion/accordion-body/AccordionBody.styles.js.map +1 -1
  20. package/lib/components/accordion/accordion-content/AccordionContent.d.ts +16 -2
  21. package/lib/components/accordion/accordion-content/AccordionContent.js +14 -13
  22. package/lib/components/accordion/accordion-content/AccordionContent.js.map +1 -1
  23. package/lib/components/accordion/accordion-content/AccordionContent.styles.d.ts +2 -1
  24. package/lib/components/accordion/accordion-content/AccordionContent.styles.js +24 -15
  25. package/lib/components/accordion/accordion-content/AccordionContent.styles.js.map +1 -1
  26. package/lib/components/accordion/accordion-group/AccordionGroup.d.ts +4 -3
  27. package/lib/components/accordion/accordion-group/AccordionGroup.js +24 -51
  28. package/lib/components/accordion/accordion-group/AccordionGroup.js.map +1 -1
  29. package/lib/components/accordion/accordion-head/AccordionHead.d.ts +1 -1
  30. package/lib/components/accordion/accordion-head/AccordionHead.js +26 -55
  31. package/lib/components/accordion/accordion-head/AccordionHead.js.map +1 -1
  32. package/lib/components/accordion/accordion-head/AccordionHead.styles.js +135 -58
  33. package/lib/components/accordion/accordion-head/AccordionHead.styles.js.map +1 -1
  34. package/lib/components/accordion/accordion-intro/AccordionIntro.d.ts +8 -2
  35. package/lib/components/accordion/accordion-intro/AccordionIntro.js +5 -9
  36. package/lib/components/accordion/accordion-intro/AccordionIntro.js.map +1 -1
  37. package/lib/components/accordion/accordion-intro/AccordionIntro.styles.js +3 -10
  38. package/lib/components/accordion/accordion-intro/AccordionIntro.styles.js.map +1 -1
  39. package/lib/components/accordion/accordion-item/AccordionItem.d.ts +9 -0
  40. package/lib/components/accordion/accordion-item/AccordionItem.js +27 -0
  41. package/lib/components/accordion/accordion-item/AccordionItem.js.map +1 -0
  42. package/lib/components/accordion/accordion-item/AccordionItem.styles.d.ts +5 -0
  43. package/lib/components/accordion/accordion-item/AccordionItem.styles.js +33 -0
  44. package/lib/components/accordion/accordion-item/AccordionItem.styles.js.map +1 -0
  45. package/lib/components/accordion/utils.js +10 -12
  46. package/lib/components/accordion/utils.js.map +1 -1
  47. package/lib/components/amount-control/AmountControl.d.ts +22 -0
  48. package/lib/components/amount-control/AmountControl.js +185 -0
  49. package/lib/components/amount-control/AmountControl.js.map +1 -0
  50. package/lib/components/amount-control/AmountControl.styles.d.ts +14 -0
  51. package/lib/components/amount-control/AmountControl.styles.js +58 -0
  52. package/lib/components/amount-control/AmountControl.styles.js.map +1 -0
  53. package/lib/components/amount-control/utils.d.ts +7 -0
  54. package/lib/components/amount-control/utils.js +22 -0
  55. package/lib/components/amount-control/utils.js.map +1 -0
  56. package/lib/components/badge/Badge.d.ts +9 -1
  57. package/lib/components/badge/Badge.js +13 -14
  58. package/lib/components/badge/Badge.js.map +1 -1
  59. package/lib/components/badge/Badge.styles.d.ts +4 -1
  60. package/lib/components/badge/Badge.styles.js +22 -16
  61. package/lib/components/badge/Badge.styles.js.map +1 -1
  62. package/lib/components/button/Button.d.ts +6 -2
  63. package/lib/components/button/Button.js +66 -24
  64. package/lib/components/button/Button.js.map +1 -1
  65. package/lib/components/button/Button.styles.d.ts +2 -0
  66. package/lib/components/button/Button.styles.js +55 -26
  67. package/lib/components/button/Button.styles.js.map +1 -1
  68. package/lib/components/checkbox/Checkbox.d.ts +25 -0
  69. package/lib/components/checkbox/Checkbox.js +43 -0
  70. package/lib/components/checkbox/Checkbox.js.map +1 -0
  71. package/lib/components/checkbox/Checkbox.styles.d.ts +6 -0
  72. package/lib/components/checkbox/Checkbox.styles.js +128 -0
  73. package/lib/components/checkbox/Checkbox.styles.js.map +1 -0
  74. package/lib/components/color-scheme-provider/ColorSchemeProvider.d.ts +2 -2
  75. package/lib/components/color-scheme-provider/ColorSchemeProvider.js +45 -80
  76. package/lib/components/color-scheme-provider/ColorSchemeProvider.js.map +1 -1
  77. package/lib/components/color-scheme-provider/font.d.ts +6 -0
  78. package/lib/components/color-scheme-provider/font.js +59 -0
  79. package/lib/components/color-scheme-provider/font.js.map +1 -0
  80. package/lib/components/combobox/ComboBox.d.ts +25 -0
  81. package/lib/components/combobox/ComboBox.js +143 -0
  82. package/lib/components/combobox/ComboBox.js.map +1 -0
  83. package/lib/components/combobox/ComboBox.styles.d.ts +17 -0
  84. package/lib/components/combobox/ComboBox.styles.js +123 -0
  85. package/lib/components/combobox/ComboBox.styles.js.map +1 -0
  86. package/lib/components/combobox/combobox-item/ComboBoxItem.d.ts +18 -0
  87. package/lib/components/combobox/combobox-item/ComboBoxItem.js +29 -0
  88. package/lib/components/combobox/combobox-item/ComboBoxItem.js.map +1 -0
  89. package/lib/components/combobox/combobox-item/ComboBoxItem.styles.d.ts +6 -0
  90. package/lib/components/combobox/combobox-item/ComboBoxItem.styles.js +28 -0
  91. package/lib/components/combobox/combobox-item/ComboBoxItem.styles.js.map +1 -0
  92. package/lib/components/content-card/ContentCard.d.ts +9 -0
  93. package/lib/components/content-card/ContentCard.js +18 -0
  94. package/lib/components/content-card/ContentCard.js.map +1 -0
  95. package/lib/components/content-card/ContentCard.styles.d.ts +1 -0
  96. package/lib/components/content-card/ContentCard.styles.js +22 -0
  97. package/lib/components/content-card/ContentCard.styles.js.map +1 -0
  98. package/lib/components/context-menu/ContextMenu.d.ts +5 -5
  99. package/lib/components/context-menu/ContextMenu.js +97 -158
  100. package/lib/components/context-menu/ContextMenu.js.map +1 -1
  101. package/lib/components/context-menu/ContextMenu.styles.js +3 -10
  102. package/lib/components/context-menu/ContextMenu.styles.js.map +1 -1
  103. package/lib/components/context-menu/constants/alignment.js +3 -5
  104. package/lib/components/context-menu/constants/alignment.js.map +1 -1
  105. package/lib/components/context-menu/context-menu-content/ContextMenuContent.d.ts +1 -1
  106. package/lib/components/context-menu/context-menu-content/ContextMenuContent.js +33 -30
  107. package/lib/components/context-menu/context-menu-content/ContextMenuContent.js.map +1 -1
  108. package/lib/components/context-menu/context-menu-content/ContextMenuContent.styles.js +92 -45
  109. package/lib/components/context-menu/context-menu-content/ContextMenuContent.styles.js.map +1 -1
  110. package/lib/components/date-info/DateInfo.d.ts +40 -0
  111. package/lib/components/date-info/DateInfo.js +108 -0
  112. package/lib/components/date-info/DateInfo.js.map +1 -0
  113. package/lib/components/date-info/utils/format.d.ts +43 -0
  114. package/lib/components/date-info/utils/format.js +287 -0
  115. package/lib/components/date-info/utils/format.js.map +1 -0
  116. package/lib/components/date-info/utils/language.d.ts +1 -0
  117. package/lib/components/date-info/utils/language.js +34 -0
  118. package/lib/components/date-info/utils/language.js.map +1 -0
  119. package/lib/components/filter-button/FilterButton.d.ts +22 -0
  120. package/lib/components/filter-button/FilterButton.js +88 -0
  121. package/lib/components/filter-button/FilterButton.js.map +1 -0
  122. package/lib/components/filter-button/FilterButton.styles.d.ts +1 -0
  123. package/lib/components/filter-button/FilterButton.styles.js +14 -0
  124. package/lib/components/filter-button/FilterButton.styles.js.map +1 -0
  125. package/lib/components/filter-button/filter-button-item/FilterButtonItem.d.ts +14 -0
  126. package/lib/components/filter-button/filter-button-item/FilterButtonItem.js +47 -0
  127. package/lib/components/filter-button/filter-button-item/FilterButtonItem.js.map +1 -0
  128. package/lib/components/filter-button/filter-button-item/FilterButtonItem.styles.d.ts +26 -0
  129. package/lib/components/filter-button/filter-button-item/FilterButtonItem.styles.js +104 -0
  130. package/lib/components/filter-button/filter-button-item/FilterButtonItem.styles.js.map +1 -0
  131. package/lib/components/filter-button/types.d.ts +15 -0
  132. package/lib/components/filter-button/types.js +17 -0
  133. package/lib/components/filter-button/types.js.map +1 -0
  134. package/lib/components/grid-image/GridImage.d.ts +1 -1
  135. package/lib/components/grid-image/GridImage.js +16 -54
  136. package/lib/components/grid-image/GridImage.js.map +1 -1
  137. package/lib/components/grid-image/GridImage.styles.d.ts +3 -3
  138. package/lib/components/grid-image/GridImage.styles.js +82 -42
  139. package/lib/components/grid-image/GridImage.styles.js.map +1 -1
  140. package/lib/components/icon/Icon.d.ts +1 -1
  141. package/lib/components/icon/Icon.js +23 -36
  142. package/lib/components/icon/Icon.js.map +1 -1
  143. package/lib/components/icon/Icon.styles.d.ts +1 -1
  144. package/lib/components/icon/Icon.styles.js +61 -41
  145. package/lib/components/icon/Icon.styles.js.map +1 -1
  146. package/lib/components/icon/utils.js +2 -5
  147. package/lib/components/icon/utils.js.map +1 -1
  148. package/lib/components/input/Input.d.ts +65 -0
  149. package/lib/components/input/Input.js +119 -0
  150. package/lib/components/input/Input.js.map +1 -0
  151. package/lib/components/input/Input.styles.d.ts +15 -0
  152. package/lib/components/input/Input.styles.js +98 -0
  153. package/lib/components/input/Input.styles.js.map +1 -0
  154. package/lib/components/list/List.d.ts +1 -1
  155. package/lib/components/list/List.js +27 -66
  156. package/lib/components/list/List.js.map +1 -1
  157. package/lib/components/list/list-item/ListItem.d.ts +1 -1
  158. package/lib/components/list/list-item/ListItem.js +34 -48
  159. package/lib/components/list/list-item/ListItem.js.map +1 -1
  160. package/lib/components/list/list-item/ListItem.styles.js +44 -27
  161. package/lib/components/list/list-item/ListItem.styles.js.map +1 -1
  162. package/lib/components/list/list-item/list-item-body/ListItemBody.d.ts +4 -1
  163. package/lib/components/list/list-item/list-item-body/ListItemBody.js +31 -13
  164. package/lib/components/list/list-item/list-item-body/ListItemBody.js.map +1 -1
  165. package/lib/components/list/list-item/list-item-body/ListItemBody.styles.js +3 -10
  166. package/lib/components/list/list-item/list-item-body/ListItemBody.styles.js.map +1 -1
  167. package/lib/components/list/list-item/list-item-content/ListItemContent.js +5 -9
  168. package/lib/components/list/list-item/list-item-content/ListItemContent.js.map +1 -1
  169. package/lib/components/list/list-item/list-item-content/ListItemContent.styles.js +8 -12
  170. package/lib/components/list/list-item/list-item-content/ListItemContent.styles.js.map +1 -1
  171. package/lib/components/list/list-item/list-item-head/ListItemHead.d.ts +1 -1
  172. package/lib/components/list/list-item/list-item-head/ListItemHead.js +27 -61
  173. package/lib/components/list/list-item/list-item-head/ListItemHead.js.map +1 -1
  174. package/lib/components/list/list-item/list-item-head/ListItemHead.styles.d.ts +1 -1
  175. package/lib/components/list/list-item/list-item-head/ListItemHead.styles.js +87 -61
  176. package/lib/components/list/list-item/list-item-head/ListItemHead.styles.js.map +1 -1
  177. package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.d.ts +1 -1
  178. package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.js +5 -10
  179. package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.js.map +1 -1
  180. package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.styles.js +20 -14
  181. package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.styles.js.map +1 -1
  182. package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.d.ts +1 -1
  183. package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.js +11 -40
  184. package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.js.map +1 -1
  185. package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.styles.d.ts +1 -1
  186. package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.styles.js +37 -22
  187. package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.styles.js.map +1 -1
  188. package/lib/components/mention-finder/MentionFinder.d.ts +31 -0
  189. package/lib/components/mention-finder/MentionFinder.js +140 -0
  190. package/lib/components/mention-finder/MentionFinder.js.map +1 -0
  191. package/lib/components/mention-finder/MentionFinder.styles.d.ts +5 -0
  192. package/lib/components/mention-finder/MentionFinder.styles.js +92 -0
  193. package/lib/components/mention-finder/MentionFinder.styles.js.map +1 -0
  194. package/lib/components/mention-finder/constants/alignment.d.ts +4 -0
  195. package/lib/components/mention-finder/constants/alignment.js +12 -0
  196. package/lib/components/mention-finder/constants/alignment.js.map +1 -0
  197. package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.d.ts +10 -0
  198. package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.js +31 -0
  199. package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.js.map +1 -0
  200. package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.styles.d.ts +8 -0
  201. package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.styles.js +95 -0
  202. package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.styles.js.map +1 -0
  203. package/lib/components/number-input/NumberInput.d.ts +46 -0
  204. package/lib/components/number-input/NumberInput.js +123 -0
  205. package/lib/components/number-input/NumberInput.js.map +1 -0
  206. package/lib/components/number-input/constants/number.d.ts +4 -0
  207. package/lib/components/number-input/constants/number.js +11 -0
  208. package/lib/components/number-input/constants/number.js.map +1 -0
  209. package/lib/components/number-input/utils/number.d.ts +21 -0
  210. package/lib/components/number-input/utils/number.js +64 -0
  211. package/lib/components/number-input/utils/number.js.map +1 -0
  212. package/lib/components/popup/Popup.d.ts +26 -0
  213. package/lib/components/popup/Popup.js +153 -0
  214. package/lib/components/popup/Popup.js.map +1 -0
  215. package/lib/components/popup/Popup.styles.d.ts +4 -0
  216. package/lib/components/popup/Popup.styles.js +25 -0
  217. package/lib/components/popup/Popup.styles.js.map +1 -0
  218. package/lib/components/popup/popup-content/PopupContent.d.ts +9 -0
  219. package/lib/components/popup/popup-content/PopupContent.js +63 -0
  220. package/lib/components/popup/popup-content/PopupContent.js.map +1 -0
  221. package/lib/components/popup/popup-content/PopupContent.styles.d.ts +7 -0
  222. package/lib/components/popup/popup-content/PopupContent.styles.js +92 -0
  223. package/lib/components/popup/popup-content/PopupContent.styles.js.map +1 -0
  224. package/lib/components/popup/types.d.ts +16 -0
  225. package/lib/components/popup/types.js +16 -0
  226. package/lib/components/popup/types.js.map +1 -0
  227. package/lib/components/progress-bar/ProgressBar.d.ts +9 -0
  228. package/lib/components/progress-bar/ProgressBar.js +38 -0
  229. package/lib/components/progress-bar/ProgressBar.js.map +1 -0
  230. package/lib/components/progress-bar/ProgressBar.styles.d.ts +7 -0
  231. package/lib/components/progress-bar/ProgressBar.styles.js +36 -0
  232. package/lib/components/progress-bar/ProgressBar.styles.js.map +1 -0
  233. package/lib/components/radio-button/RadioButton.d.ts +26 -0
  234. package/lib/components/radio-button/RadioButton.js +85 -0
  235. package/lib/components/radio-button/RadioButton.js.map +1 -0
  236. package/lib/components/radio-button/RadioButton.styles.d.ts +22 -0
  237. package/lib/components/radio-button/RadioButton.styles.js +95 -0
  238. package/lib/components/radio-button/RadioButton.styles.js.map +1 -0
  239. package/lib/components/radio-button/radio-button-group/RadioButtonGroup.d.ts +17 -0
  240. package/lib/components/radio-button/radio-button-group/RadioButtonGroup.js +46 -0
  241. package/lib/components/radio-button/radio-button-group/RadioButtonGroup.js.map +1 -0
  242. package/lib/components/radio-button/types.d.ts +4 -0
  243. package/lib/components/radio-button/types.js +6 -0
  244. package/lib/components/radio-button/types.js.map +1 -0
  245. package/lib/components/scroll-view/ScrollView.d.ts +9 -0
  246. package/lib/components/scroll-view/ScrollView.js +22 -0
  247. package/lib/components/scroll-view/ScrollView.js.map +1 -0
  248. package/lib/components/scroll-view/ScrollView.styles.d.ts +6 -0
  249. package/lib/components/scroll-view/ScrollView.styles.js +26 -0
  250. package/lib/components/scroll-view/ScrollView.styles.js.map +1 -0
  251. package/lib/components/search-box/SearchBox.d.ts +30 -0
  252. package/lib/components/search-box/SearchBox.js +179 -0
  253. package/lib/components/search-box/SearchBox.js.map +1 -0
  254. package/lib/components/search-box/SearchBox.styles.d.ts +7 -0
  255. package/lib/components/search-box/SearchBox.styles.js +56 -0
  256. package/lib/components/search-box/SearchBox.styles.js.map +1 -0
  257. package/lib/components/search-box/search-box-item/SearchBoxItem.d.ts +9 -0
  258. package/lib/components/search-box/search-box-item/SearchBoxItem.js +29 -0
  259. package/lib/components/search-box/search-box-item/SearchBoxItem.js.map +1 -0
  260. package/lib/components/search-box/search-box-item/SearchBoxItem.styles.d.ts +6 -0
  261. package/lib/components/search-box/search-box-item/SearchBoxItem.styles.js +28 -0
  262. package/lib/components/search-box/search-box-item/SearchBoxItem.styles.js.map +1 -0
  263. package/lib/components/search-box/types.d.ts +4 -0
  264. package/lib/components/search-box/types.js +6 -0
  265. package/lib/components/search-box/types.js.map +1 -0
  266. package/lib/components/search-box/utils.d.ts +7 -0
  267. package/lib/components/search-box/utils.js +23 -0
  268. package/lib/components/search-box/utils.js.map +1 -0
  269. package/lib/components/search-input/SearchInput.d.ts +25 -0
  270. package/lib/components/search-input/SearchInput.js +95 -0
  271. package/lib/components/search-input/SearchInput.js.map +1 -0
  272. package/lib/components/search-input/SearchInput.styles.d.ts +4 -0
  273. package/lib/components/search-input/SearchInput.styles.js +26 -0
  274. package/lib/components/search-input/SearchInput.styles.js.map +1 -0
  275. package/lib/components/sharing-bar/SharingBar.d.ts +18 -0
  276. package/lib/components/sharing-bar/SharingBar.js +113 -0
  277. package/lib/components/sharing-bar/SharingBar.js.map +1 -0
  278. package/lib/components/sharing-bar/SharingBar.styles.d.ts +5 -0
  279. package/lib/components/sharing-bar/SharingBar.styles.js +24 -0
  280. package/lib/components/sharing-bar/SharingBar.styles.js.map +1 -0
  281. package/lib/components/slider/Slider.d.ts +21 -0
  282. package/lib/components/slider/Slider.js +51 -0
  283. package/lib/components/slider/Slider.js.map +1 -0
  284. package/lib/components/slider/Slider.styles.d.ts +8 -0
  285. package/lib/components/slider/Slider.styles.js +75 -0
  286. package/lib/components/slider/Slider.styles.js.map +1 -0
  287. package/lib/components/small-wait-cursor/SmallWaitCursor.d.ts +31 -0
  288. package/lib/components/small-wait-cursor/SmallWaitCursor.js +42 -0
  289. package/lib/components/small-wait-cursor/SmallWaitCursor.js.map +1 -0
  290. package/lib/components/small-wait-cursor/SmallWaitCursor.styles.d.ts +18 -0
  291. package/lib/components/small-wait-cursor/SmallWaitCursor.styles.js +102 -0
  292. package/lib/components/small-wait-cursor/SmallWaitCursor.styles.js.map +1 -0
  293. package/lib/components/text-area/TextArea.d.ts +25 -0
  294. package/lib/components/text-area/TextArea.js +70 -0
  295. package/lib/components/text-area/TextArea.js.map +1 -0
  296. package/lib/components/text-area/TextArea.styles.d.ts +11 -0
  297. package/lib/components/text-area/TextArea.styles.js +73 -0
  298. package/lib/components/text-area/TextArea.styles.js.map +1 -0
  299. package/lib/components/tooltip/Tooltip.d.ts +18 -0
  300. package/lib/components/tooltip/Tooltip.js +32 -0
  301. package/lib/components/tooltip/Tooltip.js.map +1 -0
  302. package/lib/components/tooltip/Tooltip.styles.d.ts +1 -0
  303. package/lib/components/tooltip/Tooltip.styles.js +10 -0
  304. package/lib/components/tooltip/Tooltip.styles.js.map +1 -0
  305. package/lib/components/tooltip/interface.d.ts +4 -0
  306. package/lib/components/tooltip/interface.js +6 -0
  307. package/lib/components/tooltip/interface.js.map +1 -0
  308. package/lib/components/tooltip/tooltip-item/TooltipItem.d.ts +7 -0
  309. package/lib/components/tooltip/tooltip-item/TooltipItem.js +20 -0
  310. package/lib/components/tooltip/tooltip-item/TooltipItem.js.map +1 -0
  311. package/lib/components/tooltip/tooltip-item/TooltipItem.styles.d.ts +7 -0
  312. package/lib/components/tooltip/tooltip-item/TooltipItem.styles.js +29 -0
  313. package/lib/components/tooltip/tooltip-item/TooltipItem.styles.js.map +1 -0
  314. package/lib/hooks/uuid.js +2 -21
  315. package/lib/hooks/uuid.js.map +1 -1
  316. package/lib/index.d.ts +33 -0
  317. package/lib/index.js +215 -27
  318. package/lib/index.js.map +1 -1
  319. package/lib/types/chayns.d.ts +56 -0
  320. package/lib/types/chayns.js +3 -5
  321. package/lib/types/chayns.js.map +1 -1
  322. package/lib/types/file.d.ts +42 -0
  323. package/lib/types/file.js +6 -0
  324. package/lib/types/file.js.map +1 -0
  325. package/lib/utils/calculate.d.ts +2 -0
  326. package/lib/utils/calculate.js +40 -0
  327. package/lib/utils/calculate.js.map +1 -0
  328. package/lib/utils/fileDialog.d.ts +7 -0
  329. package/lib/utils/fileDialog.js +74 -0
  330. package/lib/utils/fileDialog.js.map +1 -0
  331. package/lib/utils/isTobitEmployee.d.ts +1 -0
  332. package/lib/utils/isTobitEmployee.js +31 -0
  333. package/lib/utils/isTobitEmployee.js.map +1 -0
  334. package/lib/utils/uploadFile.d.ts +9 -0
  335. package/lib/utils/uploadFile.js +48 -0
  336. package/lib/utils/uploadFile.js.map +1 -0
  337. package/package.json +23 -19
@@ -0,0 +1,18 @@
1
+ import type { SmallWaitCursorProps, SmallWaitCursorSize, SmallWaitCursorSpeed } from './SmallWaitCursor';
2
+ export declare const StyledSmallWaitCursor: import("styled-components").StyledComponent<"div", any, {
3
+ shouldShowWaitCursor: boolean;
4
+ size: SmallWaitCursorSize;
5
+ } & {
6
+ theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
7
+ }, never>;
8
+ export declare const StyledSmallWaitCursorBackground: import("styled-components").StyledComponent<"div", any, {
9
+ theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
10
+ }, never>;
11
+ export declare const StyledSmallWaitCursorWaitCursor: import("styled-components").StyledComponent<"div", any, {
12
+ color: SmallWaitCursorProps['color'];
13
+ shouldHideBackground: SmallWaitCursorProps['shouldHideBackground'];
14
+ size: SmallWaitCursorSize;
15
+ speed: SmallWaitCursorSpeed;
16
+ } & {
17
+ theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
18
+ }, never>;
@@ -0,0 +1,102 @@
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
+ require("./SmallWaitCursor");
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 StyledSmallWaitCursor = exports.StyledSmallWaitCursor = _styledComponents.default.div`
12
+ position: relative;
13
+ height: ${_ref => {
14
+ let {
15
+ size
16
+ } = _ref;
17
+ return size;
18
+ }}px;
19
+ width: ${_ref2 => {
20
+ let {
21
+ size
22
+ } = _ref2;
23
+ return size;
24
+ }}px;
25
+ opacity: ${_ref3 => {
26
+ let {
27
+ shouldShowWaitCursor
28
+ } = _ref3;
29
+ return shouldShowWaitCursor ? 1 : 0;
30
+ }};
31
+ `;
32
+ const StyledSmallWaitCursorBackground = exports.StyledSmallWaitCursorBackground = _styledComponents.default.div`
33
+ background-color: ${_ref4 => {
34
+ let {
35
+ theme
36
+ } = _ref4;
37
+ return theme['100'];
38
+ }};
39
+ border-radius: 50%;
40
+ height: 100%;
41
+ width: 100%;
42
+ position: relative;
43
+ z-index: 1;
44
+ `;
45
+ const spin = (0, _styledComponents.keyframes)`
46
+ from {
47
+ transform: rotate(0deg);
48
+ }
49
+ to {
50
+ transform: rotate(360deg);
51
+ }
52
+ `;
53
+ const StyledSmallWaitCursorWaitCursor = exports.StyledSmallWaitCursorWaitCursor = _styledComponents.default.div`
54
+ position: absolute;
55
+ top: ${_ref5 => {
56
+ let {
57
+ shouldHideBackground
58
+ } = _ref5;
59
+ return shouldHideBackground ? 0 : 5;
60
+ }}px;
61
+ left: ${_ref6 => {
62
+ let {
63
+ shouldHideBackground
64
+ } = _ref6;
65
+ return shouldHideBackground ? 0 : 5;
66
+ }}px;
67
+ z-index: 2;
68
+ border-style: solid;
69
+ border-width: 3px;
70
+ border-color: ${_ref7 => {
71
+ let {
72
+ color,
73
+ theme
74
+ } = _ref7;
75
+ return color !== null && color !== void 0 ? color : theme.headline;
76
+ }};
77
+ height: ${_ref8 => {
78
+ let {
79
+ shouldHideBackground,
80
+ size
81
+ } = _ref8;
82
+ return shouldHideBackground ? '100%' : `${size - 10}px`;
83
+ }};
84
+ width: ${_ref9 => {
85
+ let {
86
+ shouldHideBackground,
87
+ size
88
+ } = _ref9;
89
+ return shouldHideBackground ? '100%' : `${size - 10}px`;
90
+ }};
91
+ border-radius: 50%;
92
+ display: inline-block;
93
+ border-top: 3px solid transparent;
94
+
95
+ animation: ${spin} ${_ref10 => {
96
+ let {
97
+ speed
98
+ } = _ref10;
99
+ return speed;
100
+ }}s linear infinite;
101
+ `;
102
+ //# 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';\nimport {} 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":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOAA,OAAA;AAAmC,SAAAC,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,SAAAH,wBAAAG,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,C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,GAAG,CAAC,GAAG,CAAC;AAAA,CAAE;AACzE;AACA;AACA;AACA,oBAAoBE,KAAA;EAAA,IAAC;IAAEC,KAAK;IAAER;EAA4C,CAAC,GAAAO,KAAA;EAAA,OACnEC,KAAK,aAALA,KAAK,cAALA,KAAK,GAAIR,KAAK,CAACS,QAAQ;AAAA,CAAC;AAChC,cAAcC,KAAA;EAAA,IAAC;IAAEL,oBAAoB;IAAEX;EAAK,CAAC,GAAAgB,KAAA;EAAA,OACrCL,oBAAoB,GAAG,MAAM,GAAI,GAAEX,IAAI,GAAG,EAAG,IAAG;AAAA,CAAC;AACzD,aAAaiB,KAAA;EAAA,IAAC;IAAEN,oBAAoB;IAAEX;EAAK,CAAC,GAAAiB,KAAA;EAAA,OACpCN,oBAAoB,GAAG,MAAM,GAAI,GAAEX,IAAI,GAAG,EAAG,IAAG;AAAA,CAAC;AACzD;AACA;AACA;AACA;AACA,iBAAiBO,IAAK,IAAGW,MAAA;EAAA,IAAC;IAAEC;EAAM,CAAC,GAAAD,MAAA;EAAA,OAAKC,KAAK;AAAA,CAAC;AAC9C,CAAC"}
@@ -0,0 +1,25 @@
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
+ * Function that is executed when the text area loses focus.
9
+ */
10
+ onBlur?: FocusEventHandler<HTMLTextAreaElement>;
11
+ /**
12
+ * Function that is executed when the text of the text area changes.
13
+ */
14
+ onChange?: ChangeEventHandler<HTMLTextAreaElement>;
15
+ /**
16
+ * Placeholder for the text area field.
17
+ */
18
+ placeholder?: string | ReactElement;
19
+ /**
20
+ * Value if the text area should be controlled.
21
+ */
22
+ value?: string;
23
+ };
24
+ declare const TextArea: FC<TextAreaProps>;
25
+ export default TextArea;
@@ -0,0 +1,70 @@
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
+ } = _ref;
19
+ const [displayedValue, setDisplayedValue] = (0, _react.useState)('');
20
+ const [isOverflowing, setIsOverflowing] = (0, _react.useState)(false);
21
+ const textareaRef = (0, _react.useRef)(null);
22
+ const adjustTextareaHeight = (0, _react.useCallback)(() => {
23
+ if (textareaRef.current) {
24
+ textareaRef.current.style.height = 'auto';
25
+ textareaRef.current.style.height = `${textareaRef.current.scrollHeight}px`;
26
+ setIsOverflowing(textareaRef.current.scrollHeight > parseInt(maxHeight.toString(), 10));
27
+ }
28
+ }, [maxHeight]);
29
+
30
+ /**
31
+ * This hook calculates the height of the TextArea after the displayValue is changed and the content is inside the "textareaRef".
32
+ * To maintain the functionality while clearing the input, the length need to be greater than -1.
33
+ */
34
+ (0, _react.useEffect)(() => {
35
+ if (displayedValue.length > -1) {
36
+ adjustTextareaHeight();
37
+ }
38
+ }, [adjustTextareaHeight, displayedValue]);
39
+
40
+ /**
41
+ * This function sets the external value
42
+ */
43
+ (0, _react.useEffect)(() => {
44
+ if (typeof value === 'string') {
45
+ setDisplayedValue(value);
46
+ }
47
+ }, [value]);
48
+
49
+ /**
50
+ * This function updates the value
51
+ */
52
+ const handleChange = (0, _react.useCallback)(event => {
53
+ setDisplayedValue(event.target.value);
54
+ if (onChange) {
55
+ onChange(event);
56
+ }
57
+ }, [onChange]);
58
+ return (0, _react.useMemo)(() => /*#__PURE__*/_react.default.createElement(_TextArea.StyledTextArea, null, /*#__PURE__*/_react.default.createElement(_TextArea.StyledTextAreaInput, {
59
+ ref: textareaRef,
60
+ value: displayedValue,
61
+ onBlur: onBlur,
62
+ onChange: handleChange,
63
+ maxHeight: maxHeight,
64
+ isOverflowing: isOverflowing,
65
+ rows: 1
66
+ }), !displayedValue && /*#__PURE__*/_react.default.createElement(_TextArea.StyledTextAreaLabel, null, placeholder)), [displayedValue, handleChange, isOverflowing, maxHeight, onBlur, placeholder]);
67
+ };
68
+ TextArea.displayName = 'TextArea';
69
+ var _default = exports.default = TextArea;
70
+ //# 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","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 * 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}) => {\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 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,CAA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,CAACL,KAAK,CAAC;IAC5B;EACJ,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;;EAEX;AACJ;AACA;EACI,MAAMqB,YAAY,GAAG,IAAAT,kBAAW,EAC3BU,KAAuC,IAAK;IACzCjB,iBAAiB,CAACiB,KAAK,CAACC,MAAM,CAACvB,KAAK,CAAC;IAErC,IAAIC,QAAQ,EAAE;MACVA,QAAQ,CAACqB,KAAK,CAAC;IACnB;EACJ,CAAC,EACD,CAACrB,QAAQ,CACb,CAAC;EAED,OAAO,IAAAuB,cAAO,EACV,mBACIpD,MAAA,CAAAU,OAAA,CAAA2C,aAAA,CAAClD,SAAA,CAAAmD,cAAc,qBACXtD,MAAA,CAAAU,OAAA,CAAA2C,aAAA,CAAClD,SAAA,CAAAoD,mBAAmB;IAChBC,GAAG,EAAEnB,WAAY;IACjBT,KAAK,EAAEI,cAAe;IACtBF,MAAM,EAAEA,MAAO;IACfD,QAAQ,EAAEoB,YAAa;IACvBlB,SAAS,EAAEA,SAAU;IACrBI,aAAa,EAAEA,aAAc;IAC7BsB,IAAI,EAAE;EAAE,CACX,CAAC,EACD,CAACzB,cAAc,iBAAIhC,MAAA,CAAAU,OAAA,CAAA2C,aAAA,CAAClD,SAAA,CAAAuD,mBAAmB,QAAE/B,WAAiC,CAC/D,CACnB,EACD,CAACK,cAAc,EAAEiB,YAAY,EAAEd,aAAa,EAAEJ,SAAS,EAAED,MAAM,EAAEH,WAAW,CAChF,CAAC;AACL,CAAC;AAEDF,QAAQ,CAACkC,WAAW,GAAG,UAAU;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAnD,OAAA,GAEnBe,QAAQ"}
@@ -0,0 +1,11 @@
1
+ import type { CSSProperties } from 'react';
2
+ export declare const StyledTextArea: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const StyledTextAreaInput: import("styled-components").StyledComponent<"textarea", any, {
4
+ maxHeight: CSSProperties['maxHeight'];
5
+ isOverflowing: boolean;
6
+ } & {
7
+ theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
8
+ }, never>;
9
+ export declare const StyledTextAreaLabel: import("styled-components").StyledComponent<"label", any, {
10
+ theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
11
+ }, never>;
@@ -0,0 +1,73 @@
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
+ width: 100%;
44
+ padding: 8px 10px;
45
+
46
+ &::-webkit-scrollbar {
47
+ width: 5px;
48
+ }
49
+
50
+ &::-webkit-scrollbar-thumb {
51
+ background: rgba(160, 160, 160, 1);
52
+ border-radius: 3px;
53
+ }
54
+ `;
55
+ const StyledTextAreaLabel = exports.StyledTextAreaLabel = _styledComponents.default.label`
56
+ color: ${_ref5 => {
57
+ let {
58
+ theme
59
+ } = _ref5;
60
+ return theme['006'];
61
+ }};
62
+ left: 10px;
63
+ top: 11px;
64
+ align-items: baseline;
65
+ display: flex;
66
+ flex: 0 0 auto;
67
+ gap: 4px;
68
+ line-height: 1.3;
69
+ pointer-events: none;
70
+ position: absolute;
71
+ user-select: none;
72
+ `;
73
+ //# 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","StyledTextAreaLabel","label","_ref5"],"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 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 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: ${({ theme }: StyledTextAreaLabelProps) => theme['006']};\n left: 10px;\n top: 11px;\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;AAOM,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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAIM,MAAMC,mBAAmB,GAAAb,OAAA,CAAAa,mBAAA,GAAGZ,yBAAM,CAACa,KAAgC;AAC1E,aAAaC,KAAA;EAAA,IAAC;IAAET;EAAgC,CAAC,GAAAS,KAAA;EAAA,OAAKT,KAAK,CAAC,KAAK,CAAC;AAAA,CAAC;AACnE;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,CA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AAA,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 @@
1
+ export declare const StyledTooltip: import("styled-components").StyledComponent<"div", any, {}, 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,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# 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,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,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,7 @@
1
+ export declare const StyledTooltipItem: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const StyledTooltipItemHeadline: import("styled-components").StyledComponent<"h5", any, {
3
+ theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
4
+ }, never>;
5
+ export declare const StyledTooltipItemText: import("styled-components").StyledComponent<"p", any, {
6
+ theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
7
+ }, never>;
@@ -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"}
package/lib/hooks/uuid.js CHANGED
@@ -4,30 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.useUuid = void 0;
7
-
8
7
  var _react = require("react");
9
-
10
8
  var _uuid = require("uuid");
11
-
12
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
13
-
14
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
15
-
16
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
17
-
18
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
19
-
20
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
21
-
22
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
-
24
- var useUuid = function useUuid() {
25
- var _useState = (0, _react.useState)((0, _uuid.v4)()),
26
- _useState2 = _slicedToArray(_useState, 1),
27
- uuid = _useState2[0];
28
-
9
+ const useUuid = () => {
10
+ const [uuid] = (0, _react.useState)((0, _uuid.v4)());
29
11
  return uuid;
30
12
  };
31
-
32
13
  exports.useUuid = useUuid;
33
14
  //# sourceMappingURL=uuid.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/uuid.ts"],"names":["useUuid","uuid"],"mappings":";;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAEO,IAAMA,OAAO,GAAG,SAAVA,OAAU,GAAM;AACzB,kBAAe,qBAAS,eAAT,CAAf;AAAA;AAAA,MAAOC,IAAP;;AAEA,SAAOA,IAAP;AACH,CAJM","sourcesContent":["import { useState } from 'react';\nimport { v4 as uuidV4 } from 'uuid';\n\nexport const useUuid = () => {\n const [uuid] = useState(uuidV4());\n\n return uuid;\n};\n"],"file":"uuid.js"}
1
+ {"version":3,"file":"uuid.js","names":["_react","require","_uuid","useUuid","uuid","useState","uuidV4","exports"],"sources":["../../src/hooks/uuid.ts"],"sourcesContent":["import { useState } from 'react';\nimport { v4 as uuidV4 } from 'uuid';\n\nexport const useUuid = () => {\n const [uuid] = useState(uuidV4());\n\n return uuid;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAEO,MAAME,OAAO,GAAGA,CAAA,KAAM;EACzB,MAAM,CAACC,IAAI,CAAC,GAAG,IAAAC,eAAQ,EAAC,IAAAC,QAAM,EAAC,CAAC,CAAC;EAEjC,OAAOF,IAAI;AACf,CAAC;AAACG,OAAA,CAAAJ,OAAA,GAAAA,OAAA"}
package/lib/index.d.ts CHANGED
@@ -2,12 +2,45 @@ export { default as Accordion } from './components/accordion/Accordion';
2
2
  export { default as AccordionContent } from './components/accordion/accordion-content/AccordionContent';
3
3
  export { default as AccordionGroup } from './components/accordion/accordion-group/AccordionGroup';
4
4
  export { default as AccordionIntro } from './components/accordion/accordion-intro/AccordionIntro';
5
+ export { default as AccordionItem } from './components/accordion/accordion-item/AccordionItem';
6
+ export { default as AmountControl } from './components/amount-control/AmountControl';
5
7
  export { default as Badge } from './components/badge/Badge';
6
8
  export { default as Button } from './components/button/Button';
9
+ export { default as Checkbox } from './components/checkbox/Checkbox';
7
10
  export { default as ColorSchemeProvider } from './components/color-scheme-provider/ColorSchemeProvider';
11
+ export type { WithTheme } from './components/color-scheme-provider/ColorSchemeProvider';
12
+ export { default as ComboBox } from './components/combobox/ComboBox';
13
+ export type { IComboBoxItem as ComboBoxItem } from './components/combobox/ComboBox';
14
+ export { default as ContentCard } from './components/content-card/ContentCard';
8
15
  export { default as ContextMenu } from './components/context-menu/ContextMenu';
16
+ export { default as DateInfo } from './components/date-info/DateInfo';
17
+ export { default as FilterButton } from './components/filter-button/FilterButton';
18
+ export type { FilterButtonItemShape, FilterButtonSize, IFilterButtonItem as FilterButtonItem, } from './components/filter-button/types';
9
19
  export { default as GridImage } from './components/grid-image/GridImage';
10
20
  export { default as Icon } from './components/icon/Icon';
21
+ export { default as Input } from './components/input/Input';
11
22
  export { default as List } from './components/list/List';
12
23
  export { default as ListItemContent } from './components/list/list-item/list-item-content/ListItemContent';
13
24
  export { default as ListItem } from './components/list/list-item/ListItem';
25
+ export { MentionFinderPopupAlignment } from './components/mention-finder/constants/alignment';
26
+ export { default as MentionFinder } from './components/mention-finder/MentionFinder';
27
+ export type { MentionMember } from './components/mention-finder/MentionFinder';
28
+ export { default as NumberInput } from './components/number-input/NumberInput';
29
+ export { default as Popup } from './components/popup/Popup';
30
+ export type { PopupRef } from './components/popup/types';
31
+ export { default as ProgressBar } from './components/progress-bar/ProgressBar';
32
+ export { default as RadioButtonGroup } from './components/radio-button/radio-button-group/RadioButtonGroup';
33
+ export { default as RadioButton } from './components/radio-button/RadioButton';
34
+ export { default as ScrollView } from './components/scroll-view/ScrollView';
35
+ export { default as SearchBox } from './components/search-box/SearchBox';
36
+ export type { ISearchBoxItem as SearchBoxItem } from './components/search-box/types';
37
+ export { default as SearchInput } from './components/search-input/SearchInput';
38
+ export { default as SharingBar } from './components/sharing-bar/SharingBar';
39
+ export { default as Slider } from './components/slider/Slider';
40
+ export { default as SmallWaitCursor, SmallWaitCursorSize, SmallWaitCursorSpeed, } from './components/small-wait-cursor/SmallWaitCursor';
41
+ export { default as TextArea } from './components/text-area/TextArea';
42
+ export { default as Tooltip } from './components/tooltip/Tooltip';
43
+ export type { FileItem, Image, Meta, Video } from './types/file';
44
+ export { selectFiles, getFileAsArrayBuffer } from './utils/fileDialog';
45
+ export { isTobitEmployee } from './utils/isTobitEmployee';
46
+ export { uploadFile } from './utils/uploadFile';