@trilogy-ds/react 0.0.1-beta-110 → 0.0.1-beta-112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/accordion/Accordion.d.ts +1 -1
- package/lib/components/accordion/Accordion.example.d.ts +3 -0
- package/lib/components/accordion/Accordion.example.js +19 -0
- package/lib/components/accordion/Accordion.example.js.map +1 -0
- package/lib/components/accordion/Accordion.js +3 -4
- package/lib/components/accordion/Accordion.js.map +1 -1
- package/lib/components/accordion/body/AccordionBody.d.ts +1 -2
- package/lib/components/accordion/body/AccordionBody.js +1 -2
- package/lib/components/accordion/body/AccordionBody.js.map +1 -1
- package/lib/components/accordion/body/AccordionBody.native.d.ts +1 -1
- package/lib/components/accordion/body/AccordionBody.native.js +1 -1
- package/lib/components/accordion/body/AccordionBodyProps.d.ts +1 -0
- package/lib/components/accordion/header/AccordionHeader.js +1 -1
- package/lib/components/accordion/header/AccordionHeader.js.map +1 -1
- package/lib/components/accordion/index.d.ts +2 -1
- package/lib/components/accordion/index.js +2 -1
- package/lib/components/accordion/index.js.map +1 -1
- package/lib/components/accordion/item/AccordionItem.js +1 -2
- package/lib/components/accordion/item/AccordionItem.js.map +1 -1
- package/lib/components/accordion/item/AccordionItem.native.js +4 -4
- package/lib/components/accordion/item/AccordionItem.native.js.map +1 -1
- package/lib/components/alert/Alert.d.ts +7 -7
- package/lib/components/alert/Alert.example.d.ts +3 -0
- package/lib/components/alert/Alert.example.js +14 -0
- package/lib/components/alert/Alert.example.js.map +1 -0
- package/lib/components/alert/Alert.js +14 -14
- package/lib/components/alert/Alert.js.map +1 -1
- package/lib/components/alert/Alert.native.d.ts +6 -7
- package/lib/components/alert/Alert.native.js +15 -14
- package/lib/components/alert/Alert.native.js.map +1 -1
- package/lib/components/alert/AlertProps.d.ts +4 -3
- package/lib/components/alert/context/ToasterContextProps.d.ts +3 -3
- package/lib/components/alert/index.d.ts +2 -1
- package/lib/components/alert/index.js +2 -1
- package/lib/components/alert/index.js.map +1 -1
- package/lib/components/autolayout/AutoLayout.native.js +1 -1
- package/lib/components/autolayout/AutoLayout.native.js.map +1 -1
- package/lib/components/autolayout/DefaultSpacingMatrix.js +74 -31
- package/lib/components/autolayout/DefaultSpacingMatrix.js.map +1 -1
- package/lib/components/badge/Badge.d.ts +3 -4
- package/lib/components/badge/Badge.example.d.ts +3 -0
- package/lib/components/badge/Badge.example.js +5 -0
- package/lib/components/badge/Badge.example.js.map +1 -0
- package/lib/components/badge/Badge.js +12 -9
- package/lib/components/badge/Badge.js.map +1 -1
- package/lib/components/badge/Badge.native.d.ts +3 -4
- package/lib/components/badge/Badge.native.js +11 -9
- package/lib/components/badge/Badge.native.js.map +1 -1
- package/lib/components/badge/BadgeEnum.d.ts +5 -0
- package/lib/components/badge/BadgeEnum.js +5 -0
- package/lib/components/badge/BadgeEnum.js.map +1 -1
- package/lib/components/badge/BadgeProps.d.ts +4 -3
- package/lib/components/badge/index.d.ts +2 -1
- package/lib/components/badge/index.js +2 -1
- package/lib/components/badge/index.js.map +1 -1
- package/lib/components/box/Box.d.ts +3 -3
- package/lib/components/box/Box.example.d.ts +3 -0
- package/lib/components/box/Box.example.js +31 -0
- package/lib/components/box/Box.example.js.map +1 -0
- package/lib/components/box/Box.js +4 -4
- package/lib/components/box/Box.js.map +1 -1
- package/lib/components/box/Box.native.d.ts +3 -3
- package/lib/components/box/Box.native.js +14 -13
- package/lib/components/box/Box.native.js.map +1 -1
- package/lib/components/box/BoxProps.d.ts +1 -1
- package/lib/components/box/content/BoxContent.d.ts +2 -2
- package/lib/components/box/content/BoxContent.js +3 -3
- package/lib/components/box/content/BoxContent.js.map +1 -1
- package/lib/components/box/content/BoxContent.native.d.ts +2 -2
- package/lib/components/box/content/BoxContent.native.js +6 -4
- package/lib/components/box/content/BoxContent.native.js.map +1 -1
- package/lib/components/box/footer/BoxFooter.d.ts +1 -2
- package/lib/components/box/footer/BoxFooter.js +1 -2
- package/lib/components/box/footer/BoxFooter.js.map +1 -1
- package/lib/components/box/footer/BoxFooter.native.d.ts +1 -1
- package/lib/components/box/footer/BoxFooter.native.js +1 -1
- package/lib/components/box/header/BoxHeader.d.ts +1 -3
- package/lib/components/box/header/BoxHeader.js +1 -3
- package/lib/components/box/header/BoxHeader.js.map +1 -1
- package/lib/components/box/header/BoxHeader.native.d.ts +1 -1
- package/lib/components/box/header/BoxHeader.native.js +1 -1
- package/lib/components/box/index.d.ts +2 -1
- package/lib/components/box/index.js +2 -1
- package/lib/components/box/index.js.map +1 -1
- package/lib/components/box/item/BoxItem.d.ts +1 -2
- package/lib/components/box/item/BoxItem.js +1 -2
- package/lib/components/box/item/BoxItem.js.map +1 -1
- package/lib/components/box/item/BoxItem.native.d.ts +1 -1
- package/lib/components/box/item/BoxItem.native.js +1 -1
- package/lib/components/box/table-container/BoxTableContainer.d.ts +1 -3
- package/lib/components/box/table-container/BoxTableContainer.js +1 -3
- package/lib/components/box/table-container/BoxTableContainer.js.map +1 -1
- package/lib/components/box/table-container/BoxTableContainer.native.d.ts +1 -1
- package/lib/components/box/table-container/BoxTableContainer.native.js +1 -1
- package/lib/components/breadcrumb/Breadcrumb.d.ts +2 -3
- package/lib/components/breadcrumb/Breadcrumb.example.d.ts +3 -0
- package/lib/components/breadcrumb/Breadcrumb.example.js +9 -0
- package/lib/components/breadcrumb/Breadcrumb.example.js.map +1 -0
- package/lib/components/breadcrumb/Breadcrumb.js +3 -5
- package/lib/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/index.d.ts +2 -1
- package/lib/components/breadcrumb/index.js +2 -1
- package/lib/components/breadcrumb/index.js.map +1 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.d.ts +0 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.js +0 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.js.map +1 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.d.ts +0 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +0 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.js.map +1 -1
- package/lib/components/button/Button.d.ts +1 -1
- package/lib/components/button/Button.example.d.ts +3 -0
- package/lib/components/button/Button.example.js +10 -0
- package/lib/components/button/Button.example.js.map +1 -0
- package/lib/components/button/Button.js +1 -1
- package/lib/components/button/Button.native.js +10 -10
- package/lib/components/button/Button.native.js.map +1 -1
- package/lib/components/button/index.d.ts +2 -1
- package/lib/components/button/index.js +2 -1
- package/lib/components/button/index.js.map +1 -1
- package/lib/components/button/list/ButtonList.native.js +4 -4
- package/lib/components/button/list/ButtonList.native.js.map +1 -1
- package/lib/components/card/Card.d.ts +3 -10
- package/lib/components/card/Card.example.d.ts +3 -0
- package/lib/components/card/Card.example.js +25 -0
- package/lib/components/card/Card.example.js.map +1 -0
- package/lib/components/card/Card.js +7 -13
- package/lib/components/card/Card.js.map +1 -1
- package/lib/components/card/Card.native.d.ts +3 -2
- package/lib/components/card/Card.native.js +8 -7
- package/lib/components/card/Card.native.js.map +1 -1
- package/lib/components/card/content/CardContent.d.ts +0 -1
- package/lib/components/card/content/CardContent.js +0 -1
- package/lib/components/card/content/CardContent.js.map +1 -1
- package/lib/components/card/content/CardContent.native.d.ts +1 -0
- package/lib/components/card/content/CardContent.native.js +1 -0
- package/lib/components/card/content/CardContent.native.js.map +1 -1
- package/lib/components/card/content/CardContentProps.d.ts +1 -0
- package/lib/components/card/image/CardImage.d.ts +2 -2
- package/lib/components/card/image/CardImage.js +2 -2
- package/lib/components/card/image/CardImage.native.d.ts +1 -1
- package/lib/components/card/image/CardImage.native.js +8 -11
- package/lib/components/card/image/CardImage.native.js.map +1 -1
- package/lib/components/card/image/CardImageProps.d.ts +2 -0
- package/lib/components/card/index.d.ts +2 -1
- package/lib/components/card/index.js +2 -1
- package/lib/components/card/index.js.map +1 -1
- package/lib/components/checkbox/Checkbox.d.ts +0 -3
- package/lib/components/checkbox/Checkbox.example.d.ts +3 -0
- package/lib/components/checkbox/Checkbox.example.js +18 -0
- package/lib/components/checkbox/Checkbox.example.js.map +1 -0
- package/lib/components/checkbox/Checkbox.js +0 -3
- package/lib/components/checkbox/Checkbox.js.map +1 -1
- package/lib/components/checkbox/Checkbox.native.d.ts +0 -5
- package/lib/components/checkbox/Checkbox.native.js +8 -13
- package/lib/components/checkbox/Checkbox.native.js.map +1 -1
- package/lib/components/checkbox/index.d.ts +2 -1
- package/lib/components/checkbox/index.js +2 -1
- package/lib/components/checkbox/index.js.map +1 -1
- package/lib/components/chips/Chips.d.ts +2 -2
- package/lib/components/chips/Chips.example.d.ts +3 -0
- package/lib/components/chips/Chips.example.js +13 -0
- package/lib/components/chips/Chips.example.js.map +1 -0
- package/lib/components/chips/Chips.js +6 -5
- package/lib/components/chips/Chips.js.map +1 -1
- package/lib/components/chips/Chips.native.d.ts +2 -1
- package/lib/components/chips/Chips.native.js +8 -6
- package/lib/components/chips/Chips.native.js.map +1 -1
- package/lib/components/chips/ChipsProps.d.ts +1 -0
- package/lib/components/chips/index.d.ts +2 -1
- package/lib/components/chips/index.js +2 -1
- package/lib/components/chips/index.js.map +1 -1
- package/lib/components/chips/list/ChipsList.d.ts +2 -2
- package/lib/components/chips/list/ChipsList.js +3 -4
- package/lib/components/chips/list/ChipsList.js.map +1 -1
- package/lib/components/columns/Columns.d.ts +7 -5
- package/lib/components/columns/Columns.example.d.ts +3 -0
- package/lib/components/columns/Columns.example.js +16 -0
- package/lib/components/columns/Columns.example.js.map +1 -0
- package/lib/components/columns/Columns.js +10 -9
- package/lib/components/columns/Columns.js.map +1 -1
- package/lib/components/columns/Columns.native.d.ts +5 -5
- package/lib/components/columns/Columns.native.js +49 -63
- package/lib/components/columns/Columns.native.js.map +1 -1
- package/lib/components/columns/ColumnsProps.d.ts +6 -6
- package/lib/components/columns/ColumnsTypes.d.ts +0 -3
- package/lib/components/columns/ColumnsTypes.js +1 -1
- package/lib/components/columns/ColumnsTypes.js.map +1 -1
- package/lib/components/columns/index.d.ts +2 -1
- package/lib/components/columns/index.js +2 -1
- package/lib/components/columns/index.js.map +1 -1
- package/lib/components/columns/item/ColumnsItem.d.ts +3 -3
- package/lib/components/columns/item/ColumnsItem.js +5 -6
- package/lib/components/columns/item/ColumnsItem.js.map +1 -1
- package/lib/components/columns/item/ColumnsItem.native.d.ts +2 -4
- package/lib/components/columns/item/ColumnsItem.native.js +11 -12
- package/lib/components/columns/item/ColumnsItem.native.js.map +1 -1
- package/lib/components/columns/item/ColumnsItemProps.d.ts +1 -1
- package/lib/components/container/Container.d.ts +2 -7
- package/lib/components/container/Container.example.d.ts +3 -0
- package/lib/components/container/Container.example.js +9 -0
- package/lib/components/container/Container.example.js.map +1 -0
- package/lib/components/container/Container.js +3 -8
- package/lib/components/container/Container.js.map +1 -1
- package/lib/components/container/Container.native.d.ts +2 -4
- package/lib/components/container/Container.native.js +8 -10
- package/lib/components/container/Container.native.js.map +1 -1
- package/lib/components/container/index.d.ts +2 -1
- package/lib/components/container/index.js +2 -1
- package/lib/components/container/index.js.map +1 -1
- package/lib/components/countdown/Countdown.d.ts +2 -4
- package/lib/components/countdown/Countdown.example.d.ts +3 -0
- package/lib/components/countdown/Countdown.example.js +10 -0
- package/lib/components/countdown/Countdown.example.js.map +1 -0
- package/lib/components/countdown/Countdown.js +3 -5
- package/lib/components/countdown/Countdown.js.map +1 -1
- package/lib/components/countdown/Countdown.native.d.ts +1 -2
- package/lib/components/countdown/Countdown.native.js +3 -4
- package/lib/components/countdown/Countdown.native.js.map +1 -1
- package/lib/components/countdown/CountdownProps.d.ts +0 -1
- package/lib/components/countdown/index.d.ts +2 -1
- package/lib/components/countdown/index.js +2 -1
- package/lib/components/countdown/index.js.map +1 -1
- package/lib/components/divider/Divider.d.ts +1 -1
- package/lib/components/divider/Divider.example.d.ts +3 -0
- package/lib/components/divider/Divider.example.js +5 -0
- package/lib/components/divider/Divider.example.js.map +1 -0
- package/lib/components/divider/Divider.js +1 -1
- package/lib/components/divider/Divider.native.d.ts +1 -1
- package/lib/components/divider/Divider.native.js +3 -3
- package/lib/components/divider/Divider.native.js.map +1 -1
- package/lib/components/divider/index.d.ts +2 -1
- package/lib/components/divider/index.js +2 -1
- package/lib/components/divider/index.js.map +1 -1
- package/lib/components/enumsComponentsName.d.ts +1 -2
- package/lib/components/enumsComponentsName.js +1 -2
- package/lib/components/enumsComponentsName.js.map +1 -1
- package/lib/components/fab/Fab.d.ts +0 -1
- package/lib/components/fab/Fab.example.d.ts +3 -0
- package/lib/components/fab/Fab.example.js +10 -0
- package/lib/components/fab/Fab.example.js.map +1 -0
- package/lib/components/fab/Fab.js +0 -1
- package/lib/components/fab/Fab.js.map +1 -1
- package/lib/components/fab/FabProps.d.ts +2 -2
- package/lib/components/fab/index.d.ts +2 -1
- package/lib/components/fab/index.js +2 -1
- package/lib/components/fab/index.js.map +1 -1
- package/lib/components/hero/Hero.d.ts +1 -5
- package/lib/components/hero/Hero.example.d.ts +3 -0
- package/lib/components/hero/Hero.example.js +21 -0
- package/lib/components/hero/Hero.example.js.map +1 -0
- package/lib/components/hero/Hero.js +2 -6
- package/lib/components/hero/Hero.js.map +1 -1
- package/lib/components/hero/Hero.native.d.ts +2 -2
- package/lib/components/hero/Hero.native.js +8 -8
- package/lib/components/hero/Hero.native.js.map +1 -1
- package/lib/components/hero/index.d.ts +2 -1
- package/lib/components/hero/index.js +2 -1
- package/lib/components/hero/index.js.map +1 -1
- package/lib/components/icon/Icon.d.ts +2 -4
- package/lib/components/icon/Icon.example.d.ts +3 -0
- package/lib/components/icon/Icon.example.js +12 -0
- package/lib/components/icon/Icon.example.js.map +1 -0
- package/lib/components/icon/Icon.js +3 -5
- package/lib/components/icon/Icon.js.map +1 -1
- package/lib/components/icon/Icon.native.d.ts +1 -1
- package/lib/components/icon/Icon.native.js +2 -2
- package/lib/components/icon/Icon.native.js.map +1 -1
- package/lib/components/icon/index.d.ts +2 -1
- package/lib/components/icon/index.js +2 -1
- package/lib/components/icon/index.js.map +1 -1
- package/lib/components/icon/text/TextIcon.d.ts +2 -4
- package/lib/components/icon/text/TextIcon.js +17 -15
- package/lib/components/icon/text/TextIcon.js.map +1 -1
- package/lib/components/image/Image.example.d.ts +3 -0
- package/lib/components/image/Image.example.js +5 -0
- package/lib/components/image/Image.example.js.map +1 -0
- package/lib/components/image/index.d.ts +2 -1
- package/lib/components/image/index.js +2 -1
- package/lib/components/image/index.js.map +1 -1
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.js +0 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/Input.d.ts +72 -2
- package/lib/components/input/Input.example.d.ts +3 -0
- package/lib/components/input/Input.example.js +5 -0
- package/lib/components/input/Input.example.js.map +1 -0
- package/lib/components/input/Input.js +34 -19
- package/lib/components/input/Input.js.map +1 -1
- package/lib/components/input/Input.native.d.ts +4 -4
- package/lib/components/input/Input.native.js +42 -49
- package/lib/components/input/Input.native.js.map +1 -1
- package/lib/components/input/InputProps.d.ts +12 -21
- package/lib/components/input/autocomplete/AutoComplete.d.ts +24 -0
- package/lib/components/{autocomplete → input/autocomplete}/AutoComplete.js +12 -22
- package/lib/components/input/autocomplete/AutoComplete.js.map +1 -0
- package/lib/components/input/autocomplete/AutoComplete.native.d.ts +4 -0
- package/lib/components/{autocomplete → input/autocomplete}/AutoComplete.native.js +3 -24
- package/lib/components/input/autocomplete/AutoComplete.native.js.map +1 -0
- package/lib/components/input/autocomplete/AutoCompleteProps.d.ts +29 -0
- package/lib/components/input/autocomplete/AutoCompleteProps.js.map +1 -0
- package/lib/components/input/autocomplete/Autocomplete.helpers.js.map +1 -0
- package/lib/components/input/autocomplete/index.js.map +1 -0
- package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteIem.native.js +2 -2
- package/lib/components/input/autocomplete/item/AutoCompleteIem.native.js.map +1 -0
- package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteItem.js +3 -3
- package/lib/components/input/autocomplete/item/AutoCompleteItem.js.map +1 -0
- package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteItemProps.d.ts +1 -1
- package/lib/components/input/autocomplete/item/AutoCompleteItemProps.js.map +1 -0
- package/lib/components/input/autocomplete/item/index.js.map +1 -0
- package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenu.js +3 -3
- package/lib/components/input/autocomplete/menu/AutoCompleteMenu.js.map +1 -0
- package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenu.native.js +3 -3
- package/lib/components/input/autocomplete/menu/AutoCompleteMenu.native.js.map +1 -0
- package/lib/components/input/autocomplete/menu/AutoCompleteMenuProps.js.map +1 -0
- package/lib/components/input/autocomplete/menu/index.js.map +1 -0
- package/lib/components/input/autocomplete/utils/debounce.js.map +1 -0
- package/lib/components/input/autocomplete/utils/index.js.map +1 -0
- package/lib/components/input/gauge/InputGauge.native.js +1 -1
- package/lib/components/input/gauge/InputGauge.native.js.map +1 -1
- package/lib/components/input/gauge/hook/useGauge.js +1 -1
- package/lib/components/input/gauge/hook/useGauge.js.map +1 -1
- package/lib/components/input/index.d.ts +2 -1
- package/lib/components/input/index.js +2 -1
- package/lib/components/input/index.js.map +1 -1
- package/lib/components/link/Link.d.ts +0 -2
- package/lib/components/link/Link.example.d.ts +3 -0
- package/lib/components/link/Link.example.js +15 -0
- package/lib/components/link/Link.example.js.map +1 -0
- package/lib/components/link/Link.js +2 -4
- package/lib/components/link/Link.js.map +1 -1
- package/lib/components/link/Link.native.d.ts +1 -2
- package/lib/components/link/Link.native.js +10 -12
- package/lib/components/link/Link.native.js.map +1 -1
- package/lib/components/link/LinkProps.d.ts +1 -0
- package/lib/components/link/index.d.ts +2 -1
- package/lib/components/link/index.js +2 -1
- package/lib/components/link/index.js.map +1 -1
- package/lib/components/list/List.d.ts +4 -6
- package/lib/components/list/List.example.d.ts +3 -0
- package/lib/components/list/List.example.js +17 -0
- package/lib/components/list/List.example.js.map +1 -0
- package/lib/components/list/List.js +5 -8
- package/lib/components/list/List.js.map +1 -1
- package/lib/components/list/List.native.d.ts +0 -4
- package/lib/components/list/List.native.js +0 -4
- package/lib/components/list/List.native.js.map +1 -1
- package/lib/components/list/index.d.ts +2 -1
- package/lib/components/list/index.js +2 -1
- package/lib/components/list/index.js.map +1 -1
- package/lib/components/list/item/ListItem.d.ts +1 -3
- package/lib/components/list/item/ListItem.js +1 -3
- package/lib/components/list/item/ListItem.js.map +1 -1
- package/lib/components/list/item/ListItem.native.d.ts +0 -11
- package/lib/components/list/item/ListItem.native.js +1 -12
- package/lib/components/list/item/ListItem.native.js.map +1 -1
- package/lib/components/list/item/description/ListItemDescription.d.ts +2 -3
- package/lib/components/list/item/description/ListItemDescription.js +2 -3
- package/lib/components/list/item/description/ListItemDescription.js.map +1 -1
- package/lib/components/list/item/description/ListItemDescription.native.d.ts +0 -4
- package/lib/components/list/item/description/ListItemDescription.native.js +0 -4
- package/lib/components/list/item/description/ListItemDescription.native.js.map +1 -1
- package/lib/components/modal/Modal.d.ts +6 -6
- package/lib/components/modal/Modal.example.d.ts +3 -0
- package/lib/components/modal/Modal.example.js +5 -0
- package/lib/components/modal/Modal.example.js.map +1 -0
- package/lib/components/modal/Modal.js +19 -19
- package/lib/components/modal/Modal.js.map +1 -1
- package/lib/components/modal/ModalProps.d.ts +5 -1
- package/lib/components/modal/footer/ModalFooter.d.ts +2 -3
- package/lib/components/modal/footer/ModalFooter.js +2 -3
- package/lib/components/modal/footer/ModalFooter.js.map +1 -1
- package/lib/components/modal/footer/ModalFooter.native.d.ts +0 -4
- package/lib/components/modal/footer/ModalFooter.native.js +0 -4
- package/lib/components/modal/footer/ModalFooter.native.js.map +1 -1
- package/lib/components/modal/index.d.ts +2 -1
- package/lib/components/modal/index.js +2 -1
- package/lib/components/modal/index.js.map +1 -1
- package/lib/components/modal/title/ModalTitle.d.ts +1 -2
- package/lib/components/modal/title/ModalTitle.js +2 -3
- package/lib/components/modal/title/ModalTitle.js.map +1 -1
- package/lib/components/modal/title/ModalTitle.native.d.ts +0 -6
- package/lib/components/modal/title/ModalTitle.native.js +0 -6
- package/lib/components/modal/title/ModalTitle.native.js.map +1 -1
- package/lib/components/otp/Otp.d.ts +1 -4
- package/lib/components/otp/Otp.example.d.ts +3 -0
- package/lib/components/otp/Otp.example.js +13 -0
- package/lib/components/otp/Otp.example.js.map +1 -0
- package/lib/components/otp/Otp.js +87 -81
- package/lib/components/otp/Otp.js.map +1 -1
- package/lib/components/otp/Otp.native.d.ts +0 -2
- package/lib/components/otp/Otp.native.js +1 -3
- package/lib/components/otp/Otp.native.js.map +1 -1
- package/lib/components/otp/index.d.ts +2 -1
- package/lib/components/otp/index.js +2 -1
- package/lib/components/otp/index.js.map +1 -1
- package/lib/components/pagination/Pagination.d.ts +0 -1
- package/lib/components/pagination/Pagination.example.d.ts +3 -0
- package/lib/components/pagination/Pagination.example.js +5 -0
- package/lib/components/pagination/Pagination.example.js.map +1 -0
- package/lib/components/pagination/Pagination.js +6 -6
- package/lib/components/pagination/Pagination.js.map +1 -1
- package/lib/components/pagination/index.d.ts +2 -1
- package/lib/components/pagination/index.js +2 -1
- package/lib/components/pagination/index.js.map +1 -1
- package/lib/components/popover/Popover.d.ts +1 -3
- package/lib/components/popover/Popover.example.d.ts +3 -0
- package/lib/components/popover/Popover.example.js +7 -0
- package/lib/components/popover/Popover.example.js.map +1 -0
- package/lib/components/popover/Popover.js +1 -3
- package/lib/components/popover/Popover.js.map +1 -1
- package/lib/components/popover/Popover.native.d.ts +2 -0
- package/lib/components/popover/Popover.native.js +2 -0
- package/lib/components/popover/Popover.native.js.map +1 -1
- package/lib/components/popover/index.d.ts +2 -1
- package/lib/components/popover/index.js +2 -1
- package/lib/components/popover/index.js.map +1 -1
- package/lib/components/price/Price.d.ts +4 -4
- package/lib/components/price/Price.example.d.ts +3 -0
- package/lib/components/price/Price.example.js +12 -0
- package/lib/components/price/Price.example.js.map +1 -0
- package/lib/components/price/Price.js +10 -29
- package/lib/components/price/Price.js.map +1 -1
- package/lib/components/price/Price.native.d.ts +3 -3
- package/lib/components/price/Price.native.js +88 -129
- package/lib/components/price/Price.native.js.map +1 -1
- package/lib/components/price/PriceEnum.d.ts +8 -8
- package/lib/components/price/PriceEnum.js +7 -7
- package/lib/components/price/PriceEnum.js.map +1 -1
- package/lib/components/price/PriceProps.d.ts +7 -7
- package/lib/components/price/index.d.ts +2 -1
- package/lib/components/price/index.js +2 -1
- package/lib/components/price/index.js.map +1 -1
- package/lib/components/product-tour/ProductTour.d.ts +3 -3
- package/lib/components/product-tour/ProductTour.js +3 -3
- package/lib/components/progress/Progress.d.ts +3 -3
- package/lib/components/progress/Progress.example.d.ts +3 -0
- package/lib/components/progress/Progress.example.js +7 -0
- package/lib/components/progress/Progress.example.js.map +1 -0
- package/lib/components/progress/Progress.js +6 -7
- package/lib/components/progress/Progress.js.map +1 -1
- package/lib/components/progress/Progress.native.d.ts +2 -2
- package/lib/components/progress/Progress.native.js +6 -6
- package/lib/components/progress/Progress.native.js.map +1 -1
- package/lib/components/progress/ProgressProps.d.ts +2 -2
- package/lib/components/progress/index.d.ts +2 -1
- package/lib/components/progress/index.js +2 -1
- package/lib/components/progress/index.js.map +1 -1
- package/lib/components/progress/item/ProgressItem.d.ts +6 -6
- package/lib/components/progress/item/ProgressItem.js +9 -10
- package/lib/components/progress/item/ProgressItem.js.map +1 -1
- package/lib/components/progress/item/ProgressItem.native.d.ts +3 -2
- package/lib/components/progress/item/ProgressItem.native.js +3 -2
- package/lib/components/progress/item/ProgressItem.native.js.map +1 -1
- package/lib/components/progress/item/ProgressItemProps.d.ts +2 -2
- package/lib/components/progress/radial/ProgressRadial.d.ts +0 -18
- package/lib/components/progress/radial/ProgressRadial.js +1 -20
- package/lib/components/progress/radial/ProgressRadial.js.map +1 -1
- package/lib/components/progress/radial/ProgressRadial.native.d.ts +3 -3
- package/lib/components/progress/radial/ProgressRadial.native.js +12 -10
- package/lib/components/progress/radial/ProgressRadial.native.js.map +1 -1
- package/lib/components/progress/radial/ProgressRadialProps.d.ts +3 -3
- package/lib/components/radio/Radio.d.ts +2 -7
- package/lib/components/radio/Radio.example.d.ts +3 -0
- package/lib/components/radio/Radio.example.js +18 -0
- package/lib/components/radio/Radio.example.js.map +1 -0
- package/lib/components/radio/Radio.js +2 -7
- package/lib/components/radio/Radio.js.map +1 -1
- package/lib/components/radio/Radio.native.d.ts +7 -9
- package/lib/components/radio/Radio.native.js +18 -21
- package/lib/components/radio/Radio.native.js.map +1 -1
- package/lib/components/radio/index.d.ts +2 -1
- package/lib/components/radio/index.js +2 -1
- package/lib/components/radio/index.js.map +1 -1
- package/lib/components/radio/list/RadioList.js.map +1 -1
- package/lib/components/radio/list/RadioList.native.js +4 -4
- package/lib/components/radio/list/RadioList.native.js.map +1 -1
- package/lib/components/range/Range.d.ts +3 -6
- package/lib/components/range/Range.example.d.ts +3 -0
- package/lib/components/range/Range.example.js +5 -0
- package/lib/components/range/Range.example.js.map +1 -0
- package/lib/components/range/Range.js +4 -7
- package/lib/components/range/Range.js.map +1 -1
- package/lib/components/range/Range.native.d.ts +0 -3
- package/lib/components/range/Range.native.js +0 -3
- package/lib/components/range/Range.native.js.map +1 -1
- package/lib/components/range/index.d.ts +2 -1
- package/lib/components/range/index.js +2 -1
- package/lib/components/range/index.js.map +1 -1
- package/lib/components/rows/Rows.d.ts +2 -3
- package/lib/components/rows/Rows.example.d.ts +3 -0
- package/lib/components/rows/Rows.example.js +16 -0
- package/lib/components/rows/Rows.example.js.map +1 -0
- package/lib/components/rows/Rows.js +3 -6
- package/lib/components/rows/Rows.js.map +1 -1
- package/lib/components/rows/Rows.native.d.ts +2 -6
- package/lib/components/rows/Rows.native.js +2 -5
- package/lib/components/rows/Rows.native.js.map +1 -1
- package/lib/components/rows/RowsProps.d.ts +0 -1
- package/lib/components/rows/index.d.ts +2 -1
- package/lib/components/rows/index.js +2 -1
- package/lib/components/rows/index.js.map +1 -1
- package/lib/components/rows/item/RowItem.d.ts +2 -2
- package/lib/components/rows/item/RowItem.js +3 -4
- package/lib/components/rows/item/RowItem.js.map +1 -1
- package/lib/components/rows/item/RowItem.native.js +1 -3
- package/lib/components/rows/item/RowItem.native.js.map +1 -1
- package/lib/components/scroll-view/ScrollView.d.ts +1 -3
- package/lib/components/scroll-view/ScrollView.js +1 -3
- package/lib/components/scroll-view/ScrollView.js.map +1 -1
- package/lib/components/section/Section.d.ts +5 -10
- package/lib/components/section/Section.example.d.ts +3 -0
- package/lib/components/section/Section.example.js +16 -0
- package/lib/components/section/Section.example.js.map +1 -0
- package/lib/components/section/Section.js +8 -14
- package/lib/components/section/Section.js.map +1 -1
- package/lib/components/section/Section.native.d.ts +6 -6
- package/lib/components/section/Section.native.js +8 -8
- package/lib/components/section/Section.native.js.map +1 -1
- package/lib/components/section/SectionProps.d.ts +2 -2
- package/lib/components/section/index.d.ts +2 -1
- package/lib/components/section/index.js +2 -1
- package/lib/components/section/index.js.map +1 -1
- package/lib/components/segment-control/SegmentControl.d.ts +1 -4
- package/lib/components/segment-control/SegmentControl.example.d.ts +3 -0
- package/lib/components/segment-control/SegmentControl.example.js +9 -0
- package/lib/components/segment-control/SegmentControl.example.js.map +1 -0
- package/lib/components/segment-control/SegmentControl.js +1 -4
- package/lib/components/segment-control/SegmentControl.js.map +1 -1
- package/lib/components/segment-control/SegmentControl.native.d.ts +4 -4
- package/lib/components/segment-control/SegmentControl.native.js +5 -5
- package/lib/components/segment-control/SegmentControl.native.js.map +1 -1
- package/lib/components/segment-control/SegmentControlProps.d.ts +4 -1
- package/lib/components/segment-control/index.d.ts +2 -1
- package/lib/components/segment-control/index.js +2 -1
- package/lib/components/segment-control/index.js.map +1 -1
- package/lib/components/segment-control/item/SegmentControlItem.d.ts +0 -2
- package/lib/components/segment-control/item/SegmentControlItem.js +0 -2
- package/lib/components/segment-control/item/SegmentControlItem.js.map +1 -1
- package/lib/components/segment-control/item/SegmentControlItem.native.js +2 -2
- package/lib/components/segment-control/item/SegmentControlItem.native.js.map +1 -1
- package/lib/components/select/Select.d.ts +3 -3
- package/lib/components/select/Select.example.d.ts +3 -0
- package/lib/components/select/Select.example.js +8 -0
- package/lib/components/select/Select.example.js.map +1 -0
- package/lib/components/select/Select.js +3 -3
- package/lib/components/select/Select.native.d.ts +1 -4
- package/lib/components/select/Select.native.js +1 -4
- package/lib/components/select/Select.native.js.map +1 -1
- package/lib/components/select/index.d.ts +2 -1
- package/lib/components/select/index.js +2 -1
- package/lib/components/select/index.js.map +1 -1
- package/lib/components/select/option/SelectOption.d.ts +2 -2
- package/lib/components/select/option/SelectOption.js +3 -4
- package/lib/components/select/option/SelectOption.js.map +1 -1
- package/lib/components/select/option/SelectOption.native.js +14 -18
- package/lib/components/select/option/SelectOption.native.js.map +1 -1
- package/lib/components/select/web/SelectDynamic.js +2 -3
- package/lib/components/select/web/SelectDynamic.js.map +1 -1
- package/lib/components/selector/Selector.d.ts +0 -7
- package/lib/components/selector/Selector.js +0 -7
- package/lib/components/selector/Selector.js.map +1 -1
- package/lib/components/selector/Selector.native.d.ts +3 -7
- package/lib/components/selector/Selector.native.js +3 -7
- package/lib/components/selector/Selector.native.js.map +1 -1
- package/lib/components/selector/item/SelectorItem.d.ts +1 -6
- package/lib/components/selector/item/SelectorItem.js +1 -6
- package/lib/components/selector/item/SelectorItem.js.map +1 -1
- package/lib/components/selector/item/SelectorItem.native.d.ts +0 -4
- package/lib/components/selector/item/SelectorItem.native.js +1 -5
- package/lib/components/selector/item/SelectorItem.native.js.map +1 -1
- package/lib/components/spacer/Spacer.d.ts +1 -1
- package/lib/components/spacer/Spacer.js +1 -1
- package/lib/components/spacer/Spacer.native.d.ts +2 -1
- package/lib/components/spacer/Spacer.native.js +2 -1
- package/lib/components/spacer/Spacer.native.js.map +1 -1
- package/lib/components/spacer/SpacerEnum.d.ts +7 -12
- package/lib/components/spacer/SpacerEnum.js +7 -12
- package/lib/components/spacer/SpacerEnum.js.map +1 -1
- package/lib/components/spacer/SpacerProps.d.ts +2 -2
- package/lib/components/stepper/Stepper.d.ts +3 -4
- package/lib/components/stepper/Stepper.example.d.ts +3 -0
- package/lib/components/stepper/Stepper.example.js +10 -0
- package/lib/components/stepper/Stepper.example.js.map +1 -0
- package/lib/components/stepper/Stepper.js +6 -9
- package/lib/components/stepper/Stepper.js.map +1 -1
- package/lib/components/stepper/Stepper.native.js +2 -1
- package/lib/components/stepper/Stepper.native.js.map +1 -1
- package/lib/components/stepper/index.d.ts +2 -1
- package/lib/components/stepper/index.js +2 -1
- package/lib/components/stepper/index.js.map +1 -1
- package/lib/components/stepper/step/StepperStep.d.ts +5 -8
- package/lib/components/stepper/step/StepperStep.js +6 -10
- package/lib/components/stepper/step/StepperStep.js.map +1 -1
- package/lib/components/stepper/step/StepperStep.native.d.ts +3 -2
- package/lib/components/stepper/step/StepperStep.native.js +4 -3
- package/lib/components/stepper/step/StepperStep.native.js.map +1 -1
- package/lib/components/sticker/Sticker.d.ts +2 -3
- package/lib/components/sticker/Sticker.example.d.ts +3 -0
- package/lib/components/sticker/Sticker.example.js +10 -0
- package/lib/components/sticker/Sticker.example.js.map +1 -0
- package/lib/components/sticker/Sticker.js +3 -4
- package/lib/components/sticker/Sticker.js.map +1 -1
- package/lib/components/sticker/Sticker.native.d.ts +3 -3
- package/lib/components/sticker/Sticker.native.js +3 -3
- package/lib/components/sticker/index.d.ts +2 -1
- package/lib/components/sticker/index.js +2 -1
- package/lib/components/sticker/index.js.map +1 -1
- package/lib/components/switch/Switch.d.ts +5 -5
- package/lib/components/switch/Switch.example.d.ts +3 -0
- package/lib/components/switch/Switch.example.js +12 -0
- package/lib/components/switch/Switch.example.js.map +1 -0
- package/lib/components/switch/Switch.js +7 -7
- package/lib/components/switch/Switch.js.map +1 -1
- package/lib/components/switch/Switch.native.d.ts +3 -3
- package/lib/components/switch/Switch.native.js +8 -7
- package/lib/components/switch/Switch.native.js.map +1 -1
- package/lib/components/switch/SwitchProps.d.ts +2 -2
- package/lib/components/switch/index.d.ts +2 -1
- package/lib/components/switch/index.js +2 -1
- package/lib/components/switch/index.js.map +1 -1
- package/lib/components/table/Table.example.d.ts +3 -0
- package/lib/components/table/Table.example.js +19 -0
- package/lib/components/table/Table.example.js.map +1 -0
- package/lib/components/table/Table.native.js +1 -1
- package/lib/components/table/Table.native.js.map +1 -1
- package/lib/components/table/index.d.ts +2 -1
- package/lib/components/table/index.js +2 -1
- package/lib/components/table/index.js.map +1 -1
- package/lib/components/table/td/TableTd.native.js +2 -2
- package/lib/components/table/td/TableTd.native.js.map +1 -1
- package/lib/components/table/th/TableTh.native.js +2 -2
- package/lib/components/table/th/TableTh.native.js.map +1 -1
- package/lib/components/table/tr/TableTr.native.js +1 -1
- package/lib/components/table/tr/TableTr.native.js.map +1 -1
- package/lib/components/tabs/Tabs.d.ts +5 -7
- package/lib/components/tabs/Tabs.example.d.ts +3 -0
- package/lib/components/tabs/Tabs.example.js +16 -0
- package/lib/components/tabs/Tabs.example.js.map +1 -0
- package/lib/components/tabs/Tabs.js +7 -10
- package/lib/components/tabs/Tabs.js.map +1 -1
- package/lib/components/tabs/Tabs.native.d.ts +1 -2
- package/lib/components/tabs/Tabs.native.js +1 -2
- package/lib/components/tabs/Tabs.native.js.map +1 -1
- package/lib/components/tabs/TabsProps.d.ts +4 -0
- package/lib/components/tabs/index.d.ts +2 -1
- package/lib/components/tabs/index.js +2 -1
- package/lib/components/tabs/index.js.map +1 -1
- package/lib/components/tabs/item/TabsItem.d.ts +5 -6
- package/lib/components/tabs/item/TabsItem.js +7 -9
- package/lib/components/tabs/item/TabsItem.js.map +1 -1
- package/lib/components/tabs/item/TabsItem.native.d.ts +0 -1
- package/lib/components/tabs/item/TabsItem.native.js +1 -2
- package/lib/components/tabs/item/TabsItem.native.js.map +1 -1
- package/lib/components/tag/Tag.d.ts +4 -6
- package/lib/components/tag/Tag.example.d.ts +3 -0
- package/lib/components/tag/Tag.example.js +13 -0
- package/lib/components/tag/Tag.example.js.map +1 -0
- package/lib/components/tag/Tag.js +32 -15
- package/lib/components/tag/Tag.js.map +1 -1
- package/lib/components/tag/Tag.native.d.ts +10 -8
- package/lib/components/tag/Tag.native.js +57 -27
- package/lib/components/tag/Tag.native.js.map +1 -1
- package/lib/components/tag/TagProps.d.ts +4 -0
- package/lib/components/tag/index.d.ts +2 -1
- package/lib/components/tag/index.js +2 -1
- package/lib/components/tag/index.js.map +1 -1
- package/lib/components/tag/list/TagList.d.ts +3 -3
- package/lib/components/tag/list/TagList.js +4 -5
- package/lib/components/tag/list/TagList.js.map +1 -1
- package/lib/components/text/Text.example.d.ts +3 -0
- package/lib/components/text/Text.example.js +5 -0
- package/lib/components/text/Text.example.js.map +1 -0
- package/lib/components/text/Text.native.js +8 -9
- package/lib/components/text/Text.native.js.map +1 -1
- package/lib/components/text/TextEnum.d.ts +5 -5
- package/lib/components/text/TextEnum.js +4 -4
- package/lib/components/text/TextEnum.js.map +1 -1
- package/lib/components/text/index.d.ts +2 -1
- package/lib/components/text/index.js +2 -1
- package/lib/components/text/index.js.map +1 -1
- package/lib/components/textarea/Textarea.d.ts +4 -12
- package/lib/components/textarea/Textarea.example.d.ts +3 -0
- package/lib/components/textarea/Textarea.example.js +12 -0
- package/lib/components/textarea/Textarea.example.js.map +1 -0
- package/lib/components/textarea/Textarea.js +7 -20
- package/lib/components/textarea/Textarea.js.map +1 -1
- package/lib/components/textarea/Textarea.native.d.ts +2 -2
- package/lib/components/textarea/Textarea.native.js +51 -67
- package/lib/components/textarea/Textarea.native.js.map +1 -1
- package/lib/components/textarea/TextareaProps.d.ts +4 -2
- package/lib/components/textarea/index.d.ts +2 -1
- package/lib/components/textarea/index.js +2 -1
- package/lib/components/textarea/index.js.map +1 -1
- package/lib/components/timeline/Timeline.d.ts +2 -2
- package/lib/components/timeline/Timeline.example.d.ts +3 -0
- package/lib/components/timeline/Timeline.example.js +34 -0
- package/lib/components/timeline/Timeline.example.js.map +1 -0
- package/lib/components/timeline/Timeline.js +4 -4
- package/lib/components/timeline/Timeline.js.map +1 -1
- package/lib/components/timeline/content/TimelineContent.d.ts +1 -2
- package/lib/components/timeline/content/TimelineContent.js +2 -3
- package/lib/components/timeline/content/TimelineContent.js.map +1 -1
- package/lib/components/timeline/content/TimelineContent.native.d.ts +3 -3
- package/lib/components/timeline/content/TimelineContent.native.js +3 -3
- package/lib/components/timeline/index.d.ts +2 -1
- package/lib/components/timeline/index.js +2 -1
- package/lib/components/timeline/index.js.map +1 -1
- package/lib/components/timeline/item/TimelineItem.d.ts +3 -4
- package/lib/components/timeline/item/TimelineItem.js +4 -6
- package/lib/components/timeline/item/TimelineItem.js.map +1 -1
- package/lib/components/timeline/item/TimelineItem.native.d.ts +4 -8
- package/lib/components/timeline/item/TimelineItem.native.js +3 -7
- package/lib/components/timeline/item/TimelineItem.native.js.map +1 -1
- package/lib/components/timeline/marker/TimelineMarker.d.ts +3 -4
- package/lib/components/timeline/marker/TimelineMarker.js +3 -4
- package/lib/components/timeline/marker/TimelineMarker.js.map +1 -1
- package/lib/components/timeline/marker/TimelineMarker.native.d.ts +1 -3
- package/lib/components/timeline/marker/TimelineMarker.native.js +8 -10
- package/lib/components/timeline/marker/TimelineMarker.native.js.map +1 -1
- package/lib/components/title/Title.d.ts +2 -4
- package/lib/components/title/Title.example.d.ts +3 -0
- package/lib/components/title/Title.example.js +10 -0
- package/lib/components/title/Title.example.js.map +1 -0
- package/lib/components/title/Title.js +4 -6
- package/lib/components/title/Title.js.map +1 -1
- package/lib/components/title/Title.native.d.ts +5 -7
- package/lib/components/title/Title.native.js +14 -17
- package/lib/components/title/Title.native.js.map +1 -1
- package/lib/components/title/TitleEnum.d.ts +7 -7
- package/lib/components/title/TitleEnum.js +6 -6
- package/lib/components/title/TitleEnum.js.map +1 -1
- package/lib/components/title/index.d.ts +2 -1
- package/lib/components/title/index.js +2 -1
- package/lib/components/title/index.js.map +1 -1
- package/lib/components/toaster/Toaster.d.ts +11 -0
- package/lib/components/toaster/Toaster.js +93 -0
- package/lib/components/toaster/Toaster.js.map +1 -0
- package/lib/components/toaster/Toaster.native.d.ts +15 -0
- package/lib/components/toaster/Toaster.native.js +93 -0
- package/lib/components/toaster/Toaster.native.js.map +1 -0
- package/lib/components/toaster/ToasterEnum.d.ts +1 -0
- package/lib/components/toaster/ToasterEnum.js +16 -0
- package/lib/components/toaster/ToasterEnum.js.map +1 -0
- package/lib/components/toaster/ToasterProps.d.ts +27 -0
- package/lib/components/toaster/ToasterProps.js +6 -0
- package/lib/components/toaster/ToasterProps.js.map +1 -0
- package/lib/components/toaster/context/ToasterContext.d.ts +7 -0
- package/lib/components/toaster/context/ToasterContext.js +8 -0
- package/lib/components/toaster/context/ToasterContext.js.map +1 -0
- package/lib/components/toaster/context/ToasterContextProps.d.ts +27 -0
- package/lib/components/toaster/context/ToasterContextProps.js +2 -0
- package/lib/components/toaster/context/ToasterContextProps.js.map +1 -0
- package/lib/components/toaster/context/index.d.ts +2 -0
- package/lib/components/toaster/context/index.js +3 -0
- package/lib/components/toaster/context/index.js.map +1 -0
- package/lib/components/toaster/index.d.ts +3 -0
- package/lib/components/toaster/index.js +4 -0
- package/lib/components/toaster/index.js.map +1 -0
- package/lib/components/view/View.d.ts +2 -3
- package/lib/components/view/View.js +3 -4
- package/lib/components/view/View.js.map +1 -1
- package/lib/components/view/View.native.d.ts +8 -7
- package/lib/components/view/View.native.js +9 -8
- package/lib/components/view/View.native.js.map +1 -1
- package/lib/components/view/ViewProps.d.ts +1 -2
- package/lib/components/view/ViewProps.js +0 -1
- package/lib/components/view/ViewProps.js.map +1 -1
- package/lib/context/index.d.ts +1 -3
- package/lib/context/index.js +2 -2
- package/lib/context/index.js.map +1 -1
- package/lib/context/provider.native.d.ts +1 -4
- package/lib/context/provider.native.js +2 -2
- package/lib/context/provider.native.js.map +1 -1
- package/lib/context/providerStyled.d.ts +4 -6
- package/lib/context/providerStyled.js +20 -23
- package/lib/context/providerStyled.js.map +1 -1
- package/lib/context/providerStyled.native.d.ts +1 -4
- package/lib/context/providerStyled.native.js +2 -2
- package/lib/context/providerStyled.native.js.map +1 -1
- package/lib/context/providerStyledMangled.d.ts +10 -0
- package/lib/context/providerStyledMangled.js +14 -0
- package/lib/context/providerStyledMangled.js.map +1 -0
- package/lib/context/providerStyledMangled.native.d.ts +1 -0
- package/lib/context/providerStyledMangled.native.js +4 -0
- package/lib/context/providerStyledMangled.native.js.map +1 -0
- package/lib/context/providerTheme.d.ts +3 -5
- package/lib/context/providerTheme.js +5 -4
- package/lib/context/providerTheme.js.map +1 -1
- package/lib/hash.json +1 -1
- package/lib/helpers/hashClassesHelpers.js +2 -3
- package/lib/helpers/hashClassesHelpers.js.map +1 -1
- package/lib/objects/Typography/TypographyColor.d.ts +1 -0
- package/lib/objects/Typography/TypographyColor.js +23 -18
- package/lib/objects/Typography/TypographyColor.js.map +1 -1
- package/lib/objects/atoms/Background.d.ts +17 -2
- package/lib/objects/atoms/Background.js +14 -1
- package/lib/objects/atoms/Background.js.map +1 -1
- package/lib/objects/atoms/Text.js +3 -1
- package/lib/objects/atoms/Text.js.map +1 -1
- package/lib/objects/facets/Alert.d.ts +36 -0
- package/lib/objects/facets/Alert.js +70 -0
- package/lib/objects/facets/Alert.js.map +1 -0
- package/lib/objects/facets/Color.d.ts +5 -10
- package/lib/objects/facets/Color.js +53 -56
- package/lib/objects/facets/Color.js.map +1 -1
- package/lib/objects/facets/Justifiable.d.ts +1 -1
- package/lib/objects/facets/Status.d.ts +2 -29
- package/lib/objects/facets/Status.js +14 -14
- package/lib/objects/facets/Status.js.map +1 -1
- package/lib/objects/facets/Variant.js +1 -1
- package/lib/objects/facets/Variant.js.map +1 -1
- package/lib/objects/facets/index.d.ts +1 -1
- package/lib/objects/facets/index.js +1 -1
- package/lib/objects/facets/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/lib/components/accordion/AccordionPropsDefaults.js +0 -45
- package/lib/components/accordion/body/AccordionBodyPropsDefaults.js +0 -52
- package/lib/components/accordion/header/AccordionHeaderPropsDefaults.js +0 -60
- package/lib/components/accordion/item/AccordionItemPropsDefaults.js +0 -68
- package/lib/components/accordion/item/OnClickCallbackDefaults.js +0 -1
- package/lib/components/alert/AlertPropsDefaults.js +0 -155
- package/lib/components/alert/ToasterStatusPropsDefaults.js +0 -227
- package/lib/components/alert/context/ToastConfigDefaults.js +0 -24
- package/lib/components/alert/context/ToastPropsDefaults.js +0 -129
- package/lib/components/autocomplete/AutoComplete.d.ts +0 -4
- package/lib/components/autocomplete/AutoComplete.js.map +0 -1
- package/lib/components/autocomplete/AutoComplete.native.d.ts +0 -25
- package/lib/components/autocomplete/AutoComplete.native.js.map +0 -1
- package/lib/components/autocomplete/AutoCompleteProps.d.ts +0 -49
- package/lib/components/autocomplete/AutoCompleteProps.js.map +0 -1
- package/lib/components/autocomplete/AutoCompletePropsNativeDefaults.js +0 -752
- package/lib/components/autocomplete/AutoCompletePropsWebDefaults.js +0 -752
- package/lib/components/autocomplete/Autocomplete.helpers.js.map +0 -1
- package/lib/components/autocomplete/ItemDefaults.js +0 -10
- package/lib/components/autocomplete/ItemSelectedEventDefaults.js +0 -10
- package/lib/components/autocomplete/index.js.map +0 -1
- package/lib/components/autocomplete/item/AutoCompleteIem.native.js.map +0 -1
- package/lib/components/autocomplete/item/AutoCompleteItem.js.map +0 -1
- package/lib/components/autocomplete/item/AutoCompleteItemProps.js.map +0 -1
- package/lib/components/autocomplete/item/AutoCompleteItemPropsDefaults.js +0 -56
- package/lib/components/autocomplete/item/index.js.map +0 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.js.map +0 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js.map +0 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenuProps.js.map +0 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenuPropsDefaults.js +0 -60
- package/lib/components/autocomplete/menu/index.js.map +0 -1
- package/lib/components/autocomplete/utils/debounce.js.map +0 -1
- package/lib/components/autocomplete/utils/index.js.map +0 -1
- package/lib/components/badge/BadgePropsDefaults.js +0 -83
- package/lib/components/box/BoxPropsDefaults.js +0 -216
- package/lib/components/box/content/BoxContentPropsDefaults.js +0 -102
- package/lib/components/box/footer/BoxFooterPropsDefaults.js +0 -87
- package/lib/components/box/header/BoxHeaderPropsDefaults.js +0 -118
- package/lib/components/box/item/BoxItemPropsDefaults.js +0 -35
- package/lib/components/box/table-container/BoxTableContainerPropsDefaults.js +0 -45
- package/lib/components/breadcrumb/BreadcrumbPropsDefaults.js +0 -38
- package/lib/components/breadcrumb/BreadcrumbWebPropsDefaults.js +0 -45
- package/lib/components/breadcrumb/item/BreadcrumbItemPropsDefaults.js +0 -53
- package/lib/components/breadcrumb/item/BreadcrumbItemPropsWebDefaults.js +0 -253
- package/lib/components/button/ButtonPropsDefaults.js +0 -380
- package/lib/components/button/list/ButtonListPropsDefaults.js +0 -19
- package/lib/components/button/list/ButtonListWebPropsDefaults.js +0 -50
- package/lib/components/card/CardPropsDefaults.js +0 -220
- package/lib/components/card/content/CardContentPropsDefaults.js +0 -153
- package/lib/components/card/image/CardImagePropsDefaults.js +0 -52
- package/lib/components/checkbox/CheckboxChangeEventDefaults.js +0 -21
- package/lib/components/checkbox/CheckboxClickEventDefaults.js +0 -21
- package/lib/components/checkbox/CheckboxPropsDefaults.js +0 -200
- package/lib/components/chips/ChipsPropsDefaults.js +0 -75
- package/lib/components/chips/list/ChipsListPropsDefaults.js +0 -25
- package/lib/components/columns/ColumnsPropsDefaults.js +0 -124
- package/lib/components/columns/item/ColumnsItemPropsDefaults.js +0 -323
- package/lib/components/container/ContainerPropsDefaults.js +0 -185
- package/lib/components/countdown/CountdownPropsDefaults.js +0 -57
- package/lib/components/divider/DividerPropsDefaults.js +0 -210
- package/lib/components/fab/FabPropsDefaults.js +0 -171
- package/lib/components/hero/HeroPropsDefaults.js +0 -144
- package/lib/components/icon/IconPropsDefaults.js +0 -307
- package/lib/components/icon/circle/CircleIconPropsDefaults.js +0 -168
- package/lib/components/icon/status/StatusIconPropsDefaults.js +0 -126
- package/lib/components/icon/text/TextIconPropsDefaults.js +0 -160
- package/lib/components/image/ImagePropsDefaults.js +0 -75
- package/lib/components/input/ILengthVerifyDefaults.js +0 -16
- package/lib/components/input/IValidationRulesDefaults.js +0 -41
- package/lib/components/input/InputChangeEventNativeDefaults.js +0 -17
- package/lib/components/input/InputChangeEventWebDefaults.js +0 -21
- package/lib/components/input/InputClickEventDefaults.js +0 -19
- package/lib/components/input/InputKeyboardEventDefaults.js +0 -27
- package/lib/components/input/InputNativeEventsDefaults.js +0 -37
- package/lib/components/input/InputPropsDefaults.js +0 -654
- package/lib/components/input/InputWebEventsDefaults.js +0 -51
- package/lib/components/link/LinkPropsDefaults.js +0 -367
- package/lib/components/list/ListPropsDefaults.js +0 -53
- package/lib/components/list/item/ListItemPropsDefaults.js +0 -119
- package/lib/components/list/item/description/ListItemDescriptionPropsDefaults.js +0 -23
- package/lib/components/modal/CloseButtonPropsDefaults.js +0 -9
- package/lib/components/modal/ModalContentButtonPropsDefaults.js +0 -16
- package/lib/components/modal/ModalPropsDefaults.js +0 -325
- package/lib/components/modal/footer/ModalFooterPropsDefaults.js +0 -23
- package/lib/components/modal/title/ModalTitlePropsDefaults.js +0 -92
- package/lib/components/otp/OtpPropsDefaults.js +0 -97
- package/lib/components/pagination/PaginationPropsDefaults.js +0 -63
- package/lib/components/popover/PopoverPropsDefaults.js +0 -60
- package/lib/components/popover/PopoverWebPropsDefaults.js +0 -89
- package/lib/components/price/PricePropsDefaults.js +0 -159
- package/lib/components/product-tour/ProductTourPropsDefaults.js +0 -85
- package/lib/components/product-tour/ProductTourWebPropsDefaults.js +0 -92
- package/lib/components/progress/ProgressPropsDefaults.js +0 -95
- package/lib/components/progress/item/ProgressItemPropsDefaults.js +0 -84
- package/lib/components/progress/radial/ProgressRadialPropsDefaults.js +0 -165
- package/lib/components/progress/radial/item/ProgressRadialItemPropsDefaults.js +0 -54
- package/lib/components/radio/RadioPropsDefaults.js +0 -216
- package/lib/components/radio/list/RadioListPropsDefaults.js +0 -19
- package/lib/components/radio/list/RadioListWebPropsDefaults.js +0 -50
- package/lib/components/range/RangePropsDefaults.js +0 -123
- package/lib/components/rows/RowsPropsDefaults.js +0 -31
- package/lib/components/rows/item/RowsItemPropsDefaults.js +0 -31
- package/lib/components/scroll-view/ScrollViewPropsDefaults.js +0 -127
- package/lib/components/section/SectionPropsDefaults.js +0 -118
- package/lib/components/segment-control/SegmentControlPropsDefaults.js +0 -61
- package/lib/components/segment-control/item/SegmentControlItemPropsDefaults.js +0 -55
- package/lib/components/select/ISelectOptionDefaults.js +0 -23
- package/lib/components/select/SelectChangeEventDefaults.js +0 -37
- package/lib/components/select/SelectPropsDefaults.js +0 -187
- package/lib/components/select/option/SelectOptionPropsDefaults.js +0 -134
- package/lib/components/selector/SelectorEndDefaults.js +0 -10
- package/lib/components/selector/SelectorPropsDefaults.js +0 -128
- package/lib/components/selector/item/SelectorItemPropsDefaults.js +0 -84
- package/lib/components/spacer/SpacerPropsDefaults.js +0 -27
- package/lib/components/stepper/StepperPropsDefaults.js +0 -31
- package/lib/components/stepper/step/StepperStepPropsDefaults.js +0 -136
- package/lib/components/sticker/StickerPropsDefaults.js +0 -71
- package/lib/components/styleComponent/default/index.d.ts +0 -1
- package/lib/components/styleComponent/default/index.js +0 -2
- package/lib/components/styleComponent/default/index.js.map +0 -1
- package/lib/components/styleComponent/default/styleComponent.d.ts +0 -6
- package/lib/components/styleComponent/default/styleComponent.js +0 -7
- package/lib/components/styleComponent/default/styleComponent.js.map +0 -1
- package/lib/components/styleComponent/default/styleComponent.native.d.ts +0 -5
- package/lib/components/styleComponent/default/styleComponent.native.js +0 -6
- package/lib/components/styleComponent/default/styleComponent.native.js.map +0 -1
- package/lib/components/styleComponent/index.d.ts +0 -2
- package/lib/components/styleComponent/index.js +0 -3
- package/lib/components/styleComponent/index.js.map +0 -1
- package/lib/components/styleComponent/mangled/index.d.ts +0 -1
- package/lib/components/styleComponent/mangled/index.js +0 -2
- package/lib/components/styleComponent/mangled/index.js.map +0 -1
- package/lib/components/styleComponent/mangled/styleComponentMangled.d.ts +0 -6
- package/lib/components/styleComponent/mangled/styleComponentMangled.js +0 -7
- package/lib/components/styleComponent/mangled/styleComponentMangled.js.map +0 -1
- package/lib/components/styleComponent/mangled/styleComponentMangled.native.d.ts +0 -5
- package/lib/components/styleComponent/mangled/styleComponentMangled.native.js +0 -6
- package/lib/components/styleComponent/mangled/styleComponentMangled.native.js.map +0 -1
- package/lib/components/switch/SwitchChangeEventDefaults.js +0 -13
- package/lib/components/switch/SwitchPropsDefaults.js +0 -105
- package/lib/components/table/TablePropsDefaults.js +0 -63
- package/lib/components/table/body/TableBodyPropsDefaults.js +0 -107
- package/lib/components/table/head/TableHeadPropsDefaults.js +0 -107
- package/lib/components/table/td/TableTdPropsDefaults.js +0 -44
- package/lib/components/table/th/TableThPropsDefaults.js +0 -44
- package/lib/components/table/tr/TableTrPropsWebDefaults.js +0 -102
- package/lib/components/tabs/TabsPropsDefaults.js +0 -144
- package/lib/components/tabs/item/TabsItemPropsDefaults.js +0 -336
- package/lib/components/tag/TagClickEventDefaults.js +0 -1
- package/lib/components/tag/TagPropsDefaults.js +0 -104
- package/lib/components/tag/list/TagListPropsDefaults.js +0 -47
- package/lib/components/text/TextPropsDefaults.js +0 -192
- package/lib/components/textarea/TextareaChangeEventDefaults.js +0 -10
- package/lib/components/timeline/TimelinePropsDefaults.js +0 -39
- package/lib/components/timeline/content/TimelineContentPropsDefaults.js +0 -51
- package/lib/components/timeline/content/TimelineContentWebPropsDefaults.js +0 -58
- package/lib/components/timeline/item/TimelineItemPropsDefaults.js +0 -48
- package/lib/components/timeline/item/TimelineItemWebPropsDefaults.js +0 -55
- package/lib/components/timeline/marker/TimelineMarkerPropsDefaults.js +0 -113
- package/lib/components/timeline/marker/TimelineMarkerWebPropsDefaults.js +0 -127
- package/lib/components/title/TitlePropsDefaults.js +0 -165
- package/lib/components/view/ViewPropsDefaults.js +0 -223
- /package/lib/components/{autocomplete → input/autocomplete}/AutoCompleteProps.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/Autocomplete.helpers.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/Autocomplete.helpers.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/index.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/index.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteIem.native.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteItem.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/item/AutoCompleteItemProps.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/item/index.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/item/index.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenu.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenu.native.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenuProps.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/menu/AutoCompleteMenuProps.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/menu/index.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/menu/index.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/utils/debounce.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/utils/debounce.js +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/utils/index.d.ts +0 -0
- /package/lib/components/{autocomplete → input/autocomplete}/utils/index.js +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Table, TableTr, TableHead, TableTd, TableBody, TableTh } from './index';
|
|
3
|
+
const TableExample = React.createElement(Table, { bordered: true },
|
|
4
|
+
React.createElement(TableHead, null,
|
|
5
|
+
React.createElement(TableTr, null,
|
|
6
|
+
React.createElement(TableTh, null, "Title 1"),
|
|
7
|
+
React.createElement(TableTh, null, "Title 2"),
|
|
8
|
+
React.createElement(TableTh, null, "Title 3"))),
|
|
9
|
+
React.createElement(TableBody, null,
|
|
10
|
+
React.createElement(TableTr, null,
|
|
11
|
+
React.createElement(TableTd, null, "Donn\u00E9e 1"),
|
|
12
|
+
React.createElement(TableTd, null, "Donn\u00E9e 2"),
|
|
13
|
+
React.createElement(TableTd, null, "Donn\u00E9e 3")),
|
|
14
|
+
React.createElement(TableTr, null,
|
|
15
|
+
React.createElement(TableTd, null, "Donn\u00E9e 4"),
|
|
16
|
+
React.createElement(TableTd, null, "Donn\u00E9e 5"),
|
|
17
|
+
React.createElement(TableTd, null, "Donn\u00E9e 6"))));
|
|
18
|
+
export default TableExample;
|
|
19
|
+
//# sourceMappingURL=Table.example.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.example.js","sourceRoot":"","sources":["../../../components/table/Table.example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEhF,MAAM,YAAY,GAEhB,oBAAC,KAAK,IAAC,QAAQ;IACb,oBAAC,SAAS;QACR,oBAAC,OAAO;YACN,oBAAC,OAAO,kBAEE;YACV,oBAAC,OAAO,kBAEE;YACV,oBAAC,OAAO,kBAEE,CACF,CACA;IACZ,oBAAC,SAAS;QACR,oBAAC,OAAO;YACN,oBAAC,OAAO,wBAEE;YACV,oBAAC,OAAO,wBAEE;YACV,oBAAC,OAAO,wBAEE,CACF;QACV,oBAAC,OAAO;YACN,oBAAC,OAAO,wBAEE;YACV,oBAAC,OAAO,wBAEE;YACV,oBAAC,OAAO,wBAEE,CACF,CACA,CACN,CAAA;AAEV,eAAe,YAAY,CAAA"}
|
|
@@ -8,7 +8,7 @@ import { ComponentName } from "../../components/enumsComponentsName";
|
|
|
8
8
|
* @param bordered {boolean} bordered table
|
|
9
9
|
*/
|
|
10
10
|
const Table = ({ children, bordered, ...others }) => {
|
|
11
|
-
const borderColor = getColorStyle(TrilogyColor.
|
|
11
|
+
const borderColor = getColorStyle(TrilogyColor.FONT, 1);
|
|
12
12
|
const styles = StyleSheet.create({
|
|
13
13
|
table: {
|
|
14
14
|
width: "100%",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.native.js","sourceRoot":"","sources":["../../../components/table/Table.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE;;;;GAIG;AACH,MAAM,KAAK,GAAG,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAc,EAAe,EAAE;IAC3E,MAAM,WAAW,GAAG,aAAa,CAAC,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"Table.native.js","sourceRoot":"","sources":["../../../components/table/Table.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE;;;;GAIG;AACH,MAAM,KAAK,GAAG,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAc,EAAe,EAAE;IAC3E,MAAM,WAAW,GAAG,aAAa,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;IAEvD,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAC/B,KAAK,EAAE;YACL,KAAK,EAAE,MAAM;YACb,eAAe,EAAE,aAAa;SAC/B;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,WAAW;SACzB;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,aAAa;SAC3B;KACF,CAAC,CAAA;IAEF,OAAO,CACL,oBAAC,IAAI,IACH,KAAK,EAAE;YACL,QAAQ,IAAI,MAAM,CAAC,QAAQ;YAC3B,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ;YAC5B,MAAM,CAAC,KAAK;SACb,KACG,MAAM,IAET,QAAQ,CACJ,CACR,CAAA;AACH,CAAC,CAAA;AAED,KAAK,CAAC,WAAW,GAAG,aAAa,CAAC,KAAK,CAAA;AAEvC,eAAe,KAAK,CAAA"}
|
|
@@ -4,4 +4,5 @@ import TableBody from './body';
|
|
|
4
4
|
import TableTh from './th';
|
|
5
5
|
import TableTr from './tr';
|
|
6
6
|
import TableTd from './td';
|
|
7
|
-
|
|
7
|
+
import TableExample from './Table.example';
|
|
8
|
+
export { Table, TableHead, TableBody, TableTr, TableTh, TableTd, TableExample };
|
|
@@ -4,5 +4,6 @@ import TableBody from './body';
|
|
|
4
4
|
import TableTh from './th';
|
|
5
5
|
import TableTr from './tr';
|
|
6
6
|
import TableTd from './td';
|
|
7
|
-
|
|
7
|
+
import TableExample from './Table.example';
|
|
8
|
+
export { Table, TableHead, TableBody, TableTr, TableTh, TableTd, TableExample };
|
|
8
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/table/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,SAAS,MAAM,QAAQ,CAAA;AAC9B,OAAO,SAAS,MAAM,QAAQ,CAAA;AAC9B,OAAO,OAAO,MAAM,MAAM,CAAA;AAC1B,OAAO,OAAO,MAAM,MAAM,CAAA;AAC1B,OAAO,OAAO,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/table/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,SAAS,MAAM,QAAQ,CAAA;AAC9B,OAAO,SAAS,MAAM,QAAQ,CAAA;AAC9B,OAAO,OAAO,MAAM,MAAM,CAAA;AAC1B,OAAO,OAAO,MAAM,MAAM,CAAA;AAC1B,OAAO,OAAO,MAAM,MAAM,CAAA;AAC1B,OAAO,YAAY,MAAM,iBAAiB,CAAA;AAE1C,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -14,8 +14,8 @@ const TableTd = ({ children, ...others }) => {
|
|
|
14
14
|
padding: 10,
|
|
15
15
|
borderBottomWidth: 0.2,
|
|
16
16
|
borderRightWidth: 0.2,
|
|
17
|
-
borderBottomColor: getColorStyle(TrilogyColor.
|
|
18
|
-
borderRightColor: getColorStyle(TrilogyColor.
|
|
17
|
+
borderBottomColor: getColorStyle(TrilogyColor.NEUTRAL_DARK, 1),
|
|
18
|
+
borderRightColor: getColorStyle(TrilogyColor.NEUTRAL_DARK, 1),
|
|
19
19
|
},
|
|
20
20
|
text: {
|
|
21
21
|
color: getColorStyle(TrilogyColor.MAIN),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableTd.native.js","sourceRoot":"","sources":["../../../../components/table/td/TableTd.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAErD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE;;;GAGG;AACH,MAAM,OAAO,GAAG,CAAC,EAAE,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AAO,QAAQ,CAAC,OAAO,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,CACpD,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,IAAG,MAAM,CAAC,QAAQ,CAAC,CAAQ,CACpD,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,CACI,CACR,CAAA;AACH,CAAC,CAAA;AAED,OAAO,CAAC,WAAW,GAAG,aAAa,CAAC,OAAO,CAAA;AAE3C,eAAe,OAAO,CAAA"}
|
|
@@ -13,9 +13,9 @@ const TableTh = ({ children, ...others }) => {
|
|
|
13
13
|
tableTh: {
|
|
14
14
|
flexDirection: "column",
|
|
15
15
|
flex: 1,
|
|
16
|
-
backgroundColor: getColorStyle(TrilogyColor.
|
|
16
|
+
backgroundColor: getColorStyle(TrilogyColor.NEUTRAL_DARK, 1),
|
|
17
17
|
padding: 10,
|
|
18
|
-
borderRightColor: getColorStyle(TrilogyColor.
|
|
18
|
+
borderRightColor: getColorStyle(TrilogyColor.NEUTRAL_DARK, 1),
|
|
19
19
|
borderRightWidth: 0.2,
|
|
20
20
|
},
|
|
21
21
|
title: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableTh.native.js","sourceRoot":"","sources":["../../../../components/table/th/TableTh.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE;;;GAGG;AACH,MAAM,OAAO,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAgB,EAAe,EAAE;IACrE,MAA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C,KAAK,IACnE,MAAM,CAAC,QAAQ,CAAC,CACZ,CACF,CACR,CAAA;AACH,CAAC,CAAA;AAED,OAAO,CAAC,WAAW,GAAG,aAAa,CAAC,OAAO,CAAA;AAE3C,eAAe,OAAO,CAAA"}
|
|
@@ -19,7 +19,7 @@ const TableTr = ({ children, expandable, expanded, ...others }) => {
|
|
|
19
19
|
},
|
|
20
20
|
expendable: {
|
|
21
21
|
width: "100%",
|
|
22
|
-
backgroundColor: getColorStyle(TrilogyColor.
|
|
22
|
+
backgroundColor: getColorStyle(TrilogyColor.NEUTRAL_DARK, 1),
|
|
23
23
|
padding: 10,
|
|
24
24
|
},
|
|
25
25
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableTr.native.js","sourceRoot":"","sources":["../../../../components/table/tr/TableTr.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE3D,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAErE;;;;;GAKG;AACH,MAAM,OAAO,GAAG,CAAC,EACf,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,GAAG,MAAM,EACU,EAAe,EAAE;IACpC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAA;IAE5D,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAC/B,OAAO,EAAE;YACP,aAAa,EAAE,KAAK;YACpB,IAAI,EAAE,CAAC;SACR;QACD,UAAU,EAAE;YACV,KAAK,EAAE,M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MAAM,IAET,QAAQ,CACQ;YAClB,UAAU,IAAI,QAAQ,IAAI,OAAO,QAAQ,CAAC,OAAO,EAAE,KAAK,QAAQ,IAAI,CACnE,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,UAAU;gBAC5B,oBAAC,IAAI,IAAC,KAAK,EAAE,UAAU,CAAC,IAAI,IAAG,MAAM,CAAC,QAAQ,CAAC,CAAQ,CAClD,CACR;YACA,UAAU,IAAI,QAAQ,IAAI,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAC3D,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,UAAU,IAAG,QAAQ,CAAQ,CAClD,CACI,CACR,CAAA;KACF;IAED,OAAO,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,OAAO,KAAM,MAAM,IACpC,QAAQ,CACJ,CACR,CAAA;AACH,CAAC,CAAA;AAED,OAAO,CAAC,WAAW,GAAG,aAAa,CAAC,OAAO,CAAA;AAE3C,eAAe,OAAO,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { TabsProps } from './TabsProps';
|
|
3
3
|
/**
|
|
4
4
|
* Tabs Component
|
|
@@ -6,17 +6,15 @@ import { TabsProps } from './TabsProps';
|
|
|
6
6
|
* @param onClick onClick event
|
|
7
7
|
* @param activeIndex {number} default active tab index
|
|
8
8
|
* @param disabled {boolean} Disabled tabs
|
|
9
|
+
* @param clipped {boolean} Remove the separator bar
|
|
9
10
|
* @param inverted {boolean} dark mode
|
|
10
11
|
* @param shadowless {boolean} No shadow
|
|
11
|
-
* @param centered {boolean} Centered tabs
|
|
12
12
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
13
|
+
* @param centered {boolean} Centered tabs
|
|
14
|
+
* @param rightAlign {boolean} Tabs right align
|
|
13
15
|
* @param className {string} Additionnal CSS Classes
|
|
14
16
|
* @param fullwidth {boolean} Fullwidth tabs
|
|
15
17
|
* @param leftAlign {boolean} Tabs left align
|
|
16
|
-
* @param align { Alignable | AlignableValues} align content
|
|
17
|
-
* @param marginless {boolean} delete margin
|
|
18
|
-
* @param textAlign {TypographyAlign | TypographyAlignValues}
|
|
19
|
-
* @param testId {string} Test Id for Test Integration
|
|
20
18
|
*/
|
|
21
|
-
declare const Tabs:
|
|
19
|
+
declare const Tabs: ({ children, className, onClick, activeIndex, disabled, rightAlign, fullwidth, align, centered, marginless, inverted, shadowless, textAlign, testId, ...others }: TabsProps) => JSX.Element;
|
|
22
20
|
export default Tabs;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Tabs, TabsItem } from './index';
|
|
3
|
+
import { Columns, ColumnsItem } from '../columns';
|
|
4
|
+
const TabsExample = React.createElement(Columns, null,
|
|
5
|
+
React.createElement(ColumnsItem, null,
|
|
6
|
+
React.createElement(Tabs, { activeIndex: 2 },
|
|
7
|
+
React.createElement(TabsItem, { disabled: true, iconName: 'tri-alert' }, "One"),
|
|
8
|
+
React.createElement(TabsItem, { iconName: 'tri-alert' }, "Two"),
|
|
9
|
+
React.createElement(TabsItem, { iconName: 'tri-alert' }, "Three"))),
|
|
10
|
+
React.createElement(ColumnsItem, null,
|
|
11
|
+
React.createElement(Tabs, { activeIndex: 2 },
|
|
12
|
+
React.createElement(TabsItem, { disabled: true }, "One"),
|
|
13
|
+
React.createElement(TabsItem, null, "Two"),
|
|
14
|
+
React.createElement(TabsItem, null, "Three"))));
|
|
15
|
+
export default TabsExample;
|
|
16
|
+
//# sourceMappingURL=Tabs.example.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.example.js","sourceRoot":"","sources":["../../../components/tabs/Tabs.example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAEjD,MAAM,WAAW,GACf,oBAAC,OAAO;IACJ,oBAAC,WAAW;QACV,oBAAC,IAAI,IACH,WAAW,EAAE,CAAC;YAEd,oBAAC,QAAQ,IACP,QAAQ,QACR,QAAQ,EAAC,WAAW,UAGX;YACX,oBAAC,QAAQ,IAAC,QAAQ,EAAC,WAAW,UAGnB;YACX,oBAAC,QAAQ,IAAC,QAAQ,EAAC,WAAW,YAGnB,CACN,CACK;IACd,oBAAC,WAAW;QACV,oBAAC,IAAI,IACH,WAAW,EAAE,CAAC;YAEd,oBAAC,QAAQ,IAAC,QAAQ,gBAEP;YACX,oBAAC,QAAQ,cAEE;YACX,oBAAC,QAAQ,gBAEE,CACN,CACK,CACN,CAAA;AACd,eAAe,WAAW,CAAA"}
|
|
@@ -9,24 +9,21 @@ import { has, is } from '../../services/classify';
|
|
|
9
9
|
* @param onClick onClick event
|
|
10
10
|
* @param activeIndex {number} default active tab index
|
|
11
11
|
* @param disabled {boolean} Disabled tabs
|
|
12
|
+
* @param clipped {boolean} Remove the separator bar
|
|
12
13
|
* @param inverted {boolean} dark mode
|
|
13
14
|
* @param shadowless {boolean} No shadow
|
|
14
|
-
* @param centered {boolean} Centered tabs
|
|
15
15
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
16
|
+
* @param centered {boolean} Centered tabs
|
|
17
|
+
* @param rightAlign {boolean} Tabs right align
|
|
16
18
|
* @param className {string} Additionnal CSS Classes
|
|
17
19
|
* @param fullwidth {boolean} Fullwidth tabs
|
|
18
20
|
* @param leftAlign {boolean} Tabs left align
|
|
19
|
-
* @param align { Alignable | AlignableValues} align content
|
|
20
|
-
* @param marginless {boolean} delete margin
|
|
21
|
-
* @param textAlign {TypographyAlign | TypographyAlignValues}
|
|
22
|
-
* @param testId {string} Test Id for Test Integration
|
|
23
21
|
*/
|
|
24
|
-
const Tabs =
|
|
25
|
-
const { children, className, onClick, activeIndex, disabled, fullwidth, align, centered, marginless, inverted, shadowless, textAlign, testId, ...others } = props;
|
|
22
|
+
const Tabs = ({ children, className, onClick, activeIndex, disabled, rightAlign, fullwidth, align, centered, marginless, inverted, shadowless, textAlign, testId, ...others }) => {
|
|
26
23
|
const [activateIndex, setActivateIndex] = useState(activeIndex || 0);
|
|
27
24
|
const { styled } = useTrilogyContext();
|
|
28
25
|
const [isIcons, setIsIcons] = React.useState(false);
|
|
29
|
-
const classes = hashClass(styled, clsx('tabs', fullwidth && is('fullwidth'), centered && is('centered'), marginless && is('marginless'), isIcons && is('icons'), className));
|
|
26
|
+
const classes = hashClass(styled, clsx('tabs', rightAlign && is('right'), fullwidth && is('fullwidth'), centered && is('centered'), marginless && is('marginless'), isIcons && is('icons'), className));
|
|
30
27
|
const isActive = React.useCallback((index, childPropsActive) => {
|
|
31
28
|
if (typeof childPropsActive !== 'undefined' && !activateIndex) {
|
|
32
29
|
return childPropsActive;
|
|
@@ -47,7 +44,7 @@ const Tabs = React.forwardRef((props, ref) => {
|
|
|
47
44
|
useEffect(() => {
|
|
48
45
|
setActivateIndex(activateIndex);
|
|
49
46
|
}, [activeIndex]);
|
|
50
|
-
return (React.createElement("div", {
|
|
47
|
+
return (React.createElement("div", { className: hashClass(styled, clsx('tab-context', inverted && is('inverted'), align && has(`text-${align}`), shadowless && is('shadowless'), textAlign && textAlign)), "data-tabs-context": '', "data-testid": testId },
|
|
51
48
|
React.createElement("div", { className: classes, role: 'tablist', ...others }, React.Children.map(children, (child, index) => {
|
|
52
49
|
if (React.isValidElement(child)) {
|
|
53
50
|
if (!isIcons && child.props.iconName)
|
|
@@ -69,6 +66,6 @@ const Tabs = React.forwardRef((props, ref) => {
|
|
|
69
66
|
return React.cloneElement(child, props);
|
|
70
67
|
}
|
|
71
68
|
}))));
|
|
72
|
-
}
|
|
69
|
+
};
|
|
73
70
|
export default Tabs;
|
|
74
71
|
//# sourceMappingURL=Tabs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../components/tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AAG7C
|
|
1
|
+
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../components/tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AAG7C;;;;;;;;;;;;;;;GAeG;AACH,MAAM,IAAI,GAAG,CAAC,EACZ,QAAQ,EACR,SAAS,EACT,OAAO,EACP,WAAW,EACX,QAAQ,EACR,UAAU,EACV,SAAS,EACT,KAAK,EACL,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,UAAU,EACV,SAAS,EACT,MAAM,EACN,GAAG,MAAM,EACC,EAAe,EAAE;IAC3B,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAS,WAAW,IAAI,CAAC,CAAC,CAAA;IAC5E,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAAA;IACtC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;IAEnD,MAAM,OAAO,GAAG,SAAS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EAAE,iBACP,MAAM;QAEnB,6BAAK,SAAS,EAAE,OAAO,EAAE,IAAI,EAAC,SAAS,KAAK,MAAM,IAC/C,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;YAC7C,IAAI,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE;gBAC/B,IAAI,CAAC,OAAO,IAAI,KAAK,CAAC,KAAK,CAAC,QAAQ;oBAAE,UAAU,CAAC,IAAI,CAAC,CAAA;gBACtD,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,CAAA;gBACpE,MAAM,GAAG,GAAG,KAAK,CAAA;gBACjB,MAAM,KAAK,GAAG;oBACZ,MAAM;oBACN,GAAG;oBACH,OAAO,EAAE,CAAC,CAAmB,EAAE,EAAE;wBAC/B,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC,CAAA;wBACtB,IAAI,KAAK,EAAE;4BACT,IAAI,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE;gCACvB,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;6BACvB;yBACF;oBACH,CAAC;iBACF,CAAA;gBACD,OAAO,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;aACxC;QACH,CAAC,CAAC,CACE,CACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -8,8 +8,7 @@ import { ComponentName } from '../../components/enumsComponentsName';
|
|
|
8
8
|
* @param activeIndex {number} default active tab index
|
|
9
9
|
* @param disabled {boolean} Disabled tabs
|
|
10
10
|
* @param inverted {boolean} dark mode
|
|
11
|
-
* @param
|
|
12
|
-
* @param centered {boolean} Centered tabs
|
|
11
|
+
* @param centered {boolean} Is centered
|
|
13
12
|
*/
|
|
14
13
|
declare const Tabs: {
|
|
15
14
|
({ children, onClick, activeIndex, disabled, centered, inverted, ...others }: TabsProps): JSX.Element;
|
|
@@ -11,8 +11,7 @@ import { ComponentName } from '../../components/enumsComponentsName';
|
|
|
11
11
|
* @param activeIndex {number} default active tab index
|
|
12
12
|
* @param disabled {boolean} Disabled tabs
|
|
13
13
|
* @param inverted {boolean} dark mode
|
|
14
|
-
* @param
|
|
15
|
-
* @param centered {boolean} Centered tabs
|
|
14
|
+
* @param centered {boolean} Is centered
|
|
16
15
|
*/
|
|
17
16
|
const Tabs = ({ children, onClick, activeIndex, disabled, centered, inverted, ...others }) => {
|
|
18
17
|
const [activateIndex, setActivateIndex] = useState(activeIndex);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.native.js","sourceRoot":"","sources":["../../../components/tabs/Tabs.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAErD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,QAAQ,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE
|
|
1
|
+
{"version":3,"file":"Tabs.native.js","sourceRoot":"","sources":["../../../components/tabs/Tabs.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAErD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,QAAQ,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,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AK,IAAG,MAAM,CAAC,KAAK,CAAC,CAAQ,CAC5C,CACZ,CAAC,CAAC,CAAC,CACF,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,CACjC,CAAA;QACH,CAAC,CAAC,CACO,CACd,CAAA;AACH,CAAC,CAAA;AAED,IAAI,CAAC,WAAW,GAAG,aAAa,CAAC,IAAI,CAAA;AAErC,eAAe,IAAI,CAAA"}
|
|
@@ -9,6 +9,10 @@ export interface TabsProps extends Centerable, JustifiableProps, Clickable, Acce
|
|
|
9
9
|
children: React.ReactNode | string;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
activeIndex?: number;
|
|
12
|
+
/** @deprecated */
|
|
13
|
+
rightAlign?: boolean;
|
|
14
|
+
/** @deprecated */
|
|
15
|
+
clipped?: boolean;
|
|
12
16
|
fullwidth?: boolean;
|
|
13
17
|
className?: string;
|
|
14
18
|
marginless?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAA;AACzB,OAAO,QAAQ,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAA;AACzB,OAAO,QAAQ,MAAM,QAAQ,CAAA;AAC7B,OAAO,WAAW,MAAM,gBAAgB,CAAA;AAExC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { TabsItemProps } from "./TabsItemProps";
|
|
3
3
|
/**
|
|
4
4
|
* Tabs Item Component
|
|
5
5
|
* @param active {boolean} active tab item
|
|
6
6
|
* @param children {ReactChild} React Child Element
|
|
7
7
|
* @param onClick onClick Event
|
|
8
|
+
* @param to {string} Link
|
|
9
|
+
* @param href {string} <a />
|
|
10
|
+
* @param routerLink Custom Router Link as props
|
|
8
11
|
* @param iconName {IconNameValues | IconName} add icon name
|
|
9
12
|
* @param disabled {boolean} disable tab item
|
|
10
13
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
11
14
|
* @param className {string} Additionnal CSS Classes
|
|
12
|
-
* @param testId {string} Test Id for Test Integration
|
|
13
|
-
* @param to {string} Link
|
|
14
|
-
* @param href {string} <a />
|
|
15
|
-
* @param routerLink Custom Router Link as props
|
|
16
15
|
*/
|
|
17
|
-
declare const TabsItem:
|
|
16
|
+
declare const TabsItem: ({ active, children, className, onClick, to, href, routerLink, iconName, disabled, testId, ...others }: TabsItemProps) => JSX.Element;
|
|
18
17
|
export default TabsItem;
|
|
@@ -8,17 +8,15 @@ import { Icon } from "../../../components/icon";
|
|
|
8
8
|
* @param active {boolean} active tab item
|
|
9
9
|
* @param children {ReactChild} React Child Element
|
|
10
10
|
* @param onClick onClick Event
|
|
11
|
+
* @param to {string} Link
|
|
12
|
+
* @param href {string} <a />
|
|
13
|
+
* @param routerLink Custom Router Link as props
|
|
11
14
|
* @param iconName {IconNameValues | IconName} add icon name
|
|
12
15
|
* @param disabled {boolean} disable tab item
|
|
13
16
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
14
17
|
* @param className {string} Additionnal CSS Classes
|
|
15
|
-
* @param testId {string} Test Id for Test Integration
|
|
16
|
-
* @param to {string} Link
|
|
17
|
-
* @param href {string} <a />
|
|
18
|
-
* @param routerLink Custom Router Link as props
|
|
19
18
|
*/
|
|
20
|
-
const TabsItem =
|
|
21
|
-
const { active, children, className, onClick, to, href, routerLink, iconName, disabled, testId, ...others } = props;
|
|
19
|
+
const TabsItem = ({ active, children, className, onClick, to, href, routerLink, iconName, disabled, testId, ...others }) => {
|
|
22
20
|
const [activeItem, setActiveItem] = useState(active || false);
|
|
23
21
|
const { styled } = useTrilogyContext();
|
|
24
22
|
// accessibility
|
|
@@ -34,7 +32,7 @@ const TabsItem = React.forwardRef((props, ref) => {
|
|
|
34
32
|
const classes = hashClass(styled, clsx("tab", className, { "is-active": activeItem }));
|
|
35
33
|
if (routerLink && (to || href)) {
|
|
36
34
|
const RouterLink = (routerLink ? routerLink : "a");
|
|
37
|
-
return (React.createElement(RouterLink, {
|
|
35
|
+
return (React.createElement(RouterLink, { "data-testid": testId, tabIndex: 0, ...a11y.a, to: to, href: href, className: classes, ...others, onClick: (e) => {
|
|
38
36
|
if (!disabled) {
|
|
39
37
|
const target = e.target;
|
|
40
38
|
setActiveItem(active || false);
|
|
@@ -47,7 +45,7 @@ const TabsItem = React.forwardRef((props, ref) => {
|
|
|
47
45
|
React.createElement("div", { className: 'tab-icon' }, iconName && (React.createElement(Icon, { align: 'ALIGNED_CENTER', size: 'small', name: iconName }))),
|
|
48
46
|
children));
|
|
49
47
|
}
|
|
50
|
-
return (React.createElement("button", {
|
|
48
|
+
return (React.createElement("button", { "aria-disabled": disabled, disabled: disabled, className: classes, role: 'tab', "data-testid": testId, ...a11y.a, ...others, onClick: (e) => {
|
|
51
49
|
if (!disabled) {
|
|
52
50
|
const target = e.target;
|
|
53
51
|
setActiveItem(active || false);
|
|
@@ -59,6 +57,6 @@ const TabsItem = React.forwardRef((props, ref) => {
|
|
|
59
57
|
} },
|
|
60
58
|
React.createElement("div", { className: 'tab-icon' }, iconName && (React.createElement(Icon, { align: 'ALIGNED_CENTER', size: 'small', name: iconName }))),
|
|
61
59
|
children));
|
|
62
|
-
}
|
|
60
|
+
};
|
|
63
61
|
export default TabsItem;
|
|
64
62
|
//# sourceMappingURL=TabsItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsItem.js","sourceRoot":"","sources":["../../../../components/tabs/item/TabsItem.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAA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IAAI,OAAO,EAAE;oBACX,OAAO,CAAC,CAAC,CAAC,CAAA;iBACX;aACF;QACH,CAAC;QAED,6BAAK,SAAS,EAAC,UAAU,IACtB,QAAQ,IAAI,CACX,oBAAC,IAAI,IAAC,KAAK,EAAC,gBAAgB,EAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAE,QAAQ,GAAI,CAC7D,CACG;QACL,QAAQ,CACF,CACV,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -7,7 +7,6 @@ import { ComponentName } from "../../../components/enumsComponentsName";
|
|
|
7
7
|
* @param children {ReactChild} React Child Element
|
|
8
8
|
* @param onClick onClick Event
|
|
9
9
|
* @param iconName {IconNameValues | IconName} add icon name
|
|
10
|
-
* @param disabled {boolean} disable tab item
|
|
11
10
|
*/
|
|
12
11
|
declare const TabsItem: {
|
|
13
12
|
({ active, children, onClick, iconName, inverted, disabled, ...others }: TabsItemProps): JSX.Element;
|
|
@@ -10,7 +10,6 @@ import { Text, TextLevels } from "../../../components/text";
|
|
|
10
10
|
* @param children {ReactChild} React Child Element
|
|
11
11
|
* @param onClick onClick Event
|
|
12
12
|
* @param iconName {IconNameValues | IconName} add icon name
|
|
13
|
-
* @param disabled {boolean} disable tab item
|
|
14
13
|
*/
|
|
15
14
|
const TabsItem = ({ active, children, onClick, iconName, inverted, disabled, ...others }) => {
|
|
16
15
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -22,7 +21,7 @@ const TabsItem = ({ active, children, onClick, iconName, inverted, disabled, ...
|
|
|
22
21
|
const getIconColor = React.useMemo(() => {
|
|
23
22
|
if (inverted) {
|
|
24
23
|
if (disabled)
|
|
25
|
-
return TrilogyColor.
|
|
24
|
+
return TrilogyColor.NEUTRAL_LIGHT;
|
|
26
25
|
return TrilogyColor.BACKGROUND;
|
|
27
26
|
}
|
|
28
27
|
if (disabled)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsItem.native.js","sourceRoot":"","sources":["../../../../components/tabs/item/TabsItem.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAE3E,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEpD
|
|
1
|
+
{"version":3,"file":"TabsItem.native.js","sourceRoot":"","sources":["../../../../components/tabs/item/TabsItem.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAE3E,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEpD;;;;;;GAMG;AACH,MAAM,QAAQ,GAAG,CAAC,EACE,MAAM,EACN,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,GAAG,MAAM,EACK,EAAe,EAAE;IACjD,6DAA6D;IAC7D,MAAM,CAAC,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAU,MAAM,IAAI,KAAK,CAAC,CAAA;IAC5D,MAAM,CAAC,EAAE,YAAY,CAAC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AE,CAAC,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAAG,CAC5C,CACpB,CAAA;AACH,CAAC,CAAA;AAED,QAAQ,CAAC,WAAW,GAAG,aAAa,CAAC,QAAQ,CAAA;AAE7C,eAAe,QAAQ,CAAA"}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TagProps } from
|
|
2
|
+
import { TagProps } from "./TagProps";
|
|
3
3
|
/**
|
|
4
4
|
* Tag Component
|
|
5
5
|
* @param children {ReactNode} Add childrens for tag
|
|
6
6
|
* @param variant {TagVariant} Available tag variants
|
|
7
|
+
* @param deletable {boolean} Adding delete icon
|
|
7
8
|
* @param inverted {boolean} Inverted tag
|
|
8
|
-
* @param
|
|
9
|
-
* @param iconName {IconName} display icon
|
|
10
|
-
* @param testId {string} Test Id for Test Integration
|
|
11
|
-
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
9
|
+
* @param onClick {Function} OnClick Event
|
|
12
10
|
* @param className {string} Additionnal CSS Classes
|
|
13
11
|
**/
|
|
14
|
-
declare const Tag: ({ children, className, variant, inverted, small, iconName, testId, ...others }: TagProps) => JSX.Element;
|
|
12
|
+
declare const Tag: ({ children, className, variant, deletable, onClick, inverted, small, iconName, testId, ...others }: TagProps) => JSX.Element;
|
|
15
13
|
export default Tag;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Tag, TagList } from './index';
|
|
3
|
+
import { Columns, ColumnsItem } from '../columns';
|
|
4
|
+
import { IconName } from '../../components/icon';
|
|
5
|
+
const TagExample = (React.createElement(Columns, null,
|
|
6
|
+
React.createElement(ColumnsItem, null,
|
|
7
|
+
React.createElement(TagList, null,
|
|
8
|
+
React.createElement(Tag, { iconName: IconName.BELL, variant: 'ERROR' }, "Tag"),
|
|
9
|
+
React.createElement(Tag, { iconName: IconName.ALERT, variant: 'SUCCESS' }, "Tag success"),
|
|
10
|
+
React.createElement(Tag, { iconName: IconName.CHECK, variant: 'WARNING' }, "Tag warning"),
|
|
11
|
+
React.createElement(Tag, { iconName: IconName.EYE, variant: 'INFO' }, "Tag info")))));
|
|
12
|
+
export default TagExample;
|
|
13
|
+
//# sourceMappingURL=Tag.example.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.example.js","sourceRoot":"","sources":["../../../components/tag/Tag.example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE5C,MAAM,UAAU,GAAoB,CAClC,oBAAC,OAAO;IACN,oBAAC,WAAW;QACV,oBAAC,OAAO;YACN,oBAAC,GAAG,IAAC,QAAQ,EAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAC,OAAO,UAEvC;YACN,oBAAC,GAAG,IAAC,QAAQ,EAAE,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAC,SAAS,kBAE1C;YACN,oBAAC,GAAG,IAAC,QAAQ,EAAE,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAC,SAAS,kBAE1C;YACN,oBAAC,GAAG,IAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAC,MAAM,eAErC,CACE,CACE,CACN,CACX,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1,26 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { getColorClassName } from
|
|
4
|
-
import { is } from
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
1
|
+
import clsx from "clsx";
|
|
2
|
+
import React, { useState } from "react";
|
|
3
|
+
import { getColorClassName, } from "../../objects/facets/Color";
|
|
4
|
+
import { has, is } from "../../services/classify";
|
|
5
|
+
import { Icon } from "../icon";
|
|
6
|
+
import { hashClass } from "../../helpers";
|
|
7
|
+
import { useTrilogyContext } from "../../context";
|
|
8
8
|
/**
|
|
9
9
|
* Tag Component
|
|
10
10
|
* @param children {ReactNode} Add childrens for tag
|
|
11
11
|
* @param variant {TagVariant} Available tag variants
|
|
12
|
+
* @param deletable {boolean} Adding delete icon
|
|
12
13
|
* @param inverted {boolean} Inverted tag
|
|
13
|
-
* @param
|
|
14
|
-
* @param iconName {IconName} display icon
|
|
15
|
-
* @param testId {string} Test Id for Test Integration
|
|
16
|
-
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
14
|
+
* @param onClick {Function} OnClick Event
|
|
17
15
|
* @param className {string} Additionnal CSS Classes
|
|
18
16
|
**/
|
|
19
|
-
const Tag = ({ children, className, variant, inverted, small, iconName, testId, ...others }) => {
|
|
17
|
+
const Tag = ({ children, className, variant, deletable, onClick, inverted, small, iconName, testId, ...others }) => {
|
|
18
|
+
const [display, setDisplay] = useState(deletable || false);
|
|
20
19
|
const { styled } = useTrilogyContext();
|
|
21
|
-
const tagClassNames = hashClass(styled, clsx(
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
const tagClassNames = hashClass(styled, clsx("tag", !deletable &&
|
|
21
|
+
variant &&
|
|
22
|
+
is(getColorClassName(variant)), !deletable && inverted && is("inverted"), small && is("small"), !deletable && className, deletable && !display && is("hidden")));
|
|
23
|
+
const tagIconClassNames = hashClass(styled, clsx(variant &&
|
|
24
|
+
is(getColorClassName(variant))));
|
|
25
|
+
const onClickHandle = (e) => {
|
|
26
|
+
setDisplay(false);
|
|
27
|
+
if (onClick) {
|
|
28
|
+
onClick(e);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const deleteClasses = hashClass(styled, clsx("tags", variant &&
|
|
32
|
+
is(getColorClassName(variant)), deletable && [has("addons"), is("delete")], inverted && is("inverted"), small && is("small"), className));
|
|
33
|
+
// Deletable tag
|
|
34
|
+
if (deletable && display) {
|
|
35
|
+
return (React.createElement("div", { "data-testid": testId, className: deleteClasses },
|
|
36
|
+
React.createElement("span", { className: tagClassNames }, children),
|
|
37
|
+
React.createElement("a", { "data-testid": `${testId}_close_button`, onClick: onClickHandle, className: tagClassNames })));
|
|
38
|
+
}
|
|
39
|
+
// Default tag
|
|
40
|
+
return (React.createElement("span", { "data-testid": testId, onClick: onClick && onClick, className: tagClassNames, ...others },
|
|
24
41
|
iconName && React.createElement(Icon, { className: tagIconClassNames, name: iconName }),
|
|
25
42
|
children));
|
|
26
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../components/tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../components/tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,iBAAiB,GAAqC,MAAM,wBAAwB,CAAA;AAC7F,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAE7C;;;;;;;;IAQI;AACJ,MAAM,GAAG,GAAG,CAAC,EACX,QAAQ,EACR,SAAS,EACT,OAAO,EACP,SAAS,EACT,OAAO,EACP,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,MAAM,EACN,GAAG,MAAM,EACA,EAAe,EAAE;IAC1B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAU,SAAS,IAAI,KAAK,CAAC,CAAA;IACnE,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,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B,CACE,CACP,CAAA;KACF;IAED,cAAc;IACd,OAAO,CACL,6CACe,MAAM,EACnB,OAAO,EAAE,OAAO,IAAI,OAAO,EAC3B,SAAS,EAAE,aAAa,KACpB,MAAM;QAET,QAAQ,IAAI,oBAAC,IAAI,IAAC,SAAS,EAAE,iBAAiB,EAAE,IAAI,EAAE,QAAQ,GAAI;QAClE,QAAQ,CACJ,CACR,CAAA;AACH,CAAC,CAAA;AAED,eAAe,GAAG,CAAA"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { TagProps } from "./TagProps";
|
|
3
|
+
import { ComponentName } from "../../components/enumsComponentsName";
|
|
4
4
|
/**
|
|
5
5
|
* Tag Component
|
|
6
6
|
* @param children {ReactNode} Add childrens for tag
|
|
7
7
|
* @param variant {TagVariant} Available tag variants
|
|
8
|
-
* @param
|
|
9
|
-
* @param
|
|
10
|
-
* @param
|
|
11
|
-
* @param
|
|
12
|
-
|
|
8
|
+
* @param deletable {boolean} Adding delete icon
|
|
9
|
+
* @param onClick {Function} OnClick Event
|
|
10
|
+
* @param inverted
|
|
11
|
+
* @param iconName
|
|
12
|
+
* @param small
|
|
13
|
+
* @param others
|
|
14
|
+
*/
|
|
13
15
|
declare const Tag: {
|
|
14
|
-
({ children, variant, inverted, iconName, small, testId, ...others }: TagProps): JSX.Element;
|
|
16
|
+
({ children, variant, deletable, onClick, inverted, iconName, small, testId, ...others }: TagProps): JSX.Element;
|
|
15
17
|
displayName: ComponentName;
|
|
16
18
|
};
|
|
17
19
|
export default Tag;
|