@oaknational/oak-components 3.29.2 → 3.30.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.
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { InternalModalFooter } from '../../internal-components/InternalModalFooter/InternalModalFooter.js';
3
+
4
+ /**
5
+ * A footer for the `footerSlot` of `OakDialog`, in one of the four Figma
6
+ * footer layouts. You can pass your own content to `footerSlot` instead.
7
+ *
8
+ * - `horizontal`: buttons side by side
9
+ * - `vertical`: buttons stacked
10
+ * - `left` / `right`: buttons aligned to that side
11
+ *
12
+ * For `horizontal` and `vertical`, give each button `width="100%"` so they
13
+ * fill the footer (sharing it equally when horizontal), as in Figma.
14
+ *
15
+ * Design system: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=25437-6560>
16
+ */
17
+ var OakDialogFooter = function (_a) {
18
+ var layout = _a.layout, children = _a.children;
19
+ return (React.createElement(InternalModalFooter, { layout: layout }, children));
20
+ };
21
+
22
+ export { OakDialogFooter };
@@ -7,9 +7,20 @@ import { useIsScrolled } from '../../../hooks/useIsScrolled.js';
7
7
  import { useMounted } from '../../../hooks/useMounted.js';
8
8
  import InternalModalTransition from '../../internal-components/InternalModalTransition/InternalModalTransition.js';
9
9
 
10
+ /**
11
+ * ⚠️ To be deprecated
12
+ * Use `<OakModal />` instead (it has no border colour context)
13
+ * @deprecated Use `<OakModal />` instead (it has no border colour context)
14
+ */
10
15
  var OakInformativeModalBorderColor = createContext("border-neutral-lighter");
11
16
  /**
12
17
  * Modal dialog with trapped focus and a close button. See the [design specification](https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=15135-2063)
18
+ *
19
+ * ⚠️ To be deprecated
20
+ * Use `<OakModal position="right" />` (or `position="left"`) instead
21
+ * `zIndex` and `domContainer` carry over unchanged.
22
+ * Figma: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=25437-6465>
23
+ * @deprecated Use `<OakModal position="right" />` (or `position="left"`) instead
13
24
  */
14
25
  var OakInformativeModal = function (_a) {
15
26
  var children = _a.children, footerSlot = _a.footerSlot, domContainer = _a.domContainer, isOpen = _a.isOpen, onClose = _a.onClose, zIndex = _a.zIndex, isLeftHandSide = _a.isLeftHandSide, closeOnBackgroundClick = _a.closeOnBackgroundClick, largeScreenMaxWidth = _a.largeScreenMaxWidth, rest = __rest(_a, ["children", "footerSlot", "domContainer", "isOpen", "onClose", "zIndex", "isLeftHandSide", "closeOnBackgroundClick", "largeScreenMaxWidth"]);
@@ -5,6 +5,10 @@ import { OakBox } from '../../layout-and-structure/OakBox/OakBox.js';
5
5
  * Intended to be used in the `children` slot of `OakInformativeModal`
6
6
  * it applies some padding and margin to ensure that the contents
7
7
  * line up with the modal's header and footer
8
+ *
9
+ * ⚠️ To be deprecated
10
+ * Use `<OakModal />` instead (its content area already has padding)
11
+ * @deprecated Use `<OakModal />` instead (its content area already has padding)
8
12
  */
9
13
  var OakInformativeModalBody = function (props) {
10
14
  return (React.createElement(OakBox, { "$position": "relative", "$minHeight": "100%" },
@@ -7,6 +7,10 @@ import { OakFlex } from '../../layout-and-structure/OakFlex/OakFlex.js';
7
7
  * Intended to be used in the `footer` slot of `OakInformativeModal`
8
8
  * it is ideal as a container for one or more buttons.
9
9
  * It switches from a horizontal to vertical layout on smaller screens
10
+ *
11
+ * ⚠️ To be deprecated
12
+ * Use `<OakModalFooter />` in the `footerSlot` of `<OakModal />` instead
13
+ * @deprecated Use `<OakModalFooter />` in the `footerSlot` of `<OakModal />` instead
10
14
  */
11
15
  var OakInformativeModalFooter = function (props) {
12
16
  var $borderColor = useContext(OakInformativeModalBorderColor);
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { OakCloseButton } from '../../buttons/OakCloseButton/OakCloseButton.js';
3
+ import { InternalModalBase } from '../../internal-components/InternalModalBase/InternalModalBase.js';
4
+ import { OakFlex } from '../../layout-and-structure/OakFlex/OakFlex.js';
5
+
6
+ /**
7
+ * A modal for actions or notifications that give critical information related
8
+ * to a task. Don't use it for marketing or advertising.
9
+ *
10
+ * It can be closed with the close button, the Escape key, or by clicking the
11
+ * backdrop. By default, the close button gets focus when the modal opens.
12
+ *
13
+ * To focus a different element instead, set `focusCloseButtonOnOpen={false}` and
14
+ * add `data-autofocus` to the element you want focused (e.g. an action link).
15
+ *
16
+ * An accessible name is required: pass either `aria-label` or `aria-labelledby`.
17
+ *
18
+ * Use `OakDialog` instead when the user must make an explicit choice before
19
+ * returning to the page.
20
+ *
21
+ * Design system: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=25437-6465>
22
+ */
23
+ var OakModal = function (_a) {
24
+ var isOpen = _a.isOpen, onClose = _a.onClose, position = _a.position, _b = _a.size, size = _b === void 0 ? "spacing-640" : _b, children = _a.children, headerSlot = _a.headerSlot, _c = _a.headerVariant, headerVariant = _c === void 0 ? "default" : _c, footerSlot = _a.footerSlot, _d = _a.focusCloseButtonOnOpen, focusCloseButtonOnOpen = _d === void 0 ? true : _d, ariaLabel = _a["aria-label"], ariaLabelledBy = _a["aria-labelledby"], ariaDescribedBy = _a["aria-describedby"], domContainer = _a.domContainer, zIndex = _a.zIndex, returnFocus = _a.returnFocus;
25
+ var isVerticalDrawer = position === "top" || position === "bottom";
26
+ var isHeaderInverted = headerVariant === "inverted";
27
+ // DOM order matches visual order (headerSlot, then the close button) so Tab
28
+ // order follows what the user sees. When focusCloseButtonOnOpen is true,
29
+ // `data-autofocus` gives the close button initial focus regardless of what is in headerSlot.
30
+ var header = (React.createElement(OakFlex, { "$width": "100%", "$minHeight": "spacing-64", "$pt": "spacing-16", "$ph": "spacing-24", "$gap": "spacing-16", "$alignItems": "flex-start", "$background": isHeaderInverted ? "bg-inverted" : undefined, "$color": isHeaderInverted ? "text-inverted" : undefined, "data-testid": "modal-header" },
31
+ React.createElement(OakFlex, { "$flexGrow": 1, "$minHeight": "spacing-32", "$alignItems": "center" }, headerSlot),
32
+ React.createElement(OakCloseButton, { onClose: function () { return onClose("close_button"); }, size: "spacing-32", variant: headerVariant, "data-autofocus": focusCloseButtonOnOpen || undefined })));
33
+ return (React.createElement(InternalModalBase, { isOpen: isOpen, placement: position, onDismiss: function () { return onClose(); }, width: isVerticalDrawer ? undefined : size, height: isVerticalDrawer ? size : undefined, header: header, footerSlot: footerSlot, "aria-describedby": ariaDescribedBy, domContainer: domContainer, zIndex: zIndex, returnFocus: returnFocus, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy }, children));
34
+ };
35
+
36
+ export { OakModal };
@@ -38,6 +38,12 @@ var FadeInFlex = styled(OakFlex)(templateObject_3 || (templateObject_3 = __makeT
38
38
  * - **modalInnerFlexProps?** \- Override HTMLAttributes & OakFlex props for the inner modal container
39
39
  * - **backdropFlexProps?** \- Override HTMLAttributes & OakFlex props for the backdrop container
40
40
  * - **footerSlot?** \- Fixed area at the bottom of the modal, this will remain fixed in view if the content is scrollable
41
+ *
42
+ * ⚠️ To be deprecated
43
+ * Use `<OakDialog />` (not dismissible) or `<OakModal />` (dismissible) instead
44
+ * `OakDialog` is for blocking choices, e.g. content guidance.
45
+ * Figma: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=25437-6387>
46
+ * @deprecated Use `<OakDialog />` (not dismissible) or `<OakModal />` (dismissible) instead
41
47
  */
42
48
  var OakModalCenter = function (_a) {
43
49
  var children = _a.children, domContainer = _a.domContainer, isOpen = _a.isOpen, _b = _a.onClose, onClose = _b === void 0 ? function () { } : _b, _c = _a.disableBackdropClick, disableBackdropClick = _c === void 0 ? false : _c, _d = _a.disableEscapeKey, disableEscapeKey = _d === void 0 ? false : _d, _e = _a.hideCloseButton, hideCloseButton = _e === void 0 ? false : _e, modalFlexProps = _a.modalFlexProps, modalOuterFlexProps = _a.modalOuterFlexProps, modalInnerFlexProps = _a.modalInnerFlexProps, backdropFlexProps = _a.backdropFlexProps, footerSlot = _a.footerSlot, returnFocus = _a.returnFocus;
@@ -24,6 +24,10 @@ import { OakIcon } from '../../images-and-icons/OakIcon/OakIcon.js';
24
24
  * - **children** \- The content of the modal body
25
25
  * - **headingOverride** \- Override HTMLAttributes & OakHEading props for the heading
26
26
  * - **iconOverride** \- Override HTMLAttributes & OakIcon props for the icon
27
+ *
28
+ * ⚠️ To be deprecated
29
+ * Use `<OakDialog />` with `OakHeading` and `OakP` in its content instead
30
+ * @deprecated Use `<OakDialog />` with `OakHeading` and `OakP` in its content instead
27
31
  */
28
32
  var OakModalCenterBody = function (_a) {
29
33
  var children = _a.children, _b = _a.iconName, iconName = _b === void 0 ? "info" : _b, title = _a.title, headingOverride = _a.headingOverride, iconOverride = _a.iconOverride, hideIcon = _a.hideIcon;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { InternalModalFooter } from '../../internal-components/InternalModalFooter/InternalModalFooter.js';
3
+
4
+ /**
5
+ * A footer for the `footerSlot` of `OakModal`, in one of the four Figma
6
+ * footer layouts. You can pass your own content to `footerSlot` instead.
7
+ *
8
+ * - `horizontal`: buttons side by side
9
+ * - `vertical`: buttons stacked
10
+ * - `left` / `right`: buttons aligned to that side
11
+ *
12
+ * For `horizontal` and `vertical`, give each button `width="100%"` so they
13
+ * fill the footer (sharing it equally when horizontal), as in Figma.
14
+ *
15
+ * Design system: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=25437-6560>
16
+ */
17
+ var OakModalFooter = function (_a) {
18
+ var layout = _a.layout, children = _a.children;
19
+ return (React.createElement(InternalModalFooter, { layout: layout }, children));
20
+ };
21
+
22
+ export { OakModalFooter };
@@ -14,6 +14,7 @@ import '../../internal-components/InternalShadowRoundButton/InternalShadowRoundB
14
14
  import '../../typography/OakHeading/OakHeading.js';
15
15
  import '../../images-and-icons/OakImage/OakImage.js';
16
16
  import '../../messaging-and-feedback/OakModalCenter/OakModalCenter.js';
17
+ import '../../internal-components/InternalModalBase/InternalModalBase.js';
17
18
  import '../../messaging-and-feedback/OakToast/OakToast.js';
18
19
  import 'react-dom';
19
20
  import '../../internal-components/InternalTooltip/InternalTooltip.js';
@@ -27,6 +27,7 @@ import '../../messaging-and-feedback/OakLoadingSpinner/OakLoadingSpinner.js';
27
27
  import '../../internal-components/InternalShadowRoundButton/InternalShadowRoundButton.js';
28
28
  import '../../images-and-icons/OakImage/OakImage.js';
29
29
  import '../../messaging-and-feedback/OakModalCenter/OakModalCenter.js';
30
+ import '../../internal-components/InternalModalBase/InternalModalBase.js';
30
31
  import '../../messaging-and-feedback/OakToast/OakToast.js';
31
32
  import 'react-dom';
32
33
  import '../../internal-components/InternalTooltip/InternalTooltip.js';
@@ -61,6 +61,10 @@ export { OakInlineBanner, bannerTypes, bannerVariants } from './components/messa
61
61
  export { OakLoadingSpinner } from './components/messaging-and-feedback/OakLoadingSpinner/OakLoadingSpinner.js';
62
62
  export { OakModalCenter } from './components/messaging-and-feedback/OakModalCenter/OakModalCenter.js';
63
63
  export { OakModalCenterBody } from './components/messaging-and-feedback/OakModalCenter/OakModalCenterBody.js';
64
+ export { OakDialog } from './components/messaging-and-feedback/OakDialog/OakDialog.js';
65
+ export { OakDialogFooter } from './components/messaging-and-feedback/OakDialogFooter/OakDialogFooter.js';
66
+ export { OakModal } from './components/messaging-and-feedback/OakModal/OakModal.js';
67
+ export { OakModalFooter } from './components/messaging-and-feedback/OakModalFooter/OakModalFooter.js';
64
68
  export { OakTagFunctional } from './components/messaging-and-feedback/OakTagFunctional/OakTagFunctional.js';
65
69
  export { OakToast } from './components/messaging-and-feedback/OakToast/OakToast.js';
66
70
  export { OakTooltip } from './components/messaging-and-feedback/OakTooltip/OakTooltip.js';
@@ -1449,6 +1449,18 @@ declare const useDropdownContext: () => {
1449
1449
 
1450
1450
  type OakCloseButtonProps = {
1451
1451
  onClose: () => void;
1452
+ /**
1453
+ * Size of the button and its icon
1454
+ *
1455
+ * @default spacing-24
1456
+ */
1457
+ size?: OakAllSpacingToken;
1458
+ /**
1459
+ * Use `inverted` on dark backgrounds, e.g. a black modal header
1460
+ *
1461
+ * @default default
1462
+ */
1463
+ variant?: "default" | "inverted";
1452
1464
  };
1453
1465
  /**
1454
1466
  *
@@ -1458,7 +1470,7 @@ type OakCloseButtonProps = {
1458
1470
  *
1459
1471
  *
1460
1472
  */
1461
- declare function OakCloseButton({ onClose, ...rest }: Readonly<OakCloseButtonProps>): React__default.JSX.Element;
1473
+ declare function OakCloseButton({ onClose, size, variant, ...rest }: Readonly<OakCloseButtonProps>): React__default.JSX.Element;
1462
1474
 
1463
1475
  type OakPrimaryButtonProps = Omit<InternalShadowRectButtonProps, "defaultBorderColor" | "defaultBackground" | "defaultTextColor" | "hoverBackground" | "hoverBorderColor" | "hoverTextColor" | "disabledBackground" | "disabledBorderColor" | "disabledTextColor">;
1464
1476
  /**
@@ -1910,8 +1922,23 @@ declare function useCookieConsent(): {
1910
1922
  */
1911
1923
  declare const OakCookieConsentProvider: ({ children, policyConsents, onConsentChange, }: OakCookieConsentProviderProps) => React__default.JSX.Element;
1912
1924
 
1925
+ /**
1926
+ * ⚠️ To be deprecated
1927
+ * Use `<OakModal />` instead (it has no border colour context)
1928
+ * @deprecated Use `<OakModal />` instead (it has no border colour context)
1929
+ */
1913
1930
  declare const OakInformativeModalBorderColor: React__default.Context<("transparent" | "text-primary" | "text-subdued" | "text-error" | "text-disabled" | "text-link-active" | "text-link-hover" | "text-link-visited" | "text-link-pressed" | "text-inverted" | "text-success" | "text-promo" | "bg-primary" | "bg-inverted" | "bg-inverted-semi-transparent" | "bg-neutral" | "bg-neutral-stronger" | "bg-btn-primary" | "bg-btn-primary-hover" | "bg-btn-primary-disabled" | "bg-btn-secondary" | "bg-btn-secondary-hover" | "bg-btn-secondary-disabled" | "bg-decorative1-main" | "bg-decorative1-subdued" | "bg-decorative1-very-subdued" | "bg-decorative2-main" | "bg-decorative2-subdued" | "bg-decorative2-very-subdued" | "bg-decorative3-main" | "bg-decorative3-subdued" | "bg-decorative3-very-subdued" | "bg-decorative4-main" | "bg-decorative4-subdued" | "bg-decorative4-very-subdued" | "bg-decorative5-main" | "bg-decorative5-subdued" | "bg-decorative5-very-subdued" | "bg-decorative6-main" | "bg-decorative6-subdued" | "bg-decorative6-very-subdued" | "bg-interactive-element1" | "bg-interactive-element2" | "bg-correct" | "bg-incorrect" | "bg-success" | "bg-error" | "icon-inverted" | "icon-disabled" | "icon-brand" | "icon-success" | "icon-error" | "icon-warning" | "icon-primary" | "icon-subdued" | "icon-link-active" | "icon-link-hover" | "icon-link-pressed" | "icon-link-visited" | "icon-decorative1" | "icon-decorative2" | "icon-decorative3" | "icon-decorative4" | "icon-decorative5" | "icon-decorative6" | "icon-promo" | "border-primary" | "border-inverted" | "border-neutral" | "border-neutral-lighter" | "border-neutral-stronger" | "border-brand" | "border-success" | "border-error" | "border-warning" | "border-decorative1" | "border-decorative1-stronger" | "border-decorative2" | "border-decorative2-stronger" | "border-decorative3" | "border-decorative3-stronger" | "border-decorative4" | "border-decorative4-stronger" | "border-decorative5" | "border-decorative5-stronger" | "border-decorative6" | "border-decorative6-stronger" | "border-text-link-pressed" | "code-blue" | "code-green" | "code-grey" | "code-pink" | ("transparent" | "text-primary" | "text-subdued" | "text-error" | "text-disabled" | "text-link-active" | "text-link-hover" | "text-link-visited" | "text-link-pressed" | "text-inverted" | "text-success" | "text-promo" | "bg-primary" | "bg-inverted" | "bg-inverted-semi-transparent" | "bg-neutral" | "bg-neutral-stronger" | "bg-btn-primary" | "bg-btn-primary-hover" | "bg-btn-primary-disabled" | "bg-btn-secondary" | "bg-btn-secondary-hover" | "bg-btn-secondary-disabled" | "bg-decorative1-main" | "bg-decorative1-subdued" | "bg-decorative1-very-subdued" | "bg-decorative2-main" | "bg-decorative2-subdued" | "bg-decorative2-very-subdued" | "bg-decorative3-main" | "bg-decorative3-subdued" | "bg-decorative3-very-subdued" | "bg-decorative4-main" | "bg-decorative4-subdued" | "bg-decorative4-very-subdued" | "bg-decorative5-main" | "bg-decorative5-subdued" | "bg-decorative5-very-subdued" | "bg-decorative6-main" | "bg-decorative6-subdued" | "bg-decorative6-very-subdued" | "bg-interactive-element1" | "bg-interactive-element2" | "bg-correct" | "bg-incorrect" | "bg-success" | "bg-error" | "icon-inverted" | "icon-disabled" | "icon-brand" | "icon-success" | "icon-error" | "icon-warning" | "icon-primary" | "icon-subdued" | "icon-link-active" | "icon-link-hover" | "icon-link-pressed" | "icon-link-visited" | "icon-decorative1" | "icon-decorative2" | "icon-decorative3" | "icon-decorative4" | "icon-decorative5" | "icon-decorative6" | "icon-promo" | "border-primary" | "border-inverted" | "border-neutral" | "border-neutral-lighter" | "border-neutral-stronger" | "border-brand" | "border-success" | "border-error" | "border-warning" | "border-decorative1" | "border-decorative1-stronger" | "border-decorative2" | "border-decorative2-stronger" | "border-decorative3" | "border-decorative3-stronger" | "border-decorative4" | "border-decorative4-stronger" | "border-decorative5" | "border-decorative5-stronger" | "border-decorative6" | "border-decorative6-stronger" | "border-text-link-pressed" | "code-blue" | "code-green" | "code-grey" | "code-pink" | null)[] | null) | undefined>;
1931
+ /**
1932
+ * ⚠️ To be deprecated
1933
+ * Use `OakModalCloseAction` instead
1934
+ * @deprecated Use `OakModalCloseAction` instead
1935
+ */
1914
1936
  type OakInformativeModalCloseAction = "close_button" | undefined;
1937
+ /**
1938
+ * ⚠️ To be deprecated
1939
+ * Use `OakModalProps` instead
1940
+ * @deprecated Use `OakModalProps` instead
1941
+ */
1915
1942
  type OakInformativeModalProps = {
1916
1943
  /**
1917
1944
  * The content of the modal.
@@ -1963,9 +1990,20 @@ type OakInformativeModalProps = {
1963
1990
  } & Pick<HTMLAttributes<Element>, "aria-label" | "aria-description" | "aria-labelledby" | "aria-describedby">;
1964
1991
  /**
1965
1992
  * Modal dialog with trapped focus and a close button. See the [design specification](https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=15135-2063)
1993
+ *
1994
+ * ⚠️ To be deprecated
1995
+ * Use `<OakModal position="right" />` (or `position="left"`) instead
1996
+ * `zIndex` and `domContainer` carry over unchanged.
1997
+ * Figma: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=25437-6465>
1998
+ * @deprecated Use `<OakModal position="right" />` (or `position="left"`) instead
1966
1999
  */
1967
2000
  declare const OakInformativeModal: ({ children, footerSlot, domContainer, isOpen, onClose, zIndex, isLeftHandSide, closeOnBackgroundClick, largeScreenMaxWidth, ...rest }: OakInformativeModalProps) => React__default.ReactPortal | null;
1968
2001
 
2002
+ /**
2003
+ * ⚠️ To be deprecated
2004
+ * Use `<OakModal />` instead (its content area already has padding)
2005
+ * @deprecated Use `<OakModal />` instead (its content area already has padding)
2006
+ */
1969
2007
  type OakInformativeModalBodyProps = {
1970
2008
  children: ReactNode;
1971
2009
  };
@@ -1973,9 +2011,18 @@ type OakInformativeModalBodyProps = {
1973
2011
  * Intended to be used in the `children` slot of `OakInformativeModal`
1974
2012
  * it applies some padding and margin to ensure that the contents
1975
2013
  * line up with the modal's header and footer
2014
+ *
2015
+ * ⚠️ To be deprecated
2016
+ * Use `<OakModal />` instead (its content area already has padding)
2017
+ * @deprecated Use `<OakModal />` instead (its content area already has padding)
1976
2018
  */
1977
2019
  declare const OakInformativeModalBody: (props: OakInformativeModalBodyProps) => React__default.JSX.Element;
1978
2020
 
2021
+ /**
2022
+ * ⚠️ To be deprecated
2023
+ * Use `<OakModalFooter />` in the `footerSlot` of `<OakModal />` instead
2024
+ * @deprecated Use `<OakModalFooter />` in the `footerSlot` of `<OakModal />` instead
2025
+ */
1979
2026
  type OakInformativeModalFooterProps = {
1980
2027
  children: ReactNode;
1981
2028
  };
@@ -1983,6 +2030,10 @@ type OakInformativeModalFooterProps = {
1983
2030
  * Intended to be used in the `footer` slot of `OakInformativeModal`
1984
2031
  * it is ideal as a container for one or more buttons.
1985
2032
  * It switches from a horizontal to vertical layout on smaller screens
2033
+ *
2034
+ * ⚠️ To be deprecated
2035
+ * Use `<OakModalFooter />` in the `footerSlot` of `<OakModal />` instead
2036
+ * @deprecated Use `<OakModalFooter />` in the `footerSlot` of `<OakModal />` instead
1986
2037
  */
1987
2038
  declare const OakInformativeModalFooter: (props: OakInformativeModalFooterProps) => React__default.JSX.Element;
1988
2039
 
@@ -3241,6 +3292,11 @@ declare const bannerVariants: OakInlineBannerVariantProps;
3241
3292
  */
3242
3293
  declare const OakInlineBanner: ({ isOpen, title, message, type, icon, iconColorFilter, isLoading, cta, canDismiss, onDismiss, closeButtonOverrideProps, variant, titleTag, ...props }: OakInlineBannerProps) => React__default.JSX.Element;
3243
3294
 
3295
+ /**
3296
+ * ⚠️ To be deprecated
3297
+ * Use `OakDialogProps` or `OakModalProps` instead
3298
+ * @deprecated Use `OakDialogProps` or `OakModalProps` instead
3299
+ */
3244
3300
  type OakModalCenterProps = {
3245
3301
  /**
3246
3302
  * The content of the modal. Use with `<OakModalCenterBody>` for best results.
@@ -3312,9 +3368,20 @@ type OakModalCenterProps = {
3312
3368
  * - **modalInnerFlexProps?** \- Override HTMLAttributes & OakFlex props for the inner modal container
3313
3369
  * - **backdropFlexProps?** \- Override HTMLAttributes & OakFlex props for the backdrop container
3314
3370
  * - **footerSlot?** \- Fixed area at the bottom of the modal, this will remain fixed in view if the content is scrollable
3371
+ *
3372
+ * ⚠️ To be deprecated
3373
+ * Use `<OakDialog />` (not dismissible) or `<OakModal />` (dismissible) instead
3374
+ * `OakDialog` is for blocking choices, e.g. content guidance.
3375
+ * Figma: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=25437-6387>
3376
+ * @deprecated Use `<OakDialog />` (not dismissible) or `<OakModal />` (dismissible) instead
3315
3377
  */
3316
3378
  declare const OakModalCenter: ({ children, domContainer, isOpen, onClose, disableBackdropClick, disableEscapeKey, hideCloseButton, modalFlexProps, modalOuterFlexProps, modalInnerFlexProps, backdropFlexProps, footerSlot, returnFocus, }: OakModalCenterProps) => React__default.JSX.Element;
3317
3379
 
3380
+ /**
3381
+ * ⚠️ To be deprecated
3382
+ * Use `<OakDialog />` with `OakHeading` and `OakP` in its content instead
3383
+ * @deprecated Use `<OakDialog />` with `OakHeading` and `OakP` in its content instead
3384
+ */
3318
3385
  type OakModalCenterBodyProps = {
3319
3386
  /**
3320
3387
  * The name of the icon to display. Accepts an icon name token
@@ -3354,9 +3421,253 @@ type OakModalCenterBodyProps = {
3354
3421
  * - **children** \- The content of the modal body
3355
3422
  * - **headingOverride** \- Override HTMLAttributes & OakHEading props for the heading
3356
3423
  * - **iconOverride** \- Override HTMLAttributes & OakIcon props for the icon
3424
+ *
3425
+ * ⚠️ To be deprecated
3426
+ * Use `<OakDialog />` with `OakHeading` and `OakP` in its content instead
3427
+ * @deprecated Use `<OakDialog />` with `OakHeading` and `OakP` in its content instead
3357
3428
  */
3358
3429
  declare const OakModalCenterBody: ({ children, iconName, title, headingOverride, iconOverride, hideIcon, }: OakModalCenterBodyProps) => React__default.JSX.Element;
3359
3430
 
3431
+ /**
3432
+ * A modal must have an accessible name. Exactly one of `aria-label` or
3433
+ * `aria-labelledby` is required: passing neither, or both, is a type error.
3434
+ * For the public modal components' props.
3435
+ */
3436
+ type InternalModalAccessibleName = {
3437
+ "aria-label": string;
3438
+ "aria-labelledby"?: never;
3439
+ } | {
3440
+ "aria-labelledby": string;
3441
+ "aria-label"?: never;
3442
+ };
3443
+
3444
+ type OakDialogProps = {
3445
+ /**
3446
+ * Whether the dialog is open. It can't be dismissed, so close it from your own buttons.
3447
+ */
3448
+ isOpen: boolean;
3449
+ /**
3450
+ * The content of the dialog, including a title.
3451
+ */
3452
+ children: ReactNode;
3453
+ /**
3454
+ * Fixed footer for the choice buttons, e.g. `OakDialogFooter`.
3455
+ */
3456
+ footerSlot?: ReactNode;
3457
+ /**
3458
+ * Focus the top of the content on open. Set to `false` and add
3459
+ * `data-autofocus` to a button to focus that button instead.
3460
+ *
3461
+ * @default true
3462
+ */
3463
+ focusContentOnOpen?: boolean;
3464
+ /**
3465
+ * @default spacing-960
3466
+ */
3467
+ width?: OakAllSpacingToken;
3468
+ /**
3469
+ * @default spacing-640
3470
+ */
3471
+ maxHeight?: OakAllSpacingToken;
3472
+ /**
3473
+ * Id of an element that describes the dialog. Only use for short messages.
3474
+ */
3475
+ "aria-describedby"?: string;
3476
+ /**
3477
+ * @default document.body
3478
+ */
3479
+ domContainer?: Element;
3480
+ /**
3481
+ * Overrides the `modal-dialog` z-index token. Only for consumers not using Oak z-index tokens.
3482
+ */
3483
+ zIndex?: number;
3484
+ /**
3485
+ * Override for the `returnFocus` behaviour of `FocusOn`.
3486
+ *
3487
+ * By default focus returns to the element that was focused before the dialog opened.
3488
+ */
3489
+ returnFocus?: (returnTo: Element) => boolean | FocusOptions;
3490
+ } & InternalModalAccessibleName;
3491
+ /**
3492
+ * A centred dialog that requires an explicit choice, e.g. acknowledging a
3493
+ * content guidance warning.
3494
+ *
3495
+ * - **Can't be dismissed**: no close button, Escape or backdrop click. Close it
3496
+ * by setting `isOpen` to `false`.
3497
+ * - **Focus**: goes to the content on open. To focus a button instead, use
3498
+ * `focusContentOnOpen={false}` and `data-autofocus` on the least destructive
3499
+ * (or most used) button.
3500
+ * - **Name**: `aria-label` or `aria-labelledby` is required.
3501
+ *
3502
+ * Design system: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=25437-6387>
3503
+ */
3504
+ declare const OakDialog: ({ isOpen, children, footerSlot, focusContentOnOpen, width, maxHeight, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, domContainer, zIndex, returnFocus, }: OakDialogProps) => React__default.JSX.Element;
3505
+
3506
+ type InternalModalFooterLayout = "horizontal" | "vertical" | "left" | "right";
3507
+ type InternalModalFooterProps = {
3508
+ /**
3509
+ * How the buttons are arranged.
3510
+ *
3511
+ * - `horizontal`: buttons side by side
3512
+ * - `vertical`: buttons stacked
3513
+ * - `left` / `right`: buttons aligned to that side
3514
+ *
3515
+ * For `horizontal` and `vertical`, give each button `width="100%"` so they
3516
+ * fill the footer (sharing it equally when horizontal), as in Figma.
3517
+ */
3518
+ layout: InternalModalFooterLayout;
3519
+ /**
3520
+ * The footer actions, usually `OakSecondaryButton` then `OakPrimaryButton`
3521
+ */
3522
+ children: ReactNode;
3523
+ };
3524
+
3525
+ type OakDialogFooterLayout = InternalModalFooterLayout;
3526
+ type OakDialogFooterProps = InternalModalFooterProps;
3527
+ /**
3528
+ * A footer for the `footerSlot` of `OakDialog`, in one of the four Figma
3529
+ * footer layouts. You can pass your own content to `footerSlot` instead.
3530
+ *
3531
+ * - `horizontal`: buttons side by side
3532
+ * - `vertical`: buttons stacked
3533
+ * - `left` / `right`: buttons aligned to that side
3534
+ *
3535
+ * For `horizontal` and `vertical`, give each button `width="100%"` so they
3536
+ * fill the footer (sharing it equally when horizontal), as in Figma.
3537
+ *
3538
+ * Design system: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=25437-6560>
3539
+ */
3540
+ declare const OakDialogFooter: ({ layout, children }: OakDialogFooterProps) => React__default.JSX.Element;
3541
+
3542
+ type OakModalPosition = "fullscreen" | "left" | "right" | "top" | "bottom";
3543
+ /**
3544
+ * `close_button` when the close button was used, otherwise `undefined`
3545
+ * (Escape key or backdrop click)
3546
+ */
3547
+ type OakModalCloseAction = "close_button" | undefined;
3548
+ type OakModalProps = {
3549
+ /**
3550
+ * Whether the modal is open
3551
+ */
3552
+ isOpen: boolean;
3553
+ /**
3554
+ * Called when the user closes the modal with the close button,
3555
+ * the Escape key or a backdrop click.
3556
+ *
3557
+ * Receives `"close_button"` when the close button was used, e.g. for tracking.
3558
+ */
3559
+ onClose: (action?: OakModalCloseAction) => void;
3560
+ /**
3561
+ * Where the modal is placed.
3562
+ *
3563
+ * - `fullscreen` covers the whole page
3564
+ * - `left` / `right` are full-height drawers on that edge
3565
+ * - `top` / `bottom` are full-width drawers on that edge
3566
+ *
3567
+ * Drawers fill the screen on small (mobile) screens.
3568
+ */
3569
+ position: OakModalPosition;
3570
+ /**
3571
+ * Width of `left` / `right` drawers, or height of `top` / `bottom` drawers.
3572
+ * Capped at the screen size. Ignored for `fullscreen` and on small screens.
3573
+ *
3574
+ * @default spacing-640
3575
+ */
3576
+ size?: OakAllSpacingToken;
3577
+ /**
3578
+ * The content of the modal. It scrolls when it overflows.
3579
+ * Titles should use `heading-5` or larger.
3580
+ */
3581
+ children: ReactNode;
3582
+ /**
3583
+ * Content on the left of the header, e.g. a title, logo or action link.
3584
+ * It stays in view when the content scrolls.
3585
+ */
3586
+ headerSlot?: ReactNode;
3587
+ /**
3588
+ * `inverted` gives a black header with white text and a white close button,
3589
+ * e.g. for a logo and title
3590
+ *
3591
+ * @default default
3592
+ */
3593
+ headerVariant?: "default" | "inverted";
3594
+ /**
3595
+ * Fixed area at the bottom of the modal. It stays in view when the content scrolls.
3596
+ *
3597
+ * Use `OakModalFooter` for the Figma footer layouts, or pass your own content.
3598
+ */
3599
+ footerSlot?: ReactNode;
3600
+ /**
3601
+ * Whether to focus the close button on open.
3602
+ * Set to `false` and add `data-autofocus` to another element to focus that instead.
3603
+ *
3604
+ * @default true
3605
+ */
3606
+ focusCloseButtonOnOpen?: boolean;
3607
+ /**
3608
+ * Id of an element that describes the modal
3609
+ */
3610
+ "aria-describedby"?: string;
3611
+ /**
3612
+ * The DOM container to render the modal portal into.
3613
+ *
3614
+ * @default document.body
3615
+ */
3616
+ domContainer?: Element;
3617
+ /**
3618
+ * Optional z-index override.
3619
+ *
3620
+ * Defaults to token: `modal-dialog`
3621
+ *
3622
+ * 🚨 This prop is intended for use by consumers that do not use
3623
+ * the internal system of z-index tokens.
3624
+ *
3625
+ * NB *The modal is rendered inside a portal so it will not respect the stacking context of its parent component*.
3626
+ */
3627
+ zIndex?: number;
3628
+ /**
3629
+ * Override for the `returnFocus` behaviour of `FocusOn`.
3630
+ *
3631
+ * By default focus returns to the element that was focused before the modal opened.
3632
+ */
3633
+ returnFocus?: (returnTo: Element) => boolean | FocusOptions;
3634
+ } & InternalModalAccessibleName;
3635
+ /**
3636
+ * A modal for actions or notifications that give critical information related
3637
+ * to a task. Don't use it for marketing or advertising.
3638
+ *
3639
+ * It can be closed with the close button, the Escape key, or by clicking the
3640
+ * backdrop. By default, the close button gets focus when the modal opens.
3641
+ *
3642
+ * To focus a different element instead, set `focusCloseButtonOnOpen={false}` and
3643
+ * add `data-autofocus` to the element you want focused (e.g. an action link).
3644
+ *
3645
+ * An accessible name is required: pass either `aria-label` or `aria-labelledby`.
3646
+ *
3647
+ * Use `OakDialog` instead when the user must make an explicit choice before
3648
+ * returning to the page.
3649
+ *
3650
+ * Design system: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=25437-6465>
3651
+ */
3652
+ declare const OakModal: ({ isOpen, onClose, position, size, children, headerSlot, headerVariant, footerSlot, focusCloseButtonOnOpen, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, domContainer, zIndex, returnFocus, }: OakModalProps) => React__default.JSX.Element;
3653
+
3654
+ type OakModalFooterLayout = InternalModalFooterLayout;
3655
+ type OakModalFooterProps = InternalModalFooterProps;
3656
+ /**
3657
+ * A footer for the `footerSlot` of `OakModal`, in one of the four Figma
3658
+ * footer layouts. You can pass your own content to `footerSlot` instead.
3659
+ *
3660
+ * - `horizontal`: buttons side by side
3661
+ * - `vertical`: buttons stacked
3662
+ * - `left` / `right`: buttons aligned to that side
3663
+ *
3664
+ * For `horizontal` and `vertical`, give each button `width="100%"` so they
3665
+ * fill the footer (sharing it equally when horizontal), as in Figma.
3666
+ *
3667
+ * Design system: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=25437-6560>
3668
+ */
3669
+ declare const OakModalFooter: ({ layout, children }: OakModalFooterProps) => React__default.JSX.Element;
3670
+
3360
3671
  type OakTagFunctionalProps = {
3361
3672
  label: string;
3362
3673
  iconName?: OakIconName;
@@ -5567,5 +5878,5 @@ declare const useIsScrolled: () => {
5567
5878
 
5568
5879
  declare const useBreakpoint: () => Device;
5569
5880
 
5570
- export { DropdownContext, HeadingTagComponent, IconDown, IconUp, OakAccordion, OakAnchorTarget, OakBackLink, OakBasicAccordion, OakBox, OakBreadcrumbs, OakBulletList, OakButtonAsRadioGroup, OakButtonWithDropdown, OakButtonWithDropdownProvider, OakCard, OakCardHeader, OakCardWithHandDrawnBorder, OakCarousel, OakCheckBox, OakCloseButton, OakCloudinaryConfigProvider, OakCloudinaryImage, OakCodeRenderer, OakCollapsibleContent, OakCookieBanner, OakCookieConsent, OakCookieConsentContext, OakCookieConsentProvider, OakCookieSettingsModal, OakCopyLinkButton, OakDownloadsJourneyChildSubjectTierSelector, OakDragAndDropInstructions, OakDraggable, OakDraggableFeedback, OakDroppable, OakErrorBoundary, OakErrorBoundaryBorderColor, OakFieldError, OakFieldset, OakFlex, OakFocusIndicator, OakForm, OakFormInput, OakFormInputWithLabels, OakGlobalStyle, OakGrid, OakGridArea, OakHandDrawnCard, OakHandDrawnCardWithIcon, OakHandDrawnFocusUnderline, OakHandDrawnHR, OakHeaderHero, OakHeading, OakHintButton, OakHomepageTabButton, OakHoverLink, OakIcon, OakIconButton, 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, 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, isValidIconName, lessonSectionNames, oakAllSpacingTokens, oakBorderRadiusTokens, oakBorderWidthTokens, oakBoxCss, oakColorTokens, oakDarkTheme, oakDefaultTheme, oakDropShadowTokens, oakFlexCss, oakFontSizeTokens, oakFontTokens, oakHeadingTags, oakIconNames, oakLIDefaults, oakOpacityTokens, oakPlaceholder, oakSpaceBetweenTokens, oakTransitionTokens, oakUiRoleTokens, oakZIndexTokens, parseBorder, parseBorderRadius, parseBorderWidth, parseColor, parseColorFilter, parseDropShadow, parseFontSize, parseFontWeight, parseLetterSpacing, parseLineHeight, parseOpacity, parseSpacing, parseTransitions, parseZIndex, placeholderStyles, removedGuidanceDuplicates, responsiveStyle, rgbToHex, useBreakpoint, useCookieConsent, useDevice, useDropdownContext, useIsScrolled, useMediaQuery, useMounted };
5571
- export type { BannerTypes, BreakpointName, Consent, Device, InternalQuizResultItemProps, LessonSectionName$1 as LessonSectionName, MenuItemProps, OakAccordionProps, OakAllSpacingToken, OakAnchorTargetProps, OakBackLinkProps, OakBasicAccordionProps, OakBorderRadiusToken, OakBorderWidthToken, OakBoxProps, OakBreadcrumb, OakBreadcrumbWithoutHref, OakBreadcrumbsProps, OakBulletListProps, OakButtonWithDropdownProps, OakCardHeaderprops, OakCardProps, OakCardWithHandDrawnBorderProps, OakCarouselProps, OakCheckBoxProps, OakCloseButtonProps, OakCloudinaryImageProps, OakCodeRendererProps, OakCollapsibleContentProps, OakColorFilterToken, OakColorToken, OakCombinedSpacingToken, OakCookieBannerProps, OakCookieConsentProps, OakCookieSettingsModalProps, OakDownloadsJourneyChildSubjectTierSelectorProps, OakDropShadowToken, OakDroppableProps, OakErrorBoundaryCloseAction, OakErrorBoundaryProps, OakFieldErrorProps, OakFieldsetProps, OakFlexProps, OakFocusIndicatorProps, OakFontSizeToken, OakFontToken, OakFormInputProps, OakFormInputWithLabelsProps, OakFormProps, OakGridAreaProps, OakGridProps, OakHandDrawnBoxWithIconProps, OakHandDrawnCardProps, OakHandDrawnFocusUnderlineProps, OakHandDrawnHRProps, OakHeaderHeroProps, OakHeadingProps, OakHeadingTag, OakHintButtonProps, OakHomepageTabButtonProps, OakHoverLinkProps, OakIconButtonProps, 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, 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, StyledImageProps, Subject, Tier, UnstyledChevronAccordionProps };
5881
+ export { DropdownContext, HeadingTagComponent, IconDown, IconUp, OakAccordion, OakAnchorTarget, OakBackLink, OakBasicAccordion, OakBox, OakBreadcrumbs, OakBulletList, OakButtonAsRadioGroup, OakButtonWithDropdown, OakButtonWithDropdownProvider, OakCard, OakCardHeader, OakCardWithHandDrawnBorder, OakCarousel, OakCheckBox, OakCloseButton, OakCloudinaryConfigProvider, OakCloudinaryImage, OakCodeRenderer, OakCollapsibleContent, OakCookieBanner, OakCookieConsent, OakCookieConsentContext, OakCookieConsentProvider, OakCookieSettingsModal, OakCopyLinkButton, OakDialog, OakDialogFooter, OakDownloadsJourneyChildSubjectTierSelector, OakDragAndDropInstructions, OakDraggable, OakDraggableFeedback, OakDroppable, OakErrorBoundary, OakErrorBoundaryBorderColor, OakFieldError, OakFieldset, OakFlex, OakFocusIndicator, OakForm, OakFormInput, OakFormInputWithLabels, OakGlobalStyle, OakGrid, OakGridArea, OakHandDrawnCard, OakHandDrawnCardWithIcon, OakHandDrawnFocusUnderline, OakHandDrawnHR, OakHeaderHero, OakHeading, OakHintButton, OakHomepageTabButton, OakHoverLink, OakIcon, OakIconButton, 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, OakModal, OakModalCenter, OakModalCenterBody, OakModalFooter, 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, 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, isValidIconName, lessonSectionNames, oakAllSpacingTokens, oakBorderRadiusTokens, oakBorderWidthTokens, oakBoxCss, oakColorTokens, oakDarkTheme, oakDefaultTheme, oakDropShadowTokens, oakFlexCss, oakFontSizeTokens, oakFontTokens, oakHeadingTags, oakIconNames, oakLIDefaults, oakOpacityTokens, oakPlaceholder, oakSpaceBetweenTokens, oakTransitionTokens, oakUiRoleTokens, oakZIndexTokens, parseBorder, parseBorderRadius, parseBorderWidth, parseColor, parseColorFilter, parseDropShadow, parseFontSize, parseFontWeight, parseLetterSpacing, parseLineHeight, parseOpacity, parseSpacing, parseTransitions, parseZIndex, placeholderStyles, removedGuidanceDuplicates, responsiveStyle, rgbToHex, useBreakpoint, useCookieConsent, useDevice, useDropdownContext, useIsScrolled, useMediaQuery, useMounted };
5882
+ export type { BannerTypes, BreakpointName, Consent, Device, InternalQuizResultItemProps, LessonSectionName$1 as LessonSectionName, MenuItemProps, OakAccordionProps, OakAllSpacingToken, OakAnchorTargetProps, OakBackLinkProps, OakBasicAccordionProps, OakBorderRadiusToken, OakBorderWidthToken, OakBoxProps, OakBreadcrumb, OakBreadcrumbWithoutHref, OakBreadcrumbsProps, OakBulletListProps, OakButtonWithDropdownProps, OakCardHeaderprops, OakCardProps, OakCardWithHandDrawnBorderProps, OakCarouselProps, OakCheckBoxProps, OakCloseButtonProps, OakCloudinaryImageProps, OakCodeRendererProps, OakCollapsibleContentProps, OakColorFilterToken, OakColorToken, OakCombinedSpacingToken, OakCookieBannerProps, OakCookieConsentProps, OakCookieSettingsModalProps, OakDialogFooterLayout, OakDialogFooterProps, OakDialogProps, OakDownloadsJourneyChildSubjectTierSelectorProps, OakDropShadowToken, OakDroppableProps, OakErrorBoundaryCloseAction, OakErrorBoundaryProps, OakFieldErrorProps, OakFieldsetProps, OakFlexProps, OakFocusIndicatorProps, OakFontSizeToken, OakFontToken, OakFormInputProps, OakFormInputWithLabelsProps, OakFormProps, OakGridAreaProps, OakGridProps, OakHandDrawnBoxWithIconProps, OakHandDrawnCardProps, OakHandDrawnFocusUnderlineProps, OakHandDrawnHRProps, OakHeaderHeroProps, OakHeadingProps, OakHeadingTag, OakHintButtonProps, OakHomepageTabButtonProps, OakHoverLinkProps, OakIconButtonProps, 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, OakModalCloseAction, OakModalFooterLayout, OakModalFooterProps, OakModalPosition, OakModalProps, 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, 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, StyledImageProps, Subject, Tier, UnstyledChevronAccordionProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oaknational/oak-components",
3
- "version": "3.29.2",
3
+ "version": "3.30.0",
4
4
  "licence": "MIT",
5
5
  "packageManager": "pnpm@11.2.0",
6
6
  "description": "Shared components for Oak applications",