@snack-uikit/alert 0.13.6 → 0.13.7-preview-1f246c4a.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/dist/cjs/components/Alert/Alert.js +108 -0
- package/dist/cjs/components/Alert/index.js +25 -0
- package/dist/cjs/components/AlertTop/AlertTop.js +100 -0
- package/dist/cjs/components/AlertTop/constants.js +23 -0
- package/dist/cjs/components/AlertTop/index.js +25 -0
- package/dist/cjs/components/index.js +26 -0
- package/dist/cjs/constants.js +34 -0
- package/dist/cjs/helperComponents/AlertButton.js +47 -0
- package/dist/cjs/helperComponents/index.js +25 -0
- package/dist/cjs/index.js +25 -0
- package/dist/cjs/types.js +5 -0
- package/dist/cjs/utils.js +31 -0
- package/dist/esm/components/Alert/Alert.d.ts +42 -0
- package/dist/esm/components/Alert/index.js +1 -0
- package/dist/esm/components/AlertTop/AlertTop.d.ts +35 -0
- package/dist/esm/components/AlertTop/constants.d.ts +8 -0
- package/dist/esm/components/AlertTop/index.js +1 -0
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/constants.d.ts +16 -0
- package/dist/esm/helperComponents/AlertButton.d.ts +24 -0
- package/dist/esm/helperComponents/index.js +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/types.d.ts +4 -0
- package/dist/esm/utils.d.ts +2 -0
- package/package.json +12 -10
- package/dist/components/Alert/styles.module.css +0 -198
- package/dist/components/AlertTop/styles.module.css +0 -135
- package/dist/helperComponents/styles.module.css +0 -171
- /package/dist/{components → cjs/components}/Alert/Alert.d.ts +0 -0
- /package/dist/{components → cjs/components}/Alert/index.d.ts +0 -0
- /package/dist/{components → cjs/components}/AlertTop/AlertTop.d.ts +0 -0
- /package/dist/{components → cjs/components}/AlertTop/constants.d.ts +0 -0
- /package/dist/{components → cjs/components}/AlertTop/index.d.ts +0 -0
- /package/dist/{components → cjs/components}/index.d.ts +0 -0
- /package/dist/{constants.d.ts → cjs/constants.d.ts} +0 -0
- /package/dist/{helperComponents → cjs/helperComponents}/AlertButton.d.ts +0 -0
- /package/dist/{helperComponents → cjs/helperComponents}/index.d.ts +0 -0
- /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
- /package/dist/{types.d.ts → cjs/types.d.ts} +0 -0
- /package/dist/{utils.d.ts → cjs/utils.d.ts} +0 -0
- /package/dist/{components → esm/components}/Alert/Alert.js +0 -0
- /package/dist/{components/Alert/index.js → esm/components/Alert/index.d.ts} +0 -0
- /package/dist/{components → esm/components}/AlertTop/AlertTop.js +0 -0
- /package/dist/{components → esm/components}/AlertTop/constants.js +0 -0
- /package/dist/{components/AlertTop/index.js → esm/components/AlertTop/index.d.ts} +0 -0
- /package/dist/{components/index.js → esm/components/index.d.ts} +0 -0
- /package/dist/{constants.js → esm/constants.js} +0 -0
- /package/dist/{helperComponents → esm/helperComponents}/AlertButton.js +0 -0
- /package/dist/{helperComponents/index.js → esm/helperComponents/index.d.ts} +0 -0
- /package/dist/{index.js → esm/index.d.ts} +0 -0
- /package/dist/{types.js → esm/types.js} +0 -0
- /package/dist/{utils.js → esm/utils.js} +0 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
4
|
+
var t = {};
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
|
|
12
|
+
return mod && mod.__esModule ? mod : {
|
|
13
|
+
"default": mod
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", {
|
|
17
|
+
value: true
|
|
18
|
+
});
|
|
19
|
+
exports.Alert = Alert;
|
|
20
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
21
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
22
|
+
const icons_1 = require("@snack-uikit/icons");
|
|
23
|
+
const link_1 = require("@snack-uikit/link");
|
|
24
|
+
const truncate_string_1 = require("@snack-uikit/truncate-string");
|
|
25
|
+
const utils_1 = require("@snack-uikit/utils");
|
|
26
|
+
const constants_1 = require("../../constants");
|
|
27
|
+
const helperComponents_1 = require("../../helperComponents");
|
|
28
|
+
const utils_2 = require("../../utils");
|
|
29
|
+
const styles_module_scss_1 = __importDefault({});
|
|
30
|
+
/**
|
|
31
|
+
* Компонент для отображения уведомления.
|
|
32
|
+
*/
|
|
33
|
+
function Alert(_a) {
|
|
34
|
+
var _b;
|
|
35
|
+
var {
|
|
36
|
+
icon = true,
|
|
37
|
+
title,
|
|
38
|
+
truncate,
|
|
39
|
+
link,
|
|
40
|
+
description,
|
|
41
|
+
onClose,
|
|
42
|
+
appearance = constants_1.APPEARANCE.Neutral,
|
|
43
|
+
className,
|
|
44
|
+
actions,
|
|
45
|
+
outline,
|
|
46
|
+
size = 'm'
|
|
47
|
+
} = _a,
|
|
48
|
+
rest = __rest(_a, ["icon", "title", "truncate", "link", "description", "onClose", "appearance", "className", "actions", "outline", "size"]);
|
|
49
|
+
return (0, jsx_runtime_1.jsxs)("div", Object.assign({
|
|
50
|
+
className: (0, classnames_1.default)(styles_module_scss_1.default.alert, {
|
|
51
|
+
[styles_module_scss_1.default.alertOutline]: outline
|
|
52
|
+
}, className)
|
|
53
|
+
}, (0, utils_1.extractSupportProps)(rest), {
|
|
54
|
+
"data-color": constants_1.APPEARANCE_TO_COLOR_MAP[appearance],
|
|
55
|
+
"data-size": size,
|
|
56
|
+
children: [(0, jsx_runtime_1.jsxs)("div", {
|
|
57
|
+
className: styles_module_scss_1.default.body,
|
|
58
|
+
"data-size": size,
|
|
59
|
+
children: [icon && (0, jsx_runtime_1.jsx)("div", {
|
|
60
|
+
className: styles_module_scss_1.default.icon,
|
|
61
|
+
"data-color": constants_1.APPEARANCE_TO_COLOR_MAP[appearance],
|
|
62
|
+
"data-test-id": 'alert__icon',
|
|
63
|
+
"data-size": size,
|
|
64
|
+
children: (0, utils_2.getIcon)(appearance, size === 's' ? 16 : 24)
|
|
65
|
+
}), (0, jsx_runtime_1.jsxs)("div", {
|
|
66
|
+
className: styles_module_scss_1.default.contentLayout,
|
|
67
|
+
"data-size": size,
|
|
68
|
+
children: [title && (0, jsx_runtime_1.jsx)(truncate_string_1.TruncateString, {
|
|
69
|
+
text: title,
|
|
70
|
+
maxLines: (_b = truncate === null || truncate === void 0 ? void 0 : truncate.title) !== null && _b !== void 0 ? _b : 1,
|
|
71
|
+
className: styles_module_scss_1.default.title,
|
|
72
|
+
"data-test-id": 'alert__title',
|
|
73
|
+
"data-size": size
|
|
74
|
+
}), (0, jsx_runtime_1.jsx)("span", {
|
|
75
|
+
"data-test-id": 'alert__description',
|
|
76
|
+
className: styles_module_scss_1.default.description,
|
|
77
|
+
"data-size": size,
|
|
78
|
+
children: description
|
|
79
|
+
}), link && (0, jsx_runtime_1.jsx)("span", {
|
|
80
|
+
children: (0, jsx_runtime_1.jsx)(link_1.Link, Object.assign({}, link, {
|
|
81
|
+
appearance: constants_1.APPEARANCE_TO_LINK_COLOR_MAP[appearance],
|
|
82
|
+
textMode: 'default',
|
|
83
|
+
size: size,
|
|
84
|
+
"data-test-id": 'alert__link'
|
|
85
|
+
}))
|
|
86
|
+
})]
|
|
87
|
+
}), onClose && (0, jsx_runtime_1.jsx)(helperComponents_1.AlertButton, {
|
|
88
|
+
onClick: onClose,
|
|
89
|
+
appearance: constants_1.APPEARANCE_TO_COLOR_MAP[appearance],
|
|
90
|
+
icon: (0, jsx_runtime_1.jsx)(icons_1.CrossSVG, {}),
|
|
91
|
+
variant: 'simple',
|
|
92
|
+
dataTestId: 'alert__close-button'
|
|
93
|
+
})]
|
|
94
|
+
}), actions && (0, jsx_runtime_1.jsxs)("div", {
|
|
95
|
+
className: styles_module_scss_1.default.footer,
|
|
96
|
+
"data-size": size,
|
|
97
|
+
children: [actions.primary && (0, jsx_runtime_1.jsx)(helperComponents_1.AlertButton, Object.assign({}, actions.primary, {
|
|
98
|
+
appearance: constants_1.APPEARANCE_TO_COLOR_MAP[appearance],
|
|
99
|
+
variant: 'simple',
|
|
100
|
+
size: size
|
|
101
|
+
})), (actions === null || actions === void 0 ? void 0 : actions.secondary) && (0, jsx_runtime_1.jsx)(helperComponents_1.AlertButton, Object.assign({}, actions.secondary, {
|
|
102
|
+
appearance: constants_1.APPEARANCE_TO_COLOR_MAP[appearance],
|
|
103
|
+
variant: 'simple',
|
|
104
|
+
size: size
|
|
105
|
+
}))]
|
|
106
|
+
})]
|
|
107
|
+
}));
|
|
108
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __createBinding = void 0 && (void 0).__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return m[k];
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
} : function (o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
});
|
|
19
|
+
var __exportStar = void 0 && (void 0).__exportStar || function (m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
});
|
|
25
|
+
__exportStar(require("./Alert"), exports);
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
4
|
+
var t = {};
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
|
|
12
|
+
return mod && mod.__esModule ? mod : {
|
|
13
|
+
"default": mod
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", {
|
|
17
|
+
value: true
|
|
18
|
+
});
|
|
19
|
+
exports.AlertTop = AlertTop;
|
|
20
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
21
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
22
|
+
const icons_1 = require("@snack-uikit/icons");
|
|
23
|
+
const link_1 = require("@snack-uikit/link");
|
|
24
|
+
const truncate_string_1 = require("@snack-uikit/truncate-string");
|
|
25
|
+
const utils_1 = require("@snack-uikit/utils");
|
|
26
|
+
const constants_1 = require("../../constants");
|
|
27
|
+
const helperComponents_1 = require("../../helperComponents");
|
|
28
|
+
const utils_2 = require("../../utils");
|
|
29
|
+
const constants_2 = require("./constants");
|
|
30
|
+
const styles_module_scss_1 = __importDefault({});
|
|
31
|
+
/**
|
|
32
|
+
* Компонент для отображения уведомления вверху экрана.
|
|
33
|
+
*/
|
|
34
|
+
function AlertTop(_a) {
|
|
35
|
+
var _b;
|
|
36
|
+
var {
|
|
37
|
+
icon = true,
|
|
38
|
+
title,
|
|
39
|
+
description,
|
|
40
|
+
link,
|
|
41
|
+
onClose,
|
|
42
|
+
truncate,
|
|
43
|
+
appearance = constants_1.APPEARANCE.Neutral,
|
|
44
|
+
action,
|
|
45
|
+
className
|
|
46
|
+
} = _a,
|
|
47
|
+
rest = __rest(_a, ["icon", "title", "description", "link", "onClose", "truncate", "appearance", "action", "className"]);
|
|
48
|
+
return (0, jsx_runtime_1.jsxs)("div", Object.assign({
|
|
49
|
+
className: (0, classnames_1.default)(styles_module_scss_1.default.alertTop, className)
|
|
50
|
+
}, (0, utils_1.extractSupportProps)(rest), {
|
|
51
|
+
"data-color": constants_2.APPEARANCE_TO_COLOR_MAP_INVERT[appearance],
|
|
52
|
+
children: [(0, jsx_runtime_1.jsxs)("div", {
|
|
53
|
+
className: styles_module_scss_1.default.contentWrapper,
|
|
54
|
+
children: [icon && (0, jsx_runtime_1.jsx)("div", {
|
|
55
|
+
className: styles_module_scss_1.default.icon,
|
|
56
|
+
"data-color": constants_2.APPEARANCE_TO_COLOR_MAP_INVERT[appearance],
|
|
57
|
+
"data-test-id": 'alert-top__icon',
|
|
58
|
+
children: (0, utils_2.getIcon)(appearance, 24)
|
|
59
|
+
}), (0, jsx_runtime_1.jsxs)("div", {
|
|
60
|
+
className: styles_module_scss_1.default.contentLayout,
|
|
61
|
+
children: [(0, jsx_runtime_1.jsxs)("div", {
|
|
62
|
+
className: styles_module_scss_1.default.textLayout,
|
|
63
|
+
children: [title && (0, jsx_runtime_1.jsx)("div", {
|
|
64
|
+
className: styles_module_scss_1.default.title,
|
|
65
|
+
"data-color": constants_2.APPEARANCE_TO_COLOR_MAP_INVERT[appearance],
|
|
66
|
+
"data-test-id": 'alert-top__title',
|
|
67
|
+
children: (0, jsx_runtime_1.jsx)(truncate_string_1.TruncateString, {
|
|
68
|
+
text: title,
|
|
69
|
+
maxLines: (_b = truncate === null || truncate === void 0 ? void 0 : truncate.title) !== null && _b !== void 0 ? _b : 1
|
|
70
|
+
})
|
|
71
|
+
}), (0, jsx_runtime_1.jsx)("span", {
|
|
72
|
+
className: styles_module_scss_1.default.description,
|
|
73
|
+
"data-color": constants_2.APPEARANCE_TO_COLOR_MAP_INVERT[appearance],
|
|
74
|
+
"data-test-id": 'alert-top__description',
|
|
75
|
+
children: description
|
|
76
|
+
})]
|
|
77
|
+
}), link && (0, jsx_runtime_1.jsx)("span", {
|
|
78
|
+
children: (0, jsx_runtime_1.jsx)(link_1.Link, Object.assign({}, link, {
|
|
79
|
+
appearance: constants_1.APPEARANCE_TO_COLOR_MAP[appearance],
|
|
80
|
+
textMode: 'on-accent',
|
|
81
|
+
size: 'm',
|
|
82
|
+
"data-test-id": 'alert-top__link'
|
|
83
|
+
}))
|
|
84
|
+
})]
|
|
85
|
+
})]
|
|
86
|
+
}), (0, jsx_runtime_1.jsxs)("div", {
|
|
87
|
+
className: styles_module_scss_1.default.actions,
|
|
88
|
+
children: [action && (0, jsx_runtime_1.jsx)(helperComponents_1.AlertButton, Object.assign({}, action, {
|
|
89
|
+
appearance: constants_2.APPEARANCE_TO_COLOR_MAP_INVERT[appearance],
|
|
90
|
+
variant: 'tonal'
|
|
91
|
+
})), onClose && (0, jsx_runtime_1.jsx)(helperComponents_1.AlertButton, {
|
|
92
|
+
onClick: onClose,
|
|
93
|
+
appearance: constants_2.APPEARANCE_TO_COLOR_MAP_INVERT[appearance],
|
|
94
|
+
icon: (0, jsx_runtime_1.jsx)(icons_1.CrossSVG, {}),
|
|
95
|
+
variant: 'tonal',
|
|
96
|
+
dataTestId: 'alert-top__close-button'
|
|
97
|
+
})]
|
|
98
|
+
})]
|
|
99
|
+
}));
|
|
100
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.APPEARANCE_TO_COLOR_MAP_INVERT = void 0;
|
|
7
|
+
const constants_1 = require("../../constants");
|
|
8
|
+
const COLOR = {
|
|
9
|
+
InvertNeutral: 'invert-neutral',
|
|
10
|
+
Primary: 'primary',
|
|
11
|
+
Red: 'red',
|
|
12
|
+
Yellow: 'yellow',
|
|
13
|
+
Green: 'green',
|
|
14
|
+
Blue: 'blue'
|
|
15
|
+
};
|
|
16
|
+
exports.APPEARANCE_TO_COLOR_MAP_INVERT = {
|
|
17
|
+
[constants_1.APPEARANCE.Neutral]: COLOR.InvertNeutral,
|
|
18
|
+
[constants_1.APPEARANCE.Primary]: COLOR.Primary,
|
|
19
|
+
[constants_1.APPEARANCE.Error]: COLOR.Red,
|
|
20
|
+
[constants_1.APPEARANCE.Warning]: COLOR.Yellow,
|
|
21
|
+
[constants_1.APPEARANCE.Success]: COLOR.Green,
|
|
22
|
+
[constants_1.APPEARANCE.Info]: COLOR.Blue
|
|
23
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __createBinding = void 0 && (void 0).__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return m[k];
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
} : function (o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
});
|
|
19
|
+
var __exportStar = void 0 && (void 0).__exportStar || function (m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
});
|
|
25
|
+
__exportStar(require("./AlertTop"), exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __createBinding = void 0 && (void 0).__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return m[k];
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
} : function (o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
});
|
|
19
|
+
var __exportStar = void 0 && (void 0).__exportStar || function (m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
});
|
|
25
|
+
__exportStar(require("./Alert"), exports);
|
|
26
|
+
__exportStar(require("./AlertTop"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.APPEARANCE_TO_LINK_COLOR_MAP = exports.APPEARANCE_TO_COLOR_MAP = exports.SIZE = exports.APPEARANCE = void 0;
|
|
7
|
+
exports.APPEARANCE = {
|
|
8
|
+
Neutral: 'neutral',
|
|
9
|
+
Primary: 'primary',
|
|
10
|
+
Error: 'error',
|
|
11
|
+
Warning: 'warning',
|
|
12
|
+
Success: 'success',
|
|
13
|
+
Info: 'info'
|
|
14
|
+
};
|
|
15
|
+
exports.SIZE = {
|
|
16
|
+
S: 's',
|
|
17
|
+
M: 'm'
|
|
18
|
+
};
|
|
19
|
+
exports.APPEARANCE_TO_COLOR_MAP = {
|
|
20
|
+
[exports.APPEARANCE.Neutral]: 'neutral',
|
|
21
|
+
[exports.APPEARANCE.Primary]: 'primary',
|
|
22
|
+
[exports.APPEARANCE.Error]: 'red',
|
|
23
|
+
[exports.APPEARANCE.Warning]: 'yellow',
|
|
24
|
+
[exports.APPEARANCE.Success]: 'green',
|
|
25
|
+
[exports.APPEARANCE.Info]: 'blue'
|
|
26
|
+
};
|
|
27
|
+
exports.APPEARANCE_TO_LINK_COLOR_MAP = {
|
|
28
|
+
[exports.APPEARANCE.Neutral]: 'primary',
|
|
29
|
+
[exports.APPEARANCE.Primary]: 'primary',
|
|
30
|
+
[exports.APPEARANCE.Error]: 'red',
|
|
31
|
+
[exports.APPEARANCE.Warning]: 'yellow',
|
|
32
|
+
[exports.APPEARANCE.Success]: 'green',
|
|
33
|
+
[exports.APPEARANCE.Info]: 'blue'
|
|
34
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
|
|
4
|
+
return mod && mod.__esModule ? mod : {
|
|
5
|
+
"default": mod
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9
|
+
value: true
|
|
10
|
+
});
|
|
11
|
+
exports.AlertButton = AlertButton;
|
|
12
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
13
|
+
const loaders_1 = require("@snack-uikit/loaders");
|
|
14
|
+
const styles_module_scss_1 = __importDefault({});
|
|
15
|
+
function AlertButton(_ref) {
|
|
16
|
+
let {
|
|
17
|
+
appearance,
|
|
18
|
+
text,
|
|
19
|
+
icon,
|
|
20
|
+
onClick,
|
|
21
|
+
variant = 'simple',
|
|
22
|
+
dataTestId,
|
|
23
|
+
loading = false,
|
|
24
|
+
size = 's'
|
|
25
|
+
} = _ref;
|
|
26
|
+
return (0, jsx_runtime_1.jsxs)("button", {
|
|
27
|
+
type: 'button',
|
|
28
|
+
onClick: onClick,
|
|
29
|
+
className: styles_module_scss_1.default.alertButton,
|
|
30
|
+
"data-variant": variant,
|
|
31
|
+
"data-appearance": appearance,
|
|
32
|
+
"data-test-id": dataTestId || 'alert__action-button',
|
|
33
|
+
"data-icon-only": !text || undefined,
|
|
34
|
+
"data-loading": loading,
|
|
35
|
+
"data-size": size,
|
|
36
|
+
children: [text && (0, jsx_runtime_1.jsx)("span", {
|
|
37
|
+
className: styles_module_scss_1.default.text,
|
|
38
|
+
"data-size": size,
|
|
39
|
+
children: text
|
|
40
|
+
}), icon && (loading ? (0, jsx_runtime_1.jsx)(loaders_1.Sun, {
|
|
41
|
+
size: 's'
|
|
42
|
+
}) : (0, jsx_runtime_1.jsx)("span", {
|
|
43
|
+
className: styles_module_scss_1.default.icon,
|
|
44
|
+
children: icon
|
|
45
|
+
}))]
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __createBinding = void 0 && (void 0).__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return m[k];
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
} : function (o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
});
|
|
19
|
+
var __exportStar = void 0 && (void 0).__exportStar || function (m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
});
|
|
25
|
+
__exportStar(require("./AlertButton"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __createBinding = void 0 && (void 0).__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return m[k];
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
} : function (o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
});
|
|
19
|
+
var __exportStar = void 0 && (void 0).__exportStar || function (m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
});
|
|
25
|
+
__exportStar(require("./components"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getIcon = getIcon;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const icons_1 = require("@snack-uikit/icons");
|
|
9
|
+
const constants_1 = require("./constants");
|
|
10
|
+
function getIcon(appearance, size) {
|
|
11
|
+
switch (appearance) {
|
|
12
|
+
case constants_1.APPEARANCE.Success:
|
|
13
|
+
return (0, jsx_runtime_1.jsx)(icons_1.CheckFilledSVG, {
|
|
14
|
+
size: size
|
|
15
|
+
});
|
|
16
|
+
case constants_1.APPEARANCE.Error:
|
|
17
|
+
return (0, jsx_runtime_1.jsx)(icons_1.CrossFilledSVG, {
|
|
18
|
+
size: size
|
|
19
|
+
});
|
|
20
|
+
case constants_1.APPEARANCE.Warning:
|
|
21
|
+
return (0, jsx_runtime_1.jsx)(icons_1.AlarmFilledSVG, {
|
|
22
|
+
size: size
|
|
23
|
+
});
|
|
24
|
+
case constants_1.APPEARANCE.Primary:
|
|
25
|
+
case constants_1.APPEARANCE.Neutral:
|
|
26
|
+
default:
|
|
27
|
+
return (0, jsx_runtime_1.jsx)(icons_1.InfoFilledSVG, {
|
|
28
|
+
size: size
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { LinkProps } from '@snack-uikit/link';
|
|
3
|
+
import { WithSupportProps } from '@snack-uikit/utils';
|
|
4
|
+
import { AlertButtonProps } from '../../helperComponents';
|
|
5
|
+
import { Appearance, Size } from '../../types';
|
|
6
|
+
export type AlertProps = WithSupportProps<{
|
|
7
|
+
/** Отображать иконку */
|
|
8
|
+
icon?: boolean;
|
|
9
|
+
/** Заголовок */
|
|
10
|
+
title?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Максимальное кол-во строк
|
|
13
|
+
* <br> - `title` - в заголовке
|
|
14
|
+
* @default '{ <br>title: 1 }'
|
|
15
|
+
*/
|
|
16
|
+
truncate?: {
|
|
17
|
+
title?: number;
|
|
18
|
+
};
|
|
19
|
+
/** Описание */
|
|
20
|
+
description: ReactNode;
|
|
21
|
+
/** Cсылка */
|
|
22
|
+
link?: Pick<LinkProps, 'text' | 'target' | 'onClick' | 'href' | 'appearance'>;
|
|
23
|
+
/** Колбек закрытия */
|
|
24
|
+
onClose?: () => void;
|
|
25
|
+
/** Внешний вид */
|
|
26
|
+
appearance?: Appearance;
|
|
27
|
+
/** Внешний бордер */
|
|
28
|
+
outline?: boolean;
|
|
29
|
+
/** Размер */
|
|
30
|
+
size?: Size;
|
|
31
|
+
/** CSS-класс */
|
|
32
|
+
className?: string;
|
|
33
|
+
/** Кнопки в футере алерта */
|
|
34
|
+
actions?: {
|
|
35
|
+
primary: Omit<AlertButtonProps, 'appearance'>;
|
|
36
|
+
secondary?: Omit<AlertButtonProps, 'appearance'>;
|
|
37
|
+
};
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* Компонент для отображения уведомления.
|
|
41
|
+
*/
|
|
42
|
+
export declare function Alert({ icon, title, truncate, link, description, onClose, appearance, className, actions, outline, size, ...rest }: AlertProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Alert';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { LinkProps } from '@snack-uikit/link';
|
|
3
|
+
import { WithSupportProps } from '@snack-uikit/utils';
|
|
4
|
+
import { AlertButtonProps } from '../../helperComponents';
|
|
5
|
+
import { Appearance } from '../../types';
|
|
6
|
+
export type AlertTopProps = WithSupportProps<{
|
|
7
|
+
/** Отображать иконку */
|
|
8
|
+
icon?: boolean;
|
|
9
|
+
/** Заголовок */
|
|
10
|
+
title?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Максимальное кол-во строк
|
|
13
|
+
* <br> - `title` - в заголовке
|
|
14
|
+
* @default '{ <br>title: 1 }'
|
|
15
|
+
*/
|
|
16
|
+
truncate?: {
|
|
17
|
+
title?: number;
|
|
18
|
+
};
|
|
19
|
+
/** Описание */
|
|
20
|
+
description: ReactNode;
|
|
21
|
+
/** Cсылка */
|
|
22
|
+
link?: Pick<LinkProps, 'text' | 'target' | 'onClick' | 'href' | 'appearance'>;
|
|
23
|
+
/** Кнопка дополнительного действия */
|
|
24
|
+
action?: AlertButtonProps;
|
|
25
|
+
/** Колбек закрытия */
|
|
26
|
+
onClose?: () => void;
|
|
27
|
+
/** Внешний вид */
|
|
28
|
+
appearance?: Appearance;
|
|
29
|
+
/** CSS-класс */
|
|
30
|
+
className?: string;
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* Компонент для отображения уведомления вверху экрана.
|
|
34
|
+
*/
|
|
35
|
+
export declare function AlertTop({ icon, title, description, link, onClose, truncate, appearance, action, className, ...rest }: AlertTopProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AlertTop';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LinkProps } from '@snack-uikit/link';
|
|
2
|
+
import { ValueOf } from '@snack-uikit/utils';
|
|
3
|
+
export declare const APPEARANCE: {
|
|
4
|
+
readonly Neutral: "neutral";
|
|
5
|
+
readonly Primary: "primary";
|
|
6
|
+
readonly Error: "error";
|
|
7
|
+
readonly Warning: "warning";
|
|
8
|
+
readonly Success: "success";
|
|
9
|
+
readonly Info: "info";
|
|
10
|
+
};
|
|
11
|
+
export declare const SIZE: {
|
|
12
|
+
readonly S: "s";
|
|
13
|
+
readonly M: "m";
|
|
14
|
+
};
|
|
15
|
+
export declare const APPEARANCE_TO_COLOR_MAP: Record<ValueOf<typeof APPEARANCE>, LinkProps['appearance']>;
|
|
16
|
+
export declare const APPEARANCE_TO_LINK_COLOR_MAP: Record<ValueOf<typeof APPEARANCE>, LinkProps['appearance']>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MouseEvent, ReactElement } from 'react';
|
|
2
|
+
import { LinkProps } from '@snack-uikit/link';
|
|
3
|
+
import { Size } from '../types';
|
|
4
|
+
type PrivateAlertButtonProps = {
|
|
5
|
+
/** Внешний вид */
|
|
6
|
+
appearance?: LinkProps['appearance'] | 'invert-neutral';
|
|
7
|
+
/** Текст кнопки */
|
|
8
|
+
text?: string;
|
|
9
|
+
/** Иконка в кнопке */
|
|
10
|
+
icon?: ReactElement;
|
|
11
|
+
/** Вариант отображения */
|
|
12
|
+
variant?: 'simple' | 'tonal';
|
|
13
|
+
/** Колбек клика */
|
|
14
|
+
onClick?(e: MouseEvent<HTMLButtonElement>): void;
|
|
15
|
+
/** Дата тест айди */
|
|
16
|
+
dataTestId?: string;
|
|
17
|
+
/** Управление состоянием загрузки */
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
/** Размер */
|
|
20
|
+
size?: Size;
|
|
21
|
+
};
|
|
22
|
+
export type AlertButtonProps = Omit<PrivateAlertButtonProps, 'appearance' | 'variant'>;
|
|
23
|
+
export declare function AlertButton({ appearance, text, icon, onClick, variant, dataTestId, loading, size, }: PrivateAlertButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AlertButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
package/package.json
CHANGED
|
@@ -4,15 +4,16 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Alert",
|
|
7
|
-
"version": "0.13.
|
|
7
|
+
"version": "0.13.7-preview-1f246c4a.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
11
11
|
"*.woff2"
|
|
12
12
|
],
|
|
13
13
|
"description": "",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
14
|
+
"types": "./dist/esm/index.d.ts",
|
|
15
|
+
"main": "./dist/cjs/index.js",
|
|
16
|
+
"module": "./dist/esm/index.js",
|
|
16
17
|
"homepage": "https://github.com/cloud-ru-tech/snack-uikit/tree/master/packages/alert",
|
|
17
18
|
"repository": {
|
|
18
19
|
"type": "git",
|
|
@@ -24,7 +25,8 @@
|
|
|
24
25
|
"Alexander Starodubtsev <avstarodubtsev@cloud.ru>"
|
|
25
26
|
],
|
|
26
27
|
"files": [
|
|
27
|
-
"dist",
|
|
28
|
+
"dist/cjs",
|
|
29
|
+
"dist/esm",
|
|
28
30
|
"src",
|
|
29
31
|
"./CHANGELOG.md",
|
|
30
32
|
"./LICENSE"
|
|
@@ -32,12 +34,12 @@
|
|
|
32
34
|
"license": "Apache-2.0",
|
|
33
35
|
"scripts": {},
|
|
34
36
|
"dependencies": {
|
|
35
|
-
"@snack-uikit/icons": "0.22.
|
|
36
|
-
"@snack-uikit/link": "0.13.
|
|
37
|
-
"@snack-uikit/loaders": "0.5.
|
|
38
|
-
"@snack-uikit/truncate-string": "0.4.
|
|
39
|
-
"@snack-uikit/utils": "3.4.0",
|
|
37
|
+
"@snack-uikit/icons": "0.22.2-preview-1f246c4a.0",
|
|
38
|
+
"@snack-uikit/link": "0.13.5-preview-1f246c4a.0",
|
|
39
|
+
"@snack-uikit/loaders": "0.5.4-preview-1f246c4a.0",
|
|
40
|
+
"@snack-uikit/truncate-string": "0.4.25-preview-1f246c4a.0",
|
|
41
|
+
"@snack-uikit/utils": "3.4.1-preview-1f246c4a.0",
|
|
40
42
|
"classnames": "2.3.2"
|
|
41
43
|
},
|
|
42
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "a185a55c0722b19f70dd168cf299e6f53a0fd93f"
|
|
43
45
|
}
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
.alert{
|
|
2
|
-
display:flex;
|
|
3
|
-
flex-direction:column;
|
|
4
|
-
box-sizing:border-box;
|
|
5
|
-
min-width:256px;
|
|
6
|
-
}
|
|
7
|
-
.alert[data-color=neutral]{
|
|
8
|
-
background-color:var(--sys-neutral-background, #eeeff3);
|
|
9
|
-
}
|
|
10
|
-
.alert[data-color=primary]{
|
|
11
|
-
background-color:var(--sys-primary-background, #f6effe);
|
|
12
|
-
}
|
|
13
|
-
.alert[data-color=red]{
|
|
14
|
-
background-color:var(--sys-red-background, #fdf1ef);
|
|
15
|
-
}
|
|
16
|
-
.alert[data-color=yellow]{
|
|
17
|
-
background-color:var(--sys-yellow-background, #fef7e1);
|
|
18
|
-
}
|
|
19
|
-
.alert[data-color=green]{
|
|
20
|
-
background-color:var(--sys-green-background, #f1fbee);
|
|
21
|
-
}
|
|
22
|
-
.alert[data-color=blue]{
|
|
23
|
-
background-color:var(--sys-blue-background, #eef8ff);
|
|
24
|
-
}
|
|
25
|
-
.alert[data-size=s]{
|
|
26
|
-
padding-top:var(--space-alert-s-container-vertical-padding, 7px);
|
|
27
|
-
padding-bottom:var(--space-alert-s-container-vertical-padding, 7px);
|
|
28
|
-
padding-left:var(--space-alert-s-container-horizontal-padding, 7px);
|
|
29
|
-
padding-right:var(--space-alert-s-container-horizontal-padding, 7px);
|
|
30
|
-
gap:var(--space-alert-s-container-gap, 7px);
|
|
31
|
-
border-radius:var(--radius-alert-container, 8px);
|
|
32
|
-
border-width:var(--border-width-alert-single, 1px);
|
|
33
|
-
}
|
|
34
|
-
.alert[data-size=m]{
|
|
35
|
-
padding-top:var(--space-alert-m-container-vertical-padding, 15px);
|
|
36
|
-
padding-bottom:var(--space-alert-m-container-vertical-padding, 15px);
|
|
37
|
-
padding-left:var(--space-alert-m-container-horizontal-padding, 15px);
|
|
38
|
-
padding-right:var(--space-alert-m-container-horizontal-padding, 15px);
|
|
39
|
-
gap:var(--space-alert-m-container-gap, 15px);
|
|
40
|
-
border-radius:var(--radius-alert-container, 8px);
|
|
41
|
-
border-width:var(--border-width-alert-single, 1px);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.alertOutline{
|
|
45
|
-
outline-style:solid;
|
|
46
|
-
outline-width:var(--border-width-accordion-collapse-block-primary, 1px);
|
|
47
|
-
}
|
|
48
|
-
.alertOutline[data-color=neutral]{
|
|
49
|
-
outline-color:var(--sys-neutral-decor-default, #dde0ea);
|
|
50
|
-
}
|
|
51
|
-
.alertOutline[data-color=neutral]:focus-within, .alertOutline[data-color=neutral]:hover{
|
|
52
|
-
outline-color:var(--sys-neutral-decor-default, #dde0ea);
|
|
53
|
-
}
|
|
54
|
-
.alertOutline[data-color=primary]{
|
|
55
|
-
outline-color:var(--sys-primary-decor-default, #ebdefd);
|
|
56
|
-
}
|
|
57
|
-
.alertOutline[data-color=primary]:focus-within, .alertOutline[data-color=primary]:hover{
|
|
58
|
-
outline-color:var(--sys-primary-decor-default, #ebdefd);
|
|
59
|
-
}
|
|
60
|
-
.alertOutline[data-color=red]{
|
|
61
|
-
outline-color:var(--sys-red-decor-default, #fdd6cd);
|
|
62
|
-
}
|
|
63
|
-
.alertOutline[data-color=red]:focus-within, .alertOutline[data-color=red]:hover{
|
|
64
|
-
outline-color:var(--sys-red-decor-default, #fdd6cd);
|
|
65
|
-
}
|
|
66
|
-
.alertOutline[data-color=yellow]{
|
|
67
|
-
outline-color:var(--sys-yellow-decor-default, #f0dfb1);
|
|
68
|
-
}
|
|
69
|
-
.alertOutline[data-color=yellow]:focus-within, .alertOutline[data-color=yellow]:hover{
|
|
70
|
-
outline-color:var(--sys-yellow-decor-default, #f0dfb1);
|
|
71
|
-
}
|
|
72
|
-
.alertOutline[data-color=green]{
|
|
73
|
-
outline-color:var(--sys-green-decor-default, #d2ead0);
|
|
74
|
-
}
|
|
75
|
-
.alertOutline[data-color=green]:focus-within, .alertOutline[data-color=green]:hover{
|
|
76
|
-
outline-color:var(--sys-green-decor-default, #d2ead0);
|
|
77
|
-
}
|
|
78
|
-
.alertOutline[data-color=blue]{
|
|
79
|
-
outline-color:var(--sys-blue-decor-default, #d6e2f4);
|
|
80
|
-
}
|
|
81
|
-
.alertOutline[data-color=blue]:focus-within, .alertOutline[data-color=blue]:hover{
|
|
82
|
-
outline-color:var(--sys-blue-decor-default, #d6e2f4);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.body{
|
|
86
|
-
display:flex;
|
|
87
|
-
box-sizing:border-box;
|
|
88
|
-
width:100%;
|
|
89
|
-
}
|
|
90
|
-
.body[data-size=s]{
|
|
91
|
-
gap:var(--space-alert-s-container-body-gap, 4px);
|
|
92
|
-
}
|
|
93
|
-
.body[data-size=m]{
|
|
94
|
-
gap:var(--space-alert-m-container-body-gap, 8px);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.icon[data-color=neutral]{
|
|
98
|
-
color:var(--sys-neutral-accent-default, #787b8a);
|
|
99
|
-
}
|
|
100
|
-
.icon[data-color=primary]{
|
|
101
|
-
color:var(--sys-primary-accent-default, #794ed3);
|
|
102
|
-
}
|
|
103
|
-
.icon[data-color=red]{
|
|
104
|
-
color:var(--sys-red-accent-default, #cb3f3e);
|
|
105
|
-
}
|
|
106
|
-
.icon[data-color=yellow]{
|
|
107
|
-
color:var(--sys-yellow-accent-default, #e2b134);
|
|
108
|
-
}
|
|
109
|
-
.icon[data-color=green]{
|
|
110
|
-
color:var(--sys-green-accent-default, #57b762);
|
|
111
|
-
}
|
|
112
|
-
.icon[data-color=blue]{
|
|
113
|
-
color:var(--sys-blue-accent-default, #5388d1);
|
|
114
|
-
}
|
|
115
|
-
.icon[data-size=s]{
|
|
116
|
-
width:var(--size-icon-container-xs, 16px);
|
|
117
|
-
height:var(--size-icon-container-xs, 16px);
|
|
118
|
-
}
|
|
119
|
-
.icon[data-size=s] svg{
|
|
120
|
-
max-width:var(--size-icon-container-xs, 16px);
|
|
121
|
-
max-height:var(--size-icon-container-xs, 16px);
|
|
122
|
-
}
|
|
123
|
-
.icon[data-size=m]{
|
|
124
|
-
width:var(--size-icon-container-s, 24px);
|
|
125
|
-
height:var(--size-icon-container-s, 24px);
|
|
126
|
-
}
|
|
127
|
-
.icon[data-size=m] svg{
|
|
128
|
-
max-width:var(--size-icon-container-s, 24px);
|
|
129
|
-
max-height:var(--size-icon-container-s, 24px);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.contentLayout{
|
|
133
|
-
display:flex;
|
|
134
|
-
flex:1;
|
|
135
|
-
flex-direction:column;
|
|
136
|
-
min-width:0;
|
|
137
|
-
}
|
|
138
|
-
.contentLayout[data-size=s]{
|
|
139
|
-
padding-top:var(--space-alert-s-container-content-layout-padding-top, 0px);
|
|
140
|
-
}
|
|
141
|
-
.contentLayout[data-size=m]{
|
|
142
|
-
padding-top:var(--space-alert-m-container-content-layout-padding-top, 2px);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.title{
|
|
146
|
-
color:var(--sys-neutral-text-main, #41424e);
|
|
147
|
-
}
|
|
148
|
-
.title[data-size=s]{
|
|
149
|
-
font-family:var(--sans-label-m-font-family, SB Sans Interface);
|
|
150
|
-
font-weight:var(--sans-label-m-font-weight, Semibold);
|
|
151
|
-
line-height:var(--sans-label-m-line-height, 16px);
|
|
152
|
-
font-size:var(--sans-label-m-font-size, 12px);
|
|
153
|
-
letter-spacing:var(--sans-label-m-letter-spacing, 0px);
|
|
154
|
-
paragraph-spacing:var(--sans-label-m-paragraph-spacing, 6.6px);
|
|
155
|
-
}
|
|
156
|
-
.title[data-size=m]{
|
|
157
|
-
font-family:var(--sans-title-s-font-family, SB Sans Interface);
|
|
158
|
-
font-weight:var(--sans-title-s-font-weight, Semibold);
|
|
159
|
-
line-height:var(--sans-title-s-line-height, 20px);
|
|
160
|
-
font-size:var(--sans-title-s-font-size, 14px);
|
|
161
|
-
letter-spacing:var(--sans-title-s-letter-spacing, 0.15px);
|
|
162
|
-
paragraph-spacing:var(--sans-title-s-paragraph-spacing, 7.7px);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.description{
|
|
166
|
-
color:var(--sys-neutral-text-support, #6d707f);
|
|
167
|
-
word-wrap:break-word;
|
|
168
|
-
}
|
|
169
|
-
.description[data-size=s]{
|
|
170
|
-
font-family:var(--sans-body-s-font-family, SB Sans Interface);
|
|
171
|
-
font-weight:var(--sans-body-s-font-weight, Regular);
|
|
172
|
-
line-height:var(--sans-body-s-line-height, 16px);
|
|
173
|
-
font-size:var(--sans-body-s-font-size, 12px);
|
|
174
|
-
letter-spacing:var(--sans-body-s-letter-spacing, 0.1px);
|
|
175
|
-
paragraph-spacing:var(--sans-body-s-paragraph-spacing, 6.6px);
|
|
176
|
-
}
|
|
177
|
-
.description[data-size=m]{
|
|
178
|
-
font-family:var(--sans-body-m-font-family, SB Sans Interface);
|
|
179
|
-
font-weight:var(--sans-body-m-font-weight, Regular);
|
|
180
|
-
line-height:var(--sans-body-m-line-height, 20px);
|
|
181
|
-
font-size:var(--sans-body-m-font-size, 14px);
|
|
182
|
-
letter-spacing:var(--sans-body-m-letter-spacing, 0.1px);
|
|
183
|
-
paragraph-spacing:var(--sans-body-m-paragraph-spacing, 7.7px);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.footer{
|
|
187
|
-
position:relative;
|
|
188
|
-
display:flex;
|
|
189
|
-
flex-direction:row-reverse;
|
|
190
|
-
align-items:center;
|
|
191
|
-
width:100%;
|
|
192
|
-
}
|
|
193
|
-
.footer[data-size=s]{
|
|
194
|
-
gap:var(--space-alert-s-container-footer-gap, 16px);
|
|
195
|
-
}
|
|
196
|
-
.footer[data-size=m]{
|
|
197
|
-
gap:var(--space-alert-m-container-footer-gap, 16px);
|
|
198
|
-
}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
.alertTop{
|
|
2
|
-
padding-top:var(--space-alert-top-container-vertical-padding, 8px);
|
|
3
|
-
padding-bottom:var(--space-alert-top-container-vertical-padding, 8px);
|
|
4
|
-
padding-left:var(--space-alert-top-container-horizontal-padding, 16px);
|
|
5
|
-
padding-right:var(--space-alert-top-container-horizontal-padding, 16px);
|
|
6
|
-
gap:var(--space-alert-top-container-gap, 16px);
|
|
7
|
-
display:flex;
|
|
8
|
-
justify-content:space-between;
|
|
9
|
-
box-sizing:border-box;
|
|
10
|
-
}
|
|
11
|
-
.alertTop[data-color=invert-neutral]{
|
|
12
|
-
background-color:var(--sys-invert-neutral-background, #30303c);
|
|
13
|
-
}
|
|
14
|
-
.alertTop[data-color=primary]{
|
|
15
|
-
background-color:var(--sys-primary-accent-default, #794ed3);
|
|
16
|
-
}
|
|
17
|
-
.alertTop[data-color=red]{
|
|
18
|
-
background-color:var(--sys-red-accent-default, #cb3f3e);
|
|
19
|
-
}
|
|
20
|
-
.alertTop[data-color=yellow]{
|
|
21
|
-
background-color:var(--sys-yellow-accent-default, #e2b134);
|
|
22
|
-
}
|
|
23
|
-
.alertTop[data-color=green]{
|
|
24
|
-
background-color:var(--sys-green-accent-default, #57b762);
|
|
25
|
-
}
|
|
26
|
-
.alertTop[data-color=blue]{
|
|
27
|
-
background-color:var(--sys-blue-accent-default, #5388d1);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.icon{
|
|
31
|
-
display:flex;
|
|
32
|
-
align-items:center;
|
|
33
|
-
justify-content:center;
|
|
34
|
-
}
|
|
35
|
-
.icon[data-color=invert-neutral]{
|
|
36
|
-
color:var(--sys-invert-neutral-text-main, #e6e8ef);
|
|
37
|
-
}
|
|
38
|
-
.icon[data-color=primary]{
|
|
39
|
-
color:var(--sys-primary-on-accent, #fdfbff);
|
|
40
|
-
}
|
|
41
|
-
.icon[data-color=red]{
|
|
42
|
-
color:var(--sys-red-on-accent, #fffbf9);
|
|
43
|
-
}
|
|
44
|
-
.icon[data-color=yellow]{
|
|
45
|
-
color:var(--sys-yellow-on-accent, #583f1f);
|
|
46
|
-
}
|
|
47
|
-
.icon[data-color=green]{
|
|
48
|
-
color:var(--sys-green-on-accent, #fcfefa);
|
|
49
|
-
}
|
|
50
|
-
.icon[data-color=blue]{
|
|
51
|
-
color:var(--sys-blue-on-accent, #fdfeff);
|
|
52
|
-
}
|
|
53
|
-
.icon svg{
|
|
54
|
-
width:var(--size-icon-container-s, 24px) !important;
|
|
55
|
-
height:var(--size-icon-container-s, 24px) !important;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.title{
|
|
59
|
-
font-family:var(--sans-title-s-font-family, SB Sans Interface);
|
|
60
|
-
font-weight:var(--sans-title-s-font-weight, Semibold);
|
|
61
|
-
line-height:var(--sans-title-s-line-height, 20px);
|
|
62
|
-
font-size:var(--sans-title-s-font-size, 14px);
|
|
63
|
-
letter-spacing:var(--sans-title-s-letter-spacing, 0.15px);
|
|
64
|
-
paragraph-spacing:var(--sans-title-s-paragraph-spacing, 7.7px);
|
|
65
|
-
}
|
|
66
|
-
.title[data-color=invert-neutral]{
|
|
67
|
-
color:var(--sys-invert-neutral-text-main, #e6e8ef);
|
|
68
|
-
}
|
|
69
|
-
.title[data-color=primary]{
|
|
70
|
-
color:var(--sys-primary-on-accent, #fdfbff);
|
|
71
|
-
}
|
|
72
|
-
.title[data-color=red]{
|
|
73
|
-
color:var(--sys-red-on-accent, #fffbf9);
|
|
74
|
-
}
|
|
75
|
-
.title[data-color=yellow]{
|
|
76
|
-
color:var(--sys-yellow-on-accent, #583f1f);
|
|
77
|
-
}
|
|
78
|
-
.title[data-color=green]{
|
|
79
|
-
color:var(--sys-green-on-accent, #fcfefa);
|
|
80
|
-
}
|
|
81
|
-
.title[data-color=blue]{
|
|
82
|
-
color:var(--sys-blue-on-accent, #fdfeff);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.description{
|
|
86
|
-
font-family:var(--sans-body-m-font-family, SB Sans Interface);
|
|
87
|
-
font-weight:var(--sans-body-m-font-weight, Regular);
|
|
88
|
-
line-height:var(--sans-body-m-line-height, 20px);
|
|
89
|
-
font-size:var(--sans-body-m-font-size, 14px);
|
|
90
|
-
letter-spacing:var(--sans-body-m-letter-spacing, 0.1px);
|
|
91
|
-
paragraph-spacing:var(--sans-body-m-paragraph-spacing, 7.7px);
|
|
92
|
-
word-wrap:break-word;
|
|
93
|
-
}
|
|
94
|
-
.description[data-color=invert-neutral]{
|
|
95
|
-
color:var(--sys-invert-neutral-text-main, #e6e8ef);
|
|
96
|
-
}
|
|
97
|
-
.description[data-color=primary]{
|
|
98
|
-
color:var(--sys-primary-on-accent, #fdfbff);
|
|
99
|
-
}
|
|
100
|
-
.description[data-color=red]{
|
|
101
|
-
color:var(--sys-red-on-accent, #fffbf9);
|
|
102
|
-
}
|
|
103
|
-
.description[data-color=yellow]{
|
|
104
|
-
color:var(--sys-yellow-on-accent, #583f1f);
|
|
105
|
-
}
|
|
106
|
-
.description[data-color=green]{
|
|
107
|
-
color:var(--sys-green-on-accent, #fcfefa);
|
|
108
|
-
}
|
|
109
|
-
.description[data-color=blue]{
|
|
110
|
-
color:var(--sys-blue-on-accent, #fdfeff);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.contentWrapper{
|
|
114
|
-
display:flex;
|
|
115
|
-
gap:var(--dimension-2m, 16px);
|
|
116
|
-
align-items:center;
|
|
117
|
-
min-width:0;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.contentLayout{
|
|
121
|
-
gap:var(--space-alert-top-container-content-layout-gap, 2px);
|
|
122
|
-
display:flex;
|
|
123
|
-
flex-direction:column;
|
|
124
|
-
min-width:0;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.textLayout{
|
|
128
|
-
overflow:hidden;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.actions{
|
|
132
|
-
display:flex;
|
|
133
|
-
gap:var(--dimension-2m, 16px);
|
|
134
|
-
align-items:center;
|
|
135
|
-
}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
.alertButton{
|
|
2
|
-
cursor:pointer;
|
|
3
|
-
display:flex;
|
|
4
|
-
align-items:center;
|
|
5
|
-
justify-content:center;
|
|
6
|
-
box-sizing:border-box;
|
|
7
|
-
margin:0;
|
|
8
|
-
padding:0;
|
|
9
|
-
white-space:nowrap;
|
|
10
|
-
background:none;
|
|
11
|
-
border:0;
|
|
12
|
-
}
|
|
13
|
-
.alertButton .text[data-size=s]{
|
|
14
|
-
font-family:var(--sans-label-m-font-family, SB Sans Interface);
|
|
15
|
-
font-weight:var(--sans-label-m-font-weight, Semibold);
|
|
16
|
-
line-height:var(--sans-label-m-line-height, 16px);
|
|
17
|
-
font-size:var(--sans-label-m-font-size, 12px);
|
|
18
|
-
letter-spacing:var(--sans-label-m-letter-spacing, 0px);
|
|
19
|
-
paragraph-spacing:var(--sans-label-m-paragraph-spacing, 6.6px);
|
|
20
|
-
}
|
|
21
|
-
.alertButton .text[data-size=m]{
|
|
22
|
-
font-family:var(--sans-label-l-font-family, SB Sans Interface);
|
|
23
|
-
font-weight:var(--sans-label-l-font-weight, Semibold);
|
|
24
|
-
line-height:var(--sans-label-l-line-height, 20px);
|
|
25
|
-
font-size:var(--sans-label-l-font-size, 14px);
|
|
26
|
-
letter-spacing:var(--sans-label-l-letter-spacing, 0px);
|
|
27
|
-
paragraph-spacing:var(--sans-label-l-paragraph-spacing, 7.7px);
|
|
28
|
-
}
|
|
29
|
-
.alertButton .icon{
|
|
30
|
-
display:inline-flex;
|
|
31
|
-
align-items:center;
|
|
32
|
-
justify-content:center;
|
|
33
|
-
width:var(--size-icon-container-s, 24px);
|
|
34
|
-
height:var(--size-icon-container-s, 24px);
|
|
35
|
-
}
|
|
36
|
-
.alertButton .icon svg{
|
|
37
|
-
max-width:var(--size-icon-container-s, 24px);
|
|
38
|
-
max-height:var(--size-icon-container-s, 24px);
|
|
39
|
-
}
|
|
40
|
-
.alertButton[data-loading=true]{
|
|
41
|
-
cursor:not-allowed;
|
|
42
|
-
}
|
|
43
|
-
.alertButton[data-loading=true] > *{
|
|
44
|
-
cursor:not-allowed;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.alertButton[data-variant=simple][data-size=s]{
|
|
48
|
-
height:var(--size-alert-button-m, 24px);
|
|
49
|
-
gap:var(--space-alert-m-button-gap, 4px);
|
|
50
|
-
border-radius:var(--radius-alert-button, 8px);
|
|
51
|
-
}
|
|
52
|
-
.alertButton[data-variant=simple][data-size=s][data-icon-only]{
|
|
53
|
-
height:var(--size-alert-button-s, 16px);
|
|
54
|
-
width:var(--size-alert-button-s, 16px);
|
|
55
|
-
border-radius:var(--radius-alert-button, 8px);
|
|
56
|
-
}
|
|
57
|
-
.alertButton[data-variant=simple][data-size=m]{
|
|
58
|
-
height:var(--size-alert-button-m, 24px);
|
|
59
|
-
gap:var(--space-alert-m-button-gap, 4px);
|
|
60
|
-
border-radius:var(--radius-alert-button, 8px);
|
|
61
|
-
}
|
|
62
|
-
.alertButton[data-variant=simple][data-size=m][data-icon-only]{
|
|
63
|
-
height:var(--size-alert-button-m, 24px);
|
|
64
|
-
width:var(--size-alert-button-m, 24px);
|
|
65
|
-
border-radius:var(--radius-alert-button, 8px);
|
|
66
|
-
}
|
|
67
|
-
.alertButton[data-variant=simple]:focus-visible{
|
|
68
|
-
outline-color:var(--sys-available-complementary, #1c1c24);
|
|
69
|
-
outline-offset:var(--spacing-state-focus-offset, 2px);
|
|
70
|
-
}
|
|
71
|
-
.alertButton[data-variant=simple][data-appearance=neutral]{
|
|
72
|
-
color:var(--sys-neutral-text-support, #6d707f);
|
|
73
|
-
}
|
|
74
|
-
.alertButton[data-variant=simple][data-appearance=neutral]:hover, .alertButton[data-variant=simple][data-appearance=neutral]:focus-visible{
|
|
75
|
-
color:var(--sys-neutral-text-main, #41424e);
|
|
76
|
-
}
|
|
77
|
-
.alertButton[data-variant=simple][data-appearance=neutral]:active{
|
|
78
|
-
color:var(--sys-neutral-text-main, #41424e);
|
|
79
|
-
}
|
|
80
|
-
.alertButton[data-variant=simple][data-appearance=primary]{
|
|
81
|
-
color:var(--sys-primary-text-support, #5b4796);
|
|
82
|
-
}
|
|
83
|
-
.alertButton[data-variant=simple][data-appearance=primary]:hover, .alertButton[data-variant=simple][data-appearance=primary]:focus-visible{
|
|
84
|
-
color:var(--sys-primary-text-main, #382a62);
|
|
85
|
-
}
|
|
86
|
-
.alertButton[data-variant=simple][data-appearance=primary]:active{
|
|
87
|
-
color:var(--sys-primary-text-main, #382a62);
|
|
88
|
-
}
|
|
89
|
-
.alertButton[data-variant=simple][data-appearance=red]{
|
|
90
|
-
color:var(--sys-red-text-support, #ae514c);
|
|
91
|
-
}
|
|
92
|
-
.alertButton[data-variant=simple][data-appearance=red]:hover, .alertButton[data-variant=simple][data-appearance=red]:focus-visible{
|
|
93
|
-
color:var(--sys-red-text-main, #7a2d2d);
|
|
94
|
-
}
|
|
95
|
-
.alertButton[data-variant=simple][data-appearance=red]:active{
|
|
96
|
-
color:var(--sys-red-text-main, #7a2d2d);
|
|
97
|
-
}
|
|
98
|
-
.alertButton[data-variant=simple][data-appearance=yellow]{
|
|
99
|
-
color:var(--sys-yellow-text-support, #b78c32);
|
|
100
|
-
}
|
|
101
|
-
.alertButton[data-variant=simple][data-appearance=yellow]:hover, .alertButton[data-variant=simple][data-appearance=yellow]:focus-visible{
|
|
102
|
-
color:var(--sys-yellow-text-main, #815f19);
|
|
103
|
-
}
|
|
104
|
-
.alertButton[data-variant=simple][data-appearance=yellow]:active{
|
|
105
|
-
color:var(--sys-yellow-text-main, #815f19);
|
|
106
|
-
}
|
|
107
|
-
.alertButton[data-variant=simple][data-appearance=green]{
|
|
108
|
-
color:var(--sys-green-text-support, #55915a);
|
|
109
|
-
}
|
|
110
|
-
.alertButton[data-variant=simple][data-appearance=green]:hover, .alertButton[data-variant=simple][data-appearance=green]:focus-visible{
|
|
111
|
-
color:var(--sys-green-text-main, #3d6035);
|
|
112
|
-
}
|
|
113
|
-
.alertButton[data-variant=simple][data-appearance=green]:active{
|
|
114
|
-
color:var(--sys-green-text-main, #3d6035);
|
|
115
|
-
}
|
|
116
|
-
.alertButton[data-variant=simple][data-appearance=blue]{
|
|
117
|
-
color:var(--sys-blue-text-support, #4877b0);
|
|
118
|
-
}
|
|
119
|
-
.alertButton[data-variant=simple][data-appearance=blue]:hover, .alertButton[data-variant=simple][data-appearance=blue]:focus-visible{
|
|
120
|
-
color:var(--sys-blue-text-main, #2b537e);
|
|
121
|
-
}
|
|
122
|
-
.alertButton[data-variant=simple][data-appearance=blue]:active{
|
|
123
|
-
color:var(--sys-blue-text-main, #2b537e);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.alertButton[data-variant=tonal]{
|
|
127
|
-
height:var(--size-alert-top-button, 32px);
|
|
128
|
-
gap:var(--space-alert-top-button-gap, 4px);
|
|
129
|
-
border-radius:var(--radius-alert-top-button, 12px);
|
|
130
|
-
padding-left:var(--space-alert-top-button-horizontal-padding, 12px);
|
|
131
|
-
padding-right:var(--space-alert-top-button-horizontal-padding, 12px);
|
|
132
|
-
background:var(--sys-opacity-enabled, rgba(255, 255, 255, 0.1607843137));
|
|
133
|
-
}
|
|
134
|
-
.alertButton[data-variant=tonal][data-icon-only]{
|
|
135
|
-
border-radius:var(--radius-alert-top-button, 12px);
|
|
136
|
-
height:var(--size-alert-top-button, 32px);
|
|
137
|
-
width:var(--size-alert-top-button, 32px);
|
|
138
|
-
background:none;
|
|
139
|
-
}
|
|
140
|
-
.alertButton[data-variant=tonal]:hover{
|
|
141
|
-
opacity:unset;
|
|
142
|
-
background-color:var(--sys-opacity-hovered, rgba(255, 255, 255, 0.2392156863));
|
|
143
|
-
}
|
|
144
|
-
.alertButton[data-variant=tonal]:focus-visible{
|
|
145
|
-
outline-width:var(--border-state-focus-s-border-width, 2px);
|
|
146
|
-
outline-style:var(--border-state-focus-s-border-style, solid);
|
|
147
|
-
outline-color:var(--border-state-focus-s-border-color, );
|
|
148
|
-
background-color:var(--sys-opacity-hovered, rgba(255, 255, 255, 0.2392156863));
|
|
149
|
-
outline-color:var(--sys-available-on-complementary, #ffffff);
|
|
150
|
-
}
|
|
151
|
-
.alertButton[data-variant=tonal]:active{
|
|
152
|
-
background-color:var(--sys-opacity-activated, rgba(255, 255, 255, 0.3215686275));
|
|
153
|
-
}
|
|
154
|
-
.alertButton[data-variant=tonal][data-appearance=invert-neutral]{
|
|
155
|
-
color:var(--sys-invert-neutral-text-main, #e6e8ef);
|
|
156
|
-
}
|
|
157
|
-
.alertButton[data-variant=tonal][data-appearance=primary]{
|
|
158
|
-
color:var(--sys-primary-on-accent, #fdfbff);
|
|
159
|
-
}
|
|
160
|
-
.alertButton[data-variant=tonal][data-appearance=red]{
|
|
161
|
-
color:var(--sys-red-on-accent, #fffbf9);
|
|
162
|
-
}
|
|
163
|
-
.alertButton[data-variant=tonal][data-appearance=yellow]{
|
|
164
|
-
color:var(--sys-yellow-on-accent, #583f1f);
|
|
165
|
-
}
|
|
166
|
-
.alertButton[data-variant=tonal][data-appearance=green]{
|
|
167
|
-
color:var(--sys-green-on-accent, #fcfefa);
|
|
168
|
-
}
|
|
169
|
-
.alertButton[data-variant=tonal][data-appearance=blue]{
|
|
170
|
-
color:var(--sys-blue-on-accent, #fdfeff);
|
|
171
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|