@oaknational/oak-components 3.7.0 → 3.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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;
@@ -3254,12 +3272,6 @@ type OakFocusIndicatorProps = OakBoxProps & {
3254
3272
  */
3255
3273
  declare const OakFocusIndicator: any;
3256
3274
 
3257
- type InternalStyledSvgProps = {
3258
- $fill?: ResponsiveValues<OakUiRoleToken>;
3259
- $stroke?: ResponsiveValues<OakUiRoleToken>;
3260
- $strokeWidth?: ResponsiveValues<OakBorderWidthToken>;
3261
- };
3262
-
3263
3275
  type OakHandDrawnFocusUnderlineProps = {
3264
3276
  FocusUnderlineColor?: InternalStyledSvgProps["$fill"];
3265
3277
  } & SpacingStyleProps & SizeStyleProps;
@@ -3272,6 +3284,16 @@ type OakHandDrawnFocusUnderlineProps = {
3272
3284
  */
3273
3285
  declare const OakHandDrawnFocusUnderline: (props: OakHandDrawnFocusUnderlineProps) => React$1.JSX.Element;
3274
3286
 
3287
+ type OakPromoTagProps = {
3288
+ width?: SizeStyleProps["$width"];
3289
+ display?: DisplayStyleProps["$display"];
3290
+ variant?: "default" | "inverted";
3291
+ };
3292
+ /**
3293
+ * Renders a tag with the text "New"
3294
+ */
3295
+ declare const OakPromoTag: (props: OakPromoTagProps) => React$1.JSX.Element;
3296
+
3275
3297
  type OakAnchorTargetProps = PaddingStyleProps;
3276
3298
  /**
3277
3299
  * * AnchorTarget is a component to enable in-page linking to a particular section
@@ -4620,18 +4642,6 @@ type OakHandDrawnBoxWithIconProps = Omit<OakHandDrawnCardProps, "children"> & {
4620
4642
  */
4621
4643
  declare const OakHandDrawnCardWithIcon: ({ iconName, iconColor, iconWidth, iconHeight, alt, $width, $height, $alignItems, $justifyContent, ...props }: OakHandDrawnBoxWithIconProps) => React$1.JSX.Element;
4622
4644
 
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
4645
  type OakInfoButtonProps = {
4636
4646
  onClick: MouseEventHandler;
4637
4647
  isOpen: boolean;
@@ -4766,16 +4776,6 @@ type OakOutlineAccordionProps = {
4766
4776
  */
4767
4777
  declare const OakOutlineAccordion: ({ header, children, id, initialOpen, ...styleProps }: OakOutlineAccordionProps) => React$1.JSX.Element;
4768
4778
 
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
4779
  type TileItem = {
4780
4780
  id: string;
4781
4781
  label: string;
@@ -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;
@@ -3254,12 +3272,6 @@ type OakFocusIndicatorProps = OakBoxProps & {
3254
3272
  */
3255
3273
  declare const OakFocusIndicator: any;
3256
3274
 
3257
- type InternalStyledSvgProps = {
3258
- $fill?: ResponsiveValues<OakUiRoleToken>;
3259
- $stroke?: ResponsiveValues<OakUiRoleToken>;
3260
- $strokeWidth?: ResponsiveValues<OakBorderWidthToken>;
3261
- };
3262
-
3263
3275
  type OakHandDrawnFocusUnderlineProps = {
3264
3276
  FocusUnderlineColor?: InternalStyledSvgProps["$fill"];
3265
3277
  } & SpacingStyleProps & SizeStyleProps;
@@ -3272,6 +3284,16 @@ type OakHandDrawnFocusUnderlineProps = {
3272
3284
  */
3273
3285
  declare const OakHandDrawnFocusUnderline: (props: OakHandDrawnFocusUnderlineProps) => React$1.JSX.Element;
3274
3286
 
3287
+ type OakPromoTagProps = {
3288
+ width?: SizeStyleProps["$width"];
3289
+ display?: DisplayStyleProps["$display"];
3290
+ variant?: "default" | "inverted";
3291
+ };
3292
+ /**
3293
+ * Renders a tag with the text "New"
3294
+ */
3295
+ declare const OakPromoTag: (props: OakPromoTagProps) => React$1.JSX.Element;
3296
+
3275
3297
  type OakAnchorTargetProps = PaddingStyleProps;
3276
3298
  /**
3277
3299
  * * AnchorTarget is a component to enable in-page linking to a particular section
@@ -4620,18 +4642,6 @@ type OakHandDrawnBoxWithIconProps = Omit<OakHandDrawnCardProps, "children"> & {
4620
4642
  */
4621
4643
  declare const OakHandDrawnCardWithIcon: ({ iconName, iconColor, iconWidth, iconHeight, alt, $width, $height, $alignItems, $justifyContent, ...props }: OakHandDrawnBoxWithIconProps) => React$1.JSX.Element;
4622
4644
 
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
4645
  type OakInfoButtonProps = {
4636
4646
  onClick: MouseEventHandler;
4637
4647
  isOpen: boolean;
@@ -4766,16 +4776,6 @@ type OakOutlineAccordionProps = {
4766
4776
  */
4767
4777
  declare const OakOutlineAccordion: ({ header, children, id, initialOpen, ...styleProps }: OakOutlineAccordionProps) => React$1.JSX.Element;
4768
4778
 
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
4779
  type TileItem = {
4780
4780
  id: string;
4781
4781
  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.7.1",
4
4
  "licence": "MIT",
5
5
  "packageManager": "pnpm@11.2.0",
6
6
  "description": "Shared components for Oak applications",