@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,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_react = __toESM(require("react"));
|
|
26
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
27
|
+
var import_react_native = require("@testing-library/react-native");
|
|
28
|
+
var import__ = __toESM(require("../../../index.native"));
|
|
29
|
+
var import_base = require("../base.test");
|
|
30
|
+
describe("themeReader - web specs", () => {
|
|
31
|
+
it("should render", () => {
|
|
32
|
+
const Component = import_styled_components.default.View`
|
|
33
|
+
border: ${import__.theme.borders.small}px solid;
|
|
34
|
+
`;
|
|
35
|
+
const { toJSON } = (0, import_react_native.render)(
|
|
36
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { testID: "component", children: "Teste" }) })
|
|
37
|
+
);
|
|
38
|
+
expect(toJSON().props.style).toEqual([
|
|
39
|
+
{ borderWidth: 1, borderColor: "black", borderStyle: "solid" }
|
|
40
|
+
]);
|
|
41
|
+
});
|
|
42
|
+
it("should render with conditional", () => {
|
|
43
|
+
const Component = import_styled_components.default.View`
|
|
44
|
+
border: ${({ borders }) => borders ? import_styled_components.css`
|
|
45
|
+
${import__.theme.borders.small}px solid
|
|
46
|
+
` : "none"};
|
|
47
|
+
`;
|
|
48
|
+
const { toJSON, rerender } = (0, import_react_native.render)(
|
|
49
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { borders: false, testID: "component", children: "Teste" }) })
|
|
50
|
+
);
|
|
51
|
+
expect(toJSON().props.style).toEqual([
|
|
52
|
+
{ borderWidth: 0, borderColor: "black", borderStyle: "solid" }
|
|
53
|
+
]);
|
|
54
|
+
rerender(
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { borders: true, "data-testid": "component" }) })
|
|
56
|
+
);
|
|
57
|
+
expect(toJSON().props.style).toEqual([
|
|
58
|
+
{ borderWidth: 1, borderColor: "black", borderStyle: "solid" }
|
|
59
|
+
]);
|
|
60
|
+
});
|
|
61
|
+
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_react = __toESM(require("react"));
|
|
26
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
27
|
+
var import_react2 = require("@testing-library/react");
|
|
28
|
+
var import__ = __toESM(require("../../../index"));
|
|
29
|
+
var import_base = require("../base.test");
|
|
30
|
+
describe("themeReader - web specs", () => {
|
|
31
|
+
it("should render", () => {
|
|
32
|
+
const Component = import_styled_components.default.div`
|
|
33
|
+
border: ${import__.theme.borders.small}px solid;
|
|
34
|
+
`;
|
|
35
|
+
const { getByTestId } = (0, import_react2.render)(
|
|
36
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { "data-testid": "component" }) })
|
|
37
|
+
);
|
|
38
|
+
expect(getByTestId("component")).toHaveStyleRule("border", "1px solid");
|
|
39
|
+
});
|
|
40
|
+
it("should render with conditional", () => {
|
|
41
|
+
const Component = import_styled_components.default.div`
|
|
42
|
+
border: ${({ borders }) => borders ? import_styled_components.css`
|
|
43
|
+
${import__.theme.borders.small}px solid
|
|
44
|
+
` : "none"};
|
|
45
|
+
`;
|
|
46
|
+
const { getByTestId, rerender } = (0, import_react2.render)(
|
|
47
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { borders: false, "data-testid": "component" }) })
|
|
48
|
+
);
|
|
49
|
+
expect(getByTestId("component")).toHaveStyleRule("border", "none");
|
|
50
|
+
rerender(
|
|
51
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { borders: true, "data-testid": "component" }) })
|
|
52
|
+
);
|
|
53
|
+
expect(getByTestId("component")).toHaveStyleRule("border", "1px solid");
|
|
54
|
+
});
|
|
55
|
+
});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var Theme_exports = {};
|
|
30
|
+
__export(Theme_exports, {
|
|
31
|
+
FontLoader: () => import_Provider.FontLoader,
|
|
32
|
+
createTheme: () => import_themeGenerator.default,
|
|
33
|
+
default: () => import_Provider.ThemeProvider,
|
|
34
|
+
theme: () => import_themeReader.default,
|
|
35
|
+
yogaTheme: () => import_theme.default
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(Theme_exports);
|
|
38
|
+
var import_Provider = require("./Provider");
|
|
39
|
+
var import_theme = __toESM(require("./theme"));
|
|
40
|
+
var import_themeReader = __toESM(require("./helpers/themeReader"));
|
|
41
|
+
var import_themeGenerator = __toESM(require("./helpers/themeGenerator"));
|
|
42
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
+
0 && (module.exports = {
|
|
44
|
+
FontLoader,
|
|
45
|
+
createTheme,
|
|
46
|
+
theme,
|
|
47
|
+
yogaTheme
|
|
48
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var index_native_exports = {};
|
|
30
|
+
__export(index_native_exports, {
|
|
31
|
+
createTheme: () => import_themeGenerator.default,
|
|
32
|
+
default: () => import_Provider.default,
|
|
33
|
+
theme: () => import_themeReader.default,
|
|
34
|
+
yogaTheme: () => import_theme.default
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(index_native_exports);
|
|
37
|
+
var import_Provider = __toESM(require("./Provider"));
|
|
38
|
+
var import_theme = __toESM(require("./theme"));
|
|
39
|
+
var import_themeReader = __toESM(require("./helpers/themeReader"));
|
|
40
|
+
var import_themeGenerator = __toESM(require("./helpers/themeGenerator"));
|
|
41
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
+
0 && (module.exports = {
|
|
43
|
+
createTheme,
|
|
44
|
+
theme,
|
|
45
|
+
yogaTheme
|
|
46
|
+
});
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var componentThemes_exports = {};
|
|
30
|
+
__export(componentThemes_exports, {
|
|
31
|
+
default: () => componentThemes_default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(componentThemes_exports);
|
|
34
|
+
var import_Accordion_theme = __toESM(require("../../Accordion/Accordion.theme.js"));
|
|
35
|
+
var import_ActionRequirement_theme = __toESM(require("../../ActionRequirement/ActionRequirement.theme.js"));
|
|
36
|
+
var import_AutoComplete_theme = __toESM(require("../../AutoComplete/AutoComplete.theme.js"));
|
|
37
|
+
var import_Avatar_theme = __toESM(require("../../Avatar/Avatar.theme.js"));
|
|
38
|
+
var import_Banner_theme = __toESM(require("../../Banner/Banner.theme.js"));
|
|
39
|
+
var import_BottomSheet_theme = __toESM(require("../../BottomSheet/BottomSheet.theme.js"));
|
|
40
|
+
var import_Button_theme = __toESM(require("../../Button/Button.theme.js"));
|
|
41
|
+
var import_Card_theme = __toESM(require("../../Card/Card.theme.js"));
|
|
42
|
+
var import_Card_native_theme = __toESM(require("../../Card/Card.native.theme.js"));
|
|
43
|
+
var import_Card_web_theme = __toESM(require("../../Card/Card.web.theme.js"));
|
|
44
|
+
var import_Checkbox_theme = __toESM(require("../../Checkbox/Checkbox.theme.js"));
|
|
45
|
+
var import_CheckboxSwitch_theme = __toESM(require("../../Checkbox/CheckboxSwitch.theme.js"));
|
|
46
|
+
var import_Datepicker_theme = __toESM(require("../../Datepicker/Datepicker.theme.js"));
|
|
47
|
+
var import_Dialog_theme = __toESM(require("../../Dialog/Dialog.theme.js"));
|
|
48
|
+
var import_Divider_theme = __toESM(require("../../Divider/Divider.theme.js"));
|
|
49
|
+
var import_Drawer_theme = __toESM(require("../../Drawer/Drawer.theme.js"));
|
|
50
|
+
var import_Dropdown_theme = __toESM(require("../../Dropdown/Dropdown.theme.js"));
|
|
51
|
+
var import_Feedback_theme = __toESM(require("../../Feedback/Feedback.theme.js"));
|
|
52
|
+
var import_Grid_theme = __toESM(require("../../Grid/Grid.theme.js"));
|
|
53
|
+
var import_Header_theme = __toESM(require("../../Header/Header.theme.js"));
|
|
54
|
+
var import_Heading_theme = __toESM(require("../../Heading/Heading.theme.js"));
|
|
55
|
+
var import_Icon_theme = __toESM(require("../../Icon/Icon.theme.js"));
|
|
56
|
+
var import_Input_theme = __toESM(require("../../Input/Input.theme.js"));
|
|
57
|
+
var import_List_theme = __toESM(require("../../List/List.theme.js"));
|
|
58
|
+
var import_Menu_theme = __toESM(require("../../Menu/Menu.theme.js"));
|
|
59
|
+
var import_Popover_theme = __toESM(require("../../Popover/Popover.theme.js"));
|
|
60
|
+
var import_Progress_theme = __toESM(require("../../Progress/Progress.theme.js"));
|
|
61
|
+
var import_RadioGroup_theme = __toESM(require("../../RadioGroup/RadioGroup.theme.js"));
|
|
62
|
+
var import_Rating_theme = __toESM(require("../../Rating/Rating.theme.js"));
|
|
63
|
+
var import_Result_theme = __toESM(require("../../Result/Result.theme.js"));
|
|
64
|
+
var import_Skeleton_theme = __toESM(require("../../Skeleton/Skeleton.theme.js"));
|
|
65
|
+
var import_Slider_theme = __toESM(require("../../Slider/Slider.theme.js"));
|
|
66
|
+
var import_Snackbar_theme = __toESM(require("../../Snackbar/Snackbar.theme.js"));
|
|
67
|
+
var import_Spinner_theme = __toESM(require("../../Spinner/Spinner.theme.js"));
|
|
68
|
+
var import_Stepper_theme = __toESM(require("../../Stepper/Stepper.theme.js"));
|
|
69
|
+
var import_Tag_theme = __toESM(require("../../Tag/Tag.theme.js"));
|
|
70
|
+
var import_Text_theme = __toESM(require("../../Text/Text.theme.js"));
|
|
71
|
+
var import_TextArea_theme = __toESM(require("../../TextArea/TextArea.theme.js"));
|
|
72
|
+
const componentThemes = {
|
|
73
|
+
Accordion: import_Accordion_theme.default,
|
|
74
|
+
ActionRequirement: import_ActionRequirement_theme.default,
|
|
75
|
+
AutoComplete: import_AutoComplete_theme.default,
|
|
76
|
+
Avatar: import_Avatar_theme.default,
|
|
77
|
+
Banner: import_Banner_theme.default,
|
|
78
|
+
BottomSheet: import_BottomSheet_theme.default,
|
|
79
|
+
Button: import_Button_theme.default,
|
|
80
|
+
Card: import_Card_theme.default,
|
|
81
|
+
CardNative: import_Card_native_theme.default,
|
|
82
|
+
CardWeb: import_Card_web_theme.default,
|
|
83
|
+
Checkbox: import_Checkbox_theme.default,
|
|
84
|
+
CheckboxSwitch: import_CheckboxSwitch_theme.default,
|
|
85
|
+
Datepicker: import_Datepicker_theme.default,
|
|
86
|
+
Dialog: import_Dialog_theme.default,
|
|
87
|
+
Divider: import_Divider_theme.default,
|
|
88
|
+
Drawer: import_Drawer_theme.default,
|
|
89
|
+
Dropdown: import_Dropdown_theme.default,
|
|
90
|
+
Feedback: import_Feedback_theme.default,
|
|
91
|
+
Grid: import_Grid_theme.default,
|
|
92
|
+
Header: import_Header_theme.default,
|
|
93
|
+
Heading: import_Heading_theme.default,
|
|
94
|
+
Icon: import_Icon_theme.default,
|
|
95
|
+
Input: import_Input_theme.default,
|
|
96
|
+
List: import_List_theme.default,
|
|
97
|
+
Menu: import_Menu_theme.default,
|
|
98
|
+
Popover: import_Popover_theme.default,
|
|
99
|
+
Progress: import_Progress_theme.default,
|
|
100
|
+
RadioGroup: import_RadioGroup_theme.default,
|
|
101
|
+
Rating: import_Rating_theme.default,
|
|
102
|
+
Result: import_Result_theme.default,
|
|
103
|
+
Skeleton: import_Skeleton_theme.default,
|
|
104
|
+
Slider: import_Slider_theme.default,
|
|
105
|
+
Snackbar: import_Snackbar_theme.default,
|
|
106
|
+
Spinner: import_Spinner_theme.default,
|
|
107
|
+
Stepper: import_Stepper_theme.default,
|
|
108
|
+
Tag: import_Tag_theme.default,
|
|
109
|
+
Text: import_Text_theme.default,
|
|
110
|
+
TextArea: import_TextArea_theme.default
|
|
111
|
+
};
|
|
112
|
+
var componentThemes_default = componentThemes;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var theme_exports = {};
|
|
30
|
+
__export(theme_exports, {
|
|
31
|
+
default: () => theme_default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(theme_exports);
|
|
34
|
+
var import_theme = __toESM(require("./theme"));
|
|
35
|
+
var theme_default = import_theme.default;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __export = (target, all) => {
|
|
26
|
+
for (var name in all)
|
|
27
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
28
|
+
};
|
|
29
|
+
var __copyProps = (to, from, except, desc) => {
|
|
30
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
31
|
+
for (let key of __getOwnPropNames(from))
|
|
32
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
33
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
34
|
+
}
|
|
35
|
+
return to;
|
|
36
|
+
};
|
|
37
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
38
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
39
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
40
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
41
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
42
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
43
|
+
mod
|
|
44
|
+
));
|
|
45
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
46
|
+
var theme_exports = {};
|
|
47
|
+
__export(theme_exports, {
|
|
48
|
+
default: () => theme_default
|
|
49
|
+
});
|
|
50
|
+
module.exports = __toCommonJS(theme_exports);
|
|
51
|
+
var import_yoga_common = require("@gympass/yoga-common");
|
|
52
|
+
var import_componentThemes = __toESM(require("./componentThemes"));
|
|
53
|
+
const getComponentThemes = (tokens) => {
|
|
54
|
+
const { colors, baseFont, baseFontSize } = tokens;
|
|
55
|
+
const components = Object.entries(import_componentThemes.default).reduce(
|
|
56
|
+
(componentsStyles, [names, themed]) => {
|
|
57
|
+
const name = names.toLowerCase();
|
|
58
|
+
return __spreadProps(__spreadValues({}, componentsStyles), {
|
|
59
|
+
[name]: themed(__spreadProps(__spreadValues({}, tokens), {
|
|
60
|
+
colors,
|
|
61
|
+
baseFont,
|
|
62
|
+
baseFontSize
|
|
63
|
+
}))
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
{}
|
|
67
|
+
);
|
|
68
|
+
return { components };
|
|
69
|
+
};
|
|
70
|
+
const theme = (tokens) => {
|
|
71
|
+
const baseFont = tokens.fonts.rubik;
|
|
72
|
+
const baseFontSize = tokens.fontSizes.medium;
|
|
73
|
+
const colors = __spreadProps(__spreadValues({}, tokens.colors), {
|
|
74
|
+
primary: tokens.colors.vibin,
|
|
75
|
+
secondary: tokens.colors.stamina,
|
|
76
|
+
feedback: {
|
|
77
|
+
success: [tokens.colors.success, tokens.colors.hope],
|
|
78
|
+
informative: [tokens.colors.neutral, tokens.colors.relax],
|
|
79
|
+
attention: [tokens.colors.attention, tokens.colors.verve],
|
|
80
|
+
neutral: [tokens.colors.light, tokens.colors.medium]
|
|
81
|
+
},
|
|
82
|
+
text: {
|
|
83
|
+
primary: tokens.colors.stamina,
|
|
84
|
+
secondary: tokens.colors.deep,
|
|
85
|
+
disabled: tokens.colors.light
|
|
86
|
+
},
|
|
87
|
+
elements: {
|
|
88
|
+
selectionAndIcons: tokens.colors.medium,
|
|
89
|
+
lineAndBorders: tokens.colors.light,
|
|
90
|
+
backgroundAndDisabled: tokens.colors.clear
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
[colors.feedback.success.light, colors.feedback.success.dark] = colors.feedback.success;
|
|
94
|
+
[colors.feedback.informative.light, colors.feedback.informative.dark] = colors.feedback.informative;
|
|
95
|
+
[colors.feedback.attention.light, colors.feedback.attention.dark] = colors.feedback.attention;
|
|
96
|
+
[colors.feedback.neutral.light, colors.feedback.neutral.dark] = colors.feedback.neutral;
|
|
97
|
+
return __spreadProps(__spreadValues({}, tokens), {
|
|
98
|
+
colors,
|
|
99
|
+
baseFont,
|
|
100
|
+
baseFontSize
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
const composeTheme = (tokens, customTheming = {}) => {
|
|
104
|
+
const baseTheme = theme(tokens);
|
|
105
|
+
const customTheme = (0, import_yoga_common.merge)(baseTheme, customTheming);
|
|
106
|
+
const componentTheming = getComponentThemes(customTheme);
|
|
107
|
+
return (0, import_yoga_common.merge)(customTheme, componentTheming);
|
|
108
|
+
};
|
|
109
|
+
var theme_default = composeTheme;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var hooks_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(hooks_exports);
|
|
18
|
+
__reExport(hooks_exports, require("./usePortal"), module.exports);
|
|
19
|
+
__reExport(hooks_exports, require("./useKeyPress"), module.exports);
|
|
20
|
+
__reExport(hooks_exports, require("./useCombinedRefs"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("./usePortal"),
|
|
24
|
+
...require("./useKeyPress"),
|
|
25
|
+
...require("./useCombinedRefs")
|
|
26
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var useCombinedRefs_exports = {};
|
|
20
|
+
__export(useCombinedRefs_exports, {
|
|
21
|
+
useCombinedRefs: () => useCombinedRefs
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(useCombinedRefs_exports);
|
|
24
|
+
var import_react = require("react");
|
|
25
|
+
const useCombinedRefs = (...refs) => {
|
|
26
|
+
const targetRef = (0, import_react.useRef)(null);
|
|
27
|
+
(0, import_react.useEffect)(() => {
|
|
28
|
+
for (let i = 0; i < refs.length; i++) {
|
|
29
|
+
const ref = refs[i];
|
|
30
|
+
if (!ref)
|
|
31
|
+
return;
|
|
32
|
+
if (typeof ref === "function") {
|
|
33
|
+
ref(targetRef.current);
|
|
34
|
+
} else {
|
|
35
|
+
ref.current = targetRef.current;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}, [refs]);
|
|
39
|
+
return targetRef;
|
|
40
|
+
};
|
|
41
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
+
0 && (module.exports = {
|
|
43
|
+
useCombinedRefs
|
|
44
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var useKeyPress_exports = {};
|
|
20
|
+
__export(useKeyPress_exports, {
|
|
21
|
+
useKeyPress: () => useKeyPress
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(useKeyPress_exports);
|
|
24
|
+
var import_react = require("react");
|
|
25
|
+
const useKeyPress = (targetKey) => {
|
|
26
|
+
const [keyPressed, setKeyPressed] = (0, import_react.useState)(false);
|
|
27
|
+
(0, import_react.useEffect)(() => {
|
|
28
|
+
function downHandler({ key }) {
|
|
29
|
+
if (key === targetKey) {
|
|
30
|
+
setKeyPressed(true);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function upHandler({ key }) {
|
|
34
|
+
if (key === targetKey) {
|
|
35
|
+
setKeyPressed(false);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
window.addEventListener("keydown", downHandler);
|
|
39
|
+
window.addEventListener("keyup", upHandler);
|
|
40
|
+
return () => {
|
|
41
|
+
window.removeEventListener("keydown", downHandler);
|
|
42
|
+
window.removeEventListener("keyup", upHandler);
|
|
43
|
+
};
|
|
44
|
+
}, [targetKey]);
|
|
45
|
+
return keyPressed;
|
|
46
|
+
};
|
|
47
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
48
|
+
0 && (module.exports = {
|
|
49
|
+
useKeyPress
|
|
50
|
+
});
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var usePortal_exports = {};
|
|
20
|
+
__export(usePortal_exports, {
|
|
21
|
+
usePortal: () => usePortal
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(usePortal_exports);
|
|
24
|
+
var import_react = require("react");
|
|
25
|
+
const createRootElement = (id) => {
|
|
26
|
+
const rootContainer = document.createElement("div");
|
|
27
|
+
rootContainer.setAttribute("id", id);
|
|
28
|
+
return rootContainer;
|
|
29
|
+
};
|
|
30
|
+
const addRootElement = (rootElement) => {
|
|
31
|
+
document.body.insertBefore(
|
|
32
|
+
rootElement,
|
|
33
|
+
document.body.lastElementChild.nextElementSibling
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
const usePortal = (id) => {
|
|
37
|
+
const rootElementRef = (0, import_react.useRef)(null);
|
|
38
|
+
(0, import_react.useEffect)(() => {
|
|
39
|
+
const existingParent = document.getElementById(id);
|
|
40
|
+
const parentElem = existingParent || createRootElement(id);
|
|
41
|
+
if (!existingParent) {
|
|
42
|
+
addRootElement(parentElem);
|
|
43
|
+
}
|
|
44
|
+
parentElem.appendChild(rootElementRef.current);
|
|
45
|
+
return function removeElement() {
|
|
46
|
+
rootElementRef.current.remove();
|
|
47
|
+
if (!parentElem.childElementCount) {
|
|
48
|
+
parentElem.remove();
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}, [id]);
|
|
52
|
+
const getRootElemement = () => {
|
|
53
|
+
if (!rootElementRef.current) {
|
|
54
|
+
rootElementRef.current = document.createElement("div");
|
|
55
|
+
}
|
|
56
|
+
return rootElementRef.current;
|
|
57
|
+
};
|
|
58
|
+
return getRootElemement();
|
|
59
|
+
};
|
|
60
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
61
|
+
0 && (module.exports = {
|
|
62
|
+
usePortal
|
|
63
|
+
});
|