@trilogy-ds/react 0.0.1-beta-4 → 0.0.1-beta.11
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/README.md +117 -0
- package/lib/components/accordion/Accordion.d.ts +3 -7
- package/lib/components/accordion/Accordion.js +7 -10
- package/lib/components/accordion/Accordion.js.map +1 -1
- package/lib/components/accordion/Accordion.native.d.ts +4 -7
- package/lib/components/accordion/Accordion.native.js +6 -8
- package/lib/components/accordion/Accordion.native.js.map +1 -1
- package/lib/components/accordion/AccordionProps.d.ts +0 -1
- package/lib/components/accordion/body/AccordionBody.d.ts +2 -2
- package/lib/components/accordion/body/AccordionBody.js +8 -6
- package/lib/components/accordion/body/AccordionBody.js.map +1 -1
- package/lib/components/accordion/body/AccordionBody.native.d.ts +2 -2
- package/lib/components/accordion/body/AccordionBody.native.js +3 -3
- package/lib/components/accordion/body/AccordionBody.native.js.map +1 -1
- package/lib/components/accordion/header/AccordionHeader.d.ts +2 -2
- package/lib/components/accordion/header/AccordionHeader.js +6 -6
- package/lib/components/accordion/header/AccordionHeader.js.map +1 -1
- package/lib/components/accordion/header/AccordionHeader.native.d.ts +2 -2
- package/lib/components/accordion/header/AccordionHeader.native.js +6 -6
- package/lib/components/accordion/header/AccordionHeader.native.js.map +1 -1
- package/lib/components/accordion/item/AccordionItem.d.ts +1 -1
- package/lib/components/accordion/item/AccordionItem.js +9 -11
- package/lib/components/accordion/item/AccordionItem.js.map +1 -1
- package/lib/components/accordion/item/AccordionItem.native.d.ts +2 -2
- package/lib/components/accordion/item/AccordionItem.native.js +38 -36
- package/lib/components/accordion/item/AccordionItem.native.js.map +1 -1
- package/lib/components/alert/Alert.d.ts +1 -1
- package/lib/components/alert/Alert.js +13 -13
- package/lib/components/alert/Alert.js.map +1 -1
- package/lib/components/alert/Alert.native.d.ts +2 -2
- package/lib/components/alert/Alert.native.js +29 -22
- package/lib/components/alert/Alert.native.js.map +1 -1
- package/lib/components/autocomplete/AutoComplete.native.d.ts +2 -2
- package/lib/components/autocomplete/AutoComplete.native.js +19 -14
- package/lib/components/autocomplete/AutoComplete.native.js.map +1 -1
- package/lib/components/autocomplete/AutoCompleteProps.d.ts +2 -1
- package/lib/components/autocomplete/AutoCompleteProps.js +1 -1
- package/lib/components/autocomplete/AutoCompleteProps.js.map +1 -1
- package/lib/components/autocomplete/index.d.ts +1 -0
- package/lib/components/autocomplete/index.js +1 -0
- package/lib/components/autocomplete/index.js.map +1 -1
- package/lib/components/autocomplete/item/AutoCompleteIem.native.d.ts +3 -3
- package/lib/components/autocomplete/item/AutoCompleteIem.native.js +6 -6
- package/lib/components/autocomplete/item/AutoCompleteIem.native.js.map +1 -1
- package/lib/components/autocomplete/item/AutoCompleteItem.d.ts +2 -2
- package/lib/components/autocomplete/item/AutoCompleteItem.js +6 -6
- package/lib/components/autocomplete/item/AutoCompleteItem.js.map +1 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.d.ts +2 -2
- package/lib/components/autocomplete/menu/AutoCompleteMenu.js +7 -7
- package/lib/components/autocomplete/menu/AutoCompleteMenu.js.map +1 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.d.ts +3 -3
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js +8 -8
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js.map +1 -1
- package/lib/components/autolayout/AutoLayout.d.ts +2 -2
- package/lib/components/autolayout/AutoLayout.helpers.d.ts +6 -6
- package/lib/components/autolayout/AutoLayout.helpers.js +24 -14
- package/lib/components/autolayout/AutoLayout.helpers.js.map +1 -1
- package/lib/components/autolayout/AutoLayout.js +2 -2
- package/lib/components/autolayout/AutoLayout.js.map +1 -1
- package/lib/components/autolayout/AutoLayout.native.d.ts +2 -2
- package/lib/components/autolayout/AutoLayout.native.js +7 -7
- package/lib/components/autolayout/AutoLayout.native.js.map +1 -1
- package/lib/components/autolayout/AutoLayoutProps.d.ts +4 -4
- package/lib/components/autolayout/AutoLayoutWrapper.d.ts +2 -2
- package/lib/components/autolayout/AutoLayoutWrapper.js +3 -3
- package/lib/components/autolayout/AutoLayoutWrapper.js.map +1 -1
- package/lib/components/autolayout/DefaultSpacingMatrix.d.ts +1 -1
- package/lib/components/autolayout/DefaultSpacingMatrix.js +6 -0
- package/lib/components/autolayout/DefaultSpacingMatrix.js.map +1 -1
- package/lib/components/badge/Badge.d.ts +1 -1
- package/lib/components/badge/Badge.js +15 -13
- package/lib/components/badge/Badge.js.map +1 -1
- package/lib/components/badge/Badge.native.d.ts +2 -2
- package/lib/components/badge/Badge.native.js +15 -13
- package/lib/components/badge/Badge.native.js.map +1 -1
- package/lib/components/badge/BadgeEnum.d.ts +1 -2
- package/lib/components/badge/BadgeEnum.js +1 -2
- package/lib/components/badge/BadgeEnum.js.map +1 -1
- package/lib/components/box/Box.native.d.ts +2 -2
- package/lib/components/box/Box.native.js +34 -27
- package/lib/components/box/Box.native.js.map +1 -1
- package/lib/components/box/content/BoxContent.d.ts +1 -1
- package/lib/components/box/content/BoxContent.js +7 -7
- package/lib/components/box/content/BoxContent.js.map +1 -1
- package/lib/components/box/content/BoxContent.native.d.ts +2 -2
- package/lib/components/box/content/BoxContent.native.js +9 -7
- package/lib/components/box/content/BoxContent.native.js.map +1 -1
- package/lib/components/box/footer/BoxFooter.d.ts +1 -1
- package/lib/components/box/footer/BoxFooter.js +7 -7
- package/lib/components/box/footer/BoxFooter.js.map +1 -1
- package/lib/components/box/footer/BoxFooter.native.d.ts +2 -2
- package/lib/components/box/footer/BoxFooter.native.js +9 -7
- package/lib/components/box/footer/BoxFooter.native.js.map +1 -1
- package/lib/components/box/header/BoxHeader.d.ts +1 -1
- package/lib/components/box/header/BoxHeader.js +9 -9
- package/lib/components/box/header/BoxHeader.js.map +1 -1
- package/lib/components/box/header/BoxHeader.native.d.ts +2 -2
- package/lib/components/box/header/BoxHeader.native.js +18 -13
- package/lib/components/box/header/BoxHeader.native.js.map +1 -1
- package/lib/components/box/item/BoxItem.d.ts +1 -1
- package/lib/components/box/item/BoxItem.js +5 -5
- package/lib/components/box/item/BoxItem.js.map +1 -1
- package/lib/components/box/item/BoxItem.native.d.ts +2 -2
- package/lib/components/box/item/BoxItem.native.js +6 -6
- package/lib/components/box/item/BoxItem.native.js.map +1 -1
- package/lib/components/box/table-container/BoxTableContainer.d.ts +1 -1
- package/lib/components/box/table-container/BoxTableContainer.js +5 -5
- package/lib/components/box/table-container/BoxTableContainer.js.map +1 -1
- package/lib/components/box/table-container/BoxTableContainer.native.d.ts +2 -2
- package/lib/components/box/table-container/BoxTableContainer.native.js +3 -3
- package/lib/components/box/table-container/BoxTableContainer.native.js.map +1 -1
- package/lib/components/breadcrumb/Breadcrumb.d.ts +1 -1
- package/lib/components/breadcrumb/Breadcrumb.js +5 -5
- package/lib/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/Breadcrumb.native.d.ts +2 -2
- package/lib/components/breadcrumb/Breadcrumb.native.js +6 -6
- package/lib/components/breadcrumb/Breadcrumb.native.js.map +1 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.d.ts +1 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.js +8 -8
- package/lib/components/breadcrumb/item/BreadcrumbItem.js.map +1 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.d.ts +2 -2
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +8 -6
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.js.map +1 -1
- package/lib/components/button/Button.d.ts +2 -2
- package/lib/components/button/Button.js +20 -20
- package/lib/components/button/Button.js.map +1 -1
- package/lib/components/button/Button.native.d.ts +2 -2
- package/lib/components/button/Button.native.js +118 -82
- package/lib/components/button/Button.native.js.map +1 -1
- package/lib/components/button/ButtonEnum.d.ts +6 -5
- package/lib/components/button/ButtonEnum.js +8 -7
- package/lib/components/button/ButtonEnum.js.map +1 -1
- package/lib/components/button/ButtonProps.d.ts +2 -2
- package/lib/components/button/list/ButtonList.d.ts +1 -1
- package/lib/components/button/list/ButtonList.js +6 -6
- package/lib/components/button/list/ButtonList.js.map +1 -1
- package/lib/components/button/list/ButtonList.native.d.ts +3 -3
- package/lib/components/button/list/ButtonList.native.js +9 -9
- package/lib/components/button/list/ButtonList.native.js.map +1 -1
- package/lib/components/card/Card.native.d.ts +3 -3
- package/lib/components/card/Card.native.js +36 -26
- package/lib/components/card/Card.native.js.map +1 -1
- package/lib/components/card/content/CardContent.d.ts +2 -2
- package/lib/components/card/content/CardContent.js +12 -12
- package/lib/components/card/content/CardContent.js.map +1 -1
- package/lib/components/card/content/CardContent.native.d.ts +1 -1
- package/lib/components/card/content/CardContent.native.js +7 -7
- package/lib/components/card/content/CardContent.native.js.map +1 -1
- package/lib/components/card/content/CardContentProps.d.ts +2 -2
- package/lib/components/card/image/CardImage.d.ts +1 -1
- package/lib/components/card/image/CardImage.js +8 -8
- package/lib/components/card/image/CardImage.js.map +1 -1
- package/lib/components/checkbox/Checkbox.d.ts +2 -2
- package/lib/components/checkbox/Checkbox.js +16 -49
- package/lib/components/checkbox/Checkbox.js.map +1 -1
- package/lib/components/checkbox/Checkbox.native.d.ts +3 -6
- package/lib/components/checkbox/Checkbox.native.js +91 -79
- package/lib/components/checkbox/Checkbox.native.js.map +1 -1
- package/lib/components/checkbox/CheckboxProps.d.ts +1 -25
- package/lib/components/chips/Chips.d.ts +1 -1
- package/lib/components/chips/Chips.js +7 -7
- package/lib/components/chips/Chips.js.map +1 -1
- package/lib/components/chips/Chips.native.d.ts +2 -2
- package/lib/components/chips/Chips.native.js +16 -16
- package/lib/components/chips/Chips.native.js.map +1 -1
- package/lib/components/chips/list/ChipsList.d.ts +1 -1
- package/lib/components/chips/list/ChipsList.js +6 -6
- package/lib/components/chips/list/ChipsList.js.map +1 -1
- package/lib/components/columns/Columns.d.ts +1 -1
- package/lib/components/columns/Columns.js +6 -6
- package/lib/components/columns/Columns.js.map +1 -1
- package/lib/components/columns/item/ColumnsItem.d.ts +1 -1
- package/lib/components/columns/item/ColumnsItem.js +7 -7
- package/lib/components/columns/item/ColumnsItem.js.map +1 -1
- package/lib/components/container/Container.d.ts +1 -1
- package/lib/components/container/Container.js +10 -10
- package/lib/components/container/Container.js.map +1 -1
- package/lib/components/container/Container.native.d.ts +2 -2
- package/lib/components/container/Container.native.js +19 -12
- package/lib/components/container/Container.native.js.map +1 -1
- package/lib/components/countdown/Countdown.native.js +1 -1
- package/lib/components/countdown/Countdown.native.js.map +1 -1
- package/lib/components/disclaimer/Disclaimer.d.ts +1 -1
- package/lib/components/disclaimer/Disclaimer.js +13 -13
- package/lib/components/disclaimer/Disclaimer.js.map +1 -1
- package/lib/components/disclaimer/Disclaimer.native.d.ts +2 -2
- package/lib/components/disclaimer/Disclaimer.native.js +6 -6
- package/lib/components/disclaimer/Disclaimer.native.js.map +1 -1
- package/lib/components/disclaimer/item/DisclaimerItem.d.ts +1 -1
- package/lib/components/disclaimer/item/DisclaimerItem.js +5 -5
- package/lib/components/disclaimer/item/DisclaimerItem.js.map +1 -1
- package/lib/components/disclaimer/item/DisclaimerItem.native.d.ts +2 -2
- package/lib/components/disclaimer/item/DisclaimerItem.native.js +5 -5
- package/lib/components/disclaimer/item/DisclaimerItem.native.js.map +1 -1
- package/lib/components/divider/Divider.d.ts +1 -1
- package/lib/components/divider/Divider.js +9 -9
- package/lib/components/divider/Divider.js.map +1 -1
- package/lib/components/divider/Divider.native.d.ts +2 -2
- package/lib/components/divider/Divider.native.js +24 -20
- package/lib/components/divider/Divider.native.js.map +1 -1
- package/lib/components/dropdown/divider/DropdownDivider.d.ts +1 -1
- package/lib/components/dropdown/divider/DropdownDivider.js +6 -6
- package/lib/components/dropdown/divider/DropdownDivider.js.map +1 -1
- package/lib/components/dropdown/divider/DropdownDivider.native.d.ts +1 -1
- package/lib/components/dropdown/divider/DropdownDivider.native.js +3 -3
- package/lib/components/dropdown/divider/DropdownDivider.native.js.map +1 -1
- package/lib/components/dropdown/item/DropdownItem.native.d.ts +3 -3
- package/lib/components/dropdown/item/DropdownItem.native.js +3 -3
- package/lib/components/dropdown/item/DropdownItem.native.js.map +1 -1
- package/lib/components/dropdown/menu/DropdownMenu.d.ts +1 -1
- package/lib/components/dropdown/menu/DropdownMenu.js +6 -6
- package/lib/components/dropdown/menu/DropdownMenu.js.map +1 -1
- package/lib/components/dropdown/menu/DropdownMenu.native.d.ts +1 -1
- package/lib/components/dropdown/menu/DropdownMenu.native.js +2 -2
- package/lib/components/dropdown/menu/DropdownMenu.native.js.map +1 -1
- package/lib/components/enumsComponentsName.d.ts +1 -22
- package/lib/components/enumsComponentsName.js +1 -22
- package/lib/components/enumsComponentsName.js.map +1 -1
- package/lib/components/fab/Fab.d.ts +3 -2
- package/lib/components/fab/Fab.js +16 -15
- package/lib/components/fab/Fab.js.map +1 -1
- package/lib/components/fab/Fab.native.d.ts +4 -3
- package/lib/components/fab/Fab.native.js +22 -21
- package/lib/components/fab/Fab.native.js.map +1 -1
- package/lib/components/fab/FabProps.d.ts +4 -3
- package/lib/components/hero/Hero.d.ts +2 -2
- package/lib/components/hero/Hero.js +13 -11
- package/lib/components/hero/Hero.js.map +1 -1
- package/lib/components/hero/Hero.native.d.ts +3 -3
- package/lib/components/hero/Hero.native.js +28 -20
- package/lib/components/hero/Hero.native.js.map +1 -1
- package/lib/components/icon/Icon.d.ts +1 -1
- package/lib/components/icon/Icon.js +22 -18
- package/lib/components/icon/Icon.js.map +1 -1
- package/lib/components/icon/Icon.native.d.ts +2 -2
- package/lib/components/icon/Icon.native.js +33 -27
- package/lib/components/icon/Icon.native.js.map +1 -1
- package/lib/components/icon/IconEnum.d.ts +4 -7
- package/lib/components/icon/IconEnum.js +3 -6
- package/lib/components/icon/IconEnum.js.map +1 -1
- package/lib/components/icon/IconNameEnum.d.ts +1 -0
- package/lib/components/icon/IconNameEnum.js +1 -0
- package/lib/components/icon/IconNameEnum.js.map +1 -1
- package/lib/components/icon/circle/CircleIcon.d.ts +2 -2
- package/lib/components/icon/circle/CircleIcon.js +11 -11
- package/lib/components/icon/circle/CircleIcon.js.map +1 -1
- package/lib/components/icon/circle/CircleIcon.native.d.ts +2 -2
- package/lib/components/icon/circle/CircleIcon.native.js +22 -18
- package/lib/components/icon/circle/CircleIcon.native.js.map +1 -1
- package/lib/components/icon/status/StatusIcon.d.ts +2 -2
- package/lib/components/icon/status/StatusIcon.js +11 -13
- package/lib/components/icon/status/StatusIcon.js.map +1 -1
- package/lib/components/icon/text/TextIcon.d.ts +1 -1
- package/lib/components/icon/text/TextIcon.js +16 -14
- package/lib/components/icon/text/TextIcon.js.map +1 -1
- package/lib/components/image/Image.d.ts +1 -1
- package/lib/components/image/Image.js +7 -7
- package/lib/components/image/Image.js.map +1 -1
- package/lib/components/image/Image.native.d.ts +2 -2
- package/lib/components/image/Image.native.js +10 -9
- package/lib/components/image/Image.native.js.map +1 -1
- package/lib/components/index.d.ts +55 -60
- package/lib/components/index.js +55 -60
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/Input.d.ts +3 -2
- package/lib/components/input/Input.js +76 -66
- package/lib/components/input/Input.js.map +1 -1
- package/lib/components/input/Input.native.d.ts +5 -3
- package/lib/components/input/Input.native.js +216 -131
- package/lib/components/input/Input.native.js.map +1 -1
- package/lib/components/input/InputProps.d.ts +6 -7
- package/lib/components/input/index.d.ts +1 -0
- package/lib/components/input/index.js +1 -0
- package/lib/components/input/index.js.map +1 -1
- package/lib/components/link/Link.d.ts +2 -4
- package/lib/components/link/Link.js +13 -15
- package/lib/components/link/Link.js.map +1 -1
- package/lib/components/link/Link.native.d.ts +3 -4
- package/lib/components/link/Link.native.js +75 -49
- package/lib/components/link/Link.native.js.map +1 -1
- package/lib/components/link/LinkProps.d.ts +0 -5
- package/lib/components/list/List.d.ts +1 -1
- package/lib/components/list/List.js +5 -5
- package/lib/components/list/List.js.map +1 -1
- package/lib/components/list/List.native.d.ts +2 -2
- package/lib/components/list/List.native.js +3 -3
- package/lib/components/list/List.native.js.map +1 -1
- package/lib/components/list/item/ListItem.d.ts +1 -1
- package/lib/components/list/item/ListItem.js +8 -8
- package/lib/components/list/item/ListItem.js.map +1 -1
- package/lib/components/list/item/ListItem.native.d.ts +3 -3
- package/lib/components/list/item/ListItem.native.js +20 -20
- package/lib/components/list/item/ListItem.native.js.map +1 -1
- package/lib/components/list/item/description/ListItemDescription.d.ts +2 -2
- package/lib/components/list/item/description/ListItemDescription.js +5 -5
- package/lib/components/list/item/description/ListItemDescription.js.map +1 -1
- package/lib/components/list/item/description/ListItemDescription.native.d.ts +3 -3
- package/lib/components/list/item/description/ListItemDescription.native.js +6 -6
- package/lib/components/list/item/description/ListItemDescription.native.js.map +1 -1
- package/lib/components/modal/Modal.d.ts +1 -1
- package/lib/components/modal/Modal.js +31 -28
- package/lib/components/modal/Modal.js.map +1 -1
- package/lib/components/modal/Modal.native.d.ts +2 -2
- package/lib/components/modal/Modal.native.js +57 -41
- package/lib/components/modal/Modal.native.js.map +1 -1
- package/lib/components/modal/ModalFooter.d.ts +2 -2
- package/lib/components/modal/ModalFooter.js +6 -6
- package/lib/components/modal/ModalFooter.js.map +1 -1
- package/lib/components/modal/ModalTitle.d.ts +2 -2
- package/lib/components/modal/ModalTitle.js +7 -7
- package/lib/components/modal/ModalTitle.js.map +1 -1
- package/lib/components/notification/Notification.d.ts +1 -1
- package/lib/components/notification/Notification.js +23 -18
- package/lib/components/notification/Notification.js.map +1 -1
- package/lib/components/notification/Notification.native.d.ts +2 -2
- package/lib/components/notification/Notification.native.js +40 -40
- package/lib/components/notification/Notification.native.js.map +1 -1
- package/lib/components/notification/NotificationEnum.js +10 -9
- package/lib/components/notification/NotificationEnum.js.map +1 -1
- package/lib/components/notification/deletable/DeletableNotification.d.ts +2 -2
- package/lib/components/notification/deletable/DeletableNotification.js +2 -2
- package/lib/components/notification/deletable/DeletableNotification.js.map +1 -1
- package/lib/components/notification/deletable/DeletableNotification.native.d.ts +3 -3
- package/lib/components/notification/deletable/DeletableNotification.native.js +33 -33
- package/lib/components/notification/deletable/DeletableNotification.native.js.map +1 -1
- package/lib/components/otp/Otp.d.ts +2 -3
- package/lib/components/otp/Otp.js +28 -27
- package/lib/components/otp/Otp.js.map +1 -1
- package/lib/components/otp/Otp.native.d.ts +2 -2
- package/lib/components/otp/Otp.native.js +38 -38
- package/lib/components/otp/Otp.native.js.map +1 -1
- package/lib/components/pagination/Pagination.native.d.ts +2 -2
- package/lib/components/pagination/Pagination.native.js +32 -32
- package/lib/components/pagination/Pagination.native.js.map +1 -1
- package/lib/components/popover/Popover.d.ts +1 -1
- package/lib/components/popover/Popover.js +7 -7
- package/lib/components/popover/Popover.js.map +1 -1
- package/lib/components/popover/Popover.native.d.ts +3 -3
- package/lib/components/popover/Popover.native.js +41 -29
- package/lib/components/popover/Popover.native.js.map +1 -1
- package/lib/components/price/Price.d.ts +3 -4
- package/lib/components/price/Price.js +32 -51
- package/lib/components/price/Price.js.map +1 -1
- package/lib/components/price/Price.native.d.ts +3 -5
- package/lib/components/price/Price.native.js +63 -74
- package/lib/components/price/Price.native.js.map +1 -1
- package/lib/components/price/PriceEnum.d.ts +0 -5
- package/lib/components/price/PriceEnum.js +0 -5
- package/lib/components/price/PriceEnum.js.map +1 -1
- package/lib/components/price/PriceProps.d.ts +3 -6
- package/lib/components/product-tour/ProductTour.native.d.ts +1 -1
- package/lib/components/product-tour/ProductTour.native.js +3 -3
- package/lib/components/product-tour/ProductTour.native.js.map +1 -1
- package/lib/components/progress/Progress.d.ts +1 -1
- package/lib/components/progress/Progress.js +11 -11
- package/lib/components/progress/Progress.js.map +1 -1
- package/lib/components/progress/Progress.native.d.ts +2 -2
- package/lib/components/progress/Progress.native.js +26 -23
- package/lib/components/progress/Progress.native.js.map +1 -1
- package/lib/components/progress/item/ProgressItem.d.ts +1 -1
- package/lib/components/progress/item/ProgressItem.js +7 -7
- package/lib/components/progress/item/ProgressItem.js.map +1 -1
- package/lib/components/progress/radial/ProgressRadial.d.ts +1 -1
- package/lib/components/progress/radial/ProgressRadial.js +26 -19
- package/lib/components/progress/radial/ProgressRadial.js.map +1 -1
- package/lib/components/progress/radial/ProgressRadial.native.d.ts +2 -2
- package/lib/components/progress/radial/ProgressRadial.native.js +31 -28
- package/lib/components/progress/radial/ProgressRadial.native.js.map +1 -1
- package/lib/components/progress/radial/ProgressRadialProps.d.ts +3 -3
- package/lib/components/progress/radial/item/ProgressRadialtem.d.ts +2 -2
- package/lib/components/progress/radial/item/ProgressRadialtem.js +5 -5
- package/lib/components/progress/radial/item/ProgressRadialtem.js.map +1 -1
- package/lib/components/progress/radial/react-native-circular-progress/AnimatedCircularProgress.d.ts +1 -1
- package/lib/components/progress/radial/react-native-circular-progress/AnimatedCircularProgress.js +5 -5
- package/lib/components/progress/radial/react-native-circular-progress/AnimatedCircularProgress.js.map +1 -1
- package/lib/components/progress/radial/react-native-circular-progress/CircularProgress.d.ts +1 -1
- package/lib/components/progress/radial/react-native-circular-progress/CircularProgress.js +47 -21
- package/lib/components/progress/radial/react-native-circular-progress/CircularProgress.js.map +1 -1
- package/lib/components/radio/Radio.d.ts +2 -2
- package/lib/components/radio/Radio.js +18 -49
- package/lib/components/radio/Radio.js.map +1 -1
- package/lib/components/radio/Radio.native.d.ts +4 -6
- package/lib/components/radio/Radio.native.js +86 -76
- package/lib/components/radio/Radio.native.js.map +1 -1
- package/lib/components/radio/RadioProps.d.ts +0 -16
- package/lib/components/radio/list/RadioList.d.ts +1 -1
- package/lib/components/radio/list/RadioList.js +6 -6
- package/lib/components/radio/list/RadioList.js.map +1 -1
- package/lib/components/radio/list/RadioList.native.d.ts +3 -3
- package/lib/components/radio/list/RadioList.native.js +9 -9
- package/lib/components/radio/list/RadioList.native.js.map +1 -1
- package/lib/components/range/Range.d.ts +4 -2
- package/lib/components/range/Range.js +31 -29
- package/lib/components/range/Range.js.map +1 -1
- package/lib/components/range/Range.native.d.ts +3 -3
- package/lib/components/range/Range.native.js +19 -15
- package/lib/components/range/Range.native.js.map +1 -1
- package/lib/components/range/RangeProps.d.ts +10 -7
- package/lib/components/rows/Rows.d.ts +1 -1
- package/lib/components/rows/Rows.js +5 -5
- package/lib/components/rows/Rows.js.map +1 -1
- package/lib/components/rows/Rows.native.d.ts +2 -2
- package/lib/components/rows/Rows.native.js +5 -5
- package/lib/components/rows/Rows.native.js.map +1 -1
- package/lib/components/rows/item/RowItem.d.ts +1 -1
- package/lib/components/rows/item/RowItem.js +6 -6
- package/lib/components/rows/item/RowItem.js.map +1 -1
- package/lib/components/rows/item/RowItem.native.d.ts +2 -2
- package/lib/components/rows/item/RowItem.native.js +3 -3
- package/lib/components/rows/item/RowItem.native.js.map +1 -1
- package/lib/components/scroll-view/ScrollView.d.ts +2 -2
- package/lib/components/scroll-view/ScrollView.js +7 -7
- package/lib/components/scroll-view/ScrollView.js.map +1 -1
- package/lib/components/scroll-view/ScrollView.native.d.ts +3 -3
- package/lib/components/scroll-view/ScrollView.native.js +17 -10
- package/lib/components/scroll-view/ScrollView.native.js.map +1 -1
- package/lib/components/section/Section.native.d.ts +2 -2
- package/lib/components/section/Section.native.js +11 -9
- package/lib/components/section/Section.native.js.map +1 -1
- package/lib/components/segment-control/SegmentControl.native.d.ts +2 -2
- package/lib/components/segment-control/SegmentControl.native.js +14 -15
- package/lib/components/segment-control/SegmentControl.native.js.map +1 -1
- package/lib/components/segment-control/item/SegmentControlItem.native.d.ts +2 -2
- package/lib/components/segment-control/item/SegmentControlItem.native.js +18 -15
- package/lib/components/segment-control/item/SegmentControlItem.native.js.map +1 -1
- package/lib/components/select/Select.d.ts +1 -1
- package/lib/components/select/Select.js +7 -7
- package/lib/components/select/Select.js.map +1 -1
- package/lib/components/select/Select.native.d.ts +2 -2
- package/lib/components/select/Select.native.js +37 -29
- package/lib/components/select/Select.native.js.map +1 -1
- package/lib/components/select/option/SelectNativeOption.d.ts +1 -1
- package/lib/components/select/option/SelectNativeOption.js +1 -1
- package/lib/components/select/option/SelectNativeOption.js.map +1 -1
- package/lib/components/select/option/SelectOption.d.ts +1 -1
- package/lib/components/select/option/SelectOption.js +7 -7
- package/lib/components/select/option/SelectOption.js.map +1 -1
- package/lib/components/select/option/SelectOption.native.d.ts +2 -2
- package/lib/components/select/option/SelectOption.native.js +4 -4
- package/lib/components/select/option/SelectOption.native.js.map +1 -1
- package/lib/components/select/web/SelectDynamic.d.ts +2 -2
- package/lib/components/select/web/SelectDynamic.js +15 -15
- package/lib/components/select/web/SelectDynamic.js.map +1 -1
- package/lib/components/select/web/SelectNative.d.ts +1 -1
- package/lib/components/select/web/SelectNative.js +8 -8
- package/lib/components/select/web/SelectNative.js.map +1 -1
- package/lib/components/selector/item/SelectorItem.native.js +7 -7
- package/lib/components/selector/item/SelectorItem.native.js.map +1 -1
- package/lib/components/slider/Slider.d.ts +1 -2
- package/lib/components/slider/Slider.js +15 -16
- package/lib/components/slider/Slider.js.map +1 -1
- package/lib/components/slider/Slider.native.d.ts +2 -2
- package/lib/components/slider/Slider.native.js +33 -26
- package/lib/components/slider/Slider.native.js.map +1 -1
- package/lib/components/slider/index.d.ts +2 -0
- package/lib/components/slider/index.js +1 -0
- package/lib/components/slider/index.js.map +1 -1
- package/lib/components/slider/item/SliderItem.d.ts +1 -1
- package/lib/components/slider/item/SliderItem.js +7 -7
- package/lib/components/slider/item/SliderItem.js.map +1 -1
- package/lib/components/slider/item/SliderItem.native.d.ts +2 -2
- package/lib/components/slider/item/SliderItem.native.js +4 -4
- package/lib/components/slider/item/SliderItem.native.js.map +1 -1
- package/lib/components/spacer/Spacer.d.ts +1 -1
- package/lib/components/spacer/Spacer.js +3 -3
- package/lib/components/spacer/Spacer.js.map +1 -1
- package/lib/components/spacer/Spacer.native.d.ts +2 -2
- package/lib/components/spacer/Spacer.native.js +3 -3
- package/lib/components/spacer/Spacer.native.js.map +1 -1
- package/lib/components/stepper/Stepper.d.ts +1 -1
- package/lib/components/stepper/Stepper.js +7 -7
- package/lib/components/stepper/Stepper.js.map +1 -1
- package/lib/components/stepper/Stepper.native.d.ts +2 -2
- package/lib/components/stepper/Stepper.native.js +30 -19
- package/lib/components/stepper/Stepper.native.js.map +1 -1
- package/lib/components/stepper/step/StepperStep.native.d.ts +2 -2
- package/lib/components/stepper/step/StepperStep.native.js +9 -9
- package/lib/components/stepper/step/StepperStep.native.js.map +1 -1
- package/lib/components/sticker/Sticker.d.ts +2 -3
- package/lib/components/sticker/Sticker.js +12 -12
- package/lib/components/sticker/Sticker.js.map +1 -1
- package/lib/components/sticker/Sticker.native.d.ts +2 -2
- package/lib/components/sticker/Sticker.native.js +36 -26
- package/lib/components/sticker/Sticker.native.js.map +1 -1
- package/lib/components/switch/Switch.d.ts +1 -1
- package/lib/components/switch/Switch.js +16 -10
- package/lib/components/switch/Switch.js.map +1 -1
- package/lib/components/switch/Switch.native.d.ts +2 -2
- package/lib/components/switch/Switch.native.js +14 -12
- package/lib/components/switch/Switch.native.js.map +1 -1
- package/lib/components/table/Table.d.ts +1 -1
- package/lib/components/table/Table.js +6 -6
- package/lib/components/table/Table.js.map +1 -1
- package/lib/components/table/Table.native.d.ts +2 -2
- package/lib/components/table/Table.native.js +13 -9
- package/lib/components/table/Table.native.js.map +1 -1
- package/lib/components/table/body/TableBody.d.ts +1 -1
- package/lib/components/table/body/TableBody.js +7 -8
- package/lib/components/table/body/TableBody.js.map +1 -1
- package/lib/components/table/body/TableBody.native.d.ts +2 -2
- package/lib/components/table/body/TableBody.native.js +6 -6
- package/lib/components/table/body/TableBody.native.js.map +1 -1
- package/lib/components/table/head/TableHead.d.ts +1 -1
- package/lib/components/table/head/TableHead.js +7 -7
- package/lib/components/table/head/TableHead.js.map +1 -1
- package/lib/components/table/head/TableHead.native.d.ts +2 -2
- package/lib/components/table/head/TableHead.native.js +6 -6
- package/lib/components/table/head/TableHead.native.js.map +1 -1
- package/lib/components/table/td/TableTd.d.ts +1 -1
- package/lib/components/table/td/TableTd.js +5 -5
- package/lib/components/table/td/TableTd.js.map +1 -1
- package/lib/components/table/td/TableTd.native.d.ts +2 -2
- package/lib/components/table/td/TableTd.native.js +9 -9
- package/lib/components/table/td/TableTd.native.js.map +1 -1
- package/lib/components/table/th/TableTh.d.ts +1 -1
- package/lib/components/table/th/TableTh.js +5 -5
- package/lib/components/table/th/TableTh.js.map +1 -1
- package/lib/components/table/th/TableTh.native.d.ts +2 -2
- package/lib/components/table/th/TableTh.native.js +10 -10
- package/lib/components/table/th/TableTh.native.js.map +1 -1
- package/lib/components/table/tr/TableTr.d.ts +1 -1
- package/lib/components/table/tr/TableTr.js +7 -7
- package/lib/components/table/tr/TableTr.js.map +1 -1
- package/lib/components/table/tr/TableTr.native.js +6 -5
- package/lib/components/table/tr/TableTr.native.js.map +1 -1
- package/lib/components/tabs/Tabs.native.js +1 -1
- package/lib/components/tabs/Tabs.native.js.map +1 -1
- package/lib/components/tabs/item/TabsItem.d.ts +1 -1
- package/lib/components/tabs/item/TabsItem.js +12 -13
- package/lib/components/tabs/item/TabsItem.js.map +1 -1
- package/lib/components/tabs/item/TabsItem.native.d.ts +2 -2
- package/lib/components/tabs/item/TabsItem.native.js +26 -20
- package/lib/components/tabs/item/TabsItem.native.js.map +1 -1
- package/lib/components/tag/Tag.d.ts +1 -1
- package/lib/components/tag/Tag.js +14 -10
- package/lib/components/tag/Tag.js.map +1 -1
- package/lib/components/tag/Tag.native.d.ts +2 -2
- package/lib/components/tag/Tag.native.js +22 -18
- package/lib/components/tag/Tag.native.js.map +1 -1
- package/lib/components/tag/TagEnum.d.ts +0 -1
- package/lib/components/tag/TagEnum.js +0 -1
- package/lib/components/tag/TagEnum.js.map +1 -1
- package/lib/components/tag/list/TagList.d.ts +1 -1
- package/lib/components/tag/list/TagList.js +6 -6
- package/lib/components/tag/list/TagList.js.map +1 -1
- package/lib/components/tag/list/TagList.native.d.ts +2 -2
- package/lib/components/tag/list/TagList.native.js +12 -8
- package/lib/components/tag/list/TagList.native.js.map +1 -1
- package/lib/components/text/Text.d.ts +1 -1
- package/lib/components/text/Text.js +14 -13
- package/lib/components/text/Text.js.map +1 -1
- package/lib/components/text/Text.native.d.ts +2 -2
- package/lib/components/text/Text.native.js +35 -28
- package/lib/components/text/Text.native.js.map +1 -1
- package/lib/components/textarea/Textarea.native.d.ts +2 -2
- package/lib/components/textarea/Textarea.native.js +43 -36
- package/lib/components/textarea/Textarea.native.js.map +1 -1
- package/lib/components/timeline/Timeline.d.ts +1 -1
- package/lib/components/timeline/Timeline.js +6 -6
- package/lib/components/timeline/Timeline.js.map +1 -1
- package/lib/components/timeline/Timeline.native.d.ts +3 -3
- package/lib/components/timeline/Timeline.native.js +4 -4
- package/lib/components/timeline/Timeline.native.js.map +1 -1
- package/lib/components/timeline/content/TimelineContent.d.ts +1 -1
- package/lib/components/timeline/content/TimelineContent.js +7 -7
- package/lib/components/timeline/content/TimelineContent.js.map +1 -1
- package/lib/components/timeline/content/TimelineContent.native.d.ts +2 -2
- package/lib/components/timeline/content/TimelineContent.native.js +13 -11
- package/lib/components/timeline/content/TimelineContent.native.js.map +1 -1
- package/lib/components/timeline/item/TimelineItem.d.ts +1 -1
- package/lib/components/timeline/item/TimelineItem.js +5 -5
- package/lib/components/timeline/item/TimelineItem.js.map +1 -1
- package/lib/components/timeline/marker/TimelineMarker.d.ts +1 -1
- package/lib/components/timeline/marker/TimelineMarker.js +8 -8
- package/lib/components/timeline/marker/TimelineMarker.js.map +1 -1
- package/lib/components/timeline/marker/TimelineMarker.native.d.ts +3 -3
- package/lib/components/timeline/marker/TimelineMarker.native.js +26 -26
- package/lib/components/timeline/marker/TimelineMarker.native.js.map +1 -1
- package/lib/components/title/Title.native.d.ts +2 -2
- package/lib/components/title/Title.native.js +37 -31
- package/lib/components/title/Title.native.js.map +1 -1
- package/lib/components/toaster/Toaster.native.d.ts +2 -2
- package/lib/components/toaster/Toaster.native.js +17 -17
- package/lib/components/toaster/Toaster.native.js.map +1 -1
- package/lib/components/toaster/ToasterEnum.js +10 -9
- package/lib/components/toaster/ToasterEnum.js.map +1 -1
- package/lib/components/toaster/context/ToasterContext.d.ts +2 -2
- package/lib/components/toaster/context/ToasterContext.js +5 -2
- package/lib/components/toaster/context/ToasterContext.js.map +1 -1
- package/lib/components/toolbar/Toolbar.d.ts +1 -1
- package/lib/components/toolbar/Toolbar.js +7 -7
- package/lib/components/toolbar/Toolbar.js.map +1 -1
- package/lib/components/toolbar/group/ToolbarGroup.d.ts +1 -1
- package/lib/components/toolbar/group/ToolbarGroup.js +6 -6
- package/lib/components/toolbar/group/ToolbarGroup.js.map +1 -1
- package/lib/components/toolbar/item/ToolbarItem.d.ts +1 -1
- package/lib/components/toolbar/item/ToolbarItem.js +6 -6
- package/lib/components/toolbar/item/ToolbarItem.js.map +1 -1
- package/lib/components/toolbar/space/ToolbarSpace.d.ts +1 -1
- package/lib/components/toolbar/space/ToolbarSpace.js +5 -5
- package/lib/components/toolbar/space/ToolbarSpace.js.map +1 -1
- package/lib/components/view/View.d.ts +1 -1
- package/lib/components/view/View.js +16 -11
- package/lib/components/view/View.js.map +1 -1
- package/lib/components/view/View.native.d.ts +2 -2
- package/lib/components/view/View.native.js +14 -12
- package/lib/components/view/View.native.js.map +1 -1
- package/lib/context/index.d.ts +1 -1
- package/lib/context/index.js +2 -2
- package/lib/context/index.js.map +1 -1
- package/lib/context/interfaces.d.ts +1 -3
- package/lib/context/providerStyled.d.ts +2 -2
- package/lib/context/providerStyled.js +8 -8
- package/lib/context/providerStyled.js.map +1 -1
- package/lib/context/providerStyledMangled.d.ts +3 -3
- package/lib/context/providerStyledMangled.js +6 -6
- package/lib/context/providerStyledMangled.js.map +1 -1
- package/lib/context/providerTheme.js +1 -0
- package/lib/context/providerTheme.js.map +1 -1
- package/lib/context/providerTheme.native.d.ts +3 -23
- package/lib/context/providerTheme.native.js +8 -24
- package/lib/context/providerTheme.native.js.map +1 -1
- package/lib/objects/Typography/TypographyBold.d.ts +2 -1
- package/lib/objects/Typography/TypographyBold.js +1 -0
- package/lib/objects/Typography/TypographyBold.js.map +1 -1
- package/lib/objects/Typography/TypographyColor.d.ts +4 -8
- package/lib/objects/Typography/TypographyColor.js +33 -40
- package/lib/objects/Typography/TypographyColor.js.map +1 -1
- package/lib/objects/atoms/Background.d.ts +3 -3
- package/lib/objects/atoms/Background.js +1 -1
- package/lib/objects/atoms/Background.js.map +1 -1
- package/lib/objects/atoms/Text.d.ts +3 -9
- package/lib/objects/atoms/Text.js +22 -44
- package/lib/objects/atoms/Text.js.map +1 -1
- package/lib/objects/facets/Color.d.ts +25 -25
- package/lib/objects/facets/Color.js +75 -116
- package/lib/objects/facets/Color.js.map +1 -1
- package/lib/objects/facets/Color.native.d.ts +19 -18
- package/lib/objects/facets/Color.native.js +51 -75
- package/lib/objects/facets/Color.native.js.map +1 -1
- package/lib/objects/facets/Variant.d.ts +2 -3
- package/lib/objects/facets/Variant.js +28 -19
- package/lib/objects/facets/Variant.js.map +1 -1
- package/lib/tsconfig.json +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +9 -5
- package/lib/components/info-block/InfoBlock.d.ts +0 -12
- package/lib/components/info-block/InfoBlock.js +0 -25
- package/lib/components/info-block/InfoBlock.js.map +0 -1
- package/lib/components/info-block/InfoBlock.native.d.ts +0 -14
- package/lib/components/info-block/InfoBlock.native.js +0 -51
- package/lib/components/info-block/InfoBlock.native.js.map +0 -1
- package/lib/components/info-block/InfoBlockEnum.d.ts +0 -6
- package/lib/components/info-block/InfoBlockEnum.js +0 -7
- package/lib/components/info-block/InfoBlockEnum.js.map +0 -1
- package/lib/components/info-block/InfoBlockProps.d.ts +0 -7
- package/lib/components/info-block/InfoBlockProps.js +0 -2
- package/lib/components/info-block/InfoBlockProps.js.map +0 -1
- package/lib/components/info-block/action/InfoBlockAction.d.ts +0 -11
- package/lib/components/info-block/action/InfoBlockAction.js +0 -20
- package/lib/components/info-block/action/InfoBlockAction.js.map +0 -1
- package/lib/components/info-block/action/InfoBlockAction.native.d.ts +0 -12
- package/lib/components/info-block/action/InfoBlockAction.native.js +0 -20
- package/lib/components/info-block/action/InfoBlockAction.native.js.map +0 -1
- package/lib/components/info-block/action/InfoBlockActionProps.d.ts +0 -6
- package/lib/components/info-block/action/InfoBlockActionProps.js +0 -2
- package/lib/components/info-block/action/InfoBlockActionProps.js.map +0 -1
- package/lib/components/info-block/action/index.d.ts +0 -2
- package/lib/components/info-block/action/index.js +0 -3
- package/lib/components/info-block/action/index.js.map +0 -1
- package/lib/components/info-block/content/InfoBlockContent.d.ts +0 -11
- package/lib/components/info-block/content/InfoBlockContent.js +0 -24
- package/lib/components/info-block/content/InfoBlockContent.js.map +0 -1
- package/lib/components/info-block/content/InfoBlockContent.native.d.ts +0 -12
- package/lib/components/info-block/content/InfoBlockContent.native.js +0 -21
- package/lib/components/info-block/content/InfoBlockContent.native.js.map +0 -1
- package/lib/components/info-block/content/InfoBlockContentProps.d.ts +0 -7
- package/lib/components/info-block/content/InfoBlockContentProps.js +0 -2
- package/lib/components/info-block/content/InfoBlockContentProps.js.map +0 -1
- package/lib/components/info-block/content/index.d.ts +0 -2
- package/lib/components/info-block/content/index.js +0 -3
- package/lib/components/info-block/content/index.js.map +0 -1
- package/lib/components/info-block/header/InfoBlockHeader.d.ts +0 -12
- package/lib/components/info-block/header/InfoBlockHeader.js +0 -36
- package/lib/components/info-block/header/InfoBlockHeader.js.map +0 -1
- package/lib/components/info-block/header/InfoBlockHeader.native.d.ts +0 -13
- package/lib/components/info-block/header/InfoBlockHeader.native.js +0 -43
- package/lib/components/info-block/header/InfoBlockHeader.native.js.map +0 -1
- package/lib/components/info-block/header/InfoBlockHeaderProps.d.ts +0 -9
- package/lib/components/info-block/header/InfoBlockHeaderProps.js +0 -2
- package/lib/components/info-block/header/InfoBlockHeaderProps.js.map +0 -1
- package/lib/components/info-block/header/index.d.ts +0 -2
- package/lib/components/info-block/header/index.js +0 -3
- package/lib/components/info-block/header/index.js.map +0 -1
- package/lib/components/info-block/index.d.ts +0 -6
- package/lib/components/info-block/index.js +0 -7
- package/lib/components/info-block/index.js.map +0 -1
- package/lib/components/menu/Menu.d.ts +0 -11
- package/lib/components/menu/Menu.js +0 -18
- package/lib/components/menu/Menu.js.map +0 -1
- package/lib/components/menu/Menu.native.d.ts +0 -12
- package/lib/components/menu/Menu.native.js +0 -30
- package/lib/components/menu/Menu.native.js.map +0 -1
- package/lib/components/menu/MenuProps.d.ts +0 -11
- package/lib/components/menu/MenuProps.js +0 -2
- package/lib/components/menu/MenuProps.js.map +0 -1
- package/lib/components/menu/index.d.ts +0 -6
- package/lib/components/menu/index.js +0 -7
- package/lib/components/menu/index.js.map +0 -1
- package/lib/components/menu/item/MenuItem.d.ts +0 -15
- package/lib/components/menu/item/MenuItem.js +0 -34
- package/lib/components/menu/item/MenuItem.js.map +0 -1
- package/lib/components/menu/item/MenuItem.native.d.ts +0 -12
- package/lib/components/menu/item/MenuItem.native.js +0 -49
- package/lib/components/menu/item/MenuItem.native.js.map +0 -1
- package/lib/components/menu/item/MenuItemProps.d.ts +0 -27
- package/lib/components/menu/item/MenuItemProps.js +0 -2
- package/lib/components/menu/item/MenuItemProps.js.map +0 -1
- package/lib/components/menu/item/index.d.ts +0 -2
- package/lib/components/menu/item/index.js +0 -3
- package/lib/components/menu/item/index.js.map +0 -1
- package/lib/components/menu/link/MenuLink.d.ts +0 -10
- package/lib/components/menu/link/MenuLink.js +0 -17
- package/lib/components/menu/link/MenuLink.js.map +0 -1
- package/lib/components/menu/link/MenuLink.native.d.ts +0 -14
- package/lib/components/menu/link/MenuLink.native.js +0 -37
- package/lib/components/menu/link/MenuLink.native.js.map +0 -1
- package/lib/components/menu/link/MenuLinkProps.d.ts +0 -7
- package/lib/components/menu/link/MenuLinkProps.js +0 -2
- package/lib/components/menu/link/MenuLinkProps.js.map +0 -1
- package/lib/components/menu/link/index.d.ts +0 -2
- package/lib/components/menu/link/index.js +0 -3
- package/lib/components/menu/link/index.js.map +0 -1
- package/lib/components/menu/scrolling/MenuScrolling.d.ts +0 -11
- package/lib/components/menu/scrolling/MenuScrolling.js +0 -25
- package/lib/components/menu/scrolling/MenuScrolling.js.map +0 -1
- package/lib/components/menu/scrolling/MenuScrolling.native.d.ts +0 -12
- package/lib/components/menu/scrolling/MenuScrolling.native.js +0 -13
- package/lib/components/menu/scrolling/MenuScrolling.native.js.map +0 -1
- package/lib/components/menu/scrolling/MenuScrollingProps.d.ts +0 -9
- package/lib/components/menu/scrolling/MenuScrollingProps.js +0 -2
- package/lib/components/menu/scrolling/MenuScrollingProps.js.map +0 -1
- package/lib/components/menu/scrolling/index.d.ts +0 -2
- package/lib/components/menu/scrolling/index.js +0 -3
- package/lib/components/menu/scrolling/index.js.map +0 -1
- package/lib/components/menu/subItem/SubMenuItem.d.ts +0 -9
- package/lib/components/menu/subItem/SubMenuItem.js +0 -15
- package/lib/components/menu/subItem/SubMenuItem.js.map +0 -1
- package/lib/components/menu/subItem/SubMenuItem.native.d.ts +0 -12
- package/lib/components/menu/subItem/SubMenuItem.native.js +0 -13
- package/lib/components/menu/subItem/SubMenuItem.native.js.map +0 -1
- package/lib/components/menu/subItem/SubMenuItemProps.d.ts +0 -14
- package/lib/components/menu/subItem/SubMenuItemProps.js +0 -2
- package/lib/components/menu/subItem/SubMenuItemProps.js.map +0 -1
- package/lib/components/menu/subItem/index.d.ts +0 -2
- package/lib/components/menu/subItem/index.js +0 -3
- package/lib/components/menu/subItem/index.js.map +0 -1
- package/lib/components/options/Options.d.ts +0 -10
- package/lib/components/options/Options.js +0 -18
- package/lib/components/options/Options.js.map +0 -1
- package/lib/components/options/Options.native.d.ts +0 -12
- package/lib/components/options/Options.native.js +0 -19
- package/lib/components/options/Options.native.js.map +0 -1
- package/lib/components/options/OptionsEnum.d.ts +0 -5
- package/lib/components/options/OptionsEnum.js +0 -6
- package/lib/components/options/OptionsEnum.js.map +0 -1
- package/lib/components/options/OptionsProps.d.ts +0 -10
- package/lib/components/options/OptionsProps.js +0 -2
- package/lib/components/options/OptionsProps.js.map +0 -1
- package/lib/components/options/index.d.ts +0 -4
- package/lib/components/options/index.js +0 -5
- package/lib/components/options/index.js.map +0 -1
- package/lib/components/options/item/OptionsItem.d.ts +0 -21
- package/lib/components/options/item/OptionsItem.js +0 -71
- package/lib/components/options/item/OptionsItem.js.map +0 -1
- package/lib/components/options/item/OptionsItem.native.d.ts +0 -22
- package/lib/components/options/item/OptionsItem.native.js +0 -150
- package/lib/components/options/item/OptionsItem.native.js.map +0 -1
- package/lib/components/options/item/OptionsItemProps.d.ts +0 -38
- package/lib/components/options/item/OptionsItemProps.js +0 -2
- package/lib/components/options/item/OptionsItemProps.js.map +0 -1
- package/lib/components/options/item/index.d.ts +0 -3
- package/lib/components/options/item/index.js +0 -4
- package/lib/components/options/item/index.js.map +0 -1
- package/lib/components/slice/Slice.d.ts +0 -14
- package/lib/components/slice/Slice.js +0 -27
- package/lib/components/slice/Slice.js.map +0 -1
- package/lib/components/slice/Slice.native.d.ts +0 -13
- package/lib/components/slice/Slice.native.js +0 -23
- package/lib/components/slice/Slice.native.js.map +0 -1
- package/lib/components/slice/SliceProps.d.ts +0 -9
- package/lib/components/slice/SliceProps.js +0 -2
- package/lib/components/slice/SliceProps.js.map +0 -1
- package/lib/components/slice/body/SliceBody.d.ts +0 -9
- package/lib/components/slice/body/SliceBody.js +0 -16
- package/lib/components/slice/body/SliceBody.js.map +0 -1
- package/lib/components/slice/body/SliceBody.native.d.ts +0 -13
- package/lib/components/slice/body/SliceBody.native.js +0 -14
- package/lib/components/slice/body/SliceBody.native.js.map +0 -1
- package/lib/components/slice/body/SliceBodyProps.d.ts +0 -5
- package/lib/components/slice/body/SliceBodyProps.js +0 -2
- package/lib/components/slice/body/SliceBodyProps.js.map +0 -1
- package/lib/components/slice/body/index.d.ts +0 -2
- package/lib/components/slice/body/index.js +0 -3
- package/lib/components/slice/body/index.js.map +0 -1
- package/lib/components/slice/content/SliceContent.d.ts +0 -10
- package/lib/components/slice/content/SliceContent.js +0 -17
- package/lib/components/slice/content/SliceContent.js.map +0 -1
- package/lib/components/slice/content/SliceContent.native.d.ts +0 -12
- package/lib/components/slice/content/SliceContent.native.js +0 -19
- package/lib/components/slice/content/SliceContent.native.js.map +0 -1
- package/lib/components/slice/content/SliceContentProps.d.ts +0 -5
- package/lib/components/slice/content/SliceContentProps.js +0 -2
- package/lib/components/slice/content/SliceContentProps.js.map +0 -1
- package/lib/components/slice/content/index.d.ts +0 -2
- package/lib/components/slice/content/index.js +0 -3
- package/lib/components/slice/content/index.js.map +0 -1
- package/lib/components/slice/cta/SliceCta.d.ts +0 -10
- package/lib/components/slice/cta/SliceCta.js +0 -17
- package/lib/components/slice/cta/SliceCta.js.map +0 -1
- package/lib/components/slice/cta/SliceCta.native.d.ts +0 -12
- package/lib/components/slice/cta/SliceCta.native.js +0 -19
- package/lib/components/slice/cta/SliceCta.native.js.map +0 -1
- package/lib/components/slice/cta/SliceCtaProps.d.ts +0 -5
- package/lib/components/slice/cta/SliceCtaProps.js +0 -2
- package/lib/components/slice/cta/SliceCtaProps.js.map +0 -1
- package/lib/components/slice/cta/index.d.ts +0 -2
- package/lib/components/slice/cta/index.js +0 -3
- package/lib/components/slice/cta/index.js.map +0 -1
- package/lib/components/slice/icon/SliceIcon.d.ts +0 -13
- package/lib/components/slice/icon/SliceIcon.js +0 -22
- package/lib/components/slice/icon/SliceIcon.js.map +0 -1
- package/lib/components/slice/icon/SliceIcon.native.d.ts +0 -15
- package/lib/components/slice/icon/SliceIcon.native.js +0 -23
- package/lib/components/slice/icon/SliceIcon.native.js.map +0 -1
- package/lib/components/slice/icon/SliceIconProps.d.ts +0 -9
- package/lib/components/slice/icon/SliceIconProps.js +0 -2
- package/lib/components/slice/icon/SliceIconProps.js.map +0 -1
- package/lib/components/slice/icon/index.d.ts +0 -2
- package/lib/components/slice/icon/index.js +0 -3
- package/lib/components/slice/icon/index.js.map +0 -1
- package/lib/components/slice/image/SliceImage.d.ts +0 -13
- package/lib/components/slice/image/SliceImage.js +0 -26
- package/lib/components/slice/image/SliceImage.js.map +0 -1
- package/lib/components/slice/image/SliceImage.native.d.ts +0 -14
- package/lib/components/slice/image/SliceImage.native.js +0 -22
- package/lib/components/slice/image/SliceImage.native.js.map +0 -1
- package/lib/components/slice/image/SliceImageProps.d.ts +0 -8
- package/lib/components/slice/image/SliceImageProps.js +0 -2
- package/lib/components/slice/image/SliceImageProps.js.map +0 -1
- package/lib/components/slice/image/index.d.ts +0 -2
- package/lib/components/slice/image/index.js +0 -3
- package/lib/components/slice/image/index.js.map +0 -1
- package/lib/components/slice/index.d.ts +0 -8
- package/lib/components/slice/index.js +0 -9
- package/lib/components/slice/index.js.map +0 -1
- package/lib/components/slice/list/SliceList.d.ts +0 -11
- package/lib/components/slice/list/SliceList.js +0 -19
- package/lib/components/slice/list/SliceList.js.map +0 -1
- package/lib/components/slice/list/SliceList.native.d.ts +0 -13
- package/lib/components/slice/list/SliceList.native.js +0 -14
- package/lib/components/slice/list/SliceList.native.js.map +0 -1
- package/lib/components/slice/list/SliceListProps.d.ts +0 -7
- package/lib/components/slice/list/SliceListProps.js +0 -2
- package/lib/components/slice/list/SliceListProps.js.map +0 -1
- package/lib/components/slice/list/index.d.ts +0 -2
- package/lib/components/slice/list/index.js +0 -3
- package/lib/components/slice/list/index.js.map +0 -1
- package/lib/components/slider/utils/slider.d.ts +0 -0
- package/lib/components/slider/utils/slider.js +0 -153
- package/lib/components/slider/utils/slider.js.map +0 -1
- package/lib/components/tile/Tile.d.ts +0 -17
- package/lib/components/tile/Tile.js +0 -35
- package/lib/components/tile/Tile.js.map +0 -1
- package/lib/components/tile/Tile.native.d.ts +0 -13
- package/lib/components/tile/Tile.native.js +0 -22
- package/lib/components/tile/Tile.native.js.map +0 -1
- package/lib/components/tile/TileEnum.d.ts +0 -5
- package/lib/components/tile/TileEnum.js +0 -6
- package/lib/components/tile/TileEnum.js.map +0 -1
- package/lib/components/tile/TileProps.d.ts +0 -17
- package/lib/components/tile/TileProps.js +0 -2
- package/lib/components/tile/TileProps.js.map +0 -1
- package/lib/components/tile/index.d.ts +0 -2
- package/lib/components/tile/index.js +0 -3
- package/lib/components/tile/index.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React, { useCallback, useEffect, useRef, useState } from
|
|
2
|
-
import { Animated, Keyboard, Platform, StyleSheet, TextInput, TouchableOpacity, View, } from
|
|
3
|
-
import { AlertState, getAlertStyle } from
|
|
4
|
-
import { InputAutoCapitalize, InputKeyboardAppearance, InputKeyboardType, InputStatus, InputTextContentType, InputType, } from
|
|
5
|
-
import { Icon, IconColor, IconName, IconSize } from
|
|
6
|
-
import { Text } from
|
|
7
|
-
import { getColorStyle, TrilogyColor } from
|
|
8
|
-
import { Alignable } from
|
|
9
|
-
import { ComponentName } from
|
|
1
|
+
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
2
|
+
import { Animated, Keyboard, Platform, StyleSheet, TextInput, TouchableOpacity, View, } from "react-native";
|
|
3
|
+
import { AlertState, getAlertStyle } from "../../objects/facets/Alert";
|
|
4
|
+
import { InputAutoCapitalize, InputKeyboardAppearance, InputKeyboardType, InputStatus, InputTextContentType, InputType, } from "./InputEnum";
|
|
5
|
+
import { Icon, IconColor, IconName, IconSize } from "../icon";
|
|
6
|
+
import { Text } from "../text";
|
|
7
|
+
import { getColorStyle, TrilogyColor } from "../../objects/facets/Color";
|
|
8
|
+
import { Alignable } from "../../objects/facets/Alignable";
|
|
9
|
+
import { ComponentName } from "../enumsComponentsName";
|
|
10
10
|
/**
|
|
11
11
|
* Input Native Component
|
|
12
12
|
* @param name {string} Input name
|
|
@@ -34,17 +34,21 @@ import { ComponentName } from '../enumsComponentsName';
|
|
|
34
34
|
* @param maxLength {number} Textarea max length
|
|
35
35
|
* @param accessibilityLabel {string} Accessibility label
|
|
36
36
|
* @param testId {string} Test Id for Test Integration
|
|
37
|
+
* @param required {boolean} Required input
|
|
38
|
+
* @param accessibilityActivate {boolean}
|
|
37
39
|
*/
|
|
38
|
-
const Input = ({ defaultValue, name, onChange, onFocus, onBlur, disabled, status, help, placeholder, type, hasIcon, customIcon, search, reference, keyboardStyle, autoCapitalize, autoCorrect, autoCompleteType, textContentType, keyboardType, keyType, onSubmit, maxLength, testId, accessibilityLabel, customIconRight, customIconLeft, securityGauge, validationRules, onIconClick,
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
const Input = ({ defaultValue, name, onChange, onFocus, onBlur, disabled, status, help, placeholder, type, hasIcon, customIcon, search, reference, keyboardStyle, autoCapitalize, autoCorrect, autoCompleteType, textContentType, keyboardType, keyType, onSubmit, maxLength, testId, accessibilityLabel, customIconRight, customIconLeft, securityGauge, validationRules, onIconClick,
|
|
41
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
42
|
+
required, ...others }) => {
|
|
43
|
+
const [value, setValue] = useState(defaultValue || "");
|
|
44
|
+
const [email, setEmail] = useState("");
|
|
41
45
|
const [dynamicPlaceholder, setDynamicPlaceholder] = useState(false);
|
|
42
46
|
const animationDuration = 200;
|
|
43
47
|
const placeholderDefaultSize = 20;
|
|
44
48
|
const animation = useRef(new Animated.Value(25)).current;
|
|
45
49
|
const sizeAnimation = useRef(new Animated.Value(placeholderDefaultSize)).current;
|
|
46
50
|
useEffect(() => {
|
|
47
|
-
setValue(defaultValue ||
|
|
51
|
+
setValue(defaultValue || "");
|
|
48
52
|
}, [defaultValue, placeholder]);
|
|
49
53
|
useEffect(() => {
|
|
50
54
|
if (value && value.length > 0 && placeholder && placeholder.length > 0) {
|
|
@@ -55,7 +59,7 @@ const Input = ({ defaultValue, name, onChange, onFocus, onBlur, disabled, status
|
|
|
55
59
|
}
|
|
56
60
|
}, [placeholder, value]);
|
|
57
61
|
useEffect(() => {
|
|
58
|
-
if (dynamicPlaceholder) {
|
|
62
|
+
if (dynamicPlaceholder && !search) {
|
|
59
63
|
Animated.timing(animation, {
|
|
60
64
|
toValue: 3,
|
|
61
65
|
duration: animationDuration,
|
|
@@ -84,30 +88,37 @@ const Input = ({ defaultValue, name, onChange, onFocus, onBlur, disabled, status
|
|
|
84
88
|
inputIcon.set(InputStatus.SUCCESS, IconName.CHECK_CIRCLE);
|
|
85
89
|
inputIcon.set(InputStatus.WARNING, IconName.EXCLAMATION_CIRCLE);
|
|
86
90
|
inputIcon.set(InputStatus.ERROR, IconName.EXCLAMATION_CIRCLE);
|
|
87
|
-
const
|
|
88
|
-
const inputColor = getColorStyle(TrilogyColor.TERTIARY);
|
|
91
|
+
const inputColor = getColorStyle(TrilogyColor.MAIN);
|
|
89
92
|
const [iconPassword, setIconPassword] = useState(IconName.EYE);
|
|
90
93
|
const paddingTopByPlatform = (os, dynamicPlaceholder) => {
|
|
91
|
-
if (dynamicPlaceholder && os ===
|
|
94
|
+
if (dynamicPlaceholder && !search && os === "ios") {
|
|
92
95
|
return 10;
|
|
93
96
|
}
|
|
94
|
-
if (dynamicPlaceholder && os ===
|
|
97
|
+
if (dynamicPlaceholder && !search && os === "android") {
|
|
95
98
|
return 15;
|
|
96
99
|
}
|
|
97
100
|
return 0;
|
|
98
101
|
};
|
|
99
|
-
const inputTestId = testId
|
|
100
|
-
|
|
102
|
+
const inputTestId = testId
|
|
103
|
+
? testId
|
|
104
|
+
: placeholder
|
|
105
|
+
? placeholder
|
|
106
|
+
: "NotSpecified";
|
|
107
|
+
const inputAccessibilityLabel = accessibilityLabel
|
|
108
|
+
? accessibilityLabel
|
|
109
|
+
: placeholder
|
|
110
|
+
? placeholder
|
|
111
|
+
: "NotSpecified";
|
|
101
112
|
const handleChange = useCallback((text) => {
|
|
102
113
|
var _a;
|
|
103
114
|
setValue(text);
|
|
104
|
-
setEmail(
|
|
105
|
-
const domain = (_a = text.split(
|
|
115
|
+
setEmail("");
|
|
116
|
+
const domain = (_a = text.split("@")) === null || _a === void 0 ? void 0 : _a[1];
|
|
106
117
|
if (domain) {
|
|
107
|
-
const domains = [
|
|
118
|
+
const domains = ["gmail.com", "bbox.fr"];
|
|
108
119
|
domains.forEach((item) => {
|
|
109
|
-
const domainSplit = domain.split(
|
|
110
|
-
const itemSplit = item.split(
|
|
120
|
+
const domainSplit = domain.split("");
|
|
121
|
+
const itemSplit = item.split("").slice(0, domainSplit.length);
|
|
111
122
|
if (JSON.stringify(domainSplit) == JSON.stringify(itemSplit))
|
|
112
123
|
setEmail(item.slice(domain.length));
|
|
113
124
|
});
|
|
@@ -115,7 +126,7 @@ const Input = ({ defaultValue, name, onChange, onFocus, onBlur, disabled, status
|
|
|
115
126
|
}, []);
|
|
116
127
|
const handleClick = () => {
|
|
117
128
|
setValue(value + email);
|
|
118
|
-
setEmail(
|
|
129
|
+
setEmail("");
|
|
119
130
|
};
|
|
120
131
|
const handleSubmit = (e) => {
|
|
121
132
|
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(e);
|
|
@@ -123,8 +134,8 @@ const Input = ({ defaultValue, name, onChange, onFocus, onBlur, disabled, status
|
|
|
123
134
|
};
|
|
124
135
|
const [isKeyboardVisible, setKeyboardVisible] = useState(null);
|
|
125
136
|
useEffect(() => {
|
|
126
|
-
const keyboardDidShowListener = Keyboard.addListener(
|
|
127
|
-
const keyboardDidHideListener = Keyboard.addListener(
|
|
137
|
+
const keyboardDidShowListener = Keyboard.addListener("keyboardDidShow", () => setKeyboardVisible(true));
|
|
138
|
+
const keyboardDidHideListener = Keyboard.addListener("keyboardDidHide", () => setKeyboardVisible(false));
|
|
128
139
|
return () => {
|
|
129
140
|
keyboardDidHideListener.remove();
|
|
130
141
|
keyboardDidShowListener.remove();
|
|
@@ -133,7 +144,7 @@ const Input = ({ defaultValue, name, onChange, onFocus, onBlur, disabled, status
|
|
|
133
144
|
useEffect(() => {
|
|
134
145
|
handleClick();
|
|
135
146
|
}, [isKeyboardVisible]);
|
|
136
|
-
const initStateVerifies = { isVerify: false, color: IconColor.
|
|
147
|
+
const initStateVerifies = { isVerify: false, color: IconColor.NEUTRAL };
|
|
137
148
|
const [points, setPoints] = React.useState(0);
|
|
138
149
|
const [isLengthVerify, setIsLengthVerify] = React.useState(initStateVerifies);
|
|
139
150
|
const [isSpecialCharsVerify, setIsSpecialCharsVerify] = React.useState(initStateVerifies);
|
|
@@ -152,7 +163,8 @@ const Input = ({ defaultValue, name, onChange, onFocus, onBlur, disabled, status
|
|
|
152
163
|
return e.length >= validationRules.length.min;
|
|
153
164
|
}
|
|
154
165
|
if (((_d = validationRules === null || validationRules === void 0 ? void 0 : validationRules.length) === null || _d === void 0 ? void 0 : _d.max) && validationRules.length.min) {
|
|
155
|
-
return e.length >= validationRules.length.min &&
|
|
166
|
+
return (e.length >= validationRules.length.min &&
|
|
167
|
+
e.length <= validationRules.length.max);
|
|
156
168
|
}
|
|
157
169
|
return false;
|
|
158
170
|
},
|
|
@@ -182,15 +194,15 @@ const Input = ({ defaultValue, name, onChange, onFocus, onBlur, disabled, status
|
|
|
182
194
|
const data = {};
|
|
183
195
|
validationRules &&
|
|
184
196
|
Object.keys(validationRules).map((key) => {
|
|
185
|
-
if (key ===
|
|
197
|
+
if (key === "number")
|
|
186
198
|
Object.assign(data, { numberVerify });
|
|
187
|
-
if (key ===
|
|
199
|
+
if (key === "length")
|
|
188
200
|
Object.assign(data, { lengthVerify });
|
|
189
|
-
if (key ===
|
|
201
|
+
if (key === "lowercase")
|
|
190
202
|
Object.assign(data, { lowercaseVerify });
|
|
191
|
-
if (key ===
|
|
203
|
+
if (key === "uppercase")
|
|
192
204
|
Object.assign(data, { uppercaseVerify });
|
|
193
|
-
if (key ===
|
|
205
|
+
if (key === "specialChars")
|
|
194
206
|
Object.assign(data, { specialCharsverify });
|
|
195
207
|
});
|
|
196
208
|
setVerifies(data);
|
|
@@ -213,12 +225,12 @@ const Input = ({ defaultValue, name, onChange, onFocus, onBlur, disabled, status
|
|
|
213
225
|
const widthGauge = React.useMemo(() => {
|
|
214
226
|
const calc = Number(((points / nbAllVerifies) * 100).toFixed(0));
|
|
215
227
|
if (calc <= 50 && calc > 0)
|
|
216
|
-
return
|
|
228
|
+
return "50%";
|
|
217
229
|
if (calc <= 99 && calc > 50)
|
|
218
|
-
return
|
|
230
|
+
return "75%";
|
|
219
231
|
if (calc === 100)
|
|
220
|
-
return
|
|
221
|
-
return
|
|
232
|
+
return "100%";
|
|
233
|
+
return "0%";
|
|
222
234
|
}, [points, nbAllVerifies]);
|
|
223
235
|
const errorColor = getColorStyle(TrilogyColor.ERROR);
|
|
224
236
|
const warningColor = getColorStyle(TrilogyColor.WARNING);
|
|
@@ -231,79 +243,102 @@ const Input = ({ defaultValue, name, onChange, onFocus, onBlur, disabled, status
|
|
|
231
243
|
return warningColor;
|
|
232
244
|
if (calc === 100)
|
|
233
245
|
return successColor;
|
|
234
|
-
return
|
|
246
|
+
return getColorStyle(TrilogyColor.FONT, 1);
|
|
235
247
|
}, [points, nbAllVerifies]);
|
|
236
248
|
const styles = StyleSheet.create({
|
|
237
249
|
input: {
|
|
238
|
-
paddingLeft: customIconLeft ? 40 : 10,
|
|
239
|
-
paddingRight: customIcon || customIconRight ?
|
|
250
|
+
paddingLeft: customIconLeft || search ? 40 : 10,
|
|
251
|
+
paddingRight: customIcon || customIconRight || search ? 32 : 0,
|
|
240
252
|
marginTop: paddingTopByPlatform(Platform.OS, dynamicPlaceholder),
|
|
241
|
-
width: hasIcon && (status || customIcon) ?
|
|
253
|
+
width: hasIcon && (status || customIcon) ? "85%" : "95%",
|
|
242
254
|
height: 46,
|
|
243
|
-
color: inputColor,
|
|
255
|
+
color: disabled ? getColorStyle(TrilogyColor.DISABLED) : inputColor,
|
|
244
256
|
},
|
|
245
257
|
dynamicPlaceholder: {
|
|
246
|
-
position:
|
|
258
|
+
position: "absolute",
|
|
247
259
|
left: customIconLeft ? 40 : 10,
|
|
248
|
-
color: getColorStyle(TrilogyColor.
|
|
260
|
+
color: getColorStyle(TrilogyColor.MAIN),
|
|
249
261
|
},
|
|
250
262
|
help: {
|
|
251
263
|
fontSize: 12,
|
|
252
|
-
color: (status && status ===
|
|
253
|
-
(status && status ===
|
|
254
|
-
(status && status ===
|
|
255
|
-
(status && status ===
|
|
264
|
+
color: (status && status === "success" && getAlertStyle(AlertState.SUCCESS)) ||
|
|
265
|
+
(status && status === "warning" && getAlertStyle(AlertState.WARNING)) ||
|
|
266
|
+
(status && status === "error" && getAlertStyle(AlertState.ERROR)) ||
|
|
267
|
+
(status && status === "default" && inputColor) ||
|
|
268
|
+
(disabled && getColorStyle(TrilogyColor.DISABLED)) ||
|
|
256
269
|
inputColor,
|
|
257
270
|
paddingLeft: 4,
|
|
258
271
|
paddingTop: 2,
|
|
259
272
|
},
|
|
260
273
|
inputWrapper: {
|
|
261
|
-
position:
|
|
262
|
-
justifyContent:
|
|
263
|
-
alignSelf:
|
|
264
|
-
backgroundColor:
|
|
274
|
+
position: "relative",
|
|
275
|
+
justifyContent: "center",
|
|
276
|
+
alignSelf: "stretch",
|
|
277
|
+
backgroundColor: disabled
|
|
278
|
+
? getColorStyle(TrilogyColor.DISABLED, 1)
|
|
279
|
+
: getColorStyle(TrilogyColor.WHITE),
|
|
265
280
|
borderWidth: 1,
|
|
266
281
|
borderRadius: 3,
|
|
267
|
-
borderColor: (status && status ===
|
|
268
|
-
(status && status ===
|
|
269
|
-
(status && status ===
|
|
270
|
-
(status && status ===
|
|
271
|
-
|
|
282
|
+
borderColor: (status && status === "success" && getAlertStyle(AlertState.SUCCESS)) ||
|
|
283
|
+
(status && status === "warning" && getAlertStyle(AlertState.WARNING)) ||
|
|
284
|
+
(status && status === "error" && getAlertStyle(AlertState.ERROR)) ||
|
|
285
|
+
(status && status === "default" && inputColor) ||
|
|
286
|
+
getColorStyle(TrilogyColor.FONT, 1),
|
|
272
287
|
height: 46,
|
|
273
|
-
width:
|
|
288
|
+
width: "100%",
|
|
274
289
|
},
|
|
275
290
|
inputContainer: {
|
|
276
291
|
height: 46,
|
|
277
292
|
width: 46,
|
|
278
|
-
position:
|
|
293
|
+
position: "absolute",
|
|
294
|
+
right: 0,
|
|
295
|
+
justifyContent: "center",
|
|
296
|
+
},
|
|
297
|
+
inputContainerLeft: {
|
|
298
|
+
height: 46,
|
|
299
|
+
width: 46,
|
|
300
|
+
position: "absolute",
|
|
301
|
+
left: 0,
|
|
302
|
+
justifyContent: "center",
|
|
303
|
+
},
|
|
304
|
+
inputContainerRight: {
|
|
305
|
+
height: 46,
|
|
306
|
+
width: 46,
|
|
307
|
+
position: "absolute",
|
|
279
308
|
right: 0,
|
|
280
|
-
justifyContent:
|
|
309
|
+
justifyContent: "center",
|
|
281
310
|
},
|
|
282
311
|
inputIcon: {
|
|
283
|
-
position:
|
|
312
|
+
position: "absolute",
|
|
284
313
|
right: 10,
|
|
285
314
|
top: !value ? -33 : -38,
|
|
286
315
|
},
|
|
287
316
|
inputIconLeft: {
|
|
288
|
-
position:
|
|
317
|
+
position: "absolute",
|
|
289
318
|
left: 10,
|
|
290
319
|
top: !value ? -33 : -38,
|
|
291
320
|
},
|
|
292
321
|
textWhitte: {
|
|
293
322
|
zIndex: -1,
|
|
294
|
-
position:
|
|
323
|
+
position: "absolute",
|
|
295
324
|
fontSize: 14,
|
|
296
|
-
color:
|
|
297
|
-
bottom: Platform.OS ===
|
|
298
|
-
left: customIconLeft
|
|
325
|
+
color: getColorStyle(TrilogyColor.WHITE),
|
|
326
|
+
bottom: Platform.OS === "ios" ? 9 : 5,
|
|
327
|
+
left: customIconLeft
|
|
328
|
+
? Platform.OS === "ios"
|
|
329
|
+
? 38
|
|
330
|
+
: 37.5
|
|
331
|
+
: Platform.OS === "ios"
|
|
332
|
+
? 8
|
|
333
|
+
: 7.5,
|
|
299
334
|
},
|
|
300
335
|
domain: {
|
|
301
336
|
zIndex: 1,
|
|
302
|
-
color: getColorStyle(TrilogyColor.
|
|
337
|
+
color: getColorStyle(TrilogyColor.NEUTRAL),
|
|
303
338
|
fontSize: 13,
|
|
304
|
-
height:
|
|
339
|
+
height: "100%",
|
|
305
340
|
marginTop: 3,
|
|
306
|
-
marginBottom: Platform.OS ===
|
|
341
|
+
marginBottom: Platform.OS === "ios" ? 0 : -3,
|
|
307
342
|
},
|
|
308
343
|
gauge: {
|
|
309
344
|
backgroundColor: colorGauge,
|
|
@@ -312,33 +347,38 @@ const Input = ({ defaultValue, name, onChange, onFocus, onBlur, disabled, status
|
|
|
312
347
|
borderRadius: 4,
|
|
313
348
|
},
|
|
314
349
|
verifies: {
|
|
315
|
-
flexDirection:
|
|
316
|
-
justifyContent:
|
|
350
|
+
flexDirection: "row",
|
|
351
|
+
justifyContent: "space-between",
|
|
317
352
|
},
|
|
318
353
|
containerGauge: {
|
|
319
|
-
backgroundColor:
|
|
354
|
+
backgroundColor: getColorStyle(TrilogyColor.FONT, 1),
|
|
320
355
|
height: 4,
|
|
321
|
-
width:
|
|
356
|
+
width: "100%",
|
|
322
357
|
borderRadius: 4,
|
|
323
358
|
marginVertical: 8,
|
|
324
359
|
},
|
|
325
360
|
verify: {
|
|
326
|
-
flexDirection:
|
|
327
|
-
alignItems:
|
|
361
|
+
flexDirection: "row",
|
|
362
|
+
alignItems: "center",
|
|
328
363
|
marginBottom: 4,
|
|
329
364
|
},
|
|
330
365
|
textVerify: {
|
|
331
366
|
marginLeft: 8,
|
|
332
367
|
},
|
|
333
368
|
});
|
|
334
|
-
return (React.createElement(View, { style: { width:
|
|
369
|
+
return (React.createElement(View, { style: { width: "100%" }, accessible: !!inputAccessibilityLabel, accessibilityLabel: inputAccessibilityLabel, testID: inputTestId },
|
|
335
370
|
React.createElement(View, { testID: 'input-wrapper-id', style: styles.inputWrapper },
|
|
336
|
-
dynamicPlaceholder && (React.createElement(Animated.Text, { style: [
|
|
337
|
-
|
|
371
|
+
dynamicPlaceholder && !search && (React.createElement(Animated.Text, { style: [
|
|
372
|
+
styles.dynamicPlaceholder,
|
|
373
|
+
{ top: animation, fontSize: sizeAnimation },
|
|
374
|
+
] }, placeholder)),
|
|
375
|
+
React.createElement(TextInput, { testID: 'input-id', clearTextOnFocus: false, secureTextEntry: !!(type &&
|
|
376
|
+
type === InputType.PASSWORD &&
|
|
377
|
+
iconPassword === IconName.EYE), value: value, editable: !disabled, ref: reference, maxLength: maxLength, autoCapitalize: autoCapitalize || InputAutoCapitalize.NONE, keyboardAppearance: keyboardStyle || InputKeyboardAppearance.DEFAULT, autoCorrect: autoCorrect || false, autoComplete: autoCompleteType, returnKeyType: keyType, textContentType: textContentType || InputTextContentType.NONE, keyboardType: keyboardType || InputKeyboardType.DEFAULT, onSubmitEditing: handleSubmit, onChangeText: (text) => {
|
|
338
378
|
handleChange(text);
|
|
339
379
|
if (onChange) {
|
|
340
380
|
onChange({
|
|
341
|
-
inputName: (name && name) ||
|
|
381
|
+
inputName: (name && name) || "",
|
|
342
382
|
inputValue: text,
|
|
343
383
|
inputSelectionStart: null,
|
|
344
384
|
});
|
|
@@ -350,64 +390,99 @@ const Input = ({ defaultValue, name, onChange, onFocus, onBlur, disabled, status
|
|
|
350
390
|
onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
|
|
351
391
|
}, onBlur: (e) => {
|
|
352
392
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
|
|
353
|
-
}, placeholder: placeholder, placeholderTextColor:
|
|
354
|
-
|
|
393
|
+
}, placeholder: placeholder, placeholderTextColor: disabled
|
|
394
|
+
? getColorStyle(TrilogyColor.DISABLED)
|
|
395
|
+
: getColorStyle(TrilogyColor.MAIN), style: styles.input, ...others }),
|
|
396
|
+
type === "email" && (React.createElement(Text, { style: styles.textWhitte },
|
|
355
397
|
value,
|
|
356
398
|
React.createElement(Text, { style: styles.domain }, email))),
|
|
357
399
|
hasIcon &&
|
|
358
400
|
((status && status !== InputStatus.DEFAULT) || customIconLeft) &&
|
|
359
401
|
type !== InputType.PASSWORD &&
|
|
360
|
-
!customIcon && (React.createElement(Icon, { style: styles.inputIconLeft, align: Alignable.ALIGNED_START, name: (customIconLeft &&
|
|
361
|
-
|
|
362
|
-
(status
|
|
363
|
-
|
|
364
|
-
(
|
|
402
|
+
!customIcon && (React.createElement(Icon, { style: styles.inputIconLeft, align: Alignable.ALIGNED_START, name: (customIconLeft &&
|
|
403
|
+
customIconLeft.replace("tri-", "").replace("ui-", "")) ||
|
|
404
|
+
inputIcon.get(status).replace("tri-", "").replace("ui-", ""), size: IconSize.SMALL, color: (status &&
|
|
405
|
+
status === "success" &&
|
|
406
|
+
getAlertStyle(AlertState.SUCCESS)) ||
|
|
407
|
+
(status &&
|
|
408
|
+
status === "warning" &&
|
|
409
|
+
getAlertStyle(AlertState.WARNING)) ||
|
|
410
|
+
(status &&
|
|
411
|
+
status === "error" &&
|
|
412
|
+
getAlertStyle(AlertState.ERROR)) ||
|
|
413
|
+
(status && status === "default" && inputColor) ||
|
|
414
|
+
(disabled && getColorStyle(TrilogyColor.DISABLED)) ||
|
|
365
415
|
inputColor })),
|
|
366
416
|
hasIcon &&
|
|
367
|
-
|
|
417
|
+
!search &&
|
|
418
|
+
((status && status !== InputStatus.DEFAULT) ||
|
|
419
|
+
customIcon ||
|
|
420
|
+
customIconRight) &&
|
|
368
421
|
type !== InputType.PASSWORD && (React.createElement(TouchableOpacity, { style: styles.inputContainer, activeOpacity: onIconClick ? 0.2 : 1, onPress: () => {
|
|
369
422
|
onIconClick === null || onIconClick === void 0 ? void 0 : onIconClick({
|
|
370
|
-
inputName: (name && name) ||
|
|
423
|
+
inputName: (name && name) || "",
|
|
371
424
|
inputValue: value,
|
|
372
425
|
});
|
|
373
426
|
} },
|
|
374
|
-
React.createElement(Icon, { testId: 'icon-status-id', align: Alignable.ALIGNED_CENTER, name: (customIcon &&
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
(status
|
|
379
|
-
|
|
427
|
+
React.createElement(Icon, { testId: 'icon-status-id', align: Alignable.ALIGNED_CENTER, name: (customIcon &&
|
|
428
|
+
customIcon.replace("tri-", "").replace("ui-", "")) ||
|
|
429
|
+
(customIconRight &&
|
|
430
|
+
customIconRight.replace("tri-", "").replace("ui-", "")) ||
|
|
431
|
+
inputIcon.get(status).replace("tri-", "").replace("ui-", ""), size: IconSize.SMALL, color: (status &&
|
|
432
|
+
status === "success" &&
|
|
433
|
+
getAlertStyle(AlertState.SUCCESS)) ||
|
|
434
|
+
(status &&
|
|
435
|
+
status === "warning" &&
|
|
436
|
+
getAlertStyle(AlertState.WARNING)) ||
|
|
437
|
+
(status &&
|
|
438
|
+
status === "error" &&
|
|
439
|
+
getAlertStyle(AlertState.ERROR)) ||
|
|
440
|
+
(status && status === "default" && inputColor) ||
|
|
441
|
+
(disabled && getColorStyle(TrilogyColor.DISABLED)) ||
|
|
380
442
|
inputColor }))),
|
|
381
|
-
hasIcon && type === InputType.PASSWORD && (React.createElement(
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
443
|
+
hasIcon && type === InputType.PASSWORD && (React.createElement(React.Fragment, null,
|
|
444
|
+
hasIcon && customIconLeft && (React.createElement(View, { style: [{ paddingLeft: 10 }, styles.inputContainerLeft] },
|
|
445
|
+
React.createElement(Icon, { name: customIconLeft }))),
|
|
446
|
+
React.createElement(TouchableOpacity, { style: styles.inputContainerRight, onPress: () => {
|
|
447
|
+
onIconClick === null || onIconClick === void 0 ? void 0 : onIconClick({
|
|
448
|
+
inputName: (name && name) || "",
|
|
449
|
+
inputValue: value,
|
|
450
|
+
});
|
|
451
|
+
if (iconPassword === IconName.EYE) {
|
|
452
|
+
setIconPassword(IconName.EYE_SLASH);
|
|
453
|
+
}
|
|
454
|
+
else {
|
|
455
|
+
setIconPassword(IconName.EYE);
|
|
456
|
+
}
|
|
457
|
+
} },
|
|
458
|
+
React.createElement(Icon, { testId: 'password-id', align: Alignable.ALIGNED_CENTER, name: iconPassword, size: IconSize.SMALL, color: (status &&
|
|
459
|
+
status === "success" &&
|
|
460
|
+
getAlertStyle(AlertState.SUCCESS)) ||
|
|
461
|
+
(status &&
|
|
462
|
+
status === "warning" &&
|
|
463
|
+
getAlertStyle(AlertState.WARNING)) ||
|
|
464
|
+
(status &&
|
|
465
|
+
status === "error" &&
|
|
466
|
+
getAlertStyle(AlertState.ERROR)) ||
|
|
467
|
+
(status && status === "default" && inputColor) ||
|
|
468
|
+
(disabled && getColorStyle(TrilogyColor.DISABLED)) ||
|
|
469
|
+
inputColor })))),
|
|
470
|
+
search && !status && (React.createElement(React.Fragment, null,
|
|
471
|
+
React.createElement(View, { style: styles.inputContainerLeft },
|
|
472
|
+
React.createElement(Icon, { align: Alignable.ALIGNED_CENTER, name: IconName.SEARCH, size: IconSize.SMALL, color: getColorStyle(TrilogyColor.NEUTRAL) })),
|
|
473
|
+
value.length > 0 && (React.createElement(TouchableOpacity, { testID: 'search-id', style: styles.inputContainerRight, onPressIn: () => {
|
|
474
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
475
|
+
inputName: (name && name) || "",
|
|
476
|
+
inputValue: "",
|
|
477
|
+
inputSelectionStart: null,
|
|
478
|
+
});
|
|
479
|
+
onIconClick === null || onIconClick === void 0 ? void 0 : onIconClick({
|
|
480
|
+
inputName: (name && name) || "",
|
|
481
|
+
inputValue: "",
|
|
482
|
+
});
|
|
483
|
+
setValue("");
|
|
484
|
+
} },
|
|
485
|
+
React.createElement(Icon, { align: Alignable.ALIGNED_CENTER, name: IconName.TIMES_CIRCLE, size: IconSize.SMALL, color: getColorStyle(TrilogyColor.NEUTRAL) })))))),
|
|
411
486
|
help && (React.createElement(Text, { testId: 'help-id', style: styles.help }, help)),
|
|
412
487
|
type === InputType.PASSWORD && securityGauge && (React.createElement(View, null,
|
|
413
488
|
React.createElement(View, { style: styles.containerGauge },
|
|
@@ -415,7 +490,9 @@ const Input = ({ defaultValue, name, onChange, onFocus, onBlur, disabled, status
|
|
|
415
490
|
React.createElement(View, { style: styles.verifies },
|
|
416
491
|
React.createElement(View, null,
|
|
417
492
|
validationRules && validationRules.length && (React.createElement(View, { style: styles.verify },
|
|
418
|
-
React.createElement(Icon, { color: isLengthVerify.color, name: isLengthVerify.isVerify
|
|
493
|
+
React.createElement(Icon, { color: isLengthVerify.color, name: isLengthVerify.isVerify
|
|
494
|
+
? IconName.CHECK_CIRCLE
|
|
495
|
+
: IconName.TIMES, size: IconSize.SMALLER }),
|
|
419
496
|
React.createElement(Text, { style: styles.textVerify },
|
|
420
497
|
validationRules.length.min &&
|
|
421
498
|
validationRules.length.max &&
|
|
@@ -427,17 +504,25 @@ const Input = ({ defaultValue, name, onChange, onFocus, onBlur, disabled, status
|
|
|
427
504
|
!validationRules.length.min &&
|
|
428
505
|
`Maximum ${validationRules.length.max} caractères`))),
|
|
429
506
|
validationRules && validationRules.specialChars && (React.createElement(View, { style: styles.verify },
|
|
430
|
-
React.createElement(Icon, { color: isSpecialCharsVerify.color, name: isSpecialCharsVerify.isVerify
|
|
507
|
+
React.createElement(Icon, { color: isSpecialCharsVerify.color, name: isSpecialCharsVerify.isVerify
|
|
508
|
+
? IconName.CHECK_CIRCLE
|
|
509
|
+
: IconName.TIMES, size: IconSize.SMALLER }),
|
|
431
510
|
React.createElement(Text, { style: styles.textVerify }, "Caract\u00E8res sp\u00E9ciaux"))),
|
|
432
511
|
validationRules && validationRules.number && (React.createElement(View, { style: styles.verify },
|
|
433
|
-
React.createElement(Icon, { color: isNumberVerify.color, name: isNumberVerify.isVerify
|
|
512
|
+
React.createElement(Icon, { color: isNumberVerify.color, name: isNumberVerify.isVerify
|
|
513
|
+
? IconName.CHECK_CIRCLE
|
|
514
|
+
: IconName.TIMES, size: IconSize.SMALLER }),
|
|
434
515
|
React.createElement(Text, { style: styles.textVerify }, "Chiffre")))),
|
|
435
516
|
React.createElement(View, null,
|
|
436
517
|
validationRules && validationRules.uppercase && (React.createElement(View, { style: styles.verify },
|
|
437
|
-
React.createElement(Icon, { color: isUppercaseVerify.color, name: isUppercaseVerify.isVerify
|
|
518
|
+
React.createElement(Icon, { color: isUppercaseVerify.color, name: isUppercaseVerify.isVerify
|
|
519
|
+
? IconName.CHECK_CIRCLE
|
|
520
|
+
: IconName.TIMES, size: IconSize.SMALLER }),
|
|
438
521
|
React.createElement(Text, { style: styles.textVerify }, "Majuscule"))),
|
|
439
522
|
validationRules && validationRules.lowercase && (React.createElement(View, { style: styles.verify },
|
|
440
|
-
React.createElement(Icon, { color: isLowerercaseVerify.color, name: isLowerercaseVerify.isVerify
|
|
523
|
+
React.createElement(Icon, { color: isLowerercaseVerify.color, name: isLowerercaseVerify.isVerify
|
|
524
|
+
? IconName.CHECK_CIRCLE
|
|
525
|
+
: IconName.TIMES, size: IconSize.SMALLER }),
|
|
441
526
|
React.createElement(Text, { style: styles.textVerify }, "Minuscule")))))))));
|
|
442
527
|
};
|
|
443
528
|
Input.displayName = ComponentName.Input;
|