@royaloperahouse/harmonic 0.1.1 → 0.1.4
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/CHANGELOG.md +13 -0
- package/README.GIT +1 -2
- package/dist/components/atoms/Icons/SvgIcons/Access/AudioDescription.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Access/BritishSignLanguage.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Access/ClosedCaptions.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Access/OpenCaptions.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Access/RelaxedPerformance.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/index.d.ts +4 -0
- package/dist/components/atoms/TabLink/index.d.ts +1 -2
- package/dist/components/atoms/index.d.ts +1 -1
- package/dist/components/organisms/Footer/index.d.ts +1 -2
- package/dist/components/organisms/index.d.ts +1 -1
- package/dist/harmonic.cjs.development.js +116 -17
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +116 -17
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/index.d.ts +3 -2
- package/package.json +1 -1
- /package/dist/components/atoms/Icons/SvgIcons/{Video/AudioDescription.svg.d.ts → 12px/Detract.svg.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
package/README.GIT
CHANGED
|
@@ -6,6 +6,7 @@ export declare const IconLibrary: {
|
|
|
6
6
|
BalletAndDance: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
7
7
|
Basket: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
8
8
|
BasketFull: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
9
|
+
BritishSignLanguage: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
9
10
|
BookTickets: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
10
11
|
CarouselArrow: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
11
12
|
ChooseDates: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
@@ -13,6 +14,7 @@ export declare const IconLibrary: {
|
|
|
13
14
|
Clips: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
14
15
|
Clock: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
15
16
|
Close: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
17
|
+
ClosedCaptions: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
16
18
|
Confirm: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
17
19
|
CreditCard: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
18
20
|
Delete: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
@@ -42,6 +44,7 @@ export declare const IconLibrary: {
|
|
|
42
44
|
Minimise: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
43
45
|
Muted: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
44
46
|
OnMyList: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
47
|
+
OpenCaptions: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
45
48
|
OperaAndMusic: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
46
49
|
Pause: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
47
50
|
PDF: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
@@ -49,6 +52,7 @@ export declare const IconLibrary: {
|
|
|
49
52
|
Play: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
50
53
|
Print: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
51
54
|
Refresh: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
55
|
+
RelaxedPerformance: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
52
56
|
Reminder: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
53
57
|
Remove: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
54
58
|
Remove12px: ({ color, ariaLabel }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default TabLink;
|
|
1
|
+
export { default as TabLink } from './TabLink';
|
|
@@ -13,7 +13,7 @@ import SectionSplitter from './SectionSplitter';
|
|
|
13
13
|
import SponsorLogo from './SponsorLogo';
|
|
14
14
|
import Sponsorship from './Sponsorship';
|
|
15
15
|
import Tab from './Tab';
|
|
16
|
-
import TabLink from './TabLink';
|
|
16
|
+
import { TabLink } from './TabLink';
|
|
17
17
|
import TextArea from './TextArea';
|
|
18
18
|
import { TextField, TextFieldLegacy } from './TextField';
|
|
19
19
|
import TextLink from './TextLink';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default Footer;
|
|
1
|
+
export { default as Footer } from './Footer';
|
|
@@ -1199,14 +1199,14 @@ var Expand12px = (function (_ref) {
|
|
|
1199
1199
|
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color,
|
|
1200
1200
|
ariaLabel = _ref.ariaLabel;
|
|
1201
1201
|
return /*#__PURE__*/React.createElement("svg", {
|
|
1202
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1203
1202
|
width: "12",
|
|
1204
1203
|
height: "12",
|
|
1205
1204
|
viewBox: "0 0 12 12",
|
|
1206
1205
|
fill: "none",
|
|
1207
|
-
"aria-label": ariaLabel
|
|
1206
|
+
"aria-label": ariaLabel,
|
|
1207
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1208
1208
|
}, /*#__PURE__*/React.createElement("path", {
|
|
1209
|
-
d: "
|
|
1209
|
+
d: "M6.44531 6.08203V1.83203H5.94531V6.08203H1.69531V6.58203H5.94531V10.832H6.44531V6.58203H10.6953V6.08203H6.44531Z",
|
|
1210
1210
|
fill: color
|
|
1211
1211
|
}));
|
|
1212
1212
|
});
|
|
@@ -1223,7 +1223,7 @@ var Remove12px = (function (_ref) {
|
|
|
1223
1223
|
fill: "none",
|
|
1224
1224
|
"aria-label": ariaLabel
|
|
1225
1225
|
}, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
1226
|
-
d: "
|
|
1226
|
+
d: "M7.75597 6.26964L11.6954 2.33019L10.6348 1.26953L6.69531 5.20898L2.75586 1.26953L1.6952 2.33019L5.63465 6.26964L1.63477 10.2695L2.69543 11.3302L6.69531 7.33031L10.6952 11.3302L11.7559 10.2695L7.75597 6.26964Z",
|
|
1227
1227
|
fill: color
|
|
1228
1228
|
})));
|
|
1229
1229
|
});
|
|
@@ -1240,7 +1240,7 @@ var Tick = (function (_ref) {
|
|
|
1240
1240
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1241
1241
|
"aria-label": ariaLabel
|
|
1242
1242
|
}, /*#__PURE__*/React.createElement("path", {
|
|
1243
|
-
d: "M4.
|
|
1243
|
+
d: "M4.79541 11.5305L1.79541 7.63047L2.59541 7.03047L4.79541 9.83047L10.7954 1.73047L11.5954 2.33047L4.79541 11.5305Z",
|
|
1244
1244
|
fill: color
|
|
1245
1245
|
}));
|
|
1246
1246
|
});
|
|
@@ -2545,6 +2545,32 @@ var Back10 = (function (_ref) {
|
|
|
2545
2545
|
}));
|
|
2546
2546
|
});
|
|
2547
2547
|
|
|
2548
|
+
var BritishSignLanguage = (function (_ref) {
|
|
2549
|
+
var _ref$color = _ref.color,
|
|
2550
|
+
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color,
|
|
2551
|
+
ariaLabel = _ref.ariaLabel;
|
|
2552
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
2553
|
+
width: "100%",
|
|
2554
|
+
height: "100%",
|
|
2555
|
+
viewBox: "0 0 25 25",
|
|
2556
|
+
fill: "none",
|
|
2557
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2558
|
+
"aria-label": ariaLabel
|
|
2559
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
2560
|
+
d: "M21.6953 5.33203V19.332H3.69531V5.33203H21.6953ZM22.6953 4.33203H2.69531V20.332H22.6953V4.33203Z",
|
|
2561
|
+
fill: color
|
|
2562
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
2563
|
+
d: "M5.69531 15.156V9.33203H8.37531C9.03931 9.33203 9.56731 9.51603 9.90331 9.84403C10.1673 10.116 10.2953 10.436 10.2953 10.836V10.852C10.2953 11.516 9.93531 11.884 9.51931 12.116C10.1913 12.364 10.6233 12.756 10.6233 13.54V13.556C10.6233 14.62 9.75931 15.156 8.44731 15.156H5.69531ZM9.07131 11.052V11.036C9.07131 10.644 8.75931 10.412 8.19931 10.412H6.88731V11.708H8.11931C8.70331 11.708 9.07131 11.508 9.07131 11.052ZM9.39931 13.396C9.39931 12.98 9.08731 12.732 8.39931 12.732H6.88731V14.076H8.44731C9.03931 14.076 9.39931 13.86 9.39931 13.412V13.396Z",
|
|
2564
|
+
fill: color
|
|
2565
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
2566
|
+
d: "M13.1593 15.316C12.2713 15.316 11.3913 15.012 10.6953 14.388L11.4233 13.516C11.9513 13.956 12.5033 14.236 13.1833 14.236C13.7273 14.236 14.0633 14.004 14.0633 13.644V13.628C14.0633 13.284 13.8553 13.108 12.8633 12.86C11.6713 12.564 10.9273 12.228 10.9273 11.084V11.068C10.9273 10.028 11.7753 9.33203 12.9593 9.33203C13.8073 9.33203 14.5193 9.59603 15.1113 10.068L14.4633 10.996C13.9513 10.628 13.4393 10.412 12.9353 10.412C12.4233 10.412 12.1513 10.66 12.1513 10.956V10.972C12.1513 11.372 12.4073 11.508 13.4313 11.772C14.6233 12.076 15.2873 12.508 15.2873 13.508V13.524C15.2873 14.668 14.4073 15.316 13.1593 15.316Z",
|
|
2567
|
+
fill: color
|
|
2568
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
2569
|
+
d: "M15.6953 15.156V9.33203H16.9193V14.036H19.8553V15.156H15.6953Z",
|
|
2570
|
+
fill: color
|
|
2571
|
+
}));
|
|
2572
|
+
});
|
|
2573
|
+
|
|
2548
2574
|
var Clips = (function (_ref) {
|
|
2549
2575
|
var _ref$color = _ref.color,
|
|
2550
2576
|
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color,
|
|
@@ -2568,6 +2594,52 @@ var Clips = (function (_ref) {
|
|
|
2568
2594
|
}));
|
|
2569
2595
|
});
|
|
2570
2596
|
|
|
2597
|
+
var ClosedCaptions = (function (_ref) {
|
|
2598
|
+
var _ref$color = _ref.color,
|
|
2599
|
+
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color,
|
|
2600
|
+
ariaLabel = _ref.ariaLabel;
|
|
2601
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
2602
|
+
width: "100%",
|
|
2603
|
+
height: "100%",
|
|
2604
|
+
viewBox: "0 0 25 25",
|
|
2605
|
+
fill: "none",
|
|
2606
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2607
|
+
"aria-label": ariaLabel
|
|
2608
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
2609
|
+
d: "M21.6953 5.33203V19.332H3.69531V5.33203H21.6953ZM22.6953 4.33203H2.69531V20.332H22.6953V4.33203Z",
|
|
2610
|
+
fill: color
|
|
2611
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
2612
|
+
d: "M15.6793 15.348C13.9673 15.348 12.6953 14.028 12.6953 12.356V12.34C12.6953 10.684 13.9433 9.33203 15.7273 9.33203C16.8233 9.33203 17.4793 9.69203 18.0233 10.228L17.2393 11.132C16.7833 10.716 16.3193 10.46 15.7193 10.46C14.7113 10.46 13.9833 11.3 13.9833 12.324V12.34C13.9833 13.364 14.6953 14.22 15.7193 14.22C16.3993 14.22 16.8153 13.948 17.2793 13.524L18.0633 14.316C17.4633 14.948 16.7993 15.348 15.6793 15.348Z",
|
|
2613
|
+
fill: color
|
|
2614
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
2615
|
+
d: "M9.67931 15.348C7.96731 15.348 6.69531 14.028 6.69531 12.356V12.34C6.69531 10.684 7.94331 9.33203 9.72731 9.33203C10.8233 9.33203 11.4793 9.69203 12.0233 10.228L11.2393 11.132C10.7833 10.716 10.3193 10.46 9.71931 10.46C8.71131 10.46 7.98331 11.3 7.98331 12.324V12.34C7.98331 13.364 8.69531 14.22 9.71931 14.22C10.3993 14.22 10.8153 13.948 11.2793 13.524L12.0633 14.316C11.4633 14.948 10.7993 15.348 9.67931 15.348Z",
|
|
2616
|
+
fill: color
|
|
2617
|
+
}));
|
|
2618
|
+
});
|
|
2619
|
+
|
|
2620
|
+
var OpenCaptions = (function (_ref) {
|
|
2621
|
+
var _ref$color = _ref.color,
|
|
2622
|
+
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color,
|
|
2623
|
+
ariaLabel = _ref.ariaLabel;
|
|
2624
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
2625
|
+
width: "100%",
|
|
2626
|
+
height: "100%",
|
|
2627
|
+
viewBox: "0 0 25 25",
|
|
2628
|
+
fill: "none",
|
|
2629
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2630
|
+
"aria-label": ariaLabel
|
|
2631
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
2632
|
+
d: "M21.6953 5.33203V19.332H3.69531V5.33203H21.6953ZM22.6953 4.33203H2.69531V20.332H22.6953V4.33203Z",
|
|
2633
|
+
fill: color
|
|
2634
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
2635
|
+
d: "M16.6793 15.348C14.9673 15.348 13.6953 14.028 13.6953 12.356V12.34C13.6953 10.684 14.9433 9.33203 16.7273 9.33203C17.8233 9.33203 18.4793 9.69203 19.0233 10.228L18.2393 11.132C17.7833 10.716 17.3193 10.46 16.7193 10.46C15.7113 10.46 14.9833 11.3 14.9833 12.324V12.34C14.9833 13.364 15.6953 14.22 16.7193 14.22C17.3993 14.22 17.8153 13.948 18.2793 13.524L19.0633 14.316C18.4633 14.948 17.7993 15.348 16.6793 15.348Z",
|
|
2636
|
+
fill: color
|
|
2637
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
2638
|
+
d: "M9.77531 15.348C7.98331 15.348 6.69531 14.012 6.69531 12.356V12.34C6.69531 10.692 7.99931 9.33203 9.79131 9.33203C11.5833 9.33203 12.8713 10.668 12.8713 12.324V12.34C12.8713 13.988 11.5673 15.348 9.77531 15.348ZM9.79131 14.22C10.8473 14.22 11.5833 13.38 11.5833 12.356V12.34C11.5833 11.316 10.8313 10.46 9.77531 10.46C8.71931 10.46 7.98331 11.3 7.98331 12.324V12.34C7.98331 13.364 8.73531 14.22 9.79131 14.22Z",
|
|
2639
|
+
fill: color
|
|
2640
|
+
}));
|
|
2641
|
+
});
|
|
2642
|
+
|
|
2571
2643
|
var Forward10 = (function (_ref) {
|
|
2572
2644
|
var _ref$color = _ref.color,
|
|
2573
2645
|
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color,
|
|
@@ -2703,6 +2775,29 @@ var Play = (function (_ref) {
|
|
|
2703
2775
|
}));
|
|
2704
2776
|
});
|
|
2705
2777
|
|
|
2778
|
+
var RelaxedPerformance = (function (_ref) {
|
|
2779
|
+
var _ref$color = _ref.color,
|
|
2780
|
+
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color,
|
|
2781
|
+
ariaLabel = _ref.ariaLabel;
|
|
2782
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
2783
|
+
width: "100%",
|
|
2784
|
+
height: "100%",
|
|
2785
|
+
viewBox: "0 0 25 25",
|
|
2786
|
+
fill: "none",
|
|
2787
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2788
|
+
"aria-label": ariaLabel
|
|
2789
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
2790
|
+
d: "M21.6953 5.33203V19.332H3.69531V5.33203H21.6953ZM22.6953 4.33203H2.69531V20.332H22.6953V4.33203Z",
|
|
2791
|
+
fill: color
|
|
2792
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
2793
|
+
d: "M7.69531 15.156V9.33203H10.3433C11.0793 9.33203 11.6553 9.54003 12.0393 9.92403C12.3593 10.244 12.5273 10.7 12.5273 11.236V11.252C12.5273 12.196 12.0073 12.788 11.2553 13.052L12.7113 15.156H11.2713L9.98331 13.26H8.91931V15.156H7.69531ZM8.91931 12.172H10.2633C10.9033 12.172 11.2873 11.828 11.2873 11.316V11.3C11.2873 10.74 10.8873 10.444 10.2393 10.444H8.91931V12.172Z",
|
|
2794
|
+
fill: color
|
|
2795
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
2796
|
+
d: "M13.6953 15.156V9.33203H16.0553C17.4393 9.33203 18.2793 10.148 18.2793 11.332V11.348C18.2793 12.692 17.2313 13.38 15.9353 13.38H14.9193V15.156H13.6953ZM14.9193 12.284H15.9753C16.6393 12.284 17.0393 11.892 17.0393 11.372V11.356C17.0393 10.764 16.6153 10.444 15.9513 10.444H14.9193V12.284Z",
|
|
2797
|
+
fill: color
|
|
2798
|
+
}));
|
|
2799
|
+
});
|
|
2800
|
+
|
|
2706
2801
|
var Restart = (function (_ref) {
|
|
2707
2802
|
var _ref$color = _ref.color,
|
|
2708
2803
|
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color,
|
|
@@ -2807,6 +2902,7 @@ var IconLibrary = {
|
|
|
2807
2902
|
BalletAndDance: BalletAndDance,
|
|
2808
2903
|
Basket: Basket,
|
|
2809
2904
|
BasketFull: BasketFull,
|
|
2905
|
+
BritishSignLanguage: BritishSignLanguage,
|
|
2810
2906
|
BookTickets: BookTickets,
|
|
2811
2907
|
CarouselArrow: CarouselArrow,
|
|
2812
2908
|
ChooseDates: ChooseDates,
|
|
@@ -2814,6 +2910,7 @@ var IconLibrary = {
|
|
|
2814
2910
|
Clips: Clips,
|
|
2815
2911
|
Clock: Clock,
|
|
2816
2912
|
Close: Close,
|
|
2913
|
+
ClosedCaptions: ClosedCaptions,
|
|
2817
2914
|
Confirm: Confirm,
|
|
2818
2915
|
CreditCard: CreditCard,
|
|
2819
2916
|
Delete: Delete,
|
|
@@ -2843,6 +2940,7 @@ var IconLibrary = {
|
|
|
2843
2940
|
Minimise: Minimise,
|
|
2844
2941
|
Muted: Muted,
|
|
2845
2942
|
OnMyList: OnMyList,
|
|
2943
|
+
OpenCaptions: OpenCaptions,
|
|
2846
2944
|
OperaAndMusic: OperaAndMusic,
|
|
2847
2945
|
Pause: Pause,
|
|
2848
2946
|
PDF: PDF,
|
|
@@ -2850,6 +2948,7 @@ var IconLibrary = {
|
|
|
2850
2948
|
Play: Play,
|
|
2851
2949
|
Print: Print,
|
|
2852
2950
|
Refresh: Refresh,
|
|
2951
|
+
RelaxedPerformance: RelaxedPerformance,
|
|
2853
2952
|
Reminder: Reminder,
|
|
2854
2953
|
Remove: Remove,
|
|
2855
2954
|
Remove12px: Remove12px,
|
|
@@ -7025,15 +7124,10 @@ var largeColumnSpan = 9;
|
|
|
7025
7124
|
var mediumWordBreakpoint = 8;
|
|
7026
7125
|
var longWordBreakpoint = 13;
|
|
7027
7126
|
var getColumnSpan = function getColumnSpan(variant, textSize, longestWordLength) {
|
|
7028
|
-
if (
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
case longestWordLength < mediumWordBreakpoint:
|
|
7033
|
-
return smallColumnSpan;
|
|
7034
|
-
default:
|
|
7035
|
-
return defaultColumnSpan;
|
|
7036
|
-
}
|
|
7127
|
+
if (variant !== IInformationTitleVariant.Header || textSize !== 4) return defaultColumnSpan;
|
|
7128
|
+
if (longestWordLength > longWordBreakpoint) return largeColumnSpan;
|
|
7129
|
+
if (longestWordLength < mediumWordBreakpoint) return smallColumnSpan;
|
|
7130
|
+
return defaultColumnSpan;
|
|
7037
7131
|
};
|
|
7038
7132
|
var renderTitle = function renderTitle(props) {
|
|
7039
7133
|
var headerLevel = props.variant === IInformationTitleVariant.Header && props.textSize < 4 ? 4 : props.textSize;
|
|
@@ -7048,12 +7142,17 @@ var Information = function Information(_ref) {
|
|
|
7048
7142
|
title = _ref.title,
|
|
7049
7143
|
background = _ref.background,
|
|
7050
7144
|
cta = _ref.cta;
|
|
7051
|
-
var
|
|
7145
|
+
var safeTitle = title || {
|
|
7146
|
+
text: '',
|
|
7147
|
+
variant: IInformationTitleVariant.Header,
|
|
7148
|
+
textSize: 5
|
|
7149
|
+
}; // Provide a fallback
|
|
7150
|
+
var titleWords = safeTitle.text.split(' ');
|
|
7052
7151
|
var titleWordLengths = titleWords.map(function (word) {
|
|
7053
7152
|
return word.length;
|
|
7054
7153
|
});
|
|
7055
7154
|
var maxTitleWordLength = Math.max.apply(Math, titleWordLengths);
|
|
7056
|
-
var titleColumnSpan = getColumnSpan(
|
|
7155
|
+
var titleColumnSpan = getColumnSpan(safeTitle.variant, safeTitle.textSize, maxTitleWordLength);
|
|
7057
7156
|
var bgColour = background != null ? background : exports.IInformationBackgroundColour.White;
|
|
7058
7157
|
return /*#__PURE__*/React__default.createElement(InfoWrapper, {
|
|
7059
7158
|
background: bgColour,
|
|
@@ -7063,7 +7162,7 @@ var Information = function Information(_ref) {
|
|
|
7063
7162
|
columnStartDevice: 2,
|
|
7064
7163
|
columnSpanDesktop: titleColumnSpan,
|
|
7065
7164
|
columnSpanDevice: 12
|
|
7066
|
-
}, /*#__PURE__*/React__default.createElement(InfoTitle, null, renderTitle(
|
|
7165
|
+
}, /*#__PURE__*/React__default.createElement(InfoTitle, null, renderTitle(safeTitle))), /*#__PURE__*/React__default.createElement(GridItem, {
|
|
7067
7166
|
columnStartDesktop: titleColumnSpan + 2,
|
|
7068
7167
|
columnStartDevice: 2,
|
|
7069
7168
|
columnSpanDesktop: 14 - titleColumnSpan,
|