@oaknational/oak-components 3.22.0 → 3.22.2
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/bin/migrate/cli.js +1 -1
- package/dist/npm/bin/migrate/index.js +1 -1
- package/dist/npm/cjs/index.js +273 -253
- package/dist/npm/cjs/types.d.ts +1242 -953
- package/dist/npm/es/components/form-elements/OakCheckBox/OakCheckBox.js +2 -2
- package/dist/npm/es/components/form-elements/OakMultilineText/OakMultilineText.js +1 -1
- package/dist/npm/es/components/form-elements/OakSearchFilterCheckBox/OakSearchFilterCheckBox.js +1 -2
- package/dist/npm/es/components/form-elements/OakSelect/NativeSelect.js +1 -1
- package/dist/npm/es/components/images-and-icons/OakImage/OakImage.js +1 -1
- package/dist/npm/es/components/internal-components/InternalCheckBoxLabel/InternalCheckBoxLabel.js +1 -1
- package/dist/npm/es/components/internal-components/InternalChevronAccordion/InternalChevronAccordion.js +3 -3
- package/dist/npm/es/components/internal-components/InternalModalTransition/InternalModalTransition.js +2 -2
- package/dist/npm/es/components/internal-components/InternalShadowIconButton/InternalShadowIconButton.js +1 -1
- package/dist/npm/es/components/internal-components/InternalShadowRoundButton/InternalShadowRoundButton.js +2 -3
- package/dist/npm/es/components/internal-components/InternalSlideInFlex/InternalSlideInFlex.js +8 -8
- package/dist/npm/es/components/internal-components/InternalTextInput/InternalTextInput.js +1 -1
- package/dist/npm/es/components/layout-and-structure/OakBox/OakBox.js +1 -1
- package/dist/npm/es/components/layout-and-structure/OakGrid/OakGrid.js +1 -1
- package/dist/npm/es/components/messaging-and-feedback/OakFocusIndicator/OakFocusIndicator.js +7 -5
- package/dist/npm/es/components/messaging-and-feedback/OakLoadingSpinner/OakLoadingSpinner.js +13 -7
- package/dist/npm/es/components/messaging-and-feedback/OakTagFunctional/OakTagFunctional.js +4 -4
- package/dist/npm/es/components/navigation/OakLink/OakLink.js +7 -3
- package/dist/npm/es/components/navigation/OakPagination/OakPagination.js +9 -9
- package/dist/npm/es/components/owa/OakHomepageTabButton/OakHomepageTabButton.js +1 -1
- package/dist/npm/es/components/owa/OakLinkCard/OakLinkCard.js +3 -3
- package/dist/npm/es/components/owa/OakMediaClip/OakMediaClip.js +1 -1
- package/dist/npm/es/components/owa/OakSaveCount/OakSaveCount.js +1 -1
- package/dist/npm/es/components/owa/OakSideMenuNavLink/OakSideMenuNavLink.js +6 -6
- package/dist/npm/es/components/owa/pupil/OakUnitListItem/OakUnitListItem.js +7 -3
- package/dist/npm/es/components/owa/pupil/OakUnitListOptionalityItem/OakUnitListOptionalityItem.js +1 -1
- package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyLayout/OakPupilJourneyLayout.js +2 -2
- package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyListItem/OakPupilJourneyListItem.js +1 -1
- package/dist/npm/es/components/owa/pupil/lesson/OakLessonLayout/OakLessonLayout.js +2 -2
- package/dist/npm/es/components/owa/pupil/lesson/OakLessonReviewItem/OakPupilLessonReviewItem.js +3 -3
- package/dist/npm/es/components/owa/pupil/lesson/OakLessonReviewQuiz/OakPupilLessonReviewQuiz.js +9 -9
- package/dist/npm/es/components/owa/pupil/quiz/OakQuizCheckBox/OakQuizCheckBox.js +1 -1
- package/dist/npm/es/components/owa/teacher/OakInlineRegistrationBanner/OakInlineRegistrationBanner.js +5 -2
- package/dist/npm/es/styles/utils/borderStyle.js +1 -1
- package/dist/npm/es/styles/utils/colorFilterStyle.js +1 -1
- package/dist/npm/es/styles/utils/responsiveStyle.js +9 -4
- package/dist/npm/es/types.d.ts +1242 -953
- package/package.json +5 -4
package/dist/npm/es/types.d.ts
CHANGED
|
@@ -1,12 +1,238 @@
|
|
|
1
|
-
import React$1
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default, { CSSProperties as CSSProperties$1, MouseEventHandler, ElementType, ComponentPropsWithoutRef, ComponentPropsWithRef, FC, ReactNode, HTMLAttributes, DetailedHTMLProps, TextareaHTMLAttributes, InputHTMLAttributes, FocusEvent, ChangeEventHandler, ComponentProps, ReactElement, Component, MutableRefObject, ButtonHTMLAttributes, PropsWithChildren } from 'react';
|
|
2
3
|
import * as styled_components from 'styled-components';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
4
|
+
import { CSSProperties, DefaultTheme } from 'styled-components';
|
|
5
|
+
import * as next_image from 'next/image';
|
|
6
|
+
import next_image__default, { ImageProps as ImageProps$1 } from 'next/image';
|
|
7
|
+
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
5
8
|
import { UrlObject } from 'url';
|
|
6
9
|
import { Announcements } from '@dnd-kit/core';
|
|
10
|
+
import * as next_dist_shared_lib_get_img_props from 'next/dist/shared/lib/get-img-props';
|
|
7
11
|
import { CldImage } from 'next-cloudinary';
|
|
8
12
|
import { PortableTextBlock } from '@portabletext/react';
|
|
9
13
|
|
|
14
|
+
declare const breakpointsByName: {
|
|
15
|
+
small: number;
|
|
16
|
+
large: number;
|
|
17
|
+
};
|
|
18
|
+
type BreakpointName = keyof typeof breakpointsByName;
|
|
19
|
+
/** Get the pixel width for a breakpoint by its name. */
|
|
20
|
+
declare const getBreakpoint: (breakpointName: keyof typeof breakpointsByName) => number;
|
|
21
|
+
type Device = "mobile" | "tablet" | "desktop";
|
|
22
|
+
/**
|
|
23
|
+
* Get a CSS snippet of a media query condition which matches a specific device.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* `@media ${getMediaQuery("mobile")} { ... }`
|
|
27
|
+
*/
|
|
28
|
+
declare const getMediaQuery: (device: Device) => string;
|
|
29
|
+
type ResponsiveValues<Value> = (Value | null) | (Value | null)[];
|
|
30
|
+
type Generic = string | number | undefined | null;
|
|
31
|
+
/**
|
|
32
|
+
* Helper for a styled component's styles. Generates CSS to apply a value to a
|
|
33
|
+
* specific CSS property, including media queries if the value is a responsive
|
|
34
|
+
* array.
|
|
35
|
+
*/
|
|
36
|
+
declare const responsiveStyle: <Props, T extends Generic>(attr: string, getValues: (props: Props) => ResponsiveValues<T | undefined | null>, parse?: ((unparsed: T | undefined | null) => Generic) | ((unparsed: T | undefined | null) => (props: Props) => Generic)) => (props: Props) => styled_components.RuleSet<object> | undefined;
|
|
37
|
+
|
|
38
|
+
declare const oakAllSpacingTokens: {
|
|
39
|
+
"spacing-0": number;
|
|
40
|
+
"spacing-2": number;
|
|
41
|
+
"spacing-4": number;
|
|
42
|
+
"spacing-8": number;
|
|
43
|
+
"spacing-12": number;
|
|
44
|
+
"spacing-16": number;
|
|
45
|
+
"spacing-20": number;
|
|
46
|
+
"spacing-24": number;
|
|
47
|
+
"spacing-32": number;
|
|
48
|
+
"spacing-40": number;
|
|
49
|
+
"spacing-48": number;
|
|
50
|
+
"spacing-56": number;
|
|
51
|
+
"spacing-64": number;
|
|
52
|
+
"spacing-72": number;
|
|
53
|
+
"spacing-80": number;
|
|
54
|
+
"spacing-92": number;
|
|
55
|
+
"spacing-100": number;
|
|
56
|
+
"spacing-120": number;
|
|
57
|
+
"spacing-160": number;
|
|
58
|
+
"spacing-180": number;
|
|
59
|
+
"spacing-240": number;
|
|
60
|
+
"spacing-360": number;
|
|
61
|
+
"spacing-480": number;
|
|
62
|
+
"spacing-640": number;
|
|
63
|
+
"spacing-800": number;
|
|
64
|
+
"spacing-960": number;
|
|
65
|
+
"spacing-1280": number;
|
|
66
|
+
"spacing-1360": number;
|
|
67
|
+
};
|
|
68
|
+
type OakAllSpacingToken = keyof typeof oakAllSpacingTokens;
|
|
69
|
+
declare const oakSpaceBetweenTokens: {
|
|
70
|
+
"spacing-0": string;
|
|
71
|
+
"spacing-2": string;
|
|
72
|
+
"spacing-4": string;
|
|
73
|
+
"spacing-8": string;
|
|
74
|
+
"spacing-12": string;
|
|
75
|
+
"spacing-16": string;
|
|
76
|
+
"spacing-20": string;
|
|
77
|
+
"spacing-24": string;
|
|
78
|
+
"spacing-32": string;
|
|
79
|
+
"spacing-40": string;
|
|
80
|
+
"spacing-48": string;
|
|
81
|
+
"spacing-56": string;
|
|
82
|
+
"spacing-64": string;
|
|
83
|
+
"spacing-72": string;
|
|
84
|
+
"spacing-80": string;
|
|
85
|
+
};
|
|
86
|
+
type OakSpaceBetweenToken = keyof typeof oakSpaceBetweenTokens;
|
|
87
|
+
declare const additionalSpacingTokens: {
|
|
88
|
+
"100%": string;
|
|
89
|
+
"-50%": string;
|
|
90
|
+
"50%": string;
|
|
91
|
+
0: string;
|
|
92
|
+
"100vh": string;
|
|
93
|
+
"100vw": string;
|
|
94
|
+
auto: string;
|
|
95
|
+
"fit-content": string;
|
|
96
|
+
"max-content": string;
|
|
97
|
+
"min-content": string;
|
|
98
|
+
inherit: string;
|
|
99
|
+
initial: string;
|
|
100
|
+
unset: string;
|
|
101
|
+
};
|
|
102
|
+
type AdditionalSpacingTypes = keyof typeof additionalSpacingTokens;
|
|
103
|
+
type OakCombinedSpacingToken = OakAllSpacingToken | OakSpaceBetweenToken | AdditionalSpacingTypes;
|
|
104
|
+
|
|
105
|
+
type ScrollMarginValue = OakAllSpacingToken | null | undefined;
|
|
106
|
+
type ScrollMarginValues = ResponsiveValues<ScrollMarginValue>;
|
|
107
|
+
type ScrollSnapStyleProps = {
|
|
108
|
+
/**
|
|
109
|
+
* Applies `scroll-margin-top` to the element
|
|
110
|
+
*
|
|
111
|
+
* Accepts any Oak spacing token or a responsive array of spacing tokens. Can be nulled.
|
|
112
|
+
*/
|
|
113
|
+
$scrollMarginTop?: ScrollMarginValues;
|
|
114
|
+
/**
|
|
115
|
+
* Applies `scroll-margin-left` to the element
|
|
116
|
+
*
|
|
117
|
+
* Accepts any Oak spacing token or a responsive array of spacing tokens. Can be nulled.
|
|
118
|
+
*/
|
|
119
|
+
$scrollMarginLeft?: ScrollMarginValues;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
declare const oakZIndexTokens: {
|
|
123
|
+
readonly behind: -1;
|
|
124
|
+
readonly neutral: 0;
|
|
125
|
+
readonly "in-front": 1;
|
|
126
|
+
readonly "mobile-filters": 2;
|
|
127
|
+
readonly "fixed-header": 100;
|
|
128
|
+
readonly "modal-close-button": 150;
|
|
129
|
+
readonly "modal-dialog": 300;
|
|
130
|
+
readonly banner: number;
|
|
131
|
+
};
|
|
132
|
+
type OakZIndexToken = keyof typeof oakZIndexTokens | null;
|
|
133
|
+
|
|
134
|
+
type ZIndexStyleProps = {
|
|
135
|
+
/**
|
|
136
|
+
* Sets the `z-index` CSS property of the element.
|
|
137
|
+
*
|
|
138
|
+
* Accepts a z-index token or a responsive array of z-index tokens.
|
|
139
|
+
*/
|
|
140
|
+
$zIndex?: ResponsiveValues<OakZIndexToken | number>;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
declare const oakTransitionTokens: {
|
|
144
|
+
"standard-ease": string;
|
|
145
|
+
"standard-transform": string;
|
|
146
|
+
};
|
|
147
|
+
type OakTransitionToken = keyof typeof oakTransitionTokens;
|
|
148
|
+
|
|
149
|
+
type Transition = OakTransitionToken;
|
|
150
|
+
type TransitionStyleProps = {
|
|
151
|
+
/**
|
|
152
|
+
* Sets the `transition` CSS property of the element.
|
|
153
|
+
*
|
|
154
|
+
* Accepts a transition token or a responsive array of transition tokens.
|
|
155
|
+
*/
|
|
156
|
+
$transition?: ResponsiveValues<Transition>;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
type TransformStyleProps = {
|
|
160
|
+
/**
|
|
161
|
+
* Sets the `transform` CSS property of the element.
|
|
162
|
+
*
|
|
163
|
+
* Accepts a `transform` value or a responsive array of `transform` values. Can be nulled.
|
|
164
|
+
*/
|
|
165
|
+
$transform?: ResponsiveValues<CSSProperties["transform"] | null>;
|
|
166
|
+
/**
|
|
167
|
+
* Sets the `transform-origin` CSS property of the element.
|
|
168
|
+
*
|
|
169
|
+
* Accepts a `transform-origin` value or a responsive array of `transform-origin` values. Can be nulled.
|
|
170
|
+
*/
|
|
171
|
+
$transformOrigin?: ResponsiveValues<CSSProperties["transformOrigin"] | null>;
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
declare const oakOpacityTokens: {
|
|
175
|
+
transparent: number;
|
|
176
|
+
"semi-transparent": number;
|
|
177
|
+
"semi-opaque": number;
|
|
178
|
+
opaque: number;
|
|
179
|
+
};
|
|
180
|
+
type OakOpacityToken = keyof typeof oakOpacityTokens;
|
|
181
|
+
|
|
182
|
+
type OpacityStyleProps = {
|
|
183
|
+
/**
|
|
184
|
+
* Sets the `opacity` CSS property of the element.
|
|
185
|
+
*
|
|
186
|
+
* Accepts an opacity token or a responsive array of opacity tokens.
|
|
187
|
+
*/
|
|
188
|
+
$opacity?: ResponsiveValues<OakOpacityToken>;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
declare const oakDropShadowTokens: {
|
|
192
|
+
"drop-shadow-standard": string;
|
|
193
|
+
"drop-shadow-lemon": string;
|
|
194
|
+
"drop-shadow-wide-lemon": string;
|
|
195
|
+
"drop-shadow-centered-lemon": string;
|
|
196
|
+
"drop-shadow-grey": string;
|
|
197
|
+
"drop-shadow-centered-grey": string;
|
|
198
|
+
"drop-shadow-black": string;
|
|
199
|
+
"drop-shadow-centred-standard": string;
|
|
200
|
+
"drop-shadow-none": string;
|
|
201
|
+
};
|
|
202
|
+
type OakDropShadowToken = keyof typeof oakDropShadowTokens;
|
|
203
|
+
|
|
204
|
+
type DropShadowStyleProps = {
|
|
205
|
+
/**
|
|
206
|
+
* Applies a drop-shadow to the element.
|
|
207
|
+
*
|
|
208
|
+
* Accepts a drop-shadow token or a responsive array of drop-shadow tokens.
|
|
209
|
+
*/
|
|
210
|
+
$dropShadow?: ResponsiveValues<OakDropShadowToken>;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
declare const oakBorderWidthTokens: {
|
|
214
|
+
"border-solid-none": number;
|
|
215
|
+
"border-solid-s": number;
|
|
216
|
+
"border-solid-m": number;
|
|
217
|
+
"border-solid-l": number;
|
|
218
|
+
"border-solid-xl": number;
|
|
219
|
+
"border-solid-xxl": number;
|
|
220
|
+
"border-solid-xxxl": number;
|
|
221
|
+
"border-solid-xxxxl": number;
|
|
222
|
+
};
|
|
223
|
+
declare const oakBorderRadiusTokens: {
|
|
224
|
+
"border-radius-square": number;
|
|
225
|
+
"border-radius-xs": number;
|
|
226
|
+
"border-radius-s": number;
|
|
227
|
+
"border-radius-m": number;
|
|
228
|
+
"border-radius-m2": number;
|
|
229
|
+
"border-radius-l": number;
|
|
230
|
+
"border-radius-xl": number;
|
|
231
|
+
"border-radius-circle": number;
|
|
232
|
+
};
|
|
233
|
+
type OakBorderRadiusToken = keyof typeof oakBorderRadiusTokens;
|
|
234
|
+
type OakBorderWidthToken = keyof typeof oakBorderWidthTokens;
|
|
235
|
+
|
|
10
236
|
declare const oakColorTokens: {
|
|
11
237
|
white: string;
|
|
12
238
|
grey10: string;
|
|
@@ -122,41 +348,109 @@ type OakUiRoleToken = (typeof oakUiRoleTokensConst)[number];
|
|
|
122
348
|
declare const oakUiRoleTokens: ("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")[];
|
|
123
349
|
type UiRoleMap = Record<OakUiRoleToken, OakColorToken | null | undefined>;
|
|
124
350
|
|
|
125
|
-
type
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
type
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
351
|
+
type BorderWidth = ResponsiveValues<OakBorderWidthToken>;
|
|
352
|
+
type _BorderStyleProps = ResponsiveValues<CSSProperties["borderStyle"]>;
|
|
353
|
+
type BorderColorProps = ResponsiveValues<OakUiRoleToken>;
|
|
354
|
+
type BorderRadiusProps = ResponsiveValues<OakBorderRadiusToken>;
|
|
355
|
+
type BorderStyleProps = {
|
|
356
|
+
/**
|
|
357
|
+
* Apply border on all sides
|
|
358
|
+
*
|
|
359
|
+
* Accepts a border-width token or a responsive array of border-width tokens
|
|
360
|
+
*/
|
|
361
|
+
$ba?: BorderWidth;
|
|
362
|
+
/**
|
|
363
|
+
* Apply border to the top
|
|
364
|
+
*
|
|
365
|
+
* Accepts a border-width token or a responsive array of border-width tokens
|
|
366
|
+
*/
|
|
367
|
+
$bt?: BorderWidth;
|
|
368
|
+
/**
|
|
369
|
+
* Apply border to the right
|
|
370
|
+
*
|
|
371
|
+
* Accepts a border-width token or a responsive array of border-width tokens
|
|
372
|
+
*/
|
|
373
|
+
$br?: BorderWidth;
|
|
374
|
+
/**
|
|
375
|
+
* Apply border to the bottom
|
|
376
|
+
*
|
|
377
|
+
* Accepts a border-width token or a responsive array of border-width tokens
|
|
378
|
+
*/
|
|
379
|
+
$bb?: BorderWidth;
|
|
380
|
+
/**
|
|
381
|
+
* Apply border to the left
|
|
382
|
+
*
|
|
383
|
+
* Accepts a border-width token or a responsive array of border-width tokens
|
|
384
|
+
*/
|
|
385
|
+
$bl?: BorderWidth;
|
|
386
|
+
/**
|
|
387
|
+
* Apply border to the left and right
|
|
388
|
+
*
|
|
389
|
+
* Accepts a border-width token or a responsive array of border-width tokens
|
|
390
|
+
*/
|
|
391
|
+
$bh?: BorderWidth;
|
|
392
|
+
/**
|
|
393
|
+
* Apply border to the top and bottom
|
|
394
|
+
*
|
|
395
|
+
* Accepts a border-width token or a responsive array of border-width tokens
|
|
396
|
+
*/
|
|
397
|
+
$bv?: BorderWidth;
|
|
398
|
+
/**
|
|
399
|
+
* Apply `border-style` to the element
|
|
400
|
+
*
|
|
401
|
+
* Accepts a single value or a responsive array of values.
|
|
402
|
+
*/
|
|
403
|
+
$borderStyle?: _BorderStyleProps;
|
|
404
|
+
/**
|
|
405
|
+
* Apply a border color to all sides of the element
|
|
406
|
+
*
|
|
407
|
+
* Accepts a UI role token or a responsive array of UI role tokens.
|
|
408
|
+
*/
|
|
409
|
+
$borderColor?: BorderColorProps;
|
|
410
|
+
$borderRadius?: BorderRadiusProps;
|
|
411
|
+
/**
|
|
412
|
+
* Apply border radius to the top left
|
|
413
|
+
*
|
|
414
|
+
* Accepts an `OakBorderRadiusToken` or a responsive array of `OakBorderRadiusToken`s.
|
|
415
|
+
*/
|
|
416
|
+
$btlr?: BorderRadiusProps;
|
|
417
|
+
/**
|
|
418
|
+
* Apply border radius to the top right
|
|
419
|
+
*
|
|
420
|
+
* Accepts a border-radius token or a responsive array of border-radius tokens.
|
|
421
|
+
*/
|
|
422
|
+
$btrr?: BorderRadiusProps;
|
|
423
|
+
/**
|
|
424
|
+
* Apply border radius to the bottom left
|
|
425
|
+
*
|
|
426
|
+
* Accepts a border-radius token or a responsive array of border-radius tokens.
|
|
427
|
+
*/
|
|
428
|
+
$bblr?: BorderRadiusProps;
|
|
429
|
+
/**
|
|
430
|
+
* Apply border radius to the bottom right
|
|
431
|
+
*
|
|
432
|
+
* Accepts a border-radius token or a responsive array of border-radius tokens.
|
|
433
|
+
*/
|
|
434
|
+
$bbrr?: BorderRadiusProps;
|
|
435
|
+
/**
|
|
436
|
+
* Apply border radius to the top right and top left
|
|
437
|
+
*
|
|
438
|
+
* Accepts a border-radius token or a responsive array of border-radius tokens.
|
|
439
|
+
*/
|
|
440
|
+
$btr?: BorderRadiusProps;
|
|
441
|
+
/**
|
|
442
|
+
* Apply border radius to the bottom right and bottom left
|
|
443
|
+
*
|
|
444
|
+
* Accepts a border-radius token or a responsive array of border-radius tokens
|
|
445
|
+
*/
|
|
446
|
+
$bbr?: BorderRadiusProps;
|
|
447
|
+
};
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Color token!
|
|
451
|
+
*/
|
|
452
|
+
type ColorToken = ResponsiveValues<OakUiRoleToken | null>;
|
|
453
|
+
type ColorStyleProps = {
|
|
160
454
|
/**
|
|
161
455
|
* Sets the `color` of the element.
|
|
162
456
|
*
|
|
@@ -171,174 +465,256 @@ type ColorStyleProps = {
|
|
|
171
465
|
$background?: ColorToken;
|
|
172
466
|
};
|
|
173
467
|
|
|
174
|
-
type
|
|
468
|
+
type PaddingValues = ResponsiveValues<OakAllSpacingToken | null | undefined>;
|
|
469
|
+
type PaddingStyleProps = {
|
|
175
470
|
/**
|
|
176
|
-
*
|
|
471
|
+
* Applies `padding` to all sides of the element
|
|
177
472
|
*
|
|
178
|
-
* Accepts
|
|
473
|
+
* Accepts an inner padding token or a responsive array of inner padding tokens. Can be nulled.
|
|
179
474
|
*/
|
|
180
|
-
$
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
"spacing-4": string;
|
|
218
|
-
"spacing-8": string;
|
|
219
|
-
"spacing-12": string;
|
|
220
|
-
"spacing-16": string;
|
|
221
|
-
"spacing-20": string;
|
|
222
|
-
"spacing-24": string;
|
|
223
|
-
"spacing-32": string;
|
|
224
|
-
"spacing-40": string;
|
|
225
|
-
"spacing-48": string;
|
|
226
|
-
"spacing-56": string;
|
|
227
|
-
"spacing-64": string;
|
|
228
|
-
"spacing-72": string;
|
|
229
|
-
"spacing-80": string;
|
|
475
|
+
$pa?: PaddingValues;
|
|
476
|
+
/**
|
|
477
|
+
* Applies `padding` to the left and right of the element
|
|
478
|
+
*
|
|
479
|
+
* Accepts an inner padding token or a responsive array of inner padding tokens. Can be nulled.
|
|
480
|
+
*/
|
|
481
|
+
$ph?: PaddingValues;
|
|
482
|
+
/**
|
|
483
|
+
* Applies `padding` to the top and bottom of the element
|
|
484
|
+
*
|
|
485
|
+
* Accepts an inner padding token or a responsive array of inner padding tokens. Can be nulled.
|
|
486
|
+
*/
|
|
487
|
+
$pv?: PaddingValues;
|
|
488
|
+
/**
|
|
489
|
+
* Applies `padding` to the left of the element
|
|
490
|
+
*
|
|
491
|
+
* Accepts an inner padding token or a responsive array of inner padding tokens. Can be nulled.
|
|
492
|
+
*/
|
|
493
|
+
$pl?: PaddingValues;
|
|
494
|
+
/**
|
|
495
|
+
* Applies `padding` to the right of the element
|
|
496
|
+
*
|
|
497
|
+
* Accepts an inner padding token or a responsive array of inner padding tokens. Can be nulled.
|
|
498
|
+
*/
|
|
499
|
+
$pr?: PaddingValues;
|
|
500
|
+
/**
|
|
501
|
+
* Applies `padding` to the top of the element
|
|
502
|
+
*
|
|
503
|
+
* Accepts an inner padding token or a responsive array of inner padding tokens. Can be nulled.
|
|
504
|
+
*/
|
|
505
|
+
$pt?: PaddingValues;
|
|
506
|
+
/**
|
|
507
|
+
* Applies `padding` to the bottom of the element
|
|
508
|
+
*
|
|
509
|
+
* Accepts an inner padding token or a responsive array of inner padding tokens. Can be nulled.
|
|
510
|
+
*/
|
|
511
|
+
$pb?: PaddingValues;
|
|
230
512
|
};
|
|
231
|
-
type
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
513
|
+
type MarginValue = "auto" | OakSpaceBetweenToken | null | undefined;
|
|
514
|
+
type MarginValues = ResponsiveValues<MarginValue>;
|
|
515
|
+
type MarginStyleProps = {
|
|
516
|
+
/**
|
|
517
|
+
* Applies `margin` to all sides of the element
|
|
518
|
+
*
|
|
519
|
+
* Accepts a space between token or a responsive array of space between tokens. Can be nulled.
|
|
520
|
+
*/
|
|
521
|
+
$ma?: MarginValues;
|
|
522
|
+
/**
|
|
523
|
+
* Applies `margin` to the left and right of the element
|
|
524
|
+
*
|
|
525
|
+
* Accepts a space between token or a responsive array of space between tokens. Can be nulled.
|
|
526
|
+
*/
|
|
527
|
+
$mh?: MarginValues;
|
|
528
|
+
/**
|
|
529
|
+
* Applies `margin` to the top and bottom of the element
|
|
530
|
+
*
|
|
531
|
+
* Accepts a space between token or a responsive array of space between tokens. Can be nulled.
|
|
532
|
+
*/
|
|
533
|
+
$mv?: MarginValues;
|
|
534
|
+
/**
|
|
535
|
+
* Applies `margin` to the left of the element
|
|
536
|
+
*
|
|
537
|
+
* Accepts a space between token or a responsive array of space between tokens. Can be nulled.
|
|
538
|
+
*/
|
|
539
|
+
$ml?: MarginValues;
|
|
540
|
+
/**
|
|
541
|
+
* Applies `margin` to the right of the element
|
|
542
|
+
*
|
|
543
|
+
* Accepts a space between token or a responsive array of space between tokens. Can be nulled.
|
|
544
|
+
*/
|
|
545
|
+
$mr?: MarginValues;
|
|
546
|
+
/**
|
|
547
|
+
* Applies `margin` to the top of the element
|
|
548
|
+
*
|
|
549
|
+
* Accepts a space between token or a responsive array of space between tokens. Can be nulled.
|
|
550
|
+
*/
|
|
551
|
+
$mt?: MarginValues;
|
|
552
|
+
/**
|
|
553
|
+
* Applies `margin` to the bottom of the element
|
|
554
|
+
*
|
|
555
|
+
* Accepts a space between token or a responsive array of space between tokens. Can be nulled.
|
|
556
|
+
*/
|
|
557
|
+
$mb?: MarginValues;
|
|
246
558
|
};
|
|
247
|
-
type
|
|
248
|
-
type OakCombinedSpacingToken = OakAllSpacingToken | OakSpaceBetweenToken | AdditionalSpacingTypes;
|
|
559
|
+
type SpacingStyleProps = PaddingStyleProps & MarginStyleProps;
|
|
249
560
|
|
|
250
|
-
type
|
|
251
|
-
type
|
|
561
|
+
type PositionSpacing = OakAllSpacingToken | OakSpaceBetweenToken | "-50%" | "50%" | null | undefined;
|
|
562
|
+
type PositionStyleProps = {
|
|
252
563
|
/**
|
|
253
|
-
*
|
|
564
|
+
* Sets the `position` CSS property of the element.
|
|
565
|
+
*
|
|
566
|
+
* Accepts a `position` value or a responsive array of `position` values. Can be nulled.
|
|
567
|
+
*/
|
|
568
|
+
$position?: ResponsiveValues<CSSProperties$1["position"]>;
|
|
569
|
+
/**
|
|
570
|
+
* Sets the `top` CSS property of the element.
|
|
571
|
+
*
|
|
572
|
+
* - Accepts a spacing token or a responsive array of spacing tokens. E.g. `['spacing-4', 'spacing-8']`
|
|
573
|
+
* - `50%` or `-50%` may be used to center an absolutely positioned element within its parent.
|
|
574
|
+
* - Can be `null` at a breakpoint E.g. `[null, 'spacing-8']`.
|
|
575
|
+
*/
|
|
576
|
+
$top?: ResponsiveValues<PositionSpacing>;
|
|
577
|
+
/**
|
|
578
|
+
* Sets the `right` CSS property of the element.
|
|
579
|
+
*
|
|
580
|
+
* - Accepts a spacing token or a responsive array of spacing tokens. E.g. `['spacing-4', 'spacing-8']`
|
|
581
|
+
* - `50%` or `-50%` may be used to center an absolutely positioned element within its parent.
|
|
582
|
+
* - Can be `null` at a breakpoint E.g. `[null, 'spacing-8']`.
|
|
583
|
+
*/
|
|
584
|
+
$right?: ResponsiveValues<PositionSpacing>;
|
|
585
|
+
/**
|
|
586
|
+
* Sets the `bottom` CSS property of the element.
|
|
587
|
+
*
|
|
588
|
+
* - Accepts a spacing token or a responsive array of spacing tokens. E.g. `['spacing-4', 'spacing-8']`
|
|
589
|
+
* - `50%` or `-50%` may be used to center an absolutely positioned element within its parent.
|
|
590
|
+
* - Can be `null` at a breakpoint E.g. `[null, 'spacing-8']`.
|
|
591
|
+
*/
|
|
592
|
+
$bottom?: ResponsiveValues<PositionSpacing>;
|
|
593
|
+
/**
|
|
594
|
+
* Sets the `left` CSS property of the element.
|
|
595
|
+
*
|
|
596
|
+
* - Accepts a spacing token or a responsive array of spacing tokens. E.g. `['spacing-4', 'spacing-8']`
|
|
597
|
+
* - `50%` or `-50%` may be used to center an absolutely positioned element within its parent.
|
|
598
|
+
* - Can be `null` at a breakpoint E.g. `[null, 'spacing-8']`.
|
|
599
|
+
*/
|
|
600
|
+
$left?: ResponsiveValues<PositionSpacing>;
|
|
601
|
+
/**
|
|
602
|
+
* Sets the `inset` CSS property of the element.
|
|
603
|
+
*
|
|
604
|
+
* - Accepts a spacing token or a responsive array of spacing tokens. E.g. `['spacing-4', 'spacing-8']`
|
|
605
|
+
* - Can be `null` at a breakpoint E.g. `[null, 'spacing-8']`.
|
|
606
|
+
*/
|
|
607
|
+
$inset?: ResponsiveValues<PositionSpacing>;
|
|
608
|
+
/**
|
|
609
|
+
* Sets the `overflow` CSS property of the element.
|
|
610
|
+
*
|
|
611
|
+
* Accepts an `overflow` value or a responsive array of `overflow` values.
|
|
612
|
+
*/
|
|
613
|
+
$overflow?: ResponsiveValues<CSSProperties$1["overflow"]>;
|
|
614
|
+
/**
|
|
615
|
+
* Sets the `overflow-x` CSS property of the element.
|
|
254
616
|
*
|
|
255
|
-
* Accepts an
|
|
617
|
+
* Accepts an `overflow-x` value or a responsive array of `overflow-x` values.
|
|
256
618
|
*/
|
|
257
|
-
$
|
|
619
|
+
$overflowX?: ResponsiveValues<CSSProperties$1["overflowX"]>;
|
|
258
620
|
/**
|
|
259
|
-
*
|
|
621
|
+
* Sets the `overflow-y` CSS property of the element.
|
|
260
622
|
*
|
|
261
|
-
* Accepts an
|
|
623
|
+
* Accepts an `overflow-y` value or a responsive array of `overflow-y` values.
|
|
262
624
|
*/
|
|
263
|
-
$
|
|
625
|
+
$overflowY?: ResponsiveValues<CSSProperties$1["overflowY"]>;
|
|
264
626
|
/**
|
|
265
|
-
*
|
|
627
|
+
* Sets the `object-fit` CSS property of the element.
|
|
266
628
|
*
|
|
267
|
-
* Accepts an
|
|
629
|
+
* Accepts an `object-fit` value or a responsive array of `object-fit` values.
|
|
268
630
|
*/
|
|
269
|
-
$
|
|
631
|
+
$objectFit?: ResponsiveValues<CSSProperties$1["objectFit"]>;
|
|
270
632
|
/**
|
|
271
|
-
*
|
|
633
|
+
* Sets the `object-position` CSS property of the element.
|
|
272
634
|
*
|
|
273
|
-
* Accepts an
|
|
635
|
+
* Accepts an `object-position` value or a responsive array of `object-position` values.
|
|
274
636
|
*/
|
|
275
|
-
$
|
|
637
|
+
$objectPosition?: ResponsiveValues<CSSProperties$1["objectPosition"]>;
|
|
276
638
|
/**
|
|
277
|
-
*
|
|
639
|
+
* Sets the `pointer-events` CSS property of the element.
|
|
278
640
|
*
|
|
279
|
-
* Accepts
|
|
641
|
+
* Accepts a `pointer-events` value or a responsive array of `pointer-events` values.
|
|
280
642
|
*/
|
|
281
|
-
$
|
|
643
|
+
$pointerEvents?: ResponsiveValues<CSSProperties$1["pointerEvents"]>;
|
|
282
644
|
/**
|
|
283
|
-
*
|
|
645
|
+
* Sets the `visibility` CSS property of the element.
|
|
284
646
|
*
|
|
285
|
-
* Accepts
|
|
647
|
+
* Accepts a `visibility` value or a responsive array of `visibility` values.
|
|
286
648
|
*/
|
|
287
|
-
$
|
|
649
|
+
$visibility?: ResponsiveValues<CSSProperties$1["visibility"]>;
|
|
288
650
|
/**
|
|
289
|
-
*
|
|
651
|
+
* Sets the `vertical-align` CSS property of the element.
|
|
290
652
|
*
|
|
291
|
-
* Accepts
|
|
653
|
+
* Accepts a `vertical-align` value or a responsive array of `vertical-align` values.
|
|
292
654
|
*/
|
|
293
|
-
$
|
|
655
|
+
$verticalAlign?: ResponsiveValues<CSSProperties$1["verticalAlign"]>;
|
|
294
656
|
};
|
|
295
|
-
|
|
296
|
-
type
|
|
297
|
-
type
|
|
657
|
+
|
|
658
|
+
type SizeValues = ResponsiveValues<OakCombinedSpacingToken | null | undefined>;
|
|
659
|
+
type SizeStyleProps = {
|
|
298
660
|
/**
|
|
299
|
-
*
|
|
661
|
+
* Sets the `width` CSS property of the element.
|
|
300
662
|
*
|
|
301
|
-
* Accepts a
|
|
663
|
+
* Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.
|
|
302
664
|
*/
|
|
303
|
-
$
|
|
665
|
+
$width?: SizeValues;
|
|
304
666
|
/**
|
|
305
|
-
*
|
|
667
|
+
* Sets the `min-width` CSS property of the element.
|
|
306
668
|
*
|
|
307
|
-
* Accepts a
|
|
669
|
+
* Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.
|
|
308
670
|
*/
|
|
309
|
-
$
|
|
671
|
+
$minWidth?: SizeValues;
|
|
310
672
|
/**
|
|
311
|
-
*
|
|
673
|
+
* Sets the `max-width` CSS property of the element.
|
|
312
674
|
*
|
|
313
|
-
* Accepts a
|
|
675
|
+
* Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.
|
|
314
676
|
*/
|
|
315
|
-
$
|
|
677
|
+
$maxWidth?: SizeValues;
|
|
316
678
|
/**
|
|
317
|
-
*
|
|
679
|
+
* Sets the `height` CSS property of the element.
|
|
318
680
|
*
|
|
319
|
-
* Accepts a
|
|
681
|
+
* Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.
|
|
320
682
|
*/
|
|
321
|
-
$
|
|
683
|
+
$height?: SizeValues;
|
|
322
684
|
/**
|
|
323
|
-
*
|
|
685
|
+
* Sets the `min-height` CSS property of the element.
|
|
324
686
|
*
|
|
325
|
-
* Accepts a
|
|
687
|
+
* Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.
|
|
326
688
|
*/
|
|
327
|
-
$
|
|
689
|
+
$minHeight?: SizeValues;
|
|
328
690
|
/**
|
|
329
|
-
*
|
|
691
|
+
* Sets the `max-height` CSS property of the element.
|
|
330
692
|
*
|
|
331
|
-
* Accepts a
|
|
693
|
+
* Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.
|
|
332
694
|
*/
|
|
333
|
-
$
|
|
695
|
+
$maxHeight?: SizeValues;
|
|
334
696
|
/**
|
|
335
|
-
*
|
|
697
|
+
* Sets the `aspect-ratio` CSS property of the element.
|
|
336
698
|
*
|
|
337
|
-
* Accepts
|
|
699
|
+
* Accepts an `aspect-ratio` value or a responsive array of `aspect-ratio` values.
|
|
338
700
|
*/
|
|
339
|
-
$
|
|
701
|
+
$aspectRatio?: ResponsiveValues<CSSProperties["aspectRatio"]>;
|
|
702
|
+
/**
|
|
703
|
+
* Sets the `box-sizing` CSS property of the element.
|
|
704
|
+
*
|
|
705
|
+
* Accepts a `box-sizing` value or a responsive array of `box-sizing` values.
|
|
706
|
+
*/
|
|
707
|
+
$boxSizing?: ResponsiveValues<CSSProperties["boxSizing"]>;
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
type DisplayStyleProps = {
|
|
711
|
+
/**
|
|
712
|
+
* Sets the `display` CSS property of the element.
|
|
713
|
+
*
|
|
714
|
+
* Accepts a `display` value or a responsive array of `display` values.
|
|
715
|
+
*/
|
|
716
|
+
$display?: ResponsiveValues<CSSProperties$1["display"]>;
|
|
340
717
|
};
|
|
341
|
-
type SpacingStyleProps = PaddingStyleProps & MarginStyleProps;
|
|
342
718
|
|
|
343
719
|
declare const oakFontSizeTokens: {
|
|
344
720
|
"font-size-1": number;
|
|
@@ -412,7 +788,7 @@ type TypographyStyleProps = {
|
|
|
412
788
|
*
|
|
413
789
|
* Accepts a `text-align` value or a responsive array of `text-align` values.
|
|
414
790
|
*/
|
|
415
|
-
$textAlign?: ResponsiveValues<CSSProperties
|
|
791
|
+
$textAlign?: ResponsiveValues<CSSProperties["textAlign"]>;
|
|
416
792
|
/**
|
|
417
793
|
* Sets the `white-space` CSS property of the element.
|
|
418
794
|
*
|
|
@@ -436,7 +812,7 @@ type TypographyStyleProps = {
|
|
|
436
812
|
*
|
|
437
813
|
* Accepts an overflow token or a responsive array of overflow tokens.
|
|
438
814
|
*/
|
|
439
|
-
$overflow?: ResponsiveValues<CSSProperties
|
|
815
|
+
$overflow?: ResponsiveValues<CSSProperties["overflow"]>;
|
|
440
816
|
/**
|
|
441
817
|
* Sets the `text-wrap` CSS property of the element.
|
|
442
818
|
*
|
|
@@ -446,157 +822,51 @@ type TypographyStyleProps = {
|
|
|
446
822
|
* - Typographic improvements, for example more balanced line lengths across broken headings
|
|
447
823
|
* - A way to turn text wrapping off completely
|
|
448
824
|
*/
|
|
449
|
-
$textWrap?: ResponsiveValues<CSSProperties
|
|
825
|
+
$textWrap?: ResponsiveValues<CSSProperties["textWrap"]>;
|
|
450
826
|
};
|
|
451
827
|
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
"drop-shadow-lemon": string;
|
|
455
|
-
"drop-shadow-wide-lemon": string;
|
|
456
|
-
"drop-shadow-centered-lemon": string;
|
|
457
|
-
"drop-shadow-grey": string;
|
|
458
|
-
"drop-shadow-centered-grey": string;
|
|
459
|
-
"drop-shadow-black": string;
|
|
460
|
-
"drop-shadow-centred-standard": string;
|
|
461
|
-
"drop-shadow-none": string;
|
|
462
|
-
};
|
|
463
|
-
type OakDropShadowToken = keyof typeof oakDropShadowTokens;
|
|
464
|
-
|
|
465
|
-
type DropShadowStyleProps = {
|
|
466
|
-
/**
|
|
467
|
-
* Applies a drop-shadow to the element.
|
|
468
|
-
*
|
|
469
|
-
* Accepts a drop-shadow token or a responsive array of drop-shadow tokens.
|
|
470
|
-
*/
|
|
471
|
-
$dropShadow?: ResponsiveValues<OakDropShadowToken>;
|
|
472
|
-
};
|
|
473
|
-
|
|
474
|
-
declare const oakBorderWidthTokens: {
|
|
475
|
-
"border-solid-none": number;
|
|
476
|
-
"border-solid-s": number;
|
|
477
|
-
"border-solid-m": number;
|
|
478
|
-
"border-solid-l": number;
|
|
479
|
-
"border-solid-xl": number;
|
|
480
|
-
"border-solid-xxl": number;
|
|
481
|
-
"border-solid-xxxl": number;
|
|
482
|
-
"border-solid-xxxxl": number;
|
|
483
|
-
};
|
|
484
|
-
declare const oakBorderRadiusTokens: {
|
|
485
|
-
"border-radius-square": number;
|
|
486
|
-
"border-radius-xs": number;
|
|
487
|
-
"border-radius-s": number;
|
|
488
|
-
"border-radius-m": number;
|
|
489
|
-
"border-radius-m2": number;
|
|
490
|
-
"border-radius-l": number;
|
|
491
|
-
"border-radius-xl": number;
|
|
492
|
-
"border-radius-circle": number;
|
|
828
|
+
type HTMLProps$1 = {
|
|
829
|
+
onClick?: MouseEventHandler;
|
|
493
830
|
};
|
|
494
|
-
type
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* Apply border to the left
|
|
528
|
-
*
|
|
529
|
-
* Accepts a border-width token or a responsive array of border-width tokens
|
|
530
|
-
*/
|
|
531
|
-
$bl?: BorderWidth;
|
|
532
|
-
/**
|
|
533
|
-
* Apply border to the left and right
|
|
534
|
-
*
|
|
535
|
-
* Accepts a border-width token or a responsive array of border-width tokens
|
|
536
|
-
*/
|
|
537
|
-
$bh?: BorderWidth;
|
|
538
|
-
/**
|
|
539
|
-
* Apply border to the top and bottom
|
|
540
|
-
*
|
|
541
|
-
* Accepts a border-width token or a responsive array of border-width tokens
|
|
542
|
-
*/
|
|
543
|
-
$bv?: BorderWidth;
|
|
544
|
-
/**
|
|
545
|
-
* Apply `border-style` to the element
|
|
546
|
-
*
|
|
547
|
-
* Accepts a single value or a responsive array of values.
|
|
548
|
-
*/
|
|
549
|
-
$borderStyle?: _BorderStyleProps;
|
|
550
|
-
/**
|
|
551
|
-
* Apply a border color to all sides of the element
|
|
552
|
-
*
|
|
553
|
-
* Accepts a UI role token or a responsive array of UI role tokens.
|
|
554
|
-
*/
|
|
555
|
-
$borderColor?: BorderColorProps;
|
|
556
|
-
$borderRadius?: BorderRadiusProps;
|
|
557
|
-
/**
|
|
558
|
-
* Apply border radius to the top left
|
|
559
|
-
*
|
|
560
|
-
* Accepts an `OakBorderRadiusToken` or a responsive array of `OakBorderRadiusToken`s.
|
|
561
|
-
*/
|
|
562
|
-
$btlr?: BorderRadiusProps;
|
|
563
|
-
/**
|
|
564
|
-
* Apply border radius to the top right
|
|
565
|
-
*
|
|
566
|
-
* Accepts a border-radius token or a responsive array of border-radius tokens.
|
|
567
|
-
*/
|
|
568
|
-
$btrr?: BorderRadiusProps;
|
|
569
|
-
/**
|
|
570
|
-
* Apply border radius to the bottom left
|
|
571
|
-
*
|
|
572
|
-
* Accepts a border-radius token or a responsive array of border-radius tokens.
|
|
573
|
-
*/
|
|
574
|
-
$bblr?: BorderRadiusProps;
|
|
575
|
-
/**
|
|
576
|
-
* Apply border radius to the bottom right
|
|
577
|
-
*
|
|
578
|
-
* Accepts a border-radius token or a responsive array of border-radius tokens.
|
|
579
|
-
*/
|
|
580
|
-
$bbrr?: BorderRadiusProps;
|
|
581
|
-
/**
|
|
582
|
-
* Apply border radius to the top right and top left
|
|
583
|
-
*
|
|
584
|
-
* Accepts a border-radius token or a responsive array of border-radius tokens.
|
|
585
|
-
*/
|
|
586
|
-
$btr?: BorderRadiusProps;
|
|
587
|
-
/**
|
|
588
|
-
* Apply border radius to the bottom right and bottom left
|
|
589
|
-
*
|
|
590
|
-
* Accepts a border-radius token or a responsive array of border-radius tokens
|
|
591
|
-
*/
|
|
592
|
-
$bbr?: BorderRadiusProps;
|
|
831
|
+
type OakBoxProps = {
|
|
832
|
+
children?: React.ReactNode;
|
|
833
|
+
} & PositionStyleProps & SizeStyleProps & SpacingStyleProps & ColorStyleProps & BorderStyleProps & DisplayStyleProps & DropShadowStyleProps & OpacityStyleProps & TransformStyleProps & TransitionStyleProps & TypographyStyleProps & ZIndexStyleProps & HTMLProps$1 & ScrollSnapStyleProps;
|
|
834
|
+
declare const oakBoxCss: styled_components.RuleSet<NoInfer<OakBoxProps>>;
|
|
835
|
+
/**
|
|
836
|
+
* OakBox exposes all the styles that are available styles on a div tag. These include:
|
|
837
|
+
* - color
|
|
838
|
+
* - size
|
|
839
|
+
* - display
|
|
840
|
+
* - spacing
|
|
841
|
+
* - position
|
|
842
|
+
* - border
|
|
843
|
+
* - opacity
|
|
844
|
+
* - z-index
|
|
845
|
+
* - typography
|
|
846
|
+
* - transition
|
|
847
|
+
* - transform
|
|
848
|
+
* - drop-shadow
|
|
849
|
+
* - scroll-margin-top/left
|
|
850
|
+
*
|
|
851
|
+
*/
|
|
852
|
+
declare const OakBox: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Merged<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
853
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
854
|
+
}, OakBoxProps>> & string;
|
|
855
|
+
|
|
856
|
+
type ElementProp<C extends ElementType> = {
|
|
857
|
+
element?: C;
|
|
858
|
+
};
|
|
859
|
+
type PolymorphicPropsWithoutRef<C extends ElementType> = ElementProp<C> & ComponentPropsWithoutRef<C>;
|
|
860
|
+
type PolymorphicRef<C extends React.ElementType> = ComponentPropsWithRef<C>["ref"];
|
|
861
|
+
type PolymorphicPropsWithRef<C extends ElementType> = ElementProp<C> & ComponentPropsWithoutRef<C> & {
|
|
862
|
+
ref?: PolymorphicRef<C>;
|
|
593
863
|
};
|
|
594
864
|
|
|
595
865
|
type StyledButtonProps = TypographyStyleProps & SpacingStyleProps & ColorStyleProps & DisplayStyleProps & BorderStyleProps & DropShadowStyleProps & {
|
|
596
866
|
isLoading?: boolean;
|
|
597
867
|
};
|
|
598
868
|
type InternalButtonProps = StyledButtonProps & {
|
|
599
|
-
onHovered?: (event:
|
|
869
|
+
onHovered?: (event: React__default.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;
|
|
600
870
|
};
|
|
601
871
|
|
|
602
872
|
declare const icons: {
|
|
@@ -779,355 +1049,102 @@ declare const icons: {
|
|
|
779
1049
|
readonly "looping-line-5": "v1740665310/OWA/ui-graphics/looping-line-5_vdknco.svg";
|
|
780
1050
|
readonly "speech-bubble": "v1734537300/OWA/ui-graphics/speech-bubble_magqjf.svg";
|
|
781
1051
|
readonly "tag-promotional": "v1734537244/OWA/ui-graphics/tag-promotional_v4p3oa.svg";
|
|
782
|
-
readonly "tick-mark-happiness": "v1734537080/OWA/ui-graphics/tick-mark-happiness_fyst07.svg";
|
|
783
|
-
readonly "underline-1": "v1734537060/OWA/ui-graphics/underline-1_zaegqi.svg";
|
|
784
|
-
readonly image: "v1763680546/icons/Icon_Image_uatq6d.svg";
|
|
785
|
-
readonly logo: "v1711468346/logo-mark.svg";
|
|
786
|
-
readonly trash: "v1764692488/icons/icon_delete_edzcua.svg";
|
|
787
|
-
readonly list: "v1774882349/icons/List.svg";
|
|
788
|
-
readonly "media-clips": "v1774884267/icons/media-clips_nw3zpt.svg";
|
|
789
|
-
readonly retake: "v1775141914/icons/retake-icon_xgqxzv.svg";
|
|
790
|
-
readonly globe: "v1776851811/icons/globe.svg";
|
|
791
|
-
readonly "video-2": "v1787662089/icons/video-2.svg";
|
|
792
|
-
readonly audio: "v1787662158/icons/audio.svg";
|
|
793
|
-
readonly "video-3": "v1788369484/icons/video-3.svg";
|
|
794
|
-
};
|
|
795
|
-
type IconName = keyof typeof icons;
|
|
796
|
-
|
|
797
|
-
type OakIconName = IconName;
|
|
798
|
-
declare const oakIconNames: IconName[];
|
|
799
|
-
/**
|
|
800
|
-
* returns true if the given string is a valid `OakIconName`
|
|
801
|
-
*/
|
|
802
|
-
declare function isValidIconName(iconName: string): iconName is OakIconName;
|
|
803
|
-
/**
|
|
804
|
-
* returns a Icon URL from Cloudinary if is a valid icon, otherwise returns undefined
|
|
805
|
-
*/
|
|
806
|
-
declare function generateOakIconURL(iconName: string): string;
|
|
807
|
-
|
|
808
|
-
declare const oakOpacityTokens: {
|
|
809
|
-
transparent: number;
|
|
810
|
-
"semi-transparent": number;
|
|
811
|
-
"semi-opaque": number;
|
|
812
|
-
opaque: number;
|
|
813
|
-
};
|
|
814
|
-
type OakOpacityToken = keyof typeof oakOpacityTokens;
|
|
815
|
-
|
|
816
|
-
declare const oakTransitionTokens: {
|
|
817
|
-
"standard-ease": string;
|
|
818
|
-
"standard-transform": string;
|
|
819
|
-
};
|
|
820
|
-
type OakTransitionToken = keyof typeof oakTransitionTokens;
|
|
821
|
-
|
|
822
|
-
declare const oakZIndexTokens: {
|
|
823
|
-
readonly behind: -1;
|
|
824
|
-
readonly neutral: 0;
|
|
825
|
-
readonly "in-front": 1;
|
|
826
|
-
readonly "mobile-filters": 2;
|
|
827
|
-
readonly "fixed-header": 100;
|
|
828
|
-
readonly "modal-close-button": 150;
|
|
829
|
-
readonly "modal-dialog": 300;
|
|
830
|
-
readonly banner: number;
|
|
831
|
-
};
|
|
832
|
-
type OakZIndexToken = keyof typeof oakZIndexTokens | null;
|
|
833
|
-
|
|
834
|
-
declare const oakDefaultTheme: OakTheme;
|
|
835
|
-
|
|
836
|
-
declare const oakDarkTheme: OakTheme;
|
|
837
|
-
|
|
838
|
-
declare const parseBorder: (value?: OakBorderWidthToken | null) => string | undefined;
|
|
839
|
-
|
|
840
|
-
declare const parseBorderRadius: (value?: OakBorderRadiusToken | null) => string | undefined;
|
|
841
|
-
|
|
842
|
-
declare function parseBorderWidth(value: OakBorderWidthToken | null | undefined): string | undefined;
|
|
843
|
-
|
|
844
|
-
/**
|
|
845
|
-
* - takes OakColorToken, OakUiRoleToken, null or undefined
|
|
846
|
-
* - if OakColorToken is passed, returns corresponding css value
|
|
847
|
-
* - if OakUiRoleToken is passed, returns a function that takes the current theme and returns the corresponding css value
|
|
848
|
-
* - if null or undefined is passed, returns undefined
|
|
849
|
-
*/
|
|
850
|
-
declare function parseColor(): undefined;
|
|
851
|
-
declare function parseColor(value?: OakColorToken | OakUiRoleToken | null): (props: PropsWithTheme) => string;
|
|
852
|
-
declare function parseColor(value?: OakUiRoleToken | null): ((props: PropsWithTheme) => string) | undefined;
|
|
853
|
-
|
|
854
|
-
/**
|
|
855
|
-
* - takes any of OakUiRoleToken or null/undefined
|
|
856
|
-
* - returns a function that takes the current theme and returns the corresponding css filter style for that token
|
|
857
|
-
* - returns undefined if no filter is found for the token
|
|
858
|
-
*/
|
|
859
|
-
declare function parseColorFilter(value?: OakUiRoleToken | null): (props: PropsWithTheme) => string;
|
|
860
|
-
declare function parseColorFilter(value?: OakUiRoleToken | null): ((props: PropsWithTheme) => string) | undefined;
|
|
861
|
-
|
|
862
|
-
declare const parseDropShadow: (variant?: OakDropShadowToken | null) => string | undefined;
|
|
863
|
-
|
|
864
|
-
declare const parseOpacity: (variant?: OakOpacityToken | null) => number | undefined;
|
|
865
|
-
|
|
866
|
-
/**
|
|
867
|
-
* - takes any of OakInnerPadding, OakSpaceBetween, OakAllSpacing, and other accepted values,
|
|
868
|
-
* - derives and returns the corresponding css value
|
|
869
|
-
* - converting to rem where necessary
|
|
870
|
-
*/
|
|
871
|
-
declare function parseSpacing(value?: OakCombinedSpacingToken | null): string | 0 | undefined;
|
|
872
|
-
|
|
873
|
-
declare const parseTransitions: (variant?: OakTransitionToken | null) => string | undefined;
|
|
874
|
-
|
|
875
|
-
declare const parseFontWeight: (font?: OakFontToken | null) => 300 | 400 | 500 | 600 | 700 | undefined;
|
|
876
|
-
declare const parseFontSize: (font?: OakFontToken | null) => string | null | undefined;
|
|
877
|
-
declare const parseLineHeight: (font?: OakFontToken | null) => string | null | undefined;
|
|
878
|
-
declare const parseLetterSpacing: (font?: OakFontToken | null) => "0.0115rem" | "-0.005rem" | undefined;
|
|
879
|
-
|
|
880
|
-
declare const parseZIndex: (value?: OakZIndexToken | number) => number | undefined;
|
|
881
|
-
|
|
882
|
-
type ColorFilterToken = ResponsiveValues<OakUiRoleToken | null>;
|
|
883
|
-
type ColorFilterStyleProps = {
|
|
884
|
-
/**
|
|
885
|
-
* Applies a color-filter to the element.
|
|
886
|
-
*
|
|
887
|
-
* Accepts a color filter token or a responsive array of color tokens.
|
|
888
|
-
*/
|
|
889
|
-
$colorFilter?: ColorFilterToken;
|
|
890
|
-
};
|
|
891
|
-
|
|
892
|
-
type PositionSpacing = OakAllSpacingToken | OakSpaceBetweenToken | "-50%" | "50%" | null | undefined;
|
|
893
|
-
type PositionStyleProps = {
|
|
894
|
-
/**
|
|
895
|
-
* Sets the `position` CSS property of the element.
|
|
896
|
-
*
|
|
897
|
-
* Accepts a `position` value or a responsive array of `position` values. Can be nulled.
|
|
898
|
-
*/
|
|
899
|
-
$position?: ResponsiveValues<CSSProperties["position"]>;
|
|
900
|
-
/**
|
|
901
|
-
* Sets the `top` CSS property of the element.
|
|
902
|
-
*
|
|
903
|
-
* - Accepts a spacing token or a responsive array of spacing tokens. E.g. `['spacing-4', 'spacing-8']`
|
|
904
|
-
* - `50%` or `-50%` may be used to center an absolutely positioned element within its parent.
|
|
905
|
-
* - Can be `null` at a breakpoint E.g. `[null, 'spacing-8']`.
|
|
906
|
-
*/
|
|
907
|
-
$top?: ResponsiveValues<PositionSpacing>;
|
|
908
|
-
/**
|
|
909
|
-
* Sets the `right` CSS property of the element.
|
|
910
|
-
*
|
|
911
|
-
* - Accepts a spacing token or a responsive array of spacing tokens. E.g. `['spacing-4', 'spacing-8']`
|
|
912
|
-
* - `50%` or `-50%` may be used to center an absolutely positioned element within its parent.
|
|
913
|
-
* - Can be `null` at a breakpoint E.g. `[null, 'spacing-8']`.
|
|
914
|
-
*/
|
|
915
|
-
$right?: ResponsiveValues<PositionSpacing>;
|
|
916
|
-
/**
|
|
917
|
-
* Sets the `bottom` CSS property of the element.
|
|
918
|
-
*
|
|
919
|
-
* - Accepts a spacing token or a responsive array of spacing tokens. E.g. `['spacing-4', 'spacing-8']`
|
|
920
|
-
* - `50%` or `-50%` may be used to center an absolutely positioned element within its parent.
|
|
921
|
-
* - Can be `null` at a breakpoint E.g. `[null, 'spacing-8']`.
|
|
922
|
-
*/
|
|
923
|
-
$bottom?: ResponsiveValues<PositionSpacing>;
|
|
924
|
-
/**
|
|
925
|
-
* Sets the `left` CSS property of the element.
|
|
926
|
-
*
|
|
927
|
-
* - Accepts a spacing token or a responsive array of spacing tokens. E.g. `['spacing-4', 'spacing-8']`
|
|
928
|
-
* - `50%` or `-50%` may be used to center an absolutely positioned element within its parent.
|
|
929
|
-
* - Can be `null` at a breakpoint E.g. `[null, 'spacing-8']`.
|
|
930
|
-
*/
|
|
931
|
-
$left?: ResponsiveValues<PositionSpacing>;
|
|
932
|
-
/**
|
|
933
|
-
* Sets the `inset` CSS property of the element.
|
|
934
|
-
*
|
|
935
|
-
* - Accepts a spacing token or a responsive array of spacing tokens. E.g. `['spacing-4', 'spacing-8']`
|
|
936
|
-
* - Can be `null` at a breakpoint E.g. `[null, 'spacing-8']`.
|
|
937
|
-
*/
|
|
938
|
-
$inset?: ResponsiveValues<PositionSpacing>;
|
|
939
|
-
/**
|
|
940
|
-
* Sets the `overflow` CSS property of the element.
|
|
941
|
-
*
|
|
942
|
-
* Accepts an `overflow` value or a responsive array of `overflow` values.
|
|
943
|
-
*/
|
|
944
|
-
$overflow?: ResponsiveValues<CSSProperties["overflow"]>;
|
|
945
|
-
/**
|
|
946
|
-
* Sets the `overflow-x` CSS property of the element.
|
|
947
|
-
*
|
|
948
|
-
* Accepts an `overflow-x` value or a responsive array of `overflow-x` values.
|
|
949
|
-
*/
|
|
950
|
-
$overflowX?: ResponsiveValues<CSSProperties["overflowX"]>;
|
|
951
|
-
/**
|
|
952
|
-
* Sets the `overflow-y` CSS property of the element.
|
|
953
|
-
*
|
|
954
|
-
* Accepts an `overflow-y` value or a responsive array of `overflow-y` values.
|
|
955
|
-
*/
|
|
956
|
-
$overflowY?: ResponsiveValues<CSSProperties["overflowY"]>;
|
|
957
|
-
/**
|
|
958
|
-
* Sets the `object-fit` CSS property of the element.
|
|
959
|
-
*
|
|
960
|
-
* Accepts an `object-fit` value or a responsive array of `object-fit` values.
|
|
961
|
-
*/
|
|
962
|
-
$objectFit?: ResponsiveValues<CSSProperties["objectFit"]>;
|
|
963
|
-
/**
|
|
964
|
-
* Sets the `object-position` CSS property of the element.
|
|
965
|
-
*
|
|
966
|
-
* Accepts an `object-position` value or a responsive array of `object-position` values.
|
|
967
|
-
*/
|
|
968
|
-
$objectPosition?: ResponsiveValues<CSSProperties["objectPosition"]>;
|
|
969
|
-
/**
|
|
970
|
-
* Sets the `pointer-events` CSS property of the element.
|
|
971
|
-
*
|
|
972
|
-
* Accepts a `pointer-events` value or a responsive array of `pointer-events` values.
|
|
973
|
-
*/
|
|
974
|
-
$pointerEvents?: ResponsiveValues<CSSProperties["pointerEvents"]>;
|
|
975
|
-
/**
|
|
976
|
-
* Sets the `visibility` CSS property of the element.
|
|
977
|
-
*
|
|
978
|
-
* Accepts a `visibility` value or a responsive array of `visibility` values.
|
|
979
|
-
*/
|
|
980
|
-
$visibility?: ResponsiveValues<CSSProperties["visibility"]>;
|
|
981
|
-
/**
|
|
982
|
-
* Sets the `vertical-align` CSS property of the element.
|
|
983
|
-
*
|
|
984
|
-
* Accepts a `vertical-align` value or a responsive array of `vertical-align` values.
|
|
985
|
-
*/
|
|
986
|
-
$verticalAlign?: ResponsiveValues<CSSProperties["verticalAlign"]>;
|
|
987
|
-
};
|
|
988
|
-
|
|
989
|
-
type SizeValues = ResponsiveValues<OakCombinedSpacingToken | null | undefined>;
|
|
990
|
-
type SizeStyleProps = {
|
|
991
|
-
/**
|
|
992
|
-
* Sets the `width` CSS property of the element.
|
|
993
|
-
*
|
|
994
|
-
* Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.
|
|
995
|
-
*/
|
|
996
|
-
$width?: SizeValues;
|
|
997
|
-
/**
|
|
998
|
-
* Sets the `min-width` CSS property of the element.
|
|
999
|
-
*
|
|
1000
|
-
* Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.
|
|
1001
|
-
*/
|
|
1002
|
-
$minWidth?: SizeValues;
|
|
1003
|
-
/**
|
|
1004
|
-
* Sets the `max-width` CSS property of the element.
|
|
1005
|
-
*
|
|
1006
|
-
* Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.
|
|
1007
|
-
*/
|
|
1008
|
-
$maxWidth?: SizeValues;
|
|
1009
|
-
/**
|
|
1010
|
-
* Sets the `height` CSS property of the element.
|
|
1011
|
-
*
|
|
1012
|
-
* Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.
|
|
1013
|
-
*/
|
|
1014
|
-
$height?: SizeValues;
|
|
1015
|
-
/**
|
|
1016
|
-
* Sets the `min-height` CSS property of the element.
|
|
1017
|
-
*
|
|
1018
|
-
* Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.
|
|
1019
|
-
*/
|
|
1020
|
-
$minHeight?: SizeValues;
|
|
1021
|
-
/**
|
|
1022
|
-
* Sets the `max-height` CSS property of the element.
|
|
1023
|
-
*
|
|
1024
|
-
* Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.
|
|
1025
|
-
*/
|
|
1026
|
-
$maxHeight?: SizeValues;
|
|
1027
|
-
/**
|
|
1028
|
-
* Sets the `aspect-ratio` CSS property of the element.
|
|
1029
|
-
*
|
|
1030
|
-
* Accepts an `aspect-ratio` value or a responsive array of `aspect-ratio` values.
|
|
1031
|
-
*/
|
|
1032
|
-
$aspectRatio?: ResponsiveValues<CSSProperties$1["aspectRatio"]>;
|
|
1033
|
-
/**
|
|
1034
|
-
* Sets the `box-sizing` CSS property of the element.
|
|
1035
|
-
*
|
|
1036
|
-
* Accepts a `box-sizing` value or a responsive array of `box-sizing` values.
|
|
1037
|
-
*/
|
|
1038
|
-
$boxSizing?: ResponsiveValues<CSSProperties$1["boxSizing"]>;
|
|
1052
|
+
readonly "tick-mark-happiness": "v1734537080/OWA/ui-graphics/tick-mark-happiness_fyst07.svg";
|
|
1053
|
+
readonly "underline-1": "v1734537060/OWA/ui-graphics/underline-1_zaegqi.svg";
|
|
1054
|
+
readonly image: "v1763680546/icons/Icon_Image_uatq6d.svg";
|
|
1055
|
+
readonly logo: "v1711468346/logo-mark.svg";
|
|
1056
|
+
readonly trash: "v1764692488/icons/icon_delete_edzcua.svg";
|
|
1057
|
+
readonly list: "v1774882349/icons/List.svg";
|
|
1058
|
+
readonly "media-clips": "v1774884267/icons/media-clips_nw3zpt.svg";
|
|
1059
|
+
readonly retake: "v1775141914/icons/retake-icon_xgqxzv.svg";
|
|
1060
|
+
readonly globe: "v1776851811/icons/globe.svg";
|
|
1061
|
+
readonly "video-2": "v1787662089/icons/video-2.svg";
|
|
1062
|
+
readonly audio: "v1787662158/icons/audio.svg";
|
|
1063
|
+
readonly "video-3": "v1788369484/icons/video-3.svg";
|
|
1039
1064
|
};
|
|
1065
|
+
type IconName = keyof typeof icons;
|
|
1040
1066
|
|
|
1041
|
-
type
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1067
|
+
type OakIconName = IconName;
|
|
1068
|
+
declare const oakIconNames: IconName[];
|
|
1069
|
+
/**
|
|
1070
|
+
* returns true if the given string is a valid `OakIconName`
|
|
1071
|
+
*/
|
|
1072
|
+
declare function isValidIconName(iconName: string): iconName is OakIconName;
|
|
1073
|
+
/**
|
|
1074
|
+
* returns a Icon URL from Cloudinary if is a valid icon, otherwise returns undefined
|
|
1075
|
+
*/
|
|
1076
|
+
declare function generateOakIconURL(iconName: string): string;
|
|
1049
1077
|
|
|
1050
|
-
type
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
*
|
|
1054
|
-
* Accepts a `transform` value or a responsive array of `transform` values. Can be nulled.
|
|
1055
|
-
*/
|
|
1056
|
-
$transform?: ResponsiveValues<CSSProperties$1["transform"] | null>;
|
|
1057
|
-
/**
|
|
1058
|
-
* Sets the `transform-origin` CSS property of the element.
|
|
1059
|
-
*
|
|
1060
|
-
* Accepts a `transform-origin` value or a responsive array of `transform-origin` values. Can be nulled.
|
|
1061
|
-
*/
|
|
1062
|
-
$transformOrigin?: ResponsiveValues<CSSProperties$1["transformOrigin"] | null>;
|
|
1078
|
+
type OakTheme = {
|
|
1079
|
+
name: string;
|
|
1080
|
+
uiColors: UiRoleMap;
|
|
1063
1081
|
};
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
type TransitionStyleProps = {
|
|
1067
|
-
/**
|
|
1068
|
-
* Sets the `transition` CSS property of the element.
|
|
1069
|
-
*
|
|
1070
|
-
* Accepts a transition token or a responsive array of transition tokens.
|
|
1071
|
-
*/
|
|
1072
|
-
$transition?: ResponsiveValues<Transition>;
|
|
1082
|
+
type PropsWithTheme<Props = unknown> = Props & {
|
|
1083
|
+
theme: DefaultTheme;
|
|
1073
1084
|
};
|
|
1074
1085
|
|
|
1075
|
-
|
|
1076
|
-
/**
|
|
1077
|
-
* Sets the `z-index` CSS property of the element.
|
|
1078
|
-
*
|
|
1079
|
-
* Accepts a z-index token or a responsive array of z-index tokens.
|
|
1080
|
-
*/
|
|
1081
|
-
$zIndex?: ResponsiveValues<OakZIndexToken | number>;
|
|
1082
|
-
};
|
|
1086
|
+
declare const oakDefaultTheme: OakTheme;
|
|
1083
1087
|
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1088
|
+
declare const oakDarkTheme: OakTheme;
|
|
1089
|
+
|
|
1090
|
+
declare const parseBorder: (value?: OakBorderWidthToken | null) => string | undefined;
|
|
1091
|
+
|
|
1092
|
+
declare const parseBorderRadius: (value?: OakBorderRadiusToken | null) => string | undefined;
|
|
1093
|
+
|
|
1094
|
+
declare function parseBorderWidth(value: OakBorderWidthToken | null | undefined): string | undefined;
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* - takes OakColorToken, OakUiRoleToken, null or undefined
|
|
1098
|
+
* - if OakColorToken is passed, returns corresponding css value
|
|
1099
|
+
* - if OakUiRoleToken is passed, returns a function that takes the current theme and returns the corresponding css value
|
|
1100
|
+
* - if null or undefined is passed, returns undefined
|
|
1101
|
+
*/
|
|
1102
|
+
declare function parseColor(): undefined;
|
|
1103
|
+
declare function parseColor(value?: OakColorToken | OakUiRoleToken | null): (props: PropsWithTheme) => string;
|
|
1104
|
+
declare function parseColor(value?: OakUiRoleToken | null): ((props: PropsWithTheme) => string) | undefined;
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* - takes any of OakUiRoleToken or null/undefined
|
|
1108
|
+
* - returns a function that takes the current theme and returns the corresponding css filter style for that token
|
|
1109
|
+
* - returns undefined if no filter is found for the token
|
|
1110
|
+
*/
|
|
1111
|
+
declare function parseColorFilter(value?: OakUiRoleToken | null): (props: PropsWithTheme) => string;
|
|
1112
|
+
declare function parseColorFilter(value?: OakUiRoleToken | null): ((props: PropsWithTheme) => string) | undefined;
|
|
1113
|
+
|
|
1114
|
+
declare const parseDropShadow: (variant?: OakDropShadowToken | null) => string | undefined;
|
|
1115
|
+
|
|
1116
|
+
declare const parseOpacity: (variant?: OakOpacityToken | null) => number | undefined;
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* - takes any of OakInnerPadding, OakSpaceBetween, OakAllSpacing, and other accepted values,
|
|
1120
|
+
* - derives and returns the corresponding css value
|
|
1121
|
+
* - converting to rem where necessary
|
|
1122
|
+
*/
|
|
1123
|
+
declare function parseSpacing(value?: OakCombinedSpacingToken | null): string | 0 | undefined;
|
|
1124
|
+
|
|
1125
|
+
declare const parseTransitions: (variant?: OakTransitionToken | null) => string | undefined;
|
|
1126
|
+
|
|
1127
|
+
declare const parseFontWeight: (font?: OakFontToken | null) => 300 | 400 | 500 | 600 | 700 | undefined;
|
|
1128
|
+
declare const parseFontSize: (font?: OakFontToken | null) => string | null | undefined;
|
|
1129
|
+
declare const parseLineHeight: (font?: OakFontToken | null) => string | null | undefined;
|
|
1130
|
+
declare const parseLetterSpacing: (font?: OakFontToken | null) => "0.0115rem" | "-0.005rem" | undefined;
|
|
1131
|
+
|
|
1132
|
+
declare const parseZIndex: (value?: OakZIndexToken | number) => number | undefined;
|
|
1133
|
+
|
|
1134
|
+
type ColorFilterToken = ResponsiveValues<OakUiRoleToken | null>;
|
|
1135
|
+
type ColorFilterStyleProps = {
|
|
1093
1136
|
/**
|
|
1094
|
-
* Applies
|
|
1137
|
+
* Applies a color-filter to the element.
|
|
1095
1138
|
*
|
|
1096
|
-
* Accepts
|
|
1139
|
+
* Accepts a color filter token or a responsive array of color tokens.
|
|
1097
1140
|
*/
|
|
1098
|
-
$
|
|
1099
|
-
};
|
|
1100
|
-
|
|
1101
|
-
type HTMLProps$1 = {
|
|
1102
|
-
onClick?: MouseEventHandler;
|
|
1141
|
+
$colorFilter?: ColorFilterToken;
|
|
1103
1142
|
};
|
|
1104
|
-
type OakBoxProps = {
|
|
1105
|
-
children?: React.ReactNode;
|
|
1106
|
-
} & PositionStyleProps & SizeStyleProps & SpacingStyleProps & ColorStyleProps & BorderStyleProps & DisplayStyleProps & DropShadowStyleProps & OpacityStyleProps & TransformStyleProps & TransitionStyleProps & TypographyStyleProps & ZIndexStyleProps & HTMLProps$1 & ScrollSnapStyleProps;
|
|
1107
|
-
declare const oakBoxCss: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<OakBoxProps, styled_components.DefaultTheme>>;
|
|
1108
|
-
/**
|
|
1109
|
-
* OakBox exposes all the styles that are available styles on a div tag. These include:
|
|
1110
|
-
* - color
|
|
1111
|
-
* - size
|
|
1112
|
-
* - display
|
|
1113
|
-
* - spacing
|
|
1114
|
-
* - position
|
|
1115
|
-
* - border
|
|
1116
|
-
* - opacity
|
|
1117
|
-
* - z-index
|
|
1118
|
-
* - typography
|
|
1119
|
-
* - transition
|
|
1120
|
-
* - transform
|
|
1121
|
-
* - drop-shadow
|
|
1122
|
-
* - scroll-margin-top/left
|
|
1123
|
-
*
|
|
1124
|
-
*/
|
|
1125
|
-
declare const OakBox: any;
|
|
1126
1143
|
|
|
1127
1144
|
type HTMLProps = {
|
|
1128
1145
|
onClick?: MouseEventHandler;
|
|
1129
1146
|
};
|
|
1130
|
-
type OakImageProps<C extends ElementType = typeof
|
|
1147
|
+
type OakImageProps<C extends ElementType = typeof next_image__default> = Omit<ImageProps$1, "placeholder"> & OakBoxProps & ColorFilterStyleProps & HTMLProps & {
|
|
1131
1148
|
as?: C;
|
|
1132
1149
|
/**
|
|
1133
1150
|
* The placeholder to use while the image is loading
|
|
@@ -1144,7 +1161,7 @@ type StyledImageProps = Omit<OakImageProps, "as"> & {
|
|
|
1144
1161
|
$showOakPlaceholder: boolean;
|
|
1145
1162
|
};
|
|
1146
1163
|
declare const oakPlaceholder = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA2NCA2NCI+PHBhdGggZmlsbD0iIzIyMiIgZD0iTTI4Ljc3OSAxOS4xNzZhMjcuMTkxIDI3LjE5MSAwIDAgMC0zLjggMS42IDE2LjcgMTYuNyAwIDAgMC03LjEgOC40YzAgLjEtLjEuMi0uMS4zLS43IDIuNC0uNiAyIDEuMyAyLjMgMS45LjMgMSAuNSAxIDEuMy0uMSA4LjggNC4xIDE1LjEgMTEuNCAxOS42YTEuNSAxLjUgMCAwIDAgMS43LjJjNS43LTIuNiA5LjMtNyAxMC4zLTEzLjJhMSAxIDAgMCAxIDEtMWwzLS4yYy44IDAgMS4zLjIgMS4yIDEuMmExNy45IDE3LjkgMCAwIDEtMy4yIDkuMiAyMy43IDIzLjcgMCAwIDEtMTAuOSA5LjEgNS40MDEgNS40MDEgMCAwIDEtNC41LS4yIDI2LjI5OCAyNi4yOTggMCAwIDEtOC41LTYuNiAyNS45IDI1LjkgMCAwIDEtNi40LTE0LjRjMC0uNi0uMi0uNy0uOC0uOC0yLjUtLjQtMi41LS4xLTIuMy0yLjlhMTkuMyAxOS4zIDAgMCAxIDEwLjgtMTYuNiAzOC45OTkgMzguOTk5IDAgMCAxIDUuNy0yLjEgMi4xIDIuMSAwIDAgMCAuOS0xLjMgMTQuMSAxNC4xIDAgMCAxIDMuNS02LjNsLjMtLjNjMS45LTIgMi42LTIgNC4zLjJsLjQuNWMxLjEgMS4xIDEgMS41LS4xIDIuNmExMS45IDExLjkgMCAwIDAtMy4yIDQuNCAxNi45IDE2LjkgMCAwIDEgNy41IDIuM2M1LjcgMy41IDkuMiA4LjMgOS45IDE1IC4wMTYuOTAxLS4wMTcgMS44MDItLjEgMi43IDAgLjgtLjYgMS0xLjIgMS4yYTE2LjEgMTYuMSAwIDAgMS0xMS0uNyAxNy45MDEgMTcuOTAxIDAgMCAxLTEwLjktMTMuNiA5Ljc5NiA5Ljc5NiAwIDAgMS0uMS0xLjlabTE4LjEgMTIuMmMuNC01LjUtNi45LTEyLjYtMTMtMTIuMS41IDYuNSA3LjYgMTIuOCAxMyAxMi4xWiIgb3BhY2l0eT0iLjEiLz48L3N2Zz4=";
|
|
1147
|
-
declare const placeholderStyles: styled_components.
|
|
1164
|
+
declare const placeholderStyles: styled_components.RuleSet<NoInfer<StyledImageProps>>;
|
|
1148
1165
|
/**
|
|
1149
1166
|
* A wrapper for NextJs's Image component.
|
|
1150
1167
|
*
|
|
@@ -1157,7 +1174,7 @@ declare const placeholderStyles: styled_components.FlattenInterpolation<styled_c
|
|
|
1157
1174
|
* sizes is exposed for further optimisation read Next docs for more info.
|
|
1158
1175
|
*
|
|
1159
1176
|
*/
|
|
1160
|
-
declare const OakImage: <C extends ElementType = typeof
|
|
1177
|
+
declare const OakImage: <C extends ElementType = typeof next_image__default>({ ...props }: OakImageProps<C>) => React__default.JSX.Element;
|
|
1161
1178
|
|
|
1162
1179
|
type OakIconProps = Omit<OakImageProps, "alt" | "src"> & {
|
|
1163
1180
|
/**
|
|
@@ -1173,16 +1190,7 @@ type OakIconProps = Omit<OakImageProps, "alt" | "src"> & {
|
|
|
1173
1190
|
/**
|
|
1174
1191
|
* A wrapper around OakImage which uses the image-map.json file to map icon names to image paths.
|
|
1175
1192
|
*/
|
|
1176
|
-
declare const OakIcon: (props: OakIconProps) =>
|
|
1177
|
-
|
|
1178
|
-
type ElementProp<C extends ElementType> = {
|
|
1179
|
-
element?: C;
|
|
1180
|
-
};
|
|
1181
|
-
type PolymorphicPropsWithoutRef<C extends ElementType> = ElementProp<C> & ComponentPropsWithoutRef<C>;
|
|
1182
|
-
type PolymorphicRef<C extends React.ElementType> = ComponentPropsWithRef<C>["ref"];
|
|
1183
|
-
type PolymorphicPropsWithRef<C extends ElementType> = ElementProp<C> & ComponentPropsWithoutRef<C> & {
|
|
1184
|
-
ref?: PolymorphicRef<C>;
|
|
1185
|
-
};
|
|
1193
|
+
declare const OakIcon: (props: OakIconProps) => React__default.JSX.Element;
|
|
1186
1194
|
|
|
1187
1195
|
type FlexStyleProps = DisplayStyleProps & {
|
|
1188
1196
|
/**
|
|
@@ -1190,55 +1198,55 @@ type FlexStyleProps = DisplayStyleProps & {
|
|
|
1190
1198
|
*
|
|
1191
1199
|
* Accepts a `flex-direction` value or a responsive array of flex-direction values.
|
|
1192
1200
|
*/
|
|
1193
|
-
$flexDirection?: ResponsiveValues<CSSProperties["flexDirection"]>;
|
|
1201
|
+
$flexDirection?: ResponsiveValues<CSSProperties$1["flexDirection"]>;
|
|
1194
1202
|
/**
|
|
1195
1203
|
* Sets the `flex-wrap` CSS property of the element.
|
|
1196
1204
|
*
|
|
1197
1205
|
* Accepts a `flex-wrap` value or a responsive array of flex-wrap values.
|
|
1198
1206
|
*/
|
|
1199
|
-
$flexWrap?: ResponsiveValues<CSSProperties["flexWrap"]>;
|
|
1207
|
+
$flexWrap?: ResponsiveValues<CSSProperties$1["flexWrap"]>;
|
|
1200
1208
|
/**
|
|
1201
1209
|
* Sets the `align-items` CSS property of the element.
|
|
1202
1210
|
*
|
|
1203
1211
|
* Accepts an `align-items` value or a responsive array of `align-items` values.
|
|
1204
1212
|
*/
|
|
1205
|
-
$alignItems?: ResponsiveValues<CSSProperties["alignItems"]>;
|
|
1213
|
+
$alignItems?: ResponsiveValues<CSSProperties$1["alignItems"]>;
|
|
1206
1214
|
/**
|
|
1207
1215
|
* Sets the `align-content` CSS property of the element.
|
|
1208
1216
|
*
|
|
1209
1217
|
* Accepts an `align-content` value or a responsive array of `align-content` values.
|
|
1210
1218
|
*/
|
|
1211
|
-
$alignContent?: ResponsiveValues<CSSProperties["alignContent"]>;
|
|
1219
|
+
$alignContent?: ResponsiveValues<CSSProperties$1["alignContent"]>;
|
|
1212
1220
|
/**
|
|
1213
1221
|
* Sets the `justify-content` CSS property of the element.
|
|
1214
1222
|
*
|
|
1215
1223
|
* Accepts a `justify-content` value or a responsive array of `justify-content` values.
|
|
1216
1224
|
*/
|
|
1217
|
-
$justifyContent?: ResponsiveValues<CSSProperties["justifyContent"]>;
|
|
1225
|
+
$justifyContent?: ResponsiveValues<CSSProperties$1["justifyContent"]>;
|
|
1218
1226
|
/**
|
|
1219
1227
|
* Sets the `align-self` CSS property of the element.
|
|
1220
1228
|
*
|
|
1221
1229
|
* Accepts an `align-self` value or a responsive array of `align-self` values.
|
|
1222
1230
|
*/
|
|
1223
|
-
$alignSelf?: ResponsiveValues<CSSProperties["alignSelf"]>;
|
|
1231
|
+
$alignSelf?: ResponsiveValues<CSSProperties$1["alignSelf"]>;
|
|
1224
1232
|
/**
|
|
1225
1233
|
* Sets the `flex-grow` CSS property of the element.
|
|
1226
1234
|
*
|
|
1227
1235
|
* Accepts a `flex-grow` value or a responsive array of `flex-grow` values.
|
|
1228
1236
|
*/
|
|
1229
|
-
$flexGrow?: ResponsiveValues<CSSProperties["flexGrow"]>;
|
|
1237
|
+
$flexGrow?: ResponsiveValues<CSSProperties$1["flexGrow"]>;
|
|
1230
1238
|
/**
|
|
1231
1239
|
* Sets the `flex-shrink` CSS property of the element.
|
|
1232
1240
|
*
|
|
1233
1241
|
* Accepts a `flex-shrink` value or a responsive array of `flex-shrink` values.
|
|
1234
1242
|
*/
|
|
1235
|
-
$flexShrink?: ResponsiveValues<CSSProperties["flexShrink"]>;
|
|
1243
|
+
$flexShrink?: ResponsiveValues<CSSProperties$1["flexShrink"]>;
|
|
1236
1244
|
/**
|
|
1237
1245
|
* Sets the `order` CSS property of the element.
|
|
1238
1246
|
*
|
|
1239
1247
|
* Accepts an `order` value or a responsive array of `order` values.
|
|
1240
1248
|
*/
|
|
1241
|
-
$order?: ResponsiveValues<CSSProperties["order"]>;
|
|
1249
|
+
$order?: ResponsiveValues<CSSProperties$1["order"]>;
|
|
1242
1250
|
/**
|
|
1243
1251
|
* Sets the `flex-basis` CSS property of the element.
|
|
1244
1252
|
*
|
|
@@ -1273,7 +1281,7 @@ type InternalShadowRectButtonProps = Omit<InternalButtonProps, "$pa" | "$ph" | "
|
|
|
1273
1281
|
/**
|
|
1274
1282
|
* we can set a custom icon if we want different sizes and padding
|
|
1275
1283
|
*/
|
|
1276
|
-
iconOverride?:
|
|
1284
|
+
iconOverride?: React__default.ReactNode;
|
|
1277
1285
|
isTrailingIcon?: boolean;
|
|
1278
1286
|
/**
|
|
1279
1287
|
* we can arrange the icon vertically or horizontally
|
|
@@ -1323,18 +1331,18 @@ type OakSecondaryButtonProps = Omit<InternalShadowRectButtonProps, "defaultBorde
|
|
|
1323
1331
|
* `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>
|
|
1324
1332
|
* called after a mouseEnter and mouseLeave event has happened
|
|
1325
1333
|
*/
|
|
1326
|
-
declare const OakSecondaryButton: <C extends ElementType = "button">({ element, ...rest }: OakSecondaryButtonProps & PolymorphicPropsWithoutRef<C>) =>
|
|
1334
|
+
declare const OakSecondaryButton: <C extends ElementType = "button">({ element, ...rest }: OakSecondaryButtonProps & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
|
|
1327
1335
|
|
|
1328
|
-
type ButtonComponent = <C extends
|
|
1336
|
+
type ButtonComponent = <C extends React__default.ElementType = "button">({ element, ...rest }: OakSecondaryButtonProps & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
|
|
1329
1337
|
type OakButtonWithDropdownProps = {
|
|
1330
1338
|
primaryActionText: string;
|
|
1331
1339
|
primaryActionIcon?: OakIconName;
|
|
1332
1340
|
onPrimaryAction?: () => void;
|
|
1333
|
-
children?:
|
|
1341
|
+
children?: React__default.ReactNode;
|
|
1334
1342
|
isLoading?: boolean;
|
|
1335
1343
|
disabled?: boolean;
|
|
1336
1344
|
ariaLabel?: string;
|
|
1337
|
-
leadingButtonIcon?:
|
|
1345
|
+
leadingButtonIcon?: React__default.ReactNode;
|
|
1338
1346
|
ariaDescription?: string;
|
|
1339
1347
|
"data-testid"?: string;
|
|
1340
1348
|
buttonComponent: ButtonComponent;
|
|
@@ -1343,7 +1351,7 @@ type OakButtonWithDropdownProps = {
|
|
|
1343
1351
|
closeOnChange?: boolean;
|
|
1344
1352
|
dropdownProps?: {
|
|
1345
1353
|
/** The ARIA role for the dropdown panel. Defaults to "menu". */
|
|
1346
|
-
role?:
|
|
1354
|
+
role?: React__default.AriaRole;
|
|
1347
1355
|
/** The ARIA label for the dropdown panel. Defaults to undefined (no label). */
|
|
1348
1356
|
"aria-label"?: string;
|
|
1349
1357
|
};
|
|
@@ -1353,21 +1361,21 @@ type OakButtonWithDropdownProps = {
|
|
|
1353
1361
|
* Accepts the button component as a prop to eliminate code duplication.
|
|
1354
1362
|
*/
|
|
1355
1363
|
declare const OakButtonWithDropdown: {
|
|
1356
|
-
({ primaryActionText, primaryActionIcon, onPrimaryAction, children, isLoading, disabled, ariaLabel, ariaDescription, leadingButtonIcon, "data-testid": dataTestId, buttonComponent: ButtonComponent, dropdownTopSpacing, flexWidth, closeOnChange, dropdownProps, }: OakButtonWithDropdownProps):
|
|
1357
|
-
Divider():
|
|
1364
|
+
({ primaryActionText, primaryActionIcon, onPrimaryAction, children, isLoading, disabled, ariaLabel, ariaDescription, leadingButtonIcon, "data-testid": dataTestId, buttonComponent: ButtonComponent, dropdownTopSpacing, flexWidth, closeOnChange, dropdownProps, }: OakButtonWithDropdownProps): React__default.JSX.Element;
|
|
1365
|
+
Divider(): React__default.ReactElement;
|
|
1358
1366
|
Item<C extends ElementType = "button">({ children, element, ...rest }: {
|
|
1359
|
-
children:
|
|
1360
|
-
} & OakSecondaryButtonProps & PolymorphicPropsWithoutRef<C>):
|
|
1367
|
+
children: React__default.ReactNode;
|
|
1368
|
+
} & OakSecondaryButtonProps & PolymorphicPropsWithoutRef<C>): React__default.ReactElement;
|
|
1361
1369
|
};
|
|
1362
1370
|
|
|
1363
1371
|
type DropdownContextType = {
|
|
1364
1372
|
onClose: () => void;
|
|
1365
1373
|
};
|
|
1366
|
-
declare const DropdownContext:
|
|
1374
|
+
declare const DropdownContext: React__default.Context<DropdownContextType | null>;
|
|
1367
1375
|
declare const OakButtonWithDropdownProvider: ({ onClose, children, }: {
|
|
1368
1376
|
onClose: () => void;
|
|
1369
|
-
children:
|
|
1370
|
-
}) =>
|
|
1377
|
+
children: React__default.ReactNode;
|
|
1378
|
+
}) => React__default.JSX.Element;
|
|
1371
1379
|
|
|
1372
1380
|
declare const useDropdownContext: () => {
|
|
1373
1381
|
onClose: () => void;
|
|
@@ -1384,7 +1392,7 @@ type OakCloseButtonProps = {
|
|
|
1384
1392
|
*
|
|
1385
1393
|
*
|
|
1386
1394
|
*/
|
|
1387
|
-
declare function OakCloseButton({ onClose, ...rest }: Readonly<OakCloseButtonProps>):
|
|
1395
|
+
declare function OakCloseButton({ onClose, ...rest }: Readonly<OakCloseButtonProps>): React__default.JSX.Element;
|
|
1388
1396
|
|
|
1389
1397
|
type OakPrimaryButtonProps = Omit<InternalShadowRectButtonProps, "defaultBorderColor" | "defaultBackground" | "defaultTextColor" | "hoverBackground" | "hoverBorderColor" | "hoverTextColor" | "disabledBackground" | "disabledBorderColor" | "disabledTextColor">;
|
|
1390
1398
|
/**
|
|
@@ -1400,7 +1408,7 @@ type OakPrimaryButtonProps = Omit<InternalShadowRectButtonProps, "defaultBorderC
|
|
|
1400
1408
|
* `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>
|
|
1401
1409
|
* called after a mouseEnter and mouseLeave event has happened
|
|
1402
1410
|
*/
|
|
1403
|
-
declare const OakPrimaryButton: <C extends ElementType = "button">({ element, ...rest }: OakPrimaryButtonProps & PolymorphicPropsWithoutRef<C>) =>
|
|
1411
|
+
declare const OakPrimaryButton: <C extends ElementType = "button">({ element, ...rest }: OakPrimaryButtonProps & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
|
|
1404
1412
|
|
|
1405
1413
|
type OakPrimaryInvertedButtonProps = Omit<InternalShadowRectButtonProps, "defaultBorderColor" | "defaultBackground" | "defaultTextColor" | "hoverBackground" | "hoverBorderColor" | "hoverTextColor" | "disabledBackground" | "disabledBorderColor" | "disabledTextColor">;
|
|
1406
1414
|
/**
|
|
@@ -1416,17 +1424,17 @@ type OakPrimaryInvertedButtonProps = Omit<InternalShadowRectButtonProps, "defaul
|
|
|
1416
1424
|
* `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>
|
|
1417
1425
|
* called after a mouseEnter and mouseLeave event has happened
|
|
1418
1426
|
*/
|
|
1419
|
-
declare const OakPrimaryInvertedButton: <C extends ElementType = "button">({ element, ...rest }: OakPrimaryInvertedButtonProps & PolymorphicPropsWithoutRef<C>) =>
|
|
1427
|
+
declare const OakPrimaryInvertedButton: <C extends ElementType = "button">({ element, ...rest }: OakPrimaryInvertedButtonProps & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
|
|
1420
1428
|
|
|
1421
1429
|
type OakSecondaryButtonWithDropdownProps = {
|
|
1422
1430
|
primaryActionText: string;
|
|
1423
1431
|
primaryActionIcon?: OakIconName;
|
|
1424
1432
|
onPrimaryAction?: () => void;
|
|
1425
|
-
children?:
|
|
1433
|
+
children?: React__default.ReactNode;
|
|
1426
1434
|
isLoading?: boolean;
|
|
1427
1435
|
disabled?: boolean;
|
|
1428
1436
|
ariaLabel?: string;
|
|
1429
|
-
leadingButtonIcon?:
|
|
1437
|
+
leadingButtonIcon?: React__default.ReactNode;
|
|
1430
1438
|
ariaDescription?: string;
|
|
1431
1439
|
"data-testid"?: string;
|
|
1432
1440
|
};
|
|
@@ -1435,11 +1443,11 @@ type OakSecondaryButtonWithDropdownProps = {
|
|
|
1435
1443
|
*
|
|
1436
1444
|
*/
|
|
1437
1445
|
declare const OakSecondaryButtonWithDropdown: {
|
|
1438
|
-
(props: OakSecondaryButtonWithDropdownProps):
|
|
1439
|
-
Divider():
|
|
1446
|
+
(props: OakSecondaryButtonWithDropdownProps): React__default.JSX.Element;
|
|
1447
|
+
Divider(): React__default.ReactElement;
|
|
1440
1448
|
Item<C extends ElementType = "button">({ children, element, ...rest }: {
|
|
1441
|
-
children:
|
|
1442
|
-
} & OakPrimaryInvertedButtonProps & PolymorphicPropsWithoutRef<C>):
|
|
1449
|
+
children: React__default.ReactNode;
|
|
1450
|
+
} & OakPrimaryInvertedButtonProps & PolymorphicPropsWithoutRef<C>): React__default.ReactElement;
|
|
1443
1451
|
};
|
|
1444
1452
|
|
|
1445
1453
|
type OakSmallPrimaryButtonProps = Omit<InternalShadowRectButtonProps, "defaultBorderColor" | "defaultBackground" | "defaultTextColor" | "hoverBackground" | "hoverBorderColor" | "hoverTextColor" | "disabledBackground" | "disabledBorderColor" | "disabledTextColor" | "pv" | "ph" | "font">;
|
|
@@ -1456,7 +1464,7 @@ type OakSmallPrimaryButtonProps = Omit<InternalShadowRectButtonProps, "defaultBo
|
|
|
1456
1464
|
* `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>
|
|
1457
1465
|
* called after a mouseEnter and mouseLeave event has happened
|
|
1458
1466
|
*/
|
|
1459
|
-
declare const OakSmallPrimaryButton: <C extends ElementType = "button">({ element, ...rest }: OakSmallPrimaryButtonProps & PolymorphicPropsWithoutRef<C>) =>
|
|
1467
|
+
declare const OakSmallPrimaryButton: <C extends ElementType = "button">({ element, ...rest }: OakSmallPrimaryButtonProps & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
|
|
1460
1468
|
|
|
1461
1469
|
type OakSmallPrimaryInvertedButtonProps = Omit<InternalShadowRectButtonProps, "defaultBorderColor" | "defaultBackground" | "defaultTextColor" | "hoverBackground" | "hoverBorderColor" | "hoverTextColor" | "disabledBackground" | "disabledBorderColor" | "disabledTextColor">;
|
|
1462
1470
|
/**
|
|
@@ -1472,7 +1480,7 @@ type OakSmallPrimaryInvertedButtonProps = Omit<InternalShadowRectButtonProps, "d
|
|
|
1472
1480
|
* `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>
|
|
1473
1481
|
* called after a mouseEnter and mouseLeave event has happened
|
|
1474
1482
|
*/
|
|
1475
|
-
declare const OakSmallPrimaryInvertedButton: <C extends ElementType = "button">({ element, ...rest }: OakSmallPrimaryInvertedButtonProps & PolymorphicPropsWithoutRef<C>) =>
|
|
1483
|
+
declare const OakSmallPrimaryInvertedButton: <C extends ElementType = "button">({ element, ...rest }: OakSmallPrimaryInvertedButtonProps & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
|
|
1476
1484
|
|
|
1477
1485
|
type OakSmallSecondaryButtonProps = Omit<InternalShadowRectButtonProps, "defaultBorderColor" | "defaultBackground" | "defaultTextColor" | "hoverBackground" | "hoverBorderColor" | "hoverTextColor" | "disabledBackground" | "disabledBorderColor" | "disabledTextColor" | "pv" | "ph" | "font">;
|
|
1478
1486
|
/**
|
|
@@ -1488,7 +1496,7 @@ type OakSmallSecondaryButtonProps = Omit<InternalShadowRectButtonProps, "default
|
|
|
1488
1496
|
* `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>
|
|
1489
1497
|
* called after a mouseEnter and mouseLeave event has happened
|
|
1490
1498
|
*/
|
|
1491
|
-
declare const OakSmallSecondaryButton: <C extends ElementType = "button">({ element, ...rest }: OakSmallSecondaryButtonProps & PolymorphicPropsWithoutRef<C>) =>
|
|
1499
|
+
declare const OakSmallSecondaryButton: <C extends ElementType = "button">({ element, ...rest }: OakSmallSecondaryButtonProps & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
|
|
1492
1500
|
|
|
1493
1501
|
/**
|
|
1494
1502
|
* Map of the svg names to the actual svg components
|
|
@@ -1496,16 +1504,16 @@ declare const OakSmallSecondaryButton: <C extends ElementType = "button">({ elem
|
|
|
1496
1504
|
* Should be used only in cases where OakIcon can't be used and if this list grows much bigger in the future we should consider refactoring
|
|
1497
1505
|
*/
|
|
1498
1506
|
declare const svgMap: {
|
|
1499
|
-
"header-underline": () =>
|
|
1500
|
-
underline: () =>
|
|
1501
|
-
"horizontal-rule": () =>
|
|
1502
|
-
"underline-3": () =>
|
|
1503
|
-
"button-border-top": () =>
|
|
1504
|
-
"button-border-bottom": () =>
|
|
1505
|
-
"button-border-left": () =>
|
|
1506
|
-
"button-border-right": () =>
|
|
1507
|
-
"icon-background": () =>
|
|
1508
|
-
scribble: () =>
|
|
1507
|
+
"header-underline": () => React__default.JSX.Element;
|
|
1508
|
+
underline: () => React__default.JSX.Element;
|
|
1509
|
+
"horizontal-rule": () => React__default.JSX.Element;
|
|
1510
|
+
"underline-3": () => React__default.JSX.Element;
|
|
1511
|
+
"button-border-top": () => React__default.JSX.Element;
|
|
1512
|
+
"button-border-bottom": () => React__default.JSX.Element;
|
|
1513
|
+
"button-border-left": () => React__default.JSX.Element;
|
|
1514
|
+
"button-border-right": () => React__default.JSX.Element;
|
|
1515
|
+
"icon-background": () => React__default.JSX.Element;
|
|
1516
|
+
scribble: () => React__default.JSX.Element;
|
|
1509
1517
|
};
|
|
1510
1518
|
type OakSvgNames = keyof typeof svgMap;
|
|
1511
1519
|
type OakSvgProps = OakBoxProps & {
|
|
@@ -1533,7 +1541,7 @@ type OakRoundIconProps = IconProps | ImageProps;
|
|
|
1533
1541
|
* A wrapper around `OakIcon` which applies a rounded background.
|
|
1534
1542
|
* Supports either an icon name or an image src
|
|
1535
1543
|
*/
|
|
1536
|
-
declare const OakRoundIcon: ({ $background, $borderRadius, $width, $height, $pa, className, ...rest }: OakRoundIconProps) =>
|
|
1544
|
+
declare const OakRoundIcon: ({ $background, $borderRadius, $width, $height, $pa, className, ...rest }: OakRoundIconProps) => React__default.JSX.Element;
|
|
1537
1545
|
|
|
1538
1546
|
type InternalStyledSvgProps = {
|
|
1539
1547
|
$fill?: ResponsiveValues<OakUiRoleToken>;
|
|
@@ -1551,17 +1559,17 @@ type OakHandDrawnHRProps = {
|
|
|
1551
1559
|
*
|
|
1552
1560
|
* change the sizeProps of the flex container to change the size and dimentions of the HR
|
|
1553
1561
|
*/
|
|
1554
|
-
declare const OakHandDrawnHR: (props: OakHandDrawnHRProps) =>
|
|
1562
|
+
declare const OakHandDrawnHR: (props: OakHandDrawnHRProps) => React__default.JSX.Element;
|
|
1555
1563
|
|
|
1556
1564
|
type OakSmallSecondaryButtonWithDropdownProps = {
|
|
1557
1565
|
primaryActionText: string;
|
|
1558
1566
|
primaryActionIcon?: OakIconName;
|
|
1559
1567
|
onPrimaryAction?: () => void;
|
|
1560
|
-
children?:
|
|
1568
|
+
children?: React__default.ReactNode;
|
|
1561
1569
|
isLoading?: boolean;
|
|
1562
1570
|
disabled?: boolean;
|
|
1563
1571
|
ariaLabel?: string;
|
|
1564
|
-
leadingButtonIcon?:
|
|
1572
|
+
leadingButtonIcon?: React__default.ReactNode;
|
|
1565
1573
|
ariaDescription?: string;
|
|
1566
1574
|
"data-testid"?: string;
|
|
1567
1575
|
};
|
|
@@ -1570,11 +1578,11 @@ type OakSmallSecondaryButtonWithDropdownProps = {
|
|
|
1570
1578
|
*
|
|
1571
1579
|
*/
|
|
1572
1580
|
declare const OakSmallSecondaryButtonWithDropdown: {
|
|
1573
|
-
(props: OakSmallSecondaryButtonWithDropdownProps):
|
|
1574
|
-
Divider():
|
|
1581
|
+
(props: OakSmallSecondaryButtonWithDropdownProps): React__default.JSX.Element;
|
|
1582
|
+
Divider(): React__default.ReactElement;
|
|
1575
1583
|
Item<C extends ElementType = "button">({ children, element, ...rest }: {
|
|
1576
|
-
children:
|
|
1577
|
-
} & OakSmallPrimaryInvertedButtonProps & PolymorphicPropsWithoutRef<C>):
|
|
1584
|
+
children: React__default.ReactNode;
|
|
1585
|
+
} & OakSmallPrimaryInvertedButtonProps & PolymorphicPropsWithoutRef<C>): React__default.ReactElement;
|
|
1578
1586
|
};
|
|
1579
1587
|
|
|
1580
1588
|
type OakSmallSecondaryToggleButtonProps = Omit<InternalShadowRectButtonProps, "defaultBorderColor" | "defaultBackground" | "defaultTextColor" | "hoverBackground" | "hoverBorderColor" | "hoverTextColor" | "disabledBackground" | "disabledBorderColor" | "disabledTextColor" | "pv" | "ph" | "font"> & {
|
|
@@ -1595,14 +1603,14 @@ type OakSmallSecondaryToggleButtonProps = Omit<InternalShadowRectButtonProps, "d
|
|
|
1595
1603
|
* `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>
|
|
1596
1604
|
* called after a mouseEnter and mouseLeave event has happened
|
|
1597
1605
|
*/
|
|
1598
|
-
declare const OakSmallSecondaryToggleButton: <C extends ElementType = "button">({ element, toggleOn, ...rest }: OakSmallSecondaryToggleButtonProps & PolymorphicPropsWithoutRef<C>) =>
|
|
1606
|
+
declare const OakSmallSecondaryToggleButton: <C extends ElementType = "button">({ element, toggleOn, ...rest }: OakSmallSecondaryToggleButtonProps & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
|
|
1599
1607
|
|
|
1600
1608
|
type InternalShadowIconButtonProps = Omit<InternalButtonProps, "$pa" | "$ph" | "$pv" | "$ba" | "$borderRadius" | "$borderColor" | "$background" | "$color"> & {
|
|
1601
1609
|
iconName?: OakIconName;
|
|
1602
1610
|
isTrailingIcon?: boolean;
|
|
1603
|
-
defaultTextColor
|
|
1604
|
-
hoverTextColor
|
|
1605
|
-
disabledTextColor
|
|
1611
|
+
defaultTextColor?: OakUiRoleToken;
|
|
1612
|
+
hoverTextColor?: OakUiRoleToken;
|
|
1613
|
+
disabledTextColor?: OakUiRoleToken;
|
|
1606
1614
|
hoverIconColor?: OakUiRoleToken;
|
|
1607
1615
|
defaultIconColor?: OakRoundIconProps["$colorFilter"];
|
|
1608
1616
|
disabledIconColor?: OakRoundIconProps["$colorFilter"];
|
|
@@ -1624,7 +1632,7 @@ type OakSmallTertiaryInvertedButtonProps = Omit<InternalShadowIconButtonProps, "
|
|
|
1624
1632
|
* `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>
|
|
1625
1633
|
* called after a mouseEnter and mouseLeave event has happened
|
|
1626
1634
|
*/
|
|
1627
|
-
declare const OakSmallTertiaryInvertedButton: <C extends ElementType = "button">({ element, ...rest }: OakSmallTertiaryInvertedButtonProps & PolymorphicPropsWithoutRef<C>) =>
|
|
1635
|
+
declare const OakSmallTertiaryInvertedButton: <C extends ElementType = "button">({ element, ...rest }: OakSmallTertiaryInvertedButtonProps & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
|
|
1628
1636
|
|
|
1629
1637
|
type InternalShadowRoundButtonProps = Omit<InternalButtonProps, "$pa" | "$ph" | "$pv" | "$ba" | "$borderRadius" | "$borderColor" | "$background" | "$color"> & {
|
|
1630
1638
|
iconName?: OakIconName;
|
|
@@ -1640,8 +1648,6 @@ type InternalShadowRoundButtonProps = Omit<InternalButtonProps, "$pa" | "$ph" |
|
|
|
1640
1648
|
disabledIconColor?: OakRoundIconProps["$colorFilter"];
|
|
1641
1649
|
defaultIconBorderColor?: OakUiRoleToken;
|
|
1642
1650
|
disabledIconBorderColor?: OakUiRoleToken;
|
|
1643
|
-
width?: SizeStyleProps["$width"];
|
|
1644
|
-
maxWidth?: SizeStyleProps["$maxWidth"];
|
|
1645
1651
|
iconBackgroundSize: SizeStyleProps["$width"];
|
|
1646
1652
|
iconSize: SizeStyleProps["$width"];
|
|
1647
1653
|
hoverDropShadow?: OakDropShadowToken | null;
|
|
@@ -1660,7 +1666,7 @@ type InternalShadowRoundButtonProps = Omit<InternalButtonProps, "$pa" | "$ph" |
|
|
|
1660
1666
|
* `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>
|
|
1661
1667
|
* called after a mouseEnter and mouseLeave event has happened
|
|
1662
1668
|
*/
|
|
1663
|
-
declare const InternalShadowRoundButton: <C extends ElementType = "button">(props: InternalShadowRoundButtonProps & PolymorphicPropsWithoutRef<C>) =>
|
|
1669
|
+
declare const InternalShadowRoundButton: <C extends ElementType = "button">(props: InternalShadowRoundButtonProps & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
|
|
1664
1670
|
|
|
1665
1671
|
type OakTertiaryButtonProps = InternalButtonProps & {
|
|
1666
1672
|
iconBackground?: OakRoundIconProps["$background"];
|
|
@@ -1672,7 +1678,7 @@ type OakTertiaryButtonProps = InternalButtonProps & {
|
|
|
1672
1678
|
* An implementation of InternalShadowRoundButton, its a subtle button with no border and a round icon.
|
|
1673
1679
|
*
|
|
1674
1680
|
*/
|
|
1675
|
-
declare const OakTertiaryButton: <C extends ElementType = "button">({ element, isTrailingIcon, iconName, children, ...props }: OakTertiaryButtonProps & Partial<InternalShadowRoundButtonProps> & PolymorphicPropsWithoutRef<C>) =>
|
|
1681
|
+
declare const OakTertiaryButton: <C extends ElementType = "button">({ element, isTrailingIcon, iconName, children, ...props }: OakTertiaryButtonProps & Partial<InternalShadowRoundButtonProps> & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
|
|
1676
1682
|
|
|
1677
1683
|
type OakTertiaryInvertedButtonProps = InternalButtonProps & {
|
|
1678
1684
|
iconBackground?: OakRoundIconProps["$background"];
|
|
@@ -1684,7 +1690,7 @@ type OakTertiaryInvertedButtonProps = InternalButtonProps & {
|
|
|
1684
1690
|
* An implementation of InternalShadowRoundButton, its a subtle button with no border and a round icon.
|
|
1685
1691
|
*
|
|
1686
1692
|
*/
|
|
1687
|
-
declare const OakTertiaryInvertedButton: <C extends ElementType = "button">({ element, isTrailingIcon, iconName, children, ...props }: OakTertiaryInvertedButtonProps & PolymorphicPropsWithoutRef<C>) =>
|
|
1693
|
+
declare const OakTertiaryInvertedButton: <C extends ElementType = "button">({ element, isTrailingIcon, iconName, children, ...props }: OakTertiaryInvertedButtonProps & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
|
|
1688
1694
|
|
|
1689
1695
|
type OakLeftAlignedButtonProps = Omit<InternalShadowRectButtonProps, "defaultBorderColor" | "defaultBackground" | "defaultTextColor" | "hoverBackground" | "hoverBorderColor" | "hoverTextColor" | "disabledBackground" | "disabledBorderColor" | "disabledTextColor"> & {
|
|
1690
1696
|
/**
|
|
@@ -1705,7 +1711,7 @@ type OakLeftAlignedButtonProps = Omit<InternalShadowRectButtonProps, "defaultBor
|
|
|
1705
1711
|
* `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`
|
|
1706
1712
|
* called after a mouseEnter and mouseLeave event has happened
|
|
1707
1713
|
*/
|
|
1708
|
-
declare const OakLeftAlignedButton: <C extends ElementType = "button">(props: OakLeftAlignedButtonProps & PolymorphicPropsWithoutRef<C>) =>
|
|
1714
|
+
declare const OakLeftAlignedButton: <C extends ElementType = "button">(props: OakLeftAlignedButtonProps & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
|
|
1709
1715
|
|
|
1710
1716
|
type OakCookieBannerProps = {
|
|
1711
1717
|
/**
|
|
@@ -1757,7 +1763,7 @@ type OakCookieBannerProps = {
|
|
|
1757
1763
|
/**
|
|
1758
1764
|
* A banner presenting the user with options to accept or reject cookies.
|
|
1759
1765
|
*/
|
|
1760
|
-
declare const OakCookieBanner: ({ state, innerMaxWidth, onOpenSettings, onHide, onAccept, onReject, isFixed, zIndex, }: OakCookieBannerProps) =>
|
|
1766
|
+
declare const OakCookieBanner: ({ state, innerMaxWidth, onOpenSettings, onHide, onAccept, onReject, isFixed, zIndex, }: OakCookieBannerProps) => React__default.JSX.Element;
|
|
1761
1767
|
|
|
1762
1768
|
type CookieConsentReducerState = {
|
|
1763
1769
|
isSettingsModalOpen: boolean;
|
|
@@ -1859,7 +1865,7 @@ type OakCookieConsentContextType = {
|
|
|
1859
1865
|
bannerState: CookieConsentReducerState["bannerState"];
|
|
1860
1866
|
};
|
|
1861
1867
|
declare function getDefaultContextState(): OakCookieConsentContextType;
|
|
1862
|
-
declare const OakCookieConsentContext:
|
|
1868
|
+
declare const OakCookieConsentContext: React__default.Context<OakCookieConsentContextType>;
|
|
1863
1869
|
type OakCookieConsentProviderProps = Pick<OakCookieConsentContextType, "policyConsents"> & {
|
|
1864
1870
|
children: ReactNode;
|
|
1865
1871
|
/**
|
|
@@ -1880,9 +1886,9 @@ declare function useCookieConsent(): {
|
|
|
1880
1886
|
*
|
|
1881
1887
|
* Intended to be used with `OakCookieConsent`
|
|
1882
1888
|
*/
|
|
1883
|
-
declare const OakCookieConsentProvider: ({ children, policyConsents, onConsentChange, }: OakCookieConsentProviderProps) =>
|
|
1889
|
+
declare const OakCookieConsentProvider: ({ children, policyConsents, onConsentChange, }: OakCookieConsentProviderProps) => React__default.JSX.Element;
|
|
1884
1890
|
|
|
1885
|
-
declare const OakInformativeModalBorderColor:
|
|
1891
|
+
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>;
|
|
1886
1892
|
type OakInformativeModalCloseAction = "close_button" | undefined;
|
|
1887
1893
|
type OakInformativeModalProps = {
|
|
1888
1894
|
/**
|
|
@@ -1936,7 +1942,7 @@ type OakInformativeModalProps = {
|
|
|
1936
1942
|
/**
|
|
1937
1943
|
* 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)
|
|
1938
1944
|
*/
|
|
1939
|
-
declare const OakInformativeModal: ({ children, footerSlot, domContainer, isOpen, onClose, zIndex, isLeftHandSide, closeOnBackgroundClick, largeScreenMaxWidth, ...rest }: OakInformativeModalProps) =>
|
|
1945
|
+
declare const OakInformativeModal: ({ children, footerSlot, domContainer, isOpen, onClose, zIndex, isLeftHandSide, closeOnBackgroundClick, largeScreenMaxWidth, ...rest }: OakInformativeModalProps) => React__default.ReactPortal | null;
|
|
1940
1946
|
|
|
1941
1947
|
type OakInformativeModalBodyProps = {
|
|
1942
1948
|
children: ReactNode;
|
|
@@ -1946,7 +1952,7 @@ type OakInformativeModalBodyProps = {
|
|
|
1946
1952
|
* it applies some padding and margin to ensure that the contents
|
|
1947
1953
|
* line up with the modal's header and footer
|
|
1948
1954
|
*/
|
|
1949
|
-
declare const OakInformativeModalBody: (props: OakInformativeModalBodyProps) =>
|
|
1955
|
+
declare const OakInformativeModalBody: (props: OakInformativeModalBodyProps) => React__default.JSX.Element;
|
|
1950
1956
|
|
|
1951
1957
|
type OakInformativeModalFooterProps = {
|
|
1952
1958
|
children: ReactNode;
|
|
@@ -1956,7 +1962,7 @@ type OakInformativeModalFooterProps = {
|
|
|
1956
1962
|
* it is ideal as a container for one or more buttons.
|
|
1957
1963
|
* It switches from a horizontal to vertical layout on smaller screens
|
|
1958
1964
|
*/
|
|
1959
|
-
declare const OakInformativeModalFooter: (props: OakInformativeModalFooterProps) =>
|
|
1965
|
+
declare const OakInformativeModalFooter: (props: OakInformativeModalFooterProps) => React__default.JSX.Element;
|
|
1960
1966
|
|
|
1961
1967
|
type OakCookieSettingsModalProps = Pick<OakInformativeModalProps, "isOpen" | "onClose" | "zIndex"> & {
|
|
1962
1968
|
/**
|
|
@@ -1984,7 +1990,7 @@ type OakCookieSettingsModalProps = Pick<OakInformativeModalProps, "isOpen" | "on
|
|
|
1984
1990
|
/**
|
|
1985
1991
|
* Modal for managing cookie consent settings.
|
|
1986
1992
|
*/
|
|
1987
|
-
declare const OakCookieSettingsModal: ({ isOpen, onClose, onReject, onConfirm, onAccept, policyURL, policyConsents, zIndex, }: OakCookieSettingsModalProps) =>
|
|
1993
|
+
declare const OakCookieSettingsModal: ({ isOpen, onClose, onReject, onConfirm, onAccept, policyURL, policyConsents, zIndex, }: OakCookieSettingsModalProps) => React__default.JSX.Element;
|
|
1988
1994
|
|
|
1989
1995
|
type OakCookieConsentProps = Pick<OakCookieSettingsModalProps, "policyURL"> & Pick<OakCookieBannerProps, "isFixed" | "innerMaxWidth"> & {
|
|
1990
1996
|
/**
|
|
@@ -1998,14 +2004,16 @@ type OakCookieConsentProps = Pick<OakCookieSettingsModalProps, "policyURL"> & Pi
|
|
|
1998
2004
|
/**
|
|
1999
2005
|
* Connects `OakCookieBanner` and `OakCookieSettingsModal` to `OakCookieConsentProvider`.
|
|
2000
2006
|
*/
|
|
2001
|
-
declare const OakCookieConsent: ({ policyURL, isFixed, innerMaxWidth, zIndex, }: OakCookieConsentProps) =>
|
|
2007
|
+
declare const OakCookieConsent: ({ policyURL, isFixed, innerMaxWidth, zIndex, }: OakCookieConsentProps) => React__default.JSX.Element;
|
|
2002
2008
|
|
|
2003
2009
|
type OakFieldsetProps = OakBoxProps;
|
|
2004
2010
|
/**
|
|
2005
2011
|
* OakFieldset renders a custom `fieldset` component, removes default styling of fieldset.
|
|
2006
2012
|
color, opacity, margin, padding, border and typography styles can be passed in also.
|
|
2007
2013
|
*/
|
|
2008
|
-
declare const OakFieldset:
|
|
2014
|
+
declare const OakFieldset: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Merged<Omit<React$1.DetailedHTMLProps<React$1.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "style"> & {
|
|
2015
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
2016
|
+
}, OakBoxProps>> & string;
|
|
2009
2017
|
|
|
2010
2018
|
/**
|
|
2011
2019
|
*
|
|
@@ -2015,7 +2023,9 @@ declare const OakFieldset: any;
|
|
|
2015
2023
|
* Use `<OakBox as="form">` instead
|
|
2016
2024
|
* @deprecated Use `<OakBox as="form">` instead
|
|
2017
2025
|
*/
|
|
2018
|
-
declare const OakForm:
|
|
2026
|
+
declare const OakForm: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Merged<Omit<React$1.DetailedHTMLProps<React$1.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "style"> & {
|
|
2027
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
2028
|
+
}, OakBoxProps>> & string;
|
|
2019
2029
|
type OakFormProps = OakBoxProps;
|
|
2020
2030
|
|
|
2021
2031
|
type OakLabelProps = TypographyStyleProps & ColorStyleProps;
|
|
@@ -2025,7 +2035,9 @@ type OakLabelProps = TypographyStyleProps & ColorStyleProps;
|
|
|
2025
2035
|
* Use this component when you want to apply styles to a label, likely within
|
|
2026
2036
|
* a form.
|
|
2027
2037
|
*/
|
|
2028
|
-
declare const OakLabel:
|
|
2038
|
+
declare const OakLabel: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Merged<Omit<React$1.DetailedHTMLProps<React$1.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "style"> & {
|
|
2039
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
2040
|
+
}, OakLabelProps>> & string;
|
|
2029
2041
|
|
|
2030
2042
|
type OakTextAreaProps = Omit<DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & StyledTextAreaProps;
|
|
2031
2043
|
type StyledTextAreaProps = SizeStyleProps & BorderStyleProps & SpacingStyleProps & TypographyStyleProps & PositionStyleProps & ColorStyleProps;
|
|
@@ -2034,7 +2046,9 @@ type StyledTextAreaProps = SizeStyleProps & BorderStyleProps & SpacingStyleProps
|
|
|
2034
2046
|
* A textarea that can be used for longer text inputs where text should wrap.
|
|
2035
2047
|
*
|
|
2036
2048
|
*/
|
|
2037
|
-
declare const OakTextArea:
|
|
2049
|
+
declare const OakTextArea: styled_components_dist_types.IStyledComponentBase<"web", Omit<Omit<React__default.DetailedHTMLProps<React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & SizeStyleProps & BorderStyleProps & PaddingStyleProps & MarginStyleProps & TypographyStyleProps & PositionStyleProps & ColorStyleProps & React__default.RefAttributes<HTMLTextAreaElement>, "style"> & {
|
|
2050
|
+
style?: React__default.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
2051
|
+
}> & string & Omit<React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & SizeStyleProps & BorderStyleProps & PaddingStyleProps & MarginStyleProps & TypographyStyleProps & PositionStyleProps & ColorStyleProps & React__default.RefAttributes<HTMLTextAreaElement>>, keyof React__default.Component<any, {}, any>>;
|
|
2038
2052
|
|
|
2039
2053
|
type OakButtonAsRadioGroupProps = {
|
|
2040
2054
|
label?: string;
|
|
@@ -2042,7 +2056,7 @@ type OakButtonAsRadioGroupProps = {
|
|
|
2042
2056
|
ariaLabelledby?: string;
|
|
2043
2057
|
name: string;
|
|
2044
2058
|
disabled?: boolean;
|
|
2045
|
-
children:
|
|
2059
|
+
children: React__default.ReactNode;
|
|
2046
2060
|
onChange?: (value: string) => void;
|
|
2047
2061
|
/**
|
|
2048
2062
|
* Sets the value of the radio group
|
|
@@ -2065,7 +2079,7 @@ type OakButtonAsRadioGroupProps = {
|
|
|
2065
2079
|
* use the callback onChange to get the value of the clicked button.
|
|
2066
2080
|
*
|
|
2067
2081
|
*/
|
|
2068
|
-
declare const OakButtonAsRadioGroup: (props: OakButtonAsRadioGroupProps) =>
|
|
2082
|
+
declare const OakButtonAsRadioGroup: (props: OakButtonAsRadioGroupProps) => React__default.JSX.Element;
|
|
2069
2083
|
|
|
2070
2084
|
/**
|
|
2071
2085
|
*
|
|
@@ -2095,19 +2109,19 @@ type BaseCheckBoxProps = {
|
|
|
2095
2109
|
*/
|
|
2096
2110
|
checked?: boolean;
|
|
2097
2111
|
onHovered?: (value: string, id: string, duration: number) => void;
|
|
2098
|
-
onChange?: (event:
|
|
2099
|
-
onFocus?: (event:
|
|
2100
|
-
onBlur?: (event:
|
|
2112
|
+
onChange?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
2113
|
+
onFocus?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
|
|
2114
|
+
onBlur?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
|
|
2101
2115
|
"aria-label"?: string;
|
|
2102
2116
|
"aria-labelledby"?: string;
|
|
2103
2117
|
"data-testid"?: string;
|
|
2104
2118
|
};
|
|
2105
2119
|
|
|
2106
2120
|
type InternalCheckBoxLabelProps = {
|
|
2107
|
-
labelAlignItems?: FlexStyleProps["$alignItems"];
|
|
2108
|
-
labelGap?: FlexStyleProps["$gap"];
|
|
2121
|
+
$labelAlignItems?: FlexStyleProps["$alignItems"];
|
|
2122
|
+
$labelGap?: FlexStyleProps["$gap"];
|
|
2109
2123
|
disabled?: boolean;
|
|
2110
|
-
pointerEvents?: CSSProperties
|
|
2124
|
+
pointerEvents?: CSSProperties["pointerEvents"];
|
|
2111
2125
|
"data-testid"?: string;
|
|
2112
2126
|
} & OakLabelProps;
|
|
2113
2127
|
|
|
@@ -2117,7 +2131,7 @@ type OakCheckBoxProps = BaseCheckBoxProps & {
|
|
|
2117
2131
|
checkboxBorderRadius?: OakBorderRadiusToken;
|
|
2118
2132
|
checkedBorderColor?: OakUiRoleToken;
|
|
2119
2133
|
uncheckedBorderColor?: OakUiRoleToken;
|
|
2120
|
-
checkedIcon?:
|
|
2134
|
+
checkedIcon?: React__default.JSX.Element;
|
|
2121
2135
|
checkedBackgroundFill?: boolean;
|
|
2122
2136
|
hoverBorderRadius?: OakBorderRadiusToken;
|
|
2123
2137
|
iconPadding?: OakAllSpacingToken;
|
|
@@ -2149,17 +2163,17 @@ type OakCheckBoxProps = BaseCheckBoxProps & {
|
|
|
2149
2163
|
*
|
|
2150
2164
|
*
|
|
2151
2165
|
*/
|
|
2152
|
-
declare const OakCheckBox: (props: OakCheckBoxProps) =>
|
|
2166
|
+
declare const OakCheckBox: (props: OakCheckBoxProps) => React__default.JSX.Element;
|
|
2153
2167
|
|
|
2154
2168
|
type OakFieldErrorProps = {
|
|
2155
|
-
children?:
|
|
2169
|
+
children?: React__default.ReactNode;
|
|
2156
2170
|
};
|
|
2157
2171
|
/**
|
|
2158
2172
|
*
|
|
2159
2173
|
* OakFieldError renders a error message when passed children.
|
|
2160
2174
|
*
|
|
2161
2175
|
*/
|
|
2162
|
-
declare const OakFieldError: (props: OakFieldErrorProps) =>
|
|
2176
|
+
declare const OakFieldError: (props: OakFieldErrorProps) => React__default.JSX.Element | null;
|
|
2163
2177
|
|
|
2164
2178
|
type StyledInputProps = Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & SpacingStyleProps & SizeStyleProps;
|
|
2165
2179
|
type InternalTextInputProps = Omit<StyledInputProps, "placeholder"> & {
|
|
@@ -2221,12 +2235,13 @@ type OakFormInputProps = {
|
|
|
2221
2235
|
/**
|
|
2222
2236
|
* Default input which can be extended to create specialised inputs.
|
|
2223
2237
|
*/
|
|
2224
|
-
declare const OakFormInput: ({ type, borderColor, focusBorderColor, focusBackgroundColor, background, hoverBackground, hoverBorderColor, disabledBackgroundColor, color, disabledBorderColor, disabledColor, invalid, invalidBorderColor, wrapperWidth, wrapperMaxWidth, ...props }: OakFormInputProps) =>
|
|
2238
|
+
declare const OakFormInput: ({ type, borderColor, focusBorderColor, focusBackgroundColor, background, hoverBackground, hoverBorderColor, disabledBackgroundColor, color, disabledBorderColor, disabledColor, invalid, invalidBorderColor, wrapperWidth, wrapperMaxWidth, ...props }: OakFormInputProps) => React__default.JSX.Element;
|
|
2225
2239
|
|
|
2226
2240
|
type OakJauntyAngleLabelProps = {
|
|
2227
2241
|
label: string;
|
|
2242
|
+
htmlFor?: string;
|
|
2228
2243
|
} & ComponentProps<typeof OakBox>;
|
|
2229
|
-
declare const OakJauntyAngleLabel: (props: OakJauntyAngleLabelProps) =>
|
|
2244
|
+
declare const OakJauntyAngleLabel: (props: OakJauntyAngleLabelProps) => React__default.JSX.Element;
|
|
2230
2245
|
|
|
2231
2246
|
type OakMultilineTextProps = {
|
|
2232
2247
|
/**
|
|
@@ -2262,7 +2277,7 @@ type OakMultilineTextProps = {
|
|
|
2262
2277
|
* - Current method of clearing the component is to reset its key in the parent component
|
|
2263
2278
|
* - useImperativeHandle could be used to expose a clear method
|
|
2264
2279
|
*/
|
|
2265
|
-
declare const OakMultilineText:
|
|
2280
|
+
declare const OakMultilineText: React__default.ForwardRefExoticComponent<{
|
|
2266
2281
|
/**
|
|
2267
2282
|
* Set the textarea text on first render when state is controlled internally (i.e. if `value` has not been provided)
|
|
2268
2283
|
*/
|
|
@@ -2277,7 +2292,7 @@ declare const OakMultilineText: React$1.ForwardRefExoticComponent<{
|
|
|
2277
2292
|
*/
|
|
2278
2293
|
errors?: Array<string>;
|
|
2279
2294
|
label?: string;
|
|
2280
|
-
} & Omit<OakTextAreaProps, "$width"> &
|
|
2295
|
+
} & Omit<OakTextAreaProps, "$width"> & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
2281
2296
|
declare function useDevice<T>(values: T | Array<T>): T;
|
|
2282
2297
|
|
|
2283
2298
|
type RadioButtonLabelProps = {
|
|
@@ -2324,7 +2339,7 @@ type OakRadioButtonProps = {
|
|
|
2324
2339
|
*
|
|
2325
2340
|
* Use within `OakRadioGroup` component.
|
|
2326
2341
|
*/
|
|
2327
|
-
declare const OakRadioButton:
|
|
2342
|
+
declare const OakRadioButton: React__default.ForwardRefExoticComponent<{
|
|
2328
2343
|
id: string;
|
|
2329
2344
|
label: ReactNode;
|
|
2330
2345
|
value: string;
|
|
@@ -2358,28 +2373,28 @@ declare const OakRadioButton: React$1.ForwardRefExoticComponent<{
|
|
|
2358
2373
|
*/
|
|
2359
2374
|
checkedRadioBorderWidth?: OakBorderWidthToken;
|
|
2360
2375
|
} & {
|
|
2361
|
-
children?:
|
|
2376
|
+
children?: React__default.ReactNode;
|
|
2362
2377
|
} & PositionStyleProps & SizeStyleProps & PaddingStyleProps & MarginStyleProps & ColorStyleProps & BorderStyleProps & DisplayStyleProps & DropShadowStyleProps & OpacityStyleProps & TransformStyleProps & TransitionStyleProps & TypographyStyleProps & ZIndexStyleProps & {
|
|
2363
|
-
onClick?:
|
|
2378
|
+
onClick?: React__default.MouseEventHandler;
|
|
2364
2379
|
} & ScrollSnapStyleProps & {
|
|
2365
2380
|
$labelAlignItems?: FlexStyleProps["$alignItems"];
|
|
2366
2381
|
$labelGap?: FlexStyleProps["$gap"];
|
|
2367
2382
|
disabled?: boolean;
|
|
2368
|
-
} &
|
|
2383
|
+
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
2369
2384
|
|
|
2370
2385
|
type RadioContextType = {
|
|
2371
2386
|
currentValue: string;
|
|
2372
2387
|
name: string;
|
|
2373
2388
|
disabled?: boolean;
|
|
2374
|
-
onValueUpdated?: (event:
|
|
2389
|
+
onValueUpdated?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
2375
2390
|
};
|
|
2376
|
-
declare const RadioContext:
|
|
2391
|
+
declare const RadioContext: React__default.Context<RadioContextType>;
|
|
2377
2392
|
type OakRadioGroupProps = {
|
|
2378
2393
|
label?: string;
|
|
2379
2394
|
name: string;
|
|
2380
2395
|
disabled?: boolean;
|
|
2381
|
-
children:
|
|
2382
|
-
onChange?: (event:
|
|
2396
|
+
children: React__default.ReactNode;
|
|
2397
|
+
onChange?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
2383
2398
|
/**
|
|
2384
2399
|
* Sets the value of the radio group
|
|
2385
2400
|
* for use as a controlled component
|
|
@@ -2400,10 +2415,10 @@ type OakRadioGroupProps = {
|
|
|
2400
2415
|
* use the callback onChange to get the value of the selected radio button.
|
|
2401
2416
|
*
|
|
2402
2417
|
*/
|
|
2403
|
-
declare const OakRadioGroup: (props: OakRadioGroupProps) =>
|
|
2418
|
+
declare const OakRadioGroup: (props: OakRadioGroupProps) => React__default.JSX.Element;
|
|
2404
2419
|
|
|
2405
2420
|
type OakSecondaryButtonAsRadioProps = {
|
|
2406
|
-
children?:
|
|
2421
|
+
children?: React__default.ReactNode;
|
|
2407
2422
|
value: string;
|
|
2408
2423
|
};
|
|
2409
2424
|
/**
|
|
@@ -2417,10 +2432,69 @@ type OakSecondaryButtonAsRadioProps = {
|
|
|
2417
2432
|
* See OakButtonAsRadioGroup.
|
|
2418
2433
|
*
|
|
2419
2434
|
*/
|
|
2420
|
-
declare const OakSecondaryButtonAsRadio: ({ children, value, }: OakSecondaryButtonAsRadioProps) =>
|
|
2435
|
+
declare const OakSecondaryButtonAsRadio: ({ children, value, }: OakSecondaryButtonAsRadioProps) => React__default.JSX.Element;
|
|
2421
2436
|
|
|
2422
|
-
|
|
2423
|
-
declare const
|
|
2437
|
+
type OakFlexProps = FlexStyleProps & OakBoxProps;
|
|
2438
|
+
declare const oakFlexCss: styled_components.RuleSet<NoInfer<FlexStyleProps>>;
|
|
2439
|
+
/**
|
|
2440
|
+
* Flex sets `display: flex;` and exposes various flex props, along with Box
|
|
2441
|
+
* props.
|
|
2442
|
+
*
|
|
2443
|
+
* ## Usage
|
|
2444
|
+
* Before adding props to this component, think about whether it makes sense
|
|
2445
|
+
* to add it to Box instead, as this component extends that.
|
|
2446
|
+
*/
|
|
2447
|
+
declare const OakFlex: styled_components_dist_types.IStyledComponentBase<"web", 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"> & {
|
|
2448
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
2449
|
+
}, OakBoxProps>, "as" | "forwardedAs"> & {
|
|
2450
|
+
as?: styled_components.WebTarget | undefined;
|
|
2451
|
+
forwardedAs?: styled_components.WebTarget | undefined;
|
|
2452
|
+
}, "ref"> & {
|
|
2453
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React$1.RefObject<HTMLDivElement> | null | undefined;
|
|
2454
|
+
}, "style"> & {
|
|
2455
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | (React$1.CSSProperties & {
|
|
2456
|
+
[key: `--${string}`]: string | number | undefined;
|
|
2457
|
+
}) | undefined;
|
|
2458
|
+
}, OakFlexProps>> & string;
|
|
2459
|
+
|
|
2460
|
+
declare const IconUp: styled_components_dist_types.IStyledComponentBase<"web", Omit<styled_components.FastOmit<styled_components_dist_types.Merged<Omit<Omit<styled_components.FastOmit<styled_components_dist_types.Merged<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
2461
|
+
style?: React__default.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
2462
|
+
}, OakBoxProps>, "as" | "forwardedAs"> & {
|
|
2463
|
+
as?: styled_components.WebTarget | undefined;
|
|
2464
|
+
forwardedAs?: styled_components.WebTarget | undefined;
|
|
2465
|
+
}, "ref"> & {
|
|
2466
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
|
|
2467
|
+
}, "style"> & {
|
|
2468
|
+
style?: React__default.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | (React__default.CSSProperties & {
|
|
2469
|
+
[key: `--${string}`]: string | number | undefined;
|
|
2470
|
+
}) | undefined;
|
|
2471
|
+
}, OakFlexProps>, "as" | "forwardedAs"> & {
|
|
2472
|
+
as?: styled_components.WebTarget | undefined;
|
|
2473
|
+
forwardedAs?: styled_components.WebTarget | undefined;
|
|
2474
|
+
}, "style"> & {
|
|
2475
|
+
style?: React__default.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | (React__default.CSSProperties & {
|
|
2476
|
+
[key: `--${string}`]: string | number | undefined;
|
|
2477
|
+
}) | undefined;
|
|
2478
|
+
}> & string;
|
|
2479
|
+
declare const IconDown: styled_components_dist_types.IStyledComponentBase<"web", Omit<styled_components.FastOmit<styled_components_dist_types.Merged<Omit<Omit<styled_components.FastOmit<styled_components_dist_types.Merged<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
2480
|
+
style?: React__default.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
2481
|
+
}, OakBoxProps>, "as" | "forwardedAs"> & {
|
|
2482
|
+
as?: styled_components.WebTarget | undefined;
|
|
2483
|
+
forwardedAs?: styled_components.WebTarget | undefined;
|
|
2484
|
+
}, "ref"> & {
|
|
2485
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
|
|
2486
|
+
}, "style"> & {
|
|
2487
|
+
style?: React__default.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | (React__default.CSSProperties & {
|
|
2488
|
+
[key: `--${string}`]: string | number | undefined;
|
|
2489
|
+
}) | undefined;
|
|
2490
|
+
}, OakFlexProps>, "as" | "forwardedAs"> & {
|
|
2491
|
+
as?: styled_components.WebTarget | undefined;
|
|
2492
|
+
forwardedAs?: styled_components.WebTarget | undefined;
|
|
2493
|
+
}, "style"> & {
|
|
2494
|
+
style?: React__default.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | (React__default.CSSProperties & {
|
|
2495
|
+
[key: `--${string}`]: string | number | undefined;
|
|
2496
|
+
}) | undefined;
|
|
2497
|
+
}> & string;
|
|
2424
2498
|
type OakSelectProps = {
|
|
2425
2499
|
id?: string;
|
|
2426
2500
|
children: ReactNode;
|
|
@@ -2466,7 +2540,7 @@ type OakSelectProps = {
|
|
|
2466
2540
|
$display?: DisplayStyleProps["$display"];
|
|
2467
2541
|
name?: HTMLSelectElement["name"];
|
|
2468
2542
|
};
|
|
2469
|
-
declare function OakSelect({ id, borderColor, readOnlyBorderColor, focusRingDropShadows, background, hoverBackground, disabledBackgroundColor, highlightBackgroundColor, color, disabledColor, readOnlyColor, validity, validBorderColor, invalidBorderColor, isHighlighted, $display, children, name, onChange, ...props }: Readonly<OakSelectProps>):
|
|
2543
|
+
declare function OakSelect({ id, borderColor, readOnlyBorderColor, focusRingDropShadows, background, hoverBackground, disabledBackgroundColor, highlightBackgroundColor, color, disabledColor, readOnlyColor, validity, validBorderColor, invalidBorderColor, isHighlighted, $display, children, name, onChange, ...props }: Readonly<OakSelectProps>): React__default.JSX.Element;
|
|
2470
2544
|
|
|
2471
2545
|
type OakOptionProps = {
|
|
2472
2546
|
children: ReactNode;
|
|
@@ -2476,13 +2550,13 @@ type OakOptionProps = {
|
|
|
2476
2550
|
asDefault?: boolean;
|
|
2477
2551
|
$focusRingDropShadows?: OakDropShadowToken[];
|
|
2478
2552
|
};
|
|
2479
|
-
declare function OakOption({ selected, disabled, value, children, asDefault, $focusRingDropShadows, }: Readonly<OakOptionProps>):
|
|
2553
|
+
declare function OakOption({ selected, disabled, value, children, asDefault, $focusRingDropShadows, }: Readonly<OakOptionProps>): React__default.JSX.Element;
|
|
2480
2554
|
|
|
2481
2555
|
type OakOptGroupProps = {
|
|
2482
2556
|
label: string;
|
|
2483
2557
|
children: ReactNode;
|
|
2484
2558
|
};
|
|
2485
|
-
declare function OakOptGroup({ label, children }: Readonly<OakOptGroupProps>):
|
|
2559
|
+
declare function OakOptGroup({ label, children }: Readonly<OakOptGroupProps>): React__default.JSX.Element;
|
|
2486
2560
|
|
|
2487
2561
|
type OakTextInputProps = {
|
|
2488
2562
|
/**
|
|
@@ -2549,7 +2623,7 @@ type OakTextInputProps = {
|
|
|
2549
2623
|
/**
|
|
2550
2624
|
* Default input which can be extended to create specialised inputs.
|
|
2551
2625
|
*/
|
|
2552
|
-
declare const OakTextInput: ({ type, borderColor, readOnlyBorderColor, focusRingDropShadows, background, hoverBackground, disabledBackgroundColor, highlightBackgroundColor, color, disabledColor, readOnlyColor, validity, iconColor, validBorderColor, invalidBorderColor, validIconColor, invalidIconColor, iconName, iconAlt, isTrailingIcon, isHighlighted, wrapperWidth, wrapperMaxWidth, ...props }: OakTextInputProps) =>
|
|
2626
|
+
declare const OakTextInput: ({ type, borderColor, readOnlyBorderColor, focusRingDropShadows, background, hoverBackground, disabledBackgroundColor, highlightBackgroundColor, color, disabledColor, readOnlyColor, validity, iconColor, validBorderColor, invalidBorderColor, validIconColor, invalidIconColor, iconName, iconAlt, isTrailingIcon, isHighlighted, wrapperWidth, wrapperMaxWidth, ...props }: OakTextInputProps) => React__default.JSX.Element;
|
|
2553
2627
|
|
|
2554
2628
|
/**
|
|
2555
2629
|
*
|
|
@@ -2586,15 +2660,15 @@ type BaseRadioProps = {
|
|
|
2586
2660
|
/**
|
|
2587
2661
|
* Called when the checked value changes.
|
|
2588
2662
|
*/
|
|
2589
|
-
onChange?: (event:
|
|
2663
|
+
onChange?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
2590
2664
|
/**
|
|
2591
2665
|
* Called when the input receives focus.
|
|
2592
2666
|
*/
|
|
2593
|
-
onFocus?: (event:
|
|
2667
|
+
onFocus?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
|
|
2594
2668
|
/**
|
|
2595
2669
|
* Called when the input loses focus.
|
|
2596
2670
|
*/
|
|
2597
|
-
onBlur?: (event:
|
|
2671
|
+
onBlur?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
|
|
2598
2672
|
"aria-label"?: string;
|
|
2599
2673
|
"aria-labelledby"?: string;
|
|
2600
2674
|
"data-testid"?: string;
|
|
@@ -2604,8 +2678,8 @@ declare const colorSchemes: ["primary", "decorative1", "decorative2", "decorativ
|
|
|
2604
2678
|
type OakRadioAsButtonColorScheme = (typeof colorSchemes)[number];
|
|
2605
2679
|
type OakRadioAsButtonProps = Omit<BaseRadioProps, "defaultChecked" | "id" | "checked" | "variant" | "icon"> & {
|
|
2606
2680
|
value?: HTMLInputElement["value"];
|
|
2607
|
-
innerRef?:
|
|
2608
|
-
displayValue:
|
|
2681
|
+
innerRef?: React__default.RefObject<HTMLInputElement>;
|
|
2682
|
+
displayValue: React__default.ReactNode;
|
|
2609
2683
|
/**
|
|
2610
2684
|
* Whether to keep the icon color when the component is checked.
|
|
2611
2685
|
*
|
|
@@ -2616,8 +2690,8 @@ type OakRadioAsButtonProps = Omit<BaseRadioProps, "defaultChecked" | "id" | "che
|
|
|
2616
2690
|
keepIconColor?: boolean;
|
|
2617
2691
|
disabled?: HTMLInputElement["disabled"];
|
|
2618
2692
|
isSubdued?: boolean;
|
|
2619
|
-
"aria-labelledby"?:
|
|
2620
|
-
"aria-label"?:
|
|
2693
|
+
"aria-labelledby"?: React__default.AriaAttributes["aria-labelledby"];
|
|
2694
|
+
"aria-label"?: React__default.AriaAttributes["aria-label"];
|
|
2621
2695
|
/**
|
|
2622
2696
|
* Sets the color scheme of the component.
|
|
2623
2697
|
* Defaults to `"primary"`.
|
|
@@ -2642,10 +2716,10 @@ type OakRadioAsButtonProps = Omit<BaseRadioProps, "defaultChecked" | "id" | "che
|
|
|
2642
2716
|
/**
|
|
2643
2717
|
* A radio input styled as a button, to be used within `<OakRadioGroup/>`.
|
|
2644
2718
|
*/
|
|
2645
|
-
declare const OakRadioAsButton: (props: OakRadioAsButtonProps) =>
|
|
2719
|
+
declare const OakRadioAsButton: (props: OakRadioAsButtonProps) => React__default.JSX.Element;
|
|
2646
2720
|
|
|
2647
2721
|
type OakSearchFilterCheckBoxProps = Omit<BaseCheckBoxProps, "defaultChecked"> & {
|
|
2648
|
-
innerRef?:
|
|
2722
|
+
innerRef?: React__default.RefObject<HTMLInputElement>;
|
|
2649
2723
|
displayValue: string;
|
|
2650
2724
|
icon?: OakIconName;
|
|
2651
2725
|
keepIconColor?: boolean;
|
|
@@ -2676,19 +2750,7 @@ type OakSearchFilterCheckBoxProps = Omit<BaseCheckBoxProps, "defaultChecked"> &
|
|
|
2676
2750
|
* called after a mouseEnter and mouseLeave event has happened
|
|
2677
2751
|
*
|
|
2678
2752
|
*/
|
|
2679
|
-
declare const OakSearchFilterCheckBox: (props: OakSearchFilterCheckBoxProps) =>
|
|
2680
|
-
|
|
2681
|
-
type OakFlexProps = FlexStyleProps & OakBoxProps;
|
|
2682
|
-
declare const oakFlexCss: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<FlexStyleProps, styled_components.DefaultTheme>>;
|
|
2683
|
-
/**
|
|
2684
|
-
* Flex sets `display: flex;` and exposes various flex props, along with Box
|
|
2685
|
-
* props.
|
|
2686
|
-
*
|
|
2687
|
-
* ## Usage
|
|
2688
|
-
* Before adding props to this component, think about whether it makes sense
|
|
2689
|
-
* to add it to Box instead, as this component extends that.
|
|
2690
|
-
*/
|
|
2691
|
-
declare const OakFlex: any;
|
|
2753
|
+
declare const OakSearchFilterCheckBox: (props: OakSearchFilterCheckBoxProps) => React__default.JSX.Element;
|
|
2692
2754
|
|
|
2693
2755
|
type OakGridProps = OakBoxProps & {
|
|
2694
2756
|
/**
|
|
@@ -2708,32 +2770,49 @@ type OakGridProps = OakBoxProps & {
|
|
|
2708
2770
|
*
|
|
2709
2771
|
* Accepts a `grid-auto-rows` value or a responsive array of `grid-auto-rows` values.
|
|
2710
2772
|
*/
|
|
2711
|
-
$gridAutoRows?: ResponsiveValues<CSSProperties
|
|
2773
|
+
$gridAutoRows?: ResponsiveValues<CSSProperties["gridAutoRows"]>;
|
|
2712
2774
|
/**
|
|
2713
2775
|
* Applies `grid-template-areas` to the grid
|
|
2714
2776
|
*
|
|
2715
2777
|
* Accepts a `grid-template-areas` value or a responsive array of `grid-template-areas` values.
|
|
2716
2778
|
*/
|
|
2717
|
-
$gridTemplateAreas?: ResponsiveValues<CSSProperties
|
|
2779
|
+
$gridTemplateAreas?: ResponsiveValues<CSSProperties["gridTemplateAreas"]>;
|
|
2718
2780
|
/**
|
|
2719
2781
|
* Applies `grid-template-columns` to the grid
|
|
2720
2782
|
*
|
|
2721
2783
|
* Accepts a `grid-template-columns` value or a responsive array of `grid-template-columns` values.
|
|
2722
2784
|
*/
|
|
2723
|
-
$gridTemplateColumns?: ResponsiveValues<CSSProperties
|
|
2785
|
+
$gridTemplateColumns?: ResponsiveValues<CSSProperties["gridTemplateColumns"]>;
|
|
2724
2786
|
/**
|
|
2725
2787
|
* Applies `grid-template-rows` to the grid
|
|
2726
2788
|
*
|
|
2727
2789
|
* Accepts a `grid-template-rows` value or a responsive array of `grid-template-rows` values.
|
|
2728
2790
|
*/
|
|
2729
|
-
$gridTemplateRows?: ResponsiveValues<CSSProperties
|
|
2791
|
+
$gridTemplateRows?: ResponsiveValues<CSSProperties["gridTemplateRows"]>;
|
|
2792
|
+
/**
|
|
2793
|
+
* Applies `align-items` to the grid
|
|
2794
|
+
*
|
|
2795
|
+
* Accepts a `align-items` value or a responsive array of `align-items` values.
|
|
2796
|
+
*/
|
|
2797
|
+
$alignItems?: ResponsiveValues<CSSProperties["alignItems"]>;
|
|
2730
2798
|
};
|
|
2731
2799
|
/**
|
|
2732
2800
|
* Creates a grid layout
|
|
2733
2801
|
*
|
|
2734
2802
|
* Defaults to a 12 column grid
|
|
2735
2803
|
*/
|
|
2736
|
-
declare const OakGrid:
|
|
2804
|
+
declare const OakGrid: styled_components_dist_types.IStyledComponentBase<"web", 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"> & {
|
|
2805
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
2806
|
+
}, OakBoxProps>, "as" | "forwardedAs"> & {
|
|
2807
|
+
as?: styled_components.WebTarget | undefined;
|
|
2808
|
+
forwardedAs?: styled_components.WebTarget | undefined;
|
|
2809
|
+
}, "ref"> & {
|
|
2810
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React$1.RefObject<HTMLDivElement> | null | undefined;
|
|
2811
|
+
}, "style"> & {
|
|
2812
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | (React$1.CSSProperties & {
|
|
2813
|
+
[key: `--${string}`]: string | number | undefined;
|
|
2814
|
+
}) | undefined;
|
|
2815
|
+
}, OakGridProps>> & string;
|
|
2737
2816
|
|
|
2738
2817
|
type ColRowSpan = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
2739
2818
|
type OakGridAreaProps = {
|
|
@@ -2754,7 +2833,7 @@ type OakGridAreaProps = {
|
|
|
2754
2833
|
*
|
|
2755
2834
|
* Accepts a number or a responsive array of numbers.
|
|
2756
2835
|
*/
|
|
2757
|
-
$order?: ResponsiveValues<CSSProperties
|
|
2836
|
+
$order?: ResponsiveValues<CSSProperties["order"]>;
|
|
2758
2837
|
/**
|
|
2759
2838
|
* The start column of the element.
|
|
2760
2839
|
*
|
|
@@ -2782,7 +2861,81 @@ type OakGridAreaProps = {
|
|
|
2782
2861
|
* - Column and row arrangements are achieved through $colSpan, $rowSpan, $colStart, $colEnd, $rowStart, $rowEnd
|
|
2783
2862
|
*
|
|
2784
2863
|
*/
|
|
2785
|
-
declare const OakGridArea:
|
|
2864
|
+
declare const OakGridArea: styled_components_dist_types.IStyledComponentBase<"web", 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"> & {
|
|
2865
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
2866
|
+
}, OakBoxProps>, "as" | "forwardedAs"> & {
|
|
2867
|
+
as?: styled_components.WebTarget | undefined;
|
|
2868
|
+
forwardedAs?: styled_components.WebTarget | undefined;
|
|
2869
|
+
}, "ref"> & {
|
|
2870
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React$1.RefObject<HTMLDivElement> | null | undefined;
|
|
2871
|
+
}, "style"> & {
|
|
2872
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | (React$1.CSSProperties & {
|
|
2873
|
+
[key: `--${string}`]: string | number | undefined;
|
|
2874
|
+
}) | undefined;
|
|
2875
|
+
}, OakFlexProps>, "as" | "forwardedAs"> & {
|
|
2876
|
+
as?: styled_components.WebTarget | undefined;
|
|
2877
|
+
forwardedAs?: styled_components.WebTarget | undefined;
|
|
2878
|
+
}, "style"> & {
|
|
2879
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | (React$1.CSSProperties & {
|
|
2880
|
+
[key: `--${string}`]: string | number | undefined;
|
|
2881
|
+
}) | undefined;
|
|
2882
|
+
}, {
|
|
2883
|
+
/**
|
|
2884
|
+
* Determines the number of columns the element should span.
|
|
2885
|
+
*
|
|
2886
|
+
* Accepts a value from 0-12 or a responsive value of 0-12.
|
|
2887
|
+
*/
|
|
2888
|
+
$colSpan: ResponsiveValues<ColRowSpan>;
|
|
2889
|
+
/**
|
|
2890
|
+
* Determines the number of rows the element should span.
|
|
2891
|
+
*
|
|
2892
|
+
* Accepts a value from 0-12 or a responsive value of 0-12.
|
|
2893
|
+
*/
|
|
2894
|
+
$rowSpan?: ResponsiveValues<ColRowSpan>;
|
|
2895
|
+
/**
|
|
2896
|
+
* Sets the order of the element.
|
|
2897
|
+
*
|
|
2898
|
+
* Accepts a number or a responsive array of numbers.
|
|
2899
|
+
*/
|
|
2900
|
+
$order?: ResponsiveValues<CSSProperties["order"]>;
|
|
2901
|
+
/**
|
|
2902
|
+
* The start column of the element.
|
|
2903
|
+
*
|
|
2904
|
+
* Accepts a value from 0-12 or a responsive value of 0-12.
|
|
2905
|
+
*/
|
|
2906
|
+
$colStart?: ResponsiveValues<ColRowSpan>;
|
|
2907
|
+
/**
|
|
2908
|
+
* The end column of the element.
|
|
2909
|
+
*
|
|
2910
|
+
* Accepts a value from 0-12 or a responsive value of 0-12.
|
|
2911
|
+
*/
|
|
2912
|
+
$colEnd?: ResponsiveValues<ColRowSpan>;
|
|
2913
|
+
/**
|
|
2914
|
+
* The start row of the element.
|
|
2915
|
+
*
|
|
2916
|
+
* Accepts a value from 0-12 or a responsive value of 0-12.
|
|
2917
|
+
*/
|
|
2918
|
+
$rowStart?: ResponsiveValues<ColRowSpan>;
|
|
2919
|
+
} & PaddingStyleProps & MarginStyleProps & DisplayStyleProps & {
|
|
2920
|
+
$flexDirection?: ResponsiveValues<React$1.CSSProperties["flexDirection"]>;
|
|
2921
|
+
$flexWrap?: ResponsiveValues<React$1.CSSProperties["flexWrap"]>;
|
|
2922
|
+
$alignItems?: ResponsiveValues<React$1.CSSProperties["alignItems"]>;
|
|
2923
|
+
$alignContent?: ResponsiveValues<React$1.CSSProperties["alignContent"]>;
|
|
2924
|
+
$justifyContent?: ResponsiveValues<React$1.CSSProperties["justifyContent"]>;
|
|
2925
|
+
$alignSelf?: ResponsiveValues<React$1.CSSProperties["alignSelf"]>;
|
|
2926
|
+
$flexGrow?: ResponsiveValues<React$1.CSSProperties["flexGrow"]>;
|
|
2927
|
+
$flexShrink?: ResponsiveValues<React$1.CSSProperties["flexShrink"]>;
|
|
2928
|
+
$order?: ResponsiveValues<React$1.CSSProperties["order"]>;
|
|
2929
|
+
$flexBasis?: ResponsiveValues<OakCombinedSpacingToken | null | undefined>;
|
|
2930
|
+
$gap?: ResponsiveValues<OakAllSpacingToken | OakSpaceBetweenToken | null | undefined>;
|
|
2931
|
+
$columnGap?: ResponsiveValues<OakAllSpacingToken | OakSpaceBetweenToken | null | undefined>;
|
|
2932
|
+
$rowGap?: ResponsiveValues<OakAllSpacingToken | OakSpaceBetweenToken | null | undefined>;
|
|
2933
|
+
focusable?: boolean;
|
|
2934
|
+
} & {
|
|
2935
|
+
children?: React.ReactNode;
|
|
2936
|
+
} & PositionStyleProps & SizeStyleProps & ColorStyleProps & BorderStyleProps & DropShadowStyleProps & OpacityStyleProps & TransformStyleProps & TransitionStyleProps & TypographyStyleProps & ZIndexStyleProps & {
|
|
2937
|
+
onClick?: React$1.MouseEventHandler;
|
|
2938
|
+
} & ScrollSnapStyleProps>> & string;
|
|
2786
2939
|
|
|
2787
2940
|
/**
|
|
2788
2941
|
* This component will provide a default maxWidth and ph value, it take Flex props.
|
|
@@ -2791,7 +2944,43 @@ declare const OakGridArea: any;
|
|
|
2791
2944
|
* This will make it easier to create full browser width or custom width containers on the same page
|
|
2792
2945
|
* with different background colors / image url.
|
|
2793
2946
|
*/
|
|
2794
|
-
declare const OakMaxWidth:
|
|
2947
|
+
declare const OakMaxWidth: styled_components_dist_types.IStyledComponentBase<"web", Omit<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"> & {
|
|
2948
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
2949
|
+
}, OakBoxProps>, "as" | "forwardedAs"> & {
|
|
2950
|
+
as?: styled_components.WebTarget | undefined;
|
|
2951
|
+
forwardedAs?: styled_components.WebTarget | undefined;
|
|
2952
|
+
}, "ref"> & {
|
|
2953
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React$1.RefObject<HTMLDivElement> | null | undefined;
|
|
2954
|
+
}, "style"> & {
|
|
2955
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | (React$1.CSSProperties & {
|
|
2956
|
+
[key: `--${string}`]: string | number | undefined;
|
|
2957
|
+
}) | undefined;
|
|
2958
|
+
}, OakFlexProps>, "as" | "forwardedAs"> & {
|
|
2959
|
+
as?: styled_components.WebTarget | undefined;
|
|
2960
|
+
forwardedAs?: styled_components.WebTarget | undefined;
|
|
2961
|
+
}, "style"> & {
|
|
2962
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | (React$1.CSSProperties & {
|
|
2963
|
+
[key: `--${string}`]: string | number | undefined;
|
|
2964
|
+
}) | undefined;
|
|
2965
|
+
}, 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" | "aria-label" | "aria-description" | "aria-labelledby" | "aria-describedby" | "hidden" | "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"> & {
|
|
2966
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
2967
|
+
}, OakBoxProps>, "as" | "forwardedAs"> & {
|
|
2968
|
+
as?: styled_components.WebTarget | undefined;
|
|
2969
|
+
forwardedAs?: styled_components.WebTarget | undefined;
|
|
2970
|
+
}, "ref"> & {
|
|
2971
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React$1.RefObject<HTMLDivElement> | null | undefined;
|
|
2972
|
+
}, "style"> & {
|
|
2973
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | (React$1.CSSProperties & {
|
|
2974
|
+
[key: `--${string}`]: string | number | undefined;
|
|
2975
|
+
}) | undefined;
|
|
2976
|
+
}, OakFlexProps>, "as" | "forwardedAs"> & {
|
|
2977
|
+
as?: styled_components.WebTarget | undefined;
|
|
2978
|
+
forwardedAs?: styled_components.WebTarget | undefined;
|
|
2979
|
+
}, "style"> & {
|
|
2980
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | (React$1.CSSProperties & {
|
|
2981
|
+
[key: `--${string}`]: string | number | undefined;
|
|
2982
|
+
}) | undefined;
|
|
2983
|
+
}, 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" | "aria-label" | "aria-description" | "aria-labelledby" | "aria-describedby" | "hidden" | "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;
|
|
2795
2984
|
|
|
2796
2985
|
type OakAccordionProps = {
|
|
2797
2986
|
/**
|
|
@@ -2837,7 +3026,7 @@ type OakAccordionProps = {
|
|
|
2837
3026
|
/**
|
|
2838
3027
|
* An accordion component that can be used to show/hide content
|
|
2839
3028
|
*/
|
|
2840
|
-
declare const OakAccordion: (props: OakAccordionProps) =>
|
|
3029
|
+
declare const OakAccordion: (props: OakAccordionProps) => React__default.JSX.Element;
|
|
2841
3030
|
|
|
2842
3031
|
type OakBasicAccordionProps = {
|
|
2843
3032
|
/**
|
|
@@ -2861,7 +3050,7 @@ type OakBasicAccordionProps = {
|
|
|
2861
3050
|
*/
|
|
2862
3051
|
id: string;
|
|
2863
3052
|
} & BorderStyleProps & FlexStyleProps;
|
|
2864
|
-
declare const OakBasicAccordion: ({ header, children, id, initialOpen, subheading, ...styleProps }: OakBasicAccordionProps) =>
|
|
3053
|
+
declare const OakBasicAccordion: ({ header, children, id, initialOpen, subheading, ...styleProps }: OakBasicAccordionProps) => React__default.JSX.Element;
|
|
2865
3054
|
|
|
2866
3055
|
type OakCollapsibleContentProps = ComponentProps<typeof OakFlex> & {
|
|
2867
3056
|
/**
|
|
@@ -2873,7 +3062,7 @@ type OakCollapsibleContentProps = ComponentProps<typeof OakFlex> & {
|
|
|
2873
3062
|
* A filled scrollable box that can be hidden with the `isOpen` prop.
|
|
2874
3063
|
* Useful for hiding content that is not immediately relevant
|
|
2875
3064
|
*/
|
|
2876
|
-
declare const OakCollapsibleContent: ({ isOpen, children, id, ...rest }: OakCollapsibleContentProps) =>
|
|
3065
|
+
declare const OakCollapsibleContent: ({ isOpen, children, id, ...rest }: OakCollapsibleContentProps) => React__default.JSX.Element;
|
|
2877
3066
|
|
|
2878
3067
|
type OakKbdProps = {
|
|
2879
3068
|
children: ReactNode;
|
|
@@ -2881,7 +3070,7 @@ type OakKbdProps = {
|
|
|
2881
3070
|
/**
|
|
2882
3071
|
* Represents textual user input from a keyboard, voice input, or any other text entry device.
|
|
2883
3072
|
* */
|
|
2884
|
-
declare const OakKbd: ({ children }: OakKbdProps) =>
|
|
3073
|
+
declare const OakKbd: ({ children }: OakKbdProps) => React__default.JSX.Element;
|
|
2885
3074
|
|
|
2886
3075
|
/**
|
|
2887
3076
|
* This component will visually hide its contents but will still be available
|
|
@@ -2890,7 +3079,9 @@ declare const OakKbd: ({ children }: OakKbdProps) => React$1.JSX.Element;
|
|
|
2890
3079
|
* Use this component in places where content shouldn't be visible, but should
|
|
2891
3080
|
* be accessible to assistive technology.
|
|
2892
3081
|
*/
|
|
2893
|
-
declare const OakScreenReader:
|
|
3082
|
+
declare const OakScreenReader: styled_components_dist_types.IStyledComponentBase<"web", Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
3083
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
3084
|
+
}> & string;
|
|
2894
3085
|
|
|
2895
3086
|
type OakLoadingSpinnerProps = Pick<SizeStyleProps, "$width"> & ColorStyleProps & {
|
|
2896
3087
|
loaderColor?: OakUiRoleToken;
|
|
@@ -2906,13 +3097,13 @@ type OakLoadingSpinnerProps = Pick<SizeStyleProps, "$width"> & ColorStyleProps &
|
|
|
2906
3097
|
* A loading spinner of variable size.
|
|
2907
3098
|
*
|
|
2908
3099
|
*/
|
|
2909
|
-
declare const OakLoadingSpinner: (props: OakLoadingSpinnerProps) =>
|
|
3100
|
+
declare const OakLoadingSpinner: (props: OakLoadingSpinnerProps) => React__default.JSX.Element;
|
|
2910
3101
|
|
|
2911
3102
|
declare const oakHeadingTagsConst: readonly ["div", "h1", "h2", "h3", "h4", "h5", "h6"];
|
|
2912
3103
|
type OakHeadingTag = (typeof oakHeadingTagsConst)[number];
|
|
2913
3104
|
declare const oakHeadingTags: ("div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6")[];
|
|
2914
3105
|
type OakHeadingTagProps = {
|
|
2915
|
-
children?:
|
|
3106
|
+
children?: React__default.ReactNode;
|
|
2916
3107
|
id?: string;
|
|
2917
3108
|
/**
|
|
2918
3109
|
* HTML tag to be used for the heading
|
|
@@ -2931,7 +3122,7 @@ type OakHeadingProps = TypographyStyleProps & OakHeadingTagProps & ColorStylePro
|
|
|
2931
3122
|
* Use the controls to view different font styles.
|
|
2932
3123
|
*
|
|
2933
3124
|
*/
|
|
2934
|
-
declare const OakHeading: any
|
|
3125
|
+
declare const OakHeading: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Merged<OakHeadingTagProps, OakHeadingProps>> & string & Omit<React__default.FC<OakHeadingTagProps>, keyof React__default.Component<any, {}, any>>;
|
|
2935
3126
|
|
|
2936
3127
|
type OakInlineBannerTypes = "info" | "neutral" | "success" | "alert" | "error" | "warning";
|
|
2937
3128
|
type OakInlineBannerVariants = "regular" | "large";
|
|
@@ -3026,7 +3217,7 @@ declare const bannerVariants: OakInlineBannerVariantProps;
|
|
|
3026
3217
|
* - **variant?** \- The variant of the inline banner to display (regular, large) (default: regular)
|
|
3027
3218
|
* - **...rest** \- Other props to be passed to the wrapper OakFlex component (can be used to override styles of the banner)
|
|
3028
3219
|
*/
|
|
3029
|
-
declare const OakInlineBanner: ({ isOpen, title, message, type, icon, iconColorFilter, isLoading, cta, canDismiss, onDismiss, closeButtonOverrideProps, variant, titleTag, ...props }: OakInlineBannerProps) =>
|
|
3220
|
+
declare const OakInlineBanner: ({ isOpen, title, message, type, icon, iconColorFilter, isLoading, cta, canDismiss, onDismiss, closeButtonOverrideProps, variant, titleTag, ...props }: OakInlineBannerProps) => React__default.JSX.Element;
|
|
3030
3221
|
|
|
3031
3222
|
type OakModalCenterProps = {
|
|
3032
3223
|
/**
|
|
@@ -3100,7 +3291,7 @@ type OakModalCenterProps = {
|
|
|
3100
3291
|
* - **backdropFlexProps?** \- Override HTMLAttributes & OakFlex props for the backdrop container
|
|
3101
3292
|
* - **footerSlot?** \- Fixed area at the bottom of the modal, this will remain fixed in view if the content is scrollable
|
|
3102
3293
|
*/
|
|
3103
|
-
declare const OakModalCenter: ({ children, domContainer, isOpen, onClose, disableBackdropClick, disableEscapeKey, hideCloseButton, modalFlexProps, modalOuterFlexProps, modalInnerFlexProps, backdropFlexProps, footerSlot, returnFocus, }: OakModalCenterProps) =>
|
|
3294
|
+
declare const OakModalCenter: ({ children, domContainer, isOpen, onClose, disableBackdropClick, disableEscapeKey, hideCloseButton, modalFlexProps, modalOuterFlexProps, modalInnerFlexProps, backdropFlexProps, footerSlot, returnFocus, }: OakModalCenterProps) => React__default.JSX.Element;
|
|
3104
3295
|
|
|
3105
3296
|
type OakModalCenterBodyProps = {
|
|
3106
3297
|
/**
|
|
@@ -3142,7 +3333,7 @@ type OakModalCenterBodyProps = {
|
|
|
3142
3333
|
* - **headingOverride** \- Override HTMLAttributes & OakHEading props for the heading
|
|
3143
3334
|
* - **iconOverride** \- Override HTMLAttributes & OakIcon props for the icon
|
|
3144
3335
|
*/
|
|
3145
|
-
declare const OakModalCenterBody: ({ children, iconName, title, headingOverride, iconOverride, hideIcon, }: OakModalCenterBodyProps) =>
|
|
3336
|
+
declare const OakModalCenterBody: ({ children, iconName, title, headingOverride, iconOverride, hideIcon, }: OakModalCenterBodyProps) => React__default.JSX.Element;
|
|
3146
3337
|
|
|
3147
3338
|
type OakTagFunctionalProps = {
|
|
3148
3339
|
label: string;
|
|
@@ -3150,10 +3341,10 @@ type OakTagFunctionalProps = {
|
|
|
3150
3341
|
isTrailingIcon?: boolean;
|
|
3151
3342
|
useSpan?: boolean;
|
|
3152
3343
|
} & Omit<OakFlexProps, "onClick" | "label">;
|
|
3153
|
-
declare const OakTagFunctional: (props: OakTagFunctionalProps) =>
|
|
3344
|
+
declare const OakTagFunctional: (props: OakTagFunctionalProps) => React__default.JSX.Element;
|
|
3154
3345
|
|
|
3155
3346
|
type OakToastProps = {
|
|
3156
|
-
message:
|
|
3347
|
+
message: React__default.ReactNode;
|
|
3157
3348
|
variant: VariantKey;
|
|
3158
3349
|
autoDismissDuration?: number;
|
|
3159
3350
|
autoDismiss: boolean;
|
|
@@ -3163,7 +3354,7 @@ type OakToastProps = {
|
|
|
3163
3354
|
showClose?: boolean;
|
|
3164
3355
|
};
|
|
3165
3356
|
type VariantKey = "green" | "yellow" | "pink" | "blue" | "aqua" | "light" | "dark" | "error" | "success";
|
|
3166
|
-
declare const OakToast: ({ message, variant, autoDismiss, autoDismissDuration, showIcon, onClose, id, showClose, }: OakToastProps) =>
|
|
3357
|
+
declare const OakToast: ({ message, variant, autoDismiss, autoDismissDuration, showIcon, onClose, id, showClose, }: OakToastProps) => React__default.JSX.Element;
|
|
3167
3358
|
|
|
3168
3359
|
type InternalTooltipProps = OakFlexProps & HTMLAttributes<Element> & {
|
|
3169
3360
|
children?: ReactNode;
|
|
@@ -3193,19 +3384,30 @@ type OakTooltipProps = InternalTooltipProps & {
|
|
|
3193
3384
|
/**
|
|
3194
3385
|
* A tooltip with oven-ready styling and positioning.
|
|
3195
3386
|
*/
|
|
3196
|
-
declare const OakTooltip: ({ tooltipPosition, children, tooltip, isOpen, domContainer, ...props }: OakTooltipProps) =>
|
|
3387
|
+
declare const OakTooltip: ({ tooltipPosition, children, tooltip, isOpen, domContainer, ...props }: OakTooltipProps) => React__default.JSX.Element;
|
|
3197
3388
|
|
|
3198
3389
|
type OakFocusIndicatorProps = OakBoxProps & {
|
|
3199
3390
|
as?: "div" | "li";
|
|
3200
|
-
hoverBackground?: OakUiRoleToken;
|
|
3201
|
-
dropShadow?: OakDropShadowToken;
|
|
3202
|
-
hoverDropShadow?: OakDropShadowToken;
|
|
3203
|
-
activeDropShadow?: OakDropShadowToken;
|
|
3391
|
+
$hoverBackground?: OakUiRoleToken;
|
|
3392
|
+
$dropShadow?: OakDropShadowToken;
|
|
3393
|
+
$hoverDropShadow?: OakDropShadowToken;
|
|
3394
|
+
$activeDropShadow?: OakDropShadowToken;
|
|
3204
3395
|
};
|
|
3205
3396
|
/**
|
|
3206
3397
|
* Wrap focusable components `<a/>`/`<button/>` and this will add focus styles then the inner element is focused
|
|
3207
3398
|
*/
|
|
3208
|
-
declare const OakFocusIndicator:
|
|
3399
|
+
declare const OakFocusIndicator: styled_components_dist_types.IStyledComponentBase<"web", 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"> & {
|
|
3400
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
3401
|
+
}, OakBoxProps>, "as" | "forwardedAs"> & {
|
|
3402
|
+
as?: styled_components.WebTarget | undefined;
|
|
3403
|
+
forwardedAs?: styled_components.WebTarget | undefined;
|
|
3404
|
+
}, "ref"> & {
|
|
3405
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React$1.RefObject<HTMLDivElement> | null | undefined;
|
|
3406
|
+
}, "style"> & {
|
|
3407
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | (React$1.CSSProperties & {
|
|
3408
|
+
[key: `--${string}`]: string | number | undefined;
|
|
3409
|
+
}) | undefined;
|
|
3410
|
+
}, OakFocusIndicatorProps>> & string;
|
|
3209
3411
|
|
|
3210
3412
|
type OakHandDrawnFocusUnderlineProps = {
|
|
3211
3413
|
FocusUnderlineColor?: InternalStyledSvgProps["$fill"];
|
|
@@ -3217,7 +3419,7 @@ type OakHandDrawnFocusUnderlineProps = {
|
|
|
3217
3419
|
*
|
|
3218
3420
|
* change the sizeProps of the flex container to change the size and dimentions of the FocusUnderline
|
|
3219
3421
|
*/
|
|
3220
|
-
declare const OakHandDrawnFocusUnderline: (props: OakHandDrawnFocusUnderlineProps) =>
|
|
3422
|
+
declare const OakHandDrawnFocusUnderline: (props: OakHandDrawnFocusUnderlineProps) => React__default.JSX.Element;
|
|
3221
3423
|
|
|
3222
3424
|
type OakPromoTagProps = {
|
|
3223
3425
|
width?: SizeStyleProps["$width"];
|
|
@@ -3227,15 +3429,15 @@ type OakPromoTagProps = {
|
|
|
3227
3429
|
/**
|
|
3228
3430
|
* Renders a tag with the text "New"
|
|
3229
3431
|
*/
|
|
3230
|
-
declare const OakPromoTag: (props: OakPromoTagProps) =>
|
|
3432
|
+
declare const OakPromoTag: (props: OakPromoTagProps) => React__default.JSX.Element;
|
|
3231
3433
|
|
|
3232
|
-
declare const OakErrorBoundaryBorderColor:
|
|
3434
|
+
declare const OakErrorBoundaryBorderColor: 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>;
|
|
3233
3435
|
type OakErrorBoundaryCloseAction = "close_button" | undefined;
|
|
3234
3436
|
type OakErrorBoundaryProps = {
|
|
3235
3437
|
/**
|
|
3236
3438
|
* Function called when render error occurs
|
|
3237
3439
|
*/
|
|
3238
|
-
onError?: (error: unknown, componentStack:
|
|
3440
|
+
onError?: (error: unknown, componentStack: React__default.ErrorInfo["componentStack"]) => void;
|
|
3239
3441
|
/**
|
|
3240
3442
|
* The name of the section where the error occurred. This is used to provide context in the error message.
|
|
3241
3443
|
*/
|
|
@@ -3253,7 +3455,7 @@ type OakErrorBoundaryProps = {
|
|
|
3253
3455
|
/**
|
|
3254
3456
|
* Content rendered when no error has occurred.
|
|
3255
3457
|
*/
|
|
3256
|
-
children:
|
|
3458
|
+
children: React__default.ReactNode;
|
|
3257
3459
|
} & Pick<HTMLAttributes<Element>, "aria-label" | "aria-description" | "aria-labelledby" | "aria-describedby">;
|
|
3258
3460
|
/**
|
|
3259
3461
|
* When things go wrong in a react app, for example OWA, we can isolate the error in certain circumstances to a section of the page.
|
|
@@ -3265,9 +3467,9 @@ declare class OakErrorBoundary extends Component<OakErrorBoundaryProps, {
|
|
|
3265
3467
|
static getDerivedStateFromError(): {
|
|
3266
3468
|
hasError: boolean;
|
|
3267
3469
|
};
|
|
3268
|
-
componentDidCatch(error: unknown, info:
|
|
3470
|
+
componentDidCatch(error: unknown, info: React__default.ErrorInfo): void;
|
|
3269
3471
|
onRetry: () => void;
|
|
3270
|
-
render(): string | number | boolean | Iterable<
|
|
3472
|
+
render(): string | number | boolean | Iterable<React__default.ReactNode> | React__default.JSX.Element | null | undefined;
|
|
3271
3473
|
}
|
|
3272
3474
|
|
|
3273
3475
|
type OakAnchorTargetProps = PaddingStyleProps;
|
|
@@ -3282,7 +3484,9 @@ type OakAnchorTargetProps = PaddingStyleProps;
|
|
|
3282
3484
|
* it a unique 'id'. Then link it elsewhere using `<a href='#${id}' />`.
|
|
3283
3485
|
*
|
|
3284
3486
|
* */
|
|
3285
|
-
declare const OakAnchorTarget:
|
|
3487
|
+
declare const OakAnchorTarget: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Merged<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
3488
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
3489
|
+
}, PaddingStyleProps>> & string;
|
|
3286
3490
|
|
|
3287
3491
|
type InternalLinkProps = {
|
|
3288
3492
|
/**
|
|
@@ -3309,13 +3513,13 @@ type OakHoverLinkProps = Pick<InternalLinkProps, "iconName" | "isTrailingIcon" |
|
|
|
3309
3513
|
iconWidth?: OakAllSpacingToken;
|
|
3310
3514
|
iconHeight?: OakAllSpacingToken;
|
|
3311
3515
|
};
|
|
3312
|
-
type OakHoverLinkComponent = <C extends
|
|
3516
|
+
type OakHoverLinkComponent = <C extends React__default.ElementType = "a">(props: {
|
|
3313
3517
|
/**
|
|
3314
3518
|
* This colours the link as disabled, but does not disable the link.
|
|
3315
3519
|
* It should be used when the link is wrapped in an element which prevents cursor interaction, such as a card
|
|
3316
3520
|
*/
|
|
3317
3521
|
displayDisabled?: boolean;
|
|
3318
|
-
} & PolymorphicPropsWithRef<C> & OakHoverLinkProps) =>
|
|
3522
|
+
} & PolymorphicPropsWithRef<C> & OakHoverLinkProps) => React__default.ReactNode;
|
|
3319
3523
|
/**
|
|
3320
3524
|
* deprecated - use `<OakLink />` instead
|
|
3321
3525
|
* @deprecated
|
|
@@ -3338,7 +3542,7 @@ type OakLinkProps = Pick<InternalLinkProps, "iconName" | "isTrailingIcon" | "isL
|
|
|
3338
3542
|
*/
|
|
3339
3543
|
variant?: Variant;
|
|
3340
3544
|
} & Pick<TypographyStyleProps, "$font">;
|
|
3341
|
-
type OakLinkComponent$1 = <C extends
|
|
3545
|
+
type OakLinkComponent$1 = <C extends React__default.ElementType = "a">(props: PolymorphicPropsWithRef<C> & OakLinkProps) => React__default.ReactNode;
|
|
3342
3546
|
/**
|
|
3343
3547
|
* A link with an optional icon and loading state.
|
|
3344
3548
|
*
|
|
@@ -3355,7 +3559,7 @@ type OakPaginationProps = {
|
|
|
3355
3559
|
pageName: string;
|
|
3356
3560
|
onPageChange: (page: number) => void;
|
|
3357
3561
|
};
|
|
3358
|
-
declare const OakPagination: ({ totalPages, nextHref, prevHref, paginationHref, pageName, onPageChange, currentPage, }: OakPaginationProps) =>
|
|
3562
|
+
declare const OakPagination: ({ totalPages, nextHref, prevHref, paginationHref, pageName, onPageChange, currentPage, }: OakPaginationProps) => React__default.JSX.Element | null;
|
|
3359
3563
|
|
|
3360
3564
|
type Url = string | UrlObject;
|
|
3361
3565
|
type OakPrimaryNavItemProps = {
|
|
@@ -3372,7 +3576,7 @@ type OakPrimaryNavItemProps = {
|
|
|
3372
3576
|
* ⚠️ To be deprecated
|
|
3373
3577
|
* @deprecated
|
|
3374
3578
|
*/
|
|
3375
|
-
declare const OakPrimaryNavItem: ({ href, isCurrent, shallow, children, }: OakPrimaryNavItemProps) =>
|
|
3579
|
+
declare const OakPrimaryNavItem: ({ href, isCurrent, shallow, children, }: OakPrimaryNavItemProps) => React__default.JSX.Element;
|
|
3376
3580
|
|
|
3377
3581
|
type OakPrimaryNavProps = {
|
|
3378
3582
|
ariaLabel?: string;
|
|
@@ -3384,12 +3588,12 @@ type OakPrimaryNavProps = {
|
|
|
3384
3588
|
* ⚠️ To be deprecated
|
|
3385
3589
|
* @deprecated
|
|
3386
3590
|
*/
|
|
3387
|
-
declare const OakPrimaryNav: ({ ariaLabel, navItems }: OakPrimaryNavProps) =>
|
|
3591
|
+
declare const OakPrimaryNav: ({ ariaLabel, navItems }: OakPrimaryNavProps) => React__default.JSX.Element;
|
|
3388
3592
|
|
|
3389
3593
|
type OakSecondaryLinkProps = {
|
|
3390
3594
|
displayDisabled?: boolean;
|
|
3391
3595
|
} & Pick<InternalLinkProps, "iconName" | "isTrailingIcon" | "isLoading">;
|
|
3392
|
-
type OakLinkComponent = <C extends
|
|
3596
|
+
type OakLinkComponent = <C extends React__default.ElementType = "a">(props: PolymorphicPropsWithRef<C> & OakSecondaryLinkProps) => React__default.ReactNode;
|
|
3393
3597
|
/**
|
|
3394
3598
|
* deprecated - use `<OakLink variant="secondary"/>` instead
|
|
3395
3599
|
* @deprecated
|
|
@@ -3425,7 +3629,7 @@ type OakTabsProps<T extends string> = {
|
|
|
3425
3629
|
*/
|
|
3426
3630
|
onTabClick?: (tab: T, event: Event) => void;
|
|
3427
3631
|
};
|
|
3428
|
-
declare function OakTabs<T extends string>(props: Readonly<OakTabsProps<T>>):
|
|
3632
|
+
declare function OakTabs<T extends string>(props: Readonly<OakTabsProps<T>>): React__default.JSX.Element;
|
|
3429
3633
|
|
|
3430
3634
|
/**
|
|
3431
3635
|
* Border and colour style props are forwarded to the card's `<a>` element.
|
|
@@ -3512,7 +3716,7 @@ type OakCardProps = {
|
|
|
3512
3716
|
* Border and colour style props are forwarded to the card's `<a>` element, so the
|
|
3513
3717
|
* background, border radii, borders etc. can be overridden directly.
|
|
3514
3718
|
*/
|
|
3515
|
-
declare const OakCard: ({ as, heading, headingLevel, href, cardOrientation, cardWidth, imageSrc, imageAlt, aspectRatio, subCopy, subCopyColor, tagName, tagBackground, linkText, linkIconName, hoverBackground, imageBackgroundColor, $background, $borderRadius, showImage, ...styleProps }: OakCardProps) =>
|
|
3719
|
+
declare const OakCard: ({ as, heading, headingLevel, href, cardOrientation, cardWidth, imageSrc, imageAlt, aspectRatio, subCopy, subCopyColor, tagName, tagBackground, linkText, linkIconName, hoverBackground, imageBackgroundColor, $background, $borderRadius, showImage, ...styleProps }: OakCardProps) => React__default.JSX.Element;
|
|
3516
3720
|
|
|
3517
3721
|
type OakBreadcrumb = {
|
|
3518
3722
|
text: string;
|
|
@@ -3531,7 +3735,7 @@ type OakBreadcrumbsProps = {
|
|
|
3531
3735
|
/**
|
|
3532
3736
|
* The breadcrumb component helps users to understand where they are within a website’s structure and move between levels.
|
|
3533
3737
|
*/
|
|
3534
|
-
declare const OakBreadcrumbs: ({ breadcrumbs, }: Readonly<OakBreadcrumbsProps>) =>
|
|
3738
|
+
declare const OakBreadcrumbs: ({ breadcrumbs, }: Readonly<OakBreadcrumbsProps>) => React__default.JSX.Element;
|
|
3535
3739
|
|
|
3536
3740
|
type OakResourcesAccordionProps = {
|
|
3537
3741
|
/**
|
|
@@ -3567,22 +3771,22 @@ type OakResourcesAccordionProps = {
|
|
|
3567
3771
|
* OakResourcesAccordion renamed from OakDownloadsAccordion.
|
|
3568
3772
|
*
|
|
3569
3773
|
*/
|
|
3570
|
-
declare const OakResourcesAccordion: ({ initialOpen, ...props }: OakResourcesAccordionProps) =>
|
|
3774
|
+
declare const OakResourcesAccordion: ({ initialOpen, ...props }: OakResourcesAccordionProps) => React__default.JSX.Element;
|
|
3571
3775
|
|
|
3572
3776
|
type OakInlineRegistrationBannerProps = {
|
|
3573
3777
|
onSubmit: (email: string) => Promise<string | undefined>;
|
|
3574
|
-
headerText:
|
|
3575
|
-
bodyText:
|
|
3778
|
+
headerText: React__default.ReactNode;
|
|
3779
|
+
bodyText: React__default.ReactNode;
|
|
3576
3780
|
} & ColorStyleProps & BorderStyleProps;
|
|
3577
|
-
declare const OakInlineRegistrationBanner: (props: OakInlineRegistrationBannerProps) =>
|
|
3781
|
+
declare const OakInlineRegistrationBanner: (props: OakInlineRegistrationBannerProps) => React__default.JSX.Element;
|
|
3578
3782
|
|
|
3579
3783
|
type OakTeacherNotesInlineProps = {
|
|
3580
3784
|
sanitizedHtml?: string | TrustedHTML;
|
|
3581
3785
|
};
|
|
3582
|
-
declare const OakTeacherNotesInline: ({ sanitizedHtml, }: OakTeacherNotesInlineProps) =>
|
|
3786
|
+
declare const OakTeacherNotesInline: ({ sanitizedHtml, }: OakTeacherNotesInlineProps) => React__default.JSX.Element;
|
|
3583
3787
|
|
|
3584
3788
|
type EditorContainerProps = {
|
|
3585
|
-
editorNode:
|
|
3789
|
+
editorNode: React__default.ReactNode;
|
|
3586
3790
|
onBoldClick: () => void;
|
|
3587
3791
|
onBulletListClick: () => void;
|
|
3588
3792
|
isBold: boolean;
|
|
@@ -3598,9 +3802,9 @@ type OakTeacherNotesModalProps = {
|
|
|
3598
3802
|
error?: boolean;
|
|
3599
3803
|
termsAndConditionsHref: string;
|
|
3600
3804
|
shareLinkDisabled?: boolean;
|
|
3601
|
-
footer?:
|
|
3805
|
+
footer?: React__default.ReactNode;
|
|
3602
3806
|
} & EditorContainerProps;
|
|
3603
|
-
declare const OakTeacherNotesModal: ({ isOpen, onClose, onShareClicked, progressSaved, noteShared, error, termsAndConditionsHref, shareLinkDisabled, footer, ...rest }: OakTeacherNotesModalProps) =>
|
|
3807
|
+
declare const OakTeacherNotesModal: ({ isOpen, onClose, onShareClicked, progressSaved, noteShared, error, termsAndConditionsHref, shareLinkDisabled, footer, ...rest }: OakTeacherNotesModalProps) => React__default.JSX.Element;
|
|
3604
3808
|
|
|
3605
3809
|
type OakTertiaryOLNavProps = {
|
|
3606
3810
|
title?: string;
|
|
@@ -3610,9 +3814,9 @@ type OakTertiaryOLNavProps = {
|
|
|
3610
3814
|
}[];
|
|
3611
3815
|
ariaLabel?: string;
|
|
3612
3816
|
anchorTarget?: string;
|
|
3613
|
-
onClick?: (event:
|
|
3817
|
+
onClick?: (event: React__default.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
3614
3818
|
};
|
|
3615
|
-
declare const OakTertiaryOLNav: ({ items, ariaLabel, title, anchorTarget, onClick, ...rest }: OakTertiaryOLNavProps) =>
|
|
3819
|
+
declare const OakTertiaryOLNav: ({ items, ariaLabel, title, anchorTarget, onClick, ...rest }: OakTertiaryOLNavProps) => React__default.JSX.Element;
|
|
3616
3820
|
|
|
3617
3821
|
type OakPupilContentGuidance = {
|
|
3618
3822
|
contentguidanceLabel: string | null;
|
|
@@ -3672,7 +3876,7 @@ declare const removedGuidanceDuplicates: (contentGuidance?: OakPupilContentGuida
|
|
|
3672
3876
|
* - **declineText** \- The text to be displayed on the decline button
|
|
3673
3877
|
* - **declineIcon** \- The icon to be displayed on the decline button
|
|
3674
3878
|
*/
|
|
3675
|
-
declare const OakPupilJourneyContentGuidance: ({ isOpen, onAccept, onDecline, title, contentGuidance, supervisionLevel, acceptText, declineText, declineIcon, }: OakPupilJourneyContentGuidanceProps) =>
|
|
3879
|
+
declare const OakPupilJourneyContentGuidance: ({ isOpen, onAccept, onDecline, title, contentGuidance, supervisionLevel, acceptText, declineText, declineIcon, }: OakPupilJourneyContentGuidanceProps) => React__default.JSX.Element;
|
|
3676
3880
|
|
|
3677
3881
|
type OakSpanProps = ColorStyleProps & OpacityStyleProps & MarginStyleProps & PaddingStyleProps & BorderStyleProps & TypographyStyleProps & PositionStyleProps;
|
|
3678
3882
|
/**
|
|
@@ -3680,7 +3884,9 @@ type OakSpanProps = ColorStyleProps & OpacityStyleProps & MarginStyleProps & Pad
|
|
|
3680
3884
|
* ## Usage
|
|
3681
3885
|
* Use this component when you want to apply styles to a piece of inline text.
|
|
3682
3886
|
*/
|
|
3683
|
-
declare const OakSpan:
|
|
3887
|
+
declare const OakSpan: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Merged<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
3888
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
3889
|
+
}, OakSpanProps>> & string;
|
|
3684
3890
|
|
|
3685
3891
|
type OakBulletListProps = {
|
|
3686
3892
|
listItems: string[];
|
|
@@ -3688,7 +3894,7 @@ type OakBulletListProps = {
|
|
|
3688
3894
|
/**
|
|
3689
3895
|
* An inline bulleted list
|
|
3690
3896
|
*/
|
|
3691
|
-
declare const OakBulletList: (props: OakBulletListProps) =>
|
|
3897
|
+
declare const OakBulletList: (props: OakBulletListProps) => React__default.JSX.Element;
|
|
3692
3898
|
|
|
3693
3899
|
type OakPupilJourneyHeaderProps = {
|
|
3694
3900
|
title: string;
|
|
@@ -3705,7 +3911,7 @@ type OakPupilJourneyHeaderProps = {
|
|
|
3705
3911
|
*
|
|
3706
3912
|
*
|
|
3707
3913
|
*/
|
|
3708
|
-
declare const OakPupilJourneyHeader: ({ iconBackground, title, iconName, alt, breadcrumbs, optionalityTitle, }: OakPupilJourneyHeaderProps) =>
|
|
3914
|
+
declare const OakPupilJourneyHeader: ({ iconBackground, title, iconName, alt, breadcrumbs, optionalityTitle, }: OakPupilJourneyHeaderProps) => React__default.JSX.Element;
|
|
3709
3915
|
|
|
3710
3916
|
type PupilJourneySectionName = "tier-listing" | "examboard-listing" | "unit-listing" | "lesson-listing" | "subject-listing" | "year-listing";
|
|
3711
3917
|
type Phase$1 = "primary" | "secondary";
|
|
@@ -3722,15 +3928,15 @@ type OakPupilJourneyLayoutProps = {
|
|
|
3722
3928
|
*
|
|
3723
3929
|
* the sections of the page are passed in as props and children
|
|
3724
3930
|
*/
|
|
3725
|
-
declare const OakPupilJourneyLayout: ({ sectionName, topNavSlot, phase, children, }: OakPupilJourneyLayoutProps) =>
|
|
3931
|
+
declare const OakPupilJourneyLayout: ({ sectionName, topNavSlot, phase, children, }: OakPupilJourneyLayoutProps) => React__default.JSX.Element;
|
|
3726
3932
|
declare function getBackgroundUrlForSection(sectionName: PupilJourneySectionName, phase?: Phase$1): string;
|
|
3727
3933
|
|
|
3728
3934
|
type OakPupilJourneyListProps = {
|
|
3729
|
-
children:
|
|
3935
|
+
children: React__default.ReactNode;
|
|
3730
3936
|
phase: "primary" | "secondary";
|
|
3731
|
-
titleSlot?:
|
|
3732
|
-
filterSlot?:
|
|
3733
|
-
subheadingSlot:
|
|
3937
|
+
titleSlot?: React__default.ReactNode;
|
|
3938
|
+
filterSlot?: React__default.ReactNode;
|
|
3939
|
+
subheadingSlot: React__default.ReactNode;
|
|
3734
3940
|
};
|
|
3735
3941
|
/**
|
|
3736
3942
|
*
|
|
@@ -3738,14 +3944,14 @@ type OakPupilJourneyListProps = {
|
|
|
3738
3944
|
*
|
|
3739
3945
|
*
|
|
3740
3946
|
*/
|
|
3741
|
-
declare const OakPupilJourneyList: ({ children, phase, titleSlot, subheadingSlot, filterSlot, }: OakPupilJourneyListProps) =>
|
|
3947
|
+
declare const OakPupilJourneyList: ({ children, phase, titleSlot, subheadingSlot, filterSlot, }: OakPupilJourneyListProps) => React__default.JSX.Element;
|
|
3742
3948
|
|
|
3743
3949
|
type OakPupilJourneyListCounterProps = {
|
|
3744
3950
|
count: number;
|
|
3745
3951
|
countHeader: string;
|
|
3746
3952
|
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
3747
3953
|
};
|
|
3748
|
-
declare const OakPupilJourneyListCounter: (props: OakPupilJourneyListCounterProps) =>
|
|
3954
|
+
declare const OakPupilJourneyListCounter: (props: OakPupilJourneyListCounterProps) => React__default.JSX.Element;
|
|
3749
3955
|
|
|
3750
3956
|
type OakPupilJourneyListItemProps<C extends ElementType> = {
|
|
3751
3957
|
as?: C;
|
|
@@ -3764,10 +3970,10 @@ type OakPupilJourneyListItemProps<C extends ElementType> = {
|
|
|
3764
3970
|
/**
|
|
3765
3971
|
* Enables navigation to the given section of a lesson as well as displaying current progress
|
|
3766
3972
|
*/
|
|
3767
|
-
declare const OakPupilJourneyListItem: <C extends ElementType = "a">(props: OakPupilJourneyListItemProps<C>) =>
|
|
3973
|
+
declare const OakPupilJourneyListItem: <C extends ElementType = "a">(props: OakPupilJourneyListItemProps<C>) => React__default.JSX.Element;
|
|
3768
3974
|
|
|
3769
3975
|
type OakPupilJourneyListItemSubheadingProps = {
|
|
3770
|
-
textSlot?:
|
|
3976
|
+
textSlot?: React__default.ReactNode;
|
|
3771
3977
|
} & OakBulletListProps;
|
|
3772
3978
|
/**
|
|
3773
3979
|
* This component displays a heading for the previous lessons
|
|
@@ -3777,7 +3983,7 @@ type OakPupilJourneyListItemSubheadingProps = {
|
|
|
3777
3983
|
* textSlot? - Can pass if any react node, but <OakPupilJourneyListCounter /> is recommended
|
|
3778
3984
|
*
|
|
3779
3985
|
*/
|
|
3780
|
-
declare const OakPupilJourneyListItemSubheading: (props: OakPupilJourneyListItemSubheadingProps) =>
|
|
3986
|
+
declare const OakPupilJourneyListItemSubheading: (props: OakPupilJourneyListItemSubheadingProps) => React__default.JSX.Element;
|
|
3781
3987
|
|
|
3782
3988
|
type OakPupilJourneyOptionalityButtonProps<C extends ElementType> = {
|
|
3783
3989
|
/**
|
|
@@ -3794,10 +4000,10 @@ type OakPupilJourneyOptionalityButtonProps<C extends ElementType> = {
|
|
|
3794
4000
|
/**
|
|
3795
4001
|
* Button for units with optionality it is only used as the child of the PupilJourneyOptionailityitem component
|
|
3796
4002
|
*/
|
|
3797
|
-
declare const OakPupilJourneyOptionalityButton: <C extends ElementType = "a">(props: OakPupilJourneyOptionalityButtonProps<C>) =>
|
|
4003
|
+
declare const OakPupilJourneyOptionalityButton: <C extends ElementType = "a">(props: OakPupilJourneyOptionalityButtonProps<C>) => React__default.JSX.Element;
|
|
3798
4004
|
|
|
3799
4005
|
type OakPupilJourneyOptionalityItemProps = {
|
|
3800
|
-
children:
|
|
4006
|
+
children: React__default.ReactNode;
|
|
3801
4007
|
index: number;
|
|
3802
4008
|
title: string;
|
|
3803
4009
|
unavailable?: boolean;
|
|
@@ -3808,13 +4014,13 @@ type OakPupilJourneyOptionalityItemProps = {
|
|
|
3808
4014
|
* OakPupilJourneyOptionalityItem is a styled container to be used for units with optionality, OakPupilJourneyOptionalityButton should be used as children
|
|
3809
4015
|
*
|
|
3810
4016
|
*/
|
|
3811
|
-
declare const OakPupilJourneyOptionalityItem: (props: OakPupilJourneyOptionalityItemProps) =>
|
|
4017
|
+
declare const OakPupilJourneyOptionalityItem: (props: OakPupilJourneyOptionalityItemProps) => React__default.JSX.Element;
|
|
3812
4018
|
|
|
3813
4019
|
type OakPupilJourneyProgrammeOptionsProps = {
|
|
3814
|
-
children:
|
|
4020
|
+
children: React__default.ReactNode;
|
|
3815
4021
|
phase: "primary" | "secondary";
|
|
3816
|
-
titleSlot?:
|
|
3817
|
-
optionTitleSlot:
|
|
4022
|
+
titleSlot?: React__default.ReactNode;
|
|
4023
|
+
optionTitleSlot: React__default.ReactNode;
|
|
3818
4024
|
};
|
|
3819
4025
|
/**
|
|
3820
4026
|
*
|
|
@@ -3822,7 +4028,7 @@ type OakPupilJourneyProgrammeOptionsProps = {
|
|
|
3822
4028
|
*
|
|
3823
4029
|
*
|
|
3824
4030
|
*/
|
|
3825
|
-
declare const OakPupilJourneyProgrammeOptions: ({ children, phase, titleSlot, optionTitleSlot, }: OakPupilJourneyProgrammeOptionsProps) =>
|
|
4031
|
+
declare const OakPupilJourneyProgrammeOptions: ({ children, phase, titleSlot, optionTitleSlot, }: OakPupilJourneyProgrammeOptionsProps) => React__default.JSX.Element;
|
|
3826
4032
|
|
|
3827
4033
|
type MenuItem = {
|
|
3828
4034
|
displayText: string;
|
|
@@ -3844,7 +4050,7 @@ type OakPupilJourneyUnitsFilterProps = {
|
|
|
3844
4050
|
* onSelected: Callback when a menu item is selected, takes the selected item as an argument
|
|
3845
4051
|
*
|
|
3846
4052
|
*/
|
|
3847
|
-
declare const OakPupilJourneyUnitsFilter: (props: OakPupilJourneyUnitsFilterProps) =>
|
|
4053
|
+
declare const OakPupilJourneyUnitsFilter: (props: OakPupilJourneyUnitsFilterProps) => React__default.JSX.Element;
|
|
3848
4054
|
|
|
3849
4055
|
type OakPupilJourneyYearButtonProps = {
|
|
3850
4056
|
phase: "primary" | "secondary";
|
|
@@ -3863,7 +4069,7 @@ type OakPupilJourneyYearButtonProps = {
|
|
|
3863
4069
|
* `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>
|
|
3864
4070
|
* called after a mouseEnter and mouseLeave event has happened
|
|
3865
4071
|
*/
|
|
3866
|
-
declare const OakPupilJourneyYearButton: <C extends ElementType = "button">({ phase, element, ...rest }: OakPupilJourneyYearButtonProps & PolymorphicPropsWithoutRef<C>) =>
|
|
4072
|
+
declare const OakPupilJourneyYearButton: <C extends ElementType = "button">({ phase, element, ...rest }: OakPupilJourneyYearButtonProps & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
|
|
3867
4073
|
|
|
3868
4074
|
type OakQuizHintProps = {
|
|
3869
4075
|
/**
|
|
@@ -3878,7 +4084,7 @@ type OakQuizHintProps = {
|
|
|
3878
4084
|
/**
|
|
3879
4085
|
* Presents a button which will show a hint when clicked
|
|
3880
4086
|
*/
|
|
3881
|
-
declare const OakQuizHint: ({ hint, id, hintToggled }: OakQuizHintProps) =>
|
|
4087
|
+
declare const OakQuizHint: ({ hint, id, hintToggled }: OakQuizHintProps) => React__default.JSX.Element;
|
|
3882
4088
|
|
|
3883
4089
|
type OakQuizFeedbackProps = {
|
|
3884
4090
|
/**
|
|
@@ -3898,7 +4104,7 @@ type OakQuizFeedbackProps = {
|
|
|
3898
4104
|
/**
|
|
3899
4105
|
* Gives feedback after a question has been answered
|
|
3900
4106
|
*/
|
|
3901
|
-
declare const OakQuizFeedback: ({ feedback, answerFeedback, }: OakQuizFeedbackProps) =>
|
|
4107
|
+
declare const OakQuizFeedback: ({ feedback, answerFeedback, }: OakQuizFeedbackProps) => React__default.JSX.Element;
|
|
3902
4108
|
|
|
3903
4109
|
type OakLessonBottomNavProps = {
|
|
3904
4110
|
children?: ReactNode;
|
|
@@ -3912,7 +4118,7 @@ type OakLessonBottomNavProps = {
|
|
|
3912
4118
|
/**
|
|
3913
4119
|
* Renders feedback for an answer and onward navigation buttons to continue the lesson
|
|
3914
4120
|
*/
|
|
3915
|
-
declare const OakLessonBottomNav: ({ hint, hintToggled, feedback, answerFeedback, children, }: OakLessonBottomNavProps) =>
|
|
4121
|
+
declare const OakLessonBottomNav: ({ hint, hintToggled, feedback, answerFeedback, children, }: OakLessonBottomNavProps) => React__default.JSX.Element;
|
|
3916
4122
|
|
|
3917
4123
|
declare const lessonSectionNames: string[];
|
|
3918
4124
|
type LessonSectionName$1 = (typeof lessonSectionNames)[number];
|
|
@@ -3928,7 +4134,7 @@ type OakLessonLayoutProps = {
|
|
|
3928
4134
|
/**
|
|
3929
4135
|
* Provides overall page layout and colours for the sections of a lesson.
|
|
3930
4136
|
*/
|
|
3931
|
-
declare const OakLessonLayout: ({ lessonSectionName, phase, celebrate, topNavSlot, bottomNavSlot, children, }: OakLessonLayoutProps) =>
|
|
4137
|
+
declare const OakLessonLayout: ({ lessonSectionName, phase, celebrate, topNavSlot, bottomNavSlot, children, }: OakLessonLayoutProps) => React__default.JSX.Element;
|
|
3932
4138
|
|
|
3933
4139
|
type BaseOakLessonNavItemProps<C extends ElementType> = {
|
|
3934
4140
|
as?: C;
|
|
@@ -3968,7 +4174,7 @@ type OakLessonNavItemProps<C extends ElementType> = BaseOakLessonNavItemProps<C>
|
|
|
3968
4174
|
/**
|
|
3969
4175
|
* Enables navigation to the given section of a lesson as well as displaying current progress
|
|
3970
4176
|
*/
|
|
3971
|
-
declare const OakLessonNavItem: <C extends ElementType = "a">(props: OakLessonNavItemProps<C>) =>
|
|
4177
|
+
declare const OakLessonNavItem: <C extends ElementType = "a">(props: OakLessonNavItemProps<C>) => React__default.JSX.Element;
|
|
3972
4178
|
|
|
3973
4179
|
type LessonSectionName = "intro" | "video";
|
|
3974
4180
|
type BaseOakLessonReviewItemProps$1 = {
|
|
@@ -3983,10 +4189,11 @@ type IntroSectionProps$1 = {
|
|
|
3983
4189
|
type OakLessonReviewIntroVideoProps = BaseOakLessonReviewItemProps$1 & {
|
|
3984
4190
|
lessonSectionName: LessonSectionName;
|
|
3985
4191
|
} & (IntroSectionProps$1 | VideoSectionProps$1);
|
|
3986
|
-
declare const OakLessonReviewIntroVideo: (props: OakLessonReviewIntroVideoProps) =>
|
|
4192
|
+
declare const OakLessonReviewIntroVideo: (props: OakLessonReviewIntroVideoProps) => React__default.JSX.Element;
|
|
3987
4193
|
|
|
3988
4194
|
type BaseOakLessonReviewItemProps = {
|
|
3989
4195
|
completed: boolean;
|
|
4196
|
+
"data-testid"?: string;
|
|
3990
4197
|
};
|
|
3991
4198
|
type QuizSectionProps = {
|
|
3992
4199
|
lessonSectionName: "starter-quiz" | "exit-quiz";
|
|
@@ -4006,7 +4213,7 @@ type IntroSectionProps = {
|
|
|
4006
4213
|
lessonSectionName: "intro";
|
|
4007
4214
|
};
|
|
4008
4215
|
type OakLessonReviewItemProps = BaseOakLessonReviewItemProps & (IntroSectionProps | QuizSectionProps | VideoSectionProps);
|
|
4009
|
-
declare const OakLessonReviewItem: (props: OakLessonReviewItemProps) =>
|
|
4216
|
+
declare const OakLessonReviewItem: (props: OakLessonReviewItemProps) => React__default.JSX.Element;
|
|
4010
4217
|
|
|
4011
4218
|
type LessonQuizName = "starter-quiz" | "exit-quiz";
|
|
4012
4219
|
type OakLessonReviewQuizProps = {
|
|
@@ -4023,21 +4230,23 @@ type OakLessonReviewQuizProps = {
|
|
|
4023
4230
|
/**
|
|
4024
4231
|
* You MUST use the OakLessonExpandableReviewItem as the container component for this slot
|
|
4025
4232
|
*/
|
|
4026
|
-
resultsSlot?:
|
|
4233
|
+
resultsSlot?: React__default.ReactNode;
|
|
4234
|
+
"data-testid"?: string;
|
|
4027
4235
|
};
|
|
4028
4236
|
type OakLessonReviewItemContainerProps = {
|
|
4029
4237
|
$background?: OakUiRoleToken;
|
|
4030
4238
|
$borderColor?: OakUiRoleToken;
|
|
4031
|
-
children:
|
|
4239
|
+
children: React__default.ReactNode;
|
|
4240
|
+
"data-testid"?: string;
|
|
4032
4241
|
};
|
|
4033
|
-
declare const ReviewItemContainer: (props: OakLessonReviewItemContainerProps) =>
|
|
4242
|
+
declare const ReviewItemContainer: (props: OakLessonReviewItemContainerProps) => React__default.JSX.Element;
|
|
4034
4243
|
type ReviewItemTitleSectionProps = {
|
|
4035
4244
|
sectionHeader: string;
|
|
4036
4245
|
completed: boolean;
|
|
4037
4246
|
summaryForIncomplete: ReactNode;
|
|
4038
4247
|
};
|
|
4039
|
-
declare const ReviewItemTitleSection: (props: ReviewItemTitleSectionProps) =>
|
|
4040
|
-
declare const OakLessonReviewQuiz: (props: OakLessonReviewQuizProps) =>
|
|
4248
|
+
declare const ReviewItemTitleSection: (props: ReviewItemTitleSectionProps) => React__default.JSX.Element;
|
|
4249
|
+
declare const OakLessonReviewQuiz: (props: OakLessonReviewQuizProps) => React__default.JSX.Element;
|
|
4041
4250
|
|
|
4042
4251
|
type LessonTopNavSectionName = Omit<LessonSectionName$1, "overview" | "review">;
|
|
4043
4252
|
type OakLessonTopNavProps = {
|
|
@@ -4060,7 +4269,7 @@ type OakLessonTopNavProps = {
|
|
|
4060
4269
|
/**
|
|
4061
4270
|
* Controls for navigating back and displaying progress in a lesson
|
|
4062
4271
|
*/
|
|
4063
|
-
declare const OakLessonTopNav: ({ lessonSectionName, backLinkSlot, counterSlot, heading, mobileSummary, }: OakLessonTopNavProps) =>
|
|
4272
|
+
declare const OakLessonTopNav: ({ lessonSectionName, backLinkSlot, counterSlot, heading, mobileSummary, }: OakLessonTopNavProps) => React__default.JSX.Element;
|
|
4064
4273
|
|
|
4065
4274
|
type OakLessonVideoTranscriptProps = {
|
|
4066
4275
|
/**
|
|
@@ -4082,7 +4291,7 @@ type OakLessonVideoTranscriptProps = {
|
|
|
4082
4291
|
/**
|
|
4083
4292
|
* Display a togglable video transcript with a slot to display a sign language control
|
|
4084
4293
|
*/
|
|
4085
|
-
declare const OakLessonVideoTranscript: ({ children, id, signLanguageControl, transcriptToggled, }: OakLessonVideoTranscriptProps) =>
|
|
4294
|
+
declare const OakLessonVideoTranscript: ({ children, id, signLanguageControl, transcriptToggled, }: OakLessonVideoTranscriptProps) => React__default.JSX.Element;
|
|
4086
4295
|
|
|
4087
4296
|
type OakHintButtonProps = {
|
|
4088
4297
|
isOpen: boolean;
|
|
@@ -4104,13 +4313,13 @@ type OakHintButtonProps = {
|
|
|
4104
4313
|
* `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>
|
|
4105
4314
|
* called after a mouseEnter and mouseLeave event has happened
|
|
4106
4315
|
*/
|
|
4107
|
-
declare const OakHintButton: (props: OakHintButtonProps) =>
|
|
4316
|
+
declare const OakHintButton: (props: OakHintButtonProps) => React__default.JSX.Element;
|
|
4108
4317
|
|
|
4109
4318
|
type OakQuizCheckBoxProps = Omit<BaseCheckBoxProps, "defaultChecked"> & {
|
|
4110
4319
|
feedback?: "correct" | "incorrect" | null;
|
|
4111
|
-
image?:
|
|
4112
|
-
innerRef?:
|
|
4113
|
-
displayValue?: string |
|
|
4320
|
+
image?: React__default.JSX.Element;
|
|
4321
|
+
innerRef?: React__default.RefObject<HTMLInputElement>;
|
|
4322
|
+
displayValue?: string | React__default.JSX.Element;
|
|
4114
4323
|
/**
|
|
4115
4324
|
* Give the field a highlight to draw attention to it
|
|
4116
4325
|
*/
|
|
@@ -4119,7 +4328,7 @@ type OakQuizCheckBoxProps = Omit<BaseCheckBoxProps, "defaultChecked"> & {
|
|
|
4119
4328
|
/**
|
|
4120
4329
|
* A checkbox representing the options in a multiple choice question.
|
|
4121
4330
|
*/
|
|
4122
|
-
declare const OakQuizCheckBox: (props: OakQuizCheckBoxProps) =>
|
|
4331
|
+
declare const OakQuizCheckBox: (props: OakQuizCheckBoxProps) => React__default.JSX.Element;
|
|
4123
4332
|
|
|
4124
4333
|
type OakQuizCounterProps = {
|
|
4125
4334
|
counter: number;
|
|
@@ -4128,7 +4337,7 @@ type OakQuizCounterProps = {
|
|
|
4128
4337
|
/**
|
|
4129
4338
|
* A counter representing progress through the questions in a quiz
|
|
4130
4339
|
*/
|
|
4131
|
-
declare const OakQuizCounter: (props: OakQuizCounterProps) =>
|
|
4340
|
+
declare const OakQuizCounter: (props: OakQuizCounterProps) => React__default.JSX.Element;
|
|
4132
4341
|
|
|
4133
4342
|
declare const OakQuizMatchItemId: (id: string) => string;
|
|
4134
4343
|
type DraggableItem = {
|
|
@@ -4173,7 +4382,7 @@ type OakQuizMatchProps = {
|
|
|
4173
4382
|
*
|
|
4174
4383
|
* Keyboard navigation is supported with the `tab`, `space` and `arrow` keys
|
|
4175
4384
|
*/
|
|
4176
|
-
declare const OakQuizMatch: ({ initialOptions, initialSlots, isHighlighted, onChange, }: OakQuizMatchProps) =>
|
|
4385
|
+
declare const OakQuizMatch: ({ initialOptions, initialSlots, isHighlighted, onChange, }: OakQuizMatchProps) => React__default.JSX.Element;
|
|
4177
4386
|
declare const announcements: Announcements;
|
|
4178
4387
|
|
|
4179
4388
|
type OakQuizOrderItem = {
|
|
@@ -4203,7 +4412,7 @@ type OakQuizOrderProps = {
|
|
|
4203
4412
|
*
|
|
4204
4413
|
* Keyboard navigation is supported with the `tab`, `space` and `arrow` keys
|
|
4205
4414
|
*/
|
|
4206
|
-
declare const OakQuizOrder: ({ initialItems, announcements, onChange, isHighlighted, }: OakQuizOrderProps) =>
|
|
4415
|
+
declare const OakQuizOrder: ({ initialItems, announcements, onChange, isHighlighted, }: OakQuizOrderProps) => React__default.JSX.Element;
|
|
4207
4416
|
|
|
4208
4417
|
type OakQuizPrintableHeaderProps = {
|
|
4209
4418
|
title: string;
|
|
@@ -4221,7 +4430,7 @@ type OakQuizPrintableHeaderProps = {
|
|
|
4221
4430
|
*
|
|
4222
4431
|
*
|
|
4223
4432
|
*/
|
|
4224
|
-
declare const OakQuizPrintableHeader: ({ title, iconName, alt, breadcrumbs, worksheetDownloaded, workSheetAvailable, videoPercentage, }: OakQuizPrintableHeaderProps) =>
|
|
4433
|
+
declare const OakQuizPrintableHeader: ({ title, iconName, alt, breadcrumbs, worksheetDownloaded, workSheetAvailable, videoPercentage, }: OakQuizPrintableHeaderProps) => React__default.JSX.Element;
|
|
4225
4434
|
|
|
4226
4435
|
type OakQuizPrintableSubHeaderProps = {
|
|
4227
4436
|
title: string;
|
|
@@ -4235,7 +4444,7 @@ type OakQuizPrintableSubHeaderProps = {
|
|
|
4235
4444
|
*
|
|
4236
4445
|
*
|
|
4237
4446
|
*/
|
|
4238
|
-
declare const OakQuizPrintableSubHeader: ({ title, grade, numQuestions, attempts, }: OakQuizPrintableSubHeaderProps) =>
|
|
4447
|
+
declare const OakQuizPrintableSubHeader: ({ title, grade, numQuestions, attempts, }: OakQuizPrintableSubHeaderProps) => React__default.JSX.Element;
|
|
4239
4448
|
|
|
4240
4449
|
type OakQuizRadioButtonProps = OakRadioButtonProps & {
|
|
4241
4450
|
/**
|
|
@@ -4256,7 +4465,7 @@ type OakQuizRadioButtonProps = OakRadioButtonProps & {
|
|
|
4256
4465
|
*
|
|
4257
4466
|
* Use with `OakRadioGroup` to create a group of radio buttons.
|
|
4258
4467
|
*/
|
|
4259
|
-
declare const OakQuizRadioButton: (props: OakQuizRadioButtonProps) =>
|
|
4468
|
+
declare const OakQuizRadioButton: (props: OakQuizRadioButtonProps) => React__default.JSX.Element;
|
|
4260
4469
|
|
|
4261
4470
|
type InternalQuizResultItemProps = {
|
|
4262
4471
|
feedbackState?: "correct" | "incorrect" | null;
|
|
@@ -4275,7 +4484,7 @@ type InternalQuizResultItemProps = {
|
|
|
4275
4484
|
*
|
|
4276
4485
|
* NB. We must export a styled component for it to be inheritable
|
|
4277
4486
|
*/
|
|
4278
|
-
declare const OakQuizResultItem: ({ standardText, boldPrefixText, feedbackState, imageURL, imageAlt, }: InternalQuizResultItemProps) =>
|
|
4487
|
+
declare const OakQuizResultItem: ({ standardText, boldPrefixText, feedbackState, imageURL, imageAlt, }: InternalQuizResultItemProps) => React__default.JSX.Element;
|
|
4279
4488
|
|
|
4280
4489
|
type OakQuizTextInputProps = Omit<OakTextInputProps, "validity" | "iconName" | "iconAlt" | "isTrailingIcon"> & {
|
|
4281
4490
|
/**
|
|
@@ -4287,7 +4496,7 @@ type OakQuizTextInputProps = Omit<OakTextInputProps, "validity" | "iconName" | "
|
|
|
4287
4496
|
/**
|
|
4288
4497
|
* A text input for a free-text question in a quiz
|
|
4289
4498
|
*/
|
|
4290
|
-
declare const OakQuizTextInput: ({ feedback, readOnly, ...props }: OakQuizTextInputProps) =>
|
|
4499
|
+
declare const OakQuizTextInput: ({ feedback, readOnly, ...props }: OakQuizTextInputProps) => React__default.JSX.Element;
|
|
4291
4500
|
|
|
4292
4501
|
type OakUnitListItemProps<element extends ElementType> = {
|
|
4293
4502
|
unavailable?: boolean;
|
|
@@ -4297,15 +4506,15 @@ type OakUnitListItemProps<element extends ElementType> = {
|
|
|
4297
4506
|
lessonCount: string | null;
|
|
4298
4507
|
isLegacy: boolean;
|
|
4299
4508
|
href: string;
|
|
4300
|
-
firstItemRef?:
|
|
4301
|
-
onClick?: (event:
|
|
4509
|
+
firstItemRef?: React__default.Ref<any>;
|
|
4510
|
+
onClick?: (event: React__default.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
4302
4511
|
as?: element;
|
|
4303
4512
|
};
|
|
4304
4513
|
/**
|
|
4305
4514
|
*
|
|
4306
4515
|
* OakUnitsListItem component used as links for unit cards
|
|
4307
4516
|
*/
|
|
4308
|
-
declare const OakUnitListItem: <element extends ElementType = "a">(props: OakUnitListItemProps<element>) =>
|
|
4517
|
+
declare const OakUnitListItem: <element extends ElementType = "a">(props: OakUnitListItemProps<element>) => React__default.JSX.Element;
|
|
4309
4518
|
|
|
4310
4519
|
type OakUnitListOptionalityItemProps = {
|
|
4311
4520
|
unavailable?: boolean;
|
|
@@ -4321,7 +4530,7 @@ type OakUnitListOptionalityItemProps = {
|
|
|
4321
4530
|
slug: string;
|
|
4322
4531
|
href: string;
|
|
4323
4532
|
lessonCount: string;
|
|
4324
|
-
onClick?: (event:
|
|
4533
|
+
onClick?: (event: React__default.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
4325
4534
|
firstItemRef?: MutableRefObject<HTMLAnchorElement | null> | null | undefined;
|
|
4326
4535
|
}[];
|
|
4327
4536
|
};
|
|
@@ -4329,7 +4538,7 @@ type OakUnitListOptionalityItemProps = {
|
|
|
4329
4538
|
*
|
|
4330
4539
|
* OakUnitsListOptionalityItem component used as links for unit cards with optionality
|
|
4331
4540
|
*/
|
|
4332
|
-
declare const OakUnitListOptionalityItem: (props: OakUnitListOptionalityItemProps) =>
|
|
4541
|
+
declare const OakUnitListOptionalityItem: (props: OakUnitListOptionalityItemProps) => React__default.JSX.Element;
|
|
4333
4542
|
|
|
4334
4543
|
type OakBackLinkProps<C extends ElementType> = {
|
|
4335
4544
|
as?: C;
|
|
@@ -4346,7 +4555,7 @@ type OakBackLinkProps<C extends ElementType> = {
|
|
|
4346
4555
|
* * Button `<OakBackLink as="button" onClick={() => goBack(-1)} />`
|
|
4347
4556
|
*
|
|
4348
4557
|
*/
|
|
4349
|
-
declare const OakBackLink: <C extends ElementType = "a">({ as, label, ...props }: OakBackLinkProps<C>) =>
|
|
4558
|
+
declare const OakBackLink: <C extends ElementType = "a">({ as, label, ...props }: OakBackLinkProps<C>) => React__default.JSX.Element;
|
|
4350
4559
|
|
|
4351
4560
|
type InternalCardProps = OakFlexProps;
|
|
4352
4561
|
|
|
@@ -4364,7 +4573,7 @@ type OakCardWithHandDrawnBorderProps = Omit<InternalCardWithBackgroundElementPro
|
|
|
4364
4573
|
*
|
|
4365
4574
|
* An optional `stroke` and `fill` can be applied to change the color of the border
|
|
4366
4575
|
*/
|
|
4367
|
-
declare const OakCardWithHandDrawnBorder: ({ $pa, fill, stroke, $width, ...props }: OakCardWithHandDrawnBorderProps) =>
|
|
4576
|
+
declare const OakCardWithHandDrawnBorder: ({ $pa, fill, stroke, $width, ...props }: OakCardWithHandDrawnBorderProps) => React__default.JSX.Element;
|
|
4368
4577
|
|
|
4369
4578
|
type OakCopyLinkButtonProps = {
|
|
4370
4579
|
/**
|
|
@@ -4375,7 +4584,7 @@ type OakCopyLinkButtonProps = {
|
|
|
4375
4584
|
/**
|
|
4376
4585
|
* Display copy link button
|
|
4377
4586
|
*/
|
|
4378
|
-
declare const OakCopyLinkButton: ({ href }: OakCopyLinkButtonProps) =>
|
|
4587
|
+
declare const OakCopyLinkButton: ({ href }: OakCopyLinkButtonProps) => React__default.JSX.Element;
|
|
4379
4588
|
|
|
4380
4589
|
type OakResourceCardProps = BaseCheckBoxProps & {
|
|
4381
4590
|
/**
|
|
@@ -4422,12 +4631,12 @@ type OakResourceCardProps = BaseCheckBoxProps & {
|
|
|
4422
4631
|
* Design document: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=14795-5603>\
|
|
4423
4632
|
* Updated with new standards: <https://www.figma.com/design/xIIH1NUk2IHKxgh5BW5gOd/Test-Oak-Component-Standards?node-id=66-905&p=f&m=dev>
|
|
4424
4633
|
*/
|
|
4425
|
-
declare const OakResourceCard: (props: OakResourceCardProps) =>
|
|
4634
|
+
declare const OakResourceCard: (props: OakResourceCardProps) => React__default.JSX.Element;
|
|
4426
4635
|
|
|
4427
4636
|
/**
|
|
4428
4637
|
* Displays instructions for drag and drop functionality
|
|
4429
4638
|
*/
|
|
4430
|
-
declare const OakDragAndDropInstructions: (props: ComponentPropsWithoutRef<typeof OakFlex>) =>
|
|
4639
|
+
declare const OakDragAndDropInstructions: (props: ComponentPropsWithoutRef<typeof OakFlex>) => React__default.JSX.Element;
|
|
4431
4640
|
|
|
4432
4641
|
type OakDraggableProps = {
|
|
4433
4642
|
/**
|
|
@@ -4469,7 +4678,12 @@ type OakDraggableProps = {
|
|
|
4469
4678
|
* The component has no intrinsic draggable functionality.
|
|
4470
4679
|
* It is intended to be used with `useDraggable` from `@dnd-kit/core`
|
|
4471
4680
|
*/
|
|
4472
|
-
declare const OakDraggable:
|
|
4681
|
+
declare const OakDraggable: React__default.ForwardRefExoticComponent<OakDraggableProps & Omit<styled_components.FastOmit<styled_components_dist_types.Merged<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
4682
|
+
style?: React__default.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
4683
|
+
}, OakBoxProps>, "as" | "forwardedAs"> & {
|
|
4684
|
+
as?: styled_components.WebTarget | undefined;
|
|
4685
|
+
forwardedAs?: styled_components.WebTarget | undefined;
|
|
4686
|
+
}, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
4473
4687
|
|
|
4474
4688
|
type OakDraggableFeedbackProps = ComponentPropsWithoutRef<typeof OakDraggable> & {
|
|
4475
4689
|
/**
|
|
@@ -4480,7 +4694,7 @@ type OakDraggableFeedbackProps = ComponentPropsWithoutRef<typeof OakDraggable> &
|
|
|
4480
4694
|
/**
|
|
4481
4695
|
* A draggable element that visually indicates whether or not its state is correct or not
|
|
4482
4696
|
*/
|
|
4483
|
-
declare const OakDraggableFeedback: ({ feedback, ...props }: OakDraggableFeedbackProps) =>
|
|
4697
|
+
declare const OakDraggableFeedback: ({ feedback, ...props }: OakDraggableFeedbackProps) => React__default.JSX.Element;
|
|
4484
4698
|
|
|
4485
4699
|
type OakDroppableProps = {
|
|
4486
4700
|
/**
|
|
@@ -4555,17 +4769,17 @@ interface OakFormInputWithLabelsProps {
|
|
|
4555
4769
|
/**
|
|
4556
4770
|
* Callback function that is called when the input value changes.
|
|
4557
4771
|
*/
|
|
4558
|
-
onChange?:
|
|
4772
|
+
onChange?: React__default.ChangeEventHandler<HTMLInputElement>;
|
|
4559
4773
|
/**
|
|
4560
4774
|
* Callback function that is called when the input is focused initially.
|
|
4561
4775
|
*/
|
|
4562
|
-
onInitialFocus?:
|
|
4776
|
+
onInitialFocus?: React__default.FocusEventHandler<HTMLInputElement>;
|
|
4563
4777
|
/**
|
|
4564
4778
|
* Callback function that is called when the input loses focus.
|
|
4565
4779
|
*/
|
|
4566
|
-
onBlur?:
|
|
4780
|
+
onBlur?: React__default.FocusEventHandler<HTMLInputElement>;
|
|
4567
4781
|
}
|
|
4568
|
-
declare const OakFormInputWithLabels: ({ label, helperText, placeholder, invalid, invalidText, value, inputName, disabled, required, defaultValue, onChange, onInitialFocus, onBlur, }: OakFormInputWithLabelsProps) =>
|
|
4782
|
+
declare const OakFormInputWithLabels: ({ label, helperText, placeholder, invalid, invalidText, value, inputName, disabled, required, defaultValue, onChange, onInitialFocus, onBlur, }: OakFormInputWithLabelsProps) => React__default.JSX.Element;
|
|
4569
4783
|
|
|
4570
4784
|
type OakHandDrawnCardProps = Omit<InternalCardWithBackgroundElementProps, "backgroundElement"> & {
|
|
4571
4785
|
fill?: InternalStyledSvgProps["$fill"];
|
|
@@ -4577,7 +4791,7 @@ type OakHandDrawnCardProps = Omit<InternalCardWithBackgroundElementProps, "backg
|
|
|
4577
4791
|
*
|
|
4578
4792
|
* An optional `stroke` and `strokeWidth` can be applied to give the background a border
|
|
4579
4793
|
*/
|
|
4580
|
-
declare const OakHandDrawnCard: ({ $pa, fill, stroke, strokeWidth, $width, ...props }: OakHandDrawnCardProps) =>
|
|
4794
|
+
declare const OakHandDrawnCard: ({ $pa, fill, stroke, strokeWidth, $width, ...props }: OakHandDrawnCardProps) => React__default.JSX.Element;
|
|
4581
4795
|
|
|
4582
4796
|
type OakHandDrawnBoxWithIconProps = Omit<OakHandDrawnCardProps, "children"> & {
|
|
4583
4797
|
iconName: OakIconProps["iconName"];
|
|
@@ -4589,7 +4803,7 @@ type OakHandDrawnBoxWithIconProps = Omit<OakHandDrawnCardProps, "children"> & {
|
|
|
4589
4803
|
/**
|
|
4590
4804
|
* A hand-drawn card with an icon in the center
|
|
4591
4805
|
*/
|
|
4592
|
-
declare const OakHandDrawnCardWithIcon: ({ iconName, iconColor, iconWidth, iconHeight, alt, $width, $height, $alignItems, $justifyContent, ...props }: OakHandDrawnBoxWithIconProps) =>
|
|
4806
|
+
declare const OakHandDrawnCardWithIcon: ({ iconName, iconColor, iconWidth, iconHeight, alt, $width, $height, $alignItems, $justifyContent, ...props }: OakHandDrawnBoxWithIconProps) => React__default.JSX.Element;
|
|
4593
4807
|
|
|
4594
4808
|
type OakInfoButtonProps = {
|
|
4595
4809
|
onClick: MouseEventHandler;
|
|
@@ -4604,24 +4818,24 @@ type OakInfoButtonProps = {
|
|
|
4604
4818
|
* onClick: MouseEventHandler
|
|
4605
4819
|
*
|
|
4606
4820
|
*/
|
|
4607
|
-
declare const OakInfoButton: (props: OakInfoButtonProps) =>
|
|
4821
|
+
declare const OakInfoButton: (props: OakInfoButtonProps) => React__default.JSX.Element;
|
|
4608
4822
|
|
|
4609
4823
|
type OakInfoCardProps = {
|
|
4610
|
-
children:
|
|
4824
|
+
children: React__default.ReactNode;
|
|
4611
4825
|
};
|
|
4612
4826
|
type OakCardHeaderprops = {
|
|
4613
4827
|
iconName: OakIconName;
|
|
4614
4828
|
tag: OakHeadingTag;
|
|
4615
4829
|
children: string;
|
|
4616
4830
|
};
|
|
4617
|
-
declare const OakCardHeader: (props: OakCardHeaderprops) =>
|
|
4831
|
+
declare const OakCardHeader: (props: OakCardHeaderprops) => React__default.JSX.Element;
|
|
4618
4832
|
/**
|
|
4619
4833
|
*
|
|
4620
4834
|
* OakLessonInfoCards are created using the custom card either oakLessoninfoCard or oakStaticMessageCard and the content is added as children. And use the oakCardHeader to create the header of the card.
|
|
4621
4835
|
*
|
|
4622
4836
|
*/
|
|
4623
|
-
declare const OakLessonInfoCard: (props: OakInfoCardProps) =>
|
|
4624
|
-
declare const OakStaticMessageCard: (props: OakInfoCardProps) =>
|
|
4837
|
+
declare const OakLessonInfoCard: (props: OakInfoCardProps) => React__default.JSX.Element;
|
|
4838
|
+
declare const OakStaticMessageCard: (props: OakInfoCardProps) => React__default.JSX.Element;
|
|
4625
4839
|
|
|
4626
4840
|
type OakLinkCardProps = {
|
|
4627
4841
|
/**
|
|
@@ -4677,7 +4891,7 @@ type OakLinkCardProps = {
|
|
|
4677
4891
|
* - **showNew** - Whether to display the "New" promo tag
|
|
4678
4892
|
* - **narrow** - Whether to display the card in a narrow layout
|
|
4679
4893
|
*/
|
|
4680
|
-
declare const OakLinkCard: ({ mainSection, iconName, iconAlt, iconColor, iconFill, href, showNew, hasAnimation, narrow, }: OakLinkCardProps) =>
|
|
4894
|
+
declare const OakLinkCard: ({ mainSection, iconName, iconAlt, iconColor, iconFill, href, showNew, hasAnimation, narrow, }: OakLinkCardProps) => React__default.JSX.Element;
|
|
4681
4895
|
|
|
4682
4896
|
type OakSolidBorderAccordionProps = {
|
|
4683
4897
|
/**
|
|
@@ -4700,7 +4914,7 @@ type OakSolidBorderAccordionProps = {
|
|
|
4700
4914
|
/**
|
|
4701
4915
|
* An accordion component that can be used to show/hide content
|
|
4702
4916
|
*/
|
|
4703
|
-
declare const OakMediaClipListAccordion: ({ header, children, id, initialOpen, ...styleProps }: OakSolidBorderAccordionProps) =>
|
|
4917
|
+
declare const OakMediaClipListAccordion: ({ header, children, id, initialOpen, ...styleProps }: OakSolidBorderAccordionProps) => React__default.JSX.Element;
|
|
4704
4918
|
|
|
4705
4919
|
type OakOutlineAccordionProps = {
|
|
4706
4920
|
/**
|
|
@@ -4723,7 +4937,7 @@ type OakOutlineAccordionProps = {
|
|
|
4723
4937
|
/**
|
|
4724
4938
|
* An accordion component that can be used to show/hide content
|
|
4725
4939
|
*/
|
|
4726
|
-
declare const OakOutlineAccordion: ({ header, children, id, initialOpen, ...styleProps }: OakOutlineAccordionProps) =>
|
|
4940
|
+
declare const OakOutlineAccordion: ({ header, children, id, initialOpen, ...styleProps }: OakOutlineAccordionProps) => React__default.JSX.Element;
|
|
4727
4941
|
|
|
4728
4942
|
type OakSaveCountProps = {
|
|
4729
4943
|
/**
|
|
@@ -4739,10 +4953,10 @@ type OakSaveCountProps = {
|
|
|
4739
4953
|
href: string;
|
|
4740
4954
|
loading: boolean;
|
|
4741
4955
|
};
|
|
4742
|
-
declare const OakSaveCount: ({ count, href, loading, label, }: OakSaveCountProps) =>
|
|
4956
|
+
declare const OakSaveCount: ({ count, href, loading, label, }: OakSaveCountProps) => React__default.JSX.Element;
|
|
4743
4957
|
|
|
4744
4958
|
type OakScaleImageButtonProps = Omit<InternalShadowRectButtonProps, "defaultTextColor" | "hoverTextColor" | "disabledTextColor" | "defaultBackground" | "defaultBorderColor" | "hoverBackground" | "hoverBorderColor" | "disabledBackground" | "disabledBorderColor" | "iconGap" | "pv" | "ph" | "$bblr" | "$btlr" | "width" | "onClick"> & {
|
|
4745
|
-
onImageScaleCallback: (event:
|
|
4959
|
+
onImageScaleCallback: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
4746
4960
|
isExpanded: boolean;
|
|
4747
4961
|
};
|
|
4748
4962
|
/**
|
|
@@ -4755,24 +4969,24 @@ type OakScaleImageButtonProps = Omit<InternalShadowRectButtonProps, "defaultText
|
|
|
4755
4969
|
* `onImageScaleCallback: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`
|
|
4756
4970
|
*ą
|
|
4757
4971
|
*/
|
|
4758
|
-
declare const OakScaleImageButton: <C extends ElementType = "button">({ onImageScaleCallback, isExpanded, }: OakScaleImageButtonProps & PolymorphicPropsWithoutRef<C>) =>
|
|
4972
|
+
declare const OakScaleImageButton: <C extends ElementType = "button">({ onImageScaleCallback, isExpanded, }: OakScaleImageButtonProps & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
|
|
4759
4973
|
|
|
4760
4974
|
type OakSignLanguageButtonProps = {
|
|
4761
4975
|
/**
|
|
4762
4976
|
* On click function
|
|
4763
4977
|
*/
|
|
4764
|
-
onClick: (event:
|
|
4978
|
+
onClick: (event: React__default.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
4765
4979
|
};
|
|
4766
4980
|
/**
|
|
4767
4981
|
* Display a button to toggle sign language
|
|
4768
4982
|
*/
|
|
4769
|
-
declare const OakSignLanguageButton: ({ onClick, }: OakSignLanguageButtonProps) =>
|
|
4983
|
+
declare const OakSignLanguageButton: ({ onClick, }: OakSignLanguageButtonProps) => React__default.JSX.Element;
|
|
4770
4984
|
|
|
4771
4985
|
type OakTimerProps = {
|
|
4772
4986
|
timeCode: number;
|
|
4773
4987
|
} & Omit<OakBoxProps, "onClick" | "label">;
|
|
4774
4988
|
declare const formatTimeCode: (seconds: number) => string;
|
|
4775
|
-
declare const OakTimer: (props: OakTimerProps) =>
|
|
4989
|
+
declare const OakTimer: (props: OakTimerProps) => React__default.JSX.Element;
|
|
4776
4990
|
|
|
4777
4991
|
interface Tier {
|
|
4778
4992
|
tier: string;
|
|
@@ -4797,12 +5011,12 @@ type OakDownloadsJourneyChildSubjectTierSelectorProps = {
|
|
|
4797
5011
|
* once the Next button is pressed to continue on the Downloads journey.
|
|
4798
5012
|
*
|
|
4799
5013
|
*/
|
|
4800
|
-
declare const OakDownloadsJourneyChildSubjectTierSelector: any
|
|
5014
|
+
declare const OakDownloadsJourneyChildSubjectTierSelector: styled_components_dist_types.IStyledComponentBase<"web", OakDownloadsJourneyChildSubjectTierSelectorProps> & string & Omit<(props: OakDownloadsJourneyChildSubjectTierSelectorProps) => React__default.JSX.Element, keyof React__default.Component<any, {}, any>>;
|
|
4801
5015
|
|
|
4802
5016
|
type OakCodeRendererProps = {
|
|
4803
5017
|
string: string;
|
|
4804
5018
|
} & TypographyStyleProps & OakBoxProps;
|
|
4805
|
-
declare const OakCodeRenderer: ({ string, ...rest }: OakCodeRendererProps) => string |
|
|
5019
|
+
declare const OakCodeRenderer: ({ string, ...rest }: OakCodeRendererProps) => string | React__default.JSX.Element;
|
|
4806
5020
|
|
|
4807
5021
|
type OakHeaderHeroProps = {
|
|
4808
5022
|
authorImageSrc?: string;
|
|
@@ -4822,7 +5036,7 @@ type OakHeaderHeroProps = {
|
|
|
4822
5036
|
*
|
|
4823
5037
|
* This Oak component can be passed the OWA breadcrumbs component as a prop. Currently this component does not exist in the component library.
|
|
4824
5038
|
*/
|
|
4825
|
-
declare const OakHeaderHero: any
|
|
5039
|
+
declare const OakHeaderHero: styled_components_dist_types.IStyledComponentBase<"web", OakHeaderHeroProps> & string & Omit<(props: OakHeaderHeroProps) => React__default.JSX.Element, keyof React__default.Component<any, {}, any>>;
|
|
4826
5040
|
|
|
4827
5041
|
type OakHomepageTabButtonProps = InternalButtonProps & {
|
|
4828
5042
|
title: string;
|
|
@@ -4830,7 +5044,7 @@ type OakHomepageTabButtonProps = InternalButtonProps & {
|
|
|
4830
5044
|
isActive?: boolean;
|
|
4831
5045
|
showNewIcon?: boolean;
|
|
4832
5046
|
};
|
|
4833
|
-
declare const OakHomepageTabButton: <C extends ElementType = "button">(props: OakHomepageTabButtonProps & PolymorphicPropsWithoutRef<C>) =>
|
|
5047
|
+
declare const OakHomepageTabButton: <C extends ElementType = "button">(props: OakHomepageTabButtonProps & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
|
|
4834
5048
|
|
|
4835
5049
|
type OakInfoProps = {
|
|
4836
5050
|
/**
|
|
@@ -4845,22 +5059,22 @@ type OakInfoProps = {
|
|
|
4845
5059
|
/**
|
|
4846
5060
|
* Presents a button which will show a hint when clicked
|
|
4847
5061
|
*/
|
|
4848
|
-
declare const OakInfo: (props: OakInfoProps) =>
|
|
5062
|
+
declare const OakInfo: (props: OakInfoProps) => React__default.JSX.Element;
|
|
4849
5063
|
|
|
4850
5064
|
type OakListItemProps = {
|
|
4851
5065
|
unavailable?: boolean;
|
|
4852
5066
|
index: number;
|
|
4853
5067
|
title: string;
|
|
4854
5068
|
isLegacy: boolean;
|
|
4855
|
-
firstItemRef?:
|
|
4856
|
-
onClick?: (event:
|
|
4857
|
-
middleSlot?:
|
|
4858
|
-
endSlot?:
|
|
5069
|
+
firstItemRef?: React__default.MutableRefObject<HTMLDivElement | null> | null | undefined;
|
|
5070
|
+
onClick?: (event: React__default.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
5071
|
+
middleSlot?: React__default.ReactNode;
|
|
5072
|
+
endSlot?: React__default.ReactNode;
|
|
4859
5073
|
hoverBgColour?: OakUiRoleToken;
|
|
4860
5074
|
indexBgColour?: OakUiRoleToken;
|
|
4861
5075
|
indexHoverBgColour?: OakUiRoleToken;
|
|
4862
5076
|
indexLegacyBgColour?: OakUiRoleToken;
|
|
4863
|
-
expandedContent?:
|
|
5077
|
+
expandedContent?: React__default.ReactNode;
|
|
4864
5078
|
isExpanded?: boolean;
|
|
4865
5079
|
asRadio?: boolean;
|
|
4866
5080
|
radioValue?: string;
|
|
@@ -4869,7 +5083,7 @@ type OakListItemProps = {
|
|
|
4869
5083
|
* * OakListItem component used as links for unit cards
|
|
4870
5084
|
* * adding asRadio and radioValue props to allow OakListItem to be used as radio buttons within OakUnitsContainer if the OakUnitsContainer is passed a radioGroupName prop. This allows for better accessibility when OakListItem is used in OakUnitsContainer, as the user can select a unit by clicking anywhere on the card, rather than having to click on a specific radio button.
|
|
4871
5085
|
*/
|
|
4872
|
-
declare const OakListItem: (props: OakListItemProps) =>
|
|
5086
|
+
declare const OakListItem: (props: OakListItemProps) => React__default.JSX.Element;
|
|
4873
5087
|
|
|
4874
5088
|
type MuxPlayingState = "standard" | "playing" | "played";
|
|
4875
5089
|
type OakMediaClipProps = {
|
|
@@ -4884,8 +5098,40 @@ type OakMediaClipProps = {
|
|
|
4884
5098
|
isAudioClip?: boolean;
|
|
4885
5099
|
element?: "button" | "a";
|
|
4886
5100
|
};
|
|
4887
|
-
declare const StyledMediaClipImage:
|
|
4888
|
-
|
|
5101
|
+
declare const StyledMediaClipImage: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Merged<Omit<Omit<next_image.ImageProps, "placeholder"> & {
|
|
5102
|
+
children?: React__default.ReactNode;
|
|
5103
|
+
} & PositionStyleProps & SizeStyleProps & PaddingStyleProps & MarginStyleProps & ColorStyleProps & BorderStyleProps & DisplayStyleProps & DropShadowStyleProps & OpacityStyleProps & TransformStyleProps & TransitionStyleProps & TypographyStyleProps & ZIndexStyleProps & {
|
|
5104
|
+
onClick?: React__default.MouseEventHandler;
|
|
5105
|
+
} & ScrollSnapStyleProps & ColorFilterStyleProps & {
|
|
5106
|
+
onClick?: React__default.MouseEventHandler;
|
|
5107
|
+
} & {
|
|
5108
|
+
as?: React__default.ElementType | undefined;
|
|
5109
|
+
placeholder?: next_image.ImageProps["placeholder"] | "oak";
|
|
5110
|
+
imageProps?: Partial<Omit<any, "ref">> | undefined;
|
|
5111
|
+
}, "style"> & {
|
|
5112
|
+
style?: React__default.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
5113
|
+
}, 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"> & {
|
|
5114
|
+
src: string | next_dist_shared_lib_get_img_props.StaticImport;
|
|
5115
|
+
alt: string;
|
|
5116
|
+
width?: number | `${number}`;
|
|
5117
|
+
height?: number | `${number}`;
|
|
5118
|
+
fill?: boolean;
|
|
5119
|
+
loader?: next_image.ImageLoader;
|
|
5120
|
+
quality?: number | `${number}`;
|
|
5121
|
+
priority?: boolean;
|
|
5122
|
+
loading?: "eager" | "lazy" | undefined;
|
|
5123
|
+
placeholder?: next_dist_shared_lib_get_img_props.PlaceholderValue;
|
|
5124
|
+
blurDataURL?: string;
|
|
5125
|
+
unoptimized?: boolean;
|
|
5126
|
+
overrideSrc?: string;
|
|
5127
|
+
onLoadingComplete?: next_dist_shared_lib_get_img_props.OnLoadingComplete;
|
|
5128
|
+
layout?: string;
|
|
5129
|
+
objectFit?: string;
|
|
5130
|
+
objectPosition?: string;
|
|
5131
|
+
lazyBoundary?: string;
|
|
5132
|
+
lazyRoot?: string;
|
|
5133
|
+
} & React__default.RefAttributes<HTMLImageElement | null>>>({ ...props }: OakImageProps<C>) => React__default.JSX.Element), keyof React__default.Component<any, {}, any>>;
|
|
5134
|
+
declare const OakMediaClip: ({ thumbnailImage, timeCode, clipName, learningCycle, muxPlayingState, onClick, disabled, imageAltText, isAudioClip, element, }: OakMediaClipProps) => React__default.JSX.Element;
|
|
4889
5135
|
|
|
4890
5136
|
type OakMediaClipListProps = {
|
|
4891
5137
|
lessonTitle: string;
|
|
@@ -4898,7 +5144,7 @@ type OakMediaClipListProps = {
|
|
|
4898
5144
|
* OakMediaClipList is a scrollable list of OakMediaClip components with clip counter and the title
|
|
4899
5145
|
*
|
|
4900
5146
|
*/
|
|
4901
|
-
declare const OakMediaClipList: ({ lessonTitle, currentClipCounter, totalClipCounter, children, }: OakMediaClipListProps) =>
|
|
5147
|
+
declare const OakMediaClipList: ({ lessonTitle, currentClipCounter, totalClipCounter, children, }: OakMediaClipListProps) => React__default.JSX.Element;
|
|
4902
5148
|
|
|
4903
5149
|
type OakMediaClipStackListItemProps = {
|
|
4904
5150
|
title: string;
|
|
@@ -4910,7 +5156,7 @@ type OakMediaClipStackListItemProps = {
|
|
|
4910
5156
|
onClick?: () => void;
|
|
4911
5157
|
rel?: string;
|
|
4912
5158
|
};
|
|
4913
|
-
declare const OakMediaClipStackListItem: (props: OakMediaClipStackListItemProps) =>
|
|
5159
|
+
declare const OakMediaClipStackListItem: (props: OakMediaClipStackListItemProps) => React__default.JSX.Element;
|
|
4914
5160
|
|
|
4915
5161
|
type MenuItemProps = {
|
|
4916
5162
|
heading: string;
|
|
@@ -4939,14 +5185,36 @@ type OakSideMenuNavLinkProps = FlexStyleProps & PaddingStyleProps & {
|
|
|
4939
5185
|
* - `isSelected`: A boolean indicating whether the link is currently selected.
|
|
4940
5186
|
* - `onClick`: A callback function that is triggered when the link is clicked.
|
|
4941
5187
|
*/
|
|
4942
|
-
declare const OakSideMenuNavLink:
|
|
5188
|
+
declare const OakSideMenuNavLink: styled_components_dist_types.IStyledComponentBase<"web", DisplayStyleProps & {
|
|
5189
|
+
$flexDirection?: ResponsiveValues<React__default.CSSProperties["flexDirection"]>;
|
|
5190
|
+
$flexWrap?: ResponsiveValues<React__default.CSSProperties["flexWrap"]>;
|
|
5191
|
+
$alignItems?: ResponsiveValues<React__default.CSSProperties["alignItems"]>;
|
|
5192
|
+
$alignContent?: ResponsiveValues<React__default.CSSProperties["alignContent"]>;
|
|
5193
|
+
$justifyContent?: ResponsiveValues<React__default.CSSProperties["justifyContent"]>;
|
|
5194
|
+
$alignSelf?: ResponsiveValues<React__default.CSSProperties["alignSelf"]>;
|
|
5195
|
+
$flexGrow?: ResponsiveValues<React__default.CSSProperties["flexGrow"]>;
|
|
5196
|
+
$flexShrink?: ResponsiveValues<React__default.CSSProperties["flexShrink"]>;
|
|
5197
|
+
$order?: ResponsiveValues<React__default.CSSProperties["order"]>;
|
|
5198
|
+
$flexBasis?: ResponsiveValues<OakCombinedSpacingToken | null | undefined>;
|
|
5199
|
+
$gap?: ResponsiveValues<OakAllSpacingToken | OakSpaceBetweenToken | null | undefined>;
|
|
5200
|
+
$columnGap?: ResponsiveValues<OakAllSpacingToken | OakSpaceBetweenToken | null | undefined>;
|
|
5201
|
+
$rowGap?: ResponsiveValues<OakAllSpacingToken | OakSpaceBetweenToken | null | undefined>;
|
|
5202
|
+
focusable?: boolean;
|
|
5203
|
+
} & PaddingStyleProps & {
|
|
5204
|
+
item: MenuItemProps;
|
|
5205
|
+
isSelected: boolean;
|
|
5206
|
+
onClick: () => void;
|
|
5207
|
+
hoverBorderColor?: OakUiRoleToken;
|
|
5208
|
+
selectedBackground?: OakUiRoleToken;
|
|
5209
|
+
selectedHeadingFont?: OakFontToken;
|
|
5210
|
+
}> & string & Omit<(props: OakSideMenuNavLinkProps) => React__default.JSX.Element, keyof React__default.Component<any, {}, any>>;
|
|
4943
5211
|
|
|
4944
5212
|
type OakSideMenuNavProps = {
|
|
4945
5213
|
heading: string;
|
|
4946
5214
|
menuItems: MenuItemProps[];
|
|
4947
5215
|
anchorTargetId: string;
|
|
4948
5216
|
};
|
|
4949
|
-
declare const OakSideMenuNav: (props: OakSideMenuNavProps) =>
|
|
5217
|
+
declare const OakSideMenuNav: (props: OakSideMenuNavProps) => React__default.JSX.Element;
|
|
4950
5218
|
|
|
4951
5219
|
type OakSubjectIconProps = Pick<OakHandDrawnBoxWithIconProps, "iconName" | "fill" | "iconColor" | "alt"> & {
|
|
4952
5220
|
iconName: `subject-${string}`;
|
|
@@ -4957,7 +5225,7 @@ type OakSubjectIconProps = Pick<OakHandDrawnBoxWithIconProps, "iconName" | "fill
|
|
|
4957
5225
|
*
|
|
4958
5226
|
* Accepts an optional `showPromoTag` prop to display a "New" tag in the top left corner
|
|
4959
5227
|
*/
|
|
4960
|
-
declare const OakSubjectIcon: ({ showPromoTag, ...rest }: OakSubjectIconProps) =>
|
|
5228
|
+
declare const OakSubjectIcon: ({ showPromoTag, ...rest }: OakSubjectIconProps) => React__default.JSX.Element;
|
|
4961
5229
|
|
|
4962
5230
|
type OakSubjectIconButtonProps = {
|
|
4963
5231
|
phase: "primary" | "secondary" | "non-curriculum";
|
|
@@ -4979,7 +5247,7 @@ type OakSubjectIconButtonProps = {
|
|
|
4979
5247
|
* `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>
|
|
4980
5248
|
* called after a mouseEnter and mouseLeave event has happened
|
|
4981
5249
|
*/
|
|
4982
|
-
declare const OakSubjectIconButton: <C extends ElementType = "button">({ phase, element, subjectIconName, variant, selected, ...rest }: OakSubjectIconButtonProps & PolymorphicPropsWithoutRef<C>) =>
|
|
5250
|
+
declare const OakSubjectIconButton: <C extends ElementType = "button">({ phase, element, subjectIconName, variant, selected, ...rest }: OakSubjectIconButtonProps & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
|
|
4983
5251
|
|
|
4984
5252
|
type OakVideoTranscriptProps = {
|
|
4985
5253
|
/**
|
|
@@ -5008,7 +5276,7 @@ type OakVideoTranscriptProps = {
|
|
|
5008
5276
|
/**
|
|
5009
5277
|
* Display a togglable video transcript with a slot to display a sign language control
|
|
5010
5278
|
*/
|
|
5011
|
-
declare const OakVideoTranscript: ({ children, id, signLanguageControl, copyLinkControl, transcriptToggled, }: OakVideoTranscriptProps) =>
|
|
5279
|
+
declare const OakVideoTranscript: ({ children, id, signLanguageControl, copyLinkControl, transcriptToggled, }: OakVideoTranscriptProps) => React__default.JSX.Element;
|
|
5012
5280
|
|
|
5013
5281
|
type OakCloudinaryImageProps = Omit<OakImageProps<typeof CldImage>, "src" | "imageProps"> & {
|
|
5014
5282
|
/**
|
|
@@ -5024,7 +5292,7 @@ type OakCloudinaryImageProps = Omit<OakImageProps<typeof CldImage>, "src" | "ima
|
|
|
5024
5292
|
* See https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters
|
|
5025
5293
|
* for documentation of the config object.
|
|
5026
5294
|
*/
|
|
5027
|
-
declare const OakCloudinaryConfigProvider:
|
|
5295
|
+
declare const OakCloudinaryConfigProvider: React__default.Provider<any>;
|
|
5028
5296
|
/**
|
|
5029
5297
|
* OakCloudinaryImage wraps OakImage providing responsive images from Cloudinary
|
|
5030
5298
|
* based on the `sizes` prop.
|
|
@@ -5035,7 +5303,7 @@ declare const OakCloudinaryConfigProvider: React$1.Provider<any>;
|
|
|
5035
5303
|
* ## To be refactored 🔀
|
|
5036
5304
|
* This component will be refactored not to be tight to a service like Cloudinary
|
|
5037
5305
|
*/
|
|
5038
|
-
declare const OakCloudinaryImage: ({ cloudinaryId, unoptimized, ...props }: OakCloudinaryImageProps) =>
|
|
5306
|
+
declare const OakCloudinaryImage: ({ cloudinaryId, unoptimized, ...props }: OakCloudinaryImageProps) => React__default.JSX.Element;
|
|
5039
5307
|
|
|
5040
5308
|
type OakCarouselProps = {
|
|
5041
5309
|
content: ReactNode[];
|
|
@@ -5044,7 +5312,7 @@ type OakCarouselProps = {
|
|
|
5044
5312
|
fwdLabel: string;
|
|
5045
5313
|
containerLabel: string;
|
|
5046
5314
|
};
|
|
5047
|
-
declare const OakCarousel: ({ content, isLooping, backLabel, fwdLabel, containerLabel, }: OakCarouselProps) =>
|
|
5315
|
+
declare const OakCarousel: ({ content, isLooping, backLabel, fwdLabel, containerLabel, }: OakCarouselProps) => React__default.JSX.Element;
|
|
5048
5316
|
|
|
5049
5317
|
type OakQuoteProps = {
|
|
5050
5318
|
quote: string | string[];
|
|
@@ -5054,7 +5322,7 @@ type OakQuoteProps = {
|
|
|
5054
5322
|
authorImageSrc?: string;
|
|
5055
5323
|
hasLeftBorder?: boolean;
|
|
5056
5324
|
};
|
|
5057
|
-
declare const OakQuote: ({ quote, color, authorName, authorTitle, authorImageSrc, hasLeftBorder, }: OakQuoteProps) =>
|
|
5325
|
+
declare const OakQuote: ({ quote, color, authorName, authorTitle, authorImageSrc, hasLeftBorder, }: OakQuoteProps) => React__default.JSX.Element;
|
|
5058
5326
|
|
|
5059
5327
|
type ListStyleProps = {
|
|
5060
5328
|
/**
|
|
@@ -5062,7 +5330,7 @@ type ListStyleProps = {
|
|
|
5062
5330
|
*
|
|
5063
5331
|
* Accepts a `list-style` value or a responsive array of `list-style` values.
|
|
5064
5332
|
*/
|
|
5065
|
-
$listStyle?: ResponsiveValues<CSSProperties
|
|
5333
|
+
$listStyle?: ResponsiveValues<CSSProperties["listStyle"]>;
|
|
5066
5334
|
};
|
|
5067
5335
|
|
|
5068
5336
|
type OakLIProps = OakFlexProps & TypographyStyleProps & ListStyleProps & DisplayStyleProps;
|
|
@@ -5077,7 +5345,11 @@ type OakLIProps = OakFlexProps & TypographyStyleProps & ListStyleProps & Display
|
|
|
5077
5345
|
declare const oakLIDefaults: {
|
|
5078
5346
|
$display: string;
|
|
5079
5347
|
};
|
|
5080
|
-
declare const OakLI:
|
|
5348
|
+
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"> & {
|
|
5349
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
5350
|
+
}, 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" | "value" | "$flexDirection" | "$flexWrap" | "$alignItems" | "$alignContent" | "$justifyContent" | "$alignSelf" | "$flexGrow" | "$flexShrink" | "$order" | "$flexBasis" | "$gap" | "$columnGap" | "$rowGap" | "focusable" | "aria-label" | "aria-description" | "aria-labelledby" | "aria-describedby" | "hidden" | "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"> & {
|
|
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" | "value" | "$flexDirection" | "$flexWrap" | "$alignItems" | "$alignContent" | "$justifyContent" | "$alignSelf" | "$flexGrow" | "$flexShrink" | "$order" | "$flexBasis" | "$gap" | "$columnGap" | "$rowGap" | "focusable" | "aria-label" | "aria-description" | "aria-labelledby" | "aria-describedby" | "hidden" | "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;
|
|
5081
5353
|
|
|
5082
5354
|
type OakOLProps = MarginStyleProps & ColorStyleProps & TypographyStyleProps;
|
|
5083
5355
|
/**
|
|
@@ -5088,7 +5360,9 @@ type OakOLProps = MarginStyleProps & ColorStyleProps & TypographyStyleProps;
|
|
|
5088
5360
|
* Use where we have an ordered list to ensure numbers are styled
|
|
5089
5361
|
*
|
|
5090
5362
|
* */
|
|
5091
|
-
declare const OakOL:
|
|
5363
|
+
declare const OakOL: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Merged<Omit<React$1.DetailedHTMLProps<React$1.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "style"> & {
|
|
5364
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
5365
|
+
}, OakOLProps>> & string;
|
|
5092
5366
|
|
|
5093
5367
|
type OakPProps = MarginStyleProps & TypographyStyleProps & ColorStyleProps;
|
|
5094
5368
|
/**
|
|
@@ -5098,7 +5372,9 @@ type OakPProps = MarginStyleProps & TypographyStyleProps & ColorStyleProps;
|
|
|
5098
5372
|
* However, if you want different styles for a particular paragraph,
|
|
5099
5373
|
* you can use this component to apply additional styles.
|
|
5100
5374
|
*/
|
|
5101
|
-
declare const OakP:
|
|
5375
|
+
declare const OakP: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Merged<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
5376
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
5377
|
+
}, OakPProps>> & string;
|
|
5102
5378
|
|
|
5103
5379
|
type OakTypographyProps = OakBoxProps & TypographyStyleProps;
|
|
5104
5380
|
/**
|
|
@@ -5108,7 +5384,18 @@ type OakTypographyProps = OakBoxProps & TypographyStyleProps;
|
|
|
5108
5384
|
* This should be the primary component to set a typography context.
|
|
5109
5385
|
* Use this component whenever you want to style blocks of 'body' text.
|
|
5110
5386
|
*/
|
|
5111
|
-
declare const OakTypography:
|
|
5387
|
+
declare const OakTypography: styled_components_dist_types.IStyledComponentBase<"web", 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"> & {
|
|
5388
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
5389
|
+
}, OakBoxProps>, "as" | "forwardedAs"> & {
|
|
5390
|
+
as?: styled_components.WebTarget | undefined;
|
|
5391
|
+
forwardedAs?: styled_components.WebTarget | undefined;
|
|
5392
|
+
}, "ref"> & {
|
|
5393
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React$1.RefObject<HTMLDivElement> | null | undefined;
|
|
5394
|
+
}, "style"> & {
|
|
5395
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | (React$1.CSSProperties & {
|
|
5396
|
+
[key: `--${string}`]: string | number | undefined;
|
|
5397
|
+
}) | undefined;
|
|
5398
|
+
}, OakTypographyProps>> & string;
|
|
5112
5399
|
|
|
5113
5400
|
type OakULProps = OakBoxProps & OakFlexProps & {
|
|
5114
5401
|
$reset?: boolean;
|
|
@@ -5121,7 +5408,9 @@ type OakULProps = OakBoxProps & OakFlexProps & {
|
|
|
5121
5408
|
* Resets browser spacing and other styles, accepts BoxProps' style props.
|
|
5122
5409
|
*
|
|
5123
5410
|
* */
|
|
5124
|
-
declare const OakUL:
|
|
5411
|
+
declare const OakUL: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Merged<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "style"> & {
|
|
5412
|
+
style?: React$1.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
5413
|
+
}, OakULProps>> & string;
|
|
5125
5414
|
|
|
5126
5415
|
type OakVideoProps = {
|
|
5127
5416
|
/**
|
|
@@ -5141,7 +5430,7 @@ type OakVideoProps = {
|
|
|
5141
5430
|
/**
|
|
5142
5431
|
* The video slot to display. This is a React node that can be any valid React element.
|
|
5143
5432
|
*/
|
|
5144
|
-
videoSlot:
|
|
5433
|
+
videoSlot: React__default.ReactNode;
|
|
5145
5434
|
/**
|
|
5146
5435
|
* The transcript to display below the video.
|
|
5147
5436
|
*/
|
|
@@ -5170,7 +5459,7 @@ type OakVideoProps = {
|
|
|
5170
5459
|
/**
|
|
5171
5460
|
* Video component with controls to standardise layout across use
|
|
5172
5461
|
*/
|
|
5173
|
-
declare function OakVideo({ headingTag, heading, body, videoSlot, transcript, showTranscript, showCopyLink, showSignLanguage, onCopyLink, onShowSignLanguage, }: Readonly<OakVideoProps>):
|
|
5462
|
+
declare function OakVideo({ headingTag, heading, body, videoSlot, transcript, showTranscript, showCopyLink, showSignLanguage, onCopyLink, onShowSignLanguage, }: Readonly<OakVideoProps>): React__default.JSX.Element;
|
|
5174
5463
|
|
|
5175
5464
|
type UnstyledChevronAccordionCommonProps = {
|
|
5176
5465
|
/** The header of the accordion. */
|
|
@@ -5208,25 +5497,25 @@ type UnstyledChevronAccordionProps = UnstyledChevronAccordionCommonProps & (Unst
|
|
|
5208
5497
|
* - Can be used as an uncontrolled component (via `isInitiallyOpen`) or as a
|
|
5209
5498
|
* controlled component (via `isOpen` + `onOpenChange`).
|
|
5210
5499
|
*/
|
|
5211
|
-
declare const UnstyledChevronAccordion: (props: UnstyledChevronAccordionProps) =>
|
|
5500
|
+
declare const UnstyledChevronAccordion: (props: UnstyledChevronAccordionProps) => React__default.JSX.Element;
|
|
5212
5501
|
|
|
5213
5502
|
/**
|
|
5214
5503
|
*
|
|
5215
5504
|
* Currently this is just for storybook as it is already applied in OWA
|
|
5216
5505
|
*
|
|
5217
5506
|
*/
|
|
5218
|
-
declare const OakGlobalStyle:
|
|
5507
|
+
declare const OakGlobalStyle: React$1.NamedExoticComponent<styled_components.ExecutionProps & object>;
|
|
5219
5508
|
|
|
5220
5509
|
type OakThemeProviderProps = {
|
|
5221
5510
|
theme: OakTheme;
|
|
5222
|
-
children:
|
|
5511
|
+
children: React__default.ReactNode;
|
|
5223
5512
|
};
|
|
5224
5513
|
/**
|
|
5225
5514
|
*
|
|
5226
5515
|
* OakThemeProvider wraps Styled Components ThemeProvider allowing the use of the custom type OakTheme.
|
|
5227
5516
|
*
|
|
5228
5517
|
*/
|
|
5229
|
-
declare const OakThemeProvider: ({ theme, children, }: OakThemeProviderProps) =>
|
|
5518
|
+
declare const OakThemeProvider: ({ theme, children, }: OakThemeProviderProps) => React__default.JSX.Element;
|
|
5230
5519
|
|
|
5231
5520
|
/**
|
|
5232
5521
|
* Installs a mock of IntersectionObserver when it is not present in the environment
|
|
@@ -5250,10 +5539,10 @@ declare const useMounted: () => boolean;
|
|
|
5250
5539
|
|
|
5251
5540
|
declare const useIsScrolled: () => {
|
|
5252
5541
|
isScrolled: boolean;
|
|
5253
|
-
ObserveScroll: ({ children }: PropsWithChildren) =>
|
|
5542
|
+
ObserveScroll: ({ children }: PropsWithChildren) => React__default.JSX.Element;
|
|
5254
5543
|
};
|
|
5255
5544
|
|
|
5256
5545
|
declare const useBreakpoint: () => Device;
|
|
5257
5546
|
|
|
5258
5547
|
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, 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 };
|
|
5259
|
-
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, 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, Subject, Tier, UnstyledChevronAccordionProps };
|
|
5548
|
+
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, 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 };
|