@trilogy-ds/react 0.0.1-beta-107 → 0.0.1-beta-108
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 +13 -14
- 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 +216 -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 +102 -0
- package/lib/components/box/footer/BoxFooterPropsDefaults.js +87 -0
- package/lib/components/box/header/BoxHeaderPropsDefaults.js +118 -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 +10 -10
- 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 +7 -7
- package/lib/components/card/Card.native.js.map +1 -1
- package/lib/components/card/CardPropsDefaults.js +220 -0
- package/lib/components/card/content/CardContent.native.d.ts +0 -1
- package/lib/components/card/content/CardContent.native.js +0 -1
- 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 +185 -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 +2 -2
- package/lib/components/divider/Divider.native.js.map +1 -1
- package/lib/components/divider/DividerPropsDefaults.js +210 -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 +8 -8
- package/lib/components/hero/Hero.native.js.map +1 -1
- package/lib/components/hero/HeroPropsDefaults.js +144 -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 +307 -0
- package/lib/components/icon/circle/CircleIconPropsDefaults.js +168 -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 +49 -42
- 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 +1 -1
- 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 -88
- 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 +54 -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 +127 -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 +118 -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 +19 -7
- package/lib/components/select/option/SelectOption.native.js.map +1 -1
- package/lib/components/select/option/SelectOptionPropsDefaults.js +134 -0
- package/lib/components/select/web/SelectDynamic.js +3 -2
- package/lib/components/select/web/SelectDynamic.js.map +1 -1
- 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 +107 -0
- package/lib/components/table/head/TableHeadPropsDefaults.js +107 -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 +102 -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.d.ts +2 -2
- package/lib/components/textarea/Textarea.native.js +51 -43
- 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/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 +221 -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 +10 -5
- package/lib/objects/facets/Color.js +56 -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 -14
- 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 -31
- 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 -18
- 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 -10
- 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 -10
- 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 -21
- 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 -17
- 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 -13
- 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 -12
- 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 -18
- 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 -11
- 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 -10
- 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 -12
- 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 -16
- 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 -13
- 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 -12
- 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 -34
- 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 -10
- 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
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* New Text Levels
|
|
3
3
|
*/
|
|
4
4
|
export declare enum TextLevels {
|
|
5
|
-
ONE =
|
|
6
|
-
TWO =
|
|
7
|
-
THREE =
|
|
8
|
-
FOUR =
|
|
5
|
+
ONE = 1,
|
|
6
|
+
TWO = 2,
|
|
7
|
+
THREE = 3,
|
|
8
|
+
FOUR = 4
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* Text size values
|
|
12
12
|
*/
|
|
13
|
-
export type TextLevelValues =
|
|
13
|
+
export type TextLevelValues = TextLevels;
|
|
14
14
|
/**
|
|
15
15
|
* List of available Markup for Text
|
|
16
16
|
*/
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export var TextLevels;
|
|
5
5
|
(function (TextLevels) {
|
|
6
|
-
TextLevels["ONE"] = "ONE";
|
|
7
|
-
TextLevels["TWO"] = "TWO";
|
|
8
|
-
TextLevels["THREE"] = "THREE";
|
|
9
|
-
TextLevels["FOUR"] = "FOUR";
|
|
6
|
+
TextLevels[TextLevels["ONE"] = 1] = "ONE";
|
|
7
|
+
TextLevels[TextLevels["TWO"] = 2] = "TWO";
|
|
8
|
+
TextLevels[TextLevels["THREE"] = 3] = "THREE";
|
|
9
|
+
TextLevels[TextLevels["FOUR"] = 4] = "FOUR";
|
|
10
10
|
})(TextLevels || (TextLevels = {}));
|
|
11
11
|
/**
|
|
12
12
|
* List of available Markup for Text
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextEnum.js","sourceRoot":"","sources":["../../../components/text/TextEnum.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,
|
|
1
|
+
{"version":3,"file":"TextEnum.js","sourceRoot":"","sources":["../../../components/text/TextEnum.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yCAAO,CAAA;IACP,yCAAO,CAAA;IACP,6CAAS,CAAA;IACT,2CAAQ,CAAA;AACV,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AAOD;;GAEG;AACH,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,qBAAO,CAAA;IACP,2BAAa,CAAA;IACb,yBAAW,CAAA;IACX,qBAAO,CAAA;AACT,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"level": {
|
|
3
|
+
"type": "enum",
|
|
4
|
+
"values": [
|
|
5
|
+
"undefined",
|
|
6
|
+
1,
|
|
7
|
+
2,
|
|
8
|
+
3,
|
|
9
|
+
4
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"children": {
|
|
13
|
+
"type": "react",
|
|
14
|
+
"values": [
|
|
15
|
+
"undefined",
|
|
16
|
+
"null",
|
|
17
|
+
"string",
|
|
18
|
+
"number",
|
|
19
|
+
"false",
|
|
20
|
+
"true",
|
|
21
|
+
"JSXElementConstructor<any>>",
|
|
22
|
+
"ReactNode>",
|
|
23
|
+
"ReactPortal"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"typo": {
|
|
27
|
+
"type": "enum",
|
|
28
|
+
"values": [
|
|
29
|
+
"undefined",
|
|
30
|
+
"string[]",
|
|
31
|
+
"has-text-centered",
|
|
32
|
+
"has-text-justified",
|
|
33
|
+
"has-text-left",
|
|
34
|
+
"has-text-right",
|
|
35
|
+
"has-text-centered",
|
|
36
|
+
"has-text-justified",
|
|
37
|
+
"has-text-left",
|
|
38
|
+
"has-text-right",
|
|
39
|
+
"has-text-main",
|
|
40
|
+
"has-text-accent",
|
|
41
|
+
"has-text-info",
|
|
42
|
+
"has-text-success",
|
|
43
|
+
"has-text-warning",
|
|
44
|
+
"has-text-error",
|
|
45
|
+
"has-text-grey",
|
|
46
|
+
"has-text-white",
|
|
47
|
+
"has-text-disabled",
|
|
48
|
+
"has-text-main",
|
|
49
|
+
"has-text-accent",
|
|
50
|
+
"has-text-info",
|
|
51
|
+
"has-text-success",
|
|
52
|
+
"has-text-warning",
|
|
53
|
+
"has-text-error",
|
|
54
|
+
"has-text-grey",
|
|
55
|
+
"has-text-white",
|
|
56
|
+
"has-text-disabled",
|
|
57
|
+
"is-capitalized",
|
|
58
|
+
"is-lowercase",
|
|
59
|
+
"is-uppercase",
|
|
60
|
+
"is-italic",
|
|
61
|
+
"is-capitalized",
|
|
62
|
+
"is-lowercase",
|
|
63
|
+
"is-uppercase",
|
|
64
|
+
"is-italic",
|
|
65
|
+
"has-text-weight-normal",
|
|
66
|
+
"has-text-weight-medium",
|
|
67
|
+
"has-text-weight-semibold",
|
|
68
|
+
"has-text-weight-bold",
|
|
69
|
+
"has-text-weight-normal",
|
|
70
|
+
"has-text-weight-medium",
|
|
71
|
+
"has-text-weight-semibold",
|
|
72
|
+
"has-text-weight-bold"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"markup": {
|
|
76
|
+
"type": "enum",
|
|
77
|
+
"values": [
|
|
78
|
+
"undefined",
|
|
79
|
+
"a",
|
|
80
|
+
"div",
|
|
81
|
+
"p",
|
|
82
|
+
"span",
|
|
83
|
+
"p",
|
|
84
|
+
"span",
|
|
85
|
+
"div",
|
|
86
|
+
"a"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"className": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"values": [
|
|
92
|
+
"undefined",
|
|
93
|
+
"string"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"href": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"values": [
|
|
99
|
+
"undefined",
|
|
100
|
+
"string"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"title": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"values": [
|
|
106
|
+
"undefined",
|
|
107
|
+
"string"
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"style": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"values": [
|
|
113
|
+
"undefined",
|
|
114
|
+
"Styles"
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"skeleton": {
|
|
118
|
+
"type": "boolean",
|
|
119
|
+
"values": [
|
|
120
|
+
"undefined",
|
|
121
|
+
"false",
|
|
122
|
+
"true"
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
"htmlContent": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"values": [
|
|
128
|
+
"undefined",
|
|
129
|
+
"string"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
"marginless": {
|
|
133
|
+
"type": "boolean",
|
|
134
|
+
"values": [
|
|
135
|
+
"undefined",
|
|
136
|
+
"false",
|
|
137
|
+
"true"
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
"link": {
|
|
141
|
+
"type": "boolean",
|
|
142
|
+
"values": [
|
|
143
|
+
"undefined",
|
|
144
|
+
"false",
|
|
145
|
+
"true"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"numberOfLines": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"values": [
|
|
151
|
+
"undefined",
|
|
152
|
+
"number"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
"inverted": {
|
|
156
|
+
"type": "boolean",
|
|
157
|
+
"values": [
|
|
158
|
+
"undefined",
|
|
159
|
+
"false",
|
|
160
|
+
"true"
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
"testId": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"values": [
|
|
166
|
+
"undefined",
|
|
167
|
+
"string"
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
"accessibilityLabel": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"values": [
|
|
173
|
+
"undefined",
|
|
174
|
+
"string"
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
"accessibilityActivate": {
|
|
178
|
+
"type": "boolean",
|
|
179
|
+
"values": [
|
|
180
|
+
"undefined",
|
|
181
|
+
"false",
|
|
182
|
+
"true"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
"onClick": {
|
|
186
|
+
"type": "function",
|
|
187
|
+
"values": [
|
|
188
|
+
"undefined",
|
|
189
|
+
"ClickEvent"
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAA;AAEzB,cAAc,YAAY,CAAA;AAE1B,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -3,6 +3,8 @@ import { TextareaProps } from './TextareaProps';
|
|
|
3
3
|
/**
|
|
4
4
|
* Textarea Component
|
|
5
5
|
* @param disabled {boolean} Disabled textarea
|
|
6
|
+
* @param label {string} Label for textarea
|
|
7
|
+
* @param sample {string} Sample for textarea (below label)
|
|
6
8
|
* @param name {string} Textarea name
|
|
7
9
|
* @param onChange {Function} OnChange textarea Event
|
|
8
10
|
* @param placeholder {string} Placeholder textarea
|
|
@@ -13,8 +15,6 @@ import { TextareaProps } from './TextareaProps';
|
|
|
13
15
|
* @param rows {number} Textarea rows
|
|
14
16
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
15
17
|
* @param className {string} Additionnal CSS Classes
|
|
16
|
-
* @param hovered {boolean} Hover mode
|
|
17
|
-
* @param focused {boolean} Fucus mode
|
|
18
18
|
* @param minLength {number} Textarea min length
|
|
19
19
|
* @param status {InputStatus} Textarea with status - (SUCCESS|WARNING|ERROR|DEFAULT)
|
|
20
20
|
* - -------------------------- NATIVE PROPERTIES -------------------------------
|
|
@@ -25,5 +25,5 @@ import { TextareaProps } from './TextareaProps';
|
|
|
25
25
|
* @param textContentType {InputTextContentType} Give the keyboard and the system information
|
|
26
26
|
* @param keyboardType {InputKeyboardType} Keybaord type
|
|
27
27
|
*/
|
|
28
|
-
declare const Textarea: ({ className, disabled, onChange,
|
|
28
|
+
declare const Textarea: ({ className, sample, required, disabled, onChange, placeholder, defaultValue, help, status, statusIconName, dynamicPlaceholder, rows, ref, label, maxLength, minLength, iconName, typo, testId, ...others }: TextareaProps) => JSX.Element;
|
|
29
29
|
export default Textarea;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import React, { useEffect, useState } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { Text } from '../../components/text';
|
|
4
|
+
import { Text, TextLevels, TextMarkup } from '../../components/text';
|
|
5
5
|
import { has, is } from '../../services';
|
|
6
6
|
import { Icon } from '../../components/icon';
|
|
7
7
|
import { hashClass } from '../../helpers';
|
|
8
8
|
import { useTrilogyContext } from '../../context';
|
|
9
|
+
import { TypographyColor } from '../../objects';
|
|
9
10
|
/**
|
|
10
11
|
* Textarea Component
|
|
11
12
|
* @param disabled {boolean} Disabled textarea
|
|
13
|
+
* @param label {string} Label for textarea
|
|
14
|
+
* @param sample {string} Sample for textarea (below label)
|
|
12
15
|
* @param name {string} Textarea name
|
|
13
16
|
* @param onChange {Function} OnChange textarea Event
|
|
14
17
|
* @param placeholder {string} Placeholder textarea
|
|
@@ -19,8 +22,6 @@ import { useTrilogyContext } from '../../context';
|
|
|
19
22
|
* @param rows {number} Textarea rows
|
|
20
23
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
21
24
|
* @param className {string} Additionnal CSS Classes
|
|
22
|
-
* @param hovered {boolean} Hover mode
|
|
23
|
-
* @param focused {boolean} Fucus mode
|
|
24
25
|
* @param minLength {number} Textarea min length
|
|
25
26
|
* @param status {InputStatus} Textarea with status - (SUCCESS|WARNING|ERROR|DEFAULT)
|
|
26
27
|
* - -------------------------- NATIVE PROPERTIES -------------------------------
|
|
@@ -31,7 +32,7 @@ import { useTrilogyContext } from '../../context';
|
|
|
31
32
|
* @param textContentType {InputTextContentType} Give the keyboard and the system information
|
|
32
33
|
* @param keyboardType {InputKeyboardType} Keybaord type
|
|
33
34
|
*/
|
|
34
|
-
const Textarea = ({ className,
|
|
35
|
+
const Textarea = ({ className, sample, required, disabled, onChange, placeholder, defaultValue, help, status, statusIconName, dynamicPlaceholder = true, rows, ref, label, maxLength, minLength, iconName, typo, testId, ...others }) => {
|
|
35
36
|
const [value, setValue] = useState(defaultValue || '');
|
|
36
37
|
const { styled } = useTrilogyContext();
|
|
37
38
|
useEffect(() => {
|
|
@@ -42,7 +43,11 @@ const Textarea = ({ className, disabled, onChange, focused = true, placeholder,
|
|
|
42
43
|
const helpClasses = clsx('help');
|
|
43
44
|
const counterClasses = hashClass(styled, clsx('counter', maxLength));
|
|
44
45
|
return (React.createElement("div", { className: wrapperClasses },
|
|
45
|
-
!dynamicPlaceholder && React.createElement("label",
|
|
46
|
+
!dynamicPlaceholder && React.createElement("label", { className: 'textarea-label' },
|
|
47
|
+
label,
|
|
48
|
+
" ",
|
|
49
|
+
label && required && React.createElement(Text, { markup: TextMarkup.SPAN, typo: TypographyColor.TEXT_ERROR }, "*")),
|
|
50
|
+
!dynamicPlaceholder && label && sample && React.createElement(Text, { className: 'textarea-sample', level: TextLevels.TWO, typo: TypographyColor.TEXT_DISABLED }, sample),
|
|
46
51
|
React.createElement("textarea", { "data-testid": testId, minLength: minLength, disabled: disabled, ref: ref, ...others, className: classes, value: value, onChange: (e) => {
|
|
47
52
|
setValue(e.target.value);
|
|
48
53
|
if (onChange) {
|
|
@@ -51,7 +56,7 @@ const Textarea = ({ className, disabled, onChange, focused = true, placeholder,
|
|
|
51
56
|
textareaValue: e.target.value,
|
|
52
57
|
});
|
|
53
58
|
}
|
|
54
|
-
}, placeholder: placeholder, rows: rows, maxLength: maxLength }),
|
|
59
|
+
}, placeholder: placeholder, rows: rows, maxLength: maxLength, required: required }),
|
|
55
60
|
dynamicPlaceholder && React.createElement("label", null, label),
|
|
56
61
|
iconName && React.createElement(Icon, { name: iconName, size: 'small' }),
|
|
57
62
|
statusIconName && React.createElement(Icon, { name: statusIconName, size: 'small' }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.js","sourceRoot":"","sources":["../../../components/textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"Textarea.js","sourceRoot":"","sources":["../../../components/textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,s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pB,QAAQ,EAAE,QAAQ,GAClB;QACD,kBAAkB,IAAI,mCAAQ,KAAK,CAAS;QAC5C,QAAQ,IAAI,oBAAC,IAAI,IAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAC,OAAO,GAAG;QACjD,cAAc,IAAI,oBAAC,IAAI,IAAC,IAAI,EAAE,cAAc,EAAE,IAAI,EAAC,OAAO,GAAG;QAC7D,IAAI,IAAI,CACP,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,IACrC,IAAI,CACA,CACR;QACA,SAAS,IAAI,6BAAK,SAAS,EAAE,cAAc,IAAG,GAAG,KAAK,CAAC,MAAM,IAAI,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,EAAE,EAAE,CAAO,CAC5F,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { TextareaNativeProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextareaNativeProps } from './TextareaProps';
|
|
3
3
|
declare const _default: React.ForwardRefExoticComponent<Omit<TextareaNativeProps, "ref"> & React.RefAttributes<unknown>>;
|
|
4
4
|
export default _default;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { InputAutoCapitalize, InputKeyboardAppearance, InputKeyboardType, InputTextContentType, } from
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { ComponentName } from '../../components/enumsComponentsName';
|
|
2
|
+
import { Icon } from '../../components/icon';
|
|
3
|
+
import { InputAutoCapitalize, InputKeyboardAppearance, InputKeyboardType, InputTextContentType, } from '../../components/input/InputEnum';
|
|
4
|
+
import { TypographyColor } from '../../objects';
|
|
5
|
+
import { getColorStyle, TrilogyColor } from '../../objects/facets/Color';
|
|
6
|
+
import { StatusState } from '../../objects/facets/Status';
|
|
7
|
+
import React, { forwardRef, useEffect, useRef, useState } from 'react';
|
|
8
|
+
import { Animated, StyleSheet, Text, TextInput, View } from 'react-native';
|
|
9
|
+
import { Spacer, SpacerSize } from '../spacer';
|
|
10
|
+
import { Text as TrilogyText } from '../text';
|
|
11
|
+
import { TextLevels } from '../text/TextEnum';
|
|
8
12
|
/**
|
|
9
13
|
* Textarea Native Component
|
|
10
14
|
* @param name {string} Textarea name
|
|
15
|
+
* @param label {string} Textarea label
|
|
16
|
+
* @param sample {string} Textarea sample
|
|
11
17
|
* @param disabled {boolean} Disabled input
|
|
12
18
|
* @param onChange {Function} OnChange Input Event
|
|
13
19
|
* @param placeholder {string} Placeholder Input
|
|
@@ -23,15 +29,13 @@ import { ComponentName } from "../../components/enumsComponentsName";
|
|
|
23
29
|
* @param keyboardType {InputKeyboardType} Keybaord type
|
|
24
30
|
* @param maxLength {number} Textarea max length
|
|
25
31
|
*/
|
|
26
|
-
const Textarea = ({ defaultValue, name, onChange, disabled, help, placeholder, keyboardStyle, autoCapitalize, autoCorrect, textContentType, keyboardType, status, maxLength, dynamicPlaceholder = true, label, iconName, statusIconName, customHeight = 120, value, testId, ...others },
|
|
32
|
+
const Textarea = ({ defaultValue, name, sample, onChange, disabled, help, placeholder, keyboardStyle, autoCapitalize, autoCorrect, textContentType, keyboardType, status, maxLength, dynamicPlaceholder = true, label, iconName, statusIconName, customHeight = 120, value, testId, required, ...others },
|
|
27
33
|
// eslint-disable-next-line
|
|
28
34
|
ref) => {
|
|
29
|
-
const [_value, setValue] = useState(value ||
|
|
35
|
+
const [_value, setValue] = useState(value || '');
|
|
30
36
|
const [isFocus, setIsFocus] = useState(false);
|
|
31
37
|
const [displayDynamicLabel, setDisplayDynamicLabel] = useState(false);
|
|
32
|
-
const textareaColor = isFocus
|
|
33
|
-
? getColorStyle(TrilogyColor.MAIN)
|
|
34
|
-
: getColorStyle(TrilogyColor.FONT, 1);
|
|
38
|
+
const textareaColor = isFocus ? getColorStyle(TrilogyColor.MAIN) : getColorStyle(TrilogyColor.NEUTRAL);
|
|
35
39
|
const animation = useRef(new Animated.Value(0)).current;
|
|
36
40
|
useEffect(() => {
|
|
37
41
|
if (displayDynamicLabel) {
|
|
@@ -46,29 +50,27 @@ ref) => {
|
|
|
46
50
|
textarea: {
|
|
47
51
|
borderWidth: isFocus ? 2 : 1,
|
|
48
52
|
borderRadius: 3,
|
|
49
|
-
borderColor: (status && status ===
|
|
50
|
-
(status && status ===
|
|
51
|
-
(status && status ===
|
|
52
|
-
(status && status ===
|
|
53
|
+
borderColor: (status && status === 'success' && getColorStyle(StatusState.SUCCESS)) ||
|
|
54
|
+
(status && status === 'warning' && getColorStyle(StatusState.WARNING)) ||
|
|
55
|
+
(status && status === 'error' && getColorStyle(StatusState.ERROR)) ||
|
|
56
|
+
(status && status === 'default' && textareaColor) ||
|
|
53
57
|
textareaColor,
|
|
54
58
|
height: customHeight,
|
|
55
|
-
justifyContent:
|
|
59
|
+
justifyContent: 'flex-start',
|
|
56
60
|
paddingLeft: iconName ? 48 : 16,
|
|
57
61
|
paddingRight: maxLength ? 48 : 16,
|
|
58
62
|
paddingTop: dynamicPlaceholder && displayDynamicLabel ? 24 : 8,
|
|
59
|
-
textAlignVertical:
|
|
63
|
+
textAlignVertical: 'top',
|
|
60
64
|
color: getColorStyle(TrilogyColor.MAIN),
|
|
61
|
-
backgroundColor: disabled
|
|
62
|
-
? getColorStyle(TrilogyColor.DISABLED, 1)
|
|
63
|
-
: getColorStyle(TrilogyColor.BACKGROUND),
|
|
65
|
+
backgroundColor: disabled ? getColorStyle(TrilogyColor.DISABLED_FADE) : getColorStyle(TrilogyColor.BACKGROUND),
|
|
64
66
|
/* width: '',*/
|
|
65
67
|
},
|
|
66
68
|
help: {
|
|
67
69
|
fontSize: 12,
|
|
68
|
-
color: (status && status ===
|
|
69
|
-
(status && status ===
|
|
70
|
-
(status && status ===
|
|
71
|
-
(status && status ===
|
|
70
|
+
color: (status && status === 'success' && getColorStyle(StatusState.SUCCESS)) ||
|
|
71
|
+
(status && status === 'warning' && getColorStyle(StatusState.WARNING)) ||
|
|
72
|
+
(status && status === 'error' && getColorStyle(StatusState.ERROR)) ||
|
|
73
|
+
(status && status === 'default' && textareaColor) ||
|
|
72
74
|
textareaColor,
|
|
73
75
|
paddingLeft: 4,
|
|
74
76
|
paddingTop: 2,
|
|
@@ -76,39 +78,45 @@ ref) => {
|
|
|
76
78
|
counter: {
|
|
77
79
|
fontSize: 10,
|
|
78
80
|
color: getColorStyle(TrilogyColor.MAIN),
|
|
79
|
-
position:
|
|
81
|
+
position: 'absolute',
|
|
80
82
|
bottom: help ? 24 : 8,
|
|
81
83
|
right: 8,
|
|
82
|
-
backgroundColor: disabled
|
|
83
|
-
? getColorStyle(TrilogyColor.DISABLED)
|
|
84
|
-
: "white",
|
|
84
|
+
backgroundColor: disabled ? getColorStyle(TrilogyColor.DISABLED) : 'white',
|
|
85
85
|
padding: 3,
|
|
86
86
|
},
|
|
87
87
|
dynamicLabel: {
|
|
88
|
-
position:
|
|
88
|
+
position: 'absolute',
|
|
89
89
|
top: 2,
|
|
90
90
|
left: iconName ? 40 : 8,
|
|
91
91
|
fontSize: 12,
|
|
92
|
-
color: getColorStyle(TrilogyColor.
|
|
93
|
-
backgroundColor:
|
|
92
|
+
color: getColorStyle(TrilogyColor.FONT_PLACEHOLDER),
|
|
93
|
+
backgroundColor: 'transparent',
|
|
94
94
|
padding: 8,
|
|
95
95
|
paddingBottom: 4,
|
|
96
96
|
},
|
|
97
97
|
leftIcon: {
|
|
98
|
-
position:
|
|
99
|
-
top: 16,
|
|
98
|
+
position: 'absolute',
|
|
99
|
+
top: (dynamicPlaceholder && 16) || (!dynamicPlaceholder && label && sample && 60) || 55,
|
|
100
100
|
left: 16,
|
|
101
|
-
zIndex: 10
|
|
101
|
+
zIndex: 10,
|
|
102
102
|
},
|
|
103
103
|
rightIcon: {
|
|
104
|
-
position:
|
|
105
|
-
top: dynamicPlaceholder
|
|
104
|
+
position: 'absolute',
|
|
105
|
+
top: (dynamicPlaceholder && 16) || (!dynamicPlaceholder && label && sample && 60) || 55,
|
|
106
106
|
right: 16,
|
|
107
|
-
zIndex: 10
|
|
107
|
+
zIndex: 10,
|
|
108
108
|
},
|
|
109
109
|
});
|
|
110
110
|
return (React.createElement(View, null,
|
|
111
|
-
!dynamicPlaceholder && (React.createElement(
|
|
111
|
+
!dynamicPlaceholder && label && (React.createElement(React.Fragment, null,
|
|
112
|
+
React.createElement(TrilogyText, { typo: TypographyColor.TEXT_DISABLED },
|
|
113
|
+
label,
|
|
114
|
+
" ",
|
|
115
|
+
label && required && React.createElement(TrilogyText, { typo: TypographyColor.TEXT_ERROR }, "*")),
|
|
116
|
+
React.createElement(Spacer, { size: SpacerSize.THREE }))),
|
|
117
|
+
!dynamicPlaceholder && label && sample && (React.createElement(React.Fragment, null,
|
|
118
|
+
React.createElement(TrilogyText, { level: TextLevels.THREE, typo: TypographyColor.TEXT_DISABLED }, sample),
|
|
119
|
+
React.createElement(Spacer, { size: SpacerSize.THREE }))),
|
|
112
120
|
iconName && (React.createElement(Text, { style: styles.leftIcon },
|
|
113
121
|
React.createElement(Icon, { name: iconName, size: 'small', testId: `${testId}-icon` }))),
|
|
114
122
|
React.createElement(TextInput, { maxLength: maxLength, value: _value, defaultValue: defaultValue, editable: !disabled, multiline: true, keyboardAppearance: keyboardStyle || InputKeyboardAppearance.DEFAULT, autoCapitalize: autoCapitalize || InputAutoCapitalize.NONE, autoCorrect: autoCorrect || false, textContentType: textContentType || InputTextContentType.NONE, keyboardType: keyboardType || InputKeyboardType.DEFAULT, onChangeText: (text) => {
|
|
@@ -116,16 +124,16 @@ ref) => {
|
|
|
116
124
|
setValue(text);
|
|
117
125
|
if (onChange) {
|
|
118
126
|
onChange({
|
|
119
|
-
textareaName: (name && name) ||
|
|
127
|
+
textareaName: (name && name) || '',
|
|
120
128
|
textareaValue: text,
|
|
121
129
|
});
|
|
122
130
|
}
|
|
123
|
-
}, placeholder: placeholder, style: styles.textarea, onFocus: () => setIsFocus(true), onBlur: () => setIsFocus(false), ...others, ref: ref }),
|
|
131
|
+
}, placeholder: placeholder, style: styles.textarea, onFocus: () => setIsFocus(true), onBlur: () => setIsFocus(false), ...others, ref: ref, placeholderTextColor: disabled ? getColorStyle(TrilogyColor.DISABLED) : getColorStyle(TrilogyColor.FONT_PLACEHOLDER) }),
|
|
124
132
|
statusIconName && (React.createElement(Text, { style: styles.rightIcon },
|
|
125
133
|
React.createElement(Icon, { name: statusIconName, size: 'small', color: status && status.toUpperCase(), testId: `${testId}-statusIcon` }))),
|
|
126
|
-
displayDynamicLabel && dynamicPlaceholder &&
|
|
134
|
+
displayDynamicLabel && dynamicPlaceholder && React.createElement(Text, { style: styles.dynamicLabel }, label),
|
|
127
135
|
maxLength && (React.createElement(Text, { style: styles.counter, testID: `${testId}-maxLength` }, _value ? `${_value === null || _value === void 0 ? void 0 : _value.length} / ${maxLength}` : `0 / ${maxLength}`)),
|
|
128
|
-
help && React.createElement(Text, { style: styles.help, testID: `${testId}-help` }, help)));
|
|
136
|
+
help && (React.createElement(Text, { style: styles.help, testID: `${testId}-help` }, help))));
|
|
129
137
|
};
|
|
130
138
|
Textarea.displayName = ComponentName.Textarea;
|
|
131
139
|
export default forwardRef(Textarea);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.native.js","sourceRoot":"","sources":["../../../components/textarea/Textarea.native.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Textarea.native.js","sourceRoot":"","sources":["../../../components/textarea/Textarea.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,EAAE,IAAI,EAAa,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAAE,eAAe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,EAAE,MAAM,CAAC,SAAS;YAC3B,oBAAC,IAAI,IACH,IAAI,EAAE,cAAc,EACpB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,MAAM,IAAK,MAAM,CAAC,WAAW,EAAgB,EACpD,MAAM,EAAE,GAAG,MAAM,aAAa,GAC9B,CACG,CACR;QAEA,mBAAmB,IAAI,kBAAkB,IAAI,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,YAAY,IAAG,KAAK,CAAQ;QAC7F,SAAS,IAAI,CACZ,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,YAAY,IACvD,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,MAAM,SAAS,EAAE,CAAC,CAAC,CAAC,OAAO,SAAS,EAAE,CAC5D,CACR;QACA,IAAI,IAAI,CACP,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,OAAO,IAC/C,IAAI,CACA,CACR,CACI,CACR,CAAA;AACH,CAAC,CAAA;AAED,QAAQ,CAAC,WAAW,GAAG,aAAa,CAAC,QAAQ,CAAA;AAE7C,eAAe,UAAU,CAAC,QAAQ,CAAC,CAAA"}
|
|
@@ -39,6 +39,8 @@ type TextareaPropsWeb = Accessibility & {
|
|
|
39
39
|
statusIconName?: IconName | IconNameValues;
|
|
40
40
|
typo?: TypographyColor | TypographyColorValues;
|
|
41
41
|
customHeight?: number;
|
|
42
|
+
required?: boolean;
|
|
43
|
+
sample?: string;
|
|
42
44
|
};
|
|
43
45
|
export type TextareaNativeProps = TextareaPropsWeb & ReferenceableNative<TextInput>;
|
|
44
46
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/textarea/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/textarea/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAA;AAEjC,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { TimelineProps } from "./TimelineProps";
|
|
3
3
|
/**
|
|
4
4
|
* Timeline Component
|
|
@@ -8,5 +8,5 @@ import { TimelineProps } from "./TimelineProps";
|
|
|
8
8
|
* @param horizontal {boolean} timeline horizontal
|
|
9
9
|
* @param className {string} Additionnal CSS Classes
|
|
10
10
|
*/
|
|
11
|
-
declare const Timeline:
|
|
11
|
+
declare const Timeline: React.ForwardRefExoticComponent<TimelineProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
export default Timeline;
|
|
@@ -11,11 +11,11 @@ import { is } from "../../services";
|
|
|
11
11
|
* @param horizontal {boolean} timeline horizontal
|
|
12
12
|
* @param className {string} Additionnal CSS Classes
|
|
13
13
|
*/
|
|
14
|
-
const Timeline = (
|
|
14
|
+
const Timeline = React.forwardRef((props, ref) => {
|
|
15
|
+
const { className, notifications, horizontal, ...others } = props;
|
|
15
16
|
const { styled } = useTrilogyContext();
|
|
16
|
-
const timelineRef = React.useRef(null);
|
|
17
17
|
const classes = hashClass(styled, clsx("timeline", notifications && notifications, horizontal && is("horizontal"), className));
|
|
18
|
-
return React.createElement("div", { ref:
|
|
19
|
-
};
|
|
18
|
+
return React.createElement("div", { ref: ref, className: classes, ...others });
|
|
19
|
+
});
|
|
20
20
|
export default Timeline;
|
|
21
21
|
//# sourceMappingURL=Timeline.js.map
|