@simplybusiness/mobius 10.1.1 → 10.1.2

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