@oaknational/oak-components 3.19.0 → 3.20.1
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/npm/cjs/index.js +350 -447
- package/dist/npm/cjs/types.d.ts +2 -96
- package/dist/npm/es/components/messaging-and-feedback/OakErrorBoundary/OakErrorBoundary.js +0 -1
- package/dist/npm/es/components/navigation/OakBreadcrumbs/OakBreadcrumbs.js +0 -1
- package/dist/npm/es/components/owa/pupil/OakUnitListItem/OakUnitListItem.js +0 -1
- package/dist/npm/es/index.js +0 -3
- package/dist/npm/es/types.d.ts +2 -96
- package/package.json +1 -1
- package/dist/npm/es/components/images-and-icons/OakAspectRatio/OakAspectRatio.js +0 -39
- package/dist/npm/es/components/owa/OakFilterDrawer/OakFilterDrawer.js +0 -43
- package/dist/npm/es/components/owa/OakRadioTile/OakRadioTile.js +0 -40
package/dist/npm/cjs/index.js
CHANGED
|
@@ -296,20 +296,20 @@ var responsiveStyle = function (attr, getValues, parse) {
|
|
|
296
296
|
var attrCss = function (value) {
|
|
297
297
|
return typeof value === "undefined"
|
|
298
298
|
? undefined
|
|
299
|
-
: styled.css(templateObject_1$
|
|
299
|
+
: styled.css(templateObject_1$24 || (templateObject_1$24 = tslib.__makeTemplateObject(["\n ", ": ", ";\n "], ["\n ", ": ", ";\n "])), attr, parse(value));
|
|
300
300
|
};
|
|
301
301
|
var values = getValues(props);
|
|
302
302
|
if (typeof values === "undefined") {
|
|
303
303
|
return undefined;
|
|
304
304
|
}
|
|
305
305
|
if (!Array.isArray(values)) {
|
|
306
|
-
return styled.css(templateObject_2$
|
|
306
|
+
return styled.css(templateObject_2$W || (templateObject_2$W = tslib.__makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), attrCss(values));
|
|
307
307
|
}
|
|
308
308
|
if (values.length === 0) {
|
|
309
309
|
return [];
|
|
310
310
|
}
|
|
311
311
|
return tslib.__spreadArray([
|
|
312
|
-
styled.css(templateObject_3$
|
|
312
|
+
styled.css(templateObject_3$E || (templateObject_3$E = tslib.__makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), attrCss(values[0]))
|
|
313
313
|
], tslib.__read(breakpoints
|
|
314
314
|
.slice(0, values.length)
|
|
315
315
|
.map(function (breakpoint, i) {
|
|
@@ -317,15 +317,15 @@ var responsiveStyle = function (attr, getValues, parse) {
|
|
|
317
317
|
if (value === undefined) {
|
|
318
318
|
return undefined;
|
|
319
319
|
}
|
|
320
|
-
return styled.css(templateObject_5$
|
|
320
|
+
return styled.css(templateObject_5$h || (templateObject_5$h = tslib.__makeTemplateObject(["\n @media (min-width: ", "px) {\n ", "\n }\n "], ["\n @media (min-width: ", "px) {\n ", "\n }\n "])), breakpoint, styled.css(templateObject_4$o || (templateObject_4$o = tslib.__makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), attrCss(value)));
|
|
321
321
|
})
|
|
322
322
|
.filter(truthy)), false);
|
|
323
323
|
};
|
|
324
324
|
};
|
|
325
|
-
var templateObject_1$
|
|
325
|
+
var templateObject_1$24, templateObject_2$W, templateObject_3$E, templateObject_4$o, templateObject_5$h;
|
|
326
326
|
|
|
327
|
-
var colorStyle = styled.css(templateObject_1$
|
|
328
|
-
var templateObject_1$
|
|
327
|
+
var colorStyle = styled.css(templateObject_1$23 || (templateObject_1$23 = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("color", function (props) { return props.$color; }, parseColor), responsiveStyle("background", function (props) { return props.$background; }, parseColor));
|
|
328
|
+
var templateObject_1$23;
|
|
329
329
|
|
|
330
330
|
var BASE_FONT_SIZE_PX = 16;
|
|
331
331
|
var REM_DP = 3;
|
|
@@ -406,17 +406,17 @@ function parseSpacing(value) {
|
|
|
406
406
|
return value;
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
-
var positionStyle = styled.css(templateObject_1$
|
|
410
|
-
var templateObject_1$
|
|
409
|
+
var positionStyle = styled.css(templateObject_1$22 || (templateObject_1$22 = tslib.__makeTemplateObject(["\n ", "\n ", " \n ", " \n ", " \n ", " \n ", " \n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", " \n ", " \n ", " \n ", " \n ", " \n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("position", function (props) { return props.$position; }), responsiveStyle("top", function (props) { return props.$top; }, parseSpacing), responsiveStyle("right", function (props) { return props.$right; }, parseSpacing), responsiveStyle("bottom", function (props) { return props.$bottom; }, parseSpacing), responsiveStyle("left", function (props) { return props.$left; }, parseSpacing), responsiveStyle("inset", function (props) { return props.$inset; }, parseSpacing), responsiveStyle("overflow", function (props) { return props.$overflow; }), responsiveStyle("overflow-x", function (props) { return props.$overflowX; }), responsiveStyle("overflow-y", function (props) { return props.$overflowY; }), responsiveStyle("object-fit", function (props) { return props.$objectFit; }), responsiveStyle("object-position", function (props) { return props.$objectPosition; }), responsiveStyle("pointer-events", function (props) { return props.$pointerEvents; }), responsiveStyle("visibility", function (props) { return props.$visibility; }), responsiveStyle("vertical-align", function (props) { return props.$verticalAlign; }));
|
|
410
|
+
var templateObject_1$22;
|
|
411
411
|
|
|
412
|
-
var sizeStyle = styled.css(templateObject_1$
|
|
413
|
-
var templateObject_1$
|
|
412
|
+
var sizeStyle = styled.css(templateObject_1$21 || (templateObject_1$21 = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("width", function (props) { return props.$width; }, parseSpacing), responsiveStyle("min-width", function (props) { return props.$minWidth; }, parseSpacing), responsiveStyle("max-width", function (props) { return props.$maxWidth; }, parseSpacing), responsiveStyle("height", function (props) { return props.$height; }, parseSpacing), responsiveStyle("min-height", function (props) { return props.$minHeight; }, parseSpacing), responsiveStyle("max-height", function (props) { return props.$maxHeight; }, parseSpacing), responsiveStyle("aspect-ratio", function (props) { return props.$aspectRatio; }), responsiveStyle("box-sizing", function (props) { return props.$boxSizing; }));
|
|
413
|
+
var templateObject_1$21;
|
|
414
414
|
|
|
415
|
-
var paddingAll = styled.css(templateObject_1$
|
|
416
|
-
var paddingHorizontal = styled.css(templateObject_2$
|
|
417
|
-
var paddingVertical = styled.css(templateObject_3$
|
|
418
|
-
var paddingLeft = styled.css(templateObject_4$
|
|
419
|
-
var paddingRight = styled.css(templateObject_5$
|
|
415
|
+
var paddingAll = styled.css(templateObject_1$20 || (templateObject_1$20 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("padding", function (props) { return props.$pa; }, parseSpacing));
|
|
416
|
+
var paddingHorizontal = styled.css(templateObject_2$V || (templateObject_2$V = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("padding-left", function (props) { return props.$ph; }, parseSpacing), responsiveStyle("padding-right", function (props) { return props.$ph; }, parseSpacing));
|
|
417
|
+
var paddingVertical = styled.css(templateObject_3$D || (templateObject_3$D = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("padding-top", function (props) { return props.$pv; }, parseSpacing), responsiveStyle("padding-bottom", function (props) { return props.$pv; }, parseSpacing));
|
|
418
|
+
var paddingLeft = styled.css(templateObject_4$n || (templateObject_4$n = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("padding-left", function (props) { return props.$pl; }, parseSpacing));
|
|
419
|
+
var paddingRight = styled.css(templateObject_5$g || (templateObject_5$g = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("padding-right", function (props) { return props.$pr; }, parseSpacing));
|
|
420
420
|
var paddingTop = styled.css(templateObject_6$d || (templateObject_6$d = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("padding-top", function (props) { return props.$pt; }, parseSpacing));
|
|
421
421
|
var paddingBottom = styled.css(templateObject_7$7 || (templateObject_7$7 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("padding-bottom", function (props) { return props.$pb; }, parseSpacing));
|
|
422
422
|
var marginAll = styled.css(templateObject_8$2 || (templateObject_8$2 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("margin", function (props) { return props.$ma; }, parseSpacing));
|
|
@@ -429,7 +429,7 @@ var marginBottom = styled.css(templateObject_14$1 || (templateObject_14$1 = tsli
|
|
|
429
429
|
var marginStyle = styled.css(templateObject_15$1 || (templateObject_15$1 = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), marginAll, marginHorizontal, marginVertical, marginLeft, marginRight, marginTop, marginBottom);
|
|
430
430
|
var paddingStyle = styled.css(templateObject_16$1 || (templateObject_16$1 = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), paddingAll, paddingHorizontal, paddingVertical, paddingLeft, paddingRight, paddingTop, paddingBottom);
|
|
431
431
|
var spacingStyle = styled.css(templateObject_17$1 || (templateObject_17$1 = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), paddingStyle, marginStyle);
|
|
432
|
-
var templateObject_1$
|
|
432
|
+
var templateObject_1$20, templateObject_2$V, templateObject_3$D, templateObject_4$n, templateObject_5$g, templateObject_6$d, templateObject_7$7, templateObject_8$2, templateObject_9$2, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1;
|
|
433
433
|
|
|
434
434
|
var oakBorderWidthTokens = {
|
|
435
435
|
"border-solid-none": 0,
|
|
@@ -470,11 +470,11 @@ var parseBorderRadius = function (value) {
|
|
|
470
470
|
}
|
|
471
471
|
};
|
|
472
472
|
|
|
473
|
-
var borderAll = styled.css(templateObject_1$
|
|
474
|
-
var borderTop = styled.css(templateObject_2$
|
|
475
|
-
var borderRight = styled.css(templateObject_3$
|
|
476
|
-
var borderBottom = styled.css(templateObject_4$
|
|
477
|
-
var borderLeft = styled.css(templateObject_5$
|
|
473
|
+
var borderAll = styled.css(templateObject_1$1$ || (templateObject_1$1$ = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border", function (props) { return props.$ba; }, parseBorder));
|
|
474
|
+
var borderTop = styled.css(templateObject_2$U || (templateObject_2$U = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-top", function (props) { return props.$bt; }, parseBorder));
|
|
475
|
+
var borderRight = styled.css(templateObject_3$C || (templateObject_3$C = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-right", function (props) { return props.$br; }, parseBorder));
|
|
476
|
+
var borderBottom = styled.css(templateObject_4$m || (templateObject_4$m = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-bottom", function (props) { return props.$bb; }, parseBorder));
|
|
477
|
+
var borderLeft = styled.css(templateObject_5$f || (templateObject_5$f = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-left", function (props) { return props.$bl; }, parseBorder));
|
|
478
478
|
var borderHorizontal = styled.css(templateObject_6$c || (templateObject_6$c = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("border-left", function (props) { return props.$bh; }, parseBorder), responsiveStyle("border-right", function (props) { return props.$bh; }, parseBorder));
|
|
479
479
|
var borderVertical = styled.css(templateObject_7$6 || (templateObject_7$6 = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("border-top", function (props) { return props.$bv; }, parseBorder), responsiveStyle("border-bottom", function (props) { return props.$bv; }, parseBorder));
|
|
480
480
|
var borderColor = styled.css(templateObject_8$1 || (templateObject_8$1 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-color", function (props) { return props.$borderColor; }, parseColor));
|
|
@@ -487,10 +487,10 @@ var borderRadiusTop = styled.css(templateObject_14 || (templateObject_14 = tslib
|
|
|
487
487
|
var borderRadiusBottom = styled.css(templateObject_15 || (templateObject_15 = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("border-bottom-left-radius", function (props) { return props.$bbr; }, parseBorderRadius), responsiveStyle("border-bottom-right-radius", function (props) { return props.$bbr; }, parseBorderRadius));
|
|
488
488
|
var borderStrokeStyle = styled.css(templateObject_16 || (templateObject_16 = tslib.__makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), responsiveStyle("border-style", function (props) { return props.$borderStyle; }));
|
|
489
489
|
var borderStyle = styled.css(templateObject_17 || (templateObject_17 = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), borderAll, borderTop, borderRight, borderBottom, borderLeft, borderHorizontal, borderVertical, borderColor, borderRadius, borderRadiusTopLeft, borderRadiusTopRight, borderRadiusBottomLeft, borderRadiusBottomRight, borderRadiusTop, borderRadiusBottom, borderStrokeStyle);
|
|
490
|
-
var templateObject_1$
|
|
490
|
+
var templateObject_1$1$, templateObject_2$U, templateObject_3$C, templateObject_4$m, templateObject_5$f, templateObject_6$c, templateObject_7$6, templateObject_8$1, templateObject_9$1, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17;
|
|
491
491
|
|
|
492
|
-
var displayStyle = styled.css(templateObject_1$
|
|
493
|
-
var templateObject_1$
|
|
492
|
+
var displayStyle = styled.css(templateObject_1$1_ || (templateObject_1$1_ = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("display", function (props) { return props.$display; }));
|
|
493
|
+
var templateObject_1$1_;
|
|
494
494
|
|
|
495
495
|
var oakDropShadowTokens = {
|
|
496
496
|
"drop-shadow-standard": "0 0.5rem 0.5rem rgba(92, 92, 92, 20%)",
|
|
@@ -516,8 +516,8 @@ var parseDropShadow = function (variant) {
|
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
518
|
|
|
519
|
-
var dropShadowStyle = styled.css(templateObject_1$
|
|
520
|
-
var templateObject_1$
|
|
519
|
+
var dropShadowStyle = styled.css(templateObject_1$1Z || (templateObject_1$1Z = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("box-shadow", function (props) { return props.$dropShadow; }, parseDropShadow));
|
|
520
|
+
var templateObject_1$1Z;
|
|
521
521
|
|
|
522
522
|
var oakOpacityTokens = {
|
|
523
523
|
transparent: 0,
|
|
@@ -535,11 +535,11 @@ var parseOpacity = function (variant) {
|
|
|
535
535
|
}
|
|
536
536
|
};
|
|
537
537
|
|
|
538
|
-
var opacityStyle = styled.css(templateObject_1$
|
|
539
|
-
var templateObject_1$
|
|
538
|
+
var opacityStyle = styled.css(templateObject_1$1Y || (templateObject_1$1Y = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("opacity", function (props) { return props.$opacity; }, parseOpacity));
|
|
539
|
+
var templateObject_1$1Y;
|
|
540
540
|
|
|
541
|
-
var transformStyle = styled.css(templateObject_1$
|
|
542
|
-
var templateObject_1$
|
|
541
|
+
var transformStyle = styled.css(templateObject_1$1X || (templateObject_1$1X = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("transform", function (props) { return props.$transform; }), responsiveStyle("transform-origin", function (props) { return props.$transformOrigin; }));
|
|
542
|
+
var templateObject_1$1X;
|
|
543
543
|
|
|
544
544
|
var oakTransitionTokens = {
|
|
545
545
|
"standard-ease": "all 0.3s ease",
|
|
@@ -555,8 +555,8 @@ var parseTransitions = function (variant) {
|
|
|
555
555
|
}
|
|
556
556
|
};
|
|
557
557
|
|
|
558
|
-
var transitionStyle = styled.css(templateObject_1$
|
|
559
|
-
var templateObject_1$
|
|
558
|
+
var transitionStyle = styled.css(templateObject_1$1W || (templateObject_1$1W = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("transition", function (props) { return props.$transition; }, parseTransitions));
|
|
559
|
+
var templateObject_1$1W;
|
|
560
560
|
|
|
561
561
|
var oakFontSizeTokens = {
|
|
562
562
|
"font-size-1": 12,
|
|
@@ -660,8 +660,8 @@ var parseLetterSpacing = function (font) {
|
|
|
660
660
|
return (_a = oakFontTokens[font]) === null || _a === void 0 ? void 0 : _a[3];
|
|
661
661
|
};
|
|
662
662
|
|
|
663
|
-
var typographyStyle = styled.css(templateObject_1$
|
|
664
|
-
var templateObject_1$
|
|
663
|
+
var typographyStyle = styled.css(templateObject_1$1V || (templateObject_1$1V = tslib.__makeTemplateObject(["\n font-family:\n --var(google-font), Lexend, sans-serif; // FIXME: this should be a css variable ?\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n font-family:\n --var(google-font), Lexend, sans-serif; // FIXME: this should be a css variable ?\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("font-weight", function (props) { return props.$font; }, parseFontWeight), responsiveStyle("font-size", function (props) { return props.$font; }, parseFontSize), responsiveStyle("line-height", function (props) { return props.$font; }, parseLineHeight), responsiveStyle("letter-spacing", function (props) { return props.$font; }, parseLetterSpacing), responsiveStyle("text-align", function (props) { return props.$textAlign; }), responsiveStyle("text-decoration", function (props) { return props.$textDecoration; }), responsiveStyle("white-space", function (props) { return props.$whiteSpace; }), responsiveStyle("word-wrap", function (props) { return props.$wordWrap; }), responsiveStyle("text-overflow", function (props) { return props.$textOverflow; }), responsiveStyle("overflow", function (props) { return props.$overflow; }), responsiveStyle("text-wrap", function (props) { return props.$textWrap; }));
|
|
664
|
+
var templateObject_1$1V;
|
|
665
665
|
|
|
666
666
|
// For help with defining z-index values, refer to this article:
|
|
667
667
|
// https://www.smashingmagazine.com/2021/02/css-z-index-large-projects/#a-new-solution
|
|
@@ -689,17 +689,17 @@ var parseZIndex = function (value) {
|
|
|
689
689
|
return oakZIndexTokens[value];
|
|
690
690
|
};
|
|
691
691
|
|
|
692
|
-
var zIndexStyle = styled.css(templateObject_1$
|
|
693
|
-
var templateObject_1$
|
|
692
|
+
var zIndexStyle = styled.css(templateObject_1$1U || (templateObject_1$1U = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("z-index", function (props) { return props.$zIndex; }, parseZIndex));
|
|
693
|
+
var templateObject_1$1U;
|
|
694
694
|
|
|
695
|
-
var scrollMarginTop = styled.css(templateObject_1$
|
|
696
|
-
var scrollMarginLeft = styled.css(templateObject_2$
|
|
697
|
-
var scrollSnapStyle = styled.css(templateObject_3$
|
|
698
|
-
var templateObject_1$
|
|
695
|
+
var scrollMarginTop = styled.css(templateObject_1$1T || (templateObject_1$1T = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("scroll-margin-top", function (props) { return props.$scrollMarginTop; }, parseSpacing));
|
|
696
|
+
var scrollMarginLeft = styled.css(templateObject_2$T || (templateObject_2$T = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("scroll-margin-left", function (props) { return props.$scrollMarginLeft; }, parseSpacing));
|
|
697
|
+
var scrollSnapStyle = styled.css(templateObject_3$B || (templateObject_3$B = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), scrollMarginTop, scrollMarginLeft);
|
|
698
|
+
var templateObject_1$1T, templateObject_2$T, templateObject_3$B;
|
|
699
699
|
|
|
700
|
-
var oakBoxCss = styled.css(templateObject_2$
|
|
700
|
+
var oakBoxCss = styled.css(templateObject_2$S || (templateObject_2$S = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), positionStyle, sizeStyle, spacingStyle, colorStyle, borderStyle, displayStyle, dropShadowStyle, opacityStyle, transformStyle, transitionStyle, typographyStyle, zIndexStyle, scrollSnapStyle, function (props) {
|
|
701
701
|
/* onClick might be passed in the useClickableCard pattern */
|
|
702
|
-
return props.onClick && styled.css(templateObject_1$
|
|
702
|
+
return props.onClick && styled.css(templateObject_1$1S || (templateObject_1$1S = tslib.__makeTemplateObject(["\n :hover {\n cursor: pointer;\n }\n "], ["\n :hover {\n cursor: pointer;\n }\n "])));
|
|
703
703
|
});
|
|
704
704
|
/**
|
|
705
705
|
* OakBox exposes all the styles that are available styles on a div tag. These include:
|
|
@@ -718,11 +718,11 @@ var oakBoxCss = styled.css(templateObject_2$U || (templateObject_2$U = tslib.__m
|
|
|
718
718
|
* - scroll-margin-top/left
|
|
719
719
|
*
|
|
720
720
|
*/
|
|
721
|
-
var OakBox = styled__default.default.div(templateObject_3$
|
|
722
|
-
var templateObject_1$
|
|
721
|
+
var OakBox = styled__default.default.div(templateObject_3$A || (templateObject_3$A = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), oakBoxCss);
|
|
722
|
+
var templateObject_1$1S, templateObject_2$S, templateObject_3$A;
|
|
723
723
|
|
|
724
|
-
var flexStyle = styled.css(templateObject_1$
|
|
725
|
-
var templateObject_1$
|
|
724
|
+
var flexStyle = styled.css(templateObject_1$1R || (templateObject_1$1R = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("display", function (props) { var _a; return (_a = props.$display) !== null && _a !== void 0 ? _a : "flex"; }), responsiveStyle("flex-direction", function (props) { return props.$flexDirection; }), responsiveStyle("flex-wrap", function (props) { return props.$flexWrap; }), responsiveStyle("align-items", function (props) { return props.$alignItems; }), responsiveStyle("align-content", function (props) { return props.$alignContent; }), responsiveStyle("justify-content", function (props) { return props.$justifyContent; }), responsiveStyle("align-self", function (props) { return props.$alignSelf; }), responsiveStyle("order", function (props) { return props.$order; }), responsiveStyle("flex-grow", function (props) { return props.$flexGrow; }), responsiveStyle("flex-shrink", function (props) { return props.$flexShrink; }), responsiveStyle("flex-basis", function (props) { return props.$flexBasis; }, parseSpacing), responsiveStyle("gap", function (props) { return props.$gap; }, parseSpacing), responsiveStyle("column-gap", function (props) { return props.$columnGap; }, parseSpacing), responsiveStyle("row-gap", function (props) { return props.$rowGap; }, parseSpacing));
|
|
725
|
+
var templateObject_1$1R;
|
|
726
726
|
|
|
727
727
|
var oakFlexCss = flexStyle;
|
|
728
728
|
/**
|
|
@@ -733,16 +733,16 @@ var oakFlexCss = flexStyle;
|
|
|
733
733
|
* Before adding props to this component, think about whether it makes sense
|
|
734
734
|
* to add it to Box instead, as this component extends that.
|
|
735
735
|
*/
|
|
736
|
-
var OakFlex = styled__default.default(OakBox)(templateObject_1$
|
|
737
|
-
var templateObject_1$
|
|
736
|
+
var OakFlex = styled__default.default(OakBox)(templateObject_1$1Q || (templateObject_1$1Q = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), flexStyle);
|
|
737
|
+
var templateObject_1$1Q;
|
|
738
738
|
|
|
739
739
|
/**
|
|
740
740
|
* Span renders a `span` (inline text) component, exposing all the typography props.
|
|
741
741
|
* ## Usage
|
|
742
742
|
* Use this component when you want to apply styles to a piece of inline text.
|
|
743
743
|
*/
|
|
744
|
-
var OakSpan = styled__default.default.span(templateObject_1$
|
|
745
|
-
var templateObject_1$
|
|
744
|
+
var OakSpan = styled__default.default.span(templateObject_1$1P || (templateObject_1$1P = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), colorStyle, opacityStyle, marginStyle, paddingStyle, borderStyle, typographyStyle, positionStyle);
|
|
745
|
+
var templateObject_1$1P;
|
|
746
746
|
|
|
747
747
|
var Underline = function () { return (React__default.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 242 7", fill: "none", preserveAspectRatio: "none" },
|
|
748
748
|
React__default.default.createElement("path", { d: "M241.809 5.35522C238.36 6.16872 234.702 6.32558 230.891 6.32486C205.669 6.32316 180.5 6.37674 155.305 6.30837C129.075 6.24358 102.854 6.03729 76.6237 5.95308C56.5815 5.88912 36.5201 5.94726 16.4689 5.88333C12.7528 5.83207 9.06734 5.66827 5.46556 5.3943C2.2246 5.18082 0.243077 4.15307 0.612482 3.14495C0.747438 2.77609 0.777943 2.40475 0.703578 2.03516C0.55282 1.68536 0.336376 1.33881 0.0553455 0.997265C1.97028 0.852173 3.91666 0.752723 5.87716 0.699803C20.5698 0.635225 35.2904 0.4596 49.9632 0.59757C65.3746 0.744085 80.7791 0.654862 96.1825 0.682135C131.421 0.745426 166.657 0.827222 201.889 0.927517C210.582 0.955764 219.254 1.16715 227.928 1.3286C230.171 1.37618 232.39 1.49113 234.554 1.67184C239.334 2.0603 241.604 3.03436 241.735 4.57053C241.705 4.81749 241.766 5.04471 241.809 5.35522ZM9.4054 5.0229L9.4071 4.83429L6.81271 4.84324C6.81204 4.91813 6.81136 4.99303 6.81066 5.07069L9.4054 5.0229ZM9.13633 1.89234C7.94722 2.89775 7.94725 2.89774 9.92041 2.8521C9.70711 2.53109 9.43974 2.21027 9.18139 1.89219L9.13633 1.89234ZM72.3962 1.26072L72.5866 1.12415L68.0824 1.1397L68.0812 1.27561L72.3962 1.26072ZM73.8843 3.05572L74.0187 3.14677L76.4058 3.13853L76.4066 3.04701L73.8843 3.05572ZM5.19841 1.04886L5.04392 1.20194L8.42203 1.19028L8.4234 1.03773L5.19841 1.04886Z", fill: "currentColor" }))); };
|
|
@@ -796,7 +796,7 @@ var svgMap = {
|
|
|
796
796
|
"icon-background": IconBackground,
|
|
797
797
|
scribble: Scribble,
|
|
798
798
|
};
|
|
799
|
-
var StyledSvg$2 = styled__default.default.svg(templateObject_1$
|
|
799
|
+
var StyledSvg$2 = styled__default.default.svg(templateObject_1$1O || (templateObject_1$1O = tslib.__makeTemplateObject(["\n ", ";\n transition: all 0.3s ease;\n"], ["\n ", ";\n transition: all 0.3s ease;\n"])), oakBoxCss);
|
|
800
800
|
/**
|
|
801
801
|
* This is component used for rendering SVGs that don't belong to be rendered with OakIcon component
|
|
802
802
|
* ie. UI elements that are not icons/illustratons but are part of the design system (underline, etc)
|
|
@@ -808,9 +808,9 @@ var OakSvg = function (props) {
|
|
|
808
808
|
};
|
|
809
809
|
return (React__default.default.createElement(StyledSvg$2, tslib.__assign({ "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%" }, props), getSvgByName(props.name)));
|
|
810
810
|
};
|
|
811
|
-
var templateObject_1$
|
|
811
|
+
var templateObject_1$1O;
|
|
812
812
|
|
|
813
|
-
var internalButtonCss = styled.css(templateObject_1$
|
|
813
|
+
var internalButtonCss = styled.css(templateObject_1$1N || (templateObject_1$1N = tslib.__makeTemplateObject(["\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n text-align: left;\n font-family: unset;\n outline: none;\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n &:disabled {\n pointer-events: none;\n cursor: default;\n }\n"], ["\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n text-align: left;\n font-family: unset;\n outline: none;\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n &:disabled {\n pointer-events: none;\n cursor: default;\n }\n"])), typographyStyle, colorStyle, spacingStyle, displayStyle, borderStyle, dropShadowStyle);
|
|
814
814
|
var UnstyledInternalButton = function (props) {
|
|
815
815
|
var onClick = props.onClick, onHovered = props.onHovered, _a = props.element, Component = _a === void 0 ? "button" : _a, rest = tslib.__rest(props, ["onClick", "onHovered", "element"]);
|
|
816
816
|
var hoverStart = React.useRef(Date.now());
|
|
@@ -844,8 +844,8 @@ var UnstyledInternalButton = function (props) {
|
|
|
844
844
|
*
|
|
845
845
|
* NB. We must export a styled component for it to be inheritable
|
|
846
846
|
*/
|
|
847
|
-
var InternalButton = styled__default.default(UnstyledInternalButton)(templateObject_2$
|
|
848
|
-
var templateObject_1$
|
|
847
|
+
var InternalButton = styled__default.default(UnstyledInternalButton)(templateObject_2$R || (templateObject_2$R = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), internalButtonCss);
|
|
848
|
+
var templateObject_1$1N, templateObject_2$R;
|
|
849
849
|
|
|
850
850
|
// the values of the icons object are the paths to the versioned images in the Cloudinary
|
|
851
851
|
var icons = {
|
|
@@ -1128,18 +1128,18 @@ function parseColorFilter(value) {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
1130
|
|
|
1131
|
-
var colorFilterStyle = styled.css(templateObject_1$
|
|
1132
|
-
var templateObject_1$
|
|
1131
|
+
var colorFilterStyle = styled.css(templateObject_1$1M || (templateObject_1$1M = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("filter", function (props) { return props.$colorFilter; }, parseColorFilter));
|
|
1132
|
+
var templateObject_1$1M;
|
|
1133
1133
|
|
|
1134
1134
|
var oakPlaceholder = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA2NCA2NCI+PHBhdGggZmlsbD0iIzIyMiIgZD0iTTI4Ljc3OSAxOS4xNzZhMjcuMTkxIDI3LjE5MSAwIDAgMC0zLjggMS42IDE2LjcgMTYuNyAwIDAgMC03LjEgOC40YzAgLjEtLjEuMi0uMS4zLS43IDIuNC0uNiAyIDEuMyAyLjMgMS45LjMgMSAuNSAxIDEuMy0uMSA4LjggNC4xIDE1LjEgMTEuNCAxOS42YTEuNSAxLjUgMCAwIDAgMS43LjJjNS43LTIuNiA5LjMtNyAxMC4zLTEzLjJhMSAxIDAgMCAxIDEtMWwzLS4yYy44IDAgMS4zLjIgMS4yIDEuMmExNy45IDE3LjkgMCAwIDEtMy4yIDkuMiAyMy43IDIzLjcgMCAwIDEtMTAuOSA5LjEgNS40MDEgNS40MDEgMCAwIDEtNC41LS4yIDI2LjI5OCAyNi4yOTggMCAwIDEtOC41LTYuNiAyNS45IDI1LjkgMCAwIDEtNi40LTE0LjRjMC0uNi0uMi0uNy0uOC0uOC0yLjUtLjQtMi41LS4xLTIuMy0yLjlhMTkuMyAxOS4zIDAgMCAxIDEwLjgtMTYuNiAzOC45OTkgMzguOTk5IDAgMCAxIDUuNy0yLjEgMi4xIDIuMSAwIDAgMCAuOS0xLjMgMTQuMSAxNC4xIDAgMCAxIDMuNS02LjNsLjMtLjNjMS45LTIgMi42LTIgNC4zLjJsLjQuNWMxLjEgMS4xIDEgMS41LS4xIDIuNmExMS45IDExLjkgMCAwIDAtMy4yIDQuNCAxNi45IDE2LjkgMCAwIDEgNy41IDIuM2M1LjcgMy41IDkuMiA4LjMgOS45IDE1IC4wMTYuOTAxLS4wMTcgMS44MDItLjEgMi43IDAgLjgtLjYgMS0xLjIgMS4yYTE2LjEgMTYuMSAwIDAgMS0xMS0uNyAxNy45MDEgMTcuOTAxIDAgMCAxLTEwLjktMTMuNiA5Ljc5NiA5Ljc5NiAwIDAgMS0uMS0xLjlabTE4LjEgMTIuMmMuNC01LjUtNi45LTEyLjYtMTMtMTIuMS41IDYuNSA3LjYgMTIuOCAxMyAxMi4xWiIgb3BhY2l0eT0iLjEiLz48L3N2Zz4=";
|
|
1135
|
-
var clickStyles = styled.css(templateObject_2$
|
|
1135
|
+
var clickStyles = styled.css(templateObject_2$Q || (templateObject_2$Q = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
1136
1136
|
/* onClick might be passed in the useClickableCard pattern */
|
|
1137
|
-
return props.onClick && styled.css(templateObject_1$
|
|
1137
|
+
return props.onClick && styled.css(templateObject_1$1L || (templateObject_1$1L = tslib.__makeTemplateObject(["\n :hover {\n cursor: pointer;\n }\n "], ["\n :hover {\n cursor: pointer;\n }\n "])));
|
|
1138
1138
|
});
|
|
1139
|
-
var placeholderStyles = styled.css(templateObject_4$
|
|
1140
|
-
return props.$showOakPlaceholder && styled.css(templateObject_3$
|
|
1139
|
+
var placeholderStyles = styled.css(templateObject_4$l || (templateObject_4$l = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
1140
|
+
return props.$showOakPlaceholder && styled.css(templateObject_3$z || (templateObject_3$z = tslib.__makeTemplateObject(["\n background-image: url(", ");\n background-color: ", ";\n background-size: ", ";\n background-position: center;\n background-repeat: no-repeat;\n "], ["\n background-image: url(", ");\n background-color: ", ";\n background-size: ", ";\n background-position: center;\n background-repeat: no-repeat;\n "])), oakPlaceholder, parseColor("bg-decorative2-very-subdued"), parseSpacing("spacing-64"));
|
|
1141
1141
|
});
|
|
1142
|
-
var StyledFillImage = styled__default.default(Image__default.default)(templateObject_6$b || (templateObject_6$b = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n"])), colorFilterStyle, clickStyles, placeholderStyles, function (props) { return styled.css(templateObject_5$
|
|
1142
|
+
var StyledFillImage = styled__default.default(Image__default.default)(templateObject_6$b || (templateObject_6$b = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n"])), colorFilterStyle, clickStyles, placeholderStyles, function (props) { return styled.css(templateObject_5$e || (templateObject_5$e = tslib.__makeTemplateObject(["\n object-fit: ", ";\n "], ["\n object-fit: ", ";\n "])), props.$objectFit ? props.$objectFit : "contain"); });
|
|
1143
1143
|
var StyledResponsiveImage = styled__default.default(Image__default.default)(templateObject_7$5 || (templateObject_7$5 = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n width: 100%;\n height: auto;\n"], ["\n ", "\n ", "\n ", "\n width: 100%;\n height: auto;\n"])), colorFilterStyle, clickStyles, placeholderStyles);
|
|
1144
1144
|
/**
|
|
1145
1145
|
* A wrapper for NextJs's Image component.
|
|
@@ -1169,7 +1169,7 @@ var OakImage = function (_a) {
|
|
|
1169
1169
|
return (React__default.default.createElement(OakBox, tslib.__assign({ as: "span", "$display": "block", "$maxWidth": "spacing-0", "$position": $position }, rest),
|
|
1170
1170
|
React__default.default.createElement(StyledResponsiveImage, tslib.__assign({ ref: setImg, as: as !== null && as !== void 0 ? as : Image__default.default, src: src, alt: alt, width: width, height: height, sizes: sizes, unoptimized: unoptimized, "$colorFilter": $colorFilter, placeholder: finalPlaceholder, "$showOakPlaceholder": placeholder === "oak" && showPlaceholder, onLoad: handleComplete(onLoad), onError: handleComplete(onError) }, imageProps))));
|
|
1171
1171
|
};
|
|
1172
|
-
var templateObject_1$
|
|
1172
|
+
var templateObject_1$1L, templateObject_2$Q, templateObject_3$z, templateObject_4$l, templateObject_5$e, templateObject_6$b, templateObject_7$5;
|
|
1173
1173
|
|
|
1174
1174
|
/**
|
|
1175
1175
|
* A wrapper around OakImage which uses the image-map.json file to map icon names to image paths.
|
|
@@ -1181,7 +1181,7 @@ var OakIcon = function (props) {
|
|
|
1181
1181
|
unoptimized: true }, rest)));
|
|
1182
1182
|
};
|
|
1183
1183
|
|
|
1184
|
-
var screenReaderStyle = styled.css(templateObject_1$
|
|
1184
|
+
var screenReaderStyle = styled.css(templateObject_1$1K || (templateObject_1$1K = tslib.__makeTemplateObject(["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n"], ["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n"])));
|
|
1185
1185
|
/**
|
|
1186
1186
|
* This component will visually hide its contents but will still be available
|
|
1187
1187
|
* to screen readers, assitive technology, and scrapers.
|
|
@@ -1189,23 +1189,23 @@ var screenReaderStyle = styled.css(templateObject_1$1M || (templateObject_1$1M =
|
|
|
1189
1189
|
* Use this component in places where content shouldn't be visible, but should
|
|
1190
1190
|
* be accessible to assistive technology.
|
|
1191
1191
|
*/
|
|
1192
|
-
var OakScreenReader = styled__default.default.span(templateObject_2$
|
|
1193
|
-
var templateObject_1$
|
|
1192
|
+
var OakScreenReader = styled__default.default.span(templateObject_2$P || (templateObject_2$P = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), screenReaderStyle);
|
|
1193
|
+
var templateObject_1$1K, templateObject_2$P;
|
|
1194
1194
|
|
|
1195
|
-
var SpinnerKeyframe = styled.keyframes(templateObject_1$
|
|
1196
|
-
var DelayedShow = styled.keyframes(templateObject_2$
|
|
1195
|
+
var SpinnerKeyframe = styled.keyframes(templateObject_1$1J || (templateObject_1$1J = tslib.__makeTemplateObject(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"], ["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])));
|
|
1196
|
+
var DelayedShow = styled.keyframes(templateObject_2$O || (templateObject_2$O = tslib.__makeTemplateObject(["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"], ["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"])));
|
|
1197
1197
|
var StyledLoadingSpinner = styled__default.default.span(templateObject_7$4 || (templateObject_7$4 = tslib.__makeTemplateObject(["\n ", "\n ", "\n --inner-width: calc(var(--width) / 10 * 8);\n --thickness: calc(var(--width) / 12);\n\n display: inline-flex;\n width: var(--width);\n height: var(--width);\n\n ::after {\n content: \" \";\n display: block;\n width: var(--inner-width);\n height: var(--inner-width);\n margin: var(--thickness);\n border-radius: 50%;\n border: var(--thickness) solid currentcolor;\n ", "\n animation: ", " 1.2s linear infinite;\n }\n ", "\n"], ["\n ", "\n ", "\n --inner-width: calc(var(--width) / 10 * 8);\n --thickness: calc(var(--width) / 12);\n\n display: inline-flex;\n width: var(--width);\n height: var(--width);\n\n ::after {\n content: \" \";\n display: block;\n width: var(--inner-width);\n height: var(--inner-width);\n margin: var(--thickness);\n border-radius: 50%;\n border: var(--thickness) solid currentcolor;\n ", "\n animation: ", " 1.2s linear infinite;\n }\n ", "\n"])), function (props) {
|
|
1198
1198
|
return props.$width
|
|
1199
1199
|
? responsiveStyle("--width", function (props) { return props.$width; }, parseSpacing)
|
|
1200
|
-
: styled.css(templateObject_3$
|
|
1200
|
+
: styled.css(templateObject_3$y || (templateObject_3$y = tslib.__makeTemplateObject(["\n --width: 1.25rem;\n "], ["\n --width: 1.25rem;\n "])));
|
|
1201
1201
|
}, function (_a) {
|
|
1202
1202
|
var $delay = _a.$delay;
|
|
1203
1203
|
if ($delay) {
|
|
1204
|
-
return styled.css(templateObject_4$
|
|
1204
|
+
return styled.css(templateObject_4$k || (templateObject_4$k = tslib.__makeTemplateObject(["\n opacity: 0;\n animation: ", " 0s;\n animation-delay: ", "s;\n animation-fill-mode: forwards;\n "], ["\n opacity: 0;\n animation: ", " 0s;\n animation-delay: ", "s;\n animation-fill-mode: forwards;\n "])), DelayedShow, $delay / 1000);
|
|
1205
1205
|
}
|
|
1206
1206
|
}, function (props) {
|
|
1207
1207
|
return props.loaderColor
|
|
1208
|
-
? styled.css(templateObject_5$
|
|
1208
|
+
? styled.css(templateObject_5$d || (templateObject_5$d = tslib.__makeTemplateObject(["\n border-color: ", "\n ", " ", "\n transparent;\n "], ["\n border-color: ", "\n ", " ", "\n transparent;\n "])), parseColor(props.loaderColor), parseColor(props.loaderColor), parseColor(props.loaderColor)) : styled.css(templateObject_6$a || (templateObject_6$a = tslib.__makeTemplateObject(["\n border-color: currentcolor currentcolor currentcolor transparent;\n "], ["\n border-color: currentcolor currentcolor currentcolor transparent;\n "])));
|
|
1209
1209
|
}, SpinnerKeyframe, colorStyle);
|
|
1210
1210
|
/**
|
|
1211
1211
|
*
|
|
@@ -1214,11 +1214,11 @@ var StyledLoadingSpinner = styled__default.default.span(templateObject_7$4 || (t
|
|
|
1214
1214
|
*/
|
|
1215
1215
|
var OakLoadingSpinner = function (props) { return (React__default.default.createElement(StyledLoadingSpinner, tslib.__assign({}, props),
|
|
1216
1216
|
React__default.default.createElement(OakScreenReader, null, "Loading"))); };
|
|
1217
|
-
var templateObject_1$
|
|
1217
|
+
var templateObject_1$1J, templateObject_2$O, templateObject_3$y, templateObject_4$k, templateObject_5$d, templateObject_6$a, templateObject_7$4;
|
|
1218
1218
|
|
|
1219
|
-
var StyledInternalButton$5 = styled__default.default(InternalButton)(templateObject_2$
|
|
1220
|
-
var StyledOakSvg$1 = styled__default.default(OakSvg)(templateObject_3$
|
|
1221
|
-
var StyledButtonWrapper$3 = styled__default.default(OakBox)(templateObject_4$
|
|
1219
|
+
var StyledInternalButton$5 = styled__default.default(InternalButton)(templateObject_2$N || (templateObject_2$N = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n"])), positionStyle, sizeStyle, function (props) { return styled.css(templateObject_1$1I || (templateObject_1$1I = tslib.__makeTemplateObject(["\n &:hover {\n text-decoration: ", ";\n color: ", ";\n background: ", ";\n border-color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:active {\n background: ", ";\n border-color: ", ";\n color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:disabled {\n background: ", ";\n border-color: ", ";\n color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n "], ["\n &:hover {\n text-decoration: ", ";\n color: ", ";\n background: ", ";\n border-color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:active {\n background: ", ";\n border-color: ", ";\n color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:disabled {\n background: ", ";\n border-color: ", ";\n color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n "])), props.$hoverUnderline ? "underline" : "none", parseColor(props.$hoverTextColor), parseColor(props.$hoverBackground), parseColor(props.$hoverBorderColor), parseColor(props.$defaultBackground), parseColor(props.$defaultBorderColor), parseColor(props.$defaultTextColor), parseColor(props.$disabledBackground), parseColor(props.$disabledBorderColor), parseColor(props.$disabledTextColor)); });
|
|
1220
|
+
var StyledOakSvg$1 = styled__default.default(OakSvg)(templateObject_3$x || (templateObject_3$x = tslib.__makeTemplateObject(["\n bottom: -3px;\n left: 0px;\n position: absolute;\n height: 5px;\n color: ", ";\n"], ["\n bottom: -3px;\n left: 0px;\n position: absolute;\n height: 5px;\n color: ", ";\n"])), parseColor("border-decorative1"));
|
|
1221
|
+
var StyledButtonWrapper$3 = styled__default.default(OakBox)(templateObject_4$j || (templateObject_4$j = tslib.__makeTemplateObject(["\n .grey-shadow:has(+ * + .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:hover),\n .yellow-shadow:has(+ .internal-button:hover:not(:focus-visible, :active)) {\n box-shadow: ", ";\n }\n .grey-shadow:has(+ * + .internal-button:hover) {\n box-shadow: none;\n }\n .grey-shadow:has(+ * + .internal-button:active) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:active) {\n box-shadow: ", ";\n }\n"], ["\n .grey-shadow:has(+ * + .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:hover),\n .yellow-shadow:has(+ .internal-button:hover:not(:focus-visible, :active)) {\n box-shadow: ", ";\n }\n .grey-shadow:has(+ * + .internal-button:hover) {\n box-shadow: none;\n }\n .grey-shadow:has(+ * + .internal-button:active) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:active) {\n box-shadow: ", ";\n }\n"])), parseDropShadow("drop-shadow-centered-grey"), parseDropShadow("drop-shadow-centered-lemon"), function (props) { return parseDropShadow(props.$hoverShadow); }, parseDropShadow("drop-shadow-grey"), parseDropShadow("drop-shadow-lemon"));
|
|
1222
1222
|
/**
|
|
1223
1223
|
*
|
|
1224
1224
|
* A styled rectangular button, not intended to be used directly.
|
|
@@ -1254,7 +1254,7 @@ var TextWithUnderline$1 = function (_a) {
|
|
|
1254
1254
|
React__default.default.createElement(OakSpan, { "$font": font }, children),
|
|
1255
1255
|
React__default.default.createElement(StyledOakSvg$1, { name: "underline", "data-state": "selected", "data-testid": "selected-underline" })));
|
|
1256
1256
|
};
|
|
1257
|
-
var templateObject_1$
|
|
1257
|
+
var templateObject_1$1I, templateObject_2$N, templateObject_3$x, templateObject_4$j;
|
|
1258
1258
|
|
|
1259
1259
|
/**
|
|
1260
1260
|
*
|
|
@@ -1391,10 +1391,10 @@ var useDropdownContext = function () {
|
|
|
1391
1391
|
return dropdownValue;
|
|
1392
1392
|
};
|
|
1393
1393
|
|
|
1394
|
-
var StyledInternalButton$4 = styled__default.default(InternalButton)(templateObject_2$
|
|
1394
|
+
var StyledInternalButton$4 = styled__default.default(InternalButton)(templateObject_2$M || (templateObject_2$M = tslib.__makeTemplateObject(["\n display: inline-block;\n ", "\n ", "\n ", "\n"], ["\n display: inline-block;\n ", "\n ", "\n ", "\n"])), positionStyle, sizeStyle, function (props) { return styled.css(templateObject_1$1H || (templateObject_1$1H = tslib.__makeTemplateObject(["\n &:hover {\n text-decoration: underline;\n color: ", ";\n\n &:not(:active) [data-icon-for=\"button\"] img {\n filter: ", ";\n }\n }\n &:active {\n color: ", ";\n }\n &:disabled {\n color: ", ";\n }\n "], ["\n &:hover {\n text-decoration: underline;\n color: ", ";\n\n &:not(:active) [data-icon-for=\"button\"] img {\n filter: ", ";\n }\n }\n &:active {\n color: ", ";\n }\n &:disabled {\n color: ", ";\n }\n "])), parseColor(props.$hoverTextColor), props.$hoverIconColor
|
|
1395
1395
|
? parseColorFilter(props.$hoverIconColor)
|
|
1396
1396
|
: undefined, parseColor(props.$defaultTextColor), parseColor(props.$disabledTextColor)); });
|
|
1397
|
-
var StyledButtonWrapper$2 = styled__default.default(OakFlex)(templateObject_5$
|
|
1397
|
+
var StyledButtonWrapper$2 = styled__default.default(OakFlex)(templateObject_5$c || (templateObject_5$c = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), function (props) { return styled.css(templateObject_3$w || (templateObject_3$w = tslib.__makeTemplateObject(["\n > :first-child:focus-visible .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n > :first-child:hover .shadow {\n box-shadow: ", ";\n }\n > :first-child:active .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n "], ["\n > :first-child:focus-visible .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n > :first-child:hover .shadow {\n box-shadow: ", ";\n }\n > :first-child:active .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n "])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), parseDropShadow(props.$hoverDropShadow /*"drop-shadow-lemon"*/), parseDropShadow("drop-shadow-lemon"), parseDropShadow("drop-shadow-grey")); }, function (props) { return styled.css(templateObject_4$i || (templateObject_4$i = tslib.__makeTemplateObject(["\n > :first-child:disabled .icon-container {\n background: ", ";\n }\n > :first-child:hover .icon-container {\n background: ", ";\n }\n > :first-child:active .icon-container {\n background: ", ";\n }\n "], ["\n > :first-child:disabled .icon-container {\n background: ", ";\n }\n > :first-child:hover .icon-container {\n background: ", ";\n }\n > :first-child:active .icon-container {\n background: ", ";\n }\n "])), parseColor(props.$disabledIconBackground), parseColor(props.$hoverIconBackground), parseColor(props.$defaultIconBackground)); });
|
|
1398
1398
|
/**
|
|
1399
1399
|
*
|
|
1400
1400
|
* A styled button with round icons, not intended to be used directly.
|
|
@@ -1429,7 +1429,7 @@ var InternalShadowRoundButton = function (props) {
|
|
|
1429
1429
|
React__default.default.createElement(OakSpan, { "$font": "heading-7" }, children),
|
|
1430
1430
|
isTrailingIcon && iconLogic))));
|
|
1431
1431
|
};
|
|
1432
|
-
var templateObject_1$
|
|
1432
|
+
var templateObject_1$1H, templateObject_2$M, templateObject_3$w, templateObject_4$i, templateObject_5$c;
|
|
1433
1433
|
|
|
1434
1434
|
/**
|
|
1435
1435
|
*
|
|
@@ -1592,10 +1592,10 @@ var OakSmallSecondaryToggleButton = function (_a) {
|
|
|
1592
1592
|
return (React__default.default.createElement(InternalShadowRectButton, tslib.__assign({ element: element !== null && element !== void 0 ? element : "button", defaultBorderColor: defaultBorderColor, defaultBackground: defaultBackground, defaultTextColor: defaultTextColor, hoverBackground: hoverBackground, hoverBorderColor: hoverBorderColor, hoverTextColor: hoverTextColor, disabledBackground: disabledBackground, disabledBorderColor: "text-disabled", disabledTextColor: disabledTextColor, font: "body-3-bold", pv: "spacing-4", ph: "spacing-8", loadingSpinnerSize: "spacing-20", iconGap: "spacing-4", "aria-pressed": toggleOn }, rest)));
|
|
1593
1593
|
};
|
|
1594
1594
|
|
|
1595
|
-
var StyledInternalButton$3 = styled__default.default(InternalButton)(templateObject_2$
|
|
1595
|
+
var StyledInternalButton$3 = styled__default.default(InternalButton)(templateObject_2$L || (templateObject_2$L = tslib.__makeTemplateObject(["\n display: inline-block;\n ", "\n ", "\n ", "\n"], ["\n display: inline-block;\n ", "\n ", "\n ", "\n"])), positionStyle, sizeStyle, function (props) { return styled.css(templateObject_1$1G || (templateObject_1$1G = tslib.__makeTemplateObject(["\n &:hover {\n text-decoration: underline;\n color: ", ";\n\n &:not(:active) [data-icon-for=\"button\"] img {\n filter: ", ";\n }\n }\n &:active {\n color: ", ";\n }\n &:disabled {\n color: ", ";\n }\n "], ["\n &:hover {\n text-decoration: underline;\n color: ", ";\n\n &:not(:active) [data-icon-for=\"button\"] img {\n filter: ", ";\n }\n }\n &:active {\n color: ", ";\n }\n &:disabled {\n color: ", ";\n }\n "])), parseColor(props.$hoverTextColor), props.$hoverIconColor
|
|
1596
1596
|
? parseColorFilter(props.$hoverIconColor)
|
|
1597
1597
|
: undefined, parseColor(props.$defaultTextColor), parseColor(props.$disabledTextColor)); });
|
|
1598
|
-
var StyledButtonWrapper$1 = styled__default.default(OakFlex)(templateObject_3$
|
|
1598
|
+
var StyledButtonWrapper$1 = styled__default.default(OakFlex)(templateObject_3$v || (templateObject_3$v = tslib.__makeTemplateObject(["\n > :first-child:hover .highlight {\n display: block;\n }\n > :first-child:active .highlight {\n display: block;\n }\n > :first-child:active .shadow {\n display: block;\n }\n > :first-child:focus-visible {\n box-shadow:\n ", ",\n ", ";\n background: white;\n }\n"], ["\n > :first-child:hover .highlight {\n display: block;\n }\n > :first-child:active .highlight {\n display: block;\n }\n > :first-child:active .shadow {\n display: block;\n }\n > :first-child:focus-visible {\n box-shadow:\n ", ",\n ", ";\n background: white;\n }\n"])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"));
|
|
1599
1599
|
/**
|
|
1600
1600
|
*
|
|
1601
1601
|
* A styled button with round icons, not intended to be used directly.
|
|
@@ -1630,7 +1630,7 @@ var InternalShadowIconButton = function (props) {
|
|
|
1630
1630
|
React__default.default.createElement(OakSpan, { "$font": "heading-light-7" }, children),
|
|
1631
1631
|
isTrailingIcon && iconLogic))));
|
|
1632
1632
|
};
|
|
1633
|
-
var templateObject_1$
|
|
1633
|
+
var templateObject_1$1G, templateObject_2$L, templateObject_3$v;
|
|
1634
1634
|
|
|
1635
1635
|
/**
|
|
1636
1636
|
*
|
|
@@ -1668,9 +1668,9 @@ var OakTertiaryInvertedButton = function (_a) {
|
|
|
1668
1668
|
return (React__default.default.createElement(InternalShadowRoundButton, tslib.__assign({ element: element !== null && element !== void 0 ? element : "button" }, props, { isTrailingIcon: isTrailingIcon, iconName: iconName, defaultIconColor: "text-primary", disabledIconColor: "icon-disabled", disabledIconBackground: "bg-btn-secondary-disabled", defaultIconBackground: "bg-btn-secondary", defaultIconBorderColor: "bg-btn-primary", disabledIconBorderColor: "border-neutral", hoverIconBackground: "bg-btn-secondary", defaultTextColor: "text-primary", hoverTextColor: "text-subdued", disabledTextColor: "text-disabled", iconBackgroundSize: "spacing-32", iconSize: "spacing-24" }), children));
|
|
1669
1669
|
};
|
|
1670
1670
|
|
|
1671
|
-
var StyledInternalButton$2 = styled__default.default(InternalButton)(templateObject_2$
|
|
1672
|
-
var StyledOakSvg = styled__default.default(OakSvg)(templateObject_3$
|
|
1673
|
-
var StyledButtonWrapper = styled__default.default(OakBox)(templateObject_4$
|
|
1671
|
+
var StyledInternalButton$2 = styled__default.default(InternalButton)(templateObject_2$K || (templateObject_2$K = tslib.__makeTemplateObject(["\n ", "\n ", "\n display: inline-block;\n ", "\n"], ["\n ", "\n ", "\n display: inline-block;\n ", "\n"])), positionStyle, sizeStyle, function (props) { return styled.css(templateObject_1$1F || (templateObject_1$1F = tslib.__makeTemplateObject(["\n &:hover {\n color: ", ";\n background: ", ";\n border-color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:active {\n background: ", ";\n border-color: ", ";\n color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:disabled {\n background: ", ";\n border-color: ", ";\n color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n "], ["\n &:hover {\n color: ", ";\n background: ", ";\n border-color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:active {\n background: ", ";\n border-color: ", ";\n color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:disabled {\n background: ", ";\n border-color: ", ";\n color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n "])), parseColor(props.$hoverTextColor), parseColor(props.$hoverBackground), parseColor(props.$hoverBorderColor), parseColor(props.$defaultBackground), parseColor(props.$defaultBorderColor), parseColor(props.$defaultTextColor), parseColor(props.$disabledBackground), parseColor(props.$disabledBorderColor), parseColor(props.$disabledTextColor)); });
|
|
1672
|
+
var StyledOakSvg = styled__default.default(OakSvg)(templateObject_3$u || (templateObject_3$u = tslib.__makeTemplateObject(["\n bottom: -3px;\n left: 0px;\n position: absolute;\n height: 5px;\n color: ", ";\n"], ["\n bottom: -3px;\n left: 0px;\n position: absolute;\n height: 5px;\n color: ", ";\n"])), parseColor("border-decorative1"));
|
|
1673
|
+
var StyledButtonWrapper = styled__default.default(OakBox)(templateObject_4$h || (templateObject_4$h = tslib.__makeTemplateObject(["\n .grey-shadow:has(+ * + .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:hover),\n .grey-shadow:has(+ * + .internal-button:hover) {\n box-shadow: none;\n }\n .grey-shadow:has(+ * + .internal-button:active) {\n box-shadow: ", ";\n }\n"], ["\n .grey-shadow:has(+ * + .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:hover),\n .grey-shadow:has(+ * + .internal-button:hover) {\n box-shadow: none;\n }\n .grey-shadow:has(+ * + .internal-button:active) {\n box-shadow: ", ";\n }\n"])), parseDropShadow("drop-shadow-centered-grey"), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-grey"));
|
|
1674
1674
|
/**
|
|
1675
1675
|
* A left-aligned button styled similarly to OakSmallPrimaryInvertedButton
|
|
1676
1676
|
* with configurable icon alignment.
|
|
@@ -1707,7 +1707,7 @@ var TextWithUnderline = function (_a) {
|
|
|
1707
1707
|
React__default.default.createElement(OakSpan, { "$font": "body-3-bold" }, children),
|
|
1708
1708
|
React__default.default.createElement(StyledOakSvg, { name: "underline", "data-state": "selected", "data-testid": "selected-underline" })));
|
|
1709
1709
|
};
|
|
1710
|
-
var templateObject_1$
|
|
1710
|
+
var templateObject_1$1F, templateObject_2$K, templateObject_3$u, templateObject_4$h;
|
|
1711
1711
|
|
|
1712
1712
|
var oakHeadingTagsConst = [
|
|
1713
1713
|
"div",
|
|
@@ -1730,11 +1730,11 @@ var HeadingTagComponent = function (props) {
|
|
|
1730
1730
|
* Use the controls to view different font styles.
|
|
1731
1731
|
*
|
|
1732
1732
|
*/
|
|
1733
|
-
var OakHeading = styled__default.default(HeadingTagComponent)(templateObject_1$
|
|
1734
|
-
var templateObject_1$
|
|
1733
|
+
var OakHeading = styled__default.default(HeadingTagComponent)(templateObject_1$1E || (templateObject_1$1E = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n"])), typographyStyle, marginStyle, colorStyle, opacityStyle);
|
|
1734
|
+
var templateObject_1$1E;
|
|
1735
1735
|
|
|
1736
|
-
var listStyle = styled.css(templateObject_1$
|
|
1737
|
-
var templateObject_1$
|
|
1736
|
+
var listStyle = styled.css(templateObject_1$1D || (templateObject_1$1D = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("list-style", function (props) { return props.$listStyle; }));
|
|
1737
|
+
var templateObject_1$1D;
|
|
1738
1738
|
|
|
1739
1739
|
/**
|
|
1740
1740
|
* Styled `li` (list item) component.
|
|
@@ -1747,8 +1747,8 @@ var templateObject_1$1F;
|
|
|
1747
1747
|
var oakLIDefaults = {
|
|
1748
1748
|
$display: "revert",
|
|
1749
1749
|
};
|
|
1750
|
-
var OakLI = styled__default.default.li.attrs(function (props) { return (tslib.__assign(tslib.__assign({}, oakLIDefaults), props)); })(templateObject_1$
|
|
1751
|
-
var templateObject_1$
|
|
1750
|
+
var OakLI = styled__default.default.li.attrs(function (props) { return (tslib.__assign(tslib.__assign({}, oakLIDefaults), props)); })(templateObject_1$1C || (templateObject_1$1C = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n // FIXME - Flex props will only work when display is set to flex, can we conditionally apply this + props above ?\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n // FIXME - Flex props will only work when display is set to flex, can we conditionally apply this + props above ?\n ", "\n"])), oakBoxCss, typographyStyle, listStyle, displayStyle, flexStyle);
|
|
1751
|
+
var templateObject_1$1C;
|
|
1752
1752
|
|
|
1753
1753
|
/**
|
|
1754
1754
|
* Styled `ol` (ordered list) component.
|
|
@@ -1758,12 +1758,12 @@ var templateObject_1$1E;
|
|
|
1758
1758
|
* Use where we have an ordered list to ensure numbers are styled
|
|
1759
1759
|
*
|
|
1760
1760
|
* */
|
|
1761
|
-
var OakOL = styled__default.default.ol(templateObject_1$
|
|
1761
|
+
var OakOL = styled__default.default.ol(templateObject_1$1B || (templateObject_1$1B = tslib.__makeTemplateObject(["\n counter-reset: item;\n padding: 0;\n\n li {\n display: block;\n counter-increment: item;\n margin: 0;\n padding: 0 0 0 16px;\n text-indent: -16px;\n list-style-type: none;\n line-height: 32px;\n\n // Portable text generates linebreaks within list items\n\n br {\n content: \"\";\n display: block;\n margin-top: 8px;\n }\n }\n\n & li::before {\n padding-right: 4px;\n content: counter(item) \".\";\n }\n a {\n color: ", ";\n }\n ", "\n ", "\n ", "\n"], ["\n counter-reset: item;\n padding: 0;\n\n li {\n display: block;\n counter-increment: item;\n margin: 0;\n padding: 0 0 0 16px;\n text-indent: -16px;\n list-style-type: none;\n line-height: 32px;\n\n // Portable text generates linebreaks within list items\n\n br {\n content: \"\";\n display: block;\n margin-top: 8px;\n }\n }\n\n & li::before {\n padding-right: 4px;\n content: counter(item) \".\";\n }\n a {\n color: ", ";\n }\n ", "\n ", "\n ", "\n"])), function (props) {
|
|
1762
1762
|
return props.theme &&
|
|
1763
1763
|
props.theme.uiColors &&
|
|
1764
1764
|
props.theme.uiColors["text-link-active"];
|
|
1765
1765
|
}, marginStyle, colorStyle, typographyStyle);
|
|
1766
|
-
var templateObject_1$
|
|
1766
|
+
var templateObject_1$1B;
|
|
1767
1767
|
|
|
1768
1768
|
/**
|
|
1769
1769
|
* Styled `p` (paragraph) component.
|
|
@@ -1772,8 +1772,8 @@ var templateObject_1$1D;
|
|
|
1772
1772
|
* However, if you want different styles for a particular paragraph,
|
|
1773
1773
|
* you can use this component to apply additional styles.
|
|
1774
1774
|
*/
|
|
1775
|
-
var OakP = styled__default.default.p(templateObject_1$
|
|
1776
|
-
var templateObject_1$
|
|
1775
|
+
var OakP = styled__default.default.p(templateObject_1$1A || (templateObject_1$1A = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n"])), typographyStyle, colorStyle, marginStyle);
|
|
1776
|
+
var templateObject_1$1A;
|
|
1777
1777
|
|
|
1778
1778
|
/**
|
|
1779
1779
|
* The Typography component sets a typography style context from which children
|
|
@@ -1782,8 +1782,8 @@ var templateObject_1$1C;
|
|
|
1782
1782
|
* This should be the primary component to set a typography context.
|
|
1783
1783
|
* Use this component whenever you want to style blocks of 'body' text.
|
|
1784
1784
|
*/
|
|
1785
|
-
var OakTypography = styled__default.default(OakBox)(templateObject_1$
|
|
1786
|
-
var templateObject_1$
|
|
1785
|
+
var OakTypography = styled__default.default(OakBox)(templateObject_1$1z || (templateObject_1$1z = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typographyStyle);
|
|
1786
|
+
var templateObject_1$1z;
|
|
1787
1787
|
|
|
1788
1788
|
/**
|
|
1789
1789
|
* Styled `ul` (unordered list) component.
|
|
@@ -1793,10 +1793,10 @@ var templateObject_1$1B;
|
|
|
1793
1793
|
* Resets browser spacing and other styles, accepts BoxProps' style props.
|
|
1794
1794
|
*
|
|
1795
1795
|
* */
|
|
1796
|
-
var OakUL = styled__default.default.ul(templateObject_2$
|
|
1797
|
-
return props.$reset && styled.css(templateObject_1$
|
|
1796
|
+
var OakUL = styled__default.default.ul(templateObject_2$J || (templateObject_2$J = tslib.__makeTemplateObject(["\n ", "\n margin: 0;\n display: block;\n ", "\n ", "\n"], ["\n ", "\n margin: 0;\n display: block;\n ", "\n ", "\n"])), function (props) {
|
|
1797
|
+
return props.$reset && styled.css(templateObject_1$1y || (templateObject_1$1y = tslib.__makeTemplateObject(["\n list-style: none;\n padding: 0;\n "], ["\n list-style: none;\n padding: 0;\n "])));
|
|
1798
1798
|
}, oakBoxCss, function (props) { return props.$display && oakFlexCss; });
|
|
1799
|
-
var templateObject_1$
|
|
1799
|
+
var templateObject_1$1y, templateObject_2$J;
|
|
1800
1800
|
|
|
1801
1801
|
var variantConfig = {
|
|
1802
1802
|
primary: {
|
|
@@ -1815,9 +1815,9 @@ var variantConfig = {
|
|
|
1815
1815
|
},
|
|
1816
1816
|
};
|
|
1817
1817
|
|
|
1818
|
-
var StyledOakIcon$3 = styled__default.default(OakIcon)(templateObject_1$
|
|
1819
|
-
var StyledOakLoadingSpinner = styled__default.default(OakLoadingSpinner)(templateObject_2$
|
|
1820
|
-
var StyledLink$1 = styled__default.default.a(templateObject_3$
|
|
1818
|
+
var StyledOakIcon$3 = styled__default.default(OakIcon)(templateObject_1$1x || (templateObject_1$1x = tslib.__makeTemplateObject(["\n width: 1.25em;\n min-width: 1.25em;\n height: 1.25em;\n min-height: 1.25em;\n"], ["\n width: 1.25em;\n min-width: 1.25em;\n height: 1.25em;\n min-height: 1.25em;\n"])));
|
|
1819
|
+
var StyledOakLoadingSpinner = styled__default.default(OakLoadingSpinner)(templateObject_2$I || (templateObject_2$I = tslib.__makeTemplateObject(["\n --width: 1.25em;\n"], ["\n --width: 1.25em;\n"])));
|
|
1820
|
+
var StyledLink$1 = styled__default.default.a(templateObject_3$t || (templateObject_3$t = tslib.__makeTemplateObject(["\n display: inline;\n align-items: center;\n gap: ", ";\n outline: none;\n border-radius: ", ";\n padding: ", ";\n margin: -", ";\n appearance: none;\n ", "\n background: none;\n border: none;\n text-decoration: ", ";\n cursor: pointer;\n color: ", ";\n overflow-wrap: break-word;\n\n ", " {\n filter: ", ";\n display: inline-block;\n vertical-align: text-top;\n }\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n\n &:visited {\n color: ", ";\n\n ", " {\n filter: ", ";\n }\n }\n\n @media (hover: hover) {\n &:hover,\n &:visited:hover {\n color: ", ";\n ", " {\n filter: ", ";\n }\n text-decoration: underline;\n text-decoration-thickness: 18%;\n }\n }\n\n &:active {\n color: ", ";\n outline: 1px solid ", ";\n ", " {\n filter: ", ";\n }\n }\n\n &[disabled] {\n cursor: not-allowed;\n color: ", ";\n\n ", " {\n filter: ", ";\n }\n }\n"], ["\n display: inline;\n align-items: center;\n gap: ", ";\n outline: none;\n border-radius: ", ";\n padding: ", ";\n margin: -", ";\n appearance: none;\n ", "\n background: none;\n border: none;\n text-decoration: ", ";\n cursor: pointer;\n color: ", ";\n overflow-wrap: break-word;\n\n ", " {\n filter: ", ";\n display: inline-block;\n vertical-align: text-top;\n }\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n\n &:visited {\n color: ", ";\n\n ", " {\n filter: ", ";\n }\n }\n\n @media (hover: hover) {\n &:hover,\n &:visited:hover {\n color: ", ";\n ", " {\n filter: ", ";\n }\n text-decoration: underline;\n text-decoration-thickness: 18%;\n }\n }\n\n &:active {\n color: ", ";\n outline: 1px solid ", ";\n ", " {\n filter: ", ";\n }\n }\n\n &[disabled] {\n cursor: not-allowed;\n color: ", ";\n\n ", " {\n filter: ", ";\n }\n }\n"])), parseSpacing("spacing-4"), parseBorderRadius("border-radius-m"), parseSpacing("spacing-4"), parseSpacing("spacing-4"), function (props) { return (props.$font ? typographyStyle : "font: inherit;"); }, function (props) { return props.$textDecoration; }, function (props) { return parseColor(props.$color); }, StyledOakIcon$3, function (props) { return parseColorFilter(props.$color); }, parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), function (props) { return parseColor(props.$visitedColor); }, StyledOakIcon$3, function (props) { return parseColorFilter(props.$visitedColor); }, function (props) { return parseColor(props.$hoverColor); }, StyledOakIcon$3, function (props) { return parseColorFilter(props.$hoverColor); }, function (props) { return parseColor(props.$activeColor); }, function (props) { return parseColor(props.$activeColor); }, StyledOakIcon$3, function (props) { return parseColorFilter(props.$activeColor); }, function (props) { return parseColor(props.$disabledColor); }, StyledOakIcon$3, function (props) { return parseColorFilter(props.$disabledColor); });
|
|
1821
1821
|
/**
|
|
1822
1822
|
* A link with an optional icon and loading state.
|
|
1823
1823
|
*
|
|
@@ -1852,7 +1852,7 @@ var InternalLink = React.forwardRef(function (props, ref) {
|
|
|
1852
1852
|
React__default.default.createElement(OakSpan, null, children),
|
|
1853
1853
|
isTrailingIcon && icon));
|
|
1854
1854
|
});
|
|
1855
|
-
var templateObject_1$
|
|
1855
|
+
var templateObject_1$1x, templateObject_2$I, templateObject_3$t;
|
|
1856
1856
|
|
|
1857
1857
|
/**
|
|
1858
1858
|
* A link with an optional icon and loading state.
|
|
@@ -1940,7 +1940,7 @@ var useAccordionContext = function () {
|
|
|
1940
1940
|
return accordionValue;
|
|
1941
1941
|
};
|
|
1942
1942
|
|
|
1943
|
-
var FlexWithReset = styled__default.default(OakFlex)(templateObject_1$
|
|
1943
|
+
var FlexWithReset = styled__default.default(OakFlex)(templateObject_1$1w || (templateObject_1$1w = tslib.__makeTemplateObject(["\n font: inherit;\n color: inherit;\n border: none;\n background: none;\n appearance: none;\n outline: none;\n padding: 0;\n"], ["\n font: inherit;\n color: inherit;\n border: none;\n background: none;\n appearance: none;\n outline: none;\n padding: 0;\n"])));
|
|
1944
1944
|
/**
|
|
1945
1945
|
*
|
|
1946
1946
|
* Content which will appear and disappear
|
|
@@ -1965,10 +1965,10 @@ var AccordionButton = function (props) {
|
|
|
1965
1965
|
var _a = useAccordionContext(), isOpen = _a.isOpen, setOpen = _a.setOpen;
|
|
1966
1966
|
return (React__default.default.createElement(FlexWithReset, tslib.__assign({ as: "button", type: "button", onClick: function () { return setOpen(!isOpen); }, "$flexGrow": 1, "aria-expanded": isOpen, id: id }, rest), children));
|
|
1967
1967
|
};
|
|
1968
|
-
var InternalAccordionButton = styled__default.default(AccordionButton)(templateObject_2$
|
|
1969
|
-
var templateObject_1$
|
|
1968
|
+
var InternalAccordionButton = styled__default.default(AccordionButton)(templateObject_2$H || (templateObject_2$H = tslib.__makeTemplateObject([""], [""])));
|
|
1969
|
+
var templateObject_1$1w, templateObject_2$H;
|
|
1970
1970
|
|
|
1971
|
-
var StyledOakFlex$5 = styled__default.default(InternalAccordionButton)(templateObject_1$
|
|
1971
|
+
var StyledOakFlex$5 = styled__default.default(InternalAccordionButton)(templateObject_1$1v || (templateObject_1$1v = tslib.__makeTemplateObject(["\n font: inherit;\n color: inherit;\n border: none;\n background: none;\n appearance: none;\n\n outline: none;\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n"], ["\n font: inherit;\n color: inherit;\n border: none;\n background: none;\n appearance: none;\n\n outline: none;\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n"])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"));
|
|
1972
1972
|
var Accordion$4 = function (_a) {
|
|
1973
1973
|
var header = _a.header, headerTag = _a.headerTag, headerAfterSlot = _a.headerAfterSlot, children = _a.children, id = _a.id, _b = _a.chevronPosition, chevronPosition = _b === void 0 ? "left" : _b, _c = _a.openBackground, openBackground = _c === void 0 ? "bg-neutral" : _c, $color = _a.$color, styleProps = tslib.__rest(_a, ["header", "headerTag", "headerAfterSlot", "children", "id", "chevronPosition", "openBackground", "$color"]);
|
|
1974
1974
|
var isOpen = useAccordionContext().isOpen;
|
|
@@ -1993,7 +1993,7 @@ var OakAccordion = function (props) {
|
|
|
1993
1993
|
return (React__default.default.createElement(InternalAccordionProvider, { isInitialOpen: initialOpen },
|
|
1994
1994
|
React__default.default.createElement(Accordion$4, tslib.__assign({}, rest))));
|
|
1995
1995
|
};
|
|
1996
|
-
var templateObject_1$
|
|
1996
|
+
var templateObject_1$1v;
|
|
1997
1997
|
|
|
1998
1998
|
var BaseCheckBox = React.forwardRef(function (props, ref) {
|
|
1999
1999
|
var onHovered = props.onHovered, rest = tslib.__rest(props, ["onHovered"]);
|
|
@@ -2052,18 +2052,18 @@ var internalCheckBoxDefaults = {
|
|
|
2052
2052
|
var InternalCheckBox = styled__default.default(BaseCheckBox).attrs(function (_a) {
|
|
2053
2053
|
_a.theme; var props = tslib.__rest(_a, ["theme"]);
|
|
2054
2054
|
return (tslib.__assign(tslib.__assign({}, internalCheckBoxDefaults), props));
|
|
2055
|
-
})(templateObject_2$
|
|
2055
|
+
})(templateObject_2$G || (templateObject_2$G = tslib.__makeTemplateObject(["\n /* removing default appearance */\n -webkit-appearance: none;\n appearance: none;\n cursor: pointer;\n margin: 0;\n outline: none;\n ", "\n ", "\n ", "\n ", "\n\n border-color: ", ";\n\n &:checked {\n ", ";\n }\n\n &:disabled {\n pointer-events: none;\n }\n\n @media (hover: hover) {\n &:hover:not(:disabled) {\n border-color: ", ";\n }\n }\n"], ["\n /* removing default appearance */\n -webkit-appearance: none;\n appearance: none;\n cursor: pointer;\n margin: 0;\n outline: none;\n ", "\n ", "\n ", "\n ", "\n\n border-color: ", ";\n\n &:checked {\n ", ";\n }\n\n &:disabled {\n pointer-events: none;\n }\n\n @media (hover: hover) {\n &:hover:not(:disabled) {\n border-color: ", ";\n }\n }\n"])), borderStyle, colorStyle, spacingStyle, sizeStyle, function (props) { return parseColor(props.$uncheckedBorderColor); }, function (props) { return styled.css(templateObject_1$1u || (templateObject_1$1u = tslib.__makeTemplateObject(["\n background: ", ";\n border-color: ", ";\n "], ["\n background: ", ";\n border-color: ", ";\n "])), parseColor(props.$checkedBackground), parseColor(props.$checkedBorderColor)); }, function (props) { return parseColor(props.$checkedBackground); });
|
|
2056
2056
|
var internalCheckBoxHoverDefaults = {
|
|
2057
2057
|
$hoverBorderRadius: "border-radius-xs",
|
|
2058
2058
|
};
|
|
2059
2059
|
var InternalCheckBoxHover = styled__default.default(InternalCheckBox).attrs(function (_a) {
|
|
2060
2060
|
_a.theme; var props = tslib.__rest(_a, ["theme"]);
|
|
2061
2061
|
return (tslib.__assign(tslib.__assign({}, internalCheckBoxHoverDefaults), props));
|
|
2062
|
-
})(templateObject_3$
|
|
2063
|
-
var focusStyle$1 = styled.css(templateObject_4$
|
|
2064
|
-
styled__default.default(InternalCheckBox)(templateObject_5$
|
|
2062
|
+
})(templateObject_3$s || (templateObject_3$s = tslib.__makeTemplateObject(["\n /* @media wrapper is required to prevent hover effect on iOS Safari */\n\n @media (hover: hover) {\n &:hover:not(&:checked):not(&:disabled)::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n width: 60%;\n height: 60%;\n transform: translate(-50%, -50%);\n border-radius: ", ";\n background: ", ";\n }\n }\n"], ["\n /* @media wrapper is required to prevent hover effect on iOS Safari */\n\n @media (hover: hover) {\n &:hover:not(&:checked):not(&:disabled)::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n width: 60%;\n height: 60%;\n transform: translate(-50%, -50%);\n border-radius: ", ";\n background: ", ";\n }\n }\n"])), function (props) { return parseBorderRadius(props.$hoverBorderRadius); }, function (props) { return parseColor(props.$checkedBackground); });
|
|
2063
|
+
var focusStyle$1 = styled.css(templateObject_4$g || (templateObject_4$g = tslib.__makeTemplateObject(["\n &:focus-visible {\n box-shadow: ", ";\n }\n"], ["\n &:focus-visible {\n box-shadow: ", ";\n }\n"])), parseDropShadow("drop-shadow-centered-lemon"));
|
|
2064
|
+
styled__default.default(InternalCheckBox)(templateObject_5$b || (templateObject_5$b = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), focusStyle$1);
|
|
2065
2065
|
var InternalCheckBoxHoverFocus = styled__default.default(InternalCheckBoxHover)(templateObject_6$9 || (templateObject_6$9 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), focusStyle$1);
|
|
2066
|
-
var templateObject_1$
|
|
2066
|
+
var templateObject_1$1u, templateObject_2$G, templateObject_3$s, templateObject_4$g, templateObject_5$b, templateObject_6$9;
|
|
2067
2067
|
|
|
2068
2068
|
/**
|
|
2069
2069
|
* Label renders a `label` element, exposing all the typography props.
|
|
@@ -2071,19 +2071,19 @@ var templateObject_1$1w, templateObject_2$I, templateObject_3$t, templateObject_
|
|
|
2071
2071
|
* Use this component when you want to apply styles to a label, likely within
|
|
2072
2072
|
* a form.
|
|
2073
2073
|
*/
|
|
2074
|
-
var OakLabel = styled__default.default.label(templateObject_1$
|
|
2075
|
-
var templateObject_1$
|
|
2074
|
+
var OakLabel = styled__default.default.label(templateObject_1$1t || (templateObject_1$1t = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), typographyStyle, colorStyle);
|
|
2075
|
+
var templateObject_1$1t;
|
|
2076
2076
|
|
|
2077
2077
|
/**
|
|
2078
2078
|
*
|
|
2079
2079
|
* Specialised Label Component can be used and extended to create various different versions of CheckboxLabels
|
|
2080
2080
|
*
|
|
2081
2081
|
*/
|
|
2082
|
-
var InternalCheckBoxLabel = styled__default.default(OakLabel)(templateObject_1$
|
|
2083
|
-
var InternalCheckBoxLabelHoverDecor = styled__default.default(InternalCheckBoxLabel)(templateObject_2$
|
|
2084
|
-
var templateObject_1$
|
|
2082
|
+
var InternalCheckBoxLabel = styled__default.default(OakLabel)(templateObject_1$1s || (templateObject_1$1s = tslib.__makeTemplateObject(["\n display: flex;\n align-items: center;\n ", "\n ", "\n"], ["\n display: flex;\n align-items: center;\n ", "\n ", "\n"])), responsiveStyle("gap", function (props) { return props.labelGap; }, parseSpacing), responsiveStyle("align-items", function (props) { return props.labelAlignItems; }));
|
|
2083
|
+
var InternalCheckBoxLabelHoverDecor = styled__default.default(InternalCheckBoxLabel)(templateObject_2$F || (templateObject_2$F = tslib.__makeTemplateObject(["\n ", "\n @media (hover: hover) {\n &:hover {\n text-decoration: ", ";\n }\n }\n"], ["\n ", "\n @media (hover: hover) {\n &:hover {\n text-decoration: ", ";\n }\n }\n"])), function (props) { return "\n ".concat(props.pointerEvents ? "pointer-events: ".concat(props.pointerEvents, ";") : "", "\n ").concat(props.disabled ? "pointer-events: none;" : "cursor: pointer;", "\n "); }, function (props) { return (props.disabled ? "none" : "underline"); });
|
|
2084
|
+
var templateObject_1$1s, templateObject_2$F;
|
|
2085
2085
|
|
|
2086
|
-
var StyledIconContainer = styled__default.default(OakBox)(templateObject_1$
|
|
2086
|
+
var StyledIconContainer = styled__default.default(OakBox)(templateObject_1$1r || (templateObject_1$1r = tslib.__makeTemplateObject(["\n pointer-events: none;\n opacity: 0;\n\n input:checked + & {\n opacity: 1;\n }\n"], ["\n pointer-events: none;\n opacity: 0;\n\n input:checked + & {\n opacity: 1;\n }\n"])));
|
|
2087
2087
|
/**
|
|
2088
2088
|
*
|
|
2089
2089
|
* This component is a wrapper for the InternalCheckBox component. It allows for customisable icons.
|
|
@@ -2098,7 +2098,7 @@ var InternalCheckBoxWrapper = function (props) {
|
|
|
2098
2098
|
internalCheckbox,
|
|
2099
2099
|
React__default.default.createElement(StyledIconContainer, { "$position": "absolute", "$top": "spacing-0", "$left": "spacing-0", "$pa": iconPadding, "$width": size, "$height": size }, checkedIcon)));
|
|
2100
2100
|
};
|
|
2101
|
-
var templateObject_1$
|
|
2101
|
+
var templateObject_1$1r;
|
|
2102
2102
|
|
|
2103
2103
|
/**
|
|
2104
2104
|
*
|
|
@@ -2198,7 +2198,7 @@ var useMounted = function () {
|
|
|
2198
2198
|
return isMounted;
|
|
2199
2199
|
};
|
|
2200
2200
|
|
|
2201
|
-
var SlideInFlex = styled__default.default(OakFlex)(templateObject_1$
|
|
2201
|
+
var SlideInFlex = styled__default.default(OakFlex)(templateObject_1$1q || (templateObject_1$1q = tslib.__makeTemplateObject(["\n max-width: ", ";\n transform: ", ";\n ", "\n"], ["\n max-width: ", ";\n transform: ", ";\n ", "\n"])), function (_a) {
|
|
2202
2202
|
var isLeftHandSide = _a.isLeftHandSide;
|
|
2203
2203
|
return isLeftHandSide ? "calc(100vw - ".concat(parseSpacing("spacing-20"), ")") : "100vw";
|
|
2204
2204
|
}, function (_a) {
|
|
@@ -2219,9 +2219,9 @@ var InternalSlideInFlex = React.forwardRef(function (props, ref) {
|
|
|
2219
2219
|
var finalZIndex = props.finalZIndex, state = props.state, isLeftHandSide = props.isLeftHandSide, children = props.children, _a = props.largeScreenMaxWidth, largeScreenMaxWidth = _a === void 0 ? 600 : _a, rest = tslib.__rest(props, ["finalZIndex", "state", "isLeftHandSide", "children", "largeScreenMaxWidth"]);
|
|
2220
2220
|
return (React__default.default.createElement(SlideInFlex, tslib.__assign({ ref: ref, "$background": "bg-primary", "$right": !isLeftHandSide ? "spacing-0" : null, "$left": isLeftHandSide ? "spacing-0" : null, "$position": "fixed", "$bottom": "spacing-0", "$width": ["spacing-640"], "$top": "spacing-0", "$transition": "standard-ease", "$zIndex": finalZIndex, "$flexDirection": "column", "$state": state, "$color": "text-primary", role: "dialog", isLeftHandSide: isLeftHandSide, largeScreenMaxWidth: largeScreenMaxWidth }, rest), children));
|
|
2221
2221
|
});
|
|
2222
|
-
var templateObject_1$
|
|
2222
|
+
var templateObject_1$1q;
|
|
2223
2223
|
|
|
2224
|
-
var FadeOutBox = styled__default.default(OakBox)(templateObject_1$
|
|
2224
|
+
var FadeOutBox = styled__default.default(OakBox)(templateObject_1$1p || (templateObject_1$1p = tslib.__makeTemplateObject(["\n opacity: ", ";\n background-color: black;\n position: fixed;\n inset: 0;\n transition: ease;\n"], ["\n opacity: ", ";\n background-color: black;\n position: fixed;\n inset: 0;\n transition: ease;\n"])), function (_a) {
|
|
2225
2225
|
var $state = _a.$state;
|
|
2226
2226
|
switch ($state) {
|
|
2227
2227
|
case "entered":
|
|
@@ -2240,7 +2240,7 @@ var InternalModalTransition = function (_a) {
|
|
|
2240
2240
|
React__default.default.createElement(FadeOutBox, { "$zIndex": finalZIndex, "$state": state, onClick: closeOnBackgroundClick ? onClose : undefined }),
|
|
2241
2241
|
React__default.default.createElement(InternalSlideInFlex, tslib.__assign({ isLeftHandSide: isLeftHandSide, ref: transitionRef, "$zIndex": finalZIndex, "$state": state, "aria-modal": true, largeScreenMaxWidth: largeScreenMaxWidth }, rest), children))); }));
|
|
2242
2242
|
};
|
|
2243
|
-
var templateObject_1$
|
|
2243
|
+
var templateObject_1$1p;
|
|
2244
2244
|
|
|
2245
2245
|
var OakInformativeModalBorderColor = React.createContext("border-neutral-lighter");
|
|
2246
2246
|
/**
|
|
@@ -2510,8 +2510,8 @@ var OakCookieConsent = function (_a) {
|
|
|
2510
2510
|
* OakFieldset renders a custom `fieldset` component, removes default styling of fieldset.
|
|
2511
2511
|
color, opacity, margin, padding, border and typography styles can be passed in also.
|
|
2512
2512
|
*/
|
|
2513
|
-
var OakFieldset = styled__default.default.fieldset(templateObject_1$
|
|
2514
|
-
var templateObject_1$
|
|
2513
|
+
var OakFieldset = styled__default.default.fieldset(templateObject_1$1o || (templateObject_1$1o = tslib.__makeTemplateObject(["\n border: 0;\n margin: 0;\n padding: 0;\n ", ";\n"], ["\n border: 0;\n margin: 0;\n padding: 0;\n ", ";\n"])), oakBoxCss);
|
|
2514
|
+
var templateObject_1$1o;
|
|
2515
2515
|
|
|
2516
2516
|
/**
|
|
2517
2517
|
*
|
|
@@ -2521,10 +2521,10 @@ var templateObject_1$1q;
|
|
|
2521
2521
|
* Use `<OakBox as="form">` instead
|
|
2522
2522
|
* @deprecated Use `<OakBox as="form">` instead
|
|
2523
2523
|
*/
|
|
2524
|
-
var OakForm = styled__default.default.form(templateObject_1$
|
|
2525
|
-
var templateObject_1$
|
|
2524
|
+
var OakForm = styled__default.default.form(templateObject_1$1n || (templateObject_1$1n = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), oakBoxCss);
|
|
2525
|
+
var templateObject_1$1n;
|
|
2526
2526
|
|
|
2527
|
-
var textAreaCss = styled.css(templateObject_1$
|
|
2527
|
+
var textAreaCss = styled.css(templateObject_1$1m || (templateObject_1$1m = tslib.__makeTemplateObject(["\n resize: none;\n outline: none;\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n resize: none;\n outline: none;\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), sizeStyle, borderStyle, spacingStyle, typographyStyle, positionStyle, colorStyle);
|
|
2528
2528
|
var UnstyledOakTextArea = React.forwardRef(function (props, ref) {
|
|
2529
2529
|
return React__default.default.createElement("textarea", tslib.__assign({ ref: ref }, props));
|
|
2530
2530
|
});
|
|
@@ -2533,8 +2533,8 @@ var UnstyledOakTextArea = React.forwardRef(function (props, ref) {
|
|
|
2533
2533
|
* A textarea that can be used for longer text inputs where text should wrap.
|
|
2534
2534
|
*
|
|
2535
2535
|
*/
|
|
2536
|
-
var OakTextArea = styled__default.default(UnstyledOakTextArea)(templateObject_2$
|
|
2537
|
-
var templateObject_1$
|
|
2536
|
+
var OakTextArea = styled__default.default(UnstyledOakTextArea)(templateObject_2$E || (templateObject_2$E = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), textAreaCss);
|
|
2537
|
+
var templateObject_1$1m, templateObject_2$E;
|
|
2538
2538
|
|
|
2539
2539
|
var RadioContext$1 = React.createContext({
|
|
2540
2540
|
currentValue: "default",
|
|
@@ -2599,7 +2599,7 @@ var OakFieldError = function (props) {
|
|
|
2599
2599
|
* E.g. ios and rounded borders (which border-radius doesn't fix without
|
|
2600
2600
|
* appearance: none)
|
|
2601
2601
|
*/
|
|
2602
|
-
var StyledInput = styled__default.default.input(templateObject_1$
|
|
2602
|
+
var StyledInput = styled__default.default.input(templateObject_1$1l || (templateObject_1$1l = tslib.__makeTemplateObject(["\n appearance: none !important;\n border: 0;\n border-radius: 0;\n border-color: transparent;\n box-shadow: none;\n font-family: inherit;\n background: transparent;\n outline: none;\n color: inherit;\n\n @media (max-width: ", "px) {\n /* iOS zooms in on inputs with font sizes <16px on mobile */\n font-size: 16px;\n }\n\n ::placeholder {\n color: ", ";\n }\n\n ::-webkit-search-decoration,\n ::-webkit-search-cancel-button,\n ::-webkit-search-results-button,\n ::-webkit-search-results-decoration {\n appearance: none;\n }\n\n :disabled {\n cursor: not-allowed;\n }\n\n ", "\n ", "\n"], ["\n appearance: none !important;\n border: 0;\n border-radius: 0;\n border-color: transparent;\n box-shadow: none;\n font-family: inherit;\n background: transparent;\n outline: none;\n color: inherit;\n\n @media (max-width: ", "px) {\n /* iOS zooms in on inputs with font sizes <16px on mobile */\n font-size: 16px;\n }\n\n ::placeholder {\n color: ", ";\n }\n\n ::-webkit-search-decoration,\n ::-webkit-search-cancel-button,\n ::-webkit-search-results-button,\n ::-webkit-search-results-decoration {\n appearance: none;\n }\n\n :disabled {\n cursor: not-allowed;\n }\n\n ", "\n ", "\n"])), getBreakpoint("small"), parseColor("text-subdued"), spacingStyle, sizeStyle);
|
|
2603
2603
|
/**
|
|
2604
2604
|
*
|
|
2605
2605
|
* An unstyled input to be used as a basis for UI input components.
|
|
@@ -2632,12 +2632,12 @@ var InternalTextInput = function (props) {
|
|
|
2632
2632
|
};
|
|
2633
2633
|
return React__default.default.createElement(StyledInput, tslib.__assign({}, rest, { onFocus: handleOnFocus }));
|
|
2634
2634
|
};
|
|
2635
|
-
var templateObject_1$
|
|
2635
|
+
var templateObject_1$1l;
|
|
2636
2636
|
|
|
2637
|
-
var StyledTextInputWrapper$1 = styled__default.default(OakFlex)(templateObject_3$
|
|
2638
|
-
return !props.$disabled && styled.css(templateObject_1$
|
|
2637
|
+
var StyledTextInputWrapper$1 = styled__default.default(OakFlex)(templateObject_3$r || (templateObject_3$r = tslib.__makeTemplateObject(["\n &:hover {\n cursor: text;\n }\n\n background: ", ";\n\n &:focus-within {\n border-color: ", ";\n background: ", ";\n }\n\n ", "\n\n ", "\n"], ["\n &:hover {\n cursor: text;\n }\n\n background: ", ";\n\n &:focus-within {\n border-color: ", ";\n background: ", ";\n }\n\n ", "\n\n ", "\n"])), function (props) { return parseColor(props.$background); }, function (props) { return parseColor(props.$focusBorderColor); }, function (props) { return parseColor(props.$focusBackgroundColor); }, function (props) {
|
|
2638
|
+
return !props.$disabled && styled.css(templateObject_1$1k || (templateObject_1$1k = tslib.__makeTemplateObject(["\n @media (hover: hover) {\n &:hover:not(:focus-within) {\n background: ", ";\n border-color: ", ";\n }\n }\n "], ["\n @media (hover: hover) {\n &:hover:not(:focus-within) {\n background: ", ";\n border-color: ", ";\n }\n }\n "])), parseColor(props.$hoverBackground), parseColor(props.$hoverBorderColor));
|
|
2639
2639
|
}, function (props) {
|
|
2640
|
-
return props.$disabled && styled.css(templateObject_2$
|
|
2640
|
+
return props.$disabled && styled.css(templateObject_2$D || (templateObject_2$D = tslib.__makeTemplateObject(["\n background: ", ";\n border-color: ", ";\n color: ", ";\n &:hover {\n cursor: not-allowed;\n }\n "], ["\n background: ", ";\n border-color: ", ";\n color: ", ";\n &:hover {\n cursor: not-allowed;\n }\n "])), parseColor(props.$disabledBackgroundColor), parseColor(props.$disabledBorderColor), parseColor(props.$disabledColor));
|
|
2641
2641
|
});
|
|
2642
2642
|
/**
|
|
2643
2643
|
* Default input which can be extended to create specialised inputs.
|
|
@@ -2650,7 +2650,7 @@ var OakFormInput = function (_a) {
|
|
|
2650
2650
|
} },
|
|
2651
2651
|
React__default.default.createElement(InternalTextInput, tslib.__assign({ type: type, "$width": "100%", "aria-invalid": invalid }, props))));
|
|
2652
2652
|
};
|
|
2653
|
-
var templateObject_1$
|
|
2653
|
+
var templateObject_1$1k, templateObject_2$D, templateObject_3$r;
|
|
2654
2654
|
|
|
2655
2655
|
var OakJauntyAngleLabel = function (props) {
|
|
2656
2656
|
var label = props.label, oakBoxProps = tslib.__rest(props, ["label"]);
|
|
@@ -2675,14 +2675,14 @@ function getInternalPadding(height) {
|
|
|
2675
2675
|
return "".concat(Math.min(padding, MAX_PADDING), "px");
|
|
2676
2676
|
}
|
|
2677
2677
|
|
|
2678
|
-
var gridStyle = styled.css(templateObject_1$
|
|
2678
|
+
var gridStyle = styled.css(templateObject_1$1j || (templateObject_1$1j = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("row-gap", function (props) { return props.$rg; }, parseSpacing), responsiveStyle("column-gap", function (props) { return props.$cg; }, parseSpacing), responsiveStyle("grid-auto-rows", function (props) { return props.$gridAutoRows; }), responsiveStyle("grid-template-areas", function (props) { return props.$gridTemplateAreas; }), responsiveStyle("grid-template-columns", function (props) { return props.$gridTemplateColumns; }), responsiveStyle("grid-template-rows", function (props) { return props.$gridTemplateRows; }));
|
|
2679
2679
|
/**
|
|
2680
2680
|
* Creates a grid layout
|
|
2681
2681
|
*
|
|
2682
2682
|
* Defaults to a 12 column grid
|
|
2683
2683
|
*/
|
|
2684
|
-
var OakGrid = styled__default.default(OakBox)(templateObject_2$
|
|
2685
|
-
var templateObject_1$
|
|
2684
|
+
var OakGrid = styled__default.default(OakBox)(templateObject_2$C || (templateObject_2$C = tslib.__makeTemplateObject(["\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n width: 100%;\n\n ", ";\n"], ["\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n width: 100%;\n\n ", ";\n"])), gridStyle);
|
|
2685
|
+
var templateObject_1$1j, templateObject_2$C;
|
|
2686
2686
|
|
|
2687
2687
|
var combineSpanStart = function (start, span) {
|
|
2688
2688
|
return start ? "".concat(start, "/").concat(span) : "".concat(span);
|
|
@@ -2695,7 +2695,7 @@ var parseSpanStart = function (value) {
|
|
|
2695
2695
|
var span = value;
|
|
2696
2696
|
return "span ".concat(span);
|
|
2697
2697
|
};
|
|
2698
|
-
var gridArea = styled.css(templateObject_1$
|
|
2698
|
+
var gridArea = styled.css(templateObject_1$1i || (templateObject_1$1i = tslib.__makeTemplateObject(["\n flex-direction: column;\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n ", "\n ", "\n"], ["\n flex-direction: column;\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n ", "\n ", "\n"])), responsiveStyle("grid-column", function (props) {
|
|
2699
2699
|
return Array.isArray(props.$colSpan)
|
|
2700
2700
|
? props.$colSpan.map(function (span, index) {
|
|
2701
2701
|
return combineSpanStart(Array.isArray(props.$colStart)
|
|
@@ -2726,8 +2726,8 @@ var gridArea = styled.css(templateObject_1$1k || (templateObject_1$1k = tslib.__
|
|
|
2726
2726
|
* - Column and row arrangements are achieved through $colSpan, $rowSpan, $colStart, $colEnd, $rowStart, $rowEnd
|
|
2727
2727
|
*
|
|
2728
2728
|
*/
|
|
2729
|
-
var OakGridArea = styled__default.default(OakFlex)(templateObject_2$
|
|
2730
|
-
var templateObject_1$
|
|
2729
|
+
var OakGridArea = styled__default.default(OakFlex)(templateObject_2$B || (templateObject_2$B = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), gridArea);
|
|
2730
|
+
var templateObject_1$1i, templateObject_2$B;
|
|
2731
2731
|
|
|
2732
2732
|
var useMediaQuery = function (device) {
|
|
2733
2733
|
var _a = tslib.__read(React.useState(false), 2), matches = _a[0], setMatches = _a[1];
|
|
@@ -2777,10 +2777,10 @@ var useBreakpoint = function () {
|
|
|
2777
2777
|
return value;
|
|
2778
2778
|
};
|
|
2779
2779
|
|
|
2780
|
-
var StyledOakTextArea = styled__default.default(OakTextArea)(templateObject_1$
|
|
2780
|
+
var StyledOakTextArea = styled__default.default(OakTextArea)(templateObject_1$1h || (templateObject_1$1h = tslib.__makeTemplateObject(["\n &:focus-visible {\n border-color: ", ";\n }\n\n &:hover {\n background: ", ";\n border-color: ", ";\n }\n\n ::placeholder {\n color: ", ";\n }\n"], ["\n &:focus-visible {\n border-color: ", ";\n }\n\n &:hover {\n background: ", ";\n border-color: ", ";\n }\n\n ::placeholder {\n color: ", ";\n }\n"])), parseColor("border-primary"), parseColor("bg-btn-secondary-hover"), function (props) {
|
|
2781
2781
|
return props.disabled ? "" : parseColor("border-neutral");
|
|
2782
2782
|
}, parseColor("text-subdued"));
|
|
2783
|
-
var UnstyledComponent$
|
|
2783
|
+
var UnstyledComponent$3 = React.forwardRef(function (_a, ref) {
|
|
2784
2784
|
var _b;
|
|
2785
2785
|
var charLimit = _a.charLimit, placeholder = _a.placeholder, disabled = _a.disabled, errors = _a.errors, ariaLabel = _a.ariaLabel, value = _a.value, initialValue = _a.initialValue, onChange = _a.onChange, onBlur = _a.onBlur, onFocus = _a.onFocus, label = _a.label, id = _a.id, name = _a.name, _c = _a.$height, $height = _c === void 0 ? ["spacing-240", "spacing-80", "spacing-56"] : _c, _d = _a.$overflowX, $overflowX = _d === void 0 ? [null, null, "auto"] : _d, _e = _a.$overflowY, $overflowY = _e === void 0 ? ["auto", "auto", null] : _e, _f = _a.$whiteSpace, $whiteSpace = _f === void 0 ? ["wrap", "wrap", "nowrap"] : _f, textAreaProps = tslib.__rest(_a, ["charLimit", "placeholder", "disabled", "errors", "ariaLabel", "value", "initialValue", "onChange", "onBlur", "onFocus", "label", "id", "name", "$height", "$overflowX", "$overflowY", "$whiteSpace"]);
|
|
2786
2786
|
var _g = tslib.__read(React.useState(false), 2), showCharCount = _g[0], setShowCharCount = _g[1];
|
|
@@ -2839,7 +2839,7 @@ var UnstyledComponent$4 = React.forwardRef(function (_a, ref) {
|
|
|
2839
2839
|
* - Current method of clearing the component is to reset its key in the parent component
|
|
2840
2840
|
* - useImperativeHandle could be used to expose a clear method
|
|
2841
2841
|
*/
|
|
2842
|
-
var OakMultilineText = UnstyledComponent$
|
|
2842
|
+
var OakMultilineText = UnstyledComponent$3;
|
|
2843
2843
|
// TODO use common hook when implemented
|
|
2844
2844
|
function useDevice(values) {
|
|
2845
2845
|
var isDesktop = useMediaQuery("desktop");
|
|
@@ -2855,9 +2855,9 @@ function useDevice(values) {
|
|
|
2855
2855
|
}
|
|
2856
2856
|
return values;
|
|
2857
2857
|
}
|
|
2858
|
-
var templateObject_1$
|
|
2858
|
+
var templateObject_1$1h;
|
|
2859
2859
|
|
|
2860
|
-
var DisplayContentsLegend = styled__default.default("legend")(templateObject_1$
|
|
2860
|
+
var DisplayContentsLegend = styled__default.default("legend")(templateObject_1$1g || (templateObject_1$1g = tslib.__makeTemplateObject(["\n display: contents;\n"], ["\n display: contents;\n"])));
|
|
2861
2861
|
var RadioContext = React.createContext({
|
|
2862
2862
|
currentValue: "default",
|
|
2863
2863
|
name: "default",
|
|
@@ -2892,7 +2892,7 @@ var OakRadioGroup = function (props) {
|
|
|
2892
2892
|
onValueUpdated: handleValueUpdated,
|
|
2893
2893
|
} }, children)));
|
|
2894
2894
|
};
|
|
2895
|
-
var templateObject_1$
|
|
2895
|
+
var templateObject_1$1g;
|
|
2896
2896
|
|
|
2897
2897
|
var BaseRadio = React.forwardRef(function (props, ref) {
|
|
2898
2898
|
var onHovered = props.onHovered, rest = tslib.__rest(props, ["onHovered"]);
|
|
@@ -2951,26 +2951,26 @@ var internalRadioDefaults = {
|
|
|
2951
2951
|
var InternalRadio = styled__default.default(BaseRadio).attrs(function (_a) {
|
|
2952
2952
|
_a.theme; var props = tslib.__rest(_a, ["theme"]);
|
|
2953
2953
|
return (tslib.__assign(tslib.__assign({}, internalRadioDefaults), props));
|
|
2954
|
-
})(templateObject_2$
|
|
2954
|
+
})(templateObject_2$A || (templateObject_2$A = tslib.__makeTemplateObject(["\n /* removing default appearance */\n -webkit-appearance: none;\n appearance: none;\n cursor: pointer;\n margin: 0;\n outline: none;\n ", "\n ", "\n ", "\n ", "\n\n border-color: ", ";\n\n &:checked {\n ", ";\n }\n\n &:disabled {\n pointer-events: none;\n }\n\n @media (hover: hover) {\n &:hover:not(:disabled) {\n border-color: ", ";\n }\n }\n"], ["\n /* removing default appearance */\n -webkit-appearance: none;\n appearance: none;\n cursor: pointer;\n margin: 0;\n outline: none;\n ", "\n ", "\n ", "\n ", "\n\n border-color: ", ";\n\n &:checked {\n ", ";\n }\n\n &:disabled {\n pointer-events: none;\n }\n\n @media (hover: hover) {\n &:hover:not(:disabled) {\n border-color: ", ";\n }\n }\n"])), borderStyle, colorStyle, spacingStyle, sizeStyle, function (props) { return parseColor(props.$uncheckedBorderColor); }, function (props) { return styled.css(templateObject_1$1f || (templateObject_1$1f = tslib.__makeTemplateObject(["\n background: ", ";\n border-color: ", ";\n "], ["\n background: ", ";\n border-color: ", ";\n "])), parseColor(props.$checkedBackground), parseColor(props.$checkedBorderColor)); }, function (props) { return parseColor(props.$checkedBackground); });
|
|
2955
2955
|
var internalRadioHoverDefaults = {
|
|
2956
2956
|
$hoverBorderRadius: "border-radius-xs",
|
|
2957
2957
|
};
|
|
2958
2958
|
var InternalRadioHover = styled__default.default(InternalRadio).attrs(function (_a) {
|
|
2959
2959
|
_a.theme; var props = tslib.__rest(_a, ["theme"]);
|
|
2960
2960
|
return (tslib.__assign(tslib.__assign({}, internalRadioHoverDefaults), props));
|
|
2961
|
-
})(templateObject_3$
|
|
2962
|
-
var focusStyle = styled.css(templateObject_4$
|
|
2963
|
-
styled__default.default(InternalRadio)(templateObject_5$
|
|
2961
|
+
})(templateObject_3$q || (templateObject_3$q = tslib.__makeTemplateObject(["\n /* @media wrapper is required to prevent hover effect on iOS Safari */\n\n @media (hover: hover) {\n &:hover:not(&:checked):not(&:disabled)::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n width: 60%;\n height: 60%;\n transform: translate(-50%, -50%);\n border-radius: ", ";\n background: ", ";\n }\n }\n"], ["\n /* @media wrapper is required to prevent hover effect on iOS Safari */\n\n @media (hover: hover) {\n &:hover:not(&:checked):not(&:disabled)::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n width: 60%;\n height: 60%;\n transform: translate(-50%, -50%);\n border-radius: ", ";\n background: ", ";\n }\n }\n"])), function (props) { return parseBorderRadius(props.$hoverBorderRadius); }, function (props) { return parseColor(props.$checkedBackground); });
|
|
2962
|
+
var focusStyle = styled.css(templateObject_4$f || (templateObject_4$f = tslib.__makeTemplateObject(["\n &:focus-visible {\n box-shadow: ", ";\n }\n"], ["\n &:focus-visible {\n box-shadow: ", ";\n }\n"])), parseDropShadow("drop-shadow-centered-lemon"));
|
|
2963
|
+
styled__default.default(InternalRadio)(templateObject_5$a || (templateObject_5$a = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), focusStyle);
|
|
2964
2964
|
styled__default.default(InternalRadioHover)(templateObject_6$8 || (templateObject_6$8 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), focusStyle);
|
|
2965
|
-
var templateObject_1$
|
|
2965
|
+
var templateObject_1$1f, templateObject_2$A, templateObject_3$q, templateObject_4$f, templateObject_5$a, templateObject_6$8;
|
|
2966
2966
|
|
|
2967
2967
|
// Extracted from <./src/components/molecules/OakRadioButton/OakRadioButton.tsx>
|
|
2968
|
-
var VisibleRadioButtonInput = styled__default.default(OakFlex)(templateObject_2$
|
|
2969
|
-
return !props.$disableFocusRing && styled.css(templateObject_1$
|
|
2968
|
+
var VisibleRadioButtonInput = styled__default.default(OakFlex)(templateObject_2$z || (templateObject_2$z = tslib.__makeTemplateObject(["\n border-radius: 50%;\n\n ", "\n\n ", ":checked ~ &::after {\n content: \"\";\n height: ", ";\n width: ", ";\n background: ", ";\n position: absolute;\n border-radius: 50%;\n border: ", " ", ";\n }\n"], ["\n border-radius: 50%;\n\n ", "\n\n ", ":checked ~ &::after {\n content: \"\";\n height: ", ";\n width: ", ";\n background: ", ";\n position: absolute;\n border-radius: 50%;\n border: ", " ", ";\n }\n"])), function (props) {
|
|
2969
|
+
return !props.$disableFocusRing && styled.css(templateObject_1$1e || (templateObject_1$1e = tslib.__makeTemplateObject(["\n ", ":focus-visible ~ &::before {\n content: \"\";\n height: ", ";\n width: ", ";\n background: transparent;\n display: block;\n position: absolute;\n border-radius: 50%;\n border: ", "\n ", ";\n box-shadow: inset 0 0 0 0.13rem ", ";\n }\n "], ["\n ", ":focus-visible ~ &::before {\n content: \"\";\n height: ", ";\n width: ", ";\n background: transparent;\n display: block;\n position: absolute;\n border-radius: 50%;\n border: ", "\n ", ";\n box-shadow: inset 0 0 0 0.13rem ", ";\n }\n "])), InternalRadio, parseSpacing("spacing-32"), parseSpacing("spacing-32"), parseBorder("border-solid-m"), parseColor("border-neutral-stronger"), parseColor("bg-decorative5-main"));
|
|
2970
2970
|
}, InternalRadio, function (props) { return parseSpacing(props.$radioInnerSize); }, function (props) { return parseSpacing(props.$radioInnerSize); }, parseColor("bg-inverted"), parseBorder("border-solid-m"), parseColor("border-inverted"));
|
|
2971
2971
|
// Extracted from <./src/components/molecules/OakRadioButton/OakRadioButton.tsx>
|
|
2972
2972
|
// This is a hack to force React to rerender when the disabled prop is changed. Otherwise the pseudo element is not updated.
|
|
2973
|
-
var DisabledVisibleRadioButtonInput = styled__default.default(VisibleRadioButtonInput)(templateObject_3$
|
|
2973
|
+
var DisabledVisibleRadioButtonInput = styled__default.default(VisibleRadioButtonInput)(templateObject_3$p || (templateObject_3$p = tslib.__makeTemplateObject(["\n ", ":checked ~ &::after {\n content: \"\";\n height: ", ";\n width: ", ";\n background: ", ";\n position: absolute;\n border-radius: 50%;\n border: ", " ", ";\n }\n"], ["\n ", ":checked ~ &::after {\n content: \"\";\n height: ", ";\n width: ", ";\n background: ", ";\n position: absolute;\n border-radius: 50%;\n border: ", " ", ";\n }\n"])), InternalRadio, function (props) { return parseSpacing(props.$radioInnerSize); }, function (props) { return parseSpacing(props.$radioInnerSize); }, parseColor("bg-btn-primary-disabled"), parseBorder("border-solid-m"), parseColor("border-inverted"));
|
|
2974
2974
|
/**
|
|
2975
2975
|
*
|
|
2976
2976
|
* This component is a wrapper for the InternalRadio component. It allows for customisable icons.
|
|
@@ -2988,10 +2988,10 @@ var InternalRadioWrapper = function (props) {
|
|
|
2988
2988
|
internalRadio,
|
|
2989
2989
|
!disabled ? (React__default.default.createElement(VisibleRadioButtonInput, { "$height": radioOuterSize, "$width": radioOuterSize, "$ba": finalRadioBorderWidth, "$borderColor": radioBorderColor, "$flexGrow": 0, "$flexShrink": 0, "$alignItems": "center", "$justifyContent": "center", "$background": radioBackground, "$disableFocusRing": !!disableFocusRing, "$radioInnerSize": radioInnerSize, "$position": "absolute", "$top": "spacing-0", "$left": "spacing-0" })) : (React__default.default.createElement(DisabledVisibleRadioButtonInput, { "$height": radioOuterSize, "$width": radioOuterSize, "$ba": finalRadioBorderWidth, "$borderColor": "bg-btn-primary-disabled", "$flexGrow": 0, "$flexShrink": 0, "$alignItems": "center", "$justifyContent": "center", "$background": radioBackground, "$disableFocusRing": !!disableFocusRing, "$radioInnerSize": radioInnerSize, "$position": "absolute", "$top": "spacing-0", "$left": "spacing-0" }))));
|
|
2990
2990
|
};
|
|
2991
|
-
var templateObject_1$
|
|
2991
|
+
var templateObject_1$1e, templateObject_2$z, templateObject_3$p;
|
|
2992
2992
|
|
|
2993
|
-
var RadioButtonLabel = styled__default.default(OakLabel)(templateObject_2$
|
|
2994
|
-
return !props.disabled && styled.css(templateObject_1$
|
|
2993
|
+
var RadioButtonLabel = styled__default.default(OakLabel)(templateObject_2$y || (templateObject_2$y = tslib.__makeTemplateObject(["\n ", "\n\n display: flex;\n ", "\n ", "\n"], ["\n ", "\n\n display: flex;\n ", "\n ", "\n"])), function (props) {
|
|
2994
|
+
return !props.disabled && styled.css(templateObject_1$1d || (templateObject_1$1d = tslib.__makeTemplateObject(["\n cursor: pointer;\n "], ["\n cursor: pointer;\n "])));
|
|
2995
2995
|
}, responsiveStyle("gap", function (props) { return props.$labelGap; }, parseSpacing), responsiveStyle("align-items", function (props) { return props.$labelAlignItems; }));
|
|
2996
2996
|
/**
|
|
2997
2997
|
* A radio button component.
|
|
@@ -3007,7 +3007,7 @@ var OakRadioButton = React.forwardRef(function (props, ref) {
|
|
|
3007
3007
|
React__default.default.createElement(InternalRadioWrapper, { disabled: anyDisabled, checked: value === radioContext.currentValue, disableFocusRing: disableFocusRing, radioInnerSize: radioInnerSize, radioOuterSize: radioOuterSize, radioBorderWidth: radioBorderWidth, size: radioOuterSize, radioBackground: radioBackground, checkedRadioBorderWidth: checkedRadioBorderWidth, internalRadio: React__default.default.createElement(InternalRadio, tslib.__assign({ id: id, ref: ref, name: radioContext.name, disabled: anyDisabled, value: value, checked: value === radioContext.currentValue, onChange: radioContext.onValueUpdated, "$ba": "border-solid-none" }, rest)) }),
|
|
3008
3008
|
label)));
|
|
3009
3009
|
});
|
|
3010
|
-
var templateObject_1$
|
|
3010
|
+
var templateObject_1$1d, templateObject_2$y;
|
|
3011
3011
|
|
|
3012
3012
|
/**
|
|
3013
3013
|
*
|
|
@@ -3028,22 +3028,22 @@ var OakSecondaryButtonAsRadio = function (_a) {
|
|
|
3028
3028
|
return checked ? (React__default.default.createElement(OakPrimaryButton, { role: "radio", "aria-checked": checked }, children)) : (React__default.default.createElement(OakSecondaryButton, { role: "radio", "aria-checked": checked, onClick: function () { return onValueUpdated === null || onValueUpdated === void 0 ? void 0 : onValueUpdated(value); } }, children));
|
|
3029
3029
|
};
|
|
3030
3030
|
|
|
3031
|
-
var NativeSelect = styled__default.default("select")(templateObject_4$
|
|
3032
|
-
return !props.$readOnly && styled.css(templateObject_1$
|
|
3031
|
+
var NativeSelect = styled__default.default("select")(templateObject_4$e || (templateObject_4$e = tslib.__makeTemplateObject(["\n border: none;\n outline: none;\n width: 100%;\n\n appearance: none;\n appearance: base-select;\n\n ", "\n\n ", "\n\n ", "\n\n border-radius: ", ";\n\n &:focus {\n box-shadow: ", ";\n }\n\n &::picker(select) {\n appearance: none;\n appearance: base-select;\n border-bottom-left-radius: ", ";\n border-bottom-right-radius: ", ";\n overflow: visible;\n ", ";\n ", ";\n border-top: none;\n }\n\n ::picker(select) {\n top: calc(anchor(bottom) - 2px);\n left: anchor(0);\n }\n\n ::picker-icon {\n display: none;\n }\n\n ", ";\n ", ";\n ", ";\n\n &:open {\n border-bottom-left-radius: 0px;\n border-bottom-right-radius: 0px;\n\n ::picker(select) {\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n }\n }\n"], ["\n border: none;\n outline: none;\n width: 100%;\n\n appearance: none;\n appearance: base-select;\n\n ", "\n\n ", "\n\n ", "\n\n border-radius: ", ";\n\n &:focus {\n box-shadow: ", ";\n }\n\n &::picker(select) {\n appearance: none;\n appearance: base-select;\n border-bottom-left-radius: ", ";\n border-bottom-right-radius: ", ";\n overflow: visible;\n ", ";\n ", ";\n border-top: none;\n }\n\n ::picker(select) {\n top: calc(anchor(bottom) - 2px);\n left: anchor(0);\n }\n\n ::picker-icon {\n display: none;\n }\n\n ", ";\n ", ";\n ", ";\n\n &:open {\n border-bottom-left-radius: 0px;\n border-bottom-right-radius: 0px;\n\n ::picker(select) {\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n }\n }\n"])), function (props) {
|
|
3032
|
+
return !props.$readOnly && styled.css(templateObject_1$1c || (templateObject_1$1c = tslib.__makeTemplateObject(["\n @media (hover: hover) {\n &:hover:not(:focus-within) {\n background: ", ";\n }\n }\n "], ["\n @media (hover: hover) {\n &:hover:not(:focus-within) {\n background: ", ";\n }\n }\n "])), parseColor(props.$hoverBackground));
|
|
3033
3033
|
}, function (props) {
|
|
3034
|
-
return props.$readOnly && styled.css(templateObject_2$
|
|
3034
|
+
return props.$readOnly && styled.css(templateObject_2$x || (templateObject_2$x = tslib.__makeTemplateObject(["\n border-color: ", ";\n color: ", ";\n "], ["\n border-color: ", ";\n color: ", ";\n "])), parseColor(props.$readOnlyBorderColor), parseColor(props.$readOnlyColor));
|
|
3035
3035
|
}, function (props) {
|
|
3036
|
-
return props.$disabled && styled.css(templateObject_3$
|
|
3036
|
+
return props.$disabled && styled.css(templateObject_3$o || (templateObject_3$o = tslib.__makeTemplateObject(["\n background: ", ";\n color: ", ";\n &:hover {\n cursor: not-allowed;\n }\n "], ["\n background: ", ";\n color: ", ";\n &:hover {\n cursor: not-allowed;\n }\n "])), parseColor(props.$disabledBackgroundColor), parseColor(props.$disabledColor));
|
|
3037
3037
|
}, parseBorderRadius("border-radius-s"), function (props) {
|
|
3038
3038
|
return props.$focusRingDropShadows
|
|
3039
3039
|
.map(function (dropShadow) { return parseDropShadow(dropShadow); })
|
|
3040
3040
|
.join(",");
|
|
3041
3041
|
}, parseBorderRadius("border-radius-s"), parseBorderRadius("border-radius-s"), borderStyle, colorStyle, paddingStyle, borderStyle, colorStyle);
|
|
3042
|
-
var templateObject_1$
|
|
3042
|
+
var templateObject_1$1c, templateObject_2$x, templateObject_3$o, templateObject_4$e;
|
|
3043
3043
|
|
|
3044
|
-
var IconUp = styled__default.default(OakFlex)(templateObject_1$
|
|
3045
|
-
var IconDown = styled__default.default(OakFlex)(templateObject_2$
|
|
3046
|
-
var StyledWrapper = styled__default.default(OakFlex)(templateObject_3$
|
|
3044
|
+
var IconUp = styled__default.default(OakFlex)(templateObject_1$1b || (templateObject_1$1b = tslib.__makeTemplateObject(["\n user-select: none;\n"], ["\n user-select: none;\n"])));
|
|
3045
|
+
var IconDown = styled__default.default(OakFlex)(templateObject_2$w || (templateObject_2$w = tslib.__makeTemplateObject(["\n user-select: none;\n"], ["\n user-select: none;\n"])));
|
|
3046
|
+
var StyledWrapper = styled__default.default(OakFlex)(templateObject_3$n || (templateObject_3$n = tslib.__makeTemplateObject(["\n select ~ ", " {\n display: block;\n }\n\n select:open ~ ", " {\n display: none;\n }\n\n select ~ ", " {\n display: none;\n }\n\n select:open ~ ", " {\n display: block;\n }\n"], ["\n select ~ ", " {\n display: block;\n }\n\n select:open ~ ", " {\n display: none;\n }\n\n select ~ ", " {\n display: none;\n }\n\n select:open ~ ", " {\n display: block;\n }\n"])), IconDown, IconDown, IconUp, IconUp);
|
|
3047
3047
|
function OakSelect(_a) {
|
|
3048
3048
|
var id = _a.id, _b = _a.borderColor, borderColor = _b === void 0 ? "border-primary" : _b, _c = _a.readOnlyBorderColor, readOnlyBorderColor = _c === void 0 ? "border-neutral" : _c, _d = _a.focusRingDropShadows, focusRingDropShadows = _d === void 0 ? [
|
|
3049
3049
|
"drop-shadow-centered-lemon",
|
|
@@ -3072,12 +3072,12 @@ function OakSelect(_a) {
|
|
|
3072
3072
|
React__default.default.createElement(IconDown, { "$position": "absolute", "$top": "spacing-0", "$bottom": "spacing-0", "$right": "spacing-12", "$pointerEvents": "none", "$alignContent": "center" },
|
|
3073
3073
|
React__default.default.createElement(OakIcon, { iconName: "chevron-down" }))));
|
|
3074
3074
|
}
|
|
3075
|
-
var templateObject_1$
|
|
3075
|
+
var templateObject_1$1b, templateObject_2$w, templateObject_3$n;
|
|
3076
3076
|
|
|
3077
|
-
var NativeOptGroup = styled__default.default("optgroup")(templateObject_1$
|
|
3078
|
-
var templateObject_1$
|
|
3077
|
+
var NativeOptGroup = styled__default.default("optgroup")(templateObject_1$1a || (templateObject_1$1a = tslib.__makeTemplateObject([""], [""])));
|
|
3078
|
+
var templateObject_1$1a;
|
|
3079
3079
|
|
|
3080
|
-
var NativeOption = styled__default.default("option")(templateObject_1$
|
|
3080
|
+
var NativeOption = styled__default.default("option")(templateObject_1$19 || (templateObject_1$19 = tslib.__makeTemplateObject(["\n cursor: pointer;\n border: none;\n color: ", ";\n outline: none;\n font: ", ";\n font-weight: ", ";\n border-radius: ", ";\n\n &:focus {\n box-shadow: ", ";\n }\n\n &:disabled {\n background: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n\n &:active:not(:disabled) {\n background: initial;\n }\n\n &::checkmark {\n display: none;\n }\n\n ", " & {\n padding-left: ", ";\n }\n\n ", ";\n ", ";\n"], ["\n cursor: pointer;\n border: none;\n color: ", ";\n outline: none;\n font: ", ";\n font-weight: ", ";\n border-radius: ", ";\n\n &:focus {\n box-shadow: ", ";\n }\n\n &:disabled {\n background: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n\n &:active:not(:disabled) {\n background: initial;\n }\n\n &::checkmark {\n display: none;\n }\n\n ", " & {\n padding-left: ", ";\n }\n\n ", ";\n ", ";\n"])), parseColor("text-primary"), function (props) {
|
|
3081
3081
|
return parseFontSize(props.$asDefault ? "body-2" : "body-2-bold");
|
|
3082
3082
|
}, function (props) {
|
|
3083
3083
|
return parseFontWeight(props.$asDefault ? "body-2" : "body-2-bold");
|
|
@@ -3085,7 +3085,7 @@ var NativeOption = styled__default.default("option")(templateObject_1$1b || (tem
|
|
|
3085
3085
|
var _a, _b;
|
|
3086
3086
|
return (_b = (_a = props.$focusRingDropShadows) === null || _a === void 0 ? void 0 : _a.map(function (dropShadow) { return parseDropShadow(dropShadow); }).join(",")) !== null && _b !== void 0 ? _b : "none";
|
|
3087
3087
|
}, parseColor("bg-neutral-stronger"), parseColor("text-subdued"), NativeOptGroup, parseSpacing("spacing-32"), paddingStyle, colorStyle);
|
|
3088
|
-
var templateObject_1$
|
|
3088
|
+
var templateObject_1$19;
|
|
3089
3089
|
|
|
3090
3090
|
function OakOption(_a) {
|
|
3091
3091
|
var selected = _a.selected, disabled = _a.disabled, value = _a.value, children = _a.children, asDefault = _a.asDefault, _b = _a.$focusRingDropShadows, $focusRingDropShadows = _b === void 0 ? [
|
|
@@ -3095,8 +3095,8 @@ function OakOption(_a) {
|
|
|
3095
3095
|
return (React__default.default.createElement(NativeOption, { "$asDefault": asDefault, value: value, disabled: disabled, selected: selected, "$ph": "spacing-16", "$pv": "spacing-8", "$focusRingDropShadows": $focusRingDropShadows }, children));
|
|
3096
3096
|
}
|
|
3097
3097
|
|
|
3098
|
-
var NativeLegend = styled__default.default("legend")(templateObject_1$
|
|
3099
|
-
var templateObject_1$
|
|
3098
|
+
var NativeLegend = styled__default.default("legend")(templateObject_1$18 || (templateObject_1$18 = tslib.__makeTemplateObject(["\n cursor: pointer;\n border: none;\n color: ", ";\n\n &::checkmark {\n display: none;\n }\n\n ", ";\n"], ["\n cursor: pointer;\n border: none;\n color: ", ";\n\n &::checkmark {\n display: none;\n }\n\n ", ";\n"])), parseColor("text-subdued"), paddingStyle);
|
|
3099
|
+
var templateObject_1$18;
|
|
3100
3100
|
|
|
3101
3101
|
function OakOptGroup(_a) {
|
|
3102
3102
|
var label = _a.label, children = _a.children;
|
|
@@ -3105,16 +3105,16 @@ function OakOptGroup(_a) {
|
|
|
3105
3105
|
children));
|
|
3106
3106
|
}
|
|
3107
3107
|
|
|
3108
|
-
var StyledTextInputWrapper = styled__default.default(OakFlex)(templateObject_4$
|
|
3108
|
+
var StyledTextInputWrapper = styled__default.default(OakFlex)(templateObject_4$d || (templateObject_4$d = tslib.__makeTemplateObject(["\n &:hover {\n cursor: text;\n }\n\n &:focus-within {\n box-shadow: ", ";\n }\n\n background: ", ";\n\n ", "\n\n ", "\n\n ", "\n"], ["\n &:hover {\n cursor: text;\n }\n\n &:focus-within {\n box-shadow: ", ";\n }\n\n background: ", ";\n\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
3109
3109
|
return props.$focusRingDropShadows
|
|
3110
3110
|
.map(function (dropShadow) { return parseDropShadow(dropShadow); })
|
|
3111
3111
|
.join(",");
|
|
3112
3112
|
}, function (props) { return parseColor(props.$background); }, function (props) {
|
|
3113
|
-
return !props.$readOnly && styled.css(templateObject_1$
|
|
3113
|
+
return !props.$readOnly && styled.css(templateObject_1$17 || (templateObject_1$17 = tslib.__makeTemplateObject(["\n @media (hover: hover) {\n &:hover:not(:focus-within) {\n background: ", ";\n }\n }\n "], ["\n @media (hover: hover) {\n &:hover:not(:focus-within) {\n background: ", ";\n }\n }\n "])), parseColor(props.$hoverBackground));
|
|
3114
3114
|
}, function (props) {
|
|
3115
|
-
return props.$readOnly && styled.css(templateObject_2$
|
|
3115
|
+
return props.$readOnly && styled.css(templateObject_2$v || (templateObject_2$v = tslib.__makeTemplateObject(["\n border-color: ", ";\n color: ", ";\n "], ["\n border-color: ", ";\n color: ", ";\n "])), parseColor(props.$readOnlyBorderColor), parseColor(props.$readOnlyColor));
|
|
3116
3116
|
}, function (props) {
|
|
3117
|
-
return props.$disabled && styled.css(templateObject_3$
|
|
3117
|
+
return props.$disabled && styled.css(templateObject_3$m || (templateObject_3$m = tslib.__makeTemplateObject(["\n background: ", ";\n color: ", ";\n &:hover {\n cursor: not-allowed;\n }\n "], ["\n background: ", ";\n color: ", ";\n &:hover {\n cursor: not-allowed;\n }\n "])), parseColor(props.$disabledBackgroundColor), parseColor(props.$disabledColor));
|
|
3118
3118
|
});
|
|
3119
3119
|
/**
|
|
3120
3120
|
* Default input which can be extended to create specialised inputs.
|
|
@@ -3152,7 +3152,7 @@ var OakTextInput = function (_a) {
|
|
|
3152
3152
|
React__default.default.createElement(InternalTextInput, tslib.__assign({ type: type, "$width": "100%", "$pv": "spacing-20", "$height": "spacing-72" }, props))),
|
|
3153
3153
|
isTrailingIcon && iconName && (React__default.default.createElement(OakIcon, { iconName: iconName, "$colorFilter": finalIconColor, "$pointerEvents": "none", "$width": "spacing-32", alt: iconAlt }))));
|
|
3154
3154
|
};
|
|
3155
|
-
var templateObject_1$
|
|
3155
|
+
var templateObject_1$17, templateObject_2$v, templateObject_3$m, templateObject_4$d;
|
|
3156
3156
|
|
|
3157
3157
|
var colorSchemes = [
|
|
3158
3158
|
"primary",
|
|
@@ -3165,8 +3165,8 @@ var colorSchemes = [
|
|
|
3165
3165
|
"transparent",
|
|
3166
3166
|
];
|
|
3167
3167
|
// Converted to styled-component so it can be used in '&:checked:not(:disabled) + ${StyledOakIcon}' to change svg color.
|
|
3168
|
-
var StyledOakIcon$2 = styled__default.default(OakIcon)(templateObject_1$
|
|
3169
|
-
var StyledFlexBox$2 = styled__default.default(OakFlex)(templateObject_2$
|
|
3168
|
+
var StyledOakIcon$2 = styled__default.default(OakIcon)(templateObject_1$16 || (templateObject_1$16 = tslib.__makeTemplateObject([""], [""])));
|
|
3169
|
+
var StyledFlexBox$2 = styled__default.default(OakFlex)(templateObject_2$u || (templateObject_2$u = tslib.__makeTemplateObject(["\n cursor: pointer;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n\n &:hover:has(input:not(:disabled)) ", " {\n text-decoration: underline;\n }\n\n &:hover:has(input:not(:disabled)) {\n background-color: ", ";\n }\n\n &:focus-within {\n box-shadow:\n ", ",\n ", ";\n }\n\n ", " {\n filter: ", ";\n }\n\n &:has(input:checked:not(:disabled)) {\n background-color: ", ";\n color: ", ";\n border-color: transparent;\n\n ", " {\n filter: ", ";\n }\n }\n"], ["\n cursor: pointer;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n\n &:hover:has(input:not(:disabled)) ", " {\n text-decoration: underline;\n }\n\n &:hover:has(input:not(:disabled)) {\n background-color: ", ";\n }\n\n &:focus-within {\n box-shadow:\n ", ",\n ", ";\n }\n\n ", " {\n filter: ", ";\n }\n\n &:has(input:checked:not(:disabled)) {\n background-color: ", ";\n color: ", ";\n border-color: transparent;\n\n ", " {\n filter: ", ";\n }\n }\n"])), function (props) {
|
|
3170
3170
|
return parseColor(props.$colorSchemeTokens.background);
|
|
3171
3171
|
}, function (props) { return parseColor(props.$colorSchemeTokens.borderColor); }, parseColor("text-primary"), function (props) {
|
|
3172
3172
|
return parseColor(props.$colorSchemeTokens.disabledBackground);
|
|
@@ -3237,14 +3237,14 @@ var OakRadioAsButton = function (props) {
|
|
|
3237
3237
|
rest.variant === "with-icon" && (React__default.default.createElement(StyledOakIcon$2, { alt: "", iconName: rest.icon })),
|
|
3238
3238
|
React__default.default.createElement(InternalCheckBoxLabelHoverDecor, { pointerEvents: "none", htmlFor: id, "$font": "heading-7", disabled: disabled }, displayValue)));
|
|
3239
3239
|
};
|
|
3240
|
-
var templateObject_1$
|
|
3240
|
+
var templateObject_1$16, templateObject_2$u;
|
|
3241
3241
|
|
|
3242
3242
|
// Converted to styled-component so it can be used in '&:checked:not(:disabled) + ${StyledOakIcon}' to change svg color.
|
|
3243
|
-
var StyledOakIcon$1 = styled__default.default(OakIcon)(templateObject_1$
|
|
3244
|
-
var StyledInternalCheckBox$1 = styled__default.default(InternalCheckBox)(templateObject_2$
|
|
3243
|
+
var StyledOakIcon$1 = styled__default.default(OakIcon)(templateObject_1$15 || (templateObject_1$15 = tslib.__makeTemplateObject([""], [""])));
|
|
3244
|
+
var StyledInternalCheckBox$1 = styled__default.default(InternalCheckBox)(templateObject_2$t || (templateObject_2$t = tslib.__makeTemplateObject(["\n position: absolute;\n opacity: 0;\n pointer-events: none;\n\n &:checked:not(:disabled) + ", " {\n filter: ", ";\n }\n\n &:checked:not(:disabled) {\n border: ", ";\n border-color: ", ";\n }\n\n &:checked:disabled {\n border: ", ";\n border-color: ", ";\n }\n\n &:hover:not(:disabled) {\n background: ", ";\n }\n"], ["\n position: absolute;\n opacity: 0;\n pointer-events: none;\n\n &:checked:not(:disabled) + ", " {\n filter: ", ";\n }\n\n &:checked:not(:disabled) {\n border: ", ";\n border-color: ", ";\n }\n\n &:checked:disabled {\n border: ", ";\n border-color: ", ";\n }\n\n &:hover:not(:disabled) {\n background: ", ";\n }\n"])), StyledOakIcon$1, function (props) {
|
|
3245
3245
|
return props.$keepIconColor ? "none" : parseColorFilter("icon-inverted");
|
|
3246
3246
|
}, parseBorder("border-solid-l"), parseColor("border-primary"), parseBorder("border-solid-l"), parseColor("text-disabled"), parseColor("bg-primary"));
|
|
3247
|
-
var StyledFlexBox$1 = styled__default.default(OakFlex)(templateObject_3$
|
|
3247
|
+
var StyledFlexBox$1 = styled__default.default(OakFlex)(templateObject_3$l || (templateObject_3$l = tslib.__makeTemplateObject(["\n &:has(input:not(:disabled)) {\n cursor: pointer;\n }\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n }\n\n &:hover:has(input:not(:disabled)) ", " {\n text-decoration: underline;\n }\n\n &:hover:has(input:not(:disabled)) {\n background-color: ", ";\n }\n\n &:focus-within {\n box-shadow:\n ", ",\n ", ";\n }\n\n &:has(input:checked:not(:disabled)) {\n background-color: ", ";\n color: ", ";\n }\n"], ["\n &:has(input:not(:disabled)) {\n cursor: pointer;\n }\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n }\n\n &:hover:has(input:not(:disabled)) ", " {\n text-decoration: underline;\n }\n\n &:hover:has(input:not(:disabled)) {\n background-color: ", ";\n }\n\n &:focus-within {\n box-shadow:\n ", ",\n ", ";\n }\n\n &:has(input:checked:not(:disabled)) {\n background-color: ", ";\n color: ", ";\n }\n"])), InternalCheckBoxLabelHoverDecor, parseColor("bg-neutral"), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), parseColor("bg-inverted"), parseColor("text-inverted"));
|
|
3248
3248
|
/**
|
|
3249
3249
|
*
|
|
3250
3250
|
* A checkbox for search filters.
|
|
@@ -3288,40 +3288,7 @@ var OakSearchFilterCheckBox = function (props) {
|
|
|
3288
3288
|
icon && React__default.default.createElement(StyledOakIcon$1, { alt: "", iconName: icon }),
|
|
3289
3289
|
React__default.default.createElement(InternalCheckBoxLabelHoverDecor, { pointerEvents: "none", htmlFor: id, "$font": "heading-7", disabled: disabled }, displayValue))));
|
|
3290
3290
|
};
|
|
3291
|
-
var templateObject_1$
|
|
3292
|
-
|
|
3293
|
-
var oakAspectRatioPercentage = {
|
|
3294
|
-
"16:9": 56.25,
|
|
3295
|
-
"3:2": 66.66,
|
|
3296
|
-
"1:1": 100,
|
|
3297
|
-
"2:3": 150,
|
|
3298
|
-
"7:8": 114,
|
|
3299
|
-
};
|
|
3300
|
-
var parseRatioToPercentage = function (ratio) {
|
|
3301
|
-
return ratio ? "".concat(oakAspectRatioPercentage[ratio], "%") : undefined;
|
|
3302
|
-
};
|
|
3303
|
-
var OakAspectRatioOuter = styled__default.default.div(templateObject_1$16 || (templateObject_1$16 = tslib.__makeTemplateObject(["\n width: 100%;\n height: 0;\n position: relative;\n ", "\n"], ["\n width: 100%;\n height: 0;\n position: relative;\n ", "\n"])), responsiveStyle("padding-top", function (props) { return props.ratio; }, parseRatioToPercentage));
|
|
3304
|
-
var OakAspectRatioInner = styled__default.default.div(templateObject_2$u || (templateObject_2$u = tslib.__makeTemplateObject(["\n display: flex;\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n top: 0;\n"], ["\n display: flex;\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n top: 0;\n"])));
|
|
3305
|
-
/**
|
|
3306
|
-
*
|
|
3307
|
-
* AspectRatio provides a container of fixed aspect ratio
|
|
3308
|
-
*
|
|
3309
|
-
* ⚠️ To be deprecated
|
|
3310
|
-
* @deprecated
|
|
3311
|
-
*
|
|
3312
|
-
* ## Usage
|
|
3313
|
-
* Use this component when you want to ensure a box has a certain aspect ratio.
|
|
3314
|
-
* Wrap with component with <code>position: relative</code> and a width or min-width
|
|
3315
|
-
* The 'ratio' prop is responsive, so you can pass an array e.g. <code>["3:2", "16:9"]</code>
|
|
3316
|
-
* which will result in different aspect ratios on different screen widths.
|
|
3317
|
-
* For an example usage, see the <code>CardImage</code> component.
|
|
3318
|
-
*/
|
|
3319
|
-
var OakAspectRatio = function (props) {
|
|
3320
|
-
var children = props.children, ratio = props.ratio, htmlAttrs = tslib.__rest(props, ["children", "ratio"]);
|
|
3321
|
-
return (React__default.default.createElement(OakAspectRatioOuter, tslib.__assign({ ratio: ratio }, htmlAttrs),
|
|
3322
|
-
React__default.default.createElement(OakAspectRatioInner, null, children)));
|
|
3323
|
-
};
|
|
3324
|
-
var templateObject_1$16, templateObject_2$u;
|
|
3291
|
+
var templateObject_1$15, templateObject_2$t, templateObject_3$l;
|
|
3325
3292
|
|
|
3326
3293
|
/**
|
|
3327
3294
|
* A wrapper around `OakIcon` which applies a rounded background.
|
|
@@ -3538,12 +3505,12 @@ function parseBorderWidth(value) {
|
|
|
3538
3505
|
}
|
|
3539
3506
|
}
|
|
3540
3507
|
|
|
3541
|
-
var colorFillStyle = styled.css(templateObject_1$
|
|
3508
|
+
var colorFillStyle = styled.css(templateObject_1$14 || (templateObject_1$14 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("fill", function (props) { return props.$fill; }, parseColor));
|
|
3542
3509
|
/**
|
|
3543
3510
|
* A styled SVG element with props to apply design tokens to the fill and stroke.
|
|
3544
3511
|
*/
|
|
3545
|
-
var InternalStyledSvg = styled__default.default.svg(templateObject_2$
|
|
3546
|
-
var templateObject_1$
|
|
3512
|
+
var InternalStyledSvg = styled__default.default.svg(templateObject_2$s || (templateObject_2$s = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n"])), colorFillStyle, responsiveStyle("stroke", function (props) { return props.$stroke; }, parseColor), responsiveStyle("stroke-width", function (props) { return props.$strokeWidth; }, parseBorderWidth));
|
|
3513
|
+
var templateObject_1$14, templateObject_2$s;
|
|
3547
3514
|
|
|
3548
3515
|
var HandDrawnHRSvg = function (props) {
|
|
3549
3516
|
return (React__default.default.createElement(InternalStyledSvg, tslib.__assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 866 8", preserveAspectRatio: "none", height: "100%", width: "100%" }, props),
|
|
@@ -3551,7 +3518,7 @@ var HandDrawnHRSvg = function (props) {
|
|
|
3551
3518
|
React__default.default.createElement("path", { d: "M865.845 2.15897C865.975 1.74492 865.563 1.33087 864.955 1.33087C788.833 1.21257 638.585 4.00739 558.84 1.30129C560.814 1.22736 562.55 1.36044 563.287 1.18299C546.019 0.946396 526.408 1.10906 509.119 1.44917C530.292 -0.0295749 543.785 1.41959 562.289 0.931608C559.556 0.872458 545.347 0.842884 554.436 0.798521C547.538 0.369686 533.003 0.754159 530.27 0.621072C522.113 0.177449 549.794 0.724584 549.23 0.399261C544.219 0.0295749 524.586 0.295749 522.937 0C522.959 0.369686 522.352 0.295749 522.612 0.399261C423.669 0.724584 317.892 0.340111 218.666 0.828096C218.861 0.828096 219.013 0.828096 219.078 0.857671C218.753 0.902033 217.451 0.857671 218.579 0.828096C154.909 1.71534 98.6582 -0.502773 49.7396 2.18854C59.3281 0.0887246 12.145 1.39002 8.34861 1.52311C2.75172 1.44917 6.69991 1.96673 8.13168 1.67098C8.43539 2.91312 0.799314 1.73013 2.20938 3.12015C-18.7247 12.7024 115.622 4.7024 130.504 6.96488C127.011 6.21072 147.056 7.34935 148.705 6.93531C147.859 6.89094 146.362 6.78743 144.692 6.75786C140.396 6.72828 151.525 6.07763 149.486 6.93531C150.354 7.18669 153.282 6.44732 152.935 6.93531C154.714 7.06839 166.385 5.75231 158.814 6.92052C165.647 6.52126 168.077 7.68946 162.046 6.26987C222.332 7.55638 283.247 5.8854 342.34 6.29945C458.66 5.97412 569.839 6.10721 682.124 6.69871C679.932 6.22551 684.532 6.07763 683.36 6.69871C715.076 6.71349 731.801 6.81701 762.432 6.99446C757.486 6.72828 758.68 6.13678 763.821 6.55083C784.278 7.51202 841.353 7.73383 863.784 6.96488C863.35 6.68392 864.804 6.77264 864.782 6.92052C864.955 5.84104 865.259 5.84104 864.717 5.95934C864.76 5.95934 863.697 6.32902 864.001 5.73752C864.153 5.44177 864.999 5.60444 864.088 5.30869C864.652 5.30869 866.192 4.90943 864.608 5.02773C861.723 4.17006 866.778 4.99815 865.91 4.42144C865.519 4.12569 865.606 2.95749 865.845 2.15897ZM526.43 0.606285C528.448 0.650647 526.539 0.754159 525.476 0.606285C524.825 0.547135 525.042 0.547135 526.43 0.606285ZM17.0694 1.61183C17.0694 1.61183 17.3731 1.58226 17.308 1.62662C17.2646 1.6414 17.0694 1.6414 17.0694 1.61183ZM18.0889 1.15342C18.1974 1.15342 18.2408 1.15342 18.3059 1.16821H17.8286C17.8286 1.16821 17.9805 1.15342 18.0889 1.15342ZM18.371 1.41959C18.371 1.41959 18.3059 1.40481 18.371 1.39002V1.41959ZM36.8971 2.04067C30.6928 1.68577 40.9321 1.62662 42.6242 2.08503C42.4072 2.08503 37.4611 2.04067 36.8971 2.04067ZM63.6451 1.34566C67.5933 1.34566 62.4302 1.41959 61.736 1.36044C62.018 1.34566 62.8641 1.34566 63.6451 1.34566ZM84.8395 3.88909C84.5141 3.88909 84.6226 3.87431 84.8395 3.87431V3.88909ZM92.1068 1.58226C80.2405 2.24769 61.6926 1.878 59.0461 1.61183C67.2028 1.43438 85.2734 1.52311 95.3608 1.47874C94.3629 1.47874 93.2565 1.52311 92.1068 1.58226ZM97.183 2.41035C96.6841 2.38078 97.5084 2.30684 97.4867 2.41035C97.4867 2.41035 97.3566 2.41035 97.183 2.41035ZM95.9899 1.47874C96.8142 1.44917 97.5518 1.46396 98.1809 1.47874C97.5084 1.49353 96.7709 1.49353 95.9899 1.47874ZM100.589 1.53789C100.589 1.53789 99.7862 1.50832 98.5714 1.47874C100.415 1.50832 101.348 1.46396 102.368 1.52311C102.238 1.53789 101.587 1.53789 100.589 1.53789ZM101.869 1.18299C101.869 1.18299 102.997 1.15342 103.105 1.18299C102.867 1.21257 101.999 1.21257 101.869 1.18299ZM107.704 1.84843C107.704 1.84843 107.509 1.84843 107.422 1.83364C107.769 1.83364 107.856 1.83364 107.704 1.84843ZM139.29 1.21257C138.704 1.18299 139.767 1.13863 139.724 1.18299C139.659 1.19778 139.463 1.21257 139.29 1.21257ZM141.633 5.6488C140.982 5.6488 141.199 5.60444 141.633 5.61922V5.6488ZM177.882 6.50647C162.654 6.71349 183.132 5.97412 183.588 5.73752C183.588 5.78189 181.006 6.50647 177.882 6.50647ZM185.779 0.946396H184.564C183.631 0.916821 186.56 0.931608 185.779 0.946396ZM209.945 1.00555C210.488 0.975971 210.813 0.975971 211.355 1.00555C212.18 1.02033 209.099 1.02033 209.945 1.00555ZM202.244 6.41775C199.077 6.46211 192.873 6.50647 188.989 6.66913C187.818 5.67837 202.873 6.38817 202.244 6.41775ZM213.264 6.41775C212.874 6.46211 208.492 6.46211 208.231 6.43253C207.667 6.50647 214.175 5.45656 213.264 6.41775ZM218.905 6.19593C218.601 6.19593 215.434 6.38817 215.087 6.38817C215.412 6.28466 220.336 6.01849 218.905 6.19593ZM226.801 0.857671C226.953 0.842884 227.343 0.842884 227.495 0.857671C227.3 0.872458 226.996 0.872458 226.801 0.857671ZM256.152 0.768946C258.018 0.768946 255.914 0.783734 255.588 0.783734C255.718 0.768946 255.914 0.768946 256.152 0.768946ZM252.855 4.00739C252.291 3.97782 254.742 3.26802 254.634 3.62292C254.46 3.66728 253.115 4.05176 252.855 4.00739ZM257.757 4.99815C257.302 4.92422 255.415 4.33272 254.677 4.43623C255.501 4.24399 258.625 4.87985 257.757 4.99815ZM254.785 3.46026C255.133 3.43068 257.541 3.38632 257.259 3.43068C257.888 3.46026 254.937 3.48983 254.785 3.46026ZM259.363 3.59335C258.669 3.59335 257.757 3.10536 257.757 3.07579C257.974 3.07579 261.836 2.88355 259.363 3.59335ZM258.886 2.01109C256.456 2.04067 254.72 1.65619 254.417 1.62662C253.332 1.44917 266.543 1.70055 258.886 2.01109ZM264.157 4.64325L263.181 4.02218C262.226 3.44547 265.35 4.40665 264.157 4.64325ZM289.712 3.50462C290.71 3.50462 291.686 4.24399 290.948 4.25878C288.432 3.90388 285.655 2.91312 289.712 3.50462ZM271.424 2.20333C273.203 2.45471 281.577 1.00555 275.394 2.54344C275.763 2.42514 267.389 2.15897 271.424 2.20333ZM275.893 3.12015C276.717 2.79482 278.345 3.6525 278.019 4.09612C277.542 4.09612 275.893 3.20887 275.893 3.12015ZM284.223 2.97227C281.447 2.45471 286.935 2.21811 287.022 2.07024C287.022 2.1146 285.351 3.01664 284.223 2.97227ZM290.862 5.36784C288.822 5.36784 287.477 5.33826 287.477 5.33826C286.653 3.91867 298.172 6.0037 290.862 5.36784ZM296.719 5.07209C293.053 4.39187 298.671 4.5841 298.91 4.61368C298.91 4.64325 297.717 5.07209 296.719 5.07209ZM317.219 3.43068C320.126 4.62847 316.178 3.7708 315.744 3.4159C315.917 3.38632 316.612 3.40111 317.219 3.43068ZM304.702 4.39187C302.967 5.13124 304.116 4.03697 304.42 3.93346C305.526 3.69686 306.459 4.12569 304.702 4.39187ZM307.587 3.35675C307.457 3.16451 302.858 2.43993 305.808 2.67653C306.741 2.5878 307.001 2.7061 305.895 2.67653C306.958 2.7061 307.978 3.32717 307.587 3.35675ZM310.928 2.54344C309.561 2.54344 311.253 1.78928 312.533 1.98152C312.403 1.9963 311.362 2.54344 310.928 2.54344ZM319.649 5.56007C320.343 5.58965 309.323 5.66359 314.572 5.54529C317.284 6.31423 322.751 2.98706 319.649 5.56007ZM329.411 5.24954C326.808 5.27911 331.884 4.64325 331.992 4.61368C332.339 4.67283 330.235 5.2939 329.411 5.24954ZM335.355 2.24769C334.704 2.01109 338.023 2.5878 338.413 2.29205C338.023 2.41035 335.897 3.00185 335.355 2.24769ZM346.201 4.12569C343.338 4.12569 344.097 3.97782 346.57 3.82994C349.499 4.52495 348.696 4.42144 346.201 4.12569ZM359.977 3.01664C359.977 3.01664 355.421 3.07579 355.248 3.061C355.226 3.19409 362.211 1.49353 359.977 3.01664ZM413.364 0.902033C414.102 0.857671 414.492 0.872459 414.536 0.902033C415.555 1.70055 411.889 0.842884 413.364 0.902033ZM371.886 1.52311C370.238 2.51386 367.656 1.52311 365.704 1.52311C365.704 1.47874 371.322 1.46396 371.886 1.52311ZM364.966 3.03142C363.816 3.87431 362.905 3.81516 364.25 2.60259C365.205 1.90758 366.919 2.01109 364.966 3.03142ZM370.954 6.01849C369.999 6.01849 366.81 6.01848 366.485 5.91497C367.266 5.8854 375.574 4.92422 370.954 6.01849ZM378.546 6.01849C375.943 5.90019 376.117 5.2939 377.722 5.4122C379.956 5.23475 382.581 5.50093 378.546 6.01849ZM387.267 3.57856C386.312 3.56377 386.963 2.76525 388.178 2.76525C390.413 2.98706 389.87 3.51941 387.267 3.57856ZM393.623 1.80407C389.545 1.58226 393.341 1.12384 394.795 1.34566C397.506 1.00555 397.745 1.37523 393.623 1.80407ZM401.303 5.84104C396.942 5.87061 401.216 5.38263 402.734 5.24954C403.429 5.2939 402.301 5.84104 401.303 5.84104ZM405.207 4.03697C405.164 4.14048 404.904 4.52495 403.472 4.02218C400.934 2.76525 406.162 3.82995 405.207 4.03697ZM408.722 4.11091C407.116 4.11091 404.253 3.68207 407.42 3.68207C407.746 2.60259 410.761 3.93346 408.722 4.11091ZM410.848 1.62662C409.958 1.46396 406.704 1.16821 409.546 0.680222C410.11 0.680222 413.581 1.81885 410.848 1.62662ZM412.93 5.4122C413.147 5.38263 414.232 4.33272 415.902 4.85028L412.93 5.4122ZM429.027 0.857671C430.393 0.857671 434.71 0.813309 435.708 0.887246C436.424 1.25693 425.643 2.52865 429.027 0.857671ZM437.878 0.857671C438.181 0.813309 439.309 0.828096 439.591 0.916821C431.587 2.83919 437.14 0.946396 437.878 0.857671ZM451.653 5.35305C451.176 5.35305 448.898 4.83549 448.898 4.80592C448.898 4.79113 450.807 4.5841 451.111 4.5841C453.562 4.65804 452.412 5.44177 451.653 5.35305ZM480.245 3.4159C478.661 3.6525 474.822 3.6525 474.822 3.4159C474.149 3.38632 481.568 3.14972 480.245 3.4159ZM485.69 5.32348C473.325 5.45656 491.829 4.64325 490.983 5.0573C490.983 5.23475 491.46 5.23475 485.69 5.32348ZM495.018 2.51386C494.454 2.51386 493.977 2.43993 493.977 2.36599C494.194 1.98152 497.252 2.45471 495.018 2.51386ZM502.524 2.26248C502.307 2.45471 501.656 2.49908 500.159 2.60259C492.285 2.85397 502.871 1.65619 502.524 2.26248ZM506.429 2.39556C510.377 2.3512 507.275 2.89834 505.105 2.41035C505.214 2.39556 505.648 2.39556 506.429 2.39556ZM506.559 3.13494C507.926 3.13494 509.01 3.22366 509.01 3.31238C508.338 3.4159 501.136 3.12015 506.559 3.13494ZM522.243 5.75231C518.36 6.38817 511.418 5.91497 507.253 5.4122C510.16 5.66359 522.547 5.33826 522.243 5.75231ZM590.057 3.48983C589.319 3.59335 587.128 3.59335 586.391 3.48983C587.367 3.2976 588.972 3.31238 590.057 3.48983ZM582.551 2.20333C586.109 1.98152 588.083 1.98152 588.083 2.20333C588.777 2.41035 577.019 2.61738 582.551 2.20333ZM564.545 1.71534C566.302 1.71534 566.064 2.83919 564.155 2.07024C563.699 1.86322 563.374 1.67098 564.545 1.71534ZM558.84 1.71534C560.619 1.7597 562.007 1.83364 563.049 2.07024C561.899 2.29205 549.273 1.70055 558.84 1.71534ZM553.438 3.72643C543.893 3.4159 556.107 3.20887 556.801 3.72643C556.801 3.87431 555.564 3.87431 553.438 3.72643ZM562.897 3.23845C561.205 3.26802 556.15 2.92791 560.749 2.89834C562.398 2.86876 567.474 3.19409 562.897 3.23845ZM567.17 2.54344C565.261 2.54344 563.96 2.54344 563.504 2.4695C565.977 2.17375 576.846 2.57301 567.17 2.54344ZM573.939 5.51571C571.704 5.51571 569.708 5.42699 569.708 5.35305C570.62 4.89464 582.79 5.45656 573.939 5.51571ZM588.885 5.67837C588.712 5.87061 575.37 6.15157 583.354 5.57486C586.911 5.23475 590.859 5.33826 588.885 5.67837ZM595.979 4.09612C594.678 4.18484 594.743 5.14603 593.137 3.99261C593.051 3.99261 587.28 4.37708 587.193 4.37708C588.517 3.50462 594.981 3.80037 595.979 4.09612ZM602.444 2.49908C606.913 2.54344 602.097 2.61738 600.795 2.52865C600.795 2.52865 601.489 2.49908 602.444 2.49908ZM601.576 4.53974C601.12 4.53974 600.556 4.4658 600.405 4.37708C599.428 3.66728 603.767 4.76155 601.576 4.53974ZM605.112 4.42144C603.724 4.42144 602.769 4.25878 602.422 4.09612C602.986 3.44547 611.468 4.28836 605.112 4.42144ZM622.315 5.24954C616.544 5.14603 619.365 3.68207 624.311 4.74677C626.09 4.99815 625.612 5.24954 622.315 5.24954ZM654.269 2.97227C655.788 2.8244 656.482 2.8244 657.068 2.97227C657.849 3.1793 651.926 3.13494 654.269 2.97227ZM651.124 2.39556C656.243 2.43993 650.712 2.5878 649.714 2.52865C648.651 2.39556 649.28 2.39556 651.124 2.39556ZM633.943 5.51571C634.767 5.11645 637.066 5.13124 637.826 5.51571C636.763 5.7671 635.006 5.7671 633.943 5.51571ZM646.047 3.97782C638.368 3.59335 651.774 3.72643 653.553 3.97782C660.907 4.89464 647.241 4.25878 646.047 3.97782ZM653.271 5.97412C652.859 5.72274 661.211 5.73752 660.777 5.97412C660.322 6.34381 654.031 6.16636 653.271 5.97412ZM667.611 3.09057C661.276 3.2976 665.398 1.89279 669.563 2.92791C670.691 3.09057 670.236 3.09057 667.611 3.09057ZM676.18 6.3586C675.789 6.38817 669.715 6.53605 669.476 6.38817C670.214 5.91497 676.245 6.37338 676.657 6.3586C676.375 6.38817 676.223 6.3586 676.18 6.3586ZM683.121 4.21442C682.774 4.21442 682.514 4.03697 682.514 3.85952C682.579 2.83919 684.814 4.3475 683.121 4.21442ZM696.875 5.5305C694.445 5.75231 693.122 5.75231 693.122 5.5305C692.558 5.32348 700.476 5.11645 696.875 5.5305ZM699.283 4.61368C691.17 4.48059 701.713 3.99261 702.754 4.49538C702.754 4.49538 701.257 4.61368 699.283 4.61368ZM701.474 3.80037C693.231 3.84473 704.598 3.1793 705.205 3.66728C705.205 3.80037 703.643 3.80037 701.474 3.80037ZM706.03 5.81146C705.27 5.11645 709.436 5.70795 709.327 5.81146C709.978 6.16636 706.811 6.16636 706.03 5.81146ZM716.746 6.56562C716.985 6.90573 706.919 6.50647 711.844 6.26987C714.815 6.122 717.679 6.26987 716.746 6.56562ZM718.091 4.22921C714.75 4.19963 714.707 3.72643 718.091 3.82994C721.28 3.72643 721.237 4.19963 718.091 4.22921ZM770.459 3.20887C772.455 3.20887 773.995 3.44547 773.995 3.68207C772.889 4.56932 763.083 3.25324 770.459 3.20887ZM730.934 4.08133C730.5 4.08133 730.76 3.96303 731.715 3.84473C736.856 3.28281 732.322 4.36229 730.934 4.08133ZM735.663 6.49168C732.799 6.49168 732.799 5.95934 735.663 5.95934C738.44 5.95934 738.44 6.49168 735.663 6.49168ZM737.854 4.49538C736.986 4.49538 736.27 4.42144 736.27 4.34751C735.771 4.09612 741.108 4.45102 737.854 4.49538ZM738.591 3.97782C737.767 3.97782 736.682 3.94824 736.27 3.84473C736.791 3.68207 744.687 3.91867 738.591 3.97782ZM756.922 5.5305C723.276 5.90019 765.556 4.73198 769.83 5.33826C769.83 5.33826 763.843 5.5305 756.922 5.5305ZM767.726 6.83179C758.745 6.56562 775.687 6.68392 775.34 6.83179C776.056 6.96488 772.997 6.96488 767.726 6.83179ZM785.124 4.96858C784.451 5.73752 778.572 6.75786 782.022 5.78189C782.868 5.54529 788.009 3.60813 785.124 4.96858ZM787.705 6.4769C789.289 6.04806 793.454 6.07763 795.016 6.4769C793.02 6.75786 789.701 6.75786 787.705 6.4769ZM808.206 5.87061C802.066 5.47135 813.868 4.61368 811.633 5.58965C811.633 6.13678 811.112 6.13678 808.206 5.87061ZM839.986 5.57486C838.229 5.57486 836.559 5.57486 836.277 5.4122C836.993 4.53974 847.601 5.58965 839.986 5.57486ZM858.404 5.94455C847.839 5.7671 869.988 0.635859 859.163 5.7671C858.361 6.21072 859.163 6.4769 858.404 5.94455ZM862.461 5.8854C862.461 5.97412 859.424 6.40296 859.185 6.37338C860.009 6.22551 863.61 4.15527 862.461 5.8854ZM864.088 5.07209C864.088 5.07209 864.174 5.04251 864.218 5.04251C864.348 5.14603 863.914 5.19039 864.088 5.07209Z", fill: "inherit" }))));
|
|
3552
3519
|
};
|
|
3553
3520
|
|
|
3554
|
-
var StyledOakFlex$4 = styled__default.default(OakFlex)(templateObject_1$
|
|
3521
|
+
var StyledOakFlex$4 = styled__default.default(OakFlex)(templateObject_1$13 || (templateObject_1$13 = tslib.__makeTemplateObject([""], [""])));
|
|
3555
3522
|
/**
|
|
3556
3523
|
* A Drawn HR svg inside a flex container
|
|
3557
3524
|
*
|
|
@@ -3564,7 +3531,7 @@ var OakHandDrawnHR = function (props) {
|
|
|
3564
3531
|
return (React__default.default.createElement(StyledOakFlex$4, tslib.__assign({ focusable: false }, flexProps),
|
|
3565
3532
|
React__default.default.createElement(HandDrawnHRSvg, { "$fill": hrColor })));
|
|
3566
3533
|
};
|
|
3567
|
-
var templateObject_1$
|
|
3534
|
+
var templateObject_1$13;
|
|
3568
3535
|
|
|
3569
3536
|
var oakMaxWidthDefaults = {
|
|
3570
3537
|
$maxWidth: ["spacing-480", "spacing-1280"],
|
|
@@ -3581,8 +3548,8 @@ var oakMaxWidthDefaults = {
|
|
|
3581
3548
|
* This will make it easier to create full browser width or custom width containers on the same page
|
|
3582
3549
|
* with different background colors / image url.
|
|
3583
3550
|
*/
|
|
3584
|
-
var OakMaxWidth = styled__default.default(OakFlex).attrs(function (props) { return (tslib.__assign(tslib.__assign({}, oakMaxWidthDefaults), props)); })(templateObject_1$
|
|
3585
|
-
var templateObject_1$
|
|
3551
|
+
var OakMaxWidth = styled__default.default(OakFlex).attrs(function (props) { return (tslib.__assign(tslib.__assign({}, oakMaxWidthDefaults), props)); })(templateObject_1$12 || (templateObject_1$12 = tslib.__makeTemplateObject([""], [""])));
|
|
3552
|
+
var templateObject_1$12;
|
|
3586
3553
|
|
|
3587
3554
|
var HandDrawnFocusUnderlineSvg = function (props) {
|
|
3588
3555
|
return (React__default.default.createElement(InternalStyledSvg, tslib.__assign({ xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3596,7 +3563,7 @@ var HandDrawnFocusUnderlineSvg = function (props) {
|
|
|
3596
3563
|
React__default.default.createElement("path", { d: "M194.048 3.7872C191.283 4.34864 188.349 4.45997 185.292 4.46339C165.059 4.48811 144.869 4.55069 124.658 4.52966C103.616 4.51215 82.5815 4.39759 61.5395 4.36676C45.4617 4.34347 29.3688 4.40393 13.2838 4.38067C10.3027 4.34933 7.34591 4.24078 4.45601 4.05658C1.85568 3.9135 0.263876 3.2107 0.558012 2.51894C0.665459 2.26584 0.68912 2.01114 0.628653 1.75775C0.506946 1.51801 0.332582 1.28057 0.10639 1.04662C1.6422 0.945149 3.20335 0.874948 4.77593 0.836643C16.562 0.777274 28.3704 0.641721 40.141 0.721281C52.5042 0.805943 64.8613 0.728942 77.2178 0.731837C105.486 0.739072 133.752 0.759003 162.015 0.791623C168.988 0.802073 175.946 0.938139 182.904 1.03996C184.703 1.07029 186.484 1.14684 188.22 1.26856C192.055 1.53006 193.879 2.19575 193.987 3.24913C193.964 3.41853 194.013 3.57429 194.048 3.7872ZM7.6157 3.79783L7.61665 3.66848L5.53547 3.67728C5.5351 3.72864 5.53472 3.78001 5.53433 3.83327L7.6157 3.79783ZM7.39301 1.65115C6.44131 2.34188 6.44133 2.34188 8.02407 2.30855C7.85227 2.08862 7.63709 1.86887 7.42914 1.651L7.39301 1.65115ZM58.1379 1.15304L58.2904 1.05919L54.6772 1.07448L54.6765 1.16769L58.1379 1.15304ZM59.3357 2.38254L59.4436 2.44485L61.3585 2.43675L61.359 2.37398L59.3357 2.38254ZM4.23221 1.07672L4.10861 1.18187L6.81847 1.1704L6.81924 1.06578L4.23221 1.07672Z", fill: "#FBD60E" })));
|
|
3597
3564
|
};
|
|
3598
3565
|
|
|
3599
|
-
var StyledOakFlex$3 = styled__default.default(OakFlex)(templateObject_1$
|
|
3566
|
+
var StyledOakFlex$3 = styled__default.default(OakFlex)(templateObject_1$11 || (templateObject_1$11 = tslib.__makeTemplateObject([""], [""])));
|
|
3600
3567
|
/**
|
|
3601
3568
|
* A Drawn FocusUnderline svg inside a flex container
|
|
3602
3569
|
*
|
|
@@ -3609,12 +3576,12 @@ var OakHandDrawnFocusUnderline = function (props) {
|
|
|
3609
3576
|
return (React__default.default.createElement(StyledOakFlex$3, tslib.__assign({}, flexProps),
|
|
3610
3577
|
React__default.default.createElement(HandDrawnFocusUnderlineSvg, { "$fill": FocusUnderlineColor })));
|
|
3611
3578
|
};
|
|
3612
|
-
var templateObject_1$
|
|
3579
|
+
var templateObject_1$11;
|
|
3613
3580
|
|
|
3614
|
-
var StyledAccordionUnderline = styled__default.default(OakHandDrawnFocusUnderline)(templateObject_1$
|
|
3615
|
-
var StyledAccordionButton$3 = styled__default.default(InternalAccordionButton)(templateObject_2$
|
|
3616
|
-
var StyledContainer = styled__default.default(OakFlex)(templateObject_3$
|
|
3617
|
-
var BottomBoxShadow = styled__default.default(OakBox)(templateObject_4$
|
|
3581
|
+
var StyledAccordionUnderline = styled__default.default(OakHandDrawnFocusUnderline)(templateObject_1$10 || (templateObject_1$10 = tslib.__makeTemplateObject(["\n position: absolute;\n width: 100%;\n bottom: -", ";\n"], ["\n position: absolute;\n width: 100%;\n bottom: -", ";\n"])), parseSpacing("spacing-4"));
|
|
3582
|
+
var StyledAccordionButton$3 = styled__default.default(InternalAccordionButton)(templateObject_2$r || (templateObject_2$r = tslib.__makeTemplateObject(["\n ", "\n ", "\n position: relative;\n &:hover {\n text-decoration: underline;\n }\n &:focus-visible {\n .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n }\n"], ["\n ", "\n ", "\n position: relative;\n &:hover {\n text-decoration: underline;\n }\n &:focus-visible {\n .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n }\n"])), flexStyle, oakBoxCss, parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"));
|
|
3583
|
+
var StyledContainer = styled__default.default(OakFlex)(templateObject_3$k || (templateObject_3$k = tslib.__makeTemplateObject(["\n ", " {\n visibility: hidden;\n }\n ", ":focus-visible ~ ", " {\n visibility: visible;\n }\n ", "\n ", "\n"], ["\n ", " {\n visibility: hidden;\n }\n ", ":focus-visible ~ ", " {\n visibility: visible;\n }\n ", "\n ", "\n"])), StyledAccordionUnderline, StyledAccordionButton$3, StyledAccordionUnderline, oakBoxCss, flexStyle);
|
|
3584
|
+
var BottomBoxShadow = styled__default.default(OakBox)(templateObject_4$c || (templateObject_4$c = tslib.__makeTemplateObject(["\n position: absolute;\n bottom: 0;\n width: 100%;\n height: 50px;\n opacity: ", ";\n z-index: 100;\n -webkit-box-shadow: inset 0px -55px 30px -30px rgba(255, 255, 255, 1);\n -moz-box-shadow: inset 0px -55px 30px -30px rgba(255, 255, 255, 1);\n box-shadow: inset 0px -55px 30px -30px rgba(255, 255, 255, 1);\n padding: 2px;\n"], ["\n position: absolute;\n bottom: 0;\n width: 100%;\n height: 50px;\n opacity: ", ";\n z-index: 100;\n -webkit-box-shadow: inset 0px -55px 30px -30px rgba(255, 255, 255, 1);\n -moz-box-shadow: inset 0px -55px 30px -30px rgba(255, 255, 255, 1);\n box-shadow: inset 0px -55px 30px -30px rgba(255, 255, 255, 1);\n padding: 2px;\n"])), function (props) {
|
|
3618
3585
|
return props.shouldDisplayShadow
|
|
3619
3586
|
? parseOpacity("opaque")
|
|
3620
3587
|
: parseOpacity("transparent");
|
|
@@ -3676,14 +3643,14 @@ var InternalChevronAccordion = function (_a) {
|
|
|
3676
3643
|
return (React__default.default.createElement(InternalAccordionProvider, { isInitialOpen: initialOpen },
|
|
3677
3644
|
React__default.default.createElement(Accordion$3, tslib.__assign({ initialOpen: true }, props))));
|
|
3678
3645
|
};
|
|
3679
|
-
var templateObject_1$
|
|
3646
|
+
var templateObject_1$10, templateObject_2$r, templateObject_3$k, templateObject_4$c;
|
|
3680
3647
|
|
|
3681
3648
|
var OakBasicAccordion = function (_a) {
|
|
3682
3649
|
var header = _a.header, children = _a.children, id = _a.id, initialOpen = _a.initialOpen, subheading = _a.subheading, styleProps = tslib.__rest(_a, ["header", "children", "id", "initialOpen", "subheading"]);
|
|
3683
3650
|
return (React__default.default.createElement(InternalChevronAccordion, tslib.__assign({ header: header, id: id, initialOpen: initialOpen, subheading: subheading }, styleProps), children));
|
|
3684
3651
|
};
|
|
3685
3652
|
|
|
3686
|
-
var StyledScrollBox = styled__default.default(OakBox)(templateObject_1
|
|
3653
|
+
var StyledScrollBox = styled__default.default(OakBox)(templateObject_1$$ || (templateObject_1$$ = tslib.__makeTemplateObject(["\n &::-webkit-scrollbar-thumb {\n border-radius: ", ";\n background-color: ", ";\n }\n &::-webkit-scrollbar-track {\n border-radius: ", ";\n background-color: ", ";\n }\n &::-webkit-scrollbar {\n width: ", ";\n height: ", ";\n border-radius: ", ";\n }\n"], ["\n &::-webkit-scrollbar-thumb {\n border-radius: ", ";\n background-color: ", ";\n }\n &::-webkit-scrollbar-track {\n border-radius: ", ";\n background-color: ", ";\n }\n &::-webkit-scrollbar {\n width: ", ";\n height: ", ";\n border-radius: ", ";\n }\n"])), parseBorderRadius("border-radius-m"), parseColor("bg-interactive-element1"), parseBorderRadius("border-radius-m"), parseColor("bg-primary"), parseSpacing("spacing-12"), parseSpacing("spacing-12"), parseBorderRadius("border-radius-m"));
|
|
3687
3654
|
/**
|
|
3688
3655
|
* A filled scrollable box that can be hidden with the `isOpen` prop.
|
|
3689
3656
|
* Useful for hiding content that is not immediately relevant
|
|
@@ -3694,7 +3661,7 @@ var OakCollapsibleContent = function (_a) {
|
|
|
3694
3661
|
React__default.default.createElement(OakFlex, tslib.__assign({ "$background": "bg-neutral-stronger", "$ph": "spacing-16", "$pv": "spacing-24", "$borderRadius": "border-radius-m" }, rest),
|
|
3695
3662
|
React__default.default.createElement(StyledScrollBox, { "$overflow": "auto", "$maxHeight": "100%", "$width": "100%", "$pr": "spacing-16" }, children))));
|
|
3696
3663
|
};
|
|
3697
|
-
var templateObject_1
|
|
3664
|
+
var templateObject_1$$;
|
|
3698
3665
|
|
|
3699
3666
|
/**
|
|
3700
3667
|
* Represents textual user input from a keyboard, voice input, or any other text entry device.
|
|
@@ -3818,9 +3785,9 @@ var OakInlineBanner = function (_a) {
|
|
|
3818
3785
|
cta && React__default.default.createElement(OakFlex, { "$flexShrink": 0 }, cta)))));
|
|
3819
3786
|
};
|
|
3820
3787
|
|
|
3821
|
-
var FocusOnBox = styled__default.default(reactFocusOn.FocusOn)(templateObject_1
|
|
3822
|
-
var BlurredOakBox = styled__default.default(OakBox)(templateObject_2$
|
|
3823
|
-
var FadeInFlex = styled__default.default(OakFlex)(templateObject_3$
|
|
3788
|
+
var FocusOnBox = styled__default.default(reactFocusOn.FocusOn)(templateObject_1$_ || (templateObject_1$_ = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), oakBoxCss);
|
|
3789
|
+
var BlurredOakBox = styled__default.default(OakBox)(templateObject_2$q || (templateObject_2$q = tslib.__makeTemplateObject(["\n backdrop-filter: blur(3px);\n"], ["\n backdrop-filter: blur(3px);\n"])));
|
|
3790
|
+
var FadeInFlex = styled__default.default(OakFlex)(templateObject_3$j || (templateObject_3$j = tslib.__makeTemplateObject(["\n opacity: ", ";\n transition: opacity 0s;\n"], ["\n opacity: ", ";\n transition: opacity 0s;\n"])), function (_a) {
|
|
3824
3791
|
var $state = _a.$state;
|
|
3825
3792
|
switch ($state) {
|
|
3826
3793
|
case "entered":
|
|
@@ -3910,7 +3877,7 @@ var OakModalCenter = function (_a) {
|
|
|
3910
3877
|
return modal;
|
|
3911
3878
|
}
|
|
3912
3879
|
};
|
|
3913
|
-
var templateObject_1
|
|
3880
|
+
var templateObject_1$_, templateObject_2$q, templateObject_3$j;
|
|
3914
3881
|
|
|
3915
3882
|
/*
|
|
3916
3883
|
*
|
|
@@ -3952,7 +3919,7 @@ var OakTagFunctional = function (props) {
|
|
|
3952
3919
|
trailingIcon));
|
|
3953
3920
|
};
|
|
3954
3921
|
|
|
3955
|
-
var SuccessIconBackground = styled__default.default(OakBox)(templateObject_1$
|
|
3922
|
+
var SuccessIconBackground = styled__default.default(OakBox)(templateObject_1$Z || (templateObject_1$Z = tslib.__makeTemplateObject(["\n top: 6px;\n left: 6px;\n"], ["\n top: 6px;\n left: 6px;\n"])));
|
|
3956
3923
|
var SuccessIcon = (React__default.default.createElement(OakBox, { "$position": "relative" },
|
|
3957
3924
|
React__default.default.createElement(SuccessIconBackground, { "$width": "spacing-20", "$height": "spacing-20", "$background": "bg-primary", "$borderRadius": "border-radius-circle", "$position": "absolute" }),
|
|
3958
3925
|
React__default.default.createElement(OakIcon, { iconName: "success", "$width": "spacing-32", "$height": "spacing-32" })));
|
|
@@ -4003,7 +3970,7 @@ var variants = {
|
|
|
4003
3970
|
color: "text-inverted",
|
|
4004
3971
|
},
|
|
4005
3972
|
};
|
|
4006
|
-
var StyledFlex$3 = styled__default.default(OakFlex)(templateObject_2$
|
|
3973
|
+
var StyledFlex$3 = styled__default.default(OakFlex)(templateObject_2$p || (templateObject_2$p = tslib.__makeTemplateObject(["\n opacity: ", ";\n transition: opacity 0.3s ease-in-out;\n"], ["\n opacity: ", ";\n transition: opacity 0.3s ease-in-out;\n"])), function (_a) {
|
|
4007
3974
|
var $state = _a.$state;
|
|
4008
3975
|
switch ($state) {
|
|
4009
3976
|
case "exiting":
|
|
@@ -4035,21 +4002,21 @@ var OakToast = function (_a) {
|
|
|
4035
4002
|
message,
|
|
4036
4003
|
(!autoDismiss || showClose) && (React__default.default.createElement(InternalShadowIconButton, { "aria-label": "Dismiss", defaultIconColor: color, defaultTextColor: "transparent", hoverTextColor: "transparent", disabledTextColor: "transparent", hoverIconColor: color, iconName: "cross", onClick: function () { return setIsVisible(false); } })))); }));
|
|
4037
4004
|
};
|
|
4038
|
-
var templateObject_1$
|
|
4005
|
+
var templateObject_1$Z, templateObject_2$p;
|
|
4039
4006
|
|
|
4040
|
-
var StyledFlex$2 = styled__default.default(OakFlex)(templateObject_1$
|
|
4007
|
+
var StyledFlex$2 = styled__default.default(OakFlex)(templateObject_1$Y || (templateObject_1$Y = tslib.__makeTemplateObject(["\n width: max-content;\n pointer-events: none;\n"], ["\n width: max-content;\n pointer-events: none;\n"])));
|
|
4041
4008
|
var ARROW_SIZE = parseSpacing("spacing-16");
|
|
4042
4009
|
var StyledSvg$1 = styled__default.default.svg(templateObject_6$7 || (templateObject_6$7 = tslib.__makeTemplateObject(["\n position: absolute;\n ", "\n ", "\n"], ["\n position: absolute;\n ", "\n ", "\n"])), function (_a) {
|
|
4043
4010
|
var $tooltipPosition = _a.$tooltipPosition;
|
|
4044
4011
|
switch ($tooltipPosition) {
|
|
4045
4012
|
case "bottom-right":
|
|
4046
|
-
return styled.css(templateObject_2$
|
|
4013
|
+
return styled.css(templateObject_2$o || (templateObject_2$o = tslib.__makeTemplateObject(["\n top: -", ";\n right: ", ";\n transform: scale(-1, -1);\n "], ["\n top: -", ";\n right: ", ";\n transform: scale(-1, -1);\n "])), ARROW_SIZE, parseSpacing("spacing-0"));
|
|
4047
4014
|
case "top-right":
|
|
4048
|
-
return styled.css(templateObject_3$
|
|
4015
|
+
return styled.css(templateObject_3$i || (templateObject_3$i = tslib.__makeTemplateObject(["\n bottom: -", ";\n right: ", ";\n transform: scaleX(-1);\n "], ["\n bottom: -", ";\n right: ", ";\n transform: scaleX(-1);\n "])), ARROW_SIZE, parseSpacing("spacing-0"));
|
|
4049
4016
|
case "top-left":
|
|
4050
|
-
return styled.css(templateObject_4$
|
|
4017
|
+
return styled.css(templateObject_4$b || (templateObject_4$b = tslib.__makeTemplateObject(["\n bottom: -", ";\n left: ", ";\n "], ["\n bottom: -", ";\n left: ", ";\n "])), ARROW_SIZE, parseSpacing("spacing-0"));
|
|
4051
4018
|
default:
|
|
4052
|
-
return styled.css(templateObject_5$
|
|
4019
|
+
return styled.css(templateObject_5$9 || (templateObject_5$9 = tslib.__makeTemplateObject(["\n top: -", ";\n left: ", ";\n transform: scaleY(-1);\n "], ["\n top: -", ";\n left: ", ";\n transform: scaleY(-1);\n "])), ARROW_SIZE, parseSpacing("spacing-0"));
|
|
4053
4020
|
}
|
|
4054
4021
|
}, responsiveStyle("fill", function (props) { return props.$fill; }, parseColor));
|
|
4055
4022
|
/**
|
|
@@ -4062,7 +4029,7 @@ var InternalTooltip = function (_a) {
|
|
|
4062
4029
|
React__default.default.createElement(StyledSvg$1, { width: ARROW_SIZE, height: ARROW_SIZE, "$fill": $background, "$tooltipPosition": tooltipPosition, "data-testid": "tooltip-arrow" },
|
|
4063
4030
|
React__default.default.createElement("path", { d: "M0 0H16L8 8L0 16V0Z" }))));
|
|
4064
4031
|
};
|
|
4065
|
-
var templateObject_1$
|
|
4032
|
+
var templateObject_1$Y, templateObject_2$o, templateObject_3$i, templateObject_4$b, templateObject_5$9, templateObject_6$7;
|
|
4066
4033
|
|
|
4067
4034
|
/**
|
|
4068
4035
|
* A tooltip with oven-ready styling and positioning.
|
|
@@ -4190,7 +4157,7 @@ var fallbackActiveShadow = "".concat(parseDropShadow("drop-shadow-lemon"), ", ")
|
|
|
4190
4157
|
/**
|
|
4191
4158
|
* Wrap focusable components `<a/>`/`<button/>` and this will add focus styles then the inner element is focused
|
|
4192
4159
|
*/
|
|
4193
|
-
var OakFocusIndicator = styled__default.default(OakBox)(templateObject_1$
|
|
4160
|
+
var OakFocusIndicator = styled__default.default(OakBox)(templateObject_1$X || (templateObject_1$X = tslib.__makeTemplateObject(["\n ", "\n box-shadow: ", ";\n\n &:has(", ") {\n ", "\n box-shadow: ", ";\n }\n\n &:has(", ") {\n ", "\n box-shadow: ", ";\n\n & ", " {\n outline: none;\n }\n }\n\n &:has(", ") {\n box-shadow: ", ";\n }\n"], ["\n ", "\n box-shadow: ", ";\n\n &:has(", ") {\n ", "\n box-shadow: ", ";\n }\n\n &:has(", ") {\n ", "\n box-shadow: ", ";\n\n & ", " {\n outline: none;\n }\n }\n\n &:has(", ") {\n box-shadow: ", ";\n }\n"])), function (props) {
|
|
4194
4161
|
if (props.as === "li") {
|
|
4195
4162
|
return "\n list-style: none;\n margin: 0;\n padding: 0;\n ";
|
|
4196
4163
|
}
|
|
@@ -4203,9 +4170,9 @@ var OakFocusIndicator = styled__default.default(OakBox)(templateObject_1$Y || (t
|
|
|
4203
4170
|
? parseDropShadow(props.activeDropShadow)
|
|
4204
4171
|
: fallbackActiveShadow;
|
|
4205
4172
|
});
|
|
4206
|
-
var templateObject_1$
|
|
4173
|
+
var templateObject_1$X;
|
|
4207
4174
|
|
|
4208
|
-
var StyledPromoTag = styled__default.default(OakFlex)(templateObject_1$
|
|
4175
|
+
var StyledPromoTag = styled__default.default(OakFlex)(templateObject_1$W || (templateObject_1$W = tslib.__makeTemplateObject(["\n aspect-ratio: 2 / 1;\n"], ["\n aspect-ratio: 2 / 1;\n"])));
|
|
4209
4176
|
/**
|
|
4210
4177
|
* Renders a tag with the text "New"
|
|
4211
4178
|
*/
|
|
@@ -4217,7 +4184,7 @@ var OakPromoTag = function (props) {
|
|
|
4217
4184
|
React__default.default.createElement(OakFlex, { "$position": "absolute", "$inset": "spacing-0", "$alignItems": "center", "$justifyContent": "center" },
|
|
4218
4185
|
React__default.default.createElement(OakSpan, { "$color": variant === "default" ? "text-promo" : "text-primary", "$font": ["body-3-bold", "body-3-bold", "heading-7"] }, "New"))));
|
|
4219
4186
|
};
|
|
4220
|
-
var templateObject_1$
|
|
4187
|
+
var templateObject_1$W;
|
|
4221
4188
|
|
|
4222
4189
|
var OakErrorBoundaryBorderColor = React.createContext("border-neutral-lighter");
|
|
4223
4190
|
/**
|
|
@@ -4278,10 +4245,10 @@ var OakErrorBoundary = /** @class */ (function (_super) {
|
|
|
4278
4245
|
* it a unique 'id'. Then link it elsewhere using `<a href='#${id}' />`.
|
|
4279
4246
|
*
|
|
4280
4247
|
* */
|
|
4281
|
-
var OakAnchorTarget = styled__default.default.span(templateObject_1$
|
|
4282
|
-
var templateObject_1$
|
|
4248
|
+
var OakAnchorTarget = styled__default.default.span(templateObject_1$V || (templateObject_1$V = tslib.__makeTemplateObject(["\n position: absolute;\n top: 0;\n ", "\n"], ["\n position: absolute;\n top: 0;\n ", "\n"])), responsiveStyle("scroll-margin-top", function (props) { return props.$pt; }, parseSpacing));
|
|
4249
|
+
var templateObject_1$V;
|
|
4283
4250
|
|
|
4284
|
-
var StyleInternalLink = styled__default.default(InternalLink)(templateObject_1$
|
|
4251
|
+
var StyleInternalLink = styled__default.default(InternalLink)(templateObject_1$U || (templateObject_1$U = tslib.__makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n"], ["\n display: inline-flex;\n align-items: center;\n"])));
|
|
4285
4252
|
/**
|
|
4286
4253
|
* deprecated - use `<OakLink />` instead
|
|
4287
4254
|
* @deprecated
|
|
@@ -4296,7 +4263,7 @@ var OakHoverLink = React.forwardRef(function (props, ref) {
|
|
|
4296
4263
|
var color = props.displayDisabled ? "text-disabled" : "text-primary";
|
|
4297
4264
|
return (React__default.default.createElement(StyleInternalLink, tslib.__assign({ color: color, hoverColor: color, activeColor: color, disabledColor: color, visitedColor: color, textDecoration: "none" }, props, { ref: ref })));
|
|
4298
4265
|
});
|
|
4299
|
-
var templateObject_1$
|
|
4266
|
+
var templateObject_1$U;
|
|
4300
4267
|
|
|
4301
4268
|
var generatePageNumbers = function (activePage, totalPages) {
|
|
4302
4269
|
var pageNumbers = [];
|
|
@@ -4316,13 +4283,13 @@ var generatePageNumbers = function (activePage, totalPages) {
|
|
|
4316
4283
|
return pageNumbers;
|
|
4317
4284
|
};
|
|
4318
4285
|
|
|
4319
|
-
var StyledChevronButton = styled__default.default(OakLink)(templateObject_2$
|
|
4320
|
-
var StyledIcon = styled__default.default(OakIcon)(templateObject_4$
|
|
4286
|
+
var StyledChevronButton = styled__default.default(OakLink)(templateObject_2$n || (templateObject_2$n = tslib.__makeTemplateObject(["\n display: inline-block;\n ", "\n"], ["\n display: inline-block;\n ", "\n"])), function (props) { return styled.css(templateObject_1$T || (templateObject_1$T = tslib.__makeTemplateObject(["\n &:disabled {\n color: ", ";\n cursor: pointer;\n }\n "], ["\n &:disabled {\n color: ", ";\n cursor: pointer;\n }\n "])), props.disabledColor); });
|
|
4287
|
+
var StyledIcon = styled__default.default(OakIcon)(templateObject_4$a || (templateObject_4$a = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
4321
4288
|
if (props.disabled) {
|
|
4322
|
-
return styled.css(templateObject_3$
|
|
4289
|
+
return styled.css(templateObject_3$h || (templateObject_3$h = tslib.__makeTemplateObject(["\n filter: ", ";\n "], ["\n filter: ", ";\n "])), parseColorFilter("icon-disabled"));
|
|
4323
4290
|
}
|
|
4324
4291
|
});
|
|
4325
|
-
var StyledNumberButton = styled__default.default(OakLink)(templateObject_8 || (templateObject_8 = tslib.__makeTemplateObject(["\n height: 30px;\n width: 30px;\n border-radius: 100px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-decoration: none;\n ", "\n color: ", ";\n\n ", ";\n\n ", "\n\n &:hover {\n text-decoration: underline;\n ", "\n }\n"], ["\n height: 30px;\n width: 30px;\n border-radius: 100px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-decoration: none;\n ", "\n color: ", ";\n\n ", ";\n\n ", "\n\n &:hover {\n text-decoration: underline;\n ", "\n }\n"])), typographyStyle, parseColor("text-primary"), function (props) { return styled.css(templateObject_5$
|
|
4292
|
+
var StyledNumberButton = styled__default.default(OakLink)(templateObject_8 || (templateObject_8 = tslib.__makeTemplateObject(["\n height: 30px;\n width: 30px;\n border-radius: 100px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-decoration: none;\n ", "\n color: ", ";\n\n ", ";\n\n ", "\n\n &:hover {\n text-decoration: underline;\n ", "\n }\n"], ["\n height: 30px;\n width: 30px;\n border-radius: 100px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-decoration: none;\n ", "\n color: ", ";\n\n ", ";\n\n ", "\n\n &:hover {\n text-decoration: underline;\n ", "\n }\n"])), typographyStyle, parseColor("text-primary"), function (props) { return styled.css(templateObject_5$8 || (templateObject_5$8 = tslib.__makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), props.selected
|
|
4326
4293
|
? parseColor("icon-primary")
|
|
4327
4294
|
: parseColor("icon-inverted")); }, function (props) {
|
|
4328
4295
|
return props.selected && styled.css(templateObject_6$6 || (templateObject_6$6 = tslib.__makeTemplateObject(["\n color: ", ";\n &:visited {\n color: ", ";\n }\n "], ["\n color: ", ";\n &:visited {\n color: ", ";\n }\n "])), parseColor("text-inverted"), parseColor("text-inverted"));
|
|
@@ -4388,7 +4355,7 @@ var OakPagination = function (_a) {
|
|
|
4388
4355
|
}, "aria-disabled": isLastPage, disabled: isLastPage, "aria-label": isLastPage ? "No further pages" : "Go to next page" },
|
|
4389
4356
|
React__default.default.createElement(StyledIcon, { disabled: isLastPage, iconName: "chevron-right" })))));
|
|
4390
4357
|
};
|
|
4391
|
-
var templateObject_1$
|
|
4358
|
+
var templateObject_1$T, templateObject_2$n, templateObject_3$h, templateObject_4$a, templateObject_5$8, templateObject_6$6, templateObject_7$3, templateObject_8, templateObject_9;
|
|
4392
4359
|
/**
|
|
4393
4360
|
*
|
|
4394
4361
|
* Add the description of the component here and it will appear on the story for the component
|
|
@@ -4407,7 +4374,7 @@ var templateObject_1$U, templateObject_2$o, templateObject_3$i, templateObject_4
|
|
|
4407
4374
|
*
|
|
4408
4375
|
*/
|
|
4409
4376
|
|
|
4410
|
-
var OakPrimaryButtonWithoutPointerEvents = styled__default.default(OakPrimaryButton)(templateObject_1$
|
|
4377
|
+
var OakPrimaryButtonWithoutPointerEvents = styled__default.default(OakPrimaryButton)(templateObject_1$S || (templateObject_1$S = tslib.__makeTemplateObject(["\n pointer-events: none;\n"], ["\n pointer-events: none;\n"])));
|
|
4411
4378
|
/**
|
|
4412
4379
|
*
|
|
4413
4380
|
* A specific implementation of OakPrimaryButton and OakPrimaryInvertedButton rendering
|
|
@@ -4420,7 +4387,7 @@ var OakPrimaryNavItem = function (_a) {
|
|
|
4420
4387
|
var href = _a.href, _b = _a.isCurrent, isCurrent = _b === void 0 ? false : _b, _c = _a.shallow, shallow = _c === void 0 ? true : _c, children = _a.children;
|
|
4421
4388
|
return isCurrent ? (React__default.default.createElement(OakPrimaryButtonWithoutPointerEvents, { element: "span", "aria-current": "page" }, children)) : (React__default.default.createElement(OakPrimaryInvertedButton, { element: Link__default.default, href: href, shallow: shallow, isTrailingIcon: true }, children));
|
|
4422
4389
|
};
|
|
4423
|
-
var templateObject_1$
|
|
4390
|
+
var templateObject_1$S;
|
|
4424
4391
|
|
|
4425
4392
|
/**
|
|
4426
4393
|
* A row of buttons for navigating between different sections
|
|
@@ -4439,7 +4406,7 @@ var OakPrimaryNav = function (_a) {
|
|
|
4439
4406
|
};
|
|
4440
4407
|
|
|
4441
4408
|
// we do this to avoid type errors when spreading props
|
|
4442
|
-
var StyledInternalLink = styled__default.default(InternalLink)(templateObject_1$
|
|
4409
|
+
var StyledInternalLink = styled__default.default(InternalLink)(templateObject_1$R || (templateObject_1$R = tslib.__makeTemplateObject([""], [""])));
|
|
4443
4410
|
/**
|
|
4444
4411
|
* deprecated - use `<OakLink variant="secondary"/>` instead
|
|
4445
4412
|
* @deprecated
|
|
@@ -4455,10 +4422,10 @@ var OakSecondaryLink = React.forwardRef(function (props, ref) {
|
|
|
4455
4422
|
var visitedColor = displayDisabled ? "text-disabled" : "text-primary";
|
|
4456
4423
|
return (React__default.default.createElement(StyledInternalLink, tslib.__assign({ color: color, hoverColor: color, activeColor: color, disabledColor: "text-disabled", visitedColor: visitedColor, textDecoration: "none" }, restProps, { ref: ref })));
|
|
4457
4424
|
});
|
|
4458
|
-
var templateObject_1$
|
|
4425
|
+
var templateObject_1$R;
|
|
4459
4426
|
|
|
4460
|
-
var StyledFocusOutline = styled__default.default(OakFlex)(templateObject_1$
|
|
4461
|
-
var StyledTabButton = styled__default.default(InternalButton)(templateObject_2$
|
|
4427
|
+
var StyledFocusOutline = styled__default.default(OakFlex)(templateObject_1$Q || (templateObject_1$Q = tslib.__makeTemplateObject([""], [""])));
|
|
4428
|
+
var StyledTabButton = styled__default.default(InternalButton)(templateObject_2$m || (templateObject_2$m = tslib.__makeTemplateObject(["\n width: 100%;\n height: 100%;\n border-radius: ", ";\n &:hover {\n color: ", ";\n background: ", ";\n }\n &:focus-visible:not(&:active) {\n box-shadow: ", ";\n ", " {\n box-shadow: ", ";\n }\n }\n"], ["\n width: 100%;\n height: 100%;\n border-radius: ", ";\n &:hover {\n color: ", ";\n background: ", ";\n }\n &:focus-visible:not(&:active) {\n box-shadow: ", ";\n ", " {\n box-shadow: ", ";\n }\n }\n"])), parseBorderRadius("border-radius-circle"), function (props) { return parseColor(props.$hoverColor); }, function (props) { return parseColor(props.$hoverBackground); }, parseDropShadow("drop-shadow-centered-grey"), StyledFocusOutline, parseDropShadow("drop-shadow-centered-lemon"));
|
|
4462
4429
|
function OakTabs(props) {
|
|
4463
4430
|
var colorVariant = props.colorVariant, sizeVariant = props.sizeVariant, tabs = props.tabs, activeTab = props.activeTab, onTabClick = props.onTabClick;
|
|
4464
4431
|
var backgroundColor = colorVariant === "black" ? "bg-inverted" : "bg-primary";
|
|
@@ -4480,12 +4447,12 @@ function OakTabs(props) {
|
|
|
4480
4447
|
showPromo && (React__default.default.createElement(OakPromoTag, { display: ["none", "flex", "flex"], variant: isSelected ? "default" : "inverted" })))))));
|
|
4481
4448
|
})));
|
|
4482
4449
|
}
|
|
4483
|
-
var templateObject_1$
|
|
4450
|
+
var templateObject_1$Q, templateObject_2$m;
|
|
4484
4451
|
|
|
4485
|
-
var CardContent = styled__default.default(OakFlex)(templateObject_1$
|
|
4486
|
-
var StyledOakImage = styled__default.default(OakImage)(templateObject_2$
|
|
4487
|
-
var rowStyles = styled.css(templateObject_3$
|
|
4488
|
-
var columnStyles = styled.css(templateObject_4$
|
|
4452
|
+
var CardContent = styled__default.default(OakFlex)(templateObject_1$P || (templateObject_1$P = tslib.__makeTemplateObject([""], [""])));
|
|
4453
|
+
var StyledOakImage = styled__default.default(OakImage)(templateObject_2$l || (templateObject_2$l = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n\n img {\n border-radius: inherit;\n object-fit: cover;\n }\n"], ["\n ", "\n ", "\n ", "\n\n img {\n border-radius: inherit;\n object-fit: cover;\n }\n"])), sizeStyle, colorStyle, borderStyle);
|
|
4454
|
+
var rowStyles = styled.css(templateObject_3$g || (templateObject_3$g = tslib.__makeTemplateObject(["\n flex-direction: row;\n\n ", " {\n height: ", ";\n }\n\n ", " {\n height: auto;\n padding-top: ", ";\n padding-bottom: ", ";\n }\n"], ["\n flex-direction: row;\n\n ", " {\n height: ", ";\n }\n\n ", " {\n height: auto;\n padding-top: ", ";\n padding-bottom: ", ";\n }\n"])), StyledOakImage, parseSpacing("spacing-240"), CardContent, parseSpacing("spacing-24"), parseSpacing("spacing-24"));
|
|
4455
|
+
var columnStyles = styled.css(templateObject_4$9 || (templateObject_4$9 = tslib.__makeTemplateObject(["\n flex-direction: column;\n\n ", " {\n height: auto;\n }\n\n ", " {\n height: 100%;\n padding-top: ", ";\n padding-bottom: ", ";\n }\n"], ["\n flex-direction: column;\n\n ", " {\n height: auto;\n }\n\n ", " {\n height: 100%;\n padding-top: ", ";\n padding-bottom: ", ";\n }\n"])), StyledOakImage, CardContent, parseSpacing("spacing-0"), parseSpacing("spacing-0"));
|
|
4489
4456
|
var getCardOrientationStyles = function (orientation) {
|
|
4490
4457
|
return orientation === "row" ? rowStyles : columnStyles;
|
|
4491
4458
|
};
|
|
@@ -4494,7 +4461,7 @@ var getResponsiveCardOrientationStyles = function (cardOrientation) {
|
|
|
4494
4461
|
return getCardOrientationStyles(cardOrientation);
|
|
4495
4462
|
}
|
|
4496
4463
|
var _a = tslib.__read(cardOrientation, 2), smallOrientation = _a[0], largeOrientation = _a[1];
|
|
4497
|
-
return styled.css(templateObject_5$
|
|
4464
|
+
return styled.css(templateObject_5$7 || (templateObject_5$7 = tslib.__makeTemplateObject(["\n ", ";\n\n @media (min-width: ", "px) {\n ", "\n }\n "], ["\n ", ";\n\n @media (min-width: ", "px) {\n ", "\n }\n "])), getCardOrientationStyles(smallOrientation), getBreakpoint("small"), getCardOrientationStyles(largeOrientation));
|
|
4498
4465
|
};
|
|
4499
4466
|
var StyledOakFlex$2 = styled__default.default(OakFlex)(templateObject_6$5 || (templateObject_6$5 = tslib.__makeTemplateObject(["\n ", "\n\n ", "\n\n &:hover {\n ", "\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n span {\n text-decoration: underline;\n }\n\n span {\n text-decoration-thickness: 18%;\n }\n }\n"], ["\n ", "\n\n ", "\n\n &:hover {\n ", "\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n span {\n text-decoration: underline;\n }\n\n span {\n text-decoration-thickness: 18%;\n }\n }\n"])), flexStyle, function (_a) {
|
|
4500
4467
|
var $cardOrientation = _a.$cardOrientation;
|
|
@@ -4535,10 +4502,10 @@ var OakCard = function (_a) {
|
|
|
4535
4502
|
React__default.default.createElement(OakSpan, { "$font": "heading-light-7" }, linkText),
|
|
4536
4503
|
React__default.default.createElement(OakIcon, { iconName: linkIconName, alt: "", "$width": "spacing-24", "$height": "spacing-24" }))))))));
|
|
4537
4504
|
};
|
|
4538
|
-
var templateObject_1$
|
|
4505
|
+
var templateObject_1$P, templateObject_2$l, templateObject_3$g, templateObject_4$9, templateObject_5$7, templateObject_6$5;
|
|
4539
4506
|
|
|
4540
|
-
var BreadcrumbsUl = styled__default.default("ul")(templateObject_1$
|
|
4541
|
-
var BreadcrumbsLi = styled__default.default("li")(templateObject_2$
|
|
4507
|
+
var BreadcrumbsUl = styled__default.default("ul")(templateObject_1$O || (templateObject_1$O = tslib.__makeTemplateObject(["\n margin: ", ";\n padding: ", ";\n list-style: none;\n display: flex;\n gap: ", ";\n align-items: center;\n font-size: ", ";\n font-weight: ", ";\n flex-wrap: wrap;\n"], ["\n margin: ", ";\n padding: ", ";\n list-style: none;\n display: flex;\n gap: ", ";\n align-items: center;\n font-size: ", ";\n font-weight: ", ";\n flex-wrap: wrap;\n"])), parseSpacing("spacing-0"), parseSpacing("spacing-0"), parseSpacing("spacing-8"), parseFontSize("body-2"), parseFontSize("body-2"));
|
|
4508
|
+
var BreadcrumbsLi = styled__default.default("li")(templateObject_2$k || (templateObject_2$k = tslib.__makeTemplateObject(["\n display: flex;\n gap: ", ";\n align-items: center;\n flex: 0;\n max-width: 100%;\n"], ["\n display: flex;\n gap: ", ";\n align-items: center;\n flex: 0;\n max-width: 100%;\n"])), parseSpacing("spacing-8"));
|
|
4542
4509
|
function OakBreadcrumbText(props) {
|
|
4543
4510
|
return (React__default.default.createElement(OakBox, tslib.__assign({ "$whiteSpace": "nowrap", "$textOverflow": "ellipsis", "$minWidth": "spacing-0", "$overflow": "hidden" }, props), props.children));
|
|
4544
4511
|
}
|
|
@@ -4558,9 +4525,9 @@ var OakBreadcrumbs = function (_a) {
|
|
|
4558
4525
|
React__default.default.createElement(OakBreadcrumbText, null, breadcrumb.text)))));
|
|
4559
4526
|
}))));
|
|
4560
4527
|
};
|
|
4561
|
-
var templateObject_1$
|
|
4528
|
+
var templateObject_1$O, templateObject_2$k;
|
|
4562
4529
|
|
|
4563
|
-
var StyledAccordionButton$2 = styled__default.default(InternalAccordionButton)(templateObject_1$
|
|
4530
|
+
var StyledAccordionButton$2 = styled__default.default(InternalAccordionButton)(templateObject_1$N || (templateObject_1$N = tslib.__makeTemplateObject(["\n ", "\n ", "\n min-width: 0;\n &:hover {\n .chevron-icon {\n filter: ", ";\n }\n }\n &:focus-visible {\n .focus-outline {\n box-shadow:\n ", ",\n ", ";\n }\n }\n"], ["\n ", "\n ", "\n min-width: 0;\n &:hover {\n .chevron-icon {\n filter: ", ";\n }\n }\n &:focus-visible {\n .focus-outline {\n box-shadow:\n ", ",\n ", ";\n }\n }\n"])), flexStyle, oakBoxCss, parseColorFilter("icon-subdued"), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"));
|
|
4564
4531
|
/**
|
|
4565
4532
|
* Internal accordion component that handles the accordion logic
|
|
4566
4533
|
*/
|
|
@@ -4597,15 +4564,15 @@ var OakResourcesAccordion = function (_a) {
|
|
|
4597
4564
|
return (React__default.default.createElement(InternalAccordionProvider, { isInitialOpen: initialOpen },
|
|
4598
4565
|
React__default.default.createElement(Accordion$2, tslib.__assign({}, props))));
|
|
4599
4566
|
};
|
|
4600
|
-
var templateObject_1$
|
|
4567
|
+
var templateObject_1$N;
|
|
4601
4568
|
|
|
4602
|
-
var StyledSvg = styled__default.default.svg(templateObject_1$
|
|
4569
|
+
var StyledSvg = styled__default.default.svg(templateObject_1$M || (templateObject_1$M = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), sizeStyle);
|
|
4603
4570
|
var SurfingStudentSVG = function (props) {
|
|
4604
4571
|
return (React__default.default.createElement(OakBox, tslib.__assign({}, props),
|
|
4605
4572
|
React__default.default.createElement(StyledSvg, { "$width": ["spacing-100", "spacing-180", "spacing-240"], viewBox: "0 0 251 198", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
4606
4573
|
React__default.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.953 129.656v-.231l1.136-.23c-.161-.595-.36-.749-.682-1.152H3.18v-.461l-.454-.23c-.398-.596-.634-1.152-.909-1.844l.682-.46c.35-.25 1.145.076 2.044 0 .445-.039.454-.231.454-.231H7.95c-.18-.682-.53-.912-.908-1.382h-.228v-.461h-.227v-.461l-.454-.23v-.461h-.227c-.312-.509.095-.327-.454-.691.094-.72.047-.586.454-.922v-.23c.378-.212.833.307.908.23v-.691c.398-.547 1.051-.231 1.818-.461 1.296-.384 4.704-.355 6.587-.922l4.089-.23v-.23l.227.23c.322-.029-.085-.154.227-.23h2.271v-.231l3.862-.23v-.231l1.136.231v-.231l2.726-.23v-.23h2.725v-.231h2.045v-.23h1.59v-.231h2.271v-.23h3.407v-.23h1.59v-.231h1.363v-.23h2.272v-.231h2.499v-.23l.681.23v-.23h.909v-.23l3.18-.231c.056.01.066.317.454.231v-.231h.909v-.23h1.817v-.231l.227.231h.227v-.231h1.817v-.23h1.817v-.23h2.5c1.74-.548 4.381-.404 6.132-.922l4.316-.23v-.231h2.499c1.732-.537 4.363-.403 6.133-.921h2.725v-.231h.909v-.23l4.089-.231v-.23h2.271v-.23h2.045v-.231H97.9v-.23h1.363v-.231h2.272v-.23c.511-.154 1.59.23 1.59.23v-.23h.908v-.23h2.272v-.231h.227v.231c.502.019.454-.231.454-.231h1.363v-.23h1.363v-.231h.227l.227-1.382h.228v-.922h.227v-.46h.227l.227-1.383h.227v-1.152h.227v-.691h.227v-.691h.228v-.691h.227v-.692h.227v-.46h.227v-.692h.227v-.46h.227v-.922h.228v-.691h.227v-.691h.227v-1.152h.227v-.692h.227v-.69h.227l.227-1.844h.228v-.46h.227v-.692h.227v-.691h.227v-.691h.227l.682-3.226h.227v-.46h.227v-1.153h.227v-.46h.227v-.692h.227v-.921h.228v-.461h.227l.227-.922h.227l.227-2.073h.227v-.461h.227v-.692h.228v-.69h.227v-.692h.227v-.691h.227l.227-1.843h.227v-.461h.227v-.691h.228c.113-.692-.379-.49-.455-.692V69.06h.227l-.227-2.304c0-.71.521-1.978.227-2.995h-.227v-.922h-.227v-.691h-.227v-.922h-.227v-1.612h-.227v-1.152h-.227v-1.383h-.228v-1.613h-.227v-2.304h-.227v-.921h-.227v-1.843c0-2.583.407-4.618.454-6.912l-2.498-.922v-.23h-.455v-.23h-.908v-.231l-.909-.23v-.231h-.681v-.23l-.909-.23v-.231h-.681v-.23h-.455v-.231h-.454l-.227-.46-1.363-.231v-.23h-.454v-.231l-.909-.23v-.23q-.681-.117-1.363-.231v-.23l-.908-.231v-.23h-.682v-.23h-.454v-.231l-.909-.23v-.231l-1.363-.23v-.23l-1.363-.462v-.23h-.454v-.23h-.681v-.23h-.455v-.231l-1.362-.23V34.5h-.455v-.23h-.681l-.227-.461h-.455v-.23h-.454v-.231h-.681v-.23h-.682v-.23l-.909-.231v-.23l-1.362-.231v-.23l-1.363-.461v-.23h-1.363v-.231h-.909v-.23c-.378-.077-.397.22-.454.23H85.18v.23h-1.363v-.23l-1.136-.23v-.461h-.227v-.23h.227V28.97h.455v-.46c.577-.145 1.315-.71 1.59-1.152.728.086.662.21 1.135.46l-.227 1.152c-.53.135-.852.327-1.136.692h-.227v.23c.862-.048 1.439-.279 2.045-.46h2.953c.028-.932.094-1.46.454-2.074h.227l.227-.692c-.322-.134-.51-.076-.908-.23v-.23h-3.18v-.23H84.5v-.231h-1.136v-.23l-1.59-.231v-.23l-1.59-.23v-.231l-2.045-.692c.133-.355.18-.374.228-.921.255-.202.037.029.227-.23 1.116.067 1.296.431 2.044.69h1.136v.231h.681v.23h.682v.23h.908v.231h1.136v.23l4.77.231v.23l.909.23v.231h.454l.227.461.909.23v.23l4.997.692v.23h.454v.23l2.726.462v.23h.454l.228.46 1.135.231v.23h.455v.231l.454-.23v.23l3.634.691v.23h.909v.231l2.726.23v.23l2.271.231v.23l1.817.231v.23h.682v.23h.908v.231h.909v.23h1.136v.231h.681v.23h1.136v.23h1.136v.231h.454v.23l1.817-.23c.123-.048 1.297-.825 1.363-.921.36-.567-.218-.423.454-.922v-.691l-.681-.23-.227-.692-.909-.69v-.462h-.227v-.69h-.227v-.692h-.227v-.46h-.227v-.922h-.228c-.321-1.085.019-4.301.228-5.07v-2.073h.227v-.691h.227l.227-.922h.227v-.691h.227v-.691l.455-.23v-.461l.454-.23v-.462l.681-.46v-.692l.455-.23.227-.922.454-.23v-.46h.227l.227-.692.455-.23v-.461l.454-.461h.454l.227-.46h.455l.227-.462h.454v-.23l.909-.23v-.23h.908v-.231h.682v-.23h1.817v-.231h4.089v.23h3.634v-.23h.909v-.23l1.59-.23.681-.922.682-.23.227-.462h.454l.454-.69.909-.231.227-.461h.454l.228-.46h.454l.227-.462.909-.23.227-.46h.454v-.231h.454v-.23h.682v-.231h.681v-.23h.682v-.23h.681v-.231h1.136v-.23h1.136V.63l.454.23V.63h.227v.23h2.272l4.997 1.613v.23h.454v.231l1.59.23v.23h.455v.231l1.817.23v.231h1.135v-.23l1.136.23v-.23h1.136v-.23h.681v-.231h.909v-.23l2.953-.461v-.23h.909v-.231h.454v-.23h.681v-.231l4.089-.691.454.23c.284-.153-.094-.269.227-.23v.23h3.408v.23h.454v.231l2.953.691v.23l.909.231v.23h.454l.227.461.909.23.681.922h.454l.682 1.152 1.363 1.152v.691l.681.461v.461h.227l.227.922h.228l.227 1.612h.227v.922h.227v.922h.227v.921h.227v1.613h-.227c-.369 1.344.171 2.765-.227 3.917h-.227v.691h-.227l-.227 1.383h-.228l-.227.921h-.227v.46h-.227c-.265.347-.312.404-.454.922h-.455c-.265 1.037-.842 1.095-1.59 1.613l-.227.461h-.454l-.227.46-.909.231v.23l-.908.231v.23h-.682v.23h-.454v.231l-.455-.23v.23h-.454v.23h-.908v.231l-3.181.23v.23l-.454-.23v.23l-.454-.23h-1.59v-.23h-.227v.23h-.227v-.23h-.909v-.23h-.454v-.23h-.682v-.231h-.681v-.23h-.682v-.23l-1.59-.231-.227-.461-2.044-.46-.227-.462-1.136-.23v-.23h-5.906v.23l-1.817.23v.23l-1.363.462v.23h-.454v.23l-.909.23-.227.462h-.682l-.227.46-.681.23v.231l-2.045.691-.227.461-2.498.922-2.953.23v-.23c-1.268-.336-2.745.192-3.862-.23v-.231h-.681l-.227-.46h-.455l-.227-.462h-.454v-.23l-1.363-.46v-.231h-.681v-.23h-.909v-.231h-1.363v.23c-.596.183-1.136-.067-1.59.23l-.227.462c-.426.393-.956.758-1.59.921 0 .826-.123 1.248-.227 1.843h3.18v.23h.454v.231h1.136v.23h.908v.23h.909v.231l1.363.461v.23h.454v.23h.454v.231l1.136.23.454.692 1.818 1.613v.46l.681.461.682 2.074.454.23v.461h.227l1.363 5.99v5.3h.227l.454.691h.455l.681.922h.454l1.136 1.382h.454l.909 1.152h.454l.228.46h.454q.567.692 1.136 1.383h.454l.454.691h.454l1.136 1.383h.455l.227.46h.454l1.136 1.383h.454v.46c1.013.289.814.884 1.817 1.153v.46h.227l1.136 1.383h.454l.682.922h.454l.909 1.152h.454l.227.46h.227l.228.461h.454l.227.461.681.23v.23h.455l1.135 1.383 1.136.23 1.136 1.383h.454l.227.46 1.363.462v.23l1.136.922c-.142.547-.066.432-.454.69-.256.26 0 .097-.455.231-.567-.662-1.552-.69-2.271-1.152l-.227-.46h-.455l-.681-.922h-.454v-.23c-.341-.317-.294-.116-.455-.692l-.681-.23-.909 1.152h-.227v.46l-.454.231-.227 1.152h-.227c.066.518.019.605.227.922h.227v.46l.454.23v.462h.227v.69h.228l-.228.692v2.074h.228c0 .326-.18-.096-.228.23v1.613c1.789-.48 1.363-3.159 2.953-4.147.256-.26 0-.096.455-.23.246.306.624.422.908.69l.227.461h.455l.227.461h.454l.682.922h.454l.227.46.909.23.227.462h.454v.23h.454l.227.46c.682.442 1.108.203 1.591.922h.227v.23h-.227l-.228.692c-1.552-.077-1.741-.614-2.725-1.152l-.909-.23-.227-.461-.909-.23-.454-.692h-.454l-1.136-1.382h-.682c-.132 1.882-2.271 5.482-4.088 3.226-1.051-1.076.189-4.493-.682-5.53-.17-.653-.407-.663-.681-1.152h-.454l-.228-.922c-1.874-.412-2.924-1.862-4.315-2.764l-.909-.23-.227-.462c-.663-.45-.937-.422-1.363-1.152h-.454v-.46h-.455l-.454-.692h-.454l-.455-.46-.227-.692h-.454l-.227-.46-.682-.23v-.231h-.454l-.908-1.152h-.455l-.227-.461h-.454l-.682-.922h-.454l-.227-.46h-.454l-.682-.922h-.454l-.454-.691h-.455l-.227-.461h-.454c-.767-.442-.833-.855-2.045-.922l-.908 4.148h-.227v.46h-.227l-.228 1.613h-.227l-.227.922h-.227v.69l-.454.231-.228.922c-.331.624-.955 1.296-1.135 2.073-.994.288-.644.48-1.136 1.153l-.454.23v.23h-.455l-.454.692h-.454v.23l-.909.23v.23l-1.363.231v.23l-2.044.461c.142.836.331 1.392 0 2.304h-.227v1.152h-.227v.922h-.227v.46h-.228v.692h-.227v.922h-.227l-.227 2.303h-.227v.461h-.227l-.227 2.074h-.228v.691h-.227l-.227 1.613h-.227v.46h-.227v.922h-.227v.692h-.228v1.382h-.227v.691h-.227v.691h-.227l-.454 2.765h-.227v.691h-.228v1.152h-.227v1.152h-.227v.922h-.227v1.613h-.227l-.454 2.304h-.228l.228.691c1.391-.23 4.514-.384 6.36-.922h2.953v-.23h2.044v-.23h1.363v-.231h2.271v-.23h2.726v-.231h2.272v-.23h2.044v-.23h1.363v-.231h1.817v-.23h2.499v-.231h1.817v-.23c.852-.25 1.94.25 2.499-.23 1.523-.068 2.867-.375 3.18.921 1.117.25 1.779 1.152 2.498 1.843l.227.461h.455l1.363 1.613h.454l1.136 1.382c.946.692 1.912 1.277 2.498 2.304h.455c.161.576.113.375.454.692v.23h.454l.455.691h.454l.227.461.909.691 1.135 1.383h.455l.681.921h.454l2.272 2.535h.454l1.363 1.612h.454l1.59 1.844h.455l.681.921h.454v.461h.228v.23h.454l.908 1.153h.455l1.363 1.612h.454v.461l.909.461 1.817 2.074h.454l.682.921h.454l.454.691h.227v.461h.227l.455.691.908.231 2.499 2.765c.464.46 1.003.556 1.363 1.152h.454c.275.912.057.288.682.691v.23h.454l1.363 1.613h.454v.23l.909.692v.46c.586.164.738.365 1.135.692v.23h.455l.454.691h.454l2.045 2.304h.454l1.59 1.843h.454v.231l.909.691 1.59 1.843h.454l.455.691h.454l.454.922h.454l.455.691h.454l1.59 1.843h.454l2.272 2.535h.454l1.363 1.613h.454c.228.787.758.758 1.136 1.382h.454v.461c1.628.451 2.717 2.64 4.089 3.456-.028.605-.085.787-.227 1.152l-.454.23v-.23h-1.363c-1.316.374-2.622.71-4.316.691v.461c.776.211 2.158 1.526 2.726 2.073l.227.461h.454l.454.691h.455v.461h.227c0 .135-.199.432-.227.922h-3.635c-.52.154-1.362.403-2.044.461.549 2.457 4.164 2.621 4.77 4.838h.227c-.151.595-.236.663-.681.922-.35.269-.994-.25-1.817 0v.23h-1.363v.231h-2.045c-2.555.768-5.868.624-8.404 1.382h-2.499c-1.722.461-5.669.72-7.95 1.382-.549.154-1.278-.24-1.363-.23v.23h-.681v.231h-2.272v.23h-1.363v.231h-1.59v.23l-4.543.23v.231h-.908v.23h-1.59v.231h-1.818v.23h-1.362v.23l-6.361.461v.231h-1.135v.23h-2.272v.23h-1.136v.231h-1.363v.23l-.454-.23v.23h-1.817c-2.063.624-5.035.538-7.042 1.152h-2.044v.231h-1.59v.23h-1.817v.23h-2.045v.231h-1.362v.23h-1.363v.231h-2.272v.23h-1.363v.23h-1.817v.231h-2.726v.23l-3.407.231v.23h-1.817v.23h-2.045v.231h-.908v.23h-1.817c-1.515.461-3.673.461-5.225.922h-2.725c-1.695.518-4.184.633-5.906 1.152h-2.726v.23h-1.363v.231h-2.272v.23l-2.498.23v.231c-.256.029-.587-.384-1.136-.231v.231h-1.363v.23l-2.953.231v.23h-2.044v.23h-1.59v.231h-1.817v.23h-2.045c-1.4.423-3.407.509-4.77.922h-2.498v.23h-1.136v.231H94.72c-3.028.912-7.004.72-9.994 1.612h-2.953v.231h-1.136c-1.997.643-5.054.518-7.042 1.152H72.46v.23h-2.045v.231h-1.59v.23H67.01v.23h-2.272v.231h-1.59v.23h-1.59c-2.262.691-5.28.979-8.177.922v-.461c-.18-.269-.227.23-.227.23l-.681-.23-.455-.691h-.227v-.461l-.681-.461v-.461l-.455-.23v-.461l-1.363-1.152v-.461l-1.362-1.152v-.46l-.682-.461v-.461l-1.136-.922v-.46l-.454-.231v-.461l-1.59-1.382v-.461l-.454-.23v-.461l-1.136-.922v-.46h-.227c-.322-.394-.54-.557-.682-1.152h-.454c-.151-.596-.549-1.22-.909-1.613l-.454-.231v-.46l-.681-.461-.227-.691-1.136-.922v-.461l-1.136-.921v-.461l-1.136-.922v-.461l-.681-.46-.227-.922-.682-.461v-.461l-1.136-.921v-.461h-.227l-.681-.922-.682-.46-.227-.922-.908-.691v-.461l-1.136-.922v-.461l-1.59-1.382v-.461l-.454-.23-.227-.922-1.818-1.613-.227-.691-.681-.461v-.46l-.909-.692v-.46l-1.363-1.152v-.461l-.454-.231v-.46l-1.136-.922v-.461l-.909-.691v-.461l-.68-.461v-.46l-.682-.461v-.461l-1.818-1.613v-.461l-.454-.23v-.461l-.681-.461v-.46l-1.363-1.152v-.461l-.454-.231v-.46l-.682-.461v-.461l-.909-.461v-.461l-.908-.691v-.461l-.909-.691v-.461l-.681-.46v-.461l-1.136-.922-.227-.691-.454-.23v-.461l-.909-.691v-.461l-.909-.691v-.461l-.681-.461c-.596-.624-1.221-1.488-1.59-2.304H2.5c-.133-.518-.19-.576-.455-.922h-.227v-.46l-.454-.231v-.461l-.454-.23c-.332-.355-.53-.845-.909-1.152.227-2.17 1.344-.854 2.953-1.382m119.935-93.543v.69l-.455.231v.922h-.227v.46h-.227v.692l-.454.23-.227 2.535h-.227v.691h-.228v.922h-.227l.227.921-.681 4.147h.227v3.226h.227v2.765h.227v.691h.228c.35 1.162-.228 2.266.454 2.995.132.461-.028.202.227.461.189-1.037.407-2.486.681-3.456v-5.76c-.018-.067-.293-.067-.227-.46h.227v-1.383h.228l.227-4.839h.227a.42.42 0 0 0-.227-.46l.227-1.152c-.085-.317-.284.086-.227-.23h.227v-.922h.227v-1.844h.227v-.69h.227l.228-1.844h.227l.227-.691zm6.133-24.653h-.227c.132.46-.029.201.227.46zm10.676 15.898c.312-.346.113-.298.681-.461v-.461c.095-.22.568 0 .455-.691h-.228c-.094-.288-.416-1.162-.227-1.613l.455-.23.227-.922.681-.46c.36-.673.038-1.23 0-2.075l-1.363-.23v.23h-.454v.23c-.634.212-1.59-.23-1.817-.46-1.316-.777-2.243-2.957-2.272-5.069a4.9 4.9 0 0 1-1.59-.691l-.227-.46-1.363-.231v-.23h-1.363v-.231c-.672-.202-3.038.029-3.407.23l-.454.692h-.455l-.681.921h-.227v.461l-.454.23-.455 1.383h-.227v.46h-.227l-.227 1.614h-.227v.69h-.227v1.844h-.228c-.208.72-.085 2.66.228 2.995v.922h.227c.17-.653.407-.663.681-1.152.521.076.587.029.909.23v.23l1.363.23v.231l3.407.23v-.23h1.59v-.23c.596.029.776.086 1.136.23-.019 1.613-.568 1.786-1.363 2.535l-.227.46-.909.23-.227.462h-.454v.23c-.587.269-1.354.058-1.818.46-2.848 0-2.508-1.305-3.861-2.533v-.461h-.227v.69l.454.231v.461l1.136 1.613h.454l.227.46.909.231.227.46h.681v.231c.606.298 2.149.99 3.18.691v-.23h1.136v-.23l.909-.23v-.231h.454l.682-.922.908-.23v-.23c.407-.327.549-.519 1.136-.692.132-.46-.029-.201.227-.46v-.23c.549-.203.521.412.909.46v-.23h.908v-.23l.682-.462v-.46zm-9.086 0v-.23c-1.212.018-3.265.095-3.862-.462h-.908l1.135 1.613h.682v.23c1.202-.067 1.846-.527 2.726-.921v-.23zm18.172 11.98h-.227l-.455-2.073-1.363-1.152v-.461l-.454-.23v-.461l-.454-.461h-.454l-.228-.46-2.044-.462v-.23h-.454v-.23h-1.59v-.23h-1.59c.568 1.228 1.381 1.593 1.363 3.455h1.362v-.23c1.382-.039 2.357-.058 2.953.69h.228v.692c.908 2.093.113 2.314-.682 3.917l4.543 4.378h.454l-.227-2.304h-.227v-2.304h-.227v-.922h-.227zm4.088 9.677h.455c-.019-1.814-.057-3.456-.455-4.838v-1.383h-.227v-.69h-.227v-.462h-.227v-.921h-.227l-.227-.922h-.227l-.228-.921-.454-.23-.227-.922h-.227l-1.136-1.383h-.227c.53 1.171 1.183 2.362 1.59 3.687.322 1.065-.151 2.275.454 2.995v4.377h.227c.464.663 1.174.932 1.59 1.613m-3.861 17.28c.199-.844.596-1.219.908-1.843v-.46h.228v-.922h.227v-.461h.227v-.691h.227v-.461h.227l.227-2.535c-.757-.182-.87-.518-1.59-.69l-.908 4.607-1.136-.23v-2.074h.227v-.691h.227V58h.227c-.047-1.133-.425-1.411-1.135-1.843h-.455v-.23l-.681-.462-2.272 10.83h2.272v-.231zm-3.18 5.3.227-.461h.454l.455-.692h.227l.227-1.151.454-.23v-.462h.227l.227-.69-3.18-.231-1.135.23v-.23c-.54.528-1.373 4.29-1.363 5.53 1.022-.212 2.385-1.066 3.18-1.614m-4.543.46c.076-1.277.483-2.15.681-3.225-.35-.135-.369-.183-.908-.23l-.455 3.455zm-1.136-28.109v-.46l.454-.23v-.462l1.59-1.382v-.46c.947-.212 1.127-.74 1.818-1.153.132-.46-.029-.202.227-.46-.019-1.2-.085-.903-.455-1.613-1.041 0-2.082.067-2.725.46l-.227.461h-.455l-1.363 1.152v.461l-1.363 1.152-.227.922-.681.46v.461l-.454.23v.461l-.455.23v.692l-.454.23v.461h-.227v.461h-.227v.691h-.227v.461h-.228l-.908 4.608h-.227v.46h-.227v2.535h-.228l-.227 3.917h.227v4.839l1.59 4.377.682.46.227.692h.227v.46l.454.462h.455l.454.69h.454l.227.462 1.363.46.228-2.303h.227v-.922h.227c.189-.326.17-.394.227-.922-1.022-.278-1.079-.854-1.59-1.612l-.454-.23c-1.221-1.95-1.818-4.657-1.818-7.835v-2.073h.228V53.16l2.498-7.603.455-.23.227-.922zm-5.224 51.84v-1.151h.227v-.692h.227l.227-2.073h.227l.227-.922h.228v-.921h.227v-.692h.227v-.921h.227V87.26h.227l.454-2.535h.228v-.69h.227l.227-1.844h.227v-.46h.227l.227-1.383h.228v-1.152l.681-2.074h-.227v-.23c-.511.21-1.316.028-2.045.23v.23l-3.861-.23v-.23h-1.59v-.23l-1.59-.231v-.23h-.682v-.23h-.908v-.231h-1.136v-.23l-.909-.231v-.23l-1.362-.23v-.231l-.909-.23v-.231l-.909-.23-.227-.461c-.416-.27-.511 0-.908-.461h-.228c-.085.47-.227.451-.227.46v1.153h-.227l-.227.921h-.227l-.227 1.844h-.227v.46h-.228l-.227 1.844h-.227l-.227.921h-.227l-.227 2.074h-.227l-.455 2.304h-.227v.691h-.227v.691h-.227v.922h-.227v.46h-.227v.922h-.228v.461h-.227l-.227 1.382h-.227l-.227 2.074h-.227l-.228 1.152h-.227v.46h-.227l-.227 1.383h-.227v.461h-.227v1.152h-.227v.691h-.228v.461h-.227v.691h-.227l-.227 2.304h-.227v.461h-.227l-.455 2.304h-.227v.691h-.227v.461h-.227l-.227 1.613h-.227v.921h-.228v.461h-.227l-.227 1.613h-.227c-.18.605.293 3.005.454 3.456h.227v1.152h.228v1.152h.227v.23h-.227c.066.317.151-.086.227.231v1.382h.227v1.152h.227l.227 2.996h.227l.228 4.147h.227v1.382h.227v1.843h.227v1.613l1.136 4.147c.511.135.568.192.908.461v.231h.455l.227.46h.454c.284.173 1.155.893 1.363 1.152h.227c-.113-2.486-.312-5.721-.908-7.833v-2.535h-.228v-1.382h.228l-.228-2.765h-.227l.227-.691c-.397-1.622-.227-4.215-.227-6.221v-1.843h-.227v-.231h.227v-1.152h.227v-.691h.228v-.461h.227v-.691h.227v-.691h.227l.454-1.382c.35.134.369.182.909.23a53.7 53.7 0 0 1 1.817-9.216l.454-4.147h.227l.228-2.304h.227l.227-2.535h.227v-1.152h.227v-.921h.227v-.922h.228v-1.15h.227v-1.152c.473-1.565.549-4.57 1.59-5.53.255-.259 0-.096.454-.23.199.23.388.326.681.46-.018 1.729-.312 2.66-.681 3.918l-.227 2.304h-.227v1.613c-.492 1.67-.767 3.945-1.363 5.99v1.843h-.227v.922h-.227v.921h-.228v1.383h-.227v1.152h-.227v.921h-.227l-.454 3.917h-.228v1.383h-.227v.921h-.227v.922h-.227v.921h-.227v1.844h-.227v1.152h-.227c-.123.297-.407 1.324-.228 1.843h.228v.461h.227l.227 1.382h.227l.227.922h.227v1.152h.227l.228.921h.227v.691h.227l.227.922h.227l.227 1.152h.228l.454 2.304h.227v.461h.227l.227 1.152h.227l.455 2.304h.227v.461h.227l.227 1.382h.227v.691h.227v.692h.228v.691h.227v.691h.227v.691h.227v.691h.227v.922h.227v.691h.227v.691h.228v.692h.227v1.152h.227v.46h.227l.227 1.383h.227v.461h.228v1.152h.227v.691h.227v.691h.227v.691h.227v.691h.227v.692h.227v.46h.228v.461h.227l.227.461h.454l.227.461.682.23v.231l.908.23.228.461h.454l.454.691c.824.576 1.761.73 2.272 1.613h.454l-1.817-6.451h-.227v-1.152h-.228l-.227-2.535h-.227v-.921h-.227v-.692h-.227l-.454-4.377h-.228l-.227-2.074h-.227v-.921h-.227v-.922h-.227v-.922h-.227l-.227-2.995h-.228v-.921h-.227v-.922h-.227v-1.383h-.227v-.921h-.227v-.922h-.227v-1.613h-.228v-1.612h-.227v-.922h-.227c-.303-1.018.284-1.968.454-2.534l.228-4.148h.227v-1.382h.227l.227-2.074h.227v-1.612h.227v-.692h.228v-1.612h.227v-1.152h.227v-.692h.227v-1.612c.312-1.028.804-2.42 1.136-3.456m-23.851 43.086.454.691h.455c.104.499.142.653.454.921-.142.548-.066.432-.454.692-.256.259 0 .096-.455.23-.549-.653-1.495-.941-2.044-1.613-1.164.029-1.817.115-2.726.461v.23h-.908v.231h-.455v.23h-.681v.231h-1.136c-1.751.556-3.918.844-5.451 1.612l-.228 2.074c3.19.288 7.846.365 10.676-.461h2.045v-.23h.908v-.231c.313-.009.369.375.909.231v-.231h2.499v-.23h2.953v-.23l1.135-.231v-3.917c-.274-.153-.312-.364-.454-.46h-.454l-.227-.461h-.455l-.227-.461h-.454l-.227-.461h-.455l-.227-.461c-.303-.115-.076.096-.227.231-.644.009-.842-.144-1.136-.461-.643.173-.653.413-1.135.691l.681.922h.454v.461c.076.172.502.096.455.46h-.228l-.227.692c-.956-.058-1.296-.231-1.817-.692l-.227-.46h-.909v-.231h-.227v.231zm6.36 15.667c-.028.403-.236.835-.227.921h.227v.692c.596.22 1.685-.02 2.499.23 1.656.518 5.338.778 7.269.23.728-.201 1.145.317 1.59.231v-.231h1.363v-.23l.454.23v-.23h2.044v-.23h2.045v-.231h.454v-.23c1.088-.471 2.678-.336 3.407-1.152h.227c-.407-.691.057-.999 0-1.152h-.227c-.019-1.911-.341-1.171-1.363-1.843l-.227-.461h-.454l-.227-.461h-.455l-.908-1.152h-.455v-.23h-.454l-.227-.461h-.454l-.227-.461h-1.363v-.23c-.322-.183-.388-.183-.909-.231-.142.547-.066.432-.454.691.265.471.662.884 1.135 1.152-.009.663-.075.989-.227 1.383h-.681v-.231c-.454-.326-1.07-.662-1.363-1.152-.823 0-1.041-.038-1.363.461h-.454l1.817 1.383c-.085.739-.208.672-.454 1.152h-.909l-.227-.461h-.454l-.228-.461c-.283-.269-.662-.374-.908-.691l-1.363.23v.231h-1.136l-.227.46h-.454v.231l-2.045.461v.23l-2.271.461v.23zm1.363-3.226 4.316-.921v-.231h.454l.227-.461 1.59-.23.228-.461h.681l.227-.461h.454v-.23h.455v-.23h.454l.454-.461h.455l.454-.691.681-.231v-.461c.142-.192.322.077.228-.23h-.228v-.461h-.227l-.454-2.534h-.227l-.227-1.613h-.228l-.227-.922h-.227v-.691h-.227l-.227-1.152-.682-.461v-.23h-.454l-.227-.461-.909-.691v-.461l-.454-.23c-.492-.528-1.155-1.047-1.363-1.843-1.088-.308-.965-1.095-2.044-1.383-.218-.825-.757-.969-1.136-1.613h-.454l.227 2.996h.227l-.227.921h.227v2.995h.227v.922h.227c.36 1.2-.056 4.147-.227 5.069h-.454v.461c-.672.172-.511.374-.681.46h-.909v.231h-1.136v.23c-.643.183-1.315-.345-1.59-.23v.23c-.804 0-1.533.039-2.044.231l1.363 1.612h.454l.681 1.152.682.461.227.461h.454c.152.125 1.013 1.574 1.136 1.843m1.363-35.712c-.407-.816-.842-1.853-.909-2.995-.53.614-.227 2.861-.227 3.917 0 1.603.114 3.724.227 4.377.246 1.421-.075 3.264.228 4.378.217.816-.228 1.786.227 2.304.104 1.507 1.041 1.747 1.817 2.534l4.77 5.069h.227l-.681-2.073v-.922h-.227v-.461h-.228v-.691h-.227v-.691h-.227v-.691h-.227l-.227-1.844h-.227l-.227-1.152h-.228l-.227-.921h-.227l-.227-1.613h-.227v-.461h-.227v-.691h-.228v-.461h-.227l-.227-1.382h-.227v-.461h-.227v-.922h-.227v-.461h-.227l-.228-1.382h-.227l-.227-.922h-.227v-.921h-.227zm112.893 45.85v-.461h-.227l-1.363-1.613h-.454l-1.817-2.073h-.455l-1.363-1.613h-.454l-.908-1.152-.682-.231-1.817-2.073h-.454l-.455-.691h-.454l-.909-1.383h-.454l-1.363-1.613h-.454l-1.363-1.612h-.454l-1.136-1.383h-.454l-1.59-1.843h-.455l-.908-1.152h-.455l-1.817-2.074h-.227l-.227-.46h-.454l-1.59-1.844h-.455l-2.726-2.995h-.454l-.681-.921h-.455l-.681-.922h-.454l-.227-.691-.455-.231-.681-.921-.909-.231-2.271-2.534h-.455l-.454-.691h-.454l-1.363-1.613h-.454l-1.59-1.843-.682-.231v-.46c-.511-.125-.577-.192-.908-.461v-.231h-.455v-.23c-.331-.317-.312-.115-.454-.691h-.454l-1.136-1.383h-.454v-.23l-.455-.231v-.46c-.956-.24-1.647-1.008-2.271-1.613l-.227-.461h-.455l-1.135-1.382h-.455c-.161-.663-.246-.768-.908-.922-.152-.576-.114-.374-.455-.691v-.231h-.454l-.454-.691h-.454l-.228-.461-.908-.691-.909-1.152h-.454v-.23l-.682-.461-.681-.922h-.454l-1.363-1.612h-.454l-1.591-1.844-.681-.23-.454-.691h-.455l-.227-.461c-.549-.518-1.533-1.651-2.271-1.843v-.231h-.227v.231h-1.59v.23h-1.818v.231h-2.271v.23h-.227v-.23h-.227v.23h-1.818v.23h-2.044v.231h-2.271v.23h-2.272v.231h-1.817v.23h-1.817v.23h-2.045v.231h-2.725v.23h-2.499v.231l-8.632.921c-.227 1.239-.577 2.986-.908 4.147v1.844h-.227l-.228 3.686h.228v1.152h.227v1.613h.227v.691h.227v1.843h.227v.922h.227c.19.595-.066 1.152.227 1.613l.909.691v.23h.454l2.953 3.226c.634.586 1.07.307 1.363 1.382.786.212 1.297.884 1.817 1.383l.227.461h.455l1.135 1.382h.455v.23l1.136.922v.461l.681.23v.231c.634.412.928.278 1.136 1.152 1.154.316 1.751 1.545 2.498 2.304l.909.691.227.461h.454l1.59 1.843h.455l1.817 2.073h.454v.461h.455l.454.691 2.044 1.844.227.46h.455l2.044 2.304h.454l.909 1.152.681.461v.231h.455l1.59 1.843c.719.729 1.741 1.142 2.271 2.073h.454v.461c.739.192 1.714 1.229 2.045 1.843h.454c.17.624.057.528.682.692.132.46 2.924 3.187 3.407 3.456l-.227 1.152-1.136-.231-.227-.461h-.455l-1.817-2.073c-.511-.471-.994-.509-1.363-1.152H169v-.461l-.681-.23-.455-.692-1.59-1.382-1.363-1.613h-.454v-.23l-.909-.691-.908-1.152h-.454l-2.499-2.765c-.871-.797-1.874-1.219-2.499-2.304h-.454c-.303-1.104-.833-.835-1.59-1.383l-2.499-2.764h-.454l-1.363-1.613-.681-.231v-.46h-.228l-.908-1.152h-.454l-1.136-1.383h-.454l-1.363-1.613h-.455l-.227-.691-.454-.461h-.454l-1.363-1.612h-.455l-.454-.692-.454-.23v-.461l-.682-.23-.681-.922-.681-.23v-.461c-.786-.211-1.297-.883-1.818-1.382l-.227-.461h-.454l-1.363-1.613h-.227l.681 4.147h.227v.691h.228v1.844h.227v1.152h.227v1.152h.227v.921h.227l.682 5.069h.227l.227 2.074h.227v.691h.227v.691h.227v.691h.228v.461h.227v.691h.227v.922h.227v.461h.227l.454.691h.455c.274.941.161.24.681.691v.23h.227v.461l2.272 1.843v.231l.454.23v.461l.682.23v.231l1.135.921v.461l.455.231.908 1.152.682.23v.461h.227l.681.921c1.079 1.104 2.622 2.093 3.407 3.456h.455c.18.711 1.467 2.209 2.044 2.535-.142.557-.237.509-.454.921-.899-.115-1.06-.47-1.59-.921v-.231h-.455l-.454-.691h-.454l-.454-.921-1.136-.922-2.272-2.534c-.691-.701-1.76-1.21-2.044-2.304-1.155-.317-2.167-1.968-2.953-2.765l-1.363-1.152v-.461h-.227l-.227-.461c-.407-.317-.331.106-.682-.461h-.454l.227 2.996h-.227v.691l-.908.23-.228.461-1.59.23v.231l-.908.23v.231l-2.953.46v.231l-.454-.231v.231h-1.363v.23l-5.225.231 1.363 1.612h.227l.227.692c.833.672 1.96 1.113 2.272 2.304 1.088.288 2.413 2.208 3.18 2.995.483.49.927.566 1.136 1.382h.227l-.682.922c-.974-.125-1.467-.826-2.044-1.383l-.227-.46h-.454l-.228-.461c-.766-.73-1.523-1.315-2.044-2.304h-.454v-.461h-.455v-.23l-1.362-1.152v-.461l-.682-.231-2.271-2.534-6.815-.691-1.59-1.152c-.028-1.2-.142-2.64.454-3.226.18-.739.625-1.209 1.363-1.382v-.461c-1.23-.307-1.306-1.114-2.044-1.843-.823-.816-1.495-.855-2.044-2.074h-.455c-.321-1.075-1.041-.633-1.363-1.843-2.366 0-4.296.163-6.133.691H102.9c-2.698 0-3.89-.259-6.133-.461v-.23h-.228l-.227-2.534h.227v-.461h.228v-.922h.227l.227-.691c.199-.086.748-.144.909-.23l.227-.461h.908v-.231l.455.231v-.231l1.135-.23v-.23l2.499-.231v-.23l1.363-.231c-.473-.835-1.145-1.43-1.817-2.073l-.228-.461h-.454l-1.363-1.613h-.227v-.461c-.88-.23-1.05-.835-1.59-1.382l-1.59-1.382-.681-.922c-.635-.586-.672-.134-1.136-1.152h-.454c-.37-1.373-2.461-2.438-3.18-3.686h-.455v-.461c-.814-.24-.861-.874-1.363-1.383l-.681-.46v-.231h-.454l-1.363-2.073c-.256-.202-.038.028-.228-.231l.682-.461v-.23c1.22.317 1.732 1.296 2.499 2.073l3.407 3.457c.473.48 1.012.768 1.363 1.382h.454v.461h.227c.208.24-.047.057.227.23h.227l.228.461c.634.614 1.183.97 1.59 1.843h.454v.461h.454v.23l1.363 1.152v.461l.454.231.909 1.152h.454l.455.46v.461l.454.231.909 1.152.908.691v.23h.454v.231c.332.316.303.115.455.691.653.096.833.288 1.59 0v-.231h.681v-.23h.455v-.23h.681v-.231l1.363-.23.227-.461.909-.23.227-.461h.454c.142-.096.17-.307.454-.461.133-.806.303-1.19 0-2.074h-.227l-.227-2.304h-.227v-.921h-.227l-1.136-8.295h-.227v-.46l-1.363-1.613h-.454l-2.045-2.304c.076-.692.019-.634.455-.922.255-.259 0-.096.454-.23.615.758 1.543 1.19 2.044 2.073h.455v.461h.454c-.208-1.997-.644-4.032-1.136-5.76v-2.534h-.227l-.227-.922c-1.619 0-2.707.125-3.862.461h-2.726v.23h-1.59v.231h-1.817v.23l-.454-.23v.23h-2.044v.23h-1.59v.231h-2.5v.23h-1.59v.231c-.293.038-.378-.375-.908-.231v.231h-1.817v.23h-2.726v.23h-1.363v.231h-2.725v.23H80.41v.231h-2.726v.23H75.64v.23h-2.272c-1.684.5-4.24.423-5.906.922H65.42c-2.47.73-5.972.422-8.405 1.152h-2.953c-2.252.682-5.688.48-7.95 1.152h-1.817v.23h-2.953v.231h-1.363v.23h-2.044v.231h-1.817v.23l-4.77.23v.231h-2.045v.23h-2.498v.231H25.44v.23h-2.499v.23h-1.817v.231h-2.499v.23H16.81v.231h-2.044v.23h-2.499c-1.23.365-3.331.653-4.77.691l1.136 1.383h.227l.227.921.454.231v.461l1.136.921v.461l.681.461v.461l.909.691v.461l.909.691.227.691.454.23v.461l.454.231v.46l1.136.922v.461l.454.23v.461l.455.23.227.692h.227c.265.336.322.403.454.921h.455c.16.595.35.749.681 1.152h.227l.227.691.455.231v.461l.681.46v.461l.682.461v.461l.908.691.227.691.455.231v.46l.681.461v.461l.909.691v.461l.454.23v.231l.454.23v.461l.682.461v.461l1.136.921q.112.346.227.691l.454.231.227.921.909.692v.46l.681.461v.461l.682.461v.461l.681.46v.461l1.59 1.383v.46l.681.461v.461l.682.461v.46l.909.691.227.921 1.135.922.228.922 1.135.921v.461l.682.461v.461l.681.46v.461l.455.231v.23l.454.23v.461l1.363 1.152v.461l.454.23.227.692h.227v.46l1.136.922.227.922c.398.585.88.384 1.136 1.382h.454c.436 1.642 2.177 2.573 3.407 3.456l.455.691.908.231.228.461h.454l1.136 1.382.908.23.227.461h.682l.227.461h.454l.227.461.909.23v.231h1.136v.23h1.135c2.102.634 4.524-.144 6.133-.691l1.59-.231v-.23l.91-.23v-.231h.908v-.23h.681v-.231h.454v-.23h.455l.227-.461h.681l.228-.461 1.362-.46.228-.461.908-.231.455-.691h.454l.454-.691h.454l.227-.461h.455v-.23c.397-.327.549-.528 1.136-.691v-.461h.227c.407-.48.454-.144.681-.922 1.297-.365.814-1.286 2.272-1.613.255-.259 0-.096.454-.23.303.47.549.47.909.921h.227v.692h.227c.312.422.53.537.681 1.152 1.136.317 1.136 1.133 1.817 1.843.426.442.871.557 1.363.922l.682.921h.454l.682.922h.454l.227.461h.454l.228.46h.454l.227.461.909.231v.23h.454v.23h.454v.231h.682l.227.461h.454v.23l.909.23v.231l2.044.461v.23h.681v.23h.682v.231h.909v.23h.908v.231h1.136v.23h1.136v.23h2.044v.231l4.543-.231v-.23h.681v-.23h2.045v-.231h1.59v-.23h1.363v-.231h.908v-.23l4.089-.23c3.549-1.056 8.045-1.028 11.584-2.074h1.818v-.23h1.59v-.231h2.044v-.23h1.363v-.231h1.59v-.23h.909v-.23h2.044v-.231h.909v-.23h2.271v-.231h1.363v-.23h1.363v-.23h1.59v-.231h2.044v-.23h.909v-.231h1.817v-.23h2.272v-.23h.908v-.231h1.59v-.23h2.044v-.231h.909v-.23h1.817v-.23h1.817c4.099-1.229 8.452-.922 12.267-2.074h2.044v-.23h1.136v-.231h2.271c4.373-1.315 10.156-1.2 14.538-2.534h1.817v-.231h2.044c1.316-.393 3.247-.537 4.543-.921h1.817c3.521-1.066 8.272-.97 11.812-2.074h2.499v-.23h1.136v-.231l2.725-.23v-.231h1.818v-.23h2.044c1.306-.394 3.379-.71 4.997-.691M74.732 182.417v.231h2.953v.23h.909v-.23l.454.23s.208-.336.681-.23v.23h2.953v-.23l.455.23v-.23h.227v.23h2.726c3.246-.941 6.672-1.373 10.221-1.382v-.461c-1.202-.038-1.874-.269-2.726-.691v-.231l-1.362-.23v-.23l-1.136-.231v-.23l-.909-.231v-.23h-.681v-.23l-1.363-.461v-.231l-.909-.23-.227-.461h-.454l-.454-.691h-.455l-.454-.691h-.454l-.228-.461h-.454l-2.498-2.304v-.461l-.682-.23-.227-.691-.681-.461-1.136-1.613h-.454c-.237.941-.682.902-1.363 1.382l-.228.461h-.454l-.454.922h-.454l-1.136 1.382h-.455l-.454.691h-.454l-.227.461h-.454l-.455.461h-.454v.23h-.454l-.227.461h-.455v.231h-.681l-.227.46h-.455l-.227.461h-.681v.231h-.455v.23l-1.59.23v.231h-.454v.23h-.681v.231h-.455v.23c-.899.394-3.114.691-4.316.691.35.586.72.691 1.363.922h.909v.23h.454v.231l1.817.23v.23h.909v.231h.909v.23h1.135v.231h1.59v.23h1.363v.23h2.726v.231h1.363v-.231zm156.279-15.437c-.275-.94-.161-.307-.682-.691l-.227-.461h-.454l-.454-.691h-.455l-.227-.461h-.227l-.227-.46-2.726-.231v.231h-1.363v.23h-2.044v.23h-1.59v.231h-.909v.23h-1.363v.231l-3.407.23v.23h-1.817c-4.42 1.325-9.171.912-13.629 2.304h-1.59v.231h-1.817v.23h-2.726v.231l-2.272.23v.231h-.908v.23l-3.635.23v.231h-.908v.23h-2.726v.231h-1.59v.23h-1.363v.23h-1.363v.231h-1.136v.23h-2.044v.231h-1.59v.23l-.681-.23v.23h-.909v.23h-1.363v.231h-1.817v.23h-.909v.231h-1.59c-1.4.422-3.407.508-4.77.921l-3.634.231v.23h-1.136v.23h-2.271v.231h-.909v.23h-1.136v.231H150.6v.23h-1.817v.23h-1.363v.231l-3.635.23v.231h-1.362v.23h-.909v.23l-3.18.231v.23l-4.543.231v.23l-3.634.461v.23h-1.136v.231h-2.045v.23h-1.817v.23h-1.363v.231l-3.634.23v.231l-3.18.23v.23h-.909v.231h-1.817v.23h-1.363v.231h-2.044v.23l-2.726.23v.231h-2.499v.23l-2.498.231v.23h-1.136v.23h-2.271v.231h-.91v.23h-1.362v.231h-4.77v.23l-.227-.23-1.136.23v.23h-.908v.231h-1.59v.23h-1.59v.231H85.18v.23h-7.042v-.23h-.227v.23l-3.634-.23v-.231l-7.95-.461v-.23h-.909v-.23h-.454v-.231l-1.363-.23v-.231l-2.272-.23v-.23l-1.363-.461v-.231l-2.044-.46v-.231l-.909-.23v-.231h-.454v-.23l-1.136-.23-.227-.461h-.454v-.231l-2.044-.691v-.23h-.455l-.227-.461h-.454l-.454-.691h-.455l-.681-.922-.909-.23v-.231c-.34-.268-.397-.336-.908-.46v-.461H47.7v-.461h-.681c-.246-.307-.625-.422-.909-.691l-.227-.461h-.454l-.454-.691h-.455l-.681-.922-.455-.23v-.461l-.908-.691v-.461l-.454-.23v-.461l-1.136-.922v-.461l-.454-.23v-.461l-1.59-1.382v-.461l-.682-.461-.227-.922-.682-.46v-.461l-.681-.461-.227-.691h-.454c-.142-.519-.19-.576-.455-.922h-.227l-.227-.921-.909-.692v-.46l-.681-.461v-.461l-1.136-.922v-.46l-.908-.692V155l-.455-.231v-.461l-.681-.46v-.461l-.909-.691v-.461l-.681-.461v-.461l-.454-.23-.228-.691h-.227c-.322-.404-.53-.557-.681-1.152h-.454c-.152-.596-.55-1.21-.91-1.613l-.453-.231v-.46l-.682-.461v-.461l-.909-.691v-.461l-.908-.691-.227-.691-.455-.231v-.461l-.454-.23v-.461l-.454-.23v-.231l-.454-.23v-.461l-1.136-.921v-.461l-.454-.231v-.46l-.682-.461v-.461l-.681-.461v-.461l-1.136-.921v-.461l-.454-.23v-.461l-.682-.461v-.461l-1.136-.921v-.461l-.454-.231v-.23l-.454-.23v-.461l-.454-.231v-.46l-1.136-.922v-.461l-.455-.23v-.461l-.908-.691v-.461l-.682-.461v-.461l-.908-.691c-.133-.461.028-.201-.227-.461v.461c-1.41.087-2.243.471-3.862.461.152.595.55 1.21.909 1.613l.454.23v.461l1.363 1.152v.461l1.817 1.613v.46l.682.461v.461l.681.461v.461l1.59 1.382v.461l.681.461v.46l1.136.922.227.691.455.231v.46l1.817 1.613v.461l.681.461v.461l2.045 1.843v.461l.681.46v.461l.454.231v.46l1.59 1.383.228.921.908.692.682.921h.227v.461l.454.23.682.922h.227v.461h.227c.265.336.322.403.454.921h.454c.275.999.71.788 1.136 1.383V155l.454.23v.23l.682.461.227.922 1.817 1.613v.46l.455.231v.461l2.044 1.843v.461l.681.46v.461l1.136.922v.461l1.363 1.152v.46l1.136.922v.461l.908.691.227.691.455.231v.461l1.363 1.152v.46l.454.231v.23l.681.461v.461l1.363 1.152v.461h.227l.455.691.681.461v.46l.455.231.227.921 2.498 2.304v.461l.909.691v.461l.454.231.227.691h.228l.227.691h.454l.227.691 1.363 1.152v.461l.909.691v.461h.227l.227.691.454.231v.46c.17.231.691.413.909.692h.454l.227.691h.227v.461c.294.576.578 1.056 1.136 1.382v.23c.578-.326 1.458.01 2.272-.23v-.23h1.135v-.231h1.818v-.23h2.044v-.231h2.044l14.992-2.304h2.044c1.846-.547 4.354-.614 6.134-1.152h2.044v-.23h1.59v-.23l9.086-.922v-.23h.908v-.231h2.272v-.23h1.817v-.231h1.136v-.23h2.499v-.23h1.135v-.231h1.363v-.23l4.089-.231v-.23h2.271v-.23h.909v-.231h2.271v-.23h.909v-.231h2.499v-.23h1.135v-.23h2.272v-.231h1.363v-.23h2.499v-.231h1.135v-.23l2.726-.23v-.231h1.817v-.23h2.272v-.231l3.407-.23v-.23h2.044v-.231h1.59v-.23h.909v-.231h2.726v-.23h.908v-.23h1.59v-.231h1.59v-.23h1.818v-.231h1.362v-.23h2.499v-.23h1.817v-.231h1.136v-.23h2.044v-.231h1.136v-.23h1.59v-.23h2.726v-.231h1.136v-.23h1.363v-.231h2.044v-.23h2.044v-.23h1.59v-.231h.909v-.23l5.906-.461v-.23h1.363v-.231h2.044c3.483-1.037 8.168-.777 11.585-1.843l3.861-.23v-.231h.909v-.23h2.044v-.231h1.817v-.23h1.818v-.23l2.953-.231v-.23h2.725v-.231h1.363v-.23h1.136v-.231h1.817v-.23h2.045v-.23zM3.634 132.881l.455.231v.46l.454.231v.461l1.363 1.152.227.921 1.136.922v.461l1.136.921v.461h.227l.454.691.454.231v.46l.455.231.227.691 1.135.922v.46l.909.692v.46l.681.461v.461l.91.691v.461l1.362 1.152v.461l.454.23v.461l1.136.922v.46h.227l.454.692.455.23v.461l.454.23v.461l.909.691v.461l1.135.922v.46l1.136.922v.461l.454.23v.461l.91.461v.461l.453.23v.461l1.136.921v.461l.909.691v.461l.681.461v.461l.909.691v.461l.454.23v.461h.227l.454.691h.455c.142.528.199.557.454.922h.227v.691l1.363 1.152v.461l.909.691v.461l1.59 1.382v.461l.454.231v.46l.454.231.227.691h.228c.322.403.53.557.681 1.152h.454l.228.691 1.362 1.152v.461l.682.461v.461l.454.23.227.691 1.136.922.227.921 1.363 1.152v.461l.682.461v.461l1.135.921v.461l1.136.922v.461l.909.691v.461l1.135.921.228.922 1.362 1.152v.461l1.136.921v.461l.909.691v.461l.681.461v.461l.682.46v.461l1.817 1.613v.461h.227c.218.288.17.441.454.691.18.125 0 .298.455.23v-.23h.681v-.23h2.272c2.1-.624 5.148-.5 7.268-1.152h1.136v-.231l.454.231v-.231h1.136v-.23h2.272v-.231l.454.231v-.231h1.363v-.23h2.271c1.969-.576 4.41-.576 6.36-1.152h2.953v-.23h.682v-.231h1.363v-.23h2.271v-.231h2.499v-.23h1.59v-.23h1.59v-.231h1.817v-.23h1.136v-.231h2.272v-.23h1.362v-.23h2.499v-.231h1.363v-.23h1.363v-.231h2.044v-.23h1.817v-.23h1.136v-.231h2.272v-.23h2.271v-.231h2.044v-.23l2.953-.23v-.231l.682.231c2.328-.624 5.414-.692 7.723-1.383h2.044v-.23h1.817v-.231h2.272v-.23h1.136v-.23h1.363v-.231h2.271v-.23h1.59v-.231h1.363v-.23h2.953c1.401-.413 3.407-.518 4.77-.922h2.272v-.23h.908v-.23h1.59v-.231h2.045v-.23h2.271v-.231h1.363v-.23h2.044c5.026-1.507 11.784-1.037 16.809-2.534h2.953v-.231h1.363v-.23h2.044v-.231h2.045c4.41-1.344 10.524-.969 14.992-2.304h2.271v-.23h.909v-.23h2.044l1.363-.231v-.23h2.953v-.231h2.044c2.329-.71 5.547-.672 7.951-1.382h2.498v-.23h1.363v-.231l.682.231c1.192-.327 2.479-.72 4.088-.692v-.46c-.785-.221-1.495-1.085-2.044-1.613l-.227-.461h-.455c-.577-.422-.388-.893-1.362-1.152-.275-.24-1.439-.413-2.045-.23-1.987.585-4.836.547-6.814 1.152h-1.136v.23l-3.862.23v.231h-1.59v.23h-1.59v.231h-1.59v.23h-1.817v.23h-2.271v.231h-1.136v.23h-2.272v.231h-1.817c-1.827.547-4.335.614-6.133 1.152h-1.817v.23l-7.042.691v.231h-1.135v.23l-4.089.23v.231h-1.136v.23h-1.817v.231c-.521.134-.634-.279-.909-.231v.231h-.908v.23h-2.045v.23h-1.363v.231h-1.59v.23h-2.044c-1.931.576-4.713.586-6.587 1.152h-1.817v.231h-1.818v.23h-1.59v.23h-2.271c-2.858.855-6.711.768-9.54 1.613h-1.818v.231h-1.362v.23h-1.591v.23h-2.725v.231h-2.045v.23h-.681v.231h-2.272v.23h-1.363v.23h-2.044v.231h-1.59v.23h-1.59v.231h-1.817c-2.858.864-6.701.777-9.54 1.612h-2.272v.231h-1.363v.23h-1.817v.231h-2.271v.23h-1.136v.23h-1.59v.231h-2.499v.23h-1.136v.231H96.54v.23h-1.82v.23h-1.363v.231l-3.18.23v.231h-2.271v.23H86.09v.23h-2.5v.231h-.908v.23h-2.271c-3.303 1.085-7.941.835-11.358 1.843h-2.271c-1.193.356-2.868.557-4.089.922h-1.817c-1.306.394-3.379.701-4.997.691-.265-.998-.72-.787-1.136-1.382v-.461l-2.044-1.843-.227-.691-.682-.231v-.461l-.909-.691v-.461l-1.362-1.152v-.46l-.455-.231v-.461l-.681-.46-.227-.692H47.7c-.16-.595-.36-.748-.681-1.152h-.227v-.46c-.095-.144-.303-.173-.455-.461h-.454l-.227-.691h-.227v-.461l-.454-.231v-.46l-.682-.461v-.461l-.454-.461h-.455l-.681-.921h-.227v-.461l-.454-.231v-.46l-1.136-.922v-.461l-1.136-.921v-.461l-.454-.231v-.23l-.454-.23v-.461h-.228c-.265-.336-.321-.403-.454-.922h-.454l-.227-.691-.682-.461-.227-.691c-.53-.451-.435.25-.681-.691h-.455c-.142-.509-.189-.576-.454-.922h-.227v-.461l-.454-.23-.228-.691-.908-.692-.227-.691-1.136-.921v-.461l-.909-.691v-.461l-.681-.461v-.461l-1.363-1.152-.227-.691-.454-.23v-.461l-2.045-1.843v-.461l-.681-.461v-.461l-.682-.461v-.46l-1.136-.922v-.461l-1.362-1.152c-.445-.47-.52-1.065-.909-1.613l-.454-.23c-.691-.739-1.76-1.67-2.045-2.765H18.4c-.199-.758-.7-1.085-1.136-1.613h-.227v-.46l-.454-.231v-.461l-1.363-1.152v-.46l-.454-.231v-.23l-.455-.231v-.46l-.454-.231c-.379-.528.246-.413-.681-.691-.161-.595-.36-.749-.682-1.152h-.227v-.461h-.227l-.454-.691-.455-.23v-.461l-1.135-.922v-.461l-1.136-.921v-.461l-1.59-1.382v-.461l-.682-.461c-.426-.614-.52-1.2-1.135-1.613v-.23l-2.953.691c.198.864.634 1.306 1.135 1.843M129.248 18.833l-.454.23-.228.922h-.227v.46l-.454.23v1.614l1.363.23c-.01.663-.076.989-.227 1.383-1.126 0-1.59-.154-2.272-.461-.104-.26-.653-1.479-.681-1.613-.057-.298 1.391-3.84 1.59-4.147h.227l.681-.922h.909c.01 1.114.246 1.095.227 1.152l-.454.23zm-2.726-.23c-.549.191-.473-.375-.681-.462h-.455v-.69h.228l.227-.692h1.135c0 .845-.018 1.238-.454 1.613zm4.316 1.382c-.133-.461.028-.202-.227-.461.123-.97.322-.749.681-1.383l1.363.23c0 1.038-.151 1.259-.454 1.844-.653-.01-.975-.077-1.363-.23m-51.336 5.53v.23h.682v.23h.681v.23h.455v.23q1.02.117 2.044.231c-.01.663-.076.99-.227 1.383-1.477-.02-2.016-.202-2.953-.691h-.455l-.227-.461h-.454v-.23l-.681-.231v-.922h.227v-.23zm149.465 46.54v.461h-.228v.922h-.227v.921h-.227v.692h-.227v.69h-.227l-.227.922h-.228v.922h-.227c.057.547.095.566.227.922l3.408.23v-.23h2.271v-.23l.682.23v-.23l3.407-.462v-.23h.681v-.23h.909v-.23h1.136v-.231h.454v-.23c1.202-.615 2.281-.711 2.953-1.844h1.363l.227.691.454.23v.462h.227v.69h.228v.692h.227v.46h.227v.922h.227v.692h.227v.69h.227v.692h.227v.691h.228v.46h.227v.692l.454.23.454 2.535h.228l.227.921h.227l1.363 4.148H251l-.227 1.152c-.719.096-1.145.307-1.59.691l-.227.46h-.455l-.227.462-.908.23-.228.46h-.454v.231l-1.363.23v.231l-1.135.23v.23l-.909.231v.23h-.682v.231h-.681v.23h-.681v.23h-1.136v.231h-.682v.23h-.681v.231l-3.407.23v.23c-.53.135-.625-.278-.909-.23v.23c-1.439.28-5.735.078-6.814-.23h-3.18v-.23h-.455v-.23h-.681v-.23l-3.407-.692v-.23h-.455v-.23l-1.135-.231v-.23h-.909v-.231h-.454v-.23l-.682-.23v-6.222h.227v-.69h.227v-2.075c-4.931-.096-9.133-1.094-12.72-2.534l-1.363-.23v-.23h-.681v-.231h-.455v-.23h-.681v-.23h-.681l-.228-.462-1.135-.23-.228-.46-.908-.231-.227-.461h-.455l-.681-.922h-.454l-.455-.69c-.709-.51-1.344-.606-1.817-1.383h-.454c-.218-.816-.653-.884-1.136-1.383l-2.499-2.764h-.227v-.23h.227l.228-.692h.227v-.46l.454-.231.227-.922.455-.23v-.461l.681-.46.227-.923.682-.46.454-1.383.454-.23v-.46l.682-.462v-.46l.454-.23.227-.692h.227v-.46l.455-.231v-.461l.454-.23v-.461l.454-.23v-.462h.227c.332-.422.549-.739.682-1.382h.454c.142-.557.237-.509.454-.922h1.818v.23h.454l.454.922h.454l.909 1.152h.454l.227.461h.455l.908 1.152h.455l.454.461h.454v.23h.455v.23h.454v.231h.454v.23h.454v.231l1.363.46v.231h.682v.23h.454v.231h.682v.23h.454v.23q.68.117 1.363.231v.23h.454v.231h.681v.23h.455v.23h.681v.231h.909v.23h.681v.231h.909v.23h.909c1.58.528 4.779 1.19 6.587.692.747-.212 1.58.201 2.044-.23 1.382-.02 1.893.019 2.726.46-.019 1.258-.038 2.15-.454 2.995zm-11.358 21.428 7.042 2.304h2.044v.23l4.316.23v-.23h3.861l5.225-.691v-.23l2.044-.461v-.23l.909-.231v-.23h.681v-.231l.909-.23v-.23l2.726-.922.227-.461h.454l.227-.461.682-.23-.227-1.844-.455-.23-.227-1.382h-.227l-.227-.922h-.227v-.691h-.228l-.227-.922h-.227v-.691h-.227v-.922h-.227v-.69h-.227v-.692h-.227v-.691h-.228v-.461h-.227l-.227-1.613h-.227v-.46h-.227v-.692c-.208-.509-.559-.96-.682-1.613l-2.271 1.383-1.363.23v.23h-.454v.23h-.909v.231h-.681v.23h-1.136v.231h-1.136v.23h-1.136v.23h-1.363c-.795.24-4.098.558-5.224.231-.483-.144-1.155-.384-1.817-.46-.123 1.775-1.079 2.899-1.136 4.838-2.64.048-4.391.921-7.041.921-.464 1.248-.455 2.861-.455 4.609v1.843h-.227zm10.449-23.27-4.543.46v-.23c-.341-.049-1.098.499-2.044.23v-.23h-1.136v-.23h-1.59v-.231h-.682v-.23l-2.044-.231v-.23h-.454v-.23l-1.59-.231v-.23h-.682v-.231l-1.59-.23v-.23h-.454l-.227-.462-1.363-.23v-.23l-.909-.23v-.231h-.681v-.23l-1.363-.462v-.23h-.454v-.23l-.909-.23-.227-.462-1.363-.46-.454-.691-.909-.23-.681-.923h-.455l-1.59-1.843c-.445.058-.681-.029-.908.23v.461l-.682.461v.461l-.681.46-.227.923-.455.23v.46l-.681.462v.46l-.454.23v.462l-.455.46v.461h-.227v.46l-.454.231v.461l-.682.46v.462l-.454.23v.46h-.227v.462l-.454.23v.46c-.209.366-.786 1.143-1.136 1.383.132 1.171.681 1.71 1.363 2.304v.23c.7.52 1.088.346 1.363 1.383.501.144.568.192.908.46v.231h.455l.227.461h.227l.227.46h.454l.455.692h.681v.23l.681.23.228.462.908.23v.23l1.363.461v.23h.682v.231h.454v.23l1.363.23v.231h.454v.23l6.587 1.844 3.408.23v.23l3.407.231v-.23l1.59.23v-.23h.681v-.23c1.278-.394 3.02.182 4.089-.461.71-.423.786-2.544 1.136-3.456h.227v-.692h.227v-.69h.227v-.692h.227v-.691h.228v-.461h.227V75.28h.227v-.691h.227v-.692h.227v-.69h.227l.227-.922h.228c.284-.72-.019-1.296.454-1.844zm-43.386 4.377v.23h.455l.227.46.908.231.228.461.908.23.227.461c.729.461 1.694.49 2.272 1.152h.227c-.161.336-.199.375-.227.922-2.47-.029-3.322-1.094-4.77-2.074h-.455l-.227-.46c-.653-.452-.946-.423-1.363-1.153h-.227c.161-.335.199-.374.227-.921.985.038 1.032.02 1.59.46m-1.135 1.843.454.691h.454l.454.691h.455l.227.461.909.23.227.461.908.23v.231l.682.46c-.142.558-.237.51-.455.922-.984-.201-2.224-.643-2.953-1.151l-.454-.692h-.454l-.227-.46h-.455l-.681-.922h-.454l-.455-.691c-.293-.26-1.031-.73-1.362-.922l.227-1.152c.691.211.208.23.908 0l.682.922h.454l.454.69zm22.26 79.949v-.461c-.757-.211-1.713-1.315-2.271-1.843l-.227-.461h-.455l-.681-.921h-.454l-.682-.922h-.454l-.909-1.152h-.454l-2.499-2.765h-.454c-.767-.528-1.798-1.478-2.272-2.304h-.454c-.293-.998-1.675-1.296-2.271-2.304h-.455v-.461c-.747-.201-1.069-.71-1.59-1.152v-.23h-.454l-.454-.691h-.455l-.908-1.152h-.227l-.227-.691h-.455l-.454-.692h-.454l-1.363-1.612h-.455l-.908-1.152h-.454l-1.59-1.844h-.455l-1.363-1.612h-.454v-.461c-.88-.231-1.883-1.258-2.499-1.843l-.227-.461-.681-.231-.682-.921c-.672-.49-1.116-.432-1.363-1.383-.709-.182-1.353-.71-1.817-1.152l-.227-.46h-.454l-1.59-1.844h-.455l-1.59-1.843h-.454l-.908-1.152h-.455l-.681-.922h-.455l-.227-.691h-.454l-1.59-1.843h-.454l-.682-.922h-.454v-.46c-.587-.154-.748-.365-1.136-.692v-.23h-.454l-.682-.922c-.331-.48.161-.883.682-1.152v-.23c.501.134.577.192.908.461v.23h.455l.227.461.909.691.227.461h.454l1.817 2.074h.454l.455.691h.454l1.59 1.843h.454l1.363 1.613h.455l.681.922h.454c.228.787.758.758 1.136 1.382h.454c.275 1.008.975 1.008 1.59 1.613l.909 1.152h.454l.228.461h.454l1.817 2.073h.454l1.136 1.383h.454v.46l2.272 1.613 1.136 1.383.681.23.681.922h.455l1.817 2.073h.454l1.363 1.613c.786.566 1.287.49 1.817 1.382h.455c.255.951.691.884 1.363 1.383l.908 1.152h.454l2.045 2.304h.454l.454.691h.228l.227.461h.454l1.817 2.073h.454l.455.692h.454l.682.921h.454l2.726 2.995h.454l1.136 1.383h.454l.681.921h.455l.454.692h.454v.46l.682.231v.461l.454.23v.23h.454v.231l.909.691-.682.922c-1.722-.212-1.978-1.69-3.407-2.074m-47.701-27.878c.984.268.776.729 1.363 1.152h.454l1.363 1.612 1.136.922.227.461h.454l3.18 3.456c.606.614 1.373 1.065 1.817 1.843h.455v.461c.88.249.71.691 1.59.921.274 1.037.662.864 1.363 1.383v.23l.681.461.227.691c.776.864 1.884 1.248 2.499 2.304h.454c.161.663.246.768.909.922v.461c1.088.297 1.562 1.372 2.271 2.073l1.363.922v.461l1.136.921.227.461h.454l.682.922.681.23v.461l.682.23 1.135 1.383h.228v.46c.785.221 1.296.884 1.817 1.383l.227.461h.454l.455.691h.227v.461l.454.23.454.691h.455l.227.461 1.817 1.613-.227.921c-.454.135-.199-.028-.454.231-1.524-.192-2.083-1.431-2.953-2.304l-.682-.461v-.23h-.454l-3.635-3.917-.681-.231-1.136-1.382h-.454v-.461l-1.817-1.613-.227-.46h-.455l-2.044-2.304-1.59-1.383-.454-.691h-.455l-2.044-2.304c-.814-.816-2.158-1.258-2.499-2.534h-.454l-.681-.922-2.499-2.304-.227-.461h-.454l-.228-.461c-.747-.518-1.325-.576-1.59-1.612-1.012-.279-1.4-1.191-2.044-1.844l-3.18-2.995-1.136-1.382h-.454l-2.044-2.304h-.455l-1.363-1.613h-.454l-.227-.461h-.227l-1.818-2.304h-.454l-2.271-2.534h-.455l-.227-.461-1.135-.922v-.461l-.455-.23-.454-.691h-.454l-2.499-2.765c.076-.691.019-.634.454-.922v-.23c1.098.691 2.073 1.411 2.953 2.304l1.363 1.613h.454l.228.461h.454l3.861 4.147c.767.749 1.704 1.066 2.272 2.074h.454c.199.739.578.816.909 1.382h.454c.275.941.161.25.682.691l.454.922c.634.633 1.306.557 1.59 1.613m-48.837 39.859c-.152.096-.01.336-.454.23l-3.181-2.995-.227-.691c-.303-.336-1.126-.624-1.363-.922v-.461l-2.271-2.073-.682-.922-.454-.23v-.461l-1.817-1.613v-.461l-.681-.23v-.23l-1.136-.922v-.461l-1.817-1.613-.228-.691h-.454v-.23c-.331-.317-.303-.115-.454-.691-.937-.25-.87-.701-1.363-1.383l-1.136-.921-.227-.692-2.044-1.843-.909-1.382h-.454l-1.363-1.613h-.227v-.461h-.455v-.23l-.454-.231v-.46l-.454-.231c-.54-.576-1.855-1.776-2.044-2.534h-.455c-.312-1.152-2.158-2.4-2.953-3.226l-.681-1.152-.682-.23v-.461l-1.135-.922v-.46l-.455-.461h-.454l-.227-.461-.682-.461v-.461l-.908-.691v-.461h-.455q-.907-1.037-1.817-2.073l-.681-.461v-.461l-.909-.691-.908-1.152-.455-.23v-.461l-.454-.231-1.136-1.612.682-.461v-.231c.785.212 1.296.884 1.817 1.383l.227.461h.455v.23l.908.691.227.691 2.272 2.074v.461l3.407 3.225v.461l.454.231.682.921c1.202 1.219 2.886 2.275 3.634 3.917h.454c.246.893.824 1.066 1.363 1.613l1.817 2.073 1.136.922.227.691 1.59 1.383v.46l3.18 2.996v.46l1.136.922.227.461h.455l.454.691.454.23v.461l1.136.922v.461l.681.46.228.461h.454l.454.922 2.044 1.843v.461c1.212.336 1.714 1.737 2.499 2.534l2.726 2.535v.46l.454.231.682.921 2.044 1.844v.46l1.136.922v.461l.681.461c-.17.624-.057.528-.681.691M35.435 132.88l-.681.922c-.379.269-.511 0-.909.461H32.71v-.231h-.227l.227-.921c1.155-.288 1.799-1.085 2.5-1.844l.453-.23c.37-.528.426-1.181.909-1.613v-1.843h-.227c-.436-.451-2.925-1.018-4.089-.691 0 0-.028.192-.454.23h-2.726c-.454.144-1.107.519-1.363.922-1.287-.058-1.05-.394-1.59-1.152h-.227l-.454-.691c-.7 0-1.164.067-1.59.23v.461h-.455v.461c-.643.172-.653.412-1.135.691l-.455 2.073c1.742 0 3.294.048 4.543.461h.909v.231h.454v.23h.682v.23h.454v.231h.454l.227.461h.455v.23l.908.691v.461l.682.461c-.01.662-.076.989-.227 1.382-.994.202-4.203.941-5.68.461v-.23h-.68v-.231h-.455v-.23h-.681v-.231h-.455v-.23h-.454l-.454-.691h-.455l-1.362-1.843c-.88.096-1.174.403-1.818.691-.189-.298-.151-.279-.454-.461v-.922l2.044-.691v-2.073c1.183-1.056 1.41-3.015 3.408-3.456.814-.778 1.779-.087 2.953 0v.691h.227l.227.691c.511-.077.596-.019.909-.23v-.231h.454v-.23h2.271v-.231c1.6-.46 5.793.327 6.36.922.332.202.521.317.682.691v.461h.227c-.028 2.87-1.315 3.878-2.726 5.299m-10.221.922v.23h1.363v.231c.86.019 2.489.201 2.952-.231h.228c-.17-.393-.597-1.171-.91-1.382h-.453c-1.458-.759-4.013-1.344-5.906-.922.34 1.325 1.514 1.613 2.726 2.074m42.477 11.059 2.044 1.843v.461l1.363 1.152c1.23 1.248 2.375 2.467 3.407 3.917l2.272 2.073v.461l.454.231v.23c.577.547.861.125 1.136 1.152h.454v.461c.643.173.549.278.908.691h.228l.227.691h.454l.454.461v.461l2.499 2.304v.461l2.044 1.843c.436.605.52 1.2 1.136 1.613-.142.557-.237.509-.454.921-1.032-.029-1.401-.297-1.59-1.152h-.455c-.274-1.008-1.107-1.296-1.363-2.304h-.454c-.218-.825-.757-.969-1.135-1.613h-.455c-.236-.892-.823-1.065-1.363-1.612l-2.725-3.226h-.455c-.312-1.181-1.486-1.574-2.044-2.534h-.455c-.208-.759-.7-1.085-1.135-1.613h-.227v-.461l-.682-.461-1.363-1.613-.681-.23v-.461l-2.272-2.073v-.461l-4.543-4.378-.227-.691-2.044-1.843v-.461l-2.044-1.843v-.461l-1.136-.691-.455-.691h-.227v-.461l-.908-.691v-.461l-1.136-.922v-.461l-1.136-.921v-.461l-2.044-1.843v-.461h-.227v-.23c-.52-.452-.407.249-.682-.692h-.227v-1.152c1.76.039 1.647.97 2.499 1.844l1.363 1.152v.46h.227l.681.922 1.136.922v.46l.454.231v.23l1.363 1.152v.461c.417.586.9.442 1.136 1.382h.454v.231l1.363 1.152v.461l.682.46v.231h.454l.227.691 1.59 1.382v.461l3.407 3.226z", fill: "#222" }))));
|
|
4607
4574
|
};
|
|
4608
|
-
var templateObject_1$
|
|
4575
|
+
var templateObject_1$M;
|
|
4609
4576
|
|
|
4610
4577
|
var OakInlineRegistrationBanner = function (props) {
|
|
4611
4578
|
var onSubmit = props.onSubmit, bodyText = props.bodyText, headerText = props.headerText, style = tslib.__rest(props, ["onSubmit", "bodyText", "headerText"]);
|
|
@@ -4657,14 +4624,14 @@ var OakInlineRegistrationBanner = function (props) {
|
|
|
4657
4624
|
React__default.default.createElement(SurfingStudentSVG, { "$display": ["none", "block", "block"] }))));
|
|
4658
4625
|
};
|
|
4659
4626
|
|
|
4660
|
-
var LeftScrollBox = styled__default.default(OakBox)(templateObject_1$
|
|
4627
|
+
var LeftScrollBox = styled__default.default(OakBox)(templateObject_1$L || (templateObject_1$L = tslib.__makeTemplateObject(["\n direction: rtl;\n\n & > * {\n direction: ltr;\n }\n\n scrollbar-color: ", " #fff;\n\n a{\n color: ", "; \n text-decoration: underline;\n }\n\n a::active {\n color: ", ";\n }\n\n a::hover {\n color: ", ";\n }\n\n a::visited {\n color: ", ";\n }\n\n a::pressed {\n color: ", ";\n }\n\n}\n\n"], ["\n direction: rtl;\n\n & > * {\n direction: ltr;\n }\n\n scrollbar-color: ", " #fff;\n\n a{\n color: ", "; \n text-decoration: underline;\n }\n\n a::active {\n color: ", ";\n }\n\n a::hover {\n color: ", ";\n }\n\n a::visited {\n color: ", ";\n }\n\n a::pressed {\n color: ", ";\n }\n\n}\n\n"])), function () { return parseColor("bg-decorative2-main"); }, function () { return parseColor("icon-link-active"); }, function () { return parseColor("text-link-active"); }, function () { return parseColor("text-link-hover"); }, function () { return parseColor("text-link-visited"); }, function () { return parseColor("text-link-pressed"); });
|
|
4661
4628
|
var OakTeacherNotesInline = function (_a) {
|
|
4662
4629
|
var sanitizedHtml = _a.sanitizedHtml;
|
|
4663
4630
|
var innerHtml = sanitizedHtml !== null && sanitizedHtml !== void 0 ? sanitizedHtml : "";
|
|
4664
4631
|
return (React__default.default.createElement(OakBox, { "$pv": "spacing-24", "$pr": "spacing-24", "$ba": "border-solid-m", "$borderColor": "bg-decorative2-main", "$borderRadius": "border-radius-l", "data-testid": "oak-teacher-notes-inline" },
|
|
4665
4632
|
React__default.default.createElement(LeftScrollBox, { "$overflow": "scroll", "$pl": "spacing-24", "$height": "spacing-72", dangerouslySetInnerHTML: { __html: innerHtml } })));
|
|
4666
4633
|
};
|
|
4667
|
-
var templateObject_1$
|
|
4634
|
+
var templateObject_1$L;
|
|
4668
4635
|
|
|
4669
4636
|
var EditorContainer = function (_a) {
|
|
4670
4637
|
var editorNode = _a.editorNode, remainingCharacters = _a.remainingCharacters, isBold = _a.isBold, isBulletList = _a.isBulletList, onBoldClick = _a.onBoldClick, onBulletListClick = _a.onBulletListClick;
|
|
@@ -4723,10 +4690,10 @@ var OakTeacherNotesModal = function (_a) {
|
|
|
4723
4690
|
".")) }))));
|
|
4724
4691
|
};
|
|
4725
4692
|
|
|
4726
|
-
var StyledNav$1 = styled__default.default.nav(templateObject_1$
|
|
4727
|
-
var StyledOakLink = styled__default.default(InternalLink)(templateObject_2$
|
|
4728
|
-
var StyledOL = styled__default.default.ol(templateObject_3$
|
|
4729
|
-
var StyledOLItem = styled__default.default(OakLI)(templateObject_4$
|
|
4693
|
+
var StyledNav$1 = styled__default.default.nav(templateObject_1$K || (templateObject_1$K = tslib.__makeTemplateObject(["\n outline: none;\n"], ["\n outline: none;\n"])));
|
|
4694
|
+
var StyledOakLink = styled__default.default(InternalLink)(templateObject_2$j || (templateObject_2$j = tslib.__makeTemplateObject(["\n text-decoration: none;\n color: inherit;\n width: 100%;\n display: Flex;\n width: 100%;\n &:focus {\n box-shadow: none;\n }\n\n &::before {\n content: counter(list-counter);\n min-width: 32px;\n height: 32px;\n border-radius: 50%;\n background-color: ", ";\n color: ", ";\n text-align: center;\n line-height: 32px;\n margin-right: ", ";\n text-decoration: none;\n }\n &:hover::before {\n background-color: ", ";\n box-shadow: ", ";\n text-decoration: none;\n }\n\n &:focus-within::before {\n box-shadow:\n ", ",\n ", ";\n text-decoration: none;\n }\n &:active {\n color: ", ";\n }\n &:active::before {\n box-shadow:\n ", ",\n ", ";\n background-color: ", ";\n }\n"], ["\n text-decoration: none;\n color: inherit;\n width: 100%;\n display: Flex;\n width: 100%;\n &:focus {\n box-shadow: none;\n }\n\n &::before {\n content: counter(list-counter);\n min-width: 32px;\n height: 32px;\n border-radius: 50%;\n background-color: ", ";\n color: ", ";\n text-align: center;\n line-height: 32px;\n margin-right: ", ";\n text-decoration: none;\n }\n &:hover::before {\n background-color: ", ";\n box-shadow: ", ";\n text-decoration: none;\n }\n\n &:focus-within::before {\n box-shadow:\n ", ",\n ", ";\n text-decoration: none;\n }\n &:active {\n color: ", ";\n }\n &:active::before {\n box-shadow:\n ", ",\n ", ";\n background-color: ", ";\n }\n"])), parseColor("bg-inverted"), parseColor("text-inverted"), parseSpacing("spacing-12"), parseColor("bg-btn-primary-hover"), parseDropShadow("drop-shadow-lemon"), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), parseColor("text-primary"), parseDropShadow("drop-shadow-lemon"), parseDropShadow("drop-shadow-grey"), parseColor("bg-inverted"));
|
|
4695
|
+
var StyledOL = styled__default.default.ol(templateObject_3$f || (templateObject_3$f = tslib.__makeTemplateObject(["\n list-style: none;\n padding: 0;\n margin: 0;\n text-decoration: none;\n"], ["\n list-style: none;\n padding: 0;\n margin: 0;\n text-decoration: none;\n"])));
|
|
4696
|
+
var StyledOLItem = styled__default.default(OakLI)(templateObject_4$8 || (templateObject_4$8 = tslib.__makeTemplateObject(["\n position: relative;\n counter-increment: list-counter;\n display: flex;\n align-items: center;\n margin-bottom: ", ";\n min-height: 40px;\n &:last-child {\n margin-bottom: 0;\n }\n\n &:hover {\n text-decoration: underline;\n color: ", ";\n }\n"], ["\n position: relative;\n counter-increment: list-counter;\n display: flex;\n align-items: center;\n margin-bottom: ", ";\n min-height: 40px;\n &:last-child {\n margin-bottom: 0;\n }\n\n &:hover {\n text-decoration: underline;\n color: ", ";\n }\n"])), parseSpacing("spacing-12"), parseColor("bg-btn-primary-hover"));
|
|
4730
4697
|
var OakTertiaryOLNav = function (_a) {
|
|
4731
4698
|
var items = _a.items, ariaLabel = _a.ariaLabel, title = _a.title, anchorTarget = _a.anchorTarget, onClick = _a.onClick, rest = tslib.__rest(_a, ["items", "ariaLabel", "title", "anchorTarget", "onClick"]);
|
|
4732
4699
|
var _b = tslib.__read(React.useState(null), 2), currentHref = _b[0], setCurrentHref = _b[1];
|
|
@@ -4742,7 +4709,7 @@ var OakTertiaryOLNav = function (_a) {
|
|
|
4742
4709
|
React__default.default.createElement(StyledOL, { role: "list" }, items.map(function (item, index) { return (React__default.default.createElement(StyledOLItem, { "$font": "heading-7", key: index },
|
|
4743
4710
|
React__default.default.createElement(StyledOakLink, { onClick: onClick, href: item.href, "aria-current": item.href === currentHref ? "true" : undefined, onKeyDown: handleKeyDown }, item.title))); }))));
|
|
4744
4711
|
};
|
|
4745
|
-
var templateObject_1$
|
|
4712
|
+
var templateObject_1$K, templateObject_2$j, templateObject_3$f, templateObject_4$8;
|
|
4746
4713
|
|
|
4747
4714
|
var removedGuidanceDuplicates = function (contentGuidance) {
|
|
4748
4715
|
if (contentGuidance === void 0) { contentGuidance = []; }
|
|
@@ -4802,13 +4769,13 @@ var internalCardDefaults = {
|
|
|
4802
4769
|
* InternalCard extends OakFlex. It has all the props of OakFlex, but applies default styles for consistency.
|
|
4803
4770
|
*
|
|
4804
4771
|
*/
|
|
4805
|
-
var InternalCard = styled__default.default(OakFlex).attrs(function (props) { return (tslib.__assign(tslib.__assign({}, internalCardDefaults), props)); })(templateObject_1$
|
|
4806
|
-
var templateObject_1$
|
|
4772
|
+
var InternalCard = styled__default.default(OakFlex).attrs(function (props) { return (tslib.__assign(tslib.__assign({}, internalCardDefaults), props)); })(templateObject_1$J || (templateObject_1$J = tslib.__makeTemplateObject([""], [""])));
|
|
4773
|
+
var templateObject_1$J;
|
|
4807
4774
|
|
|
4808
4775
|
/**
|
|
4809
4776
|
* The `backgroundElement` should be sized to fit the entire card
|
|
4810
4777
|
*/
|
|
4811
|
-
var StyledBackgroundBox = styled__default.default(OakBox)(templateObject_1$
|
|
4778
|
+
var StyledBackgroundBox = styled__default.default(OakBox)(templateObject_1$I || (templateObject_1$I = tslib.__makeTemplateObject(["\n & > * {\n width: 100%;\n height: 100%;\n }\n"], ["\n & > * {\n width: 100%;\n height: 100%;\n }\n"])));
|
|
4812
4779
|
/**
|
|
4813
4780
|
* A flexed card with a presentational background element positioned behind the card contents.
|
|
4814
4781
|
*/
|
|
@@ -4818,7 +4785,7 @@ var InternalCardWithBackgroundElement = function (_a) {
|
|
|
4818
4785
|
React__default.default.createElement(StyledBackgroundBox, { "$position": "absolute", "$inset": "spacing-0", "aria-hidden": true }, backgroundElement),
|
|
4819
4786
|
React__default.default.createElement(OakBox, { "$position": "relative" }, children)));
|
|
4820
4787
|
};
|
|
4821
|
-
var templateObject_1$
|
|
4788
|
+
var templateObject_1$I;
|
|
4822
4789
|
|
|
4823
4790
|
/**
|
|
4824
4791
|
* A flexed card with a hand-drawn filled background
|
|
@@ -4862,7 +4829,7 @@ function getIconBackground(iconBackground) {
|
|
|
4862
4829
|
: "bg-decorative3-main";
|
|
4863
4830
|
}
|
|
4864
4831
|
|
|
4865
|
-
var StyledLayoutBox$1 = styled__default.default(OakFlex)(templateObject_2$
|
|
4832
|
+
var StyledLayoutBox$1 = styled__default.default(OakFlex)(templateObject_2$i || (templateObject_2$i = tslib.__makeTemplateObject(["\n @media (min-width: ", "px) {\n ", "\n"], ["\n @media (min-width: ", "px) {\n ", "\n"])), getBreakpoint("large"), function (props) { return styled.css(templateObject_1$H || (templateObject_1$H = tslib.__makeTemplateObject(["\n background-image: url(", ");\n background-repeat: no-repeat;\n background-position-x: center;\n background-size: 100%;\n "], ["\n background-image: url(", ");\n background-repeat: no-repeat;\n background-position-x: center;\n background-size: 100%;\n "])), getBackgroundUrlForSection(props.sectionName, props === null || props === void 0 ? void 0 : props.phase)); });
|
|
4866
4833
|
/**
|
|
4867
4834
|
* Provides overall page layout and colours for the pupil journey
|
|
4868
4835
|
*
|
|
@@ -4914,7 +4881,7 @@ function getBackgroundUrlForSection(sectionName, phase) {
|
|
|
4914
4881
|
return "";
|
|
4915
4882
|
}
|
|
4916
4883
|
}
|
|
4917
|
-
var templateObject_1$
|
|
4884
|
+
var templateObject_1$H, templateObject_2$i;
|
|
4918
4885
|
|
|
4919
4886
|
/*
|
|
4920
4887
|
|
|
@@ -4964,14 +4931,14 @@ var OakPupilJourneyListCounter = function (props) {
|
|
|
4964
4931
|
React__default.default.createElement(OakSpan, { "$font": "heading-light-6" }, " (".concat(count, ")"))));
|
|
4965
4932
|
};
|
|
4966
4933
|
|
|
4967
|
-
var StyledLabel$2 = styled__default.default(OakBox)(templateObject_1$
|
|
4968
|
-
var StyledRoundIcon$1 = styled__default.default(OakRoundIcon)(templateObject_2$
|
|
4934
|
+
var StyledLabel$2 = styled__default.default(OakBox)(templateObject_1$G || (templateObject_1$G = tslib.__makeTemplateObject([""], [""])));
|
|
4935
|
+
var StyledRoundIcon$1 = styled__default.default(OakRoundIcon)(templateObject_2$h || (templateObject_2$h = tslib.__makeTemplateObject(["\n width: ", ";\n height: ", ";\n padding: 0;\n\n background: transparent;\n\n img {\n filter: ", ";\n }\n"], ["\n width: ", ";\n height: ", ";\n padding: 0;\n\n background: transparent;\n\n img {\n filter: ", ";\n }\n"])), parseSpacing("spacing-40"), parseSpacing("spacing-40"), function (props) {
|
|
4969
4936
|
return parseColorFilter(props.$disabled ? "icon-disabled" : "icon-primary");
|
|
4970
4937
|
});
|
|
4971
|
-
var activeIconStyles$1 = styled.css(templateObject_3$
|
|
4972
|
-
var hoverIconStyles = styled.css(templateObject_4$
|
|
4938
|
+
var activeIconStyles$1 = styled.css(templateObject_3$e || (templateObject_3$e = tslib.__makeTemplateObject(["\n ", " {\n box-shadow:\n ", ",\n ", ";\n }\n"], ["\n ", " {\n box-shadow:\n ", ",\n ", ";\n }\n"])), StyledRoundIcon$1, parseDropShadow("drop-shadow-lemon"), parseDropShadow("drop-shadow-grey"));
|
|
4939
|
+
var hoverIconStyles = styled.css(templateObject_4$7 || (templateObject_4$7 = tslib.__makeTemplateObject(["\n ", " {\n background: ", ";\n\n img {\n filter: ", ";\n }\n }\n"], ["\n ", " {\n background: ", ";\n\n img {\n filter: ", ";\n }\n }\n"])), StyledRoundIcon$1, parseColor("bg-btn-primary"), parseColorFilter("icon-inverted"));
|
|
4973
4940
|
var StyledPupilJourneyItem = styled__default.default(OakFlex)(templateObject_6$4 || (templateObject_6$4 = tslib.__makeTemplateObject(["\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n\n ", "\n\n ", "\n"], ["\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n\n ", "\n\n ", "\n"])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), function (props) { return props.$disabled && "cursor: not-allowed"; }, function (props) {
|
|
4974
|
-
return !props.$disabled && styled.css(templateObject_5$
|
|
4941
|
+
return !props.$disabled && styled.css(templateObject_5$6 || (templateObject_5$6 = tslib.__makeTemplateObject(["\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n background: ", ";\n ", " {\n text-decoration: underline;\n }\n\n ", "\n }\n }\n\n &:active {\n box-shadow:\n ", ",\n ", ";\n ", "\n ", "\n }\n "], ["\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n background: ", ";\n ", " {\n text-decoration: underline;\n }\n\n ", "\n }\n }\n\n &:active {\n box-shadow:\n ", ",\n ", ";\n ", "\n ", "\n }\n "])), parseColor("bg-decorative1-subdued"), StyledLabel$2, hoverIconStyles, parseDropShadow("drop-shadow-lemon"), parseDropShadow("drop-shadow-grey"), activeIconStyles$1, hoverIconStyles);
|
|
4975
4942
|
});
|
|
4976
4943
|
var FlexedOakBox$1 = styled__default.default(OakBox)(templateObject_7$2 || (templateObject_7$2 = tslib.__makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
|
|
4977
4944
|
/**
|
|
@@ -4995,7 +4962,7 @@ var OakPupilJourneyListItem = function (props) {
|
|
|
4995
4962
|
props.unavailable && (React__default.default.createElement(StyledLabel$2, { "$font": "heading-7", "$color": disabledOrUnavailable ? "text-subdued" : "text-primary" }, "Unavailable")),
|
|
4996
4963
|
!props.unavailable && (React__default.default.createElement(StyledRoundIcon$1, { iconName: "chevron-right", "$disabled": disabledOrUnavailable }))))));
|
|
4997
4964
|
};
|
|
4998
|
-
var templateObject_1$
|
|
4965
|
+
var templateObject_1$G, templateObject_2$h, templateObject_3$e, templateObject_4$7, templateObject_5$6, templateObject_6$4, templateObject_7$2;
|
|
4999
4966
|
|
|
5000
4967
|
/**
|
|
5001
4968
|
* This component displays a heading for the previous lessons
|
|
@@ -5023,9 +4990,9 @@ var OakCardWithHandDrawnBorder = function (_a) {
|
|
|
5023
4990
|
React__default.default.createElement("path", { d: "M1279.41 10.776C1279 10.0177 1279.5 7.99963 1277.5 8.65073C1277 8.65073 1275.53 8.70062 1276 9.41902C1276.56 23.5974 1276.34 113.092 1276.5 127.5C1279.56 128.617 0.908149 127.396 3.00021 126.907C0.314877 122.776 4.03063 33.3856 3.00021 28.4965C1.50142 21.2426 3.15634 15.9345 3.00021 9.88797C2.50062 2.40466 5.02719 2.69402 30.132 3.02328C65.2287 3.02328 92.6753 2.94346 121.902 3.02328C179.387 2.95344 224.944 3.04324 265.786 3.02328C337.634 3.14302 398.835 2.90355 455.258 3.04324C613.381 2.74391 948.86 2.91353 1106.55 2.8836C1140.74 2.77384 1210.34 2.98337 1265.54 2.8836C1265.92 2.77384 1272.26 3.18293 1271.91 2.48449C1272.69 2.02551 1272.54 1.09758 1272.79 0.508892C1269.63 -0.269372 1265.04 0.199582 1262.14 0.169649C1031.33 0.329293 652.911 0.109783 455.508 0.459004C362.396 0.508892 273.03 0.478959 185.725 0.488937C140.918 0.488937 80.5913 0.488937 37.501 0.468981C16.0808 -0.488882 9.05519 0.399137 2.62287 0.369204C0.249785 0.359226 1.74858 2.66408 1.34265 3.45233C-1.40389 6.89465 0.178862 11.9996 0.000150621 17.1218C-0.343323 26.9699 0.312234 116.849 0.0936605 129.88C5.37066 130.16 24.0119 129.88 25.1984 129.94C172.236 130.1 523.859 129.87 669.117 129.91C885.755 129.86 1045.25 129.79 1261.02 129.79C1260.7 129.332 1284.53 130.898 1279.22 128.723C1279.09 113.178 1279.09 26.7005 1279.41 10.776ZM1268.85 2.47451C1268.6 2.4346 1268.45 2.30489 1268.73 2.13526C1269.2 2.00555 1269.54 2.69402 1268.85 2.47451ZM1263.73 0.73838C1264.98 0.73838 1265.39 1.28716 1263.92 0.927957C1263.14 0.808225 1262.95 0.73838 1263.73 0.73838ZM1260.83 1.96564C1261.39 1.78604 1264.54 1.58649 1262.64 1.96564C1261.17 2.23504 1259.3 2.99335 1260.83 1.96564ZM1277 12.8015C1276.59 11.9633 1277 8.56953 1277.5 10.4996C1277.75 12.6349 1278.5 13.4996 1277 12.8015ZM1266.1 2.255C1269.04 2.46453 1264.57 2.54435 1265.64 2.29491C1265.64 2.17518 1265.64 2.13526 1266.1 2.255ZM1266.35 0.698469C1266.35 0.698469 1266.64 0.748358 1266.64 0.848136C1266.98 1.25722 1265.04 0.688492 1266.35 0.698469ZM1278.5 9.63853C1278.5 9.63853 1278.78 10.0376 1278.78 10.8359C1279.12 14.1285 1278 9.63853 1278.5 9.63853ZM1269.48 1.46676C1270.04 1.7162 1269.23 1.76609 1269.2 1.5366C1269.2 1.42684 1269.32 1.38693 1269.48 1.46676ZM1255.58 0.129738C1256.67 0.0598939 1257.77 0.019983 1258.02 0.059894C1259.83 0.159671 1251.05 0.309338 1255.58 0.129738ZM1197.41 2.32484C1198.75 2.29491 1198.72 2.62417 1197.41 2.62417C1196.1 2.62417 1196.07 2.30489 1197.41 2.32484ZM1168.5 2.10533C1168.84 2.01553 1171.77 1.91575 1172.09 2.10533C1172.52 2.14524 1167.81 2.30489 1168.5 2.10533ZM1112.35 0.20956C1116.57 0.269427 1110.51 0.239493 1110.32 0.20956C1110.6 0.20956 1111.54 0.20956 1112.35 0.20956ZM1109.76 0.878069C1111.1 0.878069 1111.07 1.03771 1109.76 1.03771C1108.45 1.03771 1108.42 0.888047 1109.76 0.878069ZM1088.5 1.04769C1089.34 0.688492 1094.59 0.498915 1091.15 0.967869C1087.72 1.34702 1086.72 1.41687 1088.5 1.04769ZM1084.38 0.139716C1086.91 0.179627 1086.28 0.179627 1083.91 0.159671C1081.47 0.139716 1081.82 0.11976 1084.38 0.139716ZM1071.92 2.67406C1071.45 2.69402 1071.17 2.69402 1070.45 2.67406C1067.51 2.59424 1073.54 2.6142 1071.92 2.67406ZM1069.67 2.31486C1070.2 2.28493 1073.32 2.24502 1071.79 2.37473C1071.45 2.4346 1067.26 2.38471 1069.67 2.31486ZM1063.42 1.19736C1064.14 1.0876 1065.49 1.52662 1063.71 1.58649C1061.99 1.76609 1060.02 1.24725 1063.42 1.19736ZM1046.69 0.73838C1046.84 0.658558 1047.56 0.528848 1048.22 0.528848C1052.09 0.379182 1045.59 1.13749 1046.69 0.73838ZM1026.52 2.58426C1027.27 2.55433 1028.51 2.58426 1029.33 2.6142C1032.2 2.67406 1025.39 2.64413 1026.52 2.58426ZM1010.84 2.56431C1013.71 2.58426 1009.62 2.63415 1009.28 2.58426C1009.28 2.57428 1009.84 2.56431 1010.84 2.56431ZM991.514 0.788269C992.7 0.908002 994.012 0.478959 995.323 0.927957C994.98 1.45678 985.799 0.708447 991.514 0.788269ZM968.001 2.10533C970.031 1.8958 970 2.10533 968.001 2.255C966.034 2.46453 966.034 2.255 968.001 2.10533ZM964.254 1.40689C966.378 1.81598 961.756 1.85589 961.069 1.90578C961.788 1.66631 963.88 1.60644 964.254 1.40689ZM958.009 2.22506C958.977 2.1652 959.508 2.1652 960.476 2.22506C963.224 2.30489 955.293 2.30489 958.009 2.22506ZM955.761 0.059894C958.852 0.0299607 954.106 0.159671 954.075 0.0798494C954.075 0.0698717 954.824 0.059894 955.761 0.059894ZM950.984 2.27495C951.452 2.30489 952.888 2.27495 953.451 2.49446C954.169 2.73393 946.737 2.6142 950.984 2.27495ZM937.744 2.60422C938.494 2.59424 939.68 2.60422 940.43 2.6142C944.364 2.64413 935.621 2.64413 937.744 2.60422ZM896.965 1.99558C899.713 2.15522 897.964 2.10533 896.965 2.28493C898.214 2.82373 893.124 1.96564 896.965 1.99558ZM872.984 1.94569C873.765 1.87584 874.67 1.806 875.045 1.87584C876.512 2.18515 868.644 2.51442 872.984 1.94569ZM864.741 2.4346H867.208C869.83 2.68404 859.932 2.42462 864.741 2.4346ZM850.471 2.5244C850.471 2.5244 853.999 2.31486 853.562 2.5244C853.562 2.55433 850.034 2.64413 850.471 2.5244ZM845.225 2.59424C845.225 2.66408 843.601 2.59424 843.445 2.59424H845.225ZM826.147 0.0798494C827.646 0.0598939 828.239 0.0598939 828.707 0.0798494C828.926 0.149694 820.62 0.159671 826.147 0.0798494ZM821.432 2.57429H823.93C825.647 2.6142 816.842 2.58426 821.432 2.57429ZM786.554 0.82818C786.804 0.82818 791.05 0.778291 791.113 0.848136C791.113 0.898024 786.429 0.848135 786.554 0.82818ZM703.558 2.56431C704.058 2.54435 707.555 2.50444 705.619 2.56431C705.119 2.57429 701.622 2.60422 703.558 2.56431ZM698.625 0.189605C700.529 0.149694 701.497 0.159671 701.497 0.20956C701.903 0.29936 695.127 0.239493 698.625 0.189605ZM531.322 2.69402H535.194C541.47 2.75388 527.294 2.72395 531.322 2.69402ZM520.862 2.71397C521.642 2.71397 522.829 2.71397 523.547 2.71397C525.67 2.74391 515.335 2.74391 520.862 2.71397ZM514.336 0.638603C517.052 0.60867 513.399 0.778291 513.336 0.688492C513.336 0.668536 513.805 0.648581 514.336 0.638603ZM486.702 2.62417C488.513 2.65411 485.921 2.66408 485.484 2.64413C484.297 2.6142 485.172 2.59424 486.702 2.62417ZM448.326 0.419093C448.514 0.419093 448.732 0.409115 448.951 0.409115C453.291 0.409115 444.517 0.488937 448.326 0.419093ZM447.265 2.75388C448.482 2.74391 449.482 2.74391 449.856 2.75388C449.482 2.77384 442.113 2.86364 447.265 2.75388ZM414.322 1.0876C415.009 1.0876 416.04 1.06765 416.633 1.0876C417.726 1.10756 411.481 1.15745 414.322 1.0876ZM403.925 2.67406C404.83 2.67406 406.079 2.72395 406.079 2.75388C405.954 2.77384 400.833 2.76386 403.925 2.67406ZM396.274 2.13526C396.274 2.13526 399.709 2.11531 399.397 2.13526C399.397 2.13526 395.869 2.17518 396.274 2.13526ZM394.214 1.58649C396.15 1.58649 396.306 1.64636 394.214 1.6264C392.246 1.59647 392.246 1.59647 394.214 1.58649ZM389.186 1.52662C389.686 1.50667 390.342 1.49669 390.841 1.49669C393.183 1.50667 388.343 1.57651 389.186 1.52662ZM381.536 2.75388C383.41 2.72395 384.315 2.72395 383.691 2.76386C383.285 2.81375 378.164 2.81375 381.536 2.75388ZM363.301 0.688492C367.329 0.758336 361.99 0.798247 361.833 0.688492C361.771 0.668536 362.052 0.668536 363.301 0.688492ZM322.584 1.84591C323.926 1.81598 323.895 1.92573 322.584 1.8958C321.272 1.88582 321.241 1.85589 322.584 1.84591ZM312.436 0.967869C312.436 0.967869 315.496 0.908002 315.152 0.967869C315.215 0.967869 312.061 1.02773 312.436 0.967869ZM301.132 1.84591C301.601 1.79602 304.348 1.79602 304.848 1.83593C305.223 1.83593 300.726 1.87584 301.132 1.84591ZM276.34 1.59647C276.496 1.57651 281.18 1.55656 281.336 1.59647C280.836 1.59647 276.402 1.65633 276.34 1.59647ZM275.903 2.73393C278.557 2.73393 279.431 2.76386 277.37 2.78382C275.028 2.82373 274.466 2.78382 275.903 2.73393ZM263.6 0.548803C266.91 0.528848 262.663 0.618647 261.976 0.578736C262.195 0.558781 262.913 0.548803 263.6 0.548803ZM224.507 0.468981C225.037 0.468981 225.662 0.468981 226.037 0.468981C226.567 0.508892 221.415 0.548803 224.507 0.468981ZM210.018 2.704C211.736 2.69402 211.642 2.78382 209.644 2.75388C207.864 2.75388 208.082 2.71397 210.018 2.704ZM196.311 1.10756C197.122 1.0876 198.059 1.07762 198.371 1.0876C197.56 1.14747 192.158 1.20733 196.311 1.10756ZM182.353 1.32707C183.696 1.30711 183.665 1.36698 182.353 1.37696C181.042 1.39691 181.01 1.32707 182.353 1.32707ZM175.39 0.349248C180.167 0.339271 172.018 0.409115 173.079 0.359226C173.079 0.359226 174.11 0.339271 175.39 0.349248ZM171.674 0.439048C172.018 0.42907 172.705 0.419093 173.204 0.419093C176.358 0.449026 170.925 0.508892 171.674 0.439048ZM167.771 1.76609C169.114 1.76609 169.988 1.78604 169.364 1.806C168.458 1.82595 165.46 1.76609 167.771 1.76609ZM160.933 0.868091C161.589 0.868091 162.307 0.888046 162.525 0.898024C162.525 0.947913 157.529 0.848136 160.933 0.868091ZM145.164 0.379182C148.724 0.449026 143.822 0.409115 143.322 0.379182C141.854 0.329293 142.698 0.329293 145.164 0.379182ZM131.363 2.72395C133.955 2.73393 129.895 2.83371 129.739 2.77384C128.802 2.73393 129.427 2.71397 131.363 2.72395ZM124.119 2.71397C125.867 2.71397 126.492 2.78382 124.119 2.75388C122.12 2.71397 122.12 2.72395 124.119 2.71397ZM104.01 1.59647C105.509 1.51664 105.103 1.64636 104.01 1.64636C102.792 1.65633 102.792 1.64636 104.01 1.59647ZM95.0484 2.13526C102.293 2.00555 89.5528 2.90355 91.0516 2.39469C91.0516 2.26498 92.8315 2.13526 95.0484 2.13526ZM64.573 2.63415C71.7235 2.63415 62.356 2.83371 60.8884 2.71397C61.1694 2.65411 62.8868 2.63415 64.573 2.63415ZM63.6987 2.40466C62.7619 2.53437 52.7075 2.81375 53.8316 2.40466H63.6987ZM42.1535 1.95567C46.9621 1.95567 53.9565 2.22506 51.2087 2.28493C46.0566 2.46453 34.8157 2.20511 42.1535 1.95567ZM31.9742 2.69402C40.3112 2.62417 35.003 2.86364 30.7252 2.85366C24.0743 2.85366 24.855 2.73393 31.9742 2.69402ZM1.68613 118.526C1.2802 119.084 1.2802 124.083 0.999181 121.379C-1.42455e-05 119.942 2.49797 114.096 1.68613 118.526ZM1.62492 13.5099C1.31267 20.2648 1.15655 8.76049 1.50002 7.77269C1.7186 5.96672 1.84349 8.94009 1.62492 13.5099ZM2.50021 33.0762C-0.715945 42.3655 1.00021 30.9996 2.50021 29.5985C1.25122 29.8778 2.87491 31.839 2.50021 33.0762ZM36.5955 127.585C32.2865 127.625 29.7885 127.635 29.1328 127.615C27.8213 127.436 53.4257 127.326 36.5955 127.585ZM58.89 129.651C56.9541 129.312 55.4241 129.501 53.4257 129.222C51.1463 128.952 64.5417 129.691 58.89 129.651ZM84.3695 127.346C92.7066 127.336 89.6153 127.555 83.5889 127.555C76.2511 127.555 77.0317 127.406 84.3695 127.346ZM94.7362 127.745C88.3975 127.745 88.4912 127.446 94.7362 127.386C100.856 127.446 100.95 127.735 94.7362 127.745ZM115.032 128.344C104.978 128.174 104.978 127.915 115.032 127.745C125.087 127.915 125.087 128.174 115.032 128.344ZM140.855 128.443C127.803 128.443 139.637 128.174 144.04 128.274C151.534 128.384 150.41 128.443 140.855 128.443ZM156.842 129.451C156.28 129.491 154.438 129.571 152.658 129.571C143.947 129.641 156.874 129.242 156.842 129.451ZM172.736 129.371C169.676 129.371 166.335 129.312 165.304 129.202C168.833 128.972 187.974 129.461 172.736 129.371ZM174.266 127.526C172.642 127.446 184.601 127.156 184.508 127.186C186.256 127.306 174.172 127.555 174.266 127.526ZM189.847 128.922C187.849 128.982 185.101 128.982 183.946 128.982C177.513 128.703 197.029 128.703 189.847 128.922ZM196.498 127.346C195.249 127.376 191.689 127.426 188.473 127.466C174.547 127.546 206.677 127.007 196.498 127.346ZM234.748 129.012C228.566 129.361 230.908 129.022 236.934 128.753C242.898 128.443 241.399 128.633 234.748 129.012ZM273.904 128.753C271.5 128.753 268.659 128.713 267.659 128.673C266.504 128.483 287.893 128.683 273.904 128.753ZM310 128.683C307.596 128.683 303.287 128.643 300.445 128.593C285.426 128.364 315.589 128.533 310 128.683ZM344.878 128.883C334.855 128.613 345.315 128.434 349.5 128.703C355.901 129.072 353.715 129.132 344.878 128.883ZM366.892 129.062C359.71 129.162 367.641 128.843 369.14 128.982C369.14 128.982 368.141 129.062 366.892 129.062ZM373.824 127.645C371.107 127.516 372.731 127.446 374.386 127.526C376.79 127.605 376.322 127.725 373.824 127.645ZM382.91 128.094C382.473 127.915 384.284 127.875 384.721 127.975C385.564 128.054 384.034 128.174 382.91 128.094ZM396.774 129.711C393.121 129.691 397.086 129.561 397.898 129.591C399.647 129.671 399.241 129.711 396.774 129.711ZM466.062 129.621C464.751 129.621 464.719 129.431 466.062 129.441C467.405 129.421 467.373 129.621 466.062 129.621ZM475.679 129.381C464.407 129.351 474.618 128.982 478.677 129.032C486.077 129.172 484.204 129.381 475.679 129.381ZM478.958 127.805C478.365 127.835 475.336 128.134 476.085 127.895C476.959 127.735 481.799 127.516 478.958 127.805ZM483.392 127.775C481.706 127.775 481.425 127.735 482.268 127.705C483.642 127.565 488.107 127.795 483.392 127.775ZM497.88 129.691C497.068 129.731 496.319 129.731 496.1 129.691C494.82 129.451 500.628 129.611 497.88 129.691ZM537.255 129.621C534.444 129.621 532.04 129.511 532.04 129.511C532.196 129.172 550.775 129.551 537.255 129.621ZM678.703 129.102C675.987 129.102 672.271 129.032 670.585 128.992C667.587 128.753 695.034 128.972 678.703 129.102ZM732.285 129.561C721.762 129.551 733.472 129.312 737.843 129.561H732.285ZM734.783 128.992C716.235 128.902 734.408 128.773 739.779 128.912C747.71 128.972 741.184 128.932 734.783 128.992ZM831.268 129.092H815.53C799.418 128.354 861.587 129.132 831.268 129.092ZM929.064 129.252C926.285 129.351 923.006 129.441 921.039 129.351C918.198 128.922 945.176 128.473 929.064 129.252ZM931.343 128.384C928.408 128.384 929.876 128.284 934.778 128.094C951.764 127.685 962.318 128.334 931.343 128.384Z" })) }, props)));
|
|
5024
4991
|
};
|
|
5025
4992
|
|
|
5026
|
-
var StyledLabel$1 = styled__default.default(OakBox)(templateObject_1$
|
|
5027
|
-
var StyledPupilOptionalityListButton = styled__default.default(OakFlex)(templateObject_3$
|
|
5028
|
-
return !props.$disabled && styled.css(templateObject_2$
|
|
4993
|
+
var StyledLabel$1 = styled__default.default(OakBox)(templateObject_1$F || (templateObject_1$F = tslib.__makeTemplateObject([""], [""])));
|
|
4994
|
+
var StyledPupilOptionalityListButton = styled__default.default(OakFlex)(templateObject_3$d || (templateObject_3$d = tslib.__makeTemplateObject(["\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n\n ", "\n\n ", "\n"], ["\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n\n ", "\n\n ", "\n"])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), function (props) { return props.$disabled && "cursor: not-allowed"; }, function (props) {
|
|
4995
|
+
return !props.$disabled && styled.css(templateObject_2$g || (templateObject_2$g = tslib.__makeTemplateObject(["\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n background: ", ";\n ", " {\n text-decoration: underline;\n }\n }\n }\n\n &:active {\n box-shadow:\n ", ",\n ", ";\n }\n "], ["\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n background: ", ";\n ", " {\n text-decoration: underline;\n }\n }\n }\n\n &:active {\n box-shadow:\n ", ",\n ", ";\n }\n "])), parseColor("bg-decorative1-subdued"), StyledLabel$1, parseDropShadow("drop-shadow-lemon"), parseDropShadow("drop-shadow-grey"));
|
|
5029
4996
|
});
|
|
5030
4997
|
/**
|
|
5031
4998
|
* Button for units with optionality it is only used as the child of the PupilJourneyOptionailityitem component
|
|
@@ -5045,7 +5012,7 @@ var OakPupilJourneyOptionalityButton = function (props) {
|
|
|
5045
5012
|
React__default.default.createElement(OakRoundIcon, { iconName: "chevron-right", "$width": "spacing-32", "$height": "spacing-32", "$background": "transparent", "$colorFilter": disabledOrUnavailable ? "icon-disabled" : "icon-primary" }))),
|
|
5046
5013
|
props.unavailable && (React__default.default.createElement(StyledLabel$1, { "$font": "heading-7", "$color": disabledOrUnavailable ? "text-subdued" : "text-primary" }, "Unavailable")))))));
|
|
5047
5014
|
};
|
|
5048
|
-
var templateObject_1$
|
|
5015
|
+
var templateObject_1$F, templateObject_2$g, templateObject_3$d;
|
|
5049
5016
|
|
|
5050
5017
|
/**
|
|
5051
5018
|
*
|
|
@@ -5085,7 +5052,7 @@ var OakPupilJourneyProgrammeOptions = function (_a) {
|
|
|
5085
5052
|
React__default.default.createElement(OakFlex, { "$gap": "spacing-16", "$flexWrap": "wrap", "$justifyContent": "center" }, children)))));
|
|
5086
5053
|
};
|
|
5087
5054
|
|
|
5088
|
-
var StyledHandDrawnHR = styled__default.default(OakHandDrawnHR)(templateObject_1$
|
|
5055
|
+
var StyledHandDrawnHR = styled__default.default(OakHandDrawnHR)(templateObject_1$E || (templateObject_1$E = tslib.__makeTemplateObject(["\n height: 0.125rem;\n position: ", ";\n width: ", ";\n bottom: 0.125rem;\n"], ["\n height: 0.125rem;\n position: ", ";\n width: ", ";\n bottom: 0.125rem;\n"])), function (props) { return props.$position; }, function (props) { return props.$width; });
|
|
5089
5056
|
/**
|
|
5090
5057
|
* An accordion component that can be used to show/hide content
|
|
5091
5058
|
*/
|
|
@@ -5096,9 +5063,9 @@ var OakOutlineAccordion = function (_a) {
|
|
|
5096
5063
|
React__default.default.createElement(InternalChevronAccordion, tslib.__assign({ header: header, id: id, initialOpen: initialOpen }, styleProps), children),
|
|
5097
5064
|
React__default.default.createElement(StyledHandDrawnHR, { "$position": "absolute", "$width": "100%" })));
|
|
5098
5065
|
};
|
|
5099
|
-
var templateObject_1$
|
|
5066
|
+
var templateObject_1$E;
|
|
5100
5067
|
|
|
5101
|
-
var StyledOakSecondaryButton = styled__default.default(OakSecondaryButton)(templateObject_1$
|
|
5068
|
+
var StyledOakSecondaryButton = styled__default.default(OakSecondaryButton)(templateObject_1$D || (templateObject_1$D = tslib.__makeTemplateObject(["\n & > button {\n opacity: 0;\n position: absolute;\n &:focus-visible {\n opacity: 1;\n position: relative;\n }\n }\n"], ["\n & > button {\n opacity: 0;\n position: absolute;\n &:focus-visible {\n opacity: 1;\n position: relative;\n }\n }\n"])));
|
|
5102
5069
|
/**
|
|
5103
5070
|
*
|
|
5104
5071
|
* OakPupilJourneyUnitsFilter component is a radio group of buttons that can be used to filter pupil journey units
|
|
@@ -5127,7 +5094,7 @@ var OakPupilJourneyUnitsFilter = function (props) {
|
|
|
5127
5094
|
menuItems.length > 3 && (React__default.default.createElement(StyledOakSecondaryButton, { onClick: onSkipCallback }, "Skip to results")),
|
|
5128
5095
|
React__default.default.createElement(OakFlex, { "$display": "block", "$flexGrow": 1 }, OakRadioGroup))));
|
|
5129
5096
|
};
|
|
5130
|
-
var templateObject_1$
|
|
5097
|
+
var templateObject_1$D;
|
|
5131
5098
|
|
|
5132
5099
|
/**
|
|
5133
5100
|
*
|
|
@@ -5155,7 +5122,7 @@ var OakPupilJourneyYearButton = function (_a) {
|
|
|
5155
5122
|
return (React__default.default.createElement(InternalShadowRectButton, tslib.__assign({ element: element !== null && element !== void 0 ? element : "button", pv: "spacing-24", ph: "spacing-24", font: "heading-6", defaultBorderColor: borderColor, defaultBackground: defaultBackground, defaultTextColor: "text-primary", hoverBackground: hoverBackground, hoverBorderColor: borderColor, hoverTextColor: "text-primary", disabledBackground: "bg-btn-secondary-disabled", disabledBorderColor: "border-neutral-lighter", disabledTextColor: "text-subdued", hoverUnderline: true }, rest)));
|
|
5156
5123
|
};
|
|
5157
5124
|
|
|
5158
|
-
var StyledInternalShadowRoundButton$1 = styled__default.default(InternalShadowRoundButton)(templateObject_1$
|
|
5125
|
+
var StyledInternalShadowRoundButton$1 = styled__default.default(InternalShadowRoundButton)(templateObject_1$C || (templateObject_1$C = tslib.__makeTemplateObject(["\n &:hover .shadow {\n box-shadow: none !important;\n }\n &:active .shadow {\n box-shadow:\n ", ",\n ", " !important;\n }\n"], ["\n &:hover .shadow {\n box-shadow: none !important;\n }\n &:active .shadow {\n box-shadow:\n ", ",\n ", " !important;\n }\n"])), parseDropShadow("drop-shadow-lemon"), parseDropShadow("drop-shadow-grey"));
|
|
5159
5126
|
/**
|
|
5160
5127
|
*
|
|
5161
5128
|
* A specific implementation of InternalShadowRoundButton
|
|
@@ -5173,7 +5140,7 @@ var OakHintButton = function (props) {
|
|
|
5173
5140
|
var isOpen = props.isOpen, disabled = props.disabled, buttonProps = props.buttonProps;
|
|
5174
5141
|
return (React__default.default.createElement(StyledInternalShadowRoundButton$1, tslib.__assign({ iconName: isOpen && !disabled ? "lightbulb-yellow" : "lightbulb", defaultIconBackground: isOpen ? "icon-primary" : "bg-decorative5-main", hoverIconBackground: isOpen ? "icon-primary" : "bg-decorative5-main", defaultTextColor: "text-primary", hoverTextColor: "text-primary", disabledIconBackground: "bg-btn-primary-disabled", disabledTextColor: "text-disabled", disabledIconColor: "icon-inverted", onClick: props.onClick, isLoading: props.isLoading, disabled: props.disabled, iconBackgroundSize: "spacing-40", iconSize: "spacing-24", "data-rac": true }, buttonProps), !isOpen ? "Need a hint?" : "Close hint"));
|
|
5175
5142
|
};
|
|
5176
|
-
var templateObject_1$
|
|
5143
|
+
var templateObject_1$C;
|
|
5177
5144
|
|
|
5178
5145
|
/**
|
|
5179
5146
|
* Presents a button which will show a hint when clicked
|
|
@@ -5223,7 +5190,7 @@ var OakQuizFeedback = function (_a) {
|
|
|
5223
5190
|
/**
|
|
5224
5191
|
* `content-box` ensures that the border is not subtracted from the height of the element
|
|
5225
5192
|
*/
|
|
5226
|
-
var StyledOakFlex$1 = styled__default.default(OakFlex)(templateObject_1$
|
|
5193
|
+
var StyledOakFlex$1 = styled__default.default(OakFlex)(templateObject_1$B || (templateObject_1$B = tslib.__makeTemplateObject(["\n box-sizing: content-box;\n @media (min-aspect-ratio: 1/1) {\n flex-direction: row;\n }\n"], ["\n box-sizing: content-box;\n @media (min-aspect-ratio: 1/1) {\n flex-direction: row;\n }\n"])));
|
|
5227
5194
|
/**
|
|
5228
5195
|
* Renders feedback for an answer and onward navigation buttons to continue the lesson
|
|
5229
5196
|
*/
|
|
@@ -5244,7 +5211,7 @@ var OakLessonBottomNav = function (_a) {
|
|
|
5244
5211
|
React__default.default.createElement(OakFlex, { "$alignItems": "center" }, content),
|
|
5245
5212
|
React__default.default.createElement(OakFlex, { "$flexGrow": "1", "$height": "fit-content", "$alignSelf": "flex-end", "$justifyContent": ["initial", "flex-end"], "$width": ["100%", "auto"] }, children)));
|
|
5246
5213
|
};
|
|
5247
|
-
var templateObject_1$
|
|
5214
|
+
var templateObject_1$B;
|
|
5248
5215
|
|
|
5249
5216
|
var lessonSectionNames = [
|
|
5250
5217
|
"overview",
|
|
@@ -5258,8 +5225,8 @@ var lessonSectionNames = [
|
|
|
5258
5225
|
* `OakBox` does not support space-between tokens on `padding` only `margin`, so we need to
|
|
5259
5226
|
* set it here to apply appropriate padding to the top of the content.
|
|
5260
5227
|
*/
|
|
5261
|
-
var StyledLayoutBox = styled__default.default(OakBox)(templateObject_2$
|
|
5262
|
-
var StickyFooter = styled__default.default(OakBox)(templateObject_3$
|
|
5228
|
+
var StyledLayoutBox = styled__default.default(OakBox)(templateObject_2$f || (templateObject_2$f = tslib.__makeTemplateObject(["\n @media (min-width: ", "px) {\n padding-top: ", ";\n }\n @media (min-width: ", "px) {\n ", "\n background-repeat: no-repeat;\n background-position-x: center;\n background-size: 100%;\n }\n"], ["\n @media (min-width: ", "px) {\n padding-top: ", ";\n }\n @media (min-width: ", "px) {\n ", "\n background-repeat: no-repeat;\n background-position-x: center;\n background-size: 100%;\n }\n"])), getBreakpoint("small"), parseSpacing("spacing-56"), getBreakpoint("large"), function (props) { return styled.css(templateObject_1$A || (templateObject_1$A = tslib.__makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), getBackgroundUrlForLesson(props.sectionName, props.phase, props.celebrate)); });
|
|
5229
|
+
var StickyFooter = styled__default.default(OakBox)(templateObject_3$c || (templateObject_3$c = tslib.__makeTemplateObject(["\n position: sticky;\n bottom: 0;\n z-index: 10;\n"], ["\n position: sticky;\n bottom: 0;\n z-index: 10;\n"])));
|
|
5263
5230
|
/**
|
|
5264
5231
|
* Provides overall page layout and colours for the sections of a lesson.
|
|
5265
5232
|
*/
|
|
@@ -5383,18 +5350,18 @@ function getBackgroundUrlForLesson(sectionName, phase, celebrate) {
|
|
|
5383
5350
|
return "";
|
|
5384
5351
|
}
|
|
5385
5352
|
}
|
|
5386
|
-
var templateObject_1$
|
|
5353
|
+
var templateObject_1$A, templateObject_2$f, templateObject_3$c;
|
|
5387
5354
|
|
|
5388
|
-
var StyledLabel = styled__default.default(OakBox)(templateObject_1$
|
|
5389
|
-
var StyledIconWrapper = styled__default.default(OakFlex)(templateObject_2$
|
|
5355
|
+
var StyledLabel = styled__default.default(OakBox)(templateObject_1$z || (templateObject_1$z = tslib.__makeTemplateObject([""], [""])));
|
|
5356
|
+
var StyledIconWrapper = styled__default.default(OakFlex)(templateObject_2$e || (templateObject_2$e = tslib.__makeTemplateObject(["\n filter: ", ";\n"], ["\n filter: ", ";\n"])), function (props) {
|
|
5390
5357
|
return parseColorFilter(props.$disabled ? "icon-disabled" : "icon-primary");
|
|
5391
5358
|
});
|
|
5392
|
-
var StyledRoundIcon = styled__default.default(OakRoundIcon)(templateObject_3$
|
|
5359
|
+
var StyledRoundIcon = styled__default.default(OakRoundIcon)(templateObject_3$b || (templateObject_3$b = tslib.__makeTemplateObject(["\n width: ", ";\n height: ", ";\n padding: 0;\n\n background: transparent;\n\n img {\n filter: ", ";\n }\n"], ["\n width: ", ";\n height: ", ";\n padding: 0;\n\n background: transparent;\n\n img {\n filter: ", ";\n }\n"])), parseSpacing("spacing-40"), parseSpacing("spacing-40"), function (props) {
|
|
5393
5360
|
return parseColorFilter(props.$disabled ? "icon-disabled" : "icon-primary");
|
|
5394
5361
|
});
|
|
5395
|
-
var activeIconStyles = styled.css(templateObject_4$
|
|
5362
|
+
var activeIconStyles = styled.css(templateObject_4$6 || (templateObject_4$6 = tslib.__makeTemplateObject(["\n ", " {\n background: ", ";\n\n img {\n filter: ", ";\n }\n }\n"], ["\n ", " {\n background: ", ";\n\n img {\n filter: ", ";\n }\n }\n"])), StyledRoundIcon, parseColor("bg-btn-primary"), parseColorFilter("icon-inverted"));
|
|
5396
5363
|
var StyledLessonNavItem = styled__default.default(OakFlex)(templateObject_6$3 || (templateObject_6$3 = tslib.__makeTemplateObject(["\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n\n ", "\n\n ", "\n"], ["\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n\n ", "\n\n ", "\n"])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), function (props) { return props.$disabled && "cursor: default"; }, function (props) {
|
|
5397
|
-
return !props.$disabled && styled.css(templateObject_5$
|
|
5364
|
+
return !props.$disabled && styled.css(templateObject_5$5 || (templateObject_5$5 = tslib.__makeTemplateObject(["\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n ", " {\n text-decoration: underline;\n }\n\n ", "\n }\n }\n\n &:active {\n box-shadow:\n ", ",\n ", ";\n ", "\n }\n "], ["\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n ", " {\n text-decoration: underline;\n }\n\n ", "\n }\n }\n\n &:active {\n box-shadow:\n ", ",\n ", ";\n ", "\n }\n "])), StyledLabel, activeIconStyles, parseDropShadow("drop-shadow-lemon"), parseDropShadow("drop-shadow-grey"), activeIconStyles);
|
|
5398
5365
|
});
|
|
5399
5366
|
var FlexedOakBox = styled__default.default(OakBox)(templateObject_7$1 || (templateObject_7$1 = tslib.__makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
|
|
5400
5367
|
/**
|
|
@@ -5535,10 +5502,10 @@ function pickSummaryForComplete(props) {
|
|
|
5535
5502
|
" correct")));
|
|
5536
5503
|
}
|
|
5537
5504
|
}
|
|
5538
|
-
var templateObject_1$
|
|
5505
|
+
var templateObject_1$z, templateObject_2$e, templateObject_3$b, templateObject_4$6, templateObject_5$5, templateObject_6$3, templateObject_7$1;
|
|
5539
5506
|
|
|
5540
|
-
var StyledAccordionContent = styled__default.default(InternalAccordionContent)(templateObject_1$
|
|
5541
|
-
var StyledAccordionButton$1 = styled__default.default(InternalShadowRoundButton)(templateObject_3$
|
|
5507
|
+
var StyledAccordionContent = styled__default.default(InternalAccordionContent)(templateObject_1$y || (templateObject_1$y = tslib.__makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
|
|
5508
|
+
var StyledAccordionButton$1 = styled__default.default(InternalShadowRoundButton)(templateObject_3$a || (templateObject_3$a = tslib.__makeTemplateObject(["\n ", "\n ", "\n .icon-container img {\n ", ";\n }\n"], ["\n ", "\n ", "\n .icon-container img {\n ", ";\n }\n"])), flexStyle, oakBoxCss, function (props) { return styled.css(templateObject_2$d || (templateObject_2$d = tslib.__makeTemplateObject(["\n transform: ", ";\n transition: all 0.3s ease 0s;\n "], ["\n transform: ", ";\n transition: all 0.3s ease 0s;\n "])), props.$isOpen ? "rotate(180deg)" : "none"); });
|
|
5542
5509
|
/**
|
|
5543
5510
|
* An accordion component that can be used to show/hide content
|
|
5544
5511
|
*/
|
|
@@ -5561,9 +5528,9 @@ var InternalReviewAccordion = function (props) {
|
|
|
5561
5528
|
return (React__default.default.createElement(InternalAccordionProvider, { isInitialOpen: props.initialOpen },
|
|
5562
5529
|
React__default.default.createElement(Accordion$1, tslib.__assign({}, props))));
|
|
5563
5530
|
};
|
|
5564
|
-
var templateObject_1$
|
|
5531
|
+
var templateObject_1$y, templateObject_2$d, templateObject_3$a;
|
|
5565
5532
|
|
|
5566
|
-
var StyledLessonReviewItem$1 = styled__default.default(OakFlex)(templateObject_1$
|
|
5533
|
+
var StyledLessonReviewItem$1 = styled__default.default(OakFlex)(templateObject_1$x || (templateObject_1$x = tslib.__makeTemplateObject(["\n outline: none;\n text-align: initial;\n"], ["\n outline: none;\n text-align: initial;\n"])));
|
|
5567
5534
|
var ReviewItemContainer = function (props) {
|
|
5568
5535
|
var children = props.children, rest = tslib.__rest(props, ["children"]);
|
|
5569
5536
|
return (React__default.default.createElement(StyledLessonReviewItem$1, tslib.__assign({ "$flexDirection": ["column", "column", "row"], "$justifyContent": "space-between", "$flexWrap": "wrap", "$ph": ["spacing-16", "spacing-24"], "$pv": "spacing-20", "$borderRadius": "border-radius-l", "$ba": "border-solid-l" }, rest), children));
|
|
@@ -5606,7 +5573,7 @@ var OakLessonReviewQuiz = function (props) {
|
|
|
5606
5573
|
props.numQuestions)))),
|
|
5607
5574
|
completed && (React__default.default.createElement(InternalReviewAccordion, { initialOpen: false, id: "quiz-review-accordion-".concat(lessonSectionName), toggleButtonAriaLabel: resultsToggleAriaLabel }, resultsSlot))));
|
|
5608
5575
|
};
|
|
5609
|
-
var templateObject_1$
|
|
5576
|
+
var templateObject_1$x;
|
|
5610
5577
|
|
|
5611
5578
|
var OakLessonReviewIntroVideo = function (props) {
|
|
5612
5579
|
var completed = props.completed, lessonSectionName = props.lessonSectionName, rest = tslib.__rest(props, ["completed", "lessonSectionName"]);
|
|
@@ -5631,7 +5598,7 @@ var OakLessonReviewIntroVideo = function (props) {
|
|
|
5631
5598
|
React__default.default.createElement(ReviewItemTitleSection, { sectionHeader: lessonSectionName === "intro" ? "Introduction" : "Lesson video", completed: completed, summaryForIncomplete: summaryForIncomplete }))));
|
|
5632
5599
|
};
|
|
5633
5600
|
|
|
5634
|
-
var StyledLessonReviewItem = styled__default.default(OakFlex)(templateObject_1$
|
|
5601
|
+
var StyledLessonReviewItem = styled__default.default(OakFlex)(templateObject_1$w || (templateObject_1$w = tslib.__makeTemplateObject(["\n outline: none;\n text-align: initial;\n"], ["\n outline: none;\n text-align: initial;\n"])));
|
|
5635
5602
|
var OakLessonReviewItem = function (props) {
|
|
5636
5603
|
var completed = props.completed, lessonSectionName = props.lessonSectionName, rest = tslib.__rest(props, ["completed", "lessonSectionName"]);
|
|
5637
5604
|
var _a = tslib.__read(pickColorsForSection(lessonSectionName), 3), completedBackgroundColor = _a[0], borderColor = _a[1], iconBackgroundColor = _a[2];
|
|
@@ -5725,9 +5692,9 @@ var renderQuestionCounter = function (props) {
|
|
|
5725
5692
|
return null;
|
|
5726
5693
|
}
|
|
5727
5694
|
};
|
|
5728
|
-
var templateObject_1$
|
|
5695
|
+
var templateObject_1$w;
|
|
5729
5696
|
|
|
5730
|
-
var StyledMobileSummary = styled__default.default(OakSpan)(templateObject_1$
|
|
5697
|
+
var StyledMobileSummary = styled__default.default(OakSpan)(templateObject_1$v || (templateObject_1$v = tslib.__makeTemplateObject(["\n @media (min-width: ", "px) {\n display: none;\n }\n"], ["\n @media (min-width: ", "px) {\n display: none;\n }\n"])), getBreakpoint("small"));
|
|
5731
5698
|
/**
|
|
5732
5699
|
* Controls for navigating back and displaying progress in a lesson
|
|
5733
5700
|
*/
|
|
@@ -5772,7 +5739,7 @@ function pickSectionIcon(sectionName) {
|
|
|
5772
5739
|
};
|
|
5773
5740
|
}
|
|
5774
5741
|
}
|
|
5775
|
-
var templateObject_1$
|
|
5742
|
+
var templateObject_1$v;
|
|
5776
5743
|
|
|
5777
5744
|
/**
|
|
5778
5745
|
* Display a togglable video transcript with a slot to display a sign language control
|
|
@@ -5793,13 +5760,13 @@ var OakLessonVideoTranscript = function (_a) {
|
|
|
5793
5760
|
children && (React__default.default.createElement(OakCollapsibleContent, { id: id, "$maxHeight": "spacing-960", isOpen: showTranscript, "$font": "body-1", "$color": "text-primary", "aria-live": "polite" }, children))));
|
|
5794
5761
|
};
|
|
5795
5762
|
|
|
5796
|
-
var StyledInternalCheckBox = styled__default.default(InternalCheckBox)(templateObject_1$
|
|
5763
|
+
var StyledInternalCheckBox = styled__default.default(InternalCheckBox)(templateObject_1$u || (templateObject_1$u = tslib.__makeTemplateObject(["\n &:checked:not(:disabled) {\n border: ", ";\n border-color: ", ";\n }\n\n &:checked:disabled {\n border: ", ";\n border-color: ", ";\n }\n\n @media (hover: hover) {\n &:hover:not(:disabled) {\n background: ", ";\n }\n }\n"], ["\n &:checked:not(:disabled) {\n border: ", ";\n border-color: ", ";\n }\n\n &:checked:disabled {\n border: ", ";\n border-color: ", ";\n }\n\n @media (hover: hover) {\n &:hover:not(:disabled) {\n background: ", ";\n }\n }\n"])), parseBorder("border-solid-l"), parseColor("border-primary"), parseBorder("border-solid-l"), parseColor("text-disabled"), parseColor("bg-primary"));
|
|
5797
5764
|
var StyledFlexBox = styled__default.default(OakFlex)(templateObject_6$2 || (templateObject_6$2 = tslib.__makeTemplateObject(["\n &:not(:focus-within) {\n ", "\n }\n\n &:has(input:not(:disabled)) {\n cursor: pointer;\n }\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n }\n\n &:focus-within {\n box-shadow:\n ", ",\n ", ";\n }\n\n @media (hover: hover) {\n &:hover:has(input:not(:disabled)) {\n background-color: ", ";\n }\n\n &:hover input:not(:disabled) {\n background: ", ";\n }\n\n &:hover:has(input:not(:disabled)) ", " {\n text-decoration: underline;\n }\n\n &:hover:has(\n ", "\n input:not(:focus-visible):not(:checked):not(:disabled)\n )::after {\n content: \"\";\n inset: 0;\n pointer-events: none;\n position: absolute;\n border-bottom: ", ";\n border-radius: ", ";\n }\n\n &:focus-within {\n box-shadow:\n ", ",\n ", ";\n }\n\n &:has(input:checked:not(:disabled)) {\n outline: ", ";\n }\n\n &:has(input:checked:disabled) {\n outline-color: ", ";\n }\n\n &:has(input:disabled:not(:checked)) {\n ", "\n }\n\n &:has(input:disabled:checked) {\n ", ";\n }\n }\n"], ["\n &:not(:focus-within) {\n ", "\n }\n\n &:has(input:not(:disabled)) {\n cursor: pointer;\n }\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n }\n\n &:focus-within {\n box-shadow:\n ", ",\n ", ";\n }\n\n @media (hover: hover) {\n &:hover:has(input:not(:disabled)) {\n background-color: ", ";\n }\n\n &:hover input:not(:disabled) {\n background: ", ";\n }\n\n &:hover:has(input:not(:disabled)) ", " {\n text-decoration: underline;\n }\n\n &:hover:has(\n ", "\n input:not(:focus-visible):not(:checked):not(:disabled)\n )::after {\n content: \"\";\n inset: 0;\n pointer-events: none;\n position: absolute;\n border-bottom: ", ";\n border-radius: ", ";\n }\n\n &:focus-within {\n box-shadow:\n ", ",\n ", ";\n }\n\n &:has(input:checked:not(:disabled)) {\n outline: ", ";\n }\n\n &:has(input:checked:disabled) {\n outline-color: ", ";\n }\n\n &:has(input:disabled:not(:checked)) {\n ", "\n }\n\n &:has(input:disabled:checked) {\n ", ";\n }\n }\n"])), function (props) {
|
|
5798
|
-
return !!props.$outlineColor && styled.css(templateObject_2$
|
|
5799
|
-
}, parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), parseColor("bg-decorative1-subdued"), parseColor("bg-primary"), InternalCheckBoxLabelHoverDecor, InternalCheckBoxLabelHoverDecor, parseBorder("border-solid-xl"), parseBorderRadius("border-radius-m2"), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), parseBorder("border-solid-xl"), function (props) { return styled.css(templateObject_3$
|
|
5765
|
+
return !!props.$outlineColor && styled.css(templateObject_2$c || (templateObject_2$c = tslib.__makeTemplateObject(["\n outline: ", "\n ", ";\n "], ["\n outline: ", "\n ", ";\n "])), parseBorder("border-solid-xl"), parseColor(props.$outlineColor));
|
|
5766
|
+
}, parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), parseColor("bg-decorative1-subdued"), parseColor("bg-primary"), InternalCheckBoxLabelHoverDecor, InternalCheckBoxLabelHoverDecor, parseBorder("border-solid-xl"), parseBorderRadius("border-radius-m2"), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), parseBorder("border-solid-xl"), function (props) { return styled.css(templateObject_3$9 || (templateObject_3$9 = tslib.__makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), parseColor(props.$overlayBorderColor)); }, function (props) {
|
|
5800
5767
|
return props.$feedbackBgColor
|
|
5801
|
-
? styled.css(templateObject_4$
|
|
5802
|
-
}, function (props) { return styled.css(templateObject_5$
|
|
5768
|
+
? styled.css(templateObject_4$5 || (templateObject_4$5 = tslib.__makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), props.$feedbackBgColor) : undefined;
|
|
5769
|
+
}, function (props) { return styled.css(templateObject_5$4 || (templateObject_5$4 = tslib.__makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), parseColor(props.$feedbackBgColor)); });
|
|
5803
5770
|
/**
|
|
5804
5771
|
* A checkbox representing the options in a multiple choice question.
|
|
5805
5772
|
*/
|
|
@@ -5834,7 +5801,7 @@ var OakQuizCheckBox = function (props) {
|
|
|
5834
5801
|
showCross && (React__default.default.createElement(OakIcon, { iconName: "cross", "$colorFilter": "icon-error", alt: "Incorrect" }))))));
|
|
5835
5802
|
return (React__default.default.createElement(OakFlex, { "$width": "100%", "$position": "relative" }, inputCheckbox));
|
|
5836
5803
|
};
|
|
5837
|
-
var templateObject_1$
|
|
5804
|
+
var templateObject_1$u, templateObject_2$c, templateObject_3$9, templateObject_4$5, templateObject_5$4, templateObject_6$2;
|
|
5838
5805
|
|
|
5839
5806
|
/**
|
|
5840
5807
|
*
|
|
@@ -5863,7 +5830,7 @@ var OakQuizCounter = function (props) {
|
|
|
5863
5830
|
React__default.default.createElement(OakFlex, { "$gap": "spacing-8", "$flexWrap": "wrap", "aria-hidden": "true", focusable: false }, pills)));
|
|
5864
5831
|
};
|
|
5865
5832
|
|
|
5866
|
-
var StyledOakBox = styled__default.default(OakBox)(templateObject_1$
|
|
5833
|
+
var StyledOakBox = styled__default.default(OakBox)(templateObject_1$t || (templateObject_1$t = tslib.__makeTemplateObject(["\n background-color: ", ";\n background-color: color-mix(\n in lch,\n ", " 5%,\n transparent\n );\n\n &[data-over=\"true\"] {\n background-color: ", ";\n background-color: color-mix(\n in lch,\n ", " 60%,\n transparent\n );\n }\n"], ["\n background-color: ", ";\n background-color: color-mix(\n in lch,\n ", " 5%,\n transparent\n );\n\n &[data-over=\"true\"] {\n background-color: ", ";\n background-color: color-mix(\n in lch,\n ", " 60%,\n transparent\n );\n }\n"])), parseColor("bg-neutral"), parseColor("bg-inverted"), parseColor("bg-primary"), parseColor("bg-primary"));
|
|
5867
5834
|
/**
|
|
5868
5835
|
* An internal holding pen for multiple draggable items
|
|
5869
5836
|
*
|
|
@@ -5913,7 +5880,7 @@ var InternalDroppableHoldingPen = React.forwardRef(function (_a, ref) {
|
|
|
5913
5880
|
return (React__default.default.createElement(StyledOakBox, tslib.__assign({ ref: ref, "$mb": "spacing-32", "$borderRadius": "border-radius-l", "data-over": isOver, style: { minHeight: minHeight === 0 ? "auto" : minHeight } }, props),
|
|
5914
5881
|
React__default.default.createElement(OakFlex, { "$alignItems": "flex-start", "$minHeight": "spacing-80", "$pa": "spacing-12", "$gap": "spacing-12", "$flexWrap": "wrap", ref: setContentBox }, children)));
|
|
5915
5882
|
});
|
|
5916
|
-
var templateObject_1$
|
|
5883
|
+
var templateObject_1$t;
|
|
5917
5884
|
|
|
5918
5885
|
/**
|
|
5919
5886
|
* Adds additional leading between each line of text to make room for the
|
|
@@ -5921,7 +5888,7 @@ var templateObject_1$u;
|
|
|
5921
5888
|
*
|
|
5922
5889
|
* This might be a useful atom to extract
|
|
5923
5890
|
*/
|
|
5924
|
-
var StyledLeadingTrim = styled__default.default(OakBox)(templateObject_1$
|
|
5891
|
+
var StyledLeadingTrim = styled__default.default(OakBox)(templateObject_1$s || (templateObject_1$s = tslib.__makeTemplateObject(["\n margin-block: calc(-", " / 2);\n line-height: calc(1.5rem + ", ");\n"], ["\n margin-block: calc(-", " / 2);\n line-height: calc(1.5rem + ", ");\n"])), parseSpacing("spacing-8"), parseSpacing("spacing-8"));
|
|
5925
5892
|
/**
|
|
5926
5893
|
* Displays instructions for drag and drop functionality
|
|
5927
5894
|
*/
|
|
@@ -5944,11 +5911,11 @@ var OakDragAndDropInstructions = function (props) {
|
|
|
5944
5911
|
React__default.default.createElement(OakKbd, null, "\u2193"),
|
|
5945
5912
|
" arrows on your keyboard.")));
|
|
5946
5913
|
};
|
|
5947
|
-
var templateObject_1$
|
|
5914
|
+
var templateObject_1$s;
|
|
5948
5915
|
|
|
5949
|
-
var StyledOakIcon = styled__default.default(OakIcon)(templateObject_1$
|
|
5950
|
-
var StyledDraggable = styled__default.default(OakBox)(templateObject_2$
|
|
5951
|
-
var StyledFlex$1 = styled__default.default(OakFlex)(templateObject_3$
|
|
5916
|
+
var StyledOakIcon = styled__default.default(OakIcon)(templateObject_1$r || (templateObject_1$r = tslib.__makeTemplateObject([""], [""])));
|
|
5917
|
+
var StyledDraggable = styled__default.default(OakBox)(templateObject_2$b || (templateObject_2$b = tslib.__makeTemplateObject(["\n cursor: grab;\n outline: none;\n user-select: none;\n\n ", " {\n filter: ", ";\n }\n\n @media (hover: hover) {\n &:hover:not([data-dragging=\"true\"]):not([data-disabled=\"true\"]):not(\n [data-readonly=\"true\"]\n ) {\n background-color: ", ";\n color: ", ";\n box-shadow: ", ";\n border-bottom: ", "\n ", ";\n padding-bottom: ", ";\n text-decoration: underline;\n\n ", " {\n filter: ", ";\n }\n }\n }\n\n &:focus-visible:not([data-dragging=\"true\"]):not([data-disabled=\"true\"]) {\n box-shadow:\n ", ",\n ", ";\n }\n\n &[data-dragging=\"true\"] {\n cursor: move;\n background-color: ", ";\n color: ", ";\n outline: ", " ", ";\n outline-offset: -", ";\n box-shadow:\n ", ",\n ", ";\n text-decoration: underline;\n\n ", " {\n filter: ", ";\n }\n }\n\n &[data-disabled=\"true\"] {\n cursor: default;\n background-color: ", ";\n color: ", ";\n\n ", " {\n filter: ", ";\n }\n }\n\n &[data-readonly=\"true\"] {\n cursor: default;\n }\n"], ["\n cursor: grab;\n outline: none;\n user-select: none;\n\n ", " {\n filter: ", ";\n }\n\n @media (hover: hover) {\n &:hover:not([data-dragging=\"true\"]):not([data-disabled=\"true\"]):not(\n [data-readonly=\"true\"]\n ) {\n background-color: ", ";\n color: ", ";\n box-shadow: ", ";\n border-bottom: ", "\n ", ";\n padding-bottom: ", ";\n text-decoration: underline;\n\n ", " {\n filter: ", ";\n }\n }\n }\n\n &:focus-visible:not([data-dragging=\"true\"]):not([data-disabled=\"true\"]) {\n box-shadow:\n ", ",\n ", ";\n }\n\n &[data-dragging=\"true\"] {\n cursor: move;\n background-color: ", ";\n color: ", ";\n outline: ", " ", ";\n outline-offset: -", ";\n box-shadow:\n ", ",\n ", ";\n text-decoration: underline;\n\n ", " {\n filter: ", ";\n }\n }\n\n &[data-disabled=\"true\"] {\n cursor: default;\n background-color: ", ";\n color: ", ";\n\n ", " {\n filter: ", ";\n }\n }\n\n &[data-readonly=\"true\"] {\n cursor: default;\n }\n"])), StyledOakIcon, function (props) { return parseColorFilter(props.$iconColor); }, parseColor("bg-decorative1-subdued"), parseColor("text-primary"), parseDropShadow("drop-shadow-standard"), parseBorder("border-solid-xl"), parseColor("border-primary"), parseSpacing("spacing-16"), StyledOakIcon, parseColorFilter("icon-primary"), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), parseColor("bg-decorative1-main"), parseColor("text-primary"), parseBorder("border-solid-xl"), parseColor("border-primary"), parseBorderWidth("border-solid-xl"), parseDropShadow("drop-shadow-lemon"), parseDropShadow("drop-shadow-grey"), StyledOakIcon, parseColorFilter("icon-primary"), parseColor("bg-neutral"), parseColor("text-disabled"), StyledOakIcon, parseColorFilter("icon-disabled"));
|
|
5918
|
+
var StyledFlex$1 = styled__default.default(OakFlex)(templateObject_3$8 || (templateObject_3$8 = tslib.__makeTemplateObject(["\n margin-block: -", ";\n"], ["\n margin-block: -", ";\n"])), parseSpacing("spacing-8"));
|
|
5952
5919
|
/**
|
|
5953
5920
|
* The component has no intrinsic draggable functionality.
|
|
5954
5921
|
* It is intended to be used with `useDraggable` from `@dnd-kit/core`
|
|
@@ -5960,9 +5927,9 @@ var OakDraggable = React.forwardRef(function (_a, ref) {
|
|
|
5960
5927
|
React__default.default.createElement(StyledOakIcon, { iconName: iconName, "$width": "spacing-32", "$height": "spacing-32", alt: iconAlt }),
|
|
5961
5928
|
React__default.default.createElement(OakFlex, { "$font": "body-1-bold" }, children))));
|
|
5962
5929
|
});
|
|
5963
|
-
var templateObject_1$
|
|
5930
|
+
var templateObject_1$r, templateObject_2$b, templateObject_3$8;
|
|
5964
5931
|
|
|
5965
|
-
var StyledFlex = styled__default.default(OakFlex)(templateObject_1$
|
|
5932
|
+
var StyledFlex = styled__default.default(OakFlex)(templateObject_1$q || (templateObject_1$q = tslib.__makeTemplateObject(["\n outline: ", " ", ";\n outline-style: dashed;\n\n &[data-disabled=\"true\"] {\n outline-color: ", ";\n }\n"], ["\n outline: ", " ", ";\n outline-style: dashed;\n\n &[data-disabled=\"true\"] {\n outline-color: ", ";\n }\n"])), parseBorder("border-solid-l"), parseColor("border-primary"), parseColor("border-neutral"));
|
|
5966
5933
|
/**
|
|
5967
5934
|
* A drop zone for a draggable
|
|
5968
5935
|
*
|
|
@@ -5996,7 +5963,7 @@ var OakDroppable = React.forwardRef(function (_a, ref) {
|
|
|
5996
5963
|
React__default.default.createElement(OakBox, { "$width": "100%" }, children)),
|
|
5997
5964
|
labelSlot && (React__default.default.createElement(OakFlex, { "$background": isOver ? "bg-primary" : "bg-decorative2-very-subdued", "$borderRadius": "border-radius-m2", "$alignItems": "center", "$font": "body-1", "$ph": "spacing-20", "$minHeight": "spacing-56", "$pv": "spacing-4", "$flexBasis": "100%", "$width": "100%", "$alignSelf": "center", "data-testid": "label" }, labelSlot))));
|
|
5998
5965
|
});
|
|
5999
|
-
var templateObject_1$
|
|
5966
|
+
var templateObject_1$q;
|
|
6000
5967
|
|
|
6001
5968
|
/**
|
|
6002
5969
|
* Returns true if the user has requested that the system minimize the amount of non-essential motion it uses.
|
|
@@ -6149,7 +6116,7 @@ var announcements = {
|
|
|
6149
6116
|
},
|
|
6150
6117
|
};
|
|
6151
6118
|
|
|
6152
|
-
var StyledInternalShadowRoundButton = styled__default.default((InternalShadowRoundButton))(templateObject_1$
|
|
6119
|
+
var StyledInternalShadowRoundButton = styled__default.default((InternalShadowRoundButton))(templateObject_1$p || (templateObject_1$p = tslib.__makeTemplateObject(["\n &:hover .shadow {\n box-shadow: none !important;\n }\n &:active .shadow {\n box-shadow:\n ", ",\n ", " !important;\n }\n"], ["\n &:hover .shadow {\n box-shadow: none !important;\n }\n &:active .shadow {\n box-shadow:\n ", ",\n ", " !important;\n }\n"])), parseDropShadow("drop-shadow-lemon"), parseDropShadow("drop-shadow-grey"));
|
|
6153
6120
|
/**
|
|
6154
6121
|
* Presents an info icon button with an open and closed state
|
|
6155
6122
|
*
|
|
@@ -6160,7 +6127,7 @@ var OakInfoButton = function (props) {
|
|
|
6160
6127
|
var isLoading = props.isLoading, disabled = props.disabled, onClick = props.onClick, isOpen = props.isOpen, buttonProps = props.buttonProps;
|
|
6161
6128
|
return (React__default.default.createElement(StyledInternalShadowRoundButton, tslib.__assign({ element: "button", iconName: isOpen && !disabled ? "cross" : "info", defaultIconBackground: isOpen ? "icon-primary" : "bg-decorative5-main", defaultIconColor: isOpen ? "icon-inverted" : "icon-primary", hoverIconBackground: isOpen ? "icon-primary" : "bg-decorative5-main", defaultTextColor: "text-primary", hoverTextColor: "text-primary", disabledIconBackground: "bg-btn-primary-disabled", disabledTextColor: "text-disabled", disabledIconColor: "icon-inverted", isLoading: isLoading, disabled: disabled, iconBackgroundSize: "spacing-40", iconSize: "spacing-32", onClick: onClick, "data-rac": true }, buttonProps)));
|
|
6162
6129
|
};
|
|
6163
|
-
var templateObject_1$
|
|
6130
|
+
var templateObject_1$p;
|
|
6164
6131
|
|
|
6165
6132
|
/**
|
|
6166
6133
|
* Presents a button which will show a hint when clicked
|
|
@@ -6177,7 +6144,7 @@ var OakInfo = function (props) {
|
|
|
6177
6144
|
isOpen && (React__default.default.createElement(OakScreenReader, { as: "div", id: id, "data-testid": "".concat(id, "-description") }, hint))));
|
|
6178
6145
|
};
|
|
6179
6146
|
|
|
6180
|
-
var StyledCodeContainer = styled__default.default(OakSpan)(templateObject_1$
|
|
6147
|
+
var StyledCodeContainer = styled__default.default(OakSpan)(templateObject_1$o || (templateObject_1$o = tslib.__makeTemplateObject(["\n font-family: \"Roboto Mono\", --font-roboto-mono, monospace;\n"], ["\n font-family: \"Roboto Mono\", --font-roboto-mono, monospace;\n"])));
|
|
6181
6148
|
var OakCodeRenderer = function (_a) {
|
|
6182
6149
|
var string = _a.string, rest = tslib.__rest(_a, ["string"]);
|
|
6183
6150
|
var findAndStyleInlineCode = function (text) {
|
|
@@ -6299,7 +6266,7 @@ var OakCodeRenderer = function (_a) {
|
|
|
6299
6266
|
};
|
|
6300
6267
|
return extractAndMap(string);
|
|
6301
6268
|
};
|
|
6302
|
-
var templateObject_1$
|
|
6269
|
+
var templateObject_1$o;
|
|
6303
6270
|
|
|
6304
6271
|
var OakQuizOrderitemId = function (id) {
|
|
6305
6272
|
return "oak-quiz-order-item-".concat(id);
|
|
@@ -6417,13 +6384,13 @@ var OakQuizPrintableSubHeader = function (_a) {
|
|
|
6417
6384
|
attempts))))));
|
|
6418
6385
|
};
|
|
6419
6386
|
|
|
6420
|
-
var StyledOakFlex = styled__default.default(OakFlex)(templateObject_4$
|
|
6421
|
-
return !!props.$outlineColor && styled.css(templateObject_1$
|
|
6387
|
+
var StyledOakFlex = styled__default.default(OakFlex)(templateObject_4$4 || (templateObject_4$4 = tslib.__makeTemplateObject(["\n &:not(:focus-within) {\n ", "\n }\n\n &:hover {\n cursor: ", ";\n }\n\n &:focus-within {\n box-shadow:\n ", ",\n ", ";\n }\n\n ", "\n\n ", "\n"], ["\n &:not(:focus-within) {\n ", "\n }\n\n &:hover {\n cursor: ", ";\n }\n\n &:focus-within {\n box-shadow:\n ", ",\n ", ";\n }\n\n ", "\n\n ", "\n"])), function (props) {
|
|
6388
|
+
return !!props.$outlineColor && styled.css(templateObject_1$n || (templateObject_1$n = tslib.__makeTemplateObject(["\n outline: ", "\n ", ";\n "], ["\n outline: ", "\n ", ";\n "])), parseBorder("border-solid-xl"), parseColor(props.$outlineColor));
|
|
6422
6389
|
}, function (props) { return (props.$disabled ? "default" : "pointer"); }, parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), function (props) {
|
|
6423
|
-
return !props.$disabled && styled.css(templateObject_2$
|
|
6390
|
+
return !props.$disabled && styled.css(templateObject_2$a || (templateObject_2$a = tslib.__makeTemplateObject(["\n &:hover {\n background-color: ", ";\n text-decoration: underline;\n }\n "], ["\n &:hover {\n background-color: ", ";\n text-decoration: underline;\n }\n "])), parseColor("bg-decorative1-subdued"));
|
|
6424
6391
|
}, function (props) {
|
|
6425
6392
|
return !props.$disabled &&
|
|
6426
|
-
!props.$checked && styled.css(templateObject_3$
|
|
6393
|
+
!props.$checked && styled.css(templateObject_3$7 || (templateObject_3$7 = tslib.__makeTemplateObject(["\n &:hover:not(:focus-within)::after {\n pointer-events: none;\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: ", ";\n border-bottom: ", "\n ", ";\n }\n "], ["\n &:hover:not(:focus-within)::after {\n pointer-events: none;\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: ", ";\n border-bottom: ", "\n ", ";\n }\n "])), parseBorderRadius("border-radius-m2"), parseBorder("border-solid-l"), parseColor("border-neutral-stronger"));
|
|
6427
6394
|
});
|
|
6428
6395
|
/**
|
|
6429
6396
|
* A radio button representing the options in a multiple choice question.
|
|
@@ -6479,7 +6446,7 @@ var OakQuizRadioButton = function (props) {
|
|
|
6479
6446
|
showFeedback && feedbackIcon && (React__default.default.createElement(OakFlex, { "$alignSelf": "flex-end" },
|
|
6480
6447
|
React__default.default.createElement(OakIcon, { iconName: feedbackIcon, "$colorFilter": feedbackIcon === "tick" ? "icon-success" : "icon-error", alt: feedbackAltText })))));
|
|
6481
6448
|
};
|
|
6482
|
-
var templateObject_1$
|
|
6449
|
+
var templateObject_1$n, templateObject_2$a, templateObject_3$7, templateObject_4$4;
|
|
6483
6450
|
|
|
6484
6451
|
var DisplayText = function (_a) {
|
|
6485
6452
|
var boldPrefixText = _a.boldPrefixText, standardText = _a.standardText, _b = _a.height, height = _b === void 0 ? "spacing-20" : _b;
|
|
@@ -6565,13 +6532,13 @@ var OakQuizTextInput = function (_a) {
|
|
|
6565
6532
|
return (React__default.default.createElement(OakTextInput, tslib.__assign({}, props, { validity: validity, iconName: iconName, iconAlt: iconAlt, readOnly: readOnly || !!feedback, isTrailingIcon: true })));
|
|
6566
6533
|
};
|
|
6567
6534
|
|
|
6568
|
-
var FlexWithFocus$1 = styled__default.default(OakFlex)(templateObject_1$
|
|
6569
|
-
var StyledUnitListItem = styled__default.default(OakFlex)(templateObject_4$
|
|
6570
|
-
return !props.$disabled && styled.css(templateObject_2$
|
|
6535
|
+
var FlexWithFocus$1 = styled__default.default(OakFlex)(templateObject_1$m || (templateObject_1$m = tslib.__makeTemplateObject(["\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n outline: none;\n\n &:hover .hover-text {\n text-decoration: underline;\n }\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n"], ["\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n outline: none;\n\n &:hover .hover-text {\n text-decoration: underline;\n }\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n"])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"));
|
|
6536
|
+
var StyledUnitListItem = styled__default.default(OakFlex)(templateObject_4$3 || (templateObject_4$3 = tslib.__makeTemplateObject(["\n text-align: initial;\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n\n ", "\n\n ", "\n"], ["\n text-align: initial;\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n\n ", "\n\n ", "\n"])), function (props) {
|
|
6537
|
+
return !props.$disabled && styled.css(templateObject_2$9 || (templateObject_2$9 = tslib.__makeTemplateObject(["\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n ", " {\n background: ", ";\n }\n background: ", ";\n }\n }\n }\n "], ["\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n ", " {\n background: ", ";\n }\n background: ", ";\n }\n }\n }\n "])), StyledOakIndexBox$2, parseColor("bg-decorative3-subdued"), parseColor("bg-decorative3-subdued"));
|
|
6571
6538
|
}, function (props) {
|
|
6572
|
-
return props.$disabled && styled.css(templateObject_3$
|
|
6539
|
+
return props.$disabled && styled.css(templateObject_3$6 || (templateObject_3$6 = tslib.__makeTemplateObject(["\n cursor: not-allowed;\n background: ", ";\n "], ["\n cursor: not-allowed;\n background: ", ";\n "])), parseColor("bg-neutral"));
|
|
6573
6540
|
});
|
|
6574
|
-
var StyledOakIndexBox$2 = styled__default.default(OakFlex)(templateObject_5$
|
|
6541
|
+
var StyledOakIndexBox$2 = styled__default.default(OakFlex)(templateObject_5$3 || (templateObject_5$3 = tslib.__makeTemplateObject(["\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n @media (hover: hover) {\n &:hover {\n background: ", ";\n }\n }\n"], ["\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n @media (hover: hover) {\n &:hover {\n background: ", ";\n }\n }\n"])), parseColor("bg-decorative3-subdued"));
|
|
6575
6542
|
/**
|
|
6576
6543
|
*
|
|
6577
6544
|
* OakUnitsListItem component used as links for unit cards
|
|
@@ -6609,15 +6576,15 @@ var OakUnitListItem = function (props) {
|
|
|
6609
6576
|
React__default.default.createElement(OakP, { "$font": "heading-light-7", "$color": unavailable ? "text-disabled" : "text-primary" }, props.yearTitle),
|
|
6610
6577
|
React__default.default.createElement(OakP, { "$font": "heading-light-7", "$color": unavailable ? "text-disabled" : "text-primary" }, lessonCount))))));
|
|
6611
6578
|
};
|
|
6612
|
-
var templateObject_1$
|
|
6579
|
+
var templateObject_1$m, templateObject_2$9, templateObject_3$6, templateObject_4$3, templateObject_5$3;
|
|
6613
6580
|
|
|
6614
|
-
var StyledOptionalityListItem = styled__default.default(OakFlex)(templateObject_3$
|
|
6615
|
-
return !props.$disabled && styled.css(templateObject_1$
|
|
6581
|
+
var StyledOptionalityListItem = styled__default.default(OakFlex)(templateObject_3$5 || (templateObject_3$5 = tslib.__makeTemplateObject(["\n outline: none;\n text-align: initial;\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n\n &:hover .hover-text {\n text-decoration: underline;\n }\n\n &:focus-visible {\n background: ", ";\n box-shadow:\n ", ",\n ", ";\n }\n ", "\n\n ", "\n"], ["\n outline: none;\n text-align: initial;\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n\n &:hover .hover-text {\n text-decoration: underline;\n }\n\n &:focus-visible {\n background: ", ";\n box-shadow:\n ", ",\n ", ";\n }\n ", "\n\n ", "\n"])), parseColor("bg-primary"), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), function (props) {
|
|
6582
|
+
return !props.$disabled && styled.css(templateObject_1$l || (templateObject_1$l = tslib.__makeTemplateObject([" \n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n ", " {\n background: ", ";\n }\n background: ", ";\n }\n }\n }\n "], [" \n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n ", " {\n background: ", ";\n }\n background: ", ";\n }\n }\n }\n "])), StyledOakIndexBox$1, parseColor("bg-decorative3-very-subdued"), parseColor("bg-decorative3-main"));
|
|
6616
6583
|
}, function (props) {
|
|
6617
|
-
return props.$disabled && styled.css(templateObject_2$
|
|
6584
|
+
return props.$disabled && styled.css(templateObject_2$8 || (templateObject_2$8 = tslib.__makeTemplateObject(["\n cursor: not-allowed;\n background: ", ";\n border-color: ", ";\n "], ["\n cursor: not-allowed;\n background: ", ";\n border-color: ", ";\n "])), parseColor("bg-neutral"), parseColor("border-neutral-lighter"));
|
|
6618
6585
|
});
|
|
6619
|
-
var StyledOakIndexBox$1 = styled__default.default(OakFlex)(templateObject_4$
|
|
6620
|
-
var HeadingWithFocus = styled__default.default(OakHeading)(templateObject_5$
|
|
6586
|
+
var StyledOakIndexBox$1 = styled__default.default(OakFlex)(templateObject_4$2 || (templateObject_4$2 = tslib.__makeTemplateObject(["\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n @media (hover: hover) {\n &:hover {\n background: ", ";\n }\n }\n"], ["\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n @media (hover: hover) {\n &:hover {\n background: ", ";\n }\n }\n"])), parseColor("bg-decorative3-very-subdued"));
|
|
6587
|
+
var HeadingWithFocus = styled__default.default(OakHeading)(templateObject_5$2 || (templateObject_5$2 = tslib.__makeTemplateObject(["\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n outline: none;\n border-radius: 6px;\n padding: 4px;\n\n &:hover {\n text-decoration: underline;\n }\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n"], ["\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n outline: none;\n border-radius: 6px;\n padding: 4px;\n\n &:hover {\n text-decoration: underline;\n }\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n"])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"));
|
|
6621
6588
|
/**
|
|
6622
6589
|
*
|
|
6623
6590
|
* OakUnitsListItem component used as links for unit cards
|
|
@@ -6634,9 +6601,9 @@ var OakUnitListOptionalityItemCard = function (props) {
|
|
|
6634
6601
|
React__default.default.createElement(OakSpan, { "$color": unavailable ? "text-disabled" : "text-primary", "$font": "heading-light-7", className: "hover-text" }, lessonCount),
|
|
6635
6602
|
React__default.default.createElement(OakIcon, { iconName: "chevron-right", "$colorFilter": unavailable ? "text-disabled" : "text-primary" })))))));
|
|
6636
6603
|
};
|
|
6637
|
-
var templateObject_1$
|
|
6604
|
+
var templateObject_1$l, templateObject_2$8, templateObject_3$5, templateObject_4$2, templateObject_5$2;
|
|
6638
6605
|
|
|
6639
|
-
var StyledYearAndOptionFlex = styled__default.default(OakFlex)(templateObject_1$
|
|
6606
|
+
var StyledYearAndOptionFlex = styled__default.default(OakFlex)(templateObject_1$k || (templateObject_1$k = tslib.__makeTemplateObject(["\n @media (min-width: 356px) {\n min-width: 260px;\n }\n"], ["\n @media (min-width: 356px) {\n min-width: 260px;\n }\n"])));
|
|
6640
6607
|
var UnitYearAndOptionCount = function (_a) {
|
|
6641
6608
|
var yearTitle = _a.yearTitle, optionalityUnitsLength = _a.optionalityUnitsLength, unavailable = _a.unavailable;
|
|
6642
6609
|
return (React__default.default.createElement(StyledYearAndOptionFlex, { "$width": ["100%", "spacing-240"], "$justifyContent": ["space-between"], "$alignItems": "center" },
|
|
@@ -6678,9 +6645,9 @@ var OakUnitListOptionalityItem = function (props) {
|
|
|
6678
6645
|
React__default.default.createElement(OakGrid, { "$rg": "spacing-12", "$cg": "spacing-12" }, optionalityUnits.map(function (unit, index) { return (React__default.default.createElement(OakGridArea, { key: "".concat(unit.title, "-").concat(index), "$colSpan": [12, 6] },
|
|
6679
6646
|
React__default.default.createElement(OakUnitListOptionalityItemCard, tslib.__assign({}, unit, { firstItemRef: index === 0 ? firstItemRef : null, unavailable: unavailable })))); })))));
|
|
6680
6647
|
};
|
|
6681
|
-
var templateObject_1$
|
|
6648
|
+
var templateObject_1$k;
|
|
6682
6649
|
|
|
6683
|
-
var StyledBackLink = styled__default.default.a(templateObject_1$
|
|
6650
|
+
var StyledBackLink = styled__default.default.a(templateObject_1$j || (templateObject_1$j = tslib.__makeTemplateObject(["\n border-radius: 50%;\n display: flex;\n width: fit-content;\n height: fit-content;\n border: none;\n padding: 0;\n outline: none;\n\n img {\n pointer-events: none;\n }\n\n &:not(:disabled) {\n cursor: pointer;\n }\n\n &:active {\n box-shadow:\n ", ",\n ", ";\n }\n\n &:hover,\n &:focus-visible {\n background: ", ";\n\n img {\n filter: ", ";\n }\n }\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n\n &:disabled {\n background: ", ";\n\n img {\n filter: ", ";\n }\n }\n"], ["\n border-radius: 50%;\n display: flex;\n width: fit-content;\n height: fit-content;\n border: none;\n padding: 0;\n outline: none;\n\n img {\n pointer-events: none;\n }\n\n &:not(:disabled) {\n cursor: pointer;\n }\n\n &:active {\n box-shadow:\n ", ",\n ", ";\n }\n\n &:hover,\n &:focus-visible {\n background: ", ";\n\n img {\n filter: ", ";\n }\n }\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n\n &:disabled {\n background: ", ";\n\n img {\n filter: ", ";\n }\n }\n"])), parseDropShadow("drop-shadow-lemon"), parseDropShadow("drop-shadow-grey"), parseColor("bg-btn-primary"), parseColorFilter("text-inverted"), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), parseColor("bg-btn-primary-disabled"), parseColorFilter("text-inverted"));
|
|
6684
6651
|
/**
|
|
6685
6652
|
* Used to navigate the user back to the previous page in the app.
|
|
6686
6653
|
*
|
|
@@ -6697,7 +6664,7 @@ var OakBackLink = function (_a) {
|
|
|
6697
6664
|
return (React__default.default.createElement(StyledBackLink, tslib.__assign({ as: as !== null && as !== void 0 ? as : "a", "aria-label": label }, props),
|
|
6698
6665
|
React__default.default.createElement(OakIcon, { alt: "", iconName: "chevron-left", "$width": "spacing-40", "$objectFit": "cover", "$height": "spacing-40" })));
|
|
6699
6666
|
};
|
|
6700
|
-
var templateObject_1$
|
|
6667
|
+
var templateObject_1$j;
|
|
6701
6668
|
|
|
6702
6669
|
/**
|
|
6703
6670
|
* Display copy link button
|
|
@@ -6745,8 +6712,8 @@ var MultipleIcons = function (_a) {
|
|
|
6745
6712
|
return (React__default.default.createElement(OakFlex, { "$background": "bg-decorative5-main", "$pa": "spacing-12", "$alignItems": "center", "$flexDirection": "column", "$gap": "spacing-16", "$justifyContent": "center" }, iconName.map(function (name, index) { return (React__default.default.createElement(OakFlex, { key: "".concat(name, "-").concat(index), "$position": "relative", "$alignContent": "center", "$alignItems": "center", "$justifyContent": "center" },
|
|
6746
6713
|
React__default.default.createElement(OakIcon, { iconName: name, "$width": "spacing-40", "$height": "spacing-40", "$mr": index < iconName.length - 1 ? "spacing-8" : "spacing-0" }))); })));
|
|
6747
6714
|
};
|
|
6748
|
-
var LabelContainer = styled__default.default("label")(templateObject_1$
|
|
6749
|
-
var Container = styled__default.default(OakFlex)(templateObject_2$
|
|
6715
|
+
var LabelContainer = styled__default.default("label")(templateObject_1$i || (templateObject_1$i = tslib.__makeTemplateObject(["\n flex: 1;\n cursor: ", ";\n display: flex;\n\n &:has(input:disabled) {\n cursor: default;\n #resource-card-title {\n text-decoration: none;\n }\n }\n"], ["\n flex: 1;\n cursor: ", ";\n display: flex;\n\n &:has(input:disabled) {\n cursor: default;\n #resource-card-title {\n text-decoration: none;\n }\n }\n"])), function (props) { return (props.$showSelectionControl ? "pointer" : "default"); });
|
|
6716
|
+
var Container = styled__default.default(OakFlex)(templateObject_2$7 || (templateObject_2$7 = tslib.__makeTemplateObject(["\n &:has(input:focus-visible) {\n box-shadow:\n ", ",\n ", ";\n }\n\n @media (hover: hover) {\n &:hover:not(:has(input:disabled), :active) {\n background: ", ";\n #resource-card-title {\n text-decoration: ", ";\n }\n }\n\n &:hover:active:not(:has(input:disabled)) {\n #resource-card-title {\n text-decoration: ", ";\n }\n }\n }\n"], ["\n &:has(input:focus-visible) {\n box-shadow:\n ", ",\n ", ";\n }\n\n @media (hover: hover) {\n &:hover:not(:has(input:disabled), :active) {\n background: ", ";\n #resource-card-title {\n text-decoration: ", ";\n }\n }\n\n &:hover:active:not(:has(input:disabled)) {\n #resource-card-title {\n text-decoration: ", ";\n }\n }\n }\n"])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), function (props) {
|
|
6750
6717
|
return props.$showSelectionControl
|
|
6751
6718
|
? parseColor("bg-btn-secondary-hover")
|
|
6752
6719
|
: parseColor("bg-primary");
|
|
@@ -6801,7 +6768,7 @@ var OakResourceCard = function (props) {
|
|
|
6801
6768
|
showSelectionControl && isRadio && (React__default.default.createElement(InternalRadioWrapper, { checked: isChecked, size: checkboxSize, disabled: anyDisabled, radioBorderColor: checkedBorderColor, internalRadio: React__default.default.createElement(InternalRadio, tslib.__assign({}, rest, { id: props.id, name: (_a = props.name) !== null && _a !== void 0 ? _a : radioContext.name, value: value, disabled: anyDisabled, onHovered: onHovered, onChange: handleRadioChange, onFocus: onFocus, onBlur: onBlur, defaultChecked: defaultChecked, checked: radioChecked })) })),
|
|
6802
6769
|
showSelectionControl && !isRadio && (React__default.default.createElement(InternalCheckBoxWrapper, { size: checkboxSize, internalCheckbox: React__default.default.createElement(InternalCheckBoxHoverFocus, tslib.__assign({ name: radioContext.name, value: value, "$width": checkboxSize, "$height": checkboxSize, "$ba": "border-solid-m", "$borderRadius": "border-radius-xs", "$borderColor": "text-primary", "$checkedBackground": currentCheckedBackgroundFill, "$checkedBorderColor": currentCheckedBorderColor, "$uncheckedBorderColor": "border-neutral", "$hoverBorderRadius": "border-radius-xs", onHovered: onHovered, onChange: onChange, onFocus: onFocus, onBlur: onBlur, defaultChecked: defaultChecked, checked: checked, disabled: anyDisabled }, rest)), iconPadding: "spacing-0" })))))));
|
|
6803
6770
|
};
|
|
6804
|
-
var templateObject_1$
|
|
6771
|
+
var templateObject_1$i, templateObject_2$7;
|
|
6805
6772
|
|
|
6806
6773
|
/**
|
|
6807
6774
|
* A draggable element that visually indicates whether or not its state is correct or not
|
|
@@ -6811,36 +6778,6 @@ var OakDraggableFeedback = function (_a) {
|
|
|
6811
6778
|
return (React__default.default.createElement(OakDraggable, tslib.__assign({}, props, { iconName: feedback === "correct" ? "tick" : "cross", iconColor: feedback === "correct" ? "icon-success" : "icon-error", iconAlt: feedback === "correct" ? "correct" : "incorrect", "$ba": "border-solid-xl", "$borderColor": feedback === "correct" ? "border-success" : "border-error", "$background": feedback === "correct" ? "bg-correct" : "bg-incorrect", isReadOnly: true })));
|
|
6812
6779
|
};
|
|
6813
6780
|
|
|
6814
|
-
/**
|
|
6815
|
-
*
|
|
6816
|
-
* Based on the OakModal component, this component is a filter drawer that slides in from the right side of the screen.
|
|
6817
|
-
* Designed for mobile and tablet devices
|
|
6818
|
-
*
|
|
6819
|
-
* ### Callbacks
|
|
6820
|
-
* clearAllInputs: used to clear filter options
|
|
6821
|
-
*
|
|
6822
|
-
*/
|
|
6823
|
-
var OakFilterDrawer = function (_a) {
|
|
6824
|
-
var isOpen = _a.isOpen, domContainer = _a.domContainer, onClose = _a.onClose, zIndex = _a.zIndex, children = _a.children, clearAllInputs = _a.clearAllInputs, footerSlot = _a.footerSlot, rest = tslib.__rest(_a, ["isOpen", "domContainer", "onClose", "zIndex", "children", "clearAllInputs", "footerSlot"]);
|
|
6825
|
-
var _b = useIsScrolled(), isScrolled = _b.isScrolled, ObserveScroll = _b.ObserveScroll;
|
|
6826
|
-
var transitionRef = React.useRef(null);
|
|
6827
|
-
var isMounted = useMounted();
|
|
6828
|
-
if (!isMounted) {
|
|
6829
|
-
return null;
|
|
6830
|
-
}
|
|
6831
|
-
var finalZIndex = typeof zIndex === "number" ? zIndex : "modal-dialog";
|
|
6832
|
-
return reactDom.createPortal(React__default.default.createElement(InternalModalTransition, tslib.__assign({ isOpen: isOpen, transitionRef: transitionRef, onClose: onClose, finalZIndex: finalZIndex, isLeftHandSide: false }, rest),
|
|
6833
|
-
React__default.default.createElement(OakFlex, { "$ma": "spacing-24", "$justifyContent": "space-between", "$alignItems": "center" },
|
|
6834
|
-
React__default.default.createElement(OakLink, { variant: "secondary", onClick: clearAllInputs, "aria-label": "Clear", element: "button" }, "Clear"),
|
|
6835
|
-
React__default.default.createElement(OakHeading, { "$font": "heading-6", tag: "h3" }, "Filters"),
|
|
6836
|
-
React__default.default.createElement(InternalShadowRoundButton, { onClick: onClose, "aria-label": "Close", defaultIconBackground: "transparent", defaultIconColor: "icon-primary", defaultTextColor: "transparent", hoverTextColor: "transparent", disabledTextColor: "transparent", hoverIconBackground: "icon-primary", hoverIconColor: "icon-inverted", disabledIconBackground: "transparent", iconBackgroundSize: "spacing-24", iconSize: "spacing-24", iconName: "cross" })),
|
|
6837
|
-
React__default.default.createElement(OakFlex, { "$flexGrow": 1, "$flexDirection": "column", "$overflow": "auto", "$bt": "border-solid-s", "$borderColor": isScrolled ? "border-neutral-lighter" : "transparent" },
|
|
6838
|
-
React__default.default.createElement(ObserveScroll, null,
|
|
6839
|
-
React__default.default.createElement("div", { "data-autofocus-inside": true, tabIndex: -2 },
|
|
6840
|
-
React__default.default.createElement(OakBox, { "$mh": "spacing-24" }, children)))),
|
|
6841
|
-
React__default.default.createElement(OakFlex, { "$flexDirection": ["column", "row"], "$bt": "border-solid-s", "$borderColor": "border-neutral-lighter", "$pa": "spacing-12", "$gap": ["spacing-16", "spacing-24"], "$width": "100%" }, footerSlot)), domContainer !== null && domContainer !== void 0 ? domContainer : document.body);
|
|
6842
|
-
};
|
|
6843
|
-
|
|
6844
6781
|
var OakFormInputWithLabels = function (_a) {
|
|
6845
6782
|
var label = _a.label, helperText = _a.helperText, placeholder = _a.placeholder, invalid = _a.invalid, invalidText = _a.invalidText, value = _a.value, inputName = _a.inputName, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.required, required = _c === void 0 ? false : _c, defaultValue = _a.defaultValue, _d = _a.onChange, onChange = _d === void 0 ? function () { } : _d, _e = _a.onInitialFocus, onInitialFocus = _e === void 0 ? function () { } : _e, _f = _a.onBlur, onBlur = _f === void 0 ? function () { } : _f;
|
|
6846
6783
|
var inputId = "input-".concat(label.toLowerCase().replace(/\s+/g, "-"));
|
|
@@ -6877,7 +6814,7 @@ var OakStaticMessageCard = function (props) {
|
|
|
6877
6814
|
React__default.default.createElement(OakFlex, { "$pa": "spacing-0", "$flexDirection": "column", "$gap": "spacing-16" }, children)));
|
|
6878
6815
|
};
|
|
6879
6816
|
|
|
6880
|
-
var StyledOakFlexAsLink = styled__default.default(OakFlex)(templateObject_1$
|
|
6817
|
+
var StyledOakFlexAsLink = styled__default.default(OakFlex)(templateObject_1$h || (templateObject_1$h = tslib.__makeTemplateObject(["\n animation: ", ";\n animation-delay: 0.5s;\n cursor: pointer;\n outline: none;\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n\n @keyframes background-fade {\n from {\n background-color: ", ";\n }\n to {\n transform: ", ";\n }\n }\n"], ["\n animation: ", ";\n animation-delay: 0.5s;\n cursor: pointer;\n outline: none;\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n\n @keyframes background-fade {\n from {\n background-color: ", ";\n }\n to {\n transform: ", ";\n }\n }\n"])), function (_a) {
|
|
6881
6818
|
var hasAnimation = _a.hasAnimation;
|
|
6882
6819
|
return hasAnimation ? "background-fade 2s ease-in-out" : "none";
|
|
6883
6820
|
}, parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), parseColor("bg-decorative1-main"), parseColor("bg-primary"));
|
|
@@ -6906,9 +6843,9 @@ var OakLinkCard = function (_a) {
|
|
|
6906
6843
|
showNew && (React__default.default.createElement(OakBox, { "$position": "absolute", "$top": narrow ? ["spacing-0"] : ["spacing-0", "spacing-8"], "$left": narrow ? ["spacing-0"] : ["spacing-0", "spacing-8"], "data-testid": "oak-new-promo-tag", "$zIndex": "in-front", "aria-hidden": "true" },
|
|
6907
6844
|
React__default.default.createElement(OakPromoTag, null))))));
|
|
6908
6845
|
};
|
|
6909
|
-
var templateObject_1$
|
|
6846
|
+
var templateObject_1$h;
|
|
6910
6847
|
|
|
6911
|
-
var AccordionWrapper = styled__default.default(OakFlex)(templateObject_1$
|
|
6848
|
+
var AccordionWrapper = styled__default.default(OakFlex)(templateObject_1$g || (templateObject_1$g = tslib.__makeTemplateObject(["\n position: relative;\n border-width: 2px;\n"], ["\n position: relative;\n border-width: 2px;\n"])));
|
|
6912
6849
|
// @todo only show shadow when there is are more items to scroll and remove once scrolled to the bottom
|
|
6913
6850
|
// const BottomBoxShadow = styled(OakBox)`
|
|
6914
6851
|
// position: absolute;
|
|
@@ -6928,37 +6865,7 @@ var OakMediaClipListAccordion = function (_a) {
|
|
|
6928
6865
|
return (React__default.default.createElement(AccordionWrapper, { "$position": "relative", "$flexDirection": "column" },
|
|
6929
6866
|
React__default.default.createElement(InternalChevronAccordion, tslib.__assign({ header: header, id: id, initialOpen: initialOpen, "$pv": "spacing-0", "$borderStyle": "solid", "$borderColor": "border-primary", "$ba": "border-solid-m", "$bl": ["border-solid-m", "border-solid-m", "border-solid-none"] }, styleProps), children)));
|
|
6930
6867
|
};
|
|
6931
|
-
var templateObject_1$
|
|
6932
|
-
|
|
6933
|
-
var isTileItem = function (u) {
|
|
6934
|
-
return (typeof u === "object" &&
|
|
6935
|
-
u !== null &&
|
|
6936
|
-
typeof u.id === "string" &&
|
|
6937
|
-
typeof u.label === "string");
|
|
6938
|
-
};
|
|
6939
|
-
var RadioTileLabel = styled__default.default(OakLabel)(templateObject_1$g || (templateObject_1$g = tslib.__makeTemplateObject(["\n cursor: pointer;\n display: flex;\n gap: ", ";\n"], ["\n cursor: pointer;\n display: flex;\n gap: ", ";\n"])), parseSpacing("spacing-16"));
|
|
6940
|
-
var HiddenRadioButtonInput = styled__default.default.input.attrs({
|
|
6941
|
-
type: "radio",
|
|
6942
|
-
})(templateObject_2$7 || (templateObject_2$7 = tslib.__makeTemplateObject(["\n position: absolute;\n opacity: 0;\n cursor: pointer;\n"], ["\n position: absolute;\n opacity: 0;\n cursor: pointer;\n"])));
|
|
6943
|
-
var RadioTileFocus = styled__default.default(OakBox)(templateObject_3$5 || (templateObject_3$5 = tslib.__makeTemplateObject(["\n box-shadow: ", ";\n width: calc(100% + 12px);\n height: calc(100% + 12px);\n top: -6px;\n left: -6px;\n"], ["\n box-shadow: ", ";\n width: calc(100% + 12px);\n height: calc(100% + 12px);\n top: -6px;\n left: -6px;\n"])), "inset 0 0 0 0.15rem ".concat(parseColor("icon-promo")));
|
|
6944
|
-
var OakRadioTileCss = styled.css(templateObject_4$2 || (templateObject_4$2 = tslib.__makeTemplateObject([""], [""])));
|
|
6945
|
-
var UnstyledComponent$3 = function (props) {
|
|
6946
|
-
var tileItem = props.tileItem, isChecked = props.isChecked, id = props.id, onChange = props.onChange;
|
|
6947
|
-
var _a = tslib.__read(React.useState(false), 2), isFocussed = _a[0], setIsFocussed = _a[1];
|
|
6948
|
-
return (React__default.default.createElement(OakBox, { "$borderColor": "border-neutral", "$ba": "border-solid-m", "$borderRadius": "border-radius-s", "$pa": "spacing-12", "$position": "relative", "$background": isFocussed || isChecked ? "bg-inverted" : "transparent", "$color": isFocussed || isChecked ? "text-inverted" : "text-primary" },
|
|
6949
|
-
isFocussed && (React__default.default.createElement(RadioTileFocus, { "$background": "transparent", "$position": "absolute", "$ba": "border-solid-l", "$borderColor": "border-neutral-stronger", "$borderRadius": "border-radius-s", "data-testid": "radio-tile-focus" })),
|
|
6950
|
-
React__default.default.createElement(RadioTileLabel, { htmlFor: id },
|
|
6951
|
-
React__default.default.createElement(HiddenRadioButtonInput, { value: tileItem.id, id: id, checked: isChecked, onChange: function () { return onChange(tileItem); }, tabIndex: 0, onFocus: function () { return setIsFocussed(true); }, onBlur: function () { return setIsFocussed(false); }, onClick: function (e) {
|
|
6952
|
-
// remove focus on mouse click events
|
|
6953
|
-
if (e.clientX || e.clientY) {
|
|
6954
|
-
setIsFocussed(false);
|
|
6955
|
-
}
|
|
6956
|
-
} }),
|
|
6957
|
-
React__default.default.createElement(OakFlex, { "$height": "spacing-24", "$width": "spacing-24", "$borderColor": "border-neutral", "$flexGrow": 0, "$flexShrink": 0, "$alignItems": "center", "$justifyContent": "center", "$background": "bg-primary", "$ba": "border-solid-m", "$borderRadius": "border-radius-circle" }, isChecked && (React__default.default.createElement(OakBox, { "$height": "spacing-16", "$width": "spacing-16", "$background": "bg-inverted", "$position": "absolute", "$borderRadius": "border-radius-circle", "data-testid": "radio-tile-checked" }))),
|
|
6958
|
-
tileItem.label)));
|
|
6959
|
-
};
|
|
6960
|
-
var OakRadioTile = styled__default.default(UnstyledComponent$3)(templateObject_5$2 || (templateObject_5$2 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), OakRadioTileCss);
|
|
6961
|
-
var templateObject_1$g, templateObject_2$7, templateObject_3$5, templateObject_4$2, templateObject_5$2;
|
|
6868
|
+
var templateObject_1$g;
|
|
6962
6869
|
|
|
6963
6870
|
var StyledInternalButton$1 = styled__default.default(InternalButton)(templateObject_1$f || (templateObject_1$f = tslib.__makeTemplateObject(["\n :hover {\n .oak-save-count {\n background-color: ", ";\n }\n }\n :focus-visible {\n .oak-save-count {\n box-shadow:\n ", ",\n ", ";\n }\n }\n"], ["\n :hover {\n .oak-save-count {\n background-color: ", ";\n }\n }\n :focus-visible {\n .oak-save-count {\n box-shadow:\n ", ",\n ", ";\n }\n }\n"])), parseColor("bg-decorative1-main"), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"));
|
|
6964
6871
|
var OakSaveCount = function (_a) {
|
|
@@ -7779,7 +7686,6 @@ exports.IconDown = IconDown;
|
|
|
7779
7686
|
exports.IconUp = IconUp;
|
|
7780
7687
|
exports.OakAccordion = OakAccordion;
|
|
7781
7688
|
exports.OakAnchorTarget = OakAnchorTarget;
|
|
7782
|
-
exports.OakAspectRatio = OakAspectRatio;
|
|
7783
7689
|
exports.OakBackLink = OakBackLink;
|
|
7784
7690
|
exports.OakBasicAccordion = OakBasicAccordion;
|
|
7785
7691
|
exports.OakBox = OakBox;
|
|
@@ -7813,7 +7719,6 @@ exports.OakErrorBoundary = OakErrorBoundary;
|
|
|
7813
7719
|
exports.OakErrorBoundaryBorderColor = OakErrorBoundaryBorderColor;
|
|
7814
7720
|
exports.OakFieldError = OakFieldError;
|
|
7815
7721
|
exports.OakFieldset = OakFieldset;
|
|
7816
|
-
exports.OakFilterDrawer = OakFilterDrawer;
|
|
7817
7722
|
exports.OakFlex = OakFlex;
|
|
7818
7723
|
exports.OakFocusIndicator = OakFocusIndicator;
|
|
7819
7724
|
exports.OakForm = OakForm;
|
|
@@ -7907,7 +7812,6 @@ exports.OakQuote = OakQuote;
|
|
|
7907
7812
|
exports.OakRadioAsButton = OakRadioAsButton;
|
|
7908
7813
|
exports.OakRadioButton = OakRadioButton;
|
|
7909
7814
|
exports.OakRadioGroup = OakRadioGroup;
|
|
7910
|
-
exports.OakRadioTile = OakRadioTile;
|
|
7911
7815
|
exports.OakResourceCard = OakResourceCard;
|
|
7912
7816
|
exports.OakResourcesAccordion = OakResourcesAccordion;
|
|
7913
7817
|
exports.OakRoundIcon = OakRoundIcon;
|
|
@@ -7970,7 +7874,6 @@ exports.getDefaultContextState = getDefaultContextState;
|
|
|
7970
7874
|
exports.getMediaQuery = getMediaQuery;
|
|
7971
7875
|
exports.installMockIntersectionObserver = installMockIntersectionObserver;
|
|
7972
7876
|
exports.installMockResizeObserver = installMockResizeObserver;
|
|
7973
|
-
exports.isTileItem = isTileItem;
|
|
7974
7877
|
exports.isValidIconName = isValidIconName;
|
|
7975
7878
|
exports.lessonSectionNames = lessonSectionNames;
|
|
7976
7879
|
exports.oakAllSpacingTokens = oakAllSpacingTokens;
|