@gympass/yoga 7.88.0 → 7.88.2
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/cjs/Accordion/Accordion.theme.js +46 -0
- package/cjs/Accordion/index.js +35 -0
- package/cjs/ActionRequirement/ActionRequirement.theme.js +25 -0
- package/cjs/ActionRequirement/index.js +35 -0
- package/cjs/ActionRequirement/index.native.js +35 -0
- package/cjs/AutoComplete/AutoComplete.theme.js +77 -0
- package/cjs/AutoComplete/index.js +35 -0
- package/cjs/Avatar/Avatar.theme.js +25 -0
- package/cjs/Avatar/index.js +37 -0
- package/cjs/Avatar/index.native.js +37 -0
- package/cjs/Banner/Banner.theme.js +30 -0
- package/cjs/Banner/index.js +35 -0
- package/cjs/Banner/index.native.js +35 -0
- package/cjs/BottomSheet/BottomSheet.theme.js +44 -0
- package/cjs/BottomSheet/index.js +35 -0
- package/cjs/Box/index.js +35 -0
- package/cjs/Box/index.native.js +35 -0
- package/cjs/Button/Button.theme.js +157 -0
- package/cjs/Button/index.js +43 -0
- package/cjs/Button/index.native.js +41 -0
- package/cjs/Card/Card.native.theme.js +64 -0
- package/cjs/Card/Card.theme.js +177 -0
- package/cjs/Card/Card.web.theme.js +61 -0
- package/cjs/Card/index.js +32 -0
- package/cjs/Card/index.native.js +34 -0
- package/cjs/Checkbox/CheckIcon.js +25 -0
- package/cjs/Checkbox/Checkbox.theme.js +68 -0
- package/cjs/Checkbox/CheckboxSwitch.theme.js +90 -0
- package/cjs/Checkbox/index.js +26 -0
- package/cjs/Checkbox/index.native.js +26 -0
- package/cjs/Chips/index.js +35 -0
- package/cjs/Chips/index.native.js +35 -0
- package/cjs/Datepicker/Datepicker.theme.js +32 -0
- package/cjs/Datepicker/index.js +35 -0
- package/cjs/Dialog/Dialog.theme.js +43 -0
- package/cjs/Dialog/index.js +35 -0
- package/cjs/Divider/Divider.theme.js +25 -0
- package/cjs/Divider/index.js +35 -0
- package/cjs/Divider/index.native.js +35 -0
- package/cjs/Drawer/Drawer.theme.js +35 -0
- package/cjs/Drawer/index.js +35 -0
- package/cjs/Dropdown/Dropdown.theme.js +205 -0
- package/cjs/Dropdown/index.js +35 -0
- package/cjs/Dropdown/index.native.js +35 -0
- package/cjs/Feedback/Feedback.theme.js +29 -0
- package/cjs/Feedback/index.js +35 -0
- package/cjs/Grid/Grid.theme.js +43 -0
- package/cjs/Grid/index.js +34 -0
- package/cjs/Header/Header.theme.js +34 -0
- package/cjs/Header/index.js +35 -0
- package/cjs/Heading/Heading.theme.js +38 -0
- package/cjs/Heading/index.js +35 -0
- package/cjs/Icon/Icon.js +193 -0
- package/cjs/Icon/Icon.theme.js +25 -0
- package/cjs/Icon/index.js +35 -0
- package/cjs/Icon/index.native.js +35 -0
- package/cjs/Input/Input.theme.js +86 -0
- package/cjs/Input/index.js +30 -0
- package/cjs/Input/index.native.js +29 -0
- package/cjs/List/List.theme.js +49 -0
- package/cjs/List/index.js +27 -0
- package/cjs/List/index.native.js +26 -0
- package/cjs/Menu/Menu.theme.js +63 -0
- package/cjs/Menu/index.js +41 -0
- package/cjs/Popover/Popover.theme.js +25 -0
- package/cjs/Popover/index.js +35 -0
- package/cjs/Progress/Progress.theme.js +38 -0
- package/cjs/Progress/index.js +35 -0
- package/cjs/Progress/index.native.js +35 -0
- package/cjs/RadioGroup/RadioGroup.theme.js +76 -0
- package/cjs/RadioGroup/RadioGroupContext.js +26 -0
- package/cjs/RadioGroup/index.js +27 -0
- package/cjs/RadioGroup/index.native.js +27 -0
- package/cjs/Rating/Rating.theme.js +31 -0
- package/cjs/Rating/index.js +35 -0
- package/cjs/Rating/index.native.js +35 -0
- package/cjs/Result/Result.theme.js +25 -0
- package/cjs/Result/index.native.js +41 -0
- package/cjs/Skeleton/Skeleton.theme.js +42 -0
- package/cjs/Skeleton/index.js +35 -0
- package/cjs/Skeleton/index.native.js +35 -0
- package/cjs/Slider/Slider.theme.js +95 -0
- package/cjs/Slider/index.js +35 -0
- package/cjs/Slider/index.native.js +35 -0
- package/cjs/Snackbar/Snackbar.theme.js +81 -0
- package/cjs/Snackbar/index.js +35 -0
- package/cjs/Snackbar/index.native.js +35 -0
- package/cjs/Spinner/Spinner.theme.js +25 -0
- package/cjs/Spinner/index.js +35 -0
- package/cjs/Stepper/Stepper.theme.js +56 -0
- package/cjs/Stepper/activeDot.js +25 -0
- package/cjs/Stepper/index.js +26 -0
- package/cjs/Stepper/index.native.js +26 -0
- package/cjs/Tag/Tag.theme.js +58 -0
- package/cjs/Tag/index.js +37 -0
- package/cjs/Tag/index.native.js +37 -0
- package/cjs/Text/Text.theme.js +93 -0
- package/cjs/Text/index.js +39 -0
- package/cjs/Text/index.native.js +39 -0
- package/cjs/Text/sharedTextStyle.js +64 -0
- package/cjs/Text/textStyle.android.js +57 -0
- package/cjs/Text/textStyle.ios.js +39 -0
- package/cjs/Text/textStyle.web.js +47 -0
- package/cjs/TextArea/TextArea.theme.js +36 -0
- package/cjs/TextArea/index.js +35 -0
- package/cjs/TextArea/index.native.js +35 -0
- package/cjs/Theme/Provider/Provider.js +103 -0
- package/cjs/Theme/Provider/index.js +30 -0
- package/cjs/Theme/Provider/index.native.js +35 -0
- package/cjs/Theme/Provider/native/index.js +35 -0
- package/cjs/Theme/Provider/web/FontLoader.js +51 -0
- package/cjs/Theme/Provider/web/FontLoader.test.js +39 -0
- package/cjs/Theme/Provider/web/GlobalStyle.js +38 -0
- package/cjs/Theme/Provider/web/GlobalStyle.test.js +44 -0
- package/cjs/Theme/Provider/web/ThemeProvider.js +78 -0
- package/cjs/Theme/Provider/web/expectCssMatches.js +34 -0
- package/cjs/Theme/Provider/web/index.js +41 -0
- package/cjs/Theme/helpers/themeGenerator/index.js +35 -0
- package/cjs/Theme/helpers/themeGenerator/themeGenerator.js +33 -0
- package/cjs/Theme/helpers/themeGenerator/themeGenerator.test.js +43 -0
- package/cjs/Theme/helpers/themeReader/base.test.js +96 -0
- package/cjs/Theme/helpers/themeReader/index.js +56 -0
- package/cjs/Theme/helpers/themeReader/native/native.test.js +61 -0
- package/cjs/Theme/helpers/themeReader/web/web.test.js +55 -0
- package/cjs/Theme/index.js +48 -0
- package/cjs/Theme/index.native.js +46 -0
- package/cjs/Theme/theme/componentThemes.js +112 -0
- package/cjs/Theme/theme/index.js +35 -0
- package/cjs/Theme/theme/theme.js +109 -0
- package/cjs/hooks/index.js +26 -0
- package/cjs/hooks/useCombinedRefs.js +44 -0
- package/cjs/hooks/useKeyPress.js +50 -0
- package/cjs/hooks/usePortal.js +63 -0
- package/cjs/index.js +164 -0
- package/cjs/index.native.js +122 -0
- package/cjs/shared/HiddenInput.js +45 -0
- package/cjs/shared/index.js +49 -0
- package/cjs/shared/index.native.js +36 -0
- package/cjs/shared/propTypes/charLength.js +36 -0
- package/cjs/shared/propTypes/deprecated.js +34 -0
- package/cjs/shared/propTypes/index.js +50 -0
- package/cjs/shared/propTypes/limitChildren.js +35 -0
- package/cjs/shared/propTypes/max.js +35 -0
- package/cjs/shared/propTypes/typeof.js +47 -0
- package/esm/Accordion/Accordion.theme.js +26 -0
- package/esm/Accordion/index.js +5 -0
- package/esm/ActionRequirement/ActionRequirement.theme.js +5 -0
- package/esm/ActionRequirement/index.js +5 -0
- package/esm/ActionRequirement/index.native.js +5 -0
- package/esm/ActionRequirement/native/ActionRequirement.js +57 -0
- package/esm/ActionRequirement/native/ActionRequirement.test.js +49 -0
- package/esm/ActionRequirement/native/ActionRequirementStyles.js +69 -0
- package/esm/ActionRequirement/native/index.js +13 -0
- package/esm/AutoComplete/AutoComplete.theme.js +49 -0
- package/esm/AutoComplete/index.js +5 -0
- package/esm/Avatar/Avatar.theme.js +5 -0
- package/esm/Avatar/index.js +7 -0
- package/esm/Avatar/index.native.js +7 -0
- package/esm/Avatar/native/Avatar.js +141 -0
- package/esm/Avatar/native/Avatar.test.js +39 -0
- package/esm/Avatar/native/AvatarCircle.js +54 -0
- package/esm/Banner/Banner.theme.js +10 -0
- package/esm/Banner/index.js +5 -0
- package/esm/Banner/index.native.js +5 -0
- package/esm/Banner/native/Banner.js +160 -0
- package/esm/Banner/native/Banner.test.js +113 -0
- package/esm/Banner/native/index.js +5 -0
- package/esm/BottomSheet/BottomSheet.theme.js +24 -0
- package/esm/BottomSheet/index.js +5 -0
- package/esm/Box/index.js +5 -0
- package/esm/Box/index.native.js +5 -0
- package/esm/Box/native/Box.js +7 -0
- package/esm/Box/native/Box.test.js +21 -0
- package/esm/Box/native/index.js +5 -0
- package/esm/Button/Button.theme.js +137 -0
- package/esm/Button/index.js +13 -0
- package/esm/Button/index.native.js +11 -0
- package/esm/Button/native/Button.js +198 -0
- package/esm/Button/native/Button.test.js +342 -0
- package/esm/Button/native/Icon.js +156 -0
- package/esm/Button/native/Link.js +64 -0
- package/esm/Button/native/Text.js +130 -0
- package/esm/Button/native/withTouchable.js +89 -0
- package/esm/Card/Card.native.theme.js +44 -0
- package/esm/Card/Card.theme.js +157 -0
- package/esm/Card/Card.web.theme.js +41 -0
- package/esm/Card/index.js +6 -0
- package/esm/Card/index.native.js +7 -0
- package/esm/Card/native/Card/Actions.js +11 -0
- package/esm/Card/native/Card/Card.js +181 -0
- package/esm/Card/native/Card/Card.test.js +20 -0
- package/esm/Card/native/Card/Content.js +7 -0
- package/esm/Card/native/Card/Header.js +7 -0
- package/esm/Card/native/Card/index.js +11 -0
- package/esm/Card/native/EventCard/EventCard.js +212 -0
- package/esm/Card/native/EventCard/EventCard.test.js +73 -0
- package/esm/Card/native/EventCard/index.js +5 -0
- package/esm/Card/native/GymCard/CheckIn/Avatar.js +47 -0
- package/esm/Card/native/GymCard/CheckIn/CheckIn.js +113 -0
- package/esm/Card/native/GymCard/CheckIn/CheckIn.test.js +46 -0
- package/esm/Card/native/GymCard/CheckIn/Content.js +21 -0
- package/esm/Card/native/GymCard/CheckIn/Header.js +24 -0
- package/esm/Card/native/GymCard/CheckIn/index.js +5 -0
- package/esm/Card/native/GymCard/index.js +8 -0
- package/esm/Card/native/PlanCard/Actions.js +27 -0
- package/esm/Card/native/PlanCard/Content.js +134 -0
- package/esm/Card/native/PlanCard/List.js +113 -0
- package/esm/Card/native/PlanCard/PlanCard.js +114 -0
- package/esm/Card/native/PlanCard/PlanCard.test.js +100 -0
- package/esm/Card/native/PlanCard/Subtitle.js +25 -0
- package/esm/Card/native/PlanCard/Tag.js +62 -0
- package/esm/Card/native/PlanCard/index.js +18 -0
- package/esm/Card/native/index.js +10 -0
- package/esm/Checkbox/CheckIcon.js +5 -0
- package/esm/Checkbox/Checkbox.theme.js +48 -0
- package/esm/Checkbox/CheckboxSwitch.theme.js +70 -0
- package/esm/Checkbox/index.js +6 -0
- package/esm/Checkbox/index.native.js +6 -0
- package/esm/Checkbox/native/Checkbox.js +276 -0
- package/esm/Checkbox/native/Checkbox.test.js +108 -0
- package/esm/Checkbox/native/Switch.js +166 -0
- package/esm/Checkbox/native/Switch.test.js +50 -0
- package/esm/Checkbox/native/index.js +6 -0
- package/esm/Chips/index.js +5 -0
- package/esm/Chips/index.native.js +5 -0
- package/esm/Chips/native/Chips.js +182 -0
- package/esm/Chips/native/Chips.test.js +108 -0
- package/esm/Chips/native/Counter.js +36 -0
- package/esm/Chips/native/index.js +5 -0
- package/esm/Datepicker/Datepicker.theme.js +12 -0
- package/esm/Datepicker/index.js +5 -0
- package/esm/Dialog/Dialog.theme.js +23 -0
- package/esm/Dialog/index.js +5 -0
- package/esm/Divider/Divider.theme.js +5 -0
- package/esm/Divider/index.js +5 -0
- package/esm/Divider/index.native.js +5 -0
- package/esm/Divider/native/Divider.js +33 -0
- package/esm/Divider/native/Divider.test.js +44 -0
- package/esm/Divider/native/index.js +5 -0
- package/esm/Drawer/Drawer.theme.js +15 -0
- package/esm/Drawer/index.js +5 -0
- package/esm/Dropdown/Dropdown.theme.js +185 -0
- package/esm/Dropdown/index.js +5 -0
- package/esm/Dropdown/index.native.js +5 -0
- package/esm/Dropdown/native/Backdrop.js +157 -0
- package/esm/Dropdown/native/Backdrop.test.js +22 -0
- package/esm/Dropdown/native/Dropdown.js +220 -0
- package/esm/Dropdown/native/Dropdown.test.js +76 -0
- package/esm/Dropdown/native/Options.android.js +81 -0
- package/esm/Dropdown/native/Options.ios.js +97 -0
- package/esm/Dropdown/native/index.js +5 -0
- package/esm/Feedback/Feedback.theme.js +9 -0
- package/esm/Feedback/index.js +5 -0
- package/esm/Grid/Grid.theme.js +23 -0
- package/esm/Grid/index.js +7 -0
- package/esm/Header/Header.theme.js +14 -0
- package/esm/Header/index.js +5 -0
- package/esm/Heading/Heading.theme.js +18 -0
- package/esm/Heading/index.js +5 -0
- package/esm/Icon/Icon.js +172 -0
- package/esm/Icon/Icon.theme.js +5 -0
- package/esm/Icon/index.js +5 -0
- package/esm/Icon/index.native.js +5 -0
- package/esm/Icon/native/Icon.test.js +69 -0
- package/esm/Icon/native/index.js +5 -0
- package/esm/Input/Input.theme.js +66 -0
- package/esm/Input/index.js +10 -0
- package/esm/Input/index.native.js +9 -0
- package/esm/Input/native/Email.js +37 -0
- package/esm/Input/native/Email.test.js +14 -0
- package/esm/Input/native/Helper.js +87 -0
- package/esm/Input/native/Input.js +365 -0
- package/esm/Input/native/Input.test.js +132 -0
- package/esm/Input/native/Number.js +29 -0
- package/esm/Input/native/Number.test.js +14 -0
- package/esm/Input/native/Password.js +166 -0
- package/esm/Input/native/Password.test.js +109 -0
- package/esm/Input/native/Tel.js +36 -0
- package/esm/Input/native/Tel.test.js +14 -0
- package/esm/Input/native/index.js +12 -0
- package/esm/List/List.theme.js +29 -0
- package/esm/List/index.js +7 -0
- package/esm/List/index.native.js +6 -0
- package/esm/List/native/List.js +43 -0
- package/esm/List/native/List.test.js +88 -0
- package/esm/List/native/ListItem.js +109 -0
- package/esm/List/native/index.js +6 -0
- package/esm/Menu/Menu.theme.js +43 -0
- package/esm/Menu/index.js +11 -0
- package/esm/Popover/Popover.theme.js +5 -0
- package/esm/Popover/index.js +5 -0
- package/esm/Progress/Progress.theme.js +18 -0
- package/esm/Progress/index.js +5 -0
- package/esm/Progress/index.native.js +5 -0
- package/esm/Progress/native/Progress.js +198 -0
- package/esm/Progress/native/Progress.test.js +134 -0
- package/esm/Progress/native/index.js +5 -0
- package/esm/RadioGroup/RadioGroup.theme.js +56 -0
- package/esm/RadioGroup/RadioGroupContext.js +6 -0
- package/esm/RadioGroup/index.js +7 -0
- package/esm/RadioGroup/index.native.js +7 -0
- package/esm/RadioGroup/native/Button/RadioButton.js +113 -0
- package/esm/RadioGroup/native/Button/RadioButton.test.js +70 -0
- package/esm/RadioGroup/native/Radio/Radio.js +171 -0
- package/esm/RadioGroup/native/Radio/Radio.test.js +74 -0
- package/esm/RadioGroup/native/RadioGroup.js +107 -0
- package/esm/RadioGroup/native/RadioGroup.test.js +56 -0
- package/esm/RadioGroup/native/index.js +8 -0
- package/esm/Rating/Rating.theme.js +11 -0
- package/esm/Rating/index.js +5 -0
- package/esm/Rating/index.native.js +5 -0
- package/esm/Rating/native/Rating.js +197 -0
- package/esm/Rating/native/Rating.test.js +91 -0
- package/esm/Rating/native/index.js +5 -0
- package/esm/Result/Result.theme.js +5 -0
- package/esm/Result/index.native.js +11 -0
- package/esm/Result/native/Attendances.js +54 -0
- package/esm/Result/native/Details.js +130 -0
- package/esm/Result/native/Rate.js +39 -0
- package/esm/Result/native/Result.js +98 -0
- package/esm/Result/native/Result.test.js +128 -0
- package/esm/Result/native/ResultButton.js +20 -0
- package/esm/Result/native/Tags.js +65 -0
- package/esm/Result/native/TinyTextIcon.js +29 -0
- package/esm/Result/native/index.js +5 -0
- package/esm/Skeleton/Skeleton.theme.js +22 -0
- package/esm/Skeleton/index.js +5 -0
- package/esm/Skeleton/index.native.js +5 -0
- package/esm/Skeleton/native/Skeleton.js +142 -0
- package/esm/Skeleton/native/Skeleton.test.js +40 -0
- package/esm/Skeleton/native/index.js +5 -0
- package/esm/Slider/Slider.theme.js +75 -0
- package/esm/Slider/index.js +5 -0
- package/esm/Slider/index.native.js +5 -0
- package/esm/Slider/native/Label.js +33 -0
- package/esm/Slider/native/Marker.js +84 -0
- package/esm/Slider/native/Slider.js +169 -0
- package/esm/Slider/native/Slider.test.js +105 -0
- package/esm/Slider/native/Step.js +27 -0
- package/esm/Slider/native/Tooltip.js +177 -0
- package/esm/Snackbar/Snackbar.theme.js +61 -0
- package/esm/Snackbar/index.js +5 -0
- package/esm/Snackbar/index.native.js +5 -0
- package/esm/Snackbar/native/Snackbar.js +246 -0
- package/esm/Snackbar/native/Snackbar.test.js +108 -0
- package/esm/Snackbar/native/SnackbarAnimationWrapper.js +114 -0
- package/esm/Snackbar/native/index.js +5 -0
- package/esm/Spinner/Spinner.theme.js +5 -0
- package/esm/Spinner/index.js +5 -0
- package/esm/Stepper/Stepper.theme.js +36 -0
- package/esm/Stepper/activeDot.js +5 -0
- package/esm/Stepper/index.js +6 -0
- package/esm/Stepper/index.native.js +6 -0
- package/esm/Stepper/native/Dots.js +75 -0
- package/esm/Stepper/native/Line.js +68 -0
- package/esm/Stepper/native/Step.js +33 -0
- package/esm/Stepper/native/Stepper.js +97 -0
- package/esm/Stepper/native/Stepper.test.js +64 -0
- package/esm/Stepper/native/index.js +6 -0
- package/esm/Tag/Tag.theme.js +38 -0
- package/esm/Tag/index.js +7 -0
- package/esm/Tag/index.native.js +7 -0
- package/esm/Tag/native/Informative.js +127 -0
- package/esm/Tag/native/Tag.js +121 -0
- package/esm/Tag/native/Tag.test.js +74 -0
- package/esm/Tag/native/index.js +5 -0
- package/esm/Text/Text.theme.js +73 -0
- package/esm/Text/index.js +35 -0
- package/esm/Text/index.native.js +35 -0
- package/esm/Text/native/Text.js +123 -0
- package/esm/Text/native/Text.test.js +150 -0
- package/esm/Text/native/index.js +34 -0
- package/esm/Text/sharedTextStyle.js +44 -0
- package/esm/Text/textStyle.android.js +27 -0
- package/esm/Text/textStyle.ios.js +9 -0
- package/esm/Text/textStyle.web.js +17 -0
- package/esm/TextArea/TextArea.theme.js +6 -0
- package/esm/TextArea/index.js +5 -0
- package/esm/TextArea/index.native.js +5 -0
- package/esm/TextArea/native/TextArea.js +64 -0
- package/esm/TextArea/native/TextArea.test.js +12 -0
- package/esm/TextArea/native/index.js +5 -0
- package/esm/Theme/Provider/Provider.js +75 -0
- package/esm/Theme/Provider/index.js +5 -0
- package/esm/Theme/Provider/index.native.js +5 -0
- package/esm/Theme/Provider/native/index.js +5 -0
- package/esm/Theme/Provider/web/FontLoader.js +21 -0
- package/esm/Theme/Provider/web/FontLoader.test.js +16 -0
- package/esm/Theme/Provider/web/GlobalStyle.js +18 -0
- package/esm/Theme/Provider/web/GlobalStyle.test.js +21 -0
- package/esm/Theme/Provider/web/ThemeProvider.js +50 -0
- package/esm/Theme/Provider/web/expectCssMatches.js +14 -0
- package/esm/Theme/Provider/web/index.js +6 -0
- package/esm/Theme/helpers/themeGenerator/index.js +5 -0
- package/esm/Theme/helpers/themeGenerator/themeGenerator.js +13 -0
- package/esm/Theme/helpers/themeGenerator/themeGenerator.test.js +20 -0
- package/esm/Theme/helpers/themeReader/base.test.js +73 -0
- package/esm/Theme/helpers/themeReader/index.js +26 -0
- package/esm/Theme/helpers/themeReader/native/native.test.js +38 -0
- package/esm/Theme/helpers/themeReader/web/web.test.js +32 -0
- package/esm/Theme/index.js +11 -0
- package/esm/Theme/index.native.js +10 -0
- package/esm/Theme/theme/componentThemes.js +82 -0
- package/esm/Theme/theme/index.js +5 -0
- package/esm/Theme/theme/theme.js +81 -0
- package/esm/hooks/index.js +3 -0
- package/esm/hooks/useCombinedRefs.js +20 -0
- package/esm/hooks/useKeyPress.js +26 -0
- package/esm/hooks/usePortal.js +39 -0
- package/esm/index.js +90 -0
- package/esm/index.native.js +58 -0
- package/esm/shared/HiddenInput.js +15 -0
- package/esm/shared/index.js +16 -0
- package/esm/shared/index.native.js +14 -0
- package/esm/shared/propTypes/charLength.js +16 -0
- package/esm/shared/propTypes/deprecated.js +14 -0
- package/esm/shared/propTypes/index.js +12 -0
- package/esm/shared/propTypes/limitChildren.js +15 -0
- package/esm/shared/propTypes/max.js +15 -0
- package/esm/shared/propTypes/typeof.js +17 -0
- package/package.json +2 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const Accordion = ({ spacing, fontWeights, fontSizes }) => ({
|
|
2
|
+
padding: {
|
|
3
|
+
zero: spacing.zero,
|
|
4
|
+
small: spacing.small,
|
|
5
|
+
standard: spacing.medium,
|
|
6
|
+
large: spacing.large
|
|
7
|
+
},
|
|
8
|
+
paddingArrow: {
|
|
9
|
+
total: spacing.xxsmall
|
|
10
|
+
},
|
|
11
|
+
gap: {
|
|
12
|
+
header: spacing.xxxsmall
|
|
13
|
+
},
|
|
14
|
+
fontWeight: {
|
|
15
|
+
medium: fontWeights.medium,
|
|
16
|
+
regular: fontWeights.regular
|
|
17
|
+
},
|
|
18
|
+
fontSize: {
|
|
19
|
+
medium: fontSizes.medium,
|
|
20
|
+
small: fontSizes.small
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
var Accordion_theme_default = Accordion;
|
|
24
|
+
export {
|
|
25
|
+
Accordion_theme_default as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
+
import React from "react";
|
|
22
|
+
import { arrayOf, node, oneOfType, string } from "prop-types";
|
|
23
|
+
import styled from "styled-components/native";
|
|
24
|
+
import { View } from "react-native";
|
|
25
|
+
import Box from "../../Box";
|
|
26
|
+
import { Title } from "./ActionRequirementStyles";
|
|
27
|
+
import Text from "../../Text";
|
|
28
|
+
const StyledActionRequirement = styled.View``;
|
|
29
|
+
function ActionRequirement(props) {
|
|
30
|
+
const { title, description, children, checkable, illustration, list } = props;
|
|
31
|
+
return /* @__PURE__ */ jsxs(StyledActionRequirement, __spreadProps(__spreadValues({}, props), { children: [
|
|
32
|
+
illustration && /* @__PURE__ */ jsx(Box, { children: illustration }),
|
|
33
|
+
/* @__PURE__ */ jsx(Title, { children: title }),
|
|
34
|
+
/* @__PURE__ */ jsx(Text, { mt: "small", color: "deep", children: description }),
|
|
35
|
+
list && /* @__PURE__ */ jsx(Text, { mt: "small", color: "deep", children: /* @__PURE__ */ jsx(Box, { mt: "xxxlarge", children: list }) }),
|
|
36
|
+
checkable && /* @__PURE__ */ jsx(Box, { mt: "xxxlarge", children: checkable }),
|
|
37
|
+
/* @__PURE__ */ jsx(View, { children })
|
|
38
|
+
] }));
|
|
39
|
+
}
|
|
40
|
+
ActionRequirement.propTypes = {
|
|
41
|
+
title: string.isRequired,
|
|
42
|
+
children: oneOfType([arrayOf(node), node]),
|
|
43
|
+
description: string.isRequired,
|
|
44
|
+
checkable: oneOfType([arrayOf(node), node]),
|
|
45
|
+
illustration: oneOfType([arrayOf(node), node]),
|
|
46
|
+
list: oneOfType([arrayOf(node), node])
|
|
47
|
+
};
|
|
48
|
+
ActionRequirement.defaultProps = {
|
|
49
|
+
children: void 0,
|
|
50
|
+
checkable: void 0,
|
|
51
|
+
illustration: void 0,
|
|
52
|
+
list: void 0
|
|
53
|
+
};
|
|
54
|
+
var ActionRequirement_default = ActionRequirement;
|
|
55
|
+
export {
|
|
56
|
+
ActionRequirement_default as default
|
|
57
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { render } from "@testing-library/react-native";
|
|
4
|
+
import { Img2d01 } from "@gympass/yoga-illustrations";
|
|
5
|
+
import { Dumbbell, User, Star } from "@gympass/yoga-icons";
|
|
6
|
+
import { Box, Checkbox, Text, ThemeProvider } from "../..";
|
|
7
|
+
import ActionRequirement from "./ActionRequirement";
|
|
8
|
+
function handleGetCheckableContent() {
|
|
9
|
+
return /* @__PURE__ */ jsxs(Box, { display: "flex", flexDirection: "row", alignItems: "center", children: [
|
|
10
|
+
/* @__PURE__ */ jsx(Checkbox, {}),
|
|
11
|
+
/* @__PURE__ */ jsx(Text, { children: "I have read and agree to the Terms of Use and Privacy Policy." })
|
|
12
|
+
] });
|
|
13
|
+
}
|
|
14
|
+
function handleGetIllustration() {
|
|
15
|
+
return /* @__PURE__ */ jsx(Img2d01, { width: 375, height: 375 });
|
|
16
|
+
}
|
|
17
|
+
function handleGetList() {
|
|
18
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
19
|
+
/* @__PURE__ */ jsxs(Text, { children: [
|
|
20
|
+
/* @__PURE__ */ jsx(Dumbbell, {}),
|
|
21
|
+
" 1x/day standard access"
|
|
22
|
+
] }),
|
|
23
|
+
/* @__PURE__ */ jsxs(Text, { mt: "small", children: [
|
|
24
|
+
/* @__PURE__ */ jsx(User, {}),
|
|
25
|
+
" 4x/month 1-on-1 sessions"
|
|
26
|
+
] }),
|
|
27
|
+
/* @__PURE__ */ jsxs(Text, { mt: "small", children: [
|
|
28
|
+
/* @__PURE__ */ jsx(Star, {}),
|
|
29
|
+
" 2x/month premium classes"
|
|
30
|
+
] })
|
|
31
|
+
] });
|
|
32
|
+
}
|
|
33
|
+
describe("<ActionRequirement />", () => {
|
|
34
|
+
it("should match snapshot", () => {
|
|
35
|
+
const { toJSON } = render(
|
|
36
|
+
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(
|
|
37
|
+
ActionRequirement,
|
|
38
|
+
{
|
|
39
|
+
title: "Welcome to the world of feeling good!",
|
|
40
|
+
description: "Lets make it a good day!",
|
|
41
|
+
illustration: handleGetIllustration(),
|
|
42
|
+
checkable: handleGetCheckableContent(),
|
|
43
|
+
list: handleGetList()
|
|
44
|
+
}
|
|
45
|
+
) })
|
|
46
|
+
);
|
|
47
|
+
expect(toJSON()).toMatchSnapshot();
|
|
48
|
+
});
|
|
49
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
|
+
import Text from "../../Text/index.native";
|
|
3
|
+
import Box from "../../Box/index.native";
|
|
4
|
+
import Button from "../../Button/index.native";
|
|
5
|
+
const Title = styled(Text.H4)`
|
|
6
|
+
${({
|
|
7
|
+
theme: {
|
|
8
|
+
yoga: { fontSizes }
|
|
9
|
+
}
|
|
10
|
+
}) => css`
|
|
11
|
+
@media (min-width: 769px) {
|
|
12
|
+
max-width: 700px;
|
|
13
|
+
font-size: ${fontSizes.huge}px;
|
|
14
|
+
line-height: ${fontSizes.huge}px;
|
|
15
|
+
}
|
|
16
|
+
`}
|
|
17
|
+
`;
|
|
18
|
+
const Actions = styled(Box)`
|
|
19
|
+
${({
|
|
20
|
+
theme: {
|
|
21
|
+
yoga: { spacing }
|
|
22
|
+
}
|
|
23
|
+
}) => css`
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
|
|
27
|
+
@media (min-width: 769px) {
|
|
28
|
+
flex-direction: row;
|
|
29
|
+
margin-top: ${spacing.xlarge}px;
|
|
30
|
+
}
|
|
31
|
+
`}
|
|
32
|
+
`;
|
|
33
|
+
const buttonsStyles = css`
|
|
34
|
+
${({
|
|
35
|
+
theme: {
|
|
36
|
+
yoga: { spacing }
|
|
37
|
+
}
|
|
38
|
+
}) => css`
|
|
39
|
+
width: 100%;
|
|
40
|
+
|
|
41
|
+
:last-child(:not(:first-child)) {
|
|
42
|
+
margin-top: ${spacing.small}px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@media (min-width: 769px) {
|
|
46
|
+
width: auto;
|
|
47
|
+
|
|
48
|
+
:last-child(:not(:first-child)) {
|
|
49
|
+
margin-top: 0;
|
|
50
|
+
margin-left: ${spacing.large}px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
`}
|
|
54
|
+
`;
|
|
55
|
+
const PrimaryButton = styled(Button)`
|
|
56
|
+
${buttonsStyles}
|
|
57
|
+
`;
|
|
58
|
+
const SecondaryButton = styled(Button.Text)`
|
|
59
|
+
${buttonsStyles}
|
|
60
|
+
`;
|
|
61
|
+
Title.displayName = "ActionRequirement.Title";
|
|
62
|
+
PrimaryButton.displayName = "ActionRequirement.PrimaryButton";
|
|
63
|
+
SecondaryButton.displayName = "ActionRequirement.SecondaryButton";
|
|
64
|
+
export {
|
|
65
|
+
Actions,
|
|
66
|
+
PrimaryButton,
|
|
67
|
+
SecondaryButton,
|
|
68
|
+
Title
|
|
69
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import ActionRequirement from "./ActionRequirement";
|
|
2
|
+
import {
|
|
3
|
+
Title,
|
|
4
|
+
PrimaryButton,
|
|
5
|
+
SecondaryButton
|
|
6
|
+
} from "./ActionRequirementStyles";
|
|
7
|
+
ActionRequirement.Title = Title;
|
|
8
|
+
ActionRequirement.PrimaryButton = PrimaryButton;
|
|
9
|
+
ActionRequirement.SecondaryButton = SecondaryButton;
|
|
10
|
+
var native_default = ActionRequirement;
|
|
11
|
+
export {
|
|
12
|
+
native_default as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import Input from "../Input/Input.theme";
|
|
21
|
+
const AutoComplete = (tokens) => __spreadProps(__spreadValues({}, Input(tokens)), {
|
|
22
|
+
field: {
|
|
23
|
+
backgroundColor: tokens.colors.white
|
|
24
|
+
},
|
|
25
|
+
list: {
|
|
26
|
+
padding: {
|
|
27
|
+
top: tokens.spacing.small,
|
|
28
|
+
right: tokens.spacing.small,
|
|
29
|
+
bottom: tokens.spacing.small,
|
|
30
|
+
left: tokens.spacing.small
|
|
31
|
+
},
|
|
32
|
+
font: {
|
|
33
|
+
size: tokens.fontSizes.small,
|
|
34
|
+
weight: {
|
|
35
|
+
default: tokens.fontWeights.regular,
|
|
36
|
+
matched: tokens.fontWeights.bold
|
|
37
|
+
},
|
|
38
|
+
lineHeight: tokens.lineHeights.small
|
|
39
|
+
},
|
|
40
|
+
backgroundColor: {
|
|
41
|
+
default: tokens.colors.white,
|
|
42
|
+
hover: tokens.colors.clear
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
var AutoComplete_theme_default = AutoComplete;
|
|
47
|
+
export {
|
|
48
|
+
AutoComplete_theme_default as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
33
|
+
import React, { forwardRef } from "react";
|
|
34
|
+
import { BuildingFilled } from "@gympass/yoga-icons";
|
|
35
|
+
import { string, func, number } from "prop-types";
|
|
36
|
+
import { ImagePropTypes } from "deprecated-react-native-prop-types";
|
|
37
|
+
import { Image } from "react-native";
|
|
38
|
+
import styled from "styled-components";
|
|
39
|
+
import { hexToRgb } from "@gympass/yoga-common";
|
|
40
|
+
import Box from "../../Box";
|
|
41
|
+
import Icon from "../../Icon";
|
|
42
|
+
const BORDER_WIDTH = 1;
|
|
43
|
+
const BORDER_OPACITY = 0.25;
|
|
44
|
+
const BorderImage = styled(Box).attrs(({ theme: { yoga } }) => {
|
|
45
|
+
return {
|
|
46
|
+
borderColor: hexToRgb(yoga.colors.secondary, BORDER_OPACITY),
|
|
47
|
+
borderWidth: BORDER_WIDTH
|
|
48
|
+
};
|
|
49
|
+
})`
|
|
50
|
+
position: absolute;
|
|
51
|
+
`;
|
|
52
|
+
const Content = ({ icon, src, fill, content, stroke }) => {
|
|
53
|
+
if (src) {
|
|
54
|
+
return /* @__PURE__ */ jsx(Box, { as: Image, width: "100%", height: "100%", source: src });
|
|
55
|
+
}
|
|
56
|
+
if (content) {
|
|
57
|
+
return content;
|
|
58
|
+
}
|
|
59
|
+
return /* @__PURE__ */ jsx(Icon, { as: icon, width: "50%", height: "50%", fill, stroke });
|
|
60
|
+
};
|
|
61
|
+
const Avatar = forwardRef(
|
|
62
|
+
(_a, ref) => {
|
|
63
|
+
var _b = _a, {
|
|
64
|
+
icon = BuildingFilled,
|
|
65
|
+
src,
|
|
66
|
+
children,
|
|
67
|
+
fill,
|
|
68
|
+
stroke,
|
|
69
|
+
borderRadius,
|
|
70
|
+
width,
|
|
71
|
+
height
|
|
72
|
+
} = _b, props = __objRest(_b, [
|
|
73
|
+
"icon",
|
|
74
|
+
"src",
|
|
75
|
+
"children",
|
|
76
|
+
"fill",
|
|
77
|
+
"stroke",
|
|
78
|
+
"borderRadius",
|
|
79
|
+
"width",
|
|
80
|
+
"height"
|
|
81
|
+
]);
|
|
82
|
+
return /* @__PURE__ */ jsxs(
|
|
83
|
+
Box,
|
|
84
|
+
__spreadProps(__spreadValues({
|
|
85
|
+
ref,
|
|
86
|
+
bgColor: "elements.selectionAndIcons",
|
|
87
|
+
display: "flex",
|
|
88
|
+
alignItems: "center",
|
|
89
|
+
justifyContent: "center",
|
|
90
|
+
width,
|
|
91
|
+
height,
|
|
92
|
+
overflow: "hidden",
|
|
93
|
+
borderRadius
|
|
94
|
+
}, props), {
|
|
95
|
+
children: [
|
|
96
|
+
/* @__PURE__ */ jsx(
|
|
97
|
+
Content,
|
|
98
|
+
{
|
|
99
|
+
icon,
|
|
100
|
+
src,
|
|
101
|
+
fill,
|
|
102
|
+
stroke,
|
|
103
|
+
content: children
|
|
104
|
+
}
|
|
105
|
+
),
|
|
106
|
+
/* @__PURE__ */ jsx(BorderImage, { width: "100%", height: "100%", borderRadius })
|
|
107
|
+
]
|
|
108
|
+
})
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
Content.propTypes = __spreadValues({
|
|
113
|
+
src: ImagePropTypes.source,
|
|
114
|
+
icon: func,
|
|
115
|
+
fill: string
|
|
116
|
+
}, Box.propTypes);
|
|
117
|
+
Content.defaultProps = {
|
|
118
|
+
src: void 0,
|
|
119
|
+
fill: "white",
|
|
120
|
+
icon: BuildingFilled
|
|
121
|
+
};
|
|
122
|
+
Avatar.propTypes = __spreadValues({
|
|
123
|
+
src: ImagePropTypes.source,
|
|
124
|
+
icon: func,
|
|
125
|
+
fill: string,
|
|
126
|
+
width: number,
|
|
127
|
+
height: number,
|
|
128
|
+
borderRadius: string
|
|
129
|
+
}, Box.propTypes);
|
|
130
|
+
Avatar.defaultProps = __spreadValues({
|
|
131
|
+
src: void 0,
|
|
132
|
+
fill: "white",
|
|
133
|
+
width: 48,
|
|
134
|
+
height: 48,
|
|
135
|
+
borderRadius: "small"
|
|
136
|
+
}, Box.defaultProps);
|
|
137
|
+
Avatar.displayName = "Avatar";
|
|
138
|
+
var Avatar_default = Avatar;
|
|
139
|
+
export {
|
|
140
|
+
Avatar_default as default
|
|
141
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { render } from "@testing-library/react-native";
|
|
4
|
+
import { UserFilled } from "@gympass/yoga-icons";
|
|
5
|
+
import { ThemeProvider } from "../..";
|
|
6
|
+
import Avatar from "./Avatar";
|
|
7
|
+
import Text from "../../Text";
|
|
8
|
+
describe("<Avatar />", () => {
|
|
9
|
+
it("should match snapshot in default avatar", () => {
|
|
10
|
+
const { toJSON } = render(
|
|
11
|
+
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Avatar, { width: 78, height: 78, fill: "black" }) })
|
|
12
|
+
);
|
|
13
|
+
expect(toJSON()).toMatchSnapshot();
|
|
14
|
+
});
|
|
15
|
+
it("should match snapshot in default avatar with placeholder prop", () => {
|
|
16
|
+
const { toJSON } = render(
|
|
17
|
+
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Avatar, { placeholder: UserFilled }) })
|
|
18
|
+
);
|
|
19
|
+
expect(toJSON()).toMatchSnapshot();
|
|
20
|
+
});
|
|
21
|
+
it("should match snapshot in circle avatar", () => {
|
|
22
|
+
const { toJSON } = render(
|
|
23
|
+
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Avatar.Circle, {}) })
|
|
24
|
+
);
|
|
25
|
+
expect(toJSON()).toMatchSnapshot();
|
|
26
|
+
});
|
|
27
|
+
it("should match snapshot in circle avatar with placeholder prop", () => {
|
|
28
|
+
const { toJSON } = render(
|
|
29
|
+
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Avatar.Circle, { placeholder: UserFilled }) })
|
|
30
|
+
);
|
|
31
|
+
expect(toJSON()).toMatchSnapshot();
|
|
32
|
+
});
|
|
33
|
+
it("should match snapshot in avatar with children prop", () => {
|
|
34
|
+
const { toJSON } = render(
|
|
35
|
+
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Avatar, { children: /* @__PURE__ */ jsx(Text, { children: "AL" }) }) })
|
|
36
|
+
);
|
|
37
|
+
expect(toJSON()).toMatchSnapshot();
|
|
38
|
+
});
|
|
39
|
+
});
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
import { jsx } from "react/jsx-runtime";
|
|
33
|
+
import React, { forwardRef } from "react";
|
|
34
|
+
import { UserFilled } from "@gympass/yoga-icons";
|
|
35
|
+
import Avatar from "./Avatar";
|
|
36
|
+
const AvatarCircle = forwardRef((_a, ref) => {
|
|
37
|
+
var _b = _a, { src } = _b, props = __objRest(_b, ["src"]);
|
|
38
|
+
return /* @__PURE__ */ jsx(
|
|
39
|
+
Avatar,
|
|
40
|
+
__spreadProps(__spreadValues({}, props), {
|
|
41
|
+
src,
|
|
42
|
+
borderRadius: "circle",
|
|
43
|
+
icon: !src ? UserFilled : void 0,
|
|
44
|
+
ref
|
|
45
|
+
})
|
|
46
|
+
);
|
|
47
|
+
});
|
|
48
|
+
AvatarCircle.propTypes = Avatar.propTypes;
|
|
49
|
+
AvatarCircle.defaultProps = Avatar.defaultProps;
|
|
50
|
+
AvatarCircle.displayName = "Avatar.Circle";
|
|
51
|
+
var AvatarCircle_default = AvatarCircle;
|
|
52
|
+
export {
|
|
53
|
+
AvatarCircle_default as default
|
|
54
|
+
};
|