@simplybusiness/mobius 10.1.1 → 10.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/components/AddressLookup/AddressLookup.js +540 -526
  3. package/dist/cjs/components/AddressLookup/AddressLookup.js.map +4 -4
  4. package/dist/cjs/components/AddressLookup/index.js +540 -526
  5. package/dist/cjs/components/AddressLookup/index.js.map +4 -4
  6. package/dist/cjs/components/Alert/Alert.js +79 -11
  7. package/dist/cjs/components/Alert/Alert.js.map +4 -4
  8. package/dist/cjs/components/Alert/index.js +79 -11
  9. package/dist/cjs/components/Alert/index.js.map +4 -4
  10. package/dist/cjs/components/Checkbox/Checkbox.js +506 -492
  11. package/dist/cjs/components/Checkbox/Checkbox.js.map +4 -4
  12. package/dist/cjs/components/Checkbox/CheckboxGroup.js +506 -492
  13. package/dist/cjs/components/Checkbox/CheckboxGroup.js.map +4 -4
  14. package/dist/cjs/components/Checkbox/index.js +485 -471
  15. package/dist/cjs/components/Checkbox/index.js.map +4 -4
  16. package/dist/cjs/components/Combobox/Combobox.js +540 -526
  17. package/dist/cjs/components/Combobox/Combobox.js.map +4 -4
  18. package/dist/cjs/components/Combobox/index.js +540 -526
  19. package/dist/cjs/components/Combobox/index.js.map +4 -4
  20. package/dist/cjs/components/DateField/DateField.js +527 -513
  21. package/dist/cjs/components/DateField/DateField.js.map +4 -4
  22. package/dist/cjs/components/DateField/index.js +527 -513
  23. package/dist/cjs/components/DateField/index.js.map +4 -4
  24. package/dist/cjs/components/ErrorMessage/ErrorMessage.js +527 -513
  25. package/dist/cjs/components/ErrorMessage/ErrorMessage.js.map +4 -4
  26. package/dist/cjs/components/ErrorMessage/index.js +527 -513
  27. package/dist/cjs/components/ErrorMessage/index.js.map +4 -4
  28. package/dist/cjs/components/ExpandableText/ExpandableText.js +527 -513
  29. package/dist/cjs/components/ExpandableText/ExpandableText.js.map +4 -4
  30. package/dist/cjs/components/ExpandableText/index.js +527 -513
  31. package/dist/cjs/components/ExpandableText/index.js.map +4 -4
  32. package/dist/cjs/components/MaskedField/MaskedField.js +537 -523
  33. package/dist/cjs/components/MaskedField/MaskedField.js.map +4 -4
  34. package/dist/cjs/components/MaskedField/index.js +537 -523
  35. package/dist/cjs/components/MaskedField/index.js.map +4 -4
  36. package/dist/cjs/components/NumberField/NumberField.js +528 -514
  37. package/dist/cjs/components/NumberField/NumberField.js.map +4 -4
  38. package/dist/cjs/components/NumberField/index.js +528 -514
  39. package/dist/cjs/components/NumberField/index.js.map +4 -4
  40. package/dist/cjs/components/PasswordField/PasswordField.js +524 -510
  41. package/dist/cjs/components/PasswordField/PasswordField.js.map +4 -4
  42. package/dist/cjs/components/PasswordField/ShowHideButton.js +523 -509
  43. package/dist/cjs/components/PasswordField/ShowHideButton.js.map +4 -4
  44. package/dist/cjs/components/PasswordField/index.js +524 -510
  45. package/dist/cjs/components/PasswordField/index.js.map +4 -4
  46. package/dist/cjs/components/Radio/Radio.js +506 -492
  47. package/dist/cjs/components/Radio/Radio.js.map +4 -4
  48. package/dist/cjs/components/Radio/RadioGroup.js +505 -491
  49. package/dist/cjs/components/Radio/RadioGroup.js.map +4 -4
  50. package/dist/cjs/components/Radio/index.js +484 -470
  51. package/dist/cjs/components/Radio/index.js.map +4 -4
  52. package/dist/cjs/components/Select/Select.js +511 -497
  53. package/dist/cjs/components/Select/Select.js.map +4 -4
  54. package/dist/cjs/components/Select/index.js +511 -497
  55. package/dist/cjs/components/Select/index.js.map +4 -4
  56. package/dist/cjs/components/TextArea/TextArea.js +521 -507
  57. package/dist/cjs/components/TextArea/TextArea.js.map +4 -4
  58. package/dist/cjs/components/TextArea/index.js +521 -507
  59. package/dist/cjs/components/TextArea/index.js.map +4 -4
  60. package/dist/cjs/components/TextField/TextField.js +537 -523
  61. package/dist/cjs/components/TextField/TextField.js.map +4 -4
  62. package/dist/cjs/components/TextField/index.js +537 -523
  63. package/dist/cjs/components/TextField/index.js.map +4 -4
  64. package/dist/cjs/components/index.js +567 -553
  65. package/dist/cjs/components/index.js.map +4 -4
  66. package/dist/cjs/index.js +567 -553
  67. package/dist/cjs/index.js.map +4 -4
  68. package/dist/cjs/meta.json +1372 -1305
  69. package/dist/esm/{chunk-FTSJNY4J.js → chunk-N5WGQAHM.js} +14 -2
  70. package/dist/esm/chunk-N5WGQAHM.js.map +7 -0
  71. package/dist/esm/{chunk-C4BILMFX.js → chunk-RR4UQSOZ.js} +5 -1
  72. package/dist/esm/chunk-RR4UQSOZ.js.map +7 -0
  73. package/dist/esm/components/AddressLookup/AddressLookup.js +2 -2
  74. package/dist/esm/components/AddressLookup/index.js +2 -2
  75. package/dist/esm/components/Alert/Alert.js +4 -1
  76. package/dist/esm/components/Alert/index.js +4 -1
  77. package/dist/esm/components/Checkbox/Checkbox.js +2 -2
  78. package/dist/esm/components/Checkbox/CheckboxGroup.js +2 -2
  79. package/dist/esm/components/Checkbox/index.js +2 -2
  80. package/dist/esm/components/Combobox/Combobox.js +2 -2
  81. package/dist/esm/components/Combobox/index.js +2 -2
  82. package/dist/esm/components/DateField/DateField.js +2 -2
  83. package/dist/esm/components/DateField/index.js +2 -2
  84. package/dist/esm/components/ErrorMessage/ErrorMessage.js +2 -2
  85. package/dist/esm/components/ErrorMessage/index.js +2 -2
  86. package/dist/esm/components/ExpandableText/ExpandableText.js +2 -2
  87. package/dist/esm/components/ExpandableText/index.js +2 -2
  88. package/dist/esm/components/MaskedField/MaskedField.js +2 -2
  89. package/dist/esm/components/MaskedField/index.js +2 -2
  90. package/dist/esm/components/NumberField/NumberField.js +2 -2
  91. package/dist/esm/components/NumberField/index.js +2 -2
  92. package/dist/esm/components/PasswordField/PasswordField.js +2 -2
  93. package/dist/esm/components/PasswordField/ShowHideButton.js +2 -2
  94. package/dist/esm/components/PasswordField/index.js +2 -2
  95. package/dist/esm/components/Radio/Radio.js +2 -2
  96. package/dist/esm/components/Radio/RadioGroup.js +2 -2
  97. package/dist/esm/components/Radio/index.js +2 -2
  98. package/dist/esm/components/Select/Select.js +2 -2
  99. package/dist/esm/components/Select/index.js +2 -2
  100. package/dist/esm/components/TextArea/TextArea.js +2 -2
  101. package/dist/esm/components/TextArea/index.js +2 -2
  102. package/dist/esm/components/TextField/TextField.js +2 -2
  103. package/dist/esm/components/TextField/index.js +2 -2
  104. package/dist/esm/components/index.js +2 -2
  105. package/dist/esm/index.js +2 -2
  106. package/dist/esm/meta.json +164 -131
  107. package/dist/tsconfig.build.tsbuildinfo +1 -1
  108. package/package.json +1 -1
  109. package/src/components/AddressLookup/AddressLookup.test.tsx +76 -0
  110. package/src/components/AddressLookup/AddressLookup.tsx +9 -0
  111. package/src/components/Alert/Alert.tsx +10 -1
  112. package/src/components/Drawer/Drawer.css +24 -3
  113. package/src/components/Modal/Modal.css +42 -3
  114. package/dist/esm/chunk-C4BILMFX.js.map +0 -7
  115. package/dist/esm/chunk-FTSJNY4J.js.map +0 -7
@@ -2149,6 +2149,10 @@ var init_AddressLookup = __esm({
2149
2149
  );
2150
2150
  const handleSelected = (selected) => {
2151
2151
  setError(null);
2152
+ const isEmpty = typeof selected === "string" ? selected === "" : !selected.id && !selected.value;
2153
+ if (isEmpty) {
2154
+ return Promise.resolve();
2155
+ }
2152
2156
  if (typeof selected === "string" || !selected.id) {
2153
2157
  setError(new Error("Selected option missing id"));
2154
2158
  return Promise.resolve();
@@ -2196,19 +2200,98 @@ var init_AddressLookup2 = __esm({
2196
2200
  }
2197
2201
  });
2198
2202
 
2203
+ // src/components/Text/Text.tsx
2204
+ var import_dedupe14, import_Text, import_jsx_runtime15, getElementType, Text;
2205
+ var init_Text = __esm({
2206
+ "src/components/Text/Text.tsx"() {
2207
+ "use strict";
2208
+ import_dedupe14 = __toESM(require("classnames/dedupe"));
2209
+ import_Text = require("@simplybusiness/mobius/src/components/Text/Text.css");
2210
+ import_jsx_runtime15 = require("react/jsx-runtime");
2211
+ getElementType = (variant, elementType) => {
2212
+ if (variant) {
2213
+ return ["h1", "h2", "h3", "h4"].includes(variant) ? variant : "p";
2214
+ }
2215
+ return elementType || "p";
2216
+ };
2217
+ Text = ({ ref, elementType: Component = "p", ...props }) => {
2218
+ const { variant, className, spacing, ...otherProps } = props;
2219
+ const elementType = getElementType(variant, Component);
2220
+ const variantType = variant || elementType;
2221
+ const classes = (0, import_dedupe14.default)(
2222
+ "mobius",
2223
+ "mobius-text",
2224
+ { [`--is-${variantType}`]: variantType },
2225
+ { [`--has-line-height-${spacing}`]: spacing },
2226
+ className
2227
+ );
2228
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Component, { ref, ...otherProps, className: classes });
2229
+ };
2230
+ Text.displayName = "Text";
2231
+ }
2232
+ });
2233
+
2234
+ // src/components/TextOrHTML/TextOrHTML.tsx
2235
+ var import_react15, import_jsx_runtime16, isHTML, TextOrHTML;
2236
+ var init_TextOrHTML = __esm({
2237
+ "src/components/TextOrHTML/TextOrHTML.tsx"() {
2238
+ "use strict";
2239
+ import_react15 = require("react");
2240
+ init_Text();
2241
+ import_jsx_runtime16 = require("react/jsx-runtime");
2242
+ isHTML = (text) => /^\s*<[a-z]/i.test(text);
2243
+ TextOrHTML = ({
2244
+ ref,
2245
+ text,
2246
+ htmlClassName,
2247
+ htmlElementType,
2248
+ textWrapper = false,
2249
+ autoDetect = false,
2250
+ ...textProps
2251
+ }) => {
2252
+ const textIsHTML = autoDetect && isHTML(text);
2253
+ const shouldWrapInText = autoDetect ? textWrapper || !textIsHTML : textWrapper;
2254
+ const resolvedElementType = htmlElementType ?? (textIsHTML ? "div" : "span");
2255
+ const DangerousComponent = resolvedElementType;
2256
+ const dangerousHTML = (0, import_react15.useMemo)(() => ({ __html: text }), [text]);
2257
+ const dangerousElement = /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2258
+ DangerousComponent,
2259
+ {
2260
+ className: htmlClassName,
2261
+ dangerouslySetInnerHTML: dangerousHTML
2262
+ }
2263
+ );
2264
+ if (shouldWrapInText) {
2265
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Text, { ref, ...textProps, children: dangerousElement });
2266
+ }
2267
+ return dangerousElement;
2268
+ };
2269
+ TextOrHTML.displayName = "TextOrHTML";
2270
+ }
2271
+ });
2272
+
2273
+ // src/components/TextOrHTML/index.tsx
2274
+ var init_TextOrHTML2 = __esm({
2275
+ "src/components/TextOrHTML/index.tsx"() {
2276
+ "use strict";
2277
+ init_TextOrHTML();
2278
+ }
2279
+ });
2280
+
2199
2281
  // src/components/Alert/Alert.tsx
2200
2282
  function isAlertVariant(value) {
2201
2283
  return value === "info" || value === "success" || value === "warning" || value === "error";
2202
2284
  }
2203
- var import_icons3, import_dedupe14, import_Alert, import_jsx_runtime15, Alert;
2285
+ var import_icons3, import_dedupe15, import_Alert, import_jsx_runtime17, Alert;
2204
2286
  var init_Alert = __esm({
2205
2287
  "src/components/Alert/Alert.tsx"() {
2206
2288
  "use strict";
2207
2289
  import_icons3 = require("@simplybusiness/icons");
2208
- import_dedupe14 = __toESM(require("classnames/dedupe"));
2290
+ import_dedupe15 = __toESM(require("classnames/dedupe"));
2209
2291
  init_Icon2();
2292
+ init_TextOrHTML2();
2210
2293
  import_Alert = require("@simplybusiness/mobius/src/components/Alert/Alert.css");
2211
- import_jsx_runtime15 = require("react/jsx-runtime");
2294
+ import_jsx_runtime17 = require("react/jsx-runtime");
2212
2295
  Alert = ({ ref, ...props }) => {
2213
2296
  const {
2214
2297
  elementType: Element = "div",
@@ -2221,7 +2304,7 @@ var init_Alert = __esm({
2221
2304
  if (!show) return null;
2222
2305
  const variant = variantProp && isAlertVariant(variantProp) ? variantProp : "info";
2223
2306
  const colorValue = variant === "success" ? `var(--color-valid)` : `var(--color-${variant})`;
2224
- const classes = (0, import_dedupe14.default)(
2307
+ const classes = (0, import_dedupe15.default)(
2225
2308
  "mobius",
2226
2309
  "mobius-alert",
2227
2310
  {
@@ -2239,14 +2322,23 @@ var init_Alert = __esm({
2239
2322
  warning: import_icons3.warning,
2240
2323
  error: import_icons3.error
2241
2324
  };
2242
- const headerClasses = (0, import_dedupe14.default)("mobius", "mobius-alert__header");
2243
- const iconClasses = (0, import_dedupe14.default)("mobius", "mobius-alert__icon");
2244
- const contentClasses = (0, import_dedupe14.default)("mobius", "mobius-alert__content");
2245
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Element, { ref, role: "alert", ...otherProps, className: classes, children: [
2246
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: iconClasses, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon, { icon: icon[variant], color: colorValue }) }),
2247
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { children: [
2248
- header && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { className: headerClasses, children: header }),
2249
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: contentClasses, children })
2325
+ const headerClasses = (0, import_dedupe15.default)("mobius", "mobius-alert__header");
2326
+ const iconClasses = (0, import_dedupe15.default)("mobius", "mobius-alert__icon");
2327
+ const contentClasses = (0, import_dedupe15.default)("mobius", "mobius-alert__content");
2328
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Element, { ref, role: "alert", ...otherProps, className: classes, children: [
2329
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: iconClasses, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon, { icon: icon[variant], color: colorValue }) }),
2330
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { children: [
2331
+ header && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2332
+ TextOrHTML,
2333
+ {
2334
+ autoDetect: true,
2335
+ htmlElementType: "span",
2336
+ className: headerClasses,
2337
+ htmlClassName: headerClasses,
2338
+ text: header
2339
+ }
2340
+ ),
2341
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: contentClasses, children })
2250
2342
  ] })
2251
2343
  ] });
2252
2344
  };
@@ -2263,14 +2355,14 @@ var init_Alert2 = __esm({
2263
2355
  });
2264
2356
 
2265
2357
  // src/components/Box/Box.tsx
2266
- var import_dedupe15, import_Box, import_jsx_runtime16, Box;
2358
+ var import_dedupe16, import_Box, import_jsx_runtime18, Box;
2267
2359
  var init_Box = __esm({
2268
2360
  "src/components/Box/Box.tsx"() {
2269
2361
  "use strict";
2270
- import_dedupe15 = __toESM(require("classnames/dedupe"));
2362
+ import_dedupe16 = __toESM(require("classnames/dedupe"));
2271
2363
  init_utils();
2272
2364
  import_Box = require("@simplybusiness/mobius/src/components/Box/Box.css");
2273
- import_jsx_runtime16 = require("react/jsx-runtime");
2365
+ import_jsx_runtime18 = require("react/jsx-runtime");
2274
2366
  Box = ({ ref, ...props }) => {
2275
2367
  const {
2276
2368
  elementType: Element = "div",
@@ -2296,7 +2388,7 @@ var init_Box = __esm({
2296
2388
  style,
2297
2389
  ...otherProps
2298
2390
  } = props;
2299
- const classes = (0, import_dedupe15.default)("mobius", "mobius-box", otherProps.className);
2391
+ const classes = (0, import_dedupe16.default)("mobius", "mobius-box", otherProps.className);
2300
2392
  const styleProps = filterUndefinedProps({
2301
2393
  padding: getSpacingValue(padding),
2302
2394
  paddingInline: getSpacingValue(paddingInline || paddingX),
@@ -2313,7 +2405,7 @@ var init_Box = __esm({
2313
2405
  height,
2314
2406
  ...style
2315
2407
  });
2316
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Element, { ref, style: styleProps, ...otherProps, className: classes });
2408
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Element, { ref, style: styleProps, ...otherProps, className: classes });
2317
2409
  };
2318
2410
  Box.displayName = "Box";
2319
2411
  }
@@ -2328,27 +2420,27 @@ var init_Box2 = __esm({
2328
2420
  });
2329
2421
 
2330
2422
  // src/components/Breadcrumbs/Breadcrumbs.tsx
2331
- var import_react15, import_dedupe16, import_Breadcrumbs, import_jsx_runtime17, Breadcrumbs;
2423
+ var import_react16, import_dedupe17, import_Breadcrumbs, import_jsx_runtime19, Breadcrumbs;
2332
2424
  var init_Breadcrumbs = __esm({
2333
2425
  "src/components/Breadcrumbs/Breadcrumbs.tsx"() {
2334
2426
  "use strict";
2335
2427
  "use client";
2336
- import_react15 = require("react");
2337
- import_dedupe16 = __toESM(require("classnames/dedupe"));
2428
+ import_react16 = require("react");
2429
+ import_dedupe17 = __toESM(require("classnames/dedupe"));
2338
2430
  import_Breadcrumbs = require("@simplybusiness/mobius/src/components/Breadcrumbs/Breadcrumbs.css");
2339
- import_jsx_runtime17 = require("react/jsx-runtime");
2431
+ import_jsx_runtime19 = require("react/jsx-runtime");
2340
2432
  Breadcrumbs = ({ ref, ...props }) => {
2341
2433
  const { "aria-label": ariaLabel = "Breadcrumbs" } = props;
2342
2434
  const { navProps } = { navProps: { "aria-label": ariaLabel } };
2343
2435
  const { children, ...otherProps } = props;
2344
- const childArray = import_react15.Children.toArray(children);
2345
- const classes = (0, import_dedupe16.default)(
2436
+ const childArray = import_react16.Children.toArray(children);
2437
+ const classes = (0, import_dedupe17.default)(
2346
2438
  "mobius",
2347
2439
  "mobius-breadcrumb",
2348
2440
  otherProps.className
2349
2441
  );
2350
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("nav", { ref, ...otherProps, ...navProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("ul", { children: childArray.map(
2351
- (child, i) => (0, import_react15.cloneElement)(
2442
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("nav", { ref, ...otherProps, ...navProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("ul", { children: childArray.map(
2443
+ (child, i) => (0, import_react16.cloneElement)(
2352
2444
  child,
2353
2445
  {
2354
2446
  key: i,
@@ -2362,22 +2454,22 @@ var init_Breadcrumbs = __esm({
2362
2454
  });
2363
2455
 
2364
2456
  // src/components/Breadcrumbs/BreadcrumbItem.tsx
2365
- var import_react16, import_dedupe17, import_jsx_runtime18, BreadcrumbItem;
2457
+ var import_react17, import_dedupe18, import_jsx_runtime20, BreadcrumbItem;
2366
2458
  var init_BreadcrumbItem = __esm({
2367
2459
  "src/components/Breadcrumbs/BreadcrumbItem.tsx"() {
2368
2460
  "use strict";
2369
2461
  "use client";
2370
- import_react16 = require("react");
2371
- import_dedupe17 = __toESM(require("classnames/dedupe"));
2462
+ import_react17 = require("react");
2463
+ import_dedupe18 = __toESM(require("classnames/dedupe"));
2372
2464
  init_Box2();
2373
- import_jsx_runtime18 = require("react/jsx-runtime");
2465
+ import_jsx_runtime20 = require("react/jsx-runtime");
2374
2466
  BreadcrumbItem = ({ ref, ...props }) => {
2375
2467
  const {
2376
2468
  isDisabled = false,
2377
2469
  isCurrent = false,
2378
2470
  "aria-current": ariaCurrent = "page",
2379
2471
  children,
2380
- separator = /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Box, { className: "mobius-breadcrumb__separator", "aria-hidden": "true", children: ">" }),
2472
+ separator = /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Box, { className: "mobius-breadcrumb__separator", "aria-hidden": "true", children: ">" }),
2381
2473
  ...otherProps
2382
2474
  } = props;
2383
2475
  const { itemProps } = {
@@ -2387,14 +2479,14 @@ var init_BreadcrumbItem = __esm({
2387
2479
  ...otherProps
2388
2480
  }
2389
2481
  };
2390
- const classes = (0, import_dedupe17.default)(
2482
+ const classes = (0, import_dedupe18.default)(
2391
2483
  "mobius",
2392
2484
  "mobius-breadcrumb__item",
2393
2485
  props.className
2394
2486
  );
2395
- const child = typeof children === "string" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { ...itemProps, children }) : import_react16.Children.only(children);
2396
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("li", { className: classes, children: [
2397
- (0, import_react16.cloneElement)(child, {
2487
+ const child = typeof children === "string" ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { ...itemProps, children }) : import_react17.Children.only(children);
2488
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("li", { className: classes, children: [
2489
+ (0, import_react17.cloneElement)(child, {
2398
2490
  ...child.props,
2399
2491
  ...itemProps,
2400
2492
  ref
@@ -2416,19 +2508,19 @@ var init_Breadcrumbs2 = __esm({
2416
2508
  });
2417
2509
 
2418
2510
  // src/components/Button/Loading.tsx
2419
- var import_icons4, import_jsx_runtime19, Loading;
2511
+ var import_icons4, import_jsx_runtime21, Loading;
2420
2512
  var init_Loading = __esm({
2421
2513
  "src/components/Button/Loading.tsx"() {
2422
2514
  "use strict";
2423
2515
  import_icons4 = require("@simplybusiness/icons");
2424
2516
  init_Icon2();
2425
2517
  init_VisuallyHidden2();
2426
- import_jsx_runtime19 = require("react/jsx-runtime");
2518
+ import_jsx_runtime21 = require("react/jsx-runtime");
2427
2519
  Loading = (props) => {
2428
2520
  const { children } = props;
2429
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
2430
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "mobius-button__icon-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { icon: import_icons4.loading, spin: true, size: "md" }) }),
2431
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(VisuallyHidden, { className: "mobius-button__loading-text", children: "Loading" }),
2521
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
2522
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "mobius-button__icon-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Icon, { icon: import_icons4.loading, spin: true, size: "md" }) }),
2523
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(VisuallyHidden, { className: "mobius-button__loading-text", children: "Loading" }),
2432
2524
  children
2433
2525
  ] });
2434
2526
  };
@@ -2436,33 +2528,33 @@ var init_Loading = __esm({
2436
2528
  });
2437
2529
 
2438
2530
  // src/components/Button/Success.tsx
2439
- var import_icons5, import_jsx_runtime20, Success;
2531
+ var import_icons5, import_jsx_runtime22, Success;
2440
2532
  var init_Success = __esm({
2441
2533
  "src/components/Button/Success.tsx"() {
2442
2534
  "use strict";
2443
2535
  import_icons5 = require("@simplybusiness/icons");
2444
2536
  init_Icon2();
2445
2537
  init_VisuallyHidden2();
2446
- import_jsx_runtime20 = require("react/jsx-runtime");
2447
- Success = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
2448
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "mobius-button__icon-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { icon: import_icons5.tick, size: "md" }) }),
2449
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(VisuallyHidden, { className: "mobius-button__success-text", children: "Success" })
2538
+ import_jsx_runtime22 = require("react/jsx-runtime");
2539
+ Success = () => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
2540
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "mobius-button__icon-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon, { icon: import_icons5.tick, size: "md" }) }),
2541
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(VisuallyHidden, { className: "mobius-button__success-text", children: "Success" })
2450
2542
  ] });
2451
2543
  }
2452
2544
  });
2453
2545
 
2454
2546
  // src/components/Button/Button.tsx
2455
- var import_dedupe18, import_Button, import_jsx_runtime21, Button;
2547
+ var import_dedupe19, import_Button, import_jsx_runtime23, Button;
2456
2548
  var init_Button = __esm({
2457
2549
  "src/components/Button/Button.tsx"() {
2458
2550
  "use strict";
2459
2551
  "use client";
2460
- import_dedupe18 = __toESM(require("classnames/dedupe"));
2552
+ import_dedupe19 = __toESM(require("classnames/dedupe"));
2461
2553
  init_Loading();
2462
2554
  init_useButton2();
2463
2555
  init_Success();
2464
2556
  import_Button = require("@simplybusiness/mobius/src/components/Button/Button.css");
2465
- import_jsx_runtime21 = require("react/jsx-runtime");
2557
+ import_jsx_runtime23 = require("react/jsx-runtime");
2466
2558
  Button = ({ ref, ...props }) => {
2467
2559
  const {
2468
2560
  children,
@@ -2477,7 +2569,7 @@ var init_Button = __esm({
2477
2569
  ...otherProps
2478
2570
  } = props;
2479
2571
  const { buttonProps } = useButton(props);
2480
- otherProps.className = (0, import_dedupe18.default)(
2572
+ otherProps.className = (0, import_dedupe19.default)(
2481
2573
  "mobius",
2482
2574
  "mobius-button",
2483
2575
  `--variant-${variant}`,
@@ -2489,9 +2581,9 @@ var init_Button = __esm({
2489
2581
  },
2490
2582
  otherProps.className
2491
2583
  );
2492
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Component, { ref, ...buttonProps, ...otherProps, children: [
2493
- isLoading ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Loading, { children }) : children,
2494
- isSuccess && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Success, {})
2584
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Component, { ref, ...buttonProps, ...otherProps, children: [
2585
+ isLoading ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Loading, { children }) : children,
2586
+ isSuccess && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Success, {})
2495
2587
  ] });
2496
2588
  };
2497
2589
  Button.displayName = "Button";
@@ -2507,20 +2599,20 @@ var init_Button2 = __esm({
2507
2599
  });
2508
2600
 
2509
2601
  // src/components/Checkbox/CheckboxGroup.tsx
2510
- var import_dedupe19, import_react17, import_CheckboxGroup, import_jsx_runtime22, CheckboxGroup;
2602
+ var import_dedupe20, import_react18, import_CheckboxGroup, import_jsx_runtime24, CheckboxGroup;
2511
2603
  var init_CheckboxGroup = __esm({
2512
2604
  "src/components/Checkbox/CheckboxGroup.tsx"() {
2513
2605
  "use strict";
2514
2606
  "use client";
2515
- import_dedupe19 = __toESM(require("classnames/dedupe"));
2516
- import_react17 = require("react");
2607
+ import_dedupe20 = __toESM(require("classnames/dedupe"));
2608
+ import_react18 = require("react");
2517
2609
  init_hooks();
2518
2610
  init_spaceDelimitedList();
2519
2611
  init_ErrorMessage2();
2520
2612
  init_Label2();
2521
2613
  init_Checkbox2();
2522
2614
  import_CheckboxGroup = require("@simplybusiness/mobius/src/components/Checkbox/CheckboxGroup.css");
2523
- import_jsx_runtime22 = require("react/jsx-runtime");
2615
+ import_jsx_runtime24 = require("react/jsx-runtime");
2524
2616
  CheckboxGroup = ({ ref, ...props }) => {
2525
2617
  const {
2526
2618
  label,
@@ -2538,10 +2630,10 @@ var init_CheckboxGroup = __esm({
2538
2630
  lastItemDisables = false,
2539
2631
  ...rest
2540
2632
  } = props;
2541
- const [selected, setSelected] = (0, import_react17.useState)(defaultValue);
2542
- const isInitializedRef = (0, import_react17.useRef)(false);
2543
- const prevDefaultValueRef = (0, import_react17.useRef)(defaultValue);
2544
- (0, import_react17.useEffect)(() => {
2633
+ const [selected, setSelected] = (0, import_react18.useState)(defaultValue);
2634
+ const isInitializedRef = (0, import_react18.useRef)(false);
2635
+ const prevDefaultValueRef = (0, import_react18.useRef)(defaultValue);
2636
+ (0, import_react18.useEffect)(() => {
2545
2637
  const hasChanged = defaultValue.length !== prevDefaultValueRef.current.length || defaultValue.some(
2546
2638
  (val, index) => val !== prevDefaultValueRef.current[index]
2547
2639
  );
@@ -2551,7 +2643,7 @@ var init_CheckboxGroup = __esm({
2551
2643
  isInitializedRef.current = true;
2552
2644
  }
2553
2645
  }, [defaultValue]);
2554
- const checkboxGroupClasses = (0, import_dedupe19.default)(
2646
+ const checkboxGroupClasses = (0, import_dedupe20.default)(
2555
2647
  "mobius",
2556
2648
  "mobius-checkbox-group",
2557
2649
  className,
@@ -2563,19 +2655,19 @@ var init_CheckboxGroup = __esm({
2563
2655
  }
2564
2656
  );
2565
2657
  const validationClasses = useValidationClasses({ isInvalid });
2566
- const labelClasses = (0, import_dedupe19.default)(
2658
+ const labelClasses = (0, import_dedupe20.default)(
2567
2659
  {
2568
2660
  "--is-disabled": isDisabled
2569
2661
  },
2570
2662
  validationClasses
2571
2663
  );
2572
- const errorMessageId = (0, import_react17.useId)();
2664
+ const errorMessageId = (0, import_react18.useId)();
2573
2665
  const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
2574
2666
  const describedBy = spaceDelimitedList([
2575
2667
  shouldErrorMessageShow,
2576
2668
  props["aria-describedby"]
2577
2669
  ]);
2578
- const labelId = (0, import_react17.useId)();
2670
+ const labelId = (0, import_react18.useId)();
2579
2671
  const handleChange = (event, isLastItem = false) => {
2580
2672
  const {
2581
2673
  target: { value, checked }
@@ -2593,12 +2685,12 @@ var init_CheckboxGroup = __esm({
2593
2685
  setSelected(newValue);
2594
2686
  onChange?.(newValue);
2595
2687
  };
2596
- const childrenArray = import_react17.Children.toArray(children);
2688
+ const childrenArray = import_react18.Children.toArray(children);
2597
2689
  const lastCheckbox = childrenArray.filter(
2598
- (child) => (0, import_react17.isValidElement)(child) && child.type === Checkbox
2690
+ (child) => (0, import_react18.isValidElement)(child) && child.type === Checkbox
2599
2691
  ).pop();
2600
2692
  const lastCheckboxIsChecked = lastCheckbox && selected.includes(lastCheckbox.props.value);
2601
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
2693
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2602
2694
  "div",
2603
2695
  {
2604
2696
  ...rest,
@@ -2607,16 +2699,16 @@ var init_CheckboxGroup = __esm({
2607
2699
  className: checkboxGroupClasses,
2608
2700
  role: "group",
2609
2701
  style: {
2610
- "--checkbox-items-per-row": itemsPerRow || import_react17.Children.count(children)
2702
+ "--checkbox-items-per-row": itemsPerRow || import_react18.Children.count(children)
2611
2703
  },
2612
2704
  children: [
2613
- label && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Label, { elementType: "span", id: labelId, className: labelClasses, children: label }),
2614
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "mobius-checkbox-group__wrapper", children: childrenArray.map((child) => {
2615
- if ((0, import_react17.isValidElement)(child)) {
2705
+ label && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Label, { elementType: "span", id: labelId, className: labelClasses, children: label }),
2706
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "mobius-checkbox-group__wrapper", children: childrenArray.map((child) => {
2707
+ if ((0, import_react18.isValidElement)(child)) {
2616
2708
  const isLastItem = child === lastCheckbox;
2617
2709
  const isChildDisabled = isDisabled || lastItemDisables && lastCheckboxIsChecked && !isLastItem;
2618
2710
  const childProps = child.props;
2619
- return (0, import_react17.cloneElement)(
2711
+ return (0, import_react18.cloneElement)(
2620
2712
  child,
2621
2713
  {
2622
2714
  isDisabled: isChildDisabled,
@@ -2632,7 +2724,7 @@ var init_CheckboxGroup = __esm({
2632
2724
  }
2633
2725
  return child;
2634
2726
  }) }),
2635
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
2727
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
2636
2728
  ]
2637
2729
  }
2638
2730
  );
@@ -2659,23 +2751,23 @@ var init_Checkbox = __esm({
2659
2751
  });
2660
2752
 
2661
2753
  // src/components/Container/Container.tsx
2662
- var import_dedupe20, import_Container, import_jsx_runtime23, Container;
2754
+ var import_dedupe21, import_Container, import_jsx_runtime25, Container;
2663
2755
  var init_Container = __esm({
2664
2756
  "src/components/Container/Container.tsx"() {
2665
2757
  "use strict";
2666
- import_dedupe20 = __toESM(require("classnames/dedupe"));
2758
+ import_dedupe21 = __toESM(require("classnames/dedupe"));
2667
2759
  init_utils();
2668
2760
  import_Container = require("@simplybusiness/mobius/src/components/Container/Container.css");
2669
- import_jsx_runtime23 = require("react/jsx-runtime");
2761
+ import_jsx_runtime25 = require("react/jsx-runtime");
2670
2762
  Container = ({ ref, ...props }) => {
2671
2763
  const { elementType: Element = "div", size = "md", ...otherProps } = props;
2672
- const classes = (0, import_dedupe20.default)(
2764
+ const classes = (0, import_dedupe21.default)(
2673
2765
  "mobius",
2674
2766
  "mobius-container",
2675
2767
  sizeClasses(size),
2676
2768
  otherProps.className
2677
2769
  );
2678
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Element, { ref, ...otherProps, className: classes });
2770
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Element, { ref, ...otherProps, className: classes });
2679
2771
  };
2680
2772
  Container.displayName = "Container";
2681
2773
  }
@@ -2728,17 +2820,17 @@ var init_validation = __esm({
2728
2820
  });
2729
2821
 
2730
2822
  // src/components/DateField/DateField.tsx
2731
- var import_dedupe21, import_react18, import_jsx_runtime24, MIN_MAX_ERROR, DateField;
2823
+ var import_dedupe22, import_react19, import_jsx_runtime26, MIN_MAX_ERROR, DateField;
2732
2824
  var init_DateField = __esm({
2733
2825
  "src/components/DateField/DateField.tsx"() {
2734
2826
  "use strict";
2735
2827
  "use client";
2736
- import_dedupe21 = __toESM(require("classnames/dedupe"));
2737
- import_react18 = require("react");
2828
+ import_dedupe22 = __toESM(require("classnames/dedupe"));
2829
+ import_react19 = require("react");
2738
2830
  init_mergeRefs();
2739
2831
  init_TextField2();
2740
2832
  init_validation();
2741
- import_jsx_runtime24 = require("react/jsx-runtime");
2833
+ import_jsx_runtime26 = require("react/jsx-runtime");
2742
2834
  MIN_MAX_ERROR = '"min" value should not be greater than "max" value.';
2743
2835
  DateField = ({ ref, ...props }) => {
2744
2836
  const {
@@ -2751,10 +2843,10 @@ var init_DateField = __esm({
2751
2843
  value,
2752
2844
  ...otherProps
2753
2845
  } = props;
2754
- const [error3, setError] = (0, import_react18.useState)(errorMessage);
2755
- const [isInvalid, setIsInvalid] = (0, import_react18.useState)(void 0);
2756
- const localRef = (0, import_react18.useRef)(null);
2757
- const classes = (0, import_dedupe21.default)("mobius-date-field", className);
2846
+ const [error3, setError] = (0, import_react19.useState)(errorMessage);
2847
+ const [isInvalid, setIsInvalid] = (0, import_react19.useState)(void 0);
2848
+ const localRef = (0, import_react19.useRef)(null);
2849
+ const classes = (0, import_dedupe22.default)("mobius-date-field", className);
2758
2850
  const formattedMin = min ? convertToDateFormat(min, format) : void 0;
2759
2851
  const formattedMax = max ? convertToDateFormat(max, format) : void 0;
2760
2852
  const formattedDefaultValue = defaultValue ? convertToDateFormat(defaultValue, format) : void 0;
@@ -2767,7 +2859,7 @@ var init_DateField = __esm({
2767
2859
  setError(props.errorMessage);
2768
2860
  setIsInvalid(false);
2769
2861
  };
2770
- (0, import_react18.useEffect)(() => {
2862
+ (0, import_react19.useEffect)(() => {
2771
2863
  if (!isValidDate(min, format)) {
2772
2864
  setInvalidState(`Invalid min date: ${min}`);
2773
2865
  return;
@@ -2800,7 +2892,7 @@ var init_DateField = __esm({
2800
2892
  validate();
2801
2893
  otherProps.onBlur?.(event);
2802
2894
  };
2803
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2895
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2804
2896
  TextField,
2805
2897
  {
2806
2898
  ref: mergeRefs([localRef, ref]),
@@ -2831,23 +2923,23 @@ var init_DateField2 = __esm({
2831
2923
  });
2832
2924
 
2833
2925
  // src/components/Drawer/Content.tsx
2834
- var import_jsx_runtime25, Content;
2926
+ var import_jsx_runtime27, Content;
2835
2927
  var init_Content = __esm({
2836
2928
  "src/components/Drawer/Content.tsx"() {
2837
2929
  "use strict";
2838
- import_jsx_runtime25 = require("react/jsx-runtime");
2839
- Content = ({ ref, children, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref, ...otherProps, className: "mobius-drawer__content", children });
2930
+ import_jsx_runtime27 = require("react/jsx-runtime");
2931
+ Content = ({ ref, children, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { ref, ...otherProps, className: "mobius-drawer__content", children });
2840
2932
  Content.displayName = "Content";
2841
2933
  }
2842
2934
  });
2843
2935
 
2844
2936
  // src/components/Drawer/DrawerContext.tsx
2845
- var import_react19, DrawerContext;
2937
+ var import_react20, DrawerContext;
2846
2938
  var init_DrawerContext = __esm({
2847
2939
  "src/components/Drawer/DrawerContext.tsx"() {
2848
2940
  "use strict";
2849
- import_react19 = require("react");
2850
- DrawerContext = (0, import_react19.createContext)({
2941
+ import_react20 = require("react");
2942
+ DrawerContext = (0, import_react20.createContext)({
2851
2943
  onClose: () => {
2852
2944
  },
2853
2945
  closeLabel: void 0,
@@ -2857,19 +2949,19 @@ var init_DrawerContext = __esm({
2857
2949
  });
2858
2950
 
2859
2951
  // src/components/Drawer/Drawer.tsx
2860
- var import_dedupe22, import_react20, import_Drawer, import_jsx_runtime26, TRANSITION_CSS_VARIABLE, Drawer;
2952
+ var import_dedupe23, import_react21, import_Drawer, import_jsx_runtime28, TRANSITION_CSS_VARIABLE, Drawer;
2861
2953
  var init_Drawer = __esm({
2862
2954
  "src/components/Drawer/Drawer.tsx"() {
2863
2955
  "use strict";
2864
2956
  "use client";
2865
- import_dedupe22 = __toESM(require("classnames/dedupe"));
2866
- import_react20 = require("react");
2957
+ import_dedupe23 = __toESM(require("classnames/dedupe"));
2958
+ import_react21 = require("react");
2867
2959
  init_hooks();
2868
2960
  init_utils();
2869
2961
  init_VisuallyHidden2();
2870
2962
  init_DrawerContext();
2871
2963
  import_Drawer = require("@simplybusiness/mobius/src/components/Drawer/Drawer.css");
2872
- import_jsx_runtime26 = require("react/jsx-runtime");
2964
+ import_jsx_runtime28 = require("react/jsx-runtime");
2873
2965
  TRANSITION_CSS_VARIABLE = "--drawer-transition-duration";
2874
2966
  Drawer = ({ ref, ...props }) => {
2875
2967
  const {
@@ -2882,8 +2974,8 @@ var init_Drawer = __esm({
2882
2974
  onClose,
2883
2975
  children
2884
2976
  } = props;
2885
- const dialogRef = (0, import_react20.useRef)(null);
2886
- const [shouldTransition, setShouldTransition] = (0, import_react20.useState)(false);
2977
+ const dialogRef = (0, import_react21.useRef)(null);
2978
+ const [shouldTransition, setShouldTransition] = (0, import_react21.useState)(false);
2887
2979
  const { close } = useDialog({
2888
2980
  ref: dialogRef,
2889
2981
  isOpen,
@@ -2894,9 +2986,9 @@ var init_Drawer = __esm({
2894
2986
  CSSVariable: TRANSITION_CSS_VARIABLE
2895
2987
  }
2896
2988
  });
2897
- const hiddenId = `dialog-screen-reader-announce-${(0, import_react20.useId)()}`;
2898
- const headerId = `dialog-header-${(0, import_react20.useId)()}`;
2899
- const dialogClasses = (0, import_dedupe22.default)(
2989
+ const hiddenId = `dialog-screen-reader-announce-${(0, import_react21.useId)()}`;
2990
+ const headerId = `dialog-header-${(0, import_react21.useId)()}`;
2991
+ const dialogClasses = (0, import_dedupe23.default)(
2900
2992
  "mobius",
2901
2993
  "mobius-drawer",
2902
2994
  `--${direction}`,
@@ -2905,10 +2997,10 @@ var init_Drawer = __esm({
2905
2997
  "--should-transition": shouldTransition
2906
2998
  }
2907
2999
  );
2908
- (0, import_react20.useEffect)(() => {
3000
+ (0, import_react21.useEffect)(() => {
2909
3001
  setShouldTransition(supportsDialog());
2910
3002
  }, []);
2911
- const contextValue = (0, import_react20.useMemo)(
3003
+ const contextValue = (0, import_react21.useMemo)(
2912
3004
  () => ({
2913
3005
  onClose: close,
2914
3006
  closeLabel,
@@ -2916,18 +3008,18 @@ var init_Drawer = __esm({
2916
3008
  }),
2917
3009
  [close, closeLabel, headerId]
2918
3010
  );
2919
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
3011
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
2920
3012
  "dialog",
2921
3013
  {
2922
- id: (0, import_react20.useId)(),
3014
+ id: (0, import_react21.useId)(),
2923
3015
  ref: mergeRefs([dialogRef, ref]),
2924
3016
  onCancel: close,
2925
3017
  className: dialogClasses,
2926
3018
  "aria-describedby": hiddenId,
2927
3019
  "aria-labelledby": headerId,
2928
3020
  children: [
2929
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { id: hiddenId, children: announce }) }),
2930
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DrawerContext.Provider, { value: contextValue, children })
3021
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { id: hiddenId, children: announce }) }),
3022
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DrawerContext.Provider, { value: contextValue, children })
2931
3023
  ]
2932
3024
  }
2933
3025
  );
@@ -2937,21 +3029,21 @@ var init_Drawer = __esm({
2937
3029
  });
2938
3030
 
2939
3031
  // src/components/Drawer/useDrawer.ts
2940
- var import_react21, useDrawer;
3032
+ var import_react22, useDrawer;
2941
3033
  var init_useDrawer = __esm({
2942
3034
  "src/components/Drawer/useDrawer.ts"() {
2943
3035
  "use strict";
2944
- import_react21 = require("react");
3036
+ import_react22 = require("react");
2945
3037
  init_DrawerContext();
2946
3038
  useDrawer = () => {
2947
- const { onClose, closeLabel, headerId } = (0, import_react21.useContext)(DrawerContext);
3039
+ const { onClose, closeLabel, headerId } = (0, import_react22.useContext)(DrawerContext);
2948
3040
  return { onClose, closeLabel, headerId };
2949
3041
  };
2950
3042
  }
2951
3043
  });
2952
3044
 
2953
3045
  // src/components/Drawer/Header.tsx
2954
- var import_icons6, import_jsx_runtime27, Header;
3046
+ var import_icons6, import_jsx_runtime29, Header;
2955
3047
  var init_Header = __esm({
2956
3048
  "src/components/Drawer/Header.tsx"() {
2957
3049
  "use strict";
@@ -2959,12 +3051,12 @@ var init_Header = __esm({
2959
3051
  init_Button2();
2960
3052
  init_Icon2();
2961
3053
  init_useDrawer();
2962
- import_jsx_runtime27 = require("react/jsx-runtime");
3054
+ import_jsx_runtime29 = require("react/jsx-runtime");
2963
3055
  Header = ({ ref, children, ...otherProps }) => {
2964
3056
  const { onClose, closeLabel, headerId } = useDrawer();
2965
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("header", { ref, ...otherProps, className: "mobius-drawer__header", children: [
2966
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("h2", { id: headerId, children }),
2967
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3057
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("header", { ref, ...otherProps, className: "mobius-drawer__header", children: [
3058
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("h2", { id: headerId, children }),
3059
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
2968
3060
  Button,
2969
3061
  {
2970
3062
  "aria-label": "Close",
@@ -2973,7 +3065,7 @@ var init_Header = __esm({
2973
3065
  className: "mobius-drawer__close",
2974
3066
  size: "sm",
2975
3067
  children: [
2976
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Icon, { icon: import_icons6.cross }),
3068
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon, { icon: import_icons6.cross }),
2977
3069
  " ",
2978
3070
  closeLabel
2979
3071
  ]
@@ -3002,17 +3094,17 @@ var init_Drawer2 = __esm({
3002
3094
  });
3003
3095
 
3004
3096
  // src/components/DropdownMenu/DropdownMenu.tsx
3005
- var import_react22, import_react_accessible_dropdown_menu_hook, import_dedupe23, import_DropdownMenu, import_jsx_runtime28, DropdownMenu;
3097
+ var import_react23, import_react_accessible_dropdown_menu_hook, import_dedupe24, import_DropdownMenu, import_jsx_runtime30, DropdownMenu;
3006
3098
  var init_DropdownMenu = __esm({
3007
3099
  "src/components/DropdownMenu/DropdownMenu.tsx"() {
3008
3100
  "use strict";
3009
3101
  "use client";
3010
- import_react22 = require("react");
3102
+ import_react23 = require("react");
3011
3103
  import_react_accessible_dropdown_menu_hook = __toESM(require("react-accessible-dropdown-menu-hook"));
3012
- import_dedupe23 = __toESM(require("classnames/dedupe"));
3104
+ import_dedupe24 = __toESM(require("classnames/dedupe"));
3013
3105
  init_Button2();
3014
3106
  import_DropdownMenu = require("@simplybusiness/mobius/src/components/DropdownMenu/DropdownMenu.css");
3015
- import_jsx_runtime28 = require("react/jsx-runtime");
3107
+ import_jsx_runtime30 = require("react/jsx-runtime");
3016
3108
  DropdownMenu = ({ ref, ...props }) => {
3017
3109
  const {
3018
3110
  elementType: Element = "nav",
@@ -3021,21 +3113,21 @@ var init_DropdownMenu = __esm({
3021
3113
  children,
3022
3114
  ...otherProps
3023
3115
  } = props;
3024
- const [activeId, setActiveId] = (0, import_react22.useState)(null);
3025
- const numberOfItems = import_react22.Children.count(children);
3116
+ const [activeId, setActiveId] = (0, import_react23.useState)(null);
3117
+ const numberOfItems = import_react23.Children.count(children);
3026
3118
  const {
3027
3119
  buttonProps,
3028
3120
  itemProps,
3029
3121
  isOpen: open,
3030
3122
  setIsOpen
3031
3123
  } = (0, import_react_accessible_dropdown_menu_hook.default)(numberOfItems);
3032
- const classes = (0, import_dedupe23.default)(
3124
+ const classes = (0, import_dedupe24.default)(
3033
3125
  "mobius",
3034
3126
  "mobius-dropdown-menu",
3035
3127
  otherProps.className
3036
3128
  );
3037
- const triggerClasses = (0, import_dedupe23.default)("mobius", "mobius-dropdown-menu__trigger");
3038
- const listClasses = (0, import_dedupe23.default)("mobius", "mobius-dropdown-menu__list", {
3129
+ const triggerClasses = (0, import_dedupe24.default)("mobius", "mobius-dropdown-menu__trigger");
3130
+ const listClasses = (0, import_dedupe24.default)("mobius", "mobius-dropdown-menu__list", {
3039
3131
  "--is-open": open
3040
3132
  });
3041
3133
  const handleChildClick = ({ onClick }, index) => {
@@ -3045,16 +3137,16 @@ var init_DropdownMenu = __esm({
3045
3137
  onClick();
3046
3138
  }
3047
3139
  };
3048
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Element, { ref, ...otherProps, className: classes, children: [
3049
- trigger ? (0, import_react22.cloneElement)(trigger, {
3140
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Element, { ref, ...otherProps, className: classes, children: [
3141
+ trigger ? (0, import_react23.cloneElement)(trigger, {
3050
3142
  className: triggerClasses,
3051
3143
  open,
3052
3144
  label,
3053
3145
  ...buttonProps
3054
- }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Button, { className: triggerClasses, ...buttonProps, children: label }),
3055
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("ul", { className: listClasses, role: "menu", children: import_react22.Children.map(children, (child, index) => {
3056
- if ((0, import_react22.isValidElement)(child)) {
3057
- return (0, import_react22.cloneElement)(child, {
3146
+ }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Button, { className: triggerClasses, ...buttonProps, children: label }),
3147
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("ul", { className: listClasses, role: "menu", children: import_react23.Children.map(children, (child, index) => {
3148
+ if ((0, import_react23.isValidElement)(child)) {
3149
+ return (0, import_react23.cloneElement)(child, {
3058
3150
  onClick: () => handleChildClick(child.props, index),
3059
3151
  active: index === activeId,
3060
3152
  ...itemProps[index]
@@ -3069,13 +3161,13 @@ var init_DropdownMenu = __esm({
3069
3161
  });
3070
3162
 
3071
3163
  // src/components/DropdownMenu/Item.tsx
3072
- var import_react23, import_dedupe24, import_jsx_runtime29, Item;
3164
+ var import_react24, import_dedupe25, import_jsx_runtime31, Item;
3073
3165
  var init_Item = __esm({
3074
3166
  "src/components/DropdownMenu/Item.tsx"() {
3075
3167
  "use strict";
3076
- import_react23 = require("react");
3077
- import_dedupe24 = __toESM(require("classnames/dedupe"));
3078
- import_jsx_runtime29 = require("react/jsx-runtime");
3168
+ import_react24 = require("react");
3169
+ import_dedupe25 = __toESM(require("classnames/dedupe"));
3170
+ import_jsx_runtime31 = require("react/jsx-runtime");
3079
3171
  Item = ({ ref, ...props }) => {
3080
3172
  const {
3081
3173
  elementType: Element = "li",
@@ -3084,26 +3176,26 @@ var init_Item = __esm({
3084
3176
  children,
3085
3177
  ...otherProps
3086
3178
  } = props;
3087
- const classes = (0, import_dedupe24.default)(
3179
+ const classes = (0, import_dedupe25.default)(
3088
3180
  "mobius",
3089
3181
  "mobius-dropdown-menu__item",
3090
3182
  { "--is-active": active },
3091
3183
  otherProps.className
3092
3184
  );
3093
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Element, { ref, onClick, ...otherProps, children: import_react23.Children.map(children, (child) => {
3094
- if ((0, import_react23.isValidElement)(child)) {
3095
- const childClasses = (0, import_dedupe24.default)(
3185
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Element, { ref, onClick, ...otherProps, children: import_react24.Children.map(children, (child) => {
3186
+ if ((0, import_react24.isValidElement)(child)) {
3187
+ const childClasses = (0, import_dedupe25.default)(
3096
3188
  child.props.className,
3097
3189
  classes
3098
3190
  );
3099
- return (0, import_react23.cloneElement)(
3191
+ return (0, import_react24.cloneElement)(
3100
3192
  child,
3101
3193
  {
3102
3194
  className: childClasses
3103
3195
  }
3104
3196
  );
3105
3197
  }
3106
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: classes, children: child });
3198
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: classes, children: child });
3107
3199
  }) });
3108
3200
  };
3109
3201
  Item.displayName = "DropdownMenu.Item";
@@ -3128,23 +3220,23 @@ var init_DropdownMenu2 = __esm({
3128
3220
  });
3129
3221
 
3130
3222
  // src/components/Fieldset/Fieldset.tsx
3131
- var import_dedupe25, import_react24, import_Fieldset, import_jsx_runtime30, useFieldset, Fieldset;
3223
+ var import_dedupe26, import_react25, import_Fieldset, import_jsx_runtime32, useFieldset, Fieldset;
3132
3224
  var init_Fieldset = __esm({
3133
3225
  "src/components/Fieldset/Fieldset.tsx"() {
3134
3226
  "use strict";
3135
3227
  "use client";
3136
- import_dedupe25 = __toESM(require("classnames/dedupe"));
3137
- import_react24 = require("react");
3228
+ import_dedupe26 = __toESM(require("classnames/dedupe"));
3229
+ import_react25 = require("react");
3138
3230
  init_Flex2();
3139
3231
  import_Fieldset = require("@simplybusiness/mobius/src/components/Fieldset/Fieldset.css");
3140
- import_jsx_runtime30 = require("react/jsx-runtime");
3232
+ import_jsx_runtime32 = require("react/jsx-runtime");
3141
3233
  useFieldset = (props) => {
3142
3234
  const { legend } = props;
3143
3235
  let legendProps = {};
3144
3236
  let containerProps = {
3145
3237
  role: "group"
3146
3238
  };
3147
- const legendId = (0, import_react24.useId)();
3239
+ const legendId = (0, import_react25.useId)();
3148
3240
  if (legend) {
3149
3241
  legendProps = {
3150
3242
  ...legendProps,
@@ -3164,14 +3256,14 @@ var init_Fieldset = __esm({
3164
3256
  const {
3165
3257
  children,
3166
3258
  legend,
3167
- legendComponent = /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("legend", {}),
3259
+ legendComponent = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("legend", {}),
3168
3260
  ...otherProps
3169
3261
  } = props;
3170
3262
  const { legendProps, containerProps } = useFieldset(props);
3171
- const classes = (0, import_dedupe25.default)("mobius", "mobius-fieldset", props.className);
3263
+ const classes = (0, import_dedupe26.default)("mobius", "mobius-fieldset", props.className);
3172
3264
  legendProps.className = "mobius-fieldset__legend";
3173
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Flex, { ...containerProps, ...otherProps, className: classes, children: [
3174
- legend && (0, import_react24.cloneElement)(legendComponent, { ...legendProps }, [legend]),
3265
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Flex, { ...containerProps, ...otherProps, className: classes, children: [
3266
+ legend && (0, import_react25.cloneElement)(legendComponent, { ...legendProps }, [legend]),
3175
3267
  children
3176
3268
  ] });
3177
3269
  };
@@ -3188,13 +3280,13 @@ var init_Fieldset2 = __esm({
3188
3280
  });
3189
3281
 
3190
3282
  // src/components/Grid/Grid.tsx
3191
- var import_dedupe26, import_jsx_runtime31, Grid;
3283
+ var import_dedupe27, import_jsx_runtime33, Grid;
3192
3284
  var init_Grid = __esm({
3193
3285
  "src/components/Grid/Grid.tsx"() {
3194
3286
  "use strict";
3195
- import_dedupe26 = __toESM(require("classnames/dedupe"));
3287
+ import_dedupe27 = __toESM(require("classnames/dedupe"));
3196
3288
  init_utils();
3197
- import_jsx_runtime31 = require("react/jsx-runtime");
3289
+ import_jsx_runtime33 = require("react/jsx-runtime");
3198
3290
  Grid = ({ ref: _ref, ...props }) => {
3199
3291
  const {
3200
3292
  columns = 12,
@@ -3209,7 +3301,7 @@ var init_Grid = __esm({
3209
3301
  style,
3210
3302
  ...rest
3211
3303
  } = props;
3212
- const classes = (0, import_dedupe26.default)("mobius", "mobius-grid", className);
3304
+ const classes = (0, import_dedupe27.default)("mobius", "mobius-grid", className);
3213
3305
  const styles = filterUndefinedProps({
3214
3306
  boxSizing: "border-box",
3215
3307
  display: "grid",
@@ -3223,22 +3315,22 @@ var init_Grid = __esm({
3223
3315
  justifyItems,
3224
3316
  ...style
3225
3317
  });
3226
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { style: styles, className: classes, ...rest });
3318
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { style: styles, className: classes, ...rest });
3227
3319
  };
3228
3320
  Grid.displayName = "Grid";
3229
3321
  }
3230
3322
  });
3231
3323
 
3232
3324
  // src/components/Grid/Item.tsx
3233
- var import_react25, import_dedupe27, import_jsx_runtime32, getBreakpointMap, DEFAULT_SPAN, GridItem;
3325
+ var import_react26, import_dedupe28, import_jsx_runtime34, getBreakpointMap, DEFAULT_SPAN, GridItem;
3234
3326
  var init_Item2 = __esm({
3235
3327
  "src/components/Grid/Item.tsx"() {
3236
3328
  "use strict";
3237
3329
  "use client";
3238
- import_react25 = require("react");
3239
- import_dedupe27 = __toESM(require("classnames/dedupe"));
3330
+ import_react26 = require("react");
3331
+ import_dedupe28 = __toESM(require("classnames/dedupe"));
3240
3332
  init_hooks();
3241
- import_jsx_runtime32 = require("react/jsx-runtime");
3333
+ import_jsx_runtime34 = require("react/jsx-runtime");
3242
3334
  getBreakpointMap = (config) => Object.entries(config).reduce(
3243
3335
  (prev, [key, value]) => {
3244
3336
  const previous = Object.values(prev);
@@ -3273,9 +3365,9 @@ var init_Item2 = __esm({
3273
3365
  xl,
3274
3366
  xxl
3275
3367
  });
3276
- const [responsiveSpan, setResponsiveSpan] = (0, import_react25.useState)();
3277
- const classes = (0, import_dedupe27.default)("mobius-grid__item", className);
3278
- (0, import_react25.useEffect)(() => {
3368
+ const [responsiveSpan, setResponsiveSpan] = (0, import_react26.useState)();
3369
+ const classes = (0, import_dedupe28.default)("mobius-grid__item", className);
3370
+ (0, import_react26.useEffect)(() => {
3279
3371
  setResponsiveSpan(breakpointMap[breakpointSize]);
3280
3372
  }, [breakpointSize, breakpointMap]);
3281
3373
  const styles = {
@@ -3283,7 +3375,7 @@ var init_Item2 = __esm({
3283
3375
  alignSelf,
3284
3376
  justifySelf
3285
3377
  };
3286
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { style: { ...styles }, className: classes, ...rest });
3378
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { style: { ...styles }, className: classes, ...rest });
3287
3379
  };
3288
3380
  GridItem.displayName = "GridItem";
3289
3381
  }
@@ -3304,20 +3396,20 @@ var init_Grid2 = __esm({
3304
3396
  });
3305
3397
 
3306
3398
  // src/components/Image/Image.tsx
3307
- var import_dedupe28, import_jsx_runtime33, Image;
3399
+ var import_dedupe29, import_jsx_runtime35, Image;
3308
3400
  var init_Image = __esm({
3309
3401
  "src/components/Image/Image.tsx"() {
3310
3402
  "use strict";
3311
- import_dedupe28 = __toESM(require("classnames/dedupe"));
3312
- import_jsx_runtime33 = require("react/jsx-runtime");
3403
+ import_dedupe29 = __toESM(require("classnames/dedupe"));
3404
+ import_jsx_runtime35 = require("react/jsx-runtime");
3313
3405
  Image = ({
3314
3406
  ref,
3315
3407
  alt,
3316
3408
  elementType: Component = "img",
3317
3409
  ...otherProps
3318
3410
  }) => {
3319
- const classes = (0, import_dedupe28.default)("mobius", "mobius-image", otherProps.className);
3320
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Component, { alt, ref, ...otherProps, className: classes });
3411
+ const classes = (0, import_dedupe29.default)("mobius", "mobius-image", otherProps.className);
3412
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Component, { alt, ref, ...otherProps, className: classes });
3321
3413
  };
3322
3414
  Image.displayName = "Image";
3323
3415
  }
@@ -3332,13 +3424,13 @@ var init_Image2 = __esm({
3332
3424
  });
3333
3425
 
3334
3426
  // src/components/Link/Link.tsx
3335
- var import_dedupe29, import_Link, import_jsx_runtime34, Link;
3427
+ var import_dedupe30, import_Link, import_jsx_runtime36, Link;
3336
3428
  var init_Link = __esm({
3337
3429
  "src/components/Link/Link.tsx"() {
3338
3430
  "use strict";
3339
- import_dedupe29 = __toESM(require("classnames/dedupe"));
3431
+ import_dedupe30 = __toESM(require("classnames/dedupe"));
3340
3432
  import_Link = require("@simplybusiness/mobius/src/components/Link/Link.css");
3341
- import_jsx_runtime34 = require("react/jsx-runtime");
3433
+ import_jsx_runtime36 = require("react/jsx-runtime");
3342
3434
  Link = ({ ref, ...props }) => {
3343
3435
  const {
3344
3436
  isDisabled = false,
@@ -3352,7 +3444,7 @@ var init_Link = __esm({
3352
3444
  pointerEvents: "none"
3353
3445
  };
3354
3446
  const styles = { ...style, ...isDisabled && disabledStyles };
3355
- const classes = (0, import_dedupe29.default)(
3447
+ const classes = (0, import_dedupe30.default)(
3356
3448
  "mobius",
3357
3449
  "mobius-link",
3358
3450
  className,
@@ -3361,7 +3453,7 @@ var init_Link = __esm({
3361
3453
  "--is-disabled": isDisabled
3362
3454
  }
3363
3455
  );
3364
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3456
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3365
3457
  Component,
3366
3458
  {
3367
3459
  ref,
@@ -3386,12 +3478,12 @@ var init_Link2 = __esm({
3386
3478
  });
3387
3479
 
3388
3480
  // src/components/LinkButton/LinkButton.tsx
3389
- var import_dedupe30, import_jsx_runtime35;
3481
+ var import_dedupe31, import_jsx_runtime37;
3390
3482
  var init_LinkButton = __esm({
3391
3483
  "src/components/LinkButton/LinkButton.tsx"() {
3392
3484
  "use strict";
3393
- import_dedupe30 = __toESM(require("classnames/dedupe"));
3394
- import_jsx_runtime35 = require("react/jsx-runtime");
3485
+ import_dedupe31 = __toESM(require("classnames/dedupe"));
3486
+ import_jsx_runtime37 = require("react/jsx-runtime");
3395
3487
  }
3396
3488
  });
3397
3489
 
@@ -3404,14 +3496,14 @@ var init_LinkButton2 = __esm({
3404
3496
  });
3405
3497
 
3406
3498
  // src/components/List/List.tsx
3407
- var import_react26, import_dedupe31, import_List, import_jsx_runtime36, List;
3499
+ var import_react27, import_dedupe32, import_List, import_jsx_runtime38, List;
3408
3500
  var init_List = __esm({
3409
3501
  "src/components/List/List.tsx"() {
3410
3502
  "use strict";
3411
- import_react26 = require("react");
3412
- import_dedupe31 = __toESM(require("classnames/dedupe"));
3503
+ import_react27 = require("react");
3504
+ import_dedupe32 = __toESM(require("classnames/dedupe"));
3413
3505
  import_List = require("@simplybusiness/mobius/src/components/List/List.css");
3414
- import_jsx_runtime36 = require("react/jsx-runtime");
3506
+ import_jsx_runtime38 = require("react/jsx-runtime");
3415
3507
  List = ({ ref, ...props }) => {
3416
3508
  const Component = props.isOrdered ? "ol" : "ul";
3417
3509
  const { children, icon, ...otherProps } = props;
@@ -3420,7 +3512,7 @@ var init_List = __esm({
3420
3512
  ...restProps,
3421
3513
  reversed: isReversed
3422
3514
  };
3423
- const classes = (0, import_dedupe31.default)(
3515
+ const classes = (0, import_dedupe32.default)(
3424
3516
  "mobius",
3425
3517
  "mobius-list",
3426
3518
  {
@@ -3429,9 +3521,9 @@ var init_List = __esm({
3429
3521
  },
3430
3522
  otherProps.className
3431
3523
  );
3432
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Component, { ref, ...mappedProps, className: classes, children: import_react26.Children.map(children, (child) => {
3433
- if ((0, import_react26.isValidElement)(child)) {
3434
- return (0, import_react26.cloneElement)(child, {
3524
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Component, { ref, ...mappedProps, className: classes, children: import_react27.Children.map(children, (child) => {
3525
+ if ((0, import_react27.isValidElement)(child)) {
3526
+ return (0, import_react27.cloneElement)(child, {
3435
3527
  parentIcon: icon
3436
3528
  });
3437
3529
  }
@@ -3443,16 +3535,16 @@ var init_List = __esm({
3443
3535
  });
3444
3536
 
3445
3537
  // src/components/List/ListItem.tsx
3446
- var import_dedupe32, import_jsx_runtime37, ListItem;
3538
+ var import_dedupe33, import_jsx_runtime39, ListItem;
3447
3539
  var init_ListItem = __esm({
3448
3540
  "src/components/List/ListItem.tsx"() {
3449
3541
  "use strict";
3450
- import_dedupe32 = __toESM(require("classnames/dedupe"));
3451
- import_jsx_runtime37 = require("react/jsx-runtime");
3542
+ import_dedupe33 = __toESM(require("classnames/dedupe"));
3543
+ import_jsx_runtime39 = require("react/jsx-runtime");
3452
3544
  ListItem = ({ ref, ...props }) => {
3453
3545
  const { parentIcon, icon, children, ...otherProps } = props;
3454
3546
  const iconContent = icon || parentIcon;
3455
- const classes = (0, import_dedupe32.default)(
3547
+ const classes = (0, import_dedupe33.default)(
3456
3548
  "mobius",
3457
3549
  "mobius-list__item",
3458
3550
  {
@@ -3460,15 +3552,15 @@ var init_ListItem = __esm({
3460
3552
  },
3461
3553
  props.className
3462
3554
  );
3463
- const contentClasses = (0, import_dedupe32.default)("mobius", "mobius-list__item-content");
3464
- const iconClasses = (0, import_dedupe32.default)("mobius", "mobius-list__icon");
3555
+ const contentClasses = (0, import_dedupe33.default)("mobius", "mobius-list__item-content");
3556
+ const iconClasses = (0, import_dedupe33.default)("mobius", "mobius-list__icon");
3465
3557
  if (iconContent) {
3466
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("li", { ref, ...otherProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: contentClasses, children: [
3467
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: iconClasses, children: iconContent }),
3558
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("li", { ref, ...otherProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: contentClasses, children: [
3559
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: iconClasses, children: iconContent }),
3468
3560
  children
3469
3561
  ] }) });
3470
3562
  }
3471
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("li", { ref, ...otherProps, className: classes, children });
3563
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("li", { ref, ...otherProps, className: classes, children });
3472
3564
  };
3473
3565
  ListItem.displayName = "ListItem";
3474
3566
  }
@@ -3484,23 +3576,23 @@ var init_List2 = __esm({
3484
3576
  });
3485
3577
 
3486
3578
  // src/components/LoadingIndicator/LoadingIndicator.tsx
3487
- var import_dedupe33, import_icons7, import_LoadingIndicator, import_jsx_runtime38, LoadingIndicator;
3579
+ var import_dedupe34, import_icons7, import_LoadingIndicator, import_jsx_runtime40, LoadingIndicator;
3488
3580
  var init_LoadingIndicator = __esm({
3489
3581
  "src/components/LoadingIndicator/LoadingIndicator.tsx"() {
3490
3582
  "use strict";
3491
- import_dedupe33 = __toESM(require("classnames/dedupe"));
3583
+ import_dedupe34 = __toESM(require("classnames/dedupe"));
3492
3584
  import_icons7 = require("@simplybusiness/icons");
3493
3585
  init_Icon2();
3494
3586
  import_LoadingIndicator = require("@simplybusiness/mobius/src/components/LoadingIndicator/LoadingIndicator.css");
3495
- import_jsx_runtime38 = require("react/jsx-runtime");
3587
+ import_jsx_runtime40 = require("react/jsx-runtime");
3496
3588
  LoadingIndicator = ({ ref, ...props }) => {
3497
3589
  const { icon = import_icons7.loading, ...otherProps } = props;
3498
- const classes = (0, import_dedupe33.default)(
3590
+ const classes = (0, import_dedupe34.default)(
3499
3591
  "mobius",
3500
3592
  "mobius-loading-indicator",
3501
3593
  otherProps.className
3502
3594
  );
3503
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon, { icon, spin: true, ref, ...otherProps, className: classes });
3595
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon, { icon, spin: true, ref, ...otherProps, className: classes });
3504
3596
  };
3505
3597
  LoadingIndicator.displayName = "LoadingIndicator";
3506
3598
  }
@@ -3515,16 +3607,16 @@ var init_LoadingIndicator2 = __esm({
3515
3607
  });
3516
3608
 
3517
3609
  // src/components/Logo/Logo.tsx
3518
- var import_dedupe34, import_jsx_runtime39, Logo;
3610
+ var import_dedupe35, import_jsx_runtime41, Logo;
3519
3611
  var init_Logo = __esm({
3520
3612
  "src/components/Logo/Logo.tsx"() {
3521
3613
  "use strict";
3522
- import_dedupe34 = __toESM(require("classnames/dedupe"));
3523
- import_jsx_runtime39 = require("react/jsx-runtime");
3614
+ import_dedupe35 = __toESM(require("classnames/dedupe"));
3615
+ import_jsx_runtime41 = require("react/jsx-runtime");
3524
3616
  Logo = ({ ref, ...props }) => {
3525
3617
  const { className, width, height, ...otherProps } = props;
3526
- const classes = (0, import_dedupe34.default)("mobius", "mobius-logo", className);
3527
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3618
+ const classes = (0, import_dedupe35.default)("mobius", "mobius-logo", className);
3619
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
3528
3620
  "svg",
3529
3621
  {
3530
3622
  width,
@@ -3534,7 +3626,7 @@ var init_Logo = __esm({
3534
3626
  viewBox: "0 0 144 37",
3535
3627
  ...otherProps,
3536
3628
  children: [
3537
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3629
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
3538
3630
  "linearGradient",
3539
3631
  {
3540
3632
  id: "logo-gradient",
@@ -3543,27 +3635,27 @@ var init_Logo = __esm({
3543
3635
  y1: "76.042%",
3544
3636
  y2: "26.973%",
3545
3637
  children: [
3546
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("stop", { stopColor: "#4632D8", offset: "0%" }),
3547
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("stop", { stopColor: "#9084E8", offset: "100%" })
3638
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("stop", { stopColor: "#4632D8", offset: "0%" }),
3639
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("stop", { stopColor: "#9084E8", offset: "100%" })
3548
3640
  ]
3549
3641
  }
3550
3642
  ) }),
3551
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("g", { children: [
3552
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3643
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("g", { children: [
3644
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3553
3645
  "path",
3554
3646
  {
3555
3647
  fill: "#0E0A2B",
3556
3648
  d: "M68.788 11.307c0-2.486-2.027-3.345-3.833-4.1-1.332-.562-2.471-1.036-2.471-2.072 0-.873.77-1.42 1.968-1.42 1.051 0 1.806.444 2.294.725.193.103.474.222.755.133.192-.06.34-.207.459-.444l.34-.621c.266-.474.163-.888-.281-1.2-.533-.384-1.88-1.05-3.537-1.05-2.738 0-4.647 1.643-4.647 4.01 0 2.413 2.012 3.301 3.788 4.07 1.347.593 2.516 1.096 2.516 2.161 0 .873-.754 1.45-1.924 1.45-1.287 0-2.22-.65-2.678-.961l-.03-.015c-.533-.296-.903-.237-1.228.192l-.415.607c-.444.607-.148.992.134 1.228.828.637 2.427 1.392 4.203 1.392 2.708 0 4.587-1.673 4.587-4.085zm4.44 2.975V6.186c0-.577-.31-.888-.873-.888h-.843c-.563 0-.874.311-.874.888v8.096c0 .577.296.888.874.888h.843c.563 0 .873-.311.873-.888zM71.482 4.203h.755c.518 0 .814-.281.814-.8v-.517c0-.518-.296-.814-.814-.814h-.755c-.518 0-.8.281-.8.814v.518c.016.518.297.8.8.8zM92.645 24.48h.755c.518 0 .814-.282.814-.8v-.518c0-.518-.296-.814-.814-.814h-.755c-.518 0-.799.282-.799.814v.518c0 .518.281.8.8.8zm-6.26-19.42c-1.539 0-2.397.962-2.945 1.895-.444-1.243-1.435-1.895-2.871-1.895-1.362 0-2.146.888-2.723 1.806v-.68c0-.578-.311-.889-.873-.889h-.74c-.563 0-.873.311-.873.888v8.096c0 .577.295.888.873.888h.843c.577 0 .873-.311.873-.888V10.73c0-2.25.888-3.271 2.058-3.271 1.006 0 1.198.71 1.198 1.85v4.987c0 .578.311.888.888.888h.844c.577 0 .873-.31.873-.888v-3.551c0-2.25.873-3.271 2.013-3.271 1.036 0 1.243.74 1.243 1.85v4.987c0 .577.31.888.888.888h.814c.577 0 .888-.31.888-.888V8.835c0-2.5-1.095-3.774-3.27-3.774zm10.804 10.33c2.679 0 4.558-2.13 4.558-5.164 0-3.094-1.776-5.166-4.425-5.166-1.761 0-2.708 1.036-3.049 1.51v-.533c0-.459-.34-.755-.873-.755h-.607c-.562 0-.888.326-.888.888v11.9c0 .576.311.887.888.887h.814c.578 0 .888-.31.888-.888v-3.404c0-.207-.014-.4-.014-.532.325.429 1.184 1.258 2.708 1.258zm-2.768-5.105c0-1.362.622-2.975 2.368-2.975 1.377 0 2.309 1.184 2.309 2.945 0 1.746-.947 2.916-2.338 2.916-1.54 0-2.339-1.45-2.339-2.886zm12.965 4.07v-.652c0-.444-.252-.725-.681-.784-.34-.03-.68-.192-.68-1.066v-9.47c0-.563-.326-.888-.874-.888h-.843c-.563 0-.874.31-.874.888v9.679c0 1.258.34 2.16 1.021 2.678.637.489 1.466.533 2.013.533.607 0 .918-.325.918-.917zm9.457-9.073h-.962c-.518 0-.844.237-.977.726l-1.717 4.972c-.089.311-.192.71-.251.977-.074-.281-.193-.71-.296-1.021l-1.835-4.943c-.163-.489-.489-.71-.977-.71h-1.036c-.415 0-.622.162-.71.295-.09.134-.163.385.014.755l3.685 8.57-.34.813c-.252.592-.77 1.229-1.45 1.229-.267 0-.474-.09-.652-.163h-.014c-.43-.104-.755.074-.962.488l-.163.415c-.119.251-.148.517-.06.725.075.192.237.34.474.429.326.118.814.296 1.391.296 1.628 0 2.975-.977 3.597-2.605l3.996-10.226c.103-.296.088-.563-.045-.755-.163-.163-.4-.267-.71-.267zM67.634 28.297c.977-.592 1.54-1.658 1.54-2.886 0-2.176-1.688-3.567-4.293-3.567h-4.04c-.562 0-.873.311-.873.888v11.899c0 .577.296.888.873.888h4.1c1.346 0 2.5-.34 3.33-.962.932-.71 1.42-1.761 1.42-3.049.03-1.524-.784-2.767-2.057-3.211zm-5.017-.962v-3.212h2.25c1.02 0 1.628.592 1.628 1.584 0 .991-.607 1.643-1.57 1.643h-2.308v-.015zm4.396 4.01c0 1.155-.71 1.865-1.865 1.865h-2.53v-3.714h2.53c1.14.014 1.865.74 1.865 1.85zm12.638-5.712h-.814c-.577 0-.888.31-.888.888v3.655c0 2.176-1.361 3.182-2.634 3.182-1.006 0-1.406-.547-1.406-1.88v-4.942c0-.578-.31-.888-.888-.888h-.814c-.562 0-.888.325-.888.888v5.431c0 2.516 1.17 3.774 3.463 3.774a3.937 3.937 0 003.286-1.761v.651c0 .577.296.888.873.888h.74c.577 0 .888-.31.888-.888v-8.095c-.03-.578-.355-.903-.918-.903zm6.956 3.937c-.917-.311-1.702-.592-1.702-1.184 0-.74.77-.859 1.229-.859.784 0 1.406.281 1.805.474.548.237.947.118 1.184-.34l.193-.341c.251-.518.133-.947-.326-1.184-.326-.178-1.288-.71-2.753-.71-2.279 0-3.803 1.213-3.803 3.004 0 2.042 1.731 2.65 3.137 3.138.903.325 1.687.592 1.687 1.169 0 .547-.488.902-1.258.902-.917 0-1.613-.37-2.057-.621l-.059-.03c-.533-.28-.903-.207-1.213.222l-.222.34c-.178.252-.237.504-.178.726.044.207.192.37.4.488a5.774 5.774 0 003.285 1.007c2.235 0 3.789-1.273 3.789-3.079-.03-2.042-1.761-2.649-3.138-3.122zm6.897-3.937h-.844c-.562 0-.873.31-.873.888v8.095c0 .577.296.888.873.888h.844c.577 0 .873-.31.873-.888v-8.095c0-.563-.31-.888-.873-.888zm9.324-.237c-1.924 0-2.93 1.154-3.36 1.806v-.681c0-.577-.31-.888-.873-.888h-.74c-.563 0-.873.31-.873.888v8.095c0 .577.296.888.873.888h.843c.578 0 .874-.31.874-.888v-3.744c0-1.79 1.14-3.078 2.708-3.078 1.021 0 1.436.547 1.436 1.88v4.942c0 .577.31.888.887.888h.814c.578 0 .888-.31.888-.888v-5.431c0-2.516-1.169-3.789-3.477-3.789zm10.448 0c-2.96 0-5.032 2.131-5.032 5.165 0 2.99 2.235 5.165 5.313 5.165 1.48 0 2.635-.533 3.345-.977.444-.266.562-.695.296-1.198l-.222-.385c-.266-.459-.651-.563-1.184-.31h-.015a3.885 3.885 0 01-2.042.606c-1.54 0-2.634-.962-2.812-2.472h5.816a.935.935 0 00.933-.917c.014-2.827-1.717-4.677-4.396-4.677zm-.044 2.013c1.065 0 1.79.77 1.864 1.968h-4.1c.253-1.213 1.096-1.968 2.236-1.968zm10.152 2.16c-.917-.31-1.702-.591-1.702-1.183 0-.74.77-.859 1.229-.859.784 0 1.406.281 1.805.474.548.237.947.118 1.184-.34l.192-.341c.252-.518.134-.947-.325-1.184-.326-.178-1.288-.71-2.753-.71-2.279 0-3.803 1.213-3.803 3.004 0 2.042 1.731 2.65 3.137 3.138.903.325 1.687.592 1.687 1.169 0 .547-.488.902-1.258.902-.917 0-1.613-.37-2.057-.621l-.059-.03c-.533-.28-.903-.207-1.214.222l-.222.34c-.177.252-.236.504-.177.726.044.207.192.37.4.488a5.774 5.774 0 003.285 1.007c2.235 0 3.789-1.273 3.789-3.079-.015-2.042-1.747-2.649-3.138-3.122zm8.791 0c-.917-.31-1.702-.591-1.702-1.183 0-.74.77-.859 1.229-.859.784 0 1.406.281 1.805.474.548.237.947.118 1.184-.34l.192-.341c.252-.518.134-.947-.325-1.184-.326-.178-1.288-.71-2.753-.71-2.279 0-3.803 1.213-3.803 3.004 0 2.042 1.731 2.65 3.137 3.138.903.325 1.687.592 1.687 1.169 0 .547-.488.902-1.258.902-.917 0-1.613-.37-2.057-.621l-.059-.03c-.533-.28-.903-.207-1.214.222l-.222.34c-.177.252-.236.504-.177.726.044.207.192.37.4.488a5.774 5.774 0 003.285 1.007c2.235 0 3.789-1.273 3.789-3.079-.015-2.042-1.747-2.649-3.138-3.122z"
3557
3649
  }
3558
3650
  ),
3559
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3651
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3560
3652
  "path",
3561
3653
  {
3562
3654
  fill: "url(#logo-gradient)",
3563
3655
  d: "M22.747 22.288c.607 1.214.918 2.59.918 4.144 0 1.45-.267 2.827-.8 4.1a10.018 10.018 0 01-2.279 3.36c-.991.961-2.235 1.73-3.744 2.278-1.51.563-3.167.829-4.988.829-2.264 0-4.35-.385-6.29-1.14-1.938-.77-3.492-1.598-4.676-2.5-.31-.252-.548-.504-.696-.77a1.332 1.332 0 01-.177-.71.718.718 0 010-.252c.03-.37.207-.785.547-1.199l1.14-1.598c.4-.548.829-.844 1.288-.918a.896.896 0 01.222-.03c.4 0 .873.163 1.39.474 2.487 1.776 4.914 2.679 7.252 2.679 1.643 0 2.96-.385 3.922-1.14.962-.755 1.45-1.746 1.45-2.96 0-.725-.192-1.39-.562-1.983a5.347 5.347 0 00-1.539-1.569 18.207 18.207 0 00-2.235-1.287 56.102 56.102 0 00-2.649-1.214c-.917-.4-1.835-.814-2.752-1.258a19.282 19.282 0 01-2.62-1.539 14.014 14.014 0 01-2.22-1.924c-.666-.695-1.169-1.539-1.554-2.545-.37-.992-.562-2.087-.562-3.271 0-2.042.533-3.863 1.598-5.446 1.066-1.584 2.516-2.797 4.336-3.641C8.303.414 10.345 0 12.624 0c1.91 0 3.685.281 5.358.844 1.657.562 2.96 1.198 3.892 1.88.68.473 1.006 1.035 1.006 1.671 0 .385-.118.785-.37 1.2l-.917 1.657c-.385.74-.903 1.11-1.554 1.11-.4 0-.83-.133-1.318-.4a42.421 42.421 0 00-1.687-.947c-.473-.237-1.14-.488-1.998-.71a9.458 9.458 0 00-2.56-.356c-1.672 0-3.004.37-3.981 1.11-.992.74-1.48 1.717-1.48 2.946 0 .902.31 1.701.932 2.412.622.695 1.421 1.302 2.398 1.79.977.489 2.057.977 3.256 1.466a54.048 54.048 0 013.552 1.628 20.795 20.795 0 013.24 2.042c.948.755 1.732 1.732 2.354 2.945zm31.257 2.945c0 3.197-1.155 6.083-3.256 8.14-2.265 2.205-5.506 3.36-9.368 3.36H30.71c-2.443 0-4.278-1.836-4.278-4.278V4.53c0-1.2.43-2.28 1.214-3.064C28.43.681 29.51.252 30.709.252h9.013c3.419 0 6.32 1.095 8.377 3.182 1.909 1.923 2.945 4.558 2.945 7.429 0 2.294-.622 4.203-1.91 5.816 1.377.77 2.487 1.776 3.286 2.99 1.066 1.583 1.584 3.448 1.584 5.564zm-12.106-7.68c.044-.03 4.913-3.02 4.913-6.675 0-1.761-.607-3.345-1.717-4.455-1.568-1.584-3.788-1.924-5.372-1.924H30.68v28h10.7c2.738 0 4.958-.754 6.408-2.16 1.273-1.243 1.983-3.049 1.983-5.106 0-1.272-.296-2.353-.858-3.196v-.03c-1.362-2.353-6.838-3.774-6.897-3.789l-.844-.222.726-.444z"
3564
3656
  }
3565
3657
  ),
3566
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3658
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3567
3659
  "path",
3568
3660
  {
3569
3661
  fill: "#0E0A2B",
@@ -3588,23 +3680,23 @@ var init_Logo2 = __esm({
3588
3680
  });
3589
3681
 
3590
3682
  // src/components/Modal/Content.tsx
3591
- var import_jsx_runtime40, Content2;
3683
+ var import_jsx_runtime42, Content2;
3592
3684
  var init_Content2 = __esm({
3593
3685
  "src/components/Modal/Content.tsx"() {
3594
3686
  "use strict";
3595
- import_jsx_runtime40 = require("react/jsx-runtime");
3596
- Content2 = ({ ref, children, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { ref, ...otherProps, className: "mobius-modal__content", children });
3687
+ import_jsx_runtime42 = require("react/jsx-runtime");
3688
+ Content2 = ({ ref, children, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { ref, ...otherProps, className: "mobius-modal__content", children });
3597
3689
  Content2.displayName = "Content";
3598
3690
  }
3599
3691
  });
3600
3692
 
3601
3693
  // src/components/Modal/ModalContext.tsx
3602
- var import_react27, ModalContext;
3694
+ var import_react28, ModalContext;
3603
3695
  var init_ModalContext = __esm({
3604
3696
  "src/components/Modal/ModalContext.tsx"() {
3605
3697
  "use strict";
3606
- import_react27 = require("react");
3607
- ModalContext = (0, import_react27.createContext)({
3698
+ import_react28 = require("react");
3699
+ ModalContext = (0, import_react28.createContext)({
3608
3700
  onClose: () => {
3609
3701
  },
3610
3702
  closeLabel: void 0
@@ -3613,21 +3705,21 @@ var init_ModalContext = __esm({
3613
3705
  });
3614
3706
 
3615
3707
  // src/components/Modal/useModal.ts
3616
- var import_react28, useModal;
3708
+ var import_react29, useModal;
3617
3709
  var init_useModal = __esm({
3618
3710
  "src/components/Modal/useModal.ts"() {
3619
3711
  "use strict";
3620
- import_react28 = require("react");
3712
+ import_react29 = require("react");
3621
3713
  init_ModalContext();
3622
3714
  useModal = () => {
3623
- const { onClose, closeLabel } = (0, import_react28.useContext)(ModalContext);
3715
+ const { onClose, closeLabel } = (0, import_react29.useContext)(ModalContext);
3624
3716
  return { onClose, closeLabel };
3625
3717
  };
3626
3718
  }
3627
3719
  });
3628
3720
 
3629
3721
  // src/components/Modal/Header.tsx
3630
- var import_icons8, import_jsx_runtime41, Header2;
3722
+ var import_icons8, import_jsx_runtime43, Header2;
3631
3723
  var init_Header2 = __esm({
3632
3724
  "src/components/Modal/Header.tsx"() {
3633
3725
  "use strict";
@@ -3635,12 +3727,12 @@ var init_Header2 = __esm({
3635
3727
  init_Button2();
3636
3728
  init_Icon2();
3637
3729
  init_useModal();
3638
- import_jsx_runtime41 = require("react/jsx-runtime");
3730
+ import_jsx_runtime43 = require("react/jsx-runtime");
3639
3731
  Header2 = ({ ref, children, ...otherProps }) => {
3640
3732
  const { onClose, closeLabel } = useModal();
3641
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("header", { ref, ...otherProps, className: "mobius-modal__header", children: [
3733
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("header", { ref, ...otherProps, className: "mobius-modal__header", children: [
3642
3734
  children,
3643
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
3735
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
3644
3736
  Button,
3645
3737
  {
3646
3738
  "aria-label": "Close",
@@ -3648,7 +3740,7 @@ var init_Header2 = __esm({
3648
3740
  onPress: onClose,
3649
3741
  className: "mobius-modal__close",
3650
3742
  children: [
3651
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon, { icon: import_icons8.cross }),
3743
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon, { icon: import_icons8.cross }),
3652
3744
  " ",
3653
3745
  closeLabel
3654
3746
  ]
@@ -3661,19 +3753,19 @@ var init_Header2 = __esm({
3661
3753
  });
3662
3754
 
3663
3755
  // src/components/Modal/Modal.tsx
3664
- var import_dedupe35, import_react29, import_Modal, import_jsx_runtime42, TRANSITION_CSS_VARIABLE2, Modal;
3756
+ var import_dedupe36, import_react30, import_Modal, import_jsx_runtime44, TRANSITION_CSS_VARIABLE2, Modal;
3665
3757
  var init_Modal = __esm({
3666
3758
  "src/components/Modal/Modal.tsx"() {
3667
3759
  "use strict";
3668
3760
  "use client";
3669
- import_dedupe35 = __toESM(require("classnames/dedupe"));
3670
- import_react29 = require("react");
3761
+ import_dedupe36 = __toESM(require("classnames/dedupe"));
3762
+ import_react30 = require("react");
3671
3763
  init_hooks();
3672
3764
  init_utils();
3673
3765
  init_polyfill_tests();
3674
3766
  init_ModalContext();
3675
3767
  import_Modal = require("@simplybusiness/mobius/src/components/Modal/Modal.css");
3676
- import_jsx_runtime42 = require("react/jsx-runtime");
3768
+ import_jsx_runtime44 = require("react/jsx-runtime");
3677
3769
  TRANSITION_CSS_VARIABLE2 = "--modal-transition-duration";
3678
3770
  Modal = ({ ref, ...props }) => {
3679
3771
  const {
@@ -3687,11 +3779,11 @@ var init_Modal = __esm({
3687
3779
  animation,
3688
3780
  ...rest
3689
3781
  } = props;
3690
- const [shouldTransition, setShouldTransition] = (0, import_react29.useState)(false);
3691
- (0, import_react29.useEffect)(() => {
3782
+ const [shouldTransition, setShouldTransition] = (0, import_react30.useState)(false);
3783
+ (0, import_react30.useEffect)(() => {
3692
3784
  setShouldTransition(supportsDialog());
3693
3785
  }, []);
3694
- const dialogRef = (0, import_react29.useRef)(null);
3786
+ const dialogRef = (0, import_react30.useRef)(null);
3695
3787
  const { close } = useDialog({
3696
3788
  ref: dialogRef,
3697
3789
  isOpen,
@@ -3702,7 +3794,7 @@ var init_Modal = __esm({
3702
3794
  CSSVariable: TRANSITION_CSS_VARIABLE2
3703
3795
  }
3704
3796
  });
3705
- const modalClasses = (0, import_dedupe35.default)(
3797
+ const modalClasses = (0, import_dedupe36.default)(
3706
3798
  "mobius",
3707
3799
  "mobius-modal",
3708
3800
  {
@@ -3715,21 +3807,21 @@ var init_Modal = __esm({
3715
3807
  },
3716
3808
  className
3717
3809
  );
3718
- const contextValue = (0, import_react29.useMemo)(
3810
+ const contextValue = (0, import_react30.useMemo)(
3719
3811
  () => ({
3720
3812
  onClose: close,
3721
3813
  closeLabel
3722
3814
  }),
3723
3815
  [close, closeLabel]
3724
3816
  );
3725
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3817
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3726
3818
  "dialog",
3727
3819
  {
3728
3820
  ref: mergeRefs([dialogRef, ref]),
3729
3821
  onCancel: close,
3730
3822
  className: modalClasses,
3731
3823
  ...rest,
3732
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ModalContext.Provider, { value: contextValue, children })
3824
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ModalContext.Provider, { value: contextValue, children })
3733
3825
  }
3734
3826
  );
3735
3827
  };
@@ -3754,16 +3846,16 @@ var init_Modal2 = __esm({
3754
3846
  });
3755
3847
 
3756
3848
  // src/components/NumberField/NumberField.tsx
3757
- var import_dedupe36, import_react30, import_NumberField, import_jsx_runtime43, NumberField;
3849
+ var import_dedupe37, import_react31, import_NumberField, import_jsx_runtime45, NumberField;
3758
3850
  var init_NumberField = __esm({
3759
3851
  "src/components/NumberField/NumberField.tsx"() {
3760
3852
  "use strict";
3761
3853
  "use client";
3762
- import_dedupe36 = __toESM(require("classnames/dedupe"));
3763
- import_react30 = require("react");
3854
+ import_dedupe37 = __toESM(require("classnames/dedupe"));
3855
+ import_react31 = require("react");
3764
3856
  init_TextField2();
3765
3857
  import_NumberField = require("@simplybusiness/mobius/src/components/NumberField/NumberField.css");
3766
- import_jsx_runtime43 = require("react/jsx-runtime");
3858
+ import_jsx_runtime45 = require("react/jsx-runtime");
3767
3859
  NumberField = ({ ref, ...props }) => {
3768
3860
  const {
3769
3861
  minValue,
@@ -3779,15 +3871,15 @@ var init_NumberField = __esm({
3779
3871
  onBlur: customOnBlur,
3780
3872
  ...rest
3781
3873
  } = otherProps;
3782
- const focusedInputRef = (0, import_react30.useRef)(null);
3783
- const wheelHandler = (0, import_react30.useCallback)((ev) => ev.preventDefault(), []);
3784
- (0, import_react30.useEffect)(() => {
3874
+ const focusedInputRef = (0, import_react31.useRef)(null);
3875
+ const wheelHandler = (0, import_react31.useCallback)((ev) => ev.preventDefault(), []);
3876
+ (0, import_react31.useEffect)(() => {
3785
3877
  return () => {
3786
3878
  focusedInputRef.current?.removeEventListener("wheel", wheelHandler);
3787
3879
  focusedInputRef.current = null;
3788
3880
  };
3789
3881
  }, [wheelHandler]);
3790
- const containerClasses = (0, import_dedupe36.default)("mobius-number-field", className, {
3882
+ const containerClasses = (0, import_dedupe37.default)("mobius-number-field", className, {
3791
3883
  "--hide-spin-buttons": hideSpinButtons
3792
3884
  });
3793
3885
  const handleBeforeInput = (event) => {
@@ -3831,7 +3923,7 @@ var init_NumberField = __esm({
3831
3923
  },
3832
3924
  onBlur: (e) => handleBlur(e)
3833
3925
  };
3834
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3926
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
3835
3927
  TextField,
3836
3928
  {
3837
3929
  ...forwardedProps,
@@ -3859,18 +3951,18 @@ var init_NumberField2 = __esm({
3859
3951
  });
3860
3952
 
3861
3953
  // src/components/Option/Option.tsx
3862
- var import_jsx_runtime44, Option2;
3954
+ var import_jsx_runtime46, Option2;
3863
3955
  var init_Option2 = __esm({
3864
3956
  "src/components/Option/Option.tsx"() {
3865
3957
  "use strict";
3866
- import_jsx_runtime44 = require("react/jsx-runtime");
3958
+ import_jsx_runtime46 = require("react/jsx-runtime");
3867
3959
  Option2 = ({ ref, ...props }) => {
3868
3960
  const { isDisabled, ...rest } = props;
3869
3961
  const mappedProps = {
3870
3962
  ...rest,
3871
3963
  disabled: isDisabled
3872
3964
  };
3873
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("option", { ...mappedProps, ref });
3965
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("option", { ...mappedProps, ref });
3874
3966
  };
3875
3967
  Option2.displayName = "Option";
3876
3968
  }
@@ -3885,17 +3977,17 @@ var init_Option3 = __esm({
3885
3977
  });
3886
3978
 
3887
3979
  // src/components/PasswordField/ShowHideButton.tsx
3888
- var import_icons9, import_jsx_runtime45, ShowHideButton;
3980
+ var import_icons9, import_jsx_runtime47, ShowHideButton;
3889
3981
  var init_ShowHideButton = __esm({
3890
3982
  "src/components/PasswordField/ShowHideButton.tsx"() {
3891
3983
  "use strict";
3892
3984
  import_icons9 = require("@simplybusiness/icons");
3893
3985
  init_src();
3894
- import_jsx_runtime45 = require("react/jsx-runtime");
3986
+ import_jsx_runtime47 = require("react/jsx-runtime");
3895
3987
  ShowHideButton = ({
3896
3988
  show = false,
3897
3989
  onClick
3898
- }) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
3990
+ }) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3899
3991
  "button",
3900
3992
  {
3901
3993
  className: "mobius-password-field__show-button",
@@ -3906,35 +3998,35 @@ var init_ShowHideButton = __esm({
3906
3998
  },
3907
3999
  "aria-label": `${show ? "Hide" : "Show"} password`,
3908
4000
  "data-testid": "show-hide-button",
3909
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon, { icon: show ? import_icons9.eyeSlash : import_icons9.eye, "aria-hidden": "true" })
4001
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icon, { icon: show ? import_icons9.eyeSlash : import_icons9.eye, "aria-hidden": "true" })
3910
4002
  }
3911
4003
  );
3912
4004
  }
3913
4005
  });
3914
4006
 
3915
4007
  // src/components/PasswordField/PasswordField.tsx
3916
- var import_dedupe37, import_react31, import_PasswordField, import_jsx_runtime46, PasswordField;
4008
+ var import_dedupe38, import_react32, import_PasswordField, import_jsx_runtime48, PasswordField;
3917
4009
  var init_PasswordField = __esm({
3918
4010
  "src/components/PasswordField/PasswordField.tsx"() {
3919
4011
  "use strict";
3920
4012
  "use client";
3921
- import_dedupe37 = __toESM(require("classnames/dedupe"));
3922
- import_react31 = require("react");
4013
+ import_dedupe38 = __toESM(require("classnames/dedupe"));
4014
+ import_react32 = require("react");
3923
4015
  init_mergeRefs();
3924
4016
  init_TextField2();
3925
4017
  init_ShowHideButton();
3926
4018
  import_PasswordField = require("@simplybusiness/mobius/src/components/PasswordField/PasswordField.css");
3927
- import_jsx_runtime46 = require("react/jsx-runtime");
4019
+ import_jsx_runtime48 = require("react/jsx-runtime");
3928
4020
  PasswordField = ({
3929
4021
  ref,
3930
4022
  className,
3931
4023
  autoComplete = "current-password",
3932
4024
  ...props
3933
4025
  }) => {
3934
- const [show, setShow] = (0, import_react31.useState)(false);
4026
+ const [show, setShow] = (0, import_react32.useState)(false);
3935
4027
  const type = show ? "text" : "password";
3936
- const classes = (0, import_dedupe37.default)("mobius-password-field", className);
3937
- const localRef = (0, import_react31.useRef)(null);
4028
+ const classes = (0, import_dedupe38.default)("mobius-password-field", className);
4029
+ const localRef = (0, import_react32.useRef)(null);
3938
4030
  const handleShowHideButtonClick = () => {
3939
4031
  const selectionStart = localRef.current?.selectionStart;
3940
4032
  const selectionEnd = localRef.current?.selectionEnd;
@@ -3946,7 +4038,7 @@ var init_PasswordField = __esm({
3946
4038
  }
3947
4039
  });
3948
4040
  };
3949
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4041
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
3950
4042
  TextField,
3951
4043
  {
3952
4044
  ref: mergeRefs([localRef, ref]),
@@ -3954,7 +4046,7 @@ var init_PasswordField = __esm({
3954
4046
  ...props,
3955
4047
  autoComplete,
3956
4048
  type,
3957
- suffixInside: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ShowHideButton, { onClick: handleShowHideButtonClick, show })
4049
+ suffixInside: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ShowHideButton, { onClick: handleShowHideButtonClick, show })
3958
4050
  }
3959
4051
  );
3960
4052
  };
@@ -3971,17 +4063,17 @@ var init_PasswordField2 = __esm({
3971
4063
  });
3972
4064
 
3973
4065
  // src/components/Popover/Popover.tsx
3974
- var import_react32, import_icons10, import_dedupe38, import_react33, import_mobius_hooks6, import_Popover, import_jsx_runtime47;
4066
+ var import_react33, import_icons10, import_dedupe39, import_react34, import_mobius_hooks6, import_Popover, import_jsx_runtime49;
3975
4067
  var init_Popover = __esm({
3976
4068
  "src/components/Popover/Popover.tsx"() {
3977
4069
  "use strict";
3978
- import_react32 = require("@floating-ui/react");
4070
+ import_react33 = require("@floating-ui/react");
3979
4071
  import_icons10 = require("@simplybusiness/icons");
3980
- import_dedupe38 = __toESM(require("classnames/dedupe"));
3981
- import_react33 = require("react");
4072
+ import_dedupe39 = __toESM(require("classnames/dedupe"));
4073
+ import_react34 = require("react");
3982
4074
  import_mobius_hooks6 = require("@simplybusiness/mobius-hooks");
3983
4075
  import_Popover = require("@simplybusiness/mobius/src/components/Popover/Popover.css");
3984
- import_jsx_runtime47 = require("react/jsx-runtime");
4076
+ import_jsx_runtime49 = require("react/jsx-runtime");
3985
4077
  }
3986
4078
  });
3987
4079
 
@@ -4005,17 +4097,17 @@ function warnAboutInvalidValues(value, minValue, maxValue) {
4005
4097
  console.warn("Progress value is greater than maxValue");
4006
4098
  }
4007
4099
  }
4008
- var import_dedupe39, import_react34, import_Progress, import_jsx_runtime48, sanitizedValue, getLabelComponent, DEFAULT_VALUE, DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, Progress;
4100
+ var import_dedupe40, import_react35, import_Progress, import_jsx_runtime50, sanitizedValue, getLabelComponent, DEFAULT_VALUE, DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, Progress;
4009
4101
  var init_Progress = __esm({
4010
4102
  "src/components/Progress/Progress.tsx"() {
4011
4103
  "use strict";
4012
4104
  "use client";
4013
- import_dedupe39 = __toESM(require("classnames/dedupe"));
4014
- import_react34 = require("react");
4105
+ import_dedupe40 = __toESM(require("classnames/dedupe"));
4106
+ import_react35 = require("react");
4015
4107
  init_Label2();
4016
4108
  init_VisuallyHidden2();
4017
4109
  import_Progress = require("@simplybusiness/mobius/src/components/Progress/Progress.css");
4018
- import_jsx_runtime48 = require("react/jsx-runtime");
4110
+ import_jsx_runtime50 = require("react/jsx-runtime");
4019
4111
  sanitizedValue = (value, defaultValue) => {
4020
4112
  if (value === void 0 || Number.isNaN(value)) {
4021
4113
  return defaultValue;
@@ -4024,7 +4116,7 @@ var init_Progress = __esm({
4024
4116
  };
4025
4117
  getLabelComponent = (label, progressLabelId, showLabel) => {
4026
4118
  if (showLabel) {
4027
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4119
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4028
4120
  Label,
4029
4121
  {
4030
4122
  id: progressLabelId,
@@ -4034,7 +4126,7 @@ var init_Progress = __esm({
4034
4126
  }
4035
4127
  );
4036
4128
  }
4037
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4129
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4038
4130
  Label,
4039
4131
  {
4040
4132
  id: progressLabelId,
@@ -4048,8 +4140,8 @@ var init_Progress = __esm({
4048
4140
  DEFAULT_MIN_VALUE = 0;
4049
4141
  DEFAULT_MAX_VALUE = 100;
4050
4142
  Progress = ({ ref, ...props }) => {
4051
- const progressId = (0, import_react34.useId)();
4052
- const progressLabelId = (0, import_react34.useId)();
4143
+ const progressId = (0, import_react35.useId)();
4144
+ const progressLabelId = (0, import_react35.useId)();
4053
4145
  const {
4054
4146
  id,
4055
4147
  label,
@@ -4074,7 +4166,7 @@ var init_Progress = __esm({
4074
4166
  100
4075
4167
  );
4076
4168
  const barWidth = `${percentage}%`;
4077
- const classes = (0, import_dedupe39.default)("mobius", "mobius-progress", className, {
4169
+ const classes = (0, import_dedupe40.default)("mobius", "mobius-progress", className, {
4078
4170
  "--is-primary": variant === "primary",
4079
4171
  "--is-secondary": variant === "secondary"
4080
4172
  });
@@ -4084,7 +4176,7 @@ var init_Progress = __esm({
4084
4176
  progressBarProps["aria-valuenow"] = value.toString();
4085
4177
  progressBarProps["aria-valuetext"] = valueFormatter instanceof Function ? valueFormatter(value, minValue, maxValue) : barWidth;
4086
4178
  const labelComponent = getLabelComponent(label, progressLabelId, showLabel);
4087
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
4179
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
4088
4180
  "div",
4089
4181
  {
4090
4182
  id: id || progressId,
@@ -4095,8 +4187,8 @@ var init_Progress = __esm({
4095
4187
  "aria-labelledby": progressLabelId,
4096
4188
  children: [
4097
4189
  labelComponent,
4098
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "mobius-progress__track", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "mobius-progress__bar", style: { width: barWidth } }) }),
4099
- showValueLabel && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Label, { "data-testid": "value-label", elementType: "span", children: progressBarProps["aria-valuetext"] })
4190
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "mobius-progress__track", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "mobius-progress__bar", style: { width: barWidth } }) }),
4191
+ showValueLabel && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Label, { "data-testid": "value-label", elementType: "span", children: progressBarProps["aria-valuetext"] })
4100
4192
  ]
4101
4193
  }
4102
4194
  );
@@ -4114,17 +4206,17 @@ var init_Progress2 = __esm({
4114
4206
  });
4115
4207
 
4116
4208
  // src/components/Radio/Radio.tsx
4117
- var import_dedupe40, import_react35, import_Radio, import_jsx_runtime49, Radio;
4209
+ var import_dedupe41, import_react36, import_Radio, import_jsx_runtime51, Radio;
4118
4210
  var init_Radio = __esm({
4119
4211
  "src/components/Radio/Radio.tsx"() {
4120
4212
  "use strict";
4121
4213
  "use client";
4122
- import_dedupe40 = __toESM(require("classnames/dedupe"));
4123
- import_react35 = require("react");
4214
+ import_dedupe41 = __toESM(require("classnames/dedupe"));
4215
+ import_react36 = require("react");
4124
4216
  init_ErrorMessage2();
4125
4217
  init_Label2();
4126
4218
  import_Radio = require("@simplybusiness/mobius/src/components/Radio/Radio.css");
4127
- import_jsx_runtime49 = require("react/jsx-runtime");
4219
+ import_jsx_runtime51 = require("react/jsx-runtime");
4128
4220
  Radio = ({ ref, ...props }) => {
4129
4221
  const {
4130
4222
  children,
@@ -4148,19 +4240,19 @@ var init_Radio = __esm({
4148
4240
  const isMultiline = label && children;
4149
4241
  const isControlled = selected !== void 0;
4150
4242
  const isChecked = isControlled ? selected === value : defaultChecked;
4151
- const contentRef = (0, import_react35.useRef)(null);
4152
- const prevOverflowRef = (0, import_react35.useRef)({
4243
+ const contentRef = (0, import_react36.useRef)(null);
4244
+ const prevOverflowRef = (0, import_react36.useRef)({
4153
4245
  vertical: false,
4154
4246
  horizontal: false
4155
4247
  });
4156
- const hasIconFirst = (0, import_react35.useMemo)(() => {
4157
- if (!children || import_react35.Children.count(children) === 0) return false;
4158
- const firstChild = import_react35.Children.toArray(children)[0];
4159
- if (!(0, import_react35.isValidElement)(firstChild)) return false;
4248
+ const hasIconFirst = (0, import_react36.useMemo)(() => {
4249
+ if (!children || import_react36.Children.count(children) === 0) return false;
4250
+ const firstChild = import_react36.Children.toArray(children)[0];
4251
+ if (!(0, import_react36.isValidElement)(firstChild)) return false;
4160
4252
  const props2 = firstChild.props;
4161
4253
  return "icon" in props2 && props2.icon !== void 0;
4162
4254
  }, [children]);
4163
- (0, import_react35.useLayoutEffect)(() => {
4255
+ (0, import_react36.useLayoutEffect)(() => {
4164
4256
  if (!contentRef.current || !onOverflow) return;
4165
4257
  if (orientation === "vertical") {
4166
4258
  return;
@@ -4189,13 +4281,13 @@ var init_Radio = __esm({
4189
4281
  "--is-multiline": !!isMultiline,
4190
4282
  "--is-required": isRequired
4191
4283
  };
4192
- const containerClasses = (0, import_dedupe40.default)(
4284
+ const containerClasses = (0, import_dedupe41.default)(
4193
4285
  "mobius-radio__label",
4194
4286
  radioClasses,
4195
4287
  className,
4196
4288
  { "--has-icon-first": hasIconFirst }
4197
4289
  );
4198
- const inputClasses = (0, import_dedupe40.default)("mobius-radio__input", radioClasses);
4290
+ const inputClasses = (0, import_dedupe41.default)("mobius-radio__input", radioClasses);
4199
4291
  const { "aria-describedby": _ariaDescribedBy, ...rest } = otherProps;
4200
4292
  const handleChange = (event) => {
4201
4293
  if (setSelected) {
@@ -4209,9 +4301,9 @@ var init_Radio = __esm({
4209
4301
  onChange(adaptedEvent);
4210
4302
  }
4211
4303
  };
4212
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
4213
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Label, { className: containerClasses, children: [
4214
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4304
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
4305
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Label, { className: containerClasses, children: [
4306
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4215
4307
  "input",
4216
4308
  {
4217
4309
  "aria-describedby": otherProps["aria-describedby"],
@@ -4228,12 +4320,12 @@ var init_Radio = __esm({
4228
4320
  ...rest
4229
4321
  }
4230
4322
  ),
4231
- isMultiline ? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { ref: contentRef, className: "mobius-radio__content--multiline", children: [
4232
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "mobius-radio__content-first-line", children: label }),
4233
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "mobius-radio__extra-content", children })
4234
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { ref: contentRef, className: "mobius-radio__content", children: label || children })
4323
+ isMultiline ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { ref: contentRef, className: "mobius-radio__content--multiline", children: [
4324
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "mobius-radio__content-first-line", children: label }),
4325
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "mobius-radio__extra-content", children })
4326
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { ref: contentRef, className: "mobius-radio__content", children: label || children })
4235
4327
  ] }),
4236
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ErrorMessage, { errorMessage })
4328
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ErrorMessage, { errorMessage })
4237
4329
  ] });
4238
4330
  };
4239
4331
  Radio.displayName = "Radio";
@@ -4241,19 +4333,19 @@ var init_Radio = __esm({
4241
4333
  });
4242
4334
 
4243
4335
  // src/components/Radio/RadioGroup.tsx
4244
- var import_dedupe41, import_react36, import_jsx_runtime50, getDefaultVal, RadioGroup;
4336
+ var import_dedupe42, import_react37, import_jsx_runtime52, getDefaultVal, RadioGroup;
4245
4337
  var init_RadioGroup = __esm({
4246
4338
  "src/components/Radio/RadioGroup.tsx"() {
4247
4339
  "use strict";
4248
4340
  "use client";
4249
- import_dedupe41 = __toESM(require("classnames/dedupe"));
4250
- import_react36 = require("react");
4341
+ import_dedupe42 = __toESM(require("classnames/dedupe"));
4342
+ import_react37 = require("react");
4251
4343
  init_hooks();
4252
4344
  init_spaceDelimitedList();
4253
4345
  init_ErrorMessage2();
4254
4346
  init_Label2();
4255
4347
  init_Stack2();
4256
- import_jsx_runtime50 = require("react/jsx-runtime");
4348
+ import_jsx_runtime52 = require("react/jsx-runtime");
4257
4349
  getDefaultVal = (children, defaultValue) => {
4258
4350
  if (Array.isArray(children) && defaultValue) {
4259
4351
  const option = children?.find((item) => item.props.value === defaultValue);
@@ -4281,15 +4373,15 @@ var init_RadioGroup = __esm({
4281
4373
  ...rest
4282
4374
  } = props;
4283
4375
  const defaultSelected = getDefaultVal(children, value || defaultValue);
4284
- const [selected, setSelected] = (0, import_react36.useState)(defaultSelected);
4285
- const overflowsRef = (0, import_react36.useRef)({});
4286
- const [hasOverflow, setHasOverflow] = (0, import_react36.useState)(false);
4287
- (0, import_react36.useEffect)(() => {
4376
+ const [selected, setSelected] = (0, import_react37.useState)(defaultSelected);
4377
+ const overflowsRef = (0, import_react37.useRef)({});
4378
+ const [hasOverflow, setHasOverflow] = (0, import_react37.useState)(false);
4379
+ (0, import_react37.useEffect)(() => {
4288
4380
  if (value !== void 0) {
4289
4381
  setSelected(value);
4290
4382
  }
4291
4383
  }, [value]);
4292
- const handleOverflow = (0, import_react36.useCallback)(
4384
+ const handleOverflow = (0, import_react37.useCallback)(
4293
4385
  (radioValue, overflow) => {
4294
4386
  overflowsRef.current = {
4295
4387
  ...overflowsRef.current,
@@ -4313,26 +4405,26 @@ var init_RadioGroup = __esm({
4313
4405
  [`--is-${effectiveOrientation}`]: true,
4314
4406
  [className || ""]: true
4315
4407
  };
4316
- const radioGroupClasses = (0, import_dedupe41.default)(
4408
+ const radioGroupClasses = (0, import_dedupe42.default)(
4317
4409
  "mobius",
4318
4410
  "mobius-radio-group",
4319
4411
  radioClasses,
4320
4412
  validationClasses
4321
4413
  );
4322
- const radioWrapperClasses = (0, import_dedupe41.default)("mobius-radio__wrapper", {
4414
+ const radioWrapperClasses = (0, import_dedupe42.default)("mobius-radio__wrapper", {
4323
4415
  [`--is-${effectiveOrientation}`]: true
4324
4416
  });
4325
- const labelClasses = (0, import_dedupe41.default)(radioClasses, validationClasses);
4326
- const errorMessageId = (0, import_react36.useId)();
4327
- const defaultNameAttrId = (0, import_react36.useId)();
4417
+ const labelClasses = (0, import_dedupe42.default)(radioClasses, validationClasses);
4418
+ const errorMessageId = (0, import_react37.useId)();
4419
+ const defaultNameAttrId = (0, import_react37.useId)();
4328
4420
  const nameAttribute = name || defaultNameAttrId;
4329
4421
  const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
4330
4422
  const describedBy = spaceDelimitedList([
4331
4423
  shouldErrorMessageShow,
4332
4424
  props["aria-describedby"]
4333
4425
  ]);
4334
- const labelId = (0, import_react36.useId)();
4335
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4426
+ const labelId = (0, import_react37.useId)();
4427
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4336
4428
  "div",
4337
4429
  {
4338
4430
  ...rest,
@@ -4348,12 +4440,12 @@ var init_RadioGroup = __esm({
4348
4440
  ref,
4349
4441
  className: radioGroupClasses,
4350
4442
  role: "radiogroup",
4351
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Stack, { gap: "xs", children: [
4352
- label && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Label, { htmlFor: name, id: labelId, className: labelClasses, children: label }),
4353
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: radioWrapperClasses, children: import_react36.Children.map(children, (child) => {
4354
- if ((0, import_react36.isValidElement)(child)) {
4443
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Stack, { gap: "xs", children: [
4444
+ label && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Label, { htmlFor: name, id: labelId, className: labelClasses, children: label }),
4445
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: radioWrapperClasses, children: import_react37.Children.map(children, (child) => {
4446
+ if ((0, import_react37.isValidElement)(child)) {
4355
4447
  const childValue = child.props.value;
4356
- return (0, import_react36.cloneElement)(
4448
+ return (0, import_react37.cloneElement)(
4357
4449
  child,
4358
4450
  {
4359
4451
  orientation: effectiveOrientation,
@@ -4371,7 +4463,7 @@ var init_RadioGroup = __esm({
4371
4463
  }
4372
4464
  return child;
4373
4465
  }) }),
4374
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
4466
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
4375
4467
  ] })
4376
4468
  }
4377
4469
  );
@@ -4390,47 +4482,47 @@ var init_Radio2 = __esm({
4390
4482
  });
4391
4483
 
4392
4484
  // src/components/Segment/SegmentGroup.tsx
4393
- var import_dedupe42, import_jsx_runtime51, SegmentGroup;
4485
+ var import_dedupe43, import_jsx_runtime53, SegmentGroup;
4394
4486
  var init_SegmentGroup = __esm({
4395
4487
  "src/components/Segment/SegmentGroup.tsx"() {
4396
4488
  "use strict";
4397
- import_dedupe42 = __toESM(require("classnames/dedupe"));
4398
- import_jsx_runtime51 = require("react/jsx-runtime");
4489
+ import_dedupe43 = __toESM(require("classnames/dedupe"));
4490
+ import_jsx_runtime53 = require("react/jsx-runtime");
4399
4491
  SegmentGroup = (props) => {
4400
4492
  const { children, horizontal, gap, className, ...rest } = props;
4401
4493
  const gapClass = gap ? `gap-${gap}` : "";
4402
- const classes = (0, import_dedupe42.default)(
4494
+ const classes = (0, import_dedupe43.default)(
4403
4495
  "mobius",
4404
4496
  "mobius-segment-group",
4405
4497
  className,
4406
4498
  { "--is-horizontal": horizontal },
4407
4499
  gapClass
4408
4500
  );
4409
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: classes, ...rest, children });
4501
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: classes, ...rest, children });
4410
4502
  };
4411
4503
  SegmentGroup.displayName = "SegmentGroup";
4412
4504
  }
4413
4505
  });
4414
4506
 
4415
4507
  // src/components/Segment/Segment.tsx
4416
- var import_dedupe43, import_Segment, import_jsx_runtime52, Segment;
4508
+ var import_dedupe44, import_Segment, import_jsx_runtime54, Segment;
4417
4509
  var init_Segment = __esm({
4418
4510
  "src/components/Segment/Segment.tsx"() {
4419
4511
  "use strict";
4420
- import_dedupe43 = __toESM(require("classnames/dedupe"));
4512
+ import_dedupe44 = __toESM(require("classnames/dedupe"));
4421
4513
  import_Segment = require("@simplybusiness/mobius/src/components/Segment/Segment.css");
4422
- import_jsx_runtime52 = require("react/jsx-runtime");
4514
+ import_jsx_runtime54 = require("react/jsx-runtime");
4423
4515
  Segment = (props) => {
4424
4516
  const { heading, children, colour, inverted, className, ...rest } = props;
4425
- const classes = (0, import_dedupe43.default)(
4517
+ const classes = (0, import_dedupe44.default)(
4426
4518
  "mobius",
4427
4519
  "mobius-segment",
4428
4520
  colour,
4429
4521
  { inverted },
4430
4522
  className
4431
4523
  );
4432
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: classes, ...rest, children: [
4433
- heading && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "mobius-segment__heading", children: heading }),
4524
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: classes, ...rest, children: [
4525
+ heading && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "mobius-segment__heading", children: heading }),
4434
4526
  children
4435
4527
  ] });
4436
4528
  };
@@ -4448,14 +4540,14 @@ var init_Segment2 = __esm({
4448
4540
  });
4449
4541
 
4450
4542
  // src/components/Select/Select.tsx
4451
- var import_icons11, import_dedupe44, import_react37, import_Select, import_jsx_runtime53, Select;
4543
+ var import_icons11, import_dedupe45, import_react38, import_Select, import_jsx_runtime55, Select;
4452
4544
  var init_Select = __esm({
4453
4545
  "src/components/Select/Select.tsx"() {
4454
4546
  "use strict";
4455
4547
  "use client";
4456
4548
  import_icons11 = require("@simplybusiness/icons");
4457
- import_dedupe44 = __toESM(require("classnames/dedupe"));
4458
- import_react37 = require("react");
4549
+ import_dedupe45 = __toESM(require("classnames/dedupe"));
4550
+ import_react38 = require("react");
4459
4551
  init_hooks();
4460
4552
  init_useLabel2();
4461
4553
  init_spaceDelimitedList();
@@ -4464,7 +4556,7 @@ var init_Select = __esm({
4464
4556
  init_Label2();
4465
4557
  init_Stack2();
4466
4558
  import_Select = require("@simplybusiness/mobius/src/components/Select/Select.css");
4467
- import_jsx_runtime53 = require("react/jsx-runtime");
4559
+ import_jsx_runtime55 = require("react/jsx-runtime");
4468
4560
  Select = ({ ref, ...props }) => {
4469
4561
  const {
4470
4562
  label,
@@ -4485,24 +4577,24 @@ var init_Select = __esm({
4485
4577
  "--is-required": typeof isRequired === "boolean" && isRequired,
4486
4578
  "--is-optional": typeof isRequired === "boolean" && !isRequired
4487
4579
  };
4488
- const sharedClasses = (0, import_dedupe44.default)(validationClasses, stateClasses);
4489
- const wrapperClasses = (0, import_dedupe44.default)(
4580
+ const sharedClasses = (0, import_dedupe45.default)(validationClasses, stateClasses);
4581
+ const wrapperClasses = (0, import_dedupe45.default)(
4490
4582
  "mobius-select__wrapper",
4491
4583
  sharedClasses,
4492
4584
  otherProps.className
4493
4585
  );
4494
- const selectClasses = (0, import_dedupe44.default)(
4586
+ const selectClasses = (0, import_dedupe45.default)(
4495
4587
  "mobius-select",
4496
4588
  sharedClasses,
4497
4589
  otherProps.className
4498
4590
  );
4499
- const labelClasses = (0, import_dedupe44.default)(
4591
+ const labelClasses = (0, import_dedupe45.default)(
4500
4592
  "mobius-label",
4501
4593
  sharedClasses,
4502
4594
  otherProps.className
4503
4595
  );
4504
- const iconClasses = (0, import_dedupe44.default)("mobius-select__icon", sharedClasses);
4505
- const errorMessageId = (0, import_react37.useId)();
4596
+ const iconClasses = (0, import_dedupe45.default)("mobius-select__icon", sharedClasses);
4597
+ const errorMessageId = (0, import_react38.useId)();
4506
4598
  const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
4507
4599
  const describedBy = spaceDelimitedList([
4508
4600
  shouldErrorMessageShow,
@@ -4513,10 +4605,10 @@ var init_Select = __esm({
4513
4605
  onChange(e);
4514
4606
  }
4515
4607
  };
4516
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Stack, { className: "mobius mobius-select__outer", gap: "xs", children: [
4517
- label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label, { ...labelProps, className: labelClasses, children: label }),
4518
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: wrapperClasses, children: [
4519
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
4608
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Stack, { className: "mobius mobius-select__outer", gap: "xs", children: [
4609
+ label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Label, { ...labelProps, className: labelClasses, children: label }),
4610
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: wrapperClasses, children: [
4611
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
4520
4612
  "select",
4521
4613
  {
4522
4614
  ...otherProps,
@@ -4532,9 +4624,9 @@ var init_Select = __esm({
4532
4624
  onChange: handleChange
4533
4625
  }
4534
4626
  ),
4535
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: iconClasses, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { icon: import_icons11.chevronDown }) })
4627
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: iconClasses, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { icon: import_icons11.chevronDown }) })
4536
4628
  ] }),
4537
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
4629
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
4538
4630
  ] });
4539
4631
  };
4540
4632
  Select.displayName = "Select";
@@ -4550,15 +4642,15 @@ var init_Select2 = __esm({
4550
4642
  });
4551
4643
 
4552
4644
  // src/components/Slider/Slider.tsx
4553
- var import_dedupe45, import_react38, import_Slider, import_jsx_runtime54;
4645
+ var import_dedupe46, import_react39, import_Slider, import_jsx_runtime56;
4554
4646
  var init_Slider = __esm({
4555
4647
  "src/components/Slider/Slider.tsx"() {
4556
4648
  "use strict";
4557
4649
  "use client";
4558
- import_dedupe45 = __toESM(require("classnames/dedupe"));
4559
- import_react38 = require("react");
4650
+ import_dedupe46 = __toESM(require("classnames/dedupe"));
4651
+ import_react39 = require("react");
4560
4652
  import_Slider = require("@simplybusiness/mobius/src/components/Slider/Slider.css");
4561
- import_jsx_runtime54 = require("react/jsx-runtime");
4653
+ import_jsx_runtime56 = require("react/jsx-runtime");
4562
4654
  }
4563
4655
  });
4564
4656
 
@@ -4571,19 +4663,19 @@ var init_Slider2 = __esm({
4571
4663
  });
4572
4664
 
4573
4665
  // src/components/SVG/SVG.tsx
4574
- var import_react39, import_dedupe46, import_jsx_runtime55, SVG;
4666
+ var import_react40, import_dedupe47, import_jsx_runtime57, SVG;
4575
4667
  var init_SVG = __esm({
4576
4668
  "src/components/SVG/SVG.tsx"() {
4577
4669
  "use strict";
4578
- import_react39 = require("react");
4579
- import_dedupe46 = __toESM(require("classnames/dedupe"));
4580
- import_jsx_runtime55 = require("react/jsx-runtime");
4670
+ import_react40 = require("react");
4671
+ import_dedupe47 = __toESM(require("classnames/dedupe"));
4672
+ import_jsx_runtime57 = require("react/jsx-runtime");
4581
4673
  SVG = ({ ref, ...props }) => {
4582
4674
  const { children, className, ...otherProps } = props;
4583
- const classes = (0, import_dedupe46.default)("mobius", "mobius-svg", className);
4584
- const svgNode = import_react39.Children.only(children);
4675
+ const classes = (0, import_dedupe47.default)("mobius", "mobius-svg", className);
4676
+ const svgNode = import_react40.Children.only(children);
4585
4677
  const { children: svgChildren, viewBox, xmlns } = svgNode.props;
4586
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
4678
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4587
4679
  "svg",
4588
4680
  {
4589
4681
  viewBox,
@@ -4608,16 +4700,16 @@ var init_SVG2 = __esm({
4608
4700
  });
4609
4701
 
4610
4702
  // src/components/Switch/Switch.tsx
4611
- var import_react40, import_dedupe47, import_Switch, import_jsx_runtime56, Switch;
4703
+ var import_react41, import_dedupe48, import_Switch, import_jsx_runtime58, Switch;
4612
4704
  var init_Switch = __esm({
4613
4705
  "src/components/Switch/Switch.tsx"() {
4614
4706
  "use strict";
4615
4707
  "use client";
4616
- import_react40 = require("react");
4617
- import_dedupe47 = __toESM(require("classnames/dedupe"));
4708
+ import_react41 = require("react");
4709
+ import_dedupe48 = __toESM(require("classnames/dedupe"));
4618
4710
  init_VisuallyHidden2();
4619
4711
  import_Switch = require("@simplybusiness/mobius/src/components/Switch/Switch.css");
4620
- import_jsx_runtime56 = require("react/jsx-runtime");
4712
+ import_jsx_runtime58 = require("react/jsx-runtime");
4621
4713
  Switch = ({ ref, ...props }) => {
4622
4714
  const {
4623
4715
  checked = false,
@@ -4626,11 +4718,11 @@ var init_Switch = __esm({
4626
4718
  isDisabled = false,
4627
4719
  ...otherProps
4628
4720
  } = props;
4629
- const [enabled, setEnabled] = (0, import_react40.useState)(checked);
4630
- (0, import_react40.useEffect)(() => {
4721
+ const [enabled, setEnabled] = (0, import_react41.useState)(checked);
4722
+ (0, import_react41.useEffect)(() => {
4631
4723
  setEnabled(checked);
4632
4724
  }, [checked]);
4633
- const classes = (0, import_dedupe47.default)(
4725
+ const classes = (0, import_dedupe48.default)(
4634
4726
  "mobius",
4635
4727
  "mobius-switch",
4636
4728
  {
@@ -4645,9 +4737,9 @@ var init_Switch = __esm({
4645
4737
  onChange(event);
4646
4738
  }
4647
4739
  };
4648
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("label", { ref, className: classes, children: [
4649
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { children: enabled ? "On" : "Off" }) }),
4650
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
4740
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("label", { ref, className: classes, children: [
4741
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { children: enabled ? "On" : "Off" }) }),
4742
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
4651
4743
  "input",
4652
4744
  {
4653
4745
  type: "checkbox",
@@ -4658,7 +4750,7 @@ var init_Switch = __esm({
4658
4750
  ...otherProps
4659
4751
  }
4660
4752
  ),
4661
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "mobius-switch__slider" })
4753
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "mobius-switch__slider" })
4662
4754
  ] });
4663
4755
  };
4664
4756
  Switch.displayName = "Switch";
@@ -4674,114 +4766,114 @@ var init_Switch2 = __esm({
4674
4766
  });
4675
4767
 
4676
4768
  // src/components/Table/Table.tsx
4677
- var import_dedupe48, import_Table, import_jsx_runtime57, Table;
4769
+ var import_dedupe49, import_Table, import_jsx_runtime59, Table;
4678
4770
  var init_Table = __esm({
4679
4771
  "src/components/Table/Table.tsx"() {
4680
4772
  "use strict";
4681
- import_dedupe48 = __toESM(require("classnames/dedupe"));
4773
+ import_dedupe49 = __toESM(require("classnames/dedupe"));
4682
4774
  import_Table = require("@simplybusiness/mobius/src/components/Table/Table.css");
4683
- import_jsx_runtime57 = require("react/jsx-runtime");
4775
+ import_jsx_runtime59 = require("react/jsx-runtime");
4684
4776
  Table = ({ ref, ...props }) => {
4685
- const classes = (0, import_dedupe48.default)("mobius", "mobius-table", props.className);
4686
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("table", { ref, ...props, className: classes });
4777
+ const classes = (0, import_dedupe49.default)("mobius", "mobius-table", props.className);
4778
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("table", { ref, ...props, className: classes });
4687
4779
  };
4688
4780
  Table.displayName = "Table";
4689
4781
  }
4690
4782
  });
4691
4783
 
4692
4784
  // src/components/Table/Head.tsx
4693
- var import_dedupe49, import_jsx_runtime58, Head;
4785
+ var import_dedupe50, import_jsx_runtime60, Head;
4694
4786
  var init_Head = __esm({
4695
4787
  "src/components/Table/Head.tsx"() {
4696
4788
  "use strict";
4697
- import_dedupe49 = __toESM(require("classnames/dedupe"));
4698
- import_jsx_runtime58 = require("react/jsx-runtime");
4789
+ import_dedupe50 = __toESM(require("classnames/dedupe"));
4790
+ import_jsx_runtime60 = require("react/jsx-runtime");
4699
4791
  Head = ({ ref, ...props }) => {
4700
- const classes = (0, import_dedupe49.default)("mobius", "mobius-table__head", props.className);
4701
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("thead", { ref, ...props, className: classes });
4792
+ const classes = (0, import_dedupe50.default)("mobius", "mobius-table__head", props.className);
4793
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("thead", { ref, ...props, className: classes });
4702
4794
  };
4703
4795
  Head.displayName = "Table.Head";
4704
4796
  }
4705
4797
  });
4706
4798
 
4707
4799
  // src/components/Table/Body.tsx
4708
- var import_dedupe50, import_jsx_runtime59, Body;
4800
+ var import_dedupe51, import_jsx_runtime61, Body;
4709
4801
  var init_Body = __esm({
4710
4802
  "src/components/Table/Body.tsx"() {
4711
4803
  "use strict";
4712
- import_dedupe50 = __toESM(require("classnames/dedupe"));
4713
- import_jsx_runtime59 = require("react/jsx-runtime");
4804
+ import_dedupe51 = __toESM(require("classnames/dedupe"));
4805
+ import_jsx_runtime61 = require("react/jsx-runtime");
4714
4806
  Body = ({ ref, ...props }) => {
4715
- const classes = (0, import_dedupe50.default)("mobius", "mobius-table__body", props.className);
4716
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("tbody", { ref, ...props, className: classes });
4807
+ const classes = (0, import_dedupe51.default)("mobius", "mobius-table__body", props.className);
4808
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("tbody", { ref, ...props, className: classes });
4717
4809
  };
4718
4810
  Body.displayName = "Table.Body";
4719
4811
  }
4720
4812
  });
4721
4813
 
4722
4814
  // src/components/Table/Foot.tsx
4723
- var import_dedupe51, import_jsx_runtime60, Foot;
4815
+ var import_dedupe52, import_jsx_runtime62, Foot;
4724
4816
  var init_Foot = __esm({
4725
4817
  "src/components/Table/Foot.tsx"() {
4726
4818
  "use strict";
4727
- import_dedupe51 = __toESM(require("classnames/dedupe"));
4728
- import_jsx_runtime60 = require("react/jsx-runtime");
4819
+ import_dedupe52 = __toESM(require("classnames/dedupe"));
4820
+ import_jsx_runtime62 = require("react/jsx-runtime");
4729
4821
  Foot = ({ ref, ...props }) => {
4730
- const classes = (0, import_dedupe51.default)("mobius", "mobius-table__foot", props.className);
4731
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("tfoot", { ref, ...props, className: classes });
4822
+ const classes = (0, import_dedupe52.default)("mobius", "mobius-table__foot", props.className);
4823
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("tfoot", { ref, ...props, className: classes });
4732
4824
  };
4733
4825
  Foot.displayName = "Table.Foot";
4734
4826
  }
4735
4827
  });
4736
4828
 
4737
4829
  // src/components/Table/Row.tsx
4738
- var import_dedupe52, import_jsx_runtime61, Row;
4830
+ var import_dedupe53, import_jsx_runtime63, Row;
4739
4831
  var init_Row = __esm({
4740
4832
  "src/components/Table/Row.tsx"() {
4741
4833
  "use strict";
4742
- import_dedupe52 = __toESM(require("classnames/dedupe"));
4743
- import_jsx_runtime61 = require("react/jsx-runtime");
4834
+ import_dedupe53 = __toESM(require("classnames/dedupe"));
4835
+ import_jsx_runtime63 = require("react/jsx-runtime");
4744
4836
  Row = ({ ref, ...props }) => {
4745
- const classes = (0, import_dedupe52.default)("mobius", "mobius-table__row", props.className);
4746
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("tr", { ref, ...props, className: classes });
4837
+ const classes = (0, import_dedupe53.default)("mobius", "mobius-table__row", props.className);
4838
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("tr", { ref, ...props, className: classes });
4747
4839
  };
4748
4840
  Row.displayName = "Table.Row";
4749
4841
  }
4750
4842
  });
4751
4843
 
4752
4844
  // src/components/Table/HeaderCell.tsx
4753
- var import_dedupe53, import_jsx_runtime62, HeaderCell;
4845
+ var import_dedupe54, import_jsx_runtime64, HeaderCell;
4754
4846
  var init_HeaderCell = __esm({
4755
4847
  "src/components/Table/HeaderCell.tsx"() {
4756
4848
  "use strict";
4757
- import_dedupe53 = __toESM(require("classnames/dedupe"));
4758
- import_jsx_runtime62 = require("react/jsx-runtime");
4849
+ import_dedupe54 = __toESM(require("classnames/dedupe"));
4850
+ import_jsx_runtime64 = require("react/jsx-runtime");
4759
4851
  HeaderCell = ({ ref, ...props }) => {
4760
- const classes = (0, import_dedupe53.default)(
4852
+ const classes = (0, import_dedupe54.default)(
4761
4853
  "mobius",
4762
4854
  "mobius-table__head-cell",
4763
4855
  props.className
4764
4856
  );
4765
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("th", { ...props, ref, className: classes });
4857
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("th", { ...props, ref, className: classes });
4766
4858
  };
4767
4859
  HeaderCell.displayName = "Table.HeaderCell";
4768
4860
  }
4769
4861
  });
4770
4862
 
4771
4863
  // src/components/Table/Cell.tsx
4772
- var import_dedupe54, import_jsx_runtime63, Cell;
4864
+ var import_dedupe55, import_jsx_runtime65, Cell;
4773
4865
  var init_Cell = __esm({
4774
4866
  "src/components/Table/Cell.tsx"() {
4775
4867
  "use strict";
4776
- import_dedupe54 = __toESM(require("classnames/dedupe"));
4777
- import_jsx_runtime63 = require("react/jsx-runtime");
4868
+ import_dedupe55 = __toESM(require("classnames/dedupe"));
4869
+ import_jsx_runtime65 = require("react/jsx-runtime");
4778
4870
  Cell = ({ ref, ...props }) => {
4779
- const classes = (0, import_dedupe54.default)(
4871
+ const classes = (0, import_dedupe55.default)(
4780
4872
  "mobius",
4781
4873
  "mobius-table__body-cell",
4782
4874
  props.className
4783
4875
  );
4784
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("td", { ref, ...props, className: classes });
4876
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("td", { ref, ...props, className: classes });
4785
4877
  };
4786
4878
  Cell.displayName = "Table.Cell";
4787
4879
  }
@@ -4811,37 +4903,6 @@ var init_Table2 = __esm({
4811
4903
  }
4812
4904
  });
4813
4905
 
4814
- // src/components/Text/Text.tsx
4815
- var import_dedupe55, import_Text, import_jsx_runtime64, getElementType, Text;
4816
- var init_Text = __esm({
4817
- "src/components/Text/Text.tsx"() {
4818
- "use strict";
4819
- import_dedupe55 = __toESM(require("classnames/dedupe"));
4820
- import_Text = require("@simplybusiness/mobius/src/components/Text/Text.css");
4821
- import_jsx_runtime64 = require("react/jsx-runtime");
4822
- getElementType = (variant, elementType) => {
4823
- if (variant) {
4824
- return ["h1", "h2", "h3", "h4"].includes(variant) ? variant : "p";
4825
- }
4826
- return elementType || "p";
4827
- };
4828
- Text = ({ ref, elementType: Component = "p", ...props }) => {
4829
- const { variant, className, spacing, ...otherProps } = props;
4830
- const elementType = getElementType(variant, Component);
4831
- const variantType = variant || elementType;
4832
- const classes = (0, import_dedupe55.default)(
4833
- "mobius",
4834
- "mobius-text",
4835
- { [`--is-${variantType}`]: variantType },
4836
- { [`--has-line-height-${spacing}`]: spacing },
4837
- className
4838
- );
4839
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Component, { ref, ...otherProps, className: classes });
4840
- };
4841
- Text.displayName = "Text";
4842
- }
4843
- });
4844
-
4845
4906
  // src/components/Text/index.tsx
4846
4907
  var init_Text2 = __esm({
4847
4908
  "src/components/Text/index.tsx"() {
@@ -4851,12 +4912,12 @@ var init_Text2 = __esm({
4851
4912
  });
4852
4913
 
4853
4914
  // src/components/TextAreaInput/TextAreaInput.tsx
4854
- var import_dedupe56, import_jsx_runtime65, TextAreaInput;
4915
+ var import_dedupe56, import_jsx_runtime66, TextAreaInput;
4855
4916
  var init_TextAreaInput = __esm({
4856
4917
  "src/components/TextAreaInput/TextAreaInput.tsx"() {
4857
4918
  "use strict";
4858
4919
  import_dedupe56 = __toESM(require("classnames/dedupe"));
4859
- import_jsx_runtime65 = require("react/jsx-runtime");
4920
+ import_jsx_runtime66 = require("react/jsx-runtime");
4860
4921
  TextAreaInput = ({ ref, ...props }) => {
4861
4922
  const { isSelected, isDisabled, isReadOnly, isRequired, ...otherProps } = props;
4862
4923
  const classes = (0, import_dedupe56.default)(
@@ -4869,7 +4930,7 @@ var init_TextAreaInput = __esm({
4869
4930
  },
4870
4931
  otherProps.className
4871
4932
  );
4872
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4933
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4873
4934
  "textarea",
4874
4935
  {
4875
4936
  ref,
@@ -4893,7 +4954,7 @@ var init_TextAreaInput2 = __esm({
4893
4954
  });
4894
4955
 
4895
4956
  // src/components/TextArea/TextArea.tsx
4896
- var import_dedupe57, import_TextArea, import_jsx_runtime66, TextArea;
4957
+ var import_dedupe57, import_TextArea, import_jsx_runtime67, TextArea;
4897
4958
  var init_TextArea = __esm({
4898
4959
  "src/components/TextArea/TextArea.tsx"() {
4899
4960
  "use strict";
@@ -4905,7 +4966,7 @@ var init_TextArea = __esm({
4905
4966
  init_Stack2();
4906
4967
  init_TextAreaInput2();
4907
4968
  import_TextArea = require("@simplybusiness/mobius/src/components/TextArea/TextArea.css");
4908
- import_jsx_runtime66 = require("react/jsx-runtime");
4969
+ import_jsx_runtime67 = require("react/jsx-runtime");
4909
4970
  TextArea = ({ ref, ...props }) => {
4910
4971
  const {
4911
4972
  isDisabled,
@@ -4925,9 +4986,9 @@ var init_TextArea = __esm({
4925
4986
  },
4926
4987
  validationClasses
4927
4988
  );
4928
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Stack, { className: classes, gap: "xs", children: [
4929
- label && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Label, { ...labelProps, className: labelClasses, children: props.label }),
4930
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4989
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Stack, { className: classes, gap: "xs", children: [
4990
+ label && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Label, { ...labelProps, className: labelClasses, children: props.label }),
4991
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4931
4992
  TextAreaInput,
4932
4993
  {
4933
4994
  ...otherProps,
@@ -4938,7 +4999,7 @@ var init_TextArea = __esm({
4938
4999
  "aria-invalid": errorMessage != null
4939
5000
  }
4940
5001
  ),
4941
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ErrorMessage, { ...errorMessageProps, errorMessage })
5002
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ErrorMessage, { ...errorMessageProps, errorMessage })
4942
5003
  ] });
4943
5004
  };
4944
5005
  TextArea.displayName = "TextArea";
@@ -4953,53 +5014,6 @@ var init_TextArea2 = __esm({
4953
5014
  }
4954
5015
  });
4955
5016
 
4956
- // src/components/TextOrHTML/TextOrHTML.tsx
4957
- var import_react41, import_jsx_runtime67, isHTML, TextOrHTML;
4958
- var init_TextOrHTML = __esm({
4959
- "src/components/TextOrHTML/TextOrHTML.tsx"() {
4960
- "use strict";
4961
- import_react41 = require("react");
4962
- init_Text();
4963
- import_jsx_runtime67 = require("react/jsx-runtime");
4964
- isHTML = (text) => /^\s*<[a-z]/i.test(text);
4965
- TextOrHTML = ({
4966
- ref,
4967
- text,
4968
- htmlClassName,
4969
- htmlElementType,
4970
- textWrapper = false,
4971
- autoDetect = false,
4972
- ...textProps
4973
- }) => {
4974
- const textIsHTML = autoDetect && isHTML(text);
4975
- const shouldWrapInText = autoDetect ? textWrapper || !textIsHTML : textWrapper;
4976
- const resolvedElementType = htmlElementType ?? (textIsHTML ? "div" : "span");
4977
- const DangerousComponent = resolvedElementType;
4978
- const dangerousHTML = (0, import_react41.useMemo)(() => ({ __html: text }), [text]);
4979
- const dangerousElement = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4980
- DangerousComponent,
4981
- {
4982
- className: htmlClassName,
4983
- dangerouslySetInnerHTML: dangerousHTML
4984
- }
4985
- );
4986
- if (shouldWrapInText) {
4987
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Text, { ref, ...textProps, children: dangerousElement });
4988
- }
4989
- return dangerousElement;
4990
- };
4991
- TextOrHTML.displayName = "TextOrHTML";
4992
- }
4993
- });
4994
-
4995
- // src/components/TextOrHTML/index.tsx
4996
- var init_TextOrHTML2 = __esm({
4997
- "src/components/TextOrHTML/index.tsx"() {
4998
- "use strict";
4999
- init_TextOrHTML();
5000
- }
5001
- });
5002
-
5003
5017
  // src/components/Title/Title.tsx
5004
5018
  var import_dedupe58, import_Title, import_jsx_runtime68, Title;
5005
5019
  var init_Title = __esm({