@simplybusiness/mobius 10.1.0 → 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 (111) hide show
  1. package/CHANGELOG.md +13 -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/src/components/Button/Button.css +44 -14
  110. package/dist/esm/chunk-FTSJNY4J.js.map +0 -7
  111. /package/dist/esm/{chunk-C4BILMFX.js.map → chunk-PB2OICEB.js.map} +0 -0
@@ -1998,19 +1998,98 @@ var init_AddressLookup2 = __esm({
1998
1998
  }
1999
1999
  });
2000
2000
 
2001
+ // src/components/Text/Text.tsx
2002
+ var import_dedupe10, import_Text, import_jsx_runtime12, getElementType, Text;
2003
+ var init_Text = __esm({
2004
+ "src/components/Text/Text.tsx"() {
2005
+ "use strict";
2006
+ import_dedupe10 = __toESM(require("classnames/dedupe"));
2007
+ import_Text = require("@simplybusiness/mobius/src/components/Text/Text.css");
2008
+ import_jsx_runtime12 = require("react/jsx-runtime");
2009
+ getElementType = (variant, elementType) => {
2010
+ if (variant) {
2011
+ return ["h1", "h2", "h3", "h4"].includes(variant) ? variant : "p";
2012
+ }
2013
+ return elementType || "p";
2014
+ };
2015
+ Text = ({ ref, elementType: Component = "p", ...props }) => {
2016
+ const { variant, className, spacing, ...otherProps } = props;
2017
+ const elementType = getElementType(variant, Component);
2018
+ const variantType = variant || elementType;
2019
+ const classes = (0, import_dedupe10.default)(
2020
+ "mobius",
2021
+ "mobius-text",
2022
+ { [`--is-${variantType}`]: variantType },
2023
+ { [`--has-line-height-${spacing}`]: spacing },
2024
+ className
2025
+ );
2026
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Component, { ref, ...otherProps, className: classes });
2027
+ };
2028
+ Text.displayName = "Text";
2029
+ }
2030
+ });
2031
+
2032
+ // src/components/TextOrHTML/TextOrHTML.tsx
2033
+ var import_react14, import_jsx_runtime13, isHTML, TextOrHTML;
2034
+ var init_TextOrHTML = __esm({
2035
+ "src/components/TextOrHTML/TextOrHTML.tsx"() {
2036
+ "use strict";
2037
+ import_react14 = require("react");
2038
+ init_Text();
2039
+ import_jsx_runtime13 = require("react/jsx-runtime");
2040
+ isHTML = (text) => /^\s*<[a-z]/i.test(text);
2041
+ TextOrHTML = ({
2042
+ ref,
2043
+ text,
2044
+ htmlClassName,
2045
+ htmlElementType,
2046
+ textWrapper = false,
2047
+ autoDetect = false,
2048
+ ...textProps
2049
+ }) => {
2050
+ const textIsHTML = autoDetect && isHTML(text);
2051
+ const shouldWrapInText = autoDetect ? textWrapper || !textIsHTML : textWrapper;
2052
+ const resolvedElementType = htmlElementType ?? (textIsHTML ? "div" : "span");
2053
+ const DangerousComponent = resolvedElementType;
2054
+ const dangerousHTML = (0, import_react14.useMemo)(() => ({ __html: text }), [text]);
2055
+ const dangerousElement = /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2056
+ DangerousComponent,
2057
+ {
2058
+ className: htmlClassName,
2059
+ dangerouslySetInnerHTML: dangerousHTML
2060
+ }
2061
+ );
2062
+ if (shouldWrapInText) {
2063
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text, { ref, ...textProps, children: dangerousElement });
2064
+ }
2065
+ return dangerousElement;
2066
+ };
2067
+ TextOrHTML.displayName = "TextOrHTML";
2068
+ }
2069
+ });
2070
+
2071
+ // src/components/TextOrHTML/index.tsx
2072
+ var init_TextOrHTML2 = __esm({
2073
+ "src/components/TextOrHTML/index.tsx"() {
2074
+ "use strict";
2075
+ init_TextOrHTML();
2076
+ }
2077
+ });
2078
+
2001
2079
  // src/components/Alert/Alert.tsx
2002
2080
  function isAlertVariant(value) {
2003
2081
  return value === "info" || value === "success" || value === "warning" || value === "error";
2004
2082
  }
2005
- var import_icons3, import_dedupe10, import_Alert, import_jsx_runtime12, Alert;
2083
+ var import_icons3, import_dedupe11, import_Alert, import_jsx_runtime14, Alert;
2006
2084
  var init_Alert = __esm({
2007
2085
  "src/components/Alert/Alert.tsx"() {
2008
2086
  "use strict";
2009
2087
  import_icons3 = require("@simplybusiness/icons");
2010
- import_dedupe10 = __toESM(require("classnames/dedupe"));
2088
+ import_dedupe11 = __toESM(require("classnames/dedupe"));
2011
2089
  init_Icon2();
2090
+ init_TextOrHTML2();
2012
2091
  import_Alert = require("@simplybusiness/mobius/src/components/Alert/Alert.css");
2013
- import_jsx_runtime12 = require("react/jsx-runtime");
2092
+ import_jsx_runtime14 = require("react/jsx-runtime");
2014
2093
  Alert = ({ ref, ...props }) => {
2015
2094
  const {
2016
2095
  elementType: Element = "div",
@@ -2023,7 +2102,7 @@ var init_Alert = __esm({
2023
2102
  if (!show) return null;
2024
2103
  const variant = variantProp && isAlertVariant(variantProp) ? variantProp : "info";
2025
2104
  const colorValue = variant === "success" ? `var(--color-valid)` : `var(--color-${variant})`;
2026
- const classes = (0, import_dedupe10.default)(
2105
+ const classes = (0, import_dedupe11.default)(
2027
2106
  "mobius",
2028
2107
  "mobius-alert",
2029
2108
  {
@@ -2041,14 +2120,23 @@ var init_Alert = __esm({
2041
2120
  warning: import_icons3.warning,
2042
2121
  error: import_icons3.error
2043
2122
  };
2044
- const headerClasses = (0, import_dedupe10.default)("mobius", "mobius-alert__header");
2045
- const iconClasses = (0, import_dedupe10.default)("mobius", "mobius-alert__icon");
2046
- const contentClasses = (0, import_dedupe10.default)("mobius", "mobius-alert__content");
2047
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Element, { ref, role: "alert", ...otherProps, className: classes, children: [
2048
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: iconClasses, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { icon: icon[variant], color: colorValue }) }),
2049
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { children: [
2050
- header && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: headerClasses, children: header }),
2051
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: contentClasses, children })
2123
+ const headerClasses = (0, import_dedupe11.default)("mobius", "mobius-alert__header");
2124
+ const iconClasses = (0, import_dedupe11.default)("mobius", "mobius-alert__icon");
2125
+ const contentClasses = (0, import_dedupe11.default)("mobius", "mobius-alert__content");
2126
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Element, { ref, role: "alert", ...otherProps, className: classes, children: [
2127
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: iconClasses, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Icon, { icon: icon[variant], color: colorValue }) }),
2128
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { children: [
2129
+ header && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2130
+ TextOrHTML,
2131
+ {
2132
+ autoDetect: true,
2133
+ htmlElementType: "span",
2134
+ className: headerClasses,
2135
+ htmlClassName: headerClasses,
2136
+ text: header
2137
+ }
2138
+ ),
2139
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: contentClasses, children })
2052
2140
  ] })
2053
2141
  ] });
2054
2142
  };
@@ -2065,14 +2153,14 @@ var init_Alert2 = __esm({
2065
2153
  });
2066
2154
 
2067
2155
  // src/components/Box/Box.tsx
2068
- var import_dedupe11, import_Box, import_jsx_runtime13, Box;
2156
+ var import_dedupe12, import_Box, import_jsx_runtime15, Box;
2069
2157
  var init_Box = __esm({
2070
2158
  "src/components/Box/Box.tsx"() {
2071
2159
  "use strict";
2072
- import_dedupe11 = __toESM(require("classnames/dedupe"));
2160
+ import_dedupe12 = __toESM(require("classnames/dedupe"));
2073
2161
  init_utils();
2074
2162
  import_Box = require("@simplybusiness/mobius/src/components/Box/Box.css");
2075
- import_jsx_runtime13 = require("react/jsx-runtime");
2163
+ import_jsx_runtime15 = require("react/jsx-runtime");
2076
2164
  Box = ({ ref, ...props }) => {
2077
2165
  const {
2078
2166
  elementType: Element = "div",
@@ -2098,7 +2186,7 @@ var init_Box = __esm({
2098
2186
  style,
2099
2187
  ...otherProps
2100
2188
  } = props;
2101
- const classes = (0, import_dedupe11.default)("mobius", "mobius-box", otherProps.className);
2189
+ const classes = (0, import_dedupe12.default)("mobius", "mobius-box", otherProps.className);
2102
2190
  const styleProps = filterUndefinedProps({
2103
2191
  padding: getSpacingValue(padding),
2104
2192
  paddingInline: getSpacingValue(paddingInline || paddingX),
@@ -2115,7 +2203,7 @@ var init_Box = __esm({
2115
2203
  height,
2116
2204
  ...style
2117
2205
  });
2118
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Element, { ref, style: styleProps, ...otherProps, className: classes });
2206
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Element, { ref, style: styleProps, ...otherProps, className: classes });
2119
2207
  };
2120
2208
  Box.displayName = "Box";
2121
2209
  }
@@ -2130,27 +2218,27 @@ var init_Box2 = __esm({
2130
2218
  });
2131
2219
 
2132
2220
  // src/components/Breadcrumbs/Breadcrumbs.tsx
2133
- var import_react14, import_dedupe12, import_Breadcrumbs, import_jsx_runtime14, Breadcrumbs;
2221
+ var import_react15, import_dedupe13, import_Breadcrumbs, import_jsx_runtime16, Breadcrumbs;
2134
2222
  var init_Breadcrumbs = __esm({
2135
2223
  "src/components/Breadcrumbs/Breadcrumbs.tsx"() {
2136
2224
  "use strict";
2137
2225
  "use client";
2138
- import_react14 = require("react");
2139
- import_dedupe12 = __toESM(require("classnames/dedupe"));
2226
+ import_react15 = require("react");
2227
+ import_dedupe13 = __toESM(require("classnames/dedupe"));
2140
2228
  import_Breadcrumbs = require("@simplybusiness/mobius/src/components/Breadcrumbs/Breadcrumbs.css");
2141
- import_jsx_runtime14 = require("react/jsx-runtime");
2229
+ import_jsx_runtime16 = require("react/jsx-runtime");
2142
2230
  Breadcrumbs = ({ ref, ...props }) => {
2143
2231
  const { "aria-label": ariaLabel = "Breadcrumbs" } = props;
2144
2232
  const { navProps } = { navProps: { "aria-label": ariaLabel } };
2145
2233
  const { children, ...otherProps } = props;
2146
- const childArray = import_react14.Children.toArray(children);
2147
- const classes = (0, import_dedupe12.default)(
2234
+ const childArray = import_react15.Children.toArray(children);
2235
+ const classes = (0, import_dedupe13.default)(
2148
2236
  "mobius",
2149
2237
  "mobius-breadcrumb",
2150
2238
  otherProps.className
2151
2239
  );
2152
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("nav", { ref, ...otherProps, ...navProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("ul", { children: childArray.map(
2153
- (child, i) => (0, import_react14.cloneElement)(
2240
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("nav", { ref, ...otherProps, ...navProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("ul", { children: childArray.map(
2241
+ (child, i) => (0, import_react15.cloneElement)(
2154
2242
  child,
2155
2243
  {
2156
2244
  key: i,
@@ -2164,22 +2252,22 @@ var init_Breadcrumbs = __esm({
2164
2252
  });
2165
2253
 
2166
2254
  // src/components/Breadcrumbs/BreadcrumbItem.tsx
2167
- var import_react15, import_dedupe13, import_jsx_runtime15, BreadcrumbItem;
2255
+ var import_react16, import_dedupe14, import_jsx_runtime17, BreadcrumbItem;
2168
2256
  var init_BreadcrumbItem = __esm({
2169
2257
  "src/components/Breadcrumbs/BreadcrumbItem.tsx"() {
2170
2258
  "use strict";
2171
2259
  "use client";
2172
- import_react15 = require("react");
2173
- import_dedupe13 = __toESM(require("classnames/dedupe"));
2260
+ import_react16 = require("react");
2261
+ import_dedupe14 = __toESM(require("classnames/dedupe"));
2174
2262
  init_Box2();
2175
- import_jsx_runtime15 = require("react/jsx-runtime");
2263
+ import_jsx_runtime17 = require("react/jsx-runtime");
2176
2264
  BreadcrumbItem = ({ ref, ...props }) => {
2177
2265
  const {
2178
2266
  isDisabled = false,
2179
2267
  isCurrent = false,
2180
2268
  "aria-current": ariaCurrent = "page",
2181
2269
  children,
2182
- separator = /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Box, { className: "mobius-breadcrumb__separator", "aria-hidden": "true", children: ">" }),
2270
+ separator = /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Box, { className: "mobius-breadcrumb__separator", "aria-hidden": "true", children: ">" }),
2183
2271
  ...otherProps
2184
2272
  } = props;
2185
2273
  const { itemProps } = {
@@ -2189,14 +2277,14 @@ var init_BreadcrumbItem = __esm({
2189
2277
  ...otherProps
2190
2278
  }
2191
2279
  };
2192
- const classes = (0, import_dedupe13.default)(
2280
+ const classes = (0, import_dedupe14.default)(
2193
2281
  "mobius",
2194
2282
  "mobius-breadcrumb__item",
2195
2283
  props.className
2196
2284
  );
2197
- const child = typeof children === "string" ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { ...itemProps, children }) : import_react15.Children.only(children);
2198
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("li", { className: classes, children: [
2199
- (0, import_react15.cloneElement)(child, {
2285
+ const child = typeof children === "string" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { ...itemProps, children }) : import_react16.Children.only(children);
2286
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("li", { className: classes, children: [
2287
+ (0, import_react16.cloneElement)(child, {
2200
2288
  ...child.props,
2201
2289
  ...itemProps,
2202
2290
  ref
@@ -2218,19 +2306,19 @@ var init_Breadcrumbs2 = __esm({
2218
2306
  });
2219
2307
 
2220
2308
  // src/components/Button/Loading.tsx
2221
- var import_icons4, import_jsx_runtime16, Loading;
2309
+ var import_icons4, import_jsx_runtime18, Loading;
2222
2310
  var init_Loading = __esm({
2223
2311
  "src/components/Button/Loading.tsx"() {
2224
2312
  "use strict";
2225
2313
  import_icons4 = require("@simplybusiness/icons");
2226
2314
  init_Icon2();
2227
2315
  init_VisuallyHidden2();
2228
- import_jsx_runtime16 = require("react/jsx-runtime");
2316
+ import_jsx_runtime18 = require("react/jsx-runtime");
2229
2317
  Loading = (props) => {
2230
2318
  const { children } = props;
2231
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
2232
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "mobius-button__icon-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon, { icon: import_icons4.loading, spin: true, size: "md" }) }),
2233
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(VisuallyHidden, { className: "mobius-button__loading-text", children: "Loading" }),
2319
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
2320
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "mobius-button__icon-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Icon, { icon: import_icons4.loading, spin: true, size: "md" }) }),
2321
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(VisuallyHidden, { className: "mobius-button__loading-text", children: "Loading" }),
2234
2322
  children
2235
2323
  ] });
2236
2324
  };
@@ -2238,33 +2326,33 @@ var init_Loading = __esm({
2238
2326
  });
2239
2327
 
2240
2328
  // src/components/Button/Success.tsx
2241
- var import_icons5, import_jsx_runtime17, Success;
2329
+ var import_icons5, import_jsx_runtime19, Success;
2242
2330
  var init_Success = __esm({
2243
2331
  "src/components/Button/Success.tsx"() {
2244
2332
  "use strict";
2245
2333
  import_icons5 = require("@simplybusiness/icons");
2246
2334
  init_Icon2();
2247
2335
  init_VisuallyHidden2();
2248
- import_jsx_runtime17 = require("react/jsx-runtime");
2249
- Success = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
2250
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "mobius-button__icon-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon, { icon: import_icons5.tick, size: "md" }) }),
2251
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(VisuallyHidden, { className: "mobius-button__success-text", children: "Success" })
2336
+ import_jsx_runtime19 = require("react/jsx-runtime");
2337
+ Success = () => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
2338
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "mobius-button__icon-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { icon: import_icons5.tick, size: "md" }) }),
2339
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(VisuallyHidden, { className: "mobius-button__success-text", children: "Success" })
2252
2340
  ] });
2253
2341
  }
2254
2342
  });
2255
2343
 
2256
2344
  // src/components/Button/Button.tsx
2257
- var import_dedupe14, import_Button, import_jsx_runtime18, Button;
2345
+ var import_dedupe15, import_Button, import_jsx_runtime20, Button;
2258
2346
  var init_Button = __esm({
2259
2347
  "src/components/Button/Button.tsx"() {
2260
2348
  "use strict";
2261
2349
  "use client";
2262
- import_dedupe14 = __toESM(require("classnames/dedupe"));
2350
+ import_dedupe15 = __toESM(require("classnames/dedupe"));
2263
2351
  init_Loading();
2264
2352
  init_useButton2();
2265
2353
  init_Success();
2266
2354
  import_Button = require("@simplybusiness/mobius/src/components/Button/Button.css");
2267
- import_jsx_runtime18 = require("react/jsx-runtime");
2355
+ import_jsx_runtime20 = require("react/jsx-runtime");
2268
2356
  Button = ({ ref, ...props }) => {
2269
2357
  const {
2270
2358
  children,
@@ -2279,7 +2367,7 @@ var init_Button = __esm({
2279
2367
  ...otherProps
2280
2368
  } = props;
2281
2369
  const { buttonProps } = useButton(props);
2282
- otherProps.className = (0, import_dedupe14.default)(
2370
+ otherProps.className = (0, import_dedupe15.default)(
2283
2371
  "mobius",
2284
2372
  "mobius-button",
2285
2373
  `--variant-${variant}`,
@@ -2291,9 +2379,9 @@ var init_Button = __esm({
2291
2379
  },
2292
2380
  otherProps.className
2293
2381
  );
2294
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Component, { ref, ...buttonProps, ...otherProps, children: [
2295
- isLoading ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Loading, { children }) : children,
2296
- isSuccess && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Success, {})
2382
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(Component, { ref, ...buttonProps, ...otherProps, children: [
2383
+ isLoading ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Loading, { children }) : children,
2384
+ isSuccess && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Success, {})
2297
2385
  ] });
2298
2386
  };
2299
2387
  Button.displayName = "Button";
@@ -2309,16 +2397,16 @@ var init_Button2 = __esm({
2309
2397
  });
2310
2398
 
2311
2399
  // src/components/Stack/Stack.tsx
2312
- var import_dedupe15, import_Stack, import_jsx_runtime19, Stack;
2400
+ var import_dedupe16, import_Stack, import_jsx_runtime21, Stack;
2313
2401
  var init_Stack = __esm({
2314
2402
  "src/components/Stack/Stack.tsx"() {
2315
2403
  "use strict";
2316
- import_dedupe15 = __toESM(require("classnames/dedupe"));
2404
+ import_dedupe16 = __toESM(require("classnames/dedupe"));
2317
2405
  import_Stack = require("@simplybusiness/mobius/src/components/Stack/Stack.css");
2318
- import_jsx_runtime19 = require("react/jsx-runtime");
2406
+ import_jsx_runtime21 = require("react/jsx-runtime");
2319
2407
  Stack = ({ ref, ...props }) => {
2320
2408
  const { elementType: Element = "div", gap, ...otherProps } = props;
2321
- const classes = (0, import_dedupe15.default)(
2409
+ const classes = (0, import_dedupe16.default)(
2322
2410
  "mobius",
2323
2411
  "mobius-stack",
2324
2412
  {
@@ -2326,7 +2414,7 @@ var init_Stack = __esm({
2326
2414
  },
2327
2415
  otherProps.className
2328
2416
  );
2329
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Element, { ref, ...otherProps, className: classes });
2417
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Element, { ref, ...otherProps, className: classes });
2330
2418
  };
2331
2419
  Stack.displayName = "Stack";
2332
2420
  }
@@ -2341,13 +2429,13 @@ var init_Stack2 = __esm({
2341
2429
  });
2342
2430
 
2343
2431
  // src/components/Checkbox/Checkbox.tsx
2344
- var import_react16, import_dedupe16, import_icons6, import_Checkbox, import_jsx_runtime20, Checkbox;
2432
+ var import_react17, import_dedupe17, import_icons6, import_Checkbox, import_jsx_runtime22, Checkbox;
2345
2433
  var init_Checkbox = __esm({
2346
2434
  "src/components/Checkbox/Checkbox.tsx"() {
2347
2435
  "use strict";
2348
2436
  "use client";
2349
- import_react16 = require("react");
2350
- import_dedupe16 = __toESM(require("classnames/dedupe"));
2437
+ import_react17 = require("react");
2438
+ import_dedupe17 = __toESM(require("classnames/dedupe"));
2351
2439
  import_icons6 = require("@simplybusiness/icons");
2352
2440
  init_ErrorMessage2();
2353
2441
  init_spaceDelimitedList();
@@ -2355,7 +2443,7 @@ var init_Checkbox = __esm({
2355
2443
  init_Icon2();
2356
2444
  init_Stack2();
2357
2445
  import_Checkbox = require("@simplybusiness/mobius/src/components/Checkbox/Checkbox.css");
2358
- import_jsx_runtime20 = require("react/jsx-runtime");
2446
+ import_jsx_runtime22 = require("react/jsx-runtime");
2359
2447
  Checkbox = ({ ref, ...props }) => {
2360
2448
  const {
2361
2449
  id,
@@ -2375,18 +2463,18 @@ var init_Checkbox = __esm({
2375
2463
  ["aria-describedby"]: ariaDescribedBy,
2376
2464
  ...rest
2377
2465
  } = props;
2378
- const [checked, setChecked] = (0, import_react16.useState)(defaultSelected);
2379
- const fallbackRef = (0, import_react16.useRef)(null);
2466
+ const [checked, setChecked] = (0, import_react17.useState)(defaultSelected);
2467
+ const fallbackRef = (0, import_react17.useRef)(null);
2380
2468
  const refObj = ref || fallbackRef;
2381
- const inputId = (0, import_react16.useId)();
2469
+ const inputId = (0, import_react17.useId)();
2382
2470
  const isControlled = typeof selected === "boolean";
2383
- (0, import_react16.useEffect)(() => {
2471
+ (0, import_react17.useEffect)(() => {
2384
2472
  if (isControlled) {
2385
2473
  setChecked(selected);
2386
2474
  }
2387
2475
  }, [selected, isControlled]);
2388
2476
  const validationClasses = useValidationClasses({ isInvalid });
2389
- const sharedClasses = (0, import_dedupe16.default)(
2477
+ const sharedClasses = (0, import_dedupe17.default)(
2390
2478
  {
2391
2479
  "--is-disabled": isDisabled,
2392
2480
  "--is-selected": checked,
@@ -2395,31 +2483,31 @@ var init_Checkbox = __esm({
2395
2483
  },
2396
2484
  validationClasses
2397
2485
  );
2398
- const wrapperClasses = (0, import_dedupe16.default)(
2486
+ const wrapperClasses = (0, import_dedupe17.default)(
2399
2487
  "mobius",
2400
2488
  "mobius-checkbox",
2401
2489
  sharedClasses,
2402
2490
  className
2403
2491
  );
2404
- const labelClasses = (0, import_dedupe16.default)("mobius-checkbox__label", sharedClasses);
2405
- const inputClasses = (0, import_dedupe16.default)("mobius-checkbox__input", sharedClasses);
2406
- const iconClasses = (0, import_dedupe16.default)("mobius-checkbox__icon", sharedClasses);
2407
- const errorMessageId = (0, import_react16.useId)();
2492
+ const labelClasses = (0, import_dedupe17.default)("mobius-checkbox__label", sharedClasses);
2493
+ const inputClasses = (0, import_dedupe17.default)("mobius-checkbox__input", sharedClasses);
2494
+ const iconClasses = (0, import_dedupe17.default)("mobius-checkbox__icon", sharedClasses);
2495
+ const errorMessageId = (0, import_react17.useId)();
2408
2496
  const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
2409
2497
  const describedBy = spaceDelimitedList([
2410
2498
  shouldErrorMessageShow,
2411
2499
  ariaDescribedBy
2412
2500
  ]);
2413
- const labelId = (0, import_react16.useId)();
2501
+ const labelId = (0, import_react17.useId)();
2414
2502
  const handleChange = (event) => {
2415
2503
  setChecked(!checked);
2416
2504
  if (onChange) {
2417
2505
  onChange(event, isLastItem);
2418
2506
  }
2419
2507
  };
2420
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(Stack, { gap: "xs", className: wrapperClasses, children: [
2421
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("label", { className: labelClasses, children: [
2422
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2508
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Stack, { gap: "xs", className: wrapperClasses, children: [
2509
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", { className: labelClasses, children: [
2510
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2423
2511
  "input",
2424
2512
  {
2425
2513
  "aria-describedby": describedBy,
@@ -2440,7 +2528,7 @@ var init_Checkbox = __esm({
2440
2528
  ...rest
2441
2529
  }
2442
2530
  ),
2443
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2531
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2444
2532
  Icon,
2445
2533
  {
2446
2534
  icon: checked ? import_icons6.squareTick : import_icons6.square,
@@ -2448,9 +2536,9 @@ var init_Checkbox = __esm({
2448
2536
  className: iconClasses
2449
2537
  }
2450
2538
  ),
2451
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { id: labelId, className: "mobius-checkbox__visible-label", children: label })
2539
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { id: labelId, className: "mobius-checkbox__visible-label", children: label })
2452
2540
  ] }),
2453
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
2541
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
2454
2542
  ] });
2455
2543
  };
2456
2544
  Checkbox.displayName = "Checkbox";
@@ -2458,18 +2546,18 @@ var init_Checkbox = __esm({
2458
2546
  });
2459
2547
 
2460
2548
  // src/components/Label/Label.tsx
2461
- var import_dedupe17, import_Label, import_jsx_runtime21, Label;
2549
+ var import_dedupe18, import_Label, import_jsx_runtime23, Label;
2462
2550
  var init_Label = __esm({
2463
2551
  "src/components/Label/Label.tsx"() {
2464
2552
  "use strict";
2465
- import_dedupe17 = __toESM(require("classnames/dedupe"));
2553
+ import_dedupe18 = __toESM(require("classnames/dedupe"));
2466
2554
  import_Label = require("@simplybusiness/mobius/src/components/Label/Label.css");
2467
- import_jsx_runtime21 = require("react/jsx-runtime");
2555
+ import_jsx_runtime23 = require("react/jsx-runtime");
2468
2556
  Label = ({ ref, ...props }) => {
2469
2557
  const { elementType: Element = "label", children, ...otherProps } = props;
2470
- const classes = (0, import_dedupe17.default)("mobius", "mobius-label", props.className);
2558
+ const classes = (0, import_dedupe18.default)("mobius", "mobius-label", props.className);
2471
2559
  otherProps.className = classes;
2472
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Element, { ref, ...otherProps, className: classes, children });
2560
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Element, { ref, ...otherProps, className: classes, children });
2473
2561
  };
2474
2562
  Label.displayName = "Label";
2475
2563
  }
@@ -2484,20 +2572,20 @@ var init_Label2 = __esm({
2484
2572
  });
2485
2573
 
2486
2574
  // src/components/Checkbox/CheckboxGroup.tsx
2487
- var import_dedupe18, import_react17, import_CheckboxGroup, import_jsx_runtime22, CheckboxGroup;
2575
+ var import_dedupe19, import_react18, import_CheckboxGroup, import_jsx_runtime24, CheckboxGroup;
2488
2576
  var init_CheckboxGroup = __esm({
2489
2577
  "src/components/Checkbox/CheckboxGroup.tsx"() {
2490
2578
  "use strict";
2491
2579
  "use client";
2492
- import_dedupe18 = __toESM(require("classnames/dedupe"));
2493
- import_react17 = require("react");
2580
+ import_dedupe19 = __toESM(require("classnames/dedupe"));
2581
+ import_react18 = require("react");
2494
2582
  init_hooks();
2495
2583
  init_spaceDelimitedList();
2496
2584
  init_ErrorMessage2();
2497
2585
  init_Label2();
2498
2586
  init_Checkbox();
2499
2587
  import_CheckboxGroup = require("@simplybusiness/mobius/src/components/Checkbox/CheckboxGroup.css");
2500
- import_jsx_runtime22 = require("react/jsx-runtime");
2588
+ import_jsx_runtime24 = require("react/jsx-runtime");
2501
2589
  CheckboxGroup = ({ ref, ...props }) => {
2502
2590
  const {
2503
2591
  label,
@@ -2515,10 +2603,10 @@ var init_CheckboxGroup = __esm({
2515
2603
  lastItemDisables = false,
2516
2604
  ...rest
2517
2605
  } = props;
2518
- const [selected, setSelected] = (0, import_react17.useState)(defaultValue);
2519
- const isInitializedRef = (0, import_react17.useRef)(false);
2520
- const prevDefaultValueRef = (0, import_react17.useRef)(defaultValue);
2521
- (0, import_react17.useEffect)(() => {
2606
+ const [selected, setSelected] = (0, import_react18.useState)(defaultValue);
2607
+ const isInitializedRef = (0, import_react18.useRef)(false);
2608
+ const prevDefaultValueRef = (0, import_react18.useRef)(defaultValue);
2609
+ (0, import_react18.useEffect)(() => {
2522
2610
  const hasChanged = defaultValue.length !== prevDefaultValueRef.current.length || defaultValue.some(
2523
2611
  (val, index) => val !== prevDefaultValueRef.current[index]
2524
2612
  );
@@ -2528,7 +2616,7 @@ var init_CheckboxGroup = __esm({
2528
2616
  isInitializedRef.current = true;
2529
2617
  }
2530
2618
  }, [defaultValue]);
2531
- const checkboxGroupClasses = (0, import_dedupe18.default)(
2619
+ const checkboxGroupClasses = (0, import_dedupe19.default)(
2532
2620
  "mobius",
2533
2621
  "mobius-checkbox-group",
2534
2622
  className,
@@ -2540,19 +2628,19 @@ var init_CheckboxGroup = __esm({
2540
2628
  }
2541
2629
  );
2542
2630
  const validationClasses = useValidationClasses({ isInvalid });
2543
- const labelClasses = (0, import_dedupe18.default)(
2631
+ const labelClasses = (0, import_dedupe19.default)(
2544
2632
  {
2545
2633
  "--is-disabled": isDisabled
2546
2634
  },
2547
2635
  validationClasses
2548
2636
  );
2549
- const errorMessageId = (0, import_react17.useId)();
2637
+ const errorMessageId = (0, import_react18.useId)();
2550
2638
  const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
2551
2639
  const describedBy = spaceDelimitedList([
2552
2640
  shouldErrorMessageShow,
2553
2641
  props["aria-describedby"]
2554
2642
  ]);
2555
- const labelId = (0, import_react17.useId)();
2643
+ const labelId = (0, import_react18.useId)();
2556
2644
  const handleChange = (event, isLastItem = false) => {
2557
2645
  const {
2558
2646
  target: { value, checked }
@@ -2570,12 +2658,12 @@ var init_CheckboxGroup = __esm({
2570
2658
  setSelected(newValue);
2571
2659
  onChange?.(newValue);
2572
2660
  };
2573
- const childrenArray = import_react17.Children.toArray(children);
2661
+ const childrenArray = import_react18.Children.toArray(children);
2574
2662
  const lastCheckbox = childrenArray.filter(
2575
- (child) => (0, import_react17.isValidElement)(child) && child.type === Checkbox
2663
+ (child) => (0, import_react18.isValidElement)(child) && child.type === Checkbox
2576
2664
  ).pop();
2577
2665
  const lastCheckboxIsChecked = lastCheckbox && selected.includes(lastCheckbox.props.value);
2578
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
2666
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2579
2667
  "div",
2580
2668
  {
2581
2669
  ...rest,
@@ -2584,16 +2672,16 @@ var init_CheckboxGroup = __esm({
2584
2672
  className: checkboxGroupClasses,
2585
2673
  role: "group",
2586
2674
  style: {
2587
- "--checkbox-items-per-row": itemsPerRow || import_react17.Children.count(children)
2675
+ "--checkbox-items-per-row": itemsPerRow || import_react18.Children.count(children)
2588
2676
  },
2589
2677
  children: [
2590
- label && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Label, { elementType: "span", id: labelId, className: labelClasses, children: label }),
2591
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "mobius-checkbox-group__wrapper", children: childrenArray.map((child) => {
2592
- if ((0, import_react17.isValidElement)(child)) {
2678
+ label && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Label, { elementType: "span", id: labelId, className: labelClasses, children: label }),
2679
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "mobius-checkbox-group__wrapper", children: childrenArray.map((child) => {
2680
+ if ((0, import_react18.isValidElement)(child)) {
2593
2681
  const isLastItem = child === lastCheckbox;
2594
2682
  const isChildDisabled = isDisabled || lastItemDisables && lastCheckboxIsChecked && !isLastItem;
2595
2683
  const childProps = child.props;
2596
- return (0, import_react17.cloneElement)(
2684
+ return (0, import_react18.cloneElement)(
2597
2685
  child,
2598
2686
  {
2599
2687
  isDisabled: isChildDisabled,
@@ -2609,7 +2697,7 @@ var init_CheckboxGroup = __esm({
2609
2697
  }
2610
2698
  return child;
2611
2699
  }) }),
2612
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
2700
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
2613
2701
  ]
2614
2702
  }
2615
2703
  );
@@ -2636,23 +2724,23 @@ var init_Checkbox2 = __esm({
2636
2724
  });
2637
2725
 
2638
2726
  // src/components/Container/Container.tsx
2639
- var import_dedupe19, import_Container, import_jsx_runtime23, Container;
2727
+ var import_dedupe20, import_Container, import_jsx_runtime25, Container;
2640
2728
  var init_Container = __esm({
2641
2729
  "src/components/Container/Container.tsx"() {
2642
2730
  "use strict";
2643
- import_dedupe19 = __toESM(require("classnames/dedupe"));
2731
+ import_dedupe20 = __toESM(require("classnames/dedupe"));
2644
2732
  init_utils();
2645
2733
  import_Container = require("@simplybusiness/mobius/src/components/Container/Container.css");
2646
- import_jsx_runtime23 = require("react/jsx-runtime");
2734
+ import_jsx_runtime25 = require("react/jsx-runtime");
2647
2735
  Container = ({ ref, ...props }) => {
2648
2736
  const { elementType: Element = "div", size = "md", ...otherProps } = props;
2649
- const classes = (0, import_dedupe19.default)(
2737
+ const classes = (0, import_dedupe20.default)(
2650
2738
  "mobius",
2651
2739
  "mobius-container",
2652
2740
  sizeClasses(size),
2653
2741
  otherProps.className
2654
2742
  );
2655
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Element, { ref, ...otherProps, className: classes });
2743
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Element, { ref, ...otherProps, className: classes });
2656
2744
  };
2657
2745
  Container.displayName = "Container";
2658
2746
  }
@@ -2714,23 +2802,23 @@ var init_DateField = __esm({
2714
2802
  });
2715
2803
 
2716
2804
  // src/components/Drawer/Content.tsx
2717
- var import_jsx_runtime24, Content;
2805
+ var import_jsx_runtime26, Content;
2718
2806
  var init_Content = __esm({
2719
2807
  "src/components/Drawer/Content.tsx"() {
2720
2808
  "use strict";
2721
- import_jsx_runtime24 = require("react/jsx-runtime");
2722
- Content = ({ ref, children, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { ref, ...otherProps, className: "mobius-drawer__content", children });
2809
+ import_jsx_runtime26 = require("react/jsx-runtime");
2810
+ Content = ({ ref, children, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ref, ...otherProps, className: "mobius-drawer__content", children });
2723
2811
  Content.displayName = "Content";
2724
2812
  }
2725
2813
  });
2726
2814
 
2727
2815
  // src/components/Drawer/DrawerContext.tsx
2728
- var import_react18, DrawerContext;
2816
+ var import_react19, DrawerContext;
2729
2817
  var init_DrawerContext = __esm({
2730
2818
  "src/components/Drawer/DrawerContext.tsx"() {
2731
2819
  "use strict";
2732
- import_react18 = require("react");
2733
- DrawerContext = (0, import_react18.createContext)({
2820
+ import_react19 = require("react");
2821
+ DrawerContext = (0, import_react19.createContext)({
2734
2822
  onClose: () => {
2735
2823
  },
2736
2824
  closeLabel: void 0,
@@ -2740,19 +2828,19 @@ var init_DrawerContext = __esm({
2740
2828
  });
2741
2829
 
2742
2830
  // src/components/Drawer/Drawer.tsx
2743
- var import_dedupe20, import_react19, import_Drawer, import_jsx_runtime25, TRANSITION_CSS_VARIABLE, Drawer;
2831
+ var import_dedupe21, import_react20, import_Drawer, import_jsx_runtime27, TRANSITION_CSS_VARIABLE, Drawer;
2744
2832
  var init_Drawer = __esm({
2745
2833
  "src/components/Drawer/Drawer.tsx"() {
2746
2834
  "use strict";
2747
2835
  "use client";
2748
- import_dedupe20 = __toESM(require("classnames/dedupe"));
2749
- import_react19 = require("react");
2836
+ import_dedupe21 = __toESM(require("classnames/dedupe"));
2837
+ import_react20 = require("react");
2750
2838
  init_hooks();
2751
2839
  init_utils();
2752
2840
  init_VisuallyHidden2();
2753
2841
  init_DrawerContext();
2754
2842
  import_Drawer = require("@simplybusiness/mobius/src/components/Drawer/Drawer.css");
2755
- import_jsx_runtime25 = require("react/jsx-runtime");
2843
+ import_jsx_runtime27 = require("react/jsx-runtime");
2756
2844
  TRANSITION_CSS_VARIABLE = "--drawer-transition-duration";
2757
2845
  Drawer = ({ ref, ...props }) => {
2758
2846
  const {
@@ -2765,8 +2853,8 @@ var init_Drawer = __esm({
2765
2853
  onClose,
2766
2854
  children
2767
2855
  } = props;
2768
- const dialogRef = (0, import_react19.useRef)(null);
2769
- const [shouldTransition, setShouldTransition] = (0, import_react19.useState)(false);
2856
+ const dialogRef = (0, import_react20.useRef)(null);
2857
+ const [shouldTransition, setShouldTransition] = (0, import_react20.useState)(false);
2770
2858
  const { close } = useDialog({
2771
2859
  ref: dialogRef,
2772
2860
  isOpen,
@@ -2777,9 +2865,9 @@ var init_Drawer = __esm({
2777
2865
  CSSVariable: TRANSITION_CSS_VARIABLE
2778
2866
  }
2779
2867
  });
2780
- const hiddenId = `dialog-screen-reader-announce-${(0, import_react19.useId)()}`;
2781
- const headerId = `dialog-header-${(0, import_react19.useId)()}`;
2782
- const dialogClasses = (0, import_dedupe20.default)(
2868
+ const hiddenId = `dialog-screen-reader-announce-${(0, import_react20.useId)()}`;
2869
+ const headerId = `dialog-header-${(0, import_react20.useId)()}`;
2870
+ const dialogClasses = (0, import_dedupe21.default)(
2783
2871
  "mobius",
2784
2872
  "mobius-drawer",
2785
2873
  `--${direction}`,
@@ -2788,10 +2876,10 @@ var init_Drawer = __esm({
2788
2876
  "--should-transition": shouldTransition
2789
2877
  }
2790
2878
  );
2791
- (0, import_react19.useEffect)(() => {
2879
+ (0, import_react20.useEffect)(() => {
2792
2880
  setShouldTransition(supportsDialog());
2793
2881
  }, []);
2794
- const contextValue = (0, import_react19.useMemo)(
2882
+ const contextValue = (0, import_react20.useMemo)(
2795
2883
  () => ({
2796
2884
  onClose: close,
2797
2885
  closeLabel,
@@ -2799,18 +2887,18 @@ var init_Drawer = __esm({
2799
2887
  }),
2800
2888
  [close, closeLabel, headerId]
2801
2889
  );
2802
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2890
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
2803
2891
  "dialog",
2804
2892
  {
2805
- id: (0, import_react19.useId)(),
2893
+ id: (0, import_react20.useId)(),
2806
2894
  ref: mergeRefs([dialogRef, ref]),
2807
2895
  onCancel: close,
2808
2896
  className: dialogClasses,
2809
2897
  "aria-describedby": hiddenId,
2810
2898
  "aria-labelledby": headerId,
2811
2899
  children: [
2812
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { id: hiddenId, children: announce }) }),
2813
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DrawerContext.Provider, { value: contextValue, children })
2900
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { id: hiddenId, children: announce }) }),
2901
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(DrawerContext.Provider, { value: contextValue, children })
2814
2902
  ]
2815
2903
  }
2816
2904
  );
@@ -2820,21 +2908,21 @@ var init_Drawer = __esm({
2820
2908
  });
2821
2909
 
2822
2910
  // src/components/Drawer/useDrawer.ts
2823
- var import_react20, useDrawer;
2911
+ var import_react21, useDrawer;
2824
2912
  var init_useDrawer = __esm({
2825
2913
  "src/components/Drawer/useDrawer.ts"() {
2826
2914
  "use strict";
2827
- import_react20 = require("react");
2915
+ import_react21 = require("react");
2828
2916
  init_DrawerContext();
2829
2917
  useDrawer = () => {
2830
- const { onClose, closeLabel, headerId } = (0, import_react20.useContext)(DrawerContext);
2918
+ const { onClose, closeLabel, headerId } = (0, import_react21.useContext)(DrawerContext);
2831
2919
  return { onClose, closeLabel, headerId };
2832
2920
  };
2833
2921
  }
2834
2922
  });
2835
2923
 
2836
2924
  // src/components/Drawer/Header.tsx
2837
- var import_icons7, import_jsx_runtime26, Header;
2925
+ var import_icons7, import_jsx_runtime28, Header;
2838
2926
  var init_Header = __esm({
2839
2927
  "src/components/Drawer/Header.tsx"() {
2840
2928
  "use strict";
@@ -2842,12 +2930,12 @@ var init_Header = __esm({
2842
2930
  init_Button2();
2843
2931
  init_Icon2();
2844
2932
  init_useDrawer();
2845
- import_jsx_runtime26 = require("react/jsx-runtime");
2933
+ import_jsx_runtime28 = require("react/jsx-runtime");
2846
2934
  Header = ({ ref, children, ...otherProps }) => {
2847
2935
  const { onClose, closeLabel, headerId } = useDrawer();
2848
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("header", { ref, ...otherProps, className: "mobius-drawer__header", children: [
2849
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("h2", { id: headerId, children }),
2850
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2936
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("header", { ref, ...otherProps, className: "mobius-drawer__header", children: [
2937
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("h2", { id: headerId, children }),
2938
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
2851
2939
  Button,
2852
2940
  {
2853
2941
  "aria-label": "Close",
@@ -2856,7 +2944,7 @@ var init_Header = __esm({
2856
2944
  className: "mobius-drawer__close",
2857
2945
  size: "sm",
2858
2946
  children: [
2859
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon, { icon: import_icons7.cross }),
2947
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { icon: import_icons7.cross }),
2860
2948
  " ",
2861
2949
  closeLabel
2862
2950
  ]
@@ -2885,17 +2973,17 @@ var init_Drawer2 = __esm({
2885
2973
  });
2886
2974
 
2887
2975
  // src/components/DropdownMenu/DropdownMenu.tsx
2888
- var import_react21, import_react_accessible_dropdown_menu_hook, import_dedupe21, import_DropdownMenu, import_jsx_runtime27, DropdownMenu;
2976
+ var import_react22, import_react_accessible_dropdown_menu_hook, import_dedupe22, import_DropdownMenu, import_jsx_runtime29, DropdownMenu;
2889
2977
  var init_DropdownMenu = __esm({
2890
2978
  "src/components/DropdownMenu/DropdownMenu.tsx"() {
2891
2979
  "use strict";
2892
2980
  "use client";
2893
- import_react21 = require("react");
2981
+ import_react22 = require("react");
2894
2982
  import_react_accessible_dropdown_menu_hook = __toESM(require("react-accessible-dropdown-menu-hook"));
2895
- import_dedupe21 = __toESM(require("classnames/dedupe"));
2983
+ import_dedupe22 = __toESM(require("classnames/dedupe"));
2896
2984
  init_Button2();
2897
2985
  import_DropdownMenu = require("@simplybusiness/mobius/src/components/DropdownMenu/DropdownMenu.css");
2898
- import_jsx_runtime27 = require("react/jsx-runtime");
2986
+ import_jsx_runtime29 = require("react/jsx-runtime");
2899
2987
  DropdownMenu = ({ ref, ...props }) => {
2900
2988
  const {
2901
2989
  elementType: Element = "nav",
@@ -2904,21 +2992,21 @@ var init_DropdownMenu = __esm({
2904
2992
  children,
2905
2993
  ...otherProps
2906
2994
  } = props;
2907
- const [activeId, setActiveId] = (0, import_react21.useState)(null);
2908
- const numberOfItems = import_react21.Children.count(children);
2995
+ const [activeId, setActiveId] = (0, import_react22.useState)(null);
2996
+ const numberOfItems = import_react22.Children.count(children);
2909
2997
  const {
2910
2998
  buttonProps,
2911
2999
  itemProps,
2912
3000
  isOpen: open,
2913
3001
  setIsOpen
2914
3002
  } = (0, import_react_accessible_dropdown_menu_hook.default)(numberOfItems);
2915
- const classes = (0, import_dedupe21.default)(
3003
+ const classes = (0, import_dedupe22.default)(
2916
3004
  "mobius",
2917
3005
  "mobius-dropdown-menu",
2918
3006
  otherProps.className
2919
3007
  );
2920
- const triggerClasses = (0, import_dedupe21.default)("mobius", "mobius-dropdown-menu__trigger");
2921
- const listClasses = (0, import_dedupe21.default)("mobius", "mobius-dropdown-menu__list", {
3008
+ const triggerClasses = (0, import_dedupe22.default)("mobius", "mobius-dropdown-menu__trigger");
3009
+ const listClasses = (0, import_dedupe22.default)("mobius", "mobius-dropdown-menu__list", {
2922
3010
  "--is-open": open
2923
3011
  });
2924
3012
  const handleChildClick = ({ onClick }, index) => {
@@ -2928,16 +3016,16 @@ var init_DropdownMenu = __esm({
2928
3016
  onClick();
2929
3017
  }
2930
3018
  };
2931
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Element, { ref, ...otherProps, className: classes, children: [
2932
- trigger ? (0, import_react21.cloneElement)(trigger, {
3019
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Element, { ref, ...otherProps, className: classes, children: [
3020
+ trigger ? (0, import_react22.cloneElement)(trigger, {
2933
3021
  className: triggerClasses,
2934
3022
  open,
2935
3023
  label,
2936
3024
  ...buttonProps
2937
- }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button, { className: triggerClasses, ...buttonProps, children: label }),
2938
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("ul", { className: listClasses, role: "menu", children: import_react21.Children.map(children, (child, index) => {
2939
- if ((0, import_react21.isValidElement)(child)) {
2940
- return (0, import_react21.cloneElement)(child, {
3025
+ }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button, { className: triggerClasses, ...buttonProps, children: label }),
3026
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("ul", { className: listClasses, role: "menu", children: import_react22.Children.map(children, (child, index) => {
3027
+ if ((0, import_react22.isValidElement)(child)) {
3028
+ return (0, import_react22.cloneElement)(child, {
2941
3029
  onClick: () => handleChildClick(child.props, index),
2942
3030
  active: index === activeId,
2943
3031
  ...itemProps[index]
@@ -2952,13 +3040,13 @@ var init_DropdownMenu = __esm({
2952
3040
  });
2953
3041
 
2954
3042
  // src/components/DropdownMenu/Item.tsx
2955
- var import_react22, import_dedupe22, import_jsx_runtime28, Item;
3043
+ var import_react23, import_dedupe23, import_jsx_runtime30, Item;
2956
3044
  var init_Item = __esm({
2957
3045
  "src/components/DropdownMenu/Item.tsx"() {
2958
3046
  "use strict";
2959
- import_react22 = require("react");
2960
- import_dedupe22 = __toESM(require("classnames/dedupe"));
2961
- import_jsx_runtime28 = require("react/jsx-runtime");
3047
+ import_react23 = require("react");
3048
+ import_dedupe23 = __toESM(require("classnames/dedupe"));
3049
+ import_jsx_runtime30 = require("react/jsx-runtime");
2962
3050
  Item = ({ ref, ...props }) => {
2963
3051
  const {
2964
3052
  elementType: Element = "li",
@@ -2967,26 +3055,26 @@ var init_Item = __esm({
2967
3055
  children,
2968
3056
  ...otherProps
2969
3057
  } = props;
2970
- const classes = (0, import_dedupe22.default)(
3058
+ const classes = (0, import_dedupe23.default)(
2971
3059
  "mobius",
2972
3060
  "mobius-dropdown-menu__item",
2973
3061
  { "--is-active": active },
2974
3062
  otherProps.className
2975
3063
  );
2976
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Element, { ref, onClick, ...otherProps, children: import_react22.Children.map(children, (child) => {
2977
- if ((0, import_react22.isValidElement)(child)) {
2978
- const childClasses = (0, import_dedupe22.default)(
3064
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Element, { ref, onClick, ...otherProps, children: import_react23.Children.map(children, (child) => {
3065
+ if ((0, import_react23.isValidElement)(child)) {
3066
+ const childClasses = (0, import_dedupe23.default)(
2979
3067
  child.props.className,
2980
3068
  classes
2981
3069
  );
2982
- return (0, import_react22.cloneElement)(
3070
+ return (0, import_react23.cloneElement)(
2983
3071
  child,
2984
3072
  {
2985
3073
  className: childClasses
2986
3074
  }
2987
3075
  );
2988
3076
  }
2989
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: classes, children: child });
3077
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: classes, children: child });
2990
3078
  }) });
2991
3079
  };
2992
3080
  Item.displayName = "DropdownMenu.Item";
@@ -3011,23 +3099,23 @@ var init_DropdownMenu2 = __esm({
3011
3099
  });
3012
3100
 
3013
3101
  // src/components/Fieldset/Fieldset.tsx
3014
- var import_dedupe23, import_react23, import_Fieldset, import_jsx_runtime29, useFieldset, Fieldset;
3102
+ var import_dedupe24, import_react24, import_Fieldset, import_jsx_runtime31, useFieldset, Fieldset;
3015
3103
  var init_Fieldset = __esm({
3016
3104
  "src/components/Fieldset/Fieldset.tsx"() {
3017
3105
  "use strict";
3018
3106
  "use client";
3019
- import_dedupe23 = __toESM(require("classnames/dedupe"));
3020
- import_react23 = require("react");
3107
+ import_dedupe24 = __toESM(require("classnames/dedupe"));
3108
+ import_react24 = require("react");
3021
3109
  init_Flex2();
3022
3110
  import_Fieldset = require("@simplybusiness/mobius/src/components/Fieldset/Fieldset.css");
3023
- import_jsx_runtime29 = require("react/jsx-runtime");
3111
+ import_jsx_runtime31 = require("react/jsx-runtime");
3024
3112
  useFieldset = (props) => {
3025
3113
  const { legend } = props;
3026
3114
  let legendProps = {};
3027
3115
  let containerProps = {
3028
3116
  role: "group"
3029
3117
  };
3030
- const legendId = (0, import_react23.useId)();
3118
+ const legendId = (0, import_react24.useId)();
3031
3119
  if (legend) {
3032
3120
  legendProps = {
3033
3121
  ...legendProps,
@@ -3047,14 +3135,14 @@ var init_Fieldset = __esm({
3047
3135
  const {
3048
3136
  children,
3049
3137
  legend,
3050
- legendComponent = /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("legend", {}),
3138
+ legendComponent = /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("legend", {}),
3051
3139
  ...otherProps
3052
3140
  } = props;
3053
3141
  const { legendProps, containerProps } = useFieldset(props);
3054
- const classes = (0, import_dedupe23.default)("mobius", "mobius-fieldset", props.className);
3142
+ const classes = (0, import_dedupe24.default)("mobius", "mobius-fieldset", props.className);
3055
3143
  legendProps.className = "mobius-fieldset__legend";
3056
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Flex, { ...containerProps, ...otherProps, className: classes, children: [
3057
- legend && (0, import_react23.cloneElement)(legendComponent, { ...legendProps }, [legend]),
3144
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Flex, { ...containerProps, ...otherProps, className: classes, children: [
3145
+ legend && (0, import_react24.cloneElement)(legendComponent, { ...legendProps }, [legend]),
3058
3146
  children
3059
3147
  ] });
3060
3148
  };
@@ -3071,13 +3159,13 @@ var init_Fieldset2 = __esm({
3071
3159
  });
3072
3160
 
3073
3161
  // src/components/Grid/Grid.tsx
3074
- var import_dedupe24, import_jsx_runtime30, Grid;
3162
+ var import_dedupe25, import_jsx_runtime32, Grid;
3075
3163
  var init_Grid = __esm({
3076
3164
  "src/components/Grid/Grid.tsx"() {
3077
3165
  "use strict";
3078
- import_dedupe24 = __toESM(require("classnames/dedupe"));
3166
+ import_dedupe25 = __toESM(require("classnames/dedupe"));
3079
3167
  init_utils();
3080
- import_jsx_runtime30 = require("react/jsx-runtime");
3168
+ import_jsx_runtime32 = require("react/jsx-runtime");
3081
3169
  Grid = ({ ref: _ref, ...props }) => {
3082
3170
  const {
3083
3171
  columns = 12,
@@ -3092,7 +3180,7 @@ var init_Grid = __esm({
3092
3180
  style,
3093
3181
  ...rest
3094
3182
  } = props;
3095
- const classes = (0, import_dedupe24.default)("mobius", "mobius-grid", className);
3183
+ const classes = (0, import_dedupe25.default)("mobius", "mobius-grid", className);
3096
3184
  const styles = filterUndefinedProps({
3097
3185
  boxSizing: "border-box",
3098
3186
  display: "grid",
@@ -3106,22 +3194,22 @@ var init_Grid = __esm({
3106
3194
  justifyItems,
3107
3195
  ...style
3108
3196
  });
3109
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { style: styles, className: classes, ...rest });
3197
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { style: styles, className: classes, ...rest });
3110
3198
  };
3111
3199
  Grid.displayName = "Grid";
3112
3200
  }
3113
3201
  });
3114
3202
 
3115
3203
  // src/components/Grid/Item.tsx
3116
- var import_react24, import_dedupe25, import_jsx_runtime31, getBreakpointMap, DEFAULT_SPAN, GridItem;
3204
+ var import_react25, import_dedupe26, import_jsx_runtime33, getBreakpointMap, DEFAULT_SPAN, GridItem;
3117
3205
  var init_Item2 = __esm({
3118
3206
  "src/components/Grid/Item.tsx"() {
3119
3207
  "use strict";
3120
3208
  "use client";
3121
- import_react24 = require("react");
3122
- import_dedupe25 = __toESM(require("classnames/dedupe"));
3209
+ import_react25 = require("react");
3210
+ import_dedupe26 = __toESM(require("classnames/dedupe"));
3123
3211
  init_hooks();
3124
- import_jsx_runtime31 = require("react/jsx-runtime");
3212
+ import_jsx_runtime33 = require("react/jsx-runtime");
3125
3213
  getBreakpointMap = (config) => Object.entries(config).reduce(
3126
3214
  (prev, [key, value]) => {
3127
3215
  const previous = Object.values(prev);
@@ -3156,9 +3244,9 @@ var init_Item2 = __esm({
3156
3244
  xl,
3157
3245
  xxl
3158
3246
  });
3159
- const [responsiveSpan, setResponsiveSpan] = (0, import_react24.useState)();
3160
- const classes = (0, import_dedupe25.default)("mobius-grid__item", className);
3161
- (0, import_react24.useEffect)(() => {
3247
+ const [responsiveSpan, setResponsiveSpan] = (0, import_react25.useState)();
3248
+ const classes = (0, import_dedupe26.default)("mobius-grid__item", className);
3249
+ (0, import_react25.useEffect)(() => {
3162
3250
  setResponsiveSpan(breakpointMap[breakpointSize]);
3163
3251
  }, [breakpointSize, breakpointMap]);
3164
3252
  const styles = {
@@ -3166,7 +3254,7 @@ var init_Item2 = __esm({
3166
3254
  alignSelf,
3167
3255
  justifySelf
3168
3256
  };
3169
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { style: { ...styles }, className: classes, ...rest });
3257
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { style: { ...styles }, className: classes, ...rest });
3170
3258
  };
3171
3259
  GridItem.displayName = "GridItem";
3172
3260
  }
@@ -3187,20 +3275,20 @@ var init_Grid2 = __esm({
3187
3275
  });
3188
3276
 
3189
3277
  // src/components/Image/Image.tsx
3190
- var import_dedupe26, import_jsx_runtime32, Image;
3278
+ var import_dedupe27, import_jsx_runtime34, Image;
3191
3279
  var init_Image = __esm({
3192
3280
  "src/components/Image/Image.tsx"() {
3193
3281
  "use strict";
3194
- import_dedupe26 = __toESM(require("classnames/dedupe"));
3195
- import_jsx_runtime32 = require("react/jsx-runtime");
3282
+ import_dedupe27 = __toESM(require("classnames/dedupe"));
3283
+ import_jsx_runtime34 = require("react/jsx-runtime");
3196
3284
  Image = ({
3197
3285
  ref,
3198
3286
  alt,
3199
3287
  elementType: Component = "img",
3200
3288
  ...otherProps
3201
3289
  }) => {
3202
- const classes = (0, import_dedupe26.default)("mobius", "mobius-image", otherProps.className);
3203
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Component, { alt, ref, ...otherProps, className: classes });
3290
+ const classes = (0, import_dedupe27.default)("mobius", "mobius-image", otherProps.className);
3291
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Component, { alt, ref, ...otherProps, className: classes });
3204
3292
  };
3205
3293
  Image.displayName = "Image";
3206
3294
  }
@@ -3215,13 +3303,13 @@ var init_Image2 = __esm({
3215
3303
  });
3216
3304
 
3217
3305
  // src/components/Link/Link.tsx
3218
- var import_dedupe27, import_Link, import_jsx_runtime33, Link;
3306
+ var import_dedupe28, import_Link, import_jsx_runtime35, Link;
3219
3307
  var init_Link = __esm({
3220
3308
  "src/components/Link/Link.tsx"() {
3221
3309
  "use strict";
3222
- import_dedupe27 = __toESM(require("classnames/dedupe"));
3310
+ import_dedupe28 = __toESM(require("classnames/dedupe"));
3223
3311
  import_Link = require("@simplybusiness/mobius/src/components/Link/Link.css");
3224
- import_jsx_runtime33 = require("react/jsx-runtime");
3312
+ import_jsx_runtime35 = require("react/jsx-runtime");
3225
3313
  Link = ({ ref, ...props }) => {
3226
3314
  const {
3227
3315
  isDisabled = false,
@@ -3235,7 +3323,7 @@ var init_Link = __esm({
3235
3323
  pointerEvents: "none"
3236
3324
  };
3237
3325
  const styles = { ...style, ...isDisabled && disabledStyles };
3238
- const classes = (0, import_dedupe27.default)(
3326
+ const classes = (0, import_dedupe28.default)(
3239
3327
  "mobius",
3240
3328
  "mobius-link",
3241
3329
  className,
@@ -3244,7 +3332,7 @@ var init_Link = __esm({
3244
3332
  "--is-disabled": isDisabled
3245
3333
  }
3246
3334
  );
3247
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3335
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3248
3336
  Component,
3249
3337
  {
3250
3338
  ref,
@@ -3269,12 +3357,12 @@ var init_Link2 = __esm({
3269
3357
  });
3270
3358
 
3271
3359
  // src/components/LinkButton/LinkButton.tsx
3272
- var import_dedupe28, import_jsx_runtime34;
3360
+ var import_dedupe29, import_jsx_runtime36;
3273
3361
  var init_LinkButton = __esm({
3274
3362
  "src/components/LinkButton/LinkButton.tsx"() {
3275
3363
  "use strict";
3276
- import_dedupe28 = __toESM(require("classnames/dedupe"));
3277
- import_jsx_runtime34 = require("react/jsx-runtime");
3364
+ import_dedupe29 = __toESM(require("classnames/dedupe"));
3365
+ import_jsx_runtime36 = require("react/jsx-runtime");
3278
3366
  }
3279
3367
  });
3280
3368
 
@@ -3287,14 +3375,14 @@ var init_LinkButton2 = __esm({
3287
3375
  });
3288
3376
 
3289
3377
  // src/components/List/List.tsx
3290
- var import_react25, import_dedupe29, import_List, import_jsx_runtime35, List;
3378
+ var import_react26, import_dedupe30, import_List, import_jsx_runtime37, List;
3291
3379
  var init_List = __esm({
3292
3380
  "src/components/List/List.tsx"() {
3293
3381
  "use strict";
3294
- import_react25 = require("react");
3295
- import_dedupe29 = __toESM(require("classnames/dedupe"));
3382
+ import_react26 = require("react");
3383
+ import_dedupe30 = __toESM(require("classnames/dedupe"));
3296
3384
  import_List = require("@simplybusiness/mobius/src/components/List/List.css");
3297
- import_jsx_runtime35 = require("react/jsx-runtime");
3385
+ import_jsx_runtime37 = require("react/jsx-runtime");
3298
3386
  List = ({ ref, ...props }) => {
3299
3387
  const Component = props.isOrdered ? "ol" : "ul";
3300
3388
  const { children, icon, ...otherProps } = props;
@@ -3303,7 +3391,7 @@ var init_List = __esm({
3303
3391
  ...restProps,
3304
3392
  reversed: isReversed
3305
3393
  };
3306
- const classes = (0, import_dedupe29.default)(
3394
+ const classes = (0, import_dedupe30.default)(
3307
3395
  "mobius",
3308
3396
  "mobius-list",
3309
3397
  {
@@ -3312,9 +3400,9 @@ var init_List = __esm({
3312
3400
  },
3313
3401
  otherProps.className
3314
3402
  );
3315
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Component, { ref, ...mappedProps, className: classes, children: import_react25.Children.map(children, (child) => {
3316
- if ((0, import_react25.isValidElement)(child)) {
3317
- return (0, import_react25.cloneElement)(child, {
3403
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Component, { ref, ...mappedProps, className: classes, children: import_react26.Children.map(children, (child) => {
3404
+ if ((0, import_react26.isValidElement)(child)) {
3405
+ return (0, import_react26.cloneElement)(child, {
3318
3406
  parentIcon: icon
3319
3407
  });
3320
3408
  }
@@ -3326,16 +3414,16 @@ var init_List = __esm({
3326
3414
  });
3327
3415
 
3328
3416
  // src/components/List/ListItem.tsx
3329
- var import_dedupe30, import_jsx_runtime36, ListItem;
3417
+ var import_dedupe31, import_jsx_runtime38, ListItem;
3330
3418
  var init_ListItem = __esm({
3331
3419
  "src/components/List/ListItem.tsx"() {
3332
3420
  "use strict";
3333
- import_dedupe30 = __toESM(require("classnames/dedupe"));
3334
- import_jsx_runtime36 = require("react/jsx-runtime");
3421
+ import_dedupe31 = __toESM(require("classnames/dedupe"));
3422
+ import_jsx_runtime38 = require("react/jsx-runtime");
3335
3423
  ListItem = ({ ref, ...props }) => {
3336
3424
  const { parentIcon, icon, children, ...otherProps } = props;
3337
3425
  const iconContent = icon || parentIcon;
3338
- const classes = (0, import_dedupe30.default)(
3426
+ const classes = (0, import_dedupe31.default)(
3339
3427
  "mobius",
3340
3428
  "mobius-list__item",
3341
3429
  {
@@ -3343,15 +3431,15 @@ var init_ListItem = __esm({
3343
3431
  },
3344
3432
  props.className
3345
3433
  );
3346
- const contentClasses = (0, import_dedupe30.default)("mobius", "mobius-list__item-content");
3347
- const iconClasses = (0, import_dedupe30.default)("mobius", "mobius-list__icon");
3434
+ const contentClasses = (0, import_dedupe31.default)("mobius", "mobius-list__item-content");
3435
+ const iconClasses = (0, import_dedupe31.default)("mobius", "mobius-list__icon");
3348
3436
  if (iconContent) {
3349
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("li", { ref, ...otherProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("span", { className: contentClasses, children: [
3350
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: iconClasses, children: iconContent }),
3437
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("li", { ref, ...otherProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("span", { className: contentClasses, children: [
3438
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: iconClasses, children: iconContent }),
3351
3439
  children
3352
3440
  ] }) });
3353
3441
  }
3354
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("li", { ref, ...otherProps, className: classes, children });
3442
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("li", { ref, ...otherProps, className: classes, children });
3355
3443
  };
3356
3444
  ListItem.displayName = "ListItem";
3357
3445
  }
@@ -3367,23 +3455,23 @@ var init_List2 = __esm({
3367
3455
  });
3368
3456
 
3369
3457
  // src/components/LoadingIndicator/LoadingIndicator.tsx
3370
- var import_dedupe31, import_icons8, import_LoadingIndicator, import_jsx_runtime37, LoadingIndicator;
3458
+ var import_dedupe32, import_icons8, import_LoadingIndicator, import_jsx_runtime39, LoadingIndicator;
3371
3459
  var init_LoadingIndicator = __esm({
3372
3460
  "src/components/LoadingIndicator/LoadingIndicator.tsx"() {
3373
3461
  "use strict";
3374
- import_dedupe31 = __toESM(require("classnames/dedupe"));
3462
+ import_dedupe32 = __toESM(require("classnames/dedupe"));
3375
3463
  import_icons8 = require("@simplybusiness/icons");
3376
3464
  init_Icon2();
3377
3465
  import_LoadingIndicator = require("@simplybusiness/mobius/src/components/LoadingIndicator/LoadingIndicator.css");
3378
- import_jsx_runtime37 = require("react/jsx-runtime");
3466
+ import_jsx_runtime39 = require("react/jsx-runtime");
3379
3467
  LoadingIndicator = ({ ref, ...props }) => {
3380
3468
  const { icon = import_icons8.loading, ...otherProps } = props;
3381
- const classes = (0, import_dedupe31.default)(
3469
+ const classes = (0, import_dedupe32.default)(
3382
3470
  "mobius",
3383
3471
  "mobius-loading-indicator",
3384
3472
  otherProps.className
3385
3473
  );
3386
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Icon, { icon, spin: true, ref, ...otherProps, className: classes });
3474
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon, { icon, spin: true, ref, ...otherProps, className: classes });
3387
3475
  };
3388
3476
  LoadingIndicator.displayName = "LoadingIndicator";
3389
3477
  }
@@ -3398,16 +3486,16 @@ var init_LoadingIndicator2 = __esm({
3398
3486
  });
3399
3487
 
3400
3488
  // src/components/Logo/Logo.tsx
3401
- var import_dedupe32, import_jsx_runtime38, Logo;
3489
+ var import_dedupe33, import_jsx_runtime40, Logo;
3402
3490
  var init_Logo = __esm({
3403
3491
  "src/components/Logo/Logo.tsx"() {
3404
3492
  "use strict";
3405
- import_dedupe32 = __toESM(require("classnames/dedupe"));
3406
- import_jsx_runtime38 = require("react/jsx-runtime");
3493
+ import_dedupe33 = __toESM(require("classnames/dedupe"));
3494
+ import_jsx_runtime40 = require("react/jsx-runtime");
3407
3495
  Logo = ({ ref, ...props }) => {
3408
3496
  const { className, width, height, ...otherProps } = props;
3409
- const classes = (0, import_dedupe32.default)("mobius", "mobius-logo", className);
3410
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3497
+ const classes = (0, import_dedupe33.default)("mobius", "mobius-logo", className);
3498
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3411
3499
  "svg",
3412
3500
  {
3413
3501
  width,
@@ -3417,7 +3505,7 @@ var init_Logo = __esm({
3417
3505
  viewBox: "0 0 144 37",
3418
3506
  ...otherProps,
3419
3507
  children: [
3420
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3508
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3421
3509
  "linearGradient",
3422
3510
  {
3423
3511
  id: "logo-gradient",
@@ -3426,27 +3514,27 @@ var init_Logo = __esm({
3426
3514
  y1: "76.042%",
3427
3515
  y2: "26.973%",
3428
3516
  children: [
3429
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("stop", { stopColor: "#4632D8", offset: "0%" }),
3430
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("stop", { stopColor: "#9084E8", offset: "100%" })
3517
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("stop", { stopColor: "#4632D8", offset: "0%" }),
3518
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("stop", { stopColor: "#9084E8", offset: "100%" })
3431
3519
  ]
3432
3520
  }
3433
3521
  ) }),
3434
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("g", { children: [
3435
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3522
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("g", { children: [
3523
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3436
3524
  "path",
3437
3525
  {
3438
3526
  fill: "#0E0A2B",
3439
3527
  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"
3440
3528
  }
3441
3529
  ),
3442
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3530
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3443
3531
  "path",
3444
3532
  {
3445
3533
  fill: "url(#logo-gradient)",
3446
3534
  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"
3447
3535
  }
3448
3536
  ),
3449
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3537
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3450
3538
  "path",
3451
3539
  {
3452
3540
  fill: "#0E0A2B",
@@ -3471,23 +3559,23 @@ var init_Logo2 = __esm({
3471
3559
  });
3472
3560
 
3473
3561
  // src/components/Modal/Content.tsx
3474
- var import_jsx_runtime39, Content2;
3562
+ var import_jsx_runtime41, Content2;
3475
3563
  var init_Content2 = __esm({
3476
3564
  "src/components/Modal/Content.tsx"() {
3477
3565
  "use strict";
3478
- import_jsx_runtime39 = require("react/jsx-runtime");
3479
- Content2 = ({ ref, children, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { ref, ...otherProps, className: "mobius-modal__content", children });
3566
+ import_jsx_runtime41 = require("react/jsx-runtime");
3567
+ Content2 = ({ ref, children, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { ref, ...otherProps, className: "mobius-modal__content", children });
3480
3568
  Content2.displayName = "Content";
3481
3569
  }
3482
3570
  });
3483
3571
 
3484
3572
  // src/components/Modal/ModalContext.tsx
3485
- var import_react26, ModalContext;
3573
+ var import_react27, ModalContext;
3486
3574
  var init_ModalContext = __esm({
3487
3575
  "src/components/Modal/ModalContext.tsx"() {
3488
3576
  "use strict";
3489
- import_react26 = require("react");
3490
- ModalContext = (0, import_react26.createContext)({
3577
+ import_react27 = require("react");
3578
+ ModalContext = (0, import_react27.createContext)({
3491
3579
  onClose: () => {
3492
3580
  },
3493
3581
  closeLabel: void 0
@@ -3496,21 +3584,21 @@ var init_ModalContext = __esm({
3496
3584
  });
3497
3585
 
3498
3586
  // src/components/Modal/useModal.ts
3499
- var import_react27, useModal;
3587
+ var import_react28, useModal;
3500
3588
  var init_useModal = __esm({
3501
3589
  "src/components/Modal/useModal.ts"() {
3502
3590
  "use strict";
3503
- import_react27 = require("react");
3591
+ import_react28 = require("react");
3504
3592
  init_ModalContext();
3505
3593
  useModal = () => {
3506
- const { onClose, closeLabel } = (0, import_react27.useContext)(ModalContext);
3594
+ const { onClose, closeLabel } = (0, import_react28.useContext)(ModalContext);
3507
3595
  return { onClose, closeLabel };
3508
3596
  };
3509
3597
  }
3510
3598
  });
3511
3599
 
3512
3600
  // src/components/Modal/Header.tsx
3513
- var import_icons9, import_jsx_runtime40, Header2;
3601
+ var import_icons9, import_jsx_runtime42, Header2;
3514
3602
  var init_Header2 = __esm({
3515
3603
  "src/components/Modal/Header.tsx"() {
3516
3604
  "use strict";
@@ -3518,12 +3606,12 @@ var init_Header2 = __esm({
3518
3606
  init_Button2();
3519
3607
  init_Icon2();
3520
3608
  init_useModal();
3521
- import_jsx_runtime40 = require("react/jsx-runtime");
3609
+ import_jsx_runtime42 = require("react/jsx-runtime");
3522
3610
  Header2 = ({ ref, children, ...otherProps }) => {
3523
3611
  const { onClose, closeLabel } = useModal();
3524
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("header", { ref, ...otherProps, className: "mobius-modal__header", children: [
3612
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("header", { ref, ...otherProps, className: "mobius-modal__header", children: [
3525
3613
  children,
3526
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3614
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
3527
3615
  Button,
3528
3616
  {
3529
3617
  "aria-label": "Close",
@@ -3531,7 +3619,7 @@ var init_Header2 = __esm({
3531
3619
  onPress: onClose,
3532
3620
  className: "mobius-modal__close",
3533
3621
  children: [
3534
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon, { icon: import_icons9.cross }),
3622
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon, { icon: import_icons9.cross }),
3535
3623
  " ",
3536
3624
  closeLabel
3537
3625
  ]
@@ -3544,19 +3632,19 @@ var init_Header2 = __esm({
3544
3632
  });
3545
3633
 
3546
3634
  // src/components/Modal/Modal.tsx
3547
- var import_dedupe33, import_react28, import_Modal, import_jsx_runtime41, TRANSITION_CSS_VARIABLE2, Modal;
3635
+ var import_dedupe34, import_react29, import_Modal, import_jsx_runtime43, TRANSITION_CSS_VARIABLE2, Modal;
3548
3636
  var init_Modal = __esm({
3549
3637
  "src/components/Modal/Modal.tsx"() {
3550
3638
  "use strict";
3551
3639
  "use client";
3552
- import_dedupe33 = __toESM(require("classnames/dedupe"));
3553
- import_react28 = require("react");
3640
+ import_dedupe34 = __toESM(require("classnames/dedupe"));
3641
+ import_react29 = require("react");
3554
3642
  init_hooks();
3555
3643
  init_utils();
3556
3644
  init_polyfill_tests();
3557
3645
  init_ModalContext();
3558
3646
  import_Modal = require("@simplybusiness/mobius/src/components/Modal/Modal.css");
3559
- import_jsx_runtime41 = require("react/jsx-runtime");
3647
+ import_jsx_runtime43 = require("react/jsx-runtime");
3560
3648
  TRANSITION_CSS_VARIABLE2 = "--modal-transition-duration";
3561
3649
  Modal = ({ ref, ...props }) => {
3562
3650
  const {
@@ -3570,11 +3658,11 @@ var init_Modal = __esm({
3570
3658
  animation,
3571
3659
  ...rest
3572
3660
  } = props;
3573
- const [shouldTransition, setShouldTransition] = (0, import_react28.useState)(false);
3574
- (0, import_react28.useEffect)(() => {
3661
+ const [shouldTransition, setShouldTransition] = (0, import_react29.useState)(false);
3662
+ (0, import_react29.useEffect)(() => {
3575
3663
  setShouldTransition(supportsDialog());
3576
3664
  }, []);
3577
- const dialogRef = (0, import_react28.useRef)(null);
3665
+ const dialogRef = (0, import_react29.useRef)(null);
3578
3666
  const { close } = useDialog({
3579
3667
  ref: dialogRef,
3580
3668
  isOpen,
@@ -3585,7 +3673,7 @@ var init_Modal = __esm({
3585
3673
  CSSVariable: TRANSITION_CSS_VARIABLE2
3586
3674
  }
3587
3675
  });
3588
- const modalClasses = (0, import_dedupe33.default)(
3676
+ const modalClasses = (0, import_dedupe34.default)(
3589
3677
  "mobius",
3590
3678
  "mobius-modal",
3591
3679
  {
@@ -3598,21 +3686,21 @@ var init_Modal = __esm({
3598
3686
  },
3599
3687
  className
3600
3688
  );
3601
- const contextValue = (0, import_react28.useMemo)(
3689
+ const contextValue = (0, import_react29.useMemo)(
3602
3690
  () => ({
3603
3691
  onClose: close,
3604
3692
  closeLabel
3605
3693
  }),
3606
3694
  [close, closeLabel]
3607
3695
  );
3608
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3696
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3609
3697
  "dialog",
3610
3698
  {
3611
3699
  ref: mergeRefs([dialogRef, ref]),
3612
3700
  onCancel: close,
3613
3701
  className: modalClasses,
3614
3702
  ...rest,
3615
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ModalContext.Provider, { value: contextValue, children })
3703
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ModalContext.Provider, { value: contextValue, children })
3616
3704
  }
3617
3705
  );
3618
3706
  };
@@ -3637,16 +3725,16 @@ var init_Modal2 = __esm({
3637
3725
  });
3638
3726
 
3639
3727
  // src/components/NumberField/NumberField.tsx
3640
- var import_dedupe34, import_react29, import_NumberField, import_jsx_runtime42, NumberField;
3728
+ var import_dedupe35, import_react30, import_NumberField, import_jsx_runtime44, NumberField;
3641
3729
  var init_NumberField = __esm({
3642
3730
  "src/components/NumberField/NumberField.tsx"() {
3643
3731
  "use strict";
3644
3732
  "use client";
3645
- import_dedupe34 = __toESM(require("classnames/dedupe"));
3646
- import_react29 = require("react");
3733
+ import_dedupe35 = __toESM(require("classnames/dedupe"));
3734
+ import_react30 = require("react");
3647
3735
  init_TextField2();
3648
3736
  import_NumberField = require("@simplybusiness/mobius/src/components/NumberField/NumberField.css");
3649
- import_jsx_runtime42 = require("react/jsx-runtime");
3737
+ import_jsx_runtime44 = require("react/jsx-runtime");
3650
3738
  NumberField = ({ ref, ...props }) => {
3651
3739
  const {
3652
3740
  minValue,
@@ -3662,15 +3750,15 @@ var init_NumberField = __esm({
3662
3750
  onBlur: customOnBlur,
3663
3751
  ...rest
3664
3752
  } = otherProps;
3665
- const focusedInputRef = (0, import_react29.useRef)(null);
3666
- const wheelHandler = (0, import_react29.useCallback)((ev) => ev.preventDefault(), []);
3667
- (0, import_react29.useEffect)(() => {
3753
+ const focusedInputRef = (0, import_react30.useRef)(null);
3754
+ const wheelHandler = (0, import_react30.useCallback)((ev) => ev.preventDefault(), []);
3755
+ (0, import_react30.useEffect)(() => {
3668
3756
  return () => {
3669
3757
  focusedInputRef.current?.removeEventListener("wheel", wheelHandler);
3670
3758
  focusedInputRef.current = null;
3671
3759
  };
3672
3760
  }, [wheelHandler]);
3673
- const containerClasses = (0, import_dedupe34.default)("mobius-number-field", className, {
3761
+ const containerClasses = (0, import_dedupe35.default)("mobius-number-field", className, {
3674
3762
  "--hide-spin-buttons": hideSpinButtons
3675
3763
  });
3676
3764
  const handleBeforeInput = (event) => {
@@ -3714,7 +3802,7 @@ var init_NumberField = __esm({
3714
3802
  },
3715
3803
  onBlur: (e) => handleBlur(e)
3716
3804
  };
3717
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3805
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3718
3806
  TextField,
3719
3807
  {
3720
3808
  ...forwardedProps,
@@ -3742,18 +3830,18 @@ var init_NumberField2 = __esm({
3742
3830
  });
3743
3831
 
3744
3832
  // src/components/Option/Option.tsx
3745
- var import_jsx_runtime43, Option2;
3833
+ var import_jsx_runtime45, Option2;
3746
3834
  var init_Option2 = __esm({
3747
3835
  "src/components/Option/Option.tsx"() {
3748
3836
  "use strict";
3749
- import_jsx_runtime43 = require("react/jsx-runtime");
3837
+ import_jsx_runtime45 = require("react/jsx-runtime");
3750
3838
  Option2 = ({ ref, ...props }) => {
3751
3839
  const { isDisabled, ...rest } = props;
3752
3840
  const mappedProps = {
3753
3841
  ...rest,
3754
3842
  disabled: isDisabled
3755
3843
  };
3756
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("option", { ...mappedProps, ref });
3844
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("option", { ...mappedProps, ref });
3757
3845
  };
3758
3846
  Option2.displayName = "Option";
3759
3847
  }
@@ -3768,17 +3856,17 @@ var init_Option3 = __esm({
3768
3856
  });
3769
3857
 
3770
3858
  // src/components/PasswordField/ShowHideButton.tsx
3771
- var import_icons10, import_jsx_runtime44, ShowHideButton;
3859
+ var import_icons10, import_jsx_runtime46, ShowHideButton;
3772
3860
  var init_ShowHideButton = __esm({
3773
3861
  "src/components/PasswordField/ShowHideButton.tsx"() {
3774
3862
  "use strict";
3775
3863
  import_icons10 = require("@simplybusiness/icons");
3776
3864
  init_src();
3777
- import_jsx_runtime44 = require("react/jsx-runtime");
3865
+ import_jsx_runtime46 = require("react/jsx-runtime");
3778
3866
  ShowHideButton = ({
3779
3867
  show = false,
3780
3868
  onClick
3781
- }) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3869
+ }) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
3782
3870
  "button",
3783
3871
  {
3784
3872
  className: "mobius-password-field__show-button",
@@ -3789,35 +3877,35 @@ var init_ShowHideButton = __esm({
3789
3877
  },
3790
3878
  "aria-label": `${show ? "Hide" : "Show"} password`,
3791
3879
  "data-testid": "show-hide-button",
3792
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon, { icon: show ? import_icons10.eyeSlash : import_icons10.eye, "aria-hidden": "true" })
3880
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Icon, { icon: show ? import_icons10.eyeSlash : import_icons10.eye, "aria-hidden": "true" })
3793
3881
  }
3794
3882
  );
3795
3883
  }
3796
3884
  });
3797
3885
 
3798
3886
  // src/components/PasswordField/PasswordField.tsx
3799
- var import_dedupe35, import_react30, import_PasswordField, import_jsx_runtime45, PasswordField;
3887
+ var import_dedupe36, import_react31, import_PasswordField, import_jsx_runtime47, PasswordField;
3800
3888
  var init_PasswordField = __esm({
3801
3889
  "src/components/PasswordField/PasswordField.tsx"() {
3802
3890
  "use strict";
3803
3891
  "use client";
3804
- import_dedupe35 = __toESM(require("classnames/dedupe"));
3805
- import_react30 = require("react");
3892
+ import_dedupe36 = __toESM(require("classnames/dedupe"));
3893
+ import_react31 = require("react");
3806
3894
  init_mergeRefs();
3807
3895
  init_TextField2();
3808
3896
  init_ShowHideButton();
3809
3897
  import_PasswordField = require("@simplybusiness/mobius/src/components/PasswordField/PasswordField.css");
3810
- import_jsx_runtime45 = require("react/jsx-runtime");
3898
+ import_jsx_runtime47 = require("react/jsx-runtime");
3811
3899
  PasswordField = ({
3812
3900
  ref,
3813
3901
  className,
3814
3902
  autoComplete = "current-password",
3815
3903
  ...props
3816
3904
  }) => {
3817
- const [show, setShow] = (0, import_react30.useState)(false);
3905
+ const [show, setShow] = (0, import_react31.useState)(false);
3818
3906
  const type = show ? "text" : "password";
3819
- const classes = (0, import_dedupe35.default)("mobius-password-field", className);
3820
- const localRef = (0, import_react30.useRef)(null);
3907
+ const classes = (0, import_dedupe36.default)("mobius-password-field", className);
3908
+ const localRef = (0, import_react31.useRef)(null);
3821
3909
  const handleShowHideButtonClick = () => {
3822
3910
  const selectionStart = localRef.current?.selectionStart;
3823
3911
  const selectionEnd = localRef.current?.selectionEnd;
@@ -3829,7 +3917,7 @@ var init_PasswordField = __esm({
3829
3917
  }
3830
3918
  });
3831
3919
  };
3832
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
3920
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3833
3921
  TextField,
3834
3922
  {
3835
3923
  ref: mergeRefs([localRef, ref]),
@@ -3837,7 +3925,7 @@ var init_PasswordField = __esm({
3837
3925
  ...props,
3838
3926
  autoComplete,
3839
3927
  type,
3840
- suffixInside: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ShowHideButton, { onClick: handleShowHideButtonClick, show })
3928
+ suffixInside: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ShowHideButton, { onClick: handleShowHideButtonClick, show })
3841
3929
  }
3842
3930
  );
3843
3931
  };
@@ -3854,17 +3942,17 @@ var init_PasswordField2 = __esm({
3854
3942
  });
3855
3943
 
3856
3944
  // src/components/Popover/Popover.tsx
3857
- var import_react31, import_icons11, import_dedupe36, import_react32, import_mobius_hooks6, import_Popover, import_jsx_runtime46;
3945
+ var import_react32, import_icons11, import_dedupe37, import_react33, import_mobius_hooks6, import_Popover, import_jsx_runtime48;
3858
3946
  var init_Popover = __esm({
3859
3947
  "src/components/Popover/Popover.tsx"() {
3860
3948
  "use strict";
3861
- import_react31 = require("@floating-ui/react");
3949
+ import_react32 = require("@floating-ui/react");
3862
3950
  import_icons11 = require("@simplybusiness/icons");
3863
- import_dedupe36 = __toESM(require("classnames/dedupe"));
3864
- import_react32 = require("react");
3951
+ import_dedupe37 = __toESM(require("classnames/dedupe"));
3952
+ import_react33 = require("react");
3865
3953
  import_mobius_hooks6 = require("@simplybusiness/mobius-hooks");
3866
3954
  import_Popover = require("@simplybusiness/mobius/src/components/Popover/Popover.css");
3867
- import_jsx_runtime46 = require("react/jsx-runtime");
3955
+ import_jsx_runtime48 = require("react/jsx-runtime");
3868
3956
  }
3869
3957
  });
3870
3958
 
@@ -3888,17 +3976,17 @@ function warnAboutInvalidValues(value, minValue, maxValue) {
3888
3976
  console.warn("Progress value is greater than maxValue");
3889
3977
  }
3890
3978
  }
3891
- var import_dedupe37, import_react33, import_Progress, import_jsx_runtime47, sanitizedValue, getLabelComponent, DEFAULT_VALUE, DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, Progress;
3979
+ var import_dedupe38, import_react34, import_Progress, import_jsx_runtime49, sanitizedValue, getLabelComponent, DEFAULT_VALUE, DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, Progress;
3892
3980
  var init_Progress = __esm({
3893
3981
  "src/components/Progress/Progress.tsx"() {
3894
3982
  "use strict";
3895
3983
  "use client";
3896
- import_dedupe37 = __toESM(require("classnames/dedupe"));
3897
- import_react33 = require("react");
3984
+ import_dedupe38 = __toESM(require("classnames/dedupe"));
3985
+ import_react34 = require("react");
3898
3986
  init_Label2();
3899
3987
  init_VisuallyHidden2();
3900
3988
  import_Progress = require("@simplybusiness/mobius/src/components/Progress/Progress.css");
3901
- import_jsx_runtime47 = require("react/jsx-runtime");
3989
+ import_jsx_runtime49 = require("react/jsx-runtime");
3902
3990
  sanitizedValue = (value, defaultValue) => {
3903
3991
  if (value === void 0 || Number.isNaN(value)) {
3904
3992
  return defaultValue;
@@ -3907,7 +3995,7 @@ var init_Progress = __esm({
3907
3995
  };
3908
3996
  getLabelComponent = (label, progressLabelId, showLabel) => {
3909
3997
  if (showLabel) {
3910
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3998
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
3911
3999
  Label,
3912
4000
  {
3913
4001
  id: progressLabelId,
@@ -3917,7 +4005,7 @@ var init_Progress = __esm({
3917
4005
  }
3918
4006
  );
3919
4007
  }
3920
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4008
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
3921
4009
  Label,
3922
4010
  {
3923
4011
  id: progressLabelId,
@@ -3931,8 +4019,8 @@ var init_Progress = __esm({
3931
4019
  DEFAULT_MIN_VALUE = 0;
3932
4020
  DEFAULT_MAX_VALUE = 100;
3933
4021
  Progress = ({ ref, ...props }) => {
3934
- const progressId = (0, import_react33.useId)();
3935
- const progressLabelId = (0, import_react33.useId)();
4022
+ const progressId = (0, import_react34.useId)();
4023
+ const progressLabelId = (0, import_react34.useId)();
3936
4024
  const {
3937
4025
  id,
3938
4026
  label,
@@ -3957,7 +4045,7 @@ var init_Progress = __esm({
3957
4045
  100
3958
4046
  );
3959
4047
  const barWidth = `${percentage}%`;
3960
- const classes = (0, import_dedupe37.default)("mobius", "mobius-progress", className, {
4048
+ const classes = (0, import_dedupe38.default)("mobius", "mobius-progress", className, {
3961
4049
  "--is-primary": variant === "primary",
3962
4050
  "--is-secondary": variant === "secondary"
3963
4051
  });
@@ -3967,7 +4055,7 @@ var init_Progress = __esm({
3967
4055
  progressBarProps["aria-valuenow"] = value.toString();
3968
4056
  progressBarProps["aria-valuetext"] = valueFormatter instanceof Function ? valueFormatter(value, minValue, maxValue) : barWidth;
3969
4057
  const labelComponent = getLabelComponent(label, progressLabelId, showLabel);
3970
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
4058
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
3971
4059
  "div",
3972
4060
  {
3973
4061
  id: id || progressId,
@@ -3978,8 +4066,8 @@ var init_Progress = __esm({
3978
4066
  "aria-labelledby": progressLabelId,
3979
4067
  children: [
3980
4068
  labelComponent,
3981
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "mobius-progress__track", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "mobius-progress__bar", style: { width: barWidth } }) }),
3982
- showValueLabel && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Label, { "data-testid": "value-label", elementType: "span", children: progressBarProps["aria-valuetext"] })
4069
+ /* @__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 } }) }),
4070
+ showValueLabel && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Label, { "data-testid": "value-label", elementType: "span", children: progressBarProps["aria-valuetext"] })
3983
4071
  ]
3984
4072
  }
3985
4073
  );
@@ -3997,17 +4085,17 @@ var init_Progress2 = __esm({
3997
4085
  });
3998
4086
 
3999
4087
  // src/components/Radio/Radio.tsx
4000
- var import_dedupe38, import_react34, import_Radio, import_jsx_runtime48, Radio;
4088
+ var import_dedupe39, import_react35, import_Radio, import_jsx_runtime50, Radio;
4001
4089
  var init_Radio = __esm({
4002
4090
  "src/components/Radio/Radio.tsx"() {
4003
4091
  "use strict";
4004
4092
  "use client";
4005
- import_dedupe38 = __toESM(require("classnames/dedupe"));
4006
- import_react34 = require("react");
4093
+ import_dedupe39 = __toESM(require("classnames/dedupe"));
4094
+ import_react35 = require("react");
4007
4095
  init_ErrorMessage2();
4008
4096
  init_Label2();
4009
4097
  import_Radio = require("@simplybusiness/mobius/src/components/Radio/Radio.css");
4010
- import_jsx_runtime48 = require("react/jsx-runtime");
4098
+ import_jsx_runtime50 = require("react/jsx-runtime");
4011
4099
  Radio = ({ ref, ...props }) => {
4012
4100
  const {
4013
4101
  children,
@@ -4031,19 +4119,19 @@ var init_Radio = __esm({
4031
4119
  const isMultiline = label && children;
4032
4120
  const isControlled = selected !== void 0;
4033
4121
  const isChecked = isControlled ? selected === value : defaultChecked;
4034
- const contentRef = (0, import_react34.useRef)(null);
4035
- const prevOverflowRef = (0, import_react34.useRef)({
4122
+ const contentRef = (0, import_react35.useRef)(null);
4123
+ const prevOverflowRef = (0, import_react35.useRef)({
4036
4124
  vertical: false,
4037
4125
  horizontal: false
4038
4126
  });
4039
- const hasIconFirst = (0, import_react34.useMemo)(() => {
4040
- if (!children || import_react34.Children.count(children) === 0) return false;
4041
- const firstChild = import_react34.Children.toArray(children)[0];
4042
- if (!(0, import_react34.isValidElement)(firstChild)) return false;
4127
+ const hasIconFirst = (0, import_react35.useMemo)(() => {
4128
+ if (!children || import_react35.Children.count(children) === 0) return false;
4129
+ const firstChild = import_react35.Children.toArray(children)[0];
4130
+ if (!(0, import_react35.isValidElement)(firstChild)) return false;
4043
4131
  const props2 = firstChild.props;
4044
4132
  return "icon" in props2 && props2.icon !== void 0;
4045
4133
  }, [children]);
4046
- (0, import_react34.useLayoutEffect)(() => {
4134
+ (0, import_react35.useLayoutEffect)(() => {
4047
4135
  if (!contentRef.current || !onOverflow) return;
4048
4136
  if (orientation === "vertical") {
4049
4137
  return;
@@ -4072,13 +4160,13 @@ var init_Radio = __esm({
4072
4160
  "--is-multiline": !!isMultiline,
4073
4161
  "--is-required": isRequired
4074
4162
  };
4075
- const containerClasses = (0, import_dedupe38.default)(
4163
+ const containerClasses = (0, import_dedupe39.default)(
4076
4164
  "mobius-radio__label",
4077
4165
  radioClasses,
4078
4166
  className,
4079
4167
  { "--has-icon-first": hasIconFirst }
4080
4168
  );
4081
- const inputClasses = (0, import_dedupe38.default)("mobius-radio__input", radioClasses);
4169
+ const inputClasses = (0, import_dedupe39.default)("mobius-radio__input", radioClasses);
4082
4170
  const { "aria-describedby": _ariaDescribedBy, ...rest } = otherProps;
4083
4171
  const handleChange = (event) => {
4084
4172
  if (setSelected) {
@@ -4092,9 +4180,9 @@ var init_Radio = __esm({
4092
4180
  onChange(adaptedEvent);
4093
4181
  }
4094
4182
  };
4095
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
4096
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Label, { className: containerClasses, children: [
4097
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4183
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
4184
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Label, { className: containerClasses, children: [
4185
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4098
4186
  "input",
4099
4187
  {
4100
4188
  "aria-describedby": otherProps["aria-describedby"],
@@ -4111,12 +4199,12 @@ var init_Radio = __esm({
4111
4199
  ...rest
4112
4200
  }
4113
4201
  ),
4114
- isMultiline ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { ref: contentRef, className: "mobius-radio__content--multiline", children: [
4115
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "mobius-radio__content-first-line", children: label }),
4116
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "mobius-radio__extra-content", children })
4117
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { ref: contentRef, className: "mobius-radio__content", children: label || children })
4202
+ isMultiline ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { ref: contentRef, className: "mobius-radio__content--multiline", children: [
4203
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "mobius-radio__content-first-line", children: label }),
4204
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "mobius-radio__extra-content", children })
4205
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { ref: contentRef, className: "mobius-radio__content", children: label || children })
4118
4206
  ] }),
4119
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ErrorMessage, { errorMessage })
4207
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ErrorMessage, { errorMessage })
4120
4208
  ] });
4121
4209
  };
4122
4210
  Radio.displayName = "Radio";
@@ -4124,19 +4212,19 @@ var init_Radio = __esm({
4124
4212
  });
4125
4213
 
4126
4214
  // src/components/Radio/RadioGroup.tsx
4127
- var import_dedupe39, import_react35, import_jsx_runtime49, getDefaultVal, RadioGroup;
4215
+ var import_dedupe40, import_react36, import_jsx_runtime51, getDefaultVal, RadioGroup;
4128
4216
  var init_RadioGroup = __esm({
4129
4217
  "src/components/Radio/RadioGroup.tsx"() {
4130
4218
  "use strict";
4131
4219
  "use client";
4132
- import_dedupe39 = __toESM(require("classnames/dedupe"));
4133
- import_react35 = require("react");
4220
+ import_dedupe40 = __toESM(require("classnames/dedupe"));
4221
+ import_react36 = require("react");
4134
4222
  init_hooks();
4135
4223
  init_spaceDelimitedList();
4136
4224
  init_ErrorMessage2();
4137
4225
  init_Label2();
4138
4226
  init_Stack2();
4139
- import_jsx_runtime49 = require("react/jsx-runtime");
4227
+ import_jsx_runtime51 = require("react/jsx-runtime");
4140
4228
  getDefaultVal = (children, defaultValue) => {
4141
4229
  if (Array.isArray(children) && defaultValue) {
4142
4230
  const option = children?.find((item) => item.props.value === defaultValue);
@@ -4164,15 +4252,15 @@ var init_RadioGroup = __esm({
4164
4252
  ...rest
4165
4253
  } = props;
4166
4254
  const defaultSelected = getDefaultVal(children, value || defaultValue);
4167
- const [selected, setSelected] = (0, import_react35.useState)(defaultSelected);
4168
- const overflowsRef = (0, import_react35.useRef)({});
4169
- const [hasOverflow, setHasOverflow] = (0, import_react35.useState)(false);
4170
- (0, import_react35.useEffect)(() => {
4255
+ const [selected, setSelected] = (0, import_react36.useState)(defaultSelected);
4256
+ const overflowsRef = (0, import_react36.useRef)({});
4257
+ const [hasOverflow, setHasOverflow] = (0, import_react36.useState)(false);
4258
+ (0, import_react36.useEffect)(() => {
4171
4259
  if (value !== void 0) {
4172
4260
  setSelected(value);
4173
4261
  }
4174
4262
  }, [value]);
4175
- const handleOverflow = (0, import_react35.useCallback)(
4263
+ const handleOverflow = (0, import_react36.useCallback)(
4176
4264
  (radioValue, overflow) => {
4177
4265
  overflowsRef.current = {
4178
4266
  ...overflowsRef.current,
@@ -4196,26 +4284,26 @@ var init_RadioGroup = __esm({
4196
4284
  [`--is-${effectiveOrientation}`]: true,
4197
4285
  [className || ""]: true
4198
4286
  };
4199
- const radioGroupClasses = (0, import_dedupe39.default)(
4287
+ const radioGroupClasses = (0, import_dedupe40.default)(
4200
4288
  "mobius",
4201
4289
  "mobius-radio-group",
4202
4290
  radioClasses,
4203
4291
  validationClasses
4204
4292
  );
4205
- const radioWrapperClasses = (0, import_dedupe39.default)("mobius-radio__wrapper", {
4293
+ const radioWrapperClasses = (0, import_dedupe40.default)("mobius-radio__wrapper", {
4206
4294
  [`--is-${effectiveOrientation}`]: true
4207
4295
  });
4208
- const labelClasses = (0, import_dedupe39.default)(radioClasses, validationClasses);
4209
- const errorMessageId = (0, import_react35.useId)();
4210
- const defaultNameAttrId = (0, import_react35.useId)();
4296
+ const labelClasses = (0, import_dedupe40.default)(radioClasses, validationClasses);
4297
+ const errorMessageId = (0, import_react36.useId)();
4298
+ const defaultNameAttrId = (0, import_react36.useId)();
4211
4299
  const nameAttribute = name || defaultNameAttrId;
4212
4300
  const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
4213
4301
  const describedBy = spaceDelimitedList([
4214
4302
  shouldErrorMessageShow,
4215
4303
  props["aria-describedby"]
4216
4304
  ]);
4217
- const labelId = (0, import_react35.useId)();
4218
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4305
+ const labelId = (0, import_react36.useId)();
4306
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4219
4307
  "div",
4220
4308
  {
4221
4309
  ...rest,
@@ -4231,12 +4319,12 @@ var init_RadioGroup = __esm({
4231
4319
  ref,
4232
4320
  className: radioGroupClasses,
4233
4321
  role: "radiogroup",
4234
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Stack, { gap: "xs", children: [
4235
- label && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Label, { htmlFor: name, id: labelId, className: labelClasses, children: label }),
4236
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: radioWrapperClasses, children: import_react35.Children.map(children, (child) => {
4237
- if ((0, import_react35.isValidElement)(child)) {
4322
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Stack, { gap: "xs", children: [
4323
+ label && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Label, { htmlFor: name, id: labelId, className: labelClasses, children: label }),
4324
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: radioWrapperClasses, children: import_react36.Children.map(children, (child) => {
4325
+ if ((0, import_react36.isValidElement)(child)) {
4238
4326
  const childValue = child.props.value;
4239
- return (0, import_react35.cloneElement)(
4327
+ return (0, import_react36.cloneElement)(
4240
4328
  child,
4241
4329
  {
4242
4330
  orientation: effectiveOrientation,
@@ -4254,7 +4342,7 @@ var init_RadioGroup = __esm({
4254
4342
  }
4255
4343
  return child;
4256
4344
  }) }),
4257
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
4345
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
4258
4346
  ] })
4259
4347
  }
4260
4348
  );
@@ -4273,47 +4361,47 @@ var init_Radio2 = __esm({
4273
4361
  });
4274
4362
 
4275
4363
  // src/components/Segment/SegmentGroup.tsx
4276
- var import_dedupe40, import_jsx_runtime50, SegmentGroup;
4364
+ var import_dedupe41, import_jsx_runtime52, SegmentGroup;
4277
4365
  var init_SegmentGroup = __esm({
4278
4366
  "src/components/Segment/SegmentGroup.tsx"() {
4279
4367
  "use strict";
4280
- import_dedupe40 = __toESM(require("classnames/dedupe"));
4281
- import_jsx_runtime50 = require("react/jsx-runtime");
4368
+ import_dedupe41 = __toESM(require("classnames/dedupe"));
4369
+ import_jsx_runtime52 = require("react/jsx-runtime");
4282
4370
  SegmentGroup = (props) => {
4283
4371
  const { children, horizontal, gap, className, ...rest } = props;
4284
4372
  const gapClass = gap ? `gap-${gap}` : "";
4285
- const classes = (0, import_dedupe40.default)(
4373
+ const classes = (0, import_dedupe41.default)(
4286
4374
  "mobius",
4287
4375
  "mobius-segment-group",
4288
4376
  className,
4289
4377
  { "--is-horizontal": horizontal },
4290
4378
  gapClass
4291
4379
  );
4292
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: classes, ...rest, children });
4380
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: classes, ...rest, children });
4293
4381
  };
4294
4382
  SegmentGroup.displayName = "SegmentGroup";
4295
4383
  }
4296
4384
  });
4297
4385
 
4298
4386
  // src/components/Segment/Segment.tsx
4299
- var import_dedupe41, import_Segment, import_jsx_runtime51, Segment;
4387
+ var import_dedupe42, import_Segment, import_jsx_runtime53, Segment;
4300
4388
  var init_Segment = __esm({
4301
4389
  "src/components/Segment/Segment.tsx"() {
4302
4390
  "use strict";
4303
- import_dedupe41 = __toESM(require("classnames/dedupe"));
4391
+ import_dedupe42 = __toESM(require("classnames/dedupe"));
4304
4392
  import_Segment = require("@simplybusiness/mobius/src/components/Segment/Segment.css");
4305
- import_jsx_runtime51 = require("react/jsx-runtime");
4393
+ import_jsx_runtime53 = require("react/jsx-runtime");
4306
4394
  Segment = (props) => {
4307
4395
  const { heading, children, colour, inverted, className, ...rest } = props;
4308
- const classes = (0, import_dedupe41.default)(
4396
+ const classes = (0, import_dedupe42.default)(
4309
4397
  "mobius",
4310
4398
  "mobius-segment",
4311
4399
  colour,
4312
4400
  { inverted },
4313
4401
  className
4314
4402
  );
4315
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: classes, ...rest, children: [
4316
- heading && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "mobius-segment__heading", children: heading }),
4403
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: classes, ...rest, children: [
4404
+ heading && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "mobius-segment__heading", children: heading }),
4317
4405
  children
4318
4406
  ] });
4319
4407
  };
@@ -4331,14 +4419,14 @@ var init_Segment2 = __esm({
4331
4419
  });
4332
4420
 
4333
4421
  // src/components/Select/Select.tsx
4334
- var import_icons12, import_dedupe42, import_react36, import_Select, import_jsx_runtime52, Select;
4422
+ var import_icons12, import_dedupe43, import_react37, import_Select, import_jsx_runtime54, Select;
4335
4423
  var init_Select = __esm({
4336
4424
  "src/components/Select/Select.tsx"() {
4337
4425
  "use strict";
4338
4426
  "use client";
4339
4427
  import_icons12 = require("@simplybusiness/icons");
4340
- import_dedupe42 = __toESM(require("classnames/dedupe"));
4341
- import_react36 = require("react");
4428
+ import_dedupe43 = __toESM(require("classnames/dedupe"));
4429
+ import_react37 = require("react");
4342
4430
  init_hooks();
4343
4431
  init_useLabel2();
4344
4432
  init_spaceDelimitedList();
@@ -4347,7 +4435,7 @@ var init_Select = __esm({
4347
4435
  init_Label2();
4348
4436
  init_Stack2();
4349
4437
  import_Select = require("@simplybusiness/mobius/src/components/Select/Select.css");
4350
- import_jsx_runtime52 = require("react/jsx-runtime");
4438
+ import_jsx_runtime54 = require("react/jsx-runtime");
4351
4439
  Select = ({ ref, ...props }) => {
4352
4440
  const {
4353
4441
  label,
@@ -4368,24 +4456,24 @@ var init_Select = __esm({
4368
4456
  "--is-required": typeof isRequired === "boolean" && isRequired,
4369
4457
  "--is-optional": typeof isRequired === "boolean" && !isRequired
4370
4458
  };
4371
- const sharedClasses = (0, import_dedupe42.default)(validationClasses, stateClasses);
4372
- const wrapperClasses = (0, import_dedupe42.default)(
4459
+ const sharedClasses = (0, import_dedupe43.default)(validationClasses, stateClasses);
4460
+ const wrapperClasses = (0, import_dedupe43.default)(
4373
4461
  "mobius-select__wrapper",
4374
4462
  sharedClasses,
4375
4463
  otherProps.className
4376
4464
  );
4377
- const selectClasses = (0, import_dedupe42.default)(
4465
+ const selectClasses = (0, import_dedupe43.default)(
4378
4466
  "mobius-select",
4379
4467
  sharedClasses,
4380
4468
  otherProps.className
4381
4469
  );
4382
- const labelClasses = (0, import_dedupe42.default)(
4470
+ const labelClasses = (0, import_dedupe43.default)(
4383
4471
  "mobius-label",
4384
4472
  sharedClasses,
4385
4473
  otherProps.className
4386
4474
  );
4387
- const iconClasses = (0, import_dedupe42.default)("mobius-select__icon", sharedClasses);
4388
- const errorMessageId = (0, import_react36.useId)();
4475
+ const iconClasses = (0, import_dedupe43.default)("mobius-select__icon", sharedClasses);
4476
+ const errorMessageId = (0, import_react37.useId)();
4389
4477
  const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
4390
4478
  const describedBy = spaceDelimitedList([
4391
4479
  shouldErrorMessageShow,
@@ -4396,10 +4484,10 @@ var init_Select = __esm({
4396
4484
  onChange(e);
4397
4485
  }
4398
4486
  };
4399
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Stack, { className: "mobius mobius-select__outer", gap: "xs", children: [
4400
- label && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Label, { ...labelProps, className: labelClasses, children: label }),
4401
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: wrapperClasses, children: [
4402
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4487
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Stack, { className: "mobius mobius-select__outer", gap: "xs", children: [
4488
+ label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Label, { ...labelProps, className: labelClasses, children: label }),
4489
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: wrapperClasses, children: [
4490
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
4403
4491
  "select",
4404
4492
  {
4405
4493
  ...otherProps,
@@ -4415,9 +4503,9 @@ var init_Select = __esm({
4415
4503
  onChange: handleChange
4416
4504
  }
4417
4505
  ),
4418
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: iconClasses, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { icon: import_icons12.chevronDown }) })
4506
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: iconClasses, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { icon: import_icons12.chevronDown }) })
4419
4507
  ] }),
4420
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
4508
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ErrorMessage, { id: errorMessageId, errorMessage })
4421
4509
  ] });
4422
4510
  };
4423
4511
  Select.displayName = "Select";
@@ -4433,15 +4521,15 @@ var init_Select2 = __esm({
4433
4521
  });
4434
4522
 
4435
4523
  // src/components/Slider/Slider.tsx
4436
- var import_dedupe43, import_react37, import_Slider, import_jsx_runtime53;
4524
+ var import_dedupe44, import_react38, import_Slider, import_jsx_runtime55;
4437
4525
  var init_Slider = __esm({
4438
4526
  "src/components/Slider/Slider.tsx"() {
4439
4527
  "use strict";
4440
4528
  "use client";
4441
- import_dedupe43 = __toESM(require("classnames/dedupe"));
4442
- import_react37 = require("react");
4529
+ import_dedupe44 = __toESM(require("classnames/dedupe"));
4530
+ import_react38 = require("react");
4443
4531
  import_Slider = require("@simplybusiness/mobius/src/components/Slider/Slider.css");
4444
- import_jsx_runtime53 = require("react/jsx-runtime");
4532
+ import_jsx_runtime55 = require("react/jsx-runtime");
4445
4533
  }
4446
4534
  });
4447
4535
 
@@ -4454,19 +4542,19 @@ var init_Slider2 = __esm({
4454
4542
  });
4455
4543
 
4456
4544
  // src/components/SVG/SVG.tsx
4457
- var import_react38, import_dedupe44, import_jsx_runtime54, SVG;
4545
+ var import_react39, import_dedupe45, import_jsx_runtime56, SVG;
4458
4546
  var init_SVG = __esm({
4459
4547
  "src/components/SVG/SVG.tsx"() {
4460
4548
  "use strict";
4461
- import_react38 = require("react");
4462
- import_dedupe44 = __toESM(require("classnames/dedupe"));
4463
- import_jsx_runtime54 = require("react/jsx-runtime");
4549
+ import_react39 = require("react");
4550
+ import_dedupe45 = __toESM(require("classnames/dedupe"));
4551
+ import_jsx_runtime56 = require("react/jsx-runtime");
4464
4552
  SVG = ({ ref, ...props }) => {
4465
4553
  const { children, className, ...otherProps } = props;
4466
- const classes = (0, import_dedupe44.default)("mobius", "mobius-svg", className);
4467
- const svgNode = import_react38.Children.only(children);
4554
+ const classes = (0, import_dedupe45.default)("mobius", "mobius-svg", className);
4555
+ const svgNode = import_react39.Children.only(children);
4468
4556
  const { children: svgChildren, viewBox, xmlns } = svgNode.props;
4469
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
4557
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
4470
4558
  "svg",
4471
4559
  {
4472
4560
  viewBox,
@@ -4491,16 +4579,16 @@ var init_SVG2 = __esm({
4491
4579
  });
4492
4580
 
4493
4581
  // src/components/Switch/Switch.tsx
4494
- var import_react39, import_dedupe45, import_Switch, import_jsx_runtime55, Switch;
4582
+ var import_react40, import_dedupe46, import_Switch, import_jsx_runtime57, Switch;
4495
4583
  var init_Switch = __esm({
4496
4584
  "src/components/Switch/Switch.tsx"() {
4497
4585
  "use strict";
4498
4586
  "use client";
4499
- import_react39 = require("react");
4500
- import_dedupe45 = __toESM(require("classnames/dedupe"));
4587
+ import_react40 = require("react");
4588
+ import_dedupe46 = __toESM(require("classnames/dedupe"));
4501
4589
  init_VisuallyHidden2();
4502
4590
  import_Switch = require("@simplybusiness/mobius/src/components/Switch/Switch.css");
4503
- import_jsx_runtime55 = require("react/jsx-runtime");
4591
+ import_jsx_runtime57 = require("react/jsx-runtime");
4504
4592
  Switch = ({ ref, ...props }) => {
4505
4593
  const {
4506
4594
  checked = false,
@@ -4509,11 +4597,11 @@ var init_Switch = __esm({
4509
4597
  isDisabled = false,
4510
4598
  ...otherProps
4511
4599
  } = props;
4512
- const [enabled, setEnabled] = (0, import_react39.useState)(checked);
4513
- (0, import_react39.useEffect)(() => {
4600
+ const [enabled, setEnabled] = (0, import_react40.useState)(checked);
4601
+ (0, import_react40.useEffect)(() => {
4514
4602
  setEnabled(checked);
4515
4603
  }, [checked]);
4516
- const classes = (0, import_dedupe45.default)(
4604
+ const classes = (0, import_dedupe46.default)(
4517
4605
  "mobius",
4518
4606
  "mobius-switch",
4519
4607
  {
@@ -4528,9 +4616,9 @@ var init_Switch = __esm({
4528
4616
  onChange(event);
4529
4617
  }
4530
4618
  };
4531
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("label", { ref, className: classes, children: [
4532
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { children: enabled ? "On" : "Off" }) }),
4533
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
4619
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("label", { ref, className: classes, children: [
4620
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { children: enabled ? "On" : "Off" }) }),
4621
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4534
4622
  "input",
4535
4623
  {
4536
4624
  type: "checkbox",
@@ -4541,7 +4629,7 @@ var init_Switch = __esm({
4541
4629
  ...otherProps
4542
4630
  }
4543
4631
  ),
4544
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "mobius-switch__slider" })
4632
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "mobius-switch__slider" })
4545
4633
  ] });
4546
4634
  };
4547
4635
  Switch.displayName = "Switch";
@@ -4557,114 +4645,114 @@ var init_Switch2 = __esm({
4557
4645
  });
4558
4646
 
4559
4647
  // src/components/Table/Table.tsx
4560
- var import_dedupe46, import_Table, import_jsx_runtime56, Table;
4648
+ var import_dedupe47, import_Table, import_jsx_runtime58, Table;
4561
4649
  var init_Table = __esm({
4562
4650
  "src/components/Table/Table.tsx"() {
4563
4651
  "use strict";
4564
- import_dedupe46 = __toESM(require("classnames/dedupe"));
4652
+ import_dedupe47 = __toESM(require("classnames/dedupe"));
4565
4653
  import_Table = require("@simplybusiness/mobius/src/components/Table/Table.css");
4566
- import_jsx_runtime56 = require("react/jsx-runtime");
4654
+ import_jsx_runtime58 = require("react/jsx-runtime");
4567
4655
  Table = ({ ref, ...props }) => {
4568
- const classes = (0, import_dedupe46.default)("mobius", "mobius-table", props.className);
4569
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("table", { ref, ...props, className: classes });
4656
+ const classes = (0, import_dedupe47.default)("mobius", "mobius-table", props.className);
4657
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("table", { ref, ...props, className: classes });
4570
4658
  };
4571
4659
  Table.displayName = "Table";
4572
4660
  }
4573
4661
  });
4574
4662
 
4575
4663
  // src/components/Table/Head.tsx
4576
- var import_dedupe47, import_jsx_runtime57, Head;
4664
+ var import_dedupe48, import_jsx_runtime59, Head;
4577
4665
  var init_Head = __esm({
4578
4666
  "src/components/Table/Head.tsx"() {
4579
4667
  "use strict";
4580
- import_dedupe47 = __toESM(require("classnames/dedupe"));
4581
- import_jsx_runtime57 = require("react/jsx-runtime");
4668
+ import_dedupe48 = __toESM(require("classnames/dedupe"));
4669
+ import_jsx_runtime59 = require("react/jsx-runtime");
4582
4670
  Head = ({ ref, ...props }) => {
4583
- const classes = (0, import_dedupe47.default)("mobius", "mobius-table__head", props.className);
4584
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("thead", { ref, ...props, className: classes });
4671
+ const classes = (0, import_dedupe48.default)("mobius", "mobius-table__head", props.className);
4672
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("thead", { ref, ...props, className: classes });
4585
4673
  };
4586
4674
  Head.displayName = "Table.Head";
4587
4675
  }
4588
4676
  });
4589
4677
 
4590
4678
  // src/components/Table/Body.tsx
4591
- var import_dedupe48, import_jsx_runtime58, Body;
4679
+ var import_dedupe49, import_jsx_runtime60, Body;
4592
4680
  var init_Body = __esm({
4593
4681
  "src/components/Table/Body.tsx"() {
4594
4682
  "use strict";
4595
- import_dedupe48 = __toESM(require("classnames/dedupe"));
4596
- import_jsx_runtime58 = require("react/jsx-runtime");
4683
+ import_dedupe49 = __toESM(require("classnames/dedupe"));
4684
+ import_jsx_runtime60 = require("react/jsx-runtime");
4597
4685
  Body = ({ ref, ...props }) => {
4598
- const classes = (0, import_dedupe48.default)("mobius", "mobius-table__body", props.className);
4599
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("tbody", { ref, ...props, className: classes });
4686
+ const classes = (0, import_dedupe49.default)("mobius", "mobius-table__body", props.className);
4687
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("tbody", { ref, ...props, className: classes });
4600
4688
  };
4601
4689
  Body.displayName = "Table.Body";
4602
4690
  }
4603
4691
  });
4604
4692
 
4605
4693
  // src/components/Table/Foot.tsx
4606
- var import_dedupe49, import_jsx_runtime59, Foot;
4694
+ var import_dedupe50, import_jsx_runtime61, Foot;
4607
4695
  var init_Foot = __esm({
4608
4696
  "src/components/Table/Foot.tsx"() {
4609
4697
  "use strict";
4610
- import_dedupe49 = __toESM(require("classnames/dedupe"));
4611
- import_jsx_runtime59 = require("react/jsx-runtime");
4698
+ import_dedupe50 = __toESM(require("classnames/dedupe"));
4699
+ import_jsx_runtime61 = require("react/jsx-runtime");
4612
4700
  Foot = ({ ref, ...props }) => {
4613
- const classes = (0, import_dedupe49.default)("mobius", "mobius-table__foot", props.className);
4614
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("tfoot", { ref, ...props, className: classes });
4701
+ const classes = (0, import_dedupe50.default)("mobius", "mobius-table__foot", props.className);
4702
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("tfoot", { ref, ...props, className: classes });
4615
4703
  };
4616
4704
  Foot.displayName = "Table.Foot";
4617
4705
  }
4618
4706
  });
4619
4707
 
4620
4708
  // src/components/Table/Row.tsx
4621
- var import_dedupe50, import_jsx_runtime60, Row;
4709
+ var import_dedupe51, import_jsx_runtime62, Row;
4622
4710
  var init_Row = __esm({
4623
4711
  "src/components/Table/Row.tsx"() {
4624
4712
  "use strict";
4625
- import_dedupe50 = __toESM(require("classnames/dedupe"));
4626
- import_jsx_runtime60 = require("react/jsx-runtime");
4713
+ import_dedupe51 = __toESM(require("classnames/dedupe"));
4714
+ import_jsx_runtime62 = require("react/jsx-runtime");
4627
4715
  Row = ({ ref, ...props }) => {
4628
- const classes = (0, import_dedupe50.default)("mobius", "mobius-table__row", props.className);
4629
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("tr", { ref, ...props, className: classes });
4716
+ const classes = (0, import_dedupe51.default)("mobius", "mobius-table__row", props.className);
4717
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("tr", { ref, ...props, className: classes });
4630
4718
  };
4631
4719
  Row.displayName = "Table.Row";
4632
4720
  }
4633
4721
  });
4634
4722
 
4635
4723
  // src/components/Table/HeaderCell.tsx
4636
- var import_dedupe51, import_jsx_runtime61, HeaderCell;
4724
+ var import_dedupe52, import_jsx_runtime63, HeaderCell;
4637
4725
  var init_HeaderCell = __esm({
4638
4726
  "src/components/Table/HeaderCell.tsx"() {
4639
4727
  "use strict";
4640
- import_dedupe51 = __toESM(require("classnames/dedupe"));
4641
- import_jsx_runtime61 = require("react/jsx-runtime");
4728
+ import_dedupe52 = __toESM(require("classnames/dedupe"));
4729
+ import_jsx_runtime63 = require("react/jsx-runtime");
4642
4730
  HeaderCell = ({ ref, ...props }) => {
4643
- const classes = (0, import_dedupe51.default)(
4731
+ const classes = (0, import_dedupe52.default)(
4644
4732
  "mobius",
4645
4733
  "mobius-table__head-cell",
4646
4734
  props.className
4647
4735
  );
4648
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("th", { ...props, ref, className: classes });
4736
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("th", { ...props, ref, className: classes });
4649
4737
  };
4650
4738
  HeaderCell.displayName = "Table.HeaderCell";
4651
4739
  }
4652
4740
  });
4653
4741
 
4654
4742
  // src/components/Table/Cell.tsx
4655
- var import_dedupe52, import_jsx_runtime62, Cell;
4743
+ var import_dedupe53, import_jsx_runtime64, Cell;
4656
4744
  var init_Cell = __esm({
4657
4745
  "src/components/Table/Cell.tsx"() {
4658
4746
  "use strict";
4659
- import_dedupe52 = __toESM(require("classnames/dedupe"));
4660
- import_jsx_runtime62 = require("react/jsx-runtime");
4747
+ import_dedupe53 = __toESM(require("classnames/dedupe"));
4748
+ import_jsx_runtime64 = require("react/jsx-runtime");
4661
4749
  Cell = ({ ref, ...props }) => {
4662
- const classes = (0, import_dedupe52.default)(
4750
+ const classes = (0, import_dedupe53.default)(
4663
4751
  "mobius",
4664
4752
  "mobius-table__body-cell",
4665
4753
  props.className
4666
4754
  );
4667
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("td", { ref, ...props, className: classes });
4755
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("td", { ref, ...props, className: classes });
4668
4756
  };
4669
4757
  Cell.displayName = "Table.Cell";
4670
4758
  }
@@ -4694,37 +4782,6 @@ var init_Table2 = __esm({
4694
4782
  }
4695
4783
  });
4696
4784
 
4697
- // src/components/Text/Text.tsx
4698
- var import_dedupe53, import_Text, import_jsx_runtime63, getElementType, Text;
4699
- var init_Text = __esm({
4700
- "src/components/Text/Text.tsx"() {
4701
- "use strict";
4702
- import_dedupe53 = __toESM(require("classnames/dedupe"));
4703
- import_Text = require("@simplybusiness/mobius/src/components/Text/Text.css");
4704
- import_jsx_runtime63 = require("react/jsx-runtime");
4705
- getElementType = (variant, elementType) => {
4706
- if (variant) {
4707
- return ["h1", "h2", "h3", "h4"].includes(variant) ? variant : "p";
4708
- }
4709
- return elementType || "p";
4710
- };
4711
- Text = ({ ref, elementType: Component = "p", ...props }) => {
4712
- const { variant, className, spacing, ...otherProps } = props;
4713
- const elementType = getElementType(variant, Component);
4714
- const variantType = variant || elementType;
4715
- const classes = (0, import_dedupe53.default)(
4716
- "mobius",
4717
- "mobius-text",
4718
- { [`--is-${variantType}`]: variantType },
4719
- { [`--has-line-height-${spacing}`]: spacing },
4720
- className
4721
- );
4722
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Component, { ref, ...otherProps, className: classes });
4723
- };
4724
- Text.displayName = "Text";
4725
- }
4726
- });
4727
-
4728
4785
  // src/components/Text/index.tsx
4729
4786
  var init_Text2 = __esm({
4730
4787
  "src/components/Text/index.tsx"() {
@@ -4734,12 +4791,12 @@ var init_Text2 = __esm({
4734
4791
  });
4735
4792
 
4736
4793
  // src/components/TextAreaInput/TextAreaInput.tsx
4737
- var import_dedupe54, import_jsx_runtime64, TextAreaInput;
4794
+ var import_dedupe54, import_jsx_runtime65, TextAreaInput;
4738
4795
  var init_TextAreaInput = __esm({
4739
4796
  "src/components/TextAreaInput/TextAreaInput.tsx"() {
4740
4797
  "use strict";
4741
4798
  import_dedupe54 = __toESM(require("classnames/dedupe"));
4742
- import_jsx_runtime64 = require("react/jsx-runtime");
4799
+ import_jsx_runtime65 = require("react/jsx-runtime");
4743
4800
  TextAreaInput = ({ ref, ...props }) => {
4744
4801
  const { isSelected, isDisabled, isReadOnly, isRequired, ...otherProps } = props;
4745
4802
  const classes = (0, import_dedupe54.default)(
@@ -4752,7 +4809,7 @@ var init_TextAreaInput = __esm({
4752
4809
  },
4753
4810
  otherProps.className
4754
4811
  );
4755
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4812
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4756
4813
  "textarea",
4757
4814
  {
4758
4815
  ref,
@@ -4776,7 +4833,7 @@ var init_TextAreaInput2 = __esm({
4776
4833
  });
4777
4834
 
4778
4835
  // src/components/TextArea/TextArea.tsx
4779
- var import_dedupe55, import_TextArea, import_jsx_runtime65, TextArea;
4836
+ var import_dedupe55, import_TextArea, import_jsx_runtime66, TextArea;
4780
4837
  var init_TextArea = __esm({
4781
4838
  "src/components/TextArea/TextArea.tsx"() {
4782
4839
  "use strict";
@@ -4788,7 +4845,7 @@ var init_TextArea = __esm({
4788
4845
  init_Stack2();
4789
4846
  init_TextAreaInput2();
4790
4847
  import_TextArea = require("@simplybusiness/mobius/src/components/TextArea/TextArea.css");
4791
- import_jsx_runtime65 = require("react/jsx-runtime");
4848
+ import_jsx_runtime66 = require("react/jsx-runtime");
4792
4849
  TextArea = ({ ref, ...props }) => {
4793
4850
  const {
4794
4851
  isDisabled,
@@ -4808,9 +4865,9 @@ var init_TextArea = __esm({
4808
4865
  },
4809
4866
  validationClasses
4810
4867
  );
4811
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Stack, { className: classes, gap: "xs", children: [
4812
- label && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Label, { ...labelProps, className: labelClasses, children: props.label }),
4813
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4868
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Stack, { className: classes, gap: "xs", children: [
4869
+ label && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Label, { ...labelProps, className: labelClasses, children: props.label }),
4870
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4814
4871
  TextAreaInput,
4815
4872
  {
4816
4873
  ...otherProps,
@@ -4821,7 +4878,7 @@ var init_TextArea = __esm({
4821
4878
  "aria-invalid": errorMessage != null
4822
4879
  }
4823
4880
  ),
4824
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ErrorMessage, { ...errorMessageProps, errorMessage })
4881
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ErrorMessage, { ...errorMessageProps, errorMessage })
4825
4882
  ] });
4826
4883
  };
4827
4884
  TextArea.displayName = "TextArea";
@@ -4836,53 +4893,6 @@ var init_TextArea2 = __esm({
4836
4893
  }
4837
4894
  });
4838
4895
 
4839
- // src/components/TextOrHTML/TextOrHTML.tsx
4840
- var import_react40, import_jsx_runtime66, isHTML, TextOrHTML;
4841
- var init_TextOrHTML = __esm({
4842
- "src/components/TextOrHTML/TextOrHTML.tsx"() {
4843
- "use strict";
4844
- import_react40 = require("react");
4845
- init_Text();
4846
- import_jsx_runtime66 = require("react/jsx-runtime");
4847
- isHTML = (text) => /^\s*<[a-z]/i.test(text);
4848
- TextOrHTML = ({
4849
- ref,
4850
- text,
4851
- htmlClassName,
4852
- htmlElementType,
4853
- textWrapper = false,
4854
- autoDetect = false,
4855
- ...textProps
4856
- }) => {
4857
- const textIsHTML = autoDetect && isHTML(text);
4858
- const shouldWrapInText = autoDetect ? textWrapper || !textIsHTML : textWrapper;
4859
- const resolvedElementType = htmlElementType ?? (textIsHTML ? "div" : "span");
4860
- const DangerousComponent = resolvedElementType;
4861
- const dangerousHTML = (0, import_react40.useMemo)(() => ({ __html: text }), [text]);
4862
- const dangerousElement = /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4863
- DangerousComponent,
4864
- {
4865
- className: htmlClassName,
4866
- dangerouslySetInnerHTML: dangerousHTML
4867
- }
4868
- );
4869
- if (shouldWrapInText) {
4870
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Text, { ref, ...textProps, children: dangerousElement });
4871
- }
4872
- return dangerousElement;
4873
- };
4874
- TextOrHTML.displayName = "TextOrHTML";
4875
- }
4876
- });
4877
-
4878
- // src/components/TextOrHTML/index.tsx
4879
- var init_TextOrHTML2 = __esm({
4880
- "src/components/TextOrHTML/index.tsx"() {
4881
- "use strict";
4882
- init_TextOrHTML();
4883
- }
4884
- });
4885
-
4886
4896
  // src/components/Title/Title.tsx
4887
4897
  var import_dedupe56, import_Title, import_jsx_runtime67, Title;
4888
4898
  var init_Title = __esm({