@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
@@ -2197,6 +2197,10 @@ var init_AddressLookup = __esm({
2197
2197
  );
2198
2198
  const handleSelected = (selected) => {
2199
2199
  setError(null);
2200
+ const isEmpty = typeof selected === "string" ? selected === "" : !selected.id && !selected.value;
2201
+ if (isEmpty) {
2202
+ return Promise.resolve();
2203
+ }
2200
2204
  if (typeof selected === "string" || !selected.id) {
2201
2205
  setError(new Error("Selected option missing id"));
2202
2206
  return Promise.resolve();
@@ -2244,19 +2248,98 @@ var init_AddressLookup2 = __esm({
2244
2248
  }
2245
2249
  });
2246
2250
 
2251
+ // src/components/Text/Text.tsx
2252
+ var import_dedupe15, import_Text, import_jsx_runtime16, getElementType, Text;
2253
+ var init_Text = __esm({
2254
+ "src/components/Text/Text.tsx"() {
2255
+ "use strict";
2256
+ import_dedupe15 = __toESM(require("classnames/dedupe"));
2257
+ import_Text = require("@simplybusiness/mobius/src/components/Text/Text.css");
2258
+ import_jsx_runtime16 = require("react/jsx-runtime");
2259
+ getElementType = (variant, elementType) => {
2260
+ if (variant) {
2261
+ return ["h1", "h2", "h3", "h4"].includes(variant) ? variant : "p";
2262
+ }
2263
+ return elementType || "p";
2264
+ };
2265
+ Text = ({ ref, elementType: Component = "p", ...props }) => {
2266
+ const { variant, className, spacing, ...otherProps } = props;
2267
+ const elementType = getElementType(variant, Component);
2268
+ const variantType = variant || elementType;
2269
+ const classes = (0, import_dedupe15.default)(
2270
+ "mobius",
2271
+ "mobius-text",
2272
+ { [`--is-${variantType}`]: variantType },
2273
+ { [`--has-line-height-${spacing}`]: spacing },
2274
+ className
2275
+ );
2276
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Component, { ref, ...otherProps, className: classes });
2277
+ };
2278
+ Text.displayName = "Text";
2279
+ }
2280
+ });
2281
+
2282
+ // src/components/TextOrHTML/TextOrHTML.tsx
2283
+ var import_react15, import_jsx_runtime17, isHTML, TextOrHTML;
2284
+ var init_TextOrHTML = __esm({
2285
+ "src/components/TextOrHTML/TextOrHTML.tsx"() {
2286
+ "use strict";
2287
+ import_react15 = require("react");
2288
+ init_Text();
2289
+ import_jsx_runtime17 = require("react/jsx-runtime");
2290
+ isHTML = (text) => /^\s*<[a-z]/i.test(text);
2291
+ TextOrHTML = ({
2292
+ ref,
2293
+ text,
2294
+ htmlClassName,
2295
+ htmlElementType,
2296
+ textWrapper = false,
2297
+ autoDetect = false,
2298
+ ...textProps
2299
+ }) => {
2300
+ const textIsHTML = autoDetect && isHTML(text);
2301
+ const shouldWrapInText = autoDetect ? textWrapper || !textIsHTML : textWrapper;
2302
+ const resolvedElementType = htmlElementType ?? (textIsHTML ? "div" : "span");
2303
+ const DangerousComponent = resolvedElementType;
2304
+ const dangerousHTML = (0, import_react15.useMemo)(() => ({ __html: text }), [text]);
2305
+ const dangerousElement = /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2306
+ DangerousComponent,
2307
+ {
2308
+ className: htmlClassName,
2309
+ dangerouslySetInnerHTML: dangerousHTML
2310
+ }
2311
+ );
2312
+ if (shouldWrapInText) {
2313
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Text, { ref, ...textProps, children: dangerousElement });
2314
+ }
2315
+ return dangerousElement;
2316
+ };
2317
+ TextOrHTML.displayName = "TextOrHTML";
2318
+ }
2319
+ });
2320
+
2321
+ // src/components/TextOrHTML/index.tsx
2322
+ var init_TextOrHTML2 = __esm({
2323
+ "src/components/TextOrHTML/index.tsx"() {
2324
+ "use strict";
2325
+ init_TextOrHTML();
2326
+ }
2327
+ });
2328
+
2247
2329
  // src/components/Alert/Alert.tsx
2248
2330
  function isAlertVariant(value) {
2249
2331
  return value === "info" || value === "success" || value === "warning" || value === "error";
2250
2332
  }
2251
- var import_icons4, import_dedupe15, import_Alert, import_jsx_runtime16, Alert;
2333
+ var import_icons4, import_dedupe16, import_Alert, import_jsx_runtime18, Alert;
2252
2334
  var init_Alert = __esm({
2253
2335
  "src/components/Alert/Alert.tsx"() {
2254
2336
  "use strict";
2255
2337
  import_icons4 = require("@simplybusiness/icons");
2256
- import_dedupe15 = __toESM(require("classnames/dedupe"));
2338
+ import_dedupe16 = __toESM(require("classnames/dedupe"));
2257
2339
  init_Icon2();
2340
+ init_TextOrHTML2();
2258
2341
  import_Alert = require("@simplybusiness/mobius/src/components/Alert/Alert.css");
2259
- import_jsx_runtime16 = require("react/jsx-runtime");
2342
+ import_jsx_runtime18 = require("react/jsx-runtime");
2260
2343
  Alert = ({ ref, ...props }) => {
2261
2344
  const {
2262
2345
  elementType: Element = "div",
@@ -2269,7 +2352,7 @@ var init_Alert = __esm({
2269
2352
  if (!show) return null;
2270
2353
  const variant = variantProp && isAlertVariant(variantProp) ? variantProp : "info";
2271
2354
  const colorValue = variant === "success" ? `var(--color-valid)` : `var(--color-${variant})`;
2272
- const classes = (0, import_dedupe15.default)(
2355
+ const classes = (0, import_dedupe16.default)(
2273
2356
  "mobius",
2274
2357
  "mobius-alert",
2275
2358
  {
@@ -2287,14 +2370,23 @@ var init_Alert = __esm({
2287
2370
  warning: import_icons4.warning,
2288
2371
  error: import_icons4.error
2289
2372
  };
2290
- const headerClasses = (0, import_dedupe15.default)("mobius", "mobius-alert__header");
2291
- const iconClasses = (0, import_dedupe15.default)("mobius", "mobius-alert__icon");
2292
- const contentClasses = (0, import_dedupe15.default)("mobius", "mobius-alert__content");
2293
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Element, { ref, role: "alert", ...otherProps, className: classes, children: [
2294
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: iconClasses, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon, { icon: icon[variant], color: colorValue }) }),
2295
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { children: [
2296
- header && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: headerClasses, children: header }),
2297
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: contentClasses, children })
2373
+ const headerClasses = (0, import_dedupe16.default)("mobius", "mobius-alert__header");
2374
+ const iconClasses = (0, import_dedupe16.default)("mobius", "mobius-alert__icon");
2375
+ const contentClasses = (0, import_dedupe16.default)("mobius", "mobius-alert__content");
2376
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Element, { ref, role: "alert", ...otherProps, className: classes, children: [
2377
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: iconClasses, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Icon, { icon: icon[variant], color: colorValue }) }),
2378
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { children: [
2379
+ header && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2380
+ TextOrHTML,
2381
+ {
2382
+ autoDetect: true,
2383
+ htmlElementType: "span",
2384
+ className: headerClasses,
2385
+ htmlClassName: headerClasses,
2386
+ text: header
2387
+ }
2388
+ ),
2389
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: contentClasses, children })
2298
2390
  ] })
2299
2391
  ] });
2300
2392
  };
@@ -2311,14 +2403,14 @@ var init_Alert2 = __esm({
2311
2403
  });
2312
2404
 
2313
2405
  // src/components/Box/Box.tsx
2314
- var import_dedupe16, import_Box, import_jsx_runtime17, Box;
2406
+ var import_dedupe17, import_Box, import_jsx_runtime19, Box;
2315
2407
  var init_Box = __esm({
2316
2408
  "src/components/Box/Box.tsx"() {
2317
2409
  "use strict";
2318
- import_dedupe16 = __toESM(require("classnames/dedupe"));
2410
+ import_dedupe17 = __toESM(require("classnames/dedupe"));
2319
2411
  init_utils();
2320
2412
  import_Box = require("@simplybusiness/mobius/src/components/Box/Box.css");
2321
- import_jsx_runtime17 = require("react/jsx-runtime");
2413
+ import_jsx_runtime19 = require("react/jsx-runtime");
2322
2414
  Box = ({ ref, ...props }) => {
2323
2415
  const {
2324
2416
  elementType: Element = "div",
@@ -2344,7 +2436,7 @@ var init_Box = __esm({
2344
2436
  style,
2345
2437
  ...otherProps
2346
2438
  } = props;
2347
- const classes = (0, import_dedupe16.default)("mobius", "mobius-box", otherProps.className);
2439
+ const classes = (0, import_dedupe17.default)("mobius", "mobius-box", otherProps.className);
2348
2440
  const styleProps = filterUndefinedProps({
2349
2441
  padding: getSpacingValue(padding),
2350
2442
  paddingInline: getSpacingValue(paddingInline || paddingX),
@@ -2361,7 +2453,7 @@ var init_Box = __esm({
2361
2453
  height,
2362
2454
  ...style
2363
2455
  });
2364
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Element, { ref, style: styleProps, ...otherProps, className: classes });
2456
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Element, { ref, style: styleProps, ...otherProps, className: classes });
2365
2457
  };
2366
2458
  Box.displayName = "Box";
2367
2459
  }
@@ -2376,27 +2468,27 @@ var init_Box2 = __esm({
2376
2468
  });
2377
2469
 
2378
2470
  // src/components/Breadcrumbs/Breadcrumbs.tsx
2379
- var import_react15, import_dedupe17, import_Breadcrumbs, import_jsx_runtime18, Breadcrumbs;
2471
+ var import_react16, import_dedupe18, import_Breadcrumbs, import_jsx_runtime20, Breadcrumbs;
2380
2472
  var init_Breadcrumbs = __esm({
2381
2473
  "src/components/Breadcrumbs/Breadcrumbs.tsx"() {
2382
2474
  "use strict";
2383
2475
  "use client";
2384
- import_react15 = require("react");
2385
- import_dedupe17 = __toESM(require("classnames/dedupe"));
2476
+ import_react16 = require("react");
2477
+ import_dedupe18 = __toESM(require("classnames/dedupe"));
2386
2478
  import_Breadcrumbs = require("@simplybusiness/mobius/src/components/Breadcrumbs/Breadcrumbs.css");
2387
- import_jsx_runtime18 = require("react/jsx-runtime");
2479
+ import_jsx_runtime20 = require("react/jsx-runtime");
2388
2480
  Breadcrumbs = ({ ref, ...props }) => {
2389
2481
  const { "aria-label": ariaLabel = "Breadcrumbs" } = props;
2390
2482
  const { navProps } = { navProps: { "aria-label": ariaLabel } };
2391
2483
  const { children, ...otherProps } = props;
2392
- const childArray = import_react15.Children.toArray(children);
2393
- const classes = (0, import_dedupe17.default)(
2484
+ const childArray = import_react16.Children.toArray(children);
2485
+ const classes = (0, import_dedupe18.default)(
2394
2486
  "mobius",
2395
2487
  "mobius-breadcrumb",
2396
2488
  otherProps.className
2397
2489
  );
2398
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("nav", { ref, ...otherProps, ...navProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("ul", { children: childArray.map(
2399
- (child, i) => (0, import_react15.cloneElement)(
2490
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("nav", { ref, ...otherProps, ...navProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("ul", { children: childArray.map(
2491
+ (child, i) => (0, import_react16.cloneElement)(
2400
2492
  child,
2401
2493
  {
2402
2494
  key: i,
@@ -2410,22 +2502,22 @@ var init_Breadcrumbs = __esm({
2410
2502
  });
2411
2503
 
2412
2504
  // src/components/Breadcrumbs/BreadcrumbItem.tsx
2413
- var import_react16, import_dedupe18, import_jsx_runtime19, BreadcrumbItem;
2505
+ var import_react17, import_dedupe19, import_jsx_runtime21, BreadcrumbItem;
2414
2506
  var init_BreadcrumbItem = __esm({
2415
2507
  "src/components/Breadcrumbs/BreadcrumbItem.tsx"() {
2416
2508
  "use strict";
2417
2509
  "use client";
2418
- import_react16 = require("react");
2419
- import_dedupe18 = __toESM(require("classnames/dedupe"));
2510
+ import_react17 = require("react");
2511
+ import_dedupe19 = __toESM(require("classnames/dedupe"));
2420
2512
  init_Box2();
2421
- import_jsx_runtime19 = require("react/jsx-runtime");
2513
+ import_jsx_runtime21 = require("react/jsx-runtime");
2422
2514
  BreadcrumbItem = ({ ref, ...props }) => {
2423
2515
  const {
2424
2516
  isDisabled = false,
2425
2517
  isCurrent = false,
2426
2518
  "aria-current": ariaCurrent = "page",
2427
2519
  children,
2428
- separator = /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Box, { className: "mobius-breadcrumb__separator", "aria-hidden": "true", children: ">" }),
2520
+ separator = /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Box, { className: "mobius-breadcrumb__separator", "aria-hidden": "true", children: ">" }),
2429
2521
  ...otherProps
2430
2522
  } = props;
2431
2523
  const { itemProps } = {
@@ -2435,14 +2527,14 @@ var init_BreadcrumbItem = __esm({
2435
2527
  ...otherProps
2436
2528
  }
2437
2529
  };
2438
- const classes = (0, import_dedupe18.default)(
2530
+ const classes = (0, import_dedupe19.default)(
2439
2531
  "mobius",
2440
2532
  "mobius-breadcrumb__item",
2441
2533
  props.className
2442
2534
  );
2443
- const child = typeof children === "string" ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { ...itemProps, children }) : import_react16.Children.only(children);
2444
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("li", { className: classes, children: [
2445
- (0, import_react16.cloneElement)(child, {
2535
+ const child = typeof children === "string" ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { ...itemProps, children }) : import_react17.Children.only(children);
2536
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("li", { className: classes, children: [
2537
+ (0, import_react17.cloneElement)(child, {
2446
2538
  ...child.props,
2447
2539
  ...itemProps,
2448
2540
  ref
@@ -2464,19 +2556,19 @@ var init_Breadcrumbs2 = __esm({
2464
2556
  });
2465
2557
 
2466
2558
  // src/components/Button/Loading.tsx
2467
- var import_icons5, import_jsx_runtime20, Loading;
2559
+ var import_icons5, import_jsx_runtime22, Loading;
2468
2560
  var init_Loading = __esm({
2469
2561
  "src/components/Button/Loading.tsx"() {
2470
2562
  "use strict";
2471
2563
  import_icons5 = require("@simplybusiness/icons");
2472
2564
  init_Icon2();
2473
2565
  init_VisuallyHidden2();
2474
- import_jsx_runtime20 = require("react/jsx-runtime");
2566
+ import_jsx_runtime22 = require("react/jsx-runtime");
2475
2567
  Loading = (props) => {
2476
2568
  const { children } = props;
2477
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
2478
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "mobius-button__icon-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { icon: import_icons5.loading, spin: true, size: "md" }) }),
2479
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(VisuallyHidden, { className: "mobius-button__loading-text", children: "Loading" }),
2569
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
2570
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "mobius-button__icon-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon, { icon: import_icons5.loading, spin: true, size: "md" }) }),
2571
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(VisuallyHidden, { className: "mobius-button__loading-text", children: "Loading" }),
2480
2572
  children
2481
2573
  ] });
2482
2574
  };
@@ -2484,33 +2576,33 @@ var init_Loading = __esm({
2484
2576
  });
2485
2577
 
2486
2578
  // src/components/Button/Success.tsx
2487
- var import_icons6, import_jsx_runtime21, Success;
2579
+ var import_icons6, import_jsx_runtime23, Success;
2488
2580
  var init_Success = __esm({
2489
2581
  "src/components/Button/Success.tsx"() {
2490
2582
  "use strict";
2491
2583
  import_icons6 = require("@simplybusiness/icons");
2492
2584
  init_Icon2();
2493
2585
  init_VisuallyHidden2();
2494
- import_jsx_runtime21 = require("react/jsx-runtime");
2495
- Success = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
2496
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "mobius-button__icon-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Icon, { icon: import_icons6.tick, size: "md" }) }),
2497
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(VisuallyHidden, { className: "mobius-button__success-text", children: "Success" })
2586
+ import_jsx_runtime23 = require("react/jsx-runtime");
2587
+ Success = () => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
2588
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "mobius-button__icon-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon, { icon: import_icons6.tick, size: "md" }) }),
2589
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(VisuallyHidden, { className: "mobius-button__success-text", children: "Success" })
2498
2590
  ] });
2499
2591
  }
2500
2592
  });
2501
2593
 
2502
2594
  // src/components/Button/Button.tsx
2503
- var import_dedupe19, import_Button, import_jsx_runtime22, Button;
2595
+ var import_dedupe20, import_Button, import_jsx_runtime24, Button;
2504
2596
  var init_Button = __esm({
2505
2597
  "src/components/Button/Button.tsx"() {
2506
2598
  "use strict";
2507
2599
  "use client";
2508
- import_dedupe19 = __toESM(require("classnames/dedupe"));
2600
+ import_dedupe20 = __toESM(require("classnames/dedupe"));
2509
2601
  init_Loading();
2510
2602
  init_useButton2();
2511
2603
  init_Success();
2512
2604
  import_Button = require("@simplybusiness/mobius/src/components/Button/Button.css");
2513
- import_jsx_runtime22 = require("react/jsx-runtime");
2605
+ import_jsx_runtime24 = require("react/jsx-runtime");
2514
2606
  Button = ({ ref, ...props }) => {
2515
2607
  const {
2516
2608
  children,
@@ -2525,7 +2617,7 @@ var init_Button = __esm({
2525
2617
  ...otherProps
2526
2618
  } = props;
2527
2619
  const { buttonProps } = useButton(props);
2528
- otherProps.className = (0, import_dedupe19.default)(
2620
+ otherProps.className = (0, import_dedupe20.default)(
2529
2621
  "mobius",
2530
2622
  "mobius-button",
2531
2623
  `--variant-${variant}`,
@@ -2537,9 +2629,9 @@ var init_Button = __esm({
2537
2629
  },
2538
2630
  otherProps.className
2539
2631
  );
2540
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Component, { ref, ...buttonProps, ...otherProps, children: [
2541
- isLoading ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Loading, { children }) : children,
2542
- isSuccess && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Success, {})
2632
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Component, { ref, ...buttonProps, ...otherProps, children: [
2633
+ isLoading ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Loading, { children }) : children,
2634
+ isSuccess && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Success, {})
2543
2635
  ] });
2544
2636
  };
2545
2637
  Button.displayName = "Button";
@@ -2555,13 +2647,13 @@ var init_Button2 = __esm({
2555
2647
  });
2556
2648
 
2557
2649
  // src/components/Checkbox/Checkbox.tsx
2558
- var import_react17, import_dedupe20, import_icons7, import_Checkbox, import_jsx_runtime23, Checkbox;
2650
+ var import_react18, import_dedupe21, import_icons7, import_Checkbox, import_jsx_runtime25, Checkbox;
2559
2651
  var init_Checkbox = __esm({
2560
2652
  "src/components/Checkbox/Checkbox.tsx"() {
2561
2653
  "use strict";
2562
2654
  "use client";
2563
- import_react17 = require("react");
2564
- import_dedupe20 = __toESM(require("classnames/dedupe"));
2655
+ import_react18 = require("react");
2656
+ import_dedupe21 = __toESM(require("classnames/dedupe"));
2565
2657
  import_icons7 = require("@simplybusiness/icons");
2566
2658
  init_ErrorMessage2();
2567
2659
  init_spaceDelimitedList();
@@ -2569,7 +2661,7 @@ var init_Checkbox = __esm({
2569
2661
  init_Icon2();
2570
2662
  init_Stack2();
2571
2663
  import_Checkbox = require("@simplybusiness/mobius/src/components/Checkbox/Checkbox.css");
2572
- import_jsx_runtime23 = require("react/jsx-runtime");
2664
+ import_jsx_runtime25 = require("react/jsx-runtime");
2573
2665
  Checkbox = ({ ref, ...props }) => {
2574
2666
  const {
2575
2667
  id,
@@ -2589,18 +2681,18 @@ var init_Checkbox = __esm({
2589
2681
  ["aria-describedby"]: ariaDescribedBy,
2590
2682
  ...rest
2591
2683
  } = props;
2592
- const [checked, setChecked] = (0, import_react17.useState)(defaultSelected);
2593
- const fallbackRef = (0, import_react17.useRef)(null);
2684
+ const [checked, setChecked] = (0, import_react18.useState)(defaultSelected);
2685
+ const fallbackRef = (0, import_react18.useRef)(null);
2594
2686
  const refObj = ref || fallbackRef;
2595
- const inputId = (0, import_react17.useId)();
2687
+ const inputId = (0, import_react18.useId)();
2596
2688
  const isControlled = typeof selected === "boolean";
2597
- (0, import_react17.useEffect)(() => {
2689
+ (0, import_react18.useEffect)(() => {
2598
2690
  if (isControlled) {
2599
2691
  setChecked(selected);
2600
2692
  }
2601
2693
  }, [selected, isControlled]);
2602
2694
  const validationClasses = useValidationClasses({ isInvalid });
2603
- const sharedClasses = (0, import_dedupe20.default)(
2695
+ const sharedClasses = (0, import_dedupe21.default)(
2604
2696
  {
2605
2697
  "--is-disabled": isDisabled,
2606
2698
  "--is-selected": checked,
@@ -2609,31 +2701,31 @@ var init_Checkbox = __esm({
2609
2701
  },
2610
2702
  validationClasses
2611
2703
  );
2612
- const wrapperClasses = (0, import_dedupe20.default)(
2704
+ const wrapperClasses = (0, import_dedupe21.default)(
2613
2705
  "mobius",
2614
2706
  "mobius-checkbox",
2615
2707
  sharedClasses,
2616
2708
  className
2617
2709
  );
2618
- const labelClasses = (0, import_dedupe20.default)("mobius-checkbox__label", sharedClasses);
2619
- const inputClasses = (0, import_dedupe20.default)("mobius-checkbox__input", sharedClasses);
2620
- const iconClasses = (0, import_dedupe20.default)("mobius-checkbox__icon", sharedClasses);
2621
- const errorMessageId = (0, import_react17.useId)();
2710
+ const labelClasses = (0, import_dedupe21.default)("mobius-checkbox__label", sharedClasses);
2711
+ const inputClasses = (0, import_dedupe21.default)("mobius-checkbox__input", sharedClasses);
2712
+ const iconClasses = (0, import_dedupe21.default)("mobius-checkbox__icon", sharedClasses);
2713
+ const errorMessageId = (0, import_react18.useId)();
2622
2714
  const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
2623
2715
  const describedBy = spaceDelimitedList([
2624
2716
  shouldErrorMessageShow,
2625
2717
  ariaDescribedBy
2626
2718
  ]);
2627
- const labelId = (0, import_react17.useId)();
2719
+ const labelId = (0, import_react18.useId)();
2628
2720
  const handleChange = (event) => {
2629
2721
  setChecked(!checked);
2630
2722
  if (onChange) {
2631
2723
  onChange(event, isLastItem);
2632
2724
  }
2633
2725
  };
2634
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Stack, { gap: "xs", className: wrapperClasses, children: [
2635
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { className: labelClasses, children: [
2636
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2726
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Stack, { gap: "xs", className: wrapperClasses, children: [
2727
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("label", { className: labelClasses, children: [
2728
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2637
2729
  "input",
2638
2730
  {
2639
2731
  "aria-describedby": describedBy,
@@ -2654,7 +2746,7 @@ var init_Checkbox = __esm({
2654
2746
  ...rest
2655
2747
  }
2656
2748
  ),
2657
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2749
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2658
2750
  Icon,
2659
2751
  {
2660
2752
  icon: checked ? import_icons7.squareTick : import_icons7.square,
@@ -2662,9 +2754,9 @@ var init_Checkbox = __esm({
2662
2754
  className: iconClasses
2663
2755
  }
2664
2756
  ),
2665
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { id: labelId, className: "mobius-checkbox__visible-label", children: label })
2757
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { id: labelId, className: "mobius-checkbox__visible-label", children: label })
2666
2758
  ] }),
2667
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
2759
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
2668
2760
  ] });
2669
2761
  };
2670
2762
  Checkbox.displayName = "Checkbox";
@@ -2672,20 +2764,20 @@ var init_Checkbox = __esm({
2672
2764
  });
2673
2765
 
2674
2766
  // src/components/Checkbox/CheckboxGroup.tsx
2675
- var import_dedupe21, import_react18, import_CheckboxGroup, import_jsx_runtime24, CheckboxGroup;
2767
+ var import_dedupe22, import_react19, import_CheckboxGroup, import_jsx_runtime26, CheckboxGroup;
2676
2768
  var init_CheckboxGroup = __esm({
2677
2769
  "src/components/Checkbox/CheckboxGroup.tsx"() {
2678
2770
  "use strict";
2679
2771
  "use client";
2680
- import_dedupe21 = __toESM(require("classnames/dedupe"));
2681
- import_react18 = require("react");
2772
+ import_dedupe22 = __toESM(require("classnames/dedupe"));
2773
+ import_react19 = require("react");
2682
2774
  init_hooks();
2683
2775
  init_spaceDelimitedList();
2684
2776
  init_ErrorMessage2();
2685
2777
  init_Label2();
2686
2778
  init_Checkbox();
2687
2779
  import_CheckboxGroup = require("@simplybusiness/mobius/src/components/Checkbox/CheckboxGroup.css");
2688
- import_jsx_runtime24 = require("react/jsx-runtime");
2780
+ import_jsx_runtime26 = require("react/jsx-runtime");
2689
2781
  CheckboxGroup = ({ ref, ...props }) => {
2690
2782
  const {
2691
2783
  label,
@@ -2703,10 +2795,10 @@ var init_CheckboxGroup = __esm({
2703
2795
  lastItemDisables = false,
2704
2796
  ...rest
2705
2797
  } = props;
2706
- const [selected, setSelected] = (0, import_react18.useState)(defaultValue);
2707
- const isInitializedRef = (0, import_react18.useRef)(false);
2708
- const prevDefaultValueRef = (0, import_react18.useRef)(defaultValue);
2709
- (0, import_react18.useEffect)(() => {
2798
+ const [selected, setSelected] = (0, import_react19.useState)(defaultValue);
2799
+ const isInitializedRef = (0, import_react19.useRef)(false);
2800
+ const prevDefaultValueRef = (0, import_react19.useRef)(defaultValue);
2801
+ (0, import_react19.useEffect)(() => {
2710
2802
  const hasChanged = defaultValue.length !== prevDefaultValueRef.current.length || defaultValue.some(
2711
2803
  (val, index) => val !== prevDefaultValueRef.current[index]
2712
2804
  );
@@ -2716,7 +2808,7 @@ var init_CheckboxGroup = __esm({
2716
2808
  isInitializedRef.current = true;
2717
2809
  }
2718
2810
  }, [defaultValue]);
2719
- const checkboxGroupClasses = (0, import_dedupe21.default)(
2811
+ const checkboxGroupClasses = (0, import_dedupe22.default)(
2720
2812
  "mobius",
2721
2813
  "mobius-checkbox-group",
2722
2814
  className,
@@ -2728,19 +2820,19 @@ var init_CheckboxGroup = __esm({
2728
2820
  }
2729
2821
  );
2730
2822
  const validationClasses = useValidationClasses({ isInvalid });
2731
- const labelClasses = (0, import_dedupe21.default)(
2823
+ const labelClasses = (0, import_dedupe22.default)(
2732
2824
  {
2733
2825
  "--is-disabled": isDisabled
2734
2826
  },
2735
2827
  validationClasses
2736
2828
  );
2737
- const errorMessageId = (0, import_react18.useId)();
2829
+ const errorMessageId = (0, import_react19.useId)();
2738
2830
  const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
2739
2831
  const describedBy = spaceDelimitedList([
2740
2832
  shouldErrorMessageShow,
2741
2833
  props["aria-describedby"]
2742
2834
  ]);
2743
- const labelId = (0, import_react18.useId)();
2835
+ const labelId = (0, import_react19.useId)();
2744
2836
  const handleChange = (event, isLastItem = false) => {
2745
2837
  const {
2746
2838
  target: { value, checked }
@@ -2758,12 +2850,12 @@ var init_CheckboxGroup = __esm({
2758
2850
  setSelected(newValue);
2759
2851
  onChange?.(newValue);
2760
2852
  };
2761
- const childrenArray = import_react18.Children.toArray(children);
2853
+ const childrenArray = import_react19.Children.toArray(children);
2762
2854
  const lastCheckbox = childrenArray.filter(
2763
- (child) => (0, import_react18.isValidElement)(child) && child.type === Checkbox
2855
+ (child) => (0, import_react19.isValidElement)(child) && child.type === Checkbox
2764
2856
  ).pop();
2765
2857
  const lastCheckboxIsChecked = lastCheckbox && selected.includes(lastCheckbox.props.value);
2766
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2858
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2767
2859
  "div",
2768
2860
  {
2769
2861
  ...rest,
@@ -2772,16 +2864,16 @@ var init_CheckboxGroup = __esm({
2772
2864
  className: checkboxGroupClasses,
2773
2865
  role: "group",
2774
2866
  style: {
2775
- "--checkbox-items-per-row": itemsPerRow || import_react18.Children.count(children)
2867
+ "--checkbox-items-per-row": itemsPerRow || import_react19.Children.count(children)
2776
2868
  },
2777
2869
  children: [
2778
- label && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Label, { elementType: "span", id: labelId, className: labelClasses, children: label }),
2779
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "mobius-checkbox-group__wrapper", children: childrenArray.map((child) => {
2780
- if ((0, import_react18.isValidElement)(child)) {
2870
+ label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Label, { elementType: "span", id: labelId, className: labelClasses, children: label }),
2871
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "mobius-checkbox-group__wrapper", children: childrenArray.map((child) => {
2872
+ if ((0, import_react19.isValidElement)(child)) {
2781
2873
  const isLastItem = child === lastCheckbox;
2782
2874
  const isChildDisabled = isDisabled || lastItemDisables && lastCheckboxIsChecked && !isLastItem;
2783
2875
  const childProps = child.props;
2784
- return (0, import_react18.cloneElement)(
2876
+ return (0, import_react19.cloneElement)(
2785
2877
  child,
2786
2878
  {
2787
2879
  isDisabled: isChildDisabled,
@@ -2797,7 +2889,7 @@ var init_CheckboxGroup = __esm({
2797
2889
  }
2798
2890
  return child;
2799
2891
  }) }),
2800
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
2892
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
2801
2893
  ]
2802
2894
  }
2803
2895
  );
@@ -2824,23 +2916,23 @@ var init_Checkbox2 = __esm({
2824
2916
  });
2825
2917
 
2826
2918
  // src/components/Container/Container.tsx
2827
- var import_dedupe22, import_Container, import_jsx_runtime25, Container;
2919
+ var import_dedupe23, import_Container, import_jsx_runtime27, Container;
2828
2920
  var init_Container = __esm({
2829
2921
  "src/components/Container/Container.tsx"() {
2830
2922
  "use strict";
2831
- import_dedupe22 = __toESM(require("classnames/dedupe"));
2923
+ import_dedupe23 = __toESM(require("classnames/dedupe"));
2832
2924
  init_utils();
2833
2925
  import_Container = require("@simplybusiness/mobius/src/components/Container/Container.css");
2834
- import_jsx_runtime25 = require("react/jsx-runtime");
2926
+ import_jsx_runtime27 = require("react/jsx-runtime");
2835
2927
  Container = ({ ref, ...props }) => {
2836
2928
  const { elementType: Element = "div", size = "md", ...otherProps } = props;
2837
- const classes = (0, import_dedupe22.default)(
2929
+ const classes = (0, import_dedupe23.default)(
2838
2930
  "mobius",
2839
2931
  "mobius-container",
2840
2932
  sizeClasses(size),
2841
2933
  otherProps.className
2842
2934
  );
2843
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Element, { ref, ...otherProps, className: classes });
2935
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Element, { ref, ...otherProps, className: classes });
2844
2936
  };
2845
2937
  Container.displayName = "Container";
2846
2938
  }
@@ -2893,17 +2985,17 @@ var init_validation = __esm({
2893
2985
  });
2894
2986
 
2895
2987
  // src/components/DateField/DateField.tsx
2896
- var import_dedupe23, import_react19, import_jsx_runtime26, MIN_MAX_ERROR, DateField;
2988
+ var import_dedupe24, import_react20, import_jsx_runtime28, MIN_MAX_ERROR, DateField;
2897
2989
  var init_DateField = __esm({
2898
2990
  "src/components/DateField/DateField.tsx"() {
2899
2991
  "use strict";
2900
2992
  "use client";
2901
- import_dedupe23 = __toESM(require("classnames/dedupe"));
2902
- import_react19 = require("react");
2993
+ import_dedupe24 = __toESM(require("classnames/dedupe"));
2994
+ import_react20 = require("react");
2903
2995
  init_mergeRefs();
2904
2996
  init_TextField2();
2905
2997
  init_validation();
2906
- import_jsx_runtime26 = require("react/jsx-runtime");
2998
+ import_jsx_runtime28 = require("react/jsx-runtime");
2907
2999
  MIN_MAX_ERROR = '"min" value should not be greater than "max" value.';
2908
3000
  DateField = ({ ref, ...props }) => {
2909
3001
  const {
@@ -2916,10 +3008,10 @@ var init_DateField = __esm({
2916
3008
  value,
2917
3009
  ...otherProps
2918
3010
  } = props;
2919
- const [error3, setError] = (0, import_react19.useState)(errorMessage);
2920
- const [isInvalid, setIsInvalid] = (0, import_react19.useState)(void 0);
2921
- const localRef = (0, import_react19.useRef)(null);
2922
- const classes = (0, import_dedupe23.default)("mobius-date-field", className);
3011
+ const [error3, setError] = (0, import_react20.useState)(errorMessage);
3012
+ const [isInvalid, setIsInvalid] = (0, import_react20.useState)(void 0);
3013
+ const localRef = (0, import_react20.useRef)(null);
3014
+ const classes = (0, import_dedupe24.default)("mobius-date-field", className);
2923
3015
  const formattedMin = min ? convertToDateFormat(min, format) : void 0;
2924
3016
  const formattedMax = max ? convertToDateFormat(max, format) : void 0;
2925
3017
  const formattedDefaultValue = defaultValue ? convertToDateFormat(defaultValue, format) : void 0;
@@ -2932,7 +3024,7 @@ var init_DateField = __esm({
2932
3024
  setError(props.errorMessage);
2933
3025
  setIsInvalid(false);
2934
3026
  };
2935
- (0, import_react19.useEffect)(() => {
3027
+ (0, import_react20.useEffect)(() => {
2936
3028
  if (!isValidDate(min, format)) {
2937
3029
  setInvalidState(`Invalid min date: ${min}`);
2938
3030
  return;
@@ -2965,7 +3057,7 @@ var init_DateField = __esm({
2965
3057
  validate();
2966
3058
  otherProps.onBlur?.(event);
2967
3059
  };
2968
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3060
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2969
3061
  TextField,
2970
3062
  {
2971
3063
  ref: mergeRefs([localRef, ref]),
@@ -2996,23 +3088,23 @@ var init_DateField2 = __esm({
2996
3088
  });
2997
3089
 
2998
3090
  // src/components/Drawer/Content.tsx
2999
- var import_jsx_runtime27, Content;
3091
+ var import_jsx_runtime29, Content;
3000
3092
  var init_Content = __esm({
3001
3093
  "src/components/Drawer/Content.tsx"() {
3002
3094
  "use strict";
3003
- import_jsx_runtime27 = require("react/jsx-runtime");
3004
- Content = ({ ref, children, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { ref, ...otherProps, className: "mobius-drawer__content", children });
3095
+ import_jsx_runtime29 = require("react/jsx-runtime");
3096
+ Content = ({ ref, children, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { ref, ...otherProps, className: "mobius-drawer__content", children });
3005
3097
  Content.displayName = "Content";
3006
3098
  }
3007
3099
  });
3008
3100
 
3009
3101
  // src/components/Drawer/DrawerContext.tsx
3010
- var import_react20, DrawerContext;
3102
+ var import_react21, DrawerContext;
3011
3103
  var init_DrawerContext = __esm({
3012
3104
  "src/components/Drawer/DrawerContext.tsx"() {
3013
3105
  "use strict";
3014
- import_react20 = require("react");
3015
- DrawerContext = (0, import_react20.createContext)({
3106
+ import_react21 = require("react");
3107
+ DrawerContext = (0, import_react21.createContext)({
3016
3108
  onClose: () => {
3017
3109
  },
3018
3110
  closeLabel: void 0,
@@ -3022,19 +3114,19 @@ var init_DrawerContext = __esm({
3022
3114
  });
3023
3115
 
3024
3116
  // src/components/Drawer/Drawer.tsx
3025
- var import_dedupe24, import_react21, import_Drawer, import_jsx_runtime28, TRANSITION_CSS_VARIABLE, Drawer;
3117
+ var import_dedupe25, import_react22, import_Drawer, import_jsx_runtime30, TRANSITION_CSS_VARIABLE, Drawer;
3026
3118
  var init_Drawer = __esm({
3027
3119
  "src/components/Drawer/Drawer.tsx"() {
3028
3120
  "use strict";
3029
3121
  "use client";
3030
- import_dedupe24 = __toESM(require("classnames/dedupe"));
3031
- import_react21 = require("react");
3122
+ import_dedupe25 = __toESM(require("classnames/dedupe"));
3123
+ import_react22 = require("react");
3032
3124
  init_hooks();
3033
3125
  init_utils();
3034
3126
  init_VisuallyHidden2();
3035
3127
  init_DrawerContext();
3036
3128
  import_Drawer = require("@simplybusiness/mobius/src/components/Drawer/Drawer.css");
3037
- import_jsx_runtime28 = require("react/jsx-runtime");
3129
+ import_jsx_runtime30 = require("react/jsx-runtime");
3038
3130
  TRANSITION_CSS_VARIABLE = "--drawer-transition-duration";
3039
3131
  Drawer = ({ ref, ...props }) => {
3040
3132
  const {
@@ -3047,8 +3139,8 @@ var init_Drawer = __esm({
3047
3139
  onClose,
3048
3140
  children
3049
3141
  } = props;
3050
- const dialogRef = (0, import_react21.useRef)(null);
3051
- const [shouldTransition, setShouldTransition] = (0, import_react21.useState)(false);
3142
+ const dialogRef = (0, import_react22.useRef)(null);
3143
+ const [shouldTransition, setShouldTransition] = (0, import_react22.useState)(false);
3052
3144
  const { close } = useDialog({
3053
3145
  ref: dialogRef,
3054
3146
  isOpen,
@@ -3059,9 +3151,9 @@ var init_Drawer = __esm({
3059
3151
  CSSVariable: TRANSITION_CSS_VARIABLE
3060
3152
  }
3061
3153
  });
3062
- const hiddenId = `dialog-screen-reader-announce-${(0, import_react21.useId)()}`;
3063
- const headerId = `dialog-header-${(0, import_react21.useId)()}`;
3064
- const dialogClasses = (0, import_dedupe24.default)(
3154
+ const hiddenId = `dialog-screen-reader-announce-${(0, import_react22.useId)()}`;
3155
+ const headerId = `dialog-header-${(0, import_react22.useId)()}`;
3156
+ const dialogClasses = (0, import_dedupe25.default)(
3065
3157
  "mobius",
3066
3158
  "mobius-drawer",
3067
3159
  `--${direction}`,
@@ -3070,10 +3162,10 @@ var init_Drawer = __esm({
3070
3162
  "--should-transition": shouldTransition
3071
3163
  }
3072
3164
  );
3073
- (0, import_react21.useEffect)(() => {
3165
+ (0, import_react22.useEffect)(() => {
3074
3166
  setShouldTransition(supportsDialog());
3075
3167
  }, []);
3076
- const contextValue = (0, import_react21.useMemo)(
3168
+ const contextValue = (0, import_react22.useMemo)(
3077
3169
  () => ({
3078
3170
  onClose: close,
3079
3171
  closeLabel,
@@ -3081,18 +3173,18 @@ var init_Drawer = __esm({
3081
3173
  }),
3082
3174
  [close, closeLabel, headerId]
3083
3175
  );
3084
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
3176
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3085
3177
  "dialog",
3086
3178
  {
3087
- id: (0, import_react21.useId)(),
3179
+ id: (0, import_react22.useId)(),
3088
3180
  ref: mergeRefs([dialogRef, ref]),
3089
3181
  onCancel: close,
3090
3182
  className: dialogClasses,
3091
3183
  "aria-describedby": hiddenId,
3092
3184
  "aria-labelledby": headerId,
3093
3185
  children: [
3094
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { id: hiddenId, children: announce }) }),
3095
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DrawerContext.Provider, { value: contextValue, children })
3186
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { id: hiddenId, children: announce }) }),
3187
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DrawerContext.Provider, { value: contextValue, children })
3096
3188
  ]
3097
3189
  }
3098
3190
  );
@@ -3102,21 +3194,21 @@ var init_Drawer = __esm({
3102
3194
  });
3103
3195
 
3104
3196
  // src/components/Drawer/useDrawer.ts
3105
- var import_react22, useDrawer;
3197
+ var import_react23, useDrawer;
3106
3198
  var init_useDrawer = __esm({
3107
3199
  "src/components/Drawer/useDrawer.ts"() {
3108
3200
  "use strict";
3109
- import_react22 = require("react");
3201
+ import_react23 = require("react");
3110
3202
  init_DrawerContext();
3111
3203
  useDrawer = () => {
3112
- const { onClose, closeLabel, headerId } = (0, import_react22.useContext)(DrawerContext);
3204
+ const { onClose, closeLabel, headerId } = (0, import_react23.useContext)(DrawerContext);
3113
3205
  return { onClose, closeLabel, headerId };
3114
3206
  };
3115
3207
  }
3116
3208
  });
3117
3209
 
3118
3210
  // src/components/Drawer/Header.tsx
3119
- var import_icons8, import_jsx_runtime29, Header;
3211
+ var import_icons8, import_jsx_runtime31, Header;
3120
3212
  var init_Header = __esm({
3121
3213
  "src/components/Drawer/Header.tsx"() {
3122
3214
  "use strict";
@@ -3124,12 +3216,12 @@ var init_Header = __esm({
3124
3216
  init_Button2();
3125
3217
  init_Icon2();
3126
3218
  init_useDrawer();
3127
- import_jsx_runtime29 = require("react/jsx-runtime");
3219
+ import_jsx_runtime31 = require("react/jsx-runtime");
3128
3220
  Header = ({ ref, children, ...otherProps }) => {
3129
3221
  const { onClose, closeLabel, headerId } = useDrawer();
3130
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("header", { ref, ...otherProps, className: "mobius-drawer__header", children: [
3131
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("h2", { id: headerId, children }),
3132
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
3222
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("header", { ref, ...otherProps, className: "mobius-drawer__header", children: [
3223
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("h2", { id: headerId, children }),
3224
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3133
3225
  Button,
3134
3226
  {
3135
3227
  "aria-label": "Close",
@@ -3138,7 +3230,7 @@ var init_Header = __esm({
3138
3230
  className: "mobius-drawer__close",
3139
3231
  size: "sm",
3140
3232
  children: [
3141
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon, { icon: import_icons8.cross }),
3233
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon, { icon: import_icons8.cross }),
3142
3234
  " ",
3143
3235
  closeLabel
3144
3236
  ]
@@ -3167,17 +3259,17 @@ var init_Drawer2 = __esm({
3167
3259
  });
3168
3260
 
3169
3261
  // src/components/DropdownMenu/DropdownMenu.tsx
3170
- var import_react23, import_react_accessible_dropdown_menu_hook, import_dedupe25, import_DropdownMenu, import_jsx_runtime30, DropdownMenu;
3262
+ var import_react24, import_react_accessible_dropdown_menu_hook, import_dedupe26, import_DropdownMenu, import_jsx_runtime32, DropdownMenu;
3171
3263
  var init_DropdownMenu = __esm({
3172
3264
  "src/components/DropdownMenu/DropdownMenu.tsx"() {
3173
3265
  "use strict";
3174
3266
  "use client";
3175
- import_react23 = require("react");
3267
+ import_react24 = require("react");
3176
3268
  import_react_accessible_dropdown_menu_hook = __toESM(require("react-accessible-dropdown-menu-hook"));
3177
- import_dedupe25 = __toESM(require("classnames/dedupe"));
3269
+ import_dedupe26 = __toESM(require("classnames/dedupe"));
3178
3270
  init_Button2();
3179
3271
  import_DropdownMenu = require("@simplybusiness/mobius/src/components/DropdownMenu/DropdownMenu.css");
3180
- import_jsx_runtime30 = require("react/jsx-runtime");
3272
+ import_jsx_runtime32 = require("react/jsx-runtime");
3181
3273
  DropdownMenu = ({ ref, ...props }) => {
3182
3274
  const {
3183
3275
  elementType: Element = "nav",
@@ -3186,21 +3278,21 @@ var init_DropdownMenu = __esm({
3186
3278
  children,
3187
3279
  ...otherProps
3188
3280
  } = props;
3189
- const [activeId, setActiveId] = (0, import_react23.useState)(null);
3190
- const numberOfItems = import_react23.Children.count(children);
3281
+ const [activeId, setActiveId] = (0, import_react24.useState)(null);
3282
+ const numberOfItems = import_react24.Children.count(children);
3191
3283
  const {
3192
3284
  buttonProps,
3193
3285
  itemProps,
3194
3286
  isOpen: open,
3195
3287
  setIsOpen
3196
3288
  } = (0, import_react_accessible_dropdown_menu_hook.default)(numberOfItems);
3197
- const classes = (0, import_dedupe25.default)(
3289
+ const classes = (0, import_dedupe26.default)(
3198
3290
  "mobius",
3199
3291
  "mobius-dropdown-menu",
3200
3292
  otherProps.className
3201
3293
  );
3202
- const triggerClasses = (0, import_dedupe25.default)("mobius", "mobius-dropdown-menu__trigger");
3203
- const listClasses = (0, import_dedupe25.default)("mobius", "mobius-dropdown-menu__list", {
3294
+ const triggerClasses = (0, import_dedupe26.default)("mobius", "mobius-dropdown-menu__trigger");
3295
+ const listClasses = (0, import_dedupe26.default)("mobius", "mobius-dropdown-menu__list", {
3204
3296
  "--is-open": open
3205
3297
  });
3206
3298
  const handleChildClick = ({ onClick }, index) => {
@@ -3210,16 +3302,16 @@ var init_DropdownMenu = __esm({
3210
3302
  onClick();
3211
3303
  }
3212
3304
  };
3213
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Element, { ref, ...otherProps, className: classes, children: [
3214
- trigger ? (0, import_react23.cloneElement)(trigger, {
3305
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Element, { ref, ...otherProps, className: classes, children: [
3306
+ trigger ? (0, import_react24.cloneElement)(trigger, {
3215
3307
  className: triggerClasses,
3216
3308
  open,
3217
3309
  label,
3218
3310
  ...buttonProps
3219
- }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Button, { className: triggerClasses, ...buttonProps, children: label }),
3220
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("ul", { className: listClasses, role: "menu", children: import_react23.Children.map(children, (child, index) => {
3221
- if ((0, import_react23.isValidElement)(child)) {
3222
- return (0, import_react23.cloneElement)(child, {
3311
+ }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { className: triggerClasses, ...buttonProps, children: label }),
3312
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("ul", { className: listClasses, role: "menu", children: import_react24.Children.map(children, (child, index) => {
3313
+ if ((0, import_react24.isValidElement)(child)) {
3314
+ return (0, import_react24.cloneElement)(child, {
3223
3315
  onClick: () => handleChildClick(child.props, index),
3224
3316
  active: index === activeId,
3225
3317
  ...itemProps[index]
@@ -3234,13 +3326,13 @@ var init_DropdownMenu = __esm({
3234
3326
  });
3235
3327
 
3236
3328
  // src/components/DropdownMenu/Item.tsx
3237
- var import_react24, import_dedupe26, import_jsx_runtime31, Item;
3329
+ var import_react25, import_dedupe27, import_jsx_runtime33, Item;
3238
3330
  var init_Item = __esm({
3239
3331
  "src/components/DropdownMenu/Item.tsx"() {
3240
3332
  "use strict";
3241
- import_react24 = require("react");
3242
- import_dedupe26 = __toESM(require("classnames/dedupe"));
3243
- import_jsx_runtime31 = require("react/jsx-runtime");
3333
+ import_react25 = require("react");
3334
+ import_dedupe27 = __toESM(require("classnames/dedupe"));
3335
+ import_jsx_runtime33 = require("react/jsx-runtime");
3244
3336
  Item = ({ ref, ...props }) => {
3245
3337
  const {
3246
3338
  elementType: Element = "li",
@@ -3249,26 +3341,26 @@ var init_Item = __esm({
3249
3341
  children,
3250
3342
  ...otherProps
3251
3343
  } = props;
3252
- const classes = (0, import_dedupe26.default)(
3344
+ const classes = (0, import_dedupe27.default)(
3253
3345
  "mobius",
3254
3346
  "mobius-dropdown-menu__item",
3255
3347
  { "--is-active": active },
3256
3348
  otherProps.className
3257
3349
  );
3258
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Element, { ref, onClick, ...otherProps, children: import_react24.Children.map(children, (child) => {
3259
- if ((0, import_react24.isValidElement)(child)) {
3260
- const childClasses = (0, import_dedupe26.default)(
3350
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Element, { ref, onClick, ...otherProps, children: import_react25.Children.map(children, (child) => {
3351
+ if ((0, import_react25.isValidElement)(child)) {
3352
+ const childClasses = (0, import_dedupe27.default)(
3261
3353
  child.props.className,
3262
3354
  classes
3263
3355
  );
3264
- return (0, import_react24.cloneElement)(
3356
+ return (0, import_react25.cloneElement)(
3265
3357
  child,
3266
3358
  {
3267
3359
  className: childClasses
3268
3360
  }
3269
3361
  );
3270
3362
  }
3271
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: classes, children: child });
3363
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: classes, children: child });
3272
3364
  }) });
3273
3365
  };
3274
3366
  Item.displayName = "DropdownMenu.Item";
@@ -3293,23 +3385,23 @@ var init_DropdownMenu2 = __esm({
3293
3385
  });
3294
3386
 
3295
3387
  // src/components/Fieldset/Fieldset.tsx
3296
- var import_dedupe27, import_react25, import_Fieldset, import_jsx_runtime32, useFieldset, Fieldset;
3388
+ var import_dedupe28, import_react26, import_Fieldset, import_jsx_runtime34, useFieldset, Fieldset;
3297
3389
  var init_Fieldset = __esm({
3298
3390
  "src/components/Fieldset/Fieldset.tsx"() {
3299
3391
  "use strict";
3300
3392
  "use client";
3301
- import_dedupe27 = __toESM(require("classnames/dedupe"));
3302
- import_react25 = require("react");
3393
+ import_dedupe28 = __toESM(require("classnames/dedupe"));
3394
+ import_react26 = require("react");
3303
3395
  init_Flex2();
3304
3396
  import_Fieldset = require("@simplybusiness/mobius/src/components/Fieldset/Fieldset.css");
3305
- import_jsx_runtime32 = require("react/jsx-runtime");
3397
+ import_jsx_runtime34 = require("react/jsx-runtime");
3306
3398
  useFieldset = (props) => {
3307
3399
  const { legend } = props;
3308
3400
  let legendProps = {};
3309
3401
  let containerProps = {
3310
3402
  role: "group"
3311
3403
  };
3312
- const legendId = (0, import_react25.useId)();
3404
+ const legendId = (0, import_react26.useId)();
3313
3405
  if (legend) {
3314
3406
  legendProps = {
3315
3407
  ...legendProps,
@@ -3329,14 +3421,14 @@ var init_Fieldset = __esm({
3329
3421
  const {
3330
3422
  children,
3331
3423
  legend,
3332
- legendComponent = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("legend", {}),
3424
+ legendComponent = /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("legend", {}),
3333
3425
  ...otherProps
3334
3426
  } = props;
3335
3427
  const { legendProps, containerProps } = useFieldset(props);
3336
- const classes = (0, import_dedupe27.default)("mobius", "mobius-fieldset", props.className);
3428
+ const classes = (0, import_dedupe28.default)("mobius", "mobius-fieldset", props.className);
3337
3429
  legendProps.className = "mobius-fieldset__legend";
3338
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Flex, { ...containerProps, ...otherProps, className: classes, children: [
3339
- legend && (0, import_react25.cloneElement)(legendComponent, { ...legendProps }, [legend]),
3430
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Flex, { ...containerProps, ...otherProps, className: classes, children: [
3431
+ legend && (0, import_react26.cloneElement)(legendComponent, { ...legendProps }, [legend]),
3340
3432
  children
3341
3433
  ] });
3342
3434
  };
@@ -3353,13 +3445,13 @@ var init_Fieldset2 = __esm({
3353
3445
  });
3354
3446
 
3355
3447
  // src/components/Grid/Grid.tsx
3356
- var import_dedupe28, import_jsx_runtime33, Grid;
3448
+ var import_dedupe29, import_jsx_runtime35, Grid;
3357
3449
  var init_Grid = __esm({
3358
3450
  "src/components/Grid/Grid.tsx"() {
3359
3451
  "use strict";
3360
- import_dedupe28 = __toESM(require("classnames/dedupe"));
3452
+ import_dedupe29 = __toESM(require("classnames/dedupe"));
3361
3453
  init_utils();
3362
- import_jsx_runtime33 = require("react/jsx-runtime");
3454
+ import_jsx_runtime35 = require("react/jsx-runtime");
3363
3455
  Grid = ({ ref: _ref, ...props }) => {
3364
3456
  const {
3365
3457
  columns = 12,
@@ -3374,7 +3466,7 @@ var init_Grid = __esm({
3374
3466
  style,
3375
3467
  ...rest
3376
3468
  } = props;
3377
- const classes = (0, import_dedupe28.default)("mobius", "mobius-grid", className);
3469
+ const classes = (0, import_dedupe29.default)("mobius", "mobius-grid", className);
3378
3470
  const styles = filterUndefinedProps({
3379
3471
  boxSizing: "border-box",
3380
3472
  display: "grid",
@@ -3388,22 +3480,22 @@ var init_Grid = __esm({
3388
3480
  justifyItems,
3389
3481
  ...style
3390
3482
  });
3391
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { style: styles, className: classes, ...rest });
3483
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { style: styles, className: classes, ...rest });
3392
3484
  };
3393
3485
  Grid.displayName = "Grid";
3394
3486
  }
3395
3487
  });
3396
3488
 
3397
3489
  // src/components/Grid/Item.tsx
3398
- var import_react26, import_dedupe29, import_jsx_runtime34, getBreakpointMap, DEFAULT_SPAN, GridItem;
3490
+ var import_react27, import_dedupe30, import_jsx_runtime36, getBreakpointMap, DEFAULT_SPAN, GridItem;
3399
3491
  var init_Item2 = __esm({
3400
3492
  "src/components/Grid/Item.tsx"() {
3401
3493
  "use strict";
3402
3494
  "use client";
3403
- import_react26 = require("react");
3404
- import_dedupe29 = __toESM(require("classnames/dedupe"));
3495
+ import_react27 = require("react");
3496
+ import_dedupe30 = __toESM(require("classnames/dedupe"));
3405
3497
  init_hooks();
3406
- import_jsx_runtime34 = require("react/jsx-runtime");
3498
+ import_jsx_runtime36 = require("react/jsx-runtime");
3407
3499
  getBreakpointMap = (config) => Object.entries(config).reduce(
3408
3500
  (prev, [key, value]) => {
3409
3501
  const previous = Object.values(prev);
@@ -3438,9 +3530,9 @@ var init_Item2 = __esm({
3438
3530
  xl,
3439
3531
  xxl
3440
3532
  });
3441
- const [responsiveSpan, setResponsiveSpan] = (0, import_react26.useState)();
3442
- const classes = (0, import_dedupe29.default)("mobius-grid__item", className);
3443
- (0, import_react26.useEffect)(() => {
3533
+ const [responsiveSpan, setResponsiveSpan] = (0, import_react27.useState)();
3534
+ const classes = (0, import_dedupe30.default)("mobius-grid__item", className);
3535
+ (0, import_react27.useEffect)(() => {
3444
3536
  setResponsiveSpan(breakpointMap[breakpointSize]);
3445
3537
  }, [breakpointSize, breakpointMap]);
3446
3538
  const styles = {
@@ -3448,7 +3540,7 @@ var init_Item2 = __esm({
3448
3540
  alignSelf,
3449
3541
  justifySelf
3450
3542
  };
3451
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { style: { ...styles }, className: classes, ...rest });
3543
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { style: { ...styles }, className: classes, ...rest });
3452
3544
  };
3453
3545
  GridItem.displayName = "GridItem";
3454
3546
  }
@@ -3469,20 +3561,20 @@ var init_Grid2 = __esm({
3469
3561
  });
3470
3562
 
3471
3563
  // src/components/Image/Image.tsx
3472
- var import_dedupe30, import_jsx_runtime35, Image;
3564
+ var import_dedupe31, import_jsx_runtime37, Image;
3473
3565
  var init_Image = __esm({
3474
3566
  "src/components/Image/Image.tsx"() {
3475
3567
  "use strict";
3476
- import_dedupe30 = __toESM(require("classnames/dedupe"));
3477
- import_jsx_runtime35 = require("react/jsx-runtime");
3568
+ import_dedupe31 = __toESM(require("classnames/dedupe"));
3569
+ import_jsx_runtime37 = require("react/jsx-runtime");
3478
3570
  Image = ({
3479
3571
  ref,
3480
3572
  alt,
3481
3573
  elementType: Component = "img",
3482
3574
  ...otherProps
3483
3575
  }) => {
3484
- const classes = (0, import_dedupe30.default)("mobius", "mobius-image", otherProps.className);
3485
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Component, { alt, ref, ...otherProps, className: classes });
3576
+ const classes = (0, import_dedupe31.default)("mobius", "mobius-image", otherProps.className);
3577
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Component, { alt, ref, ...otherProps, className: classes });
3486
3578
  };
3487
3579
  Image.displayName = "Image";
3488
3580
  }
@@ -3497,13 +3589,13 @@ var init_Image2 = __esm({
3497
3589
  });
3498
3590
 
3499
3591
  // src/components/Link/Link.tsx
3500
- var import_dedupe31, import_Link, import_jsx_runtime36, Link;
3592
+ var import_dedupe32, import_Link, import_jsx_runtime38, Link;
3501
3593
  var init_Link = __esm({
3502
3594
  "src/components/Link/Link.tsx"() {
3503
3595
  "use strict";
3504
- import_dedupe31 = __toESM(require("classnames/dedupe"));
3596
+ import_dedupe32 = __toESM(require("classnames/dedupe"));
3505
3597
  import_Link = require("@simplybusiness/mobius/src/components/Link/Link.css");
3506
- import_jsx_runtime36 = require("react/jsx-runtime");
3598
+ import_jsx_runtime38 = require("react/jsx-runtime");
3507
3599
  Link = ({ ref, ...props }) => {
3508
3600
  const {
3509
3601
  isDisabled = false,
@@ -3517,7 +3609,7 @@ var init_Link = __esm({
3517
3609
  pointerEvents: "none"
3518
3610
  };
3519
3611
  const styles = { ...style, ...isDisabled && disabledStyles };
3520
- const classes = (0, import_dedupe31.default)(
3612
+ const classes = (0, import_dedupe32.default)(
3521
3613
  "mobius",
3522
3614
  "mobius-link",
3523
3615
  className,
@@ -3526,7 +3618,7 @@ var init_Link = __esm({
3526
3618
  "--is-disabled": isDisabled
3527
3619
  }
3528
3620
  );
3529
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3621
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3530
3622
  Component,
3531
3623
  {
3532
3624
  ref,
@@ -3551,12 +3643,12 @@ var init_Link2 = __esm({
3551
3643
  });
3552
3644
 
3553
3645
  // src/components/LinkButton/LinkButton.tsx
3554
- var import_dedupe32, import_jsx_runtime37;
3646
+ var import_dedupe33, import_jsx_runtime39;
3555
3647
  var init_LinkButton = __esm({
3556
3648
  "src/components/LinkButton/LinkButton.tsx"() {
3557
3649
  "use strict";
3558
- import_dedupe32 = __toESM(require("classnames/dedupe"));
3559
- import_jsx_runtime37 = require("react/jsx-runtime");
3650
+ import_dedupe33 = __toESM(require("classnames/dedupe"));
3651
+ import_jsx_runtime39 = require("react/jsx-runtime");
3560
3652
  }
3561
3653
  });
3562
3654
 
@@ -3569,14 +3661,14 @@ var init_LinkButton2 = __esm({
3569
3661
  });
3570
3662
 
3571
3663
  // src/components/List/List.tsx
3572
- var import_react27, import_dedupe33, import_List, import_jsx_runtime38, List;
3664
+ var import_react28, import_dedupe34, import_List, import_jsx_runtime40, List;
3573
3665
  var init_List = __esm({
3574
3666
  "src/components/List/List.tsx"() {
3575
3667
  "use strict";
3576
- import_react27 = require("react");
3577
- import_dedupe33 = __toESM(require("classnames/dedupe"));
3668
+ import_react28 = require("react");
3669
+ import_dedupe34 = __toESM(require("classnames/dedupe"));
3578
3670
  import_List = require("@simplybusiness/mobius/src/components/List/List.css");
3579
- import_jsx_runtime38 = require("react/jsx-runtime");
3671
+ import_jsx_runtime40 = require("react/jsx-runtime");
3580
3672
  List = ({ ref, ...props }) => {
3581
3673
  const Component = props.isOrdered ? "ol" : "ul";
3582
3674
  const { children, icon, ...otherProps } = props;
@@ -3585,7 +3677,7 @@ var init_List = __esm({
3585
3677
  ...restProps,
3586
3678
  reversed: isReversed
3587
3679
  };
3588
- const classes = (0, import_dedupe33.default)(
3680
+ const classes = (0, import_dedupe34.default)(
3589
3681
  "mobius",
3590
3682
  "mobius-list",
3591
3683
  {
@@ -3594,9 +3686,9 @@ var init_List = __esm({
3594
3686
  },
3595
3687
  otherProps.className
3596
3688
  );
3597
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Component, { ref, ...mappedProps, className: classes, children: import_react27.Children.map(children, (child) => {
3598
- if ((0, import_react27.isValidElement)(child)) {
3599
- return (0, import_react27.cloneElement)(child, {
3689
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Component, { ref, ...mappedProps, className: classes, children: import_react28.Children.map(children, (child) => {
3690
+ if ((0, import_react28.isValidElement)(child)) {
3691
+ return (0, import_react28.cloneElement)(child, {
3600
3692
  parentIcon: icon
3601
3693
  });
3602
3694
  }
@@ -3608,16 +3700,16 @@ var init_List = __esm({
3608
3700
  });
3609
3701
 
3610
3702
  // src/components/List/ListItem.tsx
3611
- var import_dedupe34, import_jsx_runtime39, ListItem;
3703
+ var import_dedupe35, import_jsx_runtime41, ListItem;
3612
3704
  var init_ListItem = __esm({
3613
3705
  "src/components/List/ListItem.tsx"() {
3614
3706
  "use strict";
3615
- import_dedupe34 = __toESM(require("classnames/dedupe"));
3616
- import_jsx_runtime39 = require("react/jsx-runtime");
3707
+ import_dedupe35 = __toESM(require("classnames/dedupe"));
3708
+ import_jsx_runtime41 = require("react/jsx-runtime");
3617
3709
  ListItem = ({ ref, ...props }) => {
3618
3710
  const { parentIcon, icon, children, ...otherProps } = props;
3619
3711
  const iconContent = icon || parentIcon;
3620
- const classes = (0, import_dedupe34.default)(
3712
+ const classes = (0, import_dedupe35.default)(
3621
3713
  "mobius",
3622
3714
  "mobius-list__item",
3623
3715
  {
@@ -3625,15 +3717,15 @@ var init_ListItem = __esm({
3625
3717
  },
3626
3718
  props.className
3627
3719
  );
3628
- const contentClasses = (0, import_dedupe34.default)("mobius", "mobius-list__item-content");
3629
- const iconClasses = (0, import_dedupe34.default)("mobius", "mobius-list__icon");
3720
+ const contentClasses = (0, import_dedupe35.default)("mobius", "mobius-list__item-content");
3721
+ const iconClasses = (0, import_dedupe35.default)("mobius", "mobius-list__icon");
3630
3722
  if (iconContent) {
3631
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("li", { ref, ...otherProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: contentClasses, children: [
3632
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: iconClasses, children: iconContent }),
3723
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("li", { ref, ...otherProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("span", { className: contentClasses, children: [
3724
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: iconClasses, children: iconContent }),
3633
3725
  children
3634
3726
  ] }) });
3635
3727
  }
3636
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("li", { ref, ...otherProps, className: classes, children });
3728
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("li", { ref, ...otherProps, className: classes, children });
3637
3729
  };
3638
3730
  ListItem.displayName = "ListItem";
3639
3731
  }
@@ -3649,23 +3741,23 @@ var init_List2 = __esm({
3649
3741
  });
3650
3742
 
3651
3743
  // src/components/LoadingIndicator/LoadingIndicator.tsx
3652
- var import_dedupe35, import_icons9, import_LoadingIndicator, import_jsx_runtime40, LoadingIndicator;
3744
+ var import_dedupe36, import_icons9, import_LoadingIndicator, import_jsx_runtime42, LoadingIndicator;
3653
3745
  var init_LoadingIndicator = __esm({
3654
3746
  "src/components/LoadingIndicator/LoadingIndicator.tsx"() {
3655
3747
  "use strict";
3656
- import_dedupe35 = __toESM(require("classnames/dedupe"));
3748
+ import_dedupe36 = __toESM(require("classnames/dedupe"));
3657
3749
  import_icons9 = require("@simplybusiness/icons");
3658
3750
  init_Icon2();
3659
3751
  import_LoadingIndicator = require("@simplybusiness/mobius/src/components/LoadingIndicator/LoadingIndicator.css");
3660
- import_jsx_runtime40 = require("react/jsx-runtime");
3752
+ import_jsx_runtime42 = require("react/jsx-runtime");
3661
3753
  LoadingIndicator = ({ ref, ...props }) => {
3662
3754
  const { icon = import_icons9.loading, ...otherProps } = props;
3663
- const classes = (0, import_dedupe35.default)(
3755
+ const classes = (0, import_dedupe36.default)(
3664
3756
  "mobius",
3665
3757
  "mobius-loading-indicator",
3666
3758
  otherProps.className
3667
3759
  );
3668
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon, { icon, spin: true, ref, ...otherProps, className: classes });
3760
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon, { icon, spin: true, ref, ...otherProps, className: classes });
3669
3761
  };
3670
3762
  LoadingIndicator.displayName = "LoadingIndicator";
3671
3763
  }
@@ -3680,16 +3772,16 @@ var init_LoadingIndicator2 = __esm({
3680
3772
  });
3681
3773
 
3682
3774
  // src/components/Logo/Logo.tsx
3683
- var import_dedupe36, import_jsx_runtime41, Logo;
3775
+ var import_dedupe37, import_jsx_runtime43, Logo;
3684
3776
  var init_Logo = __esm({
3685
3777
  "src/components/Logo/Logo.tsx"() {
3686
3778
  "use strict";
3687
- import_dedupe36 = __toESM(require("classnames/dedupe"));
3688
- import_jsx_runtime41 = require("react/jsx-runtime");
3779
+ import_dedupe37 = __toESM(require("classnames/dedupe"));
3780
+ import_jsx_runtime43 = require("react/jsx-runtime");
3689
3781
  Logo = ({ ref, ...props }) => {
3690
3782
  const { className, width, height, ...otherProps } = props;
3691
- const classes = (0, import_dedupe36.default)("mobius", "mobius-logo", className);
3692
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
3783
+ const classes = (0, import_dedupe37.default)("mobius", "mobius-logo", className);
3784
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
3693
3785
  "svg",
3694
3786
  {
3695
3787
  width,
@@ -3699,7 +3791,7 @@ var init_Logo = __esm({
3699
3791
  viewBox: "0 0 144 37",
3700
3792
  ...otherProps,
3701
3793
  children: [
3702
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
3794
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
3703
3795
  "linearGradient",
3704
3796
  {
3705
3797
  id: "logo-gradient",
@@ -3708,27 +3800,27 @@ var init_Logo = __esm({
3708
3800
  y1: "76.042%",
3709
3801
  y2: "26.973%",
3710
3802
  children: [
3711
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("stop", { stopColor: "#4632D8", offset: "0%" }),
3712
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("stop", { stopColor: "#9084E8", offset: "100%" })
3803
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("stop", { stopColor: "#4632D8", offset: "0%" }),
3804
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("stop", { stopColor: "#9084E8", offset: "100%" })
3713
3805
  ]
3714
3806
  }
3715
3807
  ) }),
3716
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("g", { children: [
3717
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3808
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("g", { children: [
3809
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3718
3810
  "path",
3719
3811
  {
3720
3812
  fill: "#0E0A2B",
3721
3813
  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"
3722
3814
  }
3723
3815
  ),
3724
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3816
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3725
3817
  "path",
3726
3818
  {
3727
3819
  fill: "url(#logo-gradient)",
3728
3820
  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"
3729
3821
  }
3730
3822
  ),
3731
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3823
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3732
3824
  "path",
3733
3825
  {
3734
3826
  fill: "#0E0A2B",
@@ -3753,23 +3845,23 @@ var init_Logo2 = __esm({
3753
3845
  });
3754
3846
 
3755
3847
  // src/components/Modal/Content.tsx
3756
- var import_jsx_runtime42, Content2;
3848
+ var import_jsx_runtime44, Content2;
3757
3849
  var init_Content2 = __esm({
3758
3850
  "src/components/Modal/Content.tsx"() {
3759
3851
  "use strict";
3760
- import_jsx_runtime42 = require("react/jsx-runtime");
3761
- Content2 = ({ ref, children, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { ref, ...otherProps, className: "mobius-modal__content", children });
3852
+ import_jsx_runtime44 = require("react/jsx-runtime");
3853
+ Content2 = ({ ref, children, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { ref, ...otherProps, className: "mobius-modal__content", children });
3762
3854
  Content2.displayName = "Content";
3763
3855
  }
3764
3856
  });
3765
3857
 
3766
3858
  // src/components/Modal/ModalContext.tsx
3767
- var import_react28, ModalContext;
3859
+ var import_react29, ModalContext;
3768
3860
  var init_ModalContext = __esm({
3769
3861
  "src/components/Modal/ModalContext.tsx"() {
3770
3862
  "use strict";
3771
- import_react28 = require("react");
3772
- ModalContext = (0, import_react28.createContext)({
3863
+ import_react29 = require("react");
3864
+ ModalContext = (0, import_react29.createContext)({
3773
3865
  onClose: () => {
3774
3866
  },
3775
3867
  closeLabel: void 0
@@ -3778,21 +3870,21 @@ var init_ModalContext = __esm({
3778
3870
  });
3779
3871
 
3780
3872
  // src/components/Modal/useModal.ts
3781
- var import_react29, useModal;
3873
+ var import_react30, useModal;
3782
3874
  var init_useModal = __esm({
3783
3875
  "src/components/Modal/useModal.ts"() {
3784
3876
  "use strict";
3785
- import_react29 = require("react");
3877
+ import_react30 = require("react");
3786
3878
  init_ModalContext();
3787
3879
  useModal = () => {
3788
- const { onClose, closeLabel } = (0, import_react29.useContext)(ModalContext);
3880
+ const { onClose, closeLabel } = (0, import_react30.useContext)(ModalContext);
3789
3881
  return { onClose, closeLabel };
3790
3882
  };
3791
3883
  }
3792
3884
  });
3793
3885
 
3794
3886
  // src/components/Modal/Header.tsx
3795
- var import_icons10, import_jsx_runtime43, Header2;
3887
+ var import_icons10, import_jsx_runtime45, Header2;
3796
3888
  var init_Header2 = __esm({
3797
3889
  "src/components/Modal/Header.tsx"() {
3798
3890
  "use strict";
@@ -3800,12 +3892,12 @@ var init_Header2 = __esm({
3800
3892
  init_Button2();
3801
3893
  init_Icon2();
3802
3894
  init_useModal();
3803
- import_jsx_runtime43 = require("react/jsx-runtime");
3895
+ import_jsx_runtime45 = require("react/jsx-runtime");
3804
3896
  Header2 = ({ ref, children, ...otherProps }) => {
3805
3897
  const { onClose, closeLabel } = useModal();
3806
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("header", { ref, ...otherProps, className: "mobius-modal__header", children: [
3898
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("header", { ref, ...otherProps, className: "mobius-modal__header", children: [
3807
3899
  children,
3808
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
3900
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
3809
3901
  Button,
3810
3902
  {
3811
3903
  "aria-label": "Close",
@@ -3813,7 +3905,7 @@ var init_Header2 = __esm({
3813
3905
  onPress: onClose,
3814
3906
  className: "mobius-modal__close",
3815
3907
  children: [
3816
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon, { icon: import_icons10.cross }),
3908
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon, { icon: import_icons10.cross }),
3817
3909
  " ",
3818
3910
  closeLabel
3819
3911
  ]
@@ -3826,19 +3918,19 @@ var init_Header2 = __esm({
3826
3918
  });
3827
3919
 
3828
3920
  // src/components/Modal/Modal.tsx
3829
- var import_dedupe37, import_react30, import_Modal, import_jsx_runtime44, TRANSITION_CSS_VARIABLE2, Modal;
3921
+ var import_dedupe38, import_react31, import_Modal, import_jsx_runtime46, TRANSITION_CSS_VARIABLE2, Modal;
3830
3922
  var init_Modal = __esm({
3831
3923
  "src/components/Modal/Modal.tsx"() {
3832
3924
  "use strict";
3833
3925
  "use client";
3834
- import_dedupe37 = __toESM(require("classnames/dedupe"));
3835
- import_react30 = require("react");
3926
+ import_dedupe38 = __toESM(require("classnames/dedupe"));
3927
+ import_react31 = require("react");
3836
3928
  init_hooks();
3837
3929
  init_utils();
3838
3930
  init_polyfill_tests();
3839
3931
  init_ModalContext();
3840
3932
  import_Modal = require("@simplybusiness/mobius/src/components/Modal/Modal.css");
3841
- import_jsx_runtime44 = require("react/jsx-runtime");
3933
+ import_jsx_runtime46 = require("react/jsx-runtime");
3842
3934
  TRANSITION_CSS_VARIABLE2 = "--modal-transition-duration";
3843
3935
  Modal = ({ ref, ...props }) => {
3844
3936
  const {
@@ -3852,11 +3944,11 @@ var init_Modal = __esm({
3852
3944
  animation,
3853
3945
  ...rest
3854
3946
  } = props;
3855
- const [shouldTransition, setShouldTransition] = (0, import_react30.useState)(false);
3856
- (0, import_react30.useEffect)(() => {
3947
+ const [shouldTransition, setShouldTransition] = (0, import_react31.useState)(false);
3948
+ (0, import_react31.useEffect)(() => {
3857
3949
  setShouldTransition(supportsDialog());
3858
3950
  }, []);
3859
- const dialogRef = (0, import_react30.useRef)(null);
3951
+ const dialogRef = (0, import_react31.useRef)(null);
3860
3952
  const { close } = useDialog({
3861
3953
  ref: dialogRef,
3862
3954
  isOpen,
@@ -3867,7 +3959,7 @@ var init_Modal = __esm({
3867
3959
  CSSVariable: TRANSITION_CSS_VARIABLE2
3868
3960
  }
3869
3961
  });
3870
- const modalClasses = (0, import_dedupe37.default)(
3962
+ const modalClasses = (0, import_dedupe38.default)(
3871
3963
  "mobius",
3872
3964
  "mobius-modal",
3873
3965
  {
@@ -3880,21 +3972,21 @@ var init_Modal = __esm({
3880
3972
  },
3881
3973
  className
3882
3974
  );
3883
- const contextValue = (0, import_react30.useMemo)(
3975
+ const contextValue = (0, import_react31.useMemo)(
3884
3976
  () => ({
3885
3977
  onClose: close,
3886
3978
  closeLabel
3887
3979
  }),
3888
3980
  [close, closeLabel]
3889
3981
  );
3890
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3982
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
3891
3983
  "dialog",
3892
3984
  {
3893
3985
  ref: mergeRefs([dialogRef, ref]),
3894
3986
  onCancel: close,
3895
3987
  className: modalClasses,
3896
3988
  ...rest,
3897
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ModalContext.Provider, { value: contextValue, children })
3989
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ModalContext.Provider, { value: contextValue, children })
3898
3990
  }
3899
3991
  );
3900
3992
  };
@@ -3919,16 +4011,16 @@ var init_Modal2 = __esm({
3919
4011
  });
3920
4012
 
3921
4013
  // src/components/NumberField/NumberField.tsx
3922
- var import_dedupe38, import_react31, import_NumberField, import_jsx_runtime45, NumberField;
4014
+ var import_dedupe39, import_react32, import_NumberField, import_jsx_runtime47, NumberField;
3923
4015
  var init_NumberField = __esm({
3924
4016
  "src/components/NumberField/NumberField.tsx"() {
3925
4017
  "use strict";
3926
4018
  "use client";
3927
- import_dedupe38 = __toESM(require("classnames/dedupe"));
3928
- import_react31 = require("react");
4019
+ import_dedupe39 = __toESM(require("classnames/dedupe"));
4020
+ import_react32 = require("react");
3929
4021
  init_TextField2();
3930
4022
  import_NumberField = require("@simplybusiness/mobius/src/components/NumberField/NumberField.css");
3931
- import_jsx_runtime45 = require("react/jsx-runtime");
4023
+ import_jsx_runtime47 = require("react/jsx-runtime");
3932
4024
  NumberField = ({ ref, ...props }) => {
3933
4025
  const {
3934
4026
  minValue,
@@ -3944,15 +4036,15 @@ var init_NumberField = __esm({
3944
4036
  onBlur: customOnBlur,
3945
4037
  ...rest
3946
4038
  } = otherProps;
3947
- const focusedInputRef = (0, import_react31.useRef)(null);
3948
- const wheelHandler = (0, import_react31.useCallback)((ev) => ev.preventDefault(), []);
3949
- (0, import_react31.useEffect)(() => {
4039
+ const focusedInputRef = (0, import_react32.useRef)(null);
4040
+ const wheelHandler = (0, import_react32.useCallback)((ev) => ev.preventDefault(), []);
4041
+ (0, import_react32.useEffect)(() => {
3950
4042
  return () => {
3951
4043
  focusedInputRef.current?.removeEventListener("wheel", wheelHandler);
3952
4044
  focusedInputRef.current = null;
3953
4045
  };
3954
4046
  }, [wheelHandler]);
3955
- const containerClasses = (0, import_dedupe38.default)("mobius-number-field", className, {
4047
+ const containerClasses = (0, import_dedupe39.default)("mobius-number-field", className, {
3956
4048
  "--hide-spin-buttons": hideSpinButtons
3957
4049
  });
3958
4050
  const handleBeforeInput = (event) => {
@@ -3996,7 +4088,7 @@ var init_NumberField = __esm({
3996
4088
  },
3997
4089
  onBlur: (e) => handleBlur(e)
3998
4090
  };
3999
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4091
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4000
4092
  TextField,
4001
4093
  {
4002
4094
  ...forwardedProps,
@@ -4024,18 +4116,18 @@ var init_NumberField2 = __esm({
4024
4116
  });
4025
4117
 
4026
4118
  // src/components/Option/Option.tsx
4027
- var import_jsx_runtime46, Option2;
4119
+ var import_jsx_runtime48, Option2;
4028
4120
  var init_Option2 = __esm({
4029
4121
  "src/components/Option/Option.tsx"() {
4030
4122
  "use strict";
4031
- import_jsx_runtime46 = require("react/jsx-runtime");
4123
+ import_jsx_runtime48 = require("react/jsx-runtime");
4032
4124
  Option2 = ({ ref, ...props }) => {
4033
4125
  const { isDisabled, ...rest } = props;
4034
4126
  const mappedProps = {
4035
4127
  ...rest,
4036
4128
  disabled: isDisabled
4037
4129
  };
4038
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("option", { ...mappedProps, ref });
4130
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("option", { ...mappedProps, ref });
4039
4131
  };
4040
4132
  Option2.displayName = "Option";
4041
4133
  }
@@ -4050,28 +4142,28 @@ var init_Option3 = __esm({
4050
4142
  });
4051
4143
 
4052
4144
  // src/components/PasswordField/PasswordField.tsx
4053
- var import_dedupe39, import_react32, import_PasswordField, import_jsx_runtime47, PasswordField;
4145
+ var import_dedupe40, import_react33, import_PasswordField, import_jsx_runtime49, PasswordField;
4054
4146
  var init_PasswordField = __esm({
4055
4147
  "src/components/PasswordField/PasswordField.tsx"() {
4056
4148
  "use strict";
4057
4149
  "use client";
4058
- import_dedupe39 = __toESM(require("classnames/dedupe"));
4059
- import_react32 = require("react");
4150
+ import_dedupe40 = __toESM(require("classnames/dedupe"));
4151
+ import_react33 = require("react");
4060
4152
  init_mergeRefs();
4061
4153
  init_TextField2();
4062
4154
  init_ShowHideButton();
4063
4155
  import_PasswordField = require("@simplybusiness/mobius/src/components/PasswordField/PasswordField.css");
4064
- import_jsx_runtime47 = require("react/jsx-runtime");
4156
+ import_jsx_runtime49 = require("react/jsx-runtime");
4065
4157
  PasswordField = ({
4066
4158
  ref,
4067
4159
  className,
4068
4160
  autoComplete = "current-password",
4069
4161
  ...props
4070
4162
  }) => {
4071
- const [show, setShow] = (0, import_react32.useState)(false);
4163
+ const [show, setShow] = (0, import_react33.useState)(false);
4072
4164
  const type = show ? "text" : "password";
4073
- const classes = (0, import_dedupe39.default)("mobius-password-field", className);
4074
- const localRef = (0, import_react32.useRef)(null);
4165
+ const classes = (0, import_dedupe40.default)("mobius-password-field", className);
4166
+ const localRef = (0, import_react33.useRef)(null);
4075
4167
  const handleShowHideButtonClick = () => {
4076
4168
  const selectionStart = localRef.current?.selectionStart;
4077
4169
  const selectionEnd = localRef.current?.selectionEnd;
@@ -4083,7 +4175,7 @@ var init_PasswordField = __esm({
4083
4175
  }
4084
4176
  });
4085
4177
  };
4086
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4178
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4087
4179
  TextField,
4088
4180
  {
4089
4181
  ref: mergeRefs([localRef, ref]),
@@ -4091,7 +4183,7 @@ var init_PasswordField = __esm({
4091
4183
  ...props,
4092
4184
  autoComplete,
4093
4185
  type,
4094
- suffixInside: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ShowHideButton, { onClick: handleShowHideButtonClick, show })
4186
+ suffixInside: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ShowHideButton, { onClick: handleShowHideButtonClick, show })
4095
4187
  }
4096
4188
  );
4097
4189
  };
@@ -4108,17 +4200,17 @@ var init_PasswordField2 = __esm({
4108
4200
  });
4109
4201
 
4110
4202
  // src/components/Popover/Popover.tsx
4111
- var import_react33, import_icons11, import_dedupe40, import_react34, import_mobius_hooks6, import_Popover, import_jsx_runtime48;
4203
+ var import_react34, import_icons11, import_dedupe41, import_react35, import_mobius_hooks6, import_Popover, import_jsx_runtime50;
4112
4204
  var init_Popover = __esm({
4113
4205
  "src/components/Popover/Popover.tsx"() {
4114
4206
  "use strict";
4115
- import_react33 = require("@floating-ui/react");
4207
+ import_react34 = require("@floating-ui/react");
4116
4208
  import_icons11 = require("@simplybusiness/icons");
4117
- import_dedupe40 = __toESM(require("classnames/dedupe"));
4118
- import_react34 = require("react");
4209
+ import_dedupe41 = __toESM(require("classnames/dedupe"));
4210
+ import_react35 = require("react");
4119
4211
  import_mobius_hooks6 = require("@simplybusiness/mobius-hooks");
4120
4212
  import_Popover = require("@simplybusiness/mobius/src/components/Popover/Popover.css");
4121
- import_jsx_runtime48 = require("react/jsx-runtime");
4213
+ import_jsx_runtime50 = require("react/jsx-runtime");
4122
4214
  }
4123
4215
  });
4124
4216
 
@@ -4142,17 +4234,17 @@ function warnAboutInvalidValues(value, minValue, maxValue) {
4142
4234
  console.warn("Progress value is greater than maxValue");
4143
4235
  }
4144
4236
  }
4145
- var import_dedupe41, import_react35, import_Progress, import_jsx_runtime49, sanitizedValue, getLabelComponent, DEFAULT_VALUE, DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, Progress;
4237
+ var import_dedupe42, import_react36, import_Progress, import_jsx_runtime51, sanitizedValue, getLabelComponent, DEFAULT_VALUE, DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, Progress;
4146
4238
  var init_Progress = __esm({
4147
4239
  "src/components/Progress/Progress.tsx"() {
4148
4240
  "use strict";
4149
4241
  "use client";
4150
- import_dedupe41 = __toESM(require("classnames/dedupe"));
4151
- import_react35 = require("react");
4242
+ import_dedupe42 = __toESM(require("classnames/dedupe"));
4243
+ import_react36 = require("react");
4152
4244
  init_Label2();
4153
4245
  init_VisuallyHidden2();
4154
4246
  import_Progress = require("@simplybusiness/mobius/src/components/Progress/Progress.css");
4155
- import_jsx_runtime49 = require("react/jsx-runtime");
4247
+ import_jsx_runtime51 = require("react/jsx-runtime");
4156
4248
  sanitizedValue = (value, defaultValue) => {
4157
4249
  if (value === void 0 || Number.isNaN(value)) {
4158
4250
  return defaultValue;
@@ -4161,7 +4253,7 @@ var init_Progress = __esm({
4161
4253
  };
4162
4254
  getLabelComponent = (label, progressLabelId, showLabel) => {
4163
4255
  if (showLabel) {
4164
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4256
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4165
4257
  Label,
4166
4258
  {
4167
4259
  id: progressLabelId,
@@ -4171,7 +4263,7 @@ var init_Progress = __esm({
4171
4263
  }
4172
4264
  );
4173
4265
  }
4174
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4266
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4175
4267
  Label,
4176
4268
  {
4177
4269
  id: progressLabelId,
@@ -4185,8 +4277,8 @@ var init_Progress = __esm({
4185
4277
  DEFAULT_MIN_VALUE = 0;
4186
4278
  DEFAULT_MAX_VALUE = 100;
4187
4279
  Progress = ({ ref, ...props }) => {
4188
- const progressId = (0, import_react35.useId)();
4189
- const progressLabelId = (0, import_react35.useId)();
4280
+ const progressId = (0, import_react36.useId)();
4281
+ const progressLabelId = (0, import_react36.useId)();
4190
4282
  const {
4191
4283
  id,
4192
4284
  label,
@@ -4211,7 +4303,7 @@ var init_Progress = __esm({
4211
4303
  100
4212
4304
  );
4213
4305
  const barWidth = `${percentage}%`;
4214
- const classes = (0, import_dedupe41.default)("mobius", "mobius-progress", className, {
4306
+ const classes = (0, import_dedupe42.default)("mobius", "mobius-progress", className, {
4215
4307
  "--is-primary": variant === "primary",
4216
4308
  "--is-secondary": variant === "secondary"
4217
4309
  });
@@ -4221,7 +4313,7 @@ var init_Progress = __esm({
4221
4313
  progressBarProps["aria-valuenow"] = value.toString();
4222
4314
  progressBarProps["aria-valuetext"] = valueFormatter instanceof Function ? valueFormatter(value, minValue, maxValue) : barWidth;
4223
4315
  const labelComponent = getLabelComponent(label, progressLabelId, showLabel);
4224
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
4316
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
4225
4317
  "div",
4226
4318
  {
4227
4319
  id: id || progressId,
@@ -4232,8 +4324,8 @@ var init_Progress = __esm({
4232
4324
  "aria-labelledby": progressLabelId,
4233
4325
  children: [
4234
4326
  labelComponent,
4235
- /* @__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 } }) }),
4236
- showValueLabel && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Label, { "data-testid": "value-label", elementType: "span", children: progressBarProps["aria-valuetext"] })
4327
+ /* @__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 } }) }),
4328
+ showValueLabel && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Label, { "data-testid": "value-label", elementType: "span", children: progressBarProps["aria-valuetext"] })
4237
4329
  ]
4238
4330
  }
4239
4331
  );
@@ -4251,17 +4343,17 @@ var init_Progress2 = __esm({
4251
4343
  });
4252
4344
 
4253
4345
  // src/components/Radio/Radio.tsx
4254
- var import_dedupe42, import_react36, import_Radio, import_jsx_runtime50, Radio;
4346
+ var import_dedupe43, import_react37, import_Radio, import_jsx_runtime52, Radio;
4255
4347
  var init_Radio = __esm({
4256
4348
  "src/components/Radio/Radio.tsx"() {
4257
4349
  "use strict";
4258
4350
  "use client";
4259
- import_dedupe42 = __toESM(require("classnames/dedupe"));
4260
- import_react36 = require("react");
4351
+ import_dedupe43 = __toESM(require("classnames/dedupe"));
4352
+ import_react37 = require("react");
4261
4353
  init_ErrorMessage2();
4262
4354
  init_Label2();
4263
4355
  import_Radio = require("@simplybusiness/mobius/src/components/Radio/Radio.css");
4264
- import_jsx_runtime50 = require("react/jsx-runtime");
4356
+ import_jsx_runtime52 = require("react/jsx-runtime");
4265
4357
  Radio = ({ ref, ...props }) => {
4266
4358
  const {
4267
4359
  children,
@@ -4285,19 +4377,19 @@ var init_Radio = __esm({
4285
4377
  const isMultiline = label && children;
4286
4378
  const isControlled = selected !== void 0;
4287
4379
  const isChecked = isControlled ? selected === value : defaultChecked;
4288
- const contentRef = (0, import_react36.useRef)(null);
4289
- const prevOverflowRef = (0, import_react36.useRef)({
4380
+ const contentRef = (0, import_react37.useRef)(null);
4381
+ const prevOverflowRef = (0, import_react37.useRef)({
4290
4382
  vertical: false,
4291
4383
  horizontal: false
4292
4384
  });
4293
- const hasIconFirst = (0, import_react36.useMemo)(() => {
4294
- if (!children || import_react36.Children.count(children) === 0) return false;
4295
- const firstChild = import_react36.Children.toArray(children)[0];
4296
- if (!(0, import_react36.isValidElement)(firstChild)) return false;
4385
+ const hasIconFirst = (0, import_react37.useMemo)(() => {
4386
+ if (!children || import_react37.Children.count(children) === 0) return false;
4387
+ const firstChild = import_react37.Children.toArray(children)[0];
4388
+ if (!(0, import_react37.isValidElement)(firstChild)) return false;
4297
4389
  const props2 = firstChild.props;
4298
4390
  return "icon" in props2 && props2.icon !== void 0;
4299
4391
  }, [children]);
4300
- (0, import_react36.useLayoutEffect)(() => {
4392
+ (0, import_react37.useLayoutEffect)(() => {
4301
4393
  if (!contentRef.current || !onOverflow) return;
4302
4394
  if (orientation === "vertical") {
4303
4395
  return;
@@ -4326,13 +4418,13 @@ var init_Radio = __esm({
4326
4418
  "--is-multiline": !!isMultiline,
4327
4419
  "--is-required": isRequired
4328
4420
  };
4329
- const containerClasses = (0, import_dedupe42.default)(
4421
+ const containerClasses = (0, import_dedupe43.default)(
4330
4422
  "mobius-radio__label",
4331
4423
  radioClasses,
4332
4424
  className,
4333
4425
  { "--has-icon-first": hasIconFirst }
4334
4426
  );
4335
- const inputClasses = (0, import_dedupe42.default)("mobius-radio__input", radioClasses);
4427
+ const inputClasses = (0, import_dedupe43.default)("mobius-radio__input", radioClasses);
4336
4428
  const { "aria-describedby": _ariaDescribedBy, ...rest } = otherProps;
4337
4429
  const handleChange = (event) => {
4338
4430
  if (setSelected) {
@@ -4346,9 +4438,9 @@ var init_Radio = __esm({
4346
4438
  onChange(adaptedEvent);
4347
4439
  }
4348
4440
  };
4349
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
4350
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Label, { className: containerClasses, children: [
4351
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4441
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
4442
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Label, { className: containerClasses, children: [
4443
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4352
4444
  "input",
4353
4445
  {
4354
4446
  "aria-describedby": otherProps["aria-describedby"],
@@ -4365,12 +4457,12 @@ var init_Radio = __esm({
4365
4457
  ...rest
4366
4458
  }
4367
4459
  ),
4368
- isMultiline ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { ref: contentRef, className: "mobius-radio__content--multiline", children: [
4369
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "mobius-radio__content-first-line", children: label }),
4370
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "mobius-radio__extra-content", children })
4371
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { ref: contentRef, className: "mobius-radio__content", children: label || children })
4460
+ isMultiline ? /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { ref: contentRef, className: "mobius-radio__content--multiline", children: [
4461
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "mobius-radio__content-first-line", children: label }),
4462
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "mobius-radio__extra-content", children })
4463
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { ref: contentRef, className: "mobius-radio__content", children: label || children })
4372
4464
  ] }),
4373
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ErrorMessage, { errorMessage })
4465
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ErrorMessage, { errorMessage })
4374
4466
  ] });
4375
4467
  };
4376
4468
  Radio.displayName = "Radio";
@@ -4378,19 +4470,19 @@ var init_Radio = __esm({
4378
4470
  });
4379
4471
 
4380
4472
  // src/components/Radio/RadioGroup.tsx
4381
- var import_dedupe43, import_react37, import_jsx_runtime51, getDefaultVal, RadioGroup;
4473
+ var import_dedupe44, import_react38, import_jsx_runtime53, getDefaultVal, RadioGroup;
4382
4474
  var init_RadioGroup = __esm({
4383
4475
  "src/components/Radio/RadioGroup.tsx"() {
4384
4476
  "use strict";
4385
4477
  "use client";
4386
- import_dedupe43 = __toESM(require("classnames/dedupe"));
4387
- import_react37 = require("react");
4478
+ import_dedupe44 = __toESM(require("classnames/dedupe"));
4479
+ import_react38 = require("react");
4388
4480
  init_hooks();
4389
4481
  init_spaceDelimitedList();
4390
4482
  init_ErrorMessage2();
4391
4483
  init_Label2();
4392
4484
  init_Stack2();
4393
- import_jsx_runtime51 = require("react/jsx-runtime");
4485
+ import_jsx_runtime53 = require("react/jsx-runtime");
4394
4486
  getDefaultVal = (children, defaultValue) => {
4395
4487
  if (Array.isArray(children) && defaultValue) {
4396
4488
  const option = children?.find((item) => item.props.value === defaultValue);
@@ -4418,15 +4510,15 @@ var init_RadioGroup = __esm({
4418
4510
  ...rest
4419
4511
  } = props;
4420
4512
  const defaultSelected = getDefaultVal(children, value || defaultValue);
4421
- const [selected, setSelected] = (0, import_react37.useState)(defaultSelected);
4422
- const overflowsRef = (0, import_react37.useRef)({});
4423
- const [hasOverflow, setHasOverflow] = (0, import_react37.useState)(false);
4424
- (0, import_react37.useEffect)(() => {
4513
+ const [selected, setSelected] = (0, import_react38.useState)(defaultSelected);
4514
+ const overflowsRef = (0, import_react38.useRef)({});
4515
+ const [hasOverflow, setHasOverflow] = (0, import_react38.useState)(false);
4516
+ (0, import_react38.useEffect)(() => {
4425
4517
  if (value !== void 0) {
4426
4518
  setSelected(value);
4427
4519
  }
4428
4520
  }, [value]);
4429
- const handleOverflow = (0, import_react37.useCallback)(
4521
+ const handleOverflow = (0, import_react38.useCallback)(
4430
4522
  (radioValue, overflow) => {
4431
4523
  overflowsRef.current = {
4432
4524
  ...overflowsRef.current,
@@ -4450,26 +4542,26 @@ var init_RadioGroup = __esm({
4450
4542
  [`--is-${effectiveOrientation}`]: true,
4451
4543
  [className || ""]: true
4452
4544
  };
4453
- const radioGroupClasses = (0, import_dedupe43.default)(
4545
+ const radioGroupClasses = (0, import_dedupe44.default)(
4454
4546
  "mobius",
4455
4547
  "mobius-radio-group",
4456
4548
  radioClasses,
4457
4549
  validationClasses
4458
4550
  );
4459
- const radioWrapperClasses = (0, import_dedupe43.default)("mobius-radio__wrapper", {
4551
+ const radioWrapperClasses = (0, import_dedupe44.default)("mobius-radio__wrapper", {
4460
4552
  [`--is-${effectiveOrientation}`]: true
4461
4553
  });
4462
- const labelClasses = (0, import_dedupe43.default)(radioClasses, validationClasses);
4463
- const errorMessageId = (0, import_react37.useId)();
4464
- const defaultNameAttrId = (0, import_react37.useId)();
4554
+ const labelClasses = (0, import_dedupe44.default)(radioClasses, validationClasses);
4555
+ const errorMessageId = (0, import_react38.useId)();
4556
+ const defaultNameAttrId = (0, import_react38.useId)();
4465
4557
  const nameAttribute = name || defaultNameAttrId;
4466
4558
  const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
4467
4559
  const describedBy = spaceDelimitedList([
4468
4560
  shouldErrorMessageShow,
4469
4561
  props["aria-describedby"]
4470
4562
  ]);
4471
- const labelId = (0, import_react37.useId)();
4472
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4563
+ const labelId = (0, import_react38.useId)();
4564
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
4473
4565
  "div",
4474
4566
  {
4475
4567
  ...rest,
@@ -4485,12 +4577,12 @@ var init_RadioGroup = __esm({
4485
4577
  ref,
4486
4578
  className: radioGroupClasses,
4487
4579
  role: "radiogroup",
4488
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Stack, { gap: "xs", children: [
4489
- label && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Label, { htmlFor: name, id: labelId, className: labelClasses, children: label }),
4490
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: radioWrapperClasses, children: import_react37.Children.map(children, (child) => {
4491
- if ((0, import_react37.isValidElement)(child)) {
4580
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Stack, { gap: "xs", children: [
4581
+ label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label, { htmlFor: name, id: labelId, className: labelClasses, children: label }),
4582
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: radioWrapperClasses, children: import_react38.Children.map(children, (child) => {
4583
+ if ((0, import_react38.isValidElement)(child)) {
4492
4584
  const childValue = child.props.value;
4493
- return (0, import_react37.cloneElement)(
4585
+ return (0, import_react38.cloneElement)(
4494
4586
  child,
4495
4587
  {
4496
4588
  orientation: effectiveOrientation,
@@ -4508,7 +4600,7 @@ var init_RadioGroup = __esm({
4508
4600
  }
4509
4601
  return child;
4510
4602
  }) }),
4511
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
4603
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
4512
4604
  ] })
4513
4605
  }
4514
4606
  );
@@ -4527,47 +4619,47 @@ var init_Radio2 = __esm({
4527
4619
  });
4528
4620
 
4529
4621
  // src/components/Segment/SegmentGroup.tsx
4530
- var import_dedupe44, import_jsx_runtime52, SegmentGroup;
4622
+ var import_dedupe45, import_jsx_runtime54, SegmentGroup;
4531
4623
  var init_SegmentGroup = __esm({
4532
4624
  "src/components/Segment/SegmentGroup.tsx"() {
4533
4625
  "use strict";
4534
- import_dedupe44 = __toESM(require("classnames/dedupe"));
4535
- import_jsx_runtime52 = require("react/jsx-runtime");
4626
+ import_dedupe45 = __toESM(require("classnames/dedupe"));
4627
+ import_jsx_runtime54 = require("react/jsx-runtime");
4536
4628
  SegmentGroup = (props) => {
4537
4629
  const { children, horizontal, gap, className, ...rest } = props;
4538
4630
  const gapClass = gap ? `gap-${gap}` : "";
4539
- const classes = (0, import_dedupe44.default)(
4631
+ const classes = (0, import_dedupe45.default)(
4540
4632
  "mobius",
4541
4633
  "mobius-segment-group",
4542
4634
  className,
4543
4635
  { "--is-horizontal": horizontal },
4544
4636
  gapClass
4545
4637
  );
4546
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: classes, ...rest, children });
4638
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: classes, ...rest, children });
4547
4639
  };
4548
4640
  SegmentGroup.displayName = "SegmentGroup";
4549
4641
  }
4550
4642
  });
4551
4643
 
4552
4644
  // src/components/Segment/Segment.tsx
4553
- var import_dedupe45, import_Segment, import_jsx_runtime53, Segment;
4645
+ var import_dedupe46, import_Segment, import_jsx_runtime55, Segment;
4554
4646
  var init_Segment = __esm({
4555
4647
  "src/components/Segment/Segment.tsx"() {
4556
4648
  "use strict";
4557
- import_dedupe45 = __toESM(require("classnames/dedupe"));
4649
+ import_dedupe46 = __toESM(require("classnames/dedupe"));
4558
4650
  import_Segment = require("@simplybusiness/mobius/src/components/Segment/Segment.css");
4559
- import_jsx_runtime53 = require("react/jsx-runtime");
4651
+ import_jsx_runtime55 = require("react/jsx-runtime");
4560
4652
  Segment = (props) => {
4561
4653
  const { heading, children, colour, inverted, className, ...rest } = props;
4562
- const classes = (0, import_dedupe45.default)(
4654
+ const classes = (0, import_dedupe46.default)(
4563
4655
  "mobius",
4564
4656
  "mobius-segment",
4565
4657
  colour,
4566
4658
  { inverted },
4567
4659
  className
4568
4660
  );
4569
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: classes, ...rest, children: [
4570
- heading && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "mobius-segment__heading", children: heading }),
4661
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: classes, ...rest, children: [
4662
+ heading && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "mobius-segment__heading", children: heading }),
4571
4663
  children
4572
4664
  ] });
4573
4665
  };
@@ -4585,14 +4677,14 @@ var init_Segment2 = __esm({
4585
4677
  });
4586
4678
 
4587
4679
  // src/components/Select/Select.tsx
4588
- var import_icons12, import_dedupe46, import_react38, import_Select, import_jsx_runtime54, Select;
4680
+ var import_icons12, import_dedupe47, import_react39, import_Select, import_jsx_runtime56, Select;
4589
4681
  var init_Select = __esm({
4590
4682
  "src/components/Select/Select.tsx"() {
4591
4683
  "use strict";
4592
4684
  "use client";
4593
4685
  import_icons12 = require("@simplybusiness/icons");
4594
- import_dedupe46 = __toESM(require("classnames/dedupe"));
4595
- import_react38 = require("react");
4686
+ import_dedupe47 = __toESM(require("classnames/dedupe"));
4687
+ import_react39 = require("react");
4596
4688
  init_hooks();
4597
4689
  init_useLabel2();
4598
4690
  init_spaceDelimitedList();
@@ -4601,7 +4693,7 @@ var init_Select = __esm({
4601
4693
  init_Label2();
4602
4694
  init_Stack2();
4603
4695
  import_Select = require("@simplybusiness/mobius/src/components/Select/Select.css");
4604
- import_jsx_runtime54 = require("react/jsx-runtime");
4696
+ import_jsx_runtime56 = require("react/jsx-runtime");
4605
4697
  Select = ({ ref, ...props }) => {
4606
4698
  const {
4607
4699
  label,
@@ -4622,24 +4714,24 @@ var init_Select = __esm({
4622
4714
  "--is-required": typeof isRequired === "boolean" && isRequired,
4623
4715
  "--is-optional": typeof isRequired === "boolean" && !isRequired
4624
4716
  };
4625
- const sharedClasses = (0, import_dedupe46.default)(validationClasses, stateClasses);
4626
- const wrapperClasses = (0, import_dedupe46.default)(
4717
+ const sharedClasses = (0, import_dedupe47.default)(validationClasses, stateClasses);
4718
+ const wrapperClasses = (0, import_dedupe47.default)(
4627
4719
  "mobius-select__wrapper",
4628
4720
  sharedClasses,
4629
4721
  otherProps.className
4630
4722
  );
4631
- const selectClasses = (0, import_dedupe46.default)(
4723
+ const selectClasses = (0, import_dedupe47.default)(
4632
4724
  "mobius-select",
4633
4725
  sharedClasses,
4634
4726
  otherProps.className
4635
4727
  );
4636
- const labelClasses = (0, import_dedupe46.default)(
4728
+ const labelClasses = (0, import_dedupe47.default)(
4637
4729
  "mobius-label",
4638
4730
  sharedClasses,
4639
4731
  otherProps.className
4640
4732
  );
4641
- const iconClasses = (0, import_dedupe46.default)("mobius-select__icon", sharedClasses);
4642
- const errorMessageId = (0, import_react38.useId)();
4733
+ const iconClasses = (0, import_dedupe47.default)("mobius-select__icon", sharedClasses);
4734
+ const errorMessageId = (0, import_react39.useId)();
4643
4735
  const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
4644
4736
  const describedBy = spaceDelimitedList([
4645
4737
  shouldErrorMessageShow,
@@ -4650,10 +4742,10 @@ var init_Select = __esm({
4650
4742
  onChange(e);
4651
4743
  }
4652
4744
  };
4653
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Stack, { className: "mobius mobius-select__outer", gap: "xs", children: [
4654
- label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Label, { ...labelProps, className: labelClasses, children: label }),
4655
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: wrapperClasses, children: [
4656
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
4745
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Stack, { className: "mobius mobius-select__outer", gap: "xs", children: [
4746
+ label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Label, { ...labelProps, className: labelClasses, children: label }),
4747
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: wrapperClasses, children: [
4748
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
4657
4749
  "select",
4658
4750
  {
4659
4751
  ...otherProps,
@@ -4669,9 +4761,9 @@ var init_Select = __esm({
4669
4761
  onChange: handleChange
4670
4762
  }
4671
4763
  ),
4672
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: iconClasses, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { icon: import_icons12.chevronDown }) })
4764
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: iconClasses, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { icon: import_icons12.chevronDown }) })
4673
4765
  ] }),
4674
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
4766
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
4675
4767
  ] });
4676
4768
  };
4677
4769
  Select.displayName = "Select";
@@ -4687,15 +4779,15 @@ var init_Select2 = __esm({
4687
4779
  });
4688
4780
 
4689
4781
  // src/components/Slider/Slider.tsx
4690
- var import_dedupe47, import_react39, import_Slider, import_jsx_runtime55;
4782
+ var import_dedupe48, import_react40, import_Slider, import_jsx_runtime57;
4691
4783
  var init_Slider = __esm({
4692
4784
  "src/components/Slider/Slider.tsx"() {
4693
4785
  "use strict";
4694
4786
  "use client";
4695
- import_dedupe47 = __toESM(require("classnames/dedupe"));
4696
- import_react39 = require("react");
4787
+ import_dedupe48 = __toESM(require("classnames/dedupe"));
4788
+ import_react40 = require("react");
4697
4789
  import_Slider = require("@simplybusiness/mobius/src/components/Slider/Slider.css");
4698
- import_jsx_runtime55 = require("react/jsx-runtime");
4790
+ import_jsx_runtime57 = require("react/jsx-runtime");
4699
4791
  }
4700
4792
  });
4701
4793
 
@@ -4708,19 +4800,19 @@ var init_Slider2 = __esm({
4708
4800
  });
4709
4801
 
4710
4802
  // src/components/SVG/SVG.tsx
4711
- var import_react40, import_dedupe48, import_jsx_runtime56, SVG;
4803
+ var import_react41, import_dedupe49, import_jsx_runtime58, SVG;
4712
4804
  var init_SVG = __esm({
4713
4805
  "src/components/SVG/SVG.tsx"() {
4714
4806
  "use strict";
4715
- import_react40 = require("react");
4716
- import_dedupe48 = __toESM(require("classnames/dedupe"));
4717
- import_jsx_runtime56 = require("react/jsx-runtime");
4807
+ import_react41 = require("react");
4808
+ import_dedupe49 = __toESM(require("classnames/dedupe"));
4809
+ import_jsx_runtime58 = require("react/jsx-runtime");
4718
4810
  SVG = ({ ref, ...props }) => {
4719
4811
  const { children, className, ...otherProps } = props;
4720
- const classes = (0, import_dedupe48.default)("mobius", "mobius-svg", className);
4721
- const svgNode = import_react40.Children.only(children);
4812
+ const classes = (0, import_dedupe49.default)("mobius", "mobius-svg", className);
4813
+ const svgNode = import_react41.Children.only(children);
4722
4814
  const { children: svgChildren, viewBox, xmlns } = svgNode.props;
4723
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
4815
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
4724
4816
  "svg",
4725
4817
  {
4726
4818
  viewBox,
@@ -4745,16 +4837,16 @@ var init_SVG2 = __esm({
4745
4837
  });
4746
4838
 
4747
4839
  // src/components/Switch/Switch.tsx
4748
- var import_react41, import_dedupe49, import_Switch, import_jsx_runtime57, Switch;
4840
+ var import_react42, import_dedupe50, import_Switch, import_jsx_runtime59, Switch;
4749
4841
  var init_Switch = __esm({
4750
4842
  "src/components/Switch/Switch.tsx"() {
4751
4843
  "use strict";
4752
4844
  "use client";
4753
- import_react41 = require("react");
4754
- import_dedupe49 = __toESM(require("classnames/dedupe"));
4845
+ import_react42 = require("react");
4846
+ import_dedupe50 = __toESM(require("classnames/dedupe"));
4755
4847
  init_VisuallyHidden2();
4756
4848
  import_Switch = require("@simplybusiness/mobius/src/components/Switch/Switch.css");
4757
- import_jsx_runtime57 = require("react/jsx-runtime");
4849
+ import_jsx_runtime59 = require("react/jsx-runtime");
4758
4850
  Switch = ({ ref, ...props }) => {
4759
4851
  const {
4760
4852
  checked = false,
@@ -4763,11 +4855,11 @@ var init_Switch = __esm({
4763
4855
  isDisabled = false,
4764
4856
  ...otherProps
4765
4857
  } = props;
4766
- const [enabled, setEnabled] = (0, import_react41.useState)(checked);
4767
- (0, import_react41.useEffect)(() => {
4858
+ const [enabled, setEnabled] = (0, import_react42.useState)(checked);
4859
+ (0, import_react42.useEffect)(() => {
4768
4860
  setEnabled(checked);
4769
4861
  }, [checked]);
4770
- const classes = (0, import_dedupe49.default)(
4862
+ const classes = (0, import_dedupe50.default)(
4771
4863
  "mobius",
4772
4864
  "mobius-switch",
4773
4865
  {
@@ -4782,9 +4874,9 @@ var init_Switch = __esm({
4782
4874
  onChange(event);
4783
4875
  }
4784
4876
  };
4785
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("label", { ref, className: classes, children: [
4786
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { children: enabled ? "On" : "Off" }) }),
4787
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4877
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("label", { ref, className: classes, children: [
4878
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { children: enabled ? "On" : "Off" }) }),
4879
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
4788
4880
  "input",
4789
4881
  {
4790
4882
  type: "checkbox",
@@ -4795,7 +4887,7 @@ var init_Switch = __esm({
4795
4887
  ...otherProps
4796
4888
  }
4797
4889
  ),
4798
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "mobius-switch__slider" })
4890
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "mobius-switch__slider" })
4799
4891
  ] });
4800
4892
  };
4801
4893
  Switch.displayName = "Switch";
@@ -4811,114 +4903,114 @@ var init_Switch2 = __esm({
4811
4903
  });
4812
4904
 
4813
4905
  // src/components/Table/Table.tsx
4814
- var import_dedupe50, import_Table, import_jsx_runtime58, Table;
4906
+ var import_dedupe51, import_Table, import_jsx_runtime60, Table;
4815
4907
  var init_Table = __esm({
4816
4908
  "src/components/Table/Table.tsx"() {
4817
4909
  "use strict";
4818
- import_dedupe50 = __toESM(require("classnames/dedupe"));
4910
+ import_dedupe51 = __toESM(require("classnames/dedupe"));
4819
4911
  import_Table = require("@simplybusiness/mobius/src/components/Table/Table.css");
4820
- import_jsx_runtime58 = require("react/jsx-runtime");
4912
+ import_jsx_runtime60 = require("react/jsx-runtime");
4821
4913
  Table = ({ ref, ...props }) => {
4822
- const classes = (0, import_dedupe50.default)("mobius", "mobius-table", props.className);
4823
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("table", { ref, ...props, className: classes });
4914
+ const classes = (0, import_dedupe51.default)("mobius", "mobius-table", props.className);
4915
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("table", { ref, ...props, className: classes });
4824
4916
  };
4825
4917
  Table.displayName = "Table";
4826
4918
  }
4827
4919
  });
4828
4920
 
4829
4921
  // src/components/Table/Head.tsx
4830
- var import_dedupe51, import_jsx_runtime59, Head;
4922
+ var import_dedupe52, import_jsx_runtime61, Head;
4831
4923
  var init_Head = __esm({
4832
4924
  "src/components/Table/Head.tsx"() {
4833
4925
  "use strict";
4834
- import_dedupe51 = __toESM(require("classnames/dedupe"));
4835
- import_jsx_runtime59 = require("react/jsx-runtime");
4926
+ import_dedupe52 = __toESM(require("classnames/dedupe"));
4927
+ import_jsx_runtime61 = require("react/jsx-runtime");
4836
4928
  Head = ({ ref, ...props }) => {
4837
- const classes = (0, import_dedupe51.default)("mobius", "mobius-table__head", props.className);
4838
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("thead", { ref, ...props, className: classes });
4929
+ const classes = (0, import_dedupe52.default)("mobius", "mobius-table__head", props.className);
4930
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("thead", { ref, ...props, className: classes });
4839
4931
  };
4840
4932
  Head.displayName = "Table.Head";
4841
4933
  }
4842
4934
  });
4843
4935
 
4844
4936
  // src/components/Table/Body.tsx
4845
- var import_dedupe52, import_jsx_runtime60, Body;
4937
+ var import_dedupe53, import_jsx_runtime62, Body;
4846
4938
  var init_Body = __esm({
4847
4939
  "src/components/Table/Body.tsx"() {
4848
4940
  "use strict";
4849
- import_dedupe52 = __toESM(require("classnames/dedupe"));
4850
- import_jsx_runtime60 = require("react/jsx-runtime");
4941
+ import_dedupe53 = __toESM(require("classnames/dedupe"));
4942
+ import_jsx_runtime62 = require("react/jsx-runtime");
4851
4943
  Body = ({ ref, ...props }) => {
4852
- const classes = (0, import_dedupe52.default)("mobius", "mobius-table__body", props.className);
4853
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("tbody", { ref, ...props, className: classes });
4944
+ const classes = (0, import_dedupe53.default)("mobius", "mobius-table__body", props.className);
4945
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("tbody", { ref, ...props, className: classes });
4854
4946
  };
4855
4947
  Body.displayName = "Table.Body";
4856
4948
  }
4857
4949
  });
4858
4950
 
4859
4951
  // src/components/Table/Foot.tsx
4860
- var import_dedupe53, import_jsx_runtime61, Foot;
4952
+ var import_dedupe54, import_jsx_runtime63, Foot;
4861
4953
  var init_Foot = __esm({
4862
4954
  "src/components/Table/Foot.tsx"() {
4863
4955
  "use strict";
4864
- import_dedupe53 = __toESM(require("classnames/dedupe"));
4865
- import_jsx_runtime61 = require("react/jsx-runtime");
4956
+ import_dedupe54 = __toESM(require("classnames/dedupe"));
4957
+ import_jsx_runtime63 = require("react/jsx-runtime");
4866
4958
  Foot = ({ ref, ...props }) => {
4867
- const classes = (0, import_dedupe53.default)("mobius", "mobius-table__foot", props.className);
4868
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("tfoot", { ref, ...props, className: classes });
4959
+ const classes = (0, import_dedupe54.default)("mobius", "mobius-table__foot", props.className);
4960
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("tfoot", { ref, ...props, className: classes });
4869
4961
  };
4870
4962
  Foot.displayName = "Table.Foot";
4871
4963
  }
4872
4964
  });
4873
4965
 
4874
4966
  // src/components/Table/Row.tsx
4875
- var import_dedupe54, import_jsx_runtime62, Row;
4967
+ var import_dedupe55, import_jsx_runtime64, Row;
4876
4968
  var init_Row = __esm({
4877
4969
  "src/components/Table/Row.tsx"() {
4878
4970
  "use strict";
4879
- import_dedupe54 = __toESM(require("classnames/dedupe"));
4880
- import_jsx_runtime62 = require("react/jsx-runtime");
4971
+ import_dedupe55 = __toESM(require("classnames/dedupe"));
4972
+ import_jsx_runtime64 = require("react/jsx-runtime");
4881
4973
  Row = ({ ref, ...props }) => {
4882
- const classes = (0, import_dedupe54.default)("mobius", "mobius-table__row", props.className);
4883
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("tr", { ref, ...props, className: classes });
4974
+ const classes = (0, import_dedupe55.default)("mobius", "mobius-table__row", props.className);
4975
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("tr", { ref, ...props, className: classes });
4884
4976
  };
4885
4977
  Row.displayName = "Table.Row";
4886
4978
  }
4887
4979
  });
4888
4980
 
4889
4981
  // src/components/Table/HeaderCell.tsx
4890
- var import_dedupe55, import_jsx_runtime63, HeaderCell;
4982
+ var import_dedupe56, import_jsx_runtime65, HeaderCell;
4891
4983
  var init_HeaderCell = __esm({
4892
4984
  "src/components/Table/HeaderCell.tsx"() {
4893
4985
  "use strict";
4894
- import_dedupe55 = __toESM(require("classnames/dedupe"));
4895
- import_jsx_runtime63 = require("react/jsx-runtime");
4986
+ import_dedupe56 = __toESM(require("classnames/dedupe"));
4987
+ import_jsx_runtime65 = require("react/jsx-runtime");
4896
4988
  HeaderCell = ({ ref, ...props }) => {
4897
- const classes = (0, import_dedupe55.default)(
4989
+ const classes = (0, import_dedupe56.default)(
4898
4990
  "mobius",
4899
4991
  "mobius-table__head-cell",
4900
4992
  props.className
4901
4993
  );
4902
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("th", { ...props, ref, className: classes });
4994
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("th", { ...props, ref, className: classes });
4903
4995
  };
4904
4996
  HeaderCell.displayName = "Table.HeaderCell";
4905
4997
  }
4906
4998
  });
4907
4999
 
4908
5000
  // src/components/Table/Cell.tsx
4909
- var import_dedupe56, import_jsx_runtime64, Cell;
5001
+ var import_dedupe57, import_jsx_runtime66, Cell;
4910
5002
  var init_Cell = __esm({
4911
5003
  "src/components/Table/Cell.tsx"() {
4912
5004
  "use strict";
4913
- import_dedupe56 = __toESM(require("classnames/dedupe"));
4914
- import_jsx_runtime64 = require("react/jsx-runtime");
5005
+ import_dedupe57 = __toESM(require("classnames/dedupe"));
5006
+ import_jsx_runtime66 = require("react/jsx-runtime");
4915
5007
  Cell = ({ ref, ...props }) => {
4916
- const classes = (0, import_dedupe56.default)(
5008
+ const classes = (0, import_dedupe57.default)(
4917
5009
  "mobius",
4918
5010
  "mobius-table__body-cell",
4919
5011
  props.className
4920
5012
  );
4921
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("td", { ref, ...props, className: classes });
5013
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("td", { ref, ...props, className: classes });
4922
5014
  };
4923
5015
  Cell.displayName = "Table.Cell";
4924
5016
  }
@@ -4948,37 +5040,6 @@ var init_Table2 = __esm({
4948
5040
  }
4949
5041
  });
4950
5042
 
4951
- // src/components/Text/Text.tsx
4952
- var import_dedupe57, import_Text, import_jsx_runtime65, getElementType, Text;
4953
- var init_Text = __esm({
4954
- "src/components/Text/Text.tsx"() {
4955
- "use strict";
4956
- import_dedupe57 = __toESM(require("classnames/dedupe"));
4957
- import_Text = require("@simplybusiness/mobius/src/components/Text/Text.css");
4958
- import_jsx_runtime65 = require("react/jsx-runtime");
4959
- getElementType = (variant, elementType) => {
4960
- if (variant) {
4961
- return ["h1", "h2", "h3", "h4"].includes(variant) ? variant : "p";
4962
- }
4963
- return elementType || "p";
4964
- };
4965
- Text = ({ ref, elementType: Component = "p", ...props }) => {
4966
- const { variant, className, spacing, ...otherProps } = props;
4967
- const elementType = getElementType(variant, Component);
4968
- const variantType = variant || elementType;
4969
- const classes = (0, import_dedupe57.default)(
4970
- "mobius",
4971
- "mobius-text",
4972
- { [`--is-${variantType}`]: variantType },
4973
- { [`--has-line-height-${spacing}`]: spacing },
4974
- className
4975
- );
4976
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Component, { ref, ...otherProps, className: classes });
4977
- };
4978
- Text.displayName = "Text";
4979
- }
4980
- });
4981
-
4982
5043
  // src/components/Text/index.tsx
4983
5044
  var init_Text2 = __esm({
4984
5045
  "src/components/Text/index.tsx"() {
@@ -4988,12 +5049,12 @@ var init_Text2 = __esm({
4988
5049
  });
4989
5050
 
4990
5051
  // src/components/TextAreaInput/TextAreaInput.tsx
4991
- var import_dedupe58, import_jsx_runtime66, TextAreaInput;
5052
+ var import_dedupe58, import_jsx_runtime67, TextAreaInput;
4992
5053
  var init_TextAreaInput = __esm({
4993
5054
  "src/components/TextAreaInput/TextAreaInput.tsx"() {
4994
5055
  "use strict";
4995
5056
  import_dedupe58 = __toESM(require("classnames/dedupe"));
4996
- import_jsx_runtime66 = require("react/jsx-runtime");
5057
+ import_jsx_runtime67 = require("react/jsx-runtime");
4997
5058
  TextAreaInput = ({ ref, ...props }) => {
4998
5059
  const { isSelected, isDisabled, isReadOnly, isRequired, ...otherProps } = props;
4999
5060
  const classes = (0, import_dedupe58.default)(
@@ -5006,7 +5067,7 @@ var init_TextAreaInput = __esm({
5006
5067
  },
5007
5068
  otherProps.className
5008
5069
  );
5009
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5070
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5010
5071
  "textarea",
5011
5072
  {
5012
5073
  ref,
@@ -5030,7 +5091,7 @@ var init_TextAreaInput2 = __esm({
5030
5091
  });
5031
5092
 
5032
5093
  // src/components/TextArea/TextArea.tsx
5033
- var import_dedupe59, import_TextArea, import_jsx_runtime67, TextArea;
5094
+ var import_dedupe59, import_TextArea, import_jsx_runtime68, TextArea;
5034
5095
  var init_TextArea = __esm({
5035
5096
  "src/components/TextArea/TextArea.tsx"() {
5036
5097
  "use strict";
@@ -5042,7 +5103,7 @@ var init_TextArea = __esm({
5042
5103
  init_Stack2();
5043
5104
  init_TextAreaInput2();
5044
5105
  import_TextArea = require("@simplybusiness/mobius/src/components/TextArea/TextArea.css");
5045
- import_jsx_runtime67 = require("react/jsx-runtime");
5106
+ import_jsx_runtime68 = require("react/jsx-runtime");
5046
5107
  TextArea = ({ ref, ...props }) => {
5047
5108
  const {
5048
5109
  isDisabled,
@@ -5062,9 +5123,9 @@ var init_TextArea = __esm({
5062
5123
  },
5063
5124
  validationClasses
5064
5125
  );
5065
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Stack, { className: classes, gap: "xs", children: [
5066
- label && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Label, { ...labelProps, className: labelClasses, children: props.label }),
5067
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
5126
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(Stack, { className: classes, gap: "xs", children: [
5127
+ label && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Label, { ...labelProps, className: labelClasses, children: props.label }),
5128
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5068
5129
  TextAreaInput,
5069
5130
  {
5070
5131
  ...otherProps,
@@ -5075,7 +5136,7 @@ var init_TextArea = __esm({
5075
5136
  "aria-invalid": errorMessage != null
5076
5137
  }
5077
5138
  ),
5078
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ErrorMessage, { ...errorMessageProps, errorMessage })
5139
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ErrorMessage, { ...errorMessageProps, errorMessage })
5079
5140
  ] });
5080
5141
  };
5081
5142
  TextArea.displayName = "TextArea";
@@ -5090,53 +5151,6 @@ var init_TextArea2 = __esm({
5090
5151
  }
5091
5152
  });
5092
5153
 
5093
- // src/components/TextOrHTML/TextOrHTML.tsx
5094
- var import_react42, import_jsx_runtime68, isHTML, TextOrHTML;
5095
- var init_TextOrHTML = __esm({
5096
- "src/components/TextOrHTML/TextOrHTML.tsx"() {
5097
- "use strict";
5098
- import_react42 = require("react");
5099
- init_Text();
5100
- import_jsx_runtime68 = require("react/jsx-runtime");
5101
- isHTML = (text) => /^\s*<[a-z]/i.test(text);
5102
- TextOrHTML = ({
5103
- ref,
5104
- text,
5105
- htmlClassName,
5106
- htmlElementType,
5107
- textWrapper = false,
5108
- autoDetect = false,
5109
- ...textProps
5110
- }) => {
5111
- const textIsHTML = autoDetect && isHTML(text);
5112
- const shouldWrapInText = autoDetect ? textWrapper || !textIsHTML : textWrapper;
5113
- const resolvedElementType = htmlElementType ?? (textIsHTML ? "div" : "span");
5114
- const DangerousComponent = resolvedElementType;
5115
- const dangerousHTML = (0, import_react42.useMemo)(() => ({ __html: text }), [text]);
5116
- const dangerousElement = /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5117
- DangerousComponent,
5118
- {
5119
- className: htmlClassName,
5120
- dangerouslySetInnerHTML: dangerousHTML
5121
- }
5122
- );
5123
- if (shouldWrapInText) {
5124
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Text, { ref, ...textProps, children: dangerousElement });
5125
- }
5126
- return dangerousElement;
5127
- };
5128
- TextOrHTML.displayName = "TextOrHTML";
5129
- }
5130
- });
5131
-
5132
- // src/components/TextOrHTML/index.tsx
5133
- var init_TextOrHTML2 = __esm({
5134
- "src/components/TextOrHTML/index.tsx"() {
5135
- "use strict";
5136
- init_TextOrHTML();
5137
- }
5138
- });
5139
-
5140
5154
  // src/components/Title/Title.tsx
5141
5155
  var import_dedupe60, import_Title, import_jsx_runtime69, Title;
5142
5156
  var init_Title = __esm({