@oaknational/oak-components 3.27.0 → 3.29.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.
- package/dist/npm/cjs/index.js +2109 -2105
- package/dist/npm/cjs/types.d.ts +2 -0
- package/dist/npm/es/components/navigation/OakLink/OakLink.js +21 -2
- package/dist/npm/es/components/owa/teacher/OakTeacherNotesModal/OakTeacherNotesModal.js +1 -1
- package/dist/npm/es/image-map.js +2 -0
- package/dist/npm/es/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/npm/cjs/types.d.ts
CHANGED
|
@@ -1062,6 +1062,8 @@ declare const icons: {
|
|
|
1062
1062
|
readonly "video-2": "v1787662089/icons/video-2.svg";
|
|
1063
1063
|
readonly audio: "v1787662158/icons/audio.svg";
|
|
1064
1064
|
readonly "video-3": "v1788369484/icons/video-3.svg";
|
|
1065
|
+
readonly "sound-low": "v1794418270/icons/sound-low.svg";
|
|
1066
|
+
readonly "move-up-down": "v1794418662/icons/move-up-down.svg";
|
|
1065
1067
|
};
|
|
1066
1068
|
type IconName = keyof typeof icons;
|
|
1067
1069
|
|
|
@@ -4,6 +4,23 @@ import styled from 'styled-components';
|
|
|
4
4
|
import { variantConfig } from './config.js';
|
|
5
5
|
import { InternalLink } from '../../internal-components/InternalLink/InternalLink.js';
|
|
6
6
|
import { typographyStyle } from '../../../styles/utils/typographyStyle.js';
|
|
7
|
+
import '../../typography/OakSpan/OakSpan.js';
|
|
8
|
+
import { OakScreenReader } from '../../messaging-and-feedback/OakScreenReader/OakScreenReader.js';
|
|
9
|
+
import '../../messaging-and-feedback/OakInformativeModal/OakInformativeModal.js';
|
|
10
|
+
import '../../layout-and-structure/OakBox/OakBox.js';
|
|
11
|
+
import '../../layout-and-structure/OakFlex/OakFlex.js';
|
|
12
|
+
import '../../messaging-and-feedback/OakLoadingSpinner/OakLoadingSpinner.js';
|
|
13
|
+
import '../../internal-components/InternalShadowRoundButton/InternalShadowRoundButton.js';
|
|
14
|
+
import '../../typography/OakHeading/OakHeading.js';
|
|
15
|
+
import '../../images-and-icons/OakImage/OakImage.js';
|
|
16
|
+
import '../../messaging-and-feedback/OakModalCenter/OakModalCenter.js';
|
|
17
|
+
import '../../messaging-and-feedback/OakToast/OakToast.js';
|
|
18
|
+
import 'react-dom';
|
|
19
|
+
import '../../internal-components/InternalTooltip/InternalTooltip.js';
|
|
20
|
+
import '../../messaging-and-feedback/OakFocusIndicator/OakFocusIndicator.js';
|
|
21
|
+
import '../../messaging-and-feedback/OakHandDrawnFocusUnderline/OakHandDrawnFocusUnderline.js';
|
|
22
|
+
import '../../messaging-and-feedback/OakPromoTag/OakPromoTag.js';
|
|
23
|
+
import '../../messaging-and-feedback/OakErrorBoundary/OakErrorBoundary.js';
|
|
7
24
|
|
|
8
25
|
var StyledInternalLink = styled(InternalLink)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) { return props.$font && typographyStyle; });
|
|
9
26
|
/**
|
|
@@ -12,9 +29,11 @@ var StyledInternalLink = styled(InternalLink)(templateObject_1 || (templateObjec
|
|
|
12
29
|
* Defaulting to a `HTMLAnchorElement` this component is polymorphic and can be rendered as a button or any other element.
|
|
13
30
|
*/
|
|
14
31
|
var OakLink = forwardRef(function (props, ref) {
|
|
15
|
-
var _a = props.variant, variant = _a === void 0 ? "primary" : _a, restProps = __rest(props, ["variant"]);
|
|
32
|
+
var _a = props.variant, variant = _a === void 0 ? "primary" : _a, children = props.children, restProps = __rest(props, ["variant", "children"]);
|
|
16
33
|
var variantDefinition = variantConfig[variant];
|
|
17
|
-
return (React.createElement(StyledInternalLink, __assign({ color: variantDefinition.color, hoverColor: variantDefinition.hoverColor, activeColor: variantDefinition.activeColor, visitedColor: variantDefinition.visitedColor, textDecoration: variantDefinition.textDecoration, disabledColor: "text-disabled" }, restProps, { ref: ref })
|
|
34
|
+
return (React.createElement(StyledInternalLink, __assign({ color: variantDefinition.color, hoverColor: variantDefinition.hoverColor, activeColor: variantDefinition.activeColor, visitedColor: variantDefinition.visitedColor, textDecoration: variantDefinition.textDecoration, disabledColor: "text-disabled" }, restProps, { ref: ref }),
|
|
35
|
+
children,
|
|
36
|
+
restProps.target === "_blank" && (React.createElement(OakScreenReader, null, " (opens in a new tab)"))));
|
|
18
37
|
});
|
|
19
38
|
var templateObject_1;
|
|
20
39
|
|
|
@@ -65,7 +65,7 @@ var OakTeacherNotesModal = function (_a) {
|
|
|
65
65
|
React.createElement(OakP, { "$font": "body-2", "$mt": "spacing-4" },
|
|
66
66
|
"Names, email addresses, or other personal information will be redacted from your note to help keep everyone safe. For more guidance, see our",
|
|
67
67
|
" ",
|
|
68
|
-
React.createElement(OakLink, { target: "_blank", href: "https://www.thenational.academy/legal/terms-and-conditions"
|
|
68
|
+
React.createElement(OakLink, { target: "_blank", href: "https://www.thenational.academy/legal/terms-and-conditions" }, "Terms & conditions"),
|
|
69
69
|
".")) }))));
|
|
70
70
|
};
|
|
71
71
|
|
package/dist/npm/es/image-map.js
CHANGED
|
@@ -198,6 +198,8 @@ var icons = {
|
|
|
198
198
|
"video-2": "v1787662089/icons/video-2.svg",
|
|
199
199
|
audio: "v1787662158/icons/audio.svg",
|
|
200
200
|
"video-3": "v1788369484/icons/video-3.svg",
|
|
201
|
+
"sound-low": "v1794418270/icons/sound-low.svg",
|
|
202
|
+
"move-up-down": "v1794418662/icons/move-up-down.svg",
|
|
201
203
|
};
|
|
202
204
|
var backgrounds = {
|
|
203
205
|
"confetti-pink": "v1734522868/pupil-journey/confetti-pink.svg",
|
package/dist/npm/es/types.d.ts
CHANGED
|
@@ -1062,6 +1062,8 @@ declare const icons: {
|
|
|
1062
1062
|
readonly "video-2": "v1787662089/icons/video-2.svg";
|
|
1063
1063
|
readonly audio: "v1787662158/icons/audio.svg";
|
|
1064
1064
|
readonly "video-3": "v1788369484/icons/video-3.svg";
|
|
1065
|
+
readonly "sound-low": "v1794418270/icons/sound-low.svg";
|
|
1066
|
+
readonly "move-up-down": "v1794418662/icons/move-up-down.svg";
|
|
1065
1067
|
};
|
|
1066
1068
|
type IconName = keyof typeof icons;
|
|
1067
1069
|
|