@trilogy-ds/react 0.0.1-beta-98 → 0.0.1-beta-99
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 +1 -1
- package/lib/components/accordion/Accordion.js +4 -3
- package/lib/components/accordion/Accordion.js.map +1 -1
- package/lib/components/accordion/AccordionPropsDefaults.js +45 -0
- package/lib/components/accordion/body/AccordionBody.d.ts +0 -1
- package/lib/components/accordion/body/AccordionBody.js +0 -1
- package/lib/components/accordion/body/AccordionBody.js.map +1 -1
- package/lib/components/accordion/body/AccordionBodyProps.d.ts +0 -1
- package/lib/components/accordion/body/AccordionBodyPropsDefaults.js +52 -0
- package/lib/components/accordion/header/AccordionHeader.js +1 -1
- package/lib/components/accordion/header/AccordionHeader.js.map +1 -1
- package/lib/components/accordion/header/AccordionHeaderPropsDefaults.js +60 -0
- package/lib/components/accordion/index.d.ts +1 -2
- package/lib/components/accordion/index.js +1 -2
- package/lib/components/accordion/index.js.map +1 -1
- package/lib/components/accordion/item/AccordionItem.js +2 -1
- package/lib/components/accordion/item/AccordionItem.js.map +1 -1
- package/lib/components/accordion/item/AccordionItem.native.js +4 -4
- package/lib/components/accordion/item/AccordionItem.native.js.map +1 -1
- package/lib/components/accordion/item/AccordionItemPropsDefaults.js +68 -0
- package/lib/components/accordion/item/OnClickCallbackDefaults.js +1 -0
- package/lib/components/alert/Alert.d.ts +4 -5
- package/lib/components/alert/Alert.js +11 -12
- package/lib/components/alert/Alert.js.map +1 -1
- package/lib/components/alert/Alert.native.d.ts +6 -6
- package/lib/components/alert/Alert.native.js +13 -15
- package/lib/components/alert/Alert.native.js.map +1 -1
- package/lib/components/alert/AlertProps.d.ts +3 -4
- package/lib/components/alert/AlertPropsDefaults.js +155 -0
- package/lib/components/alert/ToasterStatusPropsDefaults.js +227 -0
- package/lib/components/alert/context/ToastConfigDefaults.js +24 -0
- package/lib/components/alert/context/ToastPropsDefaults.js +129 -0
- package/lib/components/alert/context/ToasterContextProps.d.ts +3 -3
- package/lib/components/alert/index.d.ts +1 -2
- package/lib/components/alert/index.js +1 -2
- package/lib/components/alert/index.js.map +1 -1
- package/lib/components/autocomplete/AutoComplete.d.ts +4 -0
- package/lib/components/{input/autocomplete → autocomplete}/AutoComplete.js +10 -9
- package/lib/components/autocomplete/AutoComplete.js.map +1 -0
- package/lib/components/{input/autocomplete → autocomplete}/AutoComplete.native.d.ts +2 -2
- package/lib/components/{input/autocomplete → autocomplete}/AutoComplete.native.js +1 -1
- package/lib/components/autocomplete/AutoComplete.native.js.map +1 -0
- package/lib/components/autocomplete/AutoCompleteProps.d.ts +49 -0
- package/lib/components/autocomplete/AutoCompleteProps.js.map +1 -0
- package/lib/components/autocomplete/AutoCompletePropsNativeDefaults.js +752 -0
- package/lib/components/autocomplete/AutoCompletePropsWebDefaults.js +752 -0
- package/lib/components/autocomplete/Autocomplete.helpers.js.map +1 -0
- package/lib/components/autocomplete/ItemDefaults.js +10 -0
- package/lib/components/autocomplete/ItemSelectedEventDefaults.js +10 -0
- package/lib/components/autocomplete/index.js.map +1 -0
- package/lib/components/{input/autocomplete → autocomplete}/item/AutoCompleteIem.native.js +2 -2
- package/lib/components/autocomplete/item/AutoCompleteIem.native.js.map +1 -0
- package/lib/components/{input/autocomplete → autocomplete}/item/AutoCompleteItem.js +3 -3
- package/lib/components/autocomplete/item/AutoCompleteItem.js.map +1 -0
- package/lib/components/{input/autocomplete → autocomplete}/item/AutoCompleteItemProps.d.ts +1 -1
- package/lib/components/autocomplete/item/AutoCompleteItemProps.js.map +1 -0
- package/lib/components/autocomplete/item/AutoCompleteItemPropsDefaults.js +56 -0
- package/lib/components/autocomplete/item/index.js.map +1 -0
- package/lib/components/{input/autocomplete → autocomplete}/menu/AutoCompleteMenu.js +3 -3
- package/lib/components/autocomplete/menu/AutoCompleteMenu.js.map +1 -0
- package/lib/components/{input/autocomplete → autocomplete}/menu/AutoCompleteMenu.native.js +3 -3
- package/lib/components/autocomplete/menu/AutoCompleteMenu.native.js.map +1 -0
- package/lib/components/autocomplete/menu/AutoCompleteMenuProps.js.map +1 -0
- package/lib/components/autocomplete/menu/AutoCompleteMenuPropsDefaults.js +60 -0
- package/lib/components/autocomplete/menu/index.js.map +1 -0
- package/lib/components/autocomplete/utils/debounce.js.map +1 -0
- package/lib/components/autocomplete/utils/index.js.map +1 -0
- package/lib/components/autolayout/AutoLayout.native.js +1 -1
- package/lib/components/autolayout/AutoLayout.native.js.map +1 -1
- package/lib/components/autolayout/DefaultSpacingMatrix.js +31 -74
- package/lib/components/autolayout/DefaultSpacingMatrix.js.map +1 -1
- package/lib/components/badge/Badge.d.ts +2 -3
- package/lib/components/badge/Badge.js +6 -12
- package/lib/components/badge/Badge.js.map +1 -1
- package/lib/components/badge/Badge.native.d.ts +2 -3
- package/lib/components/badge/Badge.native.js +6 -10
- package/lib/components/badge/Badge.native.js.map +1 -1
- package/lib/components/badge/BadgeEnum.d.ts +0 -5
- package/lib/components/badge/BadgeEnum.js +0 -5
- package/lib/components/badge/BadgeEnum.js.map +1 -1
- package/lib/components/badge/BadgeProps.d.ts +1 -3
- package/lib/components/badge/BadgePropsDefaults.js +75 -0
- package/lib/components/badge/index.d.ts +1 -2
- package/lib/components/badge/index.js +1 -2
- package/lib/components/badge/index.js.map +1 -1
- package/lib/components/box/Box.d.ts +3 -3
- package/lib/components/box/Box.js +4 -4
- package/lib/components/box/Box.js.map +1 -1
- package/lib/components/box/Box.native.d.ts +3 -3
- package/lib/components/box/Box.native.js +14 -15
- package/lib/components/box/Box.native.js.map +1 -1
- package/lib/components/box/BoxProps.d.ts +1 -1
- package/lib/components/box/BoxPropsDefaults.js +212 -0
- package/lib/components/box/content/BoxContent.d.ts +2 -2
- package/lib/components/box/content/BoxContent.js +3 -3
- package/lib/components/box/content/BoxContent.js.map +1 -1
- package/lib/components/box/content/BoxContent.native.d.ts +2 -2
- package/lib/components/box/content/BoxContent.native.js +4 -6
- package/lib/components/box/content/BoxContent.native.js.map +1 -1
- package/lib/components/box/content/BoxContentPropsDefaults.js +100 -0
- package/lib/components/box/footer/BoxFooterPropsDefaults.js +85 -0
- package/lib/components/box/header/BoxHeaderPropsDefaults.js +116 -0
- package/lib/components/box/index.d.ts +1 -2
- package/lib/components/box/index.js +1 -2
- package/lib/components/box/index.js.map +1 -1
- package/lib/components/box/item/BoxItemPropsDefaults.js +35 -0
- package/lib/components/box/table-container/BoxTableContainerPropsDefaults.js +45 -0
- package/lib/components/breadcrumb/Breadcrumb.d.ts +2 -2
- package/lib/components/breadcrumb/Breadcrumb.js +4 -3
- package/lib/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/BreadcrumbPropsDefaults.js +38 -0
- package/lib/components/breadcrumb/BreadcrumbWebPropsDefaults.js +45 -0
- package/lib/components/breadcrumb/index.d.ts +1 -2
- package/lib/components/breadcrumb/index.js +1 -2
- package/lib/components/breadcrumb/index.js.map +1 -1
- package/lib/components/breadcrumb/item/BreadcrumbItemPropsDefaults.js +53 -0
- package/lib/components/breadcrumb/item/BreadcrumbItemPropsWebDefaults.js +253 -0
- package/lib/components/button/Button.native.js +13 -13
- package/lib/components/button/Button.native.js.map +1 -1
- package/lib/components/button/ButtonPropsDefaults.js +380 -0
- package/lib/components/button/index.d.ts +1 -2
- package/lib/components/button/index.js +1 -2
- package/lib/components/button/index.js.map +1 -1
- package/lib/components/button/list/ButtonList.native.js +4 -4
- package/lib/components/button/list/ButtonList.native.js.map +1 -1
- package/lib/components/button/list/ButtonListPropsDefaults.js +19 -0
- package/lib/components/button/list/ButtonListWebPropsDefaults.js +50 -0
- package/lib/components/card/Card.d.ts +6 -3
- package/lib/components/card/Card.js +9 -7
- package/lib/components/card/Card.js.map +1 -1
- package/lib/components/card/Card.native.d.ts +2 -2
- package/lib/components/card/Card.native.js +10 -11
- package/lib/components/card/Card.native.js.map +1 -1
- package/lib/components/card/CardPropsDefaults.js +218 -0
- package/lib/components/card/content/CardContent.native.d.ts +0 -1
- package/lib/components/card/content/CardContent.native.js +3 -4
- package/lib/components/card/content/CardContent.native.js.map +1 -1
- package/lib/components/card/content/CardContentProps.d.ts +0 -1
- package/lib/components/card/content/CardContentPropsDefaults.js +153 -0
- package/lib/components/card/image/CardImage.d.ts +0 -1
- package/lib/components/card/image/CardImage.js +0 -1
- package/lib/components/card/image/CardImage.js.map +1 -1
- package/lib/components/card/image/CardImage.native.d.ts +1 -1
- package/lib/components/card/image/CardImage.native.js +11 -8
- package/lib/components/card/image/CardImage.native.js.map +1 -1
- package/lib/components/card/image/CardImageProps.d.ts +0 -2
- package/lib/components/card/image/CardImagePropsDefaults.js +52 -0
- package/lib/components/card/index.d.ts +1 -2
- package/lib/components/card/index.js +1 -2
- package/lib/components/card/index.js.map +1 -1
- package/lib/components/checkbox/Checkbox.native.js +8 -8
- package/lib/components/checkbox/Checkbox.native.js.map +1 -1
- package/lib/components/checkbox/CheckboxChangeEventDefaults.js +21 -0
- package/lib/components/checkbox/CheckboxClickEventDefaults.js +21 -0
- package/lib/components/checkbox/CheckboxPropsDefaults.js +200 -0
- package/lib/components/checkbox/index.d.ts +1 -2
- package/lib/components/checkbox/index.js +1 -2
- package/lib/components/checkbox/index.js.map +1 -1
- package/lib/components/chips/Chips.d.ts +1 -2
- package/lib/components/chips/Chips.js +4 -6
- package/lib/components/chips/Chips.js.map +1 -1
- package/lib/components/chips/Chips.native.d.ts +1 -2
- package/lib/components/chips/Chips.native.js +6 -8
- package/lib/components/chips/Chips.native.js.map +1 -1
- package/lib/components/chips/ChipsProps.d.ts +0 -1
- package/lib/components/chips/ChipsPropsDefaults.js +75 -0
- package/lib/components/chips/index.d.ts +1 -2
- package/lib/components/chips/index.js +1 -2
- package/lib/components/chips/index.js.map +1 -1
- package/lib/components/chips/list/ChipsList.d.ts +2 -2
- package/lib/components/chips/list/ChipsList.js +4 -3
- package/lib/components/chips/list/ChipsList.js.map +1 -1
- package/lib/components/chips/list/ChipsListPropsDefaults.js +25 -0
- package/lib/components/columns/Columns.d.ts +2 -3
- package/lib/components/columns/Columns.js +5 -5
- package/lib/components/columns/Columns.js.map +1 -1
- package/lib/components/columns/ColumnsProps.d.ts +1 -3
- package/lib/components/columns/ColumnsPropsDefaults.js +89 -0
- package/lib/components/columns/index.d.ts +1 -2
- package/lib/components/columns/index.js +1 -2
- package/lib/components/columns/index.js.map +1 -1
- package/lib/components/columns/item/ColumnsItem.d.ts +2 -2
- package/lib/components/columns/item/ColumnsItem.js +4 -3
- package/lib/components/columns/item/ColumnsItem.js.map +1 -1
- package/lib/components/columns/item/ColumnsItem.native.js +3 -0
- package/lib/components/columns/item/ColumnsItem.native.js.map +1 -1
- package/lib/components/columns/item/ColumnsItemPropsDefaults.js +323 -0
- package/lib/components/container/Container.d.ts +2 -2
- package/lib/components/container/Container.js +3 -3
- package/lib/components/container/Container.js.map +1 -1
- package/lib/components/container/Container.native.d.ts +2 -2
- package/lib/components/container/Container.native.js +8 -8
- package/lib/components/container/Container.native.js.map +1 -1
- package/lib/components/container/ContainerPropsDefaults.js +183 -0
- package/lib/components/container/index.d.ts +1 -2
- package/lib/components/container/index.js +1 -2
- package/lib/components/container/index.js.map +1 -1
- package/lib/components/countdown/Countdown.d.ts +2 -1
- package/lib/components/countdown/Countdown.js +3 -2
- package/lib/components/countdown/Countdown.js.map +1 -1
- package/lib/components/countdown/Countdown.native.d.ts +2 -1
- package/lib/components/countdown/Countdown.native.js +4 -3
- package/lib/components/countdown/Countdown.native.js.map +1 -1
- package/lib/components/countdown/CountdownProps.d.ts +1 -0
- package/lib/components/countdown/CountdownPropsDefaults.js +57 -0
- package/lib/components/countdown/index.d.ts +1 -2
- package/lib/components/countdown/index.js +1 -2
- package/lib/components/countdown/index.js.map +1 -1
- package/lib/components/divider/Divider.native.js +3 -3
- package/lib/components/divider/Divider.native.js.map +1 -1
- package/lib/components/divider/DividerPropsDefaults.js +204 -0
- package/lib/components/divider/index.d.ts +1 -2
- package/lib/components/divider/index.js +1 -2
- package/lib/components/divider/index.js.map +1 -1
- package/lib/components/enumsComponentsName.d.ts +2 -1
- package/lib/components/enumsComponentsName.js +2 -1
- package/lib/components/enumsComponentsName.js.map +1 -1
- package/lib/components/fab/FabProps.d.ts +2 -2
- package/lib/components/fab/FabPropsDefaults.js +171 -0
- package/lib/components/fab/index.d.ts +1 -2
- package/lib/components/fab/index.js +1 -2
- package/lib/components/fab/index.js.map +1 -1
- package/lib/components/hero/Hero.d.ts +2 -1
- package/lib/components/hero/Hero.js +3 -2
- package/lib/components/hero/Hero.js.map +1 -1
- package/lib/components/hero/Hero.native.d.ts +2 -2
- package/lib/components/hero/Hero.native.js +10 -10
- package/lib/components/hero/Hero.native.js.map +1 -1
- package/lib/components/hero/HeroPropsDefaults.js +142 -0
- package/lib/components/hero/index.d.ts +1 -2
- package/lib/components/hero/index.js +1 -2
- package/lib/components/hero/index.js.map +1 -1
- package/lib/components/icon/Icon.js +1 -1
- package/lib/components/icon/Icon.js.map +1 -1
- package/lib/components/icon/Icon.native.js +1 -1
- package/lib/components/icon/Icon.native.js.map +1 -1
- package/lib/components/icon/IconPropsDefaults.js +305 -0
- package/lib/components/icon/circle/CircleIconPropsDefaults.js +166 -0
- package/lib/components/icon/index.d.ts +1 -2
- package/lib/components/icon/index.js +1 -2
- package/lib/components/icon/index.js.map +1 -1
- package/lib/components/icon/status/StatusIconPropsDefaults.js +126 -0
- package/lib/components/icon/text/TextIcon.d.ts +4 -2
- package/lib/components/icon/text/TextIcon.js +15 -17
- package/lib/components/icon/text/TextIcon.js.map +1 -1
- package/lib/components/icon/text/TextIconPropsDefaults.js +160 -0
- package/lib/components/image/ImagePropsDefaults.js +75 -0
- package/lib/components/image/index.d.ts +1 -2
- package/lib/components/image/index.js +1 -2
- package/lib/components/image/index.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/ILengthVerifyDefaults.js +16 -0
- package/lib/components/input/IValidationRulesDefaults.js +41 -0
- package/lib/components/input/Input.d.ts +2 -72
- package/lib/components/input/Input.js +19 -34
- package/lib/components/input/Input.js.map +1 -1
- package/lib/components/input/Input.native.d.ts +4 -4
- package/lib/components/input/Input.native.js +47 -40
- package/lib/components/input/Input.native.js.map +1 -1
- package/lib/components/input/InputChangeEventNativeDefaults.js +17 -0
- package/lib/components/input/InputChangeEventWebDefaults.js +21 -0
- package/lib/components/input/InputClickEventDefaults.js +19 -0
- package/lib/components/input/InputKeyboardEventDefaults.js +27 -0
- package/lib/components/input/InputNativeEventsDefaults.js +37 -0
- package/lib/components/input/InputProps.d.ts +21 -12
- package/lib/components/input/InputPropsDefaults.js +654 -0
- package/lib/components/input/InputWebEventsDefaults.js +51 -0
- package/lib/components/input/gauge/InputGauge.native.js +1 -1
- package/lib/components/input/gauge/InputGauge.native.js.map +1 -1
- package/lib/components/input/gauge/hook/useGauge.js +1 -1
- package/lib/components/input/gauge/hook/useGauge.js.map +1 -1
- package/lib/components/input/index.d.ts +1 -2
- package/lib/components/input/index.js +1 -2
- package/lib/components/input/index.js.map +1 -1
- package/lib/components/link/Link.js +2 -2
- package/lib/components/link/Link.js.map +1 -1
- package/lib/components/link/Link.native.d.ts +0 -1
- package/lib/components/link/Link.native.js +10 -10
- package/lib/components/link/Link.native.js.map +1 -1
- package/lib/components/link/LinkProps.d.ts +0 -1
- package/lib/components/link/LinkPropsDefaults.js +367 -0
- package/lib/components/link/index.d.ts +1 -2
- package/lib/components/link/index.js +1 -2
- package/lib/components/link/index.js.map +1 -1
- package/lib/components/list/List.d.ts +2 -2
- package/lib/components/list/List.js +4 -3
- package/lib/components/list/List.js.map +1 -1
- package/lib/components/list/ListPropsDefaults.js +53 -0
- package/lib/components/list/index.d.ts +1 -2
- package/lib/components/list/index.js +1 -2
- package/lib/components/list/index.js.map +1 -1
- package/lib/components/list/item/ListItem.native.js +1 -1
- package/lib/components/list/item/ListItem.native.js.map +1 -1
- package/lib/components/list/item/ListItemPropsDefaults.js +119 -0
- package/lib/components/list/item/description/ListItemDescriptionPropsDefaults.js +23 -0
- package/lib/components/modal/CloseButtonPropsDefaults.js +9 -0
- package/lib/components/modal/Modal.d.ts +1 -6
- package/lib/components/modal/Modal.js +14 -19
- package/lib/components/modal/Modal.js.map +1 -1
- package/lib/components/modal/ModalContentButtonPropsDefaults.js +16 -0
- package/lib/components/modal/ModalProps.d.ts +1 -5
- package/lib/components/modal/ModalPropsDefaults.js +325 -0
- package/lib/components/modal/footer/ModalFooterPropsDefaults.js +23 -0
- package/lib/components/modal/index.d.ts +1 -2
- package/lib/components/modal/index.js +1 -2
- package/lib/components/modal/index.js.map +1 -1
- package/lib/components/modal/title/ModalTitle.js +1 -1
- package/lib/components/modal/title/ModalTitle.js.map +1 -1
- package/lib/components/modal/title/ModalTitlePropsDefaults.js +92 -0
- package/lib/components/otp/Otp.d.ts +0 -12
- package/lib/components/otp/Otp.js +77 -98
- package/lib/components/otp/Otp.js.map +1 -1
- package/lib/components/otp/Otp.native.js +2 -2
- package/lib/components/otp/Otp.native.js.map +1 -1
- package/lib/components/otp/OtpPropsDefaults.js +97 -0
- package/lib/components/otp/index.d.ts +1 -2
- package/lib/components/otp/index.js +1 -2
- package/lib/components/otp/index.js.map +1 -1
- package/lib/components/pagination/PaginationPropsDefaults.js +63 -0
- package/lib/components/pagination/index.d.ts +1 -2
- package/lib/components/pagination/index.js +1 -2
- package/lib/components/pagination/index.js.map +1 -1
- package/lib/components/popover/PopoverPropsDefaults.js +60 -0
- package/lib/components/popover/PopoverWebPropsDefaults.js +89 -0
- package/lib/components/popover/index.d.ts +1 -2
- package/lib/components/popover/index.js +1 -2
- package/lib/components/popover/index.js.map +1 -1
- package/lib/components/price/Price.d.ts +3 -3
- package/lib/components/price/Price.js +28 -9
- package/lib/components/price/Price.js.map +1 -1
- package/lib/components/price/Price.native.d.ts +2 -3
- package/lib/components/price/Price.native.js +128 -89
- package/lib/components/price/Price.native.js.map +1 -1
- package/lib/components/price/PriceEnum.d.ts +8 -8
- package/lib/components/price/PriceEnum.js +7 -7
- package/lib/components/price/PriceEnum.js.map +1 -1
- package/lib/components/price/PriceProps.d.ts +7 -7
- package/lib/components/price/PricePropsDefaults.js +159 -0
- package/lib/components/price/index.d.ts +1 -2
- package/lib/components/price/index.js +1 -2
- package/lib/components/price/index.js.map +1 -1
- package/lib/components/product-tour/ProductTourPropsDefaults.js +85 -0
- package/lib/components/product-tour/ProductTourWebPropsDefaults.js +92 -0
- package/lib/components/progress/Progress.d.ts +3 -3
- package/lib/components/progress/Progress.js +7 -6
- package/lib/components/progress/Progress.js.map +1 -1
- package/lib/components/progress/Progress.native.d.ts +2 -2
- package/lib/components/progress/Progress.native.js +6 -6
- package/lib/components/progress/Progress.native.js.map +1 -1
- package/lib/components/progress/ProgressProps.d.ts +2 -2
- package/lib/components/progress/ProgressPropsDefaults.js +95 -0
- package/lib/components/progress/index.d.ts +1 -2
- package/lib/components/progress/index.js +1 -2
- package/lib/components/progress/index.js.map +1 -1
- package/lib/components/progress/item/ProgressItem.d.ts +3 -3
- package/lib/components/progress/item/ProgressItem.js +7 -6
- package/lib/components/progress/item/ProgressItem.js.map +1 -1
- package/lib/components/progress/item/ProgressItem.native.d.ts +2 -2
- package/lib/components/progress/item/ProgressItem.native.js +2 -2
- package/lib/components/progress/item/ProgressItem.native.js.map +1 -1
- package/lib/components/progress/item/ProgressItemProps.d.ts +2 -2
- package/lib/components/progress/item/ProgressItemPropsDefaults.js +84 -0
- package/lib/components/progress/radial/ProgressRadial.js +2 -1
- package/lib/components/progress/radial/ProgressRadial.js.map +1 -1
- package/lib/components/progress/radial/ProgressRadial.native.d.ts +3 -3
- package/lib/components/progress/radial/ProgressRadial.native.js +10 -12
- package/lib/components/progress/radial/ProgressRadial.native.js.map +1 -1
- package/lib/components/progress/radial/ProgressRadialProps.d.ts +3 -3
- package/lib/components/progress/radial/ProgressRadialPropsDefaults.js +165 -0
- package/lib/components/progress/radial/item/ProgressRadialItemPropsDefaults.js +53 -0
- package/lib/components/radio/Radio.native.js +12 -11
- package/lib/components/radio/Radio.native.js.map +1 -1
- package/lib/components/radio/RadioPropsDefaults.js +216 -0
- package/lib/components/radio/index.d.ts +1 -2
- package/lib/components/radio/index.js +1 -2
- package/lib/components/radio/index.js.map +1 -1
- package/lib/components/radio/list/RadioList.native.js +4 -4
- package/lib/components/radio/list/RadioList.native.js.map +1 -1
- package/lib/components/radio/list/RadioListPropsDefaults.js +19 -0
- package/lib/components/radio/list/RadioListWebPropsDefaults.js +50 -0
- package/lib/components/range/Range.js +1 -1
- package/lib/components/range/Range.js.map +1 -1
- package/lib/components/range/RangePropsDefaults.js +123 -0
- package/lib/components/range/index.d.ts +1 -2
- package/lib/components/range/index.js +1 -2
- package/lib/components/range/index.js.map +1 -1
- package/lib/components/rows/Rows.d.ts +3 -2
- package/lib/components/rows/Rows.js +6 -3
- package/lib/components/rows/Rows.js.map +1 -1
- package/lib/components/rows/Rows.native.d.ts +5 -2
- package/lib/components/rows/Rows.native.js +4 -2
- package/lib/components/rows/Rows.native.js.map +1 -1
- package/lib/components/rows/RowsProps.d.ts +1 -0
- package/lib/components/rows/RowsPropsDefaults.js +31 -0
- package/lib/components/rows/index.d.ts +1 -2
- package/lib/components/rows/index.js +1 -2
- package/lib/components/rows/index.js.map +1 -1
- package/lib/components/rows/item/RowItem.d.ts +2 -2
- package/lib/components/rows/item/RowItem.js +4 -3
- package/lib/components/rows/item/RowItem.js.map +1 -1
- package/lib/components/rows/item/RowItem.native.js +3 -1
- package/lib/components/rows/item/RowItem.native.js.map +1 -1
- package/lib/components/rows/item/RowsItemPropsDefaults.js +31 -0
- package/lib/components/scroll-view/ScrollViewPropsDefaults.js +125 -0
- package/lib/components/section/Section.d.ts +3 -3
- package/lib/components/section/Section.js +7 -6
- package/lib/components/section/Section.js.map +1 -1
- package/lib/components/section/Section.native.d.ts +2 -2
- package/lib/components/section/Section.native.js +4 -4
- package/lib/components/section/Section.native.js.map +1 -1
- package/lib/components/section/SectionProps.d.ts +2 -2
- package/lib/components/section/SectionPropsDefaults.js +116 -0
- package/lib/components/section/index.d.ts +1 -2
- package/lib/components/section/index.js +1 -2
- package/lib/components/section/index.js.map +1 -1
- package/lib/components/segment-control/SegmentControl.native.js +1 -1
- package/lib/components/segment-control/SegmentControl.native.js.map +1 -1
- package/lib/components/segment-control/SegmentControlProps.d.ts +1 -4
- package/lib/components/segment-control/SegmentControlPropsDefaults.js +61 -0
- package/lib/components/segment-control/index.d.ts +1 -2
- package/lib/components/segment-control/index.js +1 -2
- package/lib/components/segment-control/index.js.map +1 -1
- package/lib/components/segment-control/item/SegmentControlItem.native.js +2 -2
- package/lib/components/segment-control/item/SegmentControlItem.native.js.map +1 -1
- package/lib/components/segment-control/item/SegmentControlItemPropsDefaults.js +55 -0
- package/lib/components/select/ISelectOptionDefaults.js +23 -0
- package/lib/components/select/SelectChangeEventDefaults.js +37 -0
- package/lib/components/select/SelectPropsDefaults.js +187 -0
- package/lib/components/select/index.d.ts +1 -2
- package/lib/components/select/index.js +1 -2
- package/lib/components/select/index.js.map +1 -1
- package/lib/components/select/option/SelectOption.d.ts +2 -2
- package/lib/components/select/option/SelectOption.js +4 -3
- package/lib/components/select/option/SelectOption.js.map +1 -1
- package/lib/components/select/option/SelectOption.native.js +1 -1
- package/lib/components/select/option/SelectOption.native.js.map +1 -1
- package/lib/components/select/option/SelectOptionPropsDefaults.js +134 -0
- package/lib/components/selector/SelectorEndDefaults.js +10 -0
- package/lib/components/selector/SelectorPropsDefaults.js +128 -0
- package/lib/components/selector/item/SelectorItem.native.js +1 -1
- package/lib/components/selector/item/SelectorItem.native.js.map +1 -1
- package/lib/components/selector/item/SelectorItemPropsDefaults.js +84 -0
- package/lib/components/spacer/Spacer.d.ts +1 -1
- package/lib/components/spacer/Spacer.js +1 -1
- package/lib/components/spacer/Spacer.native.d.ts +1 -2
- package/lib/components/spacer/Spacer.native.js +1 -2
- package/lib/components/spacer/Spacer.native.js.map +1 -1
- package/lib/components/spacer/SpacerEnum.d.ts +11 -6
- package/lib/components/spacer/SpacerEnum.js +11 -7
- package/lib/components/spacer/SpacerEnum.js.map +1 -1
- package/lib/components/spacer/SpacerPropsDefaults.js +37 -0
- package/lib/components/stepper/Stepper.d.ts +2 -2
- package/lib/components/stepper/Stepper.js +7 -5
- package/lib/components/stepper/Stepper.js.map +1 -1
- package/lib/components/stepper/Stepper.native.js +1 -2
- package/lib/components/stepper/Stepper.native.js.map +1 -1
- package/lib/components/stepper/StepperPropsDefaults.js +31 -0
- package/lib/components/stepper/index.d.ts +1 -2
- package/lib/components/stepper/index.js +1 -2
- package/lib/components/stepper/index.js.map +1 -1
- package/lib/components/stepper/step/StepperStep.d.ts +2 -2
- package/lib/components/stepper/step/StepperStep.js +4 -3
- package/lib/components/stepper/step/StepperStep.js.map +1 -1
- package/lib/components/stepper/step/StepperStep.native.js +1 -1
- package/lib/components/stepper/step/StepperStep.native.js.map +1 -1
- package/lib/components/stepper/step/StepperStepPropsDefaults.js +136 -0
- package/lib/components/sticker/Sticker.d.ts +2 -2
- package/lib/components/sticker/Sticker.js +3 -3
- package/lib/components/sticker/Sticker.js.map +1 -1
- package/lib/components/sticker/StickerPropsDefaults.js +71 -0
- package/lib/components/sticker/index.d.ts +1 -2
- package/lib/components/sticker/index.js +1 -2
- package/lib/components/sticker/index.js.map +1 -1
- package/lib/components/styleComponent/default/index.d.ts +1 -0
- package/lib/components/styleComponent/default/index.js +2 -0
- package/lib/components/styleComponent/default/index.js.map +1 -0
- package/lib/components/styleComponent/default/styleComponent.d.ts +6 -0
- package/lib/components/styleComponent/default/styleComponent.js +7 -0
- package/lib/components/styleComponent/default/styleComponent.js.map +1 -0
- package/lib/components/styleComponent/default/styleComponent.native.d.ts +5 -0
- package/lib/components/styleComponent/default/styleComponent.native.js +6 -0
- package/lib/components/styleComponent/default/styleComponent.native.js.map +1 -0
- package/lib/components/styleComponent/index.d.ts +2 -0
- package/lib/components/styleComponent/index.js +3 -0
- package/lib/components/styleComponent/index.js.map +1 -0
- package/lib/components/styleComponent/mangled/index.d.ts +1 -0
- package/lib/components/styleComponent/mangled/index.js +2 -0
- package/lib/components/styleComponent/mangled/index.js.map +1 -0
- package/lib/components/styleComponent/mangled/styleComponentMangled.d.ts +6 -0
- package/lib/components/styleComponent/mangled/styleComponentMangled.js +7 -0
- package/lib/components/styleComponent/mangled/styleComponentMangled.js.map +1 -0
- package/lib/components/styleComponent/mangled/styleComponentMangled.native.d.ts +5 -0
- package/lib/components/styleComponent/mangled/styleComponentMangled.native.js +6 -0
- package/lib/components/styleComponent/mangled/styleComponentMangled.native.js.map +1 -0
- package/lib/components/switch/Switch.d.ts +2 -2
- package/lib/components/switch/Switch.js +4 -4
- package/lib/components/switch/Switch.js.map +1 -1
- package/lib/components/switch/Switch.native.d.ts +2 -2
- package/lib/components/switch/Switch.native.js +6 -7
- package/lib/components/switch/Switch.native.js.map +1 -1
- package/lib/components/switch/SwitchChangeEventDefaults.js +13 -0
- package/lib/components/switch/SwitchProps.d.ts +2 -2
- package/lib/components/switch/SwitchPropsDefaults.js +105 -0
- package/lib/components/switch/index.d.ts +1 -2
- package/lib/components/switch/index.js +1 -2
- package/lib/components/switch/index.js.map +1 -1
- package/lib/components/table/Table.native.js +1 -1
- package/lib/components/table/Table.native.js.map +1 -1
- package/lib/components/table/TablePropsDefaults.js +63 -0
- package/lib/components/table/body/TableBodyPropsDefaults.js +103 -0
- package/lib/components/table/head/TableHeadPropsDefaults.js +103 -0
- package/lib/components/table/index.d.ts +1 -2
- package/lib/components/table/index.js +1 -2
- package/lib/components/table/index.js.map +1 -1
- package/lib/components/table/td/TableTd.native.js +2 -2
- package/lib/components/table/td/TableTd.native.js.map +1 -1
- package/lib/components/table/td/TableTdPropsDefaults.js +44 -0
- package/lib/components/table/th/TableTh.native.js +2 -2
- package/lib/components/table/th/TableTh.native.js.map +1 -1
- package/lib/components/table/th/TableThPropsDefaults.js +44 -0
- package/lib/components/table/tr/TableTr.native.js +1 -1
- package/lib/components/table/tr/TableTr.native.js.map +1 -1
- package/lib/components/table/tr/TableTrPropsWebDefaults.js +100 -0
- package/lib/components/tabs/Tabs.d.ts +2 -2
- package/lib/components/tabs/Tabs.js +4 -3
- package/lib/components/tabs/Tabs.js.map +1 -1
- package/lib/components/tabs/TabsPropsDefaults.js +160 -0
- package/lib/components/tabs/index.d.ts +1 -2
- package/lib/components/tabs/index.js +1 -2
- package/lib/components/tabs/index.js.map +1 -1
- package/lib/components/tabs/item/TabsItem.d.ts +2 -2
- package/lib/components/tabs/item/TabsItem.js +5 -4
- package/lib/components/tabs/item/TabsItem.js.map +1 -1
- package/lib/components/tabs/item/TabsItem.native.js +1 -1
- package/lib/components/tabs/item/TabsItem.native.js.map +1 -1
- package/lib/components/tabs/item/TabsItemPropsDefaults.js +336 -0
- package/lib/components/tag/Tag.native.js +3 -2
- package/lib/components/tag/Tag.native.js.map +1 -1
- package/lib/components/tag/TagClickEventDefaults.js +1 -0
- package/lib/components/tag/TagPropsDefaults.js +119 -0
- package/lib/components/tag/index.d.ts +1 -2
- package/lib/components/tag/index.js +1 -2
- package/lib/components/tag/index.js.map +1 -1
- package/lib/components/tag/list/TagList.d.ts +2 -2
- package/lib/components/tag/list/TagList.js +4 -3
- package/lib/components/tag/list/TagList.js.map +1 -1
- package/lib/components/tag/list/TagListPropsDefaults.js +47 -0
- package/lib/components/text/Text.native.js +9 -8
- package/lib/components/text/Text.native.js.map +1 -1
- package/lib/components/text/TextEnum.d.ts +5 -5
- package/lib/components/text/TextEnum.js +4 -4
- package/lib/components/text/TextEnum.js.map +1 -1
- package/lib/components/text/TextPropsDefaults.js +192 -0
- package/lib/components/text/index.d.ts +1 -2
- package/lib/components/text/index.js +1 -2
- package/lib/components/text/index.js.map +1 -1
- package/lib/components/textarea/Textarea.d.ts +3 -3
- package/lib/components/textarea/Textarea.js +11 -6
- package/lib/components/textarea/Textarea.js.map +1 -1
- package/lib/components/textarea/Textarea.native.js +28 -14
- package/lib/components/textarea/Textarea.native.js.map +1 -1
- package/lib/components/textarea/TextareaChangeEventDefaults.js +10 -0
- package/lib/components/textarea/TextareaProps.d.ts +2 -0
- package/lib/components/textarea/index.d.ts +1 -2
- package/lib/components/textarea/index.js +1 -2
- package/lib/components/textarea/index.js.map +1 -1
- package/lib/components/timeline/Timeline.d.ts +2 -2
- package/lib/components/timeline/Timeline.js +4 -4
- package/lib/components/timeline/Timeline.js.map +1 -1
- package/lib/components/timeline/TimelinePropsDefaults.js +39 -0
- package/lib/components/timeline/content/TimelineContent.js +1 -1
- package/lib/components/timeline/content/TimelineContent.js.map +1 -1
- package/lib/components/timeline/content/TimelineContent.native.js +1 -1
- package/lib/components/timeline/content/TimelineContentPropsDefaults.js +51 -0
- package/lib/components/timeline/content/TimelineContentWebPropsDefaults.js +58 -0
- package/lib/components/timeline/index.d.ts +1 -2
- package/lib/components/timeline/index.js +1 -2
- package/lib/components/timeline/index.js.map +1 -1
- package/lib/components/timeline/item/TimelineItem.d.ts +2 -2
- package/lib/components/timeline/item/TimelineItem.js +4 -3
- package/lib/components/timeline/item/TimelineItem.js.map +1 -1
- package/lib/components/timeline/item/TimelineItemPropsDefaults.js +48 -0
- package/lib/components/timeline/item/TimelineItemWebPropsDefaults.js +55 -0
- package/lib/components/timeline/marker/TimelineMarker.native.js +7 -7
- package/lib/components/timeline/marker/TimelineMarker.native.js.map +1 -1
- package/lib/components/timeline/marker/TimelineMarkerPropsDefaults.js +113 -0
- package/lib/components/timeline/marker/TimelineMarkerWebPropsDefaults.js +127 -0
- package/lib/components/title/Title.js +2 -2
- package/lib/components/title/Title.js.map +1 -1
- package/lib/components/title/Title.native.js +10 -9
- package/lib/components/title/Title.native.js.map +1 -1
- package/lib/components/title/TitleEnum.d.ts +7 -7
- package/lib/components/title/TitleEnum.js +6 -6
- package/lib/components/title/TitleEnum.js.map +1 -1
- package/lib/components/title/TitlePropsDefaults.js +165 -0
- package/lib/components/title/index.d.ts +1 -2
- package/lib/components/title/index.js +1 -2
- package/lib/components/title/index.js.map +1 -1
- package/lib/components/view/View.d.ts +2 -2
- package/lib/components/view/View.js +3 -3
- package/lib/components/view/View.js.map +1 -1
- package/lib/components/view/View.native.d.ts +2 -2
- package/lib/components/view/View.native.js +3 -3
- package/lib/components/view/View.native.js.map +1 -1
- package/lib/components/view/ViewPropsDefaults.js +219 -0
- package/lib/context/index.d.ts +3 -1
- package/lib/context/index.js +2 -2
- package/lib/context/index.js.map +1 -1
- package/lib/context/provider.native.d.ts +4 -1
- package/lib/context/provider.native.js +2 -2
- package/lib/context/provider.native.js.map +1 -1
- package/lib/context/providerStyled.d.ts +6 -4
- package/lib/context/providerStyled.js +23 -20
- package/lib/context/providerStyled.js.map +1 -1
- package/lib/context/providerStyled.native.d.ts +4 -1
- package/lib/context/providerStyled.native.js +2 -2
- package/lib/context/providerStyled.native.js.map +1 -1
- package/lib/context/providerTheme.d.ts +5 -3
- package/lib/context/providerTheme.js +4 -5
- package/lib/context/providerTheme.js.map +1 -1
- package/lib/hash.json +1 -1
- package/lib/helpers/hashClassesHelpers.js +3 -2
- package/lib/helpers/hashClassesHelpers.js.map +1 -1
- package/lib/objects/Typography/TypographyColor.d.ts +0 -1
- package/lib/objects/Typography/TypographyColor.js +18 -23
- package/lib/objects/Typography/TypographyColor.js.map +1 -1
- package/lib/objects/atoms/Background.d.ts +2 -17
- package/lib/objects/atoms/Background.js +1 -14
- package/lib/objects/atoms/Background.js.map +1 -1
- package/lib/objects/atoms/Text.js +1 -3
- package/lib/objects/atoms/Text.js.map +1 -1
- package/lib/objects/facets/Color.d.ts +9 -5
- package/lib/objects/facets/Color.js +54 -53
- package/lib/objects/facets/Color.js.map +1 -1
- package/lib/objects/facets/Status.d.ts +63 -0
- package/lib/objects/facets/Status.js +70 -0
- package/lib/objects/facets/Status.js.map +1 -0
- package/lib/objects/facets/Variant.js +1 -1
- package/lib/objects/facets/Variant.js.map +1 -1
- package/lib/objects/facets/index.d.ts +1 -1
- package/lib/objects/facets/index.js +1 -1
- package/lib/objects/facets/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/lib/components/accordion/Accordion.example.d.ts +0 -3
- package/lib/components/accordion/Accordion.example.js +0 -19
- package/lib/components/accordion/Accordion.example.js.map +0 -1
- package/lib/components/alert/Alert.example.d.ts +0 -3
- package/lib/components/alert/Alert.example.js +0 -15
- package/lib/components/alert/Alert.example.js.map +0 -1
- package/lib/components/badge/Badge.example.d.ts +0 -3
- package/lib/components/badge/Badge.example.js +0 -5
- package/lib/components/badge/Badge.example.js.map +0 -1
- package/lib/components/box/Box.example.d.ts +0 -3
- package/lib/components/box/Box.example.js +0 -32
- package/lib/components/box/Box.example.js.map +0 -1
- package/lib/components/breadcrumb/Breadcrumb.example.d.ts +0 -3
- package/lib/components/breadcrumb/Breadcrumb.example.js +0 -9
- package/lib/components/breadcrumb/Breadcrumb.example.js.map +0 -1
- package/lib/components/button/Button.example.d.ts +0 -3
- package/lib/components/button/Button.example.js +0 -10
- package/lib/components/button/Button.example.js.map +0 -1
- package/lib/components/card/Card.example.d.ts +0 -3
- package/lib/components/card/Card.example.js +0 -25
- package/lib/components/card/Card.example.js.map +0 -1
- package/lib/components/checkbox/Checkbox.example.d.ts +0 -3
- package/lib/components/checkbox/Checkbox.example.js +0 -20
- package/lib/components/checkbox/Checkbox.example.js.map +0 -1
- package/lib/components/chips/Chips.example.d.ts +0 -3
- package/lib/components/chips/Chips.example.js +0 -13
- package/lib/components/chips/Chips.example.js.map +0 -1
- package/lib/components/columns/Columns.example.d.ts +0 -3
- package/lib/components/columns/Columns.example.js +0 -16
- package/lib/components/columns/Columns.example.js.map +0 -1
- package/lib/components/container/Container.example.d.ts +0 -3
- package/lib/components/container/Container.example.js +0 -9
- package/lib/components/container/Container.example.js.map +0 -1
- package/lib/components/countdown/Countdown.example.d.ts +0 -3
- package/lib/components/countdown/Countdown.example.js +0 -5
- package/lib/components/countdown/Countdown.example.js.map +0 -1
- package/lib/components/divider/Divider.example.d.ts +0 -3
- package/lib/components/divider/Divider.example.js +0 -5
- package/lib/components/divider/Divider.example.js.map +0 -1
- package/lib/components/fab/Fab.example.d.ts +0 -3
- package/lib/components/fab/Fab.example.js +0 -5
- package/lib/components/fab/Fab.example.js.map +0 -1
- package/lib/components/hero/Hero.example.d.ts +0 -3
- package/lib/components/hero/Hero.example.js +0 -14
- package/lib/components/hero/Hero.example.js.map +0 -1
- package/lib/components/icon/Icon.example.d.ts +0 -3
- package/lib/components/icon/Icon.example.js +0 -8
- package/lib/components/icon/Icon.example.js.map +0 -1
- package/lib/components/image/Image.example.d.ts +0 -3
- package/lib/components/image/Image.example.js +0 -5
- package/lib/components/image/Image.example.js.map +0 -1
- package/lib/components/input/Input.example.d.ts +0 -3
- package/lib/components/input/Input.example.js +0 -5
- package/lib/components/input/Input.example.js.map +0 -1
- package/lib/components/input/autocomplete/AutoComplete.d.ts +0 -24
- package/lib/components/input/autocomplete/AutoComplete.js.map +0 -1
- package/lib/components/input/autocomplete/AutoComplete.native.js.map +0 -1
- package/lib/components/input/autocomplete/AutoCompleteProps.d.ts +0 -29
- package/lib/components/input/autocomplete/AutoCompleteProps.js.map +0 -1
- package/lib/components/input/autocomplete/Autocomplete.helpers.js.map +0 -1
- package/lib/components/input/autocomplete/index.js.map +0 -1
- package/lib/components/input/autocomplete/item/AutoCompleteIem.native.js.map +0 -1
- package/lib/components/input/autocomplete/item/AutoCompleteItem.js.map +0 -1
- package/lib/components/input/autocomplete/item/AutoCompleteItemProps.js.map +0 -1
- package/lib/components/input/autocomplete/item/index.js.map +0 -1
- package/lib/components/input/autocomplete/menu/AutoCompleteMenu.js.map +0 -1
- package/lib/components/input/autocomplete/menu/AutoCompleteMenu.native.js.map +0 -1
- package/lib/components/input/autocomplete/menu/AutoCompleteMenuProps.js.map +0 -1
- package/lib/components/input/autocomplete/menu/index.js.map +0 -1
- package/lib/components/input/autocomplete/utils/debounce.js.map +0 -1
- package/lib/components/input/autocomplete/utils/index.js.map +0 -1
- package/lib/components/link/Link.example.d.ts +0 -3
- package/lib/components/link/Link.example.js +0 -15
- package/lib/components/link/Link.example.js.map +0 -1
- package/lib/components/list/List.example.d.ts +0 -3
- package/lib/components/list/List.example.js +0 -8
- package/lib/components/list/List.example.js.map +0 -1
- package/lib/components/modal/Modal.example.d.ts +0 -3
- package/lib/components/modal/Modal.example.js +0 -5
- package/lib/components/modal/Modal.example.js.map +0 -1
- package/lib/components/otp/Otp.example.d.ts +0 -3
- package/lib/components/otp/Otp.example.js +0 -6
- package/lib/components/otp/Otp.example.js.map +0 -1
- package/lib/components/pagination/Pagination.example.d.ts +0 -3
- package/lib/components/pagination/Pagination.example.js +0 -5
- package/lib/components/pagination/Pagination.example.js.map +0 -1
- package/lib/components/popover/Popover.example.d.ts +0 -3
- package/lib/components/popover/Popover.example.js +0 -7
- package/lib/components/popover/Popover.example.js.map +0 -1
- package/lib/components/price/Price.example.d.ts +0 -3
- package/lib/components/price/Price.example.js +0 -5
- package/lib/components/price/Price.example.js.map +0 -1
- package/lib/components/progress/Progress.example.d.ts +0 -3
- package/lib/components/progress/Progress.example.js +0 -7
- package/lib/components/progress/Progress.example.js.map +0 -1
- package/lib/components/radio/Radio.example.d.ts +0 -3
- package/lib/components/radio/Radio.example.js +0 -8
- package/lib/components/radio/Radio.example.js.map +0 -1
- package/lib/components/range/Range.example.d.ts +0 -3
- package/lib/components/range/Range.example.js +0 -5
- package/lib/components/range/Range.example.js.map +0 -1
- package/lib/components/rows/Rows.example.d.ts +0 -3
- package/lib/components/rows/Rows.example.js +0 -16
- package/lib/components/rows/Rows.example.js.map +0 -1
- package/lib/components/section/Section.example.d.ts +0 -3
- package/lib/components/section/Section.example.js +0 -12
- package/lib/components/section/Section.example.js.map +0 -1
- package/lib/components/segment-control/SegmentControl.example.d.ts +0 -3
- package/lib/components/segment-control/SegmentControl.example.js +0 -9
- package/lib/components/segment-control/SegmentControl.example.js.map +0 -1
- package/lib/components/select/Select.example.d.ts +0 -3
- package/lib/components/select/Select.example.js +0 -8
- package/lib/components/select/Select.example.js.map +0 -1
- package/lib/components/stepper/Stepper.example.d.ts +0 -3
- package/lib/components/stepper/Stepper.example.js +0 -10
- package/lib/components/stepper/Stepper.example.js.map +0 -1
- package/lib/components/sticker/Sticker.example.d.ts +0 -3
- package/lib/components/sticker/Sticker.example.js +0 -8
- package/lib/components/sticker/Sticker.example.js.map +0 -1
- package/lib/components/switch/Switch.example.d.ts +0 -3
- package/lib/components/switch/Switch.example.js +0 -5
- package/lib/components/switch/Switch.example.js.map +0 -1
- package/lib/components/table/Table.example.d.ts +0 -3
- package/lib/components/table/Table.example.js +0 -19
- package/lib/components/table/Table.example.js.map +0 -1
- package/lib/components/tabs/Tabs.example.d.ts +0 -3
- package/lib/components/tabs/Tabs.example.js +0 -8
- package/lib/components/tabs/Tabs.example.js.map +0 -1
- package/lib/components/tag/Tag.example.d.ts +0 -3
- package/lib/components/tag/Tag.example.js +0 -6
- package/lib/components/tag/Tag.example.js.map +0 -1
- package/lib/components/text/Text.example.d.ts +0 -3
- package/lib/components/text/Text.example.js +0 -5
- package/lib/components/text/Text.example.js.map +0 -1
- package/lib/components/textarea/Textarea.example.d.ts +0 -3
- package/lib/components/textarea/Textarea.example.js +0 -5
- package/lib/components/textarea/Textarea.example.js.map +0 -1
- package/lib/components/timeline/Timeline.example.d.ts +0 -3
- package/lib/components/timeline/Timeline.example.js +0 -17
- package/lib/components/timeline/Timeline.example.js.map +0 -1
- package/lib/components/title/Title.example.d.ts +0 -3
- package/lib/components/title/Title.example.js +0 -8
- package/lib/components/title/Title.example.js.map +0 -1
- package/lib/components/toaster/Toaster.d.ts +0 -11
- package/lib/components/toaster/Toaster.js +0 -93
- package/lib/components/toaster/Toaster.js.map +0 -1
- package/lib/components/toaster/Toaster.native.d.ts +0 -15
- package/lib/components/toaster/Toaster.native.js +0 -93
- package/lib/components/toaster/Toaster.native.js.map +0 -1
- package/lib/components/toaster/ToasterEnum.d.ts +0 -1
- package/lib/components/toaster/ToasterEnum.js +0 -16
- package/lib/components/toaster/ToasterEnum.js.map +0 -1
- package/lib/components/toaster/ToasterProps.d.ts +0 -27
- package/lib/components/toaster/ToasterProps.js +0 -6
- package/lib/components/toaster/ToasterProps.js.map +0 -1
- package/lib/components/toaster/context/ToasterContext.d.ts +0 -7
- package/lib/components/toaster/context/ToasterContext.js +0 -8
- package/lib/components/toaster/context/ToasterContext.js.map +0 -1
- package/lib/components/toaster/context/ToasterContextProps.d.ts +0 -27
- package/lib/components/toaster/context/ToasterContextProps.js +0 -2
- package/lib/components/toaster/context/ToasterContextProps.js.map +0 -1
- package/lib/components/toaster/context/index.d.ts +0 -2
- package/lib/components/toaster/context/index.js +0 -3
- package/lib/components/toaster/context/index.js.map +0 -1
- package/lib/components/toaster/index.d.ts +0 -3
- package/lib/components/toaster/index.js +0 -4
- package/lib/components/toaster/index.js.map +0 -1
- package/lib/context/providerStyledMangled.d.ts +0 -10
- package/lib/context/providerStyledMangled.js +0 -14
- package/lib/context/providerStyledMangled.js.map +0 -1
- package/lib/context/providerStyledMangled.native.d.ts +0 -1
- package/lib/context/providerStyledMangled.native.js +0 -4
- package/lib/context/providerStyledMangled.native.js.map +0 -1
- package/lib/objects/facets/Alert.d.ts +0 -36
- package/lib/objects/facets/Alert.js +0 -70
- package/lib/objects/facets/Alert.js.map +0 -1
- /package/lib/components/{input/autocomplete → autocomplete}/AutoCompleteProps.js +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/Autocomplete.helpers.d.ts +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/Autocomplete.helpers.js +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/index.d.ts +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/index.js +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/item/AutoCompleteIem.native.d.ts +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/item/AutoCompleteItem.d.ts +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/item/AutoCompleteItemProps.js +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/item/index.d.ts +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/item/index.js +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/menu/AutoCompleteMenu.d.ts +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/menu/AutoCompleteMenu.native.d.ts +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/menu/AutoCompleteMenuProps.d.ts +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/menu/AutoCompleteMenuProps.js +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/menu/index.d.ts +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/menu/index.js +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/utils/debounce.d.ts +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/utils/debounce.js +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/utils/index.d.ts +0 -0
- /package/lib/components/{input/autocomplete → autocomplete}/utils/index.js +0 -0
|
@@ -3,7 +3,6 @@ import { Platform, StyleSheet, TouchableOpacity, View } from "react-native";
|
|
|
3
3
|
import { getColorStyle, TrilogyColor } from "../../objects/facets/Color";
|
|
4
4
|
import ContentLoader, { Rect } from "react-content-loader/native";
|
|
5
5
|
import { ComponentName } from "../../components/enumsComponentsName";
|
|
6
|
-
import { getBackgroundStyle } from "../../objects/atoms/Background";
|
|
7
6
|
import { StatesContext } from "../../context/providerStates";
|
|
8
7
|
export const CardContext = createContext({
|
|
9
8
|
floating: false,
|
|
@@ -21,14 +20,14 @@ export const CardContext = createContext({
|
|
|
21
20
|
* @param onClick {Function} onClick Event
|
|
22
21
|
* @param skeleton {boolean} Loading card
|
|
23
22
|
* @param reversed {boolean} Reversed card
|
|
24
|
-
* @param
|
|
23
|
+
* @param backgroundColor {TrilogyColor} Card Background Color
|
|
25
24
|
* @param inverted {boolean} Inverted Card Color
|
|
26
25
|
* @param backgroundColor
|
|
27
26
|
* @param fullheight {boolean}
|
|
28
27
|
* @param active {boolean} Activated box
|
|
29
28
|
* @param others
|
|
30
29
|
*/
|
|
31
|
-
const Card = ({ children, flat, horizontal, floating, onClick, skeleton,
|
|
30
|
+
const Card = ({ children, flat, horizontal, floating, onClick, skeleton, backgroundColor, reversed, fullheight, active, inverted, ...others }) => {
|
|
32
31
|
const borderColor = "#ccc";
|
|
33
32
|
const cardRadius = 6;
|
|
34
33
|
const colorBgc = getColorStyle(TrilogyColor.BACKGROUND);
|
|
@@ -41,7 +40,7 @@ const Card = ({ children, flat, horizontal, floating, onClick, skeleton, backgro
|
|
|
41
40
|
(active && getColorStyle(TrilogyColor.MAIN)) ||
|
|
42
41
|
"transparent",
|
|
43
42
|
borderRadius: cardRadius,
|
|
44
|
-
backgroundColor:
|
|
43
|
+
backgroundColor: backgroundColor ? getColorStyle(backgroundColor) : colorBgc,
|
|
45
44
|
flex: fullheight ? 1 : 0,
|
|
46
45
|
},
|
|
47
46
|
horizontal: {
|
|
@@ -64,7 +63,7 @@ const Card = ({ children, flat, horizontal, floating, onClick, skeleton, backgro
|
|
|
64
63
|
skeleton: {
|
|
65
64
|
width: "100%",
|
|
66
65
|
minHeight: 50,
|
|
67
|
-
backgroundColor: getColorStyle(TrilogyColor.
|
|
66
|
+
backgroundColor: getColorStyle(TrilogyColor.NEUTRAL_FADE),
|
|
68
67
|
overflow: "hidden",
|
|
69
68
|
borderRadius: cardRadius,
|
|
70
69
|
},
|
|
@@ -72,7 +71,7 @@ const Card = ({ children, flat, horizontal, floating, onClick, skeleton, backgro
|
|
|
72
71
|
flexDirection: "column-reverse",
|
|
73
72
|
},
|
|
74
73
|
});
|
|
75
|
-
const CardSkeleton = () => (React.createElement(ContentLoader, { style: styles.skeleton, ...others, testID:
|
|
74
|
+
const CardSkeleton = () => (React.createElement(ContentLoader, { style: styles.skeleton, ...others, testID: 'skeleton-id' },
|
|
76
75
|
React.createElement(View, { style: { opacity: 0 } }, children),
|
|
77
76
|
Platform.OS === "android" && (React.createElement(View, null,
|
|
78
77
|
React.createElement(Rect, { rx: '10', ry: '10', width: '100%', height: '100%' })))));
|
|
@@ -81,10 +80,10 @@ const Card = ({ children, flat, horizontal, floating, onClick, skeleton, backgro
|
|
|
81
80
|
return React.createElement(CardSkeleton, null);
|
|
82
81
|
}
|
|
83
82
|
if (horizontal) {
|
|
84
|
-
cardView = React.createElement(View, { style: [styles.horizontal, styles.card], testID:
|
|
83
|
+
cardView = React.createElement(View, { style: [styles.horizontal, styles.card], testID: 'card-horizontal' }, children);
|
|
85
84
|
}
|
|
86
85
|
else if (reversed) {
|
|
87
|
-
cardView = React.createElement(View, { style: [styles.reversed, styles.card], testID:
|
|
86
|
+
cardView = React.createElement(View, { style: [styles.reversed, styles.card], testID: 'card-reversed' }, children);
|
|
88
87
|
}
|
|
89
88
|
else {
|
|
90
89
|
cardView = (React.createElement(View, { style: [styles.card], ...others }, children));
|
|
@@ -92,16 +91,16 @@ const Card = ({ children, flat, horizontal, floating, onClick, skeleton, backgro
|
|
|
92
91
|
return onClick ? (React.createElement(StatesContext.Provider, { value: { inverted: !!inverted, active: !!active, flat: !!flat } },
|
|
93
92
|
React.createElement(CardContext.Provider, { value: {
|
|
94
93
|
floating: floating || false,
|
|
95
|
-
backgroundColor:
|
|
94
|
+
backgroundColor: backgroundColor || "white",
|
|
96
95
|
horizontal: horizontal || false,
|
|
97
96
|
reversed: reversed || false,
|
|
98
97
|
active: active || false,
|
|
99
98
|
} },
|
|
100
99
|
React.createElement(View, { style: { width: "100%" } },
|
|
101
|
-
React.createElement(TouchableOpacity, { testID:
|
|
100
|
+
React.createElement(TouchableOpacity, { testID: 'card-click-test', style: { width: "100%" }, onPress: onClick, activeOpacity: 0.85 }, cardView))))) : (React.createElement(StatesContext.Provider, { value: { inverted: !!inverted, active: !!active, flat: !!flat } },
|
|
102
101
|
React.createElement(CardContext.Provider, { value: {
|
|
103
102
|
floating: floating || false,
|
|
104
|
-
backgroundColor:
|
|
103
|
+
backgroundColor: backgroundColor || "white",
|
|
105
104
|
horizontal: horizontal || false,
|
|
106
105
|
reversed: reversed || false,
|
|
107
106
|
active: active || false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.native.js","sourceRoot":"","sources":["../../../components/card/Card.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAE3E,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,aAAa,EAAE,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Card.native.js","sourceRoot":"","sources":["../../../components/card/Card.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAE3E,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,aAAa,EAAE,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAExD,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC;IACvC,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,EAAE,IAAI,EAAE;IACzB,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,KAAK;CACd,CAAC,CAAA;AAEF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,IAAI,GAAG,CAAC,EACZ,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,Q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CAAA;AAErC,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"children": {
|
|
3
|
+
"type": "react",
|
|
4
|
+
"values": [
|
|
5
|
+
"undefined",
|
|
6
|
+
"null",
|
|
7
|
+
"string",
|
|
8
|
+
"number",
|
|
9
|
+
"false",
|
|
10
|
+
"true",
|
|
11
|
+
"JSXElementConstructor<any>>",
|
|
12
|
+
"ReactNode>",
|
|
13
|
+
"ReactPortal"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"flat": {
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"values": [
|
|
19
|
+
"undefined",
|
|
20
|
+
"false",
|
|
21
|
+
"true"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"horizontal": {
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"values": [
|
|
27
|
+
"undefined",
|
|
28
|
+
"false",
|
|
29
|
+
"true"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"floating": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"values": [
|
|
35
|
+
"undefined",
|
|
36
|
+
"false",
|
|
37
|
+
"true"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"skeleton": {
|
|
41
|
+
"type": "boolean",
|
|
42
|
+
"values": [
|
|
43
|
+
"undefined",
|
|
44
|
+
"false",
|
|
45
|
+
"true"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"className": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"values": [
|
|
51
|
+
"undefined",
|
|
52
|
+
"string"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"onClick": {
|
|
56
|
+
"type": "function",
|
|
57
|
+
"values": [
|
|
58
|
+
"undefined",
|
|
59
|
+
"ClickEvent"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"markup": {
|
|
63
|
+
"type": "enum",
|
|
64
|
+
"values": [
|
|
65
|
+
"undefined",
|
|
66
|
+
"DIV",
|
|
67
|
+
"A",
|
|
68
|
+
"div",
|
|
69
|
+
"a"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"reversed": {
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"values": [
|
|
75
|
+
"undefined",
|
|
76
|
+
"false",
|
|
77
|
+
"true"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"to": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"values": [
|
|
83
|
+
"undefined",
|
|
84
|
+
"string"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"active": {
|
|
88
|
+
"type": "boolean",
|
|
89
|
+
"values": [
|
|
90
|
+
"undefined",
|
|
91
|
+
"false",
|
|
92
|
+
"true"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"align": {
|
|
96
|
+
"type": "enum",
|
|
97
|
+
"values": [
|
|
98
|
+
"undefined",
|
|
99
|
+
"ALIGNED_CENTER",
|
|
100
|
+
"ALIGNED_START",
|
|
101
|
+
"ALIGNED_END",
|
|
102
|
+
"ALIGNED_CENTER",
|
|
103
|
+
"ALIGNED_START",
|
|
104
|
+
"ALIGNED_END"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"verticalAlign": {
|
|
108
|
+
"type": "enum",
|
|
109
|
+
"values": [
|
|
110
|
+
"undefined",
|
|
111
|
+
"ALIGNED_CENTER",
|
|
112
|
+
"ALIGNED_START",
|
|
113
|
+
"ALIGNED_END",
|
|
114
|
+
"ALIGNED_CENTER",
|
|
115
|
+
"ALIGNED_START",
|
|
116
|
+
"ALIGNED_END"
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
"fullheight": {
|
|
120
|
+
"type": "boolean",
|
|
121
|
+
"values": [
|
|
122
|
+
"undefined",
|
|
123
|
+
"false",
|
|
124
|
+
"true"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
"justify": {
|
|
128
|
+
"type": "enum",
|
|
129
|
+
"values": [
|
|
130
|
+
"undefined",
|
|
131
|
+
"justified-center",
|
|
132
|
+
"justified-start",
|
|
133
|
+
"justified-end",
|
|
134
|
+
"space-between",
|
|
135
|
+
"JUSTIFIED_CENTER",
|
|
136
|
+
"JUSTIFIED_START",
|
|
137
|
+
"JUSTIFIED_END",
|
|
138
|
+
"SPACE_BETWEEN"
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
"testId": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"values": [
|
|
144
|
+
"undefined",
|
|
145
|
+
"string"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"accessibilityLabel": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"values": [
|
|
151
|
+
"undefined",
|
|
152
|
+
"string"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
"accessibilityActivate": {
|
|
156
|
+
"type": "boolean",
|
|
157
|
+
"values": [
|
|
158
|
+
"undefined",
|
|
159
|
+
"false",
|
|
160
|
+
"true"
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
"backgroundColor": {
|
|
164
|
+
"type": "enum",
|
|
165
|
+
"values": [
|
|
166
|
+
"undefined",
|
|
167
|
+
"SUCCESS",
|
|
168
|
+
"INFO",
|
|
169
|
+
"WARNING",
|
|
170
|
+
"ERROR",
|
|
171
|
+
"WHITE",
|
|
172
|
+
"MAIN",
|
|
173
|
+
"MAIN_FADE",
|
|
174
|
+
"ACCENT",
|
|
175
|
+
"FONT",
|
|
176
|
+
"SUCCESS",
|
|
177
|
+
"SUCCESS_FADE",
|
|
178
|
+
"INFO",
|
|
179
|
+
"INFO_FADE",
|
|
180
|
+
"WARNING",
|
|
181
|
+
"WARNING_FADE",
|
|
182
|
+
"ERROR",
|
|
183
|
+
"ERROR_FADE",
|
|
184
|
+
"DISABLED",
|
|
185
|
+
"DISABLED_FADE",
|
|
186
|
+
"NEUTRAL",
|
|
187
|
+
"NEUTRAL_FADE",
|
|
188
|
+
"WHITE",
|
|
189
|
+
"MAIN",
|
|
190
|
+
"MAIN_FADE",
|
|
191
|
+
"ACCENT",
|
|
192
|
+
"FONT",
|
|
193
|
+
"SUCCESS_FADE",
|
|
194
|
+
"INFO_FADE",
|
|
195
|
+
"WARNING_FADE",
|
|
196
|
+
"ERROR_FADE",
|
|
197
|
+
"DISABLED",
|
|
198
|
+
"DISABLED_FADE",
|
|
199
|
+
"NEUTRAL",
|
|
200
|
+
"NEUTRAL_FADE"
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"backgroundSrc": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"values": [
|
|
206
|
+
"undefined",
|
|
207
|
+
"string"
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
"inverted": {
|
|
211
|
+
"type": "boolean",
|
|
212
|
+
"values": [
|
|
213
|
+
"undefined",
|
|
214
|
+
"false",
|
|
215
|
+
"true"
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
};
|
|
@@ -11,7 +11,6 @@ import { ComponentName } from "../../../components/enumsComponentsName";
|
|
|
11
11
|
* @param buttonClick {Function} Click event for Button
|
|
12
12
|
* @param text {string} Content text of Card
|
|
13
13
|
* @param onClick {Function} onClick Event for all content
|
|
14
|
-
* @param floating
|
|
15
14
|
* @param others
|
|
16
15
|
*/
|
|
17
16
|
declare const CardContent: {
|
|
@@ -15,7 +15,6 @@ import { ComponentName } from "../../../components/enumsComponentsName";
|
|
|
15
15
|
* @param buttonClick {Function} Click event for Button
|
|
16
16
|
* @param text {string} Content text of Card
|
|
17
17
|
* @param onClick {Function} onClick Event for all content
|
|
18
|
-
* @param floating
|
|
19
18
|
* @param others
|
|
20
19
|
*/
|
|
21
20
|
const CardContent = ({ children, titleSup, title, text, buttonText, buttonClick, buttonVariant, onClick, ...others }) => {
|
|
@@ -48,14 +47,14 @@ const CardContent = ({ children, titleSup, title, text, buttonText, buttonClick,
|
|
|
48
47
|
return (React.createElement(View, { style: styles.card, ...others }, children));
|
|
49
48
|
}
|
|
50
49
|
const cardContent = (React.createElement(View, { style: styles.card, ...others },
|
|
51
|
-
titleSup && React.createElement(Title, { overline: true, testId:
|
|
52
|
-
title && React.createElement(Title, { level: TitleLevels.ONE, testId:
|
|
50
|
+
titleSup && React.createElement(Title, { overline: true, testId: 'titleSup-id' }, titleSup),
|
|
51
|
+
title && React.createElement(Title, { level: TitleLevels.ONE, testId: 'title-id' }, title),
|
|
53
52
|
text && (React.createElement(React.Fragment, null,
|
|
54
53
|
React.createElement(View, { style: { marginBottom: 16 } }),
|
|
55
54
|
React.createElement(Text, { style: styles.text }, text))),
|
|
56
55
|
buttonText && (React.createElement(React.Fragment, null,
|
|
57
56
|
React.createElement(View, { style: { marginBottom: 16 } }),
|
|
58
|
-
React.createElement(Button, { variant: buttonVariant, onClick: buttonClick, testId:
|
|
57
|
+
React.createElement(Button, { variant: buttonVariant, onClick: buttonClick, testId: 'button-id' }, buttonText)))));
|
|
59
58
|
return onClick ? (React.createElement(View, { style: styles.view },
|
|
60
59
|
React.createElement(TouchableOpacity, { style: { width: "100%" }, onPress: onClick, activeOpacity: 0.85 }, cardContent))) : (cardContent);
|
|
61
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardContent.native.js","sourceRoot":"","sources":["../../../../components/card/content/CardContent.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEvE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE
|
|
1
|
+
{"version":3,"file":"CardContent.native.js","sourceRoot":"","sources":["../../../../components/card/content/CardContent.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEvE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,GAAG,CAAC,EACnB,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,UAAU,EACV,WAAW,EACX,aAAa,EACb,OAAO,EACP,GAAG,MAAM,EACQ,EAAe,EAAE;IAClC,MAAM,iBAAiB,GAAG,UAAU,CAAC,WAAW,CAAC,CAAA;IAEjD,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAC/B,IAAI,EAAE;YACJ,UAAU,EAAE,EAAE;YACd,WAAW,EAAE,EAAE;YACf,YAAY,EAAE,EAAE;YAChB,aAAa,EAAE,EAAE;YACjB,SAAS,EAAE,EAAE;YACb,IAAI,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SAC3C;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM;SACd;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,aAAa,CAAC,YAAY,CAAC,IAAI,CAAC;YACvC,QAAQ,EAAE,EAAE;S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C,IAAI;QACtB,oBAAC,gBAAgB,IACf,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EACxB,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,IAAI,IAElB,WAAW,CACK,CACd,CACR,CAAC,CAAC,CAAC,CACF,WAAW,CACZ,CAAA;AACH,CAAC,CAAA;AAED,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC,WAAW,CAAA;AAEnD,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"children": {
|
|
3
|
+
"type": "react",
|
|
4
|
+
"values": [
|
|
5
|
+
"undefined",
|
|
6
|
+
"null",
|
|
7
|
+
"string",
|
|
8
|
+
"number",
|
|
9
|
+
"false",
|
|
10
|
+
"true",
|
|
11
|
+
"JSXElementConstructor<any>>",
|
|
12
|
+
"ReactNode>",
|
|
13
|
+
"ReactPortal"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"titleSup": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"values": [
|
|
19
|
+
"undefined",
|
|
20
|
+
"string"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"titleSupLevel": {
|
|
24
|
+
"type": "enum",
|
|
25
|
+
"values": [
|
|
26
|
+
"undefined",
|
|
27
|
+
1,
|
|
28
|
+
2,
|
|
29
|
+
3,
|
|
30
|
+
4
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"title": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"values": [
|
|
36
|
+
"undefined",
|
|
37
|
+
"string"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"titleLevel": {
|
|
41
|
+
"type": "enum",
|
|
42
|
+
"values": [
|
|
43
|
+
"undefined",
|
|
44
|
+
1,
|
|
45
|
+
2,
|
|
46
|
+
3,
|
|
47
|
+
4,
|
|
48
|
+
5,
|
|
49
|
+
6
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"buttonText": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"values": [
|
|
55
|
+
"undefined",
|
|
56
|
+
"string"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"text": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"values": [
|
|
62
|
+
"undefined",
|
|
63
|
+
"string"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"textLevel": {
|
|
67
|
+
"type": "enum",
|
|
68
|
+
"values": [
|
|
69
|
+
"undefined",
|
|
70
|
+
1,
|
|
71
|
+
2,
|
|
72
|
+
3,
|
|
73
|
+
4
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"buttonVariant": {
|
|
77
|
+
"type": "enum",
|
|
78
|
+
"values": [
|
|
79
|
+
"undefined",
|
|
80
|
+
"CONVERSION",
|
|
81
|
+
"PRIMARY",
|
|
82
|
+
"SECONDARY",
|
|
83
|
+
"GHOST",
|
|
84
|
+
"CONVERSION",
|
|
85
|
+
"PRIMARY",
|
|
86
|
+
"SECONDARY",
|
|
87
|
+
"GHOST"
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"buttonClick": {
|
|
91
|
+
"type": "function",
|
|
92
|
+
"values": [
|
|
93
|
+
"undefined",
|
|
94
|
+
"ClickEvent"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"className": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"values": [
|
|
100
|
+
"undefined",
|
|
101
|
+
"string"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"buttonMarkup": {
|
|
105
|
+
"type": "enum",
|
|
106
|
+
"values": [
|
|
107
|
+
"undefined",
|
|
108
|
+
"a",
|
|
109
|
+
"button",
|
|
110
|
+
"input",
|
|
111
|
+
"button",
|
|
112
|
+
"input",
|
|
113
|
+
"a"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"onClick": {
|
|
117
|
+
"type": "function",
|
|
118
|
+
"values": [
|
|
119
|
+
"undefined",
|
|
120
|
+
"ClickEvent"
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"backgroundColor": {
|
|
124
|
+
"type": "enum",
|
|
125
|
+
"values": [
|
|
126
|
+
"undefined",
|
|
127
|
+
"WHITE",
|
|
128
|
+
"transparent"
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"testId": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"values": [
|
|
134
|
+
"undefined",
|
|
135
|
+
"string"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"accessibilityLabel": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"values": [
|
|
141
|
+
"undefined",
|
|
142
|
+
"string"
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
"accessibilityActivate": {
|
|
146
|
+
"type": "boolean",
|
|
147
|
+
"values": [
|
|
148
|
+
"undefined",
|
|
149
|
+
"false",
|
|
150
|
+
"true"
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
};
|
|
@@ -8,7 +8,6 @@ import { CardImageProps } from "./CardImageProps";
|
|
|
8
8
|
* @param size Image Card size on horizontal align
|
|
9
9
|
* @param onClick {Function} onClick Event
|
|
10
10
|
* - -------------------------- NATIVE PROPERTIES -------------------------------
|
|
11
|
-
* @param horizontal {boolean} Horizontal Card orientation
|
|
12
11
|
* @param contain {boolean} Resize mode contain
|
|
13
12
|
*/
|
|
14
13
|
declare const CardImage: ({ src, alt, className, size, onClick, ...others }: CardImageProps) => JSX.Element;
|
|
@@ -11,7 +11,6 @@ import { useTrilogyContext } from "../../../context";
|
|
|
11
11
|
* @param size Image Card size on horizontal align
|
|
12
12
|
* @param onClick {Function} onClick Event
|
|
13
13
|
* - -------------------------- NATIVE PROPERTIES -------------------------------
|
|
14
|
-
* @param horizontal {boolean} Horizontal Card orientation
|
|
15
14
|
* @param contain {boolean} Resize mode contain
|
|
16
15
|
*/
|
|
17
16
|
const CardImage = ({ src, alt, className, size, onClick, ...others }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardImage.js","sourceRoot":"","sources":["../../../../components/card/image/CardImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,IAAI,MAAM,MAAM,CAAA;AAEvB,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAE7C
|
|
1
|
+
{"version":3,"file":"CardImage.js","sourceRoot":"","sources":["../../../../components/card/image/CardImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,IAAI,MAAM,MAAM,CAAA;AAEvB,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAE7C;;;;;;;;;GASG;AACH,MAAM,SAAS,GAAG,CAAC,EACjB,GAAG,EACH,GAAG,EACH,SAAS,EACT,IAAI,EACJ,OAAO,EACP,GAAG,MAAM,EACM,EAAe,EAAE;IAChC,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAAA;IACtC,MAAM,OAAO,GAAG,SAAS,CACvB,MAAM,EACN,IAAI,CAAC,YAAY,EAAE,IAAI,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE,SAAS,CAAC,CACrD,CAAA;IAED,OAAO,CACL,6BACE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;YACb,iDAAiD;YACjD,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,CAAC,CAAC,CAAA;YACZ,CAAC,CAAC,eAAe,EAAE,CAAA;QACrB,CAAC,EACD,SAAS,EAAE,OAAO;QAElB,gCAAQ,SAAS,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,KAAM,MAAM;YAC7D,gCAAS,EAAE,GAAG,EAAE,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,GAAG,CAC1D,CACL,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -11,7 +11,7 @@ import { ComponentName } from '../../../components/enumsComponentsName';
|
|
|
11
11
|
* @param contain {boolean} Resize mode contain
|
|
12
12
|
*/
|
|
13
13
|
declare const CardImage: {
|
|
14
|
-
({ src, size, alt, onClick,
|
|
14
|
+
({ src, size, alt, onClick, contain, ...others }: CardImageProps): JSX.Element;
|
|
15
15
|
displayName: ComponentName;
|
|
16
16
|
};
|
|
17
17
|
export default CardImage;
|
|
@@ -11,10 +11,16 @@ import { ComponentName } from '../../../components/enumsComponentsName';
|
|
|
11
11
|
* @param horizontal {boolean} Horizontal Card orientation
|
|
12
12
|
* @param contain {boolean} Resize mode contain
|
|
13
13
|
*/
|
|
14
|
-
const CardImage = ({ src, size, alt, onClick,
|
|
14
|
+
const CardImage = ({ src, size, alt, onClick, contain, ...others }) => {
|
|
15
|
+
const { horizontal, reversed, active } = useContext(CardContext);
|
|
15
16
|
const maxSize = horizontal ? '50%' : '100%';
|
|
16
17
|
const [ratio, setRatio] = useState(1);
|
|
17
|
-
const
|
|
18
|
+
const getBorderRadius = (isHorizontal, isReversed, isActive) => ({
|
|
19
|
+
borderBottomRightRadius: (isHorizontal && 1) || (isReversed && 8) || 0,
|
|
20
|
+
borderBottomLeftRadius: (isHorizontal && 8) || (isReversed && 8) || 0,
|
|
21
|
+
borderTopRightRadius: (isHorizontal && 1) || (isReversed && 1) || (isActive && 5) || 8,
|
|
22
|
+
borderTopLeftRadius: (isHorizontal && 1) || (isReversed && 1) || (isActive && 5) || 8,
|
|
23
|
+
});
|
|
18
24
|
const styles = StyleSheet.create({
|
|
19
25
|
cardImage: {
|
|
20
26
|
width: size ? `${size}0%` : maxSize,
|
|
@@ -22,21 +28,18 @@ const CardImage = ({ src, size, alt, onClick, horizontal, contain, ...others })
|
|
|
22
28
|
resizeMode: contain ? 'contain' : 'cover',
|
|
23
29
|
alignSelf: contain ? 'flex-end' : 'auto',
|
|
24
30
|
marginBottom: 0,
|
|
25
|
-
|
|
26
|
-
borderBottomLeftRadius: (cardContextValues.horizontal && 8) || (cardContextValues.reversed && 8) || 0,
|
|
27
|
-
borderTopRightRadius: (cardContextValues.horizontal && 1) || (cardContextValues.reversed && 1) || (cardContextValues.active && 5) || 8,
|
|
28
|
-
borderTopLeftRadius: (cardContextValues.horizontal && 1) || (cardContextValues.reversed && 1) || (cardContextValues.active && 5) || 8,
|
|
31
|
+
...getBorderRadius(horizontal, reversed, active),
|
|
29
32
|
},
|
|
30
33
|
});
|
|
31
34
|
useEffect(() => {
|
|
32
|
-
if (!
|
|
35
|
+
if (!horizontal) {
|
|
33
36
|
typeof src === 'string'
|
|
34
37
|
? Image.getSize(src, (w, h) => {
|
|
35
38
|
h && setRatio(w / h);
|
|
36
39
|
}, () => setRatio(1))
|
|
37
40
|
: setRatio(1);
|
|
38
41
|
}
|
|
39
|
-
}, [src]);
|
|
42
|
+
}, [src, horizontal]);
|
|
40
43
|
const image = (React.createElement(Image, { accessibilityLabel: alt, style: styles.cardImage, source: typeof src === 'number' ? src : { uri: src }, ...others }));
|
|
41
44
|
return onClick ? (React.createElement(View, null,
|
|
42
45
|
React.createElement(TouchableOpacity, { onPress: onClick, activeOpacity: 0.85 }, image))) : (image);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardImage.native.js","sourceRoot":"","sources":["../../../../components/card/image/CardImage.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC9D,OAAO,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