@trilogy-ds/react 4.20.1 → 4.20.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/accordion/Accordion.d.ts +3 -3
- package/lib/components/accordion/Accordion.js +7 -6
- package/lib/components/accordion/Accordion.native.d.ts +3 -3
- package/lib/components/accordion/Accordion.native.js +6 -5
- package/lib/components/accordion/AccordionProps.d.ts +2 -2
- package/lib/components/accordion/index.d.ts +4 -4
- package/lib/components/accordion/index.js +5 -5
- package/lib/components/accordion/item/AccordionItem.d.ts +3 -3
- package/lib/components/accordion/item/AccordionItem.js +9 -8
- package/lib/components/accordion/item/AccordionItem.native.d.ts +4 -4
- package/lib/components/accordion/item/AccordionItem.native.js +14 -22
- package/lib/components/accordion/item/AccordionItemProps.d.ts +3 -3
- package/lib/components/accordion/item/body/AccordionBody.d.ts +4 -4
- package/lib/components/accordion/item/body/AccordionBody.js +8 -7
- package/lib/components/accordion/item/body/AccordionBody.native.d.ts +4 -4
- package/lib/components/accordion/item/body/AccordionBody.native.js +6 -5
- package/lib/components/accordion/item/body/AccordionBodyProps.d.ts +3 -3
- package/lib/components/accordion/item/body/index.d.ts +1 -1
- package/lib/components/accordion/item/body/index.js +2 -2
- package/lib/components/accordion/item/header/AccordionHeader.d.ts +4 -4
- package/lib/components/accordion/item/header/AccordionHeader.js +7 -6
- package/lib/components/accordion/item/header/AccordionHeader.native.d.ts +4 -4
- package/lib/components/accordion/item/header/AccordionHeader.native.js +7 -5
- package/lib/components/accordion/item/header/AccordionHeaderProps.d.ts +2 -2
- package/lib/components/accordion/item/header/index.d.ts +1 -1
- package/lib/components/accordion/item/header/index.js +2 -2
- package/lib/components/accordion/item/index.d.ts +1 -1
- package/lib/components/accordion/item/index.js +2 -2
- package/lib/components/alert/Alert.d.ts +4 -4
- package/lib/components/alert/Alert.js +22 -34
- package/lib/components/alert/Alert.native.d.ts +5 -5
- package/lib/components/alert/Alert.native.js +19 -40
- package/lib/components/alert/AlertProps.d.ts +8 -8
- package/lib/components/alert/AlertProps.js +1 -1
- package/lib/components/alert/ToasterDocs.d.ts +4 -4
- package/lib/components/alert/ToasterDocs.js +3 -3
- package/lib/components/alert/context/ToasterContext.d.ts +3 -3
- package/lib/components/alert/context/ToasterContext.js +3 -3
- package/lib/components/alert/context/ToasterContextProps.d.ts +3 -2
- package/lib/components/alert/context/index.d.ts +1 -1
- package/lib/components/alert/context/index.js +2 -2
- package/lib/components/alert/index.d.ts +3 -3
- package/lib/components/alert/index.js +4 -4
- package/lib/components/autocomplete/AutoComplete.d.ts +3 -3
- package/lib/components/autocomplete/AutoComplete.js +20 -21
- package/lib/components/autocomplete/AutoComplete.native.d.ts +3 -3
- package/lib/components/autocomplete/AutoComplete.native.js +9 -11
- package/lib/components/autocomplete/AutoCompleteProps.d.ts +4 -4
- package/lib/components/autocomplete/Autocomplete.helpers.d.ts +1 -1
- package/lib/components/autocomplete/index.d.ts +4 -4
- package/lib/components/autocomplete/index.js +5 -5
- package/lib/components/autocomplete/item/AutoCompleteIem.native.d.ts +1 -1
- package/lib/components/autocomplete/item/AutoCompleteIem.native.js +4 -4
- package/lib/components/autocomplete/item/AutoCompleteItem.d.ts +2 -2
- package/lib/components/autocomplete/item/AutoCompleteItem.js +9 -8
- package/lib/components/autocomplete/item/AutoCompleteItemProps.d.ts +2 -2
- package/lib/components/autocomplete/item/index.d.ts +1 -1
- package/lib/components/autocomplete/item/index.js +2 -2
- package/lib/components/autocomplete/menu/AutoCompleteMenu.d.ts +1 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.js +7 -6
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.d.ts +1 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js +4 -4
- package/lib/components/autocomplete/menu/AutoCompleteMenuProps.d.ts +2 -2
- package/lib/components/autocomplete/menu/index.d.ts +1 -1
- package/lib/components/autocomplete/menu/index.js +2 -2
- package/lib/components/autocomplete/utils/index.d.ts +1 -1
- package/lib/components/autocomplete/utils/index.js +2 -2
- package/lib/components/autolayout/AutoLayout.d.ts +3 -3
- package/lib/components/autolayout/AutoLayout.helpers.d.ts +3 -3
- package/lib/components/autolayout/AutoLayout.helpers.js +10 -9
- package/lib/components/autolayout/AutoLayout.js +5 -4
- package/lib/components/autolayout/AutoLayout.native.d.ts +3 -3
- package/lib/components/autolayout/AutoLayout.native.js +9 -12
- package/lib/components/autolayout/AutoLayoutProps.d.ts +2 -2
- package/lib/components/autolayout/AutoLayoutWrapper.d.ts +3 -3
- package/lib/components/autolayout/AutoLayoutWrapper.js +6 -5
- package/lib/components/badge/Badge.d.ts +4 -4
- package/lib/components/badge/Badge.js +10 -11
- package/lib/components/badge/Badge.native.d.ts +3 -3
- package/lib/components/badge/Badge.native.js +15 -22
- package/lib/components/badge/BadgeProps.d.ts +5 -3
- package/lib/components/badge/BadgeProps.js +1 -1
- package/lib/components/badge/index.d.ts +2 -2
- package/lib/components/badge/index.js +3 -3
- package/lib/components/box/Box.d.ts +4 -4
- package/lib/components/box/Box.js +9 -8
- package/lib/components/box/Box.native.d.ts +3 -3
- package/lib/components/box/Box.native.js +15 -21
- package/lib/components/box/BoxProps.d.ts +2 -2
- package/lib/components/box/content/BoxContent.d.ts +4 -4
- package/lib/components/box/content/BoxContent.js +9 -8
- package/lib/components/box/content/BoxContent.native.d.ts +3 -3
- package/lib/components/box/content/BoxContent.native.js +8 -7
- package/lib/components/box/content/BoxContentProps.d.ts +2 -2
- package/lib/components/box/content/index.d.ts +1 -1
- package/lib/components/box/content/index.js +2 -2
- package/lib/components/box/context/boxContext.d.ts +2 -2
- package/lib/components/box/context/boxContext.js +3 -3
- package/lib/components/box/footer/BoxFooter.d.ts +4 -4
- package/lib/components/box/footer/BoxFooter.js +8 -7
- package/lib/components/box/footer/BoxFooter.native.d.ts +4 -4
- package/lib/components/box/footer/BoxFooter.native.js +9 -8
- package/lib/components/box/footer/BoxFooterProps.d.ts +2 -2
- package/lib/components/box/footer/index.d.ts +1 -1
- package/lib/components/box/footer/index.js +2 -2
- package/lib/components/box/header/BoxHeader.d.ts +4 -4
- package/lib/components/box/header/BoxHeader.js +8 -7
- package/lib/components/box/header/BoxHeader.native.d.ts +4 -4
- package/lib/components/box/header/BoxHeader.native.js +8 -8
- package/lib/components/box/header/BoxHeaderProps.d.ts +2 -2
- package/lib/components/box/header/index.d.ts +1 -1
- package/lib/components/box/header/index.js +2 -2
- package/lib/components/box/index.d.ts +8 -8
- package/lib/components/box/index.js +9 -9
- package/lib/components/box/item/BoxItem.d.ts +4 -4
- package/lib/components/box/item/BoxItem.js +7 -6
- package/lib/components/box/item/BoxItem.native.d.ts +4 -4
- package/lib/components/box/item/BoxItem.native.js +6 -5
- package/lib/components/box/item/BoxItemProps.d.ts +3 -3
- package/lib/components/box/item/index.d.ts +2 -2
- package/lib/components/box/item/index.js +3 -3
- package/lib/components/box/table-container/BoxTableContainer.d.ts +4 -4
- package/lib/components/box/table-container/BoxTableContainer.js +7 -6
- package/lib/components/box/table-container/BoxTableContainer.native.d.ts +4 -4
- package/lib/components/box/table-container/BoxTableContainer.native.js +6 -5
- package/lib/components/box/table-container/BoxTableContainerProps.d.ts +4 -3
- package/lib/components/box/table-container/index.d.ts +1 -1
- package/lib/components/box/table-container/index.js +2 -2
- package/lib/components/breadcrumb/Breadcrumb.d.ts +4 -4
- package/lib/components/breadcrumb/Breadcrumb.js +8 -8
- package/lib/components/breadcrumb/Breadcrumb.native.d.ts +4 -4
- package/lib/components/breadcrumb/Breadcrumb.native.js +9 -10
- package/lib/components/breadcrumb/BreadcrumbProps.d.ts +2 -2
- package/lib/components/breadcrumb/index.d.ts +2 -2
- package/lib/components/breadcrumb/index.js +3 -3
- package/lib/components/breadcrumb/item/BreadcrumbItem.d.ts +3 -3
- package/lib/components/breadcrumb/item/BreadcrumbItem.js +7 -7
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.d.ts +3 -3
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +6 -6
- package/lib/components/breadcrumb/item/BreadcrumbItemProps.d.ts +2 -2
- package/lib/components/breadcrumb/item/index.d.ts +1 -1
- package/lib/components/breadcrumb/item/index.js +2 -2
- package/lib/components/button/Button.d.ts +4 -4
- package/lib/components/button/Button.js +15 -20
- package/lib/components/button/Button.native.d.ts +3 -3
- package/lib/components/button/Button.native.js +18 -26
- package/lib/components/button/ButtonProps.d.ts +4 -4
- package/lib/components/button/index.d.ts +3 -3
- package/lib/components/button/index.js +4 -4
- package/lib/components/button/list/ButtonList.d.ts +3 -3
- package/lib/components/button/list/ButtonList.js +8 -7
- package/lib/components/button/list/ButtonList.native.d.ts +3 -3
- package/lib/components/button/list/ButtonList.native.js +5 -4
- package/lib/components/button/list/ButtonListProps.d.ts +4 -3
- package/lib/components/button/list/index.d.ts +2 -2
- package/lib/components/button/list/index.js +3 -3
- package/lib/components/calendar/Calendar.d.ts +3 -3
- package/lib/components/calendar/Calendar.js +102 -116
- package/lib/components/calendar/Calendar.native.d.ts +3 -3
- package/lib/components/calendar/Calendar.native.js +59 -96
- package/lib/components/calendar/CalendarProps.d.ts +1 -1
- package/lib/components/calendar/index.d.ts +3 -3
- package/lib/components/calendar/index.js +4 -4
- package/lib/components/card/Card.d.ts +5 -5
- package/lib/components/card/Card.js +9 -8
- package/lib/components/card/Card.native.d.ts +5 -5
- package/lib/components/card/Card.native.js +15 -20
- package/lib/components/card/CardProps.d.ts +2 -2
- package/lib/components/card/content/CardContent.d.ts +4 -4
- package/lib/components/card/content/CardContent.js +7 -6
- package/lib/components/card/content/CardContent.native.d.ts +4 -4
- package/lib/components/card/content/CardContent.native.js +6 -5
- package/lib/components/card/content/CardContentProps.d.ts +2 -2
- package/lib/components/card/content/index.d.ts +1 -1
- package/lib/components/card/content/index.js +2 -2
- package/lib/components/card/image/CardImage.d.ts +3 -3
- package/lib/components/card/image/CardImage.js +7 -8
- package/lib/components/card/image/CardImage.native.d.ts +3 -3
- package/lib/components/card/image/CardImage.native.js +6 -6
- package/lib/components/card/image/CardImageProps.d.ts +3 -2
- package/lib/components/card/image/index.d.ts +1 -1
- package/lib/components/card/image/index.js +2 -2
- package/lib/components/card/index.d.ts +4 -4
- package/lib/components/card/index.js +5 -5
- package/lib/components/checkbox/Checkbox.d.ts +4 -4
- package/lib/components/checkbox/Checkbox.js +9 -10
- package/lib/components/checkbox/Checkbox.native.d.ts +3 -3
- package/lib/components/checkbox/Checkbox.native.js +7 -8
- package/lib/components/checkbox/CheckboxProps.d.ts +2 -2
- package/lib/components/checkbox/index.d.ts +5 -5
- package/lib/components/checkbox/index.js +6 -6
- package/lib/components/checkbox/list/CheckboxList.d.ts +3 -3
- package/lib/components/checkbox/list/CheckboxList.js +10 -15
- package/lib/components/checkbox/list/CheckboxList.native.d.ts +3 -3
- package/lib/components/checkbox/list/CheckboxList.native.js +6 -10
- package/lib/components/checkbox/list/CheckboxListProps.d.ts +4 -3
- package/lib/components/checkbox/list/index.d.ts +1 -1
- package/lib/components/checkbox/list/index.js +2 -2
- package/lib/components/checkbox/tiles/CheckboxTiles.d.ts +4 -4
- package/lib/components/checkbox/tiles/CheckboxTiles.js +7 -6
- package/lib/components/checkbox/tiles/CheckboxTiles.native.d.ts +4 -4
- package/lib/components/checkbox/tiles/CheckboxTiles.native.js +11 -10
- package/lib/components/checkbox/tiles/CheckboxTilesProps.d.ts +2 -2
- package/lib/components/checkbox/tiles/context/CheckboxTilesContext.d.ts +3 -3
- package/lib/components/checkbox/tiles/context/CheckboxTilesContext.js +3 -3
- package/lib/components/checkbox/tiles/context/index.d.ts +2 -2
- package/lib/components/checkbox/tiles/context/index.js +3 -3
- package/lib/components/checkbox/tiles/index.d.ts +1 -1
- package/lib/components/checkbox/tiles/index.js +2 -2
- package/lib/components/checkbox/tiles/tile/CheckboxTile.d.ts +3 -3
- package/lib/components/checkbox/tiles/tile/CheckboxTile.js +11 -20
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.d.ts +3 -3
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.js +19 -31
- package/lib/components/checkbox/tiles/tile/CheckboxTileProps.d.ts +3 -2
- package/lib/components/checkbox/tiles/tile/index.d.ts +1 -1
- package/lib/components/checkbox/tiles/tile/index.js +2 -2
- package/lib/components/chips/Chips.d.ts +3 -3
- package/lib/components/chips/Chips.js +9 -8
- package/lib/components/chips/Chips.native.d.ts +3 -3
- package/lib/components/chips/Chips.native.js +8 -11
- package/lib/components/chips/ChipsProps.d.ts +2 -2
- package/lib/components/chips/index.d.ts +2 -2
- package/lib/components/chips/index.js +3 -3
- package/lib/components/chips/list/ChipsList.d.ts +4 -4
- package/lib/components/chips/list/ChipsList.js +7 -6
- package/lib/components/chips/list/ChipsList.native.d.ts +5 -5
- package/lib/components/chips/list/ChipsList.native.js +6 -5
- package/lib/components/chips/list/ChipsListProps.d.ts +2 -2
- package/lib/components/chips/list/index.d.ts +1 -1
- package/lib/components/chips/list/index.js +2 -2
- package/lib/components/columns/Columns.d.ts +3 -3
- package/lib/components/columns/Columns.js +7 -6
- package/lib/components/columns/Columns.native.d.ts +3 -3
- package/lib/components/columns/Columns.native.js +14 -16
- package/lib/components/columns/ColumnsProps.d.ts +2 -2
- package/lib/components/columns/column/Column.d.ts +3 -3
- package/lib/components/columns/column/Column.js +7 -6
- package/lib/components/columns/column/Column.native.d.ts +3 -3
- package/lib/components/columns/column/Column.native.js +13 -12
- package/lib/components/columns/column/ColumnProps.d.ts +2 -2
- package/lib/components/columns/context/index.d.ts +2 -2
- package/lib/components/columns/context/index.js +3 -3
- package/lib/components/columns/index.d.ts +3 -3
- package/lib/components/columns/index.js +4 -4
- package/lib/components/container/Container.d.ts +3 -3
- package/lib/components/container/Container.js +7 -6
- package/lib/components/container/Container.native.d.ts +3 -3
- package/lib/components/container/Container.native.js +6 -5
- package/lib/components/container/ContainerProps.d.ts +2 -2
- package/lib/components/container/ContainerProps.js +1 -1
- package/lib/components/countdown/Countdown.d.ts +3 -3
- package/lib/components/countdown/Countdown.js +8 -19
- package/lib/components/countdown/Countdown.native.d.ts +3 -3
- package/lib/components/countdown/Countdown.native.js +7 -21
- package/lib/components/countdown/CountdownProps.d.ts +1 -1
- package/lib/components/countdown/index.d.ts +2 -2
- package/lib/components/countdown/index.js +3 -3
- package/lib/components/datepicker/DatePicker.d.ts +3 -3
- package/lib/components/datepicker/DatePicker.js +45 -63
- package/lib/components/datepicker/DatePicker.native.d.ts +3 -3
- package/lib/components/datepicker/DatePicker.native.js +4 -17
- package/lib/components/datepicker/DatePickerProps.d.ts +4 -4
- package/lib/components/datepicker/index.d.ts +1 -1
- package/lib/components/datepicker/index.js +2 -2
- package/lib/components/divider/Divider.d.ts +2 -2
- package/lib/components/divider/Divider.js +7 -9
- package/lib/components/divider/Divider.native.d.ts +3 -3
- package/lib/components/divider/Divider.native.js +14 -16
- package/lib/components/divider/DividerProps.d.ts +2 -1
- package/lib/components/divider/index.d.ts +1 -1
- package/lib/components/divider/index.js +2 -2
- package/lib/components/dropdown/Dropdown.d.ts +4 -4
- package/lib/components/dropdown/Dropdown.js +19 -22
- package/lib/components/dropdown/Dropdown.native.d.ts +3 -3
- package/lib/components/dropdown/Dropdown.native.js +5 -4
- package/lib/components/dropdown/DropdownProps.d.ts +2 -2
- package/lib/components/dropdown/context/DropdownContext.d.ts +2 -2
- package/lib/components/dropdown/context/DropdownContext.js +5 -4
- package/lib/components/dropdown/context/index.d.ts +1 -1
- package/lib/components/dropdown/context/index.js +2 -2
- package/lib/components/dropdown/group/DropdownGroup.d.ts +4 -4
- package/lib/components/dropdown/group/DropdownGroup.js +7 -6
- package/lib/components/dropdown/group/DropdownGroup.native.d.ts +3 -3
- package/lib/components/dropdown/group/DropdownGroup.native.js +5 -4
- package/lib/components/dropdown/group/DropdownGroupProps.d.ts +2 -2
- package/lib/components/dropdown/group/index.d.ts +2 -2
- package/lib/components/dropdown/group/index.js +3 -3
- package/lib/components/dropdown/index.d.ts +6 -6
- package/lib/components/dropdown/index.js +7 -7
- package/lib/components/dropdown/item/DropdownItem.d.ts +4 -4
- package/lib/components/dropdown/item/DropdownItem.js +7 -8
- package/lib/components/dropdown/item/DropdownItem.native.d.ts +3 -3
- package/lib/components/dropdown/item/DropdownItem.native.js +5 -4
- package/lib/components/dropdown/item/DropdownItemProps.d.ts +3 -3
- package/lib/components/dropdown/item/index.d.ts +2 -2
- package/lib/components/dropdown/item/index.js +3 -3
- package/lib/components/dropdown/trigger/DropdownTrigger.d.ts +4 -4
- package/lib/components/dropdown/trigger/DropdownTrigger.js +12 -11
- package/lib/components/dropdown/trigger/DropdownTrigger.native.d.ts +3 -3
- package/lib/components/dropdown/trigger/DropdownTrigger.native.js +5 -4
- package/lib/components/dropdown/trigger/DropdownTriggerProps.d.ts +2 -2
- package/lib/components/dropdown/trigger/index.d.ts +2 -2
- package/lib/components/dropdown/trigger/index.js +3 -3
- package/lib/components/enums.d.ts +3 -3
- package/lib/components/enums.js +4 -4
- package/lib/components/fab/Fab.d.ts +3 -3
- package/lib/components/fab/Fab.js +10 -11
- package/lib/components/fab/Fab.native.d.ts +3 -3
- package/lib/components/fab/Fab.native.js +10 -7
- package/lib/components/fab/FabProps.d.ts +5 -3
- package/lib/components/fab/index.d.ts +1 -1
- package/lib/components/fab/index.js +2 -2
- package/lib/components/flex-box/FlexBox.d.ts +4 -4
- package/lib/components/flex-box/FlexBox.js +8 -7
- package/lib/components/flex-box/FlexBox.native.d.ts +4 -4
- package/lib/components/flex-box/FlexBox.native.js +14 -16
- package/lib/components/flex-box/FlexBoxProps.d.ts +3 -3
- package/lib/components/flex-box/context/index.d.ts +2 -2
- package/lib/components/flex-box/context/index.js +3 -3
- package/lib/components/flex-box/flex-item/FlexItem.d.ts +3 -3
- package/lib/components/flex-box/flex-item/FlexItem.js +7 -6
- package/lib/components/flex-box/flex-item/FlexItem.native.d.ts +3 -3
- package/lib/components/flex-box/flex-item/FlexItem.native.js +11 -10
- package/lib/components/flex-box/flex-item/FlexItemProps.d.ts +2 -2
- package/lib/components/flex-box/index.d.ts +2 -2
- package/lib/components/flex-box/index.js +3 -3
- package/lib/components/hero/Hero.d.ts +3 -3
- package/lib/components/hero/Hero.js +8 -8
- package/lib/components/hero/Hero.native.d.ts +3 -3
- package/lib/components/hero/Hero.native.js +17 -28
- package/lib/components/hero/HeroProps.d.ts +6 -5
- package/lib/components/icon/Icon.d.ts +3 -3
- package/lib/components/icon/Icon.js +8 -8
- package/lib/components/icon/Icon.native.d.ts +2 -2
- package/lib/components/icon/Icon.native.js +12 -15
- package/lib/components/icon/IconProps.d.ts +8 -3
- package/lib/components/icon/index.d.ts +3 -3
- package/lib/components/icon/index.js +4 -4
- package/lib/components/image/Image.d.ts +3 -3
- package/lib/components/image/Image.js +11 -11
- package/lib/components/image/Image.native.d.ts +3 -3
- package/lib/components/image/Image.native.js +6 -6
- package/lib/components/image/ImageProps.d.ts +3 -1
- package/lib/components/image/ImageProps.js +1 -1
- package/lib/components/image/index.d.ts +1 -1
- package/lib/components/image/index.js +2 -2
- package/lib/components/index.d.ts +54 -54
- package/lib/components/index.js +55 -55
- package/lib/components/input/Input.d.ts +4 -4
- package/lib/components/input/Input.js +69 -85
- package/lib/components/input/Input.native.d.ts +3 -3
- package/lib/components/input/Input.native.js +85 -116
- package/lib/components/input/InputProps.d.ts +11 -10
- package/lib/components/input/gauge/InputGauge.js +9 -20
- package/lib/components/input/gauge/InputGauge.native.js +10 -20
- package/lib/components/input/gauge/hook/useGauge.js +13 -13
- package/lib/components/input/index.d.ts +3 -3
- package/lib/components/input/index.js +4 -4
- package/lib/components/link/Link.d.ts +5 -5
- package/lib/components/link/Link.js +14 -15
- package/lib/components/link/Link.native.d.ts +4 -4
- package/lib/components/link/Link.native.js +20 -23
- package/lib/components/link/LinkProps.d.ts +6 -4
- package/lib/components/link/index.d.ts +1 -1
- package/lib/components/link/index.js +2 -2
- package/lib/components/list/List.d.ts +3 -3
- package/lib/components/list/List.js +8 -7
- package/lib/components/list/List.native.d.ts +3 -3
- package/lib/components/list/List.native.js +7 -7
- package/lib/components/list/ListProps.d.ts +2 -1
- package/lib/components/list/context/ListContext.d.ts +3 -3
- package/lib/components/list/context/ListContext.js +3 -3
- package/lib/components/list/context/ListContextProps.d.ts +2 -2
- package/lib/components/list/context/index.d.ts +2 -2
- package/lib/components/list/context/index.js +3 -3
- package/lib/components/list/index.d.ts +3 -3
- package/lib/components/list/index.js +4 -4
- package/lib/components/list/item/ListItem.d.ts +4 -4
- package/lib/components/list/item/ListItem.js +11 -11
- package/lib/components/list/item/ListItem.native.d.ts +3 -3
- package/lib/components/list/item/ListItem.native.js +11 -18
- package/lib/components/list/item/ListItemProps.d.ts +2 -1
- package/lib/components/list/item/ListItemProps.js +1 -1
- package/lib/components/list/item/description/ListItemDescription.d.ts +4 -4
- package/lib/components/list/item/description/ListItemDescription.js +8 -7
- package/lib/components/list/item/description/ListItemDescription.native.d.ts +4 -4
- package/lib/components/list/item/description/ListItemDescription.native.js +8 -6
- package/lib/components/list/item/description/index.d.ts +2 -2
- package/lib/components/list/item/description/index.js +3 -3
- package/lib/components/list/item/index.d.ts +3 -3
- package/lib/components/list/item/index.js +4 -4
- package/lib/components/modal/Modal.d.ts +5 -5
- package/lib/components/modal/Modal.js +18 -25
- package/lib/components/modal/Modal.native.d.ts +5 -6
- package/lib/components/modal/Modal.native.js +18 -31
- package/lib/components/modal/ModalProps.d.ts +3 -2
- package/lib/components/modal/body/ModalBody.d.ts +4 -4
- package/lib/components/modal/body/ModalBody.js +9 -7
- package/lib/components/modal/body/ModalBody.native.d.ts +4 -4
- package/lib/components/modal/body/ModalBody.native.js +10 -10
- package/lib/components/modal/body/ModalBodyProps.d.ts +2 -2
- package/lib/components/modal/context/ModalContext.d.ts +3 -3
- package/lib/components/modal/context/ModalContext.js +3 -3
- package/lib/components/modal/context/ModalContextProps.d.ts +3 -3
- package/lib/components/modal/context/index.d.ts +2 -2
- package/lib/components/modal/context/index.js +3 -3
- package/lib/components/modal/footer/ModalFooter.d.ts +4 -4
- package/lib/components/modal/footer/ModalFooter.js +9 -7
- package/lib/components/modal/footer/ModalFooter.native.d.ts +4 -4
- package/lib/components/modal/footer/ModalFooter.native.js +11 -11
- package/lib/components/modal/footer/ModalFooterProps.d.ts +2 -2
- package/lib/components/modal/index.d.ts +4 -4
- package/lib/components/modal/index.js +5 -5
- package/lib/components/otp/Otp.d.ts +3 -3
- package/lib/components/otp/Otp.js +14 -16
- package/lib/components/otp/Otp.native.d.ts +3 -3
- package/lib/components/otp/Otp.native.js +22 -30
- package/lib/components/otp/index.d.ts +1 -1
- package/lib/components/otp/index.js +2 -2
- package/lib/components/pagination/Pagination.d.ts +3 -3
- package/lib/components/pagination/Pagination.js +40 -50
- package/lib/components/pagination/Pagination.native.d.ts +3 -3
- package/lib/components/pagination/Pagination.native.js +18 -29
- package/lib/components/pagination/PaginationProps.d.ts +5 -4
- package/lib/components/pagination/index.d.ts +2 -2
- package/lib/components/pagination/index.js +3 -3
- package/lib/components/popover/Popover.d.ts +3 -3
- package/lib/components/popover/Popover.js +7 -8
- package/lib/components/popover/Popover.native.d.ts +3 -3
- package/lib/components/popover/Popover.native.js +11 -20
- package/lib/components/popover/PopoverProps.d.ts +4 -3
- package/lib/components/popover/index.d.ts +2 -2
- package/lib/components/popover/index.js +3 -3
- package/lib/components/price/Price.d.ts +4 -4
- package/lib/components/price/Price.js +14 -38
- package/lib/components/price/Price.native.d.ts +4 -4
- package/lib/components/price/Price.native.js +11 -31
- package/lib/components/price/PriceProps.d.ts +6 -4
- package/lib/components/price/index.d.ts +2 -2
- package/lib/components/price/index.js +3 -3
- package/lib/components/product-tour/ProductTour.d.ts +4 -4
- package/lib/components/product-tour/ProductTour.js +11 -16
- package/lib/components/product-tour/ProductTour.native.d.ts +4 -4
- package/lib/components/product-tour/ProductTour.native.js +7 -5
- package/lib/components/product-tour/ProductTourProps.d.ts +2 -2
- package/lib/components/product-tour/ProductTourProps.js +1 -1
- package/lib/components/product-tour/index.d.ts +2 -2
- package/lib/components/product-tour/index.js +3 -3
- package/lib/components/progress/Progress.d.ts +3 -3
- package/lib/components/progress/Progress.js +11 -18
- package/lib/components/progress/Progress.native.d.ts +3 -3
- package/lib/components/progress/Progress.native.js +21 -25
- package/lib/components/progress/ProgressProps.d.ts +2 -2
- package/lib/components/progress/index.d.ts +4 -4
- package/lib/components/progress/index.js +5 -5
- package/lib/components/progress/item/ProgressItem.d.ts +3 -3
- package/lib/components/progress/item/ProgressItem.js +9 -8
- package/lib/components/progress/item/ProgressItem.native.d.ts +4 -4
- package/lib/components/progress/item/ProgressItem.native.js +7 -6
- package/lib/components/progress/item/ProgressItemProps.d.ts +5 -3
- package/lib/components/progress/item/index.d.ts +1 -1
- package/lib/components/progress/item/index.js +2 -2
- package/lib/components/progress/radial/ProgressRadial.d.ts +4 -4
- package/lib/components/progress/radial/ProgressRadial.js +11 -14
- package/lib/components/progress/radial/ProgressRadial.native.d.ts +4 -4
- package/lib/components/progress/radial/ProgressRadial.native.js +14 -19
- package/lib/components/progress/radial/ProgressRadialProps.d.ts +9 -6
- package/lib/components/progress/radial/index.d.ts +1 -1
- package/lib/components/progress/radial/index.js +2 -2
- package/lib/components/progress/radial/item/ProgressRadialItemProps.d.ts +3 -3
- package/lib/components/progress/radial/item/ProgressRadialtem.d.ts +1 -1
- package/lib/components/progress/radial/item/ProgressRadialtem.js +5 -5
- package/lib/components/progress/radial/item/index.d.ts +1 -1
- package/lib/components/progress/radial/item/index.js +2 -2
- package/lib/components/progress/radial/react-native-circular-progress/AnimatedCircularProgress.d.ts +3 -3
- package/lib/components/progress/radial/react-native-circular-progress/AnimatedCircularProgress.js +6 -5
- package/lib/components/progress/radial/react-native-circular-progress/CircularProgress.d.ts +3 -3
- package/lib/components/progress/radial/react-native-circular-progress/CircularProgress.js +5 -11
- package/lib/components/progress/radial/react-native-circular-progress/index.d.ts +2 -2
- package/lib/components/progress/radial/react-native-circular-progress/index.js +3 -3
- package/lib/components/prompt/Prompt.d.ts +3 -3
- package/lib/components/prompt/Prompt.js +10 -10
- package/lib/components/prompt/Prompt.native.d.ts +3 -3
- package/lib/components/prompt/Prompt.native.js +9 -9
- package/lib/components/prompt/PromptProps.d.ts +2 -2
- package/lib/components/prompt/PromptProps.js +1 -1
- package/lib/components/prompt/context/index.d.ts +4 -4
- package/lib/components/prompt/context/index.js +6 -5
- package/lib/components/prompt/files/PromptFiles.d.ts +3 -3
- package/lib/components/prompt/files/PromptFiles.js +9 -7
- package/lib/components/prompt/files/PromptFiles.native.d.ts +3 -3
- package/lib/components/prompt/files/PromptFiles.native.js +8 -7
- package/lib/components/prompt/files/file/PromptFile.d.ts +3 -3
- package/lib/components/prompt/files/file/PromptFile.js +10 -21
- package/lib/components/prompt/files/file/PromptFile.native.d.ts +3 -3
- package/lib/components/prompt/files/file/PromptFile.native.js +7 -16
- package/lib/components/prompt/files/file/index.d.ts +2 -2
- package/lib/components/prompt/files/file/index.js +3 -3
- package/lib/components/prompt/files/index.d.ts +2 -2
- package/lib/components/prompt/files/index.js +3 -3
- package/lib/components/prompt/index.d.ts +13 -13
- package/lib/components/prompt/index.js +14 -14
- package/lib/components/prompt/textarea/PromptTextarea.d.ts +3 -3
- package/lib/components/prompt/textarea/PromptTextarea.js +6 -5
- package/lib/components/prompt/textarea/PromptTextarea.native.d.ts +3 -3
- package/lib/components/prompt/textarea/PromptTextarea.native.js +6 -5
- package/lib/components/prompt/textarea/PromptTextareaProps.d.ts +2 -2
- package/lib/components/prompt/textarea/index.d.ts +2 -2
- package/lib/components/prompt/textarea/index.js +3 -3
- package/lib/components/prompt/toolbar/PromptToolbar.d.ts +3 -3
- package/lib/components/prompt/toolbar/PromptToolbar.js +6 -5
- package/lib/components/prompt/toolbar/PromptToolbar.native.d.ts +3 -3
- package/lib/components/prompt/toolbar/PromptToolbar.native.js +6 -5
- package/lib/components/prompt/toolbar/PromptToolbarProps.d.ts +2 -2
- package/lib/components/prompt/toolbar/index.d.ts +2 -2
- package/lib/components/prompt/toolbar/index.js +3 -3
- package/lib/components/prompt/toolbar/microphone/PromptMicrophone.d.ts +3 -3
- package/lib/components/prompt/toolbar/microphone/PromptMicrophone.js +6 -5
- package/lib/components/prompt/toolbar/microphone/PromptMicrophone.native.d.ts +3 -3
- package/lib/components/prompt/toolbar/microphone/PromptMicrophone.native.js +9 -9
- package/lib/components/prompt/toolbar/microphone/index.d.ts +2 -2
- package/lib/components/prompt/toolbar/microphone/index.js +3 -3
- package/lib/components/prompt/toolbar/submit/PromptSubmit.d.ts +3 -3
- package/lib/components/prompt/toolbar/submit/PromptSubmit.js +8 -7
- package/lib/components/prompt/toolbar/submit/PromptSubmit.native.d.ts +3 -3
- package/lib/components/prompt/toolbar/submit/PromptSubmit.native.js +10 -9
- package/lib/components/prompt/toolbar/submit/index.d.ts +2 -2
- package/lib/components/prompt/toolbar/submit/index.js +3 -3
- package/lib/components/prompt/toolbar/tools/PromptTools.d.ts +3 -3
- package/lib/components/prompt/toolbar/tools/PromptTools.js +6 -5
- package/lib/components/prompt/toolbar/tools/PromptTools.native.d.ts +3 -3
- package/lib/components/prompt/toolbar/tools/PromptTools.native.js +5 -4
- package/lib/components/prompt/toolbar/tools/PromptToolsProps.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/button/PromptButton.d.ts +3 -3
- package/lib/components/prompt/toolbar/tools/button/PromptButton.js +6 -5
- package/lib/components/prompt/toolbar/tools/button/PromptButton.native.d.ts +3 -3
- package/lib/components/prompt/toolbar/tools/button/PromptButton.native.js +5 -4
- package/lib/components/prompt/toolbar/tools/button/PromptButtonProps.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/button/index.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/button/index.js +3 -3
- package/lib/components/prompt/toolbar/tools/index.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/index.js +3 -3
- package/lib/components/prompt/toolbar/tools/inputFile/PromptInputFile.d.ts +3 -3
- package/lib/components/prompt/toolbar/tools/inputFile/PromptInputFile.js +8 -10
- package/lib/components/prompt/toolbar/tools/inputFile/PromptInputFile.native.d.ts +3 -3
- package/lib/components/prompt/toolbar/tools/inputFile/PromptInputFile.native.js +9 -9
- package/lib/components/prompt/toolbar/tools/inputFile/PromptInputFileProps.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/inputFile/index.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/inputFile/index.js +3 -3
- package/lib/components/prompt/toolbar/tools/select/PromptSelect.d.ts +3 -3
- package/lib/components/prompt/toolbar/tools/select/PromptSelect.js +17 -18
- package/lib/components/prompt/toolbar/tools/select/PromptSelect.native.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/select/PromptSelect.native.js +5 -4
- package/lib/components/prompt/toolbar/tools/select/index.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/select/index.js +3 -3
- package/lib/components/prompt/toolbar/tools/select/options/PromptSelectOption.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/select/options/PromptSelectOption.js +5 -4
- package/lib/components/prompt/toolbar/tools/select/options/PromptSelectOption.native.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/select/options/PromptSelectOption.native.js +5 -4
- package/lib/components/prompt/toolbar/tools/select/options/index.d.ts +2 -2
- package/lib/components/prompt/toolbar/tools/select/options/index.js +3 -3
- package/lib/components/radio/Radio.d.ts +2 -2
- package/lib/components/radio/Radio.js +17 -18
- package/lib/components/radio/Radio.native.d.ts +2 -2
- package/lib/components/radio/Radio.native.js +8 -8
- package/lib/components/radio/RadioProps.d.ts +4 -3
- package/lib/components/radio/index.d.ts +4 -4
- package/lib/components/radio/index.js +5 -5
- package/lib/components/radio/list/RadioList.d.ts +3 -3
- package/lib/components/radio/list/RadioList.js +10 -15
- package/lib/components/radio/list/RadioList.native.d.ts +3 -3
- package/lib/components/radio/list/RadioList.native.js +6 -10
- package/lib/components/radio/list/RadioListProps.d.ts +4 -3
- package/lib/components/radio/list/index.d.ts +1 -1
- package/lib/components/radio/list/index.js +2 -2
- package/lib/components/radio/tiles/RadioTiles.d.ts +2 -2
- package/lib/components/radio/tiles/RadioTiles.js +9 -8
- package/lib/components/radio/tiles/RadioTiles.native.d.ts +2 -2
- package/lib/components/radio/tiles/RadioTiles.native.js +10 -9
- package/lib/components/radio/tiles/RadioTilesProps.d.ts +4 -3
- package/lib/components/radio/tiles/context/RadioTilesContext.d.ts +3 -3
- package/lib/components/radio/tiles/context/RadioTilesContext.js +3 -3
- package/lib/components/radio/tiles/context/index.d.ts +2 -2
- package/lib/components/radio/tiles/context/index.js +3 -3
- package/lib/components/radio/tiles/index.d.ts +1 -1
- package/lib/components/radio/tiles/index.js +2 -2
- package/lib/components/radio/tiles/tile/RadioTile.d.ts +2 -2
- package/lib/components/radio/tiles/tile/RadioTile.js +18 -26
- package/lib/components/radio/tiles/tile/RadioTile.native.d.ts +2 -2
- package/lib/components/radio/tiles/tile/RadioTile.native.js +11 -18
- package/lib/components/radio/tiles/tile/RadioTileProps.d.ts +3 -2
- package/lib/components/radio/tiles/tile/index.d.ts +1 -1
- package/lib/components/radio/tiles/tile/index.js +2 -2
- package/lib/components/range/Range.d.ts +3 -3
- package/lib/components/range/Range.js +21 -36
- package/lib/components/range/Range.native.d.ts +3 -3
- package/lib/components/range/Range.native.js +22 -30
- package/lib/components/range/RangeProps.d.ts +2 -1
- package/lib/components/range/index.d.ts +1 -1
- package/lib/components/range/index.js +2 -2
- package/lib/components/rows/Rows.d.ts +4 -4
- package/lib/components/rows/Rows.js +10 -9
- package/lib/components/rows/Rows.native.d.ts +4 -4
- package/lib/components/rows/Rows.native.js +6 -5
- package/lib/components/rows/RowsProps.d.ts +2 -2
- package/lib/components/rows/index.d.ts +2 -2
- package/lib/components/rows/index.js +3 -3
- package/lib/components/rows/row/Row.d.ts +4 -4
- package/lib/components/rows/row/Row.js +8 -7
- package/lib/components/rows/row/Row.native.d.ts +4 -4
- package/lib/components/rows/row/Row.native.js +6 -5
- package/lib/components/rows/row/RowProps.d.ts +2 -2
- package/lib/components/rows/row/index.d.ts +1 -1
- package/lib/components/rows/row/index.js +2 -2
- package/lib/components/scroll-view/ScrollView.d.ts +5 -5
- package/lib/components/scroll-view/ScrollView.js +13 -11
- package/lib/components/scroll-view/ScrollView.native.d.ts +5 -5
- package/lib/components/scroll-view/ScrollView.native.js +19 -19
- package/lib/components/scroll-view/ScrollViewProps.d.ts +6 -4
- package/lib/components/scroll-view/index.d.ts +1 -1
- package/lib/components/scroll-view/index.js +2 -2
- package/lib/components/section/Section.d.ts +4 -4
- package/lib/components/section/Section.js +11 -10
- package/lib/components/section/Section.native.d.ts +4 -4
- package/lib/components/section/Section.native.js +8 -8
- package/lib/components/section/SectionProps.d.ts +3 -1
- package/lib/components/section/index.d.ts +1 -1
- package/lib/components/section/index.js +2 -2
- package/lib/components/segment-control/SegmentControl.d.ts +3 -3
- package/lib/components/segment-control/SegmentControl.js +27 -26
- package/lib/components/segment-control/SegmentControl.native.d.ts +3 -3
- package/lib/components/segment-control/SegmentControl.native.js +25 -26
- package/lib/components/segment-control/SegmentControlProps.d.ts +4 -3
- package/lib/components/segment-control/index.d.ts +2 -2
- package/lib/components/segment-control/index.js +3 -3
- package/lib/components/segment-control/item/SegmentControlItem.d.ts +3 -3
- package/lib/components/segment-control/item/SegmentControlItem.js +8 -7
- package/lib/components/segment-control/item/SegmentControlItem.native.d.ts +3 -3
- package/lib/components/segment-control/item/SegmentControlItem.native.js +6 -5
- package/lib/components/segment-control/item/SegmentControlItemProps.d.ts +4 -3
- package/lib/components/segment-control/item/index.d.ts +1 -1
- package/lib/components/segment-control/item/index.js +2 -2
- package/lib/components/select/Select.d.ts +4 -4
- package/lib/components/select/Select.js +14 -14
- package/lib/components/select/Select.native.d.ts +4 -4
- package/lib/components/select/Select.native.js +16 -17
- package/lib/components/select/SelectProps.d.ts +8 -7
- package/lib/components/select/context/index.d.ts +5 -5
- package/lib/components/select/context/index.js +3 -3
- package/lib/components/select/index.d.ts +2 -2
- package/lib/components/select/index.js +3 -3
- package/lib/components/select/option/SelectOption.d.ts +4 -4
- package/lib/components/select/option/SelectOption.js +11 -12
- package/lib/components/select/option/SelectOption.native.d.ts +4 -4
- package/lib/components/select/option/SelectOption.native.js +11 -17
- package/lib/components/select/option/SelectOptionProps.d.ts +2 -1
- package/lib/components/select/option/index.d.ts +1 -1
- package/lib/components/select/option/index.js +2 -2
- package/lib/components/select/web/SelectDynamic.d.ts +4 -4
- package/lib/components/select/web/SelectDynamic.js +17 -19
- package/lib/components/select/web/SelectNative.d.ts +2 -2
- package/lib/components/select/web/SelectNative.js +31 -40
- package/lib/components/select/web/index.d.ts +2 -2
- package/lib/components/select/web/index.js +3 -3
- package/lib/components/skeleton/Skeleton.d.ts +4 -4
- package/lib/components/skeleton/Skeleton.js +4 -4
- package/lib/components/skeleton/Skeleton.native.d.ts +3 -3
- package/lib/components/skeleton/Skeleton.native.js +18 -20
- package/lib/components/skeleton/SkeletonProps.d.ts +2 -2
- package/lib/components/skeleton/index.d.ts +2 -2
- package/lib/components/skeleton/index.js +3 -3
- package/lib/components/spacer/Spacer.d.ts +3 -3
- package/lib/components/spacer/Spacer.js +7 -6
- package/lib/components/spacer/Spacer.native.d.ts +3 -3
- package/lib/components/spacer/Spacer.native.js +5 -4
- package/lib/components/spacer/SpacerProps.d.ts +1 -1
- package/lib/components/spacer/index.d.ts +2 -2
- package/lib/components/spacer/index.js +3 -3
- package/lib/components/stepper/Stepper.d.ts +3 -3
- package/lib/components/stepper/Stepper.js +14 -22
- package/lib/components/stepper/Stepper.native.d.ts +3 -3
- package/lib/components/stepper/Stepper.native.js +10 -19
- package/lib/components/stepper/StepperProps.d.ts +2 -2
- package/lib/components/stepper/index.d.ts +3 -3
- package/lib/components/stepper/index.js +4 -4
- package/lib/components/stepper/step/Step.d.ts +3 -3
- package/lib/components/stepper/step/Step.js +7 -6
- package/lib/components/stepper/step/Step.native.d.ts +3 -3
- package/lib/components/stepper/step/Step.native.js +8 -7
- package/lib/components/stepper/step/index.d.ts +1 -1
- package/lib/components/stepper/step/index.js +2 -2
- package/lib/components/sticker/Sticker.d.ts +3 -3
- package/lib/components/sticker/Sticker.js +9 -10
- package/lib/components/sticker/Sticker.native.d.ts +3 -3
- package/lib/components/sticker/Sticker.native.js +8 -7
- package/lib/components/sticker/StickerProps.d.ts +3 -1
- package/lib/components/sticker/index.d.ts +1 -1
- package/lib/components/sticker/index.js +2 -2
- package/lib/components/styleComponent/default/index.d.ts +1 -1
- package/lib/components/styleComponent/default/index.js +2 -2
- package/lib/components/styleComponent/default/styleComponent.js +3 -3
- package/lib/components/styleComponent/default/styleComponent.native.js +3 -3
- package/lib/components/styleComponent/index.d.ts +2 -2
- package/lib/components/styleComponent/index.js +3 -3
- package/lib/components/styleComponent/mangled/index.d.ts +1 -1
- package/lib/components/styleComponent/mangled/index.js +2 -2
- package/lib/components/styleComponent/mangled/styleComponentMangled.js +3 -3
- package/lib/components/styleComponent/mangled/styleComponentMangled.native.js +3 -3
- package/lib/components/switch/Switch.d.ts +3 -3
- package/lib/components/switch/Switch.js +31 -32
- package/lib/components/switch/Switch.native.d.ts +3 -3
- package/lib/components/switch/Switch.native.js +10 -11
- package/lib/components/switch/index.d.ts +1 -1
- package/lib/components/switch/index.js +2 -2
- package/lib/components/table/Table.d.ts +3 -3
- package/lib/components/table/Table.js +8 -7
- package/lib/components/table/Table.native.d.ts +3 -3
- package/lib/components/table/Table.native.js +7 -6
- package/lib/components/table/TableProps.d.ts +2 -2
- package/lib/components/table/TableProps.js +1 -1
- package/lib/components/table/body/TableBody.d.ts +3 -3
- package/lib/components/table/body/TableBody.js +6 -5
- package/lib/components/table/body/TableBody.native.d.ts +3 -3
- package/lib/components/table/body/TableBody.native.js +5 -4
- package/lib/components/table/body/TableBodyProps.d.ts +4 -3
- package/lib/components/table/body/index.d.ts +1 -1
- package/lib/components/table/body/index.js +2 -2
- package/lib/components/table/head/TableHead.d.ts +3 -3
- package/lib/components/table/head/TableHead.js +6 -5
- package/lib/components/table/head/TableHead.native.d.ts +3 -3
- package/lib/components/table/head/TableHead.native.js +5 -4
- package/lib/components/table/head/TableHeadProps.d.ts +4 -3
- package/lib/components/table/head/index.d.ts +1 -1
- package/lib/components/table/head/index.js +2 -2
- package/lib/components/table/index.d.ts +7 -7
- package/lib/components/table/index.js +8 -8
- package/lib/components/table/td/TableTd.d.ts +3 -3
- package/lib/components/table/td/TableTd.js +6 -5
- package/lib/components/table/td/TableTd.native.d.ts +3 -3
- package/lib/components/table/td/TableTd.native.js +6 -5
- package/lib/components/table/td/TableTdProps.d.ts +4 -3
- package/lib/components/table/td/index.d.ts +1 -1
- package/lib/components/table/td/index.js +2 -2
- package/lib/components/table/th/TableTh.d.ts +3 -3
- package/lib/components/table/th/TableTh.js +6 -5
- package/lib/components/table/th/TableTh.native.d.ts +3 -3
- package/lib/components/table/th/TableTh.native.js +7 -6
- package/lib/components/table/th/TableThProps.d.ts +4 -3
- package/lib/components/table/th/index.d.ts +1 -1
- package/lib/components/table/th/index.js +2 -2
- package/lib/components/table/tr/TableTr.d.ts +4 -4
- package/lib/components/table/tr/TableTr.js +7 -6
- package/lib/components/table/tr/TableTr.native.d.ts +3 -3
- package/lib/components/table/tr/TableTr.native.js +6 -9
- package/lib/components/table/tr/TableTrProps.d.ts +7 -4
- package/lib/components/table/tr/index.d.ts +1 -1
- package/lib/components/table/tr/index.js +2 -2
- package/lib/components/tabs/Tabs.d.ts +2 -2
- package/lib/components/tabs/Tabs.js +12 -12
- package/lib/components/tabs/Tabs.native.d.ts +2 -2
- package/lib/components/tabs/Tabs.native.js +11 -11
- package/lib/components/tabs/TabsProps.d.ts +6 -3
- package/lib/components/tabs/context/index.d.ts +4 -4
- package/lib/components/tabs/context/index.js +3 -3
- package/lib/components/tabs/index.d.ts +5 -5
- package/lib/components/tabs/index.js +6 -6
- package/lib/components/tabs/tab-list/TabList.d.ts +2 -2
- package/lib/components/tabs/tab-list/TabList.js +27 -29
- package/lib/components/tabs/tab-list/TabList.native.d.ts +2 -2
- package/lib/components/tabs/tab-list/TabList.native.js +34 -38
- package/lib/components/tabs/tab-list/TabListProps.d.ts +4 -3
- package/lib/components/tabs/tab-list/index.d.ts +1 -1
- package/lib/components/tabs/tab-list/index.js +2 -2
- package/lib/components/tabs/tab-list/tab/Tab.d.ts +2 -2
- package/lib/components/tabs/tab-list/tab/Tab.js +10 -11
- package/lib/components/tabs/tab-list/tab/Tab.native.d.ts +2 -2
- package/lib/components/tabs/tab-list/tab/Tab.native.js +10 -12
- package/lib/components/tabs/tab-list/tab/TabProps.d.ts +5 -3
- package/lib/components/tabs/tab-list/tab/index.d.ts +1 -1
- package/lib/components/tabs/tab-list/tab/index.js +2 -2
- package/lib/components/tabs/tab-panels/TabPanels.d.ts +2 -2
- package/lib/components/tabs/tab-panels/TabPanels.js +10 -9
- package/lib/components/tabs/tab-panels/TabPanels.native.d.ts +2 -2
- package/lib/components/tabs/tab-panels/TabPanels.native.js +11 -10
- package/lib/components/tabs/tab-panels/TabPanelsProps.d.ts +3 -3
- package/lib/components/tabs/tab-panels/index.d.ts +1 -1
- package/lib/components/tabs/tab-panels/index.js +2 -2
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.d.ts +2 -2
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.js +7 -6
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.native.d.ts +2 -2
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.native.js +8 -7
- package/lib/components/tabs/tab-panels/tab-panel/TabPanelProps.d.ts +3 -3
- package/lib/components/tabs/tab-panels/tab-panel/index.d.ts +1 -1
- package/lib/components/tabs/tab-panels/tab-panel/index.js +2 -2
- package/lib/components/tag/Tag.d.ts +3 -3
- package/lib/components/tag/Tag.js +9 -10
- package/lib/components/tag/Tag.native.d.ts +3 -3
- package/lib/components/tag/Tag.native.js +5 -7
- package/lib/components/tag/TagProps.d.ts +3 -2
- package/lib/components/tag/index.d.ts +3 -3
- package/lib/components/tag/index.js +4 -4
- package/lib/components/tag/list/TagList.d.ts +3 -3
- package/lib/components/tag/list/TagList.js +9 -8
- package/lib/components/tag/list/TagList.native.d.ts +3 -3
- package/lib/components/tag/list/TagList.native.js +5 -4
- package/lib/components/tag/list/TagListProps.d.ts +5 -3
- package/lib/components/tag/list/index.d.ts +1 -1
- package/lib/components/tag/list/index.js +2 -2
- package/lib/components/text/Text.d.ts +3 -3
- package/lib/components/text/Text.js +8 -7
- package/lib/components/text/Text.native.d.ts +3 -3
- package/lib/components/text/Text.native.js +12 -9
- package/lib/components/text/TextProps.d.ts +6 -4
- package/lib/components/text/index.d.ts +2 -2
- package/lib/components/text/index.js +3 -3
- package/lib/components/textarea/Textarea.d.ts +3 -3
- package/lib/components/textarea/Textarea.js +18 -28
- package/lib/components/textarea/Textarea.native.d.ts +3 -3
- package/lib/components/textarea/Textarea.native.js +17 -28
- package/lib/components/textarea/TextareaProps.d.ts +2 -1
- package/lib/components/textarea/index.d.ts +1 -1
- package/lib/components/textarea/index.js +2 -2
- package/lib/components/timeline/Timeline.d.ts +3 -3
- package/lib/components/timeline/Timeline.js +9 -8
- package/lib/components/timeline/Timeline.native.d.ts +5 -5
- package/lib/components/timeline/Timeline.native.js +9 -9
- package/lib/components/timeline/TimelineProps.d.ts +2 -2
- package/lib/components/timeline/content/TimelineContent.d.ts +3 -3
- package/lib/components/timeline/content/TimelineContent.js +8 -10
- package/lib/components/timeline/content/TimelineContent.native.d.ts +2 -2
- package/lib/components/timeline/content/TimelineContent.native.js +7 -11
- package/lib/components/timeline/content/TimelineContentProps.d.ts +2 -2
- package/lib/components/timeline/content/index.d.ts +1 -1
- package/lib/components/timeline/content/index.js +2 -2
- package/lib/components/timeline/index.d.ts +4 -4
- package/lib/components/timeline/index.js +5 -5
- package/lib/components/timeline/item/TimelineItem.d.ts +3 -3
- package/lib/components/timeline/item/TimelineItem.js +7 -6
- package/lib/components/timeline/item/TimelineItem.native.d.ts +3 -3
- package/lib/components/timeline/item/TimelineItem.native.js +7 -6
- package/lib/components/timeline/item/TimelineItemProps.d.ts +2 -2
- package/lib/components/timeline/item/index.d.ts +1 -1
- package/lib/components/timeline/item/index.js +2 -2
- package/lib/components/timeline/marker/TimelineMarker.d.ts +3 -3
- package/lib/components/timeline/marker/TimelineMarker.js +7 -8
- package/lib/components/timeline/marker/TimelineMarker.native.d.ts +2 -2
- package/lib/components/timeline/marker/TimelineMarker.native.js +13 -14
- package/lib/components/timeline/marker/TimelineMarkerProps.d.ts +2 -1
- package/lib/components/timeline/marker/index.d.ts +1 -1
- package/lib/components/timeline/marker/index.js +2 -2
- package/lib/components/timepicker/Timepicker.d.ts +3 -3
- package/lib/components/timepicker/Timepicker.js +9 -8
- package/lib/components/timepicker/Timepicker.native.d.ts +3 -3
- package/lib/components/timepicker/Timepicker.native.js +9 -8
- package/lib/components/timepicker/circular/TimepickerCircular.d.ts +3 -3
- package/lib/components/timepicker/circular/TimepickerCircular.js +20 -37
- package/lib/components/timepicker/circular/TimepickerCircular.native.d.ts +3 -3
- package/lib/components/timepicker/circular/TimepickerCircular.native.js +41 -67
- package/lib/components/timepicker/circular/index.d.ts +2 -2
- package/lib/components/timepicker/circular/index.js +3 -3
- package/lib/components/timepicker/default/TimepickerDefault.d.ts +3 -3
- package/lib/components/timepicker/default/TimepickerDefault.js +25 -31
- package/lib/components/timepicker/default/TimepickerDefault.native.d.ts +3 -3
- package/lib/components/timepicker/default/TimepickerDefault.native.js +11 -21
- package/lib/components/timepicker/default/TimepickerDefaultProps.d.ts +1 -1
- package/lib/components/timepicker/default/index.d.ts +1 -1
- package/lib/components/timepicker/default/index.js +2 -2
- package/lib/components/timepicker/default/selector/TimepickerSelector.d.ts +1 -2
- package/lib/components/timepicker/default/selector/TimepickerSelector.js +9 -7
- package/lib/components/timepicker/default/selector/TimepickerSelector.native.d.ts +1 -2
- package/lib/components/timepicker/default/selector/TimepickerSelector.native.js +15 -17
- package/lib/components/timepicker/default/selector/index.d.ts +1 -1
- package/lib/components/timepicker/default/selector/index.js +2 -2
- package/lib/components/timepicker/default/selector/item/TimepickerSelectorItem.d.ts +1 -2
- package/lib/components/timepicker/default/selector/item/TimepickerSelectorItem.js +7 -7
- package/lib/components/timepicker/default/selector/item/TimepickerSelectorItem.native.d.ts +1 -2
- package/lib/components/timepicker/default/selector/item/TimepickerSelectorItem.native.js +7 -6
- package/lib/components/timepicker/default/selector/item/index.d.ts +1 -1
- package/lib/components/timepicker/default/selector/item/index.js +2 -2
- package/lib/components/timepicker/index.d.ts +1 -1
- package/lib/components/timepicker/index.js +2 -2
- package/lib/components/title/Title.d.ts +3 -3
- package/lib/components/title/Title.js +9 -8
- package/lib/components/title/Title.native.d.ts +3 -3
- package/lib/components/title/Title.native.js +12 -10
- package/lib/components/title/TitleProps.d.ts +12 -4
- package/lib/components/title/index.d.ts +2 -2
- package/lib/components/title/index.js +3 -3
- package/lib/components/view/View.d.ts +3 -3
- package/lib/components/view/View.js +14 -10
- package/lib/components/view/View.native.d.ts +3 -3
- package/lib/components/view/View.native.js +11 -10
- package/lib/components/view/ViewProps.d.ts +10 -3
- package/lib/components/view/ViewProps.js +1 -1
- package/lib/components/view/index.d.ts +2 -2
- package/lib/components/view/index.js +3 -3
- package/lib/context/TrilogyContext.d.ts +10 -0
- package/lib/context/TrilogyContext.js +14 -0
- package/lib/context/TrilogyContext.native.d.ts +1 -0
- package/lib/context/TrilogyContext.native.js +4 -0
- package/lib/context/index.d.ts +1 -10
- package/lib/context/index.js +2 -14
- package/lib/context/index.native.d.ts +1 -1
- package/lib/context/index.native.js +2 -4
- package/lib/context/provider.d.ts +2 -2
- package/lib/context/provider.js +8 -7
- package/lib/context/providerStyled.d.ts +2 -2
- package/lib/context/providerStyled.js +11 -11
- package/lib/context/providerTheme.d.ts +4 -4
- package/lib/context/providerTheme.js +3 -3
- package/lib/context/providerTheme.native.d.ts +3 -3
- package/lib/context/providerTheme.native.js +7 -6
- package/lib/events/OnChangeEvent.d.ts +2 -2
- package/lib/events/OnClickEvent.d.ts +2 -2
- package/lib/helpers/WrapperReactNativeTesting.d.ts +3 -3
- package/lib/helpers/WrapperReactNativeTesting.js +3 -3
- package/lib/helpers/clickOutside.d.ts +2 -1
- package/lib/helpers/clickOutside.js +1 -1
- package/lib/helpers/hashClassesHelpers.js +2 -2
- package/lib/helpers/index.d.ts +4 -4
- package/lib/helpers/index.js +5 -5
- package/lib/helpers/require.d.ts +2 -2
- package/lib/helpers/require.js +3 -3
- package/lib/objects/Typography/index.d.ts +4 -4
- package/lib/objects/Typography/index.js +5 -5
- package/lib/objects/atoms/Background.d.ts +1 -1
- package/lib/objects/atoms/index.d.ts +2 -2
- package/lib/objects/atoms/index.js +3 -3
- package/lib/objects/facets/ChildrenWithNoText.d.ts +2 -2
- package/lib/objects/facets/Color.js +2 -2
- package/lib/objects/facets/Referenceable.d.ts +4 -4
- package/lib/objects/facets/Status.d.ts +1 -1
- package/lib/objects/facets/Status.js +2 -2
- package/lib/objects/facets/Variant.js +2 -2
- package/lib/objects/facets/index.d.ts +30 -30
- package/lib/objects/facets/index.js +31 -31
- package/lib/objects/index.d.ts +3 -3
- package/lib/objects/index.js +4 -4
- package/lib/services/index.d.ts +1 -1
- package/lib/services/index.js +2 -2
- package/lib/tsconfig.json +1 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __read, __spreadArray } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Children, Fragment, cloneElement } from 'react';
|
|
3
4
|
import { SpacingMatrixMode } from '../../components/autolayout/SpacingMatrix';
|
|
4
5
|
import { ComponentName } from '../../components/enumsComponentsName';
|
|
5
6
|
import { Spacer } from '../../components/spacer';
|
|
@@ -9,7 +10,7 @@ import { Spacer } from '../../components/spacer';
|
|
|
9
10
|
* @param element
|
|
10
11
|
* @returns
|
|
11
12
|
*/
|
|
12
|
-
export var isFragment = function (element) { return (element === null || element === void 0 ? void 0 : element.type) ===
|
|
13
|
+
export var isFragment = function (element) { return (element === null || element === void 0 ? void 0 : element.type) === Fragment; };
|
|
13
14
|
var getTrilogyComponentName = function (child) {
|
|
14
15
|
var componentsKeys = Object.keys(ComponentName).filter(function (key) { return key; });
|
|
15
16
|
return componentsKeys.find(function (key) { var _a, _b, _c; return key === ((_b = (_a = child === null || child === void 0 ? void 0 : child.type) === null || _a === void 0 ? void 0 : _a.render) === null || _b === void 0 ? void 0 : _b.displayName) || key === ((_c = child === null || child === void 0 ? void 0 : child.type) === null || _c === void 0 ? void 0 : _c.displayName); });
|
|
@@ -27,7 +28,7 @@ export var isElementType = function (element, componentType) { var _a, _b, _c; r
|
|
|
27
28
|
*/
|
|
28
29
|
export var parseChildren = function (_a) {
|
|
29
30
|
var children = _a.children, handleBetweenChildren = _a.handleBetweenChildren;
|
|
30
|
-
var array = []; //
|
|
31
|
+
var array = []; // Children.toArray(children)
|
|
31
32
|
createChildrenArray(array, children);
|
|
32
33
|
return array.reduce(function (accumulator, nextChild, childIndex) {
|
|
33
34
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
@@ -35,7 +36,7 @@ export var parseChildren = function (_a) {
|
|
|
35
36
|
// Check the actual type of previous and next children
|
|
36
37
|
var getChildCandidateToComparison = function (child, accumulator) {
|
|
37
38
|
if (isElementType(child, 'AutoLayout')) {
|
|
38
|
-
return getChildCandidateToComparison(
|
|
39
|
+
return getChildCandidateToComparison(Children.toArray(child.props.children)[0]);
|
|
39
40
|
}
|
|
40
41
|
if (child === null && accumulator && accumulator.length >= 2) {
|
|
41
42
|
return getChildCandidateToComparison(accumulator[accumulator.length - 2], accumulator.slice(0, -1));
|
|
@@ -59,7 +60,7 @@ export var parseChildren = function (_a) {
|
|
|
59
60
|
// Concat the previous accumulated elements and the next one
|
|
60
61
|
return __spreadArray(__spreadArray([], __read(accumulator), false), [
|
|
61
62
|
nextChild &&
|
|
62
|
-
|
|
63
|
+
cloneElement(nextChild, {
|
|
63
64
|
key: nextChild.key || "child".concat(childIndex),
|
|
64
65
|
}),
|
|
65
66
|
], false);
|
|
@@ -78,7 +79,7 @@ export var autoLayoutChildrenHandler = function (matrix, _a) {
|
|
|
78
79
|
if (isRuleApplicable) {
|
|
79
80
|
alreadySpaced = true;
|
|
80
81
|
if (mode === SpacingMatrixMode.INSERT_SPACE_BETWEEN) {
|
|
81
|
-
accumulator.push(
|
|
82
|
+
accumulator.push(_jsx(Spacer, { size: value }, "spacer".concat(childIndex)));
|
|
82
83
|
}
|
|
83
84
|
else if (mode === SpacingMatrixMode.INSERT_ELEMENT_BETWEEN) {
|
|
84
85
|
accumulator.push(value);
|
|
@@ -87,10 +88,10 @@ export var autoLayoutChildrenHandler = function (matrix, _a) {
|
|
|
87
88
|
});
|
|
88
89
|
};
|
|
89
90
|
var createChildrenArray = function (array, children) {
|
|
90
|
-
|
|
91
|
+
Children.forEach(children, function (child) {
|
|
91
92
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
92
93
|
if (isFragment(child)) {
|
|
93
|
-
|
|
94
|
+
Children.forEach(child === null || child === void 0 ? void 0 : child.props.children, function (item) {
|
|
94
95
|
createChildrenArray(array, item);
|
|
95
96
|
});
|
|
96
97
|
}
|
|
@@ -131,4 +132,4 @@ var checkRuleApplicable = function (previousType, nextType, previousChildType, n
|
|
|
131
132
|
}
|
|
132
133
|
return false;
|
|
133
134
|
};
|
|
134
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
135
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXV0b0xheW91dC5oZWxwZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vY29tcG9uZW50cy9hdXRvbGF5b3V0L0F1dG9MYXlvdXQuaGVscGVycy50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLFFBQVEsRUFBMkIsWUFBWSxFQUFFLE1BQU0sT0FBTyxDQUFBO0FBR2pGLE9BQU8sRUFBaUIsaUJBQWlCLEVBQUUsTUFBTSx1Q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Q0FBQyxDQUFBO1NBQ3pEO2FBQU07WUFDTCxLQUFLLENBQUMsSUFBSSxDQUFDLEtBQW9CLENBQUMsQ0FBQTtTQUNqQztJQUNILENBQUMsQ0FBQyxDQUFBO0FBQ0osQ0FBQyxDQUFBO0FBRUQsSUFBTSxtQkFBbUIsR0FBRyxVQUMxQixZQUF1RCxFQUN2RCxRQUFtRCxFQUNuRCxpQkFBZ0QsRUFDaEQsYUFBNEMsRUFDNUMsYUFBc0I7SUFFdEIsSUFBSSxpQkFBaUIsS0FBSyxTQUFTLElBQUksYUFBYSxLQUFLLFNBQVMsRUFBRTtRQUNsRSxPQUFPLEtBQUssQ0FBQTtLQUNiO0lBQ0QsSUFBSSxhQUFhLEVBQUU7UUFDakIsT0FBTyxLQUFLLENBQUE7S0FDYjtTQUFNLElBQ0wsQ0FBQyxZQUFZLEtBQUssaUJBQWlCLElBQUksUUFBUSxLQUFLLGFBQWEsQ0FBQztRQUNsRSxDQUFDLFlBQVksS0FBSyxTQUFTLElBQUksUUFBUSxLQUFLLGFBQWEsQ0FBQztRQUMxRCxDQUFDLFlBQVksS0FBSyxpQkFBaUIsSUFBSSxRQUFRLEtBQUssU0FBUyxDQUFDO1FBQzlELENBQUMsWUFBWSxLQUFLLFNBQVMsSUFBSSxRQUFRLEtBQUssU0FBUyxDQUFDLEVBQ3REO1FBQ0EsT0FBTyxJQUFJLENBQUE7S0FDWjtJQUNELE9BQU8sS0FBSyxDQUFBO0FBQ2QsQ0FBQyxDQUFBIn0=
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
3
|
/**
|
|
3
4
|
* AutoLayout Component - Automatic layout wrapper with edge insets and spacing
|
|
4
|
-
* @param children {
|
|
5
|
+
* @param children {ReactNode} Child components to layout
|
|
5
6
|
* - -------------------------- NATIVE PROPERTIES -------------------------------
|
|
6
7
|
* @param edges {EdgeType[]} Edges to apply spacing to ('top' | 'bottom')
|
|
7
8
|
* @param edgeSize {SpacerSize} Spacing size for safe area edges
|
|
@@ -10,7 +11,7 @@ import * as React from 'react';
|
|
|
10
11
|
*/
|
|
11
12
|
var AutoLayout = function (_a) {
|
|
12
13
|
var children = _a.children;
|
|
13
|
-
return
|
|
14
|
+
return _jsx("div", __assign({ className: 'autolayout' }, { children: children }));
|
|
14
15
|
};
|
|
15
16
|
export default AutoLayout;
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXV0b0xheW91dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2NvbXBvbmVudHMvYXV0b2xheW91dC9BdXRvTGF5b3V0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUlBOzs7Ozs7OztHQVFHO0FBQ0gsSUFBTSxVQUFVLEdBQXdCLFVBQUMsRUFBWTtRQUFWLFFBQVEsY0FBQTtJQUNqRCxPQUFPLHVCQUFLLFNBQVMsRUFBRSxZQUFZLGdCQUFHLFFBQVEsSUFBTyxDQUFBO0FBQ3ZELENBQUMsQ0FBQTtBQUVELGVBQWUsVUFBVSxDQUFBIn0=
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC } from 'react';
|
|
2
2
|
import { AutoLayoutProps } from '../../components/autolayout/AutoLayoutProps';
|
|
3
3
|
/**
|
|
4
4
|
* AutoLayout Component - Automatic layout wrapper with edge insets and spacing
|
|
5
|
-
* @param children {
|
|
5
|
+
* @param children {ReactNode} Child components to layout
|
|
6
6
|
* @param edges {EdgeType[]} Edges to apply spacing to ('top' | 'bottom')
|
|
7
7
|
* @param edgeSize {SpacerSize} Spacing size for safe area edges
|
|
8
8
|
* @param noSpace {boolean} Disable automatic spacing
|
|
9
9
|
* @param matrix {SpacingMatrix} Custom spacing matrix for between children spacing (overrides default matrix)
|
|
10
10
|
*/
|
|
11
|
-
declare const AutoLayout:
|
|
11
|
+
declare const AutoLayout: FC<AutoLayoutProps>;
|
|
12
12
|
export default AutoLayout;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { autoLayoutChildrenHandler, parseChildren } from '../../components/autolayout/AutoLayout.helpers';
|
|
3
3
|
import { DEFAULT_SPACING_MATRIX } from '../../components/autolayout/DefaultSpacingMatrix';
|
|
4
4
|
import { ComponentName } from '../../components/enumsComponentsName';
|
|
5
5
|
import { Spacer, SpacerSize } from '../../components/spacer';
|
|
6
6
|
/**
|
|
7
7
|
* AutoLayout Component - Automatic layout wrapper with edge insets and spacing
|
|
8
|
-
* @param children {
|
|
8
|
+
* @param children {ReactNode} Child components to layout
|
|
9
9
|
* @param edges {EdgeType[]} Edges to apply spacing to ('top' | 'bottom')
|
|
10
10
|
* @param edgeSize {SpacerSize} Spacing size for safe area edges
|
|
11
11
|
* @param noSpace {boolean} Disable automatic spacing
|
|
@@ -15,16 +15,13 @@ var AutoLayout = function (_a) {
|
|
|
15
15
|
var children = _a.children, _b = _a.matrix, matrix = _b === void 0 ? DEFAULT_SPACING_MATRIX : _b, edges = _a.edges, _c = _a.edgeSize, edgeSize = _c === void 0 ? SpacerSize.TWO : _c, noSpace = _a.noSpace;
|
|
16
16
|
var hasBottomEdge = edges === null || edges === void 0 ? void 0 : edges.includes('bottom');
|
|
17
17
|
var hasTopEdge = edges === null || edges === void 0 ? void 0 : edges.includes('top');
|
|
18
|
-
return (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
handleBetweenChildren: function (props) { return autoLayoutChildrenHandler(matrix, props); },
|
|
25
|
-
}),
|
|
26
|
-
hasBottomEdge && React.createElement(Spacer, { size: edgeSize })));
|
|
18
|
+
return (_jsxs(_Fragment, { children: [hasTopEdge && _jsx(Spacer, { size: edgeSize }), noSpace
|
|
19
|
+
? children
|
|
20
|
+
: parseChildren({
|
|
21
|
+
children: children,
|
|
22
|
+
handleBetweenChildren: function (props) { return autoLayoutChildrenHandler(matrix, props); },
|
|
23
|
+
}), hasBottomEdge && _jsx(Spacer, { size: edgeSize })] }));
|
|
27
24
|
};
|
|
28
25
|
AutoLayout.displayName = ComponentName.AutoLayout;
|
|
29
26
|
export default AutoLayout;
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXV0b0xheW91dC5uYXRpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9jb21wb25lbnRzL2F1dG9sYXlvdXQvQXV0b0xheW91dC5uYXRpdmUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFFQSxPQUFPLEVBQUUseUJBQXlCLEVBQUUsYUFBYSxFQUFFLE1BQU0sNENBQTRDLENBQUE7QUFFckcsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sOENBQThDLENBQUE7QUFDckYsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGtDQUFrQyxDQUFBO0FBQ2hFLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0scUJBQXFCLENBQUE7QUFFeEQ7Ozs7Ozs7R0FPRztBQUNILElBQU0sVUFBVSxHQUF3QixVQUFDLEVBTXhDO1FBTEMsUUFBUSxjQUFBLEVBQ1IsY0FBK0IsRUFBL0IsTUFBTSxtQkFBRyxzQkFBc0IsS0FBQSxFQUMvQixLQUFLLFdBQUEsRUFDTCxnQkFBeUIsRUFBekIsUUFBUSxtQkFBRyxVQUFVLENBQUMsR0FBRyxLQUFBLEVBQ3pCLE9BQU8sYUFBQTtJQUVQLElBQU0sYUFBYSxHQUFHLEtBQUssYUFBTCxLQUFLLHVCQUFMLEtBQUssQ0FBRSxRQUFRLENBQUMsUUFBUSxDQUFDLENBQUE7SUFDL0MsSUFBTSxVQUFVLEdBQUcsS0FBSyxhQUFMLEtBQUssdUJBQUwsS0FBSyxDQUFFLFFBQVEsQ0FBQyxLQUFLLENBQUMsQ0FBQTtJQUN6QyxPQUFPLENBQ0wsOEJBQ0csVUFBVSxJQUFJLEtBQUMsTUFBTSxJQUFDLElBQUksRUFBRSxRQUFRLEdBQUksRUFDeEMsT0FBTztnQkFDTixDQUFDLENBQUMsUUFBUTtnQkFDVixDQUFDLENBQUMsYUFBYSxDQUFDO29CQUNaLFFBQVEsVUFBQTtvQkFDUixxQkFBcUIsRUFBRSxVQUFDLEtBQUssSUFBSyxPQUFBLHlCQUF5QixDQUFDLE1BQU0sRUFBRSxLQUFLLENBQUMsRUFBeEMsQ0FBd0M7aUJBQzNFLENBQUMsRUFDTCxhQUFhLElBQUksS0FBQyxNQUFNLElBQUMsSUFBSSxFQUFFLFFBQVEsR0FBSSxJQUMzQyxDQUNKLENBQUE7QUFDSCxDQUFDLENBQUE7QUFFRCxVQUFVLENBQUMsV0FBVyxHQUFHLGFBQWEsQ0FBQyxVQUFVLENBQUE7QUFFakQsZUFBZSxVQUFVLENBQUEifQ==
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import { SpacingMatrix } from '../../components/autolayout/SpacingMatrix';
|
|
3
3
|
import { SpacerSize } from '../../components/spacer';
|
|
4
4
|
type EdgeType = 'bottom' | 'top';
|
|
5
5
|
type AutoLayoutProps = {
|
|
6
|
-
children:
|
|
6
|
+
children: ReactNode;
|
|
7
7
|
edges?: EdgeType[];
|
|
8
8
|
edgeSize?: SpacerSize;
|
|
9
9
|
noSpace?: boolean;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
2
|
import type { SpacingMatrix } from '../../components/autolayout/SpacingMatrix';
|
|
3
3
|
/**
|
|
4
4
|
* Wrap children in an AutoLayout component.
|
|
5
5
|
*
|
|
6
6
|
* @param {autolayout} {boolean} Activate/deactivate the autolayouting mechanism.
|
|
7
7
|
*/
|
|
8
|
-
declare const AutoLayoutWrapper:
|
|
8
|
+
declare const AutoLayoutWrapper: FC<{
|
|
9
9
|
autolayout: boolean | SpacingMatrix;
|
|
10
|
-
children:
|
|
10
|
+
children: ReactNode;
|
|
11
11
|
}>;
|
|
12
12
|
export default AutoLayoutWrapper;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
3
|
import AutoLayout from '../../components/autolayout/AutoLayout';
|
|
3
4
|
/**
|
|
4
5
|
* Wrap children in an AutoLayout component.
|
|
@@ -8,14 +9,14 @@ import AutoLayout from '../../components/autolayout/AutoLayout';
|
|
|
8
9
|
var AutoLayoutWrapper = function (_a) {
|
|
9
10
|
var _b = _a.autolayout, autolayout = _b === void 0 ? true : _b, children = _a.children;
|
|
10
11
|
if (autolayout === true) {
|
|
11
|
-
return
|
|
12
|
+
return _jsx(AutoLayout, { children: children });
|
|
12
13
|
}
|
|
13
14
|
else if (autolayout) {
|
|
14
|
-
return
|
|
15
|
+
return _jsx(AutoLayout, __assign({ matrix: autolayout }, { children: children }));
|
|
15
16
|
}
|
|
16
17
|
else {
|
|
17
|
-
return
|
|
18
|
+
return _jsx(_Fragment, { children: children });
|
|
18
19
|
}
|
|
19
20
|
};
|
|
20
21
|
export default AutoLayoutWrapper;
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXV0b0xheW91dFdyYXBwZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9jb21wb25lbnRzL2F1dG9sYXlvdXQvQXV0b0xheW91dFdyYXBwZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBRUEsT0FBTyxVQUFVLE1BQU0sb0NBQW9DLENBQUE7QUFHM0Q7Ozs7R0FJRztBQUNILElBQU0saUJBQWlCLEdBR2xCLFVBQUMsRUFBK0I7UUFBN0Isa0JBQWlCLEVBQWpCLFVBQVUsbUJBQUcsSUFBSSxLQUFBLEVBQUUsUUFBUSxjQUFBO0lBQ2pDLElBQUksVUFBVSxLQUFLLElBQUksRUFBRTtRQUN2QixPQUFPLEtBQUMsVUFBVSxjQUFFLFFBQVEsR0FBYyxDQUFBO0tBQzNDO1NBQU0sSUFBSSxVQUFVLEVBQUU7UUFDckIsT0FBTyxLQUFDLFVBQVUsYUFBQyxNQUFNLEVBQUUsVUFBVSxnQkFBRyxRQUFRLElBQWMsQ0FBQTtLQUMvRDtTQUFNO1FBQ0wsT0FBTyw0QkFBRyxRQUFRLEdBQUksQ0FBQTtLQUN2QjtBQUNILENBQUMsQ0FBQTtBQUVELGVBQWUsaUJBQWlCLENBQUEifQ==
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import { BadgeProps } from '
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BadgeProps } from '../../components/badge/BadgeProps';
|
|
3
3
|
/**
|
|
4
4
|
* Badge Component
|
|
5
|
-
* @param children {
|
|
5
|
+
* @param children {ReactNode} Content inside the badge (e.g. Icon)
|
|
6
6
|
* @param label {string|number} Badge content text
|
|
7
7
|
* @param inverted {boolean} Inverted style for Badge
|
|
8
8
|
* @param status {StatusState} Badge status variant (INFO|SUCCESS|WARNING|ERROR)
|
|
@@ -14,5 +14,5 @@ import { BadgeProps } from './BadgeProps';
|
|
|
14
14
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
15
15
|
* @param className {string} Additional CSS Classes
|
|
16
16
|
*/
|
|
17
|
-
declare const Badge:
|
|
17
|
+
declare const Badge: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
18
18
|
export default Badge;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { Icon, IconColor, IconName } from '../../components/icon';
|
|
3
|
-
import { useTrilogyContext } from '../../context';
|
|
4
|
+
import { useTrilogyContext } from '../../context/TrilogyContext';
|
|
4
5
|
import { hashClass } from '../../helpers/hashClassesHelpers';
|
|
5
6
|
import { TrilogyColor } from '../../objects/facets/Color';
|
|
6
7
|
import { StatusState, getStatusClassName } from '../../objects/facets/Status';
|
|
7
8
|
import { getVariantClassName } from '../../objects/facets/Variant';
|
|
8
9
|
import { has, is } from '../../services/classify';
|
|
9
10
|
import clsx from 'clsx';
|
|
10
|
-
import
|
|
11
|
-
import { ComponentName } from '
|
|
11
|
+
import { forwardRef } from 'react';
|
|
12
|
+
import { ComponentName } from '../../components/enumsComponentsName';
|
|
12
13
|
/**
|
|
13
14
|
* Badge Component
|
|
14
|
-
* @param children {
|
|
15
|
+
* @param children {ReactNode} Content inside the badge (e.g. Icon)
|
|
15
16
|
* @param label {string|number} Badge content text
|
|
16
17
|
* @param inverted {boolean} Inverted style for Badge
|
|
17
18
|
* @param status {StatusState} Badge status variant (INFO|SUCCESS|WARNING|ERROR)
|
|
@@ -23,7 +24,7 @@ import { ComponentName } from '../enumsComponentsName';
|
|
|
23
24
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
24
25
|
* @param className {string} Additional CSS Classes
|
|
25
26
|
*/
|
|
26
|
-
var Badge =
|
|
27
|
+
var Badge = forwardRef(function (_a, ref) {
|
|
27
28
|
var className = _a.className, children = _a.children, id = _a.id, label = _a.label, inverted = _a.inverted, onClick = _a.onClick, variant = _a.variant, position = _a.position, status = _a.status, testId = _a.testId, others = __rest(_a, ["className", "children", "id", "label", "inverted", "onClick", "variant", "position", "status", "testId"]);
|
|
28
29
|
var styled = useTrilogyContext().styled;
|
|
29
30
|
var classes = hashClass(styled, clsx('badge', inverted && is('inverted'), variant && has("background-".concat(getVariantClassName(variant) || getStatusClassName(variant))), position && is(position), className));
|
|
@@ -49,17 +50,15 @@ var Badge = React.forwardRef(function (_a, ref) {
|
|
|
49
50
|
default:
|
|
50
51
|
break;
|
|
51
52
|
}
|
|
52
|
-
var simpleBadge = status && iconName && iconColor ? (
|
|
53
|
+
var simpleBadge = status && iconName && iconColor ? (_jsx(Icon, __assign({ testId: !children ? testId : undefined, ref: ref, name: iconName, className: clsx(position && is(position), 'badge-icon'), circled: true, backgroundColor: TrilogyColor.BACKGROUND, color: iconColor, id: id }, others))) : (_jsx("span", __assign({ "data-testid": !children ? testId : undefined, ref: ref, id: id, className: classes, onClick: function (e) {
|
|
53
54
|
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
54
55
|
e.stopPropagation();
|
|
55
|
-
} }, others
|
|
56
|
+
} }, others, { children: label })));
|
|
56
57
|
if (children) {
|
|
57
|
-
return (
|
|
58
|
-
children,
|
|
59
|
-
simpleBadge));
|
|
58
|
+
return (_jsxs("span", __assign({ className: 'badge-container', "data-testid": testId }, { children: [children, simpleBadge] })));
|
|
60
59
|
}
|
|
61
60
|
return simpleBadge;
|
|
62
61
|
});
|
|
63
62
|
Badge.displayName = ComponentName.Badge;
|
|
64
63
|
export default Badge;
|
|
65
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
64
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQmFkZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9jb21wb25lbnRzL2JhZGdlL0JhZGdlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQUUsU0FBUyxFQUFFLFFBQVEsRUFB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LENBQUMsS0FBSyxDQUFBO0FBQ3ZDLGVBQWUsS0FBSyxDQUFBIn0=
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { BadgeProps } from '../../components/badge/BadgeProps';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
/**
|
|
5
5
|
* Badge Component
|
|
6
|
-
* @param children {
|
|
6
|
+
* @param children {ReactNode} Content inside the badge (e.g. Icon)
|
|
7
7
|
* @param label {string|number} Badge content text
|
|
8
8
|
* @param inverted {boolean} Inverted style for Badge
|
|
9
9
|
* @param status {StatusState} Badge status variant (INFO|SUCCESS|WARNING|ERROR)
|
|
@@ -13,5 +13,5 @@ import { View } from 'react-native';
|
|
|
13
13
|
* @param testId {string} Test Id for Test Integration
|
|
14
14
|
* @param id {string} Custom id attribute
|
|
15
15
|
*/
|
|
16
|
-
declare const Badge:
|
|
16
|
+
declare const Badge: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<View>>;
|
|
17
17
|
export default Badge;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { BadgePositionEnum } from '../../components/badge/BadgeEnum';
|
|
3
4
|
import { ComponentName } from '../../components/enumsComponentsName';
|
|
4
5
|
import { Icon, IconColor, IconName, IconSize } from '../../components/icon';
|
|
5
|
-
import { StatusState } from '../../objects';
|
|
6
|
+
import { StatusState } from '../../objects/facets/Status';
|
|
6
7
|
import { getColorStyle, TrilogyColor } from '../../objects/facets/Color';
|
|
7
|
-
import
|
|
8
|
+
import { forwardRef } from 'react';
|
|
8
9
|
import { Text, TouchableOpacity, View } from 'react-native';
|
|
9
10
|
import { memoStyles } from '../../helpers/memoStyles';
|
|
10
11
|
import { Theme } from '../../constants/theme';
|
|
11
12
|
/**
|
|
12
13
|
* Badge Component
|
|
13
|
-
* @param children {
|
|
14
|
+
* @param children {ReactNode} Content inside the badge (e.g. Icon)
|
|
14
15
|
* @param label {string|number} Badge content text
|
|
15
16
|
* @param inverted {boolean} Inverted style for Badge
|
|
16
17
|
* @param status {StatusState} Badge status variant (INFO|SUCCESS|WARNING|ERROR)
|
|
@@ -20,7 +21,7 @@ import { Theme } from '../../constants/theme';
|
|
|
20
21
|
* @param testId {string} Test Id for Test Integration
|
|
21
22
|
* @param id {string} Custom id attribute
|
|
22
23
|
*/
|
|
23
|
-
var Badge =
|
|
24
|
+
var Badge = forwardRef(function (_a, ref) {
|
|
24
25
|
var children = _a.children, label = _a.label, onClick = _a.onClick, testId = _a.testId, variant = _a.variant, inverted = _a.inverted, position = _a.position, status = _a.status, others = __rest(_a, ["children", "label", "onClick", "testId", "variant", "inverted", "position", "status"]);
|
|
25
26
|
var badgeColor = getColorStyle(variant || TrilogyColor.MAIN);
|
|
26
27
|
var textColor = getColorStyle(TrilogyColor.BACKGROUND);
|
|
@@ -95,25 +96,17 @@ var Badge = React.forwardRef(function (_a, ref) {
|
|
|
95
96
|
break;
|
|
96
97
|
}
|
|
97
98
|
if (status) {
|
|
98
|
-
return (
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
] },
|
|
107
|
-
React.createElement(Icon, { name: iconName, size: IconSize.SMALLER, color: iconColor })),
|
|
108
|
-
React.createElement(View, null, children)))));
|
|
99
|
+
return (_jsx(View, __assign({}, others, { ref: ref }, { children: iconName && iconColor && (_jsxs(View, { children: [_jsx(View, __assign({ style: [
|
|
100
|
+
styles.iconStatus,
|
|
101
|
+
(position === BadgePositionEnum.TOP_LEFT && styles.iconStatusPositionTopLeft) ||
|
|
102
|
+
(position === BadgePositionEnum.TOP_RIGHT && styles.iconStatusPositionTopRight) ||
|
|
103
|
+
(position === BadgePositionEnum.BOTTOM_LEFT && styles.iconStatusPositionBottomLeft) ||
|
|
104
|
+
(position === BadgePositionEnum.BOTTOM_RIGHT && styles.iconStatusPositionBottomRight) ||
|
|
105
|
+
styles.iconStatusPositionTopLeft,
|
|
106
|
+
] }, { children: _jsx(Icon, { name: iconName, size: IconSize.SMALLER, color: iconColor }) })), _jsx(View, { children: children })] })) })));
|
|
109
107
|
}
|
|
110
|
-
return onClick ? (
|
|
111
|
-
React.createElement(TouchableOpacity, { onPress: onClick, activeOpacity: 0.85, testID: testId },
|
|
112
|
-
React.createElement(View, __assign({ style: styles.badge }, others),
|
|
113
|
-
React.createElement(Text, { style: styles.text }, label))))) : (React.createElement(View, __assign({ style: styles.badge }, others, { ref: ref }),
|
|
114
|
-
React.createElement(Text, { style: styles.text }, label),
|
|
115
|
-
!label && children && children));
|
|
108
|
+
return onClick ? (_jsx(View, __assign({}, others, { ref: ref }, { children: _jsx(TouchableOpacity, __assign({ onPress: onClick, activeOpacity: 0.85, testID: testId }, { children: _jsx(View, __assign({ style: styles.badge }, others, { children: _jsx(Text, __assign({ style: styles.text }, { children: label })) })) })) }))) : (_jsxs(View, __assign({ style: styles.badge }, others, { ref: ref }, { children: [_jsx(Text, __assign({ style: styles.text }, { children: label })), !label && children && children] })));
|
|
116
109
|
});
|
|
117
110
|
Badge.displayName = ComponentName.Badge;
|
|
118
111
|
export default Badge;
|
|
119
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
112
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQmFkZ2UubmF0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vY29tcG9uZW50cy9iYWRnZS9CYWRnZS5uYXRpdmUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sOEJBQThCLENBQUE7QUFFaEUsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGtDQUFrQyxDQUFBO0F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UsT0FBTyxFQUFFLGFBQWEsRUFBRSxJQUFJLEVBQUUsTUFBTSxFQUFFLE1BQU0sZ0JBQ3JFLEtBQUMsSUFBSSxhQUFDLEtBQUssRUFBRSxNQUFNLENBQUMsS0FBSyxJQUFNLE1BQU0sY0FDbkMsS0FBQyxJQUFJLGFBQUMsS0FBSyxFQUFFLE1BQU0sQ0FBQyxJQUFJLGdCQUFHLEtBQUssSUFBUSxJQUNuQyxJQUNVLElBQ2QsQ0FDUixDQUFDLENBQUMsQ0FBQyxDQUNGLE1BQUMsSUFBSSxhQUFDLEtBQUssRUFBRSxNQUFNLENBQUMsS0FBSyxJQUFNLE1BQU0sSUFBRSxHQUFHLEVBQUUsR0FBRyxpQkFDN0MsS0FBQyxJQUFJLGFBQUMsS0FBSyxFQUFFLE1BQU0sQ0FBQyxJQUFJLGdCQUFHLEtBQUssSUFBUSxFQUN2QyxDQUFDLEtBQUssSUFBSSxRQUFRLElBQUksUUFBUSxLQUMxQixDQUNSLENBQUE7QUFDSCxDQUFDLENBQ0YsQ0FBQTtBQUVELEtBQUssQ0FBQyxXQUFXLEdBQUcsYUFBYSxDQUFDLEtBQUssQ0FBQTtBQUV2QyxlQUFlLEtBQUssQ0FBQSJ9
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { BadgePositionEnum, BadgePositionValues } from '../../components/badge/BadgeEnum';
|
|
3
2
|
import { View } from 'react-native';
|
|
4
|
-
import { Accessibility
|
|
3
|
+
import { Accessibility } from '../../objects/facets/Accessibility';
|
|
4
|
+
import { Dev } from '../../objects/facets/Dev';
|
|
5
|
+
import { StatusState, StatusStateValues } from '../../objects/facets/Status';
|
|
5
6
|
import { Clickable } from '../../objects/facets/Clickable';
|
|
6
7
|
import { CommonProps } from '../../objects/facets/CommonProps';
|
|
7
8
|
import { Invertable } from '../../objects/facets/Invertable';
|
|
9
|
+
import { ReactNode } from 'react';
|
|
8
10
|
export interface BadgeProps extends Clickable, Accessibility, Invertable, Dev, CommonProps {
|
|
9
|
-
children?:
|
|
11
|
+
children?: ReactNode;
|
|
10
12
|
label?: string | number;
|
|
11
13
|
position?: BadgePositionEnum | BadgePositionValues;
|
|
12
14
|
status?: StatusState | StatusStateValues;
|
|
@@ -7,4 +7,4 @@ export var BadgeVariant;
|
|
|
7
7
|
BadgeVariant["MAIN"] = "MAIN";
|
|
8
8
|
BadgeVariant["ACCENT"] = "ACCENT";
|
|
9
9
|
})(BadgeVariant || (BadgeVariant = {}));
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQmFkZ2VQcm9wcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2NvbXBvbmVudHMvYmFkZ2UvQmFkZ2VQcm9wcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFxQkEsTUFBTSxDQUFOLElBQVksWUFPWDtBQVBELFdBQVksWUFBWTtJQUN0QixtQ0FBbUIsQ0FBQTtJQUNuQiw2QkFBYSxDQUFBO0lBQ2IsbUNBQW1CLENBQUE7SUFDbkIsK0JBQWUsQ0FBQTtJQUNmLDZCQUFhLENBQUE7SUFDYixpQ0FBaUIsQ0FBQTtBQUNuQixDQUFDLEVBUFcsWUFBWSxLQUFaLFlBQVksUUFPdkIifQ==
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Badge from '
|
|
2
|
-
export * from '
|
|
1
|
+
import Badge from '../../components/badge/Badge';
|
|
2
|
+
export * from '../../components/badge/BadgeProps';
|
|
3
3
|
export { Badge };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Badge from '
|
|
2
|
-
export * from '
|
|
1
|
+
import Badge from '../../components/badge/Badge';
|
|
2
|
+
export * from '../../components/badge/BadgeProps';
|
|
3
3
|
export { Badge };
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9jb21wb25lbnRzL2JhZGdlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxNQUFNLDBCQUEwQixDQUFBO0FBRTVDLGNBQWMsK0JBQStCLENBQUE7QUFDN0MsT0FBTyxFQUFFLEtBQUssRUFBRSxDQUFBIn0=
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import { BoxProps } from '
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BoxProps } from '../../components/box/BoxProps';
|
|
3
3
|
/**
|
|
4
4
|
* Box Component
|
|
5
|
-
* @param children {
|
|
5
|
+
* @param children {ReactNode} Box child
|
|
6
6
|
* @param onClick {Function} onClick Event
|
|
7
7
|
* @param skeleton {boolean} Box skeleton
|
|
8
8
|
* @param backgroundColor {TrilogyColor} Box Content Background Color
|
|
@@ -23,5 +23,5 @@ import { BoxProps } from './BoxProps';
|
|
|
23
23
|
* @param href {string} Link href (renders box as anchor)
|
|
24
24
|
* @param blank {boolean} Target blank when href is set
|
|
25
25
|
*/
|
|
26
|
-
declare const Box:
|
|
26
|
+
declare const Box: import("react").ForwardRefExoticComponent<BoxProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
27
|
export default Box;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useTrilogyContext } from '../../context/TrilogyContext';
|
|
3
4
|
import { hashClass } from '../../helpers/hashClassesHelpers';
|
|
4
5
|
import { getBackgroundClassName } from '../../objects/atoms/Background';
|
|
5
6
|
import { getColorClassName } from '../../objects/facets/Color';
|
|
6
7
|
import { has, is } from '../../services/classify';
|
|
7
8
|
import clsx from 'clsx';
|
|
8
|
-
import
|
|
9
|
-
import { ComponentName } from '
|
|
9
|
+
import { forwardRef } from 'react';
|
|
10
|
+
import { ComponentName } from '../../components/enumsComponentsName';
|
|
10
11
|
/**
|
|
11
12
|
* Box Component
|
|
12
|
-
* @param children {
|
|
13
|
+
* @param children {ReactNode} Box child
|
|
13
14
|
* @param onClick {Function} onClick Event
|
|
14
15
|
* @param skeleton {boolean} Box skeleton
|
|
15
16
|
* @param backgroundColor {TrilogyColor} Box Content Background Color
|
|
@@ -30,7 +31,7 @@ import { ComponentName } from '../enumsComponentsName';
|
|
|
30
31
|
* @param href {string} Link href (renders box as anchor)
|
|
31
32
|
* @param blank {boolean} Target blank when href is set
|
|
32
33
|
*/
|
|
33
|
-
var Box =
|
|
34
|
+
var Box = forwardRef(function (_a, ref) {
|
|
34
35
|
var inverted = _a.inverted, children = _a.children, className = _a.className, id = _a.id, onClick = _a.onClick, skeleton = _a.skeleton, href = _a.href, blank = _a.blank, backgroundColor = _a.backgroundColor, highlighted = _a.highlighted, shadowless = _a.shadowless, backgroundSrc = _a.backgroundSrc, flat = _a.flat, headerOffset = _a.headerOffset, fullheight = _a.fullheight, active = _a.active, testId = _a.testId, radius = _a.radius, padding = _a.padding, others = __rest(_a, ["inverted", "children", "className", "id", "onClick", "skeleton", "href", "blank", "backgroundColor", "highlighted", "shadowless", "backgroundSrc", "flat", "headerOffset", "fullheight", "active", "testId", "radius", "padding"]);
|
|
35
36
|
var styled = useTrilogyContext().styled;
|
|
36
37
|
var classes = hashClass(styled, clsx('box', shadowless && is('shadowless'), className, backgroundColor && has(getBackgroundClassName(backgroundColor)), backgroundSrc && has('background'), inverted && is('inverted'), skeleton && is('loading'), highlighted && "".concat(is('highlighted'), " ").concat(is(getColorClassName(highlighted))), flat && is('flat'), headerOffset && is('offset-header'), fullheight && is('fullheight'), active && is('active'), radius && "radius-".concat(radius), padding && "padding-".concat(padding)));
|
|
@@ -38,7 +39,7 @@ var Box = React.forwardRef(function (_a, ref) {
|
|
|
38
39
|
var hoverStyle = {
|
|
39
40
|
cursor: 'pointer',
|
|
40
41
|
};
|
|
41
|
-
return (
|
|
42
|
+
return (_jsx(Tag, __assign({ "data-testid": testId, ref: ref, id: id, style: onClick && __assign({}, hoverStyle), href: href }, (href &&
|
|
42
43
|
blank && {
|
|
43
44
|
target: '_blank',
|
|
44
45
|
}), { onClick: function (e) {
|
|
@@ -47,8 +48,8 @@ var Box = React.forwardRef(function (_a, ref) {
|
|
|
47
48
|
style: {
|
|
48
49
|
backgroundImage: "url(".concat(backgroundSrc, ")"),
|
|
49
50
|
},
|
|
50
|
-
})
|
|
51
|
+
}), { children: children })));
|
|
51
52
|
});
|
|
52
53
|
Box.displayName = ComponentName.Box;
|
|
53
54
|
export default Box;
|
|
54
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQm94LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vY29tcG9uZW50cy9ib3gvQm94LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLDBCQUEwQixDQUFBO0FBQzVELE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQTtBQUN4RCxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQTtBQUNuRSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQTtBQUMxRCxPQUFPLEVBQUUsR0FBRyxFQUFFLEVBQUUsRUFBRSxNQUFNLHFCQUFxQixDQUFBO0FBQzdDLE9BQU8sSUFBSSxNQUFNLE1BQU0sQ0FBQTtBQUN2QixPQUFPLEVBQTRCLFVBQVUsRUFBRSxNQUFNLE9BQU8sQ0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ssRUFBRTtZQUNMLGVBQWUsRUFBRSxjQUFPLGFBQWEsTUFBRztTQUN6QztLQUNGLENBQUMsY0FFRCxRQUFRLElBQ0wsQ0FDUCxDQUFBO0FBQ0gsQ0FBQyxDQUNGLENBQUE7QUFDRCxHQUFHLENBQUMsV0FBVyxHQUFHLGFBQWEsQ0FBQyxHQUFHLENBQUE7QUFDbkMsZUFBZSxHQUFHLENBQUEifQ==
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { BoxNativeRef, BoxProps } from '../../components/box/BoxProps';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* Box Component
|
|
5
|
-
* @param children {
|
|
5
|
+
* @param children {ReactNode} Box child
|
|
6
6
|
* @param onClick {Function} onClick Event
|
|
7
7
|
* @param skeleton {boolean} Box skeleton
|
|
8
8
|
* @param backgroundColor {TrilogyColor} Box Content Background Color
|
|
@@ -19,5 +19,5 @@ import React from 'react';
|
|
|
19
19
|
* @param radius {string} Box border radius
|
|
20
20
|
* @param padding {string} Box padding
|
|
21
21
|
*/
|
|
22
|
-
declare const Box:
|
|
22
|
+
declare const Box: import("react").ForwardRefExoticComponent<BoxProps & import("react").RefAttributes<BoxNativeRef>>;
|
|
23
23
|
export default Box;
|