@oaknational/oak-components 3.7.1 → 3.9.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 +34 -26
- package/dist/npm/cjs/types.d.ts +26 -17
- package/dist/npm/es/components/form-elements/OakRadioAsButton/OakRadioAsButton.js +9 -5
- package/dist/npm/es/components/owa/{OakDownloadCard/OakDownloadCard.js → OakResourceCard/OakResourceCard.js} +27 -11
- package/dist/npm/es/components/owa/teacher/{OakDownloadsAccordion/OakDownloadsAccordion.js → OakResourcesAccordion/OakResourcesAccordion.js} +10 -10
- package/dist/npm/es/index.js +2 -2
- package/dist/npm/es/types.d.ts +26 -17
- package/package.json +1 -1
package/dist/npm/cjs/index.js
CHANGED
|
@@ -3171,7 +3171,7 @@ var StyledFlexBox$3 = styled__default.default(OakFlex)(templateObject_2$x || (te
|
|
|
3171
3171
|
}, parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), StyledOakIcon$2, parseColorFilter("icon-primary"), parseColor("bg-inverted"), parseColor("text-inverted"), StyledOakIcon$2, function (props) {
|
|
3172
3172
|
return props.$keepIconColor ? "none" : parseColorFilter("text-inverted");
|
|
3173
3173
|
});
|
|
3174
|
-
var getColorSchemeTokens = function (colorScheme) {
|
|
3174
|
+
var getColorSchemeTokens = function (colorScheme, isSubdued) {
|
|
3175
3175
|
switch (colorScheme) {
|
|
3176
3176
|
case "primary":
|
|
3177
3177
|
return {
|
|
@@ -3191,9 +3191,13 @@ var getColorSchemeTokens = function (colorScheme) {
|
|
|
3191
3191
|
};
|
|
3192
3192
|
default:
|
|
3193
3193
|
return {
|
|
3194
|
-
background:
|
|
3194
|
+
background: isSubdued
|
|
3195
|
+
? "bg-".concat(colorScheme, "-very-subdued")
|
|
3196
|
+
: "bg-".concat(colorScheme, "-main"),
|
|
3195
3197
|
hoverBackground: "bg-".concat(colorScheme, "-very-subdued"),
|
|
3196
|
-
borderColor:
|
|
3198
|
+
borderColor: isSubdued
|
|
3199
|
+
? "border-neutral-lighter"
|
|
3200
|
+
: "border-".concat(colorScheme),
|
|
3197
3201
|
disabledBackground: "bg-btn-secondary-disabled",
|
|
3198
3202
|
disabledBorderColor: "border-neutral-lighter",
|
|
3199
3203
|
};
|
|
@@ -3204,7 +3208,7 @@ var getColorSchemeTokens = function (colorScheme) {
|
|
|
3204
3208
|
*/
|
|
3205
3209
|
var OakRadioAsButton = function (props) {
|
|
3206
3210
|
var id = React.useId();
|
|
3207
|
-
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 = tslib.__rest(props, ["value", "disabled", "innerRef", "displayValue", "onChange", "keepIconColor", "colorScheme", "width"]);
|
|
3211
|
+
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 = tslib.__rest(props, ["value", "disabled", "isSubdued", "innerRef", "displayValue", "onChange", "keepIconColor", "colorScheme", "width"]);
|
|
3208
3212
|
var _b = React.useContext(RadioContext), name = _b.name, onValueUpdated = _b.onValueUpdated, currentValue = _b.currentValue;
|
|
3209
3213
|
var defaultRef = React.useRef(null);
|
|
3210
3214
|
var inputRef = innerRef !== null && innerRef !== void 0 ? innerRef : defaultRef;
|
|
@@ -3216,7 +3220,7 @@ var OakRadioAsButton = function (props) {
|
|
|
3216
3220
|
}
|
|
3217
3221
|
};
|
|
3218
3222
|
var isChecked = currentValue === value;
|
|
3219
|
-
var colorSchemeTokens = getColorSchemeTokens(colorScheme);
|
|
3223
|
+
var colorSchemeTokens = getColorSchemeTokens(colorScheme, isSubdued);
|
|
3220
3224
|
var _c = rest; _c.icon; _c.variant; var restWithoutVariantProps = tslib.__rest(_c, ["icon", "variant"]);
|
|
3221
3225
|
var radio = (React__default.default.createElement(InternalRadioWrapper, { radioBorderColor: "border-neutral", radioOuterSize: "spacing-20", size: "spacing-20", disableFocusRing: true, internalRadio: React__default.default.createElement(InternalRadio, tslib.__assign({}, restWithoutVariantProps, { id: id, value: value, disabled: disabled, ref: inputRef, onChange: function (e) {
|
|
3222
3226
|
onValueUpdated === null || onValueUpdated === void 0 ? void 0 : onValueUpdated(e);
|
|
@@ -4627,34 +4631,34 @@ var StyledAccordionButton$2 = styled__default.default(InternalAccordionButton)(t
|
|
|
4627
4631
|
* Internal accordion component that handles the accordion logic
|
|
4628
4632
|
*/
|
|
4629
4633
|
var Accordion$2 = function (_a) {
|
|
4630
|
-
var children = _a.children, id = _a.id, selectAllChecked = _a.selectAllChecked,
|
|
4634
|
+
var children = _a.children, id = _a.id, selectAllChecked = _a.selectAllChecked, subheading = _a.subheading, handleToggleSelectAll = _a.handleToggleSelectAll, styleProps = tslib.__rest(_a, ["children", "id", "selectAllChecked", "subheading", "handleToggleSelectAll"]);
|
|
4631
4635
|
var isOpen = useAccordionContext().isOpen;
|
|
4632
4636
|
return (React__default.default.createElement(OakFlex, tslib.__assign({ "$bt": "border-solid-s", "$bb": isOpen ? "border-solid-none" : "border-solid-s", "$borderColor": "border-neutral-lighter", "$pv": "spacing-12", "$flexDirection": "column", "$width": "100%" }, styleProps),
|
|
4633
4637
|
React__default.default.createElement(OakFlex, { "$alignItems": "center", "$width": "100%" },
|
|
4634
4638
|
React__default.default.createElement(OakFlex, { "$alignItems": "center", "$width": "100%", "$gap": "spacing-16" },
|
|
4635
4639
|
React__default.default.createElement(OakBox, { id: "select-all-wrapper", "$pa": "spacing-8", onClick: handleToggleSelectAll },
|
|
4636
|
-
React__default.default.createElement(OakCheckBox, { onChange: function () { return undefined; }, checked: selectAllChecked, id: "select-all", name: "select-all", value: "", "aria-labelledby": "
|
|
4640
|
+
React__default.default.createElement(OakCheckBox, { onChange: function () { return undefined; }, checked: selectAllChecked, id: "select-all", name: "select-all", value: "", "aria-labelledby": "resources-accordion-heading" })),
|
|
4637
4641
|
React__default.default.createElement(StyledAccordionButton$2, { "$justifyContent": "space-between", "$flexGrow": 1, id: id, "$alignItems": "center", "$mr": "spacing-12" },
|
|
4638
4642
|
React__default.default.createElement(OakFlex, { "$justifyContent": "center", "$alignItems": "center", "$gap": "spacing-12" },
|
|
4639
4643
|
React__default.default.createElement(OakFlex, { "$flexDirection": "column", "$justifyContent": "center", "$alignItems": "start" },
|
|
4640
|
-
React__default.default.createElement(OakHeading, { "$textAlign": "left", id: "
|
|
4644
|
+
React__default.default.createElement(OakHeading, { "$textAlign": "left", id: "resources-accordion-heading", "$color": "text-primary", "$font": "heading-6", "$mr": "spacing-16", tag: "h2" }, selectAllChecked
|
|
4641
4645
|
? "All resources selected"
|
|
4642
4646
|
: "Select all resources"),
|
|
4643
4647
|
React__default.default.createElement(OakBox, { "$pr": "spacing-12" },
|
|
4644
|
-
React__default.default.createElement(OakP, { "$textAlign": "left" },
|
|
4648
|
+
React__default.default.createElement(OakP, { "$textAlign": "left" }, subheading)))),
|
|
4645
4649
|
React__default.default.createElement(OakBox, { className: "focus-outline", "$borderRadius": "border-radius-s", "$pa": "spacing-8" },
|
|
4646
|
-
React__default.default.createElement(OakIcon, { className: "chevron-icon", iconName: "chevron-down", "$width": "spacing-32", "$height": "spacing-32", alt:
|
|
4650
|
+
React__default.default.createElement(OakIcon, { className: "chevron-icon", iconName: "chevron-down", "$width": "spacing-32", "$height": "spacing-32", alt: isOpen ? "Hide all resources" : "Show all resources", style: {
|
|
4647
4651
|
transform: isOpen ? "rotate(180deg)" : "none",
|
|
4648
4652
|
transition: "all 0.3s ease 0s",
|
|
4649
4653
|
} }))))),
|
|
4650
|
-
React__default.default.createElement(OakBox, { "$position": "relative", "$overflow": "
|
|
4651
|
-
React__default.default.createElement(InternalAccordionContent, { "$pt": "spacing-20", "aria-
|
|
4654
|
+
React__default.default.createElement(OakBox, { "$position": "relative", "$overflow": "visible" },
|
|
4655
|
+
React__default.default.createElement(InternalAccordionContent, { "$pt": "spacing-20", "aria-label": "Resource list" }, children))));
|
|
4652
4656
|
};
|
|
4653
4657
|
/**
|
|
4654
|
-
* OakDownloadsAccordion
|
|
4658
|
+
* OakResourcesAccordion renamed from OakDownloadsAccordion.
|
|
4655
4659
|
*
|
|
4656
4660
|
*/
|
|
4657
|
-
var
|
|
4661
|
+
var OakResourcesAccordion = function (_a) {
|
|
4658
4662
|
var _b = _a.initialOpen, initialOpen = _b === void 0 ? false : _b, props = tslib.__rest(_a, ["initialOpen"]);
|
|
4659
4663
|
return (React__default.default.createElement(InternalAccordionProvider, { isInitialOpen: initialOpen },
|
|
4660
4664
|
React__default.default.createElement(Accordion$2, tslib.__assign({}, props))));
|
|
@@ -6807,21 +6811,23 @@ var MultipleIcons = function (_a) {
|
|
|
6807
6811
|
return (React__default.default.createElement(OakFlex, { "$background": "bg-decorative5-main", "$pa": "spacing-12", "$alignItems": "center", "$flexDirection": "column", "$gap": "spacing-16", "$justifyContent": "center" }, iconName.map(function (name, index) { return (React__default.default.createElement(OakFlex, { key: "".concat(name, "-").concat(index), "$position": "relative", "$alignContent": "center", "$alignItems": "center", "$justifyContent": "center" },
|
|
6808
6812
|
React__default.default.createElement(OakIcon, { iconName: name, "$width": "spacing-40", "$height": "spacing-40", "$mr": index < iconName.length - 1 ? "spacing-8" : "spacing-0" }))); })));
|
|
6809
6813
|
};
|
|
6810
|
-
var LabelContainer = styled__default.default("label")(templateObject_1$j || (templateObject_1$j = tslib.__makeTemplateObject(["\n flex: 1;\n cursor: pointer;\n display: flex;\n"], ["\n flex: 1;\n cursor: pointer;\n display: flex;\n"])));
|
|
6811
|
-
var Container = styled__default.default(OakFlex)(templateObject_2$8 || (templateObject_2$8 = tslib.__makeTemplateObject(["\n
|
|
6814
|
+
var LabelContainer = styled__default.default("label")(templateObject_1$j || (templateObject_1$j = tslib.__makeTemplateObject(["\n flex: 1;\n cursor: pointer;\n display: flex;\n\n &:has(input:disabled) {\n cursor: default;\n #resource-card-title {\n text-decoration: none;\n }\n }\n"], ["\n flex: 1;\n cursor: pointer;\n display: flex;\n\n &:has(input:disabled) {\n cursor: default;\n #resource-card-title {\n text-decoration: none;\n }\n }\n"])));
|
|
6815
|
+
var Container = styled__default.default(OakFlex)(templateObject_2$8 || (templateObject_2$8 = tslib.__makeTemplateObject(["\n &:has(input:focus-visible) {\n box-shadow:\n ", ",\n ", ";\n }\n\n @media (hover: hover) {\n &:hover:not(:has(input:disabled), :active) {\n background: ", ";\n #resource-card-title {\n text-decoration: underline;\n }\n }\n\n &:active:not(:has(input:disabled)) {\n #resource-card-title {\n text-decoration: underline;\n }\n }\n }\n"], ["\n &:has(input:focus-visible) {\n box-shadow:\n ", ",\n ", ";\n }\n\n @media (hover: hover) {\n &:hover:not(:has(input:disabled), :active) {\n background: ", ";\n #resource-card-title {\n text-decoration: underline;\n }\n }\n\n &:active:not(:has(input:disabled)) {\n #resource-card-title {\n text-decoration: underline;\n }\n }\n }\n"])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), function (props) {
|
|
6812
6816
|
return props.$hoverBackground ? parseColor(props.$hoverBackground) : null;
|
|
6813
6817
|
});
|
|
6814
6818
|
/**
|
|
6815
|
-
*
|
|
6819
|
+
* Resource cards present a downloadable/shareable resource with metadata and a selectable control.
|
|
6820
|
+
* This component has been renamed from OakDownloadCard.
|
|
6816
6821
|
* ## Usage
|
|
6817
|
-
* Use this component when users need to select one or more downloadable resources,
|
|
6822
|
+
* Use this component when users need to select one or more downloadable/shareable resources,
|
|
6818
6823
|
* such as lesson plans, slide decks, or worksheets.
|
|
6819
|
-
* Design document: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=14795-5603
|
|
6824
|
+
* Design document: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=14795-5603>\
|
|
6825
|
+
* Updated with new standards: <https://www.figma.com/design/xIIH1NUk2IHKxgh5BW5gOd/Test-Oak-Component-Standards?node-id=66-905&p=f&m=dev>
|
|
6820
6826
|
*/
|
|
6821
|
-
var
|
|
6827
|
+
var OakResourceCard = function (props) {
|
|
6822
6828
|
var _a;
|
|
6823
6829
|
var radioContext = React.useContext(RadioContext);
|
|
6824
|
-
var title = props.title, fileSize = props.fileSize,
|
|
6830
|
+
var title = props.title, fileSize = props.fileSize, description = props.description, iconName = props.iconName, value = props.value, _b = props.disabled, disabled = _b === void 0 ? false : _b, defaultChecked = props.defaultChecked, checked = props.checked, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onHovered = props.onHovered, _c = props.isRadio, isRadio = _c === void 0 ? false : _c, dataTestId = props["data-testid"], _d = props.isEditable, isEditable = _d === void 0 ? false : _d, rest = tslib.__rest(props, ["title", "fileSize", "description", "iconName", "value", "disabled", "defaultChecked", "checked", "onChange", "onFocus", "onBlur", "onHovered", "isRadio", "data-testid", "isEditable"]);
|
|
6825
6831
|
var checkboxSize = "spacing-24";
|
|
6826
6832
|
var checkedBorderColor = "border-primary";
|
|
6827
6833
|
var disabledColor = "text-disabled";
|
|
@@ -6845,9 +6851,11 @@ var OakDownloadCard = function (props) {
|
|
|
6845
6851
|
React__default.default.createElement(OakFlex, { "$alignItems": "stretch", "$flexGrow": 1 },
|
|
6846
6852
|
isMultipleIcon ? (React__default.default.createElement(MultipleIcons, { iconName: iconName })) : (React__default.default.createElement(SingleIcon, { iconName: iconName })),
|
|
6847
6853
|
React__default.default.createElement(OakFlex, { "$flexGrow": 1, "$flexDirection": "column", "$justifyContent": "center", "$gap": "spacing-4", "$pv": "spacing-12", "$ph": "spacing-16" },
|
|
6848
|
-
React__default.default.createElement(OakBox, { "$font": "body-2-bold" }, title),
|
|
6849
|
-
fileSize && React__default.default.createElement(OakBox, { "$font": "body-3" }, fileSize),
|
|
6850
|
-
React__default.default.createElement(
|
|
6854
|
+
React__default.default.createElement(OakBox, { id: "resource-card-title", "$font": "body-2-bold" }, title),
|
|
6855
|
+
fileSize && (React__default.default.createElement(OakBox, { "$font": "body-3", "$color": "text-subdued" }, fileSize)),
|
|
6856
|
+
React__default.default.createElement(OakFlex, { "$alignItems": "center", "$gap": "spacing-8" },
|
|
6857
|
+
React__default.default.createElement(OakBox, { "$font": "body-3", "$color": "text-subdued" }, Array.isArray(description) ? (React__default.default.createElement(OakUL, { "$pl": "spacing-20" }, description.map(function (item) { return (React__default.default.createElement(OakLI, { key: item }, item)); }))) : (description)),
|
|
6858
|
+
isEditable && (React__default.default.createElement(OakTagFunctional, { "$alignSelf": "flex-end", "$font": "heading-light-7", label: "Editable", "$background": "bg-decorative2-main" }))))),
|
|
6851
6859
|
React__default.default.createElement(OakFlex, null,
|
|
6852
6860
|
React__default.default.createElement(OakFlex, { "$alignItems": "center", "$pr": "spacing-16" },
|
|
6853
6861
|
isRadio && (React__default.default.createElement(InternalRadioWrapper, { checked: isChecked, size: checkboxSize, disabled: anyDisabled, radioBorderColor: checkedBorderColor, internalRadio: React__default.default.createElement(InternalRadio, tslib.__assign({}, rest, { id: props.id, name: (_a = props.name) !== null && _a !== void 0 ? _a : radioContext.name, value: value, disabled: anyDisabled, onHovered: onHovered, onChange: handleRadioChange, onFocus: onFocus, onBlur: onBlur, defaultChecked: defaultChecked, checked: radioChecked })) })),
|
|
@@ -7847,8 +7855,6 @@ exports.OakCookieConsentContext = OakCookieConsentContext;
|
|
|
7847
7855
|
exports.OakCookieConsentProvider = OakCookieConsentProvider;
|
|
7848
7856
|
exports.OakCookieSettingsModal = OakCookieSettingsModal;
|
|
7849
7857
|
exports.OakCopyLinkButton = OakCopyLinkButton;
|
|
7850
|
-
exports.OakDownloadCard = OakDownloadCard;
|
|
7851
|
-
exports.OakDownloadsAccordion = OakDownloadsAccordion;
|
|
7852
7858
|
exports.OakDownloadsJourneyChildSubjectTierSelector = OakDownloadsJourneyChildSubjectTierSelector;
|
|
7853
7859
|
exports.OakDragAndDropInstructions = OakDragAndDropInstructions;
|
|
7854
7860
|
exports.OakDraggable = OakDraggable;
|
|
@@ -7951,6 +7957,8 @@ exports.OakRadioAsButton = OakRadioAsButton;
|
|
|
7951
7957
|
exports.OakRadioButton = OakRadioButton;
|
|
7952
7958
|
exports.OakRadioGroup = OakRadioGroup;
|
|
7953
7959
|
exports.OakRadioTile = OakRadioTile;
|
|
7960
|
+
exports.OakResourceCard = OakResourceCard;
|
|
7961
|
+
exports.OakResourcesAccordion = OakResourcesAccordion;
|
|
7954
7962
|
exports.OakRoundIcon = OakRoundIcon;
|
|
7955
7963
|
exports.OakSaveCount = OakSaveCount;
|
|
7956
7964
|
exports.OakScaleImageButton = OakScaleImageButton;
|
package/dist/npm/cjs/types.d.ts
CHANGED
|
@@ -2630,6 +2630,7 @@ type OakRadioAsButtonProps = Omit<BaseRadioProps, "defaultChecked" | "id" | "che
|
|
|
2630
2630
|
*/
|
|
2631
2631
|
keepIconColor?: boolean;
|
|
2632
2632
|
disabled?: HTMLInputElement["disabled"];
|
|
2633
|
+
isSubdued?: boolean;
|
|
2633
2634
|
"aria-labelledby"?: React$1.AriaAttributes["aria-labelledby"];
|
|
2634
2635
|
"aria-label"?: React$1.AriaAttributes["aria-label"];
|
|
2635
2636
|
/**
|
|
@@ -3546,11 +3547,11 @@ type OakBreadcrumbsProps = {
|
|
|
3546
3547
|
*/
|
|
3547
3548
|
declare const OakBreadcrumbs: ({ breadcrumbs, }: Readonly<OakBreadcrumbsProps>) => React$1.JSX.Element;
|
|
3548
3549
|
|
|
3549
|
-
type
|
|
3550
|
+
type OakResourcesAccordionProps = {
|
|
3550
3551
|
/**
|
|
3551
3552
|
* Text to render in the subheading
|
|
3552
3553
|
*/
|
|
3553
|
-
|
|
3554
|
+
subheading: string;
|
|
3554
3555
|
/**
|
|
3555
3556
|
* Event handler for select all checkbox
|
|
3556
3557
|
*/
|
|
@@ -3573,10 +3574,10 @@ type OakDownloadsAccordionProps = {
|
|
|
3573
3574
|
initialOpen?: boolean;
|
|
3574
3575
|
} & FlexStyleProps & OakBoxProps & ColorStyleProps;
|
|
3575
3576
|
/**
|
|
3576
|
-
* OakDownloadsAccordion
|
|
3577
|
+
* OakResourcesAccordion renamed from OakDownloadsAccordion.
|
|
3577
3578
|
*
|
|
3578
3579
|
*/
|
|
3579
|
-
declare const
|
|
3580
|
+
declare const OakResourcesAccordion: ({ initialOpen, ...props }: OakResourcesAccordionProps) => React$1.JSX.Element;
|
|
3580
3581
|
|
|
3581
3582
|
type OakInlineRegistrationBannerProps = {
|
|
3582
3583
|
onSubmit: (email: string) => Promise<string | undefined>;
|
|
@@ -4386,21 +4387,21 @@ type OakCopyLinkButtonProps = {
|
|
|
4386
4387
|
*/
|
|
4387
4388
|
declare const OakCopyLinkButton: ({ href }: OakCopyLinkButtonProps) => React$1.JSX.Element;
|
|
4388
4389
|
|
|
4389
|
-
type
|
|
4390
|
+
type OakResourceCardProps = BaseCheckBoxProps & {
|
|
4390
4391
|
/**
|
|
4391
|
-
* The primary title content for the
|
|
4392
|
+
* The primary title content for the resource.
|
|
4392
4393
|
*/
|
|
4393
|
-
title:
|
|
4394
|
+
title: string;
|
|
4394
4395
|
/**
|
|
4395
4396
|
* Optional file size content shown beneath the title.
|
|
4396
4397
|
*/
|
|
4397
|
-
fileSize?:
|
|
4398
|
+
fileSize?: string;
|
|
4398
4399
|
/**
|
|
4399
|
-
* The file format or
|
|
4400
|
+
* The file format(s) or description shown beneath the title.
|
|
4400
4401
|
*/
|
|
4401
|
-
|
|
4402
|
+
description: string | string[];
|
|
4402
4403
|
/**
|
|
4403
|
-
* The icon used to represent the
|
|
4404
|
+
* The icon used to represent the resource type.
|
|
4404
4405
|
*/
|
|
4405
4406
|
iconName: IconName | IconName[];
|
|
4406
4407
|
/**
|
|
@@ -4409,15 +4410,23 @@ type OakDownloadCardProps = BaseCheckBoxProps & {
|
|
|
4409
4410
|
* @default false
|
|
4410
4411
|
*/
|
|
4411
4412
|
isRadio?: boolean;
|
|
4413
|
+
/**
|
|
4414
|
+
* If true, adds an informational `Editable` tag to the resource card.
|
|
4415
|
+
*
|
|
4416
|
+
* @default false
|
|
4417
|
+
*/
|
|
4418
|
+
isEditable?: boolean;
|
|
4412
4419
|
};
|
|
4413
4420
|
/**
|
|
4414
|
-
*
|
|
4421
|
+
* Resource cards present a downloadable/shareable resource with metadata and a selectable control.
|
|
4422
|
+
* This component has been renamed from OakDownloadCard.
|
|
4415
4423
|
* ## Usage
|
|
4416
|
-
* Use this component when users need to select one or more downloadable resources,
|
|
4424
|
+
* Use this component when users need to select one or more downloadable/shareable resources,
|
|
4417
4425
|
* such as lesson plans, slide decks, or worksheets.
|
|
4418
|
-
* Design document: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=14795-5603
|
|
4426
|
+
* Design document: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=14795-5603>\
|
|
4427
|
+
* Updated with new standards: <https://www.figma.com/design/xIIH1NUk2IHKxgh5BW5gOd/Test-Oak-Component-Standards?node-id=66-905&p=f&m=dev>
|
|
4419
4428
|
*/
|
|
4420
|
-
declare const
|
|
4429
|
+
declare const OakResourceCard: (props: OakResourceCardProps) => React$1.JSX.Element;
|
|
4421
4430
|
|
|
4422
4431
|
/**
|
|
4423
4432
|
* Displays instructions for drag and drop functionality
|
|
@@ -5319,5 +5328,5 @@ declare const useIsScrolled: () => {
|
|
|
5319
5328
|
|
|
5320
5329
|
declare const useBreakpoint: () => Device;
|
|
5321
5330
|
|
|
5322
|
-
export { DropdownContext, HeadingTagComponent, IconDown, IconUp, OakAccordion, OakAnchorTarget, OakAspectRatio, OakBackLink, OakBasicAccordion, OakBox, OakBreadcrumbs, OakBulletList, OakButtonAsRadioGroup, OakButtonWithDropdown, OakButtonWithDropdownProvider, OakCaptionCard, OakCaptionSearch, OakCard, OakCardHeader, OakCardWithHandDrawnBorder, OakCarousel, OakCheckBox, OakCloseButton, OakCloudinaryConfigProvider, OakCloudinaryImage, OakCodeRenderer, OakCollapsibleContent, OakCookieBanner, OakCookieConsent, OakCookieConsentContext, OakCookieConsentProvider, OakCookieSettingsModal, OakCopyLinkButton,
|
|
5323
|
-
export type { BannerTypes, BreakpointName, Consent, Device, InternalQuizResultItemProps, LessonSectionName$1 as LessonSectionName, MenuItemProps, OakAccordionProps, OakAllSpacingToken, OakAnchorTargetProps, OakAspectRatioProps, OakBackLinkProps, OakBasicAccordionProps, OakBorderRadiusToken, OakBorderWidthToken, OakBoxProps, OakBreadcrumb, OakBreadcrumbWithoutHref, OakBreadcrumbsProps, OakBulletListProps, OakButtonWithDropdownProps, OakCaptionCardProps, OakCaptionSearchProps, OakCardHeaderprops, OakCardProps, OakCardWithHandDrawnBorderProps, OakCarouselProps, OakCheckBoxProps, OakCloseButtonProps, OakCloudinaryImageProps, OakCodeRendererProps, OakCollapsibleContentProps, OakColorFilterToken, OakColorToken, OakCombinedSpacingToken, OakCookieBannerProps, OakCookieConsentProps, OakCookieSettingsModalProps,
|
|
5331
|
+
export { DropdownContext, HeadingTagComponent, IconDown, IconUp, OakAccordion, OakAnchorTarget, OakAspectRatio, OakBackLink, OakBasicAccordion, OakBox, OakBreadcrumbs, OakBulletList, OakButtonAsRadioGroup, OakButtonWithDropdown, OakButtonWithDropdownProvider, OakCaptionCard, OakCaptionSearch, OakCard, OakCardHeader, OakCardWithHandDrawnBorder, OakCarousel, OakCheckBox, OakCloseButton, OakCloudinaryConfigProvider, OakCloudinaryImage, OakCodeRenderer, OakCollapsibleContent, OakCookieBanner, OakCookieConsent, OakCookieConsentContext, OakCookieConsentProvider, OakCookieSettingsModal, OakCopyLinkButton, OakDownloadsJourneyChildSubjectTierSelector, OakDragAndDropInstructions, OakDraggable, OakDraggableFeedback, OakDroppable, OakFieldError, OakFieldset, OakFilterDrawer, OakFlex, OakFocusIndicator, OakForm, OakFormInput, OakFormInputWithLabels, OakGlobalStyle, OakGrid, OakGridArea, OakHandDrawnCard, OakHandDrawnCardWithIcon, OakHandDrawnFocusUnderline, OakHandDrawnHR, OakHeaderHero, OakHeading, OakHintButton, OakHomepageTabButton, OakHoverLink, OakIcon, OakImage, OakInfo, OakInfoButton, OakInformativeModal, OakInformativeModalBody, OakInformativeModalBorderColor, OakInformativeModalFooter, OakInlineBanner, OakInlineRegistrationBanner, OakJauntyAngleLabel, OakKbd, OakLI, OakLabel, OakLeftAlignedButton, OakLessonBottomNav, OakLessonInfoCard, OakLessonLayout, OakLessonNavItem, OakLessonReviewIntroVideo, OakLessonReviewItem, OakLessonReviewQuiz, OakLessonTopNav, OakLessonVideoTranscript, OakLink, OakLinkCard, OakListItem, OakLoadingSpinner, OakMaxWidth, OakMediaClip, OakMediaClipList, OakMediaClipListAccordion, OakMediaClipStackListItem, OakModalCenter, OakModalCenterBody, OakMultilineText, OakOL, OakOptGroup, OakOption, OakOutlineAccordion, OakP, OakPagination, OakPrimaryButton, OakPrimaryInvertedButton, OakPrimaryNav, OakPrimaryNavItem, OakPromoTag, OakPupilJourneyContentGuidance, OakPupilJourneyHeader, OakPupilJourneyLayout, OakPupilJourneyList, OakPupilJourneyListCounter, OakPupilJourneyListItem, OakPupilJourneyListItemSubheading, OakPupilJourneyOptionalityButton, OakPupilJourneyOptionalityItem, OakPupilJourneyProgrammeOptions, OakPupilJourneyUnitsFilter, OakPupilJourneyYearButton, OakQuizCheckBox, OakQuizCounter, OakQuizFeedback, OakQuizHint, OakQuizMatch, OakQuizMatchItemId, OakQuizOrder, OakQuizOrderitemId, OakQuizPrintableHeader, OakQuizPrintableSubHeader, OakQuizRadioButton, OakQuizResultItem, OakQuizTextInput, OakQuote, OakRadioAsButton, OakRadioButton, OakRadioGroup, OakRadioTile, OakResourceCard, OakResourcesAccordion, OakRoundIcon, OakSaveCount, OakScaleImageButton, OakScreenReader, OakSearchFilterCheckBox, OakSecondaryButton, OakSecondaryButtonAsRadio, OakSecondaryButtonWithDropdown, OakSecondaryLink, OakSelect, OakSideMenuNav, OakSideMenuNavLink, OakSignLanguageButton, OakSmallPrimaryButton, OakSmallPrimaryInvertedButton, OakSmallSecondaryButton, OakSmallSecondaryButtonWithDropdown, OakSmallSecondaryToggleButton, OakSmallTertiaryInvertedButton, OakSpan, OakStaticMessageCard, OakSubjectIcon, OakSubjectIconButton, OakSvg, OakTabs, OakTagFunctional, OakTeacherNotesInline, OakTeacherNotesModal, OakTertiaryButton, OakTertiaryInvertedButton, OakTertiaryOLNav, OakTextArea, OakTextInput, OakThemeProvider, OakTimer, OakToast, OakTooltip, OakTypography, OakUL, OakUnitListItem, OakUnitListOptionalityItem, OakVideo, OakVideoTranscript, RadioContext, ReviewItemContainer, ReviewItemTitleSection, StyledMediaClipImage, UnstyledChevronAccordion, announcements, bannerTypes, bannerVariants, colorSchemes, formatTimeCode, generateOakIconURL, getBackgroundUrlForSection, getBreakpoint, getDefaultContextState, getMediaQuery, installMockIntersectionObserver, installMockResizeObserver, isTileItem, isValidIconName, lessonSectionNames, oakAllSpacingTokens, oakBorderRadiusTokens, oakBorderWidthTokens, oakBoxCss, oakColorTokens, oakDarkTheme, oakDefaultTheme, oakDropShadowTokens, oakFlexCss, oakFontSizeTokens, oakFontTokens, oakHeadingTags, oakIconNames, oakLIDefaults, oakOpacityTokens, oakPlaceholder, oakSpaceBetweenTokens, oakTransitionTokens, oakUiRoleTokens, oakZIndexTokens, parseBorder, parseBorderRadius, parseColor, parseColorFilter, parseDropShadow, parseFontSize, parseFontWeight, parseLetterSpacing, parseLineHeight, parseOpacity, parseSpacing, parseTransitions, parseZIndex, placeholderStyles, removedGuidanceDuplicates, responsiveStyle, rgbToHex, useBreakpoint, useCookieConsent, useDevice, useDropdownContext, useIsScrolled, useMediaQuery, useMounted };
|
|
5332
|
+
export type { BannerTypes, BreakpointName, Consent, Device, InternalQuizResultItemProps, LessonSectionName$1 as LessonSectionName, MenuItemProps, OakAccordionProps, OakAllSpacingToken, OakAnchorTargetProps, OakAspectRatioProps, OakBackLinkProps, OakBasicAccordionProps, OakBorderRadiusToken, OakBorderWidthToken, OakBoxProps, OakBreadcrumb, OakBreadcrumbWithoutHref, OakBreadcrumbsProps, OakBulletListProps, OakButtonWithDropdownProps, OakCaptionCardProps, OakCaptionSearchProps, OakCardHeaderprops, OakCardProps, OakCardWithHandDrawnBorderProps, OakCarouselProps, OakCheckBoxProps, OakCloseButtonProps, OakCloudinaryImageProps, OakCodeRendererProps, OakCollapsibleContentProps, OakColorFilterToken, OakColorToken, OakCombinedSpacingToken, OakCookieBannerProps, OakCookieConsentProps, OakCookieSettingsModalProps, OakDownloadsJourneyChildSubjectTierSelectorProps, OakDropShadowToken, OakDroppableProps, OakFieldErrorProps, OakFieldsetProps, OakFlexProps, OakFocusIndicatorProps, OakFontSizeToken, OakFontToken, OakFormInputProps, OakFormInputWithLabelsProps, OakFormProps, OakGridAreaProps, OakGridProps, OakHandDrawnBoxWithIconProps, OakHandDrawnCardProps, OakHandDrawnFocusUnderlineProps, OakHandDrawnHRProps, OakHeaderHeroProps, OakHeadingProps, OakHeadingTag, OakHintButtonProps, OakHomepageTabButtonProps, OakHoverLinkProps, OakIconName, OakIconProps, OakImageProps, OakInfoButtonProps, OakInfoCardProps, OakInfoProps, OakInformativeModalBodyProps, OakInformativeModalCloseAction, OakInformativeModalFooterProps, OakInformativeModalProps, OakInlineBannerProps, OakInlineBannerTypes, OakInlineBannerVariantProps, OakInlineBannerVariants, OakInlineRegistrationBannerProps, OakJauntyAngleLabelProps, OakKbdProps, OakLIProps, OakLabelProps, OakLeftAlignedButtonProps, OakLessonBottomNavProps, OakLessonLayoutProps, OakLessonNavItemProps, OakLessonReviewIntroVideoProps, OakLessonReviewItemProps, OakLessonTopNavProps, OakLinkCardProps, OakLinkProps, OakListItemProps, OakLoadingSpinnerProps, OakMediaClipListProps, OakMediaClipProps, OakMediaClipStackListItemProps, OakModalCenterBodyProps, OakModalCenterProps, OakMultilineTextProps, OakOLProps, OakOpacityToken, OakOptGroupProps, OakOptionProps, OakOutlineAccordionProps, OakPProps, OakPaginationProps, OakPrimaryButtonProps, OakPrimaryInvertedButtonProps, OakPrimaryNavItemProps, OakPrimaryNavProps, OakPromoTagProps, OakPupilContentGuidance, OakPupilJourneyContentGuidanceProps, OakPupilJourneyHeaderProps, OakPupilJourneyLayoutProps, OakPupilJourneyListItemSubheadingProps, OakPupilJourneyListProps, OakPupilJourneyOptionalityItemProps, OakPupilJourneyProgrammeOptionsProps, OakPupilJourneyUnitsFilterProps, OakPupilJourneyYearButtonProps, OakQuizCheckBoxProps, OakQuizCounterProps, OakQuizFeedbackProps, OakQuizHintProps, OakQuizMatchProps, OakQuizOrderProps, OakQuizPrintableHeaderProps, OakQuizPrintableSubHeaderProps, OakQuizRadioButtonProps, OakQuoteProps, OakRadioAsButtonProps, OakRadioGroupProps, OakRadioTileProps, OakResourceCardProps, OakResourcesAccordionProps, OakRoundIconProps, OakSaveCountProps, OakScaleImageButtonProps, OakSearchFilterCheckBoxProps, OakSecondaryButtonAsRadioProps, OakSecondaryButtonProps, OakSecondaryButtonWithDropdownProps, OakSecondaryLinkProps, OakSelectProps, OakSideMenuNavLinkProps, OakSideMenuNavProps, OakSmallPrimaryButtonProps, OakSmallPrimaryInvertedButtonProps, OakSmallSecondaryButtonProps, OakSmallSecondaryButtonWithDropdownProps, OakSmallSecondaryToggleButtonProps, OakSmallTertiaryInvertedButtonProps, OakSolidBorderAccordionProps, OakSpaceBetweenToken, OakSpanProps, OakSubjectIconButtonProps, OakSubjectIconProps, OakSvgNames, OakSvgProps, OakTabsProps, OakTagFunctionalProps, OakTeacherNotesInlineProps, OakTeacherNotesModalProps, OakTertiaryOLNavProps, OakTextAreaProps, OakTextInputProps, OakTheme, OakThemeProviderProps, OakTimerProps, OakToastProps, OakTooltipProps, OakTransitionToken, OakTypographyProps, OakULProps, OakUiRoleToken, OakUnitListItemProps, OakUnitListOptionalityItemProps, OakVideoProps, OakZIndexToken, Phase$1 as Phase, PolicyConsent, PupilJourneySectionName, Subject, Tier, TileItem, UnstyledChevronAccordionProps };
|
|
@@ -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:
|
|
58
|
+
background: isSubdued
|
|
59
|
+
? "bg-".concat(colorScheme, "-very-subdued")
|
|
60
|
+
: "bg-".concat(colorScheme, "-main"),
|
|
59
61
|
hoverBackground: "bg-".concat(colorScheme, "-very-subdued"),
|
|
60
|
-
borderColor:
|
|
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);
|
|
@@ -9,7 +9,19 @@ import { InternalRadioWrapper } from '../../internal-components/InternalRadioWra
|
|
|
9
9
|
import { OakIcon } from '../../images-and-icons/OakIcon/OakIcon.js';
|
|
10
10
|
import { OakBox } from '../../layout-and-structure/OakBox/OakBox.js';
|
|
11
11
|
import { OakFlex } from '../../layout-and-structure/OakFlex/OakFlex.js';
|
|
12
|
+
import '../../../styles/theme/color.js';
|
|
13
|
+
import '../../../styles/theme/typography.js';
|
|
12
14
|
import { parseColor } from '../../../styles/helpers/parseColor.js';
|
|
15
|
+
import { parseDropShadow } from '../../../styles/helpers/parseDropShadow.js';
|
|
16
|
+
import '../../../styles/utils/responsiveStyle.js';
|
|
17
|
+
import { OakTagFunctional } from '../../messaging-and-feedback/OakTagFunctional/OakTagFunctional.js';
|
|
18
|
+
import '../../typography/OakHeading/OakHeading.js';
|
|
19
|
+
import { OakLI } from '../../typography/OakLI/OakLI.js';
|
|
20
|
+
import '../../typography/OakOL/OakOL.js';
|
|
21
|
+
import '../../typography/OakP/OakP.js';
|
|
22
|
+
import '../../typography/OakSpan/OakSpan.js';
|
|
23
|
+
import '../../typography/OakTypography/OakTypography.js';
|
|
24
|
+
import { OakUL } from '../../typography/OakUL/OakUL.js';
|
|
13
25
|
|
|
14
26
|
var SingleIcon = function (_a) {
|
|
15
27
|
var iconName = _a.iconName;
|
|
@@ -21,21 +33,23 @@ var MultipleIcons = function (_a) {
|
|
|
21
33
|
return (React.createElement(OakFlex, { "$background": "bg-decorative5-main", "$pa": "spacing-12", "$alignItems": "center", "$flexDirection": "column", "$gap": "spacing-16", "$justifyContent": "center" }, iconName.map(function (name, index) { return (React.createElement(OakFlex, { key: "".concat(name, "-").concat(index), "$position": "relative", "$alignContent": "center", "$alignItems": "center", "$justifyContent": "center" },
|
|
22
34
|
React.createElement(OakIcon, { iconName: name, "$width": "spacing-40", "$height": "spacing-40", "$mr": index < iconName.length - 1 ? "spacing-8" : "spacing-0" }))); })));
|
|
23
35
|
};
|
|
24
|
-
var LabelContainer = styled("label")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex: 1;\n cursor: pointer;\n display: flex;\n"], ["\n flex: 1;\n cursor: pointer;\n display: flex;\n"])));
|
|
25
|
-
var Container = styled(OakFlex)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n
|
|
36
|
+
var LabelContainer = styled("label")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex: 1;\n cursor: pointer;\n display: flex;\n\n &:has(input:disabled) {\n cursor: default;\n #resource-card-title {\n text-decoration: none;\n }\n }\n"], ["\n flex: 1;\n cursor: pointer;\n display: flex;\n\n &:has(input:disabled) {\n cursor: default;\n #resource-card-title {\n text-decoration: none;\n }\n }\n"])));
|
|
37
|
+
var Container = styled(OakFlex)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n &:has(input:focus-visible) {\n box-shadow:\n ", ",\n ", ";\n }\n\n @media (hover: hover) {\n &:hover:not(:has(input:disabled), :active) {\n background: ", ";\n #resource-card-title {\n text-decoration: underline;\n }\n }\n\n &:active:not(:has(input:disabled)) {\n #resource-card-title {\n text-decoration: underline;\n }\n }\n }\n"], ["\n &:has(input:focus-visible) {\n box-shadow:\n ", ",\n ", ";\n }\n\n @media (hover: hover) {\n &:hover:not(:has(input:disabled), :active) {\n background: ", ";\n #resource-card-title {\n text-decoration: underline;\n }\n }\n\n &:active:not(:has(input:disabled)) {\n #resource-card-title {\n text-decoration: underline;\n }\n }\n }\n"])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), function (props) {
|
|
26
38
|
return props.$hoverBackground ? parseColor(props.$hoverBackground) : null;
|
|
27
39
|
});
|
|
28
40
|
/**
|
|
29
|
-
*
|
|
41
|
+
* Resource cards present a downloadable/shareable resource with metadata and a selectable control.
|
|
42
|
+
* This component has been renamed from OakDownloadCard.
|
|
30
43
|
* ## Usage
|
|
31
|
-
* Use this component when users need to select one or more downloadable resources,
|
|
44
|
+
* Use this component when users need to select one or more downloadable/shareable resources,
|
|
32
45
|
* such as lesson plans, slide decks, or worksheets.
|
|
33
|
-
* Design document: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=14795-5603
|
|
46
|
+
* Design document: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=14795-5603>\
|
|
47
|
+
* Updated with new standards: <https://www.figma.com/design/xIIH1NUk2IHKxgh5BW5gOd/Test-Oak-Component-Standards?node-id=66-905&p=f&m=dev>
|
|
34
48
|
*/
|
|
35
|
-
var
|
|
49
|
+
var OakResourceCard = function (props) {
|
|
36
50
|
var _a;
|
|
37
51
|
var radioContext = useContext(RadioContext);
|
|
38
|
-
var title = props.title, fileSize = props.fileSize,
|
|
52
|
+
var title = props.title, fileSize = props.fileSize, description = props.description, iconName = props.iconName, value = props.value, _b = props.disabled, disabled = _b === void 0 ? false : _b, defaultChecked = props.defaultChecked, checked = props.checked, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onHovered = props.onHovered, _c = props.isRadio, isRadio = _c === void 0 ? false : _c, dataTestId = props["data-testid"], _d = props.isEditable, isEditable = _d === void 0 ? false : _d, rest = __rest(props, ["title", "fileSize", "description", "iconName", "value", "disabled", "defaultChecked", "checked", "onChange", "onFocus", "onBlur", "onHovered", "isRadio", "data-testid", "isEditable"]);
|
|
39
53
|
var checkboxSize = "spacing-24";
|
|
40
54
|
var checkedBorderColor = "border-primary";
|
|
41
55
|
var disabledColor = "text-disabled";
|
|
@@ -59,9 +73,11 @@ var OakDownloadCard = function (props) {
|
|
|
59
73
|
React.createElement(OakFlex, { "$alignItems": "stretch", "$flexGrow": 1 },
|
|
60
74
|
isMultipleIcon ? (React.createElement(MultipleIcons, { iconName: iconName })) : (React.createElement(SingleIcon, { iconName: iconName })),
|
|
61
75
|
React.createElement(OakFlex, { "$flexGrow": 1, "$flexDirection": "column", "$justifyContent": "center", "$gap": "spacing-4", "$pv": "spacing-12", "$ph": "spacing-16" },
|
|
62
|
-
React.createElement(OakBox, { "$font": "body-2-bold" }, title),
|
|
63
|
-
fileSize && React.createElement(OakBox, { "$font": "body-3" }, fileSize),
|
|
64
|
-
React.createElement(
|
|
76
|
+
React.createElement(OakBox, { id: "resource-card-title", "$font": "body-2-bold" }, title),
|
|
77
|
+
fileSize && (React.createElement(OakBox, { "$font": "body-3", "$color": "text-subdued" }, fileSize)),
|
|
78
|
+
React.createElement(OakFlex, { "$alignItems": "center", "$gap": "spacing-8" },
|
|
79
|
+
React.createElement(OakBox, { "$font": "body-3", "$color": "text-subdued" }, Array.isArray(description) ? (React.createElement(OakUL, { "$pl": "spacing-20" }, description.map(function (item) { return (React.createElement(OakLI, { key: item }, item)); }))) : (description)),
|
|
80
|
+
isEditable && (React.createElement(OakTagFunctional, { "$alignSelf": "flex-end", "$font": "heading-light-7", label: "Editable", "$background": "bg-decorative2-main" }))))),
|
|
65
81
|
React.createElement(OakFlex, null,
|
|
66
82
|
React.createElement(OakFlex, { "$alignItems": "center", "$pr": "spacing-16" },
|
|
67
83
|
isRadio && (React.createElement(InternalRadioWrapper, { checked: isChecked, size: checkboxSize, disabled: anyDisabled, radioBorderColor: checkedBorderColor, internalRadio: React.createElement(InternalRadio, __assign({}, rest, { id: props.id, name: (_a = props.name) !== null && _a !== void 0 ? _a : radioContext.name, value: value, disabled: anyDisabled, onHovered: onHovered, onChange: handleRadioChange, onFocus: onFocus, onBlur: onBlur, defaultChecked: defaultChecked, checked: radioChecked })) })),
|
|
@@ -69,4 +85,4 @@ var OakDownloadCard = function (props) {
|
|
|
69
85
|
};
|
|
70
86
|
var templateObject_1, templateObject_2;
|
|
71
87
|
|
|
72
|
-
export {
|
|
88
|
+
export { OakResourceCard };
|
|
@@ -19,38 +19,38 @@ var StyledAccordionButton = styled(InternalAccordionButton)(templateObject_1 ||
|
|
|
19
19
|
* Internal accordion component that handles the accordion logic
|
|
20
20
|
*/
|
|
21
21
|
var Accordion = function (_a) {
|
|
22
|
-
var children = _a.children, id = _a.id, selectAllChecked = _a.selectAllChecked,
|
|
22
|
+
var children = _a.children, id = _a.id, selectAllChecked = _a.selectAllChecked, subheading = _a.subheading, handleToggleSelectAll = _a.handleToggleSelectAll, styleProps = __rest(_a, ["children", "id", "selectAllChecked", "subheading", "handleToggleSelectAll"]);
|
|
23
23
|
var isOpen = useAccordionContext().isOpen;
|
|
24
24
|
return (React.createElement(OakFlex, __assign({ "$bt": "border-solid-s", "$bb": isOpen ? "border-solid-none" : "border-solid-s", "$borderColor": "border-neutral-lighter", "$pv": "spacing-12", "$flexDirection": "column", "$width": "100%" }, styleProps),
|
|
25
25
|
React.createElement(OakFlex, { "$alignItems": "center", "$width": "100%" },
|
|
26
26
|
React.createElement(OakFlex, { "$alignItems": "center", "$width": "100%", "$gap": "spacing-16" },
|
|
27
27
|
React.createElement(OakBox, { id: "select-all-wrapper", "$pa": "spacing-8", onClick: handleToggleSelectAll },
|
|
28
|
-
React.createElement(OakCheckBox, { onChange: function () { return undefined; }, checked: selectAllChecked, id: "select-all", name: "select-all", value: "", "aria-labelledby": "
|
|
28
|
+
React.createElement(OakCheckBox, { onChange: function () { return undefined; }, checked: selectAllChecked, id: "select-all", name: "select-all", value: "", "aria-labelledby": "resources-accordion-heading" })),
|
|
29
29
|
React.createElement(StyledAccordionButton, { "$justifyContent": "space-between", "$flexGrow": 1, id: id, "$alignItems": "center", "$mr": "spacing-12" },
|
|
30
30
|
React.createElement(OakFlex, { "$justifyContent": "center", "$alignItems": "center", "$gap": "spacing-12" },
|
|
31
31
|
React.createElement(OakFlex, { "$flexDirection": "column", "$justifyContent": "center", "$alignItems": "start" },
|
|
32
|
-
React.createElement(OakHeading, { "$textAlign": "left", id: "
|
|
32
|
+
React.createElement(OakHeading, { "$textAlign": "left", id: "resources-accordion-heading", "$color": "text-primary", "$font": "heading-6", "$mr": "spacing-16", tag: "h2" }, selectAllChecked
|
|
33
33
|
? "All resources selected"
|
|
34
34
|
: "Select all resources"),
|
|
35
35
|
React.createElement(OakBox, { "$pr": "spacing-12" },
|
|
36
|
-
React.createElement(OakP, { "$textAlign": "left" },
|
|
36
|
+
React.createElement(OakP, { "$textAlign": "left" }, subheading)))),
|
|
37
37
|
React.createElement(OakBox, { className: "focus-outline", "$borderRadius": "border-radius-s", "$pa": "spacing-8" },
|
|
38
|
-
React.createElement(OakIcon, { className: "chevron-icon", iconName: "chevron-down", "$width": "spacing-32", "$height": "spacing-32", alt:
|
|
38
|
+
React.createElement(OakIcon, { className: "chevron-icon", iconName: "chevron-down", "$width": "spacing-32", "$height": "spacing-32", alt: isOpen ? "Hide all resources" : "Show all resources", style: {
|
|
39
39
|
transform: isOpen ? "rotate(180deg)" : "none",
|
|
40
40
|
transition: "all 0.3s ease 0s",
|
|
41
41
|
} }))))),
|
|
42
|
-
React.createElement(OakBox, { "$position": "relative", "$overflow": "
|
|
43
|
-
React.createElement(InternalAccordionContent, { "$pt": "spacing-20", "aria-
|
|
42
|
+
React.createElement(OakBox, { "$position": "relative", "$overflow": "visible" },
|
|
43
|
+
React.createElement(InternalAccordionContent, { "$pt": "spacing-20", "aria-label": "Resource list" }, children))));
|
|
44
44
|
};
|
|
45
45
|
/**
|
|
46
|
-
* OakDownloadsAccordion
|
|
46
|
+
* OakResourcesAccordion renamed from OakDownloadsAccordion.
|
|
47
47
|
*
|
|
48
48
|
*/
|
|
49
|
-
var
|
|
49
|
+
var OakResourcesAccordion = function (_a) {
|
|
50
50
|
var _b = _a.initialOpen, initialOpen = _b === void 0 ? false : _b, props = __rest(_a, ["initialOpen"]);
|
|
51
51
|
return (React.createElement(InternalAccordionProvider, { isInitialOpen: initialOpen },
|
|
52
52
|
React.createElement(Accordion, __assign({}, props))));
|
|
53
53
|
};
|
|
54
54
|
var templateObject_1;
|
|
55
55
|
|
|
56
|
-
export {
|
|
56
|
+
export { OakResourcesAccordion };
|
package/dist/npm/es/index.js
CHANGED
|
@@ -79,7 +79,7 @@ export { OakSecondaryLink } from './components/navigation/OakSecondaryLink/OakSe
|
|
|
79
79
|
export { OakTabs } from './components/navigation/OakTabs/OakTabs.js';
|
|
80
80
|
export { OakCard } from './components/navigation/OakCard/OakCard.js';
|
|
81
81
|
export { OakBreadcrumbs } from './components/navigation/OakBreadcrumbs/OakBreadcrumbs.js';
|
|
82
|
-
export {
|
|
82
|
+
export { OakResourcesAccordion } from './components/owa/teacher/OakResourcesAccordion/OakResourcesAccordion.js';
|
|
83
83
|
export { OakInlineRegistrationBanner } from './components/owa/teacher/OakInlineRegistrationBanner/OakInlineRegistrationBanner.js';
|
|
84
84
|
export { OakTeacherNotesInline } from './components/owa/teacher/OakTeacherNotesInline/OakTeacherNotesInline.js';
|
|
85
85
|
export { OakTeacherNotesModal } from './components/owa/teacher/OakTeacherNotesModal/OakTeacherNotesModal.js';
|
|
@@ -122,7 +122,7 @@ export { OakBackLink } from './components/owa/OakBackLink/OakBackLink.js';
|
|
|
122
122
|
export { OakBulletList } from './components/owa/OakBulletList/OakBulletList.js';
|
|
123
123
|
export { OakCardWithHandDrawnBorder } from './components/owa/OakCardWithHandDrawnBorder/OakCardWithHandDrawnBorder.js';
|
|
124
124
|
export { OakCopyLinkButton } from './components/owa/OakCopyLinkButton/OakCopyLinkButton.js';
|
|
125
|
-
export {
|
|
125
|
+
export { OakResourceCard } from './components/owa/OakResourceCard/OakResourceCard.js';
|
|
126
126
|
export { OakDragAndDropInstructions } from './components/owa/OakDragAndDropInstructions/OakDragAndDropInstructions.js';
|
|
127
127
|
export { OakDraggable } from './components/owa/OakDraggable/OakDraggable.js';
|
|
128
128
|
export { OakDraggableFeedback } from './components/owa/OakDraggableFeedback/OakDraggableFeedback.js';
|
package/dist/npm/es/types.d.ts
CHANGED
|
@@ -2630,6 +2630,7 @@ type OakRadioAsButtonProps = Omit<BaseRadioProps, "defaultChecked" | "id" | "che
|
|
|
2630
2630
|
*/
|
|
2631
2631
|
keepIconColor?: boolean;
|
|
2632
2632
|
disabled?: HTMLInputElement["disabled"];
|
|
2633
|
+
isSubdued?: boolean;
|
|
2633
2634
|
"aria-labelledby"?: React$1.AriaAttributes["aria-labelledby"];
|
|
2634
2635
|
"aria-label"?: React$1.AriaAttributes["aria-label"];
|
|
2635
2636
|
/**
|
|
@@ -3546,11 +3547,11 @@ type OakBreadcrumbsProps = {
|
|
|
3546
3547
|
*/
|
|
3547
3548
|
declare const OakBreadcrumbs: ({ breadcrumbs, }: Readonly<OakBreadcrumbsProps>) => React$1.JSX.Element;
|
|
3548
3549
|
|
|
3549
|
-
type
|
|
3550
|
+
type OakResourcesAccordionProps = {
|
|
3550
3551
|
/**
|
|
3551
3552
|
* Text to render in the subheading
|
|
3552
3553
|
*/
|
|
3553
|
-
|
|
3554
|
+
subheading: string;
|
|
3554
3555
|
/**
|
|
3555
3556
|
* Event handler for select all checkbox
|
|
3556
3557
|
*/
|
|
@@ -3573,10 +3574,10 @@ type OakDownloadsAccordionProps = {
|
|
|
3573
3574
|
initialOpen?: boolean;
|
|
3574
3575
|
} & FlexStyleProps & OakBoxProps & ColorStyleProps;
|
|
3575
3576
|
/**
|
|
3576
|
-
* OakDownloadsAccordion
|
|
3577
|
+
* OakResourcesAccordion renamed from OakDownloadsAccordion.
|
|
3577
3578
|
*
|
|
3578
3579
|
*/
|
|
3579
|
-
declare const
|
|
3580
|
+
declare const OakResourcesAccordion: ({ initialOpen, ...props }: OakResourcesAccordionProps) => React$1.JSX.Element;
|
|
3580
3581
|
|
|
3581
3582
|
type OakInlineRegistrationBannerProps = {
|
|
3582
3583
|
onSubmit: (email: string) => Promise<string | undefined>;
|
|
@@ -4386,21 +4387,21 @@ type OakCopyLinkButtonProps = {
|
|
|
4386
4387
|
*/
|
|
4387
4388
|
declare const OakCopyLinkButton: ({ href }: OakCopyLinkButtonProps) => React$1.JSX.Element;
|
|
4388
4389
|
|
|
4389
|
-
type
|
|
4390
|
+
type OakResourceCardProps = BaseCheckBoxProps & {
|
|
4390
4391
|
/**
|
|
4391
|
-
* The primary title content for the
|
|
4392
|
+
* The primary title content for the resource.
|
|
4392
4393
|
*/
|
|
4393
|
-
title:
|
|
4394
|
+
title: string;
|
|
4394
4395
|
/**
|
|
4395
4396
|
* Optional file size content shown beneath the title.
|
|
4396
4397
|
*/
|
|
4397
|
-
fileSize?:
|
|
4398
|
+
fileSize?: string;
|
|
4398
4399
|
/**
|
|
4399
|
-
* The file format or
|
|
4400
|
+
* The file format(s) or description shown beneath the title.
|
|
4400
4401
|
*/
|
|
4401
|
-
|
|
4402
|
+
description: string | string[];
|
|
4402
4403
|
/**
|
|
4403
|
-
* The icon used to represent the
|
|
4404
|
+
* The icon used to represent the resource type.
|
|
4404
4405
|
*/
|
|
4405
4406
|
iconName: IconName | IconName[];
|
|
4406
4407
|
/**
|
|
@@ -4409,15 +4410,23 @@ type OakDownloadCardProps = BaseCheckBoxProps & {
|
|
|
4409
4410
|
* @default false
|
|
4410
4411
|
*/
|
|
4411
4412
|
isRadio?: boolean;
|
|
4413
|
+
/**
|
|
4414
|
+
* If true, adds an informational `Editable` tag to the resource card.
|
|
4415
|
+
*
|
|
4416
|
+
* @default false
|
|
4417
|
+
*/
|
|
4418
|
+
isEditable?: boolean;
|
|
4412
4419
|
};
|
|
4413
4420
|
/**
|
|
4414
|
-
*
|
|
4421
|
+
* Resource cards present a downloadable/shareable resource with metadata and a selectable control.
|
|
4422
|
+
* This component has been renamed from OakDownloadCard.
|
|
4415
4423
|
* ## Usage
|
|
4416
|
-
* Use this component when users need to select one or more downloadable resources,
|
|
4424
|
+
* Use this component when users need to select one or more downloadable/shareable resources,
|
|
4417
4425
|
* such as lesson plans, slide decks, or worksheets.
|
|
4418
|
-
* Design document: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=14795-5603
|
|
4426
|
+
* Design document: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=14795-5603>\
|
|
4427
|
+
* Updated with new standards: <https://www.figma.com/design/xIIH1NUk2IHKxgh5BW5gOd/Test-Oak-Component-Standards?node-id=66-905&p=f&m=dev>
|
|
4419
4428
|
*/
|
|
4420
|
-
declare const
|
|
4429
|
+
declare const OakResourceCard: (props: OakResourceCardProps) => React$1.JSX.Element;
|
|
4421
4430
|
|
|
4422
4431
|
/**
|
|
4423
4432
|
* Displays instructions for drag and drop functionality
|
|
@@ -5319,5 +5328,5 @@ declare const useIsScrolled: () => {
|
|
|
5319
5328
|
|
|
5320
5329
|
declare const useBreakpoint: () => Device;
|
|
5321
5330
|
|
|
5322
|
-
export { DropdownContext, HeadingTagComponent, IconDown, IconUp, OakAccordion, OakAnchorTarget, OakAspectRatio, OakBackLink, OakBasicAccordion, OakBox, OakBreadcrumbs, OakBulletList, OakButtonAsRadioGroup, OakButtonWithDropdown, OakButtonWithDropdownProvider, OakCaptionCard, OakCaptionSearch, OakCard, OakCardHeader, OakCardWithHandDrawnBorder, OakCarousel, OakCheckBox, OakCloseButton, OakCloudinaryConfigProvider, OakCloudinaryImage, OakCodeRenderer, OakCollapsibleContent, OakCookieBanner, OakCookieConsent, OakCookieConsentContext, OakCookieConsentProvider, OakCookieSettingsModal, OakCopyLinkButton,
|
|
5323
|
-
export type { BannerTypes, BreakpointName, Consent, Device, InternalQuizResultItemProps, LessonSectionName$1 as LessonSectionName, MenuItemProps, OakAccordionProps, OakAllSpacingToken, OakAnchorTargetProps, OakAspectRatioProps, OakBackLinkProps, OakBasicAccordionProps, OakBorderRadiusToken, OakBorderWidthToken, OakBoxProps, OakBreadcrumb, OakBreadcrumbWithoutHref, OakBreadcrumbsProps, OakBulletListProps, OakButtonWithDropdownProps, OakCaptionCardProps, OakCaptionSearchProps, OakCardHeaderprops, OakCardProps, OakCardWithHandDrawnBorderProps, OakCarouselProps, OakCheckBoxProps, OakCloseButtonProps, OakCloudinaryImageProps, OakCodeRendererProps, OakCollapsibleContentProps, OakColorFilterToken, OakColorToken, OakCombinedSpacingToken, OakCookieBannerProps, OakCookieConsentProps, OakCookieSettingsModalProps,
|
|
5331
|
+
export { DropdownContext, HeadingTagComponent, IconDown, IconUp, OakAccordion, OakAnchorTarget, OakAspectRatio, OakBackLink, OakBasicAccordion, OakBox, OakBreadcrumbs, OakBulletList, OakButtonAsRadioGroup, OakButtonWithDropdown, OakButtonWithDropdownProvider, OakCaptionCard, OakCaptionSearch, OakCard, OakCardHeader, OakCardWithHandDrawnBorder, OakCarousel, OakCheckBox, OakCloseButton, OakCloudinaryConfigProvider, OakCloudinaryImage, OakCodeRenderer, OakCollapsibleContent, OakCookieBanner, OakCookieConsent, OakCookieConsentContext, OakCookieConsentProvider, OakCookieSettingsModal, OakCopyLinkButton, OakDownloadsJourneyChildSubjectTierSelector, OakDragAndDropInstructions, OakDraggable, OakDraggableFeedback, OakDroppable, OakFieldError, OakFieldset, OakFilterDrawer, OakFlex, OakFocusIndicator, OakForm, OakFormInput, OakFormInputWithLabels, OakGlobalStyle, OakGrid, OakGridArea, OakHandDrawnCard, OakHandDrawnCardWithIcon, OakHandDrawnFocusUnderline, OakHandDrawnHR, OakHeaderHero, OakHeading, OakHintButton, OakHomepageTabButton, OakHoverLink, OakIcon, OakImage, OakInfo, OakInfoButton, OakInformativeModal, OakInformativeModalBody, OakInformativeModalBorderColor, OakInformativeModalFooter, OakInlineBanner, OakInlineRegistrationBanner, OakJauntyAngleLabel, OakKbd, OakLI, OakLabel, OakLeftAlignedButton, OakLessonBottomNav, OakLessonInfoCard, OakLessonLayout, OakLessonNavItem, OakLessonReviewIntroVideo, OakLessonReviewItem, OakLessonReviewQuiz, OakLessonTopNav, OakLessonVideoTranscript, OakLink, OakLinkCard, OakListItem, OakLoadingSpinner, OakMaxWidth, OakMediaClip, OakMediaClipList, OakMediaClipListAccordion, OakMediaClipStackListItem, OakModalCenter, OakModalCenterBody, OakMultilineText, OakOL, OakOptGroup, OakOption, OakOutlineAccordion, OakP, OakPagination, OakPrimaryButton, OakPrimaryInvertedButton, OakPrimaryNav, OakPrimaryNavItem, OakPromoTag, OakPupilJourneyContentGuidance, OakPupilJourneyHeader, OakPupilJourneyLayout, OakPupilJourneyList, OakPupilJourneyListCounter, OakPupilJourneyListItem, OakPupilJourneyListItemSubheading, OakPupilJourneyOptionalityButton, OakPupilJourneyOptionalityItem, OakPupilJourneyProgrammeOptions, OakPupilJourneyUnitsFilter, OakPupilJourneyYearButton, OakQuizCheckBox, OakQuizCounter, OakQuizFeedback, OakQuizHint, OakQuizMatch, OakQuizMatchItemId, OakQuizOrder, OakQuizOrderitemId, OakQuizPrintableHeader, OakQuizPrintableSubHeader, OakQuizRadioButton, OakQuizResultItem, OakQuizTextInput, OakQuote, OakRadioAsButton, OakRadioButton, OakRadioGroup, OakRadioTile, OakResourceCard, OakResourcesAccordion, OakRoundIcon, OakSaveCount, OakScaleImageButton, OakScreenReader, OakSearchFilterCheckBox, OakSecondaryButton, OakSecondaryButtonAsRadio, OakSecondaryButtonWithDropdown, OakSecondaryLink, OakSelect, OakSideMenuNav, OakSideMenuNavLink, OakSignLanguageButton, OakSmallPrimaryButton, OakSmallPrimaryInvertedButton, OakSmallSecondaryButton, OakSmallSecondaryButtonWithDropdown, OakSmallSecondaryToggleButton, OakSmallTertiaryInvertedButton, OakSpan, OakStaticMessageCard, OakSubjectIcon, OakSubjectIconButton, OakSvg, OakTabs, OakTagFunctional, OakTeacherNotesInline, OakTeacherNotesModal, OakTertiaryButton, OakTertiaryInvertedButton, OakTertiaryOLNav, OakTextArea, OakTextInput, OakThemeProvider, OakTimer, OakToast, OakTooltip, OakTypography, OakUL, OakUnitListItem, OakUnitListOptionalityItem, OakVideo, OakVideoTranscript, RadioContext, ReviewItemContainer, ReviewItemTitleSection, StyledMediaClipImage, UnstyledChevronAccordion, announcements, bannerTypes, bannerVariants, colorSchemes, formatTimeCode, generateOakIconURL, getBackgroundUrlForSection, getBreakpoint, getDefaultContextState, getMediaQuery, installMockIntersectionObserver, installMockResizeObserver, isTileItem, isValidIconName, lessonSectionNames, oakAllSpacingTokens, oakBorderRadiusTokens, oakBorderWidthTokens, oakBoxCss, oakColorTokens, oakDarkTheme, oakDefaultTheme, oakDropShadowTokens, oakFlexCss, oakFontSizeTokens, oakFontTokens, oakHeadingTags, oakIconNames, oakLIDefaults, oakOpacityTokens, oakPlaceholder, oakSpaceBetweenTokens, oakTransitionTokens, oakUiRoleTokens, oakZIndexTokens, parseBorder, parseBorderRadius, parseColor, parseColorFilter, parseDropShadow, parseFontSize, parseFontWeight, parseLetterSpacing, parseLineHeight, parseOpacity, parseSpacing, parseTransitions, parseZIndex, placeholderStyles, removedGuidanceDuplicates, responsiveStyle, rgbToHex, useBreakpoint, useCookieConsent, useDevice, useDropdownContext, useIsScrolled, useMediaQuery, useMounted };
|
|
5332
|
+
export type { BannerTypes, BreakpointName, Consent, Device, InternalQuizResultItemProps, LessonSectionName$1 as LessonSectionName, MenuItemProps, OakAccordionProps, OakAllSpacingToken, OakAnchorTargetProps, OakAspectRatioProps, OakBackLinkProps, OakBasicAccordionProps, OakBorderRadiusToken, OakBorderWidthToken, OakBoxProps, OakBreadcrumb, OakBreadcrumbWithoutHref, OakBreadcrumbsProps, OakBulletListProps, OakButtonWithDropdownProps, OakCaptionCardProps, OakCaptionSearchProps, OakCardHeaderprops, OakCardProps, OakCardWithHandDrawnBorderProps, OakCarouselProps, OakCheckBoxProps, OakCloseButtonProps, OakCloudinaryImageProps, OakCodeRendererProps, OakCollapsibleContentProps, OakColorFilterToken, OakColorToken, OakCombinedSpacingToken, OakCookieBannerProps, OakCookieConsentProps, OakCookieSettingsModalProps, OakDownloadsJourneyChildSubjectTierSelectorProps, OakDropShadowToken, OakDroppableProps, OakFieldErrorProps, OakFieldsetProps, OakFlexProps, OakFocusIndicatorProps, OakFontSizeToken, OakFontToken, OakFormInputProps, OakFormInputWithLabelsProps, OakFormProps, OakGridAreaProps, OakGridProps, OakHandDrawnBoxWithIconProps, OakHandDrawnCardProps, OakHandDrawnFocusUnderlineProps, OakHandDrawnHRProps, OakHeaderHeroProps, OakHeadingProps, OakHeadingTag, OakHintButtonProps, OakHomepageTabButtonProps, OakHoverLinkProps, OakIconName, OakIconProps, OakImageProps, OakInfoButtonProps, OakInfoCardProps, OakInfoProps, OakInformativeModalBodyProps, OakInformativeModalCloseAction, OakInformativeModalFooterProps, OakInformativeModalProps, OakInlineBannerProps, OakInlineBannerTypes, OakInlineBannerVariantProps, OakInlineBannerVariants, OakInlineRegistrationBannerProps, OakJauntyAngleLabelProps, OakKbdProps, OakLIProps, OakLabelProps, OakLeftAlignedButtonProps, OakLessonBottomNavProps, OakLessonLayoutProps, OakLessonNavItemProps, OakLessonReviewIntroVideoProps, OakLessonReviewItemProps, OakLessonTopNavProps, OakLinkCardProps, OakLinkProps, OakListItemProps, OakLoadingSpinnerProps, OakMediaClipListProps, OakMediaClipProps, OakMediaClipStackListItemProps, OakModalCenterBodyProps, OakModalCenterProps, OakMultilineTextProps, OakOLProps, OakOpacityToken, OakOptGroupProps, OakOptionProps, OakOutlineAccordionProps, OakPProps, OakPaginationProps, OakPrimaryButtonProps, OakPrimaryInvertedButtonProps, OakPrimaryNavItemProps, OakPrimaryNavProps, OakPromoTagProps, OakPupilContentGuidance, OakPupilJourneyContentGuidanceProps, OakPupilJourneyHeaderProps, OakPupilJourneyLayoutProps, OakPupilJourneyListItemSubheadingProps, OakPupilJourneyListProps, OakPupilJourneyOptionalityItemProps, OakPupilJourneyProgrammeOptionsProps, OakPupilJourneyUnitsFilterProps, OakPupilJourneyYearButtonProps, OakQuizCheckBoxProps, OakQuizCounterProps, OakQuizFeedbackProps, OakQuizHintProps, OakQuizMatchProps, OakQuizOrderProps, OakQuizPrintableHeaderProps, OakQuizPrintableSubHeaderProps, OakQuizRadioButtonProps, OakQuoteProps, OakRadioAsButtonProps, OakRadioGroupProps, OakRadioTileProps, OakResourceCardProps, OakResourcesAccordionProps, OakRoundIconProps, OakSaveCountProps, OakScaleImageButtonProps, OakSearchFilterCheckBoxProps, OakSecondaryButtonAsRadioProps, OakSecondaryButtonProps, OakSecondaryButtonWithDropdownProps, OakSecondaryLinkProps, OakSelectProps, OakSideMenuNavLinkProps, OakSideMenuNavProps, OakSmallPrimaryButtonProps, OakSmallPrimaryInvertedButtonProps, OakSmallSecondaryButtonProps, OakSmallSecondaryButtonWithDropdownProps, OakSmallSecondaryToggleButtonProps, OakSmallTertiaryInvertedButtonProps, OakSolidBorderAccordionProps, OakSpaceBetweenToken, OakSpanProps, OakSubjectIconButtonProps, OakSubjectIconProps, OakSvgNames, OakSvgProps, OakTabsProps, OakTagFunctionalProps, OakTeacherNotesInlineProps, OakTeacherNotesModalProps, OakTertiaryOLNavProps, OakTextAreaProps, OakTextInputProps, OakTheme, OakThemeProviderProps, OakTimerProps, OakToastProps, OakTooltipProps, OakTransitionToken, OakTypographyProps, OakULProps, OakUiRoleToken, OakUnitListItemProps, OakUnitListOptionalityItemProps, OakVideoProps, OakZIndexToken, Phase$1 as Phase, PolicyConsent, PupilJourneySectionName, Subject, Tier, TileItem, UnstyledChevronAccordionProps };
|