@trilogy-ds/react 4.20.1 → 4.20.3
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 +7 -6
- package/lib/components/accordion/Accordion.native.d.ts +3 -3
- package/lib/components/accordion/Accordion.native.js +6 -5
- package/lib/components/accordion/AccordionProps.d.ts +2 -2
- package/lib/components/accordion/index.d.ts +4 -4
- package/lib/components/accordion/index.js +5 -5
- package/lib/components/accordion/item/AccordionItem.d.ts +3 -3
- package/lib/components/accordion/item/AccordionItem.js +9 -8
- package/lib/components/accordion/item/AccordionItem.native.d.ts +4 -4
- package/lib/components/accordion/item/AccordionItem.native.js +14 -22
- package/lib/components/accordion/item/AccordionItemProps.d.ts +3 -3
- package/lib/components/accordion/item/body/AccordionBody.d.ts +4 -4
- package/lib/components/accordion/item/body/AccordionBody.js +8 -7
- package/lib/components/accordion/item/body/AccordionBody.native.d.ts +4 -4
- package/lib/components/accordion/item/body/AccordionBody.native.js +6 -5
- package/lib/components/accordion/item/body/AccordionBodyProps.d.ts +3 -3
- package/lib/components/accordion/item/body/index.d.ts +1 -1
- package/lib/components/accordion/item/body/index.js +2 -2
- package/lib/components/accordion/item/header/AccordionHeader.d.ts +4 -4
- package/lib/components/accordion/item/header/AccordionHeader.js +7 -6
- package/lib/components/accordion/item/header/AccordionHeader.native.d.ts +4 -4
- package/lib/components/accordion/item/header/AccordionHeader.native.js +7 -5
- package/lib/components/accordion/item/header/AccordionHeaderProps.d.ts +2 -2
- package/lib/components/accordion/item/header/index.d.ts +1 -1
- package/lib/components/accordion/item/header/index.js +2 -2
- package/lib/components/accordion/item/index.d.ts +1 -1
- package/lib/components/accordion/item/index.js +2 -2
- package/lib/components/alert/Alert.d.ts +4 -4
- package/lib/components/alert/Alert.js +22 -34
- package/lib/components/alert/Alert.native.d.ts +5 -5
- package/lib/components/alert/Alert.native.js +19 -40
- package/lib/components/alert/AlertProps.d.ts +8 -8
- package/lib/components/alert/AlertProps.js +1 -1
- package/lib/components/alert/ToasterDocs.d.ts +4 -4
- package/lib/components/alert/ToasterDocs.js +3 -3
- package/lib/components/alert/context/ToasterContext.d.ts +3 -3
- package/lib/components/alert/context/ToasterContext.js +3 -3
- package/lib/components/alert/context/ToasterContextProps.d.ts +3 -2
- package/lib/components/alert/context/index.d.ts +1 -1
- package/lib/components/alert/context/index.js +2 -2
- package/lib/components/alert/index.d.ts +3 -3
- package/lib/components/alert/index.js +4 -4
- package/lib/components/autocomplete/AutoComplete.d.ts +3 -3
- package/lib/components/autocomplete/AutoComplete.js +20 -21
- package/lib/components/autocomplete/AutoComplete.native.d.ts +3 -3
- package/lib/components/autocomplete/AutoComplete.native.js +9 -11
- package/lib/components/autocomplete/AutoCompleteProps.d.ts +4 -4
- package/lib/components/autocomplete/Autocomplete.helpers.d.ts +1 -1
- package/lib/components/autocomplete/index.d.ts +4 -4
- package/lib/components/autocomplete/index.js +5 -5
- package/lib/components/autocomplete/item/AutoCompleteIem.native.d.ts +1 -1
- package/lib/components/autocomplete/item/AutoCompleteIem.native.js +4 -4
- package/lib/components/autocomplete/item/AutoCompleteItem.d.ts +2 -2
- package/lib/components/autocomplete/item/AutoCompleteItem.js +9 -8
- package/lib/components/autocomplete/item/AutoCompleteItemProps.d.ts +2 -2
- package/lib/components/autocomplete/item/index.d.ts +1 -1
- package/lib/components/autocomplete/item/index.js +2 -2
- package/lib/components/autocomplete/menu/AutoCompleteMenu.d.ts +1 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.js +7 -6
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.d.ts +1 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js +4 -4
- package/lib/components/autocomplete/menu/AutoCompleteMenuProps.d.ts +2 -2
- package/lib/components/autocomplete/menu/index.d.ts +1 -1
- package/lib/components/autocomplete/menu/index.js +2 -2
- package/lib/components/autocomplete/utils/index.d.ts +1 -1
- package/lib/components/autocomplete/utils/index.js +2 -2
- package/lib/components/autolayout/AutoLayout.d.ts +3 -3
- package/lib/components/autolayout/AutoLayout.helpers.d.ts +3 -3
- package/lib/components/autolayout/AutoLayout.helpers.js +10 -9
- package/lib/components/autolayout/AutoLayout.js +5 -4
- package/lib/components/autolayout/AutoLayout.native.d.ts +3 -3
- package/lib/components/autolayout/AutoLayout.native.js +9 -12
- package/lib/components/autolayout/AutoLayoutProps.d.ts +2 -2
- package/lib/components/autolayout/AutoLayoutWrapper.d.ts +3 -3
- package/lib/components/autolayout/AutoLayoutWrapper.js +6 -5
- package/lib/components/badge/Badge.d.ts +4 -4
- package/lib/components/badge/Badge.js +10 -11
- package/lib/components/badge/Badge.native.d.ts +3 -3
- package/lib/components/badge/Badge.native.js +15 -22
- package/lib/components/badge/BadgeProps.d.ts +5 -3
- package/lib/components/badge/BadgeProps.js +1 -1
- package/lib/components/badge/index.d.ts +2 -2
- package/lib/components/badge/index.js +3 -3
- package/lib/components/box/Box.d.ts +4 -4
- package/lib/components/box/Box.js +9 -8
- package/lib/components/box/Box.native.d.ts +3 -3
- package/lib/components/box/Box.native.js +15 -21
- package/lib/components/box/BoxProps.d.ts +2 -2
- package/lib/components/box/content/BoxContent.d.ts +4 -4
- package/lib/components/box/content/BoxContent.js +9 -8
- package/lib/components/box/content/BoxContent.native.d.ts +3 -3
- package/lib/components/box/content/BoxContent.native.js +8 -7
- package/lib/components/box/content/BoxContentProps.d.ts +2 -2
- package/lib/components/box/content/index.d.ts +1 -1
- package/lib/components/box/content/index.js +2 -2
- package/lib/components/box/context/boxContext.d.ts +2 -2
- package/lib/components/box/context/boxContext.js +3 -3
- package/lib/components/box/footer/BoxFooter.d.ts +4 -4
- package/lib/components/box/footer/BoxFooter.js +8 -7
- package/lib/components/box/footer/BoxFooter.native.d.ts +4 -4
- package/lib/components/box/footer/BoxFooter.native.js +9 -8
- package/lib/components/box/footer/BoxFooterProps.d.ts +2 -2
- package/lib/components/box/footer/index.d.ts +1 -1
- package/lib/components/box/footer/index.js +2 -2
- package/lib/components/box/header/BoxHeader.d.ts +4 -4
- package/lib/components/box/header/BoxHeader.js +8 -7
- package/lib/components/box/header/BoxHeader.native.d.ts +4 -4
- package/lib/components/box/header/BoxHeader.native.js +8 -8
- package/lib/components/box/header/BoxHeaderProps.d.ts +2 -2
- package/lib/components/box/header/index.d.ts +1 -1
- package/lib/components/box/header/index.js +2 -2
- package/lib/components/box/index.d.ts +8 -8
- package/lib/components/box/index.js +9 -9
- package/lib/components/box/item/BoxItem.d.ts +4 -4
- package/lib/components/box/item/BoxItem.js +7 -6
- package/lib/components/box/item/BoxItem.native.d.ts +4 -4
- package/lib/components/box/item/BoxItem.native.js +6 -5
- package/lib/components/box/item/BoxItemProps.d.ts +3 -3
- package/lib/components/box/item/index.d.ts +2 -2
- package/lib/components/box/item/index.js +3 -3
- package/lib/components/box/table-container/BoxTableContainer.d.ts +4 -4
- package/lib/components/box/table-container/BoxTableContainer.js +7 -6
- package/lib/components/box/table-container/BoxTableContainer.native.d.ts +4 -4
- package/lib/components/box/table-container/BoxTableContainer.native.js +6 -5
- package/lib/components/box/table-container/BoxTableContainerProps.d.ts +4 -3
- package/lib/components/box/table-container/index.d.ts +1 -1
- package/lib/components/box/table-container/index.js +2 -2
- package/lib/components/breadcrumb/Breadcrumb.d.ts +4 -4
- package/lib/components/breadcrumb/Breadcrumb.js +8 -8
- package/lib/components/breadcrumb/Breadcrumb.native.d.ts +4 -4
- package/lib/components/breadcrumb/Breadcrumb.native.js +9 -10
- package/lib/components/breadcrumb/BreadcrumbProps.d.ts +2 -2
- package/lib/components/breadcrumb/index.d.ts +2 -2
- package/lib/components/breadcrumb/index.js +3 -3
- package/lib/components/breadcrumb/item/BreadcrumbItem.d.ts +3 -3
- package/lib/components/breadcrumb/item/BreadcrumbItem.js +7 -7
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.d.ts +3 -3
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +6 -6
- package/lib/components/breadcrumb/item/BreadcrumbItemProps.d.ts +2 -2
- package/lib/components/breadcrumb/item/index.d.ts +1 -1
- package/lib/components/breadcrumb/item/index.js +2 -2
- package/lib/components/button/Button.d.ts +4 -4
- package/lib/components/button/Button.js +15 -20
- package/lib/components/button/Button.native.d.ts +3 -3
- package/lib/components/button/Button.native.js +18 -26
- package/lib/components/button/ButtonProps.d.ts +4 -4
- package/lib/components/button/index.d.ts +3 -3
- package/lib/components/button/index.js +4 -4
- package/lib/components/button/list/ButtonList.d.ts +3 -3
- package/lib/components/button/list/ButtonList.js +8 -7
- package/lib/components/button/list/ButtonList.native.d.ts +3 -3
- package/lib/components/button/list/ButtonList.native.js +5 -4
- package/lib/components/button/list/ButtonListProps.d.ts +4 -3
- package/lib/components/button/list/index.d.ts +2 -2
- package/lib/components/button/list/index.js +3 -3
- package/lib/components/calendar/Calendar.d.ts +3 -3
- package/lib/components/calendar/Calendar.js +102 -116
- package/lib/components/calendar/Calendar.native.d.ts +3 -3
- package/lib/components/calendar/Calendar.native.js +59 -96
- package/lib/components/calendar/CalendarProps.d.ts +1 -1
- package/lib/components/calendar/index.d.ts +3 -3
- package/lib/components/calendar/index.js +4 -4
- package/lib/components/card/Card.d.ts +5 -5
- package/lib/components/card/Card.js +9 -8
- package/lib/components/card/Card.native.d.ts +5 -5
- package/lib/components/card/Card.native.js +15 -20
- package/lib/components/card/CardProps.d.ts +2 -2
- package/lib/components/card/content/CardContent.d.ts +4 -4
- package/lib/components/card/content/CardContent.js +7 -6
- package/lib/components/card/content/CardContent.native.d.ts +4 -4
- package/lib/components/card/content/CardContent.native.js +6 -5
- package/lib/components/card/content/CardContentProps.d.ts +2 -2
- package/lib/components/card/content/index.d.ts +1 -1
- package/lib/components/card/content/index.js +2 -2
- package/lib/components/card/image/CardImage.d.ts +3 -3
- package/lib/components/card/image/CardImage.js +7 -8
- package/lib/components/card/image/CardImage.native.d.ts +3 -3
- package/lib/components/card/image/CardImage.native.js +6 -6
- package/lib/components/card/image/CardImageProps.d.ts +3 -2
- package/lib/components/card/image/index.d.ts +1 -1
- package/lib/components/card/image/index.js +2 -2
- package/lib/components/card/index.d.ts +4 -4
- package/lib/components/card/index.js +5 -5
- package/lib/components/checkbox/Checkbox.d.ts +4 -4
- package/lib/components/checkbox/Checkbox.js +9 -10
- package/lib/components/checkbox/Checkbox.native.d.ts +3 -3
- package/lib/components/checkbox/Checkbox.native.js +7 -8
- package/lib/components/checkbox/CheckboxProps.d.ts +2 -2
- package/lib/components/checkbox/index.d.ts +5 -5
- package/lib/components/checkbox/index.js +6 -6
- package/lib/components/checkbox/list/CheckboxList.d.ts +3 -3
- package/lib/components/checkbox/list/CheckboxList.js +10 -15
- package/lib/components/checkbox/list/CheckboxList.native.d.ts +3 -3
- package/lib/components/checkbox/list/CheckboxList.native.js +6 -10
- package/lib/components/checkbox/list/CheckboxListProps.d.ts +4 -3
- package/lib/components/checkbox/list/index.d.ts +1 -1
- package/lib/components/checkbox/list/index.js +2 -2
- package/lib/components/checkbox/tiles/CheckboxTiles.d.ts +4 -4
- package/lib/components/checkbox/tiles/CheckboxTiles.js +7 -6
- package/lib/components/checkbox/tiles/CheckboxTiles.native.d.ts +4 -4
- package/lib/components/checkbox/tiles/CheckboxTiles.native.js +11 -10
- package/lib/components/checkbox/tiles/CheckboxTilesProps.d.ts +2 -2
- package/lib/components/checkbox/tiles/context/CheckboxTilesContext.d.ts +3 -3
- package/lib/components/checkbox/tiles/context/CheckboxTilesContext.js +3 -3
- package/lib/components/checkbox/tiles/context/index.d.ts +2 -2
- package/lib/components/checkbox/tiles/context/index.js +3 -3
- package/lib/components/checkbox/tiles/index.d.ts +1 -1
- package/lib/components/checkbox/tiles/index.js +2 -2
- package/lib/components/checkbox/tiles/tile/CheckboxTile.d.ts +3 -3
- package/lib/components/checkbox/tiles/tile/CheckboxTile.js +11 -20
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.d.ts +3 -3
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.js +19 -31
- package/lib/components/checkbox/tiles/tile/CheckboxTileProps.d.ts +3 -2
- package/lib/components/checkbox/tiles/tile/index.d.ts +1 -1
- package/lib/components/checkbox/tiles/tile/index.js +2 -2
- package/lib/components/chips/Chips.d.ts +3 -3
- package/lib/components/chips/Chips.js +9 -8
- package/lib/components/chips/Chips.native.d.ts +3 -3
- package/lib/components/chips/Chips.native.js +8 -11
- package/lib/components/chips/ChipsProps.d.ts +2 -2
- package/lib/components/chips/index.d.ts +2 -2
- package/lib/components/chips/index.js +3 -3
- package/lib/components/chips/list/ChipsList.d.ts +4 -4
- package/lib/components/chips/list/ChipsList.js +7 -6
- package/lib/components/chips/list/ChipsList.native.d.ts +5 -5
- package/lib/components/chips/list/ChipsList.native.js +6 -5
- package/lib/components/chips/list/ChipsListProps.d.ts +2 -2
- package/lib/components/chips/list/index.d.ts +1 -1
- package/lib/components/chips/list/index.js +2 -2
- package/lib/components/columns/Columns.d.ts +3 -3
- package/lib/components/columns/Columns.js +7 -6
- package/lib/components/columns/Columns.native.d.ts +3 -3
- package/lib/components/columns/Columns.native.js +14 -16
- package/lib/components/columns/ColumnsProps.d.ts +2 -2
- package/lib/components/columns/column/Column.d.ts +3 -3
- package/lib/components/columns/column/Column.js +7 -6
- package/lib/components/columns/column/Column.native.d.ts +3 -3
- package/lib/components/columns/column/Column.native.js +13 -12
- package/lib/components/columns/column/ColumnProps.d.ts +2 -2
- package/lib/components/columns/context/index.d.ts +2 -2
- package/lib/components/columns/context/index.js +3 -3
- package/lib/components/columns/index.d.ts +3 -3
- package/lib/components/columns/index.js +4 -4
- package/lib/components/container/Container.d.ts +3 -3
- package/lib/components/container/Container.js +7 -6
- package/lib/components/container/Container.native.d.ts +3 -3
- package/lib/components/container/Container.native.js +6 -5
- package/lib/components/container/ContainerProps.d.ts +2 -2
- package/lib/components/container/ContainerProps.js +1 -1
- package/lib/components/countdown/Countdown.d.ts +3 -3
- package/lib/components/countdown/Countdown.js +8 -19
- package/lib/components/countdown/Countdown.native.d.ts +3 -3
- package/lib/components/countdown/Countdown.native.js +7 -21
- package/lib/components/countdown/CountdownProps.d.ts +1 -1
- package/lib/components/countdown/index.d.ts +2 -2
- package/lib/components/countdown/index.js +3 -3
- package/lib/components/datepicker/DatePicker.d.ts +3 -3
- package/lib/components/datepicker/DatePicker.js +45 -63
- package/lib/components/datepicker/DatePicker.native.d.ts +3 -3
- package/lib/components/datepicker/DatePicker.native.js +4 -17
- package/lib/components/datepicker/DatePickerProps.d.ts +4 -4
- package/lib/components/datepicker/index.d.ts +1 -1
- package/lib/components/datepicker/index.js +2 -2
- package/lib/components/divider/Divider.d.ts +2 -2
- package/lib/components/divider/Divider.js +7 -9
- package/lib/components/divider/Divider.native.d.ts +3 -3
- package/lib/components/divider/Divider.native.js +14 -16
- package/lib/components/divider/DividerProps.d.ts +2 -1
- package/lib/components/divider/index.d.ts +1 -1
- package/lib/components/divider/index.js +2 -2
- package/lib/components/dropdown/Dropdown.d.ts +4 -4
- package/lib/components/dropdown/Dropdown.js +19 -22
- package/lib/components/dropdown/Dropdown.native.d.ts +3 -3
- package/lib/components/dropdown/Dropdown.native.js +5 -4
- package/lib/components/dropdown/DropdownProps.d.ts +2 -2
- package/lib/components/dropdown/context/DropdownContext.d.ts +2 -2
- package/lib/components/dropdown/context/DropdownContext.js +5 -4
- package/lib/components/dropdown/context/index.d.ts +1 -1
- package/lib/components/dropdown/context/index.js +2 -2
- package/lib/components/dropdown/group/DropdownGroup.d.ts +4 -4
- package/lib/components/dropdown/group/DropdownGroup.js +7 -6
- package/lib/components/dropdown/group/DropdownGroup.native.d.ts +3 -3
- package/lib/components/dropdown/group/DropdownGroup.native.js +5 -4
- package/lib/components/dropdown/group/DropdownGroupProps.d.ts +2 -2
- package/lib/components/dropdown/group/index.d.ts +2 -2
- package/lib/components/dropdown/group/index.js +3 -3
- package/lib/components/dropdown/index.d.ts +6 -6
- package/lib/components/dropdown/index.js +7 -7
- package/lib/components/dropdown/item/DropdownItem.d.ts +4 -4
- package/lib/components/dropdown/item/DropdownItem.js +7 -8
- package/lib/components/dropdown/item/DropdownItem.native.d.ts +3 -3
- package/lib/components/dropdown/item/DropdownItem.native.js +5 -4
- package/lib/components/dropdown/item/DropdownItemProps.d.ts +3 -3
- package/lib/components/dropdown/item/index.d.ts +2 -2
- package/lib/components/dropdown/item/index.js +3 -3
- package/lib/components/dropdown/trigger/DropdownTrigger.d.ts +4 -4
- package/lib/components/dropdown/trigger/DropdownTrigger.js +12 -11
- package/lib/components/dropdown/trigger/DropdownTrigger.native.d.ts +3 -3
- package/lib/components/dropdown/trigger/DropdownTrigger.native.js +5 -4
- package/lib/components/dropdown/trigger/DropdownTriggerProps.d.ts +2 -2
- package/lib/components/dropdown/trigger/index.d.ts +2 -2
- package/lib/components/dropdown/trigger/index.js +3 -3
- package/lib/components/enums.d.ts +3 -3
- package/lib/components/enums.js +4 -4
- package/lib/components/fab/Fab.d.ts +3 -3
- package/lib/components/fab/Fab.js +10 -11
- package/lib/components/fab/Fab.native.d.ts +3 -3
- package/lib/components/fab/Fab.native.js +10 -7
- package/lib/components/fab/FabProps.d.ts +5 -3
- package/lib/components/fab/index.d.ts +1 -1
- package/lib/components/fab/index.js +2 -2
- package/lib/components/flex-box/FlexBox.d.ts +4 -4
- package/lib/components/flex-box/FlexBox.js +8 -7
- package/lib/components/flex-box/FlexBox.native.d.ts +4 -4
- package/lib/components/flex-box/FlexBox.native.js +14 -16
- package/lib/components/flex-box/FlexBoxProps.d.ts +3 -3
- package/lib/components/flex-box/context/index.d.ts +2 -2
- package/lib/components/flex-box/context/index.js +3 -3
- package/lib/components/flex-box/flex-item/FlexItem.d.ts +3 -3
- package/lib/components/flex-box/flex-item/FlexItem.js +7 -6
- package/lib/components/flex-box/flex-item/FlexItem.native.d.ts +3 -3
- package/lib/components/flex-box/flex-item/FlexItem.native.js +11 -10
- package/lib/components/flex-box/flex-item/FlexItemProps.d.ts +2 -2
- package/lib/components/flex-box/index.d.ts +2 -2
- package/lib/components/flex-box/index.js +3 -3
- package/lib/components/hero/Hero.d.ts +3 -3
- package/lib/components/hero/Hero.js +8 -8
- package/lib/components/hero/Hero.native.d.ts +3 -3
- package/lib/components/hero/Hero.native.js +17 -28
- package/lib/components/hero/HeroProps.d.ts +6 -5
- package/lib/components/icon/Icon.d.ts +3 -3
- package/lib/components/icon/Icon.js +8 -8
- package/lib/components/icon/Icon.native.d.ts +2 -2
- package/lib/components/icon/Icon.native.js +12 -15
- package/lib/components/icon/IconProps.d.ts +8 -3
- package/lib/components/icon/index.d.ts +3 -3
- package/lib/components/icon/index.js +4 -4
- package/lib/components/image/Image.d.ts +3 -3
- package/lib/components/image/Image.js +11 -11
- package/lib/components/image/Image.native.d.ts +3 -3
- package/lib/components/image/Image.native.js +6 -6
- package/lib/components/image/ImageProps.d.ts +3 -1
- package/lib/components/image/ImageProps.js +1 -1
- package/lib/components/image/index.d.ts +1 -1
- package/lib/components/image/index.js +2 -2
- package/lib/components/index.d.ts +54 -54
- package/lib/components/index.js +55 -55
- package/lib/components/input/Input.d.ts +4 -4
- package/lib/components/input/Input.js +69 -85
- package/lib/components/input/Input.native.d.ts +3 -3
- package/lib/components/input/Input.native.js +85 -116
- package/lib/components/input/InputProps.d.ts +11 -10
- package/lib/components/input/gauge/InputGauge.js +9 -20
- package/lib/components/input/gauge/InputGauge.native.js +10 -20
- package/lib/components/input/gauge/hook/useGauge.js +13 -13
- package/lib/components/input/index.d.ts +3 -3
- package/lib/components/input/index.js +4 -4
- package/lib/components/link/Link.d.ts +5 -5
- package/lib/components/link/Link.js +14 -15
- package/lib/components/link/Link.native.d.ts +4 -4
- package/lib/components/link/Link.native.js +20 -23
- package/lib/components/link/LinkProps.d.ts +6 -4
- package/lib/components/link/index.d.ts +1 -1
- package/lib/components/link/index.js +2 -2
- package/lib/components/list/List.d.ts +3 -3
- package/lib/components/list/List.js +8 -7
- package/lib/components/list/List.native.d.ts +3 -3
- package/lib/components/list/List.native.js +7 -7
- package/lib/components/list/ListProps.d.ts +2 -1
- package/lib/components/list/context/ListContext.d.ts +3 -3
- package/lib/components/list/context/ListContext.js +3 -3
- package/lib/components/list/context/ListContextProps.d.ts +2 -2
- package/lib/components/list/context/index.d.ts +2 -2
- package/lib/components/list/context/index.js +3 -3
- package/lib/components/list/index.d.ts +3 -3
- package/lib/components/list/index.js +4 -4
- package/lib/components/list/item/ListItem.d.ts +4 -4
- package/lib/components/list/item/ListItem.js +11 -11
- package/lib/components/list/item/ListItem.native.d.ts +3 -3
- package/lib/components/list/item/ListItem.native.js +11 -18
- package/lib/components/list/item/ListItemProps.d.ts +2 -1
- package/lib/components/list/item/ListItemProps.js +1 -1
- package/lib/components/list/item/description/ListItemDescription.d.ts +4 -4
- package/lib/components/list/item/description/ListItemDescription.js +8 -7
- package/lib/components/list/item/description/ListItemDescription.native.d.ts +4 -4
- package/lib/components/list/item/description/ListItemDescription.native.js +8 -6
- package/lib/components/list/item/description/index.d.ts +2 -2
- package/lib/components/list/item/description/index.js +3 -3
- package/lib/components/list/item/index.d.ts +3 -3
- package/lib/components/list/item/index.js +4 -4
- package/lib/components/modal/Modal.d.ts +5 -5
- package/lib/components/modal/Modal.js +18 -25
- package/lib/components/modal/Modal.native.d.ts +5 -6
- package/lib/components/modal/Modal.native.js +18 -31
- package/lib/components/modal/ModalProps.d.ts +3 -2
- package/lib/components/modal/body/ModalBody.d.ts +4 -4
- package/lib/components/modal/body/ModalBody.js +9 -7
- package/lib/components/modal/body/ModalBody.native.d.ts +4 -4
- package/lib/components/modal/body/ModalBody.native.js +10 -10
- package/lib/components/modal/body/ModalBodyProps.d.ts +2 -2
- package/lib/components/modal/context/ModalContext.d.ts +3 -3
- package/lib/components/modal/context/ModalContext.js +3 -3
- package/lib/components/modal/context/ModalContextProps.d.ts +3 -3
- package/lib/components/modal/context/index.d.ts +2 -2
- package/lib/components/modal/context/index.js +3 -3
- package/lib/components/modal/footer/ModalFooter.d.ts +4 -4
- package/lib/components/modal/footer/ModalFooter.js +9 -7
- package/lib/components/modal/footer/ModalFooter.native.d.ts +4 -4
- package/lib/components/modal/footer/ModalFooter.native.js +11 -11
- package/lib/components/modal/footer/ModalFooterProps.d.ts +2 -2
- package/lib/components/modal/index.d.ts +4 -4
- package/lib/components/modal/index.js +5 -5
- package/lib/components/otp/Otp.d.ts +3 -3
- package/lib/components/otp/Otp.js +14 -16
- package/lib/components/otp/Otp.native.d.ts +3 -3
- package/lib/components/otp/Otp.native.js +22 -30
- package/lib/components/otp/index.d.ts +1 -1
- package/lib/components/otp/index.js +2 -2
- package/lib/components/pagination/Pagination.d.ts +3 -3
- package/lib/components/pagination/Pagination.js +40 -50
- package/lib/components/pagination/Pagination.native.d.ts +3 -3
- package/lib/components/pagination/Pagination.native.js +18 -29
- package/lib/components/pagination/PaginationProps.d.ts +5 -4
- package/lib/components/pagination/index.d.ts +2 -2
- package/lib/components/pagination/index.js +3 -3
- package/lib/components/popover/Popover.d.ts +3 -3
- package/lib/components/popover/Popover.js +7 -8
- package/lib/components/popover/Popover.native.d.ts +3 -3
- package/lib/components/popover/Popover.native.js +11 -20
- package/lib/components/popover/PopoverProps.d.ts +4 -3
- package/lib/components/popover/index.d.ts +2 -2
- package/lib/components/popover/index.js +3 -3
- package/lib/components/price/Price.d.ts +4 -4
- package/lib/components/price/Price.js +14 -38
- package/lib/components/price/Price.native.d.ts +4 -4
- package/lib/components/price/Price.native.js +11 -31
- package/lib/components/price/PriceProps.d.ts +6 -4
- package/lib/components/price/index.d.ts +2 -2
- package/lib/components/price/index.js +3 -3
- package/lib/components/product-tour/ProductTour.d.ts +4 -4
- package/lib/components/product-tour/ProductTour.js +11 -16
- package/lib/components/product-tour/ProductTour.native.d.ts +4 -4
- package/lib/components/product-tour/ProductTour.native.js +7 -5
- package/lib/components/product-tour/ProductTourProps.d.ts +2 -2
- package/lib/components/product-tour/ProductTourProps.js +1 -1
- package/lib/components/product-tour/index.d.ts +2 -2
- package/lib/components/product-tour/index.js +3 -3
- package/lib/components/progress/Progress.d.ts +3 -3
- package/lib/components/progress/Progress.js +11 -18
- package/lib/components/progress/Progress.native.d.ts +3 -3
- package/lib/components/progress/Progress.native.js +21 -25
- package/lib/components/progress/ProgressProps.d.ts +2 -2
- package/lib/components/progress/index.d.ts +4 -4
- package/lib/components/progress/index.js +5 -5
- package/lib/components/progress/item/ProgressItem.d.ts +3 -3
- package/lib/components/progress/item/ProgressItem.js +9 -8
- package/lib/components/progress/item/ProgressItem.native.d.ts +4 -4
- package/lib/components/progress/item/ProgressItem.native.js +7 -6
- package/lib/components/progress/item/ProgressItemProps.d.ts +5 -3
- package/lib/components/progress/item/index.d.ts +1 -1
- package/lib/components/progress/item/index.js +2 -2
- package/lib/components/progress/radial/ProgressRadial.d.ts +4 -4
- package/lib/components/progress/radial/ProgressRadial.js +11 -14
- package/lib/components/progress/radial/ProgressRadial.native.d.ts +4 -4
- package/lib/components/progress/radial/ProgressRadial.native.js +14 -19
- package/lib/components/progress/radial/ProgressRadialProps.d.ts +9 -6
- package/lib/components/progress/radial/index.d.ts +1 -1
- package/lib/components/progress/radial/index.js +2 -2
- package/lib/components/progress/radial/item/ProgressRadialItemProps.d.ts +3 -3
- package/lib/components/progress/radial/item/ProgressRadialtem.d.ts +1 -1
- package/lib/components/progress/radial/item/ProgressRadialtem.js +5 -5
- package/lib/components/progress/radial/item/index.d.ts +1 -1
- package/lib/components/progress/radial/item/index.js +2 -2
- package/lib/components/progress/radial/react-native-circular-progress/AnimatedCircularProgress.d.ts +3 -3
- package/lib/components/progress/radial/react-native-circular-progress/AnimatedCircularProgress.js +6 -5
- package/lib/components/progress/radial/react-native-circular-progress/CircularProgress.d.ts +3 -3
- package/lib/components/progress/radial/react-native-circular-progress/CircularProgress.js +5 -11
- package/lib/components/progress/radial/react-native-circular-progress/index.d.ts +2 -2
- package/lib/components/progress/radial/react-native-circular-progress/index.js +3 -3
- package/lib/components/prompt/Prompt.d.ts +3 -3
- package/lib/components/prompt/Prompt.js +10 -10
- package/lib/components/prompt/Prompt.native.d.ts +3 -3
- package/lib/components/prompt/Prompt.native.js +9 -9
- package/lib/components/prompt/PromptProps.d.ts +2 -2
- package/lib/components/prompt/PromptProps.js +1 -1
- package/lib/components/prompt/context/index.d.ts +4 -4
- package/lib/components/prompt/context/index.js +6 -5
- package/lib/components/prompt/files/PromptFiles.d.ts +3 -3
- package/lib/components/prompt/files/PromptFiles.js +9 -7
- package/lib/components/prompt/files/PromptFiles.native.d.ts +3 -3
- package/lib/components/prompt/files/PromptFiles.native.js +8 -7
- package/lib/components/prompt/files/file/PromptFile.d.ts +3 -3
- package/lib/components/prompt/files/file/PromptFile.js +10 -21
- package/lib/components/prompt/files/file/PromptFile.native.d.ts +3 -3
- package/lib/components/prompt/files/file/PromptFile.native.js +7 -16
- package/lib/components/prompt/files/file/index.d.ts +2 -2
- package/lib/components/prompt/files/file/index.js +3 -3
- package/lib/components/prompt/files/index.d.ts +2 -2
- package/lib/components/prompt/files/index.js +3 -3
- package/lib/components/prompt/index.d.ts +13 -13
- package/lib/components/prompt/index.js +14 -14
- package/lib/components/prompt/textarea/PromptTextarea.d.ts +3 -3
- package/lib/components/prompt/textarea/PromptTextarea.js +6 -5
- package/lib/components/prompt/textarea/PromptTextarea.native.d.ts +3 -3
- package/lib/components/prompt/textarea/PromptTextarea.native.js +6 -5
- package/lib/components/prompt/textarea/PromptTextareaProps.d.ts +2 -2
- package/lib/components/prompt/textarea/index.d.ts +2 -2
- package/lib/components/prompt/textarea/index.js +3 -3
- package/lib/components/prompt/toolbar/PromptToolbar.d.ts +3 -3
- package/lib/components/prompt/toolbar/PromptToolbar.js +6 -5
- package/lib/components/prompt/toolbar/PromptToolbar.native.d.ts +3 -3
- package/lib/components/prompt/toolbar/PromptToolbar.native.js +6 -5
- package/lib/components/prompt/toolbar/PromptToolbarProps.d.ts +2 -2
- package/lib/components/prompt/toolbar/index.d.ts +2 -2
- package/lib/components/prompt/toolbar/index.js +3 -3
- package/lib/components/prompt/toolbar/microphone/PromptMicrophone.d.ts +3 -3
- package/lib/components/prompt/toolbar/microphone/PromptMicrophone.js +6 -5
- package/lib/components/prompt/toolbar/microphone/PromptMicrophone.native.d.ts +3 -3
- package/lib/components/prompt/toolbar/microphone/PromptMicrophone.native.js +9 -9
- package/lib/components/prompt/toolbar/microphone/index.d.ts +2 -2
- package/lib/components/prompt/toolbar/microphone/index.js +3 -3
- package/lib/components/prompt/toolbar/submit/PromptSubmit.d.ts +3 -3
- package/lib/components/prompt/toolbar/submit/PromptSubmit.js +8 -7
- package/lib/components/prompt/toolbar/submit/PromptSubmit.native.d.ts +3 -3
- package/lib/components/prompt/toolbar/submit/PromptSubmit.native.js +10 -9
- package/lib/components/prompt/toolbar/submit/index.d.ts +2 -2
- package/lib/components/prompt/toolbar/submit/index.js +3 -3
- package/lib/components/prompt/toolbar/tools/PromptTools.d.ts +3 -3
- package/lib/components/prompt/toolbar/tools/PromptTools.js +6 -5
- package/lib/components/prompt/toolbar/tools/PromptTools.native.d.ts +3 -3
- package/lib/components/prompt/toolbar/tools/PromptTools.native.js +5 -4
- package/lib/components/prompt/toolbar/tools/PromptToolsProps.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/button/PromptButton.d.ts +3 -3
- package/lib/components/prompt/toolbar/tools/button/PromptButton.js +6 -5
- package/lib/components/prompt/toolbar/tools/button/PromptButton.native.d.ts +3 -3
- package/lib/components/prompt/toolbar/tools/button/PromptButton.native.js +5 -4
- package/lib/components/prompt/toolbar/tools/button/PromptButtonProps.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/button/index.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/button/index.js +3 -3
- package/lib/components/prompt/toolbar/tools/index.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/index.js +3 -3
- package/lib/components/prompt/toolbar/tools/inputFile/PromptInputFile.d.ts +3 -3
- package/lib/components/prompt/toolbar/tools/inputFile/PromptInputFile.js +8 -10
- package/lib/components/prompt/toolbar/tools/inputFile/PromptInputFile.native.d.ts +3 -3
- package/lib/components/prompt/toolbar/tools/inputFile/PromptInputFile.native.js +9 -9
- package/lib/components/prompt/toolbar/tools/inputFile/PromptInputFileProps.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/inputFile/index.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/inputFile/index.js +3 -3
- package/lib/components/prompt/toolbar/tools/select/PromptSelect.d.ts +3 -3
- package/lib/components/prompt/toolbar/tools/select/PromptSelect.js +17 -18
- package/lib/components/prompt/toolbar/tools/select/PromptSelect.native.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/select/PromptSelect.native.js +5 -4
- package/lib/components/prompt/toolbar/tools/select/index.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/select/index.js +3 -3
- package/lib/components/prompt/toolbar/tools/select/options/PromptSelectOption.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/select/options/PromptSelectOption.js +5 -4
- package/lib/components/prompt/toolbar/tools/select/options/PromptSelectOption.native.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/select/options/PromptSelectOption.native.js +5 -4
- package/lib/components/prompt/toolbar/tools/select/options/index.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/select/options/index.js +3 -3
- package/lib/components/radio/Radio.d.ts +2 -2
- package/lib/components/radio/Radio.js +17 -18
- package/lib/components/radio/Radio.native.d.ts +2 -2
- package/lib/components/radio/Radio.native.js +8 -8
- package/lib/components/radio/RadioProps.d.ts +4 -3
- package/lib/components/radio/index.d.ts +4 -4
- package/lib/components/radio/index.js +5 -5
- package/lib/components/radio/list/RadioList.d.ts +3 -3
- package/lib/components/radio/list/RadioList.js +10 -15
- package/lib/components/radio/list/RadioList.native.d.ts +3 -3
- package/lib/components/radio/list/RadioList.native.js +6 -10
- package/lib/components/radio/list/RadioListProps.d.ts +4 -3
- package/lib/components/radio/list/index.d.ts +1 -1
- package/lib/components/radio/list/index.js +2 -2
- package/lib/components/radio/tiles/RadioTiles.d.ts +2 -2
- package/lib/components/radio/tiles/RadioTiles.js +9 -8
- package/lib/components/radio/tiles/RadioTiles.native.d.ts +2 -2
- package/lib/components/radio/tiles/RadioTiles.native.js +10 -9
- package/lib/components/radio/tiles/RadioTilesProps.d.ts +4 -3
- package/lib/components/radio/tiles/context/RadioTilesContext.d.ts +3 -3
- package/lib/components/radio/tiles/context/RadioTilesContext.js +3 -3
- package/lib/components/radio/tiles/context/index.d.ts +2 -2
- package/lib/components/radio/tiles/context/index.js +3 -3
- package/lib/components/radio/tiles/index.d.ts +1 -1
- package/lib/components/radio/tiles/index.js +2 -2
- package/lib/components/radio/tiles/tile/RadioTile.d.ts +2 -2
- package/lib/components/radio/tiles/tile/RadioTile.js +18 -26
- package/lib/components/radio/tiles/tile/RadioTile.native.d.ts +2 -2
- package/lib/components/radio/tiles/tile/RadioTile.native.js +11 -18
- package/lib/components/radio/tiles/tile/RadioTileProps.d.ts +3 -2
- package/lib/components/radio/tiles/tile/index.d.ts +1 -1
- package/lib/components/radio/tiles/tile/index.js +2 -2
- package/lib/components/range/Range.d.ts +3 -3
- package/lib/components/range/Range.js +21 -36
- package/lib/components/range/Range.native.d.ts +3 -3
- package/lib/components/range/Range.native.js +22 -30
- package/lib/components/range/RangeProps.d.ts +2 -1
- package/lib/components/range/index.d.ts +1 -1
- package/lib/components/range/index.js +2 -2
- package/lib/components/rows/Rows.d.ts +4 -4
- package/lib/components/rows/Rows.js +10 -9
- package/lib/components/rows/Rows.native.d.ts +4 -4
- package/lib/components/rows/Rows.native.js +6 -5
- package/lib/components/rows/RowsProps.d.ts +2 -2
- package/lib/components/rows/index.d.ts +2 -2
- package/lib/components/rows/index.js +3 -3
- package/lib/components/rows/row/Row.d.ts +4 -4
- package/lib/components/rows/row/Row.js +8 -7
- package/lib/components/rows/row/Row.native.d.ts +4 -4
- package/lib/components/rows/row/Row.native.js +6 -5
- package/lib/components/rows/row/RowProps.d.ts +2 -2
- package/lib/components/rows/row/index.d.ts +1 -1
- package/lib/components/rows/row/index.js +2 -2
- package/lib/components/scroll-view/ScrollView.d.ts +5 -5
- package/lib/components/scroll-view/ScrollView.js +13 -11
- package/lib/components/scroll-view/ScrollView.native.d.ts +5 -5
- package/lib/components/scroll-view/ScrollView.native.js +19 -19
- package/lib/components/scroll-view/ScrollViewProps.d.ts +6 -4
- package/lib/components/scroll-view/index.d.ts +1 -1
- package/lib/components/scroll-view/index.js +2 -2
- package/lib/components/section/Section.d.ts +4 -4
- package/lib/components/section/Section.js +11 -10
- package/lib/components/section/Section.native.d.ts +4 -4
- package/lib/components/section/Section.native.js +8 -8
- package/lib/components/section/SectionProps.d.ts +3 -1
- package/lib/components/section/index.d.ts +1 -1
- package/lib/components/section/index.js +2 -2
- package/lib/components/segment-control/SegmentControl.d.ts +3 -3
- package/lib/components/segment-control/SegmentControl.js +27 -26
- package/lib/components/segment-control/SegmentControl.native.d.ts +3 -3
- package/lib/components/segment-control/SegmentControl.native.js +25 -26
- package/lib/components/segment-control/SegmentControlProps.d.ts +4 -3
- package/lib/components/segment-control/index.d.ts +2 -2
- package/lib/components/segment-control/index.js +3 -3
- package/lib/components/segment-control/item/SegmentControlItem.d.ts +3 -3
- package/lib/components/segment-control/item/SegmentControlItem.js +8 -7
- package/lib/components/segment-control/item/SegmentControlItem.native.d.ts +3 -3
- package/lib/components/segment-control/item/SegmentControlItem.native.js +6 -5
- package/lib/components/segment-control/item/SegmentControlItemProps.d.ts +4 -3
- package/lib/components/segment-control/item/index.d.ts +1 -1
- package/lib/components/segment-control/item/index.js +2 -2
- package/lib/components/select/Select.d.ts +4 -4
- package/lib/components/select/Select.js +14 -14
- package/lib/components/select/Select.native.d.ts +4 -4
- package/lib/components/select/Select.native.js +16 -17
- package/lib/components/select/SelectProps.d.ts +8 -7
- package/lib/components/select/context/index.d.ts +5 -5
- package/lib/components/select/context/index.js +3 -3
- package/lib/components/select/index.d.ts +2 -2
- package/lib/components/select/index.js +3 -3
- package/lib/components/select/option/SelectOption.d.ts +4 -4
- package/lib/components/select/option/SelectOption.js +11 -12
- package/lib/components/select/option/SelectOption.native.d.ts +4 -4
- package/lib/components/select/option/SelectOption.native.js +11 -17
- package/lib/components/select/option/SelectOptionProps.d.ts +2 -1
- package/lib/components/select/option/index.d.ts +1 -1
- package/lib/components/select/option/index.js +2 -2
- package/lib/components/select/web/SelectDynamic.d.ts +4 -4
- package/lib/components/select/web/SelectDynamic.js +17 -19
- package/lib/components/select/web/SelectNative.d.ts +2 -2
- package/lib/components/select/web/SelectNative.js +31 -40
- package/lib/components/select/web/index.d.ts +2 -2
- package/lib/components/select/web/index.js +3 -3
- package/lib/components/skeleton/Skeleton.d.ts +4 -4
- package/lib/components/skeleton/Skeleton.js +4 -4
- package/lib/components/skeleton/Skeleton.native.d.ts +3 -3
- package/lib/components/skeleton/Skeleton.native.js +18 -20
- package/lib/components/skeleton/SkeletonProps.d.ts +2 -2
- package/lib/components/skeleton/index.d.ts +2 -2
- package/lib/components/skeleton/index.js +3 -3
- package/lib/components/spacer/Spacer.d.ts +3 -3
- package/lib/components/spacer/Spacer.js +7 -6
- package/lib/components/spacer/Spacer.native.d.ts +3 -3
- package/lib/components/spacer/Spacer.native.js +5 -4
- package/lib/components/spacer/SpacerProps.d.ts +1 -1
- package/lib/components/spacer/index.d.ts +2 -2
- package/lib/components/spacer/index.js +3 -3
- package/lib/components/stepper/Stepper.d.ts +3 -3
- package/lib/components/stepper/Stepper.js +14 -22
- package/lib/components/stepper/Stepper.native.d.ts +3 -3
- package/lib/components/stepper/Stepper.native.js +10 -19
- package/lib/components/stepper/StepperProps.d.ts +2 -2
- package/lib/components/stepper/index.d.ts +3 -3
- package/lib/components/stepper/index.js +4 -4
- package/lib/components/stepper/step/Step.d.ts +3 -3
- package/lib/components/stepper/step/Step.js +7 -6
- package/lib/components/stepper/step/Step.native.d.ts +3 -3
- package/lib/components/stepper/step/Step.native.js +8 -7
- package/lib/components/stepper/step/index.d.ts +1 -1
- package/lib/components/stepper/step/index.js +2 -2
- package/lib/components/sticker/Sticker.d.ts +3 -3
- package/lib/components/sticker/Sticker.js +9 -10
- package/lib/components/sticker/Sticker.native.d.ts +3 -3
- package/lib/components/sticker/Sticker.native.js +8 -7
- package/lib/components/sticker/StickerProps.d.ts +3 -1
- package/lib/components/sticker/index.d.ts +1 -1
- package/lib/components/sticker/index.js +2 -2
- package/lib/components/styleComponent/default/index.d.ts +1 -1
- package/lib/components/styleComponent/default/index.js +2 -2
- package/lib/components/styleComponent/default/styleComponent.js +3 -3
- package/lib/components/styleComponent/default/styleComponent.native.js +3 -3
- package/lib/components/styleComponent/index.d.ts +2 -2
- package/lib/components/styleComponent/index.js +3 -3
- package/lib/components/styleComponent/mangled/index.d.ts +1 -1
- package/lib/components/styleComponent/mangled/index.js +2 -2
- package/lib/components/styleComponent/mangled/styleComponentMangled.js +3 -3
- package/lib/components/styleComponent/mangled/styleComponentMangled.native.js +3 -3
- package/lib/components/switch/Switch.d.ts +3 -3
- package/lib/components/switch/Switch.js +31 -32
- package/lib/components/switch/Switch.native.d.ts +3 -3
- package/lib/components/switch/Switch.native.js +10 -11
- package/lib/components/switch/index.d.ts +1 -1
- package/lib/components/switch/index.js +2 -2
- package/lib/components/table/Table.d.ts +3 -3
- package/lib/components/table/Table.js +8 -7
- package/lib/components/table/Table.native.d.ts +3 -3
- package/lib/components/table/Table.native.js +7 -6
- package/lib/components/table/TableProps.d.ts +2 -2
- 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 +6 -5
- package/lib/components/table/body/TableBody.native.d.ts +3 -3
- package/lib/components/table/body/TableBody.native.js +5 -4
- package/lib/components/table/body/TableBodyProps.d.ts +4 -3
- package/lib/components/table/body/index.d.ts +1 -1
- package/lib/components/table/body/index.js +2 -2
- package/lib/components/table/head/TableHead.d.ts +3 -3
- package/lib/components/table/head/TableHead.js +6 -5
- package/lib/components/table/head/TableHead.native.d.ts +3 -3
- package/lib/components/table/head/TableHead.native.js +5 -4
- package/lib/components/table/head/TableHeadProps.d.ts +4 -3
- package/lib/components/table/head/index.d.ts +1 -1
- package/lib/components/table/head/index.js +2 -2
- package/lib/components/table/index.d.ts +7 -7
- package/lib/components/table/index.js +8 -8
- package/lib/components/table/td/TableTd.d.ts +3 -3
- package/lib/components/table/td/TableTd.js +6 -5
- package/lib/components/table/td/TableTd.native.d.ts +3 -3
- package/lib/components/table/td/TableTd.native.js +6 -5
- package/lib/components/table/td/TableTdProps.d.ts +4 -3
- package/lib/components/table/td/index.d.ts +1 -1
- package/lib/components/table/td/index.js +2 -2
- package/lib/components/table/th/TableTh.d.ts +3 -3
- package/lib/components/table/th/TableTh.js +6 -5
- package/lib/components/table/th/TableTh.native.d.ts +3 -3
- package/lib/components/table/th/TableTh.native.js +7 -6
- package/lib/components/table/th/TableThProps.d.ts +4 -3
- package/lib/components/table/th/index.d.ts +1 -1
- package/lib/components/table/th/index.js +2 -2
- package/lib/components/table/tr/TableTr.d.ts +4 -4
- package/lib/components/table/tr/TableTr.js +7 -6
- package/lib/components/table/tr/TableTr.native.d.ts +3 -3
- package/lib/components/table/tr/TableTr.native.js +6 -9
- package/lib/components/table/tr/TableTrProps.d.ts +7 -4
- package/lib/components/table/tr/index.d.ts +1 -1
- package/lib/components/table/tr/index.js +2 -2
- package/lib/components/tabs/Tabs.d.ts +2 -2
- package/lib/components/tabs/Tabs.js +12 -12
- package/lib/components/tabs/Tabs.native.d.ts +2 -2
- package/lib/components/tabs/Tabs.native.js +11 -11
- package/lib/components/tabs/TabsProps.d.ts +6 -3
- package/lib/components/tabs/context/index.d.ts +4 -4
- package/lib/components/tabs/context/index.js +3 -3
- package/lib/components/tabs/index.d.ts +5 -5
- package/lib/components/tabs/index.js +6 -6
- package/lib/components/tabs/tab-list/TabList.d.ts +2 -2
- package/lib/components/tabs/tab-list/TabList.js +27 -29
- package/lib/components/tabs/tab-list/TabList.native.d.ts +2 -2
- package/lib/components/tabs/tab-list/TabList.native.js +34 -38
- package/lib/components/tabs/tab-list/TabListProps.d.ts +4 -3
- package/lib/components/tabs/tab-list/index.d.ts +1 -1
- package/lib/components/tabs/tab-list/index.js +2 -2
- package/lib/components/tabs/tab-list/tab/Tab.d.ts +2 -2
- package/lib/components/tabs/tab-list/tab/Tab.js +10 -11
- package/lib/components/tabs/tab-list/tab/Tab.native.d.ts +2 -2
- package/lib/components/tabs/tab-list/tab/Tab.native.js +10 -12
- package/lib/components/tabs/tab-list/tab/TabProps.d.ts +5 -3
- package/lib/components/tabs/tab-list/tab/index.d.ts +1 -1
- package/lib/components/tabs/tab-list/tab/index.js +2 -2
- package/lib/components/tabs/tab-panels/TabPanels.d.ts +2 -2
- package/lib/components/tabs/tab-panels/TabPanels.js +10 -9
- package/lib/components/tabs/tab-panels/TabPanels.native.d.ts +2 -2
- package/lib/components/tabs/tab-panels/TabPanels.native.js +11 -10
- package/lib/components/tabs/tab-panels/TabPanelsProps.d.ts +3 -3
- package/lib/components/tabs/tab-panels/index.d.ts +1 -1
- package/lib/components/tabs/tab-panels/index.js +2 -2
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.d.ts +2 -2
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.js +7 -6
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.native.d.ts +2 -2
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.native.js +8 -7
- package/lib/components/tabs/tab-panels/tab-panel/TabPanelProps.d.ts +3 -3
- package/lib/components/tabs/tab-panels/tab-panel/index.d.ts +1 -1
- package/lib/components/tabs/tab-panels/tab-panel/index.js +2 -2
- package/lib/components/tag/Tag.d.ts +3 -3
- package/lib/components/tag/Tag.js +9 -10
- package/lib/components/tag/Tag.native.d.ts +3 -3
- package/lib/components/tag/Tag.native.js +5 -7
- package/lib/components/tag/TagProps.d.ts +3 -2
- package/lib/components/tag/index.d.ts +3 -3
- package/lib/components/tag/index.js +4 -4
- package/lib/components/tag/list/TagList.d.ts +3 -3
- package/lib/components/tag/list/TagList.js +9 -8
- package/lib/components/tag/list/TagList.native.d.ts +3 -3
- package/lib/components/tag/list/TagList.native.js +5 -4
- package/lib/components/tag/list/TagListProps.d.ts +5 -3
- package/lib/components/tag/list/index.d.ts +1 -1
- package/lib/components/tag/list/index.js +2 -2
- package/lib/components/text/Text.d.ts +3 -3
- package/lib/components/text/Text.js +8 -7
- package/lib/components/text/Text.native.d.ts +3 -3
- package/lib/components/text/Text.native.js +12 -9
- package/lib/components/text/TextProps.d.ts +6 -4
- package/lib/components/text/index.d.ts +2 -2
- package/lib/components/text/index.js +3 -3
- package/lib/components/textarea/Textarea.d.ts +3 -3
- package/lib/components/textarea/Textarea.js +18 -28
- package/lib/components/textarea/Textarea.native.d.ts +3 -3
- package/lib/components/textarea/Textarea.native.js +17 -28
- package/lib/components/textarea/TextareaProps.d.ts +2 -1
- package/lib/components/textarea/index.d.ts +1 -1
- package/lib/components/textarea/index.js +2 -2
- package/lib/components/timeline/Timeline.d.ts +3 -3
- package/lib/components/timeline/Timeline.js +9 -8
- package/lib/components/timeline/Timeline.native.d.ts +5 -5
- package/lib/components/timeline/Timeline.native.js +9 -9
- package/lib/components/timeline/TimelineProps.d.ts +2 -2
- package/lib/components/timeline/content/TimelineContent.d.ts +3 -3
- package/lib/components/timeline/content/TimelineContent.js +8 -10
- package/lib/components/timeline/content/TimelineContent.native.d.ts +2 -2
- package/lib/components/timeline/content/TimelineContent.native.js +7 -11
- package/lib/components/timeline/content/TimelineContentProps.d.ts +2 -2
- package/lib/components/timeline/content/index.d.ts +1 -1
- package/lib/components/timeline/content/index.js +2 -2
- package/lib/components/timeline/index.d.ts +4 -4
- package/lib/components/timeline/index.js +5 -5
- package/lib/components/timeline/item/TimelineItem.d.ts +3 -3
- package/lib/components/timeline/item/TimelineItem.js +7 -6
- package/lib/components/timeline/item/TimelineItem.native.d.ts +3 -3
- package/lib/components/timeline/item/TimelineItem.native.js +7 -6
- package/lib/components/timeline/item/TimelineItemProps.d.ts +2 -2
- package/lib/components/timeline/item/index.d.ts +1 -1
- package/lib/components/timeline/item/index.js +2 -2
- package/lib/components/timeline/marker/TimelineMarker.d.ts +3 -3
- package/lib/components/timeline/marker/TimelineMarker.js +7 -8
- package/lib/components/timeline/marker/TimelineMarker.native.d.ts +2 -2
- package/lib/components/timeline/marker/TimelineMarker.native.js +13 -14
- package/lib/components/timeline/marker/TimelineMarkerProps.d.ts +2 -1
- package/lib/components/timeline/marker/index.d.ts +1 -1
- package/lib/components/timeline/marker/index.js +2 -2
- package/lib/components/timepicker/Timepicker.d.ts +3 -3
- package/lib/components/timepicker/Timepicker.js +9 -8
- package/lib/components/timepicker/Timepicker.native.d.ts +3 -3
- package/lib/components/timepicker/Timepicker.native.js +9 -8
- package/lib/components/timepicker/circular/TimepickerCircular.d.ts +3 -3
- package/lib/components/timepicker/circular/TimepickerCircular.js +20 -37
- package/lib/components/timepicker/circular/TimepickerCircular.native.d.ts +3 -3
- package/lib/components/timepicker/circular/TimepickerCircular.native.js +41 -67
- package/lib/components/timepicker/circular/index.d.ts +2 -2
- package/lib/components/timepicker/circular/index.js +3 -3
- package/lib/components/timepicker/default/TimepickerDefault.d.ts +3 -3
- package/lib/components/timepicker/default/TimepickerDefault.js +25 -31
- package/lib/components/timepicker/default/TimepickerDefault.native.d.ts +3 -3
- package/lib/components/timepicker/default/TimepickerDefault.native.js +11 -21
- package/lib/components/timepicker/default/TimepickerDefaultProps.d.ts +1 -1
- package/lib/components/timepicker/default/index.d.ts +1 -1
- package/lib/components/timepicker/default/index.js +2 -2
- package/lib/components/timepicker/default/selector/TimepickerSelector.d.ts +1 -2
- package/lib/components/timepicker/default/selector/TimepickerSelector.js +9 -7
- package/lib/components/timepicker/default/selector/TimepickerSelector.native.d.ts +1 -2
- package/lib/components/timepicker/default/selector/TimepickerSelector.native.js +15 -17
- package/lib/components/timepicker/default/selector/index.d.ts +1 -1
- package/lib/components/timepicker/default/selector/index.js +2 -2
- package/lib/components/timepicker/default/selector/item/TimepickerSelectorItem.d.ts +1 -2
- package/lib/components/timepicker/default/selector/item/TimepickerSelectorItem.js +7 -7
- package/lib/components/timepicker/default/selector/item/TimepickerSelectorItem.native.d.ts +1 -2
- package/lib/components/timepicker/default/selector/item/TimepickerSelectorItem.native.js +7 -6
- package/lib/components/timepicker/default/selector/item/index.d.ts +1 -1
- package/lib/components/timepicker/default/selector/item/index.js +2 -2
- package/lib/components/timepicker/index.d.ts +1 -1
- package/lib/components/timepicker/index.js +2 -2
- package/lib/components/title/Title.d.ts +3 -3
- package/lib/components/title/Title.js +9 -8
- package/lib/components/title/Title.native.d.ts +3 -3
- package/lib/components/title/Title.native.js +12 -10
- package/lib/components/title/TitleProps.d.ts +12 -4
- package/lib/components/title/index.d.ts +2 -2
- package/lib/components/title/index.js +3 -3
- package/lib/components/view/View.d.ts +3 -3
- package/lib/components/view/View.js +14 -10
- package/lib/components/view/View.native.d.ts +3 -3
- package/lib/components/view/View.native.js +11 -10
- package/lib/components/view/ViewProps.d.ts +10 -3
- package/lib/components/view/ViewProps.js +1 -1
- package/lib/components/view/index.d.ts +2 -2
- package/lib/components/view/index.js +3 -3
- package/lib/context/TrilogyContext.d.ts +10 -0
- package/lib/context/TrilogyContext.js +14 -0
- package/lib/context/TrilogyContext.native.d.ts +1 -0
- package/lib/context/TrilogyContext.native.js +4 -0
- package/lib/context/index.d.ts +1 -10
- package/lib/context/index.js +2 -14
- package/lib/context/index.native.d.ts +1 -1
- package/lib/context/index.native.js +2 -4
- package/lib/context/provider.d.ts +2 -2
- package/lib/context/provider.js +8 -7
- package/lib/context/providerStyled.d.ts +2 -2
- package/lib/context/providerStyled.js +11 -11
- package/lib/context/providerTheme.d.ts +4 -4
- package/lib/context/providerTheme.js +3 -3
- package/lib/context/providerTheme.native.d.ts +3 -3
- package/lib/context/providerTheme.native.js +7 -6
- package/lib/events/OnChangeEvent.d.ts +2 -2
- package/lib/events/OnClickEvent.d.ts +2 -2
- package/lib/helpers/WrapperReactNativeTesting.d.ts +3 -3
- package/lib/helpers/WrapperReactNativeTesting.js +3 -3
- package/lib/helpers/clickOutside.d.ts +2 -1
- package/lib/helpers/clickOutside.js +1 -1
- package/lib/helpers/hashClassesHelpers.js +2 -2
- package/lib/helpers/index.d.ts +4 -4
- package/lib/helpers/index.js +5 -5
- package/lib/helpers/require.d.ts +2 -2
- package/lib/helpers/require.js +3 -3
- package/lib/objects/Typography/index.d.ts +4 -4
- package/lib/objects/Typography/index.js +5 -5
- package/lib/objects/atoms/Background.d.ts +1 -1
- package/lib/objects/atoms/index.d.ts +2 -2
- package/lib/objects/atoms/index.js +3 -3
- package/lib/objects/facets/ChildrenWithNoText.d.ts +2 -2
- package/lib/objects/facets/Color.js +2 -2
- package/lib/objects/facets/Referenceable.d.ts +4 -4
- package/lib/objects/facets/Status.d.ts +1 -1
- package/lib/objects/facets/Status.js +2 -2
- package/lib/objects/facets/Variant.js +2 -2
- package/lib/objects/facets/index.d.ts +30 -30
- package/lib/objects/facets/index.js +31 -31
- package/lib/objects/index.d.ts +3 -3
- package/lib/objects/index.js +4 -4
- package/lib/services/index.d.ts +1 -1
- package/lib/services/index.js +2 -2
- package/lib/tsconfig.json +1 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { AutoLayoutWrapper } from '../../../components/autolayout';
|
|
3
4
|
import { SpacingMatrixMode } from '../../../components/autolayout/SpacingMatrix';
|
|
4
5
|
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
5
6
|
import { SpacerSize } from '../../../components/spacer';
|
|
6
7
|
import { Text } from '../../../components/text';
|
|
7
|
-
import
|
|
8
|
+
import { forwardRef } from 'react';
|
|
8
9
|
import { memoStyles } from '../../../helpers/memoStyles';
|
|
9
10
|
import { isRequiredChild } from '../../../helpers/require';
|
|
10
|
-
import { TypographyColor } from '../../../objects/Typography';
|
|
11
|
+
import { TypographyColor } from '../../../objects/Typography/TypographyColor';
|
|
11
12
|
var THREE = SpacerSize.THREE, TWO = SpacerSize.TWO;
|
|
12
13
|
var INSERT_SPACE_BETWEEN = SpacingMatrixMode.INSERT_SPACE_BETWEEN;
|
|
13
14
|
var SPACING_MATRIX = [
|
|
@@ -21,20 +22,15 @@ var SPACING_MATRIX = [
|
|
|
21
22
|
* @param autolayout {boolean} Apply auto-layout rules
|
|
22
23
|
* @param label {string} RadioList label
|
|
23
24
|
*/
|
|
24
|
-
var RadioList =
|
|
25
|
+
var RadioList = forwardRef(function (_a, ref) {
|
|
25
26
|
var children = _a.children, label = _a.label;
|
|
26
27
|
var styles = memoStyles({
|
|
27
28
|
label: {
|
|
28
29
|
marginBottom: 8,
|
|
29
30
|
},
|
|
30
31
|
});
|
|
31
|
-
return (
|
|
32
|
-
label && (React.createElement(Text, { style: styles.label },
|
|
33
|
-
label,
|
|
34
|
-
" ",
|
|
35
|
-
isRequiredChild(children) && React.createElement(Text, { typo: TypographyColor.TEXT_ERROR }, "*"))),
|
|
36
|
-
children));
|
|
32
|
+
return (_jsxs(AutoLayoutWrapper, __assign({}, { autolayout: SPACING_MATRIX }, { children: [label && (_jsxs(Text, __assign({ style: styles.label }, { children: [label, " ", isRequiredChild(children) && _jsx(Text, __assign({ typo: TypographyColor.TEXT_ERROR }, { children: "*" }))] }))), children] })));
|
|
37
33
|
});
|
|
38
34
|
RadioList.displayName = ComponentName.RadioList;
|
|
39
35
|
export default RadioList;
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmFkaW9MaXN0Lm5hdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2NvbXBvbmVudHMvcmFkaW8vbGlzdC9SYWRpb0xpc3QubmF0aXZlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sRUFBRSxpQkFBaU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0FBRyxVQUFVLENBQUM7UUFDdEIsS0FBSyxFQUFFO1lBQ0wsWUFBWSxFQUFFLENBQUM7U0FDaEI7S0FDRixDQUFDLENBQUE7SUFFSixPQUFPLENBQ0wsTUFBQyxpQkFBaUIsZUFBSyxFQUFFLFVBQVUsRUFBRSxjQUFjLEVBQUUsZUFDbEQsS0FBSyxJQUFJLENBQ1IsTUFBQyxJQUFJLGFBQUMsS0FBSyxFQUFFLE1BQU0sQ0FBQyxLQUFLLGlCQUFHLEtBQUssT0FBRyxlQUFlLENBQUMsUUFBUSxDQUFDLElBQUksS0FBQyxJQUFJLGFBQUMsSUFBSSxFQUFFLGVBQWUsQ0FBQyxVQUFVLHVCQUFVLEtBQVEsQ0FDMUgsRUFDQSxRQUFRLEtBQ1MsQ0FDckIsQ0FBQTtBQUNILENBQUMsQ0FBQyxDQUFBO0FBRUYsU0FBUyxDQUFDLFdBQVcsR0FBRyxhQUFhLENBQUMsU0FBUyxDQUFBO0FBRS9DLGVBQWUsU0FBUyxDQUFBIn0=
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { View } from 'react-native';
|
|
3
2
|
import type { DividerProps } from '../../../components/divider/DividerProps';
|
|
4
3
|
import type { RadioProps } from '../../../components/radio/RadioProps';
|
|
5
|
-
import { AlignableProps
|
|
4
|
+
import { AlignableProps } from '../../../objects/facets/Alignable';
|
|
5
|
+
import { Dev } from '../../../objects/facets/Dev';
|
|
6
6
|
import { CommonProps } from '../../../objects/facets/CommonProps';
|
|
7
|
-
|
|
7
|
+
import { ReactElement } from 'react';
|
|
8
|
+
type RadioListChildrenTypes = ReactElement<RadioProps | DividerProps> | undefined;
|
|
8
9
|
/**
|
|
9
10
|
* Radio List Interface
|
|
10
11
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import RadioList from '
|
|
1
|
+
import RadioList from '../../../components/radio/list/RadioList';
|
|
2
2
|
export { RadioList };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import RadioList from '
|
|
1
|
+
import RadioList from '../../../components/radio/list/RadioList';
|
|
2
2
|
export { RadioList };
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL3JhZGlvL2xpc3QvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxTQUFTLE1BQU0sbUNBQW1DLENBQUE7QUFFekQsT0FBTyxFQUFFLFNBQVMsRUFBRSxDQUFBIn0=
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { RadioTilesProps } from '../../../components/radio/tiles/RadioTilesProps';
|
|
2
|
-
import * as React from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* RadioTiles
|
|
5
5
|
* @param id {string}
|
|
@@ -12,5 +12,5 @@ import * as React from 'react';
|
|
|
12
12
|
* @param accessibilityLabelledBy {string} aria-labelledby attribute
|
|
13
13
|
* @param testId {string} Test Id for Test Integration
|
|
14
14
|
*/
|
|
15
|
-
declare const RadioTiles:
|
|
15
|
+
declare const RadioTiles: import("react").ForwardRefExoticComponent<RadioTilesProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
16
|
export default RadioTiles;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
3
|
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
3
|
-
import { useTrilogyContext } from '../../../context';
|
|
4
|
-
import { hashClass } from '../../../helpers';
|
|
4
|
+
import { useTrilogyContext } from '../../../context/TrilogyContext';
|
|
5
|
+
import { hashClass } from '../../../helpers/hashClassesHelpers';
|
|
5
6
|
import { isRequiredChild } from '../../../helpers/require';
|
|
6
|
-
import { getAlignClassName } from '../../../objects';
|
|
7
|
-
import { is } from '../../../services';
|
|
7
|
+
import { getAlignClassName } from '../../../objects/facets/Alignable';
|
|
8
|
+
import { is } from '../../../services/classify';
|
|
8
9
|
import clsx from 'clsx';
|
|
9
|
-
import
|
|
10
|
+
import { forwardRef } from 'react';
|
|
10
11
|
/**
|
|
11
12
|
* RadioTiles
|
|
12
13
|
* @param id {string}
|
|
@@ -19,7 +20,7 @@ import * as React from 'react';
|
|
|
19
20
|
* @param accessibilityLabelledBy {string} aria-labelledby attribute
|
|
20
21
|
* @param testId {string} Test Id for Test Integration
|
|
21
22
|
*/
|
|
22
|
-
var RadioTiles =
|
|
23
|
+
var RadioTiles = forwardRef(function (_a, ref) {
|
|
23
24
|
var id = _a.id, className = _a.className, children = _a.children, align = _a.align, verticalAlign = _a.verticalAlign, accessibilityLabelledBy = _a.accessibilityLabelledBy, numberCols = _a.numberCols, testId = _a.testId, others = __rest(_a, ["id", "className", "children", "align", "verticalAlign", "accessibilityLabelledBy", "numberCols", "testId"]);
|
|
24
25
|
var styled = useTrilogyContext().styled;
|
|
25
26
|
var alignClass = null;
|
|
@@ -60,8 +61,8 @@ var RadioTiles = React.forwardRef(function (_a, ref) {
|
|
|
60
61
|
return responsiveClasses.join(' ');
|
|
61
62
|
};
|
|
62
63
|
var gridColumnClasses = getGridColumnClasses();
|
|
63
|
-
return (
|
|
64
|
+
return (_jsx("div", __assign({ "data-testid": testId, ref: ref, id: id, role: 'radiogroup', "aria-labelledby": accessibilityLabelledBy, "aria-required": isRequiredChild(children) ? 'true' : undefined, className: hashClass(styled, clsx('radio-tiles', className, align && alignClass, verticalAlign && verticalAlignClass, gridColumnClasses && 'is-grid', gridColumnClasses && gridColumnClasses)) }, others, { children: children })));
|
|
64
65
|
});
|
|
65
66
|
RadioTiles.displayName = ComponentName.RadioTiles;
|
|
66
67
|
export default RadioTiles;
|
|
67
|
-
//# sourceMappingURL=data:application/json;base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UFJLEVBQUUsWUFBWSxxQkFDRCx1QkFBdUIsbUJBQ3pCLGVBQWUsQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxTQUFTLEVBQzdELFNBQVMsRUFBRSxTQUFTLENBQ2xCLE1BQU0sRUFDTixJQUFJLENBQ0YsYUFBYSxFQUNiLFNBQVMsRUFDVCxLQUFLLElBQUksVUFBVSxFQUNuQixhQUFhLElBQUksa0JBQWtCLEVBQ25DLGlCQUFpQixJQUFJLFNBQVMsRUFDOUIsaUJBQWlCLElBQUksaUJBQWlCLENBQ3ZDLENBQ0YsSUFDRyxNQUFNLGNBRVQsUUFBUSxJQUNMLENBQ1AsQ0FBQTtBQUNILENBQUMsQ0FDRixDQUFBO0FBRUQsVUFBVSxDQUFDLFdBQVcsR0FBRyxhQUFhLENBQUMsVUFBVSxDQUFBO0FBQ2pELGVBQWUsVUFBVSxDQUFBIn0=
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { RadioTilesProps } from '../../../components/radio/tiles/RadioTilesProps';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
/**
|
|
5
5
|
* RadioTiles
|
|
@@ -9,5 +9,5 @@ import { View } from 'react-native';
|
|
|
9
9
|
* @param verticalAlign { Alignable | AlignableValues} align vertical content
|
|
10
10
|
* @param numberCols {GridSize | GridItemSize} number of columns for grid layout
|
|
11
11
|
*/
|
|
12
|
-
declare const RadioTiles:
|
|
12
|
+
declare const RadioTiles: import("react").ForwardRefExoticComponent<RadioTilesProps & import("react").RefAttributes<View>>;
|
|
13
13
|
export default RadioTiles;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
3
|
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
3
4
|
import { SpacerSize } from '../../../components/spacer';
|
|
4
5
|
import { Alignable } from '../../../objects/facets/Alignable';
|
|
5
|
-
import
|
|
6
|
+
import { useCallback, useMemo, Children, forwardRef, isValidElement } from 'react';
|
|
6
7
|
import { FlatList, View } from 'react-native';
|
|
7
8
|
import { memoStyles } from '../../../helpers/memoStyles';
|
|
8
|
-
import { RadioTilesContext } from '
|
|
9
|
+
import { RadioTilesContext } from '../../../components/radio/tiles/context';
|
|
9
10
|
/**
|
|
10
11
|
* RadioTiles
|
|
11
12
|
* @param id {string}
|
|
@@ -14,9 +15,9 @@ import { RadioTilesContext } from './context';
|
|
|
14
15
|
* @param verticalAlign { Alignable | AlignableValues} align vertical content
|
|
15
16
|
* @param numberCols {GridSize | GridItemSize} number of columns for grid layout
|
|
16
17
|
*/
|
|
17
|
-
var RadioTiles =
|
|
18
|
+
var RadioTiles = forwardRef(function (_a, ref) {
|
|
18
19
|
var id = _a.id, children = _a.children, align = _a.align, verticalAlign = _a.verticalAlign, numberCols = _a.numberCols, others = __rest(_a, ["id", "children", "align", "verticalAlign", "numberCols"]);
|
|
19
|
-
var childArray = useMemo(function () { return
|
|
20
|
+
var childArray = useMemo(function () { return Children.toArray(children).filter(isValidElement); }, [children]);
|
|
20
21
|
var columnCount = useMemo(function () {
|
|
21
22
|
if (!numberCols || numberCols === 1)
|
|
22
23
|
return null;
|
|
@@ -48,17 +49,17 @@ var RadioTiles = React.forwardRef(function (_a, ref) {
|
|
|
48
49
|
var renderItem = useCallback(function (_a) {
|
|
49
50
|
var item = _a.item, index = _a.index;
|
|
50
51
|
if (!columnCount)
|
|
51
|
-
return
|
|
52
|
+
return _jsx(View, __assign({ style: { flex: 1 } }, { children: item }));
|
|
52
53
|
var isLastItem = index === childArray.length - 1;
|
|
53
54
|
var isOddItem = childArray.length % columnCount !== 0 && isLastItem;
|
|
54
|
-
return (
|
|
55
|
+
return (_jsx(View, __assign({ style: {
|
|
55
56
|
flex: isOddItem ? 0 : 1,
|
|
56
57
|
width: isOddItem ? "".concat(100 / columnCount, "%") : undefined,
|
|
57
|
-
} }, item));
|
|
58
|
+
} }, { children: item })));
|
|
58
59
|
}, [childArray.length, columnCount]);
|
|
59
60
|
var keyExtractor = useCallback(function (_, index) { return index.toString(); }, []);
|
|
60
|
-
return (
|
|
61
|
+
return (_jsx(RadioTilesContext.Provider, __assign({ value: { isGrid: columnCount !== null } }, { children: columnCount !== null ? (_jsx(FlatList, __assign({ id: id, ref: ref, data: childArray, numColumns: columnCount, scrollEnabled: false, renderItem: renderItem, keyExtractor: keyExtractor, columnWrapperStyle: [styles.columnWrapper], style: { overflow: 'visible' } }, others))) : (_jsx(View, __assign({ ref: ref, id: id, style: [styles.container] }, others, { children: children }))) })));
|
|
61
62
|
});
|
|
62
63
|
RadioTiles.displayName = ComponentName.RadioTiles;
|
|
63
64
|
export default RadioTiles;
|
|
64
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
65
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmFkaW9UaWxlcy5uYXRpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL3JhZGlvL3RpbGVzL1JhZGlvVGlsZXMubmF0aXZlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQTtBQUVoRSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0scUJBQXFCLENBQUE7QUFDaEQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLDRCQUE0QixDQUFBO0FBQ3RELE9BQU8sRUFBd0IsV0FBVyxFQUFFLE9BQU8sRUFBRSxRQUFRLEVBQUUsVUFBVSxFQUFFLGNBQWMsRUFBRSxNQUFNLE9BQU8sQ0FBQTtBQUN4RyxPQUFPLEVBQUUsUUFBUSxFQUFFLElBQUksRUFBRSxNQUFNLGNB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FBSyxFQUFFLEVBQUUsUUFBUSxFQUFFLFNBQVMsRUFBRSxJQUMxQixNQUFNLEVBQ1YsQ0FDSCxDQUFDLENBQUMsQ0FBQyxDQUNGLEtBQUMsSUFBSSxhQUFDLEdBQUcsRUFBRSxHQUFzQixFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsS0FBSyxFQUFFLENBQUMsTUFBTSxDQUFDLFNBQVMsQ0FBQyxJQUFNLE1BQU0sY0FDN0UsUUFBUSxJQUNKLENBQ1IsSUFDMEIsQ0FDOUIsQ0FBQTtBQUNILENBQUMsQ0FDRixDQUFBO0FBRUQsVUFBVSxDQUFDLFdBQVcsR0FBRyxhQUFhLENBQUMsVUFBVSxDQUFBO0FBRWpELGVBQWUsVUFBVSxDQUFBIn0=
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { View } from 'react-native';
|
|
3
|
-
import { AlignableProps
|
|
2
|
+
import { AlignableProps } from '../../../objects/facets/Alignable';
|
|
3
|
+
import { Dev } from '../../../objects/facets/Dev';
|
|
4
4
|
import { CommonProps } from '../../../objects/facets/CommonProps';
|
|
5
5
|
import { GridItemSize, GridSize } from '../../../objects/facets/Grid';
|
|
6
|
+
import { ReactNode } from 'react';
|
|
6
7
|
export interface RadioTilesProps extends AlignableProps, CommonProps, Dev {
|
|
7
|
-
children:
|
|
8
|
+
children: ReactNode;
|
|
8
9
|
accessibilityLabelledBy?: string;
|
|
9
10
|
numberCols?: GridSize | GridItemSize;
|
|
10
11
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import { RadioTilesContextProps } from '
|
|
3
|
-
export declare const RadioTilesContext:
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RadioTilesContextProps } from '../../../../components/radio/tiles/context/RadioTilesContextProps';
|
|
3
|
+
export declare const RadioTilesContext: import("react").Context<RadioTilesContextProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export var RadioTilesContext =
|
|
1
|
+
import { createContext } from 'react';
|
|
2
|
+
export var RadioTilesContext = createContext({
|
|
3
3
|
isGrid: false,
|
|
4
4
|
});
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmFkaW9UaWxlc0NvbnRleHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9jb21wb25lbnRzL3JhZGlvL3RpbGVzL2NvbnRleHQvUmFkaW9UaWxlc0NvbnRleHQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxPQUFPLENBQUE7QUFHckMsTUFBTSxDQUFDLElBQU0saUJBQWlCLEdBQUcsYUFBYSxDQUF5QjtJQUNyRSxNQUFNLEVBQUUsS0FBSztDQUNkLENBQUMsQ0FBQSJ9
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
1
|
+
export * from '../../../../components/radio/tiles/context/RadioTilesContext';
|
|
2
|
+
export * from '../../../../components/radio/tiles/context/RadioTilesContextProps';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from '../../../../components/radio/tiles/context/RadioTilesContext';
|
|
2
|
+
export * from '../../../../components/radio/tiles/context/RadioTilesContextProps';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9jb21wb25lbnRzL3JhZGlvL3RpbGVzL2NvbnRleHQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvREFBb0QsQ0FBQTtBQUNsRSxjQUFjLHlEQUF5RCxDQUFBIn0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import RadioTiles from '
|
|
1
|
+
import RadioTiles from '../../../components/radio/tiles/RadioTiles';
|
|
2
2
|
export default RadioTiles;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import RadioTiles from '
|
|
1
|
+
import RadioTiles from '../../../components/radio/tiles/RadioTiles';
|
|
2
2
|
export default RadioTiles;
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL3JhZGlvL3RpbGVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sVUFBVSxNQUFNLHFDQUFxQyxDQUFBO0FBRTVELGVBQWUsVUFBVSxDQUFBIn0=
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { RadioTileProps } from '../../../../components/radio/tiles/tile/RadioTileProps';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* radioTile Component
|
|
5
5
|
* @param checked {boolean} Checked radio
|
|
@@ -19,5 +19,5 @@ import React from 'react';
|
|
|
19
19
|
* @param className {string} Additional css classes (ONLY FOR WEB)
|
|
20
20
|
* @param required {boolean} Required radio
|
|
21
21
|
*/
|
|
22
|
-
declare const RadioTile:
|
|
22
|
+
declare const RadioTile: import("react").ForwardRefExoticComponent<RadioTileProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
23
|
export default RadioTile;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
3
|
import { ComponentName } from '../../../../components/enumsComponentsName';
|
|
3
4
|
import { Icon, IconSize } from '../../../../components/icon';
|
|
4
5
|
import { Sticker } from '../../../../components/sticker';
|
|
5
|
-
import { useTrilogyContext } from '../../../../context';
|
|
6
|
+
import { useTrilogyContext } from '../../../../context/TrilogyContext';
|
|
6
7
|
import { hashClass } from '../../../../helpers/hashClassesHelpers';
|
|
7
8
|
import { VariantState } from '../../../../objects/facets/Variant';
|
|
8
9
|
import { is } from '../../../../services/classify';
|
|
9
10
|
import clsx from 'clsx';
|
|
10
|
-
import
|
|
11
|
+
import { forwardRef, useId, useRef } from 'react';
|
|
11
12
|
/**
|
|
12
13
|
* radioTile Component
|
|
13
14
|
* @param checked {boolean} Checked radio
|
|
@@ -27,11 +28,11 @@ import React from 'react';
|
|
|
27
28
|
* @param className {string} Additional css classes (ONLY FOR WEB)
|
|
28
29
|
* @param required {boolean} Required radio
|
|
29
30
|
*/
|
|
30
|
-
var RadioTile =
|
|
31
|
-
var checked = _a.checked, className = _a.className, disabled = _a.disabled, readonly = _a.readonly, _b = _a.id, id = _b === void 0 ?
|
|
31
|
+
var RadioTile = forwardRef(function (_a, ref) {
|
|
32
|
+
var checked = _a.checked, className = _a.className, disabled = _a.disabled, readonly = _a.readonly, _b = _a.id, id = _b === void 0 ? useId() : _b, label = _a.label, onChange = _a.onChange, name = _a.name, value = _a.value, description = _a.description, icon = _a.icon, horizontal = _a.horizontal, required = _a.required, sticker = _a.sticker, _c = _a.stickerVariant, stickerVariant = _c === void 0 ? VariantState.ACCENT : _c, testId = _a.testId, others = __rest(_a, ["checked", "className", "disabled", "readonly", "id", "label", "onChange", "name", "value", "description", "icon", "horizontal", "required", "sticker", "stickerVariant", "testId"]);
|
|
32
33
|
var styled = useTrilogyContext().styled;
|
|
33
|
-
var refInput =
|
|
34
|
-
return (
|
|
34
|
+
var refInput = useRef(null);
|
|
35
|
+
return (_jsxs("div", __assign({ ref: ref, className: hashClass(styled, clsx('radio-tile', horizontal && is('horizontal'), className)), role: 'button', onClick: function (e) {
|
|
35
36
|
var _a;
|
|
36
37
|
if (disabled || readonly)
|
|
37
38
|
return;
|
|
@@ -39,26 +40,17 @@ var RadioTile = React.forwardRef(function (_a, ref) {
|
|
|
39
40
|
if (target.closest('input, label'))
|
|
40
41
|
return;
|
|
41
42
|
(_a = refInput.current) === null || _a === void 0 ? void 0 : _a.click();
|
|
42
|
-
} },
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
} }, others)),
|
|
53
|
-
React.createElement("div", { className: hashClass(styled, clsx('radio-container')) },
|
|
54
|
-
icon && React.createElement(Icon, { name: icon, size: IconSize.MEDIUM }),
|
|
55
|
-
horizontal ? (React.createElement("span", null,
|
|
56
|
-
React.createElement("label", { htmlFor: id, className: hashClass(styled, clsx('radio-title')) }, label),
|
|
57
|
-
description && React.createElement("span", { className: hashClass(styled, clsx('radio-description')) }, description))) : (React.createElement(React.Fragment, null,
|
|
58
|
-
React.createElement("label", { htmlFor: id, className: hashClass(styled, clsx('radio-title')) }, label),
|
|
59
|
-
description && React.createElement("span", { className: hashClass(styled, clsx('radio-description')) }, description)))),
|
|
60
|
-
sticker && React.createElement(Sticker, { label: sticker, variant: stickerVariant, className: 'radio-sticker', small: true })));
|
|
43
|
+
} }, { children: [_jsx("input", __assign({ "data-testid": testId, ref: refInput, type: 'radio', readOnly: readonly, id: id, disabled: disabled, name: name, value: value, checked: checked, required: required, onChange: function (e) {
|
|
44
|
+
if (onChange && !disabled && !readonly) {
|
|
45
|
+
onChange(Object.assign(e, {
|
|
46
|
+
radioId: e.target.id,
|
|
47
|
+
radioValue: e.target.value,
|
|
48
|
+
radioName: e.target.name,
|
|
49
|
+
radioChecked: e.target.checked,
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
} }, others)), _jsxs("div", __assign({ className: hashClass(styled, clsx('radio-container')) }, { children: [icon && _jsx(Icon, { name: icon, size: IconSize.MEDIUM }), horizontal ? (_jsxs("span", { children: [_jsx("label", __assign({ htmlFor: id, className: hashClass(styled, clsx('radio-title')) }, { children: label })), description && _jsx("span", __assign({ className: hashClass(styled, clsx('radio-description')) }, { children: description }))] })) : (_jsxs(_Fragment, { children: [_jsx("label", __assign({ htmlFor: id, className: hashClass(styled, clsx('radio-title')) }, { children: label })), description && _jsx("span", __assign({ className: hashClass(styled, clsx('radio-description')) }, { children: description }))] }))] })), sticker && _jsx(Sticker, { label: sticker, variant: stickerVariant, className: 'radio-sticker', small: true })] })));
|
|
61
53
|
});
|
|
62
54
|
RadioTile.displayName = ComponentName.RadioTile;
|
|
63
55
|
export default RadioTile;
|
|
64
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmFkaW9UaWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vY29tcG9uZW50cy9yYWRpby90aWxlcy90aWxlL1JhZGlvVGlsZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0NBQWtDLENBQUE7QUFDaEUsT0FBTyxFQUFFLElBQUksRUFBRSxRQUFRLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQTtBQUVsRCxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sc0JBQXNCLENBQUE7QUFDOUMsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sMEJBQTBCLENBQUE7QUFDNUQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLDhCQUE4QixDQUFBO0FBQ3hELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQTtBQUN2RCxPQUFPLEV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UFDLFdBQVcsR0FBRyxhQUFhLENBQUMsU0FBUyxDQUFBO0FBQy9DLGVBQWUsU0FBUyxDQUFBIn0=
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { RadioTileNativeProps } from '../../../../components/radio/tiles/tile/RadioTileProps';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
import { TouchableOpacity } from 'react-native';
|
|
4
4
|
/**
|
|
5
5
|
* radioTile Component
|
|
@@ -17,5 +17,5 @@ import { TouchableOpacity } from 'react-native';
|
|
|
17
17
|
* @param sticker {string} sticker label
|
|
18
18
|
* @param stickerVariant {VariantState} Sticker variant
|
|
19
19
|
*/
|
|
20
|
-
declare const RadioTile:
|
|
20
|
+
declare const RadioTile: import("react").ForwardRefExoticComponent<RadioTileNativeProps & import("react").RefAttributes<TouchableOpacity>>;
|
|
21
21
|
export default RadioTile;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { __assign, __read, __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { ComponentName } from '../../../../components/enumsComponentsName';
|
|
3
4
|
import { Icon, IconSize } from '../../../../components/icon';
|
|
4
5
|
import { SpacerSize } from '../../../../components/spacer';
|
|
5
6
|
import { Sticker } from '../../../../components/sticker';
|
|
6
7
|
import { Text, TextLevels } from '../../../../components/text';
|
|
7
|
-
import { VariantState } from '../../../../objects';
|
|
8
|
+
import { VariantState } from '../../../../objects/facets/Variant';
|
|
8
9
|
import { getColorStyle, TrilogyColor } from '../../../../objects/facets/Color';
|
|
9
|
-
import { TypographyAlign
|
|
10
|
+
import { TypographyAlign } from '../../../../objects/Typography/TypographyAlign';
|
|
11
|
+
import { TypographyColor } from '../../../../objects/Typography/TypographyColor';
|
|
10
12
|
import { TypographyBold } from '../../../../objects/Typography/TypographyBold';
|
|
11
|
-
import
|
|
13
|
+
import { useCallback, useContext, useMemo, useState, forwardRef, useId } from 'react';
|
|
12
14
|
import { Theme } from '../../../../constants/theme';
|
|
13
15
|
import { TouchableOpacity, View } from 'react-native';
|
|
14
16
|
import { memoStyles } from '../../../../helpers/memoStyles';
|
|
15
|
-
import { RadioTilesContext } from '
|
|
17
|
+
import { RadioTilesContext } from '../../../../components/radio/tiles/context';
|
|
16
18
|
/**
|
|
17
19
|
* radioTile Component
|
|
18
20
|
* @param checked {boolean} Checked radio
|
|
@@ -29,8 +31,8 @@ import { RadioTilesContext } from '../context';
|
|
|
29
31
|
* @param sticker {string} sticker label
|
|
30
32
|
* @param stickerVariant {VariantState} Sticker variant
|
|
31
33
|
*/
|
|
32
|
-
var RadioTile =
|
|
33
|
-
var checked = _a.checked, disabled = _a.disabled, _b = _a.id, id = _b === void 0 ?
|
|
34
|
+
var RadioTile = forwardRef(function (_a, ref) {
|
|
35
|
+
var checked = _a.checked, disabled = _a.disabled, _b = _a.id, id = _b === void 0 ? useId() : _b, label = _a.label, onChange = _a.onChange, name = _a.name, value = _a.value, description = _a.description, icon = _a.icon, horizontal = _a.horizontal, readonly = _a.readonly, sticker = _a.sticker, _c = _a.stickerVariant, stickerVariant = _c === void 0 ? VariantState.ACCENT : _c, others = __rest(_a, ["checked", "disabled", "id", "label", "onChange", "name", "value", "description", "icon", "horizontal", "readonly", "sticker", "stickerVariant"]);
|
|
34
36
|
var isGrid = useContext(RadioTilesContext).isGrid;
|
|
35
37
|
var _d = __read(useState(0), 2), stickerHeight = _d[0], setStickerHeight = _d[1];
|
|
36
38
|
var styles = memoStyles({
|
|
@@ -86,15 +88,7 @@ var RadioTile = React.forwardRef(function (_a, ref) {
|
|
|
86
88
|
radioId: id,
|
|
87
89
|
});
|
|
88
90
|
}, [value, name, id, disabled, readonly, onChange]);
|
|
89
|
-
return (
|
|
90
|
-
React.createElement(InputRadio, { checked: checked, disabled: disabled }),
|
|
91
|
-
sticker && (React.createElement(View, { style: styles.sticker, onLayout: function (e) { return setStickerHeight(e.nativeEvent.layout.height); } },
|
|
92
|
-
React.createElement(Sticker, { label: sticker, variant: stickerVariant, className: 'radio-sticker', small: true }))),
|
|
93
|
-
icon && (React.createElement(View, { style: [styles.icon] },
|
|
94
|
-
React.createElement(Icon, { size: IconSize.SMALL, name: icon }))),
|
|
95
|
-
React.createElement(View, { style: [styles.content] },
|
|
96
|
-
label && typeof label === 'string' ? (React.createElement(Text, { level: TextLevels.ONE, typo: typoTitle }, String(label))) : (label),
|
|
97
|
-
description && typeof description.valueOf() === 'string' ? (React.createElement(Text, { level: TextLevels.TWO, typo: typoText }, String(description))) : (description))));
|
|
91
|
+
return (_jsxs(TouchableOpacity, __assign({ ref: ref, disabled: disabled, style: [styles.container], onPress: handleChange }, others, { children: [_jsx(InputRadio, { checked: checked, disabled: disabled }), sticker && (_jsx(View, __assign({ style: styles.sticker, onLayout: function (e) { return setStickerHeight(e.nativeEvent.layout.height); } }, { children: _jsx(Sticker, { label: sticker, variant: stickerVariant, className: 'radio-sticker', small: true }) }))), icon && (_jsx(View, __assign({ style: [styles.icon] }, { children: _jsx(Icon, { size: IconSize.SMALL, name: icon }) }))), _jsxs(View, __assign({ style: [styles.content] }, { children: [label && typeof label === 'string' ? (_jsx(Text, __assign({ level: TextLevels.ONE, typo: typoTitle }, { children: String(label) }))) : (label), description && typeof description.valueOf() === 'string' ? (_jsx(Text, __assign({ level: TextLevels.TWO, typo: typoText }, { children: String(description) }))) : (description)] }))] })));
|
|
98
92
|
});
|
|
99
93
|
var InputRadio = function (_a) {
|
|
100
94
|
var checked = _a.checked, disabled = _a.disabled;
|
|
@@ -122,9 +116,8 @@ var InputRadio = function (_a) {
|
|
|
122
116
|
: TrilogyColor.BACKGROUND),
|
|
123
117
|
},
|
|
124
118
|
});
|
|
125
|
-
return (
|
|
126
|
-
React.createElement(View, { style: [styles.inputRadio] })));
|
|
119
|
+
return (_jsx(View, __assign({ style: [styles.input] }, { children: _jsx(View, { style: [styles.inputRadio] }) })));
|
|
127
120
|
};
|
|
128
121
|
RadioTile.displayName = Compon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UMsS0FBSyxDQUFDLGdCQUN6QixLQUFDLElBQUksSUFBQyxLQUFLLEVBQUUsQ0FBQyxNQUFNLENBQUMsVUFBVSxDQUFDLEdBQUksSUFDL0IsQ0FDUixDQUFBO0FBQ0gsQ0FBQyxDQUFBO0FBRUQsU0FBUyxDQUFDLFdBQVcsR0FBRyxhQUFhLENBQUMsU0FBUyxDQUFBO0FBQy9DLGVBQWUsU0FBUyxDQUFBIn0=
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Dev
|
|
1
|
+
import { Dev } from '../../../../objects/facets/Dev';
|
|
2
|
+
import { VariantProps } from '../../../../objects/facets/Variant';
|
|
2
3
|
import { TouchableOpacity } from 'react-native';
|
|
3
4
|
import { IconName, IconNameValues } from '../../../../components/icon';
|
|
4
5
|
import { RadioNativeProps, RadioProps } from '../../../../components/radio/RadioProps';
|
|
@@ -6,7 +7,7 @@ import { ReactNode } from 'react';
|
|
|
6
7
|
interface RadioTilePropsCommon extends Dev {
|
|
7
8
|
horizontal?: boolean;
|
|
8
9
|
icon?: IconName | IconNameValues;
|
|
9
|
-
description?: string |
|
|
10
|
+
description?: string | ReactNode;
|
|
10
11
|
sticker?: string;
|
|
11
12
|
stickerVariant?: VariantProps['variant'];
|
|
12
13
|
label?: string | ReactNode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import RadioTile from '
|
|
1
|
+
import RadioTile from '../../../../components/radio/tiles/tile/RadioTile';
|
|
2
2
|
export default RadioTile;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import RadioTile from '
|
|
1
|
+
import RadioTile from '../../../../components/radio/tiles/tile/RadioTile';
|
|
2
2
|
export default RadioTile;
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9jb21wb25lbnRzL3JhZGlvL3RpbGVzL3RpbGUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxTQUFTLE1BQU0seUNBQXlDLENBQUE7QUFFL0QsZUFBZSxTQUFTLENBQUEifQ==
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { RangeProps } from '
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RangeProps } from '../../components/range/RangeProps';
|
|
3
3
|
/**
|
|
4
4
|
* Range Component
|
|
5
5
|
* @param min {number} Minimum value
|
|
@@ -23,5 +23,5 @@ import { RangeProps } from './RangeProps';
|
|
|
23
23
|
* @param value {number[]} Current values array [min, max]
|
|
24
24
|
* @param onChange {InputChangeEventHandlerNative} Callback for cursor changes
|
|
25
25
|
*/
|
|
26
|
-
declare const Range:
|
|
26
|
+
declare const Range: import("react").ForwardRefExoticComponent<RangeProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
27
|
export default Range;
|