@trilogy-ds/react 0.0.1-beta-104 → 0.0.1-beta-107
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/components/accordion/Accordion.d.ts +1 -1
- package/lib/components/accordion/Accordion.example.d.ts +3 -0
- package/lib/components/accordion/Accordion.example.js +19 -0
- package/lib/components/accordion/Accordion.example.js.map +1 -0
- package/lib/components/accordion/Accordion.js +3 -4
- package/lib/components/accordion/Accordion.js.map +1 -1
- package/lib/components/accordion/body/AccordionBody.d.ts +1 -0
- package/lib/components/accordion/body/AccordionBody.js +1 -0
- package/lib/components/accordion/body/AccordionBody.js.map +1 -1
- package/lib/components/accordion/body/AccordionBodyProps.d.ts +1 -0
- package/lib/components/accordion/header/AccordionHeader.js +1 -1
- package/lib/components/accordion/header/AccordionHeader.js.map +1 -1
- package/lib/components/accordion/index.d.ts +2 -1
- package/lib/components/accordion/index.js +2 -1
- package/lib/components/accordion/index.js.map +1 -1
- package/lib/components/accordion/item/AccordionItem.js +1 -2
- package/lib/components/accordion/item/AccordionItem.js.map +1 -1
- package/lib/components/accordion/item/AccordionItem.native.js +4 -4
- package/lib/components/accordion/item/AccordionItem.native.js.map +1 -1
- package/lib/components/alert/Alert.d.ts +5 -4
- package/lib/components/alert/Alert.example.d.ts +3 -0
- package/lib/components/alert/Alert.example.js +14 -0
- package/lib/components/alert/Alert.example.js.map +1 -0
- package/lib/components/alert/Alert.js +12 -11
- package/lib/components/alert/Alert.js.map +1 -1
- package/lib/components/alert/Alert.native.d.ts +6 -6
- package/lib/components/alert/Alert.native.js +15 -13
- package/lib/components/alert/Alert.native.js.map +1 -1
- package/lib/components/alert/AlertProps.d.ts +4 -3
- package/lib/components/alert/context/ToasterContextProps.d.ts +3 -3
- package/lib/components/alert/index.d.ts +2 -1
- package/lib/components/alert/index.js +2 -1
- package/lib/components/alert/index.js.map +1 -1
- package/lib/components/autolayout/AutoLayout.native.js +1 -1
- package/lib/components/autolayout/AutoLayout.native.js.map +1 -1
- package/lib/components/autolayout/DefaultSpacingMatrix.js +74 -31
- package/lib/components/autolayout/DefaultSpacingMatrix.js.map +1 -1
- package/lib/components/badge/Badge.d.ts +3 -2
- package/lib/components/badge/Badge.example.d.ts +3 -0
- package/lib/components/badge/Badge.example.js +5 -0
- package/lib/components/badge/Badge.example.js.map +1 -0
- package/lib/components/badge/Badge.js +12 -6
- package/lib/components/badge/Badge.js.map +1 -1
- package/lib/components/badge/Badge.native.d.ts +3 -2
- package/lib/components/badge/Badge.native.js +10 -6
- package/lib/components/badge/Badge.native.js.map +1 -1
- package/lib/components/badge/BadgeEnum.d.ts +5 -0
- package/lib/components/badge/BadgeEnum.js +5 -0
- package/lib/components/badge/BadgeEnum.js.map +1 -1
- package/lib/components/badge/BadgeProps.d.ts +3 -1
- package/lib/components/badge/index.d.ts +2 -1
- package/lib/components/badge/index.js +2 -1
- package/lib/components/badge/index.js.map +1 -1
- package/lib/components/box/Box.d.ts +3 -3
- package/lib/components/box/Box.example.d.ts +3 -0
- package/lib/components/box/Box.example.js +31 -0
- package/lib/components/box/Box.example.js.map +1 -0
- package/lib/components/box/Box.js +4 -4
- package/lib/components/box/Box.js.map +1 -1
- package/lib/components/box/Box.native.d.ts +3 -3
- package/lib/components/box/Box.native.js +14 -13
- package/lib/components/box/Box.native.js.map +1 -1
- package/lib/components/box/BoxProps.d.ts +1 -1
- package/lib/components/box/content/BoxContent.d.ts +2 -2
- package/lib/components/box/content/BoxContent.js +3 -3
- 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 +6 -4
- package/lib/components/box/content/BoxContent.native.js.map +1 -1
- package/lib/components/box/index.d.ts +2 -1
- package/lib/components/box/index.js +2 -1
- package/lib/components/box/index.js.map +1 -1
- package/lib/components/breadcrumb/Breadcrumb.d.ts +2 -2
- package/lib/components/breadcrumb/Breadcrumb.example.d.ts +3 -0
- package/lib/components/breadcrumb/Breadcrumb.example.js +9 -0
- package/lib/components/breadcrumb/Breadcrumb.example.js.map +1 -0
- package/lib/components/breadcrumb/Breadcrumb.js +3 -4
- package/lib/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/index.d.ts +2 -1
- package/lib/components/breadcrumb/index.js +2 -1
- package/lib/components/breadcrumb/index.js.map +1 -1
- package/lib/components/button/Button.example.d.ts +3 -0
- package/lib/components/button/Button.example.js +10 -0
- package/lib/components/button/Button.example.js.map +1 -0
- package/lib/components/button/Button.native.js +10 -10
- package/lib/components/button/Button.native.js.map +1 -1
- package/lib/components/button/index.d.ts +2 -1
- package/lib/components/button/index.js +2 -1
- package/lib/components/button/index.js.map +1 -1
- package/lib/components/button/list/ButtonList.native.js +4 -4
- package/lib/components/button/list/ButtonList.native.js.map +1 -1
- package/lib/components/card/Card.d.ts +3 -6
- package/lib/components/card/Card.example.d.ts +3 -0
- package/lib/components/card/Card.example.js +25 -0
- package/lib/components/card/Card.example.js.map +1 -0
- package/lib/components/card/Card.js +7 -9
- package/lib/components/card/Card.js.map +1 -1
- package/lib/components/card/Card.native.d.ts +2 -2
- package/lib/components/card/Card.native.js +7 -7
- package/lib/components/card/Card.native.js.map +1 -1
- package/lib/components/card/content/CardContent.native.d.ts +1 -0
- package/lib/components/card/content/CardContent.native.js +1 -0
- package/lib/components/card/content/CardContent.native.js.map +1 -1
- package/lib/components/card/content/CardContentProps.d.ts +1 -0
- package/lib/components/card/image/CardImage.d.ts +1 -0
- package/lib/components/card/image/CardImage.js +1 -0
- package/lib/components/card/image/CardImage.js.map +1 -1
- package/lib/components/card/image/CardImage.native.d.ts +1 -1
- package/lib/components/card/image/CardImage.native.js +8 -11
- package/lib/components/card/image/CardImage.native.js.map +1 -1
- package/lib/components/card/image/CardImageProps.d.ts +2 -0
- package/lib/components/card/index.d.ts +2 -1
- package/lib/components/card/index.js +2 -1
- package/lib/components/card/index.js.map +1 -1
- package/lib/components/checkbox/Checkbox.example.d.ts +3 -0
- package/lib/components/checkbox/Checkbox.example.js +18 -0
- package/lib/components/checkbox/Checkbox.example.js.map +1 -0
- package/lib/components/checkbox/Checkbox.native.js +8 -8
- package/lib/components/checkbox/Checkbox.native.js.map +1 -1
- package/lib/components/checkbox/index.d.ts +2 -1
- package/lib/components/checkbox/index.js +2 -1
- package/lib/components/checkbox/index.js.map +1 -1
- package/lib/components/chips/Chips.d.ts +2 -1
- package/lib/components/chips/Chips.example.d.ts +3 -0
- package/lib/components/chips/Chips.example.js +13 -0
- package/lib/components/chips/Chips.example.js.map +1 -0
- package/lib/components/chips/Chips.js +6 -4
- package/lib/components/chips/Chips.js.map +1 -1
- package/lib/components/chips/Chips.native.d.ts +2 -1
- package/lib/components/chips/Chips.native.js +8 -6
- package/lib/components/chips/Chips.native.js.map +1 -1
- package/lib/components/chips/ChipsProps.d.ts +1 -0
- package/lib/components/chips/index.d.ts +2 -1
- package/lib/components/chips/index.js +2 -1
- package/lib/components/chips/index.js.map +1 -1
- package/lib/components/chips/list/ChipsList.d.ts +2 -2
- package/lib/components/chips/list/ChipsList.js +3 -4
- package/lib/components/chips/list/ChipsList.js.map +1 -1
- package/lib/components/columns/Columns.d.ts +3 -2
- package/lib/components/columns/Columns.example.d.ts +3 -0
- package/lib/components/columns/Columns.example.js +16 -0
- package/lib/components/columns/Columns.example.js.map +1 -0
- package/lib/components/columns/Columns.js +5 -5
- package/lib/components/columns/Columns.js.map +1 -1
- package/lib/components/columns/ColumnsProps.d.ts +3 -1
- package/lib/components/columns/index.d.ts +2 -1
- package/lib/components/columns/index.js +2 -1
- package/lib/components/columns/index.js.map +1 -1
- package/lib/components/columns/item/ColumnsItem.d.ts +2 -2
- package/lib/components/columns/item/ColumnsItem.js +3 -4
- package/lib/components/columns/item/ColumnsItem.js.map +1 -1
- package/lib/components/columns/item/ColumnsItem.native.js +0 -3
- package/lib/components/columns/item/ColumnsItem.native.js.map +1 -1
- package/lib/components/container/Container.d.ts +2 -2
- package/lib/components/container/Container.example.d.ts +3 -0
- package/lib/components/container/Container.example.js +9 -0
- package/lib/components/container/Container.example.js.map +1 -0
- package/lib/components/container/Container.js +3 -3
- 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 +8 -8
- package/lib/components/container/Container.native.js.map +1 -1
- package/lib/components/container/index.d.ts +2 -1
- package/lib/components/container/index.js +2 -1
- package/lib/components/container/index.js.map +1 -1
- package/lib/components/countdown/Countdown.d.ts +1 -2
- package/lib/components/countdown/Countdown.example.d.ts +3 -0
- package/lib/components/countdown/Countdown.example.js +10 -0
- package/lib/components/countdown/Countdown.example.js.map +1 -0
- package/lib/components/countdown/Countdown.js +2 -3
- package/lib/components/countdown/Countdown.js.map +1 -1
- package/lib/components/countdown/Countdown.native.d.ts +1 -2
- package/lib/components/countdown/Countdown.native.js +3 -4
- package/lib/components/countdown/Countdown.native.js.map +1 -1
- package/lib/components/countdown/CountdownProps.d.ts +0 -1
- package/lib/components/countdown/index.d.ts +2 -1
- package/lib/components/countdown/index.js +2 -1
- package/lib/components/countdown/index.js.map +1 -1
- package/lib/components/divider/Divider.example.d.ts +3 -0
- package/lib/components/divider/Divider.example.js +5 -0
- package/lib/components/divider/Divider.example.js.map +1 -0
- package/lib/components/divider/Divider.native.js +2 -2
- package/lib/components/divider/Divider.native.js.map +1 -1
- package/lib/components/divider/index.d.ts +2 -1
- package/lib/components/divider/index.js +2 -1
- package/lib/components/divider/index.js.map +1 -1
- package/lib/components/enumsComponentsName.d.ts +1 -2
- package/lib/components/enumsComponentsName.js +1 -2
- package/lib/components/enumsComponentsName.js.map +1 -1
- package/lib/components/fab/Fab.example.d.ts +3 -0
- package/lib/components/fab/Fab.example.js +10 -0
- package/lib/components/fab/Fab.example.js.map +1 -0
- package/lib/components/fab/FabProps.d.ts +2 -2
- package/lib/components/fab/index.d.ts +2 -1
- package/lib/components/fab/index.js +2 -1
- package/lib/components/fab/index.js.map +1 -1
- package/lib/components/hero/Hero.d.ts +1 -2
- package/lib/components/hero/Hero.example.d.ts +3 -0
- package/lib/components/hero/Hero.example.js +21 -0
- package/lib/components/hero/Hero.example.js.map +1 -0
- package/lib/components/hero/Hero.js +2 -3
- package/lib/components/hero/Hero.js.map +1 -1
- package/lib/components/hero/Hero.native.d.ts +2 -2
- package/lib/components/hero/Hero.native.js +8 -8
- package/lib/components/hero/Hero.native.js.map +1 -1
- package/lib/components/hero/index.d.ts +2 -1
- package/lib/components/hero/index.js +2 -1
- package/lib/components/hero/index.js.map +1 -1
- package/lib/components/icon/Icon.example.d.ts +3 -0
- package/lib/components/icon/Icon.example.js +8 -0
- package/lib/components/icon/Icon.example.js.map +1 -0
- package/lib/components/icon/Icon.js +1 -1
- package/lib/components/icon/Icon.js.map +1 -1
- package/lib/components/icon/Icon.native.js +1 -1
- package/lib/components/icon/Icon.native.js.map +1 -1
- package/lib/components/icon/index.d.ts +2 -1
- package/lib/components/icon/index.js +2 -1
- package/lib/components/icon/index.js.map +1 -1
- package/lib/components/icon/text/TextIcon.d.ts +2 -4
- package/lib/components/icon/text/TextIcon.js +17 -15
- package/lib/components/icon/text/TextIcon.js.map +1 -1
- package/lib/components/image/Image.example.d.ts +3 -0
- package/lib/components/image/Image.example.js +5 -0
- package/lib/components/image/Image.example.js.map +1 -0
- package/lib/components/image/index.d.ts +2 -1
- package/lib/components/image/index.js +2 -1
- package/lib/components/image/index.js.map +1 -1
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.js +0 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/Input.d.ts +72 -2
- package/lib/components/input/Input.example.d.ts +3 -0
- package/lib/components/input/Input.example.js +5 -0
- package/lib/components/input/Input.example.js.map +1 -0
- package/lib/components/input/Input.js +34 -19
- package/lib/components/input/Input.js.map +1 -1
- package/lib/components/input/Input.native.d.ts +4 -4
- package/lib/components/input/Input.native.js +41 -48
- package/lib/components/input/Input.native.js.map +1 -1
- package/lib/components/input/InputProps.d.ts +12 -21
- package/lib/components/input/autocomplete/AutoComplete.d.ts +24 -0
- package/lib/components/{autocomplete → input/autocomplete}/AutoComplete.js +9 -10
- package/lib/components/input/autocomplete/AutoComplete.js.map +1 -0
- package/lib/components/{autocomplete → input/autocomplete}/AutoComplete.native.d.ts +2 -2
- package/lib/components/{autocomplete → input/autocomplete}/AutoComplete.native.js +1 -1
- package/lib/components/input/autocomplete/AutoComplete.native.js.map +1 -0
- package/lib/components/input/autocomplete/AutoCompleteProps.d.ts +29 -0
- package/lib/components/input/autocomplete/AutoCompleteProps.js.map +1 -0
- package/lib/components/input/autocomplete/Autocomplete.helpers.js.map +1 -0
- package/lib/components/input/autocomplete/index.js.map +1 -0
- package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteIem.native.js +2 -2
- package/lib/components/input/autocomplete/item/AutoCompleteIem.native.js.map +1 -0
- package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteItem.js +3 -3
- package/lib/components/input/autocomplete/item/AutoCompleteItem.js.map +1 -0
- package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteItemProps.d.ts +1 -1
- package/lib/components/input/autocomplete/item/AutoCompleteItemProps.js.map +1 -0
- package/lib/components/input/autocomplete/item/index.js.map +1 -0
- package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenu.js +3 -3
- package/lib/components/input/autocomplete/menu/AutoCompleteMenu.js.map +1 -0
- package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenu.native.js +3 -3
- package/lib/components/input/autocomplete/menu/AutoCompleteMenu.native.js.map +1 -0
- package/lib/components/input/autocomplete/menu/AutoCompleteMenuProps.js.map +1 -0
- package/lib/components/input/autocomplete/menu/index.js.map +1 -0
- package/lib/components/input/autocomplete/utils/debounce.js.map +1 -0
- package/lib/components/input/autocomplete/utils/index.js.map +1 -0
- package/lib/components/input/gauge/InputGauge.native.js +1 -1
- package/lib/components/input/gauge/InputGauge.native.js.map +1 -1
- package/lib/components/input/gauge/hook/useGauge.js +1 -1
- package/lib/components/input/gauge/hook/useGauge.js.map +1 -1
- package/lib/components/input/index.d.ts +2 -1
- package/lib/components/input/index.js +2 -1
- package/lib/components/input/index.js.map +1 -1
- package/lib/components/link/Link.example.d.ts +3 -0
- package/lib/components/link/Link.example.js +15 -0
- package/lib/components/link/Link.example.js.map +1 -0
- package/lib/components/link/Link.js +2 -2
- package/lib/components/link/Link.js.map +1 -1
- package/lib/components/link/Link.native.d.ts +1 -0
- package/lib/components/link/Link.native.js +10 -10
- package/lib/components/link/Link.native.js.map +1 -1
- package/lib/components/link/LinkProps.d.ts +1 -0
- package/lib/components/link/index.d.ts +2 -1
- package/lib/components/link/index.js +2 -1
- package/lib/components/link/index.js.map +1 -1
- package/lib/components/list/List.d.ts +2 -2
- package/lib/components/list/List.example.d.ts +3 -0
- package/lib/components/list/List.example.js +17 -0
- package/lib/components/list/List.example.js.map +1 -0
- package/lib/components/list/List.js +3 -4
- package/lib/components/list/List.js.map +1 -1
- package/lib/components/list/index.d.ts +2 -1
- package/lib/components/list/index.js +2 -1
- package/lib/components/list/index.js.map +1 -1
- package/lib/components/list/item/ListItem.native.js +1 -1
- package/lib/components/list/item/ListItem.native.js.map +1 -1
- package/lib/components/modal/Modal.d.ts +6 -1
- package/lib/components/modal/Modal.example.d.ts +3 -0
- package/lib/components/modal/Modal.example.js +5 -0
- package/lib/components/modal/Modal.example.js.map +1 -0
- package/lib/components/modal/Modal.js +19 -14
- package/lib/components/modal/Modal.js.map +1 -1
- package/lib/components/modal/ModalProps.d.ts +5 -1
- package/lib/components/modal/index.d.ts +2 -1
- package/lib/components/modal/index.js +2 -1
- package/lib/components/modal/index.js.map +1 -1
- package/lib/components/modal/title/ModalTitle.js +1 -1
- package/lib/components/modal/title/ModalTitle.js.map +1 -1
- package/lib/components/otp/Otp.d.ts +12 -0
- package/lib/components/otp/Otp.example.d.ts +3 -0
- package/lib/components/otp/Otp.example.js +13 -0
- package/lib/components/otp/Otp.example.js.map +1 -0
- package/lib/components/otp/Otp.js +98 -77
- package/lib/components/otp/Otp.js.map +1 -1
- package/lib/components/otp/Otp.native.js +1 -1
- package/lib/components/otp/Otp.native.js.map +1 -1
- package/lib/components/otp/index.d.ts +2 -1
- package/lib/components/otp/index.js +2 -1
- package/lib/components/otp/index.js.map +1 -1
- package/lib/components/pagination/Pagination.example.d.ts +3 -0
- package/lib/components/pagination/Pagination.example.js +5 -0
- package/lib/components/pagination/Pagination.example.js.map +1 -0
- package/lib/components/pagination/index.d.ts +2 -1
- package/lib/components/pagination/index.js +2 -1
- package/lib/components/pagination/index.js.map +1 -1
- package/lib/components/popover/Popover.example.d.ts +3 -0
- package/lib/components/popover/Popover.example.js +7 -0
- package/lib/components/popover/Popover.example.js.map +1 -0
- package/lib/components/popover/index.d.ts +2 -1
- package/lib/components/popover/index.js +2 -1
- package/lib/components/popover/index.js.map +1 -1
- package/lib/components/price/Price.d.ts +3 -3
- package/lib/components/price/Price.example.d.ts +3 -0
- package/lib/components/price/Price.example.js +12 -0
- package/lib/components/price/Price.example.js.map +1 -0
- package/lib/components/price/Price.js +9 -28
- package/lib/components/price/Price.js.map +1 -1
- package/lib/components/price/Price.native.d.ts +3 -2
- package/lib/components/price/Price.native.js +88 -128
- package/lib/components/price/Price.native.js.map +1 -1
- package/lib/components/price/PriceEnum.d.ts +8 -8
- package/lib/components/price/PriceEnum.js +7 -7
- package/lib/components/price/PriceEnum.js.map +1 -1
- package/lib/components/price/PriceProps.d.ts +7 -7
- package/lib/components/price/index.d.ts +2 -1
- package/lib/components/price/index.js +2 -1
- package/lib/components/price/index.js.map +1 -1
- package/lib/components/progress/Progress.d.ts +3 -3
- package/lib/components/progress/Progress.example.d.ts +3 -0
- package/lib/components/progress/Progress.example.js +7 -0
- package/lib/components/progress/Progress.example.js.map +1 -0
- package/lib/components/progress/Progress.js +6 -7
- 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 +6 -6
- package/lib/components/progress/Progress.native.js.map +1 -1
- package/lib/components/progress/ProgressProps.d.ts +2 -2
- package/lib/components/progress/index.d.ts +2 -1
- package/lib/components/progress/index.js +2 -1
- package/lib/components/progress/index.js.map +1 -1
- package/lib/components/progress/item/ProgressItem.d.ts +3 -3
- package/lib/components/progress/item/ProgressItem.js +6 -7
- package/lib/components/progress/item/ProgressItem.js.map +1 -1
- package/lib/components/progress/item/ProgressItem.native.d.ts +2 -2
- package/lib/components/progress/item/ProgressItem.native.js +2 -2
- package/lib/components/progress/item/ProgressItem.native.js.map +1 -1
- package/lib/components/progress/item/ProgressItemProps.d.ts +2 -2
- package/lib/components/progress/radial/ProgressRadial.js +1 -2
- package/lib/components/progress/radial/ProgressRadial.js.map +1 -1
- package/lib/components/progress/radial/ProgressRadial.native.d.ts +3 -3
- package/lib/components/progress/radial/ProgressRadial.native.js +12 -10
- package/lib/components/progress/radial/ProgressRadial.native.js.map +1 -1
- package/lib/components/progress/radial/ProgressRadialProps.d.ts +3 -3
- package/lib/components/radio/Radio.example.d.ts +3 -0
- package/lib/components/radio/Radio.example.js +18 -0
- package/lib/components/radio/Radio.example.js.map +1 -0
- package/lib/components/radio/Radio.native.js +11 -12
- package/lib/components/radio/Radio.native.js.map +1 -1
- package/lib/components/radio/index.d.ts +2 -1
- package/lib/components/radio/index.js +2 -1
- package/lib/components/radio/index.js.map +1 -1
- package/lib/components/radio/list/RadioList.native.js +4 -4
- package/lib/components/radio/list/RadioList.native.js.map +1 -1
- package/lib/components/range/Range.example.d.ts +3 -0
- package/lib/components/range/Range.example.js +5 -0
- package/lib/components/range/Range.example.js.map +1 -0
- package/lib/components/range/Range.js +1 -1
- package/lib/components/range/Range.js.map +1 -1
- package/lib/components/range/index.d.ts +2 -1
- package/lib/components/range/index.js +2 -1
- package/lib/components/range/index.js.map +1 -1
- package/lib/components/rows/Rows.d.ts +2 -3
- package/lib/components/rows/Rows.example.d.ts +3 -0
- package/lib/components/rows/Rows.example.js +16 -0
- package/lib/components/rows/Rows.example.js.map +1 -0
- package/lib/components/rows/Rows.js +3 -6
- package/lib/components/rows/Rows.js.map +1 -1
- package/lib/components/rows/Rows.native.d.ts +2 -5
- package/lib/components/rows/Rows.native.js +2 -4
- package/lib/components/rows/Rows.native.js.map +1 -1
- package/lib/components/rows/RowsProps.d.ts +0 -1
- package/lib/components/rows/index.d.ts +2 -1
- package/lib/components/rows/index.js +2 -1
- package/lib/components/rows/index.js.map +1 -1
- package/lib/components/rows/item/RowItem.d.ts +2 -2
- package/lib/components/rows/item/RowItem.js +3 -4
- package/lib/components/rows/item/RowItem.js.map +1 -1
- package/lib/components/rows/item/RowItem.native.js +1 -3
- package/lib/components/rows/item/RowItem.native.js.map +1 -1
- package/lib/components/section/Section.d.ts +3 -3
- package/lib/components/section/Section.example.d.ts +3 -0
- package/lib/components/section/Section.example.js +12 -0
- package/lib/components/section/Section.example.js.map +1 -0
- package/lib/components/section/Section.js +6 -7
- package/lib/components/section/Section.js.map +1 -1
- package/lib/components/section/Section.native.d.ts +2 -2
- package/lib/components/section/Section.native.js +4 -4
- package/lib/components/section/Section.native.js.map +1 -1
- package/lib/components/section/SectionProps.d.ts +2 -2
- package/lib/components/section/index.d.ts +2 -1
- package/lib/components/section/index.js +2 -1
- package/lib/components/section/index.js.map +1 -1
- package/lib/components/segment-control/SegmentControl.example.d.ts +3 -0
- package/lib/components/segment-control/SegmentControl.example.js +9 -0
- package/lib/components/segment-control/SegmentControl.example.js.map +1 -0
- package/lib/components/segment-control/SegmentControl.native.js +1 -1
- package/lib/components/segment-control/SegmentControl.native.js.map +1 -1
- package/lib/components/segment-control/SegmentControlProps.d.ts +4 -1
- package/lib/components/segment-control/index.d.ts +2 -1
- package/lib/components/segment-control/index.js +2 -1
- package/lib/components/segment-control/index.js.map +1 -1
- package/lib/components/segment-control/item/SegmentControlItem.native.js +2 -2
- package/lib/components/segment-control/item/SegmentControlItem.native.js.map +1 -1
- package/lib/components/select/Select.example.d.ts +3 -0
- package/lib/components/select/Select.example.js +8 -0
- package/lib/components/select/Select.example.js.map +1 -0
- package/lib/components/select/index.d.ts +2 -1
- package/lib/components/select/index.js +2 -1
- package/lib/components/select/index.js.map +1 -1
- package/lib/components/select/option/SelectOption.d.ts +2 -2
- package/lib/components/select/option/SelectOption.js +3 -4
- package/lib/components/select/option/SelectOption.js.map +1 -1
- package/lib/components/select/option/SelectOption.native.js +7 -19
- package/lib/components/select/option/SelectOption.native.js.map +1 -1
- package/lib/components/selector/item/SelectorItem.native.js +1 -1
- package/lib/components/selector/item/SelectorItem.native.js.map +1 -1
- package/lib/components/spacer/Spacer.d.ts +1 -1
- package/lib/components/spacer/Spacer.js +1 -1
- package/lib/components/spacer/Spacer.native.d.ts +2 -1
- package/lib/components/spacer/Spacer.native.js +2 -1
- package/lib/components/spacer/Spacer.native.js.map +1 -1
- package/lib/components/spacer/SpacerEnum.d.ts +6 -11
- package/lib/components/spacer/SpacerEnum.js +7 -11
- package/lib/components/spacer/SpacerEnum.js.map +1 -1
- package/lib/components/stepper/Stepper.d.ts +2 -2
- package/lib/components/stepper/Stepper.example.d.ts +3 -0
- package/lib/components/stepper/Stepper.example.js +11 -0
- package/lib/components/stepper/Stepper.example.js.map +1 -0
- package/lib/components/stepper/Stepper.js +5 -7
- package/lib/components/stepper/Stepper.js.map +1 -1
- package/lib/components/stepper/Stepper.native.js +2 -1
- package/lib/components/stepper/Stepper.native.js.map +1 -1
- package/lib/components/stepper/index.d.ts +2 -1
- package/lib/components/stepper/index.js +2 -1
- package/lib/components/stepper/index.js.map +1 -1
- package/lib/components/stepper/step/StepperStep.d.ts +2 -2
- package/lib/components/stepper/step/StepperStep.js +3 -4
- package/lib/components/stepper/step/StepperStep.js.map +1 -1
- package/lib/components/stepper/step/StepperStep.native.js +1 -1
- package/lib/components/stepper/step/StepperStep.native.js.map +1 -1
- package/lib/components/sticker/Sticker.d.ts +2 -2
- package/lib/components/sticker/Sticker.example.d.ts +3 -0
- package/lib/components/sticker/Sticker.example.js +10 -0
- package/lib/components/sticker/Sticker.example.js.map +1 -0
- package/lib/components/sticker/Sticker.js +3 -3
- package/lib/components/sticker/Sticker.js.map +1 -1
- package/lib/components/sticker/index.d.ts +2 -1
- package/lib/components/sticker/index.js +2 -1
- package/lib/components/sticker/index.js.map +1 -1
- package/lib/components/switch/Switch.d.ts +2 -2
- package/lib/components/switch/Switch.example.d.ts +3 -0
- package/lib/components/switch/Switch.example.js +12 -0
- package/lib/components/switch/Switch.example.js.map +1 -0
- package/lib/components/switch/Switch.js +4 -4
- 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 +7 -6
- package/lib/components/switch/Switch.native.js.map +1 -1
- package/lib/components/switch/SwitchProps.d.ts +2 -2
- package/lib/components/switch/index.d.ts +2 -1
- package/lib/components/switch/index.js +2 -1
- package/lib/components/switch/index.js.map +1 -1
- package/lib/components/table/Table.example.d.ts +3 -0
- package/lib/components/table/Table.example.js +19 -0
- package/lib/components/table/Table.example.js.map +1 -0
- package/lib/components/table/Table.native.js +1 -1
- package/lib/components/table/Table.native.js.map +1 -1
- package/lib/components/table/index.d.ts +2 -1
- package/lib/components/table/index.js +2 -1
- package/lib/components/table/index.js.map +1 -1
- package/lib/components/table/td/TableTd.native.js +2 -2
- package/lib/components/table/td/TableTd.native.js.map +1 -1
- package/lib/components/table/th/TableTh.native.js +2 -2
- package/lib/components/table/th/TableTh.native.js.map +1 -1
- package/lib/components/table/tr/TableTr.native.js +1 -1
- package/lib/components/table/tr/TableTr.native.js.map +1 -1
- package/lib/components/tabs/Tabs.d.ts +2 -2
- package/lib/components/tabs/Tabs.example.d.ts +3 -0
- package/lib/components/tabs/Tabs.example.js +16 -0
- package/lib/components/tabs/Tabs.example.js.map +1 -0
- package/lib/components/tabs/Tabs.js +3 -4
- package/lib/components/tabs/Tabs.js.map +1 -1
- package/lib/components/tabs/index.d.ts +2 -1
- package/lib/components/tabs/index.js +2 -1
- package/lib/components/tabs/index.js.map +1 -1
- package/lib/components/tabs/item/TabsItem.d.ts +2 -2
- package/lib/components/tabs/item/TabsItem.js +4 -5
- package/lib/components/tabs/item/TabsItem.js.map +1 -1
- package/lib/components/tabs/item/TabsItem.native.js +1 -1
- package/lib/components/tabs/item/TabsItem.native.js.map +1 -1
- package/lib/components/tag/Tag.example.d.ts +3 -0
- package/lib/components/tag/Tag.example.js +13 -0
- package/lib/components/tag/Tag.example.js.map +1 -0
- package/lib/components/tag/Tag.native.js +2 -3
- package/lib/components/tag/Tag.native.js.map +1 -1
- package/lib/components/tag/index.d.ts +2 -1
- package/lib/components/tag/index.js +2 -1
- package/lib/components/tag/index.js.map +1 -1
- package/lib/components/tag/list/TagList.d.ts +2 -2
- package/lib/components/tag/list/TagList.js +3 -4
- package/lib/components/tag/list/TagList.js.map +1 -1
- package/lib/components/text/Text.example.d.ts +3 -0
- package/lib/components/text/Text.example.js +5 -0
- package/lib/components/text/Text.example.js.map +1 -0
- package/lib/components/text/Text.native.js +8 -9
- package/lib/components/text/Text.native.js.map +1 -1
- package/lib/components/text/TextEnum.d.ts +5 -5
- package/lib/components/text/TextEnum.js +4 -4
- package/lib/components/text/TextEnum.js.map +1 -1
- package/lib/components/text/index.d.ts +2 -1
- package/lib/components/text/index.js +2 -1
- package/lib/components/text/index.js.map +1 -1
- package/lib/components/textarea/Textarea.d.ts +3 -3
- package/lib/components/textarea/Textarea.example.d.ts +3 -0
- package/lib/components/textarea/Textarea.example.js +12 -0
- package/lib/components/textarea/Textarea.example.js.map +1 -0
- package/lib/components/textarea/Textarea.js +6 -11
- package/lib/components/textarea/Textarea.js.map +1 -1
- package/lib/components/textarea/Textarea.native.js +15 -29
- package/lib/components/textarea/Textarea.native.js.map +1 -1
- package/lib/components/textarea/TextareaProps.d.ts +0 -2
- package/lib/components/textarea/index.d.ts +2 -1
- package/lib/components/textarea/index.js +2 -1
- package/lib/components/textarea/index.js.map +1 -1
- package/lib/components/timeline/Timeline.d.ts +2 -2
- package/lib/components/timeline/Timeline.example.d.ts +3 -0
- package/lib/components/timeline/Timeline.example.js +34 -0
- package/lib/components/timeline/Timeline.example.js.map +1 -0
- package/lib/components/timeline/Timeline.js +4 -4
- package/lib/components/timeline/Timeline.js.map +1 -1
- package/lib/components/timeline/content/TimelineContent.js +1 -1
- package/lib/components/timeline/content/TimelineContent.js.map +1 -1
- package/lib/components/timeline/index.d.ts +2 -1
- package/lib/components/timeline/index.js +2 -1
- package/lib/components/timeline/index.js.map +1 -1
- package/lib/components/timeline/item/TimelineItem.d.ts +2 -2
- package/lib/components/timeline/item/TimelineItem.js +3 -4
- package/lib/components/timeline/item/TimelineItem.js.map +1 -1
- package/lib/components/timeline/marker/TimelineMarker.native.js +7 -7
- package/lib/components/timeline/marker/TimelineMarker.native.js.map +1 -1
- package/lib/components/title/Title.example.d.ts +3 -0
- package/lib/components/title/Title.example.js +10 -0
- package/lib/components/title/Title.example.js.map +1 -0
- package/lib/components/title/Title.js +2 -2
- package/lib/components/title/Title.js.map +1 -1
- package/lib/components/title/Title.native.js +9 -10
- package/lib/components/title/Title.native.js.map +1 -1
- package/lib/components/title/TitleEnum.d.ts +7 -7
- package/lib/components/title/TitleEnum.js +6 -6
- package/lib/components/title/TitleEnum.js.map +1 -1
- package/lib/components/title/index.d.ts +2 -1
- package/lib/components/title/index.js +2 -1
- package/lib/components/title/index.js.map +1 -1
- package/lib/components/toaster/Toaster.d.ts +11 -0
- package/lib/components/toaster/Toaster.js +93 -0
- package/lib/components/toaster/Toaster.js.map +1 -0
- package/lib/components/toaster/Toaster.native.d.ts +15 -0
- package/lib/components/toaster/Toaster.native.js +93 -0
- package/lib/components/toaster/Toaster.native.js.map +1 -0
- package/lib/components/toaster/ToasterEnum.d.ts +1 -0
- package/lib/components/toaster/ToasterEnum.js +16 -0
- package/lib/components/toaster/ToasterEnum.js.map +1 -0
- package/lib/components/toaster/ToasterProps.d.ts +27 -0
- package/lib/components/toaster/ToasterProps.js +6 -0
- package/lib/components/toaster/ToasterProps.js.map +1 -0
- package/lib/components/toaster/context/ToasterContext.d.ts +7 -0
- package/lib/components/toaster/context/ToasterContext.js +8 -0
- package/lib/components/toaster/context/ToasterContext.js.map +1 -0
- package/lib/components/toaster/context/ToasterContextProps.d.ts +27 -0
- package/lib/components/toaster/context/ToasterContextProps.js +2 -0
- package/lib/components/toaster/context/ToasterContextProps.js.map +1 -0
- package/lib/components/toaster/context/index.d.ts +2 -0
- package/lib/components/toaster/context/index.js +3 -0
- package/lib/components/toaster/context/index.js.map +1 -0
- package/lib/components/toaster/index.d.ts +3 -0
- package/lib/components/toaster/index.js +4 -0
- package/lib/components/toaster/index.js.map +1 -0
- package/lib/components/view/View.d.ts +2 -2
- package/lib/components/view/View.js +3 -3
- 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 +3 -3
- package/lib/components/view/View.native.js.map +1 -1
- package/lib/context/index.d.ts +1 -3
- package/lib/context/index.js +2 -2
- package/lib/context/index.js.map +1 -1
- package/lib/context/provider.native.d.ts +1 -4
- package/lib/context/provider.native.js +2 -2
- package/lib/context/provider.native.js.map +1 -1
- package/lib/context/providerStyled.d.ts +4 -6
- package/lib/context/providerStyled.js +20 -23
- package/lib/context/providerStyled.js.map +1 -1
- package/lib/context/providerStyled.native.d.ts +1 -4
- package/lib/context/providerStyled.native.js +2 -2
- package/lib/context/providerStyled.native.js.map +1 -1
- package/lib/context/providerStyledMangled.d.ts +10 -0
- package/lib/context/providerStyledMangled.js +14 -0
- package/lib/context/providerStyledMangled.js.map +1 -0
- package/lib/context/providerStyledMangled.native.d.ts +1 -0
- package/lib/context/providerStyledMangled.native.js +4 -0
- package/lib/context/providerStyledMangled.native.js.map +1 -0
- package/lib/context/providerTheme.d.ts +3 -5
- package/lib/context/providerTheme.js +5 -4
- package/lib/context/providerTheme.js.map +1 -1
- package/lib/hash.json +1 -1
- package/lib/helpers/hashClassesHelpers.js +2 -3
- package/lib/helpers/hashClassesHelpers.js.map +1 -1
- package/lib/objects/Typography/TypographyColor.d.ts +1 -0
- package/lib/objects/Typography/TypographyColor.js +23 -18
- package/lib/objects/Typography/TypographyColor.js.map +1 -1
- package/lib/objects/atoms/Background.d.ts +17 -2
- package/lib/objects/atoms/Background.js +14 -1
- package/lib/objects/atoms/Background.js.map +1 -1
- package/lib/objects/atoms/Text.js +3 -1
- package/lib/objects/atoms/Text.js.map +1 -1
- package/lib/objects/facets/Alert.d.ts +36 -0
- package/lib/objects/facets/Alert.js +70 -0
- package/lib/objects/facets/Alert.js.map +1 -0
- package/lib/objects/facets/Color.d.ts +5 -10
- package/lib/objects/facets/Color.js +53 -56
- package/lib/objects/facets/Color.js.map +1 -1
- package/lib/objects/facets/Variant.js +1 -1
- package/lib/objects/facets/Variant.js.map +1 -1
- package/lib/objects/facets/index.d.ts +1 -1
- package/lib/objects/facets/index.js +1 -1
- package/lib/objects/facets/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/lib/components/accordion/AccordionPropsDefaults.js +0 -45
- package/lib/components/accordion/body/AccordionBodyPropsDefaults.js +0 -52
- package/lib/components/accordion/header/AccordionHeaderPropsDefaults.js +0 -60
- package/lib/components/accordion/item/AccordionItemPropsDefaults.js +0 -68
- package/lib/components/accordion/item/OnClickCallbackDefaults.js +0 -1
- package/lib/components/alert/AlertPropsDefaults.js +0 -155
- package/lib/components/alert/ToasterStatusPropsDefaults.js +0 -227
- package/lib/components/alert/context/ToastConfigDefaults.js +0 -24
- package/lib/components/alert/context/ToastPropsDefaults.js +0 -129
- package/lib/components/autocomplete/AutoComplete.d.ts +0 -4
- package/lib/components/autocomplete/AutoComplete.js.map +0 -1
- package/lib/components/autocomplete/AutoComplete.native.js.map +0 -1
- package/lib/components/autocomplete/AutoCompleteProps.d.ts +0 -49
- package/lib/components/autocomplete/AutoCompleteProps.js.map +0 -1
- package/lib/components/autocomplete/AutoCompletePropsNativeDefaults.js +0 -752
- package/lib/components/autocomplete/AutoCompletePropsWebDefaults.js +0 -752
- package/lib/components/autocomplete/Autocomplete.helpers.js.map +0 -1
- package/lib/components/autocomplete/ItemDefaults.js +0 -10
- package/lib/components/autocomplete/ItemSelectedEventDefaults.js +0 -10
- package/lib/components/autocomplete/index.js.map +0 -1
- package/lib/components/autocomplete/item/AutoCompleteIem.native.js.map +0 -1
- package/lib/components/autocomplete/item/AutoCompleteItem.js.map +0 -1
- package/lib/components/autocomplete/item/AutoCompleteItemProps.js.map +0 -1
- package/lib/components/autocomplete/item/AutoCompleteItemPropsDefaults.js +0 -56
- package/lib/components/autocomplete/item/index.js.map +0 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.js.map +0 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js.map +0 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenuProps.js.map +0 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenuPropsDefaults.js +0 -60
- package/lib/components/autocomplete/menu/index.js.map +0 -1
- package/lib/components/autocomplete/utils/debounce.js.map +0 -1
- package/lib/components/autocomplete/utils/index.js.map +0 -1
- package/lib/components/badge/BadgePropsDefaults.js +0 -75
- package/lib/components/box/BoxPropsDefaults.js +0 -216
- package/lib/components/box/content/BoxContentPropsDefaults.js +0 -102
- package/lib/components/box/footer/BoxFooterPropsDefaults.js +0 -87
- package/lib/components/box/header/BoxHeaderPropsDefaults.js +0 -118
- package/lib/components/box/item/BoxItemPropsDefaults.js +0 -35
- package/lib/components/box/table-container/BoxTableContainerPropsDefaults.js +0 -45
- package/lib/components/breadcrumb/BreadcrumbPropsDefaults.js +0 -38
- package/lib/components/breadcrumb/BreadcrumbWebPropsDefaults.js +0 -45
- package/lib/components/breadcrumb/item/BreadcrumbItemPropsDefaults.js +0 -53
- package/lib/components/breadcrumb/item/BreadcrumbItemPropsWebDefaults.js +0 -253
- package/lib/components/button/ButtonPropsDefaults.js +0 -380
- package/lib/components/button/list/ButtonListPropsDefaults.js +0 -19
- package/lib/components/button/list/ButtonListWebPropsDefaults.js +0 -50
- package/lib/components/card/CardPropsDefaults.js +0 -220
- package/lib/components/card/content/CardContentPropsDefaults.js +0 -153
- package/lib/components/card/image/CardImagePropsDefaults.js +0 -52
- package/lib/components/checkbox/CheckboxChangeEventDefaults.js +0 -21
- package/lib/components/checkbox/CheckboxClickEventDefaults.js +0 -21
- package/lib/components/checkbox/CheckboxPropsDefaults.js +0 -200
- package/lib/components/chips/ChipsPropsDefaults.js +0 -75
- package/lib/components/chips/list/ChipsListPropsDefaults.js +0 -25
- package/lib/components/columns/ColumnsPropsDefaults.js +0 -89
- package/lib/components/columns/item/ColumnsItemPropsDefaults.js +0 -323
- package/lib/components/container/ContainerPropsDefaults.js +0 -185
- package/lib/components/countdown/CountdownPropsDefaults.js +0 -57
- package/lib/components/divider/DividerPropsDefaults.js +0 -210
- package/lib/components/fab/FabPropsDefaults.js +0 -171
- package/lib/components/hero/HeroPropsDefaults.js +0 -144
- package/lib/components/icon/IconPropsDefaults.js +0 -307
- package/lib/components/icon/circle/CircleIconPropsDefaults.js +0 -168
- package/lib/components/icon/status/StatusIconPropsDefaults.js +0 -126
- package/lib/components/icon/text/TextIconPropsDefaults.js +0 -160
- package/lib/components/image/ImagePropsDefaults.js +0 -75
- package/lib/components/input/ILengthVerifyDefaults.js +0 -16
- package/lib/components/input/IValidationRulesDefaults.js +0 -41
- package/lib/components/input/InputChangeEventNativeDefaults.js +0 -17
- package/lib/components/input/InputChangeEventWebDefaults.js +0 -21
- package/lib/components/input/InputClickEventDefaults.js +0 -19
- package/lib/components/input/InputKeyboardEventDefaults.js +0 -27
- package/lib/components/input/InputNativeEventsDefaults.js +0 -37
- package/lib/components/input/InputPropsDefaults.js +0 -654
- package/lib/components/input/InputWebEventsDefaults.js +0 -51
- package/lib/components/link/LinkPropsDefaults.js +0 -367
- package/lib/components/list/ListPropsDefaults.js +0 -53
- package/lib/components/list/item/ListItemPropsDefaults.js +0 -119
- package/lib/components/list/item/description/ListItemDescriptionPropsDefaults.js +0 -23
- package/lib/components/modal/CloseButtonPropsDefaults.js +0 -9
- package/lib/components/modal/ModalContentButtonPropsDefaults.js +0 -16
- package/lib/components/modal/ModalPropsDefaults.js +0 -325
- package/lib/components/modal/footer/ModalFooterPropsDefaults.js +0 -23
- package/lib/components/modal/title/ModalTitlePropsDefaults.js +0 -92
- package/lib/components/otp/OtpPropsDefaults.js +0 -97
- package/lib/components/pagination/PaginationPropsDefaults.js +0 -63
- package/lib/components/popover/PopoverPropsDefaults.js +0 -60
- package/lib/components/popover/PopoverWebPropsDefaults.js +0 -89
- package/lib/components/price/PricePropsDefaults.js +0 -159
- package/lib/components/product-tour/ProductTourPropsDefaults.js +0 -85
- package/lib/components/product-tour/ProductTourWebPropsDefaults.js +0 -92
- package/lib/components/progress/ProgressPropsDefaults.js +0 -95
- package/lib/components/progress/item/ProgressItemPropsDefaults.js +0 -84
- package/lib/components/progress/radial/ProgressRadialPropsDefaults.js +0 -165
- package/lib/components/progress/radial/item/ProgressRadialItemPropsDefaults.js +0 -54
- package/lib/components/radio/RadioPropsDefaults.js +0 -216
- package/lib/components/radio/list/RadioListPropsDefaults.js +0 -19
- package/lib/components/radio/list/RadioListWebPropsDefaults.js +0 -50
- package/lib/components/range/RangePropsDefaults.js +0 -123
- package/lib/components/rows/RowsPropsDefaults.js +0 -31
- package/lib/components/rows/item/RowsItemPropsDefaults.js +0 -31
- package/lib/components/scroll-view/ScrollViewPropsDefaults.js +0 -127
- package/lib/components/section/SectionPropsDefaults.js +0 -118
- package/lib/components/segment-control/SegmentControlPropsDefaults.js +0 -61
- package/lib/components/segment-control/item/SegmentControlItemPropsDefaults.js +0 -55
- package/lib/components/select/ISelectOptionDefaults.js +0 -23
- package/lib/components/select/SelectChangeEventDefaults.js +0 -37
- package/lib/components/select/SelectPropsDefaults.js +0 -187
- package/lib/components/select/option/SelectOptionPropsDefaults.js +0 -134
- package/lib/components/selector/SelectorEndDefaults.js +0 -10
- package/lib/components/selector/SelectorPropsDefaults.js +0 -128
- package/lib/components/selector/item/SelectorItemPropsDefaults.js +0 -84
- package/lib/components/spacer/SpacerPropsDefaults.js +0 -37
- package/lib/components/stepper/StepperPropsDefaults.js +0 -31
- package/lib/components/stepper/step/StepperStepPropsDefaults.js +0 -136
- package/lib/components/sticker/StickerPropsDefaults.js +0 -71
- package/lib/components/styleComponent/default/index.d.ts +0 -1
- package/lib/components/styleComponent/default/index.js +0 -2
- package/lib/components/styleComponent/default/index.js.map +0 -1
- package/lib/components/styleComponent/default/styleComponent.d.ts +0 -6
- package/lib/components/styleComponent/default/styleComponent.js +0 -7
- package/lib/components/styleComponent/default/styleComponent.js.map +0 -1
- package/lib/components/styleComponent/default/styleComponent.native.d.ts +0 -5
- package/lib/components/styleComponent/default/styleComponent.native.js +0 -6
- package/lib/components/styleComponent/default/styleComponent.native.js.map +0 -1
- package/lib/components/styleComponent/index.d.ts +0 -2
- package/lib/components/styleComponent/index.js +0 -3
- package/lib/components/styleComponent/index.js.map +0 -1
- package/lib/components/styleComponent/mangled/index.d.ts +0 -1
- package/lib/components/styleComponent/mangled/index.js +0 -2
- package/lib/components/styleComponent/mangled/index.js.map +0 -1
- package/lib/components/styleComponent/mangled/styleComponentMangled.d.ts +0 -6
- package/lib/components/styleComponent/mangled/styleComponentMangled.js +0 -7
- package/lib/components/styleComponent/mangled/styleComponentMangled.js.map +0 -1
- package/lib/components/styleComponent/mangled/styleComponentMangled.native.d.ts +0 -5
- package/lib/components/styleComponent/mangled/styleComponentMangled.native.js +0 -6
- package/lib/components/styleComponent/mangled/styleComponentMangled.native.js.map +0 -1
- package/lib/components/switch/SwitchChangeEventDefaults.js +0 -13
- package/lib/components/switch/SwitchPropsDefaults.js +0 -105
- package/lib/components/table/TablePropsDefaults.js +0 -63
- package/lib/components/table/body/TableBodyPropsDefaults.js +0 -107
- package/lib/components/table/head/TableHeadPropsDefaults.js +0 -107
- package/lib/components/table/td/TableTdPropsDefaults.js +0 -44
- package/lib/components/table/th/TableThPropsDefaults.js +0 -44
- package/lib/components/table/tr/TableTrPropsWebDefaults.js +0 -102
- package/lib/components/tabs/TabsPropsDefaults.js +0 -160
- package/lib/components/tabs/item/TabsItemPropsDefaults.js +0 -336
- package/lib/components/tag/TagClickEventDefaults.js +0 -1
- package/lib/components/tag/TagPropsDefaults.js +0 -119
- package/lib/components/tag/list/TagListPropsDefaults.js +0 -47
- package/lib/components/text/TextPropsDefaults.js +0 -192
- package/lib/components/textarea/TextareaChangeEventDefaults.js +0 -10
- package/lib/components/timeline/TimelinePropsDefaults.js +0 -39
- package/lib/components/timeline/content/TimelineContentPropsDefaults.js +0 -51
- package/lib/components/timeline/content/TimelineContentWebPropsDefaults.js +0 -58
- package/lib/components/timeline/item/TimelineItemPropsDefaults.js +0 -48
- package/lib/components/timeline/item/TimelineItemWebPropsDefaults.js +0 -55
- package/lib/components/timeline/marker/TimelineMarkerPropsDefaults.js +0 -113
- package/lib/components/timeline/marker/TimelineMarkerWebPropsDefaults.js +0 -127
- package/lib/components/title/TitlePropsDefaults.js +0 -165
- package/lib/components/view/ViewPropsDefaults.js +0 -221
- package/lib/objects/facets/Status.d.ts +0 -63
- package/lib/objects/facets/Status.js +0 -70
- package/lib/objects/facets/Status.js.map +0 -1
- /package/lib/components/{autocomplete → input/autocomplete}/AutoCompleteProps.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/Autocomplete.helpers.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/Autocomplete.helpers.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/index.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/index.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteIem.native.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteItem.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteItemProps.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/item/index.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/item/index.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenu.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenu.native.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenuProps.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenuProps.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/menu/index.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/menu/index.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/utils/debounce.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/utils/debounce.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/utils/index.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/utils/index.js +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Image } from './index';
|
|
3
|
+
const ImageExample = React.createElement(Image, { alt: 'image test', src: 'https://assets.bouyguestelecom.fr/TRILOGY/guide@2.0.7-3/assets/images/card-image.png' });
|
|
4
|
+
export default ImageExample;
|
|
5
|
+
//# sourceMappingURL=Image.example.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Image.example.js","sourceRoot":"","sources":["../../../components/image/Image.example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,YAAY,GAChB,oBAAC,KAAK,IACJ,GAAG,EAAC,YAAY,EAChB,GAAG,EAAC,sFAAsF,GAC1F,CAAA;AAEJ,eAAe,YAAY,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/image/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/image/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,YAAY,MAAM,iBAAiB,CAAA;AAE1C,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,CAAA"}
|
package/lib/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../components/index.ts"],"names":[],"mappings":"AAAA,qBAAqB;AACrB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../components/index.ts"],"names":[],"mappings":"AAAA,qBAAqB;AACrB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA;AACrB,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA;AACrB,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA;AACrB,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,OAAO,CAAA;AACrB,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA"}
|
|
@@ -1,6 +1,76 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { InputProps, InputWebEvents } from './InputProps';
|
|
3
|
+
import { AutoCompleteProps, Item } from './autocomplete';
|
|
3
4
|
export interface InputProp extends InputProps, InputWebEvents {
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Input Component
|
|
8
|
+
* @param name {string} Input name
|
|
9
|
+
* @param disabled {boolean} Disabled input
|
|
10
|
+
* @param onChange {Function} OnChange Input Event
|
|
11
|
+
* @param onFocus {Function} onFocus Input Event
|
|
12
|
+
* @param onBlur {Function} onBlur Input Event
|
|
13
|
+
* @param placeholder {string} Placeholder Input
|
|
14
|
+
* @param type {InputType} Type for input
|
|
15
|
+
* @param defaultValue {string} Default Value for Input
|
|
16
|
+
* @param hasIcon {boolean} Adding if you want icon - Default icon is defined by status
|
|
17
|
+
* @param customIcon {IconName} Adding if you want custom icon
|
|
18
|
+
* @param status {InputStatus} Input with status - (SUCCESS|WARNING|ERROR|DEFAULT)
|
|
19
|
+
* @param patternValidator {RegExp} regex validator
|
|
20
|
+
* @param customValidator {Function} custom function validator
|
|
21
|
+
* @param onStatusChange {Function} status change event
|
|
22
|
+
* @param help {string} Help for input
|
|
23
|
+
* @param ref Pass a ref for input
|
|
24
|
+
* @param onSubmit {Function} onSubmit Event
|
|
25
|
+
* @param maxLength {number} Textarea max length
|
|
26
|
+
* @param customIconLeft {IconName} Adding if you want custom icon left
|
|
27
|
+
* @param customIconRight {IconName} Adding if you want custom icon right
|
|
28
|
+
* @param securityGauge {boolean} add security gauge for input type password
|
|
29
|
+
* @param validationRules {IValidationRules} Textarea max length
|
|
30
|
+
|
|
31
|
+
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
32
|
+
* @param loading {boolean} Loading input
|
|
33
|
+
* @param value {string} Value for Input
|
|
34
|
+
* @param hovered {boolean} Hover mode
|
|
35
|
+
* @param focused {boolean} Fucus mode
|
|
36
|
+
* @param className {string} Additionnal CSS Classes
|
|
37
|
+
* @param onMouseEnter {Function} onMouseEnter Input Event
|
|
38
|
+
* @param onMouseLeave {Function} onMouseLeave Input Event
|
|
39
|
+
* @param iconClassname {string} Additional icon classes
|
|
40
|
+
* @param onKeyPress {Function} onKeyPress Input Event
|
|
41
|
+
* @param onKeyUp {Function} onKeyUp Input Event
|
|
42
|
+
* @param onIconClick {Function} onIconClick Input Event
|
|
43
|
+
* @param onClick {Function} onClick Input Event
|
|
44
|
+
* @param forceControl {boolean} Force the control of the input value
|
|
45
|
+
* @param minLength {number} Textarea min length
|
|
46
|
+
* @param accessibilityLabel {string} Accessibility label
|
|
47
|
+
* @param testId {string} Test Id for Test Integration
|
|
48
|
+
* @param required {boolean} Required input
|
|
49
|
+
* - -------------------------- NATIVE PROPERTIES -------------------------------
|
|
50
|
+
* @param autoCompleteType {InputAutoCompleteType} Auto complete input type
|
|
51
|
+
*/
|
|
52
|
+
declare const Input: {
|
|
53
|
+
({ forceControl, className, disabled, onChange, onKeyPress, onKeyUp, onIconClick, onClick, onFocus, onBlur, patternValidator, onMouseEnter, onMouseLeave, name, placeholder, type, defaultValue, value, loading, focused, hasIcon, customIcon, status, help, iconClassname, reference, onStatusChange, customValidator, onSubmit, minLength, maxLength, testId, accessibilityLabel, autoCompleteType, customIconLeft, customIconRight, securityGauge, validationRules, required, ...others }: InputProp): JSX.Element;
|
|
54
|
+
/**
|
|
55
|
+
* AutoComplete Component
|
|
56
|
+
* @param placeholder {string} placeholder for input
|
|
57
|
+
* @param defaultValue {string} Default Value for Input
|
|
58
|
+
* @param data {string[]} Datas AutoComplete list Item
|
|
59
|
+
* @param value {string} Value of Input
|
|
60
|
+
* @param onChange {Function} OnChange Input Event
|
|
61
|
+
* @param onFocus {Function} OnFocus Input Event
|
|
62
|
+
* @param children {Function} Custom Component for dropdown list
|
|
63
|
+
* @param displayMenu {boolean} Display Autocomplete Menu (default: true)
|
|
64
|
+
* @param matching {Function} matching function
|
|
65
|
+
* - ------------------ WEB PROPERTIES -----------------------
|
|
66
|
+
* @param classNameMenu {string} Additionnal CSS Classes for Menu
|
|
67
|
+
* @param absoluteMenu {boolean} Absolute position for Menu
|
|
68
|
+
* @param fullwidthMenu {boolean} Fullwidth size for Menu
|
|
69
|
+
* @param className {string} Additionnal CSS Classes
|
|
70
|
+
* @param onItemSelected {Function} OnSelectedItemList event
|
|
71
|
+
* @param customIcon {string} Additional icon classes
|
|
72
|
+
* @param debounceSuggestionsTimeout {number} Timeout for getSuggestions debounce
|
|
73
|
+
*/
|
|
74
|
+
AutoComplete<T extends string | Item<unknown> = string>(props: AutoCompleteProps<T>): React.JSX.Element;
|
|
75
|
+
};
|
|
76
|
+
export default Input;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Input } from './index';
|
|
3
|
+
const InputExample = React.createElement(Input, { customIconRight: 'tri-search', hasIcon: true, help: 'this is my help message', placeholder: 'This is my placeholder', status: 'success', type: 'text' });
|
|
4
|
+
export default InputExample;
|
|
5
|
+
//# sourceMappingURL=Input.example.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.example.js","sourceRoot":"","sources":["../../../components/input/Input.example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,YAAY,GAEhB,oBAAC,KAAK,IACJ,eAAe,EAAC,YAAY,EAC5B,OAAO,QACP,IAAI,EAAC,yBAAyB,EAC9B,WAAW,EAAC,wBAAwB,EACpC,MAAM,EAAC,SAAS,EAChB,IAAI,EAAC,MAAM,GACX,CAAA;AAEJ,eAAe,YAAY,CAAA"}
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import clsx from 'clsx';
|
|
2
|
+
import React, { useCallback, useEffect, useState } from 'react';
|
|
2
3
|
import { useTrilogyContext } from '../../context';
|
|
3
4
|
import { hashClass } from '../../helpers';
|
|
4
|
-
import { TypographyColor } from '../../objects';
|
|
5
5
|
import { has, is } from '../../services';
|
|
6
|
-
import clsx from 'clsx';
|
|
7
|
-
import React, { forwardRef, useCallback, useEffect, useState } from 'react';
|
|
8
6
|
import { Icon, IconColor, IconName, IconSize } from '../icon';
|
|
7
|
+
import { Text } from '../../components/text';
|
|
9
8
|
import { InputStatus, InputType } from './InputEnum';
|
|
9
|
+
import { AutoComplete } from './autocomplete';
|
|
10
10
|
import InputGauge from './gauge/InputGauge';
|
|
11
11
|
/**
|
|
12
12
|
* Input Component
|
|
13
13
|
* @param name {string} Input name
|
|
14
|
-
* @param label {string} Label for input
|
|
15
|
-
* @param sample {string} Sample for input (below label)
|
|
16
14
|
* @param disabled {boolean} Disabled input
|
|
17
15
|
* @param onChange {Function} OnChange Input Event
|
|
18
16
|
* @param onFocus {Function} onFocus Input Event
|
|
@@ -38,6 +36,7 @@ import InputGauge from './gauge/InputGauge';
|
|
|
38
36
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
39
37
|
* @param loading {boolean} Loading input
|
|
40
38
|
* @param value {string} Value for Input
|
|
39
|
+
* @param hovered {boolean} Hover mode
|
|
41
40
|
* @param focused {boolean} Fucus mode
|
|
42
41
|
* @param className {string} Additionnal CSS Classes
|
|
43
42
|
* @param onMouseEnter {Function} onMouseEnter Input Event
|
|
@@ -55,7 +54,7 @@ import InputGauge from './gauge/InputGauge';
|
|
|
55
54
|
* - -------------------------- NATIVE PROPERTIES -------------------------------
|
|
56
55
|
* @param autoCompleteType {InputAutoCompleteType} Auto complete input type
|
|
57
56
|
*/
|
|
58
|
-
const Input = ({ forceControl,
|
|
57
|
+
const Input = ({ forceControl, className, disabled, onChange, onKeyPress, onKeyUp, onIconClick, onClick, onFocus, onBlur, patternValidator, onMouseEnter, onMouseLeave, name, placeholder, type = 'text', defaultValue, value, loading, focused, hasIcon, customIcon, status, help, iconClassname, reference, onStatusChange, customValidator, onSubmit, minLength, maxLength, testId, accessibilityLabel, autoCompleteType, customIconLeft, customIconRight, securityGauge, validationRules, required, ...others }) => {
|
|
59
58
|
const { styled } = useTrilogyContext();
|
|
60
59
|
const hasPlaceholder = placeholder !== undefined && placeholder.length > 0;
|
|
61
60
|
const inputIcon = new Map();
|
|
@@ -82,15 +81,14 @@ const Input = ({ forceControl, label, sample, className, disabled, onChange, onK
|
|
|
82
81
|
inputName: target.name,
|
|
83
82
|
inputValue: target.value,
|
|
84
83
|
inputKeyCode: e.keyCode,
|
|
85
|
-
target,
|
|
86
84
|
preventDefault: () => e.preventDefault(),
|
|
87
85
|
};
|
|
88
86
|
}, []);
|
|
89
87
|
const IconWrapper = useCallback(({ className, name, color, closeIconSearch, onPress }) => {
|
|
90
|
-
return (React.createElement("div", { ...
|
|
88
|
+
return (React.createElement("div", { ...type === "password" && { "data-show-pwd": true }, onClick: () => {
|
|
91
89
|
onPress && onPress();
|
|
92
90
|
if (onIconClick) {
|
|
93
|
-
onIconClick({ inputName: name !== null && name !== void 0 ? name : '', inputValue: _value
|
|
91
|
+
onIconClick({ inputName: name !== null && name !== void 0 ? name : '', inputValue: _value });
|
|
94
92
|
}
|
|
95
93
|
} },
|
|
96
94
|
React.createElement(Icon, { className: className, name: name, size: IconSize.SMALL, color: color }),
|
|
@@ -125,19 +123,13 @@ const Input = ({ forceControl, label, sample, className, disabled, onChange, onK
|
|
|
125
123
|
onStatusChange(localStatus);
|
|
126
124
|
}, [localStatus]);
|
|
127
125
|
return (React.createElement("div", { className: wrapperClasses, "data-has-gauge": securityGauge ? true : undefined },
|
|
128
|
-
!hasPlaceholder && (React.createElement("label", { className: 'input-label' },
|
|
129
|
-
label,
|
|
130
|
-
' ',
|
|
131
|
-
label && required && (React.createElement(Text, { markup: TextMarkup.SPAN, typo: TypographyColor.TEXT_ERROR }, "*")))),
|
|
132
|
-
!hasPlaceholder && label && sample && (React.createElement(Text, { className: 'input-sample', level: TextLevels.TWO, typo: TypographyColor.TEXT_DISABLED }, sample)),
|
|
133
126
|
React.createElement("div", { className: controlClasses },
|
|
134
|
-
React.createElement("input", { required: required, role: 'textbox', ...others, "data-testid": testId, "aria-label": accessibilityLabel, type: inputType, className: classes, value: _value, defaultValue: defaultValue, name: name, onSubmit: onSubmit, ref:
|
|
127
|
+
React.createElement("input", { required: required, role: 'textbox', ...others, "data-testid": testId, "aria-label": accessibilityLabel, type: inputType, className: classes, value: _value, defaultValue: defaultValue, name: name, onSubmit: onSubmit, ref: reference, disabled: disabled, minLength: minLength, maxLength: maxLength, autoComplete: autoCompleteType, onKeyUp: (e) => onKeyUp && onKeyUp(onPressKey(e)), onKeyPress: (e) => onKeyPress && onKeyPress(onPressKey(e)), onMouseEnter: (e) => onMouseEnter === null || onMouseEnter === void 0 ? void 0 : onMouseEnter(e), onMouseLeave: (e) => onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave(e), placeholder: placeholder, onClick: (e) => {
|
|
135
128
|
const target = e.target;
|
|
136
129
|
if (onClick) {
|
|
137
130
|
onClick({
|
|
138
131
|
inputName: target.name,
|
|
139
132
|
inputValue: target.value,
|
|
140
|
-
target: target,
|
|
141
133
|
});
|
|
142
134
|
}
|
|
143
135
|
}, onChange: (e) => {
|
|
@@ -162,7 +154,6 @@ const Input = ({ forceControl, label, sample, className, disabled, onChange, onK
|
|
|
162
154
|
inputName: e.target.name,
|
|
163
155
|
inputValue: e.target.value,
|
|
164
156
|
inputSelectionStart: e.target.selectionStart,
|
|
165
|
-
target: e.target,
|
|
166
157
|
});
|
|
167
158
|
}
|
|
168
159
|
}, onFocus: (e) => {
|
|
@@ -193,5 +184,29 @@ const Input = ({ forceControl, label, sample, className, disabled, onChange, onK
|
|
|
193
184
|
help && React.createElement(Text, { className: helpClasses }, help),
|
|
194
185
|
securityGauge && type === 'password' && (React.createElement(InputGauge, { validationRules: validationRules, styled: styled, inputValue: _value }))));
|
|
195
186
|
};
|
|
196
|
-
|
|
187
|
+
/**
|
|
188
|
+
* AutoComplete Component
|
|
189
|
+
* @param placeholder {string} placeholder for input
|
|
190
|
+
* @param defaultValue {string} Default Value for Input
|
|
191
|
+
* @param data {string[]} Datas AutoComplete list Item
|
|
192
|
+
* @param value {string} Value of Input
|
|
193
|
+
* @param onChange {Function} OnChange Input Event
|
|
194
|
+
* @param onFocus {Function} OnFocus Input Event
|
|
195
|
+
* @param children {Function} Custom Component for dropdown list
|
|
196
|
+
* @param displayMenu {boolean} Display Autocomplete Menu (default: true)
|
|
197
|
+
* @param matching {Function} matching function
|
|
198
|
+
* - ------------------ WEB PROPERTIES -----------------------
|
|
199
|
+
* @param classNameMenu {string} Additionnal CSS Classes for Menu
|
|
200
|
+
* @param absoluteMenu {boolean} Absolute position for Menu
|
|
201
|
+
* @param fullwidthMenu {boolean} Fullwidth size for Menu
|
|
202
|
+
* @param className {string} Additionnal CSS Classes
|
|
203
|
+
* @param onItemSelected {Function} OnSelectedItemList event
|
|
204
|
+
* @param customIcon {string} Additional icon classes
|
|
205
|
+
* @param debounceSuggestionsTimeout {number} Timeout for getSuggestions debounce
|
|
206
|
+
*/
|
|
207
|
+
Input.AutoComplete = (props) => {
|
|
208
|
+
const newProps = { ...props, Input };
|
|
209
|
+
return React.createElement(AutoComplete, { ...newProps });
|
|
210
|
+
};
|
|
211
|
+
export default Input;
|
|
197
212
|
//# sourceMappingURL=Input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../components/input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../components/input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAkB,QAAQ,EAAE,MAAM,SAAS,CAAA;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,WAAW,EAAqB,SAAS,EAAmB,MAAM,aAAa,CAAA;AAExF,OAAO,EAAE,YAAY,EAA2B,MAAM,gBAAgB,CAAA;AACtE,OAAO,UAAU,MAAM,oBAAoB,CAAA;AAY3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,KAAK,GAAG,CAAC,EACb,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,OAAO,EACP,WAAW,EACX,OAAO,EACP,OAAO,EACP,MAAM,EACN,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,IAAI,EACJ,WAAW,EACX,IAAI,GAAG,MAAM,EACb,YAAY,EACZ,KAAK,EACL,OAAO,EACP,OAAO,EACP,OAAO,EACP,UAAU,EACV,MAAM,EACN,IAAI,EACJ,aAAa,EACb,SAAS,EACT,cAAc,EACd,eAAe,EACf,QAAQ,E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ACL,IAAI,IAAI,oBAAC,IAAI,IAAC,SAAS,EAAE,WAAW,IAAG,IAAI,CAAQ;QAEnD,aAAa,IAAI,IAAI,KAAK,UAAU,IAAI,CACvC,oBAAC,UAAU,IAAC,eAAe,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAI,CACrF,CACG,CACP,CAAA;AACH,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,KAAK,CAAC,YAAY,GAAG,CAA4C,KAA2B,EAAE,EAAE;IAC9F,MAAM,QAAQ,GAAG,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,CAAA;IACpC,OAAO,oBAAC,YAAY,OAAK,QAAQ,GAAI,CAAA;AACvC,CAAC,CAAA;AACD,eAAe,KAAK,CAAA"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ComponentName } from '../../components/enumsComponentsName';
|
|
3
3
|
import { InputNativeEvents, InputProps } from './InputProps';
|
|
4
|
+
import { AutoCompleteProps } from './autocomplete';
|
|
4
5
|
export interface InputNativeProps extends InputProps, InputNativeEvents {
|
|
5
6
|
}
|
|
6
7
|
/**
|
|
7
8
|
* Input Native Component
|
|
8
9
|
* @param name {string} Input name
|
|
9
|
-
* @param label {string} Label for input
|
|
10
|
-
* @param sample {string} Sample for input (below label)
|
|
11
10
|
* @param disabled {boolean} Disabled input
|
|
12
11
|
* @param onChange {Function} OnChange Input Event
|
|
13
12
|
* @param onFocus {Function} OnFocus Input Event
|
|
@@ -35,7 +34,8 @@ export interface InputNativeProps extends InputProps, InputNativeEvents {
|
|
|
35
34
|
* @param accessibilityActivate {boolean}
|
|
36
35
|
*/
|
|
37
36
|
declare const Input: {
|
|
38
|
-
({ defaultValue, name,
|
|
37
|
+
({ defaultValue, name, onChange, onFocus, onBlur, disabled, status, help, placeholder, type, hasIcon, customIcon, reference, keyboardStyle, autoCapitalize, autoCorrect, autoCompleteType, textContentType, keyboardType, keyType, onSubmit, maxLength, testId, accessibilityLabel, customIconRight, customIconLeft, securityGauge, validationRules, onIconClick, required, ...others }: InputNativeProps): JSX.Element;
|
|
39
38
|
displayName: ComponentName;
|
|
39
|
+
AutoComplete(props: AutoCompleteProps): React.JSX.Element;
|
|
40
40
|
};
|
|
41
41
|
export default Input;
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import { ComponentName } from '../../components/enumsComponentsName';
|
|
2
|
-
import { Icon, IconName, IconSize } from '../../components/icon';
|
|
3
|
-
import { Text, TextLevels } from '../../components/text';
|
|
4
|
-
import { TypographyColor } from '../../objects';
|
|
5
|
-
import { Alignable } from '../../objects/facets/Alignable';
|
|
6
|
-
import { TrilogyColor, getColorStyle } from '../../objects/facets/Color';
|
|
7
|
-
import { StatusState } from '../../objects/facets/Status';
|
|
8
1
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
9
2
|
import { Animated, Keyboard, Platform, StyleSheet, TextInput, TouchableOpacity, View, } from 'react-native';
|
|
10
|
-
import {
|
|
3
|
+
import { AlertState, getAlertStyle } from '../../objects/facets/Alert';
|
|
4
|
+
import { Alignable } from '../../objects/facets/Alignable';
|
|
5
|
+
import { TrilogyColor, getColorStyle } from '../../objects/facets/Color';
|
|
6
|
+
import { ComponentName } from '../../components/enumsComponentsName';
|
|
7
|
+
import { Icon, IconName, IconSize } from '../../components/icon';
|
|
8
|
+
import { Text } from '../../components/text';
|
|
11
9
|
import { InputAutoCapitalize, InputKeyboardAppearance, InputKeyboardType, InputStatus, InputTextContentType, InputType, } from './InputEnum';
|
|
10
|
+
import AutoComplete from './autocomplete/AutoComplete.native';
|
|
12
11
|
import InputGauge from './gauge/InputGauge.native';
|
|
13
12
|
/**
|
|
14
13
|
* Input Native Component
|
|
15
14
|
* @param name {string} Input name
|
|
16
|
-
* @param label {string} Label for input
|
|
17
|
-
* @param sample {string} Sample for input (below label)
|
|
18
15
|
* @param disabled {boolean} Disabled input
|
|
19
16
|
* @param onChange {Function} OnChange Input Event
|
|
20
17
|
* @param onFocus {Function} OnFocus Input Event
|
|
@@ -41,7 +38,9 @@ import InputGauge from './gauge/InputGauge.native';
|
|
|
41
38
|
* @param required {boolean} Required input
|
|
42
39
|
* @param accessibilityActivate {boolean}
|
|
43
40
|
*/
|
|
44
|
-
const Input = ({ defaultValue, name,
|
|
41
|
+
const Input = ({ defaultValue, name, onChange, onFocus, onBlur, disabled, status, help, placeholder, type, hasIcon, customIcon, reference, keyboardStyle, autoCapitalize, autoCorrect, autoCompleteType, textContentType, keyboardType, keyType, onSubmit, maxLength, testId, accessibilityLabel, customIconRight, customIconLeft, securityGauge, validationRules, onIconClick,
|
|
42
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
43
|
+
required, ...others }) => {
|
|
45
44
|
const inputTestId = testId ? testId : placeholder ? placeholder : 'NotSpecified';
|
|
46
45
|
const inputAccessibilityLabel = accessibilityLabel ? accessibilityLabel : placeholder ? placeholder : 'NotSpecified';
|
|
47
46
|
const animationDuration = 200;
|
|
@@ -158,9 +157,9 @@ const Input = ({ defaultValue, name, label, sample, onChange, onFocus, onBlur, d
|
|
|
158
157
|
},
|
|
159
158
|
help: {
|
|
160
159
|
fontSize: 12,
|
|
161
|
-
color: (status && status === 'success' &&
|
|
162
|
-
(status && status === 'warning' &&
|
|
163
|
-
(status && status === 'error' &&
|
|
160
|
+
color: (status && status === 'success' && getAlertStyle(AlertState.SUCCESS)) ||
|
|
161
|
+
(status && status === 'warning' && getAlertStyle(AlertState.WARNING)) ||
|
|
162
|
+
(status && status === 'error' && getAlertStyle(AlertState.ERROR)) ||
|
|
164
163
|
(status && status === 'default' && inputColor) ||
|
|
165
164
|
(disabled && getColorStyle(TrilogyColor.DISABLED)) ||
|
|
166
165
|
inputColor,
|
|
@@ -171,15 +170,15 @@ const Input = ({ defaultValue, name, label, sample, onChange, onFocus, onBlur, d
|
|
|
171
170
|
position: 'relative',
|
|
172
171
|
justifyContent: 'center',
|
|
173
172
|
alignSelf: 'stretch',
|
|
174
|
-
backgroundColor: disabled ? getColorStyle(TrilogyColor.
|
|
173
|
+
backgroundColor: disabled ? getColorStyle(TrilogyColor.DISABLED, 1) : getColorStyle(TrilogyColor.BACKGROUND),
|
|
175
174
|
borderWidth: isFocused ? 2 : 1,
|
|
176
175
|
borderRadius: 3,
|
|
177
|
-
borderColor: (status && status === 'success' &&
|
|
178
|
-
(status && status === 'warning' &&
|
|
179
|
-
(status && status === 'error' &&
|
|
176
|
+
borderColor: (status && status === 'success' && getAlertStyle(AlertState.SUCCESS)) ||
|
|
177
|
+
(status && status === 'warning' && getAlertStyle(AlertState.WARNING)) ||
|
|
178
|
+
(status && status === 'error' && getAlertStyle(AlertState.ERROR)) ||
|
|
180
179
|
(status && status === 'default' && inputColor) ||
|
|
181
180
|
(isFocused && getColorStyle(TrilogyColor.MAIN)) ||
|
|
182
|
-
getColorStyle(TrilogyColor.
|
|
181
|
+
getColorStyle(TrilogyColor.FONT, 1),
|
|
183
182
|
height: 46,
|
|
184
183
|
width: '100%',
|
|
185
184
|
},
|
|
@@ -207,12 +206,12 @@ const Input = ({ defaultValue, name, label, sample, onChange, onFocus, onBlur, d
|
|
|
207
206
|
inputIcon: {
|
|
208
207
|
position: 'absolute',
|
|
209
208
|
right: 10,
|
|
210
|
-
top:
|
|
209
|
+
top: !value ? -33 : -38,
|
|
211
210
|
},
|
|
212
211
|
inputIconLeft: {
|
|
213
212
|
position: 'absolute',
|
|
214
213
|
left: 10,
|
|
215
|
-
top:
|
|
214
|
+
top: !value ? -33 : -38,
|
|
216
215
|
},
|
|
217
216
|
text: {
|
|
218
217
|
zIndex: -1,
|
|
@@ -232,18 +231,9 @@ const Input = ({ defaultValue, name, label, sample, onChange, onFocus, onBlur, d
|
|
|
232
231
|
},
|
|
233
232
|
});
|
|
234
233
|
return (React.createElement(View, { style: { width: '100%' }, accessible: !!inputAccessibilityLabel, accessibilityLabel: inputAccessibilityLabel, testID: inputTestId },
|
|
235
|
-
!dynamicPlaceholder && label && (React.createElement(React.Fragment, null,
|
|
236
|
-
React.createElement(Text, { typo: TypographyColor.TEXT_DISABLED },
|
|
237
|
-
label,
|
|
238
|
-
" ",
|
|
239
|
-
label && required && React.createElement(Text, { typo: TypographyColor.TEXT_ERROR }, "*")),
|
|
240
|
-
React.createElement(Spacer, { size: SpacerSize.THREE }))),
|
|
241
|
-
!dynamicPlaceholder && label && sample && (React.createElement(React.Fragment, null,
|
|
242
|
-
React.createElement(Text, { level: TextLevels.THREE, typo: TypographyColor.TEXT_DISABLED }, sample),
|
|
243
|
-
React.createElement(Spacer, { size: SpacerSize.THREE }))),
|
|
244
234
|
React.createElement(View, { testID: 'input-wrapper-id', style: styles.inputWrapper },
|
|
245
235
|
dynamicPlaceholder && type !== InputType.SEARCH && (React.createElement(Animated.Text, { style: [styles.dynamicPlaceholder, { top: animation, fontSize: sizeAnimation }] }, placeholder)),
|
|
246
|
-
React.createElement(TextInput, { testID: 'input-id', clearTextOnFocus: false, secureTextEntry: !!(type && type === InputType.PASSWORD && iconPassword === IconName.EYE), value: value, editable: !disabled, 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) => {
|
|
236
|
+
React.createElement(TextInput, { testID: 'input-id', clearTextOnFocus: false, secureTextEntry: !!(type && type === InputType.PASSWORD && 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) => {
|
|
247
237
|
handleChange(text);
|
|
248
238
|
if (onChange) {
|
|
249
239
|
onChange({
|
|
@@ -258,7 +248,7 @@ const Input = ({ defaultValue, name, label, sample, onChange, onFocus, onBlur, d
|
|
|
258
248
|
}, onBlur: (e) => {
|
|
259
249
|
setIsFocused(false);
|
|
260
250
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
|
|
261
|
-
}, placeholder: placeholder, placeholderTextColor: disabled ? getColorStyle(TrilogyColor.DISABLED) : getColorStyle(TrilogyColor.
|
|
251
|
+
}, placeholder: placeholder, placeholderTextColor: disabled ? getColorStyle(TrilogyColor.DISABLED) : getColorStyle(TrilogyColor.MAIN), style: styles.input, ...others }),
|
|
262
252
|
type === 'email' && (React.createElement(Text, { style: styles.text },
|
|
263
253
|
value,
|
|
264
254
|
React.createElement(Text, { style: styles.domain }, email))),
|
|
@@ -266,29 +256,28 @@ const Input = ({ defaultValue, name, label, sample, onChange, onFocus, onBlur, d
|
|
|
266
256
|
((status && status !== InputStatus.DEFAULT) || customIconLeft) &&
|
|
267
257
|
type !== InputType.PASSWORD &&
|
|
268
258
|
!customIcon && (React.createElement(Icon, { style: styles.inputIconLeft, align: Alignable.ALIGNED_START, name: (customIconLeft && customIconLeft.replace('tri-', '').replace('ui-', '')) ||
|
|
269
|
-
inputIcon.get(status).replace('tri-', '').replace('ui-', ''), size: IconSize.SMALL, color: (status && status === 'success' &&
|
|
270
|
-
(status && status === 'warning' &&
|
|
271
|
-
(status && status === 'error' &&
|
|
259
|
+
inputIcon.get(status).replace('tri-', '').replace('ui-', ''), size: IconSize.SMALL, color: (status && status === 'success' && (AlertState.SUCCESS)) ||
|
|
260
|
+
(status && status === 'warning' && (AlertState.WARNING)) ||
|
|
261
|
+
(status && status === 'error' && (AlertState.ERROR)) ||
|
|
272
262
|
(status && status === 'default' && TrilogyColor.MAIN) ||
|
|
273
|
-
(disabled && TrilogyColor.DISABLED) ||
|
|
263
|
+
(disabled && (TrilogyColor.DISABLED)) ||
|
|
274
264
|
TrilogyColor.MAIN })),
|
|
275
265
|
hasIcon &&
|
|
276
266
|
type !== InputType.SEARCH &&
|
|
277
267
|
((status && status !== InputStatus.DEFAULT) || customIcon || customIconRight) &&
|
|
278
|
-
type !== InputType.PASSWORD && (React.createElement(TouchableOpacity, { style: styles.inputContainer, activeOpacity: onIconClick ? 0.2 : 1, onPress: (
|
|
268
|
+
type !== InputType.PASSWORD && (React.createElement(TouchableOpacity, { style: styles.inputContainer, activeOpacity: onIconClick ? 0.2 : 1, onPress: () => {
|
|
279
269
|
onIconClick === null || onIconClick === void 0 ? void 0 : onIconClick({
|
|
280
270
|
inputName: (name && name) || '',
|
|
281
271
|
inputValue: value,
|
|
282
|
-
target: e,
|
|
283
272
|
});
|
|
284
273
|
} },
|
|
285
274
|
React.createElement(Icon, { testId: 'icon-status-id', align: Alignable.ALIGNED_CENTER, name: (customIcon && customIcon.replace('tri-', '').replace('ui-', '')) ||
|
|
286
275
|
(customIconRight && customIconRight.replace('tri-', '').replace('ui-', '')) ||
|
|
287
|
-
inputIcon.get(status).replace('tri-', '').replace('ui-', ''), size: IconSize.SMALL, color: (status && status === 'success' &&
|
|
288
|
-
(status && status === 'warning' &&
|
|
289
|
-
(status && status === 'error' &&
|
|
276
|
+
inputIcon.get(status).replace('tri-', '').replace('ui-', ''), size: IconSize.SMALL, color: (status && status === 'success' && (AlertState.SUCCESS)) ||
|
|
277
|
+
(status && status === 'warning' && (AlertState.WARNING)) ||
|
|
278
|
+
(status && status === 'error' && (AlertState.ERROR)) ||
|
|
290
279
|
(status && status === 'default' && TrilogyColor.MAIN) ||
|
|
291
|
-
(disabled && TrilogyColor.DISABLED) ||
|
|
280
|
+
(disabled && (TrilogyColor.DISABLED)) ||
|
|
292
281
|
TrilogyColor.MAIN }))),
|
|
293
282
|
hasIcon && type === InputType.PASSWORD && (React.createElement(React.Fragment, null,
|
|
294
283
|
hasIcon && customIconLeft && (React.createElement(View, { style: [{ paddingLeft: 10 }, styles.inputContainerLeft] },
|
|
@@ -305,15 +294,15 @@ const Input = ({ defaultValue, name, label, sample, onChange, onFocus, onBlur, d
|
|
|
305
294
|
setIconPassword(IconName.EYE);
|
|
306
295
|
}
|
|
307
296
|
} },
|
|
308
|
-
React.createElement(Icon, { testId: 'password-id', align: Alignable.ALIGNED_CENTER, name: iconPassword, size: IconSize.SMALL, color: (status && status === 'success' &&
|
|
309
|
-
(status && status === 'warning' &&
|
|
310
|
-
(status && status === 'error' &&
|
|
297
|
+
React.createElement(Icon, { testId: 'password-id', align: Alignable.ALIGNED_CENTER, name: iconPassword, size: IconSize.SMALL, color: (status && status === 'success' && (AlertState.SUCCESS)) ||
|
|
298
|
+
(status && status === 'warning' && (AlertState.WARNING)) ||
|
|
299
|
+
(status && status === 'error' && (AlertState.ERROR)) ||
|
|
311
300
|
(status && status === 'default' && TrilogyColor.MAIN) ||
|
|
312
|
-
(disabled && TrilogyColor.DISABLED) ||
|
|
301
|
+
(disabled && (TrilogyColor.DISABLED)) ||
|
|
313
302
|
TrilogyColor.MAIN })))),
|
|
314
303
|
type === InputType.SEARCH && !status && (React.createElement(React.Fragment, null,
|
|
315
304
|
React.createElement(View, { style: styles.inputContainerLeft },
|
|
316
|
-
React.createElement(Icon, { align: Alignable.ALIGNED_CENTER, name: IconName.SEARCH, size: IconSize.SMALL, color: disabled ? TrilogyColor.DISABLED : TrilogyColor.NEUTRAL })),
|
|
305
|
+
React.createElement(Icon, { align: Alignable.ALIGNED_CENTER, name: IconName.SEARCH, size: IconSize.SMALL, color: disabled ? (TrilogyColor.DISABLED) : (TrilogyColor.NEUTRAL) })),
|
|
317
306
|
value.length > 0 && (React.createElement(TouchableOpacity, { testID: 'search-id', style: styles.inputContainerRight, onPressIn: () => {
|
|
318
307
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
319
308
|
inputName: (name && name) || '',
|
|
@@ -326,10 +315,14 @@ const Input = ({ defaultValue, name, label, sample, onChange, onFocus, onBlur, d
|
|
|
326
315
|
});
|
|
327
316
|
setValue('');
|
|
328
317
|
} },
|
|
329
|
-
React.createElement(Icon, { align: Alignable.ALIGNED_CENTER, name: IconName.TIMES_CIRCLE, size: IconSize.SMALL, color: disabled ? TrilogyColor.DISABLED : TrilogyColor.NEUTRAL })))))),
|
|
318
|
+
React.createElement(Icon, { align: Alignable.ALIGNED_CENTER, name: IconName.TIMES_CIRCLE, size: IconSize.SMALL, color: disabled ? (TrilogyColor.DISABLED) : (TrilogyColor.NEUTRAL) })))))),
|
|
330
319
|
help && (React.createElement(Text, { testId: 'help-id', style: styles.help }, help)),
|
|
331
320
|
type === InputType.PASSWORD && securityGauge && (React.createElement(InputGauge, { validationRules: validationRules, inputValue: value }))));
|
|
332
321
|
};
|
|
333
322
|
Input.displayName = ComponentName.Input;
|
|
323
|
+
Input.AutoComplete = (props) => {
|
|
324
|
+
const newProps = { ...props, Input };
|
|
325
|
+
return React.createElement(AutoComplete, { ...newProps });
|
|
326
|
+
};
|
|
334
327
|
export default Input;
|
|
335
328
|
//# sourceMappingURL=Input.native.js.map
|