@conveyorhq/arrow-ds 1.30.1 → 1.31.1
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/package.json +17 -17
- package/public/components/Avatar/Avatar.js +20 -19
- package/public/components/Button/Button.js +2 -2
- package/public/components/ConveyorLogo/ConveyorLogo.js +6 -6
- package/public/components/Modal/Modal.js +2 -3
- package/public/components/Select/Select.js +4 -4
- package/public/components/Select/SelectPopover.js +6 -6
- package/public/components/Select/theme.js +22 -22
- package/public/components/Svg/Svg.d.ts +3 -3
- package/public/components/Svg/Svg.js +1 -2
- package/public/css/styles.css +52 -8
- package/public/css/styles.min.css +1 -1
- package/public/css/styles.min.css.map +1 -1
- package/public/storybook-components/EnumTable.js +2 -1
- package/public/style-dictionary/dist/tokens.css +1 -0
- package/public/style-dictionary/dist/tokens.d.ts +25 -24
- package/public/style-dictionary/dist/tokens.js +2 -1
- package/public/style-dictionary/dist/tokens.module.js +2 -1
- package/src/components/Avatar/Avatar.tsx +20 -19
- package/src/components/Button/Button.tsx +3 -3
- package/src/components/Button/index.css +12 -1
- package/src/components/Card/Card.story.mdx +45 -37
- package/src/components/ConveyorLogo/ConveyorLogo.tsx +6 -6
- package/src/components/Modal/Modal.tsx +3 -4
- package/src/components/Modal/index.css +8 -3
- package/src/components/Select/Select.tsx +4 -4
- package/src/components/Select/SelectPopover.tsx +6 -6
- package/src/components/Select/theme.ts +22 -22
- package/src/components/Svg/Svg.story.mdx +36 -0
- package/src/components/Svg/Svg.tsx +6 -4
- package/src/components/Tooltip/Tooltip.story.mdx +3 -3
- package/src/docs/Colors.story.mdx +12 -12
- package/src/docs/Spacing.story.mdx +3 -3
- package/src/docs/Typography.story.mdx +21 -23
- package/src/storybook-components/EnumTable.tsx +3 -2
- package/src/tokens/borders.ts +6 -0
- package/src/tokens/box-shadow.ts +3 -0
- package/src/tokens/colors.ts +6 -0
- package/src/tokens/font-family.ts +3 -0
- package/src/tokens/font-size.ts +3 -0
- package/src/tokens/font-weight.ts +3 -0
- package/src/tokens/height.ts +3 -0
- package/src/tokens/index.ts +3 -2
- package/src/tokens/letter-spacing.ts +3 -0
- package/src/tokens/line-height.ts +3 -0
- package/src/tokens/margin.ts +3 -0
- package/src/tokens/padding.ts +3 -0
- package/src/tokens/screens.ts +3 -0
- package/src/tokens/sizing-scale.ts +6 -0
- package/src/tokens/width.ts +9 -0
- package/src/tokens/will-change.ts +3 -0
- package/src/tokens/z-index.ts +3 -0
- package/public/components/Svg/Svg.story.d.ts +0 -1
- package/public/components/Svg/Svg.story.js +0 -14
- package/public/style-dictionary/src/border-radius.js +0 -11
- package/public/style-dictionary/src/border-width.js +0 -10
- package/public/style-dictionary/src/color.js +0 -97
- package/public/style-dictionary/src/font-size.js +0 -15
- package/public/style-dictionary/src/font-weight.js +0 -7
- package/public/style-dictionary/src/height.js +0 -13
- package/public/style-dictionary/src/leading.js +0 -8
- package/public/style-dictionary/src/screen-width.js +0 -8
- package/public/style-dictionary/src/shadow.js +0 -19
- package/public/style-dictionary/src/spacing.js +0 -69
- package/public/style-dictionary/src/tracking.js +0 -7
- package/public/style-dictionary/src/type.js +0 -34
- package/public/style-dictionary/src/width.js +0 -32
- package/public/style-dictionary/src/z-index.js +0 -21
- package/src/components/Svg/Svg.md +0 -14
- package/src/components/Svg/Svg.story.tsx +0 -15
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@conveyorhq/arrow-ds",
|
|
3
3
|
"author": "Conveyor",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.31.1",
|
|
6
6
|
"description": "Arrow Design System",
|
|
7
7
|
"repository": "https://github.com/conveyor/arrow-ds",
|
|
8
8
|
"publishConfig": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"build:css": "yarn run postcss -c postcss.config.js -o public/css/styles.css src/css/styles.css",
|
|
57
57
|
"build:copy-files": "yarn run build:copy-svg && yarn run build:copy-style-dictionary",
|
|
58
58
|
"build:copy-svg": "copyfiles -u 1 src/**/*.svg public/",
|
|
59
|
-
"build:copy-style-dictionary": "copyfiles style-dictionary
|
|
59
|
+
"build:copy-style-dictionary": "copyfiles style-dictionary/dist/* style-dictionary/tailwind.config.js public/",
|
|
60
60
|
"minify:css": "csso public/css/styles.css --output public/css/styles.min.css --comments none --source-map file",
|
|
61
61
|
"storybook": "yarn run build && start-storybook --docs -p 9002 -c .storybook -s .storybook",
|
|
62
62
|
"build-storybook": "yarn run build && build-storybook --docs -c .storybook -s .storybook -o storybook-static",
|
|
@@ -95,20 +95,20 @@
|
|
|
95
95
|
]
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@babel/cli": "^7.
|
|
99
|
-
"@babel/core": "^7.
|
|
100
|
-
"@babel/plugin-proposal-class-properties": "^7.7
|
|
101
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.
|
|
102
|
-
"@babel/preset-env": "^7.
|
|
103
|
-
"@babel/preset-react": "^7.7
|
|
104
|
-
"@babel/preset-typescript": "^7.7
|
|
98
|
+
"@babel/cli": "^7.17.0",
|
|
99
|
+
"@babel/core": "^7.17.0",
|
|
100
|
+
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
101
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.16.7",
|
|
102
|
+
"@babel/preset-env": "^7.16.11",
|
|
103
|
+
"@babel/preset-react": "^7.16.7",
|
|
104
|
+
"@babel/preset-typescript": "^7.16.7",
|
|
105
105
|
"@commitlint/cli": "^13.0.0",
|
|
106
106
|
"@commitlint/config-conventional": "^13.0.0",
|
|
107
|
-
"@storybook/addon-actions": "^6.4.
|
|
108
|
-
"@storybook/addon-docs": "^6.4.
|
|
107
|
+
"@storybook/addon-actions": "^6.4.18",
|
|
108
|
+
"@storybook/addon-docs": "^6.4.18",
|
|
109
109
|
"@storybook/addon-postcss": "^2.0.0",
|
|
110
|
-
"@storybook/react": "^6.4.
|
|
111
|
-
"@storybook/theming": "^6.4.
|
|
110
|
+
"@storybook/react": "^6.4.18",
|
|
111
|
+
"@storybook/theming": "^6.4.18",
|
|
112
112
|
"@types/classnames": "^2.2.9",
|
|
113
113
|
"@types/codemirror": "^0.0.91",
|
|
114
114
|
"@types/d3-ease": "^1.0.9",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"@types/webpack": "^5.0.0",
|
|
127
127
|
"@typescript-eslint/eslint-plugin": "^4.18.0",
|
|
128
128
|
"@typescript-eslint/parser": "^4.18.0",
|
|
129
|
-
"autoprefixer": "^10.4.
|
|
129
|
+
"autoprefixer": "^10.4.2",
|
|
130
130
|
"babel-loader": "^8.0.6",
|
|
131
131
|
"babel-plugin-inline-react-svg": "^2.0.0",
|
|
132
132
|
"copyfiles": "^2.4.1",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"eslint-import-resolver-typescript": "^2.4.0",
|
|
139
139
|
"eslint-plugin-import": "^2.22.1",
|
|
140
140
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
141
|
-
"eslint-plugin-mdx": "^1.
|
|
141
|
+
"eslint-plugin-mdx": "^1.16.0",
|
|
142
142
|
"eslint-plugin-prettier": "^3.3.1",
|
|
143
143
|
"eslint-plugin-react": "^7.22.0",
|
|
144
144
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
@@ -155,9 +155,9 @@
|
|
|
155
155
|
"react-dom": "^16.11.0",
|
|
156
156
|
"react-is": "^16.12.0",
|
|
157
157
|
"regenerator-runtime": "^0.13.3",
|
|
158
|
-
"semantic-release": "^
|
|
158
|
+
"semantic-release": "^19.0.2",
|
|
159
159
|
"style-dictionary": "^3.1.1",
|
|
160
|
-
"tailwindcss": "^3.0.
|
|
160
|
+
"tailwindcss": "^3.0.18",
|
|
161
161
|
"ts-loader": "^6.2.1",
|
|
162
162
|
"typescript": "^4.2.3",
|
|
163
163
|
"webpack": "^5.0.0",
|
|
@@ -27,7 +27,7 @@ const react_1 = __importStar(require("react"));
|
|
|
27
27
|
const md5_1 = __importDefault(require("md5"));
|
|
28
28
|
const classnames_1 = __importDefault(require("classnames"));
|
|
29
29
|
const bem_1 = require("../../utilities/bem");
|
|
30
|
-
const tokens_1 = require("
|
|
30
|
+
const tokens_1 = require("../../../style-dictionary/dist/tokens");
|
|
31
31
|
const Box_1 = require("../Box");
|
|
32
32
|
const Icon_1 = require("../Icon");
|
|
33
33
|
const Flex_1 = require("../Flex");
|
|
@@ -39,35 +39,36 @@ const AvatarGroup_1 = require("./AvatarGroup");
|
|
|
39
39
|
const types_1 = require("./types");
|
|
40
40
|
const context_1 = require("./context");
|
|
41
41
|
const cn = bem_1.bemHOF("Avatar");
|
|
42
|
+
const { color } = tokens_1.tokens;
|
|
42
43
|
const SystemIcon = (props) => {
|
|
43
44
|
return (react_1.default.createElement(Svg_1.Svg, Object.assign({ viewBox: "0 0 32 32" }, props),
|
|
44
|
-
react_1.default.createElement("path", { fill:
|
|
45
|
-
react_1.default.createElement("path", { fill:
|
|
46
|
-
react_1.default.createElement("path", { fill:
|
|
47
|
-
react_1.default.createElement("path", { fill:
|
|
48
|
-
react_1.default.createElement("path", { fill:
|
|
45
|
+
react_1.default.createElement("path", { fill: color.brandGreen["400"], d: "M19.042 31.58c-1.17 0.275-2.389 0.42-3.642 0.42-0.24 0-0.479-0.005-0.716-0.016v-2.851c0-1.318-1.285-2.25-2.533-1.843-1.934 0.63-3.873 1.249-5.809 1.872-1.371-0.954-2.586-2.118-3.598-3.447l7.94-2.602c1.96-0.637 4.054-0.299 5.721 0.918s2.633 3.115 2.637 5.186l0.001 2.362z" }),
|
|
46
|
+
react_1.default.createElement("path", { fill: color.brandGreen["400"], d: "M20.856 31.037l0.004-8.342c-0.003-2.071 0.95-3.969 2.636-5.191 1.647-1.216 3.736-1.548 5.716-0.909l2.066 0.675c-0.117 1.502-0.441 2.946-0.943 4.302-0.876-0.286-1.751-0.576-2.627-0.861-1.23-0.401-2.48 0.525-2.48 1.824v6.057c-1.308 1.032-2.781 1.862-4.372 2.445z" }),
|
|
47
|
+
react_1.default.createElement("path", { fill: color.brandGreen["400"], d: "M31.314 15.338l-7.709-2.523c-1.98-0.64-3.471-2.149-4.105-4.12s-0.299-4.075 0.911-5.75l1.212-1.677c1.363 0.582 2.629 1.349 3.767 2.27-0.512 0.704-1.032 1.403-1.555 2.099-0.802 1.066-0.321 2.608 0.946 3.015l5.558 1.785c0.567 1.536 0.906 3.184 0.976 4.901z" }),
|
|
48
|
+
react_1.default.createElement("path", { fill: color.brandGreen["400"], d: "M14.89 0.008c0.169-0.005 0.339-0.008 0.509-0.008 1.534 0 3.017 0.218 4.421 0.624l-4.725 6.537c-1.211 1.675-3.098 2.645-5.159 2.648s-3.949-0.956-5.166-2.651l-1.287-1.776c0.971-1.099 2.091-2.063 3.327-2.859l1.565 2.223c0.764 1.085 2.365 1.090 3.135 0.008l3.379-4.747z" }),
|
|
49
|
+
react_1.default.createElement("path", { fill: color.brandGreen["400"], d: "M0.145 11.383c0.487-1.624 1.223-3.14 2.165-4.502l4.823 6.663c1.217 1.695 1.548 3.795 0.906 5.745-0.636 1.99-2.137 3.487-4.097 4.124l-2.253 0.733c-0.737-1.249-1.31-2.608-1.689-4.046l2.681-0.912c1.244-0.423 1.711-1.948 0.93-3.009-1.168-1.589-2.318-3.193-3.466-4.797z" })));
|
|
49
50
|
};
|
|
50
51
|
const SystemIconConveyor = (props) => (react_1.default.createElement(SystemIcon, Object.assign({}, props)));
|
|
51
52
|
exports.SystemIconConveyor = SystemIconConveyor;
|
|
52
53
|
const SystemIconAptible = (props) => (react_1.default.createElement(Svg_1.Svg, Object.assign({ viewBox: "0 0 40 32" }, props),
|
|
53
|
-
react_1.default.createElement("path", { fill:
|
|
54
|
-
react_1.default.createElement("path", { fill:
|
|
55
|
-
react_1.default.createElement("path", { fill:
|
|
56
|
-
react_1.default.createElement("path", { fill:
|
|
54
|
+
react_1.default.createElement("path", { fill: color.gold["400"], d: "M22.018 31.667h5.646v-11.538l11.291 11.538v-7.692l-16.937-17.308z" }),
|
|
55
|
+
react_1.default.createElement("path", { fill: color.gold["400"], d: "M27.777 0h-7.452l18.631 18.333v-7.333l-11.178-11z" }),
|
|
56
|
+
react_1.default.createElement("path", { fill: color.gold["400"], d: "M0 23.974v7.692l11.291-11.538v11.538h5.646v-25l-16.937 17.308z" }),
|
|
57
|
+
react_1.default.createElement("path", { fill: color.gold["400"], d: "M0 11v7.333l18.631-18.333h-7.522l-11.109 11z" })));
|
|
57
58
|
exports.SystemIconAptible = SystemIconAptible;
|
|
58
59
|
const avatarInitialBackgroundColors = [
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
color.green["600"],
|
|
61
|
+
color.gold["600"],
|
|
62
|
+
color.orange["600"],
|
|
63
|
+
color.red["600"],
|
|
64
|
+
color.pink["600"],
|
|
65
|
+
color.purple["600"],
|
|
66
|
+
color.blue["600"],
|
|
67
|
+
color.cyan["600"],
|
|
67
68
|
];
|
|
68
69
|
const Initials = ({ email, name, firstInitial, lastInitial, }) => {
|
|
69
70
|
const initialsBgColor = react_1.useMemo(() => {
|
|
70
|
-
const fallbackColor =
|
|
71
|
+
const fallbackColor = color.gray["600"];
|
|
71
72
|
if (!email)
|
|
72
73
|
return fallbackColor;
|
|
73
74
|
let hash = 0;
|
|
@@ -69,7 +69,7 @@ exports.Button = react_1.forwardRef(({ as: Component = "button", children, class
|
|
|
69
69
|
const isDisabled = disabled || isLoading;
|
|
70
70
|
const themeContext = react_1.useContext(contexts_1.ThemeContext);
|
|
71
71
|
const theme = themeProp || themeContext;
|
|
72
|
-
const buttonClassNames = classnames_1.default(bem_1.bem(cn), bem_1.bem(cn, { m: variant }), bem_1.bem(cn, { m: theme }), block
|
|
72
|
+
const buttonClassNames = classnames_1.default(bem_1.bem(cn), bem_1.bem(cn, { m: variant }), bem_1.bem(cn, { m: theme }), block && bem_1.bem(cn, { m: "block" }), getButtonSizeClasses(size, icon, children), depressed && bem_1.bem(cn, { m: "depressed" }), isDisabled && bem_1.bem(cn, { m: "disabled" }), className);
|
|
73
73
|
const iconClassNames = classnames_1.default(bem_1.bem(cn, { e: "icon" }), children && bem_1.bem(cn, { e: "icon", m: iconPosition }), isLoading && bem_1.bem(cn, { e: "icon", m: "invisible" }));
|
|
74
74
|
const iconProps = icon
|
|
75
75
|
? {
|
|
@@ -85,7 +85,7 @@ exports.Button = react_1.forwardRef(({ as: Component = "button", children, class
|
|
|
85
85
|
type = "button";
|
|
86
86
|
}
|
|
87
87
|
const propsIfLink = Component === Link_1.Link ? { noStyles: true } : {};
|
|
88
|
-
return (react_1.default.createElement(Component, Object.assign({ type: type, className: buttonClassNames, disabled:
|
|
88
|
+
return (react_1.default.createElement(Component, Object.assign({ type: type, className: buttonClassNames, disabled: isDisabled, ref: ref }, propsIfLink, rest),
|
|
89
89
|
icon && iconProps && iconPosition === BUTTON_ICON_POSITION.LEFT && (react_1.default.createElement(Icon_1.Icon, Object.assign({}, iconProps))),
|
|
90
90
|
react_1.default.createElement("span", { className: classnames_1.default(bem_1.bem(cn, { e: "content" }), isLoading && bem_1.bem(cn, { e: "content", m: "invisible" })) }, children),
|
|
91
91
|
icon && iconProps && iconPosition === BUTTON_ICON_POSITION.RIGHT && (react_1.default.createElement(Icon_1.Icon, Object.assign({}, iconProps))),
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ConveyorLogo = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const types_1 = require("../../types");
|
|
9
|
-
const tokens_1 = require("
|
|
9
|
+
const tokens_1 = require("../../../style-dictionary/dist/tokens");
|
|
10
10
|
const Svg_1 = require("../Svg");
|
|
11
11
|
const WIDTH = 165;
|
|
12
12
|
const HEIGHT = 32;
|
|
@@ -14,17 +14,17 @@ const RATIO = WIDTH / HEIGHT;
|
|
|
14
14
|
const widthFromHeight = (height) => Math.ceil(height * RATIO);
|
|
15
15
|
const ConveyorLogo = ({ height = HEIGHT, monochrome = false, theme = types_1.THEME.PRODUCT, variant = "wordmark", className, ...rest }) => {
|
|
16
16
|
const wordmarkColor = {
|
|
17
|
-
brand: tokens_1.
|
|
18
|
-
product: tokens_1.
|
|
17
|
+
brand: tokens_1.tokens.color.white,
|
|
18
|
+
product: tokens_1.tokens.color.brandBlack,
|
|
19
19
|
};
|
|
20
20
|
const iconColorFunction = () => {
|
|
21
21
|
if (monochrome && theme === types_1.THEME.PRODUCT) {
|
|
22
|
-
return tokens_1.
|
|
22
|
+
return tokens_1.tokens.color.brandBlack;
|
|
23
23
|
}
|
|
24
24
|
if (monochrome && theme === types_1.THEME.BRAND) {
|
|
25
|
-
return tokens_1.
|
|
25
|
+
return tokens_1.tokens.color.white;
|
|
26
26
|
}
|
|
27
|
-
return tokens_1.
|
|
27
|
+
return tokens_1.tokens.color.brandGreen[400];
|
|
28
28
|
};
|
|
29
29
|
const iconColor = iconColorFunction();
|
|
30
30
|
return (react_1.default.createElement(Svg_1.Svg, Object.assign({ width: variant === "wordmark" ? widthFromHeight(height) : height, height: height, viewBox: variant === "wordmark" ? `0 0 ${WIDTH} ${HEIGHT}` : "0 0 32 32", className: className }, rest),
|
|
@@ -28,7 +28,6 @@ const classnames_1 = __importDefault(require("classnames"));
|
|
|
28
28
|
const react_focus_lock_1 = __importDefault(require("react-focus-lock"));
|
|
29
29
|
const react_remove_scroll_1 = require("react-remove-scroll");
|
|
30
30
|
const Box_1 = require("../Box");
|
|
31
|
-
const Fixed_1 = require("../Fixed");
|
|
32
31
|
const Flex_1 = require("../Flex");
|
|
33
32
|
const Portal_1 = require("../Portal");
|
|
34
33
|
const Description_1 = require("../Description");
|
|
@@ -76,7 +75,7 @@ const ModalFooterMultiStep = ({ steps, currentStep, leftButtonLabel, rightButton
|
|
|
76
75
|
react_1.default.createElement(Flex_1.Flex, { className: bem_1.bem(cn, { e: "buttonLabels" }) },
|
|
77
76
|
react_1.default.createElement(Box_1.Box, { className: bem_1.bem(cn, { e: "buttonLabel", m: "left" }) }, leftButtonLabel),
|
|
78
77
|
react_1.default.createElement(Box_1.Box, { className: bem_1.bem(cn, { e: "buttonLabel", m: "right" }) }, rightButtonLabel)),
|
|
79
|
-
react_1.default.createElement(Box_1.Box, { className: "
|
|
78
|
+
react_1.default.createElement(Box_1.Box, { className: bem_1.bem(cn, { e: "progressDots-container" }) },
|
|
80
79
|
children,
|
|
81
80
|
react_1.default.createElement(Flex_1.Flex, { className: bem_1.bem(cn, { e: "progressDots" }) },
|
|
82
81
|
react_1.default.createElement(Stack_1.Stack, { spacing: 5 }, [...new Array(steps).keys()].map((dot, index) => (react_1.default.createElement(Box_1.Box, { key: dot, className: classnames_1.default([
|
|
@@ -109,7 +108,7 @@ const Modal = (props) => {
|
|
|
109
108
|
react_1.default.createElement(Portal_1.Portal, null,
|
|
110
109
|
react_1.default.createElement(react_focus_lock_1.default, { autoFocus: autoFocus, returnFocus: true },
|
|
111
110
|
react_1.default.createElement(react_remove_scroll_1.RemoveScroll, null,
|
|
112
|
-
react_1.default.createElement(
|
|
111
|
+
react_1.default.createElement(Box_1.Box, { className: bem_1.bem(`${cn}Container`) },
|
|
113
112
|
react_1.default.createElement(Box_1.Box, Object.assign({ ref: modalElement, className: classnames_1.default([
|
|
114
113
|
bem_1.bem(cn),
|
|
115
114
|
bem_1.bem(cn, { m: size }),
|
|
@@ -28,7 +28,7 @@ const classnames_1 = __importDefault(require("classnames"));
|
|
|
28
28
|
const react_select_1 = __importStar(require("react-select"));
|
|
29
29
|
const creatable_1 = __importDefault(require("react-select/creatable"));
|
|
30
30
|
const async_1 = __importDefault(require("react-select/async"));
|
|
31
|
-
const tokens_1 = require("
|
|
31
|
+
const tokens_1 = require("../../../style-dictionary/dist/tokens");
|
|
32
32
|
const types_1 = require("../../types");
|
|
33
33
|
const utilities_1 = require("../../utilities");
|
|
34
34
|
const Box_1 = require("../Box");
|
|
@@ -88,14 +88,14 @@ const generateHardcodedProps = ({ controlHeight, menuInPortal, menuRef, componen
|
|
|
88
88
|
...styles,
|
|
89
89
|
menuPortal: (base) => ({
|
|
90
90
|
...base,
|
|
91
|
-
zIndex: tokens_1.zIndex.max,
|
|
91
|
+
zIndex: tokens_1.tokens.zIndex.max,
|
|
92
92
|
}),
|
|
93
93
|
singleValue: (base, state) => {
|
|
94
94
|
return {
|
|
95
95
|
...base,
|
|
96
96
|
paddingLeft: state.selectProps.isSearchable ? "2px" : "0",
|
|
97
97
|
color: state.selectProps.menuIsOpen && state.selectProps.isSearchable
|
|
98
|
-
? tokens_1.
|
|
98
|
+
? tokens_1.tokens.color.gray["600"]
|
|
99
99
|
: base.color,
|
|
100
100
|
};
|
|
101
101
|
},
|
|
@@ -110,7 +110,7 @@ const generateHardcodedProps = ({ controlHeight, menuInPortal, menuRef, componen
|
|
|
110
110
|
},
|
|
111
111
|
};
|
|
112
112
|
};
|
|
113
|
-
const SelectBase = ({ variant: variantProp = types_1.STATUS_VARIANT.DEFAULT, id: idProp, className, height: controlHeight = utilities_1.toNumber(tokens_1.height["10"]), menuInPortal = false, menuRef, components, optionsMessage, styles, ...rest }) => {
|
|
113
|
+
const SelectBase = ({ variant: variantProp = types_1.STATUS_VARIANT.DEFAULT, id: idProp, className, height: controlHeight = utilities_1.toNumber(tokens_1.tokens.height["10"]), menuInPortal = false, menuRef, components, optionsMessage, styles, ...rest }) => {
|
|
114
114
|
const { variant: variantContext, id: idContext } = react_1.useContext(FormGroupContext_1.FormGroupContext);
|
|
115
115
|
const id = idContext || idProp;
|
|
116
116
|
const variant = variantContext || variantProp;
|
|
@@ -26,7 +26,7 @@ exports.SelectPopover = void 0;
|
|
|
26
26
|
const react_1 = __importStar(require("react"));
|
|
27
27
|
const classnames_1 = __importDefault(require("classnames"));
|
|
28
28
|
const react_focus_lock_1 = __importDefault(require("react-focus-lock"));
|
|
29
|
-
const tokens_1 = require("
|
|
29
|
+
const tokens_1 = require("../../../style-dictionary/dist/tokens");
|
|
30
30
|
const hooks_1 = require("../../hooks");
|
|
31
31
|
const Box_1 = require("../Box");
|
|
32
32
|
const Flex_1 = require("../Flex");
|
|
@@ -49,19 +49,19 @@ const SelectPopover = ({ readView, cancelButton, onCancelEdit, preventOutsideCli
|
|
|
49
49
|
const selectStyles = {
|
|
50
50
|
control: (provided) => ({
|
|
51
51
|
...provided,
|
|
52
|
-
width: `calc(100% - ${tokens_1.tokens.
|
|
53
|
-
margin: tokens_1.tokens.
|
|
52
|
+
width: `calc(100% - ${tokens_1.tokens.spacing[6]})`,
|
|
53
|
+
margin: tokens_1.tokens.spacing[3],
|
|
54
54
|
}),
|
|
55
55
|
menu: (provided) => ({
|
|
56
56
|
...provided,
|
|
57
57
|
boxShadow: "none !important",
|
|
58
58
|
borderRadius: "0 !important",
|
|
59
59
|
zIndex: "1 !important",
|
|
60
|
-
backgroundColor: tokens_1.tokens.
|
|
60
|
+
backgroundColor: tokens_1.tokens.color.white,
|
|
61
61
|
position: "relative",
|
|
62
|
-
marginTop: tokens_1.tokens.
|
|
62
|
+
marginTop: tokens_1.tokens.spacing[3],
|
|
63
63
|
marginBottom: 0,
|
|
64
|
-
borderTop: `1px solid ${tokens_1.tokens.
|
|
64
|
+
borderTop: `1px solid ${tokens_1.tokens.color.gray[300]}`,
|
|
65
65
|
maxHeight: "184px",
|
|
66
66
|
overflowY: "auto",
|
|
67
67
|
}),
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.adsTheme = void 0;
|
|
4
|
-
const tokens_1 = require("
|
|
4
|
+
const tokens_1 = require("../../../style-dictionary/dist/tokens");
|
|
5
5
|
const toNumber_1 = require("../../utilities/toNumber");
|
|
6
6
|
exports.adsTheme = {
|
|
7
|
-
borderRadius: toNumber_1.toNumber(tokens_1.borderRadius.DEFAULT),
|
|
7
|
+
borderRadius: toNumber_1.toNumber(tokens_1.tokens.borderRadius.DEFAULT),
|
|
8
8
|
colors: {
|
|
9
|
-
danger: tokens_1.
|
|
10
|
-
dangerLight: tokens_1.
|
|
11
|
-
neutral0: tokens_1.
|
|
12
|
-
neutral5: tokens_1.
|
|
13
|
-
neutral10: tokens_1.
|
|
14
|
-
neutral20: tokens_1.
|
|
15
|
-
neutral30: tokens_1.
|
|
16
|
-
neutral40: tokens_1.
|
|
17
|
-
neutral50: tokens_1.
|
|
18
|
-
neutral60: tokens_1.
|
|
19
|
-
neutral70: tokens_1.
|
|
20
|
-
neutral80: tokens_1.
|
|
21
|
-
neutral90: tokens_1.
|
|
22
|
-
primary: tokens_1.
|
|
23
|
-
primary25: tokens_1.
|
|
24
|
-
primary50: tokens_1.
|
|
25
|
-
primary75: tokens_1.
|
|
9
|
+
danger: tokens_1.tokens.color.red["400"],
|
|
10
|
+
dangerLight: tokens_1.tokens.color.red["300"],
|
|
11
|
+
neutral0: tokens_1.tokens.color.white,
|
|
12
|
+
neutral5: tokens_1.tokens.color.gray["100"],
|
|
13
|
+
neutral10: tokens_1.tokens.color.gray["100"],
|
|
14
|
+
neutral20: tokens_1.tokens.color.gray["200"],
|
|
15
|
+
neutral30: tokens_1.tokens.color.gray["400"],
|
|
16
|
+
neutral40: tokens_1.tokens.color.gray["500"],
|
|
17
|
+
neutral50: tokens_1.tokens.color.gray["600"],
|
|
18
|
+
neutral60: tokens_1.tokens.color.gray["700"],
|
|
19
|
+
neutral70: tokens_1.tokens.color.gray["800"],
|
|
20
|
+
neutral80: tokens_1.tokens.color.gray["900"],
|
|
21
|
+
neutral90: tokens_1.tokens.color.gray["900"],
|
|
22
|
+
primary: tokens_1.tokens.color.blue["500"],
|
|
23
|
+
primary25: tokens_1.tokens.color.gray["300"],
|
|
24
|
+
primary50: tokens_1.tokens.color.gray["300"],
|
|
25
|
+
primary75: tokens_1.tokens.color.blue["400"],
|
|
26
26
|
},
|
|
27
27
|
spacing: {
|
|
28
|
-
baseUnit: toNumber_1.toNumber(tokens_1.
|
|
29
|
-
controlHeight: toNumber_1.toNumber(tokens_1.height["10"]),
|
|
30
|
-
menuGutter: toNumber_1.toNumber(tokens_1.
|
|
28
|
+
baseUnit: toNumber_1.toNumber(tokens_1.tokens.spacing["1"]),
|
|
29
|
+
controlHeight: toNumber_1.toNumber(tokens_1.tokens.height["10"]),
|
|
30
|
+
menuGutter: toNumber_1.toNumber(tokens_1.tokens.spacing["1"]),
|
|
31
31
|
},
|
|
32
32
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare type SvgProps = SVGAttributes<SVGElement>;
|
|
3
|
-
export declare const Svg:
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare type SvgProps = React.SVGAttributes<SVGElement>;
|
|
3
|
+
export declare const Svg: React.ForwardRefExoticComponent<SvgProps & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -5,5 +5,4 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Svg = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
-
|
|
9
|
-
exports.Svg = Svg;
|
|
8
|
+
exports.Svg = react_1.default.forwardRef((props, forwardedRef) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", ref: forwardedRef }, props))));
|
package/public/css/styles.css
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/*
|
|
41
|
-
! tailwindcss v3.0.
|
|
41
|
+
! tailwindcss v3.0.18 | MIT License | https://tailwindcss.com
|
|
42
42
|
*/
|
|
43
43
|
|
|
44
44
|
/*
|
|
@@ -69,8 +69,7 @@
|
|
|
69
69
|
|
|
70
70
|
html {
|
|
71
71
|
line-height: 1.5; /* 1 */
|
|
72
|
-
-webkit-text-size-adjust: 100%; /* 2 */
|
|
73
|
-
-moz-tab-size: 4; /* 3 */
|
|
72
|
+
-webkit-text-size-adjust: 100%; /* 2 */ /* 3 */
|
|
74
73
|
tab-size: 4; /* 3 */
|
|
75
74
|
font-family: 'Neue Montreal', system-ui, BlinkMacSystemFont, -apple-system, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; /* 4 */
|
|
76
75
|
}
|
|
@@ -1815,6 +1814,7 @@ override built-in Image component classes */
|
|
|
1815
1814
|
|
|
1816
1815
|
.ads-Button {
|
|
1817
1816
|
position: relative;
|
|
1817
|
+
display: inline-flex;
|
|
1818
1818
|
align-items: center;
|
|
1819
1819
|
justify-content: center;
|
|
1820
1820
|
border-width: 1px;
|
|
@@ -1851,6 +1851,16 @@ override built-in Image component classes */
|
|
|
1851
1851
|
margin: auto;
|
|
1852
1852
|
}
|
|
1853
1853
|
|
|
1854
|
+
.ads-Button--block {
|
|
1855
|
+
display: flex;
|
|
1856
|
+
width: 100%;
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
.ads-Button--disabled {
|
|
1860
|
+
pointer-events: none;
|
|
1861
|
+
opacity: 0.5;
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1854
1864
|
/* Button.Group */
|
|
1855
1865
|
|
|
1856
1866
|
.ads-ButtonGroup {
|
|
@@ -4440,6 +4450,7 @@ override built-in Image component classes */
|
|
|
4440
4450
|
}
|
|
4441
4451
|
|
|
4442
4452
|
.ads-ModalContainer {
|
|
4453
|
+
position: fixed;
|
|
4443
4454
|
top: 0;
|
|
4444
4455
|
left: 0;
|
|
4445
4456
|
z-index: 900;
|
|
@@ -4540,11 +4551,11 @@ override built-in Image component classes */
|
|
|
4540
4551
|
display: flex;
|
|
4541
4552
|
flex-direction: column;
|
|
4542
4553
|
justify-content: space-between;
|
|
4554
|
+
overflow-y: auto;
|
|
4543
4555
|
|
|
4544
4556
|
max-height: calc(
|
|
4545
4557
|
var(--modal-max-height) - 60px - 80px
|
|
4546
4558
|
);
|
|
4547
|
-
overflow-y: auto;
|
|
4548
4559
|
}
|
|
4549
4560
|
|
|
4550
4561
|
.ads-Modal-body--padded {
|
|
@@ -4554,6 +4565,10 @@ override built-in Image component classes */
|
|
|
4554
4565
|
padding-bottom: 16px;
|
|
4555
4566
|
}
|
|
4556
4567
|
|
|
4568
|
+
.ads-Modal-progressDots-container {
|
|
4569
|
+
position: relative;
|
|
4570
|
+
}
|
|
4571
|
+
|
|
4557
4572
|
.ads-Modal-progressDots {
|
|
4558
4573
|
pointer-events: none;
|
|
4559
4574
|
position: absolute;
|
|
@@ -7740,6 +7755,10 @@ override built-in Image component classes */
|
|
|
7740
7755
|
z-index: 800;
|
|
7741
7756
|
}
|
|
7742
7757
|
|
|
7758
|
+
.z-modal {
|
|
7759
|
+
z-index: 900;
|
|
7760
|
+
}
|
|
7761
|
+
|
|
7743
7762
|
.z-10 {
|
|
7744
7763
|
z-index: 10;
|
|
7745
7764
|
}
|
|
@@ -7944,6 +7963,10 @@ override built-in Image component classes */
|
|
|
7944
7963
|
display: grid;
|
|
7945
7964
|
}
|
|
7946
7965
|
|
|
7966
|
+
.contents {
|
|
7967
|
+
display: contents;
|
|
7968
|
+
}
|
|
7969
|
+
|
|
7947
7970
|
.hidden {
|
|
7948
7971
|
display: none;
|
|
7949
7972
|
}
|
|
@@ -8191,6 +8214,10 @@ override built-in Image component classes */
|
|
|
8191
8214
|
overflow-y: auto;
|
|
8192
8215
|
}
|
|
8193
8216
|
|
|
8217
|
+
.overflow-y-scroll {
|
|
8218
|
+
overflow-y: scroll;
|
|
8219
|
+
}
|
|
8220
|
+
|
|
8194
8221
|
.truncate {
|
|
8195
8222
|
overflow: hidden;
|
|
8196
8223
|
text-overflow: ellipsis;
|
|
@@ -8248,6 +8275,22 @@ override built-in Image component classes */
|
|
|
8248
8275
|
border-bottom-right-radius: 0;
|
|
8249
8276
|
}
|
|
8250
8277
|
|
|
8278
|
+
.rounded-tr {
|
|
8279
|
+
border-top-right-radius: 4px;
|
|
8280
|
+
}
|
|
8281
|
+
|
|
8282
|
+
.rounded-tl {
|
|
8283
|
+
border-top-left-radius: 4px;
|
|
8284
|
+
}
|
|
8285
|
+
|
|
8286
|
+
.rounded-br {
|
|
8287
|
+
border-bottom-right-radius: 4px;
|
|
8288
|
+
}
|
|
8289
|
+
|
|
8290
|
+
.rounded-bl {
|
|
8291
|
+
border-bottom-left-radius: 4px;
|
|
8292
|
+
}
|
|
8293
|
+
|
|
8251
8294
|
.border {
|
|
8252
8295
|
border-width: 1px;
|
|
8253
8296
|
}
|
|
@@ -8629,10 +8672,6 @@ override built-in Image component classes */
|
|
|
8629
8672
|
-moz-osx-font-smoothing: grayscale;
|
|
8630
8673
|
}
|
|
8631
8674
|
|
|
8632
|
-
.opacity-50 {
|
|
8633
|
-
opacity: 0.5;
|
|
8634
|
-
}
|
|
8635
|
-
|
|
8636
8675
|
.opacity-40 {
|
|
8637
8676
|
opacity: 0.4;
|
|
8638
8677
|
}
|
|
@@ -9029,6 +9068,11 @@ override built-in Image component classes */
|
|
|
9029
9068
|
background-color: rgb(222 231 238 / var(--tw-bg-opacity));
|
|
9030
9069
|
}
|
|
9031
9070
|
|
|
9071
|
+
.hover\:bg-gray-100:hover {
|
|
9072
|
+
--tw-bg-opacity: 1;
|
|
9073
|
+
background-color: rgb(249 251 252 / var(--tw-bg-opacity));
|
|
9074
|
+
}
|
|
9075
|
+
|
|
9032
9076
|
.hover\:text-white:hover {
|
|
9033
9077
|
--tw-text-opacity: 1;
|
|
9034
9078
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|