@trilogy-ds/react 0.0.1-beta-105 → 0.0.1-beta-107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/accordion/Accordion.d.ts +1 -1
- package/lib/components/accordion/Accordion.example.d.ts +3 -0
- package/lib/components/accordion/Accordion.example.js +19 -0
- package/lib/components/accordion/Accordion.example.js.map +1 -0
- package/lib/components/accordion/Accordion.js +3 -4
- package/lib/components/accordion/Accordion.js.map +1 -1
- package/lib/components/accordion/body/AccordionBody.d.ts +1 -0
- package/lib/components/accordion/body/AccordionBody.js +1 -0
- package/lib/components/accordion/body/AccordionBody.js.map +1 -1
- package/lib/components/accordion/body/AccordionBodyProps.d.ts +1 -0
- package/lib/components/accordion/header/AccordionHeader.js +1 -1
- package/lib/components/accordion/header/AccordionHeader.js.map +1 -1
- package/lib/components/accordion/index.d.ts +2 -1
- package/lib/components/accordion/index.js +2 -1
- package/lib/components/accordion/index.js.map +1 -1
- package/lib/components/accordion/item/AccordionItem.js +1 -2
- package/lib/components/accordion/item/AccordionItem.js.map +1 -1
- package/lib/components/accordion/item/AccordionItem.native.js +4 -4
- package/lib/components/accordion/item/AccordionItem.native.js.map +1 -1
- package/lib/components/alert/Alert.d.ts +5 -4
- package/lib/components/alert/Alert.example.d.ts +3 -0
- package/lib/components/alert/Alert.example.js +14 -0
- package/lib/components/alert/Alert.example.js.map +1 -0
- package/lib/components/alert/Alert.js +12 -11
- package/lib/components/alert/Alert.js.map +1 -1
- package/lib/components/alert/Alert.native.d.ts +6 -6
- package/lib/components/alert/Alert.native.js +15 -13
- package/lib/components/alert/Alert.native.js.map +1 -1
- package/lib/components/alert/AlertProps.d.ts +4 -3
- package/lib/components/alert/context/ToasterContextProps.d.ts +3 -3
- package/lib/components/alert/index.d.ts +2 -1
- package/lib/components/alert/index.js +2 -1
- package/lib/components/alert/index.js.map +1 -1
- package/lib/components/autolayout/AutoLayout.native.js +1 -1
- package/lib/components/autolayout/AutoLayout.native.js.map +1 -1
- package/lib/components/autolayout/DefaultSpacingMatrix.js +74 -31
- package/lib/components/autolayout/DefaultSpacingMatrix.js.map +1 -1
- package/lib/components/badge/Badge.d.ts +3 -2
- package/lib/components/badge/Badge.example.d.ts +3 -0
- package/lib/components/badge/Badge.example.js +5 -0
- package/lib/components/badge/Badge.example.js.map +1 -0
- package/lib/components/badge/Badge.js +12 -6
- package/lib/components/badge/Badge.js.map +1 -1
- package/lib/components/badge/Badge.native.d.ts +3 -2
- package/lib/components/badge/Badge.native.js +10 -6
- package/lib/components/badge/Badge.native.js.map +1 -1
- package/lib/components/badge/BadgeEnum.d.ts +5 -0
- package/lib/components/badge/BadgeEnum.js +5 -0
- package/lib/components/badge/BadgeEnum.js.map +1 -1
- package/lib/components/badge/BadgeProps.d.ts +3 -1
- package/lib/components/badge/index.d.ts +2 -1
- package/lib/components/badge/index.js +2 -1
- package/lib/components/badge/index.js.map +1 -1
- package/lib/components/box/Box.d.ts +3 -3
- package/lib/components/box/Box.example.d.ts +3 -0
- package/lib/components/box/Box.example.js +31 -0
- package/lib/components/box/Box.example.js.map +1 -0
- package/lib/components/box/Box.js +4 -4
- package/lib/components/box/Box.js.map +1 -1
- package/lib/components/box/Box.native.d.ts +3 -3
- package/lib/components/box/Box.native.js +14 -13
- package/lib/components/box/Box.native.js.map +1 -1
- package/lib/components/box/BoxProps.d.ts +1 -1
- package/lib/components/box/content/BoxContent.d.ts +2 -2
- package/lib/components/box/content/BoxContent.js +3 -3
- package/lib/components/box/content/BoxContent.js.map +1 -1
- package/lib/components/box/content/BoxContent.native.d.ts +2 -2
- package/lib/components/box/content/BoxContent.native.js +6 -4
- package/lib/components/box/content/BoxContent.native.js.map +1 -1
- package/lib/components/box/index.d.ts +2 -1
- package/lib/components/box/index.js +2 -1
- package/lib/components/box/index.js.map +1 -1
- package/lib/components/breadcrumb/Breadcrumb.d.ts +2 -2
- package/lib/components/breadcrumb/Breadcrumb.example.d.ts +3 -0
- package/lib/components/breadcrumb/Breadcrumb.example.js +9 -0
- package/lib/components/breadcrumb/Breadcrumb.example.js.map +1 -0
- package/lib/components/breadcrumb/Breadcrumb.js +3 -4
- package/lib/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/index.d.ts +2 -1
- package/lib/components/breadcrumb/index.js +2 -1
- package/lib/components/breadcrumb/index.js.map +1 -1
- package/lib/components/button/Button.example.d.ts +3 -0
- package/lib/components/button/Button.example.js +10 -0
- package/lib/components/button/Button.example.js.map +1 -0
- package/lib/components/button/Button.native.js +10 -10
- package/lib/components/button/Button.native.js.map +1 -1
- package/lib/components/button/index.d.ts +2 -1
- package/lib/components/button/index.js +2 -1
- package/lib/components/button/index.js.map +1 -1
- package/lib/components/button/list/ButtonList.native.js +4 -4
- package/lib/components/button/list/ButtonList.native.js.map +1 -1
- package/lib/components/card/Card.d.ts +3 -6
- package/lib/components/card/Card.example.d.ts +3 -0
- package/lib/components/card/Card.example.js +25 -0
- package/lib/components/card/Card.example.js.map +1 -0
- package/lib/components/card/Card.js +7 -9
- package/lib/components/card/Card.js.map +1 -1
- package/lib/components/card/Card.native.d.ts +2 -2
- package/lib/components/card/Card.native.js +7 -7
- package/lib/components/card/Card.native.js.map +1 -1
- package/lib/components/card/content/CardContent.native.d.ts +1 -0
- package/lib/components/card/content/CardContent.native.js +1 -0
- package/lib/components/card/content/CardContent.native.js.map +1 -1
- package/lib/components/card/content/CardContentProps.d.ts +1 -0
- package/lib/components/card/image/CardImage.d.ts +1 -0
- package/lib/components/card/image/CardImage.js +1 -0
- package/lib/components/card/image/CardImage.js.map +1 -1
- package/lib/components/card/image/CardImage.native.d.ts +1 -1
- package/lib/components/card/image/CardImage.native.js +8 -11
- package/lib/components/card/image/CardImage.native.js.map +1 -1
- package/lib/components/card/image/CardImageProps.d.ts +2 -0
- package/lib/components/card/index.d.ts +2 -1
- package/lib/components/card/index.js +2 -1
- package/lib/components/card/index.js.map +1 -1
- package/lib/components/checkbox/Checkbox.example.d.ts +3 -0
- package/lib/components/checkbox/Checkbox.example.js +18 -0
- package/lib/components/checkbox/Checkbox.example.js.map +1 -0
- package/lib/components/checkbox/Checkbox.native.js +8 -8
- package/lib/components/checkbox/Checkbox.native.js.map +1 -1
- package/lib/components/checkbox/index.d.ts +2 -1
- package/lib/components/checkbox/index.js +2 -1
- package/lib/components/checkbox/index.js.map +1 -1
- package/lib/components/chips/Chips.d.ts +2 -1
- package/lib/components/chips/Chips.example.d.ts +3 -0
- package/lib/components/chips/Chips.example.js +13 -0
- package/lib/components/chips/Chips.example.js.map +1 -0
- package/lib/components/chips/Chips.js +6 -4
- package/lib/components/chips/Chips.js.map +1 -1
- package/lib/components/chips/Chips.native.d.ts +2 -1
- package/lib/components/chips/Chips.native.js +8 -6
- package/lib/components/chips/Chips.native.js.map +1 -1
- package/lib/components/chips/ChipsProps.d.ts +1 -0
- package/lib/components/chips/index.d.ts +2 -1
- package/lib/components/chips/index.js +2 -1
- package/lib/components/chips/index.js.map +1 -1
- package/lib/components/chips/list/ChipsList.d.ts +2 -2
- package/lib/components/chips/list/ChipsList.js +3 -4
- package/lib/components/chips/list/ChipsList.js.map +1 -1
- package/lib/components/columns/Columns.d.ts +3 -2
- package/lib/components/columns/Columns.example.d.ts +3 -0
- package/lib/components/columns/Columns.example.js +16 -0
- package/lib/components/columns/Columns.example.js.map +1 -0
- package/lib/components/columns/Columns.js +5 -5
- package/lib/components/columns/Columns.js.map +1 -1
- package/lib/components/columns/ColumnsProps.d.ts +3 -1
- package/lib/components/columns/index.d.ts +2 -1
- package/lib/components/columns/index.js +2 -1
- package/lib/components/columns/index.js.map +1 -1
- package/lib/components/columns/item/ColumnsItem.d.ts +2 -2
- package/lib/components/columns/item/ColumnsItem.js +3 -4
- package/lib/components/columns/item/ColumnsItem.js.map +1 -1
- package/lib/components/columns/item/ColumnsItem.native.js +0 -3
- package/lib/components/columns/item/ColumnsItem.native.js.map +1 -1
- package/lib/components/container/Container.d.ts +2 -2
- package/lib/components/container/Container.example.d.ts +3 -0
- package/lib/components/container/Container.example.js +9 -0
- package/lib/components/container/Container.example.js.map +1 -0
- package/lib/components/container/Container.js +3 -3
- package/lib/components/container/Container.js.map +1 -1
- package/lib/components/container/Container.native.d.ts +2 -2
- package/lib/components/container/Container.native.js +8 -8
- package/lib/components/container/Container.native.js.map +1 -1
- package/lib/components/container/index.d.ts +2 -1
- package/lib/components/container/index.js +2 -1
- package/lib/components/container/index.js.map +1 -1
- package/lib/components/countdown/Countdown.d.ts +1 -2
- package/lib/components/countdown/Countdown.example.d.ts +3 -0
- package/lib/components/countdown/Countdown.example.js +10 -0
- package/lib/components/countdown/Countdown.example.js.map +1 -0
- package/lib/components/countdown/Countdown.js +2 -3
- package/lib/components/countdown/Countdown.js.map +1 -1
- package/lib/components/countdown/Countdown.native.d.ts +1 -2
- package/lib/components/countdown/Countdown.native.js +3 -4
- package/lib/components/countdown/Countdown.native.js.map +1 -1
- package/lib/components/countdown/CountdownProps.d.ts +0 -1
- package/lib/components/countdown/index.d.ts +2 -1
- package/lib/components/countdown/index.js +2 -1
- package/lib/components/countdown/index.js.map +1 -1
- package/lib/components/divider/Divider.example.d.ts +3 -0
- package/lib/components/divider/Divider.example.js +5 -0
- package/lib/components/divider/Divider.example.js.map +1 -0
- package/lib/components/divider/Divider.native.js +2 -2
- package/lib/components/divider/Divider.native.js.map +1 -1
- package/lib/components/divider/index.d.ts +2 -1
- package/lib/components/divider/index.js +2 -1
- package/lib/components/divider/index.js.map +1 -1
- package/lib/components/enumsComponentsName.d.ts +1 -2
- package/lib/components/enumsComponentsName.js +1 -2
- package/lib/components/enumsComponentsName.js.map +1 -1
- package/lib/components/fab/Fab.example.d.ts +3 -0
- package/lib/components/fab/Fab.example.js +10 -0
- package/lib/components/fab/Fab.example.js.map +1 -0
- package/lib/components/fab/FabProps.d.ts +2 -2
- package/lib/components/fab/index.d.ts +2 -1
- package/lib/components/fab/index.js +2 -1
- package/lib/components/fab/index.js.map +1 -1
- package/lib/components/hero/Hero.d.ts +1 -2
- package/lib/components/hero/Hero.example.d.ts +3 -0
- package/lib/components/hero/Hero.example.js +21 -0
- package/lib/components/hero/Hero.example.js.map +1 -0
- package/lib/components/hero/Hero.js +2 -3
- package/lib/components/hero/Hero.js.map +1 -1
- package/lib/components/hero/Hero.native.d.ts +2 -2
- package/lib/components/hero/Hero.native.js +8 -8
- package/lib/components/hero/Hero.native.js.map +1 -1
- package/lib/components/hero/index.d.ts +2 -1
- package/lib/components/hero/index.js +2 -1
- package/lib/components/hero/index.js.map +1 -1
- package/lib/components/icon/Icon.example.d.ts +3 -0
- package/lib/components/icon/Icon.example.js +8 -0
- package/lib/components/icon/Icon.example.js.map +1 -0
- package/lib/components/icon/Icon.js +1 -1
- package/lib/components/icon/Icon.js.map +1 -1
- package/lib/components/icon/Icon.native.js +1 -1
- package/lib/components/icon/Icon.native.js.map +1 -1
- package/lib/components/icon/index.d.ts +2 -1
- package/lib/components/icon/index.js +2 -1
- package/lib/components/icon/index.js.map +1 -1
- package/lib/components/icon/text/TextIcon.d.ts +2 -4
- package/lib/components/icon/text/TextIcon.js +17 -15
- package/lib/components/icon/text/TextIcon.js.map +1 -1
- package/lib/components/image/Image.example.d.ts +3 -0
- package/lib/components/image/Image.example.js +5 -0
- package/lib/components/image/Image.example.js.map +1 -0
- package/lib/components/image/index.d.ts +2 -1
- package/lib/components/image/index.js +2 -1
- package/lib/components/image/index.js.map +1 -1
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.js +0 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/Input.d.ts +72 -2
- package/lib/components/input/Input.example.d.ts +3 -0
- package/lib/components/input/Input.example.js +5 -0
- package/lib/components/input/Input.example.js.map +1 -0
- package/lib/components/input/Input.js +34 -19
- package/lib/components/input/Input.js.map +1 -1
- package/lib/components/input/Input.native.d.ts +4 -4
- package/lib/components/input/Input.native.js +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 +12 -0
- package/lib/components/section/Section.example.js.map +1 -0
- package/lib/components/section/Section.js +6 -7
- package/lib/components/section/Section.js.map +1 -1
- package/lib/components/section/Section.native.d.ts +2 -2
- package/lib/components/section/Section.native.js +4 -4
- package/lib/components/section/Section.native.js.map +1 -1
- package/lib/components/section/SectionProps.d.ts +2 -2
- package/lib/components/section/index.d.ts +2 -1
- package/lib/components/section/index.js +2 -1
- package/lib/components/section/index.js.map +1 -1
- package/lib/components/segment-control/SegmentControl.example.d.ts +3 -0
- package/lib/components/segment-control/SegmentControl.example.js +9 -0
- package/lib/components/segment-control/SegmentControl.example.js.map +1 -0
- package/lib/components/segment-control/SegmentControl.native.js +1 -1
- package/lib/components/segment-control/SegmentControl.native.js.map +1 -1
- package/lib/components/segment-control/SegmentControlProps.d.ts +4 -1
- package/lib/components/segment-control/index.d.ts +2 -1
- package/lib/components/segment-control/index.js +2 -1
- package/lib/components/segment-control/index.js.map +1 -1
- package/lib/components/segment-control/item/SegmentControlItem.native.js +2 -2
- package/lib/components/segment-control/item/SegmentControlItem.native.js.map +1 -1
- package/lib/components/select/Select.example.d.ts +3 -0
- package/lib/components/select/Select.example.js +8 -0
- package/lib/components/select/Select.example.js.map +1 -0
- package/lib/components/select/index.d.ts +2 -1
- package/lib/components/select/index.js +2 -1
- package/lib/components/select/index.js.map +1 -1
- package/lib/components/select/option/SelectOption.d.ts +2 -2
- package/lib/components/select/option/SelectOption.js +3 -4
- package/lib/components/select/option/SelectOption.js.map +1 -1
- package/lib/components/select/option/SelectOption.native.js +7 -19
- package/lib/components/select/option/SelectOption.native.js.map +1 -1
- package/lib/components/selector/item/SelectorItem.native.js +1 -1
- package/lib/components/selector/item/SelectorItem.native.js.map +1 -1
- package/lib/components/spacer/Spacer.d.ts +1 -1
- package/lib/components/spacer/Spacer.js +1 -1
- package/lib/components/spacer/Spacer.native.d.ts +2 -1
- package/lib/components/spacer/Spacer.native.js +2 -1
- package/lib/components/spacer/Spacer.native.js.map +1 -1
- package/lib/components/spacer/SpacerEnum.d.ts +6 -11
- package/lib/components/spacer/SpacerEnum.js +7 -11
- package/lib/components/spacer/SpacerEnum.js.map +1 -1
- package/lib/components/stepper/Stepper.d.ts +2 -2
- package/lib/components/stepper/Stepper.example.d.ts +3 -0
- package/lib/components/stepper/Stepper.example.js +11 -0
- package/lib/components/stepper/Stepper.example.js.map +1 -0
- package/lib/components/stepper/Stepper.js +5 -7
- package/lib/components/stepper/Stepper.js.map +1 -1
- package/lib/components/stepper/Stepper.native.js +2 -1
- package/lib/components/stepper/Stepper.native.js.map +1 -1
- package/lib/components/stepper/index.d.ts +2 -1
- package/lib/components/stepper/index.js +2 -1
- package/lib/components/stepper/index.js.map +1 -1
- package/lib/components/stepper/step/StepperStep.d.ts +2 -2
- package/lib/components/stepper/step/StepperStep.js +3 -4
- package/lib/components/stepper/step/StepperStep.js.map +1 -1
- package/lib/components/stepper/step/StepperStep.native.js +1 -1
- package/lib/components/stepper/step/StepperStep.native.js.map +1 -1
- package/lib/components/sticker/Sticker.d.ts +2 -2
- package/lib/components/sticker/Sticker.example.d.ts +3 -0
- package/lib/components/sticker/Sticker.example.js +10 -0
- package/lib/components/sticker/Sticker.example.js.map +1 -0
- package/lib/components/sticker/Sticker.js +3 -3
- package/lib/components/sticker/Sticker.js.map +1 -1
- package/lib/components/sticker/index.d.ts +2 -1
- package/lib/components/sticker/index.js +2 -1
- package/lib/components/sticker/index.js.map +1 -1
- package/lib/components/switch/Switch.d.ts +2 -2
- package/lib/components/switch/Switch.example.d.ts +3 -0
- package/lib/components/switch/Switch.example.js +12 -0
- package/lib/components/switch/Switch.example.js.map +1 -0
- package/lib/components/switch/Switch.js +4 -4
- package/lib/components/switch/Switch.js.map +1 -1
- package/lib/components/switch/Switch.native.d.ts +2 -2
- package/lib/components/switch/Switch.native.js +7 -6
- package/lib/components/switch/Switch.native.js.map +1 -1
- package/lib/components/switch/SwitchProps.d.ts +2 -2
- package/lib/components/switch/index.d.ts +2 -1
- package/lib/components/switch/index.js +2 -1
- package/lib/components/switch/index.js.map +1 -1
- package/lib/components/table/Table.example.d.ts +3 -0
- package/lib/components/table/Table.example.js +19 -0
- package/lib/components/table/Table.example.js.map +1 -0
- package/lib/components/table/Table.native.js +1 -1
- package/lib/components/table/Table.native.js.map +1 -1
- package/lib/components/table/index.d.ts +2 -1
- package/lib/components/table/index.js +2 -1
- package/lib/components/table/index.js.map +1 -1
- package/lib/components/table/td/TableTd.native.js +2 -2
- package/lib/components/table/td/TableTd.native.js.map +1 -1
- package/lib/components/table/th/TableTh.native.js +2 -2
- package/lib/components/table/th/TableTh.native.js.map +1 -1
- package/lib/components/table/tr/TableTr.native.js +1 -1
- package/lib/components/table/tr/TableTr.native.js.map +1 -1
- package/lib/components/tabs/Tabs.d.ts +2 -2
- package/lib/components/tabs/Tabs.example.d.ts +3 -0
- package/lib/components/tabs/Tabs.example.js +16 -0
- package/lib/components/tabs/Tabs.example.js.map +1 -0
- package/lib/components/tabs/Tabs.js +3 -4
- package/lib/components/tabs/Tabs.js.map +1 -1
- package/lib/components/tabs/index.d.ts +2 -1
- package/lib/components/tabs/index.js +2 -1
- package/lib/components/tabs/index.js.map +1 -1
- package/lib/components/tabs/item/TabsItem.d.ts +2 -2
- package/lib/components/tabs/item/TabsItem.js +4 -5
- package/lib/components/tabs/item/TabsItem.js.map +1 -1
- package/lib/components/tabs/item/TabsItem.native.js +1 -1
- package/lib/components/tabs/item/TabsItem.native.js.map +1 -1
- package/lib/components/tag/Tag.example.d.ts +3 -0
- package/lib/components/tag/Tag.example.js +13 -0
- package/lib/components/tag/Tag.example.js.map +1 -0
- package/lib/components/tag/Tag.native.js +2 -3
- package/lib/components/tag/Tag.native.js.map +1 -1
- package/lib/components/tag/index.d.ts +2 -1
- package/lib/components/tag/index.js +2 -1
- package/lib/components/tag/index.js.map +1 -1
- package/lib/components/tag/list/TagList.d.ts +2 -2
- package/lib/components/tag/list/TagList.js +3 -4
- package/lib/components/tag/list/TagList.js.map +1 -1
- package/lib/components/text/Text.example.d.ts +3 -0
- package/lib/components/text/Text.example.js +5 -0
- package/lib/components/text/Text.example.js.map +1 -0
- package/lib/components/text/Text.native.js +8 -9
- package/lib/components/text/Text.native.js.map +1 -1
- package/lib/components/text/TextEnum.d.ts +5 -5
- package/lib/components/text/TextEnum.js +4 -4
- package/lib/components/text/TextEnum.js.map +1 -1
- package/lib/components/text/index.d.ts +2 -1
- package/lib/components/text/index.js +2 -1
- package/lib/components/text/index.js.map +1 -1
- package/lib/components/textarea/Textarea.d.ts +3 -3
- package/lib/components/textarea/Textarea.example.d.ts +3 -0
- package/lib/components/textarea/Textarea.example.js +12 -0
- package/lib/components/textarea/Textarea.example.js.map +1 -0
- package/lib/components/textarea/Textarea.js +6 -11
- package/lib/components/textarea/Textarea.js.map +1 -1
- package/lib/components/textarea/Textarea.native.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/Variant.js +1 -1
- package/lib/objects/facets/Variant.js.map +1 -1
- package/lib/objects/facets/index.d.ts +1 -1
- package/lib/objects/facets/index.js +1 -1
- package/lib/objects/facets/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/lib/components/accordion/AccordionPropsDefaults.js +0 -45
- package/lib/components/accordion/body/AccordionBodyPropsDefaults.js +0 -52
- package/lib/components/accordion/header/AccordionHeaderPropsDefaults.js +0 -60
- package/lib/components/accordion/item/AccordionItemPropsDefaults.js +0 -68
- package/lib/components/accordion/item/OnClickCallbackDefaults.js +0 -1
- package/lib/components/alert/AlertPropsDefaults.js +0 -155
- package/lib/components/alert/ToasterStatusPropsDefaults.js +0 -227
- package/lib/components/alert/context/ToastConfigDefaults.js +0 -24
- package/lib/components/alert/context/ToastPropsDefaults.js +0 -129
- package/lib/components/autocomplete/AutoComplete.d.ts +0 -4
- package/lib/components/autocomplete/AutoComplete.js.map +0 -1
- package/lib/components/autocomplete/AutoComplete.native.js.map +0 -1
- package/lib/components/autocomplete/AutoCompleteProps.d.ts +0 -49
- package/lib/components/autocomplete/AutoCompleteProps.js.map +0 -1
- package/lib/components/autocomplete/AutoCompletePropsNativeDefaults.js +0 -752
- package/lib/components/autocomplete/AutoCompletePropsWebDefaults.js +0 -752
- package/lib/components/autocomplete/Autocomplete.helpers.js.map +0 -1
- package/lib/components/autocomplete/ItemDefaults.js +0 -10
- package/lib/components/autocomplete/ItemSelectedEventDefaults.js +0 -10
- package/lib/components/autocomplete/index.js.map +0 -1
- package/lib/components/autocomplete/item/AutoCompleteIem.native.js.map +0 -1
- package/lib/components/autocomplete/item/AutoCompleteItem.js.map +0 -1
- package/lib/components/autocomplete/item/AutoCompleteItemProps.js.map +0 -1
- package/lib/components/autocomplete/item/AutoCompleteItemPropsDefaults.js +0 -56
- package/lib/components/autocomplete/item/index.js.map +0 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.js.map +0 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js.map +0 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenuProps.js.map +0 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenuPropsDefaults.js +0 -60
- package/lib/components/autocomplete/menu/index.js.map +0 -1
- package/lib/components/autocomplete/utils/debounce.js.map +0 -1
- package/lib/components/autocomplete/utils/index.js.map +0 -1
- package/lib/components/badge/BadgePropsDefaults.js +0 -75
- package/lib/components/box/BoxPropsDefaults.js +0 -216
- package/lib/components/box/content/BoxContentPropsDefaults.js +0 -102
- package/lib/components/box/footer/BoxFooterPropsDefaults.js +0 -87
- package/lib/components/box/header/BoxHeaderPropsDefaults.js +0 -118
- package/lib/components/box/item/BoxItemPropsDefaults.js +0 -35
- package/lib/components/box/table-container/BoxTableContainerPropsDefaults.js +0 -45
- package/lib/components/breadcrumb/BreadcrumbPropsDefaults.js +0 -38
- package/lib/components/breadcrumb/BreadcrumbWebPropsDefaults.js +0 -45
- package/lib/components/breadcrumb/item/BreadcrumbItemPropsDefaults.js +0 -53
- package/lib/components/breadcrumb/item/BreadcrumbItemPropsWebDefaults.js +0 -253
- package/lib/components/button/ButtonPropsDefaults.js +0 -380
- package/lib/components/button/list/ButtonListPropsDefaults.js +0 -19
- package/lib/components/button/list/ButtonListWebPropsDefaults.js +0 -50
- package/lib/components/card/CardPropsDefaults.js +0 -220
- package/lib/components/card/content/CardContentPropsDefaults.js +0 -153
- package/lib/components/card/image/CardImagePropsDefaults.js +0 -52
- package/lib/components/checkbox/CheckboxChangeEventDefaults.js +0 -21
- package/lib/components/checkbox/CheckboxClickEventDefaults.js +0 -21
- package/lib/components/checkbox/CheckboxPropsDefaults.js +0 -200
- package/lib/components/chips/ChipsPropsDefaults.js +0 -75
- package/lib/components/chips/list/ChipsListPropsDefaults.js +0 -25
- package/lib/components/columns/ColumnsPropsDefaults.js +0 -89
- package/lib/components/columns/item/ColumnsItemPropsDefaults.js +0 -323
- package/lib/components/container/ContainerPropsDefaults.js +0 -185
- package/lib/components/countdown/CountdownPropsDefaults.js +0 -57
- package/lib/components/divider/DividerPropsDefaults.js +0 -210
- package/lib/components/fab/FabPropsDefaults.js +0 -171
- package/lib/components/hero/HeroPropsDefaults.js +0 -144
- package/lib/components/icon/IconPropsDefaults.js +0 -307
- package/lib/components/icon/circle/CircleIconPropsDefaults.js +0 -168
- package/lib/components/icon/status/StatusIconPropsDefaults.js +0 -126
- package/lib/components/icon/text/TextIconPropsDefaults.js +0 -160
- package/lib/components/image/ImagePropsDefaults.js +0 -75
- package/lib/components/input/ILengthVerifyDefaults.js +0 -16
- package/lib/components/input/IValidationRulesDefaults.js +0 -41
- package/lib/components/input/InputChangeEventNativeDefaults.js +0 -17
- package/lib/components/input/InputChangeEventWebDefaults.js +0 -21
- package/lib/components/input/InputClickEventDefaults.js +0 -19
- package/lib/components/input/InputKeyboardEventDefaults.js +0 -27
- package/lib/components/input/InputNativeEventsDefaults.js +0 -37
- package/lib/components/input/InputPropsDefaults.js +0 -654
- package/lib/components/input/InputWebEventsDefaults.js +0 -51
- package/lib/components/link/LinkPropsDefaults.js +0 -367
- package/lib/components/list/ListPropsDefaults.js +0 -53
- package/lib/components/list/item/ListItemPropsDefaults.js +0 -119
- package/lib/components/list/item/description/ListItemDescriptionPropsDefaults.js +0 -23
- package/lib/components/modal/CloseButtonPropsDefaults.js +0 -9
- package/lib/components/modal/ModalContentButtonPropsDefaults.js +0 -16
- package/lib/components/modal/ModalPropsDefaults.js +0 -325
- package/lib/components/modal/footer/ModalFooterPropsDefaults.js +0 -23
- package/lib/components/modal/title/ModalTitlePropsDefaults.js +0 -92
- package/lib/components/otp/OtpPropsDefaults.js +0 -97
- package/lib/components/pagination/PaginationPropsDefaults.js +0 -63
- package/lib/components/popover/PopoverPropsDefaults.js +0 -60
- package/lib/components/popover/PopoverWebPropsDefaults.js +0 -89
- package/lib/components/price/PricePropsDefaults.js +0 -159
- package/lib/components/product-tour/ProductTourPropsDefaults.js +0 -85
- package/lib/components/product-tour/ProductTourWebPropsDefaults.js +0 -92
- package/lib/components/progress/ProgressPropsDefaults.js +0 -95
- package/lib/components/progress/item/ProgressItemPropsDefaults.js +0 -84
- package/lib/components/progress/radial/ProgressRadialPropsDefaults.js +0 -165
- package/lib/components/progress/radial/item/ProgressRadialItemPropsDefaults.js +0 -54
- package/lib/components/radio/RadioPropsDefaults.js +0 -216
- package/lib/components/radio/list/RadioListPropsDefaults.js +0 -19
- package/lib/components/radio/list/RadioListWebPropsDefaults.js +0 -50
- package/lib/components/range/RangePropsDefaults.js +0 -123
- package/lib/components/rows/RowsPropsDefaults.js +0 -31
- package/lib/components/rows/item/RowsItemPropsDefaults.js +0 -31
- package/lib/components/scroll-view/ScrollViewPropsDefaults.js +0 -127
- package/lib/components/section/SectionPropsDefaults.js +0 -118
- package/lib/components/segment-control/SegmentControlPropsDefaults.js +0 -61
- package/lib/components/segment-control/item/SegmentControlItemPropsDefaults.js +0 -55
- package/lib/components/select/ISelectOptionDefaults.js +0 -23
- package/lib/components/select/SelectChangeEventDefaults.js +0 -37
- package/lib/components/select/SelectPropsDefaults.js +0 -187
- package/lib/components/select/option/SelectOptionPropsDefaults.js +0 -134
- package/lib/components/selector/SelectorEndDefaults.js +0 -10
- package/lib/components/selector/SelectorPropsDefaults.js +0 -128
- package/lib/components/selector/item/SelectorItemPropsDefaults.js +0 -84
- package/lib/components/spacer/SpacerPropsDefaults.js +0 -37
- package/lib/components/stepper/StepperPropsDefaults.js +0 -31
- package/lib/components/stepper/step/StepperStepPropsDefaults.js +0 -136
- package/lib/components/sticker/StickerPropsDefaults.js +0 -71
- package/lib/components/styleComponent/default/index.d.ts +0 -1
- package/lib/components/styleComponent/default/index.js +0 -2
- package/lib/components/styleComponent/default/index.js.map +0 -1
- package/lib/components/styleComponent/default/styleComponent.d.ts +0 -6
- package/lib/components/styleComponent/default/styleComponent.js +0 -7
- package/lib/components/styleComponent/default/styleComponent.js.map +0 -1
- package/lib/components/styleComponent/default/styleComponent.native.d.ts +0 -5
- package/lib/components/styleComponent/default/styleComponent.native.js +0 -6
- package/lib/components/styleComponent/default/styleComponent.native.js.map +0 -1
- package/lib/components/styleComponent/index.d.ts +0 -2
- package/lib/components/styleComponent/index.js +0 -3
- package/lib/components/styleComponent/index.js.map +0 -1
- package/lib/components/styleComponent/mangled/index.d.ts +0 -1
- package/lib/components/styleComponent/mangled/index.js +0 -2
- package/lib/components/styleComponent/mangled/index.js.map +0 -1
- package/lib/components/styleComponent/mangled/styleComponentMangled.d.ts +0 -6
- package/lib/components/styleComponent/mangled/styleComponentMangled.js +0 -7
- package/lib/components/styleComponent/mangled/styleComponentMangled.js.map +0 -1
- package/lib/components/styleComponent/mangled/styleComponentMangled.native.d.ts +0 -5
- package/lib/components/styleComponent/mangled/styleComponentMangled.native.js +0 -6
- package/lib/components/styleComponent/mangled/styleComponentMangled.native.js.map +0 -1
- package/lib/components/switch/SwitchChangeEventDefaults.js +0 -13
- package/lib/components/switch/SwitchPropsDefaults.js +0 -105
- package/lib/components/table/TablePropsDefaults.js +0 -63
- package/lib/components/table/body/TableBodyPropsDefaults.js +0 -107
- package/lib/components/table/head/TableHeadPropsDefaults.js +0 -107
- package/lib/components/table/td/TableTdPropsDefaults.js +0 -44
- package/lib/components/table/th/TableThPropsDefaults.js +0 -44
- package/lib/components/table/tr/TableTrPropsWebDefaults.js +0 -102
- package/lib/components/tabs/TabsPropsDefaults.js +0 -160
- package/lib/components/tabs/item/TabsItemPropsDefaults.js +0 -336
- package/lib/components/tag/TagClickEventDefaults.js +0 -1
- package/lib/components/tag/TagPropsDefaults.js +0 -119
- package/lib/components/tag/list/TagListPropsDefaults.js +0 -47
- package/lib/components/text/TextPropsDefaults.js +0 -192
- package/lib/components/textarea/TextareaChangeEventDefaults.js +0 -10
- package/lib/components/timeline/TimelinePropsDefaults.js +0 -39
- package/lib/components/timeline/content/TimelineContentPropsDefaults.js +0 -51
- package/lib/components/timeline/content/TimelineContentWebPropsDefaults.js +0 -58
- package/lib/components/timeline/item/TimelineItemPropsDefaults.js +0 -48
- package/lib/components/timeline/item/TimelineItemWebPropsDefaults.js +0 -55
- package/lib/components/timeline/marker/TimelineMarkerPropsDefaults.js +0 -113
- package/lib/components/timeline/marker/TimelineMarkerWebPropsDefaults.js +0 -127
- package/lib/components/title/TitlePropsDefaults.js +0 -165
- package/lib/components/view/ViewPropsDefaults.js +0 -221
- package/lib/objects/facets/Status.d.ts +0 -63
- package/lib/objects/facets/Status.js +0 -70
- package/lib/objects/facets/Status.js.map +0 -1
- /package/lib/components/{autocomplete → input/autocomplete}/AutoCompleteProps.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/Autocomplete.helpers.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/Autocomplete.helpers.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/index.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/index.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteIem.native.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteItem.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteItemProps.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/item/index.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/item/index.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenu.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenu.native.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenuProps.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenuProps.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/menu/index.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/menu/index.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/utils/debounce.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/utils/debounce.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/utils/index.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/utils/index.js +0 -0
|
@@ -4,5 +4,5 @@ import { AccordionProps } from "./AccordionProps";
|
|
|
4
4
|
* Accordion Component
|
|
5
5
|
* @param className {string} Additionnal CSS Classes
|
|
6
6
|
*/
|
|
7
|
-
declare const Accordion:
|
|
7
|
+
declare const Accordion: ({ className, testId, ...others }: AccordionProps) => React.JSX.Element;
|
|
8
8
|
export default Accordion;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Accordion, AccordionBody, AccordionHeader, AccordionItem } from './index';
|
|
3
|
+
const AccordionExample = React.createElement(Accordion, null,
|
|
4
|
+
React.createElement(AccordionItem, { active: true, id: '1' },
|
|
5
|
+
React.createElement(AccordionHeader, null, "Hello World"),
|
|
6
|
+
React.createElement(AccordionBody, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur. Aenean ac eleifend lacus, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem., consectetur adipiscing elit. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur. Aenean ac eleifend lacus, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem.")),
|
|
7
|
+
React.createElement(AccordionItem, { id: 'DEUX' },
|
|
8
|
+
React.createElement(AccordionHeader, null,
|
|
9
|
+
"Hello World",
|
|
10
|
+
' '),
|
|
11
|
+
React.createElement(AccordionBody, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur. Aenean ac eleifend lacus, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem.")),
|
|
12
|
+
React.createElement(AccordionItem, { id: 'TROIS' },
|
|
13
|
+
React.createElement(AccordionHeader, null, "Hello World"),
|
|
14
|
+
React.createElement(AccordionBody, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur. Aenean ac eleifend lacus, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem.")),
|
|
15
|
+
React.createElement(AccordionItem, { disabled: true, id: 'QUATRE' },
|
|
16
|
+
React.createElement(AccordionHeader, null, "Item disabled"),
|
|
17
|
+
React.createElement(AccordionBody, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur. Aenean ac eleifend lacus, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem.")));
|
|
18
|
+
export default AccordionExample;
|
|
19
|
+
//# sourceMappingURL=Accordion.example.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.example.js","sourceRoot":"","sources":["../../../components/accordion/Accordion.example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAElF,MAAM,gBAAgB,GAAoB,oBAAC,SAAS;IAClD,oBAAC,aAAa,IACZ,MAAM,QACN,EAAE,EAAC,GAAG;QAEN,oBAAC,eAAe,sBAEE;QAClB,oBAAC,aAAa,i2BAEE,CACF;IAChB,oBAAC,aAAa,IAAC,EAAE,EAAC,MAAM;QACtB,oBAAC,eAAe;;YACF,GAAG,CACC;QAClB,oBAAC,aAAa,mcAEE,CACF;IAChB,oBAAC,aAAa,IAAC,EAAE,EAAC,OAAO;QACvB,oBAAC,eAAe,sBAEE;QAClB,oBAAC,aAAa,mcAEE,CACF;IAChB,oBAAC,aAAa,IACZ,QAAQ,QACR,EAAE,EAAC,QAAQ;QAEX,oBAAC,eAAe,wBAEE;QAClB,oBAAC,aAAa,mcAEE,CACF,CACN,CAAA;AAEZ,eAAe,gBAAgB,CAAA"}
|
|
@@ -6,11 +6,10 @@ import { hashClass } from "../../helpers/hashClassesHelpers";
|
|
|
6
6
|
* Accordion Component
|
|
7
7
|
* @param className {string} Additionnal CSS Classes
|
|
8
8
|
*/
|
|
9
|
-
const Accordion =
|
|
10
|
-
const { className, testId, ...others } = props;
|
|
9
|
+
const Accordion = ({ className, testId, ...others }) => {
|
|
11
10
|
const { styled } = useTrilogyContext();
|
|
12
11
|
const classes = hashClass(styled, clsx("accordions", className));
|
|
13
|
-
return React.createElement("section", {
|
|
14
|
-
}
|
|
12
|
+
return React.createElement("section", { className: classes, ...others, "data-testid": testId });
|
|
13
|
+
};
|
|
15
14
|
export default Accordion;
|
|
16
15
|
//# sourceMappingURL=Accordion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../components/accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAExD;;;GAGG;AACH,MAAM,SAAS,GAAG,
|
|
1
|
+
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../components/accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAExD;;;GAGG;AACH,MAAM,SAAS,GAAG,CAAC,EACjB,SAAS,EACT,MAAM,EACN,GAAG,MAAM,EACM,EAAqB,EAAE;IACtC,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAAA;IACtC,MAAM,OAAO,GAAG,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC,CAAA;IAChE,OAAO,iCAAS,SAAS,EAAE,OAAO,KAAM,MAAM,iBAAe,MAAM,GAAI,CAAA;AACzE,CAAC,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -5,6 +5,7 @@ import { AccordionBodyProps } from "./AccordionBodyProps";
|
|
|
5
5
|
* @param children {React.ReactNode} Children for Accordion body
|
|
6
6
|
* - ------------------ WEB PROPERTIES -----------------------
|
|
7
7
|
* @param className {string} Additionnal CSS Classes
|
|
8
|
+
* @param contentClassName {string} Additionnal CSS Classes for accordion-content
|
|
8
9
|
*/
|
|
9
10
|
declare const AccordionBody: ({ children, className, dataId, testId, ...others }: AccordionBodyProps) => React.JSX.Element;
|
|
10
11
|
export default AccordionBody;
|
|
@@ -7,6 +7,7 @@ import { useTrilogyContext } from "../../../context";
|
|
|
7
7
|
* @param children {React.ReactNode} Children for Accordion body
|
|
8
8
|
* - ------------------ WEB PROPERTIES -----------------------
|
|
9
9
|
* @param className {string} Additionnal CSS Classes
|
|
10
|
+
* @param contentClassName {string} Additionnal CSS Classes for accordion-content
|
|
10
11
|
*/
|
|
11
12
|
const AccordionBody = ({ children, className, dataId, testId, ...others }) => {
|
|
12
13
|
const { styled } = useTrilogyContext();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionBody.js","sourceRoot":"","sources":["../../../../components/accordion/body/AccordionBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAE7C
|
|
1
|
+
{"version":3,"file":"AccordionBody.js","sourceRoot":"","sources":["../../../../components/accordion/body/AccordionBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAE7C;;;;;;GAMG;AACH,MAAM,aAAa,GAAG,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,MAAM,EACN,GAAG,MAAM,EACU,EAAqB,EAAE;IAC1C,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAEtC,OAAO,CACL,oDACuB,IAAI,aAChB,MAAM,iBACF,MAAM,EACnB,SAAS,EAAE,SAAS,CAClB,MAAM,EACN,IAAI,CAAC,2BAA2B,EAAE,SAAS,CAAC,CAC7C,KACG,MAAM,EACV,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;YACb,CAAC,CAAC,eAAe,EAAE,CAAA;QACrB,CAAC;QAED,6BAAK,SAAS,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC,IACzD,QAAQ,CACL,CACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -11,7 +11,7 @@ import { useTrilogyContext } from "../../../context";
|
|
|
11
11
|
*/
|
|
12
12
|
const AccordionHeader = ({ children, className, testId, ...others }) => {
|
|
13
13
|
const { styled } = useTrilogyContext();
|
|
14
|
-
return (React.createElement("summary", { "data-accordion-header": true, className: hashClass(styled, clsx("accordion-header", className)),
|
|
14
|
+
return (React.createElement("summary", { "data-accordion-header": true, className: hashClass(styled, clsx("accordion-header", className)), "aria-label": 'toggle', ...others, "data-testid": testId }, children));
|
|
15
15
|
};
|
|
16
16
|
export default AccordionHeader;
|
|
17
17
|
//# sourceMappingURL=AccordionHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionHeader.js","sourceRoot":"","sources":["../../../../components/accordion/header/AccordionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAE7C;;;;;;GAMG;AACH,MAAM,eAAe,GAAG,CAAC,EACvB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,GAAG,MAAM,EACY,EAAqB,EAAE;IAC5C,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAEtC,OAAO,CACL,0DACyB,IAAI,EAC3B,SAAS,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"AccordionHeader.js","sourceRoot":"","sources":["../../../../components/accordion/header/AccordionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAE7C;;;;;;GAMG;AACH,MAAM,eAAe,GAAG,CAAC,EACvB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,GAAG,MAAM,EACY,EAAqB,EAAE;IAC5C,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAEtC,OAAO,CACL,0DACyB,IAAI,EAC3B,SAAS,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC,gBACtD,QAAQ,KACf,MAAM,iBACG,MAAM,IAElB,QAAQ,CACD,CACX,CAAA;AACH,CAAC,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -2,4 +2,5 @@ import Accordion from './Accordion';
|
|
|
2
2
|
import AccordionItem from './item';
|
|
3
3
|
import AccordionHeader from './header';
|
|
4
4
|
import AccordionBody from './body';
|
|
5
|
-
|
|
5
|
+
import AccordionExample from './Accordion.example';
|
|
6
|
+
export { Accordion, AccordionItem, AccordionHeader, AccordionBody, AccordionExample };
|
|
@@ -2,5 +2,6 @@ import Accordion from './Accordion';
|
|
|
2
2
|
import AccordionItem from './item';
|
|
3
3
|
import AccordionHeader from './header';
|
|
4
4
|
import AccordionBody from './body';
|
|
5
|
-
|
|
5
|
+
import AccordionExample from './Accordion.example';
|
|
6
|
+
export { Accordion, AccordionItem, AccordionHeader, AccordionBody, AccordionExample };
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/accordion/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,aAAa,MAAM,QAAQ,CAAA;AAClC,OAAO,eAAe,MAAM,UAAU,CAAA;AACtC,OAAO,aAAa,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/accordion/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,aAAa,MAAM,QAAQ,CAAA;AAClC,OAAO,eAAe,MAAM,UAAU,CAAA;AACtC,OAAO,aAAa,MAAM,QAAQ,CAAA;AAClC,OAAO,gBAAgB,MAAM,qBAAqB,CAAA;AAElD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -27,13 +27,12 @@ const AccordionItem = ({ active, className, children, id = shortid.generate(), o
|
|
|
27
27
|
// un événement onClick qui initie le scrollTo en amont de déclencher le toggle.
|
|
28
28
|
// C'est-à-dire avant que l'accordion a été rendu dans son état déplié.
|
|
29
29
|
useEffect(() => {
|
|
30
|
-
var _a;
|
|
31
30
|
const e = ref.current;
|
|
32
31
|
if (!e) {
|
|
33
32
|
return;
|
|
34
33
|
}
|
|
35
34
|
const { floor, abs } = Math;
|
|
36
|
-
const firstChild =
|
|
35
|
+
const firstChild = e.children[1].firstChild;
|
|
37
36
|
const expandedInactive = floor(abs(e.clientHeight + (firstChild === null || firstChild === void 0 ? void 0 : firstChild.clientHeight))).toString();
|
|
38
37
|
const expandedActive = floor(abs(e.clientHeight)).toString();
|
|
39
38
|
const collapsedInactive = floor(abs(e.clientHeight + 1)).toString();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../../components/accordion/item/AccordionItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC1D,OAAO,OAAO,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../../components/accordion/item/AccordionItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC1D,OAAO,OAAO,MAAM,SAAS,CAAA;AAG7B,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAE7C;;;;;;;;;;GAUG;AACH,MAAM,aAAa,GAAG,CAAC,EACrB,MAAM,EACN,SAAS,EACT,QAAQ,EACR,EAAE,GAAG,OAAO,CAAC,QAAQ,EAAE,EACvB,OAAO,EACP,QAAQ,EACR,OAAO,EACP,MAAM,EACN,GAAG,MAAM,EACU,EAAe,EAAE;IACpC,MAAM,GAAG,GAAG,MAAM,CAAqB,IAAI,CAAC,CAAA;IAC5C,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAEtC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAU,MAAM,IAAI,KAAK,CAAC,CAAA;IAClE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,EAAU,CAAA;IAC9D,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GA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AAED,eAAe,aAAa,CAAA"}
|
|
@@ -30,11 +30,11 @@ const AccordionItem = ({ active, id, onClick, disabled, onOpen, onClose, childre
|
|
|
30
30
|
padding: 5,
|
|
31
31
|
borderRadius: 6,
|
|
32
32
|
backgroundColor: disabled
|
|
33
|
-
? getColorStyle(TrilogyColor.
|
|
33
|
+
? getColorStyle(TrilogyColor.DISABLED, 1)
|
|
34
34
|
: getColorStyle(TrilogyColor.BACKGROUND),
|
|
35
35
|
borderWidth: 1,
|
|
36
|
-
borderColor: (disabled && getColorStyle(TrilogyColor.
|
|
37
|
-
getColorStyle(TrilogyColor.
|
|
36
|
+
borderColor: (disabled && getColorStyle(TrilogyColor.DISABLED, 1)) ||
|
|
37
|
+
getColorStyle(TrilogyColor.FONT, 1)
|
|
38
38
|
},
|
|
39
39
|
bodyBackground: {
|
|
40
40
|
borderRadius: 6,
|
|
@@ -144,7 +144,7 @@ const AccordionItem = ({ active, id, onClick, disabled, onOpen, onClose, childre
|
|
|
144
144
|
onLayout: (e) => {
|
|
145
145
|
setBodySectionHeight(e.nativeEvent.layout.height);
|
|
146
146
|
} }, childs.body && React.createElement(View, null, childs.body)))),
|
|
147
|
-
React.createElement(Spacer, { size: SpacerSize.
|
|
147
|
+
React.createElement(Spacer, { size: SpacerSize.SMALL })));
|
|
148
148
|
};
|
|
149
149
|
AccordionItem.displayName = ComponentName.AccordionItem;
|
|
150
150
|
export default AccordionItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionItem.native.js","sourceRoot":"","sources":["../../../../components/accordion/item/AccordionItem.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC1D,OAAO,EACL,QAAQ,EACR,MAAM,EACN,UAAU,EACV,wBAAwB,EACxB,IAAI,GACL,MAAM,cAAc,CAAA;AAErB,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAOhE;;;;;;;;;GASG;AACH,MAAM,aAAa,GAAG,CAAC,EACrB,MAAM,EACN,EAAE,EACF,OAAO,EACP,QAAQ,EACR,MAAM,EACN,OAAO,EACP,QAAQ,EACR,GAAG,MAAM,EACU,EAAe,EAAE;IACpC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CACtC,OAAO,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CACxD,CAAA;IACD,MAAM,kBAAkB,GAAG,MAAM,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAA;IAChE,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC,CAAA;IACrE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAiB;QACnD,MAAM,EAAE,SAAS;QACjB,IAAI,EAAE,SAAS;KAChB,CAAC,CAAA;IAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAC/B,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,CAAC;YACV,YAAY,EAAE,CAAC;YACf,eAAe,EAAE,QAAQ;gBACvB,CAAC,CAAC,aAAa,CAAC,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"AccordionItem.native.js","sourceRoot":"","sources":["../../../../components/accordion/item/AccordionItem.native.tsx"],"names":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AC,IAAI,IAAC,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE;wBAC5D,oBAAC,IAAI,IACH,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,QAAQ,CAAC,OAAO,EACtB,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,GAC3D,CACY,CACX,CACkB;YAC3B,oBAAC,QAAQ,CAAC,IAAI,IAAC,KAAK,EAAE,CAAC,MAAM,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;gBACnE,oBAAC,IAAI,IACH,KAAK,EAAE,MAAM,CAAC,aAAa;oBAC3B,8DAA8D;oBAC9D,QAAQ,EAAE,CAAC,CAAM,EAAE,EAAE;wBACnB,oBAAoB,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;oBACnD,CAAC,IAEA,MAAM,CAAC,IAAI,IAAI,oBAAC,IAAI,QAAE,MAAM,CAAC,IAAI,CAAQ,CACrC,CACO,CACX;QACP,oBAAC,MAAM,IAAC,IAAI,EAAE,UAAU,CAAC,KAAK,GAAI,CACjC,CACJ,CAAA;AACH,CAAC,CAAA;AAED,aAAa,CAAC,WAAW,GAAG,aAAa,CAAC,aAAa,CAAA;AAEvD,eAAe,aAAa,CAAA"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AlertProps,
|
|
2
|
+
import { AlertProps, ToasterAlertProps } from "./AlertProps";
|
|
3
3
|
/**
|
|
4
4
|
* Alert Component
|
|
5
5
|
* @param iconName {IconName} Custom icon
|
|
6
6
|
* @param title {string} Alert title content
|
|
7
7
|
* @param description {string|ReactNode} Alertt description content
|
|
8
|
-
* @param
|
|
8
|
+
* @param alert {AlertState} Alert Variant (INFO|SUCCESS|WARNING|ERROR)
|
|
9
9
|
* @param onClick {Function} onClick Event for all alert
|
|
10
10
|
* @param className {string} Additionnal CSS Classes
|
|
11
|
+
* @param iconClassname {string} Additionnal Icon CSS
|
|
11
12
|
* @param display
|
|
12
13
|
* @param others
|
|
13
14
|
*/
|
|
14
|
-
declare const Alert: ({
|
|
15
|
+
declare const Alert: ({ alert, className, iconClassname, iconName, title, description, onClick, display, testId, ...others }: AlertProps) => JSX.Element;
|
|
15
16
|
/**
|
|
16
17
|
* Toaster Alert Provider
|
|
17
18
|
* @param children {React.ReactNode} Custom Toast Content
|
|
@@ -19,5 +20,5 @@ declare const Alert: ({ status, className, iconName, title, description, onClick
|
|
|
19
20
|
* @param offset {number} Offset position margin (Default: 10 dp)
|
|
20
21
|
* @param others
|
|
21
22
|
*/
|
|
22
|
-
export declare const ToasterAlertProvider: ({ children }:
|
|
23
|
+
export declare const ToasterAlertProvider: ({ children }: ToasterAlertProps) => JSX.Element;
|
|
23
24
|
export default Alert;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Alert } from './index';
|
|
3
|
+
import { Columns, ColumnsItem } from '../columns';
|
|
4
|
+
const AlertExample = React.createElement(Columns, { multiline: true },
|
|
5
|
+
React.createElement(ColumnsItem, { size: 6 },
|
|
6
|
+
React.createElement(Alert, { alert: 'INFO', description: 'Lorem Ipsum is simply dummy text type and scrambled it to make a type specimen book..', display: true, title: 'Alert information' })),
|
|
7
|
+
React.createElement(ColumnsItem, { size: 6 },
|
|
8
|
+
React.createElement(Alert, { alert: 'ERROR', description: 'Lorem Ipsum is simply dummy text type and scrambled it to make a type specimen book..', display: true, title: 'Alert information' })),
|
|
9
|
+
React.createElement(ColumnsItem, { size: 6 },
|
|
10
|
+
React.createElement(Alert, { alert: 'SUCCESS', description: 'Lorem Ipsum is simply dummy text type and scrambled it to make a type specimen book..', display: true, title: 'Alert information' })),
|
|
11
|
+
React.createElement(ColumnsItem, { size: 6 },
|
|
12
|
+
React.createElement(Alert, { alert: 'WARNING', description: 'Lorem Ipsum is simply dummy text type and scrambled it to make a type specimen book..', display: true, title: 'Alert information' })));
|
|
13
|
+
export default AlertExample;
|
|
14
|
+
//# sourceMappingURL=Alert.example.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.example.js","sourceRoot":"","sources":["../../../components/alert/Alert.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,GAClB,oBAAC,OAAO,IAAC,SAAS;IACN,oBAAC,WAAW,IAAC,IAAI,EAAE,CAAC;QACpB,oBAAC,KAAK,IACJ,KAAK,EAAC,MAAM,EACZ,WAAW,EAAC,uFAAuF,EACnG,OAAO,QACP,KAAK,EAAC,mBAAmB,GACzB,CACY;IACd,oBAAC,WAAW,IAAC,IAAI,EAAE,CAAC;QACpB,oBAAC,KAAK,IACJ,KAAK,EAAC,OAAO,EACb,WAAW,EAAC,uFAAuF,EACnG,OAAO,QACP,KAAK,EAAC,mBAAmB,GACzB,CACY;IACd,oBAAC,WAAW,IAAC,IAAI,EAAE,CAAC;QACpB,oBAAC,KAAK,IACJ,KAAK,EAAC,SAAS,EACf,WAAW,EAAC,uFAAuF,EACnG,OAAO,QACP,KAAK,EAAC,mBAAmB,GACzB,CACY;IACd,oBAAC,WAAW,IAAC,IAAI,EAAE,CAAC;QACpB,oBAAC,KAAK,IACJ,KAAK,EAAC,SAAS,EACf,WAAW,EAAC,uFAAuF,EACnG,OAAO,QACP,KAAK,EAAC,mBAAmB,GACzB,CACY,CACR,CAAA;AAElB,eAAe,YAAY,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { getAlertClassName, getAlertIconName } from "../../objects";
|
|
4
4
|
import { has, is } from "../../services/classify";
|
|
5
5
|
import { Icon, IconName, IconSize } from "../../components/icon";
|
|
6
6
|
import { Text } from "../../components/text";
|
|
@@ -16,7 +16,7 @@ import { useEffect, useRef, useState } from "react";
|
|
|
16
16
|
*/
|
|
17
17
|
const ToasterAlert = ({ props, ...others }) => {
|
|
18
18
|
const { styled } = useTrilogyContext();
|
|
19
|
-
const { title, position, description, iconName,
|
|
19
|
+
const { title, position, description, iconName, alert, closable, onClick, className, offset, children } = props;
|
|
20
20
|
const displayed = Boolean(title);
|
|
21
21
|
const positionTop = {
|
|
22
22
|
top: offset || 0,
|
|
@@ -26,7 +26,7 @@ const ToasterAlert = ({ props, ...others }) => {
|
|
|
26
26
|
bottom: offset || 0,
|
|
27
27
|
position: 'fixed',
|
|
28
28
|
};
|
|
29
|
-
const classes = hashClass(styled, clsx('toaster',
|
|
29
|
+
const classes = hashClass(styled, clsx('toaster', alert && is(getAlertClassName(alert)), !alert && is('info'), className));
|
|
30
30
|
if (!displayed) {
|
|
31
31
|
return null;
|
|
32
32
|
}
|
|
@@ -57,31 +57,32 @@ const ToasterAlert = ({ props, ...others }) => {
|
|
|
57
57
|
* @param iconName {IconName} Custom icon
|
|
58
58
|
* @param title {string} Alert title content
|
|
59
59
|
* @param description {string|ReactNode} Alertt description content
|
|
60
|
-
* @param
|
|
60
|
+
* @param alert {AlertState} Alert Variant (INFO|SUCCESS|WARNING|ERROR)
|
|
61
61
|
* @param onClick {Function} onClick Event for all alert
|
|
62
62
|
* @param className {string} Additionnal CSS Classes
|
|
63
|
+
* @param iconClassname {string} Additionnal Icon CSS
|
|
63
64
|
* @param display
|
|
64
65
|
* @param others
|
|
65
66
|
*/
|
|
66
|
-
const Alert = ({
|
|
67
|
+
const Alert = ({ alert, className, iconClassname, iconName, title, description, onClick, display, testId, ...others }) => {
|
|
67
68
|
const { styled } = useTrilogyContext();
|
|
68
|
-
const classes = hashClass(styled, clsx("alert", has("body"),
|
|
69
|
+
const classes = hashClass(styled, clsx("alert", has("body"), alert && is(getAlertClassName(alert)), className));
|
|
69
70
|
const iconAlert = React.useMemo(() => {
|
|
70
71
|
var _a;
|
|
71
72
|
if (iconName != null)
|
|
72
73
|
return iconName;
|
|
73
|
-
else if (
|
|
74
|
-
return (_a =
|
|
74
|
+
else if (alert)
|
|
75
|
+
return (_a = getAlertIconName(alert)) !== null && _a !== void 0 ? _a : IconName.INFOS_CIRCLE;
|
|
75
76
|
else
|
|
76
77
|
return IconName.INFOS_CIRCLE;
|
|
77
|
-
}, [iconName,
|
|
78
|
+
}, [iconName, alert]);
|
|
78
79
|
if (display) {
|
|
79
80
|
return (React.createElement("div", { "data-testid": testId, onClick: (e) => {
|
|
80
81
|
// eslint-disable-next-line no-unused-expressions
|
|
81
82
|
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
82
83
|
e.stopPropagation();
|
|
83
84
|
}, className: classes, ...others },
|
|
84
|
-
React.createElement(Icon, { name: iconAlert }),
|
|
85
|
+
React.createElement(Icon, { className: iconClassname, name: iconAlert }),
|
|
85
86
|
React.createElement("div", { className: hashClass(styled, clsx("body")) },
|
|
86
87
|
title && typeof title.valueOf() === "string" ? (React.createElement(Title, { level: TitleLevels.SIX }, title)) : (title),
|
|
87
88
|
description && typeof description.valueOf() === "string" ? (React.createElement(Text, null, description)) : (description))));
|
|
@@ -116,7 +117,7 @@ export const ToasterAlertProvider = ({ children }) => {
|
|
|
116
117
|
description: toasterState === null || toasterState === void 0 ? void 0 : toasterState.description,
|
|
117
118
|
position: toasterState === null || toasterState === void 0 ? void 0 : toasterState.position,
|
|
118
119
|
iconName: toasterState === null || toasterState === void 0 ? void 0 : toasterState.iconName,
|
|
119
|
-
|
|
120
|
+
alert: toasterState === null || toasterState === void 0 ? void 0 : toasterState.alert,
|
|
120
121
|
onClick: toasterState === null || toasterState === void 0 ? void 0 : toasterState.onClick,
|
|
121
122
|
onHide: toasterState === null || toasterState === void 0 ? void 0 : toasterState.onHide,
|
|
122
123
|
closable: toasterState === null || toasterState === void 0 ? void 0 : toasterState.closable,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../components/alert/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../components/alert/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAC/D,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAc,oBAAoB,EAAqB,MAAM,cAAc,CAAA;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,cAAc,MAAM,WAAW,CAAA;AACtC,OAAO,EAAiB,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAElE;;;GAGG;AACH,MAAM,YAAY,GAA2C,CAAC,EAAE,KAAK,EAAE,GAAG,MAAM,EAAE,EAAE,EAAE;IACpF,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAEtC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,KA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AAY,uBAAZ,YAAY,CAAE,KAAK;gBAC1B,OAAO,EAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,OAAO;gBAC9B,MAAM,EAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,MAAM;gBAC5B,QAAQ,EAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,QAAQ;gBAChC,MAAM,EAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,MAAM;gBAC5B,MAAM,EAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,MAAM;aAC7B,GACD,CACsB,CAC3B,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { AlertProps,
|
|
2
|
+
import { AlertProps, ToasterAlertProps } from "./AlertProps";
|
|
3
3
|
import { ComponentName } from "../../components/enumsComponentsName";
|
|
4
4
|
/**
|
|
5
5
|
* Alert Component
|
|
6
6
|
* @param iconName {IconName} Custom icon
|
|
7
7
|
* @param title {string} Alert title content
|
|
8
8
|
* @param description {string|ReactNode} Aleert description content
|
|
9
|
-
* @param
|
|
9
|
+
* @param alert {AlertState} Alert Variant (INFO|SUCCESS|WARNING|ERROR)
|
|
10
10
|
* @param info (boolean) Small info alert use it without button and arrow
|
|
11
11
|
* @param onClick {Function} onClick Event for all alert
|
|
12
12
|
*/
|
|
13
13
|
declare const Alert: {
|
|
14
|
-
({
|
|
14
|
+
({ alert, iconName, title, description, onClick, display, ...others }: AlertProps): JSX.Element;
|
|
15
15
|
displayName: ComponentName;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
@@ -19,12 +19,12 @@ declare const Alert: {
|
|
|
19
19
|
* @param title {string} Notification title content
|
|
20
20
|
* @param description {string|ReactNode} Notification description content
|
|
21
21
|
* @param iconName {IconName} Custom icon
|
|
22
|
-
* @param
|
|
22
|
+
* @param alert {AlertState} Alert Variant (INFO|SUCCESS|WARNING|ERROR)
|
|
23
23
|
* @param onClick {Function} onClick Event for all notification
|
|
24
24
|
* @param closable {Function} onClick Event on cross icon
|
|
25
25
|
*/
|
|
26
26
|
export declare const ToasterAlert: React.FC<{
|
|
27
|
-
props:
|
|
27
|
+
props: ToasterAlertProps;
|
|
28
28
|
}>;
|
|
29
29
|
/**
|
|
30
30
|
* Toaster provider
|
|
@@ -33,5 +33,5 @@ export declare const ToasterAlert: React.FC<{
|
|
|
33
33
|
* @param offset {number} Offset position margin (Default: 10 dp)
|
|
34
34
|
* @param others
|
|
35
35
|
*/
|
|
36
|
-
export declare const ToasterAlertProvider: ({ children }:
|
|
36
|
+
export declare const ToasterAlertProvider: ({ children }: ToasterAlertProps) => JSX.Element;
|
|
37
37
|
export default Alert;
|
|
@@ -5,7 +5,7 @@ import { Spacer, SpacerSize } from "../../components/spacer";
|
|
|
5
5
|
import { View } from "../../components/view";
|
|
6
6
|
import { Text, TextLevels } from "../../components/text";
|
|
7
7
|
import { Title, TitleLevels } from "../../components/title";
|
|
8
|
-
import {
|
|
8
|
+
import { getAlertIconName, getAlertStyle } from "../../objects/facets/Alert";
|
|
9
9
|
import { getColorStyle, TrilogyColor } from "../../objects/facets/Color";
|
|
10
10
|
import { ToasterAlertPosition } from "./AlertProps";
|
|
11
11
|
import { Icon, IconName, IconSize } from "../../components/icon";
|
|
@@ -18,7 +18,7 @@ import LibToast from "react-native-toast-message";
|
|
|
18
18
|
* @param params {ToasterShowContext}
|
|
19
19
|
*/
|
|
20
20
|
const showToast = (params) => {
|
|
21
|
-
const { position, duration, offset, title, description, onClick, closable, onHide, iconName,
|
|
21
|
+
const { position, duration, offset, title, description, onClick, closable, onHide, iconName, alert, } = params;
|
|
22
22
|
LibToast.show({
|
|
23
23
|
type: "tomatoToast",
|
|
24
24
|
position: position || ToasterAlertPosition.BOTTOM,
|
|
@@ -34,18 +34,19 @@ const showToast = (params) => {
|
|
|
34
34
|
* @param iconName {IconName} Custom icon
|
|
35
35
|
* @param title {string} Alert title content
|
|
36
36
|
* @param description {string|ReactNode} Aleert description content
|
|
37
|
-
* @param
|
|
37
|
+
* @param alert {AlertState} Alert Variant (INFO|SUCCESS|WARNING|ERROR)
|
|
38
38
|
* @param info (boolean) Small info alert use it without button and arrow
|
|
39
39
|
* @param onClick {Function} onClick Event for all alert
|
|
40
40
|
*/
|
|
41
|
-
const Alert = ({
|
|
42
|
-
const
|
|
41
|
+
const Alert = ({ alert, iconName, title, description, onClick, display, ...others }) => {
|
|
42
|
+
const backgroundColor = getColorStyle(alert, 1);
|
|
43
|
+
const fontColor = getAlertStyle(alert) || getColorStyle(TrilogyColor.MAIN);
|
|
43
44
|
let alertView;
|
|
44
45
|
const styles = StyleSheet.create({
|
|
45
46
|
container: {
|
|
46
47
|
width: "100%",
|
|
47
48
|
paddingTop: 10,
|
|
48
|
-
borderColor:
|
|
49
|
+
borderColor: alert !== undefined ? fontColor : backgroundColor,
|
|
49
50
|
paddingBottom: 10,
|
|
50
51
|
borderWidth: 1,
|
|
51
52
|
backgroundColor: backgroundColor,
|
|
@@ -57,7 +58,7 @@ const Alert = ({ status, iconName, title, description, onClick, display, ...othe
|
|
|
57
58
|
icon: {
|
|
58
59
|
justifyContent: "center",
|
|
59
60
|
alignItems: "center",
|
|
60
|
-
color:
|
|
61
|
+
color: alert !== undefined ? fontColor : getColorStyle(TrilogyColor.MAIN),
|
|
61
62
|
},
|
|
62
63
|
description: {
|
|
63
64
|
justifyContent: "center",
|
|
@@ -77,10 +78,10 @@ const Alert = ({ status, iconName, title, description, onClick, display, ...othe
|
|
|
77
78
|
React.createElement(View, { style: [styles.container, others.style] },
|
|
78
79
|
React.createElement(Columns, null,
|
|
79
80
|
React.createElement(ColumnsItem, { size: 1 },
|
|
80
|
-
React.createElement(Icon, { style: styles.icon, name: iconName ? iconName :
|
|
81
|
+
React.createElement(Icon, { style: styles.icon, name: iconName ? iconName : getAlertIconName(alert) })),
|
|
81
82
|
React.createElement(ColumnsItem, { size: 11 },
|
|
82
83
|
React.createElement(Text, { style: styles.containerTitle, level: TextLevels.ONE, typo: TypographyBold.TEXT_WEIGHT_SEMIBOLD }, title),
|
|
83
|
-
React.createElement(Spacer, { size: SpacerSize.
|
|
84
|
+
React.createElement(Spacer, { size: SpacerSize.SMALLER }))),
|
|
84
85
|
description && (React.createElement(Columns, null,
|
|
85
86
|
React.createElement(ColumnsItem, { size: 1 }),
|
|
86
87
|
React.createElement(ColumnsItem, { size: 11 }, typeof description.valueOf() === "string" ? (React.createElement(Text, { level: TextLevels.TWO, style: styles.description }, description)) : (description))))));
|
|
@@ -96,13 +97,14 @@ const Alert = ({ status, iconName, title, description, onClick, display, ...othe
|
|
|
96
97
|
* @param title {string} Notification title content
|
|
97
98
|
* @param description {string|ReactNode} Notification description content
|
|
98
99
|
* @param iconName {IconName} Custom icon
|
|
99
|
-
* @param
|
|
100
|
+
* @param alert {AlertState} Alert Variant (INFO|SUCCESS|WARNING|ERROR)
|
|
100
101
|
* @param onClick {Function} onClick Event for all notification
|
|
101
102
|
* @param closable {Function} onClick Event on cross icon
|
|
102
103
|
*/
|
|
103
104
|
export const ToasterAlert = ({ props }) => {
|
|
104
|
-
const { title, description, iconName,
|
|
105
|
-
const
|
|
105
|
+
const { title, description, iconName, alert, closable, onClick } = props;
|
|
106
|
+
const color = getAlertStyle(alert) || getColorStyle(TrilogyColor.MAIN);
|
|
107
|
+
const backgroundColor = getColorStyle(alert, 1);
|
|
106
108
|
const styles = StyleSheet.create({
|
|
107
109
|
toaster: {
|
|
108
110
|
padding: 24,
|
|
@@ -127,7 +129,7 @@ export const ToasterAlert = ({ props }) => {
|
|
|
127
129
|
React.createElement(ColumnsItem, null,
|
|
128
130
|
title && React.createElement(Title, { level: TitleLevels.SIX }, title),
|
|
129
131
|
description && (React.createElement(React.Fragment, null,
|
|
130
|
-
React.createElement(Spacer, { size: SpacerSize.
|
|
132
|
+
React.createElement(Spacer, { size: SpacerSize.SMALL }),
|
|
131
133
|
React.createElement(Text, { level: TextLevels.THREE }, description)))),
|
|
132
134
|
closable && (React.createElement(ColumnsItem, { size: 1 },
|
|
133
135
|
React.createElement(TouchableOpacity, { onPress: (e) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.native.js","sourceRoot":"","sources":["../../../components/alert/Alert.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Alert.native.js","sourceRoot":"","sources":["../../../components/alert/Alert.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACxE,OAAO,EAAE,aAAa,E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,EAAE,QAAQ,CAAC,KAAK,GAAI,CACnC,CACP,CACf,CACO,CACO,CACd,CACR,CAAA;AACH,CAAC,CAAA;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EAAE,QAAQ,EAAqB,EAAe,EAAE;IACnF,MAAM,WAAW,GAAG;QAClB,WAAW,EAAE,YAAY;KAC1B,CAAA;IAED,OAAO,CACL,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE;QACrE,QAAQ;QACT,oBAAC,QAAQ,IAAC,MAAM,EAAE,WAAW,GAAI,CACT,CAC3B,CAAA;AACH,CAAC,CAAA;AAED,KAAK,CAAC,WAAW,GAAG,aAAa,CAAC,KAAK,CAAA;AAEvC,eAAe,KAAK,CAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Clickable } from '../../objects/facets/Clickable';
|
|
3
|
-
import { Accessibility,
|
|
3
|
+
import { Accessibility, AlertProps as PropsAlert } from '../../objects/facets';
|
|
4
4
|
import { IconName, IconNameValues } from '../../components/icon/IconNameEnum';
|
|
5
5
|
import { ClickEvent } from "../../events/OnClickEvent";
|
|
6
6
|
export declare enum ToasterAlertPosition {
|
|
7
7
|
TOP = "top",
|
|
8
8
|
BOTTOM = "bottom"
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface ToasterAlertProps extends AlertProps, Clickable, Accessibility {
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
className?: string;
|
|
13
13
|
toasterChildren?: React.ReactNode;
|
|
@@ -26,11 +26,12 @@ export interface ToasterStatusProps extends StatusProps, Clickable, Accessibilit
|
|
|
26
26
|
/**
|
|
27
27
|
* Alert Interface
|
|
28
28
|
*/
|
|
29
|
-
export interface AlertProps extends
|
|
29
|
+
export interface AlertProps extends PropsAlert, Clickable, Accessibility {
|
|
30
30
|
iconName?: IconName | IconNameValues;
|
|
31
31
|
title?: string | React.ReactNode;
|
|
32
32
|
description?: string | React.ReactNode;
|
|
33
33
|
className?: string;
|
|
34
|
+
iconClassname?: string;
|
|
34
35
|
display?: boolean;
|
|
35
36
|
toaster?: boolean;
|
|
36
37
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Accessibility,
|
|
1
|
+
import { Accessibility, AlertProps } from '../../../objects';
|
|
2
2
|
import { IconName, IconNameValues } from '../../../components/icon';
|
|
3
3
|
import { ToasterAlertPosition } from '../../../components/alert/AlertProps';
|
|
4
4
|
/**
|
|
5
5
|
* @param title {string} Notification title content
|
|
6
6
|
* @param description {string|ReactNode} Notification description content
|
|
7
7
|
* @param iconName {IconName} Custom icon
|
|
8
|
-
* @param alert {
|
|
8
|
+
* @param alert {AlertState} Alert Variant (INFO|SUCCESS|WARNING|ERROR)
|
|
9
9
|
* @param onClick {Function} onClick Event for all notification
|
|
10
10
|
* @param closable {Function} onClick Event on cross icon
|
|
11
11
|
* @param onHide {Function} onClick Event on hide
|
|
12
12
|
*/
|
|
13
|
-
export interface ToastProps extends
|
|
13
|
+
export interface ToastProps extends AlertProps, Accessibility {
|
|
14
14
|
title: string;
|
|
15
15
|
description?: string;
|
|
16
16
|
iconName?: IconName | IconNameValues;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import Alert, { ToasterAlertProvider } from './Alert';
|
|
2
|
+
import AlertExample from './Alert.example';
|
|
2
3
|
import ToasterContext from './context';
|
|
3
|
-
export { Alert, ToasterContext, ToasterAlertProvider };
|
|
4
|
+
export { Alert, AlertExample, ToasterContext, ToasterAlertProvider };
|