@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
@@ -2156,6 +2156,10 @@ var init_AddressLookup = __esm({
2156
2156
  );
2157
2157
  const handleSelected = (selected) => {
2158
2158
  setError(null);
2159
+ const isEmpty = typeof selected === "string" ? selected === "" : !selected.id && !selected.value;
2160
+ if (isEmpty) {
2161
+ return Promise.resolve();
2162
+ }
2159
2163
  if (typeof selected === "string" || !selected.id) {
2160
2164
  setError(new Error("Selected option missing id"));
2161
2165
  return Promise.resolve();
@@ -2203,19 +2207,98 @@ var init_AddressLookup2 = __esm({
2203
2207
  }
2204
2208
  });
2205
2209
 
2210
+ // src/components/Text/Text.tsx
2211
+ var import_dedupe14, import_Text, import_jsx_runtime15, getElementType, Text;
2212
+ var init_Text = __esm({
2213
+ "src/components/Text/Text.tsx"() {
2214
+ "use strict";
2215
+ import_dedupe14 = __toESM(require("classnames/dedupe"));
2216
+ import_Text = require("@simplybusiness/mobius/src/components/Text/Text.css");
2217
+ import_jsx_runtime15 = require("react/jsx-runtime");
2218
+ getElementType = (variant, elementType) => {
2219
+ if (variant) {
2220
+ return ["h1", "h2", "h3", "h4"].includes(variant) ? variant : "p";
2221
+ }
2222
+ return elementType || "p";
2223
+ };
2224
+ Text = ({ ref, elementType: Component = "p", ...props }) => {
2225
+ const { variant, className, spacing, ...otherProps } = props;
2226
+ const elementType = getElementType(variant, Component);
2227
+ const variantType = variant || elementType;
2228
+ const classes = (0, import_dedupe14.default)(
2229
+ "mobius",
2230
+ "mobius-text",
2231
+ { [`--is-${variantType}`]: variantType },
2232
+ { [`--has-line-height-${spacing}`]: spacing },
2233
+ className
2234
+ );
2235
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Component, { ref, ...otherProps, className: classes });
2236
+ };
2237
+ Text.displayName = "Text";
2238
+ }
2239
+ });
2240
+
2241
+ // src/components/TextOrHTML/TextOrHTML.tsx
2242
+ var import_react15, import_jsx_runtime16, isHTML, TextOrHTML;
2243
+ var init_TextOrHTML = __esm({
2244
+ "src/components/TextOrHTML/TextOrHTML.tsx"() {
2245
+ "use strict";
2246
+ import_react15 = require("react");
2247
+ init_Text();
2248
+ import_jsx_runtime16 = require("react/jsx-runtime");
2249
+ isHTML = (text) => /^\s*<[a-z]/i.test(text);
2250
+ TextOrHTML = ({
2251
+ ref,
2252
+ text,
2253
+ htmlClassName,
2254
+ htmlElementType,
2255
+ textWrapper = false,
2256
+ autoDetect = false,
2257
+ ...textProps
2258
+ }) => {
2259
+ const textIsHTML = autoDetect && isHTML(text);
2260
+ const shouldWrapInText = autoDetect ? textWrapper || !textIsHTML : textWrapper;
2261
+ const resolvedElementType = htmlElementType ?? (textIsHTML ? "div" : "span");
2262
+ const DangerousComponent = resolvedElementType;
2263
+ const dangerousHTML = (0, import_react15.useMemo)(() => ({ __html: text }), [text]);
2264
+ const dangerousElement = /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2265
+ DangerousComponent,
2266
+ {
2267
+ className: htmlClassName,
2268
+ dangerouslySetInnerHTML: dangerousHTML
2269
+ }
2270
+ );
2271
+ if (shouldWrapInText) {
2272
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Text, { ref, ...textProps, children: dangerousElement });
2273
+ }
2274
+ return dangerousElement;
2275
+ };
2276
+ TextOrHTML.displayName = "TextOrHTML";
2277
+ }
2278
+ });
2279
+
2280
+ // src/components/TextOrHTML/index.tsx
2281
+ var init_TextOrHTML2 = __esm({
2282
+ "src/components/TextOrHTML/index.tsx"() {
2283
+ "use strict";
2284
+ init_TextOrHTML();
2285
+ }
2286
+ });
2287
+
2206
2288
  // src/components/Alert/Alert.tsx
2207
2289
  function isAlertVariant(value) {
2208
2290
  return value === "info" || value === "success" || value === "warning" || value === "error";
2209
2291
  }
2210
- var import_icons3, import_dedupe14, import_Alert, import_jsx_runtime15, Alert;
2292
+ var import_icons3, import_dedupe15, import_Alert, import_jsx_runtime17, Alert;
2211
2293
  var init_Alert = __esm({
2212
2294
  "src/components/Alert/Alert.tsx"() {
2213
2295
  "use strict";
2214
2296
  import_icons3 = require("@simplybusiness/icons");
2215
- import_dedupe14 = __toESM(require("classnames/dedupe"));
2297
+ import_dedupe15 = __toESM(require("classnames/dedupe"));
2216
2298
  init_Icon2();
2299
+ init_TextOrHTML2();
2217
2300
  import_Alert = require("@simplybusiness/mobius/src/components/Alert/Alert.css");
2218
- import_jsx_runtime15 = require("react/jsx-runtime");
2301
+ import_jsx_runtime17 = require("react/jsx-runtime");
2219
2302
  Alert = ({ ref, ...props }) => {
2220
2303
  const {
2221
2304
  elementType: Element = "div",
@@ -2228,7 +2311,7 @@ var init_Alert = __esm({
2228
2311
  if (!show) return null;
2229
2312
  const variant = variantProp && isAlertVariant(variantProp) ? variantProp : "info";
2230
2313
  const colorValue = variant === "success" ? `var(--color-valid)` : `var(--color-${variant})`;
2231
- const classes = (0, import_dedupe14.default)(
2314
+ const classes = (0, import_dedupe15.default)(
2232
2315
  "mobius",
2233
2316
  "mobius-alert",
2234
2317
  {
@@ -2246,14 +2329,23 @@ var init_Alert = __esm({
2246
2329
  warning: import_icons3.warning,
2247
2330
  error: import_icons3.error
2248
2331
  };
2249
- const headerClasses = (0, import_dedupe14.default)("mobius", "mobius-alert__header");
2250
- const iconClasses = (0, import_dedupe14.default)("mobius", "mobius-alert__icon");
2251
- const contentClasses = (0, import_dedupe14.default)("mobius", "mobius-alert__content");
2252
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Element, { ref, role: "alert", ...otherProps, className: classes, children: [
2253
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: iconClasses, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon, { icon: icon[variant], color: colorValue }) }),
2254
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { children: [
2255
- header && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { className: headerClasses, children: header }),
2256
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: contentClasses, children })
2332
+ const headerClasses = (0, import_dedupe15.default)("mobius", "mobius-alert__header");
2333
+ const iconClasses = (0, import_dedupe15.default)("mobius", "mobius-alert__icon");
2334
+ const contentClasses = (0, import_dedupe15.default)("mobius", "mobius-alert__content");
2335
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Element, { ref, role: "alert", ...otherProps, className: classes, children: [
2336
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: iconClasses, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon, { icon: icon[variant], color: colorValue }) }),
2337
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { children: [
2338
+ header && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2339
+ TextOrHTML,
2340
+ {
2341
+ autoDetect: true,
2342
+ htmlElementType: "span",
2343
+ className: headerClasses,
2344
+ htmlClassName: headerClasses,
2345
+ text: header
2346
+ }
2347
+ ),
2348
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: contentClasses, children })
2257
2349
  ] })
2258
2350
  ] });
2259
2351
  };
@@ -2270,14 +2362,14 @@ var init_Alert2 = __esm({
2270
2362
  });
2271
2363
 
2272
2364
  // src/components/Box/Box.tsx
2273
- var import_dedupe15, import_Box, import_jsx_runtime16, Box;
2365
+ var import_dedupe16, import_Box, import_jsx_runtime18, Box;
2274
2366
  var init_Box = __esm({
2275
2367
  "src/components/Box/Box.tsx"() {
2276
2368
  "use strict";
2277
- import_dedupe15 = __toESM(require("classnames/dedupe"));
2369
+ import_dedupe16 = __toESM(require("classnames/dedupe"));
2278
2370
  init_utils();
2279
2371
  import_Box = require("@simplybusiness/mobius/src/components/Box/Box.css");
2280
- import_jsx_runtime16 = require("react/jsx-runtime");
2372
+ import_jsx_runtime18 = require("react/jsx-runtime");
2281
2373
  Box = ({ ref, ...props }) => {
2282
2374
  const {
2283
2375
  elementType: Element = "div",
@@ -2303,7 +2395,7 @@ var init_Box = __esm({
2303
2395
  style,
2304
2396
  ...otherProps
2305
2397
  } = props;
2306
- const classes = (0, import_dedupe15.default)("mobius", "mobius-box", otherProps.className);
2398
+ const classes = (0, import_dedupe16.default)("mobius", "mobius-box", otherProps.className);
2307
2399
  const styleProps = filterUndefinedProps({
2308
2400
  padding: getSpacingValue(padding),
2309
2401
  paddingInline: getSpacingValue(paddingInline || paddingX),
@@ -2320,7 +2412,7 @@ var init_Box = __esm({
2320
2412
  height,
2321
2413
  ...style
2322
2414
  });
2323
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Element, { ref, style: styleProps, ...otherProps, className: classes });
2415
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Element, { ref, style: styleProps, ...otherProps, className: classes });
2324
2416
  };
2325
2417
  Box.displayName = "Box";
2326
2418
  }
@@ -2335,27 +2427,27 @@ var init_Box2 = __esm({
2335
2427
  });
2336
2428
 
2337
2429
  // src/components/Breadcrumbs/Breadcrumbs.tsx
2338
- var import_react15, import_dedupe16, import_Breadcrumbs, import_jsx_runtime17, Breadcrumbs;
2430
+ var import_react16, import_dedupe17, import_Breadcrumbs, import_jsx_runtime19, Breadcrumbs;
2339
2431
  var init_Breadcrumbs = __esm({
2340
2432
  "src/components/Breadcrumbs/Breadcrumbs.tsx"() {
2341
2433
  "use strict";
2342
2434
  "use client";
2343
- import_react15 = require("react");
2344
- import_dedupe16 = __toESM(require("classnames/dedupe"));
2435
+ import_react16 = require("react");
2436
+ import_dedupe17 = __toESM(require("classnames/dedupe"));
2345
2437
  import_Breadcrumbs = require("@simplybusiness/mobius/src/components/Breadcrumbs/Breadcrumbs.css");
2346
- import_jsx_runtime17 = require("react/jsx-runtime");
2438
+ import_jsx_runtime19 = require("react/jsx-runtime");
2347
2439
  Breadcrumbs = ({ ref, ...props }) => {
2348
2440
  const { "aria-label": ariaLabel = "Breadcrumbs" } = props;
2349
2441
  const { navProps } = { navProps: { "aria-label": ariaLabel } };
2350
2442
  const { children, ...otherProps } = props;
2351
- const childArray = import_react15.Children.toArray(children);
2352
- const classes = (0, import_dedupe16.default)(
2443
+ const childArray = import_react16.Children.toArray(children);
2444
+ const classes = (0, import_dedupe17.default)(
2353
2445
  "mobius",
2354
2446
  "mobius-breadcrumb",
2355
2447
  otherProps.className
2356
2448
  );
2357
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("nav", { ref, ...otherProps, ...navProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("ul", { children: childArray.map(
2358
- (child, i) => (0, import_react15.cloneElement)(
2449
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("nav", { ref, ...otherProps, ...navProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("ul", { children: childArray.map(
2450
+ (child, i) => (0, import_react16.cloneElement)(
2359
2451
  child,
2360
2452
  {
2361
2453
  key: i,
@@ -2369,22 +2461,22 @@ var init_Breadcrumbs = __esm({
2369
2461
  });
2370
2462
 
2371
2463
  // src/components/Breadcrumbs/BreadcrumbItem.tsx
2372
- var import_react16, import_dedupe17, import_jsx_runtime18, BreadcrumbItem;
2464
+ var import_react17, import_dedupe18, import_jsx_runtime20, BreadcrumbItem;
2373
2465
  var init_BreadcrumbItem = __esm({
2374
2466
  "src/components/Breadcrumbs/BreadcrumbItem.tsx"() {
2375
2467
  "use strict";
2376
2468
  "use client";
2377
- import_react16 = require("react");
2378
- import_dedupe17 = __toESM(require("classnames/dedupe"));
2469
+ import_react17 = require("react");
2470
+ import_dedupe18 = __toESM(require("classnames/dedupe"));
2379
2471
  init_Box2();
2380
- import_jsx_runtime18 = require("react/jsx-runtime");
2472
+ import_jsx_runtime20 = require("react/jsx-runtime");
2381
2473
  BreadcrumbItem = ({ ref, ...props }) => {
2382
2474
  const {
2383
2475
  isDisabled = false,
2384
2476
  isCurrent = false,
2385
2477
  "aria-current": ariaCurrent = "page",
2386
2478
  children,
2387
- separator = /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Box, { className: "mobius-breadcrumb__separator", "aria-hidden": "true", children: ">" }),
2479
+ separator = /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Box, { className: "mobius-breadcrumb__separator", "aria-hidden": "true", children: ">" }),
2388
2480
  ...otherProps
2389
2481
  } = props;
2390
2482
  const { itemProps } = {
@@ -2394,14 +2486,14 @@ var init_BreadcrumbItem = __esm({
2394
2486
  ...otherProps
2395
2487
  }
2396
2488
  };
2397
- const classes = (0, import_dedupe17.default)(
2489
+ const classes = (0, import_dedupe18.default)(
2398
2490
  "mobius",
2399
2491
  "mobius-breadcrumb__item",
2400
2492
  props.className
2401
2493
  );
2402
- const child = typeof children === "string" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { ...itemProps, children }) : import_react16.Children.only(children);
2403
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("li", { className: classes, children: [
2404
- (0, import_react16.cloneElement)(child, {
2494
+ const child = typeof children === "string" ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { ...itemProps, children }) : import_react17.Children.only(children);
2495
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("li", { className: classes, children: [
2496
+ (0, import_react17.cloneElement)(child, {
2405
2497
  ...child.props,
2406
2498
  ...itemProps,
2407
2499
  ref
@@ -2423,19 +2515,19 @@ var init_Breadcrumbs2 = __esm({
2423
2515
  });
2424
2516
 
2425
2517
  // src/components/Button/Loading.tsx
2426
- var import_icons4, import_jsx_runtime19, Loading;
2518
+ var import_icons4, import_jsx_runtime21, Loading;
2427
2519
  var init_Loading = __esm({
2428
2520
  "src/components/Button/Loading.tsx"() {
2429
2521
  "use strict";
2430
2522
  import_icons4 = require("@simplybusiness/icons");
2431
2523
  init_Icon2();
2432
2524
  init_VisuallyHidden2();
2433
- import_jsx_runtime19 = require("react/jsx-runtime");
2525
+ import_jsx_runtime21 = require("react/jsx-runtime");
2434
2526
  Loading = (props) => {
2435
2527
  const { children } = props;
2436
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
2437
- /* @__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" }) }),
2438
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(VisuallyHidden, { className: "mobius-button__loading-text", children: "Loading" }),
2528
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
2529
+ /* @__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" }) }),
2530
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(VisuallyHidden, { className: "mobius-button__loading-text", children: "Loading" }),
2439
2531
  children
2440
2532
  ] });
2441
2533
  };
@@ -2443,33 +2535,33 @@ var init_Loading = __esm({
2443
2535
  });
2444
2536
 
2445
2537
  // src/components/Button/Success.tsx
2446
- var import_icons5, import_jsx_runtime20, Success;
2538
+ var import_icons5, import_jsx_runtime22, Success;
2447
2539
  var init_Success = __esm({
2448
2540
  "src/components/Button/Success.tsx"() {
2449
2541
  "use strict";
2450
2542
  import_icons5 = require("@simplybusiness/icons");
2451
2543
  init_Icon2();
2452
2544
  init_VisuallyHidden2();
2453
- import_jsx_runtime20 = require("react/jsx-runtime");
2454
- Success = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
2455
- /* @__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" }) }),
2456
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(VisuallyHidden, { className: "mobius-button__success-text", children: "Success" })
2545
+ import_jsx_runtime22 = require("react/jsx-runtime");
2546
+ Success = () => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
2547
+ /* @__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" }) }),
2548
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(VisuallyHidden, { className: "mobius-button__success-text", children: "Success" })
2457
2549
  ] });
2458
2550
  }
2459
2551
  });
2460
2552
 
2461
2553
  // src/components/Button/Button.tsx
2462
- var import_dedupe18, import_Button, import_jsx_runtime21, Button;
2554
+ var import_dedupe19, import_Button, import_jsx_runtime23, Button;
2463
2555
  var init_Button = __esm({
2464
2556
  "src/components/Button/Button.tsx"() {
2465
2557
  "use strict";
2466
2558
  "use client";
2467
- import_dedupe18 = __toESM(require("classnames/dedupe"));
2559
+ import_dedupe19 = __toESM(require("classnames/dedupe"));
2468
2560
  init_Loading();
2469
2561
  init_useButton2();
2470
2562
  init_Success();
2471
2563
  import_Button = require("@simplybusiness/mobius/src/components/Button/Button.css");
2472
- import_jsx_runtime21 = require("react/jsx-runtime");
2564
+ import_jsx_runtime23 = require("react/jsx-runtime");
2473
2565
  Button = ({ ref, ...props }) => {
2474
2566
  const {
2475
2567
  children,
@@ -2484,7 +2576,7 @@ var init_Button = __esm({
2484
2576
  ...otherProps
2485
2577
  } = props;
2486
2578
  const { buttonProps } = useButton(props);
2487
- otherProps.className = (0, import_dedupe18.default)(
2579
+ otherProps.className = (0, import_dedupe19.default)(
2488
2580
  "mobius",
2489
2581
  "mobius-button",
2490
2582
  `--variant-${variant}`,
@@ -2496,9 +2588,9 @@ var init_Button = __esm({
2496
2588
  },
2497
2589
  otherProps.className
2498
2590
  );
2499
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Component, { ref, ...buttonProps, ...otherProps, children: [
2500
- isLoading ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Loading, { children }) : children,
2501
- isSuccess && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Success, {})
2591
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Component, { ref, ...buttonProps, ...otherProps, children: [
2592
+ isLoading ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Loading, { children }) : children,
2593
+ isSuccess && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Success, {})
2502
2594
  ] });
2503
2595
  };
2504
2596
  Button.displayName = "Button";
@@ -2514,13 +2606,13 @@ var init_Button2 = __esm({
2514
2606
  });
2515
2607
 
2516
2608
  // src/components/Checkbox/Checkbox.tsx
2517
- var import_react17, import_dedupe19, import_icons6, import_Checkbox, import_jsx_runtime22, Checkbox;
2609
+ var import_react18, import_dedupe20, import_icons6, import_Checkbox, import_jsx_runtime24, Checkbox;
2518
2610
  var init_Checkbox = __esm({
2519
2611
  "src/components/Checkbox/Checkbox.tsx"() {
2520
2612
  "use strict";
2521
2613
  "use client";
2522
- import_react17 = require("react");
2523
- import_dedupe19 = __toESM(require("classnames/dedupe"));
2614
+ import_react18 = require("react");
2615
+ import_dedupe20 = __toESM(require("classnames/dedupe"));
2524
2616
  import_icons6 = require("@simplybusiness/icons");
2525
2617
  init_ErrorMessage();
2526
2618
  init_spaceDelimitedList();
@@ -2528,7 +2620,7 @@ var init_Checkbox = __esm({
2528
2620
  init_Icon2();
2529
2621
  init_Stack2();
2530
2622
  import_Checkbox = require("@simplybusiness/mobius/src/components/Checkbox/Checkbox.css");
2531
- import_jsx_runtime22 = require("react/jsx-runtime");
2623
+ import_jsx_runtime24 = require("react/jsx-runtime");
2532
2624
  Checkbox = ({ ref, ...props }) => {
2533
2625
  const {
2534
2626
  id,
@@ -2548,18 +2640,18 @@ var init_Checkbox = __esm({
2548
2640
  ["aria-describedby"]: ariaDescribedBy,
2549
2641
  ...rest
2550
2642
  } = props;
2551
- const [checked, setChecked] = (0, import_react17.useState)(defaultSelected);
2552
- const fallbackRef = (0, import_react17.useRef)(null);
2643
+ const [checked, setChecked] = (0, import_react18.useState)(defaultSelected);
2644
+ const fallbackRef = (0, import_react18.useRef)(null);
2553
2645
  const refObj = ref || fallbackRef;
2554
- const inputId = (0, import_react17.useId)();
2646
+ const inputId = (0, import_react18.useId)();
2555
2647
  const isControlled = typeof selected === "boolean";
2556
- (0, import_react17.useEffect)(() => {
2648
+ (0, import_react18.useEffect)(() => {
2557
2649
  if (isControlled) {
2558
2650
  setChecked(selected);
2559
2651
  }
2560
2652
  }, [selected, isControlled]);
2561
2653
  const validationClasses = useValidationClasses({ isInvalid });
2562
- const sharedClasses = (0, import_dedupe19.default)(
2654
+ const sharedClasses = (0, import_dedupe20.default)(
2563
2655
  {
2564
2656
  "--is-disabled": isDisabled,
2565
2657
  "--is-selected": checked,
@@ -2568,31 +2660,31 @@ var init_Checkbox = __esm({
2568
2660
  },
2569
2661
  validationClasses
2570
2662
  );
2571
- const wrapperClasses = (0, import_dedupe19.default)(
2663
+ const wrapperClasses = (0, import_dedupe20.default)(
2572
2664
  "mobius",
2573
2665
  "mobius-checkbox",
2574
2666
  sharedClasses,
2575
2667
  className
2576
2668
  );
2577
- const labelClasses = (0, import_dedupe19.default)("mobius-checkbox__label", sharedClasses);
2578
- const inputClasses = (0, import_dedupe19.default)("mobius-checkbox__input", sharedClasses);
2579
- const iconClasses = (0, import_dedupe19.default)("mobius-checkbox__icon", sharedClasses);
2580
- const errorMessageId = (0, import_react17.useId)();
2669
+ const labelClasses = (0, import_dedupe20.default)("mobius-checkbox__label", sharedClasses);
2670
+ const inputClasses = (0, import_dedupe20.default)("mobius-checkbox__input", sharedClasses);
2671
+ const iconClasses = (0, import_dedupe20.default)("mobius-checkbox__icon", sharedClasses);
2672
+ const errorMessageId = (0, import_react18.useId)();
2581
2673
  const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
2582
2674
  const describedBy = spaceDelimitedList([
2583
2675
  shouldErrorMessageShow,
2584
2676
  ariaDescribedBy
2585
2677
  ]);
2586
- const labelId = (0, import_react17.useId)();
2678
+ const labelId = (0, import_react18.useId)();
2587
2679
  const handleChange = (event) => {
2588
2680
  setChecked(!checked);
2589
2681
  if (onChange) {
2590
2682
  onChange(event, isLastItem);
2591
2683
  }
2592
2684
  };
2593
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Stack, { gap: "xs", className: wrapperClasses, children: [
2594
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", { className: labelClasses, children: [
2595
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2685
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Stack, { gap: "xs", className: wrapperClasses, children: [
2686
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("label", { className: labelClasses, children: [
2687
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2596
2688
  "input",
2597
2689
  {
2598
2690
  "aria-describedby": describedBy,
@@ -2613,7 +2705,7 @@ var init_Checkbox = __esm({
2613
2705
  ...rest
2614
2706
  }
2615
2707
  ),
2616
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2708
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2617
2709
  Icon,
2618
2710
  {
2619
2711
  icon: checked ? import_icons6.squareTick : import_icons6.square,
@@ -2621,9 +2713,9 @@ var init_Checkbox = __esm({
2621
2713
  className: iconClasses
2622
2714
  }
2623
2715
  ),
2624
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { id: labelId, className: "mobius-checkbox__visible-label", children: label })
2716
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { id: labelId, className: "mobius-checkbox__visible-label", children: label })
2625
2717
  ] }),
2626
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
2718
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
2627
2719
  ] });
2628
2720
  };
2629
2721
  Checkbox.displayName = "Checkbox";
@@ -2631,20 +2723,20 @@ var init_Checkbox = __esm({
2631
2723
  });
2632
2724
 
2633
2725
  // src/components/Checkbox/CheckboxGroup.tsx
2634
- var import_dedupe20, import_react18, import_CheckboxGroup, import_jsx_runtime23, CheckboxGroup;
2726
+ var import_dedupe21, import_react19, import_CheckboxGroup, import_jsx_runtime25, CheckboxGroup;
2635
2727
  var init_CheckboxGroup = __esm({
2636
2728
  "src/components/Checkbox/CheckboxGroup.tsx"() {
2637
2729
  "use strict";
2638
2730
  "use client";
2639
- import_dedupe20 = __toESM(require("classnames/dedupe"));
2640
- import_react18 = require("react");
2731
+ import_dedupe21 = __toESM(require("classnames/dedupe"));
2732
+ import_react19 = require("react");
2641
2733
  init_hooks();
2642
2734
  init_spaceDelimitedList();
2643
2735
  init_ErrorMessage();
2644
2736
  init_Label2();
2645
2737
  init_Checkbox();
2646
2738
  import_CheckboxGroup = require("@simplybusiness/mobius/src/components/Checkbox/CheckboxGroup.css");
2647
- import_jsx_runtime23 = require("react/jsx-runtime");
2739
+ import_jsx_runtime25 = require("react/jsx-runtime");
2648
2740
  CheckboxGroup = ({ ref, ...props }) => {
2649
2741
  const {
2650
2742
  label,
@@ -2662,10 +2754,10 @@ var init_CheckboxGroup = __esm({
2662
2754
  lastItemDisables = false,
2663
2755
  ...rest
2664
2756
  } = props;
2665
- const [selected, setSelected] = (0, import_react18.useState)(defaultValue);
2666
- const isInitializedRef = (0, import_react18.useRef)(false);
2667
- const prevDefaultValueRef = (0, import_react18.useRef)(defaultValue);
2668
- (0, import_react18.useEffect)(() => {
2757
+ const [selected, setSelected] = (0, import_react19.useState)(defaultValue);
2758
+ const isInitializedRef = (0, import_react19.useRef)(false);
2759
+ const prevDefaultValueRef = (0, import_react19.useRef)(defaultValue);
2760
+ (0, import_react19.useEffect)(() => {
2669
2761
  const hasChanged = defaultValue.length !== prevDefaultValueRef.current.length || defaultValue.some(
2670
2762
  (val, index) => val !== prevDefaultValueRef.current[index]
2671
2763
  );
@@ -2675,7 +2767,7 @@ var init_CheckboxGroup = __esm({
2675
2767
  isInitializedRef.current = true;
2676
2768
  }
2677
2769
  }, [defaultValue]);
2678
- const checkboxGroupClasses = (0, import_dedupe20.default)(
2770
+ const checkboxGroupClasses = (0, import_dedupe21.default)(
2679
2771
  "mobius",
2680
2772
  "mobius-checkbox-group",
2681
2773
  className,
@@ -2687,19 +2779,19 @@ var init_CheckboxGroup = __esm({
2687
2779
  }
2688
2780
  );
2689
2781
  const validationClasses = useValidationClasses({ isInvalid });
2690
- const labelClasses = (0, import_dedupe20.default)(
2782
+ const labelClasses = (0, import_dedupe21.default)(
2691
2783
  {
2692
2784
  "--is-disabled": isDisabled
2693
2785
  },
2694
2786
  validationClasses
2695
2787
  );
2696
- const errorMessageId = (0, import_react18.useId)();
2788
+ const errorMessageId = (0, import_react19.useId)();
2697
2789
  const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
2698
2790
  const describedBy = spaceDelimitedList([
2699
2791
  shouldErrorMessageShow,
2700
2792
  props["aria-describedby"]
2701
2793
  ]);
2702
- const labelId = (0, import_react18.useId)();
2794
+ const labelId = (0, import_react19.useId)();
2703
2795
  const handleChange = (event, isLastItem = false) => {
2704
2796
  const {
2705
2797
  target: { value, checked }
@@ -2717,12 +2809,12 @@ var init_CheckboxGroup = __esm({
2717
2809
  setSelected(newValue);
2718
2810
  onChange?.(newValue);
2719
2811
  };
2720
- const childrenArray = import_react18.Children.toArray(children);
2812
+ const childrenArray = import_react19.Children.toArray(children);
2721
2813
  const lastCheckbox = childrenArray.filter(
2722
- (child) => (0, import_react18.isValidElement)(child) && child.type === Checkbox
2814
+ (child) => (0, import_react19.isValidElement)(child) && child.type === Checkbox
2723
2815
  ).pop();
2724
2816
  const lastCheckboxIsChecked = lastCheckbox && selected.includes(lastCheckbox.props.value);
2725
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
2817
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2726
2818
  "div",
2727
2819
  {
2728
2820
  ...rest,
@@ -2731,16 +2823,16 @@ var init_CheckboxGroup = __esm({
2731
2823
  className: checkboxGroupClasses,
2732
2824
  role: "group",
2733
2825
  style: {
2734
- "--checkbox-items-per-row": itemsPerRow || import_react18.Children.count(children)
2826
+ "--checkbox-items-per-row": itemsPerRow || import_react19.Children.count(children)
2735
2827
  },
2736
2828
  children: [
2737
- label && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Label, { elementType: "span", id: labelId, className: labelClasses, children: label }),
2738
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "mobius-checkbox-group__wrapper", children: childrenArray.map((child) => {
2739
- if ((0, import_react18.isValidElement)(child)) {
2829
+ label && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Label, { elementType: "span", id: labelId, className: labelClasses, children: label }),
2830
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "mobius-checkbox-group__wrapper", children: childrenArray.map((child) => {
2831
+ if ((0, import_react19.isValidElement)(child)) {
2740
2832
  const isLastItem = child === lastCheckbox;
2741
2833
  const isChildDisabled = isDisabled || lastItemDisables && lastCheckboxIsChecked && !isLastItem;
2742
2834
  const childProps = child.props;
2743
- return (0, import_react18.cloneElement)(
2835
+ return (0, import_react19.cloneElement)(
2744
2836
  child,
2745
2837
  {
2746
2838
  isDisabled: isChildDisabled,
@@ -2756,7 +2848,7 @@ var init_CheckboxGroup = __esm({
2756
2848
  }
2757
2849
  return child;
2758
2850
  }) }),
2759
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
2851
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
2760
2852
  ]
2761
2853
  }
2762
2854
  );
@@ -2783,23 +2875,23 @@ var init_Checkbox2 = __esm({
2783
2875
  });
2784
2876
 
2785
2877
  // src/components/Container/Container.tsx
2786
- var import_dedupe21, import_Container, import_jsx_runtime24, Container;
2878
+ var import_dedupe22, import_Container, import_jsx_runtime26, Container;
2787
2879
  var init_Container = __esm({
2788
2880
  "src/components/Container/Container.tsx"() {
2789
2881
  "use strict";
2790
- import_dedupe21 = __toESM(require("classnames/dedupe"));
2882
+ import_dedupe22 = __toESM(require("classnames/dedupe"));
2791
2883
  init_utils();
2792
2884
  import_Container = require("@simplybusiness/mobius/src/components/Container/Container.css");
2793
- import_jsx_runtime24 = require("react/jsx-runtime");
2885
+ import_jsx_runtime26 = require("react/jsx-runtime");
2794
2886
  Container = ({ ref, ...props }) => {
2795
2887
  const { elementType: Element = "div", size = "md", ...otherProps } = props;
2796
- const classes = (0, import_dedupe21.default)(
2888
+ const classes = (0, import_dedupe22.default)(
2797
2889
  "mobius",
2798
2890
  "mobius-container",
2799
2891
  sizeClasses(size),
2800
2892
  otherProps.className
2801
2893
  );
2802
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Element, { ref, ...otherProps, className: classes });
2894
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Element, { ref, ...otherProps, className: classes });
2803
2895
  };
2804
2896
  Container.displayName = "Container";
2805
2897
  }
@@ -2852,17 +2944,17 @@ var init_validation = __esm({
2852
2944
  });
2853
2945
 
2854
2946
  // src/components/DateField/DateField.tsx
2855
- var import_dedupe22, import_react19, import_jsx_runtime25, MIN_MAX_ERROR, DateField;
2947
+ var import_dedupe23, import_react20, import_jsx_runtime27, MIN_MAX_ERROR, DateField;
2856
2948
  var init_DateField = __esm({
2857
2949
  "src/components/DateField/DateField.tsx"() {
2858
2950
  "use strict";
2859
2951
  "use client";
2860
- import_dedupe22 = __toESM(require("classnames/dedupe"));
2861
- import_react19 = require("react");
2952
+ import_dedupe23 = __toESM(require("classnames/dedupe"));
2953
+ import_react20 = require("react");
2862
2954
  init_mergeRefs();
2863
2955
  init_TextField2();
2864
2956
  init_validation();
2865
- import_jsx_runtime25 = require("react/jsx-runtime");
2957
+ import_jsx_runtime27 = require("react/jsx-runtime");
2866
2958
  MIN_MAX_ERROR = '"min" value should not be greater than "max" value.';
2867
2959
  DateField = ({ ref, ...props }) => {
2868
2960
  const {
@@ -2875,10 +2967,10 @@ var init_DateField = __esm({
2875
2967
  value,
2876
2968
  ...otherProps
2877
2969
  } = props;
2878
- const [error3, setError] = (0, import_react19.useState)(errorMessage);
2879
- const [isInvalid, setIsInvalid] = (0, import_react19.useState)(void 0);
2880
- const localRef = (0, import_react19.useRef)(null);
2881
- const classes = (0, import_dedupe22.default)("mobius-date-field", className);
2970
+ const [error3, setError] = (0, import_react20.useState)(errorMessage);
2971
+ const [isInvalid, setIsInvalid] = (0, import_react20.useState)(void 0);
2972
+ const localRef = (0, import_react20.useRef)(null);
2973
+ const classes = (0, import_dedupe23.default)("mobius-date-field", className);
2882
2974
  const formattedMin = min ? convertToDateFormat(min, format) : void 0;
2883
2975
  const formattedMax = max ? convertToDateFormat(max, format) : void 0;
2884
2976
  const formattedDefaultValue = defaultValue ? convertToDateFormat(defaultValue, format) : void 0;
@@ -2891,7 +2983,7 @@ var init_DateField = __esm({
2891
2983
  setError(props.errorMessage);
2892
2984
  setIsInvalid(false);
2893
2985
  };
2894
- (0, import_react19.useEffect)(() => {
2986
+ (0, import_react20.useEffect)(() => {
2895
2987
  if (!isValidDate(min, format)) {
2896
2988
  setInvalidState(`Invalid min date: ${min}`);
2897
2989
  return;
@@ -2924,7 +3016,7 @@ var init_DateField = __esm({
2924
3016
  validate();
2925
3017
  otherProps.onBlur?.(event);
2926
3018
  };
2927
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3019
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2928
3020
  TextField,
2929
3021
  {
2930
3022
  ref: mergeRefs([localRef, ref]),
@@ -2955,23 +3047,23 @@ var init_DateField2 = __esm({
2955
3047
  });
2956
3048
 
2957
3049
  // src/components/Drawer/Content.tsx
2958
- var import_jsx_runtime26, Content;
3050
+ var import_jsx_runtime28, Content;
2959
3051
  var init_Content = __esm({
2960
3052
  "src/components/Drawer/Content.tsx"() {
2961
3053
  "use strict";
2962
- import_jsx_runtime26 = require("react/jsx-runtime");
2963
- Content = ({ ref, children, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ref, ...otherProps, className: "mobius-drawer__content", children });
3054
+ import_jsx_runtime28 = require("react/jsx-runtime");
3055
+ Content = ({ ref, children, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { ref, ...otherProps, className: "mobius-drawer__content", children });
2964
3056
  Content.displayName = "Content";
2965
3057
  }
2966
3058
  });
2967
3059
 
2968
3060
  // src/components/Drawer/DrawerContext.tsx
2969
- var import_react20, DrawerContext;
3061
+ var import_react21, DrawerContext;
2970
3062
  var init_DrawerContext = __esm({
2971
3063
  "src/components/Drawer/DrawerContext.tsx"() {
2972
3064
  "use strict";
2973
- import_react20 = require("react");
2974
- DrawerContext = (0, import_react20.createContext)({
3065
+ import_react21 = require("react");
3066
+ DrawerContext = (0, import_react21.createContext)({
2975
3067
  onClose: () => {
2976
3068
  },
2977
3069
  closeLabel: void 0,
@@ -2981,19 +3073,19 @@ var init_DrawerContext = __esm({
2981
3073
  });
2982
3074
 
2983
3075
  // src/components/Drawer/Drawer.tsx
2984
- var import_dedupe23, import_react21, import_Drawer, import_jsx_runtime27, TRANSITION_CSS_VARIABLE, Drawer;
3076
+ var import_dedupe24, import_react22, import_Drawer, import_jsx_runtime29, TRANSITION_CSS_VARIABLE, Drawer;
2985
3077
  var init_Drawer = __esm({
2986
3078
  "src/components/Drawer/Drawer.tsx"() {
2987
3079
  "use strict";
2988
3080
  "use client";
2989
- import_dedupe23 = __toESM(require("classnames/dedupe"));
2990
- import_react21 = require("react");
3081
+ import_dedupe24 = __toESM(require("classnames/dedupe"));
3082
+ import_react22 = require("react");
2991
3083
  init_hooks();
2992
3084
  init_utils();
2993
3085
  init_VisuallyHidden2();
2994
3086
  init_DrawerContext();
2995
3087
  import_Drawer = require("@simplybusiness/mobius/src/components/Drawer/Drawer.css");
2996
- import_jsx_runtime27 = require("react/jsx-runtime");
3088
+ import_jsx_runtime29 = require("react/jsx-runtime");
2997
3089
  TRANSITION_CSS_VARIABLE = "--drawer-transition-duration";
2998
3090
  Drawer = ({ ref, ...props }) => {
2999
3091
  const {
@@ -3006,8 +3098,8 @@ var init_Drawer = __esm({
3006
3098
  onClose,
3007
3099
  children
3008
3100
  } = props;
3009
- const dialogRef = (0, import_react21.useRef)(null);
3010
- const [shouldTransition, setShouldTransition] = (0, import_react21.useState)(false);
3101
+ const dialogRef = (0, import_react22.useRef)(null);
3102
+ const [shouldTransition, setShouldTransition] = (0, import_react22.useState)(false);
3011
3103
  const { close } = useDialog({
3012
3104
  ref: dialogRef,
3013
3105
  isOpen,
@@ -3018,9 +3110,9 @@ var init_Drawer = __esm({
3018
3110
  CSSVariable: TRANSITION_CSS_VARIABLE
3019
3111
  }
3020
3112
  });
3021
- const hiddenId = `dialog-screen-reader-announce-${(0, import_react21.useId)()}`;
3022
- const headerId = `dialog-header-${(0, import_react21.useId)()}`;
3023
- const dialogClasses = (0, import_dedupe23.default)(
3113
+ const hiddenId = `dialog-screen-reader-announce-${(0, import_react22.useId)()}`;
3114
+ const headerId = `dialog-header-${(0, import_react22.useId)()}`;
3115
+ const dialogClasses = (0, import_dedupe24.default)(
3024
3116
  "mobius",
3025
3117
  "mobius-drawer",
3026
3118
  `--${direction}`,
@@ -3029,10 +3121,10 @@ var init_Drawer = __esm({
3029
3121
  "--should-transition": shouldTransition
3030
3122
  }
3031
3123
  );
3032
- (0, import_react21.useEffect)(() => {
3124
+ (0, import_react22.useEffect)(() => {
3033
3125
  setShouldTransition(supportsDialog());
3034
3126
  }, []);
3035
- const contextValue = (0, import_react21.useMemo)(
3127
+ const contextValue = (0, import_react22.useMemo)(
3036
3128
  () => ({
3037
3129
  onClose: close,
3038
3130
  closeLabel,
@@ -3040,18 +3132,18 @@ var init_Drawer = __esm({
3040
3132
  }),
3041
3133
  [close, closeLabel, headerId]
3042
3134
  );
3043
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3135
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
3044
3136
  "dialog",
3045
3137
  {
3046
- id: (0, import_react21.useId)(),
3138
+ id: (0, import_react22.useId)(),
3047
3139
  ref: mergeRefs([dialogRef, ref]),
3048
3140
  onCancel: close,
3049
3141
  className: dialogClasses,
3050
3142
  "aria-describedby": hiddenId,
3051
3143
  "aria-labelledby": headerId,
3052
3144
  children: [
3053
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { id: hiddenId, children: announce }) }),
3054
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(DrawerContext.Provider, { value: contextValue, children })
3145
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { id: hiddenId, children: announce }) }),
3146
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(DrawerContext.Provider, { value: contextValue, children })
3055
3147
  ]
3056
3148
  }
3057
3149
  );
@@ -3061,21 +3153,21 @@ var init_Drawer = __esm({
3061
3153
  });
3062
3154
 
3063
3155
  // src/components/Drawer/useDrawer.ts
3064
- var import_react22, useDrawer;
3156
+ var import_react23, useDrawer;
3065
3157
  var init_useDrawer = __esm({
3066
3158
  "src/components/Drawer/useDrawer.ts"() {
3067
3159
  "use strict";
3068
- import_react22 = require("react");
3160
+ import_react23 = require("react");
3069
3161
  init_DrawerContext();
3070
3162
  useDrawer = () => {
3071
- const { onClose, closeLabel, headerId } = (0, import_react22.useContext)(DrawerContext);
3163
+ const { onClose, closeLabel, headerId } = (0, import_react23.useContext)(DrawerContext);
3072
3164
  return { onClose, closeLabel, headerId };
3073
3165
  };
3074
3166
  }
3075
3167
  });
3076
3168
 
3077
3169
  // src/components/Drawer/Header.tsx
3078
- var import_icons7, import_jsx_runtime28, Header;
3170
+ var import_icons7, import_jsx_runtime30, Header;
3079
3171
  var init_Header = __esm({
3080
3172
  "src/components/Drawer/Header.tsx"() {
3081
3173
  "use strict";
@@ -3083,12 +3175,12 @@ var init_Header = __esm({
3083
3175
  init_Button2();
3084
3176
  init_Icon2();
3085
3177
  init_useDrawer();
3086
- import_jsx_runtime28 = require("react/jsx-runtime");
3178
+ import_jsx_runtime30 = require("react/jsx-runtime");
3087
3179
  Header = ({ ref, children, ...otherProps }) => {
3088
3180
  const { onClose, closeLabel, headerId } = useDrawer();
3089
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("header", { ref, ...otherProps, className: "mobius-drawer__header", children: [
3090
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("h2", { id: headerId, children }),
3091
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
3181
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("header", { ref, ...otherProps, className: "mobius-drawer__header", children: [
3182
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h2", { id: headerId, children }),
3183
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3092
3184
  Button,
3093
3185
  {
3094
3186
  "aria-label": "Close",
@@ -3097,7 +3189,7 @@ var init_Header = __esm({
3097
3189
  className: "mobius-drawer__close",
3098
3190
  size: "sm",
3099
3191
  children: [
3100
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { icon: import_icons7.cross }),
3192
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon, { icon: import_icons7.cross }),
3101
3193
  " ",
3102
3194
  closeLabel
3103
3195
  ]
@@ -3126,17 +3218,17 @@ var init_Drawer2 = __esm({
3126
3218
  });
3127
3219
 
3128
3220
  // src/components/DropdownMenu/DropdownMenu.tsx
3129
- var import_react23, import_react_accessible_dropdown_menu_hook, import_dedupe24, import_DropdownMenu, import_jsx_runtime29, DropdownMenu;
3221
+ var import_react24, import_react_accessible_dropdown_menu_hook, import_dedupe25, import_DropdownMenu, import_jsx_runtime31, DropdownMenu;
3130
3222
  var init_DropdownMenu = __esm({
3131
3223
  "src/components/DropdownMenu/DropdownMenu.tsx"() {
3132
3224
  "use strict";
3133
3225
  "use client";
3134
- import_react23 = require("react");
3226
+ import_react24 = require("react");
3135
3227
  import_react_accessible_dropdown_menu_hook = __toESM(require("react-accessible-dropdown-menu-hook"));
3136
- import_dedupe24 = __toESM(require("classnames/dedupe"));
3228
+ import_dedupe25 = __toESM(require("classnames/dedupe"));
3137
3229
  init_Button2();
3138
3230
  import_DropdownMenu = require("@simplybusiness/mobius/src/components/DropdownMenu/DropdownMenu.css");
3139
- import_jsx_runtime29 = require("react/jsx-runtime");
3231
+ import_jsx_runtime31 = require("react/jsx-runtime");
3140
3232
  DropdownMenu = ({ ref, ...props }) => {
3141
3233
  const {
3142
3234
  elementType: Element = "nav",
@@ -3145,21 +3237,21 @@ var init_DropdownMenu = __esm({
3145
3237
  children,
3146
3238
  ...otherProps
3147
3239
  } = props;
3148
- const [activeId, setActiveId] = (0, import_react23.useState)(null);
3149
- const numberOfItems = import_react23.Children.count(children);
3240
+ const [activeId, setActiveId] = (0, import_react24.useState)(null);
3241
+ const numberOfItems = import_react24.Children.count(children);
3150
3242
  const {
3151
3243
  buttonProps,
3152
3244
  itemProps,
3153
3245
  isOpen: open,
3154
3246
  setIsOpen
3155
3247
  } = (0, import_react_accessible_dropdown_menu_hook.default)(numberOfItems);
3156
- const classes = (0, import_dedupe24.default)(
3248
+ const classes = (0, import_dedupe25.default)(
3157
3249
  "mobius",
3158
3250
  "mobius-dropdown-menu",
3159
3251
  otherProps.className
3160
3252
  );
3161
- const triggerClasses = (0, import_dedupe24.default)("mobius", "mobius-dropdown-menu__trigger");
3162
- const listClasses = (0, import_dedupe24.default)("mobius", "mobius-dropdown-menu__list", {
3253
+ const triggerClasses = (0, import_dedupe25.default)("mobius", "mobius-dropdown-menu__trigger");
3254
+ const listClasses = (0, import_dedupe25.default)("mobius", "mobius-dropdown-menu__list", {
3163
3255
  "--is-open": open
3164
3256
  });
3165
3257
  const handleChildClick = ({ onClick }, index) => {
@@ -3169,16 +3261,16 @@ var init_DropdownMenu = __esm({
3169
3261
  onClick();
3170
3262
  }
3171
3263
  };
3172
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Element, { ref, ...otherProps, className: classes, children: [
3173
- trigger ? (0, import_react23.cloneElement)(trigger, {
3264
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Element, { ref, ...otherProps, className: classes, children: [
3265
+ trigger ? (0, import_react24.cloneElement)(trigger, {
3174
3266
  className: triggerClasses,
3175
3267
  open,
3176
3268
  label,
3177
3269
  ...buttonProps
3178
- }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button, { className: triggerClasses, ...buttonProps, children: label }),
3179
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("ul", { className: listClasses, role: "menu", children: import_react23.Children.map(children, (child, index) => {
3180
- if ((0, import_react23.isValidElement)(child)) {
3181
- return (0, import_react23.cloneElement)(child, {
3270
+ }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { className: triggerClasses, ...buttonProps, children: label }),
3271
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("ul", { className: listClasses, role: "menu", children: import_react24.Children.map(children, (child, index) => {
3272
+ if ((0, import_react24.isValidElement)(child)) {
3273
+ return (0, import_react24.cloneElement)(child, {
3182
3274
  onClick: () => handleChildClick(child.props, index),
3183
3275
  active: index === activeId,
3184
3276
  ...itemProps[index]
@@ -3193,13 +3285,13 @@ var init_DropdownMenu = __esm({
3193
3285
  });
3194
3286
 
3195
3287
  // src/components/DropdownMenu/Item.tsx
3196
- var import_react24, import_dedupe25, import_jsx_runtime30, Item;
3288
+ var import_react25, import_dedupe26, import_jsx_runtime32, Item;
3197
3289
  var init_Item = __esm({
3198
3290
  "src/components/DropdownMenu/Item.tsx"() {
3199
3291
  "use strict";
3200
- import_react24 = require("react");
3201
- import_dedupe25 = __toESM(require("classnames/dedupe"));
3202
- import_jsx_runtime30 = require("react/jsx-runtime");
3292
+ import_react25 = require("react");
3293
+ import_dedupe26 = __toESM(require("classnames/dedupe"));
3294
+ import_jsx_runtime32 = require("react/jsx-runtime");
3203
3295
  Item = ({ ref, ...props }) => {
3204
3296
  const {
3205
3297
  elementType: Element = "li",
@@ -3208,26 +3300,26 @@ var init_Item = __esm({
3208
3300
  children,
3209
3301
  ...otherProps
3210
3302
  } = props;
3211
- const classes = (0, import_dedupe25.default)(
3303
+ const classes = (0, import_dedupe26.default)(
3212
3304
  "mobius",
3213
3305
  "mobius-dropdown-menu__item",
3214
3306
  { "--is-active": active },
3215
3307
  otherProps.className
3216
3308
  );
3217
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Element, { ref, onClick, ...otherProps, children: import_react24.Children.map(children, (child) => {
3218
- if ((0, import_react24.isValidElement)(child)) {
3219
- const childClasses = (0, import_dedupe25.default)(
3309
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Element, { ref, onClick, ...otherProps, children: import_react25.Children.map(children, (child) => {
3310
+ if ((0, import_react25.isValidElement)(child)) {
3311
+ const childClasses = (0, import_dedupe26.default)(
3220
3312
  child.props.className,
3221
3313
  classes
3222
3314
  );
3223
- return (0, import_react24.cloneElement)(
3315
+ return (0, import_react25.cloneElement)(
3224
3316
  child,
3225
3317
  {
3226
3318
  className: childClasses
3227
3319
  }
3228
3320
  );
3229
3321
  }
3230
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: classes, children: child });
3322
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: classes, children: child });
3231
3323
  }) });
3232
3324
  };
3233
3325
  Item.displayName = "DropdownMenu.Item";
@@ -3252,23 +3344,23 @@ var init_DropdownMenu2 = __esm({
3252
3344
  });
3253
3345
 
3254
3346
  // src/components/Fieldset/Fieldset.tsx
3255
- var import_dedupe26, import_react25, import_Fieldset, import_jsx_runtime31, useFieldset, Fieldset;
3347
+ var import_dedupe27, import_react26, import_Fieldset, import_jsx_runtime33, useFieldset, Fieldset;
3256
3348
  var init_Fieldset = __esm({
3257
3349
  "src/components/Fieldset/Fieldset.tsx"() {
3258
3350
  "use strict";
3259
3351
  "use client";
3260
- import_dedupe26 = __toESM(require("classnames/dedupe"));
3261
- import_react25 = require("react");
3352
+ import_dedupe27 = __toESM(require("classnames/dedupe"));
3353
+ import_react26 = require("react");
3262
3354
  init_Flex2();
3263
3355
  import_Fieldset = require("@simplybusiness/mobius/src/components/Fieldset/Fieldset.css");
3264
- import_jsx_runtime31 = require("react/jsx-runtime");
3356
+ import_jsx_runtime33 = require("react/jsx-runtime");
3265
3357
  useFieldset = (props) => {
3266
3358
  const { legend } = props;
3267
3359
  let legendProps = {};
3268
3360
  let containerProps = {
3269
3361
  role: "group"
3270
3362
  };
3271
- const legendId = (0, import_react25.useId)();
3363
+ const legendId = (0, import_react26.useId)();
3272
3364
  if (legend) {
3273
3365
  legendProps = {
3274
3366
  ...legendProps,
@@ -3288,14 +3380,14 @@ var init_Fieldset = __esm({
3288
3380
  const {
3289
3381
  children,
3290
3382
  legend,
3291
- legendComponent = /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("legend", {}),
3383
+ legendComponent = /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("legend", {}),
3292
3384
  ...otherProps
3293
3385
  } = props;
3294
3386
  const { legendProps, containerProps } = useFieldset(props);
3295
- const classes = (0, import_dedupe26.default)("mobius", "mobius-fieldset", props.className);
3387
+ const classes = (0, import_dedupe27.default)("mobius", "mobius-fieldset", props.className);
3296
3388
  legendProps.className = "mobius-fieldset__legend";
3297
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Flex, { ...containerProps, ...otherProps, className: classes, children: [
3298
- legend && (0, import_react25.cloneElement)(legendComponent, { ...legendProps }, [legend]),
3389
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Flex, { ...containerProps, ...otherProps, className: classes, children: [
3390
+ legend && (0, import_react26.cloneElement)(legendComponent, { ...legendProps }, [legend]),
3299
3391
  children
3300
3392
  ] });
3301
3393
  };
@@ -3312,13 +3404,13 @@ var init_Fieldset2 = __esm({
3312
3404
  });
3313
3405
 
3314
3406
  // src/components/Grid/Grid.tsx
3315
- var import_dedupe27, import_jsx_runtime32, Grid;
3407
+ var import_dedupe28, import_jsx_runtime34, Grid;
3316
3408
  var init_Grid = __esm({
3317
3409
  "src/components/Grid/Grid.tsx"() {
3318
3410
  "use strict";
3319
- import_dedupe27 = __toESM(require("classnames/dedupe"));
3411
+ import_dedupe28 = __toESM(require("classnames/dedupe"));
3320
3412
  init_utils();
3321
- import_jsx_runtime32 = require("react/jsx-runtime");
3413
+ import_jsx_runtime34 = require("react/jsx-runtime");
3322
3414
  Grid = ({ ref: _ref, ...props }) => {
3323
3415
  const {
3324
3416
  columns = 12,
@@ -3333,7 +3425,7 @@ var init_Grid = __esm({
3333
3425
  style,
3334
3426
  ...rest
3335
3427
  } = props;
3336
- const classes = (0, import_dedupe27.default)("mobius", "mobius-grid", className);
3428
+ const classes = (0, import_dedupe28.default)("mobius", "mobius-grid", className);
3337
3429
  const styles = filterUndefinedProps({
3338
3430
  boxSizing: "border-box",
3339
3431
  display: "grid",
@@ -3347,22 +3439,22 @@ var init_Grid = __esm({
3347
3439
  justifyItems,
3348
3440
  ...style
3349
3441
  });
3350
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { style: styles, className: classes, ...rest });
3442
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { style: styles, className: classes, ...rest });
3351
3443
  };
3352
3444
  Grid.displayName = "Grid";
3353
3445
  }
3354
3446
  });
3355
3447
 
3356
3448
  // src/components/Grid/Item.tsx
3357
- var import_react26, import_dedupe28, import_jsx_runtime33, getBreakpointMap, DEFAULT_SPAN, GridItem;
3449
+ var import_react27, import_dedupe29, import_jsx_runtime35, getBreakpointMap, DEFAULT_SPAN, GridItem;
3358
3450
  var init_Item2 = __esm({
3359
3451
  "src/components/Grid/Item.tsx"() {
3360
3452
  "use strict";
3361
3453
  "use client";
3362
- import_react26 = require("react");
3363
- import_dedupe28 = __toESM(require("classnames/dedupe"));
3454
+ import_react27 = require("react");
3455
+ import_dedupe29 = __toESM(require("classnames/dedupe"));
3364
3456
  init_hooks();
3365
- import_jsx_runtime33 = require("react/jsx-runtime");
3457
+ import_jsx_runtime35 = require("react/jsx-runtime");
3366
3458
  getBreakpointMap = (config) => Object.entries(config).reduce(
3367
3459
  (prev, [key, value]) => {
3368
3460
  const previous = Object.values(prev);
@@ -3397,9 +3489,9 @@ var init_Item2 = __esm({
3397
3489
  xl,
3398
3490
  xxl
3399
3491
  });
3400
- const [responsiveSpan, setResponsiveSpan] = (0, import_react26.useState)();
3401
- const classes = (0, import_dedupe28.default)("mobius-grid__item", className);
3402
- (0, import_react26.useEffect)(() => {
3492
+ const [responsiveSpan, setResponsiveSpan] = (0, import_react27.useState)();
3493
+ const classes = (0, import_dedupe29.default)("mobius-grid__item", className);
3494
+ (0, import_react27.useEffect)(() => {
3403
3495
  setResponsiveSpan(breakpointMap[breakpointSize]);
3404
3496
  }, [breakpointSize, breakpointMap]);
3405
3497
  const styles = {
@@ -3407,7 +3499,7 @@ var init_Item2 = __esm({
3407
3499
  alignSelf,
3408
3500
  justifySelf
3409
3501
  };
3410
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { style: { ...styles }, className: classes, ...rest });
3502
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { style: { ...styles }, className: classes, ...rest });
3411
3503
  };
3412
3504
  GridItem.displayName = "GridItem";
3413
3505
  }
@@ -3428,20 +3520,20 @@ var init_Grid2 = __esm({
3428
3520
  });
3429
3521
 
3430
3522
  // src/components/Image/Image.tsx
3431
- var import_dedupe29, import_jsx_runtime34, Image;
3523
+ var import_dedupe30, import_jsx_runtime36, Image;
3432
3524
  var init_Image = __esm({
3433
3525
  "src/components/Image/Image.tsx"() {
3434
3526
  "use strict";
3435
- import_dedupe29 = __toESM(require("classnames/dedupe"));
3436
- import_jsx_runtime34 = require("react/jsx-runtime");
3527
+ import_dedupe30 = __toESM(require("classnames/dedupe"));
3528
+ import_jsx_runtime36 = require("react/jsx-runtime");
3437
3529
  Image = ({
3438
3530
  ref,
3439
3531
  alt,
3440
3532
  elementType: Component = "img",
3441
3533
  ...otherProps
3442
3534
  }) => {
3443
- const classes = (0, import_dedupe29.default)("mobius", "mobius-image", otherProps.className);
3444
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Component, { alt, ref, ...otherProps, className: classes });
3535
+ const classes = (0, import_dedupe30.default)("mobius", "mobius-image", otherProps.className);
3536
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Component, { alt, ref, ...otherProps, className: classes });
3445
3537
  };
3446
3538
  Image.displayName = "Image";
3447
3539
  }
@@ -3456,13 +3548,13 @@ var init_Image2 = __esm({
3456
3548
  });
3457
3549
 
3458
3550
  // src/components/Link/Link.tsx
3459
- var import_dedupe30, import_Link, import_jsx_runtime35, Link;
3551
+ var import_dedupe31, import_Link, import_jsx_runtime37, Link;
3460
3552
  var init_Link = __esm({
3461
3553
  "src/components/Link/Link.tsx"() {
3462
3554
  "use strict";
3463
- import_dedupe30 = __toESM(require("classnames/dedupe"));
3555
+ import_dedupe31 = __toESM(require("classnames/dedupe"));
3464
3556
  import_Link = require("@simplybusiness/mobius/src/components/Link/Link.css");
3465
- import_jsx_runtime35 = require("react/jsx-runtime");
3557
+ import_jsx_runtime37 = require("react/jsx-runtime");
3466
3558
  Link = ({ ref, ...props }) => {
3467
3559
  const {
3468
3560
  isDisabled = false,
@@ -3476,7 +3568,7 @@ var init_Link = __esm({
3476
3568
  pointerEvents: "none"
3477
3569
  };
3478
3570
  const styles = { ...style, ...isDisabled && disabledStyles };
3479
- const classes = (0, import_dedupe30.default)(
3571
+ const classes = (0, import_dedupe31.default)(
3480
3572
  "mobius",
3481
3573
  "mobius-link",
3482
3574
  className,
@@ -3485,7 +3577,7 @@ var init_Link = __esm({
3485
3577
  "--is-disabled": isDisabled
3486
3578
  }
3487
3579
  );
3488
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3580
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3489
3581
  Component,
3490
3582
  {
3491
3583
  ref,
@@ -3510,12 +3602,12 @@ var init_Link2 = __esm({
3510
3602
  });
3511
3603
 
3512
3604
  // src/components/LinkButton/LinkButton.tsx
3513
- var import_dedupe31, import_jsx_runtime36;
3605
+ var import_dedupe32, import_jsx_runtime38;
3514
3606
  var init_LinkButton = __esm({
3515
3607
  "src/components/LinkButton/LinkButton.tsx"() {
3516
3608
  "use strict";
3517
- import_dedupe31 = __toESM(require("classnames/dedupe"));
3518
- import_jsx_runtime36 = require("react/jsx-runtime");
3609
+ import_dedupe32 = __toESM(require("classnames/dedupe"));
3610
+ import_jsx_runtime38 = require("react/jsx-runtime");
3519
3611
  }
3520
3612
  });
3521
3613
 
@@ -3528,14 +3620,14 @@ var init_LinkButton2 = __esm({
3528
3620
  });
3529
3621
 
3530
3622
  // src/components/List/List.tsx
3531
- var import_react27, import_dedupe32, import_List, import_jsx_runtime37, List;
3623
+ var import_react28, import_dedupe33, import_List, import_jsx_runtime39, List;
3532
3624
  var init_List = __esm({
3533
3625
  "src/components/List/List.tsx"() {
3534
3626
  "use strict";
3535
- import_react27 = require("react");
3536
- import_dedupe32 = __toESM(require("classnames/dedupe"));
3627
+ import_react28 = require("react");
3628
+ import_dedupe33 = __toESM(require("classnames/dedupe"));
3537
3629
  import_List = require("@simplybusiness/mobius/src/components/List/List.css");
3538
- import_jsx_runtime37 = require("react/jsx-runtime");
3630
+ import_jsx_runtime39 = require("react/jsx-runtime");
3539
3631
  List = ({ ref, ...props }) => {
3540
3632
  const Component = props.isOrdered ? "ol" : "ul";
3541
3633
  const { children, icon, ...otherProps } = props;
@@ -3544,7 +3636,7 @@ var init_List = __esm({
3544
3636
  ...restProps,
3545
3637
  reversed: isReversed
3546
3638
  };
3547
- const classes = (0, import_dedupe32.default)(
3639
+ const classes = (0, import_dedupe33.default)(
3548
3640
  "mobius",
3549
3641
  "mobius-list",
3550
3642
  {
@@ -3553,9 +3645,9 @@ var init_List = __esm({
3553
3645
  },
3554
3646
  otherProps.className
3555
3647
  );
3556
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Component, { ref, ...mappedProps, className: classes, children: import_react27.Children.map(children, (child) => {
3557
- if ((0, import_react27.isValidElement)(child)) {
3558
- return (0, import_react27.cloneElement)(child, {
3648
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Component, { ref, ...mappedProps, className: classes, children: import_react28.Children.map(children, (child) => {
3649
+ if ((0, import_react28.isValidElement)(child)) {
3650
+ return (0, import_react28.cloneElement)(child, {
3559
3651
  parentIcon: icon
3560
3652
  });
3561
3653
  }
@@ -3567,16 +3659,16 @@ var init_List = __esm({
3567
3659
  });
3568
3660
 
3569
3661
  // src/components/List/ListItem.tsx
3570
- var import_dedupe33, import_jsx_runtime38, ListItem;
3662
+ var import_dedupe34, import_jsx_runtime40, ListItem;
3571
3663
  var init_ListItem = __esm({
3572
3664
  "src/components/List/ListItem.tsx"() {
3573
3665
  "use strict";
3574
- import_dedupe33 = __toESM(require("classnames/dedupe"));
3575
- import_jsx_runtime38 = require("react/jsx-runtime");
3666
+ import_dedupe34 = __toESM(require("classnames/dedupe"));
3667
+ import_jsx_runtime40 = require("react/jsx-runtime");
3576
3668
  ListItem = ({ ref, ...props }) => {
3577
3669
  const { parentIcon, icon, children, ...otherProps } = props;
3578
3670
  const iconContent = icon || parentIcon;
3579
- const classes = (0, import_dedupe33.default)(
3671
+ const classes = (0, import_dedupe34.default)(
3580
3672
  "mobius",
3581
3673
  "mobius-list__item",
3582
3674
  {
@@ -3584,15 +3676,15 @@ var init_ListItem = __esm({
3584
3676
  },
3585
3677
  props.className
3586
3678
  );
3587
- const contentClasses = (0, import_dedupe33.default)("mobius", "mobius-list__item-content");
3588
- const iconClasses = (0, import_dedupe33.default)("mobius", "mobius-list__icon");
3679
+ const contentClasses = (0, import_dedupe34.default)("mobius", "mobius-list__item-content");
3680
+ const iconClasses = (0, import_dedupe34.default)("mobius", "mobius-list__icon");
3589
3681
  if (iconContent) {
3590
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("li", { ref, ...otherProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("span", { className: contentClasses, children: [
3591
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: iconClasses, children: iconContent }),
3682
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("li", { ref, ...otherProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("span", { className: contentClasses, children: [
3683
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: iconClasses, children: iconContent }),
3592
3684
  children
3593
3685
  ] }) });
3594
3686
  }
3595
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("li", { ref, ...otherProps, className: classes, children });
3687
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("li", { ref, ...otherProps, className: classes, children });
3596
3688
  };
3597
3689
  ListItem.displayName = "ListItem";
3598
3690
  }
@@ -3608,23 +3700,23 @@ var init_List2 = __esm({
3608
3700
  });
3609
3701
 
3610
3702
  // src/components/LoadingIndicator/LoadingIndicator.tsx
3611
- var import_dedupe34, import_icons8, import_LoadingIndicator, import_jsx_runtime39, LoadingIndicator;
3703
+ var import_dedupe35, import_icons8, import_LoadingIndicator, import_jsx_runtime41, LoadingIndicator;
3612
3704
  var init_LoadingIndicator = __esm({
3613
3705
  "src/components/LoadingIndicator/LoadingIndicator.tsx"() {
3614
3706
  "use strict";
3615
- import_dedupe34 = __toESM(require("classnames/dedupe"));
3707
+ import_dedupe35 = __toESM(require("classnames/dedupe"));
3616
3708
  import_icons8 = require("@simplybusiness/icons");
3617
3709
  init_Icon2();
3618
3710
  import_LoadingIndicator = require("@simplybusiness/mobius/src/components/LoadingIndicator/LoadingIndicator.css");
3619
- import_jsx_runtime39 = require("react/jsx-runtime");
3711
+ import_jsx_runtime41 = require("react/jsx-runtime");
3620
3712
  LoadingIndicator = ({ ref, ...props }) => {
3621
3713
  const { icon = import_icons8.loading, ...otherProps } = props;
3622
- const classes = (0, import_dedupe34.default)(
3714
+ const classes = (0, import_dedupe35.default)(
3623
3715
  "mobius",
3624
3716
  "mobius-loading-indicator",
3625
3717
  otherProps.className
3626
3718
  );
3627
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon, { icon, spin: true, ref, ...otherProps, className: classes });
3719
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon, { icon, spin: true, ref, ...otherProps, className: classes });
3628
3720
  };
3629
3721
  LoadingIndicator.displayName = "LoadingIndicator";
3630
3722
  }
@@ -3639,16 +3731,16 @@ var init_LoadingIndicator2 = __esm({
3639
3731
  });
3640
3732
 
3641
3733
  // src/components/Logo/Logo.tsx
3642
- var import_dedupe35, import_jsx_runtime40, Logo;
3734
+ var import_dedupe36, import_jsx_runtime42, Logo;
3643
3735
  var init_Logo = __esm({
3644
3736
  "src/components/Logo/Logo.tsx"() {
3645
3737
  "use strict";
3646
- import_dedupe35 = __toESM(require("classnames/dedupe"));
3647
- import_jsx_runtime40 = require("react/jsx-runtime");
3738
+ import_dedupe36 = __toESM(require("classnames/dedupe"));
3739
+ import_jsx_runtime42 = require("react/jsx-runtime");
3648
3740
  Logo = ({ ref, ...props }) => {
3649
3741
  const { className, width, height, ...otherProps } = props;
3650
- const classes = (0, import_dedupe35.default)("mobius", "mobius-logo", className);
3651
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3742
+ const classes = (0, import_dedupe36.default)("mobius", "mobius-logo", className);
3743
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
3652
3744
  "svg",
3653
3745
  {
3654
3746
  width,
@@ -3658,7 +3750,7 @@ var init_Logo = __esm({
3658
3750
  viewBox: "0 0 144 37",
3659
3751
  ...otherProps,
3660
3752
  children: [
3661
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3753
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
3662
3754
  "linearGradient",
3663
3755
  {
3664
3756
  id: "logo-gradient",
@@ -3667,27 +3759,27 @@ var init_Logo = __esm({
3667
3759
  y1: "76.042%",
3668
3760
  y2: "26.973%",
3669
3761
  children: [
3670
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("stop", { stopColor: "#4632D8", offset: "0%" }),
3671
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("stop", { stopColor: "#9084E8", offset: "100%" })
3762
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("stop", { stopColor: "#4632D8", offset: "0%" }),
3763
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("stop", { stopColor: "#9084E8", offset: "100%" })
3672
3764
  ]
3673
3765
  }
3674
3766
  ) }),
3675
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("g", { children: [
3676
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3767
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("g", { children: [
3768
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3677
3769
  "path",
3678
3770
  {
3679
3771
  fill: "#0E0A2B",
3680
3772
  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"
3681
3773
  }
3682
3774
  ),
3683
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3775
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3684
3776
  "path",
3685
3777
  {
3686
3778
  fill: "url(#logo-gradient)",
3687
3779
  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"
3688
3780
  }
3689
3781
  ),
3690
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3782
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3691
3783
  "path",
3692
3784
  {
3693
3785
  fill: "#0E0A2B",
@@ -3712,23 +3804,23 @@ var init_Logo2 = __esm({
3712
3804
  });
3713
3805
 
3714
3806
  // src/components/Modal/Content.tsx
3715
- var import_jsx_runtime41, Content2;
3807
+ var import_jsx_runtime43, Content2;
3716
3808
  var init_Content2 = __esm({
3717
3809
  "src/components/Modal/Content.tsx"() {
3718
3810
  "use strict";
3719
- import_jsx_runtime41 = require("react/jsx-runtime");
3720
- Content2 = ({ ref, children, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { ref, ...otherProps, className: "mobius-modal__content", children });
3811
+ import_jsx_runtime43 = require("react/jsx-runtime");
3812
+ Content2 = ({ ref, children, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { ref, ...otherProps, className: "mobius-modal__content", children });
3721
3813
  Content2.displayName = "Content";
3722
3814
  }
3723
3815
  });
3724
3816
 
3725
3817
  // src/components/Modal/ModalContext.tsx
3726
- var import_react28, ModalContext;
3818
+ var import_react29, ModalContext;
3727
3819
  var init_ModalContext = __esm({
3728
3820
  "src/components/Modal/ModalContext.tsx"() {
3729
3821
  "use strict";
3730
- import_react28 = require("react");
3731
- ModalContext = (0, import_react28.createContext)({
3822
+ import_react29 = require("react");
3823
+ ModalContext = (0, import_react29.createContext)({
3732
3824
  onClose: () => {
3733
3825
  },
3734
3826
  closeLabel: void 0
@@ -3737,21 +3829,21 @@ var init_ModalContext = __esm({
3737
3829
  });
3738
3830
 
3739
3831
  // src/components/Modal/useModal.ts
3740
- var import_react29, useModal;
3832
+ var import_react30, useModal;
3741
3833
  var init_useModal = __esm({
3742
3834
  "src/components/Modal/useModal.ts"() {
3743
3835
  "use strict";
3744
- import_react29 = require("react");
3836
+ import_react30 = require("react");
3745
3837
  init_ModalContext();
3746
3838
  useModal = () => {
3747
- const { onClose, closeLabel } = (0, import_react29.useContext)(ModalContext);
3839
+ const { onClose, closeLabel } = (0, import_react30.useContext)(ModalContext);
3748
3840
  return { onClose, closeLabel };
3749
3841
  };
3750
3842
  }
3751
3843
  });
3752
3844
 
3753
3845
  // src/components/Modal/Header.tsx
3754
- var import_icons9, import_jsx_runtime42, Header2;
3846
+ var import_icons9, import_jsx_runtime44, Header2;
3755
3847
  var init_Header2 = __esm({
3756
3848
  "src/components/Modal/Header.tsx"() {
3757
3849
  "use strict";
@@ -3759,12 +3851,12 @@ var init_Header2 = __esm({
3759
3851
  init_Button2();
3760
3852
  init_Icon2();
3761
3853
  init_useModal();
3762
- import_jsx_runtime42 = require("react/jsx-runtime");
3854
+ import_jsx_runtime44 = require("react/jsx-runtime");
3763
3855
  Header2 = ({ ref, children, ...otherProps }) => {
3764
3856
  const { onClose, closeLabel } = useModal();
3765
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("header", { ref, ...otherProps, className: "mobius-modal__header", children: [
3857
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("header", { ref, ...otherProps, className: "mobius-modal__header", children: [
3766
3858
  children,
3767
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
3859
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
3768
3860
  Button,
3769
3861
  {
3770
3862
  "aria-label": "Close",
@@ -3772,7 +3864,7 @@ var init_Header2 = __esm({
3772
3864
  onPress: onClose,
3773
3865
  className: "mobius-modal__close",
3774
3866
  children: [
3775
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon, { icon: import_icons9.cross }),
3867
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon, { icon: import_icons9.cross }),
3776
3868
  " ",
3777
3869
  closeLabel
3778
3870
  ]
@@ -3785,19 +3877,19 @@ var init_Header2 = __esm({
3785
3877
  });
3786
3878
 
3787
3879
  // src/components/Modal/Modal.tsx
3788
- var import_dedupe36, import_react30, import_Modal, import_jsx_runtime43, TRANSITION_CSS_VARIABLE2, Modal;
3880
+ var import_dedupe37, import_react31, import_Modal, import_jsx_runtime45, TRANSITION_CSS_VARIABLE2, Modal;
3789
3881
  var init_Modal = __esm({
3790
3882
  "src/components/Modal/Modal.tsx"() {
3791
3883
  "use strict";
3792
3884
  "use client";
3793
- import_dedupe36 = __toESM(require("classnames/dedupe"));
3794
- import_react30 = require("react");
3885
+ import_dedupe37 = __toESM(require("classnames/dedupe"));
3886
+ import_react31 = require("react");
3795
3887
  init_hooks();
3796
3888
  init_utils();
3797
3889
  init_polyfill_tests();
3798
3890
  init_ModalContext();
3799
3891
  import_Modal = require("@simplybusiness/mobius/src/components/Modal/Modal.css");
3800
- import_jsx_runtime43 = require("react/jsx-runtime");
3892
+ import_jsx_runtime45 = require("react/jsx-runtime");
3801
3893
  TRANSITION_CSS_VARIABLE2 = "--modal-transition-duration";
3802
3894
  Modal = ({ ref, ...props }) => {
3803
3895
  const {
@@ -3811,11 +3903,11 @@ var init_Modal = __esm({
3811
3903
  animation,
3812
3904
  ...rest
3813
3905
  } = props;
3814
- const [shouldTransition, setShouldTransition] = (0, import_react30.useState)(false);
3815
- (0, import_react30.useEffect)(() => {
3906
+ const [shouldTransition, setShouldTransition] = (0, import_react31.useState)(false);
3907
+ (0, import_react31.useEffect)(() => {
3816
3908
  setShouldTransition(supportsDialog());
3817
3909
  }, []);
3818
- const dialogRef = (0, import_react30.useRef)(null);
3910
+ const dialogRef = (0, import_react31.useRef)(null);
3819
3911
  const { close } = useDialog({
3820
3912
  ref: dialogRef,
3821
3913
  isOpen,
@@ -3826,7 +3918,7 @@ var init_Modal = __esm({
3826
3918
  CSSVariable: TRANSITION_CSS_VARIABLE2
3827
3919
  }
3828
3920
  });
3829
- const modalClasses = (0, import_dedupe36.default)(
3921
+ const modalClasses = (0, import_dedupe37.default)(
3830
3922
  "mobius",
3831
3923
  "mobius-modal",
3832
3924
  {
@@ -3839,21 +3931,21 @@ var init_Modal = __esm({
3839
3931
  },
3840
3932
  className
3841
3933
  );
3842
- const contextValue = (0, import_react30.useMemo)(
3934
+ const contextValue = (0, import_react31.useMemo)(
3843
3935
  () => ({
3844
3936
  onClose: close,
3845
3937
  closeLabel
3846
3938
  }),
3847
3939
  [close, closeLabel]
3848
3940
  );
3849
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3941
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
3850
3942
  "dialog",
3851
3943
  {
3852
3944
  ref: mergeRefs([dialogRef, ref]),
3853
3945
  onCancel: close,
3854
3946
  className: modalClasses,
3855
3947
  ...rest,
3856
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ModalContext.Provider, { value: contextValue, children })
3948
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ModalContext.Provider, { value: contextValue, children })
3857
3949
  }
3858
3950
  );
3859
3951
  };
@@ -3878,16 +3970,16 @@ var init_Modal2 = __esm({
3878
3970
  });
3879
3971
 
3880
3972
  // src/components/NumberField/NumberField.tsx
3881
- var import_dedupe37, import_react31, import_NumberField, import_jsx_runtime44, NumberField;
3973
+ var import_dedupe38, import_react32, import_NumberField, import_jsx_runtime46, NumberField;
3882
3974
  var init_NumberField = __esm({
3883
3975
  "src/components/NumberField/NumberField.tsx"() {
3884
3976
  "use strict";
3885
3977
  "use client";
3886
- import_dedupe37 = __toESM(require("classnames/dedupe"));
3887
- import_react31 = require("react");
3978
+ import_dedupe38 = __toESM(require("classnames/dedupe"));
3979
+ import_react32 = require("react");
3888
3980
  init_TextField2();
3889
3981
  import_NumberField = require("@simplybusiness/mobius/src/components/NumberField/NumberField.css");
3890
- import_jsx_runtime44 = require("react/jsx-runtime");
3982
+ import_jsx_runtime46 = require("react/jsx-runtime");
3891
3983
  NumberField = ({ ref, ...props }) => {
3892
3984
  const {
3893
3985
  minValue,
@@ -3903,15 +3995,15 @@ var init_NumberField = __esm({
3903
3995
  onBlur: customOnBlur,
3904
3996
  ...rest
3905
3997
  } = otherProps;
3906
- const focusedInputRef = (0, import_react31.useRef)(null);
3907
- const wheelHandler = (0, import_react31.useCallback)((ev) => ev.preventDefault(), []);
3908
- (0, import_react31.useEffect)(() => {
3998
+ const focusedInputRef = (0, import_react32.useRef)(null);
3999
+ const wheelHandler = (0, import_react32.useCallback)((ev) => ev.preventDefault(), []);
4000
+ (0, import_react32.useEffect)(() => {
3909
4001
  return () => {
3910
4002
  focusedInputRef.current?.removeEventListener("wheel", wheelHandler);
3911
4003
  focusedInputRef.current = null;
3912
4004
  };
3913
4005
  }, [wheelHandler]);
3914
- const containerClasses = (0, import_dedupe37.default)("mobius-number-field", className, {
4006
+ const containerClasses = (0, import_dedupe38.default)("mobius-number-field", className, {
3915
4007
  "--hide-spin-buttons": hideSpinButtons
3916
4008
  });
3917
4009
  const handleBeforeInput = (event) => {
@@ -3955,7 +4047,7 @@ var init_NumberField = __esm({
3955
4047
  },
3956
4048
  onBlur: (e) => handleBlur(e)
3957
4049
  };
3958
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4050
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
3959
4051
  TextField,
3960
4052
  {
3961
4053
  ...forwardedProps,
@@ -3983,18 +4075,18 @@ var init_NumberField2 = __esm({
3983
4075
  });
3984
4076
 
3985
4077
  // src/components/Option/Option.tsx
3986
- var import_jsx_runtime45, Option2;
4078
+ var import_jsx_runtime47, Option2;
3987
4079
  var init_Option2 = __esm({
3988
4080
  "src/components/Option/Option.tsx"() {
3989
4081
  "use strict";
3990
- import_jsx_runtime45 = require("react/jsx-runtime");
4082
+ import_jsx_runtime47 = require("react/jsx-runtime");
3991
4083
  Option2 = ({ ref, ...props }) => {
3992
4084
  const { isDisabled, ...rest } = props;
3993
4085
  const mappedProps = {
3994
4086
  ...rest,
3995
4087
  disabled: isDisabled
3996
4088
  };
3997
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("option", { ...mappedProps, ref });
4089
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("option", { ...mappedProps, ref });
3998
4090
  };
3999
4091
  Option2.displayName = "Option";
4000
4092
  }
@@ -4009,17 +4101,17 @@ var init_Option3 = __esm({
4009
4101
  });
4010
4102
 
4011
4103
  // src/components/PasswordField/ShowHideButton.tsx
4012
- var import_icons10, import_jsx_runtime46, ShowHideButton;
4104
+ var import_icons10, import_jsx_runtime48, ShowHideButton;
4013
4105
  var init_ShowHideButton = __esm({
4014
4106
  "src/components/PasswordField/ShowHideButton.tsx"() {
4015
4107
  "use strict";
4016
4108
  import_icons10 = require("@simplybusiness/icons");
4017
4109
  init_src();
4018
- import_jsx_runtime46 = require("react/jsx-runtime");
4110
+ import_jsx_runtime48 = require("react/jsx-runtime");
4019
4111
  ShowHideButton = ({
4020
4112
  show = false,
4021
4113
  onClick
4022
- }) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4114
+ }) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4023
4115
  "button",
4024
4116
  {
4025
4117
  className: "mobius-password-field__show-button",
@@ -4030,35 +4122,35 @@ var init_ShowHideButton = __esm({
4030
4122
  },
4031
4123
  "aria-label": `${show ? "Hide" : "Show"} password`,
4032
4124
  "data-testid": "show-hide-button",
4033
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Icon, { icon: show ? import_icons10.eyeSlash : import_icons10.eye, "aria-hidden": "true" })
4125
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icon, { icon: show ? import_icons10.eyeSlash : import_icons10.eye, "aria-hidden": "true" })
4034
4126
  }
4035
4127
  );
4036
4128
  }
4037
4129
  });
4038
4130
 
4039
4131
  // src/components/PasswordField/PasswordField.tsx
4040
- var import_dedupe38, import_react32, import_PasswordField, import_jsx_runtime47, PasswordField;
4132
+ var import_dedupe39, import_react33, import_PasswordField, import_jsx_runtime49, PasswordField;
4041
4133
  var init_PasswordField = __esm({
4042
4134
  "src/components/PasswordField/PasswordField.tsx"() {
4043
4135
  "use strict";
4044
4136
  "use client";
4045
- import_dedupe38 = __toESM(require("classnames/dedupe"));
4046
- import_react32 = require("react");
4137
+ import_dedupe39 = __toESM(require("classnames/dedupe"));
4138
+ import_react33 = require("react");
4047
4139
  init_mergeRefs();
4048
4140
  init_TextField2();
4049
4141
  init_ShowHideButton();
4050
4142
  import_PasswordField = require("@simplybusiness/mobius/src/components/PasswordField/PasswordField.css");
4051
- import_jsx_runtime47 = require("react/jsx-runtime");
4143
+ import_jsx_runtime49 = require("react/jsx-runtime");
4052
4144
  PasswordField = ({
4053
4145
  ref,
4054
4146
  className,
4055
4147
  autoComplete = "current-password",
4056
4148
  ...props
4057
4149
  }) => {
4058
- const [show, setShow] = (0, import_react32.useState)(false);
4150
+ const [show, setShow] = (0, import_react33.useState)(false);
4059
4151
  const type = show ? "text" : "password";
4060
- const classes = (0, import_dedupe38.default)("mobius-password-field", className);
4061
- const localRef = (0, import_react32.useRef)(null);
4152
+ const classes = (0, import_dedupe39.default)("mobius-password-field", className);
4153
+ const localRef = (0, import_react33.useRef)(null);
4062
4154
  const handleShowHideButtonClick = () => {
4063
4155
  const selectionStart = localRef.current?.selectionStart;
4064
4156
  const selectionEnd = localRef.current?.selectionEnd;
@@ -4070,7 +4162,7 @@ var init_PasswordField = __esm({
4070
4162
  }
4071
4163
  });
4072
4164
  };
4073
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4165
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4074
4166
  TextField,
4075
4167
  {
4076
4168
  ref: mergeRefs([localRef, ref]),
@@ -4078,7 +4170,7 @@ var init_PasswordField = __esm({
4078
4170
  ...props,
4079
4171
  autoComplete,
4080
4172
  type,
4081
- suffixInside: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ShowHideButton, { onClick: handleShowHideButtonClick, show })
4173
+ suffixInside: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ShowHideButton, { onClick: handleShowHideButtonClick, show })
4082
4174
  }
4083
4175
  );
4084
4176
  };
@@ -4095,17 +4187,17 @@ var init_PasswordField2 = __esm({
4095
4187
  });
4096
4188
 
4097
4189
  // src/components/Popover/Popover.tsx
4098
- var import_react33, import_icons11, import_dedupe39, import_react34, import_mobius_hooks6, import_Popover, import_jsx_runtime48;
4190
+ var import_react34, import_icons11, import_dedupe40, import_react35, import_mobius_hooks6, import_Popover, import_jsx_runtime50;
4099
4191
  var init_Popover = __esm({
4100
4192
  "src/components/Popover/Popover.tsx"() {
4101
4193
  "use strict";
4102
- import_react33 = require("@floating-ui/react");
4194
+ import_react34 = require("@floating-ui/react");
4103
4195
  import_icons11 = require("@simplybusiness/icons");
4104
- import_dedupe39 = __toESM(require("classnames/dedupe"));
4105
- import_react34 = require("react");
4196
+ import_dedupe40 = __toESM(require("classnames/dedupe"));
4197
+ import_react35 = require("react");
4106
4198
  import_mobius_hooks6 = require("@simplybusiness/mobius-hooks");
4107
4199
  import_Popover = require("@simplybusiness/mobius/src/components/Popover/Popover.css");
4108
- import_jsx_runtime48 = require("react/jsx-runtime");
4200
+ import_jsx_runtime50 = require("react/jsx-runtime");
4109
4201
  }
4110
4202
  });
4111
4203
 
@@ -4129,17 +4221,17 @@ function warnAboutInvalidValues(value, minValue, maxValue) {
4129
4221
  console.warn("Progress value is greater than maxValue");
4130
4222
  }
4131
4223
  }
4132
- var import_dedupe40, import_react35, import_Progress, import_jsx_runtime49, sanitizedValue, getLabelComponent, DEFAULT_VALUE, DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, Progress;
4224
+ var import_dedupe41, import_react36, import_Progress, import_jsx_runtime51, sanitizedValue, getLabelComponent, DEFAULT_VALUE, DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, Progress;
4133
4225
  var init_Progress = __esm({
4134
4226
  "src/components/Progress/Progress.tsx"() {
4135
4227
  "use strict";
4136
4228
  "use client";
4137
- import_dedupe40 = __toESM(require("classnames/dedupe"));
4138
- import_react35 = require("react");
4229
+ import_dedupe41 = __toESM(require("classnames/dedupe"));
4230
+ import_react36 = require("react");
4139
4231
  init_Label2();
4140
4232
  init_VisuallyHidden2();
4141
4233
  import_Progress = require("@simplybusiness/mobius/src/components/Progress/Progress.css");
4142
- import_jsx_runtime49 = require("react/jsx-runtime");
4234
+ import_jsx_runtime51 = require("react/jsx-runtime");
4143
4235
  sanitizedValue = (value, defaultValue) => {
4144
4236
  if (value === void 0 || Number.isNaN(value)) {
4145
4237
  return defaultValue;
@@ -4148,7 +4240,7 @@ var init_Progress = __esm({
4148
4240
  };
4149
4241
  getLabelComponent = (label, progressLabelId, showLabel) => {
4150
4242
  if (showLabel) {
4151
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4243
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4152
4244
  Label,
4153
4245
  {
4154
4246
  id: progressLabelId,
@@ -4158,7 +4250,7 @@ var init_Progress = __esm({
4158
4250
  }
4159
4251
  );
4160
4252
  }
4161
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4253
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4162
4254
  Label,
4163
4255
  {
4164
4256
  id: progressLabelId,
@@ -4172,8 +4264,8 @@ var init_Progress = __esm({
4172
4264
  DEFAULT_MIN_VALUE = 0;
4173
4265
  DEFAULT_MAX_VALUE = 100;
4174
4266
  Progress = ({ ref, ...props }) => {
4175
- const progressId = (0, import_react35.useId)();
4176
- const progressLabelId = (0, import_react35.useId)();
4267
+ const progressId = (0, import_react36.useId)();
4268
+ const progressLabelId = (0, import_react36.useId)();
4177
4269
  const {
4178
4270
  id,
4179
4271
  label,
@@ -4198,7 +4290,7 @@ var init_Progress = __esm({
4198
4290
  100
4199
4291
  );
4200
4292
  const barWidth = `${percentage}%`;
4201
- const classes = (0, import_dedupe40.default)("mobius", "mobius-progress", className, {
4293
+ const classes = (0, import_dedupe41.default)("mobius", "mobius-progress", className, {
4202
4294
  "--is-primary": variant === "primary",
4203
4295
  "--is-secondary": variant === "secondary"
4204
4296
  });
@@ -4208,7 +4300,7 @@ var init_Progress = __esm({
4208
4300
  progressBarProps["aria-valuenow"] = value.toString();
4209
4301
  progressBarProps["aria-valuetext"] = valueFormatter instanceof Function ? valueFormatter(value, minValue, maxValue) : barWidth;
4210
4302
  const labelComponent = getLabelComponent(label, progressLabelId, showLabel);
4211
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
4303
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
4212
4304
  "div",
4213
4305
  {
4214
4306
  id: id || progressId,
@@ -4219,8 +4311,8 @@ var init_Progress = __esm({
4219
4311
  "aria-labelledby": progressLabelId,
4220
4312
  children: [
4221
4313
  labelComponent,
4222
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "mobius-progress__track", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "mobius-progress__bar", style: { width: barWidth } }) }),
4223
- showValueLabel && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Label, { "data-testid": "value-label", elementType: "span", children: progressBarProps["aria-valuetext"] })
4314
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "mobius-progress__track", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "mobius-progress__bar", style: { width: barWidth } }) }),
4315
+ showValueLabel && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Label, { "data-testid": "value-label", elementType: "span", children: progressBarProps["aria-valuetext"] })
4224
4316
  ]
4225
4317
  }
4226
4318
  );
@@ -4238,17 +4330,17 @@ var init_Progress2 = __esm({
4238
4330
  });
4239
4331
 
4240
4332
  // src/components/Radio/Radio.tsx
4241
- var import_dedupe41, import_react36, import_Radio, import_jsx_runtime50, Radio;
4333
+ var import_dedupe42, import_react37, import_Radio, import_jsx_runtime52, Radio;
4242
4334
  var init_Radio = __esm({
4243
4335
  "src/components/Radio/Radio.tsx"() {
4244
4336
  "use strict";
4245
4337
  "use client";
4246
- import_dedupe41 = __toESM(require("classnames/dedupe"));
4247
- import_react36 = require("react");
4338
+ import_dedupe42 = __toESM(require("classnames/dedupe"));
4339
+ import_react37 = require("react");
4248
4340
  init_ErrorMessage();
4249
4341
  init_Label2();
4250
4342
  import_Radio = require("@simplybusiness/mobius/src/components/Radio/Radio.css");
4251
- import_jsx_runtime50 = require("react/jsx-runtime");
4343
+ import_jsx_runtime52 = require("react/jsx-runtime");
4252
4344
  Radio = ({ ref, ...props }) => {
4253
4345
  const {
4254
4346
  children,
@@ -4272,19 +4364,19 @@ var init_Radio = __esm({
4272
4364
  const isMultiline = label && children;
4273
4365
  const isControlled = selected !== void 0;
4274
4366
  const isChecked = isControlled ? selected === value : defaultChecked;
4275
- const contentRef = (0, import_react36.useRef)(null);
4276
- const prevOverflowRef = (0, import_react36.useRef)({
4367
+ const contentRef = (0, import_react37.useRef)(null);
4368
+ const prevOverflowRef = (0, import_react37.useRef)({
4277
4369
  vertical: false,
4278
4370
  horizontal: false
4279
4371
  });
4280
- const hasIconFirst = (0, import_react36.useMemo)(() => {
4281
- if (!children || import_react36.Children.count(children) === 0) return false;
4282
- const firstChild = import_react36.Children.toArray(children)[0];
4283
- if (!(0, import_react36.isValidElement)(firstChild)) return false;
4372
+ const hasIconFirst = (0, import_react37.useMemo)(() => {
4373
+ if (!children || import_react37.Children.count(children) === 0) return false;
4374
+ const firstChild = import_react37.Children.toArray(children)[0];
4375
+ if (!(0, import_react37.isValidElement)(firstChild)) return false;
4284
4376
  const props2 = firstChild.props;
4285
4377
  return "icon" in props2 && props2.icon !== void 0;
4286
4378
  }, [children]);
4287
- (0, import_react36.useLayoutEffect)(() => {
4379
+ (0, import_react37.useLayoutEffect)(() => {
4288
4380
  if (!contentRef.current || !onOverflow) return;
4289
4381
  if (orientation === "vertical") {
4290
4382
  return;
@@ -4313,13 +4405,13 @@ var init_Radio = __esm({
4313
4405
  "--is-multiline": !!isMultiline,
4314
4406
  "--is-required": isRequired
4315
4407
  };
4316
- const containerClasses = (0, import_dedupe41.default)(
4408
+ const containerClasses = (0, import_dedupe42.default)(
4317
4409
  "mobius-radio__label",
4318
4410
  radioClasses,
4319
4411
  className,
4320
4412
  { "--has-icon-first": hasIconFirst }
4321
4413
  );
4322
- const inputClasses = (0, import_dedupe41.default)("mobius-radio__input", radioClasses);
4414
+ const inputClasses = (0, import_dedupe42.default)("mobius-radio__input", radioClasses);
4323
4415
  const { "aria-describedby": _ariaDescribedBy, ...rest } = otherProps;
4324
4416
  const handleChange = (event) => {
4325
4417
  if (setSelected) {
@@ -4333,9 +4425,9 @@ var init_Radio = __esm({
4333
4425
  onChange(adaptedEvent);
4334
4426
  }
4335
4427
  };
4336
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
4337
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Label, { className: containerClasses, children: [
4338
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4428
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
4429
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Label, { className: containerClasses, children: [
4430
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4339
4431
  "input",
4340
4432
  {
4341
4433
  "aria-describedby": otherProps["aria-describedby"],
@@ -4352,12 +4444,12 @@ var init_Radio = __esm({
4352
4444
  ...rest
4353
4445
  }
4354
4446
  ),
4355
- isMultiline ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { ref: contentRef, className: "mobius-radio__content--multiline", children: [
4356
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "mobius-radio__content-first-line", children: label }),
4357
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "mobius-radio__extra-content", children })
4358
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { ref: contentRef, className: "mobius-radio__content", children: label || children })
4447
+ isMultiline ? /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { ref: contentRef, className: "mobius-radio__content--multiline", children: [
4448
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "mobius-radio__content-first-line", children: label }),
4449
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "mobius-radio__extra-content", children })
4450
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { ref: contentRef, className: "mobius-radio__content", children: label || children })
4359
4451
  ] }),
4360
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ErrorMessage, { errorMessage })
4452
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ErrorMessage, { errorMessage })
4361
4453
  ] });
4362
4454
  };
4363
4455
  Radio.displayName = "Radio";
@@ -4365,19 +4457,19 @@ var init_Radio = __esm({
4365
4457
  });
4366
4458
 
4367
4459
  // src/components/Radio/RadioGroup.tsx
4368
- var import_dedupe42, import_react37, import_jsx_runtime51, getDefaultVal, RadioGroup;
4460
+ var import_dedupe43, import_react38, import_jsx_runtime53, getDefaultVal, RadioGroup;
4369
4461
  var init_RadioGroup = __esm({
4370
4462
  "src/components/Radio/RadioGroup.tsx"() {
4371
4463
  "use strict";
4372
4464
  "use client";
4373
- import_dedupe42 = __toESM(require("classnames/dedupe"));
4374
- import_react37 = require("react");
4465
+ import_dedupe43 = __toESM(require("classnames/dedupe"));
4466
+ import_react38 = require("react");
4375
4467
  init_hooks();
4376
4468
  init_spaceDelimitedList();
4377
4469
  init_ErrorMessage();
4378
4470
  init_Label2();
4379
4471
  init_Stack2();
4380
- import_jsx_runtime51 = require("react/jsx-runtime");
4472
+ import_jsx_runtime53 = require("react/jsx-runtime");
4381
4473
  getDefaultVal = (children, defaultValue) => {
4382
4474
  if (Array.isArray(children) && defaultValue) {
4383
4475
  const option = children?.find((item) => item.props.value === defaultValue);
@@ -4405,15 +4497,15 @@ var init_RadioGroup = __esm({
4405
4497
  ...rest
4406
4498
  } = props;
4407
4499
  const defaultSelected = getDefaultVal(children, value || defaultValue);
4408
- const [selected, setSelected] = (0, import_react37.useState)(defaultSelected);
4409
- const overflowsRef = (0, import_react37.useRef)({});
4410
- const [hasOverflow, setHasOverflow] = (0, import_react37.useState)(false);
4411
- (0, import_react37.useEffect)(() => {
4500
+ const [selected, setSelected] = (0, import_react38.useState)(defaultSelected);
4501
+ const overflowsRef = (0, import_react38.useRef)({});
4502
+ const [hasOverflow, setHasOverflow] = (0, import_react38.useState)(false);
4503
+ (0, import_react38.useEffect)(() => {
4412
4504
  if (value !== void 0) {
4413
4505
  setSelected(value);
4414
4506
  }
4415
4507
  }, [value]);
4416
- const handleOverflow = (0, import_react37.useCallback)(
4508
+ const handleOverflow = (0, import_react38.useCallback)(
4417
4509
  (radioValue, overflow) => {
4418
4510
  overflowsRef.current = {
4419
4511
  ...overflowsRef.current,
@@ -4437,26 +4529,26 @@ var init_RadioGroup = __esm({
4437
4529
  [`--is-${effectiveOrientation}`]: true,
4438
4530
  [className || ""]: true
4439
4531
  };
4440
- const radioGroupClasses = (0, import_dedupe42.default)(
4532
+ const radioGroupClasses = (0, import_dedupe43.default)(
4441
4533
  "mobius",
4442
4534
  "mobius-radio-group",
4443
4535
  radioClasses,
4444
4536
  validationClasses
4445
4537
  );
4446
- const radioWrapperClasses = (0, import_dedupe42.default)("mobius-radio__wrapper", {
4538
+ const radioWrapperClasses = (0, import_dedupe43.default)("mobius-radio__wrapper", {
4447
4539
  [`--is-${effectiveOrientation}`]: true
4448
4540
  });
4449
- const labelClasses = (0, import_dedupe42.default)(radioClasses, validationClasses);
4450
- const errorMessageId = (0, import_react37.useId)();
4451
- const defaultNameAttrId = (0, import_react37.useId)();
4541
+ const labelClasses = (0, import_dedupe43.default)(radioClasses, validationClasses);
4542
+ const errorMessageId = (0, import_react38.useId)();
4543
+ const defaultNameAttrId = (0, import_react38.useId)();
4452
4544
  const nameAttribute = name || defaultNameAttrId;
4453
4545
  const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
4454
4546
  const describedBy = spaceDelimitedList([
4455
4547
  shouldErrorMessageShow,
4456
4548
  props["aria-describedby"]
4457
4549
  ]);
4458
- const labelId = (0, import_react37.useId)();
4459
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4550
+ const labelId = (0, import_react38.useId)();
4551
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
4460
4552
  "div",
4461
4553
  {
4462
4554
  ...rest,
@@ -4472,12 +4564,12 @@ var init_RadioGroup = __esm({
4472
4564
  ref,
4473
4565
  className: radioGroupClasses,
4474
4566
  role: "radiogroup",
4475
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Stack, { gap: "xs", children: [
4476
- label && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Label, { htmlFor: name, id: labelId, className: labelClasses, children: label }),
4477
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: radioWrapperClasses, children: import_react37.Children.map(children, (child) => {
4478
- if ((0, import_react37.isValidElement)(child)) {
4567
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Stack, { gap: "xs", children: [
4568
+ label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label, { htmlFor: name, id: labelId, className: labelClasses, children: label }),
4569
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: radioWrapperClasses, children: import_react38.Children.map(children, (child) => {
4570
+ if ((0, import_react38.isValidElement)(child)) {
4479
4571
  const childValue = child.props.value;
4480
- return (0, import_react37.cloneElement)(
4572
+ return (0, import_react38.cloneElement)(
4481
4573
  child,
4482
4574
  {
4483
4575
  orientation: effectiveOrientation,
@@ -4495,7 +4587,7 @@ var init_RadioGroup = __esm({
4495
4587
  }
4496
4588
  return child;
4497
4589
  }) }),
4498
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
4590
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
4499
4591
  ] })
4500
4592
  }
4501
4593
  );
@@ -4514,47 +4606,47 @@ var init_Radio2 = __esm({
4514
4606
  });
4515
4607
 
4516
4608
  // src/components/Segment/SegmentGroup.tsx
4517
- var import_dedupe43, import_jsx_runtime52, SegmentGroup;
4609
+ var import_dedupe44, import_jsx_runtime54, SegmentGroup;
4518
4610
  var init_SegmentGroup = __esm({
4519
4611
  "src/components/Segment/SegmentGroup.tsx"() {
4520
4612
  "use strict";
4521
- import_dedupe43 = __toESM(require("classnames/dedupe"));
4522
- import_jsx_runtime52 = require("react/jsx-runtime");
4613
+ import_dedupe44 = __toESM(require("classnames/dedupe"));
4614
+ import_jsx_runtime54 = require("react/jsx-runtime");
4523
4615
  SegmentGroup = (props) => {
4524
4616
  const { children, horizontal, gap, className, ...rest } = props;
4525
4617
  const gapClass = gap ? `gap-${gap}` : "";
4526
- const classes = (0, import_dedupe43.default)(
4618
+ const classes = (0, import_dedupe44.default)(
4527
4619
  "mobius",
4528
4620
  "mobius-segment-group",
4529
4621
  className,
4530
4622
  { "--is-horizontal": horizontal },
4531
4623
  gapClass
4532
4624
  );
4533
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: classes, ...rest, children });
4625
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: classes, ...rest, children });
4534
4626
  };
4535
4627
  SegmentGroup.displayName = "SegmentGroup";
4536
4628
  }
4537
4629
  });
4538
4630
 
4539
4631
  // src/components/Segment/Segment.tsx
4540
- var import_dedupe44, import_Segment, import_jsx_runtime53, Segment;
4632
+ var import_dedupe45, import_Segment, import_jsx_runtime55, Segment;
4541
4633
  var init_Segment = __esm({
4542
4634
  "src/components/Segment/Segment.tsx"() {
4543
4635
  "use strict";
4544
- import_dedupe44 = __toESM(require("classnames/dedupe"));
4636
+ import_dedupe45 = __toESM(require("classnames/dedupe"));
4545
4637
  import_Segment = require("@simplybusiness/mobius/src/components/Segment/Segment.css");
4546
- import_jsx_runtime53 = require("react/jsx-runtime");
4638
+ import_jsx_runtime55 = require("react/jsx-runtime");
4547
4639
  Segment = (props) => {
4548
4640
  const { heading, children, colour, inverted, className, ...rest } = props;
4549
- const classes = (0, import_dedupe44.default)(
4641
+ const classes = (0, import_dedupe45.default)(
4550
4642
  "mobius",
4551
4643
  "mobius-segment",
4552
4644
  colour,
4553
4645
  { inverted },
4554
4646
  className
4555
4647
  );
4556
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: classes, ...rest, children: [
4557
- heading && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "mobius-segment__heading", children: heading }),
4648
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: classes, ...rest, children: [
4649
+ heading && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "mobius-segment__heading", children: heading }),
4558
4650
  children
4559
4651
  ] });
4560
4652
  };
@@ -4572,14 +4664,14 @@ var init_Segment2 = __esm({
4572
4664
  });
4573
4665
 
4574
4666
  // src/components/Select/Select.tsx
4575
- var import_icons12, import_dedupe45, import_react38, import_Select, import_jsx_runtime54, Select;
4667
+ var import_icons12, import_dedupe46, import_react39, import_Select, import_jsx_runtime56, Select;
4576
4668
  var init_Select = __esm({
4577
4669
  "src/components/Select/Select.tsx"() {
4578
4670
  "use strict";
4579
4671
  "use client";
4580
4672
  import_icons12 = require("@simplybusiness/icons");
4581
- import_dedupe45 = __toESM(require("classnames/dedupe"));
4582
- import_react38 = require("react");
4673
+ import_dedupe46 = __toESM(require("classnames/dedupe"));
4674
+ import_react39 = require("react");
4583
4675
  init_hooks();
4584
4676
  init_useLabel2();
4585
4677
  init_spaceDelimitedList();
@@ -4588,7 +4680,7 @@ var init_Select = __esm({
4588
4680
  init_Label2();
4589
4681
  init_Stack2();
4590
4682
  import_Select = require("@simplybusiness/mobius/src/components/Select/Select.css");
4591
- import_jsx_runtime54 = require("react/jsx-runtime");
4683
+ import_jsx_runtime56 = require("react/jsx-runtime");
4592
4684
  Select = ({ ref, ...props }) => {
4593
4685
  const {
4594
4686
  label,
@@ -4609,24 +4701,24 @@ var init_Select = __esm({
4609
4701
  "--is-required": typeof isRequired === "boolean" && isRequired,
4610
4702
  "--is-optional": typeof isRequired === "boolean" && !isRequired
4611
4703
  };
4612
- const sharedClasses = (0, import_dedupe45.default)(validationClasses, stateClasses);
4613
- const wrapperClasses = (0, import_dedupe45.default)(
4704
+ const sharedClasses = (0, import_dedupe46.default)(validationClasses, stateClasses);
4705
+ const wrapperClasses = (0, import_dedupe46.default)(
4614
4706
  "mobius-select__wrapper",
4615
4707
  sharedClasses,
4616
4708
  otherProps.className
4617
4709
  );
4618
- const selectClasses = (0, import_dedupe45.default)(
4710
+ const selectClasses = (0, import_dedupe46.default)(
4619
4711
  "mobius-select",
4620
4712
  sharedClasses,
4621
4713
  otherProps.className
4622
4714
  );
4623
- const labelClasses = (0, import_dedupe45.default)(
4715
+ const labelClasses = (0, import_dedupe46.default)(
4624
4716
  "mobius-label",
4625
4717
  sharedClasses,
4626
4718
  otherProps.className
4627
4719
  );
4628
- const iconClasses = (0, import_dedupe45.default)("mobius-select__icon", sharedClasses);
4629
- const errorMessageId = (0, import_react38.useId)();
4720
+ const iconClasses = (0, import_dedupe46.default)("mobius-select__icon", sharedClasses);
4721
+ const errorMessageId = (0, import_react39.useId)();
4630
4722
  const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
4631
4723
  const describedBy = spaceDelimitedList([
4632
4724
  shouldErrorMessageShow,
@@ -4637,10 +4729,10 @@ var init_Select = __esm({
4637
4729
  onChange(e);
4638
4730
  }
4639
4731
  };
4640
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Stack, { className: "mobius mobius-select__outer", gap: "xs", children: [
4641
- label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Label, { ...labelProps, className: labelClasses, children: label }),
4642
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: wrapperClasses, children: [
4643
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
4732
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Stack, { className: "mobius mobius-select__outer", gap: "xs", children: [
4733
+ label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Label, { ...labelProps, className: labelClasses, children: label }),
4734
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: wrapperClasses, children: [
4735
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
4644
4736
  "select",
4645
4737
  {
4646
4738
  ...otherProps,
@@ -4656,9 +4748,9 @@ var init_Select = __esm({
4656
4748
  onChange: handleChange
4657
4749
  }
4658
4750
  ),
4659
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: iconClasses, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { icon: import_icons12.chevronDown }) })
4751
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: iconClasses, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { icon: import_icons12.chevronDown }) })
4660
4752
  ] }),
4661
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
4753
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
4662
4754
  ] });
4663
4755
  };
4664
4756
  Select.displayName = "Select";
@@ -4674,15 +4766,15 @@ var init_Select2 = __esm({
4674
4766
  });
4675
4767
 
4676
4768
  // src/components/Slider/Slider.tsx
4677
- var import_dedupe46, import_react39, import_Slider, import_jsx_runtime55;
4769
+ var import_dedupe47, import_react40, import_Slider, import_jsx_runtime57;
4678
4770
  var init_Slider = __esm({
4679
4771
  "src/components/Slider/Slider.tsx"() {
4680
4772
  "use strict";
4681
4773
  "use client";
4682
- import_dedupe46 = __toESM(require("classnames/dedupe"));
4683
- import_react39 = require("react");
4774
+ import_dedupe47 = __toESM(require("classnames/dedupe"));
4775
+ import_react40 = require("react");
4684
4776
  import_Slider = require("@simplybusiness/mobius/src/components/Slider/Slider.css");
4685
- import_jsx_runtime55 = require("react/jsx-runtime");
4777
+ import_jsx_runtime57 = require("react/jsx-runtime");
4686
4778
  }
4687
4779
  });
4688
4780
 
@@ -4695,19 +4787,19 @@ var init_Slider2 = __esm({
4695
4787
  });
4696
4788
 
4697
4789
  // src/components/SVG/SVG.tsx
4698
- var import_react40, import_dedupe47, import_jsx_runtime56, SVG;
4790
+ var import_react41, import_dedupe48, import_jsx_runtime58, SVG;
4699
4791
  var init_SVG = __esm({
4700
4792
  "src/components/SVG/SVG.tsx"() {
4701
4793
  "use strict";
4702
- import_react40 = require("react");
4703
- import_dedupe47 = __toESM(require("classnames/dedupe"));
4704
- import_jsx_runtime56 = require("react/jsx-runtime");
4794
+ import_react41 = require("react");
4795
+ import_dedupe48 = __toESM(require("classnames/dedupe"));
4796
+ import_jsx_runtime58 = require("react/jsx-runtime");
4705
4797
  SVG = ({ ref, ...props }) => {
4706
4798
  const { children, className, ...otherProps } = props;
4707
- const classes = (0, import_dedupe47.default)("mobius", "mobius-svg", className);
4708
- const svgNode = import_react40.Children.only(children);
4799
+ const classes = (0, import_dedupe48.default)("mobius", "mobius-svg", className);
4800
+ const svgNode = import_react41.Children.only(children);
4709
4801
  const { children: svgChildren, viewBox, xmlns } = svgNode.props;
4710
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
4802
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
4711
4803
  "svg",
4712
4804
  {
4713
4805
  viewBox,
@@ -4732,16 +4824,16 @@ var init_SVG2 = __esm({
4732
4824
  });
4733
4825
 
4734
4826
  // src/components/Switch/Switch.tsx
4735
- var import_react41, import_dedupe48, import_Switch, import_jsx_runtime57, Switch;
4827
+ var import_react42, import_dedupe49, import_Switch, import_jsx_runtime59, Switch;
4736
4828
  var init_Switch = __esm({
4737
4829
  "src/components/Switch/Switch.tsx"() {
4738
4830
  "use strict";
4739
4831
  "use client";
4740
- import_react41 = require("react");
4741
- import_dedupe48 = __toESM(require("classnames/dedupe"));
4832
+ import_react42 = require("react");
4833
+ import_dedupe49 = __toESM(require("classnames/dedupe"));
4742
4834
  init_VisuallyHidden2();
4743
4835
  import_Switch = require("@simplybusiness/mobius/src/components/Switch/Switch.css");
4744
- import_jsx_runtime57 = require("react/jsx-runtime");
4836
+ import_jsx_runtime59 = require("react/jsx-runtime");
4745
4837
  Switch = ({ ref, ...props }) => {
4746
4838
  const {
4747
4839
  checked = false,
@@ -4750,11 +4842,11 @@ var init_Switch = __esm({
4750
4842
  isDisabled = false,
4751
4843
  ...otherProps
4752
4844
  } = props;
4753
- const [enabled, setEnabled] = (0, import_react41.useState)(checked);
4754
- (0, import_react41.useEffect)(() => {
4845
+ const [enabled, setEnabled] = (0, import_react42.useState)(checked);
4846
+ (0, import_react42.useEffect)(() => {
4755
4847
  setEnabled(checked);
4756
4848
  }, [checked]);
4757
- const classes = (0, import_dedupe48.default)(
4849
+ const classes = (0, import_dedupe49.default)(
4758
4850
  "mobius",
4759
4851
  "mobius-switch",
4760
4852
  {
@@ -4769,9 +4861,9 @@ var init_Switch = __esm({
4769
4861
  onChange(event);
4770
4862
  }
4771
4863
  };
4772
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("label", { ref, className: classes, children: [
4773
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { children: enabled ? "On" : "Off" }) }),
4774
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4864
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("label", { ref, className: classes, children: [
4865
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { children: enabled ? "On" : "Off" }) }),
4866
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4775
4867
  "input",
4776
4868
  {
4777
4869
  type: "checkbox",
@@ -4782,7 +4874,7 @@ var init_Switch = __esm({
4782
4874
  ...otherProps
4783
4875
  }
4784
4876
  ),
4785
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "mobius-switch__slider" })
4877
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "mobius-switch__slider" })
4786
4878
  ] });
4787
4879
  };
4788
4880
  Switch.displayName = "Switch";
@@ -4798,114 +4890,114 @@ var init_Switch2 = __esm({
4798
4890
  });
4799
4891
 
4800
4892
  // src/components/Table/Table.tsx
4801
- var import_dedupe49, import_Table, import_jsx_runtime58, Table;
4893
+ var import_dedupe50, import_Table, import_jsx_runtime60, Table;
4802
4894
  var init_Table = __esm({
4803
4895
  "src/components/Table/Table.tsx"() {
4804
4896
  "use strict";
4805
- import_dedupe49 = __toESM(require("classnames/dedupe"));
4897
+ import_dedupe50 = __toESM(require("classnames/dedupe"));
4806
4898
  import_Table = require("@simplybusiness/mobius/src/components/Table/Table.css");
4807
- import_jsx_runtime58 = require("react/jsx-runtime");
4899
+ import_jsx_runtime60 = require("react/jsx-runtime");
4808
4900
  Table = ({ ref, ...props }) => {
4809
- const classes = (0, import_dedupe49.default)("mobius", "mobius-table", props.className);
4810
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("table", { ref, ...props, className: classes });
4901
+ const classes = (0, import_dedupe50.default)("mobius", "mobius-table", props.className);
4902
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("table", { ref, ...props, className: classes });
4811
4903
  };
4812
4904
  Table.displayName = "Table";
4813
4905
  }
4814
4906
  });
4815
4907
 
4816
4908
  // src/components/Table/Head.tsx
4817
- var import_dedupe50, import_jsx_runtime59, Head;
4909
+ var import_dedupe51, import_jsx_runtime61, Head;
4818
4910
  var init_Head = __esm({
4819
4911
  "src/components/Table/Head.tsx"() {
4820
4912
  "use strict";
4821
- import_dedupe50 = __toESM(require("classnames/dedupe"));
4822
- import_jsx_runtime59 = require("react/jsx-runtime");
4913
+ import_dedupe51 = __toESM(require("classnames/dedupe"));
4914
+ import_jsx_runtime61 = require("react/jsx-runtime");
4823
4915
  Head = ({ ref, ...props }) => {
4824
- const classes = (0, import_dedupe50.default)("mobius", "mobius-table__head", props.className);
4825
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("thead", { ref, ...props, className: classes });
4916
+ const classes = (0, import_dedupe51.default)("mobius", "mobius-table__head", props.className);
4917
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("thead", { ref, ...props, className: classes });
4826
4918
  };
4827
4919
  Head.displayName = "Table.Head";
4828
4920
  }
4829
4921
  });
4830
4922
 
4831
4923
  // src/components/Table/Body.tsx
4832
- var import_dedupe51, import_jsx_runtime60, Body;
4924
+ var import_dedupe52, import_jsx_runtime62, Body;
4833
4925
  var init_Body = __esm({
4834
4926
  "src/components/Table/Body.tsx"() {
4835
4927
  "use strict";
4836
- import_dedupe51 = __toESM(require("classnames/dedupe"));
4837
- import_jsx_runtime60 = require("react/jsx-runtime");
4928
+ import_dedupe52 = __toESM(require("classnames/dedupe"));
4929
+ import_jsx_runtime62 = require("react/jsx-runtime");
4838
4930
  Body = ({ ref, ...props }) => {
4839
- const classes = (0, import_dedupe51.default)("mobius", "mobius-table__body", props.className);
4840
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("tbody", { ref, ...props, className: classes });
4931
+ const classes = (0, import_dedupe52.default)("mobius", "mobius-table__body", props.className);
4932
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("tbody", { ref, ...props, className: classes });
4841
4933
  };
4842
4934
  Body.displayName = "Table.Body";
4843
4935
  }
4844
4936
  });
4845
4937
 
4846
4938
  // src/components/Table/Foot.tsx
4847
- var import_dedupe52, import_jsx_runtime61, Foot;
4939
+ var import_dedupe53, import_jsx_runtime63, Foot;
4848
4940
  var init_Foot = __esm({
4849
4941
  "src/components/Table/Foot.tsx"() {
4850
4942
  "use strict";
4851
- import_dedupe52 = __toESM(require("classnames/dedupe"));
4852
- import_jsx_runtime61 = require("react/jsx-runtime");
4943
+ import_dedupe53 = __toESM(require("classnames/dedupe"));
4944
+ import_jsx_runtime63 = require("react/jsx-runtime");
4853
4945
  Foot = ({ ref, ...props }) => {
4854
- const classes = (0, import_dedupe52.default)("mobius", "mobius-table__foot", props.className);
4855
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("tfoot", { ref, ...props, className: classes });
4946
+ const classes = (0, import_dedupe53.default)("mobius", "mobius-table__foot", props.className);
4947
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("tfoot", { ref, ...props, className: classes });
4856
4948
  };
4857
4949
  Foot.displayName = "Table.Foot";
4858
4950
  }
4859
4951
  });
4860
4952
 
4861
4953
  // src/components/Table/Row.tsx
4862
- var import_dedupe53, import_jsx_runtime62, Row;
4954
+ var import_dedupe54, import_jsx_runtime64, Row;
4863
4955
  var init_Row = __esm({
4864
4956
  "src/components/Table/Row.tsx"() {
4865
4957
  "use strict";
4866
- import_dedupe53 = __toESM(require("classnames/dedupe"));
4867
- import_jsx_runtime62 = require("react/jsx-runtime");
4958
+ import_dedupe54 = __toESM(require("classnames/dedupe"));
4959
+ import_jsx_runtime64 = require("react/jsx-runtime");
4868
4960
  Row = ({ ref, ...props }) => {
4869
- const classes = (0, import_dedupe53.default)("mobius", "mobius-table__row", props.className);
4870
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("tr", { ref, ...props, className: classes });
4961
+ const classes = (0, import_dedupe54.default)("mobius", "mobius-table__row", props.className);
4962
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("tr", { ref, ...props, className: classes });
4871
4963
  };
4872
4964
  Row.displayName = "Table.Row";
4873
4965
  }
4874
4966
  });
4875
4967
 
4876
4968
  // src/components/Table/HeaderCell.tsx
4877
- var import_dedupe54, import_jsx_runtime63, HeaderCell;
4969
+ var import_dedupe55, import_jsx_runtime65, HeaderCell;
4878
4970
  var init_HeaderCell = __esm({
4879
4971
  "src/components/Table/HeaderCell.tsx"() {
4880
4972
  "use strict";
4881
- import_dedupe54 = __toESM(require("classnames/dedupe"));
4882
- import_jsx_runtime63 = require("react/jsx-runtime");
4973
+ import_dedupe55 = __toESM(require("classnames/dedupe"));
4974
+ import_jsx_runtime65 = require("react/jsx-runtime");
4883
4975
  HeaderCell = ({ ref, ...props }) => {
4884
- const classes = (0, import_dedupe54.default)(
4976
+ const classes = (0, import_dedupe55.default)(
4885
4977
  "mobius",
4886
4978
  "mobius-table__head-cell",
4887
4979
  props.className
4888
4980
  );
4889
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("th", { ...props, ref, className: classes });
4981
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("th", { ...props, ref, className: classes });
4890
4982
  };
4891
4983
  HeaderCell.displayName = "Table.HeaderCell";
4892
4984
  }
4893
4985
  });
4894
4986
 
4895
4987
  // src/components/Table/Cell.tsx
4896
- var import_dedupe55, import_jsx_runtime64, Cell;
4988
+ var import_dedupe56, import_jsx_runtime66, Cell;
4897
4989
  var init_Cell = __esm({
4898
4990
  "src/components/Table/Cell.tsx"() {
4899
4991
  "use strict";
4900
- import_dedupe55 = __toESM(require("classnames/dedupe"));
4901
- import_jsx_runtime64 = require("react/jsx-runtime");
4992
+ import_dedupe56 = __toESM(require("classnames/dedupe"));
4993
+ import_jsx_runtime66 = require("react/jsx-runtime");
4902
4994
  Cell = ({ ref, ...props }) => {
4903
- const classes = (0, import_dedupe55.default)(
4995
+ const classes = (0, import_dedupe56.default)(
4904
4996
  "mobius",
4905
4997
  "mobius-table__body-cell",
4906
4998
  props.className
4907
4999
  );
4908
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("td", { ref, ...props, className: classes });
5000
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("td", { ref, ...props, className: classes });
4909
5001
  };
4910
5002
  Cell.displayName = "Table.Cell";
4911
5003
  }
@@ -4935,37 +5027,6 @@ var init_Table2 = __esm({
4935
5027
  }
4936
5028
  });
4937
5029
 
4938
- // src/components/Text/Text.tsx
4939
- var import_dedupe56, import_Text, import_jsx_runtime65, getElementType, Text;
4940
- var init_Text = __esm({
4941
- "src/components/Text/Text.tsx"() {
4942
- "use strict";
4943
- import_dedupe56 = __toESM(require("classnames/dedupe"));
4944
- import_Text = require("@simplybusiness/mobius/src/components/Text/Text.css");
4945
- import_jsx_runtime65 = require("react/jsx-runtime");
4946
- getElementType = (variant, elementType) => {
4947
- if (variant) {
4948
- return ["h1", "h2", "h3", "h4"].includes(variant) ? variant : "p";
4949
- }
4950
- return elementType || "p";
4951
- };
4952
- Text = ({ ref, elementType: Component = "p", ...props }) => {
4953
- const { variant, className, spacing, ...otherProps } = props;
4954
- const elementType = getElementType(variant, Component);
4955
- const variantType = variant || elementType;
4956
- const classes = (0, import_dedupe56.default)(
4957
- "mobius",
4958
- "mobius-text",
4959
- { [`--is-${variantType}`]: variantType },
4960
- { [`--has-line-height-${spacing}`]: spacing },
4961
- className
4962
- );
4963
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Component, { ref, ...otherProps, className: classes });
4964
- };
4965
- Text.displayName = "Text";
4966
- }
4967
- });
4968
-
4969
5030
  // src/components/Text/index.tsx
4970
5031
  var init_Text2 = __esm({
4971
5032
  "src/components/Text/index.tsx"() {
@@ -4975,12 +5036,12 @@ var init_Text2 = __esm({
4975
5036
  });
4976
5037
 
4977
5038
  // src/components/TextAreaInput/TextAreaInput.tsx
4978
- var import_dedupe57, import_jsx_runtime66, TextAreaInput;
5039
+ var import_dedupe57, import_jsx_runtime67, TextAreaInput;
4979
5040
  var init_TextAreaInput = __esm({
4980
5041
  "src/components/TextAreaInput/TextAreaInput.tsx"() {
4981
5042
  "use strict";
4982
5043
  import_dedupe57 = __toESM(require("classnames/dedupe"));
4983
- import_jsx_runtime66 = require("react/jsx-runtime");
5044
+ import_jsx_runtime67 = require("react/jsx-runtime");
4984
5045
  TextAreaInput = ({ ref, ...props }) => {
4985
5046
  const { isSelected, isDisabled, isReadOnly, isRequired, ...otherProps } = props;
4986
5047
  const classes = (0, import_dedupe57.default)(
@@ -4993,7 +5054,7 @@ var init_TextAreaInput = __esm({
4993
5054
  },
4994
5055
  otherProps.className
4995
5056
  );
4996
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5057
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4997
5058
  "textarea",
4998
5059
  {
4999
5060
  ref,
@@ -5017,7 +5078,7 @@ var init_TextAreaInput2 = __esm({
5017
5078
  });
5018
5079
 
5019
5080
  // src/components/TextArea/TextArea.tsx
5020
- var import_dedupe58, import_TextArea, import_jsx_runtime67, TextArea;
5081
+ var import_dedupe58, import_TextArea, import_jsx_runtime68, TextArea;
5021
5082
  var init_TextArea = __esm({
5022
5083
  "src/components/TextArea/TextArea.tsx"() {
5023
5084
  "use strict";
@@ -5029,7 +5090,7 @@ var init_TextArea = __esm({
5029
5090
  init_Stack2();
5030
5091
  init_TextAreaInput2();
5031
5092
  import_TextArea = require("@simplybusiness/mobius/src/components/TextArea/TextArea.css");
5032
- import_jsx_runtime67 = require("react/jsx-runtime");
5093
+ import_jsx_runtime68 = require("react/jsx-runtime");
5033
5094
  TextArea = ({ ref, ...props }) => {
5034
5095
  const {
5035
5096
  isDisabled,
@@ -5049,9 +5110,9 @@ var init_TextArea = __esm({
5049
5110
  },
5050
5111
  validationClasses
5051
5112
  );
5052
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Stack, { className: classes, gap: "xs", children: [
5053
- label && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Label, { ...labelProps, className: labelClasses, children: props.label }),
5054
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5113
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(Stack, { className: classes, gap: "xs", children: [
5114
+ label && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Label, { ...labelProps, className: labelClasses, children: props.label }),
5115
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5055
5116
  TextAreaInput,
5056
5117
  {
5057
5118
  ...otherProps,
@@ -5062,7 +5123,7 @@ var init_TextArea = __esm({
5062
5123
  "aria-invalid": errorMessage != null
5063
5124
  }
5064
5125
  ),
5065
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ErrorMessage, { ...errorMessageProps, errorMessage })
5126
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ErrorMessage, { ...errorMessageProps, errorMessage })
5066
5127
  ] });
5067
5128
  };
5068
5129
  TextArea.displayName = "TextArea";
@@ -5077,53 +5138,6 @@ var init_TextArea2 = __esm({
5077
5138
  }
5078
5139
  });
5079
5140
 
5080
- // src/components/TextOrHTML/TextOrHTML.tsx
5081
- var import_react42, import_jsx_runtime68, isHTML, TextOrHTML;
5082
- var init_TextOrHTML = __esm({
5083
- "src/components/TextOrHTML/TextOrHTML.tsx"() {
5084
- "use strict";
5085
- import_react42 = require("react");
5086
- init_Text();
5087
- import_jsx_runtime68 = require("react/jsx-runtime");
5088
- isHTML = (text) => /^\s*<[a-z]/i.test(text);
5089
- TextOrHTML = ({
5090
- ref,
5091
- text,
5092
- htmlClassName,
5093
- htmlElementType,
5094
- textWrapper = false,
5095
- autoDetect = false,
5096
- ...textProps
5097
- }) => {
5098
- const textIsHTML = autoDetect && isHTML(text);
5099
- const shouldWrapInText = autoDetect ? textWrapper || !textIsHTML : textWrapper;
5100
- const resolvedElementType = htmlElementType ?? (textIsHTML ? "div" : "span");
5101
- const DangerousComponent = resolvedElementType;
5102
- const dangerousHTML = (0, import_react42.useMemo)(() => ({ __html: text }), [text]);
5103
- const dangerousElement = /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5104
- DangerousComponent,
5105
- {
5106
- className: htmlClassName,
5107
- dangerouslySetInnerHTML: dangerousHTML
5108
- }
5109
- );
5110
- if (shouldWrapInText) {
5111
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Text, { ref, ...textProps, children: dangerousElement });
5112
- }
5113
- return dangerousElement;
5114
- };
5115
- TextOrHTML.displayName = "TextOrHTML";
5116
- }
5117
- });
5118
-
5119
- // src/components/TextOrHTML/index.tsx
5120
- var init_TextOrHTML2 = __esm({
5121
- "src/components/TextOrHTML/index.tsx"() {
5122
- "use strict";
5123
- init_TextOrHTML();
5124
- }
5125
- });
5126
-
5127
5141
  // src/components/Title/Title.tsx
5128
5142
  var import_dedupe59, import_Title, import_jsx_runtime69, Title;
5129
5143
  var init_Title = __esm({