@trilogy-ds/react 0.0.1-beta-v4 → 0.0.1-beta-timepicker
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/accordion/Accordion.d.ts +3 -3
- package/lib/components/accordion/Accordion.js +8 -6
- package/lib/components/accordion/Accordion.native.d.ts +4 -7
- package/lib/components/accordion/Accordion.native.js +8 -8
- package/lib/components/accordion/AccordionProps.d.ts +3 -0
- package/lib/components/accordion/item/AccordionItem.d.ts +4 -4
- package/lib/components/accordion/item/AccordionItem.js +24 -11
- package/lib/components/accordion/item/AccordionItem.native.d.ts +4 -7
- package/lib/components/accordion/item/AccordionItem.native.js +33 -36
- package/lib/components/accordion/item/AccordionItemProps.d.ts +3 -0
- package/lib/components/accordion/item/body/AccordionBody.d.ts +2 -2
- package/lib/components/accordion/item/body/AccordionBody.js +12 -8
- package/lib/components/accordion/item/body/AccordionBody.native.d.ts +4 -7
- package/lib/components/accordion/item/body/AccordionBody.native.js +7 -7
- package/lib/components/accordion/item/body/AccordionBodyProps.d.ts +4 -1
- package/lib/components/accordion/item/header/AccordionHeader.d.ts +2 -2
- package/lib/components/accordion/item/header/AccordionHeader.js +10 -8
- package/lib/components/accordion/item/header/AccordionHeader.native.d.ts +4 -7
- package/lib/components/accordion/item/header/AccordionHeader.native.js +10 -10
- package/lib/components/accordion/item/header/AccordionHeaderProps.d.ts +3 -0
- package/lib/components/alert/Alert.d.ts +7 -3
- package/lib/components/alert/Alert.js +71 -60
- package/lib/components/alert/Alert.native.d.ts +1 -5
- package/lib/components/alert/Alert.native.js +29 -40
- package/lib/components/alert/AlertEnum.d.ts +9 -0
- package/lib/components/alert/AlertEnum.js +10 -0
- package/lib/components/alert/AlertProps.d.ts +15 -2
- package/lib/components/alert/AlertProps.js +6 -1
- package/lib/components/alert/AlertPropsDefaults.js +20 -0
- package/lib/components/alert/ToasterStatusPropsDefaults.js +28 -0
- package/lib/components/alert/context/ToastPropsDefaults.js +20 -0
- package/lib/components/alert/context/ToasterContextProps.d.ts +4 -2
- package/lib/components/autocomplete/AutoComplete.d.ts +34 -3
- package/lib/components/autocomplete/AutoComplete.js +49 -45
- package/lib/components/autocomplete/AutoComplete.native.d.ts +5 -3
- package/lib/components/autocomplete/AutoComplete.native.js +12 -9
- package/lib/components/autocomplete/AutoCompleteProps.d.ts +4 -4
- package/lib/components/autocomplete/AutoCompletePropsNativeDefaults.js +72 -58
- package/lib/components/autocomplete/AutoCompletePropsWebDefaults.js +72 -58
- package/lib/components/autocomplete/Autocomplete.helpers.js +7 -4
- package/lib/components/autocomplete/item/AutoCompleteItem.d.ts +1 -1
- package/lib/components/autocomplete/item/AutoCompleteItem.js +1 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.d.ts +1 -1
- package/lib/components/autocomplete/menu/AutoCompleteMenu.js +1 -1
- package/lib/components/autolayout/AutoLayout.d.ts +2 -2
- package/lib/components/autolayout/AutoLayout.helpers.d.ts +6 -6
- package/lib/components/autolayout/AutoLayout.helpers.js +31 -25
- package/lib/components/autolayout/AutoLayout.js +3 -3
- package/lib/components/autolayout/AutoLayout.native.d.ts +2 -2
- package/lib/components/autolayout/AutoLayout.native.js +9 -11
- package/lib/components/autolayout/AutoLayoutProps.d.ts +5 -5
- package/lib/components/autolayout/AutoLayoutWrapper.d.ts +2 -2
- package/lib/components/autolayout/AutoLayoutWrapper.js +3 -3
- package/lib/components/autolayout/DefaultSpacingMatrix.d.ts +1 -1
- package/lib/components/autolayout/DefaultSpacingMatrix.js +5 -4
- package/lib/components/autolayout/index.d.ts +2 -3
- package/lib/components/autolayout/index.js +3 -4
- package/lib/components/badge/Badge.d.ts +4 -4
- package/lib/components/badge/Badge.js +16 -12
- package/lib/components/badge/Badge.native.d.ts +13 -9
- package/lib/components/badge/Badge.native.js +87 -15
- package/lib/components/badge/BadgeProps.d.ts +17 -7
- package/lib/components/badge/BadgeProps.js +10 -2
- package/lib/components/badge/BadgePropsDefaults.js +18 -12
- package/lib/components/badge/index.d.ts +1 -0
- package/lib/components/badge/index.js +2 -1
- package/lib/components/box/Box.d.ts +4 -3
- package/lib/components/box/Box.js +17 -19
- package/lib/components/box/Box.native.d.ts +3 -7
- package/lib/components/box/Box.native.js +43 -58
- package/lib/components/box/BoxProps.d.ts +8 -1
- package/lib/components/box/BoxPropsDefaults.js +22 -2
- package/lib/components/box/content/BoxContent.d.ts +4 -3
- package/lib/components/box/content/BoxContent.js +18 -11
- package/lib/components/box/content/BoxContent.native.d.ts +5 -7
- package/lib/components/box/content/BoxContent.native.js +20 -11
- package/lib/components/box/content/BoxContentProps.d.ts +5 -1
- package/lib/components/box/content/BoxContentPropsDefaults.js +7 -1
- package/lib/components/box/context/boxContext.d.ts +4 -0
- package/lib/components/box/context/boxContext.js +3 -0
- package/lib/components/box/footer/BoxFooter.d.ts +3 -4
- package/lib/components/box/footer/BoxFooter.js +11 -10
- package/lib/components/box/footer/BoxFooter.native.d.ts +4 -7
- package/lib/components/box/footer/BoxFooter.native.js +10 -12
- package/lib/components/box/footer/BoxFooterProps.d.ts +6 -1
- package/lib/components/box/footer/BoxFooterPropsDefaults.js +7 -1
- package/lib/components/box/header/BoxHeader.d.ts +5 -4
- package/lib/components/box/header/BoxHeader.js +15 -11
- package/lib/components/box/header/BoxHeader.native.d.ts +4 -12
- package/lib/components/box/header/BoxHeader.native.js +8 -13
- package/lib/components/box/header/BoxHeaderProps.d.ts +6 -1
- package/lib/components/box/header/BoxHeaderPropsDefaults.js +29 -3
- package/lib/components/box/item/BoxItem.d.ts +3 -3
- package/lib/components/box/item/BoxItem.js +10 -8
- package/lib/components/box/item/BoxItem.native.d.ts +4 -7
- package/lib/components/box/item/BoxItem.native.js +10 -10
- package/lib/components/box/item/BoxItemProps.d.ts +4 -1
- package/lib/components/box/table-container/BoxTableContainer.d.ts +4 -4
- package/lib/components/box/table-container/BoxTableContainer.js +11 -9
- package/lib/components/box/table-container/BoxTableContainer.native.d.ts +4 -7
- package/lib/components/box/table-container/BoxTableContainer.native.js +8 -8
- package/lib/components/box/table-container/BoxTableContainerProps.d.ts +3 -0
- package/lib/components/breadcrumb/Breadcrumb.d.ts +2 -2
- package/lib/components/breadcrumb/Breadcrumb.js +12 -9
- package/lib/components/breadcrumb/Breadcrumb.native.d.ts +4 -7
- package/lib/components/breadcrumb/Breadcrumb.native.js +11 -11
- package/lib/components/breadcrumb/BreadcrumbProps.d.ts +5 -1
- package/lib/components/breadcrumb/item/BreadcrumbItem.d.ts +3 -3
- package/lib/components/breadcrumb/item/BreadcrumbItem.js +13 -14
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.d.ts +4 -7
- package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +12 -11
- package/lib/components/breadcrumb/item/BreadcrumbItemProps.d.ts +6 -1
- package/lib/components/breadcrumb/item/BreadcrumbItemPropsWebDefaults.js +9 -9
- package/lib/components/button/Button.d.ts +4 -4
- package/lib/components/button/Button.js +32 -31
- package/lib/components/button/Button.native.d.ts +4 -7
- package/lib/components/button/Button.native.js +92 -133
- package/lib/components/button/ButtonProps.d.ts +8 -3
- package/lib/components/button/ButtonPropsDefaults.js +13 -11
- package/lib/components/button/list/ButtonList.d.ts +6 -2
- package/lib/components/button/list/ButtonList.js +17 -10
- package/lib/components/button/list/ButtonList.native.d.ts +4 -7
- package/lib/components/button/list/ButtonList.native.js +7 -7
- package/lib/components/button/list/ButtonListProps.d.ts +7 -4
- package/lib/components/button/list/ButtonListWebPropsDefaults.js +11 -1
- package/lib/components/button/list/index.d.ts +1 -0
- package/lib/components/button/list/index.js +2 -1
- package/lib/components/calendar/Calendar.d.ts +15 -0
- package/lib/components/calendar/Calendar.js +342 -0
- package/lib/components/calendar/Calendar.native.d.ts +16 -0
- package/lib/components/calendar/Calendar.native.js +558 -0
- package/lib/components/calendar/CalendarProps.d.ts +11 -0
- package/lib/components/calendar/CalendarProps.js +2 -0
- package/lib/components/calendar/CalendarPropsDefaults.js +63 -0
- package/lib/components/calendar/index.d.ts +3 -0
- package/lib/components/calendar/index.js +4 -0
- package/lib/components/card/Card.d.ts +3 -4
- package/lib/components/card/Card.js +12 -11
- package/lib/components/card/Card.native.d.ts +3 -7
- package/lib/components/card/Card.native.js +26 -28
- package/lib/components/card/CardProps.d.ts +6 -1
- package/lib/components/card/content/CardContent.d.ts +3 -3
- package/lib/components/card/content/CardContent.js +10 -8
- package/lib/components/card/content/CardContent.native.d.ts +3 -14
- package/lib/components/card/content/CardContent.native.js +7 -55
- package/lib/components/card/content/CardContentProps.d.ts +4 -1
- package/lib/components/card/image/CardImage.d.ts +3 -3
- package/lib/components/card/image/CardImage.js +12 -10
- package/lib/components/card/image/CardImage.native.d.ts +3 -6
- package/lib/components/card/image/CardImage.native.js +16 -15
- package/lib/components/card/image/CardImageProps.d.ts +4 -1
- package/lib/components/checkbox/Checkbox.d.ts +6 -4
- package/lib/components/checkbox/Checkbox.js +27 -13
- package/lib/components/checkbox/Checkbox.native.d.ts +3 -6
- package/lib/components/checkbox/Checkbox.native.js +15 -109
- package/lib/components/checkbox/{CheckboxPropsDefaults.js → CheckboxCommonPropsDefaults.js} +8 -7
- package/lib/components/checkbox/CheckboxProps.d.ts +18 -4
- package/lib/components/checkbox/CheckboxWithChildrenDefaults.js +94 -0
- package/lib/components/checkbox/CheckboxWithLabelDefaults.js +84 -0
- package/lib/components/checkbox/index.d.ts +4 -2
- package/lib/components/checkbox/index.js +5 -3
- package/lib/components/checkbox/list/CheckboxList.d.ts +14 -0
- package/lib/components/checkbox/list/CheckboxList.js +36 -0
- package/lib/components/checkbox/list/CheckboxList.native.d.ts +10 -0
- package/lib/components/checkbox/list/CheckboxList.native.js +40 -0
- package/lib/components/checkbox/list/CheckboxListProps.d.ts +27 -0
- package/lib/components/checkbox/list/CheckboxListProps.js +2 -0
- package/lib/components/checkbox/list/CheckboxListPropsDefaults.js +17 -0
- package/lib/components/checkbox/list/CheckboxListWebPropsDefaults.js +76 -0
- package/lib/components/checkbox/list/index.d.ts +2 -0
- package/lib/components/checkbox/list/index.js +3 -0
- package/lib/components/checkbox/tiles/CheckboxTiles.d.ts +7 -5
- package/lib/components/checkbox/tiles/CheckboxTiles.js +19 -13
- package/lib/components/checkbox/tiles/CheckboxTiles.native.d.ts +5 -0
- package/lib/components/checkbox/tiles/CheckboxTiles.native.js +22 -0
- package/lib/components/checkbox/tiles/CheckboxTilesProps.d.ts +5 -1
- package/lib/components/checkbox/tiles/CheckboxTilesPropsDefaults.js +29 -2
- package/lib/components/checkbox/tiles/tile/CheckboxTile.d.ts +17 -5
- package/lib/components/checkbox/tiles/tile/CheckboxTile.js +33 -17
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.d.ts +5 -0
- package/lib/components/checkbox/tiles/tile/CheckboxTile.native.js +110 -0
- package/lib/components/checkbox/tiles/tile/CheckboxTileProps.d.ts +7 -1
- package/lib/components/checkbox/tiles/tile/CheckboxTilePropsDefaults.js +11 -49
- package/lib/components/chips/Chips.d.ts +4 -4
- package/lib/components/chips/Chips.js +13 -11
- package/lib/components/chips/Chips.native.d.ts +4 -7
- package/lib/components/chips/Chips.native.js +15 -15
- package/lib/components/chips/ChipsProps.d.ts +6 -1
- package/lib/components/chips/list/ChipsList.d.ts +1 -1
- package/lib/components/chips/list/ChipsList.js +11 -9
- package/lib/components/chips/list/ChipsList.native.d.ts +2 -6
- package/lib/components/chips/list/ChipsList.native.js +5 -5
- package/lib/components/chips/list/ChipsListProps.d.ts +4 -0
- package/lib/components/chips/list/ChipsListPropsDefaults.js +7 -0
- package/lib/components/columns/Columns.d.ts +4 -4
- package/lib/components/columns/Columns.js +15 -12
- package/lib/components/columns/Columns.native.d.ts +3 -9
- package/lib/components/columns/Columns.native.js +44 -67
- package/lib/components/columns/ColumnsProps.d.ts +6 -2
- package/lib/components/columns/ColumnsPropsDefaults.js +30 -2
- package/lib/components/columns/column/Column.d.ts +4 -4
- package/lib/components/columns/column/Column.js +12 -10
- package/lib/components/columns/column/Column.native.d.ts +8 -11
- package/lib/components/columns/column/Column.native.js +31 -25
- package/lib/components/columns/column/ColumnProps.d.ts +4 -1
- package/lib/components/columns/column/ColumnPropsDefaults.js +36 -16
- package/lib/components/columns/column/index.d.ts +1 -1
- package/lib/components/columns/column/index.js +2 -2
- package/lib/components/columns/context/index.d.ts +8 -0
- package/lib/components/columns/context/index.js +9 -0
- package/lib/components/columns/index.d.ts +1 -0
- package/lib/components/columns/index.js +2 -1
- package/lib/components/container/Container.d.ts +6 -4
- package/lib/components/container/Container.js +12 -8
- package/lib/components/container/Container.native.d.ts +6 -10
- package/lib/components/container/Container.native.js +19 -18
- package/lib/components/container/ContainerProps.d.ts +3 -3
- package/lib/components/container/index.d.ts +1 -2
- package/lib/components/container/index.js +2 -3
- package/lib/components/countdown/Countdown.d.ts +3 -3
- package/lib/components/countdown/Countdown.js +11 -9
- package/lib/components/countdown/Countdown.native.d.ts +3 -6
- package/lib/components/countdown/Countdown.native.js +8 -8
- package/lib/components/countdown/CountdownProps.d.ts +4 -1
- package/lib/components/datepicker/DatePicker.d.ts +22 -0
- package/lib/components/datepicker/DatePicker.js +428 -0
- package/lib/components/datepicker/DatePicker.native.d.ts +19 -0
- package/lib/components/datepicker/DatePicker.native.js +307 -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 +4 -4
- package/lib/components/divider/Divider.js +16 -27
- package/lib/components/divider/Divider.native.d.ts +4 -7
- package/lib/components/divider/Divider.native.js +24 -24
- package/lib/components/divider/DividerProps.d.ts +3 -0
- package/lib/components/divider/DividerPropsDefaults.js +2 -0
- package/lib/components/dropdown/Dropdown.d.ts +13 -0
- package/lib/components/dropdown/Dropdown.js +88 -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 +12 -0
- package/lib/components/dropdown/group/DropdownGroup.js +24 -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 +93 -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/{popover/content/PopoverContentPropsDefaults.js → dropdown/trigger/DropdownTriggerPropsDefaults.js} +14 -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 +20 -3
- package/lib/components/enumsComponentsName.js +20 -3
- package/lib/components/fab/Fab.d.ts +2 -2
- package/lib/components/fab/Fab.js +6 -4
- package/lib/components/fab/Fab.native.d.ts +3 -6
- package/lib/components/fab/Fab.native.js +4 -4
- package/lib/components/fab/FabProps.d.ts +3 -1
- package/lib/components/fab/FabPropsDefaults.js +2 -0
- package/lib/components/flex-box/FlexBox.d.ts +18 -0
- package/lib/components/flex-box/FlexBox.js +94 -0
- package/lib/components/flex-box/FlexBox.native.d.ts +5 -0
- package/lib/components/flex-box/FlexBox.native.js +58 -0
- package/lib/components/flex-box/FlexBoxProps.d.ts +34 -0
- package/lib/components/flex-box/FlexBoxProps.js +2 -0
- package/lib/components/flex-box/FlexBoxPropsDefaults.js +128 -0
- package/lib/components/flex-box/ResponsiveValueDefaults.js +37 -0
- package/lib/components/flex-box/context/index.d.ts +7 -0
- package/lib/components/flex-box/context/index.js +8 -0
- package/lib/components/flex-box/flex-item/FlexItem.d.ts +28 -0
- package/lib/components/flex-box/flex-item/FlexItem.js +42 -0
- package/lib/components/flex-box/flex-item/FlexItem.native.d.ts +29 -0
- package/lib/components/flex-box/flex-item/FlexItem.native.js +56 -0
- package/lib/components/flex-box/flex-item/FlexItemProps.d.ts +23 -0
- package/lib/components/flex-box/flex-item/FlexItemProps.js +2 -0
- package/lib/components/flex-box/flex-item/FlexItemPropsDefaults.js +101 -0
- package/lib/components/flex-box/flex-item/FlexSizeDefaults.js +110 -0
- package/lib/components/flex-box/index.d.ts +3 -0
- package/lib/components/flex-box/index.js +4 -0
- package/lib/components/hero/Hero.d.ts +4 -4
- package/lib/components/hero/Hero.js +12 -10
- package/lib/components/hero/Hero.native.d.ts +4 -7
- package/lib/components/hero/Hero.native.js +17 -13
- package/lib/components/hero/HeroProps.d.ts +6 -1
- package/lib/components/hero/HeroPropsDefaults.js +17 -1
- package/lib/components/hero/index.d.ts +1 -2
- package/lib/components/hero/index.js +2 -3
- package/lib/components/icon/Icon.d.ts +3 -3
- package/lib/components/icon/Icon.js +16 -13
- package/lib/components/icon/Icon.native.d.ts +4 -7
- package/lib/components/icon/Icon.native.js +35 -25
- package/lib/components/icon/IconNameEnum.d.ts +1 -0
- package/lib/components/icon/IconNameEnum.js +2 -1
- package/lib/components/icon/IconProps.d.ts +6 -3
- package/lib/components/icon/IconPropsDefaults.js +9 -25
- package/lib/components/image/Image.d.ts +8 -4
- package/lib/components/image/Image.js +17 -11
- package/lib/components/image/Image.native.d.ts +8 -8
- package/lib/components/image/Image.native.js +36 -13
- package/lib/components/image/ImageProps.d.ts +5 -1
- package/lib/components/image/ImagePropsDefaults.js +31 -2
- package/lib/components/index.d.ts +5 -0
- package/lib/components/index.js +6 -1
- package/lib/components/input/ISecurityRulesDefaults.js +23 -0
- package/lib/components/input/Input.d.ts +46 -3
- package/lib/components/input/Input.js +51 -39
- package/lib/components/input/Input.native.d.ts +4 -6
- package/lib/components/input/Input.native.js +57 -102
- package/lib/components/input/InputChangeEventWebDefaults.js +7 -0
- package/lib/components/input/InputEnum.d.ts +2 -1
- package/lib/components/input/InputEnum.js +1 -1
- package/lib/components/input/InputProps.d.ts +19 -4
- package/lib/components/input/InputPropsDefaults.js +72 -6
- package/lib/components/input/gauge/InputGauge.d.ts +4 -2
- package/lib/components/input/gauge/InputGauge.js +15 -13
- package/lib/components/input/gauge/InputGauge.native.d.ts +3 -2
- package/lib/components/input/gauge/InputGauge.native.js +27 -17
- package/lib/components/input/gauge/hook/useGauge.d.ts +11 -3
- package/lib/components/input/gauge/hook/useGauge.js +39 -15
- package/lib/components/link/Link.d.ts +5 -4
- package/lib/components/link/Link.js +14 -11
- package/lib/components/link/Link.native.d.ts +4 -8
- package/lib/components/link/Link.native.js +17 -65
- package/lib/components/link/LinkDefaults.js +343 -0
- package/lib/components/link/LinkProps.d.ts +13 -2
- package/lib/components/link/LinkPropsDefaults.js +94 -9
- package/lib/components/link/LinkPropsNativeDefaults.js +414 -0
- package/lib/components/list/List.d.ts +6 -5
- package/lib/components/list/List.js +16 -12
- package/lib/components/list/List.native.d.ts +6 -7
- package/lib/components/list/List.native.js +14 -9
- package/lib/components/list/ListProps.d.ts +4 -0
- package/lib/components/list/ListPropsDefaults.js +8 -0
- package/lib/components/list/context/ListContext.d.ts +3 -0
- package/lib/components/list/context/ListContext.js +8 -0
- package/lib/components/list/context/ListContextProps.d.ts +7 -0
- package/lib/components/list/context/ListContextProps.js +2 -0
- package/lib/components/list/context/ListContextPropsDefaults.js +24 -0
- package/lib/components/list/context/index.d.ts +2 -0
- package/lib/components/list/context/index.js +3 -0
- package/lib/components/list/item/ListItem.d.ts +4 -4
- package/lib/components/list/item/ListItem.js +8 -6
- package/lib/components/list/item/ListItem.native.d.ts +5 -8
- package/lib/components/list/item/ListItem.native.js +35 -56
- package/lib/components/list/item/ListItemProps.d.ts +6 -2
- package/lib/components/list/item/ListItemProps.js +3 -1
- package/lib/components/list/item/ListItemPropsDefaults.js +6 -0
- package/lib/components/list/item/description/ListItemDescription.d.ts +3 -3
- package/lib/components/list/item/description/ListItemDescription.js +7 -5
- package/lib/components/list/item/description/ListItemDescription.native.d.ts +2 -6
- package/lib/components/list/item/description/ListItemDescription.native.js +4 -4
- package/lib/components/list/item/description/ListItemDescriptionProps.d.ts +3 -0
- package/lib/components/modal/Modal.d.ts +5 -6
- package/lib/components/modal/Modal.js +71 -73
- package/lib/components/modal/Modal.native.d.ts +5 -8
- package/lib/components/modal/Modal.native.js +62 -119
- package/lib/components/modal/ModalProps.d.ts +6 -3
- package/lib/components/modal/ModalPropsDefaults.js +4 -1
- package/lib/components/modal/body/ModalBody.d.ts +3 -3
- package/lib/components/modal/body/ModalBody.js +7 -5
- package/lib/components/modal/body/ModalBody.native.d.ts +3 -6
- package/lib/components/modal/body/ModalBody.native.js +17 -13
- package/lib/components/modal/body/ModalBodyProps.d.ts +3 -0
- package/lib/components/modal/context/ModalContext.d.ts +3 -0
- package/lib/components/modal/context/ModalContext.js +8 -0
- package/lib/components/modal/context/ModalContextProps.d.ts +8 -0
- package/lib/components/modal/context/ModalContextProps.js +2 -0
- package/lib/components/modal/context/ModalContextPropsDefaults.js +25 -0
- package/lib/components/modal/context/index.d.ts +2 -0
- package/lib/components/modal/context/index.js +3 -0
- package/lib/components/modal/footer/ModalFooter.d.ts +3 -3
- package/lib/components/modal/footer/ModalFooter.js +9 -7
- package/lib/components/modal/footer/ModalFooter.native.d.ts +4 -7
- package/lib/components/modal/footer/ModalFooter.native.js +27 -15
- package/lib/components/modal/footer/ModalFooterProps.d.ts +3 -0
- package/lib/components/otp/Otp.d.ts +3 -3
- package/lib/components/otp/Otp.js +16 -10
- package/lib/components/otp/Otp.native.d.ts +4 -7
- package/lib/components/otp/Otp.native.js +46 -47
- package/lib/components/otp/OtpProps.d.ts +3 -0
- package/lib/components/pagination/Pagination.d.ts +4 -5
- package/lib/components/pagination/Pagination.js +41 -36
- package/lib/components/pagination/Pagination.native.d.ts +5 -8
- package/lib/components/pagination/Pagination.native.js +9 -9
- package/lib/components/pagination/PaginationNativePropsDefaults.js +9 -0
- package/lib/components/pagination/PaginationProps.d.ts +9 -3
- package/lib/components/pagination/PaginationPropsDefaults.js +1 -8
- package/lib/components/popover/Popover.d.ts +8 -6
- package/lib/components/popover/Popover.js +18 -12
- package/lib/components/popover/Popover.native.d.ts +3 -6
- package/lib/components/popover/Popover.native.js +6 -6
- package/lib/components/popover/PopoverProps.d.ts +5 -1
- package/lib/components/popover/PopoverPropsDefaults.js +14 -0
- package/lib/components/popover/PopoverWebPropsDefaults.js +14 -0
- package/lib/components/popover/index.d.ts +1 -2
- package/lib/components/popover/index.js +2 -3
- package/lib/components/price/Price.d.ts +3 -3
- package/lib/components/price/Price.js +20 -17
- package/lib/components/price/Price.native.d.ts +3 -6
- package/lib/components/price/Price.native.js +17 -16
- package/lib/components/price/PriceHelpers.js +1 -3
- package/lib/components/price/PriceProps.d.ts +3 -0
- package/lib/components/price/PricePropsDefaults.js +22 -2
- package/lib/components/product-tour/ProductTour.d.ts +3 -3
- package/lib/components/product-tour/ProductTour.js +7 -5
- package/lib/components/product-tour/ProductTour.native.d.ts +3 -6
- package/lib/components/product-tour/ProductTour.native.js +4 -4
- package/lib/components/product-tour/ProductTourProps.d.ts +3 -0
- package/lib/components/product-tour/ProductTourProps.js +1 -1
- package/lib/components/progress/Progress.d.ts +2 -2
- package/lib/components/progress/Progress.js +16 -10
- package/lib/components/progress/Progress.native.d.ts +5 -7
- package/lib/components/progress/Progress.native.js +44 -22
- package/lib/components/progress/ProgressProps.d.ts +6 -0
- package/lib/components/progress/ProgressPropsDefaults.js +22 -0
- package/lib/components/progress/index.d.ts +2 -1
- package/lib/components/progress/index.js +3 -2
- package/lib/components/progress/item/ProgressItem.d.ts +15 -0
- package/lib/components/progress/item/ProgressItem.js +28 -0
- package/lib/components/progress/item/ProgressItem.native.d.ts +12 -0
- package/lib/components/progress/item/ProgressItem.native.js +34 -0
- package/lib/components/progress/item/ProgressItemProps.d.ts +20 -0
- package/lib/components/progress/item/ProgressItemProps.js +2 -0
- package/lib/components/progress/item/ProgressItemPropsDefaults.js +76 -0
- package/lib/components/progress/item/index.d.ts +2 -0
- package/lib/components/progress/item/index.js +3 -0
- package/lib/components/progress/radial/ProgressRadial.d.ts +3 -3
- package/lib/components/progress/radial/ProgressRadial.js +8 -6
- package/lib/components/progress/radial/ProgressRadial.native.d.ts +3 -6
- package/lib/components/progress/radial/ProgressRadial.native.js +14 -17
- package/lib/components/progress/radial/ProgressRadialProps.d.ts +3 -0
- package/lib/components/progress/radial/ProgressRadialPropsDefaults.js +36 -4
- package/lib/components/progress/radial/item/ProgressRadialItemPropsDefaults.js +3 -0
- package/lib/components/radio/EventHandlerDefaults.js +21 -0
- package/lib/components/radio/Radio.d.ts +7 -6
- package/lib/components/radio/Radio.js +25 -20
- package/lib/components/radio/Radio.native.d.ts +8 -18
- package/lib/components/radio/Radio.native.js +26 -146
- package/lib/components/radio/RadioNativePropsDefaults.js +9 -0
- package/lib/components/radio/RadioProps.d.ts +12 -2
- package/lib/components/radio/RadioPropsDefaults.js +8 -0
- package/lib/components/radio/list/RadioList.d.ts +8 -7
- package/lib/components/radio/list/RadioList.js +27 -14
- package/lib/components/radio/list/RadioList.native.d.ts +3 -6
- package/lib/components/radio/list/RadioList.native.js +22 -7
- package/lib/components/radio/list/RadioListProps.d.ts +7 -2
- package/lib/components/radio/list/RadioListPropsDefaults.js +7 -0
- package/lib/components/radio/list/RadioListWebPropsDefaults.js +25 -1
- package/lib/components/radio/tiles/RadioTiles.d.ts +10 -6
- package/lib/components/radio/tiles/RadioTiles.js +19 -11
- package/lib/components/radio/tiles/RadioTiles.native.d.ts +12 -0
- package/lib/components/radio/tiles/RadioTiles.native.js +35 -0
- package/lib/components/radio/tiles/RadioTilesProps.d.ts +4 -0
- package/lib/components/radio/tiles/RadioTilesPropsDefaults.js +29 -2
- package/lib/components/radio/tiles/tile/RadioTile.d.ts +19 -6
- package/lib/components/radio/tiles/tile/RadioTile.js +43 -24
- package/lib/components/radio/tiles/tile/RadioTile.native.d.ts +20 -0
- package/lib/components/radio/tiles/tile/RadioTile.native.js +124 -0
- package/lib/components/radio/tiles/tile/RadioTileNativePropsDefaults.js +104 -0
- package/lib/components/radio/tiles/tile/RadioTileProps.d.ts +13 -2
- package/lib/components/radio/tiles/tile/RadioTilePropsCommonDefaults.js +97 -0
- package/lib/components/radio/tiles/tile/RadioTilePropsDefaults.js +92 -63
- package/lib/components/range/Range.d.ts +13 -2
- package/lib/components/range/Range.js +45 -21
- package/lib/components/range/Range.native.d.ts +7 -9
- package/lib/components/range/Range.native.js +16 -15
- package/lib/components/range/RangeNativePropsDefaults.js +9 -0
- package/lib/components/range/RangeProps.d.ts +10 -2
- package/lib/components/range/RangePropsDefaults.js +15 -0
- package/lib/components/rows/Rows.d.ts +2 -2
- package/lib/components/rows/Rows.js +7 -5
- package/lib/components/rows/Rows.native.d.ts +3 -6
- package/lib/components/rows/Rows.native.js +4 -4
- package/lib/components/rows/RowsProps.d.ts +3 -0
- package/lib/components/rows/row/Row.d.ts +2 -2
- package/lib/components/rows/row/Row.js +7 -5
- package/lib/components/rows/row/Row.native.d.ts +3 -6
- package/lib/components/rows/row/Row.native.js +5 -5
- package/lib/components/rows/row/RowProps.d.ts +3 -0
- package/lib/components/scroll-view/ScrollView.d.ts +1 -1
- package/lib/components/scroll-view/ScrollView.js +4 -3
- package/lib/components/scroll-view/ScrollView.native.d.ts +3 -3
- package/lib/components/scroll-view/ScrollView.native.js +13 -12
- package/lib/components/scroll-view/ScrollViewProps.d.ts +3 -0
- package/lib/components/scroll-view/ScrollViewPropsDefaults.js +7 -1
- package/lib/components/section/Section.d.ts +2 -2
- package/lib/components/section/Section.js +7 -5
- package/lib/components/section/Section.native.d.ts +3 -6
- package/lib/components/section/Section.native.js +16 -19
- package/lib/components/section/SectionProps.d.ts +8 -0
- package/lib/components/section/SectionPropsDefaults.js +14 -1
- package/lib/components/segment-control/SegmentControl.d.ts +3 -3
- package/lib/components/segment-control/SegmentControl.js +9 -7
- package/lib/components/segment-control/SegmentControl.native.d.ts +2 -6
- package/lib/components/segment-control/SegmentControl.native.js +11 -9
- package/lib/components/segment-control/SegmentControlProps.d.ts +5 -2
- package/lib/components/segment-control/SegmentControlPropsDefaults.js +11 -1
- package/lib/components/segment-control/item/SegmentControlItem.d.ts +3 -3
- package/lib/components/segment-control/item/SegmentControlItem.js +12 -10
- package/lib/components/segment-control/item/SegmentControlItem.native.d.ts +3 -6
- package/lib/components/segment-control/item/SegmentControlItem.native.js +9 -9
- package/lib/components/segment-control/item/SegmentControlItemProps.d.ts +3 -0
- package/lib/components/select/PropsDefaults.js +171 -0
- package/lib/components/select/Select.d.ts +20 -5
- package/lib/components/select/Select.js +47 -10
- package/lib/components/select/Select.native.d.ts +3 -7
- package/lib/components/select/Select.native.js +12 -10
- package/lib/components/select/SelectChangeEventDefaults.js +4 -0
- package/lib/components/select/SelectChangeEventNativeDefaults.js +37 -0
- package/lib/components/select/SelectEnum.d.ts +5 -0
- package/lib/components/select/SelectEnum.js +6 -0
- package/lib/components/select/SelectNativePropsDefaults.js +206 -0
- package/lib/components/select/SelectProps.d.ts +24 -6
- package/lib/components/select/SelectPropsDefaults.js +44 -9
- package/lib/components/select/context/index.d.ts +13 -0
- package/lib/components/select/context/index.js +10 -0
- package/lib/components/select/option/SelectOption.d.ts +3 -3
- package/lib/components/select/option/SelectOption.js +47 -12
- package/lib/components/select/option/SelectOption.native.d.ts +3 -6
- package/lib/components/select/option/SelectOption.native.js +19 -21
- package/lib/components/select/option/SelectOptionProps.d.ts +3 -0
- package/lib/components/select/option/SelectOptionPropsDefaults.js +2 -0
- package/lib/components/select/web/SelectDynamic.d.ts +5 -3
- package/lib/components/select/web/SelectDynamic.js +68 -178
- package/lib/components/select/web/SelectNative.d.ts +3 -3
- package/lib/components/select/web/SelectNative.js +23 -10
- package/lib/components/skeleton/Skeleton.d.ts +17 -0
- package/lib/components/skeleton/Skeleton.js +19 -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 +2 -2
- package/lib/components/spacer/Spacer.js +7 -5
- package/lib/components/spacer/Spacer.native.d.ts +3 -6
- package/lib/components/spacer/Spacer.native.js +4 -4
- package/lib/components/spacer/SpacerProps.d.ts +3 -0
- package/lib/components/stepper/Stepper.d.ts +2 -2
- package/lib/components/stepper/Stepper.js +8 -6
- package/lib/components/stepper/Stepper.native.d.ts +3 -6
- package/lib/components/stepper/Stepper.native.js +10 -8
- package/lib/components/stepper/StepperProps.d.ts +3 -0
- package/lib/components/stepper/step/Step.d.ts +2 -2
- package/lib/components/stepper/step/Step.js +7 -5
- package/lib/components/stepper/step/Step.native.d.ts +3 -7
- package/lib/components/stepper/step/Step.native.js +7 -10
- package/lib/components/stepper/step/StepProps.d.ts +3 -0
- package/lib/components/stepper/step/StepPropsDefaults.js +2 -0
- package/lib/components/sticker/Sticker.d.ts +4 -3
- package/lib/components/sticker/Sticker.js +13 -7
- package/lib/components/sticker/Sticker.native.d.ts +4 -6
- package/lib/components/sticker/Sticker.native.js +22 -13
- package/lib/components/sticker/StickerProps.d.ts +5 -2
- package/lib/components/sticker/StickerPropsDefaults.js +11 -2
- package/lib/components/sticker/index.d.ts +0 -1
- package/lib/components/sticker/index.js +1 -2
- package/lib/components/switch/Switch.d.ts +3 -3
- package/lib/components/switch/Switch.js +8 -7
- package/lib/components/switch/Switch.native.d.ts +4 -7
- package/lib/components/switch/Switch.native.js +13 -15
- package/lib/components/switch/SwitchProps.d.ts +3 -0
- package/lib/components/table/Table.d.ts +3 -3
- package/lib/components/table/Table.js +7 -5
- package/lib/components/table/Table.native.d.ts +3 -6
- package/lib/components/table/Table.native.js +4 -4
- package/lib/components/table/TableProps.d.ts +3 -0
- package/lib/components/table/TableProps.js +1 -1
- package/lib/components/table/body/TableBody.d.ts +3 -3
- package/lib/components/table/body/TableBody.js +7 -5
- package/lib/components/table/body/TableBody.native.d.ts +3 -6
- package/lib/components/table/body/TableBody.native.js +4 -4
- package/lib/components/table/body/TableBodyProps.d.ts +3 -0
- package/lib/components/table/body/TableBodyPropsDefaults.js +14 -2
- package/lib/components/table/head/TableHead.d.ts +3 -3
- package/lib/components/table/head/TableHead.js +7 -5
- package/lib/components/table/head/TableHead.native.d.ts +3 -6
- package/lib/components/table/head/TableHead.native.js +4 -4
- package/lib/components/table/head/TableHeadProps.d.ts +3 -0
- package/lib/components/table/head/TableHeadPropsDefaults.js +14 -2
- package/lib/components/table/td/TableTd.d.ts +3 -3
- package/lib/components/table/td/TableTd.js +7 -5
- package/lib/components/table/td/TableTd.native.d.ts +3 -6
- package/lib/components/table/td/TableTd.native.js +4 -4
- package/lib/components/table/td/TableTdProps.d.ts +3 -0
- package/lib/components/table/th/TableTh.d.ts +3 -3
- package/lib/components/table/th/TableTh.js +7 -5
- package/lib/components/table/th/TableTh.native.d.ts +2 -6
- package/lib/components/table/th/TableTh.native.js +4 -4
- package/lib/components/table/th/TableThProps.d.ts +3 -0
- package/lib/components/table/tr/TableTr.d.ts +3 -3
- package/lib/components/table/tr/TableTr.js +7 -5
- package/lib/components/table/tr/TableTr.native.d.ts +2 -6
- package/lib/components/table/tr/TableTr.native.js +5 -5
- package/lib/components/table/tr/TableTrProps.d.ts +3 -1
- package/lib/components/table/tr/TableTrPropsWebDefaults.js +7 -1
- package/lib/components/tabs/Tabs.d.ts +7 -8
- package/lib/components/tabs/Tabs.js +28 -18
- package/lib/components/tabs/Tabs.native.d.ts +11 -0
- package/lib/components/tabs/Tabs.native.js +33 -0
- package/lib/components/tabs/TabsProps.d.ts +4 -0
- package/lib/components/tabs/TabsPropsDefaults.js +30 -2
- package/lib/components/tabs/context/index.d.ts +11 -0
- package/lib/components/tabs/context/index.js +10 -0
- package/lib/components/tabs/tab-list/TabList.d.ts +2 -2
- package/lib/components/tabs/tab-list/TabList.js +75 -9
- package/lib/components/tabs/tab-list/TabList.native.d.ts +14 -0
- package/lib/components/tabs/tab-list/TabList.native.js +86 -0
- package/lib/components/tabs/tab-list/TabListProps.d.ts +5 -2
- package/lib/components/tabs/tab-list/TabListPropsDefaults.js +11 -1
- package/lib/components/tabs/tab-list/tab/Tab.d.ts +6 -5
- package/lib/components/tabs/tab-list/tab/Tab.js +37 -51
- package/lib/components/tabs/tab-list/tab/Tab.native.d.ts +16 -0
- package/lib/components/tabs/tab-list/tab/Tab.native.js +68 -0
- package/lib/components/tabs/tab-list/tab/TabProps.d.ts +4 -0
- package/lib/components/tabs/tab-list/tab/TabPropsDefaults.js +18 -9
- package/lib/components/tabs/tab-panels/TabPanels.d.ts +2 -2
- package/lib/components/tabs/tab-panels/TabPanels.js +14 -7
- package/lib/components/tabs/tab-panels/TabPanels.native.d.ts +13 -0
- package/lib/components/tabs/tab-panels/TabPanels.native.js +33 -0
- package/lib/components/tabs/tab-panels/TabPanelsProps.d.ts +3 -0
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.d.ts +2 -2
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.js +13 -7
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.native.d.ts +11 -0
- package/lib/components/tabs/tab-panels/tab-panel/TabPanel.native.js +44 -0
- package/lib/components/tabs/tab-panels/tab-panel/TabPanelProps.d.ts +5 -1
- package/lib/components/tabs/tab-panels/tab-panel/TabPanelPropsDefaults.js +7 -0
- package/lib/components/tag/Tag.d.ts +3 -3
- package/lib/components/tag/Tag.js +8 -6
- package/lib/components/tag/Tag.native.d.ts +3 -6
- package/lib/components/tag/Tag.native.js +10 -11
- package/lib/components/tag/TagProps.d.ts +3 -6
- package/lib/components/tag/TagPropsDefaults.js +1 -0
- package/lib/components/tag/list/TagList.d.ts +2 -2
- package/lib/components/tag/list/TagList.js +7 -5
- package/lib/components/tag/list/TagList.native.d.ts +3 -6
- package/lib/components/tag/list/TagList.native.js +5 -4
- package/lib/components/tag/list/TagListProps.d.ts +5 -2
- package/lib/components/tag/list/TagListPropsDefaults.js +11 -1
- package/lib/components/text/Text.d.ts +3 -4
- package/lib/components/text/Text.js +7 -6
- package/lib/components/text/Text.native.d.ts +3 -7
- package/lib/components/text/Text.native.js +14 -15
- package/lib/components/text/TextProps.d.ts +3 -0
- package/lib/components/textarea/Textarea.d.ts +5 -7
- package/lib/components/textarea/Textarea.js +35 -34
- package/lib/components/textarea/Textarea.native.d.ts +30 -2
- package/lib/components/textarea/Textarea.native.js +26 -57
- package/lib/components/textarea/TextareaProps.d.ts +2 -1
- package/lib/components/timeline/Timeline.d.ts +2 -2
- package/lib/components/timeline/Timeline.js +7 -5
- package/lib/components/timeline/Timeline.native.d.ts +2 -5
- package/lib/components/timeline/Timeline.native.js +4 -4
- package/lib/components/timeline/TimelineProps.d.ts +3 -0
- package/lib/components/timeline/content/TimelineContent.d.ts +6 -4
- package/lib/components/timeline/content/TimelineContent.js +15 -11
- package/lib/components/timeline/content/TimelineContent.native.d.ts +6 -10
- package/lib/components/timeline/content/TimelineContent.native.js +13 -14
- package/lib/components/timeline/content/TimelineContentProps.d.ts +3 -0
- package/lib/components/timeline/item/TimelineItem.d.ts +2 -2
- package/lib/components/timeline/item/TimelineItem.js +7 -5
- package/lib/components/timeline/item/TimelineItem.native.d.ts +3 -6
- package/lib/components/timeline/item/TimelineItem.native.js +6 -6
- package/lib/components/timeline/item/TimelineItemProps.d.ts +3 -0
- package/lib/components/timeline/marker/TimelineMarker.d.ts +4 -4
- package/lib/components/timeline/marker/TimelineMarker.js +8 -6
- package/lib/components/timeline/marker/TimelineMarker.native.d.ts +4 -7
- package/lib/components/timeline/marker/TimelineMarker.native.js +13 -11
- package/lib/components/timeline/marker/TimelineMarkerProps.d.ts +3 -0
- package/lib/components/timeline/marker/TimelineMarkerPropsDefaults.js +2 -0
- package/lib/components/timeline/marker/TimelineMarkerWebPropsDefaults.js +2 -0
- package/lib/components/timepicker-circular/TimepickerCircular.d.ts +8 -0
- package/lib/components/timepicker-circular/TimepickerCircular.js +12 -0
- package/lib/components/timepicker-circular/TimepickerCircular.native.d.ts +12 -0
- package/lib/components/timepicker-circular/TimepickerCircular.native.js +505 -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 +13 -0
- package/lib/components/timepicker-circular/TimepickerCircularProps.js +2 -0
- package/lib/components/timepicker-circular/TimepickerCircularPropsDefaults.js +45 -0
- package/lib/components/timepicker-circular/index.d.ts +3 -0
- package/lib/components/timepicker-circular/index.js +4 -0
- package/lib/components/title/Title.d.ts +4 -4
- package/lib/components/title/Title.js +7 -5
- package/lib/components/title/Title.native.d.ts +4 -7
- package/lib/components/title/Title.native.js +31 -42
- package/lib/components/title/TitleProps.d.ts +3 -0
- package/lib/components/title/TitlePropsDefaults.js +3 -3
- package/lib/components/view/View.d.ts +4 -4
- package/lib/components/view/View.js +6 -6
- package/lib/components/view/View.native.d.ts +2 -6
- package/lib/components/view/View.native.js +6 -6
- package/lib/components/view/ViewProps.d.ts +11 -2
- package/lib/components/view/ViewProps.js +8 -1
- package/lib/components/view/ViewPropsDefaults.js +62 -11
- package/lib/context/index.d.ts +1 -1
- package/lib/context/provider.d.ts +2 -1
- package/lib/context/provider.js +6 -4
- package/lib/context/providerStyled.js +5 -5
- package/lib/events/OnClickEvent.d.ts +1 -1
- package/lib/helpers/clickOutside.d.ts +1 -0
- package/lib/helpers/clickOutside.js +16 -0
- package/lib/helpers/device.d.ts +3 -0
- package/lib/helpers/device.js +5 -4
- package/lib/helpers/device.native.d.ts +19 -0
- package/lib/helpers/device.native.js +36 -0
- package/lib/helpers/hashClassesHelpers.d.ts +1 -1
- package/lib/helpers/hashClassesHelpers.js +5 -5
- package/lib/helpers/require.d.ts +2 -0
- package/lib/helpers/require.js +3 -0
- package/lib/objects/Typography/TypographyBold.js +2 -2
- package/lib/objects/Typography/TypographyColor.d.ts +1 -1
- package/lib/objects/Typography/TypographyColor.js +36 -38
- package/lib/objects/facets/Alignable.d.ts +18 -4
- package/lib/objects/facets/Alignable.js +28 -5
- package/lib/objects/facets/Color.d.ts +7 -4
- package/lib/objects/facets/Color.js +12 -2
- package/lib/objects/facets/Direction.d.ts +7 -0
- package/lib/objects/facets/Direction.js +8 -0
- package/lib/objects/facets/Justifiable.d.ts +25 -8
- package/lib/objects/facets/Justifiable.js +56 -19
- package/lib/objects/facets/index.d.ts +1 -0
- package/lib/objects/facets/index.js +2 -1
- package/lib/tsconfig.build.json +13 -0
- package/lib/tsconfig.json +0 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +2 -2
- package/lib/version.json +3 -0
- package/package.json +27 -8
- package/lib/components/popover/content/PopoverContent.d.ts +0 -10
- package/lib/components/popover/content/PopoverContent.js +0 -19
- package/lib/components/popover/content/PopoverContentProps.d.ts +0 -5
- package/lib/components/popover/content/PopoverContentProps.js +0 -2
- package/lib/components/sticker/StickerEnum.d.ts +0 -24
- package/lib/components/sticker/StickerEnum.js +0 -19
- package/lib/components/tag/TagClickEventDefaults.js +0 -1
- package/lib/hash.json +0 -3
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { __assign, __rest } from "tslib";
|
|
2
|
+
import { ComponentName } from '../../../components/enumsComponentsName';
|
|
3
|
+
import { SpacerSize } from '../../../components/spacer';
|
|
4
|
+
import { Alignable } from '../../../objects/facets/Alignable';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { StyleSheet, View } from 'react-native';
|
|
7
|
+
/**
|
|
8
|
+
* RadioTiles
|
|
9
|
+
* @param id {string}
|
|
10
|
+
* @param children {ReactNode}
|
|
11
|
+
* @param align { Alignable | AlignableValues} align content
|
|
12
|
+
* @param verticalAlign { Alignable | AlignableValues} align vertical content
|
|
13
|
+
*/
|
|
14
|
+
var RadioTiles = React.forwardRef(function (_a, ref) {
|
|
15
|
+
var id = _a.id, children = _a.children, align = _a.align, verticalAlign = _a.verticalAlign, others = __rest(_a, ["id", "children", "align", "verticalAlign"]);
|
|
16
|
+
var styles = StyleSheet.create({
|
|
17
|
+
container: {
|
|
18
|
+
alignItems: (verticalAlign === Alignable.ALIGNED_CENTER && 'center') ||
|
|
19
|
+
(verticalAlign === Alignable.ALIGNED_START && 'flex-start') ||
|
|
20
|
+
(verticalAlign === Alignable.ALIGNED_END && 'flex-end') ||
|
|
21
|
+
undefined,
|
|
22
|
+
justifyContent: (align === Alignable.ALIGNED_CENTER && 'center') ||
|
|
23
|
+
(align === Alignable.ALIGNED_START && 'flex-start') ||
|
|
24
|
+
(align === Alignable.ALIGNED_END && 'flex-end') ||
|
|
25
|
+
undefined,
|
|
26
|
+
flexDirection: 'row',
|
|
27
|
+
flexWrap: 'wrap',
|
|
28
|
+
gap: SpacerSize.TWO,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
return (React.createElement(View, __assign({ ref: ref, id: id, style: [styles.container] }, others), children));
|
|
32
|
+
});
|
|
33
|
+
RadioTiles.displayName = ComponentName.RadioTiles;
|
|
34
|
+
export default RadioTiles;
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmFkaW9UaWxlcy5uYXRpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9jb21wb25lbnRzL3JhZGlvL3RpbGVzL1JhZGlvVGlsZXMubmF0aXZlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGtDQUFrQyxDQUFBO0FBRWhFLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQTtBQUNoRCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sNEJBQTRCLENBQUE7QUFDdEQsT0FBTyxLQUFLLE1BQU0sT0FBTyxDQUFBO0FBQ3pCLE9BQU8sRUFBRSxVQUFVLEVBQUUsSUFBSSxFQUFFLE1BQU0sY0FBYyxDQUFBO0FBRS9DOzs7Ozs7R0FNRztBQUNILElBQU0sVUFBVSxHQUFHLEtBQUssQ0FBQyxVQUFVLENBQXVDLFVBQUMsRUFBaUQsRUFBRSxHQUF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BQVcsR0FBRyxhQUFhLENBQUMsVUFBVSxDQUFBO0FBRWpELGVBQWUsVUFBVSxDQUFBIn0=
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { View } from 'react-native';
|
|
2
3
|
import { AlignableProps } from '../../../objects';
|
|
3
4
|
import { CommonProps } from '../../../objects/facets/CommonProps';
|
|
4
5
|
/**
|
|
@@ -6,4 +7,7 @@ import { CommonProps } from '../../../objects/facets/CommonProps';
|
|
|
6
7
|
*/
|
|
7
8
|
export interface RadioTilesProps extends AlignableProps, CommonProps {
|
|
8
9
|
children: React.ReactNode;
|
|
10
|
+
accessibilityLabelledBy?: string;
|
|
9
11
|
}
|
|
12
|
+
export type RadioTilesRef = HTMLDivElement;
|
|
13
|
+
export type RadioTilesNativeRef = View;
|
|
@@ -13,6 +13,13 @@ export default {
|
|
|
13
13
|
"ReactPortal"
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
|
+
"accessibilityLabelledBy": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"values": [
|
|
19
|
+
"undefined",
|
|
20
|
+
"string"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
16
23
|
"align": {
|
|
17
24
|
"type": "enum",
|
|
18
25
|
"values": [
|
|
@@ -20,9 +27,19 @@ export default {
|
|
|
20
27
|
"ALIGNED_CENTER",
|
|
21
28
|
"ALIGNED_START",
|
|
22
29
|
"ALIGNED_END",
|
|
30
|
+
"ALIGNED_STRETCH",
|
|
23
31
|
"ALIGNED_CENTER",
|
|
24
32
|
"ALIGNED_START",
|
|
25
|
-
"ALIGNED_END"
|
|
33
|
+
"ALIGNED_END",
|
|
34
|
+
"ALIGNED_STRETCH",
|
|
35
|
+
"CENTER",
|
|
36
|
+
"START",
|
|
37
|
+
"END",
|
|
38
|
+
"STRETCH",
|
|
39
|
+
"CENTER",
|
|
40
|
+
"START",
|
|
41
|
+
"END",
|
|
42
|
+
"STRETCH"
|
|
26
43
|
]
|
|
27
44
|
},
|
|
28
45
|
"verticalAlign": {
|
|
@@ -32,9 +49,19 @@ export default {
|
|
|
32
49
|
"ALIGNED_CENTER",
|
|
33
50
|
"ALIGNED_START",
|
|
34
51
|
"ALIGNED_END",
|
|
52
|
+
"ALIGNED_STRETCH",
|
|
35
53
|
"ALIGNED_CENTER",
|
|
36
54
|
"ALIGNED_START",
|
|
37
|
-
"ALIGNED_END"
|
|
55
|
+
"ALIGNED_END",
|
|
56
|
+
"ALIGNED_STRETCH",
|
|
57
|
+
"CENTER",
|
|
58
|
+
"START",
|
|
59
|
+
"END",
|
|
60
|
+
"STRETCH",
|
|
61
|
+
"CENTER",
|
|
62
|
+
"START",
|
|
63
|
+
"END",
|
|
64
|
+
"STRETCH"
|
|
38
65
|
]
|
|
39
66
|
},
|
|
40
67
|
"id": {
|
|
@@ -1,10 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import { RadioTileProps } from '../../../../components/radio/tiles/tile/RadioTileProps';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* @param
|
|
4
|
+
* radioTile Component
|
|
5
|
+
* @param checked {boolean} Checked radio
|
|
6
|
+
* @param disabled {boolean} Disabled
|
|
7
|
+
* @param readOnly {boolean} readonly radio
|
|
8
|
+
* @param id {string} Id for button, by default id is generate
|
|
9
|
+
* @param label {string} Label for radio
|
|
10
|
+
* @param description {ReactNode} Description for radio
|
|
11
|
+
* @param onChange {ChangeEvent}
|
|
12
|
+
* @param name {string} Name for radio
|
|
13
|
+
* @param value {string} Value for radio
|
|
14
|
+
* @param icon {IconName} icon for radio
|
|
15
|
+
* @param horizontal Horizontal radio
|
|
16
|
+
* @param sticker {string} sticker label
|
|
17
|
+
* @param stickerVariant {VariantState} Sticker variant
|
|
6
18
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
7
|
-
* @param className {string}
|
|
19
|
+
* @param className {string} Additional css classes (ONLY FOR WEB)
|
|
20
|
+
* @param required {boolean} Required radio
|
|
8
21
|
*/
|
|
9
|
-
declare const RadioTile:
|
|
22
|
+
declare const RadioTile: React.ForwardRefExoticComponent<RadioTileProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
23
|
export default RadioTile;
|
|
@@ -1,36 +1,55 @@
|
|
|
1
|
-
import { __assign,
|
|
2
|
-
import
|
|
3
|
-
import { useEffect, useState } from 'react';
|
|
4
|
-
import clsx from 'clsx';
|
|
5
|
-
import { is } from '../../../../services/classify';
|
|
6
|
-
import { hashClass } from '../../../../helpers';
|
|
7
|
-
import { useTrilogyContext } from '../../../../context';
|
|
1
|
+
import { __assign, __rest } from "tslib";
|
|
2
|
+
import { ComponentName } from '../../../../components/enumsComponentsName';
|
|
8
3
|
import { Icon, IconSize } from '../../../../components/icon';
|
|
9
|
-
import
|
|
4
|
+
import { Sticker } from '../../../../components/sticker';
|
|
5
|
+
import { useTrilogyContext } from '../../../../context';
|
|
6
|
+
import { hashClass } from '../../../../helpers/hashClassesHelpers';
|
|
7
|
+
import { VariantState } from '../../../../objects/facets/Variant';
|
|
8
|
+
import { is } from '../../../../services/classify';
|
|
9
|
+
import clsx from 'clsx';
|
|
10
|
+
import React from 'react';
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
-
* @param
|
|
12
|
+
* radioTile Component
|
|
13
|
+
* @param checked {boolean} Checked radio
|
|
14
|
+
* @param disabled {boolean} Disabled
|
|
15
|
+
* @param readOnly {boolean} readonly radio
|
|
16
|
+
* @param id {string} Id for button, by default id is generate
|
|
17
|
+
* @param label {string} Label for radio
|
|
18
|
+
* @param description {ReactNode} Description for radio
|
|
19
|
+
* @param onChange {ChangeEvent}
|
|
20
|
+
* @param name {string} Name for radio
|
|
21
|
+
* @param value {string} Value for radio
|
|
22
|
+
* @param icon {IconName} icon for radio
|
|
23
|
+
* @param horizontal Horizontal radio
|
|
24
|
+
* @param sticker {string} sticker label
|
|
25
|
+
* @param stickerVariant {VariantState} Sticker variant
|
|
13
26
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
14
|
-
* @param className {string}
|
|
27
|
+
* @param className {string} Additional css classes (ONLY FOR WEB)
|
|
28
|
+
* @param required {boolean} Required radio
|
|
15
29
|
*/
|
|
16
|
-
var RadioTile = function (_a) {
|
|
17
|
-
var checked = _a.checked, className = _a.className, disabled = _a.disabled, readonly = _a.readonly, _b = _a.id, id = _b === void 0 ?
|
|
30
|
+
var RadioTile = React.forwardRef(function (_a, ref) {
|
|
31
|
+
var checked = _a.checked, className = _a.className, disabled = _a.disabled, readonly = _a.readonly, _b = _a.id, id = _b === void 0 ? React.useId() : _b, label = _a.label, onChange = _a.onChange, name = _a.name, value = _a.value, description = _a.description, icon = _a.icon, horizontal = _a.horizontal, required = _a.required, sticker = _a.sticker, _c = _a.stickerVariant, stickerVariant = _c === void 0 ? VariantState.ACCENT : _c, others = __rest(_a, ["checked", "className", "disabled", "readonly", "id", "label", "onChange", "name", "value", "description", "icon", "horizontal", "required", "sticker", "stickerVariant"]);
|
|
18
32
|
var styled = useTrilogyContext().styled;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
33
|
+
return (React.createElement("div", { ref: ref, className: hashClass(styled, clsx('radio-tile', horizontal && is('horizontal'), className)) },
|
|
34
|
+
React.createElement("input", __assign({ type: 'radio', readOnly: readonly, id: id, disabled: disabled, name: name, value: value, checked: checked, required: required, onChange: function (e) {
|
|
35
|
+
if (onChange && !disabled && !readonly) {
|
|
36
|
+
onChange(Object.assign(e, {
|
|
37
|
+
radioId: e.target.id,
|
|
38
|
+
radioValue: e.target.value,
|
|
39
|
+
radioName: e.target.name,
|
|
40
|
+
radioChecked: e.target.checked,
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
} }, others)),
|
|
27
44
|
React.createElement("label", { htmlFor: id, className: hashClass(styled, clsx('radio-label')) },
|
|
28
45
|
icon && React.createElement(Icon, { name: icon, size: IconSize.MEDIUM }),
|
|
29
46
|
horizontal ? (React.createElement("span", null,
|
|
30
47
|
React.createElement("span", { className: hashClass(styled, clsx('radio-title')) }, label),
|
|
31
48
|
description && React.createElement("span", { className: hashClass(styled, clsx('radio-description')) }, description))) : (React.createElement(React.Fragment, null,
|
|
32
49
|
React.createElement("span", { className: hashClass(styled, clsx('radio-title')) }, label),
|
|
33
|
-
description && React.createElement("span", { className: hashClass(styled, clsx('radio-description')) }, description))))
|
|
34
|
-
};
|
|
50
|
+
description && React.createElement("span", { className: hashClass(styled, clsx('radio-description')) }, description)))),
|
|
51
|
+
sticker && React.createElement(Sticker, { label: sticker, variant: stickerVariant, className: 'radio-sticker', small: true })));
|
|
52
|
+
});
|
|
53
|
+
RadioTile.displayName = ComponentName.RadioTile;
|
|
35
54
|
export default RadioTile;
|
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmFkaW9UaWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vY29tcG9uZW50cy9yYWRpby90aWxlcy90aWxlL1JhZGlvVGlsZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQTtBQUNoRSxPQUFPLEVBQUUsSUFBSSxFQUFFLFFBQVEsRUFBRSxNQUFNLG1CQUFtQixDQUFBO0FBRWxELE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQTtBQUM5QyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxXQUFXLENBQUE7QUFDN0MsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLDhCQUE4QixDQUFBO0FBQ3hELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSwwQkFBMEIs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BQVMsRUFBRSxTQUFTLENBQUMsTUFBTSxFQUFFLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDLElBQUcsV0FBVyxDQUFRLENBQzlGLENBQ1IsQ0FBQyxDQUFDLENBQUMsQ0FDRjtnQkFDRSw4QkFBTSxTQUFTLEVBQUUsU0FBUyxDQUFDLE1BQU0sRUFBRSxJQUFJLENBQUMsYUFBYSxDQUFDLENBQUMsSUFBRyxLQUFLLENBQVE7Z0JBQ3RFLFdBQVcsSUFBSSw4QkFBTSxTQUFTLEVBQUUsU0FBUyxDQUFDLE1BQU0sRUFBRSxJQUFJLENBQUMsbUJBQW1CLENBQUMsQ0FBQyxJQUFHLFdBQVcsQ0FBUSxDQUNsRyxDQUNKLENBQ0s7UUFDUCxPQUFPLElBQUksb0JBQUMsT0FBTyxJQUFDLEtBQUssRUFBRSxPQUFPLEVBQUUsT0FBTyxFQUFFLGNBQWMsRUFBRSxTQUFTLEVBQUMsZUFBZSxFQUFDLEtBQUssU0FBRyxDQUM1RixDQUNQLENBQUE7QUFDSCxDQUFDLENBQ0YsQ0FBQTtBQUVELFNBQVMsQ0FBQyxXQUFXLEdBQUcsYUFBYSxDQUFDLFNBQVMsQ0FBQTtBQUMvQyxlQUFlLFNBQVMsQ0FBQSJ9
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RadioTileNativeProps } from '../../../../components/radio/tiles/tile/RadioTileProps';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TouchableOpacity } from 'react-native';
|
|
4
|
+
/**
|
|
5
|
+
* radioTile Component
|
|
6
|
+
* @param checked {boolean} Checked radio
|
|
7
|
+
* @param disabled {boolean} Disabled
|
|
8
|
+
* @param readOnly {boolean} readonly radio
|
|
9
|
+
* @param id {string} Id for button, by default id is generate
|
|
10
|
+
* @param label {string} Label for radio
|
|
11
|
+
* @param description {ReactNode} Description for radio
|
|
12
|
+
* @param onChange {ChangeEvent}
|
|
13
|
+
* @param name {string} Name for radio
|
|
14
|
+
* @param value {string} Value for radio
|
|
15
|
+
* @param icon {IconName} icon for radio
|
|
16
|
+
* @param horizontal Horizontal radio
|
|
17
|
+
* @param stickerVariant {VariantState} Sticker variant
|
|
18
|
+
*/
|
|
19
|
+
declare const RadioTile: React.ForwardRefExoticComponent<RadioTileNativeProps & React.RefAttributes<TouchableOpacity>>;
|
|
20
|
+
export default RadioTile;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { __assign, __read, __rest } from "tslib";
|
|
2
|
+
import { ComponentName } from '../../../../components/enumsComponentsName';
|
|
3
|
+
import { Icon, IconSize } from '../../../../components/icon';
|
|
4
|
+
import { SpacerSize } from '../../../../components/spacer';
|
|
5
|
+
import { Sticker } from '../../../../components/sticker';
|
|
6
|
+
import { Text, TextLevels } from '../../../../components/text';
|
|
7
|
+
import { VariantState } from '../../../../objects';
|
|
8
|
+
import { getColorStyle, TrilogyColor } from '../../../../objects/facets/Color';
|
|
9
|
+
import { TypographyAlign, TypographyColor } from '../../../../objects/Typography';
|
|
10
|
+
import { TypographyBold } from '../../../../objects/Typography/TypographyBold';
|
|
11
|
+
import React, { useCallback, useMemo, useState } from 'react';
|
|
12
|
+
import { StyleSheet, TouchableOpacity, View } from 'react-native';
|
|
13
|
+
/**
|
|
14
|
+
* radioTile Component
|
|
15
|
+
* @param checked {boolean} Checked radio
|
|
16
|
+
* @param disabled {boolean} Disabled
|
|
17
|
+
* @param readOnly {boolean} readonly radio
|
|
18
|
+
* @param id {string} Id for button, by default id is generate
|
|
19
|
+
* @param label {string} Label for radio
|
|
20
|
+
* @param description {ReactNode} Description for radio
|
|
21
|
+
* @param onChange {ChangeEvent}
|
|
22
|
+
* @param name {string} Name for radio
|
|
23
|
+
* @param value {string} Value for radio
|
|
24
|
+
* @param icon {IconName} icon for radio
|
|
25
|
+
* @param horizontal Horizontal radio
|
|
26
|
+
* @param stickerVariant {VariantState} Sticker variant
|
|
27
|
+
*/
|
|
28
|
+
var RadioTile = React.forwardRef(function (_a, ref) {
|
|
29
|
+
var checked = _a.checked, disabled = _a.disabled, _b = _a.id, id = _b === void 0 ? React.useId() : _b, label = _a.label, onChange = _a.onChange, name = _a.name, value = _a.value, description = _a.description, icon = _a.icon, horizontal = _a.horizontal, readonly = _a.readonly, sticker = _a.sticker, _c = _a.stickerVariant, stickerVariant = _c === void 0 ? VariantState.ACCENT : _c, others = __rest(_a, ["checked", "disabled", "id", "label", "onChange", "name", "value", "description", "icon", "horizontal", "readonly", "sticker", "stickerVariant"]);
|
|
30
|
+
var _d = __read(useState(0), 2), stickerHeight = _d[0], setStickerHeight = _d[1];
|
|
31
|
+
var styles = StyleSheet.create({
|
|
32
|
+
container: {
|
|
33
|
+
flexDirection: horizontal ? 'row' : 'column',
|
|
34
|
+
width: horizontal ? '100%' : undefined,
|
|
35
|
+
borderWidth: checked ? 2 : 1,
|
|
36
|
+
alignItems: 'center',
|
|
37
|
+
gap: SpacerSize.THREE,
|
|
38
|
+
borderRadius: 6,
|
|
39
|
+
padding: !checked ? SpacerSize.FOUR : SpacerSize.FOUR - 1,
|
|
40
|
+
maxWidth: horizontal ? undefined : '50%',
|
|
41
|
+
backgroundColor: getColorStyle(disabled ? TrilogyColor.DISABLED_FADE : TrilogyColor.BACKGROUND),
|
|
42
|
+
borderColor: getColorStyle(disabled ? TrilogyColor.DISABLED : checked ? TrilogyColor.MAIN : TrilogyColor.STROKE),
|
|
43
|
+
},
|
|
44
|
+
icon: {
|
|
45
|
+
width: 'auto',
|
|
46
|
+
},
|
|
47
|
+
content: {
|
|
48
|
+
width: 'auto',
|
|
49
|
+
gap: SpacerSize.ONE,
|
|
50
|
+
flex: 1,
|
|
51
|
+
},
|
|
52
|
+
sticker: {
|
|
53
|
+
position: 'absolute',
|
|
54
|
+
top: checked ? -stickerHeight / 2 - 1 : -stickerHeight / 2,
|
|
55
|
+
right: checked ? 15 : 16,
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
var typoTitle = useMemo(function () {
|
|
59
|
+
var typos = [TypographyBold.TEXT_WEIGHT_SEMIBOLD];
|
|
60
|
+
if (!horizontal)
|
|
61
|
+
typos.push(TypographyAlign.TEXT_CENTERED);
|
|
62
|
+
if (disabled)
|
|
63
|
+
typos.push(TypographyColor.TEXT_DISABLED);
|
|
64
|
+
return typos;
|
|
65
|
+
}, [disabled, horizontal]);
|
|
66
|
+
var typoText = useMemo(function () {
|
|
67
|
+
var typos = [];
|
|
68
|
+
if (!horizontal)
|
|
69
|
+
typos.push(TypographyAlign.TEXT_CENTERED);
|
|
70
|
+
if (disabled)
|
|
71
|
+
typos.push(TypographyColor.TEXT_DISABLED);
|
|
72
|
+
return typos;
|
|
73
|
+
}, [horizontal, disabled]);
|
|
74
|
+
var handleChange = useCallback(function () {
|
|
75
|
+
if (onChange && !readonly && !disabled)
|
|
76
|
+
onChange({
|
|
77
|
+
radioValue: value || '',
|
|
78
|
+
radioName: name || '',
|
|
79
|
+
radioChecked: true,
|
|
80
|
+
radioId: id,
|
|
81
|
+
});
|
|
82
|
+
}, [value, name, id, disabled, readonly, onChange]);
|
|
83
|
+
return (React.createElement(TouchableOpacity, __assign({ ref: ref, disabled: disabled, style: [styles.container], onPress: handleChange }, others),
|
|
84
|
+
React.createElement(InputRadio, { checked: checked, disabled: disabled }),
|
|
85
|
+
sticker && (React.createElement(View, { style: styles.sticker, onLayout: function (e) { return setStickerHeight(e.nativeEvent.layout.height); } },
|
|
86
|
+
React.createElement(Sticker, { label: sticker, variant: stickerVariant, className: 'radio-sticker', small: true }))),
|
|
87
|
+
icon && (React.createElement(View, { style: [styles.icon] },
|
|
88
|
+
React.createElement(Icon, { size: IconSize.SMALL, name: icon }))),
|
|
89
|
+
React.createElement(View, { style: [styles.content] },
|
|
90
|
+
label && (React.createElement(Text, { level: TextLevels.ONE, typo: typoTitle }, String(label))),
|
|
91
|
+
description && typeof description.valueOf() === 'string' ? (React.createElement(Text, { level: TextLevels.TWO, typo: typoText }, String(description))) : (description))));
|
|
92
|
+
});
|
|
93
|
+
var InputRadio = function (_a) {
|
|
94
|
+
var checked = _a.checked, disabled = _a.disabled;
|
|
95
|
+
var styles = StyleSheet.create({
|
|
96
|
+
input: {
|
|
97
|
+
marginRight: 'auto',
|
|
98
|
+
width: 18,
|
|
99
|
+
height: 18,
|
|
100
|
+
borderWidth: 1,
|
|
101
|
+
borderRadius: 18,
|
|
102
|
+
justifyContent: 'center',
|
|
103
|
+
alignItems: 'center',
|
|
104
|
+
borderColor: getColorStyle(disabled ? TrilogyColor.DISABLED : checked ? TrilogyColor.MAIN : TrilogyColor.STROKE),
|
|
105
|
+
},
|
|
106
|
+
inputRadio: {
|
|
107
|
+
width: 12,
|
|
108
|
+
height: 12,
|
|
109
|
+
borderRadius: 12,
|
|
110
|
+
backgroundColor: getColorStyle(disabled && checked
|
|
111
|
+
? TrilogyColor.DISABLED
|
|
112
|
+
: disabled && !checked
|
|
113
|
+
? TrilogyColor.DISABLED_FADE
|
|
114
|
+
: checked
|
|
115
|
+
? TrilogyColor.MAIN
|
|
116
|
+
: TrilogyColor.BACKGROUND),
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
return (React.createElement(View, { style: [styles.input] },
|
|
120
|
+
React.createElement(View, { style: [styles.inputRadio] })));
|
|
121
|
+
};
|
|
122
|
+
RadioTile.displayName = ComponentName.RadioTile;
|
|
123
|
+
export default RadioTile;
|
|
124
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmFkaW9UaWxlLm5hdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2NvbXBvbmVudHMvcmFkaW8vdGlsZXMvdGlsZS9SYWRpb1RpbGUubmF0aXZlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGtDQUFrQyxDQUFBO0FBQ2hFLE9BQU8sRUFBRSxJQUFJLE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QjtTQUNGO0tBQ0YsQ0FBQyxDQUFBO0lBQ0YsT0FBTyxDQUNMLG9CQUFDLElBQUksSUFBQyxLQUFLLEVBQUUsQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDO1FBQ3pCLG9CQUFDLElBQUksSUFBQyxLQUFLLEVBQUUsQ0FBQyxNQUFNLENBQUMsVUFBVSxDQUFDLEdBQUksQ0FDL0IsQ0FDUixDQUFBO0FBQ0gsQ0FBQyxDQUFBO0FBRUQsU0FBUyxDQUFDLFdBQVcsR0FBRyxhQUFhLENBQUMsU0FBUyxDQUFBO0FBQy9DLGVBQWUsU0FBUyxDQUFBIn0=
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"onChange": {
|
|
3
|
+
"type": "function",
|
|
4
|
+
"values": [
|
|
5
|
+
"undefined",
|
|
6
|
+
"RadioChangeEventHandlerNative"
|
|
7
|
+
]
|
|
8
|
+
},
|
|
9
|
+
"horizontal": {
|
|
10
|
+
"type": "boolean",
|
|
11
|
+
"values": [
|
|
12
|
+
"undefined",
|
|
13
|
+
"false",
|
|
14
|
+
"true"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"icon": {
|
|
18
|
+
"type": "enum",
|
|
19
|
+
"values": [
|
|
20
|
+
"undefined",
|
|
21
|
+
"tri-alert",
|
|
22
|
+
"tri-arrow-down",
|
|
23
|
+
"tri-arrow-left",
|
|
24
|
+
"tri-arrow-right",
|
|
25
|
+
"tri-arrow-up",
|
|
26
|
+
"tri-bell",
|
|
27
|
+
"tri-calendar",
|
|
28
|
+
"tri-check-circle",
|
|
29
|
+
"tri-check",
|
|
30
|
+
"tri-exclamation-circle",
|
|
31
|
+
"tri-eye-slash",
|
|
32
|
+
"tri-eye",
|
|
33
|
+
"tri-infos-circle",
|
|
34
|
+
"tri-search",
|
|
35
|
+
"tri-times",
|
|
36
|
+
"tri-trash",
|
|
37
|
+
"tri-picto-faciliti",
|
|
38
|
+
"tri-picto-handicapzero",
|
|
39
|
+
"tri-picto-la-fibre",
|
|
40
|
+
"tri-picto-payment-americanexpress",
|
|
41
|
+
"tri-picto-payment-cb",
|
|
42
|
+
"tri-picto-payment-mastercard",
|
|
43
|
+
"tri-picto-payment-paypal",
|
|
44
|
+
"tri-picto-payment-visa",
|
|
45
|
+
"tri-alert",
|
|
46
|
+
"tri-arrow-down",
|
|
47
|
+
"tri-arrow-left",
|
|
48
|
+
"tri-arrow-right",
|
|
49
|
+
"tri-arrow-up",
|
|
50
|
+
"tri-bell",
|
|
51
|
+
"tri-calendar",
|
|
52
|
+
"tri-check-circle",
|
|
53
|
+
"tri-check",
|
|
54
|
+
"tri-exclamation-circle",
|
|
55
|
+
"tri-eye-slash",
|
|
56
|
+
"tri-eye",
|
|
57
|
+
"tri-infos-circle",
|
|
58
|
+
"tri-search",
|
|
59
|
+
"tri-times",
|
|
60
|
+
"tri-trash",
|
|
61
|
+
"tri-picto-faciliti",
|
|
62
|
+
"tri-picto-handicapzero",
|
|
63
|
+
"tri-picto-la-fibre",
|
|
64
|
+
"tri-picto-payment-americanexpress",
|
|
65
|
+
"tri-picto-payment-cb",
|
|
66
|
+
"tri-picto-payment-mastercard",
|
|
67
|
+
"tri-picto-payment-paypal",
|
|
68
|
+
"tri-picto-payment-visa"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"description": {
|
|
72
|
+
"type": "react",
|
|
73
|
+
"values": [
|
|
74
|
+
"undefined",
|
|
75
|
+
"null",
|
|
76
|
+
"string",
|
|
77
|
+
"number",
|
|
78
|
+
"false",
|
|
79
|
+
"true",
|
|
80
|
+
"JSXElementConstructor<any>>",
|
|
81
|
+
"ReactNode>",
|
|
82
|
+
"ReactPortal"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"sticker": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"values": [
|
|
88
|
+
"undefined",
|
|
89
|
+
"string"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"stickerVariant": {
|
|
93
|
+
"type": "enum",
|
|
94
|
+
"values": [
|
|
95
|
+
"undefined",
|
|
96
|
+
"INFO",
|
|
97
|
+
"MAIN",
|
|
98
|
+
"ACCENT",
|
|
99
|
+
"MAIN",
|
|
100
|
+
"ACCENT",
|
|
101
|
+
"INFO"
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
};
|
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { VariantProps } from '../../../../objects';
|
|
3
|
+
import { TouchableOpacity } from 'react-native';
|
|
2
4
|
import { IconName, IconNameValues } from '../../../../components/icon';
|
|
3
|
-
import { RadioProps } from '../../../../components/radio/RadioProps';
|
|
5
|
+
import { RadioNativeProps, RadioProps } from '../../../../components/radio/RadioProps';
|
|
4
6
|
/**
|
|
5
7
|
* Columns Item Interface
|
|
6
8
|
*/
|
|
7
|
-
|
|
9
|
+
interface RadioTilePropsCommon {
|
|
8
10
|
horizontal?: boolean;
|
|
9
11
|
icon?: IconName | IconNameValues;
|
|
10
12
|
description?: string | React.ReactNode;
|
|
13
|
+
sticker?: string;
|
|
14
|
+
stickerVariant?: VariantProps['variant'];
|
|
11
15
|
}
|
|
16
|
+
export interface RadioTileProps extends RadioProps, RadioTilePropsCommon {
|
|
17
|
+
}
|
|
18
|
+
export interface RadioTileNativeProps extends RadioNativeProps, RadioTilePropsCommon {
|
|
19
|
+
}
|
|
20
|
+
export type RadioTileRef = HTMLDivElement;
|
|
21
|
+
export type RadioTileNativeRef = TouchableOpacity;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,97 @@
|
|
|
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-bell",
|
|
20
|
+
"tri-calendar",
|
|
21
|
+
"tri-check-circle",
|
|
22
|
+
"tri-check",
|
|
23
|
+
"tri-exclamation-circle",
|
|
24
|
+
"tri-eye-slash",
|
|
25
|
+
"tri-eye",
|
|
26
|
+
"tri-infos-circle",
|
|
27
|
+
"tri-search",
|
|
28
|
+
"tri-times",
|
|
29
|
+
"tri-trash",
|
|
30
|
+
"tri-picto-faciliti",
|
|
31
|
+
"tri-picto-handicapzero",
|
|
32
|
+
"tri-picto-la-fibre",
|
|
33
|
+
"tri-picto-payment-americanexpress",
|
|
34
|
+
"tri-picto-payment-cb",
|
|
35
|
+
"tri-picto-payment-mastercard",
|
|
36
|
+
"tri-picto-payment-paypal",
|
|
37
|
+
"tri-picto-payment-visa",
|
|
38
|
+
"tri-alert",
|
|
39
|
+
"tri-arrow-down",
|
|
40
|
+
"tri-arrow-left",
|
|
41
|
+
"tri-arrow-right",
|
|
42
|
+
"tri-arrow-up",
|
|
43
|
+
"tri-bell",
|
|
44
|
+
"tri-calendar",
|
|
45
|
+
"tri-check-circle",
|
|
46
|
+
"tri-check",
|
|
47
|
+
"tri-exclamation-circle",
|
|
48
|
+
"tri-eye-slash",
|
|
49
|
+
"tri-eye",
|
|
50
|
+
"tri-infos-circle",
|
|
51
|
+
"tri-search",
|
|
52
|
+
"tri-times",
|
|
53
|
+
"tri-trash",
|
|
54
|
+
"tri-picto-faciliti",
|
|
55
|
+
"tri-picto-handicapzero",
|
|
56
|
+
"tri-picto-la-fibre",
|
|
57
|
+
"tri-picto-payment-americanexpress",
|
|
58
|
+
"tri-picto-payment-cb",
|
|
59
|
+
"tri-picto-payment-mastercard",
|
|
60
|
+
"tri-picto-payment-paypal",
|
|
61
|
+
"tri-picto-payment-visa"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"description": {
|
|
65
|
+
"type": "react",
|
|
66
|
+
"values": [
|
|
67
|
+
"undefined",
|
|
68
|
+
"null",
|
|
69
|
+
"string",
|
|
70
|
+
"number",
|
|
71
|
+
"false",
|
|
72
|
+
"true",
|
|
73
|
+
"JSXElementConstructor<any>>",
|
|
74
|
+
"ReactNode>",
|
|
75
|
+
"ReactPortal"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"sticker": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"values": [
|
|
81
|
+
"undefined",
|
|
82
|
+
"string"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"stickerVariant": {
|
|
86
|
+
"type": "enum",
|
|
87
|
+
"values": [
|
|
88
|
+
"undefined",
|
|
89
|
+
"INFO",
|
|
90
|
+
"MAIN",
|
|
91
|
+
"ACCENT",
|
|
92
|
+
"MAIN",
|
|
93
|
+
"ACCENT",
|
|
94
|
+
"INFO"
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
};
|