@trilogy-ds/react 0.0.7-beta-v4 → 0.0.8-calendar
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 +3 -3
- package/lib/components/accordion/Accordion.js +8 -6
- package/lib/components/accordion/Accordion.native.d.ts +4 -7
- package/lib/components/accordion/Accordion.native.js +8 -8
- package/lib/components/accordion/AccordionProps.d.ts +3 -0
- package/lib/components/accordion/item/AccordionItem.d.ts +4 -4
- package/lib/components/accordion/item/AccordionItem.js +24 -11
- package/lib/components/accordion/item/AccordionItem.native.d.ts +4 -7
- package/lib/components/accordion/item/AccordionItem.native.js +33 -36
- package/lib/components/accordion/item/AccordionItemProps.d.ts +3 -0
- package/lib/components/accordion/item/body/AccordionBody.d.ts +2 -2
- package/lib/components/accordion/item/body/AccordionBody.js +12 -8
- package/lib/components/accordion/item/body/AccordionBody.native.d.ts +4 -7
- package/lib/components/accordion/item/body/AccordionBody.native.js +7 -7
- package/lib/components/accordion/item/body/AccordionBodyProps.d.ts +4 -1
- package/lib/components/accordion/item/header/AccordionHeader.d.ts +2 -2
- package/lib/components/accordion/item/header/AccordionHeader.js +10 -8
- package/lib/components/accordion/item/header/AccordionHeader.native.d.ts +4 -7
- package/lib/components/accordion/item/header/AccordionHeader.native.js +10 -10
- package/lib/components/accordion/item/header/AccordionHeaderProps.d.ts +3 -0
- package/lib/components/alert/Alert.d.ts +7 -3
- package/lib/components/alert/Alert.js +71 -60
- package/lib/components/alert/Alert.native.d.ts +1 -5
- package/lib/components/alert/Alert.native.js +29 -40
- package/lib/components/alert/AlertEnum.d.ts +9 -0
- package/lib/components/alert/AlertEnum.js +10 -0
- package/lib/components/alert/AlertProps.d.ts +15 -2
- package/lib/components/alert/AlertProps.js +6 -1
- package/lib/components/alert/AlertPropsDefaults.js +18 -0
- package/lib/components/alert/ToasterStatusPropsDefaults.js +26 -0
- package/lib/components/alert/context/ToastPropsDefaults.js +18 -0
- package/lib/components/alert/context/ToasterContextProps.d.ts +4 -2
- package/lib/components/autocomplete/AutoComplete.d.ts +34 -3
- package/lib/components/autocomplete/AutoComplete.js +49 -45
- package/lib/components/autocomplete/AutoComplete.native.d.ts +5 -3
- package/lib/components/autocomplete/AutoComplete.native.js +12 -9
- package/lib/components/autocomplete/AutoCompleteProps.d.ts +4 -4
- package/lib/components/autocomplete/AutoCompletePropsNativeDefaults.js +59 -56
- package/lib/components/autocomplete/AutoCompletePropsWebDefaults.js +59 -56
- package/lib/components/autocomplete/Autocomplete.helpers.js +7 -4
- package/lib/components/autocomplete/item/AutoCompleteItem.d.ts +1 -1
- package/lib/components/autocomplete/item/AutoCompleteItem.js +1 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.d.ts +1 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.js +1 -1
- package/lib/components/autolayout/AutoLayout.helpers.js +7 -5
- package/lib/components/autolayout/DefaultSpacingMatrix.js +4 -3
- package/lib/components/badge/Badge.d.ts +4 -4
- package/lib/components/badge/Badge.js +16 -12
- package/lib/components/badge/Badge.native.d.ts +12 -8
- package/lib/components/badge/Badge.native.js +85 -15
- package/lib/components/badge/BadgeProps.d.ts +17 -7
- package/lib/components/badge/BadgeProps.js +10 -2
- package/lib/components/badge/BadgePropsDefaults.js +18 -12
- package/lib/components/badge/index.d.ts +1 -0
- package/lib/components/badge/index.js +2 -1
- package/lib/components/box/Box.d.ts +4 -3
- package/lib/components/box/Box.js +17 -19
- package/lib/components/box/Box.native.d.ts +3 -7
- package/lib/components/box/Box.native.js +42 -54
- package/lib/components/box/BoxProps.d.ts +8 -1
- package/lib/components/box/BoxPropsDefaults.js +22 -2
- package/lib/components/box/content/BoxContent.d.ts +4 -3
- package/lib/components/box/content/BoxContent.js +18 -11
- package/lib/components/box/content/BoxContent.native.d.ts +5 -7
- package/lib/components/box/content/BoxContent.native.js +20 -11
- package/lib/components/box/content/BoxContentProps.d.ts +5 -1
- package/lib/components/box/content/BoxContentPropsDefaults.js +7 -1
- package/lib/components/box/context/boxContext.d.ts +4 -0
- package/lib/components/box/context/boxContext.js +3 -0
- package/lib/components/box/footer/BoxFooter.d.ts +3 -4
- package/lib/components/box/footer/BoxFooter.js +11 -10
- package/lib/components/box/footer/BoxFooter.native.d.ts +4 -7
- package/lib/components/box/footer/BoxFooter.native.js +10 -12
- package/lib/components/box/footer/BoxFooterProps.d.ts +6 -1
- package/lib/components/box/footer/BoxFooterPropsDefaults.js +7 -1
- package/lib/components/box/header/BoxHeader.d.ts +5 -4
- package/lib/components/box/header/BoxHeader.js +15 -11
- package/lib/components/box/header/BoxHeader.native.d.ts +4 -12
- package/lib/components/box/header/BoxHeader.native.js +8 -13
- package/lib/components/box/header/BoxHeaderProps.d.ts +6 -1
- package/lib/components/box/header/BoxHeaderPropsDefaults.js +13 -3
- package/lib/components/box/item/BoxItem.d.ts +3 -3
- package/lib/components/box/item/BoxItem.js +10 -8
- package/lib/components/box/item/BoxItem.native.d.ts +4 -7
- package/lib/components/box/item/BoxItem.native.js +10 -10
- package/lib/components/box/item/BoxItemProps.d.ts +4 -1
- package/lib/components/box/table-container/BoxTableContainer.d.ts +4 -4
- package/lib/components/box/table-container/BoxTableContainer.js +11 -9
- package/lib/components/box/table-container/BoxTableContainer.native.d.ts +4 -7
- package/lib/components/box/table-container/BoxTableContainer.native.js +8 -8
- package/lib/components/box/table-container/BoxTableContainerProps.d.ts +3 -0
- package/lib/components/breadcrumb/Breadcrumb.d.ts +2 -2
- package/lib/components/breadcrumb/Breadcrumb.js +12 -9
- package/lib/components/breadcrumb/Breadcrumb.native.d.ts +4 -7
- package/lib/components/breadcrumb/Breadcrumb.native.js +11 -11
- package/lib/components/breadcrumb/BreadcrumbProps.d.ts +5 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.d.ts +3 -3
- package/lib/components/breadcrumb/item/BreadcrumbItem.js +13 -14
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.d.ts +4 -7
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +12 -11
- package/lib/components/breadcrumb/item/BreadcrumbItemProps.d.ts +6 -1
- package/lib/components/breadcrumb/item/BreadcrumbItemPropsWebDefaults.js +9 -9
- package/lib/components/button/Button.d.ts +4 -4
- package/lib/components/button/Button.js +24 -23
- package/lib/components/button/Button.native.d.ts +4 -7
- package/lib/components/button/Button.native.js +92 -133
- package/lib/components/button/ButtonProps.d.ts +8 -3
- package/lib/components/button/ButtonPropsDefaults.js +11 -11
- package/lib/components/button/list/ButtonList.d.ts +6 -2
- package/lib/components/button/list/ButtonList.js +17 -10
- package/lib/components/button/list/ButtonList.native.d.ts +4 -7
- package/lib/components/button/list/ButtonList.native.js +7 -7
- package/lib/components/button/list/ButtonListProps.d.ts +6 -3
- package/lib/components/button/list/ButtonListWebPropsDefaults.js +3 -1
- package/lib/components/button/list/index.d.ts +1 -0
- package/lib/components/button/list/index.js +2 -1
- package/lib/components/calendar/Calendar.d.ts +8 -0
- package/lib/components/calendar/Calendar.js +267 -0
- package/lib/components/calendar/CalendarProps.d.ts +11 -0
- package/lib/components/calendar/CalendarProps.js +2 -0
- package/lib/components/calendar/CalendarPropsDefaults.js +63 -0
- package/lib/components/calendar/index.d.ts +2 -0
- package/lib/components/calendar/index.js +3 -0
- package/lib/components/card/Card.d.ts +3 -4
- package/lib/components/card/Card.js +12 -11
- package/lib/components/card/Card.native.d.ts +3 -7
- package/lib/components/card/Card.native.js +23 -21
- package/lib/components/card/CardProps.d.ts +6 -1
- package/lib/components/card/content/CardContent.d.ts +3 -3
- package/lib/components/card/content/CardContent.js +10 -8
- package/lib/components/card/content/CardContent.native.d.ts +3 -14
- package/lib/components/card/content/CardContent.native.js +7 -55
- package/lib/components/card/content/CardContentProps.d.ts +4 -1
- package/lib/components/card/image/CardImage.d.ts +3 -3
- package/lib/components/card/image/CardImage.js +12 -10
- package/lib/components/card/image/CardImage.native.d.ts +3 -6
- package/lib/components/card/image/CardImage.native.js +16 -15
- package/lib/components/card/image/CardImageProps.d.ts +4 -1
- package/lib/components/checkbox/Checkbox.d.ts +6 -4
- package/lib/components/checkbox/Checkbox.js +27 -13
- package/lib/components/checkbox/Checkbox.native.d.ts +3 -6
- package/lib/components/checkbox/Checkbox.native.js +15 -109
- package/lib/components/checkbox/{CheckboxPropsDefaults.js → CheckboxCommonPropsDefaults.js} +8 -7
- package/lib/components/checkbox/CheckboxProps.d.ts +18 -4
- package/lib/components/checkbox/CheckboxWithChildrenDefaults.js +94 -0
- package/lib/components/checkbox/CheckboxWithLabelDefaults.js +84 -0
- package/lib/components/checkbox/index.d.ts +4 -2
- package/lib/components/checkbox/index.js +5 -3
- package/lib/components/checkbox/list/CheckboxList.d.ts +14 -0
- package/lib/components/checkbox/list/CheckboxList.js +36 -0
- package/lib/components/checkbox/list/CheckboxList.native.d.ts +10 -0
- package/lib/components/checkbox/list/CheckboxList.native.js +40 -0
- package/lib/components/checkbox/list/CheckboxListProps.d.ts +27 -0
- package/lib/components/checkbox/list/CheckboxListProps.js +2 -0
- package/lib/components/checkbox/list/CheckboxListPropsDefaults.js +17 -0
- package/lib/components/checkbox/list/CheckboxListWebPropsDefaults.js +68 -0
- package/lib/components/checkbox/list/index.d.ts +2 -0
- package/lib/components/checkbox/list/index.js +3 -0
- package/lib/components/checkbox/tiles/CheckboxTiles.d.ts +7 -5
- package/lib/components/checkbox/tiles/CheckboxTiles.js +18 -13
- package/lib/components/checkbox/tiles/CheckboxTiles.native.d.ts +5 -0
- package/lib/components/checkbox/tiles/CheckboxTiles.native.js +22 -0
- package/lib/components/checkbox/tiles/CheckboxTilesProps.d.ts +5 -1
- package/lib/components/checkbox/tiles/CheckboxTilesPropsDefaults.js +13 -2
- package/lib/components/checkbox/tiles/tile/CheckboxTile.d.ts +17 -5
- package/lib/components/checkbox/tiles/tile/CheckboxTile.js +33 -17
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.d.ts +5 -0
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.js +110 -0
- package/lib/components/checkbox/tiles/tile/CheckboxTileProps.d.ts +7 -1
- package/lib/components/checkbox/tiles/tile/CheckboxTilePropsDefaults.js +9 -49
- package/lib/components/chips/Chips.d.ts +4 -4
- package/lib/components/chips/Chips.js +13 -11
- package/lib/components/chips/Chips.native.d.ts +4 -7
- package/lib/components/chips/Chips.native.js +15 -15
- package/lib/components/chips/ChipsProps.d.ts +6 -1
- package/lib/components/chips/list/ChipsList.d.ts +1 -1
- package/lib/components/chips/list/ChipsList.js +11 -9
- package/lib/components/chips/list/ChipsList.native.d.ts +2 -6
- package/lib/components/chips/list/ChipsList.native.js +5 -5
- package/lib/components/chips/list/ChipsListProps.d.ts +4 -0
- package/lib/components/chips/list/ChipsListPropsDefaults.js +7 -0
- package/lib/components/columns/Columns.d.ts +4 -4
- package/lib/components/columns/Columns.js +15 -12
- package/lib/components/columns/Columns.native.d.ts +3 -9
- package/lib/components/columns/Columns.native.js +44 -67
- package/lib/components/columns/ColumnsProps.d.ts +6 -2
- package/lib/components/columns/ColumnsPropsDefaults.js +14 -2
- package/lib/components/columns/column/Column.d.ts +4 -4
- package/lib/components/columns/column/Column.js +12 -10
- package/lib/components/columns/column/Column.native.d.ts +8 -11
- package/lib/components/columns/column/Column.native.js +31 -25
- package/lib/components/columns/column/ColumnProps.d.ts +4 -1
- package/lib/components/columns/column/ColumnPropsDefaults.js +20 -16
- package/lib/components/columns/column/index.d.ts +1 -1
- package/lib/components/columns/column/index.js +2 -2
- package/lib/components/columns/context/index.d.ts +8 -0
- package/lib/components/columns/context/index.js +9 -0
- package/lib/components/container/Container.d.ts +2 -3
- package/lib/components/container/Container.js +2 -2
- package/lib/components/container/Container.native.d.ts +1 -1
- package/lib/components/container/Container.native.js +3 -3
- package/lib/components/container/ContainerProps.d.ts +3 -0
- package/lib/components/countdown/Countdown.d.ts +3 -3
- package/lib/components/countdown/Countdown.js +11 -9
- package/lib/components/countdown/Countdown.native.d.ts +3 -6
- package/lib/components/countdown/Countdown.native.js +8 -8
- package/lib/components/countdown/CountdownProps.d.ts +4 -1
- package/lib/components/divider/Divider.d.ts +4 -4
- package/lib/components/divider/Divider.js +16 -27
- package/lib/components/divider/Divider.native.d.ts +4 -7
- package/lib/components/divider/Divider.native.js +24 -24
- package/lib/components/divider/DividerProps.d.ts +3 -0
- package/lib/components/enumsComponentsName.d.ts +13 -2
- package/lib/components/enumsComponentsName.js +14 -3
- package/lib/components/fab/Fab.d.ts +2 -2
- package/lib/components/fab/Fab.js +6 -4
- package/lib/components/fab/Fab.native.d.ts +3 -6
- package/lib/components/fab/Fab.native.js +4 -4
- package/lib/components/fab/FabProps.d.ts +3 -1
- package/lib/components/flex-box/FlexBox.d.ts +17 -0
- package/lib/components/flex-box/FlexBox.js +52 -0
- package/lib/components/flex-box/FlexBox.native.d.ts +5 -0
- package/lib/components/flex-box/FlexBox.native.js +56 -0
- package/lib/components/flex-box/FlexBoxProps.d.ts +29 -0
- package/lib/components/flex-box/FlexBoxProps.js +2 -0
- package/lib/components/flex-box/FlexBoxPropsDefaults.js +111 -0
- package/lib/components/flex-box/ResponsiveValueDefaults.js +23 -0
- package/lib/components/flex-box/context/index.d.ts +7 -0
- package/lib/components/flex-box/context/index.js +8 -0
- package/lib/components/flex-box/flex-item/FlexItem.d.ts +28 -0
- package/lib/components/flex-box/flex-item/FlexItem.js +42 -0
- package/lib/components/flex-box/flex-item/FlexItem.native.d.ts +29 -0
- package/lib/components/flex-box/flex-item/FlexItem.native.js +56 -0
- package/lib/components/flex-box/flex-item/FlexItemProps.d.ts +23 -0
- package/lib/components/flex-box/flex-item/FlexItemProps.js +2 -0
- package/lib/components/flex-box/flex-item/FlexItemPropsDefaults.js +85 -0
- package/lib/components/flex-box/flex-item/FlexSizeDefaults.js +110 -0
- package/lib/components/flex-box/index.d.ts +3 -0
- package/lib/components/flex-box/index.js +4 -0
- package/lib/components/hero/Hero.d.ts +2 -3
- package/lib/components/hero/Hero.js +2 -2
- package/lib/components/hero/Hero.native.js +11 -7
- package/lib/components/hero/HeroProps.d.ts +5 -0
- package/lib/components/hero/HeroPropsDefaults.js +17 -1
- package/lib/components/icon/Icon.d.ts +3 -3
- package/lib/components/icon/Icon.js +16 -13
- package/lib/components/icon/Icon.native.d.ts +4 -7
- package/lib/components/icon/Icon.native.js +35 -20
- package/lib/components/icon/IconProps.d.ts +6 -3
- package/lib/components/icon/IconPropsDefaults.js +7 -25
- package/lib/components/image/Image.d.ts +8 -4
- package/lib/components/image/Image.js +17 -11
- package/lib/components/image/Image.native.d.ts +8 -8
- package/lib/components/image/Image.native.js +36 -13
- package/lib/components/image/ImageProps.d.ts +5 -1
- package/lib/components/image/ImagePropsDefaults.js +15 -2
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +3 -1
- package/lib/components/input/ISecurityRulesDefaults.js +23 -0
- package/lib/components/input/Input.d.ts +45 -3
- package/lib/components/input/Input.js +46 -33
- package/lib/components/input/Input.native.d.ts +4 -6
- package/lib/components/input/Input.native.js +48 -36
- package/lib/components/input/InputChangeEventWebDefaults.js +7 -0
- package/lib/components/input/InputEnum.d.ts +2 -1
- package/lib/components/input/InputEnum.js +1 -1
- package/lib/components/input/InputProps.d.ts +18 -3
- package/lib/components/input/InputPropsDefaults.js +59 -4
- package/lib/components/input/gauge/InputGauge.d.ts +4 -2
- package/lib/components/input/gauge/InputGauge.js +15 -13
- package/lib/components/input/gauge/InputGauge.native.d.ts +3 -2
- package/lib/components/input/gauge/InputGauge.native.js +27 -17
- package/lib/components/input/gauge/hook/useGauge.d.ts +11 -3
- package/lib/components/input/gauge/hook/useGauge.js +39 -15
- package/lib/components/link/Link.d.ts +4 -4
- package/lib/components/link/Link.js +13 -11
- package/lib/components/link/Link.native.d.ts +4 -8
- package/lib/components/link/Link.native.js +17 -65
- package/lib/components/link/LinkDefaults.js +334 -0
- package/lib/components/link/LinkProps.d.ts +12 -2
- package/lib/components/link/LinkPropsDefaults.js +85 -9
- package/lib/components/link/LinkPropsNativeDefaults.js +405 -0
- package/lib/components/list/List.d.ts +6 -5
- package/lib/components/list/List.js +16 -12
- package/lib/components/list/List.native.d.ts +6 -7
- package/lib/components/list/List.native.js +14 -9
- package/lib/components/list/ListProps.d.ts +4 -0
- package/lib/components/list/ListPropsDefaults.js +8 -0
- package/lib/components/list/context/ListContext.d.ts +3 -0
- package/lib/components/list/context/ListContext.js +8 -0
- package/lib/components/list/context/ListContextProps.d.ts +7 -0
- package/lib/components/list/context/ListContextProps.js +2 -0
- package/lib/components/list/context/ListContextPropsDefaults.js +24 -0
- package/lib/components/list/context/index.d.ts +2 -0
- package/lib/components/list/context/index.js +3 -0
- package/lib/components/list/item/ListItem.d.ts +4 -4
- package/lib/components/list/item/ListItem.js +8 -6
- package/lib/components/list/item/ListItem.native.d.ts +5 -8
- package/lib/components/list/item/ListItem.native.js +35 -56
- package/lib/components/list/item/ListItemProps.d.ts +6 -2
- package/lib/components/list/item/ListItemProps.js +3 -1
- package/lib/components/list/item/ListItemPropsDefaults.js +4 -0
- package/lib/components/list/item/description/ListItemDescription.d.ts +3 -3
- package/lib/components/list/item/description/ListItemDescription.js +7 -5
- package/lib/components/list/item/description/ListItemDescription.native.d.ts +2 -6
- package/lib/components/list/item/description/ListItemDescription.native.js +4 -4
- package/lib/components/list/item/description/ListItemDescriptionProps.d.ts +3 -0
- package/lib/components/modal/Modal.d.ts +5 -6
- package/lib/components/modal/Modal.js +71 -73
- package/lib/components/modal/Modal.native.d.ts +5 -8
- package/lib/components/modal/Modal.native.js +62 -119
- package/lib/components/modal/ModalProps.d.ts +6 -3
- package/lib/components/modal/ModalPropsDefaults.js +4 -1
- package/lib/components/modal/body/ModalBody.d.ts +3 -3
- package/lib/components/modal/body/ModalBody.js +7 -5
- package/lib/components/modal/body/ModalBody.native.d.ts +3 -6
- package/lib/components/modal/body/ModalBody.native.js +17 -13
- package/lib/components/modal/body/ModalBodyProps.d.ts +3 -0
- package/lib/components/modal/context/ModalContext.d.ts +3 -0
- package/lib/components/modal/context/ModalContext.js +8 -0
- package/lib/components/modal/context/ModalContextProps.d.ts +8 -0
- package/lib/components/modal/context/ModalContextProps.js +2 -0
- package/lib/components/modal/context/ModalContextPropsDefaults.js +25 -0
- package/lib/components/modal/context/index.d.ts +2 -0
- package/lib/components/modal/context/index.js +3 -0
- package/lib/components/modal/footer/ModalFooter.d.ts +3 -3
- package/lib/components/modal/footer/ModalFooter.js +9 -7
- package/lib/components/modal/footer/ModalFooter.native.d.ts +4 -7
- package/lib/components/modal/footer/ModalFooter.native.js +27 -15
- package/lib/components/modal/footer/ModalFooterProps.d.ts +3 -0
- package/lib/components/otp/Otp.d.ts +3 -3
- package/lib/components/otp/Otp.js +16 -10
- package/lib/components/otp/Otp.native.d.ts +4 -7
- package/lib/components/otp/Otp.native.js +46 -47
- package/lib/components/otp/OtpProps.d.ts +3 -0
- package/lib/components/pagination/Pagination.d.ts +4 -5
- package/lib/components/pagination/Pagination.js +11 -7
- package/lib/components/pagination/Pagination.native.d.ts +4 -7
- package/lib/components/pagination/Pagination.native.js +5 -5
- package/lib/components/pagination/PaginationProps.d.ts +3 -1
- package/lib/components/pagination/PaginationPropsDefaults.js +0 -7
- package/lib/components/popover/Popover.d.ts +3 -3
- package/lib/components/popover/Popover.js +12 -10
- package/lib/components/popover/Popover.native.d.ts +3 -6
- package/lib/components/popover/Popover.native.js +6 -6
- package/lib/components/popover/PopoverProps.d.ts +3 -0
- package/lib/components/price/Price.d.ts +3 -3
- package/lib/components/price/Price.js +18 -15
- package/lib/components/price/Price.native.d.ts +3 -6
- package/lib/components/price/Price.native.js +17 -16
- package/lib/components/price/PriceProps.d.ts +3 -0
- package/lib/components/price/PricePropsDefaults.js +6 -2
- package/lib/components/product-tour/ProductTour.d.ts +3 -3
- package/lib/components/product-tour/ProductTour.js +7 -5
- package/lib/components/product-tour/ProductTour.native.d.ts +3 -6
- package/lib/components/product-tour/ProductTour.native.js +4 -4
- package/lib/components/product-tour/ProductTourProps.d.ts +3 -0
- package/lib/components/product-tour/ProductTourProps.js +1 -1
- package/lib/components/progress/Progress.d.ts +2 -2
- package/lib/components/progress/Progress.js +16 -10
- package/lib/components/progress/Progress.native.d.ts +5 -7
- package/lib/components/progress/Progress.native.js +44 -22
- package/lib/components/progress/ProgressProps.d.ts +6 -0
- package/lib/components/progress/ProgressPropsDefaults.js +22 -0
- package/lib/components/progress/index.d.ts +2 -1
- package/lib/components/progress/index.js +3 -2
- package/lib/components/progress/item/ProgressItem.d.ts +15 -0
- package/lib/components/progress/item/ProgressItem.js +28 -0
- package/lib/components/progress/item/ProgressItem.native.d.ts +12 -0
- package/lib/components/progress/item/ProgressItem.native.js +34 -0
- package/lib/components/progress/item/ProgressItemProps.d.ts +20 -0
- package/lib/components/progress/item/ProgressItemProps.js +2 -0
- package/lib/components/progress/item/ProgressItemPropsDefaults.js +76 -0
- package/lib/components/progress/item/index.d.ts +2 -0
- package/lib/components/progress/item/index.js +3 -0
- package/lib/components/progress/radial/ProgressRadial.d.ts +3 -3
- package/lib/components/progress/radial/ProgressRadial.js +8 -6
- package/lib/components/progress/radial/ProgressRadial.native.d.ts +3 -6
- package/lib/components/progress/radial/ProgressRadial.native.js +14 -13
- package/lib/components/progress/radial/ProgressRadialProps.d.ts +3 -0
- package/lib/components/progress/radial/ProgressRadialPropsDefaults.js +20 -4
- package/lib/components/progress/radial/item/ProgressRadialItemPropsDefaults.js +3 -0
- package/lib/components/radio/Radio.d.ts +7 -6
- package/lib/components/radio/Radio.js +25 -20
- package/lib/components/radio/Radio.native.d.ts +8 -18
- package/lib/components/radio/Radio.native.js +26 -146
- package/lib/components/radio/RadioProps.d.ts +5 -2
- package/lib/components/radio/RadioPropsDefaults.js +8 -0
- package/lib/components/radio/list/RadioList.d.ts +8 -7
- package/lib/components/radio/list/RadioList.js +27 -14
- package/lib/components/radio/list/RadioList.native.d.ts +3 -6
- package/lib/components/radio/list/RadioList.native.js +22 -7
- package/lib/components/radio/list/RadioListProps.d.ts +6 -1
- package/lib/components/radio/list/RadioListPropsDefaults.js +7 -0
- package/lib/components/radio/list/RadioListWebPropsDefaults.js +17 -1
- package/lib/components/radio/tiles/RadioTiles.d.ts +10 -6
- package/lib/components/radio/tiles/RadioTiles.js +19 -11
- package/lib/components/radio/tiles/RadioTiles.native.d.ts +12 -0
- package/lib/components/radio/tiles/RadioTiles.native.js +35 -0
- package/lib/components/radio/tiles/RadioTilesProps.d.ts +4 -0
- package/lib/components/radio/tiles/RadioTilesPropsDefaults.js +13 -2
- package/lib/components/radio/tiles/tile/RadioTile.d.ts +19 -6
- package/lib/components/radio/tiles/tile/RadioTile.js +43 -24
- package/lib/components/radio/tiles/tile/RadioTile.native.d.ts +20 -0
- package/lib/components/radio/tiles/tile/RadioTile.native.js +124 -0
- package/lib/components/radio/tiles/tile/RadioTileProps.d.ts +6 -0
- package/lib/components/radio/tiles/tile/RadioTilePropsDefaults.js +27 -0
- package/lib/components/range/Range.d.ts +13 -2
- package/lib/components/range/Range.js +45 -21
- package/lib/components/range/Range.native.d.ts +7 -9
- package/lib/components/range/Range.native.js +16 -15
- package/lib/components/range/RangeNativePropsDefaults.js +9 -0
- package/lib/components/range/RangeProps.d.ts +10 -2
- package/lib/components/range/RangePropsDefaults.js +15 -0
- package/lib/components/rows/Rows.d.ts +2 -2
- package/lib/components/rows/Rows.js +7 -5
- package/lib/components/rows/Rows.native.d.ts +3 -6
- package/lib/components/rows/Rows.native.js +4 -4
- package/lib/components/rows/RowsProps.d.ts +3 -0
- package/lib/components/rows/row/Row.d.ts +2 -2
- package/lib/components/rows/row/Row.js +7 -5
- package/lib/components/rows/row/Row.native.d.ts +3 -6
- package/lib/components/rows/row/Row.native.js +5 -5
- package/lib/components/rows/row/RowProps.d.ts +3 -0
- package/lib/components/scroll-view/ScrollView.d.ts +1 -1
- package/lib/components/scroll-view/ScrollView.js +4 -3
- package/lib/components/scroll-view/ScrollView.native.d.ts +3 -3
- package/lib/components/scroll-view/ScrollView.native.js +13 -12
- package/lib/components/scroll-view/ScrollViewProps.d.ts +3 -0
- package/lib/components/scroll-view/ScrollViewPropsDefaults.js +7 -1
- package/lib/components/section/Section.d.ts +2 -2
- package/lib/components/section/Section.js +7 -5
- package/lib/components/section/Section.native.d.ts +3 -6
- package/lib/components/section/Section.native.js +16 -19
- package/lib/components/section/SectionProps.d.ts +8 -0
- package/lib/components/section/SectionPropsDefaults.js +14 -1
- package/lib/components/segment-control/SegmentControl.d.ts +3 -3
- package/lib/components/segment-control/SegmentControl.js +9 -7
- package/lib/components/segment-control/SegmentControl.native.d.ts +2 -6
- package/lib/components/segment-control/SegmentControl.native.js +11 -9
- package/lib/components/segment-control/SegmentControlProps.d.ts +3 -0
- package/lib/components/segment-control/SegmentControlPropsDefaults.js +3 -1
- package/lib/components/segment-control/item/SegmentControlItem.d.ts +3 -3
- package/lib/components/segment-control/item/SegmentControlItem.js +12 -10
- package/lib/components/segment-control/item/SegmentControlItem.native.d.ts +3 -6
- package/lib/components/segment-control/item/SegmentControlItem.native.js +9 -9
- package/lib/components/segment-control/item/SegmentControlItemProps.d.ts +3 -0
- package/lib/components/select/PropsDefaults.js +169 -0
- package/lib/components/select/Select.d.ts +20 -5
- package/lib/components/select/Select.js +47 -10
- package/lib/components/select/Select.native.d.ts +3 -7
- package/lib/components/select/Select.native.js +14 -12
- package/lib/components/select/SelectChangeEventDefaults.js +4 -0
- package/lib/components/select/SelectChangeEventNativeDefaults.js +37 -0
- package/lib/components/select/SelectEnum.d.ts +5 -0
- package/lib/components/select/SelectEnum.js +6 -0
- package/lib/components/select/SelectNativePropsDefaults.js +204 -0
- package/lib/components/select/SelectProps.d.ts +24 -6
- package/lib/components/select/SelectPropsDefaults.js +42 -9
- package/lib/components/select/context/index.d.ts +13 -0
- package/lib/components/select/context/index.js +10 -0
- package/lib/components/select/option/SelectOption.d.ts +3 -3
- package/lib/components/select/option/SelectOption.js +47 -12
- package/lib/components/select/option/SelectOption.native.d.ts +3 -6
- package/lib/components/select/option/SelectOption.native.js +19 -21
- package/lib/components/select/option/SelectOptionProps.d.ts +3 -0
- package/lib/components/select/web/SelectDynamic.d.ts +5 -3
- package/lib/components/select/web/SelectDynamic.js +68 -178
- package/lib/components/select/web/SelectNative.d.ts +3 -3
- package/lib/components/select/web/SelectNative.js +23 -10
- package/lib/components/spacer/Spacer.d.ts +2 -2
- package/lib/components/spacer/Spacer.js +7 -5
- package/lib/components/spacer/Spacer.native.d.ts +3 -6
- package/lib/components/spacer/Spacer.native.js +4 -4
- package/lib/components/spacer/SpacerProps.d.ts +3 -0
- package/lib/components/stepper/Stepper.d.ts +2 -2
- package/lib/components/stepper/Stepper.js +8 -6
- package/lib/components/stepper/Stepper.native.d.ts +3 -6
- package/lib/components/stepper/Stepper.native.js +10 -8
- package/lib/components/stepper/StepperProps.d.ts +3 -0
- package/lib/components/stepper/step/Step.d.ts +2 -2
- package/lib/components/stepper/step/Step.js +7 -5
- package/lib/components/stepper/step/Step.native.d.ts +3 -7
- package/lib/components/stepper/step/Step.native.js +7 -10
- package/lib/components/stepper/step/StepProps.d.ts +3 -0
- package/lib/components/sticker/Sticker.d.ts +4 -3
- package/lib/components/sticker/Sticker.js +13 -7
- package/lib/components/sticker/Sticker.native.d.ts +4 -6
- package/lib/components/sticker/Sticker.native.js +22 -13
- package/lib/components/sticker/StickerProps.d.ts +5 -2
- package/lib/components/sticker/StickerPropsDefaults.js +9 -2
- package/lib/components/sticker/index.d.ts +0 -1
- package/lib/components/sticker/index.js +1 -2
- package/lib/components/switch/Switch.d.ts +3 -3
- package/lib/components/switch/Switch.js +8 -7
- package/lib/components/switch/Switch.native.d.ts +4 -7
- package/lib/components/switch/Switch.native.js +13 -15
- package/lib/components/switch/SwitchProps.d.ts +3 -0
- package/lib/components/table/Table.d.ts +3 -3
- package/lib/components/table/Table.js +7 -5
- package/lib/components/table/Table.native.d.ts +3 -6
- package/lib/components/table/Table.native.js +4 -4
- package/lib/components/table/TableProps.d.ts +3 -0
- package/lib/components/table/TableProps.js +1 -1
- package/lib/components/table/body/TableBody.d.ts +3 -3
- package/lib/components/table/body/TableBody.js +7 -5
- package/lib/components/table/body/TableBody.native.d.ts +3 -6
- package/lib/components/table/body/TableBody.native.js +4 -4
- package/lib/components/table/body/TableBodyProps.d.ts +3 -0
- package/lib/components/table/body/TableBodyPropsDefaults.js +14 -2
- package/lib/components/table/head/TableHead.d.ts +3 -3
- package/lib/components/table/head/TableHead.js +7 -5
- package/lib/components/table/head/TableHead.native.d.ts +3 -6
- package/lib/components/table/head/TableHead.native.js +4 -4
- package/lib/components/table/head/TableHeadProps.d.ts +3 -0
- package/lib/components/table/head/TableHeadPropsDefaults.js +14 -2
- package/lib/components/table/td/TableTd.d.ts +3 -3
- package/lib/components/table/td/TableTd.js +7 -5
- package/lib/components/table/td/TableTd.native.d.ts +3 -6
- package/lib/components/table/td/TableTd.native.js +4 -4
- package/lib/components/table/td/TableTdProps.d.ts +3 -0
- package/lib/components/table/th/TableTh.d.ts +3 -3
- package/lib/components/table/th/TableTh.js +7 -5
- package/lib/components/table/th/TableTh.native.d.ts +2 -6
- package/lib/components/table/th/TableTh.native.js +4 -4
- package/lib/components/table/th/TableThProps.d.ts +3 -0
- package/lib/components/table/tr/TableTr.d.ts +3 -3
- package/lib/components/table/tr/TableTr.js +7 -5
- package/lib/components/table/tr/TableTr.native.d.ts +2 -6
- package/lib/components/table/tr/TableTr.native.js +5 -5
- package/lib/components/table/tr/TableTrProps.d.ts +3 -1
- package/lib/components/table/tr/TableTrPropsWebDefaults.js +7 -1
- package/lib/components/tabs/Tabs.d.ts +7 -8
- package/lib/components/tabs/Tabs.js +28 -18
- package/lib/components/tabs/Tabs.native.d.ts +11 -0
- package/lib/components/tabs/Tabs.native.js +33 -0
- package/lib/components/tabs/TabsProps.d.ts +4 -0
- package/lib/components/tabs/TabsPropsDefaults.js +14 -2
- package/lib/components/tabs/context/index.d.ts +11 -0
- package/lib/components/tabs/context/index.js +10 -0
- package/lib/components/tabs/tab-list/TabList.d.ts +2 -2
- package/lib/components/tabs/tab-list/TabList.js +75 -9
- package/lib/components/tabs/tab-list/TabList.native.d.ts +14 -0
- package/lib/components/tabs/tab-list/TabList.native.js +83 -0
- package/lib/components/tabs/tab-list/TabListProps.d.ts +3 -0
- package/lib/components/tabs/tab-list/TabListPropsDefaults.js +3 -1
- package/lib/components/tabs/tab-list/tab/Tab.d.ts +6 -5
- package/lib/components/tabs/tab-list/tab/Tab.js +37 -44
- package/lib/components/tabs/tab-list/tab/Tab.native.d.ts +16 -0
- package/lib/components/tabs/tab-list/tab/Tab.native.js +66 -0
- package/lib/components/tabs/tab-list/tab/TabProps.d.ts +3 -0
- package/lib/components/tabs/tab-list/tab/TabPropsDefaults.js +9 -9
- package/lib/components/tabs/tab-panels/TabPanels.d.ts +2 -2
- package/lib/components/tabs/tab-panels/TabPanels.js +14 -7
- package/lib/components/tabs/tab-panels/TabPanels.native.d.ts +13 -0
- package/lib/components/tabs/tab-panels/TabPanels.native.js +33 -0
- package/lib/components/tabs/tab-panels/TabPanelsProps.d.ts +3 -0
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.d.ts +2 -2
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.js +13 -7
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.native.d.ts +11 -0
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.native.js +44 -0
- package/lib/components/tabs/tab-panels/tab-panel/TabPanelProps.d.ts +3 -0
- package/lib/components/tag/Tag.d.ts +3 -3
- package/lib/components/tag/Tag.js +8 -6
- package/lib/components/tag/Tag.native.d.ts +3 -6
- package/lib/components/tag/Tag.native.js +10 -11
- package/lib/components/tag/TagProps.d.ts +3 -6
- package/lib/components/tag/list/TagList.d.ts +2 -2
- package/lib/components/tag/list/TagList.js +7 -5
- package/lib/components/tag/list/TagList.native.d.ts +3 -6
- package/lib/components/tag/list/TagList.native.js +5 -4
- package/lib/components/tag/list/TagListProps.d.ts +3 -0
- package/lib/components/tag/list/TagListPropsDefaults.js +3 -1
- package/lib/components/text/Text.d.ts +3 -4
- package/lib/components/text/Text.js +7 -6
- package/lib/components/text/Text.native.d.ts +3 -7
- package/lib/components/text/Text.native.js +12 -12
- package/lib/components/text/TextProps.d.ts +3 -0
- package/lib/components/textarea/Textarea.d.ts +3 -3
- package/lib/components/textarea/Textarea.js +32 -29
- package/lib/components/textarea/Textarea.native.d.ts +31 -2
- package/lib/components/textarea/Textarea.native.js +15 -11
- package/lib/components/textarea/TextareaProps.d.ts +2 -0
- package/lib/components/timeline/Timeline.d.ts +2 -2
- package/lib/components/timeline/Timeline.js +7 -5
- package/lib/components/timeline/Timeline.native.d.ts +2 -5
- package/lib/components/timeline/Timeline.native.js +4 -4
- package/lib/components/timeline/TimelineProps.d.ts +3 -0
- package/lib/components/timeline/content/TimelineContent.d.ts +6 -4
- package/lib/components/timeline/content/TimelineContent.js +15 -11
- package/lib/components/timeline/content/TimelineContent.native.d.ts +6 -10
- package/lib/components/timeline/content/TimelineContent.native.js +13 -14
- package/lib/components/timeline/content/TimelineContentProps.d.ts +3 -0
- package/lib/components/timeline/item/TimelineItem.d.ts +2 -2
- package/lib/components/timeline/item/TimelineItem.js +7 -5
- package/lib/components/timeline/item/TimelineItem.native.d.ts +3 -6
- package/lib/components/timeline/item/TimelineItem.native.js +6 -6
- package/lib/components/timeline/item/TimelineItemProps.d.ts +3 -0
- package/lib/components/timeline/marker/TimelineMarker.d.ts +4 -4
- package/lib/components/timeline/marker/TimelineMarker.js +8 -6
- package/lib/components/timeline/marker/TimelineMarker.native.d.ts +4 -7
- package/lib/components/timeline/marker/TimelineMarker.native.js +13 -11
- package/lib/components/timeline/marker/TimelineMarkerProps.d.ts +3 -0
- package/lib/components/title/Title.d.ts +4 -4
- package/lib/components/title/Title.js +7 -5
- package/lib/components/title/Title.native.d.ts +4 -7
- package/lib/components/title/Title.native.js +32 -39
- package/lib/components/title/TitleProps.d.ts +3 -0
- package/lib/components/title/TitlePropsDefaults.js +3 -3
- package/lib/components/view/View.d.ts +4 -4
- package/lib/components/view/View.js +6 -6
- package/lib/components/view/View.native.d.ts +2 -6
- package/lib/components/view/View.native.js +6 -6
- package/lib/components/view/ViewProps.d.ts +11 -2
- package/lib/components/view/ViewProps.js +8 -1
- package/lib/components/view/ViewPropsDefaults.js +34 -10
- package/lib/context/index.d.ts +1 -1
- package/lib/context/provider.d.ts +2 -1
- package/lib/context/provider.js +6 -4
- package/lib/context/providerStyled.js +5 -5
- package/lib/events/OnClickEvent.d.ts +1 -1
- package/lib/helpers/device.d.ts +3 -0
- package/lib/helpers/device.js +5 -4
- package/lib/helpers/device.native.d.ts +19 -0
- package/lib/helpers/device.native.js +36 -0
- package/lib/helpers/hashClassesHelpers.d.ts +1 -1
- package/lib/helpers/hashClassesHelpers.js +5 -5
- package/lib/helpers/require.d.ts +2 -0
- package/lib/helpers/require.js +3 -0
- package/lib/objects/Typography/TypographyBold.js +2 -2
- package/lib/objects/Typography/TypographyColor.d.ts +1 -1
- package/lib/objects/Typography/TypographyColor.js +36 -38
- package/lib/objects/facets/Alignable.d.ts +8 -1
- package/lib/objects/facets/Alignable.js +17 -1
- package/lib/objects/facets/Color.d.ts +7 -4
- package/lib/objects/facets/Color.js +12 -2
- package/lib/objects/facets/Direction.d.ts +7 -0
- package/lib/objects/facets/Direction.js +8 -0
- package/lib/objects/facets/Justifiable.d.ts +14 -5
- package/lib/objects/facets/Justifiable.js +44 -13
- package/lib/objects/facets/index.d.ts +1 -0
- package/lib/objects/facets/index.js +2 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +2 -2
- package/lib/version.json +3 -0
- package/package.json +21 -6
- package/lib/components/sticker/StickerEnum.d.ts +0 -24
- package/lib/components/sticker/StickerEnum.js +0 -19
- package/lib/components/tag/TagClickEventDefaults.js +0 -1
- package/lib/hash.json +0 -3
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { hashClass } from
|
|
5
|
-
import
|
|
2
|
+
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
3
|
+
import { useTrilogyContext } from '../../../context';
|
|
4
|
+
import { hashClass } from '../../../helpers/hashClassesHelpers';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import * as React from 'react';
|
|
6
7
|
/**
|
|
7
8
|
* Box Table Component
|
|
8
9
|
* @param children {React.ReactNode} Children
|
|
9
10
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
10
|
-
* @param className {string}
|
|
11
|
+
* @param className {string} Additional CSS Classes
|
|
11
12
|
* @param testId {string} Test Id for Test Integration
|
|
12
13
|
*/
|
|
13
|
-
var BoxTableContainer = function (_a) {
|
|
14
|
+
var BoxTableContainer = React.forwardRef(function (_a, ref) {
|
|
14
15
|
var className = _a.className, testId = _a.testId, others = __rest(_a, ["className", "testId"]);
|
|
15
16
|
var styled = useTrilogyContext().styled;
|
|
16
|
-
return (React.createElement("div", __assign({ "data-testid": testId, className: hashClass(styled, clsx(
|
|
17
|
-
};
|
|
17
|
+
return (React.createElement("div", __assign({ ref: ref, "data-testid": testId, className: hashClass(styled, clsx('box table-container', className)) }, others)));
|
|
18
|
+
});
|
|
19
|
+
BoxTableContainer.displayName = ComponentName.BoxTableContainer;
|
|
18
20
|
export default BoxTableContainer;
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQm94VGFibGVDb250YWluZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL2JveC90YWJsZS1jb250YWluZXIvQm94VGFibGVDb250YWluZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0NBQWtDLENBQUE7QUFDaEUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sV0FBVyxDQUFBO0FBQzdDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQTtBQUN4RCxPQUFPLElBQUksTUFBTSxNQUFNLENBQUE7QUFDdkIsT0FBTyxLQUFLLEtBQUssTUFBTSxPQUFPLENBQUE7QUFHOUI7Ozs7OztHQU1HO0FBQ0gsSUFBTSxpQkFBaUIsR0FBRyxLQUFLLENBQUMsVUFBVSxDQUN4QyxVQUFDLEVBQWdDLEVBQUUsR0FBRztJQUFuQyxJQUFBLFNBQVMsZUFBQSxFQUFFLE1BQU0sWUFBQSxFQUFLLE1BQU0sY0FBOUIsdUJBQWdDLENBQUY7SUFDckIsSUFBQSxNQUFNLEdBQUssaUJBQWlCLEVBQUUsT0FBeEIsQ0FBd0I7SUFFdEMsT0FBTyxDQUNMLHNDQUNFLEdBQUcsRUFBRSxHQUFHLGlCQUNLLE1BQU0sRUFDbkIsU0FBUyxFQUFFLFNBQVMsQ0FBQyxNQUFNLEVBQUUsSUFBSSxDQUFDLHFCQUFxQixFQUFFLFNBQVMsQ0FBQyxDQUFDLElBQ2hFLE1BQU0sRUFDVixDQUNILENBQUE7QUFDSCxDQUFDLENBQ0YsQ0FBQTtBQUNELGlCQUFpQixDQUFDLFdBQVcsR0FBRyxhQUFhLENBQUMsaUJBQWlCLENBQUE7QUFDL0QsZUFBZSxpQkFBaUIsQ0FBQSJ9
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { BoxTableContainerProps } from './BoxTableContainerProps';
|
|
4
4
|
/**
|
|
5
5
|
* Box Table Component
|
|
6
6
|
* @param children {React.ReactNode} Childrens
|
|
7
7
|
*/
|
|
8
|
-
declare const boxTableContainer:
|
|
9
|
-
({ children, ...others }: BoxTableContainerProps): JSX.Element;
|
|
10
|
-
displayName: ComponentName;
|
|
11
|
-
};
|
|
8
|
+
declare const boxTableContainer: React.ForwardRefExoticComponent<BoxTableContainerProps & React.RefAttributes<View>>;
|
|
12
9
|
export default boxTableContainer;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
2
|
+
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { StyleSheet, View } from 'react-native';
|
|
5
5
|
/**
|
|
6
6
|
* Box Table Component
|
|
7
7
|
* @param children {React.ReactNode} Childrens
|
|
8
8
|
*/
|
|
9
|
-
var boxTableContainer = function (_a) {
|
|
9
|
+
var boxTableContainer = React.forwardRef(function (_a, ref) {
|
|
10
10
|
var children = _a.children, others = __rest(_a, ["children"]);
|
|
11
11
|
var styles = StyleSheet.create({
|
|
12
12
|
boxTableContainer: {},
|
|
13
13
|
});
|
|
14
|
-
return (React.createElement(View, __assign({ style: [styles.boxTableContainer] }, others), children));
|
|
15
|
-
};
|
|
16
|
-
boxTableContainer.displayName = ComponentName.
|
|
14
|
+
return (React.createElement(View, __assign({ ref: ref, style: [styles.boxTableContainer] }, others), children));
|
|
15
|
+
});
|
|
16
|
+
boxTableContainer.displayName = ComponentName.BoxTableContainer;
|
|
17
17
|
export default boxTableContainer;
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQm94VGFibGVDb250YWluZXIubmF0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vY29tcG9uZW50cy9ib3gvdGFibGUtY29udGFpbmVyL0JveFRhYmxlQ29udGFpbmVyLm5hdGl2ZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQTtBQUNoRSxPQUFPLEtBQUssS0FBSyxNQUFNLE9BQU8sQ0FBQTtBQUM5QixPQUFPLEVBQUUsVUFBVSxFQUFFLElBQUksRUFBRSxNQUFNLGNBQWMsQ0FBQTtBQUcvQzs7O0dBR0c7QUFDSCxJQUFNLGlCQUFpQixHQUFHLEtBQUssQ0FBQyxVQUFVLENBQ3hDLFVBQUMsRUFBdUIsRUFBRSxHQUFHO0lBQTFCLElBQUEsUUFBUSxjQUFBLEVBQUssTUFBTSxjQUFyQixZQUF1QixDQUFGO0lBQ3BCLElBQU0sTUFBTSxHQUFHLFVBQVUsQ0FBQyxNQUFNLENBQUM7UUFDL0IsaUJBQWlCLEVBQUUsRUFBRTtLQUN0QixDQUFDLENBQUE7SUFFRixPQUFPLENBQ0wsb0JBQUMsSUFBSSxhQUFDLEdBQUcsRUFBRSxHQUFHLEVBQUUsS0FBSyxFQUFFLENBQUMsTUFBTSxDQUFDLGlCQUFpQixDQUFDLElBQU0sTUFBTSxHQUMxRCxRQUFRLENBQ0osQ0FDUixDQUFBO0FBQ0gsQ0FBQyxDQUNGLENBQUE7QUFFRCxpQkFBaUIsQ0FBQyxXQUFXLEdBQUcsYUFBYSxDQUFDLGlCQUFpQixDQUFBO0FBRS9ELGVBQWUsaUJBQWlCLENBQUEifQ==
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Accessibility, Dev } from '../../../objects';
|
|
3
|
+
import { View } from 'react-native';
|
|
3
4
|
/**
|
|
4
5
|
* Box Table Container Interface
|
|
5
6
|
*/
|
|
@@ -7,3 +8,5 @@ export interface BoxTableContainerProps extends Accessibility, Dev {
|
|
|
7
8
|
children?: string | React.ReactNode;
|
|
8
9
|
className?: string;
|
|
9
10
|
}
|
|
11
|
+
export type BoxTableContainerRef = HTMLDivElement;
|
|
12
|
+
export type BoxTableContainerNativeRef = View;
|
|
@@ -5,8 +5,8 @@ import { BreadcrumbWebProps } from './BreadcrumbProps';
|
|
|
5
5
|
* @param children {React.ReactNode} Breadcrumb Children
|
|
6
6
|
* @param testId {string} Test id
|
|
7
7
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
8
|
-
* @param className {string}
|
|
8
|
+
* @param className {string} Additional CSS Classes
|
|
9
9
|
* @param accessibilityLabel {string} Accessibility label
|
|
10
10
|
*/
|
|
11
|
-
declare const Breadcrumb:
|
|
11
|
+
declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbWebProps & React.RefAttributes<HTMLElement>>;
|
|
12
12
|
export default Breadcrumb;
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import { hashClass } from '../../helpers';
|
|
5
2
|
import { useTrilogyContext } from '../../context';
|
|
3
|
+
import { hashClass } from '../../helpers/hashClassesHelpers';
|
|
4
|
+
import translation from '@trilogy-ds/locales/lib/breadcrumb';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ComponentName } from '../enumsComponentsName';
|
|
6
8
|
/**
|
|
7
9
|
* Breadcrumb Component
|
|
8
10
|
* @param children {React.ReactNode} Breadcrumb Children
|
|
9
11
|
* @param testId {string} Test id
|
|
10
12
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
11
|
-
* @param className {string}
|
|
13
|
+
* @param className {string} Additional CSS Classes
|
|
12
14
|
* @param accessibilityLabel {string} Accessibility label
|
|
13
15
|
*/
|
|
14
|
-
var Breadcrumb = function (_a) {
|
|
15
|
-
var children = _a.children, className = _a.className, id = _a.id,
|
|
16
|
+
var Breadcrumb = React.forwardRef(function (_a, ref) {
|
|
17
|
+
var children = _a.children, className = _a.className, id = _a.id, others = __rest(_a, ["children", "className", "id"]);
|
|
16
18
|
var styled = useTrilogyContext().styled;
|
|
17
|
-
return (React.createElement("nav", __assign({ id: id, role:
|
|
19
|
+
return (React.createElement("nav", __assign({ ref: ref, id: id, role: 'navigation', className: hashClass(styled, clsx('breadcrumb', className)), "aria-label": translation.accessibilityLabel }, others),
|
|
18
20
|
React.createElement("ul", null, children)));
|
|
19
|
-
};
|
|
21
|
+
});
|
|
22
|
+
Breadcrumb.displayName = ComponentName.Breadcrumb;
|
|
20
23
|
export default Breadcrumb;
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQnJlYWRjcnVtYi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2NvbXBvbmVudHMvYnJlYWRjcnVtYi9CcmVhZGNydW1iLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sV0FBVyxDQUFBO0FBQzdDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQTtBQUN4RCxPQUFPLFdBQVcsTUFBTSxvQ0FBb0MsQ0FBQTtBQUM1RCxPQUFPLElBQUksTUFBTSxNQUFNLENBQUE7QUFDdkIsT0FBTyxLQUFLLEtBQUssTUFBTSxPQUFPLENBQUE7QUFDOUIsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHdCQUF3QixDQUFBO0FBR3REOzs7Ozs7O0dBT0c7QUFDSCxJQUFNLFVBQVUsR0FBRyxLQUFLLENBQUMsVUFBVSxDQUNqQyxVQUFDLEVBQXNDLEVBQUUsR0FBRztJQUF6QyxJQUFBLFFBQVEsY0FBQSxFQUFFLFNBQVMsZUFBQSxFQUFFLEVBQUUsUUFBQSxFQUFLLE1BQU0sY0FBcEMsK0JBQXNDLENBQUY7SUFDM0IsSUFBQSxNQUFNLEdBQUssaUJBQWlCLEVBQUUsT0FBeEIsQ0FBd0I7SUFFdEMsT0FBTyxDQUNMLHNDQUNFLEdBQUcsRUFBRSxHQUFHLEVBQ1IsRUFBRSxFQUFFLEVBQUUsRUFDTixJQUFJLEVBQUMsWUFBWSxFQUNqQixTQUFTLEVBQUUsU0FBUyxDQUFDLE1BQU0sRUFBRSxJQUFJLENBQUMsWUFBWSxFQUFFLFNBQVMsQ0FBQyxDQUFDLGdCQUMvQyxXQUFXLENBQUMsa0JBQWtCLElBQ3RDLE1BQU07UUFFVixnQ0FBSyxRQUFRLENBQU0sQ0FDZixDQUNQLENBQUE7QUFDSCxDQUFDLENBQ0YsQ0FBQTtBQUNELFVBQVUsQ0FBQyxXQUFXLEdBQUcsYUFBYSxDQUFDLFVBQVUsQ0FBQTtBQUNqRCxlQUFlLFVBQVUsQ0FBQSJ9
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { BreadcrumbProps } from './BreadcrumbProps';
|
|
4
4
|
/**
|
|
5
5
|
* Breadcrumb Native Component
|
|
6
6
|
* @param children {React.ReactNode} Breadcrumb Children
|
|
7
7
|
* @param testId {string} Test id
|
|
8
8
|
*/
|
|
9
|
-
declare const Breadcrumb:
|
|
10
|
-
({ children, testId, ...others }: BreadcrumbProps): JSX.Element;
|
|
11
|
-
displayName: ComponentName;
|
|
12
|
-
};
|
|
9
|
+
declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<View>>;
|
|
13
10
|
export default Breadcrumb;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
2
|
+
import { ComponentName } from '../../components/enumsComponentsName';
|
|
3
|
+
import { Icon } from '../../components/icon';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { StyleSheet, View } from 'react-native';
|
|
6
6
|
/**
|
|
7
7
|
* Breadcrumb Native Component
|
|
8
8
|
* @param children {React.ReactNode} Breadcrumb Children
|
|
9
9
|
* @param testId {string} Test id
|
|
10
10
|
*/
|
|
11
|
-
var Breadcrumb = function (_a) {
|
|
11
|
+
var Breadcrumb = React.forwardRef(function (_a, ref) {
|
|
12
12
|
var children = _a.children, testId = _a.testId, others = __rest(_a, ["children", "testId"]);
|
|
13
13
|
var containerStyle = React.useMemo(function () {
|
|
14
14
|
return StyleSheet.create({
|
|
15
15
|
containerStyle: {
|
|
16
|
-
flexDirection:
|
|
17
|
-
flexWrap:
|
|
16
|
+
flexDirection: 'row',
|
|
17
|
+
flexWrap: 'wrap',
|
|
18
18
|
},
|
|
19
19
|
});
|
|
20
20
|
}, []).containerStyle;
|
|
21
|
-
return (React.createElement(View, __assign({ testID: testId, style: [containerStyle] }, others), Array.isArray(children)
|
|
21
|
+
return (React.createElement(View, __assign({ testID: testId, style: [containerStyle], ref: ref }, others), Array.isArray(children)
|
|
22
22
|
? React.Children.map(children, function (child, index) { return (React.createElement(React.Fragment, null,
|
|
23
23
|
React.cloneElement(child),
|
|
24
|
-
index != children.length - 1 &&
|
|
24
|
+
index != children.length - 1 && React.createElement(Icon, { size: 'smaller', name: 'tri-arrow-right', align: 'ALIGNED_CENTER' }))); })
|
|
25
25
|
: children));
|
|
26
|
-
};
|
|
26
|
+
});
|
|
27
27
|
Breadcrumb.displayName = ComponentName.Breadcrumb;
|
|
28
28
|
export default Breadcrumb;
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQnJlYWRjcnVtYi5uYXRpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9jb21wb25lbnRzL2JyZWFkY3J1bWIvQnJlYWRjcnVtYi5uYXRpdmUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0NBQWtDLENBQUE7QUFDaEUsT0FBTyxFQUFFLElBQUksRUFBRSxNQU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yxpQkFBaUIsRUFBQyxLQUFLLEVBQUMsZ0JBQWdCLEdBQUcsQ0FDckcsQ0FDSixFQUw4QyxDQUs5QyxDQUFDO1FBQ0osQ0FBQyxDQUFDLFFBQVEsQ0FDUCxDQUNSLENBQUE7QUFDSCxDQUFDLENBQ0YsQ0FBQTtBQUVELFVBQVUsQ0FBQyxXQUFXLEdBQUcsYUFBYSxDQUFDLFVBQVUsQ0FBQTtBQUVqRCxlQUFlLFVBQVUsQ0FBQSJ9
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { Accessibility } from '../../objects/facets/Accessibility';
|
|
3
4
|
import { CommonProps } from '../../objects/facets/CommonProps';
|
|
5
|
+
import { Dev } from '../../objects/facets/Dev';
|
|
4
6
|
/**
|
|
5
7
|
* Breadcrumb Interface
|
|
6
8
|
*/
|
|
@@ -12,3 +14,5 @@ export interface BreadcrumbProps extends Accessibility, Dev {
|
|
|
12
14
|
*/
|
|
13
15
|
export interface BreadcrumbWebProps extends BreadcrumbProps, CommonProps {
|
|
14
16
|
}
|
|
17
|
+
export type BreadcrumbRef = HTMLElement;
|
|
18
|
+
export type BreadcrumbNativeRef = View;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { BreadcrumbItemPropsWeb } from './BreadcrumbItemProps';
|
|
3
3
|
/**
|
|
4
4
|
* Breadcrumb Item Component
|
|
@@ -11,8 +11,8 @@ import { BreadcrumbItemPropsWeb } from './BreadcrumbItemProps';
|
|
|
11
11
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
12
12
|
* @param routerLink Custom Router Link as props
|
|
13
13
|
* @param href {string} Url. Use native-old <a> tag (only when the `to` property is not filled)
|
|
14
|
-
* @param className {string}
|
|
14
|
+
* @param className {string} Additional CSS Classes
|
|
15
15
|
* @param others
|
|
16
16
|
*/
|
|
17
|
-
declare const BreadcrumbItem:
|
|
17
|
+
declare const BreadcrumbItem: React.ForwardRefExoticComponent<BreadcrumbItemPropsWeb & React.RefAttributes<HTMLLIElement>>;
|
|
18
18
|
export default BreadcrumbItem;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import
|
|
3
|
-
import { is } from '../../../services/classify';
|
|
4
|
-
import clsx from 'clsx';
|
|
5
|
-
import { hashClass } from '../../../helpers';
|
|
6
|
-
import { useTrilogyContext } from '../../../context';
|
|
2
|
+
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
7
3
|
import { Link } from '../../../components/link';
|
|
4
|
+
import { useTrilogyContext } from '../../../context';
|
|
5
|
+
import { hashClass } from '../../../helpers/hashClassesHelpers';
|
|
6
|
+
import clsx from 'clsx';
|
|
7
|
+
import * as React from 'react';
|
|
8
8
|
/**
|
|
9
9
|
* Breadcrumb Item Component
|
|
10
10
|
* @param children {string} Breadcrumb Item Text
|
|
@@ -16,20 +16,19 @@ import { Link } from '../../../components/link';
|
|
|
16
16
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
17
17
|
* @param routerLink Custom Router Link as props
|
|
18
18
|
* @param href {string} Url. Use native-old <a> tag (only when the `to` property is not filled)
|
|
19
|
-
* @param className {string}
|
|
19
|
+
* @param className {string} Additional CSS Classes
|
|
20
20
|
* @param others
|
|
21
21
|
*/
|
|
22
|
-
var BreadcrumbItem = function (_a) {
|
|
23
|
-
var children = _a.children, active = _a.active,
|
|
22
|
+
var BreadcrumbItem = React.forwardRef(function (_a, ref) {
|
|
23
|
+
var children = _a.children, active = _a.active, id = _a.id, href = _a.href, to = _a.to, routerLink = _a.routerLink, testId = _a.testId, onClick = _a.onClick, others = __rest(_a, ["children", "active", "id", "href", "to", "routerLink", "testId", "onClick"]);
|
|
24
24
|
var styled = useTrilogyContext().styled;
|
|
25
|
-
var classes = hashClass(styled, clsx(active && is('active'), className));
|
|
26
25
|
if (routerLink && to) {
|
|
27
26
|
var RouterLink = (routerLink ? routerLink : 'a');
|
|
28
|
-
return (React.createElement("li", { id: id, "data-testid": testId,
|
|
27
|
+
return (React.createElement("li", { ref: ref, id: id, "data-testid": testId, onClick: onClick, "aria-current": active ? 'page' : undefined },
|
|
29
28
|
React.createElement(RouterLink, __assign({ className: hashClass(styled, clsx('link')), to: to }, others), children)));
|
|
30
29
|
}
|
|
31
|
-
return (React.createElement("li", {
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
return (React.createElement("li", { ref: ref, id: id, onClick: onClick, "aria-current": active ? 'page' : undefined }, active ? (children) : (React.createElement(Link, __assign({ href: href }, others), children))));
|
|
31
|
+
});
|
|
32
|
+
BreadcrumbItem.displayName = ComponentName.BreadcrumbItem;
|
|
34
33
|
export default BreadcrumbItem;
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQnJlYWRjcnVtYkl0ZW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL2JyZWFkY3J1bWIvaXRlbS9CcmVhZGNydW1iSXRlbS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQTtBQUNoRSxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sbUJBQW1CLENBQUE7QUFDeEMsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sV0FBVyxDQUFBO0FBQzdDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQTtBQUN4RCxPQUFPLElBQUksTUFBTSxNQUFNLENBQUE7QUFDdkIsT0FBTyxLQUFLLEtBQUssTUFBTSxPQUFPLENBQUE7QUFHOUI7Ozs7Ozs7Ozs7Ozs7R0FhRztBQUNILElB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UMsU0FBUyxJQUM5RSxNQUFNLENBQUMsQ0FBQyxDQUFDLENBQ1IsUUFBUSxDQUNULENBQUMsQ0FBQyxDQUFDLENBQ0Ysb0JBQUMsSUFBSSxhQUFDLElBQUksRUFBRSxJQUFJLElBQU0sTUFBTSxHQUN6QixRQUFRLENBQ0osQ0FDUixDQUNFLENBQ04sQ0FBQTtBQUNILENBQUMsQ0FDRixDQUFBO0FBQ0QsY0FBYyxDQUFDLFdBQVcsR0FBRyxhQUFhLENBQUMsY0FBYyxDQUFBO0FBQ3pELGVBQWUsY0FBYyxDQUFBIn0=
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { BreadcrumbItemProps } from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TouchableOpacity } from 'react-native';
|
|
3
|
+
import { BreadcrumbItemProps } from './BreadcrumbItemProps';
|
|
4
4
|
/**
|
|
5
5
|
* Breadcrumb Item Component
|
|
6
6
|
* @param children {string} Breadcrumb Item Text
|
|
@@ -9,8 +9,5 @@ import { BreadcrumbItemProps } from "./BreadcrumbItemProps";
|
|
|
9
9
|
* @param onClick {Function} Click Event
|
|
10
10
|
* @param testId {string} Test Id for Test Integration
|
|
11
11
|
*/
|
|
12
|
-
declare const BreadcrumbItem:
|
|
13
|
-
({ children, active, to, testId, onClick, ...others }: BreadcrumbItemProps): JSX.Element;
|
|
14
|
-
displayName: ComponentName;
|
|
15
|
-
};
|
|
12
|
+
declare const BreadcrumbItem: React.ForwardRefExoticComponent<BreadcrumbItemProps & React.RefAttributes<TouchableOpacity>>;
|
|
16
13
|
export default BreadcrumbItem;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
2
|
+
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
3
|
+
import { Text } from '../../../components/text';
|
|
4
|
+
import { getColorStyle, TrilogyColor } from '../../../objects/facets/Color';
|
|
5
|
+
import { TypographyBold } from '../../../objects/Typography/TypographyBold';
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { Linking, StyleSheet, TouchableOpacity } from 'react-native';
|
|
7
8
|
/**
|
|
8
9
|
* Breadcrumb Item Component
|
|
9
10
|
* @param children {string} Breadcrumb Item Text
|
|
@@ -12,23 +13,23 @@ import { getColorStyle, TrilogyColor, TypographyBold } from "../../../objects";
|
|
|
12
13
|
* @param onClick {Function} Click Event
|
|
13
14
|
* @param testId {string} Test Id for Test Integration
|
|
14
15
|
*/
|
|
15
|
-
var BreadcrumbItem = function (_a) {
|
|
16
|
+
var BreadcrumbItem = React.forwardRef(function (_a, ref) {
|
|
16
17
|
var children = _a.children, active = _a.active, to = _a.to, testId = _a.testId, onClick = _a.onClick, others = __rest(_a, ["children", "active", "to", "testId", "onClick"]);
|
|
17
18
|
var textStyle = StyleSheet.create({
|
|
18
19
|
textStyle: {
|
|
19
20
|
color: getColorStyle(TrilogyColor.FONT),
|
|
20
|
-
textDecorationLine: !active ?
|
|
21
|
-
textDecorationStyle:
|
|
21
|
+
textDecorationLine: !active ? 'underline' : 'none',
|
|
22
|
+
textDecorationStyle: 'solid',
|
|
22
23
|
},
|
|
23
24
|
}).textStyle;
|
|
24
|
-
return (React.createElement(TouchableOpacity, __assign({ testID: testId, onPress: function (e) {
|
|
25
|
+
return (React.createElement(TouchableOpacity, __assign({ ref: ref, testID: testId, onPress: function (e) {
|
|
25
26
|
if (to)
|
|
26
27
|
Linking.openURL(to);
|
|
27
28
|
if (onClick)
|
|
28
29
|
onClick(e);
|
|
29
30
|
} }, others),
|
|
30
31
|
React.createElement(Text, { typo: TypographyBold.TEXT_WEIGHT_MEDIUM, style: __assign({}, textStyle) }, children)));
|
|
31
|
-
};
|
|
32
|
+
});
|
|
32
33
|
BreadcrumbItem.displayName = ComponentName.BreadcrumbItem;
|
|
33
34
|
export default BreadcrumbItem;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ENBQUMsSUFBSSxDQUFDO1lBQ3ZDLGtCQUFrQixFQUFFLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxXQUFXLENBQUMsQ0FBQyxDQUFDLE1BQU07WUFDbEQsbUJBQW1CLEVBQUUsT0FBTztTQUM3QjtLQUNGLENBQUMsVUFOZSxDQU1mO0lBRUYsT0FBTyxDQUNMLG9CQUFDLGdCQUFnQixhQUNmLEdBQUcsRUFBRSxHQUFHLEVBQ1IsTUFBTSxFQUFFLE1BQU0sRUFDZCxPQUFPLEVBQUUsVUFBQyxDQUFDO1lBQ1QsSUFBSSxFQUFFO2dCQUFFLE9BQU8sQ0FBQyxPQUFPLENBQUMsRUFBRSxDQUFDLENBQUE7WUFDM0IsSUFBSSxPQUFPO2dCQUFFLE9BQU8sQ0FBQyxDQUFDLENBQUMsQ0FBQTtRQUN6QixDQUFDLElBQ0csTUFBTTtRQUVWLG9CQUFDLElBQUksSUFBQyxJQUFJLEVBQUUsY0FBYyxDQUFDLGtCQUFrQixFQUFFLEtBQUssZUFBTyxTQUFTLEtBQ2pFLFFBQVEsQ0FDSixDQUNVLENBQ3BCLENBQUE7QUFDSCxDQUFDLENBQ0YsQ0FBQTtBQUVELGNBQWMsQ0FBQyxXQUFXLEdBQUcsYUFBYSxDQUFDLGNBQWMsQ0FBQTtBQUV6RCxlQUFlLGNBQWMsQ0FBQSJ9
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { TouchableOpacity } from 'react-native';
|
|
3
|
+
import { Accessibility } from '../../../objects/facets/Accessibility';
|
|
4
|
+
import { Clickable } from '../../../objects/facets/Clickable';
|
|
3
5
|
import { CommonProps } from '../../../objects/facets/CommonProps';
|
|
6
|
+
import { Dev } from '../../../objects/facets/Dev';
|
|
4
7
|
export interface BreadcrumbItemProps extends Accessibility, Clickable, Dev {
|
|
5
8
|
children?: string;
|
|
6
9
|
active?: boolean;
|
|
@@ -13,3 +16,5 @@ export interface BreadcrumbItemPropsWeb extends Accessibility, Clickable, Breadc
|
|
|
13
16
|
href?: string;
|
|
14
17
|
routerLink?: React.ElementType;
|
|
15
18
|
}
|
|
19
|
+
export type BreadcrumbItemRef = HTMLLIElement;
|
|
20
|
+
export type BreadcrumbItemNativeRef = TouchableOpacity;
|
|
@@ -12,8 +12,17 @@ export default {
|
|
|
12
12
|
"undefined",
|
|
13
13
|
"symbol",
|
|
14
14
|
"object",
|
|
15
|
+
"p",
|
|
16
|
+
"h2",
|
|
17
|
+
"h3",
|
|
18
|
+
"h4",
|
|
19
|
+
"h5",
|
|
20
|
+
"h6",
|
|
15
21
|
"text",
|
|
16
22
|
"search",
|
|
23
|
+
"button",
|
|
24
|
+
"image",
|
|
25
|
+
"time",
|
|
17
26
|
"a",
|
|
18
27
|
"abbr",
|
|
19
28
|
"address",
|
|
@@ -29,7 +38,6 @@ export default {
|
|
|
29
38
|
"blockquote",
|
|
30
39
|
"body",
|
|
31
40
|
"br",
|
|
32
|
-
"button",
|
|
33
41
|
"canvas",
|
|
34
42
|
"caption",
|
|
35
43
|
"center",
|
|
@@ -55,11 +63,6 @@ export default {
|
|
|
55
63
|
"footer",
|
|
56
64
|
"form",
|
|
57
65
|
"h1",
|
|
58
|
-
"h2",
|
|
59
|
-
"h3",
|
|
60
|
-
"h4",
|
|
61
|
-
"h5",
|
|
62
|
-
"h6",
|
|
63
66
|
"head",
|
|
64
67
|
"header",
|
|
65
68
|
"hgroup",
|
|
@@ -90,7 +93,6 @@ export default {
|
|
|
90
93
|
"optgroup",
|
|
91
94
|
"option",
|
|
92
95
|
"output",
|
|
93
|
-
"p",
|
|
94
96
|
"param",
|
|
95
97
|
"picture",
|
|
96
98
|
"pre",
|
|
@@ -121,7 +123,6 @@ export default {
|
|
|
121
123
|
"tfoot",
|
|
122
124
|
"th",
|
|
123
125
|
"thead",
|
|
124
|
-
"time",
|
|
125
126
|
"title",
|
|
126
127
|
"tr",
|
|
127
128
|
"track",
|
|
@@ -168,7 +169,6 @@ export default {
|
|
|
168
169
|
"filter",
|
|
169
170
|
"foreignObject",
|
|
170
171
|
"g",
|
|
171
|
-
"image",
|
|
172
172
|
"line",
|
|
173
173
|
"linearGradient",
|
|
174
174
|
"marker",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { ButtonProps } from './ButtonProps';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonProps, ButtonRef } from './ButtonProps';
|
|
3
3
|
/**
|
|
4
4
|
* Button component
|
|
5
5
|
* @param loading {boolean} Loading button
|
|
@@ -13,7 +13,7 @@ import { ButtonProps } from './ButtonProps';
|
|
|
13
13
|
* @param iconName {IconName} If Icon, Button + Icon && Button IconName
|
|
14
14
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
15
15
|
* @param markup {ButtonMarkup} HTML element : button|input|a (ONLY FOR WEB)
|
|
16
|
-
* @param className {string}
|
|
16
|
+
* @param className {string} Additional css classes (ONLY FOR WEB)
|
|
17
17
|
* @param id {string} Custom id for button (ONLY FOR WEB)
|
|
18
18
|
* @param to {string} Link
|
|
19
19
|
* @param href {string} Href
|
|
@@ -22,5 +22,5 @@ import { ButtonProps } from './ButtonProps';
|
|
|
22
22
|
* @param styled {boolean} Component Wearing Styles - Hashed Trilogy Css
|
|
23
23
|
* @param type {ButtonType} button type (button|reset|submit)
|
|
24
24
|
*/
|
|
25
|
-
declare const Button:
|
|
25
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<ButtonRef>>;
|
|
26
26
|
export default Button;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
2
|
+
import { Icon } from '../../components/icon';
|
|
3
|
+
import { useTrilogyContext } from '../../context';
|
|
4
|
+
import { hashClass } from '../../helpers/hashClassesHelpers';
|
|
5
5
|
import { getButtonVariantClassName } from '../../objects/facets/Color';
|
|
6
|
+
import { is } from '../../services/index';
|
|
7
|
+
import clsx from 'clsx';
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { ComponentName } from '../enumsComponentsName';
|
|
6
10
|
import { ButtonMarkup } from './ButtonEnum';
|
|
7
|
-
import { hashClass } from '../../helpers';
|
|
8
|
-
import { useTrilogyContext } from '../../context';
|
|
9
|
-
import { Icon } from '../../components/icon';
|
|
10
11
|
/**
|
|
11
12
|
* Button component
|
|
12
13
|
* @param loading {boolean} Loading button
|
|
@@ -20,7 +21,7 @@ import { Icon } from '../../components/icon';
|
|
|
20
21
|
* @param iconName {IconName} If Icon, Button + Icon && Button IconName
|
|
21
22
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
22
23
|
* @param markup {ButtonMarkup} HTML element : button|input|a (ONLY FOR WEB)
|
|
23
|
-
* @param className {string}
|
|
24
|
+
* @param className {string} Additional css classes (ONLY FOR WEB)
|
|
24
25
|
* @param id {string} Custom id for button (ONLY FOR WEB)
|
|
25
26
|
* @param to {string} Link
|
|
26
27
|
* @param href {string} Href
|
|
@@ -29,14 +30,13 @@ import { Icon } from '../../components/icon';
|
|
|
29
30
|
* @param styled {boolean} Component Wearing Styles - Hashed Trilogy Css
|
|
30
31
|
* @param type {ButtonType} button type (button|reset|submit)
|
|
31
32
|
*/
|
|
32
|
-
var Button = function (_a) {
|
|
33
|
-
var markup = _a.markup, loading = _a.loading, variant = _a.variant, href = _a.href, id = _a.id, fullwidth = _a.fullwidth, children = _a.children, className = _a.className, to = _a.to, accessibilityLabel = _a.accessibilityLabel, onClick = _a.onClick, name = _a.name, routerLink = _a.routerLink, type = _a.type, iconName = _a.iconName, others = __rest(_a, ["markup", "loading", "variant", "href", "id", "fullwidth", "children", "className", "to", "accessibilityLabel", "onClick", "name", "routerLink", "type", "iconName"]);
|
|
34
|
-
var isDisabled =
|
|
33
|
+
var Button = React.forwardRef(function (_a, ref) {
|
|
34
|
+
var markup = _a.markup, loading = _a.loading, variant = _a.variant, href = _a.href, id = _a.id, fullwidth = _a.fullwidth, children = _a.children, className = _a.className, to = _a.to, accessibilityLabel = _a.accessibilityLabel, onClick = _a.onClick, name = _a.name, routerLink = _a.routerLink, type = _a.type, iconName = _a.iconName, disabled = _a.disabled, others = __rest(_a, ["markup", "loading", "variant", "href", "id", "fullwidth", "children", "className", "to", "accessibilityLabel", "onClick", "name", "routerLink", "type", "iconName", "disabled"]);
|
|
35
|
+
var isDisabled = disabled || false;
|
|
35
36
|
var styled = useTrilogyContext().styled;
|
|
36
37
|
/** Check if specified markup is valid */
|
|
37
38
|
var isCorrectMarkup = function (stringMarkup) {
|
|
38
|
-
if (stringMarkup in ButtonMarkup ||
|
|
39
|
-
Object.values(ButtonMarkup).includes(stringMarkup))
|
|
39
|
+
if (stringMarkup in ButtonMarkup || Object.values(ButtonMarkup).includes(stringMarkup))
|
|
40
40
|
return true;
|
|
41
41
|
};
|
|
42
42
|
var getClassNames = function (loading, variant, fullwidth, className) {
|
|
@@ -44,17 +44,17 @@ var Button = function (_a) {
|
|
|
44
44
|
};
|
|
45
45
|
var classes = hashClass(styled, getClassNames(loading, variant, fullwidth, className));
|
|
46
46
|
var Tag = markup && isCorrectMarkup(markup) ? markup : 'button';
|
|
47
|
-
if (Tag === 'button' &&
|
|
48
|
-
return (React.createElement("button", __assign({ id: id, "aria-label": accessibilityLabel, className: classes, disabled: isDisabled, name: name, onClick: function (e) {
|
|
47
|
+
if (Tag === 'button' && !href && !to) {
|
|
48
|
+
return (React.createElement("button", __assign({ ref: ref, id: id, "aria-label": accessibilityLabel, className: classes, disabled: isDisabled, name: name, onClick: function (e) {
|
|
49
49
|
// eslint-disable-next-line no-unused-expressions
|
|
50
50
|
!isDisabled && (onClick === null || onClick === void 0 ? void 0 : onClick(e));
|
|
51
51
|
e.stopPropagation();
|
|
52
52
|
}, type: type !== null && type !== void 0 ? type : 'button' }, others),
|
|
53
|
-
iconName &&
|
|
53
|
+
iconName && React.createElement(Icon, { className: !children ? 'is-marginless' : '', name: iconName }),
|
|
54
54
|
children));
|
|
55
55
|
}
|
|
56
56
|
if (Tag === 'input') {
|
|
57
|
-
return (React.createElement("input", __assign({ id: id, className: classes, "aria-label": accessibilityLabel, name: name, onClick: function (e) {
|
|
57
|
+
return (React.createElement("input", __assign({ ref: ref, id: id, className: classes, "aria-label": accessibilityLabel, name: name, onClick: function (e) {
|
|
58
58
|
// eslint-disable-next-line no-unused-expressions
|
|
59
59
|
!isDisabled && (onClick === null || onClick === void 0 ? void 0 : onClick(e));
|
|
60
60
|
e.stopPropagation();
|
|
@@ -62,17 +62,18 @@ var Button = function (_a) {
|
|
|
62
62
|
}
|
|
63
63
|
if (routerLink && to && !isDisabled) {
|
|
64
64
|
var RouterLink = (routerLink ? routerLink : 'a');
|
|
65
|
-
return (React.createElement(RouterLink, __assign({ "aria-label": accessibilityLabel, to: to, className: classes }, others),
|
|
66
|
-
iconName &&
|
|
65
|
+
return (React.createElement(RouterLink, __assign({ ref: ref, "aria-label": accessibilityLabel, to: to, className: classes }, others),
|
|
66
|
+
iconName && React.createElement(Icon, { className: !children ? 'is-marginless' : '', name: iconName }),
|
|
67
67
|
children));
|
|
68
68
|
}
|
|
69
|
-
return (React.createElement("a", __assign({ id: id, "aria-label": accessibilityLabel, className: classes, href: href, onClick: function (e) {
|
|
69
|
+
return (React.createElement("a", __assign({ ref: ref, id: id, "aria-label": accessibilityLabel, className: classes, href: href, onClick: function (e) {
|
|
70
70
|
// eslint-disable-next-line no-unused-expressions
|
|
71
71
|
!isDisabled && (onClick === null || onClick === void 0 ? void 0 : onClick(e));
|
|
72
72
|
e.stopPropagation();
|
|
73
|
-
} }, others),
|
|
74
|
-
iconName &&
|
|
73
|
+
} }, others, (disabled && { 'aria-disabled': true })),
|
|
74
|
+
iconName && React.createElement(Icon, { className: !children ? 'is-marginless' : '', name: iconName }),
|
|
75
75
|
children));
|
|
76
|
-
};
|
|
76
|
+
});
|
|
77
|
+
Button.displayName = ComponentName.Button;
|
|
77
78
|
export default Button;
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BQUMsQ0FBQztZQUNULGlEQUFpRDtZQUNqRCxDQUFDLFVBQVUsS0FBSSxPQUFPLGFBQVAsT0FBTyx1QkFBUCxPQUFPLENBQUcsQ0FBQyxDQUFDLENBQUEsQ0FBQTtZQUMzQixDQUFDLENBQUMsZUFBZSxFQUFFLENBQUE7UUFDckIsQ0FBQyxJQUNHLE1BQU0sRUFDTixDQUFDLFFBQVEsSUFBSSxFQUFFLGVBQWUsRUFBRSxJQUFJLEVBQUUsQ0FBQztRQUUxQyxRQUFRLElBQUksb0JBQUMsSUFBSSxJQUFDLFNBQVMsRUFBRSxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsZUFBZSxDQUFDLENBQUMsQ0FBQyxFQUFFLEVBQUUsSUFBSSxFQUFFLFFBQVEsR0FBSTtRQUNqRixRQUFRLENBQ1AsQ0FDTCxDQUFBO0FBQ0gsQ0FBQyxDQUNGLENBQUE7QUFFRCxNQUFNLENBQUMsV0FBVyxHQUFHLGFBQWEsQ0FBQyxNQUFNLENBQUE7QUFDekMsZUFBZSxNQUFNLENBQUEifQ==
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { ButtonProps } from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TouchableOpacity } from 'react-native';
|
|
3
|
+
import { ButtonProps } from './ButtonProps';
|
|
4
4
|
/**
|
|
5
5
|
* Button Native Component
|
|
6
6
|
* @param loading {boolean} Loading button
|
|
@@ -13,8 +13,5 @@ import { ButtonProps } from "./ButtonProps";
|
|
|
13
13
|
* @param accessibilityLabel {string}
|
|
14
14
|
* @param iconName {IconName} If Icon, Button + Icon && Button IconName
|
|
15
15
|
*/
|
|
16
|
-
declare const Button:
|
|
17
|
-
({ children, variant, onClick, disabled, loading, fullwidth, testId, accessibilityLabel, iconName, ...others }: ButtonProps): JSX.Element;
|
|
18
|
-
displayName: ComponentName;
|
|
19
|
-
};
|
|
16
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<TouchableOpacity>>;
|
|
20
17
|
export default Button;
|