@oaknational/oak-components 3.28.0 → 3.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,8 +2,9 @@
2
2
 
3
3
  var tslib = require('tslib');
4
4
  var React = require('react');
5
- var styled = require('styled-components');
6
5
  var Image = require('next/image');
6
+ var styled = require('styled-components');
7
+ var lodash = require('lodash');
7
8
  var reactDom = require('react-dom');
8
9
  var reactFocusOn = require('react-focus-on');
9
10
  var reactTransitionGroup = require('react-transition-group');
@@ -17,51 +18,312 @@ var react = require('@portabletext/react');
17
18
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
18
19
 
19
20
  var React__default = /*#__PURE__*/_interopDefault(React);
20
- var styled__default = /*#__PURE__*/_interopDefault(styled);
21
21
  var Image__default = /*#__PURE__*/_interopDefault(Image);
22
+ var styled__default = /*#__PURE__*/_interopDefault(styled);
22
23
  var Link__default = /*#__PURE__*/_interopDefault(Link);
23
24
 
24
- var DropdownContext = React.createContext(null);
25
- var OakButtonWithDropdownProvider = function (_a) {
26
- var onClose = _a.onClose, children = _a.children;
27
- var context = React.useMemo(function () { return ({ onClose: onClose }); }, [onClose]);
28
- return (React__default.default.createElement(DropdownContext.Provider, { value: context }, children));
25
+ // the values of the icons object are the paths to the versioned images in the Cloudinary
26
+ var icons = {
27
+ // icons
28
+ "question-mark": "v1706872277/icons/question-mark.svg",
29
+ ai: "v1754063273/icons/ai_cqaksa.svg",
30
+ "ai-additional-material": "v1756224441/icons/AI_additional_material_oopjax.svg",
31
+ "ai-quiz": "v1756224440/icons/AI_quiz_eivb2s.svg",
32
+ "ai-slide-deck": "v1756224440/icons/Ai_slidedeck_xuo49n.svg",
33
+ "ai-worksheet": "v1756224441/icons/AI_worksheet_cm4f0q.svg",
34
+ "ai-teaching-resources": "v1779438987/icons/ai-teaching-resources.svg",
35
+ home: "v1699887218/icons/gvqxjxcw07ei2kkmwnes.svg",
36
+ send: "v1699893673/icons/rmvytilpjgvh3pgwc8ph.svg",
37
+ rocket: "v1699894015/icons/u26xm5hteot875ozfnk9.svg",
38
+ edit: "v1699894149/icons/qxlunbg5tfrdherzsvlt.svg",
39
+ expand: "v1730982187/Icon_Expand_arrktl.svg",
40
+ minimise: "v1730982213/Icon_Minimise_btcdbz.svg",
41
+ hamburger: "v1699895123/icons/jaqdnomtbhqvjcap962u.svg",
42
+ cross: "v1699895179/icons/xigimrbivcaxt4omxamp.svg",
43
+ copy: "v1727861316/icons/Icon_Copy_qxgynv.svg",
44
+ bell: "v1699895207/icons/ecejtvqerx81prxyxh9b.svg",
45
+ twitter: "v1699895251/icons/bq6a50xtkvnzhltfggzz.svg",
46
+ x: "v1748452854/icons/x_fpmv5f.svg",
47
+ worksheet: "v1699895300/icons/ez1s6mtpe5jkunnxzvlw.svg",
48
+ facebook: "v1699895330/icons/iojlvh3o5lshy2jupyph.svg",
49
+ share: "v1699895363/icons/agcmduftef3wcla6gzec.svg",
50
+ "arrow-right": "v1707149070/icons/fv0z57zerrioft52dd9n.svg",
51
+ "arrow-down": "v1699954152/icons/wpfmbmwpyfinipg0d61y.svg",
52
+ "arrow-left": "v1707149179/icons/ejrm9dpgpzb7ddbo8z2i.svg",
53
+ "arrow-up": "v1699954152/icons/arrow-up.svg",
54
+ "worksheet-3": "v1699895429/icons/bzhojpjxp9rukdvh7daz.svg",
55
+ "chevron-right": "v1707752509/icons/vk9xxxhnsltsickom6q9.svg",
56
+ save: "v1699895505/icons/rh1ahwwtbemvz0ihluew.svg",
57
+ success: "v1699895534/icons/Icon-Success_aiiprx.svg",
58
+ error: "v1699895534/icons/Icon-Error_r25aza.svg",
59
+ filter: "v1727783280/icons/Icon_Filter_eitb2p.svg",
60
+ "quiz-3": "v1699895534/icons/zoayhgtrotv32fad7d3k.svg",
61
+ "chevron-down": "v1699953557/icons/botfld6brychmttwtv6u.svg",
62
+ linkedin: "v1699953592/icons/leqneklorqqzb1zo6rf1.svg",
63
+ "magic-carpet": "v1699953622/icons/jifivg9xxm7sb0fjdilm.svg",
64
+ books: "v1699953657/icons/hz4l3iq6i68kazvkvorq.svg",
65
+ "supervision-level": "v1699953696/icons/cwqhknapp3maa4g0t3lj.svg",
66
+ "quiz-white": "v1699953730/icons/gpcehpgr9mqoumsa25xe.svg",
67
+ "additional-material": "v1699953798/icons/ntoq4tqvcm2uj1pajubt.svg",
68
+ "slide-deck-3": "v1699953830/icons/sm92moja9d5utu3cj16c.svg",
69
+ "sign-language": "v1699953861/icons/ns94ozvozzi22enxkx0x.svg",
70
+ external: "v1699953892/icons/hlxmejse3mcr4tqo6t8u.svg",
71
+ "equipment-required": "v1699953925/icons/pw22bdhj2vrzfv2ogi4e.svg",
72
+ "chevron-left": "v1707752509/icons/rbvzan0ozubmr4j0uqdn.svg",
73
+ download: "v1699953991/icons/dk0f6a6hdpzxftjosngn.svg",
74
+ search: "v1704901279/icons/canbi3fuz5fanzom2hvi.svg",
75
+ "chevron-up": "v1699954058/icons/pay71thmhhylj7z28sj1.svg",
76
+ go: "v1699954090/icons/vdzptyvmitylra8x4usy.svg",
77
+ copyright: "v1699954118/icons/boiod3rflocgsnfokyo8.svg",
78
+ project: "v1699954186/icons/zofq5pheud6spnwjpewk.svg",
79
+ "slide-deck": "v1699954241/icons/sjjy5f3g4eciwcuxxr33.svg",
80
+ "content-guidance": "v1699954277/icons/tm3uhcqenaznq4fxys7j.svg",
81
+ tick: "v1699954310/icons/efd3esaor6zqk7seh6kt.svg",
82
+ instagram: "v1699954343/icons/ayfeljric0kkimdymvva.svg",
83
+ dot: "v1699954371/icons/knykdclphkm8lgff4u2g.svg",
84
+ warning: "v1704901279/icons/zzszodmk7fvxm9xzzg9s.svg",
85
+ "lightbulb-yellow": "v1705078631/icons/q2v4sqxouy1ngcajoavv.svg",
86
+ lightbulb: "v1705078631/icons/zldisxmbff36z68rwcef.svg",
87
+ pencil: "v1765890807/icons/pencil.svg",
88
+ quiz: "v1705416077/icons/kaaizjcudy0jfgfrrdel.svg",
89
+ video: "v1705416078/icons/wzey1zfxrvv3apeebbf5.svg",
90
+ intro: "v1705662092/icons/pl7bnmb13txese9yxkjv.svg",
91
+ loopdown: "v1699887218/ui-graphics/loopdown.svg",
92
+ "teacher-lesson": "v1714060653/icons/teacher-lesson.svg",
93
+ "teacher-unit": "v1714060657/icons/teacher-unit.svg",
94
+ "move-arrows": "v1709052869/icons/hoddjsgpzkszgvnmn91q.svg",
95
+ info: "v1709052869/icons/Icon_Info_vsx3xi.svg",
96
+ play: "v1732099511/icons/g1xehzuhjnb0xeftmdno.svg",
97
+ "bookmark-outlined": "v1734519491/icons/bookmark-outlined_rxe5v0.svg",
98
+ "bookmark-filled": "v1734519491/icons/bookmark-filled_jz828n.svg",
99
+ "microsoft-teams": "v1736429692/microsoft-teams_gelfmi.svg",
100
+ "google-classroom": "v1736429692/google-classroom_pedfpd.svg",
101
+ clipboard: "v1749031463/icons/clipboard_yll2yj.svg",
102
+ "book-steps": "v1749034739/icons/book-steps_qwku6h.svg",
103
+ "free-tag": "v1749033815/icons/free-tag_lijptf.svg",
104
+ threads: "v1749034800/icons/threads_sqlqoe.svg",
105
+ spreadsheet: "v1754386968/icons/spreadsheet_rsndeb.svg",
106
+ "curriculum-plan": "v1754386969/icons/curriculum-plan_qygyuo.svg",
107
+ data: "v1763393164/icons/data-illustration_ukwdxg.svg",
108
+ chatting: "v1763393163/icons/chatting-illustration_l52zaf.svg",
109
+ "teacher-group": "v1793641849/icons/teacher-group.svg",
110
+ "snack-break": "v1763393167/icons/snackbreak_illustration_fguw7l.svg",
111
+ "class-grouping": "v1776785621/icons/class-grouping.svg",
112
+ strand: "v1776850533/icons/strand.svg",
113
+ plus: "v1781533362/icons/plus.svg",
114
+ hide: "v1785931149/icons/Icon_Hide_r1q6se.svg",
115
+ clock: "v1789035961/icons/clock.svg",
116
+ //learning cycle icons
117
+ "lc-explanation": "v1788336387/icons/lc-explanation.svg",
118
+ "lc-check-for-understanding": "v1788336388/icons/lc-check-for-understanding.svg",
119
+ "lc-practice": "v1788336389/icons/lc-practice.svg",
120
+ "lc-feedback": "v1788336388/icons/lc-feedback.svg",
121
+ // subject icons
122
+ "subject-art": "v1706616347/subject-icons/art.svg",
123
+ "subject-biology": "v1706616415/subject-icons/biology.svg",
124
+ "subject-chemistry": "v1706616415/subject-icons/chemistry.svg",
125
+ "subject-citizenship": "v1706616415/subject-icons/citizenship.svg",
126
+ "subject-gcse-citizenship": "v1706616415/subject-icons/citizenship.svg",
127
+ "subject-core-citizenship": "v1706616415/subject-icons/citizenship.svg",
128
+ "subject-combined-science": "v1734523570/subject-icons/science.svg",
129
+ "subject-communication-and-language": "v1706616415/subject-icons/communication-and-language.svg",
130
+ "subject-computing": "v1729171080/subject-icons/computing.svg",
131
+ "subject-computer-science": "v1729171080/subject-icons/computing.svg",
132
+ "subject-core-computing": "v1729171080/subject-icons/computing.svg",
133
+ "subject-cooking-nutrition": "v1734523014/subject-icons/cooking-nutrition.svg",
134
+ "subject-computing-non-gcse": "v1729171080/subject-icons/computing.svg",
135
+ "subject-creative-arts": "v1706616415/subject-icons/creative-arts.svg",
136
+ "subject-design-technology": "v1706616417/subject-icons/design-technology.svg",
137
+ "subject-digital-literacy": "v1729171080/subject-icons/computing.svg",
138
+ "subject-drama": "v1706616417/subject-icons/drama.svg",
139
+ "subject-english": "v1706616417/subject-icons/english.svg",
140
+ "subject-english-language": "v1706616419/subject-icons/language.svg",
141
+ "subject-english-grammar": "v1706616417/subject-icons/english-grammar.svg",
142
+ "subject-english-handwriting": "v1706616419/subject-icons/handwriting.svg",
143
+ "subject-english-reading-for-pleasure": "v1706616421/subject-icons/literature.svg",
144
+ "subject-english-spelling": "v1706616417/subject-icons/english-spelling.svg",
145
+ "subject-english-reading-writing-oracy": "v1706616424/subject-icons/reading-writing-oracy.svg",
146
+ "subject-english-vocabulary": "v1706616425/subject-icons/vocabulary.svg",
147
+ "subject-expressive-arts-and-design": "v1706616415/subject-icons/creative-arts.svg",
148
+ "subject-financial-education": "v1729171111/subject-icons/finance.svg",
149
+ "subject-french": "v1729171111/subject-icons/french.svg",
150
+ "subject-geography": "v1734523108/subject-icons/geography.svg",
151
+ "subject-german": "v1734523165/subject-icons/german.svg",
152
+ "subject-history": "v1728568980/subject-icons/history.svg",
153
+ "subject-independent-living": "v1706616419/subject-icons/independent-living.svg",
154
+ "subject-latin": "v1706616420/subject-icons/latin.svg",
155
+ "subject-literacy": "v1706616417/subject-icons/english.svg",
156
+ "subject-maths": "v1706616421/subject-icons/maths.svg",
157
+ "subject-music": "v1728570203/subject-icons/music-hollow.svg",
158
+ "subject-numeracy": "v1706616422/subject-icons/numeracy.svg",
159
+ "occupational-therapy": "v1706616424/subject-icons/therapy.svg",
160
+ "subject-personal-social-and-emotional-development": "v1706616423/subject-icons/rshe-pshe.svg",
161
+ "subject-physical-development": "v1706616422/subject-icons/physical-development.svg",
162
+ "subject-physical-education": "v1728568932/subject-icons/physical-education.svg",
163
+ "subject-core-physical-education": "v1728568932/subject-icons/physical-education.svg",
164
+ "subject-gcse-physical-education": "v1728568932/subject-icons/physical-education.svg",
165
+ "subject-physical-therapy": "v1706632882/subject-icons/physical-therapy.svg",
166
+ "subject-physics": "v1728568898/subject-icons/physics.svg",
167
+ "subject-religious-education": "v1706616425/subject-icons/religious-education.svg",
168
+ "subject-core-religious-education": "v1706616425/subject-icons/religious-education.svg",
169
+ "subject-gcse-religious-education": "v1706616425/subject-icons/religious-education.svg",
170
+ "subject-rshe-pshe": "v1706616423/subject-icons/rshe-pshe.svg",
171
+ "subject-rshe": "v1706616423/subject-icons/rshe-pshe.svg",
172
+ "subject-rule-of-law": "v1706616415/subject-icons/citizenship.svg",
173
+ "subject-philosophy": "v1741794495/subject-icons/philosophy.svg",
174
+ "subject-social-science": "v1741794495/subject-icons/social-science.svg",
175
+ "subject-theology": "v1741794496/subject-icons/theology.svg",
176
+ "subject-science": "v1734523570/subject-icons/science.svg",
177
+ "subject-sensory-integration": "v1706626743/subject-icons/sensory-integration.svg",
178
+ "subject-spanish": "v1729171166/subject-icons/spanish.svg",
179
+ "subject-speech-and-language-therapy": "v1706632882/subject-icons/speech-and-language.svg",
180
+ "subject-specialist": "v1706616415/subject-icons/communication-and-language.svg",
181
+ "subject-therapy": "v1706616424/subject-icons/therapy.svg",
182
+ "subject-therapies": "v1706616424/subject-icons/therapy.svg",
183
+ "subject-occupational-therapy": "v1706616424/subject-icons/therapy.svg",
184
+ "subject-understanding-the-world": "v1706616425/subject-icons/understanding-the-world.svg",
185
+ swimming: "v1728649514/subject-icons/swimming.svg",
186
+ // homepage icons
187
+ "homepage-robot-waving": "v1734523528/homepage/robot_waving_malpc3.svg",
188
+ "homepage-three-pupils": "v1734523221/homepage/image-students_g0jtxe.svg",
189
+ "homepage-teacher": "v1734523680/homepage/teacher-carrying-stuff_gab2ec.svg",
190
+ "homepage-teacher-map": "v1734523721/homepage/teacher-reading-map_glwhyh.svg",
191
+ // teacher journey icons
192
+ "audio-clip-large": "v1731950937/teacher-journey/audio_clip.svg",
193
+ "audio-clip-small": "v1731951210/teacher-journey/audio_clip_small.svg",
194
+ // OWA UI Graphics
195
+ "box-border-bottom": "v1734537219/OWA/ui-graphics/box-border-bottom_oa1riy.svg",
196
+ "box-border-left": "v1734537223/OWA/ui-graphics/box-border-left_eqgplm.svg",
197
+ "box-border-right": "v1734537228/OWA/ui-graphics/box-border-right_unznsm.svg",
198
+ "box-border-top": "v1734537228/OWA/ui-graphics/box-border-right_unznsm.svg",
199
+ "bubble-1": "v1734537172/OWA/ui-graphics/bubble-1_nhgg0w.svg",
200
+ "bubble-2": "v1734537180/OWA/ui-graphics/bubble-2_mfms6f.svg",
201
+ burst: "v1734537152/OWA/ui-graphics/burst_k0mkht.svg",
202
+ confetti: "v1763546694/ui-graphics/confetti-background_xbvfrc.svg",
203
+ "header-underline": "v1734536947/OWA/ui-graphics/header-underline_ejbffz.svg",
204
+ "icon-background-square": "v1734537276/OWA/ui-graphics/icon-background-square_qajipb.svg",
205
+ "looping-arrow-1": "v1734537133/OWA/ui-graphics/looping-arrow-1_zizllb.svg",
206
+ "looping-line-1": "v1734536929/OWA/ui-graphics/looping-line-1_krbrht.svg",
207
+ "looping-line-2": "v1734536933/OWA/ui-graphics/looping-line-2_sdinei.svg",
208
+ "looping-line-3": "v1734537015/OWA/ui-graphics/looping-line-3_b8dque.svg",
209
+ "looping-line-4": "v1734537039/OWA/ui-graphics/looping-line-4_xtjj4r.svg",
210
+ "looping-line-5": "v1740665310/OWA/ui-graphics/looping-line-5_vdknco.svg",
211
+ "speech-bubble": "v1734537300/OWA/ui-graphics/speech-bubble_magqjf.svg",
212
+ "tag-promotional": "v1734537244/OWA/ui-graphics/tag-promotional_v4p3oa.svg",
213
+ "tick-mark-happiness": "v1734537080/OWA/ui-graphics/tick-mark-happiness_fyst07.svg",
214
+ "underline-1": "v1734537060/OWA/ui-graphics/underline-1_zaegqi.svg",
215
+ image: "v1763680546/icons/Icon_Image_uatq6d.svg",
216
+ logo: "v1711468346/logo-mark.svg",
217
+ trash: "v1764692488/icons/icon_delete_edzcua.svg",
218
+ list: "v1774882349/icons/List.svg",
219
+ "media-clips": "v1774884267/icons/media-clips_nw3zpt.svg",
220
+ retake: "v1775141914/icons/retake-icon_xgqxzv.svg",
221
+ globe: "v1776851811/icons/globe.svg",
222
+ "video-2": "v1787662089/icons/video-2.svg",
223
+ audio: "v1787662158/icons/audio.svg",
224
+ "video-3": "v1788369484/icons/video-3.svg",
225
+ "sound-low": "v1794418270/icons/sound-low.svg",
226
+ "move-up-down": "v1794418662/icons/move-up-down.svg",
227
+ };
228
+ var backgrounds = {
229
+ "confetti-pink": "v1734522868/pupil-journey/confetti-pink.svg",
230
+ "confetti-lavender": "v1734519662/pupil-journey/confetti-lavender.svg",
231
+ "confetti-mint": "v1734522739/pupil-journey/confetti-mint.svg",
232
+ "lesson-confetti-green": "v1734522917/pupil-journey/lesson/lesson-confetti-green.svg",
233
+ "lesson-confetti-mint": "v1734523422/pupil-journey/lesson/lesson-confetti-mint.svg",
234
+ "lesson-confetti-pink": "v1734523482/pupil-journey/lesson/lesson-confetti-pink.svg",
235
+ "lesson-confetti-green-lemon": "v1734523276/pupil-journey/lesson/lesson-confetti-green-lemon.svg",
236
+ "lesson-confetti-lavender": "v1734523381/pupil-journey/lesson/lesson-confetti-lavender.svg",
237
+ "line-pink": "v1712912389/pupil-journey/line-pink.svg",
238
+ "line-lavender": "v1712912348/pupil-journey/line-lavender.svg",
239
+ "line-mint": "v1715356384/pupil-journey/line-mint.svg",
29
240
  };
30
241
 
31
- var oakColorTokens = {
32
- white: "#ffffff",
33
- grey10: "#f9f9f9",
34
- grey20: "#f2f2f2",
35
- grey30: "#e4e4e4",
36
- grey40: "#cacaca",
37
- grey50: "#808080",
38
- grey60: "#575757",
39
- grey70: "#2d2d2d",
40
- grey80: "#1b1b1b",
41
- black: "#222222",
42
- oakGreen: "#287c34",
43
- mint: "#bef2bd",
44
- mint30: "#ebfbeb",
45
- mint50: "#dff9de",
46
- mint110: "#93e892",
47
- aqua: "#b0e2de",
48
- aqua30: "#e7f6f5",
49
- aqua50: "#d7f1ef",
50
- aqua110: "#7cd8d0",
51
- lavender: "#a0b6f2",
52
- lavender30: "#e3e9fb",
53
- lavender50: "#bdcdf5",
54
- lavender110: "#7c9aec",
55
- pink: "#deb7d5",
56
- pink30: "#f5e9f2",
57
- pink50: "#efdbea",
58
- pink110: "#cf9cc3",
59
- lemon: "#ffe555",
60
- lemon30: "#fff7cc",
61
- lemon50: "#fff2aa",
62
- lemon110: "#fbd60e",
63
- amber: "#ff934e",
64
- amber30: "#ffece0",
242
+ var oakIconNames = Object.keys(icons);
243
+ /*
244
+ * NOTE: This file is separated from OakIcon to allow server side usage in next.js apps
245
+ */
246
+ /**
247
+ * returns true if the given string is a valid `OakIconName`
248
+ */
249
+ function isValidIconName(iconName) {
250
+ return oakIconNames.includes(iconName);
251
+ }
252
+ /**
253
+ * returns a Icon URL from Cloudinary if is a valid icon, otherwise returns undefined
254
+ */
255
+ function generateOakIconURL(iconName) {
256
+ var urlPath = "https://".concat(process.env.NEXT_PUBLIC_OAK_ASSETS_HOST, "/").concat(process.env.NEXT_PUBLIC_OAK_ASSETS_PATH);
257
+ if (isValidIconName(iconName)) {
258
+ return "".concat(urlPath, "/").concat(icons[iconName]);
259
+ }
260
+ else if (iconName.includes("subject")) {
261
+ return "".concat(urlPath, "/").concat(icons["books"]);
262
+ }
263
+ else {
264
+ return "".concat(urlPath, "/").concat(icons["question-mark"]);
265
+ }
266
+ }
267
+
268
+ function useShowPlaceholder() {
269
+ // Default to false so that we don't show the placeholder if the image is already complete
270
+ var _a = tslib.__read(React.useState(false), 2), showPlaceholder = _a[0], setShowPlaceholder = _a[1];
271
+ var setImg = React.useCallback(function (img) {
272
+ // the `load` or `error` event may never be called if the image is coming from the cache
273
+ // so we need to check the `complete` property as well as listen to the `onLoad` and `onError` events
274
+ img && setShowPlaceholder(!img.complete);
275
+ }, []);
276
+ return {
277
+ showPlaceholder: showPlaceholder,
278
+ setImg: setImg,
279
+ /**
280
+ * Wraps the `onLoad` and `onError` events to set the placeholder state
281
+ */
282
+ handleComplete: function (originalHandler) {
283
+ return function (event) {
284
+ if (originalHandler) {
285
+ originalHandler(event);
286
+ }
287
+ setShowPlaceholder(false);
288
+ };
289
+ },
290
+ };
291
+ }
292
+
293
+ var oakColorTokens = {
294
+ white: "#ffffff",
295
+ grey10: "#f9f9f9",
296
+ grey20: "#f2f2f2",
297
+ grey30: "#e4e4e4",
298
+ grey40: "#cacaca",
299
+ grey50: "#808080",
300
+ grey60: "#575757",
301
+ grey70: "#2d2d2d",
302
+ grey80: "#1b1b1b",
303
+ black: "#222222",
304
+ oakGreen: "#287c34",
305
+ mint: "#bef2bd",
306
+ mint30: "#ebfbeb",
307
+ mint50: "#dff9de",
308
+ mint110: "#93e892",
309
+ aqua: "#b0e2de",
310
+ aqua30: "#e7f6f5",
311
+ aqua50: "#d7f1ef",
312
+ aqua110: "#7cd8d0",
313
+ lavender: "#a0b6f2",
314
+ lavender30: "#e3e9fb",
315
+ lavender50: "#bdcdf5",
316
+ lavender110: "#7c9aec",
317
+ pink: "#deb7d5",
318
+ pink30: "#f5e9f2",
319
+ pink50: "#efdbea",
320
+ pink110: "#cf9cc3",
321
+ lemon: "#ffe555",
322
+ lemon30: "#fff7cc",
323
+ lemon50: "#fff2aa",
324
+ lemon110: "#fbd60e",
325
+ amber: "#ff934e",
326
+ amber30: "#ffece0",
65
327
  amber50: "#ffc8a6",
66
328
  red: "#dd0035",
67
329
  red30: "#f8d8e0",
@@ -232,18 +494,18 @@ var oakUiRoleTokensConst = [
232
494
  ];
233
495
  var oakUiRoleTokens = tslib.__spreadArray([], tslib.__read(oakUiRoleTokensConst), false);
234
496
 
235
- function parseColor(value) {
497
+ function parseColorFilter(value) {
236
498
  if (value === undefined || value === null) {
237
499
  return undefined;
238
500
  }
239
- if (value in oakColorTokens) {
240
- return oakColorTokens[value];
241
- }
242
501
  if (oakUiRoleTokens.includes(value)) {
243
502
  return function (_a) {
244
503
  var theme = _a.theme;
245
504
  var c = theme.uiColors[value];
246
- return oakColorTokens[c];
505
+ if (c && c in oakColorFilterTokens) {
506
+ return oakColorFilterTokens[c];
507
+ }
508
+ return undefined;
247
509
  };
248
510
  }
249
511
  }
@@ -301,20 +563,20 @@ var responsiveStyle = function (attr, getValues, parse) {
301
563
  }
302
564
  var parsed = parse(value);
303
565
  var cssValue = typeof parsed === "function" ? parsed(props) : parsed;
304
- return styled.css(templateObject_1$26 || (templateObject_1$26 = tslib.__makeTemplateObject(["\n ", ": ", ";\n "], ["\n ", ": ", ";\n "])), attr, cssValue);
566
+ return styled.css(templateObject_1$28 || (templateObject_1$28 = tslib.__makeTemplateObject(["\n ", ": ", ";\n "], ["\n ", ": ", ";\n "])), attr, cssValue);
305
567
  };
306
568
  var values = getValues(props);
307
569
  if (typeof values === "undefined") {
308
570
  return undefined;
309
571
  }
310
572
  if (!Array.isArray(values)) {
311
- return styled.css(templateObject_2$W || (templateObject_2$W = tslib.__makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), attrCss(values));
573
+ return styled.css(templateObject_2$X || (templateObject_2$X = tslib.__makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), attrCss(values));
312
574
  }
313
575
  if (values.length === 0) {
314
576
  return [];
315
577
  }
316
578
  return tslib.__spreadArray([
317
- styled.css(templateObject_3$E || (templateObject_3$E = tslib.__makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), attrCss(values[0]))
579
+ styled.css(templateObject_3$F || (templateObject_3$F = tslib.__makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), attrCss(values[0]))
318
580
  ], tslib.__read(breakpoints
319
581
  .slice(0, values.length)
320
582
  .map(function (breakpoint, i) {
@@ -322,15 +584,34 @@ var responsiveStyle = function (attr, getValues, parse) {
322
584
  if (value === undefined) {
323
585
  return undefined;
324
586
  }
325
- return styled.css(templateObject_5$h || (templateObject_5$h = tslib.__makeTemplateObject(["\n @media (min-width: ", "px) {\n ", "\n }\n "], ["\n @media (min-width: ", "px) {\n ", "\n }\n "])), breakpoint, styled.css(templateObject_4$o || (templateObject_4$o = tslib.__makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), attrCss(value)));
587
+ return styled.css(templateObject_5$h || (templateObject_5$h = tslib.__makeTemplateObject(["\n @media (min-width: ", "px) {\n ", "\n }\n "], ["\n @media (min-width: ", "px) {\n ", "\n }\n "])), breakpoint, styled.css(templateObject_4$p || (templateObject_4$p = tslib.__makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), attrCss(value)));
326
588
  })
327
589
  .filter(truthy)), false);
328
590
  };
329
591
  };
330
- var templateObject_1$26, templateObject_2$W, templateObject_3$E, templateObject_4$o, templateObject_5$h;
592
+ var templateObject_1$28, templateObject_2$X, templateObject_3$F, templateObject_4$p, templateObject_5$h;
331
593
 
332
- var colorStyle = styled.css(templateObject_1$25 || (templateObject_1$25 = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("color", function (props) { return props.$color; }, parseColor), responsiveStyle("background", function (props) { return props.$background; }, parseColor));
333
- var templateObject_1$25;
594
+ var colorFilterStyle = styled.css(templateObject_1$27 || (templateObject_1$27 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("filter", function (props) { return props.$colorFilter; }, function (value) { return parseColorFilter(value); }));
595
+ var templateObject_1$27;
596
+
597
+ function parseColor(value) {
598
+ if (value === undefined || value === null) {
599
+ return undefined;
600
+ }
601
+ if (value in oakColorTokens) {
602
+ return oakColorTokens[value];
603
+ }
604
+ if (oakUiRoleTokens.includes(value)) {
605
+ return function (_a) {
606
+ var theme = _a.theme;
607
+ var c = theme.uiColors[value];
608
+ return oakColorTokens[c];
609
+ };
610
+ }
611
+ }
612
+
613
+ var colorStyle = styled.css(templateObject_1$26 || (templateObject_1$26 = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("color", function (props) { return props.$color; }, parseColor), responsiveStyle("background", function (props) { return props.$background; }, parseColor));
614
+ var templateObject_1$26;
334
615
 
335
616
  var BASE_FONT_SIZE_PX = 16;
336
617
  var REM_DP = 3;
@@ -411,16 +692,16 @@ function parseSpacing(value) {
411
692
  return value;
412
693
  }
413
694
 
414
- var positionStyle = styled.css(templateObject_1$24 || (templateObject_1$24 = tslib.__makeTemplateObject(["\n ", "\n ", " \n ", " \n ", " \n ", " \n ", " \n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", " \n ", " \n ", " \n ", " \n ", " \n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("position", function (props) { return props.$position; }), responsiveStyle("top", function (props) { return props.$top; }, parseSpacing), responsiveStyle("right", function (props) { return props.$right; }, parseSpacing), responsiveStyle("bottom", function (props) { return props.$bottom; }, parseSpacing), responsiveStyle("left", function (props) { return props.$left; }, parseSpacing), responsiveStyle("inset", function (props) { return props.$inset; }, parseSpacing), responsiveStyle("overflow", function (props) { return props.$overflow; }), responsiveStyle("overflow-x", function (props) { return props.$overflowX; }), responsiveStyle("overflow-y", function (props) { return props.$overflowY; }), responsiveStyle("object-fit", function (props) { return props.$objectFit; }), responsiveStyle("object-position", function (props) { return props.$objectPosition; }), responsiveStyle("pointer-events", function (props) { return props.$pointerEvents; }), responsiveStyle("visibility", function (props) { return props.$visibility; }), responsiveStyle("vertical-align", function (props) { return props.$verticalAlign; }));
415
- var templateObject_1$24;
695
+ var positionStyle = styled.css(templateObject_1$25 || (templateObject_1$25 = tslib.__makeTemplateObject(["\n ", "\n ", " \n ", " \n ", " \n ", " \n ", " \n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", " \n ", " \n ", " \n ", " \n ", " \n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("position", function (props) { return props.$position; }), responsiveStyle("top", function (props) { return props.$top; }, parseSpacing), responsiveStyle("right", function (props) { return props.$right; }, parseSpacing), responsiveStyle("bottom", function (props) { return props.$bottom; }, parseSpacing), responsiveStyle("left", function (props) { return props.$left; }, parseSpacing), responsiveStyle("inset", function (props) { return props.$inset; }, parseSpacing), responsiveStyle("overflow", function (props) { return props.$overflow; }), responsiveStyle("overflow-x", function (props) { return props.$overflowX; }), responsiveStyle("overflow-y", function (props) { return props.$overflowY; }), responsiveStyle("object-fit", function (props) { return props.$objectFit; }), responsiveStyle("object-position", function (props) { return props.$objectPosition; }), responsiveStyle("pointer-events", function (props) { return props.$pointerEvents; }), responsiveStyle("visibility", function (props) { return props.$visibility; }), responsiveStyle("vertical-align", function (props) { return props.$verticalAlign; }));
696
+ var templateObject_1$25;
416
697
 
417
- var sizeStyle = styled.css(templateObject_1$23 || (templateObject_1$23 = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("width", function (props) { return props.$width; }, parseSpacing), responsiveStyle("min-width", function (props) { return props.$minWidth; }, parseSpacing), responsiveStyle("max-width", function (props) { return props.$maxWidth; }, parseSpacing), responsiveStyle("height", function (props) { return props.$height; }, parseSpacing), responsiveStyle("min-height", function (props) { return props.$minHeight; }, parseSpacing), responsiveStyle("max-height", function (props) { return props.$maxHeight; }, parseSpacing), responsiveStyle("aspect-ratio", function (props) { return props.$aspectRatio; }), responsiveStyle("box-sizing", function (props) { return props.$boxSizing; }));
418
- var templateObject_1$23;
698
+ var sizeStyle = styled.css(templateObject_1$24 || (templateObject_1$24 = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("width", function (props) { return props.$width; }, parseSpacing), responsiveStyle("min-width", function (props) { return props.$minWidth; }, parseSpacing), responsiveStyle("max-width", function (props) { return props.$maxWidth; }, parseSpacing), responsiveStyle("height", function (props) { return props.$height; }, parseSpacing), responsiveStyle("min-height", function (props) { return props.$minHeight; }, parseSpacing), responsiveStyle("max-height", function (props) { return props.$maxHeight; }, parseSpacing), responsiveStyle("aspect-ratio", function (props) { return props.$aspectRatio; }), responsiveStyle("box-sizing", function (props) { return props.$boxSizing; }));
699
+ var templateObject_1$24;
419
700
 
420
- var paddingAll = styled.css(templateObject_1$22 || (templateObject_1$22 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("padding", function (props) { return props.$pa; }, parseSpacing));
421
- var paddingHorizontal = styled.css(templateObject_2$V || (templateObject_2$V = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("padding-left", function (props) { return props.$ph; }, parseSpacing), responsiveStyle("padding-right", function (props) { return props.$ph; }, parseSpacing));
422
- var paddingVertical = styled.css(templateObject_3$D || (templateObject_3$D = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("padding-top", function (props) { return props.$pv; }, parseSpacing), responsiveStyle("padding-bottom", function (props) { return props.$pv; }, parseSpacing));
423
- var paddingLeft = styled.css(templateObject_4$n || (templateObject_4$n = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("padding-left", function (props) { return props.$pl; }, parseSpacing));
701
+ var paddingAll = styled.css(templateObject_1$23 || (templateObject_1$23 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("padding", function (props) { return props.$pa; }, parseSpacing));
702
+ var paddingHorizontal = styled.css(templateObject_2$W || (templateObject_2$W = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("padding-left", function (props) { return props.$ph; }, parseSpacing), responsiveStyle("padding-right", function (props) { return props.$ph; }, parseSpacing));
703
+ var paddingVertical = styled.css(templateObject_3$E || (templateObject_3$E = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("padding-top", function (props) { return props.$pv; }, parseSpacing), responsiveStyle("padding-bottom", function (props) { return props.$pv; }, parseSpacing));
704
+ var paddingLeft = styled.css(templateObject_4$o || (templateObject_4$o = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("padding-left", function (props) { return props.$pl; }, parseSpacing));
424
705
  var paddingRight = styled.css(templateObject_5$g || (templateObject_5$g = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("padding-right", function (props) { return props.$pr; }, parseSpacing));
425
706
  var paddingTop = styled.css(templateObject_6$d || (templateObject_6$d = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("padding-top", function (props) { return props.$pt; }, parseSpacing));
426
707
  var paddingBottom = styled.css(templateObject_7$7 || (templateObject_7$7 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("padding-bottom", function (props) { return props.$pb; }, parseSpacing));
@@ -434,7 +715,7 @@ var marginBottom = styled.css(templateObject_14$1 || (templateObject_14$1 = tsli
434
715
  var marginStyle = styled.css(templateObject_15$1 || (templateObject_15$1 = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), marginAll, marginHorizontal, marginVertical, marginLeft, marginRight, marginTop, marginBottom);
435
716
  var paddingStyle = styled.css(templateObject_16$1 || (templateObject_16$1 = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), paddingAll, paddingHorizontal, paddingVertical, paddingLeft, paddingRight, paddingTop, paddingBottom);
436
717
  var spacingStyle = styled.css(templateObject_17$1 || (templateObject_17$1 = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), paddingStyle, marginStyle);
437
- var templateObject_1$22, templateObject_2$V, templateObject_3$D, templateObject_4$n, templateObject_5$g, templateObject_6$d, templateObject_7$7, templateObject_8$2, templateObject_9$1, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1;
718
+ var templateObject_1$23, templateObject_2$W, templateObject_3$E, templateObject_4$o, templateObject_5$g, templateObject_6$d, templateObject_7$7, templateObject_8$2, templateObject_9$1, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1;
438
719
 
439
720
  var oakBorderWidthTokens = {
440
721
  "border-solid-none": 0,
@@ -475,10 +756,10 @@ var parseBorderRadius = function (value) {
475
756
  }
476
757
  };
477
758
 
478
- var borderAll = styled.css(templateObject_1$21 || (templateObject_1$21 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border", function (props) { return props.$ba; }, parseBorder));
479
- var borderTop = styled.css(templateObject_2$U || (templateObject_2$U = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-top", function (props) { return props.$bt; }, parseBorder));
480
- var borderRight = styled.css(templateObject_3$C || (templateObject_3$C = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-right", function (props) { return props.$br; }, parseBorder));
481
- var borderBottom = styled.css(templateObject_4$m || (templateObject_4$m = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-bottom", function (props) { return props.$bb; }, parseBorder));
759
+ var borderAll = styled.css(templateObject_1$22 || (templateObject_1$22 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border", function (props) { return props.$ba; }, parseBorder));
760
+ var borderTop = styled.css(templateObject_2$V || (templateObject_2$V = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-top", function (props) { return props.$bt; }, parseBorder));
761
+ var borderRight = styled.css(templateObject_3$D || (templateObject_3$D = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-right", function (props) { return props.$br; }, parseBorder));
762
+ var borderBottom = styled.css(templateObject_4$n || (templateObject_4$n = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-bottom", function (props) { return props.$bb; }, parseBorder));
482
763
  var borderLeft = styled.css(templateObject_5$f || (templateObject_5$f = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-left", function (props) { return props.$bl; }, parseBorder));
483
764
  var borderHorizontal = styled.css(templateObject_6$c || (templateObject_6$c = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("border-left", function (props) { return props.$bh; }, parseBorder), responsiveStyle("border-right", function (props) { return props.$bh; }, parseBorder));
484
765
  var borderVertical = styled.css(templateObject_7$6 || (templateObject_7$6 = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("border-top", function (props) { return props.$bv; }, parseBorder), responsiveStyle("border-bottom", function (props) { return props.$bv; }, parseBorder));
@@ -492,10 +773,10 @@ var borderRadiusTop = styled.css(templateObject_14 || (templateObject_14 = tslib
492
773
  var borderRadiusBottom = styled.css(templateObject_15 || (templateObject_15 = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("border-bottom-left-radius", function (props) { return props.$bbr; }, parseBorderRadius), responsiveStyle("border-bottom-right-radius", function (props) { return props.$bbr; }, parseBorderRadius));
493
774
  var borderStrokeStyle = styled.css(templateObject_16 || (templateObject_16 = tslib.__makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), responsiveStyle("border-style", function (props) { return props.$borderStyle; }));
494
775
  var borderStyle = styled.css(templateObject_17 || (templateObject_17 = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), borderAll, borderTop, borderRight, borderBottom, borderLeft, borderHorizontal, borderVertical, borderColor, borderRadius, borderRadiusTopLeft, borderRadiusTopRight, borderRadiusBottomLeft, borderRadiusBottomRight, borderRadiusTop, borderRadiusBottom, borderStrokeStyle);
495
- var templateObject_1$21, templateObject_2$U, templateObject_3$C, templateObject_4$m, templateObject_5$f, templateObject_6$c, templateObject_7$6, templateObject_8$1, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17;
776
+ var templateObject_1$22, templateObject_2$V, templateObject_3$D, templateObject_4$n, templateObject_5$f, templateObject_6$c, templateObject_7$6, templateObject_8$1, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17;
496
777
 
497
- var displayStyle = styled.css(templateObject_1$20 || (templateObject_1$20 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("display", function (props) { return props.$display; }));
498
- var templateObject_1$20;
778
+ var displayStyle = styled.css(templateObject_1$21 || (templateObject_1$21 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("display", function (props) { return props.$display; }));
779
+ var templateObject_1$21;
499
780
 
500
781
  var oakDropShadowTokens = {
501
782
  "drop-shadow-standard": "0 0.5rem 0.5rem rgba(92, 92, 92, 20%)",
@@ -521,8 +802,8 @@ var parseDropShadow = function (variant) {
521
802
  }
522
803
  };
523
804
 
524
- var dropShadowStyle = styled.css(templateObject_1$1$ || (templateObject_1$1$ = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("box-shadow", function (props) { return props.$dropShadow; }, parseDropShadow));
525
- var templateObject_1$1$;
805
+ var dropShadowStyle = styled.css(templateObject_1$20 || (templateObject_1$20 = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("box-shadow", function (props) { return props.$dropShadow; }, parseDropShadow));
806
+ var templateObject_1$20;
526
807
 
527
808
  var oakOpacityTokens = {
528
809
  transparent: 0,
@@ -540,11 +821,11 @@ var parseOpacity = function (variant) {
540
821
  }
541
822
  };
542
823
 
543
- var opacityStyle = styled.css(templateObject_1$1_ || (templateObject_1$1_ = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("opacity", function (props) { return props.$opacity; }, parseOpacity));
544
- var templateObject_1$1_;
824
+ var opacityStyle = styled.css(templateObject_1$1$ || (templateObject_1$1$ = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("opacity", function (props) { return props.$opacity; }, parseOpacity));
825
+ var templateObject_1$1$;
545
826
 
546
- var transformStyle = styled.css(templateObject_1$1Z || (templateObject_1$1Z = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("transform", function (props) { return props.$transform; }), responsiveStyle("transform-origin", function (props) { return props.$transformOrigin; }));
547
- var templateObject_1$1Z;
827
+ var transformStyle = styled.css(templateObject_1$1_ || (templateObject_1$1_ = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("transform", function (props) { return props.$transform; }), responsiveStyle("transform-origin", function (props) { return props.$transformOrigin; }));
828
+ var templateObject_1$1_;
548
829
 
549
830
  var oakTransitionTokens = {
550
831
  "standard-ease": "all 0.3s ease",
@@ -560,8 +841,8 @@ var parseTransitions = function (variant) {
560
841
  }
561
842
  };
562
843
 
563
- var transitionStyle = styled.css(templateObject_1$1Y || (templateObject_1$1Y = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("transition", function (props) { return props.$transition; }, parseTransitions));
564
- var templateObject_1$1Y;
844
+ var transitionStyle = styled.css(templateObject_1$1Z || (templateObject_1$1Z = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("transition", function (props) { return props.$transition; }, parseTransitions));
845
+ var templateObject_1$1Z;
565
846
 
566
847
  var oakFontSizeTokens = {
567
848
  "font-size-1": 12,
@@ -665,8 +946,8 @@ var parseLetterSpacing = function (font) {
665
946
  return (_a = oakFontTokens[font]) === null || _a === void 0 ? void 0 : _a[3];
666
947
  };
667
948
 
668
- var typographyStyle = styled.css(templateObject_1$1X || (templateObject_1$1X = tslib.__makeTemplateObject(["\n font-family:\n --var(google-font), Lexend, sans-serif; // FIXME: this should be a css variable ?\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n font-family:\n --var(google-font), Lexend, sans-serif; // FIXME: this should be a css variable ?\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("font-weight", function (props) { return props.$font; }, parseFontWeight), responsiveStyle("font-size", function (props) { return props.$font; }, parseFontSize), responsiveStyle("line-height", function (props) { return props.$font; }, parseLineHeight), responsiveStyle("letter-spacing", function (props) { return props.$font; }, parseLetterSpacing), responsiveStyle("text-align", function (props) { return props.$textAlign; }), responsiveStyle("text-decoration", function (props) { return props.$textDecoration; }), responsiveStyle("white-space", function (props) { return props.$whiteSpace; }), responsiveStyle("word-wrap", function (props) { return props.$wordWrap; }), responsiveStyle("text-overflow", function (props) { return props.$textOverflow; }), responsiveStyle("overflow", function (props) { return props.$overflow; }), responsiveStyle("text-wrap", function (props) { return props.$textWrap; }));
669
- var templateObject_1$1X;
949
+ var typographyStyle = styled.css(templateObject_1$1Y || (templateObject_1$1Y = tslib.__makeTemplateObject(["\n font-family:\n --var(google-font), Lexend, sans-serif; // FIXME: this should be a css variable ?\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n font-family:\n --var(google-font), Lexend, sans-serif; // FIXME: this should be a css variable ?\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("font-weight", function (props) { return props.$font; }, parseFontWeight), responsiveStyle("font-size", function (props) { return props.$font; }, parseFontSize), responsiveStyle("line-height", function (props) { return props.$font; }, parseLineHeight), responsiveStyle("letter-spacing", function (props) { return props.$font; }, parseLetterSpacing), responsiveStyle("text-align", function (props) { return props.$textAlign; }), responsiveStyle("text-decoration", function (props) { return props.$textDecoration; }), responsiveStyle("white-space", function (props) { return props.$whiteSpace; }), responsiveStyle("word-wrap", function (props) { return props.$wordWrap; }), responsiveStyle("text-overflow", function (props) { return props.$textOverflow; }), responsiveStyle("overflow", function (props) { return props.$overflow; }), responsiveStyle("text-wrap", function (props) { return props.$textWrap; }));
950
+ var templateObject_1$1Y;
670
951
 
671
952
  // For help with defining z-index values, refer to this article:
672
953
  // https://www.smashingmagazine.com/2021/02/css-z-index-large-projects/#a-new-solution
@@ -694,17 +975,17 @@ var parseZIndex = function (value) {
694
975
  return oakZIndexTokens[value];
695
976
  };
696
977
 
697
- var zIndexStyle = styled.css(templateObject_1$1W || (templateObject_1$1W = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("z-index", function (props) { return props.$zIndex; }, parseZIndex));
698
- var templateObject_1$1W;
978
+ var zIndexStyle = styled.css(templateObject_1$1X || (templateObject_1$1X = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("z-index", function (props) { return props.$zIndex; }, parseZIndex));
979
+ var templateObject_1$1X;
699
980
 
700
- var scrollMarginTop = styled.css(templateObject_1$1V || (templateObject_1$1V = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("scroll-margin-top", function (props) { return props.$scrollMarginTop; }, parseSpacing));
701
- var scrollMarginLeft = styled.css(templateObject_2$T || (templateObject_2$T = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("scroll-margin-left", function (props) { return props.$scrollMarginLeft; }, parseSpacing));
702
- var scrollSnapStyle = styled.css(templateObject_3$B || (templateObject_3$B = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), scrollMarginTop, scrollMarginLeft);
703
- var templateObject_1$1V, templateObject_2$T, templateObject_3$B;
981
+ var scrollMarginTop = styled.css(templateObject_1$1W || (templateObject_1$1W = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("scroll-margin-top", function (props) { return props.$scrollMarginTop; }, parseSpacing));
982
+ var scrollMarginLeft = styled.css(templateObject_2$U || (templateObject_2$U = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("scroll-margin-left", function (props) { return props.$scrollMarginLeft; }, parseSpacing));
983
+ var scrollSnapStyle = styled.css(templateObject_3$C || (templateObject_3$C = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), scrollMarginTop, scrollMarginLeft);
984
+ var templateObject_1$1W, templateObject_2$U, templateObject_3$C;
704
985
 
705
- var oakBoxCss = styled.css(templateObject_2$S || (templateObject_2$S = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), positionStyle, sizeStyle, spacingStyle, colorStyle, borderStyle, displayStyle, dropShadowStyle, opacityStyle, transformStyle, transitionStyle, typographyStyle, zIndexStyle, scrollSnapStyle, function (props) {
986
+ var oakBoxCss = styled.css(templateObject_2$T || (templateObject_2$T = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), positionStyle, sizeStyle, spacingStyle, colorStyle, borderStyle, displayStyle, dropShadowStyle, opacityStyle, transformStyle, transitionStyle, typographyStyle, zIndexStyle, scrollSnapStyle, function (props) {
706
987
  /* onClick might be passed in the useClickableCard pattern */
707
- return props.onClick && styled.css(templateObject_1$1U || (templateObject_1$1U = tslib.__makeTemplateObject(["\n &:hover {\n cursor: pointer;\n }\n "], ["\n &:hover {\n cursor: pointer;\n }\n "])));
988
+ return props.onClick && styled.css(templateObject_1$1V || (templateObject_1$1V = tslib.__makeTemplateObject(["\n &:hover {\n cursor: pointer;\n }\n "], ["\n &:hover {\n cursor: pointer;\n }\n "])));
708
989
  });
709
990
  /**
710
991
  * OakBox exposes all the styles that are available styles on a div tag. These include:
@@ -723,31 +1004,58 @@ var oakBoxCss = styled.css(templateObject_2$S || (templateObject_2$S = tslib.__m
723
1004
  * - scroll-margin-top/left
724
1005
  *
725
1006
  */
726
- var OakBox = styled__default.default.div(templateObject_3$A || (templateObject_3$A = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), oakBoxCss);
727
- var templateObject_1$1U, templateObject_2$S, templateObject_3$A;
728
-
729
- var flexStyle = styled.css(templateObject_1$1T || (templateObject_1$1T = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("display", function (props) { var _a; return (_a = props.$display) !== null && _a !== void 0 ? _a : "flex"; }), responsiveStyle("flex-direction", function (props) { return props.$flexDirection; }), responsiveStyle("flex-wrap", function (props) { return props.$flexWrap; }), responsiveStyle("align-items", function (props) { return props.$alignItems; }), responsiveStyle("align-content", function (props) { return props.$alignContent; }), responsiveStyle("justify-content", function (props) { return props.$justifyContent; }), responsiveStyle("align-self", function (props) { return props.$alignSelf; }), responsiveStyle("order", function (props) { return props.$order; }), responsiveStyle("flex-grow", function (props) { return props.$flexGrow; }), responsiveStyle("flex-shrink", function (props) { return props.$flexShrink; }), responsiveStyle("flex-basis", function (props) { return props.$flexBasis; }, parseSpacing), responsiveStyle("gap", function (props) { return props.$gap; }, parseSpacing), responsiveStyle("column-gap", function (props) { return props.$columnGap; }, parseSpacing), responsiveStyle("row-gap", function (props) { return props.$rowGap; }, parseSpacing));
730
- var templateObject_1$1T;
1007
+ var OakBox = styled__default.default.div(templateObject_3$B || (templateObject_3$B = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), oakBoxCss);
1008
+ var templateObject_1$1V, templateObject_2$T, templateObject_3$B;
731
1009
 
732
- var oakFlexCss = flexStyle;
1010
+ var oakPlaceholder = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA2NCA2NCI+PHBhdGggZmlsbD0iIzIyMiIgZD0iTTI4Ljc3OSAxOS4xNzZhMjcuMTkxIDI3LjE5MSAwIDAgMC0zLjggMS42IDE2LjcgMTYuNyAwIDAgMC03LjEgOC40YzAgLjEtLjEuMi0uMS4zLS43IDIuNC0uNiAyIDEuMyAyLjMgMS45LjMgMSAuNSAxIDEuMy0uMSA4LjggNC4xIDE1LjEgMTEuNCAxOS42YTEuNSAxLjUgMCAwIDAgMS43LjJjNS43LTIuNiA5LjMtNyAxMC4zLTEzLjJhMSAxIDAgMCAxIDEtMWwzLS4yYy44IDAgMS4zLjIgMS4yIDEuMmExNy45IDE3LjkgMCAwIDEtMy4yIDkuMiAyMy43IDIzLjcgMCAwIDEtMTAuOSA5LjEgNS40MDEgNS40MDEgMCAwIDEtNC41LS4yIDI2LjI5OCAyNi4yOTggMCAwIDEtOC41LTYuNiAyNS45IDI1LjkgMCAwIDEtNi40LTE0LjRjMC0uNi0uMi0uNy0uOC0uOC0yLjUtLjQtMi41LS4xLTIuMy0yLjlhMTkuMyAxOS4zIDAgMCAxIDEwLjgtMTYuNiAzOC45OTkgMzguOTk5IDAgMCAxIDUuNy0yLjEgMi4xIDIuMSAwIDAgMCAuOS0xLjMgMTQuMSAxNC4xIDAgMCAxIDMuNS02LjNsLjMtLjNjMS45LTIgMi42LTIgNC4zLjJsLjQuNWMxLjEgMS4xIDEgMS41LS4xIDIuNmExMS45IDExLjkgMCAwIDAtMy4yIDQuNCAxNi45IDE2LjkgMCAwIDEgNy41IDIuM2M1LjcgMy41IDkuMiA4LjMgOS45IDE1IC4wMTYuOTAxLS4wMTcgMS44MDItLjEgMi43IDAgLjgtLjYgMS0xLjIgMS4yYTE2LjEgMTYuMSAwIDAgMS0xMS0uNyAxNy45MDEgMTcuOTAxIDAgMCAxLTEwLjktMTMuNiA5Ljc5NiA5Ljc5NiAwIDAgMS0uMS0xLjlabTE4LjEgMTIuMmMuNC01LjUtNi45LTEyLjYtMTMtMTIuMS41IDYuNSA3LjYgMTIuOCAxMyAxMi4xWiIgb3BhY2l0eT0iLjEiLz48L3N2Zz4=";
1011
+ var clickStyles = styled.css(templateObject_2$S || (templateObject_2$S = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
1012
+ /* onClick might be passed in the useClickableCard pattern */
1013
+ return props.onClick && styled.css(templateObject_1$1U || (templateObject_1$1U = tslib.__makeTemplateObject(["\n &:hover {\n cursor: pointer;\n }\n "], ["\n &:hover {\n cursor: pointer;\n }\n "])));
1014
+ });
1015
+ var placeholderStyles = styled.css(templateObject_4$m || (templateObject_4$m = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
1016
+ return props.$showOakPlaceholder && styled.css(templateObject_3$A || (templateObject_3$A = tslib.__makeTemplateObject(["\n background-image: url(", ");\n background-color: ", ";\n background-size: ", ";\n background-position: center;\n background-repeat: no-repeat;\n "], ["\n background-image: url(", ");\n background-color: ", ";\n background-size: ", ";\n background-position: center;\n background-repeat: no-repeat;\n "])), oakPlaceholder, parseColor("bg-decorative2-very-subdued"), parseSpacing("spacing-64"));
1017
+ });
1018
+ var StyledFillImage = styled__default.default(Image__default.default)(templateObject_6$b || (templateObject_6$b = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n"])), colorFilterStyle, clickStyles, placeholderStyles, function (props) { return styled.css(templateObject_5$e || (templateObject_5$e = tslib.__makeTemplateObject(["\n object-fit: ", ";\n "], ["\n object-fit: ", ";\n "])), props.$objectFit ? props.$objectFit : "contain"); });
1019
+ var StyledResponsiveImage = styled__default.default(Image__default.default)(templateObject_7$5 || (templateObject_7$5 = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n width: 100%;\n height: auto;\n"], ["\n ", "\n ", "\n ", "\n width: 100%;\n height: auto;\n"])), colorFilterStyle, clickStyles, placeholderStyles);
733
1020
  /**
734
- * Flex sets `display: flex;` and exposes various flex props, along with Box
735
- * props.
1021
+ * A wrapper for NextJs's Image component.
1022
+ *
1023
+ * Use this for all image types as well as icons.
1024
+ * Can accept remote urls provided they are whitelisted in next.config.js and relative urls for local images provided they begin with a "/".
1025
+ * Set the width and height of the image through the `$width` and `$height` props when the aspect ratio is not known. This will letterbox the image to avoid stretching.
1026
+ * Alternatively pass `width` and `height` props when the aspect ratio is known and use $minWidth to set the rendered width, avoiding letter-boxing.
1027
+ * NB. for letterboxed images, $background controls the color of the letterbox not the image.
1028
+ * `positionStyle` and `spacingStyle` props are also exposed for container.
1029
+ * sizes is exposed for further optimisation read Next docs for more info.
736
1030
  *
737
- * ## Usage
738
- * Before adding props to this component, think about whether it makes sense
739
- * to add it to Box instead, as this component extends that.
740
1031
  */
741
- var OakFlex = styled__default.default(OakBox)(templateObject_1$1S || (templateObject_1$1S = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), flexStyle);
742
- var templateObject_1$1S;
1032
+ var OakImage = function (_a) {
1033
+ var props = tslib.__rest(_a, []);
1034
+ var as = props.as, src = props.src, alt = props.alt, width = props.width, height = props.height, sizes = props.sizes, _b = props.$width, $width = _b === void 0 ? "100%" : _b, _c = props.$position, $position = _c === void 0 ? "relative" : _c, $colorFilter = props.$colorFilter, _d = props.placeholder, placeholder = _d === void 0 ? "oak" : _d, unoptimized = props.unoptimized, imageProps = props.imageProps, $objectFit = props.$objectFit, onLoad = props.onLoad, onError = props.onError, rest = tslib.__rest(props, ["as", "src", "alt", "width", "height", "sizes", "$width", "$position", "$colorFilter", "placeholder", "unoptimized", "imageProps", "$objectFit", "onLoad", "onError"]);
1035
+ var finalPlaceholder = placeholder === "oak" ? undefined : placeholder;
1036
+ var _e = useShowPlaceholder(), showPlaceholder = _e.showPlaceholder, handleComplete = _e.handleComplete, setImg = _e.setImg;
1037
+ // We don't know the aspect ratio of the image, so we must use fill and letterbox it to avoid stretching
1038
+ // Use $width and $height to set the width and height of the image container
1039
+ if (!width || !height) {
1040
+ return (React__default.default.createElement(OakBox, tslib.__assign({ as: "span", "$display": "block", "$position": $position, "$width": $width }, rest),
1041
+ React__default.default.createElement(StyledFillImage, tslib.__assign({ ref: setImg, as: as !== null && as !== void 0 ? as : Image__default.default, src: src, alt: alt, sizes: sizes, fill: true, "$colorFilter": $colorFilter, placeholder: finalPlaceholder, "$showOakPlaceholder": placeholder === "oak" && showPlaceholder, unoptimized: unoptimized, onLoad: handleComplete(onLoad), onError: handleComplete(onError), "$objectFit": $objectFit }, imageProps))));
1042
+ }
1043
+ // When we know the aspect ratio, we can use Image's repsonsive layout
1044
+ // Use $minWidth to set the width with auto height
1045
+ return (React__default.default.createElement(OakBox, tslib.__assign({ as: "span", "$display": "block", "$maxWidth": "spacing-0", "$position": $position }, rest),
1046
+ React__default.default.createElement(StyledResponsiveImage, tslib.__assign({ ref: setImg, as: as !== null && as !== void 0 ? as : Image__default.default, src: src, alt: alt, width: width, height: height, sizes: sizes, unoptimized: unoptimized, "$colorFilter": $colorFilter, placeholder: finalPlaceholder, "$showOakPlaceholder": placeholder === "oak" && showPlaceholder, onLoad: handleComplete(onLoad), onError: handleComplete(onError) }, imageProps))));
1047
+ };
1048
+ var templateObject_1$1U, templateObject_2$S, templateObject_3$A, templateObject_4$m, templateObject_5$e, templateObject_6$b, templateObject_7$5;
743
1049
 
744
1050
  /**
745
- * Span renders a `span` (inline text) component, exposing all the typography props.
746
- * ## Usage
747
- * Use this component when you want to apply styles to a piece of inline text.
1051
+ * A wrapper around OakImage which uses the image-map.json file to map icon names to image paths.
748
1052
  */
749
- var OakSpan = styled__default.default.span(templateObject_1$1R || (templateObject_1$1R = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), colorStyle, opacityStyle, marginStyle, paddingStyle, borderStyle, typographyStyle, positionStyle);
750
- var templateObject_1$1R;
1053
+ var OakIcon = function (props) {
1054
+ var iconName = props.iconName, alt = props.alt, iconWidth = props.iconWidth, iconHeight = props.iconHeight, _a = props.$width, $width = _a === void 0 ? iconWidth !== null && iconWidth !== void 0 ? iconWidth : "spacing-32" : _a, _b = props.$height, $height = _b === void 0 ? iconHeight !== null && iconHeight !== void 0 ? iconHeight : "spacing-32" : _b, _c = props.$minHeight, $minHeight = _c === void 0 ? $height : _c, _d = props.$minWidth, $minWidth = _d === void 0 ? $width : _d; props.imageProps; var rest = tslib.__rest(props, ["iconName", "alt", "iconWidth", "iconHeight", "$width", "$height", "$minHeight", "$minWidth", "imageProps"]);
1055
+ return (React__default.default.createElement(OakImage, tslib.__assign({ src: generateOakIconURL(iconName), alt: alt !== null && alt !== void 0 ? alt : "", "$width": $width, "$height": $height, "$minHeight": $minHeight, "$minWidth": $minWidth, placeholder: "empty",
1056
+ // Icons should not be optimised since the SVG is already as small as it can be and should be served directly
1057
+ unoptimized: true }, rest)));
1058
+ };
751
1059
 
752
1060
  var Underline = function () { return (React__default.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 242 7", fill: "none", preserveAspectRatio: "none" },
753
1061
  React__default.default.createElement("path", { d: "M241.809 5.35522C238.36 6.16872 234.702 6.32558 230.891 6.32486C205.669 6.32316 180.5 6.37674 155.305 6.30837C129.075 6.24358 102.854 6.03729 76.6237 5.95308C56.5815 5.88912 36.5201 5.94726 16.4689 5.88333C12.7528 5.83207 9.06734 5.66827 5.46556 5.3943C2.2246 5.18082 0.243077 4.15307 0.612482 3.14495C0.747438 2.77609 0.777943 2.40475 0.703578 2.03516C0.55282 1.68536 0.336376 1.33881 0.0553455 0.997265C1.97028 0.852173 3.91666 0.752723 5.87716 0.699803C20.5698 0.635225 35.2904 0.4596 49.9632 0.59757C65.3746 0.744085 80.7791 0.654862 96.1825 0.682135C131.421 0.745426 166.657 0.827222 201.889 0.927517C210.582 0.955764 219.254 1.16715 227.928 1.3286C230.171 1.37618 232.39 1.49113 234.554 1.67184C239.334 2.0603 241.604 3.03436 241.735 4.57053C241.705 4.81749 241.766 5.04471 241.809 5.35522ZM9.4054 5.0229L9.4071 4.83429L6.81271 4.84324C6.81204 4.91813 6.81136 4.99303 6.81066 5.07069L9.4054 5.0229ZM9.13633 1.89234C7.94722 2.89775 7.94725 2.89774 9.92041 2.8521C9.70711 2.53109 9.43974 2.21027 9.18139 1.89219L9.13633 1.89234ZM72.3962 1.26072L72.5866 1.12415L68.0824 1.1397L68.0812 1.27561L72.3962 1.26072ZM73.8843 3.05572L74.0187 3.14677L76.4058 3.13853L76.4066 3.04701L73.8843 3.05572ZM5.19841 1.04886L5.04392 1.20194L8.42203 1.19028L8.4234 1.03773L5.19841 1.04886Z", fill: "currentColor" }))); };
@@ -801,7 +1109,7 @@ var svgMap = {
801
1109
  "icon-background": IconBackground,
802
1110
  scribble: Scribble,
803
1111
  };
804
- var StyledSvg$2 = styled__default.default.svg(templateObject_1$1Q || (templateObject_1$1Q = tslib.__makeTemplateObject(["\n ", ";\n transition: all 0.3s ease;\n"], ["\n ", ";\n transition: all 0.3s ease;\n"])), oakBoxCss);
1112
+ var StyledSvg$2 = styled__default.default.svg(templateObject_1$1T || (templateObject_1$1T = tslib.__makeTemplateObject(["\n ", ";\n transition: all 0.3s ease;\n"], ["\n ", ";\n transition: all 0.3s ease;\n"])), oakBoxCss);
805
1113
  /**
806
1114
  * This is component used for rendering SVGs that don't belong to be rendered with OakIcon component
807
1115
  * ie. UI elements that are not icons/illustratons but are part of the design system (underline, etc)
@@ -813,383 +1121,321 @@ var OakSvg = function (props) {
813
1121
  };
814
1122
  return (React__default.default.createElement(StyledSvg$2, tslib.__assign({ "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%" }, props), getSvgByName(props.name)));
815
1123
  };
816
- var templateObject_1$1Q;
1124
+ var templateObject_1$1T;
817
1125
 
818
- var internalButtonCss = styled.css(templateObject_1$1P || (templateObject_1$1P = tslib.__makeTemplateObject(["\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n text-align: left;\n font-family: unset;\n outline: none;\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n &:disabled {\n pointer-events: none;\n cursor: default;\n }\n"], ["\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n text-align: left;\n font-family: unset;\n outline: none;\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n &:disabled {\n pointer-events: none;\n cursor: default;\n }\n"])), typographyStyle, colorStyle, spacingStyle, displayStyle, borderStyle, dropShadowStyle);
819
- var UnstyledInternalButton = function (props) {
820
- var onClick = props.onClick, onHovered = props.onHovered, _a = props.element, Component = _a === void 0 ? "button" : _a, rest = tslib.__rest(props, ["onClick", "onHovered", "element"]);
821
- var hoverStart = React.useRef(null);
822
- var handleClick = function (event) {
823
- if (onClick) {
824
- onClick(event);
825
- }
826
- };
827
- var handleMouseEnter = function (event) {
828
- hoverStart.current = event.timeStamp;
829
- };
830
- var handleMouseLeave = function (event) {
831
- if (hoverStart.current === null) {
832
- return;
833
- }
834
- var delta = event.timeStamp - hoverStart.current;
835
- hoverStart.current = null;
836
- if (onHovered) {
837
- onHovered(event, delta);
838
- }
839
- };
840
- return (React__default.default.createElement(Component, tslib.__assign({}, rest, { onClick: handleClick, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave })));
841
- };
842
1126
  /**
843
- *
844
- * An unstyled button to be used as a basis for all UI button components.
845
- * The following callbacks are available for tracking focus events:
846
- *
847
- * ### onClick
848
- * `onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`
849
-
850
- * ### onHovered
851
- * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>
852
- * called after a mouseEnter and mouseLeave event has happened
853
- *
854
- * NB. We must export a styled component for it to be inheritable
1127
+ * A wrapper around `OakIcon` which applies a rounded background.
1128
+ * Supports either an icon name or an image src
855
1129
  */
856
- var InternalButton = styled__default.default(UnstyledInternalButton)(templateObject_2$R || (templateObject_2$R = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), internalButtonCss);
857
- var templateObject_1$1P, templateObject_2$R;
1130
+ var OakRoundIcon = function (_a) {
1131
+ var _b = _a.$background, $background = _b === void 0 ? "bg-decorative5-main" : _b, _c = _a.$borderRadius, $borderRadius = _c === void 0 ? "border-radius-circle" : _c, _d = _a.$width, $width = _d === void 0 ? "spacing-48" : _d, _e = _a.$height, $height = _e === void 0 ? "spacing-48" : _e, _f = _a.$pa, $pa = _f === void 0 ? "spacing-4" : _f, className = _a.className, rest = tslib.__rest(_a, ["$background", "$borderRadius", "$width", "$height", "$pa", "className"]);
1132
+ var icon = rest.iconName ? (React__default.default.createElement(OakIcon, tslib.__assign({}, rest, { "$height": "100%", "$width": "100%" }))) : (React__default.default.createElement(OakImage, tslib.__assign({}, rest, { "$height": "100%", "$width": "100%" })));
1133
+ return (React__default.default.createElement(OakBox, { className: className, "$background": $background, "$borderRadius": $borderRadius, "$width": $width, "$height": $height, "$pa": $pa }, icon));
1134
+ };
858
1135
 
859
- // the values of the icons object are the paths to the versioned images in the Cloudinary
860
- var icons = {
861
- // icons
862
- "question-mark": "v1706872277/icons/question-mark.svg",
863
- ai: "v1754063273/icons/ai_cqaksa.svg",
864
- "ai-additional-material": "v1756224441/icons/AI_additional_material_oopjax.svg",
865
- "ai-quiz": "v1756224440/icons/AI_quiz_eivb2s.svg",
866
- "ai-slide-deck": "v1756224440/icons/Ai_slidedeck_xuo49n.svg",
867
- "ai-worksheet": "v1756224441/icons/AI_worksheet_cm4f0q.svg",
868
- "ai-teaching-resources": "v1779438987/icons/ai-teaching-resources.svg",
869
- home: "v1699887218/icons/gvqxjxcw07ei2kkmwnes.svg",
870
- send: "v1699893673/icons/rmvytilpjgvh3pgwc8ph.svg",
871
- rocket: "v1699894015/icons/u26xm5hteot875ozfnk9.svg",
872
- edit: "v1699894149/icons/qxlunbg5tfrdherzsvlt.svg",
873
- expand: "v1730982187/Icon_Expand_arrktl.svg",
874
- minimise: "v1730982213/Icon_Minimise_btcdbz.svg",
875
- hamburger: "v1699895123/icons/jaqdnomtbhqvjcap962u.svg",
876
- cross: "v1699895179/icons/xigimrbivcaxt4omxamp.svg",
877
- copy: "v1727861316/icons/Icon_Copy_qxgynv.svg",
878
- bell: "v1699895207/icons/ecejtvqerx81prxyxh9b.svg",
879
- twitter: "v1699895251/icons/bq6a50xtkvnzhltfggzz.svg",
880
- x: "v1748452854/icons/x_fpmv5f.svg",
881
- worksheet: "v1699895300/icons/ez1s6mtpe5jkunnxzvlw.svg",
882
- facebook: "v1699895330/icons/iojlvh3o5lshy2jupyph.svg",
883
- share: "v1699895363/icons/agcmduftef3wcla6gzec.svg",
884
- "arrow-right": "v1707149070/icons/fv0z57zerrioft52dd9n.svg",
885
- "arrow-down": "v1699954152/icons/wpfmbmwpyfinipg0d61y.svg",
886
- "arrow-left": "v1707149179/icons/ejrm9dpgpzb7ddbo8z2i.svg",
887
- "arrow-up": "v1699954152/icons/arrow-up.svg",
888
- "worksheet-3": "v1699895429/icons/bzhojpjxp9rukdvh7daz.svg",
889
- "chevron-right": "v1707752509/icons/vk9xxxhnsltsickom6q9.svg",
890
- save: "v1699895505/icons/rh1ahwwtbemvz0ihluew.svg",
891
- success: "v1699895534/icons/Icon-Success_aiiprx.svg",
892
- error: "v1699895534/icons/Icon-Error_r25aza.svg",
893
- filter: "v1727783280/icons/Icon_Filter_eitb2p.svg",
894
- "quiz-3": "v1699895534/icons/zoayhgtrotv32fad7d3k.svg",
895
- "chevron-down": "v1699953557/icons/botfld6brychmttwtv6u.svg",
896
- linkedin: "v1699953592/icons/leqneklorqqzb1zo6rf1.svg",
897
- "magic-carpet": "v1699953622/icons/jifivg9xxm7sb0fjdilm.svg",
898
- books: "v1699953657/icons/hz4l3iq6i68kazvkvorq.svg",
899
- "supervision-level": "v1699953696/icons/cwqhknapp3maa4g0t3lj.svg",
900
- "quiz-white": "v1699953730/icons/gpcehpgr9mqoumsa25xe.svg",
901
- "additional-material": "v1699953798/icons/ntoq4tqvcm2uj1pajubt.svg",
902
- "slide-deck-3": "v1699953830/icons/sm92moja9d5utu3cj16c.svg",
903
- "sign-language": "v1699953861/icons/ns94ozvozzi22enxkx0x.svg",
904
- external: "v1699953892/icons/hlxmejse3mcr4tqo6t8u.svg",
905
- "equipment-required": "v1699953925/icons/pw22bdhj2vrzfv2ogi4e.svg",
906
- "chevron-left": "v1707752509/icons/rbvzan0ozubmr4j0uqdn.svg",
907
- download: "v1699953991/icons/dk0f6a6hdpzxftjosngn.svg",
908
- search: "v1704901279/icons/canbi3fuz5fanzom2hvi.svg",
909
- "chevron-up": "v1699954058/icons/pay71thmhhylj7z28sj1.svg",
910
- go: "v1699954090/icons/vdzptyvmitylra8x4usy.svg",
911
- copyright: "v1699954118/icons/boiod3rflocgsnfokyo8.svg",
912
- project: "v1699954186/icons/zofq5pheud6spnwjpewk.svg",
913
- "slide-deck": "v1699954241/icons/sjjy5f3g4eciwcuxxr33.svg",
914
- "content-guidance": "v1699954277/icons/tm3uhcqenaznq4fxys7j.svg",
915
- tick: "v1699954310/icons/efd3esaor6zqk7seh6kt.svg",
916
- instagram: "v1699954343/icons/ayfeljric0kkimdymvva.svg",
917
- dot: "v1699954371/icons/knykdclphkm8lgff4u2g.svg",
918
- warning: "v1704901279/icons/zzszodmk7fvxm9xzzg9s.svg",
919
- "lightbulb-yellow": "v1705078631/icons/q2v4sqxouy1ngcajoavv.svg",
920
- lightbulb: "v1705078631/icons/zldisxmbff36z68rwcef.svg",
921
- pencil: "v1765890807/icons/pencil.svg",
922
- quiz: "v1705416077/icons/kaaizjcudy0jfgfrrdel.svg",
923
- video: "v1705416078/icons/wzey1zfxrvv3apeebbf5.svg",
924
- intro: "v1705662092/icons/pl7bnmb13txese9yxkjv.svg",
925
- loopdown: "v1699887218/ui-graphics/loopdown.svg",
926
- "teacher-lesson": "v1714060653/icons/teacher-lesson.svg",
927
- "teacher-unit": "v1714060657/icons/teacher-unit.svg",
928
- "move-arrows": "v1709052869/icons/hoddjsgpzkszgvnmn91q.svg",
929
- info: "v1709052869/icons/Icon_Info_vsx3xi.svg",
930
- play: "v1732099511/icons/g1xehzuhjnb0xeftmdno.svg",
931
- "bookmark-outlined": "v1734519491/icons/bookmark-outlined_rxe5v0.svg",
932
- "bookmark-filled": "v1734519491/icons/bookmark-filled_jz828n.svg",
933
- "microsoft-teams": "v1736429692/microsoft-teams_gelfmi.svg",
934
- "google-classroom": "v1736429692/google-classroom_pedfpd.svg",
935
- clipboard: "v1749031463/icons/clipboard_yll2yj.svg",
936
- "book-steps": "v1749034739/icons/book-steps_qwku6h.svg",
937
- "free-tag": "v1749033815/icons/free-tag_lijptf.svg",
938
- threads: "v1749034800/icons/threads_sqlqoe.svg",
939
- spreadsheet: "v1754386968/icons/spreadsheet_rsndeb.svg",
940
- "curriculum-plan": "v1754386969/icons/curriculum-plan_qygyuo.svg",
941
- data: "v1763393164/icons/data-illustration_ukwdxg.svg",
942
- chatting: "v1763393163/icons/chatting-illustration_l52zaf.svg",
943
- "teacher-group": "v1793641849/icons/teacher-group.svg",
944
- "snack-break": "v1763393167/icons/snackbreak_illustration_fguw7l.svg",
945
- "class-grouping": "v1776785621/icons/class-grouping.svg",
946
- strand: "v1776850533/icons/strand.svg",
947
- plus: "v1781533362/icons/plus.svg",
948
- hide: "v1785931149/icons/Icon_Hide_r1q6se.svg",
949
- clock: "v1789035961/icons/clock.svg",
950
- //learning cycle icons
951
- "lc-explanation": "v1788336387/icons/lc-explanation.svg",
952
- "lc-check-for-understanding": "v1788336388/icons/lc-check-for-understanding.svg",
953
- "lc-practice": "v1788336389/icons/lc-practice.svg",
954
- "lc-feedback": "v1788336388/icons/lc-feedback.svg",
955
- // subject icons
956
- "subject-art": "v1706616347/subject-icons/art.svg",
957
- "subject-biology": "v1706616415/subject-icons/biology.svg",
958
- "subject-chemistry": "v1706616415/subject-icons/chemistry.svg",
959
- "subject-citizenship": "v1706616415/subject-icons/citizenship.svg",
960
- "subject-gcse-citizenship": "v1706616415/subject-icons/citizenship.svg",
961
- "subject-core-citizenship": "v1706616415/subject-icons/citizenship.svg",
962
- "subject-combined-science": "v1734523570/subject-icons/science.svg",
963
- "subject-communication-and-language": "v1706616415/subject-icons/communication-and-language.svg",
964
- "subject-computing": "v1729171080/subject-icons/computing.svg",
965
- "subject-computer-science": "v1729171080/subject-icons/computing.svg",
966
- "subject-core-computing": "v1729171080/subject-icons/computing.svg",
967
- "subject-cooking-nutrition": "v1734523014/subject-icons/cooking-nutrition.svg",
968
- "subject-computing-non-gcse": "v1729171080/subject-icons/computing.svg",
969
- "subject-creative-arts": "v1706616415/subject-icons/creative-arts.svg",
970
- "subject-design-technology": "v1706616417/subject-icons/design-technology.svg",
971
- "subject-digital-literacy": "v1729171080/subject-icons/computing.svg",
972
- "subject-drama": "v1706616417/subject-icons/drama.svg",
973
- "subject-english": "v1706616417/subject-icons/english.svg",
974
- "subject-english-language": "v1706616419/subject-icons/language.svg",
975
- "subject-english-grammar": "v1706616417/subject-icons/english-grammar.svg",
976
- "subject-english-handwriting": "v1706616419/subject-icons/handwriting.svg",
977
- "subject-english-reading-for-pleasure": "v1706616421/subject-icons/literature.svg",
978
- "subject-english-spelling": "v1706616417/subject-icons/english-spelling.svg",
979
- "subject-english-reading-writing-oracy": "v1706616424/subject-icons/reading-writing-oracy.svg",
980
- "subject-english-vocabulary": "v1706616425/subject-icons/vocabulary.svg",
981
- "subject-expressive-arts-and-design": "v1706616415/subject-icons/creative-arts.svg",
982
- "subject-financial-education": "v1729171111/subject-icons/finance.svg",
983
- "subject-french": "v1729171111/subject-icons/french.svg",
984
- "subject-geography": "v1734523108/subject-icons/geography.svg",
985
- "subject-german": "v1734523165/subject-icons/german.svg",
986
- "subject-history": "v1728568980/subject-icons/history.svg",
987
- "subject-independent-living": "v1706616419/subject-icons/independent-living.svg",
988
- "subject-latin": "v1706616420/subject-icons/latin.svg",
989
- "subject-literacy": "v1706616417/subject-icons/english.svg",
990
- "subject-maths": "v1706616421/subject-icons/maths.svg",
991
- "subject-music": "v1728570203/subject-icons/music-hollow.svg",
992
- "subject-numeracy": "v1706616422/subject-icons/numeracy.svg",
993
- "occupational-therapy": "v1706616424/subject-icons/therapy.svg",
994
- "subject-personal-social-and-emotional-development": "v1706616423/subject-icons/rshe-pshe.svg",
995
- "subject-physical-development": "v1706616422/subject-icons/physical-development.svg",
996
- "subject-physical-education": "v1728568932/subject-icons/physical-education.svg",
997
- "subject-core-physical-education": "v1728568932/subject-icons/physical-education.svg",
998
- "subject-gcse-physical-education": "v1728568932/subject-icons/physical-education.svg",
999
- "subject-physical-therapy": "v1706632882/subject-icons/physical-therapy.svg",
1000
- "subject-physics": "v1728568898/subject-icons/physics.svg",
1001
- "subject-religious-education": "v1706616425/subject-icons/religious-education.svg",
1002
- "subject-core-religious-education": "v1706616425/subject-icons/religious-education.svg",
1003
- "subject-gcse-religious-education": "v1706616425/subject-icons/religious-education.svg",
1004
- "subject-rshe-pshe": "v1706616423/subject-icons/rshe-pshe.svg",
1005
- "subject-rshe": "v1706616423/subject-icons/rshe-pshe.svg",
1006
- "subject-rule-of-law": "v1706616415/subject-icons/citizenship.svg",
1007
- "subject-philosophy": "v1741794495/subject-icons/philosophy.svg",
1008
- "subject-social-science": "v1741794495/subject-icons/social-science.svg",
1009
- "subject-theology": "v1741794496/subject-icons/theology.svg",
1010
- "subject-science": "v1734523570/subject-icons/science.svg",
1011
- "subject-sensory-integration": "v1706626743/subject-icons/sensory-integration.svg",
1012
- "subject-spanish": "v1729171166/subject-icons/spanish.svg",
1013
- "subject-speech-and-language-therapy": "v1706632882/subject-icons/speech-and-language.svg",
1014
- "subject-specialist": "v1706616415/subject-icons/communication-and-language.svg",
1015
- "subject-therapy": "v1706616424/subject-icons/therapy.svg",
1016
- "subject-therapies": "v1706616424/subject-icons/therapy.svg",
1017
- "subject-occupational-therapy": "v1706616424/subject-icons/therapy.svg",
1018
- "subject-understanding-the-world": "v1706616425/subject-icons/understanding-the-world.svg",
1019
- swimming: "v1728649514/subject-icons/swimming.svg",
1020
- // homepage icons
1021
- "homepage-robot-waving": "v1734523528/homepage/robot_waving_malpc3.svg",
1022
- "homepage-three-pupils": "v1734523221/homepage/image-students_g0jtxe.svg",
1023
- "homepage-teacher": "v1734523680/homepage/teacher-carrying-stuff_gab2ec.svg",
1024
- "homepage-teacher-map": "v1734523721/homepage/teacher-reading-map_glwhyh.svg",
1025
- // teacher journey icons
1026
- "audio-clip-large": "v1731950937/teacher-journey/audio_clip.svg",
1027
- "audio-clip-small": "v1731951210/teacher-journey/audio_clip_small.svg",
1028
- // OWA UI Graphics
1029
- "box-border-bottom": "v1734537219/OWA/ui-graphics/box-border-bottom_oa1riy.svg",
1030
- "box-border-left": "v1734537223/OWA/ui-graphics/box-border-left_eqgplm.svg",
1031
- "box-border-right": "v1734537228/OWA/ui-graphics/box-border-right_unznsm.svg",
1032
- "box-border-top": "v1734537228/OWA/ui-graphics/box-border-right_unznsm.svg",
1033
- "bubble-1": "v1734537172/OWA/ui-graphics/bubble-1_nhgg0w.svg",
1034
- "bubble-2": "v1734537180/OWA/ui-graphics/bubble-2_mfms6f.svg",
1035
- burst: "v1734537152/OWA/ui-graphics/burst_k0mkht.svg",
1036
- confetti: "v1763546694/ui-graphics/confetti-background_xbvfrc.svg",
1037
- "header-underline": "v1734536947/OWA/ui-graphics/header-underline_ejbffz.svg",
1038
- "icon-background-square": "v1734537276/OWA/ui-graphics/icon-background-square_qajipb.svg",
1039
- "looping-arrow-1": "v1734537133/OWA/ui-graphics/looping-arrow-1_zizllb.svg",
1040
- "looping-line-1": "v1734536929/OWA/ui-graphics/looping-line-1_krbrht.svg",
1041
- "looping-line-2": "v1734536933/OWA/ui-graphics/looping-line-2_sdinei.svg",
1042
- "looping-line-3": "v1734537015/OWA/ui-graphics/looping-line-3_b8dque.svg",
1043
- "looping-line-4": "v1734537039/OWA/ui-graphics/looping-line-4_xtjj4r.svg",
1044
- "looping-line-5": "v1740665310/OWA/ui-graphics/looping-line-5_vdknco.svg",
1045
- "speech-bubble": "v1734537300/OWA/ui-graphics/speech-bubble_magqjf.svg",
1046
- "tag-promotional": "v1734537244/OWA/ui-graphics/tag-promotional_v4p3oa.svg",
1047
- "tick-mark-happiness": "v1734537080/OWA/ui-graphics/tick-mark-happiness_fyst07.svg",
1048
- "underline-1": "v1734537060/OWA/ui-graphics/underline-1_zaegqi.svg",
1049
- image: "v1763680546/icons/Icon_Image_uatq6d.svg",
1050
- logo: "v1711468346/logo-mark.svg",
1051
- trash: "v1764692488/icons/icon_delete_edzcua.svg",
1052
- list: "v1774882349/icons/List.svg",
1053
- "media-clips": "v1774884267/icons/media-clips_nw3zpt.svg",
1054
- retake: "v1775141914/icons/retake-icon_xgqxzv.svg",
1055
- globe: "v1776851811/icons/globe.svg",
1056
- "video-2": "v1787662089/icons/video-2.svg",
1057
- audio: "v1787662158/icons/audio.svg",
1058
- "video-3": "v1788369484/icons/video-3.svg",
1136
+ var oakDefaultTheme = {
1137
+ name: "default",
1138
+ uiColors: {
1139
+ "text-primary": "black",
1140
+ "text-subdued": "grey60",
1141
+ "text-error": "red",
1142
+ "text-disabled": "grey50",
1143
+ "text-link-active": "navy",
1144
+ "text-link-hover": "navy110",
1145
+ "text-link-pressed": "navy120",
1146
+ "text-link-visited": "navy120",
1147
+ "text-inverted": "white",
1148
+ "text-success": "oakGreen",
1149
+ "text-promo": "lemon",
1150
+ "bg-primary": "white",
1151
+ "bg-inverted": "black",
1152
+ "bg-inverted-semi-transparent": "blackSemiTransparent",
1153
+ "bg-neutral": "grey20",
1154
+ "bg-neutral-stronger": "grey30",
1155
+ "bg-btn-primary": "black",
1156
+ "bg-btn-primary-hover": "grey60",
1157
+ "bg-btn-primary-disabled": "grey50",
1158
+ "bg-btn-secondary": "white",
1159
+ "bg-btn-secondary-hover": "grey20",
1160
+ "bg-btn-secondary-disabled": "grey30",
1161
+ "bg-decorative1-main": "mint",
1162
+ "bg-decorative1-subdued": "mint50",
1163
+ "bg-decorative1-very-subdued": "mint30",
1164
+ "bg-decorative2-main": "aqua",
1165
+ "bg-decorative2-subdued": "aqua50",
1166
+ "bg-decorative2-very-subdued": "aqua30",
1167
+ "bg-decorative3-main": "lavender",
1168
+ "bg-decorative3-subdued": "lavender50",
1169
+ "bg-decorative3-very-subdued": "lavender30",
1170
+ "bg-decorative4-main": "pink",
1171
+ "bg-decorative4-subdued": "pink50",
1172
+ "bg-decorative4-very-subdued": "pink30",
1173
+ "bg-decorative5-main": "lemon",
1174
+ "bg-decorative5-subdued": "lemon50",
1175
+ "bg-decorative5-very-subdued": "lemon30",
1176
+ "bg-decorative6-main": "amber",
1177
+ "bg-decorative6-subdued": "amber50",
1178
+ "bg-decorative6-very-subdued": "amber30",
1179
+ "bg-interactive-element1": "grey50",
1180
+ "bg-interactive-element2": "grey40",
1181
+ "bg-correct": "mint50",
1182
+ "bg-incorrect": "red30",
1183
+ "bg-success": "oakGreen",
1184
+ "bg-error": "red",
1185
+ "icon-inverted": "white",
1186
+ "icon-disabled": "grey50",
1187
+ "icon-brand": "oakGreen",
1188
+ "icon-success": "oakGreen",
1189
+ "icon-error": "red",
1190
+ "icon-warning": "amber",
1191
+ "icon-primary": "black",
1192
+ "icon-subdued": "grey60",
1193
+ "icon-link-active": "navy",
1194
+ "icon-link-hover": "navy110",
1195
+ "icon-link-pressed": "navy120",
1196
+ "icon-link-visited": "navy120",
1197
+ "icon-decorative1": "mint110",
1198
+ "icon-decorative2": "aqua110",
1199
+ "icon-decorative3": "lavender110",
1200
+ "icon-decorative4": "pink110",
1201
+ "icon-decorative5": "lemon110",
1202
+ "icon-decorative6": "amber",
1203
+ "icon-promo": "lemon",
1204
+ "border-primary": "black",
1205
+ "border-inverted": "white",
1206
+ "border-neutral": "grey50",
1207
+ "border-neutral-lighter": "grey40",
1208
+ "border-neutral-stronger": "grey60",
1209
+ "border-brand": "oakGreen",
1210
+ "border-success": "oakGreen",
1211
+ "border-error": "red",
1212
+ "border-warning": "amber",
1213
+ "border-decorative1": "mint",
1214
+ "border-decorative1-stronger": "mint110",
1215
+ "border-decorative2": "aqua",
1216
+ "border-decorative2-stronger": "aqua110",
1217
+ "border-decorative3": "lavender",
1218
+ "border-decorative3-stronger": "lavender110",
1219
+ "border-decorative4": "pink",
1220
+ "border-decorative4-stronger": "pink110",
1221
+ "border-decorative5": "lemon",
1222
+ "border-decorative5-stronger": "lemon110",
1223
+ "border-decorative6": "amber50",
1224
+ "border-decorative6-stronger": "amber",
1225
+ transparent: "transparent",
1226
+ "code-blue": "rpf-syntax-blue",
1227
+ "code-green": "rpf-syntax-green",
1228
+ "code-grey": "rpf-syntax-grey",
1229
+ "code-pink": "rpf-syntax-pink",
1230
+ "border-text-link-pressed": "navy120",
1231
+ },
1059
1232
  };
1060
- var backgrounds = {
1061
- "confetti-pink": "v1734522868/pupil-journey/confetti-pink.svg",
1062
- "confetti-lavender": "v1734519662/pupil-journey/confetti-lavender.svg",
1063
- "confetti-mint": "v1734522739/pupil-journey/confetti-mint.svg",
1064
- "lesson-confetti-green": "v1734522917/pupil-journey/lesson/lesson-confetti-green.svg",
1065
- "lesson-confetti-mint": "v1734523422/pupil-journey/lesson/lesson-confetti-mint.svg",
1066
- "lesson-confetti-pink": "v1734523482/pupil-journey/lesson/lesson-confetti-pink.svg",
1067
- "lesson-confetti-green-lemon": "v1734523276/pupil-journey/lesson/lesson-confetti-green-lemon.svg",
1068
- "lesson-confetti-lavender": "v1734523381/pupil-journey/lesson/lesson-confetti-lavender.svg",
1069
- "line-pink": "v1712912389/pupil-journey/line-pink.svg",
1070
- "line-lavender": "v1712912348/pupil-journey/line-lavender.svg",
1071
- "line-mint": "v1715356384/pupil-journey/line-mint.svg",
1233
+
1234
+ var oakDarkTheme = {
1235
+ name: "dark",
1236
+ uiColors: {
1237
+ "text-primary": "white",
1238
+ "text-subdued": "grey30",
1239
+ "text-error": "red50",
1240
+ "text-disabled": "grey30",
1241
+ "text-link-active": "lavender",
1242
+ "text-link-hover": "lavender50",
1243
+ "text-link-pressed": "lavender30",
1244
+ "text-link-visited": "lavender30",
1245
+ "text-inverted": "black",
1246
+ "text-success": "mint",
1247
+ "text-promo": "lemon50",
1248
+ "bg-primary": "black",
1249
+ "bg-inverted": "white",
1250
+ "bg-inverted-semi-transparent": "whiteSemiTransparent",
1251
+ "bg-neutral": "grey60",
1252
+ "bg-neutral-stronger": "grey70",
1253
+ "bg-btn-primary": "white",
1254
+ "bg-btn-primary-hover": "grey30",
1255
+ "bg-btn-primary-disabled": "grey50",
1256
+ "bg-btn-secondary": "black",
1257
+ "bg-btn-secondary-hover": "grey60",
1258
+ "bg-btn-secondary-disabled": "grey50",
1259
+ "bg-decorative1-main": "dark-mint",
1260
+ "bg-decorative1-subdued": "dark-mint50",
1261
+ "bg-decorative1-very-subdued": "dark-mint30",
1262
+ "bg-decorative2-main": "dark-aqua",
1263
+ "bg-decorative2-subdued": "dark-aqua50",
1264
+ "bg-decorative2-very-subdued": "dark-aqua30",
1265
+ "bg-decorative3-main": "dark-lavender",
1266
+ "bg-decorative3-subdued": "dark-lavender50",
1267
+ "bg-decorative3-very-subdued": "dark-lavender30",
1268
+ "bg-decorative4-main": "dark-pink",
1269
+ "bg-decorative4-subdued": "dark-pink50",
1270
+ "bg-decorative4-very-subdued": "dark-pink30",
1271
+ "bg-decorative5-main": "dark-lemon",
1272
+ "bg-decorative5-subdued": "dark-lemon50",
1273
+ "bg-decorative5-very-subdued": "dark-lemon30",
1274
+ "bg-decorative6-main": "dark-amber",
1275
+ "bg-decorative6-subdued": "dark-amber50",
1276
+ "bg-decorative6-very-subdued": "dark-amber30",
1277
+ "bg-interactive-element1": "grey50",
1278
+ "bg-interactive-element2": "grey30",
1279
+ "bg-correct": "mint30",
1280
+ "bg-incorrect": "red30",
1281
+ "bg-success": "mint",
1282
+ "bg-error": "red50",
1283
+ "icon-inverted": "black",
1284
+ "icon-disabled": "grey30",
1285
+ "icon-brand": "mint",
1286
+ "icon-success": "mint",
1287
+ "icon-error": "red50",
1288
+ "icon-warning": "dark-amber110",
1289
+ "icon-primary": "white",
1290
+ "icon-subdued": "grey30",
1291
+ "icon-link-active": "lavender",
1292
+ "icon-link-hover": "lavender50",
1293
+ "icon-link-pressed": "lavender30",
1294
+ "icon-link-visited": "lavender30",
1295
+ "icon-decorative1": "dark-mint110",
1296
+ "icon-decorative2": "dark-aqua110",
1297
+ "icon-decorative3": "dark-lavender110",
1298
+ "icon-decorative4": "dark-pink110",
1299
+ "icon-decorative5": "dark-lemon110",
1300
+ "icon-decorative6": "dark-amber110",
1301
+ "icon-promo": "dark-lemon110",
1302
+ "border-primary": "white",
1303
+ "border-inverted": "black",
1304
+ "border-neutral": "grey60",
1305
+ "border-neutral-lighter": "grey70",
1306
+ "border-neutral-stronger": "grey40",
1307
+ "border-brand": "mint",
1308
+ "border-success": "mint",
1309
+ "border-error": "red50",
1310
+ "border-warning": "dark-amber",
1311
+ "border-decorative1": "dark-mint",
1312
+ "border-decorative1-stronger": "dark-mint110",
1313
+ "border-decorative2": "dark-aqua",
1314
+ "border-decorative2-stronger": "dark-aqua110",
1315
+ "border-decorative3": "dark-lavender",
1316
+ "border-decorative3-stronger": "dark-lavender110",
1317
+ "border-decorative4": "dark-pink",
1318
+ "border-decorative4-stronger": "dark-pink110",
1319
+ "border-decorative5": "dark-lemon",
1320
+ "border-decorative5-stronger": "dark-lemon110",
1321
+ "border-decorative6": "dark-amber",
1322
+ "border-decorative6-stronger": "dark-amber110",
1323
+ transparent: "transparent",
1324
+ "code-blue": "dark-rpf-syntax-blue",
1325
+ "code-green": "dark-rpf-syntax-green",
1326
+ "code-grey": "dark-rpf-syntax-grey",
1327
+ "code-pink": "dark-rpf-syntax-pink",
1328
+ "border-text-link-pressed": "lavender30",
1329
+ },
1072
1330
  };
1073
1331
 
1074
- var oakIconNames = Object.keys(icons);
1075
- /*
1076
- * NOTE: This file is separated from OakIcon to allow server side usage in next.js apps
1077
- */
1078
- /**
1079
- * returns true if the given string is a valid `OakIconName`
1080
- */
1081
- function isValidIconName(iconName) {
1082
- return oakIconNames.includes(iconName);
1083
- }
1084
- /**
1085
- * returns a Icon URL from Cloudinary if is a valid icon, otherwise returns undefined
1086
- */
1087
- function generateOakIconURL(iconName) {
1088
- var urlPath = "https://".concat(process.env.NEXT_PUBLIC_OAK_ASSETS_HOST, "/").concat(process.env.NEXT_PUBLIC_OAK_ASSETS_PATH);
1089
- if (isValidIconName(iconName)) {
1090
- return "".concat(urlPath, "/").concat(icons[iconName]);
1091
- }
1092
- else if (iconName.includes("subject")) {
1093
- return "".concat(urlPath, "/").concat(icons["books"]);
1332
+ function parseBorderWidth(value) {
1333
+ if (!value) {
1334
+ return undefined;
1094
1335
  }
1095
- else {
1096
- return "".concat(urlPath, "/").concat(icons["question-mark"]);
1336
+ if (value in oakBorderWidthTokens) {
1337
+ return "".concat(pxToRem(oakBorderWidthTokens[value]), "rem");
1097
1338
  }
1098
1339
  }
1099
1340
 
1100
- function useShowPlaceholder() {
1101
- // Default to false so that we don't show the placeholder if the image is already complete
1102
- var _a = tslib.__read(React.useState(false), 2), showPlaceholder = _a[0], setShowPlaceholder = _a[1];
1103
- var setImg = React.useCallback(function (img) {
1104
- // the `load` or `error` event may never be called if the image is coming from the cache
1105
- // so we need to check the `complete` property as well as listen to the `onLoad` and `onError` events
1106
- img && setShowPlaceholder(!img.complete);
1107
- }, []);
1108
- return {
1109
- showPlaceholder: showPlaceholder,
1110
- setImg: setImg,
1111
- /**
1112
- * Wraps the `onLoad` and `onError` events to set the placeholder state
1113
- */
1114
- handleComplete: function (originalHandler) {
1115
- return function (event) {
1116
- if (originalHandler) {
1117
- originalHandler(event);
1118
- }
1119
- setShowPlaceholder(false);
1120
- };
1121
- },
1122
- };
1123
- }
1341
+ var colorFillStyle = styled.css(templateObject_1$1S || (templateObject_1$1S = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("fill", function (props) { return props.$fill; }, parseColor));
1342
+ /**
1343
+ * A styled SVG element with props to apply design tokens to the fill and stroke.
1344
+ */
1345
+ var InternalStyledSvg = styled__default.default.svg(templateObject_2$R || (templateObject_2$R = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n"])), colorFillStyle, responsiveStyle("stroke", function (props) { return props.$stroke; }, parseColor), responsiveStyle("stroke-width", function (props) { return props.$strokeWidth; }, parseBorderWidth));
1346
+ var templateObject_1$1S, templateObject_2$R;
1124
1347
 
1125
- function parseColorFilter(value) {
1126
- if (value === undefined || value === null) {
1127
- return undefined;
1128
- }
1129
- if (oakUiRoleTokens.includes(value)) {
1130
- return function (_a) {
1131
- var theme = _a.theme;
1132
- var c = theme.uiColors[value];
1133
- if (c && c in oakColorFilterTokens) {
1134
- return oakColorFilterTokens[c];
1135
- }
1136
- return undefined;
1137
- };
1138
- }
1139
- }
1348
+ var HandDrawnHRSvg = function (props) {
1349
+ return (React__default.default.createElement(InternalStyledSvg, tslib.__assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 866 8", preserveAspectRatio: "none", height: "100%", width: "100%" }, props),
1350
+ React__default.default.createElement("g", { clipPath: "url(#clip0_175_6785)" },
1351
+ React__default.default.createElement("path", { d: "M865.845 2.15897C865.975 1.74492 865.563 1.33087 864.955 1.33087C788.833 1.21257 638.585 4.00739 558.84 1.30129C560.814 1.22736 562.55 1.36044 563.287 1.18299C546.019 0.946396 526.408 1.10906 509.119 1.44917C530.292 -0.0295749 543.785 1.41959 562.289 0.931608C559.556 0.872458 545.347 0.842884 554.436 0.798521C547.538 0.369686 533.003 0.754159 530.27 0.621072C522.113 0.177449 549.794 0.724584 549.23 0.399261C544.219 0.0295749 524.586 0.295749 522.937 0C522.959 0.369686 522.352 0.295749 522.612 0.399261C423.669 0.724584 317.892 0.340111 218.666 0.828096C218.861 0.828096 219.013 0.828096 219.078 0.857671C218.753 0.902033 217.451 0.857671 218.579 0.828096C154.909 1.71534 98.6582 -0.502773 49.7396 2.18854C59.3281 0.0887246 12.145 1.39002 8.34861 1.52311C2.75172 1.44917 6.69991 1.96673 8.13168 1.67098C8.43539 2.91312 0.799314 1.73013 2.20938 3.12015C-18.7247 12.7024 115.622 4.7024 130.504 6.96488C127.011 6.21072 147.056 7.34935 148.705 6.93531C147.859 6.89094 146.362 6.78743 144.692 6.75786C140.396 6.72828 151.525 6.07763 149.486 6.93531C150.354 7.18669 153.282 6.44732 152.935 6.93531C154.714 7.06839 166.385 5.75231 158.814 6.92052C165.647 6.52126 168.077 7.68946 162.046 6.26987C222.332 7.55638 283.247 5.8854 342.34 6.29945C458.66 5.97412 569.839 6.10721 682.124 6.69871C679.932 6.22551 684.532 6.07763 683.36 6.69871C715.076 6.71349 731.801 6.81701 762.432 6.99446C757.486 6.72828 758.68 6.13678 763.821 6.55083C784.278 7.51202 841.353 7.73383 863.784 6.96488C863.35 6.68392 864.804 6.77264 864.782 6.92052C864.955 5.84104 865.259 5.84104 864.717 5.95934C864.76 5.95934 863.697 6.32902 864.001 5.73752C864.153 5.44177 864.999 5.60444 864.088 5.30869C864.652 5.30869 866.192 4.90943 864.608 5.02773C861.723 4.17006 866.778 4.99815 865.91 4.42144C865.519 4.12569 865.606 2.95749 865.845 2.15897ZM526.43 0.606285C528.448 0.650647 526.539 0.754159 525.476 0.606285C524.825 0.547135 525.042 0.547135 526.43 0.606285ZM17.0694 1.61183C17.0694 1.61183 17.3731 1.58226 17.308 1.62662C17.2646 1.6414 17.0694 1.6414 17.0694 1.61183ZM18.0889 1.15342C18.1974 1.15342 18.2408 1.15342 18.3059 1.16821H17.8286C17.8286 1.16821 17.9805 1.15342 18.0889 1.15342ZM18.371 1.41959C18.371 1.41959 18.3059 1.40481 18.371 1.39002V1.41959ZM36.8971 2.04067C30.6928 1.68577 40.9321 1.62662 42.6242 2.08503C42.4072 2.08503 37.4611 2.04067 36.8971 2.04067ZM63.6451 1.34566C67.5933 1.34566 62.4302 1.41959 61.736 1.36044C62.018 1.34566 62.8641 1.34566 63.6451 1.34566ZM84.8395 3.88909C84.5141 3.88909 84.6226 3.87431 84.8395 3.87431V3.88909ZM92.1068 1.58226C80.2405 2.24769 61.6926 1.878 59.0461 1.61183C67.2028 1.43438 85.2734 1.52311 95.3608 1.47874C94.3629 1.47874 93.2565 1.52311 92.1068 1.58226ZM97.183 2.41035C96.6841 2.38078 97.5084 2.30684 97.4867 2.41035C97.4867 2.41035 97.3566 2.41035 97.183 2.41035ZM95.9899 1.47874C96.8142 1.44917 97.5518 1.46396 98.1809 1.47874C97.5084 1.49353 96.7709 1.49353 95.9899 1.47874ZM100.589 1.53789C100.589 1.53789 99.7862 1.50832 98.5714 1.47874C100.415 1.50832 101.348 1.46396 102.368 1.52311C102.238 1.53789 101.587 1.53789 100.589 1.53789ZM101.869 1.18299C101.869 1.18299 102.997 1.15342 103.105 1.18299C102.867 1.21257 101.999 1.21257 101.869 1.18299ZM107.704 1.84843C107.704 1.84843 107.509 1.84843 107.422 1.83364C107.769 1.83364 107.856 1.83364 107.704 1.84843ZM139.29 1.21257C138.704 1.18299 139.767 1.13863 139.724 1.18299C139.659 1.19778 139.463 1.21257 139.29 1.21257ZM141.633 5.6488C140.982 5.6488 141.199 5.60444 141.633 5.61922V5.6488ZM177.882 6.50647C162.654 6.71349 183.132 5.97412 183.588 5.73752C183.588 5.78189 181.006 6.50647 177.882 6.50647ZM185.779 0.946396H184.564C183.631 0.916821 186.56 0.931608 185.779 0.946396ZM209.945 1.00555C210.488 0.975971 210.813 0.975971 211.355 1.00555C212.18 1.02033 209.099 1.02033 209.945 1.00555ZM202.244 6.41775C199.077 6.46211 192.873 6.50647 188.989 6.66913C187.818 5.67837 202.873 6.38817 202.244 6.41775ZM213.264 6.41775C212.874 6.46211 208.492 6.46211 208.231 6.43253C207.667 6.50647 214.175 5.45656 213.264 6.41775ZM218.905 6.19593C218.601 6.19593 215.434 6.38817 215.087 6.38817C215.412 6.28466 220.336 6.01849 218.905 6.19593ZM226.801 0.857671C226.953 0.842884 227.343 0.842884 227.495 0.857671C227.3 0.872458 226.996 0.872458 226.801 0.857671ZM256.152 0.768946C258.018 0.768946 255.914 0.783734 255.588 0.783734C255.718 0.768946 255.914 0.768946 256.152 0.768946ZM252.855 4.00739C252.291 3.97782 254.742 3.26802 254.634 3.62292C254.46 3.66728 253.115 4.05176 252.855 4.00739ZM257.757 4.99815C257.302 4.92422 255.415 4.33272 254.677 4.43623C255.501 4.24399 258.625 4.87985 257.757 4.99815ZM254.785 3.46026C255.133 3.43068 257.541 3.38632 257.259 3.43068C257.888 3.46026 254.937 3.48983 254.785 3.46026ZM259.363 3.59335C258.669 3.59335 257.757 3.10536 257.757 3.07579C257.974 3.07579 261.836 2.88355 259.363 3.59335ZM258.886 2.01109C256.456 2.04067 254.72 1.65619 254.417 1.62662C253.332 1.44917 266.543 1.70055 258.886 2.01109ZM264.157 4.64325L263.181 4.02218C262.226 3.44547 265.35 4.40665 264.157 4.64325ZM289.712 3.50462C290.71 3.50462 291.686 4.24399 290.948 4.25878C288.432 3.90388 285.655 2.91312 289.712 3.50462ZM271.424 2.20333C273.203 2.45471 281.577 1.00555 275.394 2.54344C275.763 2.42514 267.389 2.15897 271.424 2.20333ZM275.893 3.12015C276.717 2.79482 278.345 3.6525 278.019 4.09612C277.542 4.09612 275.893 3.20887 275.893 3.12015ZM284.223 2.97227C281.447 2.45471 286.935 2.21811 287.022 2.07024C287.022 2.1146 285.351 3.01664 284.223 2.97227ZM290.862 5.36784C288.822 5.36784 287.477 5.33826 287.477 5.33826C286.653 3.91867 298.172 6.0037 290.862 5.36784ZM296.719 5.07209C293.053 4.39187 298.671 4.5841 298.91 4.61368C298.91 4.64325 297.717 5.07209 296.719 5.07209ZM317.219 3.43068C320.126 4.62847 316.178 3.7708 315.744 3.4159C315.917 3.38632 316.612 3.40111 317.219 3.43068ZM304.702 4.39187C302.967 5.13124 304.116 4.03697 304.42 3.93346C305.526 3.69686 306.459 4.12569 304.702 4.39187ZM307.587 3.35675C307.457 3.16451 302.858 2.43993 305.808 2.67653C306.741 2.5878 307.001 2.7061 305.895 2.67653C306.958 2.7061 307.978 3.32717 307.587 3.35675ZM310.928 2.54344C309.561 2.54344 311.253 1.78928 312.533 1.98152C312.403 1.9963 311.362 2.54344 310.928 2.54344ZM319.649 5.56007C320.343 5.58965 309.323 5.66359 314.572 5.54529C317.284 6.31423 322.751 2.98706 319.649 5.56007ZM329.411 5.24954C326.808 5.27911 331.884 4.64325 331.992 4.61368C332.339 4.67283 330.235 5.2939 329.411 5.24954ZM335.355 2.24769C334.704 2.01109 338.023 2.5878 338.413 2.29205C338.023 2.41035 335.897 3.00185 335.355 2.24769ZM346.201 4.12569C343.338 4.12569 344.097 3.97782 346.57 3.82994C349.499 4.52495 348.696 4.42144 346.201 4.12569ZM359.977 3.01664C359.977 3.01664 355.421 3.07579 355.248 3.061C355.226 3.19409 362.211 1.49353 359.977 3.01664ZM413.364 0.902033C414.102 0.857671 414.492 0.872459 414.536 0.902033C415.555 1.70055 411.889 0.842884 413.364 0.902033ZM371.886 1.52311C370.238 2.51386 367.656 1.52311 365.704 1.52311C365.704 1.47874 371.322 1.46396 371.886 1.52311ZM364.966 3.03142C363.816 3.87431 362.905 3.81516 364.25 2.60259C365.205 1.90758 366.919 2.01109 364.966 3.03142ZM370.954 6.01849C369.999 6.01849 366.81 6.01848 366.485 5.91497C367.266 5.8854 375.574 4.92422 370.954 6.01849ZM378.546 6.01849C375.943 5.90019 376.117 5.2939 377.722 5.4122C379.956 5.23475 382.581 5.50093 378.546 6.01849ZM387.267 3.57856C386.312 3.56377 386.963 2.76525 388.178 2.76525C390.413 2.98706 389.87 3.51941 387.267 3.57856ZM393.623 1.80407C389.545 1.58226 393.341 1.12384 394.795 1.34566C397.506 1.00555 397.745 1.37523 393.623 1.80407ZM401.303 5.84104C396.942 5.87061 401.216 5.38263 402.734 5.24954C403.429 5.2939 402.301 5.84104 401.303 5.84104ZM405.207 4.03697C405.164 4.14048 404.904 4.52495 403.472 4.02218C400.934 2.76525 406.162 3.82995 405.207 4.03697ZM408.722 4.11091C407.116 4.11091 404.253 3.68207 407.42 3.68207C407.746 2.60259 410.761 3.93346 408.722 4.11091ZM410.848 1.62662C409.958 1.46396 406.704 1.16821 409.546 0.680222C410.11 0.680222 413.581 1.81885 410.848 1.62662ZM412.93 5.4122C413.147 5.38263 414.232 4.33272 415.902 4.85028L412.93 5.4122ZM429.027 0.857671C430.393 0.857671 434.71 0.813309 435.708 0.887246C436.424 1.25693 425.643 2.52865 429.027 0.857671ZM437.878 0.857671C438.181 0.813309 439.309 0.828096 439.591 0.916821C431.587 2.83919 437.14 0.946396 437.878 0.857671ZM451.653 5.35305C451.176 5.35305 448.898 4.83549 448.898 4.80592C448.898 4.79113 450.807 4.5841 451.111 4.5841C453.562 4.65804 452.412 5.44177 451.653 5.35305ZM480.245 3.4159C478.661 3.6525 474.822 3.6525 474.822 3.4159C474.149 3.38632 481.568 3.14972 480.245 3.4159ZM485.69 5.32348C473.325 5.45656 491.829 4.64325 490.983 5.0573C490.983 5.23475 491.46 5.23475 485.69 5.32348ZM495.018 2.51386C494.454 2.51386 493.977 2.43993 493.977 2.36599C494.194 1.98152 497.252 2.45471 495.018 2.51386ZM502.524 2.26248C502.307 2.45471 501.656 2.49908 500.159 2.60259C492.285 2.85397 502.871 1.65619 502.524 2.26248ZM506.429 2.39556C510.377 2.3512 507.275 2.89834 505.105 2.41035C505.214 2.39556 505.648 2.39556 506.429 2.39556ZM506.559 3.13494C507.926 3.13494 509.01 3.22366 509.01 3.31238C508.338 3.4159 501.136 3.12015 506.559 3.13494ZM522.243 5.75231C518.36 6.38817 511.418 5.91497 507.253 5.4122C510.16 5.66359 522.547 5.33826 522.243 5.75231ZM590.057 3.48983C589.319 3.59335 587.128 3.59335 586.391 3.48983C587.367 3.2976 588.972 3.31238 590.057 3.48983ZM582.551 2.20333C586.109 1.98152 588.083 1.98152 588.083 2.20333C588.777 2.41035 577.019 2.61738 582.551 2.20333ZM564.545 1.71534C566.302 1.71534 566.064 2.83919 564.155 2.07024C563.699 1.86322 563.374 1.67098 564.545 1.71534ZM558.84 1.71534C560.619 1.7597 562.007 1.83364 563.049 2.07024C561.899 2.29205 549.273 1.70055 558.84 1.71534ZM553.438 3.72643C543.893 3.4159 556.107 3.20887 556.801 3.72643C556.801 3.87431 555.564 3.87431 553.438 3.72643ZM562.897 3.23845C561.205 3.26802 556.15 2.92791 560.749 2.89834C562.398 2.86876 567.474 3.19409 562.897 3.23845ZM567.17 2.54344C565.261 2.54344 563.96 2.54344 563.504 2.4695C565.977 2.17375 576.846 2.57301 567.17 2.54344ZM573.939 5.51571C571.704 5.51571 569.708 5.42699 569.708 5.35305C570.62 4.89464 582.79 5.45656 573.939 5.51571ZM588.885 5.67837C588.712 5.87061 575.37 6.15157 583.354 5.57486C586.911 5.23475 590.859 5.33826 588.885 5.67837ZM595.979 4.09612C594.678 4.18484 594.743 5.14603 593.137 3.99261C593.051 3.99261 587.28 4.37708 587.193 4.37708C588.517 3.50462 594.981 3.80037 595.979 4.09612ZM602.444 2.49908C606.913 2.54344 602.097 2.61738 600.795 2.52865C600.795 2.52865 601.489 2.49908 602.444 2.49908ZM601.576 4.53974C601.12 4.53974 600.556 4.4658 600.405 4.37708C599.428 3.66728 603.767 4.76155 601.576 4.53974ZM605.112 4.42144C603.724 4.42144 602.769 4.25878 602.422 4.09612C602.986 3.44547 611.468 4.28836 605.112 4.42144ZM622.315 5.24954C616.544 5.14603 619.365 3.68207 624.311 4.74677C626.09 4.99815 625.612 5.24954 622.315 5.24954ZM654.269 2.97227C655.788 2.8244 656.482 2.8244 657.068 2.97227C657.849 3.1793 651.926 3.13494 654.269 2.97227ZM651.124 2.39556C656.243 2.43993 650.712 2.5878 649.714 2.52865C648.651 2.39556 649.28 2.39556 651.124 2.39556ZM633.943 5.51571C634.767 5.11645 637.066 5.13124 637.826 5.51571C636.763 5.7671 635.006 5.7671 633.943 5.51571ZM646.047 3.97782C638.368 3.59335 651.774 3.72643 653.553 3.97782C660.907 4.89464 647.241 4.25878 646.047 3.97782ZM653.271 5.97412C652.859 5.72274 661.211 5.73752 660.777 5.97412C660.322 6.34381 654.031 6.16636 653.271 5.97412ZM667.611 3.09057C661.276 3.2976 665.398 1.89279 669.563 2.92791C670.691 3.09057 670.236 3.09057 667.611 3.09057ZM676.18 6.3586C675.789 6.38817 669.715 6.53605 669.476 6.38817C670.214 5.91497 676.245 6.37338 676.657 6.3586C676.375 6.38817 676.223 6.3586 676.18 6.3586ZM683.121 4.21442C682.774 4.21442 682.514 4.03697 682.514 3.85952C682.579 2.83919 684.814 4.3475 683.121 4.21442ZM696.875 5.5305C694.445 5.75231 693.122 5.75231 693.122 5.5305C692.558 5.32348 700.476 5.11645 696.875 5.5305ZM699.283 4.61368C691.17 4.48059 701.713 3.99261 702.754 4.49538C702.754 4.49538 701.257 4.61368 699.283 4.61368ZM701.474 3.80037C693.231 3.84473 704.598 3.1793 705.205 3.66728C705.205 3.80037 703.643 3.80037 701.474 3.80037ZM706.03 5.81146C705.27 5.11645 709.436 5.70795 709.327 5.81146C709.978 6.16636 706.811 6.16636 706.03 5.81146ZM716.746 6.56562C716.985 6.90573 706.919 6.50647 711.844 6.26987C714.815 6.122 717.679 6.26987 716.746 6.56562ZM718.091 4.22921C714.75 4.19963 714.707 3.72643 718.091 3.82994C721.28 3.72643 721.237 4.19963 718.091 4.22921ZM770.459 3.20887C772.455 3.20887 773.995 3.44547 773.995 3.68207C772.889 4.56932 763.083 3.25324 770.459 3.20887ZM730.934 4.08133C730.5 4.08133 730.76 3.96303 731.715 3.84473C736.856 3.28281 732.322 4.36229 730.934 4.08133ZM735.663 6.49168C732.799 6.49168 732.799 5.95934 735.663 5.95934C738.44 5.95934 738.44 6.49168 735.663 6.49168ZM737.854 4.49538C736.986 4.49538 736.27 4.42144 736.27 4.34751C735.771 4.09612 741.108 4.45102 737.854 4.49538ZM738.591 3.97782C737.767 3.97782 736.682 3.94824 736.27 3.84473C736.791 3.68207 744.687 3.91867 738.591 3.97782ZM756.922 5.5305C723.276 5.90019 765.556 4.73198 769.83 5.33826C769.83 5.33826 763.843 5.5305 756.922 5.5305ZM767.726 6.83179C758.745 6.56562 775.687 6.68392 775.34 6.83179C776.056 6.96488 772.997 6.96488 767.726 6.83179ZM785.124 4.96858C784.451 5.73752 778.572 6.75786 782.022 5.78189C782.868 5.54529 788.009 3.60813 785.124 4.96858ZM787.705 6.4769C789.289 6.04806 793.454 6.07763 795.016 6.4769C793.02 6.75786 789.701 6.75786 787.705 6.4769ZM808.206 5.87061C802.066 5.47135 813.868 4.61368 811.633 5.58965C811.633 6.13678 811.112 6.13678 808.206 5.87061ZM839.986 5.57486C838.229 5.57486 836.559 5.57486 836.277 5.4122C836.993 4.53974 847.601 5.58965 839.986 5.57486ZM858.404 5.94455C847.839 5.7671 869.988 0.635859 859.163 5.7671C858.361 6.21072 859.163 6.4769 858.404 5.94455ZM862.461 5.8854C862.461 5.97412 859.424 6.40296 859.185 6.37338C860.009 6.22551 863.61 4.15527 862.461 5.8854ZM864.088 5.07209C864.088 5.07209 864.174 5.04251 864.218 5.04251C864.348 5.14603 863.914 5.19039 864.088 5.07209Z", fill: "inherit" }))));
1352
+ };
1140
1353
 
1141
- var colorFilterStyle = styled.css(templateObject_1$1O || (templateObject_1$1O = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("filter", function (props) { return props.$colorFilter; }, function (value) { return parseColorFilter(value); }));
1142
- var templateObject_1$1O;
1354
+ var flexStyle = styled.css(templateObject_1$1R || (templateObject_1$1R = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("display", function (props) { var _a; return (_a = props.$display) !== null && _a !== void 0 ? _a : "flex"; }), responsiveStyle("flex-direction", function (props) { return props.$flexDirection; }), responsiveStyle("flex-wrap", function (props) { return props.$flexWrap; }), responsiveStyle("align-items", function (props) { return props.$alignItems; }), responsiveStyle("align-content", function (props) { return props.$alignContent; }), responsiveStyle("justify-content", function (props) { return props.$justifyContent; }), responsiveStyle("align-self", function (props) { return props.$alignSelf; }), responsiveStyle("order", function (props) { return props.$order; }), responsiveStyle("flex-grow", function (props) { return props.$flexGrow; }), responsiveStyle("flex-shrink", function (props) { return props.$flexShrink; }), responsiveStyle("flex-basis", function (props) { return props.$flexBasis; }, parseSpacing), responsiveStyle("gap", function (props) { return props.$gap; }, parseSpacing), responsiveStyle("column-gap", function (props) { return props.$columnGap; }, parseSpacing), responsiveStyle("row-gap", function (props) { return props.$rowGap; }, parseSpacing));
1355
+ var templateObject_1$1R;
1143
1356
 
1144
- var oakPlaceholder = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA2NCA2NCI+PHBhdGggZmlsbD0iIzIyMiIgZD0iTTI4Ljc3OSAxOS4xNzZhMjcuMTkxIDI3LjE5MSAwIDAgMC0zLjggMS42IDE2LjcgMTYuNyAwIDAgMC03LjEgOC40YzAgLjEtLjEuMi0uMS4zLS43IDIuNC0uNiAyIDEuMyAyLjMgMS45LjMgMSAuNSAxIDEuMy0uMSA4LjggNC4xIDE1LjEgMTEuNCAxOS42YTEuNSAxLjUgMCAwIDAgMS43LjJjNS43LTIuNiA5LjMtNyAxMC4zLTEzLjJhMSAxIDAgMCAxIDEtMWwzLS4yYy44IDAgMS4zLjIgMS4yIDEuMmExNy45IDE3LjkgMCAwIDEtMy4yIDkuMiAyMy43IDIzLjcgMCAwIDEtMTAuOSA5LjEgNS40MDEgNS40MDEgMCAwIDEtNC41LS4yIDI2LjI5OCAyNi4yOTggMCAwIDEtOC41LTYuNiAyNS45IDI1LjkgMCAwIDEtNi40LTE0LjRjMC0uNi0uMi0uNy0uOC0uOC0yLjUtLjQtMi41LS4xLTIuMy0yLjlhMTkuMyAxOS4zIDAgMCAxIDEwLjgtMTYuNiAzOC45OTkgMzguOTk5IDAgMCAxIDUuNy0yLjEgMi4xIDIuMSAwIDAgMCAuOS0xLjMgMTQuMSAxNC4xIDAgMCAxIDMuNS02LjNsLjMtLjNjMS45LTIgMi42LTIgNC4zLjJsLjQuNWMxLjEgMS4xIDEgMS41LS4xIDIuNmExMS45IDExLjkgMCAwIDAtMy4yIDQuNCAxNi45IDE2LjkgMCAwIDEgNy41IDIuM2M1LjcgMy41IDkuMiA4LjMgOS45IDE1IC4wMTYuOTAxLS4wMTcgMS44MDItLjEgMi43IDAgLjgtLjYgMS0xLjIgMS4yYTE2LjEgMTYuMSAwIDAgMS0xMS0uNyAxNy45MDEgMTcuOTAxIDAgMCAxLTEwLjktMTMuNiA5Ljc5NiA5Ljc5NiAwIDAgMS0uMS0xLjlabTE4LjEgMTIuMmMuNC01LjUtNi45LTEyLjYtMTMtMTIuMS41IDYuNSA3LjYgMTIuOCAxMyAxMi4xWiIgb3BhY2l0eT0iLjEiLz48L3N2Zz4=";
1145
- var clickStyles = styled.css(templateObject_2$Q || (templateObject_2$Q = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
1146
- /* onClick might be passed in the useClickableCard pattern */
1147
- return props.onClick && styled.css(templateObject_1$1N || (templateObject_1$1N = tslib.__makeTemplateObject(["\n &:hover {\n cursor: pointer;\n }\n "], ["\n &:hover {\n cursor: pointer;\n }\n "])));
1148
- });
1149
- var placeholderStyles = styled.css(templateObject_4$l || (templateObject_4$l = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
1150
- return props.$showOakPlaceholder && styled.css(templateObject_3$z || (templateObject_3$z = tslib.__makeTemplateObject(["\n background-image: url(", ");\n background-color: ", ";\n background-size: ", ";\n background-position: center;\n background-repeat: no-repeat;\n "], ["\n background-image: url(", ");\n background-color: ", ";\n background-size: ", ";\n background-position: center;\n background-repeat: no-repeat;\n "])), oakPlaceholder, parseColor("bg-decorative2-very-subdued"), parseSpacing("spacing-64"));
1151
- });
1152
- var StyledFillImage = styled__default.default(Image__default.default)(templateObject_6$b || (templateObject_6$b = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n"])), colorFilterStyle, clickStyles, placeholderStyles, function (props) { return styled.css(templateObject_5$e || (templateObject_5$e = tslib.__makeTemplateObject(["\n object-fit: ", ";\n "], ["\n object-fit: ", ";\n "])), props.$objectFit ? props.$objectFit : "contain"); });
1153
- var StyledResponsiveImage = styled__default.default(Image__default.default)(templateObject_7$5 || (templateObject_7$5 = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n width: 100%;\n height: auto;\n"], ["\n ", "\n ", "\n ", "\n width: 100%;\n height: auto;\n"])), colorFilterStyle, clickStyles, placeholderStyles);
1357
+ var oakFlexCss = flexStyle;
1154
1358
  /**
1155
- * A wrapper for NextJs's Image component.
1359
+ * Flex sets `display: flex;` and exposes various flex props, along with Box
1360
+ * props.
1156
1361
  *
1157
- * Use this for all image types as well as icons.
1158
- * Can accept remote urls provided they are whitelisted in next.config.js and relative urls for local images provided they begin with a "/".
1159
- * Set the width and height of the image through the `$width` and `$height` props when the aspect ratio is not known. This will letterbox the image to avoid stretching.
1160
- * Alternatively pass `width` and `height` props when the aspect ratio is known and use $minWidth to set the rendered width, avoiding letter-boxing.
1161
- * NB. for letterboxed images, $background controls the color of the letterbox not the image.
1162
- * `positionStyle` and `spacingStyle` props are also exposed for container.
1163
- * sizes is exposed for further optimisation read Next docs for more info.
1362
+ * ## Usage
1363
+ * Before adding props to this component, think about whether it makes sense
1364
+ * to add it to Box instead, as this component extends that.
1365
+ */
1366
+ var OakFlex = styled__default.default(OakBox)(templateObject_1$1Q || (templateObject_1$1Q = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), flexStyle);
1367
+ var templateObject_1$1Q;
1368
+
1369
+ var StyledOakFlex$5 = styled__default.default(OakFlex)(templateObject_1$1P || (templateObject_1$1P = tslib.__makeTemplateObject([""], [""])));
1370
+ /**
1371
+ * A Drawn HR svg inside a flex container
1372
+ *
1373
+ * use prop hrColor to change the color of the HR
1164
1374
  *
1375
+ * change the sizeProps of the flex container to change the size and dimentions of the HR
1165
1376
  */
1166
- var OakImage = function (_a) {
1167
- var props = tslib.__rest(_a, []);
1168
- var as = props.as, src = props.src, alt = props.alt, width = props.width, height = props.height, sizes = props.sizes, _b = props.$width, $width = _b === void 0 ? "100%" : _b, _c = props.$position, $position = _c === void 0 ? "relative" : _c, $colorFilter = props.$colorFilter, _d = props.placeholder, placeholder = _d === void 0 ? "oak" : _d, unoptimized = props.unoptimized, imageProps = props.imageProps, $objectFit = props.$objectFit, onLoad = props.onLoad, onError = props.onError, rest = tslib.__rest(props, ["as", "src", "alt", "width", "height", "sizes", "$width", "$position", "$colorFilter", "placeholder", "unoptimized", "imageProps", "$objectFit", "onLoad", "onError"]);
1169
- var finalPlaceholder = placeholder === "oak" ? undefined : placeholder;
1170
- var _e = useShowPlaceholder(), showPlaceholder = _e.showPlaceholder, handleComplete = _e.handleComplete, setImg = _e.setImg;
1171
- // We don't know the aspect ratio of the image, so we must use fill and letterbox it to avoid stretching
1172
- // Use $width and $height to set the width and height of the image container
1173
- if (!width || !height) {
1174
- return (React__default.default.createElement(OakBox, tslib.__assign({ as: "span", "$display": "block", "$position": $position, "$width": $width }, rest),
1175
- React__default.default.createElement(StyledFillImage, tslib.__assign({ ref: setImg, as: as !== null && as !== void 0 ? as : Image__default.default, src: src, alt: alt, sizes: sizes, fill: true, "$colorFilter": $colorFilter, placeholder: finalPlaceholder, "$showOakPlaceholder": placeholder === "oak" && showPlaceholder, unoptimized: unoptimized, onLoad: handleComplete(onLoad), onError: handleComplete(onError), "$objectFit": $objectFit }, imageProps))));
1176
- }
1177
- // When we know the aspect ratio, we can use Image's repsonsive layout
1178
- // Use $minWidth to set the width with auto height
1179
- return (React__default.default.createElement(OakBox, tslib.__assign({ as: "span", "$display": "block", "$maxWidth": "spacing-0", "$position": $position }, rest),
1180
- React__default.default.createElement(StyledResponsiveImage, tslib.__assign({ ref: setImg, as: as !== null && as !== void 0 ? as : Image__default.default, src: src, alt: alt, width: width, height: height, sizes: sizes, unoptimized: unoptimized, "$colorFilter": $colorFilter, placeholder: finalPlaceholder, "$showOakPlaceholder": placeholder === "oak" && showPlaceholder, onLoad: handleComplete(onLoad), onError: handleComplete(onError) }, imageProps))));
1377
+ var OakHandDrawnHR = function (props) {
1378
+ var hrColor = props.hrColor, flexProps = tslib.__rest(props, ["hrColor"]);
1379
+ return (React__default.default.createElement(StyledOakFlex$5, tslib.__assign({ focusable: false }, flexProps),
1380
+ React__default.default.createElement(HandDrawnHRSvg, { "$fill": hrColor })));
1381
+ };
1382
+ var templateObject_1$1P;
1383
+
1384
+ var DropdownContext = React.createContext(null);
1385
+ var OakButtonWithDropdownProvider = function (_a) {
1386
+ var onClose = _a.onClose, children = _a.children;
1387
+ var context = React.useMemo(function () { return ({ onClose: onClose }); }, [onClose]);
1388
+ return (React__default.default.createElement(DropdownContext.Provider, { value: context }, children));
1181
1389
  };
1182
- var templateObject_1$1N, templateObject_2$Q, templateObject_3$z, templateObject_4$l, templateObject_5$e, templateObject_6$b, templateObject_7$5;
1183
1390
 
1184
1391
  /**
1185
- * A wrapper around OakImage which uses the image-map.json file to map icon names to image paths.
1392
+ * Span renders a `span` (inline text) component, exposing all the typography props.
1393
+ * ## Usage
1394
+ * Use this component when you want to apply styles to a piece of inline text.
1186
1395
  */
1187
- var OakIcon = function (props) {
1188
- var iconName = props.iconName, alt = props.alt, iconWidth = props.iconWidth, iconHeight = props.iconHeight, _a = props.$width, $width = _a === void 0 ? iconWidth !== null && iconWidth !== void 0 ? iconWidth : "spacing-32" : _a, _b = props.$height, $height = _b === void 0 ? iconHeight !== null && iconHeight !== void 0 ? iconHeight : "spacing-32" : _b, _c = props.$minHeight, $minHeight = _c === void 0 ? $height : _c, _d = props.$minWidth, $minWidth = _d === void 0 ? $width : _d; props.imageProps; var rest = tslib.__rest(props, ["iconName", "alt", "iconWidth", "iconHeight", "$width", "$height", "$minHeight", "$minWidth", "imageProps"]);
1189
- return (React__default.default.createElement(OakImage, tslib.__assign({ src: generateOakIconURL(iconName), alt: alt !== null && alt !== void 0 ? alt : "", "$width": $width, "$height": $height, "$minHeight": $minHeight, "$minWidth": $minWidth, placeholder: "empty",
1190
- // Icons should not be optimised since the SVG is already as small as it can be and should be served directly
1191
- unoptimized: true }, rest)));
1396
+ var OakSpan = styled__default.default.span(templateObject_1$1O || (templateObject_1$1O = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), colorStyle, opacityStyle, marginStyle, paddingStyle, borderStyle, typographyStyle, positionStyle);
1397
+ var templateObject_1$1O;
1398
+
1399
+ var internalButtonCss = styled.css(templateObject_1$1N || (templateObject_1$1N = tslib.__makeTemplateObject(["\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n text-align: left;\n font-family: unset;\n outline: none;\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n &:disabled {\n pointer-events: none;\n cursor: default;\n }\n"], ["\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n text-align: left;\n font-family: unset;\n outline: none;\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n &:disabled {\n pointer-events: none;\n cursor: default;\n }\n"])), typographyStyle, colorStyle, spacingStyle, displayStyle, borderStyle, dropShadowStyle);
1400
+ var UnstyledInternalButton = function (props) {
1401
+ var onClick = props.onClick, onHovered = props.onHovered, _a = props.element, Component = _a === void 0 ? "button" : _a, rest = tslib.__rest(props, ["onClick", "onHovered", "element"]);
1402
+ var hoverStart = React.useRef(null);
1403
+ var handleClick = function (event) {
1404
+ if (onClick) {
1405
+ onClick(event);
1406
+ }
1407
+ };
1408
+ var handleMouseEnter = function (event) {
1409
+ hoverStart.current = event.timeStamp;
1410
+ };
1411
+ var handleMouseLeave = function (event) {
1412
+ if (hoverStart.current === null) {
1413
+ return;
1414
+ }
1415
+ var delta = event.timeStamp - hoverStart.current;
1416
+ hoverStart.current = null;
1417
+ if (onHovered) {
1418
+ onHovered(event, delta);
1419
+ }
1420
+ };
1421
+ return (React__default.default.createElement(Component, tslib.__assign({}, rest, { onClick: handleClick, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave })));
1192
1422
  };
1423
+ /**
1424
+ *
1425
+ * An unstyled button to be used as a basis for all UI button components.
1426
+ * The following callbacks are available for tracking focus events:
1427
+ *
1428
+ * ### onClick
1429
+ * `onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`
1430
+
1431
+ * ### onHovered
1432
+ * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>
1433
+ * called after a mouseEnter and mouseLeave event has happened
1434
+ *
1435
+ * NB. We must export a styled component for it to be inheritable
1436
+ */
1437
+ var InternalButton = styled__default.default(UnstyledInternalButton)(templateObject_2$Q || (templateObject_2$Q = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), internalButtonCss);
1438
+ var templateObject_1$1N, templateObject_2$Q;
1193
1439
 
1194
1440
  var screenReaderStyle = styled.css(templateObject_1$1M || (templateObject_1$1M = tslib.__makeTemplateObject(["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n"], ["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n"])));
1195
1441
  /**
@@ -1207,11 +1453,11 @@ var DelayedShow = styled.keyframes(templateObject_2$O || (templateObject_2$O = t
1207
1453
  var StyledLoadingSpinner = styled__default.default.span(templateObject_5$d || (templateObject_5$d = tslib.__makeTemplateObject(["\n ", "\n ", "\n --inner-width: calc(var(--width) / 10 * 8);\n --thickness: calc(var(--width) / 12);\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--width);\n height: var(--width);\n ", "\n"], ["\n ", "\n ", "\n --inner-width: calc(var(--width) / 10 * 8);\n --thickness: calc(var(--width) / 12);\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--width);\n height: var(--width);\n ", "\n"])), function (props) {
1208
1454
  return props.$width
1209
1455
  ? responsiveStyle("--width", function (props) { return props.$width; }, parseSpacing)
1210
- : styled.css(templateObject_3$y || (templateObject_3$y = tslib.__makeTemplateObject(["\n --width: 1.25rem;\n "], ["\n --width: 1.25rem;\n "])));
1456
+ : styled.css(templateObject_3$z || (templateObject_3$z = tslib.__makeTemplateObject(["\n --width: 1.25rem;\n "], ["\n --width: 1.25rem;\n "])));
1211
1457
  }, function (_a) {
1212
1458
  var $delay = _a.$delay;
1213
1459
  if ($delay) {
1214
- return styled.css(templateObject_4$k || (templateObject_4$k = tslib.__makeTemplateObject(["\n opacity: 0;\n animation: ", " 0s;\n animation-delay: ", "s;\n animation-fill-mode: forwards;\n "], ["\n opacity: 0;\n animation: ", " 0s;\n animation-delay: ", "s;\n animation-fill-mode: forwards;\n "])), DelayedShow, $delay / 1000);
1460
+ return styled.css(templateObject_4$l || (templateObject_4$l = tslib.__makeTemplateObject(["\n opacity: 0;\n animation: ", " 0s;\n animation-delay: ", "s;\n animation-fill-mode: forwards;\n "], ["\n opacity: 0;\n animation: ", " 0s;\n animation-delay: ", "s;\n animation-fill-mode: forwards;\n "])), DelayedShow, $delay / 1000);
1215
1461
  }
1216
1462
  }, colorStyle);
1217
1463
  var StyledSpinnerRing = styled__default.default.div(templateObject_8 || (templateObject_8 = tslib.__makeTemplateObject(["\n width: var(--inner-width);\n height: var(--inner-width);\n border-radius: 50%;\n border: var(--thickness) solid;\n ", "\n animation: ", " 1.2s linear infinite;\n"], ["\n width: var(--inner-width);\n height: var(--inner-width);\n border-radius: 50%;\n border: var(--thickness) solid;\n ", "\n animation: ", " 1.2s linear infinite;\n"])), function (props) {
@@ -1233,11 +1479,11 @@ var OakLoadingSpinner = function (_a) {
1233
1479
  React__default.default.createElement(OakScreenReader, null, "Loading"),
1234
1480
  React__default.default.createElement(StyledSpinnerRing, { "$loaderColor": loaderColor })));
1235
1481
  };
1236
- var templateObject_1$1L, templateObject_2$O, templateObject_3$y, templateObject_4$k, templateObject_5$d, templateObject_6$a, templateObject_7$4, templateObject_8;
1482
+ var templateObject_1$1L, templateObject_2$O, templateObject_3$z, templateObject_4$l, templateObject_5$d, templateObject_6$a, templateObject_7$4, templateObject_8;
1237
1483
 
1238
1484
  var StyledInternalButton$5 = styled__default.default(InternalButton)(templateObject_2$N || (templateObject_2$N = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n"])), positionStyle, sizeStyle, function (props) { return styled.css(templateObject_1$1K || (templateObject_1$1K = tslib.__makeTemplateObject(["\n &:hover {\n text-decoration: ", ";\n color: ", ";\n background: ", ";\n border-color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:active {\n background: ", ";\n border-color: ", ";\n color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:disabled {\n background: ", ";\n border-color: ", ";\n color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n "], ["\n &:hover {\n text-decoration: ", ";\n color: ", ";\n background: ", ";\n border-color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:active {\n background: ", ";\n border-color: ", ";\n color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:disabled {\n background: ", ";\n border-color: ", ";\n color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n "])), props.$hoverUnderline ? "underline" : "none", parseColor(props.$hoverTextColor), parseColor(props.$hoverBackground), parseColor(props.$hoverBorderColor), parseColor(props.$defaultBackground), parseColor(props.$defaultBorderColor), parseColor(props.$defaultTextColor), parseColor(props.$disabledBackground), parseColor(props.$disabledBorderColor), parseColor(props.$disabledTextColor)); });
1239
- var StyledOakSvg$1 = styled__default.default(OakSvg)(templateObject_3$x || (templateObject_3$x = tslib.__makeTemplateObject(["\n bottom: -3px;\n left: 0px;\n position: absolute;\n height: 5px;\n color: ", ";\n"], ["\n bottom: -3px;\n left: 0px;\n position: absolute;\n height: 5px;\n color: ", ";\n"])), parseColor("border-decorative1"));
1240
- var StyledButtonWrapper$3 = styled__default.default(OakBox)(templateObject_4$j || (templateObject_4$j = tslib.__makeTemplateObject(["\n .grey-shadow:has(+ * + .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:hover),\n .yellow-shadow:has(+ .internal-button:hover:not(:focus-visible, :active)) {\n box-shadow: ", ";\n }\n .grey-shadow:has(+ * + .internal-button:hover) {\n box-shadow: none;\n }\n .grey-shadow:has(+ * + .internal-button:active) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:active) {\n box-shadow: ", ";\n }\n"], ["\n .grey-shadow:has(+ * + .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:hover),\n .yellow-shadow:has(+ .internal-button:hover:not(:focus-visible, :active)) {\n box-shadow: ", ";\n }\n .grey-shadow:has(+ * + .internal-button:hover) {\n box-shadow: none;\n }\n .grey-shadow:has(+ * + .internal-button:active) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:active) {\n box-shadow: ", ";\n }\n"])), parseDropShadow("drop-shadow-centered-grey"), parseDropShadow("drop-shadow-centered-lemon"), function (props) { return parseDropShadow(props.$hoverShadow); }, parseDropShadow("drop-shadow-grey"), parseDropShadow("drop-shadow-lemon"));
1485
+ var StyledOakSvg$1 = styled__default.default(OakSvg)(templateObject_3$y || (templateObject_3$y = tslib.__makeTemplateObject(["\n bottom: -3px;\n left: 0px;\n position: absolute;\n height: 5px;\n color: ", ";\n"], ["\n bottom: -3px;\n left: 0px;\n position: absolute;\n height: 5px;\n color: ", ";\n"])), parseColor("border-decorative1"));
1486
+ var StyledButtonWrapper$3 = styled__default.default(OakBox)(templateObject_4$k || (templateObject_4$k = tslib.__makeTemplateObject(["\n .grey-shadow:has(+ * + .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:hover),\n .yellow-shadow:has(+ .internal-button:hover:not(:focus-visible, :active)) {\n box-shadow: ", ";\n }\n .grey-shadow:has(+ * + .internal-button:hover) {\n box-shadow: none;\n }\n .grey-shadow:has(+ * + .internal-button:active) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:active) {\n box-shadow: ", ";\n }\n"], ["\n .grey-shadow:has(+ * + .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:hover),\n .yellow-shadow:has(+ .internal-button:hover:not(:focus-visible, :active)) {\n box-shadow: ", ";\n }\n .grey-shadow:has(+ * + .internal-button:hover) {\n box-shadow: none;\n }\n .grey-shadow:has(+ * + .internal-button:active) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:active) {\n box-shadow: ", ";\n }\n"])), parseDropShadow("drop-shadow-centered-grey"), parseDropShadow("drop-shadow-centered-lemon"), function (props) { return parseDropShadow(props.$hoverShadow); }, parseDropShadow("drop-shadow-grey"), parseDropShadow("drop-shadow-lemon"));
1241
1487
  /**
1242
1488
  *
1243
1489
  * A styled rectangular button, not intended to be used directly.
@@ -1273,7 +1519,7 @@ var TextWithUnderline$1 = function (_a) {
1273
1519
  React__default.default.createElement(OakSpan, { "$font": font }, children),
1274
1520
  React__default.default.createElement(StyledOakSvg$1, { name: "underline", "data-state": "selected", "data-testid": "selected-underline" })));
1275
1521
  };
1276
- var templateObject_1$1K, templateObject_2$N, templateObject_3$x, templateObject_4$j;
1522
+ var templateObject_1$1K, templateObject_2$N, templateObject_3$y, templateObject_4$k;
1277
1523
 
1278
1524
  /**
1279
1525
  *
@@ -1413,7 +1659,7 @@ var useDropdownContext = function () {
1413
1659
  var StyledInternalButton$4 = styled__default.default(InternalButton)(templateObject_2$M || (templateObject_2$M = tslib.__makeTemplateObject(["\n display: inline-block;\n ", "\n ", "\n"], ["\n display: inline-block;\n ", "\n ", "\n"])), positionStyle, function (props) { return styled.css(templateObject_1$1J || (templateObject_1$1J = tslib.__makeTemplateObject(["\n &:hover {\n text-decoration: underline;\n color: ", ";\n\n &:not(:active) [data-icon-for=\"button\"] img {\n filter: ", ";\n }\n }\n &:active {\n color: ", ";\n }\n &:disabled {\n color: ", ";\n }\n "], ["\n &:hover {\n text-decoration: underline;\n color: ", ";\n\n &:not(:active) [data-icon-for=\"button\"] img {\n filter: ", ";\n }\n }\n &:active {\n color: ", ";\n }\n &:disabled {\n color: ", ";\n }\n "])), parseColor(props.$hoverTextColor), props.$hoverIconColor
1414
1660
  ? parseColorFilter(props.$hoverIconColor)
1415
1661
  : undefined, parseColor(props.$defaultTextColor), parseColor(props.$disabledTextColor)); });
1416
- var StyledButtonWrapper$2 = styled__default.default(OakFlex)(templateObject_5$c || (templateObject_5$c = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), function (props) { return styled.css(templateObject_3$w || (templateObject_3$w = tslib.__makeTemplateObject(["\n > :first-of-type:focus-visible .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n > :first-of-type:hover .shadow {\n box-shadow: ", ";\n }\n > :first-of-type:active .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n "], ["\n > :first-of-type:focus-visible .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n > :first-of-type:hover .shadow {\n box-shadow: ", ";\n }\n > :first-of-type:active .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n "])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), parseDropShadow(props.$hoverDropShadow /*"drop-shadow-lemon"*/), parseDropShadow("drop-shadow-lemon"), parseDropShadow("drop-shadow-grey")); }, function (props) { return styled.css(templateObject_4$i || (templateObject_4$i = tslib.__makeTemplateObject(["\n > :first-of-type:disabled .icon-container {\n background: ", ";\n }\n > :first-of-type:hover .icon-container {\n background: ", ";\n }\n > :first-of-type:active .icon-container {\n background: ", ";\n }\n "], ["\n > :first-of-type:disabled .icon-container {\n background: ", ";\n }\n > :first-of-type:hover .icon-container {\n background: ", ";\n }\n > :first-of-type:active .icon-container {\n background: ", ";\n }\n "])), parseColor(props.$disabledIconBackground), parseColor(props.$hoverIconBackground), parseColor(props.$defaultIconBackground)); });
1662
+ var StyledButtonWrapper$2 = styled__default.default(OakFlex)(templateObject_5$c || (templateObject_5$c = tslib.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), function (props) { return styled.css(templateObject_3$x || (templateObject_3$x = tslib.__makeTemplateObject(["\n > :first-of-type:focus-visible .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n > :first-of-type:hover .shadow {\n box-shadow: ", ";\n }\n > :first-of-type:active .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n "], ["\n > :first-of-type:focus-visible .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n > :first-of-type:hover .shadow {\n box-shadow: ", ";\n }\n > :first-of-type:active .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n "])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), parseDropShadow(props.$hoverDropShadow /*"drop-shadow-lemon"*/), parseDropShadow("drop-shadow-lemon"), parseDropShadow("drop-shadow-grey")); }, function (props) { return styled.css(templateObject_4$j || (templateObject_4$j = tslib.__makeTemplateObject(["\n > :first-of-type:disabled .icon-container {\n background: ", ";\n }\n > :first-of-type:hover .icon-container {\n background: ", ";\n }\n > :first-of-type:active .icon-container {\n background: ", ";\n }\n "], ["\n > :first-of-type:disabled .icon-container {\n background: ", ";\n }\n > :first-of-type:hover .icon-container {\n background: ", ";\n }\n > :first-of-type:active .icon-container {\n background: ", ";\n }\n "])), parseColor(props.$disabledIconBackground), parseColor(props.$hoverIconBackground), parseColor(props.$defaultIconBackground)); });
1417
1663
  /**
1418
1664
  *
1419
1665
  * A styled button with round icons, not intended to be used directly.
@@ -1448,7 +1694,7 @@ var InternalShadowRoundButton = function (props) {
1448
1694
  React__default.default.createElement(OakSpan, { "$font": "heading-7" }, children),
1449
1695
  isTrailingIcon && iconLogic))));
1450
1696
  };
1451
- var templateObject_1$1J, templateObject_2$M, templateObject_3$w, templateObject_4$i, templateObject_5$c;
1697
+ var templateObject_1$1J, templateObject_2$M, templateObject_3$x, templateObject_4$j, templateObject_5$c;
1452
1698
 
1453
1699
  /**
1454
1700
  *
@@ -1614,7 +1860,7 @@ var OakSmallSecondaryToggleButton = function (_a) {
1614
1860
  var StyledInternalButton$3 = styled__default.default(InternalButton)(templateObject_2$L || (templateObject_2$L = tslib.__makeTemplateObject(["\n display: inline-block;\n ", "\n ", "\n ", "\n"], ["\n display: inline-block;\n ", "\n ", "\n ", "\n"])), positionStyle, sizeStyle, function (props) { return styled.css(templateObject_1$1I || (templateObject_1$1I = tslib.__makeTemplateObject(["\n &:hover {\n text-decoration: underline;\n color: ", ";\n\n &:not(:active) [data-icon-for=\"button\"] img {\n filter: ", ";\n }\n }\n &:active {\n color: ", ";\n }\n &:disabled {\n color: ", ";\n }\n "], ["\n &:hover {\n text-decoration: underline;\n color: ", ";\n\n &:not(:active) [data-icon-for=\"button\"] img {\n filter: ", ";\n }\n }\n &:active {\n color: ", ";\n }\n &:disabled {\n color: ", ";\n }\n "])), parseColor(props.$hoverTextColor), props.$hoverIconColor
1615
1861
  ? parseColorFilter(props.$hoverIconColor)
1616
1862
  : undefined, parseColor(props.$defaultTextColor), parseColor(props.$disabledTextColor)); });
1617
- var StyledButtonWrapper$1 = styled__default.default(OakFlex)(templateObject_3$v || (templateObject_3$v = tslib.__makeTemplateObject(["\n > :first-of-type:hover .highlight {\n display: block;\n }\n > :first-of-type:active .highlight {\n display: block;\n }\n > :first-of-type:active .shadow {\n display: block;\n }\n > :first-of-type:focus-visible {\n box-shadow:\n ", ",\n ", ";\n background: white;\n }\n"], ["\n > :first-of-type:hover .highlight {\n display: block;\n }\n > :first-of-type:active .highlight {\n display: block;\n }\n > :first-of-type:active .shadow {\n display: block;\n }\n > :first-of-type:focus-visible {\n box-shadow:\n ", ",\n ", ";\n background: white;\n }\n"])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"));
1863
+ var StyledButtonWrapper$1 = styled__default.default(OakFlex)(templateObject_3$w || (templateObject_3$w = tslib.__makeTemplateObject(["\n > :first-of-type:hover .highlight {\n display: block;\n }\n > :first-of-type:active .highlight {\n display: block;\n }\n > :first-of-type:active .shadow {\n display: block;\n }\n > :first-of-type:focus-visible {\n box-shadow:\n ", ",\n ", ";\n background: white;\n }\n"], ["\n > :first-of-type:hover .highlight {\n display: block;\n }\n > :first-of-type:active .highlight {\n display: block;\n }\n > :first-of-type:active .shadow {\n display: block;\n }\n > :first-of-type:focus-visible {\n box-shadow:\n ", ",\n ", ";\n background: white;\n }\n"])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"));
1618
1864
  /**
1619
1865
  *
1620
1866
  * A styled button with round icons, not intended to be used directly.
@@ -1649,7 +1895,7 @@ var InternalShadowIconButton = function (props) {
1649
1895
  React__default.default.createElement(OakSpan, { "$font": "heading-light-7" }, children),
1650
1896
  isTrailingIcon && iconLogic))));
1651
1897
  };
1652
- var templateObject_1$1I, templateObject_2$L, templateObject_3$v;
1898
+ var templateObject_1$1I, templateObject_2$L, templateObject_3$w;
1653
1899
 
1654
1900
  /**
1655
1901
  *
@@ -1688,8 +1934,8 @@ var OakTertiaryInvertedButton = function (_a) {
1688
1934
  };
1689
1935
 
1690
1936
  var StyledInternalButton$2 = styled__default.default(InternalButton)(templateObject_2$K || (templateObject_2$K = tslib.__makeTemplateObject(["\n ", "\n ", "\n display: inline-block;\n ", "\n"], ["\n ", "\n ", "\n display: inline-block;\n ", "\n"])), positionStyle, sizeStyle, function (props) { return styled.css(templateObject_1$1H || (templateObject_1$1H = tslib.__makeTemplateObject(["\n &:hover {\n color: ", ";\n background: ", ";\n border-color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:active {\n background: ", ";\n border-color: ", ";\n color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:disabled {\n background: ", ";\n border-color: ", ";\n color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n "], ["\n &:hover {\n color: ", ";\n background: ", ";\n border-color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:active {\n background: ", ";\n border-color: ", ";\n color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:disabled {\n background: ", ";\n border-color: ", ";\n color: ", ";\n [data-state=\"selected\"] {\n display: none;\n }\n }\n "])), parseColor(props.$hoverTextColor), parseColor(props.$hoverBackground), parseColor(props.$hoverBorderColor), parseColor(props.$defaultBackground), parseColor(props.$defaultBorderColor), parseColor(props.$defaultTextColor), parseColor(props.$disabledBackground), parseColor(props.$disabledBorderColor), parseColor(props.$disabledTextColor)); });
1691
- var StyledOakSvg = styled__default.default(OakSvg)(templateObject_3$u || (templateObject_3$u = tslib.__makeTemplateObject(["\n bottom: -3px;\n left: 0px;\n position: absolute;\n height: 5px;\n color: ", ";\n"], ["\n bottom: -3px;\n left: 0px;\n position: absolute;\n height: 5px;\n color: ", ";\n"])), parseColor("border-decorative1"));
1692
- var StyledButtonWrapper = styled__default.default(OakBox)(templateObject_4$h || (templateObject_4$h = tslib.__makeTemplateObject(["\n .grey-shadow:has(+ * + .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:hover),\n .grey-shadow:has(+ * + .internal-button:hover) {\n box-shadow: none;\n }\n .grey-shadow:has(+ * + .internal-button:active) {\n box-shadow: ", ";\n }\n"], ["\n .grey-shadow:has(+ * + .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:hover),\n .grey-shadow:has(+ * + .internal-button:hover) {\n box-shadow: none;\n }\n .grey-shadow:has(+ * + .internal-button:active) {\n box-shadow: ", ";\n }\n"])), parseDropShadow("drop-shadow-centered-grey"), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-grey"));
1937
+ var StyledOakSvg = styled__default.default(OakSvg)(templateObject_3$v || (templateObject_3$v = tslib.__makeTemplateObject(["\n bottom: -3px;\n left: 0px;\n position: absolute;\n height: 5px;\n color: ", ";\n"], ["\n bottom: -3px;\n left: 0px;\n position: absolute;\n height: 5px;\n color: ", ";\n"])), parseColor("border-decorative1"));
1938
+ var StyledButtonWrapper = styled__default.default(OakBox)(templateObject_4$i || (templateObject_4$i = tslib.__makeTemplateObject(["\n .grey-shadow:has(+ * + .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:hover),\n .grey-shadow:has(+ * + .internal-button:hover) {\n box-shadow: none;\n }\n .grey-shadow:has(+ * + .internal-button:active) {\n box-shadow: ", ";\n }\n"], ["\n .grey-shadow:has(+ * + .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:focus-visible) {\n box-shadow: ", ";\n }\n .yellow-shadow:has(+ .internal-button:hover),\n .grey-shadow:has(+ * + .internal-button:hover) {\n box-shadow: none;\n }\n .grey-shadow:has(+ * + .internal-button:active) {\n box-shadow: ", ";\n }\n"])), parseDropShadow("drop-shadow-centered-grey"), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-grey"));
1693
1939
  /**
1694
1940
  * A left-aligned button styled similarly to OakSmallPrimaryInvertedButton
1695
1941
  * with configurable icon alignment.
@@ -1726,7 +1972,261 @@ var TextWithUnderline = function (_a) {
1726
1972
  React__default.default.createElement(OakSpan, { "$font": "body-3-bold" }, children),
1727
1973
  React__default.default.createElement(StyledOakSvg, { name: "underline", "data-state": "selected", "data-testid": "selected-underline" })));
1728
1974
  };
1729
- var templateObject_1$1H, templateObject_2$K, templateObject_3$u, templateObject_4$h;
1975
+ var templateObject_1$1H, templateObject_2$K, templateObject_3$v, templateObject_4$i;
1976
+
1977
+ var TrieNode = /** @class */ (function () {
1978
+ function TrieNode() {
1979
+ this.children = new Map();
1980
+ this.hasValue = false;
1981
+ }
1982
+ return TrieNode;
1983
+ }());
1984
+ var Trie = /** @class */ (function () {
1985
+ function Trie() {
1986
+ this.root = new TrieNode();
1987
+ }
1988
+ Trie.prototype.set = function (path, value) {
1989
+ var e_1, _a;
1990
+ var node = this.root;
1991
+ try {
1992
+ for (var path_1 = tslib.__values(path), path_1_1 = path_1.next(); !path_1_1.done; path_1_1 = path_1.next()) {
1993
+ var key = path_1_1.value;
1994
+ var next = node.children.get(key);
1995
+ if (!next) {
1996
+ next = new TrieNode();
1997
+ node.children.set(key, next);
1998
+ }
1999
+ node = next;
2000
+ }
2001
+ }
2002
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2003
+ finally {
2004
+ try {
2005
+ if (path_1_1 && !path_1_1.done && (_a = path_1.return)) _a.call(path_1);
2006
+ }
2007
+ finally { if (e_1) throw e_1.error; }
2008
+ }
2009
+ node.hasValue = true;
2010
+ node.value = value;
2011
+ return this;
2012
+ };
2013
+ Trie.prototype.get = function (path) {
2014
+ var node = this.find(path);
2015
+ return (node === null || node === void 0 ? void 0 : node.hasValue) ? node.value : undefined;
2016
+ };
2017
+ Trie.prototype.has = function (path) {
2018
+ var _a, _b;
2019
+ return (_b = (_a = this.find(path)) === null || _a === void 0 ? void 0 : _a.hasValue) !== null && _b !== void 0 ? _b : false;
2020
+ };
2021
+ Trie.prototype.hasPrefix = function (path) {
2022
+ return this.find(path) !== undefined;
2023
+ };
2024
+ Trie.prototype.find = function (path) {
2025
+ var e_2, _a;
2026
+ var node = this.root;
2027
+ try {
2028
+ for (var path_2 = tslib.__values(path), path_2_1 = path_2.next(); !path_2_1.done; path_2_1 = path_2.next()) {
2029
+ var key = path_2_1.value;
2030
+ var next = node.children.get(key);
2031
+ if (!next)
2032
+ return undefined;
2033
+ node = next;
2034
+ }
2035
+ }
2036
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
2037
+ finally {
2038
+ try {
2039
+ if (path_2_1 && !path_2_1.done && (_a = path_2.return)) _a.call(path_2);
2040
+ }
2041
+ finally { if (e_2) throw e_2.error; }
2042
+ }
2043
+ return node;
2044
+ };
2045
+ return Trie;
2046
+ }());
2047
+
2048
+ /**
2049
+ * Lookup a value for the set of props, ideal for complex matrices of values
2050
+ * @param entries
2051
+ * @returns
2052
+ */
2053
+ function propsLookup(entries) {
2054
+ var trie = new Trie();
2055
+ if (entries.length < 1) {
2056
+ throw new Error("Must provide entries for lookup");
2057
+ }
2058
+ var expectedKeys = Object.keys(entries[0][0]).toSorted(function (a, b) {
2059
+ return a.localeCompare(b);
2060
+ });
2061
+ entries.forEach(function (_a) {
2062
+ var _b = tslib.__read(_a, 2), obj = _b[0], value = _b[1];
2063
+ var sortedEntries = Object.entries(obj).toSorted(function (_a, _b) {
2064
+ var _c = tslib.__read(_a, 1), aKey = _c[0];
2065
+ var _d = tslib.__read(_b, 1), bKey = _d[0];
2066
+ return aKey.localeCompare(bKey);
2067
+ });
2068
+ var sortedKey = sortedEntries.map(function (_a) {
2069
+ var _b = tslib.__read(_a, 1), k = _b[0];
2070
+ return k;
2071
+ });
2072
+ var sortedValue = sortedEntries.map(function (_a) {
2073
+ var _b = tslib.__read(_a, 2), v = _b[1];
2074
+ return v;
2075
+ });
2076
+ if (trie.has(sortedValue)) {
2077
+ throw new Error("Keys must be unique");
2078
+ }
2079
+ if (!lodash.isEqual(sortedKey, expectedKeys)) {
2080
+ throw new Error("For performance reasons objects must all have the same shape");
2081
+ }
2082
+ trie.set(sortedValue, value);
2083
+ });
2084
+ return function (obj) {
2085
+ var lookupKey = expectedKeys.map(function (k) { return obj[k]; });
2086
+ return trie.get(lookupKey);
2087
+ };
2088
+ }
2089
+
2090
+ var lookupButtonPadding = propsLookup([
2091
+ [{ $size: "sm" }, "spacing-8"],
2092
+ [{ $size: "md" }, "spacing-12"],
2093
+ ]);
2094
+ var lookupIconSize = propsLookup([
2095
+ [{ $size: "sm" }, "spacing-20"],
2096
+ [{ $size: "md" }, "spacing-24"],
2097
+ ]);
2098
+ var lookupButtonBackground = propsLookup([
2099
+ [
2100
+ { $type: "primary", $colorScheme: "primary", disabled: undefined },
2101
+ "bg-btn-primary",
2102
+ ],
2103
+ [
2104
+ { $type: "primary", $colorScheme: "inverted", disabled: undefined },
2105
+ "bg-btn-secondary",
2106
+ ],
2107
+ [
2108
+ { $type: "secondary", $colorScheme: "primary", disabled: undefined },
2109
+ "bg-btn-secondary",
2110
+ ],
2111
+ [
2112
+ { $type: "primary", $colorScheme: "primary", disabled: true },
2113
+ "bg-btn-primary-disabled",
2114
+ ],
2115
+ [
2116
+ { $type: "primary", $colorScheme: "inverted", disabled: true },
2117
+ "bg-btn-secondary-disabled",
2118
+ ],
2119
+ [
2120
+ { $type: "secondary", $colorScheme: "primary", disabled: true },
2121
+ "bg-btn-secondary-disabled",
2122
+ ],
2123
+ ]);
2124
+ var lookupIconLoadingColor = propsLookup([
2125
+ [
2126
+ { $type: "primary", $colorScheme: "primary", disabled: undefined },
2127
+ "icon-inverted",
2128
+ ],
2129
+ [
2130
+ { $type: "primary", $colorScheme: "inverted", disabled: undefined },
2131
+ "icon-primary",
2132
+ ],
2133
+ [
2134
+ { $type: "secondary", $colorScheme: "primary", disabled: undefined },
2135
+ "icon-primary",
2136
+ ],
2137
+ [
2138
+ { $type: "primary", $colorScheme: "primary", disabled: true },
2139
+ "icon-inverted",
2140
+ ],
2141
+ [
2142
+ { $type: "primary", $colorScheme: "inverted", disabled: true },
2143
+ "icon-disabled",
2144
+ ],
2145
+ [
2146
+ { $type: "secondary", $colorScheme: "primary", disabled: true },
2147
+ "icon-disabled",
2148
+ ],
2149
+ ]);
2150
+ var lookupIconColor = propsLookup([
2151
+ [
2152
+ { $type: "primary", $colorScheme: "primary", disabled: undefined },
2153
+ "icon-inverted",
2154
+ ],
2155
+ [
2156
+ { $type: "primary", $colorScheme: "inverted", disabled: undefined },
2157
+ "icon-primary",
2158
+ ],
2159
+ [
2160
+ { $type: "secondary", $colorScheme: "primary", disabled: undefined },
2161
+ "icon-primary",
2162
+ ],
2163
+ [
2164
+ { $type: "primary", $colorScheme: "primary", disabled: true },
2165
+ "icon-inverted",
2166
+ ],
2167
+ [
2168
+ { $type: "primary", $colorScheme: "inverted", disabled: true },
2169
+ "icon-disabled",
2170
+ ],
2171
+ [
2172
+ { $type: "secondary", $colorScheme: "primary", disabled: true },
2173
+ "icon-disabled",
2174
+ ],
2175
+ ]);
2176
+ var lookupButtonHoverBackground = propsLookup([
2177
+ [{ $type: "primary", $colorScheme: "primary" }, "bg-btn-primary-hover"],
2178
+ [{ $type: "primary", $colorScheme: "inverted" }, "bg-btn-secondary-hover"],
2179
+ [{ $type: "secondary", $colorScheme: "primary" }, "bg-btn-secondary-hover"],
2180
+ [{ $type: "secondary", $colorScheme: "inverted" }, "bg-btn-primary-hover"],
2181
+ ]);
2182
+ var lookupButtonBorderWidth = propsLookup([
2183
+ [{ $type: "primary" }, "border-solid-none"],
2184
+ [{ $type: "secondary" }, "border-solid-m"],
2185
+ ]);
2186
+ var lookupButtonBorderColor = propsLookup([
2187
+ [{ $type: "secondary", disabled: undefined }, "border-primary"],
2188
+ [{ $type: "secondary", disabled: true }, "border-neutral"],
2189
+ ]);
2190
+
2191
+ function isJSDOM$1() {
2192
+ var _a, _b;
2193
+ return (_b = (_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === null || _b === void 0 ? void 0 : _b.includes("jsdom/");
2194
+ }
2195
+ var focusVisibleChildren$1 = "\n a".concat(isJSDOM$1() ? "" : ":focus-visible", ",\n button").concat(isJSDOM$1() ? "" : ":focus-visible", "\n");
2196
+ /**
2197
+ * Wrap focusable components `<a/>`/`<button/>` and this will add focus styles then the inner element is focused
2198
+ */
2199
+ var focusStyles = styled.css(templateObject_4$h || (templateObject_4$h = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
2200
+ var focusStyles = styled.css(templateObject_1$1G || (templateObject_1$1G = tslib.__makeTemplateObject([""], [""])));
2201
+ if (!props.disabled) {
2202
+ focusStyles = styled.css(templateObject_2$J || (templateObject_2$J = tslib.__makeTemplateObject(["\n &:hover {\n ", ";\n box-shadow: ", ";\n }\n\n &:active {\n box-shadow: ", ";\n }\n "], ["\n &:hover {\n ", ";\n box-shadow: ", ";\n }\n\n &:active {\n box-shadow: ", ";\n }\n "])), responsiveStyle("background-color", function (props) { return props.$hoverBackground; }, function (value) { return parseColor(value); }), parseDropShadow("drop-shadow-lemon"), ["drop-shadow-lemon", "drop-shadow-grey"]
2203
+ .map(function (i) { return parseDropShadow(i); })
2204
+ .join(", "));
2205
+ }
2206
+ return styled.css(templateObject_3$u || (templateObject_3$u = tslib.__makeTemplateObject(["\n &:focus {\n ", "\n box-shadow: ", ";\n\n & ", " {\n outline: none;\n }\n }\n ", "\n "], ["\n &:focus {\n ", "\n box-shadow: ", ";\n\n & ", " {\n outline: none;\n }\n }\n ", "\n "])), responsiveStyle("border-radius", function (props) { return props.$borderRadius; }, parseBorderRadius), ["drop-shadow-centered-lemon", "drop-shadow-centered-grey"]
2207
+ .map(function (i) { return parseDropShadow(i); })
2208
+ .join(", "), focusVisibleChildren$1, focusStyles);
2209
+ });
2210
+ var templateObject_1$1G, templateObject_2$J, templateObject_3$u, templateObject_4$h;
2211
+
2212
+ var Button = styled__default.default.button(templateObject_1$1F || (templateObject_1$1F = tslib.__makeTemplateObject(["\n outline: none;\n border: none;\n display: flex;\n ", "\n cursor: ", ";\n background: ", ";\n padding: ", ";\n border-radius: ", ";\n border-style: solid;\n border-color: ", ";\n border-width: ", ";\n"], ["\n outline: none;\n border: none;\n display: flex;\n ", "\n cursor: ", ";\n background: ", ";\n padding: ", ";\n border-radius: ", ";\n border-style: solid;\n border-color: ", ";\n border-width: ", ";\n"])), focusStyles, function (props) { return (props.disabled ? "not-allowed" : "pointer"); }, function (props) { return parseColor(lookupButtonBackground(props)); }, function (props) { return parseSpacing(lookupButtonPadding(props)); }, parseBorderRadius("border-radius-circle"), function (props) { return parseColor(lookupButtonBorderColor(props)); }, function (props) { return parseBorderWidth(lookupButtonBorderWidth(props)); });
2213
+ function defaultProps(props) {
2214
+ return tslib.__assign({
2215
+ // loading assumes the button is disabled
2216
+ disabled: props.disabled || props.isLoading }, props);
2217
+ }
2218
+ /**
2219
+ *
2220
+ * Icon Buttons allow users to take actions, navigate, and make choices, with a single tap.
2221
+ */
2222
+ var OakIconButton = function (rawProps) {
2223
+ var props = defaultProps(rawProps);
2224
+ var iconName = props.iconName, isLoading = props.isLoading, rest = tslib.__rest(props, ["iconName", "isLoading"]);
2225
+ return (React__default.default.createElement(Button, tslib.__assign({ "$hoverBackground": lookupButtonHoverBackground(props) }, rest),
2226
+ isLoading && (React__default.default.createElement(OakLoadingSpinner, { "$width": lookupIconSize(props), loaderColor: lookupIconLoadingColor(props) })),
2227
+ !isLoading && (React__default.default.createElement(OakIcon, { "$width": lookupIconSize(props), "$height": lookupIconSize(props), "$colorFilter": lookupIconColor(props), iconName: iconName }))));
2228
+ };
2229
+ var templateObject_1$1F;
1730
2230
 
1731
2231
  var oakHeadingTagsConst = [
1732
2232
  "div",
@@ -1749,11 +2249,11 @@ var HeadingTagComponent = function (props) {
1749
2249
  * Use the controls to view different font styles.
1750
2250
  *
1751
2251
  */
1752
- var OakHeading = styled__default.default(HeadingTagComponent)(templateObject_1$1G || (templateObject_1$1G = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n"])), typographyStyle, marginStyle, colorStyle, opacityStyle);
1753
- var templateObject_1$1G;
2252
+ var OakHeading = styled__default.default(HeadingTagComponent)(templateObject_1$1E || (templateObject_1$1E = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n"])), typographyStyle, marginStyle, colorStyle, opacityStyle);
2253
+ var templateObject_1$1E;
1754
2254
 
1755
- var listStyle = styled.css(templateObject_1$1F || (templateObject_1$1F = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("list-style", function (props) { return props.$listStyle; }));
1756
- var templateObject_1$1F;
2255
+ var listStyle = styled.css(templateObject_1$1D || (templateObject_1$1D = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("list-style", function (props) { return props.$listStyle; }));
2256
+ var templateObject_1$1D;
1757
2257
 
1758
2258
  /**
1759
2259
  * Styled `li` (list item) component.
@@ -1766,8 +2266,8 @@ var templateObject_1$1F;
1766
2266
  var oakLIDefaults = {
1767
2267
  $display: "revert",
1768
2268
  };
1769
- var OakLI = styled__default.default.li.attrs(function (props) { return (tslib.__assign(tslib.__assign({}, oakLIDefaults), props)); })(templateObject_1$1E || (templateObject_1$1E = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n // FIXME - Flex props will only work when display is set to flex, can we conditionally apply this + props above ?\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n // FIXME - Flex props will only work when display is set to flex, can we conditionally apply this + props above ?\n ", "\n"])), oakBoxCss, typographyStyle, listStyle, displayStyle, flexStyle);
1770
- var templateObject_1$1E;
2269
+ var OakLI = styled__default.default.li.attrs(function (props) { return (tslib.__assign(tslib.__assign({}, oakLIDefaults), props)); })(templateObject_1$1C || (templateObject_1$1C = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n // FIXME - Flex props will only work when display is set to flex, can we conditionally apply this + props above ?\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n // FIXME - Flex props will only work when display is set to flex, can we conditionally apply this + props above ?\n ", "\n"])), oakBoxCss, typographyStyle, listStyle, displayStyle, flexStyle);
2270
+ var templateObject_1$1C;
1771
2271
 
1772
2272
  /**
1773
2273
  * Styled `ol` (ordered list) component.
@@ -1777,12 +2277,12 @@ var templateObject_1$1E;
1777
2277
  * Use where we have an ordered list to ensure numbers are styled
1778
2278
  *
1779
2279
  * */
1780
- var OakOL = styled__default.default.ol(templateObject_1$1D || (templateObject_1$1D = tslib.__makeTemplateObject(["\n counter-reset: item;\n padding: 0;\n\n li {\n display: block;\n counter-increment: item;\n margin: 0;\n padding: 0 0 0 16px;\n text-indent: -16px;\n list-style-type: none;\n line-height: 32px;\n\n // Portable text generates linebreaks within list items\n\n br {\n content: \"\";\n display: block;\n margin-top: 8px;\n }\n }\n\n & li::before {\n padding-right: 4px;\n content: counter(item) \".\";\n }\n a {\n color: ", ";\n }\n ", "\n ", "\n ", "\n"], ["\n counter-reset: item;\n padding: 0;\n\n li {\n display: block;\n counter-increment: item;\n margin: 0;\n padding: 0 0 0 16px;\n text-indent: -16px;\n list-style-type: none;\n line-height: 32px;\n\n // Portable text generates linebreaks within list items\n\n br {\n content: \"\";\n display: block;\n margin-top: 8px;\n }\n }\n\n & li::before {\n padding-right: 4px;\n content: counter(item) \".\";\n }\n a {\n color: ", ";\n }\n ", "\n ", "\n ", "\n"])), function (props) {
2280
+ var OakOL = styled__default.default.ol(templateObject_1$1B || (templateObject_1$1B = tslib.__makeTemplateObject(["\n counter-reset: item;\n padding: 0;\n\n li {\n display: block;\n counter-increment: item;\n margin: 0;\n padding: 0 0 0 16px;\n text-indent: -16px;\n list-style-type: none;\n line-height: 32px;\n\n // Portable text generates linebreaks within list items\n\n br {\n content: \"\";\n display: block;\n margin-top: 8px;\n }\n }\n\n & li::before {\n padding-right: 4px;\n content: counter(item) \".\";\n }\n a {\n color: ", ";\n }\n ", "\n ", "\n ", "\n"], ["\n counter-reset: item;\n padding: 0;\n\n li {\n display: block;\n counter-increment: item;\n margin: 0;\n padding: 0 0 0 16px;\n text-indent: -16px;\n list-style-type: none;\n line-height: 32px;\n\n // Portable text generates linebreaks within list items\n\n br {\n content: \"\";\n display: block;\n margin-top: 8px;\n }\n }\n\n & li::before {\n padding-right: 4px;\n content: counter(item) \".\";\n }\n a {\n color: ", ";\n }\n ", "\n ", "\n ", "\n"])), function (props) {
1781
2281
  return props.theme &&
1782
2282
  props.theme.uiColors &&
1783
2283
  props.theme.uiColors["text-link-active"];
1784
2284
  }, marginStyle, colorStyle, typographyStyle);
1785
- var templateObject_1$1D;
2285
+ var templateObject_1$1B;
1786
2286
 
1787
2287
  /**
1788
2288
  * Styled `p` (paragraph) component.
@@ -1791,8 +2291,8 @@ var templateObject_1$1D;
1791
2291
  * However, if you want different styles for a particular paragraph,
1792
2292
  * you can use this component to apply additional styles.
1793
2293
  */
1794
- var OakP = styled__default.default.p(templateObject_1$1C || (templateObject_1$1C = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n"])), typographyStyle, colorStyle, marginStyle);
1795
- var templateObject_1$1C;
2294
+ var OakP = styled__default.default.p(templateObject_1$1A || (templateObject_1$1A = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n"])), typographyStyle, colorStyle, marginStyle);
2295
+ var templateObject_1$1A;
1796
2296
 
1797
2297
  /**
1798
2298
  * The Typography component sets a typography style context from which children
@@ -1801,8 +2301,8 @@ var templateObject_1$1C;
1801
2301
  * This should be the primary component to set a typography context.
1802
2302
  * Use this component whenever you want to style blocks of 'body' text.
1803
2303
  */
1804
- var OakTypography = styled__default.default(OakBox)(templateObject_1$1B || (templateObject_1$1B = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typographyStyle);
1805
- var templateObject_1$1B;
2304
+ var OakTypography = styled__default.default(OakBox)(templateObject_1$1z || (templateObject_1$1z = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typographyStyle);
2305
+ var templateObject_1$1z;
1806
2306
 
1807
2307
  /**
1808
2308
  * Styled `ul` (unordered list) component.
@@ -1812,10 +2312,10 @@ var templateObject_1$1B;
1812
2312
  * Resets browser spacing and other styles, accepts BoxProps' style props.
1813
2313
  *
1814
2314
  * */
1815
- var OakUL = styled__default.default.ul(templateObject_2$J || (templateObject_2$J = tslib.__makeTemplateObject(["\n ", "\n margin: 0;\n display: block;\n ", "\n ", "\n"], ["\n ", "\n margin: 0;\n display: block;\n ", "\n ", "\n"])), function (props) {
1816
- return props.$reset && styled.css(templateObject_1$1A || (templateObject_1$1A = tslib.__makeTemplateObject(["\n list-style: none;\n padding: 0;\n "], ["\n list-style: none;\n padding: 0;\n "])));
2315
+ var OakUL = styled__default.default.ul(templateObject_2$I || (templateObject_2$I = tslib.__makeTemplateObject(["\n ", "\n margin: 0;\n display: block;\n ", "\n ", "\n"], ["\n ", "\n margin: 0;\n display: block;\n ", "\n ", "\n"])), function (props) {
2316
+ return props.$reset && styled.css(templateObject_1$1y || (templateObject_1$1y = tslib.__makeTemplateObject(["\n list-style: none;\n padding: 0;\n "], ["\n list-style: none;\n padding: 0;\n "])));
1817
2317
  }, oakBoxCss, function (props) { return props.$display && oakFlexCss; });
1818
- var templateObject_1$1A, templateObject_2$J;
2318
+ var templateObject_1$1y, templateObject_2$I;
1819
2319
 
1820
2320
  var variantConfig = {
1821
2321
  primary: {
@@ -1834,8 +2334,8 @@ var variantConfig = {
1834
2334
  },
1835
2335
  };
1836
2336
 
1837
- var StyledOakIcon$3 = styled__default.default(OakIcon)(templateObject_1$1z || (templateObject_1$1z = tslib.__makeTemplateObject(["\n width: 1.25em;\n min-width: 1.25em;\n height: 1.25em;\n min-height: 1.25em;\n"], ["\n width: 1.25em;\n min-width: 1.25em;\n height: 1.25em;\n min-height: 1.25em;\n"])));
1838
- var StyledOakLoadingSpinner = styled__default.default(OakLoadingSpinner)(templateObject_2$I || (templateObject_2$I = tslib.__makeTemplateObject(["\n --width: 1.25em;\n"], ["\n --width: 1.25em;\n"])));
2337
+ var StyledOakIcon$3 = styled__default.default(OakIcon)(templateObject_1$1x || (templateObject_1$1x = tslib.__makeTemplateObject(["\n width: 1.25em;\n min-width: 1.25em;\n height: 1.25em;\n min-height: 1.25em;\n"], ["\n width: 1.25em;\n min-width: 1.25em;\n height: 1.25em;\n min-height: 1.25em;\n"])));
2338
+ var StyledOakLoadingSpinner = styled__default.default(OakLoadingSpinner)(templateObject_2$H || (templateObject_2$H = tslib.__makeTemplateObject(["\n --width: 1.25em;\n"], ["\n --width: 1.25em;\n"])));
1839
2339
  var StyledLink$1 = styled__default.default.a(templateObject_3$t || (templateObject_3$t = tslib.__makeTemplateObject(["\n display: inline;\n text-align: left;\n align-items: center;\n gap: ", ";\n outline: none;\n border-radius: ", ";\n padding: ", ";\n margin: -", ";\n appearance: none;\n ", "\n background: none;\n border: none;\n text-decoration: ", ";\n cursor: pointer;\n color: ", ";\n overflow-wrap: break-word;\n\n ", " {\n filter: ", ";\n display: inline-block;\n vertical-align: text-top;\n }\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n\n &:visited {\n color: ", ";\n\n ", " {\n filter: ", ";\n }\n }\n\n @media (hover: hover) {\n &:hover,\n &:visited:hover {\n color: ", ";\n ", " {\n filter: ", ";\n }\n text-decoration: underline;\n text-decoration-thickness: 18%;\n }\n }\n\n &:active {\n color: ", ";\n outline: 1px solid ", ";\n ", " {\n filter: ", ";\n }\n }\n\n &[disabled] {\n cursor: not-allowed;\n color: ", ";\n\n ", " {\n filter: ", ";\n }\n }\n"], ["\n display: inline;\n text-align: left;\n align-items: center;\n gap: ", ";\n outline: none;\n border-radius: ", ";\n padding: ", ";\n margin: -", ";\n appearance: none;\n ", "\n background: none;\n border: none;\n text-decoration: ", ";\n cursor: pointer;\n color: ", ";\n overflow-wrap: break-word;\n\n ", " {\n filter: ", ";\n display: inline-block;\n vertical-align: text-top;\n }\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n\n &:visited {\n color: ", ";\n\n ", " {\n filter: ", ";\n }\n }\n\n @media (hover: hover) {\n &:hover,\n &:visited:hover {\n color: ", ";\n ", " {\n filter: ", ";\n }\n text-decoration: underline;\n text-decoration-thickness: 18%;\n }\n }\n\n &:active {\n color: ", ";\n outline: 1px solid ", ";\n ", " {\n filter: ", ";\n }\n }\n\n &[disabled] {\n cursor: not-allowed;\n color: ", ";\n\n ", " {\n filter: ", ";\n }\n }\n"])), parseSpacing("spacing-4"), parseBorderRadius("border-radius-m"), parseSpacing("spacing-4"), parseSpacing("spacing-4"), function (props) { return (props.$font ? typographyStyle : "font: inherit;"); }, function (props) { return props.$textDecoration; }, function (props) { return parseColor(props.$color); }, StyledOakIcon$3, function (props) { return parseColorFilter(props.$color); }, parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), function (props) { return parseColor(props.$visitedColor); }, StyledOakIcon$3, function (props) { return parseColorFilter(props.$visitedColor); }, function (props) { return parseColor(props.$hoverColor); }, StyledOakIcon$3, function (props) { return parseColorFilter(props.$hoverColor); }, function (props) { return parseColor(props.$activeColor); }, function (props) { return parseColor(props.$activeColor); }, StyledOakIcon$3, function (props) { return parseColorFilter(props.$activeColor); }, function (props) { return parseColor(props.$disabledColor); }, StyledOakIcon$3, function (props) { return parseColorFilter(props.$disabledColor); });
1840
2340
  /**
1841
2341
  * A link with an optional icon and loading state.
@@ -1871,7 +2371,7 @@ var InternalLink = React.forwardRef(function (props, ref) {
1871
2371
  React__default.default.createElement(OakSpan, null, children),
1872
2372
  isTrailingIcon && icon));
1873
2373
  });
1874
- var templateObject_1$1z, templateObject_2$I, templateObject_3$t;
2374
+ var templateObject_1$1x, templateObject_2$H, templateObject_3$t;
1875
2375
 
1876
2376
  /**
1877
2377
  * Represents textual user input from a keyboard, voice input, or any other text entry device.
@@ -1915,7 +2415,7 @@ var useMounted = function () {
1915
2415
  return isMounted;
1916
2416
  };
1917
2417
 
1918
- var SlideInFlex = styled__default.default(OakFlex)(templateObject_1$1y || (templateObject_1$1y = tslib.__makeTemplateObject(["\n max-width: ", ";\n transform: ", ";\n ", "\n"], ["\n max-width: ", ";\n transform: ", ";\n ", "\n"])), function (_a) {
2418
+ var SlideInFlex = styled__default.default(OakFlex)(templateObject_1$1w || (templateObject_1$1w = tslib.__makeTemplateObject(["\n max-width: ", ";\n transform: ", ";\n ", "\n"], ["\n max-width: ", ";\n transform: ", ";\n ", "\n"])), function (_a) {
1919
2419
  var $isLeftHandSide = _a.$isLeftHandSide;
1920
2420
  return $isLeftHandSide ? "calc(100vw - ".concat(parseSpacing("spacing-20"), ")") : "100vw";
1921
2421
  }, function (_a) {
@@ -1936,9 +2436,9 @@ var InternalSlideInFlex = React.forwardRef(function (props, ref) {
1936
2436
  var finalZIndex = props.finalZIndex, state = props.state, isLeftHandSide = props.isLeftHandSide, children = props.children, _a = props.largeScreenMaxWidth, largeScreenMaxWidth = _a === void 0 ? 600 : _a, rest = tslib.__rest(props, ["finalZIndex", "state", "isLeftHandSide", "children", "largeScreenMaxWidth"]);
1937
2437
  return (React__default.default.createElement(SlideInFlex, tslib.__assign({ ref: ref, "$background": "bg-primary", "$right": !isLeftHandSide ? "spacing-0" : null, "$left": isLeftHandSide ? "spacing-0" : null, "$position": "fixed", "$bottom": "spacing-0", "$width": ["spacing-640"], "$top": "spacing-0", "$transition": "standard-ease", "$zIndex": finalZIndex, "$flexDirection": "column", "$state": state, "$color": "text-primary", role: "dialog", "$isLeftHandSide": isLeftHandSide, "$largeScreenMaxWidth": largeScreenMaxWidth }, rest), children));
1938
2438
  });
1939
- var templateObject_1$1y;
2439
+ var templateObject_1$1w;
1940
2440
 
1941
- var FadeOutBox = styled__default.default(OakBox)(templateObject_1$1x || (templateObject_1$1x = tslib.__makeTemplateObject(["\n opacity: ", ";\n background-color: black;\n position: fixed;\n inset: 0;\n transition: ease;\n"], ["\n opacity: ", ";\n background-color: black;\n position: fixed;\n inset: 0;\n transition: ease;\n"])), function (_a) {
2441
+ var FadeOutBox = styled__default.default(OakBox)(templateObject_1$1v || (templateObject_1$1v = tslib.__makeTemplateObject(["\n opacity: ", ";\n background-color: black;\n position: fixed;\n inset: 0;\n transition: ease;\n"], ["\n opacity: ", ";\n background-color: black;\n position: fixed;\n inset: 0;\n transition: ease;\n"])), function (_a) {
1942
2442
  var $state = _a.$state;
1943
2443
  switch ($state) {
1944
2444
  case "entered":
@@ -1957,7 +2457,7 @@ var InternalModalTransition = function (_a) {
1957
2457
  React__default.default.createElement(FadeOutBox, { "$zIndex": finalZIndex, "$state": state, onClick: closeOnBackgroundClick ? onClose : undefined }),
1958
2458
  React__default.default.createElement(InternalSlideInFlex, tslib.__assign({ isLeftHandSide: isLeftHandSide, ref: transitionRef, "$zIndex": finalZIndex, state: state, "aria-modal": true, largeScreenMaxWidth: largeScreenMaxWidth }, rest), children))); }));
1959
2459
  };
1960
- var templateObject_1$1x;
2460
+ var templateObject_1$1v;
1961
2461
 
1962
2462
  var OakInformativeModalBorderColor = React.createContext("border-neutral-lighter");
1963
2463
  /**
@@ -2124,8 +2624,8 @@ var OakInlineBanner = function (_a) {
2124
2624
  cta && React__default.default.createElement(OakFlex, { "$flexShrink": 0 }, cta)))));
2125
2625
  };
2126
2626
 
2127
- var FocusOnBox = styled__default.default(reactFocusOn.FocusOn)(templateObject_1$1w || (templateObject_1$1w = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), oakBoxCss);
2128
- var BlurredOakBox = styled__default.default(OakBox)(templateObject_2$H || (templateObject_2$H = tslib.__makeTemplateObject(["\n backdrop-filter: blur(3px);\n"], ["\n backdrop-filter: blur(3px);\n"])));
2627
+ var FocusOnBox = styled__default.default(reactFocusOn.FocusOn)(templateObject_1$1u || (templateObject_1$1u = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), oakBoxCss);
2628
+ var BlurredOakBox = styled__default.default(OakBox)(templateObject_2$G || (templateObject_2$G = tslib.__makeTemplateObject(["\n backdrop-filter: blur(3px);\n"], ["\n backdrop-filter: blur(3px);\n"])));
2129
2629
  var FadeInFlex = styled__default.default(OakFlex)(templateObject_3$s || (templateObject_3$s = tslib.__makeTemplateObject(["\n opacity: ", ";\n transition: opacity 0s;\n"], ["\n opacity: ", ";\n transition: opacity 0s;\n"])), function (_a) {
2130
2630
  var $state = _a.$state;
2131
2631
  switch ($state) {
@@ -2216,7 +2716,7 @@ var OakModalCenter = function (_a) {
2216
2716
  return modal;
2217
2717
  }
2218
2718
  };
2219
- var templateObject_1$1w, templateObject_2$H, templateObject_3$s;
2719
+ var templateObject_1$1u, templateObject_2$G, templateObject_3$s;
2220
2720
 
2221
2721
  /*
2222
2722
  *
@@ -2258,7 +2758,7 @@ var OakTagFunctional = function (props) {
2258
2758
  trailingIcon));
2259
2759
  };
2260
2760
 
2261
- var SuccessIconBackground = styled__default.default(OakBox)(templateObject_1$1v || (templateObject_1$1v = tslib.__makeTemplateObject(["\n top: 6px;\n left: 6px;\n"], ["\n top: 6px;\n left: 6px;\n"])));
2761
+ var SuccessIconBackground = styled__default.default(OakBox)(templateObject_1$1t || (templateObject_1$1t = tslib.__makeTemplateObject(["\n top: 6px;\n left: 6px;\n"], ["\n top: 6px;\n left: 6px;\n"])));
2262
2762
  var SuccessIcon = (React__default.default.createElement(OakBox, { "$position": "relative" },
2263
2763
  React__default.default.createElement(SuccessIconBackground, { "$width": "spacing-20", "$height": "spacing-20", "$background": "bg-primary", "$borderRadius": "border-radius-circle", "$position": "absolute" }),
2264
2764
  React__default.default.createElement(OakIcon, { iconName: "success", "$width": "spacing-32", "$height": "spacing-32" })));
@@ -2309,7 +2809,7 @@ var variants = {
2309
2809
  color: "text-inverted",
2310
2810
  },
2311
2811
  };
2312
- var StyledFlex$3 = styled__default.default(OakFlex)(templateObject_2$G || (templateObject_2$G = tslib.__makeTemplateObject(["\n opacity: ", ";\n transition: opacity 0.3s ease-in-out;\n"], ["\n opacity: ", ";\n transition: opacity 0.3s ease-in-out;\n"])), function (_a) {
2812
+ var StyledFlex$3 = styled__default.default(OakFlex)(templateObject_2$F || (templateObject_2$F = tslib.__makeTemplateObject(["\n opacity: ", ";\n transition: opacity 0.3s ease-in-out;\n"], ["\n opacity: ", ";\n transition: opacity 0.3s ease-in-out;\n"])), function (_a) {
2313
2813
  var $state = _a.$state;
2314
2814
  switch ($state) {
2315
2815
  case "exiting":
@@ -2341,15 +2841,15 @@ var OakToast = function (_a) {
2341
2841
  message,
2342
2842
  (!autoDismiss || showClose) && (React__default.default.createElement(InternalShadowIconButton, { "aria-label": "Dismiss", defaultIconColor: color, defaultTextColor: "transparent", hoverTextColor: "transparent", disabledTextColor: "transparent", hoverIconColor: color, iconName: "cross", onClick: function () { return setIsVisible(false); } })))); }));
2343
2843
  };
2344
- var templateObject_1$1v, templateObject_2$G;
2844
+ var templateObject_1$1t, templateObject_2$F;
2345
2845
 
2346
- var StyledFlex$2 = styled__default.default(OakFlex)(templateObject_1$1u || (templateObject_1$1u = tslib.__makeTemplateObject(["\n width: max-content;\n pointer-events: none;\n"], ["\n width: max-content;\n pointer-events: none;\n"])));
2846
+ var StyledFlex$2 = styled__default.default(OakFlex)(templateObject_1$1s || (templateObject_1$1s = tslib.__makeTemplateObject(["\n width: max-content;\n pointer-events: none;\n"], ["\n width: max-content;\n pointer-events: none;\n"])));
2347
2847
  var ARROW_SIZE = parseSpacing("spacing-16");
2348
2848
  var StyledSvg$1 = styled__default.default.svg(templateObject_6$9 || (templateObject_6$9 = tslib.__makeTemplateObject(["\n position: absolute;\n ", "\n ", "\n"], ["\n position: absolute;\n ", "\n ", "\n"])), function (_a) {
2349
2849
  var $tooltipPosition = _a.$tooltipPosition;
2350
2850
  switch ($tooltipPosition) {
2351
2851
  case "bottom-right":
2352
- return styled.css(templateObject_2$F || (templateObject_2$F = tslib.__makeTemplateObject(["\n top: -", ";\n right: ", ";\n transform: scale(-1, -1);\n "], ["\n top: -", ";\n right: ", ";\n transform: scale(-1, -1);\n "])), ARROW_SIZE, parseSpacing("spacing-0"));
2852
+ return styled.css(templateObject_2$E || (templateObject_2$E = tslib.__makeTemplateObject(["\n top: -", ";\n right: ", ";\n transform: scale(-1, -1);\n "], ["\n top: -", ";\n right: ", ";\n transform: scale(-1, -1);\n "])), ARROW_SIZE, parseSpacing("spacing-0"));
2353
2853
  case "top-right":
2354
2854
  return styled.css(templateObject_3$r || (templateObject_3$r = tslib.__makeTemplateObject(["\n bottom: -", ";\n right: ", ";\n transform: scaleX(-1);\n "], ["\n bottom: -", ";\n right: ", ";\n transform: scaleX(-1);\n "])), ARROW_SIZE, parseSpacing("spacing-0"));
2355
2855
  case "top-left":
@@ -2368,7 +2868,7 @@ var InternalTooltip = function (_a) {
2368
2868
  React__default.default.createElement(StyledSvg$1, { width: ARROW_SIZE, height: ARROW_SIZE, "$fill": $background, "$tooltipPosition": tooltipPosition, "data-testid": "tooltip-arrow" },
2369
2869
  React__default.default.createElement("path", { d: "M0 0H16L8 8L0 16V0Z" }))));
2370
2870
  };
2371
- var templateObject_1$1u, templateObject_2$F, templateObject_3$r, templateObject_4$g, templateObject_5$b, templateObject_6$9;
2871
+ var templateObject_1$1s, templateObject_2$E, templateObject_3$r, templateObject_4$g, templateObject_5$b, templateObject_6$9;
2372
2872
 
2373
2873
  /**
2374
2874
  * A tooltip with oven-ready styling and positioning.
@@ -2484,211 +2984,6 @@ function getTooltipPositionProps(tooltipPosition) {
2484
2984
  return props;
2485
2985
  }
2486
2986
 
2487
- var oakDefaultTheme = {
2488
- name: "default",
2489
- uiColors: {
2490
- "text-primary": "black",
2491
- "text-subdued": "grey60",
2492
- "text-error": "red",
2493
- "text-disabled": "grey50",
2494
- "text-link-active": "navy",
2495
- "text-link-hover": "navy110",
2496
- "text-link-pressed": "navy120",
2497
- "text-link-visited": "navy120",
2498
- "text-inverted": "white",
2499
- "text-success": "oakGreen",
2500
- "text-promo": "lemon",
2501
- "bg-primary": "white",
2502
- "bg-inverted": "black",
2503
- "bg-inverted-semi-transparent": "blackSemiTransparent",
2504
- "bg-neutral": "grey20",
2505
- "bg-neutral-stronger": "grey30",
2506
- "bg-btn-primary": "black",
2507
- "bg-btn-primary-hover": "grey60",
2508
- "bg-btn-primary-disabled": "grey50",
2509
- "bg-btn-secondary": "white",
2510
- "bg-btn-secondary-hover": "grey20",
2511
- "bg-btn-secondary-disabled": "grey30",
2512
- "bg-decorative1-main": "mint",
2513
- "bg-decorative1-subdued": "mint50",
2514
- "bg-decorative1-very-subdued": "mint30",
2515
- "bg-decorative2-main": "aqua",
2516
- "bg-decorative2-subdued": "aqua50",
2517
- "bg-decorative2-very-subdued": "aqua30",
2518
- "bg-decorative3-main": "lavender",
2519
- "bg-decorative3-subdued": "lavender50",
2520
- "bg-decorative3-very-subdued": "lavender30",
2521
- "bg-decorative4-main": "pink",
2522
- "bg-decorative4-subdued": "pink50",
2523
- "bg-decorative4-very-subdued": "pink30",
2524
- "bg-decorative5-main": "lemon",
2525
- "bg-decorative5-subdued": "lemon50",
2526
- "bg-decorative5-very-subdued": "lemon30",
2527
- "bg-decorative6-main": "amber",
2528
- "bg-decorative6-subdued": "amber50",
2529
- "bg-decorative6-very-subdued": "amber30",
2530
- "bg-interactive-element1": "grey50",
2531
- "bg-interactive-element2": "grey40",
2532
- "bg-correct": "mint50",
2533
- "bg-incorrect": "red30",
2534
- "bg-success": "oakGreen",
2535
- "bg-error": "red",
2536
- "icon-inverted": "white",
2537
- "icon-disabled": "grey50",
2538
- "icon-brand": "oakGreen",
2539
- "icon-success": "oakGreen",
2540
- "icon-error": "red",
2541
- "icon-warning": "amber",
2542
- "icon-primary": "black",
2543
- "icon-subdued": "grey60",
2544
- "icon-link-active": "navy",
2545
- "icon-link-hover": "navy110",
2546
- "icon-link-pressed": "navy120",
2547
- "icon-link-visited": "navy120",
2548
- "icon-decorative1": "mint110",
2549
- "icon-decorative2": "aqua110",
2550
- "icon-decorative3": "lavender110",
2551
- "icon-decorative4": "pink110",
2552
- "icon-decorative5": "lemon110",
2553
- "icon-decorative6": "amber",
2554
- "icon-promo": "lemon",
2555
- "border-primary": "black",
2556
- "border-inverted": "white",
2557
- "border-neutral": "grey50",
2558
- "border-neutral-lighter": "grey40",
2559
- "border-neutral-stronger": "grey60",
2560
- "border-brand": "oakGreen",
2561
- "border-success": "oakGreen",
2562
- "border-error": "red",
2563
- "border-warning": "amber",
2564
- "border-decorative1": "mint",
2565
- "border-decorative1-stronger": "mint110",
2566
- "border-decorative2": "aqua",
2567
- "border-decorative2-stronger": "aqua110",
2568
- "border-decorative3": "lavender",
2569
- "border-decorative3-stronger": "lavender110",
2570
- "border-decorative4": "pink",
2571
- "border-decorative4-stronger": "pink110",
2572
- "border-decorative5": "lemon",
2573
- "border-decorative5-stronger": "lemon110",
2574
- "border-decorative6": "amber50",
2575
- "border-decorative6-stronger": "amber",
2576
- transparent: "transparent",
2577
- "code-blue": "rpf-syntax-blue",
2578
- "code-green": "rpf-syntax-green",
2579
- "code-grey": "rpf-syntax-grey",
2580
- "code-pink": "rpf-syntax-pink",
2581
- "border-text-link-pressed": "navy120",
2582
- },
2583
- };
2584
-
2585
- var oakDarkTheme = {
2586
- name: "dark",
2587
- uiColors: {
2588
- "text-primary": "white",
2589
- "text-subdued": "grey30",
2590
- "text-error": "red50",
2591
- "text-disabled": "grey30",
2592
- "text-link-active": "lavender",
2593
- "text-link-hover": "lavender50",
2594
- "text-link-pressed": "lavender30",
2595
- "text-link-visited": "lavender30",
2596
- "text-inverted": "black",
2597
- "text-success": "mint",
2598
- "text-promo": "lemon50",
2599
- "bg-primary": "black",
2600
- "bg-inverted": "white",
2601
- "bg-inverted-semi-transparent": "whiteSemiTransparent",
2602
- "bg-neutral": "grey60",
2603
- "bg-neutral-stronger": "grey70",
2604
- "bg-btn-primary": "white",
2605
- "bg-btn-primary-hover": "grey30",
2606
- "bg-btn-primary-disabled": "grey50",
2607
- "bg-btn-secondary": "black",
2608
- "bg-btn-secondary-hover": "grey60",
2609
- "bg-btn-secondary-disabled": "grey50",
2610
- "bg-decorative1-main": "dark-mint",
2611
- "bg-decorative1-subdued": "dark-mint50",
2612
- "bg-decorative1-very-subdued": "dark-mint30",
2613
- "bg-decorative2-main": "dark-aqua",
2614
- "bg-decorative2-subdued": "dark-aqua50",
2615
- "bg-decorative2-very-subdued": "dark-aqua30",
2616
- "bg-decorative3-main": "dark-lavender",
2617
- "bg-decorative3-subdued": "dark-lavender50",
2618
- "bg-decorative3-very-subdued": "dark-lavender30",
2619
- "bg-decorative4-main": "dark-pink",
2620
- "bg-decorative4-subdued": "dark-pink50",
2621
- "bg-decorative4-very-subdued": "dark-pink30",
2622
- "bg-decorative5-main": "dark-lemon",
2623
- "bg-decorative5-subdued": "dark-lemon50",
2624
- "bg-decorative5-very-subdued": "dark-lemon30",
2625
- "bg-decorative6-main": "dark-amber",
2626
- "bg-decorative6-subdued": "dark-amber50",
2627
- "bg-decorative6-very-subdued": "dark-amber30",
2628
- "bg-interactive-element1": "grey50",
2629
- "bg-interactive-element2": "grey30",
2630
- "bg-correct": "mint30",
2631
- "bg-incorrect": "red30",
2632
- "bg-success": "mint",
2633
- "bg-error": "red50",
2634
- "icon-inverted": "black",
2635
- "icon-disabled": "grey30",
2636
- "icon-brand": "mint",
2637
- "icon-success": "mint",
2638
- "icon-error": "red50",
2639
- "icon-warning": "dark-amber110",
2640
- "icon-primary": "white",
2641
- "icon-subdued": "grey30",
2642
- "icon-link-active": "lavender",
2643
- "icon-link-hover": "lavender50",
2644
- "icon-link-pressed": "lavender30",
2645
- "icon-link-visited": "lavender30",
2646
- "icon-decorative1": "dark-mint110",
2647
- "icon-decorative2": "dark-aqua110",
2648
- "icon-decorative3": "dark-lavender110",
2649
- "icon-decorative4": "dark-pink110",
2650
- "icon-decorative5": "dark-lemon110",
2651
- "icon-decorative6": "dark-amber110",
2652
- "icon-promo": "dark-lemon110",
2653
- "border-primary": "white",
2654
- "border-inverted": "black",
2655
- "border-neutral": "grey60",
2656
- "border-neutral-lighter": "grey70",
2657
- "border-neutral-stronger": "grey40",
2658
- "border-brand": "mint",
2659
- "border-success": "mint",
2660
- "border-error": "red50",
2661
- "border-warning": "dark-amber",
2662
- "border-decorative1": "dark-mint",
2663
- "border-decorative1-stronger": "dark-mint110",
2664
- "border-decorative2": "dark-aqua",
2665
- "border-decorative2-stronger": "dark-aqua110",
2666
- "border-decorative3": "dark-lavender",
2667
- "border-decorative3-stronger": "dark-lavender110",
2668
- "border-decorative4": "dark-pink",
2669
- "border-decorative4-stronger": "dark-pink110",
2670
- "border-decorative5": "dark-lemon",
2671
- "border-decorative5-stronger": "dark-lemon110",
2672
- "border-decorative6": "dark-amber",
2673
- "border-decorative6-stronger": "dark-amber110",
2674
- transparent: "transparent",
2675
- "code-blue": "dark-rpf-syntax-blue",
2676
- "code-green": "dark-rpf-syntax-green",
2677
- "code-grey": "dark-rpf-syntax-grey",
2678
- "code-pink": "dark-rpf-syntax-pink",
2679
- "border-text-link-pressed": "lavender30",
2680
- },
2681
- };
2682
-
2683
- function parseBorderWidth(value) {
2684
- if (!value) {
2685
- return undefined;
2686
- }
2687
- if (value in oakBorderWidthTokens) {
2688
- return "".concat(pxToRem(oakBorderWidthTokens[value]), "rem");
2689
- }
2690
- }
2691
-
2692
2987
  function isJSDOM() {
2693
2988
  var _a, _b;
2694
2989
  return (_b = (_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === null || _b === void 0 ? void 0 : _b.includes("jsdom/");
@@ -2701,7 +2996,7 @@ var fallbackActiveShadow = "".concat(parseDropShadow("drop-shadow-lemon"), ", ")
2701
2996
  /**
2702
2997
  * Wrap focusable components `<a/>`/`<button/>` and this will add focus styles then the inner element is focused
2703
2998
  */
2704
- var OakFocusIndicator = styled__default.default(OakBox)(templateObject_1$1t || (templateObject_1$1t = tslib.__makeTemplateObject(["\n ", "\n box-shadow: ", ";\n\n &:has(", ") {\n ", "\n box-shadow: ", ";\n }\n\n &:has(", ") {\n ", "\n box-shadow: ", ";\n\n & ", " {\n outline: none;\n }\n }\n\n &:has(", ") {\n box-shadow: ", ";\n }\n"], ["\n ", "\n box-shadow: ", ";\n\n &:has(", ") {\n ", "\n box-shadow: ", ";\n }\n\n &:has(", ") {\n ", "\n box-shadow: ", ";\n\n & ", " {\n outline: none;\n }\n }\n\n &:has(", ") {\n box-shadow: ", ";\n }\n"])), function (props) {
2999
+ var OakFocusIndicator = styled__default.default(OakBox)(templateObject_1$1r || (templateObject_1$1r = tslib.__makeTemplateObject(["\n ", "\n box-shadow: ", ";\n\n &:has(", ") {\n ", "\n box-shadow: ", ";\n }\n\n &:has(", ") {\n ", "\n box-shadow: ", ";\n\n & ", " {\n outline: none;\n }\n }\n\n &:has(", ") {\n box-shadow: ", ";\n }\n"], ["\n ", "\n box-shadow: ", ";\n\n &:has(", ") {\n ", "\n box-shadow: ", ";\n }\n\n &:has(", ") {\n ", "\n box-shadow: ", ";\n\n & ", " {\n outline: none;\n }\n }\n\n &:has(", ") {\n box-shadow: ", ";\n }\n"])), function (props) {
2705
3000
  if (props.as === "li") {
2706
3001
  return "\n list-style: none;\n margin: 0;\n padding: 0;\n ";
2707
3002
  }
@@ -2716,14 +3011,7 @@ var OakFocusIndicator = styled__default.default(OakBox)(templateObject_1$1t || (
2716
3011
  ? parseDropShadow(props.$activeDropShadow)
2717
3012
  : fallbackActiveShadow;
2718
3013
  });
2719
- var templateObject_1$1t;
2720
-
2721
- var colorFillStyle = styled.css(templateObject_1$1s || (templateObject_1$1s = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("fill", function (props) { return props.$fill; }, parseColor));
2722
- /**
2723
- * A styled SVG element with props to apply design tokens to the fill and stroke.
2724
- */
2725
- var InternalStyledSvg = styled__default.default.svg(templateObject_2$E || (templateObject_2$E = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n"])), colorFillStyle, responsiveStyle("stroke", function (props) { return props.$stroke; }, parseColor), responsiveStyle("stroke-width", function (props) { return props.$strokeWidth; }, parseBorderWidth));
2726
- var templateObject_1$1s, templateObject_2$E;
3014
+ var templateObject_1$1r;
2727
3015
 
2728
3016
  var HandDrawnFocusUnderlineSvg = function (props) {
2729
3017
  return (React__default.default.createElement(InternalStyledSvg, tslib.__assign({ xmlns: "http://www.w3.org/2000/svg",
@@ -2737,7 +3025,7 @@ var HandDrawnFocusUnderlineSvg = function (props) {
2737
3025
  React__default.default.createElement("path", { d: "M194.048 3.7872C191.283 4.34864 188.349 4.45997 185.292 4.46339C165.059 4.48811 144.869 4.55069 124.658 4.52966C103.616 4.51215 82.5815 4.39759 61.5395 4.36676C45.4617 4.34347 29.3688 4.40393 13.2838 4.38067C10.3027 4.34933 7.34591 4.24078 4.45601 4.05658C1.85568 3.9135 0.263876 3.2107 0.558012 2.51894C0.665459 2.26584 0.68912 2.01114 0.628653 1.75775C0.506946 1.51801 0.332582 1.28057 0.10639 1.04662C1.6422 0.945149 3.20335 0.874948 4.77593 0.836643C16.562 0.777274 28.3704 0.641721 40.141 0.721281C52.5042 0.805943 64.8613 0.728942 77.2178 0.731837C105.486 0.739072 133.752 0.759003 162.015 0.791623C168.988 0.802073 175.946 0.938139 182.904 1.03996C184.703 1.07029 186.484 1.14684 188.22 1.26856C192.055 1.53006 193.879 2.19575 193.987 3.24913C193.964 3.41853 194.013 3.57429 194.048 3.7872ZM7.6157 3.79783L7.61665 3.66848L5.53547 3.67728C5.5351 3.72864 5.53472 3.78001 5.53433 3.83327L7.6157 3.79783ZM7.39301 1.65115C6.44131 2.34188 6.44133 2.34188 8.02407 2.30855C7.85227 2.08862 7.63709 1.86887 7.42914 1.651L7.39301 1.65115ZM58.1379 1.15304L58.2904 1.05919L54.6772 1.07448L54.6765 1.16769L58.1379 1.15304ZM59.3357 2.38254L59.4436 2.44485L61.3585 2.43675L61.359 2.37398L59.3357 2.38254ZM4.23221 1.07672L4.10861 1.18187L6.81847 1.1704L6.81924 1.06578L4.23221 1.07672Z", fill: "#FBD60E" })));
2738
3026
  };
2739
3027
 
2740
- var StyledOakFlex$5 = styled__default.default(OakFlex)(templateObject_1$1r || (templateObject_1$1r = tslib.__makeTemplateObject([""], [""])));
3028
+ var StyledOakFlex$4 = styled__default.default(OakFlex)(templateObject_1$1q || (templateObject_1$1q = tslib.__makeTemplateObject([""], [""])));
2741
3029
  /**
2742
3030
  * A Drawn FocusUnderline svg inside a flex container
2743
3031
  *
@@ -2747,12 +3035,12 @@ var StyledOakFlex$5 = styled__default.default(OakFlex)(templateObject_1$1r || (t
2747
3035
  */
2748
3036
  var OakHandDrawnFocusUnderline = function (props) {
2749
3037
  var FocusUnderlineColor = props.FocusUnderlineColor, flexProps = tslib.__rest(props, ["FocusUnderlineColor"]);
2750
- return (React__default.default.createElement(StyledOakFlex$5, tslib.__assign({}, flexProps),
3038
+ return (React__default.default.createElement(StyledOakFlex$4, tslib.__assign({}, flexProps),
2751
3039
  React__default.default.createElement(HandDrawnFocusUnderlineSvg, { "$fill": FocusUnderlineColor })));
2752
3040
  };
2753
- var templateObject_1$1r;
3041
+ var templateObject_1$1q;
2754
3042
 
2755
- var StyledPromoTag = styled__default.default(OakFlex)(templateObject_1$1q || (templateObject_1$1q = tslib.__makeTemplateObject(["\n aspect-ratio: 2 / 1;\n"], ["\n aspect-ratio: 2 / 1;\n"])));
3043
+ var StyledPromoTag = styled__default.default(OakFlex)(templateObject_1$1p || (templateObject_1$1p = tslib.__makeTemplateObject(["\n aspect-ratio: 2 / 1;\n"], ["\n aspect-ratio: 2 / 1;\n"])));
2756
3044
  /**
2757
3045
  * Renders a tag with the text "New"
2758
3046
  */
@@ -2764,16 +3052,16 @@ var OakPromoTag = function (props) {
2764
3052
  React__default.default.createElement(OakFlex, { "$position": "absolute", "$inset": "spacing-0", "$alignItems": "center", "$justifyContent": "center" },
2765
3053
  React__default.default.createElement(OakSpan, { "$color": variant === "default" ? "text-promo" : "text-primary", "$font": ["body-3-bold", "body-3-bold", "heading-7"] }, "New"))));
2766
3054
  };
2767
- var templateObject_1$1q;
3055
+ var templateObject_1$1p;
2768
3056
 
2769
- var gridStyle = styled.css(templateObject_1$1p || (templateObject_1$1p = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("row-gap", function (props) { return props.$rg; }, parseSpacing), responsiveStyle("column-gap", function (props) { return props.$cg; }, parseSpacing), responsiveStyle("grid-auto-rows", function (props) { return props.$gridAutoRows; }), responsiveStyle("grid-template-areas", function (props) { return props.$gridTemplateAreas; }), responsiveStyle("grid-template-columns", function (props) { return props.$gridTemplateColumns; }), responsiveStyle("grid-template-rows", function (props) { return props.$gridTemplateRows; }), responsiveStyle("align-items", function (props) { return props.$alignItems; }));
3057
+ var gridStyle = styled.css(templateObject_1$1o || (templateObject_1$1o = tslib.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("row-gap", function (props) { return props.$rg; }, parseSpacing), responsiveStyle("column-gap", function (props) { return props.$cg; }, parseSpacing), responsiveStyle("grid-auto-rows", function (props) { return props.$gridAutoRows; }), responsiveStyle("grid-template-areas", function (props) { return props.$gridTemplateAreas; }), responsiveStyle("grid-template-columns", function (props) { return props.$gridTemplateColumns; }), responsiveStyle("grid-template-rows", function (props) { return props.$gridTemplateRows; }), responsiveStyle("align-items", function (props) { return props.$alignItems; }));
2770
3058
  /**
2771
3059
  * Creates a grid layout
2772
3060
  *
2773
3061
  * Defaults to a 12 column grid
2774
3062
  */
2775
3063
  var OakGrid = styled__default.default(OakBox)(templateObject_2$D || (templateObject_2$D = tslib.__makeTemplateObject(["\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n width: 100%;\n\n ", ";\n"], ["\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n width: 100%;\n\n ", ";\n"])), gridStyle);
2776
- var templateObject_1$1p, templateObject_2$D;
3064
+ var templateObject_1$1o, templateObject_2$D;
2777
3065
 
2778
3066
  var combineSpanStart = function (start, span) {
2779
3067
  return start ? "".concat(start, "/").concat(span) : "".concat(span);
@@ -2786,7 +3074,7 @@ var parseSpanStart = function (value) {
2786
3074
  var span = value;
2787
3075
  return "span ".concat(span);
2788
3076
  };
2789
- var gridArea = styled.css(templateObject_1$1o || (templateObject_1$1o = tslib.__makeTemplateObject(["\n flex-direction: column;\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n ", "\n ", "\n"], ["\n flex-direction: column;\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n ", "\n ", "\n"])), responsiveStyle("grid-column", function (props) {
3077
+ var gridArea = styled.css(templateObject_1$1n || (templateObject_1$1n = tslib.__makeTemplateObject(["\n flex-direction: column;\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n ", "\n ", "\n"], ["\n flex-direction: column;\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n ", "\n ", "\n"])), responsiveStyle("grid-column", function (props) {
2790
3078
  return Array.isArray(props.$colSpan)
2791
3079
  ? props.$colSpan.map(function (span, index) {
2792
3080
  return combineSpanStart(Array.isArray(props.$colStart)
@@ -2818,7 +3106,7 @@ var gridArea = styled.css(templateObject_1$1o || (templateObject_1$1o = tslib.__
2818
3106
  *
2819
3107
  */
2820
3108
  var OakGridArea = styled__default.default(OakFlex)(templateObject_2$C || (templateObject_2$C = tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), gridArea);
2821
- var templateObject_1$1o, templateObject_2$C;
3109
+ var templateObject_1$1n, templateObject_2$C;
2822
3110
 
2823
3111
  var oakMaxWidthDefaults = {
2824
3112
  $maxWidth: ["spacing-480", "spacing-1280"],
@@ -2835,8 +3123,8 @@ var oakMaxWidthDefaults = {
2835
3123
  * This will make it easier to create full browser width or custom width containers on the same page
2836
3124
  * with different background colors / image url.
2837
3125
  */
2838
- var OakMaxWidth = styled__default.default(OakFlex).attrs(function (props) { return (tslib.__assign(tslib.__assign({}, oakMaxWidthDefaults), props)); })(templateObject_1$1n || (templateObject_1$1n = tslib.__makeTemplateObject([""], [""])));
2839
- var templateObject_1$1n;
3126
+ var OakMaxWidth = styled__default.default(OakFlex).attrs(function (props) { return (tslib.__assign(tslib.__assign({}, oakMaxWidthDefaults), props)); })(templateObject_1$1m || (templateObject_1$1m = tslib.__makeTemplateObject([""], [""])));
3127
+ var templateObject_1$1m;
2840
3128
 
2841
3129
  var accordionContext = React.createContext(null);
2842
3130
  /**
@@ -2866,7 +3154,7 @@ var useAccordionContext = function () {
2866
3154
  return accordionValue;
2867
3155
  };
2868
3156
 
2869
- var FlexWithReset = styled__default.default(OakFlex)(templateObject_1$1m || (templateObject_1$1m = tslib.__makeTemplateObject(["\n font: inherit;\n color: inherit;\n border: none;\n background: none;\n appearance: none;\n outline: none;\n padding: 0;\n"], ["\n font: inherit;\n color: inherit;\n border: none;\n background: none;\n appearance: none;\n outline: none;\n padding: 0;\n"])));
3157
+ var FlexWithReset = styled__default.default(OakFlex)(templateObject_1$1l || (templateObject_1$1l = tslib.__makeTemplateObject(["\n font: inherit;\n color: inherit;\n border: none;\n background: none;\n appearance: none;\n outline: none;\n padding: 0;\n"], ["\n font: inherit;\n color: inherit;\n border: none;\n background: none;\n appearance: none;\n outline: none;\n padding: 0;\n"])));
2870
3158
  /**
2871
3159
  *
2872
3160
  * Content which will appear and disappear
@@ -2892,9 +3180,9 @@ var AccordionButton = function (props) {
2892
3180
  return (React__default.default.createElement(FlexWithReset, tslib.__assign({ as: "button", type: "button", onClick: function () { return setOpen(!isOpen); }, "$flexGrow": 1, "aria-expanded": isOpen, id: id }, rest), children));
2893
3181
  };
2894
3182
  var InternalAccordionButton = styled__default.default(AccordionButton)(templateObject_2$B || (templateObject_2$B = tslib.__makeTemplateObject([""], [""])));
2895
- var templateObject_1$1m, templateObject_2$B;
3183
+ var templateObject_1$1l, templateObject_2$B;
2896
3184
 
2897
- var StyledOakFlex$4 = styled__default.default(InternalAccordionButton)(templateObject_1$1l || (templateObject_1$1l = tslib.__makeTemplateObject(["\n font: inherit;\n color: inherit;\n border: none;\n background: none;\n appearance: none;\n\n outline: none;\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n"], ["\n font: inherit;\n color: inherit;\n border: none;\n background: none;\n appearance: none;\n\n outline: none;\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n"])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"));
3185
+ var StyledOakFlex$3 = styled__default.default(InternalAccordionButton)(templateObject_1$1k || (templateObject_1$1k = tslib.__makeTemplateObject(["\n font: inherit;\n color: inherit;\n border: none;\n background: none;\n appearance: none;\n\n outline: none;\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n"], ["\n font: inherit;\n color: inherit;\n border: none;\n background: none;\n appearance: none;\n\n outline: none;\n\n &:focus-visible {\n box-shadow:\n ", ",\n ", ";\n }\n"])), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"));
2898
3186
  var Accordion$4 = function (_a) {
2899
3187
  var header = _a.header, headerTag = _a.headerTag, headerAfterSlot = _a.headerAfterSlot, children = _a.children, id = _a.id, _b = _a.chevronPosition, chevronPosition = _b === void 0 ? "left" : _b, _c = _a.openBackground, openBackground = _c === void 0 ? "bg-neutral" : _c, $color = _a.$color, styleProps = tslib.__rest(_a, ["header", "headerTag", "headerAfterSlot", "children", "id", "chevronPosition", "openBackground", "$color"]);
2900
3188
  var isOpen = useAccordionContext().isOpen;
@@ -2904,7 +3192,7 @@ var Accordion$4 = function (_a) {
2904
3192
  : { $ml: "auto" }))));
2905
3193
  return (React__default.default.createElement(OakBox, tslib.__assign({ id: id, "$borderColor": "border-neutral-lighter", "$ba": "border-solid-s", "$pa": "spacing-16", "$background": isOpen ? openBackground : "bg-primary" }, styleProps),
2906
3194
  React__default.default.createElement(OakFlex, { as: HeaderTag, "$font": "heading-light-7", "$color": $color, "$textDecoration": isOpen ? "underline" : "none" },
2907
- React__default.default.createElement(StyledOakFlex$4, { "$alignItems": "center", "$pa": "spacing-16", "$width": chevronPosition === "right" ? "100%" : undefined, id: id },
3195
+ React__default.default.createElement(StyledOakFlex$3, { "$alignItems": "center", "$pa": "spacing-16", "$width": chevronPosition === "right" ? "100%" : undefined, id: id },
2908
3196
  chevronPosition === "left" && chevron,
2909
3197
  header,
2910
3198
  chevronPosition === "right" && chevron),
@@ -2919,9 +3207,9 @@ var OakAccordion = function (props) {
2919
3207
  return (React__default.default.createElement(InternalAccordionProvider, { isInitialOpen: initialOpen },
2920
3208
  React__default.default.createElement(Accordion$4, tslib.__assign({}, rest))));
2921
3209
  };
2922
- var templateObject_1$1l;
3210
+ var templateObject_1$1k;
2923
3211
 
2924
- var StyledAccordionUnderline = styled__default.default(OakHandDrawnFocusUnderline)(templateObject_1$1k || (templateObject_1$1k = tslib.__makeTemplateObject(["\n position: absolute;\n width: 100%;\n bottom: -", ";\n"], ["\n position: absolute;\n width: 100%;\n bottom: -", ";\n"])), parseSpacing("spacing-4"));
3212
+ var StyledAccordionUnderline = styled__default.default(OakHandDrawnFocusUnderline)(templateObject_1$1j || (templateObject_1$1j = tslib.__makeTemplateObject(["\n position: absolute;\n width: 100%;\n bottom: -", ";\n"], ["\n position: absolute;\n width: 100%;\n bottom: -", ";\n"])), parseSpacing("spacing-4"));
2925
3213
  var StyledAccordionButton$3 = styled__default.default(InternalAccordionButton)(templateObject_2$A || (templateObject_2$A = tslib.__makeTemplateObject(["\n ", "\n ", "\n position: relative;\n &:hover {\n text-decoration: underline;\n }\n &:focus-visible {\n .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n }\n"], ["\n ", "\n ", "\n position: relative;\n &:hover {\n text-decoration: underline;\n }\n &:focus-visible {\n .shadow {\n box-shadow:\n ", ",\n ", ";\n }\n }\n"])), flexStyle, oakBoxCss, parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"));
2926
3214
  var StyledContainer = styled__default.default(OakFlex)(templateObject_3$q || (templateObject_3$q = tslib.__makeTemplateObject(["\n ", " {\n visibility: hidden;\n }\n ", ":focus-visible ~ ", " {\n visibility: visible;\n }\n ", "\n ", "\n"], ["\n ", " {\n visibility: hidden;\n }\n ", ":focus-visible ~ ", " {\n visibility: visible;\n }\n ", "\n ", "\n"])), StyledAccordionUnderline, StyledAccordionButton$3, StyledAccordionUnderline, oakBoxCss, flexStyle);
2927
3215
  var BottomBoxShadow = styled__default.default(OakBox)(templateObject_4$f || (templateObject_4$f = tslib.__makeTemplateObject(["\n position: absolute;\n bottom: 0;\n width: 100%;\n height: 50px;\n opacity: ", ";\n z-index: 100;\n -webkit-box-shadow: inset 0px -55px 30px -30px rgba(255, 255, 255, 1);\n -moz-box-shadow: inset 0px -55px 30px -30px rgba(255, 255, 255, 1);\n box-shadow: inset 0px -55px 30px -30px rgba(255, 255, 255, 1);\n padding: 2px;\n"], ["\n position: absolute;\n bottom: 0;\n width: 100%;\n height: 50px;\n opacity: ", ";\n z-index: 100;\n -webkit-box-shadow: inset 0px -55px 30px -30px rgba(255, 255, 255, 1);\n -moz-box-shadow: inset 0px -55px 30px -30px rgba(255, 255, 255, 1);\n box-shadow: inset 0px -55px 30px -30px rgba(255, 255, 255, 1);\n padding: 2px;\n"])), function (props) {
@@ -2986,14 +3274,14 @@ var InternalChevronAccordion = function (_a) {
2986
3274
  return (React__default.default.createElement(InternalAccordionProvider, { isInitialOpen: initialOpen },
2987
3275
  React__default.default.createElement(Accordion$3, tslib.__assign({ initialOpen: true }, props))));
2988
3276
  };
2989
- var templateObject_1$1k, templateObject_2$A, templateObject_3$q, templateObject_4$f;
3277
+ var templateObject_1$1j, templateObject_2$A, templateObject_3$q, templateObject_4$f;
2990
3278
 
2991
3279
  var OakBasicAccordion = function (_a) {
2992
3280
  var header = _a.header, children = _a.children, id = _a.id, initialOpen = _a.initialOpen, subheading = _a.subheading, styleProps = tslib.__rest(_a, ["header", "children", "id", "initialOpen", "subheading"]);
2993
3281
  return (React__default.default.createElement(InternalChevronAccordion, tslib.__assign({ header: header, id: id, initialOpen: initialOpen, subheading: subheading }, styleProps), children));
2994
3282
  };
2995
3283
 
2996
- var StyledScrollBox = styled__default.default(OakBox)(templateObject_1$1j || (templateObject_1$1j = tslib.__makeTemplateObject(["\n &::-webkit-scrollbar-thumb {\n border-radius: ", ";\n background-color: ", ";\n }\n &::-webkit-scrollbar-track {\n border-radius: ", ";\n background-color: ", ";\n }\n &::-webkit-scrollbar {\n width: ", ";\n height: ", ";\n border-radius: ", ";\n }\n"], ["\n &::-webkit-scrollbar-thumb {\n border-radius: ", ";\n background-color: ", ";\n }\n &::-webkit-scrollbar-track {\n border-radius: ", ";\n background-color: ", ";\n }\n &::-webkit-scrollbar {\n width: ", ";\n height: ", ";\n border-radius: ", ";\n }\n"])), parseBorderRadius("border-radius-m"), parseColor("bg-interactive-element1"), parseBorderRadius("border-radius-m"), parseColor("bg-primary"), parseSpacing("spacing-12"), parseSpacing("spacing-12"), parseBorderRadius("border-radius-m"));
3284
+ var StyledScrollBox = styled__default.default(OakBox)(templateObject_1$1i || (templateObject_1$1i = tslib.__makeTemplateObject(["\n &::-webkit-scrollbar-thumb {\n border-radius: ", ";\n background-color: ", ";\n }\n &::-webkit-scrollbar-track {\n border-radius: ", ";\n background-color: ", ";\n }\n &::-webkit-scrollbar {\n width: ", ";\n height: ", ";\n border-radius: ", ";\n }\n"], ["\n &::-webkit-scrollbar-thumb {\n border-radius: ", ";\n background-color: ", ";\n }\n &::-webkit-scrollbar-track {\n border-radius: ", ";\n background-color: ", ";\n }\n &::-webkit-scrollbar {\n width: ", ";\n height: ", ";\n border-radius: ", ";\n }\n"])), parseBorderRadius("border-radius-m"), parseColor("bg-interactive-element1"), parseBorderRadius("border-radius-m"), parseColor("bg-primary"), parseSpacing("spacing-12"), parseSpacing("spacing-12"), parseBorderRadius("border-radius-m"));
2997
3285
  /**
2998
3286
  * A filled scrollable box that can be hidden with the `isOpen` prop.
2999
3287
  * Useful for hiding content that is not immediately relevant
@@ -3004,37 +3292,6 @@ var OakCollapsibleContent = function (_a) {
3004
3292
  React__default.default.createElement(OakFlex, tslib.__assign({ "$background": "bg-neutral-stronger", "$ph": "spacing-16", "$pv": "spacing-24", "$borderRadius": "border-radius-m" }, rest),
3005
3293
  React__default.default.createElement(StyledScrollBox, { "$overflow": "auto", "$maxHeight": "100%", "$width": "100%", "$pr": "spacing-16" }, children))));
3006
3294
  };
3007
- var templateObject_1$1j;
3008
-
3009
- /**
3010
- * A wrapper around `OakIcon` which applies a rounded background.
3011
- * Supports either an icon name or an image src
3012
- */
3013
- var OakRoundIcon = function (_a) {
3014
- var _b = _a.$background, $background = _b === void 0 ? "bg-decorative5-main" : _b, _c = _a.$borderRadius, $borderRadius = _c === void 0 ? "border-radius-circle" : _c, _d = _a.$width, $width = _d === void 0 ? "spacing-48" : _d, _e = _a.$height, $height = _e === void 0 ? "spacing-48" : _e, _f = _a.$pa, $pa = _f === void 0 ? "spacing-4" : _f, className = _a.className, rest = tslib.__rest(_a, ["$background", "$borderRadius", "$width", "$height", "$pa", "className"]);
3015
- var icon = rest.iconName ? (React__default.default.createElement(OakIcon, tslib.__assign({}, rest, { "$height": "100%", "$width": "100%" }))) : (React__default.default.createElement(OakImage, tslib.__assign({}, rest, { "$height": "100%", "$width": "100%" })));
3016
- return (React__default.default.createElement(OakBox, { className: className, "$background": $background, "$borderRadius": $borderRadius, "$width": $width, "$height": $height, "$pa": $pa }, icon));
3017
- };
3018
-
3019
- var HandDrawnHRSvg = function (props) {
3020
- return (React__default.default.createElement(InternalStyledSvg, tslib.__assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 866 8", preserveAspectRatio: "none", height: "100%", width: "100%" }, props),
3021
- React__default.default.createElement("g", { clipPath: "url(#clip0_175_6785)" },
3022
- React__default.default.createElement("path", { d: "M865.845 2.15897C865.975 1.74492 865.563 1.33087 864.955 1.33087C788.833 1.21257 638.585 4.00739 558.84 1.30129C560.814 1.22736 562.55 1.36044 563.287 1.18299C546.019 0.946396 526.408 1.10906 509.119 1.44917C530.292 -0.0295749 543.785 1.41959 562.289 0.931608C559.556 0.872458 545.347 0.842884 554.436 0.798521C547.538 0.369686 533.003 0.754159 530.27 0.621072C522.113 0.177449 549.794 0.724584 549.23 0.399261C544.219 0.0295749 524.586 0.295749 522.937 0C522.959 0.369686 522.352 0.295749 522.612 0.399261C423.669 0.724584 317.892 0.340111 218.666 0.828096C218.861 0.828096 219.013 0.828096 219.078 0.857671C218.753 0.902033 217.451 0.857671 218.579 0.828096C154.909 1.71534 98.6582 -0.502773 49.7396 2.18854C59.3281 0.0887246 12.145 1.39002 8.34861 1.52311C2.75172 1.44917 6.69991 1.96673 8.13168 1.67098C8.43539 2.91312 0.799314 1.73013 2.20938 3.12015C-18.7247 12.7024 115.622 4.7024 130.504 6.96488C127.011 6.21072 147.056 7.34935 148.705 6.93531C147.859 6.89094 146.362 6.78743 144.692 6.75786C140.396 6.72828 151.525 6.07763 149.486 6.93531C150.354 7.18669 153.282 6.44732 152.935 6.93531C154.714 7.06839 166.385 5.75231 158.814 6.92052C165.647 6.52126 168.077 7.68946 162.046 6.26987C222.332 7.55638 283.247 5.8854 342.34 6.29945C458.66 5.97412 569.839 6.10721 682.124 6.69871C679.932 6.22551 684.532 6.07763 683.36 6.69871C715.076 6.71349 731.801 6.81701 762.432 6.99446C757.486 6.72828 758.68 6.13678 763.821 6.55083C784.278 7.51202 841.353 7.73383 863.784 6.96488C863.35 6.68392 864.804 6.77264 864.782 6.92052C864.955 5.84104 865.259 5.84104 864.717 5.95934C864.76 5.95934 863.697 6.32902 864.001 5.73752C864.153 5.44177 864.999 5.60444 864.088 5.30869C864.652 5.30869 866.192 4.90943 864.608 5.02773C861.723 4.17006 866.778 4.99815 865.91 4.42144C865.519 4.12569 865.606 2.95749 865.845 2.15897ZM526.43 0.606285C528.448 0.650647 526.539 0.754159 525.476 0.606285C524.825 0.547135 525.042 0.547135 526.43 0.606285ZM17.0694 1.61183C17.0694 1.61183 17.3731 1.58226 17.308 1.62662C17.2646 1.6414 17.0694 1.6414 17.0694 1.61183ZM18.0889 1.15342C18.1974 1.15342 18.2408 1.15342 18.3059 1.16821H17.8286C17.8286 1.16821 17.9805 1.15342 18.0889 1.15342ZM18.371 1.41959C18.371 1.41959 18.3059 1.40481 18.371 1.39002V1.41959ZM36.8971 2.04067C30.6928 1.68577 40.9321 1.62662 42.6242 2.08503C42.4072 2.08503 37.4611 2.04067 36.8971 2.04067ZM63.6451 1.34566C67.5933 1.34566 62.4302 1.41959 61.736 1.36044C62.018 1.34566 62.8641 1.34566 63.6451 1.34566ZM84.8395 3.88909C84.5141 3.88909 84.6226 3.87431 84.8395 3.87431V3.88909ZM92.1068 1.58226C80.2405 2.24769 61.6926 1.878 59.0461 1.61183C67.2028 1.43438 85.2734 1.52311 95.3608 1.47874C94.3629 1.47874 93.2565 1.52311 92.1068 1.58226ZM97.183 2.41035C96.6841 2.38078 97.5084 2.30684 97.4867 2.41035C97.4867 2.41035 97.3566 2.41035 97.183 2.41035ZM95.9899 1.47874C96.8142 1.44917 97.5518 1.46396 98.1809 1.47874C97.5084 1.49353 96.7709 1.49353 95.9899 1.47874ZM100.589 1.53789C100.589 1.53789 99.7862 1.50832 98.5714 1.47874C100.415 1.50832 101.348 1.46396 102.368 1.52311C102.238 1.53789 101.587 1.53789 100.589 1.53789ZM101.869 1.18299C101.869 1.18299 102.997 1.15342 103.105 1.18299C102.867 1.21257 101.999 1.21257 101.869 1.18299ZM107.704 1.84843C107.704 1.84843 107.509 1.84843 107.422 1.83364C107.769 1.83364 107.856 1.83364 107.704 1.84843ZM139.29 1.21257C138.704 1.18299 139.767 1.13863 139.724 1.18299C139.659 1.19778 139.463 1.21257 139.29 1.21257ZM141.633 5.6488C140.982 5.6488 141.199 5.60444 141.633 5.61922V5.6488ZM177.882 6.50647C162.654 6.71349 183.132 5.97412 183.588 5.73752C183.588 5.78189 181.006 6.50647 177.882 6.50647ZM185.779 0.946396H184.564C183.631 0.916821 186.56 0.931608 185.779 0.946396ZM209.945 1.00555C210.488 0.975971 210.813 0.975971 211.355 1.00555C212.18 1.02033 209.099 1.02033 209.945 1.00555ZM202.244 6.41775C199.077 6.46211 192.873 6.50647 188.989 6.66913C187.818 5.67837 202.873 6.38817 202.244 6.41775ZM213.264 6.41775C212.874 6.46211 208.492 6.46211 208.231 6.43253C207.667 6.50647 214.175 5.45656 213.264 6.41775ZM218.905 6.19593C218.601 6.19593 215.434 6.38817 215.087 6.38817C215.412 6.28466 220.336 6.01849 218.905 6.19593ZM226.801 0.857671C226.953 0.842884 227.343 0.842884 227.495 0.857671C227.3 0.872458 226.996 0.872458 226.801 0.857671ZM256.152 0.768946C258.018 0.768946 255.914 0.783734 255.588 0.783734C255.718 0.768946 255.914 0.768946 256.152 0.768946ZM252.855 4.00739C252.291 3.97782 254.742 3.26802 254.634 3.62292C254.46 3.66728 253.115 4.05176 252.855 4.00739ZM257.757 4.99815C257.302 4.92422 255.415 4.33272 254.677 4.43623C255.501 4.24399 258.625 4.87985 257.757 4.99815ZM254.785 3.46026C255.133 3.43068 257.541 3.38632 257.259 3.43068C257.888 3.46026 254.937 3.48983 254.785 3.46026ZM259.363 3.59335C258.669 3.59335 257.757 3.10536 257.757 3.07579C257.974 3.07579 261.836 2.88355 259.363 3.59335ZM258.886 2.01109C256.456 2.04067 254.72 1.65619 254.417 1.62662C253.332 1.44917 266.543 1.70055 258.886 2.01109ZM264.157 4.64325L263.181 4.02218C262.226 3.44547 265.35 4.40665 264.157 4.64325ZM289.712 3.50462C290.71 3.50462 291.686 4.24399 290.948 4.25878C288.432 3.90388 285.655 2.91312 289.712 3.50462ZM271.424 2.20333C273.203 2.45471 281.577 1.00555 275.394 2.54344C275.763 2.42514 267.389 2.15897 271.424 2.20333ZM275.893 3.12015C276.717 2.79482 278.345 3.6525 278.019 4.09612C277.542 4.09612 275.893 3.20887 275.893 3.12015ZM284.223 2.97227C281.447 2.45471 286.935 2.21811 287.022 2.07024C287.022 2.1146 285.351 3.01664 284.223 2.97227ZM290.862 5.36784C288.822 5.36784 287.477 5.33826 287.477 5.33826C286.653 3.91867 298.172 6.0037 290.862 5.36784ZM296.719 5.07209C293.053 4.39187 298.671 4.5841 298.91 4.61368C298.91 4.64325 297.717 5.07209 296.719 5.07209ZM317.219 3.43068C320.126 4.62847 316.178 3.7708 315.744 3.4159C315.917 3.38632 316.612 3.40111 317.219 3.43068ZM304.702 4.39187C302.967 5.13124 304.116 4.03697 304.42 3.93346C305.526 3.69686 306.459 4.12569 304.702 4.39187ZM307.587 3.35675C307.457 3.16451 302.858 2.43993 305.808 2.67653C306.741 2.5878 307.001 2.7061 305.895 2.67653C306.958 2.7061 307.978 3.32717 307.587 3.35675ZM310.928 2.54344C309.561 2.54344 311.253 1.78928 312.533 1.98152C312.403 1.9963 311.362 2.54344 310.928 2.54344ZM319.649 5.56007C320.343 5.58965 309.323 5.66359 314.572 5.54529C317.284 6.31423 322.751 2.98706 319.649 5.56007ZM329.411 5.24954C326.808 5.27911 331.884 4.64325 331.992 4.61368C332.339 4.67283 330.235 5.2939 329.411 5.24954ZM335.355 2.24769C334.704 2.01109 338.023 2.5878 338.413 2.29205C338.023 2.41035 335.897 3.00185 335.355 2.24769ZM346.201 4.12569C343.338 4.12569 344.097 3.97782 346.57 3.82994C349.499 4.52495 348.696 4.42144 346.201 4.12569ZM359.977 3.01664C359.977 3.01664 355.421 3.07579 355.248 3.061C355.226 3.19409 362.211 1.49353 359.977 3.01664ZM413.364 0.902033C414.102 0.857671 414.492 0.872459 414.536 0.902033C415.555 1.70055 411.889 0.842884 413.364 0.902033ZM371.886 1.52311C370.238 2.51386 367.656 1.52311 365.704 1.52311C365.704 1.47874 371.322 1.46396 371.886 1.52311ZM364.966 3.03142C363.816 3.87431 362.905 3.81516 364.25 2.60259C365.205 1.90758 366.919 2.01109 364.966 3.03142ZM370.954 6.01849C369.999 6.01849 366.81 6.01848 366.485 5.91497C367.266 5.8854 375.574 4.92422 370.954 6.01849ZM378.546 6.01849C375.943 5.90019 376.117 5.2939 377.722 5.4122C379.956 5.23475 382.581 5.50093 378.546 6.01849ZM387.267 3.57856C386.312 3.56377 386.963 2.76525 388.178 2.76525C390.413 2.98706 389.87 3.51941 387.267 3.57856ZM393.623 1.80407C389.545 1.58226 393.341 1.12384 394.795 1.34566C397.506 1.00555 397.745 1.37523 393.623 1.80407ZM401.303 5.84104C396.942 5.87061 401.216 5.38263 402.734 5.24954C403.429 5.2939 402.301 5.84104 401.303 5.84104ZM405.207 4.03697C405.164 4.14048 404.904 4.52495 403.472 4.02218C400.934 2.76525 406.162 3.82995 405.207 4.03697ZM408.722 4.11091C407.116 4.11091 404.253 3.68207 407.42 3.68207C407.746 2.60259 410.761 3.93346 408.722 4.11091ZM410.848 1.62662C409.958 1.46396 406.704 1.16821 409.546 0.680222C410.11 0.680222 413.581 1.81885 410.848 1.62662ZM412.93 5.4122C413.147 5.38263 414.232 4.33272 415.902 4.85028L412.93 5.4122ZM429.027 0.857671C430.393 0.857671 434.71 0.813309 435.708 0.887246C436.424 1.25693 425.643 2.52865 429.027 0.857671ZM437.878 0.857671C438.181 0.813309 439.309 0.828096 439.591 0.916821C431.587 2.83919 437.14 0.946396 437.878 0.857671ZM451.653 5.35305C451.176 5.35305 448.898 4.83549 448.898 4.80592C448.898 4.79113 450.807 4.5841 451.111 4.5841C453.562 4.65804 452.412 5.44177 451.653 5.35305ZM480.245 3.4159C478.661 3.6525 474.822 3.6525 474.822 3.4159C474.149 3.38632 481.568 3.14972 480.245 3.4159ZM485.69 5.32348C473.325 5.45656 491.829 4.64325 490.983 5.0573C490.983 5.23475 491.46 5.23475 485.69 5.32348ZM495.018 2.51386C494.454 2.51386 493.977 2.43993 493.977 2.36599C494.194 1.98152 497.252 2.45471 495.018 2.51386ZM502.524 2.26248C502.307 2.45471 501.656 2.49908 500.159 2.60259C492.285 2.85397 502.871 1.65619 502.524 2.26248ZM506.429 2.39556C510.377 2.3512 507.275 2.89834 505.105 2.41035C505.214 2.39556 505.648 2.39556 506.429 2.39556ZM506.559 3.13494C507.926 3.13494 509.01 3.22366 509.01 3.31238C508.338 3.4159 501.136 3.12015 506.559 3.13494ZM522.243 5.75231C518.36 6.38817 511.418 5.91497 507.253 5.4122C510.16 5.66359 522.547 5.33826 522.243 5.75231ZM590.057 3.48983C589.319 3.59335 587.128 3.59335 586.391 3.48983C587.367 3.2976 588.972 3.31238 590.057 3.48983ZM582.551 2.20333C586.109 1.98152 588.083 1.98152 588.083 2.20333C588.777 2.41035 577.019 2.61738 582.551 2.20333ZM564.545 1.71534C566.302 1.71534 566.064 2.83919 564.155 2.07024C563.699 1.86322 563.374 1.67098 564.545 1.71534ZM558.84 1.71534C560.619 1.7597 562.007 1.83364 563.049 2.07024C561.899 2.29205 549.273 1.70055 558.84 1.71534ZM553.438 3.72643C543.893 3.4159 556.107 3.20887 556.801 3.72643C556.801 3.87431 555.564 3.87431 553.438 3.72643ZM562.897 3.23845C561.205 3.26802 556.15 2.92791 560.749 2.89834C562.398 2.86876 567.474 3.19409 562.897 3.23845ZM567.17 2.54344C565.261 2.54344 563.96 2.54344 563.504 2.4695C565.977 2.17375 576.846 2.57301 567.17 2.54344ZM573.939 5.51571C571.704 5.51571 569.708 5.42699 569.708 5.35305C570.62 4.89464 582.79 5.45656 573.939 5.51571ZM588.885 5.67837C588.712 5.87061 575.37 6.15157 583.354 5.57486C586.911 5.23475 590.859 5.33826 588.885 5.67837ZM595.979 4.09612C594.678 4.18484 594.743 5.14603 593.137 3.99261C593.051 3.99261 587.28 4.37708 587.193 4.37708C588.517 3.50462 594.981 3.80037 595.979 4.09612ZM602.444 2.49908C606.913 2.54344 602.097 2.61738 600.795 2.52865C600.795 2.52865 601.489 2.49908 602.444 2.49908ZM601.576 4.53974C601.12 4.53974 600.556 4.4658 600.405 4.37708C599.428 3.66728 603.767 4.76155 601.576 4.53974ZM605.112 4.42144C603.724 4.42144 602.769 4.25878 602.422 4.09612C602.986 3.44547 611.468 4.28836 605.112 4.42144ZM622.315 5.24954C616.544 5.14603 619.365 3.68207 624.311 4.74677C626.09 4.99815 625.612 5.24954 622.315 5.24954ZM654.269 2.97227C655.788 2.8244 656.482 2.8244 657.068 2.97227C657.849 3.1793 651.926 3.13494 654.269 2.97227ZM651.124 2.39556C656.243 2.43993 650.712 2.5878 649.714 2.52865C648.651 2.39556 649.28 2.39556 651.124 2.39556ZM633.943 5.51571C634.767 5.11645 637.066 5.13124 637.826 5.51571C636.763 5.7671 635.006 5.7671 633.943 5.51571ZM646.047 3.97782C638.368 3.59335 651.774 3.72643 653.553 3.97782C660.907 4.89464 647.241 4.25878 646.047 3.97782ZM653.271 5.97412C652.859 5.72274 661.211 5.73752 660.777 5.97412C660.322 6.34381 654.031 6.16636 653.271 5.97412ZM667.611 3.09057C661.276 3.2976 665.398 1.89279 669.563 2.92791C670.691 3.09057 670.236 3.09057 667.611 3.09057ZM676.18 6.3586C675.789 6.38817 669.715 6.53605 669.476 6.38817C670.214 5.91497 676.245 6.37338 676.657 6.3586C676.375 6.38817 676.223 6.3586 676.18 6.3586ZM683.121 4.21442C682.774 4.21442 682.514 4.03697 682.514 3.85952C682.579 2.83919 684.814 4.3475 683.121 4.21442ZM696.875 5.5305C694.445 5.75231 693.122 5.75231 693.122 5.5305C692.558 5.32348 700.476 5.11645 696.875 5.5305ZM699.283 4.61368C691.17 4.48059 701.713 3.99261 702.754 4.49538C702.754 4.49538 701.257 4.61368 699.283 4.61368ZM701.474 3.80037C693.231 3.84473 704.598 3.1793 705.205 3.66728C705.205 3.80037 703.643 3.80037 701.474 3.80037ZM706.03 5.81146C705.27 5.11645 709.436 5.70795 709.327 5.81146C709.978 6.16636 706.811 6.16636 706.03 5.81146ZM716.746 6.56562C716.985 6.90573 706.919 6.50647 711.844 6.26987C714.815 6.122 717.679 6.26987 716.746 6.56562ZM718.091 4.22921C714.75 4.19963 714.707 3.72643 718.091 3.82994C721.28 3.72643 721.237 4.19963 718.091 4.22921ZM770.459 3.20887C772.455 3.20887 773.995 3.44547 773.995 3.68207C772.889 4.56932 763.083 3.25324 770.459 3.20887ZM730.934 4.08133C730.5 4.08133 730.76 3.96303 731.715 3.84473C736.856 3.28281 732.322 4.36229 730.934 4.08133ZM735.663 6.49168C732.799 6.49168 732.799 5.95934 735.663 5.95934C738.44 5.95934 738.44 6.49168 735.663 6.49168ZM737.854 4.49538C736.986 4.49538 736.27 4.42144 736.27 4.34751C735.771 4.09612 741.108 4.45102 737.854 4.49538ZM738.591 3.97782C737.767 3.97782 736.682 3.94824 736.27 3.84473C736.791 3.68207 744.687 3.91867 738.591 3.97782ZM756.922 5.5305C723.276 5.90019 765.556 4.73198 769.83 5.33826C769.83 5.33826 763.843 5.5305 756.922 5.5305ZM767.726 6.83179C758.745 6.56562 775.687 6.68392 775.34 6.83179C776.056 6.96488 772.997 6.96488 767.726 6.83179ZM785.124 4.96858C784.451 5.73752 778.572 6.75786 782.022 5.78189C782.868 5.54529 788.009 3.60813 785.124 4.96858ZM787.705 6.4769C789.289 6.04806 793.454 6.07763 795.016 6.4769C793.02 6.75786 789.701 6.75786 787.705 6.4769ZM808.206 5.87061C802.066 5.47135 813.868 4.61368 811.633 5.58965C811.633 6.13678 811.112 6.13678 808.206 5.87061ZM839.986 5.57486C838.229 5.57486 836.559 5.57486 836.277 5.4122C836.993 4.53974 847.601 5.58965 839.986 5.57486ZM858.404 5.94455C847.839 5.7671 869.988 0.635859 859.163 5.7671C858.361 6.21072 859.163 6.4769 858.404 5.94455ZM862.461 5.8854C862.461 5.97412 859.424 6.40296 859.185 6.37338C860.009 6.22551 863.61 4.15527 862.461 5.8854ZM864.088 5.07209C864.088 5.07209 864.174 5.04251 864.218 5.04251C864.348 5.14603 863.914 5.19039 864.088 5.07209Z", fill: "inherit" }))));
3023
- };
3024
-
3025
- var StyledOakFlex$3 = styled__default.default(OakFlex)(templateObject_1$1i || (templateObject_1$1i = tslib.__makeTemplateObject([""], [""])));
3026
- /**
3027
- * A Drawn HR svg inside a flex container
3028
- *
3029
- * use prop hrColor to change the color of the HR
3030
- *
3031
- * change the sizeProps of the flex container to change the size and dimentions of the HR
3032
- */
3033
- var OakHandDrawnHR = function (props) {
3034
- var hrColor = props.hrColor, flexProps = tslib.__rest(props, ["hrColor"]);
3035
- return (React__default.default.createElement(StyledOakFlex$3, tslib.__assign({ focusable: false }, flexProps),
3036
- React__default.default.createElement(HandDrawnHRSvg, { "$fill": hrColor })));
3037
- };
3038
3295
  var templateObject_1$1i;
3039
3296
 
3040
3297
  var OakErrorBoundaryBorderColor = React.createContext("border-neutral-lighter");
@@ -7770,6 +8027,7 @@ exports.OakHintButton = OakHintButton;
7770
8027
  exports.OakHomepageTabButton = OakHomepageTabButton;
7771
8028
  exports.OakHoverLink = OakHoverLink;
7772
8029
  exports.OakIcon = OakIcon;
8030
+ exports.OakIconButton = OakIconButton;
7773
8031
  exports.OakImage = OakImage;
7774
8032
  exports.OakInfo = OakInfo;
7775
8033
  exports.OakInfoButton = OakInfoButton;