@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,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 { StatesContext } from '../../context/providerStates';
|
|
4
5
|
import { getColorStyle, TrilogyColor } from '../../objects/facets/Color';
|
|
5
|
-
import
|
|
6
|
+
import { createContext, forwardRef } from 'react';
|
|
6
7
|
import { Platform, TouchableOpacity, View } from 'react-native';
|
|
7
8
|
import { memoStyles } from '../../helpers/memoStyles';
|
|
8
|
-
import { Skeleton } from '
|
|
9
|
+
import { Skeleton } from '../../components/skeleton';
|
|
9
10
|
import { getRadius, Radius } from '../../objects/facets/Radius';
|
|
10
11
|
export var CardContext = createContext({
|
|
11
12
|
floating: false,
|
|
@@ -24,10 +25,10 @@ export var CardContext = createContext({
|
|
|
24
25
|
* @param reversed {boolean} Reversed card
|
|
25
26
|
* @param active {boolean} Activated card
|
|
26
27
|
* @param id {string} Custom id attribute
|
|
27
|
-
* @param children {
|
|
28
|
+
* @param children {ReactNode} Card content
|
|
28
29
|
* @param fullheight {boolean} Full height card
|
|
29
30
|
*/
|
|
30
|
-
var Card =
|
|
31
|
+
var Card = forwardRef(function (_a, ref) {
|
|
31
32
|
var children = _a.children, flat = _a.flat, horizontal = _a.horizontal, floating = _a.floating, onClick = _a.onClick, skeleton = _a.skeleton, reversed = _a.reversed, fullheight = _a.fullheight, active = _a.active, radius = _a.radius, others = __rest(_a, ["children", "flat", "horizontal", "floating", "onClick", "skeleton", "reversed", "fullheight", "active", "radius"]);
|
|
32
33
|
var borderColor = getColorStyle(TrilogyColor.STROKE_FADE);
|
|
33
34
|
var cardRadius = getRadius(radius !== null && radius !== void 0 ? radius : Radius.LG);
|
|
@@ -69,44 +70,38 @@ var Card = React.forwardRef(function (_a, ref) {
|
|
|
69
70
|
flexDirection: 'column-reverse',
|
|
70
71
|
},
|
|
71
72
|
});
|
|
72
|
-
var CardSkeleton = function () { return (
|
|
73
|
+
var CardSkeleton = function () { return (_jsx(Skeleton, __assign({ style: styles.skeleton, width: '100%', height: 50, borderRadius: cardRadius, testID: 'skeleton-id' }, { children: children }))); };
|
|
73
74
|
var ShadowWrapper = function (_a) {
|
|
74
75
|
var children = _a.children;
|
|
75
|
-
return (
|
|
76
|
+
return (_jsx(View, __assign({ style: [!flat && !floating ? styles.shadow : undefined] }, { children: children })));
|
|
76
77
|
};
|
|
77
78
|
var cardView;
|
|
78
79
|
if (skeleton) {
|
|
79
|
-
return
|
|
80
|
+
return _jsx(CardSkeleton, {});
|
|
80
81
|
}
|
|
81
82
|
if (horizontal) {
|
|
82
|
-
cardView = (
|
|
83
|
+
cardView = (_jsx(View, __assign({ ref: ref, style: [styles.horizontal, styles.card], testID: 'card-horizontal' }, { children: children })));
|
|
83
84
|
}
|
|
84
85
|
else if (reversed) {
|
|
85
|
-
cardView = (
|
|
86
|
+
cardView = (_jsx(View, __assign({ ref: ref, style: [styles.reversed, styles.card], testID: 'card-reversed' }, { children: children })));
|
|
86
87
|
}
|
|
87
88
|
else {
|
|
88
|
-
cardView = (
|
|
89
|
+
cardView = (_jsx(View, __assign({ ref: ref, style: [styles.card] }, others, { children: children })));
|
|
89
90
|
}
|
|
90
|
-
return onClick ? (
|
|
91
|
-
React.createElement(CardContext.Provider, { value: {
|
|
91
|
+
return onClick ? (_jsx(StatesContext.Provider, __assign({ value: { inverted: false, active: !!active, flat: !!flat } }, { children: _jsx(CardContext.Provider, __assign({ value: {
|
|
92
92
|
floating: floating || false,
|
|
93
93
|
backgroundColor: 'white',
|
|
94
94
|
horizontal: horizontal || false,
|
|
95
95
|
reversed: reversed || false,
|
|
96
96
|
active: active || false,
|
|
97
|
-
} },
|
|
98
|
-
React.createElement(View, { style: { width: '100%' } },
|
|
99
|
-
React.createElement(TouchableOpacity, { testID: 'card-click-test', style: { width: '100%' }, onPress: onClick, activeOpacity: 0.85 },
|
|
100
|
-
React.createElement(ShadowWrapper, null, cardView)))))) : (React.createElement(StatesContext.Provider, { value: { inverted: false, active: !!active, flat: !!flat } },
|
|
101
|
-
React.createElement(CardContext.Provider, { value: {
|
|
97
|
+
} }, { children: _jsx(View, __assign({ style: { width: '100%' } }, { children: _jsx(TouchableOpacity, __assign({ testID: 'card-click-test', style: { width: '100%' }, onPress: onClick, activeOpacity: 0.85 }, { children: _jsx(ShadowWrapper, { children: cardView }) })) })) })) }))) : (_jsx(StatesContext.Provider, __assign({ value: { inverted: false, active: !!active, flat: !!flat } }, { children: _jsx(CardContext.Provider, __assign({ value: {
|
|
102
98
|
floating: floating || false,
|
|
103
99
|
backgroundColor: 'white',
|
|
104
100
|
horizontal: horizontal || false,
|
|
105
101
|
reversed: reversed || false,
|
|
106
102
|
active: active || false,
|
|
107
|
-
} },
|
|
108
|
-
React.createElement(ShadowWrapper, null, cardView))));
|
|
103
|
+
} }, { children: _jsx(ShadowWrapper, { children: cardView }) })) })));
|
|
109
104
|
});
|
|
110
105
|
Card.displayName = ComponentName.Card;
|
|
111
106
|
export default Card;
|
|
112
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
107
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2FyZC5uYXRpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9jb21wb25lbnRzL2NhcmQvQ2FyZC5uYXRpdmUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGtDQUFrQyxDQUFBO0FBQ2hFLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQTtBQUN4RCxPQUFPLEVBQUUsYUFBYSxFQUFFLFlBQVksRUFBRSxNQUFNLHdCQUF3QixDQUFBO0FBQ3BFLE9BQU8sRUFBRSxhQUFhLEVBQXFCLFVBQVUsRUFBRSxNQUFNLE9BQU8sQ0FBQTtBQUNwRSxPQUFPLEVBQUUsUUFBUSxFQUFFLGdCQUFnQixFQUFFLElBQUksRUFBRSxNQUFNLGNBQWMsQ0FBQTtBQUMvRCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sc0JBQXNCLENBQUE7QUFDakQsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLHVCQUF1QixDQUFBO0FBRWhELE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxFQUFFLE1BQU0seUJBQXlCLENBQUE7QUFFM0QsTUFBTSxDQUFDLElBQU0sV0FBVyxHQUFHLGFBQWEsQ0FBQztJQUN2QyxRQUFRLEVBQUUsS0FBSztJQUNmLGVBQWUsRUFBRSxFQUFFO0lBQ25CLFVBQVUsRUFBRSxLQUFLO0lBQ2pCLFFBQVEsRUFBRSxLQUFLO0lBQ2YsTU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LEVBQUUsT0FBTyxFQUFFLGFBQWEsRUFBRSxJQUFJLGdCQUN4RyxLQUFDLGFBQWEsY0FBRSxRQUFRLEdBQWlCLElBQ3hCLElBQ2QsSUFDYyxJQUNBLENBQzFCLENBQUMsQ0FBQyxDQUFDLENBQ0YsS0FBQyxhQUFhLENBQUMsUUFBUSxhQUFDLEtBQUssRUFBRSxFQUFFLFFBQVEsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLENBQUMsQ0FBQyxNQUFNLEVBQUUsSUFBSSxFQUFFLENBQUMsQ0FBQyxJQUFJLEVBQUUsZ0JBQ2hGLEtBQUMsV0FBVyxDQUFDLFFBQVEsYUFDbkIsS0FBSyxFQUFFO2dCQUNMLFFBQVEsRUFBRSxRQUFRLElBQUksS0FBSztnQkFDM0IsZUFBZSxFQUFFLE9BQU87Z0JBQ3hCLFVBQVUsRUFBRSxVQUFVLElBQUksS0FBSztnQkFDL0IsUUFBUSxFQUFFLFFBQVEsSUFBSSxLQUFLO2dCQUMzQixNQUFNLEVBQUUsTUFBTSxJQUFJLEtBQUs7YUFDeEIsZ0JBRUQsS0FBQyxhQUFhLGNBQUUsUUFBUSxHQUFpQixJQUNwQixJQUNBLENBQzFCLENBQUE7QUFDSCxDQUFDLENBQ0YsQ0FBQTtBQUVELElBQUksQ0FBQyxXQUFXLEdBQUcsYUFBYSxDQUFDLElBQUksQ0FBQTtBQUVyQyxlQUFlLElBQUksQ0FBQSJ9
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { View } from 'react-native';
|
|
3
2
|
import { ClickEvent } from '../../events/OnClickEvent';
|
|
4
3
|
import { Accessibility } from '../../objects/facets/Accessibility';
|
|
@@ -7,11 +6,12 @@ import { CommonProps } from '../../objects/facets/CommonProps';
|
|
|
7
6
|
import { Fullheight } from '../../objects/facets/Fullheight';
|
|
8
7
|
import { Dev } from '../../objects/facets/Dev';
|
|
9
8
|
import { Radius } from '../../objects/facets/Radius';
|
|
9
|
+
import { ReactNode } from 'react';
|
|
10
10
|
/**
|
|
11
11
|
* Card Interface
|
|
12
12
|
*/
|
|
13
13
|
export interface CardProps extends Fullheight, Clickable, Accessibility, CommonProps, Dev {
|
|
14
|
-
children?:
|
|
14
|
+
children?: ReactNode;
|
|
15
15
|
flat?: boolean;
|
|
16
16
|
horizontal?: boolean;
|
|
17
17
|
floating?: boolean;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import { CardContentProps } from '
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CardContentProps } from '../../../components/card/content/CardContentProps';
|
|
3
3
|
/**
|
|
4
4
|
* Card Content Component
|
|
5
|
-
* @param children {
|
|
5
|
+
* @param children {ReactNode} Custom Card Content Children
|
|
6
6
|
* @param id {string} Custom id attribute
|
|
7
7
|
* @param testId {string} Test Id for Test Integration
|
|
8
8
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
9
9
|
* @param className {string} Additional CSS Classes
|
|
10
10
|
*/
|
|
11
|
-
declare const CardContent:
|
|
11
|
+
declare const CardContent: import("react").ForwardRefExoticComponent<CardContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
12
|
export default CardContent;
|
|
@@ -1,22 +1,23 @@
|
|
|
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 { useTrilogyContext } from '../../../context/TrilogyContext';
|
|
4
5
|
import { hashClass } from '../../../helpers/hashClassesHelpers';
|
|
5
6
|
import clsx from 'clsx';
|
|
6
|
-
import
|
|
7
|
+
import { forwardRef } from 'react';
|
|
7
8
|
/**
|
|
8
9
|
* Card Content Component
|
|
9
|
-
* @param children {
|
|
10
|
+
* @param children {ReactNode} Custom Card Content Children
|
|
10
11
|
* @param id {string} Custom id attribute
|
|
11
12
|
* @param testId {string} Test Id for Test Integration
|
|
12
13
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
13
14
|
* @param className {string} Additional CSS Classes
|
|
14
15
|
*/
|
|
15
|
-
var CardContent =
|
|
16
|
+
var CardContent = forwardRef(function (_a, ref) {
|
|
16
17
|
var children = _a.children, className = _a.className, id = _a.id, testId = _a.testId, others = __rest(_a, ["children", "className", "id", "testId"]);
|
|
17
18
|
var styled = useTrilogyContext().styled;
|
|
18
|
-
return (
|
|
19
|
+
return (_jsx("div", __assign({ "data-testid": testId, ref: ref, id: id, className: hashClass(styled, clsx('card-content', className)) }, others, { children: children })));
|
|
19
20
|
});
|
|
20
21
|
CardContent.displayName = ComponentName.CardContent;
|
|
21
22
|
export default CardContent;
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2FyZENvbnRlbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL2NhcmQvY29udGVudC9DYXJkQ29udGVudC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0NBQWtDLENBQUE7QUFDaEUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sMEJBQTBCLENBQUE7QUFDNUQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLDhCQUE4QixDQUFBO0FBQ3hELE9BQU8sSUFBSSxNQUFNLE1BQU0sQ0FBQTtBQUN2QixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sT0FBTyxDQUFBO0FBR2xDOzs7Ozs7O0dBT0c7QUFDSCxJQUFNLFdBQVcsR0FBRyxVQUFVLENBQzVCLFVBQUMsRUFBOEMsRUFBRSxHQUFHO0lBQWpELElBQUEsUUFBUSxjQUFBLEVBQUUsU0FBUyxlQUFBLEVBQUUsRUFBRSxRQUFBLEVBQUUsTUFBTSxZQUFBLEVBQUssTUFBTSxjQUE1Qyx5Q0FBOEMsQ0FBRjtJQUNuQyxJQUFBLE1BQU0sR0FBSyxpQkFBaUIsRUFBRSxPQUF4QixDQUF3QjtJQUN0QyxPQUFPLENBQ0wsc0NBQWtCLE1BQU0sRUFBRSxHQUFHLEVBQUUsR0FBRyxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsU0FBUyxFQUFFLFNBQVMsQ0FBQyxNQUFNLEVBQUUsSUFBSSxDQUFDLGNBQWMsRUFBRSxTQUFTLENBQUMsQ0FBQyxJQUFNLE1BQU0sY0FDbEgsUUFBUSxJQUNMLENBQ1AsQ0FBQTtBQUNILENBQUMsQ0FDRixDQUFBO0FBRUQsV0FBVyxDQUFDLFdBQVcsR0FBRyxhQUFhLENBQUMsV0FBVyxDQUFBO0FBQ25ELGVBQWUsV0FBVyxDQUFBIn0=
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { View } from 'react-native';
|
|
3
|
-
import { CardContentProps } from '
|
|
3
|
+
import { CardContentProps } from '../../../components/card/content/CardContentProps';
|
|
4
4
|
/**
|
|
5
5
|
* Card Content Component
|
|
6
|
-
* @param children {
|
|
6
|
+
* @param children {ReactNode} Custom Card Content Children
|
|
7
7
|
* @param id {string} Custom id attribute
|
|
8
8
|
* @param testId {string} Test Id for Test Integration
|
|
9
9
|
*/
|
|
10
|
-
declare const CardContent:
|
|
10
|
+
declare const CardContent: import("react").ForwardRefExoticComponent<CardContentProps & import("react").RefAttributes<View>>;
|
|
11
11
|
export default CardContent;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
3
|
import { CardContext } from '../../../components/card/Card.native';
|
|
3
4
|
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
4
|
-
import
|
|
5
|
+
import { useContext, forwardRef } from 'react';
|
|
5
6
|
import { View } from 'react-native';
|
|
6
7
|
import { memoStyles } from '../../../helpers/memoStyles';
|
|
7
8
|
/**
|
|
8
9
|
* Card Content Component
|
|
9
|
-
* @param children {
|
|
10
|
+
* @param children {ReactNode} Custom Card Content Children
|
|
10
11
|
* @param id {string} Custom id attribute
|
|
11
12
|
* @param testId {string} Test Id for Test Integration
|
|
12
13
|
*/
|
|
13
|
-
var CardContent =
|
|
14
|
+
var CardContent = forwardRef(function (_a, ref) {
|
|
14
15
|
var children = _a.children, testId = _a.testId, others = __rest(_a, ["children", "testId"]);
|
|
15
16
|
var cardContextValues = useContext(CardContext);
|
|
16
17
|
var styles = memoStyles({
|
|
@@ -20,8 +21,8 @@ var CardContent = React.forwardRef(function (_a, ref) {
|
|
|
20
21
|
flex: cardContextValues.horizontal ? 1 : 0,
|
|
21
22
|
},
|
|
22
23
|
});
|
|
23
|
-
return (
|
|
24
|
+
return (_jsx(View, __assign({ testID: testId, ref: ref, style: styles.card }, others, { children: children })));
|
|
24
25
|
});
|
|
25
26
|
CardContent.displayName = ComponentName.CardContent;
|
|
26
27
|
export default CardContent;
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2FyZENvbnRlbnQubmF0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vY29tcG9uZW50cy9jYXJkL2NvbnRlbnQvQ2FyZENvbnRlbnQubmF0aXZlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQTtBQUMzRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0NBQWtDLENBQUE7QUFDaEUsT0FBTyxFQUFFLFVBQVUsRUFBRSxVQUFVLEVBQUUsTUFBTSxPQUFPLENBQUE7QUFDOUMsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLGNBQWMsQ0FBQTtBQUNuQyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sc0JBQXNCLENBQUE7QUFHakQ7Ozs7O0dBS0c7QUFDSCxJQUFNLFdBQVcsR0FBRyxVQUFVLENBQzVCLFVBQUMsRUFBK0IsRUFBRSxHQUFHO0lBQWxDLElBQUEsUUFBUSxjQUFBLEVBQUUsTUFBTSxZQUFBLEVBQUssTUFBTSxjQUE3QixzQkFBK0IsQ0FBRjtJQUM1QixJQUFNLGlCQUFpQixHQUFHLFVBQVUsQ0FBQyxXQUFXLENBQUMsQ0FBQTtJQUVqRCxJQUFNLE1BQU0sR0FBRyxVQUFVLENBQUM7UUFDeEIsSUFBSSxFQUFFO1lBQ0osT0FBTyxFQUFFLEVBQUU7WUFDWCxTQUFTLEVBQUUsRUFBRTtZQUNiLElBQUksRUFBRSxpQkFBaUIsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztTQUMzQztLQUNGLENBQUMsQ0FBQTtJQUVGLE9BQU8sQ0FDTCxLQUFDLElBQUksYUFBQyxNQUFNLEVBQUUsTUFBTSxFQUFFLEdBQUcsRUFBRSxHQUFHLEVBQUUsS0FBSyxFQUFFLE1BQU0sQ0FBQyxJQUFJLElBQU0sTUFBTSxjQUMzRCxRQUFRLElBQ0osQ0FDUixDQUFBO0FBQ0gsQ0FBQyxDQUNGLENBQUE7QUFFRCxXQUFXLENBQUMsV0FBVyxHQUFHLGFBQWEsQ0FBQyxXQUFXLENBQUE7QUFFbkQsZUFBZSxXQUFXLENBQUEifQ==
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { View } from 'react-native';
|
|
3
2
|
import { Accessibility } from '../../../objects/facets/Accessibility';
|
|
4
3
|
import { CommonProps } from '../../../objects/facets/CommonProps';
|
|
5
4
|
import { Dev } from '../../../objects/facets/Dev';
|
|
5
|
+
import { ReactNode } from 'react';
|
|
6
6
|
/**
|
|
7
7
|
* Card Content Interface
|
|
8
8
|
*/
|
|
9
9
|
export interface CardContentProps extends Accessibility, CommonProps, Dev {
|
|
10
|
-
children?:
|
|
10
|
+
children?: ReactNode;
|
|
11
11
|
}
|
|
12
12
|
export type CardContentRef = HTMLDivElement;
|
|
13
13
|
export type CardContentNativeRef = View;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import CardContent from '
|
|
1
|
+
import CardContent from '../../../components/card/content/CardContent';
|
|
2
2
|
export default CardContent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import CardContent from '
|
|
1
|
+
import CardContent from '../../../components/card/content/CardContent';
|
|
2
2
|
export default CardContent;
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL2NhcmQvY29udGVudC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLFdBQVcsTUFBTSx1Q0FBdUMsQ0FBQTtBQUUvRCxlQUFlLFdBQVcsQ0FBQSJ9
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { CardImageProps } from '
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CardImageProps } from '../../../components/card/image/CardImageProps';
|
|
3
3
|
/**
|
|
4
4
|
* Card Image Component
|
|
5
5
|
* @param src Image source
|
|
@@ -13,5 +13,5 @@ import { CardImageProps } from './CardImageProps';
|
|
|
13
13
|
* - -------------------------- WEB PROPERTIES ----------------------------------
|
|
14
14
|
* @param className Additional CSS Classes
|
|
15
15
|
*/
|
|
16
|
-
declare const CardImage:
|
|
16
|
+
declare const CardImage: import("react").ForwardRefExoticComponent<CardImageProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
17
|
export default CardImage;
|
|
@@ -1,10 +1,11 @@
|
|
|
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 { useTrilogyContext } from '../../../context/TrilogyContext';
|
|
4
5
|
import { hashClass } from '../../../helpers/hashClassesHelpers';
|
|
5
6
|
import { is } from '../../../services/classify';
|
|
6
7
|
import clsx from 'clsx';
|
|
7
|
-
import
|
|
8
|
+
import { forwardRef } from 'react';
|
|
8
9
|
/**
|
|
9
10
|
* Card Image Component
|
|
10
11
|
* @param src Image source
|
|
@@ -18,17 +19,15 @@ import * as React from 'react';
|
|
|
18
19
|
* - -------------------------- WEB PROPERTIES ----------------------------------
|
|
19
20
|
* @param className Additional CSS Classes
|
|
20
21
|
*/
|
|
21
|
-
var CardImage =
|
|
22
|
+
var CardImage = forwardRef(function (_a, ref) {
|
|
22
23
|
var src = _a.src, _b = _a.alt, alt = _b === void 0 ? '' : _b, className = _a.className, id = _a.id, size = _a.size, onClick = _a.onClick, testId = _a.testId, others = __rest(_a, ["src", "alt", "className", "id", "size", "onClick", "testId"]);
|
|
23
24
|
var styled = useTrilogyContext().styled;
|
|
24
25
|
var classes = hashClass(styled, clsx('card-image', size && is("".concat(size)), className));
|
|
25
|
-
return (
|
|
26
|
+
return (_jsx("div", __assign({ "data-testid": testId, ref: ref, id: id, onClick: function (e) {
|
|
26
27
|
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
27
28
|
e.stopPropagation();
|
|
28
|
-
}, className: classes },
|
|
29
|
-
React.createElement("figure", __assign({ className: hashClass(styled, clsx('image')) }, others),
|
|
30
|
-
React.createElement("img", __assign({}, { src: typeof src === 'string' ? src : '' }, { alt: alt })))));
|
|
29
|
+
}, className: classes }, { children: _jsx("figure", __assign({ className: hashClass(styled, clsx('image')) }, others, { children: _jsx("img", __assign({}, { src: typeof src === 'string' ? src : '' }, { alt: alt })) })) })));
|
|
31
30
|
});
|
|
32
31
|
CardImage.displayName = ComponentName.CardImage;
|
|
33
32
|
export default CardImage;
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2FyZEltYWdlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vY29tcG9uZW50cy9jYXJkL2ltYWdlL0NhcmRJbWFnZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0NBQWtDLENBQUE7QUFDaEUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sMEJBQTBCLENBQUE7QUFDNUQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLDhCQUE4QixDQUFBO0FBQ3hELE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQTtBQUN4QyxPQUFPLElBQUksTUFBTSxNQUFNLENBQUE7QUFDdkIsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLE9BQU8sQ0FBQTtBQUdsQzs7Ozs7Ozs7Ozs7O0dBWUc7QUFDSCxJQUFNLFNBQVMsR0FBRyxVQUFVLENBQzFCLFVBQUMsRUFBa0UsRUFBRSxHQUFHO0lBQXJFLElBQUEsR0FBRyxTQUFBLEVBQUUsV0FBUSxFQUFSLEdBQUcsbUJBQUcsRUFBRSxLQUFBLEVBQUUsU0FBUyxlQUFBLEVBQUUsRUFBRSxRQUFBLEVBQUUsSUFBSSxVQUFBLEVBQUUsT0FBTyxhQUFBLEVBQUUsTUFBTSxZQUFBLEVBQUssTUFBTSxjQUFoRSw4RE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{ CardImageProps } from '../../../components/card/image/CardImageProps';
|
|
4
4
|
/**
|
|
5
5
|
* Card Image Component
|
|
6
6
|
* @param src Image source
|
|
@@ -11,5 +11,5 @@ import { CardImageProps } from './CardImageProps';
|
|
|
11
11
|
* @param testId {string} Test Id for Test Integration
|
|
12
12
|
* @param contain {boolean} Resize mode contain
|
|
13
13
|
*/
|
|
14
|
-
declare const CardImage:
|
|
14
|
+
declare const CardImage: import("react").ForwardRefExoticComponent<CardImageProps & import("react").RefAttributes<Image>>;
|
|
15
15
|
export default CardImage;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { __assign, __read, __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
3
|
import { CardContext } from '../../../components/card/Card.native';
|
|
3
4
|
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
4
|
-
import
|
|
5
|
+
import { useContext, useEffect, useState, forwardRef } from 'react';
|
|
5
6
|
import { Image, TouchableOpacity, View } from 'react-native';
|
|
6
7
|
import { memoStyles } from '../../../helpers/memoStyles';
|
|
7
8
|
/**
|
|
@@ -14,7 +15,7 @@ import { memoStyles } from '../../../helpers/memoStyles';
|
|
|
14
15
|
* @param testId {string} Test Id for Test Integration
|
|
15
16
|
* @param contain {boolean} Resize mode contain
|
|
16
17
|
*/
|
|
17
|
-
var CardImage =
|
|
18
|
+
var CardImage = forwardRef(function (_a, ref) {
|
|
18
19
|
var src = _a.src, size = _a.size, alt = _a.alt, onClick = _a.onClick, contain = _a.contain, others = __rest(_a, ["src", "size", "alt", "onClick", "contain"]);
|
|
19
20
|
var horizontal = useContext(CardContext).horizontal;
|
|
20
21
|
var maxSize = horizontal ? '50%' : '100%';
|
|
@@ -37,10 +38,9 @@ var CardImage = React.forwardRef(function (_a, ref) {
|
|
|
37
38
|
: setRatio(1);
|
|
38
39
|
}
|
|
39
40
|
}, [src, horizontal]);
|
|
40
|
-
var image = (
|
|
41
|
-
return onClick ? (
|
|
42
|
-
React.createElement(TouchableOpacity, { onPress: onClick, activeOpacity: 0.85 }, image))) : (image);
|
|
41
|
+
var image = (_jsx(Image, __assign({ ref: ref, resizeMode: contain ? 'contain' : 'cover', accessibilityLabel: alt, style: styles.cardImage, source: typeof src === 'number' ? src : { uri: src } }, others)));
|
|
42
|
+
return onClick ? (_jsx(View, { children: _jsx(TouchableOpacity, __assign({ onPress: onClick, activeOpacity: 0.85 }, { children: image })) })) : (image);
|
|
43
43
|
});
|
|
44
44
|
CardImage.displayName = ComponentName.CardImage;
|
|
45
45
|
export default CardImage;
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
46
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2FyZEltYWdlLm5hdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2NvbXBvbmVudHMvY2FyZC9pbWFnZS9DYXJkSW1hZ2UubmF0aXZlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQTtBQUMzRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0NBQWtDLENBQUE7QUFDaEUsT0FBTyxFQUFFLFVBQVUsRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFFLFVBQVUsRUFBRSxNQUFNLE9BQU8sQ0FBQTtBQUNuRSxPQUFPLEVBQUUsS0FBSyxFQUFFLGdCQUFnQixFQUFFLElBQUksRUFBRSxNQUFNLGNBQWMsQ0FBQTtBQUM1RCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sc0JBQXNCLENBQUE7QUFHakQ7Ozs7Ozs7OztHQVNHO0FBQ0gsSUFBTSxTQUFTLEdBQUcsVUFBVSxDQUMxQixVQUFDLEVBQStDLEVBQUUsR0FBRztJQUFsRCxJQUFBLEdBQUcsU0FBQSxFQUFF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react-native';
|
|
2
|
-
import { Clickable
|
|
2
|
+
import { Clickable } from '../../../objects/facets/Clickable';
|
|
3
|
+
import { Dev } from '../../../objects/facets/Dev';
|
|
3
4
|
import { CommonProps } from '../../../objects/facets/CommonProps';
|
|
4
|
-
import { CardImageSize, CardImageSizeValues } from '
|
|
5
|
+
import { CardImageSize, CardImageSizeValues } from '../../../components/card/image/CardImageEnum';
|
|
5
6
|
/**
|
|
6
7
|
* Card Image Interface
|
|
7
8
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import CardImage from '
|
|
1
|
+
import CardImage from '../../../components/card/image/CardImage';
|
|
2
2
|
export default CardImage;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import CardImage from '
|
|
1
|
+
import CardImage from '../../../components/card/image/CardImage';
|
|
2
2
|
export default CardImage;
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL2NhcmQvaW1hZ2UvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxTQUFTLE1BQU0sbUNBQW1DLENBQUE7QUFFekQsZUFBZSxTQUFTLENBQUEifQ==
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Card from '
|
|
2
|
-
import CardImage from '
|
|
3
|
-
import CardContent from '
|
|
4
|
-
export * from '
|
|
1
|
+
import Card from '../../components/card/Card';
|
|
2
|
+
import CardImage from '../../components/card/image';
|
|
3
|
+
import CardContent from '../../components/card/content';
|
|
4
|
+
export * from '../../components/card/image/CardImageEnum';
|
|
5
5
|
export { Card, CardImage, CardContent };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Card from '
|
|
2
|
-
import CardImage from '
|
|
3
|
-
import CardContent from '
|
|
4
|
-
export * from '
|
|
1
|
+
import Card from '../../components/card/Card';
|
|
2
|
+
import CardImage from '../../components/card/image';
|
|
3
|
+
import CardContent from '../../components/card/content';
|
|
4
|
+
export * from '../../components/card/image/CardImageEnum';
|
|
5
5
|
export { Card, CardImage, CardContent };
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9jb21wb25lbnRzL2NhcmQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxJQUFJLE1BQU0sd0JBQXdCLENBQUE7QUFDekMsT0FBTyxTQUFTLE1BQU0seUJBQXlCLENBQUE7QUFDL0MsT0FBTyxXQUFXLE1BQU0sMkJBQTJCLENBQUE7QUFFbkQsY0FBYyx1Q0FBdUMsQ0FBQTtBQUVyRCxPQUFPLEVBQUUsSUFBSSxFQUFFLFNBQVMsRUFBRSxXQUFXLEVBQUUsQ0FBQSJ9
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { CheckboxProps } from '
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CheckboxProps } from '../../components/checkbox/CheckboxProps';
|
|
3
3
|
/**
|
|
4
4
|
* Checkbox Component
|
|
5
5
|
* @param checked {boolean} Checked Checkbox
|
|
@@ -7,7 +7,7 @@ import { CheckboxProps } from './CheckboxProps';
|
|
|
7
7
|
* @param readonly {boolean} Readonly Checkbox
|
|
8
8
|
* @param id {string} Checkbox id (auto-generated by default)
|
|
9
9
|
* @param label {string} Label for Checkbox (incompatible with children)
|
|
10
|
-
* @param children {
|
|
10
|
+
* @param children {ReactNode} Children for Checkbox (incompatible with label)
|
|
11
11
|
* @param onChange {Function} onChange Event
|
|
12
12
|
* @param name {string} Name for checkbox
|
|
13
13
|
* @param testId {string} Test Id for Test Integration
|
|
@@ -16,5 +16,5 @@ import { CheckboxProps } from './CheckboxProps';
|
|
|
16
16
|
* @param className {string} Additional CSS Classes
|
|
17
17
|
* @param required {boolean} Required checkbox
|
|
18
18
|
*/
|
|
19
|
-
declare const Checkbox:
|
|
19
|
+
declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
20
|
export default Checkbox;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { __assign, __read, __rest } from "tslib";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useTrilogyContext } from '../../context/TrilogyContext';
|
|
3
4
|
import { hashClass } from '../../helpers/hashClassesHelpers';
|
|
4
5
|
import clsx from 'clsx';
|
|
5
|
-
import
|
|
6
|
-
import { ComponentName } from '
|
|
6
|
+
import { useEffect, useState, forwardRef, useId } from 'react';
|
|
7
|
+
import { ComponentName } from '../../components/enumsComponentsName';
|
|
7
8
|
/**
|
|
8
9
|
* Checkbox Component
|
|
9
10
|
* @param checked {boolean} Checked Checkbox
|
|
@@ -11,7 +12,7 @@ import { ComponentName } from '../enumsComponentsName';
|
|
|
11
12
|
* @param readonly {boolean} Readonly Checkbox
|
|
12
13
|
* @param id {string} Checkbox id (auto-generated by default)
|
|
13
14
|
* @param label {string} Label for Checkbox (incompatible with children)
|
|
14
|
-
* @param children {
|
|
15
|
+
* @param children {ReactNode} Children for Checkbox (incompatible with label)
|
|
15
16
|
* @param onChange {Function} onChange Event
|
|
16
17
|
* @param name {string} Name for checkbox
|
|
17
18
|
* @param testId {string} Test Id for Test Integration
|
|
@@ -20,8 +21,8 @@ import { ComponentName } from '../enumsComponentsName';
|
|
|
20
21
|
* @param className {string} Additional CSS Classes
|
|
21
22
|
* @param required {boolean} Required checkbox
|
|
22
23
|
*/
|
|
23
|
-
var Checkbox =
|
|
24
|
-
var checked = _a.checked, className = _a.className, disabled = _a.disabled, readonly = _a.readonly, _b = _a.id, id = _b === void 0 ?
|
|
24
|
+
var Checkbox = forwardRef(function (_a, ref) {
|
|
25
|
+
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, children = _a.children, required = _a.required, testId = _a.testId, others = __rest(_a, ["checked", "className", "disabled", "readonly", "id", "label", "onChange", "name", "value", "children", "required", "testId"]);
|
|
25
26
|
var styled = useTrilogyContext().styled;
|
|
26
27
|
var _c = __read(useState(checked || false), 2), _checked = _c[0], setChecked = _c[1];
|
|
27
28
|
useEffect(function () {
|
|
@@ -40,10 +41,8 @@ var Checkbox = React.forwardRef(function (_a, ref) {
|
|
|
40
41
|
})
|
|
41
42
|
: setChecked(target.checked);
|
|
42
43
|
};
|
|
43
|
-
return (
|
|
44
|
-
React.createElement("input", __assign({ "data-testid": testId, type: 'checkbox', readOnly: readonly, id: id, required: required, disabled: disabled, name: name, value: value, checked: readonly ? checked : _checked, onChange: handleOnChange }, others)),
|
|
45
|
-
React.createElement("label", { htmlFor: id, className: hashClass(styled, clsx('checkbox-label')) }, label !== null && label !== void 0 ? label : children)));
|
|
44
|
+
return (_jsxs("div", __assign({ ref: ref, className: hashClass(styled, clsx('checkbox', className)) }, { children: [_jsx("input", __assign({ "data-testid": testId, type: 'checkbox', readOnly: readonly, id: id, required: required, disabled: disabled, name: name, value: value, checked: readonly ? checked : _checked, onChange: handleOnChange }, others)), _jsx("label", __assign({ htmlFor: id, className: hashClass(styled, clsx('checkbox-label')) }, { children: label !== null && label !== void 0 ? label : children }))] })));
|
|
46
45
|
});
|
|
47
46
|
Checkbox.displayName = ComponentName.Checkbox;
|
|
48
47
|
export default Checkbox;
|
|
49
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2hlY2tib3guanM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MsUUFBUSxFQUFFLGNBQWMsSUFDcEIsTUFBTSxFQUNWLEVBQ0YseUJBQU8sT0FBTyxFQUFFLEVBQUUsRUFBRSxTQUFTLEVBQUUsU0FBUyxDQUFDLE1BQU0sRUFBRSxJQUFJLENBQUMsZ0JBQWdCLENBQUMsQ0FBQyxnQkFDckUsS0FBSyxhQUFMLEtBQUssY0FBTCxLQUFLLEdBQUksUUFBUSxJQUNaLEtBQ0osQ0FDUCxDQUFBO0FBQ0gsQ0FBQyxDQUNGLENBQUE7QUFFRCxRQUFRLENBQUMsV0FBVyxHQUFHLGFBQWEsQ0FBQyxRQUFRLENBQUE7QUFDN0MsZUFBZSxRQUFRLENBQUEifQ==
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { TouchableOpacity } from 'react-native';
|
|
3
|
-
import { CheckboxProps } from '
|
|
3
|
+
import { CheckboxProps } from '../../components/checkbox/CheckboxProps';
|
|
4
4
|
/**
|
|
5
5
|
* Checkbox Component
|
|
6
6
|
* @param checked {boolean} Checked Checkbox
|
|
@@ -12,5 +12,5 @@ import { CheckboxProps } from './CheckboxProps';
|
|
|
12
12
|
* @param name {string} Name for checkbox
|
|
13
13
|
* @param testId {string} Test Id for Test Integration
|
|
14
14
|
*/
|
|
15
|
-
declare const Checkbox:
|
|
15
|
+
declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<TouchableOpacity>>;
|
|
16
16
|
export default Checkbox;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { __read } from "tslib";
|
|
1
|
+
import { __assign, __read } 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 { IconName } from '../../components/icon/IconNameEnum';
|
|
5
6
|
import { Text } from '../../components/text';
|
|
6
7
|
import { getColorStyle, TrilogyColor } from '../../objects/facets/Color';
|
|
7
|
-
import
|
|
8
|
+
import { useEffect, useState, forwardRef, useId } from 'react';
|
|
8
9
|
import { TouchableOpacity } from 'react-native';
|
|
9
10
|
import { memoStyles } from '../../helpers/memoStyles';
|
|
10
11
|
/**
|
|
@@ -18,8 +19,8 @@ import { memoStyles } from '../../helpers/memoStyles';
|
|
|
18
19
|
* @param name {string} Name for checkbox
|
|
19
20
|
* @param testId {string} Test Id for Test Integration
|
|
20
21
|
*/
|
|
21
|
-
var Checkbox =
|
|
22
|
-
var _b = _a.id, id = _b === void 0 ?
|
|
22
|
+
var Checkbox = forwardRef(function (_a, ref) {
|
|
23
|
+
var _b = _a.id, id = _b === void 0 ? useId() : _b, checked = _a.checked, name = _a.name, onChange = _a.onChange, disabled = _a.disabled, readonly = _a.readonly, label = _a.label, testId = _a.testId;
|
|
23
24
|
var _c = __read(useState(checked || false), 2), _checked = _c[0], setChecked = _c[1];
|
|
24
25
|
useEffect(function () {
|
|
25
26
|
setChecked(checked || false);
|
|
@@ -59,10 +60,8 @@ var Checkbox = React.forwardRef(function (_a, ref) {
|
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
62
|
};
|
|
62
|
-
return (
|
|
63
|
-
React.createElement(TouchableOpacity, { style: styles.checkBox, disabled: disabled, testID: testId || id, onPressIn: function () { return handleClick(); } }, _checked && React.createElement(Icon, { size: IconSize.SMALLER, color: TrilogyColor.BACKGROUND, name: IconName.CHECK })),
|
|
64
|
-
label && typeof label.valueOf() === 'string' ? React.createElement(Text, { style: styles.label }, String(label)) : label));
|
|
63
|
+
return (_jsxs(TouchableOpacity, __assign({ ref: ref, disabled: disabled, style: styles.container, onPress: function () { return handleClick(); } }, { children: [_jsx(TouchableOpacity, __assign({ style: styles.checkBox, disabled: disabled, testID: testId || id, onPressIn: function () { return handleClick(); } }, { children: _checked && _jsx(Icon, { size: IconSize.SMALLER, color: TrilogyColor.BACKGROUND, name: IconName.CHECK }) })), label && typeof label.valueOf() === 'string' ? _jsx(Text, __assign({ style: styles.label }, { children: String(label) })) : label] })));
|
|
65
64
|
});
|
|
66
65
|
Checkbox.displayName = ComponentName.Checkbox;
|
|
67
66
|
export default Checkbox;
|
|
68
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
67
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2hlY2tib3gubmF0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vY29tcG9uZW50cy9jaGVja2JveC9DaGVja2JveC5uYXRpdmUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGtDQUFrQyxDQUFBO0FBQ2hFLE9BQU8sRUFBRSxJQUFJLEVBQUUsUUFBUSxFQUFFLE1BQU0sbUJBQW1CLENBQUE7QUFDbEQsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGdDQUFnQyxDQUFBO0FBQ3pELE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQTtBQUN4QyxPQUFPLEVBQUUsYUFBYSxFQUFFLFlBQVksRUFBRSxNQUFNLHdCQUF3QixDQUFBO0FBQ3BFLE9BQU8sRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFFLFVBQVUsRUFBRSxLQUFLLEVBQUUsTUFBTSxPQUFPLENBQUE7QUFDOUQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sY0FBYyxDQUFBO0FBQy9DLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQTtBQUdqRDs7Ozs7Ozs7OztHQVVHO0FBQ0gsSUFBTSxRQUFRLEdBQUcsVUFBVSxDQUN6QixVQUFDLEVBQTRFLEVBQUUsR0FBRztRQUEvRSxVQUFZLEVBQVosRUFBRSxtQkFBRyxLQUFLLEVBQ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