@trilogy-ds/react 0.0.1-beta-103 → 0.0.1-beta-105
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/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 -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
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
"active": {
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"values": [
|
|
19
|
+
"undefined",
|
|
20
|
+
"false",
|
|
21
|
+
"true"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"current": {
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"values": [
|
|
27
|
+
"undefined",
|
|
28
|
+
"false",
|
|
29
|
+
"true"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"done": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"values": [
|
|
35
|
+
"undefined",
|
|
36
|
+
"false",
|
|
37
|
+
"true"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"label": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"values": [
|
|
43
|
+
"undefined",
|
|
44
|
+
"string"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"step": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"values": [
|
|
50
|
+
"undefined",
|
|
51
|
+
"string",
|
|
52
|
+
"number"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"className": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"values": [
|
|
58
|
+
"undefined",
|
|
59
|
+
"string"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"markup": {
|
|
63
|
+
"type": "enum",
|
|
64
|
+
"values": [
|
|
65
|
+
"undefined",
|
|
66
|
+
"a",
|
|
67
|
+
"div",
|
|
68
|
+
"p",
|
|
69
|
+
"span",
|
|
70
|
+
"p",
|
|
71
|
+
"span",
|
|
72
|
+
"div",
|
|
73
|
+
"a"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"iconName": {
|
|
77
|
+
"type": "enum",
|
|
78
|
+
"values": [
|
|
79
|
+
"undefined",
|
|
80
|
+
"tri-alert",
|
|
81
|
+
"tri-arrow-down",
|
|
82
|
+
"tri-arrow-left",
|
|
83
|
+
"tri-arrow-right",
|
|
84
|
+
"tri-arrow-up",
|
|
85
|
+
"tri-bell",
|
|
86
|
+
"tri-check-circle",
|
|
87
|
+
"tri-check",
|
|
88
|
+
"tri-exclamation-circle",
|
|
89
|
+
"tri-eye-slash",
|
|
90
|
+
"tri-eye",
|
|
91
|
+
"tri-infos-circle",
|
|
92
|
+
"tri-search",
|
|
93
|
+
"tri-times",
|
|
94
|
+
"tri-trash",
|
|
95
|
+
"tri-picto-faciliti",
|
|
96
|
+
"tri-picto-handicapzero",
|
|
97
|
+
"tri-picto-la-fibre",
|
|
98
|
+
"tri-picto-payment-americanexpress",
|
|
99
|
+
"tri-picto-payment-cb",
|
|
100
|
+
"tri-picto-payment-mastercard",
|
|
101
|
+
"tri-picto-payment-paypal",
|
|
102
|
+
"tri-picto-payment-visa",
|
|
103
|
+
"tri-alert",
|
|
104
|
+
"tri-arrow-down",
|
|
105
|
+
"tri-arrow-left",
|
|
106
|
+
"tri-arrow-right",
|
|
107
|
+
"tri-arrow-up",
|
|
108
|
+
"tri-bell",
|
|
109
|
+
"tri-check-circle",
|
|
110
|
+
"tri-check",
|
|
111
|
+
"tri-exclamation-circle",
|
|
112
|
+
"tri-eye-slash",
|
|
113
|
+
"tri-eye",
|
|
114
|
+
"tri-infos-circle",
|
|
115
|
+
"tri-search",
|
|
116
|
+
"tri-times",
|
|
117
|
+
"tri-trash",
|
|
118
|
+
"tri-picto-faciliti",
|
|
119
|
+
"tri-picto-handicapzero",
|
|
120
|
+
"tri-picto-la-fibre",
|
|
121
|
+
"tri-picto-payment-americanexpress",
|
|
122
|
+
"tri-picto-payment-cb",
|
|
123
|
+
"tri-picto-payment-mastercard",
|
|
124
|
+
"tri-picto-payment-paypal",
|
|
125
|
+
"tri-picto-payment-visa"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"error": {
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"values": [
|
|
131
|
+
"undefined",
|
|
132
|
+
"false",
|
|
133
|
+
"true"
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
};
|
|
@@ -3,7 +3,7 @@ import { StickerProps } from "./StickerProps";
|
|
|
3
3
|
/**
|
|
4
4
|
* Sticker component
|
|
5
5
|
* @param children {ReactNode} Sticker child
|
|
6
|
-
* @param variant {
|
|
6
|
+
* @param variant {StatusState} Sticker variant : primary only
|
|
7
7
|
* @param small {boolean} Small Sticker
|
|
8
8
|
* @param hat {boolean} Hat Sticker ( for box )
|
|
9
9
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
@@ -11,5 +11,5 @@ import { StickerProps } from "./StickerProps";
|
|
|
11
11
|
* @param className {string} Additionnal css classes
|
|
12
12
|
* @param others
|
|
13
13
|
*/
|
|
14
|
-
declare const Sticker: ({ className, children, variant, small, hat, markup, ...others }: StickerProps) => JSX.Element;
|
|
14
|
+
declare const Sticker: ({ className, children, variant, small, hat, markup, outlined, ...others }: StickerProps) => JSX.Element;
|
|
15
15
|
export default Sticker;
|
|
@@ -8,7 +8,7 @@ import { useTrilogyContext } from "../../context";
|
|
|
8
8
|
/**
|
|
9
9
|
* Sticker component
|
|
10
10
|
* @param children {ReactNode} Sticker child
|
|
11
|
-
* @param variant {
|
|
11
|
+
* @param variant {StatusState} Sticker variant : primary only
|
|
12
12
|
* @param small {boolean} Small Sticker
|
|
13
13
|
* @param hat {boolean} Hat Sticker ( for box )
|
|
14
14
|
* - -------------------------- WEB PROPERTIES -------------------------------
|
|
@@ -16,9 +16,9 @@ import { useTrilogyContext } from "../../context";
|
|
|
16
16
|
* @param className {string} Additionnal css classes
|
|
17
17
|
* @param others
|
|
18
18
|
*/
|
|
19
|
-
const Sticker = ({ className, children, variant, small, hat, markup, ...others }) => {
|
|
19
|
+
const Sticker = ({ className, children, variant, small, hat, markup, outlined, ...others }) => {
|
|
20
20
|
const { styled } = useTrilogyContext();
|
|
21
|
-
const classes = hashClass(styled, clsx("sticker", variant && is(getVariantClassName(variant)), small && is("small"), hat && is("hat"), className));
|
|
21
|
+
const classes = hashClass(styled, clsx("sticker", variant && is(getVariantClassName(variant)), small && is("small"), hat && is("hat"), className, outlined && is('outlined')));
|
|
22
22
|
const isCorrectMarkup = (stringMarkup) => {
|
|
23
23
|
if (stringMarkup in StickerMarkup ||
|
|
24
24
|
Object.values(StickerMarkup).includes(stringMarkup))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sticker.js","sourceRoot":"","sources":["../../../components/sticker/Sticker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,IAAI,MAAM,MAAM,CAAA;AAEvB,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AACxC,OAAO,EAAE,aAAa,EAAuB,MAAM,eAAe,CAAA;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAE7C;;;;;;;;;;GAUG;AAEH,MAAM,OAAO,GAAG,CAAC,EACf,SAAS,EACT,QAAQ,EACR,OAAO,EACP,KAAK,EACL,GAAG,EACH,MAAM,EACN,GAAG,MAAM,EACI,EAAe,EAAE;IAC9B,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAEtC,MAAM,OAAO,GAAG,SAAS,CACvB,MAAM,EACN,IAAI,CACF,SAAS,EACT,OAAO,IAAI,EAAE,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,EAC3C,KAAK,IAAI,EAAE,CAAC,OAAO,CAAC,EACpB,GAAG,IAAI,EAAE,CAAC,KAAK,CAAC,EAChB,SAAS,
|
|
1
|
+
{"version":3,"file":"Sticker.js","sourceRoot":"","sources":["../../../components/sticker/Sticker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,IAAI,MAAM,MAAM,CAAA;AAEvB,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AACxC,OAAO,EAAE,aAAa,EAAuB,MAAM,eAAe,CAAA;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAE7C;;;;;;;;;;GAUG;AAEH,MAAM,OAAO,GAAG,CAAC,EACf,SAAS,EACT,QAAQ,EACR,OAAO,EACP,KAAK,EACL,GAAG,EACH,MAAM,EACN,QAAQ,EACR,GAAG,MAAM,EACI,EAAe,EAAE;IAC9B,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAEtC,MAAM,OAAO,GAAG,SAAS,CACvB,MAAM,EACN,IAAI,CACF,SAAS,EACT,OAAO,IAAI,EAAE,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,EAC3C,KAAK,IAAI,EAAE,CAAC,OAAO,CAAC,EACpB,GAAG,IAAI,EAAE,CAAC,KAAK,CAAC,EAChB,SAAS,EACT,QAAQ,IAAI,EAAE,CAAC,UAAU,CAAC,CAC3B,CACF,CAAA;IAED,MAAM,eAAe,GAAG,CACtB,YAAiD,EACjD,EAAE;QACF,IACE,YAAY,IAAI,aAAa;YAC7B,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,YAA6B,CAAC;YAEpE,OAAO,IAAI,CAAA;IACf,CAAC,CAAA;IAED,MAAM,GAAG,GAAG,MAAM,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAA;IAE9D,OAAO,CACL,oBAAC,GAAG,IAAC,SAAS,EAAE,OAAO,KAAM,MAAM,IAChC,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
"className": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"values": [
|
|
19
|
+
"undefined",
|
|
20
|
+
"string"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"markup": {
|
|
24
|
+
"type": "enum",
|
|
25
|
+
"values": [
|
|
26
|
+
"undefined",
|
|
27
|
+
"div",
|
|
28
|
+
"p",
|
|
29
|
+
"span",
|
|
30
|
+
"div",
|
|
31
|
+
"p",
|
|
32
|
+
"span"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"outlined": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"values": [
|
|
38
|
+
"undefined",
|
|
39
|
+
"false",
|
|
40
|
+
"true"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"small": {
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"values": [
|
|
46
|
+
"undefined",
|
|
47
|
+
"false",
|
|
48
|
+
"true"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"variant": {
|
|
52
|
+
"type": "enum",
|
|
53
|
+
"values": [
|
|
54
|
+
"undefined",
|
|
55
|
+
"INFO",
|
|
56
|
+
"MAIN",
|
|
57
|
+
"ACCENT",
|
|
58
|
+
"MAIN",
|
|
59
|
+
"ACCENT",
|
|
60
|
+
"INFO"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"hat": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"values": [
|
|
66
|
+
"undefined",
|
|
67
|
+
"false",
|
|
68
|
+
"true"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/sticker/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/sticker/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;AAE/B,cAAc,eAAe,CAAA;AAE7B,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as StyleComponent } from './styleComponent';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../components/styleComponent/default/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import '@trilogy-ds/styles/dist/default/trilogy.css';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
const StyleComponent = ({ children }) => {
|
|
4
|
+
return React.createElement(React.Fragment, null, children);
|
|
5
|
+
};
|
|
6
|
+
export default StyleComponent;
|
|
7
|
+
//# sourceMappingURL=styleComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleComponent.js","sourceRoot":"","sources":["../../../../components/styleComponent/default/styleComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,6CAA6C,CAAA;AACpD,OAAO,KAAoB,MAAM,OAAO,CAAA;AAExC,MAAM,cAAc,GAAG,CAAC,EAAE,QAAQ,EAA2B,EAAe,EAAE;IAC5E,OAAO,0CAAG,QAAQ,CAAI,CAAA;AACxB,CAAC,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleComponent.native.js","sourceRoot":"","sources":["../../../../components/styleComponent/default/styleComponent.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAA;AAExC,MAAM,cAAc,GAAG,CAAC,EAAE,QAAQ,EAA2B,EAAe,EAAE;IAC5E,OAAO,0CAAG,QAAQ,CAAI,CAAA;AACxB,CAAC,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/styleComponent/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as StyleComponentMangled } from './styleComponentMangled';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../components/styleComponent/mangled/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import '@trilogy-ds/styles/dist/default/trilogy-mangled.css';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
const StyleComponentMangled = ({ children }) => {
|
|
4
|
+
return React.createElement(React.Fragment, null, children);
|
|
5
|
+
};
|
|
6
|
+
export default StyleComponentMangled;
|
|
7
|
+
//# sourceMappingURL=styleComponentMangled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleComponentMangled.js","sourceRoot":"","sources":["../../../../components/styleComponent/mangled/styleComponentMangled.tsx"],"names":[],"mappings":"AAAA,OAAO,qDAAqD,CAAA;AAC5D,OAAO,KAAoB,MAAM,OAAO,CAAA;AAExC,MAAM,qBAAqB,GAAG,CAAC,EAAE,QAAQ,EAA2B,EAAe,EAAE;IACnF,OAAO,0CAAG,QAAQ,CAAI,CAAA;AACxB,CAAC,CAAA;AAED,eAAe,qBAAqB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleComponentMangled.native.js","sourceRoot":"","sources":["../../../../components/styleComponent/mangled/styleComponentMangled.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAA;AAExC,MAAM,qBAAqB,GAAG,CAAC,EAAE,QAAQ,EAA2B,EAAe,EAAE;IACnF,OAAO,0CAAG,QAAQ,CAAI,CAAA;AACxB,CAAC,CAAA;AAED,eAAe,qBAAqB,CAAA"}
|
|
@@ -7,7 +7,7 @@ import { SwitchProps } from "./SwitchProps";
|
|
|
7
7
|
* @param value {string} Switch value
|
|
8
8
|
* @param checked {boolean} Checked switch
|
|
9
9
|
* @param onChange {Function} onChange event
|
|
10
|
-
* @param
|
|
10
|
+
* @param status {StatusState} Status Variant (INFO|SUCCESS|WARNING|ERROR)
|
|
11
11
|
* @param disabled {boolean} Switch disabled
|
|
12
12
|
* @param readonly {boolean} Switch readonly
|
|
13
13
|
* @param name {string} Switch name
|
|
@@ -16,5 +16,5 @@ import { SwitchProps } from "./SwitchProps";
|
|
|
16
16
|
* @param className {string} Additionnal CSS Classes
|
|
17
17
|
* @param onClick {Function} onClick event
|
|
18
18
|
*/
|
|
19
|
-
declare const Switch: ({ className, id, label, value, checked, onChange, onClick,
|
|
19
|
+
declare const Switch: ({ className, id, label, value, checked, onChange, onClick, status, disabled, readonly, name, reversed, ...others }: SwitchProps) => JSX.Element;
|
|
20
20
|
export default Switch;
|
|
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from "react";
|
|
|
2
2
|
import shortid from "shortid";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { is } from "../../services/classify";
|
|
5
|
-
import {
|
|
5
|
+
import { getStatusClassName } from "../../objects";
|
|
6
6
|
import { hashClass } from "../../helpers";
|
|
7
7
|
import { useTrilogyContext } from "../../context";
|
|
8
8
|
/**
|
|
@@ -12,7 +12,7 @@ import { useTrilogyContext } from "../../context";
|
|
|
12
12
|
* @param value {string} Switch value
|
|
13
13
|
* @param checked {boolean} Checked switch
|
|
14
14
|
* @param onChange {Function} onChange event
|
|
15
|
-
* @param
|
|
15
|
+
* @param status {StatusState} Status Variant (INFO|SUCCESS|WARNING|ERROR)
|
|
16
16
|
* @param disabled {boolean} Switch disabled
|
|
17
17
|
* @param readonly {boolean} Switch readonly
|
|
18
18
|
* @param name {string} Switch name
|
|
@@ -21,7 +21,7 @@ import { useTrilogyContext } from "../../context";
|
|
|
21
21
|
* @param className {string} Additionnal CSS Classes
|
|
22
22
|
* @param onClick {Function} onClick event
|
|
23
23
|
*/
|
|
24
|
-
const Switch = ({ className, id = shortid.generate(), label, value, checked, onChange, onClick,
|
|
24
|
+
const Switch = ({ className, id = shortid.generate(), label, value, checked, onChange, onClick, status, disabled, readonly, name, reversed, ...others }) => {
|
|
25
25
|
const [_checked, setChecked] = useState(checked || false);
|
|
26
26
|
const { styled } = useTrilogyContext();
|
|
27
27
|
React.useEffect(() => {
|
|
@@ -55,7 +55,7 @@ const Switch = ({ className, id = shortid.generate(), label, value, checked, onC
|
|
|
55
55
|
switchName: e.target.name,
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
}, name: name, value: value, checked: readonly ? checked : _checked, readOnly: readonly, id: `switch-${id}`, type: 'checkbox', disabled: disabled, className: hashClass(styled, clsx(
|
|
58
|
+
}, name: name, value: value, checked: readonly ? checked : _checked, readOnly: readonly, id: `switch-${id}`, type: 'checkbox', disabled: disabled, className: hashClass(styled, clsx(status && is(getStatusClassName(status)))), ...others }),
|
|
59
59
|
React.createElement("label", { htmlFor: `switch-${id}` }, label)));
|
|
60
60
|
};
|
|
61
61
|
export default Switch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../../components/switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAA;AAEvB,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AACxC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../../components/switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAA;AAEvB,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAE7C;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,MAAM,GAAG,CAAC,EACd,SAAS,EACT,EAAE,GAAG,OAAO,CAAC,QAAQ,EAAE,EACvB,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,GAAG,MAAM,EACG,EAAe,EAAE;IAC7B,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAU,OAAO,IAAI,KAAK,CAAC,CAAA;IAClE,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAEtC,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,UAAU,CAAC,OAAO,IAAI,KAAK,CAAC,CAAA;IAC9B,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEb,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,QAAQ,EAAE;YACb,UAAU,CAAC,OAAO,IAAI,KAAK,CAAC,CAAA;SAC7B;IACH,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAA;IAEvB,OAAO,CACL,6BACE,SAAS,EAAE,SAAS,CAClB,MAAM,EACN,IAAI,CAAC,QAAQ,EAAE,QAAQ,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC,CACtD;QAED,+BACE,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;gBACd,IAAI,CAAC,QAAQ,EAAE;oBACb,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;iBACtB;gBACD,IAAI,QAAQ,EAAE;oBACZ,QAAQ,CAAC;wBACP,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO;wBAC7B,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI;qBAC1B,CAAC,CAAA;iBACH;YACH,CAAC;YACD,8DAA8D;YAC9D,OAAO,EAAE,CAAC,CAAM,EAAE,EAAE;gBAClB,IAAI,CAAC,QAAQ,EAAE;oBACb,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;iBACtB;gBACD,IAAI,OAAO,EAAE;oBACX,OAAO,CAAC;wBACN,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO;wBAC7B,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI;qBAC1B,CAAC,CAAA;iBACH;YACH,CAAC,EACD,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EACtC,QAAQ,EAAE,QAAQ,EAClB,EAAE,EAAE,UAAU,EAAE,EAAE,EAClB,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,CAClB,MAAM,EACN,IAAI,CAAC,MAAM,IAAI,EAAE,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,CAC/C,KACG,MAAM,GACV;QACF,+BAAO,OAAO,EAAE,UAAU,EAAE,EAAE,IAAG,KAAK,CAAS,CAC3C,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -6,13 +6,13 @@ import { ComponentName } from "../../components/enumsComponentsName";
|
|
|
6
6
|
* @param id {string} Is auto generate by default
|
|
7
7
|
* @param checked {boolean} Checked switch
|
|
8
8
|
* @param onChange {Function} onChange event
|
|
9
|
-
* @param
|
|
9
|
+
* @param status {StatusState} Status Variant (INFO|SUCCESS|WARNING|ERROR)
|
|
10
10
|
* @param disabled {boolean} Switch disabled
|
|
11
11
|
* @param readonly {boolean} Switch readonly
|
|
12
12
|
* @param name {string} Switch name
|
|
13
13
|
*/
|
|
14
14
|
declare const Switch: {
|
|
15
|
-
({ id, checked, onChange,
|
|
15
|
+
({ id, checked, onChange, status, disabled, readonly, name, }: SwitchProps): JSX.Element;
|
|
16
16
|
displayName: ComponentName;
|
|
17
17
|
};
|
|
18
18
|
export default Switch;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react";
|
|
2
2
|
import { Platform, StyleSheet, Switch as SwitchNative } from "react-native";
|
|
3
3
|
import shortid from "shortid";
|
|
4
|
-
import {
|
|
4
|
+
import { getStatusStyle } from "../../objects";
|
|
5
5
|
import { getColorStyle, TrilogyColor } from "../../objects/facets/Color";
|
|
6
6
|
import { ComponentName } from "../../components/enumsComponentsName";
|
|
7
7
|
/**
|
|
@@ -9,21 +9,20 @@ import { ComponentName } from "../../components/enumsComponentsName";
|
|
|
9
9
|
* @param id {string} Is auto generate by default
|
|
10
10
|
* @param checked {boolean} Checked switch
|
|
11
11
|
* @param onChange {Function} onChange event
|
|
12
|
-
* @param
|
|
12
|
+
* @param status {StatusState} Status Variant (INFO|SUCCESS|WARNING|ERROR)
|
|
13
13
|
* @param disabled {boolean} Switch disabled
|
|
14
14
|
* @param readonly {boolean} Switch readonly
|
|
15
15
|
* @param name {string} Switch name
|
|
16
16
|
*/
|
|
17
|
-
const Switch = ({ id = shortid.generate(), checked, onChange,
|
|
17
|
+
const Switch = ({ id = shortid.generate(), checked, onChange, status, disabled, readonly, name, }) => {
|
|
18
18
|
const [_checked, setChecked] = useState(checked || false);
|
|
19
19
|
useEffect(() => {
|
|
20
20
|
if (!readonly) {
|
|
21
21
|
setChecked(checked || false);
|
|
22
22
|
}
|
|
23
23
|
}, [checked, readonly]);
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const backgroundColorDisabled = getColorStyle(TrilogyColor.DISABLED, 1);
|
|
24
|
+
const backgroundColorOff = getColorStyle(TrilogyColor.MAIN_FADE);
|
|
25
|
+
const backgroundColorDisabled = getColorStyle(TrilogyColor.DISABLED_FADE);
|
|
27
26
|
const thumbColor = getColorStyle(TrilogyColor.BACKGROUND);
|
|
28
27
|
const styles = StyleSheet.create({
|
|
29
28
|
switchIos: {
|
|
@@ -34,7 +33,7 @@ const Switch = ({ id = shortid.generate(), checked, onChange, alert, disabled, r
|
|
|
34
33
|
false: disabled ? backgroundColorDisabled : backgroundColorOff,
|
|
35
34
|
true: disabled
|
|
36
35
|
? backgroundColorDisabled
|
|
37
|
-
: (
|
|
36
|
+
: getStatusStyle(status).color,
|
|
38
37
|
}, thumbColor: thumbColor, ios_backgroundColor: disabled ? backgroundColorDisabled : backgroundColorOff, onValueChange: (state) => {
|
|
39
38
|
if (onChange) {
|
|
40
39
|
onChange({ switchState: state, switchName: name || "" });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.native.js","sourceRoot":"","sources":["../../../components/switch/Switch.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3E,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Switch.native.js","sourceRoot":"","sources":["../../../components/switch/Switch.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3E,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE;;;;;;;;;GASG;AACH,MAAM,MAAM,GAAG,CAAC,EACd,EAAE,GAAG,OAAO,CAAC,QAAQ,EAAE,EACvB,OAAO,EACP,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,IAAI,GACQ,EAAe,EAAE;IAC7B,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAU,OAAO,IAAI,KAAK,CAAC,CAAA;IAElE,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,QAAQ,EAAE;YACb,UAAU,CAAC,OAAO,IAAI,KAAK,CAAC,CAAA;SAC7B;IACH,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAA;IAEvB,MAAM,kBAAkB,GAAG,aAAa,CAAC,YAAY,CAAC,SAAS,CAAC,CAAA;IAChE,MAAM,uBAAuB,GAAG,aAAa,CAAC,YAAY,CAAC,aAAa,CAAC,CAAA;IACzE,MAAM,UAAU,GAAG,aAAa,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA;IAEzD,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAC/B,SAAS,EAAE;YACT,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;SAC9C;KACF,CAAC,CAAA;IAEF,OAAO,CACL,oBAAC,YAAY,IACX,MAAM,EAAC,WAAW,EAClB,KAAK,EAAE,QAAQ,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EACpD,UAAU,EAAE;YACV,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,kBAAkB;YAC9D,IAAI,EAAE,QAAQ;gBACZ,CAAC,CAAC,uBAAuB;gBACzB,CAAC,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,KAAK;SACjC,EACD,UAAU,EAAE,UAAU,EACtB,mBAAmB,EACjB,QAAQ,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,kBAAkB,EAEzD,aAAa,EAAE,CAAC,KAAK,EAAE,EAAE;YACvB,IAAI,QAAQ,EAAE;gBACZ,QAAQ,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC,CAAA;aACzD;QACH,CAAC,EACD,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,EACrC,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,QAAQ,GACf,CACH,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,WAAW,GAAG,aAAa,CAAC,MAAM,CAAA;AAEzC,eAAe,MAAM,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StatusProps } from '../../objects/facets/Status';
|
|
2
2
|
import { Invertable } from '../../objects/facets/Invertable';
|
|
3
3
|
export interface SwitchChangeEvent {
|
|
4
4
|
switchState: boolean;
|
|
5
5
|
switchName: string;
|
|
6
6
|
}
|
|
7
7
|
type SwitchEventHandler = (event: SwitchChangeEvent) => void;
|
|
8
|
-
export interface SwitchProps extends
|
|
8
|
+
export interface SwitchProps extends StatusProps, Invertable {
|
|
9
9
|
checked?: boolean;
|
|
10
10
|
onChange?: SwitchEventHandler;
|
|
11
11
|
onClick?: SwitchEventHandler;
|