@trilogy-ds/react 0.0.1-beta-152 → 0.0.1-beta-timepicker

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 (754) hide show
  1. package/lib/components/accordion/Accordion.d.ts +3 -3
  2. package/lib/components/accordion/Accordion.js +8 -6
  3. package/lib/components/accordion/Accordion.native.d.ts +4 -7
  4. package/lib/components/accordion/Accordion.native.js +8 -8
  5. package/lib/components/accordion/AccordionProps.d.ts +3 -0
  6. package/lib/components/accordion/item/AccordionItem.d.ts +4 -4
  7. package/lib/components/accordion/item/AccordionItem.js +24 -11
  8. package/lib/components/accordion/item/AccordionItem.native.d.ts +4 -7
  9. package/lib/components/accordion/item/AccordionItem.native.js +33 -36
  10. package/lib/components/accordion/item/AccordionItemProps.d.ts +3 -0
  11. package/lib/components/accordion/item/body/AccordionBody.d.ts +2 -2
  12. package/lib/components/accordion/item/body/AccordionBody.js +12 -8
  13. package/lib/components/accordion/item/body/AccordionBody.native.d.ts +4 -7
  14. package/lib/components/accordion/item/body/AccordionBody.native.js +7 -7
  15. package/lib/components/accordion/item/body/AccordionBodyProps.d.ts +4 -1
  16. package/lib/components/accordion/item/header/AccordionHeader.d.ts +2 -2
  17. package/lib/components/accordion/item/header/AccordionHeader.js +10 -8
  18. package/lib/components/accordion/item/header/AccordionHeader.native.d.ts +4 -7
  19. package/lib/components/accordion/item/header/AccordionHeader.native.js +10 -10
  20. package/lib/components/accordion/item/header/AccordionHeaderProps.d.ts +3 -0
  21. package/lib/components/alert/Alert.d.ts +7 -3
  22. package/lib/components/alert/Alert.js +71 -60
  23. package/lib/components/alert/Alert.native.d.ts +1 -5
  24. package/lib/components/alert/Alert.native.js +29 -40
  25. package/lib/components/alert/AlertEnum.d.ts +9 -0
  26. package/lib/components/alert/AlertEnum.js +10 -0
  27. package/lib/components/alert/AlertProps.d.ts +15 -2
  28. package/lib/components/alert/AlertProps.js +6 -1
  29. package/lib/components/alert/AlertPropsDefaults.js +20 -0
  30. package/lib/components/alert/ToasterStatusPropsDefaults.js +28 -0
  31. package/lib/components/alert/context/ToastPropsDefaults.js +20 -0
  32. package/lib/components/alert/context/ToasterContextProps.d.ts +4 -2
  33. package/lib/components/autocomplete/AutoComplete.d.ts +34 -3
  34. package/lib/components/autocomplete/AutoComplete.js +49 -45
  35. package/lib/components/autocomplete/AutoComplete.native.d.ts +5 -3
  36. package/lib/components/autocomplete/AutoComplete.native.js +12 -9
  37. package/lib/components/autocomplete/AutoCompleteProps.d.ts +4 -4
  38. package/lib/components/autocomplete/AutoCompletePropsNativeDefaults.js +72 -58
  39. package/lib/components/autocomplete/AutoCompletePropsWebDefaults.js +72 -58
  40. package/lib/components/autocomplete/Autocomplete.helpers.js +7 -4
  41. package/lib/components/autocomplete/item/AutoCompleteItem.d.ts +1 -1
  42. package/lib/components/autocomplete/item/AutoCompleteItem.js +1 -1
  43. package/lib/components/autocomplete/menu/AutoCompleteMenu.d.ts +1 -1
  44. package/lib/components/autocomplete/menu/AutoCompleteMenu.js +1 -1
  45. package/lib/components/autolayout/AutoLayout.helpers.js +7 -5
  46. package/lib/components/autolayout/DefaultSpacingMatrix.js +4 -3
  47. package/lib/components/badge/Badge.d.ts +4 -4
  48. package/lib/components/badge/Badge.js +16 -12
  49. package/lib/components/badge/Badge.native.d.ts +13 -9
  50. package/lib/components/badge/Badge.native.js +87 -15
  51. package/lib/components/badge/BadgeProps.d.ts +17 -7
  52. package/lib/components/badge/BadgeProps.js +10 -2
  53. package/lib/components/badge/BadgePropsDefaults.js +18 -12
  54. package/lib/components/badge/index.d.ts +1 -0
  55. package/lib/components/badge/index.js +2 -1
  56. package/lib/components/box/Box.d.ts +4 -3
  57. package/lib/components/box/Box.js +17 -19
  58. package/lib/components/box/Box.native.d.ts +3 -7
  59. package/lib/components/box/Box.native.js +43 -58
  60. package/lib/components/box/BoxProps.d.ts +8 -1
  61. package/lib/components/box/BoxPropsDefaults.js +22 -2
  62. package/lib/components/box/content/BoxContent.d.ts +4 -3
  63. package/lib/components/box/content/BoxContent.js +18 -11
  64. package/lib/components/box/content/BoxContent.native.d.ts +5 -7
  65. package/lib/components/box/content/BoxContent.native.js +20 -11
  66. package/lib/components/box/content/BoxContentProps.d.ts +5 -1
  67. package/lib/components/box/content/BoxContentPropsDefaults.js +7 -1
  68. package/lib/components/box/context/boxContext.d.ts +4 -0
  69. package/lib/components/box/context/boxContext.js +3 -0
  70. package/lib/components/box/footer/BoxFooter.d.ts +3 -4
  71. package/lib/components/box/footer/BoxFooter.js +11 -10
  72. package/lib/components/box/footer/BoxFooter.native.d.ts +4 -7
  73. package/lib/components/box/footer/BoxFooter.native.js +10 -12
  74. package/lib/components/box/footer/BoxFooterProps.d.ts +6 -1
  75. package/lib/components/box/footer/BoxFooterPropsDefaults.js +7 -1
  76. package/lib/components/box/header/BoxHeader.d.ts +5 -4
  77. package/lib/components/box/header/BoxHeader.js +15 -11
  78. package/lib/components/box/header/BoxHeader.native.d.ts +4 -12
  79. package/lib/components/box/header/BoxHeader.native.js +8 -13
  80. package/lib/components/box/header/BoxHeaderProps.d.ts +6 -1
  81. package/lib/components/box/header/BoxHeaderPropsDefaults.js +29 -3
  82. package/lib/components/box/item/BoxItem.d.ts +3 -3
  83. package/lib/components/box/item/BoxItem.js +10 -8
  84. package/lib/components/box/item/BoxItem.native.d.ts +4 -7
  85. package/lib/components/box/item/BoxItem.native.js +10 -10
  86. package/lib/components/box/item/BoxItemProps.d.ts +4 -1
  87. package/lib/components/box/table-container/BoxTableContainer.d.ts +4 -4
  88. package/lib/components/box/table-container/BoxTableContainer.js +11 -9
  89. package/lib/components/box/table-container/BoxTableContainer.native.d.ts +4 -7
  90. package/lib/components/box/table-container/BoxTableContainer.native.js +8 -8
  91. package/lib/components/box/table-container/BoxTableContainerProps.d.ts +3 -0
  92. package/lib/components/breadcrumb/Breadcrumb.d.ts +2 -2
  93. package/lib/components/breadcrumb/Breadcrumb.js +12 -9
  94. package/lib/components/breadcrumb/Breadcrumb.native.d.ts +4 -7
  95. package/lib/components/breadcrumb/Breadcrumb.native.js +11 -11
  96. package/lib/components/breadcrumb/BreadcrumbProps.d.ts +5 -1
  97. package/lib/components/breadcrumb/item/BreadcrumbItem.d.ts +3 -3
  98. package/lib/components/breadcrumb/item/BreadcrumbItem.js +13 -14
  99. package/lib/components/breadcrumb/item/BreadcrumbItem.native.d.ts +4 -7
  100. package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +12 -11
  101. package/lib/components/breadcrumb/item/BreadcrumbItemProps.d.ts +6 -1
  102. package/lib/components/breadcrumb/item/BreadcrumbItemPropsWebDefaults.js +9 -9
  103. package/lib/components/button/Button.d.ts +4 -4
  104. package/lib/components/button/Button.js +32 -31
  105. package/lib/components/button/Button.native.d.ts +4 -7
  106. package/lib/components/button/Button.native.js +92 -133
  107. package/lib/components/button/ButtonProps.d.ts +8 -3
  108. package/lib/components/button/ButtonPropsDefaults.js +13 -11
  109. package/lib/components/button/list/ButtonList.d.ts +6 -2
  110. package/lib/components/button/list/ButtonList.js +17 -10
  111. package/lib/components/button/list/ButtonList.native.d.ts +4 -7
  112. package/lib/components/button/list/ButtonList.native.js +7 -7
  113. package/lib/components/button/list/ButtonListProps.d.ts +7 -4
  114. package/lib/components/button/list/ButtonListWebPropsDefaults.js +11 -1
  115. package/lib/components/button/list/index.d.ts +1 -0
  116. package/lib/components/button/list/index.js +2 -1
  117. package/lib/components/calendar/Calendar.d.ts +15 -0
  118. package/lib/components/calendar/Calendar.js +342 -0
  119. package/lib/components/calendar/Calendar.native.d.ts +16 -0
  120. package/lib/components/calendar/Calendar.native.js +558 -0
  121. package/lib/components/calendar/CalendarProps.d.ts +11 -0
  122. package/lib/components/calendar/CalendarProps.js +2 -0
  123. package/lib/components/calendar/CalendarPropsDefaults.js +63 -0
  124. package/lib/components/calendar/index.d.ts +3 -0
  125. package/lib/components/calendar/index.js +4 -0
  126. package/lib/components/card/Card.d.ts +3 -4
  127. package/lib/components/card/Card.js +12 -11
  128. package/lib/components/card/Card.native.d.ts +3 -7
  129. package/lib/components/card/Card.native.js +26 -28
  130. package/lib/components/card/CardProps.d.ts +6 -1
  131. package/lib/components/card/content/CardContent.d.ts +3 -3
  132. package/lib/components/card/content/CardContent.js +10 -8
  133. package/lib/components/card/content/CardContent.native.d.ts +3 -14
  134. package/lib/components/card/content/CardContent.native.js +7 -55
  135. package/lib/components/card/content/CardContentProps.d.ts +4 -1
  136. package/lib/components/card/image/CardImage.d.ts +3 -3
  137. package/lib/components/card/image/CardImage.js +12 -10
  138. package/lib/components/card/image/CardImage.native.d.ts +3 -6
  139. package/lib/components/card/image/CardImage.native.js +16 -15
  140. package/lib/components/card/image/CardImageProps.d.ts +4 -1
  141. package/lib/components/checkbox/Checkbox.d.ts +6 -4
  142. package/lib/components/checkbox/Checkbox.js +27 -13
  143. package/lib/components/checkbox/Checkbox.native.d.ts +3 -6
  144. package/lib/components/checkbox/Checkbox.native.js +15 -109
  145. package/lib/components/checkbox/{CheckboxPropsDefaults.js → CheckboxCommonPropsDefaults.js} +8 -7
  146. package/lib/components/checkbox/CheckboxProps.d.ts +18 -4
  147. package/lib/components/checkbox/CheckboxWithChildrenDefaults.js +94 -0
  148. package/lib/components/checkbox/CheckboxWithLabelDefaults.js +84 -0
  149. package/lib/components/checkbox/index.d.ts +4 -2
  150. package/lib/components/checkbox/index.js +5 -3
  151. package/lib/components/checkbox/list/CheckboxList.d.ts +14 -0
  152. package/lib/components/checkbox/list/CheckboxList.js +36 -0
  153. package/lib/components/checkbox/list/CheckboxList.native.d.ts +10 -0
  154. package/lib/components/checkbox/list/CheckboxList.native.js +40 -0
  155. package/lib/components/checkbox/list/CheckboxListProps.d.ts +27 -0
  156. package/lib/components/checkbox/list/CheckboxListProps.js +2 -0
  157. package/lib/components/checkbox/list/CheckboxListPropsDefaults.js +17 -0
  158. package/lib/components/checkbox/list/CheckboxListWebPropsDefaults.js +76 -0
  159. package/lib/components/checkbox/list/index.d.ts +2 -0
  160. package/lib/components/checkbox/list/index.js +3 -0
  161. package/lib/components/checkbox/tiles/CheckboxTiles.d.ts +7 -5
  162. package/lib/components/checkbox/tiles/CheckboxTiles.js +19 -13
  163. package/lib/components/checkbox/tiles/CheckboxTiles.native.d.ts +5 -0
  164. package/lib/components/checkbox/tiles/CheckboxTiles.native.js +22 -0
  165. package/lib/components/checkbox/tiles/CheckboxTilesProps.d.ts +5 -1
  166. package/lib/components/checkbox/tiles/CheckboxTilesPropsDefaults.js +29 -2
  167. package/lib/components/checkbox/tiles/tile/CheckboxTile.d.ts +17 -5
  168. package/lib/components/checkbox/tiles/tile/CheckboxTile.js +33 -17
  169. package/lib/components/checkbox/tiles/tile/CheckboxTile.native.d.ts +5 -0
  170. package/lib/components/checkbox/tiles/tile/CheckboxTile.native.js +110 -0
  171. package/lib/components/checkbox/tiles/tile/CheckboxTileProps.d.ts +7 -1
  172. package/lib/components/checkbox/tiles/tile/CheckboxTilePropsDefaults.js +11 -49
  173. package/lib/components/chips/Chips.d.ts +4 -4
  174. package/lib/components/chips/Chips.js +13 -11
  175. package/lib/components/chips/Chips.native.d.ts +4 -7
  176. package/lib/components/chips/Chips.native.js +15 -15
  177. package/lib/components/chips/ChipsProps.d.ts +6 -1
  178. package/lib/components/chips/list/ChipsList.d.ts +1 -1
  179. package/lib/components/chips/list/ChipsList.js +11 -9
  180. package/lib/components/chips/list/ChipsList.native.d.ts +2 -6
  181. package/lib/components/chips/list/ChipsList.native.js +5 -5
  182. package/lib/components/chips/list/ChipsListProps.d.ts +4 -0
  183. package/lib/components/chips/list/ChipsListPropsDefaults.js +7 -0
  184. package/lib/components/columns/Columns.d.ts +4 -4
  185. package/lib/components/columns/Columns.js +15 -12
  186. package/lib/components/columns/Columns.native.d.ts +3 -9
  187. package/lib/components/columns/Columns.native.js +44 -67
  188. package/lib/components/columns/ColumnsProps.d.ts +6 -2
  189. package/lib/components/columns/ColumnsPropsDefaults.js +30 -2
  190. package/lib/components/columns/column/Column.d.ts +4 -4
  191. package/lib/components/columns/column/Column.js +12 -10
  192. package/lib/components/columns/column/Column.native.d.ts +8 -11
  193. package/lib/components/columns/column/Column.native.js +31 -25
  194. package/lib/components/columns/column/ColumnProps.d.ts +4 -1
  195. package/lib/components/columns/column/ColumnPropsDefaults.js +36 -16
  196. package/lib/components/columns/column/index.d.ts +1 -1
  197. package/lib/components/columns/column/index.js +2 -2
  198. package/lib/components/columns/context/index.d.ts +8 -0
  199. package/lib/components/columns/context/index.js +9 -0
  200. package/lib/components/columns/index.d.ts +1 -0
  201. package/lib/components/columns/index.js +2 -1
  202. package/lib/components/container/Container.d.ts +2 -3
  203. package/lib/components/container/Container.js +2 -2
  204. package/lib/components/container/Container.native.d.ts +1 -1
  205. package/lib/components/container/Container.native.js +3 -3
  206. package/lib/components/container/ContainerProps.d.ts +3 -0
  207. package/lib/components/countdown/Countdown.d.ts +3 -3
  208. package/lib/components/countdown/Countdown.js +11 -9
  209. package/lib/components/countdown/Countdown.native.d.ts +3 -6
  210. package/lib/components/countdown/Countdown.native.js +8 -8
  211. package/lib/components/countdown/CountdownProps.d.ts +4 -1
  212. package/lib/components/datepicker/DatePicker.d.ts +22 -0
  213. package/lib/components/datepicker/DatePicker.js +428 -0
  214. package/lib/components/datepicker/DatePicker.native.d.ts +19 -0
  215. package/lib/components/datepicker/DatePicker.native.js +307 -0
  216. package/lib/components/datepicker/DatePickerEnum.d.ts +7 -0
  217. package/lib/components/datepicker/DatePickerEnum.js +8 -0
  218. package/lib/components/datepicker/DatePickerProps.d.ts +37 -0
  219. package/lib/components/datepicker/DatePickerProps.js +2 -0
  220. package/lib/components/datepicker/DatePickerPropsDefaults.js +117 -0
  221. package/lib/components/datepicker/HandleKeyPressDefaults.js +14 -0
  222. package/lib/components/datepicker/SegmentDefaults.js +33 -0
  223. package/lib/components/datepicker/SegmentsDefaults.js +14 -0
  224. package/lib/components/datepicker/index.d.ts +2 -0
  225. package/lib/components/datepicker/index.js +3 -0
  226. package/lib/components/divider/Divider.d.ts +4 -4
  227. package/lib/components/divider/Divider.js +16 -27
  228. package/lib/components/divider/Divider.native.d.ts +4 -7
  229. package/lib/components/divider/Divider.native.js +24 -24
  230. package/lib/components/divider/DividerProps.d.ts +3 -0
  231. package/lib/components/divider/DividerPropsDefaults.js +2 -0
  232. package/lib/components/dropdown/Dropdown.d.ts +13 -0
  233. package/lib/components/dropdown/Dropdown.js +88 -0
  234. package/lib/components/dropdown/Dropdown.native.d.ts +4 -0
  235. package/lib/components/dropdown/Dropdown.native.js +8 -0
  236. package/lib/components/dropdown/DropdownProps.d.ts +15 -0
  237. package/lib/components/dropdown/DropdownProps.js +2 -0
  238. package/lib/components/dropdown/DropdownPropsDefaults.js +53 -0
  239. package/lib/components/dropdown/context/DropdownContext.d.ts +15 -0
  240. package/lib/components/dropdown/context/DropdownContext.js +35 -0
  241. package/lib/components/dropdown/context/index.d.ts +1 -0
  242. package/lib/components/dropdown/context/index.js +2 -0
  243. package/lib/components/dropdown/group/DropdownGroup.d.ts +12 -0
  244. package/lib/components/dropdown/group/DropdownGroup.js +24 -0
  245. package/lib/components/dropdown/group/DropdownGroup.native.d.ts +4 -0
  246. package/lib/components/dropdown/group/DropdownGroup.native.js +8 -0
  247. package/lib/components/dropdown/group/DropdownGroupProps.d.ts +14 -0
  248. package/lib/components/dropdown/group/DropdownGroupProps.js +2 -0
  249. package/lib/components/dropdown/group/DropdownGroupPropsDefaults.js +52 -0
  250. package/lib/components/dropdown/group/index.d.ts +2 -0
  251. package/lib/components/dropdown/group/index.js +3 -0
  252. package/lib/components/dropdown/index.d.ts +6 -0
  253. package/lib/components/dropdown/index.js +7 -0
  254. package/lib/components/dropdown/item/DropdownItem.d.ts +12 -0
  255. package/lib/components/dropdown/item/DropdownItem.js +46 -0
  256. package/lib/components/dropdown/item/DropdownItem.native.d.ts +4 -0
  257. package/lib/components/dropdown/item/DropdownItem.native.js +8 -0
  258. package/lib/components/dropdown/item/DropdownItemProps.d.ts +15 -0
  259. package/lib/components/dropdown/item/DropdownItemProps.js +2 -0
  260. package/lib/components/dropdown/item/DropdownItemPropsDefaults.js +93 -0
  261. package/lib/components/dropdown/item/index.d.ts +2 -0
  262. package/lib/components/dropdown/item/index.js +3 -0
  263. package/lib/components/dropdown/trigger/DropdownTrigger.d.ts +13 -0
  264. package/lib/components/dropdown/trigger/DropdownTrigger.js +61 -0
  265. package/lib/components/dropdown/trigger/DropdownTrigger.native.d.ts +4 -0
  266. package/lib/components/dropdown/trigger/DropdownTrigger.native.js +8 -0
  267. package/lib/components/dropdown/trigger/DropdownTriggerProps.d.ts +13 -0
  268. package/lib/components/dropdown/trigger/DropdownTriggerProps.js +2 -0
  269. package/lib/components/{popover/content/PopoverContentPropsDefaults.js → dropdown/trigger/DropdownTriggerPropsDefaults.js} +14 -0
  270. package/lib/components/dropdown/trigger/index.d.ts +2 -0
  271. package/lib/components/dropdown/trigger/index.js +3 -0
  272. package/lib/components/enumsComponentsName.d.ts +20 -3
  273. package/lib/components/enumsComponentsName.js +20 -3
  274. package/lib/components/fab/Fab.d.ts +2 -2
  275. package/lib/components/fab/Fab.js +6 -4
  276. package/lib/components/fab/Fab.native.d.ts +3 -6
  277. package/lib/components/fab/Fab.native.js +4 -4
  278. package/lib/components/fab/FabProps.d.ts +3 -1
  279. package/lib/components/fab/FabPropsDefaults.js +2 -0
  280. package/lib/components/flex-box/FlexBox.d.ts +18 -0
  281. package/lib/components/flex-box/FlexBox.js +94 -0
  282. package/lib/components/flex-box/FlexBox.native.d.ts +5 -0
  283. package/lib/components/flex-box/FlexBox.native.js +58 -0
  284. package/lib/components/flex-box/FlexBoxProps.d.ts +34 -0
  285. package/lib/components/flex-box/FlexBoxProps.js +2 -0
  286. package/lib/components/flex-box/FlexBoxPropsDefaults.js +128 -0
  287. package/lib/components/flex-box/ResponsiveValueDefaults.js +37 -0
  288. package/lib/components/flex-box/context/index.d.ts +7 -0
  289. package/lib/components/flex-box/context/index.js +8 -0
  290. package/lib/components/flex-box/flex-item/FlexItem.d.ts +28 -0
  291. package/lib/components/flex-box/flex-item/FlexItem.js +42 -0
  292. package/lib/components/flex-box/flex-item/FlexItem.native.d.ts +29 -0
  293. package/lib/components/flex-box/flex-item/FlexItem.native.js +56 -0
  294. package/lib/components/flex-box/flex-item/FlexItemProps.d.ts +23 -0
  295. package/lib/components/flex-box/flex-item/FlexItemProps.js +2 -0
  296. package/lib/components/flex-box/flex-item/FlexItemPropsDefaults.js +101 -0
  297. package/lib/components/flex-box/flex-item/FlexSizeDefaults.js +110 -0
  298. package/lib/components/flex-box/index.d.ts +3 -0
  299. package/lib/components/flex-box/index.js +4 -0
  300. package/lib/components/hero/Hero.d.ts +2 -3
  301. package/lib/components/hero/Hero.js +2 -2
  302. package/lib/components/hero/Hero.native.js +11 -7
  303. package/lib/components/hero/HeroProps.d.ts +5 -0
  304. package/lib/components/hero/HeroPropsDefaults.js +17 -1
  305. package/lib/components/icon/Icon.d.ts +3 -3
  306. package/lib/components/icon/Icon.js +16 -13
  307. package/lib/components/icon/Icon.native.d.ts +4 -7
  308. package/lib/components/icon/Icon.native.js +35 -25
  309. package/lib/components/icon/IconNameEnum.d.ts +1 -0
  310. package/lib/components/icon/IconNameEnum.js +2 -1
  311. package/lib/components/icon/IconProps.d.ts +6 -3
  312. package/lib/components/icon/IconPropsDefaults.js +9 -25
  313. package/lib/components/image/Image.d.ts +8 -4
  314. package/lib/components/image/Image.js +17 -11
  315. package/lib/components/image/Image.native.d.ts +8 -8
  316. package/lib/components/image/Image.native.js +36 -13
  317. package/lib/components/image/ImageProps.d.ts +5 -1
  318. package/lib/components/image/ImagePropsDefaults.js +31 -2
  319. package/lib/components/index.d.ts +5 -0
  320. package/lib/components/index.js +6 -1
  321. package/lib/components/input/ISecurityRulesDefaults.js +23 -0
  322. package/lib/components/input/Input.d.ts +46 -3
  323. package/lib/components/input/Input.js +51 -39
  324. package/lib/components/input/Input.native.d.ts +4 -6
  325. package/lib/components/input/Input.native.js +57 -102
  326. package/lib/components/input/InputChangeEventWebDefaults.js +7 -0
  327. package/lib/components/input/InputEnum.d.ts +2 -1
  328. package/lib/components/input/InputEnum.js +1 -1
  329. package/lib/components/input/InputProps.d.ts +19 -4
  330. package/lib/components/input/InputPropsDefaults.js +72 -6
  331. package/lib/components/input/gauge/InputGauge.d.ts +4 -2
  332. package/lib/components/input/gauge/InputGauge.js +15 -13
  333. package/lib/components/input/gauge/InputGauge.native.d.ts +3 -2
  334. package/lib/components/input/gauge/InputGauge.native.js +27 -17
  335. package/lib/components/input/gauge/hook/useGauge.d.ts +11 -3
  336. package/lib/components/input/gauge/hook/useGauge.js +39 -15
  337. package/lib/components/link/Link.d.ts +5 -4
  338. package/lib/components/link/Link.js +14 -11
  339. package/lib/components/link/Link.native.d.ts +4 -8
  340. package/lib/components/link/Link.native.js +17 -65
  341. package/lib/components/link/LinkDefaults.js +343 -0
  342. package/lib/components/link/LinkProps.d.ts +13 -2
  343. package/lib/components/link/LinkPropsDefaults.js +94 -9
  344. package/lib/components/link/LinkPropsNativeDefaults.js +414 -0
  345. package/lib/components/list/List.d.ts +6 -5
  346. package/lib/components/list/List.js +16 -12
  347. package/lib/components/list/List.native.d.ts +6 -7
  348. package/lib/components/list/List.native.js +14 -9
  349. package/lib/components/list/ListProps.d.ts +4 -0
  350. package/lib/components/list/ListPropsDefaults.js +8 -0
  351. package/lib/components/list/context/ListContext.d.ts +3 -0
  352. package/lib/components/list/context/ListContext.js +8 -0
  353. package/lib/components/list/context/ListContextProps.d.ts +7 -0
  354. package/lib/components/list/context/ListContextProps.js +2 -0
  355. package/lib/components/list/context/ListContextPropsDefaults.js +24 -0
  356. package/lib/components/list/context/index.d.ts +2 -0
  357. package/lib/components/list/context/index.js +3 -0
  358. package/lib/components/list/item/ListItem.d.ts +4 -4
  359. package/lib/components/list/item/ListItem.js +8 -6
  360. package/lib/components/list/item/ListItem.native.d.ts +5 -8
  361. package/lib/components/list/item/ListItem.native.js +35 -56
  362. package/lib/components/list/item/ListItemProps.d.ts +6 -2
  363. package/lib/components/list/item/ListItemProps.js +3 -1
  364. package/lib/components/list/item/ListItemPropsDefaults.js +6 -0
  365. package/lib/components/list/item/description/ListItemDescription.d.ts +3 -3
  366. package/lib/components/list/item/description/ListItemDescription.js +7 -5
  367. package/lib/components/list/item/description/ListItemDescription.native.d.ts +2 -6
  368. package/lib/components/list/item/description/ListItemDescription.native.js +4 -4
  369. package/lib/components/list/item/description/ListItemDescriptionProps.d.ts +3 -0
  370. package/lib/components/modal/Modal.d.ts +5 -6
  371. package/lib/components/modal/Modal.js +71 -73
  372. package/lib/components/modal/Modal.native.d.ts +5 -8
  373. package/lib/components/modal/Modal.native.js +62 -119
  374. package/lib/components/modal/ModalProps.d.ts +6 -3
  375. package/lib/components/modal/ModalPropsDefaults.js +4 -1
  376. package/lib/components/modal/body/ModalBody.d.ts +3 -3
  377. package/lib/components/modal/body/ModalBody.js +7 -5
  378. package/lib/components/modal/body/ModalBody.native.d.ts +3 -6
  379. package/lib/components/modal/body/ModalBody.native.js +17 -13
  380. package/lib/components/modal/body/ModalBodyProps.d.ts +3 -0
  381. package/lib/components/modal/context/ModalContext.d.ts +3 -0
  382. package/lib/components/modal/context/ModalContext.js +8 -0
  383. package/lib/components/modal/context/ModalContextProps.d.ts +8 -0
  384. package/lib/components/modal/context/ModalContextProps.js +2 -0
  385. package/lib/components/modal/context/ModalContextPropsDefaults.js +25 -0
  386. package/lib/components/modal/context/index.d.ts +2 -0
  387. package/lib/components/modal/context/index.js +3 -0
  388. package/lib/components/modal/footer/ModalFooter.d.ts +3 -3
  389. package/lib/components/modal/footer/ModalFooter.js +9 -7
  390. package/lib/components/modal/footer/ModalFooter.native.d.ts +4 -7
  391. package/lib/components/modal/footer/ModalFooter.native.js +27 -15
  392. package/lib/components/modal/footer/ModalFooterProps.d.ts +3 -0
  393. package/lib/components/otp/Otp.d.ts +3 -3
  394. package/lib/components/otp/Otp.js +16 -10
  395. package/lib/components/otp/Otp.native.d.ts +4 -7
  396. package/lib/components/otp/Otp.native.js +46 -47
  397. package/lib/components/otp/OtpProps.d.ts +3 -0
  398. package/lib/components/pagination/Pagination.d.ts +4 -5
  399. package/lib/components/pagination/Pagination.js +41 -36
  400. package/lib/components/pagination/Pagination.native.d.ts +5 -8
  401. package/lib/components/pagination/Pagination.native.js +9 -9
  402. package/lib/components/pagination/PaginationNativePropsDefaults.js +9 -0
  403. package/lib/components/pagination/PaginationProps.d.ts +9 -3
  404. package/lib/components/pagination/PaginationPropsDefaults.js +1 -8
  405. package/lib/components/popover/Popover.d.ts +8 -6
  406. package/lib/components/popover/Popover.js +18 -12
  407. package/lib/components/popover/Popover.native.d.ts +3 -6
  408. package/lib/components/popover/Popover.native.js +6 -6
  409. package/lib/components/popover/PopoverProps.d.ts +5 -1
  410. package/lib/components/popover/PopoverPropsDefaults.js +14 -0
  411. package/lib/components/popover/PopoverWebPropsDefaults.js +14 -0
  412. package/lib/components/popover/index.d.ts +1 -2
  413. package/lib/components/popover/index.js +2 -3
  414. package/lib/components/price/Price.d.ts +3 -3
  415. package/lib/components/price/Price.js +20 -17
  416. package/lib/components/price/Price.native.d.ts +3 -6
  417. package/lib/components/price/Price.native.js +17 -16
  418. package/lib/components/price/PriceHelpers.js +1 -3
  419. package/lib/components/price/PriceProps.d.ts +3 -0
  420. package/lib/components/price/PricePropsDefaults.js +22 -2
  421. package/lib/components/product-tour/ProductTour.d.ts +3 -3
  422. package/lib/components/product-tour/ProductTour.js +7 -5
  423. package/lib/components/product-tour/ProductTour.native.d.ts +3 -6
  424. package/lib/components/product-tour/ProductTour.native.js +4 -4
  425. package/lib/components/product-tour/ProductTourProps.d.ts +3 -0
  426. package/lib/components/product-tour/ProductTourProps.js +1 -1
  427. package/lib/components/progress/Progress.d.ts +2 -2
  428. package/lib/components/progress/Progress.js +16 -10
  429. package/lib/components/progress/Progress.native.d.ts +5 -7
  430. package/lib/components/progress/Progress.native.js +44 -22
  431. package/lib/components/progress/ProgressProps.d.ts +6 -0
  432. package/lib/components/progress/ProgressPropsDefaults.js +22 -0
  433. package/lib/components/progress/index.d.ts +2 -1
  434. package/lib/components/progress/index.js +3 -2
  435. package/lib/components/progress/item/ProgressItem.d.ts +15 -0
  436. package/lib/components/progress/item/ProgressItem.js +28 -0
  437. package/lib/components/progress/item/ProgressItem.native.d.ts +12 -0
  438. package/lib/components/progress/item/ProgressItem.native.js +34 -0
  439. package/lib/components/progress/item/ProgressItemProps.d.ts +20 -0
  440. package/lib/components/progress/item/ProgressItemProps.js +2 -0
  441. package/lib/components/progress/item/ProgressItemPropsDefaults.js +76 -0
  442. package/lib/components/progress/item/index.d.ts +2 -0
  443. package/lib/components/progress/item/index.js +3 -0
  444. package/lib/components/progress/radial/ProgressRadial.d.ts +3 -3
  445. package/lib/components/progress/radial/ProgressRadial.js +8 -6
  446. package/lib/components/progress/radial/ProgressRadial.native.d.ts +3 -6
  447. package/lib/components/progress/radial/ProgressRadial.native.js +14 -17
  448. package/lib/components/progress/radial/ProgressRadialProps.d.ts +3 -0
  449. package/lib/components/progress/radial/ProgressRadialPropsDefaults.js +36 -4
  450. package/lib/components/progress/radial/item/ProgressRadialItemPropsDefaults.js +3 -0
  451. package/lib/components/radio/EventHandlerDefaults.js +21 -0
  452. package/lib/components/radio/Radio.d.ts +7 -6
  453. package/lib/components/radio/Radio.js +25 -20
  454. package/lib/components/radio/Radio.native.d.ts +8 -18
  455. package/lib/components/radio/Radio.native.js +26 -146
  456. package/lib/components/radio/RadioNativePropsDefaults.js +9 -0
  457. package/lib/components/radio/RadioProps.d.ts +12 -2
  458. package/lib/components/radio/RadioPropsDefaults.js +8 -0
  459. package/lib/components/radio/list/RadioList.d.ts +8 -7
  460. package/lib/components/radio/list/RadioList.js +27 -14
  461. package/lib/components/radio/list/RadioList.native.d.ts +3 -6
  462. package/lib/components/radio/list/RadioList.native.js +22 -7
  463. package/lib/components/radio/list/RadioListProps.d.ts +7 -2
  464. package/lib/components/radio/list/RadioListPropsDefaults.js +7 -0
  465. package/lib/components/radio/list/RadioListWebPropsDefaults.js +25 -1
  466. package/lib/components/radio/tiles/RadioTiles.d.ts +10 -6
  467. package/lib/components/radio/tiles/RadioTiles.js +19 -11
  468. package/lib/components/radio/tiles/RadioTiles.native.d.ts +12 -0
  469. package/lib/components/radio/tiles/RadioTiles.native.js +35 -0
  470. package/lib/components/radio/tiles/RadioTilesProps.d.ts +4 -0
  471. package/lib/components/radio/tiles/RadioTilesPropsDefaults.js +29 -2
  472. package/lib/components/radio/tiles/tile/RadioTile.d.ts +19 -6
  473. package/lib/components/radio/tiles/tile/RadioTile.js +43 -24
  474. package/lib/components/radio/tiles/tile/RadioTile.native.d.ts +20 -0
  475. package/lib/components/radio/tiles/tile/RadioTile.native.js +124 -0
  476. package/lib/components/radio/tiles/tile/RadioTileNativePropsDefaults.js +104 -0
  477. package/lib/components/radio/tiles/tile/RadioTileProps.d.ts +13 -2
  478. package/lib/components/radio/tiles/tile/RadioTilePropsCommonDefaults.js +97 -0
  479. package/lib/components/radio/tiles/tile/RadioTilePropsDefaults.js +92 -63
  480. package/lib/components/range/Range.d.ts +13 -2
  481. package/lib/components/range/Range.js +45 -21
  482. package/lib/components/range/Range.native.d.ts +7 -9
  483. package/lib/components/range/Range.native.js +16 -15
  484. package/lib/components/range/RangeNativePropsDefaults.js +9 -0
  485. package/lib/components/range/RangeProps.d.ts +10 -2
  486. package/lib/components/range/RangePropsDefaults.js +15 -0
  487. package/lib/components/rows/Rows.d.ts +2 -2
  488. package/lib/components/rows/Rows.js +7 -5
  489. package/lib/components/rows/Rows.native.d.ts +3 -6
  490. package/lib/components/rows/Rows.native.js +4 -4
  491. package/lib/components/rows/RowsProps.d.ts +3 -0
  492. package/lib/components/rows/row/Row.d.ts +2 -2
  493. package/lib/components/rows/row/Row.js +7 -5
  494. package/lib/components/rows/row/Row.native.d.ts +3 -6
  495. package/lib/components/rows/row/Row.native.js +5 -5
  496. package/lib/components/rows/row/RowProps.d.ts +3 -0
  497. package/lib/components/scroll-view/ScrollView.d.ts +1 -1
  498. package/lib/components/scroll-view/ScrollView.js +4 -3
  499. package/lib/components/scroll-view/ScrollView.native.d.ts +3 -3
  500. package/lib/components/scroll-view/ScrollView.native.js +13 -12
  501. package/lib/components/scroll-view/ScrollViewProps.d.ts +3 -0
  502. package/lib/components/scroll-view/ScrollViewPropsDefaults.js +7 -1
  503. package/lib/components/section/Section.d.ts +2 -2
  504. package/lib/components/section/Section.js +7 -5
  505. package/lib/components/section/Section.native.d.ts +3 -6
  506. package/lib/components/section/Section.native.js +16 -19
  507. package/lib/components/section/SectionProps.d.ts +8 -0
  508. package/lib/components/section/SectionPropsDefaults.js +14 -1
  509. package/lib/components/segment-control/SegmentControl.d.ts +3 -3
  510. package/lib/components/segment-control/SegmentControl.js +9 -7
  511. package/lib/components/segment-control/SegmentControl.native.d.ts +2 -6
  512. package/lib/components/segment-control/SegmentControl.native.js +11 -9
  513. package/lib/components/segment-control/SegmentControlProps.d.ts +5 -2
  514. package/lib/components/segment-control/SegmentControlPropsDefaults.js +11 -1
  515. package/lib/components/segment-control/item/SegmentControlItem.d.ts +3 -3
  516. package/lib/components/segment-control/item/SegmentControlItem.js +12 -10
  517. package/lib/components/segment-control/item/SegmentControlItem.native.d.ts +3 -6
  518. package/lib/components/segment-control/item/SegmentControlItem.native.js +9 -9
  519. package/lib/components/segment-control/item/SegmentControlItemProps.d.ts +3 -0
  520. package/lib/components/select/PropsDefaults.js +171 -0
  521. package/lib/components/select/Select.d.ts +20 -5
  522. package/lib/components/select/Select.js +47 -10
  523. package/lib/components/select/Select.native.d.ts +3 -7
  524. package/lib/components/select/Select.native.js +12 -10
  525. package/lib/components/select/SelectChangeEventDefaults.js +4 -0
  526. package/lib/components/select/SelectChangeEventNativeDefaults.js +37 -0
  527. package/lib/components/select/SelectEnum.d.ts +5 -0
  528. package/lib/components/select/SelectEnum.js +6 -0
  529. package/lib/components/select/SelectNativePropsDefaults.js +206 -0
  530. package/lib/components/select/SelectProps.d.ts +24 -6
  531. package/lib/components/select/SelectPropsDefaults.js +44 -9
  532. package/lib/components/select/context/index.d.ts +13 -0
  533. package/lib/components/select/context/index.js +10 -0
  534. package/lib/components/select/option/SelectOption.d.ts +3 -3
  535. package/lib/components/select/option/SelectOption.js +47 -12
  536. package/lib/components/select/option/SelectOption.native.d.ts +3 -6
  537. package/lib/components/select/option/SelectOption.native.js +19 -21
  538. package/lib/components/select/option/SelectOptionProps.d.ts +3 -0
  539. package/lib/components/select/option/SelectOptionPropsDefaults.js +2 -0
  540. package/lib/components/select/web/SelectDynamic.d.ts +5 -3
  541. package/lib/components/select/web/SelectDynamic.js +68 -178
  542. package/lib/components/select/web/SelectNative.d.ts +3 -3
  543. package/lib/components/select/web/SelectNative.js +23 -10
  544. package/lib/components/skeleton/Skeleton.d.ts +17 -0
  545. package/lib/components/skeleton/Skeleton.js +19 -0
  546. package/lib/components/skeleton/Skeleton.native.d.ts +16 -0
  547. package/lib/components/skeleton/Skeleton.native.js +70 -0
  548. package/lib/components/skeleton/SkeletonProps.d.ts +13 -0
  549. package/lib/components/skeleton/SkeletonProps.js +2 -0
  550. package/lib/components/skeleton/SkeletonPropsDefaults.js +80 -0
  551. package/lib/components/skeleton/index.d.ts +3 -0
  552. package/lib/components/skeleton/index.js +4 -0
  553. package/lib/components/spacer/Spacer.d.ts +2 -2
  554. package/lib/components/spacer/Spacer.js +7 -5
  555. package/lib/components/spacer/Spacer.native.d.ts +3 -6
  556. package/lib/components/spacer/Spacer.native.js +4 -4
  557. package/lib/components/spacer/SpacerProps.d.ts +3 -0
  558. package/lib/components/stepper/Stepper.d.ts +2 -2
  559. package/lib/components/stepper/Stepper.js +8 -6
  560. package/lib/components/stepper/Stepper.native.d.ts +3 -6
  561. package/lib/components/stepper/Stepper.native.js +10 -8
  562. package/lib/components/stepper/StepperProps.d.ts +3 -0
  563. package/lib/components/stepper/step/Step.d.ts +2 -2
  564. package/lib/components/stepper/step/Step.js +7 -5
  565. package/lib/components/stepper/step/Step.native.d.ts +3 -7
  566. package/lib/components/stepper/step/Step.native.js +7 -10
  567. package/lib/components/stepper/step/StepProps.d.ts +3 -0
  568. package/lib/components/stepper/step/StepPropsDefaults.js +2 -0
  569. package/lib/components/sticker/Sticker.d.ts +4 -3
  570. package/lib/components/sticker/Sticker.js +13 -7
  571. package/lib/components/sticker/Sticker.native.d.ts +4 -6
  572. package/lib/components/sticker/Sticker.native.js +22 -13
  573. package/lib/components/sticker/StickerProps.d.ts +5 -2
  574. package/lib/components/sticker/StickerPropsDefaults.js +11 -2
  575. package/lib/components/sticker/index.d.ts +0 -1
  576. package/lib/components/sticker/index.js +1 -2
  577. package/lib/components/switch/Switch.d.ts +3 -3
  578. package/lib/components/switch/Switch.js +8 -7
  579. package/lib/components/switch/Switch.native.d.ts +4 -7
  580. package/lib/components/switch/Switch.native.js +13 -15
  581. package/lib/components/switch/SwitchProps.d.ts +3 -0
  582. package/lib/components/table/Table.d.ts +3 -3
  583. package/lib/components/table/Table.js +7 -5
  584. package/lib/components/table/Table.native.d.ts +3 -6
  585. package/lib/components/table/Table.native.js +4 -4
  586. package/lib/components/table/TableProps.d.ts +3 -0
  587. package/lib/components/table/TableProps.js +1 -1
  588. package/lib/components/table/body/TableBody.d.ts +3 -3
  589. package/lib/components/table/body/TableBody.js +7 -5
  590. package/lib/components/table/body/TableBody.native.d.ts +3 -6
  591. package/lib/components/table/body/TableBody.native.js +4 -4
  592. package/lib/components/table/body/TableBodyProps.d.ts +3 -0
  593. package/lib/components/table/body/TableBodyPropsDefaults.js +14 -2
  594. package/lib/components/table/head/TableHead.d.ts +3 -3
  595. package/lib/components/table/head/TableHead.js +7 -5
  596. package/lib/components/table/head/TableHead.native.d.ts +3 -6
  597. package/lib/components/table/head/TableHead.native.js +4 -4
  598. package/lib/components/table/head/TableHeadProps.d.ts +3 -0
  599. package/lib/components/table/head/TableHeadPropsDefaults.js +14 -2
  600. package/lib/components/table/td/TableTd.d.ts +3 -3
  601. package/lib/components/table/td/TableTd.js +7 -5
  602. package/lib/components/table/td/TableTd.native.d.ts +3 -6
  603. package/lib/components/table/td/TableTd.native.js +4 -4
  604. package/lib/components/table/td/TableTdProps.d.ts +3 -0
  605. package/lib/components/table/th/TableTh.d.ts +3 -3
  606. package/lib/components/table/th/TableTh.js +7 -5
  607. package/lib/components/table/th/TableTh.native.d.ts +2 -6
  608. package/lib/components/table/th/TableTh.native.js +4 -4
  609. package/lib/components/table/th/TableThProps.d.ts +3 -0
  610. package/lib/components/table/tr/TableTr.d.ts +3 -3
  611. package/lib/components/table/tr/TableTr.js +7 -5
  612. package/lib/components/table/tr/TableTr.native.d.ts +2 -6
  613. package/lib/components/table/tr/TableTr.native.js +5 -5
  614. package/lib/components/table/tr/TableTrProps.d.ts +3 -1
  615. package/lib/components/table/tr/TableTrPropsWebDefaults.js +7 -1
  616. package/lib/components/tabs/Tabs.d.ts +7 -8
  617. package/lib/components/tabs/Tabs.js +28 -18
  618. package/lib/components/tabs/Tabs.native.d.ts +11 -0
  619. package/lib/components/tabs/Tabs.native.js +33 -0
  620. package/lib/components/tabs/TabsProps.d.ts +4 -0
  621. package/lib/components/tabs/TabsPropsDefaults.js +30 -2
  622. package/lib/components/tabs/context/index.d.ts +11 -0
  623. package/lib/components/tabs/context/index.js +10 -0
  624. package/lib/components/tabs/tab-list/TabList.d.ts +2 -2
  625. package/lib/components/tabs/tab-list/TabList.js +75 -9
  626. package/lib/components/tabs/tab-list/TabList.native.d.ts +14 -0
  627. package/lib/components/tabs/tab-list/TabList.native.js +86 -0
  628. package/lib/components/tabs/tab-list/TabListProps.d.ts +5 -2
  629. package/lib/components/tabs/tab-list/TabListPropsDefaults.js +11 -1
  630. package/lib/components/tabs/tab-list/tab/Tab.d.ts +6 -5
  631. package/lib/components/tabs/tab-list/tab/Tab.js +37 -51
  632. package/lib/components/tabs/tab-list/tab/Tab.native.d.ts +16 -0
  633. package/lib/components/tabs/tab-list/tab/Tab.native.js +68 -0
  634. package/lib/components/tabs/tab-list/tab/TabProps.d.ts +4 -0
  635. package/lib/components/tabs/tab-list/tab/TabPropsDefaults.js +18 -9
  636. package/lib/components/tabs/tab-panels/TabPanels.d.ts +2 -2
  637. package/lib/components/tabs/tab-panels/TabPanels.js +14 -7
  638. package/lib/components/tabs/tab-panels/TabPanels.native.d.ts +13 -0
  639. package/lib/components/tabs/tab-panels/TabPanels.native.js +33 -0
  640. package/lib/components/tabs/tab-panels/TabPanelsProps.d.ts +3 -0
  641. package/lib/components/tabs/tab-panels/tab-panel/TabPanel.d.ts +2 -2
  642. package/lib/components/tabs/tab-panels/tab-panel/TabPanel.js +13 -7
  643. package/lib/components/tabs/tab-panels/tab-panel/TabPanel.native.d.ts +11 -0
  644. package/lib/components/tabs/tab-panels/tab-panel/TabPanel.native.js +44 -0
  645. package/lib/components/tabs/tab-panels/tab-panel/TabPanelProps.d.ts +5 -1
  646. package/lib/components/tabs/tab-panels/tab-panel/TabPanelPropsDefaults.js +7 -0
  647. package/lib/components/tag/Tag.d.ts +3 -3
  648. package/lib/components/tag/Tag.js +8 -6
  649. package/lib/components/tag/Tag.native.d.ts +3 -6
  650. package/lib/components/tag/Tag.native.js +10 -11
  651. package/lib/components/tag/TagProps.d.ts +3 -6
  652. package/lib/components/tag/TagPropsDefaults.js +1 -0
  653. package/lib/components/tag/list/TagList.d.ts +2 -2
  654. package/lib/components/tag/list/TagList.js +7 -5
  655. package/lib/components/tag/list/TagList.native.d.ts +3 -6
  656. package/lib/components/tag/list/TagList.native.js +5 -4
  657. package/lib/components/tag/list/TagListProps.d.ts +5 -2
  658. package/lib/components/tag/list/TagListPropsDefaults.js +11 -1
  659. package/lib/components/text/Text.d.ts +3 -4
  660. package/lib/components/text/Text.js +7 -6
  661. package/lib/components/text/Text.native.d.ts +3 -7
  662. package/lib/components/text/Text.native.js +14 -15
  663. package/lib/components/text/TextProps.d.ts +3 -0
  664. package/lib/components/textarea/Textarea.d.ts +5 -7
  665. package/lib/components/textarea/Textarea.js +35 -34
  666. package/lib/components/textarea/Textarea.native.d.ts +30 -2
  667. package/lib/components/textarea/Textarea.native.js +26 -57
  668. package/lib/components/textarea/TextareaProps.d.ts +2 -1
  669. package/lib/components/timeline/Timeline.d.ts +2 -2
  670. package/lib/components/timeline/Timeline.js +7 -5
  671. package/lib/components/timeline/Timeline.native.d.ts +2 -5
  672. package/lib/components/timeline/Timeline.native.js +4 -4
  673. package/lib/components/timeline/TimelineProps.d.ts +3 -0
  674. package/lib/components/timeline/content/TimelineContent.d.ts +6 -4
  675. package/lib/components/timeline/content/TimelineContent.js +15 -11
  676. package/lib/components/timeline/content/TimelineContent.native.d.ts +6 -10
  677. package/lib/components/timeline/content/TimelineContent.native.js +13 -14
  678. package/lib/components/timeline/content/TimelineContentProps.d.ts +3 -0
  679. package/lib/components/timeline/item/TimelineItem.d.ts +2 -2
  680. package/lib/components/timeline/item/TimelineItem.js +7 -5
  681. package/lib/components/timeline/item/TimelineItem.native.d.ts +3 -6
  682. package/lib/components/timeline/item/TimelineItem.native.js +6 -6
  683. package/lib/components/timeline/item/TimelineItemProps.d.ts +3 -0
  684. package/lib/components/timeline/marker/TimelineMarker.d.ts +4 -4
  685. package/lib/components/timeline/marker/TimelineMarker.js +8 -6
  686. package/lib/components/timeline/marker/TimelineMarker.native.d.ts +4 -7
  687. package/lib/components/timeline/marker/TimelineMarker.native.js +13 -11
  688. package/lib/components/timeline/marker/TimelineMarkerProps.d.ts +3 -0
  689. package/lib/components/timeline/marker/TimelineMarkerPropsDefaults.js +2 -0
  690. package/lib/components/timeline/marker/TimelineMarkerWebPropsDefaults.js +2 -0
  691. package/lib/components/timepicker-circular/TimepickerCircular.d.ts +8 -0
  692. package/lib/components/timepicker-circular/TimepickerCircular.js +12 -0
  693. package/lib/components/timepicker-circular/TimepickerCircular.native.d.ts +12 -0
  694. package/lib/components/timepicker-circular/TimepickerCircular.native.js +505 -0
  695. package/lib/components/timepicker-circular/TimepickerCircularEnum.d.ts +7 -0
  696. package/lib/components/timepicker-circular/TimepickerCircularEnum.js +9 -0
  697. package/lib/components/timepicker-circular/TimepickerCircularProps.d.ts +13 -0
  698. package/lib/components/timepicker-circular/TimepickerCircularProps.js +2 -0
  699. package/lib/components/timepicker-circular/TimepickerCircularPropsDefaults.js +45 -0
  700. package/lib/components/timepicker-circular/index.d.ts +3 -0
  701. package/lib/components/timepicker-circular/index.js +4 -0
  702. package/lib/components/title/Title.d.ts +4 -4
  703. package/lib/components/title/Title.js +7 -5
  704. package/lib/components/title/Title.native.d.ts +4 -7
  705. package/lib/components/title/Title.native.js +31 -42
  706. package/lib/components/title/TitleProps.d.ts +3 -0
  707. package/lib/components/title/TitlePropsDefaults.js +3 -3
  708. package/lib/components/view/View.d.ts +4 -4
  709. package/lib/components/view/View.js +6 -6
  710. package/lib/components/view/View.native.d.ts +2 -6
  711. package/lib/components/view/View.native.js +6 -6
  712. package/lib/components/view/ViewProps.d.ts +11 -2
  713. package/lib/components/view/ViewProps.js +8 -1
  714. package/lib/components/view/ViewPropsDefaults.js +62 -11
  715. package/lib/context/index.d.ts +1 -1
  716. package/lib/context/provider.d.ts +2 -1
  717. package/lib/context/provider.js +6 -4
  718. package/lib/context/providerStyled.js +5 -5
  719. package/lib/events/OnClickEvent.d.ts +1 -1
  720. package/lib/helpers/clickOutside.d.ts +1 -0
  721. package/lib/helpers/clickOutside.js +16 -0
  722. package/lib/helpers/device.d.ts +3 -0
  723. package/lib/helpers/device.js +5 -4
  724. package/lib/helpers/device.native.d.ts +19 -0
  725. package/lib/helpers/device.native.js +36 -0
  726. package/lib/helpers/hashClassesHelpers.d.ts +1 -1
  727. package/lib/helpers/hashClassesHelpers.js +5 -5
  728. package/lib/helpers/require.d.ts +2 -0
  729. package/lib/helpers/require.js +3 -0
  730. package/lib/objects/Typography/TypographyBold.js +2 -2
  731. package/lib/objects/Typography/TypographyColor.d.ts +1 -1
  732. package/lib/objects/Typography/TypographyColor.js +36 -38
  733. package/lib/objects/facets/Alignable.d.ts +18 -4
  734. package/lib/objects/facets/Alignable.js +28 -5
  735. package/lib/objects/facets/Color.d.ts +7 -4
  736. package/lib/objects/facets/Color.js +12 -2
  737. package/lib/objects/facets/Direction.d.ts +7 -0
  738. package/lib/objects/facets/Direction.js +8 -0
  739. package/lib/objects/facets/Justifiable.d.ts +25 -8
  740. package/lib/objects/facets/Justifiable.js +56 -19
  741. package/lib/objects/facets/index.d.ts +1 -0
  742. package/lib/objects/facets/index.js +2 -1
  743. package/lib/version.d.ts +1 -1
  744. package/lib/version.js +2 -2
  745. package/lib/version.json +3 -0
  746. package/package.json +26 -7
  747. package/lib/components/popover/content/PopoverContent.d.ts +0 -10
  748. package/lib/components/popover/content/PopoverContent.js +0 -19
  749. package/lib/components/popover/content/PopoverContentProps.d.ts +0 -5
  750. package/lib/components/popover/content/PopoverContentProps.js +0 -2
  751. package/lib/components/sticker/StickerEnum.d.ts +0 -24
  752. package/lib/components/sticker/StickerEnum.js +0 -19
  753. package/lib/components/tag/TagClickEventDefaults.js +0 -1
  754. package/lib/hash.json +0 -3
@@ -1,4 +1,8 @@
1
1
  export default {
2
+ "target": {
3
+ "type": "string",
4
+ "values": []
5
+ },
2
6
  "selectValue": {
3
7
  "type": "string",
4
8
  "values": [
@@ -0,0 +1,37 @@
1
+ export default {
2
+ "selectValue": {
3
+ "type": "string",
4
+ "values": [
5
+ "undefined",
6
+ "string"
7
+ ]
8
+ },
9
+ "selectName": {
10
+ "type": "string",
11
+ "values": [
12
+ "undefined",
13
+ "string"
14
+ ]
15
+ },
16
+ "selectId": {
17
+ "type": "string",
18
+ "values": [
19
+ "undefined",
20
+ "string"
21
+ ]
22
+ },
23
+ "name": {
24
+ "type": "string",
25
+ "values": [
26
+ "undefined",
27
+ "string"
28
+ ]
29
+ },
30
+ "selectedOptions": {
31
+ "type": "string",
32
+ "values": [
33
+ "undefined",
34
+ "string[]"
35
+ ]
36
+ }
37
+ };
@@ -0,0 +1,5 @@
1
+ export declare enum SelectStatus {
2
+ SUCCESS = "success",
3
+ ERROR = "error"
4
+ }
5
+ export type SelectStatusValues = `${SelectStatus}`;
@@ -0,0 +1,6 @@
1
+ export var SelectStatus;
2
+ (function (SelectStatus) {
3
+ SelectStatus["SUCCESS"] = "success";
4
+ SelectStatus["ERROR"] = "error";
5
+ })(SelectStatus || (SelectStatus = {}));
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2VsZWN0RW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2NvbXBvbmVudHMvc2VsZWN0L1NlbGVjdEVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksWUFHWDtBQUhELFdBQVksWUFBWTtJQUN0QixtQ0FBbUIsQ0FBQTtJQUNuQiwrQkFBZSxDQUFBO0FBQ2pCLENBQUMsRUFIVyxZQUFZLEtBQVosWUFBWSxRQUd2QiJ9
@@ -0,0 +1,206 @@
1
+ export default {
2
+ "onChange": {
3
+ "type": "function",
4
+ "values": [
5
+ "undefined",
6
+ "SelectNativeChangeEventHandler<T>"
7
+ ]
8
+ },
9
+ "accessibilityLabel": {
10
+ "type": "string",
11
+ "values": [
12
+ "undefined",
13
+ "string"
14
+ ]
15
+ },
16
+ "testId": {
17
+ "type": "string",
18
+ "values": [
19
+ "undefined",
20
+ "string"
21
+ ]
22
+ },
23
+ "id": {
24
+ "type": "string",
25
+ "values": [
26
+ "undefined",
27
+ "string"
28
+ ]
29
+ },
30
+ "className": {
31
+ "type": "string",
32
+ "values": [
33
+ "undefined",
34
+ "string"
35
+ ]
36
+ },
37
+ "onFocus": {
38
+ "type": "function",
39
+ "values": [
40
+ "undefined",
41
+ "ParamEventSelectFocus) => void"
42
+ ]
43
+ },
44
+ "onBlur": {
45
+ "type": "function",
46
+ "values": [
47
+ "undefined",
48
+ "FocusEventHandler<HTMLSelectElement>",
49
+ "(event: unknown) => void"
50
+ ]
51
+ },
52
+ "label": {
53
+ "type": "string",
54
+ "values": [
55
+ "undefined",
56
+ "string"
57
+ ]
58
+ },
59
+ "children": {
60
+ "type": "react",
61
+ "values": [
62
+ "undefined",
63
+ "null",
64
+ "string",
65
+ "number",
66
+ "false",
67
+ "true",
68
+ "JSXElementConstructor<any>>",
69
+ "ReactNode>",
70
+ "ReactPortal"
71
+ ]
72
+ },
73
+ "disabled": {
74
+ "type": "boolean",
75
+ "values": [
76
+ "undefined",
77
+ "false",
78
+ "true"
79
+ ]
80
+ },
81
+ "iconName": {
82
+ "type": "enum",
83
+ "values": [
84
+ "undefined",
85
+ "tri-alert",
86
+ "tri-arrow-down",
87
+ "tri-arrow-left",
88
+ "tri-arrow-right",
89
+ "tri-arrow-up",
90
+ "tri-bell",
91
+ "tri-calendar",
92
+ "tri-check-circle",
93
+ "tri-check",
94
+ "tri-exclamation-circle",
95
+ "tri-eye-slash",
96
+ "tri-eye",
97
+ "tri-infos-circle",
98
+ "tri-search",
99
+ "tri-times",
100
+ "tri-trash",
101
+ "tri-picto-faciliti",
102
+ "tri-picto-handicapzero",
103
+ "tri-picto-la-fibre",
104
+ "tri-picto-payment-americanexpress",
105
+ "tri-picto-payment-cb",
106
+ "tri-picto-payment-mastercard",
107
+ "tri-picto-payment-paypal",
108
+ "tri-picto-payment-visa",
109
+ "tri-alert",
110
+ "tri-arrow-down",
111
+ "tri-arrow-left",
112
+ "tri-arrow-right",
113
+ "tri-arrow-up",
114
+ "tri-bell",
115
+ "tri-calendar",
116
+ "tri-check-circle",
117
+ "tri-check",
118
+ "tri-exclamation-circle",
119
+ "tri-eye-slash",
120
+ "tri-eye",
121
+ "tri-infos-circle",
122
+ "tri-search",
123
+ "tri-times",
124
+ "tri-trash",
125
+ "tri-picto-faciliti",
126
+ "tri-picto-handicapzero",
127
+ "tri-picto-la-fibre",
128
+ "tri-picto-payment-americanexpress",
129
+ "tri-picto-payment-cb",
130
+ "tri-picto-payment-mastercard",
131
+ "tri-picto-payment-paypal",
132
+ "tri-picto-payment-visa"
133
+ ]
134
+ },
135
+ "selected": {
136
+ "type": "string",
137
+ "values": [
138
+ "undefined",
139
+ "string",
140
+ "number",
141
+ "string[]"
142
+ ]
143
+ },
144
+ "name": {
145
+ "type": "string",
146
+ "values": [
147
+ "undefined",
148
+ "string"
149
+ ]
150
+ },
151
+ "multiple": {
152
+ "type": "boolean",
153
+ "values": [
154
+ "undefined",
155
+ "false",
156
+ "true"
157
+ ]
158
+ },
159
+ "placeholder": {
160
+ "type": "string",
161
+ "values": [
162
+ "undefined",
163
+ "string"
164
+ ]
165
+ },
166
+ "custom": {
167
+ "type": "boolean",
168
+ "values": [
169
+ "undefined",
170
+ "false",
171
+ "true"
172
+ ]
173
+ },
174
+ "status": {
175
+ "type": "enum",
176
+ "values": [
177
+ "undefined",
178
+ "success",
179
+ "error",
180
+ "success",
181
+ "error"
182
+ ]
183
+ },
184
+ "required": {
185
+ "type": "boolean",
186
+ "values": [
187
+ "undefined",
188
+ "false",
189
+ "true"
190
+ ]
191
+ },
192
+ "sample": {
193
+ "type": "string",
194
+ "values": [
195
+ "undefined",
196
+ "string"
197
+ ]
198
+ },
199
+ "help": {
200
+ "type": "string",
201
+ "values": [
202
+ "undefined",
203
+ "string"
204
+ ]
205
+ }
206
+ };
@@ -1,26 +1,33 @@
1
1
  /// <reference types="react" />
2
+ import { TextInput } from 'react-native';
2
3
  import { Accessibility, Dev } from '../../objects';
3
- import { IconName, IconNameValues } from '../icon';
4
4
  import { CommonProps } from '../../objects/facets/CommonProps';
5
+ import { IconName, IconNameValues } from '../icon';
6
+ import { SelectStatus, SelectStatusValues } from './SelectEnum';
5
7
  export interface ISelectOption {
6
8
  value: string | undefined;
7
9
  name: string | undefined;
8
10
  id: string | undefined;
9
11
  }
10
- export interface SelectChangeEvent {
12
+ export interface SelectChangeEventNative {
11
13
  selectValue?: string;
12
14
  selectName?: string;
13
15
  selectId?: string;
14
16
  name?: string;
15
17
  selectedOptions?: string[];
16
18
  }
19
+ export interface SelectChangeEvent extends SelectChangeEventNative {
20
+ target: EventTarget & HTMLSelectElement;
21
+ }
17
22
  export type SelectChangeEventHandler<T = SelectChangeEvent> = (event: T) => void;
23
+ export type SelectNativeChangeEventHandler<T = SelectChangeEventNative> = (event: T) => void;
18
24
  export type SelectedValue = string | number | string[] | undefined;
19
25
  export type ParamEventSelectFocus = React.FocusEvent | React.BaseSyntheticEvent;
20
- export interface SelectProps<T = SelectChangeEvent> extends Accessibility, Dev, CommonProps {
21
- onChange?: SelectChangeEventHandler<T>;
26
+ export type SelectRef = HTMLSelectElement | HTMLInputElement;
27
+ export type SelectNativeRef = TextInput;
28
+ interface Props {
22
29
  onFocus?: (event: ParamEventSelectFocus) => void;
23
- onBlur?: (event: unknown) => void;
30
+ onBlur?: React.FocusEventHandler<HTMLSelectElement> | ((event: unknown) => void);
24
31
  label?: string;
25
32
  children?: React.ReactNode;
26
33
  disabled?: boolean;
@@ -29,5 +36,16 @@ export interface SelectProps<T = SelectChangeEvent> extends Accessibility, Dev,
29
36
  name?: string;
30
37
  multiple?: boolean;
31
38
  placeholder?: string;
32
- native?: boolean;
39
+ custom?: boolean;
40
+ status?: SelectStatus | SelectStatusValues;
41
+ required?: boolean;
42
+ sample?: string;
43
+ help?: string;
44
+ }
45
+ export interface SelectProps<T = SelectChangeEvent> extends Accessibility, Dev, CommonProps, Props {
46
+ onChange?: SelectChangeEventHandler<T>;
47
+ }
48
+ export interface SelectNativeProps<T = SelectChangeEventNative> extends Accessibility, Dev, CommonProps, Props {
49
+ onChange?: SelectNativeChangeEventHandler<T>;
33
50
  }
51
+ export {};
@@ -6,6 +6,34 @@ export default {
6
6
  "SelectChangeEventHandler<T>"
7
7
  ]
8
8
  },
9
+ "accessibilityLabel": {
10
+ "type": "string",
11
+ "values": [
12
+ "undefined",
13
+ "string"
14
+ ]
15
+ },
16
+ "testId": {
17
+ "type": "string",
18
+ "values": [
19
+ "undefined",
20
+ "string"
21
+ ]
22
+ },
23
+ "id": {
24
+ "type": "string",
25
+ "values": [
26
+ "undefined",
27
+ "string"
28
+ ]
29
+ },
30
+ "className": {
31
+ "type": "string",
32
+ "values": [
33
+ "undefined",
34
+ "string"
35
+ ]
36
+ },
9
37
  "onFocus": {
10
38
  "type": "function",
11
39
  "values": [
@@ -17,6 +45,7 @@ export default {
17
45
  "type": "function",
18
46
  "values": [
19
47
  "undefined",
48
+ "FocusEventHandler<HTMLSelectElement>",
20
49
  "(event: unknown) => void"
21
50
  ]
22
51
  },
@@ -59,6 +88,7 @@ export default {
59
88
  "tri-arrow-right",
60
89
  "tri-arrow-up",
61
90
  "tri-bell",
91
+ "tri-calendar",
62
92
  "tri-check-circle",
63
93
  "tri-check",
64
94
  "tri-exclamation-circle",
@@ -82,6 +112,7 @@ export default {
82
112
  "tri-arrow-right",
83
113
  "tri-arrow-up",
84
114
  "tri-bell",
115
+ "tri-calendar",
85
116
  "tri-check-circle",
86
117
  "tri-check",
87
118
  "tri-exclamation-circle",
@@ -132,7 +163,7 @@ export default {
132
163
  "string"
133
164
  ]
134
165
  },
135
- "native": {
166
+ "custom": {
136
167
  "type": "boolean",
137
168
  "values": [
138
169
  "undefined",
@@ -140,28 +171,32 @@ export default {
140
171
  "true"
141
172
  ]
142
173
  },
143
- "accessibilityLabel": {
144
- "type": "string",
174
+ "status": {
175
+ "type": "enum",
145
176
  "values": [
146
177
  "undefined",
147
- "string"
178
+ "success",
179
+ "error",
180
+ "success",
181
+ "error"
148
182
  ]
149
183
  },
150
- "testId": {
151
- "type": "string",
184
+ "required": {
185
+ "type": "boolean",
152
186
  "values": [
153
187
  "undefined",
154
- "string"
188
+ "false",
189
+ "true"
155
190
  ]
156
191
  },
157
- "id": {
192
+ "sample": {
158
193
  "type": "string",
159
194
  "values": [
160
195
  "undefined",
161
196
  "string"
162
197
  ]
163
198
  },
164
- "className": {
199
+ "help": {
165
200
  "type": "string",
166
201
  "values": [
167
202
  "undefined",
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { SelectChangeEventHandler, SelectedValue } from '../SelectProps';
3
+ interface IContext {
4
+ selectedOptionValues: SelectedValue[];
5
+ isVisibleOptions: boolean;
6
+ multiple: boolean;
7
+ custom: boolean;
8
+ setSelectedOptionValues: React.Dispatch<React.SetStateAction<SelectedValue[] | []>>;
9
+ setIsVisibleOptions: React.Dispatch<React.SetStateAction<boolean>>;
10
+ onChange?: SelectChangeEventHandler;
11
+ }
12
+ export declare const SelectContext: React.Context<IContext>;
13
+ export {};
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export var SelectContext = React.createContext({
3
+ selectedOptionValues: [],
4
+ multiple: false,
5
+ custom: false,
6
+ isVisibleOptions: false,
7
+ setIsVisibleOptions: function () { return false; },
8
+ setSelectedOptionValues: function () { return []; },
9
+ });
10
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL3NlbGVjdC9jb250ZXh0L2luZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssTUFBTSxPQUFPLENBQUE7QUFhekIsTUFBTSxDQUFDLElBQU0sYUFBYSxHQUFHLEtBQUssQ0FBQyxhQUFhLENBQVc7SUFDekQsb0JBQW9CLEVBQUUsRUFBRTtJQUN4QixRQUFRLEVBQUUsS0FBSztJQUNmLE1BQU0sRUFBRSxLQUFLO0lBQ2IsZ0JBQWdCLEVBQUUsS0FBSztJQUN2QixtQkFBbUIsRUFBRSxjQUFNLE9BQUEsS0FBSyxFQUFMLENBQUs7SUFDaEMsdUJBQXVCLEVBQUUsY0FBTSxPQUFBLEVBQUUsRUFBRixDQUFFO0NBQ2xDLENBQUMsQ0FBQSJ9
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
- import { SelectOptionProps } from './SelectOptionProps';
2
+ import { SelectOptionProps, SelectOptionRef } from './SelectOptionProps';
3
3
  /**
4
4
  * Select Option Component
5
5
  * @param value {string} Select option value
6
6
  * @param children {React.ReactNode}
7
7
  * @param label {string} option name
8
8
  * - -------------------------- WEB PROPERTIES -------------------------------
9
- * @param className {string} Additionnal CSS Classes
9
+ * @param className {string} Additional CSS Classes
10
10
  * @param testId {string} id for testing
11
11
  * @param iconName {IconName | IconNameValues} icon
12
12
  * @param disabled {boolean} disable option
@@ -14,5 +14,5 @@ import { SelectOptionProps } from './SelectOptionProps';
14
14
  * @param id {string} Select option custom id
15
15
  * @param others
16
16
  */
17
- declare const SelectOption: ({ id, className, value, disabled, children, onClick, label, iconName, testId, ...others }: SelectOptionProps) => React.JSX.Element;
17
+ declare const SelectOption: React.ForwardRefExoticComponent<SelectOptionProps<string> & React.RefAttributes<SelectOptionRef>>;
18
18
  export default SelectOption;
@@ -1,14 +1,19 @@
1
- import { __assign, __rest } from "tslib";
1
+ import { __assign, __read, __rest, __spreadArray } from "tslib";
2
+ import { ComponentName } from '../../../components/enumsComponentsName';
3
+ import { Icon } from '../../../components/icon';
4
+ import { useTrilogyContext } from '../../../context';
5
+ import { hashClass } from '../../../helpers';
6
+ import { is } from '../../../services/classify';
2
7
  import clsx from 'clsx';
3
- import { RadioTile } from '../../../components/radio';
4
8
  import * as React from 'react';
9
+ import { SelectContext } from '../context';
5
10
  /**
6
11
  * Select Option Component
7
12
  * @param value {string} Select option value
8
13
  * @param children {React.ReactNode}
9
14
  * @param label {string} option name
10
15
  * - -------------------------- WEB PROPERTIES -------------------------------
11
- * @param className {string} Additionnal CSS Classes
16
+ * @param className {string} Additional CSS Classes
12
17
  * @param testId {string} id for testing
13
18
  * @param iconName {IconName | IconNameValues} icon
14
19
  * @param disabled {boolean} disable option
@@ -16,14 +21,44 @@ import * as React from 'react';
16
21
  * @param id {string} Select option custom id
17
22
  * @param others
18
23
  */
19
- var SelectOption = function (_a) {
20
- var id = _a.id, className = _a.className, value = _a.value, disabled = _a.disabled, children = _a.children, onClick = _a.onClick, label = _a.label, iconName = _a.iconName, testId = _a.testId, others = __rest(_a, ["id", "className", "value", "disabled", "children", "onClick", "label", "iconName", "testId"]);
21
- var _b = others, checked = _b.checked, native = _b.native, focused = _b.focused, props = __rest(_b, ["checked", "native", "focused"]);
22
- var selectClasses = React.useMemo(function () { return clsx(focused && 'focus', className); }, [focused, className]);
23
- if (native) {
24
- return (React.createElement("option", __assign({ role: "option", id: id, value: value, disabled: disabled, "aria-label": label, "data-testid": testId, onClick: onClick }, props), children || label));
24
+ var SelectOption = React.forwardRef(function (_a, ref) {
25
+ var id = _a.id, className = _a.className, _b = _a.value, value = _b === void 0 ? '' : _b, disabled = _a.disabled, children = _a.children, onClick = _a.onClick, label = _a.label, iconName = _a.iconName, testId = _a.testId, others = __rest(_a, ["id", "className", "value", "disabled", "children", "onClick", "label", "iconName", "testId"]);
26
+ var styled = useTrilogyContext().styled;
27
+ var _c = React.useContext(SelectContext), custom = _c.custom, selectedOptionValues = _c.selectedOptionValues, setSelectedOptionValues = _c.setSelectedOptionValues, multiple = _c.multiple, setIsVisibleOptions = _c.setIsVisibleOptions, onChange = _c.onChange;
28
+ var isChecked = selectedOptionValues.includes(value);
29
+ var selectClasses = hashClass(styled, clsx('option', isChecked && 'focus', disabled && is('disabled'), className));
30
+ var handleClickOption = function () {
31
+ setSelectedOptionValues(function (prev) {
32
+ var isInclude = prev.includes(value);
33
+ var newOptionsSelected = !multiple && isInclude
34
+ ? []
35
+ : !multiple && !isInclude
36
+ ? [value]
37
+ : isInclude
38
+ ? prev.filter(function (opt) { return opt !== value; })
39
+ : __spreadArray(__spreadArray([], __read(prev), false), [value], false);
40
+ if (onChange) {
41
+ onChange({
42
+ selectValue: isInclude ? undefined : value,
43
+ selectName: isInclude ? undefined : children || label,
44
+ selectId: isInclude ? undefined : id,
45
+ name: isInclude ? undefined : children || label,
46
+ selectedOptions: newOptionsSelected,
47
+ target: undefined,
48
+ });
49
+ }
50
+ return newOptionsSelected;
51
+ });
52
+ if (!multiple)
53
+ setIsVisibleOptions(false);
54
+ };
55
+ if (custom || multiple) {
56
+ return (React.createElement("li", __assign({ ref: ref, id: id, className: selectClasses, "data-selected": isChecked, role: 'option', "aria-selected": isChecked, "data-value": value, onClick: !disabled ? handleClickOption : undefined }, others),
57
+ iconName && React.createElement(Icon, { name: iconName }),
58
+ label || children));
25
59
  }
26
- return (React.createElement(RadioTile, __assign({ checked: checked, horizontal: true, className: selectClasses, value: value, disabled: disabled, onChange: onClick, icon: iconName, description: label || children }, others)));
27
- };
60
+ return (React.createElement("option", __assign({ ref: ref, role: 'option', id: id, value: value, disabled: disabled, "aria-label": label, "data-testid": testId, onClick: onClick }, others), children || label));
61
+ });
62
+ SelectOption.displayName = ComponentName.SelectOption;
28
63
  export default SelectOption;
29
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2VsZWN0T3B0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vY29tcG9uZW50cy9zZWxlY3Qvb3B0aW9uL1NlbGVjdE9wdGlvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sSUFBSSxNQUFNLE1BQU0sQ0FBQTtBQUN2QixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sb0JBQW9CLENBQUE7QUFDOUMsT0FBTyxLQUFLLEtBQUssTUFBTSxPQUFPLENBQUE7QUFHOUI7Ozs7Ozs7Ozs7Ozs7R0FhRztBQUNILElBQU0sWUFBWSxHQUFHLFVBQUMsRUFXb0I7SUFWbEIsSUFBQSxFQUFFLFFBQUEsRUFDRixTQUFTLGVBQUEsRUFDVCxLQUFLLFdBQUEsRUFDTCxRQUFRLGNBQUEsRUFDUixRQUFRLGNBQUEsRUFDUixPQUFPLGFBQUEsRUFDUCxLQUFLLFdBQUEsRUFDTCxRQUFRLGNBQUEsRUFDUixNQUFNLFlBQUEsRUFDSCxNQUFNLGNBVlgsOEZBV0MsQ0FEVTtJQUcvQixJQUFNLEtBQXlDLE1BQWlFLEVBQXhHLE9BQU8sYUFBQSxFQUFFLE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FBRSxFQUFFLEVBQ04sS0FBSyxFQUFFLEtBQUssRUFDWixRQUFRLEVBQUUsUUFBUSxnQkFDTixLQUFLLGlCQUNKLE1BQU0sRUFDbkIsT0FBTyxFQUFFLE9BQU8sSUFDWixNQUFNLEdBRVQsUUFBUSxJQUFJLEtBQUssQ0FDWCxDQUNWLENBQUE7QUFDSCxDQUFDLENBQ0YsQ0FBQTtBQUVELFlBQVksQ0FBQyxXQUFXLEdBQUcsYUFBYSxDQUFDLFlBQVksQ0FBQTtBQUNyRCxlQUFlLFlBQVksQ0FBQSJ9
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import { ComponentName } from '../../../components/enumsComponentsName';
1
+ import * as React from 'react';
2
+ import { TouchableOpacity } from 'react-native';
3
3
  import { SelectOptionProps } from './SelectOptionProps';
4
4
  /**
5
5
  * Select Option Component
@@ -7,8 +7,5 @@ import { SelectOptionProps } from './SelectOptionProps';
7
7
  * @param label {string} Label value
8
8
  * @param children {React.ReactNode}
9
9
  */
10
- declare const SelectOption: {
11
- ({ disabled, children, onClick, label, iconName, ...others }: SelectOptionProps): JSX.Element;
12
- displayName: ComponentName;
13
- };
10
+ declare const SelectOption: React.ForwardRefExoticComponent<SelectOptionProps<string> & React.RefAttributes<TouchableOpacity>>;
14
11
  export default SelectOption;