@conveyorhq/arrow-ds 1.30.0 → 1.31.0
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 +2 -2
- 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/components/VisuallyHidden/VisuallyHidden.d.ts +2 -1
- package/public/components/VisuallyHidden/VisuallyHidden.js +3 -5
- package/public/css/styles.css +62 -5
- 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/components/VisuallyHidden/VisuallyHidden.story.mdx +54 -0
- package/src/components/VisuallyHidden/VisuallyHidden.tsx +9 -5
- package/src/components/VisuallyHidden/index.css +3 -0
- package/src/css/components.css +1 -0
- 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/components/VisuallyHidden/VisuallyHidden.story.d.ts +0 -1
- package/public/components/VisuallyHidden/VisuallyHidden.story.js +0 -36
- 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/src/components/VisuallyHidden/VisuallyHidden.md +0 -23
- package/src/components/VisuallyHidden/VisuallyHidden.story.tsx +0 -19
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.0",
|
|
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",
|
|
@@ -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))));
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { BoxProps } from "../Box";
|
|
2
|
-
export declare const VisuallyHidden:
|
|
3
|
+
export declare const VisuallyHidden: React.ForwardRefExoticComponent<Pick<BoxProps, "as" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -7,8 +7,6 @@ exports.VisuallyHidden = void 0;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const classnames_1 = __importDefault(require("classnames"));
|
|
9
9
|
const Box_1 = require("../Box");
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
exports.VisuallyHidden = VisuallyHidden;
|
|
10
|
+
const utilities_1 = require("../../utilities");
|
|
11
|
+
const cn = utilities_1.bemHOF("VisuallyHidden");
|
|
12
|
+
exports.VisuallyHidden = react_1.default.forwardRef(({ className, ...rest }, forwardedRef) => (react_1.default.createElement(Box_1.Box, Object.assign({ ref: forwardedRef, className: classnames_1.default(cn(), className) }, rest))));
|
package/public/css/styles.css
CHANGED
|
@@ -1815,6 +1815,7 @@ override built-in Image component classes */
|
|
|
1815
1815
|
|
|
1816
1816
|
.ads-Button {
|
|
1817
1817
|
position: relative;
|
|
1818
|
+
display: inline-flex;
|
|
1818
1819
|
align-items: center;
|
|
1819
1820
|
justify-content: center;
|
|
1820
1821
|
border-width: 1px;
|
|
@@ -1851,6 +1852,16 @@ override built-in Image component classes */
|
|
|
1851
1852
|
margin: auto;
|
|
1852
1853
|
}
|
|
1853
1854
|
|
|
1855
|
+
.ads-Button--block {
|
|
1856
|
+
display: flex;
|
|
1857
|
+
width: 100%;
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
.ads-Button--disabled {
|
|
1861
|
+
pointer-events: none;
|
|
1862
|
+
opacity: 0.5;
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1854
1865
|
/* Button.Group */
|
|
1855
1866
|
|
|
1856
1867
|
.ads-ButtonGroup {
|
|
@@ -4440,6 +4451,7 @@ override built-in Image component classes */
|
|
|
4440
4451
|
}
|
|
4441
4452
|
|
|
4442
4453
|
.ads-ModalContainer {
|
|
4454
|
+
position: fixed;
|
|
4443
4455
|
top: 0;
|
|
4444
4456
|
left: 0;
|
|
4445
4457
|
z-index: 900;
|
|
@@ -4540,11 +4552,11 @@ override built-in Image component classes */
|
|
|
4540
4552
|
display: flex;
|
|
4541
4553
|
flex-direction: column;
|
|
4542
4554
|
justify-content: space-between;
|
|
4555
|
+
overflow-y: auto;
|
|
4543
4556
|
|
|
4544
4557
|
max-height: calc(
|
|
4545
4558
|
var(--modal-max-height) - 60px - 80px
|
|
4546
4559
|
);
|
|
4547
|
-
overflow-y: auto;
|
|
4548
4560
|
}
|
|
4549
4561
|
|
|
4550
4562
|
.ads-Modal-body--padded {
|
|
@@ -4554,6 +4566,10 @@ override built-in Image component classes */
|
|
|
4554
4566
|
padding-bottom: 16px;
|
|
4555
4567
|
}
|
|
4556
4568
|
|
|
4569
|
+
.ads-Modal-progressDots-container {
|
|
4570
|
+
position: relative;
|
|
4571
|
+
}
|
|
4572
|
+
|
|
4557
4573
|
.ads-Modal-progressDots {
|
|
4558
4574
|
pointer-events: none;
|
|
4559
4575
|
position: absolute;
|
|
@@ -7675,6 +7691,18 @@ override built-in Image component classes */
|
|
|
7675
7691
|
width: 35%;
|
|
7676
7692
|
}
|
|
7677
7693
|
|
|
7694
|
+
.ads-VisuallyHidden {
|
|
7695
|
+
border: 0;
|
|
7696
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
7697
|
+
height: 1px;
|
|
7698
|
+
margin: -1px;
|
|
7699
|
+
overflow: hidden;
|
|
7700
|
+
padding: 0;
|
|
7701
|
+
position: absolute;
|
|
7702
|
+
top: 0;
|
|
7703
|
+
width: 1px;
|
|
7704
|
+
}
|
|
7705
|
+
|
|
7678
7706
|
.pointer-events-none {
|
|
7679
7707
|
pointer-events: none;
|
|
7680
7708
|
}
|
|
@@ -7728,6 +7756,10 @@ override built-in Image component classes */
|
|
|
7728
7756
|
z-index: 800;
|
|
7729
7757
|
}
|
|
7730
7758
|
|
|
7759
|
+
.z-modal {
|
|
7760
|
+
z-index: 900;
|
|
7761
|
+
}
|
|
7762
|
+
|
|
7731
7763
|
.z-10 {
|
|
7732
7764
|
z-index: 10;
|
|
7733
7765
|
}
|
|
@@ -7932,6 +7964,10 @@ override built-in Image component classes */
|
|
|
7932
7964
|
display: grid;
|
|
7933
7965
|
}
|
|
7934
7966
|
|
|
7967
|
+
.contents {
|
|
7968
|
+
display: contents;
|
|
7969
|
+
}
|
|
7970
|
+
|
|
7935
7971
|
.hidden {
|
|
7936
7972
|
display: none;
|
|
7937
7973
|
}
|
|
@@ -8179,6 +8215,10 @@ override built-in Image component classes */
|
|
|
8179
8215
|
overflow-y: auto;
|
|
8180
8216
|
}
|
|
8181
8217
|
|
|
8218
|
+
.overflow-y-scroll {
|
|
8219
|
+
overflow-y: scroll;
|
|
8220
|
+
}
|
|
8221
|
+
|
|
8182
8222
|
.truncate {
|
|
8183
8223
|
overflow: hidden;
|
|
8184
8224
|
text-overflow: ellipsis;
|
|
@@ -8236,6 +8276,22 @@ override built-in Image component classes */
|
|
|
8236
8276
|
border-bottom-right-radius: 0;
|
|
8237
8277
|
}
|
|
8238
8278
|
|
|
8279
|
+
.rounded-tr {
|
|
8280
|
+
border-top-right-radius: 4px;
|
|
8281
|
+
}
|
|
8282
|
+
|
|
8283
|
+
.rounded-tl {
|
|
8284
|
+
border-top-left-radius: 4px;
|
|
8285
|
+
}
|
|
8286
|
+
|
|
8287
|
+
.rounded-br {
|
|
8288
|
+
border-bottom-right-radius: 4px;
|
|
8289
|
+
}
|
|
8290
|
+
|
|
8291
|
+
.rounded-bl {
|
|
8292
|
+
border-bottom-left-radius: 4px;
|
|
8293
|
+
}
|
|
8294
|
+
|
|
8239
8295
|
.border {
|
|
8240
8296
|
border-width: 1px;
|
|
8241
8297
|
}
|
|
@@ -8617,10 +8673,6 @@ override built-in Image component classes */
|
|
|
8617
8673
|
-moz-osx-font-smoothing: grayscale;
|
|
8618
8674
|
}
|
|
8619
8675
|
|
|
8620
|
-
.opacity-50 {
|
|
8621
|
-
opacity: 0.5;
|
|
8622
|
-
}
|
|
8623
|
-
|
|
8624
8676
|
.opacity-40 {
|
|
8625
8677
|
opacity: 0.4;
|
|
8626
8678
|
}
|
|
@@ -9017,6 +9069,11 @@ override built-in Image component classes */
|
|
|
9017
9069
|
background-color: rgb(222 231 238 / var(--tw-bg-opacity));
|
|
9018
9070
|
}
|
|
9019
9071
|
|
|
9072
|
+
.hover\:bg-gray-100:hover {
|
|
9073
|
+
--tw-bg-opacity: 1;
|
|
9074
|
+
background-color: rgb(249 251 252 / var(--tw-bg-opacity));
|
|
9075
|
+
}
|
|
9076
|
+
|
|
9020
9077
|
.hover\:text-white:hover {
|
|
9021
9078
|
--tw-text-opacity: 1;
|
|
9022
9079
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|