@trilogy-ds/react 0.0.1-beta-110 → 0.0.1-beta-112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 -2
- package/lib/components/accordion/body/AccordionBody.js +1 -2
- package/lib/components/accordion/body/AccordionBody.js.map +1 -1
- package/lib/components/accordion/body/AccordionBody.native.d.ts +1 -1
- package/lib/components/accordion/body/AccordionBody.native.js +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 +7 -7
- 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 +14 -14
- package/lib/components/alert/Alert.js.map +1 -1
- package/lib/components/alert/Alert.native.d.ts +6 -7
- package/lib/components/alert/Alert.native.js +15 -14
- 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 -4
- 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 -9
- package/lib/components/badge/Badge.js.map +1 -1
- package/lib/components/badge/Badge.native.d.ts +3 -4
- package/lib/components/badge/Badge.native.js +11 -9
- 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 +4 -3
- 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/footer/BoxFooter.d.ts +1 -2
- package/lib/components/box/footer/BoxFooter.js +1 -2
- package/lib/components/box/footer/BoxFooter.js.map +1 -1
- package/lib/components/box/footer/BoxFooter.native.d.ts +1 -1
- package/lib/components/box/footer/BoxFooter.native.js +1 -1
- package/lib/components/box/header/BoxHeader.d.ts +1 -3
- package/lib/components/box/header/BoxHeader.js +1 -3
- package/lib/components/box/header/BoxHeader.js.map +1 -1
- package/lib/components/box/header/BoxHeader.native.d.ts +1 -1
- package/lib/components/box/header/BoxHeader.native.js +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/box/item/BoxItem.d.ts +1 -2
- package/lib/components/box/item/BoxItem.js +1 -2
- package/lib/components/box/item/BoxItem.js.map +1 -1
- package/lib/components/box/item/BoxItem.native.d.ts +1 -1
- package/lib/components/box/item/BoxItem.native.js +1 -1
- package/lib/components/box/table-container/BoxTableContainer.d.ts +1 -3
- package/lib/components/box/table-container/BoxTableContainer.js +1 -3
- package/lib/components/box/table-container/BoxTableContainer.js.map +1 -1
- package/lib/components/box/table-container/BoxTableContainer.native.d.ts +1 -1
- package/lib/components/box/table-container/BoxTableContainer.native.js +1 -1
- package/lib/components/breadcrumb/Breadcrumb.d.ts +2 -3
- 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 -5
- 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/breadcrumb/item/BreadcrumbItem.d.ts +0 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.js +0 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.js.map +1 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.d.ts +0 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +0 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.js.map +1 -1
- package/lib/components/button/Button.d.ts +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.js +1 -1
- 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 -10
- 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 -13
- package/lib/components/card/Card.js.map +1 -1
- package/lib/components/card/Card.native.d.ts +3 -2
- package/lib/components/card/Card.native.js +8 -7
- package/lib/components/card/Card.native.js.map +1 -1
- package/lib/components/card/content/CardContent.d.ts +0 -1
- package/lib/components/card/content/CardContent.js +0 -1
- package/lib/components/card/content/CardContent.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 +2 -2
- package/lib/components/card/image/CardImage.js +2 -2
- 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.d.ts +0 -3
- 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.js +0 -3
- package/lib/components/checkbox/Checkbox.js.map +1 -1
- package/lib/components/checkbox/Checkbox.native.d.ts +0 -5
- package/lib/components/checkbox/Checkbox.native.js +8 -13
- 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 -2
- 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 -5
- 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 +7 -5
- 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 +10 -9
- package/lib/components/columns/Columns.js.map +1 -1
- package/lib/components/columns/Columns.native.d.ts +5 -5
- package/lib/components/columns/Columns.native.js +49 -63
- package/lib/components/columns/Columns.native.js.map +1 -1
- package/lib/components/columns/ColumnsProps.d.ts +6 -6
- package/lib/components/columns/ColumnsTypes.d.ts +0 -3
- package/lib/components/columns/ColumnsTypes.js +1 -1
- package/lib/components/columns/ColumnsTypes.js.map +1 -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 +3 -3
- package/lib/components/columns/item/ColumnsItem.js +5 -6
- package/lib/components/columns/item/ColumnsItem.js.map +1 -1
- package/lib/components/columns/item/ColumnsItem.native.d.ts +2 -4
- package/lib/components/columns/item/ColumnsItem.native.js +11 -12
- package/lib/components/columns/item/ColumnsItem.native.js.map +1 -1
- package/lib/components/columns/item/ColumnsItemProps.d.ts +1 -1
- package/lib/components/container/Container.d.ts +2 -7
- 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 -8
- package/lib/components/container/Container.js.map +1 -1
- package/lib/components/container/Container.native.d.ts +2 -4
- package/lib/components/container/Container.native.js +8 -10
- 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 +2 -4
- 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 +3 -5
- 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.d.ts +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.js +1 -1
- package/lib/components/divider/Divider.native.d.ts +1 -1
- package/lib/components/divider/Divider.native.js +3 -3
- 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.d.ts +0 -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/Fab.js +0 -1
- package/lib/components/fab/Fab.js.map +1 -1
- 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 -5
- 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 -6
- 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.d.ts +2 -4
- package/lib/components/icon/Icon.example.d.ts +3 -0
- package/lib/components/icon/Icon.example.js +12 -0
- package/lib/components/icon/Icon.example.js.map +1 -0
- package/lib/components/icon/Icon.js +3 -5
- package/lib/components/icon/Icon.js.map +1 -1
- package/lib/components/icon/Icon.native.d.ts +1 -1
- package/lib/components/icon/Icon.native.js +2 -2
- 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 +42 -49
- 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 +12 -22
- package/lib/components/input/autocomplete/AutoComplete.js.map +1 -0
- package/lib/components/input/autocomplete/AutoComplete.native.d.ts +4 -0
- package/lib/components/{autocomplete → input/autocomplete}/AutoComplete.native.js +3 -24
- 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.d.ts +0 -2
- 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 -4
- package/lib/components/link/Link.js.map +1 -1
- package/lib/components/link/Link.native.d.ts +1 -2
- package/lib/components/link/Link.native.js +10 -12
- 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 +4 -6
- 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 +5 -8
- package/lib/components/list/List.js.map +1 -1
- package/lib/components/list/List.native.d.ts +0 -4
- package/lib/components/list/List.native.js +0 -4
- package/lib/components/list/List.native.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.d.ts +1 -3
- package/lib/components/list/item/ListItem.js +1 -3
- package/lib/components/list/item/ListItem.js.map +1 -1
- package/lib/components/list/item/ListItem.native.d.ts +0 -11
- package/lib/components/list/item/ListItem.native.js +1 -12
- package/lib/components/list/item/ListItem.native.js.map +1 -1
- package/lib/components/list/item/description/ListItemDescription.d.ts +2 -3
- package/lib/components/list/item/description/ListItemDescription.js +2 -3
- package/lib/components/list/item/description/ListItemDescription.js.map +1 -1
- package/lib/components/list/item/description/ListItemDescription.native.d.ts +0 -4
- package/lib/components/list/item/description/ListItemDescription.native.js +0 -4
- package/lib/components/list/item/description/ListItemDescription.native.js.map +1 -1
- package/lib/components/modal/Modal.d.ts +6 -6
- 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 -19
- package/lib/components/modal/Modal.js.map +1 -1
- package/lib/components/modal/ModalProps.d.ts +5 -1
- package/lib/components/modal/footer/ModalFooter.d.ts +2 -3
- package/lib/components/modal/footer/ModalFooter.js +2 -3
- package/lib/components/modal/footer/ModalFooter.js.map +1 -1
- package/lib/components/modal/footer/ModalFooter.native.d.ts +0 -4
- package/lib/components/modal/footer/ModalFooter.native.js +0 -4
- package/lib/components/modal/footer/ModalFooter.native.js.map +1 -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.d.ts +1 -2
- package/lib/components/modal/title/ModalTitle.js +2 -3
- package/lib/components/modal/title/ModalTitle.js.map +1 -1
- package/lib/components/modal/title/ModalTitle.native.d.ts +0 -6
- package/lib/components/modal/title/ModalTitle.native.js +0 -6
- package/lib/components/modal/title/ModalTitle.native.js.map +1 -1
- package/lib/components/otp/Otp.d.ts +1 -4
- 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 +87 -81
- package/lib/components/otp/Otp.js.map +1 -1
- package/lib/components/otp/Otp.native.d.ts +0 -2
- package/lib/components/otp/Otp.native.js +1 -3
- 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.d.ts +0 -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/Pagination.js +6 -6
- package/lib/components/pagination/Pagination.js.map +1 -1
- 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.d.ts +1 -3
- 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/Popover.js +1 -3
- package/lib/components/popover/Popover.js.map +1 -1
- package/lib/components/popover/Popover.native.d.ts +2 -0
- package/lib/components/popover/Popover.native.js +2 -0
- package/lib/components/popover/Popover.native.js.map +1 -1
- 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 +4 -4
- 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 +10 -29
- package/lib/components/price/Price.js.map +1 -1
- package/lib/components/price/Price.native.d.ts +3 -3
- package/lib/components/price/Price.native.js +88 -129
- 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/product-tour/ProductTour.d.ts +3 -3
- package/lib/components/product-tour/ProductTour.js +3 -3
- 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 +6 -6
- package/lib/components/progress/item/ProgressItem.js +9 -10
- package/lib/components/progress/item/ProgressItem.js.map +1 -1
- package/lib/components/progress/item/ProgressItem.native.d.ts +3 -2
- package/lib/components/progress/item/ProgressItem.native.js +3 -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.d.ts +0 -18
- package/lib/components/progress/radial/ProgressRadial.js +1 -20
- 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.d.ts +2 -7
- 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.js +2 -7
- package/lib/components/radio/Radio.js.map +1 -1
- package/lib/components/radio/Radio.native.d.ts +7 -9
- package/lib/components/radio/Radio.native.js +18 -21
- 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.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.d.ts +3 -6
- 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 +4 -7
- package/lib/components/range/Range.js.map +1 -1
- package/lib/components/range/Range.native.d.ts +0 -3
- package/lib/components/range/Range.native.js +0 -3
- package/lib/components/range/Range.native.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 -6
- package/lib/components/rows/Rows.native.js +2 -5
- 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/scroll-view/ScrollView.d.ts +1 -3
- package/lib/components/scroll-view/ScrollView.js +1 -3
- package/lib/components/scroll-view/ScrollView.js.map +1 -1
- package/lib/components/section/Section.d.ts +5 -10
- package/lib/components/section/Section.example.d.ts +3 -0
- package/lib/components/section/Section.example.js +16 -0
- package/lib/components/section/Section.example.js.map +1 -0
- package/lib/components/section/Section.js +8 -14
- package/lib/components/section/Section.js.map +1 -1
- package/lib/components/section/Section.native.d.ts +6 -6
- package/lib/components/section/Section.native.js +8 -8
- 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.d.ts +1 -4
- 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.js +1 -4
- package/lib/components/segment-control/SegmentControl.js.map +1 -1
- package/lib/components/segment-control/SegmentControl.native.d.ts +4 -4
- package/lib/components/segment-control/SegmentControl.native.js +5 -5
- 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.d.ts +0 -2
- package/lib/components/segment-control/item/SegmentControlItem.js +0 -2
- package/lib/components/segment-control/item/SegmentControlItem.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.d.ts +3 -3
- 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/Select.js +3 -3
- package/lib/components/select/Select.native.d.ts +1 -4
- package/lib/components/select/Select.native.js +1 -4
- package/lib/components/select/Select.native.js.map +1 -1
- 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 +14 -18
- package/lib/components/select/option/SelectOption.native.js.map +1 -1
- package/lib/components/select/web/SelectDynamic.js +2 -3
- package/lib/components/select/web/SelectDynamic.js.map +1 -1
- package/lib/components/selector/Selector.d.ts +0 -7
- package/lib/components/selector/Selector.js +0 -7
- package/lib/components/selector/Selector.js.map +1 -1
- package/lib/components/selector/Selector.native.d.ts +3 -7
- package/lib/components/selector/Selector.native.js +3 -7
- package/lib/components/selector/Selector.native.js.map +1 -1
- package/lib/components/selector/item/SelectorItem.d.ts +1 -6
- package/lib/components/selector/item/SelectorItem.js +1 -6
- package/lib/components/selector/item/SelectorItem.js.map +1 -1
- package/lib/components/selector/item/SelectorItem.native.d.ts +0 -4
- package/lib/components/selector/item/SelectorItem.native.js +1 -5
- 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 +7 -12
- package/lib/components/spacer/SpacerEnum.js +7 -12
- package/lib/components/spacer/SpacerEnum.js.map +1 -1
- package/lib/components/spacer/SpacerProps.d.ts +2 -2
- package/lib/components/stepper/Stepper.d.ts +3 -4
- package/lib/components/stepper/Stepper.example.d.ts +3 -0
- package/lib/components/stepper/Stepper.example.js +10 -0
- package/lib/components/stepper/Stepper.example.js.map +1 -0
- package/lib/components/stepper/Stepper.js +6 -9
- 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 +5 -8
- package/lib/components/stepper/step/StepperStep.js +6 -10
- package/lib/components/stepper/step/StepperStep.js.map +1 -1
- package/lib/components/stepper/step/StepperStep.native.d.ts +3 -2
- package/lib/components/stepper/step/StepperStep.native.js +4 -3
- 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.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 -4
- package/lib/components/sticker/Sticker.js.map +1 -1
- package/lib/components/sticker/Sticker.native.d.ts +3 -3
- package/lib/components/sticker/Sticker.native.js +3 -3
- 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 +5 -5
- 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 +7 -7
- package/lib/components/switch/Switch.js.map +1 -1
- package/lib/components/switch/Switch.native.d.ts +3 -3
- package/lib/components/switch/Switch.native.js +8 -7
- 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 +5 -7
- 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 +7 -10
- package/lib/components/tabs/Tabs.js.map +1 -1
- package/lib/components/tabs/Tabs.native.d.ts +1 -2
- package/lib/components/tabs/Tabs.native.js +1 -2
- package/lib/components/tabs/Tabs.native.js.map +1 -1
- package/lib/components/tabs/TabsProps.d.ts +4 -0
- 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 +5 -6
- package/lib/components/tabs/item/TabsItem.js +7 -9
- package/lib/components/tabs/item/TabsItem.js.map +1 -1
- package/lib/components/tabs/item/TabsItem.native.d.ts +0 -1
- package/lib/components/tabs/item/TabsItem.native.js +1 -2
- package/lib/components/tabs/item/TabsItem.native.js.map +1 -1
- package/lib/components/tag/Tag.d.ts +4 -6
- 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.js +32 -15
- package/lib/components/tag/Tag.js.map +1 -1
- package/lib/components/tag/Tag.native.d.ts +10 -8
- package/lib/components/tag/Tag.native.js +57 -27
- package/lib/components/tag/Tag.native.js.map +1 -1
- package/lib/components/tag/TagProps.d.ts +4 -0
- 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 +3 -3
- package/lib/components/tag/list/TagList.js +4 -5
- 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 +4 -12
- 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 +7 -20
- package/lib/components/textarea/Textarea.js.map +1 -1
- package/lib/components/textarea/Textarea.native.d.ts +2 -2
- package/lib/components/textarea/Textarea.native.js +51 -67
- package/lib/components/textarea/Textarea.native.js.map +1 -1
- package/lib/components/textarea/TextareaProps.d.ts +4 -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.d.ts +1 -2
- package/lib/components/timeline/content/TimelineContent.js +2 -3
- package/lib/components/timeline/content/TimelineContent.js.map +1 -1
- package/lib/components/timeline/content/TimelineContent.native.d.ts +3 -3
- package/lib/components/timeline/content/TimelineContent.native.js +3 -3
- 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 +3 -4
- package/lib/components/timeline/item/TimelineItem.js +4 -6
- package/lib/components/timeline/item/TimelineItem.js.map +1 -1
- package/lib/components/timeline/item/TimelineItem.native.d.ts +4 -8
- package/lib/components/timeline/item/TimelineItem.native.js +3 -7
- package/lib/components/timeline/item/TimelineItem.native.js.map +1 -1
- package/lib/components/timeline/marker/TimelineMarker.d.ts +3 -4
- package/lib/components/timeline/marker/TimelineMarker.js +3 -4
- package/lib/components/timeline/marker/TimelineMarker.js.map +1 -1
- package/lib/components/timeline/marker/TimelineMarker.native.d.ts +1 -3
- package/lib/components/timeline/marker/TimelineMarker.native.js +8 -10
- package/lib/components/timeline/marker/TimelineMarker.native.js.map +1 -1
- package/lib/components/title/Title.d.ts +2 -4
- 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 +4 -6
- package/lib/components/title/Title.js.map +1 -1
- package/lib/components/title/Title.native.d.ts +5 -7
- package/lib/components/title/Title.native.js +14 -17
- 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 -3
- package/lib/components/view/View.js +3 -4
- package/lib/components/view/View.js.map +1 -1
- package/lib/components/view/View.native.d.ts +8 -7
- package/lib/components/view/View.native.js +9 -8
- package/lib/components/view/View.native.js.map +1 -1
- package/lib/components/view/ViewProps.d.ts +1 -2
- package/lib/components/view/ViewProps.js +0 -1
- package/lib/components/view/ViewProps.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/Justifiable.d.ts +1 -1
- package/lib/objects/facets/Status.d.ts +2 -29
- package/lib/objects/facets/Status.js +14 -14
- package/lib/objects/facets/Status.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.d.ts +0 -25
- 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 -83
- 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 -124
- 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 -27
- 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 -144
- package/lib/components/tabs/item/TabsItemPropsDefaults.js +0 -336
- package/lib/components/tag/TagClickEventDefaults.js +0 -1
- package/lib/components/tag/TagPropsDefaults.js +0 -104
- 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 -223
- /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
|
@@ -1,70 +1,13 @@
|
|
|
1
1
|
import { Text, TextMarkup } from "../../components/text";
|
|
2
|
-
import React, { useEffect,
|
|
2
|
+
import React, { useEffect, useMemo, useState } from "react";
|
|
3
3
|
import { TypographyColor } from "../../objects/Typography";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { hashClass } from "../../helpers/hashClassesHelpers";
|
|
6
6
|
import { is } from "../../services/classify";
|
|
7
7
|
import { useTrilogyContext } from "../../context/index";
|
|
8
|
-
const stringToCode = (str, codeSize) => {
|
|
9
|
-
if (!str)
|
|
10
|
-
return new Array(codeSize).fill(null);
|
|
11
|
-
return str.split("").map((char) => (char === "" ? null : Number(char)));
|
|
12
|
-
};
|
|
13
|
-
const codeToString = (code) => {
|
|
14
|
-
return code.map((char) => (char === null ? '_' : char)).join("");
|
|
15
|
-
};
|
|
16
|
-
const isCompleted = (myCode) => {
|
|
17
|
-
return myCode.every((code) => code !== null);
|
|
18
|
-
};
|
|
19
|
-
const focusToNextInput = (target, value) => {
|
|
20
|
-
const nextElementSibling = target.nextElementSibling;
|
|
21
|
-
if (nextElementSibling) {
|
|
22
|
-
if (value)
|
|
23
|
-
nextElementSibling.value = value;
|
|
24
|
-
if (target.value.length)
|
|
25
|
-
nextElementSibling.focus();
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
target.focus();
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
const focusToPrevInput = (target) => {
|
|
32
|
-
const previousElementSibling = target.previousElementSibling;
|
|
33
|
-
if (previousElementSibling) {
|
|
34
|
-
previousElementSibling.focus();
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
target.focus();
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
const updateCodeInput = (value, index, code) => {
|
|
41
|
-
const numberValue = Number(value);
|
|
42
|
-
if (isNaN(numberValue) || value.length < 1) {
|
|
43
|
-
return code;
|
|
44
|
-
}
|
|
45
|
-
const newCodeInput = code.map((code, idx) => {
|
|
46
|
-
return idx === index ? Number(value.slice(0, 1)) : code;
|
|
47
|
-
});
|
|
48
|
-
return updateCodeInput(value.slice(1), index + 1, newCodeInput);
|
|
49
|
-
};
|
|
50
|
-
const inputOnKeyUp = (e) => {
|
|
51
|
-
const { key } = e;
|
|
52
|
-
const target = e.target;
|
|
53
|
-
if (key === "ArrowRight" || key === "ArrowDown") {
|
|
54
|
-
return focusToNextInput(target);
|
|
55
|
-
}
|
|
56
|
-
if (key === "ArrowLeft" || key === "ArrowUp") {
|
|
57
|
-
return focusToPrevInput(target);
|
|
58
|
-
}
|
|
59
|
-
if (key === "Backspace") {
|
|
60
|
-
return (target.value === "") && focusToPrevInput(target);
|
|
61
|
-
}
|
|
62
|
-
if (key >= '0' && key <= '9') {
|
|
63
|
-
focusToNextInput(target);
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
8
|
/**
|
|
67
9
|
* OTP Code Component
|
|
10
|
+
* @param className {string} Additionnal css classes
|
|
68
11
|
* @param code {string} Code Text Input
|
|
69
12
|
* @param codeSize {number} Code Size Number
|
|
70
13
|
* @param disabled {boolean} Disabled OTP Code Input
|
|
@@ -73,41 +16,103 @@ const inputOnKeyUp = (e) => {
|
|
|
73
16
|
* @param onChange {Function} onChange Input return current code
|
|
74
17
|
* @param onFocus {Function} onFocus return if focused opt
|
|
75
18
|
* @param autoFocus {boolean} Should auto focus otp
|
|
76
|
-
* @param label {string} Label for OTP
|
|
77
|
-
* @param errorMessage {string} error message to display
|
|
78
|
-
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
79
|
-
* @param className {string} Additionnal css classes
|
|
80
19
|
*/
|
|
81
20
|
const Otp = ({ className, code, codeSize = 6, disabled, error, onCompleted, onChange, onFocus, label, errorMessage, autoFocus, ...others }) => {
|
|
82
|
-
const [codeInput, setCodeInput] = useState(
|
|
83
|
-
const
|
|
21
|
+
const [codeInput, setCodeInput] = useState(code || "");
|
|
22
|
+
const [, setFocused] = useState(false);
|
|
84
23
|
const { styled } = useTrilogyContext();
|
|
24
|
+
const testDigit = /^-?\d*\.?\d*$/;
|
|
85
25
|
const classes = hashClass(styled, clsx("otp-list", error && is("error"), className));
|
|
86
26
|
useEffect(() => {
|
|
87
|
-
if (!disabled) {
|
|
88
|
-
|
|
27
|
+
if (!disabled && codeInput.length >= codeSize) {
|
|
28
|
+
onCompleted === null || onCompleted === void 0 ? void 0 : onCompleted(codeInput);
|
|
89
29
|
}
|
|
90
|
-
}, [codeSize, codeInput
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
30
|
+
}, [codeSize, codeInput]);
|
|
31
|
+
const valueItems = useMemo(() => {
|
|
32
|
+
const valueArray = codeInput.split("");
|
|
33
|
+
const items = [];
|
|
34
|
+
for (let i = 0; i < codeSize; i++) {
|
|
35
|
+
const char = valueArray[i];
|
|
36
|
+
if (testDigit.test(char)) {
|
|
37
|
+
items.push(char);
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
items.push("");
|
|
41
|
+
}
|
|
95
42
|
}
|
|
96
|
-
|
|
43
|
+
return items;
|
|
44
|
+
}, [codeInput, codeSize]);
|
|
45
|
+
const focusToNextInput = (target) => {
|
|
46
|
+
const nextElementSibling = target.nextElementSibling;
|
|
47
|
+
if (nextElementSibling) {
|
|
48
|
+
nextElementSibling.focus();
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
const focusToPrevInput = (target) => {
|
|
52
|
+
const previousElementSibling = target.previousElementSibling;
|
|
53
|
+
if (previousElementSibling) {
|
|
54
|
+
previousElementSibling.focus();
|
|
55
|
+
}
|
|
56
|
+
};
|
|
97
57
|
const inputOnChange = (e, idx) => {
|
|
98
58
|
const { target } = e;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
59
|
+
let targetValue = target.value.trim();
|
|
60
|
+
const isTargetValueDigit = testDigit.test(targetValue);
|
|
61
|
+
if (!isTargetValueDigit && targetValue !== "") {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
const nextInputEl = target.nextElementSibling;
|
|
65
|
+
if (!isTargetValueDigit && nextInputEl && nextInputEl.value !== "") {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
targetValue = isTargetValueDigit ? targetValue : "";
|
|
69
|
+
const targetValueLength = targetValue.length;
|
|
70
|
+
if (targetValueLength === 1) {
|
|
71
|
+
const newValue = codeInput.substring(0, idx) +
|
|
72
|
+
targetValue +
|
|
73
|
+
codeInput.substring(idx + 1);
|
|
74
|
+
if (onChange) {
|
|
75
|
+
onChange(newValue);
|
|
76
|
+
}
|
|
77
|
+
setCodeInput(newValue);
|
|
78
|
+
if (!isTargetValueDigit) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
focusToNextInput(target);
|
|
102
82
|
}
|
|
103
|
-
else {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
83
|
+
else if (targetValueLength === codeSize) {
|
|
84
|
+
if (onChange) {
|
|
85
|
+
onChange(codeInput);
|
|
86
|
+
}
|
|
87
|
+
setCodeInput(targetValue);
|
|
88
|
+
target.blur();
|
|
107
89
|
}
|
|
108
90
|
};
|
|
91
|
+
const inputOnKeyDown = (e) => {
|
|
92
|
+
const { key } = e;
|
|
93
|
+
const target = e.target;
|
|
94
|
+
if (key === "ArrowRight" || key === "ArrowDown") {
|
|
95
|
+
e.preventDefault();
|
|
96
|
+
return focusToNextInput(target);
|
|
97
|
+
}
|
|
98
|
+
if (key === "ArrowLeft" || key === "ArrowUp") {
|
|
99
|
+
e.preventDefault();
|
|
100
|
+
return focusToPrevInput(target);
|
|
101
|
+
}
|
|
102
|
+
const targetValue = target.value;
|
|
103
|
+
target.setSelectionRange(0, targetValue.length);
|
|
104
|
+
if (e.key !== "Backspace" || targetValue !== "") {
|
|
105
|
+
target.value = "";
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
focusToPrevInput(target);
|
|
109
|
+
};
|
|
109
110
|
const inputOnFocus = (e) => {
|
|
110
111
|
const { target } = e;
|
|
112
|
+
const prevInputEl = target.previousElementSibling;
|
|
113
|
+
if (prevInputEl && prevInputEl.value === "") {
|
|
114
|
+
return prevInputEl.focus();
|
|
115
|
+
}
|
|
111
116
|
target.setSelectionRange(0, target.value.length);
|
|
112
117
|
};
|
|
113
118
|
return (React.createElement(React.Fragment, null,
|
|
@@ -116,9 +121,10 @@ const Otp = ({ className, code, codeSize = 6, disabled, error, onCompleted, onCh
|
|
|
116
121
|
TypographyColor.TEXT_MAIN }, label)),
|
|
117
122
|
React.createElement("div", { "data-testid": "otp-input", className: classes, onClick: () => {
|
|
118
123
|
if (!disabled) {
|
|
124
|
+
setFocused(true);
|
|
119
125
|
onFocus === null || onFocus === void 0 ? void 0 : onFocus(true);
|
|
120
126
|
}
|
|
121
|
-
} },
|
|
127
|
+
} }, valueItems.map((digit, idx) => (React.createElement("input", { "aria-disabled": disabled, tabIndex: 0, key: idx, type: 'text', inputMode: 'numeric', autoComplete: 'one-time-code', autoFocus: idx === 0 && autoFocus, pattern: '\\d{1}', maxLength: codeSize, className: 'otp', value: digit, onKeyDown: inputOnKeyDown, onFocus: inputOnFocus, onChange: (e) => inputOnChange(e, idx), disabled: disabled, ...others })))),
|
|
122
128
|
errorMessage && (React.createElement(Text, { className: hashClass(styled, clsx("otp-error-message")), markup: TextMarkup.P, typo: (error && TypographyColor.TEXT_ERROR) || TypographyColor.TEXT_MAIN }, errorMessage))));
|
|
123
129
|
};
|
|
124
130
|
export default Otp;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Otp.js","sourceRoot":"","sources":["../../../components/otp/Otp.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"Otp.js","sourceRoot":"","sources":["../../../components/otp/Otp.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE3D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AACxC,OAAO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EAAC,KAAK,EACf,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,cAAc,EACzB,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,GAAG,CAAC,EACtC,QAAQ,EAAE,QAAQ,KACd,MAAM,GACV,CACH,CAAC,CACE;QACL,YAAY,IAAI,CACf,oBAAC,IAAI,IACH,SAAS,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC,EACvD,MAAM,EAAE,UAAU,CAAC,CAAC,EACpB,IAAI,EACF,CAAC,KAAK,IAAI,eAAe,CAAC,UAAU,CAAC,IAAI,eAAe,CAAC,SAAS,IAGnE,YAAY,CACR,CACR,CACA,CACJ,CAAA;AACH,CAAC,CAAA;AAED,eAAe,GAAG,CAAA"}
|
|
@@ -11,8 +11,6 @@ import { ComponentName } from "../../components/enumsComponentsName";
|
|
|
11
11
|
* @param onFocus {Function} onFocus return if focused opt
|
|
12
12
|
* @param activated {boolean} Activated OTP
|
|
13
13
|
* @param onChange {Function} onChange Input return current code
|
|
14
|
-
* @param label {string} Label for OTP
|
|
15
|
-
* @param errorMessage {string} error message to display
|
|
16
14
|
*/
|
|
17
15
|
declare const Otp: {
|
|
18
16
|
({ code, codeSize, disabled, error, onCompleted, onFocus, activated, onChange, label, ...others }: OtpProps): JSX.Element;
|
|
@@ -16,8 +16,6 @@ import { ComponentName } from "../../components/enumsComponentsName";
|
|
|
16
16
|
* @param onFocus {Function} onFocus return if focused opt
|
|
17
17
|
* @param activated {boolean} Activated OTP
|
|
18
18
|
* @param onChange {Function} onChange Input return current code
|
|
19
|
-
* @param label {string} Label for OTP
|
|
20
|
-
* @param errorMessage {string} error message to display
|
|
21
19
|
*/
|
|
22
20
|
const Otp = ({ code, codeSize = 6, disabled, error, onCompleted, onFocus, activated, onChange, label, ...others }) => {
|
|
23
21
|
const [codeInput, setCodeInput] = useState(code || "");
|
|
@@ -60,7 +58,7 @@ const Otp = ({ code, codeSize = 6, disabled, error, onCompleted, onFocus, activa
|
|
|
60
58
|
borderColor: (disabled && getColorStyle(TrilogyColor.DISABLED)) ||
|
|
61
59
|
(activated && getColorStyle(TrilogyColor.MAIN)) ||
|
|
62
60
|
(error && getColorStyle(TrilogyColor.ERROR)) ||
|
|
63
|
-
getColorStyle(TrilogyColor.
|
|
61
|
+
getColorStyle(TrilogyColor.FONT, 1),
|
|
64
62
|
borderWidth: 1,
|
|
65
63
|
borderRadius: 4,
|
|
66
64
|
marginHorizontal: 5,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Otp.native.js","sourceRoot":"","sources":["../../../components/otp/Otp.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,GAAG,MAAM,cAAc,CAAA;AAEpF,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACvE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE
|
|
1
|
+
{"version":3,"file":"Otp.native.js","sourceRoot":"","sources":["../../../components/otp/Otp.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,Y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CACQ;QACZ,oBAAC,SAAS,IACR,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,SAAS,EAChB,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE;gBACrB,IAAI,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;oBAC3C,IAAI,QAAQ,EAAE;wBACZ,QAAQ,CAAC,IAAI,CAAC,CAAA;qBACf;oBACD,YAAY,CAAC,IAAI,CAAC,CAAA;iBACnB;YACH,CAAC,EACD,YAAY,EAAE,SAAS,EACvB,aAAa,EAAE,MAAM,EACrB,eAAe,EAAC,aAAa,EAC7B,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,GAAG,EAAE;gBACZ,IAAI,CAAC,QAAQ,EAAE;oBACb,UAAU,CAAC,IAAI,CAAC,CAAA;oBAChB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,IAAI,CAAC,CAAA;iBAChB;YACH,CAAC,EACD,MAAM,EAAE,GAAG,EAAE;gBACX,UAAU,CAAC,KAAK,CAAC,CAAA;gBACjB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,KAAK,CAAC,CAAA;YAClB,CAAC,EACD,QAAQ,EAAE,CAAC,QAAQ,EACnB,KAAK,EAAE,KAAK,CAAC,eAAe,EAC5B,MAAM,EAAC,UAAU,GACjB,CACW,CAChB,CAAA;AACH,CAAC,CAAA;AAED,GAAG,CAAC,WAAW,GAAG,aAAa,CAAC,GAAG,CAAA;AAEnC,eAAe,GAAG,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/otp/index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/otp/index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,OAAO,CAAA;AACvB,OAAO,UAAU,MAAM,eAAe,CAAA;AAEtC,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -9,7 +9,6 @@ import { PaginationProps } from './PaginationProps';
|
|
|
9
9
|
* * - -------------------------- WEB PROPERTIES -------------------------------
|
|
10
10
|
* @param className {string} Additionnal css classes
|
|
11
11
|
* @param href {Function} Function that generates a link for seo bots
|
|
12
|
-
* @param testId {string} Test Id for Test Integration
|
|
13
12
|
*/
|
|
14
13
|
declare const Pagination: ({ className, count, defaultPage, pageSize, onClick, testId, href, ...others }: PaginationProps) => JSX.Element;
|
|
15
14
|
export default Pagination;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.example.js","sourceRoot":"","sources":["../../../components/pagination/Pagination.example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpC,MAAM,iBAAiB,GAErB,oBAAC,UAAU,IACT,KAAK,EAAE,EAAE,EACT,WAAW,EAAE,CAAC,GACd,CAAA;AAEJ,eAAe,iBAAiB,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState, useRef } from 'react';
|
|
2
|
+
import { is } from '../../services/index';
|
|
2
3
|
import { Icon, IconName } from '../../components/icon';
|
|
3
4
|
import { hashClass } from '../../helpers';
|
|
4
5
|
import clsx from 'clsx';
|
|
@@ -12,12 +13,11 @@ import { useTrilogyContext } from '../../context';
|
|
|
12
13
|
* * - -------------------------- WEB PROPERTIES -------------------------------
|
|
13
14
|
* @param className {string} Additionnal css classes
|
|
14
15
|
* @param href {Function} Function that generates a link for seo bots
|
|
15
|
-
* @param testId {string} Test Id for Test Integration
|
|
16
16
|
*/
|
|
17
17
|
const Pagination = ({ className, count, defaultPage = 1, pageSize = 10, onClick, testId, href, ...others }) => {
|
|
18
18
|
const [currentPage, setCurrentPage] = useState(defaultPage);
|
|
19
19
|
const { styled } = useTrilogyContext();
|
|
20
|
-
const classes = hashClass(styled, clsx('pagination', className));
|
|
20
|
+
const classes = hashClass(styled, clsx('pagination', is('centered'), className));
|
|
21
21
|
const prevCurrentPage = useRef(currentPage);
|
|
22
22
|
const pager = React.useMemo(() => {
|
|
23
23
|
// Calculate total pages
|
|
@@ -33,15 +33,15 @@ const Pagination = ({ className, count, defaultPage = 1, pageSize = 10, onClick,
|
|
|
33
33
|
// more than 3 total pages so calculate start and end pages
|
|
34
34
|
if (currentPage <= 3) {
|
|
35
35
|
startPage = 1;
|
|
36
|
-
endPage =
|
|
36
|
+
endPage = 5;
|
|
37
37
|
}
|
|
38
38
|
else if (currentPage + 3 >= totalPages) {
|
|
39
|
-
startPage = totalPages -
|
|
39
|
+
startPage = totalPages - 4;
|
|
40
40
|
endPage = totalPages;
|
|
41
41
|
}
|
|
42
42
|
else {
|
|
43
|
-
startPage = currentPage -
|
|
44
|
-
endPage = currentPage +
|
|
43
|
+
startPage = currentPage - 2;
|
|
44
|
+
endPage = currentPage + 2;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
// Create an array of pages
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.js","sourceRoot":"","sources":["../../../components/pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Pagination.js","sourceRoot":"","sources":["../../../components/pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC1D,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AACrC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,IAAI,MAAM,MAAM,CAAA;A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I,EAAE,CAAC,CAAC,CAAC,EAAE,EACjF,OAAO,EAAE,GAAG,EAAE;gBACZ,IAAI,WAAW,KAAK,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE;oBAC9C,cAAc,CAAC,WAAW,GAAG,CAAC,CAAC,CAAA;iBAChC;YACH,CAAC,EACD,IAAI,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAG,WAAW,GAAG,CAAC,CAAC;YAE7B,oBAAC,IAAI,IAAC,IAAI,EAAE,QAAQ,CAAC,WAAW,GAAI,CAClC,CACA,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/pagination/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/pagination/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAA;AACrC,OAAO,iBAAiB,MAAM,sBAAsB,CAAA;AAEpD,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAA;AAExC,cAAc,kBAAkB,CAAA"}
|
|
@@ -3,12 +3,10 @@ import { PopoverWebProps } from "./PopoverProps";
|
|
|
3
3
|
/**
|
|
4
4
|
* Popover Component
|
|
5
5
|
* @param children {ReactNode} Popover children
|
|
6
|
+
* @param className {string} Additionnal CSS Classes
|
|
6
7
|
* @param direction {PopoverDirection} Popover direction (DOWN|LEFT|RIGHT)
|
|
7
8
|
* @param content {ReactNode} Content of the popover (hidden popover if null|undefined)
|
|
8
9
|
* @param active {boolean} Is the popover active
|
|
9
|
-
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
10
|
-
* @param className {string} Additionnal css classes
|
|
11
|
-
* @param testId {string} Test Id for Test Integration
|
|
12
10
|
* @param arrowPosition {PopoverArrowPosition} Position of the popover arrow
|
|
13
11
|
*/
|
|
14
12
|
declare const Popover: ({ className, direction, children, active, arrowPosition, content, testId, ...others }: PopoverWebProps) => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Popover } from './index';
|
|
3
|
+
import { Button } from '../../components/button';
|
|
4
|
+
const PopoverExample = React.createElement(Popover, { content: 'Voici une simple popover' },
|
|
5
|
+
React.createElement(Button, { variant: 'PRIMARY' }, "Simple Popover"));
|
|
6
|
+
export default PopoverExample;
|
|
7
|
+
//# sourceMappingURL=Popover.example.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.example.js","sourceRoot":"","sources":["../../../components/popover/Popover.example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAE5C,MAAM,cAAc,GAElB,oBAAC,OAAO,IAAC,OAAO,EAAC,0BAA0B;IACzC,oBAAC,MAAM,IAAC,OAAO,EAAC,SAAS,qBAEhB,CACD,CAAA;AAEZ,eAAe,cAAc,CAAA"}
|
|
@@ -6,12 +6,10 @@ import { useTrilogyContext } from "../../context/index";
|
|
|
6
6
|
/**
|
|
7
7
|
* Popover Component
|
|
8
8
|
* @param children {ReactNode} Popover children
|
|
9
|
+
* @param className {string} Additionnal CSS Classes
|
|
9
10
|
* @param direction {PopoverDirection} Popover direction (DOWN|LEFT|RIGHT)
|
|
10
11
|
* @param content {ReactNode} Content of the popover (hidden popover if null|undefined)
|
|
11
12
|
* @param active {boolean} Is the popover active
|
|
12
|
-
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
13
|
-
* @param className {string} Additionnal css classes
|
|
14
|
-
* @param testId {string} Test Id for Test Integration
|
|
15
13
|
* @param arrowPosition {PopoverArrowPosition} Position of the popover arrow
|
|
16
14
|
*/
|
|
17
15
|
const Popover = ({ className, direction, children, active, arrowPosition, content, testId, ...others }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.js","sourceRoot":"","sources":["../../../components/popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEnD
|
|
1
|
+
{"version":3,"file":"Popover.js","sourceRoot":"","sources":["../../../components/popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEnD;;;;;;;;GAQG;AACH,MAAM,OAAO,GAAG,CAAC,EACf,SAAS,EACT,SAAS,EACT,QAAQ,EACR,MAAM,EACN,aAAa,EACb,OAAO,EACP,MAAM,EACN,GAAG,MAAM,EACO,EAAe,EAAE;IACjC,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAEtC,MAAM,OAAO,GAAG,SAAS,CACvB,MAAM,EACN,IAAI,CACF,SAAS,EACT,SAAS,IAAI,EAAE,CAAC,WAAW,SAAS,EAAE,CAAC,EACvC,MAAM,IAAI,EAAE,CAAC,gBAAgB,CAAC,EAC9B,aAAa,IAAI,EAAE,CAAC,SAAS,aAAa,EAAE,CAAC,EAC7C,SAAS,CACV,CACF,CAAA;IAED,OAAO,CACL,4CAAkB,MAAM,EAAE,SAAS,EAAE,OAAO,KAAM,MAAM;QACrD,QAAQ;QACR,OAAO,IAAI,CACV,4CACe,GAAG,MAAM,UAAU,EAChC,SAAS,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC,IAEpD,OAAO,CACJ,CACP,CACG,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -4,9 +4,11 @@ import { ComponentName } from "../../components/enumsComponentsName";
|
|
|
4
4
|
/**
|
|
5
5
|
* Popover Component
|
|
6
6
|
* @param children {ReactNode} Popover children
|
|
7
|
+
* @param className {string} Additionnal CSS Classes
|
|
7
8
|
* @param direction {PopoverDirection} Popover direction (DOWN|LEFT|RIGHT)
|
|
8
9
|
* @param content {ReactNode} Content of the popover (hidden popover if null|undefined)
|
|
9
10
|
* @param active {boolean} Is the popover active
|
|
11
|
+
* @param arrowPosition {PopoverArrowPosition} Position of the popover arrow
|
|
10
12
|
*/
|
|
11
13
|
declare const Popover: {
|
|
12
14
|
({ children, active, content, direction, }: PopoverProps): JSX.Element;
|
|
@@ -7,9 +7,11 @@ import { PopoverDirection } from "./PopoverEnum";
|
|
|
7
7
|
/**
|
|
8
8
|
* Popover Component
|
|
9
9
|
* @param children {ReactNode} Popover children
|
|
10
|
+
* @param className {string} Additionnal CSS Classes
|
|
10
11
|
* @param direction {PopoverDirection} Popover direction (DOWN|LEFT|RIGHT)
|
|
11
12
|
* @param content {ReactNode} Content of the popover (hidden popover if null|undefined)
|
|
12
13
|
* @param active {boolean} Is the popover active
|
|
14
|
+
* @param arrowPosition {PopoverArrowPosition} Position of the popover arrow
|
|
13
15
|
*/
|
|
14
16
|
const Popover = ({ children, active = false, content, direction, }) => {
|
|
15
17
|
const styles = StyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.native.js","sourceRoot":"","sources":["../../../components/popover/Popover.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EACL,aAAa,EACb,YAAY,EACZ,eAAe,EACf,eAAe,GAChB,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAEhD
|
|
1
|
+
{"version":3,"file":"Popover.native.js","sourceRoot":"","sources":["../../../components/popover/Popover.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EACL,aAAa,EACb,YAAY,EACZ,eAAe,EACf,eAAe,GAChB,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAEhD;;;;;;;;GAQG;AACH,MAAM,OAAO,GAAG,CAAC,EACf,QAAQ,EACR,MAAM,GAAG,KAAK,EACd,OAAO,EACP,SAAS,GACI,EAAe,EAAE;IAC9B,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAC/B,SAAS,EAAE;YACT,UAAU,EAAE,QAAQ;SACrB;QACD,OAAO,EAAE;YACP,QAAQ,EAAE,EAAE;YACZ,SAAS,EAAE,EAAE;YACb,eAAe,EAAE,aAAa,CAAC,YAAY,CAAC,IAAI,CAAC;YACjD,YAAY,EAAE,CAAC;YACf,cAAc,EAAE,QAAQ;YACxB,OAAO,EAAE,CAAC;SACX;QACD,KAAK,EAAE;YACL,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE;SACX;Q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O,CAAC,CAAC,CAAC,EAAE,IACtC,OAAO,IAAI,CACV,oBAAC,IAAI,IACH,KAAK,EAAE,UAAU,CAAC,IAAI,EACtB,IAAI,EAAE;wBACJ,eAAe,CAAC,aAAa;wBAC7B,eAAe,CAAC,UAAU;qBAC3B,IAEA,OAAO,CACH,CACR,CACI;gBACN,CAAC,SAAS,IAAI,CACb,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,GAAI,CAClE,CACI;YACN,CAAC,SAAS,IAAI,oBAAC,IAAI,QAAE,QAAQ,CAAQ,CACjC,CACR,CAAA;KACF;IAED,OAAO,oBAAC,IAAI,QAAE,QAAQ,CAAQ,CAAA;AAChC,CAAC,CAAA;AAED,OAAO,CAAC,WAAW,GAAG,aAAa,CAAC,OAAO,CAAA;AAE3C,eAAe,OAAO,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,cAAc,eAAe,CAAA;AAE7B,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -13,14 +13,14 @@ import { PriceProps } from "./PriceProps";
|
|
|
13
13
|
* @param inline {boolean} Inline display Price
|
|
14
14
|
* @param accessibilityLabel {string} Accessibility label
|
|
15
15
|
* @param testId {string} Test Id for Test Integration
|
|
16
|
-
* @param
|
|
16
|
+
* @param suptitle {string} Price Suptitle
|
|
17
17
|
* @param tagAmount {number} Tag amount
|
|
18
18
|
* @param tagSymbol {number} Tag symbol
|
|
19
|
-
* @param strikedAmount {boolean} Striked Amount Price
|
|
20
19
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
21
20
|
* @param className {string} Additionnal CSS Classes
|
|
21
|
+
* @param striked {boolean} Striked Price
|
|
22
22
|
* - --------------- NATIVE PROPERTIES ----------------------------------
|
|
23
|
-
* @param
|
|
23
|
+
* @param accessibilityActivate {boolean}
|
|
24
24
|
*/
|
|
25
|
-
declare const Price: ({ className, amount, mention, period, showCents, level, inverted, align, inline, testId, accessibilityLabel,
|
|
25
|
+
declare const Price: ({ className, amount, mention, period, showCents, level, inverted, align, alert, inline, testId, accessibilityLabel, striked, suptitle, tagAmount, tagSymbol, ...others }: PriceProps) => JSX.Element;
|
|
26
26
|
export default Price;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Price } from './index';
|
|
3
|
+
import { Columns, ColumnsItem } from '../columns';
|
|
4
|
+
const PriceExample = React.createElement(Columns, null,
|
|
5
|
+
React.createElement(ColumnsItem, null,
|
|
6
|
+
React.createElement(Price, { align: 'ALIGNED_START', amount: 24.99, period: 'mois', showCents: true })),
|
|
7
|
+
React.createElement(ColumnsItem, null,
|
|
8
|
+
React.createElement(Price, { amount: 24.99, mention: '(1)', period: 'mois', showCents: true, striked: true })),
|
|
9
|
+
React.createElement(ColumnsItem, null,
|
|
10
|
+
React.createElement(Price, { amount: 24.99, mention: '(1)', period: 'mois', showCents: true })));
|
|
11
|
+
export default PriceExample;
|
|
12
|
+
//# sourceMappingURL=Price.example.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Price.example.js","sourceRoot":"","sources":["../../../components/price/Price.example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAEjD,MAAM,YAAY,GAElB,oBAAC,OAAO;IACJ,oBAAC,WAAW;QACR,oBAAC,KAAK,IACF,KAAK,EAAC,eAAe,EACrB,MAAM,EAAE,KAAK,EACb,MAAM,EAAC,MAAM,EACb,SAAS,SACX,CACQ;IACd,oBAAC,WAAW;QACR,oBAAC,KAAK,IACF,MAAM,EAAE,KAAK,EACb,OAAO,EAAC,KAAK,EACb,MAAM,EAAC,MAAM,EACb,SAAS,QACT,OAAO,SACT,CACQ;IACd,oBAAC,WAAW;QACR,oBAAC,KAAK,IACF,MAAM,EAAE,KAAK,EACb,OAAO,EAAC,KAAK,EACb,MAAM,EAAC,MAAM,EACb,SAAS,SACX,CACQ,CACR,CAAA;AAEV,eAAe,YAAY,CAAA"}
|