@pareto-engineering/design-system 2.0.0-alpha.5 → 2.0.0-alpha.52
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/.env.scripts.example +4 -0
- package/.eslintrc.js +25 -1
- package/babel.config.js +1 -0
- package/dist/cjs/a/BackgroundGradient/BackgroundGradient.js +77 -0
- package/dist/cjs/a/BackgroundGradient/index.js +15 -0
- package/dist/cjs/a/BackgroundGradient/styles.scss +16 -0
- package/dist/cjs/a/ContentTree/ContentTree.js +83 -0
- package/dist/cjs/a/ContentTree/common/Tree/Tree.js +116 -0
- package/dist/cjs/a/ContentTree/common/Tree/index.js +15 -0
- 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/a/ContentTree/index.js +15 -0
- 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/a/OvalIllustration/OvalIllustration.js +133 -0
- package/dist/cjs/a/OvalIllustration/index.js +15 -0
- package/dist/cjs/a/OvalIllustration/styles.scss +102 -0
- package/dist/cjs/a/Popover/Popover.js +134 -0
- package/dist/cjs/a/Popover/common/Divider/Divider.js +67 -0
- package/dist/cjs/a/Popover/common/Divider/index.js +15 -0
- package/dist/cjs/a/Popover/common/Item/Item.js +67 -0
- package/dist/cjs/a/Popover/common/Item/index.js +15 -0
- package/dist/cjs/a/Popover/common/index.js +21 -0
- package/dist/cjs/a/Popover/index.js +15 -0
- package/dist/cjs/a/Popover/styles.scss +33 -0
- package/dist/cjs/a/Shapes/Shapes.js +39 -9
- package/dist/cjs/a/Shapes/styles.scss +79 -23
- package/dist/cjs/a/SnapScroller/SnapScroller.js +77 -0
- package/dist/cjs/a/SnapScroller/index.js +15 -0
- 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 +35 -7
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +16 -9
- package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +4 -3
- package/dist/cjs/c/ContentSlides/styles.scss +10 -4
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +111 -0
- 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/FormInput/FormInput.js +20 -3
- package/dist/cjs/f/FormInput/styles.scss +11 -0
- 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/QueryCombobox/QueryCombobox.js +236 -0
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +205 -0
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/index.js +15 -0
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +103 -0
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/index.js +15 -0
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +304 -0
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/index.js +15 -0
- package/dist/cjs/f/fields/QueryCombobox/common/index.js +29 -0
- package/dist/cjs/f/fields/QueryCombobox/index.js +15 -0
- package/dist/cjs/f/fields/QueryCombobox/styles.scss +90 -0
- package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +201 -0
- package/dist/cjs/f/fields/QuerySelect/index.js +15 -0
- package/dist/cjs/f/fields/QuerySelect/styles.scss +21 -0
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +39 -6
- package/dist/cjs/f/fields/RatingsInput/styles.scss +29 -20
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +50 -13
- package/dist/cjs/f/fields/SelectInput/styles.scss +33 -13
- package/dist/cjs/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +1 -1
- package/dist/cjs/f/fields/TextInput/TextInput.js +35 -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 +15 -23
- package/dist/cjs/form-reset.scss +1 -1
- package/dist/cjs/index.js +26 -0
- package/dist/cjs/test/QueryLoader/QueryLoader.js +41 -0
- package/dist/cjs/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +71 -0
- package/dist/cjs/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +49 -0
- package/dist/cjs/test/QueryLoader/common/PreloadedTestData/index.js +15 -0
- package/dist/cjs/test/QueryLoader/common/index.js +13 -0
- package/dist/cjs/test/QueryLoader/index.js +15 -0
- package/dist/cjs/test/QueryLoader/styles.scss +9 -0
- package/dist/cjs/test/index.js +13 -0
- package/dist/cjs/utils/hooks/index.js +23 -0
- package/dist/cjs/utils/hooks/useDynamicPosition.js +107 -0
- package/dist/cjs/utils/hooks/useWindowSize.js +39 -0
- package/dist/cjs/utils/index.js +19 -0
- package/dist/es/a/BackgroundGradient/BackgroundGradient.js +55 -0
- 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/a/ContentTree/common/Tree/index.js +2 -0
- 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/Popover/Popover.js +118 -0
- package/dist/es/a/Popover/common/Divider/Divider.js +47 -0
- package/dist/es/a/Popover/common/Divider/index.js +2 -0
- package/dist/es/a/Popover/common/Item/Item.js +47 -0
- package/dist/es/a/Popover/common/Item/index.js +2 -0
- package/dist/es/a/Popover/common/index.js +2 -0
- package/dist/es/a/Popover/index.js +2 -0
- package/dist/es/a/Popover/styles.scss +33 -0
- package/dist/es/a/Shapes/Shapes.js +39 -9
- package/dist/es/a/Shapes/styles.scss +79 -23
- package/dist/es/a/SnapScroller/SnapScroller.js +61 -0
- 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 +34 -6
- package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +16 -9
- 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 +95 -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/FormInput/FormInput.js +20 -3
- package/dist/es/f/FormInput/styles.scss +11 -0
- 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/QueryCombobox/QueryCombobox.js +213 -0
- package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +185 -0
- package/dist/es/f/fields/QueryCombobox/common/Combobox/index.js +2 -0
- package/dist/es/f/fields/QueryCombobox/common/Menu/Menu.js +77 -0
- package/dist/es/f/fields/QueryCombobox/common/Menu/index.js +2 -0
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +276 -0
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/index.js +2 -0
- package/dist/es/f/fields/QueryCombobox/common/index.js +3 -0
- package/dist/es/f/fields/QueryCombobox/index.js +2 -0
- package/dist/es/f/fields/QueryCombobox/styles.scss +90 -0
- package/dist/es/f/fields/QuerySelect/QuerySelect.js +179 -0
- package/dist/es/f/fields/QuerySelect/index.js +2 -0
- package/dist/es/f/fields/QuerySelect/styles.scss +21 -0
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +38 -6
- package/dist/es/f/fields/RatingsInput/styles.scss +29 -20
- package/dist/es/f/fields/SelectInput/SelectInput.js +49 -13
- package/dist/es/f/fields/SelectInput/styles.scss +33 -13
- package/dist/es/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +1 -1
- package/dist/es/f/fields/TextInput/TextInput.js +35 -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 +3 -4
- package/dist/es/form-reset.scss +1 -1
- package/dist/es/index.js +3 -1
- package/dist/es/test/QueryLoader/QueryLoader.js +29 -0
- package/dist/es/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +71 -0
- package/dist/es/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +31 -0
- package/dist/es/test/QueryLoader/common/PreloadedTestData/index.js +2 -0
- package/dist/es/test/QueryLoader/common/index.js +1 -0
- package/dist/es/test/QueryLoader/index.js +2 -0
- package/dist/es/test/QueryLoader/styles.scss +9 -0
- package/dist/es/test/index.js +1 -0
- package/dist/es/utils/hooks/index.js +2 -0
- package/dist/es/utils/hooks/useDynamicPosition.js +93 -0
- package/dist/es/utils/hooks/useWindowSize.js +27 -0
- package/dist/es/utils/index.js +1 -0
- package/package.json +18 -4
- package/relay.config.js +12 -0
- package/schema.graphql +4075 -0
- package/scripts/fetchSchema.js +74 -0
- package/src/__snapshots__/Storyshots.test.js.snap +7018 -3507
- package/src/local.scss +4 -2
- 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/Popover.stories.jsx +106 -0
- package/src/stories/a/Shapes.stories.jsx +74 -43
- 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 +27 -2
- package/src/stories/c/ContentSlides.stories.jsx +154 -2
- package/src/stories/c/SocialMediaShareButton.stories.jsx +25 -0
- package/src/stories/f/FormInput.stories.jsx +233 -0
- package/src/stories/f/QueryCombobox.stories.jsx +269 -0
- package/src/stories/f/QuerySelect.stories.jsx +134 -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/stories/f/__generated__/FormInputAllTaskStatusesQuery.graphql.js +122 -0
- package/src/stories/f/__generated__/FormInputAllTeamsQuery.graphql.js +139 -0
- package/src/stories/f/__generated__/QueryComboboxAllTeamsQuery.graphql.js +139 -0
- package/src/stories/f/__generated__/QuerySelectAllTaskStatusesQuery.graphql.js +122 -0
- package/src/stories/test/QueryLoader.stories.jsx +36 -0
- package/src/stories/utils/generateNodeId.js +12 -0
- package/src/stories/utils/lorem.js +15 -0
- package/src/stories/utils/relay/EnvironmentProvider.jsx +14 -0
- package/src/stories/utils/relay/environment.js +5 -0
- package/src/stories/utils/relay/index.js +4 -0
- package/src/stories/utils/relay/mockRelayOperation.js +14 -0
- package/src/stories/utils/relay/mockResolvers.js +299 -0
- package/src/stories/utils/testData.js +63 -0
- 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/src/ui/a/ContentTree/common/Tree/index.js +2 -0
- 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/Popover/Popover.jsx +157 -0
- package/src/ui/a/Popover/index.js +2 -0
- package/src/ui/a/Popover/styles.scss +33 -0
- package/src/ui/a/Shapes/Shapes.jsx +44 -7
- package/src/ui/a/Shapes/styles.scss +79 -23
- 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 +39 -5
- package/src/ui/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.jsx +12 -5
- 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 +121 -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/FormInput/FormInput.jsx +26 -1
- package/src/ui/f/FormInput/styles.scss +11 -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/QueryCombobox/QueryCombobox.jsx +227 -0
- package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +222 -0
- package/src/ui/f/fields/QueryCombobox/common/Combobox/index.js +2 -0
- package/src/ui/f/fields/QueryCombobox/common/Menu/Menu.jsx +103 -0
- package/src/ui/f/fields/QueryCombobox/common/Menu/index.js +2 -0
- package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +318 -0
- package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/index.js +2 -0
- package/src/ui/f/fields/QueryCombobox/common/index.js +3 -0
- package/src/ui/f/fields/QueryCombobox/index.js +2 -0
- package/src/ui/f/fields/QueryCombobox/styles.scss +90 -0
- package/src/ui/f/fields/QuerySelect/QuerySelect.jsx +200 -0
- package/src/ui/f/fields/QuerySelect/index.js +2 -0
- package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +54 -19
- package/src/ui/f/fields/RatingsInput/styles.scss +29 -20
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +59 -8
- package/src/ui/f/fields/SelectInput/styles.scss +33 -13
- package/src/ui/f/fields/TextInput/TextInput.jsx +31 -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 +2 -3
- package/src/ui/form-reset.scss +1 -1
- package/src/ui/index.js +2 -0
- package/src/ui/test/QueryLoader/QueryLoader.jsx +41 -0
- package/src/ui/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +68 -0
- package/src/ui/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.jsx +51 -0
- package/src/ui/test/QueryLoader/common/PreloadedTestData/index.js +2 -0
- package/src/ui/test/QueryLoader/common/index.js +1 -0
- package/src/ui/test/QueryLoader/index.js +2 -0
- package/src/ui/test/index.js +1 -0
- package/src/ui/utils/hooks/index.js +2 -0
- package/src/ui/utils/hooks/useDynamicPosition.js +104 -0
- package/src/ui/utils/hooks/useWindowSize.js +32 -0
- package/src/ui/utils/index.js +1 -0
- package/stylelint.config.js +13 -13
- 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
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
@use "@pareto-engineering/bem";
|
|
3
|
+
|
|
4
|
+
$default-border: var(--theme-border-style) var(--metadata);
|
|
5
|
+
|
|
6
|
+
.#{bem.$base}.popover {
|
|
7
|
+
position: absolute;
|
|
8
|
+
z-index: 1;
|
|
9
|
+
background-color: var(--x);
|
|
10
|
+
border: $default-border;
|
|
11
|
+
|
|
12
|
+
&:not(.open) {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.bottom {
|
|
17
|
+
top: 100%;
|
|
18
|
+
// bottom: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.left {
|
|
22
|
+
left: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.right {
|
|
26
|
+
right: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.top {
|
|
30
|
+
bottom: 100%;
|
|
31
|
+
top: auto;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -14,9 +14,11 @@ const Shapes = ({
|
|
|
14
14
|
id,
|
|
15
15
|
className: userClassName,
|
|
16
16
|
style,
|
|
17
|
-
pin,
|
|
18
17
|
shape,
|
|
19
|
-
height
|
|
18
|
+
height,
|
|
19
|
+
overflow,
|
|
20
|
+
verticalAlign,
|
|
21
|
+
horizontalAlign // ...otherProps
|
|
20
22
|
|
|
21
23
|
}) => {
|
|
22
24
|
useLayoutEffect(() => {
|
|
@@ -26,12 +28,16 @@ const Shapes = ({
|
|
|
26
28
|
id: id,
|
|
27
29
|
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
28
30
|
style: { ...style,
|
|
29
|
-
'--
|
|
30
|
-
'--
|
|
31
|
+
'--shape-height': height,
|
|
32
|
+
'--overflow': overflow,
|
|
33
|
+
'--vertical-align': verticalAlign,
|
|
34
|
+
'--horizontal-align': horizontalAlign
|
|
31
35
|
} // {...otherProps}
|
|
32
36
|
|
|
33
37
|
}, shape === 'triangle' && /*#__PURE__*/React.createElement("div", {
|
|
34
38
|
className: "triangle"
|
|
39
|
+
}), shape === 'inverted-triangle' && /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
className: "inverted-triangle"
|
|
35
41
|
}), shape === 'half-ellipses' && /*#__PURE__*/React.createElement("div", {
|
|
36
42
|
className: "half-ellipses"
|
|
37
43
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -78,6 +84,18 @@ const Shapes = ({
|
|
|
78
84
|
className: "circle-three"
|
|
79
85
|
}), /*#__PURE__*/React.createElement("div", {
|
|
80
86
|
className: "circle-four"
|
|
87
|
+
})), shape === 'rotated-ellipses' && /*#__PURE__*/React.createElement("div", {
|
|
88
|
+
className: "rotated-ellipses"
|
|
89
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
90
|
+
className: "ellipse-one"
|
|
91
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
92
|
+
className: "ellipse-two"
|
|
93
|
+
})), shape === 'intersecting-circles' && /*#__PURE__*/React.createElement("div", {
|
|
94
|
+
className: "intersecting-circles"
|
|
95
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
96
|
+
className: "left"
|
|
97
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
98
|
+
className: "right"
|
|
81
99
|
})));
|
|
82
100
|
};
|
|
83
101
|
|
|
@@ -103,17 +121,29 @@ Shapes.propTypes = {
|
|
|
103
121
|
height: PropTypes.string,
|
|
104
122
|
|
|
105
123
|
/**
|
|
106
|
-
*
|
|
124
|
+
* The vertical alignment of the shape.
|
|
125
|
+
*/
|
|
126
|
+
verticalAlign: PropTypes.oneOf(['flex-start', 'center', 'flex-end']),
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The horizontal alignment of the shape.
|
|
107
130
|
*/
|
|
108
|
-
|
|
131
|
+
horizontalAlign: PropTypes.oneOf(['flex-start', 'center', 'flex-end']),
|
|
109
132
|
|
|
110
133
|
/**
|
|
111
134
|
* The options of a shape to use
|
|
112
135
|
*/
|
|
113
|
-
shape: PropTypes.oneOf(['triangle', 'ellipse', 'half-ellipse', 'half-ellipses', 'spiral', 'diamonds', 'circle', 'half-circle', 'ellipses', 'rectangles'])
|
|
136
|
+
shape: PropTypes.oneOf(['triangle', 'ellipse', 'half-ellipse', 'half-ellipses', 'spiral', 'diamonds', 'circle', 'half-circle', 'ellipses', 'rectangles', 'rotated-ellipses', 'inverted-triangle', 'intersecting-circles']),
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* The overflow of the shape.
|
|
140
|
+
*/
|
|
141
|
+
overflow: PropTypes.oneOf(['hidden', 'visible'])
|
|
114
142
|
};
|
|
115
143
|
Shapes.defaultProps = {
|
|
116
|
-
|
|
117
|
-
|
|
144
|
+
verticalAlign: 'center',
|
|
145
|
+
horizontalAlign: 'center',
|
|
146
|
+
shape: 'triangle',
|
|
147
|
+
overflow: 'hidden'
|
|
118
148
|
};
|
|
119
149
|
export default Shapes;
|
|
@@ -15,43 +15,51 @@ $default-shapes-opacity:.8;
|
|
|
15
15
|
left: 0;
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
overflow: var(--overflow);
|
|
19
|
+
justify-content: var(--vertical-align);
|
|
20
|
+
align-items: var(--horizontal-align);
|
|
20
21
|
height: 100%;
|
|
21
22
|
width: 100%;
|
|
22
23
|
|
|
23
24
|
.triangle {
|
|
24
|
-
background-image: linear-gradient(
|
|
25
|
+
background-image: linear-gradient(var(--light-y), var(--dark-y));
|
|
25
26
|
clip-path: polygon(0 0, 50% 100%, 100% 0);
|
|
26
27
|
height: calc(var(--shape-height, #{$default-triangle-height}) * 0.86);
|
|
27
28
|
opacity: $default-shapes-opacity;
|
|
28
29
|
width: var(--shape-height, #{$default-triangle-height});
|
|
29
30
|
}
|
|
30
31
|
|
|
32
|
+
.inverted-triangle {
|
|
33
|
+
background-image: linear-gradient(var(--dark-y), var(--light-y));
|
|
34
|
+
clip-path: polygon(50% 0, 0 100%, 100% 100%);
|
|
35
|
+
height: calc(var(--shape-height, #{$default-triangle-height}) * 0.86);
|
|
36
|
+
opacity: $default-shapes-opacity;
|
|
37
|
+
width: var(--shape-height, #{$default-triangle-height});
|
|
38
|
+
}
|
|
39
|
+
|
|
31
40
|
.half-ellipses {
|
|
32
41
|
height: var(--shape-height, #{$default-ellipse-height});
|
|
33
42
|
opacity: $default-shapes-opacity;
|
|
34
43
|
width: calc(var(--shape-height, #{$default-ellipse-height}) * 2);
|
|
35
44
|
|
|
36
45
|
.up {
|
|
37
|
-
background-image:
|
|
38
|
-
clip-path: ellipse(
|
|
46
|
+
background-image: radial-gradient(ellipse at center bottom, var(--y) 5%, transparent 65%);
|
|
47
|
+
clip-path: ellipse(35% 100% at 50% 0%);
|
|
39
48
|
height: 50%;
|
|
40
49
|
}
|
|
41
50
|
|
|
42
51
|
.down {
|
|
43
|
-
background-image:
|
|
44
|
-
clip-path: ellipse(
|
|
52
|
+
background-image: radial-gradient(ellipse at center top, var(--y) 5%, transparent 65%);
|
|
53
|
+
clip-path: ellipse(35% 100% at 50% 100%);
|
|
45
54
|
height: 50%;
|
|
46
55
|
}
|
|
47
56
|
}
|
|
48
57
|
|
|
49
58
|
.ellipse {
|
|
50
|
-
background-image: linear-gradient(
|
|
51
|
-
clip-path: ellipse(50%
|
|
59
|
+
background-image: linear-gradient(var(--dark-y), var(--light-y));
|
|
60
|
+
clip-path: ellipse(50% 50% at 50% 50%);
|
|
52
61
|
height: var(--shape-height, #{$default-ellipse-height});
|
|
53
62
|
opacity: $default-shapes-opacity;
|
|
54
|
-
transform: rotate3d(0, 0, -1, 10deg);
|
|
55
63
|
width: calc(var(--shape-height, #{$default-ellipse-height}) * 2);
|
|
56
64
|
}
|
|
57
65
|
|
|
@@ -109,15 +117,15 @@ $default-shapes-opacity:.8;
|
|
|
109
117
|
}
|
|
110
118
|
|
|
111
119
|
.half-ellipse {
|
|
112
|
-
background-image:
|
|
113
|
-
clip-path: ellipse(
|
|
120
|
+
background-image: radial-gradient(ellipse at center bottom, var(--y) 10%, var(--light-y) 65%);
|
|
121
|
+
clip-path: ellipse(60% 100% at 50% 0%);
|
|
114
122
|
height: var(--shape-height, #{$default-ellipse-height});
|
|
115
123
|
opacity: $default-shapes-opacity;
|
|
116
124
|
width: calc(var(--shape-height, #{$default-ellipse-height}) * 2);
|
|
117
125
|
}
|
|
118
126
|
|
|
119
127
|
.circle {
|
|
120
|
-
background-image: linear-gradient(var(--
|
|
128
|
+
background-image: linear-gradient(var(--dark-y), var(--light-y));
|
|
121
129
|
clip-path: circle(50% at 50% 50%);
|
|
122
130
|
height: var(--shape-height, #{$default-circle-height});
|
|
123
131
|
opacity: $default-shapes-opacity;
|
|
@@ -139,7 +147,7 @@ $default-shapes-opacity:.8;
|
|
|
139
147
|
width: var(--shape-height, #{$default-ellipse-height});
|
|
140
148
|
|
|
141
149
|
.first {
|
|
142
|
-
background-image: linear-gradient(to top, var(--dark-y), var(--y), var(--light-y) 50%,
|
|
150
|
+
background-image: linear-gradient(to top, var(--dark-y), var(--y), var(--light-y) 50%, var(--background1));
|
|
143
151
|
clip-path: ellipse(50% 20% at 50% 60%);
|
|
144
152
|
height: 100%;
|
|
145
153
|
position: absolute;
|
|
@@ -148,7 +156,7 @@ $default-shapes-opacity:.8;
|
|
|
148
156
|
}
|
|
149
157
|
|
|
150
158
|
.second {
|
|
151
|
-
background-image: linear-gradient(to bottom,var(--dark-y), var(--y), var(--light-y) 45%,
|
|
159
|
+
background-image: linear-gradient(to bottom,var(--dark-y), var(--y), var(--light-y) 45%, var(--background1));
|
|
152
160
|
clip-path: ellipse(50% 20% at 50% 40%);
|
|
153
161
|
height: 100%;
|
|
154
162
|
position: absolute;
|
|
@@ -167,33 +175,81 @@ $default-shapes-opacity:.8;
|
|
|
167
175
|
|
|
168
176
|
> * {
|
|
169
177
|
border-radius: 50%;
|
|
170
|
-
background: radial-gradient(ellipse at center bottom
|
|
178
|
+
background: radial-gradient(ellipse at center bottom, var(--dark-y) 10%, var(--light-y) 60%);
|
|
171
179
|
position: absolute;
|
|
172
180
|
opacity: .5;
|
|
173
181
|
}
|
|
174
182
|
|
|
175
183
|
.circle-one {
|
|
176
184
|
transform: rotate(45deg);
|
|
177
|
-
height:
|
|
178
|
-
width:
|
|
185
|
+
height:calc(var(--shape-height, #{$default-ellipse-height})* 0.4);
|
|
186
|
+
width: calc(var(--shape-height, #{$default-ellipse-height})* 0.4);
|
|
179
187
|
}
|
|
180
188
|
|
|
181
189
|
.circle-two {
|
|
182
|
-
height:
|
|
183
|
-
width:
|
|
190
|
+
height: calc(var(--shape-height, #{$default-ellipse-height})* 0.6);
|
|
191
|
+
width: calc(var(--shape-height, #{$default-ellipse-height})* 0.6);
|
|
184
192
|
}
|
|
185
193
|
|
|
186
194
|
.circle-three {
|
|
187
195
|
transform: rotate(-45deg);
|
|
188
|
-
height:
|
|
189
|
-
width:
|
|
196
|
+
height: calc(var(--shape-height, #{$default-ellipse-height})* 0.8);
|
|
197
|
+
width: calc(var(--shape-height, #{$default-ellipse-height})* 0.8);
|
|
190
198
|
}
|
|
191
199
|
|
|
192
200
|
.circle-four {
|
|
193
201
|
transform: rotate(-90deg);
|
|
194
|
-
height:
|
|
202
|
+
height: calc(var(--shape-height, #{$default-ellipse-height})* 1);
|
|
203
|
+
width: calc(var(--shape-height, #{$default-ellipse-height})* 1);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
.rotated-ellipses {
|
|
207
|
+
height: var(--shape-height, #{$default-ellipse-height});
|
|
208
|
+
opacity: $default-shapes-opacity;
|
|
209
|
+
width: var(--shape-height, #{$default-ellipse-height});
|
|
210
|
+
display: flex;
|
|
211
|
+
|
|
212
|
+
> *{
|
|
195
213
|
width: 100%;
|
|
214
|
+
height: 100%;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.ellipse-one {
|
|
218
|
+
background-image: radial-gradient(ellipse at bottom left, var(--y) 30%, transparent 65%);
|
|
219
|
+
transform: rotate(-15deg);
|
|
220
|
+
clip-path: ellipse(50% 35% at 50% 50%);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.ellipse-two {
|
|
224
|
+
background-image: radial-gradient(ellipse at top right, var(--y) 30%, transparent 65%);
|
|
225
|
+
transform: rotate(-15deg);
|
|
226
|
+
clip-path: ellipse(50% 35% at 50% 50%);
|
|
196
227
|
}
|
|
197
228
|
}
|
|
198
229
|
|
|
230
|
+
.intersecting-circles {
|
|
231
|
+
height: var(--shape-height, #{$default-circle-height});
|
|
232
|
+
opacity: $default-shapes-opacity;
|
|
233
|
+
width: calc(var(--shape-height, #{$default-circle-height}) * 2);
|
|
234
|
+
display: grid;
|
|
235
|
+
grid-template-columns: repeat(7, 1fr);
|
|
236
|
+
position: relative;
|
|
237
|
+
|
|
238
|
+
> * {
|
|
239
|
+
border-radius: 50%;
|
|
240
|
+
height: 100%;
|
|
241
|
+
width: 100%;
|
|
242
|
+
position: absolute;
|
|
243
|
+
opacity: .8;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.left {
|
|
247
|
+
background-image: linear-gradient(to right ,var(--dark-y),var(--y), var(--light-y));
|
|
248
|
+
grid-column: 1 / 5;
|
|
249
|
+
}
|
|
250
|
+
.right {
|
|
251
|
+
background-image: linear-gradient(to left, var(--dark-y), var(--y), var(--light-y));
|
|
252
|
+
grid-column: 4 / 8;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
199
255
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useLayoutEffect } from 'react';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import styleNames from '@pareto-engineering/bem'; // Local Definitions
|
|
6
|
+
|
|
7
|
+
const baseClassName = styleNames.base;
|
|
8
|
+
const componentClassName = 'snap-scroller';
|
|
9
|
+
/**
|
|
10
|
+
* This is the component description.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
const SnapScroller = ({
|
|
14
|
+
id,
|
|
15
|
+
className: userClassName,
|
|
16
|
+
style,
|
|
17
|
+
children,
|
|
18
|
+
noScrollOnDesktop // ...otherProps
|
|
19
|
+
|
|
20
|
+
}) => {
|
|
21
|
+
useLayoutEffect(() => {
|
|
22
|
+
import("./styles.scss");
|
|
23
|
+
}, []);
|
|
24
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
id: id,
|
|
26
|
+
className: [baseClassName, componentClassName, userClassName, noScrollOnDesktop && 'desktop-no-scroll'].filter(e => e).join(' '),
|
|
27
|
+
style: style // {...otherProps}
|
|
28
|
+
|
|
29
|
+
}, children);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
SnapScroller.propTypes = {
|
|
33
|
+
/**
|
|
34
|
+
* The HTML id for this element
|
|
35
|
+
*/
|
|
36
|
+
id: PropTypes.string,
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* The HTML class names for this element
|
|
40
|
+
*/
|
|
41
|
+
className: PropTypes.string,
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The React-written, css properties for this element.
|
|
45
|
+
*/
|
|
46
|
+
style: PropTypes.objectOf(PropTypes.string),
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The children JSX
|
|
50
|
+
*/
|
|
51
|
+
children: PropTypes.node,
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Whether to snap scroll on desktop (false will enable a flexbox)
|
|
55
|
+
*/
|
|
56
|
+
noScrollOnDesktop: PropTypes.bool
|
|
57
|
+
};
|
|
58
|
+
SnapScroller.defaultProps = {
|
|
59
|
+
noScrollOnDesktop: false
|
|
60
|
+
};
|
|
61
|
+
export default SnapScroller;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
3
|
+
@use "@pareto-engineering/bem";
|
|
4
|
+
@use "@aztlan/stylebook/src/mixins";
|
|
5
|
+
@use "@aztlan/stylebook/src/globals" as *;
|
|
6
|
+
|
|
7
|
+
$default-spacing:var(--spacing, var(--u));
|
|
8
|
+
|
|
9
|
+
.#{bem.$base}.snap-scroller {
|
|
10
|
+
display: flex;
|
|
11
|
+
-ms-overflow-style: none; /* for Internet Explorer, Edge */
|
|
12
|
+
overflow-x: auto;
|
|
13
|
+
scroll-padding: calc(#{$default-spacing} *2);
|
|
14
|
+
scroll-snap-type: x mandatory;
|
|
15
|
+
scrollbar-width: none;
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
> * {
|
|
19
|
+
&:first-child {
|
|
20
|
+
margin-left: $default-spacing;
|
|
21
|
+
}
|
|
22
|
+
display: inline-block;
|
|
23
|
+
margin-right: $default-spacing;
|
|
24
|
+
scroll-snap-align: start;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@include mixins.media($from:$sm-md) {
|
|
29
|
+
&.desktop-no-scroll {
|
|
30
|
+
overflow: auto;
|
|
31
|
+
-ms-overflow-style: unset; /* for Internet Explorer, Edge */
|
|
32
|
+
scroll-snap-type: none;
|
|
33
|
+
scrollbar-width: unset;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
package/dist/es/a/index.js
CHANGED
|
@@ -18,4 +18,9 @@ export { Quote } from "./Quote";
|
|
|
18
18
|
export { ContentCard } from "./ContentCard";
|
|
19
19
|
export { DotInfo } from "./DotInfo";
|
|
20
20
|
export { Timestamp } from "./Timestamp";
|
|
21
|
-
export { Shapes } from "./Shapes";
|
|
21
|
+
export { Shapes } from "./Shapes";
|
|
22
|
+
export { OvalIllustration } from "./OvalIllustration";
|
|
23
|
+
export { SnapScroller } from "./SnapScroller";
|
|
24
|
+
export { BackgroundGradient } from "./BackgroundGradient";
|
|
25
|
+
export { ContentTree } from "./ContentTree";
|
|
26
|
+
export { Popover } from "./Popover";
|
|
@@ -23,6 +23,7 @@ const Button = ({
|
|
|
23
23
|
isCompact,
|
|
24
24
|
isGhost,
|
|
25
25
|
isSimple,
|
|
26
|
+
arrowDirection,
|
|
26
27
|
...otherProps
|
|
27
28
|
}) => {
|
|
28
29
|
useLayoutEffect(() => {
|
|
@@ -30,7 +31,7 @@ const Button = ({
|
|
|
30
31
|
}, []);
|
|
31
32
|
return /*#__PURE__*/React.createElement("button", _extends({
|
|
32
33
|
id: id,
|
|
33
|
-
className: [baseClassName, componentClassName, userClassName, `x-${color}`, isGhost && styleNames.modifierGhost, isCompact && styleNames.modifierCompact, isSimple && styleNames.modifierSimple].filter(e => e).join(' '),
|
|
34
|
+
className: [baseClassName, componentClassName, userClassName, `x-${color}`, isGhost && styleNames.modifierGhost, isCompact && styleNames.modifierCompact, isSimple && styleNames.modifierSimple, arrowDirection && `arrow-${arrowDirection}`].filter(e => e).join(' '),
|
|
34
35
|
style: style,
|
|
35
36
|
type: "button"
|
|
36
37
|
}, otherProps), isLoading ? /*#__PURE__*/React.createElement(LoadingCircle, {
|
|
@@ -85,7 +86,12 @@ Button.propTypes = {
|
|
|
85
86
|
/**
|
|
86
87
|
* Button loading state
|
|
87
88
|
*/
|
|
88
|
-
isLoading: PropTypes.bool
|
|
89
|
+
isLoading: PropTypes.bool,
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The direction of the arrow if the button has one
|
|
93
|
+
*/
|
|
94
|
+
arrowDirection: PropTypes.string
|
|
89
95
|
};
|
|
90
96
|
Button.defaultProps = {
|
|
91
97
|
color: 'main1'
|
|
@@ -6,28 +6,63 @@ $default-padding: 1em 1em .84em;
|
|
|
6
6
|
$compact-padding: .6em .6em .48em;
|
|
7
7
|
$default-color:primary;
|
|
8
8
|
$font-weight:bold;
|
|
9
|
+
$default-margin:.5em;
|
|
10
|
+
$default-animation-time: .3s;
|
|
9
11
|
|
|
10
12
|
.#{bem.$base}.button {
|
|
11
13
|
background: var(--x, var(--#{$default-color}));
|
|
12
14
|
border: transparent;
|
|
13
15
|
border-radius: var(--theme-border-radius);
|
|
14
16
|
color: var(--on-x, var(--on-#{$default-color}));
|
|
15
|
-
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
font-family: var(--theme-default-paragraph);
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
justify-content: space-between;
|
|
16
21
|
padding: $default-padding;
|
|
17
22
|
transition: all .25s;
|
|
18
23
|
|
|
24
|
+
&.arrow-right {
|
|
25
|
+
&::after {
|
|
26
|
+
content: "-->";
|
|
27
|
+
margin-left: $default-margin;
|
|
28
|
+
vertical-align: middle;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:hover {
|
|
32
|
+
&::after {
|
|
33
|
+
--final-position: 50%;
|
|
34
|
+
animation: animateArrow $default-animation-time forwards;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.arrow-left {
|
|
40
|
+
&::before {
|
|
41
|
+
content: "<--";
|
|
42
|
+
margin-right: $default-margin;
|
|
43
|
+
vertical-align: middle;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:hover {
|
|
47
|
+
&::before {
|
|
48
|
+
--final-position: -50%;
|
|
49
|
+
animation: animateArrow $default-animation-time forwards;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
19
54
|
&:not(:disabled) {
|
|
20
55
|
cursor: pointer;
|
|
21
56
|
|
|
22
57
|
&:hover {
|
|
23
58
|
background: var(--light-x, var(--light-#{$default-color}));
|
|
24
59
|
}
|
|
60
|
+
|
|
25
61
|
&:focus {
|
|
26
62
|
background: var(--dark-x, var(--dark-#{$default-color}));
|
|
27
63
|
}
|
|
28
64
|
}
|
|
29
65
|
|
|
30
|
-
|
|
31
66
|
&.#{bem.$modifier-compact} {
|
|
32
67
|
padding: $compact-padding;
|
|
33
68
|
}
|
|
@@ -39,7 +74,7 @@ $font-weight:bold;
|
|
|
39
74
|
|
|
40
75
|
&:hover,
|
|
41
76
|
&:focus,
|
|
42
|
-
&:disabled{
|
|
77
|
+
&:disabled {
|
|
43
78
|
background: transparent;
|
|
44
79
|
}
|
|
45
80
|
|
|
@@ -55,7 +90,7 @@ $font-weight:bold;
|
|
|
55
90
|
}
|
|
56
91
|
}
|
|
57
92
|
|
|
58
|
-
&:disabled{
|
|
93
|
+
&:disabled {
|
|
59
94
|
border: 1px solid var(--x, var(--#{$default-color}));
|
|
60
95
|
color: var(--x, var(--#{$default-color}));
|
|
61
96
|
}
|
|
@@ -65,6 +100,7 @@ $font-weight:bold;
|
|
|
65
100
|
background: transparent;
|
|
66
101
|
border: 1px solid transparent;
|
|
67
102
|
color: var(--x, var(--#{$default-color}));
|
|
103
|
+
padding: 0;
|
|
68
104
|
|
|
69
105
|
&:disabled,
|
|
70
106
|
&:hover,
|
|
@@ -73,13 +109,13 @@ $font-weight:bold;
|
|
|
73
109
|
}
|
|
74
110
|
|
|
75
111
|
&:not(:disabled) {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
112
|
+
&:hover {
|
|
113
|
+
color: var(--light-x, var(--light-#{$default-color}));
|
|
114
|
+
}
|
|
79
115
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
116
|
+
&:focus {
|
|
117
|
+
color: var(--dark-x, var(--dark-#{$default-color}));
|
|
118
|
+
}
|
|
83
119
|
}
|
|
84
120
|
|
|
85
121
|
&:disabled {
|
|
@@ -94,3 +130,12 @@ $font-weight:bold;
|
|
|
94
130
|
}
|
|
95
131
|
|
|
96
132
|
|
|
133
|
+
@keyframes animateArrow {
|
|
134
|
+
from {
|
|
135
|
+
transform: translateX(0);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
to {
|
|
139
|
+
transform: translateX(var(--final-position));
|
|
140
|
+
}
|
|
141
|
+
}
|