@trilogy-ds/react 0.0.1-beta-110 → 0.0.1-beta-112

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 (999) hide show
  1. package/lib/components/accordion/Accordion.d.ts +1 -1
  2. package/lib/components/accordion/Accordion.example.d.ts +3 -0
  3. package/lib/components/accordion/Accordion.example.js +19 -0
  4. package/lib/components/accordion/Accordion.example.js.map +1 -0
  5. package/lib/components/accordion/Accordion.js +3 -4
  6. package/lib/components/accordion/Accordion.js.map +1 -1
  7. package/lib/components/accordion/body/AccordionBody.d.ts +1 -2
  8. package/lib/components/accordion/body/AccordionBody.js +1 -2
  9. package/lib/components/accordion/body/AccordionBody.js.map +1 -1
  10. package/lib/components/accordion/body/AccordionBody.native.d.ts +1 -1
  11. package/lib/components/accordion/body/AccordionBody.native.js +1 -1
  12. package/lib/components/accordion/body/AccordionBodyProps.d.ts +1 -0
  13. package/lib/components/accordion/header/AccordionHeader.js +1 -1
  14. package/lib/components/accordion/header/AccordionHeader.js.map +1 -1
  15. package/lib/components/accordion/index.d.ts +2 -1
  16. package/lib/components/accordion/index.js +2 -1
  17. package/lib/components/accordion/index.js.map +1 -1
  18. package/lib/components/accordion/item/AccordionItem.js +1 -2
  19. package/lib/components/accordion/item/AccordionItem.js.map +1 -1
  20. package/lib/components/accordion/item/AccordionItem.native.js +4 -4
  21. package/lib/components/accordion/item/AccordionItem.native.js.map +1 -1
  22. package/lib/components/alert/Alert.d.ts +7 -7
  23. package/lib/components/alert/Alert.example.d.ts +3 -0
  24. package/lib/components/alert/Alert.example.js +14 -0
  25. package/lib/components/alert/Alert.example.js.map +1 -0
  26. package/lib/components/alert/Alert.js +14 -14
  27. package/lib/components/alert/Alert.js.map +1 -1
  28. package/lib/components/alert/Alert.native.d.ts +6 -7
  29. package/lib/components/alert/Alert.native.js +15 -14
  30. package/lib/components/alert/Alert.native.js.map +1 -1
  31. package/lib/components/alert/AlertProps.d.ts +4 -3
  32. package/lib/components/alert/context/ToasterContextProps.d.ts +3 -3
  33. package/lib/components/alert/index.d.ts +2 -1
  34. package/lib/components/alert/index.js +2 -1
  35. package/lib/components/alert/index.js.map +1 -1
  36. package/lib/components/autolayout/AutoLayout.native.js +1 -1
  37. package/lib/components/autolayout/AutoLayout.native.js.map +1 -1
  38. package/lib/components/autolayout/DefaultSpacingMatrix.js +74 -31
  39. package/lib/components/autolayout/DefaultSpacingMatrix.js.map +1 -1
  40. package/lib/components/badge/Badge.d.ts +3 -4
  41. package/lib/components/badge/Badge.example.d.ts +3 -0
  42. package/lib/components/badge/Badge.example.js +5 -0
  43. package/lib/components/badge/Badge.example.js.map +1 -0
  44. package/lib/components/badge/Badge.js +12 -9
  45. package/lib/components/badge/Badge.js.map +1 -1
  46. package/lib/components/badge/Badge.native.d.ts +3 -4
  47. package/lib/components/badge/Badge.native.js +11 -9
  48. package/lib/components/badge/Badge.native.js.map +1 -1
  49. package/lib/components/badge/BadgeEnum.d.ts +5 -0
  50. package/lib/components/badge/BadgeEnum.js +5 -0
  51. package/lib/components/badge/BadgeEnum.js.map +1 -1
  52. package/lib/components/badge/BadgeProps.d.ts +4 -3
  53. package/lib/components/badge/index.d.ts +2 -1
  54. package/lib/components/badge/index.js +2 -1
  55. package/lib/components/badge/index.js.map +1 -1
  56. package/lib/components/box/Box.d.ts +3 -3
  57. package/lib/components/box/Box.example.d.ts +3 -0
  58. package/lib/components/box/Box.example.js +31 -0
  59. package/lib/components/box/Box.example.js.map +1 -0
  60. package/lib/components/box/Box.js +4 -4
  61. package/lib/components/box/Box.js.map +1 -1
  62. package/lib/components/box/Box.native.d.ts +3 -3
  63. package/lib/components/box/Box.native.js +14 -13
  64. package/lib/components/box/Box.native.js.map +1 -1
  65. package/lib/components/box/BoxProps.d.ts +1 -1
  66. package/lib/components/box/content/BoxContent.d.ts +2 -2
  67. package/lib/components/box/content/BoxContent.js +3 -3
  68. package/lib/components/box/content/BoxContent.js.map +1 -1
  69. package/lib/components/box/content/BoxContent.native.d.ts +2 -2
  70. package/lib/components/box/content/BoxContent.native.js +6 -4
  71. package/lib/components/box/content/BoxContent.native.js.map +1 -1
  72. package/lib/components/box/footer/BoxFooter.d.ts +1 -2
  73. package/lib/components/box/footer/BoxFooter.js +1 -2
  74. package/lib/components/box/footer/BoxFooter.js.map +1 -1
  75. package/lib/components/box/footer/BoxFooter.native.d.ts +1 -1
  76. package/lib/components/box/footer/BoxFooter.native.js +1 -1
  77. package/lib/components/box/header/BoxHeader.d.ts +1 -3
  78. package/lib/components/box/header/BoxHeader.js +1 -3
  79. package/lib/components/box/header/BoxHeader.js.map +1 -1
  80. package/lib/components/box/header/BoxHeader.native.d.ts +1 -1
  81. package/lib/components/box/header/BoxHeader.native.js +1 -1
  82. package/lib/components/box/index.d.ts +2 -1
  83. package/lib/components/box/index.js +2 -1
  84. package/lib/components/box/index.js.map +1 -1
  85. package/lib/components/box/item/BoxItem.d.ts +1 -2
  86. package/lib/components/box/item/BoxItem.js +1 -2
  87. package/lib/components/box/item/BoxItem.js.map +1 -1
  88. package/lib/components/box/item/BoxItem.native.d.ts +1 -1
  89. package/lib/components/box/item/BoxItem.native.js +1 -1
  90. package/lib/components/box/table-container/BoxTableContainer.d.ts +1 -3
  91. package/lib/components/box/table-container/BoxTableContainer.js +1 -3
  92. package/lib/components/box/table-container/BoxTableContainer.js.map +1 -1
  93. package/lib/components/box/table-container/BoxTableContainer.native.d.ts +1 -1
  94. package/lib/components/box/table-container/BoxTableContainer.native.js +1 -1
  95. package/lib/components/breadcrumb/Breadcrumb.d.ts +2 -3
  96. package/lib/components/breadcrumb/Breadcrumb.example.d.ts +3 -0
  97. package/lib/components/breadcrumb/Breadcrumb.example.js +9 -0
  98. package/lib/components/breadcrumb/Breadcrumb.example.js.map +1 -0
  99. package/lib/components/breadcrumb/Breadcrumb.js +3 -5
  100. package/lib/components/breadcrumb/Breadcrumb.js.map +1 -1
  101. package/lib/components/breadcrumb/index.d.ts +2 -1
  102. package/lib/components/breadcrumb/index.js +2 -1
  103. package/lib/components/breadcrumb/index.js.map +1 -1
  104. package/lib/components/breadcrumb/item/BreadcrumbItem.d.ts +0 -1
  105. package/lib/components/breadcrumb/item/BreadcrumbItem.js +0 -1
  106. package/lib/components/breadcrumb/item/BreadcrumbItem.js.map +1 -1
  107. package/lib/components/breadcrumb/item/BreadcrumbItem.native.d.ts +0 -1
  108. package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +0 -1
  109. package/lib/components/breadcrumb/item/BreadcrumbItem.native.js.map +1 -1
  110. package/lib/components/button/Button.d.ts +1 -1
  111. package/lib/components/button/Button.example.d.ts +3 -0
  112. package/lib/components/button/Button.example.js +10 -0
  113. package/lib/components/button/Button.example.js.map +1 -0
  114. package/lib/components/button/Button.js +1 -1
  115. package/lib/components/button/Button.native.js +10 -10
  116. package/lib/components/button/Button.native.js.map +1 -1
  117. package/lib/components/button/index.d.ts +2 -1
  118. package/lib/components/button/index.js +2 -1
  119. package/lib/components/button/index.js.map +1 -1
  120. package/lib/components/button/list/ButtonList.native.js +4 -4
  121. package/lib/components/button/list/ButtonList.native.js.map +1 -1
  122. package/lib/components/card/Card.d.ts +3 -10
  123. package/lib/components/card/Card.example.d.ts +3 -0
  124. package/lib/components/card/Card.example.js +25 -0
  125. package/lib/components/card/Card.example.js.map +1 -0
  126. package/lib/components/card/Card.js +7 -13
  127. package/lib/components/card/Card.js.map +1 -1
  128. package/lib/components/card/Card.native.d.ts +3 -2
  129. package/lib/components/card/Card.native.js +8 -7
  130. package/lib/components/card/Card.native.js.map +1 -1
  131. package/lib/components/card/content/CardContent.d.ts +0 -1
  132. package/lib/components/card/content/CardContent.js +0 -1
  133. package/lib/components/card/content/CardContent.js.map +1 -1
  134. package/lib/components/card/content/CardContent.native.d.ts +1 -0
  135. package/lib/components/card/content/CardContent.native.js +1 -0
  136. package/lib/components/card/content/CardContent.native.js.map +1 -1
  137. package/lib/components/card/content/CardContentProps.d.ts +1 -0
  138. package/lib/components/card/image/CardImage.d.ts +2 -2
  139. package/lib/components/card/image/CardImage.js +2 -2
  140. package/lib/components/card/image/CardImage.native.d.ts +1 -1
  141. package/lib/components/card/image/CardImage.native.js +8 -11
  142. package/lib/components/card/image/CardImage.native.js.map +1 -1
  143. package/lib/components/card/image/CardImageProps.d.ts +2 -0
  144. package/lib/components/card/index.d.ts +2 -1
  145. package/lib/components/card/index.js +2 -1
  146. package/lib/components/card/index.js.map +1 -1
  147. package/lib/components/checkbox/Checkbox.d.ts +0 -3
  148. package/lib/components/checkbox/Checkbox.example.d.ts +3 -0
  149. package/lib/components/checkbox/Checkbox.example.js +18 -0
  150. package/lib/components/checkbox/Checkbox.example.js.map +1 -0
  151. package/lib/components/checkbox/Checkbox.js +0 -3
  152. package/lib/components/checkbox/Checkbox.js.map +1 -1
  153. package/lib/components/checkbox/Checkbox.native.d.ts +0 -5
  154. package/lib/components/checkbox/Checkbox.native.js +8 -13
  155. package/lib/components/checkbox/Checkbox.native.js.map +1 -1
  156. package/lib/components/checkbox/index.d.ts +2 -1
  157. package/lib/components/checkbox/index.js +2 -1
  158. package/lib/components/checkbox/index.js.map +1 -1
  159. package/lib/components/chips/Chips.d.ts +2 -2
  160. package/lib/components/chips/Chips.example.d.ts +3 -0
  161. package/lib/components/chips/Chips.example.js +13 -0
  162. package/lib/components/chips/Chips.example.js.map +1 -0
  163. package/lib/components/chips/Chips.js +6 -5
  164. package/lib/components/chips/Chips.js.map +1 -1
  165. package/lib/components/chips/Chips.native.d.ts +2 -1
  166. package/lib/components/chips/Chips.native.js +8 -6
  167. package/lib/components/chips/Chips.native.js.map +1 -1
  168. package/lib/components/chips/ChipsProps.d.ts +1 -0
  169. package/lib/components/chips/index.d.ts +2 -1
  170. package/lib/components/chips/index.js +2 -1
  171. package/lib/components/chips/index.js.map +1 -1
  172. package/lib/components/chips/list/ChipsList.d.ts +2 -2
  173. package/lib/components/chips/list/ChipsList.js +3 -4
  174. package/lib/components/chips/list/ChipsList.js.map +1 -1
  175. package/lib/components/columns/Columns.d.ts +7 -5
  176. package/lib/components/columns/Columns.example.d.ts +3 -0
  177. package/lib/components/columns/Columns.example.js +16 -0
  178. package/lib/components/columns/Columns.example.js.map +1 -0
  179. package/lib/components/columns/Columns.js +10 -9
  180. package/lib/components/columns/Columns.js.map +1 -1
  181. package/lib/components/columns/Columns.native.d.ts +5 -5
  182. package/lib/components/columns/Columns.native.js +49 -63
  183. package/lib/components/columns/Columns.native.js.map +1 -1
  184. package/lib/components/columns/ColumnsProps.d.ts +6 -6
  185. package/lib/components/columns/ColumnsTypes.d.ts +0 -3
  186. package/lib/components/columns/ColumnsTypes.js +1 -1
  187. package/lib/components/columns/ColumnsTypes.js.map +1 -1
  188. package/lib/components/columns/index.d.ts +2 -1
  189. package/lib/components/columns/index.js +2 -1
  190. package/lib/components/columns/index.js.map +1 -1
  191. package/lib/components/columns/item/ColumnsItem.d.ts +3 -3
  192. package/lib/components/columns/item/ColumnsItem.js +5 -6
  193. package/lib/components/columns/item/ColumnsItem.js.map +1 -1
  194. package/lib/components/columns/item/ColumnsItem.native.d.ts +2 -4
  195. package/lib/components/columns/item/ColumnsItem.native.js +11 -12
  196. package/lib/components/columns/item/ColumnsItem.native.js.map +1 -1
  197. package/lib/components/columns/item/ColumnsItemProps.d.ts +1 -1
  198. package/lib/components/container/Container.d.ts +2 -7
  199. package/lib/components/container/Container.example.d.ts +3 -0
  200. package/lib/components/container/Container.example.js +9 -0
  201. package/lib/components/container/Container.example.js.map +1 -0
  202. package/lib/components/container/Container.js +3 -8
  203. package/lib/components/container/Container.js.map +1 -1
  204. package/lib/components/container/Container.native.d.ts +2 -4
  205. package/lib/components/container/Container.native.js +8 -10
  206. package/lib/components/container/Container.native.js.map +1 -1
  207. package/lib/components/container/index.d.ts +2 -1
  208. package/lib/components/container/index.js +2 -1
  209. package/lib/components/container/index.js.map +1 -1
  210. package/lib/components/countdown/Countdown.d.ts +2 -4
  211. package/lib/components/countdown/Countdown.example.d.ts +3 -0
  212. package/lib/components/countdown/Countdown.example.js +10 -0
  213. package/lib/components/countdown/Countdown.example.js.map +1 -0
  214. package/lib/components/countdown/Countdown.js +3 -5
  215. package/lib/components/countdown/Countdown.js.map +1 -1
  216. package/lib/components/countdown/Countdown.native.d.ts +1 -2
  217. package/lib/components/countdown/Countdown.native.js +3 -4
  218. package/lib/components/countdown/Countdown.native.js.map +1 -1
  219. package/lib/components/countdown/CountdownProps.d.ts +0 -1
  220. package/lib/components/countdown/index.d.ts +2 -1
  221. package/lib/components/countdown/index.js +2 -1
  222. package/lib/components/countdown/index.js.map +1 -1
  223. package/lib/components/divider/Divider.d.ts +1 -1
  224. package/lib/components/divider/Divider.example.d.ts +3 -0
  225. package/lib/components/divider/Divider.example.js +5 -0
  226. package/lib/components/divider/Divider.example.js.map +1 -0
  227. package/lib/components/divider/Divider.js +1 -1
  228. package/lib/components/divider/Divider.native.d.ts +1 -1
  229. package/lib/components/divider/Divider.native.js +3 -3
  230. package/lib/components/divider/Divider.native.js.map +1 -1
  231. package/lib/components/divider/index.d.ts +2 -1
  232. package/lib/components/divider/index.js +2 -1
  233. package/lib/components/divider/index.js.map +1 -1
  234. package/lib/components/enumsComponentsName.d.ts +1 -2
  235. package/lib/components/enumsComponentsName.js +1 -2
  236. package/lib/components/enumsComponentsName.js.map +1 -1
  237. package/lib/components/fab/Fab.d.ts +0 -1
  238. package/lib/components/fab/Fab.example.d.ts +3 -0
  239. package/lib/components/fab/Fab.example.js +10 -0
  240. package/lib/components/fab/Fab.example.js.map +1 -0
  241. package/lib/components/fab/Fab.js +0 -1
  242. package/lib/components/fab/Fab.js.map +1 -1
  243. package/lib/components/fab/FabProps.d.ts +2 -2
  244. package/lib/components/fab/index.d.ts +2 -1
  245. package/lib/components/fab/index.js +2 -1
  246. package/lib/components/fab/index.js.map +1 -1
  247. package/lib/components/hero/Hero.d.ts +1 -5
  248. package/lib/components/hero/Hero.example.d.ts +3 -0
  249. package/lib/components/hero/Hero.example.js +21 -0
  250. package/lib/components/hero/Hero.example.js.map +1 -0
  251. package/lib/components/hero/Hero.js +2 -6
  252. package/lib/components/hero/Hero.js.map +1 -1
  253. package/lib/components/hero/Hero.native.d.ts +2 -2
  254. package/lib/components/hero/Hero.native.js +8 -8
  255. package/lib/components/hero/Hero.native.js.map +1 -1
  256. package/lib/components/hero/index.d.ts +2 -1
  257. package/lib/components/hero/index.js +2 -1
  258. package/lib/components/hero/index.js.map +1 -1
  259. package/lib/components/icon/Icon.d.ts +2 -4
  260. package/lib/components/icon/Icon.example.d.ts +3 -0
  261. package/lib/components/icon/Icon.example.js +12 -0
  262. package/lib/components/icon/Icon.example.js.map +1 -0
  263. package/lib/components/icon/Icon.js +3 -5
  264. package/lib/components/icon/Icon.js.map +1 -1
  265. package/lib/components/icon/Icon.native.d.ts +1 -1
  266. package/lib/components/icon/Icon.native.js +2 -2
  267. package/lib/components/icon/Icon.native.js.map +1 -1
  268. package/lib/components/icon/index.d.ts +2 -1
  269. package/lib/components/icon/index.js +2 -1
  270. package/lib/components/icon/index.js.map +1 -1
  271. package/lib/components/icon/text/TextIcon.d.ts +2 -4
  272. package/lib/components/icon/text/TextIcon.js +17 -15
  273. package/lib/components/icon/text/TextIcon.js.map +1 -1
  274. package/lib/components/image/Image.example.d.ts +3 -0
  275. package/lib/components/image/Image.example.js +5 -0
  276. package/lib/components/image/Image.example.js.map +1 -0
  277. package/lib/components/image/index.d.ts +2 -1
  278. package/lib/components/image/index.js +2 -1
  279. package/lib/components/image/index.js.map +1 -1
  280. package/lib/components/index.d.ts +0 -1
  281. package/lib/components/index.js +0 -1
  282. package/lib/components/index.js.map +1 -1
  283. package/lib/components/input/Input.d.ts +72 -2
  284. package/lib/components/input/Input.example.d.ts +3 -0
  285. package/lib/components/input/Input.example.js +5 -0
  286. package/lib/components/input/Input.example.js.map +1 -0
  287. package/lib/components/input/Input.js +34 -19
  288. package/lib/components/input/Input.js.map +1 -1
  289. package/lib/components/input/Input.native.d.ts +4 -4
  290. package/lib/components/input/Input.native.js +42 -49
  291. package/lib/components/input/Input.native.js.map +1 -1
  292. package/lib/components/input/InputProps.d.ts +12 -21
  293. package/lib/components/input/autocomplete/AutoComplete.d.ts +24 -0
  294. package/lib/components/{autocomplete → input/autocomplete}/AutoComplete.js +12 -22
  295. package/lib/components/input/autocomplete/AutoComplete.js.map +1 -0
  296. package/lib/components/input/autocomplete/AutoComplete.native.d.ts +4 -0
  297. package/lib/components/{autocomplete → input/autocomplete}/AutoComplete.native.js +3 -24
  298. package/lib/components/input/autocomplete/AutoComplete.native.js.map +1 -0
  299. package/lib/components/input/autocomplete/AutoCompleteProps.d.ts +29 -0
  300. package/lib/components/input/autocomplete/AutoCompleteProps.js.map +1 -0
  301. package/lib/components/input/autocomplete/Autocomplete.helpers.js.map +1 -0
  302. package/lib/components/input/autocomplete/index.js.map +1 -0
  303. package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteIem.native.js +2 -2
  304. package/lib/components/input/autocomplete/item/AutoCompleteIem.native.js.map +1 -0
  305. package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteItem.js +3 -3
  306. package/lib/components/input/autocomplete/item/AutoCompleteItem.js.map +1 -0
  307. package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteItemProps.d.ts +1 -1
  308. package/lib/components/input/autocomplete/item/AutoCompleteItemProps.js.map +1 -0
  309. package/lib/components/input/autocomplete/item/index.js.map +1 -0
  310. package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenu.js +3 -3
  311. package/lib/components/input/autocomplete/menu/AutoCompleteMenu.js.map +1 -0
  312. package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenu.native.js +3 -3
  313. package/lib/components/input/autocomplete/menu/AutoCompleteMenu.native.js.map +1 -0
  314. package/lib/components/input/autocomplete/menu/AutoCompleteMenuProps.js.map +1 -0
  315. package/lib/components/input/autocomplete/menu/index.js.map +1 -0
  316. package/lib/components/input/autocomplete/utils/debounce.js.map +1 -0
  317. package/lib/components/input/autocomplete/utils/index.js.map +1 -0
  318. package/lib/components/input/gauge/InputGauge.native.js +1 -1
  319. package/lib/components/input/gauge/InputGauge.native.js.map +1 -1
  320. package/lib/components/input/gauge/hook/useGauge.js +1 -1
  321. package/lib/components/input/gauge/hook/useGauge.js.map +1 -1
  322. package/lib/components/input/index.d.ts +2 -1
  323. package/lib/components/input/index.js +2 -1
  324. package/lib/components/input/index.js.map +1 -1
  325. package/lib/components/link/Link.d.ts +0 -2
  326. package/lib/components/link/Link.example.d.ts +3 -0
  327. package/lib/components/link/Link.example.js +15 -0
  328. package/lib/components/link/Link.example.js.map +1 -0
  329. package/lib/components/link/Link.js +2 -4
  330. package/lib/components/link/Link.js.map +1 -1
  331. package/lib/components/link/Link.native.d.ts +1 -2
  332. package/lib/components/link/Link.native.js +10 -12
  333. package/lib/components/link/Link.native.js.map +1 -1
  334. package/lib/components/link/LinkProps.d.ts +1 -0
  335. package/lib/components/link/index.d.ts +2 -1
  336. package/lib/components/link/index.js +2 -1
  337. package/lib/components/link/index.js.map +1 -1
  338. package/lib/components/list/List.d.ts +4 -6
  339. package/lib/components/list/List.example.d.ts +3 -0
  340. package/lib/components/list/List.example.js +17 -0
  341. package/lib/components/list/List.example.js.map +1 -0
  342. package/lib/components/list/List.js +5 -8
  343. package/lib/components/list/List.js.map +1 -1
  344. package/lib/components/list/List.native.d.ts +0 -4
  345. package/lib/components/list/List.native.js +0 -4
  346. package/lib/components/list/List.native.js.map +1 -1
  347. package/lib/components/list/index.d.ts +2 -1
  348. package/lib/components/list/index.js +2 -1
  349. package/lib/components/list/index.js.map +1 -1
  350. package/lib/components/list/item/ListItem.d.ts +1 -3
  351. package/lib/components/list/item/ListItem.js +1 -3
  352. package/lib/components/list/item/ListItem.js.map +1 -1
  353. package/lib/components/list/item/ListItem.native.d.ts +0 -11
  354. package/lib/components/list/item/ListItem.native.js +1 -12
  355. package/lib/components/list/item/ListItem.native.js.map +1 -1
  356. package/lib/components/list/item/description/ListItemDescription.d.ts +2 -3
  357. package/lib/components/list/item/description/ListItemDescription.js +2 -3
  358. package/lib/components/list/item/description/ListItemDescription.js.map +1 -1
  359. package/lib/components/list/item/description/ListItemDescription.native.d.ts +0 -4
  360. package/lib/components/list/item/description/ListItemDescription.native.js +0 -4
  361. package/lib/components/list/item/description/ListItemDescription.native.js.map +1 -1
  362. package/lib/components/modal/Modal.d.ts +6 -6
  363. package/lib/components/modal/Modal.example.d.ts +3 -0
  364. package/lib/components/modal/Modal.example.js +5 -0
  365. package/lib/components/modal/Modal.example.js.map +1 -0
  366. package/lib/components/modal/Modal.js +19 -19
  367. package/lib/components/modal/Modal.js.map +1 -1
  368. package/lib/components/modal/ModalProps.d.ts +5 -1
  369. package/lib/components/modal/footer/ModalFooter.d.ts +2 -3
  370. package/lib/components/modal/footer/ModalFooter.js +2 -3
  371. package/lib/components/modal/footer/ModalFooter.js.map +1 -1
  372. package/lib/components/modal/footer/ModalFooter.native.d.ts +0 -4
  373. package/lib/components/modal/footer/ModalFooter.native.js +0 -4
  374. package/lib/components/modal/footer/ModalFooter.native.js.map +1 -1
  375. package/lib/components/modal/index.d.ts +2 -1
  376. package/lib/components/modal/index.js +2 -1
  377. package/lib/components/modal/index.js.map +1 -1
  378. package/lib/components/modal/title/ModalTitle.d.ts +1 -2
  379. package/lib/components/modal/title/ModalTitle.js +2 -3
  380. package/lib/components/modal/title/ModalTitle.js.map +1 -1
  381. package/lib/components/modal/title/ModalTitle.native.d.ts +0 -6
  382. package/lib/components/modal/title/ModalTitle.native.js +0 -6
  383. package/lib/components/modal/title/ModalTitle.native.js.map +1 -1
  384. package/lib/components/otp/Otp.d.ts +1 -4
  385. package/lib/components/otp/Otp.example.d.ts +3 -0
  386. package/lib/components/otp/Otp.example.js +13 -0
  387. package/lib/components/otp/Otp.example.js.map +1 -0
  388. package/lib/components/otp/Otp.js +87 -81
  389. package/lib/components/otp/Otp.js.map +1 -1
  390. package/lib/components/otp/Otp.native.d.ts +0 -2
  391. package/lib/components/otp/Otp.native.js +1 -3
  392. package/lib/components/otp/Otp.native.js.map +1 -1
  393. package/lib/components/otp/index.d.ts +2 -1
  394. package/lib/components/otp/index.js +2 -1
  395. package/lib/components/otp/index.js.map +1 -1
  396. package/lib/components/pagination/Pagination.d.ts +0 -1
  397. package/lib/components/pagination/Pagination.example.d.ts +3 -0
  398. package/lib/components/pagination/Pagination.example.js +5 -0
  399. package/lib/components/pagination/Pagination.example.js.map +1 -0
  400. package/lib/components/pagination/Pagination.js +6 -6
  401. package/lib/components/pagination/Pagination.js.map +1 -1
  402. package/lib/components/pagination/index.d.ts +2 -1
  403. package/lib/components/pagination/index.js +2 -1
  404. package/lib/components/pagination/index.js.map +1 -1
  405. package/lib/components/popover/Popover.d.ts +1 -3
  406. package/lib/components/popover/Popover.example.d.ts +3 -0
  407. package/lib/components/popover/Popover.example.js +7 -0
  408. package/lib/components/popover/Popover.example.js.map +1 -0
  409. package/lib/components/popover/Popover.js +1 -3
  410. package/lib/components/popover/Popover.js.map +1 -1
  411. package/lib/components/popover/Popover.native.d.ts +2 -0
  412. package/lib/components/popover/Popover.native.js +2 -0
  413. package/lib/components/popover/Popover.native.js.map +1 -1
  414. package/lib/components/popover/index.d.ts +2 -1
  415. package/lib/components/popover/index.js +2 -1
  416. package/lib/components/popover/index.js.map +1 -1
  417. package/lib/components/price/Price.d.ts +4 -4
  418. package/lib/components/price/Price.example.d.ts +3 -0
  419. package/lib/components/price/Price.example.js +12 -0
  420. package/lib/components/price/Price.example.js.map +1 -0
  421. package/lib/components/price/Price.js +10 -29
  422. package/lib/components/price/Price.js.map +1 -1
  423. package/lib/components/price/Price.native.d.ts +3 -3
  424. package/lib/components/price/Price.native.js +88 -129
  425. package/lib/components/price/Price.native.js.map +1 -1
  426. package/lib/components/price/PriceEnum.d.ts +8 -8
  427. package/lib/components/price/PriceEnum.js +7 -7
  428. package/lib/components/price/PriceEnum.js.map +1 -1
  429. package/lib/components/price/PriceProps.d.ts +7 -7
  430. package/lib/components/price/index.d.ts +2 -1
  431. package/lib/components/price/index.js +2 -1
  432. package/lib/components/price/index.js.map +1 -1
  433. package/lib/components/product-tour/ProductTour.d.ts +3 -3
  434. package/lib/components/product-tour/ProductTour.js +3 -3
  435. package/lib/components/progress/Progress.d.ts +3 -3
  436. package/lib/components/progress/Progress.example.d.ts +3 -0
  437. package/lib/components/progress/Progress.example.js +7 -0
  438. package/lib/components/progress/Progress.example.js.map +1 -0
  439. package/lib/components/progress/Progress.js +6 -7
  440. package/lib/components/progress/Progress.js.map +1 -1
  441. package/lib/components/progress/Progress.native.d.ts +2 -2
  442. package/lib/components/progress/Progress.native.js +6 -6
  443. package/lib/components/progress/Progress.native.js.map +1 -1
  444. package/lib/components/progress/ProgressProps.d.ts +2 -2
  445. package/lib/components/progress/index.d.ts +2 -1
  446. package/lib/components/progress/index.js +2 -1
  447. package/lib/components/progress/index.js.map +1 -1
  448. package/lib/components/progress/item/ProgressItem.d.ts +6 -6
  449. package/lib/components/progress/item/ProgressItem.js +9 -10
  450. package/lib/components/progress/item/ProgressItem.js.map +1 -1
  451. package/lib/components/progress/item/ProgressItem.native.d.ts +3 -2
  452. package/lib/components/progress/item/ProgressItem.native.js +3 -2
  453. package/lib/components/progress/item/ProgressItem.native.js.map +1 -1
  454. package/lib/components/progress/item/ProgressItemProps.d.ts +2 -2
  455. package/lib/components/progress/radial/ProgressRadial.d.ts +0 -18
  456. package/lib/components/progress/radial/ProgressRadial.js +1 -20
  457. package/lib/components/progress/radial/ProgressRadial.js.map +1 -1
  458. package/lib/components/progress/radial/ProgressRadial.native.d.ts +3 -3
  459. package/lib/components/progress/radial/ProgressRadial.native.js +12 -10
  460. package/lib/components/progress/radial/ProgressRadial.native.js.map +1 -1
  461. package/lib/components/progress/radial/ProgressRadialProps.d.ts +3 -3
  462. package/lib/components/radio/Radio.d.ts +2 -7
  463. package/lib/components/radio/Radio.example.d.ts +3 -0
  464. package/lib/components/radio/Radio.example.js +18 -0
  465. package/lib/components/radio/Radio.example.js.map +1 -0
  466. package/lib/components/radio/Radio.js +2 -7
  467. package/lib/components/radio/Radio.js.map +1 -1
  468. package/lib/components/radio/Radio.native.d.ts +7 -9
  469. package/lib/components/radio/Radio.native.js +18 -21
  470. package/lib/components/radio/Radio.native.js.map +1 -1
  471. package/lib/components/radio/index.d.ts +2 -1
  472. package/lib/components/radio/index.js +2 -1
  473. package/lib/components/radio/index.js.map +1 -1
  474. package/lib/components/radio/list/RadioList.js.map +1 -1
  475. package/lib/components/radio/list/RadioList.native.js +4 -4
  476. package/lib/components/radio/list/RadioList.native.js.map +1 -1
  477. package/lib/components/range/Range.d.ts +3 -6
  478. package/lib/components/range/Range.example.d.ts +3 -0
  479. package/lib/components/range/Range.example.js +5 -0
  480. package/lib/components/range/Range.example.js.map +1 -0
  481. package/lib/components/range/Range.js +4 -7
  482. package/lib/components/range/Range.js.map +1 -1
  483. package/lib/components/range/Range.native.d.ts +0 -3
  484. package/lib/components/range/Range.native.js +0 -3
  485. package/lib/components/range/Range.native.js.map +1 -1
  486. package/lib/components/range/index.d.ts +2 -1
  487. package/lib/components/range/index.js +2 -1
  488. package/lib/components/range/index.js.map +1 -1
  489. package/lib/components/rows/Rows.d.ts +2 -3
  490. package/lib/components/rows/Rows.example.d.ts +3 -0
  491. package/lib/components/rows/Rows.example.js +16 -0
  492. package/lib/components/rows/Rows.example.js.map +1 -0
  493. package/lib/components/rows/Rows.js +3 -6
  494. package/lib/components/rows/Rows.js.map +1 -1
  495. package/lib/components/rows/Rows.native.d.ts +2 -6
  496. package/lib/components/rows/Rows.native.js +2 -5
  497. package/lib/components/rows/Rows.native.js.map +1 -1
  498. package/lib/components/rows/RowsProps.d.ts +0 -1
  499. package/lib/components/rows/index.d.ts +2 -1
  500. package/lib/components/rows/index.js +2 -1
  501. package/lib/components/rows/index.js.map +1 -1
  502. package/lib/components/rows/item/RowItem.d.ts +2 -2
  503. package/lib/components/rows/item/RowItem.js +3 -4
  504. package/lib/components/rows/item/RowItem.js.map +1 -1
  505. package/lib/components/rows/item/RowItem.native.js +1 -3
  506. package/lib/components/rows/item/RowItem.native.js.map +1 -1
  507. package/lib/components/scroll-view/ScrollView.d.ts +1 -3
  508. package/lib/components/scroll-view/ScrollView.js +1 -3
  509. package/lib/components/scroll-view/ScrollView.js.map +1 -1
  510. package/lib/components/section/Section.d.ts +5 -10
  511. package/lib/components/section/Section.example.d.ts +3 -0
  512. package/lib/components/section/Section.example.js +16 -0
  513. package/lib/components/section/Section.example.js.map +1 -0
  514. package/lib/components/section/Section.js +8 -14
  515. package/lib/components/section/Section.js.map +1 -1
  516. package/lib/components/section/Section.native.d.ts +6 -6
  517. package/lib/components/section/Section.native.js +8 -8
  518. package/lib/components/section/Section.native.js.map +1 -1
  519. package/lib/components/section/SectionProps.d.ts +2 -2
  520. package/lib/components/section/index.d.ts +2 -1
  521. package/lib/components/section/index.js +2 -1
  522. package/lib/components/section/index.js.map +1 -1
  523. package/lib/components/segment-control/SegmentControl.d.ts +1 -4
  524. package/lib/components/segment-control/SegmentControl.example.d.ts +3 -0
  525. package/lib/components/segment-control/SegmentControl.example.js +9 -0
  526. package/lib/components/segment-control/SegmentControl.example.js.map +1 -0
  527. package/lib/components/segment-control/SegmentControl.js +1 -4
  528. package/lib/components/segment-control/SegmentControl.js.map +1 -1
  529. package/lib/components/segment-control/SegmentControl.native.d.ts +4 -4
  530. package/lib/components/segment-control/SegmentControl.native.js +5 -5
  531. package/lib/components/segment-control/SegmentControl.native.js.map +1 -1
  532. package/lib/components/segment-control/SegmentControlProps.d.ts +4 -1
  533. package/lib/components/segment-control/index.d.ts +2 -1
  534. package/lib/components/segment-control/index.js +2 -1
  535. package/lib/components/segment-control/index.js.map +1 -1
  536. package/lib/components/segment-control/item/SegmentControlItem.d.ts +0 -2
  537. package/lib/components/segment-control/item/SegmentControlItem.js +0 -2
  538. package/lib/components/segment-control/item/SegmentControlItem.js.map +1 -1
  539. package/lib/components/segment-control/item/SegmentControlItem.native.js +2 -2
  540. package/lib/components/segment-control/item/SegmentControlItem.native.js.map +1 -1
  541. package/lib/components/select/Select.d.ts +3 -3
  542. package/lib/components/select/Select.example.d.ts +3 -0
  543. package/lib/components/select/Select.example.js +8 -0
  544. package/lib/components/select/Select.example.js.map +1 -0
  545. package/lib/components/select/Select.js +3 -3
  546. package/lib/components/select/Select.native.d.ts +1 -4
  547. package/lib/components/select/Select.native.js +1 -4
  548. package/lib/components/select/Select.native.js.map +1 -1
  549. package/lib/components/select/index.d.ts +2 -1
  550. package/lib/components/select/index.js +2 -1
  551. package/lib/components/select/index.js.map +1 -1
  552. package/lib/components/select/option/SelectOption.d.ts +2 -2
  553. package/lib/components/select/option/SelectOption.js +3 -4
  554. package/lib/components/select/option/SelectOption.js.map +1 -1
  555. package/lib/components/select/option/SelectOption.native.js +14 -18
  556. package/lib/components/select/option/SelectOption.native.js.map +1 -1
  557. package/lib/components/select/web/SelectDynamic.js +2 -3
  558. package/lib/components/select/web/SelectDynamic.js.map +1 -1
  559. package/lib/components/selector/Selector.d.ts +0 -7
  560. package/lib/components/selector/Selector.js +0 -7
  561. package/lib/components/selector/Selector.js.map +1 -1
  562. package/lib/components/selector/Selector.native.d.ts +3 -7
  563. package/lib/components/selector/Selector.native.js +3 -7
  564. package/lib/components/selector/Selector.native.js.map +1 -1
  565. package/lib/components/selector/item/SelectorItem.d.ts +1 -6
  566. package/lib/components/selector/item/SelectorItem.js +1 -6
  567. package/lib/components/selector/item/SelectorItem.js.map +1 -1
  568. package/lib/components/selector/item/SelectorItem.native.d.ts +0 -4
  569. package/lib/components/selector/item/SelectorItem.native.js +1 -5
  570. package/lib/components/selector/item/SelectorItem.native.js.map +1 -1
  571. package/lib/components/spacer/Spacer.d.ts +1 -1
  572. package/lib/components/spacer/Spacer.js +1 -1
  573. package/lib/components/spacer/Spacer.native.d.ts +2 -1
  574. package/lib/components/spacer/Spacer.native.js +2 -1
  575. package/lib/components/spacer/Spacer.native.js.map +1 -1
  576. package/lib/components/spacer/SpacerEnum.d.ts +7 -12
  577. package/lib/components/spacer/SpacerEnum.js +7 -12
  578. package/lib/components/spacer/SpacerEnum.js.map +1 -1
  579. package/lib/components/spacer/SpacerProps.d.ts +2 -2
  580. package/lib/components/stepper/Stepper.d.ts +3 -4
  581. package/lib/components/stepper/Stepper.example.d.ts +3 -0
  582. package/lib/components/stepper/Stepper.example.js +10 -0
  583. package/lib/components/stepper/Stepper.example.js.map +1 -0
  584. package/lib/components/stepper/Stepper.js +6 -9
  585. package/lib/components/stepper/Stepper.js.map +1 -1
  586. package/lib/components/stepper/Stepper.native.js +2 -1
  587. package/lib/components/stepper/Stepper.native.js.map +1 -1
  588. package/lib/components/stepper/index.d.ts +2 -1
  589. package/lib/components/stepper/index.js +2 -1
  590. package/lib/components/stepper/index.js.map +1 -1
  591. package/lib/components/stepper/step/StepperStep.d.ts +5 -8
  592. package/lib/components/stepper/step/StepperStep.js +6 -10
  593. package/lib/components/stepper/step/StepperStep.js.map +1 -1
  594. package/lib/components/stepper/step/StepperStep.native.d.ts +3 -2
  595. package/lib/components/stepper/step/StepperStep.native.js +4 -3
  596. package/lib/components/stepper/step/StepperStep.native.js.map +1 -1
  597. package/lib/components/sticker/Sticker.d.ts +2 -3
  598. package/lib/components/sticker/Sticker.example.d.ts +3 -0
  599. package/lib/components/sticker/Sticker.example.js +10 -0
  600. package/lib/components/sticker/Sticker.example.js.map +1 -0
  601. package/lib/components/sticker/Sticker.js +3 -4
  602. package/lib/components/sticker/Sticker.js.map +1 -1
  603. package/lib/components/sticker/Sticker.native.d.ts +3 -3
  604. package/lib/components/sticker/Sticker.native.js +3 -3
  605. package/lib/components/sticker/index.d.ts +2 -1
  606. package/lib/components/sticker/index.js +2 -1
  607. package/lib/components/sticker/index.js.map +1 -1
  608. package/lib/components/switch/Switch.d.ts +5 -5
  609. package/lib/components/switch/Switch.example.d.ts +3 -0
  610. package/lib/components/switch/Switch.example.js +12 -0
  611. package/lib/components/switch/Switch.example.js.map +1 -0
  612. package/lib/components/switch/Switch.js +7 -7
  613. package/lib/components/switch/Switch.js.map +1 -1
  614. package/lib/components/switch/Switch.native.d.ts +3 -3
  615. package/lib/components/switch/Switch.native.js +8 -7
  616. package/lib/components/switch/Switch.native.js.map +1 -1
  617. package/lib/components/switch/SwitchProps.d.ts +2 -2
  618. package/lib/components/switch/index.d.ts +2 -1
  619. package/lib/components/switch/index.js +2 -1
  620. package/lib/components/switch/index.js.map +1 -1
  621. package/lib/components/table/Table.example.d.ts +3 -0
  622. package/lib/components/table/Table.example.js +19 -0
  623. package/lib/components/table/Table.example.js.map +1 -0
  624. package/lib/components/table/Table.native.js +1 -1
  625. package/lib/components/table/Table.native.js.map +1 -1
  626. package/lib/components/table/index.d.ts +2 -1
  627. package/lib/components/table/index.js +2 -1
  628. package/lib/components/table/index.js.map +1 -1
  629. package/lib/components/table/td/TableTd.native.js +2 -2
  630. package/lib/components/table/td/TableTd.native.js.map +1 -1
  631. package/lib/components/table/th/TableTh.native.js +2 -2
  632. package/lib/components/table/th/TableTh.native.js.map +1 -1
  633. package/lib/components/table/tr/TableTr.native.js +1 -1
  634. package/lib/components/table/tr/TableTr.native.js.map +1 -1
  635. package/lib/components/tabs/Tabs.d.ts +5 -7
  636. package/lib/components/tabs/Tabs.example.d.ts +3 -0
  637. package/lib/components/tabs/Tabs.example.js +16 -0
  638. package/lib/components/tabs/Tabs.example.js.map +1 -0
  639. package/lib/components/tabs/Tabs.js +7 -10
  640. package/lib/components/tabs/Tabs.js.map +1 -1
  641. package/lib/components/tabs/Tabs.native.d.ts +1 -2
  642. package/lib/components/tabs/Tabs.native.js +1 -2
  643. package/lib/components/tabs/Tabs.native.js.map +1 -1
  644. package/lib/components/tabs/TabsProps.d.ts +4 -0
  645. package/lib/components/tabs/index.d.ts +2 -1
  646. package/lib/components/tabs/index.js +2 -1
  647. package/lib/components/tabs/index.js.map +1 -1
  648. package/lib/components/tabs/item/TabsItem.d.ts +5 -6
  649. package/lib/components/tabs/item/TabsItem.js +7 -9
  650. package/lib/components/tabs/item/TabsItem.js.map +1 -1
  651. package/lib/components/tabs/item/TabsItem.native.d.ts +0 -1
  652. package/lib/components/tabs/item/TabsItem.native.js +1 -2
  653. package/lib/components/tabs/item/TabsItem.native.js.map +1 -1
  654. package/lib/components/tag/Tag.d.ts +4 -6
  655. package/lib/components/tag/Tag.example.d.ts +3 -0
  656. package/lib/components/tag/Tag.example.js +13 -0
  657. package/lib/components/tag/Tag.example.js.map +1 -0
  658. package/lib/components/tag/Tag.js +32 -15
  659. package/lib/components/tag/Tag.js.map +1 -1
  660. package/lib/components/tag/Tag.native.d.ts +10 -8
  661. package/lib/components/tag/Tag.native.js +57 -27
  662. package/lib/components/tag/Tag.native.js.map +1 -1
  663. package/lib/components/tag/TagProps.d.ts +4 -0
  664. package/lib/components/tag/index.d.ts +2 -1
  665. package/lib/components/tag/index.js +2 -1
  666. package/lib/components/tag/index.js.map +1 -1
  667. package/lib/components/tag/list/TagList.d.ts +3 -3
  668. package/lib/components/tag/list/TagList.js +4 -5
  669. package/lib/components/tag/list/TagList.js.map +1 -1
  670. package/lib/components/text/Text.example.d.ts +3 -0
  671. package/lib/components/text/Text.example.js +5 -0
  672. package/lib/components/text/Text.example.js.map +1 -0
  673. package/lib/components/text/Text.native.js +8 -9
  674. package/lib/components/text/Text.native.js.map +1 -1
  675. package/lib/components/text/TextEnum.d.ts +5 -5
  676. package/lib/components/text/TextEnum.js +4 -4
  677. package/lib/components/text/TextEnum.js.map +1 -1
  678. package/lib/components/text/index.d.ts +2 -1
  679. package/lib/components/text/index.js +2 -1
  680. package/lib/components/text/index.js.map +1 -1
  681. package/lib/components/textarea/Textarea.d.ts +4 -12
  682. package/lib/components/textarea/Textarea.example.d.ts +3 -0
  683. package/lib/components/textarea/Textarea.example.js +12 -0
  684. package/lib/components/textarea/Textarea.example.js.map +1 -0
  685. package/lib/components/textarea/Textarea.js +7 -20
  686. package/lib/components/textarea/Textarea.js.map +1 -1
  687. package/lib/components/textarea/Textarea.native.d.ts +2 -2
  688. package/lib/components/textarea/Textarea.native.js +51 -67
  689. package/lib/components/textarea/Textarea.native.js.map +1 -1
  690. package/lib/components/textarea/TextareaProps.d.ts +4 -2
  691. package/lib/components/textarea/index.d.ts +2 -1
  692. package/lib/components/textarea/index.js +2 -1
  693. package/lib/components/textarea/index.js.map +1 -1
  694. package/lib/components/timeline/Timeline.d.ts +2 -2
  695. package/lib/components/timeline/Timeline.example.d.ts +3 -0
  696. package/lib/components/timeline/Timeline.example.js +34 -0
  697. package/lib/components/timeline/Timeline.example.js.map +1 -0
  698. package/lib/components/timeline/Timeline.js +4 -4
  699. package/lib/components/timeline/Timeline.js.map +1 -1
  700. package/lib/components/timeline/content/TimelineContent.d.ts +1 -2
  701. package/lib/components/timeline/content/TimelineContent.js +2 -3
  702. package/lib/components/timeline/content/TimelineContent.js.map +1 -1
  703. package/lib/components/timeline/content/TimelineContent.native.d.ts +3 -3
  704. package/lib/components/timeline/content/TimelineContent.native.js +3 -3
  705. package/lib/components/timeline/index.d.ts +2 -1
  706. package/lib/components/timeline/index.js +2 -1
  707. package/lib/components/timeline/index.js.map +1 -1
  708. package/lib/components/timeline/item/TimelineItem.d.ts +3 -4
  709. package/lib/components/timeline/item/TimelineItem.js +4 -6
  710. package/lib/components/timeline/item/TimelineItem.js.map +1 -1
  711. package/lib/components/timeline/item/TimelineItem.native.d.ts +4 -8
  712. package/lib/components/timeline/item/TimelineItem.native.js +3 -7
  713. package/lib/components/timeline/item/TimelineItem.native.js.map +1 -1
  714. package/lib/components/timeline/marker/TimelineMarker.d.ts +3 -4
  715. package/lib/components/timeline/marker/TimelineMarker.js +3 -4
  716. package/lib/components/timeline/marker/TimelineMarker.js.map +1 -1
  717. package/lib/components/timeline/marker/TimelineMarker.native.d.ts +1 -3
  718. package/lib/components/timeline/marker/TimelineMarker.native.js +8 -10
  719. package/lib/components/timeline/marker/TimelineMarker.native.js.map +1 -1
  720. package/lib/components/title/Title.d.ts +2 -4
  721. package/lib/components/title/Title.example.d.ts +3 -0
  722. package/lib/components/title/Title.example.js +10 -0
  723. package/lib/components/title/Title.example.js.map +1 -0
  724. package/lib/components/title/Title.js +4 -6
  725. package/lib/components/title/Title.js.map +1 -1
  726. package/lib/components/title/Title.native.d.ts +5 -7
  727. package/lib/components/title/Title.native.js +14 -17
  728. package/lib/components/title/Title.native.js.map +1 -1
  729. package/lib/components/title/TitleEnum.d.ts +7 -7
  730. package/lib/components/title/TitleEnum.js +6 -6
  731. package/lib/components/title/TitleEnum.js.map +1 -1
  732. package/lib/components/title/index.d.ts +2 -1
  733. package/lib/components/title/index.js +2 -1
  734. package/lib/components/title/index.js.map +1 -1
  735. package/lib/components/toaster/Toaster.d.ts +11 -0
  736. package/lib/components/toaster/Toaster.js +93 -0
  737. package/lib/components/toaster/Toaster.js.map +1 -0
  738. package/lib/components/toaster/Toaster.native.d.ts +15 -0
  739. package/lib/components/toaster/Toaster.native.js +93 -0
  740. package/lib/components/toaster/Toaster.native.js.map +1 -0
  741. package/lib/components/toaster/ToasterEnum.d.ts +1 -0
  742. package/lib/components/toaster/ToasterEnum.js +16 -0
  743. package/lib/components/toaster/ToasterEnum.js.map +1 -0
  744. package/lib/components/toaster/ToasterProps.d.ts +27 -0
  745. package/lib/components/toaster/ToasterProps.js +6 -0
  746. package/lib/components/toaster/ToasterProps.js.map +1 -0
  747. package/lib/components/toaster/context/ToasterContext.d.ts +7 -0
  748. package/lib/components/toaster/context/ToasterContext.js +8 -0
  749. package/lib/components/toaster/context/ToasterContext.js.map +1 -0
  750. package/lib/components/toaster/context/ToasterContextProps.d.ts +27 -0
  751. package/lib/components/toaster/context/ToasterContextProps.js +2 -0
  752. package/lib/components/toaster/context/ToasterContextProps.js.map +1 -0
  753. package/lib/components/toaster/context/index.d.ts +2 -0
  754. package/lib/components/toaster/context/index.js +3 -0
  755. package/lib/components/toaster/context/index.js.map +1 -0
  756. package/lib/components/toaster/index.d.ts +3 -0
  757. package/lib/components/toaster/index.js +4 -0
  758. package/lib/components/toaster/index.js.map +1 -0
  759. package/lib/components/view/View.d.ts +2 -3
  760. package/lib/components/view/View.js +3 -4
  761. package/lib/components/view/View.js.map +1 -1
  762. package/lib/components/view/View.native.d.ts +8 -7
  763. package/lib/components/view/View.native.js +9 -8
  764. package/lib/components/view/View.native.js.map +1 -1
  765. package/lib/components/view/ViewProps.d.ts +1 -2
  766. package/lib/components/view/ViewProps.js +0 -1
  767. package/lib/components/view/ViewProps.js.map +1 -1
  768. package/lib/context/index.d.ts +1 -3
  769. package/lib/context/index.js +2 -2
  770. package/lib/context/index.js.map +1 -1
  771. package/lib/context/provider.native.d.ts +1 -4
  772. package/lib/context/provider.native.js +2 -2
  773. package/lib/context/provider.native.js.map +1 -1
  774. package/lib/context/providerStyled.d.ts +4 -6
  775. package/lib/context/providerStyled.js +20 -23
  776. package/lib/context/providerStyled.js.map +1 -1
  777. package/lib/context/providerStyled.native.d.ts +1 -4
  778. package/lib/context/providerStyled.native.js +2 -2
  779. package/lib/context/providerStyled.native.js.map +1 -1
  780. package/lib/context/providerStyledMangled.d.ts +10 -0
  781. package/lib/context/providerStyledMangled.js +14 -0
  782. package/lib/context/providerStyledMangled.js.map +1 -0
  783. package/lib/context/providerStyledMangled.native.d.ts +1 -0
  784. package/lib/context/providerStyledMangled.native.js +4 -0
  785. package/lib/context/providerStyledMangled.native.js.map +1 -0
  786. package/lib/context/providerTheme.d.ts +3 -5
  787. package/lib/context/providerTheme.js +5 -4
  788. package/lib/context/providerTheme.js.map +1 -1
  789. package/lib/hash.json +1 -1
  790. package/lib/helpers/hashClassesHelpers.js +2 -3
  791. package/lib/helpers/hashClassesHelpers.js.map +1 -1
  792. package/lib/objects/Typography/TypographyColor.d.ts +1 -0
  793. package/lib/objects/Typography/TypographyColor.js +23 -18
  794. package/lib/objects/Typography/TypographyColor.js.map +1 -1
  795. package/lib/objects/atoms/Background.d.ts +17 -2
  796. package/lib/objects/atoms/Background.js +14 -1
  797. package/lib/objects/atoms/Background.js.map +1 -1
  798. package/lib/objects/atoms/Text.js +3 -1
  799. package/lib/objects/atoms/Text.js.map +1 -1
  800. package/lib/objects/facets/Alert.d.ts +36 -0
  801. package/lib/objects/facets/Alert.js +70 -0
  802. package/lib/objects/facets/Alert.js.map +1 -0
  803. package/lib/objects/facets/Color.d.ts +5 -10
  804. package/lib/objects/facets/Color.js +53 -56
  805. package/lib/objects/facets/Color.js.map +1 -1
  806. package/lib/objects/facets/Justifiable.d.ts +1 -1
  807. package/lib/objects/facets/Status.d.ts +2 -29
  808. package/lib/objects/facets/Status.js +14 -14
  809. package/lib/objects/facets/Status.js.map +1 -1
  810. package/lib/objects/facets/Variant.js +1 -1
  811. package/lib/objects/facets/Variant.js.map +1 -1
  812. package/lib/objects/facets/index.d.ts +1 -1
  813. package/lib/objects/facets/index.js +1 -1
  814. package/lib/objects/facets/index.js.map +1 -1
  815. package/lib/version.d.ts +1 -1
  816. package/lib/version.js +1 -1
  817. package/package.json +1 -1
  818. package/lib/components/accordion/AccordionPropsDefaults.js +0 -45
  819. package/lib/components/accordion/body/AccordionBodyPropsDefaults.js +0 -52
  820. package/lib/components/accordion/header/AccordionHeaderPropsDefaults.js +0 -60
  821. package/lib/components/accordion/item/AccordionItemPropsDefaults.js +0 -68
  822. package/lib/components/accordion/item/OnClickCallbackDefaults.js +0 -1
  823. package/lib/components/alert/AlertPropsDefaults.js +0 -155
  824. package/lib/components/alert/ToasterStatusPropsDefaults.js +0 -227
  825. package/lib/components/alert/context/ToastConfigDefaults.js +0 -24
  826. package/lib/components/alert/context/ToastPropsDefaults.js +0 -129
  827. package/lib/components/autocomplete/AutoComplete.d.ts +0 -4
  828. package/lib/components/autocomplete/AutoComplete.js.map +0 -1
  829. package/lib/components/autocomplete/AutoComplete.native.d.ts +0 -25
  830. package/lib/components/autocomplete/AutoComplete.native.js.map +0 -1
  831. package/lib/components/autocomplete/AutoCompleteProps.d.ts +0 -49
  832. package/lib/components/autocomplete/AutoCompleteProps.js.map +0 -1
  833. package/lib/components/autocomplete/AutoCompletePropsNativeDefaults.js +0 -752
  834. package/lib/components/autocomplete/AutoCompletePropsWebDefaults.js +0 -752
  835. package/lib/components/autocomplete/Autocomplete.helpers.js.map +0 -1
  836. package/lib/components/autocomplete/ItemDefaults.js +0 -10
  837. package/lib/components/autocomplete/ItemSelectedEventDefaults.js +0 -10
  838. package/lib/components/autocomplete/index.js.map +0 -1
  839. package/lib/components/autocomplete/item/AutoCompleteIem.native.js.map +0 -1
  840. package/lib/components/autocomplete/item/AutoCompleteItem.js.map +0 -1
  841. package/lib/components/autocomplete/item/AutoCompleteItemProps.js.map +0 -1
  842. package/lib/components/autocomplete/item/AutoCompleteItemPropsDefaults.js +0 -56
  843. package/lib/components/autocomplete/item/index.js.map +0 -1
  844. package/lib/components/autocomplete/menu/AutoCompleteMenu.js.map +0 -1
  845. package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js.map +0 -1
  846. package/lib/components/autocomplete/menu/AutoCompleteMenuProps.js.map +0 -1
  847. package/lib/components/autocomplete/menu/AutoCompleteMenuPropsDefaults.js +0 -60
  848. package/lib/components/autocomplete/menu/index.js.map +0 -1
  849. package/lib/components/autocomplete/utils/debounce.js.map +0 -1
  850. package/lib/components/autocomplete/utils/index.js.map +0 -1
  851. package/lib/components/badge/BadgePropsDefaults.js +0 -83
  852. package/lib/components/box/BoxPropsDefaults.js +0 -216
  853. package/lib/components/box/content/BoxContentPropsDefaults.js +0 -102
  854. package/lib/components/box/footer/BoxFooterPropsDefaults.js +0 -87
  855. package/lib/components/box/header/BoxHeaderPropsDefaults.js +0 -118
  856. package/lib/components/box/item/BoxItemPropsDefaults.js +0 -35
  857. package/lib/components/box/table-container/BoxTableContainerPropsDefaults.js +0 -45
  858. package/lib/components/breadcrumb/BreadcrumbPropsDefaults.js +0 -38
  859. package/lib/components/breadcrumb/BreadcrumbWebPropsDefaults.js +0 -45
  860. package/lib/components/breadcrumb/item/BreadcrumbItemPropsDefaults.js +0 -53
  861. package/lib/components/breadcrumb/item/BreadcrumbItemPropsWebDefaults.js +0 -253
  862. package/lib/components/button/ButtonPropsDefaults.js +0 -380
  863. package/lib/components/button/list/ButtonListPropsDefaults.js +0 -19
  864. package/lib/components/button/list/ButtonListWebPropsDefaults.js +0 -50
  865. package/lib/components/card/CardPropsDefaults.js +0 -220
  866. package/lib/components/card/content/CardContentPropsDefaults.js +0 -153
  867. package/lib/components/card/image/CardImagePropsDefaults.js +0 -52
  868. package/lib/components/checkbox/CheckboxChangeEventDefaults.js +0 -21
  869. package/lib/components/checkbox/CheckboxClickEventDefaults.js +0 -21
  870. package/lib/components/checkbox/CheckboxPropsDefaults.js +0 -200
  871. package/lib/components/chips/ChipsPropsDefaults.js +0 -75
  872. package/lib/components/chips/list/ChipsListPropsDefaults.js +0 -25
  873. package/lib/components/columns/ColumnsPropsDefaults.js +0 -124
  874. package/lib/components/columns/item/ColumnsItemPropsDefaults.js +0 -323
  875. package/lib/components/container/ContainerPropsDefaults.js +0 -185
  876. package/lib/components/countdown/CountdownPropsDefaults.js +0 -57
  877. package/lib/components/divider/DividerPropsDefaults.js +0 -210
  878. package/lib/components/fab/FabPropsDefaults.js +0 -171
  879. package/lib/components/hero/HeroPropsDefaults.js +0 -144
  880. package/lib/components/icon/IconPropsDefaults.js +0 -307
  881. package/lib/components/icon/circle/CircleIconPropsDefaults.js +0 -168
  882. package/lib/components/icon/status/StatusIconPropsDefaults.js +0 -126
  883. package/lib/components/icon/text/TextIconPropsDefaults.js +0 -160
  884. package/lib/components/image/ImagePropsDefaults.js +0 -75
  885. package/lib/components/input/ILengthVerifyDefaults.js +0 -16
  886. package/lib/components/input/IValidationRulesDefaults.js +0 -41
  887. package/lib/components/input/InputChangeEventNativeDefaults.js +0 -17
  888. package/lib/components/input/InputChangeEventWebDefaults.js +0 -21
  889. package/lib/components/input/InputClickEventDefaults.js +0 -19
  890. package/lib/components/input/InputKeyboardEventDefaults.js +0 -27
  891. package/lib/components/input/InputNativeEventsDefaults.js +0 -37
  892. package/lib/components/input/InputPropsDefaults.js +0 -654
  893. package/lib/components/input/InputWebEventsDefaults.js +0 -51
  894. package/lib/components/link/LinkPropsDefaults.js +0 -367
  895. package/lib/components/list/ListPropsDefaults.js +0 -53
  896. package/lib/components/list/item/ListItemPropsDefaults.js +0 -119
  897. package/lib/components/list/item/description/ListItemDescriptionPropsDefaults.js +0 -23
  898. package/lib/components/modal/CloseButtonPropsDefaults.js +0 -9
  899. package/lib/components/modal/ModalContentButtonPropsDefaults.js +0 -16
  900. package/lib/components/modal/ModalPropsDefaults.js +0 -325
  901. package/lib/components/modal/footer/ModalFooterPropsDefaults.js +0 -23
  902. package/lib/components/modal/title/ModalTitlePropsDefaults.js +0 -92
  903. package/lib/components/otp/OtpPropsDefaults.js +0 -97
  904. package/lib/components/pagination/PaginationPropsDefaults.js +0 -63
  905. package/lib/components/popover/PopoverPropsDefaults.js +0 -60
  906. package/lib/components/popover/PopoverWebPropsDefaults.js +0 -89
  907. package/lib/components/price/PricePropsDefaults.js +0 -159
  908. package/lib/components/product-tour/ProductTourPropsDefaults.js +0 -85
  909. package/lib/components/product-tour/ProductTourWebPropsDefaults.js +0 -92
  910. package/lib/components/progress/ProgressPropsDefaults.js +0 -95
  911. package/lib/components/progress/item/ProgressItemPropsDefaults.js +0 -84
  912. package/lib/components/progress/radial/ProgressRadialPropsDefaults.js +0 -165
  913. package/lib/components/progress/radial/item/ProgressRadialItemPropsDefaults.js +0 -54
  914. package/lib/components/radio/RadioPropsDefaults.js +0 -216
  915. package/lib/components/radio/list/RadioListPropsDefaults.js +0 -19
  916. package/lib/components/radio/list/RadioListWebPropsDefaults.js +0 -50
  917. package/lib/components/range/RangePropsDefaults.js +0 -123
  918. package/lib/components/rows/RowsPropsDefaults.js +0 -31
  919. package/lib/components/rows/item/RowsItemPropsDefaults.js +0 -31
  920. package/lib/components/scroll-view/ScrollViewPropsDefaults.js +0 -127
  921. package/lib/components/section/SectionPropsDefaults.js +0 -118
  922. package/lib/components/segment-control/SegmentControlPropsDefaults.js +0 -61
  923. package/lib/components/segment-control/item/SegmentControlItemPropsDefaults.js +0 -55
  924. package/lib/components/select/ISelectOptionDefaults.js +0 -23
  925. package/lib/components/select/SelectChangeEventDefaults.js +0 -37
  926. package/lib/components/select/SelectPropsDefaults.js +0 -187
  927. package/lib/components/select/option/SelectOptionPropsDefaults.js +0 -134
  928. package/lib/components/selector/SelectorEndDefaults.js +0 -10
  929. package/lib/components/selector/SelectorPropsDefaults.js +0 -128
  930. package/lib/components/selector/item/SelectorItemPropsDefaults.js +0 -84
  931. package/lib/components/spacer/SpacerPropsDefaults.js +0 -27
  932. package/lib/components/stepper/StepperPropsDefaults.js +0 -31
  933. package/lib/components/stepper/step/StepperStepPropsDefaults.js +0 -136
  934. package/lib/components/sticker/StickerPropsDefaults.js +0 -71
  935. package/lib/components/styleComponent/default/index.d.ts +0 -1
  936. package/lib/components/styleComponent/default/index.js +0 -2
  937. package/lib/components/styleComponent/default/index.js.map +0 -1
  938. package/lib/components/styleComponent/default/styleComponent.d.ts +0 -6
  939. package/lib/components/styleComponent/default/styleComponent.js +0 -7
  940. package/lib/components/styleComponent/default/styleComponent.js.map +0 -1
  941. package/lib/components/styleComponent/default/styleComponent.native.d.ts +0 -5
  942. package/lib/components/styleComponent/default/styleComponent.native.js +0 -6
  943. package/lib/components/styleComponent/default/styleComponent.native.js.map +0 -1
  944. package/lib/components/styleComponent/index.d.ts +0 -2
  945. package/lib/components/styleComponent/index.js +0 -3
  946. package/lib/components/styleComponent/index.js.map +0 -1
  947. package/lib/components/styleComponent/mangled/index.d.ts +0 -1
  948. package/lib/components/styleComponent/mangled/index.js +0 -2
  949. package/lib/components/styleComponent/mangled/index.js.map +0 -1
  950. package/lib/components/styleComponent/mangled/styleComponentMangled.d.ts +0 -6
  951. package/lib/components/styleComponent/mangled/styleComponentMangled.js +0 -7
  952. package/lib/components/styleComponent/mangled/styleComponentMangled.js.map +0 -1
  953. package/lib/components/styleComponent/mangled/styleComponentMangled.native.d.ts +0 -5
  954. package/lib/components/styleComponent/mangled/styleComponentMangled.native.js +0 -6
  955. package/lib/components/styleComponent/mangled/styleComponentMangled.native.js.map +0 -1
  956. package/lib/components/switch/SwitchChangeEventDefaults.js +0 -13
  957. package/lib/components/switch/SwitchPropsDefaults.js +0 -105
  958. package/lib/components/table/TablePropsDefaults.js +0 -63
  959. package/lib/components/table/body/TableBodyPropsDefaults.js +0 -107
  960. package/lib/components/table/head/TableHeadPropsDefaults.js +0 -107
  961. package/lib/components/table/td/TableTdPropsDefaults.js +0 -44
  962. package/lib/components/table/th/TableThPropsDefaults.js +0 -44
  963. package/lib/components/table/tr/TableTrPropsWebDefaults.js +0 -102
  964. package/lib/components/tabs/TabsPropsDefaults.js +0 -144
  965. package/lib/components/tabs/item/TabsItemPropsDefaults.js +0 -336
  966. package/lib/components/tag/TagClickEventDefaults.js +0 -1
  967. package/lib/components/tag/TagPropsDefaults.js +0 -104
  968. package/lib/components/tag/list/TagListPropsDefaults.js +0 -47
  969. package/lib/components/text/TextPropsDefaults.js +0 -192
  970. package/lib/components/textarea/TextareaChangeEventDefaults.js +0 -10
  971. package/lib/components/timeline/TimelinePropsDefaults.js +0 -39
  972. package/lib/components/timeline/content/TimelineContentPropsDefaults.js +0 -51
  973. package/lib/components/timeline/content/TimelineContentWebPropsDefaults.js +0 -58
  974. package/lib/components/timeline/item/TimelineItemPropsDefaults.js +0 -48
  975. package/lib/components/timeline/item/TimelineItemWebPropsDefaults.js +0 -55
  976. package/lib/components/timeline/marker/TimelineMarkerPropsDefaults.js +0 -113
  977. package/lib/components/timeline/marker/TimelineMarkerWebPropsDefaults.js +0 -127
  978. package/lib/components/title/TitlePropsDefaults.js +0 -165
  979. package/lib/components/view/ViewPropsDefaults.js +0 -223
  980. /package/lib/components/{autocomplete → input/autocomplete}/AutoCompleteProps.js +0 -0
  981. /package/lib/components/{autocomplete → input/autocomplete}/Autocomplete.helpers.d.ts +0 -0
  982. /package/lib/components/{autocomplete → input/autocomplete}/Autocomplete.helpers.js +0 -0
  983. /package/lib/components/{autocomplete → input/autocomplete}/index.d.ts +0 -0
  984. /package/lib/components/{autocomplete → input/autocomplete}/index.js +0 -0
  985. /package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteIem.native.d.ts +0 -0
  986. /package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteItem.d.ts +0 -0
  987. /package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteItemProps.js +0 -0
  988. /package/lib/components/{autocomplete → input/autocomplete}/item/index.d.ts +0 -0
  989. /package/lib/components/{autocomplete → input/autocomplete}/item/index.js +0 -0
  990. /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenu.d.ts +0 -0
  991. /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenu.native.d.ts +0 -0
  992. /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenuProps.d.ts +0 -0
  993. /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenuProps.js +0 -0
  994. /package/lib/components/{autocomplete → input/autocomplete}/menu/index.d.ts +0 -0
  995. /package/lib/components/{autocomplete → input/autocomplete}/menu/index.js +0 -0
  996. /package/lib/components/{autocomplete → input/autocomplete}/utils/debounce.d.ts +0 -0
  997. /package/lib/components/{autocomplete → input/autocomplete}/utils/debounce.js +0 -0
  998. /package/lib/components/{autocomplete → input/autocomplete}/utils/index.d.ts +0 -0
  999. /package/lib/components/{autocomplete → input/autocomplete}/utils/index.js +0 -0
@@ -5,13 +5,11 @@ import { hashClass } from "../../helpers";
5
5
  import { useTrilogyContext } from "../../context";
6
6
  /**
7
7
  * Stepper Component
8
+ * @param className Additionnal CSS Classes
8
9
  * @param centered Center the stepper
9
10
  * @param children {ReactNode}
10
- * - -------------------------- WEB PROPERTIES -------------------------------
11
- * @param className Additionnal CSS Classes
12
11
  */
13
- const Stepper = React.forwardRef((props, ref) => {
14
- const { className, centered, children, ...others } = props;
12
+ const Stepper = ({ className, centered, children, ...others }) => {
15
13
  const { styled } = useTrilogyContext();
16
14
  const classes = hashClass(styled, clsx("stepper-wrapper", className));
17
15
  const centerClasses = hashClass(styled, clsx("section", has("text-centered"), className));
@@ -28,8 +26,7 @@ const Stepper = React.forwardRef((props, ref) => {
28
26
  if (Array.isArray(children)) {
29
27
  let haveCurrentStep = false;
30
28
  children.map((child) => {
31
- var _a;
32
- if ((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.current) {
29
+ if (child.props.current) {
33
30
  haveCurrentStep = true;
34
31
  setCurrentStep(child.props.step);
35
32
  }
@@ -43,7 +40,7 @@ const Stepper = React.forwardRef((props, ref) => {
43
40
  }
44
41
  }, [children]);
45
42
  if (centered) {
46
- return (React.createElement("section", { ref: ref, className: centerClasses },
43
+ return (React.createElement("section", { className: centerClasses },
47
44
  React.createElement("div", { className: classes, ...others },
48
45
  children,
49
46
  React.createElement("div", { className: 'step-count' },
@@ -51,12 +48,12 @@ const Stepper = React.forwardRef((props, ref) => {
51
48
  "/",
52
49
  nbChild))));
53
50
  }
54
- return (React.createElement("div", { ref: ref, className: classes, ...others },
51
+ return (React.createElement("div", { className: classes, ...others },
55
52
  children,
56
53
  React.createElement("div", { className: 'step-count' },
57
54
  currentStep,
58
55
  "/",
59
56
  nbChild)));
60
- });
57
+ };
61
58
  export default Stepper;
62
59
  //# sourceMappingURL=Stepper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Stepper.js","sourceRoot":"","sources":["../../../components/stepper/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,IAAI,MAAM,MAAM,CAAA;AAEvB,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAE7C;;;;;;GAMG;AACH,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAmB,EAAE,GAAoC,EAAE,EAAE;IAC7F,MA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OAAO,CAClB,CACF,CACE,CACX,CAAA;KACF;IAED,OAAO,CACL,6BAAK,SAAS,EAAE,OAAO,KAAM,MAAM;QAChC,QAAQ;QACT,6BAAK,SAAS,EAAC,YAAY;YACxB,WAAW;;YAAG,OAAO,CAClB,CACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -2,6 +2,7 @@ import * as React from "react";
2
2
  import { StyleSheet, View } from "react-native";
3
3
  import { TypographyBold, TypographyColor } from "../../objects";
4
4
  import { Text, TextLevels } from "../../components/text";
5
+ import { TitleLevels } from "../../components/title";
5
6
  import { Icon, IconSize } from "../../components/icon";
6
7
  import { ComponentName } from "../../components/enumsComponentsName";
7
8
  /**
@@ -80,7 +81,7 @@ const Stepper = ({ children, centered, ...others }) => {
80
81
  React.createElement(View, { style: styles.hasIcon },
81
82
  currentStep.iconName && (React.createElement(Text, { style: styles.icon },
82
83
  React.createElement(Icon, { name: currentStep.iconName, size: IconSize.SMALL }))),
83
- React.createElement(Text, { level: TextLevels.ONE, typo: TypographyBold.TEXT_WEIGHT_SEMIBOLD }, currentStep.name)),
84
+ React.createElement(Text, { level: TitleLevels.ONE, typo: TypographyBold.TEXT_WEIGHT_SEMIBOLD }, currentStep.name)),
84
85
  React.createElement(Text, { style: styles.counter, level: TextLevels.THREE, typo: [
85
86
  TypographyBold.TEXT_WEIGHT_SEMIBOLD,
86
87
  TypographyColor.TEXT_MAIN,
@@ -1 +1 @@
1
- {"version":3,"file":"Stepper.native.js","sourceRoot":"","sources":["../../../components/stepper/Stepper.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3D,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEpD,OAAO,E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ACtB,CACF,CACF,CACR,CAAA;AACH,CAAC,CAAA;AAED,OAAO,CAAC,WAAW,GAAG,aAAa,CAAC,OAAO,CAAA;AAE3C,eAAe,OAAO,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import Stepper from './Stepper';
2
2
  import StepperStep from './step';
3
+ import StepperExample from './Stepper.example';
3
4
  export * from './step/StepperStepEnum';
4
- export { Stepper, StepperStep };
5
+ export { Stepper, StepperStep, StepperExample };
@@ -1,5 +1,6 @@
1
1
  import Stepper from './Stepper';
2
2
  import StepperStep from './step';
3
+ import StepperExample from './Stepper.example';
3
4
  export * from './step/StepperStepEnum';
4
- export { Stepper, StepperStep };
5
+ export { Stepper, StepperStep, StepperExample };
5
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/stepper/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,WAAW,MAAM,QAAQ,CAAA;AAEhC,cAAc,wBAAwB,CAAA;AAEtC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/stepper/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,WAAW,MAAM,QAAQ,CAAA;AAChC,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAE9C,cAAc,wBAAwB,CAAA;AAEtC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,CAAA"}
@@ -1,18 +1,15 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import { StepperStepProps } from "./StepperStepProps";
3
3
  /**
4
4
  * Stepper Step Component
5
- * @param active {boolean} Active step
6
- * @param current {boolean} Current step
7
- * @param done {boolean} Step done
8
- * @param error {boolean} display error step
9
5
  * @param children {ReactNode} Stepper Step Children
10
- * - -------------------------- WEB PROPERTIES -------------------------------
11
6
  * @param className {string} Additionnal CSS Classes
12
- * @param iconName {IconName | IconNameValues} display icon
7
+ * @param active {boolean} Active step
13
8
  * @param markup {StepperStepMarkup} Markup for Step - P|SPAN|DIV|A
9
+ * @param current {boolean} Current step
10
+ * @param done {boolean} Step done
14
11
  * @param label {string} Step label
15
12
  * @param step {number|string} Step text circle
16
13
  */
17
- declare const StepperStep: React.ForwardRefExoticComponent<StepperStepProps & React.RefAttributes<any>>;
14
+ declare const StepperStep: ({ children, className, active, markup, current, done, label, iconName, error, ...others }: StepperStepProps) => JSX.Element;
18
15
  export default StepperStep;
@@ -8,20 +8,16 @@ import Icon from "../../../components/icon/Icon";
8
8
  import { IconSize } from "../../../components/icon";
9
9
  /**
10
10
  * Stepper Step Component
11
- * @param active {boolean} Active step
12
- * @param current {boolean} Current step
13
- * @param done {boolean} Step done
14
- * @param error {boolean} display error step
15
11
  * @param children {ReactNode} Stepper Step Children
16
- * - -------------------------- WEB PROPERTIES -------------------------------
17
12
  * @param className {string} Additionnal CSS Classes
18
- * @param iconName {IconName | IconNameValues} display icon
13
+ * @param active {boolean} Active step
19
14
  * @param markup {StepperStepMarkup} Markup for Step - P|SPAN|DIV|A
15
+ * @param current {boolean} Current step
16
+ * @param done {boolean} Step done
20
17
  * @param label {string} Step label
21
18
  * @param step {number|string} Step text circle
22
19
  */
23
- const StepperStep = React.forwardRef((props, ref) => {
24
- const { children, className, active, markup, current, done, label, iconName, error, ...others } = props;
20
+ const StepperStep = ({ children, className, active, markup, current, done, label, iconName, error, ...others }) => {
25
21
  const { styled } = useTrilogyContext();
26
22
  const classesStepLabel = hashClass(styled, clsx('step-label'));
27
23
  const classes = hashClass(styled, clsx('stepper-item', active && is('active'), current && is('current'), done && is('done'), error && is('error'), className));
@@ -34,10 +30,10 @@ const StepperStep = React.forwardRef((props, ref) => {
34
30
  return true;
35
31
  };
36
32
  const Tag = markup && isCorrectMarkup(markup) ? markup : StepperStepMarkup.DIV;
37
- return (React.createElement(Tag, { ref: ref, className: classes, "data-label": label, ...others },
33
+ return (React.createElement(Tag, { className: classes, "data-label": label, ...others },
38
34
  React.createElement("div", { className: classesStepLabel },
39
35
  label || children,
40
36
  !done && iconName && React.createElement(Icon, { name: iconName && iconName, className: 'step-icon', size: IconSize.MEDIUM }))));
41
- });
37
+ };
42
38
  export default StepperStep;
43
39
  //# sourceMappingURL=StepperStep.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StepperStep.js","sourceRoot":"","sources":["../../../../components/stepper/step/StepperStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,IAAI,MAAM,MAAM,CAAA;AAEvB,OAAO,EAAE,iBAAiB,EAA2B,MAAM,mBAAmB,CAAA;AAC9E,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,IAAI,MAAM,wBAAwB,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE5C;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAuB,EAAE,GAAyB,EAAE,EAAE;IAC1F,MAAM,EACJ,QAAQ,EACR,SAAS,EACT,MAAM,EACN,MAAM,EACN,OAAO,EACP,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,KAAK,EACL,GAAG,MAAM,EACV,GAAG,KAAK,CAAA;IAET,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAAA;IACtC,MAAM,gBAAgB,GAAG,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,CAAA;IAE9D,MAAM,OAAO,GAAG,SAAS,CACvB,MAAM,EACN,IAAI,CAAC,cAAc,EAAE,MAAM,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,OAAO,IAA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AAC,IAAI,EAAE,QAAQ,IAAI,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,GAAI,CAEtG,CACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -3,11 +3,12 @@ import { StepperStepProps } from "./StepperStepProps";
3
3
  import { ComponentName } from "../../../components/enumsComponentsName";
4
4
  /**
5
5
  * Stepper Step Component
6
+ * @param children {ReactNode} Stepper Step Children
6
7
  * @param active {boolean} Active step
7
8
  * @param current {boolean} Current step
8
9
  * @param done {boolean} Step done
9
- * @param error {boolean} display error step
10
- * @param children {ReactNode} Stepper Step Children
10
+ * @param label {string} Step label
11
+ * @param step {number|string} Step text circle
11
12
  */
12
13
  declare const StepperStep: {
13
14
  ({ active, current, done, error, ...others }: StepperStepProps): JSX.Element;
@@ -4,15 +4,16 @@ import { getColorStyle, TrilogyColor } from "../../../objects";
4
4
  import { ComponentName } from "../../../components/enumsComponentsName";
5
5
  /**
6
6
  * Stepper Step Component
7
+ * @param children {ReactNode} Stepper Step Children
7
8
  * @param active {boolean} Active step
8
9
  * @param current {boolean} Current step
9
10
  * @param done {boolean} Step done
10
- * @param error {boolean} display error step
11
- * @param children {ReactNode} Stepper Step Children
11
+ * @param label {string} Step label
12
+ * @param step {number|string} Step text circle
12
13
  */
13
14
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
14
15
  const StepperStep = ({ active, current, done, error, ...others }) => {
15
- const defaultColor = getColorStyle(TrilogyColor.NEUTRAL);
16
+ const defaultColor = getColorStyle(TrilogyColor.FONT, 1);
16
17
  const activeColor = getColorStyle(TrilogyColor.MAIN);
17
18
  const errorColor = getColorStyle(TrilogyColor.ERROR);
18
19
  const backgroundColorAnim = React.useRef(new Animated.Value(0)).current;
@@ -1 +1 @@
1
- {"version":3,"file":"StepperStep.native.js","sourceRoot":"","sources":["../../../../components/stepper/step/StepperStep.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KA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;YACrB,MAAM,EAAE,MAAM,CAAC,MAAM;SACtB,CAAC,CAAC,KAAK,EAAE,CAAA;IACZ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;IAElC,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAC/B,IAAI,EAAE;YACJ,IAAI,EAAE,CAAC;YACP,KAAK,EAAE,EAAE;YACT,QAAQ,EAAE,EAAE;YACZ,MAAM,EAAE,CAAC;YACT,WAAW,EAAE,CAAC;YACd,YAAY,EAAE,CAAC;YACf,eAAe,EAAE,eAAwC;YACzD,MAAM,EAAE,CAAC;SACV;KACF,CAAC,CAAA;IAEF,OAAO,oBAAC,QAAQ,CAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,KAAM,MAAM,GAAkB,CAAA;AACxE,CAAC,CAAA;AAED,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC,WAAW,CAAA;AAEnD,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"StepperStep.native.js","sourceRoot":"","sources":["../../../../components/stepper/step/StepperStep.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAc,MAAM,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEvE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE;;;;;;;;GAQG;AACH,6DAA6D;AAC7D,MAAM,WAAW,GAAG,CAAC,EACE,MAAM,EACN,OAAO,EACP,IAAI,EACJ,KAAK,EACL,GAAG,MAAM,EACQ,EAAe,EAAE;IAEvD,MAAM,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;IACxD,MAAM,WAAW,GAAG,aAAa,CAAC,YAAY,CAAC,IAAI,CA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AE,MAAM,CAAC,IAAI,KAAM,MAAM,GAAkB,CAAA;AACxE,CAAC,CAAA;AAED,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC,WAAW,CAAA;AAEnD,eAAe,WAAW,CAAA"}
@@ -3,14 +3,13 @@ import { StickerProps } from "./StickerProps";
3
3
  /**
4
4
  * Sticker component
5
5
  * @param children {ReactNode} Sticker child
6
- * @param variant {StatusState} Sticker variant : primary only
6
+ * @param variant {AlertState} Sticker variant : primary only
7
7
  * @param small {boolean} Small Sticker
8
8
  * @param hat {boolean} Hat Sticker ( for box )
9
- * @param outlined {boolean} Outlined sticker
10
9
  * - -------------------------- WEB PROPERTIES -------------------------------
11
10
  * @param markup {StickerMarkup} HTML element : p|span|div
12
11
  * @param className {string} Additionnal css classes
13
12
  * @param others
14
13
  */
15
- declare const Sticker: ({ className, children, variant, small, hat, markup, outlined, ...others }: StickerProps) => JSX.Element;
14
+ declare const Sticker: ({ className, children, variant, small, hat, markup, ...others }: StickerProps) => JSX.Element;
16
15
  export default Sticker;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const StickerExample: React.ReactNode;
3
+ export default StickerExample;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { Sticker } from './index';
3
+ import { Columns, ColumnsItem } from '../columns';
4
+ const StickerExample = React.createElement(Columns, { multiline: true },
5
+ React.createElement(ColumnsItem, { size: 12 },
6
+ React.createElement(Sticker, { variant: 'MAIN' }, "Code Promo")),
7
+ React.createElement(ColumnsItem, { size: 12 },
8
+ React.createElement(Sticker, { small: true, variant: 'MAIN' }, "Code Promo")));
9
+ export default StickerExample;
10
+ //# sourceMappingURL=Sticker.example.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sticker.example.js","sourceRoot":"","sources":["../../../components/sticker/Sticker.example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAEjD,MAAM,cAAc,GACpB,oBAAC,OAAO,IAAC,SAAS;IACd,oBAAC,WAAW,IAAC,IAAI,EAAE,EAAE;QACjB,oBAAC,OAAO,IAAC,OAAO,EAAC,MAAM,iBAEb,CACA;IACd,oBAAC,WAAW,IAAC,IAAI,EAAE,EAAE;QACjB,oBAAC,OAAO,IACJ,KAAK,QACL,OAAO,EAAC,MAAM,iBAGR,CACA,CACR,CAAA;AAEV,eAAe,cAAc,CAAA"}
@@ -8,18 +8,17 @@ import { useTrilogyContext } from "../../context";
8
8
  /**
9
9
  * Sticker component
10
10
  * @param children {ReactNode} Sticker child
11
- * @param variant {StatusState} Sticker variant : primary only
11
+ * @param variant {AlertState} Sticker variant : primary only
12
12
  * @param small {boolean} Small Sticker
13
13
  * @param hat {boolean} Hat Sticker ( for box )
14
- * @param outlined {boolean} Outlined sticker
15
14
  * - -------------------------- WEB PROPERTIES -------------------------------
16
15
  * @param markup {StickerMarkup} HTML element : p|span|div
17
16
  * @param className {string} Additionnal css classes
18
17
  * @param others
19
18
  */
20
- const Sticker = ({ className, children, variant, small, hat, markup, outlined, ...others }) => {
19
+ const Sticker = ({ className, children, variant, small, hat, markup, ...others }) => {
21
20
  const { styled } = useTrilogyContext();
22
- const classes = hashClass(styled, clsx("sticker", variant && is(getVariantClassName(variant)), small && is("small"), hat && is("hat"), className, outlined && is('outlined')));
21
+ const classes = hashClass(styled, clsx("sticker", variant && is(getVariantClassName(variant)), small && is("small"), hat && is("hat"), className));
23
22
  const isCorrectMarkup = (stringMarkup) => {
24
23
  if (stringMarkup in StickerMarkup ||
25
24
  Object.values(StickerMarkup).includes(stringMarkup))
@@ -1 +1 @@
1
- {"version":3,"file":"Sticker.js","sourceRoot":"","sources":["../../../components/sticker/Sticker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,IAAI,MAAM,MAAM,CAAA;AA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AC,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -2,12 +2,12 @@
2
2
  import { StickerProps } from "./StickerProps";
3
3
  import { ComponentName } from "../../components/enumsComponentsName";
4
4
  /**
5
- * Sticker component
5
+ * Sticker Native component
6
6
  * @param children {ReactNode} Sticker child
7
- * @param variant {StatusState} Sticker variant : primary only
7
+ * @param variant {VariantState} Sticker variant : main , accent , info
8
8
  * @param small {boolean} Small Sticker
9
- * @param hat {boolean} Hat Sticker ( for box )
10
9
  * @param outlined {boolean} Outlined sticker
10
+ * @param hat {boolean} Hat Sticker ( for box )
11
11
  * @param others
12
12
  */
13
13
  declare const Sticker: {
@@ -4,12 +4,12 @@ import { getColorStyle, getVariantStyle, TrilogyColor } from "../../objects";
4
4
  import { ComponentName } from "../../components/enumsComponentsName";
5
5
  import { Text } from "../../components/text";
6
6
  /**
7
- * Sticker component
7
+ * Sticker Native component
8
8
  * @param children {ReactNode} Sticker child
9
- * @param variant {StatusState} Sticker variant : primary only
9
+ * @param variant {VariantState} Sticker variant : main , accent , info
10
10
  * @param small {boolean} Small Sticker
11
- * @param hat {boolean} Hat Sticker ( for box )
12
11
  * @param outlined {boolean} Outlined sticker
12
+ * @param hat {boolean} Hat Sticker ( for box )
13
13
  * @param others
14
14
  */
15
15
  const Sticker = ({ children, variant, small, hat, outlined, ...others }) => {
@@ -1,3 +1,4 @@
1
1
  import Sticker from './Sticker';
2
+ import StickerExample from './Sticker.example';
2
3
  export * from './StickerEnum';
3
- export { Sticker };
4
+ export { Sticker, StickerExample };
@@ -1,4 +1,5 @@
1
1
  import Sticker from './Sticker';
2
+ import StickerExample from './Sticker.example';
2
3
  export * from './StickerEnum';
3
- export { Sticker };
4
+ export { Sticker, StickerExample };
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/sticker/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;AAE/B,cAAc,eAAe,CAAA;AAE7B,OAAO,EAAE,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/sticker/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAE9C,cAAc,eAAe,CAAA;AAE7B,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -3,18 +3,18 @@ import { SwitchProps } from "./SwitchProps";
3
3
  /**
4
4
  * Switch Component
5
5
  * @param id {string} Is auto generate by default
6
+ * @param label {string} Switch label
7
+ * @param value {string} Switch value
6
8
  * @param checked {boolean} Checked switch
7
9
  * @param onChange {Function} onChange event
8
- * @param status {StatusState} Status Variant (INFO|SUCCESS|WARNING|ERROR)
10
+ * @param alert {AlertState} Alert Variant (INFO|SUCCESS|WARNING|ERROR)
9
11
  * @param disabled {boolean} Switch disabled
10
12
  * @param readonly {boolean} Switch readonly
11
13
  * @param name {string} Switch name
14
+ * @param reversed {boolean} change switch position
12
15
  * -------------------------- WEB PROPERTIES -------------------------------
13
16
  * @param className {string} Additionnal CSS Classes
14
17
  * @param onClick {Function} onClick event
15
- * @param label {string} Switch label
16
- * @param value {string} Switch value
17
- * @param reversed {boolean} change switch position
18
18
  */
19
- declare const Switch: ({ className, id, label, value, checked, onChange, onClick, status, disabled, readonly, name, reversed, ...others }: SwitchProps) => JSX.Element;
19
+ declare const Switch: ({ className, id, label, value, checked, onChange, onClick, alert, disabled, readonly, name, reversed, ...others }: SwitchProps) => JSX.Element;
20
20
  export default Switch;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SwitchExample: React.ReactNode;
3
+ export default SwitchExample;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { Switch } from './index';
3
+ import { RowItem, Rows } from '../rows';
4
+ const SwitchExample = React.createElement(Rows, null,
5
+ React.createElement(RowItem, null,
6
+ React.createElement(Switch, { label: 'Switch one', name: 'switch one' })),
7
+ React.createElement(RowItem, null,
8
+ React.createElement(Switch, { checked: true, label: 'Switch checked', name: 'switch checked' })),
9
+ React.createElement(RowItem, null,
10
+ React.createElement(Switch, { disabled: true, label: 'Switch disabled', name: 'switch disabled' })));
11
+ export default SwitchExample;
12
+ //# sourceMappingURL=Switch.example.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.example.js","sourceRoot":"","sources":["../../../components/switch/Switch.example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAEvC,MAAM,aAAa,GAEnB,oBAAC,IAAI;IACD,oBAAC,OAAO;QACJ,oBAAC,MAAM,IACH,KAAK,EAAC,YAAY,EAClB,IAAI,EAAC,YAAY,GACnB,CACI;IACV,oBAAC,OAAO;QACJ,oBAAC,MAAM,IACH,OAAO,QACP,KAAK,EAAC,gBAAgB,EACtB,IAAI,EAAC,gBAAgB,GACvB,CACI;IACV,oBAAC,OAAO;QACJ,oBAAC,MAAM,IACH,QAAQ,QACR,KAAK,EAAC,iBAAiB,EACvB,IAAI,EAAC,iBAAiB,GACxB,CACI,CACP,CAAA;AAEP,eAAe,aAAa,CAAA"}
@@ -2,26 +2,26 @@ import React, { useEffect, useState } from "react";
2
2
  import shortid from "shortid";
3
3
  import clsx from "clsx";
4
4
  import { is } from "../../services/classify";
5
- import { getStatusClassName } from "../../objects";
5
+ import { getAlertClassName } from "../../objects";
6
6
  import { hashClass } from "../../helpers";
7
7
  import { useTrilogyContext } from "../../context";
8
8
  /**
9
9
  * Switch Component
10
10
  * @param id {string} Is auto generate by default
11
+ * @param label {string} Switch label
12
+ * @param value {string} Switch value
11
13
  * @param checked {boolean} Checked switch
12
14
  * @param onChange {Function} onChange event
13
- * @param status {StatusState} Status Variant (INFO|SUCCESS|WARNING|ERROR)
15
+ * @param alert {AlertState} Alert Variant (INFO|SUCCESS|WARNING|ERROR)
14
16
  * @param disabled {boolean} Switch disabled
15
17
  * @param readonly {boolean} Switch readonly
16
18
  * @param name {string} Switch name
19
+ * @param reversed {boolean} change switch position
17
20
  * -------------------------- WEB PROPERTIES -------------------------------
18
21
  * @param className {string} Additionnal CSS Classes
19
22
  * @param onClick {Function} onClick event
20
- * @param label {string} Switch label
21
- * @param value {string} Switch value
22
- * @param reversed {boolean} change switch position
23
23
  */
24
- const Switch = ({ className, id = shortid.generate(), label, value, checked, onChange, onClick, status, disabled, readonly, name, reversed, ...others }) => {
24
+ const Switch = ({ className, id = shortid.generate(), label, value, checked, onChange, onClick, alert, disabled, readonly, name, reversed, ...others }) => {
25
25
  const [_checked, setChecked] = useState(checked || false);
26
26
  const { styled } = useTrilogyContext();
27
27
  React.useEffect(() => {
@@ -55,7 +55,7 @@ const Switch = ({ className, id = shortid.generate(), label, value, checked, onC
55
55
  switchName: e.target.name,
56
56
  });
57
57
  }
58
- }, name: name, value: value, checked: readonly ? checked : _checked, readOnly: readonly, id: `switch-${id}`, type: 'checkbox', disabled: disabled, className: hashClass(styled, clsx(status && is(getStatusClassName(status)))), ...others }),
58
+ }, name: name, value: value, checked: readonly ? checked : _checked, readOnly: readonly, id: `switch-${id}`, type: 'checkbox', disabled: disabled, className: hashClass(styled, clsx(alert && is(getAlertClassName(alert)))), ...others }),
59
59
  React.createElement("label", { htmlFor: `switch-${id}` }, label)));
60
60
  };
61
61
  export default Switch;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../../components/switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAA;AAEvB,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AACxC,OAAO,E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AAI;qBAC1B,CAAC,CAAA;iBACH;YACH,CAAC;YACD,8DAA8D;YAC9D,OAAO,EAAE,CAAC,CAAM,EAAE,EAAE;gBAClB,IAAI,CAAC,QAAQ,EAAE;oBACb,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;iBACtB;gBACD,IAAI,OAAO,EAAE;oBACX,OAAO,CAAC;wBACN,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO;wBAC7B,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI;qBAC1B,CAAC,CAAA;iBACH;YACH,CAAC,EACD,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EACtC,QAAQ,EAAE,QAAQ,EAClB,EAAE,EAAE,UAAU,EAAE,EAAE,EAClB,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,CAClB,MAAM,EACN,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,CAC5C,KACG,MAAM,GACV;QACF,+BAAO,OAAO,EAAE,UAAU,EAAE,EAAE,IAAG,KAAK,CAAS,CAC3C,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -2,17 +2,17 @@
2
2
  import { SwitchProps } from "./SwitchProps";
3
3
  import { ComponentName } from "../../components/enumsComponentsName";
4
4
  /**
5
- * Switch Component
5
+ * Switch Native Component
6
6
  * @param id {string} Is auto generate by default
7
7
  * @param checked {boolean} Checked switch
8
8
  * @param onChange {Function} onChange event
9
- * @param status {StatusState} Status Variant (INFO|SUCCESS|WARNING|ERROR)
9
+ * @param alert {AlertState} Alert Variant (INFO|SUCCESS|WARNING|ERROR)
10
10
  * @param disabled {boolean} Switch disabled
11
11
  * @param readonly {boolean} Switch readonly
12
12
  * @param name {string} Switch name
13
13
  */
14
14
  declare const Switch: {
15
- ({ id, checked, onChange, status, disabled, readonly, name, }: SwitchProps): JSX.Element;
15
+ ({ id, checked, onChange, alert, disabled, readonly, name, }: SwitchProps): JSX.Element;
16
16
  displayName: ComponentName;
17
17
  };
18
18
  export default Switch;
@@ -1,28 +1,29 @@
1
1
  import React, { useEffect, useState } from "react";
2
2
  import { Platform, StyleSheet, Switch as SwitchNative } from "react-native";
3
3
  import shortid from "shortid";
4
- import { getStatusStyle } from "../../objects";
4
+ import { getAlertStyle } from "../../objects";
5
5
  import { getColorStyle, TrilogyColor } from "../../objects/facets/Color";
6
6
  import { ComponentName } from "../../components/enumsComponentsName";
7
7
  /**
8
- * Switch Component
8
+ * Switch Native Component
9
9
  * @param id {string} Is auto generate by default
10
10
  * @param checked {boolean} Checked switch
11
11
  * @param onChange {Function} onChange event
12
- * @param status {StatusState} Status Variant (INFO|SUCCESS|WARNING|ERROR)
12
+ * @param alert {AlertState} Alert Variant (INFO|SUCCESS|WARNING|ERROR)
13
13
  * @param disabled {boolean} Switch disabled
14
14
  * @param readonly {boolean} Switch readonly
15
15
  * @param name {string} Switch name
16
16
  */
17
- const Switch = ({ id = shortid.generate(), checked, onChange, status, disabled, readonly, name, }) => {
17
+ const Switch = ({ id = shortid.generate(), checked, onChange, alert, disabled, readonly, name, }) => {
18
18
  const [_checked, setChecked] = useState(checked || false);
19
19
  useEffect(() => {
20
20
  if (!readonly) {
21
21
  setChecked(checked || false);
22
22
  }
23
23
  }, [checked, readonly]);
24
- const backgroundColorOff = getColorStyle(TrilogyColor.MAIN_FADE);
25
- const backgroundColorDisabled = getColorStyle(TrilogyColor.DISABLED_FADE);
24
+ const defaultColor = getColorStyle(TrilogyColor.MAIN);
25
+ const backgroundColorOff = getColorStyle(TrilogyColor.FONT, 1);
26
+ const backgroundColorDisabled = getColorStyle(TrilogyColor.DISABLED, 1);
26
27
  const thumbColor = getColorStyle(TrilogyColor.BACKGROUND);
27
28
  const styles = StyleSheet.create({
28
29
  switchIos: {
@@ -33,7 +34,7 @@ const Switch = ({ id = shortid.generate(), checked, onChange, status, disabled,
33
34
  false: disabled ? backgroundColorDisabled : backgroundColorOff,
34
35
  true: disabled
35
36
  ? backgroundColorDisabled
36
- : getStatusStyle(status).color,
37
+ : (alert && getAlertStyle(alert)) || defaultColor,
37
38
  }, thumbColor: thumbColor, ios_backgroundColor: disabled ? backgroundColorDisabled : backgroundColorOff, onValueChange: (state) => {
38
39
  if (onChange) {
39
40
  onChange({ switchState: state, switchName: name || "" });
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.native.js","sourceRoot":"","sources":["../../../components/switch/Switch.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3E,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE;;;;;;;;;GASG;AAEH,MAAM,MAAM,GAAG,CAAC,EACd,EAAE,GAAG,OAAO,CAAC,QAAQ,EAAE,EACvB,OAAO,EACP,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,IAAI,GACQ,EAAe,EAAE;IAC7B,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAU,OAAO,IAAI,KAAK,CAAC,CAAA;IAElE,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,QAAQ,EAAE;YACb,UAAU,CAAC,OAAO,IAAI,KAAK,CAAC,CAAA;SAC7B;IACH,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAA;IAEvB,MAAM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ert';
2
2
  import { Invertable } from '../../objects/facets/Invertable';
3
3
  export interface SwitchChangeEvent {
4
4
  switchState: boolean;
5
5
  switchName: string;
6
6
  }
7
7
  type SwitchEventHandler = (event: SwitchChangeEvent) => void;
8
- export interface SwitchProps extends StatusProps, Invertable {
8
+ export interface SwitchProps extends AlertProps, Invertable {
9
9
  checked?: boolean;
10
10
  onChange?: SwitchEventHandler;
11
11
  onClick?: SwitchEventHandler;
@@ -1,2 +1,3 @@
1
1
  import Switch from './Switch';
2
- export { Switch };
2
+ import SwitchExample from './Switch.example';
3
+ export { Switch, SwitchExample };
@@ -1,3 +1,4 @@
1
1
  import Switch from './Switch';
2
- export { Switch };
2
+ import SwitchExample from './Switch.example';
3
+ export { Switch, SwitchExample };
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAA;AAE7B,OAAO,EAAE,MAAM,EAAE,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAA;AAC7B,OAAO,aAAa,MAAM,kBAAkB,CAAA;AAE5C,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const TableExample: React.ReactNode;
3
+ export default TableExample;