@oaknational/oak-components 2.44.0 → 2.45.1
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 +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/types.d.ts +8 -6
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -370,9 +370,9 @@ declare const oakFontTokens: {
|
|
|
370
370
|
"body-2": ["font-size-3", 24, 300, "-0.005rem"];
|
|
371
371
|
"body-3": ["font-size-2", 20, 300, "-0.005rem"];
|
|
372
372
|
"body-4": ["font-size-1", 16, 300, "-0.005rem"];
|
|
373
|
-
"body-1-bold": ["font-size-4", 28,
|
|
374
|
-
"body-2-bold": ["font-size-3", 24,
|
|
375
|
-
"body-3-bold": ["font-size-2", 20,
|
|
373
|
+
"body-1-bold": ["font-size-4", 28, 500, "-0.005rem"];
|
|
374
|
+
"body-2-bold": ["font-size-3", 24, 500, "-0.005rem"];
|
|
375
|
+
"body-3-bold": ["font-size-2", 20, 500, "-0.005rem"];
|
|
376
376
|
"list-item-1": ["font-size-4", 32, 300, "-0.005rem"];
|
|
377
377
|
"list-item-2": ["font-size-3", 24, 300, "-0.005rem"];
|
|
378
378
|
"code-1": ["font-size-6", 32, 300, "0.0115rem"];
|
|
@@ -660,7 +660,7 @@ declare const parseTransitions: (variant?: OakTransitionToken | null) => string
|
|
|
660
660
|
*/
|
|
661
661
|
declare function parseSpacing(value?: OakCombinedSpacingToken | null): string | 0 | undefined;
|
|
662
662
|
|
|
663
|
-
declare const parseFontWeight: (font?: OakFontToken | null) => 300 | 400 | 600 | 700 | undefined;
|
|
663
|
+
declare const parseFontWeight: (font?: OakFontToken | null) => 300 | 400 | 500 | 600 | 700 | undefined;
|
|
664
664
|
declare const parseFontSize: (font?: OakFontToken | null) => string | null | undefined;
|
|
665
665
|
declare const parseLineHeight: (font?: OakFontToken | null) => string | null | undefined;
|
|
666
666
|
declare const parseLetterSpacing: (font?: OakFontToken | null) => "0.0115rem" | "-0.005rem" | undefined;
|
|
@@ -3219,7 +3219,8 @@ type OakTooltipProps = InternalTooltipProps & {
|
|
|
3219
3219
|
*/
|
|
3220
3220
|
declare const OakTooltip: ({ tooltipPosition, children, tooltip, isOpen, domContainer, ...props }: OakTooltipProps) => React$1.JSX.Element;
|
|
3221
3221
|
|
|
3222
|
-
type OakFocusIndicatorProps = {
|
|
3222
|
+
type OakFocusIndicatorProps = OakBoxProps & {
|
|
3223
|
+
as?: "div" | "li";
|
|
3223
3224
|
hoverBackground?: OakUiRoleToken;
|
|
3224
3225
|
dropShadow?: OakDropShadowToken;
|
|
3225
3226
|
hoverDropShadow?: OakDropShadowToken;
|
|
@@ -3405,6 +3406,7 @@ type OakTabsProps<T extends string> = {
|
|
|
3405
3406
|
declare function OakTabs<T extends string>(props: Readonly<OakTabsProps<T>>): React$1.JSX.Element;
|
|
3406
3407
|
|
|
3407
3408
|
type OakCardProps = {
|
|
3409
|
+
as?: "div" | "li";
|
|
3408
3410
|
/**
|
|
3409
3411
|
* The heading text of the card.
|
|
3410
3412
|
*/
|
|
@@ -3478,7 +3480,7 @@ type OakCardProps = {
|
|
|
3478
3480
|
* The card can be oriented in a row or column layout and its width can be adjusted using spacing tokens.
|
|
3479
3481
|
* The image aspect ratio can be set to either 1:1 or 4:3.
|
|
3480
3482
|
*/
|
|
3481
|
-
declare const OakCard: ({ heading, headingLevel, href, cardOrientation, cardWidth, imageSrc, imageAlt, aspectRatio, subCopy, subCopyColor, tagName, tagBackground, linkText, linkIconName, hoverBackground, imageBackgroundColor, }: OakCardProps) => React$1.JSX.Element;
|
|
3483
|
+
declare const OakCard: ({ as, heading, headingLevel, href, cardOrientation, cardWidth, imageSrc, imageAlt, aspectRatio, subCopy, subCopyColor, tagName, tagBackground, linkText, linkIconName, hoverBackground, imageBackgroundColor, }: OakCardProps) => React$1.JSX.Element;
|
|
3482
3484
|
|
|
3483
3485
|
type OakBreadcrumb = {
|
|
3484
3486
|
text: string;
|