@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
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"horizontal": {
|
|
3
|
+
"type": "boolean",
|
|
4
|
+
"values": [
|
|
5
|
+
"undefined",
|
|
6
|
+
"false",
|
|
7
|
+
"true"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"icon": {
|
|
11
|
+
"type": "enum",
|
|
12
|
+
"values": [
|
|
13
|
+
"undefined",
|
|
14
|
+
"tri-alert",
|
|
15
|
+
"tri-arrow-down",
|
|
16
|
+
"tri-arrow-left",
|
|
17
|
+
"tri-arrow-right",
|
|
18
|
+
"tri-arrow-up",
|
|
19
|
+
"tri-arrow-high",
|
|
20
|
+
"tri-bell",
|
|
21
|
+
"tri-calendar",
|
|
22
|
+
"tri-check-circle",
|
|
23
|
+
"tri-check",
|
|
24
|
+
"tri-exclamation-circle",
|
|
25
|
+
"tri-eye-slash",
|
|
26
|
+
"tri-eye",
|
|
27
|
+
"tri-file-attached",
|
|
28
|
+
"tri-infos-circle",
|
|
29
|
+
"tri-micro",
|
|
30
|
+
"tri-search",
|
|
31
|
+
"tri-times",
|
|
32
|
+
"tri-trash",
|
|
33
|
+
"tri-picto-faciliti",
|
|
34
|
+
"tri-picto-handicapzero",
|
|
35
|
+
"tri-picto-la-fibre",
|
|
36
|
+
"tri-picto-payment-americanexpress",
|
|
37
|
+
"tri-picto-payment-cb",
|
|
38
|
+
"tri-picto-payment-mastercard",
|
|
39
|
+
"tri-picto-payment-paypal",
|
|
40
|
+
"tri-picto-payment-visa",
|
|
41
|
+
"tri-paperclip",
|
|
42
|
+
"tri-clock",
|
|
43
|
+
"tri-alert",
|
|
44
|
+
"tri-arrow-down",
|
|
45
|
+
"tri-arrow-left",
|
|
46
|
+
"tri-arrow-right",
|
|
47
|
+
"tri-arrow-up",
|
|
48
|
+
"tri-arrow-high",
|
|
49
|
+
"tri-bell",
|
|
50
|
+
"tri-calendar",
|
|
51
|
+
"tri-check-circle",
|
|
52
|
+
"tri-check",
|
|
53
|
+
"tri-exclamation-circle",
|
|
54
|
+
"tri-eye-slash",
|
|
55
|
+
"tri-eye",
|
|
56
|
+
"tri-file-attached",
|
|
57
|
+
"tri-infos-circle",
|
|
58
|
+
"tri-micro",
|
|
59
|
+
"tri-search",
|
|
60
|
+
"tri-times",
|
|
61
|
+
"tri-trash",
|
|
62
|
+
"tri-picto-faciliti",
|
|
63
|
+
"tri-picto-handicapzero",
|
|
64
|
+
"tri-picto-la-fibre",
|
|
65
|
+
"tri-picto-payment-americanexpress",
|
|
66
|
+
"tri-picto-payment-cb",
|
|
67
|
+
"tri-picto-payment-mastercard",
|
|
68
|
+
"tri-picto-payment-paypal",
|
|
69
|
+
"tri-picto-payment-visa",
|
|
70
|
+
"tri-paperclip",
|
|
71
|
+
"tri-clock"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"description": {
|
|
75
|
+
"type": "react",
|
|
76
|
+
"values": [
|
|
77
|
+
"undefined",
|
|
78
|
+
"null",
|
|
79
|
+
"string",
|
|
80
|
+
"number",
|
|
81
|
+
"false",
|
|
82
|
+
"true",
|
|
83
|
+
"JSXElementConstructor<any>>",
|
|
84
|
+
"ReactNode>",
|
|
85
|
+
"ReactPortal"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
"sticker": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"values": [
|
|
91
|
+
"undefined",
|
|
92
|
+
"string"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"stickerVariant": {
|
|
96
|
+
"type": "enum",
|
|
97
|
+
"values": [
|
|
98
|
+
"undefined",
|
|
99
|
+
"MAIN",
|
|
100
|
+
"ACCENT",
|
|
101
|
+
"INFO",
|
|
102
|
+
"MAIN",
|
|
103
|
+
"ACCENT",
|
|
104
|
+
"INFO"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"label": {
|
|
108
|
+
"type": "react",
|
|
109
|
+
"values": [
|
|
110
|
+
"undefined",
|
|
111
|
+
"null",
|
|
112
|
+
"string",
|
|
113
|
+
"number",
|
|
114
|
+
"false",
|
|
115
|
+
"true",
|
|
116
|
+
"JSXElementConstructor<any>>",
|
|
117
|
+
"ReactNode>",
|
|
118
|
+
"ReactPortal"
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
"testId": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"values": [
|
|
124
|
+
"undefined",
|
|
125
|
+
"string"
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
};
|
|
@@ -16,13 +16,17 @@ export default {
|
|
|
16
16
|
"tri-arrow-left",
|
|
17
17
|
"tri-arrow-right",
|
|
18
18
|
"tri-arrow-up",
|
|
19
|
+
"tri-arrow-high",
|
|
19
20
|
"tri-bell",
|
|
21
|
+
"tri-calendar",
|
|
20
22
|
"tri-check-circle",
|
|
21
23
|
"tri-check",
|
|
22
24
|
"tri-exclamation-circle",
|
|
23
25
|
"tri-eye-slash",
|
|
24
26
|
"tri-eye",
|
|
27
|
+
"tri-file-attached",
|
|
25
28
|
"tri-infos-circle",
|
|
29
|
+
"tri-micro",
|
|
26
30
|
"tri-search",
|
|
27
31
|
"tri-times",
|
|
28
32
|
"tri-trash",
|
|
@@ -34,18 +38,24 @@ export default {
|
|
|
34
38
|
"tri-picto-payment-mastercard",
|
|
35
39
|
"tri-picto-payment-paypal",
|
|
36
40
|
"tri-picto-payment-visa",
|
|
41
|
+
"tri-paperclip",
|
|
42
|
+
"tri-clock",
|
|
37
43
|
"tri-alert",
|
|
38
44
|
"tri-arrow-down",
|
|
39
45
|
"tri-arrow-left",
|
|
40
46
|
"tri-arrow-right",
|
|
41
47
|
"tri-arrow-up",
|
|
48
|
+
"tri-arrow-high",
|
|
42
49
|
"tri-bell",
|
|
50
|
+
"tri-calendar",
|
|
43
51
|
"tri-check-circle",
|
|
44
52
|
"tri-check",
|
|
45
53
|
"tri-exclamation-circle",
|
|
46
54
|
"tri-eye-slash",
|
|
47
55
|
"tri-eye",
|
|
56
|
+
"tri-file-attached",
|
|
48
57
|
"tri-infos-circle",
|
|
58
|
+
"tri-micro",
|
|
49
59
|
"tri-search",
|
|
50
60
|
"tri-times",
|
|
51
61
|
"tri-trash",
|
|
@@ -56,7 +66,9 @@ export default {
|
|
|
56
66
|
"tri-picto-payment-cb",
|
|
57
67
|
"tri-picto-payment-mastercard",
|
|
58
68
|
"tri-picto-payment-paypal",
|
|
59
|
-
"tri-picto-payment-visa"
|
|
69
|
+
"tri-picto-payment-visa",
|
|
70
|
+
"tri-paperclip",
|
|
71
|
+
"tri-clock"
|
|
60
72
|
]
|
|
61
73
|
},
|
|
62
74
|
"description": {
|
|
@@ -84,89 +96,29 @@ export default {
|
|
|
84
96
|
"type": "enum",
|
|
85
97
|
"values": [
|
|
86
98
|
"undefined",
|
|
87
|
-
"INFO",
|
|
88
99
|
"MAIN",
|
|
89
100
|
"ACCENT",
|
|
101
|
+
"INFO",
|
|
90
102
|
"MAIN",
|
|
91
103
|
"ACCENT",
|
|
92
104
|
"INFO"
|
|
93
105
|
]
|
|
94
106
|
},
|
|
95
|
-
"checked": {
|
|
96
|
-
"type": "boolean",
|
|
97
|
-
"values": [
|
|
98
|
-
"undefined",
|
|
99
|
-
"false",
|
|
100
|
-
"true"
|
|
101
|
-
]
|
|
102
|
-
},
|
|
103
|
-
"disabled": {
|
|
104
|
-
"type": "boolean",
|
|
105
|
-
"values": [
|
|
106
|
-
"undefined",
|
|
107
|
-
"false",
|
|
108
|
-
"true"
|
|
109
|
-
]
|
|
110
|
-
},
|
|
111
|
-
"readonly": {
|
|
112
|
-
"type": "boolean",
|
|
113
|
-
"values": [
|
|
114
|
-
"undefined",
|
|
115
|
-
"false",
|
|
116
|
-
"true"
|
|
117
|
-
]
|
|
118
|
-
},
|
|
119
107
|
"label": {
|
|
120
|
-
"type": "
|
|
121
|
-
"values": [
|
|
122
|
-
"undefined",
|
|
123
|
-
"string"
|
|
124
|
-
]
|
|
125
|
-
},
|
|
126
|
-
"onChange": {
|
|
127
|
-
"type": "function",
|
|
128
|
-
"values": [
|
|
129
|
-
"undefined",
|
|
130
|
-
"RadioChangeEventHandler"
|
|
131
|
-
]
|
|
132
|
-
},
|
|
133
|
-
"name": {
|
|
134
|
-
"type": "string",
|
|
135
|
-
"values": [
|
|
136
|
-
"undefined",
|
|
137
|
-
"string"
|
|
138
|
-
]
|
|
139
|
-
},
|
|
140
|
-
"value": {
|
|
141
|
-
"type": "string",
|
|
142
|
-
"values": [
|
|
143
|
-
"undefined",
|
|
144
|
-
"string"
|
|
145
|
-
]
|
|
146
|
-
},
|
|
147
|
-
"required": {
|
|
148
|
-
"type": "boolean",
|
|
108
|
+
"type": "react",
|
|
149
109
|
"values": [
|
|
150
110
|
"undefined",
|
|
111
|
+
"null",
|
|
112
|
+
"string",
|
|
113
|
+
"number",
|
|
151
114
|
"false",
|
|
152
|
-
"true"
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
"type": "string",
|
|
157
|
-
"values": [
|
|
158
|
-
"undefined",
|
|
159
|
-
"string"
|
|
160
|
-
]
|
|
161
|
-
},
|
|
162
|
-
"id": {
|
|
163
|
-
"type": "string",
|
|
164
|
-
"values": [
|
|
165
|
-
"undefined",
|
|
166
|
-
"string"
|
|
115
|
+
"true",
|
|
116
|
+
"JSXElementConstructor<any>>",
|
|
117
|
+
"ReactNode>",
|
|
118
|
+
"ReactPortal"
|
|
167
119
|
]
|
|
168
120
|
},
|
|
169
|
-
"
|
|
121
|
+
"testId": {
|
|
170
122
|
"type": "string",
|
|
171
123
|
"values": [
|
|
172
124
|
"undefined",
|
|
@@ -2,26 +2,26 @@ import * as React from 'react';
|
|
|
2
2
|
import { RangeProps } from './RangeProps';
|
|
3
3
|
/**
|
|
4
4
|
* Range Component
|
|
5
|
-
* @param
|
|
6
|
-
* @param
|
|
7
|
-
*
|
|
8
|
-
* @param
|
|
9
|
-
* @param
|
|
10
|
-
* @param
|
|
11
|
-
* @param
|
|
12
|
-
* @param value {number[]} array of values
|
|
13
|
-
* @param onChange {function} on change cursors
|
|
5
|
+
* @param min {number} Minimum value
|
|
6
|
+
* @param max {number} Maximum value
|
|
7
|
+
* @param label {string} Label of range
|
|
8
|
+
* @param simple {boolean} Display single cursor (slider mode)
|
|
9
|
+
* @param unit {string} Unit displayed next to values
|
|
10
|
+
* @param name {string} Input name
|
|
11
|
+
* @param testId {string} Test Id for Test Integration
|
|
14
12
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
15
|
-
* @param gap {number} space max between min and max cursor
|
|
16
|
-
* @param onChangeMin {function} on change min cursor
|
|
17
|
-
* @param onChangeMax {function} on change max cursor
|
|
18
|
-
* @param value {number} only for slider
|
|
19
|
-
* @param onChange {function} on change cursor (works with simple prop)
|
|
20
13
|
* @param className {string} Additional CSS Classes
|
|
21
|
-
* @param id {string} id
|
|
22
|
-
* @param
|
|
23
|
-
* @param
|
|
24
|
-
* @param
|
|
14
|
+
* @param id {string} Custom id attribute
|
|
15
|
+
* @param value {number} Current value (for simple/slider mode)
|
|
16
|
+
* @param valueMin {number} Current min cursor value
|
|
17
|
+
* @param valueMax {number} Current max cursor value
|
|
18
|
+
* @param gap {number} Maximum gap allowed between min and max cursor
|
|
19
|
+
* @param onChange {InputChangeEventHandlerWeb} Callback for single cursor change
|
|
20
|
+
* @param onChangeMin {InputChangeEventHandlerWeb} Callback when min cursor changes
|
|
21
|
+
* @param onChangeMax {InputChangeEventHandlerWeb} Callback when max cursor changes
|
|
22
|
+
* - -------------------------- NATIVE PROPERTIES -------------------------------
|
|
23
|
+
* @param value {number[]} Current values array [min, max]
|
|
24
|
+
* @param onChange {InputChangeEventHandlerNative} Callback for cursor changes
|
|
25
25
|
*/
|
|
26
26
|
declare const Range: React.ForwardRefExoticComponent<RangeProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
27
|
export default Range;
|
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
import { __read } from "tslib";
|
|
2
2
|
import { useTrilogyContext } from '../../context';
|
|
3
3
|
import { hashClass } from '../../helpers';
|
|
4
|
-
import { getColorStyle, TrilogyColor } from '../../objects';
|
|
5
4
|
import clsx from 'clsx';
|
|
6
5
|
import * as React from 'react';
|
|
7
6
|
import { ComponentName } from '../enumsComponentsName';
|
|
8
7
|
/**
|
|
9
8
|
* Range Component
|
|
10
|
-
* @param
|
|
11
|
-
* @param
|
|
12
|
-
*
|
|
13
|
-
* @param
|
|
14
|
-
* @param
|
|
15
|
-
* @param
|
|
16
|
-
* @param
|
|
17
|
-
* @param value {number[]} array of values
|
|
18
|
-
* @param onChange {function} on change cursors
|
|
9
|
+
* @param min {number} Minimum value
|
|
10
|
+
* @param max {number} Maximum value
|
|
11
|
+
* @param label {string} Label of range
|
|
12
|
+
* @param simple {boolean} Display single cursor (slider mode)
|
|
13
|
+
* @param unit {string} Unit displayed next to values
|
|
14
|
+
* @param name {string} Input name
|
|
15
|
+
* @param testId {string} Test Id for Test Integration
|
|
19
16
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
20
|
-
* @param gap {number} space max between min and max cursor
|
|
21
|
-
* @param onChangeMin {function} on change min cursor
|
|
22
|
-
* @param onChangeMax {function} on change max cursor
|
|
23
|
-
* @param value {number} only for slider
|
|
24
|
-
* @param onChange {function} on change cursor (works with simple prop)
|
|
25
17
|
* @param className {string} Additional CSS Classes
|
|
26
|
-
* @param id {string} id
|
|
27
|
-
* @param
|
|
28
|
-
* @param
|
|
29
|
-
* @param
|
|
18
|
+
* @param id {string} Custom id attribute
|
|
19
|
+
* @param value {number} Current value (for simple/slider mode)
|
|
20
|
+
* @param valueMin {number} Current min cursor value
|
|
21
|
+
* @param valueMax {number} Current max cursor value
|
|
22
|
+
* @param gap {number} Maximum gap allowed between min and max cursor
|
|
23
|
+
* @param onChange {InputChangeEventHandlerWeb} Callback for single cursor change
|
|
24
|
+
* @param onChangeMin {InputChangeEventHandlerWeb} Callback when min cursor changes
|
|
25
|
+
* @param onChangeMax {InputChangeEventHandlerWeb} Callback when max cursor changes
|
|
26
|
+
* - -------------------------- NATIVE PROPERTIES -------------------------------
|
|
27
|
+
* @param value {number[]} Current values array [min, max]
|
|
28
|
+
* @param onChange {InputChangeEventHandlerNative} Callback for cursor changes
|
|
30
29
|
*/
|
|
31
30
|
var Range = React.forwardRef(function (_a, ref) {
|
|
32
|
-
var className = _a.className, _b = _a.id, id = _b === void 0 ? React.useId() : _b, min = _a.min, max = _a.max, label = _a.label, valueMin = _a.valueMin, valueMax = _a.valueMax, unit = _a.unit, onChangeMin = _a.onChangeMin, onChangeMax = _a.onChangeMax, onChange = _a.onChange, name = _a.name, _c = _a.gap, gap = _c === void 0 ? 0 : _c, simple = _a.simple, value = _a.value;
|
|
31
|
+
var className = _a.className, _b = _a.id, id = _b === void 0 ? React.useId() : _b, min = _a.min, max = _a.max, label = _a.label, valueMin = _a.valueMin, valueMax = _a.valueMax, unit = _a.unit, onChangeMin = _a.onChangeMin, onChangeMax = _a.onChangeMax, onChange = _a.onChange, name = _a.name, _c = _a.gap, gap = _c === void 0 ? 0 : _c, simple = _a.simple, value = _a.value, testId = _a.testId;
|
|
33
32
|
var styled = useTrilogyContext().styled;
|
|
34
33
|
var refTrack = React.useRef(null);
|
|
35
34
|
var _d = __read(React.useState(valueMin !== null && valueMin !== void 0 ? valueMin : 0), 2), cursorMin = _d[0], setCursorMin = _d[1];
|
|
@@ -37,7 +36,7 @@ var Range = React.forwardRef(function (_a, ref) {
|
|
|
37
36
|
React.useEffect(function () {
|
|
38
37
|
if (refTrack.current) {
|
|
39
38
|
var track = refTrack.current;
|
|
40
|
-
track.style.background = "linear-gradient(to right,
|
|
39
|
+
track.style.background = "linear-gradient(to right, var(--color-main-fade) ".concat((cursorMin / max) * 100, "% , var(--color-main) ").concat((cursorMin / max) * 100, "% , var(--color-main) ").concat((cursorMax / max) * 100, "%, var(--color-main-fade) ").concat((cursorMax / max) * 100, "%) ");
|
|
41
40
|
}
|
|
42
41
|
}, [cursorMin, cursorMax]);
|
|
43
42
|
React.useEffect(function () {
|
|
@@ -83,7 +82,7 @@ var Range = React.forwardRef(function (_a, ref) {
|
|
|
83
82
|
}, [onChangeMax, name, cursorMax, onChange, simple]);
|
|
84
83
|
return (React.createElement("div", { ref: ref, id: id, className: hashClass(styled, clsx('range-container', className)) },
|
|
85
84
|
React.createElement("label", { className: hashClass(styled, clsx('range-label')) }, label),
|
|
86
|
-
React.createElement("div", { className: hashClass(styled, clsx('range')) },
|
|
85
|
+
React.createElement("div", { className: hashClass(styled, clsx('range')), "data-testid": testId },
|
|
87
86
|
React.createElement("div", { ref: refTrack, className: hashClass(styled, clsx('range-track')) }),
|
|
88
87
|
!simple && (React.createElement("input", { className: hashClass(styled, clsx('range-cursor range-cursor-min')), onTouchEnd: handleMouseUpMin, onMouseUp: handleMouseUpMin, onChange: handleChangeCursorMin, value: cursorMin, type: 'range', min: min, max: max, name: name, id: "".concat(id, "-min"), "aria-label": label })),
|
|
89
88
|
React.createElement("input", { className: hashClass(styled, clsx('range-cursor', !simple && 'range-cursor-max')), onTouchEnd: handleMouseUpMax, onMouseUp: handleMouseUpMax, onChange: handleChangeCursorMax, value: cursorMax, type: 'range', min: min, max: max, name: name, id: "".concat(id, "-max"), "aria-label": label })),
|
|
@@ -101,4 +100,4 @@ var Range = React.forwardRef(function (_a, ref) {
|
|
|
101
100
|
});
|
|
102
101
|
Range.displayName = ComponentName.Range;
|
|
103
102
|
export default Range;
|
|
104
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
103
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmFuZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9jb21wb25lbnRzL3JhbmdlL1JhbmdlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sV0FBVyxDQUFBO0FBQzdDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxXQUFXLENBQUE7QUFDckMsT0FBTyxJQUFJLE1BQU0sTUFBTSxDQUFBO0FBQ3ZCLE9BQU8sS0FBSyxLQUFLLE1BQU0sT0FBTyxDQUFBO0FBQzlCLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQTtBQUd0RDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQXNCRztBQUNILElBQU0sS0FBSyxHQUFHLEtBQUssQ0FBQyxVQUFVLENBQzVCLF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VEsQ0FDekIsQ0FDRixDQUNGLENBQ1AsQ0FBQTtBQUNILENBQUMsQ0FDRixDQUFBO0FBRUQsS0FBSyxDQUFDLFdBQVcsR0FBRyxhQUFhLENBQUMsS0FBSyxDQUFBO0FBQ3ZDLGVBQWUsS0FBSyxDQUFBIn0=
|
|
@@ -3,14 +3,13 @@ import { View } from 'react-native';
|
|
|
3
3
|
import { RangeNativeProps } from './RangeProps';
|
|
4
4
|
/**
|
|
5
5
|
* Range Component
|
|
6
|
-
* @param min {number}
|
|
7
|
-
* @param max {number}
|
|
8
|
-
* @param label {string}
|
|
9
|
-
* @param
|
|
10
|
-
* @param
|
|
11
|
-
* @param
|
|
12
|
-
* @param
|
|
13
|
-
* @param unit {string} display unit of values
|
|
6
|
+
* @param min {number} Min value
|
|
7
|
+
* @param max {number} Max value
|
|
8
|
+
* @param label {string} Label of range
|
|
9
|
+
* @param onChange {function} onChange Event
|
|
10
|
+
* @param value {number[]} Array of values
|
|
11
|
+
* @param simple {boolean} Display one cursor
|
|
12
|
+
* @param unit {string} Display unit of values
|
|
14
13
|
*/
|
|
15
14
|
declare const Range: React.ForwardRefExoticComponent<RangeNativeProps & React.RefAttributes<View>>;
|
|
16
15
|
export default Range;
|
|
@@ -7,14 +7,13 @@ import { StyleSheet, View } from 'react-native';
|
|
|
7
7
|
import { Text, TextLevels } from '../text';
|
|
8
8
|
/**
|
|
9
9
|
* Range Component
|
|
10
|
-
* @param min {number}
|
|
11
|
-
* @param max {number}
|
|
12
|
-
* @param label {string}
|
|
13
|
-
* @param
|
|
14
|
-
* @param
|
|
15
|
-
* @param
|
|
16
|
-
* @param
|
|
17
|
-
* @param unit {string} display unit of values
|
|
10
|
+
* @param min {number} Min value
|
|
11
|
+
* @param max {number} Max value
|
|
12
|
+
* @param label {string} Label of range
|
|
13
|
+
* @param onChange {function} onChange Event
|
|
14
|
+
* @param value {number[]} Array of values
|
|
15
|
+
* @param simple {boolean} Display one cursor
|
|
16
|
+
* @param unit {string} Display unit of values
|
|
18
17
|
*/
|
|
19
18
|
var Range = React.forwardRef(function (_a, ref) {
|
|
20
19
|
var min = _a.min, max = _a.max, label = _a.label, unit = _a.unit, onChange = _a.onChange, value = _a.value, simple = _a.simple;
|
|
@@ -68,4 +67,4 @@ var Range = React.forwardRef(function (_a, ref) {
|
|
|
68
67
|
});
|
|
69
68
|
Range.displayName = ComponentName.Range;
|
|
70
69
|
export default Range;
|
|
71
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
70
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmFuZ2UubmF0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vY29tcG9uZW50cy9yYW5nZS9SYW5nZS5uYXRpdmUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0NBQWtDLENBQUE7QUFDaEUsT0FBTyxFQUFFLGFBQWEsRUFBRSxZQUFZLEVBQUUsY0FBYyxFQUFFLE1BQU0sV0FBVyxDQUFBO0FBQ3ZFLE9BQU8sV0FBVyxNQUFNLHVDQUF1QyxDQUFBO0FBQy9ELE9BQU8sS0FBSyxLQUFLLE1BQU0sT0FBTyxDQUFBO0FBQzlCLE9BQU8sRUFBRSxVQUFVLEVBQUUsSUFBSSxFQUFFLE1BQU0sY0FBYyxDQUFBO0FBQy9DLE9BQU8sRUFBRSxJQUFJLEVBQUUsVUFBVSxFQUFFLE1BQU0sU0FBUyxDQUFBO0FBRzFDOzs7Ozs7Ozs7R0FTRztBQUNILElBQU0sS0FBSyxHQUFHLEtBQUssQ0FBQyxVQUFVLENBQzVCLFVBQUMsRUFBa0QsRUFBRSxHQUFHO1FBQXJELEdBQUcsU0FBQSxFQUFFLEdBQUcsU0FBQSxFQUFFLEtBQUssV0FBQSxFQUFFLElBQUksVUFBQSxFQUFFLFFBQVEsY0FBQSxFQUF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11 @@ import { RowsProps } from './RowsProps';
|
|
|
3
3
|
/**
|
|
4
4
|
* Rows Component
|
|
5
5
|
* @param children {React.ReactNode} Rows children
|
|
6
|
-
*
|
|
6
|
+
* @param gap {GapSize} Gap size between rows
|
|
7
|
+
* @param testId {string} Test Id for Test Integration
|
|
8
|
+
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
7
9
|
* @param className {string} Additional CSS Classes
|
|
10
|
+
* @param id {string} Custom id attribute
|
|
8
11
|
*/
|
|
9
12
|
declare const Rows: React.ForwardRefExoticComponent<RowsProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
13
|
export default Rows;
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { hashClass } from '../../helpers';
|
|
4
|
-
import clsx from 'clsx';
|
|
5
2
|
import { useTrilogyContext } from '../../context';
|
|
3
|
+
import { hashClass } from '../../helpers';
|
|
6
4
|
import { has, is } from '../../services';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import * as React from 'react';
|
|
7
7
|
import { ComponentName } from '../enumsComponentsName';
|
|
8
8
|
/**
|
|
9
9
|
* Rows Component
|
|
10
10
|
* @param children {React.ReactNode} Rows children
|
|
11
|
-
*
|
|
11
|
+
* @param gap {GapSize} Gap size between rows
|
|
12
|
+
* @param testId {string} Test Id for Test Integration
|
|
13
|
+
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
12
14
|
* @param className {string} Additional CSS Classes
|
|
15
|
+
* @param id {string} Custom id attribute
|
|
13
16
|
*/
|
|
14
17
|
var Rows = React.forwardRef(function (_a, ref) {
|
|
15
|
-
var className = _a.className, id = _a.id, gap = _a.gap, others = __rest(_a, ["className", "id", "gap"]);
|
|
18
|
+
var className = _a.className, id = _a.id, gap = _a.gap, testId = _a.testId, others = __rest(_a, ["className", "id", "gap", "testId"]);
|
|
16
19
|
var styled = useTrilogyContext().styled;
|
|
17
|
-
return (React.createElement("div", __assign({ ref: ref, id: id, className: hashClass(styled, clsx('rows', gap && has("gap-".concat(gap)), typeof gap !== 'undefined' && gap === 0 && is('gapless'), className)) }, others)));
|
|
20
|
+
return (React.createElement("div", __assign({ "data-testid": testId, ref: ref, id: id, className: hashClass(styled, clsx('rows', gap && has("gap-".concat(gap)), typeof gap !== 'undefined' && gap === 0 && is('gapless'), className)) }, others)));
|
|
18
21
|
});
|
|
19
22
|
Rows.displayName = ComponentName.Rows;
|
|
20
23
|
export default Rows;
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUm93cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2NvbXBvbmVudHMvcm93cy9Sb3dzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sV0FBVyxDQUFBO0FBQzdDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxXQUFXLENBQUE7QUFDckMsT0FBTyxFQUFFLEdBQUcsRUFBRSxFQUFFLEVBQUUsTUFBTSxZQUFZLENBQUE7QUFDcEMsT0FBTyxJQUFJLE1BQU0sTUFBTSxDQUFBO0FBQ3ZCLE9BQU8sS0FBSyxLQUFLLE1BQU0sT0FBTyxDQUFBO0FBQzlCLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQTtBQUd0RDs7Ozs7Ozs7R0FRRztBQUNILElBQU0sSUFBSSxHQUFHLEtBQUssQ0FBQyxVQUFVLENBQXFCLFVBQUMsRUFBeUMsRUFBRSxHQUFHO0lBQTVDLElBQUEsU0FBUyxlQUFBLEVBQUUsRUFBRSxRQUFBLEVBQUUsR0FBRyxTQUFBLEVBQUUsTUFBTSxZQUFBLEVBQUssTUFBTSxjQUF2QyxvQ0FBeUMsQ0FBRjtJQUNoRixJQUFBLE1BQU0sR0FBSyxpQkFBaUIsRUFBRSxPQUF4QixDQUF3QjtJQUV0QyxPQUFPLENBQ0wscURBQ2UsTUFBTSxFQUNuQixHQUFHLEVBQUUsR0FBRyxFQUNSLEVBQUUsRUFBRSxFQUFFLEVBQ04sU0FBUyxFQUFFLFNBQVMsQ0FDbEIsTUFBTSxFQUNOLElBQUksQ0FBQyxNQUFNLEVBQUUsR0FBRyxJQUFJLEdBQUcsQ0FBQyxjQUFPLEdBQUcsQ0FBRSxDQUFDLEVBQUUsT0FBTyxHQUFHLEtBQUssV0FBVyxJQUFJLEdBQUcsS0FBSyxDQUFDLElBQUksRUFBRSxDQUFDLFNBQVMsQ0FBQyxFQUFFLFNBQVMsQ0FBQyxDQUM1RyxJQUNHLE1BQU0sRUFDVixDQUNILENBQUE7QUFDSCxDQUFDLENBQUMsQ0FBQTtBQUVGLElBQUksQ0FBQyxXQUFXLEdBQUcsYUFBYSxDQUFDLElBQUksQ0FBQTtBQUNyQyxlQUFlLElBQUksQ0FBQSJ9
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import { CommonProps } from '../../objects/facets/CommonProps';
|
|
3
3
|
import { GapSize } from '../../components/columns/ColumnsTypes';
|
|
4
4
|
import { View } from 'react-native';
|
|
5
|
+
import { Dev } from '../../objects/facets/Dev';
|
|
5
6
|
/**
|
|
6
7
|
* Rows Interface
|
|
7
8
|
*/
|
|
8
|
-
export interface RowsProps extends CommonProps {
|
|
9
|
+
export interface RowsProps extends CommonProps, Dev {
|
|
9
10
|
children?: React.ReactNode;
|
|
10
11
|
gap?: GapSize;
|
|
11
12
|
}
|
|
@@ -6,6 +6,8 @@ import { RowProps } from './RowProps';
|
|
|
6
6
|
* @param children {React.ReactNode}
|
|
7
7
|
* - -------------------------- WEB PROPERTIES -------------------
|
|
8
8
|
* @param className {string} Additional CSS Classes
|
|
9
|
+
* @param id {string} Custom id attribute
|
|
10
|
+
* @param testId {string} Test Id for Test Integration
|
|
9
11
|
*/
|
|
10
12
|
declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
13
|
export default Row;
|
|
@@ -11,13 +11,15 @@ import { ComponentName } from '../../../components/enumsComponentsName';
|
|
|
11
11
|
* @param children {React.ReactNode}
|
|
12
12
|
* - -------------------------- WEB PROPERTIES -------------------
|
|
13
13
|
* @param className {string} Additional CSS Classes
|
|
14
|
+
* @param id {string} Custom id attribute
|
|
15
|
+
* @param testId {string} Test Id for Test Integration
|
|
14
16
|
*/
|
|
15
17
|
var Row = React.forwardRef(function (_a, ref) {
|
|
16
|
-
var className = _a.className, id = _a.id, narrow = _a.narrow, others = __rest(_a, ["className", "id", "narrow"]);
|
|
18
|
+
var className = _a.className, id = _a.id, narrow = _a.narrow, testId = _a.testId, others = __rest(_a, ["className", "id", "narrow", "testId"]);
|
|
17
19
|
var styled = useTrilogyContext().styled;
|
|
18
20
|
var classes = hashClass(styled, clsx('row', narrow && is('narrow'), className));
|
|
19
|
-
return React.createElement("div", __assign({ ref: ref, id: id, className: classes }, others));
|
|
21
|
+
return React.createElement("div", __assign({ ref: ref, id: id, className: classes, "data-testid": testId }, others));
|
|
20
22
|
});
|
|
21
23
|
Row.displayName = ComponentName.Row;
|
|
22
24
|
export default Row;
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUm93LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vY29tcG9uZW50cy9yb3dzL3Jvdy9Sb3cudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEtBQUssS0FBSyxNQUFNLE9BQU8sQ0FBQTtBQUU5QixPQUFPLEVBQUUsRUFBRSxFQUFFLE1BQU0scUJBQXFCLENBQUE7QUFDeEMsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLFdBQVcsQ0FBQTtBQUNyQyxPQUFPLElBQUksTUFBTSxNQUFNLENBQUE7QUFDdkIsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sV0FBVyxDQUFBO0FBQzdDLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQTtBQUVoRTs7Ozs7Ozs7R0FRRztBQUNILElBQU0sR0FBRyxHQUFHLEtBQUssQ0FBQyxVQUFVLENBQW1CLFVBQUMsRUFBNEMsRUFBRSxHQUFHO0lBQS9DLElBQUEsU0FBUyxlQUFBLEVBQUUsRUFBRSxRQUFBLEVBQUUsTUFBTSxZQUFBLEVBQUUsTUFBTSxZQUFBLEVBQUssTUFBTSxjQUExQyx1Q0FBNEMsQ0FBRjtJQUNoRixJQUFBLE1BQU0sR0FBSyxpQkFBaUIsRUFBRSxPQUF4QixDQUF3QjtJQUN0QyxJQUFNLE9BQU8sR0FBRyxTQUFTLENBQUMsTUFBTSxFQUFFLElBQUksQ0FBQyxLQUFLLEVBQUUsTUFBTSxJQUFJLEVBQUUsQ0FBQyxRQUFRLENBQUMsRUFBRSxTQUFTLENBQUMsQ0FBQyxDQUFBO0lBQ2pGLE9BQU8sc0NBQUssR0FBRyxFQUFFLEdBQUcsRUFBRSxFQUFFLEVBQUUsRUFBRSxFQUFFLFNBQVMsRUFBRSxPQUFPLGlCQUFlLE1BQU0sSUFBTSxNQUFNLEVBQUksQ0FBQTtBQUN2RixDQUFDLENBQUMsQ0FBQTtBQUVGLEdBQUcsQ0FBQyxXQUFXLEdBQUcsYUFBYSxDQUFDLEdBQUcsQ0FBQTtBQUNuQyxlQUFlLEdBQUcsQ0FBQSJ9
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
import { CommonProps } from '../../../objects/facets/CommonProps';
|
|
4
|
+
import { Dev } from '../../../objects/facets/Dev';
|
|
4
5
|
/**
|
|
5
6
|
* Rows Interface
|
|
6
7
|
*/
|
|
7
|
-
export interface RowProps extends CommonProps {
|
|
8
|
+
export interface RowProps extends CommonProps, Dev {
|
|
8
9
|
children?: React.ReactNode;
|
|
9
10
|
narrow?: boolean;
|
|
10
11
|
}
|