@trilogy-ds/react 4.20.2 → 4.20.4-beta.1
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 +2 -2
- package/package.json +1 -1
|
@@ -1,20 +1,21 @@
|
|
|
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
|
-
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
|
import { Icon, IconSize } from '../../../components/icon';
|
|
9
10
|
/**
|
|
10
11
|
* DropdownItem Component
|
|
11
|
-
* @param children {
|
|
12
|
+
* @param children {ReactNode} Children
|
|
12
13
|
* @param iconName {string} Icon displayed on the left of the text
|
|
13
14
|
* @param active {boolean} Active/selected item state
|
|
14
15
|
* @param disabled {boolean} Disabled item state
|
|
15
16
|
* @param onSelect {Function} Callback called when item is selected
|
|
16
17
|
*/
|
|
17
|
-
var DropdownItem =
|
|
18
|
+
var DropdownItem = forwardRef(function (_a, ref) {
|
|
18
19
|
var children = _a.children, iconName = _a.iconName, active = _a.active, disabled = _a.disabled, onSelect = _a.onSelect, others = __rest(_a, ["children", "iconName", "active", "disabled", "onSelect"]);
|
|
19
20
|
var styled = useTrilogyContext().styled;
|
|
20
21
|
var classes = hashClass(styled, clsx('dropdown-item', active && is('active'), disabled && is('disabled')));
|
|
@@ -37,10 +38,8 @@ var DropdownItem = React.forwardRef(function (_a, ref) {
|
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
};
|
|
40
|
-
return (
|
|
41
|
-
iconName && (React.createElement(Icon, { name: iconName, size: IconSize.SMALLER })),
|
|
42
|
-
children));
|
|
41
|
+
return (_jsxs("button", __assign({ ref: ref, type: 'button', className: classes, onClick: handleClick, onKeyDown: handleKeyDown, disabled: disabled, "aria-disabled": disabled, role: 'menuitem', tabIndex: disabled ? -1 : 0 }, others, { children: [iconName && (_jsx(Icon, { name: iconName, size: IconSize.SMALLER })), children] })));
|
|
43
42
|
});
|
|
44
43
|
DropdownItem.displayName = ComponentName.DropdownItem;
|
|
45
44
|
export default DropdownItem;
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRHJvcGRvd25JdGVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vY29tcG9uZW50cy9kcm9wZG93bi9pdGVtL0Ryb3Bkb3duSXRlbS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0NBQWtD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components/dropdown/item/DropdownItemProps';
|
|
3
|
+
declare const DropdownItem: import("react").ForwardRefExoticComponent<DropdownItemProps & import("react").RefAttributes<import("react-native/types").View>>;
|
|
4
4
|
export default DropdownItem;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
2
|
-
import
|
|
3
|
-
var DropdownItem =
|
|
4
|
-
return (
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
var DropdownItem = forwardRef(function (props, ref) {
|
|
5
|
+
return (_jsx(_Fragment, {}));
|
|
5
6
|
});
|
|
6
7
|
DropdownItem.displayName = ComponentName.DropdownItem;
|
|
7
8
|
export default DropdownItem;
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRHJvcGRvd25JdGVtLm5hdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2NvbXBvbmVudHMvZHJvcGRvd24vaXRlbS9Ecm9wZG93bkl0ZW0ubmF0aXZlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGtDQUFrQyxDQUFBO0FBQ2hFLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxPQUFPLENBQUE7QUFHbEMsSUFBTSxZQUFZLEdBQUcsVUFBVSxDQUEyQyxVQUFDLEtBQUssRUFBRSxHQUFHO0lBQ25GLE9BQU8sQ0FDTCxtQkFBSyxDQUNOLENBQUE7QUFDSCxDQUFDLENBQUMsQ0FBQTtBQUVGLFlBQVksQ0FBQyxXQUFXLEdBQUcsYUFBYSxDQUFDLFlBQVksQ0FBQTtBQUVyRCxlQUFlLFlBQVksQ0FBQSJ9
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { View } from 'react-native';
|
|
3
|
-
import { IconName, IconNameValues } from '
|
|
2
|
+
import { IconName, IconNameValues } from '../../../components/icon/IconNameEnum';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
4
|
/**
|
|
5
5
|
* DropdownItem Interface
|
|
6
6
|
*/
|
|
7
7
|
export interface DropdownItemProps {
|
|
8
|
-
children?:
|
|
8
|
+
children?: ReactNode;
|
|
9
9
|
iconName?: IconName | IconNameValues;
|
|
10
10
|
active?: boolean;
|
|
11
11
|
disabled?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as DropdownItem } from '
|
|
2
|
-
export * from '
|
|
1
|
+
export { default as DropdownItem } from '../../../components/dropdown/item/DropdownItem';
|
|
2
|
+
export * from '../../../components/dropdown/item/DropdownItemProps';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as DropdownItem } from '
|
|
2
|
-
export * from '
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export { default as DropdownItem } from '../../../components/dropdown/item/DropdownItem';
|
|
2
|
+
export * from '../../../components/dropdown/item/DropdownItemProps';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL2Ryb3Bkb3duL2l0ZW0vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sSUFBSSxZQUFZLEVBQUUsTUFBTSx5Q0FBeUMsQ0FBQTtBQUNqRixjQUFjLDhDQUE4QyxDQUFBIn0=
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import { DropdownTriggerProps } from '
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DropdownTriggerProps } from '../../../components/dropdown/trigger/DropdownTriggerProps';
|
|
3
3
|
/**
|
|
4
4
|
* DropdownTrigger Component
|
|
5
5
|
* Wrapper component that makes its children clickable to trigger dropdown toggle
|
|
6
6
|
* Automatically manages the dropdown state when used within a DropdownProvider
|
|
7
|
-
* @param children {
|
|
7
|
+
* @param children {ReactNode} Children - The trigger element (Button, etc.)
|
|
8
8
|
* @param onClick {Function} Optional additional click handler
|
|
9
9
|
* @param className {string} Additional CSS classes
|
|
10
10
|
* @param testId {string} Test ID
|
|
11
11
|
*/
|
|
12
|
-
declare const DropdownTrigger:
|
|
12
|
+
declare const DropdownTrigger: import("react").ForwardRefExoticComponent<DropdownTriggerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
13
|
export default DropdownTrigger;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Children, cloneElement, forwardRef, isValidElement } from 'react';
|
|
3
4
|
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
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 { useDropdownContext } from '
|
|
8
|
+
import { useDropdownContext } from '../../../components/dropdown/context';
|
|
8
9
|
/**
|
|
9
10
|
* DropdownTrigger Component
|
|
10
11
|
* Wrapper component that makes its children clickable to trigger dropdown toggle
|
|
11
12
|
* Automatically manages the dropdown state when used within a DropdownProvider
|
|
12
|
-
* @param children {
|
|
13
|
+
* @param children {ReactNode} Children - The trigger element (Button, etc.)
|
|
13
14
|
* @param onClick {Function} Optional additional click handler
|
|
14
15
|
* @param className {string} Additional CSS classes
|
|
15
16
|
* @param testId {string} Test ID
|
|
16
17
|
*/
|
|
17
|
-
var DropdownTrigger =
|
|
18
|
+
var DropdownTrigger = forwardRef(function (_a, ref) {
|
|
18
19
|
var children = _a.children, onClick = _a.onClick, className = _a.className, testId = _a.testId, others = __rest(_a, ["children", "onClick", "className", "testId"]);
|
|
19
20
|
var styled = useTrilogyContext().styled;
|
|
20
21
|
var contextState = null;
|
|
@@ -31,10 +32,10 @@ var DropdownTrigger = React.forwardRef(function (_a, ref) {
|
|
|
31
32
|
}
|
|
32
33
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
33
34
|
};
|
|
34
|
-
var enhancedChildren =
|
|
35
|
-
if (
|
|
35
|
+
var enhancedChildren = Children.map(children, function (child) {
|
|
36
|
+
if (isValidElement(child)) {
|
|
36
37
|
if (!child.props.onClick) {
|
|
37
|
-
return
|
|
38
|
+
return cloneElement(child, {
|
|
38
39
|
onClick: function (e) {
|
|
39
40
|
e.preventDefault();
|
|
40
41
|
e.stopPropagation();
|
|
@@ -42,7 +43,7 @@ var DropdownTrigger = React.forwardRef(function (_a, ref) {
|
|
|
42
43
|
}
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
|
-
return
|
|
46
|
+
return cloneElement(child, {
|
|
46
47
|
onClick: function (e) {
|
|
47
48
|
var _a, _b;
|
|
48
49
|
(_b = (_a = child.props).onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
|
|
@@ -54,8 +55,8 @@ var DropdownTrigger = React.forwardRef(function (_a, ref) {
|
|
|
54
55
|
}
|
|
55
56
|
return child;
|
|
56
57
|
});
|
|
57
|
-
return (
|
|
58
|
+
return (_jsx("div", __assign({ ref: ref, className: classes, onClick: handleClick, "data-testid": testId }, others, { children: enhancedChildren })));
|
|
58
59
|
});
|
|
59
60
|
DropdownTrigger.displayName = ComponentName.DropdownTrigger;
|
|
60
61
|
export default DropdownTrigger;
|
|
61
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRHJv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2QsQ0FBQyxDQUFDLENBQUE7SUFFRixPQUFPLENBQ0wsdUJBQ0UsR0FBRyxFQUFFLEdBQUcsRUFDUixTQUFTLEVBQUUsT0FBTyxFQUNsQixPQUFPLEVBQUUsV0FBVyxpQkFDUCxNQUFNLElBQ2YsTUFBTSxjQUVULGdCQUFnQixJQUNiLENBQ1AsQ0FBQTtBQUNILENBQUMsQ0FDRixDQUFBO0FBRUQsZUFBZSxDQUFDLFdBQVcsR0FBRyxhQUFhLENBQUMsZUFBZSxDQUFBO0FBQzNELGVBQWUsZUFBZSxDQUFBIn0=
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { DropdownTriggerProps } from '
|
|
3
|
-
declare const DropdownTrigger:
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DropdownTriggerProps } from '../../../components/dropdown/trigger/DropdownTriggerProps';
|
|
3
|
+
declare const DropdownTrigger: import("react").ForwardRefExoticComponent<DropdownTriggerProps & import("react").RefAttributes<import("react-native/types").TouchableOpacity>>;
|
|
4
4
|
export default DropdownTrigger;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
2
|
-
import
|
|
3
|
-
var DropdownTrigger =
|
|
4
|
-
return (
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
var DropdownTrigger = forwardRef(function (props, ref) {
|
|
5
|
+
return (_jsx(_Fragment, {}));
|
|
5
6
|
});
|
|
6
7
|
DropdownTrigger.displayName = ComponentName.DropdownTrigger;
|
|
7
8
|
export default DropdownTrigger;
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRHJvcGRvd25UcmlnZ2VyLm5hdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2NvbXBvbmVudHMvZHJvcGRvd24vdHJpZ2dlci9Ecm9wZG93blRyaWdnZXIubmF0aXZlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGtDQUFrQyxDQUFBO0FBQ2hFLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxPQUFPLENBQUE7QUFHbEMsSUFBTSxlQUFlLEdBQUcsVUFBVSxDQUFpRCxVQUFDLEtBQUssRUFBRSxHQUFHO0lBQzVGLE9BQU8sQ0FDTCxtQkFBSyxDQUNOLENBQUE7QUFDSCxDQUFDLENBQUMsQ0FBQTtBQUVGLGVBQWUsQ0FBQyxXQUFXLEdBQUcsYUFBYSxDQUFDLGVBQWUsQ0FBQTtBQUUzRCxlQUFlLGVBQWUsQ0FBQSJ9
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TouchableOpacity } from 'react-native';
|
|
3
2
|
import { Clickable } from '../../../objects/facets/Clickable';
|
|
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
|
* DropdownTrigger Interface
|
|
8
8
|
*/
|
|
9
9
|
export interface DropdownTriggerProps extends Clickable, CommonProps, Dev {
|
|
10
|
-
children?:
|
|
10
|
+
children?: ReactNode;
|
|
11
11
|
}
|
|
12
12
|
export type DropdownTriggerRef = HTMLDivElement;
|
|
13
13
|
export type DropdownTriggerNativeRef = TouchableOpacity;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as DropdownTrigger } from '
|
|
2
|
-
export * from '
|
|
1
|
+
export { default as DropdownTrigger } from '../../../components/dropdown/trigger/DropdownTrigger';
|
|
2
|
+
export * from '../../../components/dropdown/trigger/DropdownTriggerProps';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as DropdownTrigger } from '
|
|
2
|
-
export * from '
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export { default as DropdownTrigger } from '../../../components/dropdown/trigger/DropdownTrigger';
|
|
2
|
+
export * from '../../../components/dropdown/trigger/DropdownTriggerProps';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL2Ryb3Bkb3duL3RyaWdnZXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sSUFBSSxlQUFlLEVBQUUsTUFBTSwrQ0FBK0MsQ0FBQTtBQUMxRixjQUFjLG9EQUFvRCxDQUFBIn0=
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
1
|
+
export * from '../components/button/ButtonEnum';
|
|
2
|
+
export * from '../components/text/TextEnum';
|
|
3
|
+
export * from '../components/icon/IconEnum';
|
package/lib/components/enums.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from '../components/button/ButtonEnum';
|
|
2
|
+
export * from '../components/text/TextEnum';
|
|
3
|
+
export * from '../components/icon/IconEnum';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW51bXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9jb21wb25lbnRzL2VudW1zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsZ0NBQWdDLENBQUE7QUFDOUMsY0FBYyw0QkFBNEIsQ0FBQTtBQUMxQyxjQUFjLDRCQUE0QixDQUFBIn0=
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { FabProps } from '
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FabProps } from '../../components/fab/FabProps';
|
|
3
3
|
/**
|
|
4
4
|
* Fab Component - Floating Action Button
|
|
5
5
|
* @param children {ReactNode} Text or content of the fab button
|
|
@@ -18,5 +18,5 @@ import { FabProps } from './FabProps';
|
|
|
18
18
|
* @param className {string} Additional CSS Classes
|
|
19
19
|
* @param fixed {boolean} Fixed positioning (true by default)
|
|
20
20
|
*/
|
|
21
|
-
declare const Fab:
|
|
21
|
+
declare const Fab: import("react").ForwardRefExoticComponent<FabProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
22
22
|
export default Fab;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { __assign, __read, __rest } from "tslib";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useState, forwardRef } from 'react';
|
|
4
|
+
import { useTrilogyContext } from '../../context/TrilogyContext';
|
|
5
|
+
import { hashClass } from '../../helpers/hashClassesHelpers';
|
|
5
6
|
import clsx from 'clsx';
|
|
6
7
|
import { Icon } from '../../components/icon';
|
|
7
|
-
import { is } from '../../services';
|
|
8
|
-
import { ComponentName } from '
|
|
8
|
+
import { is } from '../../services/classify';
|
|
9
|
+
import { ComponentName } from '../../components/enumsComponentsName';
|
|
9
10
|
/**
|
|
10
11
|
* Fab Component - Floating Action Button
|
|
11
12
|
* @param children {ReactNode} Text or content of the fab button
|
|
@@ -24,7 +25,7 @@ import { ComponentName } from '../enumsComponentsName';
|
|
|
24
25
|
* @param className {string} Additional CSS Classes
|
|
25
26
|
* @param fixed {boolean} Fixed positioning (true by default)
|
|
26
27
|
*/
|
|
27
|
-
var Fab =
|
|
28
|
+
var Fab = forwardRef(function (_a, ref) {
|
|
28
29
|
var children = _a.children, extended = _a.extended, iconName = _a.iconName, accessibilityLabel = _a.accessibilityLabel, onClick = _a.onClick, className = _a.className, id = _a.id, _b = _a.fixed, fixed = _b === void 0 ? true : _b, top = _a.top, bottom = _a.bottom, left = _a.left, right = _a.right, disabled = _a.disabled, testId = _a.testId, others = __rest(_a, ["children", "extended", "iconName", "accessibilityLabel", "onClick", "className", "id", "fixed", "top", "bottom", "left", "right", "disabled", "testId"]);
|
|
29
30
|
var styled = useTrilogyContext().styled;
|
|
30
31
|
var _c = __read(useState(extended || false), 2), isExtended = _c[0], setIsExtended = _c[1];
|
|
@@ -43,13 +44,11 @@ var Fab = React.forwardRef(function (_a, ref) {
|
|
|
43
44
|
position: 'relative',
|
|
44
45
|
};
|
|
45
46
|
var _className = hashClass(styled, clsx('fab', extended && is('extended'), className));
|
|
46
|
-
return (
|
|
47
|
+
return (_jsxs("button", __assign({ "data-testid": testId, ref: ref, id: id, disabled: disabled, "aria-label": accessibilityLabel, onClick: function (e) {
|
|
47
48
|
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
48
49
|
e.stopPropagation();
|
|
49
|
-
}, style: __assign({}, positionStyle) }, others, { className: _className }),
|
|
50
|
-
React.createElement(Icon, { name: iconName }),
|
|
51
|
-
children));
|
|
50
|
+
}, style: __assign({}, positionStyle) }, others, { className: _className }, { children: [_jsx(Icon, { name: iconName }), children] })));
|
|
52
51
|
});
|
|
53
52
|
Fab.displayName = ComponentName.Fab;
|
|
54
53
|
export default Fab;
|
|
55
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmFiLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vY29tcG9uZW50cy9mYWIvRmFiLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbm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csQ0FBQyxDQUFDLENBQUE7WUFDWixDQUFDLENBQUMsZUFBZSxFQUFFLENBQUE7UUFDckIsQ0FBQyxFQUNELEtBQUssZUFBTyxhQUFhLEtBQ3JCLE1BQU0sSUFDVixTQUFTLEVBQUUsVUFBVSxpQkFFckIsS0FBQyxJQUFJLElBQUMsSUFBSSxFQUFFLFFBQW9CLEdBQUksRUFDbkMsUUFBUSxLQUNGLENBQ1YsQ0FBQTtBQUNILENBQUMsQ0FBQyxDQUFBO0FBRUYsR0FBRyxDQUFDLFdBQVcsR0FBRyxhQUFhLENBQUMsR0FBRyxDQUFBO0FBQ25DLGVBQWUsR0FBRyxDQUFBIn0=
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { TouchableOpacity } from 'react-native';
|
|
3
|
-
import { FabProps } from '
|
|
3
|
+
import { FabProps } from '../../components/fab/FabProps';
|
|
4
4
|
/**
|
|
5
5
|
* Fab Component - Floating Action Button
|
|
6
6
|
* @param children {ReactNode} Text or content of the fab button
|
|
@@ -16,5 +16,5 @@ import { FabProps } from './FabProps';
|
|
|
16
16
|
* @param testId {string} Test Id for Test Integration
|
|
17
17
|
* @param id {string} Custom id attribute
|
|
18
18
|
*/
|
|
19
|
-
declare const Fab:
|
|
19
|
+
declare const Fab: import("react").ForwardRefExoticComponent<FabProps & import("react").RefAttributes<TouchableOpacity>>;
|
|
20
20
|
export default Fab;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from 'react';
|
|
2
4
|
import { TouchableOpacity } from 'react-native';
|
|
3
5
|
import { memoStyles } from '../../helpers/memoStyles';
|
|
4
|
-
import { Alignable
|
|
6
|
+
import { Alignable } from '../../objects/facets/Alignable';
|
|
7
|
+
import { getColorStyle, TrilogyColor } from '../../objects/facets/Color';
|
|
8
|
+
import { TypographyBold } from '../../objects/Typography/TypographyBold';
|
|
9
|
+
import { TypographyColor } from '../../objects/Typography/TypographyColor';
|
|
5
10
|
import { Icon, IconColor, IconSize } from '../../components/icon';
|
|
6
11
|
import { ComponentName } from '../../components/enumsComponentsName';
|
|
7
12
|
import { Text } from '../../components/text';
|
|
@@ -21,7 +26,7 @@ import { Theme } from '../../constants/theme';
|
|
|
21
26
|
* @param testId {string} Test Id for Test Integration
|
|
22
27
|
* @param id {string} Custom id attribute
|
|
23
28
|
*/
|
|
24
|
-
var Fab =
|
|
29
|
+
var Fab = forwardRef(function (_a, ref) {
|
|
25
30
|
var children = _a.children, accessibilityLabel = _a.accessibilityLabel, iconName = _a.iconName, extended = _a.extended, onClick = _a.onClick, top = _a.top, bottom = _a.bottom, left = _a.left, right = _a.right, disabled = _a.disabled, testId = _a.testId;
|
|
26
31
|
var styles = memoStyles({
|
|
27
32
|
button: {
|
|
@@ -59,10 +64,8 @@ var Fab = React.forwardRef(function (_a, ref) {
|
|
|
59
64
|
height: 56,
|
|
60
65
|
},
|
|
61
66
|
});
|
|
62
|
-
return (
|
|
63
|
-
React.createElement(Icon, { name: iconName, color: IconColor.WHITE, size: IconSize.MEDIUM, align: Alignable.ALIGNED_CENTER }),
|
|
64
|
-
React.createElement(Text, { style: styles.label, typo: [TypographyColor.TEXT_WHITE, TypographyBold.TEXT_WEIGHT_SEMIBOLD] }, children))) : (React.createElement(Icon, { name: iconName, color: IconColor.WHITE, size: IconSize.MEDIUM, align: Alignable.ALIGNED_CENTER }))));
|
|
67
|
+
return (_jsx(TouchableOpacity, __assign({ ref: ref, style: [styles.button, extended && styles.extended], accessibilityLabel: accessibilityLabel, onPress: function (e) { return onClick === null || onClick === void 0 ? void 0 : onClick(e); }, disabled: disabled, testID: testId }, { children: extended ? (_jsxs(_Fragment, { children: [_jsx(Icon, { name: iconName, color: IconColor.WHITE, size: IconSize.MEDIUM, align: Alignable.ALIGNED_CENTER }), _jsx(Text, __assign({ style: styles.label, typo: [TypographyColor.TEXT_WHITE, TypographyBold.TEXT_WEIGHT_SEMIBOLD] }, { children: children }))] })) : (_jsx(Icon, { name: iconName, color: IconColor.WHITE, size: IconSize.MEDIUM, align: Alignable.ALIGNED_CENTER })) })));
|
|
65
68
|
});
|
|
66
69
|
Fab.displayName = ComponentName.Fab;
|
|
67
70
|
export default Fab;
|
|
68
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
71
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmFiLm5hdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2NvbXBvbmVudHMvZmFiL0ZhYi5uYXRpdmUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLE9BQU8sQ0FBQTtBQUNsQyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxjQUFjLENBQUE7QUFDL0MsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHNCQUFzQixDQUFBO0FBRWpELE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQTtBQUN0RCxPQUFPLEVBQUUsYUFBYSxFQUFFLFlBQVksRUFBRSxNQUFNLHdCQUF3QixDQUFBO0FBQ3BFLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQTtBQUNwRSxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sc0NBQXNDLENBQUE7QUFDdEUsT0FBTyxFQUFFLElBQUksRUFBRSxTQUFTLEVBQVksUUFBUSxFQUFFLE1BQU0sbUJBQW1CLENBQUE7QUFDdkUsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGtDQUFrQyxDQUFBO0FBQ2hFLE9BQU8sRUFBRSxJQUFJLEVBQ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IsRUFDdEMsT0FBTyxFQUFFLFVBQUMsQ0FBVyxJQUFLLE9BQUEsT0FBTyxhQUFQLE9BQU8sdUJBQVAsT0FBTyxDQUFHLENBQUMsQ0FBQyxFQUFaLENBQVksRUFDdEMsUUFBUSxFQUFFLFFBQVEsRUFDbEIsTUFBTSxFQUFFLE1BQU0sZ0JBRWIsUUFBUSxDQUFDLENBQUMsQ0FBQyxDQUNWLDhCQUNFLEtBQUMsSUFBSSxJQUNILElBQUksRUFBRSxRQUFvQixFQUMxQixLQUFLLEVBQUUsU0FBUyxDQUFDLEtBQUssRUFDdEIsSUFBSSxFQUFFLFFBQVEsQ0FBQyxNQUFNLEVBQ3JCLEtBQUssRUFBRSxTQUFTLENBQUMsY0FBYyxHQUMvQixFQUNGLEtBQUMsSUFBSSxhQUFDLEtBQUssRUFBRSxNQUFNLENBQUMsS0FBSyxFQUFFLElBQUksRUFBRSxDQUFDLGVBQWUsQ0FBQyxVQUFVLEVBQUUsY0FBYyxDQUFDLG9CQUFvQixDQUFDLGdCQUMvRixRQUFRLElBQ0osSUFDTixDQUNKLENBQUMsQ0FBQyxDQUFDLENBQ0YsS0FBQyxJQUFJLElBQ0gsSUFBSSxFQUFFLFFBQW9CLEVBQzFCLEtBQUssRUFBRSxTQUFTLENBQUMsS0FBSyxFQUN0QixJQUFJLEVBQUUsUUFBUSxDQUFDLE1BQU0sRUFDckIsS0FBSyxFQUFFLFNBQVMsQ0FBQyxjQUFjLEdBQy9CLENBQ0gsSUFDZ0IsQ0FDcEIsQ0FBQTtBQUNILENBQUMsQ0FDRixDQUFBO0FBRUQsR0FBRyxDQUFDLFdBQVcsR0FBRyxhQUFhLENBQUMsR0FBRyxDQUFBO0FBRW5DLGVBQWUsR0FBRyxDQUFBIn0=
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IconName, IconNameValues } from "../../components/icon";
|
|
3
|
-
import { Accessibility
|
|
2
|
+
import { Accessibility } from "../../objects/facets/Accessibility";
|
|
3
|
+
import { Clickable } from "../../objects/facets/Clickable";
|
|
4
|
+
import { Dev } from "../../objects/facets/Dev";
|
|
4
5
|
import { DimensionValue, type TouchableOpacity } from "react-native";
|
|
5
6
|
import { CommonProps } from '../../objects/facets/CommonProps';
|
|
7
|
+
import { ReactNode } from 'react';
|
|
6
8
|
/**
|
|
7
9
|
* Fab Interface
|
|
8
10
|
*/
|
|
9
11
|
export interface FabProps extends Accessibility, Clickable, Dev, CommonProps {
|
|
10
|
-
children: string |
|
|
12
|
+
children: string | ReactNode;
|
|
11
13
|
extended?: boolean;
|
|
12
14
|
iconName: IconName | IconNameValues;
|
|
13
15
|
fixed?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Fab from "
|
|
1
|
+
import Fab from "../../components/fab/Fab";
|
|
2
2
|
export { Fab };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Fab from "
|
|
1
|
+
import Fab from "../../components/fab/Fab";
|
|
2
2
|
export { Fab };
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9jb21wb25lbnRzL2ZhYi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEdBQUcsTUFBTSxzQkFBc0IsQ0FBQTtBQUV0QyxPQUFPLEVBQUUsR0FBRyxFQUFFLENBQUEifQ==
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import { FlexBoxProps } from '
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FlexBoxProps } from '../../components/flex-box/FlexBoxProps';
|
|
3
3
|
/**
|
|
4
4
|
* @beta
|
|
5
5
|
* FlexBox Component - Flexible box layout container
|
|
6
|
-
* @param children {
|
|
6
|
+
* @param children {ReactNode} FlexBox child elements
|
|
7
7
|
* @param gap {number | { mobile?: number; tablet?: number; desktop?: number }} Gap between children (supports responsive values)
|
|
8
8
|
* @param direction { 'row' | 'column' | 'row-reverse' | 'column-reverse' | { mobile?: ...; tablet?: ...; desktop?: ... } } Flex direction (supports responsive values)
|
|
9
9
|
* @param align { 'start' | 'end' | 'center' | 'stretch' | 'baseline' | { mobile?: ...; tablet?: ...; desktop?: ... } } Align items (supports responsive values)
|
|
@@ -19,5 +19,5 @@ import { FlexBoxProps } from './FlexBoxProps';
|
|
|
19
19
|
* - -------------------------- NATIVE PROPERTIES -------------------------------
|
|
20
20
|
* @param fullBleed {boolean} Extend to full screen width (ignores container padding)
|
|
21
21
|
*/
|
|
22
|
-
declare const FlexBox:
|
|
22
|
+
declare const FlexBox: import("react").ForwardRefExoticComponent<FlexBoxProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
23
|
export default FlexBox;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { __assign, __read, __rest, __spreadArray } 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 { getAlignClassName } from '../../objects/facets/Alignable';
|
|
6
|
-
import { has, is } from '../../services';
|
|
7
|
+
import { has, is } from '../../services/classify';
|
|
7
8
|
import clsx from 'clsx';
|
|
8
|
-
import
|
|
9
|
+
import { forwardRef } from 'react';
|
|
9
10
|
var generateClassNames = function (_a) {
|
|
10
11
|
var value = _a.value, getClassName = _a.getClassName;
|
|
11
12
|
if (!value)
|
|
@@ -64,7 +65,7 @@ var getJustifyClassName = function (justifyContent) {
|
|
|
64
65
|
/**
|
|
65
66
|
* @beta
|
|
66
67
|
* FlexBox Component - Flexible box layout container
|
|
67
|
-
* @param children {
|
|
68
|
+
* @param children {ReactNode} FlexBox child elements
|
|
68
69
|
* @param gap {number | { mobile?: number; tablet?: number; desktop?: number }} Gap between children (supports responsive values)
|
|
69
70
|
* @param direction { 'row' | 'column' | 'row-reverse' | 'column-reverse' | { mobile?: ...; tablet?: ...; desktop?: ... } } Flex direction (supports responsive values)
|
|
70
71
|
* @param align { 'start' | 'end' | 'center' | 'stretch' | 'baseline' | { mobile?: ...; tablet?: ...; desktop?: ... } } Align items (supports responsive values)
|
|
@@ -80,7 +81,7 @@ var getJustifyClassName = function (justifyContent) {
|
|
|
80
81
|
* - -------------------------- NATIVE PROPERTIES -------------------------------
|
|
81
82
|
* @param fullBleed {boolean} Extend to full screen width (ignores container padding)
|
|
82
83
|
*/
|
|
83
|
-
var FlexBox =
|
|
84
|
+
var FlexBox = forwardRef(function (_a, ref) {
|
|
84
85
|
var className = _a.className, id = _a.id, gap = _a.gap, direction = _a.direction, align = _a.align, justify = _a.justify, wrap = _a.wrap, scrollable = _a.scrollable, fullheight = _a.fullheight, mobile = _a.mobile, testId = _a.testId, others = __rest(_a, ["className", "id", "gap", "direction", "align", "justify", "wrap", "scrollable", "fullheight", "mobile", "testId"]);
|
|
85
86
|
var styled = useTrilogyContext().styled;
|
|
86
87
|
var gapClasses = gap === 0 ? [is('gapless')] : generateClassNames({ value: gap, getClassName: function (val) { return has("gap-".concat(val)); } });
|
|
@@ -92,8 +93,8 @@ var FlexBox = React.forwardRef(function (_a, ref) {
|
|
|
92
93
|
mobile && is('mobile'),
|
|
93
94
|
className,
|
|
94
95
|
], false)));
|
|
95
|
-
return
|
|
96
|
+
return _jsx("div", __assign({ ref: ref, id: id, className: classes, "data-testid": testId }, others));
|
|
96
97
|
});
|
|
97
98
|
FlexBox.displayName = ComponentName.FlexBox;
|
|
98
99
|
export default FlexBox;
|
|
99
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
100
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjoz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UFPLEVBQUUsWUFBWSxFQUFFLFVBQUMsR0FBRyxJQUFLLE9BQUEsRUFBRSxDQUFDLG1CQUFtQixDQUFDLEdBQWEsQ0FBQyxDQUFDLEVBQXRDLENBQXNDLEVBQUUsQ0FBQyxrQkFDckcsVUFBVSxrQkFDVixzQkFBc0IsQ0FBQyxFQUFFLEtBQUssRUFBRSxJQUFJLEVBQUUsWUFBWSxFQUFFLFVBQUMsR0FBRyxJQUFLLE9BQUEsRUFBRSxDQUFDLE1BQU0sQ0FBQyxFQUFWLENBQVUsRUFBRSxDQUFDO1FBQzdFLFVBQVUsSUFBSSxFQUFFLENBQUMsWUFBWSxDQUFDO1FBQzlCLFVBQVUsSUFBSSxFQUFFLENBQUMsWUFBWSxDQUFDO1FBQzlCLE1BQU0sSUFBSSxFQUFFLENBQUMsUUFBUSxDQUFDO1FBQ3RCLFNBQVM7Y0FDVCxDQUNILENBQUE7SUFFRCxPQUFPLHVCQUFLLEdBQUcsRUFBRSxHQUFHLEVBQUUsRUFBRSxFQUFFLEVBQUUsRUFBRSxTQUFTLEVBQUUsT0FBTyxpQkFBZSxNQUFNLElBQU0sTUFBTSxFQUFJLENBQUE7QUFDdkYsQ0FBQyxDQUNGLENBQUE7QUFFRCxPQUFPLENBQUMsV0FBVyxHQUFHLGFBQWEsQ0FBQyxPQUFPLENBQUE7QUFDM0MsZUFBZSxPQUFPLENBQUEifQ==
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { View } from 'react-native';
|
|
3
|
-
import { FlexBoxProps } from '
|
|
3
|
+
import { FlexBoxProps } from '../../components/flex-box/FlexBoxProps';
|
|
4
4
|
/**
|
|
5
5
|
* @beta
|
|
6
6
|
* FlexBox Component - Flexible box layout container
|
|
7
|
-
* @param children {
|
|
7
|
+
* @param children {ReactNode} FlexBox child elements
|
|
8
8
|
* @param gap {number | { mobile?: number; tablet?: number; desktop?: number }} Gap between children (supports responsive values)
|
|
9
9
|
* @param direction { 'row' | 'column' | 'row-reverse' | 'column-reverse' | { mobile?: ...; tablet?: ...; desktop?: ... } } Flex direction (supports responsive values)
|
|
10
10
|
* @param align { 'start' | 'end' | 'center' | 'stretch' | 'baseline' | { mobile?: ...; tablet?: ...; desktop?: ... } } Align items (supports responsive values)
|
|
@@ -15,5 +15,5 @@ import { FlexBoxProps } from './FlexBoxProps';
|
|
|
15
15
|
* @param id {string} Custom id attribute
|
|
16
16
|
* @param fullBleed {boolean} Extend to full screen width (ignores container padding)
|
|
17
17
|
*/
|
|
18
|
-
declare const FlexBox:
|
|
18
|
+
declare const FlexBox: import("react").ForwardRefExoticComponent<FlexBoxProps & import("react").RefAttributes<View>>;
|
|
19
19
|
export default FlexBox;
|