@guardian/stand 0.0.63 → 0.0.65
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/UserFeedbackSummary.cjs +5 -0
- package/dist/UserFeedbackSummary.d.cts +5 -0
- package/dist/UserFeedbackSummary.d.ts +5 -0
- package/dist/UserFeedbackSummary.js +3 -0
- package/dist/components/Select/Select.cjs +10 -5
- package/dist/components/Select/Select.d.cts +1 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +11 -6
- package/dist/components/Select/styles.cjs +13 -5
- package/dist/components/Select/styles.d.cts +1 -0
- package/dist/components/Select/styles.d.ts +1 -0
- package/dist/components/Select/styles.js +13 -6
- package/dist/components/UserFeedbackSummary/UserFeedbackSummary.cjs +42 -0
- package/dist/components/UserFeedbackSummary/UserFeedbackSummary.d.cts +5 -0
- package/dist/components/UserFeedbackSummary/UserFeedbackSummary.d.ts +5 -0
- package/dist/components/UserFeedbackSummary/UserFeedbackSummary.js +42 -0
- package/dist/components/UserFeedbackSummary/styles.cjs +30 -0
- package/dist/components/UserFeedbackSummary/styles.d.cts +9 -0
- package/dist/components/UserFeedbackSummary/styles.d.ts +9 -0
- package/dist/components/UserFeedbackSummary/styles.js +28 -0
- package/dist/components/UserFeedbackSummary/types.d.cts +27 -0
- package/dist/components/UserFeedbackSummary/types.d.ts +27 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/styleD/build/css/base/colors.css +1 -1
- package/dist/styleD/build/css/base/typography.css +1 -1
- package/dist/styleD/build/css/component/alertBanner.css +1 -1
- package/dist/styleD/build/css/component/avatar.css +1 -1
- package/dist/styleD/build/css/component/select.css +9 -10
- package/dist/styleD/build/css/component/userFeedbackSummary.css +23 -0
- package/dist/styleD/build/css/semantic/colors.css +8 -3
- package/dist/styleD/build/typescript/base/colors.cjs +1 -1
- package/dist/styleD/build/typescript/base/colors.d.cts +1 -1
- package/dist/styleD/build/typescript/base/colors.d.ts +1 -1
- package/dist/styleD/build/typescript/base/colors.js +1 -1
- package/dist/styleD/build/typescript/base/typography.cjs +1 -1
- package/dist/styleD/build/typescript/base/typography.d.cts +3 -3
- package/dist/styleD/build/typescript/base/typography.d.ts +3 -3
- package/dist/styleD/build/typescript/base/typography.js +1 -1
- package/dist/styleD/build/typescript/component/alertBanner.cjs +1 -1
- package/dist/styleD/build/typescript/component/alertBanner.js +1 -1
- package/dist/styleD/build/typescript/component/avatar.cjs +1 -1
- package/dist/styleD/build/typescript/component/avatar.js +1 -1
- package/dist/styleD/build/typescript/component/select.cjs +56 -49
- package/dist/styleD/build/typescript/component/select.d.cts +16 -11
- package/dist/styleD/build/typescript/component/select.d.ts +16 -11
- package/dist/styleD/build/typescript/component/select.js +56 -49
- package/dist/styleD/build/typescript/component/userFeedbackSummary.cjs +35 -0
- package/dist/styleD/build/typescript/component/userFeedbackSummary.d.cts +36 -0
- package/dist/styleD/build/typescript/component/userFeedbackSummary.d.ts +36 -0
- package/dist/styleD/build/typescript/component/userFeedbackSummary.js +35 -0
- package/dist/styleD/build/typescript/semantic/colors.cjs +8 -3
- package/dist/styleD/build/typescript/semantic/colors.d.cts +6 -1
- package/dist/styleD/build/typescript/semantic/colors.d.ts +6 -1
- package/dist/styleD/build/typescript/semantic/colors.js +8 -3
- package/package.json +16 -2
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_userFeedbackSummary = require("./styleD/build/typescript/component/userFeedbackSummary.cjs");
|
|
3
|
+
const require_UserFeedbackSummary = require("./components/UserFeedbackSummary/UserFeedbackSummary.cjs");
|
|
4
|
+
exports.UserFeedbackSummary = require_UserFeedbackSummary.UserFeedbackSummary;
|
|
5
|
+
exports.componentUserFeedbackSummary = require_userFeedbackSummary.componentUserFeedbackSummary;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentUserFeedbackSummary, componentUserFeedbackSummary } from "./styleD/build/typescript/component/userFeedbackSummary.cjs";
|
|
2
|
+
import { PartialUserFeedbackSummaryTheme } from "./components/UserFeedbackSummary/styles.cjs";
|
|
3
|
+
import { UserFeedbackSummaryProps } from "./components/UserFeedbackSummary/types.cjs";
|
|
4
|
+
import { UserFeedbackSummary } from "./components/UserFeedbackSummary/UserFeedbackSummary.cjs";
|
|
5
|
+
export { type ComponentUserFeedbackSummary, UserFeedbackSummary, type UserFeedbackSummaryProps, type PartialUserFeedbackSummaryTheme as UserFeedbackSummaryTheme, componentUserFeedbackSummary };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentUserFeedbackSummary, componentUserFeedbackSummary } from "./styleD/build/typescript/component/userFeedbackSummary.js";
|
|
2
|
+
import { PartialUserFeedbackSummaryTheme } from "./components/UserFeedbackSummary/styles.js";
|
|
3
|
+
import { UserFeedbackSummaryProps } from "./components/UserFeedbackSummary/types.js";
|
|
4
|
+
import { UserFeedbackSummary } from "./components/UserFeedbackSummary/UserFeedbackSummary.js";
|
|
5
|
+
export { type ComponentUserFeedbackSummary, UserFeedbackSummary, type UserFeedbackSummaryProps, type PartialUserFeedbackSummaryTheme as UserFeedbackSummaryTheme, componentUserFeedbackSummary };
|
|
@@ -18,7 +18,7 @@ function Option({ children, theme = {}, id, ...props }) {
|
|
|
18
18
|
children
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
function ListBox({ children, theme = {} }) {
|
|
21
|
+
function ListBox({ children, size, theme = {} }) {
|
|
22
22
|
const mergedTheme = require_mergeDeep.mergeDeep(require_styles.defaultSelectTheme, theme);
|
|
23
23
|
const items = [];
|
|
24
24
|
react.default.Children.forEach(children, (child, index) => {
|
|
@@ -30,20 +30,24 @@ function ListBox({ children, theme = {} }) {
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(react_aria_components.ListBox, {
|
|
33
|
-
css: require_styles.listBoxStyles(mergedTheme),
|
|
33
|
+
css: require_styles.listBoxStyles(mergedTheme, { size }),
|
|
34
34
|
children: items
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
function Select({ isInvalid, theme = {}, placement, shouldFlip, children, ...props }) {
|
|
37
|
+
function Select({ size = "md", isInvalid = false, theme = {}, placement, shouldFlip, children, ...props }) {
|
|
38
38
|
const mergedTheme = require_mergeDeep.mergeDeep(require_styles.defaultSelectTheme, theme);
|
|
39
39
|
return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)(require_Form.FormInputContainer, {
|
|
40
40
|
as: react_aria_components.Select,
|
|
41
|
+
size,
|
|
41
42
|
isInvalid,
|
|
42
43
|
...props,
|
|
43
|
-
size: "md",
|
|
44
44
|
children: [/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)(react_aria_components.Button, {
|
|
45
|
-
css: require_styles.buttonStyles(mergedTheme,
|
|
45
|
+
css: require_styles.buttonStyles(mergedTheme, {
|
|
46
|
+
size,
|
|
47
|
+
isInvalid
|
|
48
|
+
}),
|
|
46
49
|
children: [/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(react_aria_components.SelectValue, {}), /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_Icon.Icon, {
|
|
50
|
+
css: require_styles.iconStyles(),
|
|
47
51
|
symbol: "keyboard_arrow_down",
|
|
48
52
|
size: "lg"
|
|
49
53
|
})]
|
|
@@ -54,6 +58,7 @@ function Select({ isInvalid, theme = {}, placement, shouldFlip, children, ...pro
|
|
|
54
58
|
offset: mergedTheme.shared.offset,
|
|
55
59
|
containerPadding: mergedTheme.shared.containerPadding,
|
|
56
60
|
children: /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(ListBox, {
|
|
61
|
+
size,
|
|
57
62
|
theme: mergedTheme,
|
|
58
63
|
children
|
|
59
64
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OptionProps, SelectProps } from "./types.cjs";
|
|
2
2
|
//#region src/components/Select/Select.d.ts
|
|
3
3
|
declare function Option({ children, theme, id, ...props }: OptionProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function Select({ isInvalid, theme, placement, shouldFlip, children, ...props }: SelectProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function Select({ size, isInvalid, theme, placement, shouldFlip, children, ...props }: SelectProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { Option, Select };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OptionProps, SelectProps } from "./types.js";
|
|
2
2
|
//#region src/components/Select/Select.d.ts
|
|
3
3
|
declare function Option({ children, theme, id, ...props }: OptionProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function Select({ isInvalid, theme, placement, shouldFlip, children, ...props }: SelectProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function Select({ size, isInvalid, theme, placement, shouldFlip, children, ...props }: SelectProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { Option, Select };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mergeDeep } from "../../util/mergeDeep.js";
|
|
2
2
|
import { Icon } from "../Icon/Icon.js";
|
|
3
3
|
import { FormInputContainer } from "../Form/Form.js";
|
|
4
|
-
import { buttonStyles, defaultSelectTheme, listBoxItemStyles, listBoxStyles, popoverStyles } from "./styles.js";
|
|
4
|
+
import { buttonStyles, defaultSelectTheme, iconStyles, listBoxItemStyles, listBoxStyles, popoverStyles } from "./styles.js";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
7
7
|
import { Button, ListBox, ListBoxItem, Popover, Select, SelectValue } from "react-aria-components";
|
|
@@ -16,7 +16,7 @@ function Option({ children, theme = {}, id, ...props }) {
|
|
|
16
16
|
children
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
function ListBox$1({ children, theme = {} }) {
|
|
19
|
+
function ListBox$1({ children, size, theme = {} }) {
|
|
20
20
|
const mergedTheme = mergeDeep(defaultSelectTheme, theme);
|
|
21
21
|
const items = [];
|
|
22
22
|
React.Children.forEach(children, (child, index) => {
|
|
@@ -28,20 +28,24 @@ function ListBox$1({ children, theme = {} }) {
|
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
return /* @__PURE__ */ jsx(ListBox, {
|
|
31
|
-
css: listBoxStyles(mergedTheme),
|
|
31
|
+
css: listBoxStyles(mergedTheme, { size }),
|
|
32
32
|
children: items
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
function Select$1({ isInvalid, theme = {}, placement, shouldFlip, children, ...props }) {
|
|
35
|
+
function Select$1({ size = "md", isInvalid = false, theme = {}, placement, shouldFlip, children, ...props }) {
|
|
36
36
|
const mergedTheme = mergeDeep(defaultSelectTheme, theme);
|
|
37
37
|
return /* @__PURE__ */ jsxs(FormInputContainer, {
|
|
38
38
|
as: Select,
|
|
39
|
+
size,
|
|
39
40
|
isInvalid,
|
|
40
41
|
...props,
|
|
41
|
-
size: "md",
|
|
42
42
|
children: [/* @__PURE__ */ jsxs(Button, {
|
|
43
|
-
css: buttonStyles(mergedTheme,
|
|
43
|
+
css: buttonStyles(mergedTheme, {
|
|
44
|
+
size,
|
|
45
|
+
isInvalid
|
|
46
|
+
}),
|
|
44
47
|
children: [/* @__PURE__ */ jsx(SelectValue, {}), /* @__PURE__ */ jsx(Icon, {
|
|
48
|
+
css: iconStyles(),
|
|
45
49
|
symbol: "keyboard_arrow_down",
|
|
46
50
|
size: "lg"
|
|
47
51
|
})]
|
|
@@ -52,6 +56,7 @@ function Select$1({ isInvalid, theme = {}, placement, shouldFlip, children, ...p
|
|
|
52
56
|
offset: mergedTheme.shared.offset,
|
|
53
57
|
containerPadding: mergedTheme.shared.containerPadding,
|
|
54
58
|
children: /* @__PURE__ */ jsx(ListBox$1, {
|
|
59
|
+
size,
|
|
55
60
|
theme: mergedTheme,
|
|
56
61
|
children
|
|
57
62
|
})
|
|
@@ -42,9 +42,9 @@ const listBoxItemStyles = (theme) => {
|
|
|
42
42
|
}
|
|
43
43
|
`;
|
|
44
44
|
};
|
|
45
|
-
const listBoxStyles = (theme) => {
|
|
45
|
+
const listBoxStyles = (theme, { size }) => {
|
|
46
46
|
return _emotion_react.css`
|
|
47
|
-
${require_typography.convertTypographyToEmotionStringStyle(theme.
|
|
47
|
+
${require_typography.convertTypographyToEmotionStringStyle(theme[size].typography)}
|
|
48
48
|
background-color: ${theme.shared.listBox.backgroundColor};
|
|
49
49
|
border: ${theme.shared.listBox.border};
|
|
50
50
|
box-shadow: ${theme.shared.listBox.shadow};
|
|
@@ -52,7 +52,7 @@ const listBoxStyles = (theme) => {
|
|
|
52
52
|
outline: none;
|
|
53
53
|
`;
|
|
54
54
|
};
|
|
55
|
-
const buttonStyles = (theme, isInvalid) => {
|
|
55
|
+
const buttonStyles = (theme, { size, isInvalid }) => {
|
|
56
56
|
return _emotion_react.css`
|
|
57
57
|
display: ${theme.shared.button.display};
|
|
58
58
|
justify-content: ${theme.shared.button.justifyContent};
|
|
@@ -60,11 +60,11 @@ const buttonStyles = (theme, isInvalid) => {
|
|
|
60
60
|
background-color: ${theme.shared.button.backgroundColor};
|
|
61
61
|
border: ${theme.shared.button.border};
|
|
62
62
|
border-radius: ${theme.shared.button.borderRadius};
|
|
63
|
-
height: ${theme.
|
|
63
|
+
height: ${theme[size].height};
|
|
64
64
|
padding-left: ${theme.shared.button.paddingLeft};
|
|
65
65
|
padding-right: ${theme.shared.button.paddingRight};
|
|
66
66
|
margin-top: ${theme.shared.button.marginTop};
|
|
67
|
-
${require_typography.convertTypographyToEmotionStringStyle(theme.
|
|
67
|
+
${require_typography.convertTypographyToEmotionStringStyle(theme[size].typography)}
|
|
68
68
|
color: ${theme.shared.button.color};
|
|
69
69
|
|
|
70
70
|
&[data-hovered] {
|
|
@@ -90,9 +90,17 @@ const buttonStyles = (theme, isInvalid) => {
|
|
|
90
90
|
${isInvalid ? `border: ${theme.shared.button.error.border};` : ``}
|
|
91
91
|
`;
|
|
92
92
|
};
|
|
93
|
+
const iconStyles = () => {
|
|
94
|
+
return _emotion_react.css`
|
|
95
|
+
[data-open] & {
|
|
96
|
+
transform: rotate(180deg);
|
|
97
|
+
}
|
|
98
|
+
`;
|
|
99
|
+
};
|
|
93
100
|
//#endregion
|
|
94
101
|
exports.buttonStyles = buttonStyles;
|
|
95
102
|
exports.defaultSelectTheme = defaultSelectTheme;
|
|
103
|
+
exports.iconStyles = iconStyles;
|
|
96
104
|
exports.listBoxItemStyles = listBoxItemStyles;
|
|
97
105
|
exports.listBoxStyles = listBoxStyles;
|
|
98
106
|
exports.popoverStyles = popoverStyles;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DeepPartial, Prettify } from "../../util/types.cjs";
|
|
2
2
|
import { ComponentSelect } from "../../styleD/build/typescript/component/select.cjs";
|
|
3
|
+
import "./types.cjs";
|
|
3
4
|
import { SerializedStyles } from "@emotion/react";
|
|
4
5
|
//#region src/components/Select/styles.d.ts
|
|
5
6
|
type SelectTheme = Prettify<ComponentSelect>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DeepPartial, Prettify } from "../../util/types.js";
|
|
2
2
|
import { ComponentSelect } from "../../styleD/build/typescript/component/select.js";
|
|
3
|
+
import "./types.js";
|
|
3
4
|
import { SerializedStyles } from "@emotion/react";
|
|
4
5
|
//#region src/components/Select/styles.d.ts
|
|
5
6
|
type SelectTheme = Prettify<ComponentSelect>;
|
|
@@ -42,9 +42,9 @@ const listBoxItemStyles = (theme) => {
|
|
|
42
42
|
}
|
|
43
43
|
`;
|
|
44
44
|
};
|
|
45
|
-
const listBoxStyles = (theme) => {
|
|
45
|
+
const listBoxStyles = (theme, { size }) => {
|
|
46
46
|
return css`
|
|
47
|
-
${convertTypographyToEmotionStringStyle(theme.
|
|
47
|
+
${convertTypographyToEmotionStringStyle(theme[size].typography)}
|
|
48
48
|
background-color: ${theme.shared.listBox.backgroundColor};
|
|
49
49
|
border: ${theme.shared.listBox.border};
|
|
50
50
|
box-shadow: ${theme.shared.listBox.shadow};
|
|
@@ -52,7 +52,7 @@ const listBoxStyles = (theme) => {
|
|
|
52
52
|
outline: none;
|
|
53
53
|
`;
|
|
54
54
|
};
|
|
55
|
-
const buttonStyles = (theme, isInvalid) => {
|
|
55
|
+
const buttonStyles = (theme, { size, isInvalid }) => {
|
|
56
56
|
return css`
|
|
57
57
|
display: ${theme.shared.button.display};
|
|
58
58
|
justify-content: ${theme.shared.button.justifyContent};
|
|
@@ -60,11 +60,11 @@ const buttonStyles = (theme, isInvalid) => {
|
|
|
60
60
|
background-color: ${theme.shared.button.backgroundColor};
|
|
61
61
|
border: ${theme.shared.button.border};
|
|
62
62
|
border-radius: ${theme.shared.button.borderRadius};
|
|
63
|
-
height: ${theme.
|
|
63
|
+
height: ${theme[size].height};
|
|
64
64
|
padding-left: ${theme.shared.button.paddingLeft};
|
|
65
65
|
padding-right: ${theme.shared.button.paddingRight};
|
|
66
66
|
margin-top: ${theme.shared.button.marginTop};
|
|
67
|
-
${convertTypographyToEmotionStringStyle(theme.
|
|
67
|
+
${convertTypographyToEmotionStringStyle(theme[size].typography)}
|
|
68
68
|
color: ${theme.shared.button.color};
|
|
69
69
|
|
|
70
70
|
&[data-hovered] {
|
|
@@ -90,5 +90,12 @@ const buttonStyles = (theme, isInvalid) => {
|
|
|
90
90
|
${isInvalid ? `border: ${theme.shared.button.error.border};` : ``}
|
|
91
91
|
`;
|
|
92
92
|
};
|
|
93
|
+
const iconStyles = () => {
|
|
94
|
+
return css`
|
|
95
|
+
[data-open] & {
|
|
96
|
+
transform: rotate(180deg);
|
|
97
|
+
}
|
|
98
|
+
`;
|
|
99
|
+
};
|
|
93
100
|
//#endregion
|
|
94
|
-
export { buttonStyles, defaultSelectTheme, listBoxItemStyles, listBoxStyles, popoverStyles };
|
|
101
|
+
export { buttonStyles, defaultSelectTheme, iconStyles, listBoxItemStyles, listBoxStyles, popoverStyles };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const require_mergeDeep = require("../../util/mergeDeep.cjs");
|
|
2
|
+
const require_Icon = require("../Icon/Icon.cjs");
|
|
3
|
+
const require_Typography = require("../Typography/Typography.cjs");
|
|
4
|
+
const require_styles = require("./styles.cjs");
|
|
5
|
+
let react = require("react");
|
|
6
|
+
let _emotion_react_jsx_runtime = require("@emotion/react/jsx-runtime");
|
|
7
|
+
//#region src/components/UserFeedbackSummary/UserFeedbackSummary.tsx
|
|
8
|
+
const UserFeedbackSummary = ({ children, level, title, hideIcon = false, icon, theme = {}, cssOverrides, className, ...props }) => {
|
|
9
|
+
const mergedTheme = require_mergeDeep.mergeDeep(require_styles.defaultUserFeedbackSummaryTheme, theme);
|
|
10
|
+
const determinedIcon = (0, react.useMemo)(() => {
|
|
11
|
+
if (icon) return icon;
|
|
12
|
+
switch (level) {
|
|
13
|
+
case "error": return "warning";
|
|
14
|
+
case "warning": return "flag";
|
|
15
|
+
case "success": return "sentiment_satisfied_alt";
|
|
16
|
+
case "information": return "info";
|
|
17
|
+
}
|
|
18
|
+
}, [icon, level]);
|
|
19
|
+
return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)("div", {
|
|
20
|
+
css: [require_styles.userFeedbackSummaryStyles(mergedTheme, { level }), cssOverrides],
|
|
21
|
+
className,
|
|
22
|
+
...props,
|
|
23
|
+
children: [!hideIcon && /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_Icon.Icon, {
|
|
24
|
+
size: "md",
|
|
25
|
+
fill: mergedTheme[level].color,
|
|
26
|
+
children: determinedIcon
|
|
27
|
+
}), /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)("div", {
|
|
28
|
+
css: require_styles.textLayoutStyles,
|
|
29
|
+
children: [/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
30
|
+
variant: "bodyBoldSm",
|
|
31
|
+
theme: { color: mergedTheme[level].color },
|
|
32
|
+
children: title
|
|
33
|
+
}), children && /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
34
|
+
variant: "bodySm",
|
|
35
|
+
theme: { color: mergedTheme.shared.color },
|
|
36
|
+
children
|
|
37
|
+
})]
|
|
38
|
+
})]
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
exports.UserFeedbackSummary = UserFeedbackSummary;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UserFeedbackSummaryProps } from "./types.cjs";
|
|
2
|
+
//#region src/components/UserFeedbackSummary/UserFeedbackSummary.d.ts
|
|
3
|
+
declare const UserFeedbackSummary: ({ children, level, title, hideIcon, icon, theme, cssOverrides, className, ...props }: UserFeedbackSummaryProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { UserFeedbackSummary };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UserFeedbackSummaryProps } from "./types.js";
|
|
2
|
+
//#region src/components/UserFeedbackSummary/UserFeedbackSummary.d.ts
|
|
3
|
+
declare const UserFeedbackSummary: ({ children, level, title, hideIcon, icon, theme, cssOverrides, className, ...props }: UserFeedbackSummaryProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { UserFeedbackSummary };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { mergeDeep } from "../../util/mergeDeep.js";
|
|
2
|
+
import { Icon } from "../Icon/Icon.js";
|
|
3
|
+
import { Typography } from "../Typography/Typography.js";
|
|
4
|
+
import { defaultUserFeedbackSummaryTheme, textLayoutStyles, userFeedbackSummaryStyles } from "./styles.js";
|
|
5
|
+
import { useMemo } from "react";
|
|
6
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
7
|
+
//#region src/components/UserFeedbackSummary/UserFeedbackSummary.tsx
|
|
8
|
+
const UserFeedbackSummary = ({ children, level, title, hideIcon = false, icon, theme = {}, cssOverrides, className, ...props }) => {
|
|
9
|
+
const mergedTheme = mergeDeep(defaultUserFeedbackSummaryTheme, theme);
|
|
10
|
+
const determinedIcon = useMemo(() => {
|
|
11
|
+
if (icon) return icon;
|
|
12
|
+
switch (level) {
|
|
13
|
+
case "error": return "warning";
|
|
14
|
+
case "warning": return "flag";
|
|
15
|
+
case "success": return "sentiment_satisfied_alt";
|
|
16
|
+
case "information": return "info";
|
|
17
|
+
}
|
|
18
|
+
}, [icon, level]);
|
|
19
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
20
|
+
css: [userFeedbackSummaryStyles(mergedTheme, { level }), cssOverrides],
|
|
21
|
+
className,
|
|
22
|
+
...props,
|
|
23
|
+
children: [!hideIcon && /* @__PURE__ */ jsx(Icon, {
|
|
24
|
+
size: "md",
|
|
25
|
+
fill: mergedTheme[level].color,
|
|
26
|
+
children: determinedIcon
|
|
27
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
28
|
+
css: textLayoutStyles,
|
|
29
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
30
|
+
variant: "bodyBoldSm",
|
|
31
|
+
theme: { color: mergedTheme[level].color },
|
|
32
|
+
children: title
|
|
33
|
+
}), children && /* @__PURE__ */ jsx(Typography, {
|
|
34
|
+
variant: "bodySm",
|
|
35
|
+
theme: { color: mergedTheme.shared.color },
|
|
36
|
+
children
|
|
37
|
+
})]
|
|
38
|
+
})]
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { UserFeedbackSummary };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const require_userFeedbackSummary = require("../../styleD/build/typescript/component/userFeedbackSummary.cjs");
|
|
2
|
+
const require_sizing = require("../../styleD/build/typescript/base/sizing.cjs");
|
|
3
|
+
const require_spacing = require("../../styleD/build/typescript/base/spacing.cjs");
|
|
4
|
+
let _emotion_react = require("@emotion/react");
|
|
5
|
+
//#region src/components/UserFeedbackSummary/styles.ts
|
|
6
|
+
const defaultUserFeedbackSummaryTheme = require_userFeedbackSummary.componentUserFeedbackSummary;
|
|
7
|
+
const userFeedbackSummaryStyles = (theme, { level }) => {
|
|
8
|
+
return _emotion_react.css`
|
|
9
|
+
display: flex;
|
|
10
|
+
gap: ${theme.shared.gap};
|
|
11
|
+
border-width: ${theme.shared.borderWidth};
|
|
12
|
+
border-style: ${theme.shared.borderStyle};
|
|
13
|
+
border-color: ${theme[level].borderColor};
|
|
14
|
+
padding-top: ${theme.shared.paddingTop};
|
|
15
|
+
padding-right: ${theme.shared.paddingRight};
|
|
16
|
+
padding-bottom: ${theme.shared.paddingBottom};
|
|
17
|
+
padding-left: ${theme.shared.paddingLeft};
|
|
18
|
+
max-width: ${theme.shared.maxWidth};
|
|
19
|
+
`;
|
|
20
|
+
};
|
|
21
|
+
const textLayoutStyles = _emotion_react.css`
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
gap: ${require_spacing.baseSpacing["4Rem"]};
|
|
25
|
+
margin-top: ${require_sizing.baseSizing["size1Rem"]};
|
|
26
|
+
`;
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.defaultUserFeedbackSummaryTheme = defaultUserFeedbackSummaryTheme;
|
|
29
|
+
exports.textLayoutStyles = textLayoutStyles;
|
|
30
|
+
exports.userFeedbackSummaryStyles = userFeedbackSummaryStyles;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DeepPartial, Prettify } from "../../util/types.cjs";
|
|
2
|
+
import { ComponentUserFeedbackSummary } from "../../styleD/build/typescript/component/userFeedbackSummary.cjs";
|
|
3
|
+
import "./types.cjs";
|
|
4
|
+
import { SerializedStyles } from "@emotion/react";
|
|
5
|
+
//#region src/components/UserFeedbackSummary/styles.d.ts
|
|
6
|
+
type UserFeedbackSummaryTheme = Prettify<ComponentUserFeedbackSummary>;
|
|
7
|
+
type PartialUserFeedbackSummaryTheme = Prettify<DeepPartial<UserFeedbackSummaryTheme>>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { PartialUserFeedbackSummaryTheme, UserFeedbackSummaryTheme };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DeepPartial, Prettify } from "../../util/types.js";
|
|
2
|
+
import { ComponentUserFeedbackSummary } from "../../styleD/build/typescript/component/userFeedbackSummary.js";
|
|
3
|
+
import "./types.js";
|
|
4
|
+
import { SerializedStyles } from "@emotion/react";
|
|
5
|
+
//#region src/components/UserFeedbackSummary/styles.d.ts
|
|
6
|
+
type UserFeedbackSummaryTheme = Prettify<ComponentUserFeedbackSummary>;
|
|
7
|
+
type PartialUserFeedbackSummaryTheme = Prettify<DeepPartial<UserFeedbackSummaryTheme>>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { PartialUserFeedbackSummaryTheme, UserFeedbackSummaryTheme };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { componentUserFeedbackSummary } from "../../styleD/build/typescript/component/userFeedbackSummary.js";
|
|
2
|
+
import { baseSizing } from "../../styleD/build/typescript/base/sizing.js";
|
|
3
|
+
import { baseSpacing } from "../../styleD/build/typescript/base/spacing.js";
|
|
4
|
+
import { css } from "@emotion/react";
|
|
5
|
+
//#region src/components/UserFeedbackSummary/styles.ts
|
|
6
|
+
const defaultUserFeedbackSummaryTheme = componentUserFeedbackSummary;
|
|
7
|
+
const userFeedbackSummaryStyles = (theme, { level }) => {
|
|
8
|
+
return css`
|
|
9
|
+
display: flex;
|
|
10
|
+
gap: ${theme.shared.gap};
|
|
11
|
+
border-width: ${theme.shared.borderWidth};
|
|
12
|
+
border-style: ${theme.shared.borderStyle};
|
|
13
|
+
border-color: ${theme[level].borderColor};
|
|
14
|
+
padding-top: ${theme.shared.paddingTop};
|
|
15
|
+
padding-right: ${theme.shared.paddingRight};
|
|
16
|
+
padding-bottom: ${theme.shared.paddingBottom};
|
|
17
|
+
padding-left: ${theme.shared.paddingLeft};
|
|
18
|
+
max-width: ${theme.shared.maxWidth};
|
|
19
|
+
`;
|
|
20
|
+
};
|
|
21
|
+
const textLayoutStyles = css`
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
gap: ${baseSpacing["4Rem"]};
|
|
25
|
+
margin-top: ${baseSizing["size1Rem"]};
|
|
26
|
+
`;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { defaultUserFeedbackSummaryTheme, textLayoutStyles, userFeedbackSummaryStyles };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DefaultPropsWithChildren } from "../../util/types.cjs";
|
|
2
|
+
import { IconProps } from "../Icon/types.cjs";
|
|
3
|
+
import { UserFeedbackSummaryTheme } from "./styles.cjs";
|
|
4
|
+
//#region src/components/UserFeedbackSummary/types.d.ts
|
|
5
|
+
type UserFeedbackSummaryProps = DefaultPropsWithChildren<UserFeedbackSummaryTheme> & {
|
|
6
|
+
/**
|
|
7
|
+
* The severity level of the message which determines its styling.
|
|
8
|
+
* This is a required prop.
|
|
9
|
+
* Levels: 'error', 'warning', 'success', 'information'
|
|
10
|
+
*/
|
|
11
|
+
level: keyof Omit<UserFeedbackSummaryTheme, 'shared'>;
|
|
12
|
+
/**
|
|
13
|
+
* Title of feedback summary message. This is a required prop.
|
|
14
|
+
*/
|
|
15
|
+
title: string;
|
|
16
|
+
/**
|
|
17
|
+
* Optional prop to hide the default icon associated with the message level.
|
|
18
|
+
*/
|
|
19
|
+
hideIcon?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Override the default icon for the message by providing a custom icon.
|
|
22
|
+
* This can be either a string (for Material Symbols) or an SVG element.
|
|
23
|
+
*/
|
|
24
|
+
icon?: IconProps['symbol'] | Exclude<IconProps['children'], string>;
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { UserFeedbackSummaryProps };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DefaultPropsWithChildren } from "../../util/types.js";
|
|
2
|
+
import { IconProps } from "../Icon/types.js";
|
|
3
|
+
import { UserFeedbackSummaryTheme } from "./styles.js";
|
|
4
|
+
//#region src/components/UserFeedbackSummary/types.d.ts
|
|
5
|
+
type UserFeedbackSummaryProps = DefaultPropsWithChildren<UserFeedbackSummaryTheme> & {
|
|
6
|
+
/**
|
|
7
|
+
* The severity level of the message which determines its styling.
|
|
8
|
+
* This is a required prop.
|
|
9
|
+
* Levels: 'error', 'warning', 'success', 'information'
|
|
10
|
+
*/
|
|
11
|
+
level: keyof Omit<UserFeedbackSummaryTheme, 'shared'>;
|
|
12
|
+
/**
|
|
13
|
+
* Title of feedback summary message. This is a required prop.
|
|
14
|
+
*/
|
|
15
|
+
title: string;
|
|
16
|
+
/**
|
|
17
|
+
* Optional prop to hide the default icon associated with the message level.
|
|
18
|
+
*/
|
|
19
|
+
hideIcon?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Override the default icon for the message by providing a custom icon.
|
|
22
|
+
* This can be either a string (for Material Symbols) or an SVG element.
|
|
23
|
+
*/
|
|
24
|
+
icon?: IconProps['symbol'] | Exclude<IconProps['children'], string>;
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { UserFeedbackSummaryProps };
|
package/dist/index.cjs
CHANGED
|
@@ -28,6 +28,7 @@ const require_tooltip = require("./styleD/build/typescript/component/tooltip.cjs
|
|
|
28
28
|
const require_topBar = require("./styleD/build/typescript/component/topBar.cjs");
|
|
29
29
|
const require_typography = require("./styleD/build/typescript/component/typography.cjs");
|
|
30
30
|
const require_tabs = require("./styleD/build/typescript/component/tabs.cjs");
|
|
31
|
+
const require_userFeedbackSummary = require("./styleD/build/typescript/component/userFeedbackSummary.cjs");
|
|
31
32
|
const require_colors = require("./styleD/build/typescript/base/colors.cjs");
|
|
32
33
|
const require_radius = require("./styleD/build/typescript/base/radius.cjs");
|
|
33
34
|
const require_sizing = require("./styleD/build/typescript/base/sizing.cjs");
|
|
@@ -72,6 +73,7 @@ exports.componentTextInput = require_textInput.componentTextInput;
|
|
|
72
73
|
exports.componentTooltip = require_tooltip.componentTooltip;
|
|
73
74
|
exports.componentTopBar = require_topBar.componentTopBar;
|
|
74
75
|
exports.componentTypography = require_typography.componentTypography;
|
|
76
|
+
exports.componentUserFeedbackSummary = require_userFeedbackSummary.componentUserFeedbackSummary;
|
|
75
77
|
exports.componentUserMenu = require_userMenu.componentUserMenu;
|
|
76
78
|
exports.semanticBreakpoints = require_breakpoints.semanticBreakpoints;
|
|
77
79
|
exports.semanticColors = require_colors$1.semanticColors;
|
package/dist/index.d.cts
CHANGED
|
@@ -27,6 +27,7 @@ import { ComponentTextArea, componentTextArea } from "./styleD/build/typescript/
|
|
|
27
27
|
import { ComponentTextInput, componentTextInput } from "./styleD/build/typescript/component/textInput.cjs";
|
|
28
28
|
import { ComponentTooltip, componentTooltip } from "./styleD/build/typescript/component/tooltip.cjs";
|
|
29
29
|
import { ComponentTopBar, componentTopBar } from "./styleD/build/typescript/component/topBar.cjs";
|
|
30
|
+
import { ComponentUserFeedbackSummary, componentUserFeedbackSummary } from "./styleD/build/typescript/component/userFeedbackSummary.cjs";
|
|
30
31
|
import { ComponentUserMenu, componentUserMenu } from "./styleD/build/typescript/component/userMenu.cjs";
|
|
31
32
|
import { BaseColors, baseColors } from "./styleD/build/typescript/base/colors.cjs";
|
|
32
33
|
import { BaseRadius, baseRadius } from "./styleD/build/typescript/base/radius.cjs";
|
|
@@ -39,4 +40,4 @@ import { SemanticSizing, semanticSizing } from "./styleD/build/typescript/semant
|
|
|
39
40
|
import { SemanticShadow, semanticShadow } from "./styleD/build/typescript/semantic/shadow.cjs";
|
|
40
41
|
import { SemanticRadius, semanticRadius } from "./styleD/build/typescript/semantic/radius.cjs";
|
|
41
42
|
import { SemanticSpacing, semanticSpacing } from "./styleD/build/typescript/semantic/spacing.cjs";
|
|
42
|
-
export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentButton, type ComponentButtonGroup, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentRadioGroup, type ComponentSelect, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTooltip, type ComponentTopBar, type ComponentTypography, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTooltip, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
|
43
|
+
export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentButton, type ComponentButtonGroup, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentRadioGroup, type ComponentSelect, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTooltip, type ComponentTopBar, type ComponentTypography, type ComponentUserFeedbackSummary, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { ComponentTextArea, componentTextArea } from "./styleD/build/typescript/
|
|
|
27
27
|
import { ComponentTextInput, componentTextInput } from "./styleD/build/typescript/component/textInput.js";
|
|
28
28
|
import { ComponentTooltip, componentTooltip } from "./styleD/build/typescript/component/tooltip.js";
|
|
29
29
|
import { ComponentTopBar, componentTopBar } from "./styleD/build/typescript/component/topBar.js";
|
|
30
|
+
import { ComponentUserFeedbackSummary, componentUserFeedbackSummary } from "./styleD/build/typescript/component/userFeedbackSummary.js";
|
|
30
31
|
import { ComponentUserMenu, componentUserMenu } from "./styleD/build/typescript/component/userMenu.js";
|
|
31
32
|
import { BaseColors, baseColors } from "./styleD/build/typescript/base/colors.js";
|
|
32
33
|
import { BaseRadius, baseRadius } from "./styleD/build/typescript/base/radius.js";
|
|
@@ -39,4 +40,4 @@ import { SemanticSizing, semanticSizing } from "./styleD/build/typescript/semant
|
|
|
39
40
|
import { SemanticShadow, semanticShadow } from "./styleD/build/typescript/semantic/shadow.js";
|
|
40
41
|
import { SemanticRadius, semanticRadius } from "./styleD/build/typescript/semantic/radius.js";
|
|
41
42
|
import { SemanticSpacing, semanticSpacing } from "./styleD/build/typescript/semantic/spacing.js";
|
|
42
|
-
export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentButton, type ComponentButtonGroup, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentRadioGroup, type ComponentSelect, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTooltip, type ComponentTopBar, type ComponentTypography, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTooltip, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
|
43
|
+
export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentButton, type ComponentButtonGroup, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentRadioGroup, type ComponentSelect, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTooltip, type ComponentTopBar, type ComponentTypography, type ComponentUserFeedbackSummary, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
package/dist/index.js
CHANGED
|
@@ -27,6 +27,7 @@ import { componentTooltip } from "./styleD/build/typescript/component/tooltip.js
|
|
|
27
27
|
import { componentTopBar } from "./styleD/build/typescript/component/topBar.js";
|
|
28
28
|
import { componentTypography } from "./styleD/build/typescript/component/typography.js";
|
|
29
29
|
import { componentTabs } from "./styleD/build/typescript/component/tabs.js";
|
|
30
|
+
import { componentUserFeedbackSummary } from "./styleD/build/typescript/component/userFeedbackSummary.js";
|
|
30
31
|
import { baseColors } from "./styleD/build/typescript/base/colors.js";
|
|
31
32
|
import { baseRadius } from "./styleD/build/typescript/base/radius.js";
|
|
32
33
|
import { baseSizing } from "./styleD/build/typescript/base/sizing.js";
|
|
@@ -39,4 +40,4 @@ import { semanticSizing } from "./styleD/build/typescript/semantic/sizing.js";
|
|
|
39
40
|
import { semanticShadow } from "./styleD/build/typescript/semantic/shadow.js";
|
|
40
41
|
import { semanticRadius } from "./styleD/build/typescript/semantic/radius.js";
|
|
41
42
|
import { semanticSpacing } from "./styleD/build/typescript/semantic/spacing.js";
|
|
42
|
-
export { baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTooltip, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
|
43
|
+
export { baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTooltip, componentTopBar, componentTypography, componentUserFeedbackSummary, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
--base-colors-yellow-500: #f4cd44;
|
|
78
78
|
--base-colors-yellow-600: #f6d86d;
|
|
79
79
|
--base-colors-yellow-700: #f9e396;
|
|
80
|
-
--base-colors-yellow-800: #
|
|
80
|
+
--base-colors-yellow-800: #ffedac;
|
|
81
81
|
--base-colors-yellow-900: #fef9e8;
|
|
82
82
|
--base-colors-orange-50: #45260e;
|
|
83
83
|
--base-colors-orange-100: #693c16;
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
--base-typography-size-36-rem: 2.25rem;
|
|
30
30
|
--base-typography-size-42-rem: 2.625rem;
|
|
31
31
|
--base-typography-size-48-rem: 3rem;
|
|
32
|
-
--base-typography-weight-guardian-headline-bold: 700;
|
|
33
32
|
--base-typography-weight-guardian-text-egyptian-normal: 400;
|
|
34
33
|
--base-typography-weight-guardian-text-egyptian-bold: 700;
|
|
34
|
+
--base-typography-weight-guardian-headline-bold: 700;
|
|
35
35
|
--base-typography-weight-open-sans-light: 340;
|
|
36
36
|
--base-typography-weight-open-sans-normal: 460;
|
|
37
37
|
--base-typography-weight-open-sans-semi-bold: 600;
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
--component-alert-banner-shared-content-icon-color: #545454;
|
|
27
27
|
--component-alert-banner-information-background-color: #e8f0fb;
|
|
28
28
|
--component-alert-banner-success-background-color: #cde4c9;
|
|
29
|
-
--component-alert-banner-warning-background-color: #
|
|
29
|
+
--component-alert-banner-warning-background-color: #ffedac;
|
|
30
30
|
--component-alert-banner-error-background-color: #f5c6c0;
|
|
31
31
|
}
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
--component-avatar-shared-color-orange-hover-background: #fac7a1;
|
|
50
50
|
--component-avatar-shared-color-orange-active-background: #f9b27c;
|
|
51
51
|
--component-avatar-shared-color-yellow-text: #5b4a0b;
|
|
52
|
-
--component-avatar-shared-color-yellow-background: #
|
|
52
|
+
--component-avatar-shared-color-yellow-background: #ffedac;
|
|
53
53
|
--component-avatar-shared-color-yellow-border: unset;
|
|
54
54
|
--component-avatar-shared-color-yellow-hover-background: #f9e396;
|
|
55
55
|
--component-avatar-shared-color-yellow-active-background: #f6d86d;
|