@oaknational/oak-components 0.0.32 → 0.0.34
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/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/types.d.ts +27 -4
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as styled_components from 'styled-components';
|
|
2
2
|
import { CSSProperties as CSSProperties$1 } from 'styled-components';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
|
-
import React__default, { CSSProperties, MouseEventHandler, ElementType, ComponentPropsWithoutRef, FC, ReactNode, FocusEvent, DetailedHTMLProps, InputHTMLAttributes, ChangeEventHandler, ReactElement, ComponentProps } from 'react';
|
|
4
|
+
import React__default, { CSSProperties, MouseEventHandler, ElementType, ComponentPropsWithoutRef, FC, ComponentPropsWithRef, ReactNode, FocusEvent, DetailedHTMLProps, InputHTMLAttributes, ChangeEventHandler, ReactElement, ComponentProps } from 'react';
|
|
5
5
|
import * as Image from 'next/image';
|
|
6
6
|
import Image__default, { ImageProps as ImageProps$1 } from 'next/image';
|
|
7
7
|
import * as next_dist_shared_lib_get_img_props from 'next/dist/shared/lib/get-img-props';
|
|
@@ -550,7 +550,7 @@ declare const icons: {
|
|
|
550
550
|
readonly share: "v1699895363/icons/agcmduftef3wcla6gzec.svg";
|
|
551
551
|
readonly "arrow-right": "v1707149070/icons/fv0z57zerrioft52dd9n.svg";
|
|
552
552
|
readonly "worksheet-3": "v1699895429/icons/bzhojpjxp9rukdvh7daz.svg";
|
|
553
|
-
readonly "chevron-right": "
|
|
553
|
+
readonly "chevron-right": "v1707752509/icons/vk9xxxhnsltsickom6q9.svg";
|
|
554
554
|
readonly save: "v1699895505/icons/rh1ahwwtbemvz0ihluew.svg";
|
|
555
555
|
readonly "quiz-3": "v1699895534/icons/zoayhgtrotv32fad7d3k.svg";
|
|
556
556
|
readonly "chevron-down": "v1699953557/icons/botfld6brychmttwtv6u.svg";
|
|
@@ -565,7 +565,7 @@ declare const icons: {
|
|
|
565
565
|
readonly "sign-language": "v1699953861/icons/ns94ozvozzi22enxkx0x.svg";
|
|
566
566
|
readonly external: "v1699953892/icons/hlxmejse3mcr4tqo6t8u.svg";
|
|
567
567
|
readonly "equipment-required": "v1699953925/icons/pw22bdhj2vrzfv2ogi4e.svg";
|
|
568
|
-
readonly "chevron-left": "
|
|
568
|
+
readonly "chevron-left": "v1707752509/icons/rbvzan0ozubmr4j0uqdn.svg";
|
|
569
569
|
readonly download: "v1699953991/icons/dk0f6a6hdpzxftjosngn.svg";
|
|
570
570
|
readonly search: "v1704901279/icons/canbi3fuz5fanzom2hvi.svg";
|
|
571
571
|
readonly "chevron-up": "v1699954058/icons/pay71thmhhylj7z28sj1.svg";
|
|
@@ -645,6 +645,7 @@ type OakGridProps = OakBoxProps & {
|
|
|
645
645
|
$gridAutoRows?: ResponsiveValues<"1fr">;
|
|
646
646
|
$gridTemplateAreas?: ResponsiveValues<string>;
|
|
647
647
|
$gridTemplateColumns?: ResponsiveValues<string>;
|
|
648
|
+
$gridTemplateRows?: ResponsiveValues<string>;
|
|
648
649
|
};
|
|
649
650
|
declare const OakGrid: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
|
|
650
651
|
children?: React$1.ReactNode;
|
|
@@ -656,6 +657,7 @@ declare const OakGrid: styled_components.StyledComponent<"div", styled_component
|
|
|
656
657
|
$gridAutoRows?: ResponsiveValues<"1fr"> | undefined;
|
|
657
658
|
$gridTemplateAreas?: ResponsiveValues<string> | undefined;
|
|
658
659
|
$gridTemplateColumns?: ResponsiveValues<string> | undefined;
|
|
660
|
+
$gridTemplateRows?: ResponsiveValues<string> | undefined;
|
|
659
661
|
}, never>;
|
|
660
662
|
|
|
661
663
|
type ColRowSpan = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
@@ -758,6 +760,14 @@ type OakLoadingSpinnerProps = Pick<SizeStyleProps, "$width"> & ColorStyleProps &
|
|
|
758
760
|
};
|
|
759
761
|
declare const OakLoadingSpinner: (props: OakLoadingSpinnerProps) => React__default.JSX.Element;
|
|
760
762
|
|
|
763
|
+
type ElementProp<C extends ElementType> = {
|
|
764
|
+
element?: C;
|
|
765
|
+
};
|
|
766
|
+
type PolymorphicRef<C extends React.ElementType> = ComponentPropsWithRef<C>["ref"];
|
|
767
|
+
type PolymorphicPropsWithRef<C extends ElementType> = ElementProp<C> & ComponentPropsWithoutRef<C> & {
|
|
768
|
+
ref?: PolymorphicRef<C>;
|
|
769
|
+
};
|
|
770
|
+
|
|
761
771
|
type StyledButtonProps = TypographyStyleProps & SpacingStyleProps & ColorStyleProps & DisplayStyleProps & BorderStyleProps & DropShadowStyleProps & {
|
|
762
772
|
isLoading?: boolean;
|
|
763
773
|
};
|
|
@@ -1148,6 +1158,19 @@ type OakCollapsibleContentProps = ComponentProps<typeof OakFlex> & {
|
|
|
1148
1158
|
*/
|
|
1149
1159
|
declare const OakCollapsibleContent: ({ isOpen, children, id, ...rest }: OakCollapsibleContentProps) => React__default.JSX.Element;
|
|
1150
1160
|
|
|
1161
|
+
type OakLinkProps = {
|
|
1162
|
+
iconName?: OakIconProps["iconName"];
|
|
1163
|
+
isTrailingIcon?: boolean;
|
|
1164
|
+
isLoading?: boolean;
|
|
1165
|
+
};
|
|
1166
|
+
type OakLinkComponent = <C extends React__default.ElementType = "a">(props: PolymorphicPropsWithRef<C> & OakLinkProps) => React__default.ReactNode;
|
|
1167
|
+
/**
|
|
1168
|
+
* A blue link with an optional icon and loading state.
|
|
1169
|
+
*
|
|
1170
|
+
* Defaulting to a `HTMLAnchorElement` this component is polymorphic and can be rendered as a button or any other element.
|
|
1171
|
+
*/
|
|
1172
|
+
declare const OakLink: OakLinkComponent;
|
|
1173
|
+
|
|
1151
1174
|
type OakQuizCheckBoxProps = Omit<BaseCheckBoxProps, "defaultChecked"> & {
|
|
1152
1175
|
feedback?: "correct" | "incorrect" | null;
|
|
1153
1176
|
image?: React__default.JSX.Element;
|
|
@@ -1370,4 +1393,4 @@ type OakLessonVideoTranscriptProps = {
|
|
|
1370
1393
|
*/
|
|
1371
1394
|
declare const OakLessonVideoTranscript: ({ children, id, signLanguageControl, }: OakLessonVideoTranscriptProps) => React__default.JSX.Element;
|
|
1372
1395
|
|
|
1373
|
-
export { HeadingTagComponent, type OakAllSpacingToken, OakBackLink, type OakBackLinkProps, type OakBorderRadiusToken, type OakBorderWidthToken, OakBox, type OakBoxProps, OakBulletList, type OakBulletListProps, OakCardHeader, type OakCardHeaderprops, OakCheckBox, type OakCheckBoxProps, OakCloudinaryConfigProvider, OakCloudinaryImage, type OakCloudinaryImageProps, OakCollapsibleContent, type OakCollapsibleContentProps, type OakColorToken, type OakCombinedColorToken, type OakCombinedSpacingToken, type OakDropShadowToken, OakFieldError, type OakFieldErrorProps, OakFlex, type OakFlexProps, type OakFontSizeToken, type OakFontToken, OakForm, type OakFormProps, OakGrid, OakGridArea, type OakGridAreaProps, type OakGridProps, type OakHandDrawnBoxWithIconProps, OakHandDrawnCard, type OakHandDrawnCardProps, OakHandDrawnCardWithIcon, OakHeading, type OakHeadingProps, type OakHeadingTag, OakHintButton, type OakHintButtonProps, OakIcon, type OakIconName, type OakIconProps, OakImage, type OakImageProps, type OakInfoCardProps, type OakInnerPaddingToken, OakLI, type OakLIProps, OakLabel, type OakLabelProps, OakLessonBottomNav, type OakLessonBottomNavProps, OakLessonInfoCard, OakLessonLayout, type OakLessonLayoutProps, OakLessonNavItem, type OakLessonNavItemProps, OakLessonReviewItem, type OakLessonReviewItemProps, OakLessonTopNav, type OakLessonTopNavProps, OakLessonVideoTranscript, OakLoadingSpinner, type OakLoadingSpinnerProps, OakMaxWidth, OakOL, type OakOLProps, type OakOpacityToken, OakP, type OakPProps, OakPrimaryButton, type OakPrimaryButtonProps, OakPrimaryInvertedButton, type OakPrimaryInvertedButtonProps, OakPrimaryNav, OakPrimaryNavItem, type OakPrimaryNavItemProps, type OakPrimaryNavProps, OakPromoTag, OakQuizCheckBox, type OakQuizCheckBoxProps, OakQuizCounter, type OakQuizCounterProps, OakQuizFeedback, type OakQuizFeedbackProps, OakQuizHint, type OakQuizHintProps, OakQuizRadioButton, type OakQuizRadioButtonProps, OakQuizTextInput, OakRadioButton, OakRadioGroup, OakRoundIcon, type OakRoundIconProps, OakSecondaryButton, type OakSecondaryButtonProps, type OakSpaceBetweenToken, OakSpan, type OakSpanProps, OakStaticMessageCard, OakSubjectIcon, type OakSubjectIconProps, OakTertiaryButton, OakTextInput, type OakTextInputProps, type OakTheme, OakThemeProvider, type OakThemeProviderProps, OakTooltip, type OakTransitionToken, OakTypography, type OakTypographyProps, OakUL, type OakULProps, type OakUiRoleToken, isValidIconName, oakAllSpacingTokens, oakBorderRadiusTokens, oakBorderWidthTokens, oakBoxCss, oakColorTokens, oakDefaultTheme, oakDropShadowTokens, oakFontSizeTokens, oakFontTokens, oakHeadingTags, oakIconNames, oakInnerPaddingTokens, oakOpacityTokens, oakSpaceBetweenTokens, oakTransitionTokens, oakUiRoleTokens };
|
|
1396
|
+
export { HeadingTagComponent, type OakAllSpacingToken, OakBackLink, type OakBackLinkProps, type OakBorderRadiusToken, type OakBorderWidthToken, OakBox, type OakBoxProps, OakBulletList, type OakBulletListProps, OakCardHeader, type OakCardHeaderprops, OakCheckBox, type OakCheckBoxProps, OakCloudinaryConfigProvider, OakCloudinaryImage, type OakCloudinaryImageProps, OakCollapsibleContent, type OakCollapsibleContentProps, type OakColorToken, type OakCombinedColorToken, type OakCombinedSpacingToken, type OakDropShadowToken, OakFieldError, type OakFieldErrorProps, OakFlex, type OakFlexProps, type OakFontSizeToken, type OakFontToken, OakForm, type OakFormProps, OakGrid, OakGridArea, type OakGridAreaProps, type OakGridProps, type OakHandDrawnBoxWithIconProps, OakHandDrawnCard, type OakHandDrawnCardProps, OakHandDrawnCardWithIcon, OakHeading, type OakHeadingProps, type OakHeadingTag, OakHintButton, type OakHintButtonProps, OakIcon, type OakIconName, type OakIconProps, OakImage, type OakImageProps, type OakInfoCardProps, type OakInnerPaddingToken, OakLI, type OakLIProps, OakLabel, type OakLabelProps, OakLessonBottomNav, type OakLessonBottomNavProps, OakLessonInfoCard, OakLessonLayout, type OakLessonLayoutProps, OakLessonNavItem, type OakLessonNavItemProps, OakLessonReviewItem, type OakLessonReviewItemProps, OakLessonTopNav, type OakLessonTopNavProps, OakLessonVideoTranscript, OakLink, type OakLinkProps, OakLoadingSpinner, type OakLoadingSpinnerProps, OakMaxWidth, OakOL, type OakOLProps, type OakOpacityToken, OakP, type OakPProps, OakPrimaryButton, type OakPrimaryButtonProps, OakPrimaryInvertedButton, type OakPrimaryInvertedButtonProps, OakPrimaryNav, OakPrimaryNavItem, type OakPrimaryNavItemProps, type OakPrimaryNavProps, OakPromoTag, OakQuizCheckBox, type OakQuizCheckBoxProps, OakQuizCounter, type OakQuizCounterProps, OakQuizFeedback, type OakQuizFeedbackProps, OakQuizHint, type OakQuizHintProps, OakQuizRadioButton, type OakQuizRadioButtonProps, OakQuizTextInput, OakRadioButton, OakRadioGroup, OakRoundIcon, type OakRoundIconProps, OakSecondaryButton, type OakSecondaryButtonProps, type OakSpaceBetweenToken, OakSpan, type OakSpanProps, OakStaticMessageCard, OakSubjectIcon, type OakSubjectIconProps, OakTertiaryButton, OakTextInput, type OakTextInputProps, type OakTheme, OakThemeProvider, type OakThemeProviderProps, OakTooltip, type OakTransitionToken, OakTypography, type OakTypographyProps, OakUL, type OakULProps, type OakUiRoleToken, isValidIconName, oakAllSpacingTokens, oakBorderRadiusTokens, oakBorderWidthTokens, oakBoxCss, oakColorTokens, oakDefaultTheme, oakDropShadowTokens, oakFontSizeTokens, oakFontTokens, oakHeadingTags, oakIconNames, oakInnerPaddingTokens, oakOpacityTokens, oakSpaceBetweenTokens, oakTransitionTokens, oakUiRoleTokens };
|