@trilogy-ds/react 0.0.1-beta-108 → 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 (846) 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 -0
  8. package/lib/components/accordion/body/AccordionBody.js +1 -0
  9. package/lib/components/accordion/body/AccordionBody.js.map +1 -1
  10. package/lib/components/accordion/body/AccordionBodyProps.d.ts +1 -0
  11. package/lib/components/accordion/header/AccordionHeader.js +1 -1
  12. package/lib/components/accordion/header/AccordionHeader.js.map +1 -1
  13. package/lib/components/accordion/index.d.ts +2 -1
  14. package/lib/components/accordion/index.js +2 -1
  15. package/lib/components/accordion/index.js.map +1 -1
  16. package/lib/components/accordion/item/AccordionItem.js +1 -2
  17. package/lib/components/accordion/item/AccordionItem.js.map +1 -1
  18. package/lib/components/accordion/item/AccordionItem.native.js +4 -4
  19. package/lib/components/accordion/item/AccordionItem.native.js.map +1 -1
  20. package/lib/components/alert/Alert.d.ts +5 -4
  21. package/lib/components/alert/Alert.example.d.ts +3 -0
  22. package/lib/components/alert/Alert.example.js +14 -0
  23. package/lib/components/alert/Alert.example.js.map +1 -0
  24. package/lib/components/alert/Alert.js +12 -11
  25. package/lib/components/alert/Alert.js.map +1 -1
  26. package/lib/components/alert/Alert.native.d.ts +6 -6
  27. package/lib/components/alert/Alert.native.js +15 -13
  28. package/lib/components/alert/Alert.native.js.map +1 -1
  29. package/lib/components/alert/AlertProps.d.ts +4 -3
  30. package/lib/components/alert/context/ToasterContextProps.d.ts +3 -3
  31. package/lib/components/alert/index.d.ts +2 -1
  32. package/lib/components/alert/index.js +2 -1
  33. package/lib/components/alert/index.js.map +1 -1
  34. package/lib/components/autolayout/AutoLayout.native.js +1 -1
  35. package/lib/components/autolayout/AutoLayout.native.js.map +1 -1
  36. package/lib/components/autolayout/DefaultSpacingMatrix.js +74 -31
  37. package/lib/components/autolayout/DefaultSpacingMatrix.js.map +1 -1
  38. package/lib/components/badge/Badge.d.ts +3 -2
  39. package/lib/components/badge/Badge.example.d.ts +3 -0
  40. package/lib/components/badge/Badge.example.js +5 -0
  41. package/lib/components/badge/Badge.example.js.map +1 -0
  42. package/lib/components/badge/Badge.js +12 -6
  43. package/lib/components/badge/Badge.js.map +1 -1
  44. package/lib/components/badge/Badge.native.d.ts +3 -2
  45. package/lib/components/badge/Badge.native.js +10 -6
  46. package/lib/components/badge/Badge.native.js.map +1 -1
  47. package/lib/components/badge/BadgeEnum.d.ts +5 -0
  48. package/lib/components/badge/BadgeEnum.js +5 -0
  49. package/lib/components/badge/BadgeEnum.js.map +1 -1
  50. package/lib/components/badge/BadgeProps.d.ts +3 -1
  51. package/lib/components/badge/index.d.ts +2 -1
  52. package/lib/components/badge/index.js +2 -1
  53. package/lib/components/badge/index.js.map +1 -1
  54. package/lib/components/box/Box.d.ts +3 -3
  55. package/lib/components/box/Box.example.d.ts +3 -0
  56. package/lib/components/box/Box.example.js +31 -0
  57. package/lib/components/box/Box.example.js.map +1 -0
  58. package/lib/components/box/Box.js +4 -4
  59. package/lib/components/box/Box.js.map +1 -1
  60. package/lib/components/box/Box.native.d.ts +3 -3
  61. package/lib/components/box/Box.native.js +14 -13
  62. package/lib/components/box/Box.native.js.map +1 -1
  63. package/lib/components/box/BoxProps.d.ts +1 -1
  64. package/lib/components/box/content/BoxContent.d.ts +2 -2
  65. package/lib/components/box/content/BoxContent.js +3 -3
  66. package/lib/components/box/content/BoxContent.js.map +1 -1
  67. package/lib/components/box/content/BoxContent.native.d.ts +2 -2
  68. package/lib/components/box/content/BoxContent.native.js +6 -4
  69. package/lib/components/box/content/BoxContent.native.js.map +1 -1
  70. package/lib/components/box/index.d.ts +2 -1
  71. package/lib/components/box/index.js +2 -1
  72. package/lib/components/box/index.js.map +1 -1
  73. package/lib/components/breadcrumb/Breadcrumb.d.ts +2 -2
  74. package/lib/components/breadcrumb/Breadcrumb.example.d.ts +3 -0
  75. package/lib/components/breadcrumb/Breadcrumb.example.js +9 -0
  76. package/lib/components/breadcrumb/Breadcrumb.example.js.map +1 -0
  77. package/lib/components/breadcrumb/Breadcrumb.js +3 -4
  78. package/lib/components/breadcrumb/Breadcrumb.js.map +1 -1
  79. package/lib/components/breadcrumb/index.d.ts +2 -1
  80. package/lib/components/breadcrumb/index.js +2 -1
  81. package/lib/components/breadcrumb/index.js.map +1 -1
  82. package/lib/components/button/Button.example.d.ts +3 -0
  83. package/lib/components/button/Button.example.js +10 -0
  84. package/lib/components/button/Button.example.js.map +1 -0
  85. package/lib/components/button/Button.native.js +10 -10
  86. package/lib/components/button/Button.native.js.map +1 -1
  87. package/lib/components/button/index.d.ts +2 -1
  88. package/lib/components/button/index.js +2 -1
  89. package/lib/components/button/index.js.map +1 -1
  90. package/lib/components/button/list/ButtonList.native.js +4 -4
  91. package/lib/components/button/list/ButtonList.native.js.map +1 -1
  92. package/lib/components/card/Card.d.ts +3 -6
  93. package/lib/components/card/Card.example.d.ts +3 -0
  94. package/lib/components/card/Card.example.js +25 -0
  95. package/lib/components/card/Card.example.js.map +1 -0
  96. package/lib/components/card/Card.js +7 -9
  97. package/lib/components/card/Card.js.map +1 -1
  98. package/lib/components/card/Card.native.d.ts +2 -2
  99. package/lib/components/card/Card.native.js +7 -7
  100. package/lib/components/card/Card.native.js.map +1 -1
  101. package/lib/components/card/content/CardContent.native.d.ts +1 -0
  102. package/lib/components/card/content/CardContent.native.js +1 -0
  103. package/lib/components/card/content/CardContent.native.js.map +1 -1
  104. package/lib/components/card/content/CardContentProps.d.ts +1 -0
  105. package/lib/components/card/image/CardImage.d.ts +1 -0
  106. package/lib/components/card/image/CardImage.js +1 -0
  107. package/lib/components/card/image/CardImage.js.map +1 -1
  108. package/lib/components/card/image/CardImage.native.d.ts +1 -1
  109. package/lib/components/card/image/CardImage.native.js +8 -11
  110. package/lib/components/card/image/CardImage.native.js.map +1 -1
  111. package/lib/components/card/image/CardImageProps.d.ts +2 -0
  112. package/lib/components/card/index.d.ts +2 -1
  113. package/lib/components/card/index.js +2 -1
  114. package/lib/components/card/index.js.map +1 -1
  115. package/lib/components/checkbox/Checkbox.example.d.ts +3 -0
  116. package/lib/components/checkbox/Checkbox.example.js +18 -0
  117. package/lib/components/checkbox/Checkbox.example.js.map +1 -0
  118. package/lib/components/checkbox/Checkbox.native.js +8 -8
  119. package/lib/components/checkbox/Checkbox.native.js.map +1 -1
  120. package/lib/components/checkbox/index.d.ts +2 -1
  121. package/lib/components/checkbox/index.js +2 -1
  122. package/lib/components/checkbox/index.js.map +1 -1
  123. package/lib/components/chips/Chips.d.ts +2 -1
  124. package/lib/components/chips/Chips.example.d.ts +3 -0
  125. package/lib/components/chips/Chips.example.js +13 -0
  126. package/lib/components/chips/Chips.example.js.map +1 -0
  127. package/lib/components/chips/Chips.js +6 -4
  128. package/lib/components/chips/Chips.js.map +1 -1
  129. package/lib/components/chips/Chips.native.d.ts +2 -1
  130. package/lib/components/chips/Chips.native.js +8 -6
  131. package/lib/components/chips/Chips.native.js.map +1 -1
  132. package/lib/components/chips/ChipsProps.d.ts +1 -0
  133. package/lib/components/chips/index.d.ts +2 -1
  134. package/lib/components/chips/index.js +2 -1
  135. package/lib/components/chips/index.js.map +1 -1
  136. package/lib/components/chips/list/ChipsList.d.ts +2 -2
  137. package/lib/components/chips/list/ChipsList.js +3 -4
  138. package/lib/components/chips/list/ChipsList.js.map +1 -1
  139. package/lib/components/columns/Columns.d.ts +3 -2
  140. package/lib/components/columns/Columns.example.d.ts +3 -0
  141. package/lib/components/columns/Columns.example.js +16 -0
  142. package/lib/components/columns/Columns.example.js.map +1 -0
  143. package/lib/components/columns/Columns.js +5 -5
  144. package/lib/components/columns/Columns.js.map +1 -1
  145. package/lib/components/columns/ColumnsProps.d.ts +3 -1
  146. package/lib/components/columns/index.d.ts +2 -1
  147. package/lib/components/columns/index.js +2 -1
  148. package/lib/components/columns/index.js.map +1 -1
  149. package/lib/components/columns/item/ColumnsItem.d.ts +2 -2
  150. package/lib/components/columns/item/ColumnsItem.js +3 -4
  151. package/lib/components/columns/item/ColumnsItem.js.map +1 -1
  152. package/lib/components/columns/item/ColumnsItem.native.js +0 -3
  153. package/lib/components/columns/item/ColumnsItem.native.js.map +1 -1
  154. package/lib/components/container/Container.d.ts +2 -2
  155. package/lib/components/container/Container.example.d.ts +3 -0
  156. package/lib/components/container/Container.example.js +9 -0
  157. package/lib/components/container/Container.example.js.map +1 -0
  158. package/lib/components/container/Container.js +3 -3
  159. package/lib/components/container/Container.js.map +1 -1
  160. package/lib/components/container/Container.native.d.ts +2 -2
  161. package/lib/components/container/Container.native.js +8 -8
  162. package/lib/components/container/Container.native.js.map +1 -1
  163. package/lib/components/container/index.d.ts +2 -1
  164. package/lib/components/container/index.js +2 -1
  165. package/lib/components/container/index.js.map +1 -1
  166. package/lib/components/countdown/Countdown.d.ts +1 -2
  167. package/lib/components/countdown/Countdown.example.d.ts +3 -0
  168. package/lib/components/countdown/Countdown.example.js +10 -0
  169. package/lib/components/countdown/Countdown.example.js.map +1 -0
  170. package/lib/components/countdown/Countdown.js +2 -3
  171. package/lib/components/countdown/Countdown.js.map +1 -1
  172. package/lib/components/countdown/Countdown.native.d.ts +1 -2
  173. package/lib/components/countdown/Countdown.native.js +3 -4
  174. package/lib/components/countdown/Countdown.native.js.map +1 -1
  175. package/lib/components/countdown/CountdownProps.d.ts +0 -1
  176. package/lib/components/countdown/index.d.ts +2 -1
  177. package/lib/components/countdown/index.js +2 -1
  178. package/lib/components/countdown/index.js.map +1 -1
  179. package/lib/components/divider/Divider.example.d.ts +3 -0
  180. package/lib/components/divider/Divider.example.js +5 -0
  181. package/lib/components/divider/Divider.example.js.map +1 -0
  182. package/lib/components/divider/Divider.native.js +2 -2
  183. package/lib/components/divider/Divider.native.js.map +1 -1
  184. package/lib/components/divider/index.d.ts +2 -1
  185. package/lib/components/divider/index.js +2 -1
  186. package/lib/components/divider/index.js.map +1 -1
  187. package/lib/components/enumsComponentsName.d.ts +1 -2
  188. package/lib/components/enumsComponentsName.js +1 -2
  189. package/lib/components/enumsComponentsName.js.map +1 -1
  190. package/lib/components/fab/Fab.example.d.ts +3 -0
  191. package/lib/components/fab/Fab.example.js +10 -0
  192. package/lib/components/fab/Fab.example.js.map +1 -0
  193. package/lib/components/fab/FabProps.d.ts +2 -2
  194. package/lib/components/fab/index.d.ts +2 -1
  195. package/lib/components/fab/index.js +2 -1
  196. package/lib/components/fab/index.js.map +1 -1
  197. package/lib/components/hero/Hero.d.ts +1 -2
  198. package/lib/components/hero/Hero.example.d.ts +3 -0
  199. package/lib/components/hero/Hero.example.js +21 -0
  200. package/lib/components/hero/Hero.example.js.map +1 -0
  201. package/lib/components/hero/Hero.js +2 -3
  202. package/lib/components/hero/Hero.js.map +1 -1
  203. package/lib/components/hero/Hero.native.d.ts +2 -2
  204. package/lib/components/hero/Hero.native.js +8 -8
  205. package/lib/components/hero/Hero.native.js.map +1 -1
  206. package/lib/components/hero/index.d.ts +2 -1
  207. package/lib/components/hero/index.js +2 -1
  208. package/lib/components/hero/index.js.map +1 -1
  209. package/lib/components/icon/Icon.example.d.ts +3 -0
  210. package/lib/components/icon/Icon.example.js +12 -0
  211. package/lib/components/icon/Icon.example.js.map +1 -0
  212. package/lib/components/icon/Icon.js +1 -1
  213. package/lib/components/icon/Icon.js.map +1 -1
  214. package/lib/components/icon/Icon.native.js +1 -1
  215. package/lib/components/icon/Icon.native.js.map +1 -1
  216. package/lib/components/icon/index.d.ts +2 -1
  217. package/lib/components/icon/index.js +2 -1
  218. package/lib/components/icon/index.js.map +1 -1
  219. package/lib/components/icon/text/TextIcon.d.ts +2 -4
  220. package/lib/components/icon/text/TextIcon.js +17 -15
  221. package/lib/components/icon/text/TextIcon.js.map +1 -1
  222. package/lib/components/image/Image.example.d.ts +3 -0
  223. package/lib/components/image/Image.example.js +5 -0
  224. package/lib/components/image/Image.example.js.map +1 -0
  225. package/lib/components/image/index.d.ts +2 -1
  226. package/lib/components/image/index.js +2 -1
  227. package/lib/components/image/index.js.map +1 -1
  228. package/lib/components/index.d.ts +0 -1
  229. package/lib/components/index.js +0 -1
  230. package/lib/components/index.js.map +1 -1
  231. package/lib/components/input/Input.d.ts +72 -2
  232. package/lib/components/input/Input.example.d.ts +3 -0
  233. package/lib/components/input/Input.example.js +5 -0
  234. package/lib/components/input/Input.example.js.map +1 -0
  235. package/lib/components/input/Input.js +34 -19
  236. package/lib/components/input/Input.js.map +1 -1
  237. package/lib/components/input/Input.native.d.ts +4 -4
  238. package/lib/components/input/Input.native.js +42 -49
  239. package/lib/components/input/Input.native.js.map +1 -1
  240. package/lib/components/input/InputProps.d.ts +12 -21
  241. package/lib/components/input/autocomplete/AutoComplete.d.ts +24 -0
  242. package/lib/components/{autocomplete → input/autocomplete}/AutoComplete.js +9 -10
  243. package/lib/components/input/autocomplete/AutoComplete.js.map +1 -0
  244. package/lib/components/{autocomplete → input/autocomplete}/AutoComplete.native.d.ts +2 -2
  245. package/lib/components/{autocomplete → input/autocomplete}/AutoComplete.native.js +1 -1
  246. package/lib/components/input/autocomplete/AutoComplete.native.js.map +1 -0
  247. package/lib/components/input/autocomplete/AutoCompleteProps.d.ts +29 -0
  248. package/lib/components/input/autocomplete/AutoCompleteProps.js.map +1 -0
  249. package/lib/components/input/autocomplete/Autocomplete.helpers.js.map +1 -0
  250. package/lib/components/input/autocomplete/index.js.map +1 -0
  251. package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteIem.native.js +2 -2
  252. package/lib/components/input/autocomplete/item/AutoCompleteIem.native.js.map +1 -0
  253. package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteItem.js +3 -3
  254. package/lib/components/input/autocomplete/item/AutoCompleteItem.js.map +1 -0
  255. package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteItemProps.d.ts +1 -1
  256. package/lib/components/input/autocomplete/item/AutoCompleteItemProps.js.map +1 -0
  257. package/lib/components/input/autocomplete/item/index.js.map +1 -0
  258. package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenu.js +3 -3
  259. package/lib/components/input/autocomplete/menu/AutoCompleteMenu.js.map +1 -0
  260. package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenu.native.js +3 -3
  261. package/lib/components/input/autocomplete/menu/AutoCompleteMenu.native.js.map +1 -0
  262. package/lib/components/input/autocomplete/menu/AutoCompleteMenuProps.js.map +1 -0
  263. package/lib/components/input/autocomplete/menu/index.js.map +1 -0
  264. package/lib/components/input/autocomplete/utils/debounce.js.map +1 -0
  265. package/lib/components/input/autocomplete/utils/index.js.map +1 -0
  266. package/lib/components/input/gauge/InputGauge.native.js +1 -1
  267. package/lib/components/input/gauge/InputGauge.native.js.map +1 -1
  268. package/lib/components/input/gauge/hook/useGauge.js +1 -1
  269. package/lib/components/input/gauge/hook/useGauge.js.map +1 -1
  270. package/lib/components/input/index.d.ts +2 -1
  271. package/lib/components/input/index.js +2 -1
  272. package/lib/components/input/index.js.map +1 -1
  273. package/lib/components/link/Link.example.d.ts +3 -0
  274. package/lib/components/link/Link.example.js +15 -0
  275. package/lib/components/link/Link.example.js.map +1 -0
  276. package/lib/components/link/Link.js +2 -2
  277. package/lib/components/link/Link.js.map +1 -1
  278. package/lib/components/link/Link.native.d.ts +1 -0
  279. package/lib/components/link/Link.native.js +10 -10
  280. package/lib/components/link/Link.native.js.map +1 -1
  281. package/lib/components/link/LinkProps.d.ts +1 -0
  282. package/lib/components/link/index.d.ts +2 -1
  283. package/lib/components/link/index.js +2 -1
  284. package/lib/components/link/index.js.map +1 -1
  285. package/lib/components/list/List.d.ts +2 -2
  286. package/lib/components/list/List.example.d.ts +3 -0
  287. package/lib/components/list/List.example.js +17 -0
  288. package/lib/components/list/List.example.js.map +1 -0
  289. package/lib/components/list/List.js +3 -4
  290. package/lib/components/list/List.js.map +1 -1
  291. package/lib/components/list/index.d.ts +2 -1
  292. package/lib/components/list/index.js +2 -1
  293. package/lib/components/list/index.js.map +1 -1
  294. package/lib/components/list/item/ListItem.native.js +1 -1
  295. package/lib/components/list/item/ListItem.native.js.map +1 -1
  296. package/lib/components/modal/Modal.d.ts +6 -1
  297. package/lib/components/modal/Modal.example.d.ts +3 -0
  298. package/lib/components/modal/Modal.example.js +5 -0
  299. package/lib/components/modal/Modal.example.js.map +1 -0
  300. package/lib/components/modal/Modal.js +19 -14
  301. package/lib/components/modal/Modal.js.map +1 -1
  302. package/lib/components/modal/ModalProps.d.ts +5 -1
  303. package/lib/components/modal/index.d.ts +2 -1
  304. package/lib/components/modal/index.js +2 -1
  305. package/lib/components/modal/index.js.map +1 -1
  306. package/lib/components/modal/title/ModalTitle.js +1 -1
  307. package/lib/components/modal/title/ModalTitle.js.map +1 -1
  308. package/lib/components/otp/Otp.d.ts +12 -0
  309. package/lib/components/otp/Otp.example.d.ts +3 -0
  310. package/lib/components/otp/Otp.example.js +13 -0
  311. package/lib/components/otp/Otp.example.js.map +1 -0
  312. package/lib/components/otp/Otp.js +98 -77
  313. package/lib/components/otp/Otp.js.map +1 -1
  314. package/lib/components/otp/Otp.native.js +1 -1
  315. package/lib/components/otp/Otp.native.js.map +1 -1
  316. package/lib/components/otp/index.d.ts +2 -1
  317. package/lib/components/otp/index.js +2 -1
  318. package/lib/components/otp/index.js.map +1 -1
  319. package/lib/components/pagination/Pagination.example.d.ts +3 -0
  320. package/lib/components/pagination/Pagination.example.js +5 -0
  321. package/lib/components/pagination/Pagination.example.js.map +1 -0
  322. package/lib/components/pagination/index.d.ts +2 -1
  323. package/lib/components/pagination/index.js +2 -1
  324. package/lib/components/pagination/index.js.map +1 -1
  325. package/lib/components/popover/Popover.example.d.ts +3 -0
  326. package/lib/components/popover/Popover.example.js +7 -0
  327. package/lib/components/popover/Popover.example.js.map +1 -0
  328. package/lib/components/popover/index.d.ts +2 -1
  329. package/lib/components/popover/index.js +2 -1
  330. package/lib/components/popover/index.js.map +1 -1
  331. package/lib/components/price/Price.d.ts +3 -3
  332. package/lib/components/price/Price.example.d.ts +3 -0
  333. package/lib/components/price/Price.example.js +12 -0
  334. package/lib/components/price/Price.example.js.map +1 -0
  335. package/lib/components/price/Price.js +9 -28
  336. package/lib/components/price/Price.js.map +1 -1
  337. package/lib/components/price/Price.native.d.ts +3 -2
  338. package/lib/components/price/Price.native.js +88 -128
  339. package/lib/components/price/Price.native.js.map +1 -1
  340. package/lib/components/price/PriceEnum.d.ts +8 -8
  341. package/lib/components/price/PriceEnum.js +7 -7
  342. package/lib/components/price/PriceEnum.js.map +1 -1
  343. package/lib/components/price/PriceProps.d.ts +7 -7
  344. package/lib/components/price/index.d.ts +2 -1
  345. package/lib/components/price/index.js +2 -1
  346. package/lib/components/price/index.js.map +1 -1
  347. package/lib/components/progress/Progress.d.ts +3 -3
  348. package/lib/components/progress/Progress.example.d.ts +3 -0
  349. package/lib/components/progress/Progress.example.js +7 -0
  350. package/lib/components/progress/Progress.example.js.map +1 -0
  351. package/lib/components/progress/Progress.js +6 -7
  352. package/lib/components/progress/Progress.js.map +1 -1
  353. package/lib/components/progress/Progress.native.d.ts +2 -2
  354. package/lib/components/progress/Progress.native.js +6 -6
  355. package/lib/components/progress/Progress.native.js.map +1 -1
  356. package/lib/components/progress/ProgressProps.d.ts +2 -2
  357. package/lib/components/progress/index.d.ts +2 -1
  358. package/lib/components/progress/index.js +2 -1
  359. package/lib/components/progress/index.js.map +1 -1
  360. package/lib/components/progress/item/ProgressItem.d.ts +3 -3
  361. package/lib/components/progress/item/ProgressItem.js +6 -7
  362. package/lib/components/progress/item/ProgressItem.js.map +1 -1
  363. package/lib/components/progress/item/ProgressItem.native.d.ts +2 -2
  364. package/lib/components/progress/item/ProgressItem.native.js +2 -2
  365. package/lib/components/progress/item/ProgressItem.native.js.map +1 -1
  366. package/lib/components/progress/item/ProgressItemProps.d.ts +2 -2
  367. package/lib/components/progress/radial/ProgressRadial.js +1 -2
  368. package/lib/components/progress/radial/ProgressRadial.js.map +1 -1
  369. package/lib/components/progress/radial/ProgressRadial.native.d.ts +3 -3
  370. package/lib/components/progress/radial/ProgressRadial.native.js +12 -10
  371. package/lib/components/progress/radial/ProgressRadial.native.js.map +1 -1
  372. package/lib/components/progress/radial/ProgressRadialProps.d.ts +3 -3
  373. package/lib/components/radio/Radio.example.d.ts +3 -0
  374. package/lib/components/radio/Radio.example.js +18 -0
  375. package/lib/components/radio/Radio.example.js.map +1 -0
  376. package/lib/components/radio/Radio.native.js +11 -12
  377. package/lib/components/radio/Radio.native.js.map +1 -1
  378. package/lib/components/radio/index.d.ts +2 -1
  379. package/lib/components/radio/index.js +2 -1
  380. package/lib/components/radio/index.js.map +1 -1
  381. package/lib/components/radio/list/RadioList.native.js +4 -4
  382. package/lib/components/radio/list/RadioList.native.js.map +1 -1
  383. package/lib/components/range/Range.example.d.ts +3 -0
  384. package/lib/components/range/Range.example.js +5 -0
  385. package/lib/components/range/Range.example.js.map +1 -0
  386. package/lib/components/range/Range.js +1 -1
  387. package/lib/components/range/Range.js.map +1 -1
  388. package/lib/components/range/index.d.ts +2 -1
  389. package/lib/components/range/index.js +2 -1
  390. package/lib/components/range/index.js.map +1 -1
  391. package/lib/components/rows/Rows.d.ts +2 -3
  392. package/lib/components/rows/Rows.example.d.ts +3 -0
  393. package/lib/components/rows/Rows.example.js +16 -0
  394. package/lib/components/rows/Rows.example.js.map +1 -0
  395. package/lib/components/rows/Rows.js +3 -6
  396. package/lib/components/rows/Rows.js.map +1 -1
  397. package/lib/components/rows/Rows.native.d.ts +2 -5
  398. package/lib/components/rows/Rows.native.js +2 -4
  399. package/lib/components/rows/Rows.native.js.map +1 -1
  400. package/lib/components/rows/RowsProps.d.ts +0 -1
  401. package/lib/components/rows/index.d.ts +2 -1
  402. package/lib/components/rows/index.js +2 -1
  403. package/lib/components/rows/index.js.map +1 -1
  404. package/lib/components/rows/item/RowItem.d.ts +2 -2
  405. package/lib/components/rows/item/RowItem.js +3 -4
  406. package/lib/components/rows/item/RowItem.js.map +1 -1
  407. package/lib/components/rows/item/RowItem.native.js +1 -3
  408. package/lib/components/rows/item/RowItem.native.js.map +1 -1
  409. package/lib/components/section/Section.d.ts +3 -3
  410. package/lib/components/section/Section.example.d.ts +3 -0
  411. package/lib/components/section/Section.example.js +16 -0
  412. package/lib/components/section/Section.example.js.map +1 -0
  413. package/lib/components/section/Section.js +6 -7
  414. package/lib/components/section/Section.js.map +1 -1
  415. package/lib/components/section/Section.native.d.ts +2 -2
  416. package/lib/components/section/Section.native.js +4 -4
  417. package/lib/components/section/Section.native.js.map +1 -1
  418. package/lib/components/section/SectionProps.d.ts +2 -2
  419. package/lib/components/section/index.d.ts +2 -1
  420. package/lib/components/section/index.js +2 -1
  421. package/lib/components/section/index.js.map +1 -1
  422. package/lib/components/segment-control/SegmentControl.example.d.ts +3 -0
  423. package/lib/components/segment-control/SegmentControl.example.js +9 -0
  424. package/lib/components/segment-control/SegmentControl.example.js.map +1 -0
  425. package/lib/components/segment-control/SegmentControl.native.js +1 -1
  426. package/lib/components/segment-control/SegmentControl.native.js.map +1 -1
  427. package/lib/components/segment-control/SegmentControlProps.d.ts +4 -1
  428. package/lib/components/segment-control/index.d.ts +2 -1
  429. package/lib/components/segment-control/index.js +2 -1
  430. package/lib/components/segment-control/index.js.map +1 -1
  431. package/lib/components/segment-control/item/SegmentControlItem.native.js +2 -2
  432. package/lib/components/segment-control/item/SegmentControlItem.native.js.map +1 -1
  433. package/lib/components/select/Select.example.d.ts +3 -0
  434. package/lib/components/select/Select.example.js +8 -0
  435. package/lib/components/select/Select.example.js.map +1 -0
  436. package/lib/components/select/index.d.ts +2 -1
  437. package/lib/components/select/index.js +2 -1
  438. package/lib/components/select/index.js.map +1 -1
  439. package/lib/components/select/option/SelectOption.d.ts +2 -2
  440. package/lib/components/select/option/SelectOption.js +3 -4
  441. package/lib/components/select/option/SelectOption.js.map +1 -1
  442. package/lib/components/select/option/SelectOption.native.js +7 -19
  443. package/lib/components/select/option/SelectOption.native.js.map +1 -1
  444. package/lib/components/select/web/SelectDynamic.js +2 -3
  445. package/lib/components/select/web/SelectDynamic.js.map +1 -1
  446. package/lib/components/selector/item/SelectorItem.native.js +1 -1
  447. package/lib/components/selector/item/SelectorItem.native.js.map +1 -1
  448. package/lib/components/spacer/Spacer.d.ts +1 -1
  449. package/lib/components/spacer/Spacer.js +1 -1
  450. package/lib/components/spacer/Spacer.native.d.ts +2 -1
  451. package/lib/components/spacer/Spacer.native.js +2 -1
  452. package/lib/components/spacer/Spacer.native.js.map +1 -1
  453. package/lib/components/spacer/SpacerEnum.d.ts +6 -11
  454. package/lib/components/spacer/SpacerEnum.js +7 -11
  455. package/lib/components/spacer/SpacerEnum.js.map +1 -1
  456. package/lib/components/stepper/Stepper.d.ts +2 -2
  457. package/lib/components/stepper/Stepper.example.d.ts +3 -0
  458. package/lib/components/stepper/Stepper.example.js +10 -0
  459. package/lib/components/stepper/Stepper.example.js.map +1 -0
  460. package/lib/components/stepper/Stepper.js +5 -7
  461. package/lib/components/stepper/Stepper.js.map +1 -1
  462. package/lib/components/stepper/Stepper.native.js +2 -1
  463. package/lib/components/stepper/Stepper.native.js.map +1 -1
  464. package/lib/components/stepper/index.d.ts +2 -1
  465. package/lib/components/stepper/index.js +2 -1
  466. package/lib/components/stepper/index.js.map +1 -1
  467. package/lib/components/stepper/step/StepperStep.d.ts +2 -2
  468. package/lib/components/stepper/step/StepperStep.js +3 -4
  469. package/lib/components/stepper/step/StepperStep.js.map +1 -1
  470. package/lib/components/stepper/step/StepperStep.native.js +1 -1
  471. package/lib/components/stepper/step/StepperStep.native.js.map +1 -1
  472. package/lib/components/sticker/Sticker.d.ts +2 -2
  473. package/lib/components/sticker/Sticker.example.d.ts +3 -0
  474. package/lib/components/sticker/Sticker.example.js +10 -0
  475. package/lib/components/sticker/Sticker.example.js.map +1 -0
  476. package/lib/components/sticker/Sticker.js +3 -3
  477. package/lib/components/sticker/Sticker.js.map +1 -1
  478. package/lib/components/sticker/index.d.ts +2 -1
  479. package/lib/components/sticker/index.js +2 -1
  480. package/lib/components/sticker/index.js.map +1 -1
  481. package/lib/components/switch/Switch.d.ts +2 -2
  482. package/lib/components/switch/Switch.example.d.ts +3 -0
  483. package/lib/components/switch/Switch.example.js +12 -0
  484. package/lib/components/switch/Switch.example.js.map +1 -0
  485. package/lib/components/switch/Switch.js +4 -4
  486. package/lib/components/switch/Switch.js.map +1 -1
  487. package/lib/components/switch/Switch.native.d.ts +2 -2
  488. package/lib/components/switch/Switch.native.js +7 -6
  489. package/lib/components/switch/Switch.native.js.map +1 -1
  490. package/lib/components/switch/SwitchProps.d.ts +2 -2
  491. package/lib/components/switch/index.d.ts +2 -1
  492. package/lib/components/switch/index.js +2 -1
  493. package/lib/components/switch/index.js.map +1 -1
  494. package/lib/components/table/Table.example.d.ts +3 -0
  495. package/lib/components/table/Table.example.js +19 -0
  496. package/lib/components/table/Table.example.js.map +1 -0
  497. package/lib/components/table/Table.native.js +1 -1
  498. package/lib/components/table/Table.native.js.map +1 -1
  499. package/lib/components/table/index.d.ts +2 -1
  500. package/lib/components/table/index.js +2 -1
  501. package/lib/components/table/index.js.map +1 -1
  502. package/lib/components/table/td/TableTd.native.js +2 -2
  503. package/lib/components/table/td/TableTd.native.js.map +1 -1
  504. package/lib/components/table/th/TableTh.native.js +2 -2
  505. package/lib/components/table/th/TableTh.native.js.map +1 -1
  506. package/lib/components/table/tr/TableTr.native.js +1 -1
  507. package/lib/components/table/tr/TableTr.native.js.map +1 -1
  508. package/lib/components/tabs/Tabs.d.ts +2 -2
  509. package/lib/components/tabs/Tabs.example.d.ts +3 -0
  510. package/lib/components/tabs/Tabs.example.js +16 -0
  511. package/lib/components/tabs/Tabs.example.js.map +1 -0
  512. package/lib/components/tabs/Tabs.js +3 -4
  513. package/lib/components/tabs/Tabs.js.map +1 -1
  514. package/lib/components/tabs/index.d.ts +2 -1
  515. package/lib/components/tabs/index.js +2 -1
  516. package/lib/components/tabs/index.js.map +1 -1
  517. package/lib/components/tabs/item/TabsItem.d.ts +2 -2
  518. package/lib/components/tabs/item/TabsItem.js +4 -5
  519. package/lib/components/tabs/item/TabsItem.js.map +1 -1
  520. package/lib/components/tabs/item/TabsItem.native.js +1 -1
  521. package/lib/components/tabs/item/TabsItem.native.js.map +1 -1
  522. package/lib/components/tag/Tag.example.d.ts +3 -0
  523. package/lib/components/tag/Tag.example.js +13 -0
  524. package/lib/components/tag/Tag.example.js.map +1 -0
  525. package/lib/components/tag/Tag.native.js +2 -3
  526. package/lib/components/tag/Tag.native.js.map +1 -1
  527. package/lib/components/tag/index.d.ts +2 -1
  528. package/lib/components/tag/index.js +2 -1
  529. package/lib/components/tag/index.js.map +1 -1
  530. package/lib/components/tag/list/TagList.d.ts +2 -2
  531. package/lib/components/tag/list/TagList.js +3 -4
  532. package/lib/components/tag/list/TagList.js.map +1 -1
  533. package/lib/components/text/Text.example.d.ts +3 -0
  534. package/lib/components/text/Text.example.js +5 -0
  535. package/lib/components/text/Text.example.js.map +1 -0
  536. package/lib/components/text/Text.native.js +8 -9
  537. package/lib/components/text/Text.native.js.map +1 -1
  538. package/lib/components/text/TextEnum.d.ts +5 -5
  539. package/lib/components/text/TextEnum.js +4 -4
  540. package/lib/components/text/TextEnum.js.map +1 -1
  541. package/lib/components/text/index.d.ts +2 -1
  542. package/lib/components/text/index.js +2 -1
  543. package/lib/components/text/index.js.map +1 -1
  544. package/lib/components/textarea/Textarea.d.ts +3 -3
  545. package/lib/components/textarea/Textarea.example.d.ts +3 -0
  546. package/lib/components/textarea/Textarea.example.js +12 -0
  547. package/lib/components/textarea/Textarea.example.js.map +1 -0
  548. package/lib/components/textarea/Textarea.js +6 -11
  549. package/lib/components/textarea/Textarea.js.map +1 -1
  550. package/lib/components/textarea/Textarea.native.d.ts +2 -2
  551. package/lib/components/textarea/Textarea.native.js +43 -51
  552. package/lib/components/textarea/Textarea.native.js.map +1 -1
  553. package/lib/components/textarea/TextareaProps.d.ts +0 -2
  554. package/lib/components/textarea/index.d.ts +2 -1
  555. package/lib/components/textarea/index.js +2 -1
  556. package/lib/components/textarea/index.js.map +1 -1
  557. package/lib/components/timeline/Timeline.d.ts +2 -2
  558. package/lib/components/timeline/Timeline.example.d.ts +3 -0
  559. package/lib/components/timeline/Timeline.example.js +34 -0
  560. package/lib/components/timeline/Timeline.example.js.map +1 -0
  561. package/lib/components/timeline/Timeline.js +4 -4
  562. package/lib/components/timeline/Timeline.js.map +1 -1
  563. package/lib/components/timeline/content/TimelineContent.js +1 -1
  564. package/lib/components/timeline/content/TimelineContent.js.map +1 -1
  565. package/lib/components/timeline/index.d.ts +2 -1
  566. package/lib/components/timeline/index.js +2 -1
  567. package/lib/components/timeline/index.js.map +1 -1
  568. package/lib/components/timeline/item/TimelineItem.d.ts +2 -2
  569. package/lib/components/timeline/item/TimelineItem.js +3 -4
  570. package/lib/components/timeline/item/TimelineItem.js.map +1 -1
  571. package/lib/components/timeline/marker/TimelineMarker.native.js +7 -7
  572. package/lib/components/timeline/marker/TimelineMarker.native.js.map +1 -1
  573. package/lib/components/title/Title.example.d.ts +3 -0
  574. package/lib/components/title/Title.example.js +10 -0
  575. package/lib/components/title/Title.example.js.map +1 -0
  576. package/lib/components/title/Title.js +2 -2
  577. package/lib/components/title/Title.js.map +1 -1
  578. package/lib/components/title/Title.native.js +9 -10
  579. package/lib/components/title/Title.native.js.map +1 -1
  580. package/lib/components/title/TitleEnum.d.ts +7 -7
  581. package/lib/components/title/TitleEnum.js +6 -6
  582. package/lib/components/title/TitleEnum.js.map +1 -1
  583. package/lib/components/title/index.d.ts +2 -1
  584. package/lib/components/title/index.js +2 -1
  585. package/lib/components/title/index.js.map +1 -1
  586. package/lib/components/toaster/Toaster.d.ts +11 -0
  587. package/lib/components/toaster/Toaster.js +93 -0
  588. package/lib/components/toaster/Toaster.js.map +1 -0
  589. package/lib/components/toaster/Toaster.native.d.ts +15 -0
  590. package/lib/components/toaster/Toaster.native.js +93 -0
  591. package/lib/components/toaster/Toaster.native.js.map +1 -0
  592. package/lib/components/toaster/ToasterEnum.d.ts +1 -0
  593. package/lib/components/toaster/ToasterEnum.js +16 -0
  594. package/lib/components/toaster/ToasterEnum.js.map +1 -0
  595. package/lib/components/toaster/ToasterProps.d.ts +27 -0
  596. package/lib/components/toaster/ToasterProps.js +6 -0
  597. package/lib/components/toaster/ToasterProps.js.map +1 -0
  598. package/lib/components/toaster/context/ToasterContext.d.ts +7 -0
  599. package/lib/components/toaster/context/ToasterContext.js +8 -0
  600. package/lib/components/toaster/context/ToasterContext.js.map +1 -0
  601. package/lib/components/toaster/context/ToasterContextProps.d.ts +27 -0
  602. package/lib/components/toaster/context/ToasterContextProps.js +2 -0
  603. package/lib/components/toaster/context/ToasterContextProps.js.map +1 -0
  604. package/lib/components/toaster/context/index.d.ts +2 -0
  605. package/lib/components/toaster/context/index.js +3 -0
  606. package/lib/components/toaster/context/index.js.map +1 -0
  607. package/lib/components/toaster/index.d.ts +3 -0
  608. package/lib/components/toaster/index.js +4 -0
  609. package/lib/components/toaster/index.js.map +1 -0
  610. package/lib/components/view/View.d.ts +2 -2
  611. package/lib/components/view/View.js +3 -3
  612. package/lib/components/view/View.js.map +1 -1
  613. package/lib/components/view/View.native.d.ts +2 -2
  614. package/lib/components/view/View.native.js +3 -3
  615. package/lib/components/view/View.native.js.map +1 -1
  616. package/lib/context/index.d.ts +1 -3
  617. package/lib/context/index.js +2 -2
  618. package/lib/context/index.js.map +1 -1
  619. package/lib/context/provider.native.d.ts +1 -4
  620. package/lib/context/provider.native.js +2 -2
  621. package/lib/context/provider.native.js.map +1 -1
  622. package/lib/context/providerStyled.d.ts +4 -6
  623. package/lib/context/providerStyled.js +20 -23
  624. package/lib/context/providerStyled.js.map +1 -1
  625. package/lib/context/providerStyled.native.d.ts +1 -4
  626. package/lib/context/providerStyled.native.js +2 -2
  627. package/lib/context/providerStyled.native.js.map +1 -1
  628. package/lib/context/providerStyledMangled.d.ts +10 -0
  629. package/lib/context/providerStyledMangled.js +14 -0
  630. package/lib/context/providerStyledMangled.js.map +1 -0
  631. package/lib/context/providerStyledMangled.native.d.ts +1 -0
  632. package/lib/context/providerStyledMangled.native.js +4 -0
  633. package/lib/context/providerStyledMangled.native.js.map +1 -0
  634. package/lib/context/providerTheme.d.ts +3 -5
  635. package/lib/context/providerTheme.js +5 -4
  636. package/lib/context/providerTheme.js.map +1 -1
  637. package/lib/hash.json +1 -1
  638. package/lib/helpers/hashClassesHelpers.js +2 -3
  639. package/lib/helpers/hashClassesHelpers.js.map +1 -1
  640. package/lib/objects/Typography/TypographyColor.d.ts +1 -0
  641. package/lib/objects/Typography/TypographyColor.js +23 -18
  642. package/lib/objects/Typography/TypographyColor.js.map +1 -1
  643. package/lib/objects/atoms/Background.d.ts +17 -2
  644. package/lib/objects/atoms/Background.js +14 -1
  645. package/lib/objects/atoms/Background.js.map +1 -1
  646. package/lib/objects/atoms/Text.js +3 -1
  647. package/lib/objects/atoms/Text.js.map +1 -1
  648. package/lib/objects/facets/Alert.d.ts +36 -0
  649. package/lib/objects/facets/Alert.js +70 -0
  650. package/lib/objects/facets/Alert.js.map +1 -0
  651. package/lib/objects/facets/Color.d.ts +5 -10
  652. package/lib/objects/facets/Color.js +53 -56
  653. package/lib/objects/facets/Color.js.map +1 -1
  654. package/lib/objects/facets/Justifiable.d.ts +1 -1
  655. package/lib/objects/facets/Status.d.ts +2 -29
  656. package/lib/objects/facets/Status.js +14 -14
  657. package/lib/objects/facets/Status.js.map +1 -1
  658. package/lib/objects/facets/Variant.js +1 -1
  659. package/lib/objects/facets/Variant.js.map +1 -1
  660. package/lib/objects/facets/index.d.ts +1 -1
  661. package/lib/objects/facets/index.js +1 -1
  662. package/lib/objects/facets/index.js.map +1 -1
  663. package/lib/version.d.ts +1 -1
  664. package/lib/version.js +1 -1
  665. package/package.json +1 -1
  666. package/lib/components/accordion/AccordionPropsDefaults.js +0 -45
  667. package/lib/components/accordion/body/AccordionBodyPropsDefaults.js +0 -52
  668. package/lib/components/accordion/header/AccordionHeaderPropsDefaults.js +0 -60
  669. package/lib/components/accordion/item/AccordionItemPropsDefaults.js +0 -68
  670. package/lib/components/accordion/item/OnClickCallbackDefaults.js +0 -1
  671. package/lib/components/alert/AlertPropsDefaults.js +0 -155
  672. package/lib/components/alert/ToasterStatusPropsDefaults.js +0 -227
  673. package/lib/components/alert/context/ToastConfigDefaults.js +0 -24
  674. package/lib/components/alert/context/ToastPropsDefaults.js +0 -129
  675. package/lib/components/autocomplete/AutoComplete.d.ts +0 -4
  676. package/lib/components/autocomplete/AutoComplete.js.map +0 -1
  677. package/lib/components/autocomplete/AutoComplete.native.js.map +0 -1
  678. package/lib/components/autocomplete/AutoCompleteProps.d.ts +0 -49
  679. package/lib/components/autocomplete/AutoCompleteProps.js.map +0 -1
  680. package/lib/components/autocomplete/AutoCompletePropsNativeDefaults.js +0 -752
  681. package/lib/components/autocomplete/AutoCompletePropsWebDefaults.js +0 -752
  682. package/lib/components/autocomplete/Autocomplete.helpers.js.map +0 -1
  683. package/lib/components/autocomplete/ItemDefaults.js +0 -10
  684. package/lib/components/autocomplete/ItemSelectedEventDefaults.js +0 -10
  685. package/lib/components/autocomplete/index.js.map +0 -1
  686. package/lib/components/autocomplete/item/AutoCompleteIem.native.js.map +0 -1
  687. package/lib/components/autocomplete/item/AutoCompleteItem.js.map +0 -1
  688. package/lib/components/autocomplete/item/AutoCompleteItemProps.js.map +0 -1
  689. package/lib/components/autocomplete/item/AutoCompleteItemPropsDefaults.js +0 -56
  690. package/lib/components/autocomplete/item/index.js.map +0 -1
  691. package/lib/components/autocomplete/menu/AutoCompleteMenu.js.map +0 -1
  692. package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js.map +0 -1
  693. package/lib/components/autocomplete/menu/AutoCompleteMenuProps.js.map +0 -1
  694. package/lib/components/autocomplete/menu/AutoCompleteMenuPropsDefaults.js +0 -60
  695. package/lib/components/autocomplete/menu/index.js.map +0 -1
  696. package/lib/components/autocomplete/utils/debounce.js.map +0 -1
  697. package/lib/components/autocomplete/utils/index.js.map +0 -1
  698. package/lib/components/badge/BadgePropsDefaults.js +0 -75
  699. package/lib/components/box/BoxPropsDefaults.js +0 -216
  700. package/lib/components/box/content/BoxContentPropsDefaults.js +0 -102
  701. package/lib/components/box/footer/BoxFooterPropsDefaults.js +0 -87
  702. package/lib/components/box/header/BoxHeaderPropsDefaults.js +0 -118
  703. package/lib/components/box/item/BoxItemPropsDefaults.js +0 -35
  704. package/lib/components/box/table-container/BoxTableContainerPropsDefaults.js +0 -45
  705. package/lib/components/breadcrumb/BreadcrumbPropsDefaults.js +0 -38
  706. package/lib/components/breadcrumb/BreadcrumbWebPropsDefaults.js +0 -45
  707. package/lib/components/breadcrumb/item/BreadcrumbItemPropsDefaults.js +0 -53
  708. package/lib/components/breadcrumb/item/BreadcrumbItemPropsWebDefaults.js +0 -253
  709. package/lib/components/button/ButtonPropsDefaults.js +0 -380
  710. package/lib/components/button/list/ButtonListPropsDefaults.js +0 -19
  711. package/lib/components/button/list/ButtonListWebPropsDefaults.js +0 -50
  712. package/lib/components/card/CardPropsDefaults.js +0 -220
  713. package/lib/components/card/content/CardContentPropsDefaults.js +0 -153
  714. package/lib/components/card/image/CardImagePropsDefaults.js +0 -52
  715. package/lib/components/checkbox/CheckboxChangeEventDefaults.js +0 -21
  716. package/lib/components/checkbox/CheckboxClickEventDefaults.js +0 -21
  717. package/lib/components/checkbox/CheckboxPropsDefaults.js +0 -200
  718. package/lib/components/chips/ChipsPropsDefaults.js +0 -75
  719. package/lib/components/chips/list/ChipsListPropsDefaults.js +0 -25
  720. package/lib/components/columns/ColumnsPropsDefaults.js +0 -89
  721. package/lib/components/columns/item/ColumnsItemPropsDefaults.js +0 -323
  722. package/lib/components/container/ContainerPropsDefaults.js +0 -185
  723. package/lib/components/countdown/CountdownPropsDefaults.js +0 -57
  724. package/lib/components/divider/DividerPropsDefaults.js +0 -210
  725. package/lib/components/fab/FabPropsDefaults.js +0 -171
  726. package/lib/components/hero/HeroPropsDefaults.js +0 -144
  727. package/lib/components/icon/IconPropsDefaults.js +0 -307
  728. package/lib/components/icon/circle/CircleIconPropsDefaults.js +0 -168
  729. package/lib/components/icon/status/StatusIconPropsDefaults.js +0 -126
  730. package/lib/components/icon/text/TextIconPropsDefaults.js +0 -160
  731. package/lib/components/image/ImagePropsDefaults.js +0 -75
  732. package/lib/components/input/ILengthVerifyDefaults.js +0 -16
  733. package/lib/components/input/IValidationRulesDefaults.js +0 -41
  734. package/lib/components/input/InputChangeEventNativeDefaults.js +0 -17
  735. package/lib/components/input/InputChangeEventWebDefaults.js +0 -21
  736. package/lib/components/input/InputClickEventDefaults.js +0 -19
  737. package/lib/components/input/InputKeyboardEventDefaults.js +0 -27
  738. package/lib/components/input/InputNativeEventsDefaults.js +0 -37
  739. package/lib/components/input/InputPropsDefaults.js +0 -654
  740. package/lib/components/input/InputWebEventsDefaults.js +0 -51
  741. package/lib/components/link/LinkPropsDefaults.js +0 -367
  742. package/lib/components/list/ListPropsDefaults.js +0 -53
  743. package/lib/components/list/item/ListItemPropsDefaults.js +0 -119
  744. package/lib/components/list/item/description/ListItemDescriptionPropsDefaults.js +0 -23
  745. package/lib/components/modal/CloseButtonPropsDefaults.js +0 -9
  746. package/lib/components/modal/ModalContentButtonPropsDefaults.js +0 -16
  747. package/lib/components/modal/ModalPropsDefaults.js +0 -325
  748. package/lib/components/modal/footer/ModalFooterPropsDefaults.js +0 -23
  749. package/lib/components/modal/title/ModalTitlePropsDefaults.js +0 -92
  750. package/lib/components/otp/OtpPropsDefaults.js +0 -97
  751. package/lib/components/pagination/PaginationPropsDefaults.js +0 -63
  752. package/lib/components/popover/PopoverPropsDefaults.js +0 -60
  753. package/lib/components/popover/PopoverWebPropsDefaults.js +0 -89
  754. package/lib/components/price/PricePropsDefaults.js +0 -159
  755. package/lib/components/product-tour/ProductTourPropsDefaults.js +0 -85
  756. package/lib/components/product-tour/ProductTourWebPropsDefaults.js +0 -92
  757. package/lib/components/progress/ProgressPropsDefaults.js +0 -95
  758. package/lib/components/progress/item/ProgressItemPropsDefaults.js +0 -84
  759. package/lib/components/progress/radial/ProgressRadialPropsDefaults.js +0 -165
  760. package/lib/components/progress/radial/item/ProgressRadialItemPropsDefaults.js +0 -54
  761. package/lib/components/radio/RadioPropsDefaults.js +0 -216
  762. package/lib/components/radio/list/RadioListPropsDefaults.js +0 -19
  763. package/lib/components/radio/list/RadioListWebPropsDefaults.js +0 -50
  764. package/lib/components/range/RangePropsDefaults.js +0 -123
  765. package/lib/components/rows/RowsPropsDefaults.js +0 -31
  766. package/lib/components/rows/item/RowsItemPropsDefaults.js +0 -31
  767. package/lib/components/scroll-view/ScrollViewPropsDefaults.js +0 -127
  768. package/lib/components/section/SectionPropsDefaults.js +0 -118
  769. package/lib/components/segment-control/SegmentControlPropsDefaults.js +0 -61
  770. package/lib/components/segment-control/item/SegmentControlItemPropsDefaults.js +0 -55
  771. package/lib/components/select/ISelectOptionDefaults.js +0 -23
  772. package/lib/components/select/SelectChangeEventDefaults.js +0 -37
  773. package/lib/components/select/SelectPropsDefaults.js +0 -187
  774. package/lib/components/select/option/SelectOptionPropsDefaults.js +0 -134
  775. package/lib/components/selector/SelectorEndDefaults.js +0 -10
  776. package/lib/components/selector/SelectorPropsDefaults.js +0 -128
  777. package/lib/components/selector/item/SelectorItemPropsDefaults.js +0 -84
  778. package/lib/components/spacer/SpacerPropsDefaults.js +0 -37
  779. package/lib/components/stepper/StepperPropsDefaults.js +0 -31
  780. package/lib/components/stepper/step/StepperStepPropsDefaults.js +0 -136
  781. package/lib/components/sticker/StickerPropsDefaults.js +0 -71
  782. package/lib/components/styleComponent/default/index.d.ts +0 -1
  783. package/lib/components/styleComponent/default/index.js +0 -2
  784. package/lib/components/styleComponent/default/index.js.map +0 -1
  785. package/lib/components/styleComponent/default/styleComponent.d.ts +0 -6
  786. package/lib/components/styleComponent/default/styleComponent.js +0 -7
  787. package/lib/components/styleComponent/default/styleComponent.js.map +0 -1
  788. package/lib/components/styleComponent/default/styleComponent.native.d.ts +0 -5
  789. package/lib/components/styleComponent/default/styleComponent.native.js +0 -6
  790. package/lib/components/styleComponent/default/styleComponent.native.js.map +0 -1
  791. package/lib/components/styleComponent/index.d.ts +0 -2
  792. package/lib/components/styleComponent/index.js +0 -3
  793. package/lib/components/styleComponent/index.js.map +0 -1
  794. package/lib/components/styleComponent/mangled/index.d.ts +0 -1
  795. package/lib/components/styleComponent/mangled/index.js +0 -2
  796. package/lib/components/styleComponent/mangled/index.js.map +0 -1
  797. package/lib/components/styleComponent/mangled/styleComponentMangled.d.ts +0 -6
  798. package/lib/components/styleComponent/mangled/styleComponentMangled.js +0 -7
  799. package/lib/components/styleComponent/mangled/styleComponentMangled.js.map +0 -1
  800. package/lib/components/styleComponent/mangled/styleComponentMangled.native.d.ts +0 -5
  801. package/lib/components/styleComponent/mangled/styleComponentMangled.native.js +0 -6
  802. package/lib/components/styleComponent/mangled/styleComponentMangled.native.js.map +0 -1
  803. package/lib/components/switch/SwitchChangeEventDefaults.js +0 -13
  804. package/lib/components/switch/SwitchPropsDefaults.js +0 -105
  805. package/lib/components/table/TablePropsDefaults.js +0 -63
  806. package/lib/components/table/body/TableBodyPropsDefaults.js +0 -107
  807. package/lib/components/table/head/TableHeadPropsDefaults.js +0 -107
  808. package/lib/components/table/td/TableTdPropsDefaults.js +0 -44
  809. package/lib/components/table/th/TableThPropsDefaults.js +0 -44
  810. package/lib/components/table/tr/TableTrPropsWebDefaults.js +0 -102
  811. package/lib/components/tabs/TabsPropsDefaults.js +0 -160
  812. package/lib/components/tabs/item/TabsItemPropsDefaults.js +0 -336
  813. package/lib/components/tag/TagClickEventDefaults.js +0 -1
  814. package/lib/components/tag/TagPropsDefaults.js +0 -119
  815. package/lib/components/tag/list/TagListPropsDefaults.js +0 -47
  816. package/lib/components/text/TextPropsDefaults.js +0 -192
  817. package/lib/components/textarea/TextareaChangeEventDefaults.js +0 -10
  818. package/lib/components/timeline/TimelinePropsDefaults.js +0 -39
  819. package/lib/components/timeline/content/TimelineContentPropsDefaults.js +0 -51
  820. package/lib/components/timeline/content/TimelineContentWebPropsDefaults.js +0 -58
  821. package/lib/components/timeline/item/TimelineItemPropsDefaults.js +0 -48
  822. package/lib/components/timeline/item/TimelineItemWebPropsDefaults.js +0 -55
  823. package/lib/components/timeline/marker/TimelineMarkerPropsDefaults.js +0 -113
  824. package/lib/components/timeline/marker/TimelineMarkerWebPropsDefaults.js +0 -127
  825. package/lib/components/title/TitlePropsDefaults.js +0 -165
  826. package/lib/components/view/ViewPropsDefaults.js +0 -221
  827. /package/lib/components/{autocomplete → input/autocomplete}/AutoCompleteProps.js +0 -0
  828. /package/lib/components/{autocomplete → input/autocomplete}/Autocomplete.helpers.d.ts +0 -0
  829. /package/lib/components/{autocomplete → input/autocomplete}/Autocomplete.helpers.js +0 -0
  830. /package/lib/components/{autocomplete → input/autocomplete}/index.d.ts +0 -0
  831. /package/lib/components/{autocomplete → input/autocomplete}/index.js +0 -0
  832. /package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteIem.native.d.ts +0 -0
  833. /package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteItem.d.ts +0 -0
  834. /package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteItemProps.js +0 -0
  835. /package/lib/components/{autocomplete → input/autocomplete}/item/index.d.ts +0 -0
  836. /package/lib/components/{autocomplete → input/autocomplete}/item/index.js +0 -0
  837. /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenu.d.ts +0 -0
  838. /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenu.native.d.ts +0 -0
  839. /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenuProps.d.ts +0 -0
  840. /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenuProps.js +0 -0
  841. /package/lib/components/{autocomplete → input/autocomplete}/menu/index.d.ts +0 -0
  842. /package/lib/components/{autocomplete → input/autocomplete}/menu/index.js +0 -0
  843. /package/lib/components/{autocomplete → input/autocomplete}/utils/debounce.d.ts +0 -0
  844. /package/lib/components/{autocomplete → input/autocomplete}/utils/debounce.js +0 -0
  845. /package/lib/components/{autocomplete → input/autocomplete}/utils/index.d.ts +0 -0
  846. /package/lib/components/{autocomplete → input/autocomplete}/utils/index.js +0 -0
@@ -1,98 +1,118 @@
1
1
  import { Text, TextMarkup } from "../../components/text";
2
- import React, { useEffect, useRef, useState } from "react";
2
+ import React, { useEffect, useMemo, useState } from "react";
3
3
  import { TypographyColor } from "../../objects/Typography";
4
4
  import clsx from "clsx";
5
5
  import { hashClass } from "../../helpers/hashClassesHelpers";
6
6
  import { is } from "../../services/classify";
7
7
  import { useTrilogyContext } from "../../context/index";
8
- const stringToCode = (str, codeSize) => {
9
- if (!str)
10
- return new Array(codeSize).fill(null);
11
- return str.split("").map((char) => (char === "" ? null : Number(char)));
12
- };
13
- const codeToString = (code) => {
14
- return code.map((char) => (char === null ? '_' : char)).join("");
15
- };
16
- const isCompleted = (myCode) => {
17
- return myCode.every((code) => code !== null);
18
- };
19
- const focusToNextInput = (target, value) => {
20
- const nextElementSibling = target.nextElementSibling;
21
- if (nextElementSibling) {
22
- if (value)
23
- nextElementSibling.value = value;
24
- if (target.value.length)
25
- nextElementSibling.focus();
26
- }
27
- else {
28
- target.focus();
29
- }
30
- };
31
- const focusToPrevInput = (target) => {
32
- const previousElementSibling = target.previousElementSibling;
33
- if (previousElementSibling) {
34
- previousElementSibling.focus();
35
- }
36
- else {
37
- target.focus();
38
- }
39
- };
40
- const updateCodeInput = (value, index, code) => {
41
- const numberValue = Number(value);
42
- if (isNaN(numberValue) || value.length < 1) {
43
- return code;
44
- }
45
- const newCodeInput = code.map((code, idx) => {
46
- return idx === index ? Number(value.slice(0, 1)) : code;
47
- });
48
- return updateCodeInput(value.slice(1), index + 1, newCodeInput);
49
- };
50
- const inputOnKeyUp = (e) => {
51
- const { key } = e;
52
- const target = e.target;
53
- if (key === "ArrowRight" || key === "ArrowDown") {
54
- return focusToNextInput(target);
55
- }
56
- if (key === "ArrowLeft" || key === "ArrowUp") {
57
- return focusToPrevInput(target);
58
- }
59
- if (key === "Backspace") {
60
- return (target.value === "") && focusToPrevInput(target);
61
- }
62
- if (key >= '0' && key <= '9') {
63
- focusToNextInput(target);
64
- }
65
- };
8
+ /**
9
+ * OTP Code Component
10
+ * @param className {string} Additionnal css classes
11
+ * @param code {string} Code Text Input
12
+ * @param codeSize {number} Code Size Number
13
+ * @param disabled {boolean} Disabled OTP Code Input
14
+ * @param error {boolean} OTP Code Input has error | Display error icon
15
+ * @param onCompleted {Function} Return code input string
16
+ * @param onChange {Function} onChange Input return current code
17
+ * @param onFocus {Function} onFocus return if focused opt
18
+ * @param autoFocus {boolean} Should auto focus otp
19
+ */
66
20
  const Otp = ({ className, code, codeSize = 6, disabled, error, onCompleted, onChange, onFocus, label, errorMessage, autoFocus, ...others }) => {
67
- const [codeInput, setCodeInput] = useState(stringToCode(code, codeSize) || new Array(codeSize).fill(null));
68
- const hasChanged = useRef(false);
21
+ const [codeInput, setCodeInput] = useState(code || "");
22
+ const [, setFocused] = useState(false);
69
23
  const { styled } = useTrilogyContext();
24
+ const testDigit = /^-?\d*\.?\d*$/;
70
25
  const classes = hashClass(styled, clsx("otp-list", error && is("error"), className));
71
26
  useEffect(() => {
72
- if (!disabled) {
73
- isCompleted(codeInput) && (onCompleted === null || onCompleted === void 0 ? void 0 : onCompleted(codeToString(codeInput)));
27
+ if (!disabled && codeInput.length >= codeSize) {
28
+ onCompleted === null || onCompleted === void 0 ? void 0 : onCompleted(codeInput);
74
29
  }
75
- }, [codeSize, codeInput, onCompleted, disabled]);
76
- useEffect(() => {
77
- hasChanged.current = codeInput.find((code) => code !== null) !== undefined;
78
- if (hasChanged.current) {
79
- onChange === null || onChange === void 0 ? void 0 : onChange(codeToString(codeInput));
30
+ }, [codeSize, codeInput]);
31
+ const valueItems = useMemo(() => {
32
+ const valueArray = codeInput.split("");
33
+ const items = [];
34
+ for (let i = 0; i < codeSize; i++) {
35
+ const char = valueArray[i];
36
+ if (testDigit.test(char)) {
37
+ items.push(char);
38
+ }
39
+ else {
40
+ items.push("");
41
+ }
42
+ }
43
+ return items;
44
+ }, [codeInput, codeSize]);
45
+ const focusToNextInput = (target) => {
46
+ const nextElementSibling = target.nextElementSibling;
47
+ if (nextElementSibling) {
48
+ nextElementSibling.focus();
80
49
  }
81
- }, [codeInput]);
50
+ };
51
+ const focusToPrevInput = (target) => {
52
+ const previousElementSibling = target.previousElementSibling;
53
+ if (previousElementSibling) {
54
+ previousElementSibling.focus();
55
+ }
56
+ };
82
57
  const inputOnChange = (e, idx) => {
83
58
  const { target } = e;
84
- const targetValue = target.value.trim();
85
- if (targetValue.length > 0) {
86
- setCodeInput(updateCodeInput(targetValue, idx, codeInput));
59
+ let targetValue = target.value.trim();
60
+ const isTargetValueDigit = testDigit.test(targetValue);
61
+ if (!isTargetValueDigit && targetValue !== "") {
62
+ return;
63
+ }
64
+ const nextInputEl = target.nextElementSibling;
65
+ if (!isTargetValueDigit && nextInputEl && nextInputEl.value !== "") {
66
+ return;
67
+ }
68
+ targetValue = isTargetValueDigit ? targetValue : "";
69
+ const targetValueLength = targetValue.length;
70
+ if (targetValueLength === 1) {
71
+ const newValue = codeInput.substring(0, idx) +
72
+ targetValue +
73
+ codeInput.substring(idx + 1);
74
+ if (onChange) {
75
+ onChange(newValue);
76
+ }
77
+ setCodeInput(newValue);
78
+ if (!isTargetValueDigit) {
79
+ return;
80
+ }
81
+ focusToNextInput(target);
87
82
  }
88
- else {
89
- setCodeInput(codeInput.map((code, index) => {
90
- return index === idx ? null : code;
91
- }));
83
+ else if (targetValueLength === codeSize) {
84
+ if (onChange) {
85
+ onChange(codeInput);
86
+ }
87
+ setCodeInput(targetValue);
88
+ target.blur();
92
89
  }
93
90
  };
91
+ const inputOnKeyDown = (e) => {
92
+ const { key } = e;
93
+ const target = e.target;
94
+ if (key === "ArrowRight" || key === "ArrowDown") {
95
+ e.preventDefault();
96
+ return focusToNextInput(target);
97
+ }
98
+ if (key === "ArrowLeft" || key === "ArrowUp") {
99
+ e.preventDefault();
100
+ return focusToPrevInput(target);
101
+ }
102
+ const targetValue = target.value;
103
+ target.setSelectionRange(0, targetValue.length);
104
+ if (e.key !== "Backspace" || targetValue !== "") {
105
+ target.value = "";
106
+ return;
107
+ }
108
+ focusToPrevInput(target);
109
+ };
94
110
  const inputOnFocus = (e) => {
95
111
  const { target } = e;
112
+ const prevInputEl = target.previousElementSibling;
113
+ if (prevInputEl && prevInputEl.value === "") {
114
+ return prevInputEl.focus();
115
+ }
96
116
  target.setSelectionRange(0, target.value.length);
97
117
  };
98
118
  return (React.createElement(React.Fragment, null,
@@ -101,9 +121,10 @@ const Otp = ({ className, code, codeSize = 6, disabled, error, onCompleted, onCh
101
121
  TypographyColor.TEXT_MAIN }, label)),
102
122
  React.createElement("div", { "data-testid": "otp-input", className: classes, onClick: () => {
103
123
  if (!disabled) {
124
+ setFocused(true);
104
125
  onFocus === null || onFocus === void 0 ? void 0 : onFocus(true);
105
126
  }
106
- } }, codeInput.map((digit, idx) => (React.createElement("input", { "aria-disabled": disabled, tabIndex: 0, key: idx, type: 'text', inputMode: 'numeric', autoComplete: 'one-time-code', autoFocus: idx === 0 && autoFocus, pattern: '\\d{1}', maxLength: codeSize, className: 'otp', value: `${digit !== null && digit !== void 0 ? digit : ""}`, onKeyUp: inputOnKeyUp, onFocus: inputOnFocus, onChange: (e) => inputOnChange(e, idx), disabled: disabled, ...others })))),
127
+ } }, valueItems.map((digit, idx) => (React.createElement("input", { "aria-disabled": disabled, tabIndex: 0, key: idx, type: 'text', inputMode: 'numeric', autoComplete: 'one-time-code', autoFocus: idx === 0 && autoFocus, pattern: '\\d{1}', maxLength: codeSize, className: 'otp', value: digit, onKeyDown: inputOnKeyDown, onFocus: inputOnFocus, onChange: (e) => inputOnChange(e, idx), disabled: disabled, ...others })))),
107
128
  errorMessage && (React.createElement(Text, { className: hashClass(styled, clsx("otp-error-message")), markup: TextMarkup.P, typo: (error && TypographyColor.TEXT_ERROR) || TypographyColor.TEXT_MAIN }, errorMessage))));
108
129
  };
109
130
  export default Otp;
@@ -1 +1 @@
1
- {"version":3,"file":"Otp.js","sourceRoot":"","sources":["../../../components/otp/Otp.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAW,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAiBnD,MAAM,YAAY,GAAG,CAAC,GAAqB,EAAE,QAAgB,EAAuB,EAAE;IACpF,IAAI,CAAC,GAAG;QAAE,OAAO,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC/C,OAAO,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACzE,CAAC,CAAA;AAED,MAAM,YAAY,GAAG,CAAC,IAAoB,EAAU,EAAE;IACpD,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC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AC,KAAK,IAAI,eAAe,CAAC,UAAU,CAAC,IAAI,eAAe,CAAC,SAAS,IAGnE,YAAY,CACR,CACR,CACA,CACJ,CAAA;AACH,CAAC,CAAA;AAED,eAAe,GAAG,CAAA"}
@@ -58,7 +58,7 @@ const Otp = ({ code, codeSize = 6, disabled, error, onCompleted, onFocus, activa
58
58
  borderColor: (disabled && getColorStyle(TrilogyColor.DISABLED)) ||
59
59
  (activated && getColorStyle(TrilogyColor.MAIN)) ||
60
60
  (error && getColorStyle(TrilogyColor.ERROR)) ||
61
- getColorStyle(TrilogyColor.NEUTRAL),
61
+ getColorStyle(TrilogyColor.FONT, 1),
62
62
  borderWidth: 1,
63
63
  borderRadius: 4,
64
64
  marginHorizontal: 5,
@@ -1 +1 @@
1
- {"version":3,"file":"Otp.native.js","sourceRoot":"","sources":["../../../components/otp/Otp.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,GAAG,MAAM,cAAc,CAAA;AAEpF,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACvE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE;;;;;;;;;;GAUG;AACH,MAAM,GAAG,GAAG,CAAC,EACX,IAAI,EACJ,QAAQ,GAAG,CAAC,EACZ,QAAQ,EACR,KAAK,EACL,WAA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aAAP,OAAO,uBAAP,OAAO,CAAG,KAAK,CAAC,CAAA;YAClB,CAAC,EACD,QAAQ,EAAE,CAAC,QAAQ,EACnB,KAAK,EAAE,KAAK,CAAC,eAAe,EAC5B,MAAM,EAAC,UAAU,GACjB,CACW,CAChB,CAAA;AACH,CAAC,CAAA;AAED,GAAG,CAAC,WAAW,GAAG,aAAa,CAAC,GAAG,CAAA;AAEnC,eAAe,GAAG,CAAA"}
@@ -1,2 +1,3 @@
1
1
  import Otp from './Otp';
2
- export { Otp };
2
+ import OtpExample from './Otp.example';
3
+ export { Otp, OtpExample };
@@ -1,3 +1,4 @@
1
1
  import Otp from './Otp';
2
- export { Otp };
2
+ import OtpExample from './Otp.example';
3
+ export { Otp, OtpExample };
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/otp/index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,OAAO,CAAA;AAEvB,OAAO,EAAE,GAAG,EAAE,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/otp/index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,OAAO,CAAA;AACvB,OAAO,UAAU,MAAM,eAAe,CAAA;AAEtC,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const PaginationExample: React.ReactNode;
3
+ export default PaginationExample;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { Pagination } from './index';
3
+ const PaginationExample = React.createElement(Pagination, { count: 50, defaultPage: 2 });
4
+ export default PaginationExample;
5
+ //# sourceMappingURL=Pagination.example.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pagination.example.js","sourceRoot":"","sources":["../../../components/pagination/Pagination.example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpC,MAAM,iBAAiB,GAErB,oBAAC,UAAU,IACT,KAAK,EAAE,EAAE,EACT,WAAW,EAAE,CAAC,GACd,CAAA;AAEJ,eAAe,iBAAiB,CAAA"}
@@ -1,3 +1,4 @@
1
1
  import Pagination from './Pagination';
2
- export { Pagination };
2
+ import PaginationExample from './Pagination.example';
3
+ export { Pagination, PaginationExample };
3
4
  export * from './PaginationEnum';
@@ -1,4 +1,5 @@
1
1
  import Pagination from './Pagination';
2
- export { Pagination };
2
+ import PaginationExample from './Pagination.example';
3
+ export { Pagination, PaginationExample };
3
4
  export * from './PaginationEnum';
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/pagination/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAA;AAErC,OAAO,EAAE,UAAU,EAAE,CAAA;AAErB,cAAc,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/pagination/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAA;AACrC,OAAO,iBAAiB,MAAM,sBAAsB,CAAA;AAEpD,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAA;AAExC,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const PopoverExample: React.ReactNode;
3
+ export default PopoverExample;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { Popover } from './index';
3
+ import { Button } from '../../components/button';
4
+ const PopoverExample = React.createElement(Popover, { content: 'Voici une simple popover' },
5
+ React.createElement(Button, { variant: 'PRIMARY' }, "Simple Popover"));
6
+ export default PopoverExample;
7
+ //# sourceMappingURL=Popover.example.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popover.example.js","sourceRoot":"","sources":["../../../components/popover/Popover.example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAE5C,MAAM,cAAc,GAElB,oBAAC,OAAO,IAAC,OAAO,EAAC,0BAA0B;IACzC,oBAAC,MAAM,IAAC,OAAO,EAAC,SAAS,qBAEhB,CACD,CAAA;AAEZ,eAAe,cAAc,CAAA"}
@@ -1,3 +1,4 @@
1
1
  import Popover from './Popover';
2
+ import PopoverExample from './Popover.example';
2
3
  export * from './PopoverEnum';
3
- export { Popover };
4
+ export { Popover, PopoverExample };
@@ -1,4 +1,5 @@
1
1
  import Popover from './Popover';
2
+ import PopoverExample from './Popover.example';
2
3
  export * from './PopoverEnum';
3
- export { Popover };
4
+ export { Popover, PopoverExample };
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/popover/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/popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,cAAc,eAAe,CAAA;AAE7B,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -13,14 +13,14 @@ import { PriceProps } from "./PriceProps";
13
13
  * @param inline {boolean} Inline display Price
14
14
  * @param accessibilityLabel {string} Accessibility label
15
15
  * @param testId {string} Test Id for Test Integration
16
- * @param overline {string} Price overline
16
+ * @param suptitle {string} Price Suptitle
17
17
  * @param tagAmount {number} Tag amount
18
18
  * @param tagSymbol {number} Tag symbol
19
19
  * - -------------------------- WEB PROPERTIES -------------------------------
20
20
  * @param className {string} Additionnal CSS Classes
21
- * @param strikedAmount {boolean} Striked Amount Price
21
+ * @param striked {boolean} Striked Price
22
22
  * - --------------- NATIVE PROPERTIES ----------------------------------
23
23
  * @param accessibilityActivate {boolean}
24
24
  */
25
- declare const Price: ({ className, amount, mention, period, showCents, level, inverted, align, inline, testId, accessibilityLabel, strikedAmount, overline, tagAmount, tagSymbol, ...others }: PriceProps) => JSX.Element;
25
+ declare const Price: ({ className, amount, mention, period, showCents, level, inverted, align, alert, inline, testId, accessibilityLabel, striked, suptitle, tagAmount, tagSymbol, ...others }: PriceProps) => JSX.Element;
26
26
  export default Price;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const PriceExample: React.ReactNode;
3
+ export default PriceExample;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { Price } from './index';
3
+ import { Columns, ColumnsItem } from '../columns';
4
+ const PriceExample = React.createElement(Columns, null,
5
+ React.createElement(ColumnsItem, null,
6
+ React.createElement(Price, { align: 'ALIGNED_START', amount: 24.99, period: 'mois', showCents: true })),
7
+ React.createElement(ColumnsItem, null,
8
+ React.createElement(Price, { amount: 24.99, mention: '(1)', period: 'mois', showCents: true, striked: true })),
9
+ React.createElement(ColumnsItem, null,
10
+ React.createElement(Price, { amount: 24.99, mention: '(1)', period: 'mois', showCents: true })));
11
+ export default PriceExample;
12
+ //# sourceMappingURL=Price.example.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Price.example.js","sourceRoot":"","sources":["../../../components/price/Price.example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAEjD,MAAM,YAAY,GAElB,oBAAC,OAAO;IACJ,oBAAC,WAAW;QACR,oBAAC,KAAK,IACF,KAAK,EAAC,eAAe,EACrB,MAAM,EAAE,KAAK,EACb,MAAM,EAAC,MAAM,EACb,SAAS,SACX,CACQ;IACd,oBAAC,WAAW;QACR,oBAAC,KAAK,IACF,MAAM,EAAE,KAAK,EACb,OAAO,EAAC,KAAK,EACb,MAAM,EAAC,MAAM,EACb,SAAS,QACT,OAAO,SACT,CACQ;IACd,oBAAC,WAAW;QACR,oBAAC,KAAK,IACF,MAAM,EAAE,KAAK,EACb,OAAO,EAAC,KAAK,EACb,MAAM,EAAC,MAAM,EACb,SAAS,SACX,CACQ,CACR,CAAA;AAEV,eAAe,YAAY,CAAA"}
@@ -6,7 +6,6 @@ import { Alignable, TypographyColor, TypographyBold } from "../../objects";
6
6
  import { checkCents } from "./PriceHelpers";
7
7
  import { hashClass } from "../../helpers";
8
8
  import { useTrilogyContext } from "../../context";
9
- import { PriceLevel } from "./PriceEnum";
10
9
  /**
11
10
  * Price Component
12
11
  * @param amount {number} Amount for Price
@@ -20,20 +19,19 @@ import { PriceLevel } from "./PriceEnum";
20
19
  * @param inline {boolean} Inline display Price
21
20
  * @param accessibilityLabel {string} Accessibility label
22
21
  * @param testId {string} Test Id for Test Integration
23
- * @param overline {string} Price overline
22
+ * @param suptitle {string} Price Suptitle
24
23
  * @param tagAmount {number} Tag amount
25
24
  * @param tagSymbol {number} Tag symbol
26
25
  * - -------------------------- WEB PROPERTIES -------------------------------
27
26
  * @param className {string} Additionnal CSS Classes
28
- * @param strikedAmount {boolean} Striked Amount Price
27
+ * @param striked {boolean} Striked Price
29
28
  * - --------------- NATIVE PROPERTIES ----------------------------------
30
29
  * @param accessibilityActivate {boolean}
31
30
  */
32
- const Price = ({ className, amount, mention, period, showCents = true, level, inverted, align, inline, testId, accessibilityLabel, strikedAmount, overline, tagAmount, tagSymbol, ...others }) => {
31
+ const Price = ({ className, amount, mention, period, showCents, level, inverted, align, alert, inline, testId, accessibilityLabel, striked, suptitle, tagAmount, tagSymbol, ...others }) => {
33
32
  var _a;
34
33
  const { styled } = useTrilogyContext();
35
- const classes = hashClass(styled, clsx("price", level && is(`level-${level}`), inverted && is("inverted"), inline && is("inlined"), overline && has("suptitle"), className));
36
- const classesStriked = hashClass(styled, clsx("price", level && level == PriceLevel.ONE && is(`level-3`) || level == PriceLevel.TWO && is(`level-4`) || level == PriceLevel.THREE && is(`level-5`) || level == PriceLevel.FOUR && is(`level-6`) || is(`level-7`), inverted && is("inverted"), inline && is("inlined"), strikedAmount && is("striked"), overline && has("suptitle"), className));
34
+ const classes = hashClass(styled, clsx("price", alert && is(`${alert}`), level && is(`level-${level}`), inverted && is("inverted"), inline && is("inlined"), striked && is("striked"), suptitle && has("suptitle"), className));
37
35
  const priceParentNode = hashClass(styled, clsx((align == Alignable.ALIGNED_START && has("text-left")) ||
38
36
  (align == Alignable.ALIGNED_CENTER && has("text-centered")) ||
39
37
  (align == Alignable.ALIGNED_END && has("text-right")) ||
@@ -42,30 +40,14 @@ const Price = ({ className, amount, mention, period, showCents = true, level, in
42
40
  const absoluteAmount = Math.abs(amount);
43
41
  const absoluteWhole = Math.floor(absoluteAmount);
44
42
  const whole = isNegative ? -absoluteWhole : absoluteWhole;
45
- const isNegativeStriked = strikedAmount && strikedAmount < 0;
46
- const absoluteAmountStriked = strikedAmount && Math.abs(strikedAmount);
47
- const absoluteWholeStriked = absoluteAmountStriked && Math.floor(absoluteAmountStriked);
48
- const wholeStriked = isNegativeStriked && absoluteWholeStriked ? -absoluteWholeStriked : absoluteWholeStriked;
49
43
  let cents = checkCents(((_a = absoluteAmount.toString().split(/[.,]/)[1]) === null || _a === void 0 ? void 0 : _a.substring(0, 2)) || "");
50
44
  cents = (cents && cents.length === 1 && `${cents}0`) || cents;
51
45
  const centsDisplayed = (inline && showCents && `,${cents || "00"} €`) ||
52
46
  (showCents && `€${cents || "00"}`) ||
53
47
  "€";
54
- const returnComponent = (React.createElement("div", { className: hashClass(styled, clsx("price-container")) },
55
- overline && React.createElement("p", { className: hashClass(styled, clsx("overline")) }, overline),
56
- strikedAmount && (React.createElement(React.Fragment, null,
57
- React.createElement("span", { "aria-hidden": "true", "data-testid": testId, className: classesStriked, ...others },
58
- React.createElement(Text, { markup: TextMarkup.SPAN }, `${wholeStriked}`),
59
- React.createElement("span", { className: hashClass(styled, clsx("price-details")) },
60
- React.createElement("span", { className: hashClass(styled, clsx("cents")) },
61
- inline && centsDisplayed === "€" ? (React.createElement(React.Fragment, null,
62
- "\u00A0",
63
- centsDisplayed)) : (centsDisplayed),
64
- mention && React.createElement("sup", null, mention)),
65
- period && (React.createElement("span", { className: hashClass(styled, clsx("period")) },
66
- "/",
67
- period)))))),
68
- React.createElement("span", { "aria-hidden": "true", "data-testid": testId, "aria-label": accessibilityLabel, className: classes, ...others },
48
+ const returnComponent = (React.createElement("span", { className: tagAmount ? hashClass(styled, clsx(is('aligned-center'), is('flex'))) : '' },
49
+ React.createElement("span", { "data-testid": testId, "aria-label": accessibilityLabel, className: classes, ...others },
50
+ suptitle && React.createElement("span", { className: 'price-suptitle' }, suptitle),
69
51
  React.createElement(Text, { markup: TextMarkup.SPAN }, `${whole}`),
70
52
  React.createElement("span", { className: hashClass(styled, clsx("price-details")) },
71
53
  React.createElement("span", { className: hashClass(styled, clsx("cents")) },
@@ -76,15 +58,14 @@ const Price = ({ className, amount, mention, period, showCents = true, level, in
76
58
  period && (React.createElement("span", { className: hashClass(styled, clsx("period")) },
77
59
  "/",
78
60
  period)))),
79
- tagAmount && (React.createElement("span", { ...{ role: 'paragraph' }, className: hashClass(styled, clsx(('price-tag'))) },
61
+ tagAmount && (React.createElement("span", { className: hashClass(styled, clsx(('price-tag'))) },
80
62
  React.createElement(Text, { markup: TextMarkup.SPAN, typo: [TypographyBold.TEXT_WEIGHT_SEMIBOLD, TypographyColor.TEXT_WHITE] },
81
63
  tagAmount,
82
64
  " ",
83
65
  tagSymbol ? tagSymbol : '€'),
84
66
  tagSymbol === '€' && period && React.createElement(Text, { markup: TextMarkup.SPAN, typo: [TypographyBold.TEXT_WEIGHT_NORMAL, TypographyColor.TEXT_WHITE] },
85
67
  "\u00A0/",
86
- period))),
87
- accessibilityLabel && React.createElement("p", { className: 'sr-only' }, accessibilityLabel)));
68
+ period)))));
88
69
  if (align) {
89
70
  return React.createElement("div", { className: priceParentNode }, returnComponent);
90
71
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Price.js","sourceRoot":"","sources":["../../../components/price/Price.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,IAAI,MAAM,MAAM,CAAA;AAEvB,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAExC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,KAAK,GAAG,CAAC,EACE,SAAS,EACT,MAAM,EACN,OAAO,EACP,MAAM,EACN,SAAS,GAAG,IAAI,EAChB,KAAK,EACL,QAAQ,EACR,KAAK,EACL,MAAM,EACN,MAAM,EACN,kBAAkB,EAClB,aAAa,EACb,QAAQ,EACR,SAAS,EACT,SAAS,EACT,GAAG,MAAM,EACE,EAAe,EAAE;;IAC3C,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAEtC,MAAM,OAAO,GAAG,SAAS,CACvB,MAAM,EACN,IAAI,CACF,OAAO,EACP,KAAK,IAAI,EAAE,CAAC,SAAS,KAAK,EAAE,CAAC,EAC7B,QAAQ,IAAI,EAAE,CAAC,UAAU,CAAC,EAC1B,MAAM,IAAI,EAAE,CAAC,SAAS,CAAC,EACvB,QAAQ,IAAI,GAA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CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;;oBAAI,MAAM,CAAQ,CACrE,CACI,CACF;QACN,SAAS,IAAI,CACZ,8BAAM,SAAS,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;YACrD,oBAAC,IAAI,IAAC,MAAM,EAAE,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,cAAc,CAAC,oBAAoB,EAAE,eAAe,CAAC,UAAU,CAAC;gBAAG,SAAS;;gBAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAQ;YACvJ,SAAS,KAAK,GAAG,IAAI,MAAM,IAAI,oBAAC,IAAI,IAAC,MAAM,EAAE,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,cAAc,CAAC,kBAAkB,EAAE,eAAe,CAAC,UAAU,CAAC;;gBAAU,MAAM,CAAQ,CACvJ,CACR,CACI,CACR,CAAA;IAED,IAAI,KAAK,EAAE;QACT,OAAO,6BAAK,SAAS,EAAE,eAAe,IAAG,eAAe,CAAO,CAAA;KAChE;IAED,OAAO,eAAe,CAAA;AACxB,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -12,15 +12,16 @@ import { ComponentName } from "../../components/enumsComponentsName";
12
12
  * @param inverted {boolean} Inverted Price Color
13
13
  * @param children {React.ReactNode}
14
14
  * @param align {Alignable} Price alignement
15
+ * @param alert {AlertState} Alert Variant (INFO|SUCCESS|WARNING|ERROR)
15
16
  * @param inline {boolean} Inline display Price
16
17
  * @param testId {string} id for test
17
18
  * @param accessibilityLabel {string}
18
- * @param overline {string} Price overline
19
+ * @param suptitle {string} Price Suptitle
19
20
  * @param tagAmount {number} Tag amount
20
21
  * @param tagSymbol {number} Tag symbol
21
22
  */
22
23
  declare const Price: {
23
- ({ amount, mention, period, showCents, level, inverted, align, inline, testId, accessibilityLabel, strikedAmount, overline, style, tagAmount, tagSymbol, ...others }: PriceProps): JSX.Element;
24
+ ({ amount, mention, period, showCents, level, inverted, align, alert, inline, testId, accessibilityLabel, striked, suptitle, style, tagAmount, tagSymbol, ...others }: PriceProps): JSX.Element;
24
25
  displayName: ComponentName;
25
26
  };
26
27
  export default Price;