@trilogy-ds/react 0.0.1-beta-108 → 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 -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 +12 -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 +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 +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 +16 -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/select/web/SelectDynamic.js +2 -3
- package/lib/components/select/web/SelectDynamic.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 +10 -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.d.ts +2 -2
- package/lib/components/textarea/Textarea.native.js +43 -51
- 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/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.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/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,98 +1,118 @@
|
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
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
|
-
};
|
|
8
|
+
/**
|
|
9
|
+
* OTP Code Component
|
|
10
|
+
* @param className {string} Additionnal css classes
|
|
11
|
+
* @param code {string} Code Text Input
|
|
12
|
+
* @param codeSize {number} Code Size Number
|
|
13
|
+
* @param disabled {boolean} Disabled OTP Code Input
|
|
14
|
+
* @param error {boolean} OTP Code Input has error | Display error icon
|
|
15
|
+
* @param onCompleted {Function} Return code input string
|
|
16
|
+
* @param onChange {Function} onChange Input return current code
|
|
17
|
+
* @param onFocus {Function} onFocus return if focused opt
|
|
18
|
+
* @param autoFocus {boolean} Should auto focus otp
|
|
19
|
+
*/
|
|
66
20
|
const Otp = ({ className, code, codeSize = 6, disabled, error, onCompleted, onChange, onFocus, label, errorMessage, autoFocus, ...others }) => {
|
|
67
|
-
const [codeInput, setCodeInput] = useState(
|
|
68
|
-
const
|
|
21
|
+
const [codeInput, setCodeInput] = useState(code || "");
|
|
22
|
+
const [, setFocused] = useState(false);
|
|
69
23
|
const { styled } = useTrilogyContext();
|
|
24
|
+
const testDigit = /^-?\d*\.?\d*$/;
|
|
70
25
|
const classes = hashClass(styled, clsx("otp-list", error && is("error"), className));
|
|
71
26
|
useEffect(() => {
|
|
72
|
-
if (!disabled) {
|
|
73
|
-
|
|
27
|
+
if (!disabled && codeInput.length >= codeSize) {
|
|
28
|
+
onCompleted === null || onCompleted === void 0 ? void 0 : onCompleted(codeInput);
|
|
74
29
|
}
|
|
75
|
-
}, [codeSize, codeInput
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return items;
|
|
44
|
+
}, [codeInput, codeSize]);
|
|
45
|
+
const focusToNextInput = (target) => {
|
|
46
|
+
const nextElementSibling = target.nextElementSibling;
|
|
47
|
+
if (nextElementSibling) {
|
|
48
|
+
nextElementSibling.focus();
|
|
80
49
|
}
|
|
81
|
-
}
|
|
50
|
+
};
|
|
51
|
+
const focusToPrevInput = (target) => {
|
|
52
|
+
const previousElementSibling = target.previousElementSibling;
|
|
53
|
+
if (previousElementSibling) {
|
|
54
|
+
previousElementSibling.focus();
|
|
55
|
+
}
|
|
56
|
+
};
|
|
82
57
|
const inputOnChange = (e, idx) => {
|
|
83
58
|
const { target } = e;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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);
|
|
87
82
|
}
|
|
88
|
-
else {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
83
|
+
else if (targetValueLength === codeSize) {
|
|
84
|
+
if (onChange) {
|
|
85
|
+
onChange(codeInput);
|
|
86
|
+
}
|
|
87
|
+
setCodeInput(targetValue);
|
|
88
|
+
target.blur();
|
|
92
89
|
}
|
|
93
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
|
+
};
|
|
94
110
|
const inputOnFocus = (e) => {
|
|
95
111
|
const { target } = e;
|
|
112
|
+
const prevInputEl = target.previousElementSibling;
|
|
113
|
+
if (prevInputEl && prevInputEl.value === "") {
|
|
114
|
+
return prevInputEl.focus();
|
|
115
|
+
}
|
|
96
116
|
target.setSelectionRange(0, target.value.length);
|
|
97
117
|
};
|
|
98
118
|
return (React.createElement(React.Fragment, null,
|
|
@@ -101,9 +121,10 @@ const Otp = ({ className, code, codeSize = 6, disabled, error, onCompleted, onCh
|
|
|
101
121
|
TypographyColor.TEXT_MAIN }, label)),
|
|
102
122
|
React.createElement("div", { "data-testid": "otp-input", className: classes, onClick: () => {
|
|
103
123
|
if (!disabled) {
|
|
124
|
+
setFocused(true);
|
|
104
125
|
onFocus === null || onFocus === void 0 ? void 0 : onFocus(true);
|
|
105
126
|
}
|
|
106
|
-
} },
|
|
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 })))),
|
|
107
128
|
errorMessage && (React.createElement(Text, { className: hashClass(styled, clsx("otp-error-message")), markup: TextMarkup.P, typo: (error && TypographyColor.TEXT_ERROR) || TypographyColor.TEXT_MAIN }, errorMessage))));
|
|
108
129
|
};
|
|
109
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,
|
|
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,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEnD;;;;;;;;;;;GAWG;AACH,MAAM,GAAG,GAAG,CAAC,EACX,SAAS,EACT,IAAI,EACJ,QAAQ,GAAG,CAAC,EACZ,QAAQ,EACR,KAAK,EACL,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,YAAY,EACZ,SAAS,EACT,GAAG,MAAM,EACA,EAAe,EAAE;IAC1B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAS,IAAI,IAAI,EAAE,CAAC,CAAA;IAC9D,MAAM,CAAC,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IACtC,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAEtC,MAAM,SAAS,GAAG,eAA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GAAG,CAAA"}
|
|
@@ -58,7 +58,7 @@ const Otp = ({ code, codeSize = 6, disabled, error, onCompleted, onFocus, activa
|
|
|
58
58
|
borderColor: (disabled && getColorStyle(TrilogyColor.DISABLED)) ||
|
|
59
59
|
(activated && getColorStyle(TrilogyColor.MAIN)) ||
|
|
60
60
|
(error && getColorStyle(TrilogyColor.ERROR)) ||
|
|
61
|
-
getColorStyle(TrilogyColor.
|
|
61
|
+
getColorStyle(TrilogyColor.FONT, 1),
|
|
62
62
|
borderWidth: 1,
|
|
63
63
|
borderRadius: 4,
|
|
64
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;;;;;;;;;;GAUG;AACH,MAAM,GAAG,GAAG,CAAC,EACX,IAAI,EACJ,QAAQ,GAAG,CAAC,EACZ,QAAQ,EACR,KAAK,EACL,WAAW,EACX,OAAO,EACP,SAAS,EACT,QAAQ,EACR,KAAK,EACL,GAAG,MAAM,EAC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,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"}
|
|
@@ -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 +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"}
|
|
@@ -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"}
|
|
@@ -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
19
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
20
20
|
* @param className {string} Additionnal CSS Classes
|
|
21
|
-
* @param
|
|
21
|
+
* @param striked {boolean} Striked Price
|
|
22
22
|
* - --------------- NATIVE PROPERTIES ----------------------------------
|
|
23
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"}
|
|
@@ -6,7 +6,6 @@ import { Alignable, TypographyColor, TypographyBold } from "../../objects";
|
|
|
6
6
|
import { checkCents } from "./PriceHelpers";
|
|
7
7
|
import { hashClass } from "../../helpers";
|
|
8
8
|
import { useTrilogyContext } from "../../context";
|
|
9
|
-
import { PriceLevel } from "./PriceEnum";
|
|
10
9
|
/**
|
|
11
10
|
* Price Component
|
|
12
11
|
* @param amount {number} Amount for Price
|
|
@@ -20,20 +19,19 @@ import { PriceLevel } from "./PriceEnum";
|
|
|
20
19
|
* @param inline {boolean} Inline display Price
|
|
21
20
|
* @param accessibilityLabel {string} Accessibility label
|
|
22
21
|
* @param testId {string} Test Id for Test Integration
|
|
23
|
-
* @param
|
|
22
|
+
* @param suptitle {string} Price Suptitle
|
|
24
23
|
* @param tagAmount {number} Tag amount
|
|
25
24
|
* @param tagSymbol {number} Tag symbol
|
|
26
25
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
27
26
|
* @param className {string} Additionnal CSS Classes
|
|
28
|
-
* @param
|
|
27
|
+
* @param striked {boolean} Striked Price
|
|
29
28
|
* - --------------- NATIVE PROPERTIES ----------------------------------
|
|
30
29
|
* @param accessibilityActivate {boolean}
|
|
31
30
|
*/
|
|
32
|
-
const Price = ({ className, amount, mention, period, showCents
|
|
31
|
+
const Price = ({ className, amount, mention, period, showCents, level, inverted, align, alert, inline, testId, accessibilityLabel, striked, suptitle, tagAmount, tagSymbol, ...others }) => {
|
|
33
32
|
var _a;
|
|
34
33
|
const { styled } = useTrilogyContext();
|
|
35
|
-
const classes = hashClass(styled, clsx("price", level && is(`level-${level}`), inverted && is("inverted"), inline && is("inlined"),
|
|
36
|
-
const classesStriked = hashClass(styled, clsx("price", level && level == PriceLevel.ONE && is(`level-3`) || level == PriceLevel.TWO && is(`level-4`) || level == PriceLevel.THREE && is(`level-5`) || level == PriceLevel.FOUR && is(`level-6`) || is(`level-7`), inverted && is("inverted"), inline && is("inlined"), strikedAmount && is("striked"), overline && has("suptitle"), className));
|
|
34
|
+
const classes = hashClass(styled, clsx("price", alert && is(`${alert}`), level && is(`level-${level}`), inverted && is("inverted"), inline && is("inlined"), striked && is("striked"), suptitle && has("suptitle"), className));
|
|
37
35
|
const priceParentNode = hashClass(styled, clsx((align == Alignable.ALIGNED_START && has("text-left")) ||
|
|
38
36
|
(align == Alignable.ALIGNED_CENTER && has("text-centered")) ||
|
|
39
37
|
(align == Alignable.ALIGNED_END && has("text-right")) ||
|
|
@@ -42,30 +40,14 @@ const Price = ({ className, amount, mention, period, showCents = true, level, in
|
|
|
42
40
|
const absoluteAmount = Math.abs(amount);
|
|
43
41
|
const absoluteWhole = Math.floor(absoluteAmount);
|
|
44
42
|
const whole = isNegative ? -absoluteWhole : absoluteWhole;
|
|
45
|
-
const isNegativeStriked = strikedAmount && strikedAmount < 0;
|
|
46
|
-
const absoluteAmountStriked = strikedAmount && Math.abs(strikedAmount);
|
|
47
|
-
const absoluteWholeStriked = absoluteAmountStriked && Math.floor(absoluteAmountStriked);
|
|
48
|
-
const wholeStriked = isNegativeStriked && absoluteWholeStriked ? -absoluteWholeStriked : absoluteWholeStriked;
|
|
49
43
|
let cents = checkCents(((_a = absoluteAmount.toString().split(/[.,]/)[1]) === null || _a === void 0 ? void 0 : _a.substring(0, 2)) || "");
|
|
50
44
|
cents = (cents && cents.length === 1 && `${cents}0`) || cents;
|
|
51
45
|
const centsDisplayed = (inline && showCents && `,${cents || "00"} €`) ||
|
|
52
46
|
(showCents && `€${cents || "00"}`) ||
|
|
53
47
|
"€";
|
|
54
|
-
const returnComponent = (React.createElement("
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
React.createElement("span", { "aria-hidden": "true", "data-testid": testId, className: classesStriked, ...others },
|
|
58
|
-
React.createElement(Text, { markup: TextMarkup.SPAN }, `${wholeStriked}`),
|
|
59
|
-
React.createElement("span", { className: hashClass(styled, clsx("price-details")) },
|
|
60
|
-
React.createElement("span", { className: hashClass(styled, clsx("cents")) },
|
|
61
|
-
inline && centsDisplayed === "€" ? (React.createElement(React.Fragment, null,
|
|
62
|
-
"\u00A0",
|
|
63
|
-
centsDisplayed)) : (centsDisplayed),
|
|
64
|
-
mention && React.createElement("sup", null, mention)),
|
|
65
|
-
period && (React.createElement("span", { className: hashClass(styled, clsx("period")) },
|
|
66
|
-
"/",
|
|
67
|
-
period)))))),
|
|
68
|
-
React.createElement("span", { "aria-hidden": "true", "data-testid": testId, "aria-label": accessibilityLabel, className: classes, ...others },
|
|
48
|
+
const returnComponent = (React.createElement("span", { className: tagAmount ? hashClass(styled, clsx(is('aligned-center'), is('flex'))) : '' },
|
|
49
|
+
React.createElement("span", { "data-testid": testId, "aria-label": accessibilityLabel, className: classes, ...others },
|
|
50
|
+
suptitle && React.createElement("span", { className: 'price-suptitle' }, suptitle),
|
|
69
51
|
React.createElement(Text, { markup: TextMarkup.SPAN }, `${whole}`),
|
|
70
52
|
React.createElement("span", { className: hashClass(styled, clsx("price-details")) },
|
|
71
53
|
React.createElement("span", { className: hashClass(styled, clsx("cents")) },
|
|
@@ -76,15 +58,14 @@ const Price = ({ className, amount, mention, period, showCents = true, level, in
|
|
|
76
58
|
period && (React.createElement("span", { className: hashClass(styled, clsx("period")) },
|
|
77
59
|
"/",
|
|
78
60
|
period)))),
|
|
79
|
-
tagAmount && (React.createElement("span", {
|
|
61
|
+
tagAmount && (React.createElement("span", { className: hashClass(styled, clsx(('price-tag'))) },
|
|
80
62
|
React.createElement(Text, { markup: TextMarkup.SPAN, typo: [TypographyBold.TEXT_WEIGHT_SEMIBOLD, TypographyColor.TEXT_WHITE] },
|
|
81
63
|
tagAmount,
|
|
82
64
|
" ",
|
|
83
65
|
tagSymbol ? tagSymbol : '€'),
|
|
84
66
|
tagSymbol === '€' && period && React.createElement(Text, { markup: TextMarkup.SPAN, typo: [TypographyBold.TEXT_WEIGHT_NORMAL, TypographyColor.TEXT_WHITE] },
|
|
85
67
|
"\u00A0/",
|
|
86
|
-
period)))
|
|
87
|
-
accessibilityLabel && React.createElement("p", { className: 'sr-only' }, accessibilityLabel)));
|
|
68
|
+
period)))));
|
|
88
69
|
if (align) {
|
|
89
70
|
return React.createElement("div", { className: priceParentNode }, returnComponent);
|
|
90
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Price.js","sourceRoot":"","sources":["../../../components/price/Price.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,IAAI,MAAM,MAAM,CAAA;AAEvB,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO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AQ;YACvJ,SAAS,KAAK,GAAG,IAAI,MAAM,IAAI,oBAAC,IAAI,IAAC,MAAM,EAAE,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,cAAc,CAAC,kBAAkB,EAAE,eAAe,CAAC,UAAU,CAAC;;gBAAU,MAAM,CAAQ,CACvJ,CACR,CACI,CACR,CAAA;IAED,IAAI,KAAK,EAAE;QACT,OAAO,6BAAK,SAAS,EAAE,eAAe,IAAG,eAAe,CAAO,CAAA;KAChE;IAED,OAAO,eAAe,CAAA;AACxB,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -12,15 +12,16 @@ import { ComponentName } from "../../components/enumsComponentsName";
|
|
|
12
12
|
* @param inverted {boolean} Inverted Price Color
|
|
13
13
|
* @param children {React.ReactNode}
|
|
14
14
|
* @param align {Alignable} Price alignement
|
|
15
|
+
* @param alert {AlertState} Alert Variant (INFO|SUCCESS|WARNING|ERROR)
|
|
15
16
|
* @param inline {boolean} Inline display Price
|
|
16
17
|
* @param testId {string} id for test
|
|
17
18
|
* @param accessibilityLabel {string}
|
|
18
|
-
* @param
|
|
19
|
+
* @param suptitle {string} Price Suptitle
|
|
19
20
|
* @param tagAmount {number} Tag amount
|
|
20
21
|
* @param tagSymbol {number} Tag symbol
|
|
21
22
|
*/
|
|
22
23
|
declare const Price: {
|
|
23
|
-
({ amount, mention, period, showCents, level, inverted, align, inline, testId, accessibilityLabel,
|
|
24
|
+
({ amount, mention, period, showCents, level, inverted, align, alert, inline, testId, accessibilityLabel, striked, suptitle, style, tagAmount, tagSymbol, ...others }: PriceProps): JSX.Element;
|
|
24
25
|
displayName: ComponentName;
|
|
25
26
|
};
|
|
26
27
|
export default Price;
|