@trilogy-ds/react 0.0.3-calendar → 0.0.3-storybook
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 +5 -3
- package/lib/components/accordion/Accordion.js +8 -6
- package/lib/components/accordion/Accordion.native.d.ts +4 -1
- package/lib/components/accordion/Accordion.native.js +7 -4
- package/lib/components/accordion/AccordionProps.d.ts +2 -1
- package/lib/components/accordion/AccordionPropsDefaults.js +7 -0
- package/lib/components/accordion/item/AccordionItem.d.ts +5 -2
- package/lib/components/accordion/item/AccordionItem.js +8 -5
- package/lib/components/accordion/item/AccordionItem.native.d.ts +3 -1
- package/lib/components/accordion/item/AccordionItem.native.js +7 -5
- package/lib/components/accordion/item/AccordionItemProps.d.ts +2 -1
- package/lib/components/accordion/item/AccordionItemPropsDefaults.js +7 -0
- package/lib/components/accordion/item/body/AccordionBody.d.ts +2 -1
- package/lib/components/accordion/item/body/AccordionBody.js +5 -4
- package/lib/components/accordion/item/body/AccordionBody.native.d.ts +2 -0
- package/lib/components/accordion/item/body/AccordionBody.native.js +5 -3
- package/lib/components/accordion/item/header/AccordionHeader.d.ts +4 -3
- package/lib/components/accordion/item/header/AccordionHeader.js +7 -6
- package/lib/components/accordion/item/header/AccordionHeader.native.d.ts +3 -1
- package/lib/components/accordion/item/header/AccordionHeader.native.js +4 -2
- package/lib/components/accordion/item/header/AccordionHeaderProps.d.ts +2 -1
- package/lib/components/accordion/item/header/AccordionHeaderPropsDefaults.js +7 -0
- package/lib/components/alert/Alert.js +4 -4
- package/lib/components/alert/Alert.native.d.ts +3 -3
- package/lib/components/alert/Alert.native.js +3 -3
- package/lib/components/alert/AlertPropsDefaults.js +13 -1
- package/lib/components/alert/ToasterDocs.d.ts +21 -0
- package/lib/components/alert/ToasterDocs.js +8 -0
- package/lib/components/alert/ToasterStatusPropsDefaults.js +13 -1
- package/lib/components/alert/context/ToastConfigDefaults.js +8 -0
- package/lib/components/alert/context/ToastPropsDefaults.js +13 -1
- package/lib/components/alert/context/ToasterContextProps.d.ts +2 -1
- package/lib/components/alert/index.d.ts +2 -1
- package/lib/components/alert/index.js +3 -2
- package/lib/components/autocomplete/AutoComplete.d.ts +12 -12
- package/lib/components/autocomplete/AutoComplete.js +46 -45
- package/lib/components/autocomplete/AutoComplete.native.d.ts +10 -10
- package/lib/components/autocomplete/AutoComplete.native.js +10 -10
- package/lib/components/autocomplete/AutoCompletePropsNativeDefaults.js +63 -25
- package/lib/components/autocomplete/AutoCompletePropsWebDefaults.js +63 -25
- package/lib/components/autocomplete/Autocomplete.helpers.js +1 -1
- package/lib/components/autocomplete/item/AutoCompleteIem.native.d.ts +7 -1
- package/lib/components/autocomplete/item/AutoCompleteIem.native.js +11 -5
- package/lib/components/autocomplete/item/AutoCompleteItem.d.ts +7 -2
- package/lib/components/autocomplete/item/AutoCompleteItem.js +8 -3
- package/lib/components/autocomplete/menu/AutoCompleteMenu.d.ts +5 -0
- package/lib/components/autocomplete/menu/AutoCompleteMenu.js +6 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.d.ts +8 -0
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js +10 -2
- package/lib/components/autolayout/AutoLayout.d.ts +7 -1
- package/lib/components/autolayout/AutoLayout.js +8 -2
- package/lib/components/autolayout/AutoLayout.native.d.ts +6 -6
- package/lib/components/autolayout/AutoLayout.native.js +6 -6
- package/lib/components/badge/Badge.d.ts +7 -6
- package/lib/components/badge/Badge.js +11 -10
- package/lib/components/badge/Badge.native.d.ts +6 -7
- package/lib/components/badge/Badge.native.js +7 -8
- package/lib/components/badge/BadgePropsDefaults.js +2 -2
- package/lib/components/box/Box.d.ts +9 -7
- package/lib/components/box/Box.js +13 -10
- package/lib/components/box/Box.native.d.ts +8 -9
- package/lib/components/box/Box.native.js +35 -29
- package/lib/components/box/BoxPropsDefaults.js +18 -14
- package/lib/components/box/content/BoxContent.d.ts +2 -1
- package/lib/components/box/content/BoxContent.js +5 -4
- package/lib/components/box/content/BoxContent.native.d.ts +4 -2
- package/lib/components/box/content/BoxContent.native.js +16 -7
- package/lib/components/box/content/BoxContentPropsDefaults.js +9 -7
- package/lib/components/box/context/boxContext.d.ts +10 -2
- package/lib/components/box/context/boxContext.js +13 -2
- package/lib/components/box/footer/BoxFooter.d.ts +2 -1
- package/lib/components/box/footer/BoxFooter.js +5 -4
- package/lib/components/box/footer/BoxFooter.native.d.ts +3 -1
- package/lib/components/box/footer/BoxFooter.native.js +10 -5
- package/lib/components/box/footer/BoxFooterPropsDefaults.js +9 -7
- package/lib/components/box/header/BoxHeader.d.ts +3 -3
- package/lib/components/box/header/BoxHeader.js +6 -6
- package/lib/components/box/header/BoxHeader.native.d.ts +2 -0
- package/lib/components/box/header/BoxHeader.native.js +10 -4
- package/lib/components/box/header/BoxHeaderProps.d.ts +2 -1
- package/lib/components/box/header/BoxHeaderPropsDefaults.js +34 -9
- package/lib/components/box/item/BoxItem.d.ts +2 -0
- package/lib/components/box/item/BoxItem.js +5 -3
- package/lib/components/box/item/BoxItem.native.d.ts +4 -2
- package/lib/components/box/item/BoxItem.native.js +7 -5
- package/lib/components/box/item/BoxItemProps.d.ts +2 -1
- package/lib/components/box/item/BoxItemPropsDefaults.js +7 -0
- package/lib/components/box/table-container/BoxTableContainer.d.ts +1 -1
- package/lib/components/box/table-container/BoxTableContainer.js +1 -1
- package/lib/components/box/table-container/BoxTableContainer.native.d.ts +2 -1
- package/lib/components/box/table-container/BoxTableContainer.native.js +5 -4
- package/lib/components/breadcrumb/Breadcrumb.d.ts +1 -0
- package/lib/components/breadcrumb/Breadcrumb.js +4 -3
- package/lib/components/breadcrumb/Breadcrumb.native.d.ts +2 -1
- package/lib/components/breadcrumb/Breadcrumb.native.js +3 -2
- package/lib/components/breadcrumb/item/BreadcrumbItem.d.ts +1 -2
- package/lib/components/breadcrumb/item/BreadcrumbItem.js +3 -4
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.d.ts +2 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +3 -2
- package/lib/components/breadcrumb/item/BreadcrumbItemPropsWebDefaults.js +21 -21
- package/lib/components/button/Button.d.ts +6 -7
- package/lib/components/button/Button.js +15 -16
- package/lib/components/button/Button.native.d.ts +7 -7
- package/lib/components/button/Button.native.js +7 -7
- package/lib/components/button/ButtonPropsDefaults.js +35 -23
- package/lib/components/button/list/ButtonList.d.ts +5 -3
- package/lib/components/button/list/ButtonList.js +8 -6
- package/lib/components/button/list/ButtonList.native.d.ts +3 -1
- package/lib/components/button/list/ButtonList.native.js +6 -4
- package/lib/components/button/list/ButtonListProps.d.ts +3 -3
- package/lib/components/button/list/ButtonListPropsDefaults.js +7 -0
- package/lib/components/button/list/ButtonListWebPropsDefaults.js +16 -1
- package/lib/components/calendar/Calendar.d.ts +15 -5
- package/lib/components/calendar/Calendar.js +114 -46
- package/lib/components/calendar/Calendar.native.d.ts +17 -0
- package/lib/components/calendar/Calendar.native.js +561 -0
- package/lib/components/calendar/CalendarProps.d.ts +5 -4
- package/lib/components/calendar/CalendarPropsDefaults.js +8 -1
- package/lib/components/calendar/index.d.ts +1 -0
- package/lib/components/calendar/index.js +2 -1
- package/lib/components/card/Card.d.ts +6 -2
- package/lib/components/card/Card.js +10 -6
- package/lib/components/card/Card.native.d.ts +7 -7
- package/lib/components/card/Card.native.js +19 -21
- package/lib/components/card/CardProps.d.ts +2 -1
- package/lib/components/card/CardPropsDefaults.js +7 -0
- package/lib/components/card/content/CardContent.d.ts +2 -1
- package/lib/components/card/content/CardContent.js +5 -4
- package/lib/components/card/content/CardContent.native.d.ts +3 -1
- package/lib/components/card/content/CardContent.native.js +6 -4
- package/lib/components/card/content/CardContentProps.d.ts +2 -1
- package/lib/components/card/content/CardContentPropsDefaults.js +7 -0
- package/lib/components/card/image/CardImage.d.ts +2 -0
- package/lib/components/card/image/CardImage.js +5 -3
- package/lib/components/card/image/CardImage.native.d.ts +3 -2
- package/lib/components/card/image/CardImage.native.js +4 -3
- package/lib/components/card/image/CardImageProps.d.ts +2 -2
- package/lib/components/card/image/CardImagePropsDefaults.js +7 -0
- package/lib/components/checkbox/Checkbox.d.ts +8 -7
- package/lib/components/checkbox/Checkbox.js +11 -10
- package/lib/components/checkbox/Checkbox.native.d.ts +4 -4
- package/lib/components/checkbox/Checkbox.native.js +7 -7
- package/lib/components/checkbox/CheckboxCommonPropsDefaults.js +7 -0
- package/lib/components/checkbox/CheckboxProps.d.ts +2 -1
- package/lib/components/checkbox/CheckboxWithChildrenDefaults.js +7 -0
- package/lib/components/checkbox/CheckboxWithLabelDefaults.js +7 -0
- package/lib/components/checkbox/list/CheckboxList.d.ts +3 -0
- package/lib/components/checkbox/list/CheckboxList.js +6 -3
- package/lib/components/checkbox/list/CheckboxList.native.d.ts +2 -3
- package/lib/components/checkbox/list/CheckboxList.native.js +3 -4
- package/lib/components/checkbox/list/CheckboxListProps.d.ts +4 -4
- package/lib/components/checkbox/list/CheckboxListWebPropsDefaults.js +16 -1
- package/lib/components/checkbox/tiles/CheckboxTiles.d.ts +5 -1
- package/lib/components/checkbox/tiles/CheckboxTiles.js +31 -5
- package/lib/components/checkbox/tiles/CheckboxTiles.native.d.ts +10 -0
- package/lib/components/checkbox/tiles/CheckboxTiles.native.js +44 -7
- package/lib/components/checkbox/tiles/CheckboxTilesProps.d.ts +4 -4
- package/lib/components/checkbox/tiles/CheckboxTilesPropsDefaults.js +44 -2
- package/lib/components/checkbox/tiles/context/CheckboxTilesContext.d.ts +3 -0
- package/lib/components/checkbox/tiles/context/CheckboxTilesContext.js +5 -0
- package/lib/components/checkbox/tiles/context/CheckboxTilesContextProps.d.ts +3 -0
- package/lib/components/checkbox/tiles/context/CheckboxTilesContextProps.js +2 -0
- package/lib/components/checkbox/tiles/context/CheckboxTilesContextPropsDefaults.js +9 -0
- package/lib/components/checkbox/tiles/context/index.d.ts +2 -0
- package/lib/components/checkbox/tiles/context/index.js +3 -0
- package/lib/components/checkbox/tiles/tile/CheckboxTile.d.ts +16 -13
- package/lib/components/checkbox/tiles/tile/CheckboxTile.js +34 -22
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.d.ts +18 -0
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.js +31 -9
- package/lib/components/checkbox/tiles/tile/CheckboxTileProps.d.ts +4 -6
- package/lib/components/checkbox/tiles/tile/CheckboxTilePropsDefaults.js +35 -2
- package/lib/components/chips/Chips.d.ts +3 -4
- package/lib/components/chips/Chips.js +6 -7
- package/lib/components/chips/Chips.native.d.ts +1 -0
- package/lib/components/chips/Chips.native.js +5 -4
- package/lib/components/chips/list/ChipsList.d.ts +5 -3
- package/lib/components/chips/list/ChipsList.js +8 -6
- package/lib/components/chips/list/ChipsList.native.d.ts +2 -0
- package/lib/components/chips/list/ChipsList.native.js +5 -3
- package/lib/components/chips/list/ChipsListProps.d.ts +2 -1
- package/lib/components/chips/list/ChipsListPropsDefaults.js +7 -0
- package/lib/components/columns/Columns.d.ts +7 -3
- package/lib/components/columns/Columns.js +10 -6
- package/lib/components/columns/Columns.native.d.ts +9 -4
- package/lib/components/columns/Columns.native.js +12 -7
- package/lib/components/columns/ColumnsProps.d.ts +2 -1
- package/lib/components/columns/ColumnsPropsDefaults.js +25 -2
- package/lib/components/columns/column/Column.d.ts +4 -4
- package/lib/components/columns/column/Column.js +7 -7
- package/lib/components/columns/column/Column.native.d.ts +4 -4
- package/lib/components/columns/column/Column.native.js +6 -6
- package/lib/components/columns/column/ColumnProps.d.ts +2 -1
- package/lib/components/columns/column/ColumnPropsDefaults.js +39 -16
- package/lib/components/container/Container.d.ts +5 -4
- package/lib/components/container/Container.js +8 -7
- package/lib/components/container/Container.native.d.ts +3 -1
- package/lib/components/container/Container.native.js +6 -4
- package/lib/components/container/ContainerProps.d.ts +2 -1
- package/lib/components/container/ContainerPropsDefaults.js +7 -0
- package/lib/components/countdown/Countdown.d.ts +5 -6
- package/lib/components/countdown/Countdown.js +17 -18
- package/lib/components/countdown/Countdown.native.d.ts +5 -5
- package/lib/components/countdown/Countdown.native.js +44 -38
- package/lib/components/countdown/CountdownProps.d.ts +2 -1
- package/lib/components/countdown/CountdownPropsDefaults.js +7 -0
- package/lib/components/datepicker/DatePicker.d.ts +23 -0
- package/lib/components/datepicker/DatePicker.js +429 -0
- package/lib/components/datepicker/DatePicker.native.d.ts +21 -0
- package/lib/components/datepicker/DatePicker.native.js +309 -0
- package/lib/components/datepicker/DatePickerEnum.d.ts +7 -0
- package/lib/components/datepicker/DatePickerEnum.js +8 -0
- package/lib/components/datepicker/DatePickerProps.d.ts +37 -0
- package/lib/components/datepicker/DatePickerProps.js +2 -0
- package/lib/components/datepicker/DatePickerPropsDefaults.js +117 -0
- package/lib/components/datepicker/HandleKeyPressDefaults.js +14 -0
- package/lib/components/datepicker/SegmentDefaults.js +33 -0
- package/lib/components/datepicker/SegmentsDefaults.js +14 -0
- package/lib/components/datepicker/index.d.ts +2 -0
- package/lib/components/datepicker/index.js +3 -0
- package/lib/components/divider/Divider.d.ts +6 -5
- package/lib/components/divider/Divider.js +9 -8
- package/lib/components/divider/Divider.native.d.ts +5 -5
- package/lib/components/divider/Divider.native.js +9 -9
- package/lib/components/divider/DividerProps.d.ts +2 -2
- package/lib/components/divider/DividerPropsDefaults.js +20 -1
- package/lib/components/dropdown/Dropdown.d.ts +14 -0
- package/lib/components/dropdown/Dropdown.js +89 -0
- package/lib/components/dropdown/Dropdown.native.d.ts +4 -0
- package/lib/components/dropdown/Dropdown.native.js +8 -0
- package/lib/components/dropdown/DropdownProps.d.ts +15 -0
- package/lib/components/dropdown/DropdownProps.js +2 -0
- package/lib/components/dropdown/DropdownPropsDefaults.js +53 -0
- package/lib/components/dropdown/context/DropdownContext.d.ts +15 -0
- package/lib/components/dropdown/context/DropdownContext.js +35 -0
- package/lib/components/dropdown/context/index.d.ts +1 -0
- package/lib/components/dropdown/context/index.js +2 -0
- package/lib/components/dropdown/group/DropdownGroup.d.ts +13 -0
- package/lib/components/dropdown/group/DropdownGroup.js +25 -0
- package/lib/components/dropdown/group/DropdownGroup.native.d.ts +4 -0
- package/lib/components/dropdown/group/DropdownGroup.native.js +8 -0
- package/lib/components/dropdown/group/DropdownGroupProps.d.ts +14 -0
- package/lib/components/dropdown/group/DropdownGroupProps.js +2 -0
- package/lib/components/dropdown/group/DropdownGroupPropsDefaults.js +52 -0
- package/lib/components/dropdown/group/index.d.ts +2 -0
- package/lib/components/dropdown/group/index.js +3 -0
- package/lib/components/dropdown/index.d.ts +6 -0
- package/lib/components/dropdown/index.js +7 -0
- package/lib/components/dropdown/item/DropdownItem.d.ts +12 -0
- package/lib/components/dropdown/item/DropdownItem.js +46 -0
- package/lib/components/dropdown/item/DropdownItem.native.d.ts +4 -0
- package/lib/components/dropdown/item/DropdownItem.native.js +8 -0
- package/lib/components/dropdown/item/DropdownItemProps.d.ts +15 -0
- package/lib/components/dropdown/item/DropdownItemProps.js +2 -0
- package/lib/components/dropdown/item/DropdownItemPropsDefaults.js +103 -0
- package/lib/components/dropdown/item/index.d.ts +2 -0
- package/lib/components/dropdown/item/index.js +3 -0
- package/lib/components/dropdown/trigger/DropdownTrigger.d.ts +13 -0
- package/lib/components/dropdown/trigger/DropdownTrigger.js +61 -0
- package/lib/components/dropdown/trigger/DropdownTrigger.native.d.ts +4 -0
- package/lib/components/dropdown/trigger/DropdownTrigger.native.js +8 -0
- package/lib/components/dropdown/trigger/DropdownTriggerProps.d.ts +13 -0
- package/lib/components/dropdown/trigger/DropdownTriggerProps.js +2 -0
- package/lib/components/dropdown/trigger/DropdownTriggerPropsDefaults.js +44 -0
- package/lib/components/dropdown/trigger/index.d.ts +2 -0
- package/lib/components/dropdown/trigger/index.js +3 -0
- package/lib/components/enumsComponentsName.d.ts +21 -2
- package/lib/components/enumsComponentsName.js +21 -2
- package/lib/components/fab/Fab.d.ts +15 -13
- package/lib/components/fab/Fab.js +18 -16
- package/lib/components/fab/Fab.native.d.ts +12 -10
- package/lib/components/fab/Fab.native.js +13 -11
- package/lib/components/fab/FabPropsDefaults.js +13 -1
- package/lib/components/flex-box/FlexBox.d.ts +15 -9
- package/lib/components/flex-box/FlexBox.js +63 -16
- package/lib/components/flex-box/FlexBox.native.d.ts +14 -0
- package/lib/components/flex-box/FlexBox.native.js +20 -4
- package/lib/components/flex-box/FlexBoxProps.d.ts +7 -1
- package/lib/components/flex-box/FlexBoxPropsDefaults.js +29 -5
- package/lib/components/flex-box/ResponsiveValueDefaults.js +14 -0
- package/lib/components/flex-box/flex-item/FlexItem.d.ts +4 -17
- package/lib/components/flex-box/flex-item/FlexItem.js +8 -21
- package/lib/components/flex-box/flex-item/FlexItem.native.d.ts +3 -18
- package/lib/components/flex-box/flex-item/FlexItem.native.js +6 -21
- package/lib/components/flex-box/flex-item/FlexItemProps.d.ts +4 -3
- package/lib/components/flex-box/flex-item/FlexItemPropsDefaults.js +26 -3
- package/lib/components/flex-box/flex-item/FlexSizeDefaults.js +8 -8
- package/lib/components/hero/Hero.d.ts +4 -4
- package/lib/components/hero/Hero.js +7 -7
- package/lib/components/hero/Hero.native.d.ts +5 -6
- package/lib/components/hero/Hero.native.js +9 -10
- package/lib/components/hero/HeroProps.d.ts +2 -2
- package/lib/components/hero/HeroPropsDefaults.js +16 -7
- package/lib/components/icon/Icon.d.ts +9 -9
- package/lib/components/icon/Icon.js +12 -12
- package/lib/components/icon/Icon.native.d.ts +7 -11
- package/lib/components/icon/Icon.native.js +12 -21
- package/lib/components/icon/IconNameEnum.d.ts +7 -1
- package/lib/components/icon/IconNameEnum.js +7 -1
- package/lib/components/icon/IconPropsDefaults.js +22 -8
- package/lib/components/image/Image.d.ts +9 -5
- package/lib/components/image/Image.js +12 -8
- package/lib/components/image/Image.native.d.ts +5 -3
- package/lib/components/image/Image.native.js +29 -7
- package/lib/components/image/ImageProps.d.ts +4 -2
- package/lib/components/image/ImagePropsDefaults.js +34 -2
- package/lib/components/index.d.ts +4 -0
- package/lib/components/index.js +5 -1
- package/lib/components/input/Input.d.ts +17 -13
- package/lib/components/input/Input.js +35 -23
- package/lib/components/input/Input.native.d.ts +21 -17
- package/lib/components/input/Input.native.js +52 -115
- package/lib/components/input/InputChangeEventWebDefaults.js +2 -2
- package/lib/components/input/InputProps.d.ts +3 -2
- package/lib/components/input/InputPropsDefaults.js +63 -25
- package/lib/components/link/Link.d.ts +10 -11
- package/lib/components/link/Link.js +15 -16
- package/lib/components/link/Link.native.d.ts +6 -7
- package/lib/components/link/Link.native.js +7 -8
- package/lib/components/link/LinkDefaults.js +49 -22
- package/lib/components/link/LinkProps.d.ts +2 -0
- package/lib/components/link/LinkPropsDefaults.js +59 -32
- package/lib/components/link/LinkPropsNativeDefaults.js +57 -30
- package/lib/components/list/List.d.ts +6 -3
- package/lib/components/list/List.js +7 -4
- package/lib/components/list/List.native.d.ts +5 -3
- package/lib/components/list/List.native.js +6 -4
- package/lib/components/list/item/ListItem.d.ts +4 -1
- package/lib/components/list/item/ListItem.js +5 -2
- package/lib/components/list/item/ListItem.native.d.ts +1 -0
- package/lib/components/list/item/ListItem.native.js +4 -3
- package/lib/components/list/item/ListItemPropsDefaults.js +13 -1
- package/lib/components/list/item/description/ListItemDescription.d.ts +1 -0
- package/lib/components/list/item/description/ListItemDescription.js +5 -3
- package/lib/components/list/item/description/ListItemDescriptionProps.d.ts +2 -1
- package/lib/components/list/item/description/ListItemDescriptionPropsDefaults.js +7 -0
- package/lib/components/modal/Modal.d.ts +10 -4
- package/lib/components/modal/Modal.js +14 -8
- package/lib/components/modal/Modal.native.d.ts +9 -6
- package/lib/components/modal/Modal.native.js +98 -36
- package/lib/components/modal/body/ModalBody.d.ts +3 -2
- package/lib/components/modal/body/ModalBody.js +6 -5
- package/lib/components/modal/body/ModalBody.native.d.ts +3 -2
- package/lib/components/modal/body/ModalBody.native.js +6 -5
- package/lib/components/modal/body/ModalBodyProps.d.ts +2 -1
- package/lib/components/modal/body/ModalBodyPropsDefaults.js +7 -0
- package/lib/components/modal/footer/ModalFooter.d.ts +2 -1
- package/lib/components/modal/footer/ModalFooter.js +5 -4
- package/lib/components/modal/footer/ModalFooter.native.d.ts +2 -0
- package/lib/components/modal/footer/ModalFooter.native.js +5 -3
- package/lib/components/modal/footer/ModalFooterProps.d.ts +2 -1
- package/lib/components/modal/footer/ModalFooterPropsDefaults.js +7 -0
- package/lib/components/otp/Otp.d.ts +6 -2
- package/lib/components/otp/Otp.js +10 -6
- package/lib/components/otp/Otp.native.d.ts +4 -2
- package/lib/components/otp/Otp.native.js +8 -6
- package/lib/components/otp/OtpProps.d.ts +2 -1
- package/lib/components/otp/OtpPropsDefaults.js +7 -0
- package/lib/components/pagination/Pagination.d.ts +6 -5
- package/lib/components/pagination/Pagination.js +40 -38
- package/lib/components/pagination/Pagination.native.d.ts +6 -5
- package/lib/components/pagination/Pagination.native.js +11 -10
- package/lib/components/pagination/PaginationNativePropsDefaults.js +9 -0
- package/lib/components/pagination/PaginationProps.d.ts +7 -3
- package/lib/components/pagination/PaginationPropsDefaults.js +1 -1
- package/lib/components/popover/Popover.d.ts +4 -3
- package/lib/components/popover/Popover.js +7 -6
- package/lib/components/popover/Popover.native.d.ts +1 -2
- package/lib/components/popover/Popover.native.js +2 -3
- package/lib/components/popover/PopoverPropsDefaults.js +1 -1
- package/lib/components/popover/PopoverWebPropsDefaults.js +1 -1
- package/lib/components/price/Price.d.ts +10 -10
- package/lib/components/price/Price.js +30 -26
- package/lib/components/price/Price.native.d.ts +11 -11
- package/lib/components/price/Price.native.js +22 -16
- package/lib/components/price/PricePropsDefaults.js +18 -2
- package/lib/components/product-tour/ProductTour.d.ts +2 -2
- package/lib/components/product-tour/ProductTour.js +2 -2
- package/lib/components/product-tour/ProductTourPropsDefaults.js +2 -2
- package/lib/components/product-tour/ProductTourWebPropsDefaults.js +2 -2
- package/lib/components/progress/Progress.d.ts +13 -5
- package/lib/components/progress/Progress.js +22 -14
- package/lib/components/progress/Progress.native.d.ts +10 -6
- package/lib/components/progress/Progress.native.js +11 -7
- package/lib/components/progress/ProgressProps.d.ts +2 -1
- package/lib/components/progress/ProgressPropsDefaults.js +7 -0
- package/lib/components/progress/index.js +1 -1
- package/lib/components/progress/item/ProgressItem.d.ts +5 -3
- package/lib/components/progress/item/ProgressItem.js +8 -6
- package/lib/components/progress/item/ProgressItem.native.d.ts +2 -4
- package/lib/components/progress/item/ProgressItem.native.js +3 -5
- package/lib/components/progress/item/ProgressItemProps.d.ts +2 -2
- package/lib/components/progress/item/ProgressItemPropsDefaults.js +7 -0
- package/lib/components/progress/radial/ProgressRadial.d.ts +5 -3
- package/lib/components/progress/radial/ProgressRadial.js +8 -6
- package/lib/components/progress/radial/ProgressRadial.native.d.ts +10 -6
- package/lib/components/progress/radial/ProgressRadial.native.js +23 -30
- package/lib/components/progress/radial/ProgressRadialProps.d.ts +2 -2
- package/lib/components/progress/radial/ProgressRadialPropsDefaults.js +43 -16
- package/lib/components/progress/radial/item/ProgressRadialItemPropsDefaults.js +2 -1
- package/lib/components/progress/radial/item/ProgressRadialtem.d.ts +6 -0
- package/lib/components/progress/radial/item/ProgressRadialtem.js +7 -1
- package/lib/components/prompt/Prompt.d.ts +15 -0
- package/lib/components/prompt/Prompt.js +38 -0
- package/lib/components/prompt/Prompt.native.d.ts +13 -0
- package/lib/components/prompt/Prompt.native.js +38 -0
- package/lib/components/prompt/PromptProps.d.ts +16 -0
- package/lib/components/prompt/PromptProps.js +6 -0
- package/lib/components/prompt/PromptPropsDefaults.js +60 -0
- package/lib/components/prompt/context/index.d.ts +31 -0
- package/lib/components/prompt/context/index.js +47 -0
- package/lib/components/prompt/files/PromptFiles.d.ts +10 -0
- package/lib/components/prompt/files/PromptFiles.js +29 -0
- package/lib/components/prompt/files/PromptFiles.native.d.ts +5 -0
- package/lib/components/prompt/files/PromptFiles.native.js +26 -0
- package/lib/components/prompt/files/PromptFilesProps.d.ts +10 -0
- package/lib/components/prompt/files/PromptFilesProps.js +2 -0
- package/lib/components/prompt/files/PromptFilesPropsDefaults.js +44 -0
- package/lib/components/prompt/files/file/PromptFile.d.ts +13 -0
- package/lib/components/prompt/files/file/PromptFile.js +49 -0
- package/lib/components/prompt/files/file/PromptFile.native.d.ts +5 -0
- package/lib/components/prompt/files/file/PromptFile.native.js +78 -0
- package/lib/components/prompt/files/file/PromptFileProps.d.ts +13 -0
- package/lib/components/prompt/files/file/PromptFileProps.js +2 -0
- package/lib/components/prompt/files/file/PromptFilePropsDefaults.js +55 -0
- package/lib/components/prompt/files/file/index.d.ts +3 -0
- package/lib/components/prompt/files/file/index.js +4 -0
- package/lib/components/prompt/files/index.d.ts +3 -0
- package/lib/components/prompt/files/index.js +4 -0
- package/lib/components/prompt/index.d.ts +14 -0
- package/lib/components/prompt/index.js +15 -0
- package/lib/components/prompt/textarea/PromptTextarea.d.ts +15 -0
- package/lib/components/prompt/textarea/PromptTextarea.js +42 -0
- package/lib/components/prompt/textarea/PromptTextarea.native.d.ts +5 -0
- package/lib/components/prompt/textarea/PromptTextarea.native.js +47 -0
- package/lib/components/prompt/textarea/PromptTextareaProps.d.ts +16 -0
- package/lib/components/prompt/textarea/PromptTextareaProps.js +2 -0
- package/lib/components/prompt/textarea/PromptTextareaPropsDefaults.js +81 -0
- package/lib/components/prompt/textarea/index.d.ts +3 -0
- package/lib/components/prompt/textarea/index.js +4 -0
- package/lib/components/prompt/toolbar/PromptToolbar.d.ts +10 -0
- package/lib/components/prompt/toolbar/PromptToolbar.js +21 -0
- package/lib/components/prompt/toolbar/PromptToolbar.native.d.ts +4 -0
- package/lib/components/prompt/toolbar/PromptToolbar.native.js +25 -0
- package/lib/components/prompt/toolbar/PromptToolbarProps.d.ts +10 -0
- package/lib/components/prompt/toolbar/PromptToolbarProps.js +2 -0
- package/lib/components/prompt/toolbar/PromptToolbarPropsDefaults.js +44 -0
- package/lib/components/prompt/toolbar/index.d.ts +3 -0
- package/lib/components/prompt/toolbar/index.js +4 -0
- package/lib/components/prompt/toolbar/microphone/PromptMicrophone.d.ts +13 -0
- package/lib/components/prompt/toolbar/microphone/PromptMicrophone.js +34 -0
- package/lib/components/prompt/toolbar/microphone/PromptMicrophone.native.d.ts +11 -0
- package/lib/components/prompt/toolbar/microphone/PromptMicrophone.native.js +40 -0
- package/lib/components/prompt/toolbar/microphone/PromptMicrophoneProps.d.ts +12 -0
- package/lib/components/prompt/toolbar/microphone/PromptMicrophoneProps.js +2 -0
- package/lib/components/prompt/toolbar/microphone/PromptMicrophonePropsDefaults.js +61 -0
- package/lib/components/prompt/toolbar/microphone/index.d.ts +3 -0
- package/lib/components/prompt/toolbar/microphone/index.js +4 -0
- package/lib/components/prompt/toolbar/submit/PromptSubmit.d.ts +15 -0
- package/lib/components/prompt/toolbar/submit/PromptSubmit.js +54 -0
- package/lib/components/prompt/toolbar/submit/PromptSubmit.native.d.ts +13 -0
- package/lib/components/prompt/toolbar/submit/PromptSubmit.native.js +52 -0
- package/lib/components/prompt/toolbar/submit/PromptSubmitProps.d.ts +18 -0
- package/lib/components/prompt/toolbar/submit/PromptSubmitProps.js +6 -0
- package/lib/components/prompt/toolbar/submit/PromptSubmitPropsDefaults.js +68 -0
- package/lib/components/prompt/toolbar/submit/index.d.ts +3 -0
- package/lib/components/prompt/toolbar/submit/index.js +4 -0
- package/lib/components/prompt/toolbar/tools/PromptTools.d.ts +10 -0
- package/lib/components/prompt/toolbar/tools/PromptTools.js +21 -0
- package/lib/components/prompt/toolbar/tools/PromptTools.native.d.ts +5 -0
- package/lib/components/prompt/toolbar/tools/PromptTools.native.js +22 -0
- package/lib/components/prompt/toolbar/tools/PromptToolsProps.d.ts +10 -0
- package/lib/components/prompt/toolbar/tools/PromptToolsProps.js +2 -0
- package/lib/components/prompt/toolbar/tools/PromptToolsPropsDefaults.js +44 -0
- package/lib/components/prompt/toolbar/tools/button/PromptButton.d.ts +16 -0
- package/lib/components/prompt/toolbar/tools/button/PromptButton.js +35 -0
- package/lib/components/prompt/toolbar/tools/button/PromptButton.native.d.ts +4 -0
- package/lib/components/prompt/toolbar/tools/button/PromptButton.native.js +39 -0
- package/lib/components/prompt/toolbar/tools/button/PromptButtonProps.d.ts +19 -0
- package/lib/components/prompt/toolbar/tools/button/PromptButtonProps.js +2 -0
- package/lib/components/prompt/toolbar/tools/button/PromptButtonPropsDefaults.js +157 -0
- package/lib/components/prompt/toolbar/tools/button/index.d.ts +3 -0
- package/lib/components/prompt/toolbar/tools/button/index.js +4 -0
- package/lib/components/prompt/toolbar/tools/index.d.ts +3 -0
- package/lib/components/prompt/toolbar/tools/index.js +4 -0
- package/lib/components/prompt/toolbar/tools/inputFile/PromptInputFile.d.ts +13 -0
- package/lib/components/prompt/toolbar/tools/inputFile/PromptInputFile.js +37 -0
- package/lib/components/prompt/toolbar/tools/inputFile/PromptInputFile.native.d.ts +4 -0
- package/lib/components/prompt/toolbar/tools/inputFile/PromptInputFile.native.js +30 -0
- package/lib/components/prompt/toolbar/tools/inputFile/PromptInputFileProps.d.ts +12 -0
- package/lib/components/prompt/toolbar/tools/inputFile/PromptInputFileProps.js +2 -0
- package/lib/components/prompt/toolbar/tools/inputFile/PromptInputFilePropsDefaults.js +53 -0
- package/lib/components/prompt/toolbar/tools/inputFile/index.d.ts +3 -0
- package/lib/components/prompt/toolbar/tools/inputFile/index.js +4 -0
- package/lib/components/prompt/toolbar/tools/select/PromptSelect.d.ts +16 -0
- package/lib/components/prompt/toolbar/tools/select/PromptSelect.js +62 -0
- package/lib/components/prompt/toolbar/tools/select/PromptSelect.native.d.ts +4 -0
- package/lib/components/prompt/toolbar/tools/select/PromptSelect.native.js +22 -0
- package/lib/components/prompt/toolbar/tools/select/PromptSelectProps.d.ts +3 -0
- package/lib/components/prompt/toolbar/tools/select/PromptSelectProps.js +2 -0
- package/lib/components/prompt/toolbar/tools/select/index.d.ts +3 -0
- package/lib/components/prompt/toolbar/tools/select/index.js +4 -0
- package/lib/components/prompt/toolbar/tools/select/options/PromptSelectOption.d.ts +12 -0
- package/lib/components/prompt/toolbar/tools/select/options/PromptSelectOption.js +19 -0
- package/lib/components/prompt/toolbar/tools/select/options/PromptSelectOption.native.d.ts +4 -0
- package/lib/components/prompt/toolbar/tools/select/options/PromptSelectOption.native.js +11 -0
- package/lib/components/prompt/toolbar/tools/select/options/PromptSelectOptionProps.d.ts +3 -0
- package/lib/components/prompt/toolbar/tools/select/options/PromptSelectOptionProps.js +2 -0
- package/lib/components/prompt/toolbar/tools/select/options/index.d.ts +3 -0
- package/lib/components/prompt/toolbar/tools/select/options/index.js +4 -0
- package/lib/components/radio/EventHandlerDefaults.js +21 -0
- package/lib/components/radio/Radio.d.ts +7 -6
- package/lib/components/radio/Radio.js +12 -11
- package/lib/components/radio/Radio.native.d.ts +7 -7
- package/lib/components/radio/Radio.native.js +6 -6
- package/lib/components/radio/RadioNativePropsDefaults.js +9 -0
- package/lib/components/radio/RadioProps.d.ts +11 -4
- package/lib/components/radio/RadioPropsDefaults.js +7 -0
- package/lib/components/radio/list/RadioList.d.ts +5 -2
- package/lib/components/radio/list/RadioList.js +11 -8
- package/lib/components/radio/list/RadioListProps.d.ts +3 -3
- package/lib/components/radio/list/RadioListWebPropsDefaults.js +16 -1
- package/lib/components/radio/tiles/RadioTiles.d.ts +2 -0
- package/lib/components/radio/tiles/RadioTiles.js +27 -4
- package/lib/components/radio/tiles/RadioTiles.native.d.ts +1 -0
- package/lib/components/radio/tiles/RadioTiles.native.js +35 -7
- package/lib/components/radio/tiles/RadioTilesProps.d.ts +4 -5
- package/lib/components/radio/tiles/RadioTilesPropsDefaults.js +44 -2
- package/lib/components/radio/tiles/context/RadioTilesContext.d.ts +3 -0
- package/lib/components/radio/tiles/context/RadioTilesContext.js +5 -0
- package/lib/components/radio/tiles/context/RadioTilesContextProps.d.ts +3 -0
- package/lib/components/radio/tiles/context/RadioTilesContextProps.js +2 -0
- package/lib/components/radio/tiles/context/RadioTilesContextPropsDefaults.js +9 -0
- package/lib/components/radio/tiles/context/index.d.ts +2 -0
- package/lib/components/radio/tiles/context/index.js +3 -0
- package/lib/components/radio/tiles/tile/RadioTile.js +18 -9
- package/lib/components/radio/tiles/tile/RadioTile.native.d.ts +3 -2
- package/lib/components/radio/tiles/tile/RadioTile.native.js +9 -5
- package/lib/components/radio/tiles/tile/RadioTileNativePropsDefaults.js +128 -0
- package/lib/components/radio/tiles/tile/RadioTileProps.d.ts +10 -7
- package/lib/components/radio/tiles/tile/RadioTilePropsCommonDefaults.js +128 -0
- package/lib/components/radio/tiles/tile/RadioTilePropsDefaults.js +23 -71
- package/lib/components/range/Range.d.ts +18 -18
- package/lib/components/range/Range.js +22 -23
- package/lib/components/range/Range.native.d.ts +7 -8
- package/lib/components/range/Range.native.js +8 -9
- package/lib/components/rows/Rows.d.ts +4 -1
- package/lib/components/rows/Rows.js +10 -7
- package/lib/components/rows/RowsProps.d.ts +2 -1
- package/lib/components/rows/RowsPropsDefaults.js +7 -0
- package/lib/components/rows/row/Row.d.ts +2 -0
- package/lib/components/rows/row/Row.js +5 -3
- package/lib/components/rows/row/RowProps.d.ts +2 -1
- package/lib/components/rows/row/RowPropsDefaults.js +7 -0
- package/lib/components/scroll-view/ScrollView.d.ts +15 -15
- package/lib/components/scroll-view/ScrollView.js +27 -27
- package/lib/components/scroll-view/ScrollView.native.d.ts +12 -0
- package/lib/components/scroll-view/ScrollView.native.js +13 -1
- package/lib/components/scroll-view/ScrollViewProps.d.ts +2 -2
- package/lib/components/scroll-view/ScrollViewPropsDefaults.js +16 -7
- package/lib/components/section/Section.d.ts +8 -7
- package/lib/components/section/Section.js +15 -14
- package/lib/components/section/Section.native.d.ts +5 -4
- package/lib/components/section/Section.native.js +6 -5
- package/lib/components/section/SectionProps.d.ts +2 -2
- package/lib/components/section/SectionPropsDefaults.js +16 -7
- package/lib/components/segment-control/SegmentControl.d.ts +6 -5
- package/lib/components/segment-control/SegmentControl.js +9 -8
- package/lib/components/segment-control/SegmentControl.native.d.ts +2 -3
- package/lib/components/segment-control/SegmentControl.native.js +3 -4
- package/lib/components/segment-control/SegmentControlProps.d.ts +3 -3
- package/lib/components/segment-control/SegmentControlPropsDefaults.js +16 -1
- package/lib/components/segment-control/item/SegmentControlItem.d.ts +2 -1
- package/lib/components/segment-control/item/SegmentControlItem.js +5 -4
- package/lib/components/segment-control/item/SegmentControlItem.native.d.ts +1 -1
- package/lib/components/segment-control/item/SegmentControlItem.native.js +1 -1
- package/lib/components/segment-control/item/SegmentControlItemProps.d.ts +2 -2
- package/lib/components/segment-control/item/SegmentControlItemPropsDefaults.js +7 -0
- package/lib/components/select/PropsDefaults.js +21 -1
- package/lib/components/select/Select.js +1 -1
- package/lib/components/select/Select.native.d.ts +6 -5
- package/lib/components/select/Select.native.js +13 -12
- package/lib/components/select/SelectNativePropsDefaults.js +21 -1
- package/lib/components/select/SelectProps.d.ts +1 -0
- package/lib/components/select/SelectPropsDefaults.js +21 -1
- package/lib/components/select/option/SelectOption.js +2 -2
- package/lib/components/select/option/SelectOptionPropsDefaults.js +13 -1
- package/lib/components/select/web/SelectDynamic.js +3 -3
- package/lib/components/select/web/SelectNative.js +2 -2
- package/lib/components/skeleton/Skeleton.d.ts +18 -0
- package/lib/components/skeleton/Skeleton.js +20 -0
- package/lib/components/skeleton/Skeleton.native.d.ts +16 -0
- package/lib/components/skeleton/Skeleton.native.js +70 -0
- package/lib/components/skeleton/SkeletonProps.d.ts +13 -0
- package/lib/components/skeleton/SkeletonProps.js +2 -0
- package/lib/components/skeleton/SkeletonPropsDefaults.js +80 -0
- package/lib/components/skeleton/index.d.ts +3 -0
- package/lib/components/skeleton/index.js +4 -0
- package/lib/components/spacer/Spacer.d.ts +7 -3
- package/lib/components/spacer/Spacer.js +10 -6
- package/lib/components/spacer/SpacerProps.d.ts +2 -1
- package/lib/components/spacer/SpacerPropsDefaults.js +7 -0
- package/lib/components/stepper/Stepper.d.ts +4 -3
- package/lib/components/stepper/Stepper.js +35 -23
- package/lib/components/stepper/Stepper.native.d.ts +0 -1
- package/lib/components/stepper/Stepper.native.js +15 -14
- package/lib/components/stepper/StepperProps.d.ts +2 -1
- package/lib/components/stepper/StepperPropsDefaults.js +7 -0
- package/lib/components/stepper/step/Step.d.ts +4 -3
- package/lib/components/stepper/step/Step.js +12 -20
- package/lib/components/stepper/step/StepProps.d.ts +2 -1
- package/lib/components/stepper/step/StepPropsDefaults.js +20 -1
- package/lib/components/sticker/Sticker.d.ts +10 -9
- package/lib/components/sticker/Sticker.js +19 -18
- package/lib/components/sticker/Sticker.native.d.ts +3 -4
- package/lib/components/sticker/Sticker.native.js +4 -5
- package/lib/components/sticker/StickerProps.d.ts +2 -2
- package/lib/components/sticker/StickerPropsDefaults.js +21 -2
- package/lib/components/switch/Switch.d.ts +7 -5
- package/lib/components/switch/Switch.js +15 -13
- package/lib/components/switch/Switch.native.d.ts +3 -4
- package/lib/components/switch/Switch.native.js +60 -19
- package/lib/components/switch/SwitchProps.d.ts +2 -1
- package/lib/components/switch/SwitchPropsDefaults.js +7 -0
- package/lib/components/table/Table.d.ts +6 -5
- package/lib/components/table/Table.js +14 -13
- package/lib/components/table/Table.native.js +2 -2
- package/lib/components/table/TableProps.d.ts +2 -1
- package/lib/components/table/TableProps.js +1 -1
- package/lib/components/table/TablePropsDefaults.js +7 -0
- package/lib/components/table/body/TableBody.js +3 -3
- package/lib/components/table/body/TableBodyProps.d.ts +2 -2
- package/lib/components/table/body/TableBodyPropsDefaults.js +25 -14
- package/lib/components/table/head/TableHead.js +3 -3
- package/lib/components/table/head/TableHeadProps.d.ts +2 -2
- package/lib/components/table/head/TableHeadPropsDefaults.js +25 -14
- package/lib/components/table/td/TableTd.js +3 -3
- package/lib/components/table/td/TableTd.native.js +3 -3
- package/lib/components/table/td/TableTdProps.d.ts +2 -2
- package/lib/components/table/td/TableTdPropsDefaults.js +7 -0
- package/lib/components/table/th/TableTh.js +3 -3
- package/lib/components/table/th/TableTh.native.js +2 -2
- package/lib/components/table/th/TableThProps.d.ts +2 -2
- package/lib/components/table/th/TableThPropsDefaults.js +7 -0
- package/lib/components/table/tr/TableTr.js +3 -3
- package/lib/components/table/tr/TableTrProps.d.ts +2 -2
- package/lib/components/table/tr/TableTrPropsWebDefaults.js +16 -7
- package/lib/components/tabs/Tabs.d.ts +5 -4
- package/lib/components/tabs/Tabs.js +8 -7
- package/lib/components/tabs/Tabs.native.d.ts +1 -0
- package/lib/components/tabs/Tabs.native.js +4 -2
- package/lib/components/tabs/TabsPropsDefaults.js +18 -2
- package/lib/components/tabs/context/index.d.ts +1 -0
- package/lib/components/tabs/context/index.js +2 -1
- package/lib/components/tabs/tab-list/TabList.d.ts +5 -5
- package/lib/components/tabs/tab-list/TabList.js +5 -5
- package/lib/components/tabs/tab-list/TabList.native.d.ts +1 -5
- package/lib/components/tabs/tab-list/TabList.native.js +12 -13
- package/lib/components/tabs/tab-list/TabListProps.d.ts +2 -2
- package/lib/components/tabs/tab-list/TabListPropsDefaults.js +9 -1
- package/lib/components/tabs/tab-list/tab/Tab.native.js +8 -4
- package/lib/components/tabs/tab-list/tab/TabPropsDefaults.js +34 -22
- package/lib/components/tabs/tab-panels/TabPanels.d.ts +4 -4
- package/lib/components/tabs/tab-panels/TabPanels.js +4 -4
- package/lib/components/tabs/tab-panels/TabPanels.native.d.ts +1 -3
- package/lib/components/tabs/tab-panels/TabPanels.native.js +2 -4
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.d.ts +4 -3
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.js +5 -4
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.native.d.ts +1 -3
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.native.js +2 -4
- package/lib/components/tag/Tag.d.ts +6 -5
- package/lib/components/tag/Tag.js +9 -8
- package/lib/components/tag/TagPropsDefaults.js +7 -1
- package/lib/components/tag/list/TagList.d.ts +4 -1
- package/lib/components/tag/list/TagList.js +7 -4
- package/lib/components/tag/list/TagList.native.d.ts +1 -1
- package/lib/components/tag/list/TagList.native.js +1 -1
- package/lib/components/tag/list/TagListProps.d.ts +3 -3
- package/lib/components/tag/list/TagListPropsDefaults.js +16 -1
- package/lib/components/text/Text.d.ts +13 -12
- package/lib/components/text/Text.js +16 -15
- package/lib/components/text/Text.native.js +7 -8
- package/lib/components/text/TextPropsDefaults.js +7 -3
- package/lib/components/textarea/Textarea.d.ts +5 -6
- package/lib/components/textarea/Textarea.js +9 -10
- package/lib/components/textarea/Textarea.native.d.ts +7 -11
- package/lib/components/textarea/Textarea.native.js +51 -80
- package/lib/components/textarea/TextareaProps.d.ts +2 -3
- package/lib/components/timeline/Timeline.d.ts +4 -3
- package/lib/components/timeline/Timeline.js +10 -9
- package/lib/components/timeline/TimelineProps.d.ts +2 -1
- package/lib/components/timeline/TimelinePropsDefaults.js +7 -0
- package/lib/components/timeline/content/TimelineContent.d.ts +2 -1
- package/lib/components/timeline/content/TimelineContent.js +6 -5
- package/lib/components/timeline/content/TimelineContentProps.d.ts +2 -1
- package/lib/components/timeline/content/TimelineContentPropsDefaults.js +7 -0
- package/lib/components/timeline/content/TimelineContentWebPropsDefaults.js +7 -0
- package/lib/components/timeline/item/TimelineItem.d.ts +2 -1
- package/lib/components/timeline/item/TimelineItem.js +8 -7
- package/lib/components/timeline/item/TimelineItemProps.d.ts +2 -1
- package/lib/components/timeline/item/TimelineItemPropsDefaults.js +7 -0
- package/lib/components/timeline/item/TimelineItemWebPropsDefaults.js +7 -0
- package/lib/components/timeline/marker/TimelineMarker.d.ts +1 -1
- package/lib/components/timeline/marker/TimelineMarker.js +8 -8
- package/lib/components/timeline/marker/TimelineMarkerPropsDefaults.js +13 -1
- package/lib/components/timeline/marker/TimelineMarkerWebPropsDefaults.js +13 -1
- package/lib/components/timepicker/BaseTimepickerPropsDefaults.js +52 -0
- package/lib/components/timepicker/CircularTimepickerPropsDefaults.js +56 -0
- package/lib/components/timepicker/DefaultTimepickerPropsDefaults.js +88 -0
- package/lib/components/timepicker/Timepicker.d.ts +20 -0
- package/lib/components/timepicker/Timepicker.js +30 -0
- package/lib/components/timepicker/Timepicker.native.d.ts +17 -0
- package/lib/components/timepicker/Timepicker.native.js +27 -0
- package/lib/components/timepicker/TimepickerProps.d.ts +23 -0
- package/lib/components/timepicker/TimepickerProps.js +2 -0
- package/lib/components/timepicker/circular/TimepickerCircular.d.ts +11 -0
- package/lib/components/timepicker/circular/TimepickerCircular.js +335 -0
- package/lib/components/timepicker/circular/TimepickerCircular.native.d.ts +12 -0
- package/lib/components/timepicker/circular/TimepickerCircular.native.js +478 -0
- package/lib/components/timepicker/circular/TimepickerCircularEnum.d.ts +7 -0
- package/lib/components/timepicker/circular/TimepickerCircularEnum.js +9 -0
- package/lib/components/timepicker/circular/TimepickerCircularProps.d.ts +7 -0
- package/lib/components/timepicker/circular/TimepickerCircularProps.js +2 -0
- package/lib/components/timepicker/circular/index.d.ts +3 -0
- package/lib/components/timepicker/circular/index.js +4 -0
- package/lib/components/timepicker/default/TimepickerDefault.d.ts +4 -0
- package/lib/components/timepicker/default/TimepickerDefault.js +206 -0
- package/lib/components/timepicker/default/TimepickerDefault.native.d.ts +5 -0
- package/lib/components/timepicker/default/TimepickerDefault.native.js +83 -0
- package/lib/components/timepicker/default/TimepickerDefaultProps.d.ts +6 -0
- package/lib/components/timepicker/default/TimepickerDefaultProps.js +2 -0
- package/lib/components/timepicker/default/TimepickerDefaultPropsDefaults.js +9 -0
- package/lib/components/timepicker/default/index.d.ts +2 -0
- package/lib/components/timepicker/default/index.js +3 -0
- package/lib/components/timepicker/default/selector/TimepickerSelector.d.ts +13 -0
- package/lib/components/timepicker/default/selector/TimepickerSelector.js +22 -0
- package/lib/components/timepicker/default/selector/TimepickerSelector.native.d.ts +13 -0
- package/lib/components/timepicker/default/selector/TimepickerSelector.native.js +62 -0
- package/lib/components/timepicker/default/selector/index.d.ts +2 -0
- package/lib/components/timepicker/default/selector/index.js +3 -0
- package/lib/components/timepicker/default/selector/item/TimepickerSelectorItem.d.ts +12 -0
- package/lib/components/timepicker/default/selector/item/TimepickerSelectorItem.js +14 -0
- package/lib/components/timepicker/default/selector/item/TimepickerSelectorItem.native.d.ts +12 -0
- package/lib/components/timepicker/default/selector/item/TimepickerSelectorItem.native.js +38 -0
- package/lib/components/timepicker/default/selector/item/index.d.ts +2 -0
- package/lib/components/timepicker/default/selector/item/index.js +3 -0
- package/lib/components/timepicker/index.d.ts +2 -0
- package/lib/components/timepicker/index.js +3 -0
- package/lib/components/title/Title.d.ts +12 -11
- package/lib/components/title/Title.js +20 -19
- package/lib/components/title/Title.native.js +6 -10
- package/lib/components/title/TitlePropsDefaults.js +6 -6
- package/lib/components/view/View.d.ts +18 -17
- package/lib/components/view/View.js +31 -31
- package/lib/components/view/ViewProps.d.ts +2 -2
- package/lib/components/view/ViewProps.js +1 -1
- package/lib/components/view/ViewPropsDefaults.js +57 -21
- package/lib/helpers/clickOutside.d.ts +1 -0
- package/lib/helpers/clickOutside.js +16 -0
- package/lib/helpers/require.js +1 -1
- package/lib/objects/Typography/TypographyColor.d.ts +3 -1
- package/lib/objects/Typography/TypographyColor.js +9 -1
- package/lib/objects/facets/Alignable.d.ts +10 -3
- package/lib/objects/facets/Alignable.js +12 -5
- package/lib/objects/facets/Color.d.ts +2 -1
- package/lib/objects/facets/Color.js +3 -1
- package/lib/objects/facets/Grid.d.ts +9 -0
- package/lib/objects/facets/Grid.js +2 -0
- package/lib/objects/facets/Justifiable.d.ts +12 -4
- package/lib/objects/facets/Justifiable.js +34 -28
- package/lib/objects/facets/Radius.d.ts +2 -0
- package/lib/objects/facets/Radius.js +14 -0
- package/lib/tsconfig.json +1 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +2 -2
- package/package.json +18 -10
|
@@ -8,13 +8,17 @@ export default {
|
|
|
8
8
|
"tri-arrow-left",
|
|
9
9
|
"tri-arrow-right",
|
|
10
10
|
"tri-arrow-up",
|
|
11
|
+
"tri-arrow-high",
|
|
11
12
|
"tri-bell",
|
|
13
|
+
"tri-calendar",
|
|
12
14
|
"tri-check-circle",
|
|
13
15
|
"tri-check",
|
|
14
16
|
"tri-exclamation-circle",
|
|
15
17
|
"tri-eye-slash",
|
|
16
18
|
"tri-eye",
|
|
19
|
+
"tri-file-attached",
|
|
17
20
|
"tri-infos-circle",
|
|
21
|
+
"tri-micro",
|
|
18
22
|
"tri-search",
|
|
19
23
|
"tri-times",
|
|
20
24
|
"tri-trash",
|
|
@@ -26,18 +30,24 @@ export default {
|
|
|
26
30
|
"tri-picto-payment-mastercard",
|
|
27
31
|
"tri-picto-payment-paypal",
|
|
28
32
|
"tri-picto-payment-visa",
|
|
33
|
+
"tri-paperclip",
|
|
34
|
+
"tri-clock",
|
|
29
35
|
"tri-alert",
|
|
30
36
|
"tri-arrow-down",
|
|
31
37
|
"tri-arrow-left",
|
|
32
38
|
"tri-arrow-right",
|
|
33
39
|
"tri-arrow-up",
|
|
40
|
+
"tri-arrow-high",
|
|
34
41
|
"tri-bell",
|
|
42
|
+
"tri-calendar",
|
|
35
43
|
"tri-check-circle",
|
|
36
44
|
"tri-check",
|
|
37
45
|
"tri-exclamation-circle",
|
|
38
46
|
"tri-eye-slash",
|
|
39
47
|
"tri-eye",
|
|
48
|
+
"tri-file-attached",
|
|
40
49
|
"tri-infos-circle",
|
|
50
|
+
"tri-micro",
|
|
41
51
|
"tri-search",
|
|
42
52
|
"tri-times",
|
|
43
53
|
"tri-trash",
|
|
@@ -48,7 +58,9 @@ export default {
|
|
|
48
58
|
"tri-picto-payment-cb",
|
|
49
59
|
"tri-picto-payment-mastercard",
|
|
50
60
|
"tri-picto-payment-paypal",
|
|
51
|
-
"tri-picto-payment-visa"
|
|
61
|
+
"tri-picto-payment-visa",
|
|
62
|
+
"tri-paperclip",
|
|
63
|
+
"tri-clock"
|
|
52
64
|
]
|
|
53
65
|
},
|
|
54
66
|
"title": {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StatusState } from '../../objects/facets/Status';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AlertMarkup } from './AlertEnum';
|
|
4
|
+
import { ToasterAlertFloat, ToasterAlertPosition } from './AlertProps';
|
|
5
|
+
export interface ToasterDocsProps {
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
status?: StatusState;
|
|
9
|
+
position?: ToasterAlertPosition;
|
|
10
|
+
float?: ToasterAlertFloat;
|
|
11
|
+
duration?: number;
|
|
12
|
+
offset?: number;
|
|
13
|
+
markup?: AlertMarkup;
|
|
14
|
+
closable?: boolean;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
declare function ToasterDocs(props: ToasterDocsProps): JSX.Element;
|
|
18
|
+
declare namespace ToasterDocs {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
21
|
+
export default ToasterDocs;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
function ToasterDocs(props) {
|
|
4
|
+
return React.createElement("div", __assign({}, props));
|
|
5
|
+
}
|
|
6
|
+
ToasterDocs.displayName = 'Toaster';
|
|
7
|
+
export default ToasterDocs;
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVG9hc3RlckRvY3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9jb21wb25lbnRzL2FsZXJ0L1RvYXN0ZXJEb2NzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EsT0FBTyxLQUFLLE1BQU0sT0FBTyxDQUFBO0FBaUJ6QixTQUFTLFdBQVcsQ0FBQyxLQUF1QjtJQUMxQyxPQUFPLHdDQUFTLEtBQUssRUFBSSxDQUFBO0FBQzNCLENBQUM7QUFFRCxXQUFXLENBQUMsV0FBVyxHQUFHLFNBQVMsQ0FBQTtBQUVuQyxlQUFlLFdBQVcsQ0FBQSJ9
|
|
@@ -43,13 +43,17 @@ export default {
|
|
|
43
43
|
"tri-arrow-left",
|
|
44
44
|
"tri-arrow-right",
|
|
45
45
|
"tri-arrow-up",
|
|
46
|
+
"tri-arrow-high",
|
|
46
47
|
"tri-bell",
|
|
48
|
+
"tri-calendar",
|
|
47
49
|
"tri-check-circle",
|
|
48
50
|
"tri-check",
|
|
49
51
|
"tri-exclamation-circle",
|
|
50
52
|
"tri-eye-slash",
|
|
51
53
|
"tri-eye",
|
|
54
|
+
"tri-file-attached",
|
|
52
55
|
"tri-infos-circle",
|
|
56
|
+
"tri-micro",
|
|
53
57
|
"tri-search",
|
|
54
58
|
"tri-times",
|
|
55
59
|
"tri-trash",
|
|
@@ -61,18 +65,24 @@ export default {
|
|
|
61
65
|
"tri-picto-payment-mastercard",
|
|
62
66
|
"tri-picto-payment-paypal",
|
|
63
67
|
"tri-picto-payment-visa",
|
|
68
|
+
"tri-paperclip",
|
|
69
|
+
"tri-clock",
|
|
64
70
|
"tri-alert",
|
|
65
71
|
"tri-arrow-down",
|
|
66
72
|
"tri-arrow-left",
|
|
67
73
|
"tri-arrow-right",
|
|
68
74
|
"tri-arrow-up",
|
|
75
|
+
"tri-arrow-high",
|
|
69
76
|
"tri-bell",
|
|
77
|
+
"tri-calendar",
|
|
70
78
|
"tri-check-circle",
|
|
71
79
|
"tri-check",
|
|
72
80
|
"tri-exclamation-circle",
|
|
73
81
|
"tri-eye-slash",
|
|
74
82
|
"tri-eye",
|
|
83
|
+
"tri-file-attached",
|
|
75
84
|
"tri-infos-circle",
|
|
85
|
+
"tri-micro",
|
|
76
86
|
"tri-search",
|
|
77
87
|
"tri-times",
|
|
78
88
|
"tri-trash",
|
|
@@ -83,7 +93,9 @@ export default {
|
|
|
83
93
|
"tri-picto-payment-cb",
|
|
84
94
|
"tri-picto-payment-mastercard",
|
|
85
95
|
"tri-picto-payment-paypal",
|
|
86
|
-
"tri-picto-payment-visa"
|
|
96
|
+
"tri-picto-payment-visa",
|
|
97
|
+
"tri-paperclip",
|
|
98
|
+
"tri-clock"
|
|
87
99
|
]
|
|
88
100
|
},
|
|
89
101
|
"title": {
|
|
@@ -26,13 +26,17 @@ export default {
|
|
|
26
26
|
"tri-arrow-left",
|
|
27
27
|
"tri-arrow-right",
|
|
28
28
|
"tri-arrow-up",
|
|
29
|
+
"tri-arrow-high",
|
|
29
30
|
"tri-bell",
|
|
31
|
+
"tri-calendar",
|
|
30
32
|
"tri-check-circle",
|
|
31
33
|
"tri-check",
|
|
32
34
|
"tri-exclamation-circle",
|
|
33
35
|
"tri-eye-slash",
|
|
34
36
|
"tri-eye",
|
|
37
|
+
"tri-file-attached",
|
|
35
38
|
"tri-infos-circle",
|
|
39
|
+
"tri-micro",
|
|
36
40
|
"tri-search",
|
|
37
41
|
"tri-times",
|
|
38
42
|
"tri-trash",
|
|
@@ -44,18 +48,24 @@ export default {
|
|
|
44
48
|
"tri-picto-payment-mastercard",
|
|
45
49
|
"tri-picto-payment-paypal",
|
|
46
50
|
"tri-picto-payment-visa",
|
|
51
|
+
"tri-paperclip",
|
|
52
|
+
"tri-clock",
|
|
47
53
|
"tri-alert",
|
|
48
54
|
"tri-arrow-down",
|
|
49
55
|
"tri-arrow-left",
|
|
50
56
|
"tri-arrow-right",
|
|
51
57
|
"tri-arrow-up",
|
|
58
|
+
"tri-arrow-high",
|
|
52
59
|
"tri-bell",
|
|
60
|
+
"tri-calendar",
|
|
53
61
|
"tri-check-circle",
|
|
54
62
|
"tri-check",
|
|
55
63
|
"tri-exclamation-circle",
|
|
56
64
|
"tri-eye-slash",
|
|
57
65
|
"tri-eye",
|
|
66
|
+
"tri-file-attached",
|
|
58
67
|
"tri-infos-circle",
|
|
68
|
+
"tri-micro",
|
|
59
69
|
"tri-search",
|
|
60
70
|
"tri-times",
|
|
61
71
|
"tri-trash",
|
|
@@ -66,7 +76,9 @@ export default {
|
|
|
66
76
|
"tri-picto-payment-cb",
|
|
67
77
|
"tri-picto-payment-mastercard",
|
|
68
78
|
"tri-picto-payment-paypal",
|
|
69
|
-
"tri-picto-payment-visa"
|
|
79
|
+
"tri-picto-payment-visa",
|
|
80
|
+
"tri-paperclip",
|
|
81
|
+
"tri-clock"
|
|
70
82
|
]
|
|
71
83
|
},
|
|
72
84
|
"onClick": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ToasterAlertPosition } from '../../../components/alert/AlertProps';
|
|
1
|
+
import { ToasterAlertFloat, ToasterAlertPosition } from '../../../components/alert/AlertProps';
|
|
2
2
|
import { IconName, IconNameValues } from '../../../components/icon';
|
|
3
3
|
import { Accessibility, StatusProps } from '../../../objects';
|
|
4
4
|
import { AlertMarkup, AlertMarkupValues } from '../AlertEnum';
|
|
@@ -23,6 +23,7 @@ export interface ToastProps extends StatusProps, Accessibility {
|
|
|
23
23
|
}
|
|
24
24
|
interface ToastConfig {
|
|
25
25
|
position?: ToasterAlertPosition;
|
|
26
|
+
float?: ToasterAlertFloat;
|
|
26
27
|
duration?: number;
|
|
27
28
|
offset?: number;
|
|
28
29
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import Alert, { ToasterAlertProvider } from './Alert';
|
|
2
|
+
import { ToasterAlertFloat, ToasterAlertPosition } from './AlertProps';
|
|
2
3
|
import ToasterContext from './context';
|
|
3
|
-
export { Alert, ToasterContext, ToasterAlertProvider };
|
|
4
|
+
export { Alert, ToasterContext, ToasterAlertProvider, ToasterAlertFloat, ToasterAlertPosition };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Alert, { ToasterAlertProvider } from './Alert';
|
|
2
|
+
import { ToasterAlertFloat, ToasterAlertPosition } from './AlertProps';
|
|
2
3
|
import ToasterContext from './context';
|
|
3
|
-
export { Alert, ToasterContext, ToasterAlertProvider };
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
4
|
+
export { Alert, ToasterContext, ToasterAlertProvider, ToasterAlertFloat, ToasterAlertPosition };
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9jb21wb25lbnRzL2FsZXJ0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxFQUFFLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxTQUFTLENBQUE7QUFDckQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLG9CQUFvQixFQUFFLE1BQU0sY0FBYyxDQUFBO0FBQ3RFLE9BQU8sY0FBYyxNQUFNLFdBQVcsQ0FBQTtBQUV0QyxPQUFPLEVBQUUsS0FBSyxFQUFFLGNBQWMsRUFBRSxvQkFBb0IsRUFBRSxpQkFBaUIsRUFBRSxvQkFBb0IsRUFBRSxDQUFBIn0=
|
|
@@ -2,32 +2,32 @@ import React from 'react';
|
|
|
2
2
|
import { AutoCompletePropsWeb, AutocompleteRef } from './AutoCompleteProps';
|
|
3
3
|
/**
|
|
4
4
|
* AutoComplete Component
|
|
5
|
-
* @param placeholder {string}
|
|
5
|
+
* @param placeholder {string} Placeholder for input
|
|
6
6
|
* @param defaultValue {string} Default Value for Input
|
|
7
|
-
* @param data {string[]}
|
|
8
|
-
* @param value {string}
|
|
7
|
+
* @param data {string[]} Data list for AutoComplete items
|
|
8
|
+
* @param value {string} Controlled value of Input
|
|
9
9
|
* @param onChange {Function} OnChange Input Event
|
|
10
10
|
* @param onFocus {Function} OnFocus Input Event
|
|
11
|
+
* @param onBlur {Function} onBlur Input Event
|
|
11
12
|
* @param children {Function} Custom Component for dropdown list
|
|
12
13
|
* @param displayMenu {boolean} Display Autocomplete Menu (default: true)
|
|
13
|
-
* @param matching {Function} matching function
|
|
14
|
+
* @param matching {Function} Custom matching function
|
|
14
15
|
* @param status {InputStatus} Input with status - (SUCCESS|WARNING|ERROR|DEFAULT)
|
|
15
|
-
* @param onBlur {Function} onBlur Input Event
|
|
16
|
-
* @param testId {string} Test Id for Test Integration
|
|
17
16
|
* @param disabled {boolean} Disabled input
|
|
18
17
|
* @param onIconClick {Function} onIconClick Input Event
|
|
19
|
-
* @param onItemSelected {Function}
|
|
20
|
-
* @param
|
|
18
|
+
* @param onItemSelected {Function} onItemSelected event
|
|
19
|
+
* @param getSuggestions {Function} Async suggestions provider
|
|
21
20
|
* @param debounceSuggestionsTimeout {number} Timeout for getSuggestions debounce
|
|
22
|
-
* @param
|
|
23
|
-
*
|
|
21
|
+
* @param testId {string} Test Id for Test Integration
|
|
22
|
+
* @param loading {boolean} Loading input
|
|
23
|
+
* @param id {string} Custom id attribute
|
|
24
|
+
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
25
|
+
* @param className {string} Additional CSS Classes
|
|
24
26
|
* @param name {string} Input name
|
|
25
27
|
* @param classNameMenu {string} Additional CSS Classes for Menu
|
|
26
28
|
* @param absoluteMenu {boolean} Absolute position for Menu
|
|
27
29
|
* @param fullwidthMenu {boolean} Fullwidth size for Menu
|
|
28
|
-
* @param className {string} Additional CSS Classes
|
|
29
30
|
* @param accessibilityLabel {string} Accessibility label
|
|
30
|
-
* @param loading {boolean} Loading input
|
|
31
31
|
*/
|
|
32
32
|
declare const AutoComplete: <T>(props: AutoCompletePropsWeb<T> & {
|
|
33
33
|
ref?: React.ForwardedRef<HTMLInputElement> | undefined;
|
|
@@ -12,7 +12,7 @@ import AutoCompleteItem from './item';
|
|
|
12
12
|
import AutoCompleteMenu from './menu';
|
|
13
13
|
import { debounce } from './utils';
|
|
14
14
|
var AutoCompleteRef = function (_a, ref) {
|
|
15
|
-
var defaultValue = _a.defaultValue, value = _a.value, classNameMenu = _a.classNameMenu, absoluteMenu = _a.absoluteMenu, fullwidthMenu = _a.fullwidthMenu, placeholder = _a.placeholder, data = _a.data, status = _a.status, onBlur = _a.onBlur, onChange = _a.onChange, name = _a.name, _b = _a.matching, matching = _b === void 0 ? defaultMatching : _b, displayMenu = _a.displayMenu, onItemSelected = _a.onItemSelected, iconNameLeft = _a.iconNameLeft, iconNameRight = _a.iconNameRight, disabled = _a.disabled, children = _a.children, accessibilityLabel = _a.accessibilityLabel, onIconClick = _a.onIconClick, getSuggestions = _a.getSuggestions, debounceSuggestionsTimeout = _a.debounceSuggestionsTimeout, onFocus = _a.onFocus, id = _a.id, loading = _a.loading, others = __rest(_a, ["defaultValue", "value", "classNameMenu", "absoluteMenu", "fullwidthMenu", "placeholder", "data", "status", "onBlur", "onChange", "name", "matching", "displayMenu", "onItemSelected", "iconNameLeft", "iconNameRight", "disabled", "children", "accessibilityLabel", "onIconClick", "getSuggestions", "debounceSuggestionsTimeout", "onFocus", "id", "loading"]);
|
|
15
|
+
var defaultValue = _a.defaultValue, value = _a.value, classNameMenu = _a.classNameMenu, absoluteMenu = _a.absoluteMenu, fullwidthMenu = _a.fullwidthMenu, placeholder = _a.placeholder, data = _a.data, status = _a.status, onBlur = _a.onBlur, onChange = _a.onChange, name = _a.name, _b = _a.matching, matching = _b === void 0 ? defaultMatching : _b, displayMenu = _a.displayMenu, onItemSelected = _a.onItemSelected, iconNameLeft = _a.iconNameLeft, iconNameRight = _a.iconNameRight, disabled = _a.disabled, children = _a.children, accessibilityLabel = _a.accessibilityLabel, onIconClick = _a.onIconClick, getSuggestions = _a.getSuggestions, debounceSuggestionsTimeout = _a.debounceSuggestionsTimeout, onFocus = _a.onFocus, id = _a.id, loading = _a.loading, testId = _a.testId, others = __rest(_a, ["defaultValue", "value", "classNameMenu", "absoluteMenu", "fullwidthMenu", "placeholder", "data", "status", "onBlur", "onChange", "name", "matching", "displayMenu", "onItemSelected", "iconNameLeft", "iconNameRight", "disabled", "children", "accessibilityLabel", "onIconClick", "getSuggestions", "debounceSuggestionsTimeout", "onFocus", "id", "loading", "testId"]);
|
|
16
16
|
var styled = useTrilogyContext().styled;
|
|
17
17
|
var _c = __read(useState(null), 2), itemSelected = _c[0], setItemSelected = _c[1];
|
|
18
18
|
var _d = __read(useState(value !== null && value !== void 0 ? value : ''), 2), _inputValue = _d[0], setInputValue = _d[1];
|
|
@@ -38,35 +38,35 @@ var AutoCompleteRef = function (_a, ref) {
|
|
|
38
38
|
useEffect(function () {
|
|
39
39
|
setSearch(matching(data, _inputValue));
|
|
40
40
|
}, [data]);
|
|
41
|
-
var
|
|
42
|
-
|
|
41
|
+
var handleChangeInputValue = function (e) {
|
|
42
|
+
if (onChange) {
|
|
43
|
+
onChange({
|
|
44
|
+
inputName: name || '',
|
|
45
|
+
inputValue: e.inputValue,
|
|
46
|
+
inputSelectionStart: null,
|
|
47
|
+
target: e.target,
|
|
48
|
+
event: e,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
if (e.inputValue.startsWith('/') && e.inputValue.endsWith('/')) {
|
|
52
|
+
try {
|
|
53
|
+
var pattern = e.inputValue.substring(1, e.inputValue.lastIndexOf('/'));
|
|
54
|
+
setInputValue(new RegExp(pattern, 'i').source);
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
setInputValue(e.inputValue);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
setInputValue(e.inputValue);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
var getSuggestionsHandler = function (e) { return __awaiter(void 0, void 0, void 0, function () {
|
|
65
|
+
var data_1;
|
|
43
66
|
return __generator(this, function (_a) {
|
|
44
67
|
switch (_a.label) {
|
|
45
68
|
case 0:
|
|
46
69
|
setIsAutocompleteMenuVisible(true);
|
|
47
|
-
if (onChange) {
|
|
48
|
-
onChange({
|
|
49
|
-
inputName: name || '',
|
|
50
|
-
inputValue: e.inputValue,
|
|
51
|
-
inputSelectionStart: null,
|
|
52
|
-
target: e.target,
|
|
53
|
-
event: e,
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
// Check if the input value is a regular expression or a string
|
|
57
|
-
if (e.inputValue.startsWith('/') && e.inputValue.endsWith('/')) {
|
|
58
|
-
try {
|
|
59
|
-
pattern = e.inputValue.substring(1, e.inputValue.lastIndexOf('/'));
|
|
60
|
-
setInputValue(new RegExp(pattern, 'i').source);
|
|
61
|
-
}
|
|
62
|
-
catch (error) {
|
|
63
|
-
// If the regular expression is invalid, keep the input value as a string
|
|
64
|
-
setInputValue(e.inputValue);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
setInputValue(e.inputValue);
|
|
69
|
-
}
|
|
70
70
|
if (!getSuggestions) return [3 /*break*/, 2];
|
|
71
71
|
return [4 /*yield*/, getSuggestions(e.inputValue)];
|
|
72
72
|
case 1:
|
|
@@ -82,7 +82,9 @@ var AutoCompleteRef = function (_a, ref) {
|
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
}); };
|
|
85
|
-
var onInputChange = debounceSuggestionsTimeout
|
|
85
|
+
var onInputChange = debounceSuggestionsTimeout
|
|
86
|
+
? debounce(getSuggestionsHandler, debounceSuggestionsTimeout)
|
|
87
|
+
: getSuggestionsHandler;
|
|
86
88
|
var suggestionSelected = function (value, data, search) {
|
|
87
89
|
setIsAutocompleteMenuVisible(false);
|
|
88
90
|
setInputValue(getLabel(value));
|
|
@@ -122,47 +124,46 @@ var AutoCompleteRef = function (_a, ref) {
|
|
|
122
124
|
onFocus(event);
|
|
123
125
|
};
|
|
124
126
|
return (React.createElement("div", { className: autocompleteContainerClasses },
|
|
125
|
-
React.createElement(Input, __assign({ id: id, ref: ref, defaultValue: defaultValue, accessibilityLabel: accessibilityLabel, iconNameLeft: iconNameLeft, iconNameRight: iconNameRight, placeholder: placeholder }, (name ? { name: name } : {}), { type: 'text', status: status, autoCompleteType: InputAutoCompleteType.OFF, disabled: disabled,
|
|
126
|
-
// Add delay for selection of suggestion
|
|
127
|
-
onBlur: function (e) {
|
|
127
|
+
React.createElement(Input, __assign({ id: id, ref: ref, defaultValue: defaultValue, accessibilityLabel: accessibilityLabel, iconNameLeft: iconNameLeft, iconNameRight: iconNameRight, placeholder: placeholder }, (name ? { name: name } : {}), { type: 'text', status: status, autoCompleteType: InputAutoCompleteType.OFF, disabled: disabled, onBlur: function (e) {
|
|
128
128
|
setTimeout(function () { return setIsAutocompleteMenuVisible(false); }, 250);
|
|
129
129
|
if (onBlur)
|
|
130
130
|
onBlur(e);
|
|
131
131
|
}, onFocus: handleFocus, onKeyUp: handleKeyPress, value: _inputValue, onChange: function (event) {
|
|
132
|
+
handleChangeInputValue(event);
|
|
132
133
|
onInputChange(event);
|
|
133
|
-
}, onIconClick: onIconClick, loading: loading }, __assign({ onKeyDown: function (e) { return e.key === 'Enter' && e.preventDefault(); } }, others))),
|
|
134
|
-
isAutocompleteMenuVisible && (React.createElement("div", { className: autocompleteClasses }, search.length > 0 && (React.createElement(AutoCompleteMenu, { absolute: absoluteMenu, fullwidth: fullwidthMenu, className: classNameMenu }, search.map(function (item, i) { return (React.createElement(AutoCompleteItem, { active: activeItem === i, key: i, item: item, suggestionSelected: function (v) { return suggestionSelected(v, data, search); } }, children ? children(item) : getLabel(item))); })))))));
|
|
134
|
+
}, onIconClick: onIconClick, loading: loading, "data-testid": testId }, __assign({ onKeyDown: function (e) { return e.key === 'Enter' && e.preventDefault(); } }, others))),
|
|
135
|
+
isAutocompleteMenuVisible && (React.createElement("div", { className: autocompleteClasses }, search.length > 0 && (React.createElement(AutoCompleteMenu, { absolute: absoluteMenu, fullwidth: fullwidthMenu, className: classNameMenu, testId: "".concat(testId, "-menu") }, search.map(function (item, i) { return (React.createElement(AutoCompleteItem, { active: activeItem === i, key: i, item: item, testId: "".concat(testId, "-item"), suggestionSelected: function (v) { return suggestionSelected(v, data, search); } }, children ? children(item) : getLabel(item))); })))))));
|
|
135
136
|
};
|
|
136
137
|
AutoCompleteRef.displayName = ComponentName.AutoComplete;
|
|
137
138
|
/**
|
|
138
139
|
* AutoComplete Component
|
|
139
|
-
* @param placeholder {string}
|
|
140
|
+
* @param placeholder {string} Placeholder for input
|
|
140
141
|
* @param defaultValue {string} Default Value for Input
|
|
141
|
-
* @param data {string[]}
|
|
142
|
-
* @param value {string}
|
|
142
|
+
* @param data {string[]} Data list for AutoComplete items
|
|
143
|
+
* @param value {string} Controlled value of Input
|
|
143
144
|
* @param onChange {Function} OnChange Input Event
|
|
144
145
|
* @param onFocus {Function} OnFocus Input Event
|
|
146
|
+
* @param onBlur {Function} onBlur Input Event
|
|
145
147
|
* @param children {Function} Custom Component for dropdown list
|
|
146
148
|
* @param displayMenu {boolean} Display Autocomplete Menu (default: true)
|
|
147
|
-
* @param matching {Function} matching function
|
|
149
|
+
* @param matching {Function} Custom matching function
|
|
148
150
|
* @param status {InputStatus} Input with status - (SUCCESS|WARNING|ERROR|DEFAULT)
|
|
149
|
-
* @param onBlur {Function} onBlur Input Event
|
|
150
|
-
* @param testId {string} Test Id for Test Integration
|
|
151
151
|
* @param disabled {boolean} Disabled input
|
|
152
152
|
* @param onIconClick {Function} onIconClick Input Event
|
|
153
|
-
* @param onItemSelected {Function}
|
|
154
|
-
* @param
|
|
153
|
+
* @param onItemSelected {Function} onItemSelected event
|
|
154
|
+
* @param getSuggestions {Function} Async suggestions provider
|
|
155
155
|
* @param debounceSuggestionsTimeout {number} Timeout for getSuggestions debounce
|
|
156
|
-
* @param
|
|
157
|
-
*
|
|
156
|
+
* @param testId {string} Test Id for Test Integration
|
|
157
|
+
* @param loading {boolean} Loading input
|
|
158
|
+
* @param id {string} Custom id attribute
|
|
159
|
+
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
160
|
+
* @param className {string} Additional CSS Classes
|
|
158
161
|
* @param name {string} Input name
|
|
159
162
|
* @param classNameMenu {string} Additional CSS Classes for Menu
|
|
160
163
|
* @param absoluteMenu {boolean} Absolute position for Menu
|
|
161
164
|
* @param fullwidthMenu {boolean} Fullwidth size for Menu
|
|
162
|
-
* @param className {string} Additional CSS Classes
|
|
163
165
|
* @param accessibilityLabel {string} Accessibility label
|
|
164
|
-
* @param loading {boolean} Loading input
|
|
165
166
|
*/
|
|
166
167
|
var AutoComplete = React.forwardRef(AutoCompleteRef);
|
|
167
168
|
export default AutoComplete;
|
|
168
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
169
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXV0b0NvbXBsZXRlLmpzIiwic291cmNlUm9vd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|
|
5
5
|
* AutoComplete Component
|
|
6
|
-
* @param placeholder {string}
|
|
6
|
+
* @param placeholder {string} Placeholder for input
|
|
7
7
|
* @param defaultValue {string} Default Value for Input
|
|
8
|
-
* @param data {string[]}
|
|
9
|
-
* @param value {string}
|
|
8
|
+
* @param data {string[]} Data list for AutoComplete items
|
|
9
|
+
* @param value {string} Controlled value of Input
|
|
10
10
|
* @param onChange {Function} OnChange Input Event
|
|
11
11
|
* @param onFocus {Function} OnFocus Input Event
|
|
12
|
+
* @param onBlur {Function} onBlur Input Event
|
|
12
13
|
* @param children {Function} Custom Component for dropdown list
|
|
13
14
|
* @param displayMenu {boolean} Display Autocomplete Menu (default: true)
|
|
14
|
-
* @param matching {Function} matching function
|
|
15
|
+
* @param matching {Function} Custom matching function
|
|
15
16
|
* @param status {InputStatus} Input with status - (SUCCESS|WARNING|ERROR|DEFAULT)
|
|
16
|
-
* @param onBlur {Function} onBlur Input Event
|
|
17
|
-
* @param testId {string} Test Id for Test Integration
|
|
18
17
|
* @param disabled {boolean} Disabled input
|
|
19
18
|
* @param onIconClick {Function} onIconClick Input Event
|
|
20
|
-
* @param onItemSelected {Function}
|
|
21
|
-
* @param
|
|
22
|
-
* @param iconNameRight {IconName} Additional icon right
|
|
19
|
+
* @param onItemSelected {Function} onItemSelected event
|
|
20
|
+
* @param getSuggestions {Function} Async suggestions provider
|
|
23
21
|
* @param debounceSuggestionsTimeout {number} Timeout for getSuggestions debounce
|
|
24
|
-
* @param
|
|
22
|
+
* @param testId {string} Test Id for Test Integration
|
|
23
|
+
* @param loading {boolean} Loading input
|
|
24
|
+
* @param id {string} Custom id attribute
|
|
25
25
|
*/
|
|
26
26
|
declare const AutoComplete: React.ForwardRefExoticComponent<AutoCompletePropsNative<string> & React.RefAttributes<View>>;
|
|
27
27
|
export default AutoComplete;
|
|
@@ -8,25 +8,25 @@ import AutoCompleteMenuNative from './menu/AutoCompleteMenu.native';
|
|
|
8
8
|
import { debounce } from './utils';
|
|
9
9
|
/**
|
|
10
10
|
* AutoComplete Component
|
|
11
|
-
* @param placeholder {string}
|
|
11
|
+
* @param placeholder {string} Placeholder for input
|
|
12
12
|
* @param defaultValue {string} Default Value for Input
|
|
13
|
-
* @param data {string[]}
|
|
14
|
-
* @param value {string}
|
|
13
|
+
* @param data {string[]} Data list for AutoComplete items
|
|
14
|
+
* @param value {string} Controlled value of Input
|
|
15
15
|
* @param onChange {Function} OnChange Input Event
|
|
16
16
|
* @param onFocus {Function} OnFocus Input Event
|
|
17
|
+
* @param onBlur {Function} onBlur Input Event
|
|
17
18
|
* @param children {Function} Custom Component for dropdown list
|
|
18
19
|
* @param displayMenu {boolean} Display Autocomplete Menu (default: true)
|
|
19
|
-
* @param matching {Function} matching function
|
|
20
|
+
* @param matching {Function} Custom matching function
|
|
20
21
|
* @param status {InputStatus} Input with status - (SUCCESS|WARNING|ERROR|DEFAULT)
|
|
21
|
-
* @param onBlur {Function} onBlur Input Event
|
|
22
|
-
* @param testId {string} Test Id for Test Integration
|
|
23
22
|
* @param disabled {boolean} Disabled input
|
|
24
23
|
* @param onIconClick {Function} onIconClick Input Event
|
|
25
|
-
* @param onItemSelected {Function}
|
|
26
|
-
* @param
|
|
27
|
-
* @param iconNameRight {IconName} Additional icon right
|
|
24
|
+
* @param onItemSelected {Function} onItemSelected event
|
|
25
|
+
* @param getSuggestions {Function} Async suggestions provider
|
|
28
26
|
* @param debounceSuggestionsTimeout {number} Timeout for getSuggestions debounce
|
|
29
|
-
* @param
|
|
27
|
+
* @param testId {string} Test Id for Test Integration
|
|
28
|
+
* @param loading {boolean} Loading input
|
|
29
|
+
* @param id {string} Custom id attribute
|
|
30
30
|
*/
|
|
31
31
|
var AutoComplete = React.forwardRef(function (_a, ref) {
|
|
32
32
|
var value = _a.value, data = _a.data, onChange = _a.onChange, displayMenu = _a.displayMenu, onItemSelected = _a.onItemSelected, iconNameLeft = _a.iconNameLeft, iconNameRight = _a.iconNameRight, placeholder = _a.placeholder, _b = _a.matching, matching = _b === void 0 ? defaultMatching : _b, getSuggestions = _a.getSuggestions, debounceSuggestionsTimeout = _a.debounceSuggestionsTimeout, onFocus = _a.onFocus, testId = _a.testId, status = _a.status, onBlur = _a.onBlur, disabled = _a.disabled, onIconClick = _a.onIconClick, others = __rest(_a, ["value", "data", "onChange", "displayMenu", "onItemSelected", "iconNameLeft", "iconNameRight", "placeholder", "matching", "getSuggestions", "debounceSuggestionsTimeout", "onFocus", "testId", "status", "onBlur", "disabled", "onIconClick"]);
|