@trilogy-ds/react 0.0.1-beta-94 → 0.0.1-beta-98
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 +15 -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 +32 -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 +15 -14
- 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 +13 -13
- 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 +11 -10
- 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 +4 -3
- 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 +20 -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 +5 -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 +3 -3
- package/lib/components/divider/Divider.native.js.map +1 -1
- package/lib/components/divider/index.d.ts +2 -1
- package/lib/components/divider/index.js +2 -1
- package/lib/components/divider/index.js.map +1 -1
- package/lib/components/enumsComponentsName.d.ts +1 -1
- package/lib/components/enumsComponentsName.js +1 -1
- 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 +5 -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 +14 -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 +10 -10
- 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/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 +40 -47
- 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 +8 -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 +6 -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 +2 -2
- 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 +5 -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 +89 -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 +8 -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 +1 -1
- 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 +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 +8 -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 +5 -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 +8 -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 +6 -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 +5 -0
- package/lib/components/textarea/Textarea.example.js.map +1 -0
- package/lib/components/textarea/Textarea.js +6 -11
- package/lib/components/textarea/Textarea.js.map +1 -1
- package/lib/components/textarea/Textarea.native.js +14 -28
- 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 +17 -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/content/TimelineContent.native.js +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 +8 -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 -9
- package/lib/objects/facets/Color.js +53 -54
- 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 -212
- package/lib/components/box/content/BoxContentPropsDefaults.js +0 -100
- package/lib/components/box/footer/BoxFooterPropsDefaults.js +0 -85
- package/lib/components/box/header/BoxHeaderPropsDefaults.js +0 -116
- 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 -218
- 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 -183
- package/lib/components/countdown/CountdownPropsDefaults.js +0 -57
- package/lib/components/divider/DividerPropsDefaults.js +0 -204
- package/lib/components/fab/FabPropsDefaults.js +0 -171
- package/lib/components/hero/HeroPropsDefaults.js +0 -142
- package/lib/components/icon/IconPropsDefaults.js +0 -305
- package/lib/components/icon/circle/CircleIconPropsDefaults.js +0 -166
- 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 -53
- 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 -125
- package/lib/components/section/SectionPropsDefaults.js +0 -116
- 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 -103
- package/lib/components/table/head/TableHeadPropsDefaults.js +0 -103
- 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 -100
- 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 -219
- 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
|
@@ -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 };
|
|
@@ -1,4 +1,5 @@
|
|
|
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 };
|
|
4
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AACrD,OAAO,cAAc,MAAM,WAAW,CAAA;AAEtC,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AACrD,OAAO,YAAY,MAAM,iBAAiB,CAAA;AAC1C,OAAO,cAAc,MAAM,WAAW,CAAA;AAEtC,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,oBAAoB,EAAE,CAAA"}
|
|
@@ -11,7 +11,7 @@ import { ComponentName } from "../../components/enumsComponentsName";
|
|
|
11
11
|
* @param edgeSize {SpacerSize} Edge size if exist (default = SMALL)
|
|
12
12
|
* @param noSpace {boolean} Set spaces between children to NONE
|
|
13
13
|
*/
|
|
14
|
-
const AutoLayout = ({ children, matrix = DEFAULT_SPACING_MATRIX, edges, edgeSize = SpacerSize.
|
|
14
|
+
const AutoLayout = ({ children, matrix = DEFAULT_SPACING_MATRIX, edges, edgeSize = SpacerSize.SMALL, noSpace, }) => {
|
|
15
15
|
const hasBottomEdge = edges === null || edges === void 0 ? void 0 : edges.includes("bottom");
|
|
16
16
|
const hasTopEdge = edges === null || edges === void 0 ? void 0 : edges.includes("top");
|
|
17
17
|
return (React.createElement(React.Fragment, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoLayout.native.js","sourceRoot":"","sources":["../../../components/autolayout/AutoLayout.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,EAAE,yBAAyB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAC/E,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE;;;;;;;GAOG;AACH,MAAM,UAAU,GAA8B,CAAC,EAC7C,QAAQ,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AA"}
|
|
@@ -1,40 +1,83 @@
|
|
|
1
1
|
import { SpacerSize } from '../../components/spacer';
|
|
2
2
|
import { SpacingMatrixMode } from './SpacingMatrix';
|
|
3
|
-
const {
|
|
3
|
+
const { HUGE, LARGE, MEDIUM, SMALL, NONE } = SpacerSize;
|
|
4
4
|
export const { INSERT_SPACE_BETWEEN } = SpacingMatrixMode;
|
|
5
5
|
/**
|
|
6
6
|
* Spacing matrix for defining spacings between component types
|
|
7
7
|
*/
|
|
8
8
|
export const DEFAULT_SPACING_MATRIX = [
|
|
9
|
-
[INSERT_SPACE_BETWEEN, '
|
|
10
|
-
[INSERT_SPACE_BETWEEN, '
|
|
11
|
-
[INSERT_SPACE_BETWEEN, 'Box', '
|
|
12
|
-
[INSERT_SPACE_BETWEEN, '
|
|
13
|
-
[INSERT_SPACE_BETWEEN, '
|
|
14
|
-
[INSERT_SPACE_BETWEEN, '
|
|
15
|
-
[INSERT_SPACE_BETWEEN, '
|
|
16
|
-
[INSERT_SPACE_BETWEEN, '
|
|
17
|
-
[INSERT_SPACE_BETWEEN, '
|
|
18
|
-
[INSERT_SPACE_BETWEEN, '
|
|
19
|
-
[INSERT_SPACE_BETWEEN, '
|
|
20
|
-
[INSERT_SPACE_BETWEEN, '
|
|
21
|
-
[INSERT_SPACE_BETWEEN, '
|
|
22
|
-
[INSERT_SPACE_BETWEEN, '
|
|
23
|
-
[INSERT_SPACE_BETWEEN, '
|
|
24
|
-
[INSERT_SPACE_BETWEEN, '
|
|
25
|
-
[INSERT_SPACE_BETWEEN, '
|
|
26
|
-
[INSERT_SPACE_BETWEEN, '
|
|
27
|
-
[INSERT_SPACE_BETWEEN, '
|
|
28
|
-
[INSERT_SPACE_BETWEEN, '
|
|
29
|
-
[INSERT_SPACE_BETWEEN, '
|
|
30
|
-
[INSERT_SPACE_BETWEEN, '
|
|
31
|
-
[INSERT_SPACE_BETWEEN, '
|
|
32
|
-
[INSERT_SPACE_BETWEEN, '
|
|
33
|
-
[INSERT_SPACE_BETWEEN, '
|
|
34
|
-
[INSERT_SPACE_BETWEEN, '
|
|
35
|
-
[INSERT_SPACE_BETWEEN, '
|
|
36
|
-
[INSERT_SPACE_BETWEEN, '
|
|
37
|
-
[INSERT_SPACE_BETWEEN, '
|
|
38
|
-
[INSERT_SPACE_BETWEEN, '
|
|
9
|
+
[INSERT_SPACE_BETWEEN, 'Box', 'Box', SMALL],
|
|
10
|
+
[INSERT_SPACE_BETWEEN, 'Box', 'Button', LARGE],
|
|
11
|
+
[INSERT_SPACE_BETWEEN, 'Box', 'Title', MEDIUM],
|
|
12
|
+
[INSERT_SPACE_BETWEEN, 'Button', 'Button', MEDIUM],
|
|
13
|
+
[INSERT_SPACE_BETWEEN, 'Title', 'Button', MEDIUM],
|
|
14
|
+
[INSERT_SPACE_BETWEEN, 'Button', 'Divider', SMALL],
|
|
15
|
+
[INSERT_SPACE_BETWEEN, 'Button', 'Link', LARGE],
|
|
16
|
+
[INSERT_SPACE_BETWEEN, 'Button', 'Title', HUGE],
|
|
17
|
+
[INSERT_SPACE_BETWEEN, 'Text', 'Button', MEDIUM],
|
|
18
|
+
[INSERT_SPACE_BETWEEN, 'Text', 'Title', SMALL],
|
|
19
|
+
[INSERT_SPACE_BETWEEN, 'default', 'Divider', LARGE],
|
|
20
|
+
[INSERT_SPACE_BETWEEN, 'Divider', 'Button', SMALL],
|
|
21
|
+
[INSERT_SPACE_BETWEEN, 'Divider', 'default', LARGE],
|
|
22
|
+
[INSERT_SPACE_BETWEEN, 'Image', 'Title', LARGE],
|
|
23
|
+
[INSERT_SPACE_BETWEEN, 'Input', 'Input', LARGE],
|
|
24
|
+
[INSERT_SPACE_BETWEEN, 'Input', 'Progress', MEDIUM],
|
|
25
|
+
[INSERT_SPACE_BETWEEN, 'Link', 'Button', LARGE],
|
|
26
|
+
[INSERT_SPACE_BETWEEN, 'Link', 'Link', LARGE],
|
|
27
|
+
[INSERT_SPACE_BETWEEN, 'Progress', 'Progress', SMALL],
|
|
28
|
+
[INSERT_SPACE_BETWEEN, 'ProgressRadial', 'ProgressRadial', SMALL],
|
|
29
|
+
[INSERT_SPACE_BETWEEN, 'Radio', 'Button', MEDIUM],
|
|
30
|
+
[INSERT_SPACE_BETWEEN, 'Sticker', 'Sticker', SMALL],
|
|
31
|
+
[INSERT_SPACE_BETWEEN, 'Text', 'Radio', HUGE],
|
|
32
|
+
[INSERT_SPACE_BETWEEN, 'Text', 'Box', SMALL],
|
|
33
|
+
[INSERT_SPACE_BETWEEN, 'Text', 'Title', LARGE],
|
|
34
|
+
[INSERT_SPACE_BETWEEN, 'Title', 'Box', SMALL],
|
|
35
|
+
[INSERT_SPACE_BETWEEN, 'Title', 'Text', SMALL],
|
|
36
|
+
[INSERT_SPACE_BETWEEN, 'Title', 'Card', MEDIUM],
|
|
37
|
+
[INSERT_SPACE_BETWEEN, 'Title', 'Icon', MEDIUM],
|
|
38
|
+
[INSERT_SPACE_BETWEEN, 'Title', 'Title', SMALL],
|
|
39
|
+
[INSERT_SPACE_BETWEEN, 'Title', 'Tag', LARGE],
|
|
40
|
+
[INSERT_SPACE_BETWEEN, 'Title', 'default', MEDIUM],
|
|
41
|
+
[INSERT_SPACE_BETWEEN, 'Title', 'Text', SMALL],
|
|
42
|
+
[INSERT_SPACE_BETWEEN, 'Tag', 'Text', MEDIUM],
|
|
43
|
+
[INSERT_SPACE_BETWEEN, 'Tag', 'Title', LARGE],
|
|
44
|
+
[INSERT_SPACE_BETWEEN, 'AutoLayout', 'default', NONE],
|
|
45
|
+
[INSERT_SPACE_BETWEEN, 'default', 'AutoLayout', NONE],
|
|
46
|
+
[INSERT_SPACE_BETWEEN, 'Container', 'default', NONE],
|
|
47
|
+
[INSERT_SPACE_BETWEEN, 'default', 'Container', NONE],
|
|
48
|
+
[INSERT_SPACE_BETWEEN, 'Spacer', 'default', NONE],
|
|
49
|
+
[INSERT_SPACE_BETWEEN, 'default', 'Spacer', NONE],
|
|
50
|
+
[INSERT_SPACE_BETWEEN, 'View', 'default', NONE],
|
|
51
|
+
[INSERT_SPACE_BETWEEN, 'default', 'View', NONE],
|
|
52
|
+
[INSERT_SPACE_BETWEEN, 'Radio', 'default', HUGE],
|
|
53
|
+
[INSERT_SPACE_BETWEEN, 'default', 'Radio', HUGE],
|
|
54
|
+
[INSERT_SPACE_BETWEEN, 'Checkbox', 'default', HUGE],
|
|
55
|
+
[INSERT_SPACE_BETWEEN, 'default', 'Checkbox', HUGE],
|
|
56
|
+
[INSERT_SPACE_BETWEEN, 'default', 'Otp', HUGE],
|
|
57
|
+
[INSERT_SPACE_BETWEEN, 'Checkbox', 'default', HUGE],
|
|
58
|
+
[INSERT_SPACE_BETWEEN, 'default', 'Checkbox', HUGE],
|
|
59
|
+
[INSERT_SPACE_BETWEEN, 'Columns', 'Columns', SMALL],
|
|
60
|
+
[INSERT_SPACE_BETWEEN, 'Columns', 'default', MEDIUM],
|
|
61
|
+
[INSERT_SPACE_BETWEEN, 'default', 'Columns', MEDIUM],
|
|
62
|
+
[INSERT_SPACE_BETWEEN, 'Link', 'default', MEDIUM],
|
|
63
|
+
[INSERT_SPACE_BETWEEN, 'default', 'Link', MEDIUM],
|
|
64
|
+
[INSERT_SPACE_BETWEEN, 'Input', 'default', MEDIUM],
|
|
65
|
+
[INSERT_SPACE_BETWEEN, 'default', 'Input', MEDIUM],
|
|
66
|
+
[INSERT_SPACE_BETWEEN, 'Text', 'default', MEDIUM],
|
|
67
|
+
[INSERT_SPACE_BETWEEN, 'default', 'Text', MEDIUM],
|
|
68
|
+
[INSERT_SPACE_BETWEEN, 'Icon', 'default', MEDIUM],
|
|
69
|
+
[INSERT_SPACE_BETWEEN, 'Button', 'default', MEDIUM],
|
|
70
|
+
[INSERT_SPACE_BETWEEN, 'default', 'Button', MEDIUM],
|
|
71
|
+
[INSERT_SPACE_BETWEEN, 'default', 'default', SMALL],
|
|
72
|
+
[INSERT_SPACE_BETWEEN, 'Image', 'Text', MEDIUM],
|
|
73
|
+
[INSERT_SPACE_BETWEEN, 'Image', 'Title', MEDIUM],
|
|
74
|
+
[INSERT_SPACE_BETWEEN, 'View', 'Card', MEDIUM],
|
|
75
|
+
[INSERT_SPACE_BETWEEN, 'Card', 'View', MEDIUM],
|
|
76
|
+
[INSERT_SPACE_BETWEEN, 'Radio', 'Divider', SMALL],
|
|
77
|
+
[INSERT_SPACE_BETWEEN, 'Divider', 'Radio', SMALL],
|
|
78
|
+
[INSERT_SPACE_BETWEEN, 'Radio', 'Radio', MEDIUM],
|
|
79
|
+
[INSERT_SPACE_BETWEEN, 'Checkbox', 'Divider', SMALL],
|
|
80
|
+
[INSERT_SPACE_BETWEEN, 'Divider', 'Checkbox', SMALL],
|
|
81
|
+
[INSERT_SPACE_BETWEEN, 'Checkbox', 'Checkbox', SMALL],
|
|
39
82
|
];
|
|
40
83
|
//# sourceMappingURL=DefaultSpacingMatrix.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultSpacingMatrix.js","sourceRoot":"","sources":["../../../components/autolayout/DefaultSpacingMatrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAiB,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAElE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"DefaultSpacingMatrix.js","sourceRoot":"","sources":["../../../components/autolayout/DefaultSpacingMatrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAiB,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAElE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAA;AAEvD,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,GAAG,iBAAiB,CAAA;AAEzD;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAkB;IACnD,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AC,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC;IAEjD,CAAC,oBAAoB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC;IAEjD,CAAC,oBAAoB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC;IACnD,CAAC,oBAAoB,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAC;IAEnD,CAAC,oBAAoB,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC;IAEnD,CAAC,oBAAoB,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;IAC/C,CAAC,oBAAoB,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC;IAEhD,CAAC,oBAAoB,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IAC9C,CAAC,oBAAoB,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IAE9C,CAAC,oBAAoB,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC;IACjD,CAAC,oBAAoB,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC;IACjD,CAAC,oBAAoB,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC;IAEhD,CAAC,oBAAoB,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC;IACpD,CAAC,oBAAoB,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,CAAC;IACpD,CAAC,oBAAoB,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,CAAC;CACtD,CAAA"}
|
|
@@ -5,10 +5,11 @@ import { BadgeProps } from "./BadgeProps";
|
|
|
5
5
|
* @param children {React.ReactNode} If no content add children (Icon for example)
|
|
6
6
|
* @param textContent {string} Content text for badge with text, if textContent props, it will display badge with text
|
|
7
7
|
* @param content {string|number} Badge content text
|
|
8
|
-
* @param
|
|
8
|
+
* @param direction {BadgeTextDirection} Text direction for Badge (LEFT|RIGHT)
|
|
9
|
+
* @param color {BadgeColor} Change color for Badge
|
|
9
10
|
* @param onClick {Function} onClick Event for Badge
|
|
10
11
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
11
12
|
* @param className {string} Additionnal CSS Classes (ONLY FOR WEB)
|
|
12
13
|
*/
|
|
13
|
-
declare const Badge: ({ children, className, textContent, content,
|
|
14
|
+
declare const Badge: ({ children, className, textContent, content, direction, color, onClick, testId, ...others }: BadgeProps) => JSX.Element;
|
|
14
15
|
export default Badge;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.example.js","sourceRoot":"","sources":["../../../components/badge/Badge.example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EACL,KAAK,EACN,MAAM,SAAS,CAAA;AAEhB,MAAM,YAAY,GAAoB,oBAAC,KAAK,IAC1C,OAAO,EAAE,CAAC,GACV,CAAA;AAEF,eAAe,YAAY,CAAA"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Text, TextMarkup } from "../../components/text";
|
|
3
|
+
import { BadgeTextDirection } from "./BadgeEnum";
|
|
4
|
+
import { has } from "../../services";
|
|
5
|
+
import { getColorClassName, } from "../../objects/facets";
|
|
3
6
|
import clsx from "clsx";
|
|
4
7
|
import { hashClass } from "../../helpers";
|
|
5
8
|
import { useTrilogyContext } from "../../context";
|
|
@@ -8,12 +11,13 @@ import { useTrilogyContext } from "../../context";
|
|
|
8
11
|
* @param children {React.ReactNode} If no content add children (Icon for example)
|
|
9
12
|
* @param textContent {string} Content text for badge with text, if textContent props, it will display badge with text
|
|
10
13
|
* @param content {string|number} Badge content text
|
|
11
|
-
* @param
|
|
14
|
+
* @param direction {BadgeTextDirection} Text direction for Badge (LEFT|RIGHT)
|
|
15
|
+
* @param color {BadgeColor} Change color for Badge
|
|
12
16
|
* @param onClick {Function} onClick Event for Badge
|
|
13
17
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
14
18
|
* @param className {string} Additionnal CSS Classes (ONLY FOR WEB)
|
|
15
19
|
*/
|
|
16
|
-
const Badge = ({ children, className, textContent, content,
|
|
20
|
+
const Badge = ({ children, className, textContent, content, direction, color, onClick, testId, ...others }) => {
|
|
17
21
|
const { styled } = useTrilogyContext();
|
|
18
22
|
const classes = hashClass(styled, clsx(textContent ? "badge-and-text" : "badge", className));
|
|
19
23
|
if (textContent) {
|
|
@@ -21,15 +25,17 @@ const Badge = ({ children, className, textContent, content, reversed, onClick, t
|
|
|
21
25
|
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
22
26
|
e.stopPropagation();
|
|
23
27
|
}, className: classes, ...others },
|
|
24
|
-
!
|
|
25
|
-
React.createElement("span", { className: hashClass(styled, clsx(
|
|
26
|
-
|
|
28
|
+
(!direction || direction === BadgeTextDirection.LEFT) && (React.createElement(Text, { markup: TextMarkup.P }, textContent)),
|
|
29
|
+
React.createElement("span", { className: hashClass(styled, clsx(color &&
|
|
30
|
+
has(`background-${getColorClassName(color)}`), "badge is-level")) }, content || children),
|
|
31
|
+
direction === BadgeTextDirection.RIGHT && (React.createElement(Text, { markup: TextMarkup.P }, textContent))));
|
|
27
32
|
}
|
|
28
33
|
return (React.createElement("div", { "data-testid": testId, onClick: (e) => {
|
|
29
34
|
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
30
35
|
e.stopPropagation();
|
|
31
36
|
} },
|
|
32
|
-
React.createElement(Text, { className: clsx(
|
|
37
|
+
React.createElement(Text, { className: clsx(color &&
|
|
38
|
+
has(`background-${getColorClassName(color)}`), textContent ? "badge-and-text" : "badge", className), markup: TextMarkup.SPAN, ...others }, content || children)));
|
|
33
39
|
};
|
|
34
40
|
export default Badge;
|
|
35
41
|
//# sourceMappingURL=Badge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../components/badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,O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C,IAAI,CACxD,oBAAC,IAAI,IAAC,MAAM,EAAE,UAAU,CAAC,CAAC,IAAG,WAAW,CAAQ,CACjD;YACD,8BACE,SAAS,EAAE,SAAS,CAClB,MAAM,EACN,IAAI,CACF,KAAK;oBACH,GAAG,CACD,cAAc,iBAAiB,CAC7B,KAA0C,CAC3C,EAAE,CACJ,EACH,gBAAgB,CACjB,CACF,IAEA,OAAO,IAAI,QAAQ,CACf;YACN,SAAS,KAAK,kBAAkB,CAAC,KAAK,IAAI,CACzC,oBAAC,IAAI,IAAC,MAAM,EAAE,UAAU,CAAC,CAAC,IAAG,WAAW,CAAQ,CACjD,CACG,CACP,CAAA;KACF;IAED,OAAO,CACL,4CACe,MAAM,EACnB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;YACb,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,CAAC,CAAC,CAAA;YACZ,CAAC,CAAC,eAAe,EAAE,CAAA;QACrB,CAAC;QAED,oBAAC,IAAI,IACH,SAAS,EAAE,IAAI,CACb,KAAK;gBACH,GAAG,CACD,cAAc,iBAAiB,CAC7B,KAA0C,CAC3C,EAAE,CACJ,EACH,WAAW,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,OAAO,EACxC,SAAS,CACV,EACD,MAAM,EAAE,UAAU,CAAC,IAAI,KACnB,MAAM,IAET,OAAO,IAAI,QAAQ,CACf,CACH,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -6,11 +6,12 @@ import { ComponentName } from "../../components/enumsComponentsName";
|
|
|
6
6
|
* @param children {React.ReactNode} If no content add children (Icon for example)
|
|
7
7
|
* @param textContent {string} Content text for badge with text, if textContent props, it will display badge with text
|
|
8
8
|
* @param content content {string|number} Badge content text
|
|
9
|
-
* @param direction {
|
|
9
|
+
* @param direction {BadgeTextDirection} Text direction for Badge (LEFT|RIGHT)
|
|
10
10
|
* @param onClick {Function} onClick Event for Badge
|
|
11
|
+
* @param color {BadgeColor} Change color for Badge
|
|
11
12
|
*/
|
|
12
13
|
declare const Badge: {
|
|
13
|
-
({ children, textContent, content,
|
|
14
|
+
({ children, textContent, content, direction, color, onClick, testId, ...others }: BadgeProps): JSX.Element;
|
|
14
15
|
displayName: ComponentName;
|
|
15
16
|
};
|
|
16
17
|
export default Badge;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { StyleSheet, Text, TouchableOpacity, View } from "react-native";
|
|
3
|
-
import { BadgeColor } from "./BadgeEnum";
|
|
3
|
+
import { BadgeColor, BadgeTextDirection } from "./BadgeEnum";
|
|
4
4
|
import { getColorStyle, TrilogyColor, } from "../../objects/facets/Color";
|
|
5
5
|
import { ComponentName } from "../../components/enumsComponentsName";
|
|
6
6
|
/**
|
|
@@ -8,11 +8,14 @@ import { ComponentName } from "../../components/enumsComponentsName";
|
|
|
8
8
|
* @param children {React.ReactNode} If no content add children (Icon for example)
|
|
9
9
|
* @param textContent {string} Content text for badge with text, if textContent props, it will display badge with text
|
|
10
10
|
* @param content content {string|number} Badge content text
|
|
11
|
-
* @param direction {
|
|
11
|
+
* @param direction {BadgeTextDirection} Text direction for Badge (LEFT|RIGHT)
|
|
12
12
|
* @param onClick {Function} onClick Event for Badge
|
|
13
|
+
* @param color {BadgeColor} Change color for Badge
|
|
13
14
|
*/
|
|
14
|
-
const Badge = ({ children, textContent, content,
|
|
15
|
-
const badgeColor =
|
|
15
|
+
const Badge = ({ children, textContent, content, direction, color, onClick, testId, ...others }) => {
|
|
16
|
+
const badgeColor = color
|
|
17
|
+
? getColorStyle(color)
|
|
18
|
+
: getColorStyle(BadgeColor.MAIN);
|
|
16
19
|
const textColor = getColorStyle(TrilogyColor.BACKGROUND);
|
|
17
20
|
const styles = StyleSheet.create({
|
|
18
21
|
container: {
|
|
@@ -41,10 +44,11 @@ const Badge = ({ children, textContent, content, reversed, onClick, testId, ...o
|
|
|
41
44
|
let badgeView;
|
|
42
45
|
if (textContent) {
|
|
43
46
|
badgeView = (React.createElement(View, { style: styles.container },
|
|
44
|
-
!
|
|
47
|
+
!direction && React.createElement(Text, { style: styles.textContent }, textContent),
|
|
48
|
+
direction && direction === BadgeTextDirection.LEFT && (React.createElement(Text, { style: styles.textContent }, textContent)),
|
|
45
49
|
React.createElement(View, { style: styles.badge },
|
|
46
50
|
React.createElement(Text, { style: styles.text }, content)),
|
|
47
|
-
|
|
51
|
+
direction && direction === BadgeTextDirection.RIGHT && (React.createElement(Text, { style: styles.textContent }, textContent))));
|
|
48
52
|
}
|
|
49
53
|
else {
|
|
50
54
|
badgeView = (React.createElement(View, null, content ? (React.createElement(View, { style: styles.badge, ...others },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.native.js","sourceRoot":"","sources":["../../../components/badge/Badge.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"Badge.native.js","sourceRoot":"","sources":["../../../components/badge/Badge.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEvE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,YAAY,GAAuB,MAAM,wBAAwB,CAAA;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE;;;;;;;;GAQG;AACH,MAAM,KAAK,GAAG,CAAC,EACb,QAAQ,EACR,WAAW,EACX,OAAO,EACP,SAAS,EACT,KAAK,EACL,OAAO,EACP,MAAM,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AO,CAAQ,CACrC;YACN,SAAS,IAAI,SAAS,KAAK,kBAAkB,CAAC,KAAK,IAAI,CACtD,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,WAAW,IAAG,WAAW,CAAQ,CACtD,CACI,CACR,CAAA;KACF;SAAM;QACL,SAAS,GAAG,CACV,oBAAC,IAAI,QACF,OAAO,CAAC,CAAC,CAAC,CACT,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,KAAM,MAAM;YACnC,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,IAAG,OAAO,CAAQ,CACrC,CACR,CAAC,CAAC,CAAC,CACF,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,KAAM,MAAM,IAClC,QAAQ,CACJ,CACR,CACI,CACR,CAAA;KACF;IAED,OAAO,OAAO,CAAC,CAAC,CAAC,CACf,oBAAC,IAAI;QACH,oBAAC,gBAAgB,IAAC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,IACpE,SAAS,CACO,CACd,CACR,CAAC,CAAC,CAAC,CACF,SAAS,CACV,CAAA;AACH,CAAC,CAAA;AAED,KAAK,CAAC,WAAW,GAAG,aAAa,CAAC,KAAK,CAAA;AAEvC,eAAe,KAAK,CAAA"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export var BadgeTextDirection;
|
|
2
|
+
(function (BadgeTextDirection) {
|
|
3
|
+
BadgeTextDirection["LEFT"] = "left";
|
|
4
|
+
BadgeTextDirection["RIGHT"] = "right";
|
|
5
|
+
})(BadgeTextDirection || (BadgeTextDirection = {}));
|
|
1
6
|
export var BadgeColor;
|
|
2
7
|
(function (BadgeColor) {
|
|
3
8
|
BadgeColor["MAIN"] = "MAIN";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BadgeEnum.js","sourceRoot":"","sources":["../../../components/badge/BadgeEnum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,2BAAa,CAAA;AACf,CAAC,EAFW,UAAU,KAAV,UAAU,QAErB"}
|
|
1
|
+
{"version":3,"file":"BadgeEnum.js","sourceRoot":"","sources":["../../../components/badge/BadgeEnum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,qCAAe,CAAA;AACjB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B;AAID,MAAM,CAAN,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,2BAAa,CAAA;AACf,CAAC,EAFW,UAAU,KAAV,UAAU,QAErB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Clickable } from '../../objects/facets/Clickable';
|
|
3
|
+
import { BadgeColor, BadgeColorValues, BadgeTextDirection, BadgeTextDirectionValues } from './BadgeEnum';
|
|
3
4
|
import { Accessibility } from '../../objects';
|
|
4
5
|
/**
|
|
5
6
|
* Badge Interface
|
|
@@ -8,6 +9,7 @@ export interface BadgeProps extends Clickable, Accessibility {
|
|
|
8
9
|
children?: React.ReactNode;
|
|
9
10
|
content?: string | number;
|
|
10
11
|
textContent?: string;
|
|
11
|
-
|
|
12
|
+
direction?: BadgeTextDirection | BadgeTextDirectionValues;
|
|
12
13
|
className?: string;
|
|
14
|
+
color?: BadgeColor | BadgeColorValues;
|
|
13
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,YAAY,MAAM,iBAAiB,CAAA;AAE1C,cAAc,aAAa,CAAA;AAE3B,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -5,9 +5,9 @@ import { BoxProps } from "./BoxProps";
|
|
|
5
5
|
* @param children {React.ReactNode} Box child
|
|
6
6
|
* @param onClick {Function} onClick Event
|
|
7
7
|
* @param skeleton {boolean} Box skeleton
|
|
8
|
-
* @param
|
|
8
|
+
* @param background {TrilogyColor} Box Content Background Color
|
|
9
9
|
* @param inverted {boolean} Inverted Box Color
|
|
10
|
-
* @param
|
|
10
|
+
* @param leftBorder {TrilogyColor} Add Left Highlight Border With Semantic Color
|
|
11
11
|
* @param shadowless {boolean} Remove box shadow
|
|
12
12
|
* @param flat {boolean} Flat box remove shadow and add plain border
|
|
13
13
|
* @param backgroundSrc {string} Source of background Image
|
|
@@ -21,5 +21,5 @@ import { BoxProps } from "./BoxProps";
|
|
|
21
21
|
* @param fullheight
|
|
22
22
|
* @param others
|
|
23
23
|
*/
|
|
24
|
-
declare const Box: ({ inverted, children, className, onClick, markup, skeleton, to,
|
|
24
|
+
declare const Box: ({ inverted, children, className, onClick, markup, skeleton, to, background, leftBorder, shadowless, backgroundSrc, testId, flat, hat, fullheight, active, ...others }: BoxProps) => JSX.Element;
|
|
25
25
|
export default Box;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Box, BoxContent, BoxFooter } from './index';
|
|
3
|
+
import { Title } from '../../components/title';
|
|
4
|
+
import { Text } from '../../components/text';
|
|
5
|
+
import { Columns, ColumnsItem } from '../columns';
|
|
6
|
+
import { Link } from '../link';
|
|
7
|
+
const BoxExample = React.createElement(React.Fragment, null,
|
|
8
|
+
React.createElement(Columns, { multiline: true },
|
|
9
|
+
React.createElement(ColumnsItem, { size: 4 },
|
|
10
|
+
React.createElement(Box, null,
|
|
11
|
+
React.createElement(BoxContent, null,
|
|
12
|
+
React.createElement(Title, { level: "ONE" }, "Box Title"),
|
|
13
|
+
React.createElement(Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nec iaculis mauris.")))),
|
|
14
|
+
React.createElement(ColumnsItem, { size: 4 },
|
|
15
|
+
React.createElement(Box, { flat: true },
|
|
16
|
+
React.createElement(BoxContent, null,
|
|
17
|
+
React.createElement(Title, { level: "ONE" }, "Box Title"),
|
|
18
|
+
React.createElement(Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nec iaculis mauris.")))),
|
|
19
|
+
React.createElement(ColumnsItem, { size: 4 },
|
|
20
|
+
React.createElement(Box, { leftBorder: "WARNING" },
|
|
21
|
+
React.createElement(BoxContent, null,
|
|
22
|
+
React.createElement(Title, { level: "ONE" }, "Box Title"),
|
|
23
|
+
React.createElement(Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nec iaculis mauris.")))),
|
|
24
|
+
React.createElement(ColumnsItem, { size: 12 },
|
|
25
|
+
React.createElement(Box, null,
|
|
26
|
+
React.createElement(BoxContent, null,
|
|
27
|
+
React.createElement(Title, { level: "ONE" }, "Box Title"),
|
|
28
|
+
React.createElement(Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nec iaculis mauris.")),
|
|
29
|
+
React.createElement(BoxFooter, null,
|
|
30
|
+
React.createElement(Link, null, "Link"))))));
|
|
31
|
+
export default BoxExample;
|
|
32
|
+
//# sourceMappingURL=Box.example.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.example.js","sourceRoot":"","sources":["../../../components/box/Box.example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAG9B,MAAM,UAAU,GACd;IACE,oBAAC,OAAO,IAAC,SAAS;QAChB,oBAAC,WAAW,IAAC,IAAI,EAAE,CAAC;YAClB,oBAAC,GAAG;gBACF,oBAAC,UAAU;oBACT,oBAAC,KAAK,IAAC,KAAK,EAAC,KAAK,gBAEV;oBACR,oBAAC,IAAI,iGAEE,CACI,CACT,CACM;QACd,oBAAC,WAAW,IAAC,IAAI,EAAE,CAAC;YAClB,oBAAC,GAAG,IAAC,IAAI;gBACP,oBAAC,UAAU;oBACT,oBAAC,KAAK,IAAC,KAAK,EAAC,KAAK,gBAEV;oBACR,oBAAC,IAAI,iGAEE,CACI,CACT,CACM;QACd,oBAAC,WAAW,IAAC,IAAI,EAAE,CAAC;YAClB,oBAAC,GAAG,IACF,UAAU,EAAC,SAAS;gBAEpB,oBAAC,UAAU;oBACT,oBAAC,KAAK,IAAC,KAAK,EAAC,KAAK,gBAEV;oBACR,oBAAC,IAAI,iGAEE,CACI,CACT,CACM;QACd,oBAAC,WAAW,IAAC,IAAI,EAAE,EAAE;YACnB,oBAAC,GAAG;gBACF,oBAAC,UAAU;oBACT,oBAAC,KAAK,IAAC,KAAK,EAAC,KAAK,gBAEV;oBACR,oBAAC,IAAI,iGAEE,CACI;gBACb,oBAAC,SAAS;oBACR,oBAAC,IAAI,eAEE,CACG,CACR,CACM,CACN,CACT,CAAA;AAEL,eAAe,UAAU,CAAA"}
|
|
@@ -11,9 +11,9 @@ import { useTrilogyContext } from "../../context";
|
|
|
11
11
|
* @param children {React.ReactNode} Box child
|
|
12
12
|
* @param onClick {Function} onClick Event
|
|
13
13
|
* @param skeleton {boolean} Box skeleton
|
|
14
|
-
* @param
|
|
14
|
+
* @param background {TrilogyColor} Box Content Background Color
|
|
15
15
|
* @param inverted {boolean} Inverted Box Color
|
|
16
|
-
* @param
|
|
16
|
+
* @param leftBorder {TrilogyColor} Add Left Highlight Border With Semantic Color
|
|
17
17
|
* @param shadowless {boolean} Remove box shadow
|
|
18
18
|
* @param flat {boolean} Flat box remove shadow and add plain border
|
|
19
19
|
* @param backgroundSrc {string} Source of background Image
|
|
@@ -27,10 +27,10 @@ import { useTrilogyContext } from "../../context";
|
|
|
27
27
|
* @param fullheight
|
|
28
28
|
* @param others
|
|
29
29
|
*/
|
|
30
|
-
const Box = ({ inverted, children, className, onClick, markup, skeleton, to,
|
|
30
|
+
const Box = ({ inverted, children, className, onClick, markup, skeleton, to, background, leftBorder, shadowless, backgroundSrc, testId, flat, hat, fullheight, active, ...others }) => {
|
|
31
31
|
const { styled } = useTrilogyContext();
|
|
32
32
|
const [isLoading, setIsLoading] = useState(skeleton || false);
|
|
33
|
-
const classes = hashClass(styled, clsx("box", shadowless && is("shadowless"), className,
|
|
33
|
+
const classes = hashClass(styled, clsx("box", shadowless && is("shadowless"), className, background && has(getBackgroundClassName(background)), backgroundSrc && has("background"), (inverted && is("inverted")) || is("base"), isLoading ? is("loading") : is("loaded"), leftBorder && `${is("highlighted")} ${is(getColorClassName(leftBorder))}`, flat && is("flat"), hat && has("hat"), fullheight && is("fullheight"), active && is("active")));
|
|
34
34
|
useEffect(() => {
|
|
35
35
|
setIsLoading(skeleton || false);
|
|
36
36
|
}, [skeleton]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.js","sourceRoot":"","sources":["../../../components/box/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,SAAS,EAAY,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,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AE,CAAC,CAAC,EAAE,EAAE;YACb,iDAAiD;YACjD,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,CAAC,CAAC,CAAA;QACd,CAAC,EACD,SAAS,EAAE,OAAO,KACd,MAAM,KACN,CAAC,aAAa,IAAI;YACpB,KAAK,EAAE;gBACL,eAAe,EAAE,OAAO,aAAa,GAAG;gBACxC,cAAc,EAAE,OAAO;gBACvB,kBAAkB,EAAE,KAAK;aAC1B;SACF,CAAC,IAED,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,GAAG,CAAA"}
|
|
@@ -6,8 +6,8 @@ import { ComponentName } from "../../components/enumsComponentsName";
|
|
|
6
6
|
* @param children {React.ReactNode} Childrens
|
|
7
7
|
* @param onClick {Function} onClick Event
|
|
8
8
|
* @param skeleton {boolean} Box skeleton
|
|
9
|
-
* @param
|
|
10
|
-
* @param
|
|
9
|
+
* @param background {TrilogyColor} Box Content Background Color
|
|
10
|
+
* @param leftBorder {TrilogyColor} Add Left Highlight Border With Semantic Color
|
|
11
11
|
* @param testId {string} Test id
|
|
12
12
|
* @param shadowless {boolean} Remove box shadow
|
|
13
13
|
* @param backgroundSrc {string} Source of background Image
|
|
@@ -20,7 +20,7 @@ import { ComponentName } from "../../components/enumsComponentsName";
|
|
|
20
20
|
* @param others
|
|
21
21
|
*/
|
|
22
22
|
declare const Box: {
|
|
23
|
-
({ children, onClick, skeleton,
|
|
23
|
+
({ children, onClick, skeleton, leftBorder, testId, shadowless, background, backgroundSrc, inverted, flat, hat, fullheight, active, ...others }: BoxProps): JSX.Element;
|
|
24
24
|
displayName: ComponentName;
|
|
25
25
|
};
|
|
26
26
|
export default Box;
|