@oaknational/oak-components 3.26.0 → 3.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/npm/cjs/index.js +2109 -2111
- package/dist/npm/cjs/types.d.ts +5 -5
- package/dist/npm/es/components/navigation/OakLink/OakLink.js +21 -2
- package/dist/npm/es/components/navigation/OakPagination/OakPagination.js +1 -3
- package/dist/npm/es/components/owa/OakMediaClip/OakMediaClip.js +1 -3
- package/dist/npm/es/components/owa/teacher/OakTeacherNotesModal/OakTeacherNotesModal.js +1 -1
- package/dist/npm/es/types.d.ts +5 -5
- package/package.json +10 -8
package/dist/npm/cjs/types.d.ts
CHANGED
|
@@ -2963,7 +2963,7 @@ declare const OakMaxWidth: styled_components_dist_types.IStyledComponentBase<"we
|
|
|
2963
2963
|
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | (React$1.CSSProperties & {
|
|
2964
2964
|
[key: `--${string}`]: string | number | undefined;
|
|
2965
2965
|
}) | undefined;
|
|
2966
|
-
}, OakFlexProps>, "children" | "ref" | "role" | "slot" | "style" | "title" | "$pa" | "$ph" | "$pv" | "$pt" | "$pb" | "$ba" | "$borderRadius" | "$borderColor" | "$background" | "$color" | "$font" | "$textDecoration" | "$textAlign" | "$whiteSpace" | "$wordWrap" | "$textOverflow" | "$overflow" | "$textWrap" | "$pl" | "$pr" | "$ma" | "$mh" | "$mv" | "$ml" | "$mr" | "$mt" | "$mb" | "$display" | "$bt" | "$br" | "$bb" | "$bl" | "$bh" | "$bv" | "$borderStyle" | "$btlr" | "$btrr" | "$bblr" | "$bbrr" | "$btr" | "$bbr" | "$dropShadow" | "$position" | "$top" | "$right" | "$bottom" | "$left" | "$inset" | "$overflowX" | "$overflowY" | "$objectFit" | "$objectPosition" | "$pointerEvents" | "$visibility" | "$verticalAlign" | "$flexDirection" | "$flexWrap" | "$alignItems" | "$alignContent" | "$justifyContent" | "$alignSelf" | "$flexGrow" | "$flexShrink" | "$order" | "$flexBasis" | "$gap" | "$columnGap" | "$rowGap" | "focusable" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "
|
|
2966
|
+
}, OakFlexProps>, "children" | "ref" | "aria-label" | "aria-description" | "aria-labelledby" | "aria-describedby" | "hidden" | "role" | "slot" | "style" | "title" | "$pa" | "$ph" | "$pv" | "$pt" | "$pb" | "$ba" | "$borderRadius" | "$borderColor" | "$background" | "$color" | "$font" | "$textDecoration" | "$textAlign" | "$whiteSpace" | "$wordWrap" | "$textOverflow" | "$overflow" | "$textWrap" | "$pl" | "$pr" | "$ma" | "$mh" | "$mv" | "$ml" | "$mr" | "$mt" | "$mb" | "$display" | "$bt" | "$br" | "$bb" | "$bl" | "$bh" | "$bv" | "$borderStyle" | "$btlr" | "$btrr" | "$bblr" | "$bbrr" | "$btr" | "$bbr" | "$dropShadow" | "$position" | "$top" | "$right" | "$bottom" | "$left" | "$inset" | "$overflowX" | "$overflowY" | "$objectFit" | "$objectPosition" | "$pointerEvents" | "$visibility" | "$verticalAlign" | "$flexDirection" | "$flexWrap" | "$alignItems" | "$alignContent" | "$justifyContent" | "$alignSelf" | "$flexGrow" | "$flexShrink" | "$order" | "$flexBasis" | "$gap" | "$columnGap" | "$rowGap" | "focusable" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "$width" | "$minWidth" | "$maxWidth" | "$height" | "$minHeight" | "$maxHeight" | "$aspectRatio" | "$boxSizing" | "$opacity" | "$transform" | "$transformOrigin" | "$transition" | "$zIndex" | "$scrollMarginTop" | "$scrollMarginLeft" | "as" | "forwardedAs"> & Partial<Pick<styled_components_dist_types.Merged<Omit<styled_components.FastOmit<styled_components_dist_types.Merged<Omit<Omit<styled_components.FastOmit<styled_components_dist_types.Merged<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
2967
2967
|
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
2968
2968
|
}, OakBoxProps>, "as" | "forwardedAs"> & {
|
|
2969
2969
|
as?: styled_components.WebTarget | undefined;
|
|
@@ -2981,7 +2981,7 @@ declare const OakMaxWidth: styled_components_dist_types.IStyledComponentBase<"we
|
|
|
2981
2981
|
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | (React$1.CSSProperties & {
|
|
2982
2982
|
[key: `--${string}`]: string | number | undefined;
|
|
2983
2983
|
}) | undefined;
|
|
2984
|
-
}, OakFlexProps>, "children" | "ref" | "role" | "slot" | "style" | "title" | "$pa" | "$ph" | "$pv" | "$pt" | "$pb" | "$ba" | "$borderRadius" | "$borderColor" | "$background" | "$color" | "$font" | "$textDecoration" | "$textAlign" | "$whiteSpace" | "$wordWrap" | "$textOverflow" | "$overflow" | "$textWrap" | "$pl" | "$pr" | "$ma" | "$mh" | "$mv" | "$ml" | "$mr" | "$mt" | "$mb" | "$display" | "$bt" | "$br" | "$bb" | "$bl" | "$bh" | "$bv" | "$borderStyle" | "$btlr" | "$btrr" | "$bblr" | "$bbrr" | "$btr" | "$bbr" | "$dropShadow" | "$position" | "$top" | "$right" | "$bottom" | "$left" | "$inset" | "$overflowX" | "$overflowY" | "$objectFit" | "$objectPosition" | "$pointerEvents" | "$visibility" | "$verticalAlign" | "$flexDirection" | "$flexWrap" | "$alignItems" | "$alignContent" | "$justifyContent" | "$alignSelf" | "$flexGrow" | "$flexShrink" | "$order" | "$flexBasis" | "$gap" | "$columnGap" | "$rowGap" | "focusable" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "
|
|
2984
|
+
}, OakFlexProps>, "children" | "ref" | "aria-label" | "aria-description" | "aria-labelledby" | "aria-describedby" | "hidden" | "role" | "slot" | "style" | "title" | "$pa" | "$ph" | "$pv" | "$pt" | "$pb" | "$ba" | "$borderRadius" | "$borderColor" | "$background" | "$color" | "$font" | "$textDecoration" | "$textAlign" | "$whiteSpace" | "$wordWrap" | "$textOverflow" | "$overflow" | "$textWrap" | "$pl" | "$pr" | "$ma" | "$mh" | "$mv" | "$ml" | "$mr" | "$mt" | "$mb" | "$display" | "$bt" | "$br" | "$bb" | "$bl" | "$bh" | "$bv" | "$borderStyle" | "$btlr" | "$btrr" | "$bblr" | "$bbrr" | "$btr" | "$bbr" | "$dropShadow" | "$position" | "$top" | "$right" | "$bottom" | "$left" | "$inset" | "$overflowX" | "$overflowY" | "$objectFit" | "$objectPosition" | "$pointerEvents" | "$visibility" | "$verticalAlign" | "$flexDirection" | "$flexWrap" | "$alignItems" | "$alignContent" | "$justifyContent" | "$alignSelf" | "$flexGrow" | "$flexShrink" | "$order" | "$flexBasis" | "$gap" | "$columnGap" | "$rowGap" | "focusable" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "$width" | "$minWidth" | "$maxWidth" | "$height" | "$minHeight" | "$maxHeight" | "$aspectRatio" | "$boxSizing" | "$opacity" | "$transform" | "$transformOrigin" | "$transition" | "$zIndex" | "$scrollMarginTop" | "$scrollMarginLeft" | "as" | "forwardedAs">>> & string;
|
|
2985
2985
|
|
|
2986
2986
|
type OakAccordionProps = {
|
|
2987
2987
|
/**
|
|
@@ -5112,7 +5112,7 @@ declare const StyledMediaClipImage: styled_components_dist_types.IStyledComponen
|
|
|
5112
5112
|
imageProps?: Partial<Omit<any, "ref">> | undefined;
|
|
5113
5113
|
}, "style"> & {
|
|
5114
5114
|
style?: React__default.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
5115
|
-
}, StyledImageProps>> & string & Omit<(<C extends React__default.ElementType = React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref" | "width" | "
|
|
5115
|
+
}, StyledImageProps>> & string & Omit<(<C extends React__default.ElementType = React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref" | "width" | "src" | "srcSet" | "alt" | "height" | "loading"> & {
|
|
5116
5116
|
src: string | next_dist_shared_lib_get_img_props.StaticImport;
|
|
5117
5117
|
alt: string;
|
|
5118
5118
|
width?: number | `${number}`;
|
|
@@ -5349,9 +5349,9 @@ declare const oakLIDefaults: {
|
|
|
5349
5349
|
};
|
|
5350
5350
|
declare const OakLI: styled_components_dist_types.IStyledComponentBase<"web", Omit<styled_components_dist_types.Merged<styled_components_dist_types.Merged<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "style"> & {
|
|
5351
5351
|
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
5352
|
-
}, OakLIProps>, OakLIProps>, "children" | "ref" | "role" | "slot" | "style" | "title" | "$pa" | "$ph" | "$pv" | "$pt" | "$pb" | "$ba" | "$borderRadius" | "$borderColor" | "$background" | "$color" | "$font" | "$textDecoration" | "$textAlign" | "$whiteSpace" | "$wordWrap" | "$textOverflow" | "$overflow" | "$textWrap" | "$pl" | "$pr" | "$ma" | "$mh" | "$mv" | "$ml" | "$mr" | "$mt" | "$mb" | "$display" | "$bt" | "$br" | "$bb" | "$bl" | "$bh" | "$bv" | "$borderStyle" | "$btlr" | "$btrr" | "$bblr" | "$bbrr" | "$btr" | "$bbr" | "$dropShadow" | "$position" | "$top" | "$right" | "$bottom" | "$left" | "$inset" | "$overflowX" | "$overflowY" | "$objectFit" | "$objectPosition" | "$pointerEvents" | "$visibility" | "$verticalAlign" | "
|
|
5352
|
+
}, OakLIProps>, OakLIProps>, "children" | "ref" | "aria-label" | "aria-description" | "aria-labelledby" | "aria-describedby" | "value" | "hidden" | "role" | "slot" | "style" | "title" | "$pa" | "$ph" | "$pv" | "$pt" | "$pb" | "$ba" | "$borderRadius" | "$borderColor" | "$background" | "$color" | "$font" | "$textDecoration" | "$textAlign" | "$whiteSpace" | "$wordWrap" | "$textOverflow" | "$overflow" | "$textWrap" | "$pl" | "$pr" | "$ma" | "$mh" | "$mv" | "$ml" | "$mr" | "$mt" | "$mb" | "$display" | "$bt" | "$br" | "$bb" | "$bl" | "$bh" | "$bv" | "$borderStyle" | "$btlr" | "$btrr" | "$bblr" | "$bbrr" | "$btr" | "$bbr" | "$dropShadow" | "$position" | "$top" | "$right" | "$bottom" | "$left" | "$inset" | "$overflowX" | "$overflowY" | "$objectFit" | "$objectPosition" | "$pointerEvents" | "$visibility" | "$verticalAlign" | "$flexDirection" | "$flexWrap" | "$alignItems" | "$alignContent" | "$justifyContent" | "$alignSelf" | "$flexGrow" | "$flexShrink" | "$order" | "$flexBasis" | "$gap" | "$columnGap" | "$rowGap" | "focusable" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "$width" | "$minWidth" | "$maxWidth" | "$height" | "$minHeight" | "$maxHeight" | "$aspectRatio" | "$boxSizing" | "$opacity" | "$transform" | "$transformOrigin" | "$transition" | "$zIndex" | "$scrollMarginTop" | "$scrollMarginLeft" | "$listStyle"> & Partial<Pick<styled_components_dist_types.Merged<styled_components_dist_types.Merged<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "style"> & {
|
|
5353
5353
|
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
5354
|
-
}, OakLIProps>, OakLIProps>, "children" | "ref" | "role" | "slot" | "style" | "title" | "$pa" | "$ph" | "$pv" | "$pt" | "$pb" | "$ba" | "$borderRadius" | "$borderColor" | "$background" | "$color" | "$font" | "$textDecoration" | "$textAlign" | "$whiteSpace" | "$wordWrap" | "$textOverflow" | "$overflow" | "$textWrap" | "$pl" | "$pr" | "$ma" | "$mh" | "$mv" | "$ml" | "$mr" | "$mt" | "$mb" | "$display" | "$bt" | "$br" | "$bb" | "$bl" | "$bh" | "$bv" | "$borderStyle" | "$btlr" | "$btrr" | "$bblr" | "$bbrr" | "$btr" | "$bbr" | "$dropShadow" | "$position" | "$top" | "$right" | "$bottom" | "$left" | "$inset" | "$overflowX" | "$overflowY" | "$objectFit" | "$objectPosition" | "$pointerEvents" | "$visibility" | "$verticalAlign" | "
|
|
5354
|
+
}, OakLIProps>, OakLIProps>, "children" | "ref" | "aria-label" | "aria-description" | "aria-labelledby" | "aria-describedby" | "value" | "hidden" | "role" | "slot" | "style" | "title" | "$pa" | "$ph" | "$pv" | "$pt" | "$pb" | "$ba" | "$borderRadius" | "$borderColor" | "$background" | "$color" | "$font" | "$textDecoration" | "$textAlign" | "$whiteSpace" | "$wordWrap" | "$textOverflow" | "$overflow" | "$textWrap" | "$pl" | "$pr" | "$ma" | "$mh" | "$mv" | "$ml" | "$mr" | "$mt" | "$mb" | "$display" | "$bt" | "$br" | "$bb" | "$bl" | "$bh" | "$bv" | "$borderStyle" | "$btlr" | "$btrr" | "$bblr" | "$bbrr" | "$btr" | "$bbr" | "$dropShadow" | "$position" | "$top" | "$right" | "$bottom" | "$left" | "$inset" | "$overflowX" | "$overflowY" | "$objectFit" | "$objectPosition" | "$pointerEvents" | "$visibility" | "$verticalAlign" | "$flexDirection" | "$flexWrap" | "$alignItems" | "$alignContent" | "$justifyContent" | "$alignSelf" | "$flexGrow" | "$flexShrink" | "$order" | "$flexBasis" | "$gap" | "$columnGap" | "$rowGap" | "focusable" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "$width" | "$minWidth" | "$maxWidth" | "$height" | "$minHeight" | "$maxHeight" | "$aspectRatio" | "$boxSizing" | "$opacity" | "$transform" | "$transformOrigin" | "$transition" | "$zIndex" | "$scrollMarginTop" | "$scrollMarginLeft" | "$listStyle">>> & string;
|
|
5355
5355
|
|
|
5356
5356
|
type OakOLProps = MarginStyleProps & ColorStyleProps & TypographyStyleProps;
|
|
5357
5357
|
/**
|
|
@@ -4,6 +4,23 @@ import styled from 'styled-components';
|
|
|
4
4
|
import { variantConfig } from './config.js';
|
|
5
5
|
import { InternalLink } from '../../internal-components/InternalLink/InternalLink.js';
|
|
6
6
|
import { typographyStyle } from '../../../styles/utils/typographyStyle.js';
|
|
7
|
+
import '../../typography/OakSpan/OakSpan.js';
|
|
8
|
+
import { OakScreenReader } from '../../messaging-and-feedback/OakScreenReader/OakScreenReader.js';
|
|
9
|
+
import '../../messaging-and-feedback/OakInformativeModal/OakInformativeModal.js';
|
|
10
|
+
import '../../layout-and-structure/OakBox/OakBox.js';
|
|
11
|
+
import '../../layout-and-structure/OakFlex/OakFlex.js';
|
|
12
|
+
import '../../messaging-and-feedback/OakLoadingSpinner/OakLoadingSpinner.js';
|
|
13
|
+
import '../../internal-components/InternalShadowRoundButton/InternalShadowRoundButton.js';
|
|
14
|
+
import '../../typography/OakHeading/OakHeading.js';
|
|
15
|
+
import '../../images-and-icons/OakImage/OakImage.js';
|
|
16
|
+
import '../../messaging-and-feedback/OakModalCenter/OakModalCenter.js';
|
|
17
|
+
import '../../messaging-and-feedback/OakToast/OakToast.js';
|
|
18
|
+
import 'react-dom';
|
|
19
|
+
import '../../internal-components/InternalTooltip/InternalTooltip.js';
|
|
20
|
+
import '../../messaging-and-feedback/OakFocusIndicator/OakFocusIndicator.js';
|
|
21
|
+
import '../../messaging-and-feedback/OakHandDrawnFocusUnderline/OakHandDrawnFocusUnderline.js';
|
|
22
|
+
import '../../messaging-and-feedback/OakPromoTag/OakPromoTag.js';
|
|
23
|
+
import '../../messaging-and-feedback/OakErrorBoundary/OakErrorBoundary.js';
|
|
7
24
|
|
|
8
25
|
var StyledInternalLink = styled(InternalLink)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) { return props.$font && typographyStyle; });
|
|
9
26
|
/**
|
|
@@ -12,9 +29,11 @@ var StyledInternalLink = styled(InternalLink)(templateObject_1 || (templateObjec
|
|
|
12
29
|
* Defaulting to a `HTMLAnchorElement` this component is polymorphic and can be rendered as a button or any other element.
|
|
13
30
|
*/
|
|
14
31
|
var OakLink = forwardRef(function (props, ref) {
|
|
15
|
-
var _a = props.variant, variant = _a === void 0 ? "primary" : _a, restProps = __rest(props, ["variant"]);
|
|
32
|
+
var _a = props.variant, variant = _a === void 0 ? "primary" : _a, children = props.children, restProps = __rest(props, ["variant", "children"]);
|
|
16
33
|
var variantDefinition = variantConfig[variant];
|
|
17
|
-
return (React.createElement(StyledInternalLink, __assign({ color: variantDefinition.color, hoverColor: variantDefinition.hoverColor, activeColor: variantDefinition.activeColor, visitedColor: variantDefinition.visitedColor, textDecoration: variantDefinition.textDecoration, disabledColor: "text-disabled" }, restProps, { ref: ref })
|
|
34
|
+
return (React.createElement(StyledInternalLink, __assign({ color: variantDefinition.color, hoverColor: variantDefinition.hoverColor, activeColor: variantDefinition.activeColor, visitedColor: variantDefinition.visitedColor, textDecoration: variantDefinition.textDecoration, disabledColor: "text-disabled" }, restProps, { ref: ref }),
|
|
35
|
+
children,
|
|
36
|
+
restProps.target === "_blank" && (React.createElement(OakScreenReader, null, " (opens in a new tab)"))));
|
|
18
37
|
});
|
|
19
38
|
var templateObject_1;
|
|
20
39
|
|
|
@@ -18,9 +18,7 @@ var StyledIcon = styled(OakIcon)(templateObject_3 || (templateObject_3 = __makeT
|
|
|
18
18
|
return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n filter: ", ";\n "], ["\n filter: ", ";\n "])), parseColorFilter("icon-disabled"));
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
|
-
var StyledNumberButton = styled(OakLink)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n height: 30px;\n width: 30px;\n border-radius: 100px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-decoration: none;\n ", "\n color: ", ";\n\n ", ";\n\n ", "\n\n @media (hover: hover) {\n &:hover,\n &:visited:hover {\n color: ", ";\n text-decoration: underline;\n }\n }\n"], ["\n height: 30px;\n width: 30px;\n border-radius: 100px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-decoration: none;\n ", "\n color: ", ";\n\n ", ";\n\n ", "\n\n @media (hover: hover) {\n &:hover,\n &:visited:hover {\n color: ", ";\n text-decoration: underline;\n }\n }\n"])), typographyStyle, parseColor("text-primary"), function (props) { return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), props.$selected
|
|
22
|
-
? parseColor("icon-primary")
|
|
23
|
-
: parseColor("icon-inverted")); }, function (props) {
|
|
21
|
+
var StyledNumberButton = styled(OakLink)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n height: 30px;\n width: 30px;\n border-radius: 100px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-decoration: none;\n ", "\n color: ", ";\n\n ", ";\n\n ", "\n\n @media (hover: hover) {\n &:hover,\n &:visited:hover {\n color: ", ";\n text-decoration: underline;\n }\n }\n"], ["\n height: 30px;\n width: 30px;\n border-radius: 100px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-decoration: none;\n ", "\n color: ", ";\n\n ", ";\n\n ", "\n\n @media (hover: hover) {\n &:hover,\n &:visited:hover {\n color: ", ";\n text-decoration: underline;\n }\n }\n"])), typographyStyle, parseColor("text-primary"), function (props) { return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), props.$selected ? parseColor("icon-primary") : parseColor("icon-inverted")); }, function (props) {
|
|
24
22
|
return props.$selected && css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n &:visited {\n color: ", ";\n }\n "], ["\n color: ", ";\n &:visited {\n color: ", ";\n }\n "])), parseColor("text-inverted"), parseColor("text-inverted"));
|
|
25
23
|
}, function (props) {
|
|
26
24
|
return parseColor(props.$selected ? "text-inverted" : "text-primary");
|
|
@@ -50,9 +50,7 @@ var ImageBox = styled(OakFlex)(templateObject_4 || (templateObject_4 = __makeTem
|
|
|
50
50
|
return props.disabled && css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n &::after {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: lightgray;\n opacity: 0.5;\n border-radius: 2px;\n }\n "], ["\n &::after {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: lightgray;\n opacity: 0.5;\n border-radius: 2px;\n }\n "])));
|
|
51
51
|
});
|
|
52
52
|
var TextBox = styled(OakFlex)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: \"relative\";\n overflow: hidden;\n text-overflow: ellipsis;\n h4 {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: 3;\n }\n"], ["\n position: \"relative\";\n overflow: hidden;\n text-overflow: ellipsis;\n h4 {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: 3;\n }\n"])));
|
|
53
|
-
var StyledInternalButton = styled(InternalButton)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", "\n ", "\n display: inline-block;\n transition: opacity 300ms ease-out;\n ", "\n"], ["\n ", "\n ", "\n display: inline-block;\n transition: opacity 300ms ease-out;\n ", "\n"])), positionStyle, sizeStyle, function (props) { return css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n &:hover {\n h4 {\n text-decoration: ", ";\n }\n color: ", ";\n background: ", ";\n border-color: ", ";\n }\n &:active {\n background: ", ";\n border-color: ", ";\n color: ", ";\n }\n &:disabled {\n background: ", ";\n border-color: ", ";\n color: ", ";\n }\n "], ["\n &:hover {\n h4 {\n text-decoration: ", ";\n }\n color: ", ";\n background: ", ";\n border-color: ", ";\n }\n &:active {\n background: ", ";\n border-color: ", ";\n color: ", ";\n }\n &:disabled {\n background: ", ";\n border-color: ", ";\n color: ", ";\n }\n "])), props.$muxPlayingState === "standard"
|
|
54
|
-
? "underline"
|
|
55
|
-
: "none", parseColor(props.$hoverTextColor), parseColor(props.$hoverBackground), parseColor(props.$hoverBorderColor), parseColor(props.$defaultBackground), parseColor(props.$defaultBorderColor), parseColor(props.$defaultTextColor), parseColor(props.$disabledBackground), parseColor(props.$disabledBorderColor), parseColor(props.$disabledTextColor)); });
|
|
53
|
+
var StyledInternalButton = styled(InternalButton)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", "\n ", "\n display: inline-block;\n transition: opacity 300ms ease-out;\n ", "\n"], ["\n ", "\n ", "\n display: inline-block;\n transition: opacity 300ms ease-out;\n ", "\n"])), positionStyle, sizeStyle, function (props) { return css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n &:hover {\n h4 {\n text-decoration: ", ";\n }\n color: ", ";\n background: ", ";\n border-color: ", ";\n }\n &:active {\n background: ", ";\n border-color: ", ";\n color: ", ";\n }\n &:disabled {\n background: ", ";\n border-color: ", ";\n color: ", ";\n }\n "], ["\n &:hover {\n h4 {\n text-decoration: ", ";\n }\n color: ", ";\n background: ", ";\n border-color: ", ";\n }\n &:active {\n background: ", ";\n border-color: ", ";\n color: ", ";\n }\n &:disabled {\n background: ", ";\n border-color: ", ";\n color: ", ";\n }\n "])), props.$muxPlayingState === "standard" ? "underline" : "none", parseColor(props.$hoverTextColor), parseColor(props.$hoverBackground), parseColor(props.$hoverBorderColor), parseColor(props.$defaultBackground), parseColor(props.$defaultBorderColor), parseColor(props.$defaultTextColor), parseColor(props.$disabledBackground), parseColor(props.$disabledBorderColor), parseColor(props.$disabledTextColor)); });
|
|
56
54
|
var OakMediaClip = function (_a) {
|
|
57
55
|
var thumbnailImage = _a.thumbnailImage, timeCode = _a.timeCode, clipName = _a.clipName, learningCycle = _a.learningCycle, muxPlayingState = _a.muxPlayingState, onClick = _a.onClick, disabled = _a.disabled, imageAltText = _a.imageAltText, isAudioClip = _a.isAudioClip, _b = _a.element, element = _b === void 0 ? "button" : _b;
|
|
58
56
|
var buttonStyles = getButtonStyles(muxPlayingState);
|
|
@@ -65,7 +65,7 @@ var OakTeacherNotesModal = function (_a) {
|
|
|
65
65
|
React.createElement(OakP, { "$font": "body-2", "$mt": "spacing-4" },
|
|
66
66
|
"Names, email addresses, or other personal information will be redacted from your note to help keep everyone safe. For more guidance, see our",
|
|
67
67
|
" ",
|
|
68
|
-
React.createElement(OakLink, { target: "_blank", href: "https://www.thenational.academy/legal/terms-and-conditions"
|
|
68
|
+
React.createElement(OakLink, { target: "_blank", href: "https://www.thenational.academy/legal/terms-and-conditions" }, "Terms & conditions"),
|
|
69
69
|
".")) }))));
|
|
70
70
|
};
|
|
71
71
|
|
package/dist/npm/es/types.d.ts
CHANGED
|
@@ -2963,7 +2963,7 @@ declare const OakMaxWidth: styled_components_dist_types.IStyledComponentBase<"we
|
|
|
2963
2963
|
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | (React$1.CSSProperties & {
|
|
2964
2964
|
[key: `--${string}`]: string | number | undefined;
|
|
2965
2965
|
}) | undefined;
|
|
2966
|
-
}, OakFlexProps>, "children" | "ref" | "role" | "slot" | "style" | "title" | "$pa" | "$ph" | "$pv" | "$pt" | "$pb" | "$ba" | "$borderRadius" | "$borderColor" | "$background" | "$color" | "$font" | "$textDecoration" | "$textAlign" | "$whiteSpace" | "$wordWrap" | "$textOverflow" | "$overflow" | "$textWrap" | "$pl" | "$pr" | "$ma" | "$mh" | "$mv" | "$ml" | "$mr" | "$mt" | "$mb" | "$display" | "$bt" | "$br" | "$bb" | "$bl" | "$bh" | "$bv" | "$borderStyle" | "$btlr" | "$btrr" | "$bblr" | "$bbrr" | "$btr" | "$bbr" | "$dropShadow" | "$position" | "$top" | "$right" | "$bottom" | "$left" | "$inset" | "$overflowX" | "$overflowY" | "$objectFit" | "$objectPosition" | "$pointerEvents" | "$visibility" | "$verticalAlign" | "$flexDirection" | "$flexWrap" | "$alignItems" | "$alignContent" | "$justifyContent" | "$alignSelf" | "$flexGrow" | "$flexShrink" | "$order" | "$flexBasis" | "$gap" | "$columnGap" | "$rowGap" | "focusable" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "
|
|
2966
|
+
}, OakFlexProps>, "children" | "ref" | "aria-label" | "aria-description" | "aria-labelledby" | "aria-describedby" | "hidden" | "role" | "slot" | "style" | "title" | "$pa" | "$ph" | "$pv" | "$pt" | "$pb" | "$ba" | "$borderRadius" | "$borderColor" | "$background" | "$color" | "$font" | "$textDecoration" | "$textAlign" | "$whiteSpace" | "$wordWrap" | "$textOverflow" | "$overflow" | "$textWrap" | "$pl" | "$pr" | "$ma" | "$mh" | "$mv" | "$ml" | "$mr" | "$mt" | "$mb" | "$display" | "$bt" | "$br" | "$bb" | "$bl" | "$bh" | "$bv" | "$borderStyle" | "$btlr" | "$btrr" | "$bblr" | "$bbrr" | "$btr" | "$bbr" | "$dropShadow" | "$position" | "$top" | "$right" | "$bottom" | "$left" | "$inset" | "$overflowX" | "$overflowY" | "$objectFit" | "$objectPosition" | "$pointerEvents" | "$visibility" | "$verticalAlign" | "$flexDirection" | "$flexWrap" | "$alignItems" | "$alignContent" | "$justifyContent" | "$alignSelf" | "$flexGrow" | "$flexShrink" | "$order" | "$flexBasis" | "$gap" | "$columnGap" | "$rowGap" | "focusable" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "$width" | "$minWidth" | "$maxWidth" | "$height" | "$minHeight" | "$maxHeight" | "$aspectRatio" | "$boxSizing" | "$opacity" | "$transform" | "$transformOrigin" | "$transition" | "$zIndex" | "$scrollMarginTop" | "$scrollMarginLeft" | "as" | "forwardedAs"> & Partial<Pick<styled_components_dist_types.Merged<Omit<styled_components.FastOmit<styled_components_dist_types.Merged<Omit<Omit<styled_components.FastOmit<styled_components_dist_types.Merged<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
2967
2967
|
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
2968
2968
|
}, OakBoxProps>, "as" | "forwardedAs"> & {
|
|
2969
2969
|
as?: styled_components.WebTarget | undefined;
|
|
@@ -2981,7 +2981,7 @@ declare const OakMaxWidth: styled_components_dist_types.IStyledComponentBase<"we
|
|
|
2981
2981
|
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | (React$1.CSSProperties & {
|
|
2982
2982
|
[key: `--${string}`]: string | number | undefined;
|
|
2983
2983
|
}) | undefined;
|
|
2984
|
-
}, OakFlexProps>, "children" | "ref" | "role" | "slot" | "style" | "title" | "$pa" | "$ph" | "$pv" | "$pt" | "$pb" | "$ba" | "$borderRadius" | "$borderColor" | "$background" | "$color" | "$font" | "$textDecoration" | "$textAlign" | "$whiteSpace" | "$wordWrap" | "$textOverflow" | "$overflow" | "$textWrap" | "$pl" | "$pr" | "$ma" | "$mh" | "$mv" | "$ml" | "$mr" | "$mt" | "$mb" | "$display" | "$bt" | "$br" | "$bb" | "$bl" | "$bh" | "$bv" | "$borderStyle" | "$btlr" | "$btrr" | "$bblr" | "$bbrr" | "$btr" | "$bbr" | "$dropShadow" | "$position" | "$top" | "$right" | "$bottom" | "$left" | "$inset" | "$overflowX" | "$overflowY" | "$objectFit" | "$objectPosition" | "$pointerEvents" | "$visibility" | "$verticalAlign" | "$flexDirection" | "$flexWrap" | "$alignItems" | "$alignContent" | "$justifyContent" | "$alignSelf" | "$flexGrow" | "$flexShrink" | "$order" | "$flexBasis" | "$gap" | "$columnGap" | "$rowGap" | "focusable" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "
|
|
2984
|
+
}, OakFlexProps>, "children" | "ref" | "aria-label" | "aria-description" | "aria-labelledby" | "aria-describedby" | "hidden" | "role" | "slot" | "style" | "title" | "$pa" | "$ph" | "$pv" | "$pt" | "$pb" | "$ba" | "$borderRadius" | "$borderColor" | "$background" | "$color" | "$font" | "$textDecoration" | "$textAlign" | "$whiteSpace" | "$wordWrap" | "$textOverflow" | "$overflow" | "$textWrap" | "$pl" | "$pr" | "$ma" | "$mh" | "$mv" | "$ml" | "$mr" | "$mt" | "$mb" | "$display" | "$bt" | "$br" | "$bb" | "$bl" | "$bh" | "$bv" | "$borderStyle" | "$btlr" | "$btrr" | "$bblr" | "$bbrr" | "$btr" | "$bbr" | "$dropShadow" | "$position" | "$top" | "$right" | "$bottom" | "$left" | "$inset" | "$overflowX" | "$overflowY" | "$objectFit" | "$objectPosition" | "$pointerEvents" | "$visibility" | "$verticalAlign" | "$flexDirection" | "$flexWrap" | "$alignItems" | "$alignContent" | "$justifyContent" | "$alignSelf" | "$flexGrow" | "$flexShrink" | "$order" | "$flexBasis" | "$gap" | "$columnGap" | "$rowGap" | "focusable" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "$width" | "$minWidth" | "$maxWidth" | "$height" | "$minHeight" | "$maxHeight" | "$aspectRatio" | "$boxSizing" | "$opacity" | "$transform" | "$transformOrigin" | "$transition" | "$zIndex" | "$scrollMarginTop" | "$scrollMarginLeft" | "as" | "forwardedAs">>> & string;
|
|
2985
2985
|
|
|
2986
2986
|
type OakAccordionProps = {
|
|
2987
2987
|
/**
|
|
@@ -5112,7 +5112,7 @@ declare const StyledMediaClipImage: styled_components_dist_types.IStyledComponen
|
|
|
5112
5112
|
imageProps?: Partial<Omit<any, "ref">> | undefined;
|
|
5113
5113
|
}, "style"> & {
|
|
5114
5114
|
style?: React__default.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
5115
|
-
}, StyledImageProps>> & string & Omit<(<C extends React__default.ElementType = React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref" | "width" | "
|
|
5115
|
+
}, StyledImageProps>> & string & Omit<(<C extends React__default.ElementType = React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref" | "width" | "src" | "srcSet" | "alt" | "height" | "loading"> & {
|
|
5116
5116
|
src: string | next_dist_shared_lib_get_img_props.StaticImport;
|
|
5117
5117
|
alt: string;
|
|
5118
5118
|
width?: number | `${number}`;
|
|
@@ -5349,9 +5349,9 @@ declare const oakLIDefaults: {
|
|
|
5349
5349
|
};
|
|
5350
5350
|
declare const OakLI: styled_components_dist_types.IStyledComponentBase<"web", Omit<styled_components_dist_types.Merged<styled_components_dist_types.Merged<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "style"> & {
|
|
5351
5351
|
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
5352
|
-
}, OakLIProps>, OakLIProps>, "children" | "ref" | "role" | "slot" | "style" | "title" | "$pa" | "$ph" | "$pv" | "$pt" | "$pb" | "$ba" | "$borderRadius" | "$borderColor" | "$background" | "$color" | "$font" | "$textDecoration" | "$textAlign" | "$whiteSpace" | "$wordWrap" | "$textOverflow" | "$overflow" | "$textWrap" | "$pl" | "$pr" | "$ma" | "$mh" | "$mv" | "$ml" | "$mr" | "$mt" | "$mb" | "$display" | "$bt" | "$br" | "$bb" | "$bl" | "$bh" | "$bv" | "$borderStyle" | "$btlr" | "$btrr" | "$bblr" | "$bbrr" | "$btr" | "$bbr" | "$dropShadow" | "$position" | "$top" | "$right" | "$bottom" | "$left" | "$inset" | "$overflowX" | "$overflowY" | "$objectFit" | "$objectPosition" | "$pointerEvents" | "$visibility" | "$verticalAlign" | "
|
|
5352
|
+
}, OakLIProps>, OakLIProps>, "children" | "ref" | "aria-label" | "aria-description" | "aria-labelledby" | "aria-describedby" | "value" | "hidden" | "role" | "slot" | "style" | "title" | "$pa" | "$ph" | "$pv" | "$pt" | "$pb" | "$ba" | "$borderRadius" | "$borderColor" | "$background" | "$color" | "$font" | "$textDecoration" | "$textAlign" | "$whiteSpace" | "$wordWrap" | "$textOverflow" | "$overflow" | "$textWrap" | "$pl" | "$pr" | "$ma" | "$mh" | "$mv" | "$ml" | "$mr" | "$mt" | "$mb" | "$display" | "$bt" | "$br" | "$bb" | "$bl" | "$bh" | "$bv" | "$borderStyle" | "$btlr" | "$btrr" | "$bblr" | "$bbrr" | "$btr" | "$bbr" | "$dropShadow" | "$position" | "$top" | "$right" | "$bottom" | "$left" | "$inset" | "$overflowX" | "$overflowY" | "$objectFit" | "$objectPosition" | "$pointerEvents" | "$visibility" | "$verticalAlign" | "$flexDirection" | "$flexWrap" | "$alignItems" | "$alignContent" | "$justifyContent" | "$alignSelf" | "$flexGrow" | "$flexShrink" | "$order" | "$flexBasis" | "$gap" | "$columnGap" | "$rowGap" | "focusable" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "$width" | "$minWidth" | "$maxWidth" | "$height" | "$minHeight" | "$maxHeight" | "$aspectRatio" | "$boxSizing" | "$opacity" | "$transform" | "$transformOrigin" | "$transition" | "$zIndex" | "$scrollMarginTop" | "$scrollMarginLeft" | "$listStyle"> & Partial<Pick<styled_components_dist_types.Merged<styled_components_dist_types.Merged<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "style"> & {
|
|
5353
5353
|
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
5354
|
-
}, OakLIProps>, OakLIProps>, "children" | "ref" | "role" | "slot" | "style" | "title" | "$pa" | "$ph" | "$pv" | "$pt" | "$pb" | "$ba" | "$borderRadius" | "$borderColor" | "$background" | "$color" | "$font" | "$textDecoration" | "$textAlign" | "$whiteSpace" | "$wordWrap" | "$textOverflow" | "$overflow" | "$textWrap" | "$pl" | "$pr" | "$ma" | "$mh" | "$mv" | "$ml" | "$mr" | "$mt" | "$mb" | "$display" | "$bt" | "$br" | "$bb" | "$bl" | "$bh" | "$bv" | "$borderStyle" | "$btlr" | "$btrr" | "$bblr" | "$bbrr" | "$btr" | "$bbr" | "$dropShadow" | "$position" | "$top" | "$right" | "$bottom" | "$left" | "$inset" | "$overflowX" | "$overflowY" | "$objectFit" | "$objectPosition" | "$pointerEvents" | "$visibility" | "$verticalAlign" | "
|
|
5354
|
+
}, OakLIProps>, OakLIProps>, "children" | "ref" | "aria-label" | "aria-description" | "aria-labelledby" | "aria-describedby" | "value" | "hidden" | "role" | "slot" | "style" | "title" | "$pa" | "$ph" | "$pv" | "$pt" | "$pb" | "$ba" | "$borderRadius" | "$borderColor" | "$background" | "$color" | "$font" | "$textDecoration" | "$textAlign" | "$whiteSpace" | "$wordWrap" | "$textOverflow" | "$overflow" | "$textWrap" | "$pl" | "$pr" | "$ma" | "$mh" | "$mv" | "$ml" | "$mr" | "$mt" | "$mb" | "$display" | "$bt" | "$br" | "$bb" | "$bl" | "$bh" | "$bv" | "$borderStyle" | "$btlr" | "$btrr" | "$bblr" | "$bbrr" | "$btr" | "$bbr" | "$dropShadow" | "$position" | "$top" | "$right" | "$bottom" | "$left" | "$inset" | "$overflowX" | "$overflowY" | "$objectFit" | "$objectPosition" | "$pointerEvents" | "$visibility" | "$verticalAlign" | "$flexDirection" | "$flexWrap" | "$alignItems" | "$alignContent" | "$justifyContent" | "$alignSelf" | "$flexGrow" | "$flexShrink" | "$order" | "$flexBasis" | "$gap" | "$columnGap" | "$rowGap" | "focusable" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "$width" | "$minWidth" | "$maxWidth" | "$height" | "$minHeight" | "$maxHeight" | "$aspectRatio" | "$boxSizing" | "$opacity" | "$transform" | "$transformOrigin" | "$transition" | "$zIndex" | "$scrollMarginTop" | "$scrollMarginLeft" | "$listStyle">>> & string;
|
|
5355
5355
|
|
|
5356
5356
|
type OakOLProps = MarginStyleProps & ColorStyleProps & TypographyStyleProps;
|
|
5357
5357
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oaknational/oak-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.28.0",
|
|
4
4
|
"licence": "MIT",
|
|
5
5
|
"packageManager": "pnpm@11.2.0",
|
|
6
6
|
"description": "Shared components for Oak applications",
|
|
@@ -87,12 +87,12 @@
|
|
|
87
87
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
88
88
|
"@semantic-release/git": "^10.0.1",
|
|
89
89
|
"@semantic-release/npm": "^13.1.5",
|
|
90
|
-
"@storybook/addon-a11y": "10.6.
|
|
91
|
-
"@storybook/addon-docs": "10.6.
|
|
92
|
-
"@storybook/addon-links": "10.6.
|
|
93
|
-
"@storybook/addon-onboarding": "10.6.
|
|
94
|
-
"@storybook/addon-themes": "10.6.
|
|
95
|
-
"@storybook/nextjs": "10.6.
|
|
90
|
+
"@storybook/addon-a11y": "10.6.5",
|
|
91
|
+
"@storybook/addon-docs": "10.6.5",
|
|
92
|
+
"@storybook/addon-links": "10.6.5",
|
|
93
|
+
"@storybook/addon-onboarding": "10.6.5",
|
|
94
|
+
"@storybook/addon-themes": "10.6.5",
|
|
95
|
+
"@storybook/nextjs": "10.6.5",
|
|
96
96
|
"@storybook/test-runner": "^0.24.5",
|
|
97
97
|
"@testing-library/jest-dom": "^6.9.1",
|
|
98
98
|
"@testing-library/react": "^16.3.2",
|
|
@@ -131,6 +131,8 @@
|
|
|
131
131
|
"jest-util": "^30.3.0",
|
|
132
132
|
"jscodeshift": "^17.3.0",
|
|
133
133
|
"knip": "^6.4.1",
|
|
134
|
+
"next": "15.5.29",
|
|
135
|
+
"next-cloudinary": "6.16.0",
|
|
134
136
|
"playwright": "^1.61.1",
|
|
135
137
|
"prettier": "^3.8.3",
|
|
136
138
|
"react": "^18.2.0",
|
|
@@ -141,7 +143,7 @@
|
|
|
141
143
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
142
144
|
"rollup-plugin-typescript-paths": "^1.5.0",
|
|
143
145
|
"semantic-release": "^25.0.3",
|
|
144
|
-
"storybook": "10.6.
|
|
146
|
+
"storybook": "10.6.5",
|
|
145
147
|
"tmp": "^0.2.7",
|
|
146
148
|
"ts-jest": "^29.4.9",
|
|
147
149
|
"tsx": "^4.21.0",
|