@pareto-engineering/design-system 4.0.0-alpha.43 → 4.0.0-alpha.45
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/Removable/Removable.js +72 -0
- package/dist/cjs/a/Removable/index.js +13 -0
- package/dist/cjs/a/Removable/styles.scss +33 -0
- package/dist/cjs/a/index.js +8 -1
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +8 -0
- package/dist/cjs/f/fields/Checkbox/styles.scss +1 -0
- package/dist/cjs/f/fields/TextInput/TextInput.js +3 -3
- package/dist/es/a/Removable/Removable.js +64 -0
- package/dist/es/a/Removable/index.js +2 -0
- package/dist/es/a/Removable/styles.scss +33 -0
- package/dist/es/a/index.js +2 -1
- package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +8 -0
- package/dist/es/f/fields/Checkbox/styles.scss +1 -0
- package/dist/es/f/fields/TextInput/TextInput.js +3 -3
- package/package.json +4 -4
- package/src/stories/a/Removable.stories.jsx +22 -0
- package/src/stories/colors.js +1 -0
- package/src/ui/a/Removable/Removable.jsx +85 -0
- package/src/ui/a/Removable/index.js +2 -0
- package/src/ui/a/Removable/styles.scss +33 -0
- package/src/ui/a/index.js +1 -0
- package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +12 -0
- package/src/ui/f/fields/Checkbox/styles.scss +1 -0
- package/src/ui/f/fields/TextInput/TextInput.jsx +2 -1
- package/tests/__snapshots__/Storyshots.test.js.snap +306 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
+
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; } /* @pareto-engineering/generator-front 1.1.1-alpha.1 */
|
|
13
|
+
// Local Definitions
|
|
14
|
+
|
|
15
|
+
const baseClassName = _exports.default.base;
|
|
16
|
+
const componentClassName = 'removable';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* This is a wrapper component that adds a close button to its children.
|
|
20
|
+
*/
|
|
21
|
+
const Removable = _ref => {
|
|
22
|
+
let {
|
|
23
|
+
id,
|
|
24
|
+
className: userClassName,
|
|
25
|
+
style,
|
|
26
|
+
handleClose,
|
|
27
|
+
children
|
|
28
|
+
// ...otherProps
|
|
29
|
+
} = _ref;
|
|
30
|
+
(0, React.useInsertionEffect)(() => {
|
|
31
|
+
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
32
|
+
}, []);
|
|
33
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
34
|
+
id: id,
|
|
35
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
36
|
+
style: style
|
|
37
|
+
// {...otherProps}
|
|
38
|
+
}, children, /*#__PURE__*/React.createElement("button", {
|
|
39
|
+
type: "button",
|
|
40
|
+
className: "close-button",
|
|
41
|
+
onClick: handleClose || (() => null)
|
|
42
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
43
|
+
className: "icon"
|
|
44
|
+
}, "Y")));
|
|
45
|
+
};
|
|
46
|
+
Removable.propTypes = {
|
|
47
|
+
/**
|
|
48
|
+
* The HTML id for this element
|
|
49
|
+
*/
|
|
50
|
+
id: _propTypes.default.string,
|
|
51
|
+
/**
|
|
52
|
+
* The HTML class names for this element
|
|
53
|
+
*/
|
|
54
|
+
className: _propTypes.default.string,
|
|
55
|
+
/**
|
|
56
|
+
* The React-written, css properties for this element.
|
|
57
|
+
*/
|
|
58
|
+
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
59
|
+
/**
|
|
60
|
+
* The function to call when the close button is clicked
|
|
61
|
+
*/
|
|
62
|
+
handleClose: _propTypes.default.func,
|
|
63
|
+
/**
|
|
64
|
+
* The children JSX
|
|
65
|
+
*/
|
|
66
|
+
children: _propTypes.default.node
|
|
67
|
+
};
|
|
68
|
+
Removable.defaultProps = {
|
|
69
|
+
// someProp:false
|
|
70
|
+
};
|
|
71
|
+
var _default = Removable;
|
|
72
|
+
exports.default = _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Removable", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Removable.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Removable = _interopRequireDefault(require("./Removable"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.1.1-alpha.1 */
|
|
2
|
+
|
|
3
|
+
@use "@pareto-engineering/bem";
|
|
4
|
+
|
|
5
|
+
$default-padding: .5rem;
|
|
6
|
+
|
|
7
|
+
.#{bem.$base}.removable {
|
|
8
|
+
align-items: center;
|
|
9
|
+
background-color: var(--background-inputs);
|
|
10
|
+
border: var(--theme-default-border-style) var(--main2);
|
|
11
|
+
border-radius: $default-padding;
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
padding: $default-padding;
|
|
15
|
+
|
|
16
|
+
> :first-child {
|
|
17
|
+
flex-grow: 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.close-button {
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
border: none;
|
|
23
|
+
color: var(--metadata);
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
margin-left: var(--gap);
|
|
26
|
+
|
|
27
|
+
&:hover {
|
|
28
|
+
color: var(--hard-metadata);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
package/dist/cjs/a/index.js
CHANGED
|
@@ -111,6 +111,12 @@ Object.defineProperty(exports, "Quote", {
|
|
|
111
111
|
return _Quote.Quote;
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
|
+
Object.defineProperty(exports, "Removable", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return _Removable.Removable;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
114
120
|
Object.defineProperty(exports, "SVG", {
|
|
115
121
|
enumerable: true,
|
|
116
122
|
get: function () {
|
|
@@ -181,4 +187,5 @@ var _MetaCard = require("./MetaCard");
|
|
|
181
187
|
var _AnimatedBlobs = require("./AnimatedBlobs");
|
|
182
188
|
var _Tip = require("./Tip");
|
|
183
189
|
var _AnimatedGradient = require("./AnimatedGradient");
|
|
184
|
-
var _TextSteps = require("./TextSteps");
|
|
190
|
+
var _TextSteps = require("./TextSteps");
|
|
191
|
+
var _Removable = require("./Removable");
|
|
@@ -46,6 +46,14 @@ const helmetMap = [{
|
|
|
46
46
|
href: v,
|
|
47
47
|
key: "canonical"
|
|
48
48
|
})
|
|
49
|
+
}, {
|
|
50
|
+
test: true,
|
|
51
|
+
variables: ['og_image', 'main_image'],
|
|
52
|
+
render: () => /*#__PURE__*/React.createElement("meta", {
|
|
53
|
+
name: "twitter:card",
|
|
54
|
+
content: "summary_large_image",
|
|
55
|
+
key: "twitter_card"
|
|
56
|
+
})
|
|
49
57
|
}, {
|
|
50
58
|
variables: ['twitter_title', 'title', 'title_tag'],
|
|
51
59
|
render: v => /*#__PURE__*/React.createElement("meta", {
|
|
@@ -41,8 +41,8 @@ const TextInput = _ref => {
|
|
|
41
41
|
desktopLabelSpan,
|
|
42
42
|
inputSpan,
|
|
43
43
|
desktopInputSpan,
|
|
44
|
-
symbol
|
|
45
|
-
|
|
44
|
+
symbol,
|
|
45
|
+
...otherProps
|
|
46
46
|
} = _ref;
|
|
47
47
|
(0, React.useInsertionEffect)(() => {
|
|
48
48
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
@@ -77,7 +77,7 @@ const TextInput = _ref => {
|
|
|
77
77
|
disabled: disabled,
|
|
78
78
|
placeholder: placeholder,
|
|
79
79
|
autoComplete: autoComplete
|
|
80
|
-
}, field)), /*#__PURE__*/React.createElement(_common.FormDescription, {
|
|
80
|
+
}, field, otherProps)), /*#__PURE__*/React.createElement(_common.FormDescription, {
|
|
81
81
|
className: "s-1",
|
|
82
82
|
description: description,
|
|
83
83
|
name: name
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.1.1-alpha.1 */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useInsertionEffect } from 'react';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
|
+
|
|
7
|
+
// Local Definitions
|
|
8
|
+
|
|
9
|
+
const baseClassName = styleNames.base;
|
|
10
|
+
const componentClassName = 'removable';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* This is a wrapper component that adds a close button to its children.
|
|
14
|
+
*/
|
|
15
|
+
const Removable = ({
|
|
16
|
+
id,
|
|
17
|
+
className: userClassName,
|
|
18
|
+
style,
|
|
19
|
+
handleClose,
|
|
20
|
+
children
|
|
21
|
+
// ...otherProps
|
|
22
|
+
}) => {
|
|
23
|
+
useInsertionEffect(() => {
|
|
24
|
+
import("./styles.scss");
|
|
25
|
+
}, []);
|
|
26
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
id: id,
|
|
28
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
29
|
+
style: style
|
|
30
|
+
// {...otherProps}
|
|
31
|
+
}, children, /*#__PURE__*/React.createElement("button", {
|
|
32
|
+
type: "button",
|
|
33
|
+
className: "close-button",
|
|
34
|
+
onClick: handleClose || (() => null)
|
|
35
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
36
|
+
className: "icon"
|
|
37
|
+
}, "Y")));
|
|
38
|
+
};
|
|
39
|
+
Removable.propTypes = {
|
|
40
|
+
/**
|
|
41
|
+
* The HTML id for this element
|
|
42
|
+
*/
|
|
43
|
+
id: PropTypes.string,
|
|
44
|
+
/**
|
|
45
|
+
* The HTML class names for this element
|
|
46
|
+
*/
|
|
47
|
+
className: PropTypes.string,
|
|
48
|
+
/**
|
|
49
|
+
* The React-written, css properties for this element.
|
|
50
|
+
*/
|
|
51
|
+
style: PropTypes.objectOf(PropTypes.string),
|
|
52
|
+
/**
|
|
53
|
+
* The function to call when the close button is clicked
|
|
54
|
+
*/
|
|
55
|
+
handleClose: PropTypes.func,
|
|
56
|
+
/**
|
|
57
|
+
* The children JSX
|
|
58
|
+
*/
|
|
59
|
+
children: PropTypes.node
|
|
60
|
+
};
|
|
61
|
+
Removable.defaultProps = {
|
|
62
|
+
// someProp:false
|
|
63
|
+
};
|
|
64
|
+
export default Removable;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.1.1-alpha.1 */
|
|
2
|
+
|
|
3
|
+
@use "@pareto-engineering/bem";
|
|
4
|
+
|
|
5
|
+
$default-padding: .5rem;
|
|
6
|
+
|
|
7
|
+
.#{bem.$base}.removable {
|
|
8
|
+
align-items: center;
|
|
9
|
+
background-color: var(--background-inputs);
|
|
10
|
+
border: var(--theme-default-border-style) var(--main2);
|
|
11
|
+
border-radius: $default-padding;
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
padding: $default-padding;
|
|
15
|
+
|
|
16
|
+
> :first-child {
|
|
17
|
+
flex-grow: 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.close-button {
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
border: none;
|
|
23
|
+
color: var(--metadata);
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
margin-left: var(--gap);
|
|
26
|
+
|
|
27
|
+
&:hover {
|
|
28
|
+
color: var(--hard-metadata);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
package/dist/es/a/index.js
CHANGED
|
@@ -20,4 +20,5 @@ export { MetaCard } from "./MetaCard";
|
|
|
20
20
|
export { AnimatedBlobs } from "./AnimatedBlobs";
|
|
21
21
|
export { Tip } from "./Tip";
|
|
22
22
|
export { AnimatedGradient } from "./AnimatedGradient";
|
|
23
|
-
export { TextSteps } from "./TextSteps";
|
|
23
|
+
export { TextSteps } from "./TextSteps";
|
|
24
|
+
export { Removable } from "./Removable";
|
|
@@ -37,6 +37,14 @@ const helmetMap = [{
|
|
|
37
37
|
href: v,
|
|
38
38
|
key: "canonical"
|
|
39
39
|
})
|
|
40
|
+
}, {
|
|
41
|
+
test: true,
|
|
42
|
+
variables: ['og_image', 'main_image'],
|
|
43
|
+
render: () => /*#__PURE__*/React.createElement("meta", {
|
|
44
|
+
name: "twitter:card",
|
|
45
|
+
content: "summary_large_image",
|
|
46
|
+
key: "twitter_card"
|
|
47
|
+
})
|
|
40
48
|
}, {
|
|
41
49
|
variables: ['twitter_title', 'title', 'title_tag'],
|
|
42
50
|
render: v => /*#__PURE__*/React.createElement("meta", {
|
|
@@ -34,8 +34,8 @@ const TextInput = ({
|
|
|
34
34
|
desktopLabelSpan,
|
|
35
35
|
inputSpan,
|
|
36
36
|
desktopInputSpan,
|
|
37
|
-
symbol
|
|
38
|
-
|
|
37
|
+
symbol,
|
|
38
|
+
...otherProps
|
|
39
39
|
}) => {
|
|
40
40
|
useInsertionEffect(() => {
|
|
41
41
|
import("./styles.scss");
|
|
@@ -70,7 +70,7 @@ const TextInput = ({
|
|
|
70
70
|
disabled: disabled,
|
|
71
71
|
placeholder: placeholder,
|
|
72
72
|
autoComplete: autoComplete
|
|
73
|
-
}, field)), /*#__PURE__*/React.createElement(FormDescription, {
|
|
73
|
+
}, field, otherProps)), /*#__PURE__*/React.createElement(FormDescription, {
|
|
74
74
|
className: "s-1",
|
|
75
75
|
description: description,
|
|
76
76
|
name: name
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pareto-engineering/design-system",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.45",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/es/index.js",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@lexical/react": "^0.11.3",
|
|
54
|
-
"@pareto-engineering/assets": "^4.0.0-alpha.
|
|
54
|
+
"@pareto-engineering/assets": "^4.0.0-alpha.45",
|
|
55
55
|
"@pareto-engineering/bem": "^4.0.0-alpha.20",
|
|
56
56
|
"@pareto-engineering/styles": "^4.0.0-alpha.39",
|
|
57
|
-
"@pareto-engineering/utils": "^4.0.0-alpha.
|
|
57
|
+
"@pareto-engineering/utils": "^4.0.0-alpha.45",
|
|
58
58
|
"date-fns": "^2.29.3",
|
|
59
59
|
"downshift": "^6.1.12",
|
|
60
60
|
"formik": "^2.2.9",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"relay-test-utils": "^15.0.0"
|
|
71
71
|
},
|
|
72
72
|
"browserslist": "> 2%",
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "f8569362e917c041134b268ea001cd5418dd216a"
|
|
74
74
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.1.1-alpha.1 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { Removable } from 'ui'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title :'a/Removable',
|
|
8
|
+
component :Removable,
|
|
9
|
+
subcomponents:{
|
|
10
|
+
// Item:Removable.Item
|
|
11
|
+
},
|
|
12
|
+
decorators:[
|
|
13
|
+
// storyfn => <div className="">{ storyfn() }</div>,
|
|
14
|
+
],
|
|
15
|
+
argTypes:{
|
|
16
|
+
backgroundColor:{ control: 'color' },
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const Base = () => (
|
|
21
|
+
<Removable>Sample Removable</Removable>
|
|
22
|
+
)
|
package/src/stories/colors.js
CHANGED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.1.1-alpha.1 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
|
+
|
|
6
|
+
import PropTypes from 'prop-types'
|
|
7
|
+
|
|
8
|
+
import styleNames from '@pareto-engineering/bem/exports'
|
|
9
|
+
|
|
10
|
+
// Local Definitions
|
|
11
|
+
|
|
12
|
+
const baseClassName = styleNames.base
|
|
13
|
+
|
|
14
|
+
const componentClassName = 'removable'
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* This is a wrapper component that adds a close button to its children.
|
|
18
|
+
*/
|
|
19
|
+
const Removable = ({
|
|
20
|
+
id,
|
|
21
|
+
className:userClassName,
|
|
22
|
+
style,
|
|
23
|
+
handleClose,
|
|
24
|
+
children,
|
|
25
|
+
// ...otherProps
|
|
26
|
+
}) => {
|
|
27
|
+
useInsertionEffect(() => {
|
|
28
|
+
import('./styles.scss')
|
|
29
|
+
}, [])
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<div
|
|
33
|
+
id={id}
|
|
34
|
+
className={[
|
|
35
|
+
|
|
36
|
+
baseClassName,
|
|
37
|
+
|
|
38
|
+
componentClassName,
|
|
39
|
+
userClassName,
|
|
40
|
+
]
|
|
41
|
+
.filter((e) => e)
|
|
42
|
+
.join(' ')}
|
|
43
|
+
style={style}
|
|
44
|
+
// {...otherProps}
|
|
45
|
+
>
|
|
46
|
+
{children}
|
|
47
|
+
<button type="button" className="close-button" onClick={handleClose || (() => null)}>
|
|
48
|
+
<span className="icon">Y</span>
|
|
49
|
+
</button>
|
|
50
|
+
</div>
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
Removable.propTypes = {
|
|
55
|
+
/**
|
|
56
|
+
* The HTML id for this element
|
|
57
|
+
*/
|
|
58
|
+
id:PropTypes.string,
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The HTML class names for this element
|
|
62
|
+
*/
|
|
63
|
+
className:PropTypes.string,
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The React-written, css properties for this element.
|
|
67
|
+
*/
|
|
68
|
+
style:PropTypes.objectOf(PropTypes.string),
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The function to call when the close button is clicked
|
|
72
|
+
*/
|
|
73
|
+
handleClose:PropTypes.func,
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The children JSX
|
|
77
|
+
*/
|
|
78
|
+
children:PropTypes.node,
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
Removable.defaultProps = {
|
|
82
|
+
// someProp:false
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export default Removable
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.1.1-alpha.1 */
|
|
2
|
+
|
|
3
|
+
@use "@pareto-engineering/bem";
|
|
4
|
+
|
|
5
|
+
$default-padding: .5rem;
|
|
6
|
+
|
|
7
|
+
.#{bem.$base}.removable {
|
|
8
|
+
align-items: center;
|
|
9
|
+
background-color: var(--background-inputs);
|
|
10
|
+
border: var(--theme-default-border-style) var(--main2);
|
|
11
|
+
border-radius: $default-padding;
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
padding: $default-padding;
|
|
15
|
+
|
|
16
|
+
> :first-child {
|
|
17
|
+
flex-grow: 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.close-button {
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
border: none;
|
|
23
|
+
color: var(--metadata);
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
margin-left: var(--gap);
|
|
26
|
+
|
|
27
|
+
&:hover {
|
|
28
|
+
color: var(--hard-metadata);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
package/src/ui/a/index.js
CHANGED
|
@@ -59,6 +59,18 @@ const helmetMap = [
|
|
|
59
59
|
)),
|
|
60
60
|
},
|
|
61
61
|
|
|
62
|
+
{
|
|
63
|
+
test :true,
|
|
64
|
+
variables:['og_image', 'main_image'],
|
|
65
|
+
render :() => (
|
|
66
|
+
<meta
|
|
67
|
+
name="twitter:card"
|
|
68
|
+
content="summary_large_image"
|
|
69
|
+
key="twitter_card"
|
|
70
|
+
/>
|
|
71
|
+
),
|
|
72
|
+
},
|
|
73
|
+
|
|
62
74
|
{
|
|
63
75
|
variables:['twitter_title', 'title', 'title_tag'],
|
|
64
76
|
render :(v) => (
|
|
@@ -40,7 +40,7 @@ const TextInput = ({
|
|
|
40
40
|
inputSpan,
|
|
41
41
|
desktopInputSpan,
|
|
42
42
|
symbol,
|
|
43
|
-
|
|
43
|
+
...otherProps
|
|
44
44
|
}) => {
|
|
45
45
|
useInsertionEffect(() => {
|
|
46
46
|
import('./styles.scss')
|
|
@@ -88,6 +88,7 @@ const TextInput = ({
|
|
|
88
88
|
placeholder={placeholder}
|
|
89
89
|
autoComplete={autoComplete}
|
|
90
90
|
{...field}
|
|
91
|
+
{...otherProps}
|
|
91
92
|
/>
|
|
92
93
|
<FormDescription className="s-1" description={description} name={name} />
|
|
93
94
|
</InputWrapper>
|
|
@@ -1157,6 +1157,15 @@ exports[`Storyshots a/Label Compact 1`] = `
|
|
|
1157
1157
|
|
|
1158
1158
|
label
|
|
1159
1159
|
</span>,
|
|
1160
|
+
<span
|
|
1161
|
+
className="base label x-outline-inputs modifierCompact"
|
|
1162
|
+
>
|
|
1163
|
+
This is a
|
|
1164
|
+
|
|
1165
|
+
outline-inputs
|
|
1166
|
+
|
|
1167
|
+
label
|
|
1168
|
+
</span>,
|
|
1160
1169
|
<span
|
|
1161
1170
|
className="base label x-heading modifierCompact"
|
|
1162
1171
|
>
|
|
@@ -1540,6 +1549,15 @@ exports[`Storyshots a/Label Ghost 1`] = `
|
|
|
1540
1549
|
|
|
1541
1550
|
label
|
|
1542
1551
|
</span>,
|
|
1552
|
+
<span
|
|
1553
|
+
className="base label x-outline-inputs modifierGhost"
|
|
1554
|
+
>
|
|
1555
|
+
This is a
|
|
1556
|
+
|
|
1557
|
+
outline-inputs
|
|
1558
|
+
|
|
1559
|
+
label
|
|
1560
|
+
</span>,
|
|
1543
1561
|
<span
|
|
1544
1562
|
className="base label x-heading modifierGhost"
|
|
1545
1563
|
>
|
|
@@ -1923,6 +1941,15 @@ exports[`Storyshots a/Label Normal 1`] = `
|
|
|
1923
1941
|
|
|
1924
1942
|
label
|
|
1925
1943
|
</span>,
|
|
1944
|
+
<span
|
|
1945
|
+
className="base label x-outline-inputs"
|
|
1946
|
+
>
|
|
1947
|
+
This is a
|
|
1948
|
+
|
|
1949
|
+
outline-inputs
|
|
1950
|
+
|
|
1951
|
+
label
|
|
1952
|
+
</span>,
|
|
1926
1953
|
<span
|
|
1927
1954
|
className="base label x-heading"
|
|
1928
1955
|
>
|
|
@@ -2864,6 +2891,25 @@ exports[`Storyshots a/Quote Base 1`] = `
|
|
|
2864
2891
|
</div>
|
|
2865
2892
|
`;
|
|
2866
2893
|
|
|
2894
|
+
exports[`Storyshots a/Removable Base 1`] = `
|
|
2895
|
+
<div
|
|
2896
|
+
className="base removable"
|
|
2897
|
+
>
|
|
2898
|
+
Sample Removable
|
|
2899
|
+
<button
|
|
2900
|
+
className="close-button"
|
|
2901
|
+
onClick={[Function]}
|
|
2902
|
+
type="button"
|
|
2903
|
+
>
|
|
2904
|
+
<span
|
|
2905
|
+
className="icon"
|
|
2906
|
+
>
|
|
2907
|
+
Y
|
|
2908
|
+
</span>
|
|
2909
|
+
</button>
|
|
2910
|
+
</div>
|
|
2911
|
+
`;
|
|
2912
|
+
|
|
2867
2913
|
exports[`Storyshots a/SVG Animated 1`] = `
|
|
2868
2914
|
[
|
|
2869
2915
|
<svg
|
|
@@ -3527,6 +3573,16 @@ exports[`Storyshots b/Button Arrow Left 1`] = `
|
|
|
3527
3573
|
|
|
3528
3574
|
button
|
|
3529
3575
|
</button>,
|
|
3576
|
+
<button
|
|
3577
|
+
className="base button x-outline-inputs arrow-left"
|
|
3578
|
+
type="button"
|
|
3579
|
+
>
|
|
3580
|
+
This is a
|
|
3581
|
+
|
|
3582
|
+
outline-inputs
|
|
3583
|
+
|
|
3584
|
+
button
|
|
3585
|
+
</button>,
|
|
3530
3586
|
<button
|
|
3531
3587
|
className="base button x-heading arrow-left"
|
|
3532
3588
|
type="button"
|
|
@@ -4044,6 +4100,20 @@ exports[`Storyshots b/Button Arrow Left Simple 1`] = `
|
|
|
4044
4100
|
button
|
|
4045
4101
|
</span>
|
|
4046
4102
|
</button>,
|
|
4103
|
+
<button
|
|
4104
|
+
className="base button x-outline-inputs modifierSimple arrow-left"
|
|
4105
|
+
type="button"
|
|
4106
|
+
>
|
|
4107
|
+
<span
|
|
4108
|
+
className="modifierUnderlined"
|
|
4109
|
+
>
|
|
4110
|
+
This is a
|
|
4111
|
+
|
|
4112
|
+
outline-inputs
|
|
4113
|
+
|
|
4114
|
+
button
|
|
4115
|
+
</span>
|
|
4116
|
+
</button>,
|
|
4047
4117
|
<button
|
|
4048
4118
|
className="base button x-heading modifierSimple arrow-left"
|
|
4049
4119
|
type="button"
|
|
@@ -4545,6 +4615,16 @@ exports[`Storyshots b/Button Arrow Right 1`] = `
|
|
|
4545
4615
|
|
|
4546
4616
|
button
|
|
4547
4617
|
</button>,
|
|
4618
|
+
<button
|
|
4619
|
+
className="base button x-outline-inputs arrow-right"
|
|
4620
|
+
type="button"
|
|
4621
|
+
>
|
|
4622
|
+
This is a
|
|
4623
|
+
|
|
4624
|
+
outline-inputs
|
|
4625
|
+
|
|
4626
|
+
button
|
|
4627
|
+
</button>,
|
|
4548
4628
|
<button
|
|
4549
4629
|
className="base button x-heading arrow-right"
|
|
4550
4630
|
type="button"
|
|
@@ -5062,6 +5142,20 @@ exports[`Storyshots b/Button Arrow Right Simple 1`] = `
|
|
|
5062
5142
|
button
|
|
5063
5143
|
</span>
|
|
5064
5144
|
</button>,
|
|
5145
|
+
<button
|
|
5146
|
+
className="base button x-outline-inputs modifierSimple arrow-right"
|
|
5147
|
+
type="button"
|
|
5148
|
+
>
|
|
5149
|
+
<span
|
|
5150
|
+
className="modifierUnderlined"
|
|
5151
|
+
>
|
|
5152
|
+
This is a
|
|
5153
|
+
|
|
5154
|
+
outline-inputs
|
|
5155
|
+
|
|
5156
|
+
button
|
|
5157
|
+
</span>
|
|
5158
|
+
</button>,
|
|
5065
5159
|
<button
|
|
5066
5160
|
className="base button x-heading modifierSimple arrow-right"
|
|
5067
5161
|
type="button"
|
|
@@ -5572,6 +5666,16 @@ exports[`Storyshots b/Button Compact 1`] = `
|
|
|
5572
5666
|
|
|
5573
5667
|
button
|
|
5574
5668
|
</button>,
|
|
5669
|
+
<button
|
|
5670
|
+
className="base button x-outline-inputs modifierCompact"
|
|
5671
|
+
type="button"
|
|
5672
|
+
>
|
|
5673
|
+
This is a
|
|
5674
|
+
|
|
5675
|
+
outline-inputs
|
|
5676
|
+
|
|
5677
|
+
button
|
|
5678
|
+
</button>,
|
|
5575
5679
|
<button
|
|
5576
5680
|
className="base button x-heading modifierCompact"
|
|
5577
5681
|
type="button"
|
|
@@ -6020,6 +6124,17 @@ exports[`Storyshots b/Button Disabled 1`] = `
|
|
|
6020
6124
|
|
|
6021
6125
|
button
|
|
6022
6126
|
</button>,
|
|
6127
|
+
<button
|
|
6128
|
+
className="base button x-outline-inputs"
|
|
6129
|
+
disabled={true}
|
|
6130
|
+
type="button"
|
|
6131
|
+
>
|
|
6132
|
+
This is a
|
|
6133
|
+
|
|
6134
|
+
outline-inputs
|
|
6135
|
+
|
|
6136
|
+
button
|
|
6137
|
+
</button>,
|
|
6023
6138
|
<button
|
|
6024
6139
|
className="base button x-heading"
|
|
6025
6140
|
disabled={true}
|
|
@@ -6487,6 +6602,17 @@ exports[`Storyshots b/Button Disabled Arrow Left 1`] = `
|
|
|
6487
6602
|
|
|
6488
6603
|
button
|
|
6489
6604
|
</button>,
|
|
6605
|
+
<button
|
|
6606
|
+
className="base button x-outline-inputs arrow-left"
|
|
6607
|
+
disabled={true}
|
|
6608
|
+
type="button"
|
|
6609
|
+
>
|
|
6610
|
+
This is a
|
|
6611
|
+
|
|
6612
|
+
outline-inputs
|
|
6613
|
+
|
|
6614
|
+
button
|
|
6615
|
+
</button>,
|
|
6490
6616
|
<button
|
|
6491
6617
|
className="base button x-heading arrow-left"
|
|
6492
6618
|
disabled={true}
|
|
@@ -6954,6 +7080,17 @@ exports[`Storyshots b/Button Disabled Arrow Right 1`] = `
|
|
|
6954
7080
|
|
|
6955
7081
|
button
|
|
6956
7082
|
</button>,
|
|
7083
|
+
<button
|
|
7084
|
+
className="base button x-outline-inputs arrow-right"
|
|
7085
|
+
disabled={true}
|
|
7086
|
+
type="button"
|
|
7087
|
+
>
|
|
7088
|
+
This is a
|
|
7089
|
+
|
|
7090
|
+
outline-inputs
|
|
7091
|
+
|
|
7092
|
+
button
|
|
7093
|
+
</button>,
|
|
6957
7094
|
<button
|
|
6958
7095
|
className="base button x-heading arrow-right"
|
|
6959
7096
|
disabled={true}
|
|
@@ -7430,6 +7567,17 @@ exports[`Storyshots b/Button Ghost Disabled 1`] = `
|
|
|
7430
7567
|
|
|
7431
7568
|
button
|
|
7432
7569
|
</button>,
|
|
7570
|
+
<button
|
|
7571
|
+
className="base button x-outline-inputs modifierGhost"
|
|
7572
|
+
disabled={true}
|
|
7573
|
+
type="button"
|
|
7574
|
+
>
|
|
7575
|
+
This is a
|
|
7576
|
+
|
|
7577
|
+
outline-inputs
|
|
7578
|
+
|
|
7579
|
+
button
|
|
7580
|
+
</button>,
|
|
7433
7581
|
<button
|
|
7434
7582
|
className="base button x-heading modifierGhost"
|
|
7435
7583
|
disabled={true}
|
|
@@ -7874,6 +8022,16 @@ exports[`Storyshots b/Button Ghosts 1`] = `
|
|
|
7874
8022
|
|
|
7875
8023
|
button
|
|
7876
8024
|
</button>,
|
|
8025
|
+
<button
|
|
8026
|
+
className="base button x-outline-inputs modifierGhost"
|
|
8027
|
+
type="button"
|
|
8028
|
+
>
|
|
8029
|
+
This is a
|
|
8030
|
+
|
|
8031
|
+
outline-inputs
|
|
8032
|
+
|
|
8033
|
+
button
|
|
8034
|
+
</button>,
|
|
7877
8035
|
<button
|
|
7878
8036
|
className="base button x-heading modifierGhost"
|
|
7879
8037
|
type="button"
|
|
@@ -8299,6 +8457,16 @@ exports[`Storyshots b/Button Gradient 1`] = `
|
|
|
8299
8457
|
|
|
8300
8458
|
button
|
|
8301
8459
|
</button>,
|
|
8460
|
+
<button
|
|
8461
|
+
className="base button x-outline-inputs modifierGradient"
|
|
8462
|
+
type="button"
|
|
8463
|
+
>
|
|
8464
|
+
This is a
|
|
8465
|
+
|
|
8466
|
+
outline-inputs
|
|
8467
|
+
|
|
8468
|
+
button
|
|
8469
|
+
</button>,
|
|
8302
8470
|
<button
|
|
8303
8471
|
className="base button x-heading modifierGradient"
|
|
8304
8472
|
type="button"
|
|
@@ -9437,6 +9605,47 @@ exports[`Storyshots b/Button Loading 1`] = `
|
|
|
9437
9605
|
</svg>
|
|
9438
9606
|
</div>
|
|
9439
9607
|
</button>,
|
|
9608
|
+
<button
|
|
9609
|
+
className="base button x-outline-inputs"
|
|
9610
|
+
type="button"
|
|
9611
|
+
>
|
|
9612
|
+
<div
|
|
9613
|
+
className="base loading-circle"
|
|
9614
|
+
style={
|
|
9615
|
+
{
|
|
9616
|
+
"--height-width": "1.15em",
|
|
9617
|
+
"--stroke-width": undefined,
|
|
9618
|
+
"--x": "var(--on-x)",
|
|
9619
|
+
}
|
|
9620
|
+
}
|
|
9621
|
+
>
|
|
9622
|
+
<svg
|
|
9623
|
+
className="svg-circle"
|
|
9624
|
+
preserveAspectRatio="xMinYMin meet"
|
|
9625
|
+
style={
|
|
9626
|
+
{
|
|
9627
|
+
"--animation-duration": "2s",
|
|
9628
|
+
}
|
|
9629
|
+
}
|
|
9630
|
+
version="1.1"
|
|
9631
|
+
viewBox="25 25 50 50"
|
|
9632
|
+
x="0px"
|
|
9633
|
+
xmlSpace="preserve"
|
|
9634
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9635
|
+
y="0px"
|
|
9636
|
+
>
|
|
9637
|
+
<circle
|
|
9638
|
+
className="path"
|
|
9639
|
+
cx="50"
|
|
9640
|
+
cy="50"
|
|
9641
|
+
fill="none"
|
|
9642
|
+
r="20"
|
|
9643
|
+
strokeLinecap="round"
|
|
9644
|
+
strokeMiterlimit="10"
|
|
9645
|
+
/>
|
|
9646
|
+
</svg>
|
|
9647
|
+
</div>
|
|
9648
|
+
</button>,
|
|
9440
9649
|
<button
|
|
9441
9650
|
className="base button x-heading"
|
|
9442
9651
|
type="button"
|
|
@@ -10451,6 +10660,16 @@ exports[`Storyshots b/Button Normal 1`] = `
|
|
|
10451
10660
|
|
|
10452
10661
|
button
|
|
10453
10662
|
</button>,
|
|
10663
|
+
<button
|
|
10664
|
+
className="base button x-outline-inputs"
|
|
10665
|
+
type="button"
|
|
10666
|
+
>
|
|
10667
|
+
This is a
|
|
10668
|
+
|
|
10669
|
+
outline-inputs
|
|
10670
|
+
|
|
10671
|
+
button
|
|
10672
|
+
</button>,
|
|
10454
10673
|
<button
|
|
10455
10674
|
className="base button x-heading"
|
|
10456
10675
|
type="button"
|
|
@@ -10968,6 +11187,20 @@ exports[`Storyshots b/Button Simple 1`] = `
|
|
|
10968
11187
|
button
|
|
10969
11188
|
</span>
|
|
10970
11189
|
</button>,
|
|
11190
|
+
<button
|
|
11191
|
+
className="base button x-outline-inputs modifierSimple"
|
|
11192
|
+
type="button"
|
|
11193
|
+
>
|
|
11194
|
+
<span
|
|
11195
|
+
className="modifierUnderlined"
|
|
11196
|
+
>
|
|
11197
|
+
This is a
|
|
11198
|
+
|
|
11199
|
+
outline-inputs
|
|
11200
|
+
|
|
11201
|
+
button
|
|
11202
|
+
</span>
|
|
11203
|
+
</button>,
|
|
10971
11204
|
<button
|
|
10972
11205
|
className="base button x-heading modifierSimple"
|
|
10973
11206
|
type="button"
|
|
@@ -11584,6 +11817,21 @@ exports[`Storyshots b/Button Simple Disabled 1`] = `
|
|
|
11584
11817
|
button
|
|
11585
11818
|
</span>
|
|
11586
11819
|
</button>,
|
|
11820
|
+
<button
|
|
11821
|
+
className="base button x-outline-inputs modifierSimple"
|
|
11822
|
+
disabled={true}
|
|
11823
|
+
type="button"
|
|
11824
|
+
>
|
|
11825
|
+
<span
|
|
11826
|
+
className="modifierUnderlined"
|
|
11827
|
+
>
|
|
11828
|
+
This is a
|
|
11829
|
+
|
|
11830
|
+
outline-inputs
|
|
11831
|
+
|
|
11832
|
+
button
|
|
11833
|
+
</span>
|
|
11834
|
+
</button>,
|
|
11587
11835
|
<button
|
|
11588
11836
|
className="base button x-heading modifierSimple"
|
|
11589
11837
|
disabled={true}
|
|
@@ -12106,6 +12354,16 @@ exports[`Storyshots b/Button/Group Base 1`] = `
|
|
|
12106
12354
|
|
|
12107
12355
|
button
|
|
12108
12356
|
</button>
|
|
12357
|
+
<button
|
|
12358
|
+
className="base button x-outline-inputs"
|
|
12359
|
+
type="button"
|
|
12360
|
+
>
|
|
12361
|
+
This is a
|
|
12362
|
+
|
|
12363
|
+
outline-inputs
|
|
12364
|
+
|
|
12365
|
+
button
|
|
12366
|
+
</button>
|
|
12109
12367
|
<button
|
|
12110
12368
|
className="base button x-heading"
|
|
12111
12369
|
type="button"
|
|
@@ -13222,6 +13480,35 @@ exports[`Storyshots b/Logo Color 1`] = `
|
|
|
13222
13480
|
}
|
|
13223
13481
|
/>
|
|
13224
13482
|
</svg>,
|
|
13483
|
+
<svg
|
|
13484
|
+
className="base svg base logo x-outline-inputs y-transparent"
|
|
13485
|
+
height="2em"
|
|
13486
|
+
preserveAspectRatio="xMinYMin meet"
|
|
13487
|
+
version="1.1"
|
|
13488
|
+
viewBox="0 0 156 30"
|
|
13489
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13490
|
+
>
|
|
13491
|
+
<use
|
|
13492
|
+
className=""
|
|
13493
|
+
href="/logo.svg#logo_squares"
|
|
13494
|
+
id="logo_squares"
|
|
13495
|
+
style={
|
|
13496
|
+
{
|
|
13497
|
+
"style": undefined,
|
|
13498
|
+
}
|
|
13499
|
+
}
|
|
13500
|
+
/>
|
|
13501
|
+
<use
|
|
13502
|
+
className=""
|
|
13503
|
+
href="/logo.svg#logo_pareto"
|
|
13504
|
+
id="logo_pareto"
|
|
13505
|
+
style={
|
|
13506
|
+
{
|
|
13507
|
+
"style": undefined,
|
|
13508
|
+
}
|
|
13509
|
+
}
|
|
13510
|
+
/>
|
|
13511
|
+
</svg>,
|
|
13225
13512
|
<svg
|
|
13226
13513
|
className="base svg base logo x-heading y-transparent"
|
|
13227
13514
|
height="2em"
|
|
@@ -14215,6 +14502,25 @@ exports[`Storyshots b/Logo Square 1`] = `
|
|
|
14215
14502
|
}
|
|
14216
14503
|
/>
|
|
14217
14504
|
</svg>,
|
|
14505
|
+
<svg
|
|
14506
|
+
className="base svg base logo x-outline-inputs y-transparent"
|
|
14507
|
+
height="2em"
|
|
14508
|
+
preserveAspectRatio="xMinYMin meet"
|
|
14509
|
+
version="1.1"
|
|
14510
|
+
viewBox="0 0 39 39"
|
|
14511
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
14512
|
+
>
|
|
14513
|
+
<use
|
|
14514
|
+
className=""
|
|
14515
|
+
href="/logo_square.svg#logo"
|
|
14516
|
+
id="logo"
|
|
14517
|
+
style={
|
|
14518
|
+
{
|
|
14519
|
+
"style": undefined,
|
|
14520
|
+
}
|
|
14521
|
+
}
|
|
14522
|
+
/>
|
|
14523
|
+
</svg>,
|
|
14218
14524
|
<svg
|
|
14219
14525
|
className="base svg base logo x-heading y-transparent"
|
|
14220
14526
|
height="2em"
|