@pareto-engineering/design-system 2.0.0-alpha.4 → 2.0.0-alpha.40
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/dist/cjs/{c/SiteFooter/common/Section/Section.js → a/BackgroundGradient/BackgroundGradient.js} +20 -38
- package/dist/cjs/a/BackgroundGradient/index.js +15 -0
- package/dist/cjs/a/BackgroundGradient/styles.scss +16 -0
- package/dist/cjs/{c/SiteFooter/SiteFooter.js → a/ContentTree/ContentTree.js} +22 -12
- package/dist/cjs/a/ContentTree/common/Tree/Tree.js +116 -0
- package/dist/cjs/{c/BlogPostsList/common/Card → a/ContentTree/common/Tree}/index.js +3 -3
- package/dist/cjs/a/ContentTree/common/index.js +31 -0
- package/dist/cjs/a/ContentTree/common/useContentTree.js +82 -0
- package/dist/cjs/a/ContentTree/common/useFirstVisibleNode.js +65 -0
- package/dist/cjs/{c/SiteMission → a/ContentTree}/index.js +3 -3
- package/dist/cjs/a/ContentTree/styles.scss +33 -0
- package/dist/cjs/a/Conversation/Conversation.js +14 -8
- package/dist/cjs/a/Conversation/common/Message/Message.js +32 -6
- package/dist/cjs/a/Conversation/styles.scss +132 -33
- package/dist/cjs/{experimental/GradientBackground/GradientBackground.js → a/OvalIllustration/OvalIllustration.js} +61 -26
- package/dist/cjs/a/OvalIllustration/index.js +15 -0
- package/dist/cjs/a/OvalIllustration/styles.scss +102 -0
- package/dist/cjs/a/Shapes/Shapes.js +39 -9
- package/dist/cjs/a/Shapes/styles.scss +78 -22
- package/dist/cjs/{c/BlogPostsList/BlogPostsList.js → a/SnapScroller/SnapScroller.js} +15 -11
- package/dist/cjs/{c/SiteFooter/common/Section → a/SnapScroller}/index.js +3 -3
- package/dist/cjs/a/SnapScroller/styles.scss +38 -0
- package/dist/cjs/a/index.js +41 -1
- package/dist/cjs/b/Button/Button.js +10 -4
- package/dist/cjs/b/Button/styles.scss +55 -10
- package/dist/cjs/b/Logo/Logo.js +41 -41
- package/dist/cjs/b/Logo/styles.scss +0 -138
- package/dist/cjs/b/Page/common/Section/Section.js +56 -5
- package/dist/cjs/b/Page/styles.scss +8 -2
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +5 -5
- package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +4 -3
- package/dist/cjs/c/ContentSlides/styles.scss +10 -4
- package/dist/cjs/c/{SiteOnboardingStep/SiteOnboardingStep.js → SocialMediaShareButton/SocialMediaShareButton.js} +48 -41
- package/dist/cjs/c/SocialMediaShareButton/index.js +15 -0
- package/dist/cjs/c/SocialMediaShareButton/styles.scss +39 -0
- package/dist/cjs/c/index.js +9 -1
- package/dist/cjs/f/common/Debugger/Debugger.js +1 -1
- package/dist/cjs/f/common/Label/Label.js +1 -1
- package/dist/cjs/f/common/Label/styles.scss +1 -1
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +1 -1
- package/dist/cjs/f/fields/ChoicesInput/styles.scss +17 -2
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +30 -5
- package/dist/cjs/f/fields/RatingsInput/styles.scss +29 -20
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +36 -10
- package/dist/cjs/f/fields/SelectInput/styles.scss +13 -8
- package/dist/cjs/f/fields/TextInput/TextInput.js +28 -7
- package/dist/cjs/f/fields/TextInput/styles.scss +16 -7
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +15 -8
- package/dist/cjs/f/fields/TextareaInput/styles.scss +19 -6
- package/dist/cjs/f/fields/index.js +0 -24
- package/dist/cjs/form-reset.scss +1 -1
- package/dist/es/{c/SiteFooter/SiteFooter.js → a/BackgroundGradient/BackgroundGradient.js} +14 -15
- package/dist/es/a/BackgroundGradient/index.js +2 -0
- package/dist/es/a/BackgroundGradient/styles.scss +16 -0
- package/dist/es/a/ContentTree/ContentTree.js +67 -0
- package/dist/es/a/ContentTree/common/Tree/Tree.js +98 -0
- package/dist/es/{c/BlogPostsList/common/Card → a/ContentTree/common/Tree}/index.js +1 -1
- package/dist/es/a/ContentTree/common/index.js +3 -0
- package/dist/es/a/ContentTree/common/useContentTree.js +74 -0
- package/dist/es/a/ContentTree/common/useFirstVisibleNode.js +54 -0
- package/dist/es/a/ContentTree/index.js +2 -0
- package/dist/es/a/ContentTree/styles.scss +33 -0
- package/dist/es/a/Conversation/Conversation.js +14 -8
- package/dist/es/a/Conversation/common/Message/Message.js +32 -6
- package/dist/es/a/Conversation/styles.scss +132 -33
- package/dist/es/a/OvalIllustration/OvalIllustration.js +111 -0
- package/dist/es/a/OvalIllustration/index.js +2 -0
- package/dist/es/a/OvalIllustration/styles.scss +102 -0
- package/dist/es/a/Shapes/Shapes.js +39 -9
- package/dist/es/a/Shapes/styles.scss +78 -22
- package/dist/es/{c/BlogPostsList/BlogPostsList.js → a/SnapScroller/SnapScroller.js} +16 -11
- package/dist/es/a/SnapScroller/index.js +2 -0
- package/dist/es/a/SnapScroller/styles.scss +38 -0
- package/dist/es/a/index.js +6 -1
- package/dist/es/b/Button/Button.js +8 -2
- package/dist/es/b/Button/styles.scss +55 -10
- package/dist/es/b/Logo/Logo.js +41 -41
- package/dist/es/b/Logo/styles.scss +0 -138
- package/dist/es/b/Page/common/Section/Section.js +55 -4
- package/dist/es/b/Page/styles.scss +8 -2
- package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +5 -5
- package/dist/es/c/ContentSlides/common/Navigator/Navigator.js +4 -3
- package/dist/es/c/ContentSlides/styles.scss +10 -4
- package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +89 -0
- package/dist/es/c/SocialMediaShareButton/index.js +2 -0
- package/dist/es/c/SocialMediaShareButton/styles.scss +39 -0
- package/dist/es/c/index.js +2 -1
- package/dist/es/f/common/Debugger/Debugger.js +1 -1
- package/dist/es/f/common/Label/Label.js +1 -1
- package/dist/es/f/common/Label/styles.scss +1 -1
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +1 -1
- package/dist/es/f/fields/ChoicesInput/styles.scss +17 -2
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +29 -5
- package/dist/es/f/fields/RatingsInput/styles.scss +29 -20
- package/dist/es/f/fields/SelectInput/SelectInput.js +36 -10
- package/dist/es/f/fields/SelectInput/styles.scss +13 -8
- package/dist/es/f/fields/TextInput/TextInput.js +28 -7
- package/dist/es/f/fields/TextInput/styles.scss +16 -7
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +15 -8
- package/dist/es/f/fields/TextareaInput/styles.scss +19 -6
- package/dist/es/f/fields/index.js +0 -3
- package/dist/es/form-reset.scss +1 -1
- package/package.json +4 -3
- package/src/__snapshots__/Storyshots.test.js.snap +4366 -1757
- package/src/local.scss +2 -0
- package/src/stories/StyleGuide/Sprites.stories.mdx +25 -0
- package/src/stories/StyleGuide/helpers.js +16 -0
- package/src/stories/a/BackgroundGradient.stories.jsx +38 -0
- package/src/stories/a/ContentTree.stories.jsx +662 -0
- package/src/stories/a/Conversation.stories.jsx +78 -1
- package/src/stories/a/OvalIllustration.stories.jsx +59 -0
- package/src/stories/a/Shapes.stories.jsx +143 -0
- package/src/stories/a/SnapScroller.stories.jsx +98 -0
- package/src/stories/b/Button.stories.jsx +27 -4
- package/src/stories/b/Logo.stories.jsx +17 -9
- package/src/stories/b/Page.stories.jsx +51 -1
- package/src/stories/c/ContentSlides.stories.jsx +154 -2
- package/src/stories/c/SocialMediaShareButton.stories.jsx +25 -0
- package/src/stories/f/RatingsInput.stories.jsx +3 -2
- package/src/stories/f/SelectInput.stories.jsx +36 -5
- package/src/stories/f/TextInput.stories.jsx +15 -4
- package/src/stories/f/TextareaInput.stories.jsx +42 -6
- package/src/ui/a/BackgroundGradient/BackgroundGradient.jsx +76 -0
- package/src/ui/a/BackgroundGradient/index.js +2 -0
- package/src/ui/a/BackgroundGradient/styles.scss +16 -0
- package/src/ui/a/ContentTree/ContentTree.jsx +88 -0
- package/src/ui/a/ContentTree/common/Tree/Tree.jsx +138 -0
- package/{dist/es/c/SiteFooter/common/Section → src/ui/a/ContentTree/common/Tree}/index.js +1 -1
- package/src/ui/a/ContentTree/common/index.js +3 -0
- package/src/ui/a/ContentTree/common/useContentTree.js +83 -0
- package/src/ui/a/ContentTree/common/useFirstVisibleNode.js +59 -0
- package/src/ui/a/ContentTree/index.js +2 -0
- package/src/ui/a/ContentTree/styles.scss +33 -0
- package/src/ui/a/Conversation/Conversation.jsx +15 -7
- package/src/ui/a/Conversation/common/Message/Message.jsx +38 -6
- package/src/ui/a/Conversation/styles.scss +132 -33
- package/src/ui/a/OvalIllustration/OvalIllustration.jsx +134 -0
- package/src/ui/a/OvalIllustration/index.js +2 -0
- package/src/ui/a/OvalIllustration/styles.scss +102 -0
- package/src/ui/a/Shapes/Shapes.jsx +191 -0
- package/{dist/es/f/fields/TextArea → src/ui/a/Shapes}/index.js +1 -1
- package/src/ui/a/Shapes/styles.scss +255 -0
- package/src/ui/a/SnapScroller/SnapScroller.jsx +83 -0
- package/src/ui/a/SnapScroller/index.js +2 -0
- package/src/ui/a/SnapScroller/styles.scss +38 -0
- package/src/ui/a/index.js +5 -0
- package/src/ui/b/Button/Button.jsx +9 -1
- package/src/ui/b/Button/styles.scss +55 -10
- package/src/ui/b/Logo/Logo.jsx +41 -41
- package/src/ui/b/Logo/styles.scss +0 -138
- package/src/ui/b/Page/common/Section/Section.jsx +68 -2
- package/src/ui/b/Page/styles.scss +8 -2
- package/src/ui/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.jsx +4 -4
- package/src/ui/c/ContentSlides/common/Navigator/Navigator.jsx +3 -2
- package/src/ui/c/ContentSlides/styles.scss +10 -4
- package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +113 -0
- package/src/ui/c/SocialMediaShareButton/index.js +2 -0
- package/src/ui/c/SocialMediaShareButton/styles.scss +39 -0
- package/src/ui/c/index.js +1 -0
- package/src/ui/f/common/Debugger/Debugger.jsx +1 -1
- package/src/ui/f/common/Label/Label.jsx +1 -1
- package/src/ui/f/common/Label/styles.scss +1 -1
- package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +1 -1
- package/src/ui/f/fields/ChoicesInput/styles.scss +17 -2
- package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +44 -17
- package/src/ui/f/fields/RatingsInput/styles.scss +29 -20
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +43 -5
- package/src/ui/f/fields/SelectInput/styles.scss +13 -8
- package/src/ui/f/fields/TextInput/TextInput.jsx +24 -3
- package/src/ui/f/fields/TextInput/styles.scss +16 -7
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +24 -13
- package/src/ui/f/fields/TextareaInput/styles.scss +19 -6
- package/src/ui/f/fields/index.js +0 -3
- package/src/ui/form-reset.scss +1 -1
- package/stylelint.config.js +13 -13
- package/dist/cjs/a/GradientBackground/GradientBackground.js +0 -140
- package/dist/cjs/a/GradientBackground/index.js +0 -15
- package/dist/cjs/a/GradientBackground/styles.scss +0 -191
- package/dist/cjs/c/AcceptCookies/AcceptCookies.js +0 -134
- package/dist/cjs/c/AcceptCookies/index.js +0 -15
- package/dist/cjs/c/AcceptCookies/styles.scss +0 -49
- package/dist/cjs/c/BlogCategoryButton/BlogCategoryButton.js +0 -95
- package/dist/cjs/c/BlogCategoryButton/index.js +0 -15
- package/dist/cjs/c/BlogContext/BlogContextProvider.js +0 -63
- package/dist/cjs/c/BlogContext/Context.js +0 -16
- package/dist/cjs/c/BlogContext/ContextProvider.js +0 -63
- package/dist/cjs/c/BlogContext/index.js +0 -31
- package/dist/cjs/c/BlogContext/useBlog.js +0 -16
- package/dist/cjs/c/BlogPost/BlogPost.js +0 -147
- package/dist/cjs/c/BlogPost/index.js +0 -15
- package/dist/cjs/c/BlogPost/styles.scss +0 -33
- package/dist/cjs/c/BlogPostsList/common/Card/Card.js +0 -170
- package/dist/cjs/c/BlogPostsList/common/index.js +0 -13
- package/dist/cjs/c/BlogPostsList/index.js +0 -15
- package/dist/cjs/c/BlogPostsList/styles.scss +0 -72
- package/dist/cjs/c/SiteFooter/common/index.js +0 -13
- package/dist/cjs/c/SiteFooter/index.js +0 -15
- package/dist/cjs/c/SiteFooter/styles.scss +0 -34
- package/dist/cjs/c/SiteHeaderCTA/SiteHeaderCTA.js +0 -108
- package/dist/cjs/c/SiteHeaderCTA/index.js +0 -15
- package/dist/cjs/c/SiteHeaderCTA/styles.scss +0 -44
- package/dist/cjs/c/SiteMission/SiteMission.js +0 -113
- package/dist/cjs/c/SiteMission/styles.scss +0 -30
- package/dist/cjs/c/SiteNavigation/SiteNavigation.js +0 -130
- package/dist/cjs/c/SiteNavigation/index.js +0 -15
- package/dist/cjs/c/SiteNavigation/styles.scss +0 -118
- package/dist/cjs/c/SiteOnboardingStep/index.js +0 -15
- package/dist/cjs/c/SiteOnboardingStep/styles.scss +0 -51
- package/dist/cjs/c/SitePricing/SitePricing.js +0 -108
- package/dist/cjs/c/SitePricing/index.js +0 -15
- package/dist/cjs/c/SitePricing/styles.scss +0 -73
- package/dist/cjs/c/SiteServices/SiteServices.js +0 -211
- package/dist/cjs/c/SiteServices/index.js +0 -15
- package/dist/cjs/c/SiteServices/styles.scss +0 -138
- package/dist/cjs/c/TeamGallery/TeamGallery.js +0 -80
- package/dist/cjs/c/TeamGallery/common/PersonCard/PersonCard.js +0 -84
- package/dist/cjs/c/TeamGallery/common/PersonCard/index.js +0 -15
- package/dist/cjs/c/TeamGallery/common/index.js +0 -13
- package/dist/cjs/c/TeamGallery/index.js +0 -15
- package/dist/cjs/c/TeamGallery/styles.scss +0 -100
- package/dist/cjs/c/Testimonials/Testimonials.js +0 -119
- package/dist/cjs/c/Testimonials/index.js +0 -15
- package/dist/cjs/c/Testimonials/styles.scss +0 -112
- package/dist/cjs/experimental/GradientBackground/index.js +0 -15
- package/dist/cjs/experimental/GradientBackground/styles.scss +0 -64
- package/dist/cjs/experimental/index.js +0 -13
- package/dist/cjs/f/fields/CheckboxInput/CheckboxInput.js +0 -105
- package/dist/cjs/f/fields/CheckboxInput/index.js +0 -15
- package/dist/cjs/f/fields/CheckboxInput/styles.scss +0 -28
- package/dist/cjs/f/fields/RadioInput/RadioInput.js +0 -110
- package/dist/cjs/f/fields/RadioInput/index.js +0 -15
- package/dist/cjs/f/fields/RadioInput/styles.scss +0 -26
- package/dist/cjs/f/fields/TaskRecommendation/TaskRecommendation.js +0 -129
- package/dist/cjs/f/fields/TaskRecommendation/index.js +0 -15
- package/dist/cjs/f/fields/TaskRecommendation/styles.scss +0 -37
- package/dist/cjs/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +0 -131
- package/dist/cjs/f/fields/TaskRecommendationInput/index.js +0 -15
- package/dist/cjs/f/fields/TaskRecommendationInput/styles.scss +0 -41
- package/dist/cjs/f/fields/TextArea/TextArea.js +0 -141
- package/dist/cjs/f/fields/TextArea/index.js +0 -15
- package/dist/cjs/f/fields/TextArea/styles.scss +0 -19
- package/dist/es/a/GradientBackground/GradientBackground.js +0 -118
- package/dist/es/a/GradientBackground/index.js +0 -2
- package/dist/es/a/GradientBackground/styles.scss +0 -191
- package/dist/es/c/AcceptCookies/AcceptCookies.js +0 -117
- package/dist/es/c/AcceptCookies/index.js +0 -2
- package/dist/es/c/AcceptCookies/styles.scss +0 -49
- package/dist/es/c/BlogCategoryButton/BlogCategoryButton.js +0 -68
- package/dist/es/c/BlogCategoryButton/index.js +0 -2
- package/dist/es/c/BlogContext/BlogContextProvider.js +0 -45
- package/dist/es/c/BlogContext/Context.js +0 -2
- package/dist/es/c/BlogContext/ContextProvider.js +0 -45
- package/dist/es/c/BlogContext/index.js +0 -4
- package/dist/es/c/BlogContext/useBlog.js +0 -3
- package/dist/es/c/BlogPost/BlogPost.js +0 -128
- package/dist/es/c/BlogPost/index.js +0 -2
- package/dist/es/c/BlogPost/styles.scss +0 -33
- package/dist/es/c/BlogPostsList/common/Card/Card.js +0 -143
- package/dist/es/c/BlogPostsList/common/index.js +0 -1
- package/dist/es/c/BlogPostsList/index.js +0 -2
- package/dist/es/c/BlogPostsList/styles.scss +0 -72
- package/dist/es/c/SiteFooter/common/Section/Section.js +0 -73
- package/dist/es/c/SiteFooter/common/index.js +0 -1
- package/dist/es/c/SiteFooter/index.js +0 -2
- package/dist/es/c/SiteFooter/styles.scss +0 -34
- package/dist/es/c/SiteHeaderCTA/SiteHeaderCTA.js +0 -92
- package/dist/es/c/SiteHeaderCTA/index.js +0 -2
- package/dist/es/c/SiteHeaderCTA/styles.scss +0 -44
- package/dist/es/c/SiteMission/SiteMission.js +0 -96
- package/dist/es/c/SiteMission/index.js +0 -2
- package/dist/es/c/SiteMission/styles.scss +0 -30
- package/dist/es/c/SiteNavigation/SiteNavigation.js +0 -111
- package/dist/es/c/SiteNavigation/index.js +0 -2
- package/dist/es/c/SiteNavigation/styles.scss +0 -118
- package/dist/es/c/SiteOnboardingStep/SiteOnboardingStep.js +0 -81
- package/dist/es/c/SiteOnboardingStep/index.js +0 -2
- package/dist/es/c/SiteOnboardingStep/styles.scss +0 -51
- package/dist/es/c/SitePricing/SitePricing.js +0 -91
- package/dist/es/c/SitePricing/index.js +0 -2
- package/dist/es/c/SitePricing/styles.scss +0 -73
- package/dist/es/c/SiteServices/SiteServices.js +0 -195
- package/dist/es/c/SiteServices/index.js +0 -2
- package/dist/es/c/SiteServices/styles.scss +0 -138
- package/dist/es/c/TeamGallery/TeamGallery.js +0 -64
- package/dist/es/c/TeamGallery/common/PersonCard/PersonCard.js +0 -64
- package/dist/es/c/TeamGallery/common/PersonCard/index.js +0 -2
- package/dist/es/c/TeamGallery/common/index.js +0 -1
- package/dist/es/c/TeamGallery/index.js +0 -2
- package/dist/es/c/TeamGallery/styles.scss +0 -100
- package/dist/es/c/Testimonials/Testimonials.js +0 -99
- package/dist/es/c/Testimonials/index.js +0 -2
- package/dist/es/c/Testimonials/styles.scss +0 -112
- package/dist/es/experimental/GradientBackground/GradientBackground.js +0 -76
- package/dist/es/experimental/GradientBackground/index.js +0 -2
- package/dist/es/experimental/GradientBackground/styles.scss +0 -64
- package/dist/es/experimental/index.js +0 -1
- package/dist/es/f/fields/CheckboxInput/CheckboxInput.js +0 -85
- package/dist/es/f/fields/CheckboxInput/index.js +0 -2
- package/dist/es/f/fields/CheckboxInput/styles.scss +0 -28
- package/dist/es/f/fields/RadioInput/RadioInput.js +0 -90
- package/dist/es/f/fields/RadioInput/index.js +0 -2
- package/dist/es/f/fields/RadioInput/styles.scss +0 -26
- package/dist/es/f/fields/TaskRecommendation/TaskRecommendation.js +0 -111
- package/dist/es/f/fields/TaskRecommendation/index.js +0 -2
- package/dist/es/f/fields/TaskRecommendation/styles.scss +0 -37
- package/dist/es/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +0 -111
- package/dist/es/f/fields/TaskRecommendationInput/index.js +0 -2
- package/dist/es/f/fields/TaskRecommendationInput/styles.scss +0 -41
- package/dist/es/f/fields/TextArea/TextArea.js +0 -124
- package/dist/es/f/fields/TextArea/styles.scss +0 -19
- package/src/stories/f/CheckboxInput.stories.jsx +0 -37
- package/src/stories/f/RadioInput.stories.jsx +0 -37
- package/src/stories/f/TaskRecommendationInput.stories.jsx +0 -38
- package/src/ui/f/fields/CheckboxInput/CheckboxInput.jsx +0 -107
- package/src/ui/f/fields/CheckboxInput/index.js +0 -2
- package/src/ui/f/fields/CheckboxInput/styles.scss +0 -28
- package/src/ui/f/fields/RadioInput/RadioInput.jsx +0 -112
- package/src/ui/f/fields/RadioInput/index.js +0 -2
- package/src/ui/f/fields/RadioInput/styles.scss +0 -26
- package/src/ui/f/fields/TaskRecommendationInput/TaskRecommendationInput.jsx +0 -130
- package/src/ui/f/fields/TaskRecommendationInput/index.js +0 -2
- package/src/ui/f/fields/TaskRecommendationInput/styles.scss +0 -41
|
@@ -27,10 +27,13 @@ const TextInput = ({
|
|
|
27
27
|
type,
|
|
28
28
|
name,
|
|
29
29
|
label,
|
|
30
|
+
color,
|
|
31
|
+
labelColor,
|
|
30
32
|
validate,
|
|
31
33
|
oneInputLabel,
|
|
32
34
|
description,
|
|
33
35
|
disabled,
|
|
36
|
+
placeholder,
|
|
34
37
|
// ...otherProps
|
|
35
38
|
}) => {
|
|
36
39
|
useLayoutEffect(() => {
|
|
@@ -46,6 +49,7 @@ const TextInput = ({
|
|
|
46
49
|
baseClassName,
|
|
47
50
|
componentClassName,
|
|
48
51
|
userClassName,
|
|
52
|
+
`y-${color}`,
|
|
49
53
|
]
|
|
50
54
|
.filter((e) => e)
|
|
51
55
|
.join(' ')}
|
|
@@ -53,19 +57,20 @@ const TextInput = ({
|
|
|
53
57
|
// {...otherProps}
|
|
54
58
|
>
|
|
55
59
|
<FormLabel
|
|
56
|
-
className={[
|
|
57
|
-
'input-label', oneInputLabel ? 'md-s2 s0 v1 mb-v' : 'v50 mb-v']
|
|
60
|
+
className={[oneInputLabel ? 'md-s2 s0 v1 mb-v' : 'v50 mb-v']
|
|
58
61
|
.filter((e) => e)
|
|
59
62
|
.join(' ')}
|
|
60
63
|
name={name}
|
|
64
|
+
color={labelColor}
|
|
61
65
|
>
|
|
62
66
|
{ label }
|
|
63
67
|
</FormLabel>
|
|
64
68
|
<input
|
|
65
69
|
id={name}
|
|
66
|
-
className=
|
|
70
|
+
className="input"
|
|
67
71
|
type={type}
|
|
68
72
|
disabled={disabled}
|
|
73
|
+
placeholder={placeholder}
|
|
69
74
|
{...field}
|
|
70
75
|
/>
|
|
71
76
|
{(description || (meta.touched && meta.error))
|
|
@@ -104,6 +109,11 @@ TextInput.propTypes = {
|
|
|
104
109
|
*/
|
|
105
110
|
label:PropTypes.string.isRequired,
|
|
106
111
|
|
|
112
|
+
/**
|
|
113
|
+
* The input label color
|
|
114
|
+
*/
|
|
115
|
+
labelColor:PropTypes.string,
|
|
116
|
+
|
|
107
117
|
/**
|
|
108
118
|
* The type of the input (html)
|
|
109
119
|
*/
|
|
@@ -136,10 +146,21 @@ TextInput.propTypes = {
|
|
|
136
146
|
* Whether the text input should be disabled
|
|
137
147
|
*/
|
|
138
148
|
disabled :PropTypes.bool,
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The placeholder text for the input
|
|
152
|
+
*/
|
|
153
|
+
placeholder:PropTypes.string,
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The text input color
|
|
157
|
+
*/
|
|
158
|
+
color:PropTypes.string,
|
|
139
159
|
}
|
|
140
160
|
|
|
141
161
|
TextInput.defaultProps = {
|
|
142
162
|
type :'text',
|
|
163
|
+
color :'background2',
|
|
143
164
|
disabled:false,
|
|
144
165
|
}
|
|
145
166
|
|
|
@@ -9,17 +9,26 @@ $default-padding: 0.75em 0.75em 0.55em;
|
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
|
|
12
|
-
.input-label {
|
|
13
|
-
color: var(--main1);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
12
|
.input {
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
border: var(--theme-border-style) var(--dark-y);
|
|
14
|
+
background: var(--light-y);
|
|
15
|
+
color: var(--on-y);
|
|
19
16
|
padding: $default-padding;
|
|
20
17
|
|
|
18
|
+
&::placeholder{
|
|
19
|
+
color: var(--metadata);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:not(:disabled):hover{
|
|
23
|
+
border: var(--theme-border-style) var(--light-background4);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:disabled {
|
|
27
|
+
background-color: var(--dark-y);
|
|
28
|
+
}
|
|
29
|
+
|
|
21
30
|
&:focus {
|
|
22
|
-
background: var(--
|
|
31
|
+
background: var(--light-background4);
|
|
23
32
|
}
|
|
24
33
|
}
|
|
25
34
|
}
|
|
@@ -34,6 +34,7 @@ const TextareaInput = ({
|
|
|
34
34
|
labelColor,
|
|
35
35
|
description,
|
|
36
36
|
disabled,
|
|
37
|
+
placeholder,
|
|
37
38
|
// ...otherProps
|
|
38
39
|
}) => {
|
|
39
40
|
useLayoutEffect(() => {
|
|
@@ -51,8 +52,7 @@ const TextareaInput = ({
|
|
|
51
52
|
|
|
52
53
|
componentClassName,
|
|
53
54
|
userClassName,
|
|
54
|
-
`
|
|
55
|
-
`y-${labelColor}`,
|
|
55
|
+
`y-${textAreaColor}`,
|
|
56
56
|
]
|
|
57
57
|
.filter((e) => e)
|
|
58
58
|
.join(' ')}
|
|
@@ -60,18 +60,19 @@ const TextareaInput = ({
|
|
|
60
60
|
// {...otherProps}
|
|
61
61
|
>
|
|
62
62
|
<FormLabel
|
|
63
|
-
className={[
|
|
64
|
-
'c-y', labelAsDescription ? 'md-s2 s0 v1 mb-v' : 'v50 mb-v']
|
|
63
|
+
className={[labelAsDescription ? 'md-s2 s0 v1 mb-v' : 'v50 mb-v']
|
|
65
64
|
.filter((e) => e)
|
|
66
65
|
.join(' ')}
|
|
67
66
|
name={name}
|
|
67
|
+
color={labelColor}
|
|
68
68
|
>
|
|
69
69
|
{ label }
|
|
70
70
|
</FormLabel>
|
|
71
71
|
<textarea
|
|
72
72
|
id={textAreaId}
|
|
73
|
-
className=
|
|
73
|
+
className="textarea"
|
|
74
74
|
{...field}
|
|
75
|
+
placeholder={placeholder}
|
|
75
76
|
rows={rows}
|
|
76
77
|
disabled={disabled}
|
|
77
78
|
>
|
|
@@ -123,36 +124,46 @@ TextareaInput.propTypes = {
|
|
|
123
124
|
* If the text area depends on it's label's text as the default description
|
|
124
125
|
*/
|
|
125
126
|
labelAsDescription:PropTypes.bool,
|
|
127
|
+
|
|
126
128
|
/**
|
|
127
129
|
* The textarea id
|
|
128
130
|
*/
|
|
129
|
-
textAreaId
|
|
131
|
+
textAreaId:PropTypes.string,
|
|
132
|
+
|
|
130
133
|
/**
|
|
131
134
|
* The number of rows int the text area
|
|
132
135
|
*/
|
|
133
|
-
rows
|
|
136
|
+
rows:PropTypes.number,
|
|
137
|
+
|
|
134
138
|
/**
|
|
135
139
|
* Text area base color
|
|
136
140
|
*/
|
|
137
|
-
textAreaColor
|
|
141
|
+
textAreaColor:PropTypes.string,
|
|
142
|
+
|
|
138
143
|
/**
|
|
139
144
|
* Label base color
|
|
140
145
|
*/
|
|
141
|
-
labelColor
|
|
146
|
+
labelColor:PropTypes.string,
|
|
147
|
+
|
|
142
148
|
/**
|
|
143
149
|
* Text area description
|
|
144
150
|
*/
|
|
145
|
-
description
|
|
151
|
+
description:PropTypes.string,
|
|
152
|
+
|
|
146
153
|
/**
|
|
147
154
|
* Whether the text area should be disabled
|
|
148
155
|
*/
|
|
149
|
-
disabled
|
|
156
|
+
disabled:PropTypes.bool,
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* The textarea placeholder text
|
|
160
|
+
*/
|
|
161
|
+
placeholder:PropTypes.string,
|
|
150
162
|
}
|
|
151
163
|
|
|
152
164
|
TextareaInput.defaultProps = {
|
|
153
165
|
rows :3,
|
|
154
|
-
textAreaColor:'
|
|
155
|
-
labelColor :'main1',
|
|
166
|
+
textAreaColor:'background2',
|
|
156
167
|
disabled :false,
|
|
157
168
|
}
|
|
158
169
|
|
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
@use "@pareto-engineering/bem";
|
|
3
3
|
|
|
4
|
+
$default-padding: .5em;
|
|
5
|
+
|
|
4
6
|
.#{bem.$base}.text-area-input{
|
|
5
7
|
display: flex;
|
|
6
8
|
flex-direction: column;
|
|
7
9
|
|
|
8
10
|
.textarea {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
border: var(--theme-border-style) var(--dark-y);
|
|
12
|
+
background: var(--light-y);
|
|
13
|
+
color: var(--on-y);
|
|
14
|
+
padding: $default-padding;
|
|
11
15
|
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
&::placeholder{
|
|
17
|
+
color: var(--metadata);
|
|
14
18
|
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
19
|
|
|
20
|
+
&:not(:disabled):hover{
|
|
21
|
+
border: var(--theme-border-style) var(--light-background4);
|
|
22
|
+
}
|
|
18
23
|
|
|
24
|
+
&:disabled {
|
|
25
|
+
background-color: var(--dark-y);
|
|
26
|
+
}
|
|
19
27
|
|
|
28
|
+
&:focus {
|
|
29
|
+
background: var(--light-background4);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
package/src/ui/f/fields/index.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
export { TextInput } from './TextInput'
|
|
2
2
|
export { SelectInput } from './SelectInput'
|
|
3
|
-
export { RadioInput } from './RadioInput'
|
|
4
|
-
export { CheckboxInput } from './CheckboxInput'
|
|
5
|
-
export { TaskRecommendationInput } from './TaskRecommendationInput'
|
|
6
3
|
export { ChoicesInput } from './ChoicesInput'
|
|
7
4
|
export { TextareaInput } from './TextareaInput'
|
|
8
5
|
export { RatingsInput } from './RatingsInput'
|
package/src/ui/form-reset.scss
CHANGED
package/stylelint.config.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
extends:
|
|
2
|
+
extends:[
|
|
3
3
|
'stylelint-config-palantir',
|
|
4
4
|
'stylelint-config-palantir/sass.js',
|
|
5
5
|
],
|
|
6
|
-
rules:
|
|
7
|
-
indentation:
|
|
8
|
-
'number-leading-zero':
|
|
9
|
-
'at-rule-no-unknown':
|
|
6
|
+
rules:{
|
|
7
|
+
indentation :2,
|
|
8
|
+
'number-leading-zero':'never',
|
|
9
|
+
'at-rule-no-unknown' :[true,
|
|
10
10
|
{
|
|
11
|
-
ignoreAtRules:
|
|
11
|
+
ignoreAtRules:[
|
|
12
12
|
// additional scss at-rules:
|
|
13
13
|
'content', 'each', 'else', 'error', 'extend', 'for', 'function', 'if', 'include', 'mixin', 'return', 'use', 'forward',
|
|
14
14
|
],
|
|
15
15
|
},
|
|
16
16
|
],
|
|
17
|
-
'at-rule-empty-line-before':
|
|
18
|
-
except:
|
|
19
|
-
ignoreAtRules:
|
|
17
|
+
'at-rule-empty-line-before':['always', {
|
|
18
|
+
except :['after-same-name', 'inside-block'],
|
|
19
|
+
ignoreAtRules:['include', 'mixin', 'function'],
|
|
20
20
|
}],
|
|
21
|
-
'order/order':
|
|
21
|
+
'order/order':[
|
|
22
22
|
[
|
|
23
23
|
'custom-properties',
|
|
24
24
|
'at-variables',
|
|
@@ -34,12 +34,12 @@ module.exports = {
|
|
|
34
34
|
],
|
|
35
35
|
{ unspecified: 'ignore' },
|
|
36
36
|
],
|
|
37
|
-
'property-no-unknown':
|
|
37
|
+
'property-no-unknown':[
|
|
38
38
|
true,
|
|
39
39
|
{
|
|
40
|
-
ignoreProperties:
|
|
40
|
+
ignoreProperties:['text-stroke', 'font-smooth'],
|
|
41
41
|
},
|
|
42
42
|
],
|
|
43
|
-
'max-nesting-depth':
|
|
43
|
+
'max-nesting-depth':5,
|
|
44
44
|
},
|
|
45
45
|
}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
|
-
var _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
-
|
|
18
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
19
|
-
|
|
20
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
-
|
|
22
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
-
|
|
24
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
-
|
|
26
|
-
// Local Definitions
|
|
27
|
-
var baseClassName = _bem.default.base;
|
|
28
|
-
var componentClassName = 'gradient-background';
|
|
29
|
-
/**
|
|
30
|
-
* This is the component description.
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
var GradientBackground = _ref => {
|
|
34
|
-
var {
|
|
35
|
-
id,
|
|
36
|
-
className: userClassName,
|
|
37
|
-
style,
|
|
38
|
-
pin,
|
|
39
|
-
shape,
|
|
40
|
-
height,
|
|
41
|
-
width // ...otherProps
|
|
42
|
-
|
|
43
|
-
} = _ref;
|
|
44
|
-
(0, React.useLayoutEffect)(() => {
|
|
45
|
-
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
46
|
-
}, []);
|
|
47
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
48
|
-
id: id,
|
|
49
|
-
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
50
|
-
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
51
|
-
'--pin': pin,
|
|
52
|
-
'--height': height,
|
|
53
|
-
'--width': width
|
|
54
|
-
}) // {...otherProps}
|
|
55
|
-
|
|
56
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
57
|
-
className: "shapes"
|
|
58
|
-
}, shape === 'triangle' && /*#__PURE__*/React.createElement("div", {
|
|
59
|
-
className: "triangle"
|
|
60
|
-
}), shape === 'half-ellipses' && /*#__PURE__*/React.createElement("div", {
|
|
61
|
-
className: "half-ellipses"
|
|
62
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
63
|
-
className: "up"
|
|
64
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
65
|
-
className: "down"
|
|
66
|
-
})), shape === 'ellipse' && /*#__PURE__*/React.createElement("div", {
|
|
67
|
-
className: "ellipse"
|
|
68
|
-
}), shape === 'diamonds' && /*#__PURE__*/React.createElement("div", {
|
|
69
|
-
className: "diamonds"
|
|
70
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
71
|
-
className: "top-right"
|
|
72
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
73
|
-
className: "bottom-left"
|
|
74
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
75
|
-
className: "bottom-right"
|
|
76
|
-
})), shape === 'rectangles' && /*#__PURE__*/React.createElement("div", {
|
|
77
|
-
className: "rectangles"
|
|
78
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
79
|
-
className: "top"
|
|
80
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
81
|
-
className: "center"
|
|
82
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
83
|
-
className: "bottom"
|
|
84
|
-
})), shape === 'half-ellipse' && /*#__PURE__*/React.createElement("div", {
|
|
85
|
-
className: "half-ellipse"
|
|
86
|
-
}), shape === 'circle' && /*#__PURE__*/React.createElement("div", {
|
|
87
|
-
className: "circle"
|
|
88
|
-
}), shape === 'half-circle' && /*#__PURE__*/React.createElement("div", {
|
|
89
|
-
className: "half-circle"
|
|
90
|
-
}), shape === 'ellipses' && /*#__PURE__*/React.createElement("div", {
|
|
91
|
-
className: "ellipses"
|
|
92
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
93
|
-
className: "first"
|
|
94
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
95
|
-
className: "second"
|
|
96
|
-
})), shape === 'spiral' && /*#__PURE__*/React.createElement("div", {
|
|
97
|
-
className: "spiral"
|
|
98
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
99
|
-
className: "quater-circle-one"
|
|
100
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
101
|
-
className: "quater-circle-two"
|
|
102
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
103
|
-
className: "quater-circle-three"
|
|
104
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
105
|
-
className: "quater-circle-four"
|
|
106
|
-
}))));
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
GradientBackground.propTypes = {
|
|
110
|
-
/**
|
|
111
|
-
* The HTML id for this element
|
|
112
|
-
*/
|
|
113
|
-
id: _propTypes.default.string,
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* The HTML class names for this element
|
|
117
|
-
*/
|
|
118
|
-
className: _propTypes.default.string,
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* The React-written, css properties for this element.
|
|
122
|
-
*/
|
|
123
|
-
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Where to pin the shapes
|
|
127
|
-
*/
|
|
128
|
-
pin: _propTypes.default.oneOf(['flex-start', 'center', 'flex-end']),
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* The options of a shape to use
|
|
132
|
-
*/
|
|
133
|
-
shape: _propTypes.default.oneOf(['triangle', 'ellipse', 'half-ellipse', 'half-ellipses', 'spiral', 'diamonds', 'circle', 'half-circle', 'ellipses', 'rectangles'])
|
|
134
|
-
};
|
|
135
|
-
GradientBackground.defaultProps = {
|
|
136
|
-
pin: 'center',
|
|
137
|
-
shape: 'triangle'
|
|
138
|
-
};
|
|
139
|
-
var _default = GradientBackground;
|
|
140
|
-
exports.default = _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "GradientBackground", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _GradientBackground.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
var _GradientBackground = _interopRequireDefault(require("./GradientBackground"));
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
-
|
|
3
|
-
@use "@pareto-engineering/bem";
|
|
4
|
-
|
|
5
|
-
$default-triangle-dimension:30em;
|
|
6
|
-
$default-ellipses-dimension:50em;
|
|
7
|
-
$default-ellipse-dimension:50em;
|
|
8
|
-
$default-shapes-opacity:.8;
|
|
9
|
-
$default-diamonds-dimension:40em;
|
|
10
|
-
$default-circle-dimension:40em;
|
|
11
|
-
|
|
12
|
-
.#{bem.$base}.gradient-background {
|
|
13
|
-
align-items: center;
|
|
14
|
-
background: var(--light-y);
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
height: 100%;
|
|
18
|
-
justify-content: var(--pin);
|
|
19
|
-
position: absolute;
|
|
20
|
-
width: 100%;
|
|
21
|
-
|
|
22
|
-
.shapes {
|
|
23
|
-
display: flex;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
|
|
26
|
-
.triangle {
|
|
27
|
-
background-image: linear-gradient(var(--light-y), var(--dark-y));
|
|
28
|
-
clip-path: polygon(0 0, 50% 100%, 100% 0);
|
|
29
|
-
height: $default-triangle-dimension * .86;
|
|
30
|
-
opacity: $default-shapes-opacity;
|
|
31
|
-
width: $default-triangle-dimension;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.half-ellipses {
|
|
35
|
-
|
|
36
|
-
height: $default-ellipses-dimension / 2;
|
|
37
|
-
width: $default-ellipses-dimension;
|
|
38
|
-
opacity: $default-shapes-opacity;
|
|
39
|
-
|
|
40
|
-
.up {
|
|
41
|
-
background-image: linear-gradient(var(--light-y), var(--y));
|
|
42
|
-
clip-path: ellipse(40% 100% at 50% 0%);
|
|
43
|
-
height:50%;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.down {
|
|
47
|
-
background-image: linear-gradient(to top, var(--light-y), var(--y));
|
|
48
|
-
clip-path: ellipse(40% 100% at 50% 100%);
|
|
49
|
-
height:50%;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.ellipse {
|
|
55
|
-
height: $default-ellipse-dimension / 1.5;
|
|
56
|
-
width: $default-ellipse-dimension;
|
|
57
|
-
background-image: linear-gradient( to top left, var(--dark-y), var(--light-y),var(--dark-y));
|
|
58
|
-
clip-path: ellipse(50% 25% at 50% 50%);
|
|
59
|
-
opacity: $default-shapes-opacity;
|
|
60
|
-
transform: rotate3d(0, 0, -1, 10deg);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.diamonds {
|
|
64
|
-
|
|
65
|
-
height: $default-diamonds-dimension;
|
|
66
|
-
width: $default-diamonds-dimension;
|
|
67
|
-
opacity: $default-shapes-opacity;
|
|
68
|
-
position: relative;
|
|
69
|
-
|
|
70
|
-
.top-right {
|
|
71
|
-
height: 100%;
|
|
72
|
-
width: 100%;
|
|
73
|
-
background-image: linear-gradient(to right, var(--dark-y), var(--y));
|
|
74
|
-
clip-path: polygon(100% 100%, 0 0, 100% 0);
|
|
75
|
-
position: absolute;
|
|
76
|
-
}
|
|
77
|
-
.bottom-left {
|
|
78
|
-
height: 100%;
|
|
79
|
-
width: 100%;
|
|
80
|
-
background-image: linear-gradient(to left, var(--dark-y), var(--y));
|
|
81
|
-
clip-path: polygon(0 100%, 0 0, 100% 100%);
|
|
82
|
-
position: absolute;
|
|
83
|
-
z-index: 1;
|
|
84
|
-
opacity: .95;
|
|
85
|
-
}
|
|
86
|
-
.bottom-right {
|
|
87
|
-
height: 100%;
|
|
88
|
-
width: 100%;
|
|
89
|
-
background-image: linear-gradient(to bottom, var(--dark-y), var(--y));
|
|
90
|
-
clip-path: polygon(100% 100%, 100% 0, 0 100%);
|
|
91
|
-
position: absolute;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.rectangles {
|
|
96
|
-
height: $default-diamonds-dimension;
|
|
97
|
-
width: $default-diamonds-dimension;
|
|
98
|
-
opacity: $default-shapes-opacity;
|
|
99
|
-
display: grid;
|
|
100
|
-
grid-template-rows: repeat(3, 1fr);
|
|
101
|
-
|
|
102
|
-
.top {
|
|
103
|
-
background-image: linear-gradient(to right, var(--dark-y), var(--y));
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.center {
|
|
107
|
-
background-image: linear-gradient(to left, var(--dark-y), var(--y));
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.bottom {
|
|
111
|
-
background-image: linear-gradient(to right, var(--dark-y), var(--y));
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.half-ellipse {
|
|
116
|
-
height: $default-ellipses-dimension / 2;
|
|
117
|
-
width: $default-ellipses-dimension;
|
|
118
|
-
opacity: $default-shapes-opacity;
|
|
119
|
-
background-image: linear-gradient(var(--light-y), var(--dark-y));
|
|
120
|
-
clip-path: ellipse(50% 50% at 50% 0);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.circle {
|
|
124
|
-
height: $default-circle-dimension;
|
|
125
|
-
width: $default-circle-dimension;
|
|
126
|
-
opacity: $default-shapes-opacity;
|
|
127
|
-
background-image: linear-gradient(var(--light-y), var(--dark-y));
|
|
128
|
-
clip-path: circle(50% at 50% 50%);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.ellipses {
|
|
132
|
-
height: var(--height);
|
|
133
|
-
width: var(--width);
|
|
134
|
-
opacity: $default-shapes-opacity;
|
|
135
|
-
position: relative;
|
|
136
|
-
|
|
137
|
-
.first {
|
|
138
|
-
height: 100%;
|
|
139
|
-
width: 100%;
|
|
140
|
-
position: absolute;
|
|
141
|
-
background-image: linear-gradient(to top, var(--dark-y), var(--light-y));
|
|
142
|
-
clip-path: ellipse(50% 20% at 50% 60%);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.second{
|
|
146
|
-
height: 100%;
|
|
147
|
-
width: 100%;
|
|
148
|
-
position: absolute;
|
|
149
|
-
background-image: linear-gradient(to bottom, var(--dark-y), var(--light-y));
|
|
150
|
-
clip-path: ellipse(50% 20% at 50% 40%);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
// .spiral {
|
|
156
|
-
// height: $default-ellipses-dimension;
|
|
157
|
-
// width: $default-ellipses-dimension;
|
|
158
|
-
// opacity: $default-shapes-opacity;
|
|
159
|
-
// position: relative;
|
|
160
|
-
|
|
161
|
-
// > *{
|
|
162
|
-
// position: absolute;
|
|
163
|
-
// height: 100%;
|
|
164
|
-
// width: 100%;
|
|
165
|
-
// background: radial-gradient(var(--dark-y) 30%, var(--light-y));
|
|
166
|
-
// transform-origin: 0 0;
|
|
167
|
-
// }
|
|
168
|
-
|
|
169
|
-
// .quater-circle-one{
|
|
170
|
-
// transform: rotate(90deg);
|
|
171
|
-
// clip-path: circle(200px at 0 0);
|
|
172
|
-
// z-index: 1;
|
|
173
|
-
// }
|
|
174
|
-
|
|
175
|
-
// .quater-circle-two {
|
|
176
|
-
// clip-path: circle(250px at 0 0);
|
|
177
|
-
// transform: rotate(45deg);
|
|
178
|
-
// }
|
|
179
|
-
|
|
180
|
-
// .quater-circle-three {
|
|
181
|
-
// clip-path: circle(300px at 0 0);
|
|
182
|
-
// }
|
|
183
|
-
|
|
184
|
-
// .quater-circle-four{
|
|
185
|
-
// clip-path: circle(350px at 0 0);
|
|
186
|
-
// transform: rotate(-45deg);
|
|
187
|
-
// }
|
|
188
|
-
// }
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
}
|