@oaknational/oak-components 3.7.0 → 3.8.0

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.
@@ -1550,6 +1550,24 @@ type OakRoundIconProps = IconProps | ImageProps;
1550
1550
  */
1551
1551
  declare const OakRoundIcon: ({ $background, $borderRadius, $width, $height, $pa, className, ...rest }: OakRoundIconProps) => React$1.JSX.Element;
1552
1552
 
1553
+ type InternalStyledSvgProps = {
1554
+ $fill?: ResponsiveValues<OakUiRoleToken>;
1555
+ $stroke?: ResponsiveValues<OakUiRoleToken>;
1556
+ $strokeWidth?: ResponsiveValues<OakBorderWidthToken>;
1557
+ };
1558
+
1559
+ type OakHandDrawnHRProps = {
1560
+ hrColor?: InternalStyledSvgProps["$fill"];
1561
+ } & SpacingStyleProps & SizeStyleProps;
1562
+ /**
1563
+ * A Drawn HR svg inside a flex container
1564
+ *
1565
+ * use prop hrColor to change the color of the HR
1566
+ *
1567
+ * change the sizeProps of the flex container to change the size and dimentions of the HR
1568
+ */
1569
+ declare const OakHandDrawnHR: (props: OakHandDrawnHRProps) => React$1.JSX.Element;
1570
+
1553
1571
  type OakSmallSecondaryButtonWithDropdownProps = {
1554
1572
  primaryActionText: string;
1555
1573
  primaryActionIcon?: OakIconName;
@@ -2612,6 +2630,7 @@ type OakRadioAsButtonProps = Omit<BaseRadioProps, "defaultChecked" | "id" | "che
2612
2630
  */
2613
2631
  keepIconColor?: boolean;
2614
2632
  disabled?: HTMLInputElement["disabled"];
2633
+ isSubdued?: boolean;
2615
2634
  "aria-labelledby"?: React$1.AriaAttributes["aria-labelledby"];
2616
2635
  "aria-label"?: React$1.AriaAttributes["aria-label"];
2617
2636
  /**
@@ -3254,12 +3273,6 @@ type OakFocusIndicatorProps = OakBoxProps & {
3254
3273
  */
3255
3274
  declare const OakFocusIndicator: any;
3256
3275
 
3257
- type InternalStyledSvgProps = {
3258
- $fill?: ResponsiveValues<OakUiRoleToken>;
3259
- $stroke?: ResponsiveValues<OakUiRoleToken>;
3260
- $strokeWidth?: ResponsiveValues<OakBorderWidthToken>;
3261
- };
3262
-
3263
3276
  type OakHandDrawnFocusUnderlineProps = {
3264
3277
  FocusUnderlineColor?: InternalStyledSvgProps["$fill"];
3265
3278
  } & SpacingStyleProps & SizeStyleProps;
@@ -3272,6 +3285,16 @@ type OakHandDrawnFocusUnderlineProps = {
3272
3285
  */
3273
3286
  declare const OakHandDrawnFocusUnderline: (props: OakHandDrawnFocusUnderlineProps) => React$1.JSX.Element;
3274
3287
 
3288
+ type OakPromoTagProps = {
3289
+ width?: SizeStyleProps["$width"];
3290
+ display?: DisplayStyleProps["$display"];
3291
+ variant?: "default" | "inverted";
3292
+ };
3293
+ /**
3294
+ * Renders a tag with the text "New"
3295
+ */
3296
+ declare const OakPromoTag: (props: OakPromoTagProps) => React$1.JSX.Element;
3297
+
3275
3298
  type OakAnchorTargetProps = PaddingStyleProps;
3276
3299
  /**
3277
3300
  * * AnchorTarget is a component to enable in-page linking to a particular section
@@ -4620,18 +4643,6 @@ type OakHandDrawnBoxWithIconProps = Omit<OakHandDrawnCardProps, "children"> & {
4620
4643
  */
4621
4644
  declare const OakHandDrawnCardWithIcon: ({ iconName, iconColor, iconWidth, iconHeight, alt, $width, $height, $alignItems, $justifyContent, ...props }: OakHandDrawnBoxWithIconProps) => React$1.JSX.Element;
4622
4645
 
4623
- type OakHandDrawnHRProps = {
4624
- hrColor?: InternalStyledSvgProps["$fill"];
4625
- } & SpacingStyleProps & SizeStyleProps;
4626
- /**
4627
- * A Drawn HR svg inside a flex container
4628
- *
4629
- * use prop hrColor to change the color of the HR
4630
- *
4631
- * change the sizeProps of the flex container to change the size and dimentions of the HR
4632
- */
4633
- declare const OakHandDrawnHR: (props: OakHandDrawnHRProps) => React$1.JSX.Element;
4634
-
4635
4646
  type OakInfoButtonProps = {
4636
4647
  onClick: MouseEventHandler;
4637
4648
  isOpen: boolean;
@@ -4766,16 +4777,6 @@ type OakOutlineAccordionProps = {
4766
4777
  */
4767
4778
  declare const OakOutlineAccordion: ({ header, children, id, initialOpen, ...styleProps }: OakOutlineAccordionProps) => React$1.JSX.Element;
4768
4779
 
4769
- type OakPromoTagProps = {
4770
- width?: SizeStyleProps["$width"];
4771
- display?: DisplayStyleProps["$display"];
4772
- variant?: "default" | "inverted";
4773
- };
4774
- /**
4775
- * Renders a tag with the text "New"
4776
- */
4777
- declare const OakPromoTag: (props: OakPromoTagProps) => React$1.JSX.Element;
4778
-
4779
4780
  type TileItem = {
4780
4781
  id: string;
4781
4782
  label: string;
@@ -35,7 +35,7 @@ var StyledFlexBox = styled(OakFlex)(templateObject_2 || (templateObject_2 = __ma
35
35
  }, parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), StyledOakIcon, parseColorFilter("icon-primary"), parseColor("bg-inverted"), parseColor("text-inverted"), StyledOakIcon, function (props) {
36
36
  return props.$keepIconColor ? "none" : parseColorFilter("text-inverted");
37
37
  });
38
- var getColorSchemeTokens = function (colorScheme) {
38
+ var getColorSchemeTokens = function (colorScheme, isSubdued) {
39
39
  switch (colorScheme) {
40
40
  case "primary":
41
41
  return {
@@ -55,9 +55,13 @@ var getColorSchemeTokens = function (colorScheme) {
55
55
  };
56
56
  default:
57
57
  return {
58
- background: "bg-".concat(colorScheme, "-main"),
58
+ background: isSubdued
59
+ ? "bg-".concat(colorScheme, "-very-subdued")
60
+ : "bg-".concat(colorScheme, "-main"),
59
61
  hoverBackground: "bg-".concat(colorScheme, "-very-subdued"),
60
- borderColor: "border-".concat(colorScheme),
62
+ borderColor: isSubdued
63
+ ? "border-neutral-lighter"
64
+ : "border-".concat(colorScheme),
61
65
  disabledBackground: "bg-btn-secondary-disabled",
62
66
  disabledBorderColor: "border-neutral-lighter",
63
67
  };
@@ -68,7 +72,7 @@ var getColorSchemeTokens = function (colorScheme) {
68
72
  */
69
73
  var OakRadioAsButton = function (props) {
70
74
  var id = useId();
71
- var value = props.value, disabled = props.disabled, innerRef = props.innerRef, displayValue = props.displayValue, onChange = props.onChange, keepIconColor = props.keepIconColor, _a = props.colorScheme, colorScheme = _a === void 0 ? "primary" : _a, width = props.width, rest = __rest(props, ["value", "disabled", "innerRef", "displayValue", "onChange", "keepIconColor", "colorScheme", "width"]);
75
+ var value = props.value, disabled = props.disabled, isSubdued = props.isSubdued, innerRef = props.innerRef, displayValue = props.displayValue, onChange = props.onChange, keepIconColor = props.keepIconColor, _a = props.colorScheme, colorScheme = _a === void 0 ? "primary" : _a, width = props.width, rest = __rest(props, ["value", "disabled", "isSubdued", "innerRef", "displayValue", "onChange", "keepIconColor", "colorScheme", "width"]);
72
76
  var _b = useContext(RadioContext), name = _b.name, onValueUpdated = _b.onValueUpdated, currentValue = _b.currentValue;
73
77
  var defaultRef = useRef(null);
74
78
  var inputRef = innerRef !== null && innerRef !== void 0 ? innerRef : defaultRef;
@@ -80,7 +84,7 @@ var OakRadioAsButton = function (props) {
80
84
  }
81
85
  };
82
86
  var isChecked = currentValue === value;
83
- var colorSchemeTokens = getColorSchemeTokens(colorScheme);
87
+ var colorSchemeTokens = getColorSchemeTokens(colorScheme, isSubdued);
84
88
  var _c = rest; _c.icon; _c.variant; var restWithoutVariantProps = __rest(_c, ["icon", "variant"]);
85
89
  var radio = (React.createElement(InternalRadioWrapper, { radioBorderColor: "border-neutral", radioOuterSize: "spacing-20", size: "spacing-20", disableFocusRing: true, internalRadio: React.createElement(InternalRadio, __assign({}, restWithoutVariantProps, { id: id, value: value, disabled: disabled, ref: inputRef, onChange: function (e) {
86
90
  onValueUpdated === null || onValueUpdated === void 0 ? void 0 : onValueUpdated(e);
@@ -6,6 +6,7 @@ import { OakIcon } from '../../images-and-icons/OakIcon/OakIcon.js';
6
6
  import '../../images-and-icons/OakImage/OakImage.js';
7
7
  import '../../images-and-icons/OakSvg/OakSvg.js';
8
8
  import { OakBox } from '../../layout-and-structure/OakBox/OakBox.js';
9
+ import '../../images-and-icons/OakHandDrawnHR/OakHandDrawnHR.js';
9
10
  import '../../../styles/theme/color.js';
10
11
  import '../../../styles/theme/typography.js';
11
12
  import { parseSpacing } from '../../../styles/helpers/parseSpacing.js';
@@ -21,7 +21,7 @@ import '../../typography/OakP/OakP.js';
21
21
  import { OakSpan } from '../../typography/OakSpan/OakSpan.js';
22
22
  import '../../typography/OakTypography/OakTypography.js';
23
23
  import { OakUL } from '../../typography/OakUL/OakUL.js';
24
- import { OakPromoTag } from '../../owa/OakPromoTag/OakPromoTag.js';
24
+ import { OakPromoTag } from '../../messaging-and-feedback/OakPromoTag/OakPromoTag.js';
25
25
 
26
26
  var StyledFocusOutline = styled(OakFlex)(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
27
27
  var StyledTabButton = styled(InternalButton)(templateObject_2 || (templateObject_2 = __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"));
@@ -7,7 +7,7 @@ import { OakFlex } from '../../layout-and-structure/OakFlex/OakFlex.js';
7
7
  import { OakIcon } from '../../images-and-icons/OakIcon/OakIcon.js';
8
8
  import { OakSpan } from '../../typography/OakSpan/OakSpan.js';
9
9
  import { parseColor } from '../../../styles/helpers/parseColor.js';
10
- import { OakPromoTag } from '../OakPromoTag/OakPromoTag.js';
10
+ import { OakPromoTag } from '../../messaging-and-feedback/OakPromoTag/OakPromoTag.js';
11
11
  import { parseColorFilter } from '../../../styles/helpers/parseColorFilter.js';
12
12
  import { parseDropShadow } from '../../../styles/helpers/parseDropShadow.js';
13
13
  import { InternalStyledSvg } from '../../internal-components/InternalStyledSvg/InternalStyledSvg.js';
@@ -2,7 +2,7 @@ import { __makeTemplateObject } from 'tslib';
2
2
  import React from 'react';
3
3
  import styled from 'styled-components';
4
4
  import { OakHandDrawnCardWithIcon } from '../OakHandDrawnCardWithIcon/OakHandDrawnCardWithIcon.js';
5
- import { OakPromoTag } from '../OakPromoTag/OakPromoTag.js';
5
+ import { OakPromoTag } from '../../messaging-and-feedback/OakPromoTag/OakPromoTag.js';
6
6
  import { OakFlex } from '../../layout-and-structure/OakFlex/OakFlex.js';
7
7
  import { OakBox } from '../../layout-and-structure/OakBox/OakBox.js';
8
8
  import { parseColor } from '../../../styles/helpers/parseColor.js';
@@ -1,7 +1,7 @@
1
1
  import { __makeTemplateObject, __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import styled from 'styled-components';
4
- import { OakHandDrawnHR } from '../OakHandDrawnHR/OakHandDrawnHR.js';
4
+ import { OakHandDrawnHR } from '../../images-and-icons/OakHandDrawnHR/OakHandDrawnHR.js';
5
5
  import { InternalChevronAccordion } from '../../internal-components/InternalChevronAccordion/InternalChevronAccordion.js';
6
6
  import { OakFlex } from '../../layout-and-structure/OakFlex/OakFlex.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import { OakHandDrawnCardWithIcon } from '../OakHandDrawnCardWithIcon/OakHandDrawnCardWithIcon.js';
4
- import { OakPromoTag } from '../OakPromoTag/OakPromoTag.js';
4
+ import { OakPromoTag } from '../../messaging-and-feedback/OakPromoTag/OakPromoTag.js';
5
5
  import { OakBox } from '../../layout-and-structure/OakBox/OakBox.js';
6
6
 
7
7
  /**
@@ -13,6 +13,7 @@ import '../../../images-and-icons/OakAspectRatio/OakAspectRatio.js';
13
13
  import { OakIcon } from '../../../images-and-icons/OakIcon/OakIcon.js';
14
14
  import '../../../images-and-icons/OakImage/OakImage.js';
15
15
  import '../../../images-and-icons/OakSvg/OakSvg.js';
16
+ import '../../../images-and-icons/OakHandDrawnHR/OakHandDrawnHR.js';
16
17
 
17
18
  var FlexWithFocus = styled(OakFlex)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n outline: none;\n\n &:hover .hover-text {\n text-decoration: underline;\n }\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n"], ["\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n outline: none;\n\n &:hover .hover-text {\n text-decoration: underline;\n }\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n"])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"));
18
19
  var StyledUnitListItem = styled(OakFlex)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n text-align: initial;\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n\n ", "\n\n ", "\n"], ["\n text-align: initial;\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n\n ", "\n\n ", "\n"])), function (props) {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { OakFlex } from '../../../../layout-and-structure/OakFlex/OakFlex.js';
3
- import { OakHandDrawnHR } from '../../../OakHandDrawnHR/OakHandDrawnHR.js';
3
+ import { OakHandDrawnHR } from '../../../../images-and-icons/OakHandDrawnHR/OakHandDrawnHR.js';
4
4
 
5
5
  /*
6
6
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { OakFlex } from '../../../../layout-and-structure/OakFlex/OakFlex.js';
3
- import { OakHandDrawnHR } from '../../../OakHandDrawnHR/OakHandDrawnHR.js';
3
+ import { OakHandDrawnHR } from '../../../../images-and-icons/OakHandDrawnHR/OakHandDrawnHR.js';
4
4
 
5
5
  /**
6
6
  *
@@ -35,6 +35,14 @@ function OakVideo(_a) {
35
35
  var _f = __read(useState(false), 2), isTranscriptOpen = _f[0], setIsTranscriptOpen = _f[1];
36
36
  var transcriptEnabled = showTranscript && transcript && transcript.length > 0;
37
37
  var hasButtonsEnabled = transcriptEnabled || showCopyLink || showSignLanguage;
38
+ var transcriptButton = transcriptEnabled && (React.createElement(OakFlex, null,
39
+ React.createElement(OakSmallSecondaryButton, { isTrailingIcon: true, iconName: isTranscriptOpen ? "chevron-up" : "chevron-down", onClick: function () { return setIsTranscriptOpen(!isTranscriptOpen); }, "aria-controls": transcriptId, "aria-expanded": isTranscriptOpen },
40
+ isTranscriptOpen ? "Hide" : "Show",
41
+ " transcript")));
42
+ var showLinkButton = showCopyLink && (React.createElement(OakFlex, { "$flexGrow": [0, 1, 1], "$justifyContent": ["flex-start", "flex-start", "flex-start"] },
43
+ React.createElement(OakSmallSecondaryButton, { isTrailingIcon: true, onClick: onCopyLink, iconName: "copy" }, "Copy link")));
44
+ var showSignLanguageButton = showSignLanguage && (React.createElement(OakFlex, { "$width": ["auto", "auto", "auto"] },
45
+ React.createElement(OakSmallSecondaryButton, { isTrailingIcon: true, onClick: onShowSignLanguage, iconName: "sign-language" }, "Show sign language")));
38
46
  return (React.createElement(OakFlex, { "$flexDirection": "column", "$gap": "spacing-24" },
39
47
  React.createElement(OakFlex, { "$flexDirection": "column", "$gap": "spacing-24", "$ba": "border-solid-m", "$borderColor": "border-primary" },
40
48
  React.createElement(OakBox, { "$aspectRatio": "16/9" }, videoSlot)),
@@ -47,15 +55,17 @@ function OakVideo(_a) {
47
55
  },
48
56
  } })),
49
57
  !Array.isArray(body) && (React.createElement(OakP, { "$color": "text-primary", "$font": ["body-2", "body-1", "body-1"] }, body))),
50
- hasButtonsEnabled && (React.createElement(OakFlex, { "$flexDirection": "row", "$gap": ["spacing-16"], "$flexWrap": ["wrap", "nowrap", "nowrap"] },
51
- transcriptEnabled && (React.createElement(OakFlex, { "$order": ["2", "1", "1"] },
52
- React.createElement(OakSmallSecondaryButton, { isTrailingIcon: true, iconName: isTranscriptOpen ? "chevron-up" : "chevron-down", onClick: function () { return setIsTranscriptOpen(!isTranscriptOpen); }, "aria-controls": transcriptId, "aria-expanded": isTranscriptOpen },
53
- isTranscriptOpen ? "Hide" : "Show",
54
- " transcript"))),
55
- showCopyLink && (React.createElement(OakFlex, { "$order": ["3", "2", "2"], "$flexGrow": 1, "$justifyContent": ["flex-start", "flex-start", "flex-start"] },
56
- React.createElement(OakSmallSecondaryButton, { isTrailingIcon: true, onClick: onCopyLink, iconName: "copy" }, "Copy link"))),
57
- showSignLanguage && (React.createElement(OakFlex, { "$order": ["1", "3", "3"], "$width": ["100%", "auto", "auto"] },
58
- React.createElement(OakSmallSecondaryButton, { isTrailingIcon: true, onClick: onShowSignLanguage, iconName: "sign-language" }, "Show sign language"))))),
58
+ hasButtonsEnabled && (
59
+ // Note: We have two flex containers here to allow for a different layouts while keeping tabindex correct
60
+ React.createElement(React.Fragment, null,
61
+ React.createElement(OakFlex, { "$flexDirection": "row", "$gap": ["spacing-16"], "$flexWrap": ["wrap"], "$display": ["flex", "none", "none"] },
62
+ showSignLanguageButton,
63
+ showLinkButton,
64
+ transcriptButton),
65
+ React.createElement(OakFlex, { "$flexDirection": "row", "$gap": ["spacing-16"], "$display": ["none", "flex", "flex"] },
66
+ transcriptButton,
67
+ showLinkButton,
68
+ showSignLanguageButton))),
59
69
  transcriptEnabled && (React.createElement(OakFlex, { "data-testid": "oak-video-transcript-container", id: transcriptId, "$display": !isTranscriptOpen ? "none" : undefined, "$height": "spacing-360", "$background": "bg-neutral-stronger", "$pa": "spacing-16", "$borderRadius": "border-radius-s", "$gap": "spacing-32", "$flexDirection": "column" },
60
70
  React.createElement(OakFlex, { "$gap": "spacing-8", "$overflowY": "auto", "$flexDirection": "column" },
61
71
  React.createElement(OakPortableText, { value: transcript, components: {
@@ -45,6 +45,7 @@ export { OakIcon } from './components/images-and-icons/OakIcon/OakIcon.js';
45
45
  export { OakImage, oakPlaceholder, placeholderStyles } from './components/images-and-icons/OakImage/OakImage.js';
46
46
  export { OakSvg } from './components/images-and-icons/OakSvg/OakSvg.js';
47
47
  export { OakRoundIcon } from './components/images-and-icons/OakRoundIcon/OakRoundIcon.js';
48
+ export { OakHandDrawnHR } from './components/images-and-icons/OakHandDrawnHR/OakHandDrawnHR.js';
48
49
  export { OakFlex, oakFlexCss } from './components/layout-and-structure/OakFlex/OakFlex.js';
49
50
  export { OakBox, oakBoxCss } from './components/layout-and-structure/OakBox/OakBox.js';
50
51
  export { OakGrid } from './components/layout-and-structure/OakGrid/OakGrid.js';
@@ -67,6 +68,7 @@ export { OakToast } from './components/messaging-and-feedback/OakToast/OakToast.
67
68
  export { OakTooltip } from './components/messaging-and-feedback/OakTooltip/OakTooltip.js';
68
69
  export { OakFocusIndicator } from './components/messaging-and-feedback/OakFocusIndicator/OakFocusIndicator.js';
69
70
  export { OakHandDrawnFocusUnderline } from './components/messaging-and-feedback/OakHandDrawnFocusUnderline/OakHandDrawnFocusUnderline.js';
71
+ export { OakPromoTag } from './components/messaging-and-feedback/OakPromoTag/OakPromoTag.js';
70
72
  export { OakAnchorTarget } from './components/navigation/OakAnchorTarget/OakAnchorTarget.js';
71
73
  export { OakHoverLink } from './components/navigation/OakHoverLink/OakHoverLink.js';
72
74
  export { OakLink } from './components/navigation/OakLink/OakLink.js';
@@ -129,13 +131,11 @@ export { OakFilterDrawer } from './components/owa/OakFilterDrawer/OakFilterDrawe
129
131
  export { OakFormInputWithLabels } from './components/owa/OakFormInputWithLabels/OakFormInputWithLabels.js';
130
132
  export { OakHandDrawnCard } from './components/owa/OakHandDrawnCard/OakHandDrawnCard.js';
131
133
  export { OakHandDrawnCardWithIcon } from './components/owa/OakHandDrawnCardWithIcon/OakHandDrawnCardWithIcon.js';
132
- export { OakHandDrawnHR } from './components/owa/OakHandDrawnHR/OakHandDrawnHR.js';
133
134
  export { OakInfoButton } from './components/owa/OakInfoButton/OakInfoButton.js';
134
135
  export { OakCardHeader, OakLessonInfoCard, OakStaticMessageCard } from './components/owa/OakLessonInfoCard/OakLessonInfoCard.js';
135
136
  export { OakLinkCard } from './components/owa/OakLinkCard/OakLinkCard.js';
136
137
  export { OakMediaClipListAccordion } from './components/owa/OakMediaClipListAccordion/OakMediaClipListAccordion.js';
137
138
  export { OakOutlineAccordion } from './components/owa/OakOutlineAccordion/OakOutlineAccordion.js';
138
- export { OakPromoTag } from './components/owa/OakPromoTag/OakPromoTag.js';
139
139
  export { OakRadioTile, isTileItem } from './components/owa/OakRadioTile/OakRadioTile.js';
140
140
  export { OakSaveCount } from './components/owa/OakSaveCount/OakSaveCount.js';
141
141
  export { OakScaleImageButton } from './components/owa/OakScaleImageButton/OakScaleImageButton.js';
@@ -1550,6 +1550,24 @@ type OakRoundIconProps = IconProps | ImageProps;
1550
1550
  */
1551
1551
  declare const OakRoundIcon: ({ $background, $borderRadius, $width, $height, $pa, className, ...rest }: OakRoundIconProps) => React$1.JSX.Element;
1552
1552
 
1553
+ type InternalStyledSvgProps = {
1554
+ $fill?: ResponsiveValues<OakUiRoleToken>;
1555
+ $stroke?: ResponsiveValues<OakUiRoleToken>;
1556
+ $strokeWidth?: ResponsiveValues<OakBorderWidthToken>;
1557
+ };
1558
+
1559
+ type OakHandDrawnHRProps = {
1560
+ hrColor?: InternalStyledSvgProps["$fill"];
1561
+ } & SpacingStyleProps & SizeStyleProps;
1562
+ /**
1563
+ * A Drawn HR svg inside a flex container
1564
+ *
1565
+ * use prop hrColor to change the color of the HR
1566
+ *
1567
+ * change the sizeProps of the flex container to change the size and dimentions of the HR
1568
+ */
1569
+ declare const OakHandDrawnHR: (props: OakHandDrawnHRProps) => React$1.JSX.Element;
1570
+
1553
1571
  type OakSmallSecondaryButtonWithDropdownProps = {
1554
1572
  primaryActionText: string;
1555
1573
  primaryActionIcon?: OakIconName;
@@ -2612,6 +2630,7 @@ type OakRadioAsButtonProps = Omit<BaseRadioProps, "defaultChecked" | "id" | "che
2612
2630
  */
2613
2631
  keepIconColor?: boolean;
2614
2632
  disabled?: HTMLInputElement["disabled"];
2633
+ isSubdued?: boolean;
2615
2634
  "aria-labelledby"?: React$1.AriaAttributes["aria-labelledby"];
2616
2635
  "aria-label"?: React$1.AriaAttributes["aria-label"];
2617
2636
  /**
@@ -3254,12 +3273,6 @@ type OakFocusIndicatorProps = OakBoxProps & {
3254
3273
  */
3255
3274
  declare const OakFocusIndicator: any;
3256
3275
 
3257
- type InternalStyledSvgProps = {
3258
- $fill?: ResponsiveValues<OakUiRoleToken>;
3259
- $stroke?: ResponsiveValues<OakUiRoleToken>;
3260
- $strokeWidth?: ResponsiveValues<OakBorderWidthToken>;
3261
- };
3262
-
3263
3276
  type OakHandDrawnFocusUnderlineProps = {
3264
3277
  FocusUnderlineColor?: InternalStyledSvgProps["$fill"];
3265
3278
  } & SpacingStyleProps & SizeStyleProps;
@@ -3272,6 +3285,16 @@ type OakHandDrawnFocusUnderlineProps = {
3272
3285
  */
3273
3286
  declare const OakHandDrawnFocusUnderline: (props: OakHandDrawnFocusUnderlineProps) => React$1.JSX.Element;
3274
3287
 
3288
+ type OakPromoTagProps = {
3289
+ width?: SizeStyleProps["$width"];
3290
+ display?: DisplayStyleProps["$display"];
3291
+ variant?: "default" | "inverted";
3292
+ };
3293
+ /**
3294
+ * Renders a tag with the text "New"
3295
+ */
3296
+ declare const OakPromoTag: (props: OakPromoTagProps) => React$1.JSX.Element;
3297
+
3275
3298
  type OakAnchorTargetProps = PaddingStyleProps;
3276
3299
  /**
3277
3300
  * * AnchorTarget is a component to enable in-page linking to a particular section
@@ -4620,18 +4643,6 @@ type OakHandDrawnBoxWithIconProps = Omit<OakHandDrawnCardProps, "children"> & {
4620
4643
  */
4621
4644
  declare const OakHandDrawnCardWithIcon: ({ iconName, iconColor, iconWidth, iconHeight, alt, $width, $height, $alignItems, $justifyContent, ...props }: OakHandDrawnBoxWithIconProps) => React$1.JSX.Element;
4622
4645
 
4623
- type OakHandDrawnHRProps = {
4624
- hrColor?: InternalStyledSvgProps["$fill"];
4625
- } & SpacingStyleProps & SizeStyleProps;
4626
- /**
4627
- * A Drawn HR svg inside a flex container
4628
- *
4629
- * use prop hrColor to change the color of the HR
4630
- *
4631
- * change the sizeProps of the flex container to change the size and dimentions of the HR
4632
- */
4633
- declare const OakHandDrawnHR: (props: OakHandDrawnHRProps) => React$1.JSX.Element;
4634
-
4635
4646
  type OakInfoButtonProps = {
4636
4647
  onClick: MouseEventHandler;
4637
4648
  isOpen: boolean;
@@ -4766,16 +4777,6 @@ type OakOutlineAccordionProps = {
4766
4777
  */
4767
4778
  declare const OakOutlineAccordion: ({ header, children, id, initialOpen, ...styleProps }: OakOutlineAccordionProps) => React$1.JSX.Element;
4768
4779
 
4769
- type OakPromoTagProps = {
4770
- width?: SizeStyleProps["$width"];
4771
- display?: DisplayStyleProps["$display"];
4772
- variant?: "default" | "inverted";
4773
- };
4774
- /**
4775
- * Renders a tag with the text "New"
4776
- */
4777
- declare const OakPromoTag: (props: OakPromoTagProps) => React$1.JSX.Element;
4778
-
4779
4780
  type TileItem = {
4780
4781
  id: string;
4781
4782
  label: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oaknational/oak-components",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "licence": "MIT",
5
5
  "packageManager": "pnpm@11.2.0",
6
6
  "description": "Shared components for Oak applications",