@pareto-engineering/design-system 4.0.0-alpha.60 → 4.0.0-alpha.62
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/a/AnimatedBlobs/AnimatedBlobs.js +5 -6
- package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +4 -4
- package/dist/cjs/a/BlurOverlay/BlurOverlay.js +5 -6
- package/dist/cjs/a/ContentTree/ContentTree.js +7 -6
- package/dist/cjs/a/Conversation/Conversation.js +7 -6
- package/dist/cjs/a/DotInfo/DotInfo.js +5 -6
- package/dist/cjs/a/Figure/Figure.js +5 -6
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +4 -7
- package/dist/cjs/a/IconList/IconList.js +4 -7
- package/dist/cjs/a/Label/Label.js +4 -7
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +5 -6
- package/dist/cjs/a/MetaCard/MetaCard.js +5 -6
- package/dist/cjs/a/People/People.js +7 -6
- package/dist/cjs/a/Popover/Popover.js +6 -4
- package/dist/cjs/a/ProgressBar/ProgressBar.js +5 -6
- package/dist/cjs/a/Quote/Quote.js +5 -6
- package/dist/cjs/a/Removable/Removable.js +5 -6
- package/dist/cjs/a/SVG/SVG.js +3 -5
- package/dist/cjs/a/SnapScroller/SnapScroller.js +4 -4
- package/dist/cjs/a/Spinner/Spinner.js +5 -6
- package/dist/cjs/a/TextSteps/TextSteps.js +6 -9
- package/dist/cjs/a/TextSteps/styles.scss +1 -1
- package/dist/cjs/a/Timestamp/Timestamp.js +5 -5
- package/dist/cjs/a/Tip/Tip.js +5 -6
- package/dist/cjs/a/ToggleSwitch/ToggleSwitch.js +5 -6
- package/dist/cjs/b/Button/Button.js +3 -7
- package/dist/cjs/b/Button/common/Group/Group.js +4 -7
- package/dist/cjs/b/Card/Card.js +5 -6
- package/dist/cjs/b/Card/common/Group/Group.js +4 -7
- package/dist/cjs/b/Logo/Logo.js +4 -4
- package/dist/cjs/b/Page/Page.js +3 -6
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +4 -7
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +4 -4
- package/dist/cjs/b/Title/Title.js +3 -9
- package/dist/cjs/c/ContentSlides/ContentSlides.js +4 -4
- package/dist/cjs/c/Modal/Modal.js +5 -6
- package/dist/cjs/c/Shortener/Shortener.js +6 -4
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +5 -6
- package/dist/cjs/f/FormInput/FormInput.js +3 -5
- package/dist/cjs/f/common/Debugger/Debugger.js +4 -4
- package/dist/cjs/f/common/Description/Description.js +5 -6
- package/dist/cjs/f/common/InputWrapper/InputWrapper.js +5 -6
- package/dist/cjs/f/common/Label/Label.js +5 -6
- package/dist/cjs/f/fields/Checkbox/Checkbox.js +4 -7
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +3 -5
- package/dist/cjs/f/fields/EditorInput/EditorInput.js +7 -4
- package/dist/cjs/f/fields/LinkInput/LinkInput.js +3 -5
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +6 -4
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +6 -4
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +3 -5
- package/dist/cjs/f/fields/TextInput/TextInput.js +3 -5
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +3 -5
- package/dist/es/a/AnimatedBlobs/AnimatedBlobs.js +18 -23
- package/dist/es/a/AnimatedGradient/AnimatedGradient.js +2 -4
- package/dist/es/a/BlurOverlay/BlurOverlay.js +6 -11
- package/dist/es/a/ContentTree/ContentTree.js +1 -4
- package/dist/es/a/Conversation/Conversation.js +11 -16
- package/dist/es/a/DotInfo/DotInfo.js +9 -14
- package/dist/es/a/Figure/Figure.js +10 -15
- package/dist/es/a/HamburgerButton/HamburgerButton.js +13 -18
- package/dist/es/a/IconList/IconList.js +10 -15
- package/dist/es/a/Label/Label.js +6 -11
- package/dist/es/a/LoadingCircle/LoadingCircle.js +32 -37
- package/dist/es/a/MetaCard/MetaCard.js +6 -11
- package/dist/es/a/People/People.js +11 -16
- package/dist/es/a/Popover/Popover.js +2 -4
- package/dist/es/a/ProgressBar/ProgressBar.js +12 -17
- package/dist/es/a/Quote/Quote.js +14 -19
- package/dist/es/a/Removable/Removable.js +13 -18
- package/dist/es/a/SVG/SVG.js +2 -4
- package/dist/es/a/SnapScroller/SnapScroller.js +2 -4
- package/dist/es/a/Spinner/Spinner.js +9 -14
- package/dist/es/a/TextSteps/TextSteps.js +16 -21
- package/dist/es/a/TextSteps/styles.scss +1 -1
- package/dist/es/a/Timestamp/Timestamp.js +3 -5
- package/dist/es/a/Tip/Tip.js +9 -14
- package/dist/es/a/ToggleSwitch/ToggleSwitch.js +18 -23
- package/dist/es/b/Button/Button.js +0 -4
- package/dist/es/b/Button/common/Group/Group.js +6 -11
- package/dist/es/b/Card/Card.js +11 -16
- package/dist/es/b/Card/common/Group/Group.js +1 -4
- package/dist/es/b/Logo/Logo.js +2 -4
- package/dist/es/b/Page/Page.js +2 -6
- package/dist/es/b/SocialMediaButton/SocialMediaButton.js +1 -4
- package/dist/es/b/ThemeSelector/ThemeSelector.js +2 -4
- package/dist/es/b/Title/Title.js +11 -20
- package/dist/es/c/ContentSlides/ContentSlides.js +1 -3
- package/dist/es/c/Modal/Modal.js +13 -18
- package/dist/es/c/Shortener/Shortener.js +2 -4
- package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +1 -4
- package/dist/es/f/FormInput/FormInput.js +2 -4
- package/dist/es/f/common/Debugger/Debugger.js +2 -4
- package/dist/es/f/common/Description/Description.js +1 -4
- package/dist/es/f/common/InputWrapper/InputWrapper.js +10 -15
- package/dist/es/f/common/Label/Label.js +12 -17
- package/dist/es/f/fields/Checkbox/Checkbox.js +1 -4
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +30 -34
- package/dist/es/f/fields/EditorInput/EditorInput.js +2 -4
- package/dist/es/f/fields/LinkInput/LinkInput.js +2 -4
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +2 -4
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +2 -4
- package/dist/es/f/fields/SelectInput/SelectInput.js +2 -4
- package/dist/es/f/fields/TextInput/TextInput.js +2 -4
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +2 -4
- package/package.json +3 -3
- package/src/ui/a/AnimatedBlobs/AnimatedBlobs.jsx +25 -31
- package/src/ui/a/AnimatedGradient/AnimatedGradient.jsx +2 -5
- package/src/ui/a/BlurOverlay/BlurOverlay.jsx +18 -24
- package/src/ui/a/ContentTree/ContentTree.jsx +2 -6
- package/src/ui/a/Conversation/Conversation.jsx +26 -32
- package/src/ui/a/DotInfo/DotInfo.jsx +23 -29
- package/src/ui/a/Figure/Figure.jsx +21 -27
- package/src/ui/a/HamburgerButton/HamburgerButton.jsx +27 -33
- package/src/ui/a/IconList/IconList.jsx +22 -28
- package/src/ui/a/Label/Label.jsx +21 -27
- package/src/ui/a/LoadingCircle/LoadingCircle.jsx +43 -49
- package/src/ui/a/MetaCard/MetaCard.jsx +19 -25
- package/src/ui/a/People/People.jsx +25 -31
- package/src/ui/a/Popover/Popover.jsx +3 -5
- package/src/ui/a/ProgressBar/ProgressBar.jsx +25 -31
- package/src/ui/a/Quote/Quote.jsx +26 -32
- package/src/ui/a/Removable/Removable.jsx +22 -29
- package/src/ui/a/SVG/SVG.jsx +3 -5
- package/src/ui/a/SnapScroller/SnapScroller.jsx +2 -4
- package/src/ui/a/Spinner/Spinner.jsx +19 -25
- package/src/ui/a/TextSteps/TextSteps.jsx +31 -38
- package/src/ui/a/TextSteps/styles.scss +1 -1
- package/src/ui/a/Timestamp/Timestamp.jsx +5 -7
- package/src/ui/a/Tip/Tip.jsx +22 -28
- package/src/ui/a/ToggleSwitch/ToggleSwitch.jsx +31 -37
- package/src/ui/b/Button/Button.jsx +0 -5
- package/src/ui/b/Button/common/Group/Group.jsx +18 -24
- package/src/ui/b/Card/Card.jsx +25 -31
- package/src/ui/b/Card/common/Group/Group.jsx +2 -5
- package/src/ui/b/Logo/Logo.jsx +3 -5
- package/src/ui/b/Page/Page.jsx +2 -7
- package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +2 -7
- package/src/ui/b/ThemeSelector/ThemeSelector.jsx +3 -5
- package/src/ui/b/Title/Title.jsx +36 -46
- package/src/ui/c/ContentSlides/ContentSlides.jsx +2 -4
- package/src/ui/c/Modal/Modal.jsx +24 -30
- package/src/ui/c/Shortener/Shortener.jsx +3 -5
- package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +2 -6
- package/src/ui/f/FormInput/FormInput.jsx +3 -5
- package/src/ui/f/common/Debugger/Debugger.jsx +3 -5
- package/src/ui/f/common/Description/Description.jsx +2 -6
- package/src/ui/f/common/InputWrapper/InputWrapper.jsx +21 -27
- package/src/ui/f/common/Label/Label.jsx +25 -31
- package/src/ui/f/fields/Checkbox/Checkbox.jsx +2 -6
- package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +48 -52
- package/src/ui/f/fields/EditorInput/EditorInput.jsx +2 -5
- package/src/ui/f/fields/LinkInput/LinkInput.jsx +2 -5
- package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +3 -5
- package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +3 -5
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +3 -5
- package/src/ui/f/fields/TextInput/TextInput.jsx +3 -5
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +3 -5
- package/tests/__snapshots__/Storyshots.test.js.snap +1 -1
- package/dist/cjs/b/Title/styles.scss +0 -16
- package/dist/es/b/Title/styles.scss +0 -16
- package/src/ui/b/Title/styles.scss +0 -16
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import { useInsertionEffect } from 'react'
|
|
5
|
-
|
|
6
4
|
import PropTypes from 'prop-types'
|
|
7
5
|
|
|
8
6
|
import styleNames from '@pareto-engineering/bem/exports'
|
|
9
7
|
|
|
8
|
+
import './styles.scss'
|
|
9
|
+
|
|
10
10
|
// Local Definitions
|
|
11
11
|
|
|
12
12
|
const baseClassName = styleNames.base
|
|
@@ -23,31 +23,25 @@ const Figure = ({
|
|
|
23
23
|
src,
|
|
24
24
|
alt,
|
|
25
25
|
caption,
|
|
26
|
-
}) =>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
<img src={src} alt={alt} />
|
|
46
|
-
<figcaption>{caption || alt}</figcaption>
|
|
47
|
-
</figure>
|
|
48
|
-
</div>
|
|
49
|
-
)
|
|
50
|
-
}
|
|
26
|
+
}) => (
|
|
27
|
+
<div
|
|
28
|
+
id={id}
|
|
29
|
+
className={[
|
|
30
|
+
baseClassName,
|
|
31
|
+
componentClassName,
|
|
32
|
+
userClassName,
|
|
33
|
+
]
|
|
34
|
+
.filter((e) => e)
|
|
35
|
+
.join(' ')}
|
|
36
|
+
style={style}
|
|
37
|
+
// {...otherProps}
|
|
38
|
+
>
|
|
39
|
+
<figure>
|
|
40
|
+
<img src={src} alt={alt} />
|
|
41
|
+
<figcaption>{caption || alt}</figcaption>
|
|
42
|
+
</figure>
|
|
43
|
+
</div>
|
|
44
|
+
)
|
|
51
45
|
|
|
52
46
|
Figure.propTypes = {
|
|
53
47
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import { useInsertionEffect } from 'react'
|
|
5
|
-
|
|
6
4
|
import PropTypes from 'prop-types'
|
|
7
5
|
|
|
8
6
|
import styleNames from '@pareto-engineering/bem/exports'
|
|
9
7
|
|
|
8
|
+
import './styles.scss'
|
|
9
|
+
|
|
10
10
|
// Local Definitions
|
|
11
11
|
|
|
12
12
|
const baseClassName = styleNames.base
|
|
@@ -26,37 +26,31 @@ const HamburgerButton = ({
|
|
|
26
26
|
ariaLabel,
|
|
27
27
|
color,
|
|
28
28
|
...otherProps
|
|
29
|
-
}) =>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
<span className="hamburger-box">
|
|
55
|
-
<span className="hamburger-inner" />
|
|
56
|
-
</span>
|
|
57
|
-
</button>
|
|
58
|
-
)
|
|
59
|
-
}
|
|
29
|
+
}) => (
|
|
30
|
+
<button
|
|
31
|
+
id={id}
|
|
32
|
+
className={[
|
|
33
|
+
baseClassName,
|
|
34
|
+
componentClassName,
|
|
35
|
+
userClassName,
|
|
36
|
+
`x-${color}`,
|
|
37
|
+
'hamburger',
|
|
38
|
+
`hamburger--${hamburgerType}`,
|
|
39
|
+
isOpen && 'is-active',
|
|
40
|
+
]
|
|
41
|
+
.filter((e) => e)
|
|
42
|
+
.join(' ')}
|
|
43
|
+
style={style}
|
|
44
|
+
type="button"
|
|
45
|
+
aria-label={ariaLabel}
|
|
46
|
+
aria-controls="navigation"
|
|
47
|
+
{...otherProps}
|
|
48
|
+
>
|
|
49
|
+
<span className="hamburger-box">
|
|
50
|
+
<span className="hamburger-inner" />
|
|
51
|
+
</span>
|
|
52
|
+
</button>
|
|
53
|
+
)
|
|
60
54
|
|
|
61
55
|
HamburgerButton.propTypes = {
|
|
62
56
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import { useInsertionEffect } from 'react'
|
|
5
|
-
|
|
6
4
|
import PropTypes from 'prop-types'
|
|
7
5
|
|
|
8
6
|
import styleNames from '@pareto-engineering/bem/exports'
|
|
9
7
|
|
|
10
8
|
import { Item } from './common'
|
|
11
9
|
|
|
10
|
+
import './styles.scss'
|
|
11
|
+
|
|
12
12
|
// Local Definitions
|
|
13
13
|
|
|
14
14
|
const baseClassName = styleNames.base
|
|
@@ -27,32 +27,26 @@ const IconList = ({
|
|
|
27
27
|
icon,
|
|
28
28
|
iconHover,
|
|
29
29
|
...otherProps
|
|
30
|
-
}) =>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
{...otherProps}
|
|
51
|
-
>
|
|
52
|
-
{children}
|
|
53
|
-
</ul>
|
|
54
|
-
)
|
|
55
|
-
}
|
|
30
|
+
}) => (
|
|
31
|
+
<ul
|
|
32
|
+
id={id}
|
|
33
|
+
className={[
|
|
34
|
+
baseClassName,
|
|
35
|
+
componentClassName,
|
|
36
|
+
userClassName,
|
|
37
|
+
]
|
|
38
|
+
.filter((e) => e)
|
|
39
|
+
.join(' ')}
|
|
40
|
+
style={{
|
|
41
|
+
...style,
|
|
42
|
+
'--list-icon' :icon && `"${icon}"`,
|
|
43
|
+
'--list-icon-hover':iconHover && `"${iconHover}"`,
|
|
44
|
+
}}
|
|
45
|
+
{...otherProps}
|
|
46
|
+
>
|
|
47
|
+
{children}
|
|
48
|
+
</ul>
|
|
49
|
+
)
|
|
56
50
|
|
|
57
51
|
IconList.propTypes = {
|
|
58
52
|
/**
|
package/src/ui/a/Label/Label.jsx
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import { useInsertionEffect } from 'react'
|
|
5
|
-
|
|
6
4
|
import PropTypes from 'prop-types'
|
|
7
5
|
|
|
8
6
|
import styleNames from '@pareto-engineering/bem/exports'
|
|
9
7
|
|
|
8
|
+
import './styles.scss'
|
|
9
|
+
|
|
10
10
|
// Local Definitions
|
|
11
11
|
|
|
12
12
|
const baseClassName = styleNames.base
|
|
@@ -26,31 +26,25 @@ const Label = ({
|
|
|
26
26
|
isGhost,
|
|
27
27
|
as:Wrapper,
|
|
28
28
|
...props
|
|
29
|
-
}) =>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
{...props}
|
|
49
|
-
>
|
|
50
|
-
{children}
|
|
51
|
-
</Wrapper>
|
|
52
|
-
)
|
|
53
|
-
}
|
|
29
|
+
}) => (
|
|
30
|
+
<Wrapper
|
|
31
|
+
id={id}
|
|
32
|
+
className={[
|
|
33
|
+
baseClassName,
|
|
34
|
+
componentClassName,
|
|
35
|
+
userClassName,
|
|
36
|
+
`x-${color}`,
|
|
37
|
+
isCompact && styleNames.modifierCompact,
|
|
38
|
+
isGhost && styleNames.modifierGhost,
|
|
39
|
+
]
|
|
40
|
+
.filter((e) => e)
|
|
41
|
+
.join(' ')}
|
|
42
|
+
style={style}
|
|
43
|
+
{...props}
|
|
44
|
+
>
|
|
45
|
+
{children}
|
|
46
|
+
</Wrapper>
|
|
47
|
+
)
|
|
54
48
|
|
|
55
49
|
Label.propTypes = {
|
|
56
50
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import { useInsertionEffect } from 'react'
|
|
5
|
-
|
|
6
4
|
import PropTypes from 'prop-types'
|
|
7
5
|
|
|
8
6
|
import styleNames from '@pareto-engineering/bem/exports'
|
|
9
7
|
|
|
8
|
+
import './styles.scss'
|
|
9
|
+
|
|
10
10
|
// Local Definitions
|
|
11
11
|
|
|
12
12
|
const baseClassName = styleNames.base
|
|
@@ -25,57 +25,51 @@ const LoadingCircle = ({
|
|
|
25
25
|
animationDuration,
|
|
26
26
|
style,
|
|
27
27
|
// ...otherProps
|
|
28
|
-
}) =>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
}) => (
|
|
29
|
+
<div
|
|
30
|
+
id={id}
|
|
31
|
+
className={[
|
|
32
|
+
|
|
33
|
+
baseClassName,
|
|
34
|
+
|
|
35
|
+
componentClassName,
|
|
36
|
+
userClassName,
|
|
37
|
+
]
|
|
38
|
+
.filter((e) => e)
|
|
39
|
+
.join(' ')}
|
|
40
|
+
style={{
|
|
41
|
+
'--height-width':heightWidth,
|
|
42
|
+
'--stroke-width':strokeWidth,
|
|
43
|
+
...style,
|
|
44
|
+
}}
|
|
45
|
+
// {...otherProps}
|
|
46
|
+
>
|
|
47
|
+
<svg
|
|
48
|
+
viewBox="25 25 50 50"
|
|
49
|
+
className="svg-circle"
|
|
35
50
|
id={id}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
]
|
|
43
|
-
.filter((e) => e)
|
|
44
|
-
.join(' ')}
|
|
51
|
+
x="0px"
|
|
52
|
+
y="0px"
|
|
53
|
+
xmlSpace="preserve"
|
|
54
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
55
|
+
version="1.1"
|
|
56
|
+
preserveAspectRatio="xMinYMin meet"
|
|
45
57
|
style={{
|
|
46
|
-
'--
|
|
47
|
-
'--stroke-width':strokeWidth,
|
|
48
|
-
...style,
|
|
58
|
+
'--animation-duration':`${animationDuration}s`,
|
|
49
59
|
}}
|
|
50
|
-
// {...otherProps}
|
|
51
60
|
>
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}}
|
|
65
|
-
>
|
|
66
|
-
<circle
|
|
67
|
-
className="path"
|
|
68
|
-
cx="50"
|
|
69
|
-
cy="50"
|
|
70
|
-
r="20"
|
|
71
|
-
fill="none"
|
|
72
|
-
strokeLinecap={strokeLinecap}
|
|
73
|
-
strokeMiterlimit="10"
|
|
74
|
-
/>
|
|
75
|
-
</svg>
|
|
76
|
-
</div>
|
|
77
|
-
)
|
|
78
|
-
}
|
|
61
|
+
<circle
|
|
62
|
+
className="path"
|
|
63
|
+
cx="50"
|
|
64
|
+
cy="50"
|
|
65
|
+
r="20"
|
|
66
|
+
fill="none"
|
|
67
|
+
strokeLinecap={strokeLinecap}
|
|
68
|
+
strokeMiterlimit="10"
|
|
69
|
+
/>
|
|
70
|
+
</svg>
|
|
71
|
+
</div>
|
|
72
|
+
)
|
|
79
73
|
|
|
80
74
|
LoadingCircle.propTypes = {
|
|
81
75
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import { useInsertionEffect } from 'react'
|
|
5
|
-
|
|
6
4
|
import PropTypes from 'prop-types'
|
|
7
5
|
|
|
8
6
|
import styleNames from '@pareto-engineering/bem/exports'
|
|
9
7
|
|
|
8
|
+
import './styles.scss'
|
|
9
|
+
|
|
10
10
|
// Local Definitions
|
|
11
11
|
|
|
12
12
|
const baseClassName = styleNames.base
|
|
@@ -23,29 +23,23 @@ const MetaCard = ({
|
|
|
23
23
|
children,
|
|
24
24
|
hasBackgroundBlur,
|
|
25
25
|
spaced,
|
|
26
|
-
}) =>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
style={style}
|
|
44
|
-
>
|
|
45
|
-
{children}
|
|
46
|
-
</div>
|
|
47
|
-
)
|
|
48
|
-
}
|
|
26
|
+
}) => (
|
|
27
|
+
<div
|
|
28
|
+
id={id}
|
|
29
|
+
className={[
|
|
30
|
+
baseClassName,
|
|
31
|
+
componentClassName,
|
|
32
|
+
userClassName,
|
|
33
|
+
hasBackgroundBlur && styleNames.modifierBlur,
|
|
34
|
+
spaced && styleNames.modifierSpaced,
|
|
35
|
+
]
|
|
36
|
+
.filter((e) => e)
|
|
37
|
+
.join(' ')}
|
|
38
|
+
style={style}
|
|
39
|
+
>
|
|
40
|
+
{children}
|
|
41
|
+
</div>
|
|
42
|
+
)
|
|
49
43
|
|
|
50
44
|
MetaCard.propTypes = {
|
|
51
45
|
/**
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import { useInsertionEffect } from 'react'
|
|
5
|
-
|
|
6
4
|
import PropTypes from 'prop-types'
|
|
7
5
|
|
|
8
6
|
import styleNames from '@pareto-engineering/bem/exports'
|
|
@@ -11,6 +9,8 @@ import styleNames from '@pareto-engineering/bem/exports'
|
|
|
11
9
|
|
|
12
10
|
import { Person } from './common'
|
|
13
11
|
|
|
12
|
+
import './styles.scss'
|
|
13
|
+
|
|
14
14
|
const baseClassName = styleNames.base
|
|
15
15
|
|
|
16
16
|
const componentClassName = 'people'
|
|
@@ -26,35 +26,29 @@ const People = ({
|
|
|
26
26
|
children,
|
|
27
27
|
columnWidth,
|
|
28
28
|
// ...otherProps
|
|
29
|
-
}) =>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
// {...otherProps}
|
|
53
|
-
>
|
|
54
|
-
{children}
|
|
55
|
-
</div>
|
|
56
|
-
)
|
|
57
|
-
}
|
|
29
|
+
}) => (
|
|
30
|
+
<div
|
|
31
|
+
id={id}
|
|
32
|
+
className={[
|
|
33
|
+
|
|
34
|
+
baseClassName,
|
|
35
|
+
|
|
36
|
+
componentClassName,
|
|
37
|
+
userClassName,
|
|
38
|
+
'u1',
|
|
39
|
+
]
|
|
40
|
+
.filter((e) => e)
|
|
41
|
+
.join(' ')}
|
|
42
|
+
style={{
|
|
43
|
+
...style,
|
|
44
|
+
'--image-size' :imageSize,
|
|
45
|
+
'--column-width':columnWidth,
|
|
46
|
+
}}
|
|
47
|
+
// {...otherProps}
|
|
48
|
+
>
|
|
49
|
+
{children}
|
|
50
|
+
</div>
|
|
51
|
+
)
|
|
58
52
|
|
|
59
53
|
People.propTypes = {
|
|
60
54
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import { useRef
|
|
4
|
+
import { useRef } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -10,6 +10,8 @@ import styleNames from '@pareto-engineering/bem/exports'
|
|
|
10
10
|
// Local Definitions
|
|
11
11
|
import { useDynamicPosition } from 'ui/utils'
|
|
12
12
|
|
|
13
|
+
import './styles.scss'
|
|
14
|
+
|
|
13
15
|
const baseClassName = styleNames.base
|
|
14
16
|
|
|
15
17
|
const componentClassName = 'popover'
|
|
@@ -31,10 +33,6 @@ const Popover = ({
|
|
|
31
33
|
offsetYPx,
|
|
32
34
|
// ...otherProps
|
|
33
35
|
}) => {
|
|
34
|
-
useInsertionEffect(() => {
|
|
35
|
-
import('./styles.scss')
|
|
36
|
-
}, [])
|
|
37
|
-
|
|
38
36
|
const popoverRef = useRef(null)
|
|
39
37
|
const {
|
|
40
38
|
primaryPosition,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import { useInsertionEffect } from 'react'
|
|
5
|
-
|
|
6
4
|
import PropTypes from 'prop-types'
|
|
7
5
|
|
|
8
6
|
import styleNames from '@pareto-engineering/bem/exports'
|
|
9
7
|
|
|
8
|
+
import './styles.scss'
|
|
9
|
+
|
|
10
10
|
// Local Definitions
|
|
11
11
|
|
|
12
12
|
const baseClassName = styleNames.base
|
|
@@ -25,35 +25,29 @@ const ProgressBar = ({
|
|
|
25
25
|
progress,
|
|
26
26
|
height,
|
|
27
27
|
// ...otherProps
|
|
28
|
-
}) =>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}}
|
|
52
|
-
data-length="50%"
|
|
53
|
-
// {...otherProps}
|
|
54
|
-
/>
|
|
55
|
-
)
|
|
56
|
-
}
|
|
28
|
+
}) => (
|
|
29
|
+
<div
|
|
30
|
+
id={id}
|
|
31
|
+
className={[
|
|
32
|
+
|
|
33
|
+
baseClassName,
|
|
34
|
+
|
|
35
|
+
componentClassName,
|
|
36
|
+
attached && styleNames.modifierAttached,
|
|
37
|
+
color && `x-${color}`,
|
|
38
|
+
userClassName,
|
|
39
|
+
]
|
|
40
|
+
.filter((e) => e)
|
|
41
|
+
.join(' ')}
|
|
42
|
+
style={{
|
|
43
|
+
'--progress':progress,
|
|
44
|
+
'--height' :height,
|
|
45
|
+
...style,
|
|
46
|
+
}}
|
|
47
|
+
data-length="50%"
|
|
48
|
+
// {...otherProps}
|
|
49
|
+
/>
|
|
50
|
+
)
|
|
57
51
|
|
|
58
52
|
ProgressBar.propTypes = {
|
|
59
53
|
/**
|