@pushwoosh/dumb-components 1.1.148 → 1.1.150

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 (323) hide show
  1. package/AccessForbidden/AccessForbidden.d.ts +3 -0
  2. package/AccessForbidden/AccessForbidden.js +3 -0
  3. package/Alert/Alert.d.ts +7 -0
  4. package/Alert/Alert.js +7 -0
  5. package/Alert/types.d.ts +6 -0
  6. package/ApplicationPreloader/ApplicationPreloader.d.ts +8 -0
  7. package/ApplicationPreloader/ApplicationPreloader.js +6 -0
  8. package/Badge/Badge.d.ts +6 -0
  9. package/Badge/Badge.js +6 -0
  10. package/Badge/types.d.ts +6 -0
  11. package/Banner/Banner.d.ts +7 -0
  12. package/Banner/Banner.js +7 -0
  13. package/Banner/types.d.ts +16 -0
  14. package/Button/Button.d.ts +19 -0
  15. package/Button/GhostButton.d.ts +1 -0
  16. package/Button/GhostButton.js +1 -0
  17. package/Button/RemoveButton.d.ts +6 -0
  18. package/Button/RemoveButton.js +6 -0
  19. package/Button/types.d.ts +21 -0
  20. package/Calendar/CalendarDropdown/CalendarDropdown.d.ts +12 -0
  21. package/Calendar/CalendarDropdown/CalendarDropdown.js +12 -0
  22. package/Calendar/CalendarDropdown/helpers.d.ts +4 -0
  23. package/Calendar/CalendarDropdown/helpers.js +4 -0
  24. package/Calendar/CalendarDropdown/types.d.ts +33 -0
  25. package/Calendar/CalendarSuperForm/CalendarSuperForm.d.ts +7 -0
  26. package/Calendar/CalendarSuperForm/CalendarSuperForm.js +7 -0
  27. package/Calendar/CalendarSuperForm/types.d.ts +36 -10
  28. package/Calendar/helpers.d.ts +10 -0
  29. package/Calendar/helpers.js +10 -0
  30. package/Calendar/types.d.ts +16 -1
  31. package/CardMetric/CardMetric.d.ts +7 -0
  32. package/CardMetric/CardMetric.js +7 -0
  33. package/CardMetric/types.d.ts +13 -0
  34. package/Checkbox/Checkbox.d.ts +6 -0
  35. package/Checkbox/Checkbox.js +6 -0
  36. package/Checkbox/types.d.ts +13 -0
  37. package/Chip/Chip.d.ts +7 -0
  38. package/Chip/Chip.js +7 -0
  39. package/Chip/Chip.types.d.ts +9 -0
  40. package/CodeEditor/CodeEditor.d.ts +7 -0
  41. package/CodeEditor/CodeEditor.js +7 -0
  42. package/CodeEditor/languages/html.d.ts +1 -0
  43. package/CodeEditor/languages/html.js +1 -0
  44. package/CodeEditor/languages/json.d.ts +1 -0
  45. package/CodeEditor/languages/json.js +1 -0
  46. package/CodeEditor/languages/liquid.d.ts +1 -0
  47. package/CodeEditor/languages/liquid.js +1 -0
  48. package/CodeEditor/types.d.ts +11 -0
  49. package/CrashScreen/CrashScreen.d.ts +4 -0
  50. package/CrashScreen/CrashScreen.js +4 -0
  51. package/DateTimePicker/components/DatePicker/DatePicker.d.ts +5 -0
  52. package/DateTimePicker/components/DatePicker/DatePicker.js +5 -0
  53. package/DateTimePicker/components/DatePicker/types.d.ts +9 -0
  54. package/DateTimePicker/components/DatePickerField/DatePickerField.d.ts +5 -0
  55. package/DateTimePicker/components/DatePickerField/DatePickerField.js +5 -0
  56. package/DateTimePicker/components/DatePickerField/types.d.ts +9 -0
  57. package/DateTimePicker/components/DateTimePicker/DateTimePicker.d.ts +5 -0
  58. package/DateTimePicker/components/DateTimePicker/DateTimePicker.js +5 -0
  59. package/DateTimePicker/components/DateTimePicker/types.d.ts +6 -0
  60. package/DateTimePicker/components/DateTimePickerField/DateTimePickerField.d.ts +5 -0
  61. package/DateTimePicker/components/DateTimePickerField/DateTimePickerField.js +5 -0
  62. package/DateTimePicker/components/DateTimePickerField/types.d.ts +9 -0
  63. package/DateTimePicker/types.d.ts +5 -0
  64. package/Drawer/components/Drawer/Drawer.d.ts +11 -0
  65. package/Drawer/components/Drawer/Drawer.js +12 -1
  66. package/Drawer/components/Drawer/types.d.ts +10 -1
  67. package/Drawer/components/DrawerContent/styles.d.ts +3 -0
  68. package/Drawer/components/DrawerContent/styles.js +3 -0
  69. package/Drawer/components/DrawerDocs/DrawerDocs.d.ts +7 -0
  70. package/Drawer/components/DrawerDocs/DrawerDocs.js +7 -0
  71. package/Drawer/components/DrawerDocs/hooks.d.ts +4 -0
  72. package/Drawer/components/DrawerDocs/hooks.js +4 -0
  73. package/Drawer/components/DrawerDocs/types.d.ts +4 -0
  74. package/DropdownMenu/components/DropdownMenu/DropdownMenu.d.ts +12 -0
  75. package/DropdownMenu/components/DropdownMenu/DropdownMenu.js +12 -0
  76. package/DropdownMenu/components/DropdownMenu/types.d.ts +15 -0
  77. package/DropdownMenu/components/DropdownMenuButton/DropdownMenuButton.d.ts +8 -0
  78. package/DropdownMenu/components/DropdownMenuButton/DropdownMenuButton.js +8 -0
  79. package/DropdownMenu/components/DropdownMenuButton/types.d.ts +16 -0
  80. package/DropdownMenu/components/DropdownMenuItem/DropdownMenuItem.d.ts +7 -0
  81. package/DropdownMenu/components/DropdownMenuItem/DropdownMenuItem.js +7 -0
  82. package/DropdownMenu/components/DropdownMenuItem/types.d.ts +6 -0
  83. package/DropdownMenu/components/DropdownMenuSection/DropdownMenuSection.d.ts +8 -0
  84. package/DropdownMenu/components/DropdownMenuSection/DropdownMenuSection.js +8 -0
  85. package/DropdownMenu/components/DropdownMenuSection/types.d.ts +3 -0
  86. package/DropdownMenu/components/DropdownMenuSubmenu/DropdownMenuSubmenu.d.ts +9 -0
  87. package/DropdownMenu/components/DropdownMenuSubmenu/DropdownMenuSubmenu.js +9 -0
  88. package/DropdownMenu/components/DropdownMenuSubmenu/types.d.ts +5 -0
  89. package/EditableField/EditableField.d.ts +9 -0
  90. package/EditableField/EditableField.js +9 -0
  91. package/EditableField/types.d.ts +12 -0
  92. package/EmailTemplatePreview/EmailTemplatePreview.d.ts +7 -0
  93. package/EmailTemplatePreview/EmailTemplatePreview.js +7 -0
  94. package/EmailTemplatePreview/components/NoEmailTemplatePreview/NoEmailTemplatePreview.d.ts +4 -0
  95. package/EmailTemplatePreview/components/NoEmailTemplatePreview/NoEmailTemplatePreview.js +4 -0
  96. package/EmailTemplatePreview/helpers.d.ts +8 -0
  97. package/EmailTemplatePreview/helpers.js +8 -0
  98. package/EmailTemplatePreview/types.d.ts +7 -0
  99. package/EnhancedInput/EnhancedInput.d.ts +7 -0
  100. package/EnhancedInput/EnhancedInput.js +7 -0
  101. package/EnhancedInput/SearchInput.d.ts +6 -0
  102. package/EnhancedInput/SearchInput.js +6 -0
  103. package/EnhancedInput/types.d.ts +5 -0
  104. package/ExportResult/ExportResult.d.ts +7 -0
  105. package/ExportResult/ExportResult.js +7 -0
  106. package/ExportResult/types.d.ts +7 -0
  107. package/ExternalImagePreview/ExternalImagePreview.d.ts +7 -0
  108. package/ExternalImagePreview/ExternalImagePreview.js +7 -0
  109. package/ExternalImagePreview/types.d.ts +7 -0
  110. package/FieldBox/FieldBox.d.ts +9 -0
  111. package/FieldBox/FieldBox.js +9 -0
  112. package/FieldBox/types.d.ts +10 -0
  113. package/FrequencyCapping/FrequencyCappingEdit.d.ts +7 -0
  114. package/FrequencyCapping/FrequencyCappingEdit.js +7 -0
  115. package/FrequencyCapping/FrequencyCappingInApps.d.ts +7 -0
  116. package/FrequencyCapping/FrequencyCappingInApps.js +7 -0
  117. package/FrequencyCapping/FrequencyCappingReadonly.d.ts +3 -0
  118. package/FrequencyCapping/FrequencyCappingReadonly.js +3 -0
  119. package/FrequencyCapping/types.d.ts +37 -0
  120. package/FrequencyCapping/types.js +1 -0
  121. package/GetStartedPage/GetStartedPage.d.ts +7 -0
  122. package/GetStartedPage/GetStartedPage.js +7 -0
  123. package/GetStartedPage/types.d.ts +7 -0
  124. package/InputFile/InputFile.d.ts +7 -0
  125. package/InputFile/InputFile.js +7 -0
  126. package/InputFile/types.d.ts +18 -0
  127. package/Link/Link.d.ts +18 -0
  128. package/Link/types.d.ts +17 -0
  129. package/Modal/components/Modal/Modal.d.ts +11 -0
  130. package/Modal/components/Modal/Modal.js +11 -0
  131. package/Modal/components/Modal/types.d.ts +6 -0
  132. package/Modal/components/ModalConfirm/ModalConfirm.d.ts +8 -0
  133. package/Modal/components/ModalConfirm/ModalConfirm.js +8 -0
  134. package/Modal/components/ModalConfirm/ModalConfirmProvider.d.ts +7 -0
  135. package/Modal/components/ModalConfirm/ModalConfirmProvider.js +7 -0
  136. package/Modal/components/ModalConfirm/hooks.d.ts +8 -0
  137. package/Modal/components/ModalConfirm/hooks.js +8 -0
  138. package/Modal/components/ModalConfirm/types.d.ts +16 -0
  139. package/Modal/components/ModalContent/styles.d.ts +5 -0
  140. package/Modal/components/ModalContent/styles.js +5 -0
  141. package/Modal/components/ModalTitle/ModalTitle.d.ts +6 -0
  142. package/Modal/components/ModalTitle/ModalTitle.js +6 -0
  143. package/Modal/components/ModalTitle/types.d.ts +3 -0
  144. package/NotificationInbox/NotificationBar.d.ts +7 -0
  145. package/NotificationInbox/NotificationBar.js +7 -0
  146. package/NotificationInbox/NotificationBell.d.ts +7 -0
  147. package/NotificationInbox/NotificationBell.js +7 -0
  148. package/NotificationInbox/NotificationInbox.d.ts +7 -0
  149. package/NotificationInbox/NotificationInbox.js +7 -0
  150. package/NotificationInbox/types.d.ts +31 -0
  151. package/NumberPicker/NumberPicker.d.ts +7 -0
  152. package/NumberPicker/NumberPicker.js +7 -0
  153. package/NumberPicker/types.d.ts +12 -0
  154. package/PageHeader/components/AutosizeInput/AutosizeInput.d.ts +7 -0
  155. package/PageHeader/components/AutosizeInput/AutosizeInput.js +7 -0
  156. package/PageHeader/components/AutosizeInput/types.d.ts +7 -0
  157. package/PageHeader/components/PageHeader/PageHeader.d.ts +7 -0
  158. package/PageHeader/components/PageHeader/PageHeader.js +7 -0
  159. package/PageHeader/components/PageHeader/types.d.ts +13 -0
  160. package/PageHeader/components/PageHeaderEditable/PageHeaderEditable.d.ts +7 -0
  161. package/PageHeader/components/PageHeaderEditable/PageHeaderEditable.js +7 -0
  162. package/PageHeader/components/PageHeaderEditable/types.d.ts +19 -0
  163. package/Pagination/Pagination.d.ts +7 -0
  164. package/Pagination/Pagination.js +7 -0
  165. package/Pagination/types.d.ts +7 -0
  166. package/Popover/Popover.d.ts +10 -0
  167. package/Popover/Popover.js +10 -0
  168. package/Popover/styles.d.ts +1 -0
  169. package/Popover/styles.js +1 -0
  170. package/Popover/types.d.ts +9 -0
  171. package/ProgressBar/ProgressBar.d.ts +6 -0
  172. package/ProgressBar/ProgressBar.js +6 -0
  173. package/ProgressBar/types.d.ts +7 -0
  174. package/PushPreview/PushPreview.d.ts +7 -0
  175. package/PushPreview/PushPreview.js +7 -0
  176. package/PushPreview/types.d.ts +17 -0
  177. package/Radio/Radio.d.ts +7 -0
  178. package/Radio/Radio.js +7 -0
  179. package/Radio/types.d.ts +14 -0
  180. package/RadioCard/RadioCard.d.ts +7 -0
  181. package/RadioCard/RadioCard.js +7 -0
  182. package/RadioCard/types.d.ts +7 -0
  183. package/ReCaptcha/ReCaptcha.d.ts +8 -0
  184. package/ReCaptcha/ReCaptcha.js +8 -0
  185. package/ReCaptcha/helpers.d.ts +4 -0
  186. package/ReCaptcha/helpers.js +4 -0
  187. package/ReCaptcha/hooks.d.ts +4 -0
  188. package/ReCaptcha/hooks.js +4 -0
  189. package/ReCaptcha/types.d.ts +5 -0
  190. package/RichMessageEditor/RichMessageEditor.d.ts +8 -0
  191. package/RichMessageEditor/RichMessageEditor.js +8 -0
  192. package/RichMessageEditor/RichMessageEditor.types.d.ts +10 -0
  193. package/RichMessageEditor/RichMessageViewer.d.ts +10 -0
  194. package/RichMessageEditor/RichMessageViewer.js +7 -0
  195. package/RichMessageEditor/slate/types.d.ts +5 -0
  196. package/RichMessageEditor/types.d.ts +1 -0
  197. package/RichmediaPreview/RichmediaPreview.d.ts +7 -0
  198. package/RichmediaPreview/RichmediaPreview.js +7 -0
  199. package/RichmediaPreview/hooks.d.ts +4 -0
  200. package/RichmediaPreview/hooks.js +4 -0
  201. package/RichmediaPreview/types.d.ts +13 -0
  202. package/Select/Select.d.ts +22 -0
  203. package/Select/Select.js +22 -0
  204. package/Select/constants.d.ts +1 -0
  205. package/Select/constants.js +1 -0
  206. package/Select/types.d.ts +19 -0
  207. package/SendRate/SendRateEdit.d.ts +7 -0
  208. package/SendRate/SendRateEdit.js +7 -0
  209. package/SendRate/SendRateReadonly.d.ts +3 -0
  210. package/SendRate/SendRateReadonly.js +3 -0
  211. package/SendRate/types.d.ts +20 -0
  212. package/Skeleton/TextSkeleton.d.ts +6 -0
  213. package/Skeleton/TextSkeleton.js +6 -0
  214. package/Skeleton/styles.d.ts +2 -0
  215. package/Skeleton/styles.js +2 -0
  216. package/Skeleton/types.d.ts +11 -0
  217. package/SortButton/SortButton.d.ts +6 -0
  218. package/SortButton/SortButton.js +6 -0
  219. package/SortButton/types.d.ts +11 -0
  220. package/Spinner/Spinner.d.ts +6 -0
  221. package/Spinner/Spinner.js +6 -0
  222. package/Spinner/types.d.ts +4 -0
  223. package/StatisticCard/StatisticCard.d.ts +7 -0
  224. package/StatisticCard/StatisticCard.js +7 -0
  225. package/StatisticCard/types.d.ts +21 -0
  226. package/Switch/Switch.d.ts +6 -0
  227. package/Switch/Switch.js +6 -0
  228. package/Switch/types.d.ts +8 -0
  229. package/Tabs/components/Tab/Tab.d.ts +4 -0
  230. package/Tabs/components/Tab/Tab.js +4 -0
  231. package/Tabs/components/Tab/types.d.ts +6 -0
  232. package/Tabs/components/TabBar/TabBar.d.ts +3 -0
  233. package/Tabs/components/TabBar/TabBar.js +3 -0
  234. package/Tabs/components/TabBar/types.d.ts +2 -0
  235. package/Tabs/components/TabPanel/TabPanel.d.ts +4 -0
  236. package/Tabs/components/TabPanel/TabPanel.js +4 -0
  237. package/Tabs/components/TabPanel/types.d.ts +3 -0
  238. package/Tabs/components/Tabs/Tabs.d.ts +11 -0
  239. package/Tabs/components/Tabs/Tabs.js +11 -0
  240. package/Tabs/components/Tabs/types.d.ts +4 -0
  241. package/Tabs/types.d.ts +4 -0
  242. package/Toast/Toast.d.ts +5 -0
  243. package/Toast/Toast.js +5 -0
  244. package/Toast/ToastProvider.d.ts +7 -0
  245. package/Toast/ToastProvider.js +7 -0
  246. package/Toast/hooks.d.ts +8 -0
  247. package/Toast/hooks.js +8 -0
  248. package/Toast/types.d.ts +24 -0
  249. package/Tooltip/Tooltip.d.ts +7 -0
  250. package/Tooltip/Tooltip.js +7 -0
  251. package/Tooltip/TooltipTrigger.d.ts +13 -0
  252. package/Tooltip/TooltipTrigger.js +7 -0
  253. package/Tooltip/types.d.ts +12 -0
  254. package/hooks/useElementWidth.d.ts +4 -3
  255. package/hooks/useElementWidth.js +4 -3
  256. package/hooks/useLayer.d.ts +7 -0
  257. package/hooks/useLayer.js +7 -0
  258. package/hooks/useOnClickOutside.d.ts +7 -0
  259. package/hooks/useOnClickOutside.js +7 -0
  260. package/native/Input.d.ts +3 -0
  261. package/native/Input.js +1 -0
  262. package/native/NativeTimeInput.d.ts +1 -0
  263. package/native/NativeTimeInput.js +1 -0
  264. package/native/Select.d.ts +1 -0
  265. package/native/Select.js +1 -0
  266. package/native/Textarea.d.ts +1 -0
  267. package/native/Textarea.js +1 -0
  268. package/package.json +2 -3
  269. package/polyglot/react.d.ts +19 -0
  270. package/polyglot/react.js +19 -0
  271. package/polyglot/types.d.ts +4 -0
  272. package/shared/dropdownField/FieldInput.d.ts +1 -0
  273. package/shared/dropdownField/FieldInput.js +1 -0
  274. package/shared/dropdownField/FieldShell.d.ts +4 -0
  275. package/shared/dropdownField/FieldShell.js +4 -0
  276. package/shared/dropdownField/SuggestionsDropdown.d.ts +4 -0
  277. package/shared/dropdownField/SuggestionsDropdown.js +4 -0
  278. package/shared/dropdownField/constants.d.ts +1 -0
  279. package/shared/dropdownField/constants.js +1 -0
  280. package/shared/dropdownField/shared.d.ts +7 -0
  281. package/shared/dropdownField/shared.js +7 -0
  282. package/shared/dropdownField/types.d.ts +7 -0
  283. package/shared/dropdownField/useActiveIndex.d.ts +4 -0
  284. package/shared/dropdownField/useActiveIndex.js +4 -0
  285. package/shared/dropdownField/useAsyncItems.d.ts +4 -0
  286. package/shared/dropdownField/useAsyncItems.js +4 -0
  287. package/shared/dropdownField/useDebouncedValue.d.ts +1 -0
  288. package/shared/dropdownField/useDebouncedValue.js +1 -0
  289. package/shared/dropdownField/useDropdownItems.d.ts +4 -0
  290. package/shared/dropdownField/useDropdownItems.js +4 -0
  291. package/shared/dropdownField/useDropdownPosition.d.ts +4 -0
  292. package/shared/dropdownField/useDropdownPosition.js +4 -0
  293. package/shared/dropdownField/useFieldOpenEffects.d.ts +4 -0
  294. package/shared/dropdownField/useFieldOpenEffects.js +4 -0
  295. package/shared/dropdownField/useListNavigation.d.ts +5 -0
  296. package/shared/dropdownField/useListNavigation.js +5 -0
  297. package/Alert/ai-documentation.md +0 -132
  298. package/Badge/ai-documentation.md +0 -155
  299. package/Banner/ai-documentation.md +0 -285
  300. package/Button/ai-documentation.md +0 -247
  301. package/CardMetric/ai-documentation.md +0 -277
  302. package/Checkbox/ai-documentation.md +0 -231
  303. package/Chip/ai-documentation.md +0 -281
  304. package/CodeEditor/ai-documentation.md +0 -350
  305. package/DateTimePicker/ai-documentation.md +0 -400
  306. package/Drawer/ai-documentation.md +0 -417
  307. package/EnhancedInput/ai-documentation.md +0 -352
  308. package/InputFile/ai-documentation.md +0 -420
  309. package/Modal/ai-documentation.md +0 -285
  310. package/PageHeader/ai-documentation.md +0 -511
  311. package/Pagination/ai-documentation.md +0 -509
  312. package/Popover/ai-documentation.md +0 -625
  313. package/ProgressBar/ai-documentation.md +0 -533
  314. package/Radio/ai-documentation.md +0 -243
  315. package/Select/ai-documentation.md +0 -374
  316. package/Skeleton/ai-documentation.md +0 -574
  317. package/Spinner/ai-documentation.md +0 -607
  318. package/Switch/ai-documentation.md +0 -312
  319. package/Tabs/ai-documentation.md +0 -475
  320. package/Toast/ai-documentation.md +0 -220
  321. package/Tooltip/ai-documentation.md +0 -340
  322. package/ai-documentation.md +0 -124
  323. package/native/ai-documentation.md +0 -485
@@ -1,4 +1,6 @@
1
1
  import type { CircularSkeletonProps, RectangularSkeletonProps, TextSkeletonProps } from './types';
2
+ /** Pulsing rectangular loading placeholder of a fixed `width`/`height`. */
2
3
  export declare const RectangularSkeleton: import("styled-components").StyledComponent<"div", any, RectangularSkeletonProps, never>;
4
+ /** Pulsing circular loading placeholder of a given `diameter` (e.g. for avatars). */
3
5
  export declare const CircularSkeleton: import("styled-components").StyledComponent<"div", any, CircularSkeletonProps, never>;
4
6
  export declare const TextSkeletonTag: import("styled-components").StyledComponent<"div", any, TextSkeletonProps, never>;
@@ -7,6 +7,7 @@ const borderRadiusCss = css(["border-radius:", ";"], ({
7
7
  const skeletonCommonCss = css(["background-color:", ";animation:", " 1.5s ease-in-out 0.5s infinite;"], ({
8
8
  color
9
9
  }) => color || '#ddd', pulseKeyframe);
10
+ /** Pulsing rectangular loading placeholder of a fixed `width`/`height`. */
10
11
  export const RectangularSkeleton = styled.div.withConfig({
11
12
  displayName: "RectangularSkeleton",
12
13
  componentId: "sc-mdyfd6-0"
@@ -15,6 +16,7 @@ export const RectangularSkeleton = styled.div.withConfig({
15
16
  }) => toCssValue(width), ({
16
17
  height
17
18
  }) => toCssValue(height), skeletonCommonCss, borderRadiusCss);
19
+ /** Pulsing circular loading placeholder of a given `diameter` (e.g. for avatars). */
18
20
  export const CircularSkeleton = styled.div.withConfig({
19
21
  displayName: "CircularSkeleton",
20
22
  componentId: "sc-mdyfd6-1"
@@ -1,16 +1,27 @@
1
+ /** Optional corner-radius for skeleton shapes. */
1
2
  export type SkeletonBorderRadiusProps = {
3
+ /** Corner radius (px number or any CSS value). */
2
4
  borderRadius?: number | string;
3
5
  };
6
+ /** Props common to all skeleton shapes. */
4
7
  export type SkeletonCommonProps = {
8
+ /** Base color of the placeholder. */
5
9
  color?: string;
6
10
  };
11
+ /** Props of {@link RectangularSkeleton}. */
7
12
  export type RectangularSkeletonProps = SkeletonCommonProps & SkeletonBorderRadiusProps & {
13
+ /** Width (px number or any CSS value). */
8
14
  width: number | string;
15
+ /** Height (px number or any CSS value). */
9
16
  height: number | string;
10
17
  };
18
+ /** Props of {@link CircularSkeleton}. */
11
19
  export type CircularSkeletonProps = SkeletonCommonProps & {
20
+ /** Circle diameter (px number or any CSS value). */
12
21
  diameter: number | string;
13
22
  };
23
+ /** Props of {@link TextSkeleton}. */
14
24
  export type TextSkeletonProps = SkeletonCommonProps & SkeletonBorderRadiusProps & {
25
+ /** Fixed width; when omitted the skeleton sizes to its content (inline). */
15
26
  width?: number | string;
16
27
  };
@@ -1,5 +1,11 @@
1
1
  import { type ReactElement } from 'react';
2
2
  import type { SortButtonProps } from './types';
3
+ /**
4
+ * Column-header button that cycles a sort order and reports the next order via `onClick`.
5
+ *
6
+ * @example
7
+ * <SortButton name="created" order={order} onClick={({ order }) => setOrder(order)}>Created</SortButton>
8
+ */
3
9
  export declare function SortButton(props: SortButtonProps): ReactElement;
4
10
  export declare namespace SortButton {
5
11
  var displayName: string;
@@ -4,6 +4,12 @@ import { SortIcon } from '@pushwoosh/kit-icons';
4
4
  import { AVAILABLE_ACTIVE_ORDERS } from './constants';
5
5
  import { IconTypeByOrderMap, NextOrderMap, ReversedNextOrderMap } from './maps';
6
6
  import { SortButtonBox } from './styles';
7
+ /**
8
+ * Column-header button that cycles a sort order and reports the next order via `onClick`.
9
+ *
10
+ * @example
11
+ * <SortButton name="created" order={order} onClick={({ order }) => setOrder(order)}>Created</SortButton>
12
+ */
7
13
  export function SortButton(props) {
8
14
  const {
9
15
  boxRef,
@@ -1,14 +1,25 @@
1
1
  import type { Ref } from 'react';
2
+ /** Current sort order of a column: ascending, descending, or unsorted (`null`). */
2
3
  export type SortButtonOrder = 'asc' | 'desc' | null;
4
+ /** Arrow icon state shown by a {@link SortButton}. */
3
5
  export type SortButtonIconType = 'asc' | 'desc' | 'not-sorted';
6
+ /** Payload passed to {@link SortButtonProps.onClick} with the next order for the column. */
4
7
  export type SortButtonParams = {
8
+ /** Column name this button sorts. */
5
9
  readonly name: string;
10
+ /** The order to apply next. */
6
11
  readonly order: SortButtonOrder;
7
12
  };
13
+ /** Props of {@link SortButton} — all `<button>` attributes plus the sort-specific ones. */
8
14
  export type SortButtonProps = Omit<JSX.IntrinsicElements['button'], 'ref' | 'onClick'> & {
15
+ /** Ref to the `<button>`. */
9
16
  readonly boxRef?: Ref<HTMLButtonElement>;
17
+ /** Column name this button controls. */
10
18
  readonly name: string;
19
+ /** Current sort order of this column. */
11
20
  readonly order: SortButtonOrder;
21
+ /** Reverse the order cycle (desc → asc instead of asc → desc). */
12
22
  readonly isReversed?: boolean;
23
+ /** Fires with the next `{ name, order }` when clicked. */
13
24
  readonly onClick: (params: SortButtonParams) => void;
14
25
  };
@@ -1,3 +1,9 @@
1
1
  import { type ReactElement } from 'react';
2
2
  import { type SpinnerProps } from './types';
3
+ /**
4
+ * Animated loading indicator in small or medium size.
5
+ *
6
+ * @example
7
+ * <Spinner size="medium" />
8
+ */
3
9
  export declare function Spinner(props: SpinnerProps): ReactElement | null;
@@ -1,6 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { AssetsMap } from './assets';
3
3
  import { SpinnerBox, SpinnerAnimate } from './styles';
4
+ /**
5
+ * Animated loading indicator in small or medium size.
6
+ *
7
+ * @example
8
+ * <Spinner size="medium" />
9
+ */
4
10
  export function Spinner(props) {
5
11
  const {
6
12
  boxRef,
@@ -1,6 +1,10 @@
1
1
  import { type Ref } from 'react';
2
+ /** Props of {@link Spinner}. */
2
3
  export interface SpinnerProps {
4
+ /** Ref to the spinner wrapper. */
3
5
  readonly boxRef?: Ref<HTMLDivElement>;
6
+ /** Spinner color. */
4
7
  readonly color?: string;
8
+ /** Size preset. */
5
9
  readonly size: 'small' | 'medium';
6
10
  }
@@ -1,3 +1,10 @@
1
1
  import { type ReactElement } from 'react';
2
2
  import { type StatisticCardProps } from './types';
3
+ /**
4
+ * KPI card showing a title and a (number-formatted) value, with an optional actions
5
+ * menu, loading skeleton and a selectable/active mode.
6
+ *
7
+ * @example
8
+ * <StatisticCard title="Active users" value={4096} valueSubtext="this week" />
9
+ */
3
10
  export declare function StatisticCard(props: StatisticCardProps): ReactElement;
@@ -8,6 +8,13 @@ import { Container, RightSlotContainer, StatValue, Title } from './styles';
8
8
  import { Button } from '../Button';
9
9
  import { DropdownMenu, DropdownMenuItem, DropdownMenuSection } from '../DropdownMenu';
10
10
  import { TextSkeleton } from '../Skeleton';
11
+ /**
12
+ * KPI card showing a title and a (number-formatted) value, with an optional actions
13
+ * menu, loading skeleton and a selectable/active mode.
14
+ *
15
+ * @example
16
+ * <StatisticCard title="Active users" value={4096} valueSubtext="this week" />
17
+ */
11
18
  export function StatisticCard(props) {
12
19
  const {
13
20
  title,
@@ -1,27 +1,48 @@
1
1
  import { type ReactNode } from 'react';
2
+ /** Props of {@link StatisticCard} — common fields plus the selectable/non-selectable variant. */
2
3
  export type StatisticCardProps = CommonProps & (SelectableProps | NonSelectableProps);
4
+ /** An action shown in the card's kebab menu. */
3
5
  type StatisticCardAction = {
6
+ /** Unique key. */
4
7
  id: string;
8
+ /** Menu item label. */
5
9
  label: ReactNode;
10
+ /** Fires when the action is clicked. */
6
11
  onClick: () => void;
12
+ /** Disable the action. */
7
13
  disabled?: boolean;
8
14
  };
15
+ /** Fields common to every {@link StatisticCard}. */
9
16
  export type CommonProps = {
17
+ /** Card title. */
10
18
  title: ReactNode;
19
+ /** Main value (numbers are formatted with spaced thousands). */
11
20
  value: number | string;
21
+ /** Small text shown after the value. */
12
22
  valueSubtext?: string;
23
+ /** Custom content on the right; overrides the actions menu. */
13
24
  rightSlot?: ReactNode;
25
+ /** Actions rendered in a kebab menu (when `rightSlot` is not set). */
14
26
  actions?: StatisticCardAction[];
27
+ /** Footnote under the value. */
15
28
  footer?: string;
29
+ /** Show a skeleton in place of the value. */
16
30
  isLoading?: boolean;
31
+ /** Fixed CSS width. */
17
32
  width?: string;
18
33
  };
34
+ /** Variant: the card is selectable (clickable, can be active). */
19
35
  export type SelectableProps = {
36
+ /** Marks the card as selectable. */
20
37
  selectable: true;
38
+ /** Fires when the card is clicked. */
21
39
  onClick: () => void;
40
+ /** Render the active (selected) state. */
22
41
  active?: boolean;
23
42
  };
43
+ /** Variant: the card is not selectable. */
24
44
  export type NonSelectableProps = {
45
+ /** Marks the card as non-selectable (default). */
25
46
  selectable?: false;
26
47
  onClick?: never;
27
48
  active?: never;
@@ -1,3 +1,9 @@
1
1
  import { type ReactElement } from 'react';
2
2
  import type { SwitchProps } from './types';
3
+ /**
4
+ * Toggle switch for a boolean value, with an optional label on either side.
5
+ *
6
+ * @example
7
+ * <Switch enabled={on} onChange={() => setOn((v) => !v)}>Notifications</Switch>
8
+ */
3
9
  export declare function Switch({ labelPosition, enabled, isDisabled, children, onChange, }: SwitchProps): ReactElement;
package/Switch/Switch.js CHANGED
@@ -1,5 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Container, Box, Circle, Label } from './styles';
3
+ /**
4
+ * Toggle switch for a boolean value, with an optional label on either side.
5
+ *
6
+ * @example
7
+ * <Switch enabled={on} onChange={() => setOn((v) => !v)}>Notifications</Switch>
8
+ */
3
9
  export function Switch({
4
10
  labelPosition = 'right',
5
11
  enabled = false,
package/Switch/types.d.ts CHANGED
@@ -1,14 +1,22 @@
1
1
  import type { ReactNode } from 'react';
2
+ /** Props of {@link Switch}. */
2
3
  export interface SwitchProps {
4
+ /** Side the label sits on relative to the toggle (default `right`). */
3
5
  labelPosition?: 'left' | 'right';
6
+ /** On/off state (controlled). */
4
7
  enabled?: boolean;
8
+ /** Disable interaction and render the disabled state. */
5
9
  isDisabled?: boolean;
10
+ /** Label content rendered next to the toggle. */
6
11
  children?: ReactNode;
12
+ /** Fires when the toggle is clicked; flip `enabled` in the handler. */
7
13
  onChange: () => void;
8
14
  }
15
+ /** Internal style prop carrying the label side. */
9
16
  export interface AlignProps {
10
17
  labelPosition?: string;
11
18
  }
19
+ /** Internal style prop carrying the toggle state. */
12
20
  export interface ComponentProps {
13
21
  enabled: boolean;
14
22
  isDisabled?: boolean;
@@ -1,3 +1,7 @@
1
+ /**
2
+ * A single tab header inside a {@link TabBar}; activates the {@link TabPanel} with
3
+ * the matching `code`. Must be used within {@link Tabs}.
4
+ */
1
5
  export declare const Tab: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref" | "onClick"> & Readonly<{
2
6
  code: import("../..").TabCode;
3
7
  onActivate?: (code: import("../..").TabCode) => void;
@@ -2,6 +2,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from 'react';
3
3
  import { TabBase } from '../TabBase';
4
4
  import { useTabsContext } from '../../context';
5
+ /**
6
+ * A single tab header inside a {@link TabBar}; activates the {@link TabPanel} with
7
+ * the matching `code`. Must be used within {@link Tabs}.
8
+ */
5
9
  export const Tab = forwardRef((props, ref) => {
6
10
  const {
7
11
  code,
@@ -1,9 +1,15 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { TabCode } from '../../types';
3
+ /** Props of {@link Tab} — all `<div>` attributes plus the tab-specific ones. */
3
4
  export type TabProps = Omit<JSX.IntrinsicElements['div'], 'ref' | 'onClick'> & Readonly<{
5
+ /** Identifier matching the {@link TabPanel} this tab activates. */
4
6
  code: TabCode;
7
+ /** Fires with this tab's code when it is activated. */
5
8
  onActivate?: (code: TabCode) => void;
9
+ /** Disable the tab (not clickable). */
6
10
  isDisabled?: boolean;
11
+ /** Show a "new" marker on the tab. */
7
12
  isNew?: boolean;
13
+ /** Leading icon. */
8
14
  icon?: ReactNode;
9
15
  }>;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Horizontal, scrollable row of {@link Tab}s with an optional title.
3
+ */
1
4
  export declare const TabBar: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & Readonly<{
2
5
  title?: import("react").ReactNode;
3
6
  }> & import("react").RefAttributes<HTMLDivElement>>;
@@ -3,6 +3,9 @@ import { forwardRef } from 'react';
3
3
  import { H4 } from '@pushwoosh/kit-typography';
4
4
  import { TabBarTitleBox, TabBarContainer } from './styles';
5
5
  import { TabBarScrollableFrame } from '../TabBarScrollableFrame';
6
+ /**
7
+ * Horizontal, scrollable row of {@link Tab}s with an optional title.
8
+ */
6
9
  export const TabBar = forwardRef((props, ref) => {
7
10
  const {
8
11
  children,
@@ -1,4 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
+ /** Props of {@link TabBar} — all `<div>` attributes plus an optional title. */
2
3
  export type TabBarProps = Omit<JSX.IntrinsicElements['div'], 'ref'> & Readonly<{
4
+ /** Optional heading shown before the tabs. */
3
5
  title?: ReactNode;
4
6
  }>;
@@ -1,3 +1,7 @@
1
1
  import { type FC } from 'react';
2
2
  import type { TabPanelProps } from './types';
3
+ /**
4
+ * Content shown when the {@link Tab} with the matching `code` is active; renders
5
+ * `null` otherwise. Must be used within {@link Tabs}.
6
+ */
3
7
  export declare const TabPanel: FC<TabPanelProps>;
@@ -1,6 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { TabPanelContainer } from './styles';
3
3
  import { useTabsContext } from '../../context';
4
+ /**
5
+ * Content shown when the {@link Tab} with the matching `code` is active; renders
6
+ * `null` otherwise. Must be used within {@link Tabs}.
7
+ */
4
8
  export const TabPanel = props => {
5
9
  const {
6
10
  code,
@@ -1,6 +1,9 @@
1
1
  import type { ElementType, PropsWithChildren } from 'react';
2
2
  import type { TabCode } from '../../types';
3
+ /** Props of {@link TabPanel}. */
3
4
  export type TabPanelProps = PropsWithChildren<Readonly<{
5
+ /** Identifier matching the {@link Tab} that reveals this panel. */
4
6
  code: TabCode;
7
+ /** Custom wrapper element/component (default an internal container). */
5
8
  container?: ElementType;
6
9
  }>>;
@@ -1,3 +1,14 @@
1
1
  import { type ReactElement } from 'react';
2
2
  import type { TabsProps } from './types';
3
+ /**
4
+ * Controlled tabs container providing the active-tab context. Compose with
5
+ * {@link TabBar}/{@link Tab} for the headers and {@link TabPanel} for the content.
6
+ *
7
+ * @example
8
+ * <Tabs activeCode={tab} onChange={setTab}>
9
+ * <TabBar><Tab code="a">A</Tab><Tab code="b">B</Tab></TabBar>
10
+ * <TabPanel code="a">First</TabPanel>
11
+ * <TabPanel code="b">Second</TabPanel>
12
+ * </Tabs>
13
+ */
3
14
  export declare function Tabs(props: TabsProps): ReactElement;
@@ -2,6 +2,17 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from 'react';
3
3
  import { TabsContainer } from './styles';
4
4
  import { TabContext } from '../../context';
5
+ /**
6
+ * Controlled tabs container providing the active-tab context. Compose with
7
+ * {@link TabBar}/{@link Tab} for the headers and {@link TabPanel} for the content.
8
+ *
9
+ * @example
10
+ * <Tabs activeCode={tab} onChange={setTab}>
11
+ * <TabBar><Tab code="a">A</Tab><Tab code="b">B</Tab></TabBar>
12
+ * <TabPanel code="a">First</TabPanel>
13
+ * <TabPanel code="b">Second</TabPanel>
14
+ * </Tabs>
15
+ */
5
16
  export function Tabs(props) {
6
17
  const {
7
18
  activeCode: activeTabCode,
@@ -1,7 +1,11 @@
1
1
  import type { ElementType, PropsWithChildren } from 'react';
2
2
  import { type TabCode } from '../../types';
3
+ /** Props of {@link Tabs}. */
3
4
  export type TabsProps = PropsWithChildren<Readonly<{
5
+ /** Currently active tab code (controlled). */
4
6
  activeCode: TabCode;
7
+ /** Fires with the newly activated tab code. */
5
8
  onChange: (code: TabCode) => void;
9
+ /** Custom wrapper element/component (default an internal container). */
6
10
  container?: ElementType;
7
11
  }>>;
package/Tabs/types.d.ts CHANGED
@@ -1,5 +1,9 @@
1
+ /** Identifier of a tab, shared between a {@link Tab} and its {@link TabPanel}. */
1
2
  export type TabCode = string | number;
3
+ /** Value of the Tabs context: the active tab code and its setter. */
2
4
  export type TabContextType = {
5
+ /** Currently active tab code. */
3
6
  activeTabCode: TabCode;
7
+ /** Activates the tab with the given code. */
4
8
  setActiveTabCode: (code: TabCode) => void;
5
9
  };
package/Toast/Toast.d.ts CHANGED
@@ -1,3 +1,8 @@
1
1
  import { type ReactElement } from 'react';
2
2
  import type { ToastProps } from './types';
3
+ /**
4
+ * Presentational toast notification (portaled to `body`). Usually rendered by
5
+ * {@link ToastProvider}; trigger it imperatively via {@link useToast} instead of
6
+ * mounting this directly.
7
+ */
3
8
  export declare function Toast(props: ToastProps): ReactElement;
package/Toast/Toast.js CHANGED
@@ -40,6 +40,11 @@ function getIconByType(type) {
40
40
  });
41
41
  }
42
42
  }
43
+ /**
44
+ * Presentational toast notification (portaled to `body`). Usually rendered by
45
+ * {@link ToastProvider}; trigger it imperatively via {@link useToast} instead of
46
+ * mounting this directly.
47
+ */
43
48
  export function Toast(props) {
44
49
  const {
45
50
  open,
@@ -1,3 +1,10 @@
1
1
  import type { ToastContextProps, ToastProviderProps } from './types';
2
2
  export declare const ToastContext: import("react").Context<ToastContextProps | null>;
3
+ /**
4
+ * Provides the toast context and renders the single shared {@link Toast}. Wrap your
5
+ * app once, then call {@link useToast} from anywhere inside.
6
+ *
7
+ * @example
8
+ * <ToastProvider><App /></ToastProvider>
9
+ */
3
10
  export declare const ToastProvider: ({ children }: ToastProviderProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,6 +3,13 @@ import { useState, useMemo, useCallback, createContext } from 'react';
3
3
  import { DEFAULT_DURATION } from './constants';
4
4
  import { Toast } from './Toast';
5
5
  export const ToastContext = createContext(null);
6
+ /**
7
+ * Provides the toast context and renders the single shared {@link Toast}. Wrap your
8
+ * app once, then call {@link useToast} from anywhere inside.
9
+ *
10
+ * @example
11
+ * <ToastProvider><App /></ToastProvider>
12
+ */
6
13
  export const ToastProvider = ({
7
14
  children
8
15
  }) => {
package/Toast/hooks.d.ts CHANGED
@@ -1,2 +1,10 @@
1
1
  import type { ToastContextProps } from './types';
2
+ /**
3
+ * Returns `{ openToast, closeToast }` for showing toasts. Must be used within a
4
+ * {@link ToastProvider}, otherwise it throws.
5
+ *
6
+ * @example
7
+ * const { openToast } = useToast();
8
+ * openToast({ title: 'Saved', type: 'success' });
9
+ */
2
10
  export declare const useToast: () => ToastContextProps;
package/Toast/hooks.js CHANGED
@@ -1,5 +1,13 @@
1
1
  import { useContext } from 'react';
2
2
  import { ToastContext } from './ToastProvider';
3
+ /**
4
+ * Returns `{ openToast, closeToast }` for showing toasts. Must be used within a
5
+ * {@link ToastProvider}, otherwise it throws.
6
+ *
7
+ * @example
8
+ * const { openToast } = useToast();
9
+ * openToast({ title: 'Saved', type: 'success' });
10
+ */
3
11
  export const useToast = () => {
4
12
  const context = useContext(ToastContext);
5
13
  if (!context) {
package/Toast/types.d.ts CHANGED
@@ -1,30 +1,54 @@
1
1
  import type { ReactNode } from 'react';
2
+ /** Severity of a toast, driving its icon and color. */
2
3
  export type ToastType = 'info' | 'success' | 'warning' | 'error';
4
+ /** Fully-resolved toast model held by the provider. */
3
5
  export type ToastParams = {
6
+ /** Toast heading. */
4
7
  title: string;
8
+ /** Optional secondary text. */
5
9
  description?: ReactNode;
10
+ /** Auto-dismiss delay in ms, or `false` to stay until closed. */
6
11
  duration: number | false;
12
+ /** Severity. */
7
13
  type: ToastType;
14
+ /** Optional action button caption. */
8
15
  buttonText?: string;
16
+ /** Fires when the action button is clicked. */
9
17
  onButtonClick?: () => void;
10
18
  };
19
+ /** Arguments for {@link ToastContextProps.openToast}; most fields default. */
11
20
  export type OpenToastParams = {
21
+ /** Toast heading. */
12
22
  title: string;
23
+ /** Optional secondary text. */
13
24
  description?: ReactNode;
25
+ /** Auto-dismiss delay in ms, or `false` to stay until closed (default applied by the provider). */
14
26
  duration?: number | false;
27
+ /** Severity (default `info`). */
15
28
  type?: ToastType;
29
+ /** Optional action button caption. */
16
30
  buttonText?: string;
31
+ /** Fires when the action button is clicked. */
17
32
  onButtonClick?: () => void;
18
33
  };
34
+ /** Value returned by {@link useToast}. */
19
35
  export interface ToastContextProps {
36
+ /** Show a toast with the given params. */
20
37
  openToast: (params: OpenToastParams) => void;
38
+ /** Hide the current toast. */
21
39
  closeToast: () => void;
22
40
  }
41
+ /** Props of {@link ToastProvider}. */
23
42
  export interface ToastProviderProps {
43
+ /** App subtree that can call {@link useToast}. */
24
44
  children: ReactNode;
25
45
  }
46
+ /** Props of the presentational {@link Toast}. */
26
47
  export interface ToastProps {
48
+ /** Whether the toast is visible. */
27
49
  open: boolean;
50
+ /** Toast content to render. */
28
51
  toast: ToastParams;
52
+ /** Fires when the close button is clicked. */
29
53
  onClose: () => void;
30
54
  }
@@ -1,3 +1,10 @@
1
1
  import { type ReactElement } from 'react';
2
2
  import type { TooltipProps } from './types';
3
+ /**
4
+ * Wraps an element and shows a contextual tooltip on hover/focus, with configurable
5
+ * position and width. Use {@link TooltipTrigger} for a standalone help icon.
6
+ *
7
+ * @example
8
+ * <Tooltip content="Copy to clipboard" position="top-middle"><IconButton /></Tooltip>
9
+ */
3
10
  export declare function Tooltip({ position, arrowOffset, offset, maxWidth, zIndex, isDisabled, isVisible, ...rest }: TooltipProps): ReactElement;
@@ -1,6 +1,13 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { TooltipPositionToArrowOffsetMap, TooltipPositionToTippyOffsetMap, TooltipPositionToTippyPlacementMap } from './maps';
3
3
  import { TooltipBox } from './styles';
4
+ /**
5
+ * Wraps an element and shows a contextual tooltip on hover/focus, with configurable
6
+ * position and width. Use {@link TooltipTrigger} for a standalone help icon.
7
+ *
8
+ * @example
9
+ * <Tooltip content="Copy to clipboard" position="top-middle"><IconButton /></Tooltip>
10
+ */
4
11
  export function Tooltip({
5
12
  position = 'top-start',
6
13
  arrowOffset = TooltipPositionToArrowOffsetMap[position],
@@ -1,10 +1,23 @@
1
1
  import { type ReactElement } from 'react';
2
2
  import type { TooltipProps } from './types';
3
+ /** Icon style of a {@link TooltipTrigger}. */
3
4
  export type TooltipTriggerView = 'question' | 'info' | 'warning' | 'error';
5
+ /** Props of {@link TooltipTrigger} — {@link TooltipProps} plus the icon controls. */
4
6
  export type TooltipTriggerProps = TooltipProps & {
7
+ /** Padding around the icon. */
5
8
  padding?: string | number;
9
+ /** Icon size (default `small`). */
6
10
  size?: 'small' | 'medium';
11
+ /** Apply the hover color (default `true`). */
7
12
  hover?: boolean;
13
+ /** Which icon to render. */
8
14
  view: TooltipTriggerView;
9
15
  };
16
+ /**
17
+ * Standalone help/info icon that shows a {@link Tooltip} on hover — no need to provide
18
+ * your own anchor element.
19
+ *
20
+ * @example
21
+ * <TooltipTrigger view="question" content="What this field means" />
22
+ */
10
23
  export declare function TooltipTrigger({ padding, view, size, hover, ...tooltipProps }: TooltipTriggerProps): ReactElement;
@@ -2,6 +2,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { TooltipTriggerViewMap } from './maps';
3
3
  import { HelpIconWrapper } from './styles';
4
4
  import { Tooltip } from './Tooltip';
5
+ /**
6
+ * Standalone help/info icon that shows a {@link Tooltip} on hover — no need to provide
7
+ * your own anchor element.
8
+ *
9
+ * @example
10
+ * <TooltipTrigger view="question" content="What this field means" />
11
+ */
5
12
  export function TooltipTrigger({
6
13
  padding = 0,
7
14
  view,