@digigov/react-core 2.0.8 → 2.0.9-platform-196.17-02-26-12-34

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 (584) hide show
  1. package/.prettierrc.cjs +1 -0
  2. package/.turbo/turbo-build.log +15 -0
  3. package/CHANGELOG.json +1750 -0
  4. package/eslint.config.mjs +3 -0
  5. package/nativewind-env.d.ts +1 -0
  6. package/package.json +54 -7
  7. package/tsconfig.json +16 -0
  8. package/tsconfig.production.json +7 -0
  9. package/Accordion/index.d.ts +0 -2
  10. package/Accordion/index.js +0 -3
  11. package/Accordion/index.native.d.ts +0 -2
  12. package/Accordion/index.native.js +0 -15
  13. package/Accordion/index.web.d.ts +0 -28
  14. package/Accordion/index.web.js +0 -20
  15. package/AccordionControls/index.d.ts +0 -9
  16. package/AccordionControls/index.js +0 -15
  17. package/AccordionSection/index.d.ts +0 -2
  18. package/AccordionSection/index.js +0 -3
  19. package/AccordionSection/index.native.d.ts +0 -2
  20. package/AccordionSection/index.native.js +0 -12
  21. package/AccordionSection/index.web.d.ts +0 -10
  22. package/AccordionSection/index.web.js +0 -15
  23. package/AccordionSectionContent/index.d.ts +0 -10
  24. package/AccordionSectionContent/index.js +0 -15
  25. package/AccordionSectionSummary/index.d.ts +0 -9
  26. package/AccordionSectionSummary/index.js +0 -17
  27. package/AccordionSectionSummaryHeading/index.d.ts +0 -10
  28. package/AccordionSectionSummaryHeading/index.js +0 -22
  29. package/AdminAside/index.d.ts +0 -9
  30. package/AdminAside/index.js +0 -16
  31. package/AdminContainer/index.d.ts +0 -17
  32. package/AdminContainer/index.js +0 -16
  33. package/AdminHeader/index.d.ts +0 -10
  34. package/AdminHeader/index.js +0 -15
  35. package/AdminHeaderContent/index.d.ts +0 -9
  36. package/AdminHeaderContent/index.js +0 -14
  37. package/AdminLayout/index.d.ts +0 -9
  38. package/AdminLayout/index.js +0 -15
  39. package/AdminMain/index.d.ts +0 -9
  40. package/AdminMain/index.js +0 -15
  41. package/AdminTopSection/index.d.ts +0 -25
  42. package/AdminTopSection/index.js +0 -17
  43. package/Aside/index.d.ts +0 -27
  44. package/Aside/index.js +0 -21
  45. package/AutoCompleteAssistiveHint/index.d.ts +0 -11
  46. package/AutoCompleteAssistiveHint/index.js +0 -15
  47. package/AutoCompleteContainer/index.d.ts +0 -22
  48. package/AutoCompleteContainer/index.js +0 -21
  49. package/AutoCompleteInputBase/index.d.ts +0 -17
  50. package/AutoCompleteInputBase/index.js +0 -18
  51. package/AutoCompleteMultipleInput/index.d.ts +0 -9
  52. package/AutoCompleteMultipleInput/index.js +0 -16
  53. package/AutoCompleteMultipleInputContainer/index.d.ts +0 -12
  54. package/AutoCompleteMultipleInputContainer/index.js +0 -17
  55. package/AutoCompleteResultList/index.d.ts +0 -20
  56. package/AutoCompleteResultList/index.js +0 -16
  57. package/AutoCompleteResultListItem/index.d.ts +0 -47
  58. package/AutoCompleteResultListItem/index.js +0 -19
  59. package/AutoCompleteStatus/index.d.ts +0 -10
  60. package/AutoCompleteStatus/index.js +0 -18
  61. package/AutoCompleteStatusContainer/index.d.ts +0 -10
  62. package/AutoCompleteStatusContainer/index.js +0 -15
  63. package/BackLinkBase/index.d.ts +0 -9
  64. package/BackLinkBase/index.js +0 -22
  65. package/BackToTopContainer/index.d.ts +0 -17
  66. package/BackToTopContainer/index.js +0 -20
  67. package/BackToTopLimit/index.d.ts +0 -9
  68. package/BackToTopLimit/index.js +0 -13
  69. package/BackToTopLink/index.d.ts +0 -9
  70. package/BackToTopLink/index.js +0 -21
  71. package/BannerContainer/index.d.ts +0 -6
  72. package/BannerContainer/index.js +0 -15
  73. package/Base/compat/Input/CheckboxInput.native.d.ts +0 -4
  74. package/Base/compat/Input/CheckboxInput.native.js +0 -24
  75. package/Base/compat/Input/RadioInput.native.d.ts +0 -4
  76. package/Base/compat/Input/RadioInput.native.js +0 -24
  77. package/Base/compat/Input/StringInput.native.d.ts +0 -7
  78. package/Base/compat/Input/StringInput.native.js +0 -79
  79. package/Base/compat/Input/index.native.d.ts +0 -7
  80. package/Base/compat/Input/index.native.js +0 -25
  81. package/Base/compat/button.native.d.ts +0 -5
  82. package/Base/compat/button.native.js +0 -36
  83. package/Base/compat/details.native.d.ts +0 -9
  84. package/Base/compat/details.native.js +0 -29
  85. package/Base/compat/li.native.d.ts +0 -4
  86. package/Base/compat/li.native.js +0 -4
  87. package/Base/compat/ol.native.d.ts +0 -6
  88. package/Base/compat/ol.native.js +0 -24
  89. package/Base/index.d.ts +0 -2
  90. package/Base/index.js +0 -3
  91. package/Base/index.native.d.ts +0 -7
  92. package/Base/index.native.js +0 -111
  93. package/Base/index.web.d.ts +0 -104
  94. package/Base/index.web.js +0 -53
  95. package/Base/mapping.native.d.ts +0 -6
  96. package/Base/mapping.native.js +0 -36
  97. package/Base/utils.d.ts +0 -40
  98. package/Base/utils.js +0 -46
  99. package/Base/wrap.native.d.ts +0 -2
  100. package/Base/wrap.native.js +0 -67
  101. package/Blockquote/index.d.ts +0 -16
  102. package/Blockquote/index.js +0 -16
  103. package/Bottom/index.d.ts +0 -9
  104. package/Bottom/index.js +0 -15
  105. package/BottomInfo/index.d.ts +0 -9
  106. package/BottomInfo/index.js +0 -14
  107. package/BottomInfoContainer/index.d.ts +0 -9
  108. package/BottomInfoContainer/index.js +0 -14
  109. package/BottomInfoContent/index.d.ts +0 -9
  110. package/BottomInfoContent/index.js +0 -16
  111. package/Breadcrumbs/index.d.ts +0 -10
  112. package/Breadcrumbs/index.js +0 -16
  113. package/BreadcrumbsList/index.d.ts +0 -9
  114. package/BreadcrumbsList/index.js +0 -15
  115. package/BreadcrumbsListItemLinkBase/index.d.ts +0 -14
  116. package/BreadcrumbsListItemLinkBase/index.js +0 -15
  117. package/BreadcrumbsListItemWrapper/index.d.ts +0 -10
  118. package/BreadcrumbsListItemWrapper/index.js +0 -15
  119. package/Button/index.d.ts +0 -35
  120. package/Button/index.js +0 -25
  121. package/ButtonGroup/index.d.ts +0 -9
  122. package/ButtonGroup/index.js +0 -15
  123. package/ButtonLinkBase/index.d.ts +0 -28
  124. package/ButtonLinkBase/index.js +0 -19
  125. package/CallToActionBase/index.d.ts +0 -9
  126. package/CallToActionBase/index.js +0 -18
  127. package/Card/index.d.ts +0 -50
  128. package/Card/index.js +0 -28
  129. package/CardAction/index.d.ts +0 -11
  130. package/CardAction/index.js +0 -15
  131. package/CardContent/index.d.ts +0 -10
  132. package/CardContent/index.js +0 -15
  133. package/CardHeading/index.d.ts +0 -10
  134. package/CardHeading/index.js +0 -17
  135. package/Checkbox/index.d.ts +0 -27
  136. package/Checkbox/index.js +0 -17
  137. package/CheckboxConditional/index.d.ts +0 -11
  138. package/CheckboxConditional/index.js +0 -17
  139. package/CheckboxItem/index.d.ts +0 -17
  140. package/CheckboxItem/index.js +0 -27
  141. package/CheckboxItemInput/index.d.ts +0 -2
  142. package/CheckboxItemInput/index.js +0 -3
  143. package/CheckboxItemInput/index.web.d.ts +0 -10
  144. package/CheckboxItemInput/index.web.js +0 -19
  145. package/Chip/index.d.ts +0 -14
  146. package/Chip/index.js +0 -28
  147. package/ChipContainer/index.d.ts +0 -14
  148. package/ChipContainer/index.js +0 -16
  149. package/ChipHeading/index.d.ts +0 -10
  150. package/ChipHeading/index.js +0 -12
  151. package/ChipKeyValue/index.d.ts +0 -10
  152. package/ChipKeyValue/index.js +0 -15
  153. package/ChoiceDividerText/index.d.ts +0 -10
  154. package/ChoiceDividerText/index.js +0 -15
  155. package/CircularProgressBase/index.d.ts +0 -27
  156. package/CircularProgressBase/index.js +0 -28
  157. package/CloseButton/index.d.ts +0 -15
  158. package/CloseButton/index.js +0 -16
  159. package/Code/index.d.ts +0 -18
  160. package/Code/index.js +0 -19
  161. package/CodeBlockContainer/index.d.ts +0 -10
  162. package/CodeBlockContainer/index.js +0 -15
  163. package/CodeBlockContent/index.d.ts +0 -10
  164. package/CodeBlockContent/index.js +0 -18
  165. package/CodeBlockHeader/index.d.ts +0 -19
  166. package/CodeBlockHeader/index.js +0 -16
  167. package/Container/index.d.ts +0 -23
  168. package/Container/index.js +0 -19
  169. package/CopyToClipboardContainer/index.d.ts +0 -2
  170. package/CopyToClipboardContainer/index.js +0 -3
  171. package/CopyToClipboardContainer/index.web.d.ts +0 -31
  172. package/CopyToClipboardContainer/index.web.js +0 -25
  173. package/CopyToClipboardMessage/index.d.ts +0 -2
  174. package/CopyToClipboardMessage/index.js +0 -3
  175. package/CopyToClipboardMessage/index.native.d.ts +0 -4
  176. package/CopyToClipboardMessage/index.native.js +0 -12
  177. package/CopyToClipboardMessage/index.web.d.ts +0 -18
  178. package/CopyToClipboardMessage/index.web.js +0 -16
  179. package/CopyrightContainer/index.d.ts +0 -10
  180. package/CopyrightContainer/index.js +0 -15
  181. package/DateInputContainer/index.d.ts +0 -19
  182. package/DateInputContainer/index.js +0 -16
  183. package/DateInputItem/index.d.ts +0 -2
  184. package/DateInputItem/index.js +0 -3
  185. package/DateInputItem/index.native.d.ts +0 -2
  186. package/DateInputItem/index.native.js +0 -8
  187. package/DateInputItem/index.web.d.ts +0 -26
  188. package/DateInputItem/index.web.js +0 -26
  189. package/Details/index.d.ts +0 -2
  190. package/Details/index.js +0 -3
  191. package/Details/index.native.d.ts +0 -2
  192. package/Details/index.native.js +0 -11
  193. package/Details/index.web.d.ts +0 -10
  194. package/Details/index.web.js +0 -15
  195. package/DetailsContent/index.d.ts +0 -11
  196. package/DetailsContent/index.js +0 -16
  197. package/DetailsSummary/index.d.ts +0 -10
  198. package/DetailsSummary/index.js +0 -16
  199. package/Drawer/index.d.ts +0 -46
  200. package/Drawer/index.js +0 -31
  201. package/DrawerHeading/index.d.ts +0 -16
  202. package/DrawerHeading/index.js +0 -19
  203. package/DropdownBase/index.d.ts +0 -39
  204. package/DropdownBase/index.js +0 -19
  205. package/DropdownButton/index.d.ts +0 -45
  206. package/DropdownButton/index.js +0 -26
  207. package/DropdownContent/index.d.ts +0 -25
  208. package/DropdownContent/index.js +0 -17
  209. package/ErrorMessage/index.d.ts +0 -11
  210. package/ErrorMessage/index.js +0 -15
  211. package/ErrorSummary/index.d.ts +0 -25
  212. package/ErrorSummary/index.js +0 -16
  213. package/FieldContainer/index.d.ts +0 -15
  214. package/FieldContainer/index.js +0 -20
  215. package/Fieldset/index.d.ts +0 -10
  216. package/Fieldset/index.js +0 -15
  217. package/FieldsetLegend/index.d.ts +0 -27
  218. package/FieldsetLegend/index.js +0 -20
  219. package/FileUpload/index.d.ts +0 -24
  220. package/FileUpload/index.js +0 -28
  221. package/FileUploadContainer/index.d.ts +0 -24
  222. package/FileUploadContainer/index.js +0 -16
  223. package/FillableText/index.d.ts +0 -10
  224. package/FillableText/index.js +0 -15
  225. package/FilterContainer/index.d.ts +0 -40
  226. package/FilterContainer/index.js +0 -30
  227. package/FilterContent/index.d.ts +0 -9
  228. package/FilterContent/index.js +0 -15
  229. package/FilterHeadingContainer/index.d.ts +0 -24
  230. package/FilterHeadingContainer/index.js +0 -20
  231. package/FilterOptionsSection/index.d.ts +0 -14
  232. package/FilterOptionsSection/index.js +0 -16
  233. package/FilterSelectedHeading/index.d.ts +0 -9
  234. package/FilterSelectedHeading/index.js +0 -15
  235. package/FilterSelectedSection/index.d.ts +0 -9
  236. package/FilterSelectedSection/index.js +0 -15
  237. package/Footer/index.d.ts +0 -9
  238. package/Footer/index.js +0 -15
  239. package/FooterContainer/index.d.ts +0 -9
  240. package/FooterContainer/index.js +0 -11
  241. package/FooterContent/index.d.ts +0 -10
  242. package/FooterContent/index.js +0 -15
  243. package/FooterContentLogos/index.d.ts +0 -11
  244. package/FooterContentLogos/index.js +0 -15
  245. package/FooterHeading/index.d.ts +0 -18
  246. package/FooterHeading/index.js +0 -16
  247. package/FooterImage/index.d.ts +0 -11
  248. package/FooterImage/index.js +0 -16
  249. package/FooterInfo/index.d.ts +0 -11
  250. package/FooterInfo/index.js +0 -15
  251. package/FooterInfoSection/index.d.ts +0 -14
  252. package/FooterInfoSection/index.js +0 -16
  253. package/FooterLinkBase/index.d.ts +0 -9
  254. package/FooterLinkBase/index.js +0 -15
  255. package/FooterList/index.d.ts +0 -23
  256. package/FooterList/index.js +0 -17
  257. package/FooterListItem/index.d.ts +0 -10
  258. package/FooterListItem/index.js +0 -15
  259. package/FooterNavigation/index.d.ts +0 -11
  260. package/FooterNavigation/index.js +0 -15
  261. package/FooterNavigationSection/index.d.ts +0 -11
  262. package/FooterNavigationSection/index.js +0 -15
  263. package/Form/index.d.ts +0 -16
  264. package/Form/index.js +0 -16
  265. package/FullPageBackground/index.d.ts +0 -10
  266. package/FullPageBackground/index.js +0 -15
  267. package/GovGRLogoBase/govgr-logo-base64.d.ts +0 -2
  268. package/GovGRLogoBase/govgr-logo-base64.js +0 -2
  269. package/GovGRLogoBase/govgr-logo-blue-base64.d.ts +0 -2
  270. package/GovGRLogoBase/govgr-logo-blue-base64.js +0 -2
  271. package/GovGRLogoBase/index.d.ts +0 -9
  272. package/GovGRLogoBase/index.js +0 -30
  273. package/Grid/index.d.ts +0 -83
  274. package/Grid/index.js +0 -28
  275. package/Header/index.d.ts +0 -10
  276. package/Header/index.js +0 -17
  277. package/HeaderContent/index.d.ts +0 -9
  278. package/HeaderContent/index.js +0 -15
  279. package/HeaderLogoBase/index.d.ts +0 -19
  280. package/HeaderLogoBase/index.js +0 -22
  281. package/HeaderNavMenuContent/index.d.ts +0 -11
  282. package/HeaderNavMenuContent/index.js +0 -15
  283. package/HeaderSecondaryLogoBase/index.d.ts +0 -19
  284. package/HeaderSecondaryLogoBase/index.js +0 -22
  285. package/HeaderSection/index.d.ts +0 -9
  286. package/HeaderSection/index.js +0 -15
  287. package/HeaderTitleBase/index.d.ts +0 -9
  288. package/HeaderTitleBase/index.js +0 -16
  289. package/Heading/index.d.ts +0 -31
  290. package/Heading/index.js +0 -33
  291. package/HeadingCaption/index.d.ts +0 -19
  292. package/HeadingCaption/index.js +0 -15
  293. package/HellenicRepublicLogo/index.d.ts +0 -17
  294. package/HellenicRepublicLogo/index.js +0 -32
  295. package/HellenicRepublicLogo/logo-el.d.ts +0 -2
  296. package/HellenicRepublicLogo/logo-el.js +0 -2
  297. package/HellenicRepublicLogo/logo-en.d.ts +0 -2
  298. package/HellenicRepublicLogo/logo-en.js +0 -2
  299. package/HellenicRepublicLogo/logo-inverted-el.d.ts +0 -2
  300. package/HellenicRepublicLogo/logo-inverted-el.js +0 -2
  301. package/HellenicRepublicLogo/logo-inverted-en.d.ts +0 -2
  302. package/HellenicRepublicLogo/logo-inverted-en.js +0 -2
  303. package/Hidden/index.d.ts +0 -71
  304. package/Hidden/index.js +0 -21
  305. package/Hint/index.d.ts +0 -22
  306. package/Hint/index.js +0 -18
  307. package/ImageLogo/index.d.ts +0 -20
  308. package/ImageLogo/index.js +0 -18
  309. package/ImageLogoSet/index.d.ts +0 -20
  310. package/ImageLogoSet/index.js +0 -19
  311. package/KitchenSinkAllComponents/index.d.ts +0 -5
  312. package/KitchenSinkAllComponents/index.js +0 -14
  313. package/KitchenSinkCard/index.d.ts +0 -5
  314. package/KitchenSinkCard/index.js +0 -15
  315. package/KitchenSinkCategory/index.d.ts +0 -5
  316. package/KitchenSinkCategory/index.js +0 -14
  317. package/KitchenSinkContent/index.d.ts +0 -14
  318. package/KitchenSinkContent/index.js +0 -15
  319. package/KitchenSinkContentInfo/index.d.ts +0 -5
  320. package/KitchenSinkContentInfo/index.js +0 -14
  321. package/KitchenSinkContentTags/index.d.ts +0 -5
  322. package/KitchenSinkContentTags/index.js +0 -14
  323. package/KitchenSinkHeading/index.d.ts +0 -5
  324. package/KitchenSinkHeading/index.js +0 -13
  325. package/KitchenSinkLetterContent/index.d.ts +0 -5
  326. package/KitchenSinkLetterContent/index.js +0 -14
  327. package/LabelContainer/index.d.ts +0 -9
  328. package/LabelContainer/index.js +0 -15
  329. package/LabelTitle/index.d.ts +0 -26
  330. package/LabelTitle/index.js +0 -20
  331. package/LabeledText/index.d.ts +0 -18
  332. package/LabeledText/index.js +0 -16
  333. package/Layout/index.d.ts +0 -15
  334. package/Layout/index.js +0 -16
  335. package/LinkBase/index.d.ts +0 -24
  336. package/LinkBase/index.js +0 -20
  337. package/List/index.d.ts +0 -33
  338. package/List/index.js +0 -19
  339. package/ListItem/index.d.ts +0 -9
  340. package/ListItem/index.js +0 -15
  341. package/LoaderContainer/index.d.ts +0 -9
  342. package/LoaderContainer/index.js +0 -15
  343. package/Main/index.d.ts +0 -9
  344. package/Main/index.js +0 -19
  345. package/Masthead/index.d.ts +0 -18
  346. package/Masthead/index.js +0 -18
  347. package/MastheadBody/index.d.ts +0 -9
  348. package/MastheadBody/index.js +0 -15
  349. package/MastheadLogo/index.d.ts +0 -11
  350. package/MastheadLogo/index.js +0 -16
  351. package/ModalAction/index.d.ts +0 -11
  352. package/ModalAction/index.js +0 -15
  353. package/ModalContainer/index.d.ts +0 -31
  354. package/ModalContainer/index.js +0 -23
  355. package/ModalContent/index.d.ts +0 -10
  356. package/ModalContent/index.js +0 -15
  357. package/ModalHeading/index.d.ts +0 -10
  358. package/ModalHeading/index.js +0 -12
  359. package/Nav/index.d.ts +0 -49
  360. package/Nav/index.js +0 -28
  361. package/NavList/index.d.ts +0 -31
  362. package/NavList/index.js +0 -19
  363. package/NavListItemActionBase/index.d.ts +0 -26
  364. package/NavListItemActionBase/index.js +0 -22
  365. package/NavListItemActionContainer/index.d.ts +0 -2
  366. package/NavListItemActionContainer/index.js +0 -3
  367. package/NavListItemActionContainer/index.native.d.ts +0 -5
  368. package/NavListItemActionContainer/index.native.js +0 -11
  369. package/NavListItemActionContainer/index.web.d.ts +0 -10
  370. package/NavListItemActionContainer/index.web.js +0 -15
  371. package/NavListItemBadge/index.d.ts +0 -15
  372. package/NavListItemBadge/index.js +0 -15
  373. package/NavListItemButton/index.d.ts +0 -27
  374. package/NavListItemButton/index.js +0 -20
  375. package/NavListItemLinkBase/index.d.ts +0 -17
  376. package/NavListItemLinkBase/index.js +0 -16
  377. package/NavMenuContainer/index.d.ts +0 -25
  378. package/NavMenuContainer/index.js +0 -25
  379. package/NavMenuContent/index.d.ts +0 -11
  380. package/NavMenuContent/index.js +0 -18
  381. package/NavMenuContentListBase/index.d.ts +0 -10
  382. package/NavMenuContentListBase/index.js +0 -15
  383. package/NavMenuContentListItem/index.d.ts +0 -10
  384. package/NavMenuContentListItem/index.js +0 -15
  385. package/NavMenuTitle/index.d.ts +0 -11
  386. package/NavMenuTitle/index.js +0 -24
  387. package/NormalText/index.d.ts +0 -18
  388. package/NormalText/index.js +0 -19
  389. package/NotificationBannerContainer/index.d.ts +0 -30
  390. package/NotificationBannerContainer/index.js +0 -20
  391. package/NotificationBannerContent/index.d.ts +0 -34
  392. package/NotificationBannerContent/index.js +0 -25
  393. package/NotificationBannerHeader/index.d.ts +0 -11
  394. package/NotificationBannerHeader/index.js +0 -23
  395. package/NotificationBannerHeading/index.d.ts +0 -11
  396. package/NotificationBannerHeading/index.js +0 -16
  397. package/NotificationBannerLink/index.d.ts +0 -2
  398. package/NotificationBannerLink/index.js +0 -3
  399. package/NotificationBannerLink/index.native.d.ts +0 -6
  400. package/NotificationBannerLink/index.native.js +0 -12
  401. package/NotificationBannerLink/index.web.d.ts +0 -11
  402. package/NotificationBannerLink/index.web.js +0 -14
  403. package/PageTitleCaption/index.d.ts +0 -9
  404. package/PageTitleCaption/index.js +0 -10
  405. package/PageTitleContainer/index.d.ts +0 -9
  406. package/PageTitleContainer/index.js +0 -15
  407. package/PageTitleHeading/index.d.ts +0 -10
  408. package/PageTitleHeading/index.js +0 -10
  409. package/Pagination/index.d.ts +0 -17
  410. package/Pagination/index.js +0 -16
  411. package/PaginationLabelContainer/index.d.ts +0 -9
  412. package/PaginationLabelContainer/index.js +0 -15
  413. package/PaginationList/index.d.ts +0 -9
  414. package/PaginationList/index.js +0 -15
  415. package/PaginationListItem/index.d.ts +0 -29
  416. package/PaginationListItem/index.js +0 -18
  417. package/Panel/index.d.ts +0 -15
  418. package/Panel/index.js +0 -16
  419. package/PanelBody/index.d.ts +0 -9
  420. package/PanelBody/index.js +0 -15
  421. package/PanelTitle/index.d.ts +0 -9
  422. package/PanelTitle/index.js +0 -15
  423. package/Paragraph/index.d.ts +0 -10
  424. package/Paragraph/index.js +0 -11
  425. package/PhaseBanner/index.d.ts +0 -18
  426. package/PhaseBanner/index.js +0 -21
  427. package/PhaseBannerHeaderContainer/index.d.ts +0 -6
  428. package/PhaseBannerHeaderContainer/index.js +0 -15
  429. package/PhaseBannerTag/index.d.ts +0 -9
  430. package/PhaseBannerTag/index.js +0 -15
  431. package/PhaseBannerText/index.d.ts +0 -11
  432. package/PhaseBannerText/index.js +0 -15
  433. package/RadioConditional/index.d.ts +0 -11
  434. package/RadioConditional/index.js +0 -17
  435. package/RadioContainer/index.d.ts +0 -24
  436. package/RadioContainer/index.js +0 -17
  437. package/RadioItem/index.d.ts +0 -16
  438. package/RadioItem/index.js +0 -31
  439. package/ResultsActionBar/index.d.ts +0 -9
  440. package/ResultsActionBar/index.js +0 -15
  441. package/ResultsHeading/index.d.ts +0 -10
  442. package/ResultsHeading/index.js +0 -15
  443. package/ResultsHeadingActions/index.d.ts +0 -10
  444. package/ResultsHeadingActions/index.js +0 -15
  445. package/SearchButton/index.d.ts +0 -10
  446. package/SearchButton/index.js +0 -15
  447. package/SearchContainer/index.d.ts +0 -9
  448. package/SearchContainer/index.js +0 -15
  449. package/Section/index.d.ts +0 -10
  450. package/Section/index.js +0 -13
  451. package/SectionBreak/index.d.ts +0 -26
  452. package/SectionBreak/index.js +0 -19
  453. package/SelectContainer/index.d.ts +0 -17
  454. package/SelectContainer/index.js +0 -16
  455. package/SelectOption/index.d.ts +0 -10
  456. package/SelectOption/index.js +0 -15
  457. package/SingleCharacterInput/index.d.ts +0 -18
  458. package/SingleCharacterInput/index.js +0 -18
  459. package/SingleCharacterInputs/index.d.ts +0 -11
  460. package/SingleCharacterInputs/index.js +0 -15
  461. package/Skeleton/index.d.ts +0 -49
  462. package/Skeleton/index.js +0 -31
  463. package/SkipLink/index.d.ts +0 -9
  464. package/SkipLink/index.js +0 -17
  465. package/Stack/index.d.ts +0 -41
  466. package/Stack/index.js +0 -26
  467. package/StepNav/index.d.ts +0 -17
  468. package/StepNav/index.js +0 -16
  469. package/StepNavAccordion/index.d.ts +0 -11
  470. package/StepNavAccordion/index.js +0 -15
  471. package/StepNavAccordionContent/index.d.ts +0 -10
  472. package/StepNavAccordionContent/index.js +0 -15
  473. package/StepNavAccordionHeadingText/index.d.ts +0 -22
  474. package/StepNavAccordionHeadingText/index.js +0 -19
  475. package/StepNavAccordionHeadingTitle/index.d.ts +0 -11
  476. package/StepNavAccordionHeadingTitle/index.js +0 -15
  477. package/StepNavAccordionSummary/index.d.ts +0 -9
  478. package/StepNavAccordionSummary/index.js +0 -16
  479. package/StepNavAccordionSummaryHeading/index.d.ts +0 -27
  480. package/StepNavAccordionSummaryHeading/index.js +0 -30
  481. package/StepNavCircleNumber/index.d.ts +0 -19
  482. package/StepNavCircleNumber/index.js +0 -20
  483. package/StepNavControls/index.d.ts +0 -10
  484. package/StepNavControls/index.js +0 -15
  485. package/StepNavList/index.d.ts +0 -10
  486. package/StepNavList/index.js +0 -15
  487. package/StepNavListItem/index.d.ts +0 -9
  488. package/StepNavListItem/index.js +0 -15
  489. package/SummaryList/index.d.ts +0 -36
  490. package/SummaryList/index.js +0 -18
  491. package/SummaryListItem/index.d.ts +0 -19
  492. package/SummaryListItem/index.js +0 -16
  493. package/SummaryListItemAction/index.d.ts +0 -10
  494. package/SummaryListItemAction/index.js +0 -15
  495. package/SummaryListItemKey/index.d.ts +0 -38
  496. package/SummaryListItemKey/index.js +0 -20
  497. package/SummaryListItemValue/index.d.ts +0 -23
  498. package/SummaryListItemValue/index.js +0 -17
  499. package/Table/index.d.ts +0 -62
  500. package/Table/index.js +0 -25
  501. package/TableBody/index.d.ts +0 -18
  502. package/TableBody/index.js +0 -17
  503. package/TableCaption/index.d.ts +0 -20
  504. package/TableCaption/index.js +0 -16
  505. package/TableContainer/index.d.ts +0 -16
  506. package/TableContainer/index.js +0 -16
  507. package/TableDataCell/index.d.ts +0 -40
  508. package/TableDataCell/index.js +0 -22
  509. package/TableHead/index.d.ts +0 -9
  510. package/TableHead/index.js +0 -15
  511. package/TableHeadCell/index.d.ts +0 -30
  512. package/TableHeadCell/index.js +0 -22
  513. package/TableLoaderBackground/index.d.ts +0 -10
  514. package/TableLoaderBackground/index.js +0 -15
  515. package/TableNoDataRow/index.d.ts +0 -10
  516. package/TableNoDataRow/index.js +0 -19
  517. package/TableRow/index.d.ts +0 -25
  518. package/TableRow/index.js +0 -17
  519. package/TableSortIconContainer/index.d.ts +0 -11
  520. package/TableSortIconContainer/index.js +0 -15
  521. package/Tabs/index.d.ts +0 -17
  522. package/Tabs/index.js +0 -16
  523. package/TabsHeading/index.d.ts +0 -18
  524. package/TabsHeading/index.js +0 -14
  525. package/TabsList/index.d.ts +0 -10
  526. package/TabsList/index.js +0 -16
  527. package/TabsListItemBase/index.d.ts +0 -17
  528. package/TabsListItemBase/index.js +0 -23
  529. package/TabsPanelBase/index.d.ts +0 -18
  530. package/TabsPanelBase/index.js +0 -18
  531. package/TaskList/index.d.ts +0 -17
  532. package/TaskList/index.js +0 -16
  533. package/TaskListItem/index.d.ts +0 -9
  534. package/TaskListItem/index.js +0 -15
  535. package/TaskListItemContent/index.d.ts +0 -10
  536. package/TaskListItemContent/index.js +0 -15
  537. package/TaskListItemHeading/index.d.ts +0 -10
  538. package/TaskListItemHeading/index.js +0 -12
  539. package/TaskListItemTag/index.d.ts +0 -16
  540. package/TaskListItemTag/index.js +0 -16
  541. package/TextArea/index.d.ts +0 -2
  542. package/TextArea/index.js +0 -3
  543. package/TextArea/index.native.d.ts +0 -2
  544. package/TextArea/index.native.js +0 -12
  545. package/TextArea/index.web.d.ts +0 -24
  546. package/TextArea/index.web.js +0 -20
  547. package/TextInput/index.d.ts +0 -2
  548. package/TextInput/index.js +0 -3
  549. package/TextInput/index.native.d.ts +0 -2
  550. package/TextInput/index.native.js +0 -13
  551. package/TextInput/index.web.d.ts +0 -46
  552. package/TextInput/index.web.js +0 -24
  553. package/Timeline/index.d.ts +0 -17
  554. package/Timeline/index.js +0 -16
  555. package/TimelineActions/index.d.ts +0 -11
  556. package/TimelineActions/index.js +0 -15
  557. package/TimelineContent/index.d.ts +0 -10
  558. package/TimelineContent/index.js +0 -15
  559. package/TimelineHeading/index.d.ts +0 -25
  560. package/TimelineHeading/index.js +0 -30
  561. package/TimelineItem/index.d.ts +0 -9
  562. package/TimelineItem/index.js +0 -15
  563. package/Top/index.d.ts +0 -9
  564. package/Top/index.js +0 -15
  565. package/Typography/index.d.ts +0 -30
  566. package/Typography/index.js +0 -16
  567. package/Unpurge/index.d.ts +0 -3
  568. package/Unpurge/index.js +0 -3163
  569. package/VisuallyHidden/index.d.ts +0 -10
  570. package/VisuallyHidden/index.js +0 -15
  571. package/WarningText/index.d.ts +0 -31
  572. package/WarningText/index.js +0 -28
  573. package/WarningTextAssistive/index.d.ts +0 -15
  574. package/WarningTextAssistive/index.js +0 -15
  575. package/index.d.ts +0 -218
  576. package/index.js +0 -222
  577. package/lazy.d.ts +0 -246
  578. package/lazy.js +0 -733
  579. package/registry.d.ts +0 -267
  580. package/registry.js +0 -540
  581. package/src/lazy.ts +0 -246
  582. package/src/registry.ts +0 -549
  583. package/utils/index.native.d.ts +0 -43
  584. package/utils/index.native.js +0 -46
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { CheckboxInputProps } from './CheckboxInput.native.js';
3
- import { RadioInputProps } from './RadioInput.native.js';
4
- import { StringInputProps } from './StringInput.native.js';
5
- type InputProps = RadioInputProps | CheckboxInputProps | StringInputProps;
6
- export declare const BaseInput: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
7
- export default BaseInput;
@@ -1,25 +0,0 @@
1
- import react from "react";
2
- import CheckboxInput_native from "./CheckboxInput.native.js";
3
- import RadioInput_native from "./RadioInput.native.js";
4
- import { StringInput } from "./StringInput.native.js";
5
- const index_native_BaseInput = /*#__PURE__*/ react.forwardRef(function(props, ref) {
6
- switch(props.type){
7
- case 'radio':
8
- return /*#__PURE__*/ react.createElement(RadioInput_native, {
9
- ref: ref,
10
- ...props
11
- });
12
- case 'checkbox':
13
- return /*#__PURE__*/ react.createElement(CheckboxInput_native, {
14
- ref: ref,
15
- ...props
16
- });
17
- default:
18
- return /*#__PURE__*/ react.createElement(StringInput, {
19
- ref: ref,
20
- ...props
21
- });
22
- }
23
- });
24
- const index_native = index_native_BaseInput;
25
- export { index_native_BaseInput as BaseInput, index_native as default };
@@ -1,5 +0,0 @@
1
- import React, { ButtonHTMLAttributes, DetailedHTMLProps } from 'react';
2
- export type ButtonProps = Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, 'ref'>;
3
- export declare const FormButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<unknown>>;
4
- export declare const CompatButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<unknown>>;
5
- export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<unknown>>;
@@ -1,36 +0,0 @@
1
- import react, { useContext } from "react";
2
- import { Pressable } from "react-native";
3
- import { FormContext } from "@digigov/form/FormContext";
4
- const button_native_FormButton = /*#__PURE__*/ react.forwardRef(function({ onClick, ...props }, ref) {
5
- const formContext = useContext(FormContext);
6
- return /*#__PURE__*/ react.createElement(button_native_CompatButton, {
7
- ref: ref,
8
- ...props,
9
- onClick: ()=>{
10
- if (onClick) onClick({});
11
- if (props.type) formContext?.[props.type]();
12
- }
13
- });
14
- });
15
- const button_native_CompatButton = /*#__PURE__*/ react.forwardRef(function({ onClick, ...props }, ref) {
16
- return /*#__PURE__*/ react.createElement(Pressable, {
17
- onPress: onClick,
18
- ref: ref,
19
- hitSlop: 10,
20
- ...props
21
- });
22
- });
23
- const button_native_Button = /*#__PURE__*/ react.forwardRef(function(props, ref) {
24
- if (props.type && [
25
- 'submit',
26
- 'reset'
27
- ].includes(props.type)) return /*#__PURE__*/ react.createElement(button_native_FormButton, {
28
- ref: ref,
29
- ...props
30
- });
31
- return /*#__PURE__*/ react.createElement(button_native_CompatButton, {
32
- ref: ref,
33
- ...props
34
- });
35
- });
36
- export { button_native_Button as Button, button_native_CompatButton as CompatButton, button_native_FormButton as FormButton };
@@ -1,9 +0,0 @@
1
- import React, { DetailedHTMLProps, DetailsHTMLAttributes } from 'react';
2
- type HTMLElementProps = Omit<DetailedHTMLProps<DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>, 'ref'> & {
3
- closeIcon?: string;
4
- openIcon?: string;
5
- iconClassName?: string;
6
- placement?: 'before' | 'after';
7
- };
8
- declare const CompatDetails: ({ children, open, placement, closeIcon, openIcon, iconClassName, ...props }: HTMLElementProps) => React.JSX.Element;
9
- export default CompatDetails;
@@ -1,29 +0,0 @@
1
- import react, { Children, useEffect, useState } from "react";
2
- import { StyleSheet, Text, TouchableOpacity, View } from "react-native";
3
- const CompatDetails = ({ children, open = false, placement, closeIcon, openIcon, iconClassName, ...props })=>{
4
- const [isExpanded, setIsExpanded] = useState(open);
5
- useEffect(()=>{
6
- setIsExpanded(open);
7
- }, [
8
- open
9
- ]);
10
- const toggleExpand = ()=>{
11
- setIsExpanded(!isExpanded);
12
- };
13
- const [summaryContent, ...detailsContent] = Children.toArray(children);
14
- const toggleIcon = closeIcon && openIcon ? /*#__PURE__*/ react.createElement(Text, {
15
- className: iconClassName
16
- }, isExpanded ? openIcon : closeIcon) : null;
17
- return /*#__PURE__*/ react.createElement(View, props, /*#__PURE__*/ react.createElement(TouchableOpacity, {
18
- onPress: toggleExpand,
19
- style: styles.summaryContainer
20
- }, 'before' === placement && toggleIcon, summaryContent, 'after' === placement && toggleIcon), isExpanded && /*#__PURE__*/ react.createElement(View, null, detailsContent));
21
- };
22
- const styles = StyleSheet.create({
23
- summaryContainer: {
24
- flexDirection: 'row',
25
- alignItems: 'center'
26
- }
27
- });
28
- const details_native = CompatDetails;
29
- export { details_native as default };
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- type LiProps = Record<string, any>;
3
- export declare const Li: (props: LiProps) => React.JSX.Element;
4
- export {};
@@ -1,4 +0,0 @@
1
- import react from "react";
2
- import { View } from "react-native";
3
- const Li = (props)=>/*#__PURE__*/ react.createElement(View, props);
4
- export { Li };
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export declare const Ol: ({ children, className, ...props }: {
3
- [x: string]: any;
4
- children: any;
5
- className: any;
6
- }) => React.JSX.Element;
@@ -1,24 +0,0 @@
1
- import react from "react";
2
- import { Text, View } from "react-native";
3
- const Ol = ({ children, className, ...props })=>{
4
- let listStyle = 'none';
5
- if (className.includes('ds-list--bullet')) listStyle = 'bullet';
6
- if (className.includes('ds-list--number')) listStyle = 'number';
7
- return /*#__PURE__*/ react.createElement(View, {
8
- ...props,
9
- className: className
10
- }, Array.isArray(children) ? children.map((child, index)=>{
11
- const counter = 'number' === listStyle ? index + 1 : 'bullet' === listStyle ? '•' : null;
12
- return /*#__PURE__*/ react.createElement(View, {
13
- key: index,
14
- style: {
15
- display: 'flex',
16
- flexDirection: 'row',
17
- flexWrap: 'nowrap',
18
- gap: 8,
19
- width: '100%'
20
- }
21
- }, /*#__PURE__*/ react.createElement(Text, null, counter), child);
22
- }) : children);
23
- };
24
- export { Ol };
package/Base/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './index.web.js';
2
- export { default as default } from './index.web.js';
package/Base/index.js DELETED
@@ -1,3 +0,0 @@
1
- import index_web from "./index.web.js";
2
- export * from "./index.web.js";
3
- export { index_web as default };
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { ViewProps } from 'react-native';
3
- import { BaseProps as CoreBaseProps } from './index.web.js';
4
- export type BaseProps<C extends React.ElementType> = CoreBaseProps<C> & ViewProps;
5
- export type BaseComponent = <C extends React.ElementType = 'span'>(props: BaseProps<C>) => React.ReactNode | null;
6
- export declare const Base: BaseComponent;
7
- export default Base;
@@ -1,111 +0,0 @@
1
- import react, { useMemo } from "react";
2
- import { Text, View } from "react-native";
3
- import { mapping } from "./mapping.native.js";
4
- import { basePropGenerator } from "./utils.js";
5
- import { wrap } from "./wrap.native.js";
6
- const BooleanMapper = {
7
- true: true,
8
- false: false,
9
- undefined: false,
10
- null: false,
11
- '': false
12
- };
13
- const textHtmlTags = [
14
- 'h1',
15
- 'h2',
16
- 'h3',
17
- 'h4',
18
- 'h5',
19
- 'p',
20
- 'span'
21
- ];
22
- const index_native_Base = /*#__PURE__*/ react.forwardRef(function({ as, display, children, margin, marginTop, marginBottom, marginLeft, marginRight, m, mt, mb, ml, mr, mx, my, padding, paddingTop, paddingBottom, paddingLeft, paddingRight, p, pt, pb, pr, pl, px, py, printHidden, printVisible, hidden, xsUpHidden, smUpHidden, mdUpHidden, lgUpHidden, xlUpHidden, xsHidden, smHidden, mdHidden, lgHidden, xlHidden, className, 'aria-expanded': ariaExpanded, ...props }, ref) {
23
- const classNames = className?.split(' ') || [];
24
- let applyBasePropsToWrapper = true;
25
- const basePropToClassName = basePropGenerator({
26
- display,
27
- margin,
28
- marginTop,
29
- marginBottom,
30
- marginLeft,
31
- marginRight,
32
- m,
33
- mt,
34
- mb,
35
- ml,
36
- mr,
37
- mx,
38
- my,
39
- padding,
40
- paddingTop,
41
- paddingBottom,
42
- paddingLeft,
43
- paddingRight,
44
- p,
45
- pt,
46
- pb,
47
- pr,
48
- pl,
49
- px,
50
- py,
51
- printHidden,
52
- printVisible,
53
- hidden,
54
- xsUpHidden,
55
- smUpHidden,
56
- mdUpHidden,
57
- lgUpHidden,
58
- xlUpHidden,
59
- xsHidden,
60
- smHidden,
61
- mdHidden,
62
- lgHidden,
63
- xlHidden
64
- });
65
- if ('string' == typeof children) children = [
66
- children
67
- ];
68
- if (Array.isArray(children)) {
69
- const textClassNames = classNames?.map((className)=>`${className}__text`).join(' ');
70
- children = children.map((child, index)=>{
71
- if (Array.isArray(child)) return child.map((child, index)=>{
72
- if ('string' == typeof child) return /*#__PURE__*/ react.createElement(Text, {
73
- key: index,
74
- className: textClassNames
75
- }, child);
76
- return child;
77
- });
78
- if ('string' == typeof child) {
79
- if (as && textHtmlTags.includes(as)) applyBasePropsToWrapper = false;
80
- return /*#__PURE__*/ react.createElement(Text, {
81
- key: index,
82
- className: applyBasePropsToWrapper ? textClassNames : `${textClassNames} ${basePropToClassName}`,
83
- ...props.onClick && {
84
- onPress: props.onClick
85
- }
86
- }, child);
87
- }
88
- return child;
89
- });
90
- }
91
- const Component = useMemo(()=>{
92
- const C = mapping[as] || View;
93
- if (classNames.find((className)=>className.match(/__wrapper|__before|__after$/))) return wrap(C);
94
- return C;
95
- }, [
96
- className
97
- ]);
98
- Object.keys(props).forEach((k)=>{
99
- if (k.startsWith('aria')) {
100
- if (void 0 !== BooleanMapper[props[k]]) props[k] = BooleanMapper[props[k]];
101
- }
102
- });
103
- return /*#__PURE__*/ react.createElement(Component, {
104
- ...props,
105
- ref: ref,
106
- "aria-expanded": 'false' === ariaExpanded ? false : true === ariaExpanded ? true : void 0,
107
- className: applyBasePropsToWrapper ? `${basePropToClassName} ${className}` : className
108
- }, children);
109
- });
110
- const index_native = index_native_Base;
111
- export { index_native_Base as Base, index_native as default };
@@ -1,104 +0,0 @@
1
- import React from 'react';
2
- interface AsProp<C extends React.ElementType> {
3
- as?: C | React.ElementType<any>;
4
- }
5
- type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
6
- type PolymorphicComponentProp<C extends React.ElementType, Props = Record<string, unknown>> = React.PropsWithChildren<Props & AsProp<C>> & Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
7
- type PolymorphicComponentPropWithRef<C extends React.ElementType, Props = Record<string, unknown>> = PolymorphicComponentProp<C, Props> & {
8
- ref?: any;
9
- };
10
- /**
11
- * This is the updated component props using PolymorphicComponentPropWithRef
12
- */
13
- export type BaseProps<C extends React.ElementType> = PolymorphicComponentPropWithRef<C, {
14
- /** margin is optional. It has not a default value. */
15
- margin?: SpacingValues | SpacingMediaValues;
16
- /** marginTop is optional. It has not a default value. */
17
- marginTop?: SpacingValues | SpacingMediaValues;
18
- /** marginBottom is optional. It has not a default value. */
19
- marginBottom?: SpacingValues | SpacingMediaValues;
20
- /** marginLeft is optional. It has not a default value. */
21
- marginLeft?: SpacingValues | SpacingMediaValues;
22
- /** marginRight is optional. It has not a default value. */
23
- marginRight?: SpacingValues | SpacingMediaValues;
24
- /** Alternative for margin. Margin is optional. It has not a default value. */
25
- m?: SpacingValues | SpacingMediaValues;
26
- /** Alternative for marginTop. MarginTop is optional. It has not a default value. */
27
- mt?: SpacingValues | SpacingMediaValues;
28
- /** Alternative for marginBottom. MarginBottom is optional. It has not a default value. */
29
- mb?: SpacingValues | SpacingMediaValues;
30
- /** Alternative for marginLeft. MarginLeft is optional. It has not a default value. */
31
- ml?: SpacingValues | SpacingMediaValues;
32
- /** Alternative for marginRight. MarginRight is optional. It has not a default value. */
33
- mr?: SpacingValues | SpacingMediaValues;
34
- /** Alternative for marginX. MarginX is optional. It has not a default value. */
35
- mx?: SpacingValues | SpacingMediaValues;
36
- /** Alternative for marginY. MarginY is optional. It has not a default value. */
37
- my?: SpacingValues | SpacingMediaValues;
38
- /** padding is optional. It has not a default value. */
39
- padding?: SpacingValues | SpacingMediaValues;
40
- /** paddingTop is optional. It has not a default value. */
41
- paddingTop?: SpacingValues | SpacingMediaValues;
42
- /** paddingBottom is optional. It has not a default value. */
43
- paddingBottom?: SpacingValues | SpacingMediaValues;
44
- /** paddingLeft is optional. It has not a default value. */
45
- paddingLeft?: SpacingValues | SpacingMediaValues;
46
- /** paddingRight is optional. It has not a default value. */
47
- paddingRight?: SpacingValues | SpacingMediaValues;
48
- /** Alternative for padding. Padding is optional. It has not a default value. */
49
- p?: SpacingValues | SpacingMediaValues;
50
- /** Alternative for paddingTop. PaddingTop is optional. It has not a default value. */
51
- pt?: SpacingValues | SpacingMediaValues;
52
- /** Alternative for paddingBottom. PaddingBottom is optional. It has not a default value. */
53
- pb?: SpacingValues | SpacingMediaValues;
54
- /** Alternative for paddingLeft. PaddingLeft is optional. It has not a default value. */
55
- pl?: SpacingValues | SpacingMediaValues;
56
- /** Alternative for paddingRight. PaddingRight is optional. It has not a default value. */
57
- pr?: SpacingValues | SpacingMediaValues;
58
- /** Alternative for paddingX. PaddingX is optional. It has not a default value. */
59
- px?: SpacingValues | SpacingMediaValues;
60
- /** Alternative for paddingY. PaddingY is optional. It has not a default value. */
61
- py?: SpacingValues | SpacingMediaValues;
62
- /** printHidden is optional. Default value is false. When true, the component is hidden at print. */
63
- printHidden?: boolean;
64
- /** printVisible is optional. When block, the component is displayed as block. When inline, the component is displayed as inline.*/
65
- printVisible?: 'block' | 'inline';
66
- /** Components will be hidden at all screen sizes. */
67
- hidden?: boolean;
68
- /** Components will be hidden from 'xs' screen size and up. */
69
- xsUpHidden?: boolean;
70
- /** Components will be hidden from 'sm' screen size and up. */
71
- smUpHidden?: boolean;
72
- /** Components will be hidden from 'md' screen size and up. */
73
- mdUpHidden?: boolean;
74
- /** Components will be hidden from 'lg' screen size and up. */
75
- lgUpHidden?: boolean;
76
- /** Components will be hidden from 'xl' screen size and up. */
77
- xlUpHidden?: boolean;
78
- /** Components will be hidden between xs and sm screen size. */
79
- xsHidden?: boolean;
80
- /** Components will be hidden between sm and md screen size. */
81
- smHidden?: boolean;
82
- /** Components will be hidden between md and lg screen size. */
83
- mdHidden?: boolean;
84
- /** Components will be hidden between lg and xl screen size. */
85
- lgHidden?: boolean;
86
- /** Components will be hidden between xl and 2xl screen size. */
87
- xlHidden?: boolean;
88
- /** display is optional. It has not a default value. */
89
- display?: 'flex' | 'block' | 'none';
90
- }>;
91
- export type SpacingValues = 0 | 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | 64 | 72 | 80 | 96;
92
- export interface SpacingMediaValues {
93
- xs?: SpacingValues;
94
- sm?: SpacingValues;
95
- md?: SpacingValues;
96
- lg?: SpacingValues;
97
- xl?: SpacingValues;
98
- }
99
- /**
100
- * This is the type used in the type annotation for the component
101
- */
102
- type BaseComponent = <C extends React.ElementType = 'span'>(props: BaseProps<C>) => React.ReactNode | null;
103
- export declare const Base: BaseComponent;
104
- export default Base;
package/Base/index.web.js DELETED
@@ -1,53 +0,0 @@
1
- import react from "react";
2
- import clsx from "clsx";
3
- import { basePropGenerator } from "./utils.js";
4
- const index_web_Base = /*#__PURE__*/ react.forwardRef(function({ as, display, margin, marginTop, marginBottom, marginLeft, marginRight, m, mt, mb, ml, mr, mx, my, padding, paddingTop, paddingBottom, paddingLeft, paddingRight, p, pt, pb, pr, pl, px, py, printHidden, printVisible, hidden, xsUpHidden, smUpHidden, mdUpHidden, lgUpHidden, xlUpHidden, xsHidden, smHidden, mdHidden, lgHidden, xlHidden, children, className, ...props }, ref) {
5
- const Component = as || 'span';
6
- const basePropToClassName = basePropGenerator({
7
- display,
8
- margin,
9
- marginTop,
10
- marginBottom,
11
- marginLeft,
12
- marginRight,
13
- m,
14
- mt,
15
- mb,
16
- ml,
17
- mr,
18
- mx,
19
- my,
20
- padding,
21
- paddingTop,
22
- paddingBottom,
23
- paddingLeft,
24
- paddingRight,
25
- p,
26
- pt,
27
- pb,
28
- pr,
29
- pl,
30
- px,
31
- py,
32
- printHidden,
33
- printVisible,
34
- hidden,
35
- xsUpHidden,
36
- smUpHidden,
37
- mdUpHidden,
38
- lgUpHidden,
39
- xlUpHidden,
40
- xsHidden,
41
- smHidden,
42
- mdHidden,
43
- lgHidden,
44
- xlHidden
45
- });
46
- return /*#__PURE__*/ react.createElement(Component, {
47
- className: clsx(basePropToClassName, className),
48
- ref: ref,
49
- ...props
50
- }, children);
51
- });
52
- const index_web = index_web_Base;
53
- export { index_web_Base as Base, index_web as default };
@@ -1,6 +0,0 @@
1
- import React, { type JSX } from 'react';
2
- export type MapProps<T extends keyof JSX.IntrinsicElements> = React.ComponentPropsWithoutRef<T>;
3
- export type MappingType = {
4
- [K in keyof JSX.IntrinsicElements]?: (props: any) => JSX.Element | React.ReactNode;
5
- };
6
- export declare const mapping: MappingType;
@@ -1,36 +0,0 @@
1
- import react from "react";
2
- import { Link } from "expo-router";
3
- import { cssInterop } from "nativewind";
4
- import { Image, View } from "react-native";
5
- import react_native_svg, { Circle, G, Path, Polygon, Rect } from "react-native-svg";
6
- import { Button } from "./compat/button.native.js";
7
- import details_native from "./compat/details.native.js";
8
- import index_native from "./compat/Input/index.native.js";
9
- import { Ol } from "./compat/ol.native.js";
10
- const mapping = {
11
- a: ({ children, ...props })=>/*#__PURE__*/ react.createElement(Link, {
12
- ...props,
13
- asChild: true
14
- }, /*#__PURE__*/ react.createElement(View, null, children)),
15
- img: (props)=>/*#__PURE__*/ react.createElement(Image, props),
16
- button: Button,
17
- input: index_native,
18
- textarea: index_native,
19
- details: details_native,
20
- ol: Ol,
21
- path: (props)=>/*#__PURE__*/ react.createElement(Path, props),
22
- svg: cssInterop(react_native_svg, {
23
- className: {
24
- target: 'style',
25
- nativeStyleToProp: {
26
- width: true,
27
- height: true
28
- }
29
- }
30
- }),
31
- rect: (props)=>/*#__PURE__*/ react.createElement(Rect, props),
32
- circle: (props)=>/*#__PURE__*/ react.createElement(Circle, props),
33
- g: (props)=>/*#__PURE__*/ react.createElement(G, props),
34
- polygon: (props)=>/*#__PURE__*/ react.createElement(Polygon, props)
35
- };
36
- export { mapping };
package/Base/utils.d.ts DELETED
@@ -1,40 +0,0 @@
1
- export declare const basePropGenerator: ({ display, margin, marginTop, marginBottom, marginLeft, marginRight, m, mt, mb, ml, mr, mx, my, padding, paddingTop, paddingBottom, paddingLeft, paddingRight, p, pt, pb, pr, pl, px, py, printHidden, printVisible, hidden, xsUpHidden, smUpHidden, mdUpHidden, lgUpHidden, xlUpHidden, xsHidden, smHidden, mdHidden, lgHidden, xlHidden, }: {
2
- display: any;
3
- margin: any;
4
- marginTop: any;
5
- marginBottom: any;
6
- marginLeft: any;
7
- marginRight: any;
8
- m: any;
9
- mt: any;
10
- mb: any;
11
- ml: any;
12
- mr: any;
13
- mx: any;
14
- my: any;
15
- padding: any;
16
- paddingTop: any;
17
- paddingBottom: any;
18
- paddingLeft: any;
19
- paddingRight: any;
20
- p: any;
21
- pt: any;
22
- pb: any;
23
- pr: any;
24
- pl: any;
25
- px: any;
26
- py: any;
27
- printHidden: any;
28
- printVisible: any;
29
- hidden: any;
30
- xsUpHidden: any;
31
- smUpHidden: any;
32
- mdUpHidden: any;
33
- lgUpHidden: any;
34
- xlUpHidden: any;
35
- xsHidden: any;
36
- smHidden: any;
37
- mdHidden: any;
38
- lgHidden: any;
39
- xlHidden: any;
40
- }) => string;
package/Base/utils.js DELETED
@@ -1,46 +0,0 @@
1
- import clsx from "clsx";
2
- const generateSpacingClasses = (prefix, spacing)=>{
3
- if ('object' == typeof spacing) return {
4
- [`${prefix}-xs-${spacing?.xs}`]: spacing?.xs !== void 0,
5
- [`${prefix}-sm-${spacing?.sm}`]: spacing?.sm !== void 0,
6
- [`${prefix}-md-${spacing?.md}`]: spacing?.md !== void 0,
7
- [`${prefix}-lg-${spacing?.lg}`]: spacing?.lg !== void 0,
8
- [`${prefix}-xl-${spacing?.xl}`]: spacing?.xl !== void 0
9
- };
10
- if (void 0 !== spacing) return {
11
- [`${prefix}-${spacing}`]: true
12
- };
13
- return {};
14
- };
15
- const basePropGenerator = ({ display, margin, marginTop, marginBottom, marginLeft, marginRight, m, mt, mb, ml, mr, mx, my, padding, paddingTop, paddingBottom, paddingLeft, paddingRight, p, pt, pb, pr, pl, px, py, printHidden, printVisible, hidden, xsUpHidden, smUpHidden, mdUpHidden, lgUpHidden, xlUpHidden, xsHidden, smHidden, mdHidden, lgHidden, xlHidden })=>clsx({
16
- [`ds-display-${display}`]: void 0 !== display,
17
- ...generateSpacingClasses('ds-m', m ?? margin),
18
- ...generateSpacingClasses('ds-mt', mt ?? marginTop),
19
- ...generateSpacingClasses('ds-mb', mb ?? marginBottom),
20
- ...generateSpacingClasses('ds-mr', mr ?? marginRight),
21
- ...generateSpacingClasses('ds-ml', ml ?? marginLeft),
22
- ...generateSpacingClasses('ds-mx', mx),
23
- ...generateSpacingClasses('ds-my', my),
24
- ...generateSpacingClasses('ds-p', p ?? padding),
25
- ...generateSpacingClasses('ds-pt', pt ?? paddingTop),
26
- ...generateSpacingClasses('ds-pb', pb ?? paddingBottom),
27
- ...generateSpacingClasses('ds-pr', pr ?? paddingRight),
28
- ...generateSpacingClasses('ds-pl', pl ?? paddingLeft),
29
- ...generateSpacingClasses('ds-px', px),
30
- ...generateSpacingClasses('ds-py', py),
31
- 'ds-print-hidden': !!printHidden,
32
- 'ds-print-visible-block': 'block' === printVisible,
33
- 'ds-print-visible-inline': 'inline' === printVisible,
34
- 'ds-hidden': !!hidden,
35
- 'ds-hidden-xs-up': !!xsUpHidden,
36
- 'ds-hidden-sm-up': !!smUpHidden,
37
- 'ds-hidden-md-up': !!mdUpHidden,
38
- 'ds-hidden-lg-up': !!lgUpHidden,
39
- 'ds-hidden-xl-up': !!xlUpHidden,
40
- 'ds-hidden-xs': !!xsHidden,
41
- 'ds-hidden-sm': !!smHidden,
42
- 'ds-hidden-md': !!mdHidden,
43
- 'ds-hidden-lg': !!lgHidden,
44
- 'ds-hidden-xl': !!xlHidden
45
- });
46
- export { basePropGenerator };
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const wrap: (Component: React.ElementType) => React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
@@ -1,67 +0,0 @@
1
- import react, { useContext, useMemo, useState } from "react";
2
- import { View } from "react-native";
3
- const WrapperContext = /*#__PURE__*/ react.createContext((cls)=>cls);
4
- const wrap_native_Wrapper = /*#__PURE__*/ react.memo(function({ children }) {
5
- const [className, setClassName] = useState('');
6
- return /*#__PURE__*/ react.createElement(WrapperContext.Provider, {
7
- value: setClassName
8
- }, /*#__PURE__*/ react.createElement(View, {
9
- className: className,
10
- focusable: false
11
- }, children));
12
- });
13
- wrap_native_Wrapper.displayName = 'Wrapper';
14
- const wrap = (Component)=>{
15
- const WrappedComponent = /*#__PURE__*/ react.forwardRef(function({ className, onBlur, onFocus, ...props }, ref) {
16
- const setClassName = useContext(WrapperContext);
17
- const wrapperClassNames = [];
18
- const beforeClassNames = [];
19
- const afterClassNames = [];
20
- const focusedWrapperClassNames = [];
21
- const classNames = useMemo(()=>(className?.split(' ') || []).filter((cls)=>{
22
- if (cls.endsWith('__wrapper')) {
23
- wrapperClassNames.push(cls);
24
- focusedWrapperClassNames.push(`${cls}--focus`);
25
- return false;
26
- }
27
- if (cls.endsWith('__before')) {
28
- beforeClassNames.push(cls);
29
- return false;
30
- }
31
- if (cls.endsWith('__after')) {
32
- afterClassNames.push(cls);
33
- return false;
34
- }
35
- return true;
36
- }), [
37
- className
38
- ]);
39
- return /*#__PURE__*/ react.createElement(react.Fragment, null, beforeClassNames.length ? /*#__PURE__*/ react.createElement(View, {
40
- focusable: false,
41
- className: beforeClassNames.join(' ')
42
- }) : '', /*#__PURE__*/ react.createElement(Component, {
43
- ref: ref,
44
- onFocus: (e)=>{
45
- setClassName(focusedWrapperClassNames.join(' '));
46
- if (onFocus) onFocus(e);
47
- },
48
- onBlur: (e)=>{
49
- setClassName(wrapperClassNames.join(' '));
50
- if (onBlur) onBlur(e);
51
- },
52
- className: classNames.join(' '),
53
- ...props
54
- }), afterClassNames.length ? /*#__PURE__*/ react.createElement(View, {
55
- focusable: false,
56
- className: afterClassNames.join(' ')
57
- }) : '');
58
- });
59
- return /*#__PURE__*/ react.forwardRef(function(props, ref) {
60
- const children = useMemo(()=>/*#__PURE__*/ react.createElement(WrappedComponent, {
61
- ...props,
62
- ref: ref
63
- }), []);
64
- return /*#__PURE__*/ react.createElement(wrap_native_Wrapper, null, children);
65
- });
66
- };
67
- export { wrap };