@sk-web-gui/core 3.4.0 → 3.4.2

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 (455) hide show
  1. package/dist/cjs/aria-plugin.js.map +1 -1
  2. package/dist/cjs/components/ai/ai-feed.js.map +1 -1
  3. package/dist/cjs/components/ai/ai-module.js +56 -16
  4. package/dist/cjs/components/ai/ai-module.js.map +1 -1
  5. package/dist/cjs/components/ai/assistant-presentation.js +4 -1
  6. package/dist/cjs/components/ai/assistant-presentation.js.map +1 -1
  7. package/dist/cjs/components/ai/bubble.js.map +1 -1
  8. package/dist/cjs/components/ai/feedback.js.map +1 -1
  9. package/dist/cjs/components/ai/input-section.js.map +1 -1
  10. package/dist/cjs/components/ai/markdown-rendered.js.map +1 -1
  11. package/dist/cjs/components/ai/typing-bubble.js.map +1 -1
  12. package/dist/cjs/components/ai/typing-sequence.js.map +1 -1
  13. package/dist/cjs/components/alert-banner.js +26 -0
  14. package/dist/cjs/components/alert-banner.js.map +1 -0
  15. package/dist/cjs/components/chip.js.map +1 -1
  16. package/dist/cjs/components/combobox.js.map +1 -1
  17. package/dist/cjs/components/comments.js +32 -0
  18. package/dist/cjs/components/comments.js.map +1 -0
  19. package/dist/cjs/components/context-menu.js +41 -0
  20. package/dist/cjs/components/context-menu.js.map +1 -0
  21. package/dist/cjs/components/dropdown-filter.js +60 -0
  22. package/dist/cjs/components/dropdown-filter.js.map +1 -0
  23. package/dist/cjs/components/footer.js +4 -4
  24. package/dist/cjs/components/footer.js.map +1 -1
  25. package/dist/cjs/components/forms.js.map +1 -1
  26. package/dist/cjs/components/input.js.map +1 -1
  27. package/dist/cjs/components/label.js.map +1 -1
  28. package/dist/cjs/components/list.js.map +1 -1
  29. package/dist/cjs/components/logo.js.map +1 -1
  30. package/dist/cjs/components/menu-vertical.js.map +1 -1
  31. package/dist/cjs/components/menubar.js.map +1 -1
  32. package/dist/cjs/components/notification.js +51 -0
  33. package/dist/cjs/components/notification.js.map +1 -0
  34. package/dist/cjs/components/popup-menu.js.map +1 -1
  35. package/dist/cjs/components/progress-bar.js.map +1 -1
  36. package/dist/cjs/components/progress-stepper.js.map +1 -1
  37. package/dist/cjs/components/rich-text-editor.js +233 -0
  38. package/dist/cjs/components/rich-text-editor.js.map +1 -0
  39. package/dist/cjs/components/search-field.js.map +1 -1
  40. package/dist/cjs/components/select.js.map +1 -1
  41. package/dist/cjs/components/side-menu.js +221 -0
  42. package/dist/cjs/components/side-menu.js.map +1 -0
  43. package/dist/cjs/components/spinner.js.map +1 -1
  44. package/dist/cjs/components/tab-menu.js +59 -0
  45. package/dist/cjs/components/tab-menu.js.map +1 -0
  46. package/dist/cjs/components/table-autotable.js.map +1 -1
  47. package/dist/cjs/components/tabs.js.map +1 -1
  48. package/dist/cjs/components/tooltip.js.map +1 -1
  49. package/dist/cjs/components/zebratable.js +141 -0
  50. package/dist/cjs/components/zebratable.js.map +1 -0
  51. package/dist/cjs/data-plugin.js.map +1 -1
  52. package/dist/cjs/index.js.map +1 -1
  53. package/dist/cjs/plugin.js.map +1 -1
  54. package/dist/cjs/theme.js.map +1 -1
  55. package/dist/cjs/units.js.map +1 -1
  56. package/dist/esm/aria-plugin.js.map +1 -1
  57. package/dist/esm/components/ai/ai-feed.js.map +1 -1
  58. package/dist/esm/components/ai/ai-module.js +56 -16
  59. package/dist/esm/components/ai/ai-module.js.map +1 -1
  60. package/dist/esm/components/ai/assistant-presentation.js +4 -1
  61. package/dist/esm/components/ai/assistant-presentation.js.map +1 -1
  62. package/dist/esm/components/ai/bubble.js.map +1 -1
  63. package/dist/esm/components/ai/feedback.js.map +1 -1
  64. package/dist/esm/components/ai/input-section.js.map +1 -1
  65. package/dist/esm/components/ai/markdown-rendered.js.map +1 -1
  66. package/dist/esm/components/ai/typing-bubble.js.map +1 -1
  67. package/dist/esm/components/ai/typing-sequence.js.map +1 -1
  68. package/dist/esm/components/alert-banner.js +24 -0
  69. package/dist/esm/components/alert-banner.js.map +1 -0
  70. package/dist/esm/components/chip.js.map +1 -1
  71. package/dist/esm/components/combobox.js.map +1 -1
  72. package/dist/esm/components/comments.js +30 -0
  73. package/dist/esm/components/comments.js.map +1 -0
  74. package/dist/esm/components/context-menu.js +39 -0
  75. package/dist/esm/components/context-menu.js.map +1 -0
  76. package/dist/esm/components/dropdown-filter.js +58 -0
  77. package/dist/esm/components/dropdown-filter.js.map +1 -0
  78. package/dist/esm/components/footer.js +4 -4
  79. package/dist/esm/components/footer.js.map +1 -1
  80. package/dist/esm/components/forms.js.map +1 -1
  81. package/dist/esm/components/input.js.map +1 -1
  82. package/dist/esm/components/label.js.map +1 -1
  83. package/dist/esm/components/list.js.map +1 -1
  84. package/dist/esm/components/logo.js.map +1 -1
  85. package/dist/esm/components/menu-vertical.js.map +1 -1
  86. package/dist/esm/components/menubar.js.map +1 -1
  87. package/dist/esm/components/notification.js +49 -0
  88. package/dist/esm/components/notification.js.map +1 -0
  89. package/dist/esm/components/popup-menu.js.map +1 -1
  90. package/dist/esm/components/progress-bar.js.map +1 -1
  91. package/dist/esm/components/progress-stepper.js.map +1 -1
  92. package/dist/esm/components/rich-text-editor.js +227 -0
  93. package/dist/esm/components/rich-text-editor.js.map +1 -0
  94. package/dist/esm/components/search-field.js.map +1 -1
  95. package/dist/esm/components/select.js.map +1 -1
  96. package/dist/esm/components/side-menu.js +219 -0
  97. package/dist/esm/components/side-menu.js.map +1 -0
  98. package/dist/esm/components/spinner.js.map +1 -1
  99. package/dist/esm/components/tab-menu.js +57 -0
  100. package/dist/esm/components/tab-menu.js.map +1 -0
  101. package/dist/esm/components/table-autotable.js.map +1 -1
  102. package/dist/esm/components/tabs.js.map +1 -1
  103. package/dist/esm/components/tooltip.js.map +1 -1
  104. package/dist/esm/components/zebratable.js +135 -0
  105. package/dist/esm/components/zebratable.js.map +1 -0
  106. package/dist/esm/data-plugin.js.map +1 -1
  107. package/dist/esm/index.js.map +1 -1
  108. package/dist/esm/plugin.js.map +1 -1
  109. package/dist/esm/theme.js.map +1 -1
  110. package/dist/esm/units.js.map +1 -1
  111. package/dist/types/accordion/src/accordion/accordion-item.d.ts +8 -0
  112. package/dist/types/accordion/src/accordion/accordion.d.ts +25 -0
  113. package/dist/types/accordion/src/accordion/index.d.ts +10 -0
  114. package/dist/types/accordion/src/disclosure/disclosure.d.ts +53 -0
  115. package/dist/types/accordion/src/disclosure/index.d.ts +4 -0
  116. package/dist/types/accordion/src/disclosure/styles.d.ts +1 -0
  117. package/dist/types/accordion/src/index.d.ts +4 -0
  118. package/dist/types/accordion/stories/accordion.stories.d.ts +8 -0
  119. package/dist/types/accordion/stories/disclosure.stories.d.ts +9 -0
  120. package/dist/types/avatar/index.d.ts +2 -0
  121. package/dist/types/avatar/src/avatar.d.ts +17 -0
  122. package/dist/types/avatar/src/index.d.ts +8 -0
  123. package/dist/types/avatar/stories/avatar.stories.d.ts +8 -0
  124. package/dist/types/badge/index.d.ts +2 -0
  125. package/dist/types/badge/src/badge.d.ts +12 -0
  126. package/dist/types/badge/src/index.d.ts +8 -0
  127. package/dist/types/badge/stories/badge.stories.d.ts +8 -0
  128. package/dist/types/breadcrumb/src/breadcrumb.d.ts +41 -0
  129. package/dist/types/breadcrumb/src/index.d.ts +11 -0
  130. package/dist/types/breadcrumb/stories/breadcrumb.stories.d.ts +7 -0
  131. package/dist/types/button/src/button-group.d.ts +15 -0
  132. package/dist/types/button/src/button.d.ts +49 -0
  133. package/dist/types/button/src/index.d.ts +11 -0
  134. package/dist/types/button/src/styles.d.ts +1 -0
  135. package/dist/types/button/stories/announcement.d.ts +5 -0
  136. package/dist/types/button/stories/button-group.stories.d.ts +8 -0
  137. package/dist/types/button/stories/button.stories.d.ts +7 -0
  138. package/dist/types/card/src/card.d.ts +60 -0
  139. package/dist/types/card/src/index.d.ts +21 -0
  140. package/dist/types/card/src/meta-card.d.ts +42 -0
  141. package/dist/types/card/stories/card.stories.d.ts +4 -0
  142. package/dist/types/card/stories/meta-card.stories.d.ts +4 -0
  143. package/dist/types/chip/index.d.ts +2 -0
  144. package/dist/types/chip/src/chip.d.ts +7 -0
  145. package/dist/types/chip/src/index.d.ts +4 -0
  146. package/dist/types/chip/stories/chip.stories.d.ts +12 -0
  147. package/dist/types/components/ai/ai-module.d.ts +54 -14
  148. package/dist/types/components/ai/assistant-presentation.d.ts +4 -1
  149. package/dist/types/components/alert-banner.d.ts +24 -0
  150. package/dist/types/components/comments.d.ts +30 -0
  151. package/dist/types/components/context-menu.d.ts +39 -0
  152. package/dist/types/components/dropdown-filter.d.ts +58 -0
  153. package/dist/types/components/footer.d.ts +4 -4
  154. package/dist/types/components/notification.d.ts +48 -0
  155. package/dist/types/components/rich-text-editor.d.ts +226 -0
  156. package/dist/types/components/side-menu.d.ts +219 -0
  157. package/dist/types/components/tab-menu.d.ts +57 -0
  158. package/dist/types/components/zebratable.d.ts +134 -0
  159. package/dist/types/cookie-consent/src/cookie-consent.d.ts +32 -0
  160. package/dist/types/cookie-consent/src/index.d.ts +15 -0
  161. package/dist/types/cookie-consent/stories/cookie-consent.stories.d.ts +7 -0
  162. package/dist/types/core/src/aria-plugin.d.ts +4 -0
  163. package/dist/types/core/src/base.d.ts +53 -0
  164. package/dist/types/core/src/colors.d.ts +643 -0
  165. package/dist/types/core/src/components/accordion.d.ts +174 -0
  166. package/dist/types/core/src/components/alert.d.ts +21 -0
  167. package/dist/types/core/src/components/avatar.d.ts +26 -0
  168. package/dist/types/core/src/components/badge.d.ts +21 -0
  169. package/dist/types/core/src/components/breadcrumb.d.ts +28 -0
  170. package/dist/types/core/src/components/button-group.d.ts +25 -0
  171. package/dist/types/core/src/components/button.d.ts +195 -0
  172. package/dist/types/core/src/components/card.d.ts +135 -0
  173. package/dist/types/core/src/components/checkbox.d.ts +108 -0
  174. package/dist/types/core/src/components/chip.d.ts +37 -0
  175. package/dist/types/core/src/components/code.d.ts +8 -0
  176. package/dist/types/core/src/components/combobox.d.ts +72 -0
  177. package/dist/types/core/src/components/cookie-consent.d.ts +35 -0
  178. package/dist/types/core/src/components/dialog.d.ts +5 -0
  179. package/dist/types/core/src/components/divider.d.ts +50 -0
  180. package/dist/types/core/src/components/dot.d.ts +43 -0
  181. package/dist/types/core/src/components/filter.d.ts +14 -0
  182. package/dist/types/core/src/components/footer.d.ts +27 -0
  183. package/dist/types/core/src/components/forms.d.ts +24 -0
  184. package/dist/types/core/src/components/header.d.ts +28 -0
  185. package/dist/types/core/src/components/icon.d.ts +38 -0
  186. package/dist/types/core/src/components/input.d.ts +214 -0
  187. package/dist/types/core/src/components/kbd.d.ts +7 -0
  188. package/dist/types/core/src/components/label.d.ts +27 -0
  189. package/dist/types/core/src/components/link.d.ts +43 -0
  190. package/dist/types/core/src/components/list.d.ts +52 -0
  191. package/dist/types/core/src/components/logo.d.ts +48 -0
  192. package/dist/types/core/src/components/menu-vertical.d.ts +198 -0
  193. package/dist/types/core/src/components/menubar.d.ts +35 -0
  194. package/dist/types/core/src/components/modal.d.ts +45 -0
  195. package/dist/types/core/src/components/pagination.d.ts +101 -0
  196. package/dist/types/core/src/components/popup-menu.d.ts +138 -0
  197. package/dist/types/core/src/components/progress-bar.d.ts +13 -0
  198. package/dist/types/core/src/components/progress-stepper.d.ts +60 -0
  199. package/dist/types/core/src/components/radio.d.ts +125 -0
  200. package/dist/types/core/src/components/search-field.d.ts +34 -0
  201. package/dist/types/core/src/components/select.d.ts +141 -0
  202. package/dist/types/core/src/components/snackbar.d.ts +30 -0
  203. package/dist/types/core/src/components/spinner.d.ts +13 -0
  204. package/dist/types/core/src/components/switch.d.ts +64 -0
  205. package/dist/types/core/src/components/table-autotable.d.ts +222 -0
  206. package/dist/types/core/src/components/table.d.ts +11 -0
  207. package/dist/types/core/src/components/tabs.d.ts +14 -0
  208. package/dist/types/core/src/components/tooltip.d.ts +53 -0
  209. package/dist/types/core/src/components/user-menu.d.ts +14 -0
  210. package/dist/types/core/src/data-plugin.d.ts +4 -0
  211. package/dist/types/core/src/index.d.ts +6 -0
  212. package/dist/types/core/src/plugin.d.ts +12 -0
  213. package/dist/types/core/src/preset.d.ts +18 -0
  214. package/dist/types/core/src/theme.d.ts +4 -0
  215. package/dist/types/core/src/units.d.ts +287 -0
  216. package/dist/types/core/src/with-opacity.d.ts +4 -0
  217. package/dist/types/divider/index.d.ts +2 -0
  218. package/dist/types/divider/src/divider-section.d.ts +12 -0
  219. package/dist/types/divider/src/divider.d.ts +8 -0
  220. package/dist/types/divider/src/index.d.ts +10 -0
  221. package/dist/types/divider/src/styles.d.ts +1 -0
  222. package/dist/types/divider/stories/divider-section.stories.d.ts +8 -0
  223. package/dist/types/divider/stories/divider.stories.d.ts +8 -0
  224. package/dist/types/filter/src/filter-item.d.ts +7 -0
  225. package/dist/types/filter/src/filter-label.d.ts +7 -0
  226. package/dist/types/filter/src/filter.d.ts +6 -0
  227. package/dist/types/filter/src/index.d.ts +12 -0
  228. package/dist/types/filter/stories/filter.stories.d.ts +7 -0
  229. package/dist/types/forms/index.d.ts +2 -0
  230. package/dist/types/forms/src/checkbox/checkbox-group.d.ts +46 -0
  231. package/dist/types/forms/src/checkbox/checkbox.d.ts +39 -0
  232. package/dist/types/forms/src/checkbox/index.d.ts +10 -0
  233. package/dist/types/forms/src/checkbox/styles.d.ts +2 -0
  234. package/dist/types/forms/src/combobox/combobox-context.d.ts +42 -0
  235. package/dist/types/forms/src/combobox/combobox-input.d.ts +44 -0
  236. package/dist/types/forms/src/combobox/combobox-list.d.ts +8 -0
  237. package/dist/types/forms/src/combobox/combobox-option.d.ts +11 -0
  238. package/dist/types/forms/src/combobox/combobox.d.ts +6 -0
  239. package/dist/types/forms/src/combobox/index.d.ts +15 -0
  240. package/dist/types/forms/src/combobox/styles.d.ts +1 -0
  241. package/dist/types/forms/src/date-picker/date-picker.d.ts +7 -0
  242. package/dist/types/forms/src/date-picker/index.d.ts +8 -0
  243. package/dist/types/forms/src/form-control/index.d.ts +40 -0
  244. package/dist/types/forms/src/form-error-message/index.d.ts +8 -0
  245. package/dist/types/forms/src/form-helper-text/index.d.ts +8 -0
  246. package/dist/types/forms/src/form-label/index.d.ts +20 -0
  247. package/dist/types/forms/src/index.d.ts +26 -0
  248. package/dist/types/forms/src/input/index.d.ts +13 -0
  249. package/dist/types/forms/src/input/input.d.ts +26 -0
  250. package/dist/types/forms/src/input/styles.d.ts +1 -0
  251. package/dist/types/forms/src/input-addin/index.d.ts +12 -0
  252. package/dist/types/forms/src/input-group/index.d.ts +11 -0
  253. package/dist/types/forms/src/input-group/styles.d.ts +1 -0
  254. package/dist/types/forms/src/radio/index.d.ts +10 -0
  255. package/dist/types/forms/src/radio/radio-group.d.ts +48 -0
  256. package/dist/types/forms/src/radio/radio.d.ts +32 -0
  257. package/dist/types/forms/src/radio/styles.d.ts +3 -0
  258. package/dist/types/forms/src/select/index.d.ts +18 -0
  259. package/dist/types/forms/src/select/styles.d.ts +1 -0
  260. package/dist/types/forms/src/switch/index.d.ts +8 -0
  261. package/dist/types/forms/src/switch/switchcomponent.d.ts +9 -0
  262. package/dist/types/forms/src/text-field/index.d.ts +8 -0
  263. package/dist/types/forms/src/text-field/text-field.d.ts +6 -0
  264. package/dist/types/forms/src/textarea/index.d.ts +12 -0
  265. package/dist/types/forms/stories/check.d.ts +5 -0
  266. package/dist/types/forms/stories/checkbox-group.stories.d.ts +11 -0
  267. package/dist/types/forms/stories/checkbox.stories.d.ts +8 -0
  268. package/dist/types/forms/stories/combobox.stories.d.ts +19 -0
  269. package/dist/types/forms/stories/date-picker.stories.d.ts +21 -0
  270. package/dist/types/forms/stories/form-control.stories.d.ts +10 -0
  271. package/dist/types/forms/stories/input.stories.d.ts +21 -0
  272. package/dist/types/forms/stories/radio-group.stories.d.ts +11 -0
  273. package/dist/types/forms/stories/radio.stories.d.ts +14 -0
  274. package/dist/types/forms/stories/select.stories.d.ts +10 -0
  275. package/dist/types/forms/stories/switch.stories.d.ts +8 -0
  276. package/dist/types/forms/stories/text-field.stories.d.ts +18 -0
  277. package/dist/types/forms/stories/textarea.stories.d.ts +42 -0
  278. package/dist/types/icon/index.d.ts +2 -0
  279. package/dist/types/icon/src/icon-padded.d.ts +4 -0
  280. package/dist/types/icon/src/icon.d.ts +20 -0
  281. package/dist/types/icon/src/index.d.ts +10 -0
  282. package/dist/types/icon/stories/icon-padded.stories.d.ts +8 -0
  283. package/dist/types/icon/stories/icon.stories.d.ts +8 -0
  284. package/dist/types/image/index.d.ts +2 -0
  285. package/dist/types/image/src/image.d.ts +28 -0
  286. package/dist/types/image/src/index.d.ts +4 -0
  287. package/dist/types/image/src/use-image.d.ts +52 -0
  288. package/dist/types/image/stories/image.stories.d.ts +8 -0
  289. package/dist/types/label/index.d.ts +2 -0
  290. package/dist/types/label/src/index.d.ts +8 -0
  291. package/dist/types/label/src/label.d.ts +8 -0
  292. package/dist/types/label/stories/label.stories.d.ts +8 -0
  293. package/dist/types/layout/src/footer/footer-list-item.d.ts +4 -0
  294. package/dist/types/layout/src/footer/footer-list.d.ts +4 -0
  295. package/dist/types/layout/src/footer/footer.d.ts +6 -0
  296. package/dist/types/layout/src/footer/index.d.ts +14 -0
  297. package/dist/types/layout/src/header/header.d.ts +17 -0
  298. package/dist/types/layout/src/header/index.d.ts +8 -0
  299. package/dist/types/layout/src/index.d.ts +4 -0
  300. package/dist/types/layout/stories/footer.stories.d.ts +7 -0
  301. package/dist/types/layout/stories/header.stories.d.ts +5 -0
  302. package/dist/types/link/index.d.ts +2 -0
  303. package/dist/types/link/src/index.d.ts +12 -0
  304. package/dist/types/link/src/link.d.ts +21 -0
  305. package/dist/types/link/src/styles.d.ts +1 -0
  306. package/dist/types/link/stories/link.stories.d.ts +12 -0
  307. package/dist/types/list/src/index.d.ts +12 -0
  308. package/dist/types/list/src/list.d.ts +28 -0
  309. package/dist/types/list/stories/list.stories.d.ts +7 -0
  310. package/dist/types/logo/src/assets/index.d.ts +2 -0
  311. package/dist/types/logo/src/assets/logo-svg.d.ts +2 -0
  312. package/dist/types/logo/src/assets/symbol-svg.d.ts +2 -0
  313. package/dist/types/logo/src/index.d.ts +4 -0
  314. package/dist/types/logo/src/logo.d.ts +38 -0
  315. package/dist/types/logo/stories/logo.stories.d.ts +8 -0
  316. package/dist/types/menu-vertical/src/index.d.ts +25 -0
  317. package/dist/types/menu-vertical/src/menu-vertical-backbutton.d.ts +9 -0
  318. package/dist/types/menu-vertical/src/menu-vertical-context.d.ts +62 -0
  319. package/dist/types/menu-vertical/src/menu-vertical-header.d.ts +9 -0
  320. package/dist/types/menu-vertical/src/menu-vertical-item.d.ts +26 -0
  321. package/dist/types/menu-vertical/src/menu-vertical-label.d.ts +7 -0
  322. package/dist/types/menu-vertical/src/menu-vertical-nav.d.ts +9 -0
  323. package/dist/types/menu-vertical/src/menu-vertical-sidebar.d.ts +9 -0
  324. package/dist/types/menu-vertical/src/menu-vertical-submenu-button.d.ts +25 -0
  325. package/dist/types/menu-vertical/src/menu-vertical-tool-item.d.ts +9 -0
  326. package/dist/types/menu-vertical/src/menu-vertical.d.ts +14 -0
  327. package/dist/types/menu-vertical/stories/menu-vertical-sidebar.stories.d.ts +8 -0
  328. package/dist/types/menu-vertical/stories/menu-vertical.stories.d.ts +8 -0
  329. package/dist/types/menubar/index.d.ts +2 -0
  330. package/dist/types/menubar/src/index.d.ts +11 -0
  331. package/dist/types/menubar/src/menubar-item.d.ts +15 -0
  332. package/dist/types/menubar/src/menubar.d.ts +18 -0
  333. package/dist/types/menubar/stories/menubar.stories.d.ts +7 -0
  334. package/dist/types/modal/src/confirm/confirm.d.ts +17 -0
  335. package/dist/types/modal/src/confirm/index.d.ts +1 -0
  336. package/dist/types/modal/src/dialog/dialog-buttons.d.ts +6 -0
  337. package/dist/types/modal/src/dialog/dialog-content.d.ts +6 -0
  338. package/dist/types/modal/src/dialog/dialog.d.ts +7 -0
  339. package/dist/types/modal/src/dialog/index.d.ts +12 -0
  340. package/dist/types/modal/src/index.d.ts +6 -0
  341. package/dist/types/modal/src/modal/index.d.ts +13 -0
  342. package/dist/types/modal/src/modal/modal-content.d.ts +5 -0
  343. package/dist/types/modal/src/modal/modal-footer.d.ts +5 -0
  344. package/dist/types/modal/src/modal/modal.d.ts +27 -0
  345. package/dist/types/modal/stories/confirm.stories.d.ts +10 -0
  346. package/dist/types/modal/stories/dialog.stories.d.ts +6 -0
  347. package/dist/types/modal/stories/modal.stories.d.ts +7 -0
  348. package/dist/types/pagination/src/index.d.ts +8 -0
  349. package/dist/types/pagination/src/pagination.d.ts +19 -0
  350. package/dist/types/pagination/src/styles.d.ts +1 -0
  351. package/dist/types/pagination/stories/pagination.stories.d.ts +8 -0
  352. package/dist/types/popup-menu/src/index.d.ts +18 -0
  353. package/dist/types/popup-menu/src/popup-menu-button.d.ts +2 -0
  354. package/dist/types/popup-menu/src/popup-menu-group.d.ts +5 -0
  355. package/dist/types/popup-menu/src/popup-menu-item.d.ts +11 -0
  356. package/dist/types/popup-menu/src/popup-menu-items.d.ts +20 -0
  357. package/dist/types/popup-menu/src/popup-menu-panel.d.ts +6 -0
  358. package/dist/types/popup-menu/src/popup-menu.d.ts +53 -0
  359. package/dist/types/popup-menu/src/popupmenu-context.d.ts +18 -0
  360. package/dist/types/popup-menu/src/styles.d.ts +1 -0
  361. package/dist/types/popup-menu/stories/popup-menu.stories.d.ts +9 -0
  362. package/dist/types/progress-bar/index.d.ts +2 -0
  363. package/dist/types/progress-bar/src/index.d.ts +8 -0
  364. package/dist/types/progress-bar/src/progress-bar.d.ts +18 -0
  365. package/dist/types/progress-bar/src/styles.d.ts +0 -0
  366. package/dist/types/progress-bar/stories/progress-bar.stories.d.ts +8 -0
  367. package/dist/types/progress-stepper/src/index.d.ts +8 -0
  368. package/dist/types/progress-stepper/src/progress-step.d.ts +13 -0
  369. package/dist/types/progress-stepper/src/progress-stepper.d.ts +12 -0
  370. package/dist/types/progress-stepper/stories/progress-stepper.stories.d.ts +8 -0
  371. package/dist/types/react/src/index.d.ts +70 -0
  372. package/dist/types/searchfield/src/index.d.ts +18 -0
  373. package/dist/types/searchfield/src/searchfield-suggestions-input.d.ts +9 -0
  374. package/dist/types/searchfield/src/searchfield-suggestions-list.d.ts +5 -0
  375. package/dist/types/searchfield/src/searchfield-suggestions-option.d.ts +5 -0
  376. package/dist/types/searchfield/src/searchfield-suggestions.d.ts +5 -0
  377. package/dist/types/searchfield/src/searchfield.d.ts +27 -0
  378. package/dist/types/searchfield/stories/searchfield-suggestions.stories.d.ts +8 -0
  379. package/dist/types/searchfield/stories/searchfield.stories.d.ts +6 -0
  380. package/dist/types/snackbar/src/index.d.ts +8 -0
  381. package/dist/types/snackbar/src/snackbar.d.ts +11 -0
  382. package/dist/types/snackbar/stories/snackbar.stories.d.ts +8 -0
  383. package/dist/types/spinner/index.d.ts +2 -0
  384. package/dist/types/spinner/src/assets/spinner-square.d.ts +265 -0
  385. package/dist/types/spinner/src/index.d.ts +4 -0
  386. package/dist/types/spinner/src/spinner.d.ts +14 -0
  387. package/dist/types/spinner/stories/spinner.stories.d.ts +8 -0
  388. package/dist/types/table/src/auto-table.d.ts +48 -0
  389. package/dist/types/table/src/index.d.ts +24 -0
  390. package/dist/types/table/src/table-body.d.ts +2 -0
  391. package/dist/types/table/src/table-footer.d.ts +2 -0
  392. package/dist/types/table/src/table-header-column.d.ts +6 -0
  393. package/dist/types/table/src/table-header.d.ts +6 -0
  394. package/dist/types/table/src/table-row-column.d.ts +6 -0
  395. package/dist/types/table/src/table-row.d.ts +2 -0
  396. package/dist/types/table/src/table-sort-button.d.ts +8 -0
  397. package/dist/types/table/src/table.d.ts +9 -0
  398. package/dist/types/table/stories/autotable.stories.d.ts +10 -0
  399. package/dist/types/table/stories/table.stories.d.ts +11 -0
  400. package/dist/types/tabs/src/index.d.ts +15 -0
  401. package/dist/types/tabs/src/tabs-button.d.ts +7 -0
  402. package/dist/types/tabs/src/tabs-content.d.ts +6 -0
  403. package/dist/types/tabs/src/tabs-context.d.ts +8 -0
  404. package/dist/types/tabs/src/tabs-item.d.ts +6 -0
  405. package/dist/types/tabs/src/tabs.d.ts +11 -0
  406. package/dist/types/tabs/stories/tabs.stories.d.ts +12 -0
  407. package/dist/types/text/src/index.d.ts +8 -0
  408. package/dist/types/text/src/text.d.ts +10 -0
  409. package/dist/types/text/stories/text.stories.d.ts +7 -0
  410. package/dist/types/theme/index.d.ts +2 -0
  411. package/dist/types/theme/src/colors.d.ts +1410 -0
  412. package/dist/types/theme/src/create-memo-class.d.ts +1 -0
  413. package/dist/types/theme/src/create-theme-vars/calc.d.ts +19 -0
  414. package/dist/types/theme/src/create-theme-vars/create-theme-vars.d.ts +9 -0
  415. package/dist/types/theme/src/create-theme-vars/css-var.d.ts +7 -0
  416. package/dist/types/theme/src/create-theme-vars/index.d.ts +4 -0
  417. package/dist/types/theme/src/create-theme-vars/theme-tokens.d.ts +8 -0
  418. package/dist/types/theme/src/create-theme-vars/to-css-var.d.ts +2 -0
  419. package/dist/types/theme/src/default-theme.d.ts +4 -0
  420. package/dist/types/theme/src/gui-provider.d.ts +48 -0
  421. package/dist/types/theme/src/index.d.ts +14 -0
  422. package/dist/types/theme/src/types.d.ts +54 -0
  423. package/dist/types/theme/src/units.d.ts +266 -0
  424. package/dist/types/theme/src/use-safe-effect.d.ts +2 -0
  425. package/dist/types/theme/src/utils.d.ts +1 -0
  426. package/dist/types/toast/index.d.ts +2 -0
  427. package/dist/types/toast/src/index.d.ts +7 -0
  428. package/dist/types/toast/src/toast.d.ts +62 -0
  429. package/dist/types/toasted-notes/index.d.ts +2 -0
  430. package/dist/types/toasted-notes/src/Alert.d.ts +8 -0
  431. package/dist/types/toasted-notes/src/Message.d.ts +26 -0
  432. package/dist/types/toasted-notes/src/Positions.d.ts +9 -0
  433. package/dist/types/toasted-notes/src/Toast.d.ts +13 -0
  434. package/dist/types/toasted-notes/src/ToastManager.d.ts +45 -0
  435. package/dist/types/toasted-notes/src/index.d.ts +4 -0
  436. package/dist/types/toasted-notes/src/useTimeout.d.ts +3 -0
  437. package/dist/types/tooltip/index.d.ts +2 -0
  438. package/dist/types/tooltip/src/index.d.ts +8 -0
  439. package/dist/types/tooltip/src/tooltip.d.ts +14 -0
  440. package/dist/types/tooltip/stories/tooltip.stories.d.ts +9 -0
  441. package/dist/types/user-menu/src/index.d.ts +8 -0
  442. package/dist/types/user-menu/src/user-menu.d.ts +32 -0
  443. package/dist/types/user-menu/stories/user-menu.stories.d.ts +8 -0
  444. package/dist/types/utils/index.d.ts +2 -0
  445. package/dist/types/utils/src/assertion.d.ts +6 -0
  446. package/dist/types/utils/src/children.d.ts +8 -0
  447. package/dist/types/utils/src/color.d.ts +10 -0
  448. package/dist/types/utils/src/index.d.ts +20 -0
  449. package/dist/types/utils/src/object.d.ts +6 -0
  450. package/dist/types/utils/src/refs.d.ts +5 -0
  451. package/dist/types/utils/src/slug.d.ts +1 -0
  452. package/dist/types/utils/src/types.d.ts +56 -0
  453. package/dist/types/utils/src/use-on-element-outside.d.ts +39 -0
  454. package/dist/types/utils/src/walk-object.d.ts +5 -0
  455. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ export declare function createMemoClass(func: (props: any) => string): (args?: any) => string;
@@ -0,0 +1,19 @@
1
+ export type Operand = string | number | {
2
+ reference: string;
3
+ };
4
+ interface CalcChain {
5
+ add: (...operands: Array<Operand>) => CalcChain;
6
+ subtract: (...operands: Array<Operand>) => CalcChain;
7
+ multiply: (...operands: Array<Operand>) => CalcChain;
8
+ divide: (...operands: Array<Operand>) => CalcChain;
9
+ negate: () => CalcChain;
10
+ toString: () => string;
11
+ }
12
+ export declare const calc: ((x: Operand) => CalcChain) & {
13
+ add: (...operands: Array<Operand>) => string;
14
+ subtract: (...operands: Array<Operand>) => string;
15
+ multiply: (...operands: Array<Operand>) => string;
16
+ divide: (...operands: Array<Operand>) => string;
17
+ negate: (x: Operand) => string;
18
+ };
19
+ export {};
@@ -0,0 +1,9 @@
1
+ import { Dict } from '@sk-web-gui/utils';
2
+ export interface CreateThemeVarsOptions {
3
+ cssVarPrefix?: string;
4
+ }
5
+ export interface ThemeVars {
6
+ cssVars: Dict;
7
+ cssMap: Dict;
8
+ }
9
+ export declare function createThemeVars(target: Dict, options: CreateThemeVarsOptions): ThemeVars;
@@ -0,0 +1,7 @@
1
+ export declare function addPrefix(value: string, prefix?: string): string;
2
+ export declare function toVarReference(name: string, fallback?: string): string;
3
+ export declare function toVarDefinition(value: string, prefix?: string): string;
4
+ export declare function cssVar(name: string, fallback?: string, cssVarPrefix?: string): {
5
+ variable: string;
6
+ reference: string;
7
+ };
@@ -0,0 +1,4 @@
1
+ export * from './calc';
2
+ export * from './css-var';
3
+ export * from './to-css-var';
4
+ export type { ThemeScale } from './theme-tokens';
@@ -0,0 +1,8 @@
1
+ import { Dict } from '@sk-web-gui/utils';
2
+ declare const tokens: readonly ["colors", "cursor", "rounded", "fontSize", "lineHeight", "spacing", "screens", "radius"];
3
+ export type ThemeScale = (typeof tokens)[number] | 'transition.duration' | 'transition.property' | 'transition.easing';
4
+ export declare function extractTokens(theme: Dict): {
5
+ [x: string]: any;
6
+ };
7
+ export declare function omitVars(rawTheme: Dict): Omit<Dict, "__cssMap" | "__cssVars" | "__breakpoints">;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { WithCSSVar, Dict } from '@sk-web-gui/utils';
2
+ export declare function toCSSVar<T extends Dict>(rawTheme: T): WithCSSVar<T>;
@@ -0,0 +1,4 @@
1
+ import { GuiTheme, ColorScheme } from './types';
2
+ export declare const lightScheme: ColorScheme;
3
+ export declare const darkScheme: ColorScheme;
4
+ export declare const defaultTheme: GuiTheme;
@@ -0,0 +1,48 @@
1
+ import { Dict, WithCSSVar } from '@sk-web-gui/utils';
2
+ import React from 'react';
3
+ import { GuiTheme, GuiThemeOverride } from './types';
4
+ export declare enum ColorSchemeMode {
5
+ Dark = "dark",
6
+ Light = "light",
7
+ System = "system"
8
+ }
9
+ export declare const GuiContext: React.Context<{
10
+ theme: WithCSSVar<Dict>;
11
+ /**
12
+ * The chosen colorScheme
13
+ */
14
+ colorScheme: ColorSchemeMode;
15
+ /**
16
+ * Set the colorScheme
17
+ */
18
+ setColorScheme: (scheme: ColorSchemeMode) => void;
19
+ /**
20
+ * Scheme that is used when set to "system"
21
+ */
22
+ preferredColorScheme: Exclude<ColorSchemeMode, ColorSchemeMode.System>;
23
+ units: {
24
+ base: number;
25
+ htmlBase: number;
26
+ };
27
+ } | undefined>;
28
+ export interface GuiProviderProps {
29
+ children: React.ReactNode;
30
+ theme?: GuiTheme;
31
+ /**
32
+ * @default system
33
+ */
34
+ colorScheme?: ColorSchemeMode;
35
+ /**
36
+ * Font size in px that the theme variables are based on
37
+ * @default 10
38
+ */
39
+ baseFontSize?: number;
40
+ /**
41
+ * Font base size in px that the site uses.
42
+ * @default 10
43
+ */
44
+ htmlFontSize?: number;
45
+ }
46
+ export declare function GuiProvider({ theme, colorScheme: _colorScheme, baseFontSize, htmlFontSize, children, }: GuiProviderProps): import("react/jsx-runtime").JSX.Element;
47
+ export declare function useGui<T extends object = Dict>(): WithCSSVar<T>;
48
+ export declare function extendTheme(themeOverride: GuiThemeOverride): GuiTheme;
@@ -0,0 +1,14 @@
1
+ export * from './gui-provider';
2
+ export type * from './gui-provider';
3
+ export * from './create-memo-class';
4
+ export type * from './create-memo-class';
5
+ export * from './create-theme-vars';
6
+ export type * from './create-theme-vars';
7
+ export * from './default-theme';
8
+ export type * from './default-theme';
9
+ export * from './colors';
10
+ export type * from './colors';
11
+ export * from './types';
12
+ export type * from './types';
13
+ export * from './units';
14
+ export type * from './units';
@@ -0,0 +1,54 @@
1
+ import { DeepPartial } from '@sk-web-gui/utils';
2
+ export type RecursiveProperty<Nested = string | number> = RecursiveObject<Nested> | Nested;
3
+ export interface RecursiveObject<Nested = string | number> {
4
+ [property: string]: RecursiveProperty<Nested>;
5
+ }
6
+ export interface ColorHues {
7
+ 50: string;
8
+ 100: string;
9
+ 200: string;
10
+ 300: string;
11
+ 400: string;
12
+ 500: string;
13
+ 600: string;
14
+ 700: string;
15
+ 800: string;
16
+ 900: string;
17
+ lightest?: string;
18
+ darkest?: string;
19
+ }
20
+ export interface ThemeOption {
21
+ [key: string | number]: string | ThemeOption;
22
+ }
23
+ export type Colors = RecursiveObject<Record<string, Partial<ColorHues>> | string>;
24
+ export interface ColorScheme {
25
+ id: string;
26
+ type: 'light' | 'dark';
27
+ colors: {
28
+ bg: {
29
+ base: string;
30
+ fill: string;
31
+ };
32
+ text: {
33
+ foreground: string;
34
+ muted: string;
35
+ };
36
+ severity?: {
37
+ error: ThemeOption;
38
+ warning: ThemeOption;
39
+ info: ThemeOption;
40
+ };
41
+ } & Colors;
42
+ }
43
+ export interface GuiTheme {
44
+ readonly cursor: 'default' | 'pointer';
45
+ readonly rounded: string;
46
+ readonly colorSchemes: Record<string, ColorScheme>;
47
+ readonly fontSize: ThemeOption;
48
+ readonly lineHeight: ThemeOption;
49
+ readonly spacing: ThemeOption;
50
+ readonly screens: ThemeOption;
51
+ readonly radius: ThemeOption;
52
+ readonly config: Record<string, unknown>;
53
+ }
54
+ export type GuiThemeOverride = DeepPartial<GuiTheme>;
@@ -0,0 +1,266 @@
1
+ export declare const spacing: {
2
+ 0: string;
3
+ '0.25': string;
4
+ '0.5': string;
5
+ '0.75': string;
6
+ 1: string;
7
+ 2: string;
8
+ 3: string;
9
+ 4: string;
10
+ 5: string;
11
+ 6: string;
12
+ 7: string;
13
+ 8: string;
14
+ 9: string;
15
+ 10: string;
16
+ 11: string;
17
+ 12: string;
18
+ 13: string;
19
+ 14: string;
20
+ 15: string;
21
+ 16: string;
22
+ 17: string;
23
+ 18: string;
24
+ 19: string;
25
+ 20: string;
26
+ 22: string;
27
+ 24: string;
28
+ 26: string;
29
+ 28: string;
30
+ 30: string;
31
+ 32: string;
32
+ 33: string;
33
+ 34: string;
34
+ 36: string;
35
+ 38: string;
36
+ 40: string;
37
+ 42: string;
38
+ 43: string;
39
+ 44: string;
40
+ 46: string;
41
+ 48: string;
42
+ 49: string;
43
+ 50: string;
44
+ 52: string;
45
+ 54: string;
46
+ 56: string;
47
+ 58: string;
48
+ 60: string;
49
+ 62: string;
50
+ 64: string;
51
+ 68: string;
52
+ 72: string;
53
+ 80: string;
54
+ 100: string;
55
+ };
56
+ export declare const breakpoints: {
57
+ phone: {
58
+ DEFAULT: string;
59
+ min: string;
60
+ max: string;
61
+ };
62
+ 'small-device': {
63
+ DEFAULT: string;
64
+ min: string;
65
+ max: string;
66
+ };
67
+ 'medium-device': {
68
+ DEFAULT: string;
69
+ min: string;
70
+ max: string;
71
+ };
72
+ 'large-device': {
73
+ DEFAULT: string;
74
+ min: string;
75
+ max: string;
76
+ };
77
+ desktop: {
78
+ DEFAULT: string;
79
+ min: string;
80
+ max: string;
81
+ };
82
+ };
83
+ export declare const screens: {
84
+ xs: string;
85
+ sm: string;
86
+ md: string;
87
+ lg: string;
88
+ xl: string;
89
+ phone: string;
90
+ 'phone-min': string;
91
+ 'phone-max': string;
92
+ 'small-device': string;
93
+ 'small-device-min': string;
94
+ 'small-device-max': string;
95
+ 'medium-device': string;
96
+ 'medium-device-min': string;
97
+ 'medium-device-max': string;
98
+ 'large-device': string;
99
+ 'large-device-min': string;
100
+ 'large-device-max': string;
101
+ desktop: string;
102
+ 'desktop-min': string;
103
+ 'desktop-max': string;
104
+ };
105
+ export declare const fontSizes: {
106
+ display: {
107
+ 1: {
108
+ DEFAULT: string;
109
+ lg: string;
110
+ md: string;
111
+ sm: string;
112
+ };
113
+ 2: {
114
+ DEFAULT: string;
115
+ lg: string;
116
+ md: string;
117
+ sm: string;
118
+ };
119
+ 3: {
120
+ DEFAULT: string;
121
+ lg: string;
122
+ md: string;
123
+ sm: string;
124
+ };
125
+ };
126
+ h: {
127
+ 1: {
128
+ DEFAULT: string;
129
+ lg: string;
130
+ md: string;
131
+ sm: string;
132
+ };
133
+ 2: {
134
+ DEFAULT: string;
135
+ lg: string;
136
+ md: string;
137
+ sm: string;
138
+ };
139
+ 3: {
140
+ DEFAULT: string;
141
+ lg: string;
142
+ md: string;
143
+ sm: string;
144
+ };
145
+ 4: {
146
+ DEFAULT: string;
147
+ lg: string;
148
+ md: string;
149
+ sm: string;
150
+ };
151
+ };
152
+ label: {
153
+ large: string;
154
+ medium: string;
155
+ small: string;
156
+ };
157
+ input: {
158
+ large: string;
159
+ medium: string;
160
+ small: string;
161
+ };
162
+ logo: {
163
+ header: string;
164
+ };
165
+ lead: string;
166
+ base: string;
167
+ large: string;
168
+ small: string;
169
+ };
170
+ export declare const lineHeights: {
171
+ display: {
172
+ 1: {
173
+ DEFAULT: string;
174
+ lg: string;
175
+ md: string;
176
+ sm: string;
177
+ };
178
+ 2: {
179
+ DEFAULT: string;
180
+ lg: string;
181
+ md: string;
182
+ sm: string;
183
+ };
184
+ 3: {
185
+ DEFAULT: string;
186
+ lg: string;
187
+ md: string;
188
+ sm: string;
189
+ };
190
+ };
191
+ h: {
192
+ 1: {
193
+ DEFAULT: string;
194
+ lg: string;
195
+ md: string;
196
+ sm: string;
197
+ };
198
+ 2: {
199
+ DEFAULT: string;
200
+ lg: string;
201
+ md: string;
202
+ sm: string;
203
+ };
204
+ 3: {
205
+ DEFAULT: string;
206
+ lg: string;
207
+ md: string;
208
+ sm: string;
209
+ };
210
+ 4: {
211
+ DEFAULT: string;
212
+ lg: string;
213
+ md: string;
214
+ sm: string;
215
+ };
216
+ };
217
+ label: {
218
+ large: string;
219
+ medium: string;
220
+ small: string;
221
+ };
222
+ input: {
223
+ large: string;
224
+ medium: string;
225
+ small: string;
226
+ };
227
+ logo: {
228
+ header: string;
229
+ };
230
+ lead: string;
231
+ base: string;
232
+ large: string;
233
+ small: string;
234
+ };
235
+ export declare const radius: {
236
+ circular: {
237
+ DEFAULT: string;
238
+ lg: string;
239
+ md: string;
240
+ sm: string;
241
+ };
242
+ button: {
243
+ DEFAULT: string;
244
+ lg: string;
245
+ md: string;
246
+ sm: string;
247
+ };
248
+ cards: {
249
+ DEFAULT: string;
250
+ lg: string;
251
+ md: string;
252
+ sm: string;
253
+ };
254
+ utility: {
255
+ DEFAULT: string;
256
+ lg: string;
257
+ md: string;
258
+ sm: string;
259
+ };
260
+ groups: {
261
+ DEFAULT: string;
262
+ lg: string;
263
+ md: string;
264
+ sm: string;
265
+ };
266
+ };
@@ -0,0 +1,2 @@
1
+ import { useEffect } from 'react';
2
+ export declare const useSafeEffect: typeof useEffect;
@@ -0,0 +1 @@
1
+ export declare const isBrowser: boolean;
@@ -0,0 +1,2 @@
1
+ export * from './src';
2
+ export type * from './src';
@@ -0,0 +1,7 @@
1
+ import { createToast, useToastOptions } from './toast';
2
+ export { createToast };
3
+ export type { useToastOptions };
4
+ declare const _default: {
5
+ createToast: typeof createToast;
6
+ };
7
+ export default _default;
@@ -0,0 +1,62 @@
1
+ import { Position } from '@sk-web-gui/toasted-notes';
2
+ import { DefaultProps } from '@sk-web-gui/utils';
3
+ import React from 'react';
4
+ interface IToast extends DefaultProps {
5
+ /**
6
+ * The title of the toast.
7
+ */
8
+ title?: string;
9
+ /**
10
+ * If `true` adds a close button to the toast.
11
+ */
12
+ closeable?: boolean;
13
+ /**
14
+ * Callback function to close the toast.
15
+ */
16
+ onClose?: () => void;
17
+ /**
18
+ * Callback function to undo the toast.
19
+ */
20
+ onUndo?: () => void;
21
+ /**
22
+ * The description of the toast
23
+ */
24
+ description?: string;
25
+ /**
26
+ * The undo text of the toast
27
+ */
28
+ undoText?: string;
29
+ /**
30
+ * Duration before dismiss in milliseconds, or `null` to never dismiss.
31
+ */
32
+ duration?: number | null;
33
+ /**
34
+ * One of toasted-notes positions.
35
+ */
36
+ position?: keyof typeof Position;
37
+ /**
38
+ * The message of the toast
39
+ */
40
+ message?: string;
41
+ /**
42
+ * The status of the toast
43
+ */
44
+ status?: 'info' | 'success' | 'error' | 'warning';
45
+ /**
46
+ * Custom icon
47
+ */
48
+ icon?: React.ElementType;
49
+ /**
50
+ * Custom close icon
51
+ */
52
+ closeIcon?: React.ElementType;
53
+ }
54
+ interface RenderOption {
55
+ render?: (props: {
56
+ onClose: (id: string) => void;
57
+ id: string;
58
+ }) => React.ReactNode;
59
+ }
60
+ export type useToastOptions = IToast & RenderOption;
61
+ export declare function createToast(Comp: React.ElementType): () => ({ position, duration, render, ...rest }: useToastOptions) => any;
62
+ export default createToast;
@@ -0,0 +1,2 @@
1
+ export * from './src';
2
+ export type * from './src';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ id: string;
4
+ title: React.ReactNode | string;
5
+ onClose: () => void;
6
+ }
7
+ declare const Alert: ({ id, title, onClose }: Props) => import("react/jsx-runtime").JSX.Element;
8
+ export default Alert;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import POSITIONS from './Positions';
3
+ interface MessageCallback {
4
+ id: string;
5
+ onClose: () => void;
6
+ }
7
+ export type MessageType = 'default' | 'success' | 'error';
8
+ export type PositionsType = keyof typeof POSITIONS;
9
+ export type MessageProp = React.ReactNode | ((callback: MessageCallback) => React.ReactNode) | string;
10
+ export interface MessageOptions {
11
+ id: string;
12
+ duration: number | null;
13
+ type: MessageType;
14
+ onRequestRemove: () => void;
15
+ onRequestClose: () => void;
16
+ showing: boolean;
17
+ position: PositionsType;
18
+ }
19
+ interface Props extends MessageOptions {
20
+ message: MessageProp;
21
+ zIndex?: number;
22
+ requestClose?: boolean;
23
+ position: PositionsType;
24
+ }
25
+ export declare const Message: ({ id, message, position, onRequestRemove, requestClose, duration }: Props) => import("react/jsx-runtime").JSX.Element;
26
+ export {};
@@ -0,0 +1,9 @@
1
+ declare const POSITIONS: {
2
+ top: string;
3
+ 'top-left': string;
4
+ 'top-right': string;
5
+ bottom: string;
6
+ 'bottom-left': string;
7
+ 'bottom-right': string;
8
+ };
9
+ export default POSITIONS;
@@ -0,0 +1,13 @@
1
+ import { MessageOptionalOptions } from './ToastManager';
2
+ import { MessageProp, PositionsType } from './Message';
3
+ export declare class Toaster {
4
+ createNotification?: Function;
5
+ removeAll?: Function;
6
+ closeToast?: Function;
7
+ constructor();
8
+ closeAll: () => void;
9
+ bindNotify: (fn: Function, removeAll: Function, closeToast: Function) => void;
10
+ notify: (message: MessageProp, options?: MessageOptionalOptions) => any;
11
+ close: (id: number, position: PositionsType) => void;
12
+ }
13
+ export default Toaster;
@@ -0,0 +1,45 @@
1
+ import React from 'react';
2
+ import { PositionsType, MessageType, MessageOptions, MessageProp } from './Message';
3
+ interface Props {
4
+ notify: (fn: Function, closeAll: Function, close: Function) => void;
5
+ }
6
+ export interface MessageOptionalOptions {
7
+ type?: MessageType;
8
+ duration?: number | null;
9
+ position?: PositionsType;
10
+ }
11
+ interface ToastArgs extends MessageOptions {
12
+ message: MessageProp;
13
+ }
14
+ type State = {
15
+ top: Array<ToastArgs>;
16
+ 'top-left': Array<ToastArgs>;
17
+ 'top-right': Array<ToastArgs>;
18
+ 'bottom-left': Array<ToastArgs>;
19
+ bottom: Array<ToastArgs>;
20
+ 'bottom-right': Array<ToastArgs>;
21
+ };
22
+ export declare class ToastManager extends React.Component<Props, State> {
23
+ static idCounter: number;
24
+ state: State;
25
+ constructor(props: Props);
26
+ notify: (message: MessageProp, options: MessageOptionalOptions) => {
27
+ id: number;
28
+ position: "bottom" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
29
+ };
30
+ closeAll: () => void;
31
+ createToastState: (message: MessageProp, options: MessageOptionalOptions) => {
32
+ id: number;
33
+ message: MessageProp;
34
+ position: "bottom" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
35
+ showing: boolean;
36
+ duration: number | null;
37
+ onRequestRemove: () => void;
38
+ type: MessageType | undefined;
39
+ };
40
+ closeToast: (id: string, position: PositionsType) => void;
41
+ removeToast: (id: string, position: PositionsType) => void;
42
+ getStyle: (position: PositionsType) => React.CSSProperties;
43
+ render(): import("react/jsx-runtime").JSX.Element[];
44
+ }
45
+ export default ToastManager;
@@ -0,0 +1,4 @@
1
+ import { Toaster } from './Toast';
2
+ declare const toaster: Toaster;
3
+ export { default as Position } from './Positions';
4
+ export { toaster };
@@ -0,0 +1,3 @@
1
+ type Callback = () => void;
2
+ export declare function useTimeout(callback: Callback, delay: number | null): void;
3
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './src';
2
+ export type * from './src';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { Tooltip, TooltipProps } from './tooltip';
3
+ export { Tooltip };
4
+ export type { TooltipProps };
5
+ declare const _default: {
6
+ Tooltip: import("react").ForwardRefExoticComponent<TooltipProps & import("react").RefAttributes<HTMLSpanElement>>;
7
+ };
8
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { DefaultProps } from '@sk-web-gui/utils';
2
+ import React from 'react';
3
+ interface ITooltipProps extends DefaultProps {
4
+ /** Select the position of the tooltip
5
+ * @default below
6
+ */
7
+ position?: 'above' | 'below' | 'right' | 'left';
8
+ /** React Node */
9
+ children?: React.ReactNode;
10
+ }
11
+ export interface TooltipProps extends React.HTMLAttributes<HTMLSpanElement>, ITooltipProps {
12
+ }
13
+ export declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLSpanElement>>;
14
+ export default Tooltip;