@trilogy-ds/react 4.20.2 → 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,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
4
|
import { Link } from '../../../components/link';
|
|
4
|
-
import { useTrilogyContext } from '../../../context';
|
|
5
|
+
import { useTrilogyContext } from '../../../context/TrilogyContext';
|
|
5
6
|
import { hashClass } from '../../../helpers/hashClassesHelpers';
|
|
6
7
|
import clsx from 'clsx';
|
|
7
|
-
import
|
|
8
|
+
import { forwardRef } from 'react';
|
|
8
9
|
/**
|
|
9
10
|
* Breadcrumb Item Component
|
|
10
11
|
* @param children {string} Breadcrumb Item Text
|
|
@@ -18,16 +19,15 @@ import * as React from 'react';
|
|
|
18
19
|
* @param href {string} Url. Use native-old <a> tag (only when the `to` property is not filled)
|
|
19
20
|
* @param className {string} Additional CSS Classes
|
|
20
21
|
*/
|
|
21
|
-
var BreadcrumbItem =
|
|
22
|
+
var BreadcrumbItem = forwardRef(function (_a, ref) {
|
|
22
23
|
var children = _a.children, active = _a.active, id = _a.id, href = _a.href, to = _a.to, routerLink = _a.routerLink, testId = _a.testId, onClick = _a.onClick, others = __rest(_a, ["children", "active", "id", "href", "to", "routerLink", "testId", "onClick"]);
|
|
23
24
|
var styled = useTrilogyContext().styled;
|
|
24
25
|
if (routerLink && to) {
|
|
25
26
|
var RouterLink = (routerLink ? routerLink : 'a');
|
|
26
|
-
return (
|
|
27
|
-
React.createElement(RouterLink, __assign({ className: hashClass(styled, clsx('link')), to: to }, others), children)));
|
|
27
|
+
return (_jsx("li", __assign({ ref: ref, id: id, "data-testid": testId, onClick: onClick, "aria-current": active ? 'page' : undefined }, { children: _jsx(RouterLink, __assign({ className: hashClass(styled, clsx('link')), to: to }, others, { children: children })) })));
|
|
28
28
|
}
|
|
29
|
-
return (
|
|
29
|
+
return (_jsx("li", __assign({ ref: ref, id: id, onClick: onClick, "aria-current": active ? 'page' : undefined, "data-testid": testId }, { children: active ? (children) : (_jsx(Link, __assign({ href: href }, others, { children: children }))) })));
|
|
30
30
|
});
|
|
31
31
|
BreadcrumbItem.displayName = ComponentName.BreadcrumbItem;
|
|
32
32
|
export default BreadcrumbItem;
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQnJlYWRjcnVtYkl0ZW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL2JyZWFkY3J1bWIvaXRlbS9CcmVhZGNydW1iSXRlbS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0NBQWtDLENBQUE7QUFD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0sRUFBRSxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUMsRUFBRSxFQUFFLEVBQUUsRUFBRSxJQUFNLE1BQU0sY0FDdkUsUUFBUSxJQUNFLElBQ1YsQ0FDTixDQUFBO0tBQ0Y7SUFFRCxPQUFPLENBQ0wsc0JBQUksR0FBRyxFQUFFLEdBQUcsRUFBRSxFQUFFLEVBQUUsRUFBRSxFQUFFLE9BQU8sRUFBRSxPQUFPLGtCQUFnQixNQUFNLENBQUMsQ0FBQyxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsU0FBUyxpQkFBZSxNQUFNLGdCQUNuRyxNQUFNLENBQUMsQ0FBQyxDQUFDLENBQ1IsUUFBUSxDQUNULENBQUMsQ0FBQyxDQUFDLENBQ0YsS0FBQyxJQUFJLGFBQUMsSUFBSSxFQUFFLElBQUksSUFBTSxNQUFNLGNBQ3pCLFFBQVEsSUFDSixDQUNSLElBQ0UsQ0FDTixDQUFBO0FBQ0gsQ0FBQyxDQUNGLENBQUE7QUFDRCxjQUFjLENBQUMsV0FBVyxHQUFHLGFBQWEsQ0FBQyxjQUFjLENBQUE7QUFDekQsZUFBZSxjQUFjLENBQUEifQ==
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { TouchableOpacity } from 'react-native';
|
|
3
|
-
import { BreadcrumbItemProps } from '
|
|
3
|
+
import { BreadcrumbItemProps } from '../../../components/breadcrumb/item/BreadcrumbItemProps';
|
|
4
4
|
/**
|
|
5
5
|
* Breadcrumb Item Component
|
|
6
6
|
* @param children {string} Breadcrumb Item Text
|
|
@@ -10,5 +10,5 @@ import { BreadcrumbItemProps } from './BreadcrumbItemProps';
|
|
|
10
10
|
* @param onClick {Function} Click Event
|
|
11
11
|
* @param testId {string} Test Id for Test Integration
|
|
12
12
|
*/
|
|
13
|
-
declare const BreadcrumbItem:
|
|
13
|
+
declare const BreadcrumbItem: import("react").ForwardRefExoticComponent<BreadcrumbItemProps & import("react").RefAttributes<TouchableOpacity>>;
|
|
14
14
|
export default BreadcrumbItem;
|
|
@@ -1,9 +1,10 @@
|
|
|
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 { Text } from '../../../components/text';
|
|
4
5
|
import { getColorStyle, TrilogyColor } from '../../../objects/facets/Color';
|
|
5
6
|
import { TypographyBold } from '../../../objects/Typography/TypographyBold';
|
|
6
|
-
import
|
|
7
|
+
import { forwardRef } from 'react';
|
|
7
8
|
import { Linking, StyleSheet, TouchableOpacity } from 'react-native';
|
|
8
9
|
/**
|
|
9
10
|
* Breadcrumb Item Component
|
|
@@ -14,7 +15,7 @@ import { Linking, StyleSheet, TouchableOpacity } from 'react-native';
|
|
|
14
15
|
* @param onClick {Function} Click Event
|
|
15
16
|
* @param testId {string} Test Id for Test Integration
|
|
16
17
|
*/
|
|
17
|
-
var BreadcrumbItem =
|
|
18
|
+
var BreadcrumbItem = forwardRef(function (_a, ref) {
|
|
18
19
|
var children = _a.children, active = _a.active, to = _a.to, testId = _a.testId, onClick = _a.onClick, others = __rest(_a, ["children", "active", "to", "testId", "onClick"]);
|
|
19
20
|
var textStyle = StyleSheet.create({
|
|
20
21
|
textStyle: {
|
|
@@ -23,14 +24,13 @@ var BreadcrumbItem = React.forwardRef(function (_a, ref) {
|
|
|
23
24
|
textDecorationStyle: 'solid',
|
|
24
25
|
},
|
|
25
26
|
}).textStyle;
|
|
26
|
-
return (
|
|
27
|
+
return (_jsx(TouchableOpacity, __assign({ ref: ref, testID: testId, onPress: function (e) {
|
|
27
28
|
if (to)
|
|
28
29
|
Linking.openURL(to);
|
|
29
30
|
if (onClick)
|
|
30
31
|
onClick(e);
|
|
31
|
-
} }, others),
|
|
32
|
-
React.createElement(Text, { typo: TypographyBold.TEXT_WEIGHT_MEDIUM, style: __assign({}, textStyle) }, children)));
|
|
32
|
+
} }, others, { children: _jsx(Text, __assign({ typo: TypographyBold.TEXT_WEIGHT_MEDIUM, style: __assign({}, textStyle) }, { children: children })) })));
|
|
33
33
|
});
|
|
34
34
|
BreadcrumbItem.displayName = ComponentName.BreadcrumbItem;
|
|
35
35
|
export default BreadcrumbItem;
|
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQnJlYWRjcnVtYkl0ZW0ubmF0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vY29tcG9uZW50cy9icmVhZGNydW1iL2l0ZW0vQnJlYWRjcnVtYkl0ZW0ubmF0aXZlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQTtBQUNoRSxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sbUJBQW1CLENBQUE7QUFDeEMsT0FBTyxFQUFFLGFBQWEsRUFBRSxZQUFZLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQTtBQUNwRSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0scUNBQXFDLENBQUE7QUFDcEUsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLE9BQU8sQ0FBQTtBQUNsQyxPQUFPLEVBQUUsT0FBTyxFQUFFLFVBQVUsRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGNBQWMsQ0FBQTtBQUdwRTs7Ozs7Ozs7R0FRRztBQUNILElBQU0sY0FBYyxHQUFHLFVBQVUsQ0FDL0IsVUFBQyxFQUFvRCxFQUFFLEdBQUc7SUFBdkQsSUFBQSxRQUFRLGNBQUEsRUFBRSxNQUFNLFlBQUEsRUFBRSxFQUFFLFFBQUEsRUFBRSxNQUFNLFlBQUEsRUFBRSxPQUFPLGFBQUEsRUFBSyxNQUFNLGNBQWxELGlEQUFvRCxDQUFGO0lBQ3pDLElBQUEsU0FBUyxHQUFLLFVBQVUsQ0FBQyxNQUFNLENBQUM7UUFDdEMsU0FBUyxFQUFFO1lBQ1QsS0FBSyxFQUFFLGFBQWEsQ0FBQyxZQUFZLENBQUMsSUFBSSxDQUFDO1lBQ3ZDLGtCQUFrQixFQUFFLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxXQUFXLENBQUMsQ0FBQyxDQUFDLE1BQU07WUFDbEQsbUJBQW1CLEVBQUUsT0FBTztTQUM3QjtLQUNGLENBQUMsVUFOZSxDQU1mO0lBRUYsT0FBTyxDQUNMLEtBQUMsZ0JBQWdCLGFBQ2YsR0FBRyxFQUFFLEdBQUcsRUFDUixNQUFNLEVBQUUsTUFBTSxFQUNkLE9BQU8sRUFBRSxVQUFDLENBQUM7WUFDVCxJQUFJLEVBQUU7Z0JBQUUsT0FBTyxDQUFDLE9BQU8sQ0FBQyxFQUFFLENBQUMsQ0FBQTtZQUMzQixJQUFJLE9BQU87Z0JBQUUsT0FBTyxDQUFDLENBQUMsQ0FBQyxDQUFBO1FBQ3pCLENBQUMsSUFDRyxNQUFNLGNBRVYsS0FBQyxJQUFJLGFBQUMsSUFBSSxFQUFFLGNBQWMsQ0FBQyxrQkFBa0IsRUFBRSxLQUFLLGVBQU8sU0FBUyxpQkFDakUsUUFBUSxJQUNKLElBQ1UsQ0FDcEIsQ0FBQTtBQUNILENBQUMsQ0FDRixDQUFBO0FBRUQsY0FBYyxDQUFDLFdBQVcsR0FBRyxhQUFhLENBQUMsY0FBYyxDQUFBO0FBRXpELGVBQWUsY0FBYyxDQUFBIn0=
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TouchableOpacity } from 'react-native';
|
|
3
2
|
import { Accessibility } from '../../../objects/facets/Accessibility';
|
|
4
3
|
import { Clickable } from '../../../objects/facets/Clickable';
|
|
5
4
|
import { CommonProps } from '../../../objects/facets/CommonProps';
|
|
6
5
|
import { Dev } from '../../../objects/facets/Dev';
|
|
6
|
+
import { ElementType } from 'react';
|
|
7
7
|
export interface BreadcrumbItemProps extends Accessibility, Clickable, Dev {
|
|
8
8
|
children?: string;
|
|
9
9
|
active?: boolean;
|
|
@@ -14,7 +14,7 @@ export interface BreadcrumbItemProps extends Accessibility, Clickable, Dev {
|
|
|
14
14
|
*/
|
|
15
15
|
export interface BreadcrumbItemPropsWeb extends Accessibility, Clickable, BreadcrumbItemProps, Dev, CommonProps {
|
|
16
16
|
href?: string;
|
|
17
|
-
routerLink?:
|
|
17
|
+
routerLink?: ElementType;
|
|
18
18
|
}
|
|
19
19
|
export type BreadcrumbItemRef = HTMLLIElement;
|
|
20
20
|
export type BreadcrumbItemNativeRef = TouchableOpacity;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import BreadcrumbItem from '
|
|
1
|
+
import BreadcrumbItem from '../../../components/breadcrumb/item/BreadcrumbItem';
|
|
2
2
|
export default BreadcrumbItem;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import BreadcrumbItem from '
|
|
1
|
+
import BreadcrumbItem from '../../../components/breadcrumb/item/BreadcrumbItem';
|
|
2
2
|
export default BreadcrumbItem;
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL2JyZWFkY3J1bWIvaXRlbS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLGNBQWMsTUFBTSw2Q0FBNkMsQ0FBQTtBQUV4RSxlQUFlLGNBQWMsQ0FBQSJ9
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { ButtonProps, ButtonRef } from '
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ButtonProps, ButtonRef } from '../../components/button/ButtonProps';
|
|
3
3
|
/**
|
|
4
4
|
* Button component
|
|
5
5
|
* @param loading {boolean} Loading button
|
|
@@ -18,8 +18,8 @@ import { ButtonProps, ButtonRef } from './ButtonProps';
|
|
|
18
18
|
* @param to {string} Router link destination
|
|
19
19
|
* @param href {string} Href
|
|
20
20
|
* @param name {string} Button name attribute
|
|
21
|
-
* @param routerLink {
|
|
21
|
+
* @param routerLink {ElementType} Custom Router Link component
|
|
22
22
|
* @param type {ButtonType} Button type (button|reset|submit)
|
|
23
23
|
*/
|
|
24
|
-
declare const Button:
|
|
24
|
+
declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<ButtonRef>>;
|
|
25
25
|
export default Button;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { Icon } from '../../components/icon';
|
|
3
|
-
import { useTrilogyContext } from '../../context';
|
|
4
|
+
import { useTrilogyContext } from '../../context/TrilogyContext';
|
|
4
5
|
import { hashClass } from '../../helpers/hashClassesHelpers';
|
|
5
6
|
import { getButtonVariantClassName } from '../../objects/facets/Color';
|
|
6
|
-
import { is } from '../../services/
|
|
7
|
+
import { is } from '../../services/classify';
|
|
7
8
|
import clsx from 'clsx';
|
|
8
|
-
import
|
|
9
|
-
import { ComponentName } from '
|
|
10
|
-
import { ButtonMarkup } from '
|
|
9
|
+
import { forwardRef } from 'react';
|
|
10
|
+
import { ComponentName } from '../../components/enumsComponentsName';
|
|
11
|
+
import { ButtonMarkup } from '../../components/button/ButtonEnum';
|
|
11
12
|
/**
|
|
12
13
|
* Button component
|
|
13
14
|
* @param loading {boolean} Loading button
|
|
@@ -26,10 +27,10 @@ import { ButtonMarkup } from './ButtonEnum';
|
|
|
26
27
|
* @param to {string} Router link destination
|
|
27
28
|
* @param href {string} Href
|
|
28
29
|
* @param name {string} Button name attribute
|
|
29
|
-
* @param routerLink {
|
|
30
|
+
* @param routerLink {ElementType} Custom Router Link component
|
|
30
31
|
* @param type {ButtonType} Button type (button|reset|submit)
|
|
31
32
|
*/
|
|
32
|
-
var Button =
|
|
33
|
+
var Button = forwardRef(function (_a, ref) {
|
|
33
34
|
var markup = _a.markup, loading = _a.loading, variant = _a.variant, href = _a.href, id = _a.id, fullwidth = _a.fullwidth, children = _a.children, className = _a.className, to = _a.to, accessibilityLabel = _a.accessibilityLabel, onClick = _a.onClick, name = _a.name, routerLink = _a.routerLink, type = _a.type, iconName = _a.iconName, disabled = _a.disabled, testId = _a.testId, others = __rest(_a, ["markup", "loading", "variant", "href", "id", "fullwidth", "children", "className", "to", "accessibilityLabel", "onClick", "name", "routerLink", "type", "iconName", "disabled", "testId"]);
|
|
34
35
|
var isDisabled = disabled || false;
|
|
35
36
|
var styled = useTrilogyContext().styled;
|
|
@@ -44,32 +45,26 @@ var Button = React.forwardRef(function (_a, ref) {
|
|
|
44
45
|
var classes = hashClass(styled, getClassNames(loading, variant, fullwidth, className));
|
|
45
46
|
var Tag = markup && isCorrectMarkup(markup) ? markup : 'button';
|
|
46
47
|
if (Tag === 'button' && !href && !to) {
|
|
47
|
-
return (
|
|
48
|
+
return (_jsxs("button", __assign({ "data-testid": testId, ref: ref, id: id, "aria-label": accessibilityLabel, className: classes, disabled: isDisabled, name: name, onClick: function (e) {
|
|
48
49
|
!isDisabled && (onClick === null || onClick === void 0 ? void 0 : onClick(e));
|
|
49
50
|
e.stopPropagation();
|
|
50
|
-
}, type: type !== null && type !== void 0 ? type : 'button' }, others),
|
|
51
|
-
iconName && React.createElement(Icon, { name: iconName }),
|
|
52
|
-
children));
|
|
51
|
+
}, type: type !== null && type !== void 0 ? type : 'button' }, others, { children: [iconName && _jsx(Icon, { name: iconName }), children] })));
|
|
53
52
|
}
|
|
54
53
|
if (Tag === 'input') {
|
|
55
|
-
return (
|
|
54
|
+
return (_jsx("input", __assign({ "data-testid": testId, ref: ref, id: id, className: classes, "aria-label": accessibilityLabel, name: name, onClick: function (e) {
|
|
56
55
|
!isDisabled && (onClick === null || onClick === void 0 ? void 0 : onClick(e));
|
|
57
56
|
e.stopPropagation();
|
|
58
57
|
}, disabled: isDisabled, type: type !== null && type !== void 0 ? type : 'submit', value: "".concat(children) }, others)));
|
|
59
58
|
}
|
|
60
59
|
if (routerLink && to && !isDisabled) {
|
|
61
60
|
var RouterLink = (routerLink ? routerLink : 'a');
|
|
62
|
-
return (
|
|
63
|
-
iconName && React.createElement(Icon, { name: iconName }),
|
|
64
|
-
children));
|
|
61
|
+
return (_jsxs(RouterLink, __assign({ ref: ref, "aria-label": accessibilityLabel, to: to, className: classes, "data-testid": testId }, others, { children: [iconName && _jsx(Icon, { name: iconName }), children] })));
|
|
65
62
|
}
|
|
66
|
-
return (
|
|
63
|
+
return (_jsxs("a", __assign({ "data-testid": testId, ref: ref, id: id, "aria-label": accessibilityLabel, className: classes, href: href, onClick: function (e) {
|
|
67
64
|
!isDisabled && (onClick === null || onClick === void 0 ? void 0 : onClick(e));
|
|
68
65
|
e.stopPropagation();
|
|
69
|
-
} }, others, (disabled && { 'aria-disabled': true })),
|
|
70
|
-
iconName && React.createElement(Icon, { name: iconName }),
|
|
71
|
-
children));
|
|
66
|
+
} }, others, (disabled && { 'aria-disabled': true }), { children: [iconName && _jsx(Icon, { name: iconName }), children] })));
|
|
72
67
|
});
|
|
73
68
|
Button.displayName = ComponentName.Button;
|
|
74
69
|
export default Button;
|
|
75
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
70
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQnV0dG9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vY29tcG9uZW50cy9idXR0b24vQnV0dG9uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sRUFBR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BO0FBRUQsTUFBTSxDQUFDLFdBQVcsR0FBRyxhQUFhLENBQUMsTUFBTSxDQUFBO0FBQ3pDLGVBQWUsTUFBTSxDQUFBIn0=
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { TouchableOpacity } from 'react-native';
|
|
3
|
-
import { ButtonProps } from '
|
|
3
|
+
import { ButtonProps } from '../../components/button/ButtonProps';
|
|
4
4
|
/**
|
|
5
5
|
* Button Component
|
|
6
6
|
* @param loading {boolean} Loading button
|
|
@@ -13,5 +13,5 @@ import { ButtonProps } from './ButtonProps';
|
|
|
13
13
|
* @param testId {string} Test Id for Test Integration
|
|
14
14
|
* @param iconName {IconName} Icon displayed inside the button
|
|
15
15
|
*/
|
|
16
|
-
declare const Button:
|
|
16
|
+
declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<TouchableOpacity>>;
|
|
17
17
|
export default Button;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { ComponentName } from '../../components/enumsComponentsName';
|
|
3
4
|
import { Icon, IconSize } from '../../components/icon';
|
|
4
5
|
import { View } from '../../components/view';
|
|
@@ -6,10 +7,10 @@ import { getTypographyBoldStyle, TypographyBold } from '../../objects/Typography
|
|
|
6
7
|
import { getButtonColorStyle, getColorStyle, TrilogyColor } from '../../objects/facets/Color';
|
|
7
8
|
import { getLoadingClassName } from '../../objects/facets/Loadable';
|
|
8
9
|
import { getVariantClassName } from '../../objects/facets/Variant';
|
|
9
|
-
import
|
|
10
|
+
import { forwardRef } from 'react';
|
|
10
11
|
import { ActivityIndicator, Text, TouchableOpacity } from 'react-native';
|
|
11
12
|
import { memoStyles } from '../../helpers/memoStyles';
|
|
12
|
-
import { ButtonVariant } from '
|
|
13
|
+
import { ButtonVariant } from '../../components/button/ButtonEnum';
|
|
13
14
|
import { Theme } from '../../constants/theme';
|
|
14
15
|
/**
|
|
15
16
|
* Button Component
|
|
@@ -23,7 +24,7 @@ import { Theme } from '../../constants/theme';
|
|
|
23
24
|
* @param testId {string} Test Id for Test Integration
|
|
24
25
|
* @param iconName {IconName} Icon displayed inside the button
|
|
25
26
|
*/
|
|
26
|
-
var Button =
|
|
27
|
+
var Button = forwardRef(function (_a, ref) {
|
|
27
28
|
var children = _a.children, variant = _a.variant, onClick = _a.onClick, disabled = _a.disabled, loading = _a.loading, fullwidth = _a.fullwidth, testId = _a.testId, accessibilityLabel = _a.accessibilityLabel, iconName = _a.iconName, others = __rest(_a, ["children", "variant", "onClick", "disabled", "loading", "fullwidth", "testId", "accessibilityLabel", "iconName"]);
|
|
28
29
|
var loaderColor = getColorStyle(TrilogyColor.BACKGROUND);
|
|
29
30
|
var isLoading = typeof loading === 'string' && getLoadingClassName(loading) === 'loading';
|
|
@@ -114,29 +115,20 @@ var Button = React.forwardRef(function (_a, ref) {
|
|
|
114
115
|
: typeof children === 'string'
|
|
115
116
|
? children
|
|
116
117
|
: 'NotSpecified';
|
|
117
|
-
return (
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
loading && typeof loading === 'string' && getLoadingClassName(loading) === 'loaded' && (React.createElement(Text, { style: (!disabled && styles.text) || (disabled && styles.textDisabled) }, children)),
|
|
131
|
-
!loading && children && typeof children === 'string' && !iconName && (React.createElement(Text, { style: (!disabled && styles.text) || (disabled && styles.textDisabled) }, children)),
|
|
132
|
-
!loading && iconName && (React.createElement(View, { style: styles.buttonIconContainer },
|
|
133
|
-
React.createElement(Icon, { name: iconName, size: IconSize.SMALL, color: disabled
|
|
134
|
-
? TrilogyColor.DISABLED
|
|
135
|
-
: variant === 'SECONDARY' || variant === 'GHOST'
|
|
136
|
-
? TrilogyColor.MAIN
|
|
137
|
-
: TrilogyColor.BACKGROUND, testId: 'button-icon' }),
|
|
138
|
-
React.createElement(Text, { style: (!disabled && styles.buttonIconText) || (disabled && styles.textDisabledIcon) }, children)))));
|
|
118
|
+
return (_jsxs(TouchableOpacity, __assign({ ref: ref, accessible: !!buttonAccessibilityLabel, accessibilityLabel: buttonAccessibilityLabel, testID: buttonTestId, disabled: disabled || loading, style: [styles.button, fullwidth && styles.fullwidth], onPress: function (e) { return onClick === null || onClick === void 0 ? void 0 : onClick(e); } }, others, { children: [loading && typeof loading === 'string' && getLoadingClassName(loading) === 'loading' && (_jsx(View, __assign({ style: {
|
|
119
|
+
alignItems: 'center',
|
|
120
|
+
justifyContent: 'center',
|
|
121
|
+
height: 45,
|
|
122
|
+
} }, { children: _jsx(ActivityIndicator, { color: loaderColor, testID: 'activity-indicator' }) }))), loading && typeof loading === 'boolean' && loading === true && (_jsx(View, __assign({ style: {
|
|
123
|
+
alignItems: 'center',
|
|
124
|
+
height: 45,
|
|
125
|
+
justifyContent: 'center',
|
|
126
|
+
} }, { children: _jsx(ActivityIndicator, { color: loaderColor, testID: 'activity-indicator' }) }))), loading && typeof loading === 'string' && getLoadingClassName(loading) === 'loaded' && (_jsx(Text, __assign({ style: (!disabled && styles.text) || (disabled && styles.textDisabled) }, { children: children }))), !loading && children && typeof children === 'string' && !iconName && (_jsx(Text, __assign({ style: (!disabled && styles.text) || (disabled && styles.textDisabled) }, { children: children }))), !loading && iconName && (_jsxs(View, __assign({ style: styles.buttonIconContainer }, { children: [_jsx(Icon, { name: iconName, size: IconSize.SMALL, color: disabled
|
|
127
|
+
? TrilogyColor.DISABLED
|
|
128
|
+
: variant === 'SECONDARY' || variant === 'GHOST'
|
|
129
|
+
? TrilogyColor.MAIN
|
|
130
|
+
: TrilogyColor.BACKGROUND, testId: 'button-icon' }), _jsx(Text, __assign({ style: (!disabled && styles.buttonIconText) || (disabled && styles.textDisabledIcon) }, { children: children }))] })))] })));
|
|
139
131
|
});
|
|
140
132
|
Button.displayName = ComponentName.Button;
|
|
141
133
|
export default Button;
|
|
142
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
134
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQnV0dG9uLm5hdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2NvbXBvbmVudHMvYnV0dG9uL0J1dHRvbi5uYXRpdmUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGtDQUFrQyxDQUFBO0FBQ2hFLE9BQU8sRUFBRSxJQUFJLEVBQUUsUUFBUSxFQUFFLE1BQU0sbUJBQW1CLENBQUE7QUFDbEQsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLG1CQUFtQixDQUFBO0FBQ3hDLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxjQUFjLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQTtBQUM1RixPQUFPLEVBQUUsbUJBQW1CLEVBQUUsYUFBYSxFQUFFLFlBQVksRUFBRSxNQUFNLHdCQUF3QixDQUFBO0FBQ3pGLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLDJCQUEyQixDQUFBO0FBQy9ELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLDBCQUEwQixDQUFBO0FBQzlELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxPQUFPLENBQUE7QUFDbEMsT0FBTyxFQUFFLGlCQUFpQixFQUFFLElBQUksRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGNBQWMsQ0FBQTtBQUN4RSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sc0JBQXNCLENBQUE7QUFDakQsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGdDQUFnQyxDQUFBO0FBRTlELE9B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FBVSxFQUU3QixNQUFNLEVBQUMsYUFBYSxHQUNwQixFQUNGLEtBQUMsSUFBSSxhQUFDLEtBQUssRUFBRSxDQUFDLENBQUMsUUFBUSxJQUFJLE1BQU0sQ0FBQyxjQUFjLENBQUMsSUFBSSxDQUFDLFFBQVEsSUFBSSxNQUFNLENBQUMsZ0JBQWdCLENBQUMsZ0JBQ3ZGLFFBQVEsSUFDSixLQUNGLENBQ1IsS0FDZ0IsQ0FDcEIsQ0FBQTtBQUNILENBQUMsQ0FDRixDQUFBO0FBRUQsTUFBTSxDQUFDLFdBQVcsR0FBRyxhQUFhLENBQUMsTUFBTSxDQUFBO0FBRXpDLGVBQWUsTUFBTSxDQUFBIn0=
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TouchableOpacity } from 'react-native';
|
|
3
2
|
import { IconName, IconNameValues } from '../../components/icon';
|
|
4
3
|
import { Accessibility } from '../../objects/facets/Accessibility';
|
|
@@ -6,19 +5,20 @@ import { Clickable } from '../../objects/facets/Clickable';
|
|
|
6
5
|
import { CommonProps } from '../../objects/facets/CommonProps';
|
|
7
6
|
import { Dev } from '../../objects/facets/Dev';
|
|
8
7
|
import { Fullwidth } from '../../objects/facets/Fullwidth';
|
|
9
|
-
import { ButtonMarkup, ButtonMarkupValues, ButtonType, ButtonTypeValues, ButtonVariant, ButtonVariantValues } from '
|
|
8
|
+
import { ButtonMarkup, ButtonMarkupValues, ButtonType, ButtonTypeValues, ButtonVariant, ButtonVariantValues } from '../../components/button/ButtonEnum';
|
|
9
|
+
import { ElementType, ReactNode } from 'react';
|
|
10
10
|
/**
|
|
11
11
|
* Button Interface
|
|
12
12
|
*/
|
|
13
13
|
export interface ButtonProps extends Accessibility, Fullwidth, Clickable, Dev, CommonProps {
|
|
14
|
-
children?:
|
|
14
|
+
children?: ReactNode;
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
markup?: ButtonMarkup | ButtonMarkupValues;
|
|
17
17
|
href?: string;
|
|
18
18
|
to?: string;
|
|
19
19
|
loading?: boolean;
|
|
20
20
|
name?: string;
|
|
21
|
-
routerLink?:
|
|
21
|
+
routerLink?: ElementType;
|
|
22
22
|
type?: ButtonType | ButtonTypeValues;
|
|
23
23
|
iconName?: IconName | IconNameValues;
|
|
24
24
|
variant?: ButtonVariant | ButtonVariantValues;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Button from '
|
|
2
|
-
import { ButtonList } from '
|
|
3
|
-
export * from '
|
|
1
|
+
import Button from '../../components/button/Button';
|
|
2
|
+
import { ButtonList } from '../../components/button/list';
|
|
3
|
+
export * from '../../components/button/ButtonEnum';
|
|
4
4
|
export { Button, ButtonList };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Button from '
|
|
2
|
-
import { ButtonList } from '
|
|
3
|
-
export * from '
|
|
1
|
+
import Button from '../../components/button/Button';
|
|
2
|
+
import { ButtonList } from '../../components/button/list';
|
|
3
|
+
export * from '../../components/button/ButtonEnum';
|
|
4
4
|
export { Button, ButtonList };
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9jb21wb25lbnRzL2J1dHRvbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLE1BQU0sTUFBTSw0QkFBNEIsQ0FBQTtBQUMvQyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sMEJBQTBCLENBQUE7QUFFckQsY0FBYyxnQ0FBZ0MsQ0FBQTtBQUU5QyxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxDQUFBIn0=
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { ButtonListWebProps } from '
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ButtonListWebProps } from '../../../components/button/list/ButtonListProps';
|
|
3
3
|
/**
|
|
4
4
|
* Button List Component
|
|
5
5
|
* @param children {ReactNode} ButtonList children
|
|
@@ -10,5 +10,5 @@ import { ButtonListWebProps } from './ButtonListProps';
|
|
|
10
10
|
* @param direction {ButtonListDirectionEnum} Button list direction
|
|
11
11
|
* @param className {string} Additional CSS Classes
|
|
12
12
|
*/
|
|
13
|
-
declare const ButtonList:
|
|
13
|
+
declare const ButtonList: import("react").ForwardRefExoticComponent<ButtonListWebProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
14
|
export default ButtonList;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
3
|
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
3
|
-
import { useTrilogyContext } from '../../../context';
|
|
4
|
-
import { hashClass } from '../../../helpers';
|
|
4
|
+
import { useTrilogyContext } from '../../../context/TrilogyContext';
|
|
5
|
+
import { hashClass } from '../../../helpers/hashClassesHelpers';
|
|
5
6
|
import { getJustifiedClassName } from '../../../objects/facets/Justifiable';
|
|
6
7
|
import { is } from '../../../services/classify';
|
|
7
8
|
import clsx from 'clsx';
|
|
8
|
-
import
|
|
9
|
-
import { ButtonListDirectionEnum } from '
|
|
9
|
+
import { forwardRef } from 'react';
|
|
10
|
+
import { ButtonListDirectionEnum } from '../../../components/button/list/ButtonListEnum';
|
|
10
11
|
/**
|
|
11
12
|
* Button List Component
|
|
12
13
|
* @param children {ReactNode} ButtonList children
|
|
@@ -17,11 +18,11 @@ import { ButtonListDirectionEnum } from './ButtonListEnum';
|
|
|
17
18
|
* @param direction {ButtonListDirectionEnum} Button list direction
|
|
18
19
|
* @param className {string} Additional CSS Classes
|
|
19
20
|
*/
|
|
20
|
-
var ButtonList =
|
|
21
|
+
var ButtonList = forwardRef(function (_a, ref) {
|
|
21
22
|
var className = _a.className, id = _a.id, align = _a.align, direction = _a.direction, testId = _a.testId, others = __rest(_a, ["className", "id", "align", "direction", "testId"]);
|
|
22
23
|
var styled = useTrilogyContext().styled;
|
|
23
|
-
return (
|
|
24
|
+
return (_jsx("div", __assign({ "data-testid": testId, ref: ref, id: id, className: hashClass(styled, clsx('buttons', className, align && is(getJustifiedClassName(align)), direction === ButtonListDirectionEnum.COLUMN && is('vertical'))) }, others)));
|
|
24
25
|
});
|
|
25
26
|
ButtonList.displayName = ComponentName.ButtonList;
|
|
26
27
|
export default ButtonList;
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQnV0dG9uTGlzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2NvbXBvbmVudHMvYnV0dG9uL2xpc3QvQnV0dG9uTGlzdC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0NBQWtDLENBQUE7QUFDaEUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sMEJBQTBCLENBQUE7QUFDNUQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLDhCQUE4QixDQUFBO0FBQ3hELE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLDhCQUE4QixDQUFBO0FBQ3BFLE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQTtBQUN4QyxPQUFPLElBQUksTUFBTSxNQUFNLENBQUE7QUFDdkIsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLE9BQU8sQ0FBQTtBQUNsQyxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSx5Q0FBeUMsQ0FBQTtBQUdqRjs7Ozs7Ozs7O0dBU0c7QUFDSCxJQUFNLFVBQVUsR0FBRyxVQUFVLENBQzNCLFVBQUMsRUFBc0QsRUFBRSxHQUFHO0lBQXpELElBQUEsU0FBUyxlQUFBLEVBQUUsRUFBRSxRQUFBLEVBQUUsS0FBSyxXQUFBLEVBQUUsU0FBUyxlQUFBLEVBQUUsTUFBTSxZQUFBLEVBQUssTUFBTSxjQUFwRCxtREFBc0QsQ0FBRjtJQUMzQyxJQUFBLE1BQU0sR0FBSyxpQkFBaUIsRUFBRSxPQUF4QixDQUF3QjtJQUV0QyxPQUFPLENBQ0wsc0NBQ2UsTUFBTSxFQUNuQixHQUFHLEVBQUUsR0FBRyxFQUNSLEVBQUUsRUFBRSxFQUFFLEVBQ04sU0FBUyxFQUFFLFNBQVMsQ0FDbEIsTUFBTSxFQUNOLElBQUksQ0FDRixTQUFTLEVBQ1QsU0FBUyxFQUNULEtBQUssSUFBSSxFQUFFLENBQUMscUJBQXFCLENBQUMsS0FBSyxDQUFDLENBQUMsRUFDekMsU0FBUyxLQUFLLHVCQUF1QixDQUFDLE1BQU0sSUFBSSxFQUFFLENBQUMsVUFBVSxDQUFDLENBQy9ELENBQ0YsSUFDRyxNQUFNLEVBQ1YsQ0FDSCxDQUFBO0FBQ0gsQ0FBQyxDQUNGLENBQUE7QUFFRCxVQUFVLENBQUMsV0FBVyxHQUFHLGFBQWEsQ0FBQyxVQUFVLENBQUE7QUFDakQsZUFBZSxVQUFVLENBQUEifQ==
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { View } from 'react-native';
|
|
3
|
-
import type { ButtonListProps } from '
|
|
3
|
+
import type { ButtonListProps } from '../../../components/button/list/ButtonListProps';
|
|
4
4
|
/**
|
|
5
5
|
* Button List Component
|
|
6
6
|
* @param children {ReactNode} ButtonList children
|
|
7
7
|
* @param testId {string} Test Id for Test Integration
|
|
8
8
|
* @param id {string} Custom id attribute
|
|
9
9
|
*/
|
|
10
|
-
declare const ButtonList:
|
|
10
|
+
declare const ButtonList: import("react").ForwardRefExoticComponent<ButtonListProps & import("react").RefAttributes<View>>;
|
|
11
11
|
export default ButtonList;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
3
|
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
3
|
-
import
|
|
4
|
+
import { forwardRef } from 'react';
|
|
4
5
|
import { View } from 'react-native';
|
|
5
6
|
/**
|
|
6
7
|
* Button List Component
|
|
@@ -8,10 +9,10 @@ import { View } from 'react-native';
|
|
|
8
9
|
* @param testId {string} Test Id for Test Integration
|
|
9
10
|
* @param id {string} Custom id attribute
|
|
10
11
|
*/
|
|
11
|
-
var ButtonList =
|
|
12
|
+
var ButtonList = forwardRef(function (_a, ref) {
|
|
12
13
|
var children = _a.children, testId = _a.testId;
|
|
13
|
-
return
|
|
14
|
+
return _jsx(View, __assign({ ref: ref, testID: testId }, { children: children }));
|
|
14
15
|
});
|
|
15
16
|
ButtonList.displayName = ComponentName.ButtonList;
|
|
16
17
|
export default ButtonList;
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQnV0dG9uTGlzdC5uYXRpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL2J1dHRvbi9saXN0L0J1dHRvbkxpc3QubmF0aXZlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQTtBQUNoRSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sT0FBTyxDQUFBO0FBQ2xDLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxjQUFjLENBQUE7QUFHbkM7Ozs7O0dBS0c7QUFDSCxJQUFNLFVBQVUsR0FBRyxVQUFVLENBQXVDLFVBQUMsRUFBb0IsRUFBRSxHQUFHO1FBQXZCLFFBQVEsY0FBQSxFQUFFLE1BQU0sWUFBQTtJQUNyRixPQUFPLEtBQUMsSUFBSSxhQUFDLEdBQUcsRUFBRSxHQUFHLEVBQUUsTUFBTSxFQUFFLE1BQU0sSUFBTSxFQUFFLFFBQVEsVUFBQSxFQUFFLEVBQUksQ0FBQTtBQUM3RCxDQUFDLENBQUMsQ0FBQTtBQUVGLFVBQVUsQ0FBQyxXQUFXLEdBQUcsYUFBYSxDQUFDLFVBQVUsQ0FBQTtBQUVqRCxlQUFlLFVBQVUsQ0FBQSJ9
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ButtonListDirectionEnum, ButtonListDirectionEnumValues } from '../../../components/button/list/ButtonListEnum';
|
|
3
2
|
import { View } from 'react-native';
|
|
4
3
|
import type { ButtonProps } from '../../../components/button/ButtonProps';
|
|
5
4
|
import type { DividerProps } from '../../../components/divider/DividerProps';
|
|
6
|
-
import { AlignableProps
|
|
5
|
+
import { AlignableProps } from '../../../objects/facets/Alignable';
|
|
6
|
+
import { Dev } from '../../../objects/facets/Dev';
|
|
7
7
|
import { CommonProps } from '../../../objects/facets/CommonProps';
|
|
8
|
-
|
|
8
|
+
import { ReactElement } from 'react';
|
|
9
|
+
type ButtonListChildrenTypes = ReactElement<ButtonProps | DividerProps> | undefined;
|
|
9
10
|
/**
|
|
10
11
|
* Button List Interface
|
|
11
12
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ButtonList from '
|
|
2
|
-
export * from '
|
|
1
|
+
import ButtonList from '../../../components/button/list/ButtonList';
|
|
2
|
+
export * from '../../../components/button/list/ButtonListEnum';
|
|
3
3
|
export { ButtonList };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ButtonList from '
|
|
2
|
-
export * from '
|
|
1
|
+
import ButtonList from '../../../components/button/list/ButtonList';
|
|
2
|
+
export * from '../../../components/button/list/ButtonListEnum';
|
|
3
3
|
export { ButtonList };
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL2J1dHRvbi9saXN0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sVUFBVSxNQUFNLHFDQUFxQyxDQUFBO0FBQzVELGNBQWMseUNBQXlDLENBQUE7QUFFdkQsT0FBTyxFQUFFLFVBQVUsRUFBRSxDQUFBIn0=
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { CalendarProps } from '
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CalendarProps } from '../../components/calendar/CalendarProps';
|
|
3
3
|
/**
|
|
4
4
|
* Calendar Component
|
|
5
5
|
* @param value {Date | [Date, Date] | [Date] | []} Calendar selected date(s)
|
|
@@ -15,5 +15,5 @@ import { CalendarProps } from './CalendarProps';
|
|
|
15
15
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
16
16
|
* @param className {string} Additional CSS Classes
|
|
17
17
|
*/
|
|
18
|
-
declare const Calendar:
|
|
18
|
+
declare const Calendar: import("react").ForwardRefExoticComponent<CalendarProps & import("react").RefAttributes<HTMLTableElement>>;
|
|
19
19
|
export default Calendar;
|