@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
|
@@ -39,12 +39,6 @@ export default {
|
|
|
39
39
|
"type": "enum",
|
|
40
40
|
"values": [
|
|
41
41
|
"undefined",
|
|
42
|
-
"SUCCESS",
|
|
43
|
-
"INFO",
|
|
44
|
-
"WARNING",
|
|
45
|
-
"ERROR",
|
|
46
|
-
"MAIN",
|
|
47
|
-
"ACCENT",
|
|
48
42
|
"WHITE",
|
|
49
43
|
"MAIN",
|
|
50
44
|
"MAIN_FADE",
|
|
@@ -65,20 +59,28 @@ export default {
|
|
|
65
59
|
"NEUTRAL",
|
|
66
60
|
"NEUTRAL_FADE",
|
|
67
61
|
"STROKE",
|
|
62
|
+
"STROKE_FADE",
|
|
68
63
|
"WHITE",
|
|
64
|
+
"MAIN",
|
|
69
65
|
"MAIN_FADE",
|
|
66
|
+
"ACCENT",
|
|
70
67
|
"ACCENT_FADE",
|
|
71
68
|
"FONT",
|
|
72
69
|
"FONT_PLACEHOLDER",
|
|
70
|
+
"SUCCESS",
|
|
73
71
|
"SUCCESS_FADE",
|
|
72
|
+
"INFO",
|
|
74
73
|
"INFO_FADE",
|
|
74
|
+
"WARNING",
|
|
75
75
|
"WARNING_FADE",
|
|
76
|
+
"ERROR",
|
|
76
77
|
"ERROR_FADE",
|
|
77
78
|
"DISABLED",
|
|
78
79
|
"DISABLED_FADE",
|
|
79
80
|
"NEUTRAL",
|
|
80
81
|
"NEUTRAL_FADE",
|
|
81
|
-
"STROKE"
|
|
82
|
+
"STROKE",
|
|
83
|
+
"STROKE_FADE"
|
|
82
84
|
]
|
|
83
85
|
},
|
|
84
86
|
"secondValue": {
|
|
@@ -92,12 +94,6 @@ export default {
|
|
|
92
94
|
"type": "enum",
|
|
93
95
|
"values": [
|
|
94
96
|
"undefined",
|
|
95
|
-
"SUCCESS",
|
|
96
|
-
"INFO",
|
|
97
|
-
"WARNING",
|
|
98
|
-
"ERROR",
|
|
99
|
-
"MAIN",
|
|
100
|
-
"ACCENT",
|
|
101
97
|
"WHITE",
|
|
102
98
|
"MAIN",
|
|
103
99
|
"MAIN_FADE",
|
|
@@ -118,20 +114,28 @@ export default {
|
|
|
118
114
|
"NEUTRAL",
|
|
119
115
|
"NEUTRAL_FADE",
|
|
120
116
|
"STROKE",
|
|
117
|
+
"STROKE_FADE",
|
|
121
118
|
"WHITE",
|
|
119
|
+
"MAIN",
|
|
122
120
|
"MAIN_FADE",
|
|
121
|
+
"ACCENT",
|
|
123
122
|
"ACCENT_FADE",
|
|
124
123
|
"FONT",
|
|
125
124
|
"FONT_PLACEHOLDER",
|
|
125
|
+
"SUCCESS",
|
|
126
126
|
"SUCCESS_FADE",
|
|
127
|
+
"INFO",
|
|
127
128
|
"INFO_FADE",
|
|
129
|
+
"WARNING",
|
|
128
130
|
"WARNING_FADE",
|
|
131
|
+
"ERROR",
|
|
129
132
|
"ERROR_FADE",
|
|
130
133
|
"DISABLED",
|
|
131
134
|
"DISABLED_FADE",
|
|
132
135
|
"NEUTRAL",
|
|
133
136
|
"NEUTRAL_FADE",
|
|
134
|
-
"STROKE"
|
|
137
|
+
"STROKE",
|
|
138
|
+
"STROKE_FADE"
|
|
135
139
|
]
|
|
136
140
|
},
|
|
137
141
|
"description": {
|
|
@@ -205,6 +209,9 @@ export default {
|
|
|
205
209
|
"type": "enum",
|
|
206
210
|
"values": [
|
|
207
211
|
"undefined",
|
|
212
|
+
"CENTER",
|
|
213
|
+
"START",
|
|
214
|
+
"END",
|
|
208
215
|
"ALIGNED_CENTER",
|
|
209
216
|
"ALIGNED_START",
|
|
210
217
|
"ALIGNED_END",
|
|
@@ -212,13 +219,21 @@ export default {
|
|
|
212
219
|
"ALIGNED_CENTER",
|
|
213
220
|
"ALIGNED_START",
|
|
214
221
|
"ALIGNED_END",
|
|
215
|
-
"ALIGNED_STRETCH"
|
|
222
|
+
"ALIGNED_STRETCH",
|
|
223
|
+
"CENTER",
|
|
224
|
+
"START",
|
|
225
|
+
"END",
|
|
226
|
+
"STRETCH",
|
|
227
|
+
"STRETCH"
|
|
216
228
|
]
|
|
217
229
|
},
|
|
218
230
|
"verticalAlign": {
|
|
219
231
|
"type": "enum",
|
|
220
232
|
"values": [
|
|
221
233
|
"undefined",
|
|
234
|
+
"CENTER",
|
|
235
|
+
"START",
|
|
236
|
+
"END",
|
|
222
237
|
"ALIGNED_CENTER",
|
|
223
238
|
"ALIGNED_START",
|
|
224
239
|
"ALIGNED_END",
|
|
@@ -226,7 +241,12 @@ export default {
|
|
|
226
241
|
"ALIGNED_CENTER",
|
|
227
242
|
"ALIGNED_START",
|
|
228
243
|
"ALIGNED_END",
|
|
229
|
-
"ALIGNED_STRETCH"
|
|
244
|
+
"ALIGNED_STRETCH",
|
|
245
|
+
"CENTER",
|
|
246
|
+
"START",
|
|
247
|
+
"END",
|
|
248
|
+
"STRETCH",
|
|
249
|
+
"STRETCH"
|
|
230
250
|
]
|
|
231
251
|
},
|
|
232
252
|
"className": {
|
|
@@ -235,5 +255,12 @@ export default {
|
|
|
235
255
|
"undefined",
|
|
236
256
|
"string"
|
|
237
257
|
]
|
|
258
|
+
},
|
|
259
|
+
"testId": {
|
|
260
|
+
"type": "string",
|
|
261
|
+
"values": [
|
|
262
|
+
"undefined",
|
|
263
|
+
"string"
|
|
264
|
+
]
|
|
238
265
|
}
|
|
239
266
|
};
|
|
@@ -20,7 +20,6 @@ export default {
|
|
|
20
20
|
"color": {
|
|
21
21
|
"type": "enum",
|
|
22
22
|
"values": [
|
|
23
|
-
"warning",
|
|
24
23
|
"WHITE",
|
|
25
24
|
"MAIN",
|
|
26
25
|
"MAIN_FADE",
|
|
@@ -41,7 +40,9 @@ export default {
|
|
|
41
40
|
"NEUTRAL",
|
|
42
41
|
"NEUTRAL_FADE",
|
|
43
42
|
"STROKE",
|
|
43
|
+
"STROKE_FADE",
|
|
44
44
|
"secondary",
|
|
45
|
+
"warning",
|
|
45
46
|
"empty",
|
|
46
47
|
"tertiary"
|
|
47
48
|
]
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ProgressRadialItemProps } from './ProgressRadialItemProps';
|
|
3
|
+
/**
|
|
4
|
+
* ProgressRadialItem Component - Represents a slice of the radial progress
|
|
5
|
+
* @param color {string} Color of the slice (e.g., 'primary', 'secondary', 'success', etc.)
|
|
6
|
+
* @param className {string} Additional CSS Classes
|
|
7
|
+
* @param id {string} Custom id attribute
|
|
8
|
+
*/
|
|
3
9
|
declare const ProgressRadialItem: ({ color, className, id }: ProgressRadialItemProps) => JSX.Element;
|
|
4
10
|
export default ProgressRadialItem;
|
|
@@ -2,6 +2,12 @@ import * as React from 'react';
|
|
|
2
2
|
import { hashClass } from '../../../../helpers';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useTrilogyContext } from '../../../../context';
|
|
5
|
+
/**
|
|
6
|
+
* ProgressRadialItem Component - Represents a slice of the radial progress
|
|
7
|
+
* @param color {string} Color of the slice (e.g., 'primary', 'secondary', 'success', etc.)
|
|
8
|
+
* @param className {string} Additional CSS Classes
|
|
9
|
+
* @param id {string} Custom id attribute
|
|
10
|
+
*/
|
|
5
11
|
var ProgressRadialItem = function (_a) {
|
|
6
12
|
var color = _a.color, className = _a.className, id = _a.id;
|
|
7
13
|
var styled = useTrilogyContext().styled;
|
|
@@ -9,4 +15,4 @@ var ProgressRadialItem = function (_a) {
|
|
|
9
15
|
return React.createElement("div", { id: id, className: classes });
|
|
10
16
|
};
|
|
11
17
|
export default ProgressRadialItem;
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJvZ3Jlc3NSYWRpYWx0ZW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9jb21wb25lbnRzL3Byb2dyZXNzL3JhZGlhbC9pdGVtL1Byb2dyZXNzUmFkaWFsdGVtLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssS0FBSyxNQUFNLE9BQU8sQ0FBQTtBQUU5QixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sV0FBVyxDQUFBO0FBQ3JDLE9BQU8sSUFBSSxNQUFNLE1BQU0sQ0FBQTtBQUN2QixPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxXQUFXLENBQUE7QUFFN0M7Ozs7O0dBS0c7QUFDSCxJQUFNLGtCQUFrQixHQUFHLFVBQUMsRUFBaUQ7UUFBL0MsS0FBSyxXQUFBLEVBQUUsU0FBUyxlQUFBLEVBQUUsRUFBRSxRQUFBO0lBQ3hDLElBQUEsTUFBTSxHQUFLLGlCQUFpQixFQUFFLE9BQXhCLENBQXdCO0lBQ3RDLElBQU0sT0FBTyxHQUFHLFNBQVMsQ0FBQyxNQUFNLEVBQUUsSUFBSSxDQUFDLDJEQUFvRCxLQUFLLENBQUUsRUFBRSxTQUFTLENBQUMsQ0FBQyxDQUFBO0lBRS9HLE9BQU8sNkJBQUssRUFBRSxFQUFFLEVBQUUsRUFBRSxTQUFTLEVBQUUsT0FBTyxHQUFRLENBQUE7QUFDaEQsQ0FBQyxDQUFBO0FBRUQsZUFBZSxrQkFBa0IsQ0FBQSJ9
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PromptProps } from './PromptProps';
|
|
3
|
+
/**
|
|
4
|
+
* Prompt Component - Form wrapper for chat-like or AI prompt interfaces
|
|
5
|
+
* @param readOnly {boolean} Read-only state (disables editing)
|
|
6
|
+
* @param disabled {boolean} Disabled state
|
|
7
|
+
* @param children {ReactNode} Child components (Input, Textarea, toolbar buttons, etc.)
|
|
8
|
+
* @param testId {string} Test Id for Test Integration
|
|
9
|
+
* @param accessibilityLabel {string} Accessibility label
|
|
10
|
+
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
11
|
+
* @param className {string} Additional CSS Classes
|
|
12
|
+
* @param id {string} Custom id attribute
|
|
13
|
+
*/
|
|
14
|
+
declare const Prompt: React.ForwardRefExoticComponent<PromptProps & React.RefAttributes<HTMLFormElement>>;
|
|
15
|
+
export default Prompt;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { __assign, __rest } from "tslib";
|
|
2
|
+
import { useTrilogyContext } from '../../context';
|
|
3
|
+
import { hashClass } from '../../helpers/hashClassesHelpers';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import React, { useContext } from 'react';
|
|
6
|
+
import { ComponentName } from '../enumsComponentsName';
|
|
7
|
+
import { PromptContext, PromptProvider } from './context';
|
|
8
|
+
var PromptElm = React.forwardRef(function (_a, ref) {
|
|
9
|
+
var className = _a.className, testId = _a.testId, others = __rest(_a, ["className", "testId"]);
|
|
10
|
+
var styled = useTrilogyContext().styled;
|
|
11
|
+
var _b = useContext(PromptContext), isReadonly = _b.isReadonly, isDisabled = _b.isDisabled;
|
|
12
|
+
var classes = hashClass(styled, clsx('prompt', className));
|
|
13
|
+
var handleSubmit = function (e) {
|
|
14
|
+
e.preventDefault();
|
|
15
|
+
if (document.activeElement instanceof HTMLElement)
|
|
16
|
+
document.activeElement.blur();
|
|
17
|
+
};
|
|
18
|
+
return (React.createElement("form", __assign({ "data-testid": testId, "aria-disabled": isDisabled, "aria-readonly": isReadonly, ref: ref, className: classes, onSubmit: handleSubmit }, others)));
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Prompt Component - Form wrapper for chat-like or AI prompt interfaces
|
|
22
|
+
* @param readOnly {boolean} Read-only state (disables editing)
|
|
23
|
+
* @param disabled {boolean} Disabled state
|
|
24
|
+
* @param children {ReactNode} Child components (Input, Textarea, toolbar buttons, etc.)
|
|
25
|
+
* @param testId {string} Test Id for Test Integration
|
|
26
|
+
* @param accessibilityLabel {string} Accessibility label
|
|
27
|
+
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
28
|
+
* @param className {string} Additional CSS Classes
|
|
29
|
+
* @param id {string} Custom id attribute
|
|
30
|
+
*/
|
|
31
|
+
var Prompt = React.forwardRef(function (_a, ref) {
|
|
32
|
+
var _b = _a.readOnly, readOnly = _b === void 0 ? false : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, className = _a.className, others = __rest(_a, ["readOnly", "disabled", "className"]);
|
|
33
|
+
return (React.createElement(PromptProvider, { isReadonly: readOnly, isDisabled: disabled },
|
|
34
|
+
React.createElement(PromptElm, __assign({ ref: ref, className: className }, others))));
|
|
35
|
+
});
|
|
36
|
+
Prompt.displayName = ComponentName.Prompt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|
+
import { PromptProps } from './PromptProps';
|
|
4
|
+
/**
|
|
5
|
+
* Prompt Component (React Native) - Form wrapper for chat-like or AI prompt interfaces
|
|
6
|
+
* @param readOnly {boolean} Read-only state (disables editing)
|
|
7
|
+
* @param disabled {boolean} Disabled state
|
|
8
|
+
* @param children {ReactNode} Child components (Input, Textarea, toolbar buttons, etc.)
|
|
9
|
+
* @param testId {string} Test Id for Test Integration
|
|
10
|
+
* @param accessibilityLabel {string} Accessibility label
|
|
11
|
+
*/
|
|
12
|
+
declare const Prompt: React.ForwardRefExoticComponent<PromptProps & React.RefAttributes<View>>;
|
|
13
|
+
export default Prompt;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { __assign, __rest } from "tslib";
|
|
2
|
+
import { getColorStyle, TrilogyColor } from '../../objects/facets/Color';
|
|
3
|
+
import { getRadiusStyle } from '../../objects/facets/Radius';
|
|
4
|
+
import React, { useContext } from 'react';
|
|
5
|
+
import { StyleSheet, View } from 'react-native';
|
|
6
|
+
import { ComponentName } from '../enumsComponentsName';
|
|
7
|
+
import { RadiusValues } from '../image';
|
|
8
|
+
import { PromptContext, PromptProvider } from './context';
|
|
9
|
+
var PromptElm = React.forwardRef(function (_a, ref) {
|
|
10
|
+
var disabled = _a.disabled, others = __rest(_a, ["disabled"]);
|
|
11
|
+
var _b = useContext(PromptContext), isFocused = _b.isFocused, isDisabled = _b.isDisabled;
|
|
12
|
+
var styles = StyleSheet.create({
|
|
13
|
+
view: {
|
|
14
|
+
borderWidth: isFocused ? 2 : 1,
|
|
15
|
+
borderRadius: getRadiusStyle(RadiusValues.SMALL),
|
|
16
|
+
borderColor: getColorStyle(TrilogyColor[isFocused ? 'MAIN' : isDisabled ? 'DISABLED' : 'STROKE']),
|
|
17
|
+
margin: isFocused ? -1 : undefined,
|
|
18
|
+
backgroundColor: getColorStyle(disabled ? TrilogyColor.DISABLED_FADE : TrilogyColor.BACKGROUND),
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
return React.createElement(View, __assign({ ref: ref, style: styles.view }, others));
|
|
22
|
+
});
|
|
23
|
+
/**
|
|
24
|
+
* Prompt Component (React Native) - Form wrapper for chat-like or AI prompt interfaces
|
|
25
|
+
* @param readOnly {boolean} Read-only state (disables editing)
|
|
26
|
+
* @param disabled {boolean} Disabled state
|
|
27
|
+
* @param children {ReactNode} Child components (Input, Textarea, toolbar buttons, etc.)
|
|
28
|
+
* @param testId {string} Test Id for Test Integration
|
|
29
|
+
* @param accessibilityLabel {string} Accessibility label
|
|
30
|
+
*/
|
|
31
|
+
var Prompt = React.forwardRef(function (_a, ref) {
|
|
32
|
+
var _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.readOnly, readOnly = _c === void 0 ? false : _c, others = __rest(_a, ["disabled", "readOnly"]);
|
|
33
|
+
return (React.createElement(PromptProvider, { isDisabled: disabled, isReadonly: readOnly },
|
|
34
|
+
React.createElement(PromptElm, __assign({ ref: ref, disabled: disabled }, others))));
|
|
35
|
+
});
|
|
36
|
+
Prompt.displayName = ComponentName.Prompt;
|
|
37
|
+
export default Prompt;
|
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJvbXB0Lm5hdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2NvbXBvbmVudHMvcHJvbXB0L1Byb21wdC5uYXRpdmUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsYUFBYSxFQUFFLFlBQVksRUFBRSxNQUFNLHdCQUF3QixDQUFBO0FBQ3BFLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQTtBQUN4RCxPQUFPLEtBQUssRUFBRSxFQUFFLFVBQVUsRUFBRSxNQUFNLE9BQU8sQ0FBQTtBQUN6QyxPQUFPLEVBQUUsVUFBVSxFQUFFLElBQUksRUFBRSxNQUFNLGN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QVUsQ0FBQztTQUNoRztLQUNGLENBQUMsQ0FBQTtJQUNGLE9BQU8sb0JBQUMsSUFBSSxhQUFDLEdBQUcsRUFBRSxHQUFHLEVBQUUsS0FBSyxFQUFFLE1BQU0sQ0FBQyxJQUFJLElBQU0sTUFBTSxFQUFJLENBQUE7QUFDM0QsQ0FBQyxDQUFDLENBQUE7QUFFRjs7Ozs7OztHQU9HO0FBQ0gsSUFBTSxNQUFNLEdBQUcsS0FBSyxDQUFDLFVBQVUsQ0FDN0IsVUFBQyxFQUFpRCxFQUFFLEdBQUc7SUFBcEQsSUFBQSxnQkFBZ0IsRUFBaEIsUUFBUSxtQkFBRyxLQUFLLEtBQUEsRUFBRSxnQkFBZ0IsRUFBaEIsUUFBUSxtQkFBRyxLQUFLLEtBQUEsRUFBSyxNQUFNLGNBQS9DLHdCQUFpRCxDQUFGO0lBQzlDLE9BQU8sQ0FDTCxvQkFBQyxjQUFjLElBQUMsVUFBVSxFQUFFLFFBQVEsRUFBRSxVQUFVLEVBQUUsUUFBUTtRQUN4RCxvQkFBQyxTQUFTLGFBQUMsR0FBRyxFQUFFLEdBQUcsRUFBRSxRQUFRLEVBQUUsUUFBUSxJQUFNLE1BQU0sRUFBSSxDQUN4QyxDQUNsQixDQUFBO0FBQ0gsQ0FBQyxDQUNGLENBQUE7QUFFRCxNQUFNLENBQUMsV0FBVyxHQUFHLGFBQWEsQ0FBQyxNQUFNLENBQUE7QUFDekMsZUFBZSxNQUFNLENBQUEifQ==
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Accessibility } from '../../objects/facets/Accessibility';
|
|
3
|
+
import { CommonProps } from '../../objects/facets/CommonProps';
|
|
4
|
+
import { Dev } from '../../objects/facets/Dev';
|
|
5
|
+
import { View } from 'react-native';
|
|
6
|
+
export interface PromptProps extends Accessibility, Dev, CommonProps {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export type PromptRef = HTMLFormElement;
|
|
12
|
+
export type PromptNativeRef = View;
|
|
13
|
+
export declare enum PromptStatus {
|
|
14
|
+
STREAMING_ON = "streaming-on",
|
|
15
|
+
STREAMING_OFF = "streaming-off"
|
|
16
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var PromptStatus;
|
|
2
|
+
(function (PromptStatus) {
|
|
3
|
+
PromptStatus["STREAMING_ON"] = "streaming-on";
|
|
4
|
+
PromptStatus["STREAMING_OFF"] = "streaming-off";
|
|
5
|
+
})(PromptStatus || (PromptStatus = {}));
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJvbXB0UHJvcHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9jb21wb25lbnRzL3Byb21wdC9Qcm9tcHRQcm9wcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFjQSxNQUFNLENBQU4sSUFBWSxZQUdYO0FBSEQsV0FBWSxZQUFZO0lBQ3RCLDZDQUE2QixDQUFBO0lBQzdCLCtDQUErQixDQUFBO0FBQ2pDLENBQUMsRUFIVyxZQUFZLEtBQVosWUFBWSxRQUd2QiJ9
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"children": {
|
|
3
|
+
"type": "react",
|
|
4
|
+
"values": [
|
|
5
|
+
"undefined",
|
|
6
|
+
"null",
|
|
7
|
+
"string",
|
|
8
|
+
"number",
|
|
9
|
+
"false",
|
|
10
|
+
"true",
|
|
11
|
+
"JSXElementConstructor<any>>",
|
|
12
|
+
"ReactNode>",
|
|
13
|
+
"ReactPortal"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"disabled": {
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"values": [
|
|
19
|
+
"undefined",
|
|
20
|
+
"false",
|
|
21
|
+
"true"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"readOnly": {
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"values": [
|
|
27
|
+
"undefined",
|
|
28
|
+
"false",
|
|
29
|
+
"true"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"accessibilityLabel": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"values": [
|
|
35
|
+
"undefined",
|
|
36
|
+
"string"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"testId": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"values": [
|
|
42
|
+
"undefined",
|
|
43
|
+
"string"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"id": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"values": [
|
|
49
|
+
"undefined",
|
|
50
|
+
"string"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"className": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"values": [
|
|
56
|
+
"undefined",
|
|
57
|
+
"string"
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React, { Dispatch, PropsWithChildren, SetStateAction } from 'react';
|
|
2
|
+
import { TextInput } from 'react-native';
|
|
3
|
+
export interface IPromptFile {
|
|
4
|
+
type: string;
|
|
5
|
+
name: string;
|
|
6
|
+
src: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IPromptContext {
|
|
9
|
+
text: string;
|
|
10
|
+
setText: Dispatch<SetStateAction<string>>;
|
|
11
|
+
files: number;
|
|
12
|
+
setFiles: Dispatch<SetStateAction<number>>;
|
|
13
|
+
isFocused: boolean;
|
|
14
|
+
setIsFocused: Dispatch<SetStateAction<boolean>>;
|
|
15
|
+
isSend: boolean;
|
|
16
|
+
setIsSend: Dispatch<SetStateAction<boolean>>;
|
|
17
|
+
isTyping: boolean;
|
|
18
|
+
setIsTyping: Dispatch<SetStateAction<boolean>>;
|
|
19
|
+
isSpeech: boolean;
|
|
20
|
+
setIsSpeech: Dispatch<SetStateAction<boolean>>;
|
|
21
|
+
isDisabled: boolean;
|
|
22
|
+
isReadonly: boolean;
|
|
23
|
+
textareaRef: React.RefObject<TextInput>;
|
|
24
|
+
}
|
|
25
|
+
interface Props {
|
|
26
|
+
isReadonly: boolean;
|
|
27
|
+
isDisabled: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare const PromptContext: React.Context<IPromptContext>;
|
|
30
|
+
export declare const PromptProvider: ({ children, isDisabled, isReadonly }: PropsWithChildren<Props>) => React.JSX.Element;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { __read } from "tslib";
|
|
2
|
+
import React, { createContext, useRef, useState } from 'react';
|
|
3
|
+
export var PromptContext = createContext({
|
|
4
|
+
text: '',
|
|
5
|
+
isTyping: false,
|
|
6
|
+
setIsTyping: function () { return undefined; },
|
|
7
|
+
setText: function () { return undefined; },
|
|
8
|
+
files: 0,
|
|
9
|
+
setFiles: function () { return undefined; },
|
|
10
|
+
isFocused: false,
|
|
11
|
+
setIsFocused: function () { return undefined; },
|
|
12
|
+
isSend: false,
|
|
13
|
+
setIsSend: function () { return undefined; },
|
|
14
|
+
isSpeech: false,
|
|
15
|
+
setIsSpeech: function () { return undefined; },
|
|
16
|
+
isDisabled: false,
|
|
17
|
+
isReadonly: false,
|
|
18
|
+
textareaRef: { current: null },
|
|
19
|
+
});
|
|
20
|
+
export var PromptProvider = function (_a) {
|
|
21
|
+
var children = _a.children, isDisabled = _a.isDisabled, isReadonly = _a.isReadonly;
|
|
22
|
+
var _b = __read(useState(''), 2), text = _b[0], setText = _b[1];
|
|
23
|
+
var _c = __read(useState(0), 2), files = _c[0], setFiles = _c[1];
|
|
24
|
+
var _d = __read(useState(false), 2), isFocused = _d[0], setIsFocused = _d[1];
|
|
25
|
+
var _e = __read(useState(false), 2), isSend = _e[0], setIsSend = _e[1];
|
|
26
|
+
var _f = __read(useState(false), 2), isTyping = _f[0], setIsTyping = _f[1];
|
|
27
|
+
var _g = __read(useState(false), 2), isSpeech = _g[0], setIsSpeech = _g[1];
|
|
28
|
+
var textareaRef = useRef(null);
|
|
29
|
+
return (React.createElement(PromptContext.Provider, { value: {
|
|
30
|
+
text: text,
|
|
31
|
+
setText: setText,
|
|
32
|
+
files: files,
|
|
33
|
+
setFiles: setFiles,
|
|
34
|
+
isFocused: isFocused,
|
|
35
|
+
setIsFocused: setIsFocused,
|
|
36
|
+
isSend: isSend,
|
|
37
|
+
setIsSend: setIsSend,
|
|
38
|
+
isTyping: isTyping,
|
|
39
|
+
setIsTyping: setIsTyping,
|
|
40
|
+
isSpeech: isSpeech,
|
|
41
|
+
setIsSpeech: setIsSpeech,
|
|
42
|
+
isReadonly: isReadonly,
|
|
43
|
+
isDisabled: isDisabled,
|
|
44
|
+
textareaRef: textareaRef,
|
|
45
|
+
} }, children));
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL3Byb21wdC9jb250ZXh0L2luZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxLQUFLLEVBQUUsRUFBRSxhQUFhLEVBQStDLE1BQU0sRUFBRSxRQUFRLEVBQUUsTUFBTSxPQUFPLENBQUE7QUFnQzNHLE1BQU0sQ0FBQyxJQUFNLGFBQWEsR0FBRyxhQUFhLENBQWlCO0lBQ3pELElBQUksRUFBRSxFQUFFO0lBQ1IsUUFBUSxFQUFFLEtBQUs7SUFDZixXQUFXLEVBQUUsY0FBTSxPQUFBLFNBQVMsRUFBVCxDQUFTO0lBQzVCLE9BQU8sRUFBRSxjQUFNLE9BQUEsU0FBUyxFQUFULENBQVM7SUFDeEIsS0FBSyxFQUFFLENBQUM7SUFDUix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EsRUFBakQsUUFBUSxRQUFBLEVBQUUsV0FBVyxRQUE0QixDQUFBO0lBQ2xELElBQUEsS0FBQSxPQUEwQixRQUFRLENBQVUsS0FBSyxDQUFDLElBQUEsRUFBakQsUUFBUSxRQUFBLEVBQUUsV0FBVyxRQUE0QixDQUFBO0lBQ3hELElBQU0sV0FBVyxHQUFHLE1BQU0sQ0FBWSxJQUFJLENBQUMsQ0FBQTtJQUUzQyxPQUFPLENBQ0wsb0JBQUMsYUFBYSxDQUFDLFFBQVEsSUFDckIsS0FBSyxFQUFFO1lBQ0wsSUFBSSxNQUFBO1lBQ0osT0FBTyxTQUFBO1lBQ1AsS0FBSyxPQUFBO1lBQ0wsUUFBUSxVQUFBO1lBQ1IsU0FBUyxXQUFBO1lBQ1QsWUFBWSxjQUFBO1lBQ1osTUFBTSxRQUFBO1lBQ04sU0FBUyxXQUFBO1lBQ1QsUUFBUSxVQUFBO1lBQ1IsV0FBVyxhQUFBO1lBQ1gsUUFBUSxVQUFBO1lBQ1IsV0FBVyxhQUFBO1lBQ1gsVUFBVSxZQUFBO1lBQ1YsVUFBVSxZQUFBO1lBQ1YsV0FBVyxhQUFBO1NBQ1osSUFFQSxRQUFRLENBQ2MsQ0FDMUIsQ0FBQTtBQUNILENBQUMsQ0FBQSJ9
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PromptFilesProps } from './PromptFilesProps';
|
|
3
|
+
/**
|
|
4
|
+
* PromptFiles component - Container for displaying attached files in a prompt
|
|
5
|
+
* @param children {ReactNode} PromptFile components to display
|
|
6
|
+
* @param className {string} Additional CSS classes (ONLY FOR WEB)
|
|
7
|
+
* @param testId {string} Test Id for Test Integration
|
|
8
|
+
*/
|
|
9
|
+
declare const PromptFiles: React.ForwardRefExoticComponent<PromptFilesProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export default PromptFiles;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Columns, GapSize } from '../../../components/columns';
|
|
2
|
+
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
3
|
+
import { useTrilogyContext } from '../../../context';
|
|
4
|
+
import { hashClass } from '../../../helpers/hashClassesHelpers';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import React, { useContext, useEffect, useMemo } from 'react';
|
|
7
|
+
import { PromptContext } from '../context';
|
|
8
|
+
/**
|
|
9
|
+
* PromptFiles component - Container for displaying attached files in a prompt
|
|
10
|
+
* @param children {ReactNode} PromptFile components to display
|
|
11
|
+
* @param className {string} Additional CSS classes (ONLY FOR WEB)
|
|
12
|
+
* @param testId {string} Test Id for Test Integration
|
|
13
|
+
*/
|
|
14
|
+
var PromptFiles = React.forwardRef(function (_a, ref) {
|
|
15
|
+
var children = _a.children;
|
|
16
|
+
var styled = useTrilogyContext().styled;
|
|
17
|
+
var setFiles = useContext(PromptContext).setFiles;
|
|
18
|
+
var classesFiles = hashClass(styled, clsx('prompt-files'));
|
|
19
|
+
var childrenLength = useMemo(function () { return React.Children.count(children); }, [children]);
|
|
20
|
+
useEffect(function () {
|
|
21
|
+
setFiles(childrenLength);
|
|
22
|
+
}, [childrenLength]);
|
|
23
|
+
if (!childrenLength)
|
|
24
|
+
return null;
|
|
25
|
+
return (React.createElement(Columns, { className: classesFiles, scrollable: true, ref: ref, gap: GapSize.FOUR }, children));
|
|
26
|
+
});
|
|
27
|
+
PromptFiles.displayName = ComponentName.PromptFiles;
|
|
28
|
+
export default PromptFiles;
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJvbXB0RmlsZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL3Byb21wdC9maWxlcy9Qcm9tcHRGaWxlcy50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTS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WM7UUFBRSxPQUFPLElBQUksQ0FBQTtJQUNoQyxPQUFPLENBQ0wsb0JBQUMsT0FBTyxJQUFDLFNBQVMsRUFBRSxZQUFZLEVBQUUsVUFBVSxRQUFDLEdBQUcsRUFBRSxHQUFHLEVBQUUsR0FBRyxFQUFFLE9BQU8sQ0FBQyxJQUFJLElBQ3JFLFFBQVEsQ0FDRCxDQUNYLENBQUE7QUFDSCxDQUFDLENBQUMsQ0FBQTtBQUVGLFdBQVcsQ0FBQyxXQUFXLEdBQUcsYUFBYSxDQUFDLFdBQVcsQ0FBQTtBQUNuRCxlQUFlLFdBQVcsQ0FBQSJ9
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ScrollView } from 'react-native';
|
|
3
|
+
import { PromptFilesProps } from './PromptFilesProps';
|
|
4
|
+
declare const PromptFiles: React.ForwardRefExoticComponent<PromptFilesProps & React.RefAttributes<ScrollView>>;
|
|
5
|
+
export default PromptFiles;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { GapSize } from '../../../components/columns';
|
|
2
|
+
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
3
|
+
import React, { useContext, useEffect, useMemo } from 'react';
|
|
4
|
+
import { ScrollView, StyleSheet, View } from 'react-native';
|
|
5
|
+
import { PromptContext } from '../context';
|
|
6
|
+
var PromptFiles = React.forwardRef(function (_a, ref) {
|
|
7
|
+
var children = _a.children;
|
|
8
|
+
var setFiles = useContext(PromptContext).setFiles;
|
|
9
|
+
var childrenLength = useMemo(function () { return React.Children.count(children); }, [children]);
|
|
10
|
+
var styles = StyleSheet.create({
|
|
11
|
+
scrollViewContainer: {
|
|
12
|
+
flexDirection: 'row',
|
|
13
|
+
gap: GapSize.EIGHT * 2,
|
|
14
|
+
paddingHorizontal: childrenLength ? GapSize.EIGHT * 2 : undefined,
|
|
15
|
+
paddingTop: childrenLength ? GapSize.EIGHT * 2 : undefined,
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
useEffect(function () {
|
|
19
|
+
setFiles(childrenLength);
|
|
20
|
+
}, [childrenLength]);
|
|
21
|
+
return (React.createElement(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, ref: ref },
|
|
22
|
+
React.createElement(View, { style: styles.scrollViewContainer }, children)));
|
|
23
|
+
});
|
|
24
|
+
PromptFiles.displayName = ComponentName.PromptFiles;
|
|
25
|
+
export default PromptFiles;
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJvbXB0RmlsZXMubmF0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vY29tcG9uZW50cy9wcm9tcHQvZmlsZXMvUHJvbXB0RmlsZXMubmF0aXZlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sc0JBQXNCLENBQUE7QUFDOUMsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGtDQUFrQyxDQUFBO0FBQ2hFLE9BQU8sS0FBSyxFQUFFLEVBQUUsVUFBVSxFQUFFLFNBQVMsRUFBRSxPQUFPLEVBQUUsTUFBTSxPQUFPLENBQUE7QUFDN0QsT0FBTyxFQUFFLFVBQVUsRUFBRSxVQUFVLEVBQUUsSUFBSSxFQUFFLE1BQU0sY0FBYyxDQUFBO0FBQzNELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxZQUFZLENBQUE7QUFHMUMsSUFBTSxXQUFXLEdBQUcsS0FBSyxDQUFDLFVBQVUsQ0FBeUMsVUFBQyxFQUFZLEVBQUUsR0FBRztRQUFmLFFBQVEsY0FBQTtJQUM5RSxJQUFBLFFBQVEsR0FBSyxVQUFVLENBQUMsYUFBYSxDQUFDLFNBQTlCLENBQThCO0lBQzlDLElBQU0sY0FBYyxHQUFHLE9BQU8sQ0FBQyxjQUFNLE9BQUEsS0FBSy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2
|
+
import { CommonProps } from '../../../objects/facets/CommonProps';
|
|
3
|
+
import { Dev } from '../../../objects/facets/Dev';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { ScrollView } from 'react-native';
|
|
6
|
+
export interface PromptFilesProps extends Accessibility, Dev, CommonProps {
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export type PromptFilesRef = HTMLDivElement;
|
|
10
|
+
export type PromptFilesNativeRef = ScrollView;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"children": {
|
|
3
|
+
"type": "react",
|
|
4
|
+
"values": [
|
|
5
|
+
"undefined",
|
|
6
|
+
"null",
|
|
7
|
+
"string",
|
|
8
|
+
"number",
|
|
9
|
+
"false",
|
|
10
|
+
"true",
|
|
11
|
+
"JSXElementConstructor<any>>",
|
|
12
|
+
"ReactNode>",
|
|
13
|
+
"ReactPortal"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"accessibilityLabel": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"values": [
|
|
19
|
+
"undefined",
|
|
20
|
+
"string"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"testId": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"values": [
|
|
26
|
+
"undefined",
|
|
27
|
+
"string"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"id": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"values": [
|
|
33
|
+
"undefined",
|
|
34
|
+
"string"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"className": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"values": [
|
|
40
|
+
"undefined",
|
|
41
|
+
"string"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PromptFileProps } from './PromptFileProps';
|
|
3
|
+
/**
|
|
4
|
+
* PromptFile component - Displays an individual file attachment with preview and delete option
|
|
5
|
+
* @param src {string} Source URL for the file (required for images)
|
|
6
|
+
* @param name {string} Display name of the file
|
|
7
|
+
* @param type {string} File type (e.g., 'image', 'pdf', 'doc')
|
|
8
|
+
* @param onDelete {Function} Callback function when delete button is clicked
|
|
9
|
+
* @param className {string} Additional CSS classes (ONLY FOR WEB)
|
|
10
|
+
* @param testId {string} Test Id for Test Integration
|
|
11
|
+
*/
|
|
12
|
+
declare const PromptFile: React.ForwardRefExoticComponent<PromptFileProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export default PromptFile;
|