@trilogy-ds/react 0.0.2-calendar → 0.0.2-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 +149 -51
- 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
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
import { IconName, IconNameValues } from '../../../components/icon';
|
|
3
3
|
import { CommonProps } from '../../../objects/facets/CommonProps';
|
|
4
|
+
import { Dev } from '../../../objects/facets/Dev';
|
|
4
5
|
/**
|
|
5
6
|
* Stepper Step Interface
|
|
6
7
|
*/
|
|
7
|
-
export interface StepProps extends CommonProps {
|
|
8
|
+
export interface StepProps extends CommonProps, Dev {
|
|
8
9
|
active?: boolean;
|
|
9
10
|
current?: boolean;
|
|
10
11
|
done?: boolean;
|
|
@@ -39,13 +39,17 @@ export default {
|
|
|
39
39
|
"tri-arrow-left",
|
|
40
40
|
"tri-arrow-right",
|
|
41
41
|
"tri-arrow-up",
|
|
42
|
+
"tri-arrow-high",
|
|
42
43
|
"tri-bell",
|
|
44
|
+
"tri-calendar",
|
|
43
45
|
"tri-check-circle",
|
|
44
46
|
"tri-check",
|
|
45
47
|
"tri-exclamation-circle",
|
|
46
48
|
"tri-eye-slash",
|
|
47
49
|
"tri-eye",
|
|
50
|
+
"tri-file-attached",
|
|
48
51
|
"tri-infos-circle",
|
|
52
|
+
"tri-micro",
|
|
49
53
|
"tri-search",
|
|
50
54
|
"tri-times",
|
|
51
55
|
"tri-trash",
|
|
@@ -57,18 +61,24 @@ export default {
|
|
|
57
61
|
"tri-picto-payment-mastercard",
|
|
58
62
|
"tri-picto-payment-paypal",
|
|
59
63
|
"tri-picto-payment-visa",
|
|
64
|
+
"tri-paperclip",
|
|
65
|
+
"tri-clock",
|
|
60
66
|
"tri-alert",
|
|
61
67
|
"tri-arrow-down",
|
|
62
68
|
"tri-arrow-left",
|
|
63
69
|
"tri-arrow-right",
|
|
64
70
|
"tri-arrow-up",
|
|
71
|
+
"tri-arrow-high",
|
|
65
72
|
"tri-bell",
|
|
73
|
+
"tri-calendar",
|
|
66
74
|
"tri-check-circle",
|
|
67
75
|
"tri-check",
|
|
68
76
|
"tri-exclamation-circle",
|
|
69
77
|
"tri-eye-slash",
|
|
70
78
|
"tri-eye",
|
|
79
|
+
"tri-file-attached",
|
|
71
80
|
"tri-infos-circle",
|
|
81
|
+
"tri-micro",
|
|
72
82
|
"tri-search",
|
|
73
83
|
"tri-times",
|
|
74
84
|
"tri-trash",
|
|
@@ -79,7 +89,9 @@ export default {
|
|
|
79
89
|
"tri-picto-payment-cb",
|
|
80
90
|
"tri-picto-payment-mastercard",
|
|
81
91
|
"tri-picto-payment-paypal",
|
|
82
|
-
"tri-picto-payment-visa"
|
|
92
|
+
"tri-picto-payment-visa",
|
|
93
|
+
"tri-paperclip",
|
|
94
|
+
"tri-clock"
|
|
83
95
|
]
|
|
84
96
|
},
|
|
85
97
|
"error": {
|
|
@@ -103,5 +115,12 @@ export default {
|
|
|
103
115
|
"undefined",
|
|
104
116
|
"string"
|
|
105
117
|
]
|
|
118
|
+
},
|
|
119
|
+
"testId": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"values": [
|
|
122
|
+
"undefined",
|
|
123
|
+
"string"
|
|
124
|
+
]
|
|
106
125
|
}
|
|
107
126
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StickerProps } from './StickerProps';
|
|
3
3
|
/**
|
|
4
|
-
* Sticker
|
|
5
|
-
* @param
|
|
6
|
-
* @param variant {
|
|
7
|
-
* @param small {boolean} Small
|
|
8
|
-
* @param
|
|
9
|
-
* @param
|
|
10
|
-
* @param
|
|
4
|
+
* Sticker Component
|
|
5
|
+
* @param label {string} Sticker label text
|
|
6
|
+
* @param variant {VariantState} Sticker color variant
|
|
7
|
+
* @param small {boolean} Small sticker
|
|
8
|
+
* @param outlined {boolean} Outlined sticker style
|
|
9
|
+
* @param iconName {IconName} Icon displayed in sticker
|
|
10
|
+
* @param accessibilityLabel {string} Accessibility label
|
|
11
|
+
* @param testId {string} Test Id for Test Integration
|
|
11
12
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
12
|
-
* @param className {string} Additional
|
|
13
|
-
* @param
|
|
13
|
+
* @param className {string} Additional CSS Classes
|
|
14
|
+
* @param id {string} Custom id attribute
|
|
14
15
|
*/
|
|
15
16
|
declare const Sticker: React.ForwardRefExoticComponent<StickerProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
16
17
|
export default Sticker;
|
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import { is } from '../../services/classify';
|
|
5
|
-
import { getVariantClassName } from '../../objects';
|
|
6
|
-
import { hashClass } from '../../helpers';
|
|
7
|
-
import { useTrilogyContext } from '../../context';
|
|
8
2
|
import { Icon, IconSize } from '../../components/icon';
|
|
3
|
+
import { useTrilogyContext } from '../../context';
|
|
4
|
+
import { hashClass } from '../../helpers';
|
|
5
|
+
import { getVariantClassName } from '../../objects';
|
|
6
|
+
import { is } from '../../services/classify';
|
|
7
|
+
import clsx from 'clsx';
|
|
8
|
+
import React from 'react';
|
|
9
9
|
import { ComponentName } from '../enumsComponentsName';
|
|
10
10
|
/**
|
|
11
|
-
* Sticker
|
|
12
|
-
* @param
|
|
13
|
-
* @param variant {
|
|
14
|
-
* @param small {boolean} Small
|
|
15
|
-
* @param
|
|
16
|
-
* @param
|
|
17
|
-
* @param
|
|
11
|
+
* Sticker Component
|
|
12
|
+
* @param label {string} Sticker label text
|
|
13
|
+
* @param variant {VariantState} Sticker color variant
|
|
14
|
+
* @param small {boolean} Small sticker
|
|
15
|
+
* @param outlined {boolean} Outlined sticker style
|
|
16
|
+
* @param iconName {IconName} Icon displayed in sticker
|
|
17
|
+
* @param accessibilityLabel {string} Accessibility label
|
|
18
|
+
* @param testId {string} Test Id for Test Integration
|
|
18
19
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
19
|
-
* @param className {string} Additional
|
|
20
|
-
* @param
|
|
20
|
+
* @param className {string} Additional CSS Classes
|
|
21
|
+
* @param id {string} Custom id attribute
|
|
21
22
|
*/
|
|
22
23
|
var Sticker = React.forwardRef(function (_a, ref) {
|
|
23
|
-
var className = _a.className, id = _a.id, variant = _a.variant, small = _a.small, label = _a.label, outlined = _a.outlined, iconName = _a.iconName, accessibilityLabel = _a.accessibilityLabel, others = __rest(_a, ["className", "id", "variant", "small", "label", "outlined", "iconName", "accessibilityLabel"]);
|
|
24
|
+
var className = _a.className, id = _a.id, variant = _a.variant, small = _a.small, label = _a.label, outlined = _a.outlined, iconName = _a.iconName, accessibilityLabel = _a.accessibilityLabel, testId = _a.testId, others = __rest(_a, ["className", "id", "variant", "small", "label", "outlined", "iconName", "accessibilityLabel", "testId"]);
|
|
24
25
|
var styled = useTrilogyContext().styled;
|
|
25
26
|
var classes = hashClass(styled, clsx('sticker', variant && is(getVariantClassName(variant)), small && is('small'), className, outlined && is('outlined'), is('vcentered')));
|
|
26
|
-
return (React.createElement("p", __assign({ ref: ref, id: id, className: classes, "aria-label": accessibilityLabel }, others),
|
|
27
|
+
return (React.createElement("p", __assign({ ref: ref, id: id, className: classes, "aria-label": accessibilityLabel, "data-testid": testId }, others),
|
|
27
28
|
iconName && React.createElement(Icon, { size: small ? IconSize.SMALLER : IconSize.SMALL, name: iconName }),
|
|
28
29
|
label));
|
|
29
30
|
});
|
|
30
31
|
Sticker.displayName = ComponentName.Sticker;
|
|
31
32
|
export default Sticker;
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RpY2tlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2NvbXBvbmVudHMvc3RpY2tlci9TdGlja2VyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLElBQUksRUFBRSxRQUFRLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQTtBQUNsRCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxXQUFXLENBQUE7QUFDN0MsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLFdBQVcsQ0FBQTtBQUNyQyxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxXQUFXLENBQUE7QUFDL0MsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLHFCQUFxQixDQUFBO0FBQ3hDLE9BQU8sSUFBSSxNQUFNLE1BQU0sQ0FBQTtBQUN2QixPQUFPLEt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QUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsS0FBSyxFQUFFLElBQUksRUFBRSxRQUFRLEdBQUk7UUFDckYsS0FBSyxDQUNKLENBQ0wsQ0FBQTtBQUNILENBQUMsQ0FDRixDQUFBO0FBRUQsT0FBTyxDQUFDLFdBQVcsR0FBRyxhQUFhLENBQUMsT0FBTyxDQUFBO0FBQzNDLGVBQWUsT0FBTyxDQUFBIn0=
|
|
@@ -2,14 +2,13 @@ import * as React from 'react';
|
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
import { StickerProps } from './StickerProps';
|
|
4
4
|
/**
|
|
5
|
-
* Sticker
|
|
6
|
-
* @param children {ReactNode} Sticker child
|
|
5
|
+
* Sticker Component
|
|
7
6
|
* @param variant {StatusState} Sticker variant : primary only
|
|
8
7
|
* @param small {boolean} Small Sticker
|
|
9
|
-
* @param hat {boolean} Hat Sticker ( for box )
|
|
10
8
|
* @param outlined {boolean} Outlined sticker
|
|
11
9
|
* @param iconName {IconName} Icon
|
|
12
|
-
* @param
|
|
10
|
+
* @param label {string} Sticker label text
|
|
11
|
+
* @param accessibilityLabel {string} Accessibility label
|
|
13
12
|
*/
|
|
14
13
|
declare const Sticker: React.ForwardRefExoticComponent<StickerProps & React.RefAttributes<View>>;
|
|
15
14
|
export default Sticker;
|
|
@@ -7,14 +7,13 @@ import { getColorStyle, getVariantStyle, TrilogyColor, TypographyBold } from '..
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import { StyleSheet, View } from 'react-native';
|
|
9
9
|
/**
|
|
10
|
-
* Sticker
|
|
11
|
-
* @param children {ReactNode} Sticker child
|
|
10
|
+
* Sticker Component
|
|
12
11
|
* @param variant {StatusState} Sticker variant : primary only
|
|
13
12
|
* @param small {boolean} Small Sticker
|
|
14
|
-
* @param hat {boolean} Hat Sticker ( for box )
|
|
15
13
|
* @param outlined {boolean} Outlined sticker
|
|
16
14
|
* @param iconName {IconName} Icon
|
|
17
|
-
* @param
|
|
15
|
+
* @param label {string} Sticker label text
|
|
16
|
+
* @param accessibilityLabel {string} Accessibility label
|
|
18
17
|
*/
|
|
19
18
|
var Sticker = React.forwardRef(function (_a, ref) {
|
|
20
19
|
var variant = _a.variant, small = _a.small, outlined = _a.outlined, label = _a.label, iconName = _a.iconName, accessibilityLabel = _a.accessibilityLabel, others = __rest(_a, ["variant", "small", "outlined", "label", "iconName", "accessibilityLabel"]);
|
|
@@ -59,4 +58,4 @@ var Sticker = React.forwardRef(function (_a, ref) {
|
|
|
59
58
|
});
|
|
60
59
|
Sticker.displayName = ComponentName.Sticker;
|
|
61
60
|
export default Sticker;
|
|
62
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
61
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RpY2tlci5uYXRpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9jb21wb25lbnRzL3N0aWNrZXIvU3RpY2tlci5uYXRpdmUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0NBQWtDLENBQUE7QUFDaEUsT0FBTyxFQUFFLElBQUksRUFBRSxRQUFRLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQTtBQUNsRCxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sbUJBQW1CLENBQUE7QUFDeEMsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLHlCQUF5QixDQUFBO0FBQy9DLE9BQU8sRUFBRSxhQUFhLEVBQUUsZUFBZSxFQUFFLFlBQVksRUFBRSxjQUFjLEVBQUUsTUFBTSxXQUFXLENBQUE7QUFDeEYsT0FBTyxLQUFLLEtBQUssTUFBTSxPQUFPLENBQUE7QUFDOUIsT0FBTyxFQUFFLFVBQVUsRUFBRSxJQUFJLEVBQUUsTUFBTSxjQUFjLENBQUE7QUFHL0M7Ozs7Ozs7O0dBUUc7Q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Props } from '../../objects/facets';
|
|
2
|
+
import { Accessibility, Dev, VariantProps } from '../../objects/facets';
|
|
3
3
|
import { CommonProps } from '../../objects/facets/CommonProps';
|
|
4
4
|
import { IconName, IconNameValues } from '../../components/icon';
|
|
5
5
|
import { View } from 'react-native';
|
|
6
|
-
export interface StickerProps extends Small, VariantProps, CommonProps, Accessibility {
|
|
6
|
+
export interface StickerProps extends Small, VariantProps, CommonProps, Accessibility, Dev {
|
|
7
7
|
label: string;
|
|
8
8
|
iconName?: IconName | IconNameValues;
|
|
9
9
|
outlined?: boolean;
|
|
@@ -12,13 +12,17 @@ export default {
|
|
|
12
12
|
"tri-arrow-left",
|
|
13
13
|
"tri-arrow-right",
|
|
14
14
|
"tri-arrow-up",
|
|
15
|
+
"tri-arrow-high",
|
|
15
16
|
"tri-bell",
|
|
17
|
+
"tri-calendar",
|
|
16
18
|
"tri-check-circle",
|
|
17
19
|
"tri-check",
|
|
18
20
|
"tri-exclamation-circle",
|
|
19
21
|
"tri-eye-slash",
|
|
20
22
|
"tri-eye",
|
|
23
|
+
"tri-file-attached",
|
|
21
24
|
"tri-infos-circle",
|
|
25
|
+
"tri-micro",
|
|
22
26
|
"tri-search",
|
|
23
27
|
"tri-times",
|
|
24
28
|
"tri-trash",
|
|
@@ -30,18 +34,24 @@ export default {
|
|
|
30
34
|
"tri-picto-payment-mastercard",
|
|
31
35
|
"tri-picto-payment-paypal",
|
|
32
36
|
"tri-picto-payment-visa",
|
|
37
|
+
"tri-paperclip",
|
|
38
|
+
"tri-clock",
|
|
33
39
|
"tri-alert",
|
|
34
40
|
"tri-arrow-down",
|
|
35
41
|
"tri-arrow-left",
|
|
36
42
|
"tri-arrow-right",
|
|
37
43
|
"tri-arrow-up",
|
|
44
|
+
"tri-arrow-high",
|
|
38
45
|
"tri-bell",
|
|
46
|
+
"tri-calendar",
|
|
39
47
|
"tri-check-circle",
|
|
40
48
|
"tri-check",
|
|
41
49
|
"tri-exclamation-circle",
|
|
42
50
|
"tri-eye-slash",
|
|
43
51
|
"tri-eye",
|
|
52
|
+
"tri-file-attached",
|
|
44
53
|
"tri-infos-circle",
|
|
54
|
+
"tri-micro",
|
|
45
55
|
"tri-search",
|
|
46
56
|
"tri-times",
|
|
47
57
|
"tri-trash",
|
|
@@ -52,7 +62,9 @@ export default {
|
|
|
52
62
|
"tri-picto-payment-cb",
|
|
53
63
|
"tri-picto-payment-mastercard",
|
|
54
64
|
"tri-picto-payment-paypal",
|
|
55
|
-
"tri-picto-payment-visa"
|
|
65
|
+
"tri-picto-payment-visa",
|
|
66
|
+
"tri-paperclip",
|
|
67
|
+
"tri-clock"
|
|
56
68
|
]
|
|
57
69
|
},
|
|
58
70
|
"outlined": {
|
|
@@ -75,9 +87,9 @@ export default {
|
|
|
75
87
|
"type": "enum",
|
|
76
88
|
"values": [
|
|
77
89
|
"undefined",
|
|
78
|
-
"INFO",
|
|
79
90
|
"MAIN",
|
|
80
91
|
"ACCENT",
|
|
92
|
+
"INFO",
|
|
81
93
|
"MAIN",
|
|
82
94
|
"ACCENT",
|
|
83
95
|
"INFO"
|
|
@@ -103,5 +115,12 @@ export default {
|
|
|
103
115
|
"undefined",
|
|
104
116
|
"string"
|
|
105
117
|
]
|
|
118
|
+
},
|
|
119
|
+
"testId": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"values": [
|
|
122
|
+
"undefined",
|
|
123
|
+
"string"
|
|
124
|
+
]
|
|
106
125
|
}
|
|
107
126
|
};
|
|
@@ -2,19 +2,21 @@ import React from 'react';
|
|
|
2
2
|
import { SwitchProps } from './SwitchProps';
|
|
3
3
|
/**
|
|
4
4
|
* Switch Component
|
|
5
|
-
* @param id {string} Is auto generate by default
|
|
6
5
|
* @param checked {boolean} Checked switch
|
|
7
6
|
* @param onChange {Function} onChange event
|
|
8
7
|
* @param status {StatusState} Status Variant (INFO|SUCCESS|WARNING|ERROR)
|
|
9
8
|
* @param disabled {boolean} Switch disabled
|
|
10
|
-
* @param readonly {boolean} Switch
|
|
9
|
+
* @param readonly {boolean} Switch read-only
|
|
11
10
|
* @param name {string} Switch name
|
|
12
|
-
*
|
|
11
|
+
* @param id {string} Switch id (auto-generated by default)
|
|
12
|
+
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
13
13
|
* @param className {string} Additional CSS Classes
|
|
14
|
-
* @param onClick {Function} onClick event
|
|
15
14
|
* @param label {string} Switch label
|
|
16
15
|
* @param value {string} Switch value
|
|
17
|
-
* @param
|
|
16
|
+
* @param onClick {Function} onClick event
|
|
17
|
+
* @param reversed {boolean} Reverse switch and label position
|
|
18
|
+
* @param fullWidth {boolean} Full-width switch
|
|
19
|
+
* @param testId {string} Test Id for Test Integration
|
|
18
20
|
*/
|
|
19
21
|
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
22
|
export default Switch;
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
import { __assign, __read, __rest } from "tslib";
|
|
2
|
-
import React, { useEffect, useState } from 'react';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import { is } from '../../services/classify';
|
|
5
|
-
import { getStatusClassName } from '../../objects';
|
|
6
|
-
import { hashClass } from '../../helpers';
|
|
7
2
|
import { useTrilogyContext } from '../../context';
|
|
3
|
+
import { hashClass } from '../../helpers';
|
|
4
|
+
import { getStatusClassName } from '../../objects';
|
|
5
|
+
import { is } from '../../services/classify';
|
|
6
|
+
import clsx from 'clsx';
|
|
7
|
+
import React, { useEffect, useState } from 'react';
|
|
8
8
|
import { ComponentName } from '../enumsComponentsName';
|
|
9
9
|
/**
|
|
10
10
|
* Switch Component
|
|
11
|
-
* @param id {string} Is auto generate by default
|
|
12
11
|
* @param checked {boolean} Checked switch
|
|
13
12
|
* @param onChange {Function} onChange event
|
|
14
13
|
* @param status {StatusState} Status Variant (INFO|SUCCESS|WARNING|ERROR)
|
|
15
14
|
* @param disabled {boolean} Switch disabled
|
|
16
|
-
* @param readonly {boolean} Switch
|
|
15
|
+
* @param readonly {boolean} Switch read-only
|
|
17
16
|
* @param name {string} Switch name
|
|
18
|
-
*
|
|
17
|
+
* @param id {string} Switch id (auto-generated by default)
|
|
18
|
+
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
19
19
|
* @param className {string} Additional CSS Classes
|
|
20
|
-
* @param onClick {Function} onClick event
|
|
21
20
|
* @param label {string} Switch label
|
|
22
21
|
* @param value {string} Switch value
|
|
23
|
-
* @param
|
|
22
|
+
* @param onClick {Function} onClick event
|
|
23
|
+
* @param reversed {boolean} Reverse switch and label position
|
|
24
|
+
* @param fullWidth {boolean} Full-width switch
|
|
25
|
+
* @param testId {string} Test Id for Test Integration
|
|
24
26
|
*/
|
|
25
27
|
var Switch = React.forwardRef(function (_a, ref) {
|
|
26
|
-
var className = _a.className, _b = _a.id, id = _b === void 0 ? React.useId() : _b, label = _a.label, value = _a.value, checked = _a.checked, onChange = _a.onChange, onClick = _a.onClick, status = _a.status, disabled = _a.disabled, readonly = _a.readonly, name = _a.name, reversed = _a.reversed, fullWidth = _a.fullWidth, others = __rest(_a, ["className", "id", "label", "value", "checked", "onChange", "onClick", "status", "disabled", "readonly", "name", "reversed", "fullWidth"]);
|
|
28
|
+
var className = _a.className, _b = _a.id, id = _b === void 0 ? React.useId() : _b, label = _a.label, value = _a.value, checked = _a.checked, onChange = _a.onChange, onClick = _a.onClick, status = _a.status, disabled = _a.disabled, readonly = _a.readonly, name = _a.name, reversed = _a.reversed, fullWidth = _a.fullWidth, testId = _a.testId, others = __rest(_a, ["className", "id", "label", "value", "checked", "onChange", "onClick", "status", "disabled", "readonly", "name", "reversed", "fullWidth", "testId"]);
|
|
27
29
|
var _c = __read(useState(checked || false), 2), _checked = _c[0], setChecked = _c[1];
|
|
28
30
|
var styled = useTrilogyContext().styled;
|
|
29
31
|
React.useEffect(function () {
|
|
@@ -35,7 +37,7 @@ var Switch = React.forwardRef(function (_a, ref) {
|
|
|
35
37
|
}
|
|
36
38
|
}, [checked, readonly]);
|
|
37
39
|
return (React.createElement("div", { ref: ref, className: hashClass(styled, clsx('switch', reversed && is('reversed'), fullWidth && is('fullwidth'), className)) },
|
|
38
|
-
React.createElement("input", __assign({ onChange: function (e) {
|
|
40
|
+
React.createElement("input", __assign({ "data-testid": testId, onChange: function (e) {
|
|
39
41
|
if (!readonly) {
|
|
40
42
|
setChecked(!_checked);
|
|
41
43
|
}
|
|
@@ -62,4 +64,4 @@ var Switch = React.forwardRef(function (_a, ref) {
|
|
|
62
64
|
});
|
|
63
65
|
Switch.displayName = ComponentName.Switch;
|
|
64
66
|
export default Switch;
|
|
65
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
67
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3dpdGNoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vY29tcG9uZW50cy9zd2l0Y2gvU3dpdGNoLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sV0FBVyxDQUFBO0FBQzdDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxXQUFXLENBQUE7QUFDckMsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sV0FBVyxDQUFBO0FBQzlDLE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQTtBQUN4QyxPQUFPLElBQUksTUFBTSxNQUFNLENBQUE7QUFDdkIsT0FBTyxLQUFLLEVBQUUsRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFFLE1BQU0sT0FBTyxDQUFBO0FBQ2xELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQTtBQUd0RDs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FpQkc7QUFDSCxJQUFNLE1BQU0sR0FBRyxLQUFLLENBQUMsVUFBVSxDQUM3QixVQUNFLEVBZ0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UFDZixRQUFRLEVBQUUsUUFBUSxFQUNsQixTQUFTLEVBQUUsU0FBUyxDQUFDLE1BQU0sRUFBRSxJQUFJLENBQUMsTUFBTSxJQUFJLEVBQUUsQ0FBQyxrQkFBa0IsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFDeEUsTUFBTSxFQUNWO1FBQ0YsK0JBQU8sT0FBTyxFQUFFLGlCQUFVLEVBQUUsQ0FBRSxJQUFHLEtBQUssQ0FBUyxDQUMzQyxDQUNQLENBQUE7QUFDSCxDQUFDLENBQ0YsQ0FBQTtBQUVELE1BQU0sQ0FBQyxXQUFXLEdBQUcsYUFBYSxDQUFDLE1BQU0sQ0FBQTtBQUN6QyxlQUFlLE1BQU0sQ0FBQSJ9
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Switch as SwitchNative } from 'react-native';
|
|
3
2
|
import { SwitchProps } from './SwitchProps';
|
|
4
3
|
/**
|
|
5
4
|
* Switch Component
|
|
6
|
-
* @param id {string} Is auto generate by default
|
|
7
5
|
* @param checked {boolean} Checked switch
|
|
8
6
|
* @param onChange {Function} onChange event
|
|
9
7
|
* @param status {StatusState} Status Variant (INFO|SUCCESS|WARNING|ERROR)
|
|
10
8
|
* @param disabled {boolean} Switch disabled
|
|
11
|
-
* @param readonly {boolean} Switch
|
|
9
|
+
* @param readonly {boolean} Switch read-only
|
|
12
10
|
* @param name {string} Switch name
|
|
11
|
+
* @param id {string} Switch id (auto-generated by default)
|
|
13
12
|
*/
|
|
14
|
-
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<
|
|
13
|
+
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<import("react-native").Switch>>;
|
|
15
14
|
export default Switch;
|
|
@@ -1,45 +1,86 @@
|
|
|
1
1
|
import { __read } from "tslib";
|
|
2
2
|
import { ComponentName } from '../../components/enumsComponentsName';
|
|
3
|
-
import { isIOS } from '../../helpers/device.native';
|
|
4
3
|
import { getStatusStyle } from '../../objects';
|
|
5
4
|
import { getColorStyle, TrilogyColor } from '../../objects/facets/Color';
|
|
6
5
|
import React, { useEffect, useState } from 'react';
|
|
7
|
-
import {
|
|
6
|
+
import { Pressable, StyleSheet } from 'react-native';
|
|
7
|
+
import Animated, { interpolate, interpolateColor, useAnimatedStyle, useSharedValue, withTiming, } from 'react-native-reanimated';
|
|
8
|
+
var TRACK_WIDTH = 44;
|
|
9
|
+
var TRACK_HEIGHT = 22;
|
|
8
10
|
/**
|
|
9
11
|
* Switch Component
|
|
10
|
-
* @param id {string} Is auto generate by default
|
|
11
12
|
* @param checked {boolean} Checked switch
|
|
12
13
|
* @param onChange {Function} onChange event
|
|
13
14
|
* @param status {StatusState} Status Variant (INFO|SUCCESS|WARNING|ERROR)
|
|
14
15
|
* @param disabled {boolean} Switch disabled
|
|
15
|
-
* @param readonly {boolean} Switch
|
|
16
|
+
* @param readonly {boolean} Switch read-only
|
|
16
17
|
* @param name {string} Switch name
|
|
18
|
+
* @param id {string} Switch id (auto-generated by default)
|
|
17
19
|
*/
|
|
18
20
|
var Switch = React.forwardRef(function (_a, ref) {
|
|
19
21
|
var _b = _a.id, id = _b === void 0 ? React.useId() : _b, checked = _a.checked, onChange = _a.onChange, status = _a.status, disabled = _a.disabled, readonly = _a.readonly, name = _a.name;
|
|
22
|
+
var height = useSharedValue(TRACK_HEIGHT);
|
|
23
|
+
var width = useSharedValue(TRACK_WIDTH);
|
|
24
|
+
var value = useSharedValue(checked ? 1 : 0);
|
|
20
25
|
var _c = __read(useState(checked || false), 2), _checked = _c[0], setChecked = _c[1];
|
|
21
|
-
useEffect(function () {
|
|
22
|
-
if (!readonly) {
|
|
23
|
-
setChecked(checked || false);
|
|
24
|
-
}
|
|
25
|
-
}, [checked, readonly]);
|
|
26
26
|
var backgroundColorOff = getColorStyle(TrilogyColor.NEUTRAL);
|
|
27
27
|
var backgroundColorDisabled = getColorStyle(TrilogyColor.DISABLED);
|
|
28
28
|
var thumbColor = getColorStyle(TrilogyColor.BACKGROUND);
|
|
29
|
+
var statusColor = getStatusStyle(status).color;
|
|
30
|
+
var trackColorOff = disabled ? backgroundColorDisabled : backgroundColorOff;
|
|
31
|
+
var trackColorOn = disabled ? backgroundColorDisabled : statusColor;
|
|
32
|
+
var trackAnimatedStyle = useAnimatedStyle(function () {
|
|
33
|
+
var color = interpolateColor(value.value, [0, 1], [trackColorOff, trackColorOn]);
|
|
34
|
+
var colorValue = withTiming(color, { duration: 200 });
|
|
35
|
+
return {
|
|
36
|
+
backgroundColor: colorValue,
|
|
37
|
+
borderRadius: height.value / 2,
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
var thumbAnimatedStyle = useAnimatedStyle(function () {
|
|
41
|
+
var moveValue = interpolate(Number(value.value), [0, 1], [0, width.value - height.value]);
|
|
42
|
+
var translateValue = withTiming(moveValue, { duration: 200 });
|
|
43
|
+
return {
|
|
44
|
+
transform: [{ translateX: translateValue }],
|
|
45
|
+
borderRadius: height.value / 2,
|
|
46
|
+
};
|
|
47
|
+
});
|
|
29
48
|
var styles = StyleSheet.create({
|
|
30
|
-
|
|
31
|
-
|
|
49
|
+
track: {
|
|
50
|
+
alignItems: 'flex-start',
|
|
51
|
+
width: TRACK_WIDTH,
|
|
52
|
+
height: TRACK_HEIGHT,
|
|
53
|
+
padding: 2,
|
|
54
|
+
},
|
|
55
|
+
thumb: {
|
|
56
|
+
height: '100%',
|
|
57
|
+
aspectRatio: 1,
|
|
58
|
+
backgroundColor: thumbColor,
|
|
59
|
+
},
|
|
60
|
+
pressable: {
|
|
61
|
+
alignSelf: 'flex-start',
|
|
32
62
|
},
|
|
33
63
|
});
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
64
|
+
useEffect(function () {
|
|
65
|
+
if (!readonly) {
|
|
66
|
+
setChecked(checked || false);
|
|
67
|
+
value.value = checked ? 1 : 0;
|
|
68
|
+
}
|
|
69
|
+
}, [checked, readonly]);
|
|
70
|
+
return (React.createElement(Pressable, { style: styles.pressable, accessibilityRole: 'switch', ref: ref, testID: 'switch-id', nativeID: name ? "".concat(name, "_").concat(id) : id, disabled: disabled, onPress: function () {
|
|
71
|
+
if (!readonly && onChange) {
|
|
72
|
+
var newValue = !_checked;
|
|
73
|
+
setChecked(newValue);
|
|
74
|
+
value.value = newValue ? 1 : 0;
|
|
75
|
+
onChange({ switchState: newValue, switchName: name || '' });
|
|
40
76
|
}
|
|
41
|
-
}
|
|
77
|
+
} },
|
|
78
|
+
React.createElement(Animated.View, { style: [styles.track, trackAnimatedStyle], onLayout: function (e) {
|
|
79
|
+
height.value = e.nativeEvent.layout.height;
|
|
80
|
+
width.value = e.nativeEvent.layout.width;
|
|
81
|
+
} },
|
|
82
|
+
React.createElement(Animated.View, { style: [styles.thumb, thumbAnimatedStyle] }))));
|
|
42
83
|
});
|
|
43
84
|
Switch.displayName = ComponentName.Switch;
|
|
44
85
|
export default Switch;
|
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
86
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3dpdGNoLm5hdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2NvbXBvbmVudHMvc3dpdGNoL1N3aXRjaC5uYXRpdmUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0NBQWtDLENBQUE7QUFDaEUsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLFdBQVcsQ0FBQTtBQUMxQyxPQUFPLEVBQUUsYUFBYSxFQUFFLFlBQVksRUFBRSxNQUFNLHdCQUF3QixDQUFBO0FBQ3BFLE9BQU8sS0FBSyxFQUFFLEVBQUUsU0FBUyxFQUFFLFFBQVEsRUFBRSxNQUFNLE9BQU8sQ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1lBRUQsb0JBQUMsUUFBUSxDQUFDLElBQUksSUFBQyxLQUFLLEVBQUUsQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUFFLGtCQUFrQixDQUFDLEdBQUksQ0FDOUMsQ0FDTixDQUNiLENBQUE7QUFDSCxDQUFDLENBQ0YsQ0FBQTtBQUVELE1BQU0sQ0FBQyxXQUFXLEdBQUcsYUFBYSxDQUFDLE1BQU0sQ0FBQTtBQUV6QyxlQUFlLE1BQU0sQ0FBQSJ9
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { StatusProps } from '../../objects/facets/Status';
|
|
2
2
|
import { CommonProps } from '../../objects/facets/CommonProps';
|
|
3
3
|
import { Switch } from 'react-native';
|
|
4
|
+
import { Dev } from '../../objects/facets/Dev';
|
|
4
5
|
export interface SwitchChangeEvent {
|
|
5
6
|
switchState: boolean;
|
|
6
7
|
switchName: string;
|
|
7
8
|
}
|
|
8
9
|
type SwitchEventHandler = (event: SwitchChangeEvent) => void;
|
|
9
|
-
export interface SwitchProps extends StatusProps, CommonProps {
|
|
10
|
+
export interface SwitchProps extends StatusProps, CommonProps, Dev {
|
|
10
11
|
checked?: boolean;
|
|
11
12
|
onChange?: SwitchEventHandler;
|
|
12
13
|
onClick?: SwitchEventHandler;
|
|
@@ -2,14 +2,15 @@ import * as React from 'react';
|
|
|
2
2
|
import { TableProps } from './TableProps';
|
|
3
3
|
/**
|
|
4
4
|
* Table Component
|
|
5
|
-
* @param
|
|
6
|
-
* @param
|
|
5
|
+
* @param children {ReactNode} Table content (rows, columns)
|
|
6
|
+
* @param border {TableBorderEnum} Border style (ALL|INNER|LINES, default: LINES)
|
|
7
|
+
* @param striped {boolean} Striped rows
|
|
8
|
+
* @param compact {boolean} Compact table
|
|
9
|
+
* @param testId {string} Test Id for Test Integration
|
|
7
10
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
8
|
-
* @param fullwidth {boolean} table fullwidth
|
|
9
11
|
* @param className {string} Additional CSS Classes
|
|
12
|
+
* @param id {string} Custom id attribute
|
|
10
13
|
* @param fullwidth {boolean} Fullwidth table
|
|
11
|
-
* @param comparative {boolean} If specific design add this
|
|
12
|
-
* @param striped {boolean} striped lines
|
|
13
14
|
*/
|
|
14
15
|
declare const Table: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLTableElement>>;
|
|
15
16
|
export default Table;
|