@trilogy-ds/react 0.0.9-beta-v4 → 0.0.9-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 +4 -5
- package/lib/components/autocomplete/AutoComplete.js +16 -15
- package/lib/components/autocomplete/AutoComplete.native.js +4 -4
- package/lib/components/autocomplete/AutoCompleteProps.d.ts +3 -0
- package/lib/components/autocomplete/AutoCompletePropsNativeDefaults.js +59 -4
- package/lib/components/autocomplete/AutoCompletePropsWebDefaults.js +59 -4
- 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 +269 -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 +12 -10
- 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 +19 -4
- package/lib/components/select/Select.js +46 -9
- 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 +23 -5
- package/lib/components/select/SelectPropsDefaults.js +41 -8
- 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 +46 -30
- 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 +67 -121
- 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
|
@@ -2,6 +2,7 @@ import { AlignableProps, StatusProps, TrilogyColor, TrilogyColorValues } from '.
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ProgressRadialItemProps } from './item/ProgressRadialItemProps';
|
|
4
4
|
import { CommonProps } from '../../../objects/facets/CommonProps';
|
|
5
|
+
import { View } from 'react-native';
|
|
5
6
|
/**
|
|
6
7
|
* Progress Radial Interface
|
|
7
8
|
*/
|
|
@@ -18,3 +19,5 @@ export interface ProgressRadialProps extends StatusProps, AlignableProps, Common
|
|
|
18
19
|
skeleton?: boolean;
|
|
19
20
|
small?: boolean;
|
|
20
21
|
}
|
|
22
|
+
export type ProgressRadialRef = HTMLDivElement;
|
|
23
|
+
export type ProgressRadialNativeRef = View;
|
|
@@ -49,7 +49,9 @@ export default {
|
|
|
49
49
|
"MAIN",
|
|
50
50
|
"MAIN_FADE",
|
|
51
51
|
"ACCENT",
|
|
52
|
+
"ACCENT_FADE",
|
|
52
53
|
"FONT",
|
|
54
|
+
"FONT_PLACEHOLDER",
|
|
53
55
|
"SUCCESS",
|
|
54
56
|
"SUCCESS_FADE",
|
|
55
57
|
"INFO",
|
|
@@ -62,9 +64,12 @@ export default {
|
|
|
62
64
|
"DISABLED_FADE",
|
|
63
65
|
"NEUTRAL",
|
|
64
66
|
"NEUTRAL_FADE",
|
|
67
|
+
"STROKE",
|
|
65
68
|
"WHITE",
|
|
66
69
|
"MAIN_FADE",
|
|
70
|
+
"ACCENT_FADE",
|
|
67
71
|
"FONT",
|
|
72
|
+
"FONT_PLACEHOLDER",
|
|
68
73
|
"SUCCESS_FADE",
|
|
69
74
|
"INFO_FADE",
|
|
70
75
|
"WARNING_FADE",
|
|
@@ -72,7 +77,8 @@ export default {
|
|
|
72
77
|
"DISABLED",
|
|
73
78
|
"DISABLED_FADE",
|
|
74
79
|
"NEUTRAL",
|
|
75
|
-
"NEUTRAL_FADE"
|
|
80
|
+
"NEUTRAL_FADE",
|
|
81
|
+
"STROKE"
|
|
76
82
|
]
|
|
77
83
|
},
|
|
78
84
|
"secondValue": {
|
|
@@ -96,7 +102,9 @@ export default {
|
|
|
96
102
|
"MAIN",
|
|
97
103
|
"MAIN_FADE",
|
|
98
104
|
"ACCENT",
|
|
105
|
+
"ACCENT_FADE",
|
|
99
106
|
"FONT",
|
|
107
|
+
"FONT_PLACEHOLDER",
|
|
100
108
|
"SUCCESS",
|
|
101
109
|
"SUCCESS_FADE",
|
|
102
110
|
"INFO",
|
|
@@ -109,9 +117,12 @@ export default {
|
|
|
109
117
|
"DISABLED_FADE",
|
|
110
118
|
"NEUTRAL",
|
|
111
119
|
"NEUTRAL_FADE",
|
|
120
|
+
"STROKE",
|
|
112
121
|
"WHITE",
|
|
113
122
|
"MAIN_FADE",
|
|
123
|
+
"ACCENT_FADE",
|
|
114
124
|
"FONT",
|
|
125
|
+
"FONT_PLACEHOLDER",
|
|
115
126
|
"SUCCESS_FADE",
|
|
116
127
|
"INFO_FADE",
|
|
117
128
|
"WARNING_FADE",
|
|
@@ -119,7 +130,8 @@ export default {
|
|
|
119
130
|
"DISABLED",
|
|
120
131
|
"DISABLED_FADE",
|
|
121
132
|
"NEUTRAL",
|
|
122
|
-
"NEUTRAL_FADE"
|
|
133
|
+
"NEUTRAL_FADE",
|
|
134
|
+
"STROKE"
|
|
123
135
|
]
|
|
124
136
|
},
|
|
125
137
|
"description": {
|
|
@@ -196,9 +208,11 @@ export default {
|
|
|
196
208
|
"ALIGNED_CENTER",
|
|
197
209
|
"ALIGNED_START",
|
|
198
210
|
"ALIGNED_END",
|
|
211
|
+
"ALIGNED_STRETCH",
|
|
199
212
|
"ALIGNED_CENTER",
|
|
200
213
|
"ALIGNED_START",
|
|
201
|
-
"ALIGNED_END"
|
|
214
|
+
"ALIGNED_END",
|
|
215
|
+
"ALIGNED_STRETCH"
|
|
202
216
|
]
|
|
203
217
|
},
|
|
204
218
|
"verticalAlign": {
|
|
@@ -208,9 +222,11 @@ export default {
|
|
|
208
222
|
"ALIGNED_CENTER",
|
|
209
223
|
"ALIGNED_START",
|
|
210
224
|
"ALIGNED_END",
|
|
225
|
+
"ALIGNED_STRETCH",
|
|
211
226
|
"ALIGNED_CENTER",
|
|
212
227
|
"ALIGNED_START",
|
|
213
|
-
"ALIGNED_END"
|
|
228
|
+
"ALIGNED_END",
|
|
229
|
+
"ALIGNED_STRETCH"
|
|
214
230
|
]
|
|
215
231
|
},
|
|
216
232
|
"className": {
|
|
@@ -25,7 +25,9 @@ export default {
|
|
|
25
25
|
"MAIN",
|
|
26
26
|
"MAIN_FADE",
|
|
27
27
|
"ACCENT",
|
|
28
|
+
"ACCENT_FADE",
|
|
28
29
|
"FONT",
|
|
30
|
+
"FONT_PLACEHOLDER",
|
|
29
31
|
"SUCCESS",
|
|
30
32
|
"SUCCESS_FADE",
|
|
31
33
|
"INFO",
|
|
@@ -38,6 +40,7 @@ export default {
|
|
|
38
40
|
"DISABLED_FADE",
|
|
39
41
|
"NEUTRAL",
|
|
40
42
|
"NEUTRAL_FADE",
|
|
43
|
+
"STROKE",
|
|
41
44
|
"secondary",
|
|
42
45
|
"empty",
|
|
43
46
|
"tertiary"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import { RadioProps } from '../../components/radio/RadioProps';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Radio
|
|
5
5
|
* @param checked {boolean} Checked radio
|
|
6
6
|
* @param disabled {boolean} Disabled
|
|
7
7
|
* @param readOnly {boolean} readonly radio
|
|
@@ -9,9 +9,10 @@ import { RadioProps } from './RadioProps';
|
|
|
9
9
|
* @param label {string} Label for radio
|
|
10
10
|
* @param onChange {ChangeEvent}
|
|
11
11
|
* @param name {string} Name for radio
|
|
12
|
-
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
13
12
|
* @param value {string} Value for radio
|
|
14
|
-
*
|
|
13
|
+
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
14
|
+
* @param className {string} Additional css classes (ONLY FOR WEB)
|
|
15
|
+
* @param required {boolean} Required radio
|
|
15
16
|
*/
|
|
16
|
-
declare const Radio:
|
|
17
|
+
declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
18
|
export default Radio;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { __assign,
|
|
2
|
-
import React, { useEffect, useState } from 'react';
|
|
3
|
-
import shortid from 'shortid';
|
|
4
|
-
import clsx from 'clsx';
|
|
5
|
-
import { hashClass } from '../../helpers';
|
|
1
|
+
import { __assign, __rest } from "tslib";
|
|
6
2
|
import { useTrilogyContext } from '../../context';
|
|
3
|
+
import { hashClass } from '../../helpers/hashClassesHelpers';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { ComponentName } from '../enumsComponentsName';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Radio
|
|
9
9
|
* @param checked {boolean} Checked radio
|
|
10
10
|
* @param disabled {boolean} Disabled
|
|
11
11
|
* @param readOnly {boolean} readonly radio
|
|
@@ -13,22 +13,27 @@ import { useTrilogyContext } from '../../context';
|
|
|
13
13
|
* @param label {string} Label for radio
|
|
14
14
|
* @param onChange {ChangeEvent}
|
|
15
15
|
* @param name {string} Name for radio
|
|
16
|
-
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
17
16
|
* @param value {string} Value for radio
|
|
18
|
-
*
|
|
17
|
+
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
18
|
+
* @param className {string} Additional css classes (ONLY FOR WEB)
|
|
19
|
+
* @param required {boolean} Required radio
|
|
19
20
|
*/
|
|
20
|
-
var Radio = function (_a) {
|
|
21
|
-
var checked = _a.checked, className = _a.className, disabled = _a.disabled, readonly = _a.readonly, _b = _a.id, id = _b === void 0 ?
|
|
21
|
+
var Radio = React.forwardRef(function (_a, ref) {
|
|
22
|
+
var checked = _a.checked, className = _a.className, disabled = _a.disabled, readonly = _a.readonly, _b = _a.id, id = _b === void 0 ? React.useId() : _b, label = _a.label, onChange = _a.onChange, name = _a.name, value = _a.value, required = _a.required, others = __rest(_a, ["checked", "className", "disabled", "readonly", "id", "label", "onChange", "name", "value", "required"]);
|
|
22
23
|
var styled = useTrilogyContext().styled;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
return (React.createElement("div", { ref: ref, className: hashClass(styled, clsx('radio', className)) },
|
|
25
|
+
React.createElement("input", __assign({ type: 'radio', readOnly: readonly, id: id, disabled: disabled, name: name, value: value, checked: checked, required: required, onChange: function (e) {
|
|
26
|
+
if (onChange && !disabled && !readonly) {
|
|
27
|
+
onChange({
|
|
28
|
+
radioId: e.target.id,
|
|
29
|
+
radioValue: e.target.value,
|
|
30
|
+
radioName: e.target.name,
|
|
31
|
+
radioChecked: e.target.checked,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
} }, others)),
|
|
31
35
|
React.createElement("label", { htmlFor: id, className: hashClass(styled, clsx('radio-label')) }, label)));
|
|
32
|
-
};
|
|
36
|
+
});
|
|
37
|
+
Radio.displayName = ComponentName.Radio;
|
|
33
38
|
export default Radio;
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmFkaW8uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9jb21wb25lbnRzL3JhZGlvL1JhZGlvLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sV0FBVyxDQUFBO0FBQzdDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQTtBQUN4RCxPQUFPLElBQUksTUFBTSxNQUFNLENBQUE7QUFDdkIsT0FBTyxLQUFLLE1BQU0sT0FBTyxDQUFBO0FBQ3pCLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQTtBQUV0RDs7Ozs7Ozs7Ozs7OztHQWFHO0FBQ0gsSUFBTSxLQUFLLEdBQUcsS0FBSyxDQUFDLFVBQVU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QUFDLElBQUk7d0JBQ3hCLFlBQVksRUFBRSxDQUFDLENBQUMsTUFBTSxDQUFDLE9BQU87cUJBQy9CLENBQUMsQ0FBQTtpQkFDSDtZQUNILENBQUMsSUFDRyxNQUFNLEVBQ1Y7UUFDRiwrQkFBTyxPQUFPLEVBQUUsRUFBRSxFQUFFLFNBQVMsRUFBRSxTQUFTLENBQUMsTUFBTSxFQUFFLElBQUksQ0FBQyxhQUFhLENBQUMsQ0FBQyxJQUNsRSxLQUFLLENBQ0EsQ0FDSixDQUNQLENBQUE7QUFDSCxDQUFDLENBQUMsQ0FBQTtBQUVGLEtBQUssQ0FBQyxXQUFXLEdBQUcsYUFBYSxDQUFDLEtBQUssQ0FBQTtBQUN2QyxlQUFlLEtBQUssQ0FBQSJ9
|
|
@@ -1,26 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { RadioProps } from '../../components/radio/RadioProps';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TouchableOpacity } from 'react-native';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* @param checked {boolean} Checked
|
|
5
|
+
* radio Component
|
|
6
|
+
* @param checked {boolean} Checked radio
|
|
7
7
|
* @param disabled {boolean} Disabled
|
|
8
|
-
* @param readOnly {boolean} readonly
|
|
8
|
+
* @param readOnly {boolean} readonly radio
|
|
9
9
|
* @param id {string} Id for button, by default id is generate
|
|
10
|
-
* @param label {string
|
|
11
|
-
* @param onClick {ClickEvent}
|
|
10
|
+
* @param label {string} Label for radio
|
|
12
11
|
* @param onChange {ChangeEvent}
|
|
13
12
|
* @param name {string} Name for radio
|
|
14
13
|
* @param value {string} Value for radio
|
|
15
|
-
* @param iconTile {IconName} Icon for Radio
|
|
16
|
-
* @param narrow {boolean} Apply narrow
|
|
17
|
-
* @param children {React.ReactNode} If Children is provided, don't use label / Icon / Description
|
|
18
|
-
* @param tile {boolean} Radio Tile
|
|
19
|
-
* @param description {string} Description for Radio tile
|
|
20
|
-
* @param horizontalTile {boolean} display horizontal Radio tile
|
|
21
14
|
*/
|
|
22
|
-
declare const Radio:
|
|
23
|
-
({ id, checked, name, onChange, disabled, readonly, label, value, }: RadioProps): JSX.Element;
|
|
24
|
-
displayName: ComponentName;
|
|
25
|
-
};
|
|
15
|
+
declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<TouchableOpacity>>;
|
|
26
16
|
export default Radio;
|
|
@@ -1,185 +1,65 @@
|
|
|
1
|
-
import { __read } from "tslib";
|
|
2
|
-
import React, { useEffect, useState } from 'react';
|
|
3
|
-
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
4
|
-
import shortid from 'shortid';
|
|
5
|
-
import { getColorStyle, TrilogyColor, TypographyAlign, TypographyBold } from '../../objects';
|
|
6
|
-
import { Icon, IconSize } from '../../components/icon';
|
|
7
|
-
import { Text, TextLevels } from '../../components/text';
|
|
8
|
-
import { View } from '../../components/view';
|
|
9
1
|
import { ComponentName } from '../../components/enumsComponentsName';
|
|
2
|
+
import { Text } from '../../components/text';
|
|
3
|
+
import { getColorStyle, TrilogyColor } from '../../objects';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { StyleSheet, TouchableOpacity, View } from 'react-native';
|
|
10
6
|
/**
|
|
11
|
-
*
|
|
12
|
-
* @param checked {boolean} Checked
|
|
7
|
+
* radio Component
|
|
8
|
+
* @param checked {boolean} Checked radio
|
|
13
9
|
* @param disabled {boolean} Disabled
|
|
14
|
-
* @param readOnly {boolean} readonly
|
|
10
|
+
* @param readOnly {boolean} readonly radio
|
|
15
11
|
* @param id {string} Id for button, by default id is generate
|
|
16
|
-
* @param label {string
|
|
17
|
-
* @param onClick {ClickEvent}
|
|
12
|
+
* @param label {string} Label for radio
|
|
18
13
|
* @param onChange {ChangeEvent}
|
|
19
14
|
* @param name {string} Name for radio
|
|
20
15
|
* @param value {string} Value for radio
|
|
21
|
-
* @param iconTile {IconName} Icon for Radio
|
|
22
|
-
* @param narrow {boolean} Apply narrow
|
|
23
|
-
* @param children {React.ReactNode} If Children is provided, don't use label / Icon / Description
|
|
24
|
-
* @param tile {boolean} Radio Tile
|
|
25
|
-
* @param description {string} Description for Radio tile
|
|
26
|
-
* @param horizontalTile {boolean} display horizontal Radio tile
|
|
27
16
|
*/
|
|
28
|
-
var Radio = function (_a) {
|
|
29
|
-
var _b = _a.id, id = _b === void 0 ?
|
|
30
|
-
var _c = __read(useState(checked || false), 2), _checked = _c[0], setChecked = _c[1];
|
|
31
|
-
var horizontalTile = false;
|
|
32
|
-
// eslint-disable-next-line no-empty-pattern
|
|
33
|
-
var onClick = function (_a) { return null; };
|
|
34
|
-
var tile = false;
|
|
35
|
-
var description = 'de';
|
|
36
|
-
var iconTile = '';
|
|
37
|
-
var narrow = false;
|
|
38
|
-
var children = null;
|
|
39
|
-
var getRadioInsideColor = function (isDisabled, isMain) {
|
|
40
|
-
if (isDisabled)
|
|
41
|
-
return getColorStyle(TrilogyColor.DISABLED_FADE);
|
|
42
|
-
if (isMain)
|
|
43
|
-
return getColorStyle(TrilogyColor.MAIN);
|
|
44
|
-
return getColorStyle(TrilogyColor.NEUTRAL);
|
|
45
|
-
};
|
|
46
|
-
useEffect(function () {
|
|
47
|
-
setChecked(checked || false);
|
|
48
|
-
}, [checked]);
|
|
17
|
+
var Radio = React.forwardRef(function (_a, ref) {
|
|
18
|
+
var _b = _a.id, id = _b === void 0 ? React.useId() : _b, checked = _a.checked, name = _a.name, onChange = _a.onChange, disabled = _a.disabled, readonly = _a.readonly, label = _a.label, value = _a.value;
|
|
49
19
|
var styles = StyleSheet.create({
|
|
50
20
|
container: {
|
|
51
21
|
flexDirection: 'row',
|
|
52
|
-
|
|
53
|
-
justifyContent: 'flex-start',
|
|
22
|
+
alignItems: 'center',
|
|
54
23
|
},
|
|
55
24
|
radio: {
|
|
56
|
-
flexDirection: 'row',
|
|
57
25
|
alignItems: 'center',
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
26
|
+
justifyContent: 'center',
|
|
27
|
+
borderColor: getColorStyle(disabled ? TrilogyColor.DISABLED : checked ? TrilogyColor.MAIN : TrilogyColor.STROKE),
|
|
28
|
+
borderWidth: 1,
|
|
29
|
+
width: 18,
|
|
30
|
+
height: 18,
|
|
62
31
|
borderRadius: 10,
|
|
63
32
|
marginRight: 10,
|
|
64
|
-
marginLeft: 0,
|
|
65
33
|
},
|
|
66
34
|
icon: {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
width: 14,
|
|
71
|
-
height: 14,
|
|
35
|
+
borderRadius: 12,
|
|
36
|
+
width: 12,
|
|
37
|
+
height: 12,
|
|
72
38
|
backgroundColor: getColorStyle(TrilogyColor.MAIN),
|
|
73
39
|
},
|
|
74
40
|
label: {
|
|
41
|
+
paddingTop: 2,
|
|
75
42
|
color: (disabled && getColorStyle(TrilogyColor.DISABLED)) ||
|
|
76
|
-
(
|
|
43
|
+
(checked && getColorStyle(TrilogyColor.MAIN)) ||
|
|
77
44
|
getColorStyle(TrilogyColor.MAIN),
|
|
78
45
|
},
|
|
79
|
-
tile: {
|
|
80
|
-
padding: _checked ? 3 : 4,
|
|
81
|
-
paddingBottom: _checked ? 7 : 8,
|
|
82
|
-
maxWidth: 140,
|
|
83
|
-
width: 126,
|
|
84
|
-
borderWidth: (_checked && 2) || 1,
|
|
85
|
-
borderColor: getRadioInsideColor(!!disabled, _checked),
|
|
86
|
-
borderRadius: 6,
|
|
87
|
-
textAlign: 'center',
|
|
88
|
-
alignItems: 'center',
|
|
89
|
-
backgroundColor: disabled ? getColorStyle(TrilogyColor.DISABLED_FADE) : 'transparent',
|
|
90
|
-
},
|
|
91
|
-
tileDescription: {
|
|
92
|
-
color: getRadioInsideColor(!!disabled, true),
|
|
93
|
-
alignSelf: horizontalTile ? 'flex-start' : 'center',
|
|
94
|
-
},
|
|
95
|
-
horizontalTile: {
|
|
96
|
-
paddingVertical: _checked ? 15 : 16,
|
|
97
|
-
paddingHorizontal: _checked ? 5 : 6,
|
|
98
|
-
width: narrow ? 'auto' : '100%',
|
|
99
|
-
height: 'auto',
|
|
100
|
-
borderWidth: (_checked && 2) || 1,
|
|
101
|
-
borderColor: getRadioInsideColor(!!disabled, _checked),
|
|
102
|
-
borderRadius: 6,
|
|
103
|
-
backgroundColor: disabled ? getColorStyle(TrilogyColor.DISABLED_FADE) : 'transparent',
|
|
104
|
-
},
|
|
105
46
|
});
|
|
106
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
107
47
|
var handleClick = function (value) {
|
|
108
48
|
if (!readonly) {
|
|
109
|
-
setChecked(value);
|
|
110
|
-
if (onClick) {
|
|
111
|
-
onClick({
|
|
112
|
-
radioId: id,
|
|
113
|
-
radioValue: value,
|
|
114
|
-
radioName: name || '',
|
|
115
|
-
radioChecked: !_checked,
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
49
|
if (onChange) {
|
|
119
50
|
onChange({
|
|
120
51
|
radioId: id,
|
|
121
52
|
radioValue: value,
|
|
122
53
|
radioName: name || '',
|
|
123
|
-
radioChecked:
|
|
54
|
+
radioChecked: true,
|
|
124
55
|
});
|
|
125
56
|
}
|
|
126
57
|
}
|
|
127
58
|
};
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
React.createElement(View, { style: { flexDirection: 'row' } },
|
|
131
|
-
children ? (React.createElement(View, { style: {
|
|
132
|
-
flexDirection: 'row',
|
|
133
|
-
width: '88%',
|
|
134
|
-
height: 'auto',
|
|
135
|
-
justifyContent: 'flex-start',
|
|
136
|
-
alignItems: 'center',
|
|
137
|
-
marginLeft: 10,
|
|
138
|
-
} }, children)) : (React.createElement(React.Fragment, null,
|
|
139
|
-
React.createElement(View, { style: {
|
|
140
|
-
width: iconTile ? '12%' : '6%',
|
|
141
|
-
height: 'auto',
|
|
142
|
-
justifyContent: 'center',
|
|
143
|
-
alignItems: 'center',
|
|
144
|
-
marginLeft: 10,
|
|
145
|
-
} }, iconTile && (React.createElement(View, null,
|
|
146
|
-
React.createElement(Icon, { size: IconSize.SMALL, name: iconTile, color: disabled ? TrilogyColor.DISABLED : TrilogyColor.MAIN })))),
|
|
147
|
-
React.createElement(View, { style: {
|
|
148
|
-
width: iconTile ? '76%' : '82%',
|
|
149
|
-
flexDirection: 'row',
|
|
150
|
-
alignSelf: 'stretch',
|
|
151
|
-
flexWrap: 'wrap',
|
|
152
|
-
height: 'auto',
|
|
153
|
-
} },
|
|
154
|
-
React.createElement(View, null,
|
|
155
|
-
label && typeof label.valueOf() === 'string' && (React.createElement(Text, { style: styles.label, level: TextLevels.ONE, typo: TypographyBold.TEXT_WEIGHT_SEMIBOLD }, String(label))),
|
|
156
|
-
description && typeof description.valueOf() === 'string' ? (React.createElement(Text, { level: TextLevels.TWO, style: styles.tileDescription }, String(description))) : (description))))),
|
|
157
|
-
React.createElement(View, { style: {
|
|
158
|
-
width: '10%',
|
|
159
|
-
alignItems: 'flex-end',
|
|
160
|
-
justifyContent: 'center',
|
|
161
|
-
paddingRight: 10,
|
|
162
|
-
} },
|
|
163
|
-
React.createElement(TouchableOpacity, { style: styles.radio, disabled: disabled, testID: id, onPressIn: function () { return handleClick(value || false); } }, _checked && !disabled && React.createElement(View, { style: styles.icon }))))));
|
|
164
|
-
}
|
|
165
|
-
if (tile) {
|
|
166
|
-
return (React.createElement(TouchableOpacity, { disabled: disabled, style: styles.tile, onPress: function () { return handleClick(value || false); } },
|
|
167
|
-
React.createElement(TouchableOpacity, { style: [{ alignSelf: 'flex-end', marginTop: 10 }, styles.radio], disabled: disabled, testID: id, onPressIn: function () { return handleClick(value || false); } }, _checked && !disabled && React.createElement(View, { style: styles.icon })),
|
|
168
|
-
React.createElement(View, { style: { width: '70%', alignItems: 'center' } },
|
|
169
|
-
iconTile && (React.createElement(View, { style: {
|
|
170
|
-
flexDirection: 'row',
|
|
171
|
-
alignItems: 'center',
|
|
172
|
-
justifyContent: 'center',
|
|
173
|
-
marginBottom: 5,
|
|
174
|
-
} },
|
|
175
|
-
React.createElement(Icon, { size: IconSize.MEDIUM, name: iconTile, color: disabled ? TrilogyColor.DISABLED : TrilogyColor.MAIN }))),
|
|
176
|
-
label && typeof label.valueOf() === 'string' && (React.createElement(Text, { level: TextLevels.TWO, typo: [TypographyBold.TEXT_WEIGHT_SEMIBOLD, TypographyAlign.TEXT_CENTERED], style: styles.label }, String(label))),
|
|
177
|
-
description && typeof description.valueOf() === 'string' ? (React.createElement(Text, { level: TextLevels.THREE, typo: [TypographyBold.TEXT_WEIGHT_SEMIBOLD, TypographyAlign.TEXT_CENTERED] }, String(description))) : (description))));
|
|
178
|
-
}
|
|
179
|
-
return (React.createElement(TouchableOpacity, { disabled: disabled, style: styles.container, onPress: function () { return handleClick(value || false); } },
|
|
180
|
-
React.createElement(TouchableOpacity, { style: styles.radio, disabled: disabled, testID: id, onPress: function () { return handleClick(value || false); } }, _checked && React.createElement(View, { style: styles.icon })),
|
|
59
|
+
return (React.createElement(TouchableOpacity, { ref: ref, disabled: disabled, style: styles.container, onPress: function () { return handleClick(value !== null && value !== void 0 ? value : ''); } },
|
|
60
|
+
React.createElement(View, { style: styles.radio, testID: id }, checked && React.createElement(View, { style: styles.icon })),
|
|
181
61
|
label && typeof label.valueOf() === 'string' ? React.createElement(Text, { style: styles.label }, String(label)) : label));
|
|
182
|
-
};
|
|
62
|
+
});
|
|
183
63
|
Radio.displayName = ComponentName.Radio;
|
|
184
64
|
export default Radio;
|
|
185
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
65
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmFkaW8ubmF0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vY29tcG9uZW50cy9yYWRpby9SYWRpby5uYXRpdmUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQTtB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UFBTCxLQUFLLGNBQUwsS0FBSyxHQUFJLEVBQUUsQ0FBQyxFQUF4QixDQUF3QjtRQUM5RyxvQkFBQyxJQUFJLElBQUMsS0FBSyxFQUFFLE1BQU0sQ0FBQyxLQUFLLEVBQUUsTUFBTSxFQUFFLEVBQUUsSUFDbEMsT0FBTyxJQUFJLG9CQUFDLElBQUksSUFBQyxLQUFLLEVBQUUsTUFBTSxDQUFDLElBQUksR0FBSSxDQUNuQztRQUNOLEtBQUssSUFBSSxPQUFPLEtBQUssQ0FBQyxPQUFPLEVBQUUsS0FBSyxRQUFRLENBQUMsQ0FBQyxDQUFDLG9CQUFDLElBQUksSUFBQyxLQUFLLEVBQUUsTUFBTSxDQUFDLEtBQUssSUFBRyxNQUFNLENBQUMsS0FBSyxDQUFDLENBQVEsQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUN4RixDQUNwQixDQUFBO0FBQ0gsQ0FBQyxDQUFDLENBQUE7QUFFRixLQUFLLENBQUMsV0FBVyxHQUFHLGFBQWEsQ0FBQyxLQUFLLENBQUE7QUFFdkMsZUFBZSxLQUFLLENBQUEifQ==
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { TouchableOpacity } from 'react-native';
|
|
1
2
|
import { Accessibility } from '../../objects';
|
|
2
3
|
import { CommonProps } from '../../objects/facets/CommonProps';
|
|
3
|
-
type RadioChangeEventHandler = (event: {
|
|
4
|
+
export type RadioChangeEventHandler = (event: {
|
|
4
5
|
radioValue: string;
|
|
5
6
|
radioName: string;
|
|
6
7
|
radioChecked: boolean;
|
|
@@ -17,5 +18,7 @@ export interface RadioProps extends Accessibility, CommonProps {
|
|
|
17
18
|
onChange?: RadioChangeEventHandler;
|
|
18
19
|
name?: string;
|
|
19
20
|
value?: string;
|
|
21
|
+
required?: boolean;
|
|
20
22
|
}
|
|
21
|
-
export
|
|
23
|
+
export type RadioRef = HTMLDivElement;
|
|
24
|
+
export type RadioNativeRef = TouchableOpacity;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { RadioListWebProps } from './RadioListProps';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* @param children {ReactNode}
|
|
4
|
+
* RadioList Component
|
|
5
|
+
* @param children {ReactNode} CheckboxList children
|
|
6
6
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
7
|
-
* @param className {string}
|
|
7
|
+
* @param className {string} Additional CSS Classes
|
|
8
8
|
* @param align {boolean} align radios
|
|
9
|
-
* @param verticalDesktop {boolean}
|
|
10
|
-
* @param horizontalMobile {boolean}
|
|
9
|
+
* @param verticalDesktop {boolean} Vertical radios
|
|
10
|
+
* @param horizontalMobile {boolean} Expect mobile screen
|
|
11
|
+
* @param accessibilityLabelledBy {string} aria-labelledby attribute
|
|
11
12
|
*/
|
|
12
|
-
declare const RadioList:
|
|
13
|
+
declare const RadioList: React.ForwardRefExoticComponent<RadioListWebProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
14
|
export default RadioList;
|
|
@@ -1,23 +1,36 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import
|
|
3
|
-
import { is } from '../../../services';
|
|
4
|
-
import clsx from 'clsx';
|
|
5
|
-
import { hashClass } from '../../../helpers';
|
|
2
|
+
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
6
3
|
import { useTrilogyContext } from '../../../context';
|
|
4
|
+
import { hashClass } from '../../../helpers';
|
|
7
5
|
import { getJustifiedClassName } from '../../../objects';
|
|
6
|
+
import { is } from '../../../services';
|
|
7
|
+
import { isRequiredChild } from '../../../helpers/require';
|
|
8
|
+
import clsx from 'clsx';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import { Text, TextMarkup } from '../../../components/text';
|
|
11
|
+
import { TypographyColor } from '../../../objects/Typography';
|
|
8
12
|
/**
|
|
9
|
-
*
|
|
10
|
-
* @param children {ReactNode}
|
|
13
|
+
* RadioList Component
|
|
14
|
+
* @param children {ReactNode} CheckboxList children
|
|
11
15
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
12
|
-
* @param className {string}
|
|
16
|
+
* @param className {string} Additional CSS Classes
|
|
13
17
|
* @param align {boolean} align radios
|
|
14
|
-
* @param verticalDesktop {boolean}
|
|
15
|
-
* @param horizontalMobile {boolean}
|
|
18
|
+
* @param verticalDesktop {boolean} Vertical radios
|
|
19
|
+
* @param horizontalMobile {boolean} Expect mobile screen
|
|
20
|
+
* @param accessibilityLabelledBy {string} aria-labelledby attribute
|
|
16
21
|
*/
|
|
17
|
-
var RadioList = function (_a) {
|
|
18
|
-
var className = _a.className, id = _a.id, align = _a.align, horizontalMobile = _a.horizontalMobile, verticalDesktop = _a.verticalDesktop, others = __rest(_a, ["className", "id", "align", "horizontalMobile", "verticalDesktop"]);
|
|
22
|
+
var RadioList = React.forwardRef(function (_a, ref) {
|
|
23
|
+
var className = _a.className, id = _a.id, align = _a.align, horizontalMobile = _a.horizontalMobile, verticalDesktop = _a.verticalDesktop, accessibilityLabelledBy = _a.accessibilityLabelledBy, children = _a.children, label = _a.label, others = __rest(_a, ["className", "id", "align", "horizontalMobile", "verticalDesktop", "accessibilityLabelledBy", "children", "label"]);
|
|
19
24
|
var styled = useTrilogyContext().styled;
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
var groupLabelClasses = hashClass(styled, 'group-label');
|
|
26
|
+
return (React.createElement(React.Fragment, null,
|
|
27
|
+
label && (React.createElement("p", { className: groupLabelClasses },
|
|
28
|
+
label,
|
|
29
|
+
isRequiredChild(children) && (React.createElement(Text, { markup: TextMarkup.SPAN, typo: TypographyColor.TEXT_ERROR },
|
|
30
|
+
' ',
|
|
31
|
+
"*")))),
|
|
32
|
+
React.createElement("div", __assign({ ref: ref, id: id, role: "radiogroup", "aria-labelledby": accessibilityLabelledBy, "aria-required": isRequiredChild(children) ? 'true' : undefined, className: hashClass(styled, clsx('radios', className, align && is(getJustifiedClassName(align)), horizontalMobile && is('horizontal-mobile'), verticalDesktop && is('vertical-desktop'))) }, others), children)));
|
|
33
|
+
});
|
|
34
|
+
RadioList.displayName = ComponentName.RadioList;
|
|
22
35
|
export default RadioList;
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmFkaW9MaXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vY29tcG9uZW50cy9yYWRpby9saXN0L1JhZGlvTGlzdC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQTtBQUNoRSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxXQUFXLENBQUE7QUFDN0MsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLFdBQVcsQ0FBQTtBQUNyQyxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxXQUFXLENBQUE7QUFDakQsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLFlBQVksQ0FBQTtBQUMvQixPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sbUJBQW1CLENBQUE7QUFDbkQsT0FBTyxJQUFJLE1BQU0sTUFBTSxDQUFBO0FBQ3ZCLE9BQU8sS0FBSyxLQUFLLE1BQU0sT0FBTyxDQUFBO0FBRTlCLE9BQU8sRUFBRSxJQUFJLEVBQUUsVUFBVSxFQUFFLE1BQU0sbUJBQW1CLENBQUE7QUFDcEQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHNCQUFzQixDQUFBO0FBRXREOzs7Ozs7Ozs7R0FTRztBQUNILElBQU0sU0FBUyxHQUFHLEtBQUssQ0FBQyxVQUFVLENBQ2hDLFVBQUMsRUFBZ0gsRUFBRSxHQUFHO0lBQW5ILElBQUEsU0FBUyxlQUFBLEVBQUUsRUFBRSxR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Q0FDMUMsQ0FDRixJQUNHLE1BQU0sR0FFVCxRQUFRLENBQ0wsQ0FDTCxDQUNKLENBQUE7QUFDSCxDQUFDLENBQ0YsQ0FBQTtBQUVELFNBQVMsQ0FBQyxXQUFXLEdBQUcsYUFBYSxDQUFDLFNBQVMsQ0FBQTtBQUMvQyxlQUFlLFNBQVMsQ0FBQSJ9
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import type { RadioListProps } from './RadioListProps';
|
|
3
|
-
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
4
3
|
/**
|
|
5
4
|
* RadioList Native Component
|
|
6
5
|
* @param children {ReactNode} RadioList children
|
|
7
6
|
* @param autolayout {boolean} Apply auto-layout rules
|
|
7
|
+
* @param label {string} RadioList label
|
|
8
8
|
*/
|
|
9
|
-
declare const RadioList:
|
|
10
|
-
({ children }: RadioListProps): JSX.Element;
|
|
11
|
-
displayName: ComponentName;
|
|
12
|
-
};
|
|
9
|
+
declare const RadioList: React.ForwardRefExoticComponent<RadioListProps & React.RefAttributes<import("react-native").View>>;
|
|
13
10
|
export default RadioList;
|