@guardian/stand 0.0.33 → 0.0.34
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/components/intended-audience-signifier/FlagIcons.cjs +128 -0
- package/dist/components/intended-audience-signifier/FlagIcons.js +9 -0
- package/dist/components/intended-audience-signifier/IntendedAudienceSignifier.cjs +67 -0
- package/dist/components/intended-audience-signifier/IntendedAudienceSignifier.js +35 -0
- package/dist/components/intended-audience-signifier/styles.cjs +31 -0
- package/dist/components/intended-audience-signifier/styles.js +28 -0
- package/dist/index.cjs +2 -0
- package/dist/index.js +1 -0
- package/dist/intended-audience-signifier.cjs +9 -0
- package/dist/intended-audience-signifier.js +2 -0
- package/dist/styleD/build/css/base/typography.css +2 -2
- package/dist/styleD/build/css/component/TopBar.css +2 -2
- package/dist/styleD/build/css/component/alertBanner.css +1 -1
- package/dist/styleD/build/css/component/autocomplete.css +1 -1
- package/dist/styleD/build/css/component/avatar.css +1 -1
- package/dist/styleD/build/css/component/button.css +3 -3
- package/dist/styleD/build/css/component/checkbox.css +2 -2
- package/dist/styleD/build/css/component/favicon.css +1 -1
- package/dist/styleD/build/css/component/form.css +1 -1
- package/dist/styleD/build/css/component/inlineMessage.css +1 -1
- package/dist/styleD/build/css/component/intendedAudienceSignifier.css +25 -0
- package/dist/styleD/build/css/component/menu.css +3 -3
- package/dist/styleD/build/css/component/radioGroup.css +3 -3
- package/dist/styleD/build/css/component/select.css +2 -2
- package/dist/styleD/build/css/component/tagTable.css +1 -1
- package/dist/styleD/build/css/component/textArea.css +2 -2
- package/dist/styleD/build/css/component/textInput.css +2 -2
- package/dist/styleD/build/css/component/userMenu.css +6 -6
- package/dist/styleD/build/css/semantic/typography.css +61 -61
- package/dist/styleD/build/typescript/component/intendedAudienceSignifier.cjs +29 -0
- package/dist/styleD/build/typescript/component/intendedAudienceSignifier.js +27 -0
- package/dist/types/components/intended-audience-signifier/FlagIcons.d.ts +5 -0
- package/dist/types/components/intended-audience-signifier/IntendedAudienceSignifier.d.ts +2 -0
- package/dist/types/components/intended-audience-signifier/sandbox.d.ts +5 -0
- package/dist/types/components/intended-audience-signifier/styles.d.ts +6 -0
- package/dist/types/components/intended-audience-signifier/types.d.ts +8 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/intended-audience-signifier.d.ts +19 -0
- package/dist/types/styleD/build/typescript/component/intendedAudienceSignifier.d.ts +29 -0
- package/package.json +10 -1
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
4
|
+
|
|
5
|
+
const ukFlag = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6
|
+
"svg",
|
|
7
|
+
{
|
|
8
|
+
height: "12px",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
id: "flag-icons-gb",
|
|
11
|
+
viewBox: "0 0 640 480",
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#012169", d: "M0 0h640v480H0z" }),
|
|
14
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15
|
+
"path",
|
|
16
|
+
{
|
|
17
|
+
fill: "#FFF",
|
|
18
|
+
d: "m75 0 244 181L562 0h78v62L400 241l240 178v61h-80L320 301 81 480H0v-60l239-178L0 64V0z"
|
|
19
|
+
}
|
|
20
|
+
),
|
|
21
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
22
|
+
"path",
|
|
23
|
+
{
|
|
24
|
+
fill: "#C8102E",
|
|
25
|
+
d: "m424 281 216 159v40L369 281zm-184 20 6 35L54 480H0zM640 0v3L391 191l2-44L590 0zM0 0l239 176h-60L0 42z"
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#FFF", d: "M241 0v480h160V0zM0 160v160h640V160z" }),
|
|
29
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#C8102E", d: "M0 193v96h640v-96zM273 0v480h96V0z" })
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
const usFlag = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
34
|
+
"svg",
|
|
35
|
+
{
|
|
36
|
+
height: "12px",
|
|
37
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
+
id: "flag-icons-us",
|
|
39
|
+
viewBox: "0 0 640 480",
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#bd3d44", d: "M0 0h640v480H0" }),
|
|
42
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
43
|
+
"path",
|
|
44
|
+
{
|
|
45
|
+
stroke: "#fff",
|
|
46
|
+
strokeWidth: "37",
|
|
47
|
+
d: "M0 55.3h640M0 129h640M0 203h640M0 277h640M0 351h640M0 425h640"
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#192f5d", d: "M0 0h364.8v258.5H0" }),
|
|
51
|
+
/* @__PURE__ */ jsxRuntime.jsx("marker", { id: "us-a", markerHeight: "30", markerWidth: "30", children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#fff", d: "m14 0 9 27L0 10h28L5 27z" }) }),
|
|
52
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
53
|
+
"path",
|
|
54
|
+
{
|
|
55
|
+
fill: "none",
|
|
56
|
+
markerMid: "url(#us-a)",
|
|
57
|
+
d: "m0 0 16 11h61 61 61 61 60L47 37h61 61 60 61L16 63h61 61 61 61 60L47 89h61 61 60 61L16 115h61 61 61 61 60L47 141h61 61 60 61L16 166h61 61 61 61 60L47 192h61 61 60 61L16 218h61 61 61 61 60z"
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
const auFlag = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
64
|
+
"svg",
|
|
65
|
+
{
|
|
66
|
+
height: "12px",
|
|
67
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
68
|
+
id: "flag-icons-au",
|
|
69
|
+
viewBox: "0 0 640 480",
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#00008B", d: "M0 0h640v480H0z" }),
|
|
72
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
73
|
+
"path",
|
|
74
|
+
{
|
|
75
|
+
fill: "#fff",
|
|
76
|
+
d: "m37.5 0 122 90.5L281 0h39v31l-120 89.5 120 89V240h-40l-120-89.5L40.5 240H0v-30l119.5-89L0 32V0z"
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
80
|
+
"path",
|
|
81
|
+
{
|
|
82
|
+
fill: "red",
|
|
83
|
+
d: "M212 140.5 320 220v20l-135.5-99.5zm-92 10 3 17.5-96 72H0zM320 0v1.5l-124.5 94 1-22L295 0zM0 0l119.5 88h-30L0 21z"
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#fff", d: "M120.5 0v240h80V0zM0 80v80h320V80z" }),
|
|
87
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { fill: "red", d: "M0 96.5v48h320v-48zM136.5 0v240h48V0z" }),
|
|
88
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
89
|
+
"path",
|
|
90
|
+
{
|
|
91
|
+
fill: "#fff",
|
|
92
|
+
d: "m527 396.7-20.5 2.6 2.2 20.5-14.8-14.4-14.7 14.5 2-20.5-20.5-2.4 17.3-11.2-10.9-17.5 19.6 6.5 6.9-19.5 7.1 19.4 19.5-6.7-10.7 17.6zm-3.7-117.2 2.7-13-9.8-9 13.2-1.5 5.5-12.1 5.5 12.1 13.2 1.5-9.8 9 2.7 13-11.6-6.6zm-104.1-60-20.3 2.2 1.8 20.3-14.4-14.5-14.8 14.1 2.4-20.3-20.2-2.7 17.3-10.8-10.5-17.5 19.3 6.8L387 178l6.7 19.3 19.4-6.3-10.9 17.3 17.1 11.2ZM623 186.7l-20.9 2.7 2.3 20.9-15.1-14.7-15 14.8 2.1-21-20.9-2.4 17.7-11.5-11.1-17.9 20 6.7 7-19.8 7.2 19.8 19.9-6.9-11 18zm-96.1-83.5-20.7 2.3 1.9 20.8-14.7-14.8-15.1 14.4 2.4-20.7-20.7-2.8 17.7-11L467 73.5l19.7 6.9 7.3-19.5 6.8 19.7 19.8-6.5-11.1 17.6zM234 385.7l-45.8 5.4 4.6 45.9-32.8-32.4-33 32.2 4.9-45.9-45.8-5.8 38.9-24.8-24-39.4 43.6 15 15.8-43.4 15.5 43.5 43.7-14.7-24.3 39.2 38.8 25.1Z"
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
const globeIcon = /* @__PURE__ */ jsxRuntime.jsx(
|
|
99
|
+
"svg",
|
|
100
|
+
{
|
|
101
|
+
style: { marginTop: "2px" },
|
|
102
|
+
width: "16px",
|
|
103
|
+
height: "16px",
|
|
104
|
+
fill: "#000000",
|
|
105
|
+
viewBox: "0 0 16 16",
|
|
106
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0M3.668 2.501l-.288.646a.847.847 0 0 0 1.479.815l.245-.368a.81.81 0 0 1 1.034-.275.81.81 0 0 0 .724 0l.261-.13a1 1 0 0 1 .775-.05l.984.34q.118.04.243.054c.784.093.855.377.694.801-.155.41-.616.617-1.035.487l-.01-.003C8.274 4.663 7.748 4.5 6 4.5 4.8 4.5 3.5 5.62 3.5 7c0 1.96.826 2.166 1.696 2.382.46.115.935.233 1.304.618.449.467.393 1.181.339 1.877C6.755 12.96 6.674 14 8.5 14c1.75 0 3-3.5 3-4.5 0-.262.208-.468.444-.7.396-.392.87-.86.556-1.8-.097-.291-.396-.568-.641-.756-.174-.133-.207-.396-.052-.551a.33.33 0 0 1 .42-.042l1.085.724c.11.072.255.058.348-.035.15-.15.415-.083.489.117.16.43.445 1.05.849 1.357L15 8A7 7 0 1 1 3.668 2.501" })
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
const DoubleChevronRightSvg = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
110
|
+
"svg",
|
|
111
|
+
{
|
|
112
|
+
width: "13",
|
|
113
|
+
height: "13",
|
|
114
|
+
viewBox: "0 0 9 7",
|
|
115
|
+
fill: "none",
|
|
116
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
117
|
+
children: [
|
|
118
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M5.75 0H3.5L6 3.5L3.5 7H5.75L8.25 3.5L5.75 0Z", fill: "#545454" }),
|
|
119
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M2.25 0H0L2.5 3.5L0 7H2.25L4.75 3.5L2.25 0Z", fill: "#545454" })
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
exports.DoubleChevronRightSvg = DoubleChevronRightSvg;
|
|
125
|
+
exports.auFlag = auFlag;
|
|
126
|
+
exports.globeIcon = globeIcon;
|
|
127
|
+
exports.ukFlag = ukFlag;
|
|
128
|
+
exports.usFlag = usFlag;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
const ukFlag = jsxs("svg", { height: "12px", xmlns: "http://www.w3.org/2000/svg", id: "flag-icons-gb", viewBox: "0 0 640 480", children: [jsx("path", { fill: "#012169", d: "M0 0h640v480H0z" }), jsx("path", { fill: "#FFF", d: "m75 0 244 181L562 0h78v62L400 241l240 178v61h-80L320 301 81 480H0v-60l239-178L0 64V0z" }), jsx("path", { fill: "#C8102E", d: "m424 281 216 159v40L369 281zm-184 20 6 35L54 480H0zM640 0v3L391 191l2-44L590 0zM0 0l239 176h-60L0 42z" }), jsx("path", { fill: "#FFF", d: "M241 0v480h160V0zM0 160v160h640V160z" }), jsx("path", { fill: "#C8102E", d: "M0 193v96h640v-96zM273 0v480h96V0z" })] });
|
|
4
|
+
const usFlag = jsxs("svg", { height: "12px", xmlns: "http://www.w3.org/2000/svg", id: "flag-icons-us", viewBox: "0 0 640 480", children: [jsx("path", { fill: "#bd3d44", d: "M0 0h640v480H0" }), jsx("path", { stroke: "#fff", strokeWidth: "37", d: "M0 55.3h640M0 129h640M0 203h640M0 277h640M0 351h640M0 425h640" }), jsx("path", { fill: "#192f5d", d: "M0 0h364.8v258.5H0" }), jsx("marker", { id: "us-a", markerHeight: "30", markerWidth: "30", children: jsx("path", { fill: "#fff", d: "m14 0 9 27L0 10h28L5 27z" }) }), jsx("path", { fill: "none", markerMid: "url(#us-a)", d: "m0 0 16 11h61 61 61 61 60L47 37h61 61 60 61L16 63h61 61 61 61 60L47 89h61 61 60 61L16 115h61 61 61 61 60L47 141h61 61 60 61L16 166h61 61 61 61 60L47 192h61 61 60 61L16 218h61 61 61 61 60z" })] });
|
|
5
|
+
const auFlag = jsxs("svg", { height: "12px", xmlns: "http://www.w3.org/2000/svg", id: "flag-icons-au", viewBox: "0 0 640 480", children: [jsx("path", { fill: "#00008B", d: "M0 0h640v480H0z" }), jsx("path", { fill: "#fff", d: "m37.5 0 122 90.5L281 0h39v31l-120 89.5 120 89V240h-40l-120-89.5L40.5 240H0v-30l119.5-89L0 32V0z" }), jsx("path", { fill: "red", d: "M212 140.5 320 220v20l-135.5-99.5zm-92 10 3 17.5-96 72H0zM320 0v1.5l-124.5 94 1-22L295 0zM0 0l119.5 88h-30L0 21z" }), jsx("path", { fill: "#fff", d: "M120.5 0v240h80V0zM0 80v80h320V80z" }), jsx("path", { fill: "red", d: "M0 96.5v48h320v-48zM136.5 0v240h48V0z" }), jsx("path", { fill: "#fff", d: "m527 396.7-20.5 2.6 2.2 20.5-14.8-14.4-14.7 14.5 2-20.5-20.5-2.4 17.3-11.2-10.9-17.5 19.6 6.5 6.9-19.5 7.1 19.4 19.5-6.7-10.7 17.6zm-3.7-117.2 2.7-13-9.8-9 13.2-1.5 5.5-12.1 5.5 12.1 13.2 1.5-9.8 9 2.7 13-11.6-6.6zm-104.1-60-20.3 2.2 1.8 20.3-14.4-14.5-14.8 14.1 2.4-20.3-20.2-2.7 17.3-10.8-10.5-17.5 19.3 6.8L387 178l6.7 19.3 19.4-6.3-10.9 17.3 17.1 11.2ZM623 186.7l-20.9 2.7 2.3 20.9-15.1-14.7-15 14.8 2.1-21-20.9-2.4 17.7-11.5-11.1-17.9 20 6.7 7-19.8 7.2 19.8 19.9-6.9-11 18zm-96.1-83.5-20.7 2.3 1.9 20.8-14.7-14.8-15.1 14.4 2.4-20.7-20.7-2.8 17.7-11L467 73.5l19.7 6.9 7.3-19.5 6.8 19.7 19.8-6.5-11.1 17.6zM234 385.7l-45.8 5.4 4.6 45.9-32.8-32.4-33 32.2 4.9-45.9-45.8-5.8 38.9-24.8-24-39.4 43.6 15 15.8-43.4 15.5 43.5 43.7-14.7-24.3 39.2 38.8 25.1Z" })] });
|
|
6
|
+
const globeIcon = jsx("svg", { style: { marginTop: "2px" }, width: "16px", height: "16px", fill: "#000000", viewBox: "0 0 16 16", children: jsx("path", { d: "M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0M3.668 2.501l-.288.646a.847.847 0 0 0 1.479.815l.245-.368a.81.81 0 0 1 1.034-.275.81.81 0 0 0 .724 0l.261-.13a1 1 0 0 1 .775-.05l.984.34q.118.04.243.054c.784.093.855.377.694.801-.155.41-.616.617-1.035.487l-.01-.003C8.274 4.663 7.748 4.5 6 4.5 4.8 4.5 3.5 5.62 3.5 7c0 1.96.826 2.166 1.696 2.382.46.115.935.233 1.304.618.449.467.393 1.181.339 1.877C6.755 12.96 6.674 14 8.5 14c1.75 0 3-3.5 3-4.5 0-.262.208-.468.444-.7.396-.392.87-.86.556-1.8-.097-.291-.396-.568-.641-.756-.174-.133-.207-.396-.052-.551a.33.33 0 0 1 .42-.042l1.085.724c.11.072.255.058.348-.035.15-.15.415-.083.489.117.16.43.445 1.05.849 1.357L15 8A7 7 0 1 1 3.668 2.501" }) });
|
|
7
|
+
const DoubleChevronRightSvg = jsxs("svg", { width: "13", height: "13", viewBox: "0 0 9 7", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsx("path", { d: "M5.75 0H3.5L6 3.5L3.5 7H5.75L8.25 3.5L5.75 0Z", fill: "#545454" }), jsx("path", { d: "M2.25 0H0L2.5 3.5L0 7H2.25L4.75 3.5L2.25 0Z", fill: "#545454" })] });
|
|
8
|
+
|
|
9
|
+
export { DoubleChevronRightSvg, auFlag, globeIcon, ukFlag, usFlag };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
4
|
+
var mergeDeep = require('../../util/mergeDeep.cjs');
|
|
5
|
+
var FlagIcons = require('./FlagIcons.cjs');
|
|
6
|
+
var styles = require('./styles.cjs');
|
|
7
|
+
|
|
8
|
+
const sourceIcons = {
|
|
9
|
+
UK: FlagIcons.ukFlag,
|
|
10
|
+
US: FlagIcons.usFlag,
|
|
11
|
+
AUS: FlagIcons.auFlag,
|
|
12
|
+
Global: FlagIcons.globeIcon
|
|
13
|
+
};
|
|
14
|
+
const getSourceIconElement = (sourceTag, audience) => {
|
|
15
|
+
if (audience === "Global") {
|
|
16
|
+
return FlagIcons.globeIcon;
|
|
17
|
+
}
|
|
18
|
+
return sourceIcons[sourceTag];
|
|
19
|
+
};
|
|
20
|
+
const getIntendedAudienceIconElement = (sourceTag, audience) => {
|
|
21
|
+
if (audience === "Domestic for Domestic") {
|
|
22
|
+
return getSourceIconElement(sourceTag, audience);
|
|
23
|
+
}
|
|
24
|
+
if (audience === "Global" || audience === "Domestic For Global") {
|
|
25
|
+
return FlagIcons.globeIcon;
|
|
26
|
+
}
|
|
27
|
+
return sourceIcons[audience];
|
|
28
|
+
};
|
|
29
|
+
function IntendedAudienceSignifier({
|
|
30
|
+
source,
|
|
31
|
+
intendedAudience,
|
|
32
|
+
theme = {},
|
|
33
|
+
cssOverrides,
|
|
34
|
+
className,
|
|
35
|
+
...props
|
|
36
|
+
}) {
|
|
37
|
+
const mergedTheme = mergeDeep.mergeDeep(styles.defaultIntendedAudienceSignifierTheme, theme);
|
|
38
|
+
if (intendedAudience === "Don't know") {
|
|
39
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
...props,
|
|
43
|
+
className,
|
|
44
|
+
css: [styles.intendedAudienceSignifierStyles(mergedTheme), cssOverrides],
|
|
45
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Don\u2018t know" })
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
...props,
|
|
53
|
+
className,
|
|
54
|
+
css: [styles.intendedAudienceSignifierStyles(mergedTheme), cssOverrides],
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { children: getSourceIconElement(source, intendedAudience) }),
|
|
57
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
58
|
+
" ",
|
|
59
|
+
FlagIcons.DoubleChevronRightSvg
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { children: getIntendedAudienceIconElement(source, intendedAudience) })
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
exports.IntendedAudienceSignifier = IntendedAudienceSignifier;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
2
|
+
import { mergeDeep } from '../../util/mergeDeep.js';
|
|
3
|
+
import { DoubleChevronRightSvg, globeIcon, auFlag, usFlag, ukFlag } from './FlagIcons.js';
|
|
4
|
+
import { intendedAudienceSignifierStyles, defaultIntendedAudienceSignifierTheme } from './styles.js';
|
|
5
|
+
|
|
6
|
+
const sourceIcons = {
|
|
7
|
+
UK: ukFlag,
|
|
8
|
+
US: usFlag,
|
|
9
|
+
AUS: auFlag,
|
|
10
|
+
Global: globeIcon
|
|
11
|
+
};
|
|
12
|
+
const getSourceIconElement = (sourceTag, audience) => {
|
|
13
|
+
if (audience === "Global") {
|
|
14
|
+
return globeIcon;
|
|
15
|
+
}
|
|
16
|
+
return sourceIcons[sourceTag];
|
|
17
|
+
};
|
|
18
|
+
const getIntendedAudienceIconElement = (sourceTag, audience) => {
|
|
19
|
+
if (audience === "Domestic for Domestic") {
|
|
20
|
+
return getSourceIconElement(sourceTag, audience);
|
|
21
|
+
}
|
|
22
|
+
if (audience === "Global" || audience === "Domestic For Global") {
|
|
23
|
+
return globeIcon;
|
|
24
|
+
}
|
|
25
|
+
return sourceIcons[audience];
|
|
26
|
+
};
|
|
27
|
+
function IntendedAudienceSignifier({ source, intendedAudience, theme = {}, cssOverrides, className, ...props }) {
|
|
28
|
+
const mergedTheme = mergeDeep(defaultIntendedAudienceSignifierTheme, theme);
|
|
29
|
+
if (intendedAudience === "Don't know") {
|
|
30
|
+
return jsx("div", { ...props, className, css: [intendedAudienceSignifierStyles(mergedTheme), cssOverrides], children: jsx("span", { children: "Don\u2018t know" }) });
|
|
31
|
+
}
|
|
32
|
+
return jsxs("div", { ...props, className, css: [intendedAudienceSignifierStyles(mergedTheme), cssOverrides], children: [jsx("div", { children: getSourceIconElement(source, intendedAudience) }), jsxs("div", { children: [" ", DoubleChevronRightSvg] }), jsx("div", { children: getIntendedAudienceIconElement(source, intendedAudience) })] });
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { IntendedAudienceSignifier };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var react = require('@emotion/react');
|
|
4
|
+
var intendedAudienceSignifier = require('../../styleD/build/typescript/component/intendedAudienceSignifier.cjs');
|
|
5
|
+
|
|
6
|
+
const defaultIntendedAudienceSignifierTheme = intendedAudienceSignifier.componentIntendedAudienceSignifier;
|
|
7
|
+
const intendedAudienceSignifierStyles = (theme) => react.css`
|
|
8
|
+
display: ${theme.display};
|
|
9
|
+
flex-direction: ${theme.flexDirection};
|
|
10
|
+
justify-content: ${theme.justifyContent};
|
|
11
|
+
align-items: ${theme.alignItems};
|
|
12
|
+
color: ${theme.color};
|
|
13
|
+
font-weight: ${theme.typography.fontWeight};
|
|
14
|
+
font-size: ${theme.typography.fontSize};
|
|
15
|
+
line-height: ${theme.typography.lineHeight};
|
|
16
|
+
border-width: ${theme.borderWidth};
|
|
17
|
+
border-style: ${theme.borderStyle};
|
|
18
|
+
border-color: ${theme.borderColor};
|
|
19
|
+
border-radius: ${theme.borderRadius};
|
|
20
|
+
padding: ${theme.paddingY} ${theme.paddingX};
|
|
21
|
+
box-sizing: ${theme.boxSizing};
|
|
22
|
+
width: ${theme.width};
|
|
23
|
+
gap: ${theme.gap};
|
|
24
|
+
svg {
|
|
25
|
+
height: ${theme.svg.height};
|
|
26
|
+
width: ${theme.svg.width};
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
29
|
+
|
|
30
|
+
exports.defaultIntendedAudienceSignifierTheme = defaultIntendedAudienceSignifierTheme;
|
|
31
|
+
exports.intendedAudienceSignifierStyles = intendedAudienceSignifierStyles;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
|
+
import { componentIntendedAudienceSignifier } from '../../styleD/build/typescript/component/intendedAudienceSignifier.js';
|
|
3
|
+
|
|
4
|
+
const defaultIntendedAudienceSignifierTheme = componentIntendedAudienceSignifier;
|
|
5
|
+
const intendedAudienceSignifierStyles = (theme) => css`
|
|
6
|
+
display: ${theme.display};
|
|
7
|
+
flex-direction: ${theme.flexDirection};
|
|
8
|
+
justify-content: ${theme.justifyContent};
|
|
9
|
+
align-items: ${theme.alignItems};
|
|
10
|
+
color: ${theme.color};
|
|
11
|
+
font-weight: ${theme.typography.fontWeight};
|
|
12
|
+
font-size: ${theme.typography.fontSize};
|
|
13
|
+
line-height: ${theme.typography.lineHeight};
|
|
14
|
+
border-width: ${theme.borderWidth};
|
|
15
|
+
border-style: ${theme.borderStyle};
|
|
16
|
+
border-color: ${theme.borderColor};
|
|
17
|
+
border-radius: ${theme.borderRadius};
|
|
18
|
+
padding: ${theme.paddingY} ${theme.paddingX};
|
|
19
|
+
box-sizing: ${theme.boxSizing};
|
|
20
|
+
width: ${theme.width};
|
|
21
|
+
gap: ${theme.gap};
|
|
22
|
+
svg {
|
|
23
|
+
height: ${theme.svg.height};
|
|
24
|
+
width: ${theme.svg.width};
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
|
|
28
|
+
export { defaultIntendedAudienceSignifierTheme, intendedAudienceSignifierStyles };
|
package/dist/index.cjs
CHANGED
|
@@ -4,6 +4,7 @@ var autocomplete = require('./styleD/build/typescript/component/autocomplete.cjs
|
|
|
4
4
|
var byline = require('./styleD/build/typescript/component/byline.cjs');
|
|
5
5
|
var tagTable = require('./styleD/build/typescript/component/tagTable.cjs');
|
|
6
6
|
var userMenu = require('./styleD/build/typescript/component/userMenu.cjs');
|
|
7
|
+
var intendedAudienceSignifier = require('./styleD/build/typescript/component/intendedAudienceSignifier.cjs');
|
|
7
8
|
var avatar = require('./styleD/build/typescript/component/avatar.cjs');
|
|
8
9
|
var button = require('./styleD/build/typescript/component/button.cjs');
|
|
9
10
|
var checkbox = require('./styleD/build/typescript/component/checkbox.cjs');
|
|
@@ -38,6 +39,7 @@ exports.componentAutocomplete = autocomplete.componentAutocomplete;
|
|
|
38
39
|
exports.componentByline = byline.componentByline;
|
|
39
40
|
exports.componentTagTable = tagTable.componentTagTable;
|
|
40
41
|
exports.componentUserMenu = userMenu.componentUserMenu;
|
|
42
|
+
exports.componentIntendedAudienceSignifier = intendedAudienceSignifier.componentIntendedAudienceSignifier;
|
|
41
43
|
exports.componentAvatar = avatar.componentAvatar;
|
|
42
44
|
exports.componentButton = button.componentButton;
|
|
43
45
|
exports.componentCheckbox = checkbox.componentCheckbox;
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export { componentAutocomplete } from './styleD/build/typescript/component/autoc
|
|
|
2
2
|
export { componentByline } from './styleD/build/typescript/component/byline.js';
|
|
3
3
|
export { componentTagTable } from './styleD/build/typescript/component/tagTable.js';
|
|
4
4
|
export { componentUserMenu } from './styleD/build/typescript/component/userMenu.js';
|
|
5
|
+
export { componentIntendedAudienceSignifier } from './styleD/build/typescript/component/intendedAudienceSignifier.js';
|
|
5
6
|
export { componentAvatar } from './styleD/build/typescript/component/avatar.js';
|
|
6
7
|
export { componentButton } from './styleD/build/typescript/component/button.js';
|
|
7
8
|
export { componentCheckbox } from './styleD/build/typescript/component/checkbox.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var IntendedAudienceSignifier = require('./components/intended-audience-signifier/IntendedAudienceSignifier.cjs');
|
|
4
|
+
var intendedAudienceSignifier = require('./styleD/build/typescript/component/intendedAudienceSignifier.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.IntendedAudienceSignifier = IntendedAudienceSignifier.IntendedAudienceSignifier;
|
|
9
|
+
exports.componentIntendedAudienceSignifier = intendedAudienceSignifier.componentIntendedAudienceSignifier;
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
--base-typography-letter-spacing-densest-px: -1px;
|
|
52
52
|
--base-typography-letter-spacing-denser-px: -0.5px;
|
|
53
53
|
--base-typography-letter-spacing-dense-px: -0.2px;
|
|
54
|
-
--base-typography-letter-spacing-default-px:
|
|
54
|
+
--base-typography-letter-spacing-default-px: 0px;
|
|
55
55
|
--base-typography-letter-spacing-densest-rem: -0.0625rem;
|
|
56
56
|
--base-typography-letter-spacing-denser-rem: -0.03125rem;
|
|
57
57
|
--base-typography-letter-spacing-dense-rem: -0.0125rem;
|
|
58
|
-
--base-typography-letter-spacing-default-rem:
|
|
58
|
+
--base-typography-letter-spacing-default-rem: 0rem;
|
|
59
59
|
}
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
--component-top-bar-tool-name-gap: 8px;
|
|
83
83
|
--component-top-bar-tool-name-typography-font: normal 700 1.25rem/1.15
|
|
84
84
|
'GH Guardian Headline';
|
|
85
|
-
--component-top-bar-tool-name-typography-letter-spacing:
|
|
85
|
+
--component-top-bar-tool-name-typography-letter-spacing: 0rem;
|
|
86
86
|
--component-top-bar-tool-name-typography-font-width: 100;
|
|
87
87
|
--component-top-bar-tool-name-divider-border: 0.0625rem solid #cccccc;
|
|
88
88
|
--component-top-bar-tool-name-divider-height: 2rem;
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
--component-top-bar-tool-name-hover-link-opacity: 0;
|
|
104
104
|
--component-top-bar-tool-name-hover-link-typography-font: normal 700
|
|
105
105
|
0.875rem/1.3 'Open Sans';
|
|
106
|
-
--component-top-bar-tool-name-hover-link-typography-letter-spacing:
|
|
106
|
+
--component-top-bar-tool-name-hover-link-typography-letter-spacing: 0rem;
|
|
107
107
|
--component-top-bar-tool-name-hover-link-typography-font-width: 95;
|
|
108
108
|
--component-top-bar-tool-name-hover-link-position: absolute;
|
|
109
109
|
--component-top-bar-tool-name-hover-link-width: 100%;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--component-alert-banner-shared-content-color: #000000;
|
|
22
22
|
--component-alert-banner-shared-content-typography-font: normal 460
|
|
23
23
|
0.875rem/1.3 'Open Sans';
|
|
24
|
-
--component-alert-banner-shared-content-typography-letter-spacing:
|
|
24
|
+
--component-alert-banner-shared-content-typography-letter-spacing: 0rem;
|
|
25
25
|
--component-alert-banner-shared-content-typography-font-width: 95;
|
|
26
26
|
--component-alert-banner-shared-content-icon-color: #545454;
|
|
27
27
|
--component-alert-banner-information-background-color: #e8f0fb;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
--component-autocomplete-listbox-border-style: solid;
|
|
15
15
|
--component-autocomplete-listbox-border-color: #8d8d8d;
|
|
16
16
|
--component-autocomplete-listbox-padding-y: 8px;
|
|
17
|
-
--component-autocomplete-listbox-padding-x:
|
|
17
|
+
--component-autocomplete-listbox-padding-x: 0px;
|
|
18
18
|
--component-autocomplete-listbox-background-color: #ffffff;
|
|
19
19
|
--component-autocomplete-listbox-item-padding-y: 8px;
|
|
20
20
|
--component-autocomplete-listbox-item-padding-x: 12px;
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
--component-avatar-shared-button-disabled-cursor: not-allowed;
|
|
77
77
|
--component-avatar-sm-size: 2rem;
|
|
78
78
|
--component-avatar-sm-typography-font: normal 700 0.75rem/1 'Open Sans';
|
|
79
|
-
--component-avatar-sm-typography-letter-spacing:
|
|
79
|
+
--component-avatar-sm-typography-letter-spacing: 0rem;
|
|
80
80
|
--component-avatar-sm-typography-font-width: 95;
|
|
81
81
|
--component-avatar-md-size: 2.5rem;
|
|
82
82
|
--component-avatar-md-typography-font: normal 700 0.875rem/1 'Open Sans';
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
--component-button-primary-xs-padding-with-icon-icon-left-left: 0.25rem;
|
|
34
34
|
--component-button-primary-xs-typography-font: normal 700 0.75rem/1
|
|
35
35
|
'Open Sans';
|
|
36
|
-
--component-button-primary-xs-typography-letter-spacing:
|
|
36
|
+
--component-button-primary-xs-typography-letter-spacing: 0rem;
|
|
37
37
|
--component-button-primary-xs-typography-font-width: 95;
|
|
38
38
|
--component-button-primary-xs-icon-size: 1.125rem;
|
|
39
39
|
--component-button-primary-xs-icon-gap: 0.25rem;
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
--component-button-secondary-xs-padding-with-icon-icon-left-left: 0.25rem;
|
|
96
96
|
--component-button-secondary-xs-typography-font: normal 700 0.75rem/1
|
|
97
97
|
'Open Sans';
|
|
98
|
-
--component-button-secondary-xs-typography-letter-spacing:
|
|
98
|
+
--component-button-secondary-xs-typography-letter-spacing: 0rem;
|
|
99
99
|
--component-button-secondary-xs-typography-font-width: 95;
|
|
100
100
|
--component-button-secondary-xs-icon-size: 1.125rem;
|
|
101
101
|
--component-button-secondary-xs-icon-gap: 0.25rem;
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
--component-button-tertiary-xs-padding-with-icon-icon-left-left: 0.25rem;
|
|
158
158
|
--component-button-tertiary-xs-typography-font: normal 700 0.75rem/1
|
|
159
159
|
'Open Sans';
|
|
160
|
-
--component-button-tertiary-xs-typography-letter-spacing:
|
|
160
|
+
--component-button-tertiary-xs-typography-letter-spacing: 0rem;
|
|
161
161
|
--component-button-tertiary-xs-typography-font-width: 95;
|
|
162
162
|
--component-button-tertiary-xs-icon-size: 1.125rem;
|
|
163
163
|
--component-button-tertiary-xs-icon-gap: 0.25rem;
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
--component-checkbox-input-shared-disabled-indicator-selected-background-color: #dcdcdc;
|
|
40
40
|
--component-checkbox-input-sm-typography-font: normal 460 0.875rem/1.3
|
|
41
41
|
'Open Sans';
|
|
42
|
-
--component-checkbox-input-sm-typography-letter-spacing:
|
|
42
|
+
--component-checkbox-input-sm-typography-letter-spacing: 0rem;
|
|
43
43
|
--component-checkbox-input-sm-typography-font-width: 95;
|
|
44
44
|
--component-checkbox-input-sm-indicator-size: 1.25rem;
|
|
45
45
|
--component-checkbox-input-md-typography-font: normal 460 1rem/1.3 'Open Sans';
|
|
46
|
-
--component-checkbox-input-md-typography-letter-spacing:
|
|
46
|
+
--component-checkbox-input-md-typography-letter-spacing: 0rem;
|
|
47
47
|
--component-checkbox-input-md-typography-font-width: 95;
|
|
48
48
|
--component-checkbox-input-md-indicator-size: 1.5rem;
|
|
49
49
|
--component-checkbox-group-shared-display: flex;
|
|
@@ -12,6 +12,6 @@
|
|
|
12
12
|
--component-favicon-user-select: none;
|
|
13
13
|
--component-favicon-typography-font: normal 700 1.25rem/1.15
|
|
14
14
|
'GH Guardian Headline';
|
|
15
|
-
--component-favicon-typography-letter-spacing:
|
|
15
|
+
--component-favicon-typography-letter-spacing: 0rem;
|
|
16
16
|
--component-favicon-typography-font-width: 100;
|
|
17
17
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
--component-form-input-shared-description-color: #545454;
|
|
13
13
|
--component-form-input-shared-description-typography-font: normal 460
|
|
14
14
|
0.875rem/1.3 'Open Sans';
|
|
15
|
-
--component-form-input-shared-description-typography-letter-spacing:
|
|
15
|
+
--component-form-input-shared-description-typography-letter-spacing: 0rem;
|
|
16
16
|
--component-form-input-shared-description-typography-font-width: 95;
|
|
17
17
|
--component-form-input-shared-description-disabled-color: #999999;
|
|
18
18
|
--component-form-input-sm-label-typography-font: normal 700 0.875rem/1.15
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
--component-inline-message-shared-icon-align-self: flex-start;
|
|
11
11
|
--component-inline-message-shared-typography-font: normal 460 0.875rem/1.3
|
|
12
12
|
'Open Sans';
|
|
13
|
-
--component-inline-message-shared-typography-letter-spacing:
|
|
13
|
+
--component-inline-message-shared-typography-letter-spacing: 0rem;
|
|
14
14
|
--component-inline-message-shared-typography-font-width: 95;
|
|
15
15
|
--component-inline-message-error-color: #8c2113;
|
|
16
16
|
--component-inline-message-success-color: #326528;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--component-intended-audience-signifier-display: flex;
|
|
7
|
+
--component-intended-audience-signifier-flex-direction: row;
|
|
8
|
+
--component-intended-audience-signifier-justify-content: center;
|
|
9
|
+
--component-intended-audience-signifier-align-items: center;
|
|
10
|
+
--component-intended-audience-signifier-border-color: #000000;
|
|
11
|
+
--component-intended-audience-signifier-border-width: 1px;
|
|
12
|
+
--component-intended-audience-signifier-border-style: solid;
|
|
13
|
+
--component-intended-audience-signifier-border-radius: 0.125rem;
|
|
14
|
+
--component-intended-audience-signifier-padding-y: 2px;
|
|
15
|
+
--component-intended-audience-signifier-padding-x: 4px;
|
|
16
|
+
--component-intended-audience-signifier-box-sizing: border-box;
|
|
17
|
+
--component-intended-audience-signifier-width: fit-content;
|
|
18
|
+
--component-intended-audience-signifier-gap: 8px;
|
|
19
|
+
--component-intended-audience-signifier-svg-height: unset;
|
|
20
|
+
--component-intended-audience-signifier-svg-width: unset;
|
|
21
|
+
--component-intended-audience-signifier-color: #545454;
|
|
22
|
+
--component-intended-audience-signifier-typography-font-weight: 400;
|
|
23
|
+
--component-intended-audience-signifier-typography-font-size: 0.75rem;
|
|
24
|
+
--component-intended-audience-signifier-typography-line-height: 1;
|
|
25
|
+
}
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
--component-menu-menu-item-shared-label-color: #000000;
|
|
46
46
|
--component-menu-menu-item-shared-label-typography-font: normal 460 1rem/1.3
|
|
47
47
|
'Open Sans';
|
|
48
|
-
--component-menu-menu-item-shared-label-typography-letter-spacing:
|
|
48
|
+
--component-menu-menu-item-shared-label-typography-letter-spacing: 0rem;
|
|
49
49
|
--component-menu-menu-item-shared-label-typography-font-width: 95;
|
|
50
50
|
--component-menu-menu-item-shared-description-grid-area: description;
|
|
51
51
|
--component-menu-menu-item-shared-description-color: #545454;
|
|
52
52
|
--component-menu-menu-item-shared-description-typography-font: normal 460
|
|
53
53
|
0.875rem/1.3 'Open Sans';
|
|
54
|
-
--component-menu-menu-item-shared-description-typography-letter-spacing:
|
|
54
|
+
--component-menu-menu-item-shared-description-typography-letter-spacing: 0rem;
|
|
55
55
|
--component-menu-menu-item-shared-description-typography-font-width: 95;
|
|
56
56
|
--component-menu-menu-item-shared-aside-grid-area: aside;
|
|
57
57
|
--component-menu-menu-item-shared-aside-justify-self: end;
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
--component-menu-menu-item-shared-aside-color: #000000;
|
|
60
60
|
--component-menu-menu-item-shared-aside-typography-font: normal 460 1rem/1.3
|
|
61
61
|
'Open Sans';
|
|
62
|
-
--component-menu-menu-item-shared-aside-typography-letter-spacing:
|
|
62
|
+
--component-menu-menu-item-shared-aside-typography-letter-spacing: 0rem;
|
|
63
63
|
--component-menu-menu-item-shared-aside-typography-font-width: 95;
|
|
64
64
|
--component-menu-menu-item-shared-last-child-border-bottom: none;
|
|
65
65
|
--component-menu-menu-item-shared-hover-background-color: #f6f6f6;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
--component-radio-group-shared-indicator-position: relative;
|
|
16
16
|
--component-radio-group-shared-indicator-after-position: absolute;
|
|
17
17
|
--component-radio-group-shared-indicator-after-border-radius: inherit;
|
|
18
|
-
--component-radio-group-shared-indicator-after-inset:
|
|
18
|
+
--component-radio-group-shared-indicator-after-inset: 0px;
|
|
19
19
|
--component-radio-group-shared-indicator-after-scale: 0;
|
|
20
20
|
--component-radio-group-shared-indicator-border-radius: 50%;
|
|
21
21
|
--component-radio-group-shared-indicator-border: 0.0625rem solid #545454;
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
--component-radio-group-sm-gap: 1rem;
|
|
40
40
|
--component-radio-group-sm-typography-font: normal 460 0.875rem/1.3
|
|
41
41
|
'Open Sans';
|
|
42
|
-
--component-radio-group-sm-typography-letter-spacing:
|
|
42
|
+
--component-radio-group-sm-typography-letter-spacing: 0rem;
|
|
43
43
|
--component-radio-group-sm-typography-font-width: 95;
|
|
44
44
|
--component-radio-group-sm-indicator-width: 1.25rem;
|
|
45
45
|
--component-radio-group-sm-indicator-height: 1.25rem;
|
|
46
46
|
--component-radio-group-md-gap: 1.25rem;
|
|
47
47
|
--component-radio-group-md-typography-font: normal 460 1rem/1.3 'Open Sans';
|
|
48
|
-
--component-radio-group-md-typography-letter-spacing:
|
|
48
|
+
--component-radio-group-md-typography-letter-spacing: 0rem;
|
|
49
49
|
--component-radio-group-md-typography-font-width: 95;
|
|
50
50
|
--component-radio-group-md-indicator-width: 1.5rem;
|
|
51
51
|
--component-radio-group-md-indicator-height: 1.5rem;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--component-select-shared-button-color: #545454;
|
|
21
21
|
--component-select-shared-button-typography-font: normal 460 1rem/1.3
|
|
22
22
|
'Open Sans';
|
|
23
|
-
--component-select-shared-button-typography-letter-spacing:
|
|
23
|
+
--component-select-shared-button-typography-letter-spacing: 0rem;
|
|
24
24
|
--component-select-shared-button-typography-font-width: 95;
|
|
25
25
|
--component-select-shared-button-focused-outline: 0.125rem solid #0072a9;
|
|
26
26
|
--component-select-shared-button-focused-outline-offset: 0.125rem;
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
--component-select-shared-option-focused-background-color: inherit;
|
|
39
39
|
--component-select-shared-list-box-typography-font: normal 460 1rem/1.3
|
|
40
40
|
'Open Sans';
|
|
41
|
-
--component-select-shared-list-box-typography-letter-spacing:
|
|
41
|
+
--component-select-shared-list-box-typography-letter-spacing: 0rem;
|
|
42
42
|
--component-select-shared-list-box-typography-font-width: 95;
|
|
43
43
|
--component-select-shared-list-box-border: 0.0625rem solid #cccccc;
|
|
44
44
|
--component-select-shared-list-box-background-color: #ffffff;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
--component-tag-table-row-first-row-background-hover-color: #8ec183;
|
|
26
26
|
--component-tag-table-add-button-color: #ffffff;
|
|
27
27
|
--component-tag-table-add-button-padding-x: 10px;
|
|
28
|
-
--component-tag-table-add-button-padding-y:
|
|
28
|
+
--component-tag-table-add-button-padding-y: 0px;
|
|
29
29
|
--component-tag-table-add-button-background-color: #8d8d8d;
|
|
30
30
|
--component-tag-table-add-button-background-hover-color: #545454;
|
|
31
31
|
--component-tag-table-add-button-font-weight: 400;
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
--component-text-area-shared-focused-outline: 0.125rem auto #0072a9;
|
|
23
23
|
--component-text-area-shared-error-border: 0.0625rem solid #b42a19;
|
|
24
24
|
--component-text-area-sm-typography-font: normal 460 0.875rem/1.3 'Open Sans';
|
|
25
|
-
--component-text-area-sm-typography-letter-spacing:
|
|
25
|
+
--component-text-area-sm-typography-letter-spacing: 0rem;
|
|
26
26
|
--component-text-area-sm-typography-font-width: 95;
|
|
27
27
|
--component-text-area-md-typography-font: normal 460 1rem/1.3 'Open Sans';
|
|
28
|
-
--component-text-area-md-typography-letter-spacing:
|
|
28
|
+
--component-text-area-md-typography-letter-spacing: 0rem;
|
|
29
29
|
--component-text-area-md-typography-font-width: 95;
|
|
30
30
|
}
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
--component-text-input-shared-error-border: 0.0625rem solid #b42a19;
|
|
23
23
|
--component-text-input-sm-height: 2rem;
|
|
24
24
|
--component-text-input-sm-typography-font: normal 460 0.875rem/1.3 'Open Sans';
|
|
25
|
-
--component-text-input-sm-typography-letter-spacing:
|
|
25
|
+
--component-text-input-sm-typography-letter-spacing: 0rem;
|
|
26
26
|
--component-text-input-sm-typography-font-width: 95;
|
|
27
27
|
--component-text-input-md-height: 2.5rem;
|
|
28
28
|
--component-text-input-md-typography-font: normal 460 1rem/1.3 'Open Sans';
|
|
29
|
-
--component-text-input-md-typography-letter-spacing:
|
|
29
|
+
--component-text-input-md-typography-letter-spacing: 0rem;
|
|
30
30
|
--component-text-input-md-typography-font-width: 95;
|
|
31
31
|
}
|
|
@@ -9,17 +9,17 @@
|
|
|
9
9
|
--component-user-menu-container-padding-x: 0.25rem;
|
|
10
10
|
--component-user-menu-heading-font-weight: 700;
|
|
11
11
|
--component-user-menu-heading-font-size: 1.125rem;
|
|
12
|
-
--component-user-menu-heading-padding-top:
|
|
13
|
-
--component-user-menu-heading-padding-right:
|
|
14
|
-
--component-user-menu-heading-padding-bottom:
|
|
15
|
-
--component-user-menu-heading-padding-left:
|
|
12
|
+
--component-user-menu-heading-padding-top: 0px;
|
|
13
|
+
--component-user-menu-heading-padding-right: 0px;
|
|
14
|
+
--component-user-menu-heading-padding-bottom: 0px;
|
|
15
|
+
--component-user-menu-heading-padding-left: 0px;
|
|
16
16
|
--component-user-menu-heading-text-align: left;
|
|
17
17
|
--component-user-menu-label-font-weight: 700;
|
|
18
18
|
--component-user-menu-label-font-size: 0.875rem;
|
|
19
19
|
--component-user-menu-label-padding-top: 15px;
|
|
20
|
-
--component-user-menu-label-padding-right:
|
|
20
|
+
--component-user-menu-label-padding-right: 0px;
|
|
21
21
|
--component-user-menu-label-padding-bottom: 0.375rem;
|
|
22
|
-
--component-user-menu-label-padding-left:
|
|
22
|
+
--component-user-menu-label-padding-left: 0px;
|
|
23
23
|
--component-user-menu-label-text-align: left;
|
|
24
24
|
--component-user-menu-toggle-button-base-background-color: #ededed;
|
|
25
25
|
--component-user-menu-toggle-button-disabled-background-color: #dcdcdc;
|
|
@@ -5,22 +5,22 @@
|
|
|
5
5
|
:root {
|
|
6
6
|
--semantic-typography-title-sm-font: normal 700 1.125rem/1.15
|
|
7
7
|
'GH Guardian Headline';
|
|
8
|
-
--semantic-typography-title-sm-letter-spacing:
|
|
8
|
+
--semantic-typography-title-sm-letter-spacing: 0rem;
|
|
9
9
|
--semantic-typography-title-sm-font-width: 100;
|
|
10
10
|
--semantic-typography-title-md-font: normal 700 1.25rem/1.15
|
|
11
11
|
'GH Guardian Headline';
|
|
12
|
-
--semantic-typography-title-md-letter-spacing:
|
|
12
|
+
--semantic-typography-title-md-letter-spacing: 0rem;
|
|
13
13
|
--semantic-typography-title-md-font-width: 100;
|
|
14
14
|
--semantic-typography-title-lg-font: normal 700 1.5rem/1.15
|
|
15
15
|
'GH Guardian Headline';
|
|
16
|
-
--semantic-typography-title-lg-letter-spacing:
|
|
16
|
+
--semantic-typography-title-lg-letter-spacing: 0rem;
|
|
17
17
|
--semantic-typography-title-lg-font-width: 100;
|
|
18
18
|
--semantic-typography-title-xl-font: normal 700 2rem/1.15
|
|
19
19
|
'GH Guardian Headline';
|
|
20
|
-
--semantic-typography-title-xl-letter-spacing:
|
|
20
|
+
--semantic-typography-title-xl-letter-spacing: 0rem;
|
|
21
21
|
--semantic-typography-title-xl-font-width: 100;
|
|
22
22
|
--semantic-typography-heading-xs-font: normal 700 0.75rem/1.15 'Open Sans';
|
|
23
|
-
--semantic-typography-heading-xs-letter-spacing:
|
|
23
|
+
--semantic-typography-heading-xs-letter-spacing: 0rem;
|
|
24
24
|
--semantic-typography-heading-xs-font-width: 95;
|
|
25
25
|
--semantic-typography-heading-sm-font: normal 700 0.875rem/1.15 'Open Sans';
|
|
26
26
|
--semantic-typography-heading-sm-letter-spacing: -0.0125rem;
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
--semantic-typography-heading-2xl-font-width: 95;
|
|
40
40
|
--semantic-typography-heading-compact-xs-font: normal 700 0.75rem/1.15
|
|
41
41
|
'Open Sans';
|
|
42
|
-
--semantic-typography-heading-compact-xs-letter-spacing:
|
|
42
|
+
--semantic-typography-heading-compact-xs-letter-spacing: 0rem;
|
|
43
43
|
--semantic-typography-heading-compact-xs-font-width: 88;
|
|
44
44
|
--semantic-typography-heading-compact-sm-font: normal 700 0.875rem/1.15
|
|
45
45
|
'Open Sans';
|
|
46
|
-
--semantic-typography-heading-compact-sm-letter-spacing:
|
|
46
|
+
--semantic-typography-heading-compact-sm-letter-spacing: 0rem;
|
|
47
47
|
--semantic-typography-heading-compact-sm-font-width: 88;
|
|
48
48
|
--semantic-typography-heading-compact-md-font: normal 700 1rem/1.15
|
|
49
49
|
'Open Sans';
|
|
@@ -62,171 +62,171 @@
|
|
|
62
62
|
--semantic-typography-heading-compact-2xl-letter-spacing: -0.03125rem;
|
|
63
63
|
--semantic-typography-heading-compact-2xl-font-width: 88;
|
|
64
64
|
--semantic-typography-body-xs-font: normal 460 0.75rem/1.3 'Open Sans';
|
|
65
|
-
--semantic-typography-body-xs-letter-spacing:
|
|
65
|
+
--semantic-typography-body-xs-letter-spacing: 0rem;
|
|
66
66
|
--semantic-typography-body-xs-font-width: 95;
|
|
67
67
|
--semantic-typography-body-sm-font: normal 460 0.875rem/1.3 'Open Sans';
|
|
68
|
-
--semantic-typography-body-sm-letter-spacing:
|
|
68
|
+
--semantic-typography-body-sm-letter-spacing: 0rem;
|
|
69
69
|
--semantic-typography-body-sm-font-width: 95;
|
|
70
70
|
--semantic-typography-body-md-font: normal 460 1rem/1.3 'Open Sans';
|
|
71
|
-
--semantic-typography-body-md-letter-spacing:
|
|
71
|
+
--semantic-typography-body-md-letter-spacing: 0rem;
|
|
72
72
|
--semantic-typography-body-md-font-width: 95;
|
|
73
73
|
--semantic-typography-body-lg-font: normal 460 1.125rem/1.3 'Open Sans';
|
|
74
|
-
--semantic-typography-body-lg-letter-spacing:
|
|
74
|
+
--semantic-typography-body-lg-letter-spacing: 0rem;
|
|
75
75
|
--semantic-typography-body-lg-font-width: 95;
|
|
76
76
|
--semantic-typography-body-xl-font: normal 460 1.25rem/1.3 'Open Sans';
|
|
77
|
-
--semantic-typography-body-xl-letter-spacing:
|
|
77
|
+
--semantic-typography-body-xl-letter-spacing: 0rem;
|
|
78
78
|
--semantic-typography-body-xl-font-width: 95;
|
|
79
79
|
--semantic-typography-body-bold-xs-font: normal 700 0.75rem/1.3 'Open Sans';
|
|
80
|
-
--semantic-typography-body-bold-xs-letter-spacing:
|
|
80
|
+
--semantic-typography-body-bold-xs-letter-spacing: 0rem;
|
|
81
81
|
--semantic-typography-body-bold-xs-font-width: 95;
|
|
82
82
|
--semantic-typography-body-bold-sm-font: normal 700 0.875rem/1.3 'Open Sans';
|
|
83
|
-
--semantic-typography-body-bold-sm-letter-spacing:
|
|
83
|
+
--semantic-typography-body-bold-sm-letter-spacing: 0rem;
|
|
84
84
|
--semantic-typography-body-bold-sm-font-width: 95;
|
|
85
85
|
--semantic-typography-body-bold-md-font: normal 700 1rem/1.3 'Open Sans';
|
|
86
|
-
--semantic-typography-body-bold-md-letter-spacing:
|
|
86
|
+
--semantic-typography-body-bold-md-letter-spacing: 0rem;
|
|
87
87
|
--semantic-typography-body-bold-md-font-width: 95;
|
|
88
88
|
--semantic-typography-body-bold-lg-font: normal 700 1.125rem/1.3 'Open Sans';
|
|
89
|
-
--semantic-typography-body-bold-lg-letter-spacing:
|
|
89
|
+
--semantic-typography-body-bold-lg-letter-spacing: 0rem;
|
|
90
90
|
--semantic-typography-body-bold-lg-font-width: 95;
|
|
91
91
|
--semantic-typography-body-bold-xl-font: normal 700 1.25rem/1.3 'Open Sans';
|
|
92
|
-
--semantic-typography-body-bold-xl-letter-spacing:
|
|
92
|
+
--semantic-typography-body-bold-xl-letter-spacing: 0rem;
|
|
93
93
|
--semantic-typography-body-bold-xl-font-width: 95;
|
|
94
94
|
--semantic-typography-body-italic-xs-font: italic 460 0.75rem/1.3 'Open Sans';
|
|
95
|
-
--semantic-typography-body-italic-xs-letter-spacing:
|
|
95
|
+
--semantic-typography-body-italic-xs-letter-spacing: 0rem;
|
|
96
96
|
--semantic-typography-body-italic-xs-font-width: 95;
|
|
97
97
|
--semantic-typography-body-italic-sm-font: italic 460 0.875rem/1.3 'Open Sans';
|
|
98
|
-
--semantic-typography-body-italic-sm-letter-spacing:
|
|
98
|
+
--semantic-typography-body-italic-sm-letter-spacing: 0rem;
|
|
99
99
|
--semantic-typography-body-italic-sm-font-width: 95;
|
|
100
100
|
--semantic-typography-body-italic-md-font: italic 460 1rem/1.3 'Open Sans';
|
|
101
|
-
--semantic-typography-body-italic-md-letter-spacing:
|
|
101
|
+
--semantic-typography-body-italic-md-letter-spacing: 0rem;
|
|
102
102
|
--semantic-typography-body-italic-md-font-width: 95;
|
|
103
103
|
--semantic-typography-body-italic-lg-font: italic 460 1.125rem/1.3 'Open Sans';
|
|
104
|
-
--semantic-typography-body-italic-lg-letter-spacing:
|
|
104
|
+
--semantic-typography-body-italic-lg-letter-spacing: 0rem;
|
|
105
105
|
--semantic-typography-body-italic-lg-font-width: 95;
|
|
106
106
|
--semantic-typography-body-italic-xl-font: italic 460 1.25rem/1.3 'Open Sans';
|
|
107
|
-
--semantic-typography-body-italic-xl-letter-spacing:
|
|
107
|
+
--semantic-typography-body-italic-xl-letter-spacing: 0rem;
|
|
108
108
|
--semantic-typography-body-italic-xl-font-width: 95;
|
|
109
109
|
--semantic-typography-body-italic-bold-xs-font: italic 700 0.75rem/1.3
|
|
110
110
|
'Open Sans';
|
|
111
|
-
--semantic-typography-body-italic-bold-xs-letter-spacing:
|
|
111
|
+
--semantic-typography-body-italic-bold-xs-letter-spacing: 0rem;
|
|
112
112
|
--semantic-typography-body-italic-bold-xs-font-width: 95;
|
|
113
113
|
--semantic-typography-body-italic-bold-sm-font: italic 700 0.875rem/1.3
|
|
114
114
|
'Open Sans';
|
|
115
|
-
--semantic-typography-body-italic-bold-sm-letter-spacing:
|
|
115
|
+
--semantic-typography-body-italic-bold-sm-letter-spacing: 0rem;
|
|
116
116
|
--semantic-typography-body-italic-bold-sm-font-width: 95;
|
|
117
117
|
--semantic-typography-body-italic-bold-md-font: italic 700 1rem/1.3
|
|
118
118
|
'Open Sans';
|
|
119
|
-
--semantic-typography-body-italic-bold-md-letter-spacing:
|
|
119
|
+
--semantic-typography-body-italic-bold-md-letter-spacing: 0rem;
|
|
120
120
|
--semantic-typography-body-italic-bold-md-font-width: 95;
|
|
121
121
|
--semantic-typography-body-italic-bold-lg-font: italic 700 1.125rem/1.3
|
|
122
122
|
'Open Sans';
|
|
123
|
-
--semantic-typography-body-italic-bold-lg-letter-spacing:
|
|
123
|
+
--semantic-typography-body-italic-bold-lg-letter-spacing: 0rem;
|
|
124
124
|
--semantic-typography-body-italic-bold-lg-font-width: 95;
|
|
125
125
|
--semantic-typography-body-italic-bold-xl-font: italic 700 1.25rem/1.3
|
|
126
126
|
'Open Sans';
|
|
127
|
-
--semantic-typography-body-italic-bold-xl-letter-spacing:
|
|
127
|
+
--semantic-typography-body-italic-bold-xl-letter-spacing: 0rem;
|
|
128
128
|
--semantic-typography-body-italic-bold-xl-font-width: 95;
|
|
129
129
|
--semantic-typography-body-compact-xs-font: normal 460 0.75rem/1.3 'Open Sans';
|
|
130
|
-
--semantic-typography-body-compact-xs-letter-spacing:
|
|
130
|
+
--semantic-typography-body-compact-xs-letter-spacing: 0rem;
|
|
131
131
|
--semantic-typography-body-compact-xs-font-width: 88;
|
|
132
132
|
--semantic-typography-body-compact-sm-font: normal 460 0.875rem/1.3
|
|
133
133
|
'Open Sans';
|
|
134
|
-
--semantic-typography-body-compact-sm-letter-spacing:
|
|
134
|
+
--semantic-typography-body-compact-sm-letter-spacing: 0rem;
|
|
135
135
|
--semantic-typography-body-compact-sm-font-width: 88;
|
|
136
136
|
--semantic-typography-body-compact-md-font: normal 460 1rem/1.3 'Open Sans';
|
|
137
|
-
--semantic-typography-body-compact-md-letter-spacing:
|
|
137
|
+
--semantic-typography-body-compact-md-letter-spacing: 0rem;
|
|
138
138
|
--semantic-typography-body-compact-md-font-width: 88;
|
|
139
139
|
--semantic-typography-body-compact-lg-font: normal 460 1.125rem/1.3
|
|
140
140
|
'Open Sans';
|
|
141
|
-
--semantic-typography-body-compact-lg-letter-spacing:
|
|
141
|
+
--semantic-typography-body-compact-lg-letter-spacing: 0rem;
|
|
142
142
|
--semantic-typography-body-compact-lg-font-width: 88;
|
|
143
143
|
--semantic-typography-body-compact-xl-font: normal 460 1.25rem/1.3 'Open Sans';
|
|
144
|
-
--semantic-typography-body-compact-xl-letter-spacing:
|
|
144
|
+
--semantic-typography-body-compact-xl-letter-spacing: 0rem;
|
|
145
145
|
--semantic-typography-body-compact-xl-font-width: 88;
|
|
146
146
|
--semantic-typography-body-compact-bold-xs-font: normal 700 0.75rem/1.3
|
|
147
147
|
'Open Sans';
|
|
148
|
-
--semantic-typography-body-compact-bold-xs-letter-spacing:
|
|
148
|
+
--semantic-typography-body-compact-bold-xs-letter-spacing: 0rem;
|
|
149
149
|
--semantic-typography-body-compact-bold-xs-font-width: 88;
|
|
150
150
|
--semantic-typography-body-compact-bold-sm-font: normal 700 0.875rem/1.3
|
|
151
151
|
'Open Sans';
|
|
152
|
-
--semantic-typography-body-compact-bold-sm-letter-spacing:
|
|
152
|
+
--semantic-typography-body-compact-bold-sm-letter-spacing: 0rem;
|
|
153
153
|
--semantic-typography-body-compact-bold-sm-font-width: 88;
|
|
154
154
|
--semantic-typography-body-compact-bold-md-font: normal 700 1rem/1.3
|
|
155
155
|
'Open Sans';
|
|
156
|
-
--semantic-typography-body-compact-bold-md-letter-spacing:
|
|
156
|
+
--semantic-typography-body-compact-bold-md-letter-spacing: 0rem;
|
|
157
157
|
--semantic-typography-body-compact-bold-md-font-width: 88;
|
|
158
158
|
--semantic-typography-body-compact-bold-lg-font: normal 700 1.125rem/1.3
|
|
159
159
|
'Open Sans';
|
|
160
|
-
--semantic-typography-body-compact-bold-lg-letter-spacing:
|
|
160
|
+
--semantic-typography-body-compact-bold-lg-letter-spacing: 0rem;
|
|
161
161
|
--semantic-typography-body-compact-bold-lg-font-width: 88;
|
|
162
162
|
--semantic-typography-body-compact-bold-xl-font: normal 700 1.25rem/1.3
|
|
163
163
|
'Open Sans';
|
|
164
|
-
--semantic-typography-body-compact-bold-xl-letter-spacing:
|
|
164
|
+
--semantic-typography-body-compact-bold-xl-letter-spacing: 0rem;
|
|
165
165
|
--semantic-typography-body-compact-bold-xl-font-width: 88;
|
|
166
166
|
--semantic-typography-body-compact-italic-xs-font: italic 460 0.75rem/1.3
|
|
167
167
|
'Open Sans';
|
|
168
|
-
--semantic-typography-body-compact-italic-xs-letter-spacing:
|
|
168
|
+
--semantic-typography-body-compact-italic-xs-letter-spacing: 0rem;
|
|
169
169
|
--semantic-typography-body-compact-italic-xs-font-width: 88;
|
|
170
170
|
--semantic-typography-body-compact-italic-sm-font: italic 460 0.875rem/1.3
|
|
171
171
|
'Open Sans';
|
|
172
|
-
--semantic-typography-body-compact-italic-sm-letter-spacing:
|
|
172
|
+
--semantic-typography-body-compact-italic-sm-letter-spacing: 0rem;
|
|
173
173
|
--semantic-typography-body-compact-italic-sm-font-width: 88;
|
|
174
174
|
--semantic-typography-body-compact-italic-md-font: italic 460 1rem/1.3
|
|
175
175
|
'Open Sans';
|
|
176
|
-
--semantic-typography-body-compact-italic-md-letter-spacing:
|
|
176
|
+
--semantic-typography-body-compact-italic-md-letter-spacing: 0rem;
|
|
177
177
|
--semantic-typography-body-compact-italic-md-font-width: 88;
|
|
178
178
|
--semantic-typography-body-compact-italic-lg-font: italic 460 1.125rem/1.3
|
|
179
179
|
'Open Sans';
|
|
180
|
-
--semantic-typography-body-compact-italic-lg-letter-spacing:
|
|
180
|
+
--semantic-typography-body-compact-italic-lg-letter-spacing: 0rem;
|
|
181
181
|
--semantic-typography-body-compact-italic-lg-font-width: 88;
|
|
182
182
|
--semantic-typography-body-compact-italic-xl-font: italic 460 1.25rem/1.3
|
|
183
183
|
'Open Sans';
|
|
184
|
-
--semantic-typography-body-compact-italic-xl-letter-spacing:
|
|
184
|
+
--semantic-typography-body-compact-italic-xl-letter-spacing: 0rem;
|
|
185
185
|
--semantic-typography-body-compact-italic-xl-font-width: 88;
|
|
186
186
|
--semantic-typography-body-compact-italic-bold-xs-font: italic 700 0.75rem/1.3
|
|
187
187
|
'Open Sans';
|
|
188
|
-
--semantic-typography-body-compact-italic-bold-xs-letter-spacing:
|
|
188
|
+
--semantic-typography-body-compact-italic-bold-xs-letter-spacing: 0rem;
|
|
189
189
|
--semantic-typography-body-compact-italic-bold-xs-font-width: 88;
|
|
190
190
|
--semantic-typography-body-compact-italic-bold-sm-font: italic 700
|
|
191
191
|
0.875rem/1.3 'Open Sans';
|
|
192
|
-
--semantic-typography-body-compact-italic-bold-sm-letter-spacing:
|
|
192
|
+
--semantic-typography-body-compact-italic-bold-sm-letter-spacing: 0rem;
|
|
193
193
|
--semantic-typography-body-compact-italic-bold-sm-font-width: 88;
|
|
194
194
|
--semantic-typography-body-compact-italic-bold-md-font: italic 700 1rem/1.3
|
|
195
195
|
'Open Sans';
|
|
196
|
-
--semantic-typography-body-compact-italic-bold-md-letter-spacing:
|
|
196
|
+
--semantic-typography-body-compact-italic-bold-md-letter-spacing: 0rem;
|
|
197
197
|
--semantic-typography-body-compact-italic-bold-md-font-width: 88;
|
|
198
198
|
--semantic-typography-body-compact-italic-bold-lg-font: italic 700
|
|
199
199
|
1.125rem/1.3 'Open Sans';
|
|
200
|
-
--semantic-typography-body-compact-italic-bold-lg-letter-spacing:
|
|
200
|
+
--semantic-typography-body-compact-italic-bold-lg-letter-spacing: 0rem;
|
|
201
201
|
--semantic-typography-body-compact-italic-bold-lg-font-width: 88;
|
|
202
202
|
--semantic-typography-body-compact-italic-bold-xl-font: italic 700 1.25rem/1.3
|
|
203
203
|
'Open Sans';
|
|
204
|
-
--semantic-typography-body-compact-italic-bold-xl-letter-spacing:
|
|
204
|
+
--semantic-typography-body-compact-italic-bold-xl-letter-spacing: 0rem;
|
|
205
205
|
--semantic-typography-body-compact-italic-bold-xl-font-width: 88;
|
|
206
206
|
--semantic-typography-meta-md-font: normal 460 0.75rem/1.3 'Open Sans';
|
|
207
|
-
--semantic-typography-meta-md-letter-spacing:
|
|
207
|
+
--semantic-typography-meta-md-letter-spacing: 0rem;
|
|
208
208
|
--semantic-typography-meta-md-font-width: 95;
|
|
209
209
|
--semantic-typography-meta-compact-md-font: normal 460 0.75rem/1.3 'Open Sans';
|
|
210
|
-
--semantic-typography-meta-compact-md-letter-spacing:
|
|
210
|
+
--semantic-typography-meta-compact-md-letter-spacing: 0rem;
|
|
211
211
|
--semantic-typography-meta-compact-md-font-width: 88;
|
|
212
212
|
--semantic-typography-article-body-md-font: normal 400 1rem/1.4
|
|
213
213
|
GuardianTextEgyptian;
|
|
214
|
-
--semantic-typography-article-body-md-letter-spacing:
|
|
214
|
+
--semantic-typography-article-body-md-letter-spacing: 0rem;
|
|
215
215
|
--semantic-typography-article-body-md-font-width: 100;
|
|
216
216
|
--semantic-typography-article-body-bold-md-font: normal 700 1rem/1.4
|
|
217
217
|
GuardianTextEgyptian;
|
|
218
|
-
--semantic-typography-article-body-bold-md-letter-spacing:
|
|
218
|
+
--semantic-typography-article-body-bold-md-letter-spacing: 0rem;
|
|
219
219
|
--semantic-typography-article-body-bold-md-font-width: 100;
|
|
220
220
|
--semantic-typography-article-body-italic-md-font: italic 400 1rem/1.4
|
|
221
221
|
GuardianTextEgyptian;
|
|
222
|
-
--semantic-typography-article-body-italic-md-letter-spacing:
|
|
222
|
+
--semantic-typography-article-body-italic-md-letter-spacing: 0rem;
|
|
223
223
|
--semantic-typography-article-body-italic-md-font-width: 100;
|
|
224
224
|
--semantic-typography-article-body-bold-italic-md-font: italic 700 1rem/1.4
|
|
225
225
|
GuardianTextEgyptian;
|
|
226
|
-
--semantic-typography-article-body-bold-italic-md-letter-spacing:
|
|
226
|
+
--semantic-typography-article-body-bold-italic-md-letter-spacing: 0rem;
|
|
227
227
|
--semantic-typography-article-body-bold-italic-md-font-width: 100;
|
|
228
228
|
--semantic-typography-interactive-xs-font: normal 700 0.75rem/1 'Open Sans';
|
|
229
|
-
--semantic-typography-interactive-xs-letter-spacing:
|
|
229
|
+
--semantic-typography-interactive-xs-letter-spacing: 0rem;
|
|
230
230
|
--semantic-typography-interactive-xs-font-width: 95;
|
|
231
231
|
--semantic-typography-interactive-sm-font: normal 700 0.875rem/1 'Open Sans';
|
|
232
232
|
--semantic-typography-interactive-sm-letter-spacing: -0.0125rem;
|
|
@@ -242,15 +242,15 @@
|
|
|
242
242
|
--semantic-typography-label-form-md-font-width: 95;
|
|
243
243
|
--semantic-typography-label-form-inline-sm-font: normal 460 0.875rem/1.3
|
|
244
244
|
'Open Sans';
|
|
245
|
-
--semantic-typography-label-form-inline-sm-letter-spacing:
|
|
245
|
+
--semantic-typography-label-form-inline-sm-letter-spacing: 0rem;
|
|
246
246
|
--semantic-typography-label-form-inline-sm-font-width: 95;
|
|
247
247
|
--semantic-typography-label-form-inline-md-font: normal 460 1rem/1.3
|
|
248
248
|
'Open Sans';
|
|
249
|
-
--semantic-typography-label-form-inline-md-letter-spacing:
|
|
249
|
+
--semantic-typography-label-form-inline-md-letter-spacing: 0rem;
|
|
250
250
|
--semantic-typography-label-form-inline-md-font-width: 95;
|
|
251
251
|
--semantic-typography-label-form-compact-sm-font: normal 700 0.875rem/1.15
|
|
252
252
|
'Open Sans';
|
|
253
|
-
--semantic-typography-label-form-compact-sm-letter-spacing:
|
|
253
|
+
--semantic-typography-label-form-compact-sm-letter-spacing: 0rem;
|
|
254
254
|
--semantic-typography-label-form-compact-sm-font-width: 88;
|
|
255
255
|
--semantic-typography-label-form-compact-md-font: normal 700 1rem/1.15
|
|
256
256
|
'Open Sans';
|
|
@@ -258,18 +258,18 @@
|
|
|
258
258
|
--semantic-typography-label-form-compact-md-font-width: 88;
|
|
259
259
|
--semantic-typography-label-form-inline-compact-sm-font: normal 460
|
|
260
260
|
0.875rem/1.3 'Open Sans';
|
|
261
|
-
--semantic-typography-label-form-inline-compact-sm-letter-spacing:
|
|
261
|
+
--semantic-typography-label-form-inline-compact-sm-letter-spacing: 0rem;
|
|
262
262
|
--semantic-typography-label-form-inline-compact-sm-font-width: 88;
|
|
263
263
|
--semantic-typography-label-form-inline-compact-md-font: normal 460 1rem/1.3
|
|
264
264
|
'Open Sans';
|
|
265
|
-
--semantic-typography-label-form-inline-compact-md-letter-spacing:
|
|
265
|
+
--semantic-typography-label-form-inline-compact-md-letter-spacing: 0rem;
|
|
266
266
|
--semantic-typography-label-form-inline-compact-md-font-width: 88;
|
|
267
267
|
--semantic-typography-help-text-form-md-font: normal 460 0.875rem/1.3
|
|
268
268
|
'Open Sans';
|
|
269
|
-
--semantic-typography-help-text-form-md-letter-spacing:
|
|
269
|
+
--semantic-typography-help-text-form-md-letter-spacing: 0rem;
|
|
270
270
|
--semantic-typography-help-text-form-md-font-width: 95;
|
|
271
271
|
--semantic-typography-help-text-form-compact-md-font: normal 460 0.875rem/1.3
|
|
272
272
|
'Open Sans';
|
|
273
|
-
--semantic-typography-help-text-form-compact-md-letter-spacing:
|
|
273
|
+
--semantic-typography-help-text-form-compact-md-letter-spacing: 0rem;
|
|
274
274
|
--semantic-typography-help-text-form-compact-md-font-width: 88;
|
|
275
275
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const componentIntendedAudienceSignifier = {
|
|
4
|
+
display: "flex",
|
|
5
|
+
flexDirection: "row",
|
|
6
|
+
justifyContent: "center",
|
|
7
|
+
alignItems: "center",
|
|
8
|
+
borderColor: "#000000",
|
|
9
|
+
borderWidth: "1px",
|
|
10
|
+
borderStyle: "solid",
|
|
11
|
+
borderRadius: "0.125rem",
|
|
12
|
+
paddingY: "2px",
|
|
13
|
+
paddingX: "4px",
|
|
14
|
+
boxSizing: "border-box",
|
|
15
|
+
width: "fit-content",
|
|
16
|
+
gap: "8px",
|
|
17
|
+
svg: {
|
|
18
|
+
height: "unset",
|
|
19
|
+
width: "unset"
|
|
20
|
+
},
|
|
21
|
+
color: "#545454",
|
|
22
|
+
typography: {
|
|
23
|
+
fontWeight: 400,
|
|
24
|
+
fontSize: "0.75rem",
|
|
25
|
+
lineHeight: 1
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
exports.componentIntendedAudienceSignifier = componentIntendedAudienceSignifier;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const componentIntendedAudienceSignifier = {
|
|
2
|
+
display: "flex",
|
|
3
|
+
flexDirection: "row",
|
|
4
|
+
justifyContent: "center",
|
|
5
|
+
alignItems: "center",
|
|
6
|
+
borderColor: "#000000",
|
|
7
|
+
borderWidth: "1px",
|
|
8
|
+
borderStyle: "solid",
|
|
9
|
+
borderRadius: "0.125rem",
|
|
10
|
+
paddingY: "2px",
|
|
11
|
+
paddingX: "4px",
|
|
12
|
+
boxSizing: "border-box",
|
|
13
|
+
width: "fit-content",
|
|
14
|
+
gap: "8px",
|
|
15
|
+
svg: {
|
|
16
|
+
height: "unset",
|
|
17
|
+
width: "unset"
|
|
18
|
+
},
|
|
19
|
+
color: "#545454",
|
|
20
|
+
typography: {
|
|
21
|
+
fontWeight: 400,
|
|
22
|
+
fontSize: "0.75rem",
|
|
23
|
+
lineHeight: 1
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { componentIntendedAudienceSignifier };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const ukFlag: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const usFlag: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const auFlag: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const globeIcon: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const DoubleChevronRightSvg: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const componentName = "IntendedAudienceSignifier";
|
|
2
|
+
export declare const componentTsx = "import { IntendedAudienceSignifier } from '@guardian/stand/intended-audience-signifier';\n\nexport const Component = () => (\n\t<>\n\t\t<IntendedAudienceSignifier source=\"UK\" intendedAudience='Global' />\n\t\t<IntendedAudienceSignifier source=\"US\" intendedAudience='Global' />\n\t\t<IntendedAudienceSignifier source=\"AUS\" intendedAudience='Global' />\n\t\t<IntendedAudienceSignifier source=\"UK\" intendedAudience='Domestic for Domestic' />\n\t\t<IntendedAudienceSignifier source=\"US\" intendedAudience='Domestic for Domestic' />\n\t\t<IntendedAudienceSignifier source=\"AUS\" intendedAudience='Domestic for Domestic' />\n\t\t<IntendedAudienceSignifier source=\"UK\" intendedAudience='Domestic For Global' />\n\t\t<IntendedAudienceSignifier source=\"US\" intendedAudience='Domestic For Global' />\n\t\t<IntendedAudienceSignifier source=\"AUS\" intendedAudience='Domestic For Global' />\n\t\t<IntendedAudienceSignifier source=\"UK\" intendedAudience='Domestic For Global' theme={{ color: '#c70000' }} />\n\t\t<IntendedAudienceSignifier source=\"AUS\" intendedAudience='Global' cssOverrides={{ border-color: '#0000FF',align-items: 'flex-end' }}/>\n\t\t<IntendedAudienceSignifier source=\"UK\" intendedAudience=\"Don't know\" />\n\t\t<IntendedAudienceSignifier source=\"US\" intendedAudience=\"Don't know\" />\n\t\t<IntendedAudienceSignifier source=\"AUS\" intendedAudience=\"Don't know\" />\n\t\t<IntendedAudienceSignifier source=\"UK\" intendedAudience='US' />\n\t\t<IntendedAudienceSignifier source=\"US\" intendedAudience='UK' />\n\t</>\n);\n";
|
|
3
|
+
export declare const componentCss = "\n/* import the intended audience signifier styles */\n@import '@guardian/stand/component/intendedAudienceSignifier.css';\n\n.stand-intended-audience-signifier {\n\tcolor: var(--component-intended-audience-signifier-color);\n\tfont-weight: var(--component-intended-audience-signifier-typography-font-weight);\n\tfont-size: var(--component-intended-audience-signifier-typography-font-size);\n\tline-height: var(--component-intended-audience-signifier-typography-line-height);\n\tborder-width: var(--component-intended-audience-signifier-border-width);\n\tborder-style: var(--component-intended-audience-signifier-border-style);\n\tborder-color: var(--component-intended-audience-signifier-border-color);\n\tdisplay: var(--component-intended-audience-signifier-display);\n\tflex-direction: var(--component-intended-audience-signifier-flex-direction);\n\tjustify-content: var(--component-intended-audience-signifier-justify-content);\n\talign-items: var(--component-intended-audience-signifier-align-items);\n\tborder-radius: var(--component-intended-audience-signifier-border-width);\n\tpadding: var(--component-intended-audience-signifier-padding-y) var(--component-intended-audience-signifier-padding-x);\n\tbox-sizing: var(--component-intended-audience-signifier-box-sizing);\n\twidth: var(--component-intended-audience-signifier-width);\n\tgap: var(--component-intended-audience-signifier-gap: 8px);\n}\n\n.stand-intended-audience-signifier svg {\n\twidth: var(--component-intended-audience-signifier-svg-width):\n\theight: var(--component-intended-audience-signifier-svg-height);\n}\n\n.stand-intended-audience-signifier-flag {\n\theight: 12px;\n}\n\n.stand-intended-audience-signifier-chevron {\n\twidth: 13px;\n\theight: 13px;\n\tfill: #545454;\n}\n";
|
|
4
|
+
export declare const componentHtml = "<div class=\"container flow-column\">\n\t<div class=\"stand-intended-audience-signifier\">\n\t\t<svg class=\"stand-intended-audience-signifier-flag\" viewBox=\"0 0 640 480\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n\t\t\t<path fill=\"#012169\" d=\"M0 0h640v480H0z\" />\n\t\t</svg>\n\t\t<svg class=\"stand-intended-audience-signifier-chevron\" viewBox=\"0 0 9 7\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n\t\t\t<path d=\"M5.75 0H3.5L6 3.5L3.5 7H5.75L8.25 3.5L5.75 0Z\" />\n\t\t\t<path d=\"M2.25 0H0L2.5 3.5L0 7H2.25L4.75 3.5L2.25 0Z\" />\n\t\t</svg>\n\t\t<svg class=\"stand-intended-audience-signifier-flag\" viewBox=\"0 0 640 480\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n\t\t\t<path fill=\"#bd3d44\" d=\"M0 0h640v480H0\" />\n\t\t</svg>\n\t</div>\n\n\t<div class=\"stand-intended-audience-signifier\" style=\"--component-intended-audience-signifier-color: #c70000;\">\n\t\t<span>AU</span>\n\t\t<svg class=\"stand-intended-audience-signifier-chevron\" viewBox=\"0 0 9 7\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n\t\t\t<path d=\"M5.75 0H3.5L6 3.5L3.5 7H5.75L8.25 3.5L5.75 0Z\" />\n\t\t\t<path d=\"M2.25 0H0L2.5 3.5L0 7H2.25L4.75 3.5L2.25 0Z\" />\n\t\t</svg>\n\t\t<span>GLOBAL</span>\n\t</div>\n</div>\n";
|
|
5
|
+
export declare const componentJs = "\nimport { componentIntendedAudienceSignifier } from \"@guardian/stand\";\n\nconst sheet = new CSSStyleSheet();\n\nsheet.replaceSync(`\n\t.js-stand-intended-audience-signifier {\n\t\tcolor: ${componentIntendedAudienceSignifier.color};\n\t\tfont-weight: ${componentIntendedAudienceSignifier.typography.fontWeight};\n\t\tfont-size: ${componentIntendedAudienceSignifier.typography.fontSize};\n\t\tline-height: ${componentIntendedAudienceSignifier.typography.lineHeight};\n\t\tborder-width: ${componentIntendedAudienceSignifier.borderWidth};\n\t\tborder-style: ${componentIntendedAudienceSignifier.borderStyle};\n\t\tborder-color: ${componentIntendedAudienceSignifier.borderColor};\n\t\tdisplay: ${componentIntendedAudienceSignifier.display};\n\t\tflex-direction: ${componentIntendedAudienceSignifier.flexDirection};\n\t\tjustify-content: ${componentIntendedAudienceSignifier.justifyContent};\n\t\talign-items: ${componentIntendedAudienceSignifier.alignItems};\n\t\tborder-radius: ${componentIntendedAudienceSignifier.borderRadius};\n\t\tpadding: ${componentIntendedAudienceSignifier.paddingY} ${componentIntendedAudienceSignifier.paddingX};\n\t\tbox-sizing: ${componentIntendedAudienceSignifier.boxSizing};\n\t\twidth: ${componentIntendedAudienceSignifier.width};\n\t\tgap: ${componentIntendedAudienceSignifier.gap};\n\t}\n\n\t.js-stand-intended-audience-signifier-chevron {\n\t\twidth: 13px;\n\t\theight: 13px;\n\t\tfill: #545454;\n\t}\n\n\t.stand-intended-audience-signifier svg {\n\t\twidth: ${componentIntendedAudienceSignifier.svg.width}:\n\t\theight: ${componentIntendedAudienceSignifier.svg.height};\n\t}\n`);\n\ndocument.adoptedStyleSheets.push(sheet);\n\ndocument.getElementById(\"app\").innerHTML = `\n\t<div class=\"container flow-column\">\n\t\t<div class=\"js-stand-intended-audience-signifier\">\n\t\t\t\t<svg\n\t\t\t\theight=\"12px\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\tid=\"flag-icons-gb\"\n\t\t\t\tviewBox=\"0 0 640 480\"\n\t\t\t>\n\t\t\t\t<path fill=\"#012169\" d=\"M0 0h640v480H0z\" />\n\t\t\t\t<path\n\t\t\t\t\tfill=\"#FFF\"\n\t\t\t\t\td=\"m75 0 244 181L562 0h78v62L400 241l240 178v61h-80L320 301 81 480H0v-60l239-178L0 64V0z\"\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\tfill=\"#C8102E\"\n\t\t\t\t\td=\"m424 281 216 159v40L369 281zm-184 20 6 35L54 480H0zM640 0v3L391 191l2-44L590 0zM0 0l239 176h-60L0 42z\"\n\t\t\t\t/>\n\t\t\t\t<path fill=\"#FFF\" d=\"M241 0v480h160V0zM0 160v160h640V160z\" />\n\t\t\t\t<path fill=\"#C8102E\" d=\"M0 193v96h640v-96zM273 0v480h96V0z\" />\n\t\t\t</svg>\n\t\t\t<svg class=\"js-stand-intended-audience-signifier-chevron\" viewBox=\"0 0 9 7\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n\t\t\t\t<path d=\"M5.75 0H3.5L6 3.5L3.5 7H5.75L8.25 3.5L5.75 0Z\" />\n\t\t\t\t<path d=\"M2.25 0H0L2.5 3.5L0 7H2.25L4.75 3.5L2.25 0Z\" />\n\t\t\t</svg>\n\t\t\t\t\t<svg\n\t\t\t\theight=\"12px\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\tid=\"flag-icons-gb\"\n\t\t\t\tviewBox=\"0 0 640 480\"\n\t\t\t>\n\t\t\t\t<path fill=\"#012169\" d=\"M0 0h640v480H0z\" />\n\t\t\t\t<path\n\t\t\t\t\tfill=\"#FFF\"\n\t\t\t\t\td=\"m75 0 244 181L562 0h78v62L400 241l240 178v61h-80L320 301 81 480H0v-60l239-178L0 64V0z\"\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\tfill=\"#C8102E\"\n\t\t\t\t\td=\"m424 281 216 159v40L369 281zm-184 20 6 35L54 480H0zM640 0v3L391 191l2-44L590 0zM0 0l239 176h-60L0 42z\"\n\t\t\t\t/>\n\t\t\t\t<path fill=\"#FFF\" d=\"M241 0v480h160V0zM0 160v160h640V160z\" />\n\t\t\t\t<path fill=\"#C8102E\" d=\"M0 193v96h640v-96zM273 0v480h96V0z\" />\n\t\t\t</svg>\n\t\t</div>\n\n\t\t<div class=\"js-stand-intended-audience-signifier\" style=\"color: #c70000; border-color: #c70000;\">\n\t\t\t<svg\n\t\t\t\theight=\"12px\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\tid=\"flag-icons-au\"\n\t\t\t\tviewBox=\"0 0 640 480\"\n\t\t\t>\n\t\t\t\t<path fill=\"#00008B\" d=\"M0 0h640v480H0z\" />\n\t\t\t\t<path\n\t\t\t\t\tfill=\"#fff\"\n\t\t\t\t\td=\"m37.5 0 122 90.5L281 0h39v31l-120 89.5 120 89V240h-40l-120-89.5L40.5 240H0v-30l119.5-89L0 32V0z\"\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\tfill=\"red\"\n\t\t\t\t\td=\"M212 140.5 320 220v20l-135.5-99.5zm-92 10 3 17.5-96 72H0zM320 0v1.5l-124.5 94 1-22L295 0zM0 0l119.5 88h-30L0 21z\"\n\t\t\t\t/>\n\t\t\t\t<path fill=\"#fff\" d=\"M120.5 0v240h80V0zM0 80v80h320V80z\" />\n\t\t\t\t<path fill=\"red\" d=\"M0 96.5v48h320v-48zM136.5 0v240h48V0z\" />\n\t\t\t\t<path\n\t\t\t\t\tfill=\"#fff\"\n\t\t\t\t\td=\"m527 396.7-20.5 2.6 2.2 20.5-14.8-14.4-14.7 14.5 2-20.5-20.5-2.4 17.3-11.2-10.9-17.5 19.6 6.5 6.9-19.5 7.1 19.4 19.5-6.7-10.7 17.6zm-3.7-117.2 2.7-13-9.8-9 13.2-1.5 5.5-12.1 5.5 12.1 13.2 1.5-9.8 9 2.7 13-11.6-6.6zm-104.1-60-20.3 2.2 1.8 20.3-14.4-14.5-14.8 14.1 2.4-20.3-20.2-2.7 17.3-10.8-10.5-17.5 19.3 6.8L387 178l6.7 19.3 19.4-6.3-10.9 17.3 17.1 11.2ZM623 186.7l-20.9 2.7 2.3 20.9-15.1-14.7-15 14.8 2.1-21-20.9-2.4 17.7-11.5-11.1-17.9 20 6.7 7-19.8 7.2 19.8 19.9-6.9-11 18zm-96.1-83.5-20.7 2.3 1.9 20.8-14.7-14.8-15.1 14.4 2.4-20.7-20.7-2.8 17.7-11L467 73.5l19.7 6.9 7.3-19.5 6.8 19.7 19.8-6.5-11.1 17.6zM234 385.7l-45.8 5.4 4.6 45.9-32.8-32.4-33 32.2 4.9-45.9-45.8-5.8 38.9-24.8-24-39.4 43.6 15 15.8-43.4 15.5 43.5 43.7-14.7-24.3 39.2 38.8 25.1Z\"\n\t\t\t\t/>\n\t\t\t</svg>\n\t\t\t<svg class=\"js-stand-intended-audience-signifier-chevron\" viewBox=\"0 0 9 7\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n\t\t\t\t<path d=\"M5.75 0H3.5L6 3.5L3.5 7H5.75L8.25 3.5L5.75 0Z\" />\n\t\t\t\t<path d=\"M2.25 0H0L2.5 3.5L0 7H2.25L4.75 3.5L2.25 0Z\" />\n\t\t\t</svg>\n\t\t\t<svg\n\t\t\t\theight=\"12px\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\tid=\"flag-icons-au\"\n\t\t\t\tviewBox=\"0 0 640 480\"\n\t\t\t>\n\t\t\t\t<path fill=\"#00008B\" d=\"M0 0h640v480H0z\" />\n\t\t\t\t<path\n\t\t\t\t\tfill=\"#fff\"\n\t\t\t\t\td=\"m37.5 0 122 90.5L281 0h39v31l-120 89.5 120 89V240h-40l-120-89.5L40.5 240H0v-30l119.5-89L0 32V0z\"\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\tfill=\"red\"\n\t\t\t\t\td=\"M212 140.5 320 220v20l-135.5-99.5zm-92 10 3 17.5-96 72H0zM320 0v1.5l-124.5 94 1-22L295 0zM0 0l119.5 88h-30L0 21z\"\n\t\t\t\t/>\n\t\t\t\t<path fill=\"#fff\" d=\"M120.5 0v240h80V0zM0 80v80h320V80z\" />\n\t\t\t\t<path fill=\"red\" d=\"M0 96.5v48h320v-48zM136.5 0v240h48V0z\" />\n\t\t\t\t<path\n\t\t\t\t\tfill=\"#fff\"\n\t\t\t\t\td=\"m527 396.7-20.5 2.6 2.2 20.5-14.8-14.4-14.7 14.5 2-20.5-20.5-2.4 17.3-11.2-10.9-17.5 19.6 6.5 6.9-19.5 7.1 19.4 19.5-6.7-10.7 17.6zm-3.7-117.2 2.7-13-9.8-9 13.2-1.5 5.5-12.1 5.5 12.1 13.2 1.5-9.8 9 2.7 13-11.6-6.6zm-104.1-60-20.3 2.2 1.8 20.3-14.4-14.5-14.8 14.1 2.4-20.3-20.2-2.7 17.3-10.8-10.5-17.5 19.3 6.8L387 178l6.7 19.3 19.4-6.3-10.9 17.3 17.1 11.2ZM623 186.7l-20.9 2.7 2.3 20.9-15.1-14.7-15 14.8 2.1-21-20.9-2.4 17.7-11.5-11.1-17.9 20 6.7 7-19.8 7.2 19.8 19.9-6.9-11 18zm-96.1-83.5-20.7 2.3 1.9 20.8-14.7-14.8-15.1 14.4 2.4-20.7-20.7-2.8 17.7-11L467 73.5l19.7 6.9 7.3-19.5 6.8 19.7 19.8-6.5-11.1 17.6zM234 385.7l-45.8 5.4 4.6 45.9-32.8-32.4-33 32.2 4.9-45.9-45.8-5.8 38.9-24.8-24-39.4 43.6 15 15.8-43.4 15.5 43.5 43.7-14.7-24.3 39.2 38.8 25.1Z\"\n\t\t\t\t/>\n\t\t\t</svg>\n\t\t</div>\n\t</div>\n`;\n";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
+
import type { ComponentIntendedAudienceSignifier } from '../../styleD/build/typescript/component/intendedAudienceSignifier';
|
|
3
|
+
import type { Prettify } from '../../util/types';
|
|
4
|
+
export type IntendedAudienceSignifierTheme = Prettify<ComponentIntendedAudienceSignifier>;
|
|
5
|
+
export declare const defaultIntendedAudienceSignifierTheme: IntendedAudienceSignifierTheme;
|
|
6
|
+
export declare const intendedAudienceSignifierStyles: (theme: IntendedAudienceSignifierTheme) => SerializedStyles;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DefaultProps } from '../../util/types';
|
|
2
|
+
import type { IntendedAudienceSignifierTheme } from './styles';
|
|
3
|
+
export type Source = 'UK' | 'US' | 'AUS';
|
|
4
|
+
export type IntendedAudience = 'Global' | 'Domestic for Domestic' | 'Domestic For Global' | "Don't know" | 'UK' | 'US' | 'AUS';
|
|
5
|
+
export interface IntendedAudienceSignifierProps extends DefaultProps<IntendedAudienceSignifierTheme> {
|
|
6
|
+
source: Source;
|
|
7
|
+
intendedAudience: IntendedAudience;
|
|
8
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ export { componentTagTable } from './styleD/build/typescript/component/tagTable'
|
|
|
13
13
|
export type { ComponentTagTable } from './styleD/build/typescript/component/tagTable';
|
|
14
14
|
export { componentUserMenu } from './styleD/build/typescript/component/userMenu';
|
|
15
15
|
export type { ComponentUserMenu } from './styleD/build/typescript/component/userMenu';
|
|
16
|
+
export { componentIntendedAudienceSignifier } from './styleD/build/typescript/component/intendedAudienceSignifier';
|
|
17
|
+
export type { ComponentIntendedAudienceSignifier } from './styleD/build/typescript/component/intendedAudienceSignifier';
|
|
16
18
|
/**
|
|
17
19
|
* design system components tokens exports
|
|
18
20
|
*/
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IntendedAudienceSignifier component entry point
|
|
3
|
+
*
|
|
4
|
+
* Peer dependencies required to use these components:
|
|
5
|
+
* - `@emotion/react`
|
|
6
|
+
* - `react`
|
|
7
|
+
* - `react-dom`
|
|
8
|
+
* - `typescript`
|
|
9
|
+
*
|
|
10
|
+
* See the `peerDependencies` section of package.json for compatible versions.
|
|
11
|
+
*
|
|
12
|
+
* If you only need the built CSS (./component/intendedAudienceSiginifier.css),
|
|
13
|
+
* you don't need to install these.
|
|
14
|
+
*/
|
|
15
|
+
export { IntendedAudienceSignifier } from './components/intended-audience-signifier/IntendedAudienceSignifier';
|
|
16
|
+
export type { IntendedAudienceSignifierProps } from './components/intended-audience-signifier/types';
|
|
17
|
+
export type { IntendedAudienceSignifierTheme } from './components/intended-audience-signifier/styles';
|
|
18
|
+
export { componentIntendedAudienceSignifier } from './styleD/build/typescript/component/intendedAudienceSignifier';
|
|
19
|
+
export type { ComponentIntendedAudienceSignifier } from './styleD/build/typescript/component/intendedAudienceSignifier';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
export declare const componentIntendedAudienceSignifier: {
|
|
5
|
+
display: string;
|
|
6
|
+
flexDirection: string;
|
|
7
|
+
justifyContent: string;
|
|
8
|
+
alignItems: string;
|
|
9
|
+
borderColor: string;
|
|
10
|
+
borderWidth: string;
|
|
11
|
+
borderStyle: string;
|
|
12
|
+
borderRadius: string;
|
|
13
|
+
paddingY: string;
|
|
14
|
+
paddingX: string;
|
|
15
|
+
boxSizing: string;
|
|
16
|
+
width: string;
|
|
17
|
+
gap: string;
|
|
18
|
+
svg: {
|
|
19
|
+
height: string;
|
|
20
|
+
width: string;
|
|
21
|
+
};
|
|
22
|
+
color: string;
|
|
23
|
+
typography: {
|
|
24
|
+
fontWeight: number;
|
|
25
|
+
fontSize: string;
|
|
26
|
+
lineHeight: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export type ComponentIntendedAudienceSignifier = typeof componentIntendedAudienceSignifier;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guardian/stand",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.34",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/guardian/stand"
|
|
6
6
|
},
|
|
@@ -137,6 +137,11 @@
|
|
|
137
137
|
"import": "./dist/utils.js",
|
|
138
138
|
"require": "./dist/utils.cjs"
|
|
139
139
|
},
|
|
140
|
+
"./intendedAudienceSignifier": {
|
|
141
|
+
"types": "./dist/types/intended-audience-signifier.d.ts",
|
|
142
|
+
"import": "./dist/intended-audience-signifier.js",
|
|
143
|
+
"require": "./dist/intended-audience-signifier.cjs"
|
|
144
|
+
},
|
|
140
145
|
"./link": {
|
|
141
146
|
"types": "./dist/types/link.d.ts",
|
|
142
147
|
"import": "./dist/link.js",
|
|
@@ -176,6 +181,7 @@
|
|
|
176
181
|
"./component/textArea.css": "./dist/styleD/build/css/component/textArea.css",
|
|
177
182
|
"./component/alertBanner.css": "./dist/styleD/build/css/component/alertBanner.css",
|
|
178
183
|
"./component/datePicker.css": "./dist/styleD/build/css/component/datePicker.css",
|
|
184
|
+
"./component/intendedAudienceSignifier.css": "./dist/styleD/build/css/component/intendedAudienceSignifier.css",
|
|
179
185
|
"./component/link.css": "./dist/styleD/build/css/component/link.css"
|
|
180
186
|
},
|
|
181
187
|
"main": "./dist/index.cjs",
|
|
@@ -258,6 +264,9 @@
|
|
|
258
264
|
"date-picker": [
|
|
259
265
|
"./dist/types/date-picker.d.ts"
|
|
260
266
|
],
|
|
267
|
+
"intendedAudienceSignifier": [
|
|
268
|
+
"./dist/types/intended-audience-signifier.d.ts"
|
|
269
|
+
],
|
|
261
270
|
"link": [
|
|
262
271
|
"./dist/types/link.d.ts"
|
|
263
272
|
]
|