@trilogy-ds/react 4.0.6-SC-beta-2 → 4.0.6-SC-beta-3

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 (309) hide show
  1. package/lib/components/accordion/Accordion.d.ts +2 -2
  2. package/lib/components/accordion/Accordion.js +6 -4
  3. package/lib/components/accordion/Accordion.native.d.ts +2 -2
  4. package/lib/components/accordion/Accordion.native.js +5 -5
  5. package/lib/components/accordion/AccordionProps.d.ts +3 -0
  6. package/lib/components/accordion/index.d.ts +5 -5
  7. package/lib/components/accordion/index.js +6 -6
  8. package/lib/components/accordion/item/AccordionItem.d.ts +1 -1
  9. package/lib/components/accordion/item/AccordionItem.js +10 -6
  10. package/lib/components/accordion/item/body/AccordionBody.d.ts +2 -2
  11. package/lib/components/accordion/item/body/AccordionBody.js +8 -6
  12. package/lib/components/accordion/item/body/AccordionBody.native.d.ts +2 -2
  13. package/lib/components/accordion/item/body/AccordionBody.native.js +4 -4
  14. package/lib/components/accordion/item/body/AccordionBodyProps.d.ts +1 -1
  15. package/lib/components/accordion/item/body/index.d.ts +1 -1
  16. package/lib/components/accordion/item/body/index.js +2 -2
  17. package/lib/components/accordion/item/header/AccordionHeader.d.ts +2 -2
  18. package/lib/components/accordion/item/header/AccordionHeader.js +6 -4
  19. package/lib/components/accordion/item/header/AccordionHeader.native.d.ts +2 -2
  20. package/lib/components/accordion/item/header/AccordionHeader.native.js +7 -7
  21. package/lib/components/accordion/item/header/index.d.ts +1 -1
  22. package/lib/components/accordion/item/header/index.js +2 -2
  23. package/lib/components/accordion/item/index.d.ts +1 -1
  24. package/lib/components/accordion/item/index.js +2 -2
  25. package/lib/components/alert/Alert.d.ts +1 -1
  26. package/lib/components/alert/Alert.js +46 -20
  27. package/lib/components/alert/context/ToasterContext.js +2 -6
  28. package/lib/components/autocomplete/AutoComplete.d.ts +1 -1
  29. package/lib/components/autocomplete/AutoComplete.js +127 -26
  30. package/lib/components/autocomplete/AutoComplete.native.d.ts +1 -1
  31. package/lib/components/autocomplete/AutoComplete.native.js +5 -5
  32. package/lib/components/autocomplete/AutoCompleteProps.d.ts +1 -1
  33. package/lib/components/autocomplete/Autocomplete.helpers.d.ts +1 -1
  34. package/lib/components/autocomplete/index.d.ts +3 -3
  35. package/lib/components/autocomplete/index.js +4 -4
  36. package/lib/components/autocomplete/item/AutoCompleteIem.native.d.ts +1 -1
  37. package/lib/components/autocomplete/item/AutoCompleteIem.native.js +4 -4
  38. package/lib/components/autocomplete/item/AutoCompleteItem.d.ts +2 -2
  39. package/lib/components/autocomplete/item/AutoCompleteItem.js +8 -6
  40. package/lib/components/autocomplete/item/AutoCompleteItemProps.d.ts +1 -1
  41. package/lib/components/autocomplete/item/index.d.ts +1 -1
  42. package/lib/components/autocomplete/item/index.js +2 -2
  43. package/lib/components/autocomplete/menu/AutoCompleteMenu.d.ts +2 -2
  44. package/lib/components/autocomplete/menu/AutoCompleteMenu.js +7 -5
  45. package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js +4 -4
  46. package/lib/components/autocomplete/menu/index.d.ts +1 -1
  47. package/lib/components/autocomplete/menu/index.js +2 -2
  48. package/lib/components/badge/Badge.d.ts +1 -1
  49. package/lib/components/badge/Badge.js +13 -10
  50. package/lib/components/badge/BadgeProps.d.ts +2 -2
  51. package/lib/components/badge/index.d.ts +1 -2
  52. package/lib/components/badge/index.js +2 -3
  53. package/lib/components/box/Box.js +16 -8
  54. package/lib/components/box/content/BoxContent.js +7 -5
  55. package/lib/components/box/footer/BoxFooter.js +6 -4
  56. package/lib/components/box/header/BoxHeader.js +7 -5
  57. package/lib/components/box/item/BoxItem.js +6 -4
  58. package/lib/components/box/table-container/BoxTableContainer.d.ts +1 -1
  59. package/lib/components/box/table-container/BoxTableContainer.js +7 -5
  60. package/lib/components/breadcrumb/Breadcrumb.js +6 -4
  61. package/lib/components/breadcrumb/item/BreadcrumbItem.js +8 -6
  62. package/lib/components/button/Button.js +19 -7
  63. package/lib/components/button/list/ButtonList.js +7 -5
  64. package/lib/components/card/Card.d.ts +4 -1
  65. package/lib/components/card/Card.js +15 -8
  66. package/lib/components/card/CardProps.d.ts +1 -3
  67. package/lib/components/card/content/CardContent.d.ts +1 -1
  68. package/lib/components/card/content/CardContent.js +6 -4
  69. package/lib/components/card/content/CardContentProps.d.ts +1 -1
  70. package/lib/components/card/content/index.d.ts +1 -1
  71. package/lib/components/card/content/index.js +2 -2
  72. package/lib/components/card/image/CardImage.d.ts +1 -1
  73. package/lib/components/card/image/CardImage.js +13 -7
  74. package/lib/components/card/index.d.ts +5 -5
  75. package/lib/components/card/index.js +6 -6
  76. package/lib/components/checkbox/Checkbox.js +17 -17
  77. package/lib/components/checkbox/CheckboxProps.d.ts +2 -1
  78. package/lib/components/checkbox/tiles/CheckboxTiles.js +6 -4
  79. package/lib/components/checkbox/tiles/tile/CheckboxTile.js +22 -22
  80. package/lib/components/chips/Chips.d.ts +1 -1
  81. package/lib/components/chips/Chips.js +11 -7
  82. package/lib/components/chips/index.d.ts +2 -2
  83. package/lib/components/chips/index.js +3 -3
  84. package/lib/components/chips/list/ChipsList.d.ts +2 -2
  85. package/lib/components/chips/list/ChipsList.js +7 -5
  86. package/lib/components/chips/list/index.d.ts +1 -1
  87. package/lib/components/chips/list/index.js +2 -2
  88. package/lib/components/columns/Columns.js +4 -2
  89. package/lib/components/columns/column/Column.js +4 -2
  90. package/lib/components/container/Container.js +4 -2
  91. package/lib/components/countdown/Countdown.d.ts +1 -1
  92. package/lib/components/countdown/Countdown.js +77 -17
  93. package/lib/components/countdown/CountdownProps.d.ts +1 -1
  94. package/lib/components/countdown/index.d.ts +2 -2
  95. package/lib/components/countdown/index.js +3 -3
  96. package/lib/components/divider/Divider.js +5 -3
  97. package/lib/components/fab/Fab.d.ts +1 -1
  98. package/lib/components/fab/Fab.js +16 -7
  99. package/lib/components/fab/FabProps.d.ts +3 -5
  100. package/lib/components/fab/index.d.ts +1 -1
  101. package/lib/components/fab/index.js +2 -2
  102. package/lib/components/hero/Hero.js +5 -3
  103. package/lib/components/icon/Icon.js +8 -6
  104. package/lib/components/image/Image.d.ts +1 -1
  105. package/lib/components/image/Image.js +12 -7
  106. package/lib/components/image/ImageProps.d.ts +2 -3
  107. package/lib/components/image/ImageProps.js +1 -1
  108. package/lib/components/image/index.d.ts +1 -1
  109. package/lib/components/image/index.js +2 -2
  110. package/lib/components/input/Input.d.ts +2 -2
  111. package/lib/components/input/Input.js +124 -40
  112. package/lib/components/input/Input.native.d.ts +1 -1
  113. package/lib/components/input/Input.native.js +6 -6
  114. package/lib/components/input/InputProps.d.ts +3 -3
  115. package/lib/components/input/gauge/InputGauge.d.ts +3 -2
  116. package/lib/components/input/gauge/InputGauge.js +15 -15
  117. package/lib/components/input/gauge/hook/useGauge.d.ts +1 -1
  118. package/lib/components/input/gauge/hook/useGauge.js +74 -90
  119. package/lib/components/input/index.d.ts +3 -3
  120. package/lib/components/input/index.js +4 -4
  121. package/lib/components/link/Link.js +8 -6
  122. package/lib/components/list/List.js +6 -4
  123. package/lib/components/list/item/ListItem.js +8 -6
  124. package/lib/components/list/item/description/ListItemDescription.d.ts +2 -2
  125. package/lib/components/list/item/description/ListItemDescription.js +7 -5
  126. package/lib/components/modal/Modal.d.ts +1 -1
  127. package/lib/components/modal/Modal.js +74 -14
  128. package/lib/components/modal/ModalProps.d.ts +2 -3
  129. package/lib/components/modal/body/ModalBody.d.ts +1 -1
  130. package/lib/components/modal/body/ModalBody.js +5 -3
  131. package/lib/components/modal/footer/ModalFooter.d.ts +1 -1
  132. package/lib/components/modal/footer/ModalFooter.js +6 -4
  133. package/lib/components/modal/index.d.ts +4 -4
  134. package/lib/components/modal/index.js +5 -5
  135. package/lib/components/otp/Otp.d.ts +1 -1
  136. package/lib/components/otp/Otp.js +98 -22
  137. package/lib/components/otp/index.d.ts +1 -1
  138. package/lib/components/otp/index.js +2 -2
  139. package/lib/components/pagination/Pagination.d.ts +1 -1
  140. package/lib/components/pagination/Pagination.js +66 -17
  141. package/lib/components/pagination/PaginationProps.d.ts +2 -3
  142. package/lib/components/pagination/index.d.ts +2 -2
  143. package/lib/components/pagination/index.js +3 -3
  144. package/lib/components/popover/Popover.js +7 -5
  145. package/lib/components/price/Price.js +17 -15
  146. package/lib/components/product-tour/ProductTour.js +17 -13
  147. package/lib/components/progress/Progress.d.ts +2 -2
  148. package/lib/components/progress/Progress.js +13 -11
  149. package/lib/components/progress/ProgressProps.d.ts +1 -1
  150. package/lib/components/progress/index.d.ts +3 -3
  151. package/lib/components/progress/index.js +4 -4
  152. package/lib/components/progress/radial/ProgressRadial.d.ts +1 -1
  153. package/lib/components/progress/radial/ProgressRadial.js +52 -11
  154. package/lib/components/progress/radial/ProgressRadialProps.d.ts +3 -5
  155. package/lib/components/progress/radial/index.d.ts +1 -1
  156. package/lib/components/progress/radial/index.js +2 -2
  157. package/lib/components/progress/radial/item/ProgressRadialItemProps.d.ts +1 -1
  158. package/lib/components/progress/radial/item/ProgressRadialtem.d.ts +1 -1
  159. package/lib/components/progress/radial/item/ProgressRadialtem.js +6 -4
  160. package/lib/components/progress/radial/item/index.d.ts +1 -1
  161. package/lib/components/progress/radial/item/index.js +2 -2
  162. package/lib/components/radio/Radio.js +8 -6
  163. package/lib/components/radio/RadioProps.d.ts +1 -1
  164. package/lib/components/radio/index.d.ts +5 -5
  165. package/lib/components/radio/index.js +6 -6
  166. package/lib/components/radio/list/RadioList.d.ts +1 -1
  167. package/lib/components/radio/list/RadioList.js +7 -5
  168. package/lib/components/radio/list/RadioListProps.d.ts +1 -1
  169. package/lib/components/radio/list/index.d.ts +1 -1
  170. package/lib/components/radio/list/index.js +2 -2
  171. package/lib/components/radio/tiles/RadioTiles.js +7 -5
  172. package/lib/components/radio/tiles/RadioTilesProps.d.ts +1 -1
  173. package/lib/components/radio/tiles/index.d.ts +1 -1
  174. package/lib/components/radio/tiles/index.js +2 -2
  175. package/lib/components/radio/tiles/tile/RadioTile.js +12 -10
  176. package/lib/components/radio/tiles/tile/index.d.ts +1 -1
  177. package/lib/components/radio/tiles/tile/index.js +2 -2
  178. package/lib/components/range/Range.d.ts +1 -1
  179. package/lib/components/range/Range.js +57 -15
  180. package/lib/components/range/RangeProps.d.ts +1 -2
  181. package/lib/components/range/index.d.ts +1 -1
  182. package/lib/components/range/index.js +2 -2
  183. package/lib/components/rows/Rows.js +6 -4
  184. package/lib/components/rows/row/Row.js +6 -4
  185. package/lib/components/scroll-view/ScrollView.d.ts +2 -2
  186. package/lib/components/scroll-view/ScrollView.js +13 -11
  187. package/lib/components/section/Section.js +7 -5
  188. package/lib/components/segment-control/SegmentControl.d.ts +2 -8
  189. package/lib/components/segment-control/SegmentControl.js +28 -16
  190. package/lib/components/segment-control/SegmentControlProps.d.ts +1 -1
  191. package/lib/components/segment-control/item/SegmentControlItem.d.ts +2 -6
  192. package/lib/components/segment-control/item/SegmentControlItem.js +18 -8
  193. package/lib/components/segment-control/item/SegmentControlItemProps.d.ts +1 -1
  194. package/lib/components/segment-control/item/index.d.ts +1 -1
  195. package/lib/components/segment-control/item/index.js +2 -2
  196. package/lib/components/select/Select.d.ts +1 -1
  197. package/lib/components/select/Select.js +3 -3
  198. package/lib/components/select/SelectProps.d.ts +2 -3
  199. package/lib/components/select/index.d.ts +2 -2
  200. package/lib/components/select/index.js +3 -3
  201. package/lib/components/select/option/SelectOption.d.ts +2 -2
  202. package/lib/components/select/option/SelectOption.js +9 -7
  203. package/lib/components/select/option/SelectOptionProps.d.ts +2 -3
  204. package/lib/components/select/option/index.d.ts +1 -1
  205. package/lib/components/select/option/index.js +2 -2
  206. package/lib/components/select/web/SelectDynamic.d.ts +1 -1
  207. package/lib/components/select/web/SelectDynamic.js +131 -15
  208. package/lib/components/select/web/SelectNative.js +35 -15
  209. package/lib/components/select/web/index.d.ts +2 -2
  210. package/lib/components/select/web/index.js +3 -3
  211. package/lib/components/spacer/Spacer.js +5 -3
  212. package/lib/components/stepper/Stepper.d.ts +2 -2
  213. package/lib/components/stepper/Stepper.js +36 -9
  214. package/lib/components/stepper/Stepper.native.js +3 -3
  215. package/lib/components/stepper/step/Step.d.ts +1 -1
  216. package/lib/components/stepper/step/Step.js +10 -8
  217. package/lib/components/stepper/step/index.d.ts +1 -1
  218. package/lib/components/stepper/step/index.js +2 -2
  219. package/lib/components/sticker/Sticker.js +9 -7
  220. package/lib/components/switch/Switch.d.ts +1 -1
  221. package/lib/components/switch/Switch.js +43 -11
  222. package/lib/components/switch/SwitchProps.d.ts +3 -2
  223. package/lib/components/switch/index.d.ts +1 -1
  224. package/lib/components/switch/index.js +2 -2
  225. package/lib/components/table/Table.js +7 -5
  226. package/lib/components/table/body/TableBody.js +7 -5
  227. package/lib/components/table/head/TableHead.js +7 -5
  228. package/lib/components/table/td/TableTd.js +6 -4
  229. package/lib/components/table/th/TableTh.js +6 -4
  230. package/lib/components/table/tr/TableTr.d.ts +1 -1
  231. package/lib/components/table/tr/TableTr.js +9 -7
  232. package/lib/components/tabs/Tabs.js +18 -6
  233. package/lib/components/tabs/TabsProps.d.ts +1 -4
  234. package/lib/components/tabs/context/index.js +1 -2
  235. package/lib/components/tabs/tab-list/TabList.js +4 -2
  236. package/lib/components/tabs/tab-list/tab/Tab.js +19 -4
  237. package/lib/components/tabs/tab-list/tab/TabProps.d.ts +1 -3
  238. package/lib/components/tabs/tab-panels/TabPanels.js +4 -2
  239. package/lib/components/tabs/tab-panels/tab-panel/TabPanel.js +6 -4
  240. package/lib/components/tabs/tab-panels/tab-panel/TabPanelProps.d.ts +1 -1
  241. package/lib/components/tag/Tag.js +5 -3
  242. package/lib/components/tag/list/TagList.js +7 -5
  243. package/lib/components/text/Text.js +7 -5
  244. package/lib/components/textarea/Textarea.d.ts +1 -1
  245. package/lib/components/textarea/Textarea.js +27 -15
  246. package/lib/components/textarea/TextareaProps.d.ts +3 -4
  247. package/lib/components/timeline/Timeline.js +6 -4
  248. package/lib/components/timeline/content/TimelineContent.js +7 -5
  249. package/lib/components/timeline/item/TimelineItem.js +6 -4
  250. package/lib/components/timeline/marker/TimelineMarker.js +7 -5
  251. package/lib/components/title/Title.js +9 -7
  252. package/lib/components/view/View.d.ts +1 -1
  253. package/lib/components/view/View.js +15 -12
  254. package/lib/context/index.d.ts +1 -1
  255. package/lib/context/index.js +2 -3
  256. package/lib/context/providerStates.js +2 -3
  257. package/lib/context/providerTheme.js +1 -2
  258. package/lib/helpers/hashClassesHelpers.d.ts +3 -1
  259. package/lib/helpers/hashClassesHelpers.js +15 -18
  260. package/lib/objects/Typography/TypographyBold.js +2 -3
  261. package/lib/version.d.ts +1 -1
  262. package/lib/version.js +1 -1
  263. package/package.json +1 -1
  264. package/lib/components/accordion/item/body/hooks/useAccordionBoy.d.ts +0 -6
  265. package/lib/components/accordion/item/body/hooks/useAccordionBoy.js +0 -14
  266. package/lib/components/alert/hooks/useAlert.d.ts +0 -23
  267. package/lib/components/alert/hooks/useAlert.js +0 -48
  268. package/lib/components/autocomplete/hooks/useAutocomplete.d.ts +0 -40
  269. package/lib/components/autocomplete/hooks/useAutocomplete.js +0 -144
  270. package/lib/components/autocomplete/item/hooks/useAutocompleteItem.d.ts +0 -9
  271. package/lib/components/autocomplete/item/hooks/useAutocompleteItem.js +0 -20
  272. package/lib/components/button/hooks/useButton.d.ts +0 -12
  273. package/lib/components/button/hooks/useButton.js +0 -16
  274. package/lib/components/countdown/hooks/useCountdown.d.ts +0 -16
  275. package/lib/components/countdown/hooks/useCountdown.js +0 -77
  276. package/lib/components/input/hook/useInput.d.ts +0 -68
  277. package/lib/components/input/hook/useInput.js +0 -151
  278. package/lib/components/modal/hooks/useModal.d.ts +0 -26
  279. package/lib/components/modal/hooks/useModal.js +0 -86
  280. package/lib/components/otp/hooks/useOtp.d.ts +0 -20
  281. package/lib/components/otp/hooks/useOtp.js +0 -101
  282. package/lib/components/pagination/hooks/usePagination.d.ts +0 -25
  283. package/lib/components/pagination/hooks/usePagination.js +0 -77
  284. package/lib/components/product-tour/hooks/useProductTour.d.ts +0 -11
  285. package/lib/components/product-tour/hooks/useProductTour.js +0 -22
  286. package/lib/components/progress/radial/hooks/useProgressRadial.d.ts +0 -15
  287. package/lib/components/progress/radial/hooks/useProgressRadial.js +0 -57
  288. package/lib/components/range/hooks/useRange.d.ts +0 -30
  289. package/lib/components/range/hooks/useRange.js +0 -63
  290. package/lib/components/segment-control/hooks/useSegmentControl.d.ts +0 -14
  291. package/lib/components/segment-control/hooks/useSegmentControl.js +0 -31
  292. package/lib/components/segment-control/item/hooks/useSegmentControlItem.d.ts +0 -14
  293. package/lib/components/segment-control/item/hooks/useSegmentControlItem.js +0 -24
  294. package/lib/components/select/web/hooks/useSelectDynamic.d.ts +0 -27
  295. package/lib/components/select/web/hooks/useSelectDynamic.js +0 -156
  296. package/lib/components/select/web/hooks/useSelectNative.d.ts +0 -22
  297. package/lib/components/select/web/hooks/useSelectNative.js +0 -38
  298. package/lib/components/stepper/hooks/useStepper.d.ts +0 -9
  299. package/lib/components/stepper/hooks/useStepper.js +0 -55
  300. package/lib/components/switch/hooks/useSwitch.d.ts +0 -18
  301. package/lib/components/switch/hooks/useSwitch.js +0 -46
  302. package/lib/components/tabs/hooks/useTabs.d.ts +0 -12
  303. package/lib/components/tabs/hooks/useTabs.js +0 -33
  304. package/lib/components/tabs/tab-list/tab/hooks/useTab.d.ts +0 -17
  305. package/lib/components/tabs/tab-list/tab/hooks/useTab.js +0 -28
  306. package/lib/components/tabs/tab-panels/tab-panel/hooks/useTabPanel.d.ts +0 -3
  307. package/lib/components/tabs/tab-panels/tab-panel/hooks/useTabPanel.js +0 -14
  308. package/lib/components/textarea/hooks/useTextarea.d.ts +0 -15
  309. package/lib/components/textarea/hooks/useTextarea.js +0 -30
@@ -1,17 +0,0 @@
1
- import { ClickEvent } from '../../../../../events/OnClickEvent';
2
- import React from 'react';
3
- interface IParams {
4
- index: number;
5
- active?: boolean;
6
- routerLink?: React.ElementType;
7
- disabled?: boolean;
8
- onClick?: ClickEvent;
9
- }
10
- export declare const useTab: ({ index, disabled, routerLink, onClick, active }: IParams) => {
11
- handleClick: (e: React.MouseEvent) => void;
12
- isActive: boolean;
13
- } | {
14
- isActive: boolean;
15
- handleClick?: undefined;
16
- };
17
- export {};
@@ -1,28 +0,0 @@
1
- import { TabsContext } from '../../../../../components/tabs/context';
2
- import React from 'react';
3
- export var useTab = function (_a) {
4
- var index = _a.index, disabled = _a.disabled, routerLink = _a.routerLink, onClick = _a.onClick, active = _a.active;
5
- try {
6
- var _b = React.useContext(TabsContext), activeIndex_1 = _b.activeIndex, setActiveIndex_1 = _b.setActiveIndex;
7
- var isActive = React.useMemo(function () { return activeIndex_1 === index; }, [activeIndex_1, index]);
8
- var handleClick = React.useCallback(function (e) {
9
- if (!disabled) {
10
- if (!routerLink)
11
- setActiveIndex_1(index);
12
- if (onClick)
13
- onClick(e);
14
- }
15
- }, [disabled, onClick, index, setActiveIndex_1, routerLink]);
16
- React.useEffect(function () {
17
- if (active)
18
- setActiveIndex_1(index);
19
- }, [active, setActiveIndex_1, index]);
20
- return { handleClick: handleClick, isActive: isActive };
21
- }
22
- catch (_c) {
23
- return {
24
- isActive: 0 === index,
25
- };
26
- }
27
- };
28
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlVGFiLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vY29tcG9uZW50cy90YWJzL3RhYi1saXN0L3RhYi9ob29rcy91c2VUYWIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQTtBQUV2RCxPQUFPLEtBQUssTUFBTSxPQUFPLENBQUE7QUFVekIsTUFBTSxDQUFDLElBQU0sTUFBTSxHQUFHLFVBQUMsRUFBeUQ7UUFBdkQsS0FBSyxXQUFBLEVBQUUsUUFBUSxjQUFBLEVBQUUsVUFBVSxnQkFBQSxFQUFFLE9BQU8sYUFBQSxFQU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UFBIn0=
@@ -1,3 +0,0 @@
1
- export declare const useTabPanel: () => {
2
- activeIndex: number;
3
- };
@@ -1,14 +0,0 @@
1
- import { TabsContext } from '../../../../../components/tabs/context';
2
- import React from 'react';
3
- export var useTabPanel = function () {
4
- try {
5
- var activeIndex = React.useContext(TabsContext).activeIndex;
6
- return { activeIndex: activeIndex };
7
- }
8
- catch (_a) {
9
- return {
10
- activeIndex: 0,
11
- };
12
- }
13
- };
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlVGFiUGFuZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9jb21wb25lbnRzL3RhYnMvdGFiLXBhbmVscy90YWItcGFuZWwvaG9va3MvdXNlVGFiUGFuZWwudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQTtBQUN2RCxPQUFPLEtBQUssTUFBTSxPQUFPLENBQUE7QUFFekIsTUFBTSxDQUFDLElBQU0sV0FBVyxHQUFHO0lBQ3pCLElBQUk7UUFDTSxJQUFBLFdBQVcsR0FBSyxLQUFLLENBQUMsVUFBVSxDQUFDLFdBQVcsQ0FBQyxZQUFsQyxDQUFrQztRQUNyRCxPQUFPLEVBQUUsV0FBVyxhQUFBLEVBQUUsQ0FBQTtLQUN2QjtJQUFDLFdBQU07UUFDTixPQUFPO1lBQ0wsV0FBVyxFQUFFLENBQUM7U0FDZixDQUFBO0tBQ0Y7QUFDSCxDQUFDLENBQUEifQ==
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { TextareaChangeEventHandler } from '../TextareaProps';
3
- interface IParams {
4
- value?: string;
5
- onChange?: TextareaChangeEventHandler;
6
- defaultValue?: string;
7
- }
8
- export declare const useTextarea: ({ onChange, defaultValue }: IParams) => {
9
- value: string;
10
- handleChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
11
- } | {
12
- value: string | undefined;
13
- handleChange?: undefined;
14
- };
15
- export {};
@@ -1,30 +0,0 @@
1
- import { __read } from "tslib";
2
- import React from 'react';
3
- export var useTextarea = function (_a) {
4
- var onChange = _a.onChange, defaultValue = _a.defaultValue;
5
- try {
6
- var _b = __read(React.useState(defaultValue || ''), 2), value = _b[0], setValue_1 = _b[1];
7
- var handleChange = React.useCallback(function (e) {
8
- setValue_1(e.target.value);
9
- if (onChange) {
10
- onChange({
11
- textareaName: e.target.name,
12
- textareaValue: e.target.value,
13
- });
14
- }
15
- }, [onChange]);
16
- React.useEffect(function () {
17
- setValue_1(defaultValue || '');
18
- }, [defaultValue]);
19
- return {
20
- value: value,
21
- handleChange: handleChange,
22
- };
23
- }
24
- catch (_c) {
25
- return {
26
- value: defaultValue,
27
- };
28
- }
29
- };
30
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlVGV4dGFyZWEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL3RleHRhcmVhL2hvb2tzL3VzZVRleHRhcmVhLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxLQUFLLE1BQU0sT0FBTyxDQUFBO0FBU3pCLE1BQU0sQ0FBQyxJQUFNLFdBQVcsR0FBRyxVQUFDLEVBQW1DO1FBQWpDLFFBQVEsY0FBQSxFQUFFLFlBQVksa0JBQUE7SUFDbEQsSUFBSTtRQUNJLElBQUEsS0FBQSxPQUFvQixLQUFLLENBQUMsUUFBUSxDQUFDLFlBQVksSUFBSSxFQUFFLENBQUMsSUFBQSxFQUFyRCxLQUFLLFFBQUEsRUFBRSxVQUFRLFFBQXNDLENBQUE7UUFFNUQsSUFBTSxZQUFZLEdBQUcsS0FBSyxDQUFDLFdBQVcsQ0FDcEMsVUFBQyxDQUF5QztZQUN4QyxVQUFRLENBQ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