@oaknational/oak-components 3.22.0 → 3.22.2
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/bin/migrate/cli.js +1 -1
- package/dist/npm/bin/migrate/index.js +1 -1
- package/dist/npm/cjs/index.js +273 -253
- package/dist/npm/cjs/types.d.ts +1242 -953
- package/dist/npm/es/components/form-elements/OakCheckBox/OakCheckBox.js +2 -2
- package/dist/npm/es/components/form-elements/OakMultilineText/OakMultilineText.js +1 -1
- package/dist/npm/es/components/form-elements/OakSearchFilterCheckBox/OakSearchFilterCheckBox.js +1 -2
- package/dist/npm/es/components/form-elements/OakSelect/NativeSelect.js +1 -1
- package/dist/npm/es/components/images-and-icons/OakImage/OakImage.js +1 -1
- package/dist/npm/es/components/internal-components/InternalCheckBoxLabel/InternalCheckBoxLabel.js +1 -1
- package/dist/npm/es/components/internal-components/InternalChevronAccordion/InternalChevronAccordion.js +3 -3
- package/dist/npm/es/components/internal-components/InternalModalTransition/InternalModalTransition.js +2 -2
- package/dist/npm/es/components/internal-components/InternalShadowIconButton/InternalShadowIconButton.js +1 -1
- package/dist/npm/es/components/internal-components/InternalShadowRoundButton/InternalShadowRoundButton.js +2 -3
- package/dist/npm/es/components/internal-components/InternalSlideInFlex/InternalSlideInFlex.js +8 -8
- package/dist/npm/es/components/internal-components/InternalTextInput/InternalTextInput.js +1 -1
- package/dist/npm/es/components/layout-and-structure/OakBox/OakBox.js +1 -1
- package/dist/npm/es/components/layout-and-structure/OakGrid/OakGrid.js +1 -1
- package/dist/npm/es/components/messaging-and-feedback/OakFocusIndicator/OakFocusIndicator.js +7 -5
- package/dist/npm/es/components/messaging-and-feedback/OakLoadingSpinner/OakLoadingSpinner.js +13 -7
- package/dist/npm/es/components/messaging-and-feedback/OakTagFunctional/OakTagFunctional.js +4 -4
- package/dist/npm/es/components/navigation/OakLink/OakLink.js +7 -3
- package/dist/npm/es/components/navigation/OakPagination/OakPagination.js +9 -9
- package/dist/npm/es/components/owa/OakHomepageTabButton/OakHomepageTabButton.js +1 -1
- package/dist/npm/es/components/owa/OakLinkCard/OakLinkCard.js +3 -3
- package/dist/npm/es/components/owa/OakMediaClip/OakMediaClip.js +1 -1
- package/dist/npm/es/components/owa/OakSaveCount/OakSaveCount.js +1 -1
- package/dist/npm/es/components/owa/OakSideMenuNavLink/OakSideMenuNavLink.js +6 -6
- package/dist/npm/es/components/owa/pupil/OakUnitListItem/OakUnitListItem.js +7 -3
- package/dist/npm/es/components/owa/pupil/OakUnitListOptionalityItem/OakUnitListOptionalityItem.js +1 -1
- package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyLayout/OakPupilJourneyLayout.js +2 -2
- package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyListItem/OakPupilJourneyListItem.js +1 -1
- package/dist/npm/es/components/owa/pupil/lesson/OakLessonLayout/OakLessonLayout.js +2 -2
- package/dist/npm/es/components/owa/pupil/lesson/OakLessonReviewItem/OakPupilLessonReviewItem.js +3 -3
- package/dist/npm/es/components/owa/pupil/lesson/OakLessonReviewQuiz/OakPupilLessonReviewQuiz.js +9 -9
- package/dist/npm/es/components/owa/pupil/quiz/OakQuizCheckBox/OakQuizCheckBox.js +1 -1
- package/dist/npm/es/components/owa/teacher/OakInlineRegistrationBanner/OakInlineRegistrationBanner.js +5 -2
- package/dist/npm/es/styles/utils/borderStyle.js +1 -1
- package/dist/npm/es/styles/utils/colorFilterStyle.js +1 -1
- package/dist/npm/es/styles/utils/responsiveStyle.js +9 -4
- package/dist/npm/es/types.d.ts +1242 -953
- package/package.json +5 -4
package/dist/npm/cjs/index.js
CHANGED
|
@@ -291,12 +291,17 @@ var getMediaQuery = function (device) {
|
|
|
291
291
|
* array.
|
|
292
292
|
*/
|
|
293
293
|
var responsiveStyle = function (attr, getValues, parse) {
|
|
294
|
-
if (parse === void 0) { parse = function (x) {
|
|
294
|
+
if (parse === void 0) { parse = function (x) {
|
|
295
|
+
return x;
|
|
296
|
+
}; }
|
|
295
297
|
return function (props) {
|
|
296
298
|
var attrCss = function (value) {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
299
|
+
if (typeof value === "undefined") {
|
|
300
|
+
return undefined;
|
|
301
|
+
}
|
|
302
|
+
var parsed = parse(value);
|
|
303
|
+
var cssValue = typeof parsed === "function" ? parsed(props) : parsed;
|
|
304
|
+
return styled.css(templateObject_1$26 || (templateObject_1$26 = tslib.__makeTemplateObject(["\n ", ": ", ";\n "], ["\n ", ": ", ";\n "])), attr, cssValue);
|
|
300
305
|
};
|
|
301
306
|
var values = getValues(props);
|
|
302
307
|
if (typeof values === "undefined") {
|
|
@@ -322,10 +327,10 @@ var responsiveStyle = function (attr, getValues, parse) {
|
|
|
322
327
|
.filter(truthy)), false);
|
|
323
328
|
};
|
|
324
329
|
};
|
|
325
|
-
var templateObject_1$
|
|
330
|
+
var templateObject_1$26, templateObject_2$W, templateObject_3$E, templateObject_4$o, templateObject_5$h;
|
|
326
331
|
|
|
327
|
-
var colorStyle = styled.css(templateObject_1$
|
|
328
|
-
var templateObject_1$
|
|
332
|
+
var colorStyle = styled.css(templateObject_1$25 || (templateObject_1$25 = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("color", function (props) { return props.$color; }, parseColor), responsiveStyle("background", function (props) { return props.$background; }, parseColor));
|
|
333
|
+
var templateObject_1$25;
|
|
329
334
|
|
|
330
335
|
var BASE_FONT_SIZE_PX = 16;
|
|
331
336
|
var REM_DP = 3;
|
|
@@ -406,13 +411,13 @@ function parseSpacing(value) {
|
|
|
406
411
|
return value;
|
|
407
412
|
}
|
|
408
413
|
|
|
409
|
-
var positionStyle = styled.css(templateObject_1$
|
|
410
|
-
var templateObject_1$
|
|
414
|
+
var positionStyle = styled.css(templateObject_1$24 || (templateObject_1$24 = 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; }));
|
|
415
|
+
var templateObject_1$24;
|
|
411
416
|
|
|
412
|
-
var sizeStyle = styled.css(templateObject_1$
|
|
413
|
-
var templateObject_1$
|
|
417
|
+
var sizeStyle = styled.css(templateObject_1$23 || (templateObject_1$23 = 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; }));
|
|
418
|
+
var templateObject_1$23;
|
|
414
419
|
|
|
415
|
-
var paddingAll = styled.css(templateObject_1$
|
|
420
|
+
var paddingAll = styled.css(templateObject_1$22 || (templateObject_1$22 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("padding", function (props) { return props.$pa; }, parseSpacing));
|
|
416
421
|
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
422
|
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
423
|
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));
|
|
@@ -420,7 +425,7 @@ var paddingRight = styled.css(templateObject_5$g || (templateObject_5$g = tslib.
|
|
|
420
425
|
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
426
|
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
427
|
var marginAll = styled.css(templateObject_8$2 || (templateObject_8$2 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("margin", function (props) { return props.$ma; }, parseSpacing));
|
|
423
|
-
var marginHorizontal = styled.css(templateObject_9$
|
|
428
|
+
var marginHorizontal = styled.css(templateObject_9$1 || (templateObject_9$1 = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("margin-left", function (props) { return props.$mh; }, parseSpacing), responsiveStyle("margin-right", function (props) { return props.$mh; }, parseSpacing));
|
|
424
429
|
var marginVertical = styled.css(templateObject_10$1 || (templateObject_10$1 = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("margin-top", function (props) { return props.$mv; }, parseSpacing), responsiveStyle("margin-bottom", function (props) { return props.$mv; }, parseSpacing));
|
|
425
430
|
var marginLeft = styled.css(templateObject_11$1 || (templateObject_11$1 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("margin-left", function (props) { return props.$ml; }, parseSpacing));
|
|
426
431
|
var marginRight = styled.css(templateObject_12$1 || (templateObject_12$1 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("margin-right", function (props) { return props.$mr; }, parseSpacing));
|
|
@@ -429,7 +434,7 @@ var marginBottom = styled.css(templateObject_14$1 || (templateObject_14$1 = tsli
|
|
|
429
434
|
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
435
|
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
436
|
var spacingStyle = styled.css(templateObject_17$1 || (templateObject_17$1 = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), paddingStyle, marginStyle);
|
|
432
|
-
var templateObject_1$
|
|
437
|
+
var templateObject_1$22, templateObject_2$V, templateObject_3$D, templateObject_4$n, templateObject_5$g, templateObject_6$d, templateObject_7$7, templateObject_8$2, templateObject_9$1, 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
438
|
|
|
434
439
|
var oakBorderWidthTokens = {
|
|
435
440
|
"border-solid-none": 0,
|
|
@@ -470,15 +475,15 @@ var parseBorderRadius = function (value) {
|
|
|
470
475
|
}
|
|
471
476
|
};
|
|
472
477
|
|
|
473
|
-
var borderAll = styled.css(templateObject_1$
|
|
478
|
+
var borderAll = styled.css(templateObject_1$21 || (templateObject_1$21 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border", function (props) { return props.$ba; }, parseBorder));
|
|
474
479
|
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
480
|
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
481
|
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
482
|
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
483
|
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
484
|
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
|
-
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));
|
|
481
|
-
var borderRadius = styled.css(templateObject_9
|
|
485
|
+
var borderColor = styled.css(templateObject_8$1 || (templateObject_8$1 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-color", function (props) { return props.$borderColor; }, function (value) { return parseColor(value); }));
|
|
486
|
+
var borderRadius = styled.css(templateObject_9 || (templateObject_9 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-radius", function (props) { return props.$borderRadius; }, parseBorderRadius));
|
|
482
487
|
var borderRadiusTopLeft = styled.css(templateObject_10 || (templateObject_10 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-top-left-radius", function (props) { return props.$btlr; }, parseBorderRadius));
|
|
483
488
|
var borderRadiusTopRight = styled.css(templateObject_11 || (templateObject_11 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-top-right-radius", function (props) { return props.$btrr; }, parseBorderRadius));
|
|
484
489
|
var borderRadiusBottomLeft = styled.css(templateObject_12 || (templateObject_12 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-bottom-left-radius", function (props) { return props.$bblr; }, parseBorderRadius));
|
|
@@ -487,10 +492,10 @@ var borderRadiusTop = styled.css(templateObject_14 || (templateObject_14 = tslib
|
|
|
487
492
|
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
493
|
var borderStrokeStyle = styled.css(templateObject_16 || (templateObject_16 = tslib.__makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), responsiveStyle("border-style", function (props) { return props.$borderStyle; }));
|
|
489
494
|
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$
|
|
495
|
+
var templateObject_1$21, templateObject_2$U, templateObject_3$C, templateObject_4$m, templateObject_5$f, templateObject_6$c, templateObject_7$6, templateObject_8$1, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17;
|
|
491
496
|
|
|
492
|
-
var displayStyle = styled.css(templateObject_1$
|
|
493
|
-
var templateObject_1$
|
|
497
|
+
var displayStyle = styled.css(templateObject_1$20 || (templateObject_1$20 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("display", function (props) { return props.$display; }));
|
|
498
|
+
var templateObject_1$20;
|
|
494
499
|
|
|
495
500
|
var oakDropShadowTokens = {
|
|
496
501
|
"drop-shadow-standard": "0 0.5rem 0.5rem rgba(92, 92, 92, 20%)",
|
|
@@ -516,8 +521,8 @@ var parseDropShadow = function (variant) {
|
|
|
516
521
|
}
|
|
517
522
|
};
|
|
518
523
|
|
|
519
|
-
var dropShadowStyle = styled.css(templateObject_1$
|
|
520
|
-
var templateObject_1$
|
|
524
|
+
var dropShadowStyle = styled.css(templateObject_1$1$ || (templateObject_1$1$ = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("box-shadow", function (props) { return props.$dropShadow; }, parseDropShadow));
|
|
525
|
+
var templateObject_1$1$;
|
|
521
526
|
|
|
522
527
|
var oakOpacityTokens = {
|
|
523
528
|
transparent: 0,
|
|
@@ -535,11 +540,11 @@ var parseOpacity = function (variant) {
|
|
|
535
540
|
}
|
|
536
541
|
};
|
|
537
542
|
|
|
538
|
-
var opacityStyle = styled.css(templateObject_1$
|
|
539
|
-
var templateObject_1$
|
|
543
|
+
var opacityStyle = styled.css(templateObject_1$1_ || (templateObject_1$1_ = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("opacity", function (props) { return props.$opacity; }, parseOpacity));
|
|
544
|
+
var templateObject_1$1_;
|
|
540
545
|
|
|
541
|
-
var transformStyle = styled.css(templateObject_1$
|
|
542
|
-
var templateObject_1$
|
|
546
|
+
var transformStyle = styled.css(templateObject_1$1Z || (templateObject_1$1Z = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("transform", function (props) { return props.$transform; }), responsiveStyle("transform-origin", function (props) { return props.$transformOrigin; }));
|
|
547
|
+
var templateObject_1$1Z;
|
|
543
548
|
|
|
544
549
|
var oakTransitionTokens = {
|
|
545
550
|
"standard-ease": "all 0.3s ease",
|
|
@@ -555,8 +560,8 @@ var parseTransitions = function (variant) {
|
|
|
555
560
|
}
|
|
556
561
|
};
|
|
557
562
|
|
|
558
|
-
var transitionStyle = styled.css(templateObject_1$
|
|
559
|
-
var templateObject_1$
|
|
563
|
+
var transitionStyle = styled.css(templateObject_1$1Y || (templateObject_1$1Y = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("transition", function (props) { return props.$transition; }, parseTransitions));
|
|
564
|
+
var templateObject_1$1Y;
|
|
560
565
|
|
|
561
566
|
var oakFontSizeTokens = {
|
|
562
567
|
"font-size-1": 12,
|
|
@@ -660,8 +665,8 @@ var parseLetterSpacing = function (font) {
|
|
|
660
665
|
return (_a = oakFontTokens[font]) === null || _a === void 0 ? void 0 : _a[3];
|
|
661
666
|
};
|
|
662
667
|
|
|
663
|
-
var typographyStyle = styled.css(templateObject_1$
|
|
664
|
-
var templateObject_1$
|
|
668
|
+
var typographyStyle = styled.css(templateObject_1$1X || (templateObject_1$1X = 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; }));
|
|
669
|
+
var templateObject_1$1X;
|
|
665
670
|
|
|
666
671
|
// For help with defining z-index values, refer to this article:
|
|
667
672
|
// https://www.smashingmagazine.com/2021/02/css-z-index-large-projects/#a-new-solution
|
|
@@ -689,17 +694,17 @@ var parseZIndex = function (value) {
|
|
|
689
694
|
return oakZIndexTokens[value];
|
|
690
695
|
};
|
|
691
696
|
|
|
692
|
-
var zIndexStyle = styled.css(templateObject_1$
|
|
693
|
-
var templateObject_1$
|
|
697
|
+
var zIndexStyle = styled.css(templateObject_1$1W || (templateObject_1$1W = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("z-index", function (props) { return props.$zIndex; }, parseZIndex));
|
|
698
|
+
var templateObject_1$1W;
|
|
694
699
|
|
|
695
|
-
var scrollMarginTop = styled.css(templateObject_1$
|
|
700
|
+
var scrollMarginTop = styled.css(templateObject_1$1V || (templateObject_1$1V = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("scroll-margin-top", function (props) { return props.$scrollMarginTop; }, parseSpacing));
|
|
696
701
|
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
702
|
var scrollSnapStyle = styled.css(templateObject_3$B || (templateObject_3$B = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), scrollMarginTop, scrollMarginLeft);
|
|
698
|
-
var templateObject_1$
|
|
703
|
+
var templateObject_1$1V, templateObject_2$T, templateObject_3$B;
|
|
699
704
|
|
|
700
705
|
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
706
|
/* onClick might be passed in the useClickableCard pattern */
|
|
702
|
-
return props.onClick && styled.css(templateObject_1$
|
|
707
|
+
return props.onClick && styled.css(templateObject_1$1U || (templateObject_1$1U = tslib.__makeTemplateObject(["\n &:hover {\n cursor: pointer;\n }\n "], ["\n &:hover {\n cursor: pointer;\n }\n "])));
|
|
703
708
|
});
|
|
704
709
|
/**
|
|
705
710
|
* OakBox exposes all the styles that are available styles on a div tag. These include:
|
|
@@ -719,10 +724,10 @@ var oakBoxCss = styled.css(templateObject_2$S || (templateObject_2$S = tslib.__m
|
|
|
719
724
|
*
|
|
720
725
|
*/
|
|
721
726
|
var OakBox = styled__default.default.div(templateObject_3$A || (templateObject_3$A = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), oakBoxCss);
|
|
722
|
-
var templateObject_1$
|
|
727
|
+
var templateObject_1$1U, templateObject_2$S, templateObject_3$A;
|
|
723
728
|
|
|
724
|
-
var flexStyle = styled.css(templateObject_1$
|
|
725
|
-
var templateObject_1$
|
|
729
|
+
var flexStyle = styled.css(templateObject_1$1T || (templateObject_1$1T = 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));
|
|
730
|
+
var templateObject_1$1T;
|
|
726
731
|
|
|
727
732
|
var oakFlexCss = flexStyle;
|
|
728
733
|
/**
|
|
@@ -733,16 +738,16 @@ var oakFlexCss = flexStyle;
|
|
|
733
738
|
* Before adding props to this component, think about whether it makes sense
|
|
734
739
|
* to add it to Box instead, as this component extends that.
|
|
735
740
|
*/
|
|
736
|
-
var OakFlex = styled__default.default(OakBox)(templateObject_1$
|
|
737
|
-
var templateObject_1$
|
|
741
|
+
var OakFlex = styled__default.default(OakBox)(templateObject_1$1S || (templateObject_1$1S = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), flexStyle);
|
|
742
|
+
var templateObject_1$1S;
|
|
738
743
|
|
|
739
744
|
/**
|
|
740
745
|
* Span renders a `span` (inline text) component, exposing all the typography props.
|
|
741
746
|
* ## Usage
|
|
742
747
|
* Use this component when you want to apply styles to a piece of inline text.
|
|
743
748
|
*/
|
|
744
|
-
var OakSpan = styled__default.default.span(templateObject_1$
|
|
745
|
-
var templateObject_1$
|
|
749
|
+
var OakSpan = styled__default.default.span(templateObject_1$1R || (templateObject_1$1R = 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);
|
|
750
|
+
var templateObject_1$1R;
|
|
746
751
|
|
|
747
752
|
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
753
|
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 +801,7 @@ var svgMap = {
|
|
|
796
801
|
"icon-background": IconBackground,
|
|
797
802
|
scribble: Scribble,
|
|
798
803
|
};
|
|
799
|
-
var StyledSvg$2 = styled__default.default.svg(templateObject_1$
|
|
804
|
+
var StyledSvg$2 = styled__default.default.svg(templateObject_1$1Q || (templateObject_1$1Q = tslib.__makeTemplateObject(["\n ", ";\n transition: all 0.3s ease;\n"], ["\n ", ";\n transition: all 0.3s ease;\n"])), oakBoxCss);
|
|
800
805
|
/**
|
|
801
806
|
* This is component used for rendering SVGs that don't belong to be rendered with OakIcon component
|
|
802
807
|
* ie. UI elements that are not icons/illustratons but are part of the design system (underline, etc)
|
|
@@ -808,9 +813,9 @@ var OakSvg = function (props) {
|
|
|
808
813
|
};
|
|
809
814
|
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
815
|
};
|
|
811
|
-
var templateObject_1$
|
|
816
|
+
var templateObject_1$1Q;
|
|
812
817
|
|
|
813
|
-
var internalButtonCss = styled.css(templateObject_1$
|
|
818
|
+
var internalButtonCss = styled.css(templateObject_1$1P || (templateObject_1$1P = 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
819
|
var UnstyledInternalButton = function (props) {
|
|
815
820
|
var onClick = props.onClick, onHovered = props.onHovered, _a = props.element, Component = _a === void 0 ? "button" : _a, rest = tslib.__rest(props, ["onClick", "onHovered", "element"]);
|
|
816
821
|
var hoverStart = React.useRef(Date.now());
|
|
@@ -845,7 +850,7 @@ var UnstyledInternalButton = function (props) {
|
|
|
845
850
|
* NB. We must export a styled component for it to be inheritable
|
|
846
851
|
*/
|
|
847
852
|
var InternalButton = styled__default.default(UnstyledInternalButton)(templateObject_2$R || (templateObject_2$R = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), internalButtonCss);
|
|
848
|
-
var templateObject_1$
|
|
853
|
+
var templateObject_1$1P, templateObject_2$R;
|
|
849
854
|
|
|
850
855
|
// the values of the icons object are the paths to the versioned images in the Cloudinary
|
|
851
856
|
var icons = {
|
|
@@ -1128,13 +1133,13 @@ function parseColorFilter(value) {
|
|
|
1128
1133
|
}
|
|
1129
1134
|
}
|
|
1130
1135
|
|
|
1131
|
-
var colorFilterStyle = styled.css(templateObject_1$
|
|
1132
|
-
var templateObject_1$
|
|
1136
|
+
var colorFilterStyle = styled.css(templateObject_1$1O || (templateObject_1$1O = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("filter", function (props) { return props.$colorFilter; }, function (value) { return parseColorFilter(value); }));
|
|
1137
|
+
var templateObject_1$1O;
|
|
1133
1138
|
|
|
1134
1139
|
var oakPlaceholder = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA2NCA2NCI+PHBhdGggZmlsbD0iIzIyMiIgZD0iTTI4Ljc3OSAxOS4xNzZhMjcuMTkxIDI3LjE5MSAwIDAgMC0zLjggMS42IDE2LjcgMTYuNyAwIDAgMC03LjEgOC40YzAgLjEtLjEuMi0uMS4zLS43IDIuNC0uNiAyIDEuMyAyLjMgMS45LjMgMSAuNSAxIDEuMy0uMSA4LjggNC4xIDE1LjEgMTEuNCAxOS42YTEuNSAxLjUgMCAwIDAgMS43LjJjNS43LTIuNiA5LjMtNyAxMC4zLTEzLjJhMSAxIDAgMCAxIDEtMWwzLS4yYy44IDAgMS4zLjIgMS4yIDEuMmExNy45IDE3LjkgMCAwIDEtMy4yIDkuMiAyMy43IDIzLjcgMCAwIDEtMTAuOSA5LjEgNS40MDEgNS40MDEgMCAwIDEtNC41LS4yIDI2LjI5OCAyNi4yOTggMCAwIDEtOC41LTYuNiAyNS45IDI1LjkgMCAwIDEtNi40LTE0LjRjMC0uNi0uMi0uNy0uOC0uOC0yLjUtLjQtMi41LS4xLTIuMy0yLjlhMTkuMyAxOS4zIDAgMCAxIDEwLjgtMTYuNiAzOC45OTkgMzguOTk5IDAgMCAxIDUuNy0yLjEgMi4xIDIuMSAwIDAgMCAuOS0xLjMgMTQuMSAxNC4xIDAgMCAxIDMuNS02LjNsLjMtLjNjMS45LTIgMi42LTIgNC4zLjJsLjQuNWMxLjEgMS4xIDEgMS41LS4xIDIuNmExMS45IDExLjkgMCAwIDAtMy4yIDQuNCAxNi45IDE2LjkgMCAwIDEgNy41IDIuM2M1LjcgMy41IDkuMiA4LjMgOS45IDE1IC4wMTYuOTAxLS4wMTcgMS44MDItLjEgMi43IDAgLjgtLjYgMS0xLjIgMS4yYTE2LjEgMTYuMSAwIDAgMS0xMS0uNyAxNy45MDEgMTcuOTAxIDAgMCAxLTEwLjktMTMuNiA5Ljc5NiA5Ljc5NiAwIDAgMS0uMS0xLjlabTE4LjEgMTIuMmMuNC01LjUtNi45LTEyLjYtMTMtMTIuMS41IDYuNSA3LjYgMTIuOCAxMyAxMi4xWiIgb3BhY2l0eT0iLjEiLz48L3N2Zz4=";
|
|
1135
1140
|
var clickStyles = styled.css(templateObject_2$Q || (templateObject_2$Q = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
1136
1141
|
/* onClick might be passed in the useClickableCard pattern */
|
|
1137
|
-
return props.onClick && styled.css(templateObject_1$
|
|
1142
|
+
return props.onClick && styled.css(templateObject_1$1N || (templateObject_1$1N = tslib.__makeTemplateObject(["\n &:hover {\n cursor: pointer;\n }\n "], ["\n &:hover {\n cursor: pointer;\n }\n "])));
|
|
1138
1143
|
});
|
|
1139
1144
|
var placeholderStyles = styled.css(templateObject_4$l || (templateObject_4$l = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
1140
1145
|
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"));
|
|
@@ -1169,7 +1174,7 @@ var OakImage = function (_a) {
|
|
|
1169
1174
|
return (React__default.default.createElement(OakBox, tslib.__assign({ as: "span", "$display": "block", "$maxWidth": "spacing-0", "$position": $position }, rest),
|
|
1170
1175
|
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
1176
|
};
|
|
1172
|
-
var templateObject_1$
|
|
1177
|
+
var templateObject_1$1N, templateObject_2$Q, templateObject_3$z, templateObject_4$l, templateObject_5$e, templateObject_6$b, templateObject_7$5;
|
|
1173
1178
|
|
|
1174
1179
|
/**
|
|
1175
1180
|
* A wrapper around OakImage which uses the image-map.json file to map icon names to image paths.
|
|
@@ -1181,7 +1186,7 @@ var OakIcon = function (props) {
|
|
|
1181
1186
|
unoptimized: true }, rest)));
|
|
1182
1187
|
};
|
|
1183
1188
|
|
|
1184
|
-
var screenReaderStyle = styled.css(templateObject_1$
|
|
1189
|
+
var screenReaderStyle = styled.css(templateObject_1$1M || (templateObject_1$1M = 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
1190
|
/**
|
|
1186
1191
|
* This component will visually hide its contents but will still be available
|
|
1187
1192
|
* to screen readers, assitive technology, and scrapers.
|
|
@@ -1190,11 +1195,11 @@ var screenReaderStyle = styled.css(templateObject_1$1K || (templateObject_1$1K =
|
|
|
1190
1195
|
* be accessible to assistive technology.
|
|
1191
1196
|
*/
|
|
1192
1197
|
var OakScreenReader = styled__default.default.span(templateObject_2$P || (templateObject_2$P = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), screenReaderStyle);
|
|
1193
|
-
var templateObject_1$
|
|
1198
|
+
var templateObject_1$1M, templateObject_2$P;
|
|
1194
1199
|
|
|
1195
|
-
var SpinnerKeyframe = styled.keyframes(templateObject_1$
|
|
1200
|
+
var SpinnerKeyframe = styled.keyframes(templateObject_1$1L || (templateObject_1$1L = 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
1201
|
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
|
-
var StyledLoadingSpinner = styled__default.default.span(
|
|
1202
|
+
var StyledLoadingSpinner = styled__default.default.span(templateObject_5$d || (templateObject_5$d = tslib.__makeTemplateObject(["\n ", "\n ", "\n --inner-width: calc(var(--width) / 10 * 8);\n --thickness: calc(var(--width) / 12);\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--width);\n height: var(--width);\n ", "\n"], ["\n ", "\n ", "\n --inner-width: calc(var(--width) / 10 * 8);\n --thickness: calc(var(--width) / 12);\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--width);\n height: var(--width);\n ", "\n"])), function (props) {
|
|
1198
1203
|
return props.$width
|
|
1199
1204
|
? responsiveStyle("--width", function (props) { return props.$width; }, parseSpacing)
|
|
1200
1205
|
: styled.css(templateObject_3$y || (templateObject_3$y = tslib.__makeTemplateObject(["\n --width: 1.25rem;\n "], ["\n --width: 1.25rem;\n "])));
|
|
@@ -1203,20 +1208,26 @@ var StyledLoadingSpinner = styled__default.default.span(templateObject_7$4 || (t
|
|
|
1203
1208
|
if ($delay) {
|
|
1204
1209
|
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
1210
|
}
|
|
1206
|
-
},
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1211
|
+
}, colorStyle);
|
|
1212
|
+
var StyledSpinnerRing = styled__default.default.div(templateObject_8 || (templateObject_8 = tslib.__makeTemplateObject(["\n width: var(--inner-width);\n height: var(--inner-width);\n border-radius: 50%;\n border: var(--thickness) solid;\n ", "\n animation: ", " 1.2s linear infinite;\n"], ["\n width: var(--inner-width);\n height: var(--inner-width);\n border-radius: 50%;\n border: var(--thickness) solid;\n ", "\n animation: ", " 1.2s linear infinite;\n"])), function (props) {
|
|
1213
|
+
if (props.$loaderColor) {
|
|
1214
|
+
var colorVal = parseColor(props.$loaderColor);
|
|
1215
|
+
var resolvedColor = typeof colorVal === "function" ? colorVal(props) : colorVal;
|
|
1216
|
+
return styled.css(templateObject_6$a || (templateObject_6$a = tslib.__makeTemplateObject(["\n border-color: ", " ", " ", "\n transparent;\n "], ["\n border-color: ", " ", " ", "\n transparent;\n "])), resolvedColor, resolvedColor, resolvedColor);
|
|
1217
|
+
}
|
|
1218
|
+
return styled.css(templateObject_7$4 || (templateObject_7$4 = tslib.__makeTemplateObject(["\n border-color: currentcolor currentcolor currentcolor transparent;\n "], ["\n border-color: currentcolor currentcolor currentcolor transparent;\n "])));
|
|
1219
|
+
}, SpinnerKeyframe);
|
|
1210
1220
|
/**
|
|
1211
1221
|
*
|
|
1212
1222
|
* A loading spinner of variable size.
|
|
1213
1223
|
*
|
|
1214
1224
|
*/
|
|
1215
1225
|
var OakLoadingSpinner = function (props) { return (React__default.default.createElement(StyledLoadingSpinner, tslib.__assign({}, props),
|
|
1216
|
-
React__default.default.createElement(OakScreenReader, null, "Loading")
|
|
1217
|
-
|
|
1226
|
+
React__default.default.createElement(OakScreenReader, null, "Loading"),
|
|
1227
|
+
React__default.default.createElement(StyledSpinnerRing, { "$loaderColor": props.loaderColor }))); };
|
|
1228
|
+
var templateObject_1$1L, templateObject_2$O, templateObject_3$y, templateObject_4$k, templateObject_5$d, templateObject_6$a, templateObject_7$4, templateObject_8;
|
|
1218
1229
|
|
|
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$
|
|
1230
|
+
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$1K || (templateObject_1$1K = 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
1231
|
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
1232
|
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
1233
|
/**
|
|
@@ -1254,7 +1265,7 @@ var TextWithUnderline$1 = function (_a) {
|
|
|
1254
1265
|
React__default.default.createElement(OakSpan, { "$font": font }, children),
|
|
1255
1266
|
React__default.default.createElement(StyledOakSvg$1, { name: "underline", "data-state": "selected", "data-testid": "selected-underline" })));
|
|
1256
1267
|
};
|
|
1257
|
-
var templateObject_1$
|
|
1268
|
+
var templateObject_1$1K, templateObject_2$N, templateObject_3$x, templateObject_4$j;
|
|
1258
1269
|
|
|
1259
1270
|
/**
|
|
1260
1271
|
*
|
|
@@ -1391,10 +1402,10 @@ var useDropdownContext = function () {
|
|
|
1391
1402
|
return dropdownValue;
|
|
1392
1403
|
};
|
|
1393
1404
|
|
|
1394
|
-
var StyledInternalButton$4 = styled__default.default(InternalButton)(templateObject_2$M || (templateObject_2$M = tslib.__makeTemplateObject(["\n display: inline-block;\n ", "\n ", "\n
|
|
1405
|
+
var StyledInternalButton$4 = styled__default.default(InternalButton)(templateObject_2$M || (templateObject_2$M = tslib.__makeTemplateObject(["\n display: inline-block;\n ", "\n ", "\n"], ["\n display: inline-block;\n ", "\n ", "\n"])), positionStyle, function (props) { return styled.css(templateObject_1$1J || (templateObject_1$1J = 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
1406
|
? parseColorFilter(props.$hoverIconColor)
|
|
1396
1407
|
: undefined, parseColor(props.$defaultTextColor), parseColor(props.$disabledTextColor)); });
|
|
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-
|
|
1408
|
+
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-of-type:focus-visible .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n > :first-of-type:hover .shadow {\n box-shadow: ", ";\n }\n > :first-of-type:active .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n "], ["\n > :first-of-type:focus-visible .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n > :first-of-type:hover .shadow {\n box-shadow: ", ";\n }\n > :first-of-type: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-of-type:disabled .icon-container {\n background: ", ";\n }\n > :first-of-type:hover .icon-container {\n background: ", ";\n }\n > :first-of-type:active .icon-container {\n background: ", ";\n }\n "], ["\n > :first-of-type:disabled .icon-container {\n background: ", ";\n }\n > :first-of-type:hover .icon-container {\n background: ", ";\n }\n > :first-of-type:active .icon-container {\n background: ", ";\n }\n "])), parseColor(props.$disabledIconBackground), parseColor(props.$hoverIconBackground), parseColor(props.$defaultIconBackground)); });
|
|
1398
1409
|
/**
|
|
1399
1410
|
*
|
|
1400
1411
|
* A styled button with round icons, not intended to be used directly.
|
|
@@ -1429,7 +1440,7 @@ var InternalShadowRoundButton = function (props) {
|
|
|
1429
1440
|
React__default.default.createElement(OakSpan, { "$font": "heading-7" }, children),
|
|
1430
1441
|
isTrailingIcon && iconLogic))));
|
|
1431
1442
|
};
|
|
1432
|
-
var templateObject_1$
|
|
1443
|
+
var templateObject_1$1J, templateObject_2$M, templateObject_3$w, templateObject_4$i, templateObject_5$c;
|
|
1433
1444
|
|
|
1434
1445
|
/**
|
|
1435
1446
|
*
|
|
@@ -1592,10 +1603,10 @@ var OakSmallSecondaryToggleButton = function (_a) {
|
|
|
1592
1603
|
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
1604
|
};
|
|
1594
1605
|
|
|
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$
|
|
1606
|
+
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$1I || (templateObject_1$1I = 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
1607
|
? parseColorFilter(props.$hoverIconColor)
|
|
1597
1608
|
: undefined, parseColor(props.$defaultTextColor), parseColor(props.$disabledTextColor)); });
|
|
1598
|
-
var StyledButtonWrapper$1 = styled__default.default(OakFlex)(templateObject_3$v || (templateObject_3$v = tslib.__makeTemplateObject(["\n > :first-
|
|
1609
|
+
var StyledButtonWrapper$1 = styled__default.default(OakFlex)(templateObject_3$v || (templateObject_3$v = tslib.__makeTemplateObject(["\n > :first-of-type:hover .highlight {\n display: block;\n }\n > :first-of-type:active .highlight {\n display: block;\n }\n > :first-of-type:active .shadow {\n display: block;\n }\n > :first-of-type:focus-visible {\n box-shadow:\n ", ",\n ", ";\n background: white;\n }\n"], ["\n > :first-of-type:hover .highlight {\n display: block;\n }\n > :first-of-type:active .highlight {\n display: block;\n }\n > :first-of-type:active .shadow {\n display: block;\n }\n > :first-of-type:focus-visible {\n box-shadow:\n ", ",\n ", ";\n background: white;\n }\n"])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"));
|
|
1599
1610
|
/**
|
|
1600
1611
|
*
|
|
1601
1612
|
* A styled button with round icons, not intended to be used directly.
|
|
@@ -1630,7 +1641,7 @@ var InternalShadowIconButton = function (props) {
|
|
|
1630
1641
|
React__default.default.createElement(OakSpan, { "$font": "heading-light-7" }, children),
|
|
1631
1642
|
isTrailingIcon && iconLogic))));
|
|
1632
1643
|
};
|
|
1633
|
-
var templateObject_1$
|
|
1644
|
+
var templateObject_1$1I, templateObject_2$L, templateObject_3$v;
|
|
1634
1645
|
|
|
1635
1646
|
/**
|
|
1636
1647
|
*
|
|
@@ -1668,7 +1679,7 @@ var OakTertiaryInvertedButton = function (_a) {
|
|
|
1668
1679
|
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
1680
|
};
|
|
1670
1681
|
|
|
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$
|
|
1682
|
+
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$1H || (templateObject_1$1H = 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
1683
|
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
1684
|
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
1685
|
/**
|
|
@@ -1707,7 +1718,7 @@ var TextWithUnderline = function (_a) {
|
|
|
1707
1718
|
React__default.default.createElement(OakSpan, { "$font": "body-3-bold" }, children),
|
|
1708
1719
|
React__default.default.createElement(StyledOakSvg, { name: "underline", "data-state": "selected", "data-testid": "selected-underline" })));
|
|
1709
1720
|
};
|
|
1710
|
-
var templateObject_1$
|
|
1721
|
+
var templateObject_1$1H, templateObject_2$K, templateObject_3$u, templateObject_4$h;
|
|
1711
1722
|
|
|
1712
1723
|
var oakHeadingTagsConst = [
|
|
1713
1724
|
"div",
|
|
@@ -1730,11 +1741,11 @@ var HeadingTagComponent = function (props) {
|
|
|
1730
1741
|
* Use the controls to view different font styles.
|
|
1731
1742
|
*
|
|
1732
1743
|
*/
|
|
1733
|
-
var OakHeading = styled__default.default(HeadingTagComponent)(templateObject_1$
|
|
1734
|
-
var templateObject_1$
|
|
1744
|
+
var OakHeading = styled__default.default(HeadingTagComponent)(templateObject_1$1G || (templateObject_1$1G = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n"])), typographyStyle, marginStyle, colorStyle, opacityStyle);
|
|
1745
|
+
var templateObject_1$1G;
|
|
1735
1746
|
|
|
1736
|
-
var listStyle = styled.css(templateObject_1$
|
|
1737
|
-
var templateObject_1$
|
|
1747
|
+
var listStyle = styled.css(templateObject_1$1F || (templateObject_1$1F = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("list-style", function (props) { return props.$listStyle; }));
|
|
1748
|
+
var templateObject_1$1F;
|
|
1738
1749
|
|
|
1739
1750
|
/**
|
|
1740
1751
|
* Styled `li` (list item) component.
|
|
@@ -1747,8 +1758,8 @@ var templateObject_1$1D;
|
|
|
1747
1758
|
var oakLIDefaults = {
|
|
1748
1759
|
$display: "revert",
|
|
1749
1760
|
};
|
|
1750
|
-
var OakLI = styled__default.default.li.attrs(function (props) { return (tslib.__assign(tslib.__assign({}, oakLIDefaults), props)); })(templateObject_1$
|
|
1751
|
-
var templateObject_1$
|
|
1761
|
+
var OakLI = styled__default.default.li.attrs(function (props) { return (tslib.__assign(tslib.__assign({}, oakLIDefaults), props)); })(templateObject_1$1E || (templateObject_1$1E = 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);
|
|
1762
|
+
var templateObject_1$1E;
|
|
1752
1763
|
|
|
1753
1764
|
/**
|
|
1754
1765
|
* Styled `ol` (ordered list) component.
|
|
@@ -1758,12 +1769,12 @@ var templateObject_1$1C;
|
|
|
1758
1769
|
* Use where we have an ordered list to ensure numbers are styled
|
|
1759
1770
|
*
|
|
1760
1771
|
* */
|
|
1761
|
-
var OakOL = styled__default.default.ol(templateObject_1$
|
|
1772
|
+
var OakOL = styled__default.default.ol(templateObject_1$1D || (templateObject_1$1D = 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
1773
|
return props.theme &&
|
|
1763
1774
|
props.theme.uiColors &&
|
|
1764
1775
|
props.theme.uiColors["text-link-active"];
|
|
1765
1776
|
}, marginStyle, colorStyle, typographyStyle);
|
|
1766
|
-
var templateObject_1$
|
|
1777
|
+
var templateObject_1$1D;
|
|
1767
1778
|
|
|
1768
1779
|
/**
|
|
1769
1780
|
* Styled `p` (paragraph) component.
|
|
@@ -1772,8 +1783,8 @@ var templateObject_1$1B;
|
|
|
1772
1783
|
* However, if you want different styles for a particular paragraph,
|
|
1773
1784
|
* you can use this component to apply additional styles.
|
|
1774
1785
|
*/
|
|
1775
|
-
var OakP = styled__default.default.p(templateObject_1$
|
|
1776
|
-
var templateObject_1$
|
|
1786
|
+
var OakP = styled__default.default.p(templateObject_1$1C || (templateObject_1$1C = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n"])), typographyStyle, colorStyle, marginStyle);
|
|
1787
|
+
var templateObject_1$1C;
|
|
1777
1788
|
|
|
1778
1789
|
/**
|
|
1779
1790
|
* The Typography component sets a typography style context from which children
|
|
@@ -1782,8 +1793,8 @@ var templateObject_1$1A;
|
|
|
1782
1793
|
* This should be the primary component to set a typography context.
|
|
1783
1794
|
* Use this component whenever you want to style blocks of 'body' text.
|
|
1784
1795
|
*/
|
|
1785
|
-
var OakTypography = styled__default.default(OakBox)(templateObject_1$
|
|
1786
|
-
var templateObject_1$
|
|
1796
|
+
var OakTypography = styled__default.default(OakBox)(templateObject_1$1B || (templateObject_1$1B = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typographyStyle);
|
|
1797
|
+
var templateObject_1$1B;
|
|
1787
1798
|
|
|
1788
1799
|
/**
|
|
1789
1800
|
* Styled `ul` (unordered list) component.
|
|
@@ -1794,9 +1805,9 @@ var templateObject_1$1z;
|
|
|
1794
1805
|
*
|
|
1795
1806
|
* */
|
|
1796
1807
|
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$
|
|
1808
|
+
return props.$reset && styled.css(templateObject_1$1A || (templateObject_1$1A = tslib.__makeTemplateObject(["\n list-style: none;\n padding: 0;\n "], ["\n list-style: none;\n padding: 0;\n "])));
|
|
1798
1809
|
}, oakBoxCss, function (props) { return props.$display && oakFlexCss; });
|
|
1799
|
-
var templateObject_1$
|
|
1810
|
+
var templateObject_1$1A, templateObject_2$J;
|
|
1800
1811
|
|
|
1801
1812
|
var variantConfig = {
|
|
1802
1813
|
primary: {
|
|
@@ -1815,7 +1826,7 @@ var variantConfig = {
|
|
|
1815
1826
|
},
|
|
1816
1827
|
};
|
|
1817
1828
|
|
|
1818
|
-
var StyledOakIcon$3 = styled__default.default(OakIcon)(templateObject_1$
|
|
1829
|
+
var StyledOakIcon$3 = styled__default.default(OakIcon)(templateObject_1$1z || (templateObject_1$1z = 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
1830
|
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
1831
|
var StyledLink$1 = styled__default.default.a(templateObject_3$t || (templateObject_3$t = tslib.__makeTemplateObject(["\n display: inline;\n text-align: left;\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 text-align: left;\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
1832
|
/**
|
|
@@ -1852,18 +1863,20 @@ var InternalLink = React.forwardRef(function (props, ref) {
|
|
|
1852
1863
|
React__default.default.createElement(OakSpan, null, children),
|
|
1853
1864
|
isTrailingIcon && icon));
|
|
1854
1865
|
});
|
|
1855
|
-
var templateObject_1$
|
|
1866
|
+
var templateObject_1$1z, templateObject_2$I, templateObject_3$t;
|
|
1856
1867
|
|
|
1868
|
+
var StyledInternalLink$1 = styled__default.default(InternalLink)(templateObject_1$1y || (templateObject_1$1y = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) { return props.$font && typographyStyle; });
|
|
1857
1869
|
/**
|
|
1858
1870
|
* A link with an optional icon and loading state.
|
|
1859
1871
|
*
|
|
1860
1872
|
* Defaulting to a `HTMLAnchorElement` this component is polymorphic and can be rendered as a button or any other element.
|
|
1861
1873
|
*/
|
|
1862
1874
|
var OakLink = React.forwardRef(function (props, ref) {
|
|
1863
|
-
var _a = props.variant, variant = _a === void 0 ? "primary" : _a;
|
|
1875
|
+
var _a = props.variant, variant = _a === void 0 ? "primary" : _a, restProps = tslib.__rest(props, ["variant"]);
|
|
1864
1876
|
var variantDefinition = variantConfig[variant];
|
|
1865
|
-
return (React__default.default.createElement(
|
|
1877
|
+
return (React__default.default.createElement(StyledInternalLink$1, tslib.__assign({ color: variantDefinition.color, hoverColor: variantDefinition.hoverColor, activeColor: variantDefinition.activeColor, visitedColor: variantDefinition.visitedColor, textDecoration: variantDefinition.textDecoration, disabledColor: "text-disabled" }, restProps, { ref: ref })));
|
|
1866
1878
|
});
|
|
1879
|
+
var templateObject_1$1y;
|
|
1867
1880
|
|
|
1868
1881
|
/**
|
|
1869
1882
|
* A banner presenting the user with options to accept or reject cookies.
|
|
@@ -1940,7 +1953,7 @@ var useAccordionContext = function () {
|
|
|
1940
1953
|
return accordionValue;
|
|
1941
1954
|
};
|
|
1942
1955
|
|
|
1943
|
-
var FlexWithReset = styled__default.default(OakFlex)(templateObject_1$
|
|
1956
|
+
var FlexWithReset = styled__default.default(OakFlex)(templateObject_1$1x || (templateObject_1$1x = 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
1957
|
/**
|
|
1945
1958
|
*
|
|
1946
1959
|
* Content which will appear and disappear
|
|
@@ -1966,9 +1979,9 @@ var AccordionButton = function (props) {
|
|
|
1966
1979
|
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
1980
|
};
|
|
1968
1981
|
var InternalAccordionButton = styled__default.default(AccordionButton)(templateObject_2$H || (templateObject_2$H = tslib.__makeTemplateObject([""], [""])));
|
|
1969
|
-
var templateObject_1$
|
|
1982
|
+
var templateObject_1$1x, templateObject_2$H;
|
|
1970
1983
|
|
|
1971
|
-
var StyledOakFlex$5 = styled__default.default(InternalAccordionButton)(templateObject_1$
|
|
1984
|
+
var StyledOakFlex$5 = styled__default.default(InternalAccordionButton)(templateObject_1$1w || (templateObject_1$1w = 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
1985
|
var Accordion$4 = function (_a) {
|
|
1973
1986
|
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
1987
|
var isOpen = useAccordionContext().isOpen;
|
|
@@ -1993,7 +2006,7 @@ var OakAccordion = function (props) {
|
|
|
1993
2006
|
return (React__default.default.createElement(InternalAccordionProvider, { isInitialOpen: initialOpen },
|
|
1994
2007
|
React__default.default.createElement(Accordion$4, tslib.__assign({}, rest))));
|
|
1995
2008
|
};
|
|
1996
|
-
var templateObject_1$
|
|
2009
|
+
var templateObject_1$1w;
|
|
1997
2010
|
|
|
1998
2011
|
var BaseCheckBox = React.forwardRef(function (props, ref) {
|
|
1999
2012
|
var onHovered = props.onHovered, rest = tslib.__rest(props, ["onHovered"]);
|
|
@@ -2052,7 +2065,7 @@ var internalCheckBoxDefaults = {
|
|
|
2052
2065
|
var InternalCheckBox = styled__default.default(BaseCheckBox).attrs(function (_a) {
|
|
2053
2066
|
_a.theme; var props = tslib.__rest(_a, ["theme"]);
|
|
2054
2067
|
return (tslib.__assign(tslib.__assign({}, internalCheckBoxDefaults), props));
|
|
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$
|
|
2068
|
+
})(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$1v || (templateObject_1$1v = 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
2069
|
var internalCheckBoxHoverDefaults = {
|
|
2057
2070
|
$hoverBorderRadius: "border-radius-xs",
|
|
2058
2071
|
};
|
|
@@ -2063,7 +2076,7 @@ var InternalCheckBoxHover = styled__default.default(InternalCheckBox).attrs(func
|
|
|
2063
2076
|
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
2077
|
styled__default.default(InternalCheckBox)(templateObject_5$b || (templateObject_5$b = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), focusStyle$1);
|
|
2065
2078
|
var InternalCheckBoxHoverFocus = styled__default.default(InternalCheckBoxHover)(templateObject_6$9 || (templateObject_6$9 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), focusStyle$1);
|
|
2066
|
-
var templateObject_1$
|
|
2079
|
+
var templateObject_1$1v, templateObject_2$G, templateObject_3$s, templateObject_4$g, templateObject_5$b, templateObject_6$9;
|
|
2067
2080
|
|
|
2068
2081
|
/**
|
|
2069
2082
|
* Label renders a `label` element, exposing all the typography props.
|
|
@@ -2071,19 +2084,19 @@ var templateObject_1$1u, templateObject_2$G, templateObject_3$s, templateObject_
|
|
|
2071
2084
|
* Use this component when you want to apply styles to a label, likely within
|
|
2072
2085
|
* a form.
|
|
2073
2086
|
*/
|
|
2074
|
-
var OakLabel = styled__default.default.label(templateObject_1$
|
|
2075
|
-
var templateObject_1$
|
|
2087
|
+
var OakLabel = styled__default.default.label(templateObject_1$1u || (templateObject_1$1u = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), typographyStyle, colorStyle);
|
|
2088
|
+
var templateObject_1$1u;
|
|
2076
2089
|
|
|
2077
2090
|
/**
|
|
2078
2091
|
*
|
|
2079
2092
|
* Specialised Label Component can be used and extended to create various different versions of CheckboxLabels
|
|
2080
2093
|
*
|
|
2081
2094
|
*/
|
|
2082
|
-
var InternalCheckBoxLabel = styled__default.default(OakLabel)(templateObject_1$
|
|
2095
|
+
var InternalCheckBoxLabel = styled__default.default(OakLabel)(templateObject_1$1t || (templateObject_1$1t = 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
2096
|
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$
|
|
2097
|
+
var templateObject_1$1t, templateObject_2$F;
|
|
2085
2098
|
|
|
2086
|
-
var StyledIconContainer = styled__default.default(OakBox)(templateObject_1$
|
|
2099
|
+
var StyledIconContainer = styled__default.default(OakBox)(templateObject_1$1s || (templateObject_1$1s = 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
2100
|
/**
|
|
2088
2101
|
*
|
|
2089
2102
|
* This component is a wrapper for the InternalCheckBox component. It allows for customisable icons.
|
|
@@ -2098,7 +2111,7 @@ var InternalCheckBoxWrapper = function (props) {
|
|
|
2098
2111
|
internalCheckbox,
|
|
2099
2112
|
React__default.default.createElement(StyledIconContainer, { "$position": "absolute", "$top": "spacing-0", "$left": "spacing-0", "$pa": iconPadding, "$width": size, "$height": size }, checkedIcon)));
|
|
2100
2113
|
};
|
|
2101
|
-
var templateObject_1$
|
|
2114
|
+
var templateObject_1$1s;
|
|
2102
2115
|
|
|
2103
2116
|
/**
|
|
2104
2117
|
*
|
|
@@ -2141,7 +2154,7 @@ var OakCheckBox = function (props) {
|
|
|
2141
2154
|
/**
|
|
2142
2155
|
* The outer border color of the checkbox when checked.
|
|
2143
2156
|
*/
|
|
2144
|
-
checkedBorderColor = _k === void 0 ? "border-primary" : _k, _l = props.disabledColor, disabledColor = _l === void 0 ? "text-disabled" : _l, _m = props
|
|
2157
|
+
checkedBorderColor = _k === void 0 ? "border-primary" : _k, _l = props.disabledColor, disabledColor = _l === void 0 ? "text-disabled" : _l, _m = props.$labelGap, $labelGap = _m === void 0 ? "spacing-16" : _m, _o = props.$labelAlignItems, $labelAlignItems = _o === void 0 ? "center" : _o, _p = props.checkedBackgroundFill, checkedBackgroundFill = _p === void 0 ? true : _p, checkedIcon = props.checkedIcon, dataTestId = props["data-testid"], rest = tslib.__rest(props, ["id", "value", "displayValue", "disabled", "defaultChecked", "checked", "onChange", "onFocus", "onBlur", "onHovered", "iconPadding", "hoverBorderRadius", "checkboxSize", "checkboxBorder", "checkboxBorderRadius", "defaultColor", "uncheckedBorderColor", "checkedBorderColor", "disabledColor", "$labelGap", "$labelAlignItems", "checkedBackgroundFill", "checkedIcon", "data-testid"]);
|
|
2145
2158
|
var hoverStart = React.useRef(Date.now());
|
|
2146
2159
|
var handleMouseEnter = function () {
|
|
2147
2160
|
hoverStart.current = Date.now();
|
|
@@ -2159,7 +2172,7 @@ var OakCheckBox = function (props) {
|
|
|
2159
2172
|
var currentCheckedBorderColor = disabled
|
|
2160
2173
|
? disabledColor
|
|
2161
2174
|
: checkedBorderColor;
|
|
2162
|
-
return (React__default.default.createElement(InternalCheckBoxLabel, { htmlFor: id, labelGap: labelGap, labelAlignItems: labelAlignItems, "$color": currentColor, disabled: disabled, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave },
|
|
2175
|
+
return (React__default.default.createElement(InternalCheckBoxLabel, { htmlFor: id, "$labelGap": $labelGap, "$labelAlignItems": $labelAlignItems, "$color": currentColor, disabled: disabled, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave },
|
|
2163
2176
|
React__default.default.createElement(InternalCheckBoxWrapper, { size: checkboxSize, internalCheckbox: React__default.default.createElement(InternalCheckBoxHoverFocus, tslib.__assign({ id: id, value: value, "$width": checkboxSize, "$height": checkboxSize, "$ba": checkboxBorder, "$borderRadius": checkboxBorderRadius, "$borderColor": defaultColor, "$checkedBackground": checkedBackgroundFill ? currentCheckedBackgroundFill : null, "$checkedBorderColor": currentCheckedBorderColor, "$uncheckedBorderColor": uncheckedBorderColor, "$hoverBorderRadius": hoverBorderRadius, onChange: onChange, onFocus: onFocus, onBlur: onBlur, defaultChecked: defaultChecked, checked: checked, disabled: disabled, "data-testid": dataTestId }, rest)), checkedIcon: checkedIcon, iconPadding: iconPadding }),
|
|
2164
2177
|
displayValue));
|
|
2165
2178
|
};
|
|
@@ -2198,30 +2211,30 @@ var useMounted = function () {
|
|
|
2198
2211
|
return isMounted;
|
|
2199
2212
|
};
|
|
2200
2213
|
|
|
2201
|
-
var SlideInFlex = styled__default.default(OakFlex)(templateObject_1$
|
|
2202
|
-
var isLeftHandSide = _a
|
|
2203
|
-
return isLeftHandSide ? "calc(100vw - ".concat(parseSpacing("spacing-20"), ")") : "100vw";
|
|
2214
|
+
var SlideInFlex = styled__default.default(OakFlex)(templateObject_1$1r || (templateObject_1$1r = tslib.__makeTemplateObject(["\n max-width: ", ";\n transform: ", ";\n ", "\n"], ["\n max-width: ", ";\n transform: ", ";\n ", "\n"])), function (_a) {
|
|
2215
|
+
var $isLeftHandSide = _a.$isLeftHandSide;
|
|
2216
|
+
return $isLeftHandSide ? "calc(100vw - ".concat(parseSpacing("spacing-20"), ")") : "100vw";
|
|
2204
2217
|
}, function (_a) {
|
|
2205
|
-
var $state = _a.$state, isLeftHandSide = _a
|
|
2218
|
+
var $state = _a.$state, $isLeftHandSide = _a.$isLeftHandSide;
|
|
2206
2219
|
switch ($state) {
|
|
2207
2220
|
case "entered":
|
|
2208
2221
|
case "entering":
|
|
2209
2222
|
return "translateX(0)";
|
|
2210
2223
|
default:
|
|
2211
|
-
return isLeftHandSide ? "translateX(-100%)" : "translateX(100%)";
|
|
2224
|
+
return $isLeftHandSide ? "translateX(-100%)" : "translateX(100%)";
|
|
2212
2225
|
}
|
|
2213
2226
|
}, function (_a) {
|
|
2214
|
-
var isLeftHandSide = _a
|
|
2215
|
-
return
|
|
2216
|
-
"\n @media (min-width: 768px) {\n max-width: ".concat(largeScreenMaxWidth, "px;\n }\n ");
|
|
2227
|
+
var $isLeftHandSide = _a.$isLeftHandSide, $largeScreenMaxWidth = _a.$largeScreenMaxWidth;
|
|
2228
|
+
return !$isLeftHandSide &&
|
|
2229
|
+
"\n @media (min-width: 768px) {\n max-width: ".concat($largeScreenMaxWidth, "px;\n }\n ");
|
|
2217
2230
|
});
|
|
2218
2231
|
var InternalSlideInFlex = React.forwardRef(function (props, ref) {
|
|
2219
2232
|
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
|
-
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));
|
|
2233
|
+
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
2234
|
});
|
|
2222
|
-
var templateObject_1$
|
|
2235
|
+
var templateObject_1$1r;
|
|
2223
2236
|
|
|
2224
|
-
var FadeOutBox = styled__default.default(OakBox)(templateObject_1$
|
|
2237
|
+
var FadeOutBox = styled__default.default(OakBox)(templateObject_1$1q || (templateObject_1$1q = 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
2238
|
var $state = _a.$state;
|
|
2226
2239
|
switch ($state) {
|
|
2227
2240
|
case "entered":
|
|
@@ -2232,15 +2245,15 @@ var FadeOutBox = styled__default.default(OakBox)(templateObject_1$1p || (templat
|
|
|
2232
2245
|
}
|
|
2233
2246
|
});
|
|
2234
2247
|
var InternalModalTransition = function (_a) {
|
|
2235
|
-
var children = _a.children, isOpen = _a.isOpen, transitionRef = _a.transitionRef, onClose = _a.onClose, finalZIndex = _a.finalZIndex,
|
|
2248
|
+
var children = _a.children, isOpen = _a.isOpen, transitionRef = _a.transitionRef, onClose = _a.onClose, finalZIndex = _a.finalZIndex, _b = _a.isLeftHandSide, isLeftHandSide = _b === void 0 ? false : _b, _c = _a.closeOnBackgroundClick, closeOnBackgroundClick = _c === void 0 ? false : _c, largeScreenMaxWidth = _a.largeScreenMaxWidth, rest = tslib.__rest(_a, ["children", "isOpen", "transitionRef", "onClose", "finalZIndex", "isLeftHandSide", "closeOnBackgroundClick", "largeScreenMaxWidth"]);
|
|
2236
2249
|
return (React__default.default.createElement(reactTransitionGroup.Transition, { in: isOpen, nodeRef: transitionRef, addEndListener: function (done) {
|
|
2237
2250
|
var _a;
|
|
2238
2251
|
(_a = transitionRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener("transitionend", done);
|
|
2239
2252
|
}, timeout: 500, mountOnEnter: true, unmountOnExit: true }, function (state) { return (React__default.default.createElement(reactFocusOn.FocusOn, { onEscapeKey: onClose, returnFocus: true, autoFocus: true, preventScrollOnFocus: true },
|
|
2240
2253
|
React__default.default.createElement(FadeOutBox, { "$zIndex": finalZIndex, "$state": state, onClick: closeOnBackgroundClick ? onClose : undefined }),
|
|
2241
|
-
React__default.default.createElement(InternalSlideInFlex, tslib.__assign({ isLeftHandSide: isLeftHandSide, ref: transitionRef, "$zIndex": finalZIndex,
|
|
2254
|
+
React__default.default.createElement(InternalSlideInFlex, tslib.__assign({ isLeftHandSide: isLeftHandSide, ref: transitionRef, "$zIndex": finalZIndex, state: state, "aria-modal": true, largeScreenMaxWidth: largeScreenMaxWidth }, rest), children))); }));
|
|
2242
2255
|
};
|
|
2243
|
-
var templateObject_1$
|
|
2256
|
+
var templateObject_1$1q;
|
|
2244
2257
|
|
|
2245
2258
|
var OakInformativeModalBorderColor = React.createContext("border-neutral-lighter");
|
|
2246
2259
|
/**
|
|
@@ -2510,8 +2523,8 @@ var OakCookieConsent = function (_a) {
|
|
|
2510
2523
|
* OakFieldset renders a custom `fieldset` component, removes default styling of fieldset.
|
|
2511
2524
|
color, opacity, margin, padding, border and typography styles can be passed in also.
|
|
2512
2525
|
*/
|
|
2513
|
-
var OakFieldset = styled__default.default.fieldset(templateObject_1$
|
|
2514
|
-
var templateObject_1$
|
|
2526
|
+
var OakFieldset = styled__default.default.fieldset(templateObject_1$1p || (templateObject_1$1p = 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);
|
|
2527
|
+
var templateObject_1$1p;
|
|
2515
2528
|
|
|
2516
2529
|
/**
|
|
2517
2530
|
*
|
|
@@ -2521,10 +2534,10 @@ var templateObject_1$1o;
|
|
|
2521
2534
|
* Use `<OakBox as="form">` instead
|
|
2522
2535
|
* @deprecated Use `<OakBox as="form">` instead
|
|
2523
2536
|
*/
|
|
2524
|
-
var OakForm = styled__default.default.form(templateObject_1$
|
|
2525
|
-
var templateObject_1$
|
|
2537
|
+
var OakForm = styled__default.default.form(templateObject_1$1o || (templateObject_1$1o = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), oakBoxCss);
|
|
2538
|
+
var templateObject_1$1o;
|
|
2526
2539
|
|
|
2527
|
-
var textAreaCss = styled.css(templateObject_1$
|
|
2540
|
+
var textAreaCss = styled.css(templateObject_1$1n || (templateObject_1$1n = 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
2541
|
var UnstyledOakTextArea = React.forwardRef(function (props, ref) {
|
|
2529
2542
|
return React__default.default.createElement("textarea", tslib.__assign({ ref: ref }, props));
|
|
2530
2543
|
});
|
|
@@ -2534,7 +2547,7 @@ var UnstyledOakTextArea = React.forwardRef(function (props, ref) {
|
|
|
2534
2547
|
*
|
|
2535
2548
|
*/
|
|
2536
2549
|
var OakTextArea = styled__default.default(UnstyledOakTextArea)(templateObject_2$E || (templateObject_2$E = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), textAreaCss);
|
|
2537
|
-
var templateObject_1$
|
|
2550
|
+
var templateObject_1$1n, templateObject_2$E;
|
|
2538
2551
|
|
|
2539
2552
|
var RadioContext$1 = React.createContext({
|
|
2540
2553
|
currentValue: "default",
|
|
@@ -2599,7 +2612,7 @@ var OakFieldError = function (props) {
|
|
|
2599
2612
|
* E.g. ios and rounded borders (which border-radius doesn't fix without
|
|
2600
2613
|
* appearance: none)
|
|
2601
2614
|
*/
|
|
2602
|
-
var StyledInput = styled__default.default.input(templateObject_1$
|
|
2615
|
+
var StyledInput = styled__default.default.input(templateObject_1$1m || (templateObject_1$1m = 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
2616
|
/**
|
|
2604
2617
|
*
|
|
2605
2618
|
* An unstyled input to be used as a basis for UI input components.
|
|
@@ -2632,10 +2645,10 @@ var InternalTextInput = function (props) {
|
|
|
2632
2645
|
};
|
|
2633
2646
|
return React__default.default.createElement(StyledInput, tslib.__assign({}, rest, { onFocus: handleOnFocus }));
|
|
2634
2647
|
};
|
|
2635
|
-
var templateObject_1$
|
|
2648
|
+
var templateObject_1$1m;
|
|
2636
2649
|
|
|
2637
2650
|
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$
|
|
2651
|
+
return !props.$disabled && styled.css(templateObject_1$1l || (templateObject_1$1l = 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
2652
|
}, function (props) {
|
|
2640
2653
|
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
2654
|
});
|
|
@@ -2650,7 +2663,7 @@ var OakFormInput = function (_a) {
|
|
|
2650
2663
|
} },
|
|
2651
2664
|
React__default.default.createElement(InternalTextInput, tslib.__assign({ type: type, "$width": "100%", "aria-invalid": invalid }, props))));
|
|
2652
2665
|
};
|
|
2653
|
-
var templateObject_1$
|
|
2666
|
+
var templateObject_1$1l, templateObject_2$D, templateObject_3$r;
|
|
2654
2667
|
|
|
2655
2668
|
var OakJauntyAngleLabel = function (props) {
|
|
2656
2669
|
var label = props.label, oakBoxProps = tslib.__rest(props, ["label"]);
|
|
@@ -2675,14 +2688,14 @@ function getInternalPadding(height) {
|
|
|
2675
2688
|
return "".concat(Math.min(padding, MAX_PADDING), "px");
|
|
2676
2689
|
}
|
|
2677
2690
|
|
|
2678
|
-
var gridStyle = styled.css(templateObject_1$
|
|
2691
|
+
var gridStyle = styled.css(templateObject_1$1k || (templateObject_1$1k = tslib.__makeTemplateObject(["\n ", "\n ", "\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; }), responsiveStyle("align-items", function (props) { return props.$alignItems; }));
|
|
2679
2692
|
/**
|
|
2680
2693
|
* Creates a grid layout
|
|
2681
2694
|
*
|
|
2682
2695
|
* Defaults to a 12 column grid
|
|
2683
2696
|
*/
|
|
2684
2697
|
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$
|
|
2698
|
+
var templateObject_1$1k, templateObject_2$C;
|
|
2686
2699
|
|
|
2687
2700
|
var combineSpanStart = function (start, span) {
|
|
2688
2701
|
return start ? "".concat(start, "/").concat(span) : "".concat(span);
|
|
@@ -2695,7 +2708,7 @@ var parseSpanStart = function (value) {
|
|
|
2695
2708
|
var span = value;
|
|
2696
2709
|
return "span ".concat(span);
|
|
2697
2710
|
};
|
|
2698
|
-
var gridArea = styled.css(templateObject_1$
|
|
2711
|
+
var gridArea = styled.css(templateObject_1$1j || (templateObject_1$1j = 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
2712
|
return Array.isArray(props.$colSpan)
|
|
2700
2713
|
? props.$colSpan.map(function (span, index) {
|
|
2701
2714
|
return combineSpanStart(Array.isArray(props.$colStart)
|
|
@@ -2727,7 +2740,7 @@ var gridArea = styled.css(templateObject_1$1i || (templateObject_1$1i = tslib.__
|
|
|
2727
2740
|
*
|
|
2728
2741
|
*/
|
|
2729
2742
|
var OakGridArea = styled__default.default(OakFlex)(templateObject_2$B || (templateObject_2$B = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), gridArea);
|
|
2730
|
-
var templateObject_1$
|
|
2743
|
+
var templateObject_1$1j, templateObject_2$B;
|
|
2731
2744
|
|
|
2732
2745
|
var useMediaQuery = function (device) {
|
|
2733
2746
|
var _a = tslib.__read(React.useState(false), 2), matches = _a[0], setMatches = _a[1];
|
|
@@ -2777,7 +2790,7 @@ var useBreakpoint = function () {
|
|
|
2777
2790
|
return value;
|
|
2778
2791
|
};
|
|
2779
2792
|
|
|
2780
|
-
var StyledOakTextArea = styled__default.default(OakTextArea)(templateObject_1$
|
|
2793
|
+
var StyledOakTextArea = styled__default.default(OakTextArea)(templateObject_1$1i || (templateObject_1$1i = 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
2794
|
return props.disabled ? "" : parseColor("border-neutral");
|
|
2782
2795
|
}, parseColor("text-subdued"));
|
|
2783
2796
|
var UnstyledComponent$3 = React.forwardRef(function (_a, ref) {
|
|
@@ -2855,9 +2868,9 @@ function useDevice(values) {
|
|
|
2855
2868
|
}
|
|
2856
2869
|
return values;
|
|
2857
2870
|
}
|
|
2858
|
-
var templateObject_1$
|
|
2871
|
+
var templateObject_1$1i;
|
|
2859
2872
|
|
|
2860
|
-
var DisplayContentsLegend = styled__default.default("legend")(templateObject_1$
|
|
2873
|
+
var DisplayContentsLegend = styled__default.default("legend")(templateObject_1$1h || (templateObject_1$1h = tslib.__makeTemplateObject(["\n display: contents;\n"], ["\n display: contents;\n"])));
|
|
2861
2874
|
var RadioContext = React.createContext({
|
|
2862
2875
|
currentValue: "default",
|
|
2863
2876
|
name: "default",
|
|
@@ -2892,7 +2905,7 @@ var OakRadioGroup = function (props) {
|
|
|
2892
2905
|
onValueUpdated: handleValueUpdated,
|
|
2893
2906
|
} }, children)));
|
|
2894
2907
|
};
|
|
2895
|
-
var templateObject_1$
|
|
2908
|
+
var templateObject_1$1h;
|
|
2896
2909
|
|
|
2897
2910
|
var BaseRadio = React.forwardRef(function (props, ref) {
|
|
2898
2911
|
var onHovered = props.onHovered, rest = tslib.__rest(props, ["onHovered"]);
|
|
@@ -2951,7 +2964,7 @@ var internalRadioDefaults = {
|
|
|
2951
2964
|
var InternalRadio = styled__default.default(BaseRadio).attrs(function (_a) {
|
|
2952
2965
|
_a.theme; var props = tslib.__rest(_a, ["theme"]);
|
|
2953
2966
|
return (tslib.__assign(tslib.__assign({}, internalRadioDefaults), props));
|
|
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$
|
|
2967
|
+
})(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$1g || (templateObject_1$1g = 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
2968
|
var internalRadioHoverDefaults = {
|
|
2956
2969
|
$hoverBorderRadius: "border-radius-xs",
|
|
2957
2970
|
};
|
|
@@ -2962,11 +2975,11 @@ var InternalRadioHover = styled__default.default(InternalRadio).attrs(function (
|
|
|
2962
2975
|
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
2976
|
styled__default.default(InternalRadio)(templateObject_5$a || (templateObject_5$a = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), focusStyle);
|
|
2964
2977
|
styled__default.default(InternalRadioHover)(templateObject_6$8 || (templateObject_6$8 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), focusStyle);
|
|
2965
|
-
var templateObject_1$
|
|
2978
|
+
var templateObject_1$1g, templateObject_2$A, templateObject_3$q, templateObject_4$f, templateObject_5$a, templateObject_6$8;
|
|
2966
2979
|
|
|
2967
2980
|
// Extracted from <./src/components/molecules/OakRadioButton/OakRadioButton.tsx>
|
|
2968
2981
|
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$
|
|
2982
|
+
return !props.$disableFocusRing && styled.css(templateObject_1$1f || (templateObject_1$1f = 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
2983
|
}, InternalRadio, function (props) { return parseSpacing(props.$radioInnerSize); }, function (props) { return parseSpacing(props.$radioInnerSize); }, parseColor("bg-inverted"), parseBorder("border-solid-m"), parseColor("border-inverted"));
|
|
2971
2984
|
// Extracted from <./src/components/molecules/OakRadioButton/OakRadioButton.tsx>
|
|
2972
2985
|
// This is a hack to force React to rerender when the disabled prop is changed. Otherwise the pseudo element is not updated.
|
|
@@ -2988,10 +3001,10 @@ var InternalRadioWrapper = function (props) {
|
|
|
2988
3001
|
internalRadio,
|
|
2989
3002
|
!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
3003
|
};
|
|
2991
|
-
var templateObject_1$
|
|
3004
|
+
var templateObject_1$1f, templateObject_2$z, templateObject_3$p;
|
|
2992
3005
|
|
|
2993
3006
|
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$
|
|
3007
|
+
return !props.disabled && styled.css(templateObject_1$1e || (templateObject_1$1e = tslib.__makeTemplateObject(["\n cursor: pointer;\n "], ["\n cursor: pointer;\n "])));
|
|
2995
3008
|
}, responsiveStyle("gap", function (props) { return props.$labelGap; }, parseSpacing), responsiveStyle("align-items", function (props) { return props.$labelAlignItems; }));
|
|
2996
3009
|
/**
|
|
2997
3010
|
* A radio button component.
|
|
@@ -3007,7 +3020,7 @@ var OakRadioButton = React.forwardRef(function (props, ref) {
|
|
|
3007
3020
|
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
3021
|
label)));
|
|
3009
3022
|
});
|
|
3010
|
-
var templateObject_1$
|
|
3023
|
+
var templateObject_1$1e, templateObject_2$y;
|
|
3011
3024
|
|
|
3012
3025
|
/**
|
|
3013
3026
|
*
|
|
@@ -3028,8 +3041,8 @@ var OakSecondaryButtonAsRadio = function (_a) {
|
|
|
3028
3041
|
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
3042
|
};
|
|
3030
3043
|
|
|
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
|
|
3032
|
-
return !props.$readOnly && styled.css(templateObject_1$
|
|
3044
|
+
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) {
|
|
3045
|
+
return !props.$readOnly && styled.css(templateObject_1$1d || (templateObject_1$1d = 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
3046
|
}, function (props) {
|
|
3034
3047
|
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
3048
|
}, function (props) {
|
|
@@ -3039,9 +3052,9 @@ var NativeSelect = styled__default.default("select")(templateObject_4$e || (temp
|
|
|
3039
3052
|
.map(function (dropShadow) { return parseDropShadow(dropShadow); })
|
|
3040
3053
|
.join(",");
|
|
3041
3054
|
}, parseBorderRadius("border-radius-s"), parseBorderRadius("border-radius-s"), borderStyle, colorStyle, paddingStyle, borderStyle, colorStyle);
|
|
3042
|
-
var templateObject_1$
|
|
3055
|
+
var templateObject_1$1d, templateObject_2$x, templateObject_3$o, templateObject_4$e;
|
|
3043
3056
|
|
|
3044
|
-
var IconUp = styled__default.default(OakFlex)(templateObject_1$
|
|
3057
|
+
var IconUp = styled__default.default(OakFlex)(templateObject_1$1c || (templateObject_1$1c = tslib.__makeTemplateObject(["\n user-select: none;\n"], ["\n user-select: none;\n"])));
|
|
3045
3058
|
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
3059
|
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
3060
|
function OakSelect(_a) {
|
|
@@ -3072,12 +3085,12 @@ function OakSelect(_a) {
|
|
|
3072
3085
|
React__default.default.createElement(IconDown, { "$position": "absolute", "$top": "spacing-0", "$bottom": "spacing-0", "$right": "spacing-12", "$pointerEvents": "none", "$alignContent": "center" },
|
|
3073
3086
|
React__default.default.createElement(OakIcon, { iconName: "chevron-down" }))));
|
|
3074
3087
|
}
|
|
3075
|
-
var templateObject_1$
|
|
3088
|
+
var templateObject_1$1c, templateObject_2$w, templateObject_3$n;
|
|
3076
3089
|
|
|
3077
|
-
var NativeOptGroup = styled__default.default("optgroup")(templateObject_1$
|
|
3078
|
-
var templateObject_1$
|
|
3090
|
+
var NativeOptGroup = styled__default.default("optgroup")(templateObject_1$1b || (templateObject_1$1b = tslib.__makeTemplateObject([""], [""])));
|
|
3091
|
+
var templateObject_1$1b;
|
|
3079
3092
|
|
|
3080
|
-
var NativeOption = styled__default.default("option")(templateObject_1$
|
|
3093
|
+
var NativeOption = styled__default.default("option")(templateObject_1$1a || (templateObject_1$1a = 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
3094
|
return parseFontSize(props.$asDefault ? "body-2" : "body-2-bold");
|
|
3082
3095
|
}, function (props) {
|
|
3083
3096
|
return parseFontWeight(props.$asDefault ? "body-2" : "body-2-bold");
|
|
@@ -3085,7 +3098,7 @@ var NativeOption = styled__default.default("option")(templateObject_1$19 || (tem
|
|
|
3085
3098
|
var _a, _b;
|
|
3086
3099
|
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
3100
|
}, parseColor("bg-neutral-stronger"), parseColor("text-subdued"), NativeOptGroup, parseSpacing("spacing-32"), paddingStyle, colorStyle);
|
|
3088
|
-
var templateObject_1$
|
|
3101
|
+
var templateObject_1$1a;
|
|
3089
3102
|
|
|
3090
3103
|
function OakOption(_a) {
|
|
3091
3104
|
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 +3108,8 @@ function OakOption(_a) {
|
|
|
3095
3108
|
return (React__default.default.createElement(NativeOption, { "$asDefault": asDefault, value: value, disabled: disabled, selected: selected, "$ph": "spacing-16", "$pv": "spacing-8", "$focusRingDropShadows": $focusRingDropShadows }, children));
|
|
3096
3109
|
}
|
|
3097
3110
|
|
|
3098
|
-
var NativeLegend = styled__default.default("legend")(templateObject_1$
|
|
3099
|
-
var templateObject_1$
|
|
3111
|
+
var NativeLegend = styled__default.default("legend")(templateObject_1$19 || (templateObject_1$19 = 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);
|
|
3112
|
+
var templateObject_1$19;
|
|
3100
3113
|
|
|
3101
3114
|
function OakOptGroup(_a) {
|
|
3102
3115
|
var label = _a.label, children = _a.children;
|
|
@@ -3110,7 +3123,7 @@ var StyledTextInputWrapper = styled__default.default(OakFlex)(templateObject_4$d
|
|
|
3110
3123
|
.map(function (dropShadow) { return parseDropShadow(dropShadow); })
|
|
3111
3124
|
.join(",");
|
|
3112
3125
|
}, function (props) { return parseColor(props.$background); }, function (props) {
|
|
3113
|
-
return !props.$readOnly && styled.css(templateObject_1$
|
|
3126
|
+
return !props.$readOnly && styled.css(templateObject_1$18 || (templateObject_1$18 = 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
3127
|
}, function (props) {
|
|
3115
3128
|
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
3129
|
}, function (props) {
|
|
@@ -3152,7 +3165,7 @@ var OakTextInput = function (_a) {
|
|
|
3152
3165
|
React__default.default.createElement(InternalTextInput, tslib.__assign({ type: type, "$width": "100%", "$pv": "spacing-20", "$height": "spacing-72" }, props))),
|
|
3153
3166
|
isTrailingIcon && iconName && (React__default.default.createElement(OakIcon, { iconName: iconName, "$colorFilter": finalIconColor, "$pointerEvents": "none", "$width": "spacing-32", alt: iconAlt }))));
|
|
3154
3167
|
};
|
|
3155
|
-
var templateObject_1$
|
|
3168
|
+
var templateObject_1$18, templateObject_2$v, templateObject_3$m, templateObject_4$d;
|
|
3156
3169
|
|
|
3157
3170
|
var colorSchemes = [
|
|
3158
3171
|
"primary",
|
|
@@ -3165,7 +3178,7 @@ var colorSchemes = [
|
|
|
3165
3178
|
"transparent",
|
|
3166
3179
|
];
|
|
3167
3180
|
// 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$
|
|
3181
|
+
var StyledOakIcon$2 = styled__default.default(OakIcon)(templateObject_1$17 || (templateObject_1$17 = tslib.__makeTemplateObject([""], [""])));
|
|
3169
3182
|
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
3183
|
return parseColor(props.$colorSchemeTokens.background);
|
|
3171
3184
|
}, function (props) { return parseColor(props.$colorSchemeTokens.borderColor); }, parseColor("text-primary"), function (props) {
|
|
@@ -3237,11 +3250,10 @@ var OakRadioAsButton = function (props) {
|
|
|
3237
3250
|
rest.variant === "with-icon" && (React__default.default.createElement(StyledOakIcon$2, { alt: "", iconName: rest.icon })),
|
|
3238
3251
|
React__default.default.createElement(InternalCheckBoxLabelHoverDecor, { pointerEvents: "none", htmlFor: id, "$font": "heading-7", disabled: disabled }, displayValue)));
|
|
3239
3252
|
};
|
|
3240
|
-
var templateObject_1$
|
|
3253
|
+
var templateObject_1$17, templateObject_2$u;
|
|
3241
3254
|
|
|
3242
|
-
|
|
3243
|
-
var
|
|
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) {
|
|
3255
|
+
var StyledOakIcon$1 = styled__default.default(OakIcon)(templateObject_1$16 || (templateObject_1$16 = tslib.__makeTemplateObject([""], [""])));
|
|
3256
|
+
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) + span {\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) + span {\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"])), function (props) {
|
|
3245
3257
|
return props.$keepIconColor ? "none" : parseColorFilter("icon-inverted");
|
|
3246
3258
|
}, parseBorder("border-solid-l"), parseColor("border-primary"), parseBorder("border-solid-l"), parseColor("text-disabled"), parseColor("bg-primary"));
|
|
3247
3259
|
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"));
|
|
@@ -3288,7 +3300,7 @@ var OakSearchFilterCheckBox = function (props) {
|
|
|
3288
3300
|
icon && React__default.default.createElement(StyledOakIcon$1, { alt: "", iconName: icon }),
|
|
3289
3301
|
React__default.default.createElement(InternalCheckBoxLabelHoverDecor, { pointerEvents: "none", htmlFor: id, "$font": "heading-7", disabled: disabled }, displayValue))));
|
|
3290
3302
|
};
|
|
3291
|
-
var templateObject_1$
|
|
3303
|
+
var templateObject_1$16, templateObject_2$t, templateObject_3$l;
|
|
3292
3304
|
|
|
3293
3305
|
/**
|
|
3294
3306
|
* A wrapper around `OakIcon` which applies a rounded background.
|
|
@@ -3505,12 +3517,12 @@ function parseBorderWidth(value) {
|
|
|
3505
3517
|
}
|
|
3506
3518
|
}
|
|
3507
3519
|
|
|
3508
|
-
var colorFillStyle = styled.css(templateObject_1$
|
|
3520
|
+
var colorFillStyle = styled.css(templateObject_1$15 || (templateObject_1$15 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("fill", function (props) { return props.$fill; }, parseColor));
|
|
3509
3521
|
/**
|
|
3510
3522
|
* A styled SVG element with props to apply design tokens to the fill and stroke.
|
|
3511
3523
|
*/
|
|
3512
3524
|
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$
|
|
3525
|
+
var templateObject_1$15, templateObject_2$s;
|
|
3514
3526
|
|
|
3515
3527
|
var HandDrawnHRSvg = function (props) {
|
|
3516
3528
|
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),
|
|
@@ -3518,7 +3530,7 @@ var HandDrawnHRSvg = function (props) {
|
|
|
3518
3530
|
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" }))));
|
|
3519
3531
|
};
|
|
3520
3532
|
|
|
3521
|
-
var StyledOakFlex$4 = styled__default.default(OakFlex)(templateObject_1$
|
|
3533
|
+
var StyledOakFlex$4 = styled__default.default(OakFlex)(templateObject_1$14 || (templateObject_1$14 = tslib.__makeTemplateObject([""], [""])));
|
|
3522
3534
|
/**
|
|
3523
3535
|
* A Drawn HR svg inside a flex container
|
|
3524
3536
|
*
|
|
@@ -3531,7 +3543,7 @@ var OakHandDrawnHR = function (props) {
|
|
|
3531
3543
|
return (React__default.default.createElement(StyledOakFlex$4, tslib.__assign({ focusable: false }, flexProps),
|
|
3532
3544
|
React__default.default.createElement(HandDrawnHRSvg, { "$fill": hrColor })));
|
|
3533
3545
|
};
|
|
3534
|
-
var templateObject_1$
|
|
3546
|
+
var templateObject_1$14;
|
|
3535
3547
|
|
|
3536
3548
|
var oakMaxWidthDefaults = {
|
|
3537
3549
|
$maxWidth: ["spacing-480", "spacing-1280"],
|
|
@@ -3548,8 +3560,8 @@ var oakMaxWidthDefaults = {
|
|
|
3548
3560
|
* This will make it easier to create full browser width or custom width containers on the same page
|
|
3549
3561
|
* with different background colors / image url.
|
|
3550
3562
|
*/
|
|
3551
|
-
var OakMaxWidth = styled__default.default(OakFlex).attrs(function (props) { return (tslib.__assign(tslib.__assign({}, oakMaxWidthDefaults), props)); })(templateObject_1$
|
|
3552
|
-
var templateObject_1$
|
|
3563
|
+
var OakMaxWidth = styled__default.default(OakFlex).attrs(function (props) { return (tslib.__assign(tslib.__assign({}, oakMaxWidthDefaults), props)); })(templateObject_1$13 || (templateObject_1$13 = tslib.__makeTemplateObject([""], [""])));
|
|
3564
|
+
var templateObject_1$13;
|
|
3553
3565
|
|
|
3554
3566
|
var HandDrawnFocusUnderlineSvg = function (props) {
|
|
3555
3567
|
return (React__default.default.createElement(InternalStyledSvg, tslib.__assign({ xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3563,7 +3575,7 @@ var HandDrawnFocusUnderlineSvg = function (props) {
|
|
|
3563
3575
|
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" })));
|
|
3564
3576
|
};
|
|
3565
3577
|
|
|
3566
|
-
var StyledOakFlex$3 = styled__default.default(OakFlex)(templateObject_1$
|
|
3578
|
+
var StyledOakFlex$3 = styled__default.default(OakFlex)(templateObject_1$12 || (templateObject_1$12 = tslib.__makeTemplateObject([""], [""])));
|
|
3567
3579
|
/**
|
|
3568
3580
|
* A Drawn FocusUnderline svg inside a flex container
|
|
3569
3581
|
*
|
|
@@ -3576,13 +3588,13 @@ var OakHandDrawnFocusUnderline = function (props) {
|
|
|
3576
3588
|
return (React__default.default.createElement(StyledOakFlex$3, tslib.__assign({}, flexProps),
|
|
3577
3589
|
React__default.default.createElement(HandDrawnFocusUnderlineSvg, { "$fill": FocusUnderlineColor })));
|
|
3578
3590
|
};
|
|
3579
|
-
var templateObject_1$
|
|
3591
|
+
var templateObject_1$12;
|
|
3580
3592
|
|
|
3581
|
-
var StyledAccordionUnderline = styled__default.default(OakHandDrawnFocusUnderline)(templateObject_1$
|
|
3593
|
+
var StyledAccordionUnderline = styled__default.default(OakHandDrawnFocusUnderline)(templateObject_1$11 || (templateObject_1$11 = tslib.__makeTemplateObject(["\n position: absolute;\n width: 100%;\n bottom: -", ";\n"], ["\n position: absolute;\n width: 100%;\n bottom: -", ";\n"])), parseSpacing("spacing-4"));
|
|
3582
3594
|
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
3595
|
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
3596
|
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) {
|
|
3585
|
-
return props
|
|
3597
|
+
return props.$shouldDisplayShadow
|
|
3586
3598
|
? parseOpacity("opaque")
|
|
3587
3599
|
: parseOpacity("transparent");
|
|
3588
3600
|
});
|
|
@@ -3590,7 +3602,7 @@ var BottomBoxShadow = styled__default.default(OakBox)(templateObject_4$c || (tem
|
|
|
3590
3602
|
* An accordion component that can be used to show/hide content
|
|
3591
3603
|
*/
|
|
3592
3604
|
var Accordion$3 = function (_a) {
|
|
3593
|
-
var header = _a.header, children = _a.children, id = _a.id, subheading = _a.subheading
|
|
3605
|
+
var header = _a.header, children = _a.children, id = _a.id, subheading = _a.subheading; _a.initialOpen; var styleProps = tslib.__rest(_a, ["header", "children", "id", "subheading", "initialOpen"]);
|
|
3594
3606
|
var _b = tslib.__read(React.useState(false), 2), shouldDisplayShadow = _b[0], setShouldDisplayShadow = _b[1];
|
|
3595
3607
|
var scrollBox = React.useRef(null);
|
|
3596
3608
|
React.useEffect(function () {
|
|
@@ -3633,7 +3645,7 @@ var Accordion$3 = function (_a) {
|
|
|
3633
3645
|
React__default.default.createElement(OakBox, { ref: scrollBox, "$position": "relative", "$overflow": "auto", onScroll: handleScroll, "data-testid": "scrollable-content" },
|
|
3634
3646
|
React__default.default.createElement(InternalAccordionContent, { "aria-labelledby": id }, children)),
|
|
3635
3647
|
React__default.default.createElement(StyledAccordionUnderline, { "$fill": "border-decorative5-stronger" }),
|
|
3636
|
-
isOpen && (React__default.default.createElement(BottomBoxShadow, { shouldDisplayShadow: shouldDisplayShadow, "data-testid": "bottom-box-shadow", "$pointerEvents": "none" }))));
|
|
3648
|
+
isOpen && (React__default.default.createElement(BottomBoxShadow, { "$shouldDisplayShadow": shouldDisplayShadow, "data-testid": "bottom-box-shadow", "$pointerEvents": "none" }))));
|
|
3637
3649
|
};
|
|
3638
3650
|
/**
|
|
3639
3651
|
* InternalChevronAccordion has a chevron icon that rotates when the accordion is open
|
|
@@ -3643,14 +3655,14 @@ var InternalChevronAccordion = function (_a) {
|
|
|
3643
3655
|
return (React__default.default.createElement(InternalAccordionProvider, { isInitialOpen: initialOpen },
|
|
3644
3656
|
React__default.default.createElement(Accordion$3, tslib.__assign({ initialOpen: true }, props))));
|
|
3645
3657
|
};
|
|
3646
|
-
var templateObject_1$
|
|
3658
|
+
var templateObject_1$11, templateObject_2$r, templateObject_3$k, templateObject_4$c;
|
|
3647
3659
|
|
|
3648
3660
|
var OakBasicAccordion = function (_a) {
|
|
3649
3661
|
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"]);
|
|
3650
3662
|
return (React__default.default.createElement(InternalChevronAccordion, tslib.__assign({ header: header, id: id, initialOpen: initialOpen, subheading: subheading }, styleProps), children));
|
|
3651
3663
|
};
|
|
3652
3664
|
|
|
3653
|
-
var StyledScrollBox = styled__default.default(OakBox)(templateObject_1
|
|
3665
|
+
var StyledScrollBox = styled__default.default(OakBox)(templateObject_1$10 || (templateObject_1$10 = 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"));
|
|
3654
3666
|
/**
|
|
3655
3667
|
* A filled scrollable box that can be hidden with the `isOpen` prop.
|
|
3656
3668
|
* Useful for hiding content that is not immediately relevant
|
|
@@ -3661,7 +3673,7 @@ var OakCollapsibleContent = function (_a) {
|
|
|
3661
3673
|
React__default.default.createElement(OakFlex, tslib.__assign({ "$background": "bg-neutral-stronger", "$ph": "spacing-16", "$pv": "spacing-24", "$borderRadius": "border-radius-m" }, rest),
|
|
3662
3674
|
React__default.default.createElement(StyledScrollBox, { "$overflow": "auto", "$maxHeight": "100%", "$width": "100%", "$pr": "spacing-16" }, children))));
|
|
3663
3675
|
};
|
|
3664
|
-
var templateObject_1
|
|
3676
|
+
var templateObject_1$10;
|
|
3665
3677
|
|
|
3666
3678
|
/**
|
|
3667
3679
|
* Represents textual user input from a keyboard, voice input, or any other text entry device.
|
|
@@ -3785,7 +3797,7 @@ var OakInlineBanner = function (_a) {
|
|
|
3785
3797
|
cta && React__default.default.createElement(OakFlex, { "$flexShrink": 0 }, cta)))));
|
|
3786
3798
|
};
|
|
3787
3799
|
|
|
3788
|
-
var FocusOnBox = styled__default.default(reactFocusOn.FocusOn)(templateObject_1
|
|
3800
|
+
var FocusOnBox = styled__default.default(reactFocusOn.FocusOn)(templateObject_1$$ || (templateObject_1$$ = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), oakBoxCss);
|
|
3789
3801
|
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
3802
|
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) {
|
|
3791
3803
|
var $state = _a.$state;
|
|
@@ -3877,7 +3889,7 @@ var OakModalCenter = function (_a) {
|
|
|
3877
3889
|
return modal;
|
|
3878
3890
|
}
|
|
3879
3891
|
};
|
|
3880
|
-
var templateObject_1
|
|
3892
|
+
var templateObject_1$$, templateObject_2$q, templateObject_3$j;
|
|
3881
3893
|
|
|
3882
3894
|
/*
|
|
3883
3895
|
*
|
|
@@ -3909,17 +3921,17 @@ var OakModalCenterBody = function (_a) {
|
|
|
3909
3921
|
};
|
|
3910
3922
|
|
|
3911
3923
|
var OakTagFunctional = function (props) {
|
|
3912
|
-
var label = props.label, useSpan = props.useSpan, oakFlexProps = tslib.__rest(props, ["label", "useSpan"]);
|
|
3913
|
-
var icon =
|
|
3914
|
-
var trailingIcon =
|
|
3915
|
-
var leadingIcon = !
|
|
3924
|
+
var label = props.label, useSpan = props.useSpan, isTrailingIcon = props.isTrailingIcon, iconName = props.iconName, oakFlexProps = tslib.__rest(props, ["label", "useSpan", "isTrailingIcon", "iconName"]);
|
|
3925
|
+
var icon = iconName && (React__default.default.createElement(OakIcon, { "$height": "spacing-20", "$width": "spacing-20", iconName: iconName }));
|
|
3926
|
+
var trailingIcon = isTrailingIcon && icon;
|
|
3927
|
+
var leadingIcon = !isTrailingIcon && icon;
|
|
3916
3928
|
return (React__default.default.createElement(OakFlex, tslib.__assign({ "$borderRadius": "border-radius-m", "$ph": "spacing-8", "$pv": "spacing-4", "$font": "heading-light-7", "$gap": "spacing-8" }, oakFlexProps),
|
|
3917
3929
|
leadingIcon,
|
|
3918
3930
|
React__default.default.createElement(OakBox, { as: useSpan ? "span" : undefined }, label),
|
|
3919
3931
|
trailingIcon));
|
|
3920
3932
|
};
|
|
3921
3933
|
|
|
3922
|
-
var SuccessIconBackground = styled__default.default(OakBox)(templateObject_1$
|
|
3934
|
+
var SuccessIconBackground = styled__default.default(OakBox)(templateObject_1$_ || (templateObject_1$_ = tslib.__makeTemplateObject(["\n top: 6px;\n left: 6px;\n"], ["\n top: 6px;\n left: 6px;\n"])));
|
|
3923
3935
|
var SuccessIcon = (React__default.default.createElement(OakBox, { "$position": "relative" },
|
|
3924
3936
|
React__default.default.createElement(SuccessIconBackground, { "$width": "spacing-20", "$height": "spacing-20", "$background": "bg-primary", "$borderRadius": "border-radius-circle", "$position": "absolute" }),
|
|
3925
3937
|
React__default.default.createElement(OakIcon, { iconName: "success", "$width": "spacing-32", "$height": "spacing-32" })));
|
|
@@ -4002,9 +4014,9 @@ var OakToast = function (_a) {
|
|
|
4002
4014
|
message,
|
|
4003
4015
|
(!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); } })))); }));
|
|
4004
4016
|
};
|
|
4005
|
-
var templateObject_1$
|
|
4017
|
+
var templateObject_1$_, templateObject_2$p;
|
|
4006
4018
|
|
|
4007
|
-
var StyledFlex$2 = styled__default.default(OakFlex)(templateObject_1$
|
|
4019
|
+
var StyledFlex$2 = styled__default.default(OakFlex)(templateObject_1$Z || (templateObject_1$Z = tslib.__makeTemplateObject(["\n width: max-content;\n pointer-events: none;\n"], ["\n width: max-content;\n pointer-events: none;\n"])));
|
|
4008
4020
|
var ARROW_SIZE = parseSpacing("spacing-16");
|
|
4009
4021
|
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) {
|
|
4010
4022
|
var $tooltipPosition = _a.$tooltipPosition;
|
|
@@ -4029,7 +4041,7 @@ var InternalTooltip = function (_a) {
|
|
|
4029
4041
|
React__default.default.createElement(StyledSvg$1, { width: ARROW_SIZE, height: ARROW_SIZE, "$fill": $background, "$tooltipPosition": tooltipPosition, "data-testid": "tooltip-arrow" },
|
|
4030
4042
|
React__default.default.createElement("path", { d: "M0 0H16L8 8L0 16V0Z" }))));
|
|
4031
4043
|
};
|
|
4032
|
-
var templateObject_1$
|
|
4044
|
+
var templateObject_1$Z, templateObject_2$o, templateObject_3$i, templateObject_4$b, templateObject_5$9, templateObject_6$7;
|
|
4033
4045
|
|
|
4034
4046
|
/**
|
|
4035
4047
|
* A tooltip with oven-ready styling and positioning.
|
|
@@ -4157,22 +4169,24 @@ var fallbackActiveShadow = "".concat(parseDropShadow("drop-shadow-lemon"), ", ")
|
|
|
4157
4169
|
/**
|
|
4158
4170
|
* Wrap focusable components `<a/>`/`<button/>` and this will add focus styles then the inner element is focused
|
|
4159
4171
|
*/
|
|
4160
|
-
var OakFocusIndicator = styled__default.default(OakBox)(templateObject_1$
|
|
4172
|
+
var OakFocusIndicator = styled__default.default(OakBox)(templateObject_1$Y || (templateObject_1$Y = 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) {
|
|
4161
4173
|
if (props.as === "li") {
|
|
4162
4174
|
return "\n list-style: none;\n margin: 0;\n padding: 0;\n ";
|
|
4163
4175
|
}
|
|
4164
4176
|
}, function (props) {
|
|
4165
|
-
return props
|
|
4166
|
-
}, hoverChildren, responsiveStyle("background-color", function (props) { return props
|
|
4167
|
-
return props
|
|
4177
|
+
return props.$dropShadow ? parseDropShadow(props.$dropShadow) : "none";
|
|
4178
|
+
}, hoverChildren, responsiveStyle("background-color", function (props) { return props.$hoverBackground; }, function (value) { return parseColor(value); }), function (props) {
|
|
4179
|
+
return props.$hoverDropShadow
|
|
4180
|
+
? parseDropShadow(props.$hoverDropShadow)
|
|
4181
|
+
: "none";
|
|
4168
4182
|
}, focusVisibleChildren, responsiveStyle("border-radius", function (props) { return props.$borderRadius; }, parseBorderRadius), focusShadow, focusVisibleChildren, activeChildren, function (props) {
|
|
4169
|
-
return props
|
|
4170
|
-
? parseDropShadow(props
|
|
4183
|
+
return props.$activeDropShadow
|
|
4184
|
+
? parseDropShadow(props.$activeDropShadow)
|
|
4171
4185
|
: fallbackActiveShadow;
|
|
4172
4186
|
});
|
|
4173
|
-
var templateObject_1$
|
|
4187
|
+
var templateObject_1$Y;
|
|
4174
4188
|
|
|
4175
|
-
var StyledPromoTag = styled__default.default(OakFlex)(templateObject_1$
|
|
4189
|
+
var StyledPromoTag = styled__default.default(OakFlex)(templateObject_1$X || (templateObject_1$X = tslib.__makeTemplateObject(["\n aspect-ratio: 2 / 1;\n"], ["\n aspect-ratio: 2 / 1;\n"])));
|
|
4176
4190
|
/**
|
|
4177
4191
|
* Renders a tag with the text "New"
|
|
4178
4192
|
*/
|
|
@@ -4184,7 +4198,7 @@ var OakPromoTag = function (props) {
|
|
|
4184
4198
|
React__default.default.createElement(OakFlex, { "$position": "absolute", "$inset": "spacing-0", "$alignItems": "center", "$justifyContent": "center" },
|
|
4185
4199
|
React__default.default.createElement(OakSpan, { "$color": variant === "default" ? "text-promo" : "text-primary", "$font": ["body-3-bold", "body-3-bold", "heading-7"] }, "New"))));
|
|
4186
4200
|
};
|
|
4187
|
-
var templateObject_1$
|
|
4201
|
+
var templateObject_1$X;
|
|
4188
4202
|
|
|
4189
4203
|
var OakErrorBoundaryBorderColor = React.createContext("border-neutral-lighter");
|
|
4190
4204
|
/**
|
|
@@ -4245,10 +4259,10 @@ var OakErrorBoundary = /** @class */ (function (_super) {
|
|
|
4245
4259
|
* it a unique 'id'. Then link it elsewhere using `<a href='#${id}' />`.
|
|
4246
4260
|
*
|
|
4247
4261
|
* */
|
|
4248
|
-
var OakAnchorTarget = styled__default.default.span(templateObject_1$
|
|
4249
|
-
var templateObject_1$
|
|
4262
|
+
var OakAnchorTarget = styled__default.default.span(templateObject_1$W || (templateObject_1$W = 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));
|
|
4263
|
+
var templateObject_1$W;
|
|
4250
4264
|
|
|
4251
|
-
var StyleInternalLink = styled__default.default(InternalLink)(templateObject_1$
|
|
4265
|
+
var StyleInternalLink = styled__default.default(InternalLink)(templateObject_1$V || (templateObject_1$V = tslib.__makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n"], ["\n display: inline-flex;\n align-items: center;\n"])));
|
|
4252
4266
|
/**
|
|
4253
4267
|
* deprecated - use `<OakLink />` instead
|
|
4254
4268
|
* @deprecated
|
|
@@ -4263,7 +4277,7 @@ var OakHoverLink = React.forwardRef(function (props, ref) {
|
|
|
4263
4277
|
var color = props.displayDisabled ? "text-disabled" : "text-primary";
|
|
4264
4278
|
return (React__default.default.createElement(StyleInternalLink, tslib.__assign({ color: color, hoverColor: color, activeColor: color, disabledColor: color, visitedColor: color, textDecoration: "none" }, props, { ref: ref })));
|
|
4265
4279
|
});
|
|
4266
|
-
var templateObject_1$
|
|
4280
|
+
var templateObject_1$V;
|
|
4267
4281
|
|
|
4268
4282
|
var generatePageNumbers = function (activePage, totalPages) {
|
|
4269
4283
|
var pageNumbers = [];
|
|
@@ -4283,24 +4297,24 @@ var generatePageNumbers = function (activePage, totalPages) {
|
|
|
4283
4297
|
return pageNumbers;
|
|
4284
4298
|
};
|
|
4285
4299
|
|
|
4286
|
-
var StyledChevronButton = styled__default.default(OakLink)(
|
|
4287
|
-
var StyledIcon = styled__default.default(OakIcon)(
|
|
4300
|
+
var StyledChevronButton = styled__default.default(OakLink)(templateObject_1$U || (templateObject_1$U = tslib.__makeTemplateObject(["\n display: inline-block;\n"], ["\n display: inline-block;\n"])));
|
|
4301
|
+
var StyledIcon = styled__default.default(OakIcon)(templateObject_3$h || (templateObject_3$h = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
4288
4302
|
if (props.disabled) {
|
|
4289
|
-
return styled.css(
|
|
4303
|
+
return styled.css(templateObject_2$n || (templateObject_2$n = tslib.__makeTemplateObject(["\n filter: ", ";\n "], ["\n filter: ", ";\n "])), parseColorFilter("icon-disabled"));
|
|
4290
4304
|
}
|
|
4291
4305
|
});
|
|
4292
|
-
var StyledNumberButton = styled__default.default(OakLink)(
|
|
4306
|
+
var StyledNumberButton = styled__default.default(OakLink)(templateObject_6$6 || (templateObject_6$6 = 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 @media (hover: hover) {\n &:hover,\n &:visited:hover {\n color: ", ";\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 @media (hover: hover) {\n &:hover,\n &:visited:hover {\n color: ", ";\n text-decoration: underline;\n }\n }\n"])), typographyStyle, parseColor("text-primary"), function (props) { return styled.css(templateObject_4$a || (templateObject_4$a = tslib.__makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), props.$selected
|
|
4293
4307
|
? parseColor("icon-primary")
|
|
4294
4308
|
: parseColor("icon-inverted")); }, function (props) {
|
|
4295
|
-
return props
|
|
4309
|
+
return props.$selected && styled.css(templateObject_5$8 || (templateObject_5$8 = tslib.__makeTemplateObject(["\n color: ", ";\n &:visited {\n color: ", ";\n }\n "], ["\n color: ", ";\n &:visited {\n color: ", ";\n }\n "])), parseColor("text-inverted"), parseColor("text-inverted"));
|
|
4296
4310
|
}, function (props) {
|
|
4297
|
-
return props
|
|
4311
|
+
return parseColor(props.$selected ? "text-inverted" : "text-primary");
|
|
4298
4312
|
});
|
|
4299
|
-
var StyledEllipsis = styled__default.default(InternalButton)(
|
|
4313
|
+
var StyledEllipsis = styled__default.default(InternalButton)(templateObject_7$3 || (templateObject_7$3 = tslib.__makeTemplateObject(["\n &:disabled {\n cursor: pointer;\n }\n"], ["\n &:disabled {\n cursor: pointer;\n }\n"])));
|
|
4300
4314
|
var OakPageNumber = function (_a) {
|
|
4301
4315
|
var currentPage = _a.currentPage, pageNumber = _a.pageNumber, onClick = _a.onClick, href = _a.href, pageName = _a.pageName;
|
|
4302
4316
|
var isActive = currentPage === pageNumber;
|
|
4303
|
-
return (React__default.default.createElement(StyledNumberButton, { "data-testid": "page-number-component", "aria-label": "".concat(pageName, " page ").concat(pageNumber), "aria-current": isActive ? "page" : false, "$font": "heading-7", onClick: onClick, selected: isActive, href: href }, pageNumber));
|
|
4317
|
+
return (React__default.default.createElement(StyledNumberButton, { "data-testid": "page-number-component", "aria-label": "".concat(pageName, " page ").concat(pageNumber), "aria-current": isActive ? "page" : false, "$font": "heading-7", onClick: onClick, "$selected": isActive, href: href }, pageNumber));
|
|
4304
4318
|
};
|
|
4305
4319
|
var OakEllipsis = function () {
|
|
4306
4320
|
return (React__default.default.createElement(StyledEllipsis, { "$color": "text-primary", "$font": "heading-7", "$background": "bg-primary", "aria-label": "Hidden page numbers", disabled: true }, "..."));
|
|
@@ -4355,7 +4369,7 @@ var OakPagination = function (_a) {
|
|
|
4355
4369
|
}, "aria-disabled": isLastPage, disabled: isLastPage, "aria-label": isLastPage ? "No further pages" : "Go to next page" },
|
|
4356
4370
|
React__default.default.createElement(StyledIcon, { disabled: isLastPage, iconName: "chevron-right" })))));
|
|
4357
4371
|
};
|
|
4358
|
-
var templateObject_1$
|
|
4372
|
+
var templateObject_1$U, templateObject_2$n, templateObject_3$h, templateObject_4$a, templateObject_5$8, templateObject_6$6, templateObject_7$3;
|
|
4359
4373
|
/**
|
|
4360
4374
|
*
|
|
4361
4375
|
* Add the description of the component here and it will appear on the story for the component
|
|
@@ -4374,7 +4388,7 @@ var templateObject_1$T, templateObject_2$n, templateObject_3$h, templateObject_4
|
|
|
4374
4388
|
*
|
|
4375
4389
|
*/
|
|
4376
4390
|
|
|
4377
|
-
var OakPrimaryButtonWithoutPointerEvents = styled__default.default(OakPrimaryButton)(templateObject_1$
|
|
4391
|
+
var OakPrimaryButtonWithoutPointerEvents = styled__default.default(OakPrimaryButton)(templateObject_1$T || (templateObject_1$T = tslib.__makeTemplateObject(["\n pointer-events: none;\n"], ["\n pointer-events: none;\n"])));
|
|
4378
4392
|
/**
|
|
4379
4393
|
*
|
|
4380
4394
|
* A specific implementation of OakPrimaryButton and OakPrimaryInvertedButton rendering
|
|
@@ -4387,7 +4401,7 @@ var OakPrimaryNavItem = function (_a) {
|
|
|
4387
4401
|
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;
|
|
4388
4402
|
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));
|
|
4389
4403
|
};
|
|
4390
|
-
var templateObject_1$
|
|
4404
|
+
var templateObject_1$T;
|
|
4391
4405
|
|
|
4392
4406
|
/**
|
|
4393
4407
|
* A row of buttons for navigating between different sections
|
|
@@ -4406,7 +4420,7 @@ var OakPrimaryNav = function (_a) {
|
|
|
4406
4420
|
};
|
|
4407
4421
|
|
|
4408
4422
|
// we do this to avoid type errors when spreading props
|
|
4409
|
-
var StyledInternalLink = styled__default.default(InternalLink)(templateObject_1$
|
|
4423
|
+
var StyledInternalLink = styled__default.default(InternalLink)(templateObject_1$S || (templateObject_1$S = tslib.__makeTemplateObject([""], [""])));
|
|
4410
4424
|
/**
|
|
4411
4425
|
* deprecated - use `<OakLink variant="secondary"/>` instead
|
|
4412
4426
|
* @deprecated
|
|
@@ -4422,9 +4436,9 @@ var OakSecondaryLink = React.forwardRef(function (props, ref) {
|
|
|
4422
4436
|
var visitedColor = displayDisabled ? "text-disabled" : "text-primary";
|
|
4423
4437
|
return (React__default.default.createElement(StyledInternalLink, tslib.__assign({ color: color, hoverColor: color, activeColor: color, disabledColor: "text-disabled", visitedColor: visitedColor, textDecoration: "none" }, restProps, { ref: ref })));
|
|
4424
4438
|
});
|
|
4425
|
-
var templateObject_1$
|
|
4439
|
+
var templateObject_1$S;
|
|
4426
4440
|
|
|
4427
|
-
var StyledFocusOutline = styled__default.default(OakFlex)(templateObject_1$
|
|
4441
|
+
var StyledFocusOutline = styled__default.default(OakFlex)(templateObject_1$R || (templateObject_1$R = tslib.__makeTemplateObject([""], [""])));
|
|
4428
4442
|
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"));
|
|
4429
4443
|
function OakTabs(props) {
|
|
4430
4444
|
var colorVariant = props.colorVariant, sizeVariant = props.sizeVariant, tabs = props.tabs, activeTab = props.activeTab, onTabClick = props.onTabClick;
|
|
@@ -4447,9 +4461,9 @@ function OakTabs(props) {
|
|
|
4447
4461
|
showPromo && (React__default.default.createElement(OakPromoTag, { display: ["none", "flex", "flex"], variant: isSelected ? "default" : "inverted" })))))));
|
|
4448
4462
|
})));
|
|
4449
4463
|
}
|
|
4450
|
-
var templateObject_1$
|
|
4464
|
+
var templateObject_1$R, templateObject_2$m;
|
|
4451
4465
|
|
|
4452
|
-
var CardContent = styled__default.default(OakFlex)(templateObject_1$
|
|
4466
|
+
var CardContent = styled__default.default(OakFlex)(templateObject_1$Q || (templateObject_1$Q = tslib.__makeTemplateObject([""], [""])));
|
|
4453
4467
|
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
4468
|
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
4469
|
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"));
|
|
@@ -4502,9 +4516,9 @@ var OakCard = function (_a) {
|
|
|
4502
4516
|
React__default.default.createElement(OakSpan, { "$font": "heading-light-7" }, linkText),
|
|
4503
4517
|
React__default.default.createElement(OakIcon, { iconName: linkIconName, alt: "", "$width": "spacing-24", "$height": "spacing-24" }))))))));
|
|
4504
4518
|
};
|
|
4505
|
-
var templateObject_1$
|
|
4519
|
+
var templateObject_1$Q, templateObject_2$l, templateObject_3$g, templateObject_4$9, templateObject_5$7, templateObject_6$5;
|
|
4506
4520
|
|
|
4507
|
-
var BreadcrumbsUl = styled__default.default("ul")(templateObject_1$
|
|
4521
|
+
var BreadcrumbsUl = styled__default.default("ul")(templateObject_1$P || (templateObject_1$P = 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
4522
|
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"));
|
|
4509
4523
|
function OakBreadcrumbText(props) {
|
|
4510
4524
|
return (React__default.default.createElement(OakBox, tslib.__assign({ "$whiteSpace": "nowrap", "$textOverflow": "ellipsis", "$minWidth": "spacing-0", "$overflow": "hidden" }, props), props.children));
|
|
@@ -4525,9 +4539,9 @@ var OakBreadcrumbs = function (_a) {
|
|
|
4525
4539
|
React__default.default.createElement(OakBreadcrumbText, null, breadcrumb.text)))));
|
|
4526
4540
|
}))));
|
|
4527
4541
|
};
|
|
4528
|
-
var templateObject_1$
|
|
4542
|
+
var templateObject_1$P, templateObject_2$k;
|
|
4529
4543
|
|
|
4530
|
-
var StyledAccordionButton$2 = styled__default.default(InternalAccordionButton)(templateObject_1$
|
|
4544
|
+
var StyledAccordionButton$2 = styled__default.default(InternalAccordionButton)(templateObject_1$O || (templateObject_1$O = 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"));
|
|
4531
4545
|
/**
|
|
4532
4546
|
* Internal accordion component that handles the accordion logic
|
|
4533
4547
|
*/
|
|
@@ -4564,16 +4578,17 @@ var OakResourcesAccordion = function (_a) {
|
|
|
4564
4578
|
return (React__default.default.createElement(InternalAccordionProvider, { isInitialOpen: initialOpen },
|
|
4565
4579
|
React__default.default.createElement(Accordion$2, tslib.__assign({}, props))));
|
|
4566
4580
|
};
|
|
4567
|
-
var templateObject_1$
|
|
4581
|
+
var templateObject_1$O;
|
|
4568
4582
|
|
|
4569
|
-
var StyledSvg = styled__default.default.svg(templateObject_1$
|
|
4583
|
+
var StyledSvg = styled__default.default.svg(templateObject_1$N || (templateObject_1$N = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), sizeStyle);
|
|
4570
4584
|
var SurfingStudentSVG = function (props) {
|
|
4571
4585
|
return (React__default.default.createElement(OakBox, tslib.__assign({}, props),
|
|
4572
4586
|
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" },
|
|
4573
4587
|
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" }))));
|
|
4574
4588
|
};
|
|
4575
|
-
var templateObject_1$
|
|
4589
|
+
var templateObject_1$N;
|
|
4576
4590
|
|
|
4591
|
+
var NegativeSpacingJauntyAngleLabel = styled__default.default(OakJauntyAngleLabel)(templateObject_1$M || (templateObject_1$M = tslib.__makeTemplateObject(["\n top: -15px;\n"], ["\n top: -15px;\n"])));
|
|
4577
4592
|
var OakInlineRegistrationBanner = function (props) {
|
|
4578
4593
|
var onSubmit = props.onSubmit, bodyText = props.bodyText, headerText = props.headerText, style = tslib.__rest(props, ["onSubmit", "bodyText", "headerText"]);
|
|
4579
4594
|
var _a = tslib.__read(React.useState(""), 2), email = _a[0], setEmail = _a[1];
|
|
@@ -4617,12 +4632,13 @@ var OakInlineRegistrationBanner = function (props) {
|
|
|
4617
4632
|
React__default.default.createElement(OakFieldError, null, formError && "Please enter a valid email address"),
|
|
4618
4633
|
React__default.default.createElement(OakFlex, { "$gap": "spacing-16", "$position": "relative", "$width": "100%", "$mt": "spacing-24" },
|
|
4619
4634
|
React__default.default.createElement(OakBox, { "$position": "relative", "$width": "100%" },
|
|
4620
|
-
React__default.default.createElement(
|
|
4635
|
+
React__default.default.createElement(NegativeSpacingJauntyAngleLabel, { label: "Email", "$position": "absolute", "$zIndex": "in-front", "$background": formError ? "bg-error" : "bg-decorative5-main", "$color": formError ? "text-inverted" : "text-primary", "$width": "max-content", "$ph": "spacing-16", "$font": "heading-7", "$left": "spacing-8" }),
|
|
4621
4636
|
React__default.default.createElement(OakTextInput, { type: "email", autoComplete: "email", placeholder: "Enter email address", "$maxHeight": "spacing-56", value: email, onChange: function (event) { return setEmail(event.target.value); }, wrapperWidth: "100%" })),
|
|
4622
4637
|
React__default.default.createElement(OakPrimaryButton, { innerWidth: "max-content" }, "Sign up")),
|
|
4623
4638
|
success && (React__default.default.createElement(OakP, { "$font": "body-1-bold", "$mt": "spacing-16" }, "Thank you for signing up")))),
|
|
4624
4639
|
React__default.default.createElement(SurfingStudentSVG, { "$display": ["none", "block", "block"] }))));
|
|
4625
4640
|
};
|
|
4641
|
+
var templateObject_1$M;
|
|
4626
4642
|
|
|
4627
4643
|
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"); });
|
|
4628
4644
|
var OakTeacherNotesInline = function (_a) {
|
|
@@ -4829,7 +4845,7 @@ function getIconBackground(iconBackground) {
|
|
|
4829
4845
|
: "bg-decorative3-main";
|
|
4830
4846
|
}
|
|
4831
4847
|
|
|
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
|
|
4848
|
+
var StyledLayoutBox$1 = styled__default.default(OakFlex)(templateObject_2$i || (templateObject_2$i = tslib.__makeTemplateObject(["\n @media (min-width: ", "px) {\n ", "\n }\n"], ["\n @media (min-width: ", "px) {\n ", "\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)); });
|
|
4833
4849
|
/**
|
|
4834
4850
|
* Provides overall page layout and colours for the pupil journey
|
|
4835
4851
|
*
|
|
@@ -4858,7 +4874,7 @@ var OakPupilJourneyLayout = function (_a) {
|
|
|
4858
4874
|
return "bg-decorative1-main";
|
|
4859
4875
|
}
|
|
4860
4876
|
})();
|
|
4861
|
-
return (React__default.default.createElement(StyledLayoutBox$1, { "$background": backgroundColor, "$flexDirection": "column", "$alignItems": "center", "$ph": ["spacing-12", "spacing-24"], sectionName: sectionName, phase: phase },
|
|
4877
|
+
return (React__default.default.createElement(StyledLayoutBox$1, { "$background": backgroundColor, "$flexDirection": "column", "$alignItems": "center", "$ph": ["spacing-12", "spacing-24"], "$sectionName": sectionName, "$phase": phase },
|
|
4862
4878
|
topNavSlot && (React__default.default.createElement(OakFlex, { "$height": ["spacing-80", "spacing-92", "spacing-120"], "$alignItems": "center", "$width": ["100%", "100%", "spacing-1280"] }, topNavSlot)),
|
|
4863
4879
|
children));
|
|
4864
4880
|
};
|
|
@@ -4945,7 +4961,7 @@ var FlexedOakBox$1 = styled__default.default(OakBox)(templateObject_7$2 || (temp
|
|
|
4945
4961
|
* Enables navigation to the given section of a lesson as well as displaying current progress
|
|
4946
4962
|
*/
|
|
4947
4963
|
var OakPupilJourneyListItem = function (props) {
|
|
4948
|
-
var as = props.as; props.lessonSectionName; props.progress; var disabled = props.disabled, href = props.href, unavailable = props.unavailable, onClick = props.onClick
|
|
4964
|
+
var as = props.as; props.lessonSectionName; props.progress; var disabled = props.disabled, href = props.href, unavailable = props.unavailable, onClick = props.onClick; props.numberOfLessons; var rest = tslib.__rest(props, ["as", "lessonSectionName", "progress", "disabled", "href", "unavailable", "onClick", "numberOfLessons"]);
|
|
4949
4965
|
var disabledOrUnavailable = disabled || unavailable;
|
|
4950
4966
|
return (React__default.default.createElement(OakBox, { role: "listitem" },
|
|
4951
4967
|
React__default.default.createElement(StyledPupilJourneyItem, tslib.__assign({ className: disabledOrUnavailable ? undefined : "pupil-journey-item", as: disabledOrUnavailable ? "div" : (as !== null && as !== void 0 ? as : "a"), "$gap": ["spacing-16", "spacing-32"], "$alignItems": "center", "$justifyContent": "space-between", "$flexWrap": "wrap", "$background": unavailable ? "bg-neutral" : "bg-primary", "$pa": ["spacing-20", "spacing-24"], "$borderRadius": "border-radius-m", "$ba": unavailable ? "border-solid-m" : "border-solid-none", "$borderColor": unavailable ? "border-neutral-lighter" : "transparent", "$disabled": disabledOrUnavailable, "$color": "text-primary", href: disabledOrUnavailable ? undefined : href, onClick: disabledOrUnavailable ? undefined : onClick }, rest),
|
|
@@ -5225,7 +5241,7 @@ var lessonSectionNames = [
|
|
|
5225
5241
|
* `OakBox` does not support space-between tokens on `padding` only `margin`, so we need to
|
|
5226
5242
|
* set it here to apply appropriate padding to the top of the content.
|
|
5227
5243
|
*/
|
|
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
|
|
5244
|
+
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
5245
|
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"])));
|
|
5230
5246
|
/**
|
|
5231
5247
|
* Provides overall page layout and colours for the sections of a lesson.
|
|
@@ -5233,7 +5249,7 @@ var StickyFooter = styled__default.default(OakBox)(templateObject_3$c || (templa
|
|
|
5233
5249
|
var OakLessonLayout = function (_a) {
|
|
5234
5250
|
var lessonSectionName = _a.lessonSectionName, _b = _a.phase, phase = _b === void 0 ? "primary" : _b, _c = _a.celebrate, celebrate = _c === void 0 ? false : _c, topNavSlot = _a.topNavSlot, bottomNavSlot = _a.bottomNavSlot, children = _a.children;
|
|
5235
5251
|
var _d = tslib.__read(pickSectionColours(lessonSectionName, phase), 4), pageBackgroundColor = _d[0], contentBackgroundColor = _d[1], contentBorderColor = _d[2], mobileContentBackgroundColor = _d[3];
|
|
5236
|
-
return (React__default.default.createElement(StyledLayoutBox, { "$display": "flex", "$width": "100%", "$minHeight": "100%", "$ph": ["spacing-0", "spacing-24"], "$background": pageBackgroundColor, sectionName: lessonSectionName, celebrate: celebrate, phase: phase },
|
|
5252
|
+
return (React__default.default.createElement(StyledLayoutBox, { "$display": "flex", "$width": "100%", "$minHeight": "100%", "$ph": ["spacing-0", "spacing-24"], "$background": pageBackgroundColor, "$sectionName": lessonSectionName, "$celebrate": celebrate, "$phase": phase },
|
|
5237
5253
|
React__default.default.createElement(OakFlex, { "$flexDirection": "column", "$flexGrow": 1, "$background": [mobileContentBackgroundColor, "transparent"], "$maxWidth": "spacing-1280", "$minHeight": "100%", "$mh": "auto", "$position": "relative" },
|
|
5238
5254
|
React__default.default.createElement(OakBox, { "$display": ["none", "block"] },
|
|
5239
5255
|
React__default.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 1308 943", fill: "none", style: {
|
|
@@ -5532,8 +5548,8 @@ var templateObject_1$y, templateObject_2$d, templateObject_3$a;
|
|
|
5532
5548
|
|
|
5533
5549
|
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"])));
|
|
5534
5550
|
var ReviewItemContainer = function (props) {
|
|
5535
|
-
var children = props.children, rest = tslib.__rest(props, ["children"]);
|
|
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));
|
|
5551
|
+
var children = props.children, dataTestId = props["data-testid"], rest = tslib.__rest(props, ["children", "data-testid"]);
|
|
5552
|
+
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", "data-testid": dataTestId }, rest), children));
|
|
5537
5553
|
};
|
|
5538
5554
|
var ReviewItemTitleSection = function (props) {
|
|
5539
5555
|
var sectionHeader = props.sectionHeader, completed = props.completed, summaryForIncomplete = props.summaryForIncomplete;
|
|
@@ -5544,7 +5560,7 @@ var ReviewItemTitleSection = function (props) {
|
|
|
5544
5560
|
"Completed")))));
|
|
5545
5561
|
};
|
|
5546
5562
|
var OakLessonReviewQuiz = function (props) {
|
|
5547
|
-
var completed = props.completed, lessonSectionName = props.lessonSectionName, resultsSlot = props.resultsSlot,
|
|
5563
|
+
var completed = props.completed, lessonSectionName = props.lessonSectionName, resultsSlot = props.resultsSlot, numQuestions = props.numQuestions, grade = props.grade, dataTestId = props["data-testid"];
|
|
5548
5564
|
var _a = tslib.__read(lessonSectionName === "starter-quiz"
|
|
5549
5565
|
? [
|
|
5550
5566
|
"bg-decorative1-very-subdued",
|
|
@@ -5557,20 +5573,20 @@ var OakLessonReviewQuiz = function (props) {
|
|
|
5557
5573
|
"bg-decorative5-main",
|
|
5558
5574
|
], 3), completedBackgroundColor = _a[0], borderColor = _a[1], iconBackgroundColor = _a[2];
|
|
5559
5575
|
var summaryForIncomplete = lessonSectionName === "starter-quiz"
|
|
5560
|
-
? "Activate - ".concat(
|
|
5561
|
-
: "Check - ".concat(
|
|
5576
|
+
? "Activate - ".concat(numQuestions, " questions")
|
|
5577
|
+
: "Check - ".concat(numQuestions, " questions");
|
|
5562
5578
|
var resultsToggleAriaLabel = lessonSectionName === "starter-quiz"
|
|
5563
5579
|
? "Starter quiz results"
|
|
5564
5580
|
: "Exit quiz results";
|
|
5565
|
-
return (React__default.default.createElement(ReviewItemContainer,
|
|
5581
|
+
return (React__default.default.createElement(ReviewItemContainer, { "$background": completed ? completedBackgroundColor : "bg-primary", "$borderColor": completed ? completedBackgroundColor : borderColor, "data-testid": dataTestId },
|
|
5566
5582
|
React__default.default.createElement(OakFlex, { "$gap": "spacing-24", "$alignItems": "center" },
|
|
5567
5583
|
React__default.default.createElement(OakRoundIcon, { iconName: "quiz", "$width": "spacing-56", "$height": "spacing-56", "$background": iconBackgroundColor }),
|
|
5568
5584
|
React__default.default.createElement(ReviewItemTitleSection, { sectionHeader: lessonSectionName === "exit-quiz" ? "Exit quiz" : "Starter quiz", completed: completed, summaryForIncomplete: summaryForIncomplete }),
|
|
5569
5585
|
completed && (React__default.default.createElement(OakBox, null,
|
|
5570
|
-
React__default.default.createElement(OakSpan, { "$font": "heading-4" },
|
|
5586
|
+
React__default.default.createElement(OakSpan, { "$font": "heading-4" }, grade),
|
|
5571
5587
|
React__default.default.createElement(OakSpan, { "$font": "heading-6" },
|
|
5572
5588
|
"\u00A0/\u00A0",
|
|
5573
|
-
|
|
5589
|
+
numQuestions)))),
|
|
5574
5590
|
completed && (React__default.default.createElement(InternalReviewAccordion, { initialOpen: false, id: "quiz-review-accordion-".concat(lessonSectionName), toggleButtonAriaLabel: resultsToggleAriaLabel }, resultsSlot))));
|
|
5575
5591
|
};
|
|
5576
5592
|
var templateObject_1$x;
|
|
@@ -5600,14 +5616,14 @@ var OakLessonReviewIntroVideo = function (props) {
|
|
|
5600
5616
|
|
|
5601
5617
|
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"])));
|
|
5602
5618
|
var OakLessonReviewItem = function (props) {
|
|
5603
|
-
var completed = props.completed, lessonSectionName = props.lessonSectionName
|
|
5619
|
+
var completed = props.completed, lessonSectionName = props.lessonSectionName;
|
|
5604
5620
|
var _a = tslib.__read(pickColorsForSection(lessonSectionName), 3), completedBackgroundColor = _a[0], borderColor = _a[1], iconBackgroundColor = _a[2];
|
|
5605
5621
|
var lessonSectionNameToIconMap = new Map();
|
|
5606
5622
|
lessonSectionNameToIconMap.set("intro", "intro");
|
|
5607
5623
|
lessonSectionNameToIconMap.set("starter-quiz", "quiz");
|
|
5608
5624
|
lessonSectionNameToIconMap.set("exit-quiz", "quiz");
|
|
5609
5625
|
lessonSectionNameToIconMap.set("video", "video");
|
|
5610
|
-
return (React__default.default.createElement(StyledLessonReviewItem,
|
|
5626
|
+
return (React__default.default.createElement(StyledLessonReviewItem, { "$completed": completed, "$gap": "spacing-24", "$alignItems": "center", "$background": completed ? completedBackgroundColor : "bg-primary", "$ph": ["spacing-16", "spacing-24"], "$pv": "spacing-20", "$borderRadius": "border-radius-l", "$borderColor": completed ? completedBackgroundColor : borderColor, "$ba": "border-solid-l", "data-testid": props["data-testid"] },
|
|
5611
5627
|
React__default.default.createElement(OakRoundIcon, { iconName: lessonSectionNameToIconMap.get(lessonSectionName), "$width": "spacing-56", "$height": "spacing-56", "$background": iconBackgroundColor }),
|
|
5612
5628
|
React__default.default.createElement(OakFlex, { "$flexGrow": 1, "$flexShrink": 1, "$flexDirection": "column" },
|
|
5613
5629
|
React__default.default.createElement(OakBox, { "$font": ["heading-6", "heading-5"], "$color": "text-primary" }, pickLabelForSection(lessonSectionName)),
|
|
@@ -5792,7 +5808,7 @@ var OakQuizCheckBox = function (props) {
|
|
|
5792
5808
|
var feedbackBgColor = showTick ? "bg-correct" : "bg-incorrect";
|
|
5793
5809
|
var feedbackBorderColor = showTick ? "border-success" : "border-error";
|
|
5794
5810
|
var inputCheckbox = (React__default.default.createElement(StyledFlexBox, { "$pa": "spacing-20", "$borderRadius": "border-radius-m2", "$borderColor": isHighlighted ? "border-decorative5-stronger" : "border-primary", "$background": disabled && !isFeedback ? "bg-neutral-stronger" : "bg-primary", "$flexGrow": 1, onClick: handleContainerClick, "$overlayBorderColor": isFeedback ? feedbackBorderColor : "text-disabled", "$feedbackBgColor": isFeedback ? feedbackBgColor : undefined, "$outlineColor": isHighlighted ? "border-decorative5-stronger" : "transparent" },
|
|
5795
|
-
React__default.default.createElement(InternalCheckBoxLabelHoverDecor, { pointerEvents: "none", htmlFor: id, labelGap: "spacing-16", labelAlignItems: "center", "$color": disabled && !isFeedback ? "text-disabled" : "text-primary", "$font": "body-1", disabled: disabled },
|
|
5811
|
+
React__default.default.createElement(InternalCheckBoxLabelHoverDecor, { pointerEvents: "none", htmlFor: id, "$labelGap": "spacing-16", "$labelAlignItems": "center", "$color": disabled && !isFeedback ? "text-disabled" : "text-primary", "$font": "body-1", disabled: disabled },
|
|
5796
5812
|
React__default.default.createElement(InternalCheckBoxWrapper, { size: "spacing-32", iconPadding: "spacing-4", checkedIcon: React__default.default.createElement(OakBox, { "$width": "100%", "$height": "100%", "$background": disabled || isFeedback ? "text-disabled" : "text-primary" },
|
|
5797
5813
|
React__default.default.createElement(OakBox, { "$ba": "border-solid-m", "$borderColor": "icon-inverted", "$width": "100%", "$height": "100%" })), internalCheckbox: React__default.default.createElement(StyledInternalCheckBox, tslib.__assign({ id: id, value: value, disabled: disabled || isFeedback }, rest, { "$width": "spacing-32", "$height": "spacing-32", "$ba": "border-solid-m", "$borderColor": "border-neutral", "$borderRadius": "border-radius-s", "$background": isHighlighted ? "bg-decorative5-main" : "bg-primary", "$checkedBackground": null, ref: inputRef })) }),
|
|
5798
5814
|
image ? imageContainer : displayValue),
|
|
@@ -6544,10 +6560,12 @@ var StyledOakIndexBox$2 = styled__default.default(OakFlex)(templateObject_5$3 ||
|
|
|
6544
6560
|
* OakUnitsListItem component used as links for unit cards
|
|
6545
6561
|
*/
|
|
6546
6562
|
var OakUnitListItem = function (props) {
|
|
6547
|
-
var lessonCount = props.lessonCount, href = props.href, unavailable = props.unavailable, onClick = props.onClick, index = props.index, isLegacy = props.isLegacy, firstItemRef = props.firstItemRef, _a = props.as, as = _a === void 0 ? "a" : _a
|
|
6563
|
+
var lessonCount = props.lessonCount, href = props.href, unavailable = props.unavailable, onClick = props.onClick, index = props.index, isLegacy = props.isLegacy, firstItemRef = props.firstItemRef, _a = props.as, as = _a === void 0 ? "a" : _a; props.yearTitle; var rest = tslib.__rest(props, ["lessonCount", "href", "unavailable", "onClick", "index", "isLegacy", "firstItemRef", "as", "yearTitle"]);
|
|
6548
6564
|
return (React__default.default.createElement(OakLI, { "$listStyle": "none", "$width": "100%" },
|
|
6549
6565
|
React__default.default.createElement(StyledUnitListItem, tslib.__assign({ "$alignItems": "center", "$background": unavailable ? "bg-neutral" : "bg-primary", "$borderRadius": "border-radius-m", "$disabled": unavailable, "$pr": "spacing-16", "$width": "100%", "$display": ["none", "flex"] }, rest),
|
|
6550
|
-
React__default.default.createElement(FlexWithFocus$1, { "$pr": "spacing-0", "$borderRadius": "border-radius-m", "$gap": "spacing-16", "$alignItems": "center", "$width": "100%", "$height": "100%",
|
|
6566
|
+
React__default.default.createElement(FlexWithFocus$1, { "$pr": "spacing-0", "$borderRadius": "border-radius-m", "$gap": "spacing-16", "$alignItems": "center", "$width": "100%", "$height": "100%",
|
|
6567
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6568
|
+
as: as, href: unavailable ? undefined : href, ref: firstItemRef, onClick: unavailable ? undefined : onClick },
|
|
6551
6569
|
React__default.default.createElement(StyledOakIndexBox$2, { "$background": unavailable
|
|
6552
6570
|
? "bg-neutral-stronger"
|
|
6553
6571
|
: isLegacy
|
|
@@ -6563,7 +6581,9 @@ var OakUnitListItem = function (props) {
|
|
|
6563
6581
|
React__default.default.createElement(OakIcon, { iconName: "chevron-right", iconWidth: "spacing-32", "$colorFilter": unavailable ? "text-disabled" : "text-primary" })))),
|
|
6564
6582
|
React__default.default.createElement(StyledUnitListItem, tslib.__assign({ "$background": unavailable ? "bg-neutral" : "bg-primary", "$borderRadius": "border-radius-m", "$disabled": unavailable, "$display": ["flex", "none"], "$width": "100%", "$pa": "spacing-16" }, rest),
|
|
6565
6583
|
React__default.default.createElement(OakFlex, { "$flexDirection": "column", "$gap": "spacing-16", "$width": "100%" },
|
|
6566
|
-
React__default.default.createElement(OakFlex, { "$gap": "spacing-16",
|
|
6584
|
+
React__default.default.createElement(OakFlex, { "$gap": "spacing-16",
|
|
6585
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6586
|
+
as: as, href: unavailable ? undefined : href },
|
|
6567
6587
|
React__default.default.createElement(OakFlex, { "$background": unavailable
|
|
6568
6588
|
? "bg-neutral-stronger"
|
|
6569
6589
|
: isLegacy
|
|
@@ -6626,7 +6646,7 @@ var StyledUnitHeading = function (_a) {
|
|
|
6626
6646
|
* OakUnitsListOptionalityItem component used as links for unit cards with optionality
|
|
6627
6647
|
*/
|
|
6628
6648
|
var OakUnitListOptionalityItem = function (props) {
|
|
6629
|
-
var unavailable = props.unavailable, index = props.index, optionalityUnits = props.optionalityUnits, nullTitle = props.nullTitle, firstItemRef = props.firstItemRef; props.onSave; props.getIsSaved; props.getIsSaving; var rest = tslib.__rest(props, ["unavailable", "index", "optionalityUnits", "nullTitle", "firstItemRef", "onSave", "getIsSaved", "getIsSaving"]);
|
|
6649
|
+
var unavailable = props.unavailable, index = props.index, optionalityUnits = props.optionalityUnits, nullTitle = props.nullTitle, firstItemRef = props.firstItemRef; props.onSave; props.getIsSaved; props.getIsSaving; props.yearTitle; var rest = tslib.__rest(props, ["unavailable", "index", "optionalityUnits", "nullTitle", "firstItemRef", "onSave", "getIsSaved", "getIsSaving", "yearTitle"]);
|
|
6630
6650
|
return (React__default.default.createElement(OakFlex, tslib.__assign({ "$flexDirection": ["column", "row", "row"], "$width": "100%", as: "li", "$background": "bg-primary", "$borderRadius": "border-radius-m" }, rest),
|
|
6631
6651
|
React__default.default.createElement(OakFlex, { "$display": ["flex", "none"], "$ph": "spacing-16", "$pt": "spacing-16", "$gap": "spacing-16" },
|
|
6632
6652
|
React__default.default.createElement(UnitIndex, { unavailable: unavailable, "$bbrr": "border-radius-s", "$btrr": "border-radius-s" }, index),
|
|
@@ -6815,8 +6835,8 @@ var OakStaticMessageCard = function (props) {
|
|
|
6815
6835
|
};
|
|
6816
6836
|
|
|
6817
6837
|
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) {
|
|
6818
|
-
var hasAnimation = _a
|
|
6819
|
-
return hasAnimation ? "background-fade 2s ease-in-out" : "none";
|
|
6838
|
+
var $hasAnimation = _a.$hasAnimation;
|
|
6839
|
+
return $hasAnimation ? "background-fade 2s ease-in-out" : "none";
|
|
6820
6840
|
}, parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), parseColor("bg-decorative1-main"), parseColor("bg-primary"));
|
|
6821
6841
|
/**
|
|
6822
6842
|
* @deprecated Use `<OakCard />` instead
|
|
@@ -6836,7 +6856,7 @@ var StyledOakFlexAsLink = styled__default.default(OakFlex)(templateObject_1$h ||
|
|
|
6836
6856
|
*/
|
|
6837
6857
|
var OakLinkCard = function (_a) {
|
|
6838
6858
|
var mainSection = _a.mainSection, _b = _a.iconName, iconName = _b === void 0 ? "books" : _b, _c = _a.iconAlt, iconAlt = _c === void 0 ? "" : _c, _d = _a.iconColor, iconColor = _d === void 0 ? "icon-primary" : _d, _e = _a.iconFill, iconFill = _e === void 0 ? "bg-decorative1-main" : _e, href = _a.href, _f = _a.showNew, showNew = _f === void 0 ? false : _f, _g = _a.hasAnimation, hasAnimation = _g === void 0 ? false : _g, _h = _a.narrow, narrow = _h === void 0 ? false : _h;
|
|
6839
|
-
return (React__default.default.createElement(StyledOakFlexAsLink, { hasAnimation: hasAnimation, as: "a", href: href, "$flexDirection": narrow ? "column-reverse" : ["column-reverse", "row"], "$alignItems": narrow ? "flex-start" : ["flex-start", "center"], "$justifyContent": "space-between", "$gap": "spacing-32", "$background": "bg-primary", "$pa": "spacing-24", "$borderRadius": "border-radius-m2", "$width": "100%", "$dropShadow": "drop-shadow-centred-standard" },
|
|
6859
|
+
return (React__default.default.createElement(StyledOakFlexAsLink, { "$hasAnimation": hasAnimation, as: "a", href: href, "$flexDirection": narrow ? "column-reverse" : ["column-reverse", "row"], "$alignItems": narrow ? "flex-start" : ["flex-start", "center"], "$justifyContent": "space-between", "$gap": "spacing-32", "$background": "bg-primary", "$pa": "spacing-24", "$borderRadius": "border-radius-m2", "$width": "100%", "$dropShadow": "drop-shadow-centred-standard" },
|
|
6840
6860
|
React__default.default.createElement(OakBox, { "$width": "100%" }, mainSection),
|
|
6841
6861
|
React__default.default.createElement(OakBox, { "$position": "relative" },
|
|
6842
6862
|
React__default.default.createElement(OakHandDrawnCardWithIcon, { iconName: iconName, alt: iconAlt, iconWidth: narrow ? ["spacing-64"] : ["spacing-64", "spacing-100"], iconHeight: narrow ? ["spacing-64"] : ["spacing-64", "spacing-100"], "$width": narrow ? ["spacing-80"] : ["spacing-80", "spacing-160"], "$height": narrow ? ["spacing-80"] : ["spacing-80", "spacing-160"], fill: iconFill, iconColor: iconColor }),
|
|
@@ -6867,7 +6887,7 @@ var OakMediaClipListAccordion = function (_a) {
|
|
|
6867
6887
|
};
|
|
6868
6888
|
var templateObject_1$g;
|
|
6869
6889
|
|
|
6870
|
-
var StyledInternalButton$1 = styled__default.default(InternalButton)(templateObject_1$f || (templateObject_1$f = tslib.__makeTemplateObject(["\n
|
|
6890
|
+
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"));
|
|
6871
6891
|
var OakSaveCount = function (_a) {
|
|
6872
6892
|
var count = _a.count, href = _a.href, loading = _a.loading, _b = _a.label, label = _b === void 0 ? "My library" : _b;
|
|
6873
6893
|
var hasCount = typeof count === "number";
|
|
@@ -7016,7 +7036,7 @@ var UnstyledComponent$1 = function (props) {
|
|
|
7016
7036
|
var OakHeaderHero = styled__default.default(UnstyledComponent$1)(templateObject_3$4 || (templateObject_3$4 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), OakHeaderHeroCss);
|
|
7017
7037
|
var templateObject_1$c, templateObject_2$5, templateObject_3$4;
|
|
7018
7038
|
|
|
7019
|
-
var StyledButton = styled__default.default(InternalButton)(templateObject_1$b || (templateObject_1$b = tslib.__makeTemplateObject(["\n
|
|
7039
|
+
var StyledButton = styled__default.default(InternalButton)(templateObject_1$b || (templateObject_1$b = tslib.__makeTemplateObject(["\n &:hover .buttonText {\n text-decoration: underline;\n color: ", ";\n }\n\n &:focus .focusUnderlineSvg {\n display: block;\n filter: ", "\n drop-shadow(", ");\n transform: rotate(-2deg);\n }\n\n &:focus .activeUnderline {\n display: none;\n }\n\n &:focus .focusUnderline {\n display: block;\n }\n .activeUnderlineSvg,\n .focusUnderlineSvg {\n position: absolute;\n bottom: 0;\n }\n"], ["\n &:hover .buttonText {\n text-decoration: underline;\n color: ", ";\n }\n\n &:focus .focusUnderlineSvg {\n display: block;\n filter: ", "\n drop-shadow(", ");\n transform: rotate(-2deg);\n }\n\n &:focus .activeUnderline {\n display: none;\n }\n\n &:focus .focusUnderline {\n display: block;\n }\n .activeUnderlineSvg,\n .focusUnderlineSvg {\n position: absolute;\n bottom: 0;\n }\n"])), parseColor("text-primary"), parseColorFilter("icon-promo"), parseDropShadow("drop-shadow-black"));
|
|
7020
7040
|
var OakHomepageTabButton = function (props) {
|
|
7021
7041
|
var _a = props.element, element = _a === void 0 ? "button" : _a, iconName = props.iconName, isActive = props.isActive, title = props.title, showNewIcon = props.showNewIcon, rest = tslib.__rest(props, ["element", "iconName", "isActive", "title", "showNewIcon"]);
|
|
7022
7042
|
var color = isActive ? "text-primary" : "text-subdued";
|
|
@@ -7138,7 +7158,7 @@ var OakMediaClip = function (_a) {
|
|
|
7138
7158
|
React__default.default.createElement(MediaButtonWrapper, { "$position": "relative", "$borderRadius": "border-radius-s" },
|
|
7139
7159
|
React__default.default.createElement(OakBox, { className: "grey-shadow", "$position": "absolute", "$borderRadius": "border-radius-s", "$width": "100%", "$height": "100%", "$top": "spacing-0" }),
|
|
7140
7160
|
React__default.default.createElement(OakBox, { className: "yellow-shadow", "$position": "absolute", "$borderRadius": "border-radius-s", "$width": "100%", "$height": "100%", "$top": "spacing-0" }),
|
|
7141
|
-
React__default.default.createElement(StyledInternalButton, { element: element, tabIndex: 0, className: "internal-button", "$width": "100%", "$height": "100%", "$background": buttonStyles.defaultBackground, "$borderColor": "transparent", "$borderRadius": "border-radius-s", "$position": "relative", disabled: disabled, "$defaultBorderColor": "transparent", "$color": buttonStyles.defaultTextColor, "$hoverBackground": buttonStyles.hoverBackground, "$hoverBorderColor": "transparent", "$hoverTextColor": "text-primary", "$disabledBackground": "bg-btn-secondary-disabled", "$disabledBorderColor": "text-disabled", "$disabledTextColor": "text-disabled", "$justifyContent": "flex-start", onClick: onClick, "$pa": "spacing-8", "$muxPlayingState": muxPlayingState, "aria-label": buttonAriaLabel },
|
|
7161
|
+
React__default.default.createElement(StyledInternalButton, { element: element, tabIndex: 0, className: "internal-button", "$width": "100%", "$height": "100%", "$background": buttonStyles.defaultBackground, "$defaultTextColor": buttonStyles.defaultTextColor, "$defaultBackground": buttonStyles.defaultBackground, "$borderColor": "transparent", "$borderRadius": "border-radius-s", "$position": "relative", disabled: disabled, "$defaultBorderColor": "transparent", "$color": buttonStyles.defaultTextColor, "$hoverBackground": buttonStyles.hoverBackground, "$hoverBorderColor": "transparent", "$hoverTextColor": "text-primary", "$disabledBackground": "bg-btn-secondary-disabled", "$disabledBorderColor": "text-disabled", "$disabledTextColor": "text-disabled", "$justifyContent": "flex-start", onClick: onClick, "$pa": "spacing-8", "$muxPlayingState": muxPlayingState, "aria-label": buttonAriaLabel },
|
|
7142
7162
|
React__default.default.createElement(OakFlex, { "$flexDirection": "row", "$alignItems": "center", "$width": "100%" },
|
|
7143
7163
|
React__default.default.createElement(React__default.default.Fragment, null,
|
|
7144
7164
|
React__default.default.createElement(ImageBox, { "$height": "spacing-56", "$width": "spacing-100", "$borderRadius": "border-radius-xs", "$mr": "spacing-16", "$position": "relative", disabled: disabled, "$flexShrink": 0 },
|
|
@@ -7206,19 +7226,19 @@ var templateObject_1$8, templateObject_2$2, templateObject_3$1;
|
|
|
7206
7226
|
*
|
|
7207
7227
|
*/
|
|
7208
7228
|
|
|
7209
|
-
var StyledLink = styled__default.default("a")(templateObject_1$7 || (templateObject_1$7 = tslib.__makeTemplateObject(["\n text-decoration: none;\n display: flex;\n outline: none;\n background-color: ", ";\n\n @media (min-width: ", "px) {\n border-left: ", ";\n
|
|
7210
|
-
return props
|
|
7229
|
+
var StyledLink = styled__default.default("a")(templateObject_1$7 || (templateObject_1$7 = tslib.__makeTemplateObject(["\n text-decoration: none;\n display: flex;\n outline: none;\n background-color: ", ";\n\n @media (min-width: ", "px) {\n border-left: ", ";\n &:hover {\n text-decoration: underline;\n border-color: ", ";\n }\n }\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n border-color: transparent;\n border-radius: 4px;\n }\n ", "\n ", "\n"], ["\n text-decoration: none;\n display: flex;\n outline: none;\n background-color: ", ";\n\n @media (min-width: ", "px) {\n border-left: ", ";\n &:hover {\n text-decoration: underline;\n border-color: ", ";\n }\n }\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n border-color: transparent;\n border-radius: 4px;\n }\n ", "\n ", "\n"])), function (props) {
|
|
7230
|
+
return props.$isSelected ? parseColor(props.$selectedBackground) : undefined;
|
|
7211
7231
|
}, getBreakpoint("small"), function (props) {
|
|
7212
|
-
return props
|
|
7232
|
+
return props.$isSelected ? "4px solid #222222" : "4px solid transparent";
|
|
7213
7233
|
}, function (props) {
|
|
7214
|
-
return props
|
|
7234
|
+
return props.$isSelected
|
|
7215
7235
|
? parseColor("bg-btn-primary-hover")
|
|
7216
|
-
: parseColor(props
|
|
7236
|
+
: parseColor(props.$hoverBorderColor);
|
|
7217
7237
|
}, parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), flexStyle, paddingStyle);
|
|
7218
7238
|
var OakSideMenuNavLinkCss = styled.css(templateObject_2$1 || (templateObject_2$1 = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), flexStyle, paddingStyle);
|
|
7219
7239
|
var UnstyledComponent = function (props) {
|
|
7220
7240
|
var item = props.item, isSelected = props.isSelected, onClick = props.onClick, _a = props.hoverBorderColor, hoverBorderColor = _a === void 0 ? "bg-decorative1-main" : _a, selectedBackground = props.selectedBackground, _b = props.selectedHeadingFont, selectedHeadingFont = _b === void 0 ? "heading-light-7" : _b, rest = tslib.__rest(props, ["item", "isSelected", "onClick", "hoverBorderColor", "selectedBackground", "selectedHeadingFont"]);
|
|
7221
|
-
return (React__default.default.createElement(StyledLink, tslib.__assign({ "$alignItems": ["center", "flex-start"], "$columnGap": "spacing-16", href: item.href, "$ph": ["spacing-0", "spacing-12"], isSelected: isSelected, hoverBorderColor: hoverBorderColor, selectedBackground: selectedBackground, "$flexDirection": ["row", "column"], onClick: onClick, "aria-current": isSelected ? "true" : undefined }, rest),
|
|
7241
|
+
return (React__default.default.createElement(StyledLink, tslib.__assign({ "$alignItems": ["center", "flex-start"], "$columnGap": "spacing-16", href: item.href, "$ph": ["spacing-0", "spacing-12"], "$isSelected": isSelected, "$hoverBorderColor": hoverBorderColor, "$selectedBackground": selectedBackground, "$flexDirection": ["row", "column"], onClick: onClick, "aria-current": isSelected ? "true" : undefined }, rest),
|
|
7222
7242
|
React__default.default.createElement(OakFlex, { "$flexDirection": ["row", "column"], "$columnGap": ["spacing-16", "spacing-4"], "$flexWrap": "wrap" },
|
|
7223
7243
|
React__default.default.createElement(OakSpan, { "$font": isSelected ? selectedHeadingFont : "heading-light-7", "$color": "text-primary" }, item.heading),
|
|
7224
7244
|
item.subheading && (React__default.default.createElement(OakSpan, { "$font": "body-3", "$color": "text-subdued", "$whiteSpace": "break-spaces" }, item.subheading))),
|