@pareto-engineering/design-system 3.0.0-alpha.29 → 4.0.0-alpha.3
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/.storybook/main.js +25 -63
- package/.storybook/preview.js +26 -9
- package/.storybook/webpackFinal.js +68 -0
- package/babel.config.js +14 -45
- package/dist/cjs/a/ContentTree/styles.scss +20 -20
- package/dist/cjs/a/Conversation/styles.scss +1 -0
- package/dist/cjs/a/Label/styles.scss +18 -17
- package/dist/cjs/a/LoadingCircle/styles.scss +35 -37
- package/dist/cjs/a/People/styles.scss +4 -4
- package/dist/cjs/a/Popover/styles.scss +4 -3
- package/dist/cjs/a/Quote/styles.scss +41 -38
- package/dist/cjs/a/SnapScroller/styles.scss +6 -4
- package/dist/cjs/a/index.js +0 -7
- package/dist/cjs/b/Button/styles.scss +2 -2
- package/dist/cjs/b/Logo/styles.scss +4 -2
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +2 -2
- package/dist/cjs/b/Page/styles.scss +7 -6
- package/dist/cjs/b/SocialMediaButton/styles.scss +1 -1
- package/dist/cjs/c/ContentSlides/styles.scss +2 -4
- package/dist/cjs/c/Modal/styles.scss +7 -5
- package/dist/cjs/c/SocialMediaShareButton/styles.scss +3 -3
- package/dist/cjs/f/FormInput/styles.scss +4 -4
- package/dist/cjs/f/common/Label/styles.scss +1 -1
- package/dist/cjs/f/fields/Checkbox/styles.scss +9 -8
- package/dist/cjs/f/fields/ChoicesInput/styles.scss +4 -4
- package/dist/cjs/f/fields/QueryCombobox/styles.scss +59 -59
- package/dist/cjs/f/fields/RatingsInput/styles.scss +8 -9
- package/dist/cjs/f/fields/SelectInput/styles.scss +6 -6
- package/dist/cjs/f/fields/TextInput/styles.scss +4 -4
- package/dist/cjs/f/fields/TextareaInput/styles.scss +7 -6
- package/dist/es/a/AppContext/ContextProvider.js +7 -8
- package/dist/es/a/AppContext/useTheme.js +1 -2
- package/dist/es/a/ContentTree/ContentTree.js +8 -9
- package/dist/es/a/ContentTree/common/Tree/Tree.js +8 -9
- package/dist/es/a/ContentTree/styles.scss +20 -20
- package/dist/es/a/Conversation/Conversation.js +11 -12
- package/dist/es/a/Conversation/common/Message/Message.js +12 -13
- package/dist/es/a/Conversation/styles.scss +1 -0
- package/dist/es/a/DotInfo/DotInfo.js +11 -12
- package/dist/es/a/Figure/Figure.js +8 -9
- package/dist/es/a/HamburgerButton/HamburgerButton.js +10 -11
- package/dist/es/a/IconList/IconList.js +9 -10
- package/dist/es/a/IconList/common/Item/Item.js +17 -20
- package/dist/es/a/Label/Label.js +9 -10
- package/dist/es/a/Label/styles.scss +18 -17
- package/dist/es/a/LoadingCircle/LoadingCircle.js +10 -11
- package/dist/es/a/LoadingCircle/styles.scss +35 -37
- package/dist/es/a/People/People.js +9 -10
- package/dist/es/a/People/common/Person/Person.js +24 -27
- package/dist/es/a/People/styles.scss +4 -4
- package/dist/es/a/Popover/Popover.js +14 -15
- package/dist/es/a/Popover/styles.scss +4 -3
- package/dist/es/a/ProgressBar/ProgressBar.js +10 -11
- package/dist/es/a/Quote/Quote.js +10 -11
- package/dist/es/a/Quote/styles.scss +41 -38
- package/dist/es/a/SVG/SVG.js +17 -18
- package/dist/es/a/SVG/common/UseSVG/UseSVG.js +19 -22
- package/dist/es/a/SnapScroller/SnapScroller.js +8 -9
- package/dist/es/a/SnapScroller/styles.scss +6 -4
- package/dist/es/a/Spinner/Spinner.js +7 -8
- package/dist/es/a/Timestamp/Timestamp.js +14 -15
- package/dist/es/a/index.js +0 -1
- package/dist/es/b/Button/Button.js +13 -14
- package/dist/es/b/Button/styles.scss +2 -2
- package/dist/es/b/Logo/Logo.js +12 -13
- package/dist/es/b/Logo/styles.scss +4 -2
- package/dist/es/b/Page/Page.js +10 -11
- package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +9 -11
- package/dist/es/b/Page/common/Section/Section.js +7 -8
- package/dist/es/b/Page/styles.scss +7 -6
- package/dist/es/b/SocialMediaButton/SocialMediaButton.js +11 -12
- package/dist/es/b/SocialMediaButton/styles.scss +1 -1
- package/dist/es/b/ThemeSelector/ThemeSelector.js +8 -9
- package/dist/es/b/Title/Title.js +27 -30
- package/dist/es/c/ContentSlides/ContentSlides.js +12 -15
- package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +11 -12
- package/dist/es/c/ContentSlides/common/Navigator/Navigator.js +14 -15
- package/dist/es/c/ContentSlides/common/Sidebar/Sidebar.js +8 -9
- package/dist/es/c/ContentSlides/common/Slide/Slide.js +8 -9
- package/dist/es/c/ContentSlides/styles.scss +2 -4
- package/dist/es/c/Modal/Modal.js +10 -11
- package/dist/es/c/Modal/common/ModalHeader/ModalHeader.js +20 -23
- package/dist/es/c/Modal/styles.scss +7 -5
- package/dist/es/c/Shortener/Shortener.js +11 -12
- package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +9 -10
- package/dist/es/c/SocialMediaShareButton/styles.scss +3 -3
- package/dist/es/f/FormInput/FormInput.js +7 -8
- package/dist/es/f/FormInput/styles.scss +4 -4
- package/dist/es/f/common/Debugger/Debugger.js +7 -8
- package/dist/es/f/common/Description/Description.js +9 -10
- package/dist/es/f/common/Label/Label.js +11 -12
- package/dist/es/f/common/Label/styles.scss +1 -1
- package/dist/es/f/fields/Checkbox/Checkbox.js +11 -12
- package/dist/es/f/fields/Checkbox/styles.scss +9 -8
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +17 -18
- package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +13 -14
- package/dist/es/f/fields/ChoicesInput/styles.scss +4 -4
- package/dist/es/f/fields/QueryChoices/QueryChoices.js +16 -20
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +27 -31
- package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +22 -24
- package/dist/es/f/fields/QueryCombobox/common/Menu/Menu.js +22 -25
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +24 -26
- package/dist/es/f/fields/QueryCombobox/styles.scss +59 -59
- package/dist/es/f/fields/QuerySelect/QuerySelect.js +24 -28
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +16 -17
- package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +15 -16
- package/dist/es/f/fields/RatingsInput/styles.scss +8 -9
- package/dist/es/f/fields/SelectInput/SelectInput.js +16 -17
- package/dist/es/f/fields/SelectInput/styles.scss +6 -6
- package/dist/es/f/fields/TextInput/TextInput.js +18 -19
- package/dist/es/f/fields/TextInput/styles.scss +4 -4
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +20 -21
- package/dist/es/f/fields/TextareaInput/styles.scss +7 -6
- package/dist/es/r/SwitchRouteMap/SwitchRouteMap.js +15 -21
- package/dist/es/r/common/PrivateRoute/PrivateRoute.js +6 -7
- package/dist/es/test/QueryLoader/QueryLoader.js +1 -1
- package/dist/es/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +5 -6
- package/dist/es/utils/hooks/useDynamicPosition.js +9 -10
- package/dist/es/utils/hooks/useWindowSize.js +1 -2
- package/jest.config.js +5 -5
- package/package.json +44 -82
- package/src/stories/b/Page.stories.jsx +2 -1
- package/src/stories/original/Button.jsx +55 -0
- package/src/stories/original/Button.stories.js +39 -0
- package/src/stories/original/Header.jsx +64 -0
- package/src/stories/original/Header.stories.js +22 -0
- package/src/stories/original/Introduction.mdx +211 -0
- package/src/stories/original/Page.jsx +76 -0
- package/src/stories/original/Page.stories.js +26 -0
- package/src/stories/original/assets/code-brackets.svg +1 -0
- package/src/stories/original/assets/colors.svg +1 -0
- package/src/stories/original/assets/comments.svg +1 -0
- package/src/stories/original/assets/direction.svg +1 -0
- package/src/stories/original/assets/flow.svg +1 -0
- package/src/stories/original/assets/plugin.svg +1 -0
- package/src/stories/original/assets/repo.svg +1 -0
- package/src/stories/original/assets/stackalt.svg +1 -0
- package/src/stories/original/button.css +30 -0
- package/src/stories/original/header.css +32 -0
- package/src/stories/original/page.css +69 -0
- package/src/ui/a/ContentTree/styles.scss +20 -20
- package/src/ui/a/Conversation/styles.scss +1 -0
- package/src/ui/a/Label/styles.scss +18 -17
- package/src/ui/a/LoadingCircle/styles.scss +35 -37
- package/src/ui/a/People/styles.scss +4 -4
- package/src/ui/a/Popover/styles.scss +4 -3
- package/src/ui/a/Quote/styles.scss +41 -38
- package/src/ui/a/SnapScroller/styles.scss +6 -4
- package/src/ui/a/index.js +0 -1
- package/src/ui/b/Button/styles.scss +2 -2
- package/src/ui/b/Logo/styles.scss +4 -2
- package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +1 -1
- package/src/ui/b/Page/styles.scss +7 -6
- package/src/ui/b/SocialMediaButton/styles.scss +1 -1
- package/src/ui/c/ContentSlides/styles.scss +2 -4
- package/src/ui/c/Modal/styles.scss +7 -5
- package/src/ui/c/SocialMediaShareButton/styles.scss +3 -3
- package/src/ui/f/FormInput/styles.scss +4 -4
- package/src/ui/f/common/Label/styles.scss +1 -1
- package/src/ui/f/fields/Checkbox/styles.scss +9 -8
- package/src/ui/f/fields/ChoicesInput/styles.scss +4 -4
- package/src/ui/f/fields/QueryCombobox/styles.scss +59 -59
- package/src/ui/f/fields/RatingsInput/styles.scss +8 -9
- package/src/ui/f/fields/SelectInput/styles.scss +6 -6
- package/src/ui/f/fields/TextInput/styles.scss +4 -4
- package/src/ui/f/fields/TextareaInput/styles.scss +7 -6
- package/src/ui/test/QueryLoader/QueryLoader.jsx +1 -1
- package/{src → tests}/__snapshots__/Storyshots.test.js.snap +687 -301
- package/tests/staticStub.js +1 -0
- package/.storybook/manager-head.html +0 -6
- package/.storybook/preview-head.html +0 -5
- package/README.md +0 -1
- package/build-storybook.log +0 -2978
- package/config/CSSStub.js +0 -1
- package/dist/cjs/a/AnimatedCounter/AnimatedCounter.js +0 -105
- package/dist/cjs/a/AnimatedCounter/index.js +0 -13
- package/dist/cjs/a/AnimatedCounter/styles.scss +0 -16
- package/dist/es/a/AnimatedCounter/AnimatedCounter.js +0 -98
- package/dist/es/a/AnimatedCounter/index.js +0 -2
- package/dist/es/a/AnimatedCounter/styles.scss +0 -16
- package/postcss.config.js +0 -13
- package/relay.config.js +0 -12
- package/src/assets/images/Ellipse1.png +0 -0
- package/src/assets/images/Ellipse2.png +0 -0
- package/src/assets/images/Fundraising.svg +0 -40
- package/src/assets/images/ParetoSupport.svg +0 -190
- package/src/assets/images/ParetoWorld.svg +0 -207
- package/src/assets/images/Vector.png +0 -0
- package/src/assets/images/email-attach.svg +0 -1
- package/src/assets/images/email-delete.svg +0 -1
- package/src/assets/images/favicon.png +0 -0
- package/src/assets/images/onboarding/focus-on-strategic-work.webp +0 -0
- package/src/assets/images/onboarding/launch-project.webp +0 -0
- package/src/assets/images/onboarding/meet-pareto-partner.webp +0 -0
- package/src/assets/images/quality.png +0 -0
- package/src/assets/images/sprite.svg +0 -253
- package/src/assets/images/test +0 -1
- package/src/local.scss +0 -16
- package/src/stories/a/AnimatedCounter.stories.jsx +0 -34
- package/src/ui/a/AnimatedCounter/AnimatedCounter.jsx +0 -118
- package/src/ui/a/AnimatedCounter/index.js +0 -2
- package/src/ui/a/AnimatedCounter/styles.scss +0 -16
- /package/{src → tests}/Storyshots.test.js +0 -0
- /package/{config → tests}/global-setup.js +0 -0
- /package/{config → tests}/test-setup.js +0 -0
package/.storybook/main.js
CHANGED
|
@@ -1,70 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
/** @type { import('@storybook/react-webpack5').StorybookConfig } */
|
|
2
|
+
import webpackFinal from './webpackFinal'
|
|
2
3
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
// Make whatever fine-grained changes you need
|
|
14
|
-
config.resolve.roots = [fonts, localImages, imagesFromAssetsPackage]
|
|
15
|
-
config.module.rules.push({
|
|
16
|
-
test: /\.scss$/,
|
|
17
|
-
use: [
|
|
18
|
-
'style-loader',
|
|
19
|
-
{
|
|
20
|
-
loader: 'css-loader',
|
|
21
|
-
options: {
|
|
22
|
-
//modules:{
|
|
23
|
-
// mode:'global',
|
|
24
|
-
//},
|
|
25
|
-
//localIdentName:"[name]__hello_[local]__[hash:base64:5]"
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
loader:'sass-loader',
|
|
30
|
-
options: {
|
|
31
|
-
sassOptions: {
|
|
32
|
-
includePaths: [
|
|
33
|
-
//path.resolve(__dirname, '../node_modules'), // Already default
|
|
34
|
-
path.resolve(__dirname, '../src')
|
|
35
|
-
]
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
include: path.resolve(__dirname, '../..')
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
// Return the altered config
|
|
44
|
-
return config;
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
"stories": [
|
|
48
|
-
"../src/stories/**/*.stories.mdx",
|
|
49
|
-
"../src/stories/**/*.stories.@(js|jsx|ts|tsx)"
|
|
4
|
+
const config = {
|
|
5
|
+
webpackFinal,
|
|
6
|
+
staticDirs:[
|
|
7
|
+
'../../../node_modules/@pareto-engineering/assets/images',
|
|
8
|
+
'../../../node_modules/@pareto-engineering/assets/fonts',
|
|
9
|
+
],
|
|
10
|
+
stories:[
|
|
11
|
+
'../src/stories/**/*.mdx',
|
|
12
|
+
'../src/stories/**/*.stories.@(js|jsx|ts|tsx)',
|
|
50
13
|
],
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
backgrounds: false,
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
'storybook-addon-themes'
|
|
14
|
+
addons:[
|
|
15
|
+
'@storybook/addon-links',
|
|
16
|
+
'@storybook/addon-essentials',
|
|
17
|
+
//'@storybook/addon-interactions',
|
|
18
|
+
//'storybook-addon-themes',
|
|
60
19
|
],
|
|
61
|
-
|
|
62
|
-
|
|
20
|
+
framework:{
|
|
21
|
+
name :'@storybook/react-webpack5',
|
|
22
|
+
options:{},
|
|
63
23
|
},
|
|
64
|
-
|
|
65
|
-
|
|
24
|
+
docs:{
|
|
25
|
+
autodocs:true,
|
|
26
|
+
//autodocs:'tag',
|
|
66
27
|
},
|
|
67
|
-
|
|
68
|
-
|
|
28
|
+
core:{
|
|
29
|
+
disableTelemetry:true, // 👈 Disables telemetry
|
|
69
30
|
},
|
|
70
31
|
}
|
|
32
|
+
export default config
|
package/.storybook/preview.js
CHANGED
|
@@ -1,11 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '
|
|
1
|
+
/** @type { import('@storybook/react').Preview } */
|
|
2
|
+
// import '../src/local.scss'
|
|
3
|
+
// import '@pareto-engineering/styles'
|
|
4
|
+
// Same as
|
|
5
|
+
import '@pareto-engineering/styles/dist/main.css'
|
|
3
6
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
const preview = {
|
|
8
|
+
parameters:{
|
|
9
|
+
backgrounds:{
|
|
10
|
+
default:'light',
|
|
11
|
+
},
|
|
12
|
+
actions :{ argTypesRegex: '^on[A-Z].*' },
|
|
13
|
+
controls:{
|
|
14
|
+
matchers:{
|
|
15
|
+
color:/(background|color)$/i,
|
|
16
|
+
date :/Date$/,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
themes:[
|
|
20
|
+
{
|
|
21
|
+
name:'Light', class:'ui-light', color:'#EFEFEF', default:true,
|
|
22
|
+
},
|
|
23
|
+
{ name: 'Dark', class: 'ui-dark', color: '#121212' },
|
|
24
|
+
],
|
|
25
|
+
},
|
|
11
26
|
}
|
|
27
|
+
|
|
28
|
+
export default preview
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import path from 'path'
|
|
2
|
+
|
|
3
|
+
/* We want to stop webpack from loading the fonts (.woff, etc)
|
|
4
|
+
* This fonts are embedded in the imported css file, but it makes no sense
|
|
5
|
+
* that webpack processes them. Instead, we will simply provide the right
|
|
6
|
+
* static path to storybook to have them loaded by the client.
|
|
7
|
+
*/
|
|
8
|
+
const patchCssLoader = (rules) => {
|
|
9
|
+
// We find the css rule
|
|
10
|
+
const cssRule = rules.find(rule => {
|
|
11
|
+
return rule.test?.test('.css')
|
|
12
|
+
})
|
|
13
|
+
// console.log(cssRule)
|
|
14
|
+
|
|
15
|
+
// We find the `css-loader` configuration object
|
|
16
|
+
const cssLoaderConfig = cssRule.use.find(({ loader }) => {
|
|
17
|
+
return loader?.includes('css-loader')
|
|
18
|
+
})
|
|
19
|
+
// console.log(cssLoaderConfig)
|
|
20
|
+
|
|
21
|
+
// We patch it for it not to load external resources
|
|
22
|
+
cssLoaderConfig.options.url = false
|
|
23
|
+
console.log('info => Patched CSS loader with { url:false }')
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default async (config, { configType }) => {
|
|
27
|
+
// `configType` has a value of 'DEVELOPMENT' or 'PRODUCTION'
|
|
28
|
+
// You can change the configuration based on that.
|
|
29
|
+
// 'PRODUCTION' is used when building the static version of storybook.
|
|
30
|
+
|
|
31
|
+
// Make whatever fine-grained changes you need
|
|
32
|
+
config.resolve.roots = [
|
|
33
|
+
path.resolve(__dirname, '../../../node_modules/@pareto-engineering/assets/fonts'),
|
|
34
|
+
path.resolve(__dirname, '../../../node_modules/@pareto-engineering/assets/images')
|
|
35
|
+
]
|
|
36
|
+
//config.resolve.alias.react = path.resolve(__dirname, '../node_modules/react')
|
|
37
|
+
// patchCssLoader(config.module.rules)
|
|
38
|
+
config.module.rules.push({
|
|
39
|
+
test:/\.scss$/,
|
|
40
|
+
use :[
|
|
41
|
+
'style-loader',
|
|
42
|
+
{
|
|
43
|
+
loader :'css-loader',
|
|
44
|
+
options:{
|
|
45
|
+
url :false,
|
|
46
|
+
modules:{
|
|
47
|
+
// We only activate CSS modules for the file containing the BEM rules
|
|
48
|
+
auto:(resourcePath) => resourcePath.includes('bem/exports.scss'),
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
loader :'sass-loader',
|
|
54
|
+
options:{
|
|
55
|
+
sassOptions:{
|
|
56
|
+
includePaths:[
|
|
57
|
+
// path.resolve(__dirname, '../node_modules'), // Already default
|
|
58
|
+
path.resolve(__dirname, '../src'),
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
include:path.resolve(__dirname, '../..'),
|
|
65
|
+
})
|
|
66
|
+
|
|
67
|
+
return config
|
|
68
|
+
}
|
package/babel.config.js
CHANGED
|
@@ -2,21 +2,15 @@
|
|
|
2
2
|
//
|
|
3
3
|
|
|
4
4
|
module.exports = function (api) {
|
|
5
|
-
// api.cache(false)
|
|
6
5
|
// var isProd = api.cache(() => process.env.NODE_ENV === 'production')
|
|
7
|
-
const isCjs = api.cache(() => process.env.
|
|
8
|
-
const isEs = api.cache(() => process.env.
|
|
9
|
-
const isTest = api.env('test')
|
|
6
|
+
const isCjs = api.cache(() => process.env.TARGET === 'cjs')
|
|
7
|
+
const isEs = api.cache(() => process.env.TARGET === 'es')
|
|
10
8
|
|
|
11
9
|
const modules = isEs ? false : 'commonjs'
|
|
12
10
|
|
|
13
|
-
const targets =
|
|
14
|
-
? {
|
|
15
|
-
:
|
|
16
|
-
? { esmodules: true }
|
|
17
|
-
: undefined
|
|
18
|
-
|
|
19
|
-
// { browsers: '>0.35%, not ie' }
|
|
11
|
+
const targets = isCjs
|
|
12
|
+
? { esmodules: true }
|
|
13
|
+
: { chrome: '111' }
|
|
20
14
|
|
|
21
15
|
const presets = [
|
|
22
16
|
[
|
|
@@ -24,7 +18,7 @@ module.exports = function (api) {
|
|
|
24
18
|
{
|
|
25
19
|
modules,
|
|
26
20
|
targets,
|
|
27
|
-
|
|
21
|
+
debug:true,
|
|
28
22
|
},
|
|
29
23
|
],
|
|
30
24
|
'@babel/preset-react',
|
|
@@ -34,42 +28,17 @@ module.exports = function (api) {
|
|
|
34
28
|
['module-resolver', {
|
|
35
29
|
root:['./src'],
|
|
36
30
|
}],
|
|
37
|
-
['@babel/plugin-proposal-private-property-in-object', { loose: true }], // This is to silence a warning after upgrading storybook to 6.2.9
|
|
38
|
-
['@babel/plugin-proposal-class-properties', { loose: true }],
|
|
39
|
-
['@babel/plugin-proposal-private-methods', { loose: true }],
|
|
40
|
-
|
|
41
|
-
// ['@babel/plugin-proposal-class-properties', { 'loose': true }],
|
|
42
|
-
/* ['babel-plugin-inline-import', {
|
|
43
|
-
'extensions':[
|
|
44
|
-
'.html',
|
|
45
|
-
'.graphql',
|
|
46
|
-
'.gql'
|
|
47
|
-
]}], */
|
|
48
|
-
/*
|
|
49
|
-
['transform-react-remove-prop-types', {
|
|
50
|
-
'mode':'wrap',
|
|
51
|
-
}],
|
|
52
|
-
*/
|
|
53
|
-
// ['add-module-exports'],
|
|
54
31
|
|
|
55
32
|
]
|
|
33
|
+
if (isEs) {
|
|
34
|
+
plugins.push(
|
|
35
|
+
// This plugins disables the transform of the rest operator using a polyfill.
|
|
36
|
+
// https://github.com/babel/babel-loader/issues/636
|
|
37
|
+
// '@babel/plugin-syntax-object-rest-spread',
|
|
38
|
+
)
|
|
39
|
+
}
|
|
56
40
|
|
|
57
|
-
|
|
58
|
-
if(isEs || isCjs) { plugins.push(
|
|
59
|
-
[
|
|
60
|
-
'transform-react-remove-prop-types',
|
|
61
|
-
{
|
|
62
|
-
removeImport:true
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
)}
|
|
66
|
-
*/
|
|
67
|
-
|
|
68
|
-
/* const env = { //UNUSED (??)
|
|
69
|
-
'production': {
|
|
70
|
-
'plugins': ['transform-react-remove-prop-types']
|
|
71
|
-
}
|
|
72
|
-
} */
|
|
41
|
+
console.log(plugins)
|
|
73
42
|
|
|
74
43
|
return {
|
|
75
44
|
presets,
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
2
3
|
@use "@pareto-engineering/bem";
|
|
3
4
|
|
|
4
5
|
$default-margin: 1em;
|
|
5
6
|
$default-padding: 1em;
|
|
6
7
|
|
|
7
|
-
.#{bem.$base}.content-tree{
|
|
8
|
+
.#{bem.$base}.content-tree {
|
|
9
|
+
ul {
|
|
10
|
+
list-style: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.#{bem.$base}.tree {
|
|
14
|
+
padding: 0;
|
|
15
|
+
position: sticky;
|
|
16
|
+
top: 0;
|
|
8
17
|
|
|
9
|
-
|
|
10
|
-
|
|
18
|
+
.#{bem.$modifier-active} {
|
|
19
|
+
color: var(--main2);
|
|
20
|
+
transition: color .2s;
|
|
11
21
|
}
|
|
12
22
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
color: var(--main2);
|
|
20
|
-
transition: color 0.2s;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
li:not(:last-child) {
|
|
24
|
-
margin-bottom: $default-margin;
|
|
25
|
-
ul {
|
|
26
|
-
padding-left: $default-padding;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
23
|
+
li:not(:last-child) {
|
|
24
|
+
margin-bottom: $default-margin;
|
|
25
|
+
|
|
26
|
+
ul {
|
|
27
|
+
padding-left: $default-padding;
|
|
28
|
+
}
|
|
29
29
|
}
|
|
30
|
+
}
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
|
|
33
|
-
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
2
3
|
@use "@pareto-engineering/bem";
|
|
3
4
|
|
|
4
5
|
$default-padding-bottom: .4em;
|
|
@@ -13,22 +14,22 @@ $default-image-size: 2em;
|
|
|
13
14
|
$default-font-size: calc(1em * var(--s-1));
|
|
14
15
|
|
|
15
16
|
.#{bem.$base}.label {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
align-items: center;
|
|
18
|
+
background: var(--x, var(--#{$default-color}));
|
|
19
|
+
border-radius: 3em;
|
|
20
|
+
color: var(--on-x, var(--on-#{$default-color}));
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
font-size: $default-font-size;
|
|
23
|
+
padding: $default-padding;
|
|
24
|
+
white-space: nowrap;
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
&.#{bem.$modifier-compact} {
|
|
27
|
+
padding: $compact-padding;
|
|
28
|
+
}
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
30
|
+
&.#{bem.$modifier-ghost} {
|
|
31
|
+
background: transparent;
|
|
32
|
+
border: 1px solid var(--x, var(--#{$default-color}));
|
|
33
|
+
color: var(--x, var(--#{$default-color}));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1,49 +1,47 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
2
3
|
@use "@pareto-engineering/bem";
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
$animation-duration:var(--animation-duration, 2s);
|
|
6
7
|
$stroke-color:var(--x);
|
|
7
8
|
|
|
8
|
-
.#{bem.$base}.loading-circle{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
.#{bem.$base}.loading-circle {
|
|
10
|
+
height: var(--height-width);
|
|
11
|
+
width: var(--height-width);
|
|
12
|
+
@keyframes rotate {
|
|
13
|
+
100% {
|
|
14
|
+
transform: rotate(360deg);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
@keyframes dash-anim {
|
|
18
|
+
0% {
|
|
19
|
+
stroke-dasharray: 1, 200;
|
|
20
|
+
stroke-dashoffset: 0;
|
|
17
21
|
}
|
|
18
22
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
stroke-dashoffset: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
50% {
|
|
26
|
-
stroke-dasharray: 89, 200;
|
|
27
|
-
stroke-dashoffset: -35px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
100% {
|
|
31
|
-
stroke-dasharray: 89, 200;
|
|
32
|
-
stroke-dashoffset: -124px;
|
|
33
|
-
}
|
|
23
|
+
50% {
|
|
24
|
+
stroke-dasharray: 89, 200;
|
|
25
|
+
stroke-dashoffset: -35px;
|
|
34
26
|
}
|
|
35
27
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
28
|
+
100% {
|
|
29
|
+
stroke-dasharray: 89, 200;
|
|
30
|
+
stroke-dashoffset: -124px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
svg.svg-circle {
|
|
35
|
+
animation: rotate $animation-duration linear infinite;
|
|
36
|
+
margin: auto;
|
|
37
|
+
transform-origin: center center;
|
|
38
|
+
|
|
39
|
+
circle {
|
|
40
|
+
animation: dash-anim $animation-duration ease-in-out infinite;
|
|
41
|
+
stroke: $stroke-color;
|
|
42
|
+
stroke-dasharray: 1, 200;
|
|
43
|
+
stroke-dashoffset: 0;
|
|
44
|
+
stroke-width: var(--stroke-width, 8);
|
|
48
45
|
}
|
|
49
|
-
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -15,8 +15,8 @@ $default-image-padding: 1.5rem;
|
|
|
15
15
|
|
|
16
16
|
.#{bem.$base}.people {
|
|
17
17
|
display: grid;
|
|
18
|
+
gap: $default-grid-gap;
|
|
18
19
|
grid-template-columns: repeat(auto-fill, minmax(var(--column-width), 1fr));
|
|
19
|
-
gap:$default-grid-gap;
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
.person {
|
|
@@ -29,19 +29,19 @@ $default-image-padding: 1.5rem;
|
|
|
29
29
|
.image {
|
|
30
30
|
border-radius: $default-border-radius;
|
|
31
31
|
height: var(--image-size);
|
|
32
|
-
width: var(--image-size);
|
|
33
32
|
margin-right: $default-image-padding;
|
|
33
|
+
width: var(--image-size);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.details {
|
|
37
37
|
align-items: flex-start;
|
|
38
|
+
color: var(--grey);
|
|
38
39
|
display: flex;
|
|
39
40
|
flex-direction: column;
|
|
40
|
-
color: var(--grey);
|
|
41
41
|
|
|
42
42
|
.name {
|
|
43
|
-
margin-bottom: .1em;
|
|
44
43
|
color: var(--grey);
|
|
44
|
+
margin-bottom: .1em;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.role {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
2
3
|
@use "@pareto-engineering/bem";
|
|
3
4
|
|
|
4
5
|
$default-border: var(--theme-border-style) var(--metadata);
|
|
5
6
|
|
|
6
7
|
.#{bem.$base}.popover {
|
|
7
|
-
position: absolute;
|
|
8
|
-
z-index: 1;
|
|
9
8
|
background-color: var(--x);
|
|
10
9
|
border: $default-border;
|
|
10
|
+
position: absolute;
|
|
11
|
+
z-index: 1;
|
|
11
12
|
|
|
12
13
|
&:not(.open) {
|
|
13
14
|
display: none;
|
|
@@ -30,4 +31,4 @@ $default-border: var(--theme-border-style) var(--metadata);
|
|
|
30
31
|
bottom: 100%;
|
|
31
32
|
top: auto;
|
|
32
33
|
}
|
|
33
|
-
}
|
|
34
|
+
}
|
|
@@ -1,53 +1,56 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
2
3
|
@use "@pareto-engineering/bem";
|
|
3
4
|
@use "@pareto-engineering/styles/src/mixins";
|
|
4
5
|
@use "@pareto-engineering/styles/src/globals" as *;
|
|
5
6
|
|
|
6
7
|
|
|
7
|
-
.#{bem.$base}.quote{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
.#{bem.$base}.quote {
|
|
9
|
+
align-items: center;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
|
|
13
|
+
.blockquote {
|
|
14
|
+
margin: 0;
|
|
15
|
+
padding: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.figcaption {
|
|
19
|
+
padding: 0;
|
|
20
|
+
}
|
|
11
21
|
|
|
22
|
+
@include mixins.media($from:$sm-md) {
|
|
12
23
|
.blockquote {
|
|
13
|
-
|
|
14
|
-
|
|
24
|
+
.quotation {
|
|
25
|
+
display: inline;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&::before {
|
|
29
|
+
color: transparent;
|
|
30
|
+
content: "\201C";
|
|
31
|
+
font-size: 4em;
|
|
32
|
+
line-height: 0;
|
|
33
|
+
opacity: inherit;
|
|
34
|
+
position: static;
|
|
35
|
+
-webkit-text-stroke: 1px var(--x);
|
|
36
|
+
vertical-align: -.4em;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&::after {
|
|
40
|
+
color: transparent;
|
|
41
|
+
content: "\201D";
|
|
42
|
+
font-size: 4em;
|
|
43
|
+
line-height: 0;
|
|
44
|
+
margin-left: -.1em;
|
|
45
|
+
-webkit-text-stroke: 1px var(--x);
|
|
46
|
+
vertical-align: -.6em;
|
|
47
|
+
}
|
|
15
48
|
}
|
|
16
49
|
|
|
17
50
|
.figcaption {
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@include mixins.media($from:$sm-md) {
|
|
22
|
-
.blockquote {
|
|
23
|
-
.quotation {
|
|
24
|
-
display: inline;
|
|
25
|
-
}
|
|
26
|
-
&:before {
|
|
27
|
-
color: transparent;
|
|
28
|
-
content: '\201C';
|
|
29
|
-
font-size: 4em;
|
|
30
|
-
line-height: 0;
|
|
31
|
-
position: static;
|
|
32
|
-
vertical-align: -0.4em;
|
|
33
|
-
-webkit-text-stroke: 1px var(--x);
|
|
34
|
-
opacity: inherit;
|
|
35
|
-
}
|
|
36
|
-
&:after {
|
|
37
|
-
color: transparent;
|
|
38
|
-
content: '\201D';
|
|
39
|
-
font-size: 4em;
|
|
40
|
-
line-height: 0;
|
|
41
|
-
vertical-align: -0.6em;
|
|
42
|
-
margin-left: -.1em;
|
|
43
|
-
-webkit-text-stroke: 1px var(--x);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
.figcaption {
|
|
47
|
-
margin: 0;
|
|
48
|
-
}
|
|
51
|
+
margin: 0;
|
|
49
52
|
}
|
|
53
|
+
}
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
|
|
53
|
-
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
/* stylelint-disable selector-max-universal -- exception */
|
|
2
3
|
|
|
3
4
|
@use "@pareto-engineering/bem";
|
|
4
5
|
@use "@pareto-engineering/styles/src/mixins";
|
|
@@ -10,18 +11,19 @@ $default-spacing:var(--spacing, var(--u));
|
|
|
10
11
|
display: flex;
|
|
11
12
|
-ms-overflow-style: none; /* for Internet Explorer, Edge */
|
|
12
13
|
overflow-x: auto;
|
|
13
|
-
scroll-padding: calc(#{$default-spacing} *2);
|
|
14
|
+
scroll-padding: calc(#{$default-spacing} * 2);
|
|
14
15
|
scroll-snap-type: x mandatory;
|
|
15
16
|
scrollbar-width: none;
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
> * {
|
|
19
|
-
&:first-child {
|
|
20
|
-
margin-left: $default-spacing;
|
|
21
|
-
}
|
|
22
20
|
display: inline-block;
|
|
23
21
|
margin-right: $default-spacing;
|
|
24
22
|
scroll-snap-align: start;
|
|
23
|
+
|
|
24
|
+
&:first-child {
|
|
25
|
+
margin-left: $default-spacing;
|
|
26
|
+
}
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
|
package/dist/cjs/a/index.js
CHANGED
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "AnimatedCounter", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _AnimatedCounter.AnimatedCounter;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
6
|
Object.defineProperty(exports, "AppContext", {
|
|
13
7
|
enumerable: true,
|
|
14
8
|
get: function get() {
|
|
@@ -129,7 +123,6 @@ Object.defineProperty(exports, "useTheme", {
|
|
|
129
123
|
return _AppContext.useTheme;
|
|
130
124
|
}
|
|
131
125
|
});
|
|
132
|
-
var _AnimatedCounter = require("./AnimatedCounter");
|
|
133
126
|
var _AppContext = require("./AppContext");
|
|
134
127
|
var _ContentTree = require("./ContentTree");
|
|
135
128
|
var _Conversation = require("./Conversation");
|