@simplybusiness/mobius 10.3.0 → 10.3.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.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/components/AddressLookup/AddressLookup.js +224 -198
- package/dist/cjs/components/AddressLookup/AddressLookup.js.map +3 -3
- package/dist/cjs/components/AddressLookup/index.js +224 -198
- package/dist/cjs/components/AddressLookup/index.js.map +3 -3
- package/dist/cjs/components/Alert/Alert.js +37 -11
- package/dist/cjs/components/Alert/Alert.js.map +3 -3
- package/dist/cjs/components/Alert/index.js +37 -11
- package/dist/cjs/components/Alert/index.js.map +3 -3
- package/dist/cjs/components/Checkbox/Checkbox.js +199 -173
- package/dist/cjs/components/Checkbox/Checkbox.js.map +3 -3
- package/dist/cjs/components/Checkbox/CheckboxGroup.js +199 -173
- package/dist/cjs/components/Checkbox/CheckboxGroup.js.map +3 -3
- package/dist/cjs/components/Checkbox/index.js +199 -173
- package/dist/cjs/components/Checkbox/index.js.map +3 -3
- package/dist/cjs/components/Combobox/Combobox.js +224 -198
- package/dist/cjs/components/Combobox/Combobox.js.map +3 -3
- package/dist/cjs/components/Combobox/index.js +224 -198
- package/dist/cjs/components/Combobox/index.js.map +3 -3
- package/dist/cjs/components/DateField/DateField.js +215 -189
- package/dist/cjs/components/DateField/DateField.js.map +3 -3
- package/dist/cjs/components/DateField/index.js +215 -189
- package/dist/cjs/components/DateField/index.js.map +3 -3
- package/dist/cjs/components/ErrorMessage/ErrorMessage.js +199 -173
- package/dist/cjs/components/ErrorMessage/ErrorMessage.js.map +3 -3
- package/dist/cjs/components/ErrorMessage/index.js +199 -173
- package/dist/cjs/components/ErrorMessage/index.js.map +3 -3
- package/dist/cjs/components/ExpandableText/ExpandableText.js +196 -170
- package/dist/cjs/components/ExpandableText/ExpandableText.js.map +3 -3
- package/dist/cjs/components/ExpandableText/index.js +196 -170
- package/dist/cjs/components/ExpandableText/index.js.map +3 -3
- package/dist/cjs/components/MaskedField/MaskedField.js +215 -189
- package/dist/cjs/components/MaskedField/MaskedField.js.map +3 -3
- package/dist/cjs/components/MaskedField/index.js +215 -189
- package/dist/cjs/components/MaskedField/index.js.map +3 -3
- package/dist/cjs/components/NumberField/NumberField.js +215 -189
- package/dist/cjs/components/NumberField/NumberField.js.map +3 -3
- package/dist/cjs/components/NumberField/index.js +215 -189
- package/dist/cjs/components/NumberField/index.js.map +3 -3
- package/dist/cjs/components/PasswordField/PasswordField.js +215 -189
- package/dist/cjs/components/PasswordField/PasswordField.js.map +3 -3
- package/dist/cjs/components/PasswordField/ShowHideButton.js +196 -170
- package/dist/cjs/components/PasswordField/ShowHideButton.js.map +3 -3
- package/dist/cjs/components/PasswordField/index.js +215 -189
- package/dist/cjs/components/PasswordField/index.js.map +3 -3
- package/dist/cjs/components/Radio/Radio.js +199 -173
- package/dist/cjs/components/Radio/Radio.js.map +3 -3
- package/dist/cjs/components/Radio/RadioGroup.js +199 -173
- package/dist/cjs/components/Radio/RadioGroup.js.map +3 -3
- package/dist/cjs/components/Radio/index.js +199 -173
- package/dist/cjs/components/Radio/index.js.map +3 -3
- package/dist/cjs/components/Select/Select.js +199 -173
- package/dist/cjs/components/Select/Select.js.map +3 -3
- package/dist/cjs/components/Select/index.js +199 -173
- package/dist/cjs/components/Select/index.js.map +3 -3
- package/dist/cjs/components/Text/Text.js +2 -1
- package/dist/cjs/components/Text/Text.js.map +2 -2
- package/dist/cjs/components/Text/index.js +2 -1
- package/dist/cjs/components/Text/index.js.map +2 -2
- package/dist/cjs/components/TextArea/TextArea.js +199 -173
- package/dist/cjs/components/TextArea/TextArea.js.map +3 -3
- package/dist/cjs/components/TextArea/index.js +199 -173
- package/dist/cjs/components/TextArea/index.js.map +3 -3
- package/dist/cjs/components/TextField/TextField.js +215 -189
- package/dist/cjs/components/TextField/TextField.js.map +3 -3
- package/dist/cjs/components/TextField/index.js +215 -189
- package/dist/cjs/components/TextField/index.js.map +3 -3
- package/dist/cjs/components/TextOrHTML/TextOrHTML.js +32 -6
- package/dist/cjs/components/TextOrHTML/TextOrHTML.js.map +3 -3
- package/dist/cjs/components/TextOrHTML/index.js +32 -6
- package/dist/cjs/components/TextOrHTML/index.js.map +3 -3
- package/dist/cjs/components/index.js +205 -178
- package/dist/cjs/components/index.js.map +3 -3
- package/dist/cjs/index.js +205 -178
- package/dist/cjs/index.js.map +3 -3
- package/dist/cjs/meta.json +299 -119
- package/dist/esm/{chunk-ZS5MFZHD.js → chunk-A66R42LG.js} +2 -1
- package/dist/esm/{chunk-ZS5MFZHD.js.map → chunk-A66R42LG.js.map} +2 -2
- package/dist/esm/chunk-DYTHXKMX.js +67 -0
- package/dist/esm/chunk-DYTHXKMX.js.map +7 -0
- package/dist/esm/{chunk-QWD72EVP.js → chunk-JNAQ76CR.js} +2 -2
- package/dist/esm/{chunk-I6EUIFUJ.js → chunk-W2RQH4WS.js} +2 -2
- package/dist/esm/components/AddressLookup/AddressLookup.js +4 -4
- package/dist/esm/components/AddressLookup/index.js +4 -4
- package/dist/esm/components/Alert/Alert.js +3 -3
- package/dist/esm/components/Alert/index.js +3 -3
- package/dist/esm/components/Checkbox/Checkbox.js +4 -4
- package/dist/esm/components/Checkbox/CheckboxGroup.js +4 -4
- package/dist/esm/components/Checkbox/index.js +4 -4
- package/dist/esm/components/Combobox/Combobox.js +4 -4
- package/dist/esm/components/Combobox/index.js +4 -4
- package/dist/esm/components/DateField/DateField.js +4 -4
- package/dist/esm/components/DateField/index.js +4 -4
- package/dist/esm/components/ErrorMessage/ErrorMessage.js +4 -4
- package/dist/esm/components/ErrorMessage/index.js +4 -4
- package/dist/esm/components/ExpandableText/ExpandableText.js +4 -4
- package/dist/esm/components/ExpandableText/index.js +4 -4
- package/dist/esm/components/MaskedField/MaskedField.js +4 -4
- package/dist/esm/components/MaskedField/index.js +4 -4
- package/dist/esm/components/NumberField/NumberField.js +4 -4
- package/dist/esm/components/NumberField/index.js +4 -4
- package/dist/esm/components/PasswordField/PasswordField.js +4 -4
- package/dist/esm/components/PasswordField/ShowHideButton.js +4 -4
- package/dist/esm/components/PasswordField/index.js +4 -4
- package/dist/esm/components/Radio/Radio.js +4 -4
- package/dist/esm/components/Radio/RadioGroup.js +4 -4
- package/dist/esm/components/Radio/index.js +4 -4
- package/dist/esm/components/Select/Select.js +4 -4
- package/dist/esm/components/Select/index.js +4 -4
- package/dist/esm/components/Text/Text.js +5 -3
- package/dist/esm/components/Text/index.js +5 -3
- package/dist/esm/components/TextArea/TextArea.js +4 -4
- package/dist/esm/components/TextArea/index.js +4 -4
- package/dist/esm/components/TextField/TextField.js +4 -4
- package/dist/esm/components/TextField/index.js +4 -4
- package/dist/esm/components/TextOrHTML/TextOrHTML.js +2 -2
- package/dist/esm/components/TextOrHTML/index.js +2 -2
- package/dist/esm/components/index.js +7 -5
- package/dist/esm/index.js +7 -5
- package/dist/esm/meta.json +176 -161
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/Text/Text.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/Table/Table.test.tsx +2 -5
- package/src/components/Text/Text.test.tsx +3 -4
- package/src/components/Text/Text.tsx +1 -1
- package/src/components/TextOrHTML/TextOrHTML.test.tsx +54 -3
- package/src/components/TextOrHTML/TextOrHTML.tsx +46 -9
- package/dist/esm/chunk-VIDKIVA6.js +0 -40
- package/dist/esm/chunk-VIDKIVA6.js.map +0 -7
- /package/dist/esm/{chunk-QWD72EVP.js.map → chunk-JNAQ76CR.js.map} +0 -0
- /package/dist/esm/{chunk-I6EUIFUJ.js.map → chunk-W2RQH4WS.js.map} +0 -0
package/dist/cjs/index.js
CHANGED
|
@@ -2404,14 +2404,28 @@ var init_Text = __esm({
|
|
|
2404
2404
|
});
|
|
2405
2405
|
|
|
2406
2406
|
// src/components/TextOrHTML/TextOrHTML.tsx
|
|
2407
|
-
var import_react15, import_jsx_runtime17,
|
|
2407
|
+
var import_dedupe16, import_react15, import_jsx_runtime17, isBlockHTML, containsHTML, buildTextClasses, TextOrHTML;
|
|
2408
2408
|
var init_TextOrHTML = __esm({
|
|
2409
2409
|
"src/components/TextOrHTML/TextOrHTML.tsx"() {
|
|
2410
2410
|
"use strict";
|
|
2411
|
+
import_dedupe16 = __toESM(require("classnames/dedupe"));
|
|
2411
2412
|
import_react15 = require("react");
|
|
2412
2413
|
init_Text();
|
|
2413
2414
|
import_jsx_runtime17 = require("react/jsx-runtime");
|
|
2414
|
-
|
|
2415
|
+
isBlockHTML = (text) => /^\s*<[a-z]/i.test(text);
|
|
2416
|
+
containsHTML = (text) => /<[a-z/]/i.test(text) || /&(?:#\d+|#x[\da-f]+|[a-z]\w*);/i.test(text);
|
|
2417
|
+
buildTextClasses = (textProps, htmlClassName) => {
|
|
2418
|
+
const { variant, elementType, spacing, className } = textProps;
|
|
2419
|
+
const variantType = variant || getElementType(variant, elementType);
|
|
2420
|
+
return (0, import_dedupe16.default)(
|
|
2421
|
+
"mobius",
|
|
2422
|
+
"mobius-text",
|
|
2423
|
+
{ [`--is-${variantType}`]: variantType },
|
|
2424
|
+
{ [`--has-line-height-${spacing}`]: spacing },
|
|
2425
|
+
className,
|
|
2426
|
+
htmlClassName
|
|
2427
|
+
);
|
|
2428
|
+
};
|
|
2415
2429
|
TextOrHTML = ({
|
|
2416
2430
|
ref,
|
|
2417
2431
|
text,
|
|
@@ -2421,11 +2435,23 @@ var init_TextOrHTML = __esm({
|
|
|
2421
2435
|
autoDetect = false,
|
|
2422
2436
|
...textProps
|
|
2423
2437
|
}) => {
|
|
2424
|
-
const
|
|
2425
|
-
const shouldWrapInText = autoDetect ? textWrapper || !textIsHTML : textWrapper;
|
|
2426
|
-
const resolvedElementType = htmlElementType ?? (textIsHTML ? "div" : "span");
|
|
2427
|
-
const DangerousComponent = resolvedElementType;
|
|
2438
|
+
const textIsBlockHTML = autoDetect && isBlockHTML(text);
|
|
2428
2439
|
const dangerousHTML = (0, import_react15.useMemo)(() => ({ __html: text }), [text]);
|
|
2440
|
+
if (autoDetect && !textIsBlockHTML) {
|
|
2441
|
+
const { variant, spacing, elementType, className, ...domProps } = textProps;
|
|
2442
|
+
const Element = getElementType(variant, elementType);
|
|
2443
|
+
const classes = buildTextClasses(textProps, htmlClassName);
|
|
2444
|
+
return containsHTML(text) ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2445
|
+
Element,
|
|
2446
|
+
{
|
|
2447
|
+
ref,
|
|
2448
|
+
...domProps,
|
|
2449
|
+
className: classes,
|
|
2450
|
+
dangerouslySetInnerHTML: dangerousHTML
|
|
2451
|
+
}
|
|
2452
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Element, { ref, ...domProps, className: classes, children: text });
|
|
2453
|
+
}
|
|
2454
|
+
const DangerousComponent = htmlElementType ?? (textIsBlockHTML ? "div" : "span");
|
|
2429
2455
|
const dangerousElement = /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2430
2456
|
DangerousComponent,
|
|
2431
2457
|
{
|
|
@@ -2433,7 +2459,7 @@ var init_TextOrHTML = __esm({
|
|
|
2433
2459
|
dangerouslySetInnerHTML: dangerousHTML
|
|
2434
2460
|
}
|
|
2435
2461
|
);
|
|
2436
|
-
if (
|
|
2462
|
+
if (textWrapper) {
|
|
2437
2463
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Text, { ref, ...textProps, children: dangerousElement });
|
|
2438
2464
|
}
|
|
2439
2465
|
return dangerousElement;
|
|
@@ -2454,12 +2480,12 @@ var init_TextOrHTML2 = __esm({
|
|
|
2454
2480
|
function isAlertVariant(value) {
|
|
2455
2481
|
return value === "info" || value === "success" || value === "warning" || value === "error";
|
|
2456
2482
|
}
|
|
2457
|
-
var import_icons4,
|
|
2483
|
+
var import_icons4, import_dedupe17, import_Alert, import_jsx_runtime18, Alert;
|
|
2458
2484
|
var init_Alert = __esm({
|
|
2459
2485
|
"src/components/Alert/Alert.tsx"() {
|
|
2460
2486
|
"use strict";
|
|
2461
2487
|
import_icons4 = require("@simplybusiness/icons");
|
|
2462
|
-
|
|
2488
|
+
import_dedupe17 = __toESM(require("classnames/dedupe"));
|
|
2463
2489
|
init_Icon2();
|
|
2464
2490
|
init_TextOrHTML2();
|
|
2465
2491
|
import_Alert = require("@simplybusiness/mobius/src/components/Alert/Alert.css");
|
|
@@ -2476,7 +2502,7 @@ var init_Alert = __esm({
|
|
|
2476
2502
|
if (!show) return null;
|
|
2477
2503
|
const variant = variantProp && isAlertVariant(variantProp) ? variantProp : "info";
|
|
2478
2504
|
const colorValue = variant === "success" ? `var(--color-valid)` : `var(--color-${variant})`;
|
|
2479
|
-
const classes = (0,
|
|
2505
|
+
const classes = (0, import_dedupe17.default)(
|
|
2480
2506
|
"mobius",
|
|
2481
2507
|
"mobius-alert",
|
|
2482
2508
|
{
|
|
@@ -2494,9 +2520,9 @@ var init_Alert = __esm({
|
|
|
2494
2520
|
warning: import_icons4.warning,
|
|
2495
2521
|
error: import_icons4.error
|
|
2496
2522
|
};
|
|
2497
|
-
const headerClasses = (0,
|
|
2498
|
-
const iconClasses = (0,
|
|
2499
|
-
const contentClasses = (0,
|
|
2523
|
+
const headerClasses = (0, import_dedupe17.default)("mobius", "mobius-alert__header");
|
|
2524
|
+
const iconClasses = (0, import_dedupe17.default)("mobius", "mobius-alert__icon");
|
|
2525
|
+
const contentClasses = (0, import_dedupe17.default)("mobius", "mobius-alert__content");
|
|
2500
2526
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Element, { ref, role: "alert", ...otherProps, className: classes, children: [
|
|
2501
2527
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: iconClasses, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Icon, { icon: icon[variant], color: colorValue }) }),
|
|
2502
2528
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { children: [
|
|
@@ -2527,11 +2553,11 @@ var init_Alert2 = __esm({
|
|
|
2527
2553
|
});
|
|
2528
2554
|
|
|
2529
2555
|
// src/components/Box/Box.tsx
|
|
2530
|
-
var
|
|
2556
|
+
var import_dedupe18, import_Box, import_jsx_runtime19, Box;
|
|
2531
2557
|
var init_Box = __esm({
|
|
2532
2558
|
"src/components/Box/Box.tsx"() {
|
|
2533
2559
|
"use strict";
|
|
2534
|
-
|
|
2560
|
+
import_dedupe18 = __toESM(require("classnames/dedupe"));
|
|
2535
2561
|
init_utils();
|
|
2536
2562
|
import_Box = require("@simplybusiness/mobius/src/components/Box/Box.css");
|
|
2537
2563
|
import_jsx_runtime19 = require("react/jsx-runtime");
|
|
@@ -2560,7 +2586,7 @@ var init_Box = __esm({
|
|
|
2560
2586
|
style,
|
|
2561
2587
|
...otherProps
|
|
2562
2588
|
} = props;
|
|
2563
|
-
const classes = (0,
|
|
2589
|
+
const classes = (0, import_dedupe18.default)("mobius", "mobius-box", otherProps.className);
|
|
2564
2590
|
const fromProps = filterUndefinedProps({
|
|
2565
2591
|
padding: getSpacingValue(padding),
|
|
2566
2592
|
paddingInline: getSpacingValue(paddingInline || paddingX),
|
|
@@ -2595,13 +2621,13 @@ var init_Box2 = __esm({
|
|
|
2595
2621
|
});
|
|
2596
2622
|
|
|
2597
2623
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
2598
|
-
var import_react16,
|
|
2624
|
+
var import_react16, import_dedupe19, import_Breadcrumbs, import_jsx_runtime20, Breadcrumbs;
|
|
2599
2625
|
var init_Breadcrumbs = __esm({
|
|
2600
2626
|
"src/components/Breadcrumbs/Breadcrumbs.tsx"() {
|
|
2601
2627
|
"use strict";
|
|
2602
2628
|
"use client";
|
|
2603
2629
|
import_react16 = require("react");
|
|
2604
|
-
|
|
2630
|
+
import_dedupe19 = __toESM(require("classnames/dedupe"));
|
|
2605
2631
|
import_Breadcrumbs = require("@simplybusiness/mobius/src/components/Breadcrumbs/Breadcrumbs.css");
|
|
2606
2632
|
import_jsx_runtime20 = require("react/jsx-runtime");
|
|
2607
2633
|
Breadcrumbs = ({ ref, ...props }) => {
|
|
@@ -2609,7 +2635,7 @@ var init_Breadcrumbs = __esm({
|
|
|
2609
2635
|
const { navProps } = { navProps: { "aria-label": ariaLabel } };
|
|
2610
2636
|
const { children, ...otherProps } = props;
|
|
2611
2637
|
const childArray = import_react16.Children.toArray(children);
|
|
2612
|
-
const classes = (0,
|
|
2638
|
+
const classes = (0, import_dedupe19.default)(
|
|
2613
2639
|
"mobius",
|
|
2614
2640
|
"mobius-breadcrumb",
|
|
2615
2641
|
otherProps.className
|
|
@@ -2629,13 +2655,13 @@ var init_Breadcrumbs = __esm({
|
|
|
2629
2655
|
});
|
|
2630
2656
|
|
|
2631
2657
|
// src/components/Breadcrumbs/BreadcrumbItem.tsx
|
|
2632
|
-
var import_react17,
|
|
2658
|
+
var import_react17, import_dedupe20, import_jsx_runtime21, BreadcrumbItem;
|
|
2633
2659
|
var init_BreadcrumbItem = __esm({
|
|
2634
2660
|
"src/components/Breadcrumbs/BreadcrumbItem.tsx"() {
|
|
2635
2661
|
"use strict";
|
|
2636
2662
|
"use client";
|
|
2637
2663
|
import_react17 = require("react");
|
|
2638
|
-
|
|
2664
|
+
import_dedupe20 = __toESM(require("classnames/dedupe"));
|
|
2639
2665
|
init_Box2();
|
|
2640
2666
|
import_jsx_runtime21 = require("react/jsx-runtime");
|
|
2641
2667
|
BreadcrumbItem = ({ ref, ...props }) => {
|
|
@@ -2654,7 +2680,7 @@ var init_BreadcrumbItem = __esm({
|
|
|
2654
2680
|
...otherProps
|
|
2655
2681
|
}
|
|
2656
2682
|
};
|
|
2657
|
-
const classes = (0,
|
|
2683
|
+
const classes = (0, import_dedupe20.default)(
|
|
2658
2684
|
"mobius",
|
|
2659
2685
|
"mobius-breadcrumb__item",
|
|
2660
2686
|
props.className
|
|
@@ -2719,12 +2745,12 @@ var init_Success = __esm({
|
|
|
2719
2745
|
});
|
|
2720
2746
|
|
|
2721
2747
|
// src/components/Button/Button.tsx
|
|
2722
|
-
var
|
|
2748
|
+
var import_dedupe21, import_Button, import_jsx_runtime24, Button;
|
|
2723
2749
|
var init_Button = __esm({
|
|
2724
2750
|
"src/components/Button/Button.tsx"() {
|
|
2725
2751
|
"use strict";
|
|
2726
2752
|
"use client";
|
|
2727
|
-
|
|
2753
|
+
import_dedupe21 = __toESM(require("classnames/dedupe"));
|
|
2728
2754
|
init_Loading();
|
|
2729
2755
|
init_useButton2();
|
|
2730
2756
|
init_Success();
|
|
@@ -2744,7 +2770,7 @@ var init_Button = __esm({
|
|
|
2744
2770
|
...otherProps
|
|
2745
2771
|
} = props;
|
|
2746
2772
|
const { buttonProps } = useButton(props);
|
|
2747
|
-
otherProps.className = (0,
|
|
2773
|
+
otherProps.className = (0, import_dedupe21.default)(
|
|
2748
2774
|
"mobius",
|
|
2749
2775
|
"mobius-button",
|
|
2750
2776
|
`--variant-${variant}`,
|
|
@@ -2774,13 +2800,13 @@ var init_Button2 = __esm({
|
|
|
2774
2800
|
});
|
|
2775
2801
|
|
|
2776
2802
|
// src/components/Checkbox/Checkbox.tsx
|
|
2777
|
-
var import_react18,
|
|
2803
|
+
var import_react18, import_dedupe22, import_icons7, import_Checkbox, import_jsx_runtime25, Checkbox;
|
|
2778
2804
|
var init_Checkbox = __esm({
|
|
2779
2805
|
"src/components/Checkbox/Checkbox.tsx"() {
|
|
2780
2806
|
"use strict";
|
|
2781
2807
|
"use client";
|
|
2782
2808
|
import_react18 = require("react");
|
|
2783
|
-
|
|
2809
|
+
import_dedupe22 = __toESM(require("classnames/dedupe"));
|
|
2784
2810
|
import_icons7 = require("@simplybusiness/icons");
|
|
2785
2811
|
init_ErrorMessage2();
|
|
2786
2812
|
init_spaceDelimitedList();
|
|
@@ -2819,7 +2845,7 @@ var init_Checkbox = __esm({
|
|
|
2819
2845
|
}
|
|
2820
2846
|
}, [selected, isControlled]);
|
|
2821
2847
|
const validationClasses = useValidationClasses({ isInvalid });
|
|
2822
|
-
const sharedClasses = (0,
|
|
2848
|
+
const sharedClasses = (0, import_dedupe22.default)(
|
|
2823
2849
|
{
|
|
2824
2850
|
"--is-disabled": isDisabled,
|
|
2825
2851
|
"--is-selected": checked,
|
|
@@ -2828,15 +2854,15 @@ var init_Checkbox = __esm({
|
|
|
2828
2854
|
},
|
|
2829
2855
|
validationClasses
|
|
2830
2856
|
);
|
|
2831
|
-
const wrapperClasses = (0,
|
|
2857
|
+
const wrapperClasses = (0, import_dedupe22.default)(
|
|
2832
2858
|
"mobius",
|
|
2833
2859
|
"mobius-checkbox",
|
|
2834
2860
|
sharedClasses,
|
|
2835
2861
|
className
|
|
2836
2862
|
);
|
|
2837
|
-
const labelClasses = (0,
|
|
2838
|
-
const inputClasses = (0,
|
|
2839
|
-
const iconClasses = (0,
|
|
2863
|
+
const labelClasses = (0, import_dedupe22.default)("mobius-checkbox__label", sharedClasses);
|
|
2864
|
+
const inputClasses = (0, import_dedupe22.default)("mobius-checkbox__input", sharedClasses);
|
|
2865
|
+
const iconClasses = (0, import_dedupe22.default)("mobius-checkbox__icon", sharedClasses);
|
|
2840
2866
|
const errorMessageId = (0, import_react18.useId)();
|
|
2841
2867
|
const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
|
|
2842
2868
|
const describedBy = spaceDelimitedList([
|
|
@@ -2891,12 +2917,12 @@ var init_Checkbox = __esm({
|
|
|
2891
2917
|
});
|
|
2892
2918
|
|
|
2893
2919
|
// src/components/Checkbox/CheckboxGroup.tsx
|
|
2894
|
-
var
|
|
2920
|
+
var import_dedupe23, import_react19, import_CheckboxGroup, import_jsx_runtime26, CheckboxGroup;
|
|
2895
2921
|
var init_CheckboxGroup = __esm({
|
|
2896
2922
|
"src/components/Checkbox/CheckboxGroup.tsx"() {
|
|
2897
2923
|
"use strict";
|
|
2898
2924
|
"use client";
|
|
2899
|
-
|
|
2925
|
+
import_dedupe23 = __toESM(require("classnames/dedupe"));
|
|
2900
2926
|
import_react19 = require("react");
|
|
2901
2927
|
init_hooks();
|
|
2902
2928
|
init_spaceDelimitedList();
|
|
@@ -2935,7 +2961,7 @@ var init_CheckboxGroup = __esm({
|
|
|
2935
2961
|
isInitializedRef.current = true;
|
|
2936
2962
|
}
|
|
2937
2963
|
}, [defaultValue]);
|
|
2938
|
-
const checkboxGroupClasses = (0,
|
|
2964
|
+
const checkboxGroupClasses = (0, import_dedupe23.default)(
|
|
2939
2965
|
"mobius",
|
|
2940
2966
|
"mobius-checkbox-group",
|
|
2941
2967
|
className,
|
|
@@ -2947,7 +2973,7 @@ var init_CheckboxGroup = __esm({
|
|
|
2947
2973
|
}
|
|
2948
2974
|
);
|
|
2949
2975
|
const validationClasses = useValidationClasses({ isInvalid });
|
|
2950
|
-
const labelClasses = (0,
|
|
2976
|
+
const labelClasses = (0, import_dedupe23.default)(
|
|
2951
2977
|
{
|
|
2952
2978
|
"--is-disabled": isDisabled
|
|
2953
2979
|
},
|
|
@@ -3043,17 +3069,17 @@ var init_Checkbox2 = __esm({
|
|
|
3043
3069
|
});
|
|
3044
3070
|
|
|
3045
3071
|
// src/components/Container/Container.tsx
|
|
3046
|
-
var
|
|
3072
|
+
var import_dedupe24, import_Container, import_jsx_runtime27, Container;
|
|
3047
3073
|
var init_Container = __esm({
|
|
3048
3074
|
"src/components/Container/Container.tsx"() {
|
|
3049
3075
|
"use strict";
|
|
3050
|
-
|
|
3076
|
+
import_dedupe24 = __toESM(require("classnames/dedupe"));
|
|
3051
3077
|
init_utils();
|
|
3052
3078
|
import_Container = require("@simplybusiness/mobius/src/components/Container/Container.css");
|
|
3053
3079
|
import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3054
3080
|
Container = ({ ref, ...props }) => {
|
|
3055
3081
|
const { elementType: Element = "div", size = "md", ...otherProps } = props;
|
|
3056
|
-
const classes = (0,
|
|
3082
|
+
const classes = (0, import_dedupe24.default)(
|
|
3057
3083
|
"mobius",
|
|
3058
3084
|
"mobius-container",
|
|
3059
3085
|
sizeClasses(size),
|
|
@@ -3112,12 +3138,12 @@ var init_validation = __esm({
|
|
|
3112
3138
|
});
|
|
3113
3139
|
|
|
3114
3140
|
// src/components/DateField/DateField.tsx
|
|
3115
|
-
var
|
|
3141
|
+
var import_dedupe25, import_react20, import_jsx_runtime28, MIN_MAX_ERROR, DateField;
|
|
3116
3142
|
var init_DateField = __esm({
|
|
3117
3143
|
"src/components/DateField/DateField.tsx"() {
|
|
3118
3144
|
"use strict";
|
|
3119
3145
|
"use client";
|
|
3120
|
-
|
|
3146
|
+
import_dedupe25 = __toESM(require("classnames/dedupe"));
|
|
3121
3147
|
import_react20 = require("react");
|
|
3122
3148
|
init_mergeRefs();
|
|
3123
3149
|
init_TextField2();
|
|
@@ -3138,7 +3164,7 @@ var init_DateField = __esm({
|
|
|
3138
3164
|
const [error3, setError] = (0, import_react20.useState)(errorMessage);
|
|
3139
3165
|
const [isInvalid, setIsInvalid] = (0, import_react20.useState)(void 0);
|
|
3140
3166
|
const localRef = (0, import_react20.useRef)(null);
|
|
3141
|
-
const classes = (0,
|
|
3167
|
+
const classes = (0, import_dedupe25.default)("mobius-date-field", className);
|
|
3142
3168
|
const formattedMin = min ? convertToDateFormat(min, format) : void 0;
|
|
3143
3169
|
const formattedMax = max ? convertToDateFormat(max, format) : void 0;
|
|
3144
3170
|
const formattedDefaultValue = defaultValue ? convertToDateFormat(defaultValue, format) : void 0;
|
|
@@ -3241,12 +3267,12 @@ var init_DrawerContext = __esm({
|
|
|
3241
3267
|
});
|
|
3242
3268
|
|
|
3243
3269
|
// src/components/Drawer/Drawer.tsx
|
|
3244
|
-
var
|
|
3270
|
+
var import_dedupe26, import_react22, import_Drawer, import_jsx_runtime30, TRANSITION_CSS_VARIABLE, Drawer;
|
|
3245
3271
|
var init_Drawer = __esm({
|
|
3246
3272
|
"src/components/Drawer/Drawer.tsx"() {
|
|
3247
3273
|
"use strict";
|
|
3248
3274
|
"use client";
|
|
3249
|
-
|
|
3275
|
+
import_dedupe26 = __toESM(require("classnames/dedupe"));
|
|
3250
3276
|
import_react22 = require("react");
|
|
3251
3277
|
init_hooks();
|
|
3252
3278
|
init_utils();
|
|
@@ -3280,7 +3306,7 @@ var init_Drawer = __esm({
|
|
|
3280
3306
|
});
|
|
3281
3307
|
const hiddenId = `dialog-screen-reader-announce-${(0, import_react22.useId)()}`;
|
|
3282
3308
|
const headerId = `dialog-header-${(0, import_react22.useId)()}`;
|
|
3283
|
-
const dialogClasses = (0,
|
|
3309
|
+
const dialogClasses = (0, import_dedupe26.default)(
|
|
3284
3310
|
"mobius",
|
|
3285
3311
|
"mobius-drawer",
|
|
3286
3312
|
`--${direction}`,
|
|
@@ -3387,14 +3413,14 @@ var init_Drawer2 = __esm({
|
|
|
3387
3413
|
});
|
|
3388
3414
|
|
|
3389
3415
|
// src/components/DropdownMenu/DropdownMenu.tsx
|
|
3390
|
-
var import_react24, import_react_accessible_dropdown_menu_hook,
|
|
3416
|
+
var import_react24, import_react_accessible_dropdown_menu_hook, import_dedupe27, import_DropdownMenu, import_jsx_runtime32, DropdownMenu;
|
|
3391
3417
|
var init_DropdownMenu = __esm({
|
|
3392
3418
|
"src/components/DropdownMenu/DropdownMenu.tsx"() {
|
|
3393
3419
|
"use strict";
|
|
3394
3420
|
"use client";
|
|
3395
3421
|
import_react24 = require("react");
|
|
3396
3422
|
import_react_accessible_dropdown_menu_hook = __toESM(require("react-accessible-dropdown-menu-hook"));
|
|
3397
|
-
|
|
3423
|
+
import_dedupe27 = __toESM(require("classnames/dedupe"));
|
|
3398
3424
|
init_Button2();
|
|
3399
3425
|
import_DropdownMenu = require("@simplybusiness/mobius/src/components/DropdownMenu/DropdownMenu.css");
|
|
3400
3426
|
import_jsx_runtime32 = require("react/jsx-runtime");
|
|
@@ -3414,13 +3440,13 @@ var init_DropdownMenu = __esm({
|
|
|
3414
3440
|
isOpen: open,
|
|
3415
3441
|
setIsOpen
|
|
3416
3442
|
} = (0, import_react_accessible_dropdown_menu_hook.default)(numberOfItems);
|
|
3417
|
-
const classes = (0,
|
|
3443
|
+
const classes = (0, import_dedupe27.default)(
|
|
3418
3444
|
"mobius",
|
|
3419
3445
|
"mobius-dropdown-menu",
|
|
3420
3446
|
otherProps.className
|
|
3421
3447
|
);
|
|
3422
|
-
const triggerClasses = (0,
|
|
3423
|
-
const listClasses = (0,
|
|
3448
|
+
const triggerClasses = (0, import_dedupe27.default)("mobius", "mobius-dropdown-menu__trigger");
|
|
3449
|
+
const listClasses = (0, import_dedupe27.default)("mobius", "mobius-dropdown-menu__list", {
|
|
3424
3450
|
"--is-open": open
|
|
3425
3451
|
});
|
|
3426
3452
|
const handleChildClick = ({ onClick }, index) => {
|
|
@@ -3454,12 +3480,12 @@ var init_DropdownMenu = __esm({
|
|
|
3454
3480
|
});
|
|
3455
3481
|
|
|
3456
3482
|
// src/components/DropdownMenu/Item.tsx
|
|
3457
|
-
var import_react25,
|
|
3483
|
+
var import_react25, import_dedupe28, import_jsx_runtime33, Item;
|
|
3458
3484
|
var init_Item = __esm({
|
|
3459
3485
|
"src/components/DropdownMenu/Item.tsx"() {
|
|
3460
3486
|
"use strict";
|
|
3461
3487
|
import_react25 = require("react");
|
|
3462
|
-
|
|
3488
|
+
import_dedupe28 = __toESM(require("classnames/dedupe"));
|
|
3463
3489
|
import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3464
3490
|
Item = ({ ref, ...props }) => {
|
|
3465
3491
|
const {
|
|
@@ -3469,7 +3495,7 @@ var init_Item = __esm({
|
|
|
3469
3495
|
children,
|
|
3470
3496
|
...otherProps
|
|
3471
3497
|
} = props;
|
|
3472
|
-
const classes = (0,
|
|
3498
|
+
const classes = (0, import_dedupe28.default)(
|
|
3473
3499
|
"mobius",
|
|
3474
3500
|
"mobius-dropdown-menu__item",
|
|
3475
3501
|
{ "--is-active": active },
|
|
@@ -3477,7 +3503,7 @@ var init_Item = __esm({
|
|
|
3477
3503
|
);
|
|
3478
3504
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Element, { ref, onClick, ...otherProps, children: import_react25.Children.map(children, (child) => {
|
|
3479
3505
|
if ((0, import_react25.isValidElement)(child)) {
|
|
3480
|
-
const childClasses = (0,
|
|
3506
|
+
const childClasses = (0, import_dedupe28.default)(
|
|
3481
3507
|
child.props.className,
|
|
3482
3508
|
classes
|
|
3483
3509
|
);
|
|
@@ -3513,12 +3539,12 @@ var init_DropdownMenu2 = __esm({
|
|
|
3513
3539
|
});
|
|
3514
3540
|
|
|
3515
3541
|
// src/components/Fieldset/Fieldset.tsx
|
|
3516
|
-
var
|
|
3542
|
+
var import_dedupe29, import_react26, import_Fieldset, import_jsx_runtime34, useFieldset, Fieldset;
|
|
3517
3543
|
var init_Fieldset = __esm({
|
|
3518
3544
|
"src/components/Fieldset/Fieldset.tsx"() {
|
|
3519
3545
|
"use strict";
|
|
3520
3546
|
"use client";
|
|
3521
|
-
|
|
3547
|
+
import_dedupe29 = __toESM(require("classnames/dedupe"));
|
|
3522
3548
|
import_react26 = require("react");
|
|
3523
3549
|
init_Flex2();
|
|
3524
3550
|
import_Fieldset = require("@simplybusiness/mobius/src/components/Fieldset/Fieldset.css");
|
|
@@ -3553,7 +3579,7 @@ var init_Fieldset = __esm({
|
|
|
3553
3579
|
...otherProps
|
|
3554
3580
|
} = props;
|
|
3555
3581
|
const { legendProps, containerProps } = useFieldset(props);
|
|
3556
|
-
const classes = (0,
|
|
3582
|
+
const classes = (0, import_dedupe29.default)("mobius", "mobius-fieldset", props.className);
|
|
3557
3583
|
legendProps.className = "mobius-fieldset__legend";
|
|
3558
3584
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Flex, { ...containerProps, ...otherProps, className: classes, children: [
|
|
3559
3585
|
legend && (0, import_react26.cloneElement)(legendComponent, { ...legendProps }, [legend]),
|
|
@@ -3573,11 +3599,11 @@ var init_Fieldset2 = __esm({
|
|
|
3573
3599
|
});
|
|
3574
3600
|
|
|
3575
3601
|
// src/components/Grid/Grid.tsx
|
|
3576
|
-
var
|
|
3602
|
+
var import_dedupe30, import_jsx_runtime35, Grid;
|
|
3577
3603
|
var init_Grid = __esm({
|
|
3578
3604
|
"src/components/Grid/Grid.tsx"() {
|
|
3579
3605
|
"use strict";
|
|
3580
|
-
|
|
3606
|
+
import_dedupe30 = __toESM(require("classnames/dedupe"));
|
|
3581
3607
|
init_utils();
|
|
3582
3608
|
import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3583
3609
|
Grid = ({ ref, ...props }) => {
|
|
@@ -3594,7 +3620,7 @@ var init_Grid = __esm({
|
|
|
3594
3620
|
style,
|
|
3595
3621
|
...rest
|
|
3596
3622
|
} = props;
|
|
3597
|
-
const classes = (0,
|
|
3623
|
+
const classes = (0, import_dedupe30.default)("mobius", "mobius-grid", className);
|
|
3598
3624
|
const styles = filterUndefinedProps({
|
|
3599
3625
|
boxSizing: "border-box",
|
|
3600
3626
|
display: "grid",
|
|
@@ -3615,13 +3641,13 @@ var init_Grid = __esm({
|
|
|
3615
3641
|
});
|
|
3616
3642
|
|
|
3617
3643
|
// src/components/Grid/Item.tsx
|
|
3618
|
-
var import_react27,
|
|
3644
|
+
var import_react27, import_dedupe31, import_jsx_runtime36, getBreakpointMap, DEFAULT_SPAN, GridItem;
|
|
3619
3645
|
var init_Item2 = __esm({
|
|
3620
3646
|
"src/components/Grid/Item.tsx"() {
|
|
3621
3647
|
"use strict";
|
|
3622
3648
|
"use client";
|
|
3623
3649
|
import_react27 = require("react");
|
|
3624
|
-
|
|
3650
|
+
import_dedupe31 = __toESM(require("classnames/dedupe"));
|
|
3625
3651
|
init_hooks();
|
|
3626
3652
|
import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3627
3653
|
getBreakpointMap = (config) => Object.entries(config).reduce(
|
|
@@ -3659,7 +3685,7 @@ var init_Item2 = __esm({
|
|
|
3659
3685
|
xxl
|
|
3660
3686
|
});
|
|
3661
3687
|
const [responsiveSpan, setResponsiveSpan] = (0, import_react27.useState)();
|
|
3662
|
-
const classes = (0,
|
|
3688
|
+
const classes = (0, import_dedupe31.default)("mobius", "mobius-grid__item", className);
|
|
3663
3689
|
(0, import_react27.useEffect)(() => {
|
|
3664
3690
|
setResponsiveSpan(breakpointMap[breakpointSize]);
|
|
3665
3691
|
}, [breakpointSize, breakpointMap]);
|
|
@@ -3689,11 +3715,11 @@ var init_Grid2 = __esm({
|
|
|
3689
3715
|
});
|
|
3690
3716
|
|
|
3691
3717
|
// src/components/Image/Image.tsx
|
|
3692
|
-
var
|
|
3718
|
+
var import_dedupe32, import_jsx_runtime37, Image;
|
|
3693
3719
|
var init_Image = __esm({
|
|
3694
3720
|
"src/components/Image/Image.tsx"() {
|
|
3695
3721
|
"use strict";
|
|
3696
|
-
|
|
3722
|
+
import_dedupe32 = __toESM(require("classnames/dedupe"));
|
|
3697
3723
|
import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3698
3724
|
Image = ({
|
|
3699
3725
|
ref,
|
|
@@ -3701,7 +3727,7 @@ var init_Image = __esm({
|
|
|
3701
3727
|
elementType: Component = "img",
|
|
3702
3728
|
...otherProps
|
|
3703
3729
|
}) => {
|
|
3704
|
-
const classes = (0,
|
|
3730
|
+
const classes = (0, import_dedupe32.default)("mobius", "mobius-image", otherProps.className);
|
|
3705
3731
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Component, { alt, ref, ...otherProps, className: classes });
|
|
3706
3732
|
};
|
|
3707
3733
|
Image.displayName = "Image";
|
|
@@ -3717,11 +3743,11 @@ var init_Image2 = __esm({
|
|
|
3717
3743
|
});
|
|
3718
3744
|
|
|
3719
3745
|
// src/components/Link/Link.tsx
|
|
3720
|
-
var
|
|
3746
|
+
var import_dedupe33, import_Link, import_jsx_runtime38, Link;
|
|
3721
3747
|
var init_Link = __esm({
|
|
3722
3748
|
"src/components/Link/Link.tsx"() {
|
|
3723
3749
|
"use strict";
|
|
3724
|
-
|
|
3750
|
+
import_dedupe33 = __toESM(require("classnames/dedupe"));
|
|
3725
3751
|
import_Link = require("@simplybusiness/mobius/src/components/Link/Link.css");
|
|
3726
3752
|
import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3727
3753
|
Link = ({ ref, ...props }) => {
|
|
@@ -3737,7 +3763,7 @@ var init_Link = __esm({
|
|
|
3737
3763
|
pointerEvents: "none"
|
|
3738
3764
|
};
|
|
3739
3765
|
const styles = { ...style, ...isDisabled && disabledStyles };
|
|
3740
|
-
const classes = (0,
|
|
3766
|
+
const classes = (0, import_dedupe33.default)(
|
|
3741
3767
|
"mobius",
|
|
3742
3768
|
"mobius-link",
|
|
3743
3769
|
className,
|
|
@@ -3781,14 +3807,14 @@ function LinkButton({
|
|
|
3781
3807
|
if (!href) {
|
|
3782
3808
|
throw new Error("LinkButton requires a href prop");
|
|
3783
3809
|
}
|
|
3784
|
-
const classes = (0,
|
|
3810
|
+
const classes = (0, import_dedupe34.default)("mobius", "mobius-link-button", className);
|
|
3785
3811
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Button, { elementType, href, className: classes, ...rest, children });
|
|
3786
3812
|
}
|
|
3787
|
-
var
|
|
3813
|
+
var import_dedupe34, import_jsx_runtime39;
|
|
3788
3814
|
var init_LinkButton = __esm({
|
|
3789
3815
|
"src/components/LinkButton/LinkButton.tsx"() {
|
|
3790
3816
|
"use strict";
|
|
3791
|
-
|
|
3817
|
+
import_dedupe34 = __toESM(require("classnames/dedupe"));
|
|
3792
3818
|
init_Button2();
|
|
3793
3819
|
import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3794
3820
|
}
|
|
@@ -3803,12 +3829,12 @@ var init_LinkButton2 = __esm({
|
|
|
3803
3829
|
});
|
|
3804
3830
|
|
|
3805
3831
|
// src/components/List/List.tsx
|
|
3806
|
-
var import_react28,
|
|
3832
|
+
var import_react28, import_dedupe35, import_List, import_jsx_runtime40, List;
|
|
3807
3833
|
var init_List = __esm({
|
|
3808
3834
|
"src/components/List/List.tsx"() {
|
|
3809
3835
|
"use strict";
|
|
3810
3836
|
import_react28 = require("react");
|
|
3811
|
-
|
|
3837
|
+
import_dedupe35 = __toESM(require("classnames/dedupe"));
|
|
3812
3838
|
import_List = require("@simplybusiness/mobius/src/components/List/List.css");
|
|
3813
3839
|
import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3814
3840
|
List = ({ ref, ...props }) => {
|
|
@@ -3819,7 +3845,7 @@ var init_List = __esm({
|
|
|
3819
3845
|
...restProps,
|
|
3820
3846
|
reversed: isReversed
|
|
3821
3847
|
};
|
|
3822
|
-
const classes = (0,
|
|
3848
|
+
const classes = (0, import_dedupe35.default)(
|
|
3823
3849
|
"mobius",
|
|
3824
3850
|
"mobius-list",
|
|
3825
3851
|
{
|
|
@@ -3850,16 +3876,16 @@ var init_List = __esm({
|
|
|
3850
3876
|
});
|
|
3851
3877
|
|
|
3852
3878
|
// src/components/List/ListItem.tsx
|
|
3853
|
-
var
|
|
3879
|
+
var import_dedupe36, import_jsx_runtime41, ListItem;
|
|
3854
3880
|
var init_ListItem = __esm({
|
|
3855
3881
|
"src/components/List/ListItem.tsx"() {
|
|
3856
3882
|
"use strict";
|
|
3857
|
-
|
|
3883
|
+
import_dedupe36 = __toESM(require("classnames/dedupe"));
|
|
3858
3884
|
import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3859
3885
|
ListItem = ({ ref, ...props }) => {
|
|
3860
3886
|
const { parentIcon, icon, children, ...otherProps } = props;
|
|
3861
3887
|
const iconContent = icon || parentIcon;
|
|
3862
|
-
const classes = (0,
|
|
3888
|
+
const classes = (0, import_dedupe36.default)(
|
|
3863
3889
|
"mobius",
|
|
3864
3890
|
"mobius-list__item",
|
|
3865
3891
|
{
|
|
@@ -3867,8 +3893,8 @@ var init_ListItem = __esm({
|
|
|
3867
3893
|
},
|
|
3868
3894
|
props.className
|
|
3869
3895
|
);
|
|
3870
|
-
const contentClasses = (0,
|
|
3871
|
-
const iconClasses = (0,
|
|
3896
|
+
const contentClasses = (0, import_dedupe36.default)("mobius", "mobius-list__item-content");
|
|
3897
|
+
const iconClasses = (0, import_dedupe36.default)("mobius", "mobius-list__icon");
|
|
3872
3898
|
if (iconContent) {
|
|
3873
3899
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("li", { ref, ...otherProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("span", { className: contentClasses, children: [
|
|
3874
3900
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: iconClasses, children: iconContent }),
|
|
@@ -3891,18 +3917,18 @@ var init_List2 = __esm({
|
|
|
3891
3917
|
});
|
|
3892
3918
|
|
|
3893
3919
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
3894
|
-
var
|
|
3920
|
+
var import_dedupe37, import_icons9, import_LoadingIndicator, import_jsx_runtime42, LoadingIndicator;
|
|
3895
3921
|
var init_LoadingIndicator = __esm({
|
|
3896
3922
|
"src/components/LoadingIndicator/LoadingIndicator.tsx"() {
|
|
3897
3923
|
"use strict";
|
|
3898
|
-
|
|
3924
|
+
import_dedupe37 = __toESM(require("classnames/dedupe"));
|
|
3899
3925
|
import_icons9 = require("@simplybusiness/icons");
|
|
3900
3926
|
init_Icon2();
|
|
3901
3927
|
import_LoadingIndicator = require("@simplybusiness/mobius/src/components/LoadingIndicator/LoadingIndicator.css");
|
|
3902
3928
|
import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3903
3929
|
LoadingIndicator = ({ ref, ...props }) => {
|
|
3904
3930
|
const { icon = import_icons9.loading, ...otherProps } = props;
|
|
3905
|
-
const classes = (0,
|
|
3931
|
+
const classes = (0, import_dedupe37.default)(
|
|
3906
3932
|
"mobius",
|
|
3907
3933
|
"mobius-loading-indicator",
|
|
3908
3934
|
otherProps.className
|
|
@@ -3922,15 +3948,15 @@ var init_LoadingIndicator2 = __esm({
|
|
|
3922
3948
|
});
|
|
3923
3949
|
|
|
3924
3950
|
// src/components/Logo/Logo.tsx
|
|
3925
|
-
var
|
|
3951
|
+
var import_dedupe38, import_jsx_runtime43, Logo;
|
|
3926
3952
|
var init_Logo = __esm({
|
|
3927
3953
|
"src/components/Logo/Logo.tsx"() {
|
|
3928
3954
|
"use strict";
|
|
3929
|
-
|
|
3955
|
+
import_dedupe38 = __toESM(require("classnames/dedupe"));
|
|
3930
3956
|
import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3931
3957
|
Logo = ({ ref, ...props }) => {
|
|
3932
3958
|
const { className, width, height, ...otherProps } = props;
|
|
3933
|
-
const classes = (0,
|
|
3959
|
+
const classes = (0, import_dedupe38.default)("mobius", "mobius-logo", className);
|
|
3934
3960
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
3935
3961
|
"svg",
|
|
3936
3962
|
{
|
|
@@ -4085,12 +4111,12 @@ var init_Header2 = __esm({
|
|
|
4085
4111
|
});
|
|
4086
4112
|
|
|
4087
4113
|
// src/components/Modal/Modal.tsx
|
|
4088
|
-
var
|
|
4114
|
+
var import_dedupe39, import_react32, import_Modal, import_jsx_runtime46, TRANSITION_CSS_VARIABLE2, Modal;
|
|
4089
4115
|
var init_Modal = __esm({
|
|
4090
4116
|
"src/components/Modal/Modal.tsx"() {
|
|
4091
4117
|
"use strict";
|
|
4092
4118
|
"use client";
|
|
4093
|
-
|
|
4119
|
+
import_dedupe39 = __toESM(require("classnames/dedupe"));
|
|
4094
4120
|
import_react32 = require("react");
|
|
4095
4121
|
init_hooks();
|
|
4096
4122
|
init_utils();
|
|
@@ -4126,7 +4152,7 @@ var init_Modal = __esm({
|
|
|
4126
4152
|
CSSVariable: TRANSITION_CSS_VARIABLE2
|
|
4127
4153
|
}
|
|
4128
4154
|
});
|
|
4129
|
-
const modalClasses = (0,
|
|
4155
|
+
const modalClasses = (0, import_dedupe39.default)(
|
|
4130
4156
|
"mobius",
|
|
4131
4157
|
"mobius-modal",
|
|
4132
4158
|
{
|
|
@@ -4186,12 +4212,12 @@ var init_Modal2 = __esm({
|
|
|
4186
4212
|
});
|
|
4187
4213
|
|
|
4188
4214
|
// src/components/NumberField/NumberField.tsx
|
|
4189
|
-
var
|
|
4215
|
+
var import_dedupe40, import_react33, import_NumberField, import_jsx_runtime47, NumberField;
|
|
4190
4216
|
var init_NumberField = __esm({
|
|
4191
4217
|
"src/components/NumberField/NumberField.tsx"() {
|
|
4192
4218
|
"use strict";
|
|
4193
4219
|
"use client";
|
|
4194
|
-
|
|
4220
|
+
import_dedupe40 = __toESM(require("classnames/dedupe"));
|
|
4195
4221
|
import_react33 = require("react");
|
|
4196
4222
|
init_TextField2();
|
|
4197
4223
|
import_NumberField = require("@simplybusiness/mobius/src/components/NumberField/NumberField.css");
|
|
@@ -4219,7 +4245,7 @@ var init_NumberField = __esm({
|
|
|
4219
4245
|
focusedInputRef.current = null;
|
|
4220
4246
|
};
|
|
4221
4247
|
}, [wheelHandler]);
|
|
4222
|
-
const containerClasses = (0,
|
|
4248
|
+
const containerClasses = (0, import_dedupe40.default)("mobius-number-field", className, {
|
|
4223
4249
|
"--hide-spin-buttons": hideSpinButtons
|
|
4224
4250
|
});
|
|
4225
4251
|
const handleBeforeInput = (event) => {
|
|
@@ -4345,12 +4371,12 @@ var init_ShowHideButton = __esm({
|
|
|
4345
4371
|
});
|
|
4346
4372
|
|
|
4347
4373
|
// src/components/PasswordField/PasswordField.tsx
|
|
4348
|
-
var
|
|
4374
|
+
var import_dedupe41, import_react34, import_PasswordField, import_jsx_runtime50, PasswordField;
|
|
4349
4375
|
var init_PasswordField = __esm({
|
|
4350
4376
|
"src/components/PasswordField/PasswordField.tsx"() {
|
|
4351
4377
|
"use strict";
|
|
4352
4378
|
"use client";
|
|
4353
|
-
|
|
4379
|
+
import_dedupe41 = __toESM(require("classnames/dedupe"));
|
|
4354
4380
|
import_react34 = require("react");
|
|
4355
4381
|
init_mergeRefs();
|
|
4356
4382
|
init_TextField2();
|
|
@@ -4365,7 +4391,7 @@ var init_PasswordField = __esm({
|
|
|
4365
4391
|
}) => {
|
|
4366
4392
|
const [show, setShow] = (0, import_react34.useState)(false);
|
|
4367
4393
|
const type = show ? "text" : "password";
|
|
4368
|
-
const classes = (0,
|
|
4394
|
+
const classes = (0, import_dedupe41.default)("mobius-password-field", className);
|
|
4369
4395
|
const localRef = (0, import_react34.useRef)(null);
|
|
4370
4396
|
const handleShowHideButtonClick = () => {
|
|
4371
4397
|
const selectionStart = localRef.current?.selectionStart;
|
|
@@ -4403,13 +4429,13 @@ var init_PasswordField2 = __esm({
|
|
|
4403
4429
|
});
|
|
4404
4430
|
|
|
4405
4431
|
// src/components/Popover/Popover.tsx
|
|
4406
|
-
var import_react35, import_icons12,
|
|
4432
|
+
var import_react35, import_icons12, import_dedupe42, import_react36, import_mobius_hooks6, import_Popover, import_jsx_runtime51, OFFSET_FROM_CONTENT_DEFAULT, Popover;
|
|
4407
4433
|
var init_Popover = __esm({
|
|
4408
4434
|
"src/components/Popover/Popover.tsx"() {
|
|
4409
4435
|
"use strict";
|
|
4410
4436
|
import_react35 = require("@floating-ui/react");
|
|
4411
4437
|
import_icons12 = require("@simplybusiness/icons");
|
|
4412
|
-
|
|
4438
|
+
import_dedupe42 = __toESM(require("classnames/dedupe"));
|
|
4413
4439
|
import_react36 = require("react");
|
|
4414
4440
|
import_mobius_hooks6 = require("@simplybusiness/mobius-hooks");
|
|
4415
4441
|
init_Button2();
|
|
@@ -4447,7 +4473,7 @@ var init_Popover = __esm({
|
|
|
4447
4473
|
}
|
|
4448
4474
|
});
|
|
4449
4475
|
const { getReferenceProps, getFloatingProps } = (0, import_react35.useInteractions)([dismiss]);
|
|
4450
|
-
const containerClasses = (0,
|
|
4476
|
+
const containerClasses = (0, import_dedupe42.default)(
|
|
4451
4477
|
"mobius",
|
|
4452
4478
|
"mobius-popover__container",
|
|
4453
4479
|
className
|
|
@@ -4482,7 +4508,7 @@ var init_Popover = __esm({
|
|
|
4482
4508
|
};
|
|
4483
4509
|
const triggerComponent = (0, import_react36.cloneElement)(trigger, {
|
|
4484
4510
|
ref: refs.setReference,
|
|
4485
|
-
className: (0,
|
|
4511
|
+
className: (0, import_dedupe42.default)(
|
|
4486
4512
|
trigger.props.className,
|
|
4487
4513
|
"mobius-popover__toggle"
|
|
4488
4514
|
),
|
|
@@ -4564,12 +4590,12 @@ function warnAboutInvalidValues(value, minValue, maxValue) {
|
|
|
4564
4590
|
console.warn("Progress value is greater than maxValue");
|
|
4565
4591
|
}
|
|
4566
4592
|
}
|
|
4567
|
-
var
|
|
4593
|
+
var import_dedupe43, import_react37, import_Progress, import_jsx_runtime52, sanitizedValue, getLabelComponent, DEFAULT_VALUE, DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, Progress;
|
|
4568
4594
|
var init_Progress = __esm({
|
|
4569
4595
|
"src/components/Progress/Progress.tsx"() {
|
|
4570
4596
|
"use strict";
|
|
4571
4597
|
"use client";
|
|
4572
|
-
|
|
4598
|
+
import_dedupe43 = __toESM(require("classnames/dedupe"));
|
|
4573
4599
|
import_react37 = require("react");
|
|
4574
4600
|
init_Label2();
|
|
4575
4601
|
init_VisuallyHidden2();
|
|
@@ -4633,7 +4659,7 @@ var init_Progress = __esm({
|
|
|
4633
4659
|
100
|
|
4634
4660
|
);
|
|
4635
4661
|
const barWidth = `${percentage}%`;
|
|
4636
|
-
const classes = (0,
|
|
4662
|
+
const classes = (0, import_dedupe43.default)("mobius", "mobius-progress", className, {
|
|
4637
4663
|
"--is-primary": variant === "primary",
|
|
4638
4664
|
"--is-secondary": variant === "secondary"
|
|
4639
4665
|
});
|
|
@@ -4673,12 +4699,12 @@ var init_Progress2 = __esm({
|
|
|
4673
4699
|
});
|
|
4674
4700
|
|
|
4675
4701
|
// src/components/Radio/Radio.tsx
|
|
4676
|
-
var
|
|
4702
|
+
var import_dedupe44, import_react38, import_Radio, import_jsx_runtime53, Radio;
|
|
4677
4703
|
var init_Radio = __esm({
|
|
4678
4704
|
"src/components/Radio/Radio.tsx"() {
|
|
4679
4705
|
"use strict";
|
|
4680
4706
|
"use client";
|
|
4681
|
-
|
|
4707
|
+
import_dedupe44 = __toESM(require("classnames/dedupe"));
|
|
4682
4708
|
import_react38 = require("react");
|
|
4683
4709
|
init_ErrorMessage2();
|
|
4684
4710
|
init_Label2();
|
|
@@ -4748,13 +4774,13 @@ var init_Radio = __esm({
|
|
|
4748
4774
|
"--is-multiline": !!isMultiline,
|
|
4749
4775
|
"--is-required": isRequired
|
|
4750
4776
|
};
|
|
4751
|
-
const containerClasses = (0,
|
|
4777
|
+
const containerClasses = (0, import_dedupe44.default)(
|
|
4752
4778
|
"mobius-radio__label",
|
|
4753
4779
|
radioClasses,
|
|
4754
4780
|
className,
|
|
4755
4781
|
{ "--has-icon-first": hasIconFirst }
|
|
4756
4782
|
);
|
|
4757
|
-
const inputClasses = (0,
|
|
4783
|
+
const inputClasses = (0, import_dedupe44.default)("mobius-radio__input", radioClasses);
|
|
4758
4784
|
const { "aria-describedby": _ariaDescribedBy, ...rest } = otherProps;
|
|
4759
4785
|
const handleChange = (event) => {
|
|
4760
4786
|
if (setSelected) {
|
|
@@ -4800,12 +4826,12 @@ var init_Radio = __esm({
|
|
|
4800
4826
|
});
|
|
4801
4827
|
|
|
4802
4828
|
// src/components/Radio/RadioGroup.tsx
|
|
4803
|
-
var
|
|
4829
|
+
var import_dedupe45, import_react39, import_jsx_runtime54, getDefaultVal, RadioGroup;
|
|
4804
4830
|
var init_RadioGroup = __esm({
|
|
4805
4831
|
"src/components/Radio/RadioGroup.tsx"() {
|
|
4806
4832
|
"use strict";
|
|
4807
4833
|
"use client";
|
|
4808
|
-
|
|
4834
|
+
import_dedupe45 = __toESM(require("classnames/dedupe"));
|
|
4809
4835
|
import_react39 = require("react");
|
|
4810
4836
|
init_hooks();
|
|
4811
4837
|
init_spaceDelimitedList();
|
|
@@ -4872,16 +4898,16 @@ var init_RadioGroup = __esm({
|
|
|
4872
4898
|
[`--is-${effectiveOrientation}`]: true,
|
|
4873
4899
|
[className || ""]: true
|
|
4874
4900
|
};
|
|
4875
|
-
const radioGroupClasses = (0,
|
|
4901
|
+
const radioGroupClasses = (0, import_dedupe45.default)(
|
|
4876
4902
|
"mobius",
|
|
4877
4903
|
"mobius-radio-group",
|
|
4878
4904
|
radioClasses,
|
|
4879
4905
|
validationClasses
|
|
4880
4906
|
);
|
|
4881
|
-
const radioWrapperClasses = (0,
|
|
4907
|
+
const radioWrapperClasses = (0, import_dedupe45.default)("mobius-radio__wrapper", {
|
|
4882
4908
|
[`--is-${effectiveOrientation}`]: true
|
|
4883
4909
|
});
|
|
4884
|
-
const labelClasses = (0,
|
|
4910
|
+
const labelClasses = (0, import_dedupe45.default)(radioClasses, validationClasses);
|
|
4885
4911
|
const errorMessageId = (0, import_react39.useId)();
|
|
4886
4912
|
const defaultNameAttrId = (0, import_react39.useId)();
|
|
4887
4913
|
const nameAttribute = name || defaultNameAttrId;
|
|
@@ -4949,16 +4975,16 @@ var init_Radio2 = __esm({
|
|
|
4949
4975
|
});
|
|
4950
4976
|
|
|
4951
4977
|
// src/components/Segment/SegmentGroup.tsx
|
|
4952
|
-
var
|
|
4978
|
+
var import_dedupe46, import_jsx_runtime55, SegmentGroup;
|
|
4953
4979
|
var init_SegmentGroup = __esm({
|
|
4954
4980
|
"src/components/Segment/SegmentGroup.tsx"() {
|
|
4955
4981
|
"use strict";
|
|
4956
|
-
|
|
4982
|
+
import_dedupe46 = __toESM(require("classnames/dedupe"));
|
|
4957
4983
|
import_jsx_runtime55 = require("react/jsx-runtime");
|
|
4958
4984
|
SegmentGroup = (props) => {
|
|
4959
4985
|
const { children, horizontal, gap, className, ...rest } = props;
|
|
4960
4986
|
const gapClass = gap ? `gap-${gap}` : "";
|
|
4961
|
-
const classes = (0,
|
|
4987
|
+
const classes = (0, import_dedupe46.default)(
|
|
4962
4988
|
"mobius",
|
|
4963
4989
|
"mobius-segment-group",
|
|
4964
4990
|
className,
|
|
@@ -4972,16 +4998,16 @@ var init_SegmentGroup = __esm({
|
|
|
4972
4998
|
});
|
|
4973
4999
|
|
|
4974
5000
|
// src/components/Segment/Segment.tsx
|
|
4975
|
-
var
|
|
5001
|
+
var import_dedupe47, import_Segment, import_jsx_runtime56, Segment;
|
|
4976
5002
|
var init_Segment = __esm({
|
|
4977
5003
|
"src/components/Segment/Segment.tsx"() {
|
|
4978
5004
|
"use strict";
|
|
4979
|
-
|
|
5005
|
+
import_dedupe47 = __toESM(require("classnames/dedupe"));
|
|
4980
5006
|
import_Segment = require("@simplybusiness/mobius/src/components/Segment/Segment.css");
|
|
4981
5007
|
import_jsx_runtime56 = require("react/jsx-runtime");
|
|
4982
5008
|
Segment = ({ ref, ...props }) => {
|
|
4983
5009
|
const { heading, children, colour, inverted, className, ...rest } = props;
|
|
4984
|
-
const classes = (0,
|
|
5010
|
+
const classes = (0, import_dedupe47.default)(
|
|
4985
5011
|
"mobius",
|
|
4986
5012
|
"mobius-segment",
|
|
4987
5013
|
colour,
|
|
@@ -5007,13 +5033,13 @@ var init_Segment2 = __esm({
|
|
|
5007
5033
|
});
|
|
5008
5034
|
|
|
5009
5035
|
// src/components/Select/Select.tsx
|
|
5010
|
-
var import_icons13,
|
|
5036
|
+
var import_icons13, import_dedupe48, import_react40, import_Select, import_jsx_runtime57, Select;
|
|
5011
5037
|
var init_Select = __esm({
|
|
5012
5038
|
"src/components/Select/Select.tsx"() {
|
|
5013
5039
|
"use strict";
|
|
5014
5040
|
"use client";
|
|
5015
5041
|
import_icons13 = require("@simplybusiness/icons");
|
|
5016
|
-
|
|
5042
|
+
import_dedupe48 = __toESM(require("classnames/dedupe"));
|
|
5017
5043
|
import_react40 = require("react");
|
|
5018
5044
|
init_hooks();
|
|
5019
5045
|
init_useLabel2();
|
|
@@ -5044,23 +5070,23 @@ var init_Select = __esm({
|
|
|
5044
5070
|
"--is-required": typeof isRequired === "boolean" && isRequired,
|
|
5045
5071
|
"--is-optional": typeof isRequired === "boolean" && !isRequired
|
|
5046
5072
|
};
|
|
5047
|
-
const sharedClasses = (0,
|
|
5048
|
-
const wrapperClasses = (0,
|
|
5073
|
+
const sharedClasses = (0, import_dedupe48.default)(validationClasses, stateClasses);
|
|
5074
|
+
const wrapperClasses = (0, import_dedupe48.default)(
|
|
5049
5075
|
"mobius-select__wrapper",
|
|
5050
5076
|
sharedClasses,
|
|
5051
5077
|
otherProps.className
|
|
5052
5078
|
);
|
|
5053
|
-
const selectClasses = (0,
|
|
5079
|
+
const selectClasses = (0, import_dedupe48.default)(
|
|
5054
5080
|
"mobius-select",
|
|
5055
5081
|
sharedClasses,
|
|
5056
5082
|
otherProps.className
|
|
5057
5083
|
);
|
|
5058
|
-
const labelClasses = (0,
|
|
5084
|
+
const labelClasses = (0, import_dedupe48.default)(
|
|
5059
5085
|
"mobius-label",
|
|
5060
5086
|
sharedClasses,
|
|
5061
5087
|
otherProps.className
|
|
5062
5088
|
);
|
|
5063
|
-
const iconClasses = (0,
|
|
5089
|
+
const iconClasses = (0, import_dedupe48.default)("mobius-select__icon", sharedClasses);
|
|
5064
5090
|
const errorMessageId = (0, import_react40.useId)();
|
|
5065
5091
|
const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
|
|
5066
5092
|
const describedBy = spaceDelimitedList([
|
|
@@ -5124,12 +5150,12 @@ var init_helpers = __esm({
|
|
|
5124
5150
|
});
|
|
5125
5151
|
|
|
5126
5152
|
// src/components/Slider/Slider.tsx
|
|
5127
|
-
var
|
|
5153
|
+
var import_dedupe49, import_react42, import_Slider, import_jsx_runtime58, Slider;
|
|
5128
5154
|
var init_Slider = __esm({
|
|
5129
5155
|
"src/components/Slider/Slider.tsx"() {
|
|
5130
5156
|
"use strict";
|
|
5131
5157
|
"use client";
|
|
5132
|
-
|
|
5158
|
+
import_dedupe49 = __toESM(require("classnames/dedupe"));
|
|
5133
5159
|
import_react42 = require("react");
|
|
5134
5160
|
init_hooks();
|
|
5135
5161
|
init_Label2();
|
|
@@ -5168,7 +5194,7 @@ var init_Slider = __esm({
|
|
|
5168
5194
|
"aria-labelledby": ariaLabelledBy
|
|
5169
5195
|
});
|
|
5170
5196
|
const formattedValue = numberFormatter(currentValue, formatOptions);
|
|
5171
|
-
const classes = (0,
|
|
5197
|
+
const classes = (0, import_dedupe49.default)("mobius", "mobius-slider", className, {
|
|
5172
5198
|
"--is-disabled": isDisabled,
|
|
5173
5199
|
"--is-primary": variant === "primary",
|
|
5174
5200
|
"--is-secondary": variant === "secondary",
|
|
@@ -5232,16 +5258,16 @@ var init_Slider2 = __esm({
|
|
|
5232
5258
|
});
|
|
5233
5259
|
|
|
5234
5260
|
// src/components/SVG/SVG.tsx
|
|
5235
|
-
var import_react43,
|
|
5261
|
+
var import_react43, import_dedupe50, import_jsx_runtime59, SVG;
|
|
5236
5262
|
var init_SVG = __esm({
|
|
5237
5263
|
"src/components/SVG/SVG.tsx"() {
|
|
5238
5264
|
"use strict";
|
|
5239
5265
|
import_react43 = require("react");
|
|
5240
|
-
|
|
5266
|
+
import_dedupe50 = __toESM(require("classnames/dedupe"));
|
|
5241
5267
|
import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5242
5268
|
SVG = ({ ref, ...props }) => {
|
|
5243
5269
|
const { children, className, ...otherProps } = props;
|
|
5244
|
-
const classes = (0,
|
|
5270
|
+
const classes = (0, import_dedupe50.default)("mobius", "mobius-svg", className);
|
|
5245
5271
|
const svgNode = import_react43.Children.only(children);
|
|
5246
5272
|
const { children: svgChildren, viewBox, xmlns } = svgNode.props;
|
|
5247
5273
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
@@ -5269,13 +5295,13 @@ var init_SVG2 = __esm({
|
|
|
5269
5295
|
});
|
|
5270
5296
|
|
|
5271
5297
|
// src/components/Switch/Switch.tsx
|
|
5272
|
-
var import_react44,
|
|
5298
|
+
var import_react44, import_dedupe51, import_Switch, import_jsx_runtime60, Switch;
|
|
5273
5299
|
var init_Switch = __esm({
|
|
5274
5300
|
"src/components/Switch/Switch.tsx"() {
|
|
5275
5301
|
"use strict";
|
|
5276
5302
|
"use client";
|
|
5277
5303
|
import_react44 = require("react");
|
|
5278
|
-
|
|
5304
|
+
import_dedupe51 = __toESM(require("classnames/dedupe"));
|
|
5279
5305
|
init_VisuallyHidden2();
|
|
5280
5306
|
import_Switch = require("@simplybusiness/mobius/src/components/Switch/Switch.css");
|
|
5281
5307
|
import_jsx_runtime60 = require("react/jsx-runtime");
|
|
@@ -5291,7 +5317,7 @@ var init_Switch = __esm({
|
|
|
5291
5317
|
(0, import_react44.useEffect)(() => {
|
|
5292
5318
|
setEnabled(checked);
|
|
5293
5319
|
}, [checked]);
|
|
5294
|
-
const classes = (0,
|
|
5320
|
+
const classes = (0, import_dedupe51.default)(
|
|
5295
5321
|
"mobius",
|
|
5296
5322
|
"mobius-switch",
|
|
5297
5323
|
{
|
|
@@ -5335,15 +5361,15 @@ var init_Switch2 = __esm({
|
|
|
5335
5361
|
});
|
|
5336
5362
|
|
|
5337
5363
|
// src/components/Table/Table.tsx
|
|
5338
|
-
var
|
|
5364
|
+
var import_dedupe52, import_Table, import_jsx_runtime61, Table;
|
|
5339
5365
|
var init_Table = __esm({
|
|
5340
5366
|
"src/components/Table/Table.tsx"() {
|
|
5341
5367
|
"use strict";
|
|
5342
|
-
|
|
5368
|
+
import_dedupe52 = __toESM(require("classnames/dedupe"));
|
|
5343
5369
|
import_Table = require("@simplybusiness/mobius/src/components/Table/Table.css");
|
|
5344
5370
|
import_jsx_runtime61 = require("react/jsx-runtime");
|
|
5345
5371
|
Table = ({ ref, ...props }) => {
|
|
5346
|
-
const classes = (0,
|
|
5372
|
+
const classes = (0, import_dedupe52.default)("mobius", "mobius-table", props.className);
|
|
5347
5373
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("table", { ref, ...props, className: classes });
|
|
5348
5374
|
};
|
|
5349
5375
|
Table.displayName = "Table";
|
|
@@ -5351,14 +5377,14 @@ var init_Table = __esm({
|
|
|
5351
5377
|
});
|
|
5352
5378
|
|
|
5353
5379
|
// src/components/Table/Head.tsx
|
|
5354
|
-
var
|
|
5380
|
+
var import_dedupe53, import_jsx_runtime62, Head;
|
|
5355
5381
|
var init_Head = __esm({
|
|
5356
5382
|
"src/components/Table/Head.tsx"() {
|
|
5357
5383
|
"use strict";
|
|
5358
|
-
|
|
5384
|
+
import_dedupe53 = __toESM(require("classnames/dedupe"));
|
|
5359
5385
|
import_jsx_runtime62 = require("react/jsx-runtime");
|
|
5360
5386
|
Head = ({ ref, ...props }) => {
|
|
5361
|
-
const classes = (0,
|
|
5387
|
+
const classes = (0, import_dedupe53.default)("mobius", "mobius-table__head", props.className);
|
|
5362
5388
|
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("thead", { ref, ...props, className: classes });
|
|
5363
5389
|
};
|
|
5364
5390
|
Head.displayName = "Table.Head";
|
|
@@ -5366,14 +5392,14 @@ var init_Head = __esm({
|
|
|
5366
5392
|
});
|
|
5367
5393
|
|
|
5368
5394
|
// src/components/Table/Body.tsx
|
|
5369
|
-
var
|
|
5395
|
+
var import_dedupe54, import_jsx_runtime63, Body;
|
|
5370
5396
|
var init_Body = __esm({
|
|
5371
5397
|
"src/components/Table/Body.tsx"() {
|
|
5372
5398
|
"use strict";
|
|
5373
|
-
|
|
5399
|
+
import_dedupe54 = __toESM(require("classnames/dedupe"));
|
|
5374
5400
|
import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5375
5401
|
Body = ({ ref, ...props }) => {
|
|
5376
|
-
const classes = (0,
|
|
5402
|
+
const classes = (0, import_dedupe54.default)("mobius", "mobius-table__body", props.className);
|
|
5377
5403
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("tbody", { ref, ...props, className: classes });
|
|
5378
5404
|
};
|
|
5379
5405
|
Body.displayName = "Table.Body";
|
|
@@ -5381,14 +5407,14 @@ var init_Body = __esm({
|
|
|
5381
5407
|
});
|
|
5382
5408
|
|
|
5383
5409
|
// src/components/Table/Foot.tsx
|
|
5384
|
-
var
|
|
5410
|
+
var import_dedupe55, import_jsx_runtime64, Foot;
|
|
5385
5411
|
var init_Foot = __esm({
|
|
5386
5412
|
"src/components/Table/Foot.tsx"() {
|
|
5387
5413
|
"use strict";
|
|
5388
|
-
|
|
5414
|
+
import_dedupe55 = __toESM(require("classnames/dedupe"));
|
|
5389
5415
|
import_jsx_runtime64 = require("react/jsx-runtime");
|
|
5390
5416
|
Foot = ({ ref, ...props }) => {
|
|
5391
|
-
const classes = (0,
|
|
5417
|
+
const classes = (0, import_dedupe55.default)("mobius", "mobius-table__foot", props.className);
|
|
5392
5418
|
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("tfoot", { ref, ...props, className: classes });
|
|
5393
5419
|
};
|
|
5394
5420
|
Foot.displayName = "Table.Foot";
|
|
@@ -5396,14 +5422,14 @@ var init_Foot = __esm({
|
|
|
5396
5422
|
});
|
|
5397
5423
|
|
|
5398
5424
|
// src/components/Table/Row.tsx
|
|
5399
|
-
var
|
|
5425
|
+
var import_dedupe56, import_jsx_runtime65, Row;
|
|
5400
5426
|
var init_Row = __esm({
|
|
5401
5427
|
"src/components/Table/Row.tsx"() {
|
|
5402
5428
|
"use strict";
|
|
5403
|
-
|
|
5429
|
+
import_dedupe56 = __toESM(require("classnames/dedupe"));
|
|
5404
5430
|
import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5405
5431
|
Row = ({ ref, ...props }) => {
|
|
5406
|
-
const classes = (0,
|
|
5432
|
+
const classes = (0, import_dedupe56.default)("mobius", "mobius-table__row", props.className);
|
|
5407
5433
|
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("tr", { ref, ...props, className: classes });
|
|
5408
5434
|
};
|
|
5409
5435
|
Row.displayName = "Table.Row";
|
|
@@ -5411,14 +5437,14 @@ var init_Row = __esm({
|
|
|
5411
5437
|
});
|
|
5412
5438
|
|
|
5413
5439
|
// src/components/Table/HeaderCell.tsx
|
|
5414
|
-
var
|
|
5440
|
+
var import_dedupe57, import_jsx_runtime66, HeaderCell;
|
|
5415
5441
|
var init_HeaderCell = __esm({
|
|
5416
5442
|
"src/components/Table/HeaderCell.tsx"() {
|
|
5417
5443
|
"use strict";
|
|
5418
|
-
|
|
5444
|
+
import_dedupe57 = __toESM(require("classnames/dedupe"));
|
|
5419
5445
|
import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5420
5446
|
HeaderCell = ({ ref, scope = "col", ...props }) => {
|
|
5421
|
-
const classes = (0,
|
|
5447
|
+
const classes = (0, import_dedupe57.default)(
|
|
5422
5448
|
"mobius",
|
|
5423
5449
|
"mobius-table__head-cell",
|
|
5424
5450
|
props.className
|
|
@@ -5430,14 +5456,14 @@ var init_HeaderCell = __esm({
|
|
|
5430
5456
|
});
|
|
5431
5457
|
|
|
5432
5458
|
// src/components/Table/Cell.tsx
|
|
5433
|
-
var
|
|
5459
|
+
var import_dedupe58, import_jsx_runtime67, Cell;
|
|
5434
5460
|
var init_Cell = __esm({
|
|
5435
5461
|
"src/components/Table/Cell.tsx"() {
|
|
5436
5462
|
"use strict";
|
|
5437
|
-
|
|
5463
|
+
import_dedupe58 = __toESM(require("classnames/dedupe"));
|
|
5438
5464
|
import_jsx_runtime67 = require("react/jsx-runtime");
|
|
5439
5465
|
Cell = ({ ref, ...props }) => {
|
|
5440
|
-
const classes = (0,
|
|
5466
|
+
const classes = (0, import_dedupe58.default)(
|
|
5441
5467
|
"mobius",
|
|
5442
5468
|
"mobius-table__body-cell",
|
|
5443
5469
|
props.className
|
|
@@ -5481,15 +5507,15 @@ var init_Text2 = __esm({
|
|
|
5481
5507
|
});
|
|
5482
5508
|
|
|
5483
5509
|
// src/components/TextAreaInput/TextAreaInput.tsx
|
|
5484
|
-
var
|
|
5510
|
+
var import_dedupe59, import_jsx_runtime68, TextAreaInput;
|
|
5485
5511
|
var init_TextAreaInput = __esm({
|
|
5486
5512
|
"src/components/TextAreaInput/TextAreaInput.tsx"() {
|
|
5487
5513
|
"use strict";
|
|
5488
|
-
|
|
5514
|
+
import_dedupe59 = __toESM(require("classnames/dedupe"));
|
|
5489
5515
|
import_jsx_runtime68 = require("react/jsx-runtime");
|
|
5490
5516
|
TextAreaInput = ({ ref, ...props }) => {
|
|
5491
5517
|
const { isSelected, isDisabled, isReadOnly, isRequired, ...otherProps } = props;
|
|
5492
|
-
const classes = (0,
|
|
5518
|
+
const classes = (0, import_dedupe59.default)(
|
|
5493
5519
|
"mobius",
|
|
5494
5520
|
"mobius-text-area__input",
|
|
5495
5521
|
{
|
|
@@ -5523,12 +5549,12 @@ var init_TextAreaInput2 = __esm({
|
|
|
5523
5549
|
});
|
|
5524
5550
|
|
|
5525
5551
|
// src/components/TextArea/TextArea.tsx
|
|
5526
|
-
var
|
|
5552
|
+
var import_dedupe60, import_TextArea, import_jsx_runtime69, TextArea;
|
|
5527
5553
|
var init_TextArea = __esm({
|
|
5528
5554
|
"src/components/TextArea/TextArea.tsx"() {
|
|
5529
5555
|
"use strict";
|
|
5530
5556
|
"use client";
|
|
5531
|
-
|
|
5557
|
+
import_dedupe60 = __toESM(require("classnames/dedupe"));
|
|
5532
5558
|
init_hooks();
|
|
5533
5559
|
init_ErrorMessage2();
|
|
5534
5560
|
init_Label2();
|
|
@@ -5546,10 +5572,10 @@ var init_TextArea = __esm({
|
|
|
5546
5572
|
...otherProps
|
|
5547
5573
|
} = props;
|
|
5548
5574
|
const { inputProps, labelProps, errorMessageProps } = useTextField(props);
|
|
5549
|
-
const classes = (0,
|
|
5575
|
+
const classes = (0, import_dedupe60.default)("mobius", "mobius-text-area", className);
|
|
5550
5576
|
const validationClasses = useValidationClasses({ isInvalid });
|
|
5551
|
-
const inputClasses = (0,
|
|
5552
|
-
const labelClasses = (0,
|
|
5577
|
+
const inputClasses = (0, import_dedupe60.default)("mobius-text-area__input", validationClasses);
|
|
5578
|
+
const labelClasses = (0, import_dedupe60.default)(
|
|
5553
5579
|
{
|
|
5554
5580
|
"--is-disabled": isDisabled
|
|
5555
5581
|
},
|
|
@@ -5584,11 +5610,11 @@ var init_TextArea2 = __esm({
|
|
|
5584
5610
|
});
|
|
5585
5611
|
|
|
5586
5612
|
// src/components/Title/Title.tsx
|
|
5587
|
-
var
|
|
5613
|
+
var import_dedupe61, import_Title, import_jsx_runtime70, Title;
|
|
5588
5614
|
var init_Title = __esm({
|
|
5589
5615
|
"src/components/Title/Title.tsx"() {
|
|
5590
5616
|
"use strict";
|
|
5591
|
-
|
|
5617
|
+
import_dedupe61 = __toESM(require("classnames/dedupe"));
|
|
5592
5618
|
init_Flex2();
|
|
5593
5619
|
import_Title = require("@simplybusiness/mobius/src/components/Title/Title.css");
|
|
5594
5620
|
import_jsx_runtime70 = require("react/jsx-runtime");
|
|
@@ -5599,10 +5625,10 @@ var init_Title = __esm({
|
|
|
5599
5625
|
description,
|
|
5600
5626
|
...otherProps
|
|
5601
5627
|
} = props;
|
|
5602
|
-
const classes = (0,
|
|
5603
|
-
const headerClasses = (0,
|
|
5604
|
-
const contentClasses = (0,
|
|
5605
|
-
const containerClasses = (0,
|
|
5628
|
+
const classes = (0, import_dedupe61.default)("mobius", "mobius-title", otherProps.className);
|
|
5629
|
+
const headerClasses = (0, import_dedupe61.default)("mobius", "mobius-title__header");
|
|
5630
|
+
const contentClasses = (0, import_dedupe61.default)("mobius", "mobius-title__description");
|
|
5631
|
+
const containerClasses = (0, import_dedupe61.default)("mobius", "mobius-title__container");
|
|
5606
5632
|
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Element, { ref, ...otherProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(Flex, { flexDirection: "column", className: containerClasses, children: [
|
|
5607
5633
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: headerClasses, children: title }),
|
|
5608
5634
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: contentClasses, children: description })
|
|
@@ -5632,12 +5658,12 @@ var init_state = __esm({
|
|
|
5632
5658
|
});
|
|
5633
5659
|
|
|
5634
5660
|
// src/components/Toast/Toast.tsx
|
|
5635
|
-
var import_icons14,
|
|
5661
|
+
var import_icons14, import_dedupe62, import_sonner, import_Toast, import_jsx_runtime71, variantIcons, variantColors, ToastIcon, CloseIcon, ToastContent, createCustomToast, toast;
|
|
5636
5662
|
var init_Toast = __esm({
|
|
5637
5663
|
"src/components/Toast/Toast.tsx"() {
|
|
5638
5664
|
"use strict";
|
|
5639
5665
|
import_icons14 = require("@simplybusiness/icons");
|
|
5640
|
-
|
|
5666
|
+
import_dedupe62 = __toESM(require("classnames/dedupe"));
|
|
5641
5667
|
import_sonner = require("sonner");
|
|
5642
5668
|
init_Icon2();
|
|
5643
5669
|
init_state();
|
|
@@ -5665,7 +5691,7 @@ var init_Toast = __esm({
|
|
|
5665
5691
|
action,
|
|
5666
5692
|
cancel,
|
|
5667
5693
|
showCloseButton = toastState.showCloseButton
|
|
5668
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: (0,
|
|
5694
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: (0, import_dedupe62.default)("mobius", "mobius-toast", `--${variant}`), children: [
|
|
5669
5695
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ToastIcon, { variant }),
|
|
5670
5696
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "mobius-toast__body", children: [
|
|
5671
5697
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "mobius-toast__content", children: [
|
|
@@ -5857,11 +5883,11 @@ var init_constants = __esm({
|
|
|
5857
5883
|
});
|
|
5858
5884
|
|
|
5859
5885
|
// src/components/Trust/Trust.tsx
|
|
5860
|
-
var
|
|
5886
|
+
var import_dedupe63, import_react46, import_jsx_runtime73, Trust;
|
|
5861
5887
|
var init_Trust = __esm({
|
|
5862
5888
|
"src/components/Trust/Trust.tsx"() {
|
|
5863
5889
|
"use strict";
|
|
5864
|
-
|
|
5890
|
+
import_dedupe63 = __toESM(require("classnames/dedupe"));
|
|
5865
5891
|
import_react46 = require("react");
|
|
5866
5892
|
init_utils();
|
|
5867
5893
|
init_constants();
|
|
@@ -5895,7 +5921,7 @@ var init_Trust = __esm({
|
|
|
5895
5921
|
"data-style-height": height,
|
|
5896
5922
|
"data-stars": stars
|
|
5897
5923
|
};
|
|
5898
|
-
const classes = (0,
|
|
5924
|
+
const classes = (0, import_dedupe63.default)(
|
|
5899
5925
|
"mobius",
|
|
5900
5926
|
"mobius-trust",
|
|
5901
5927
|
REQUIRED_TRUSTPILOT_CLASS_NAME,
|
|
@@ -5955,12 +5981,12 @@ var init_Trust2 = __esm({
|
|
|
5955
5981
|
});
|
|
5956
5982
|
|
|
5957
5983
|
// src/components/ExpandableText/ExpandableText.tsx
|
|
5958
|
-
var
|
|
5984
|
+
var import_dedupe64, import_react47, import_ExpandableText, import_jsx_runtime74, ExpandableText;
|
|
5959
5985
|
var init_ExpandableText = __esm({
|
|
5960
5986
|
"src/components/ExpandableText/ExpandableText.tsx"() {
|
|
5961
5987
|
"use strict";
|
|
5962
5988
|
"use client";
|
|
5963
|
-
|
|
5989
|
+
import_dedupe64 = __toESM(require("classnames/dedupe"));
|
|
5964
5990
|
import_react47 = require("react");
|
|
5965
5991
|
init_src();
|
|
5966
5992
|
import_ExpandableText = require("@simplybusiness/mobius/src/components/ExpandableText/ExpandableText.css");
|
|
@@ -6001,8 +6027,8 @@ var init_ExpandableText = __esm({
|
|
|
6001
6027
|
setIsExpanded(expanded);
|
|
6002
6028
|
onToggle?.(expanded);
|
|
6003
6029
|
};
|
|
6004
|
-
const classes = (0,
|
|
6005
|
-
const textContainerClasses = (0,
|
|
6030
|
+
const classes = (0, import_dedupe64.default)("mobius-expandable-text", className);
|
|
6031
|
+
const textContainerClasses = (0, import_dedupe64.default)("mobius-expandable-text__content", {
|
|
6006
6032
|
"mobius-expandable-text__content--collapsed": !isExpanded
|
|
6007
6033
|
});
|
|
6008
6034
|
const textContainerStyle = {
|
|
@@ -6404,6 +6430,7 @@ __export(src_exports, {
|
|
|
6404
6430
|
VisuallyHidden: () => VisuallyHidden,
|
|
6405
6431
|
buildOptionTestId: () => buildOptionTestId,
|
|
6406
6432
|
convertToDateFormat: () => convertToDateFormat,
|
|
6433
|
+
getElementType: () => getElementType,
|
|
6407
6434
|
isValidDate: () => isValidDate,
|
|
6408
6435
|
toast: () => toast,
|
|
6409
6436
|
useBreakpoint: () => useBreakpoint,
|