@trilogy-ds/react 0.0.1-beta-103 → 0.0.1-beta-104
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 +48 -41
- 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/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.js +29 -15
- 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 -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 -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 -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 -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 -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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { is } from "../../../services/index";
|
|
3
|
-
import {
|
|
3
|
+
import { getStatusClassName } from "../../../objects";
|
|
4
4
|
import { hashClass } from "../../../helpers";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { useTrilogyContext } from "../../../context";
|
|
@@ -9,16 +9,17 @@ import { useTrilogyContext } from "../../../context";
|
|
|
9
9
|
* @param percent {number} Progress percent
|
|
10
10
|
* @param minPercent {number} Default min percent is 100
|
|
11
11
|
* @param maxPercent {number} Default max percent is 100
|
|
12
|
-
* @param
|
|
12
|
+
* @param status {StatusState} Progress status variant (SUCCESS|INFO|WARNING|ERROR)
|
|
13
13
|
* @param children {React.ReactNode}
|
|
14
14
|
* @param accessibilityLabel {string} Accessibility label
|
|
15
15
|
* -------------------------- WEB PROPERTIES -------------------------------
|
|
16
16
|
* @param className {string} Additionnal CSS classes
|
|
17
17
|
*/
|
|
18
|
-
const ProgressItem = (
|
|
18
|
+
const ProgressItem = React.forwardRef((props, ref) => {
|
|
19
|
+
const { className, percent, maxPercent = 100, minPercent = 0, status, accessibilityLabel, ...others } = props;
|
|
19
20
|
const { styled } = useTrilogyContext();
|
|
20
|
-
const classes = hashClass(styled, clsx("progress-bar",
|
|
21
|
-
return (React.createElement("div", { ...(percent && { style: { width: `${percent}%` } }), className: classes, role: 'progressbar', "aria-valuenow": percent, "aria-valuemin": minPercent, "aria-valuemax": maxPercent, "aria-label": accessibilityLabel, ...others }));
|
|
22
|
-
};
|
|
21
|
+
const classes = hashClass(styled, clsx("progress-bar", status && is(getStatusClassName(status)), !status && is("primary"), className));
|
|
22
|
+
return (React.createElement("div", { ref: ref, ...(percent && { style: { width: `${percent}%` } }), className: classes, role: 'progressbar', "aria-valuenow": percent, "aria-valuemin": minPercent, "aria-valuemax": maxPercent, "aria-label": accessibilityLabel, ...others }));
|
|
23
|
+
});
|
|
23
24
|
export default ProgressItem;
|
|
24
25
|
//# sourceMappingURL=ProgressItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressItem.js","sourceRoot":"","sources":["../../../../components/progress/item/ProgressItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AACrC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ProgressItem.js","sourceRoot":"","sources":["../../../../components/progress/item/ProgressItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAE7C;;;;;;;;;;GAUG;AACH,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAwB,EAAE,GAAoC,EAAE,EAAE;IACvG,MAAM,EACJ,SAAS,EACT,OAAO,EACP,UAAU,GAAG,GAAG,EAChB,UAAU,GAAG,CAAC,EACd,MAAM,EACN,kBAAkB,EAClB,GAAG,MAAM,EACV,GAAG,KAAK,CAAA;IAET,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAEtC,MAAM,OAAO,GAAG,SAAS,CACvB,MAAM,EACN,IAAI,CACF,cAAc,EACd,MAAM,IAAI,EAAE,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,EACxC,CAAC,MAAM,IAAI,EAAE,CAAC,SAAS,CAAC,EACxB,SAAS,CACV,CACF,CAAA;IAED,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,KACJ,CAAC,OAAO,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,GAAG,EAAE,EAAE,CAAC,EACpD,SAAS,EAAE,OAAO,EAClB,IAAI,EAAC,aAAa,mBACH,OAAO,mBACP,UAAU,mBACV,UAAU,gBACb,kBAAkB,KAC1B,MAAM,GACV,CACH,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,YAAY,CAAA"}
|
|
@@ -5,11 +5,11 @@ import { ComponentName } from '../../../components/enumsComponentsName';
|
|
|
5
5
|
* Progress Item component - Only if stacked
|
|
6
6
|
* @param percent {number} Progress percent
|
|
7
7
|
* @param minPercent {number} Default min percent is 100
|
|
8
|
-
* @param
|
|
8
|
+
* @param status {StatusState} Progress status variant (SUCCESS|INFO|WARNING|ERROR)
|
|
9
9
|
* @param children {React.ReactNode}
|
|
10
10
|
*/
|
|
11
11
|
declare const ProgressItem: {
|
|
12
|
-
({ children, percent,
|
|
12
|
+
({ children, percent, status, ...others }: ProgressItemProps): JSX.Element;
|
|
13
13
|
dispmayName: ComponentName;
|
|
14
14
|
};
|
|
15
15
|
export default ProgressItem;
|
|
@@ -5,11 +5,11 @@ import { ComponentName } from '../../../components/enumsComponentsName';
|
|
|
5
5
|
* Progress Item component - Only if stacked
|
|
6
6
|
* @param percent {number} Progress percent
|
|
7
7
|
* @param minPercent {number} Default min percent is 100
|
|
8
|
-
* @param
|
|
8
|
+
* @param status {StatusState} Progress status variant (SUCCESS|INFO|WARNING|ERROR)
|
|
9
9
|
* @param children {React.ReactNode}
|
|
10
10
|
*/
|
|
11
11
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12
|
-
const ProgressItem = ({ children, percent,
|
|
12
|
+
const ProgressItem = ({ children, percent, status, ...others }) => {
|
|
13
13
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14
14
|
const givenProps = others;
|
|
15
15
|
const givenstyle = givenProps.style;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressItem.native.js","sourceRoot":"","sources":["../../../../components/progress/item/ProgressItem.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE;;;;;;GAMG;AACH,6DAA6D;AAC7D,MAAM,YAAY,GAAG,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ProgressItem.native.js","sourceRoot":"","sources":["../../../../components/progress/item/ProgressItem.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE;;;;;;GAMG;AACH,6DAA6D;AAC7D,MAAM,YAAY,GAAG,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAqB,EAAe,EAAE;IAChG,8DAA8D;IAC9D,MAAM,UAAU,GAAG,MAAa,CAAA;IAChC,MAAM,UAAU,GAAG,UAAU,CAAC,KAAK,CAAA;IAEnC,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAA;IAEvD,SAAS,CAAC,GAAG,EAAE;QACb,iDAAiD;QACjD,OAAO;YACL,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE;gBACzB,OAAO,EAAE,OAAO;gBAChB,QAAQ,EAAE,IAAI;gBACd,eAAe,EAAE,KAAK;aACvB,CAAC,CAAC,KAAK,EAAE,CAAA;IACd,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAA;IAExB,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC;QAClC,UAAU,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC;QACpB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;QAC3B,WAAW,EAAE,OAAO;KACrB,CAAC,CAAA;IAEF,OAAO,CACL,oBAAC,QAAQ,CAAC,IAAI,OAAK,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,GAAG,UAAU,CAAC,IACzD,QAAQ,CACK,CACjB,CAAA;AACH,CAAC,CAAA;AAED,YAAY,CAAC,WAAW,GAAG,aAAa,CAAC,YAAY,CAAA;AAErD,eAAe,YAAY,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Accessibility,
|
|
2
|
+
import { Accessibility, StatusProps } from '../../../objects/facets';
|
|
3
3
|
/**
|
|
4
4
|
* Progress Item Interface
|
|
5
5
|
*/
|
|
6
|
-
export interface ProgressItemProps extends
|
|
6
|
+
export interface ProgressItemProps extends StatusProps, Accessibility {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
percent: number;
|
|
9
9
|
minPercent?: number;
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
"percent": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"values": []
|
|
19
|
+
},
|
|
20
|
+
"minPercent": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"values": [
|
|
23
|
+
"undefined",
|
|
24
|
+
"number"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"maxPercent": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"values": [
|
|
30
|
+
"undefined",
|
|
31
|
+
"number"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"className": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"values": [
|
|
37
|
+
"undefined",
|
|
38
|
+
"string"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"status": {
|
|
42
|
+
"type": "enum",
|
|
43
|
+
"values": [
|
|
44
|
+
"undefined",
|
|
45
|
+
"SUCCESS",
|
|
46
|
+
"INFO",
|
|
47
|
+
"WARNING",
|
|
48
|
+
"ERROR",
|
|
49
|
+
"SUCCESS",
|
|
50
|
+
"INFO",
|
|
51
|
+
"WARNING",
|
|
52
|
+
"ERROR"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"id": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"values": [
|
|
58
|
+
"undefined",
|
|
59
|
+
"string"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"testId": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"values": [
|
|
65
|
+
"undefined",
|
|
66
|
+
"string"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"accessibilityLabel": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"values": [
|
|
72
|
+
"undefined",
|
|
73
|
+
"string"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"accessibilityActivate": {
|
|
77
|
+
"type": "boolean",
|
|
78
|
+
"values": [
|
|
79
|
+
"undefined",
|
|
80
|
+
"false",
|
|
81
|
+
"true"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
};
|
|
@@ -5,6 +5,7 @@ import { hashClass } from '../../../helpers';
|
|
|
5
5
|
import { useTrilogyContext } from '../../../context';
|
|
6
6
|
import { Title, TitleLevels } from '../../title';
|
|
7
7
|
import { Text, TextLevels } from '../../text';
|
|
8
|
+
import { getColorStyle } from "../../../objects/facets/Color";
|
|
8
9
|
const ProgressRadial = ({ children, percent = 0, secondPercent = 0, label, description, skeleton, className, small, ...others }) => {
|
|
9
10
|
const { styled } = useTrilogyContext();
|
|
10
11
|
const [firstProgressCurrentValue, setFirstProgressCurrentValue] = useState(0);
|
|
@@ -24,7 +25,7 @@ const ProgressRadial = ({ children, percent = 0, secondPercent = 0, label, descr
|
|
|
24
25
|
const secondProgressStartDegree = firstProgressDegree;
|
|
25
26
|
let styleBackground;
|
|
26
27
|
styleBackground = `radial-gradient(circle at center, white 58%, transparent 58.1%),`;
|
|
27
|
-
styleBackground += `conic-gradient(#0C7B91 0 ${firstProgressDegree}deg,
|
|
28
|
+
styleBackground += `conic-gradient(#0C7B91 0 ${firstProgressDegree}deg, ${getColorStyle('MAIN')} ${secondProgressStartDegree}deg ${secondProgressStartDegree + secondProgressDegree}deg, gainsboro ${secondProgressStartDegree + secondProgressDegree}deg 360deg)`;
|
|
28
29
|
progressRadial.style.background = styleBackground;
|
|
29
30
|
};
|
|
30
31
|
useEffect(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressRadial.js","sourceRoot":"","sources":["../../../../components/progress/radial/ProgressRadial.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"ProgressRadial.js","sourceRoot":"","sources":["../../../../components/progress/radial/ProgressRadial.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,EAAE,EAAE,MAAM,yBAAyB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAErD,MAAM,cAAc,GAAG,CAAC,EACtB,QAAQ,EACR,OAAO,GAAG,CAAC,EACX,aAAa,GAAG,CAAC,EACjB,KAAK,EACL,WAAW,EACX,QAAQ,EACR,SAAS,EACT,KAAK,EACL,GAAG,MAAM,EACW,EAAe,EAAE;IACrC,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAAC;IACvC,MAAM,CAAC,yBAAyB,EAAE,4BAA4B,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC9E,MAAM,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEhF,MAAM,OAAO,GAAG,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,QAAQ,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE,KAAK,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC;IACvH,MAAM,cAAc,GAAG,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,yBAAyB,CAAC,CAAC,CAAC;IAE1E,MAAM,iBAAiB,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAEvD,wEAAwE;IACxE,MAAM,qBAAqB,GAAG,CAAC,UAAkB,EAAE,WAAmB,EAAE,EAAE;QACxE,MAAM,cAAc,GAAG,iBAAiB,CAAC,OAAO,CAAC;QACjD,IAAI,CAAC,cAAc,EAAE;YACnB,OAAO;SACR;QAED,MAAM,mBAAmB,GAAG,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,GAAG,CAAC;QACrD,MAAM,oBAAoB,GAAG,CAAC,GAAG,GAAG,WAAW,CAAC,GAAG,GAAG,CAAC;QAEvD,yDAAyD;QACzD,MAAM,yBAAyB,GAAG,mBAAmB,CAAC;QAEtD,IAAI,eAAe,CAAC;QACpB,eAAe,GAAG,kEAAkE,CAAC;QACrF,eAAe,IAAI,4BAA4B,mBAAmB,QAAQ,aAAa,CAAC,MAAM,CAAC,IAAI,yBAAyB,OAAO,yBAAyB,GAAG,oBAAoB,kBAAkB,yBAAyB,GAAG,oBAAoB,aAAa,CAAC;QACnQ,cAAc,CAAC,KAAK,CAAC,UAAU,GAAG,eAAe,CAAC;IACpD,CAAC,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,gBAAqB,CAAC;QAE1B,iFAAiF;QACjF,4BAA4B,CAAC,CAAC,CAAC,CAAC;QAChC,6BAA6B,CAAC,CAAC,CAAC,CAAC;QACjC,qBAAqB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,wDAAwD;QAEvG,MAAM,KAAK,GAAG,GAAG,EAAE;YACjB,4BAA4B,CAAC,CAAC,KAAK,EAAE,EAAE;gBACrC,OAAO,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YAC7C,CAAC,CAAC,CAAC;YACH,6BAA6B,CAAC,CAAC,KAAK,EAAE,EAAE;gBACtC,OAAO,KAAK,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YACnD,CAAC,CAAC,CAAC;YACH,gBAAgB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;QAClD,CAAC,CAAC;QAEF,gBAAgB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;QAEhD,UAAU;QACV,OAAO,GAAG,EAAE,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;IACtD,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC;IAE7B,SAAS,CAAC,GAAG,EAAE;QACb,qBAAqB,CAAC,yBAAyB,EAAE,0BAA0B,CAAC,CAAC;IAC/E,CAAC,EAAE,CAAC,yBAAyB,EAAE,0BAA0B,CAAC,CAAC,CAAC;IAE5D,OAAO,CACL,gCAAS,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,iBAAiB;QACzD,6BAAK,SAAS,EAAE,cAAc;YAC3B,KAAK,IAAI,oBAAC,KAAK,IAAC,KAAK,EAAE,WAAW,CAAC,GAAG,EAAE,UAAU,UAAE,KAAK,CAAS;YAClE,WAAW,IAAI,oBAAC,IAAI,IAAC,KAAK,EAAE,UAAU,CAAC,GAAG,EAAE,UAAU,UAAE,WAAW,CAAQ;YAC3E,CAAC,KAAK,IAAI,CAAC,WAAW,IAAI,QAAQ,CAC/B,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -6,17 +6,17 @@ import { ComponentName } from "../../../components/enumsComponentsName";
|
|
|
6
6
|
* @param percent {number} Progress percent
|
|
7
7
|
* @param label {string} Custom label
|
|
8
8
|
* @param description {string} Custom description
|
|
9
|
-
* @param
|
|
9
|
+
* @param status {StatusState} Progress status variant (SUCCESS|INFO|WARNING|ERROR|TERTIARY)
|
|
10
10
|
* @param full {boolean} Full progressRadial
|
|
11
11
|
* @param disk {boolean} Disk ProgressRadial
|
|
12
12
|
* @param children {React.ReactNode}
|
|
13
|
-
* @param
|
|
13
|
+
* @param secondStatus {StatusState} Second Progress status variant (SUCCESS|INFO|WARNING|ERROR|TERTIARY)
|
|
14
14
|
* @param secondPercent {number} Second progress percent
|
|
15
15
|
* @param align {Alignable} Progress Radial Alignement
|
|
16
16
|
* @param skeleton {boolean} Skeleton Progress Radial
|
|
17
17
|
*/
|
|
18
18
|
declare const ProgressRadial: {
|
|
19
|
-
({ percent, label, description,
|
|
19
|
+
({ percent, label, description, status, full, disk, secondPercent, secondStatus, align, skeleton, ...others }: ProgressRadialProps): JSX.Element;
|
|
20
20
|
displayName: ComponentName;
|
|
21
21
|
};
|
|
22
22
|
export default ProgressRadial;
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { Platform, StyleSheet, View } from "react-native";
|
|
3
3
|
import { AnimatedCircularProgress } from "./react-native-circular-progress";
|
|
4
4
|
import { Text, TextLevels } from "../../../components/text";
|
|
5
|
-
import {
|
|
5
|
+
import { getAlignStyle, TypographyAlign, } from "../../../objects";
|
|
6
6
|
import { getColorStyle, TrilogyColor } from "../../../objects/facets/Color";
|
|
7
7
|
import ContentLoader, { Circle } from "react-content-loader/native";
|
|
8
8
|
import { ComponentName } from "../../../components/enumsComponentsName";
|
|
@@ -11,23 +11,21 @@ import { ComponentName } from "../../../components/enumsComponentsName";
|
|
|
11
11
|
* @param percent {number} Progress percent
|
|
12
12
|
* @param label {string} Custom label
|
|
13
13
|
* @param description {string} Custom description
|
|
14
|
-
* @param
|
|
14
|
+
* @param status {StatusState} Progress status variant (SUCCESS|INFO|WARNING|ERROR|TERTIARY)
|
|
15
15
|
* @param full {boolean} Full progressRadial
|
|
16
16
|
* @param disk {boolean} Disk ProgressRadial
|
|
17
17
|
* @param children {React.ReactNode}
|
|
18
|
-
* @param
|
|
18
|
+
* @param secondStatus {StatusState} Second Progress status variant (SUCCESS|INFO|WARNING|ERROR|TERTIARY)
|
|
19
19
|
* @param secondPercent {number} Second progress percent
|
|
20
20
|
* @param align {Alignable} Progress Radial Alignement
|
|
21
21
|
* @param skeleton {boolean} Skeleton Progress Radial
|
|
22
22
|
*/
|
|
23
|
-
const ProgressRadial = ({ percent, label, description,
|
|
24
|
-
const color =
|
|
25
|
-
const backgroundColor = getColorStyle(TrilogyColor.
|
|
23
|
+
const ProgressRadial = ({ percent, label, description, status, full, disk, secondPercent, secondStatus, align, skeleton, ...others }) => {
|
|
24
|
+
const color = getColorStyle(status || TrilogyColor.INFO);
|
|
25
|
+
const backgroundColor = getColorStyle(TrilogyColor.MAIN_FADE);
|
|
26
26
|
const percentWidth = percent || 0;
|
|
27
27
|
const secondFill = secondPercent ? { secondFill: secondPercent } : null;
|
|
28
|
-
const secondFillColor =
|
|
29
|
-
? { secondFillTintColor: getAlertStyle(secondAlert) }
|
|
30
|
-
: null;
|
|
28
|
+
const secondFillColor = { secondFillTintColor: getColorStyle(secondStatus || TrilogyColor.MAIN) };
|
|
31
29
|
const progressRadialWidth = 100;
|
|
32
30
|
const progressRadialSkeletonRadius = 50;
|
|
33
31
|
const styles = StyleSheet.create({
|
|
@@ -51,13 +49,13 @@ const ProgressRadial = ({ percent, label, description, alert, full, disk, second
|
|
|
51
49
|
backgroundColor: color,
|
|
52
50
|
},
|
|
53
51
|
labelDisk: {
|
|
54
|
-
color: getColorStyle(TrilogyColor.
|
|
52
|
+
color: getColorStyle(TrilogyColor.FONT),
|
|
55
53
|
textAlign: "center",
|
|
56
54
|
fontSize: 20,
|
|
57
55
|
fontWeight: "500",
|
|
58
56
|
},
|
|
59
57
|
descriptionDisk: {
|
|
60
|
-
color: getColorStyle(TrilogyColor.
|
|
58
|
+
color: getColorStyle(TrilogyColor.FONT),
|
|
61
59
|
textAlign: "center",
|
|
62
60
|
fontWeight: "400",
|
|
63
61
|
},
|
|
@@ -69,7 +67,7 @@ const ProgressRadial = ({ percent, label, description, alert, full, disk, second
|
|
|
69
67
|
width: progressRadialWidth,
|
|
70
68
|
height: progressRadialWidth,
|
|
71
69
|
borderRadius: progressRadialSkeletonRadius,
|
|
72
|
-
backgroundColor: getColorStyle(TrilogyColor.
|
|
70
|
+
backgroundColor: getColorStyle(TrilogyColor.DISABLED_FADE),
|
|
73
71
|
overflow: "hidden",
|
|
74
72
|
},
|
|
75
73
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressRadial.native.js","sourceRoot":"","sources":["../../../../components/progress/radial/ProgressRadial.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAA;AAC3E,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"ProgressRadial.native.js","sourceRoot":"","sources":["../../../../components/progress/radial/ProgressRadial.native.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StatusProps, StatusState, StatusStateValues, AlignableProps } from '../../../objects';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ProgressRadialItemProps } from './item/ProgressRadialItemProps';
|
|
4
4
|
/**
|
|
5
5
|
* Progress Radial Interface
|
|
6
6
|
*/
|
|
7
|
-
export interface ProgressRadialProps extends
|
|
7
|
+
export interface ProgressRadialProps extends StatusProps, AlignableProps {
|
|
8
8
|
children?: React.ReactElement<ProgressRadialItemProps> | React.ReactNode;
|
|
9
9
|
percent?: number;
|
|
10
10
|
label?: string | React.ReactNode;
|
|
@@ -13,7 +13,7 @@ export interface ProgressRadialProps extends AlertProps, AlignableProps {
|
|
|
13
13
|
full?: boolean;
|
|
14
14
|
disk?: boolean;
|
|
15
15
|
secondPercent?: number;
|
|
16
|
-
|
|
16
|
+
secondStatus?: StatusState | StatusStateValues;
|
|
17
17
|
skeleton?: boolean;
|
|
18
18
|
stacked?: boolean;
|
|
19
19
|
small?: boolean;
|
|
@@ -0,0 +1,165 @@
|
|
|
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
|
+
"JSXElementConstructor<any>>"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"percent": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"values": [
|
|
20
|
+
"undefined",
|
|
21
|
+
"number"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"label": {
|
|
25
|
+
"type": "react",
|
|
26
|
+
"values": [
|
|
27
|
+
"undefined",
|
|
28
|
+
"null",
|
|
29
|
+
"string",
|
|
30
|
+
"number",
|
|
31
|
+
"false",
|
|
32
|
+
"true",
|
|
33
|
+
"JSXElementConstructor<any>>",
|
|
34
|
+
"ReactNode>",
|
|
35
|
+
"ReactPortal"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"description": {
|
|
39
|
+
"type": "react",
|
|
40
|
+
"values": [
|
|
41
|
+
"undefined",
|
|
42
|
+
"null",
|
|
43
|
+
"string",
|
|
44
|
+
"number",
|
|
45
|
+
"false",
|
|
46
|
+
"true",
|
|
47
|
+
"JSXElementConstructor<any>>",
|
|
48
|
+
"ReactNode>",
|
|
49
|
+
"ReactPortal"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"className": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"values": [
|
|
55
|
+
"undefined",
|
|
56
|
+
"string"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"full": {
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"values": [
|
|
62
|
+
"undefined",
|
|
63
|
+
"false",
|
|
64
|
+
"true"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"disk": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"values": [
|
|
70
|
+
"undefined",
|
|
71
|
+
"false",
|
|
72
|
+
"true"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"secondPercent": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"values": [
|
|
78
|
+
"undefined",
|
|
79
|
+
"number"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"secondStatus": {
|
|
83
|
+
"type": "enum",
|
|
84
|
+
"values": [
|
|
85
|
+
"undefined",
|
|
86
|
+
"SUCCESS",
|
|
87
|
+
"INFO",
|
|
88
|
+
"WARNING",
|
|
89
|
+
"ERROR",
|
|
90
|
+
"SUCCESS",
|
|
91
|
+
"INFO",
|
|
92
|
+
"WARNING",
|
|
93
|
+
"ERROR"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"skeleton": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"values": [
|
|
99
|
+
"undefined",
|
|
100
|
+
"false",
|
|
101
|
+
"true"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"stacked": {
|
|
105
|
+
"type": "boolean",
|
|
106
|
+
"values": [
|
|
107
|
+
"undefined",
|
|
108
|
+
"false",
|
|
109
|
+
"true"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"small": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"values": [
|
|
115
|
+
"undefined",
|
|
116
|
+
"false",
|
|
117
|
+
"true"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"status": {
|
|
121
|
+
"type": "enum",
|
|
122
|
+
"values": [
|
|
123
|
+
"undefined",
|
|
124
|
+
"SUCCESS",
|
|
125
|
+
"INFO",
|
|
126
|
+
"WARNING",
|
|
127
|
+
"ERROR",
|
|
128
|
+
"SUCCESS",
|
|
129
|
+
"INFO",
|
|
130
|
+
"WARNING",
|
|
131
|
+
"ERROR"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"id": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"values": [
|
|
137
|
+
"undefined",
|
|
138
|
+
"string"
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
"align": {
|
|
142
|
+
"type": "enum",
|
|
143
|
+
"values": [
|
|
144
|
+
"undefined",
|
|
145
|
+
"ALIGNED_CENTER",
|
|
146
|
+
"ALIGNED_START",
|
|
147
|
+
"ALIGNED_END",
|
|
148
|
+
"ALIGNED_CENTER",
|
|
149
|
+
"ALIGNED_START",
|
|
150
|
+
"ALIGNED_END"
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
"verticalAlign": {
|
|
154
|
+
"type": "enum",
|
|
155
|
+
"values": [
|
|
156
|
+
"undefined",
|
|
157
|
+
"ALIGNED_CENTER",
|
|
158
|
+
"ALIGNED_START",
|
|
159
|
+
"ALIGNED_END",
|
|
160
|
+
"ALIGNED_CENTER",
|
|
161
|
+
"ALIGNED_START",
|
|
162
|
+
"ALIGNED_END"
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
"percent": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"values": []
|
|
19
|
+
},
|
|
20
|
+
"className": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"values": [
|
|
23
|
+
"undefined",
|
|
24
|
+
"string"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"color": {
|
|
28
|
+
"type": "enum",
|
|
29
|
+
"values": [
|
|
30
|
+
"warning",
|
|
31
|
+
"WHITE",
|
|
32
|
+
"MAIN",
|
|
33
|
+
"MAIN_FADE",
|
|
34
|
+
"ACCENT",
|
|
35
|
+
"FONT",
|
|
36
|
+
"FONT_PLACEHOLDER",
|
|
37
|
+
"SUCCESS",
|
|
38
|
+
"SUCCESS_FADE",
|
|
39
|
+
"INFO",
|
|
40
|
+
"INFO_FADE",
|
|
41
|
+
"WARNING",
|
|
42
|
+
"WARNING_FADE",
|
|
43
|
+
"ERROR",
|
|
44
|
+
"ERROR_FADE",
|
|
45
|
+
"DISABLED",
|
|
46
|
+
"DISABLED_FADE",
|
|
47
|
+
"NEUTRAL",
|
|
48
|
+
"NEUTRAL_FADE",
|
|
49
|
+
"secondary",
|
|
50
|
+
"empty",
|
|
51
|
+
"tertiary"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
};
|
|
@@ -24,6 +24,13 @@ import { ComponentName } from "../../components/enumsComponentsName";
|
|
|
24
24
|
*/
|
|
25
25
|
const Radio = ({ id = shortid.generate(), checked, name, onClick, onChange, disabled, readonly, label, value, horizontalTile, tile, description, iconTile, children, narrow, }) => {
|
|
26
26
|
const [_checked, setChecked] = useState(checked || false);
|
|
27
|
+
const getRadioInsideColor = (isDisabled, isMain) => {
|
|
28
|
+
if (isDisabled)
|
|
29
|
+
return getColorStyle(TrilogyColor.DISABLED_FADE);
|
|
30
|
+
if (isMain)
|
|
31
|
+
return getColorStyle(TrilogyColor.MAIN);
|
|
32
|
+
return getColorStyle(TrilogyColor.NEUTRAL);
|
|
33
|
+
};
|
|
27
34
|
useEffect(() => {
|
|
28
35
|
setChecked(checked || false);
|
|
29
36
|
}, [checked]);
|
|
@@ -63,20 +70,16 @@ const Radio = ({ id = shortid.generate(), checked, name, onClick, onChange, disa
|
|
|
63
70
|
maxWidth: 140,
|
|
64
71
|
width: 126,
|
|
65
72
|
borderWidth: (_checked && 2) || 1,
|
|
66
|
-
borderColor: (disabled
|
|
67
|
-
(_checked && getColorStyle(TrilogyColor.MAIN)) ||
|
|
68
|
-
getColorStyle(TrilogyColor.FONT, 1),
|
|
73
|
+
borderColor: getRadioInsideColor(!!disabled, _checked),
|
|
69
74
|
borderRadius: 6,
|
|
70
75
|
textAlign: "center",
|
|
71
76
|
alignItems: "center",
|
|
72
77
|
backgroundColor: disabled
|
|
73
|
-
? getColorStyle(TrilogyColor.
|
|
78
|
+
? getColorStyle(TrilogyColor.DISABLED_FADE)
|
|
74
79
|
: "transparent",
|
|
75
80
|
},
|
|
76
81
|
tileDescription: {
|
|
77
|
-
color: disabled
|
|
78
|
-
? getColorStyle(TrilogyColor.DISABLED, 1)
|
|
79
|
-
: getColorStyle(TrilogyColor.MAIN),
|
|
82
|
+
color: getRadioInsideColor(!!disabled, true),
|
|
80
83
|
alignSelf: horizontalTile ? "flex-start" : "center",
|
|
81
84
|
},
|
|
82
85
|
horizontalTile: {
|
|
@@ -85,12 +88,10 @@ const Radio = ({ id = shortid.generate(), checked, name, onClick, onChange, disa
|
|
|
85
88
|
width: narrow ? "auto" : "100%",
|
|
86
89
|
height: "auto",
|
|
87
90
|
borderWidth: (_checked && 2) || 1,
|
|
88
|
-
borderColor: (disabled
|
|
89
|
-
(_checked && getColorStyle(TrilogyColor.MAIN)) ||
|
|
90
|
-
getColorStyle(TrilogyColor.FONT, 1),
|
|
91
|
+
borderColor: getRadioInsideColor(!!disabled, _checked),
|
|
91
92
|
borderRadius: 6,
|
|
92
93
|
backgroundColor: disabled
|
|
93
|
-
? getColorStyle(TrilogyColor.
|
|
94
|
+
? getColorStyle(TrilogyColor.DISABLED_FADE)
|
|
94
95
|
: "transparent",
|
|
95
96
|
},
|
|
96
97
|
});
|