@trilogy-ds/react 0.0.4-esm-cjs → 0.0.5-esm-cjs
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.
- package/lib/chunk-2OE7G5OJ.mjs +53 -0
- package/lib/chunk-335L7EYV.mjs +10 -0
- package/lib/chunk-37YIEOM4.mjs +29 -0
- package/lib/chunk-46S5IHY3.mjs +35 -0
- package/lib/chunk-4AFVHEEG.mjs +40 -0
- package/lib/chunk-4GNYZYN7.mjs +38 -0
- package/lib/chunk-4KHZNPVQ.mjs +52 -0
- package/lib/chunk-54SFK3TI.mjs +193 -0
- package/lib/chunk-57VCQATF.mjs +102 -0
- package/lib/chunk-5OTVJFHA.mjs +70 -0
- package/lib/chunk-5VIOTCFL.mjs +83 -0
- package/lib/chunk-62VEIR6I.mjs +29 -0
- package/lib/chunk-6AMFW4DS.mjs +45 -0
- package/lib/chunk-6M5XYGBG.mjs +24 -0
- package/lib/chunk-6RM6FMD6.mjs +21 -0
- package/lib/chunk-76SS7W2D.mjs +10 -0
- package/lib/chunk-7I7J2O6V.mjs +10 -0
- package/lib/chunk-7TZ7XBAY.mjs +161 -0
- package/lib/chunk-AKUHXWCA.mjs +83 -0
- package/lib/chunk-ARTM6CXK.mjs +71 -0
- package/lib/chunk-BOTIPJSJ.mjs +85 -0
- package/lib/chunk-BYXISJ7R.mjs +130 -0
- package/lib/chunk-C7O3M64Q.mjs +21 -0
- package/lib/chunk-CA7IS3KQ.mjs +41 -0
- package/lib/chunk-CB3VUMQQ.mjs +19 -0
- package/lib/chunk-CDJXPVNU.mjs +113 -0
- package/lib/chunk-DNNL5IQP.mjs +58 -0
- package/lib/chunk-DSGVDK4W.mjs +37 -0
- package/lib/chunk-DT2ZRQCQ.mjs +10 -0
- package/lib/chunk-EC2STRYK.mjs +47 -0
- package/lib/chunk-ENM6JUDU.mjs +10 -0
- package/lib/chunk-ENRRADYB.mjs +22 -0
- package/lib/chunk-FDTDGN3Z.mjs +180 -0
- package/lib/chunk-FI7J3PI4.mjs +10 -0
- package/lib/chunk-FJ6FV33O.mjs +142 -0
- package/lib/chunk-FQP3ZRCY.mjs +43 -0
- package/lib/chunk-FYXJOPZE.mjs +10 -0
- package/lib/chunk-GCCNG7UD.mjs +93 -0
- package/lib/chunk-H33LFANI.mjs +44 -0
- package/lib/chunk-H5R6E2LL.mjs +10 -0
- package/lib/chunk-HIHM7CKA.mjs +45 -0
- package/lib/chunk-HSZCMSKX.mjs +54 -0
- package/lib/chunk-HZFI5DOC.mjs +10 -0
- package/lib/chunk-I5CMWKXM.mjs +10 -0
- package/lib/chunk-I64YDCDJ.mjs +26 -0
- package/lib/chunk-I6D4M6YJ.mjs +26 -0
- package/lib/chunk-IPO67UCE.mjs +91 -0
- package/lib/chunk-IVWW2ONM.mjs +34 -0
- package/lib/chunk-J6FOMIYL.mjs +38 -0
- package/lib/chunk-JHATQ222.mjs +10 -0
- package/lib/chunk-JNZCOWOT.mjs +45 -0
- package/lib/chunk-JSYFG53P.mjs +53 -0
- package/lib/chunk-KB646OBS.mjs +43 -0
- package/lib/chunk-KCR5OXW7.mjs +37 -0
- package/lib/chunk-KE6TZ564.mjs +66 -0
- package/lib/chunk-KLD67WVI.mjs +6 -0
- package/lib/chunk-KWQHZ3AX.mjs +51 -0
- package/lib/chunk-KZBJENQE.mjs +10 -0
- package/lib/chunk-L57OFPTQ.mjs +0 -0
- package/lib/chunk-LHGRXMTD.mjs +71 -0
- package/lib/chunk-LKRCOARV.mjs +10 -0
- package/lib/chunk-LTEPTCKO.mjs +0 -0
- package/lib/chunk-LXERI22G.mjs +10 -0
- package/lib/chunk-M3G5NNL6.mjs +38 -0
- package/lib/chunk-M3ZW34AK.mjs +146 -0
- package/lib/chunk-MIIK56FU.mjs +10 -0
- package/lib/chunk-MRE6UV7B.mjs +52 -0
- package/lib/chunk-MSO5PCRF.mjs +0 -0
- package/lib/chunk-MUFBFVMR.mjs +41 -0
- package/lib/chunk-NAPM7RV5.mjs +84 -0
- package/lib/chunk-NJUQR6X4.mjs +30 -0
- package/lib/chunk-NK4DG2O7.mjs +0 -0
- package/lib/chunk-NYJUOLVG.mjs +70 -0
- package/lib/chunk-OAHEDO2N.mjs +0 -0
- package/lib/chunk-OJAMAX3C.mjs +51 -0
- package/lib/chunk-OQRDRRQA.mjs +40 -0
- package/lib/chunk-ORJCR36R.mjs +10 -0
- package/lib/chunk-OXJUG2AX.mjs +98 -0
- package/lib/chunk-P4EBSHOF.mjs +48 -0
- package/lib/chunk-PD7N2H7V.mjs +40 -0
- package/lib/chunk-PJ65KK7Q.mjs +148 -0
- package/lib/chunk-PMRIB2PF.mjs +34 -0
- package/lib/chunk-PVU242AQ.mjs +108 -0
- package/lib/chunk-PX4Q2LHV.mjs +57 -0
- package/lib/chunk-PX5CBRUB.mjs +44 -0
- package/lib/chunk-Q557K76X.mjs +27 -0
- package/lib/chunk-Q64SPJX7.mjs +42 -0
- package/lib/chunk-QOGGK45Y.mjs +30 -0
- package/lib/chunk-QQWGTWIX.mjs +35 -0
- package/lib/chunk-RABXMHNC.mjs +69 -0
- package/lib/chunk-RBI4L2HQ.mjs +0 -0
- package/lib/chunk-ROZMCO2Z.mjs +45 -0
- package/lib/chunk-RSO556TM.mjs +54 -0
- package/lib/chunk-RU4SBT2X.mjs +10 -0
- package/lib/chunk-RVL6YKLG.mjs +29 -0
- package/lib/chunk-S6XQJW3H.mjs +0 -0
- package/lib/chunk-SNNPZM3U.mjs +74 -0
- package/lib/chunk-SWJCAKAS.mjs +95 -0
- package/lib/chunk-TQW2WOQT.mjs +10 -0
- package/lib/chunk-TWYKX3VS.mjs +10 -0
- package/lib/chunk-TWYOQRTC.mjs +0 -0
- package/lib/chunk-TYWDLDZY.mjs +10 -0
- package/lib/chunk-U2EAQ6LG.mjs +51 -0
- package/lib/chunk-UN4YRMS6.mjs +86 -0
- package/lib/chunk-UPTZJ3CI.mjs +86 -0
- package/lib/chunk-UY62HIXG.mjs +0 -0
- package/lib/chunk-UYSIBOWG.mjs +0 -0
- package/lib/chunk-UZ2RV7UP.mjs +32 -0
- package/lib/chunk-UZGSZBCM.mjs +40 -0
- package/lib/chunk-V62SY5DS.mjs +10 -0
- package/lib/chunk-VDYCNTT4.mjs +45 -0
- package/lib/chunk-VG3NFIX3.mjs +0 -0
- package/lib/chunk-VKFXVSGY.mjs +0 -0
- package/lib/chunk-VZ3ZGWSU.mjs +1175 -0
- package/lib/chunk-W2QHSUSX.mjs +62 -0
- package/lib/chunk-WCM6IYWC.mjs +21 -0
- package/lib/chunk-WGGJ72CD.mjs +51 -0
- package/lib/chunk-WTDZ5TPD.mjs +32 -0
- package/lib/chunk-WTNLKNGA.mjs +24 -0
- package/lib/chunk-WTTAI2XM.mjs +96 -0
- package/lib/chunk-X4TKMQSB.mjs +133 -0
- package/lib/chunk-XBBQRJAM.mjs +10 -0
- package/lib/chunk-XFNNKJDV.mjs +0 -0
- package/lib/chunk-XIAYAUBE.mjs +0 -0
- package/lib/chunk-XTMU2OFV.mjs +55 -0
- package/lib/chunk-XWROA47B.mjs +10 -0
- package/lib/chunk-XWUKMXWZ.mjs +40 -0
- package/lib/chunk-YHEULX2P.mjs +10 -0
- package/lib/chunk-Z5BQ7KVY.mjs +0 -0
- package/lib/chunk-ZEPZOL74.mjs +250 -0
- package/lib/chunk-ZIO62QCN.mjs +0 -0
- package/lib/chunk-ZOEPNCFU.mjs +86 -0
- package/lib/chunk-ZT32FL2N.mjs +22 -0
- package/lib/chunk-ZVWNKG5A.mjs +29 -0
- package/lib/chunk-ZYSIB57V.mjs +10 -0
- package/lib/components/accordion/Accordion.js +19 -96
- package/lib/components/accordion/Accordion.mjs +2 -2
- package/lib/components/accordion/Accordion.native.js +19 -75
- package/lib/components/accordion/AccordionProps.js +2 -18
- package/lib/components/accordion/index.js +6 -204
- package/lib/components/accordion/index.mjs +5 -5
- package/lib/components/accordion/index.native.js +6 -0
- package/lib/components/accordion/item/AccordionItem.helper.mjs +1 -1
- package/lib/components/accordion/item/AccordionItem.js +36 -130
- package/lib/components/accordion/item/AccordionItem.mjs +2 -2
- package/lib/components/accordion/item/AccordionItem.native.js +130 -387
- package/lib/components/accordion/item/AccordionItemProps.js +2 -18
- package/lib/components/accordion/item/body/AccordionBody.js +20 -108
- package/lib/components/accordion/item/body/AccordionBody.mjs +2 -2
- package/lib/components/accordion/item/body/AccordionBody.native.js +15 -73
- package/lib/components/accordion/item/body/AccordionBodyProps.js +2 -18
- package/lib/components/accordion/item/body/AccordionBodyProps.mjs +1 -0
- package/lib/components/accordion/item/body/index.d.mts +1 -0
- package/lib/components/accordion/item/body/index.d.ts +1 -0
- package/lib/components/accordion/item/body/index.js +5 -31
- package/lib/components/accordion/item/body/index.mjs +3 -2
- package/lib/components/accordion/item/body/index.native.js +4 -0
- package/lib/components/accordion/item/header/AccordionHeader.js +18 -106
- package/lib/components/accordion/item/header/AccordionHeader.mjs +2 -2
- package/lib/components/accordion/item/header/AccordionHeader.native.js +19 -50
- package/lib/components/accordion/item/header/AccordionHeaderProps.js +2 -18
- package/lib/components/accordion/item/header/AccordionHeaderProps.mjs +1 -0
- package/lib/components/accordion/item/header/index.d.mts +1 -0
- package/lib/components/accordion/item/header/index.d.ts +1 -0
- package/lib/components/accordion/item/header/index.js +5 -31
- package/lib/components/accordion/item/header/index.mjs +3 -2
- package/lib/components/accordion/item/header/index.native.js +4 -0
- package/lib/components/accordion/item/index.js +7 -37
- package/lib/components/accordion/item/index.mjs +2 -2
- package/lib/components/accordion/item/index.native.js +3 -0
- package/lib/components/alert/Alert.js +134 -586
- package/lib/components/alert/Alert.mjs +10 -8
- package/lib/components/alert/Alert.native.js +140 -913
- package/lib/components/alert/AlertEnum.js +10 -38
- package/lib/components/alert/AlertEnum.mjs +1 -1
- package/lib/components/alert/AlertProps.js +11 -41
- package/lib/components/alert/AlertProps.mjs +1 -1
- package/lib/components/alert/context/ToasterContext.js +5 -39
- package/lib/components/alert/context/ToasterContext.mjs +1 -1
- package/lib/components/alert/context/ToasterContextProps.js +2 -18
- package/lib/components/alert/context/index.js +3 -44
- package/lib/components/alert/context/index.mjs +1 -1
- package/lib/components/alert/index.js +6 -625
- package/lib/components/alert/index.mjs +10 -8
- package/lib/components/alert/index.native.js +6 -0
- package/lib/components/autocomplete/AutoComplete.js +147 -1052
- package/lib/components/autocomplete/AutoComplete.mjs +20 -17
- package/lib/components/autocomplete/AutoComplete.native.js +90 -1201
- package/lib/components/autocomplete/AutoCompleteProps.js +2 -18
- package/lib/components/autocomplete/Autocomplete.helpers.js +13 -43
- package/lib/components/autocomplete/Autocomplete.helpers.mjs +1 -1
- package/lib/components/autocomplete/index.js +6 -1070
- package/lib/components/autocomplete/index.mjs +21 -18
- package/lib/components/autocomplete/index.native.js +6 -0
- package/lib/components/autocomplete/item/AutoCompleteIem.native.js +15 -195
- package/lib/components/autocomplete/item/AutoCompleteItem.js +18 -119
- package/lib/components/autocomplete/item/AutoCompleteItem.mjs +2 -2
- package/lib/components/autocomplete/item/AutoCompleteItemProps.js +2 -18
- package/lib/components/autocomplete/item/AutoCompleteItemProps.mjs +1 -0
- package/lib/components/autocomplete/item/index.d.mts +1 -0
- package/lib/components/autocomplete/item/index.d.ts +1 -0
- package/lib/components/autocomplete/item/index.js +4 -123
- package/lib/components/autocomplete/item/index.mjs +4 -3
- package/lib/components/autocomplete/item/index.native.js +4 -0
- package/lib/components/autocomplete/menu/AutoCompleteMenu.js +18 -118
- package/lib/components/autocomplete/menu/AutoCompleteMenu.mjs +2 -2
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js +27 -377
- package/lib/components/autocomplete/menu/AutoCompleteMenuProps.js +2 -18
- package/lib/components/autocomplete/menu/AutoCompleteMenuProps.mjs +1 -0
- package/lib/components/autocomplete/menu/index.d.mts +1 -0
- package/lib/components/autocomplete/menu/index.d.ts +1 -0
- package/lib/components/autocomplete/menu/index.js +4 -122
- package/lib/components/autocomplete/menu/index.mjs +4 -3
- package/lib/components/autocomplete/menu/index.native.js +4 -0
- package/lib/components/autocomplete/utils/debounce.js +15 -61
- package/lib/components/autocomplete/utils/debounce.mjs +2 -2
- package/lib/components/autocomplete/utils/index.js +2 -65
- package/lib/components/autocomplete/utils/index.mjs +2 -2
- package/lib/components/autolayout/AutoLayout.helpers.js +121 -360
- package/lib/components/autolayout/AutoLayout.helpers.mjs +108 -10
- package/lib/components/autolayout/AutoLayout.js +9 -39
- package/lib/components/autolayout/AutoLayout.mjs +1 -1
- package/lib/components/autolayout/AutoLayout.native.js +29 -424
- package/lib/components/autolayout/AutoLayoutProps.js +2 -18
- package/lib/components/autolayout/AutoLayoutWrapper.js +20 -54
- package/lib/components/autolayout/AutoLayoutWrapper.mjs +1 -1
- package/lib/components/autolayout/DefaultSpacingMatrix.js +40 -141
- package/lib/components/autolayout/DefaultSpacingMatrix.mjs +3 -9
- package/lib/components/autolayout/SpacingMatrix.js +12 -34
- package/lib/components/autolayout/SpacingMatrix.mjs +1 -1
- package/lib/components/autolayout/index.js +6 -168
- package/lib/components/autolayout/index.mjs +6 -12
- package/lib/components/autolayout/index.native.js +6 -0
- package/lib/components/autolayout/interface.js +2 -18
- package/lib/components/badge/Badge.js +54 -317
- package/lib/components/badge/Badge.mjs +4 -4
- package/lib/components/badge/Badge.native.js +109 -325
- package/lib/components/badge/BadgeEnum.js +11 -36
- package/lib/components/badge/BadgeEnum.mjs +10 -4
- package/lib/components/badge/BadgeProps.js +10 -38
- package/lib/components/badge/BadgeProps.mjs +1 -1
- package/lib/components/badge/index.js +4 -342
- package/lib/components/badge/index.mjs +6 -6
- package/lib/components/badge/index.native.js +4 -0
- package/lib/components/box/Box.js +45 -226
- package/lib/components/box/Box.mjs +2 -2
- package/lib/components/box/Box.native.js +108 -262
- package/lib/components/box/BoxProps.js +2 -18
- package/lib/components/box/content/BoxContent.js +27 -196
- package/lib/components/box/content/BoxContent.mjs +3 -3
- package/lib/components/box/content/BoxContent.native.js +29 -140
- package/lib/components/box/content/BoxContentProps.js +2 -18
- package/lib/components/box/content/index.js +3 -200
- package/lib/components/box/content/index.mjs +4 -4
- package/lib/components/box/content/index.native.js +3 -0
- package/lib/components/box/context/boxContext.js +3 -41
- package/lib/components/box/context/boxContext.mjs +5 -4
- package/lib/components/box/footer/BoxFooter.js +21 -186
- package/lib/components/box/footer/BoxFooter.mjs +3 -3
- package/lib/components/box/footer/BoxFooter.native.js +23 -255
- package/lib/components/box/footer/BoxFooterProps.js +2 -18
- package/lib/components/box/footer/index.js +3 -190
- package/lib/components/box/footer/index.mjs +4 -4
- package/lib/components/box/footer/index.native.js +3 -0
- package/lib/components/box/header/BoxHeader.js +30 -202
- package/lib/components/box/header/BoxHeader.mjs +3 -3
- package/lib/components/box/header/BoxHeader.native.js +51 -165
- package/lib/components/box/header/BoxHeaderProps.js +2 -18
- package/lib/components/box/header/index.js +3 -209
- package/lib/components/box/header/index.mjs +4 -4
- package/lib/components/box/header/index.native.js +3 -0
- package/lib/components/box/index.js +10 -430
- package/lib/components/box/index.mjs +17 -17
- package/lib/components/box/index.native.js +10 -0
- package/lib/components/box/item/BoxItem.js +18 -97
- package/lib/components/box/item/BoxItem.mjs +2 -2
- package/lib/components/box/item/BoxItem.native.js +23 -78
- package/lib/components/box/item/BoxItemEnum.js +13 -38
- package/lib/components/box/item/BoxItemEnum.mjs +1 -1
- package/lib/components/box/item/BoxItemProps.js +2 -18
- package/lib/components/box/item/index.js +4 -117
- package/lib/components/box/item/index.mjs +3 -3
- package/lib/components/box/item/index.native.js +4 -0
- package/lib/components/box/table-container/BoxTableContainer.js +18 -104
- package/lib/components/box/table-container/BoxTableContainer.mjs +2 -2
- package/lib/components/box/table-container/BoxTableContainer.native.js +15 -73
- package/lib/components/box/table-container/BoxTableContainerProps.js +2 -18
- package/lib/components/box/table-container/index.js +3 -108
- package/lib/components/box/table-container/index.mjs +3 -3
- package/lib/components/box/table-container/index.native.js +3 -0
- package/lib/components/breadcrumb/Breadcrumb.js +21 -108
- package/lib/components/breadcrumb/Breadcrumb.mjs +2 -2
- package/lib/components/breadcrumb/Breadcrumb.native.js +24 -229
- package/lib/components/breadcrumb/BreadcrumbProps.js +2 -18
- package/lib/components/breadcrumb/index.js +4 -336
- package/lib/components/breadcrumb/index.mjs +7 -7
- package/lib/components/breadcrumb/index.native.js +4 -0
- package/lib/components/breadcrumb/item/BreadcrumbItem.js +29 -300
- package/lib/components/breadcrumb/item/BreadcrumbItem.mjs +5 -5
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +32 -263
- package/lib/components/breadcrumb/item/BreadcrumbItemProps.js +2 -18
- package/lib/components/breadcrumb/item/index.js +3 -306
- package/lib/components/breadcrumb/item/index.mjs +6 -6
- package/lib/components/breadcrumb/item/index.native.js +3 -0
- package/lib/components/button/Button.js +67 -354
- package/lib/components/button/Button.mjs +4 -4
- package/lib/components/button/Button.native.js +136 -561
- package/lib/components/button/ButtonEnum.js +30 -52
- package/lib/components/button/ButtonEnum.mjs +1 -1
- package/lib/components/button/ButtonProps.js +2 -18
- package/lib/components/button/index.js +5 -429
- package/lib/components/button/index.mjs +5 -5
- package/lib/components/button/index.native.js +5 -0
- package/lib/components/button/list/ButtonList.js +22 -158
- package/lib/components/button/list/ButtonList.mjs +3 -3
- package/lib/components/button/list/ButtonList.native.js +12 -55
- package/lib/components/button/list/ButtonListEnum.js +6 -34
- package/lib/components/button/list/ButtonListEnum.mjs +1 -1
- package/lib/components/button/list/ButtonListProps.js +2 -18
- package/lib/components/button/list/index.js +4 -174
- package/lib/components/button/list/index.mjs +3 -3
- package/lib/components/button/list/index.native.js +4 -0
- package/lib/components/button/spin-white.mjs +1 -1
- package/lib/components/button/spin.mjs +1 -1
- package/lib/components/card/Card.js +32 -150
- package/lib/components/card/Card.mjs +2 -2
- package/lib/components/card/Card.native.js +98 -240
- package/lib/components/card/CardProps.js +2 -18
- package/lib/components/card/content/CardContent.js +18 -97
- package/lib/components/card/content/CardContent.mjs +2 -2
- package/lib/components/card/content/CardContent.native.js +21 -262
- package/lib/components/card/content/CardContentProps.js +2 -18
- package/lib/components/card/content/index.js +3 -101
- package/lib/components/card/content/index.mjs +3 -3
- package/lib/components/card/content/index.native.js +3 -0
- package/lib/components/card/image/CardImage.js +30 -120
- package/lib/components/card/image/CardImage.mjs +2 -2
- package/lib/components/card/image/CardImage.native.js +40 -285
- package/lib/components/card/image/CardImageEnum.js +11 -36
- package/lib/components/card/image/CardImageEnum.mjs +1 -1
- package/lib/components/card/image/CardImageProps.js +2 -18
- package/lib/components/card/image/index.js +3 -124
- package/lib/components/card/image/index.mjs +3 -3
- package/lib/components/card/image/index.native.js +3 -0
- package/lib/components/card/index.js +6 -215
- package/lib/components/card/index.mjs +6 -6
- package/lib/components/card/index.native.js +6 -0
- package/lib/components/checkbox/Checkbox.js +42 -122
- package/lib/components/checkbox/Checkbox.mjs +2 -2
- package/lib/components/checkbox/Checkbox.native.js +60 -358
- package/lib/components/checkbox/CheckboxProps.js +2 -18
- package/lib/components/checkbox/index.js +7 -490
- package/lib/components/checkbox/index.mjs +13 -13
- package/lib/components/checkbox/index.native.js +7 -0
- package/lib/components/checkbox/list/CheckboxList.js +24 -270
- package/lib/components/checkbox/list/CheckboxList.mjs +7 -7
- package/lib/components/checkbox/list/CheckboxList.native.js +21 -150
- package/lib/components/checkbox/list/CheckboxListProps.js +2 -18
- package/lib/components/checkbox/list/index.js +7 -37
- package/lib/components/checkbox/list/index.mjs +7 -7
- package/lib/components/checkbox/list/index.native.js +3 -0
- package/lib/components/checkbox/tiles/CheckboxTiles.js +32 -148
- package/lib/components/checkbox/tiles/CheckboxTiles.mjs +2 -2
- package/lib/components/checkbox/tiles/CheckboxTiles.native.js +19 -152
- package/lib/components/checkbox/tiles/CheckboxTilesProps.js +2 -18
- package/lib/components/checkbox/tiles/index.js +5 -31
- package/lib/components/checkbox/tiles/index.mjs +2 -2
- package/lib/components/checkbox/tiles/index.native.js +3 -0
- package/lib/components/checkbox/tiles/tile/CheckboxTile.js +48 -329
- package/lib/components/checkbox/tiles/tile/CheckboxTile.mjs +8 -8
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.js +102 -694
- package/lib/components/checkbox/tiles/tile/CheckboxTileProps.js +2 -18
- package/lib/components/checkbox/tiles/tile/index.js +26 -72
- package/lib/components/checkbox/tiles/tile/index.mjs +8 -8
- package/lib/components/checkbox/tiles/tile/index.native.js +3 -0
- package/lib/components/chips/Chips.js +27 -122
- package/lib/components/chips/Chips.mjs +2 -2
- package/lib/components/chips/Chips.native.js +57 -423
- package/lib/components/chips/ChipsProps.js +2 -18
- package/lib/components/chips/index.js +4 -146
- package/lib/components/chips/index.mjs +3 -3
- package/lib/components/chips/index.native.js +5 -0
- package/lib/components/chips/list/ChipsList.js +22 -108
- package/lib/components/chips/list/ChipsList.mjs +2 -2
- package/lib/components/chips/list/ChipsList.native.js +20 -90
- package/lib/components/chips/list/ChipsListProps.js +2 -18
- package/lib/components/chips/list/index.js +2 -29
- package/lib/components/chips/list/index.mjs +2 -2
- package/lib/components/chips/list/index.native.js +3 -0
- package/lib/components/columns/Columns.js +28 -181
- package/lib/components/columns/Columns.mjs +2 -2
- package/lib/components/columns/Columns.native.js +70 -179
- package/lib/components/columns/ColumnsProps.js +2 -18
- package/lib/components/columns/ColumnsTypes.js +16 -46
- package/lib/components/columns/ColumnsTypes.mjs +1 -1
- package/lib/components/columns/column/Column.js +38 -187
- package/lib/components/columns/column/Column.mjs +2 -2
- package/lib/components/columns/column/Column.native.js +30 -279
- package/lib/components/columns/column/ColumnProps.js +2 -18
- package/lib/components/columns/column/index.js +3 -191
- package/lib/components/columns/column/index.mjs +3 -3
- package/lib/components/columns/column/index.native.js +3 -0
- package/lib/components/columns/context/index.js +7 -45
- package/lib/components/columns/context/index.mjs +10 -4
- package/lib/components/columns/index.js +5 -286
- package/lib/components/columns/index.mjs +6 -6
- package/lib/components/columns/index.native.js +5 -0
- package/lib/components/container/Container.js +21 -105
- package/lib/components/container/Container.mjs +2 -2
- package/lib/components/container/Container.native.js +21 -95
- package/lib/components/container/ContainerProps.js +2 -18
- package/lib/components/container/ContainerProps.mjs +1 -0
- package/lib/components/container/index.d.mts +1 -0
- package/lib/components/container/index.d.ts +1 -0
- package/lib/components/container/index.js +3 -112
- package/lib/components/container/index.mjs +4 -3
- package/lib/components/container/index.native.js +4 -0
- package/lib/components/countdown/Countdown.js +120 -185
- package/lib/components/countdown/Countdown.mjs +2 -2
- package/lib/components/countdown/Countdown.native.js +151 -374
- package/lib/components/countdown/CountdownEnum.js +32 -64
- package/lib/components/countdown/CountdownEnum.mjs +1 -1
- package/lib/components/countdown/CountdownProps.js +2 -18
- package/lib/components/countdown/CountdownProps.mjs +1 -0
- package/lib/components/countdown/index.d.mts +3 -2
- package/lib/components/countdown/index.d.ts +3 -2
- package/lib/components/countdown/index.js +5 -222
- package/lib/components/countdown/index.mjs +4 -3
- package/lib/components/countdown/index.native.js +5 -0
- package/lib/components/divider/Divider.js +29 -233
- package/lib/components/divider/Divider.mjs +4 -4
- package/lib/components/divider/Divider.native.js +71 -383
- package/lib/components/divider/DividerProps.js +2 -18
- package/lib/components/divider/index.js +4 -238
- package/lib/components/divider/index.mjs +4 -4
- package/lib/components/divider/index.native.js +4 -0
- package/lib/components/enums.mjs +1 -1
- package/lib/components/enumsComponentsName.js +165 -193
- package/lib/components/enumsComponentsName.mjs +1 -1
- package/lib/components/fab/Fab.js +50 -279
- package/lib/components/fab/Fab.mjs +4 -4
- package/lib/components/fab/Fab.native.js +62 -396
- package/lib/components/fab/FabProps.js +2 -18
- package/lib/components/fab/FabProps.mjs +1 -0
- package/lib/components/fab/index.d.mts +2 -1
- package/lib/components/fab/index.d.ts +2 -1
- package/lib/components/fab/index.js +4 -285
- package/lib/components/fab/index.mjs +6 -5
- package/lib/components/fab/index.native.js +4 -0
- package/lib/components/flex-box/FlexBox.js +30 -173
- package/lib/components/flex-box/FlexBox.mjs +2 -2
- package/lib/components/flex-box/FlexBox.native.js +49 -364
- package/lib/components/flex-box/FlexBoxProps.js +2 -18
- package/lib/components/flex-box/context/index.js +7 -45
- package/lib/components/flex-box/context/index.mjs +10 -4
- package/lib/components/flex-box/flex-item/FlexItem.js +39 -143
- package/lib/components/flex-box/flex-item/FlexItem.mjs +2 -2
- package/lib/components/flex-box/flex-item/FlexItem.native.js +51 -124
- package/lib/components/flex-box/flex-item/FlexItemProps.js +2 -18
- package/lib/components/flex-box/index.js +4 -210
- package/lib/components/flex-box/index.mjs +3 -3
- package/lib/components/flex-box/index.native.js +4 -0
- package/lib/components/hero/Hero.js +31 -172
- package/lib/components/hero/Hero.mjs +2 -2
- package/lib/components/hero/Hero.native.js +83 -503
- package/lib/components/hero/HeroProps.js +2 -18
- package/lib/components/hero/heroEnum.js +8 -36
- package/lib/components/hero/heroEnum.mjs +1 -1
- package/lib/components/hero/index.js +4 -190
- package/lib/components/hero/index.mjs +2 -2
- package/lib/components/hero/index.native.js +5 -0
- package/lib/components/icon/Icon.js +37 -208
- package/lib/components/icon/Icon.mjs +3 -3
- package/lib/components/icon/Icon.native.js +115 -268
- package/lib/components/icon/IconEnum.js +61 -87
- package/lib/components/icon/IconEnum.mjs +1 -1
- package/lib/components/icon/IconNameEnum.js +28 -56
- package/lib/components/icon/IconNameEnum.mjs +1 -1
- package/lib/components/icon/IconProps.js +2 -18
- package/lib/components/icon/index.js +5 -306
- package/lib/components/icon/index.mjs +3 -3
- package/lib/components/icon/index.native.js +6 -0
- package/lib/components/image/Image.js +36 -269
- package/lib/components/image/Image.mjs +7 -7
- package/lib/components/image/Image.native.js +29 -91
- package/lib/components/image/ImageProps.js +7 -35
- package/lib/components/image/ImageProps.mjs +1 -1
- package/lib/components/image/index.d.mts +1 -0
- package/lib/components/image/index.d.ts +1 -0
- package/lib/components/image/index.js +5 -286
- package/lib/components/image/index.mjs +8 -8
- package/lib/components/image/index.native.js +5 -0
- package/lib/components/index.js +51 -6348
- package/lib/components/index.mjs +289 -272
- package/lib/components/index.native.js +51 -0
- package/lib/components/input/Input.js +191 -747
- package/lib/components/input/Input.mjs +11 -10
- package/lib/components/input/Input.native.js +328 -969
- package/lib/components/input/InputEnum.js +187 -175
- package/lib/components/input/InputEnum.mjs +1 -1
- package/lib/components/input/InputProps.js +2 -18
- package/lib/components/input/gauge/InputGauge.js +28 -404
- package/lib/components/input/gauge/InputGauge.mjs +7 -7
- package/lib/components/input/gauge/InputGauge.native.js +52 -481
- package/lib/components/input/gauge/hook/useGauge.js +74 -310
- package/lib/components/input/gauge/hook/useGauge.mjs +6 -6
- package/lib/components/input/index.js +5 -912
- package/lib/components/input/index.mjs +12 -11
- package/lib/components/input/index.native.js +5 -0
- package/lib/components/interface.js +2 -18
- package/lib/components/link/Link.js +45 -281
- package/lib/components/link/Link.mjs +4 -4
- package/lib/components/link/Link.native.js +55 -289
- package/lib/components/link/LinkProps.js +2 -18
- package/lib/components/link/index.js +3 -290
- package/lib/components/link/index.mjs +4 -4
- package/lib/components/link/index.native.js +3 -0
- package/lib/components/list/List.js +21 -106
- package/lib/components/list/List.mjs +2 -2
- package/lib/components/list/List.native.js +17 -80
- package/lib/components/list/ListProps.js +2 -18
- package/lib/components/list/context/ListContext.js +7 -45
- package/lib/components/list/context/ListContext.mjs +1 -1
- package/lib/components/list/context/ListContextProps.js +2 -18
- package/lib/components/list/context/index.js +3 -48
- package/lib/components/list/context/index.mjs +1 -2
- package/lib/components/list/index.js +5 -309
- package/lib/components/list/index.mjs +10 -10
- package/lib/components/list/index.native.js +5 -0
- package/lib/components/list/item/ListItem.js +24 -262
- package/lib/components/list/item/ListItem.mjs +7 -7
- package/lib/components/list/item/ListItem.native.js +56 -370
- package/lib/components/list/item/ListItemProps.js +8 -36
- package/lib/components/list/item/ListItemProps.mjs +1 -1
- package/lib/components/list/item/description/ListItemDescription.js +17 -95
- package/lib/components/list/item/description/ListItemDescription.mjs +2 -2
- package/lib/components/list/item/description/ListItemDescription.native.js +15 -474
- package/lib/components/list/item/description/ListItemDescriptionProps.js +2 -18
- package/lib/components/list/item/description/index.js +4 -100
- package/lib/components/list/item/description/index.mjs +2 -2
- package/lib/components/list/item/description/index.native.js +4 -0
- package/lib/components/list/item/index.js +5 -292
- package/lib/components/list/item/index.mjs +9 -9
- package/lib/components/list/item/index.native.js +5 -0
- package/lib/components/modal/Modal.js +87 -623
- package/lib/components/modal/Modal.mjs +9 -8
- package/lib/components/modal/Modal.native.js +67 -614
- package/lib/components/modal/ModalEnum.js +30 -59
- package/lib/components/modal/ModalEnum.mjs +1 -1
- package/lib/components/modal/ModalProps.js +2 -18
- package/lib/components/modal/body/ModalBody.js +18 -93
- package/lib/components/modal/body/ModalBody.mjs +2 -2
- package/lib/components/modal/body/ModalBody.native.js +24 -306
- package/lib/components/modal/body/ModalBodyProps.js +2 -18
- package/lib/components/modal/body/index.native.js +3 -0
- package/lib/components/modal/context/ModalContext.js +7 -45
- package/lib/components/modal/context/ModalContext.mjs +1 -1
- package/lib/components/modal/context/ModalContextProps.js +2 -18
- package/lib/components/modal/context/index.js +3 -48
- package/lib/components/modal/context/index.mjs +2 -3
- package/lib/components/modal/footer/ModalFooter.js +18 -95
- package/lib/components/modal/footer/ModalFooter.mjs +2 -2
- package/lib/components/modal/footer/ModalFooter.native.js +31 -398
- package/lib/components/modal/footer/ModalFooterProps.js +2 -18
- package/lib/components/modal/footer/index.native.js +3 -0
- package/lib/components/modal/index.js +6 -695
- package/lib/components/modal/index.mjs +12 -11
- package/lib/components/modal/index.native.js +6 -0
- package/lib/components/otp/Otp.js +118 -361
- package/lib/components/otp/Otp.mjs +7 -6
- package/lib/components/otp/Otp.native.js +130 -543
- package/lib/components/otp/OtpProps.js +2 -18
- package/lib/components/otp/OtpProps.mjs +1 -0
- package/lib/components/otp/index.d.mts +1 -0
- package/lib/components/otp/index.d.ts +1 -0
- package/lib/components/otp/index.js +4 -378
- package/lib/components/otp/index.mjs +9 -7
- package/lib/components/otp/index.native.js +4 -0
- package/lib/components/pagination/Pagination.js +86 -294
- package/lib/components/pagination/Pagination.mjs +4 -4
- package/lib/components/pagination/Pagination.native.js +130 -431
- package/lib/components/pagination/PaginationEnum.js +2 -18
- package/lib/components/pagination/PaginationProps.js +2 -18
- package/lib/components/pagination/PaginationProps.mjs +1 -0
- package/lib/components/pagination/index.d.mts +2 -1
- package/lib/components/pagination/index.d.ts +2 -1
- package/lib/components/pagination/index.js +5 -303
- package/lib/components/pagination/index.mjs +6 -5
- package/lib/components/pagination/index.native.js +5 -0
- package/lib/components/popover/Popover.js +26 -114
- package/lib/components/popover/Popover.mjs +2 -2
- package/lib/components/popover/Popover.native.js +89 -314
- package/lib/components/popover/PopoverEnum.js +18 -42
- package/lib/components/popover/PopoverEnum.mjs +1 -1
- package/lib/components/popover/PopoverProps.js +2 -18
- package/lib/components/popover/index.js +5 -136
- package/lib/components/popover/index.mjs +3 -3
- package/lib/components/popover/index.native.js +5 -0
- package/lib/components/price/Price.js +82 -400
- package/lib/components/price/Price.mjs +10 -9
- package/lib/components/price/Price.native.js +224 -473
- package/lib/components/price/PriceEnum.js +11 -39
- package/lib/components/price/PriceEnum.mjs +1 -1
- package/lib/components/price/PriceHelpers.js +7 -35
- package/lib/components/price/PriceHelpers.mjs +1 -1
- package/lib/components/price/PriceProps.js +2 -18
- package/lib/components/price/PriceProps.mjs +1 -0
- package/lib/components/price/index.d.mts +1 -0
- package/lib/components/price/index.d.ts +1 -0
- package/lib/components/price/index.js +5 -424
- package/lib/components/price/index.mjs +14 -12
- package/lib/components/price/index.native.js +5 -0
- package/lib/components/product-tour/ProductTour.js +35 -230
- package/lib/components/product-tour/ProductTour.mjs +4 -4
- package/lib/components/product-tour/ProductTour.native.js +12 -41
- package/lib/components/product-tour/ProductTourProps.js +33 -56
- package/lib/components/product-tour/ProductTourProps.mjs +1 -1
- package/lib/components/product-tour/index.js +4 -267
- package/lib/components/product-tour/index.mjs +6 -6
- package/lib/components/product-tour/index.native.js +4 -0
- package/lib/components/progress/Progress.js +33 -369
- package/lib/components/progress/Progress.mjs +10 -9
- package/lib/components/progress/Progress.native.js +87 -554
- package/lib/components/progress/ProgressProps.js +2 -18
- package/lib/components/progress/index.js +6 -615
- package/lib/components/progress/index.mjs +19 -17
- package/lib/components/progress/index.native.js +5 -0
- package/lib/components/progress/item/ProgressItem.js +25 -262
- package/lib/components/progress/item/ProgressItem.mjs +7 -7
- package/lib/components/progress/item/ProgressItem.native.js +28 -84
- package/lib/components/progress/item/ProgressItemProps.js +2 -18
- package/lib/components/progress/item/index.js +3 -268
- package/lib/components/progress/item/index.mjs +8 -8
- package/lib/components/progress/radial/ProgressRadial.js +71 -427
- package/lib/components/progress/radial/ProgressRadial.mjs +9 -7
- package/lib/components/progress/radial/ProgressRadial.native.js +85 -1703
- package/lib/components/progress/radial/ProgressRadialProps.js +2 -18
- package/lib/components/progress/radial/index.js +3 -435
- package/lib/components/progress/radial/index.mjs +10 -8
- package/lib/components/progress/radial/item/ProgressRadialItemProps.js +2 -18
- package/lib/components/progress/radial/item/ProgressRadialtem.js +11 -94
- package/lib/components/progress/radial/item/ProgressRadialtem.mjs +2 -2
- package/lib/components/progress/radial/item/index.mjs +2 -2
- package/lib/components/progress/radial/react-native-circular-progress/AnimatedCircularProgress.js +67 -1298
- package/lib/components/progress/radial/react-native-circular-progress/AnimatedCircularProgress.mjs +3 -3
- package/lib/components/progress/radial/react-native-circular-progress/CircularProgress.js +111 -1206
- package/lib/components/progress/radial/react-native-circular-progress/CircularProgress.mjs +2 -2
- package/lib/components/progress/radial/react-native-circular-progress/index.js +4 -1310
- package/lib/components/progress/radial/react-native-circular-progress/index.mjs +3 -4
- package/lib/components/radio/Radio.js +36 -119
- package/lib/components/radio/Radio.mjs +2 -2
- package/lib/components/radio/Radio.native.js +61 -370
- package/lib/components/radio/RadioProps.js +2 -18
- package/lib/components/radio/RadioProps.mjs +1 -0
- package/lib/components/radio/index.d.mts +3 -2
- package/lib/components/radio/index.d.ts +3 -2
- package/lib/components/radio/index.js +7 -486
- package/lib/components/radio/index.mjs +14 -13
- package/lib/components/radio/index.native.js +7 -0
- package/lib/components/radio/list/RadioList.js +24 -270
- package/lib/components/radio/list/RadioList.mjs +7 -7
- package/lib/components/radio/list/RadioList.native.js +22 -151
- package/lib/components/radio/list/RadioListProps.js +2 -18
- package/lib/components/radio/list/index.js +3 -275
- package/lib/components/radio/list/index.mjs +7 -7
- package/lib/components/radio/list/index.native.js +3 -0
- package/lib/components/radio/tiles/RadioTiles.js +35 -276
- package/lib/components/radio/tiles/RadioTiles.mjs +7 -7
- package/lib/components/radio/tiles/RadioTiles.native.js +32 -136
- package/lib/components/radio/tiles/RadioTilesProps.js +2 -18
- package/lib/components/radio/tiles/index.js +7 -37
- package/lib/components/radio/tiles/index.mjs +7 -7
- package/lib/components/radio/tiles/index.native.js +3 -0
- package/lib/components/radio/tiles/tile/RadioTile.js +52 -332
- package/lib/components/radio/tiles/tile/RadioTile.mjs +8 -8
- package/lib/components/radio/tiles/tile/RadioTile.native.js +116 -510
- package/lib/components/radio/tiles/tile/RadioTileProps.js +2 -18
- package/lib/components/radio/tiles/tile/index.js +26 -72
- package/lib/components/radio/tiles/tile/index.mjs +8 -8
- package/lib/components/radio/tiles/tile/index.native.js +3 -0
- package/lib/components/range/Range.js +95 -338
- package/lib/components/range/Range.mjs +6 -6
- package/lib/components/range/Range.native.js +67 -394
- package/lib/components/range/RangeProps.js +2 -18
- package/lib/components/range/index.js +3 -349
- package/lib/components/range/index.mjs +6 -6
- package/lib/components/range/index.native.js +3 -0
- package/lib/components/rows/Rows.js +18 -137
- package/lib/components/rows/Rows.mjs +3 -3
- package/lib/components/rows/Rows.native.js +23 -82
- package/lib/components/rows/RowsProps.js +2 -18
- package/lib/components/rows/index.js +4 -159
- package/lib/components/rows/index.mjs +5 -5
- package/lib/components/rows/index.native.js +4 -0
- package/lib/components/rows/row/Row.js +20 -128
- package/lib/components/rows/row/Row.mjs +3 -3
- package/lib/components/rows/row/Row.native.js +19 -74
- package/lib/components/rows/row/RowProps.js +2 -18
- package/lib/components/rows/row/index.js +3 -132
- package/lib/components/rows/row/index.mjs +4 -4
- package/lib/components/rows/row/index.native.js +3 -0
- package/lib/components/scroll-view/ScrollView.js +38 -248
- package/lib/components/scroll-view/ScrollView.mjs +6 -6
- package/lib/components/scroll-view/ScrollView.native.js +42 -370
- package/lib/components/scroll-view/ScrollViewProps.js +2 -18
- package/lib/components/scroll-view/ScrollViewProps.mjs +1 -0
- package/lib/components/scroll-view/index.d.mts +1 -0
- package/lib/components/scroll-view/index.d.ts +1 -0
- package/lib/components/scroll-view/index.js +4 -255
- package/lib/components/scroll-view/index.mjs +8 -7
- package/lib/components/scroll-view/index.native.js +4 -0
- package/lib/components/section/Section.js +27 -253
- package/lib/components/section/Section.mjs +7 -7
- package/lib/components/section/Section.native.js +26 -262
- package/lib/components/section/SectionProps.js +2 -18
- package/lib/components/section/index.js +3 -258
- package/lib/components/section/index.mjs +7 -7
- package/lib/components/section/index.native.js +3 -0
- package/lib/components/segment-control/SegmentControl.js +54 -321
- package/lib/components/segment-control/SegmentControl.mjs +9 -9
- package/lib/components/segment-control/SegmentControl.native.js +68 -580
- package/lib/components/segment-control/SegmentControlProps.js +2 -18
- package/lib/components/segment-control/SegmentControlProps.mjs +1 -0
- package/lib/components/segment-control/index.d.mts +1 -0
- package/lib/components/segment-control/index.d.ts +1 -0
- package/lib/components/segment-control/index.js +5 -333
- package/lib/components/segment-control/index.mjs +11 -10
- package/lib/components/segment-control/index.native.js +5 -0
- package/lib/components/segment-control/item/SegmentControlItem.js +31 -143
- package/lib/components/segment-control/item/SegmentControlItem.mjs +3 -3
- package/lib/components/segment-control/item/SegmentControlItem.native.js +51 -171
- package/lib/components/segment-control/item/SegmentControlItemProps.js +2 -18
- package/lib/components/segment-control/item/index.js +3 -148
- package/lib/components/segment-control/item/index.mjs +4 -4
- package/lib/components/segment-control/item/index.native.js +3 -0
- package/lib/components/select/Select.js +51 -1119
- package/lib/components/select/Select.mjs +16 -15
- package/lib/components/select/Select.native.js +123 -1643
- package/lib/components/select/SelectEnum.js +6 -34
- package/lib/components/select/SelectEnum.mjs +1 -1
- package/lib/components/select/SelectProps.js +2 -18
- package/lib/components/select/context/index.js +9 -47
- package/lib/components/select/context/index.mjs +1 -1
- package/lib/components/select/index.js +6 -1136
- package/lib/components/select/index.mjs +16 -15
- package/lib/components/select/index.native.js +6 -0
- package/lib/components/select/option/SelectOption.js +56 -280
- package/lib/components/select/option/SelectOption.mjs +4 -4
- package/lib/components/select/option/SelectOption.native.js +50 -528
- package/lib/components/select/option/SelectOptionProps.js +2 -18
- package/lib/components/select/option/index.js +3 -289
- package/lib/components/select/option/index.mjs +5 -5
- package/lib/components/select/option/index.native.js +3 -0
- package/lib/components/select/web/SelectDynamic.js +75 -906
- package/lib/components/select/web/SelectDynamic.mjs +13 -12
- package/lib/components/select/web/SelectNative.js +62 -1116
- package/lib/components/select/web/SelectNative.mjs +16 -15
- package/lib/components/select/web/index.js +3 -1126
- package/lib/components/select/web/index.mjs +16 -15
- package/lib/components/spacer/Spacer.js +23 -75
- package/lib/components/spacer/Spacer.mjs +1 -1
- package/lib/components/spacer/Spacer.native.js +19 -47
- package/lib/components/spacer/SpacerEnum.js +19 -46
- package/lib/components/spacer/SpacerEnum.mjs +1 -1
- package/lib/components/spacer/SpacerProps.js +2 -18
- package/lib/components/spacer/index.js +5 -101
- package/lib/components/spacer/index.mjs +1 -1
- package/lib/components/spacer/index.native.js +5 -0
- package/lib/components/stepper/Stepper.js +52 -238
- package/lib/components/stepper/Stepper.mjs +6 -5
- package/lib/components/stepper/Stepper.native.js +91 -389
- package/lib/components/stepper/StepperProps.js +2 -18
- package/lib/components/stepper/StepperProps.mjs +1 -0
- package/lib/components/stepper/index.d.mts +2 -1
- package/lib/components/stepper/index.d.ts +2 -1
- package/lib/components/stepper/index.js +6 -376
- package/lib/components/stepper/index.mjs +13 -11
- package/lib/components/stepper/index.native.js +6 -0
- package/lib/components/stepper/step/Step.js +34 -233
- package/lib/components/stepper/step/Step.mjs +4 -4
- package/lib/components/stepper/step/Step.native.js +50 -277
- package/lib/components/stepper/step/StepEnum.js +11 -36
- package/lib/components/stepper/step/StepEnum.mjs +1 -1
- package/lib/components/stepper/step/StepProps.js +2 -18
- package/lib/components/stepper/step/index.js +3 -237
- package/lib/components/stepper/step/index.mjs +5 -5
- package/lib/components/stepper/step/index.native.js +3 -0
- package/lib/components/sticker/Sticker.js +29 -265
- package/lib/components/sticker/Sticker.mjs +7 -7
- package/lib/components/sticker/Sticker.native.js +59 -415
- package/lib/components/sticker/StickerProps.js +2 -18
- package/lib/components/sticker/index.js +3 -270
- package/lib/components/sticker/index.mjs +7 -7
- package/lib/components/sticker/index.native.js +3 -0
- package/lib/components/styleComponent/default/index.mjs +1 -1
- package/lib/components/styleComponent/default/styleComponent.mjs +1 -1
- package/lib/components/styleComponent/default/styleComponent.native.js +5 -39
- package/lib/components/styleComponent/index.mjs +5 -5
- package/lib/components/styleComponent/mangled/index.mjs +1 -1
- package/lib/components/styleComponent/mangled/styleComponentMangled.mjs +1 -1
- package/lib/components/styleComponent/mangled/styleComponentMangled.native.js +5 -39
- package/lib/components/switch/Switch.js +60 -326
- package/lib/components/switch/Switch.mjs +7 -7
- package/lib/components/switch/Switch.native.js +41 -314
- package/lib/components/switch/SwitchProps.js +2 -18
- package/lib/components/switch/index.js +3 -333
- package/lib/components/switch/index.mjs +7 -7
- package/lib/components/switch/index.native.js +3 -0
- package/lib/components/table/Table.js +25 -127
- package/lib/components/table/Table.mjs +2 -2
- package/lib/components/table/Table.native.js +30 -266
- package/lib/components/table/TableProps.js +7 -35
- package/lib/components/table/TableProps.mjs +1 -1
- package/lib/components/table/body/TableBody.js +23 -156
- package/lib/components/table/body/TableBody.mjs +2 -2
- package/lib/components/table/body/TableBody.native.js +19 -75
- package/lib/components/table/body/TableBodyProps.js +2 -18
- package/lib/components/table/body/index.js +3 -162
- package/lib/components/table/body/index.mjs +3 -3
- package/lib/components/table/body/index.native.js +3 -0
- package/lib/components/table/head/TableHead.js +23 -156
- package/lib/components/table/head/TableHead.mjs +2 -2
- package/lib/components/table/head/TableHead.native.js +18 -74
- package/lib/components/table/head/TableHeadProps.js +2 -18
- package/lib/components/table/head/index.js +3 -162
- package/lib/components/table/head/index.mjs +3 -3
- package/lib/components/table/head/index.native.js +3 -0
- package/lib/components/table/index.js +9 -314
- package/lib/components/table/index.mjs +12 -12
- package/lib/components/table/index.native.js +9 -0
- package/lib/components/table/td/TableTd.js +20 -96
- package/lib/components/table/td/TableTd.mjs +2 -2
- package/lib/components/table/td/TableTd.native.js +27 -258
- package/lib/components/table/td/TableTdProps.js +2 -18
- package/lib/components/table/td/index.js +3 -102
- package/lib/components/table/td/index.mjs +3 -3
- package/lib/components/table/td/index.native.js +3 -0
- package/lib/components/table/th/TableTh.js +21 -96
- package/lib/components/table/th/TableTh.mjs +2 -2
- package/lib/components/table/th/TableTh.native.js +30 -501
- package/lib/components/table/th/TableThProps.js +2 -18
- package/lib/components/table/th/index.js +3 -102
- package/lib/components/table/th/index.mjs +3 -3
- package/lib/components/table/th/index.native.js +3 -0
- package/lib/components/table/tr/TableTr.js +26 -167
- package/lib/components/table/tr/TableTr.mjs +2 -2
- package/lib/components/table/tr/TableTr.native.js +37 -518
- package/lib/components/table/tr/TableTrProps.js +2 -18
- package/lib/components/table/tr/index.js +3 -173
- package/lib/components/table/tr/index.mjs +3 -3
- package/lib/components/table/tr/index.native.js +3 -0
- package/lib/components/tabs/Tabs.js +36 -107
- package/lib/components/tabs/Tabs.mjs +1 -1
- package/lib/components/tabs/Tabs.native.js +29 -72
- package/lib/components/tabs/TabsProps.js +2 -18
- package/lib/components/tabs/context/index.js +8 -46
- package/lib/components/tabs/context/index.mjs +1 -1
- package/lib/components/tabs/index.js +7 -570
- package/lib/components/tabs/index.mjs +15 -14
- package/lib/components/tabs/index.native.js +7 -0
- package/lib/components/tabs/tab-list/TabList.js +71 -475
- package/lib/components/tabs/tab-list/TabList.mjs +8 -7
- package/lib/components/tabs/tab-list/TabList.native.js +78 -485
- package/lib/components/tabs/tab-list/TabListProps.js +2 -18
- package/lib/components/tabs/tab-list/index.js +37 -77
- package/lib/components/tabs/tab-list/index.mjs +8 -7
- package/lib/components/tabs/tab-list/index.native.js +3 -0
- package/lib/components/tabs/tab-list/tab/Tab.js +45 -349
- package/lib/components/tabs/tab-list/tab/Tab.mjs +7 -6
- package/lib/components/tabs/tab-list/tab/Tab.native.js +58 -366
- package/lib/components/tabs/tab-list/tab/TabProps.js +2 -18
- package/lib/components/tabs/tab-list/tab/index.js +26 -67
- package/lib/components/tabs/tab-list/tab/index.mjs +7 -6
- package/lib/components/tabs/tab-list/tab/index.native.js +3 -0
- package/lib/components/tabs/tab-panels/TabPanels.js +25 -138
- package/lib/components/tabs/tab-panels/TabPanels.mjs +4 -4
- package/lib/components/tabs/tab-panels/TabPanels.native.js +30 -281
- package/lib/components/tabs/tab-panels/TabPanelsProps.js +2 -18
- package/lib/components/tabs/tab-panels/index.js +6 -37
- package/lib/components/tabs/tab-panels/index.mjs +4 -4
- package/lib/components/tabs/tab-panels/index.native.js +3 -0
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.js +23 -115
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.mjs +2 -2
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.native.js +41 -107
- package/lib/components/tabs/tab-panels/tab-panel/TabPanelProps.js +2 -18
- package/lib/components/tabs/tab-panels/tab-panel/index.js +3 -119
- package/lib/components/tabs/tab-panels/tab-panel/index.mjs +3 -3
- package/lib/components/tabs/tab-panels/tab-panel/index.native.js +3 -0
- package/lib/components/tag/Tag.js +29 -237
- package/lib/components/tag/Tag.mjs +4 -4
- package/lib/components/tag/Tag.native.js +53 -284
- package/lib/components/tag/TagEnum.js +14 -36
- package/lib/components/tag/TagEnum.mjs +1 -1
- package/lib/components/tag/TagProps.js +2 -18
- package/lib/components/tag/index.js +6 -303
- package/lib/components/tag/index.mjs +11 -11
- package/lib/components/tag/index.native.js +6 -0
- package/lib/components/tag/list/TagList.js +19 -251
- package/lib/components/tag/list/TagList.mjs +7 -7
- package/lib/components/tag/list/TagList.native.js +27 -82
- package/lib/components/tag/list/TagListProps.js +2 -18
- package/lib/components/tag/list/index.js +3 -256
- package/lib/components/tag/list/index.mjs +8 -8
- package/lib/components/tag/list/index.native.js +3 -0
- package/lib/components/text/Text.js +53 -176
- package/lib/components/text/Text.mjs +2 -2
- package/lib/components/text/Text.native.js +74 -247
- package/lib/components/text/TextEnum.js +19 -43
- package/lib/components/text/TextEnum.mjs +1 -1
- package/lib/components/text/TextProps.js +2 -18
- package/lib/components/text/TextProps.mjs +1 -0
- package/lib/components/text/index.d.mts +1 -0
- package/lib/components/text/index.d.ts +1 -0
- package/lib/components/text/index.js +5 -194
- package/lib/components/text/index.mjs +4 -3
- package/lib/components/text/index.native.js +5 -0
- package/lib/components/textarea/Textarea.js +67 -389
- package/lib/components/textarea/Textarea.mjs +10 -9
- package/lib/components/textarea/Textarea.native.js +150 -535
- package/lib/components/textarea/TextareaProps.js +2 -18
- package/lib/components/textarea/index.js +3 -395
- package/lib/components/textarea/index.mjs +10 -9
- package/lib/components/textarea/index.native.js +3 -0
- package/lib/components/timeline/Timeline.js +20 -128
- package/lib/components/timeline/Timeline.mjs +3 -3
- package/lib/components/timeline/Timeline.native.js +26 -64
- package/lib/components/timeline/TimelineProps.js +2 -18
- package/lib/components/timeline/content/TimelineContent.js +29 -387
- package/lib/components/timeline/content/TimelineContent.mjs +8 -7
- package/lib/components/timeline/content/TimelineContent.native.js +46 -528
- package/lib/components/timeline/content/TimelineContentProps.js +2 -18
- package/lib/components/timeline/content/TimelineContentProps.mjs +1 -0
- package/lib/components/timeline/content/index.d.mts +1 -0
- package/lib/components/timeline/content/index.d.ts +1 -0
- package/lib/components/timeline/content/index.js +4 -393
- package/lib/components/timeline/content/index.mjs +10 -8
- package/lib/components/timeline/content/index.native.js +4 -0
- package/lib/components/timeline/index.js +6 -453
- package/lib/components/timeline/index.mjs +19 -15
- package/lib/components/timeline/index.native.js +6 -0
- package/lib/components/timeline/item/TimelineItem.js +21 -126
- package/lib/components/timeline/item/TimelineItem.mjs +3 -3
- package/lib/components/timeline/item/TimelineItem.native.js +36 -100
- package/lib/components/timeline/item/TimelineItemProps.js +2 -18
- package/lib/components/timeline/item/TimelineItemProps.mjs +1 -0
- package/lib/components/timeline/item/index.d.mts +1 -0
- package/lib/components/timeline/item/index.d.ts +1 -0
- package/lib/components/timeline/item/index.js +4 -130
- package/lib/components/timeline/item/index.mjs +5 -4
- package/lib/components/timeline/item/index.native.js +4 -0
- package/lib/components/timeline/marker/TimelineMarker.js +26 -223
- package/lib/components/timeline/marker/TimelineMarker.mjs +4 -4
- package/lib/components/timeline/marker/TimelineMarker.native.js +52 -369
- package/lib/components/timeline/marker/TimelineMarkerProps.js +2 -18
- package/lib/components/timeline/marker/TimelineMarkerProps.mjs +1 -0
- package/lib/components/timeline/marker/index.d.mts +1 -0
- package/lib/components/timeline/marker/index.d.ts +1 -0
- package/lib/components/timeline/marker/index.js +4 -227
- package/lib/components/timeline/marker/index.mjs +6 -5
- package/lib/components/timeline/marker/index.native.js +4 -0
- package/lib/components/title/Title.js +68 -186
- package/lib/components/title/Title.mjs +2 -2
- package/lib/components/title/Title.native.js +89 -370
- package/lib/components/title/TitleEnum.js +25 -52
- package/lib/components/title/TitleEnum.mjs +1 -1
- package/lib/components/title/TitleProps.js +2 -18
- package/lib/components/title/TitleProps.mjs +1 -0
- package/lib/components/title/index.d.mts +1 -0
- package/lib/components/title/index.d.ts +1 -0
- package/lib/components/title/index.js +5 -209
- package/lib/components/title/index.mjs +4 -3
- package/lib/components/title/index.native.js +5 -0
- package/lib/components/view/View.js +42 -373
- package/lib/components/view/View.mjs +7 -7
- package/lib/components/view/View.native.js +48 -343
- package/lib/components/view/ViewEnum.js +21 -48
- package/lib/components/view/ViewEnum.mjs +1 -1
- package/lib/components/view/ViewProps.js +21 -49
- package/lib/components/view/ViewProps.mjs +1 -1
- package/lib/components/view/index.js +5 -405
- package/lib/components/view/index.mjs +7 -7
- package/lib/components/view/index.native.js +5 -0
- package/lib/context/index.js +12 -51
- package/lib/context/index.mjs +1 -1
- package/lib/context/index.native.js +5 -30
- package/lib/context/interfaces.js +2 -18
- package/lib/context/provider/index.js +34 -81
- package/lib/context/provider/index.mjs +3 -3
- package/lib/context/provider/index.native.js +3 -31
- package/lib/context/providerStates/index.js +6 -34
- package/lib/context/providerStates/index.mjs +9 -4
- package/lib/context/providerStyled/index.mjs +1 -1
- package/lib/context/providerStyled/index.native.js +3 -31
- package/lib/context/providerTheme/index.js +12 -54
- package/lib/context/providerTheme/index.mjs +1 -1
- package/lib/context/providerTheme/index.native.js +18 -113
- package/lib/context/test/provider.test.js +110 -114
- package/lib/context/test/provider.test.mjs +112 -71
- package/lib/events/OnClickEvent/index.js +2 -18
- package/lib/helpers/device/index.js +27 -63
- package/lib/helpers/device/index.mjs +1 -1
- package/lib/helpers/device/index.native.js +29 -0
- package/lib/helpers/enumHelpers/index.js +6 -37
- package/lib/helpers/enumHelpers/index.mjs +1 -1
- package/lib/helpers/hashClassesHelpers/index.js +18 -62
- package/lib/helpers/hashClassesHelpers/index.mjs +1 -1
- package/lib/helpers/index.js +5 -129
- package/lib/helpers/index.mjs +4 -4
- package/lib/helpers/index.native.js +5 -0
- package/lib/helpers/require/index.js +3 -43
- package/lib/helpers/require/index.mjs +1 -1
- package/lib/helpers/testHelpers/index.js +11 -39
- package/lib/helpers/testHelpers/index.mjs +1 -1
- package/lib/index.d.mts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1146 -1587
- package/lib/index.mjs +301 -284
- package/lib/index.native.js +7 -0
- package/lib/objects/Typography/TypographyAlign/index.js +25 -40
- package/lib/objects/Typography/TypographyAlign/index.mjs +1 -1
- package/lib/objects/Typography/TypographyBold/index.js +46 -91
- package/lib/objects/Typography/TypographyBold/index.mjs +2 -2
- package/lib/objects/Typography/TypographyBold/index.native.js +48 -0
- package/lib/objects/Typography/TypographyColor/index.js +54 -109
- package/lib/objects/Typography/TypographyColor/index.mjs +1 -1
- package/lib/objects/Typography/TypographyColor/index.native.js +55 -0
- package/lib/objects/Typography/TypographyTransform/index.js +11 -36
- package/lib/objects/Typography/TypographyTransform/index.mjs +1 -1
- package/lib/objects/Typography/index.js +5 -182
- package/lib/objects/Typography/index.mjs +7 -7
- package/lib/objects/Typography/index.native.js +5 -0
- package/lib/objects/atoms/Background/index.js +10 -85
- package/lib/objects/atoms/Background/index.mjs +1 -1
- package/lib/objects/atoms/Text/index.js +36 -50
- package/lib/objects/atoms/Text/index.mjs +1 -1
- package/lib/objects/atoms/index.js +3 -111
- package/lib/objects/atoms/index.mjs +1 -1
- package/lib/objects/facets/Accessibility/index.js +2 -18
- package/lib/objects/facets/Alignable/index.js +59 -79
- package/lib/objects/facets/Alignable/index.mjs +1 -1
- package/lib/objects/facets/Alternate/index.js +2 -18
- package/lib/objects/facets/Centerable/index.js +2 -18
- package/lib/objects/facets/ChildrenWithNoText/index.js +2 -18
- package/lib/objects/facets/Clickable/index.js +2 -18
- package/lib/objects/facets/Clipped/index.js +2 -18
- package/lib/objects/facets/Color/index.js +144 -180
- package/lib/objects/facets/Color/index.mjs +1 -1
- package/lib/objects/facets/Color/index.native.js +155 -0
- package/lib/objects/facets/CommonProps/index.js +2 -18
- package/lib/objects/facets/Dev/index.js +2 -18
- package/lib/objects/facets/Direction/index.js +6 -34
- package/lib/objects/facets/Direction/index.mjs +1 -1
- package/lib/objects/facets/Fullheight/index.js +2 -18
- package/lib/objects/facets/Fullwidth/index.js +2 -18
- package/lib/objects/facets/Hat/index.js +2 -18
- package/lib/objects/facets/Hidden/index.js +2 -18
- package/lib/objects/facets/Invertable/index.js +2 -18
- package/lib/objects/facets/Justifiable/index.js +84 -113
- package/lib/objects/facets/Justifiable/index.mjs +1 -1
- package/lib/objects/facets/Layout/index.js +2 -18
- package/lib/objects/facets/Loadable/index.js +23 -45
- package/lib/objects/facets/Loadable/index.mjs +1 -1
- package/lib/objects/facets/Marginless/index.js +2 -18
- package/lib/objects/facets/Narrow/index.js +2 -18
- package/lib/objects/facets/Paddingless/index.js +2 -18
- package/lib/objects/facets/Position/index.js +2 -18
- package/lib/objects/facets/Referenceable/index.js +2 -18
- package/lib/objects/facets/ScrollDirection/index.js +6 -34
- package/lib/objects/facets/ScrollDirection/index.mjs +1 -1
- package/lib/objects/facets/Small/index.js +2 -18
- package/lib/objects/facets/Stacked/index.js +2 -18
- package/lib/objects/facets/Status/index.js +66 -280
- package/lib/objects/facets/Status/index.mjs +3 -3
- package/lib/objects/facets/Status/index.native.js +70 -0
- package/lib/objects/facets/Sticky/index.js +6 -34
- package/lib/objects/facets/Sticky/index.mjs +1 -1
- package/lib/objects/facets/Variant/index.js +54 -135
- package/lib/objects/facets/Variant/index.mjs +1 -1
- package/lib/objects/facets/Variant/index.native.js +57 -0
- package/lib/objects/facets/VerticalPaddingless/index.js +2 -18
- package/lib/objects/facets/index.js +31 -613
- package/lib/objects/facets/index.mjs +8 -8
- package/lib/objects/facets/index.native.js +31 -0
- package/lib/objects/index.js +4 -732
- package/lib/objects/index.mjs +14 -14
- package/lib/objects/index.native.js +4 -0
- package/lib/services/classify/index.js +13 -47
- package/lib/services/classify/index.mjs +1 -1
- package/lib/services/index.js +2 -51
- package/lib/services/index.mjs +1 -1
- package/lib/tsup.config.d.mts +2 -0
- package/lib/tsup.config.d.ts +2 -0
- package/lib/version.d.mts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +2 -30
- package/lib/version.json +1 -1
- package/lib/version.mjs +2 -2
- package/package.json +3 -2
- package/lib/chunk-23QAKWRT.mjs +0 -23
- package/lib/chunk-25BSGNJQ.mjs +0 -88
- package/lib/chunk-27AXWBOH.mjs +0 -293
- package/lib/chunk-2BZ2VI6P.mjs +0 -10
- package/lib/chunk-2KZUGYFC.mjs +0 -10
- package/lib/chunk-2NFFUWOC.mjs +0 -49
- package/lib/chunk-464E6G2G.mjs +0 -49
- package/lib/chunk-4FTHP3HH.mjs +0 -34
- package/lib/chunk-4K6MLV5J.mjs +0 -11
- package/lib/chunk-4LBZ3XBH.mjs +0 -10
- package/lib/chunk-4VQ23W74.mjs +0 -92
- package/lib/chunk-4WFWYG5G.mjs +0 -45
- package/lib/chunk-52B77LHM.mjs +0 -61
- package/lib/chunk-5RSA2JUY.mjs +0 -10
- package/lib/chunk-5ULJSSPK.mjs +0 -94
- package/lib/chunk-5VXNRGQP.mjs +0 -10
- package/lib/chunk-5WUZLA5U.mjs +0 -23
- package/lib/chunk-6CKUXYFW.mjs +0 -32
- package/lib/chunk-6DURE6PX.mjs +0 -50
- package/lib/chunk-6E24XGPG.mjs +0 -224
- package/lib/chunk-6F4GWAQR.mjs +0 -57
- package/lib/chunk-6HDUOAQJ.mjs +0 -58
- package/lib/chunk-6MRXQEXG.mjs +0 -56
- package/lib/chunk-6O27I7YS.mjs +0 -10
- package/lib/chunk-6RRKQLD2.mjs +0 -35
- package/lib/chunk-6UHOTVOM.mjs +0 -10
- package/lib/chunk-72TZ3YCA.mjs +0 -26
- package/lib/chunk-7D7LKWSD.mjs +0 -48
- package/lib/chunk-7DMYYWFF.mjs +0 -196
- package/lib/chunk-7MMP2TTO.mjs +0 -27
- package/lib/chunk-7ZC2EADB.mjs +0 -41
- package/lib/chunk-A6HIEHFY.mjs +0 -50
- package/lib/chunk-AKO67F5N.mjs +0 -10
- package/lib/chunk-ARDRXO37.mjs +0 -10
- package/lib/chunk-ASMV3Z5S.mjs +0 -78
- package/lib/chunk-AY2JUWGX.mjs +0 -40
- package/lib/chunk-BTJ3MRA4.mjs +0 -31
- package/lib/chunk-C4SZWFXY.mjs +0 -45
- package/lib/chunk-C7BQGWWB.mjs +0 -98
- package/lib/chunk-CEUO2YH7.mjs +0 -10
- package/lib/chunk-CYKIRS7S.mjs +0 -10
- package/lib/chunk-D54BWZBZ.mjs +0 -6
- package/lib/chunk-DCHIMQHR.mjs +0 -90
- package/lib/chunk-DCZEMRVR.mjs +0 -54
- package/lib/chunk-DEIVRKFT.mjs +0 -87
- package/lib/chunk-E6ZKOM6O.mjs +0 -112
- package/lib/chunk-EGMZKSCZ.mjs +0 -167
- package/lib/chunk-EHBRE7UT.mjs +0 -44
- package/lib/chunk-EVSLOZK4.mjs +0 -10
- package/lib/chunk-EX2XLAAA.mjs +0 -111
- package/lib/chunk-FZQ6JRGK.mjs +0 -43
- package/lib/chunk-G5TZKCZB.mjs +0 -37
- package/lib/chunk-GASX25GY.mjs +0 -31
- package/lib/chunk-GIGB6DRD.mjs +0 -10
- package/lib/chunk-GQJD5TBY.mjs +0 -10
- package/lib/chunk-HKPWGLB2.mjs +0 -98
- package/lib/chunk-HUAOZ4KN.mjs +0 -46
- package/lib/chunk-JDRCAXLZ.mjs +0 -47
- package/lib/chunk-JHALTDMM.mjs +0 -149
- package/lib/chunk-JICWBGO7.mjs +0 -26
- package/lib/chunk-JN3Y5YKN.mjs +0 -42
- package/lib/chunk-JSU474PM.mjs +0 -112
- package/lib/chunk-JZJ5OVI3.mjs +0 -70
- package/lib/chunk-KBELXV3G.mjs +0 -75
- package/lib/chunk-KFJX6EUX.mjs +0 -35
- package/lib/chunk-KJPJBTU3.mjs +0 -39
- package/lib/chunk-L3EWKVGK.mjs +0 -50
- package/lib/chunk-L4E6EFSE.mjs +0 -99
- package/lib/chunk-LB77O5E4.mjs +0 -34
- package/lib/chunk-LRDFFA4N.mjs +0 -115
- package/lib/chunk-M3QCBOMR.mjs +0 -170
- package/lib/chunk-M6N7BEOQ.mjs +0 -452
- package/lib/chunk-N74Y4RTS.mjs +0 -56
- package/lib/chunk-NC4ADG7Y.mjs +0 -10
- package/lib/chunk-NGQ7NKVZ.mjs +0 -58
- package/lib/chunk-NQNAS6P6.mjs +0 -108
- package/lib/chunk-NUAAULBS.mjs +0 -10
- package/lib/chunk-NUL2NM3T.mjs +0 -34
- package/lib/chunk-NVXOPUHQ.mjs +0 -38
- package/lib/chunk-NX5S7M4U.mjs +0 -113
- package/lib/chunk-NYTDVUJA.mjs +0 -27
- package/lib/chunk-NZC6XZ5P.mjs +0 -104
- package/lib/chunk-OLOR7JJS.mjs +0 -107
- package/lib/chunk-OMXKQXW3.mjs +0 -38
- package/lib/chunk-OT23T7T7.mjs +0 -12
- package/lib/chunk-P6CYEOEU.mjs +0 -34
- package/lib/chunk-PDX2MBDM.mjs +0 -56
- package/lib/chunk-PMVCX6G5.mjs +0 -10
- package/lib/chunk-PNHDHZ6W.mjs +0 -42
- package/lib/chunk-PUI2WFL6.mjs +0 -37
- package/lib/chunk-PWGS2QOF.mjs +0 -75
- package/lib/chunk-Q7T5TQSP.mjs +0 -55
- package/lib/chunk-QQO2ZZKK.mjs +0 -32
- package/lib/chunk-R4YRDHPM.mjs +0 -43
- package/lib/chunk-REJOU4FA.mjs +0 -29
- package/lib/chunk-REZTEZGD.mjs +0 -40
- package/lib/chunk-RL2RIYOW.mjs +0 -179
- package/lib/chunk-ROQNINF3.mjs +0 -74
- package/lib/chunk-RUUTYXKP.mjs +0 -10
- package/lib/chunk-S3NVF5RX.mjs +0 -98
- package/lib/chunk-S5SNGJ6D.mjs +0 -29
- package/lib/chunk-SI3UQ4KE.mjs +0 -147
- package/lib/chunk-SZNGJMRR.mjs +0 -54
- package/lib/chunk-TA74RDPN.mjs +0 -10
- package/lib/chunk-TCXXIVXR.mjs +0 -10
- package/lib/chunk-TOZQZGNE.mjs +0 -10
- package/lib/chunk-TYN3DL2P.mjs +0 -12
- package/lib/chunk-U2DPDTMX.mjs +0 -55
- package/lib/chunk-UFFFAKGD.mjs +0 -10
- package/lib/chunk-UPJXU7XF.mjs +0 -1173
- package/lib/chunk-UT74RMOI.mjs +0 -61
- package/lib/chunk-V62WQTG3.mjs +0 -36
- package/lib/chunk-VZXEOOIF.mjs +0 -10
- package/lib/chunk-WNOUV4YC.mjs +0 -48
- package/lib/chunk-WPFFWM52.mjs +0 -102
- package/lib/chunk-X6IC6AUM.mjs +0 -47
- package/lib/chunk-XL2CSAQF.mjs +0 -7
- package/lib/chunk-XTOV4DLD.mjs +0 -12
- package/lib/chunk-Y224LKBE.mjs +0 -113
- package/lib/chunk-YAUPGZJ6.mjs +0 -145
- package/lib/chunk-YIEH3QZ4.mjs +0 -44
- package/lib/chunk-YLGY2MMV.mjs +0 -93
- package/lib/chunk-YOQ5TPNT.mjs +0 -46
- package/lib/chunk-YRT7F7D6.mjs +0 -10
- package/lib/chunk-YTUCHYNR.mjs +0 -88
- package/lib/chunk-Z2332RKX.mjs +0 -118
- package/lib/chunk-Z4JQMRUL.mjs +0 -26
- package/lib/chunk-ZDE4I55C.mjs +0 -56
- package/lib/chunk-ZG5GSZ7B.mjs +0 -52
- package/lib/chunk-ZIPFFPLM.mjs +0 -37
- package/lib/chunk-ZO46D3GS.mjs +0 -10
- package/lib/chunk-ZOW27NA6.mjs +0 -107
- package/lib/chunk-ZPRBHA2I.mjs +0 -58
- package/lib/chunk-ZV47FGL7.mjs +0 -43
- package/lib/components/accordion/Accordion.native.d.mts +0 -9
- package/lib/components/accordion/Accordion.native.d.ts +0 -9
- package/lib/components/accordion/Accordion.native.mjs +0 -25
- package/lib/components/accordion/item/AccordionItem.native.d.mts +0 -13
- package/lib/components/accordion/item/AccordionItem.native.d.ts +0 -13
- package/lib/components/accordion/item/AccordionItem.native.mjs +0 -173
- package/lib/components/accordion/item/body/AccordionBody.native.d.mts +0 -9
- package/lib/components/accordion/item/body/AccordionBody.native.d.ts +0 -9
- package/lib/components/accordion/item/body/AccordionBody.native.mjs +0 -23
- package/lib/components/accordion/item/body/test/AccordionBody.native.test.d.mts +0 -1
- package/lib/components/accordion/item/body/test/AccordionBody.native.test.d.ts +0 -1
- package/lib/components/accordion/item/body/test/AccordionBody.test.d.mts +0 -1
- package/lib/components/accordion/item/body/test/AccordionBody.test.d.ts +0 -1
- package/lib/components/accordion/item/header/AccordionHeader.native.d.mts +0 -9
- package/lib/components/accordion/item/header/AccordionHeader.native.d.ts +0 -9
- package/lib/components/accordion/item/header/AccordionHeader.native.mjs +0 -23
- package/lib/components/accordion/item/header/test/AccordionHeader.native.test.d.mts +0 -1
- package/lib/components/accordion/item/header/test/AccordionHeader.native.test.d.ts +0 -1
- package/lib/components/accordion/item/header/test/AccordionHeader.test.d.mts +0 -1
- package/lib/components/accordion/item/header/test/AccordionHeader.test.d.ts +0 -1
- package/lib/components/accordion/item/test/AccordionItem.native.test.d.mts +0 -1
- package/lib/components/accordion/item/test/AccordionItem.native.test.d.ts +0 -1
- package/lib/components/accordion/item/test/AccordionItem.test.d.mts +0 -1
- package/lib/components/accordion/item/test/AccordionItem.test.d.ts +0 -1
- package/lib/components/accordion/test/Accordion.native.test.d.mts +0 -1
- package/lib/components/accordion/test/Accordion.native.test.d.ts +0 -1
- package/lib/components/accordion/test/Accordion.test.d.mts +0 -1
- package/lib/components/accordion/test/Accordion.test.d.ts +0 -1
- package/lib/components/alert/Alert.native.d.mts +0 -34
- package/lib/components/alert/Alert.native.d.ts +0 -34
- package/lib/components/alert/Alert.native.mjs +0 -199
- package/lib/components/alert/test/Alert.native.test.d.mts +0 -1
- package/lib/components/alert/test/Alert.native.test.d.ts +0 -1
- package/lib/components/alert/test/Alert.test.d.mts +0 -1
- package/lib/components/alert/test/Alert.test.d.ts +0 -1
- package/lib/components/autocomplete/AutoComplete.native.d.mts +0 -27
- package/lib/components/autocomplete/AutoComplete.native.d.ts +0 -27
- package/lib/components/autocomplete/AutoComplete.native.mjs +0 -213
- package/lib/components/autocomplete/item/AutoCompleteIem.native.d.mts +0 -3
- package/lib/components/autocomplete/item/AutoCompleteIem.native.d.ts +0 -3
- package/lib/components/autocomplete/item/AutoCompleteIem.native.mjs +0 -15
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.d.mts +0 -3
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.d.ts +0 -3
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.mjs +0 -65
- package/lib/components/autocomplete/test/Autocomplete.native.test.d.mts +0 -1
- package/lib/components/autocomplete/test/Autocomplete.native.test.d.ts +0 -1
- package/lib/components/autocomplete/test/Autocomplete.test.d.mts +0 -1
- package/lib/components/autocomplete/test/Autocomplete.test.d.ts +0 -1
- package/lib/components/autolayout/AutoLayout.native.d.mts +0 -12
- package/lib/components/autolayout/AutoLayout.native.d.ts +0 -12
- package/lib/components/autolayout/AutoLayout.native.mjs +0 -40
- package/lib/components/autolayout/test/AutoLayout.native.test.d.mts +0 -1
- package/lib/components/autolayout/test/AutoLayout.native.test.d.ts +0 -1
- package/lib/components/autolayout/test/AutoLayout.test.d.mts +0 -1
- package/lib/components/autolayout/test/AutoLayout.test.d.ts +0 -1
- package/lib/components/badge/Badge.native.d.mts +0 -18
- package/lib/components/badge/Badge.native.d.ts +0 -18
- package/lib/components/badge/Badge.native.mjs +0 -162
- package/lib/components/badge/test/Badge.test.d.mts +0 -1
- package/lib/components/badge/test/Badge.test.d.ts +0 -1
- package/lib/components/box/Box.native.d.mts +0 -22
- package/lib/components/box/Box.native.d.ts +0 -22
- package/lib/components/box/Box.native.mjs +0 -160
- package/lib/components/box/content/BoxContent.native.d.mts +0 -11
- package/lib/components/box/content/BoxContent.native.d.ts +0 -11
- package/lib/components/box/content/BoxContent.native.mjs +0 -41
- package/lib/components/box/footer/BoxFooter.native.d.mts +0 -10
- package/lib/components/box/footer/BoxFooter.native.d.ts +0 -10
- package/lib/components/box/footer/BoxFooter.native.mjs +0 -84
- package/lib/components/box/header/BoxHeader.native.d.mts +0 -10
- package/lib/components/box/header/BoxHeader.native.d.ts +0 -10
- package/lib/components/box/header/BoxHeader.native.mjs +0 -63
- package/lib/components/box/item/BoxItem.native.d.mts +0 -10
- package/lib/components/box/item/BoxItem.native.d.ts +0 -10
- package/lib/components/box/item/BoxItem.native.mjs +0 -28
- package/lib/components/box/table-container/BoxTableContainer.native.d.mts +0 -9
- package/lib/components/box/table-container/BoxTableContainer.native.d.ts +0 -9
- package/lib/components/box/table-container/BoxTableContainer.native.mjs +0 -23
- package/lib/components/box/test/Box.native.test.d.mts +0 -1
- package/lib/components/box/test/Box.native.test.d.ts +0 -1
- package/lib/components/box/test/Box.test.d.mts +0 -1
- package/lib/components/box/test/Box.test.d.ts +0 -1
- package/lib/components/breadcrumb/Breadcrumb.native.d.mts +0 -10
- package/lib/components/breadcrumb/Breadcrumb.native.d.ts +0 -10
- package/lib/components/breadcrumb/Breadcrumb.native.mjs +0 -46
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.d.mts +0 -13
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.d.ts +0 -13
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.mjs +0 -51
- package/lib/components/breadcrumb/test/Breadcrumb.native.test.d.mts +0 -1
- package/lib/components/breadcrumb/test/Breadcrumb.native.test.d.ts +0 -1
- package/lib/components/breadcrumb/test/Breadcrumb.test.d.mts +0 -1
- package/lib/components/breadcrumb/test/Breadcrumb.test.d.ts +0 -1
- package/lib/components/breadcrumb/test/BreadcrumbItem.test.d.mts +0 -1
- package/lib/components/breadcrumb/test/BreadcrumbItem.test.d.ts +0 -1
- package/lib/components/button/Button.native.d.mts +0 -17
- package/lib/components/button/Button.native.d.ts +0 -17
- package/lib/components/button/Button.native.mjs +0 -200
- package/lib/components/button/list/ButtonList.native.d.mts +0 -9
- package/lib/components/button/list/ButtonList.native.d.ts +0 -9
- package/lib/components/button/list/ButtonList.native.mjs +0 -16
- package/lib/components/button/test/Button.native.test.d.mts +0 -1
- package/lib/components/button/test/Button.native.test.d.ts +0 -1
- package/lib/components/button/test/Button.test.d.mts +0 -1
- package/lib/components/button/test/Button.test.d.ts +0 -1
- package/lib/components/button/test/ButtonList.test.d.mts +0 -1
- package/lib/components/button/test/ButtonList.test.d.ts +0 -1
- package/lib/components/card/Card.native.d.mts +0 -25
- package/lib/components/card/Card.native.d.ts +0 -25
- package/lib/components/card/Card.native.mjs +0 -14
- package/lib/components/card/content/CardContent.native.d.mts +0 -9
- package/lib/components/card/content/CardContent.native.d.ts +0 -9
- package/lib/components/card/content/CardContent.native.mjs +0 -35
- package/lib/components/card/content/test/CardContent.native.test.d.mts +0 -1
- package/lib/components/card/content/test/CardContent.native.test.d.ts +0 -1
- package/lib/components/card/content/test/CardContent.test.d.mts +0 -1
- package/lib/components/card/content/test/CardContent.test.d.ts +0 -1
- package/lib/components/card/image/CardImage.native.d.mts +0 -14
- package/lib/components/card/image/CardImage.native.d.ts +0 -14
- package/lib/components/card/image/CardImage.native.mjs +0 -60
- package/lib/components/card/image/test/CardImage.native.test.d.mts +0 -1
- package/lib/components/card/image/test/CardImage.native.test.d.ts +0 -1
- package/lib/components/card/image/test/CardImage.test.d.mts +0 -1
- package/lib/components/card/image/test/CardImage.test.d.ts +0 -1
- package/lib/components/card/test/Card.native.test.d.mts +0 -1
- package/lib/components/card/test/Card.native.test.d.ts +0 -1
- package/lib/components/card/test/Card.test.d.mts +0 -1
- package/lib/components/card/test/Card.test.d.ts +0 -1
- package/lib/components/checkbox/Checkbox.native.d.mts +0 -16
- package/lib/components/checkbox/Checkbox.native.d.ts +0 -16
- package/lib/components/checkbox/Checkbox.native.mjs +0 -81
- package/lib/components/checkbox/list/CheckboxList.native.d.mts +0 -9
- package/lib/components/checkbox/list/CheckboxList.native.d.ts +0 -9
- package/lib/components/checkbox/list/CheckboxList.native.mjs +0 -39
- package/lib/components/checkbox/test/Checkbox.native.test.d.mts +0 -1
- package/lib/components/checkbox/test/Checkbox.native.test.d.ts +0 -1
- package/lib/components/checkbox/test/Checkbox.test.d.mts +0 -1
- package/lib/components/checkbox/test/Checkbox.test.d.ts +0 -1
- package/lib/components/checkbox/tiles/CheckboxTiles.native.d.mts +0 -5
- package/lib/components/checkbox/tiles/CheckboxTiles.native.d.ts +0 -5
- package/lib/components/checkbox/tiles/CheckboxTiles.native.mjs +0 -38
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.d.mts +0 -5
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.d.ts +0 -5
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.mjs +0 -227
- package/lib/components/chips/Chips.native.d.mts +0 -13
- package/lib/components/chips/Chips.native.d.ts +0 -13
- package/lib/components/chips/Chips.native.mjs +0 -92
- package/lib/components/chips/list/ChipsList.native.d.mts +0 -13
- package/lib/components/chips/list/ChipsList.native.d.ts +0 -13
- package/lib/components/chips/list/ChipsList.native.mjs +0 -10
- package/lib/components/chips/list/test/ChipsList.native.test.d.mts +0 -1
- package/lib/components/chips/list/test/ChipsList.native.test.d.ts +0 -1
- package/lib/components/chips/list/test/ChipsList.test.d.mts +0 -1
- package/lib/components/chips/list/test/ChipsList.test.d.ts +0 -1
- package/lib/components/chips/test/Chips.native.test.d.mts +0 -1
- package/lib/components/chips/test/Chips.native.test.d.ts +0 -1
- package/lib/components/chips/test/Chips.test.d.mts +0 -1
- package/lib/components/chips/test/Chips.test.d.ts +0 -1
- package/lib/components/columns/Columns.native.d.mts +0 -13
- package/lib/components/columns/Columns.native.d.ts +0 -13
- package/lib/components/columns/Columns.native.mjs +0 -112
- package/lib/components/columns/column/Column.native.d.mts +0 -9
- package/lib/components/columns/column/Column.native.d.ts +0 -9
- package/lib/components/columns/column/Column.native.mjs +0 -104
- package/lib/components/container/Container.native.d.mts +0 -9
- package/lib/components/container/Container.native.d.ts +0 -9
- package/lib/components/container/Container.native.mjs +0 -28
- package/lib/components/container/test/Container.native.test.d.mts +0 -1
- package/lib/components/container/test/Container.native.test.d.ts +0 -1
- package/lib/components/container/test/Container.test.d.mts +0 -1
- package/lib/components/container/test/Container.test.d.ts +0 -1
- package/lib/components/countdown/Countdown.native.d.mts +0 -15
- package/lib/components/countdown/Countdown.native.d.ts +0 -15
- package/lib/components/countdown/Countdown.native.mjs +0 -164
- package/lib/components/countdown/test/Countdown.native.test.d.mts +0 -1
- package/lib/components/countdown/test/Countdown.native.test.d.ts +0 -1
- package/lib/components/countdown/test/Countdown.test.d.mts +0 -1
- package/lib/components/countdown/test/Countdown.test.d.ts +0 -1
- package/lib/components/divider/Divider.native.d.mts +0 -14
- package/lib/components/divider/Divider.native.d.ts +0 -14
- package/lib/components/divider/Divider.native.mjs +0 -106
- package/lib/components/divider/test/Divider.native.test.d.mts +0 -1
- package/lib/components/divider/test/Divider.native.test.d.ts +0 -1
- package/lib/components/divider/test/Divider.test.d.mts +0 -1
- package/lib/components/divider/test/Divider.test.d.ts +0 -1
- package/lib/components/fab/Fab.native.d.mts +0 -18
- package/lib/components/fab/Fab.native.d.ts +0 -18
- package/lib/components/fab/Fab.native.mjs +0 -140
- package/lib/components/fab/test/Fab.test.d.mts +0 -1
- package/lib/components/fab/test/Fab.test.d.ts +0 -1
- package/lib/components/flex-box/FlexBox.native.d.mts +0 -5
- package/lib/components/flex-box/FlexBox.native.d.ts +0 -5
- package/lib/components/flex-box/FlexBox.native.mjs +0 -100
- package/lib/components/flex-box/flex-item/FlexItem.native.d.mts +0 -29
- package/lib/components/flex-box/flex-item/FlexItem.native.d.ts +0 -29
- package/lib/components/flex-box/flex-item/FlexItem.native.mjs +0 -55
- package/lib/components/hero/Hero.native.d.mts +0 -16
- package/lib/components/hero/Hero.native.d.ts +0 -16
- package/lib/components/hero/Hero.native.mjs +0 -136
- package/lib/components/hero/test/Hero.native.test.d.mts +0 -1
- package/lib/components/hero/test/Hero.native.test.d.ts +0 -1
- package/lib/components/hero/test/Hero.test.d.mts +0 -1
- package/lib/components/hero/test/Hero.test.d.ts +0 -1
- package/lib/components/icon/Icon.native.d.mts +0 -22
- package/lib/components/icon/Icon.native.d.ts +0 -22
- package/lib/components/icon/Icon.native.mjs +0 -136
- package/lib/components/icon/test/Icon.test.d.mts +0 -1
- package/lib/components/icon/test/Icon.test.d.ts +0 -1
- package/lib/components/image/Image.native.d.mts +0 -15
- package/lib/components/image/Image.native.d.ts +0 -15
- package/lib/components/image/Image.native.mjs +0 -39
- package/lib/components/image/test/Image.native.test.d.mts +0 -1
- package/lib/components/image/test/Image.native.test.d.ts +0 -1
- package/lib/components/image/test/Image.test.d.mts +0 -1
- package/lib/components/image/test/Image.test.d.ts +0 -1
- package/lib/components/input/Input.native.d.mts +0 -39
- package/lib/components/input/Input.native.d.ts +0 -39
- package/lib/components/input/Input.native.mjs +0 -71
- package/lib/components/input/gauge/InputGauge.native.d.mts +0 -7
- package/lib/components/input/gauge/InputGauge.native.d.ts +0 -7
- package/lib/components/input/gauge/InputGauge.native.mjs +0 -64
- package/lib/components/input/test/Input.native.test.d.mts +0 -1
- package/lib/components/input/test/Input.native.test.d.ts +0 -1
- package/lib/components/input/test/Input.test.d.mts +0 -1
- package/lib/components/input/test/Input.test.d.ts +0 -1
- package/lib/components/link/Link.native.d.mts +0 -16
- package/lib/components/link/Link.native.d.ts +0 -16
- package/lib/components/link/Link.native.mjs +0 -93
- package/lib/components/link/test/link.native.test.d.mts +0 -1
- package/lib/components/link/test/link.native.test.d.ts +0 -1
- package/lib/components/link/test/link.test.d.mts +0 -1
- package/lib/components/link/test/link.test.d.ts +0 -1
- package/lib/components/list/List.native.d.mts +0 -11
- package/lib/components/list/List.native.d.ts +0 -11
- package/lib/components/list/List.native.mjs +0 -24
- package/lib/components/list/item/ListItem.native.d.mts +0 -11
- package/lib/components/list/item/ListItem.native.d.ts +0 -11
- package/lib/components/list/item/ListItem.native.mjs +0 -113
- package/lib/components/list/item/description/ListItemDescription.native.d.mts +0 -8
- package/lib/components/list/item/description/ListItemDescription.native.d.ts +0 -8
- package/lib/components/list/item/description/ListItemDescription.native.mjs +0 -82
- package/lib/components/list/item/test/ListItem.native.test.d.mts +0 -1
- package/lib/components/list/item/test/ListItem.native.test.d.ts +0 -1
- package/lib/components/list/item/test/ListItem.test.d.mts +0 -1
- package/lib/components/list/item/test/ListItem.test.d.ts +0 -1
- package/lib/components/list/test/List.native.test.d.mts +0 -1
- package/lib/components/list/test/List.native.test.d.ts +0 -1
- package/lib/components/list/test/List.test.d.mts +0 -1
- package/lib/components/list/test/List.test.d.ts +0 -1
- package/lib/components/modal/Modal.native.d.mts +0 -15
- package/lib/components/modal/Modal.native.d.ts +0 -15
- package/lib/components/modal/Modal.native.mjs +0 -173
- package/lib/components/modal/body/ModalBody.native.d.mts +0 -10
- package/lib/components/modal/body/ModalBody.native.d.ts +0 -10
- package/lib/components/modal/body/ModalBody.native.mjs +0 -101
- package/lib/components/modal/footer/ModalFooter.native.d.mts +0 -9
- package/lib/components/modal/footer/ModalFooter.native.d.ts +0 -9
- package/lib/components/modal/footer/ModalFooter.native.mjs +0 -102
- package/lib/components/modal/test/Modal.test.d.mts +0 -1
- package/lib/components/modal/test/Modal.test.d.ts +0 -1
- package/lib/components/modal/test/ModalFooter.test.d.mts +0 -1
- package/lib/components/modal/test/ModalFooter.test.d.ts +0 -1
- package/lib/components/otp/Otp.native.d.mts +0 -17
- package/lib/components/otp/Otp.native.d.ts +0 -17
- package/lib/components/otp/Otp.native.mjs +0 -202
- package/lib/components/otp/test/Otp.native.test.d.mts +0 -1
- package/lib/components/otp/test/Otp.native.test.d.ts +0 -1
- package/lib/components/otp/test/Otp.test.d.mts +0 -1
- package/lib/components/otp/test/Otp.test.d.ts +0 -1
- package/lib/components/pagination/Pagination.native.d.mts +0 -12
- package/lib/components/pagination/Pagination.native.d.ts +0 -12
- package/lib/components/pagination/Pagination.native.mjs +0 -156
- package/lib/components/pagination/test/Pagination.native.test.d.mts +0 -1
- package/lib/components/pagination/test/Pagination.native.test.d.ts +0 -1
- package/lib/components/pagination/test/Pagination.test.d.mts +0 -1
- package/lib/components/pagination/test/Pagination.test.d.ts +0 -1
- package/lib/components/popover/Popover.native.d.mts +0 -12
- package/lib/components/popover/Popover.native.d.ts +0 -12
- package/lib/components/popover/Popover.native.mjs +0 -142
- package/lib/components/popover/test/Popover.test.d.mts +0 -1
- package/lib/components/popover/test/Popover.test.d.ts +0 -1
- package/lib/components/price/Price.native.d.mts +0 -21
- package/lib/components/price/Price.native.d.ts +0 -21
- package/lib/components/price/Price.native.mjs +0 -263
- package/lib/components/price/test/Price.native.test.d.mts +0 -1
- package/lib/components/price/test/Price.native.test.d.ts +0 -1
- package/lib/components/price/test/Price.test.d.mts +0 -1
- package/lib/components/price/test/Price.test.d.ts +0 -1
- package/lib/components/product-tour/ProductTour.native.d.mts +0 -9
- package/lib/components/product-tour/ProductTour.native.d.ts +0 -9
- package/lib/components/product-tour/ProductTour.native.mjs +0 -14
- package/lib/components/product-tour/test/ProductTour.native.test.d.mts +0 -1
- package/lib/components/product-tour/test/ProductTour.native.test.d.ts +0 -1
- package/lib/components/product-tour/test/ProductTour.test.d.mts +0 -1
- package/lib/components/product-tour/test/ProductTour.test.d.ts +0 -1
- package/lib/components/progress/Progress.native.d.mts +0 -13
- package/lib/components/progress/Progress.native.d.ts +0 -13
- package/lib/components/progress/Progress.native.mjs +0 -153
- package/lib/components/progress/item/ProgressItem.native.d.mts +0 -12
- package/lib/components/progress/item/ProgressItem.native.d.ts +0 -12
- package/lib/components/progress/item/ProgressItem.native.mjs +0 -35
- package/lib/components/progress/radial/ProgressRadial.native.d.mts +0 -17
- package/lib/components/progress/radial/ProgressRadial.native.d.ts +0 -17
- package/lib/components/progress/radial/ProgressRadial.native.mjs +0 -182
- package/lib/components/progress/radial/test/ProgressRadial.test.d.mts +0 -1
- package/lib/components/progress/radial/test/ProgressRadial.test.d.ts +0 -1
- package/lib/components/progress/test/Progress.test.d.mts +0 -1
- package/lib/components/progress/test/Progress.test.d.ts +0 -1
- package/lib/components/radio/Radio.native.d.mts +0 -16
- package/lib/components/radio/Radio.native.d.ts +0 -16
- package/lib/components/radio/Radio.native.mjs +0 -115
- package/lib/components/radio/list/RadioList.native.d.mts +0 -9
- package/lib/components/radio/list/RadioList.native.d.ts +0 -9
- package/lib/components/radio/list/RadioList.native.mjs +0 -40
- package/lib/components/radio/test/radio.test.d.mts +0 -1
- package/lib/components/radio/test/radio.test.d.ts +0 -1
- package/lib/components/radio/tiles/RadioTiles.native.d.mts +0 -12
- package/lib/components/radio/tiles/RadioTiles.native.d.ts +0 -12
- package/lib/components/radio/tiles/RadioTiles.native.mjs +0 -34
- package/lib/components/radio/tiles/tile/RadioTile.native.d.mts +0 -20
- package/lib/components/radio/tiles/tile/RadioTile.native.d.ts +0 -20
- package/lib/components/radio/tiles/tile/RadioTile.native.mjs +0 -191
- package/lib/components/range/Range.native.d.mts +0 -16
- package/lib/components/range/Range.native.d.ts +0 -16
- package/lib/components/range/Range.native.mjs +0 -136
- package/lib/components/range/test/Range.test.d.mts +0 -1
- package/lib/components/range/test/Range.test.d.ts +0 -1
- package/lib/components/rows/Rows.native.d.mts +0 -10
- package/lib/components/rows/Rows.native.d.ts +0 -10
- package/lib/components/rows/Rows.native.mjs +0 -30
- package/lib/components/rows/row/Row.native.d.mts +0 -10
- package/lib/components/rows/row/Row.native.d.ts +0 -10
- package/lib/components/rows/row/Row.native.mjs +0 -24
- package/lib/components/rows/test/Row.native.test.d.mts +0 -1
- package/lib/components/rows/test/Row.native.test.d.ts +0 -1
- package/lib/components/rows/test/Row.test.d.mts +0 -1
- package/lib/components/rows/test/Row.test.d.ts +0 -1
- package/lib/components/scroll-view/ScrollView.native.d.mts +0 -5
- package/lib/components/scroll-view/ScrollView.native.d.ts +0 -5
- package/lib/components/scroll-view/ScrollView.native.mjs +0 -179
- package/lib/components/section/Section.native.d.mts +0 -12
- package/lib/components/section/Section.native.d.ts +0 -12
- package/lib/components/section/Section.native.mjs +0 -92
- package/lib/components/section/test/Section.native.test.d.mts +0 -1
- package/lib/components/section/test/Section.native.test.d.ts +0 -1
- package/lib/components/section/test/Section.test.d.mts +0 -1
- package/lib/components/section/test/Section.test.d.ts +0 -1
- package/lib/components/segment-control/SegmentControl.native.d.mts +0 -11
- package/lib/components/segment-control/SegmentControl.native.d.ts +0 -11
- package/lib/components/segment-control/SegmentControl.native.mjs +0 -146
- package/lib/components/segment-control/item/SegmentControlItem.native.d.mts +0 -13
- package/lib/components/segment-control/item/SegmentControlItem.native.d.ts +0 -13
- package/lib/components/segment-control/item/SegmentControlItem.native.mjs +0 -71
- package/lib/components/segment-control/test/SegmentControl.native.test.d.mts +0 -1
- package/lib/components/segment-control/test/SegmentControl.native.test.d.ts +0 -1
- package/lib/components/segment-control/test/SegmentControl.test.d.mts +0 -1
- package/lib/components/segment-control/test/SegmentControl.test.d.ts +0 -1
- package/lib/components/select/Select.native.d.mts +0 -17
- package/lib/components/select/Select.native.d.ts +0 -17
- package/lib/components/select/Select.native.mjs +0 -239
- package/lib/components/select/option/SelectOption.native.d.mts +0 -11
- package/lib/components/select/option/SelectOption.native.d.ts +0 -11
- package/lib/components/select/option/SelectOption.native.mjs +0 -124
- package/lib/components/select/test/Select.test.d.mts +0 -1
- package/lib/components/select/test/Select.test.d.ts +0 -1
- package/lib/components/spacer/Spacer.native.d.mts +0 -10
- package/lib/components/spacer/Spacer.native.d.ts +0 -10
- package/lib/components/spacer/Spacer.native.mjs +0 -20
- package/lib/components/spacer/test/Spacer.test.d.mts +0 -1
- package/lib/components/spacer/test/Spacer.test.d.ts +0 -1
- package/lib/components/stepper/Stepper.native.d.mts +0 -10
- package/lib/components/stepper/Stepper.native.d.ts +0 -10
- package/lib/components/stepper/Stepper.native.mjs +0 -150
- package/lib/components/stepper/step/Step.native.d.mts +0 -12
- package/lib/components/stepper/step/Step.native.d.ts +0 -12
- package/lib/components/stepper/step/Step.native.mjs +0 -108
- package/lib/components/stepper/test/Stepper.native.test.d.mts +0 -1
- package/lib/components/stepper/test/Stepper.native.test.d.ts +0 -1
- package/lib/components/stepper/test/stepper.test.d.mts +0 -1
- package/lib/components/stepper/test/stepper.test.d.ts +0 -1
- package/lib/components/sticker/Sticker.native.d.mts +0 -15
- package/lib/components/sticker/Sticker.native.d.ts +0 -15
- package/lib/components/sticker/Sticker.native.mjs +0 -121
- package/lib/components/sticker/test/Sticker.native.test.d.mts +0 -1
- package/lib/components/sticker/test/Sticker.native.test.d.ts +0 -1
- package/lib/components/sticker/test/Sticker.test.d.mts +0 -1
- package/lib/components/sticker/test/Sticker.test.d.ts +0 -1
- package/lib/components/styleComponent/default/styleComponent.native.d.mts +0 -5
- package/lib/components/styleComponent/default/styleComponent.native.d.ts +0 -5
- package/lib/components/styleComponent/default/styleComponent.native.mjs +0 -11
- package/lib/components/styleComponent/mangled/styleComponentMangled.native.d.mts +0 -5
- package/lib/components/styleComponent/mangled/styleComponentMangled.native.d.ts +0 -5
- package/lib/components/styleComponent/mangled/styleComponentMangled.native.mjs +0 -11
- package/lib/components/switch/Switch.native.d.mts +0 -15
- package/lib/components/switch/Switch.native.d.ts +0 -15
- package/lib/components/switch/Switch.native.mjs +0 -110
- package/lib/components/switch/test/Switch.native.test.d.mts +0 -1
- package/lib/components/switch/test/Switch.native.test.d.ts +0 -1
- package/lib/components/switch/test/Switch.test.d.mts +0 -1
- package/lib/components/switch/test/Switch.test.d.ts +0 -1
- package/lib/components/table/Table.native.d.mts +0 -10
- package/lib/components/table/Table.native.d.ts +0 -10
- package/lib/components/table/Table.native.mjs +0 -95
- package/lib/components/table/body/TableBody.native.d.mts +0 -9
- package/lib/components/table/body/TableBody.native.d.ts +0 -9
- package/lib/components/table/body/TableBody.native.mjs +0 -25
- package/lib/components/table/head/TableHead.native.d.mts +0 -9
- package/lib/components/table/head/TableHead.native.d.ts +0 -9
- package/lib/components/table/head/TableHead.native.mjs +0 -24
- package/lib/components/table/td/TableTd.native.d.mts +0 -9
- package/lib/components/table/td/TableTd.native.d.ts +0 -9
- package/lib/components/table/td/TableTd.native.mjs +0 -86
- package/lib/components/table/test/Table.test.d.mts +0 -1
- package/lib/components/table/test/Table.test.d.ts +0 -1
- package/lib/components/table/test/TableBody.test.d.mts +0 -1
- package/lib/components/table/test/TableBody.test.d.ts +0 -1
- package/lib/components/table/test/TableHead.test.d.mts +0 -1
- package/lib/components/table/test/TableHead.test.d.ts +0 -1
- package/lib/components/table/test/TableTr.test.d.mts +0 -1
- package/lib/components/table/test/TableTr.test.d.ts +0 -1
- package/lib/components/table/th/TableTh.native.d.mts +0 -8
- package/lib/components/table/th/TableTh.native.d.ts +0 -8
- package/lib/components/table/th/TableTh.native.mjs +0 -98
- package/lib/components/table/tr/TableTr.native.d.mts +0 -10
- package/lib/components/table/tr/TableTr.native.d.ts +0 -10
- package/lib/components/table/tr/TableTr.native.mjs +0 -117
- package/lib/components/tabs/Tabs.native.d.mts +0 -11
- package/lib/components/tabs/Tabs.native.d.ts +0 -11
- package/lib/components/tabs/Tabs.native.mjs +0 -36
- package/lib/components/tabs/tab-list/TabList.native.d.mts +0 -14
- package/lib/components/tabs/tab-list/TabList.native.d.ts +0 -14
- package/lib/components/tabs/tab-list/TabList.native.mjs +0 -184
- package/lib/components/tabs/tab-list/tab/Tab.native.d.mts +0 -16
- package/lib/components/tabs/tab-list/tab/Tab.native.d.ts +0 -16
- package/lib/components/tabs/tab-list/tab/Tab.native.mjs +0 -84
- package/lib/components/tabs/tab-panels/TabPanels.native.d.mts +0 -13
- package/lib/components/tabs/tab-panels/TabPanels.native.d.ts +0 -13
- package/lib/components/tabs/tab-panels/TabPanels.native.mjs +0 -90
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.native.d.mts +0 -11
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.native.d.ts +0 -11
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.native.mjs +0 -46
- package/lib/components/tag/Tag.native.d.mts +0 -14
- package/lib/components/tag/Tag.native.d.ts +0 -14
- package/lib/components/tag/Tag.native.mjs +0 -75
- package/lib/components/tag/list/TagList.native.d.mts +0 -10
- package/lib/components/tag/list/TagList.native.d.ts +0 -10
- package/lib/components/tag/list/TagList.native.mjs +0 -32
- package/lib/components/tag/list/test/TagList.test.d.mts +0 -1
- package/lib/components/tag/list/test/TagList.test.d.ts +0 -1
- package/lib/components/tag/test/Tag.test.d.mts +0 -1
- package/lib/components/tag/test/Tag.test.d.ts +0 -1
- package/lib/components/text/Text.native.d.mts +0 -17
- package/lib/components/text/Text.native.d.ts +0 -17
- package/lib/components/text/Text.native.mjs +0 -100
- package/lib/components/text/test/Text.native.test.d.mts +0 -1
- package/lib/components/text/test/Text.native.test.d.ts +0 -1
- package/lib/components/text/test/Text.test.d.mts +0 -1
- package/lib/components/text/test/Text.test.d.ts +0 -1
- package/lib/components/textarea/Textarea.native.d.mts +0 -33
- package/lib/components/textarea/Textarea.native.d.ts +0 -33
- package/lib/components/textarea/Textarea.native.mjs +0 -232
- package/lib/components/textarea/test/textarea.native.test.d.mts +0 -1
- package/lib/components/textarea/test/textarea.native.test.d.ts +0 -1
- package/lib/components/textarea/test/textarea.test.d.mts +0 -1
- package/lib/components/textarea/test/textarea.test.d.ts +0 -1
- package/lib/components/timeline/Timeline.native.d.mts +0 -15
- package/lib/components/timeline/Timeline.native.d.ts +0 -15
- package/lib/components/timeline/Timeline.native.mjs +0 -10
- package/lib/components/timeline/content/TimelineContent.native.d.mts +0 -13
- package/lib/components/timeline/content/TimelineContent.native.d.ts +0 -13
- package/lib/components/timeline/content/TimelineContent.native.mjs +0 -111
- package/lib/components/timeline/content/test/TimelineContent.native.test.d.mts +0 -1
- package/lib/components/timeline/content/test/TimelineContent.native.test.d.ts +0 -1
- package/lib/components/timeline/content/test/TimelineContent.test.d.mts +0 -1
- package/lib/components/timeline/content/test/TimelineContent.test.d.ts +0 -1
- package/lib/components/timeline/item/TimelineItem.native.d.mts +0 -18
- package/lib/components/timeline/item/TimelineItem.native.d.ts +0 -18
- package/lib/components/timeline/item/TimelineItem.native.mjs +0 -11
- package/lib/components/timeline/item/test/TimelineItem.native.test.d.mts +0 -1
- package/lib/components/timeline/item/test/TimelineItem.native.test.d.ts +0 -1
- package/lib/components/timeline/item/test/TimelineItem.test.d.mts +0 -1
- package/lib/components/timeline/item/test/TimelineItem.test.d.ts +0 -1
- package/lib/components/timeline/marker/TimelineMarker.native.d.mts +0 -11
- package/lib/components/timeline/marker/TimelineMarker.native.d.ts +0 -11
- package/lib/components/timeline/marker/TimelineMarker.native.mjs +0 -112
- package/lib/components/timeline/marker/test/TimelineMarker.test.d.mts +0 -1
- package/lib/components/timeline/marker/test/TimelineMarker.test.d.ts +0 -1
- package/lib/components/timeline/test/Timeline.native.test.d.mts +0 -1
- package/lib/components/timeline/test/Timeline.native.test.d.ts +0 -1
- package/lib/components/timeline/test/Timeline.test.d.mts +0 -1
- package/lib/components/timeline/test/Timeline.test.d.ts +0 -1
- package/lib/components/title/Title.native.d.mts +0 -19
- package/lib/components/title/Title.native.d.ts +0 -19
- package/lib/components/title/Title.native.mjs +0 -157
- package/lib/components/title/test/Title.native.test.d.mts +0 -1
- package/lib/components/title/test/Title.native.test.d.ts +0 -1
- package/lib/components/title/test/Title.test.d.mts +0 -1
- package/lib/components/title/test/Title.test.d.ts +0 -1
- package/lib/components/view/View.native.d.mts +0 -18
- package/lib/components/view/View.native.d.ts +0 -18
- package/lib/components/view/View.native.mjs +0 -151
- package/lib/components/view/test/View.native.test.d.mts +0 -1
- package/lib/components/view/test/View.native.test.d.ts +0 -1
- package/lib/components/view/test/View.test.d.mts +0 -1
- package/lib/components/view/test/View.test.d.ts +0 -1
- package/lib/context/index.native.d.mts +0 -1
- package/lib/context/index.native.d.ts +0 -1
- package/lib/context/index.native.mjs +0 -9
- package/lib/context/provider/index.native.d.mts +0 -4
- package/lib/context/provider/index.native.d.ts +0 -4
- package/lib/context/provider/index.native.mjs +0 -9
- package/lib/context/providerStyled/index.native.d.mts +0 -4
- package/lib/context/providerStyled/index.native.d.ts +0 -4
- package/lib/context/providerStyled/index.native.mjs +0 -9
- package/lib/context/providerTheme/index.native.d.mts +0 -18
- package/lib/context/providerTheme/index.native.d.ts +0 -18
- package/lib/context/providerTheme/index.native.mjs +0 -41
- package/lib/context/test/provider.test.d.mts +0 -1
- package/lib/context/test/provider.test.d.ts +0 -1
- package/lib/helpers/device.native/index.d.mts +0 -19
- package/lib/helpers/device.native/index.d.ts +0 -19
- package/lib/helpers/device.native/index.js +0 -65
- package/lib/helpers/device.native/index.mjs +0 -15
- /package/lib/{chunk-2W5NCIYG.mjs → chunk-2DG5QKYT.mjs} +0 -0
- /package/lib/{chunk-6TJ4SNIT.mjs → chunk-2Z6TOSNT.mjs} +0 -0
- /package/lib/{chunk-773FLS3Z.mjs → chunk-6FQXIUGL.mjs} +0 -0
- /package/lib/{chunk-7V4Z4X42.mjs → chunk-AIJJV3E5.mjs} +0 -0
- /package/lib/{chunk-GXTMZJHF.mjs → chunk-AOMX3EPM.mjs} +0 -0
- /package/lib/{chunk-HPB5VEFZ.mjs → chunk-BA5Q6A2V.mjs} +0 -0
- /package/lib/{chunk-JOETSQOL.mjs → chunk-BF2M5NHK.mjs} +0 -0
- /package/lib/{chunk-KTI5GUQ2.mjs → chunk-CLBJ7NKF.mjs} +0 -0
- /package/lib/{chunk-MHY5NRID.mjs → chunk-DPKLVUQ4.mjs} +0 -0
- /package/lib/{chunk-PNOXYHZQ.mjs → chunk-GIWOUPHY.mjs} +0 -0
- /package/lib/{chunk-PTU4K5FZ.mjs → chunk-HW4EU2RU.mjs} +0 -0
- /package/lib/{chunk-QQH2C3SB.mjs → chunk-IDC4ORCI.mjs} +0 -0
- /package/lib/{chunk-R6T2LHN2.mjs → chunk-IF7MTI2Q.mjs} +0 -0
- /package/lib/{chunk-S2M32OWW.mjs → chunk-IT45EWST.mjs} +0 -0
- /package/lib/{chunk-TXDE2KMY.mjs → chunk-JC6NNDMG.mjs} +0 -0
- /package/lib/{chunk-ZJZDDJQJ.mjs → chunk-KEBSWHO3.mjs} +0 -0
- /package/lib/{chunk-ZZKO3PGP.mjs → chunk-LCOSP37I.mjs} +0 -0
- /package/lib/{chunk-SP3F32VS.mjs → chunk-UH4H3GKD.mjs} +0 -0
- /package/lib/{chunk-HGQH5E2A.mjs → chunk-VIDNOXFQ.mjs} +0 -0
|
@@ -1,1652 +1,132 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
var __export = (target, all) => {
|
|
38
|
-
for (var name in all)
|
|
39
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
40
|
-
};
|
|
41
|
-
var __copyProps = (to, from, except, desc) => {
|
|
42
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
43
|
-
for (let key of __getOwnPropNames(from))
|
|
44
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
45
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
46
|
-
}
|
|
47
|
-
return to;
|
|
48
|
-
};
|
|
49
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
50
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
51
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
52
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
53
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
54
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
55
|
-
mod
|
|
56
|
-
));
|
|
57
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
|
-
|
|
59
|
-
// components/select/Select.native.tsx
|
|
60
|
-
var Select_native_exports = {};
|
|
61
|
-
__export(Select_native_exports, {
|
|
62
|
-
default: () => Select_native_default
|
|
63
|
-
});
|
|
64
|
-
module.exports = __toCommonJS(Select_native_exports);
|
|
65
|
-
|
|
66
|
-
// context/index.tsx
|
|
67
|
-
var React = __toESM(require("react"));
|
|
68
|
-
var TrilogyContext = React.createContext({
|
|
69
|
-
styled: false,
|
|
70
|
-
setStyled: () => void 0
|
|
71
|
-
});
|
|
72
|
-
var useTrilogyContext = () => {
|
|
73
|
-
const context = React.useContext(TrilogyContext);
|
|
74
|
-
if (context === void 0) {
|
|
75
|
-
throw new Error("useTrilogyContext must be used within a TrilogyProvider");
|
|
76
|
-
}
|
|
77
|
-
return context;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
// helpers/hashClassesHelpers/index.tsx
|
|
81
|
-
var hashClass = (addHash = false, classes) => {
|
|
82
|
-
const { hash, styled } = useTrilogyContext();
|
|
83
|
-
if (classes.trim().length < 1) return "";
|
|
84
|
-
if (styled) {
|
|
85
|
-
return classes.split(" ").map((classe) => classe = `${classe}_${hash}`).join(" ");
|
|
86
|
-
}
|
|
87
|
-
return classes;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
// helpers/device/index.ts
|
|
91
|
-
var Device = /* @__PURE__ */ ((Device3) => {
|
|
92
|
-
Device3["Browser"] = "browser";
|
|
93
|
-
Device3["Server"] = "server";
|
|
94
|
-
Device3["Native"] = "native";
|
|
95
|
-
return Device3;
|
|
96
|
-
})(Device || {});
|
|
97
|
-
var { Browser, Server, Native } = Device;
|
|
98
|
-
var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
99
|
-
var canUseNative = typeof navigator != "undefined" && navigator.product == "ReactNative";
|
|
100
|
-
var device = canUseNative ? Native : canUseDOM ? Browser : Server;
|
|
101
|
-
var SSRObjectDefined = {
|
|
102
|
-
isBrowser: device === Browser,
|
|
103
|
-
isServer: device === Server,
|
|
104
|
-
isNative: device === Native,
|
|
105
|
-
device,
|
|
106
|
-
canUseWorkers: typeof Worker !== "undefined",
|
|
107
|
-
canUseEventListeners: device === Browser && !!window.addEventListener,
|
|
108
|
-
canUseViewport: device === Browser && !!window.screen
|
|
109
|
-
};
|
|
110
|
-
var assign = (...args) => Object.assign({}, ...args);
|
|
111
|
-
var values = (obj) => Object.values(obj);
|
|
112
|
-
var toArrayObject = () => assign((values(SSRObjectDefined), SSRObjectDefined));
|
|
113
|
-
var SSRObject = toArrayObject();
|
|
114
|
-
|
|
115
|
-
// context/providerTheme/index.tsx
|
|
116
|
-
var import_react = __toESM(require("react"));
|
|
117
|
-
var defaultTheme = {
|
|
118
|
-
icons: {},
|
|
119
|
-
colors: {},
|
|
120
|
-
fontFamily: {}
|
|
121
|
-
};
|
|
122
|
-
var defaultContextValue = {
|
|
123
|
-
theme: defaultTheme,
|
|
124
|
-
setTheme: () => void 0
|
|
125
|
-
};
|
|
126
|
-
var TrilogyThemeContext = import_react.default.createContext(defaultContextValue);
|
|
127
|
-
|
|
128
|
-
// objects/facets/Color/index.tsx
|
|
129
|
-
var import_react2 = require("react");
|
|
130
|
-
var colors = {
|
|
131
|
-
["WHITE" /* BACKGROUND */]: ["#fff", "white", "main"],
|
|
132
|
-
["MAIN" /* MAIN */]: ["#3d5d7e", "main", "white"],
|
|
133
|
-
["MAIN_FADE" /* MAIN_FADE */]: ["#BBC6CD", "main-fade", "white"],
|
|
134
|
-
["ACCENT" /* ACCENT */]: ["#da641b", "accent", "white"],
|
|
135
|
-
["FONT" /* FONT */]: ["#3d5d7e", "main", "white"],
|
|
136
|
-
["FONT_PLACEHOLDER" /* FONT_PLACEHOLDER */]: ["#687a87", "font-placeholder", "white"],
|
|
137
|
-
["SUCCESS" /* SUCCESS */]: ["#007B52", "success", "white"],
|
|
138
|
-
["SUCCESS_FADE" /* SUCCESS_FADE */]: ["#cae8ca", "success-fade", "white"],
|
|
139
|
-
["INFO" /* INFO */]: ["#1A688A", "info", "white"],
|
|
140
|
-
["INFO_FADE" /* INFO_FADE */]: ["#c8dbec", "info-fade", "white"],
|
|
141
|
-
["WARNING" /* WARNING */]: ["#FFBB33", "warning", "white"],
|
|
142
|
-
["WARNING_FADE" /* WARNING_FADE */]: ["#ecdbc6", "warning-fade", "white"],
|
|
143
|
-
["ERROR" /* ERROR */]: ["#D42D02", "error", "white"],
|
|
144
|
-
["ERROR_FADE" /* ERROR_FADE */]: ["#eecccc", "error-fade", "white"],
|
|
145
|
-
["DISABLED" /* DISABLED */]: ["#646464", "disabled", "white"],
|
|
146
|
-
["DISABLED_FADE" /* DISABLED_FADE */]: ["#D1D1D1", "disabled-fade", "white"],
|
|
147
|
-
["NEUTRAL" /* NEUTRAL */]: ["#707070", "grey", "white"],
|
|
148
|
-
["NEUTRAL_FADE" /* NEUTRAL_FADE */]: ["#F4F4F4", "grey-fade", "white"],
|
|
149
|
-
["STROKE" /* STROKE */]: ["#BBC1CE", "stroke", "white"]
|
|
150
|
-
};
|
|
151
|
-
var getColorClassName = (trilogyColor) => {
|
|
152
|
-
const color = colors[trilogyColor];
|
|
153
|
-
return color[1];
|
|
154
|
-
};
|
|
155
|
-
var getButtonVariantClassName = (trilogyColor) => {
|
|
156
|
-
switch (trilogyColor) {
|
|
157
|
-
case "CONVERSION":
|
|
158
|
-
return "conversion";
|
|
159
|
-
case "PRIMARY":
|
|
160
|
-
return "primary";
|
|
161
|
-
case "SECONDARY":
|
|
162
|
-
return "secondary";
|
|
163
|
-
case "GHOST":
|
|
164
|
-
return "ghost";
|
|
165
|
-
case "SUCCESS":
|
|
166
|
-
return "success";
|
|
167
|
-
case "INFO":
|
|
168
|
-
return "info";
|
|
169
|
-
case "WARNING":
|
|
170
|
-
return "warning";
|
|
171
|
-
case "ERROR":
|
|
172
|
-
return "error";
|
|
173
|
-
case "DISABLED":
|
|
174
|
-
return "disabled";
|
|
175
|
-
default:
|
|
176
|
-
return "primary";
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
var getColorStyle = (trilogyColor) => {
|
|
180
|
-
if (typeof navigator !== "undefined" && navigator.userAgent === void 0) {
|
|
181
|
-
const { theme } = (0, import_react2.useContext)(TrilogyThemeContext);
|
|
182
|
-
const colorsStyle = (theme == null ? void 0 : theme.colors) || colors;
|
|
183
|
-
const colorArray = colorsStyle[trilogyColor] || colorsStyle.default;
|
|
184
|
-
if (trilogyColor === "transparent") return "transparent";
|
|
185
|
-
if (!trilogyColor || !colors[trilogyColor]) {
|
|
186
|
-
return colorsStyle.default;
|
|
187
|
-
}
|
|
188
|
-
return colorArray[0];
|
|
189
|
-
} else {
|
|
190
|
-
if (trilogyColor === "transparent") return "transparent";
|
|
191
|
-
return colors[trilogyColor][0] || colors["MAIN" /* MAIN */][0];
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
function hexToRgb(hex) {
|
|
195
|
-
if (hex.charAt(0) === "#") {
|
|
196
|
-
hex = hex.slice(1);
|
|
197
|
-
}
|
|
198
|
-
if (hex.length !== 6) {
|
|
199
|
-
throw new Error("Wrong format (hexadecimal)");
|
|
200
|
-
}
|
|
201
|
-
const r = parseInt(hex.substring(0, 2), 16);
|
|
202
|
-
const g = parseInt(hex.substring(2, 4), 16);
|
|
203
|
-
const b = parseInt(hex.substring(4, 6), 16);
|
|
204
|
-
return { r, g, b };
|
|
205
|
-
}
|
|
206
|
-
function rgbToHex(r, g, b) {
|
|
207
|
-
const toHex = (n) => {
|
|
208
|
-
const hex = n.toString(16);
|
|
209
|
-
return hex.length === 1 ? `0${hex}` : hex;
|
|
210
|
-
};
|
|
211
|
-
return `#${toHex(r)}${toHex(g)}${toHex(b)}`;
|
|
212
|
-
}
|
|
213
|
-
function grayscale(hex) {
|
|
214
|
-
const { r, g, b } = hexToRgb(hex);
|
|
215
|
-
const gray = Math.round(0.299 * r + 0.587 * g + 0.114 * b);
|
|
216
|
-
return rgbToHex(gray, gray, gray);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
// objects/atoms/Background/index.ts
|
|
220
|
-
var getBackgroundClassName = (backgroundType) => {
|
|
221
|
-
return `background-${getColorClassName(backgroundType)}`;
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
// objects/facets/Justifiable/index.ts
|
|
225
|
-
var getJustifiedClassName = (justifyContent) => {
|
|
226
|
-
switch (justifyContent) {
|
|
227
|
-
case "ALIGNED_CENTER":
|
|
228
|
-
return "justified-center";
|
|
229
|
-
case "ALIGNED_START":
|
|
230
|
-
return "justified-start";
|
|
231
|
-
case "ALIGNED_END":
|
|
232
|
-
return "justified-end";
|
|
233
|
-
default:
|
|
234
|
-
return "justified-start";
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
var getJustifySelfClassName = (justifyContent) => {
|
|
238
|
-
switch (justifyContent) {
|
|
239
|
-
case "ALIGNED_CENTER":
|
|
240
|
-
return "justified-self-center";
|
|
241
|
-
case "ALIGNED_START":
|
|
242
|
-
return "justified-self-start";
|
|
243
|
-
case "ALIGNED_END":
|
|
244
|
-
return "justified-selfend";
|
|
245
|
-
default:
|
|
246
|
-
return "justified-selfstart";
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
// services/classify/index.ts
|
|
251
|
-
function classify(prefix) {
|
|
252
|
-
return (classname) => classname !== "" ? `${prefix}-${classname.toLowerCase()}` : "";
|
|
253
|
-
}
|
|
254
|
-
var is = classify("is");
|
|
255
|
-
var has = classify("has");
|
|
256
|
-
|
|
257
|
-
// components/icon/Icon.tsx
|
|
258
|
-
var import_clsx = __toESM(require("clsx"));
|
|
259
|
-
var React3 = __toESM(require("react"));
|
|
260
|
-
var Icon = React3.forwardRef(
|
|
261
|
-
(_a, ref) => {
|
|
262
|
-
var _b = _a, { className, id, size, name, circled, stretched, color, backgroundColor, onClick, skeleton, align } = _b, others = __objRest(_b, ["className", "id", "size", "name", "circled", "stretched", "color", "backgroundColor", "onClick", "skeleton", "align"]);
|
|
263
|
-
const { styled } = useTrilogyContext();
|
|
264
|
-
const background = backgroundColor && has(getBackgroundClassName(backgroundColor)) || circled && has(getBackgroundClassName("MAIN" /* MAIN */)) || "";
|
|
265
|
-
const classes = hashClass(
|
|
266
|
-
styled,
|
|
267
|
-
(0, import_clsx.default)(
|
|
268
|
-
"icon",
|
|
269
|
-
stretched && is("stretched"),
|
|
270
|
-
size && is(size),
|
|
271
|
-
circled && is("circled"),
|
|
272
|
-
circled && !color && has("text-white"),
|
|
273
|
-
color && is(`${getColorClassName(color)}`),
|
|
274
|
-
skeleton && is("loading"),
|
|
275
|
-
align && (0, import_clsx.default)(is("flex"), is(getJustifySelfClassName(align))),
|
|
276
|
-
background,
|
|
277
|
-
className
|
|
278
|
-
)
|
|
279
|
-
);
|
|
280
|
-
return /* @__PURE__ */ React3.createElement("span", __spreadProps(__spreadValues({ id, onClick: onClick && onClick, className: classes }, others), { ref }), /* @__PURE__ */ React3.createElement("i", { className: hashClass(styled, (0, import_clsx.default)(name)), "aria-hidden": "true" }));
|
|
281
|
-
}
|
|
282
|
-
);
|
|
283
|
-
Icon.displayName = "Icon" /* Icon */;
|
|
284
|
-
var Icon_default = Icon;
|
|
285
|
-
|
|
286
|
-
// components/text/Text.tsx
|
|
287
|
-
var React4 = __toESM(require("react"));
|
|
288
|
-
var import_clsx2 = __toESM(require("clsx"));
|
|
289
|
-
|
|
290
|
-
// components/text/TextEnum.ts
|
|
291
|
-
var TextMarkup = /* @__PURE__ */ ((TextMarkup2) => {
|
|
292
|
-
TextMarkup2["P"] = "p";
|
|
293
|
-
TextMarkup2["SPAN"] = "span";
|
|
294
|
-
return TextMarkup2;
|
|
295
|
-
})(TextMarkup || {});
|
|
296
|
-
|
|
297
|
-
// components/text/Text.tsx
|
|
298
|
-
var Text = React4.forwardRef((_a, ref) => {
|
|
299
|
-
var _b = _a, {
|
|
300
|
-
level,
|
|
301
|
-
markup,
|
|
302
|
-
children,
|
|
303
|
-
className,
|
|
304
|
-
id,
|
|
305
|
-
typo,
|
|
306
|
-
inverted,
|
|
307
|
-
skeleton,
|
|
308
|
-
accessibilityLabel,
|
|
309
|
-
marginless,
|
|
310
|
-
numberOfLines
|
|
311
|
-
} = _b, others = __objRest(_b, [
|
|
312
|
-
"level",
|
|
313
|
-
"markup",
|
|
314
|
-
"children",
|
|
315
|
-
"className",
|
|
316
|
-
"id",
|
|
317
|
-
"typo",
|
|
318
|
-
"inverted",
|
|
319
|
-
"skeleton",
|
|
320
|
-
"accessibilityLabel",
|
|
321
|
-
"marginless",
|
|
322
|
-
"numberOfLines"
|
|
323
|
-
]);
|
|
324
|
-
const { styled } = useTrilogyContext();
|
|
325
|
-
const levelText = () => {
|
|
326
|
-
if (level) {
|
|
327
|
-
switch (level) {
|
|
328
|
-
case 1 /* ONE */:
|
|
329
|
-
return is("level-1");
|
|
330
|
-
case 2 /* TWO */:
|
|
331
|
-
return is("level-2");
|
|
332
|
-
case 3 /* THREE */:
|
|
333
|
-
return is("level-3");
|
|
334
|
-
case 4 /* FOUR */:
|
|
335
|
-
return is("level-4");
|
|
336
|
-
default:
|
|
337
|
-
return is(`level-${level}`);
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
const classes = hashClass(
|
|
342
|
-
styled,
|
|
343
|
-
(0, import_clsx2.default)(
|
|
344
|
-
"text",
|
|
345
|
-
level && levelText(),
|
|
346
|
-
inverted && is("inverted"),
|
|
347
|
-
typo,
|
|
348
|
-
skeleton && is("loading"),
|
|
349
|
-
marginless && is("marginless"),
|
|
350
|
-
numberOfLines && is("text-ellipsis"),
|
|
351
|
-
className
|
|
352
|
-
)
|
|
353
|
-
);
|
|
354
|
-
const isCorrectMarkup2 = (stringMarkup) => {
|
|
355
|
-
if (stringMarkup in TextMarkup || Object.values(TextMarkup).includes(stringMarkup)) return true;
|
|
356
|
-
};
|
|
357
|
-
const Tag = markup && isCorrectMarkup2(markup) ? markup : "p";
|
|
358
|
-
return /* @__PURE__ */ React4.createElement(
|
|
359
|
-
Tag,
|
|
360
|
-
__spreadValues({
|
|
361
|
-
ref,
|
|
362
|
-
id,
|
|
363
|
-
style: numberOfLines ? { WebkitLineClamp: numberOfLines } : {},
|
|
364
|
-
"aria-label": accessibilityLabel,
|
|
365
|
-
className: classes
|
|
366
|
-
}, others),
|
|
367
|
-
children
|
|
368
|
-
);
|
|
369
|
-
});
|
|
370
|
-
Text.displayName = "Text" /* Text */;
|
|
371
|
-
var Text_default = Text;
|
|
372
|
-
|
|
373
|
-
// helpers/device.native/index.ts
|
|
374
|
-
var import_react_native = require("react-native");
|
|
375
|
-
var Device2 = /* @__PURE__ */ ((Device3) => {
|
|
376
|
-
Device3["Browser"] = "browser";
|
|
377
|
-
Device3["Server"] = "server";
|
|
378
|
-
Device3["Native"] = "native";
|
|
379
|
-
return Device3;
|
|
380
|
-
})(Device2 || {});
|
|
381
|
-
var { Browser: Browser2, Server: Server2, Native: Native2 } = Device2;
|
|
382
|
-
var canUseDOM2 = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
383
|
-
var canUseNative2 = typeof navigator != "undefined" && navigator.product == "ReactNative";
|
|
384
|
-
var device2 = canUseNative2 ? Native2 : canUseDOM2 ? Browser2 : Server2;
|
|
385
|
-
var SSRObjectDefined2 = {
|
|
386
|
-
isBrowser: device2 === Browser2,
|
|
387
|
-
isServer: device2 === Server2,
|
|
388
|
-
isNative: device2 === Native2,
|
|
389
|
-
device: device2,
|
|
390
|
-
canUseWorkers: typeof Worker !== "undefined",
|
|
391
|
-
canUseEventListeners: device2 === Browser2 && !!window.addEventListener,
|
|
392
|
-
canUseViewport: device2 === Browser2 && !!window.screen
|
|
393
|
-
};
|
|
394
|
-
var assign2 = (...args) => Object.assign({}, ...args);
|
|
395
|
-
var values2 = (obj) => Object.values(obj);
|
|
396
|
-
var toArrayObject2 = () => assign2((values2(SSRObjectDefined2), SSRObjectDefined2));
|
|
397
|
-
var SSRObject2 = toArrayObject2();
|
|
398
|
-
var isAndroid = import_react_native.Platform.OS === "android";
|
|
399
|
-
var isIOS = import_react_native.Platform.OS === "ios";
|
|
400
|
-
|
|
401
|
-
// objects/facets/Status/index.ts
|
|
402
|
-
var STATUS_COLORS = {
|
|
403
|
-
SUCCESS: { color: "SUCCESS" /* SUCCESS */, backgroundColor: "SUCCESS_FADE" /* SUCCESS_FADE */ },
|
|
404
|
-
INFO: { color: "INFO" /* INFO */, backgroundColor: "INFO_FADE" /* INFO_FADE */ },
|
|
405
|
-
WARNING: { color: "WARNING" /* WARNING */, backgroundColor: "WARNING_FADE" /* WARNING_FADE */ },
|
|
406
|
-
ERROR: { color: "ERROR" /* ERROR */, backgroundColor: "ERROR_FADE" /* ERROR_FADE */ },
|
|
407
|
-
DEFAULT: { color: "MAIN" /* MAIN */, backgroundColor: "MAIN_FADE" /* MAIN_FADE */ }
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
// objects/Typography/TypographyBold/index.tsx
|
|
411
|
-
var import_react3 = require("react");
|
|
412
|
-
|
|
413
|
-
// components/input/Input.native.tsx
|
|
414
|
-
var import_react6 = __toESM(require("react"));
|
|
415
|
-
var import_react_native3 = require("react-native");
|
|
416
|
-
|
|
417
|
-
// components/spacer/Spacer.tsx
|
|
418
|
-
var import_clsx3 = __toESM(require("clsx"));
|
|
419
|
-
var React5 = __toESM(require("react"));
|
|
420
|
-
var Spacer = React5.forwardRef(({ size, horizontal, className, id }, ref) => {
|
|
421
|
-
const { styled } = useTrilogyContext();
|
|
422
|
-
const styles2 = {
|
|
423
|
-
spacer: {
|
|
424
|
-
marginLeft: horizontal ? `${size}px` : "0px",
|
|
425
|
-
marginTop: !horizontal ? `${size}px` : "0px"
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
|
-
const classes = hashClass(styled, (0, import_clsx3.default)(className));
|
|
429
|
-
return /* @__PURE__ */ React5.createElement("div", { ref, id, style: styles2.spacer, className: classes });
|
|
430
|
-
});
|
|
431
|
-
Spacer.displayName = "Spacer" /* Spacer */;
|
|
432
|
-
var Spacer_default = Spacer;
|
|
433
|
-
|
|
434
|
-
// components/spacer/SpacerEnum.ts
|
|
435
|
-
var SpacerSize = /* @__PURE__ */ ((SpacerSize2) => {
|
|
436
|
-
SpacerSize2[SpacerSize2["ZERO"] = 0] = "ZERO";
|
|
437
|
-
SpacerSize2[SpacerSize2["ONE"] = 4] = "ONE";
|
|
438
|
-
SpacerSize2[SpacerSize2["TWO"] = 8] = "TWO";
|
|
439
|
-
SpacerSize2[SpacerSize2["THREE"] = 12] = "THREE";
|
|
440
|
-
SpacerSize2[SpacerSize2["FOUR"] = 16] = "FOUR";
|
|
441
|
-
SpacerSize2[SpacerSize2["FIVE"] = 24] = "FIVE";
|
|
442
|
-
SpacerSize2[SpacerSize2["SIX"] = 32] = "SIX";
|
|
443
|
-
SpacerSize2[SpacerSize2["SEVEN"] = 40] = "SEVEN";
|
|
444
|
-
SpacerSize2[SpacerSize2["EIGHT"] = 48] = "EIGHT";
|
|
445
|
-
SpacerSize2[SpacerSize2["NINE"] = 56] = "NINE";
|
|
446
|
-
SpacerSize2[SpacerSize2["TEN"] = 64] = "TEN";
|
|
447
|
-
return SpacerSize2;
|
|
448
|
-
})(SpacerSize || {});
|
|
449
|
-
var SpacerSizeValues = `${SpacerSize}`;
|
|
450
|
-
|
|
451
|
-
// components/input/gauge/InputGauge.native.tsx
|
|
452
|
-
var import_react5 = __toESM(require("react"));
|
|
453
|
-
var import_react_native2 = require("react-native");
|
|
454
|
-
|
|
455
|
-
// components/input/gauge/hook/useGauge.tsx
|
|
456
|
-
var import_react4 = __toESM(require("react"));
|
|
457
|
-
var useGauge = ({ validationRules, inputValue }) => {
|
|
458
|
-
var _a, _b;
|
|
459
|
-
const [points, setPoints] = import_react4.default.useState(0);
|
|
460
|
-
const initStateVerifies = { isVerify: false, color: "NEUTRAL" /* NEUTRAL */ };
|
|
461
|
-
const [isLengthVerify, setIsLengthVerify] = import_react4.default.useState(initStateVerifies);
|
|
462
|
-
const [isSpecialCharsVerify, setIsSpecialCharsVerify] = import_react4.default.useState(initStateVerifies);
|
|
463
|
-
const [isNumberVerify, setIsNumberVerify] = import_react4.default.useState(initStateVerifies);
|
|
464
|
-
const [isUppercaseVerify, setIsUppercaseVerify] = import_react4.default.useState(initStateVerifies);
|
|
465
|
-
const [isLowerercaseVerify, setisLowerercaseVerify] = import_react4.default.useState(initStateVerifies);
|
|
466
|
-
const nbAllVerifies = import_react4.default.useMemo(
|
|
467
|
-
() => validationRules && Object.values(validationRules).filter((rule) => rule).length || 0,
|
|
468
|
-
[validationRules]
|
|
469
|
-
);
|
|
470
|
-
const widthGauge = import_react4.default.useMemo(() => {
|
|
471
|
-
const calc = Number((points / nbAllVerifies * 100).toFixed(0));
|
|
472
|
-
if (calc <= 50 && calc > 0) return "50%";
|
|
473
|
-
if (calc <= 99 && calc > 50) return "75%";
|
|
474
|
-
if (calc === 100) return "100%";
|
|
475
|
-
return "0%";
|
|
476
|
-
}, [points, nbAllVerifies]);
|
|
477
|
-
const colorGauge = () => {
|
|
478
|
-
const calc = Number((points / nbAllVerifies * 100).toFixed(0));
|
|
479
|
-
if (calc <= 50 && calc > 0) return getColorStyle("ERROR" /* ERROR */);
|
|
480
|
-
if (calc <= 99 && calc > 50) return getColorStyle("WARNING" /* WARNING */);
|
|
481
|
-
if (calc === 100) return getColorStyle("SUCCESS" /* SUCCESS */);
|
|
482
|
-
return getColorStyle("NEUTRAL_FADE" /* NEUTRAL_FADE */);
|
|
483
|
-
};
|
|
484
|
-
const LengthvalidationRulesText = (0, import_react4.useMemo)(() => {
|
|
485
|
-
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
486
|
-
switch (true) {
|
|
487
|
-
case (((_a2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _a2.min) !== void 0 && ((_b2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _b2.max) !== void 0):
|
|
488
|
-
return `Entre ${(_g = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _g.min} et ${(_h = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _h.max} caract\xE8res`;
|
|
489
|
-
case (((_c = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _c.min) && !((_d = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _d.max)):
|
|
490
|
-
return `Minimum ${(_i = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _i.min} caract\xE8res`;
|
|
491
|
-
case (((_e = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _e.max) && !((_f = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _f.min)):
|
|
492
|
-
return `Maximum ${(_j = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _j.max} caract\xE8res`;
|
|
493
|
-
default:
|
|
494
|
-
return "";
|
|
495
|
-
}
|
|
496
|
-
}, [(_a = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _a.min, (_b = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _b.max]);
|
|
497
|
-
(0, import_react4.useEffect)(() => {
|
|
498
|
-
var _a2, _b2;
|
|
499
|
-
const min = ((_a2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _a2.min) || 0;
|
|
500
|
-
const max = ((_b2 = validationRules == null ? void 0 : validationRules.length) == null ? void 0 : _b2.max) || "";
|
|
501
|
-
const regex = new RegExp(`^.{${min},${max}}$`);
|
|
502
|
-
const validations = [];
|
|
503
|
-
(validationRules == null ? void 0 : validationRules.specialChars) && validations.push({ test: /[^\w]/.test(inputValue), setState: setIsSpecialCharsVerify });
|
|
504
|
-
(validationRules == null ? void 0 : validationRules.number) && validations.push({ test: /[0-9]/.test(inputValue), setState: setIsNumberVerify });
|
|
505
|
-
(validationRules == null ? void 0 : validationRules.uppercase) && validations.push({ test: /[A-Z]/.test(inputValue), setState: setIsUppercaseVerify });
|
|
506
|
-
(validationRules == null ? void 0 : validationRules.lowercase) && validations.push({ test: /[a-z]/.test(inputValue), setState: setisLowerercaseVerify });
|
|
507
|
-
(validationRules == null ? void 0 : validationRules.length) && validations.push({ test: regex.test(inputValue), setState: setIsLengthVerify });
|
|
508
|
-
validations.forEach(({ test, setState }) => {
|
|
509
|
-
if (test) return setState({ isVerify: true, color: "SUCCESS" /* SUCCESS */ });
|
|
510
|
-
return setState(initStateVerifies);
|
|
511
|
-
});
|
|
512
|
-
setPoints(validations.filter((item) => item.test).length);
|
|
513
|
-
}, [inputValue, validationRules]);
|
|
514
|
-
return {
|
|
515
|
-
LengthvalidationRulesText,
|
|
516
|
-
colorGauge,
|
|
517
|
-
widthGauge,
|
|
518
|
-
isLengthVerify,
|
|
519
|
-
isLowerercaseVerify,
|
|
520
|
-
isNumberVerify,
|
|
521
|
-
isSpecialCharsVerify,
|
|
522
|
-
isUppercaseVerify
|
|
523
|
-
};
|
|
524
|
-
};
|
|
525
|
-
|
|
526
|
-
// components/input/gauge/InputGauge.native.tsx
|
|
527
|
-
var InputGauge = ({ validationRules, inputValue }) => {
|
|
528
|
-
const {
|
|
529
|
-
widthGauge,
|
|
530
|
-
colorGauge,
|
|
531
|
-
LengthvalidationRulesText,
|
|
532
|
-
isLengthVerify,
|
|
533
|
-
isLowerercaseVerify,
|
|
534
|
-
isNumberVerify,
|
|
535
|
-
isSpecialCharsVerify,
|
|
536
|
-
isUppercaseVerify
|
|
537
|
-
} = useGauge({ validationRules, inputValue });
|
|
538
|
-
return /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, null, /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: [styles.containerGauge, { backgroundColor: getColorStyle("MAIN_FADE" /* MAIN_FADE */) }] }, /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: [styles.gauge, { width: widthGauge, backgroundColor: colorGauge() }] })), /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: styles.verifies }, /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, null, /* @__PURE__ */ import_react5.default.createElement(
|
|
539
|
-
DataVerify,
|
|
540
|
-
{
|
|
541
|
-
display: !!(validationRules == null ? void 0 : validationRules.length),
|
|
542
|
-
color: isLengthVerify.color,
|
|
543
|
-
iconName: isLengthVerify.isVerify ? "tri-check-circle" /* CHECK_CIRCLE */ : "tri-times" /* TIMES */,
|
|
544
|
-
type: LengthvalidationRulesText
|
|
545
|
-
}
|
|
546
|
-
), /* @__PURE__ */ import_react5.default.createElement(
|
|
547
|
-
DataVerify,
|
|
548
|
-
{
|
|
549
|
-
display: !!(validationRules == null ? void 0 : validationRules.specialChars),
|
|
550
|
-
color: isSpecialCharsVerify.color,
|
|
551
|
-
iconName: isSpecialCharsVerify.isVerify ? "tri-check-circle" /* CHECK_CIRCLE */ : "tri-times" /* TIMES */,
|
|
552
|
-
type: "Caract\xE8res sp\xE9ciaux"
|
|
553
|
-
}
|
|
554
|
-
), /* @__PURE__ */ import_react5.default.createElement(
|
|
555
|
-
DataVerify,
|
|
556
|
-
{
|
|
557
|
-
display: !!(validationRules == null ? void 0 : validationRules.number),
|
|
558
|
-
color: isNumberVerify.color,
|
|
559
|
-
iconName: isNumberVerify.isVerify ? "tri-check-circle" /* CHECK_CIRCLE */ : "tri-times" /* TIMES */,
|
|
560
|
-
type: "Chiffre"
|
|
561
|
-
}
|
|
562
|
-
)), /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, null, /* @__PURE__ */ import_react5.default.createElement(
|
|
563
|
-
DataVerify,
|
|
564
|
-
{
|
|
565
|
-
display: !!(validationRules == null ? void 0 : validationRules.uppercase),
|
|
566
|
-
color: isUppercaseVerify.color,
|
|
567
|
-
iconName: isUppercaseVerify.isVerify ? "tri-check-circle" /* CHECK_CIRCLE */ : "tri-times" /* TIMES */,
|
|
568
|
-
type: "Majuscule"
|
|
569
|
-
}
|
|
570
|
-
), /* @__PURE__ */ import_react5.default.createElement(
|
|
571
|
-
DataVerify,
|
|
572
|
-
{
|
|
573
|
-
display: !!(validationRules == null ? void 0 : validationRules.lowercase),
|
|
574
|
-
color: isLowerercaseVerify.color,
|
|
575
|
-
iconName: isLowerercaseVerify.isVerify ? "tri-check-circle" /* CHECK_CIRCLE */ : "tri-times" /* TIMES */,
|
|
576
|
-
type: "Minuscule"
|
|
577
|
-
}
|
|
578
|
-
))));
|
|
579
|
-
};
|
|
580
|
-
var DataVerify = ({ color, iconName, display, type }) => {
|
|
581
|
-
if (!display) return null;
|
|
582
|
-
return /* @__PURE__ */ import_react5.default.createElement(import_react_native2.View, { style: styles.verify }, /* @__PURE__ */ import_react5.default.createElement(Icon_default, { color, name: iconName, size: "smaller" /* SMALLER */ }), /* @__PURE__ */ import_react5.default.createElement(Text_default, { style: styles.textVerify }, type));
|
|
583
|
-
};
|
|
584
|
-
var InputGauge_native_default = InputGauge;
|
|
585
|
-
var styles = import_react_native2.StyleSheet.create({
|
|
586
|
-
verify: {
|
|
587
|
-
flexDirection: "row",
|
|
588
|
-
alignItems: "center",
|
|
589
|
-
marginBottom: 4
|
|
590
|
-
},
|
|
591
|
-
textVerify: {
|
|
592
|
-
marginLeft: 8
|
|
593
|
-
},
|
|
594
|
-
verifies: {
|
|
595
|
-
flexDirection: "row",
|
|
596
|
-
justifyContent: "space-between"
|
|
597
|
-
},
|
|
598
|
-
containerGauge: {
|
|
599
|
-
height: 4,
|
|
600
|
-
width: "100%",
|
|
601
|
-
borderRadius: 4,
|
|
602
|
-
marginVertical: 8
|
|
603
|
-
},
|
|
604
|
-
gauge: {
|
|
605
|
-
height: 4,
|
|
606
|
-
borderRadius: 4
|
|
607
|
-
}
|
|
608
|
-
});
|
|
609
|
-
|
|
610
|
-
// components/input/Input.native.tsx
|
|
611
|
-
var Input = import_react6.default.forwardRef(
|
|
612
|
-
(_a, ref) => {
|
|
613
|
-
var _b = _a, {
|
|
614
|
-
defaultValue,
|
|
615
|
-
name,
|
|
616
|
-
label,
|
|
617
|
-
sample,
|
|
618
|
-
onChange,
|
|
619
|
-
onFocus,
|
|
620
|
-
onBlur,
|
|
621
|
-
disabled,
|
|
622
|
-
status,
|
|
623
|
-
help,
|
|
624
|
-
placeholder,
|
|
625
|
-
type,
|
|
626
|
-
keyboardStyle,
|
|
627
|
-
autoCapitalize,
|
|
628
|
-
autoCorrect,
|
|
629
|
-
autoCompleteType,
|
|
630
|
-
textContentType,
|
|
631
|
-
keyboardType,
|
|
632
|
-
keyType,
|
|
633
|
-
onSubmit,
|
|
634
|
-
maxLength,
|
|
635
|
-
testId,
|
|
636
|
-
accessibilityLabel,
|
|
637
|
-
iconNameLeft,
|
|
638
|
-
iconNameRight,
|
|
639
|
-
securityGauge,
|
|
640
|
-
validationRules,
|
|
641
|
-
onIconClick,
|
|
642
|
-
required,
|
|
643
|
-
readOnly
|
|
644
|
-
} = _b, others = __objRest(_b, [
|
|
645
|
-
"defaultValue",
|
|
646
|
-
"name",
|
|
647
|
-
"label",
|
|
648
|
-
"sample",
|
|
649
|
-
"onChange",
|
|
650
|
-
"onFocus",
|
|
651
|
-
"onBlur",
|
|
652
|
-
"disabled",
|
|
653
|
-
"status",
|
|
654
|
-
"help",
|
|
655
|
-
"placeholder",
|
|
656
|
-
"type",
|
|
657
|
-
"keyboardStyle",
|
|
658
|
-
"autoCapitalize",
|
|
659
|
-
"autoCorrect",
|
|
660
|
-
"autoCompleteType",
|
|
661
|
-
"textContentType",
|
|
662
|
-
"keyboardType",
|
|
663
|
-
"keyType",
|
|
664
|
-
"onSubmit",
|
|
665
|
-
"maxLength",
|
|
666
|
-
"testId",
|
|
667
|
-
"accessibilityLabel",
|
|
668
|
-
"iconNameLeft",
|
|
669
|
-
"iconNameRight",
|
|
670
|
-
"securityGauge",
|
|
671
|
-
"validationRules",
|
|
672
|
-
"onIconClick",
|
|
673
|
-
"required",
|
|
674
|
-
"readOnly"
|
|
675
|
-
]);
|
|
676
|
-
const inputTestId = testId ? testId : placeholder ? placeholder : "NotSpecified";
|
|
677
|
-
const inputAccessibilityLabel = accessibilityLabel ? accessibilityLabel : placeholder ? placeholder : "NotSpecified";
|
|
678
|
-
const animationDuration = 200;
|
|
679
|
-
const placeholderDefaultSize = 20;
|
|
680
|
-
const inputIcon = /* @__PURE__ */ new Map();
|
|
681
|
-
const inputColor = getColorStyle("MAIN" /* MAIN */);
|
|
682
|
-
inputIcon.set("success" /* SUCCESS */, "tri-check-circle" /* CHECK_CIRCLE */);
|
|
683
|
-
inputIcon.set("warning" /* WARNING */, "tri-exclamation-circle" /* EXCLAMATION_CIRCLE */);
|
|
684
|
-
inputIcon.set("error" /* ERROR */, "tri-exclamation-circle" /* EXCLAMATION_CIRCLE */);
|
|
685
|
-
const [value, setValue] = (0, import_react6.useState)(defaultValue || "");
|
|
686
|
-
const [email, setEmail] = (0, import_react6.useState)("");
|
|
687
|
-
const [isFocused, setIsFocused] = (0, import_react6.useState)(false);
|
|
688
|
-
const [iconPassword, setIconPassword] = (0, import_react6.useState)("tri-eye" /* EYE */);
|
|
689
|
-
const [dynamicPlaceholder, setDynamicPlaceholder] = (0, import_react6.useState)(false);
|
|
690
|
-
const [isKeyboardVisible, setKeyboardVisible] = (0, import_react6.useState)(null);
|
|
691
|
-
const animation = (0, import_react6.useRef)(new import_react_native3.Animated.Value(25)).current;
|
|
692
|
-
const sizeAnimation = (0, import_react6.useRef)(new import_react_native3.Animated.Value(placeholderDefaultSize)).current;
|
|
693
|
-
const paddingTopByPlatform = (os, dynamicPlaceholder2) => {
|
|
694
|
-
if (dynamicPlaceholder2 && type !== "search" /* SEARCH */ && os === "ios") {
|
|
695
|
-
return 10;
|
|
696
|
-
}
|
|
697
|
-
if (dynamicPlaceholder2 && type !== "search" /* SEARCH */ && os === "android") {
|
|
698
|
-
return isFocused ? 14 : 15;
|
|
699
|
-
}
|
|
700
|
-
return 0;
|
|
701
|
-
};
|
|
702
|
-
const handleChange = (0, import_react6.useCallback)((text) => {
|
|
703
|
-
var _a2;
|
|
704
|
-
setValue(text);
|
|
705
|
-
setEmail("");
|
|
706
|
-
const domain = (_a2 = text.split("@")) == null ? void 0 : _a2[1];
|
|
707
|
-
if (domain) {
|
|
708
|
-
const domains = ["gmail.com", "bbox.fr"];
|
|
709
|
-
domains.forEach((item) => {
|
|
710
|
-
const domainSplit = domain.split("");
|
|
711
|
-
const itemSplit = item.split("").slice(0, domainSplit.length);
|
|
712
|
-
if (JSON.stringify(domainSplit) == JSON.stringify(itemSplit)) setEmail(item.slice(domain.length));
|
|
713
|
-
});
|
|
714
|
-
}
|
|
715
|
-
}, []);
|
|
716
|
-
const handleClick = () => {
|
|
717
|
-
setValue(value + email);
|
|
718
|
-
setEmail("");
|
|
719
|
-
};
|
|
720
|
-
const handleSubmit = (e) => {
|
|
721
|
-
onSubmit == null ? void 0 : onSubmit(e);
|
|
722
|
-
type === "email" /* EMAIL */ && handleClick();
|
|
723
|
-
};
|
|
724
|
-
(0, import_react6.useEffect)(() => {
|
|
725
|
-
setValue(defaultValue || "");
|
|
726
|
-
}, [defaultValue, placeholder]);
|
|
727
|
-
(0, import_react6.useEffect)(() => {
|
|
728
|
-
if (value && value.length > 0 && placeholder && placeholder.length > 0) {
|
|
729
|
-
setDynamicPlaceholder(true);
|
|
730
|
-
} else {
|
|
731
|
-
setDynamicPlaceholder(false);
|
|
732
|
-
}
|
|
733
|
-
}, [placeholder, value]);
|
|
734
|
-
(0, import_react6.useEffect)(() => {
|
|
735
|
-
if (dynamicPlaceholder && type !== "search" /* SEARCH */) {
|
|
736
|
-
import_react_native3.Animated.timing(animation, {
|
|
737
|
-
toValue: 3,
|
|
738
|
-
duration: animationDuration,
|
|
739
|
-
useNativeDriver: false
|
|
740
|
-
}).start();
|
|
741
|
-
import_react_native3.Animated.timing(sizeAnimation, {
|
|
742
|
-
toValue: 12,
|
|
743
|
-
duration: animationDuration,
|
|
744
|
-
useNativeDriver: false
|
|
745
|
-
}).start();
|
|
746
|
-
} else {
|
|
747
|
-
import_react_native3.Animated.timing(animation, {
|
|
748
|
-
toValue: 25,
|
|
749
|
-
duration: animationDuration,
|
|
750
|
-
useNativeDriver: false
|
|
751
|
-
}).start();
|
|
752
|
-
import_react_native3.Animated.timing(sizeAnimation, {
|
|
753
|
-
toValue: placeholderDefaultSize,
|
|
754
|
-
duration: animationDuration,
|
|
755
|
-
useNativeDriver: false
|
|
756
|
-
}).start();
|
|
757
|
-
}
|
|
758
|
-
}, [dynamicPlaceholder, animation, sizeAnimation]);
|
|
759
|
-
(0, import_react6.useEffect)(() => {
|
|
760
|
-
const keyboardDidShowListener = import_react_native3.Keyboard.addListener("keyboardDidShow", () => setKeyboardVisible(true));
|
|
761
|
-
const keyboardDidHideListener = import_react_native3.Keyboard.addListener("keyboardDidHide", () => setKeyboardVisible(false));
|
|
762
|
-
return () => {
|
|
763
|
-
keyboardDidHideListener.remove();
|
|
764
|
-
keyboardDidShowListener.remove();
|
|
765
|
-
};
|
|
766
|
-
}, []);
|
|
767
|
-
(0, import_react6.useEffect)(() => {
|
|
768
|
-
handleClick();
|
|
769
|
-
}, [isKeyboardVisible]);
|
|
770
|
-
const hasIcon = iconNameLeft || iconNameRight || false;
|
|
771
|
-
const styles2 = import_react_native3.StyleSheet.create({
|
|
772
|
-
input: {
|
|
773
|
-
paddingLeft: (iconNameLeft && isFocused || type === "search" /* SEARCH */ && isFocused) && 39 || (iconNameLeft || type === "search" /* SEARCH */) && 40 || !iconNameLeft && type !== "search" /* SEARCH */ && isFocused && 9 || 10,
|
|
774
|
-
paddingRight: (iconNameRight || type === "search" /* SEARCH */) && 32 || 0,
|
|
775
|
-
marginTop: paddingTopByPlatform(import_react_native3.Platform.OS, dynamicPlaceholder),
|
|
776
|
-
width: hasIcon && status ? "85%" : "95%",
|
|
777
|
-
height: 46,
|
|
778
|
-
color: disabled ? getColorStyle("DISABLED" /* DISABLED */) : inputColor
|
|
779
|
-
},
|
|
780
|
-
dynamicPlaceholder: {
|
|
781
|
-
position: "absolute",
|
|
782
|
-
left: iconNameLeft ? 40 : 10,
|
|
783
|
-
color: grayscale(getColorStyle("FONT" /* FONT */)),
|
|
784
|
-
marginTop: isFocused ? -1 : 0,
|
|
785
|
-
marginLeft: isFocused ? -1 : 0
|
|
786
|
-
},
|
|
787
|
-
help: {
|
|
788
|
-
fontSize: 12,
|
|
789
|
-
color: status && status === "success" && getColorStyle("SUCCESS" /* SUCCESS */) || status && status === "warning" && getColorStyle("WARNING" /* WARNING */) || status && status === "error" && getColorStyle("ERROR" /* ERROR */) || status && status === "default" && inputColor || disabled && getColorStyle("DISABLED" /* DISABLED */) || inputColor,
|
|
790
|
-
paddingLeft: 4,
|
|
791
|
-
paddingTop: 2
|
|
792
|
-
},
|
|
793
|
-
inputWrapper: {
|
|
794
|
-
position: "relative",
|
|
795
|
-
justifyContent: "center",
|
|
796
|
-
alignSelf: "stretch",
|
|
797
|
-
backgroundColor: disabled ? getColorStyle("DISABLED_FADE" /* DISABLED_FADE */) : getColorStyle("WHITE" /* BACKGROUND */),
|
|
798
|
-
borderWidth: isFocused ? 2 : 1,
|
|
799
|
-
borderRadius: 3,
|
|
800
|
-
borderColor: status && status === "success" && getColorStyle("SUCCESS" /* SUCCESS */) || status && status === "warning" && getColorStyle("WARNING" /* WARNING */) || status && status === "error" && getColorStyle("ERROR" /* ERROR */) || status && status === "default" && inputColor || isFocused && getColorStyle("MAIN" /* MAIN */) || getColorStyle("NEUTRAL" /* NEUTRAL */),
|
|
801
|
-
height: 46,
|
|
802
|
-
width: "100%"
|
|
803
|
-
},
|
|
804
|
-
inputContainer: {
|
|
805
|
-
height: 46,
|
|
806
|
-
width: 46,
|
|
807
|
-
position: "absolute",
|
|
808
|
-
right: isFocused ? -1 : 0,
|
|
809
|
-
justifyContent: "center"
|
|
810
|
-
},
|
|
811
|
-
inputContainerLeft: {
|
|
812
|
-
height: 46,
|
|
813
|
-
width: 46,
|
|
814
|
-
position: "absolute",
|
|
815
|
-
left: isFocused ? -1 : 0,
|
|
816
|
-
justifyContent: "center"
|
|
817
|
-
},
|
|
818
|
-
inputContainerRight: {
|
|
819
|
-
height: 46,
|
|
820
|
-
width: 46,
|
|
821
|
-
position: "absolute",
|
|
822
|
-
right: isFocused ? -1 : 0,
|
|
823
|
-
justifyContent: "center"
|
|
824
|
-
},
|
|
825
|
-
inputIconLeft: {
|
|
826
|
-
position: "absolute",
|
|
827
|
-
left: isFocused ? 9 : 10,
|
|
828
|
-
top: 0,
|
|
829
|
-
bottom: 0,
|
|
830
|
-
alignItems: "center",
|
|
831
|
-
justifyContent: "center"
|
|
832
|
-
},
|
|
833
|
-
text: {
|
|
834
|
-
zIndex: -1,
|
|
835
|
-
position: "absolute",
|
|
836
|
-
fontSize: 14,
|
|
837
|
-
color: getColorStyle("WHITE" /* BACKGROUND */),
|
|
838
|
-
bottom: isIOS ? 9 : 5,
|
|
839
|
-
left: iconNameLeft ? isIOS ? 38 : 37.5 : isIOS ? 8 : 7.5
|
|
840
|
-
},
|
|
841
|
-
domain: {
|
|
842
|
-
zIndex: 1,
|
|
843
|
-
color: getColorStyle("NEUTRAL" /* NEUTRAL */),
|
|
844
|
-
fontSize: 13,
|
|
845
|
-
height: "100%",
|
|
846
|
-
marginTop: 3,
|
|
847
|
-
marginBottom: isIOS ? 0 : -3
|
|
848
|
-
}
|
|
849
|
-
});
|
|
850
|
-
return /* @__PURE__ */ import_react6.default.createElement(
|
|
851
|
-
import_react_native3.View,
|
|
852
|
-
{
|
|
853
|
-
style: { width: "100%" },
|
|
854
|
-
accessible: !!inputAccessibilityLabel,
|
|
855
|
-
accessibilityLabel: inputAccessibilityLabel,
|
|
856
|
-
testID: inputTestId
|
|
857
|
-
},
|
|
858
|
-
!dynamicPlaceholder && label && /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement(Text_default, { typo: "has-text-main" /* TEXT_MAIN */ }, label, " ", label && required && /* @__PURE__ */ import_react6.default.createElement(Text_default, { typo: "has-text-error" /* TEXT_ERROR */ }, "*")), /* @__PURE__ */ import_react6.default.createElement(Spacer_default, { size: 12 /* THREE */ })),
|
|
859
|
-
!dynamicPlaceholder && label && sample && /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement(Text_default, { level: 3 /* THREE */, typo: "has-text-main" /* TEXT_MAIN */ }, sample), /* @__PURE__ */ import_react6.default.createElement(Spacer_default, { size: 12 /* THREE */ })),
|
|
860
|
-
/* @__PURE__ */ import_react6.default.createElement(import_react_native3.View, { testID: "input-wrapper-id", style: styles2.inputWrapper }, dynamicPlaceholder && type !== "search" /* SEARCH */ && /* @__PURE__ */ import_react6.default.createElement(import_react_native3.Animated.Text, { style: [styles2.dynamicPlaceholder, { top: animation, fontSize: sizeAnimation }] }, placeholder), /* @__PURE__ */ import_react6.default.createElement(
|
|
861
|
-
import_react_native3.TextInput,
|
|
862
|
-
__spreadValues({
|
|
863
|
-
ref,
|
|
864
|
-
testID: "input-id",
|
|
865
|
-
readOnly,
|
|
866
|
-
clearTextOnFocus: false,
|
|
867
|
-
secureTextEntry: !!(type && type === "password" /* PASSWORD */ && iconPassword === "tri-eye" /* EYE */),
|
|
868
|
-
value,
|
|
869
|
-
editable: !disabled,
|
|
870
|
-
maxLength,
|
|
871
|
-
autoCapitalize: autoCapitalize || "none" /* NONE */,
|
|
872
|
-
keyboardAppearance: keyboardStyle || "default" /* DEFAULT */,
|
|
873
|
-
autoCorrect: autoCorrect || false,
|
|
874
|
-
autoComplete: autoCompleteType,
|
|
875
|
-
returnKeyType: keyType,
|
|
876
|
-
textContentType: textContentType || "none" /* NONE */,
|
|
877
|
-
keyboardType: keyboardType || "default" /* DEFAULT */,
|
|
878
|
-
onSubmitEditing: handleSubmit,
|
|
879
|
-
onChangeText: (text) => {
|
|
880
|
-
handleChange(text);
|
|
881
|
-
if (onChange) {
|
|
882
|
-
onChange({
|
|
883
|
-
inputName: name && name || "",
|
|
884
|
-
inputValue: text,
|
|
885
|
-
inputSelectionStart: null
|
|
886
|
-
});
|
|
887
|
-
}
|
|
888
|
-
},
|
|
889
|
-
onFocus: (e) => {
|
|
890
|
-
setIsFocused(true);
|
|
891
|
-
onFocus == null ? void 0 : onFocus(e);
|
|
892
|
-
},
|
|
893
|
-
onBlur: (e) => {
|
|
894
|
-
setIsFocused(false);
|
|
895
|
-
onBlur == null ? void 0 : onBlur(e);
|
|
896
|
-
},
|
|
897
|
-
placeholder,
|
|
898
|
-
placeholderTextColor: disabled ? getColorStyle("DISABLED" /* DISABLED */) : getColorStyle("FONT_PLACEHOLDER" /* FONT_PLACEHOLDER */),
|
|
899
|
-
style: styles2.input
|
|
900
|
-
}, others)
|
|
901
|
-
), type === "email" && /* @__PURE__ */ import_react6.default.createElement(Text_default, { style: styles2.text }, value, /* @__PURE__ */ import_react6.default.createElement(Text_default, { style: styles2.domain }, email)), hasIcon && type !== "password" /* PASSWORD */ && type !== "search" /* SEARCH */ && /* @__PURE__ */ import_react6.default.createElement(import_react_native3.View, { style: styles2.inputIconLeft }, /* @__PURE__ */ import_react6.default.createElement(
|
|
902
|
-
Icon_default,
|
|
903
|
-
{
|
|
904
|
-
align: "ALIGNED_START" /* ALIGNED_START */,
|
|
905
|
-
name: iconNameLeft,
|
|
906
|
-
size: "small" /* SMALL */,
|
|
907
|
-
color: status && status === "success" && "SUCCESS" /* SUCCESS */ || status && status === "warning" && "WARNING" /* WARNING */ || status && status === "error" && "ERROR" /* ERROR */ || disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
908
|
-
}
|
|
909
|
-
)), hasIcon && type !== "search" /* SEARCH */ && status && status !== "default" /* DEFAULT */ && type !== "password" /* PASSWORD */ && /* @__PURE__ */ import_react6.default.createElement(
|
|
910
|
-
import_react_native3.TouchableOpacity,
|
|
911
|
-
{
|
|
912
|
-
style: styles2.inputContainer,
|
|
913
|
-
activeOpacity: onIconClick ? 0.2 : 1,
|
|
914
|
-
onPress: (e) => {
|
|
915
|
-
onIconClick == null ? void 0 : onIconClick({
|
|
916
|
-
inputName: name && name || "",
|
|
917
|
-
inputValue: value,
|
|
918
|
-
target: e
|
|
919
|
-
});
|
|
920
|
-
}
|
|
921
|
-
},
|
|
922
|
-
/* @__PURE__ */ import_react6.default.createElement(
|
|
923
|
-
Icon_default,
|
|
924
|
-
{
|
|
925
|
-
testId: "icon-status-id",
|
|
926
|
-
align: "ALIGNED_CENTER" /* ALIGNED_CENTER */,
|
|
927
|
-
name: iconNameLeft || iconNameRight || inputIcon.get(status).replace("tri-", "").replace("ui-", ""),
|
|
928
|
-
size: "small" /* SMALL */,
|
|
929
|
-
color: status && status === "success" && "SUCCESS" /* SUCCESS */ || status && status === "warning" && "WARNING" /* WARNING */ || status && status === "error" && "ERROR" /* ERROR */ || status && "MAIN" /* MAIN */ || disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
930
|
-
}
|
|
931
|
-
)
|
|
932
|
-
), iconNameRight && !iconNameLeft && type !== "search" /* SEARCH */ && type !== "password" /* PASSWORD */ && (!status || status === "default" /* DEFAULT */) && /* @__PURE__ */ import_react6.default.createElement(
|
|
933
|
-
import_react_native3.TouchableOpacity,
|
|
934
|
-
{
|
|
935
|
-
style: styles2.inputContainerRight,
|
|
936
|
-
activeOpacity: onIconClick ? 0.2 : 1,
|
|
937
|
-
onPress: (e) => {
|
|
938
|
-
onIconClick == null ? void 0 : onIconClick({
|
|
939
|
-
inputName: name && name || "",
|
|
940
|
-
inputValue: value,
|
|
941
|
-
target: e
|
|
942
|
-
});
|
|
943
|
-
}
|
|
944
|
-
},
|
|
945
|
-
/* @__PURE__ */ import_react6.default.createElement(
|
|
946
|
-
Icon_default,
|
|
947
|
-
{
|
|
948
|
-
testId: "icon-right-id",
|
|
949
|
-
align: "ALIGNED_CENTER" /* ALIGNED_CENTER */,
|
|
950
|
-
name: iconNameRight,
|
|
951
|
-
size: "small" /* SMALL */,
|
|
952
|
-
color: disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
953
|
-
}
|
|
954
|
-
)
|
|
955
|
-
), type === "password" /* PASSWORD */ && /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, iconNameLeft && /* @__PURE__ */ import_react6.default.createElement(import_react_native3.View, { style: [{ paddingLeft: 10 }, styles2.inputContainerLeft] }, /* @__PURE__ */ import_react6.default.createElement(Icon_default, { name: iconNameLeft })), /* @__PURE__ */ import_react6.default.createElement(
|
|
956
|
-
import_react_native3.TouchableOpacity,
|
|
957
|
-
{
|
|
958
|
-
style: styles2.inputContainerRight,
|
|
959
|
-
onPress: () => {
|
|
960
|
-
onIconClick == null ? void 0 : onIconClick({
|
|
961
|
-
inputName: name && name || "",
|
|
962
|
-
inputValue: value
|
|
963
|
-
});
|
|
964
|
-
if (iconPassword === "tri-eye" /* EYE */) {
|
|
965
|
-
setIconPassword("tri-eye-slash" /* EYE_SLASH */);
|
|
966
|
-
} else {
|
|
967
|
-
setIconPassword("tri-eye" /* EYE */);
|
|
1
|
+
import { ComponentName } from '../../components/enumsComponentsName';
|
|
2
|
+
import Input from '../../components/input/Input.native';
|
|
3
|
+
import { Modal, ModalBody } from '../../components/modal';
|
|
4
|
+
import React, { useCallback, useEffect, useState } from 'react';
|
|
5
|
+
import { TouchableOpacity, View } from 'react-native';
|
|
6
|
+
import SelectOption from './option/index.native';
|
|
7
|
+
/**
|
|
8
|
+
* Select Component
|
|
9
|
+
* @param id {string} Select id
|
|
10
|
+
* @param name {string} Select name
|
|
11
|
+
* @param selected {string} Selected value
|
|
12
|
+
* @param children {React.ReactNode} Children for Select
|
|
13
|
+
* @param label {string} label for select
|
|
14
|
+
* @param iconName {IconName} icon for left of selector
|
|
15
|
+
* @param onChange {Function} onChange Event
|
|
16
|
+
* @param disabled {boolean} disable Select
|
|
17
|
+
* @param multiple {boolean} select multiple options
|
|
18
|
+
* @param nullable {boolean} Unselect Select Option Item
|
|
19
|
+
*/
|
|
20
|
+
const Select = React.forwardRef(({ children, id, selected, label, iconName, onChange, disabled, multiple, onBlur, status, ...others }, ref) => {
|
|
21
|
+
const [selectedValues, setSelectedValues] = useState(selected);
|
|
22
|
+
const [selectedNames, setSelectedNames] = React.useState([]);
|
|
23
|
+
const [display, setDisplay] = useState(false);
|
|
24
|
+
const reactId = React.useId();
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
const labelSelected = React.Children.map(children, (child) => {
|
|
27
|
+
if (!React.isValidElement(child))
|
|
28
|
+
return false;
|
|
29
|
+
const label = child.props.children || child.props.label;
|
|
30
|
+
switch (true) {
|
|
31
|
+
case (Array.isArray(selected) && selected.includes(child.props.value)) ||
|
|
32
|
+
(!Array.isArray(selected) && child.props.value === selected):
|
|
33
|
+
return label;
|
|
34
|
+
default:
|
|
35
|
+
return false;
|
|
968
36
|
}
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
Icon_default,
|
|
973
|
-
{
|
|
974
|
-
testId: "password-id",
|
|
975
|
-
align: "ALIGNED_CENTER" /* ALIGNED_CENTER */,
|
|
976
|
-
name: iconPassword,
|
|
977
|
-
size: "small" /* SMALL */,
|
|
978
|
-
color: status && status === "success" && "SUCCESS" /* SUCCESS */ || status && status === "warning" && "WARNING" /* WARNING */ || status && status === "error" && "ERROR" /* ERROR */ || status && status === "default" && "MAIN" /* MAIN */ || disabled && "DISABLED" /* DISABLED */ || "MAIN" /* MAIN */
|
|
979
|
-
}
|
|
980
|
-
)
|
|
981
|
-
)), type === "search" /* SEARCH */ && !status && /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement(import_react_native3.View, { style: styles2.inputContainerLeft }, /* @__PURE__ */ import_react6.default.createElement(
|
|
982
|
-
Icon_default,
|
|
983
|
-
{
|
|
984
|
-
align: "ALIGNED_CENTER" /* ALIGNED_CENTER */,
|
|
985
|
-
name: "tri-search" /* SEARCH */,
|
|
986
|
-
size: "small" /* SMALL */,
|
|
987
|
-
color: disabled ? "DISABLED" /* DISABLED */ : "NEUTRAL" /* NEUTRAL */
|
|
988
|
-
}
|
|
989
|
-
)), value.length > 0 && /* @__PURE__ */ import_react6.default.createElement(
|
|
990
|
-
import_react_native3.TouchableOpacity,
|
|
991
|
-
{
|
|
992
|
-
testID: "search-id",
|
|
993
|
-
style: styles2.inputContainerRight,
|
|
994
|
-
onPressIn: () => {
|
|
995
|
-
onChange == null ? void 0 : onChange({
|
|
996
|
-
inputName: name && name || "",
|
|
997
|
-
inputValue: "",
|
|
998
|
-
inputSelectionStart: null
|
|
999
|
-
});
|
|
1000
|
-
onIconClick == null ? void 0 : onIconClick({
|
|
1001
|
-
inputName: name && name || "",
|
|
1002
|
-
inputValue: ""
|
|
1003
|
-
});
|
|
1004
|
-
setValue("");
|
|
1005
|
-
}
|
|
1006
|
-
},
|
|
1007
|
-
/* @__PURE__ */ import_react6.default.createElement(
|
|
1008
|
-
Icon_default,
|
|
1009
|
-
{
|
|
1010
|
-
align: "ALIGNED_CENTER" /* ALIGNED_CENTER */,
|
|
1011
|
-
name: "tri-times" /* TIMES_CIRCLE */,
|
|
1012
|
-
size: "small" /* SMALL */,
|
|
1013
|
-
color: disabled ? "DISABLED" /* DISABLED */ : "NEUTRAL" /* NEUTRAL */
|
|
1014
|
-
}
|
|
1015
|
-
)
|
|
1016
|
-
))),
|
|
1017
|
-
help && /* @__PURE__ */ import_react6.default.createElement(Text_default, { testId: "help-id", style: styles2.help }, help),
|
|
1018
|
-
type === "password" /* PASSWORD */ && securityGauge && /* @__PURE__ */ import_react6.default.createElement(InputGauge_native_default, { validationRules, inputValue: value })
|
|
1019
|
-
);
|
|
1020
|
-
}
|
|
1021
|
-
);
|
|
1022
|
-
Input.displayName = "Input" /* Input */;
|
|
1023
|
-
var Input_native_default = Input;
|
|
1024
|
-
|
|
1025
|
-
// components/button/Button.tsx
|
|
1026
|
-
var import_clsx4 = __toESM(require("clsx"));
|
|
1027
|
-
var import_react7 = __toESM(require("react"));
|
|
1028
|
-
|
|
1029
|
-
// components/button/ButtonEnum.ts
|
|
1030
|
-
var ButtonMarkup = /* @__PURE__ */ ((ButtonMarkup2) => {
|
|
1031
|
-
ButtonMarkup2["BUTTON"] = "button";
|
|
1032
|
-
ButtonMarkup2["INPUT"] = "input";
|
|
1033
|
-
ButtonMarkup2["A"] = "a";
|
|
1034
|
-
return ButtonMarkup2;
|
|
1035
|
-
})(ButtonMarkup || {});
|
|
1036
|
-
|
|
1037
|
-
// components/button/Button.tsx
|
|
1038
|
-
var Button = import_react7.default.forwardRef(
|
|
1039
|
-
(_a, ref) => {
|
|
1040
|
-
var _b = _a, {
|
|
1041
|
-
markup,
|
|
1042
|
-
loading,
|
|
1043
|
-
variant,
|
|
1044
|
-
href,
|
|
1045
|
-
id,
|
|
1046
|
-
fullwidth,
|
|
1047
|
-
children,
|
|
1048
|
-
className,
|
|
1049
|
-
to,
|
|
1050
|
-
accessibilityLabel,
|
|
1051
|
-
onClick,
|
|
1052
|
-
name,
|
|
1053
|
-
routerLink,
|
|
1054
|
-
type,
|
|
1055
|
-
iconName,
|
|
1056
|
-
disabled
|
|
1057
|
-
} = _b, others = __objRest(_b, [
|
|
1058
|
-
"markup",
|
|
1059
|
-
"loading",
|
|
1060
|
-
"variant",
|
|
1061
|
-
"href",
|
|
1062
|
-
"id",
|
|
1063
|
-
"fullwidth",
|
|
1064
|
-
"children",
|
|
1065
|
-
"className",
|
|
1066
|
-
"to",
|
|
1067
|
-
"accessibilityLabel",
|
|
1068
|
-
"onClick",
|
|
1069
|
-
"name",
|
|
1070
|
-
"routerLink",
|
|
1071
|
-
"type",
|
|
1072
|
-
"iconName",
|
|
1073
|
-
"disabled"
|
|
1074
|
-
]);
|
|
1075
|
-
const isDisabled = disabled || false;
|
|
1076
|
-
const { styled } = useTrilogyContext();
|
|
1077
|
-
const isCorrectMarkup2 = (stringMarkup) => {
|
|
1078
|
-
if (stringMarkup in ButtonMarkup || Object.values(ButtonMarkup).includes(stringMarkup))
|
|
1079
|
-
return true;
|
|
1080
|
-
};
|
|
1081
|
-
const getClassNames = (loading2, variant2, fullwidth2, className2) => {
|
|
1082
|
-
return (0, import_clsx4.default)(
|
|
1083
|
-
"button",
|
|
1084
|
-
loading2 && is("loading"),
|
|
1085
|
-
variant2 && is(getButtonVariantClassName(variant2)),
|
|
1086
|
-
fullwidth2 && is("fullwidth"),
|
|
1087
|
-
className2
|
|
1088
|
-
);
|
|
1089
|
-
};
|
|
1090
|
-
const classes = hashClass(styled, getClassNames(loading, variant, fullwidth, className));
|
|
1091
|
-
const Tag = markup && isCorrectMarkup2(markup) ? markup : "button";
|
|
1092
|
-
if (Tag === "button" && !href && !to) {
|
|
1093
|
-
return /* @__PURE__ */ import_react7.default.createElement(
|
|
1094
|
-
"button",
|
|
1095
|
-
__spreadValues({
|
|
1096
|
-
ref,
|
|
1097
|
-
id,
|
|
1098
|
-
"aria-label": accessibilityLabel,
|
|
1099
|
-
className: classes,
|
|
1100
|
-
disabled: isDisabled,
|
|
1101
|
-
name,
|
|
1102
|
-
onClick: (e) => {
|
|
1103
|
-
!isDisabled && (onClick == null ? void 0 : onClick(e));
|
|
1104
|
-
e.stopPropagation();
|
|
1105
|
-
},
|
|
1106
|
-
type: type != null ? type : "button"
|
|
1107
|
-
}, others),
|
|
1108
|
-
iconName && /* @__PURE__ */ import_react7.default.createElement(Icon_default, { className: !children ? "is-marginless" : "", name: iconName }),
|
|
1109
|
-
children
|
|
1110
|
-
);
|
|
1111
|
-
}
|
|
1112
|
-
if (Tag === "input") {
|
|
1113
|
-
return /* @__PURE__ */ import_react7.default.createElement(
|
|
1114
|
-
"input",
|
|
1115
|
-
__spreadValues({
|
|
1116
|
-
ref,
|
|
1117
|
-
id,
|
|
1118
|
-
className: classes,
|
|
1119
|
-
"aria-label": accessibilityLabel,
|
|
1120
|
-
name,
|
|
1121
|
-
onClick: (e) => {
|
|
1122
|
-
!isDisabled && (onClick == null ? void 0 : onClick(e));
|
|
1123
|
-
e.stopPropagation();
|
|
1124
|
-
},
|
|
1125
|
-
disabled: isDisabled,
|
|
1126
|
-
type: type != null ? type : "submit",
|
|
1127
|
-
value: `${children}`
|
|
1128
|
-
}, others)
|
|
1129
|
-
);
|
|
1130
|
-
}
|
|
1131
|
-
if (routerLink && to && !isDisabled) {
|
|
1132
|
-
const RouterLink = routerLink ? routerLink : "a";
|
|
1133
|
-
return /* @__PURE__ */ import_react7.default.createElement(RouterLink, __spreadValues({ ref, "aria-label": accessibilityLabel, to, className: classes }, others), iconName && /* @__PURE__ */ import_react7.default.createElement(Icon_default, { className: !children ? "is-marginless" : "", name: iconName }), children);
|
|
1134
|
-
}
|
|
1135
|
-
return /* @__PURE__ */ import_react7.default.createElement(
|
|
1136
|
-
"a",
|
|
1137
|
-
__spreadValues(__spreadValues({
|
|
1138
|
-
ref,
|
|
1139
|
-
id,
|
|
1140
|
-
"aria-label": accessibilityLabel,
|
|
1141
|
-
className: classes,
|
|
1142
|
-
href,
|
|
1143
|
-
onClick: (e) => {
|
|
1144
|
-
!isDisabled && (onClick == null ? void 0 : onClick(e));
|
|
1145
|
-
e.stopPropagation();
|
|
1146
|
-
}
|
|
1147
|
-
}, others), disabled && { "aria-disabled": true }),
|
|
1148
|
-
iconName && /* @__PURE__ */ import_react7.default.createElement(Icon_default, { className: !children ? "is-marginless" : "", name: iconName }),
|
|
1149
|
-
children
|
|
1150
|
-
);
|
|
1151
|
-
}
|
|
1152
|
-
);
|
|
1153
|
-
Button.displayName = "Button" /* Button */;
|
|
1154
|
-
|
|
1155
|
-
// components/button/list/ButtonList.tsx
|
|
1156
|
-
var import_clsx5 = __toESM(require("clsx"));
|
|
1157
|
-
var React10 = __toESM(require("react"));
|
|
1158
|
-
var ButtonList = React10.forwardRef(
|
|
1159
|
-
(_a, ref) => {
|
|
1160
|
-
var _b = _a, { className, id, align, direction } = _b, others = __objRest(_b, ["className", "id", "align", "direction"]);
|
|
1161
|
-
const { styled } = useTrilogyContext();
|
|
1162
|
-
return /* @__PURE__ */ React10.createElement(
|
|
1163
|
-
"div",
|
|
1164
|
-
__spreadValues({
|
|
1165
|
-
ref,
|
|
1166
|
-
id,
|
|
1167
|
-
className: hashClass(
|
|
1168
|
-
styled,
|
|
1169
|
-
(0, import_clsx5.default)(
|
|
1170
|
-
"buttons",
|
|
1171
|
-
className,
|
|
1172
|
-
align && is(getJustifiedClassName(align)),
|
|
1173
|
-
direction === "column" /* COLUMN */ && is("vertical")
|
|
1174
|
-
)
|
|
1175
|
-
)
|
|
1176
|
-
}, others)
|
|
1177
|
-
);
|
|
1178
|
-
}
|
|
1179
|
-
);
|
|
1180
|
-
ButtonList.displayName = "ButtonList" /* ButtonList */;
|
|
1181
|
-
|
|
1182
|
-
// components/title/Title.tsx
|
|
1183
|
-
var import_clsx6 = __toESM(require("clsx"));
|
|
1184
|
-
var import_react8 = __toESM(require("react"));
|
|
1185
|
-
|
|
1186
|
-
// components/title/TitleEnum.ts
|
|
1187
|
-
var TitleMarkup = /* @__PURE__ */ ((TitleMarkup2) => {
|
|
1188
|
-
TitleMarkup2["H1"] = "h1";
|
|
1189
|
-
TitleMarkup2["H2"] = "h2";
|
|
1190
|
-
TitleMarkup2["H3"] = "h3";
|
|
1191
|
-
TitleMarkup2["H4"] = "h4";
|
|
1192
|
-
TitleMarkup2["H5"] = "h5";
|
|
1193
|
-
TitleMarkup2["H6"] = "h6";
|
|
1194
|
-
TitleMarkup2["P"] = "p";
|
|
1195
|
-
TitleMarkup2["SPAN"] = "span";
|
|
1196
|
-
TitleMarkup2["DIV"] = "div";
|
|
1197
|
-
return TitleMarkup2;
|
|
1198
|
-
})(TitleMarkup || {});
|
|
1199
|
-
|
|
1200
|
-
// components/title/Title.tsx
|
|
1201
|
-
var getTitleLevel = (level) => {
|
|
1202
|
-
if (level) {
|
|
1203
|
-
switch (level) {
|
|
1204
|
-
case 1 /* ONE */:
|
|
1205
|
-
return is(`level-1`);
|
|
1206
|
-
case 2 /* TWO */:
|
|
1207
|
-
return is(`level-2`);
|
|
1208
|
-
case 3 /* THREE */:
|
|
1209
|
-
return is(`level-3`);
|
|
1210
|
-
case 4 /* FOUR */:
|
|
1211
|
-
return is(`level-4`);
|
|
1212
|
-
case 5 /* FIVE */:
|
|
1213
|
-
return is(`level-5`);
|
|
1214
|
-
case 6 /* SIX */:
|
|
1215
|
-
return is(`level-6`);
|
|
1216
|
-
default:
|
|
1217
|
-
return is(`level-${level}`);
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
};
|
|
1221
|
-
var isCorrectMarkup = (stringMarkup) => {
|
|
1222
|
-
return stringMarkup in TitleMarkup || Object.values(TitleMarkup).includes(stringMarkup);
|
|
1223
|
-
};
|
|
1224
|
-
var Title = import_react8.default.forwardRef(
|
|
1225
|
-
(_a, ref) => {
|
|
1226
|
-
var _b = _a, {
|
|
1227
|
-
level = 1 /* ONE */,
|
|
1228
|
-
markup,
|
|
1229
|
-
children,
|
|
1230
|
-
className,
|
|
1231
|
-
id,
|
|
1232
|
-
typo,
|
|
1233
|
-
skeleton,
|
|
1234
|
-
inverted,
|
|
1235
|
-
onClick,
|
|
1236
|
-
accessibilityLabel,
|
|
1237
|
-
subtitle,
|
|
1238
|
-
overline,
|
|
1239
|
-
marginless
|
|
1240
|
-
} = _b, others = __objRest(_b, [
|
|
1241
|
-
"level",
|
|
1242
|
-
"markup",
|
|
1243
|
-
"children",
|
|
1244
|
-
"className",
|
|
1245
|
-
"id",
|
|
1246
|
-
"typo",
|
|
1247
|
-
"skeleton",
|
|
1248
|
-
"inverted",
|
|
1249
|
-
"onClick",
|
|
1250
|
-
"accessibilityLabel",
|
|
1251
|
-
"subtitle",
|
|
1252
|
-
"overline",
|
|
1253
|
-
"marginless"
|
|
1254
|
-
]);
|
|
1255
|
-
const { styled } = useTrilogyContext();
|
|
1256
|
-
const classes = hashClass(
|
|
1257
|
-
styled,
|
|
1258
|
-
(0, import_clsx6.default)(
|
|
1259
|
-
"title",
|
|
1260
|
-
level && getTitleLevel(level),
|
|
1261
|
-
typo,
|
|
1262
|
-
skeleton && is("loading"),
|
|
1263
|
-
inverted && is("inverted"),
|
|
1264
|
-
marginless && is("marginless"),
|
|
1265
|
-
className
|
|
1266
|
-
)
|
|
1267
|
-
);
|
|
1268
|
-
const subtitleClasses = hashClass(styled, (0, import_clsx6.default)("subtitle", typo, className));
|
|
1269
|
-
const overlineClasses = hashClass(styled, (0, import_clsx6.default)("overline", typo, className));
|
|
1270
|
-
const Tag = markup && isCorrectMarkup(markup) ? markup : "p";
|
|
1271
|
-
const getClassname = () => {
|
|
1272
|
-
if (subtitle) return subtitleClasses;
|
|
1273
|
-
if (overline) return overlineClasses;
|
|
1274
|
-
return classes;
|
|
1275
|
-
};
|
|
1276
|
-
return /* @__PURE__ */ import_react8.default.createElement(Tag, __spreadValues({ ref, id, "aria-label": accessibilityLabel, onClick, className: getClassname() }, others), children);
|
|
1277
|
-
}
|
|
1278
|
-
);
|
|
1279
|
-
Title.displayName = "Title" /* Title */;
|
|
1280
|
-
var Title_default = Title;
|
|
1281
|
-
|
|
1282
|
-
// components/modal/Modal.tsx
|
|
1283
|
-
var import_modal = __toESM(require("@trilogy-ds/locales/lib/modal"));
|
|
1284
|
-
var import_clsx7 = __toESM(require("clsx"));
|
|
1285
|
-
var import_react9 = __toESM(require("react"));
|
|
1286
|
-
var Modal = import_react9.default.forwardRef(
|
|
1287
|
-
(_a, ref) => {
|
|
1288
|
-
var _b = _a, {
|
|
1289
|
-
children,
|
|
1290
|
-
className,
|
|
1291
|
-
id,
|
|
1292
|
-
accessibilityLabel = "Close",
|
|
1293
|
-
active,
|
|
1294
|
-
onClose,
|
|
1295
|
-
unClosable,
|
|
1296
|
-
panel,
|
|
1297
|
-
size,
|
|
1298
|
-
hideCloseButton = false,
|
|
1299
|
-
trigger,
|
|
1300
|
-
title
|
|
1301
|
-
} = _b, others = __objRest(_b, [
|
|
1302
|
-
"children",
|
|
1303
|
-
"className",
|
|
1304
|
-
"id",
|
|
1305
|
-
"accessibilityLabel",
|
|
1306
|
-
"active",
|
|
1307
|
-
"onClose",
|
|
1308
|
-
"unClosable",
|
|
1309
|
-
"panel",
|
|
1310
|
-
"size",
|
|
1311
|
-
"hideCloseButton",
|
|
1312
|
-
"trigger",
|
|
1313
|
-
"title"
|
|
1314
|
-
]);
|
|
1315
|
-
const modalContentRef = (0, import_react9.useRef)(null);
|
|
1316
|
-
const [display, setDisplay] = (0, import_react9.useState)(active || false);
|
|
1317
|
-
const { styled } = useTrilogyContext();
|
|
1318
|
-
const refBtnModal = (0, import_react9.useRef)(null);
|
|
1319
|
-
const refModal = (0, import_react9.useRef)(null);
|
|
1320
|
-
const modalGeneratedId = (0, import_react9.useId)();
|
|
1321
|
-
const focusableElementsRef = (0, import_react9.useRef)(null);
|
|
1322
|
-
const currentFocusIndexRef = (0, import_react9.useRef)(0);
|
|
1323
|
-
const handleClose = import_react9.default.useCallback(
|
|
1324
|
-
(onCloseFunc, e) => {
|
|
1325
|
-
if (!unClosable) {
|
|
1326
|
-
setDisplay(false);
|
|
1327
|
-
refBtnModal.current && refBtnModal.current.focus();
|
|
1328
|
-
if (onCloseFunc) onCloseFunc(e);
|
|
1329
|
-
}
|
|
1330
|
-
},
|
|
1331
|
-
[refBtnModal.current]
|
|
1332
|
-
);
|
|
1333
|
-
const classes = hashClass(
|
|
1334
|
-
styled,
|
|
1335
|
-
(0, import_clsx7.default)("modal", display && is("active"), size && is(size), panel && is("panel"), className)
|
|
1336
|
-
);
|
|
1337
|
-
const onKeyDown = (0, import_react9.useCallback)(
|
|
1338
|
-
(e) => {
|
|
1339
|
-
if (display && e.key === "Tab") {
|
|
1340
|
-
e.preventDefault();
|
|
1341
|
-
if (focusableElementsRef.current) {
|
|
1342
|
-
const currentIndex = currentFocusIndexRef.current;
|
|
1343
|
-
const offset = e.shiftKey ? -1 : 1;
|
|
1344
|
-
const nextIndex = (currentIndex + offset + focusableElementsRef.current.length) % focusableElementsRef.current.length;
|
|
1345
|
-
currentFocusIndexRef.current = nextIndex;
|
|
1346
|
-
focusableElementsRef.current[nextIndex].focus();
|
|
1347
|
-
}
|
|
1348
|
-
}
|
|
1349
|
-
if (!unClosable && display && e.key === "Escape") {
|
|
1350
|
-
e.preventDefault();
|
|
1351
|
-
setDisplay(false);
|
|
1352
|
-
refBtnModal.current && refBtnModal.current.focus();
|
|
1353
|
-
currentFocusIndexRef.current = 0;
|
|
1354
|
-
onClose && onClose();
|
|
1355
|
-
}
|
|
1356
|
-
},
|
|
1357
|
-
[display, focusableElementsRef, currentFocusIndexRef, refBtnModal, onClose]
|
|
1358
|
-
);
|
|
1359
|
-
(0, import_react9.useEffect)(() => {
|
|
1360
|
-
setDisplay((prev) => {
|
|
1361
|
-
if (prev) {
|
|
1362
|
-
refBtnModal.current && refBtnModal.current.focus();
|
|
1363
|
-
currentFocusIndexRef.current = 0;
|
|
1364
|
-
}
|
|
1365
|
-
return active || false;
|
|
1366
|
-
});
|
|
1367
|
-
}, [active, currentFocusIndexRef, refBtnModal]);
|
|
1368
|
-
(0, import_react9.useEffect)(() => {
|
|
1369
|
-
!hideCloseButton && display && focusableElementsRef.current && focusableElementsRef.current[0].focus();
|
|
1370
|
-
}, [hideCloseButton, display, focusableElementsRef]);
|
|
1371
|
-
(0, import_react9.useEffect)(() => {
|
|
1372
|
-
if (modalContentRef.current) {
|
|
1373
|
-
focusableElementsRef.current = modalContentRef.current.querySelectorAll(
|
|
1374
|
-
'button:not(:disabled), input:not(:disabled), a, select:not(:disabled), textarea:not(:disabled), details:not([aria-disabled="true"]) > summary'
|
|
1375
|
-
);
|
|
1376
|
-
}
|
|
1377
|
-
}, [modalContentRef, focusableElementsRef]);
|
|
1378
|
-
return /* @__PURE__ */ import_react9.default.createElement("div", { onKeyDown, ref: refModal }, trigger && import_react9.default.cloneElement(trigger, { ref: refBtnModal, "aria-haspopup": "dialog" }), /* @__PURE__ */ import_react9.default.createElement(
|
|
1379
|
-
"div",
|
|
1380
|
-
__spreadValues({
|
|
1381
|
-
ref,
|
|
1382
|
-
id,
|
|
1383
|
-
className: classes,
|
|
1384
|
-
role: "dialog",
|
|
1385
|
-
"aria-labelledby": modalGeneratedId,
|
|
1386
|
-
"aria-modal": true,
|
|
1387
|
-
onClick: (e) => {
|
|
1388
|
-
var _a2;
|
|
1389
|
-
if (!((_a2 = modalContentRef == null ? void 0 : modalContentRef.current) == null ? void 0 : _a2.contains(e.target))) {
|
|
1390
|
-
handleClose(onClose, e);
|
|
1391
|
-
}
|
|
1392
|
-
}
|
|
1393
|
-
}, others),
|
|
1394
|
-
/* @__PURE__ */ import_react9.default.createElement("div", { ref: modalContentRef, className: hashClass(styled, (0, import_clsx7.default)("modal-content")) }, /* @__PURE__ */ import_react9.default.createElement("div", { className: hashClass(styled, (0, import_clsx7.default)("modal-header")) }, !hideCloseButton && /* @__PURE__ */ import_react9.default.createElement(
|
|
1395
|
-
"button",
|
|
1396
|
-
{
|
|
1397
|
-
onClick: (e) => {
|
|
1398
|
-
handleClose(onClose, e);
|
|
1399
|
-
},
|
|
1400
|
-
className: hashClass(styled, (0, import_clsx7.default)("modal-close", is("large"))),
|
|
1401
|
-
type: "button" /* BUTTON */
|
|
1402
|
-
},
|
|
1403
|
-
/* @__PURE__ */ import_react9.default.createElement("span", { className: hashClass(styled, (0, import_clsx7.default)("sr-only")) }, import_modal.default.accessibilityLabelButtonClose)
|
|
1404
|
-
), /* @__PURE__ */ import_react9.default.createElement(Title_default, { id: modalGeneratedId, level: 3 /* THREE */, markup: "h1" /* H1 */ }, title)), children && children)
|
|
1405
|
-
));
|
|
1406
|
-
}
|
|
1407
|
-
);
|
|
1408
|
-
Modal.displayName = "Modal" /* Modal */;
|
|
1409
|
-
var Modal_default = Modal;
|
|
1410
|
-
|
|
1411
|
-
// components/modal/footer/ModalFooter.tsx
|
|
1412
|
-
var import_clsx8 = __toESM(require("clsx"));
|
|
1413
|
-
var React13 = __toESM(require("react"));
|
|
1414
|
-
var ModalFooter = React13.forwardRef(
|
|
1415
|
-
({ children, className, id }, ref) => {
|
|
1416
|
-
const { styled } = useTrilogyContext();
|
|
1417
|
-
return /* @__PURE__ */ React13.createElement("div", { ref, "data-modal-footer": "", id, className: hashClass(styled, (0, import_clsx8.default)("modal-footer", className)) }, children);
|
|
1418
|
-
}
|
|
1419
|
-
);
|
|
1420
|
-
ModalFooter.displayName = "ModalFooter" /* ModalFooter */;
|
|
1421
|
-
|
|
1422
|
-
// components/modal/body/ModalBody.tsx
|
|
1423
|
-
var import_clsx9 = __toESM(require("clsx"));
|
|
1424
|
-
var React14 = __toESM(require("react"));
|
|
1425
|
-
var ModalBody = React14.forwardRef(({ children, className, id }, ref) => {
|
|
1426
|
-
const { styled } = useTrilogyContext();
|
|
1427
|
-
return /* @__PURE__ */ React14.createElement("div", { ref, id, className: hashClass(styled, (0, import_clsx9.default)("modal-body", className)) }, children);
|
|
1428
|
-
});
|
|
1429
|
-
ModalBody.displayName = "ModalBody" /* ModalBody */;
|
|
1430
|
-
var ModalBody_default = ModalBody;
|
|
1431
|
-
|
|
1432
|
-
// components/select/Select.native.tsx
|
|
1433
|
-
var import_react11 = __toESM(require("react"));
|
|
1434
|
-
var import_react_native4 = require("react-native");
|
|
1435
|
-
|
|
1436
|
-
// components/select/option/SelectOption.tsx
|
|
1437
|
-
var import_clsx10 = __toESM(require("clsx"));
|
|
1438
|
-
var React16 = __toESM(require("react"));
|
|
1439
|
-
|
|
1440
|
-
// components/select/context/index.tsx
|
|
1441
|
-
var import_react10 = __toESM(require("react"));
|
|
1442
|
-
var SelectContext = import_react10.default.createContext({
|
|
1443
|
-
selectedOptionValues: [],
|
|
1444
|
-
multiple: false,
|
|
1445
|
-
custom: false,
|
|
1446
|
-
isVisibleOptions: false,
|
|
1447
|
-
setIsVisibleOptions: () => false,
|
|
1448
|
-
setSelectedOptionValues: () => []
|
|
1449
|
-
});
|
|
1450
|
-
|
|
1451
|
-
// components/select/option/SelectOption.tsx
|
|
1452
|
-
var SelectOption = React16.forwardRef(
|
|
1453
|
-
(_a, ref) => {
|
|
1454
|
-
var _b = _a, { id, className, value = "", disabled, children, onClick, label, iconName, testId } = _b, others = __objRest(_b, ["id", "className", "value", "disabled", "children", "onClick", "label", "iconName", "testId"]);
|
|
1455
|
-
const { styled } = useTrilogyContext();
|
|
1456
|
-
const { custom, selectedOptionValues, setSelectedOptionValues, multiple, setIsVisibleOptions, onChange } = React16.useContext(SelectContext);
|
|
1457
|
-
const isChecked = selectedOptionValues.includes(value);
|
|
1458
|
-
const selectClasses = hashClass(styled, (0, import_clsx10.default)("option", isChecked && "focus", disabled && is("disabled"), className));
|
|
1459
|
-
const handleClickOption = () => {
|
|
1460
|
-
setSelectedOptionValues((prev) => {
|
|
1461
|
-
const isInclude = prev.includes(value);
|
|
1462
|
-
const newOptionsSelected = !multiple && isInclude ? [] : !multiple && !isInclude ? [value] : isInclude ? prev.filter((opt) => opt !== value) : [...prev, value];
|
|
1463
|
-
if (onChange) {
|
|
1464
|
-
onChange({
|
|
1465
|
-
selectValue: isInclude ? void 0 : value,
|
|
1466
|
-
selectName: isInclude ? void 0 : children || label,
|
|
1467
|
-
selectId: isInclude ? void 0 : id,
|
|
1468
|
-
name: isInclude ? void 0 : children || label,
|
|
1469
|
-
selectedOptions: newOptionsSelected,
|
|
1470
|
-
target: void 0
|
|
1471
|
-
});
|
|
1472
|
-
}
|
|
1473
|
-
return newOptionsSelected;
|
|
1474
|
-
});
|
|
1475
|
-
if (!multiple) setIsVisibleOptions(false);
|
|
1476
|
-
};
|
|
1477
|
-
if (custom || multiple) {
|
|
1478
|
-
return /* @__PURE__ */ React16.createElement(
|
|
1479
|
-
"li",
|
|
1480
|
-
__spreadValues({
|
|
1481
|
-
ref,
|
|
1482
|
-
id,
|
|
1483
|
-
className: selectClasses,
|
|
1484
|
-
"data-selected": isChecked,
|
|
1485
|
-
role: "option",
|
|
1486
|
-
"aria-selected": isChecked,
|
|
1487
|
-
"data-value": value,
|
|
1488
|
-
onClick: !disabled ? handleClickOption : void 0
|
|
1489
|
-
}, others),
|
|
1490
|
-
iconName && /* @__PURE__ */ React16.createElement(Icon_default, { name: iconName }),
|
|
1491
|
-
label || children
|
|
1492
|
-
);
|
|
1493
|
-
}
|
|
1494
|
-
return /* @__PURE__ */ React16.createElement(
|
|
1495
|
-
"option",
|
|
1496
|
-
__spreadValues({
|
|
1497
|
-
ref,
|
|
1498
|
-
role: "option",
|
|
1499
|
-
id,
|
|
1500
|
-
value,
|
|
1501
|
-
disabled,
|
|
1502
|
-
"aria-label": label,
|
|
1503
|
-
"data-testid": testId,
|
|
1504
|
-
onClick
|
|
1505
|
-
}, others),
|
|
1506
|
-
children || label
|
|
1507
|
-
);
|
|
1508
|
-
}
|
|
1509
|
-
);
|
|
1510
|
-
SelectOption.displayName = "SelectOption" /* SelectOption */;
|
|
1511
|
-
var SelectOption_default = SelectOption;
|
|
1512
|
-
|
|
1513
|
-
// components/select/option/index.ts
|
|
1514
|
-
var option_default = SelectOption_default;
|
|
1515
|
-
|
|
1516
|
-
// components/select/Select.native.tsx
|
|
1517
|
-
var Select = import_react11.default.forwardRef(
|
|
1518
|
-
(_a, ref) => {
|
|
1519
|
-
var _b = _a, { children, id, selected, label, iconName, onChange, disabled, multiple, onBlur, status } = _b, others = __objRest(_b, ["children", "id", "selected", "label", "iconName", "onChange", "disabled", "multiple", "onBlur", "status"]);
|
|
1520
|
-
const [selectedValues, setSelectedValues] = (0, import_react11.useState)(selected);
|
|
1521
|
-
const [selectedNames, setSelectedNames] = import_react11.default.useState([]);
|
|
1522
|
-
const [display, setDisplay] = (0, import_react11.useState)(false);
|
|
1523
|
-
const reactId = import_react11.default.useId();
|
|
1524
|
-
(0, import_react11.useEffect)(() => {
|
|
1525
|
-
var _a2;
|
|
1526
|
-
const labelSelected = (_a2 = import_react11.default.Children.map(children, (child) => {
|
|
1527
|
-
if (!import_react11.default.isValidElement(child)) return false;
|
|
1528
|
-
const label2 = child.props.children || child.props.label;
|
|
1529
|
-
switch (true) {
|
|
1530
|
-
case (Array.isArray(selected) && selected.includes(child.props.value) || !Array.isArray(selected) && child.props.value === selected):
|
|
1531
|
-
return label2;
|
|
1532
|
-
default:
|
|
1533
|
-
return false;
|
|
1534
|
-
}
|
|
1535
|
-
})) == null ? void 0 : _a2.filter((item) => item);
|
|
1536
|
-
labelSelected && setSelectedNames(labelSelected);
|
|
1537
|
-
setSelectedValues(selected);
|
|
37
|
+
})?.filter((item) => item);
|
|
38
|
+
labelSelected && setSelectedNames(labelSelected);
|
|
39
|
+
setSelectedValues(selected);
|
|
1538
40
|
}, [selected]);
|
|
1539
|
-
const handleOpenCloseModal =
|
|
1540
|
-
|
|
41
|
+
const handleOpenCloseModal = useCallback(() => {
|
|
42
|
+
!disabled && setDisplay((prev) => !prev);
|
|
1541
43
|
}, [disabled]);
|
|
1542
|
-
const isChecked = (
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
)
|
|
1546
|
-
const setNewSelectedValues = (0, import_react11.useCallback)(
|
|
1547
|
-
({
|
|
1548
|
-
isChecked: isChecked2,
|
|
1549
|
-
children: children2,
|
|
1550
|
-
label: label2,
|
|
1551
|
-
value
|
|
1552
|
-
}) => {
|
|
44
|
+
const isChecked = useCallback((value) => multiple && selectedValues && typeof selectedValues !== 'string' && typeof selectedValues !== 'number'
|
|
45
|
+
? selectedValues?.includes(value)
|
|
46
|
+
: selectedValues === value, [multiple, selectedValues]);
|
|
47
|
+
const setNewSelectedValues = useCallback(({ isChecked, children, label, value, }) => {
|
|
1553
48
|
const selectedOptions = [];
|
|
1554
|
-
if (
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
}
|
|
1571
|
-
if (!isChecked2) {
|
|
1572
|
-
setSelectedValues((prev) => {
|
|
1573
|
-
if (Array.isArray(prev)) {
|
|
1574
|
-
const opts = [...prev, value];
|
|
1575
|
-
selectedOptions.push(...opts);
|
|
1576
|
-
return opts;
|
|
1577
|
-
}
|
|
1578
|
-
selectedOptions.push(value);
|
|
1579
|
-
return value;
|
|
1580
|
-
});
|
|
1581
|
-
setSelectedNames((prev) => {
|
|
1582
|
-
if (multiple) return [...prev, children2 || label2];
|
|
1583
|
-
setDisplay(false);
|
|
1584
|
-
return [children2 || label2];
|
|
1585
|
-
});
|
|
49
|
+
if (isChecked) {
|
|
50
|
+
setSelectedValues((prev) => {
|
|
51
|
+
switch (true) {
|
|
52
|
+
case Array.isArray(prev):
|
|
53
|
+
setSelectedNames((prev) => prev.filter((txt) => ![children, label].includes(txt)));
|
|
54
|
+
const opts = prev.filter((item) => item !== value);
|
|
55
|
+
selectedOptions.push(...opts);
|
|
56
|
+
return opts;
|
|
57
|
+
case !Array.isArray(prev):
|
|
58
|
+
setDisplay(false);
|
|
59
|
+
setSelectedNames([]);
|
|
60
|
+
return undefined;
|
|
61
|
+
default:
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
1586
65
|
}
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
case (multiple && (selectedValues == null ? void 0 : selectedValues.includes(child.props.value)) || !multiple && selectedValues === child.props.value):
|
|
1597
|
-
return void 0;
|
|
1598
|
-
default:
|
|
1599
|
-
return v;
|
|
1600
|
-
}
|
|
1601
|
-
};
|
|
1602
|
-
const props = __spreadProps(__spreadValues({}, child.props), {
|
|
1603
|
-
checked: isChecked(child.props.value),
|
|
1604
|
-
onClick: () => {
|
|
1605
|
-
if (child.props.disabled) return;
|
|
1606
|
-
const opts = setNewSelectedValues({
|
|
1607
|
-
children: child.props.children,
|
|
1608
|
-
label: child.props.label,
|
|
1609
|
-
value: child.props.value,
|
|
1610
|
-
isChecked: isChecked(child.props.value)
|
|
66
|
+
if (!isChecked) {
|
|
67
|
+
setSelectedValues((prev) => {
|
|
68
|
+
if (Array.isArray(prev)) {
|
|
69
|
+
const opts = [...prev, value];
|
|
70
|
+
selectedOptions.push(...opts);
|
|
71
|
+
return opts;
|
|
72
|
+
}
|
|
73
|
+
selectedOptions.push(value);
|
|
74
|
+
return value;
|
|
1611
75
|
});
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
selectedOptions: opts
|
|
76
|
+
setSelectedNames((prev) => {
|
|
77
|
+
if (multiple)
|
|
78
|
+
return [...prev, children || label];
|
|
79
|
+
setDisplay(false);
|
|
80
|
+
return [children || label];
|
|
1618
81
|
});
|
|
1619
|
-
|
|
1620
|
-
|
|
82
|
+
}
|
|
83
|
+
return selectedOptions;
|
|
84
|
+
}, [multiple]);
|
|
85
|
+
const options = React.useMemo(() => {
|
|
86
|
+
return React.Children.map(children, (child, index) => {
|
|
87
|
+
if (!React.isValidElement(child))
|
|
88
|
+
return null;
|
|
89
|
+
const clickEventValue = (v) => {
|
|
90
|
+
switch (true) {
|
|
91
|
+
case (multiple && selectedValues?.includes(child.props.value)) ||
|
|
92
|
+
(!multiple && selectedValues === child.props.value):
|
|
93
|
+
return undefined;
|
|
94
|
+
default:
|
|
95
|
+
return v;
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
const props = {
|
|
99
|
+
...child.props,
|
|
100
|
+
checked: isChecked(child.props.value),
|
|
101
|
+
onClick: () => {
|
|
102
|
+
if (child.props.disabled)
|
|
103
|
+
return;
|
|
104
|
+
const opts = setNewSelectedValues({
|
|
105
|
+
children: child.props.children,
|
|
106
|
+
label: child.props.label,
|
|
107
|
+
value: child.props.value,
|
|
108
|
+
isChecked: isChecked(child.props.value),
|
|
109
|
+
});
|
|
110
|
+
onChange &&
|
|
111
|
+
onChange({
|
|
112
|
+
selectValue: clickEventValue(child.props.value),
|
|
113
|
+
selectName: clickEventValue(child.props.children || child.props.label),
|
|
114
|
+
selectId: clickEventValue(child.props.id),
|
|
115
|
+
name: clickEventValue(child.props.children || child.props.label),
|
|
116
|
+
selectedOptions: opts,
|
|
117
|
+
});
|
|
118
|
+
if (child.props.onClick)
|
|
119
|
+
child.props.onClick();
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
return React.createElement(SelectOption, { ...props, key: `${reactId}_${index}` });
|
|
1621
123
|
});
|
|
1622
|
-
return /* @__PURE__ */ import_react11.default.createElement(option_default, __spreadProps(__spreadValues({}, props), { key: `${reactId}_${index}` }));
|
|
1623
|
-
});
|
|
1624
124
|
}, [multiple, selectedValues, children]);
|
|
1625
|
-
return
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
__spreadValues(__spreadValues({
|
|
1634
|
-
status,
|
|
1635
|
-
ref,
|
|
1636
|
-
onBlur,
|
|
1637
|
-
onIconClick: handleOpenCloseModal,
|
|
1638
|
-
disabled,
|
|
1639
|
-
placeholder: label,
|
|
1640
|
-
iconNameLeft: iconName,
|
|
1641
|
-
iconNameRight: display ? "tri-arrow-up" : "tri-arrow-down",
|
|
1642
|
-
value: selectedNames.join(", "),
|
|
1643
|
-
defaultValue: selectedNames.join(", ")
|
|
1644
|
-
}, { editable: false, onPressIn: handleOpenCloseModal, id }), others)
|
|
1645
|
-
))
|
|
1646
|
-
},
|
|
1647
|
-
/* @__PURE__ */ import_react11.default.createElement(ModalBody_default, null, /* @__PURE__ */ import_react11.default.createElement(import_react_native4.View, { style: { paddingBottom: 20 } }, options))
|
|
1648
|
-
);
|
|
1649
|
-
}
|
|
1650
|
-
);
|
|
1651
|
-
Select.displayName = "Select" /* Select */;
|
|
1652
|
-
var Select_native_default = Select;
|
|
125
|
+
return (React.createElement(Modal, { active: display, onClose: handleOpenCloseModal, unClosable: true, trigger: React.createElement(TouchableOpacity, { onPress: handleOpenCloseModal },
|
|
126
|
+
React.createElement(Input, { status: status, ref: ref, onBlur: onBlur, onIconClick: handleOpenCloseModal, disabled: disabled, placeholder: label, iconNameLeft: iconName, iconNameRight: display ? 'tri-arrow-up' : 'tri-arrow-down', value: selectedNames.join(', '), defaultValue: selectedNames.join(', '), editable: false, onPressIn: handleOpenCloseModal, id, ...others })) },
|
|
127
|
+
React.createElement(ModalBody, null,
|
|
128
|
+
React.createElement(View, { style: { paddingBottom: 20 } }, options))));
|
|
129
|
+
});
|
|
130
|
+
Select.displayName = ComponentName.Select;
|
|
131
|
+
export default Select;
|
|
132
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2VsZWN0Lm5hdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2NvbXBvbmVudHMvc2VsZWN0L1NlbGVjdC5uYXRpdmUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQTtBQUNoRSxPQUFPLEtBQUssTUFBTSxpQ0FBaUMsQ0FBQTtBQUNuRCxPQUFPLEVBQUUsS0FBSyxFQUFFLFNBQVMsRUFBRSxNQUFNLG9CQUFvQixDQUFBO0FBQ3JELE9BQU8sS0FBSyxFQUFFLEVBQUUsV0FBVyxFQUFFLFNBQVMsRUFBRSxRQUFRLEVBQUUsTUFBTSxPQUFPLENBQUE7QUFDL0QsT0FBTyxFQUFFLGdCQUFnQixFQUFFLElBQUksRUFBRSxNQUFNLGNBQWMsQ0FBQTtBQUVyRCxPQUFPLFlBQVksTUFBTSx1QkFBdUIsQ0FBQTtBQUVoRDs7Ozs7Ozs7Ozs7O0dBWUc7QUFDSCxNQUFNLE1BQU0sR0FBRyxLQUFLLENBQUMsVUFBVSxDQUM3QixDQUNFLEVBQUUsUUFBUSxFQUFFLEVBQUUsRUFBRSxRQUFRLEVBQUUsS0FBSyxFQUFFLFFBQVEsRUFBRSxRQUFRLEVBQUUsUUFBUSxFQUFFLFFBQVEsRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLEdBQUcsTUFBTSxFQUFFLEVBQ3BHLEdBQUcsRUFDVSxFQUFFO0lBQ2YsTUFBTSxDQUFDLGNBQWMsRUFBRSxpQkFBaUIsQ0FBQyxHQUFHLFFBQVEsQ0FBZ0IsUUFBUSxDQUFDLENBQUE7SUFDN0UsTUFBTSxDQUFDLGFBQWEsRUFBRSxnQkFBZ0IsQ0FBQyxHQUFHLEtBQUssQ0FBQyxRQUFRLENBQVcsRUFBRSxDQUFDLENBQUE7SUFDdEUsTUFBTSxDQUFDLE9BQU8sRUFBRSxVQUFVLENBQUMsR0FBRyxRQUFRLENBQVUsS0FBSyxDQUFDLENBQUE7SUFDdEQsTUFBTSxPQUFPLEdBQUcsS0FBSyxDQUFDLEtBQUssRUFBRSxDQUFBO0lBRTdCLFNBQVMsQ0FBQyxHQUFHLEVBQUU7UUFDYixNQUFNLGFBQWEsR0FBRyxLQUFLLENBQUMsUUFBUSxDQUFDLEdBQUcsQ0FBQyxRQUFRLEVBQUUsQ0FBQyxLQUFLLEVBQUUsRUFBRTtZQUMzRCxJQUFJLENBQUMsS0FBSyxDQUFDLGNBQWMsQ0FBQyxLQUFLLENBQUM7Z0JBQUUsT0FBTyxLQUFLLENBQUE7WUFDOUMsTUFBTSxLQUFLLEdBQUcsS0FBSyxDQUFDLEtBQUssQ0FBQyxRQUFRLElBQUksS0FBSyxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUE7WUFDdkQsUUFBUSxJQUFJLEVBQUUsQ0FBQztnQkFDYixLQUFLLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsSUFBSyxRQUFnQyxDQUFDLFFBQVEsQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQyxDQUFDO29CQUM3RixDQUFDLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsSUFBSSxLQUFLLENBQUMsS0FBSyxDQUFDLEtBQUssS0FBSyxRQUFRLENBQUM7b0JBQzVELE9BQU8sS0FBSyxDQUFBO2dCQUNkO29CQUNFLE9BQU8sS0FBSyxDQUFBO1lBQ2hCLENBQUM7UUFDSCxDQUFDLENBQUMsRUFBRSxNQUFNLENBQUMsQ0FBQyxJQUFJLEVBQUUsRUFBRSxDQUFDLElBQUksQ0FBQyxDQUFBO1FBQzFCLGFBQWEsSUFBSSxnQkFBZ0IsQ0FBQyxhQUFhLENBQUMsQ0FBQTtRQUNoRCxpQkFBaUIsQ0FBQyxRQUFRLENBQUMsQ0FBQTtJQUM3QixDQUFDLEVBQUUsQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFBO0lBRWQsTUFBTSxvQkFBb0IsR0FBRyxXQUFXLENBQUMsR0FBRyxFQUFFO1FBQzVDLENBQUMsUUFBUSxJQUFJLFVBQVUsQ0FBQyxDQUFDLElBQUksRUFBRSxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQTtJQUMxQyxDQUFDLEVBQUUsQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFBO0lBRWQsTUFBTSxTQUFTLEdBQUcsV0FBVyxDQUMzQixDQUFDLEtBQWEsRUFBRSxFQUFFLENBQ2hCLFFBQVEsSUFBSSxjQUFjLElBQUksT0FBTyxjQUFjLEtBQUssUUFBUSxJQUFJLE9BQU8sY0FBYyxLQUFLLFFBQVE7UUFDcEcsQ0FBQyxDQUFDLGNBQWMsRUFBRSxRQUFRLENBQUMsS0FBSyxDQUFDO1FBQ2pDLENBQUMsQ0FBQyxjQUFjLEtBQUssS0FBSyxFQUM5QixDQUFDLFFBQVEsRUFBRSxjQUFjLENBQUMsQ0FDM0IsQ0FBQTtJQUVELE1BQU0sb0JBQW9CLEdBQUcsV0FBVyxDQUN0QyxDQUFDLEVBQ0MsU0FBUyxFQUNULFFBQVEsRUFDUixLQUFLLEVBQ0wsS0FBSyxHQU1OLEVBQUUsRUFBRTtRQUNILE1BQU0sZUFBZSxHQUFhLEVBQUUsQ0FBQTtRQUNwQyxJQUFJLFNBQVMsRUFBRSxDQUFDO1lBQ2QsaUJBQWlCLENBQUMsQ0FBQyxJQUFJLEVBQUUsRUFBRTtnQkFDekIsUUFBUSxJQUFJLEVBQUUsQ0FBQztvQkFDYixLQUFLLEtBQUssQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDO3dCQUN0QixnQkFBZ0IsQ0FBQyxDQUFDLElBQUksRUFBRSxFQUFFLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFDLEdBQUcsRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUFDLFFBQVEsRUFBRSxLQUFLLENBQUMsQ0FBQyxRQUFRLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFBO3dCQUNsRixNQUFNLElBQUksR0FBSSxJQUFpQixDQUFDLE1BQU0sQ0FBQyxDQUFDLElBQXFCLEVBQUUsRUFBRSxDQUFDLElBQUksS0FBSyxLQUFLLENBQUMsQ0FBQTt3QkFDakYsZUFBZSxDQUFDLElBQUksQ0FBQyxHQUFHLElBQUksQ0FBQyxDQUFBO3dCQUM3QixPQUFPLElBQUksQ0FBQTtvQkFDYixLQUFLLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUM7d0JBQ3ZCLFVBQVUsQ0FBQyxLQUFLLENBQUMsQ0FBQTt3QkFDakIsZ0JBQWdCLENBQUMsRUFBRSxDQUFDLENBQUE7d0JBQ3BCLE9BQU8sU0FBUyxDQUFBO29CQUNsQjt3QkFDRSxPQUFPLEtBQUssQ0FBQTtnQkFDaEIsQ0FBQztZQUNILENBQUMsQ0FBQyxDQUFBO1FBQ0osQ0FBQztRQUNELElBQUksQ0FBQyxTQUFTLEVBQUUsQ0FBQztZQUNmLGlCQUFpQixDQUFDLENBQUMsSUFBSSxFQUFFLEVBQUU7Z0JBQ3pCLElBQUksS0FBSyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDO29CQUN4QixNQUFNLElBQUksR0FBRyxDQUFDLEdBQUcsSUFBSSxFQUFFLEtBQUssQ0FBQyxDQUFBO29CQUM3QixlQUFlLENBQUMsSUFBSSxDQUFDLEdBQUcsSUFBSSxDQUFDLENBQUE7b0JBQzdCLE9BQU8sSUFBSSxDQUFBO2dCQUNiLENBQUM7Z0JBQ0QsZUFBZSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQTtnQkFDM0IsT0FBTyxLQUFLLENBQUE7WUFDZCxDQUFDLENBQUMsQ0FBQTtZQUNGLGdCQUFnQixDQUFDLENBQUMsSUFBSSxFQUFFLEVBQUU7Z0JBQ3hCLElBQUksUUFBUTtvQkFBRSxPQUFPLENBQUMsR0FBRyxJQUFJLEVBQUUsUUFBUSxJQUFJLEtBQUssQ0FBQyxDQUFBO2dCQUNqRCxVQUFVLENBQUMsS0FBSyxDQUFDLENBQUE7Z0JBQ2pCLE9BQU8sQ0FBQyxRQUFRLElBQUksS0FBSyxDQUFDLENBQUE7WUFDNUIsQ0FBQyxDQUFDLENBQUE7UUFDSixDQUFDO1FBQ0QsT0FBTyxlQUFlLENBQUE7SUFDeEIsQ0FBQyxFQUNELENBQUMsUUFBUSxDQUFDLENBQ1gsQ0FBQTtJQUVELE1BQU0sT0FBTyxHQUFHLEtBQUssQ0FBQyxPQUFPLENBQUMsR0FBRyxFQUFFO1FBQ2pDLE9BQU8sS0FBSyxDQUFDLFFBQVEsQ0FBQyxHQUFHLENBQUMsUUFBUSxFQUFFLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRSxFQUFFO1lBQ25ELElBQUksQ0FBQyxLQUFLLENBQUMsY0FBYyxDQUFDLEtBQUssQ0FBQztnQkFBRSxPQUFPLElBQUksQ0FBQTtZQUM3QyxNQUFNLGVBQWUsR0FBRyxDQUFDLENBQVMsRUFBRSxFQUFFO2dCQUNwQyxRQUFRLElBQUksRUFBRSxDQUFDO29CQUNiLEtBQUssQ0FBQyxRQUFRLElBQUssY0FBc0MsRUFBRSxRQUFRLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUMsQ0FBQzt3QkFDckYsQ0FBQyxDQUFDLFFBQVEsSUFBSSxjQUFjLEtBQUssS0FBSyxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUM7d0JBQ25ELE9BQU8sU0FBUyxDQUFBO29CQUNsQjt3QkFDRSxPQUFPLENBQUMsQ0FBQTtnQkFDWixDQUFDO1lBQ0gsQ0FBQyxDQUFBO1lBQ0QsTUFBTSxLQUFLLEdBQUc7Z0JBQ1osR0FBRyxLQUFLLENBQUMsS0FBSztnQkFDZCxPQUFPLEVBQUUsU0FBUyxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDO2dCQUNyQyxPQUFPLEVBQUUsR0FBRyxFQUFFO29CQUNaLElBQUksS0FBSyxDQUFDLEtBQUssQ0FBQyxRQUFRO3dCQUFFLE9BQU07b0JBQ2hDLE1BQU0sSUFBSSxHQUFHLG9CQUFvQixDQUFDO3dCQUNoQyxRQUFRLEVBQUUsS0FBSyxDQUFDLEtBQUssQ0FBQyxRQUFRO3dCQUM5QixLQUFLLEVBQUUsS0FBSyxDQUFDLEtBQUssQ0FBQyxLQUFLO3dCQUN4QixLQUFLLEVBQUUsS0FBSyxDQUFDLEtBQUssQ0FBQyxLQUFLO3dCQUN4QixTQUFTLEVBQUUsU0FBUyxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDO3FCQUN4QyxDQUFDLENBQUE7b0JBQ0YsUUFBUTt3QkFDTixRQUFRLENBQUM7NEJBQ1AsV0FBVyxFQUFFLGVBQWUsQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQzs0QkFDL0MsVUFBVSxFQUFFLGVBQWUsQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLFFBQVEsSUFBSSxLQUFLLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQzs0QkFDdEUsUUFBUSxFQUFFLGVBQWUsQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLEVBQUUsQ0FBQzs0QkFDekMsSUFBSSxFQUFFLGVBQWUsQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLFFBQVEsSUFBSSxLQUFLLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQzs0QkFDaEUsZUFBZSxFQUFFLElBQUk7eUJBQ3RCLENBQUMsQ0FBQTtvQkFDSixJQUFJLEtBQUssQ0FBQyxLQUFLLENBQUMsT0FBTzt3QkFBRSxLQUFLLENBQUMsS0FBSyxDQUFDLE9BQU8sRUFBRSxDQUFBO2dCQUNoRCxDQUFDO2FBQ0YsQ0FBQTtZQUNELE9BQU8sb0JBQUMsWUFBWSxPQUFLLEtBQUssRUFBRSxHQUFHLEVBQUUsR0FBRyxPQUFPLElBQUksS0FBSyxFQUFFLEdBQUksQ0FBQTtRQUNoRSxDQUFDLENBQUMsQ0FBQTtJQUNKLENBQUMsRUFBRSxDQUFDLFFBQVEsRUFBRSxjQUFjLEVBQUUsUUFBUSxDQUFDLENBQUMsQ0FBQTtJQUV4QyxPQUFPLENBQ0wsb0JBQUMsS0FBSyxJQUNKLE1BQU0sRUFBRSxPQUFPLEVBQ2YsT0FBTyxFQUFFLG9CQUFvQixFQUM3QixVQUFVLFFBQ1YsT0FBTyxFQUNMLG9CQUFDLGdCQUFnQixJQUFDLE9BQU8sRUFBRSxvQkFBb0I7WUFDN0Msb0JBQUMsS0FBSyxJQUNKLE1BQU0sRUFBRSxNQUFNLEVBQ2QsR0FBRyxFQUFFLEdBQUcsRUFDUixNQUFNLEVBQUUsTUFBa0MsRUFDMUMsV0FBVyxFQUFFLG9CQUFvQixFQUNqQyxRQUFRLEVBQUUsUUFBUSxFQUNsQixXQUFXLEVBQUUsS0FBSyxFQUNsQixZQUFZLEVBQUUsUUFBUSxFQUN0QixhQUFhLEVBQUUsT0FBTyxDQUFDLENBQUMsQ0FBQyxjQUFjLENBQUMsQ0FBQyxDQUFDLGdCQUFnQixFQUMxRCxLQUFLLEVBQUUsYUFBYSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsRUFDL0IsWUFBWSxFQUFFLGFBQWEsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLEVBQ2hDLFFBQVEsRUFBRSxLQUFLLEVBQUUsU0FBUyxFQUFFLG9CQUFvQixFQUFFLEVBQUUsS0FDdEQsTUFBTSxHQUNWLENBQ2U7UUFHckIsb0JBQUMsU0FBUztZQUNSLG9CQUFDLElBQUksSUFBQyxLQUFLLEVBQUUsRUFBRSxhQUFhLEVBQUUsRUFBRSxFQUFFLElBQUcsT0FBTyxDQUFRLENBQzFDLENBQ04sQ0FDVCxDQUFBO0FBQ0gsQ0FBQyxDQUNGLENBQUE7QUFFRCxNQUFNLENBQUMsV0FBVyxHQUFHLGFBQWEsQ0FBQyxNQUFNLENBQUE7QUFDekMsZUFBZSxNQUFNLENBQUEifQ==
|