@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
|
@@ -2453,14 +2453,28 @@ var init_Text = __esm({
|
|
|
2453
2453
|
});
|
|
2454
2454
|
|
|
2455
2455
|
// src/components/TextOrHTML/TextOrHTML.tsx
|
|
2456
|
-
var import_react15, import_jsx_runtime17,
|
|
2456
|
+
var import_dedupe16, import_react15, import_jsx_runtime17, isBlockHTML, containsHTML, buildTextClasses, TextOrHTML;
|
|
2457
2457
|
var init_TextOrHTML = __esm({
|
|
2458
2458
|
"src/components/TextOrHTML/TextOrHTML.tsx"() {
|
|
2459
2459
|
"use strict";
|
|
2460
|
+
import_dedupe16 = __toESM(require("classnames/dedupe"));
|
|
2460
2461
|
import_react15 = require("react");
|
|
2461
2462
|
init_Text();
|
|
2462
2463
|
import_jsx_runtime17 = require("react/jsx-runtime");
|
|
2463
|
-
|
|
2464
|
+
isBlockHTML = (text) => /^\s*<[a-z]/i.test(text);
|
|
2465
|
+
containsHTML = (text) => /<[a-z/]/i.test(text) || /&(?:#\d+|#x[\da-f]+|[a-z]\w*);/i.test(text);
|
|
2466
|
+
buildTextClasses = (textProps, htmlClassName) => {
|
|
2467
|
+
const { variant, elementType, spacing, className } = textProps;
|
|
2468
|
+
const variantType = variant || getElementType(variant, elementType);
|
|
2469
|
+
return (0, import_dedupe16.default)(
|
|
2470
|
+
"mobius",
|
|
2471
|
+
"mobius-text",
|
|
2472
|
+
{ [`--is-${variantType}`]: variantType },
|
|
2473
|
+
{ [`--has-line-height-${spacing}`]: spacing },
|
|
2474
|
+
className,
|
|
2475
|
+
htmlClassName
|
|
2476
|
+
);
|
|
2477
|
+
};
|
|
2464
2478
|
TextOrHTML = ({
|
|
2465
2479
|
ref,
|
|
2466
2480
|
text,
|
|
@@ -2470,11 +2484,23 @@ var init_TextOrHTML = __esm({
|
|
|
2470
2484
|
autoDetect = false,
|
|
2471
2485
|
...textProps
|
|
2472
2486
|
}) => {
|
|
2473
|
-
const
|
|
2474
|
-
const shouldWrapInText = autoDetect ? textWrapper || !textIsHTML : textWrapper;
|
|
2475
|
-
const resolvedElementType = htmlElementType ?? (textIsHTML ? "div" : "span");
|
|
2476
|
-
const DangerousComponent = resolvedElementType;
|
|
2487
|
+
const textIsBlockHTML = autoDetect && isBlockHTML(text);
|
|
2477
2488
|
const dangerousHTML = (0, import_react15.useMemo)(() => ({ __html: text }), [text]);
|
|
2489
|
+
if (autoDetect && !textIsBlockHTML) {
|
|
2490
|
+
const { variant, spacing, elementType, className, ...domProps } = textProps;
|
|
2491
|
+
const Element = getElementType(variant, elementType);
|
|
2492
|
+
const classes = buildTextClasses(textProps, htmlClassName);
|
|
2493
|
+
return containsHTML(text) ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2494
|
+
Element,
|
|
2495
|
+
{
|
|
2496
|
+
ref,
|
|
2497
|
+
...domProps,
|
|
2498
|
+
className: classes,
|
|
2499
|
+
dangerouslySetInnerHTML: dangerousHTML
|
|
2500
|
+
}
|
|
2501
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Element, { ref, ...domProps, className: classes, children: text });
|
|
2502
|
+
}
|
|
2503
|
+
const DangerousComponent = htmlElementType ?? (textIsBlockHTML ? "div" : "span");
|
|
2478
2504
|
const dangerousElement = /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2479
2505
|
DangerousComponent,
|
|
2480
2506
|
{
|
|
@@ -2482,7 +2508,7 @@ var init_TextOrHTML = __esm({
|
|
|
2482
2508
|
dangerouslySetInnerHTML: dangerousHTML
|
|
2483
2509
|
}
|
|
2484
2510
|
);
|
|
2485
|
-
if (
|
|
2511
|
+
if (textWrapper) {
|
|
2486
2512
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Text, { ref, ...textProps, children: dangerousElement });
|
|
2487
2513
|
}
|
|
2488
2514
|
return dangerousElement;
|
|
@@ -2503,12 +2529,12 @@ var init_TextOrHTML2 = __esm({
|
|
|
2503
2529
|
function isAlertVariant(value) {
|
|
2504
2530
|
return value === "info" || value === "success" || value === "warning" || value === "error";
|
|
2505
2531
|
}
|
|
2506
|
-
var import_icons4,
|
|
2532
|
+
var import_icons4, import_dedupe17, import_Alert, import_jsx_runtime18, Alert;
|
|
2507
2533
|
var init_Alert = __esm({
|
|
2508
2534
|
"src/components/Alert/Alert.tsx"() {
|
|
2509
2535
|
"use strict";
|
|
2510
2536
|
import_icons4 = require("@simplybusiness/icons");
|
|
2511
|
-
|
|
2537
|
+
import_dedupe17 = __toESM(require("classnames/dedupe"));
|
|
2512
2538
|
init_Icon2();
|
|
2513
2539
|
init_TextOrHTML2();
|
|
2514
2540
|
import_Alert = require("@simplybusiness/mobius/src/components/Alert/Alert.css");
|
|
@@ -2525,7 +2551,7 @@ var init_Alert = __esm({
|
|
|
2525
2551
|
if (!show) return null;
|
|
2526
2552
|
const variant = variantProp && isAlertVariant(variantProp) ? variantProp : "info";
|
|
2527
2553
|
const colorValue = variant === "success" ? `var(--color-valid)` : `var(--color-${variant})`;
|
|
2528
|
-
const classes = (0,
|
|
2554
|
+
const classes = (0, import_dedupe17.default)(
|
|
2529
2555
|
"mobius",
|
|
2530
2556
|
"mobius-alert",
|
|
2531
2557
|
{
|
|
@@ -2543,9 +2569,9 @@ var init_Alert = __esm({
|
|
|
2543
2569
|
warning: import_icons4.warning,
|
|
2544
2570
|
error: import_icons4.error
|
|
2545
2571
|
};
|
|
2546
|
-
const headerClasses = (0,
|
|
2547
|
-
const iconClasses = (0,
|
|
2548
|
-
const contentClasses = (0,
|
|
2572
|
+
const headerClasses = (0, import_dedupe17.default)("mobius", "mobius-alert__header");
|
|
2573
|
+
const iconClasses = (0, import_dedupe17.default)("mobius", "mobius-alert__icon");
|
|
2574
|
+
const contentClasses = (0, import_dedupe17.default)("mobius", "mobius-alert__content");
|
|
2549
2575
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Element, { ref, role: "alert", ...otherProps, className: classes, children: [
|
|
2550
2576
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: iconClasses, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Icon, { icon: icon[variant], color: colorValue }) }),
|
|
2551
2577
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { children: [
|
|
@@ -2576,11 +2602,11 @@ var init_Alert2 = __esm({
|
|
|
2576
2602
|
});
|
|
2577
2603
|
|
|
2578
2604
|
// src/components/Box/Box.tsx
|
|
2579
|
-
var
|
|
2605
|
+
var import_dedupe18, import_Box, import_jsx_runtime19, Box;
|
|
2580
2606
|
var init_Box = __esm({
|
|
2581
2607
|
"src/components/Box/Box.tsx"() {
|
|
2582
2608
|
"use strict";
|
|
2583
|
-
|
|
2609
|
+
import_dedupe18 = __toESM(require("classnames/dedupe"));
|
|
2584
2610
|
init_utils();
|
|
2585
2611
|
import_Box = require("@simplybusiness/mobius/src/components/Box/Box.css");
|
|
2586
2612
|
import_jsx_runtime19 = require("react/jsx-runtime");
|
|
@@ -2609,7 +2635,7 @@ var init_Box = __esm({
|
|
|
2609
2635
|
style,
|
|
2610
2636
|
...otherProps
|
|
2611
2637
|
} = props;
|
|
2612
|
-
const classes = (0,
|
|
2638
|
+
const classes = (0, import_dedupe18.default)("mobius", "mobius-box", otherProps.className);
|
|
2613
2639
|
const fromProps = filterUndefinedProps({
|
|
2614
2640
|
padding: getSpacingValue(padding),
|
|
2615
2641
|
paddingInline: getSpacingValue(paddingInline || paddingX),
|
|
@@ -2644,13 +2670,13 @@ var init_Box2 = __esm({
|
|
|
2644
2670
|
});
|
|
2645
2671
|
|
|
2646
2672
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
2647
|
-
var import_react16,
|
|
2673
|
+
var import_react16, import_dedupe19, import_Breadcrumbs, import_jsx_runtime20, Breadcrumbs;
|
|
2648
2674
|
var init_Breadcrumbs = __esm({
|
|
2649
2675
|
"src/components/Breadcrumbs/Breadcrumbs.tsx"() {
|
|
2650
2676
|
"use strict";
|
|
2651
2677
|
"use client";
|
|
2652
2678
|
import_react16 = require("react");
|
|
2653
|
-
|
|
2679
|
+
import_dedupe19 = __toESM(require("classnames/dedupe"));
|
|
2654
2680
|
import_Breadcrumbs = require("@simplybusiness/mobius/src/components/Breadcrumbs/Breadcrumbs.css");
|
|
2655
2681
|
import_jsx_runtime20 = require("react/jsx-runtime");
|
|
2656
2682
|
Breadcrumbs = ({ ref, ...props }) => {
|
|
@@ -2658,7 +2684,7 @@ var init_Breadcrumbs = __esm({
|
|
|
2658
2684
|
const { navProps } = { navProps: { "aria-label": ariaLabel } };
|
|
2659
2685
|
const { children, ...otherProps } = props;
|
|
2660
2686
|
const childArray = import_react16.Children.toArray(children);
|
|
2661
|
-
const classes = (0,
|
|
2687
|
+
const classes = (0, import_dedupe19.default)(
|
|
2662
2688
|
"mobius",
|
|
2663
2689
|
"mobius-breadcrumb",
|
|
2664
2690
|
otherProps.className
|
|
@@ -2678,13 +2704,13 @@ var init_Breadcrumbs = __esm({
|
|
|
2678
2704
|
});
|
|
2679
2705
|
|
|
2680
2706
|
// src/components/Breadcrumbs/BreadcrumbItem.tsx
|
|
2681
|
-
var import_react17,
|
|
2707
|
+
var import_react17, import_dedupe20, import_jsx_runtime21, BreadcrumbItem;
|
|
2682
2708
|
var init_BreadcrumbItem = __esm({
|
|
2683
2709
|
"src/components/Breadcrumbs/BreadcrumbItem.tsx"() {
|
|
2684
2710
|
"use strict";
|
|
2685
2711
|
"use client";
|
|
2686
2712
|
import_react17 = require("react");
|
|
2687
|
-
|
|
2713
|
+
import_dedupe20 = __toESM(require("classnames/dedupe"));
|
|
2688
2714
|
init_Box2();
|
|
2689
2715
|
import_jsx_runtime21 = require("react/jsx-runtime");
|
|
2690
2716
|
BreadcrumbItem = ({ ref, ...props }) => {
|
|
@@ -2703,7 +2729,7 @@ var init_BreadcrumbItem = __esm({
|
|
|
2703
2729
|
...otherProps
|
|
2704
2730
|
}
|
|
2705
2731
|
};
|
|
2706
|
-
const classes = (0,
|
|
2732
|
+
const classes = (0, import_dedupe20.default)(
|
|
2707
2733
|
"mobius",
|
|
2708
2734
|
"mobius-breadcrumb__item",
|
|
2709
2735
|
props.className
|
|
@@ -2768,12 +2794,12 @@ var init_Success = __esm({
|
|
|
2768
2794
|
});
|
|
2769
2795
|
|
|
2770
2796
|
// src/components/Button/Button.tsx
|
|
2771
|
-
var
|
|
2797
|
+
var import_dedupe21, import_Button, import_jsx_runtime24, Button;
|
|
2772
2798
|
var init_Button = __esm({
|
|
2773
2799
|
"src/components/Button/Button.tsx"() {
|
|
2774
2800
|
"use strict";
|
|
2775
2801
|
"use client";
|
|
2776
|
-
|
|
2802
|
+
import_dedupe21 = __toESM(require("classnames/dedupe"));
|
|
2777
2803
|
init_Loading();
|
|
2778
2804
|
init_useButton2();
|
|
2779
2805
|
init_Success();
|
|
@@ -2793,7 +2819,7 @@ var init_Button = __esm({
|
|
|
2793
2819
|
...otherProps
|
|
2794
2820
|
} = props;
|
|
2795
2821
|
const { buttonProps } = useButton(props);
|
|
2796
|
-
otherProps.className = (0,
|
|
2822
|
+
otherProps.className = (0, import_dedupe21.default)(
|
|
2797
2823
|
"mobius",
|
|
2798
2824
|
"mobius-button",
|
|
2799
2825
|
`--variant-${variant}`,
|
|
@@ -2823,13 +2849,13 @@ var init_Button2 = __esm({
|
|
|
2823
2849
|
});
|
|
2824
2850
|
|
|
2825
2851
|
// src/components/Checkbox/Checkbox.tsx
|
|
2826
|
-
var import_react18,
|
|
2852
|
+
var import_react18, import_dedupe22, import_icons7, import_Checkbox, import_jsx_runtime25, Checkbox;
|
|
2827
2853
|
var init_Checkbox = __esm({
|
|
2828
2854
|
"src/components/Checkbox/Checkbox.tsx"() {
|
|
2829
2855
|
"use strict";
|
|
2830
2856
|
"use client";
|
|
2831
2857
|
import_react18 = require("react");
|
|
2832
|
-
|
|
2858
|
+
import_dedupe22 = __toESM(require("classnames/dedupe"));
|
|
2833
2859
|
import_icons7 = require("@simplybusiness/icons");
|
|
2834
2860
|
init_ErrorMessage2();
|
|
2835
2861
|
init_spaceDelimitedList();
|
|
@@ -2868,7 +2894,7 @@ var init_Checkbox = __esm({
|
|
|
2868
2894
|
}
|
|
2869
2895
|
}, [selected, isControlled]);
|
|
2870
2896
|
const validationClasses = useValidationClasses({ isInvalid });
|
|
2871
|
-
const sharedClasses = (0,
|
|
2897
|
+
const sharedClasses = (0, import_dedupe22.default)(
|
|
2872
2898
|
{
|
|
2873
2899
|
"--is-disabled": isDisabled,
|
|
2874
2900
|
"--is-selected": checked,
|
|
@@ -2877,15 +2903,15 @@ var init_Checkbox = __esm({
|
|
|
2877
2903
|
},
|
|
2878
2904
|
validationClasses
|
|
2879
2905
|
);
|
|
2880
|
-
const wrapperClasses = (0,
|
|
2906
|
+
const wrapperClasses = (0, import_dedupe22.default)(
|
|
2881
2907
|
"mobius",
|
|
2882
2908
|
"mobius-checkbox",
|
|
2883
2909
|
sharedClasses,
|
|
2884
2910
|
className
|
|
2885
2911
|
);
|
|
2886
|
-
const labelClasses = (0,
|
|
2887
|
-
const inputClasses = (0,
|
|
2888
|
-
const iconClasses = (0,
|
|
2912
|
+
const labelClasses = (0, import_dedupe22.default)("mobius-checkbox__label", sharedClasses);
|
|
2913
|
+
const inputClasses = (0, import_dedupe22.default)("mobius-checkbox__input", sharedClasses);
|
|
2914
|
+
const iconClasses = (0, import_dedupe22.default)("mobius-checkbox__icon", sharedClasses);
|
|
2889
2915
|
const errorMessageId = (0, import_react18.useId)();
|
|
2890
2916
|
const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
|
|
2891
2917
|
const describedBy = spaceDelimitedList([
|
|
@@ -2940,12 +2966,12 @@ var init_Checkbox = __esm({
|
|
|
2940
2966
|
});
|
|
2941
2967
|
|
|
2942
2968
|
// src/components/Checkbox/CheckboxGroup.tsx
|
|
2943
|
-
var
|
|
2969
|
+
var import_dedupe23, import_react19, import_CheckboxGroup, import_jsx_runtime26, CheckboxGroup;
|
|
2944
2970
|
var init_CheckboxGroup = __esm({
|
|
2945
2971
|
"src/components/Checkbox/CheckboxGroup.tsx"() {
|
|
2946
2972
|
"use strict";
|
|
2947
2973
|
"use client";
|
|
2948
|
-
|
|
2974
|
+
import_dedupe23 = __toESM(require("classnames/dedupe"));
|
|
2949
2975
|
import_react19 = require("react");
|
|
2950
2976
|
init_hooks();
|
|
2951
2977
|
init_spaceDelimitedList();
|
|
@@ -2984,7 +3010,7 @@ var init_CheckboxGroup = __esm({
|
|
|
2984
3010
|
isInitializedRef.current = true;
|
|
2985
3011
|
}
|
|
2986
3012
|
}, [defaultValue]);
|
|
2987
|
-
const checkboxGroupClasses = (0,
|
|
3013
|
+
const checkboxGroupClasses = (0, import_dedupe23.default)(
|
|
2988
3014
|
"mobius",
|
|
2989
3015
|
"mobius-checkbox-group",
|
|
2990
3016
|
className,
|
|
@@ -2996,7 +3022,7 @@ var init_CheckboxGroup = __esm({
|
|
|
2996
3022
|
}
|
|
2997
3023
|
);
|
|
2998
3024
|
const validationClasses = useValidationClasses({ isInvalid });
|
|
2999
|
-
const labelClasses = (0,
|
|
3025
|
+
const labelClasses = (0, import_dedupe23.default)(
|
|
3000
3026
|
{
|
|
3001
3027
|
"--is-disabled": isDisabled
|
|
3002
3028
|
},
|
|
@@ -3092,17 +3118,17 @@ var init_Checkbox2 = __esm({
|
|
|
3092
3118
|
});
|
|
3093
3119
|
|
|
3094
3120
|
// src/components/Container/Container.tsx
|
|
3095
|
-
var
|
|
3121
|
+
var import_dedupe24, import_Container, import_jsx_runtime27, Container;
|
|
3096
3122
|
var init_Container = __esm({
|
|
3097
3123
|
"src/components/Container/Container.tsx"() {
|
|
3098
3124
|
"use strict";
|
|
3099
|
-
|
|
3125
|
+
import_dedupe24 = __toESM(require("classnames/dedupe"));
|
|
3100
3126
|
init_utils();
|
|
3101
3127
|
import_Container = require("@simplybusiness/mobius/src/components/Container/Container.css");
|
|
3102
3128
|
import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3103
3129
|
Container = ({ ref, ...props }) => {
|
|
3104
3130
|
const { elementType: Element = "div", size = "md", ...otherProps } = props;
|
|
3105
|
-
const classes = (0,
|
|
3131
|
+
const classes = (0, import_dedupe24.default)(
|
|
3106
3132
|
"mobius",
|
|
3107
3133
|
"mobius-container",
|
|
3108
3134
|
sizeClasses(size),
|
|
@@ -3161,12 +3187,12 @@ var init_validation = __esm({
|
|
|
3161
3187
|
});
|
|
3162
3188
|
|
|
3163
3189
|
// src/components/DateField/DateField.tsx
|
|
3164
|
-
var
|
|
3190
|
+
var import_dedupe25, import_react20, import_jsx_runtime28, MIN_MAX_ERROR, DateField;
|
|
3165
3191
|
var init_DateField = __esm({
|
|
3166
3192
|
"src/components/DateField/DateField.tsx"() {
|
|
3167
3193
|
"use strict";
|
|
3168
3194
|
"use client";
|
|
3169
|
-
|
|
3195
|
+
import_dedupe25 = __toESM(require("classnames/dedupe"));
|
|
3170
3196
|
import_react20 = require("react");
|
|
3171
3197
|
init_mergeRefs();
|
|
3172
3198
|
init_TextField2();
|
|
@@ -3187,7 +3213,7 @@ var init_DateField = __esm({
|
|
|
3187
3213
|
const [error3, setError] = (0, import_react20.useState)(errorMessage);
|
|
3188
3214
|
const [isInvalid, setIsInvalid] = (0, import_react20.useState)(void 0);
|
|
3189
3215
|
const localRef = (0, import_react20.useRef)(null);
|
|
3190
|
-
const classes = (0,
|
|
3216
|
+
const classes = (0, import_dedupe25.default)("mobius-date-field", className);
|
|
3191
3217
|
const formattedMin = min ? convertToDateFormat(min, format) : void 0;
|
|
3192
3218
|
const formattedMax = max ? convertToDateFormat(max, format) : void 0;
|
|
3193
3219
|
const formattedDefaultValue = defaultValue ? convertToDateFormat(defaultValue, format) : void 0;
|
|
@@ -3290,12 +3316,12 @@ var init_DrawerContext = __esm({
|
|
|
3290
3316
|
});
|
|
3291
3317
|
|
|
3292
3318
|
// src/components/Drawer/Drawer.tsx
|
|
3293
|
-
var
|
|
3319
|
+
var import_dedupe26, import_react22, import_Drawer, import_jsx_runtime30, TRANSITION_CSS_VARIABLE, Drawer;
|
|
3294
3320
|
var init_Drawer = __esm({
|
|
3295
3321
|
"src/components/Drawer/Drawer.tsx"() {
|
|
3296
3322
|
"use strict";
|
|
3297
3323
|
"use client";
|
|
3298
|
-
|
|
3324
|
+
import_dedupe26 = __toESM(require("classnames/dedupe"));
|
|
3299
3325
|
import_react22 = require("react");
|
|
3300
3326
|
init_hooks();
|
|
3301
3327
|
init_utils();
|
|
@@ -3329,7 +3355,7 @@ var init_Drawer = __esm({
|
|
|
3329
3355
|
});
|
|
3330
3356
|
const hiddenId = `dialog-screen-reader-announce-${(0, import_react22.useId)()}`;
|
|
3331
3357
|
const headerId = `dialog-header-${(0, import_react22.useId)()}`;
|
|
3332
|
-
const dialogClasses = (0,
|
|
3358
|
+
const dialogClasses = (0, import_dedupe26.default)(
|
|
3333
3359
|
"mobius",
|
|
3334
3360
|
"mobius-drawer",
|
|
3335
3361
|
`--${direction}`,
|
|
@@ -3436,14 +3462,14 @@ var init_Drawer2 = __esm({
|
|
|
3436
3462
|
});
|
|
3437
3463
|
|
|
3438
3464
|
// src/components/DropdownMenu/DropdownMenu.tsx
|
|
3439
|
-
var import_react24, import_react_accessible_dropdown_menu_hook,
|
|
3465
|
+
var import_react24, import_react_accessible_dropdown_menu_hook, import_dedupe27, import_DropdownMenu, import_jsx_runtime32, DropdownMenu;
|
|
3440
3466
|
var init_DropdownMenu = __esm({
|
|
3441
3467
|
"src/components/DropdownMenu/DropdownMenu.tsx"() {
|
|
3442
3468
|
"use strict";
|
|
3443
3469
|
"use client";
|
|
3444
3470
|
import_react24 = require("react");
|
|
3445
3471
|
import_react_accessible_dropdown_menu_hook = __toESM(require("react-accessible-dropdown-menu-hook"));
|
|
3446
|
-
|
|
3472
|
+
import_dedupe27 = __toESM(require("classnames/dedupe"));
|
|
3447
3473
|
init_Button2();
|
|
3448
3474
|
import_DropdownMenu = require("@simplybusiness/mobius/src/components/DropdownMenu/DropdownMenu.css");
|
|
3449
3475
|
import_jsx_runtime32 = require("react/jsx-runtime");
|
|
@@ -3463,13 +3489,13 @@ var init_DropdownMenu = __esm({
|
|
|
3463
3489
|
isOpen: open,
|
|
3464
3490
|
setIsOpen
|
|
3465
3491
|
} = (0, import_react_accessible_dropdown_menu_hook.default)(numberOfItems);
|
|
3466
|
-
const classes = (0,
|
|
3492
|
+
const classes = (0, import_dedupe27.default)(
|
|
3467
3493
|
"mobius",
|
|
3468
3494
|
"mobius-dropdown-menu",
|
|
3469
3495
|
otherProps.className
|
|
3470
3496
|
);
|
|
3471
|
-
const triggerClasses = (0,
|
|
3472
|
-
const listClasses = (0,
|
|
3497
|
+
const triggerClasses = (0, import_dedupe27.default)("mobius", "mobius-dropdown-menu__trigger");
|
|
3498
|
+
const listClasses = (0, import_dedupe27.default)("mobius", "mobius-dropdown-menu__list", {
|
|
3473
3499
|
"--is-open": open
|
|
3474
3500
|
});
|
|
3475
3501
|
const handleChildClick = ({ onClick }, index) => {
|
|
@@ -3503,12 +3529,12 @@ var init_DropdownMenu = __esm({
|
|
|
3503
3529
|
});
|
|
3504
3530
|
|
|
3505
3531
|
// src/components/DropdownMenu/Item.tsx
|
|
3506
|
-
var import_react25,
|
|
3532
|
+
var import_react25, import_dedupe28, import_jsx_runtime33, Item;
|
|
3507
3533
|
var init_Item = __esm({
|
|
3508
3534
|
"src/components/DropdownMenu/Item.tsx"() {
|
|
3509
3535
|
"use strict";
|
|
3510
3536
|
import_react25 = require("react");
|
|
3511
|
-
|
|
3537
|
+
import_dedupe28 = __toESM(require("classnames/dedupe"));
|
|
3512
3538
|
import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3513
3539
|
Item = ({ ref, ...props }) => {
|
|
3514
3540
|
const {
|
|
@@ -3518,7 +3544,7 @@ var init_Item = __esm({
|
|
|
3518
3544
|
children,
|
|
3519
3545
|
...otherProps
|
|
3520
3546
|
} = props;
|
|
3521
|
-
const classes = (0,
|
|
3547
|
+
const classes = (0, import_dedupe28.default)(
|
|
3522
3548
|
"mobius",
|
|
3523
3549
|
"mobius-dropdown-menu__item",
|
|
3524
3550
|
{ "--is-active": active },
|
|
@@ -3526,7 +3552,7 @@ var init_Item = __esm({
|
|
|
3526
3552
|
);
|
|
3527
3553
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Element, { ref, onClick, ...otherProps, children: import_react25.Children.map(children, (child) => {
|
|
3528
3554
|
if ((0, import_react25.isValidElement)(child)) {
|
|
3529
|
-
const childClasses = (0,
|
|
3555
|
+
const childClasses = (0, import_dedupe28.default)(
|
|
3530
3556
|
child.props.className,
|
|
3531
3557
|
classes
|
|
3532
3558
|
);
|
|
@@ -3562,12 +3588,12 @@ var init_DropdownMenu2 = __esm({
|
|
|
3562
3588
|
});
|
|
3563
3589
|
|
|
3564
3590
|
// src/components/Fieldset/Fieldset.tsx
|
|
3565
|
-
var
|
|
3591
|
+
var import_dedupe29, import_react26, import_Fieldset, import_jsx_runtime34, useFieldset, Fieldset;
|
|
3566
3592
|
var init_Fieldset = __esm({
|
|
3567
3593
|
"src/components/Fieldset/Fieldset.tsx"() {
|
|
3568
3594
|
"use strict";
|
|
3569
3595
|
"use client";
|
|
3570
|
-
|
|
3596
|
+
import_dedupe29 = __toESM(require("classnames/dedupe"));
|
|
3571
3597
|
import_react26 = require("react");
|
|
3572
3598
|
init_Flex2();
|
|
3573
3599
|
import_Fieldset = require("@simplybusiness/mobius/src/components/Fieldset/Fieldset.css");
|
|
@@ -3602,7 +3628,7 @@ var init_Fieldset = __esm({
|
|
|
3602
3628
|
...otherProps
|
|
3603
3629
|
} = props;
|
|
3604
3630
|
const { legendProps, containerProps } = useFieldset(props);
|
|
3605
|
-
const classes = (0,
|
|
3631
|
+
const classes = (0, import_dedupe29.default)("mobius", "mobius-fieldset", props.className);
|
|
3606
3632
|
legendProps.className = "mobius-fieldset__legend";
|
|
3607
3633
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Flex, { ...containerProps, ...otherProps, className: classes, children: [
|
|
3608
3634
|
legend && (0, import_react26.cloneElement)(legendComponent, { ...legendProps }, [legend]),
|
|
@@ -3622,11 +3648,11 @@ var init_Fieldset2 = __esm({
|
|
|
3622
3648
|
});
|
|
3623
3649
|
|
|
3624
3650
|
// src/components/Grid/Grid.tsx
|
|
3625
|
-
var
|
|
3651
|
+
var import_dedupe30, import_jsx_runtime35, Grid;
|
|
3626
3652
|
var init_Grid = __esm({
|
|
3627
3653
|
"src/components/Grid/Grid.tsx"() {
|
|
3628
3654
|
"use strict";
|
|
3629
|
-
|
|
3655
|
+
import_dedupe30 = __toESM(require("classnames/dedupe"));
|
|
3630
3656
|
init_utils();
|
|
3631
3657
|
import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3632
3658
|
Grid = ({ ref, ...props }) => {
|
|
@@ -3643,7 +3669,7 @@ var init_Grid = __esm({
|
|
|
3643
3669
|
style,
|
|
3644
3670
|
...rest
|
|
3645
3671
|
} = props;
|
|
3646
|
-
const classes = (0,
|
|
3672
|
+
const classes = (0, import_dedupe30.default)("mobius", "mobius-grid", className);
|
|
3647
3673
|
const styles = filterUndefinedProps({
|
|
3648
3674
|
boxSizing: "border-box",
|
|
3649
3675
|
display: "grid",
|
|
@@ -3664,13 +3690,13 @@ var init_Grid = __esm({
|
|
|
3664
3690
|
});
|
|
3665
3691
|
|
|
3666
3692
|
// src/components/Grid/Item.tsx
|
|
3667
|
-
var import_react27,
|
|
3693
|
+
var import_react27, import_dedupe31, import_jsx_runtime36, getBreakpointMap, DEFAULT_SPAN, GridItem;
|
|
3668
3694
|
var init_Item2 = __esm({
|
|
3669
3695
|
"src/components/Grid/Item.tsx"() {
|
|
3670
3696
|
"use strict";
|
|
3671
3697
|
"use client";
|
|
3672
3698
|
import_react27 = require("react");
|
|
3673
|
-
|
|
3699
|
+
import_dedupe31 = __toESM(require("classnames/dedupe"));
|
|
3674
3700
|
init_hooks();
|
|
3675
3701
|
import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3676
3702
|
getBreakpointMap = (config) => Object.entries(config).reduce(
|
|
@@ -3708,7 +3734,7 @@ var init_Item2 = __esm({
|
|
|
3708
3734
|
xxl
|
|
3709
3735
|
});
|
|
3710
3736
|
const [responsiveSpan, setResponsiveSpan] = (0, import_react27.useState)();
|
|
3711
|
-
const classes = (0,
|
|
3737
|
+
const classes = (0, import_dedupe31.default)("mobius", "mobius-grid__item", className);
|
|
3712
3738
|
(0, import_react27.useEffect)(() => {
|
|
3713
3739
|
setResponsiveSpan(breakpointMap[breakpointSize]);
|
|
3714
3740
|
}, [breakpointSize, breakpointMap]);
|
|
@@ -3738,11 +3764,11 @@ var init_Grid2 = __esm({
|
|
|
3738
3764
|
});
|
|
3739
3765
|
|
|
3740
3766
|
// src/components/Image/Image.tsx
|
|
3741
|
-
var
|
|
3767
|
+
var import_dedupe32, import_jsx_runtime37, Image;
|
|
3742
3768
|
var init_Image = __esm({
|
|
3743
3769
|
"src/components/Image/Image.tsx"() {
|
|
3744
3770
|
"use strict";
|
|
3745
|
-
|
|
3771
|
+
import_dedupe32 = __toESM(require("classnames/dedupe"));
|
|
3746
3772
|
import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3747
3773
|
Image = ({
|
|
3748
3774
|
ref,
|
|
@@ -3750,7 +3776,7 @@ var init_Image = __esm({
|
|
|
3750
3776
|
elementType: Component = "img",
|
|
3751
3777
|
...otherProps
|
|
3752
3778
|
}) => {
|
|
3753
|
-
const classes = (0,
|
|
3779
|
+
const classes = (0, import_dedupe32.default)("mobius", "mobius-image", otherProps.className);
|
|
3754
3780
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Component, { alt, ref, ...otherProps, className: classes });
|
|
3755
3781
|
};
|
|
3756
3782
|
Image.displayName = "Image";
|
|
@@ -3766,11 +3792,11 @@ var init_Image2 = __esm({
|
|
|
3766
3792
|
});
|
|
3767
3793
|
|
|
3768
3794
|
// src/components/Link/Link.tsx
|
|
3769
|
-
var
|
|
3795
|
+
var import_dedupe33, import_Link, import_jsx_runtime38, Link;
|
|
3770
3796
|
var init_Link = __esm({
|
|
3771
3797
|
"src/components/Link/Link.tsx"() {
|
|
3772
3798
|
"use strict";
|
|
3773
|
-
|
|
3799
|
+
import_dedupe33 = __toESM(require("classnames/dedupe"));
|
|
3774
3800
|
import_Link = require("@simplybusiness/mobius/src/components/Link/Link.css");
|
|
3775
3801
|
import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3776
3802
|
Link = ({ ref, ...props }) => {
|
|
@@ -3786,7 +3812,7 @@ var init_Link = __esm({
|
|
|
3786
3812
|
pointerEvents: "none"
|
|
3787
3813
|
};
|
|
3788
3814
|
const styles = { ...style, ...isDisabled && disabledStyles };
|
|
3789
|
-
const classes = (0,
|
|
3815
|
+
const classes = (0, import_dedupe33.default)(
|
|
3790
3816
|
"mobius",
|
|
3791
3817
|
"mobius-link",
|
|
3792
3818
|
className,
|
|
@@ -3830,14 +3856,14 @@ function LinkButton({
|
|
|
3830
3856
|
if (!href) {
|
|
3831
3857
|
throw new Error("LinkButton requires a href prop");
|
|
3832
3858
|
}
|
|
3833
|
-
const classes = (0,
|
|
3859
|
+
const classes = (0, import_dedupe34.default)("mobius", "mobius-link-button", className);
|
|
3834
3860
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Button, { elementType, href, className: classes, ...rest, children });
|
|
3835
3861
|
}
|
|
3836
|
-
var
|
|
3862
|
+
var import_dedupe34, import_jsx_runtime39;
|
|
3837
3863
|
var init_LinkButton = __esm({
|
|
3838
3864
|
"src/components/LinkButton/LinkButton.tsx"() {
|
|
3839
3865
|
"use strict";
|
|
3840
|
-
|
|
3866
|
+
import_dedupe34 = __toESM(require("classnames/dedupe"));
|
|
3841
3867
|
init_Button2();
|
|
3842
3868
|
import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3843
3869
|
}
|
|
@@ -3852,12 +3878,12 @@ var init_LinkButton2 = __esm({
|
|
|
3852
3878
|
});
|
|
3853
3879
|
|
|
3854
3880
|
// src/components/List/List.tsx
|
|
3855
|
-
var import_react28,
|
|
3881
|
+
var import_react28, import_dedupe35, import_List, import_jsx_runtime40, List;
|
|
3856
3882
|
var init_List = __esm({
|
|
3857
3883
|
"src/components/List/List.tsx"() {
|
|
3858
3884
|
"use strict";
|
|
3859
3885
|
import_react28 = require("react");
|
|
3860
|
-
|
|
3886
|
+
import_dedupe35 = __toESM(require("classnames/dedupe"));
|
|
3861
3887
|
import_List = require("@simplybusiness/mobius/src/components/List/List.css");
|
|
3862
3888
|
import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3863
3889
|
List = ({ ref, ...props }) => {
|
|
@@ -3868,7 +3894,7 @@ var init_List = __esm({
|
|
|
3868
3894
|
...restProps,
|
|
3869
3895
|
reversed: isReversed
|
|
3870
3896
|
};
|
|
3871
|
-
const classes = (0,
|
|
3897
|
+
const classes = (0, import_dedupe35.default)(
|
|
3872
3898
|
"mobius",
|
|
3873
3899
|
"mobius-list",
|
|
3874
3900
|
{
|
|
@@ -3899,16 +3925,16 @@ var init_List = __esm({
|
|
|
3899
3925
|
});
|
|
3900
3926
|
|
|
3901
3927
|
// src/components/List/ListItem.tsx
|
|
3902
|
-
var
|
|
3928
|
+
var import_dedupe36, import_jsx_runtime41, ListItem;
|
|
3903
3929
|
var init_ListItem = __esm({
|
|
3904
3930
|
"src/components/List/ListItem.tsx"() {
|
|
3905
3931
|
"use strict";
|
|
3906
|
-
|
|
3932
|
+
import_dedupe36 = __toESM(require("classnames/dedupe"));
|
|
3907
3933
|
import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3908
3934
|
ListItem = ({ ref, ...props }) => {
|
|
3909
3935
|
const { parentIcon, icon, children, ...otherProps } = props;
|
|
3910
3936
|
const iconContent = icon || parentIcon;
|
|
3911
|
-
const classes = (0,
|
|
3937
|
+
const classes = (0, import_dedupe36.default)(
|
|
3912
3938
|
"mobius",
|
|
3913
3939
|
"mobius-list__item",
|
|
3914
3940
|
{
|
|
@@ -3916,8 +3942,8 @@ var init_ListItem = __esm({
|
|
|
3916
3942
|
},
|
|
3917
3943
|
props.className
|
|
3918
3944
|
);
|
|
3919
|
-
const contentClasses = (0,
|
|
3920
|
-
const iconClasses = (0,
|
|
3945
|
+
const contentClasses = (0, import_dedupe36.default)("mobius", "mobius-list__item-content");
|
|
3946
|
+
const iconClasses = (0, import_dedupe36.default)("mobius", "mobius-list__icon");
|
|
3921
3947
|
if (iconContent) {
|
|
3922
3948
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("li", { ref, ...otherProps, className: classes, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("span", { className: contentClasses, children: [
|
|
3923
3949
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: iconClasses, children: iconContent }),
|
|
@@ -3940,18 +3966,18 @@ var init_List2 = __esm({
|
|
|
3940
3966
|
});
|
|
3941
3967
|
|
|
3942
3968
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
3943
|
-
var
|
|
3969
|
+
var import_dedupe37, import_icons9, import_LoadingIndicator, import_jsx_runtime42, LoadingIndicator;
|
|
3944
3970
|
var init_LoadingIndicator = __esm({
|
|
3945
3971
|
"src/components/LoadingIndicator/LoadingIndicator.tsx"() {
|
|
3946
3972
|
"use strict";
|
|
3947
|
-
|
|
3973
|
+
import_dedupe37 = __toESM(require("classnames/dedupe"));
|
|
3948
3974
|
import_icons9 = require("@simplybusiness/icons");
|
|
3949
3975
|
init_Icon2();
|
|
3950
3976
|
import_LoadingIndicator = require("@simplybusiness/mobius/src/components/LoadingIndicator/LoadingIndicator.css");
|
|
3951
3977
|
import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3952
3978
|
LoadingIndicator = ({ ref, ...props }) => {
|
|
3953
3979
|
const { icon = import_icons9.loading, ...otherProps } = props;
|
|
3954
|
-
const classes = (0,
|
|
3980
|
+
const classes = (0, import_dedupe37.default)(
|
|
3955
3981
|
"mobius",
|
|
3956
3982
|
"mobius-loading-indicator",
|
|
3957
3983
|
otherProps.className
|
|
@@ -3971,15 +3997,15 @@ var init_LoadingIndicator2 = __esm({
|
|
|
3971
3997
|
});
|
|
3972
3998
|
|
|
3973
3999
|
// src/components/Logo/Logo.tsx
|
|
3974
|
-
var
|
|
4000
|
+
var import_dedupe38, import_jsx_runtime43, Logo;
|
|
3975
4001
|
var init_Logo = __esm({
|
|
3976
4002
|
"src/components/Logo/Logo.tsx"() {
|
|
3977
4003
|
"use strict";
|
|
3978
|
-
|
|
4004
|
+
import_dedupe38 = __toESM(require("classnames/dedupe"));
|
|
3979
4005
|
import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3980
4006
|
Logo = ({ ref, ...props }) => {
|
|
3981
4007
|
const { className, width, height, ...otherProps } = props;
|
|
3982
|
-
const classes = (0,
|
|
4008
|
+
const classes = (0, import_dedupe38.default)("mobius", "mobius-logo", className);
|
|
3983
4009
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
3984
4010
|
"svg",
|
|
3985
4011
|
{
|
|
@@ -4134,12 +4160,12 @@ var init_Header2 = __esm({
|
|
|
4134
4160
|
});
|
|
4135
4161
|
|
|
4136
4162
|
// src/components/Modal/Modal.tsx
|
|
4137
|
-
var
|
|
4163
|
+
var import_dedupe39, import_react32, import_Modal, import_jsx_runtime46, TRANSITION_CSS_VARIABLE2, Modal;
|
|
4138
4164
|
var init_Modal = __esm({
|
|
4139
4165
|
"src/components/Modal/Modal.tsx"() {
|
|
4140
4166
|
"use strict";
|
|
4141
4167
|
"use client";
|
|
4142
|
-
|
|
4168
|
+
import_dedupe39 = __toESM(require("classnames/dedupe"));
|
|
4143
4169
|
import_react32 = require("react");
|
|
4144
4170
|
init_hooks();
|
|
4145
4171
|
init_utils();
|
|
@@ -4175,7 +4201,7 @@ var init_Modal = __esm({
|
|
|
4175
4201
|
CSSVariable: TRANSITION_CSS_VARIABLE2
|
|
4176
4202
|
}
|
|
4177
4203
|
});
|
|
4178
|
-
const modalClasses = (0,
|
|
4204
|
+
const modalClasses = (0, import_dedupe39.default)(
|
|
4179
4205
|
"mobius",
|
|
4180
4206
|
"mobius-modal",
|
|
4181
4207
|
{
|
|
@@ -4235,12 +4261,12 @@ var init_Modal2 = __esm({
|
|
|
4235
4261
|
});
|
|
4236
4262
|
|
|
4237
4263
|
// src/components/NumberField/NumberField.tsx
|
|
4238
|
-
var
|
|
4264
|
+
var import_dedupe40, import_react33, import_NumberField, import_jsx_runtime47, NumberField;
|
|
4239
4265
|
var init_NumberField = __esm({
|
|
4240
4266
|
"src/components/NumberField/NumberField.tsx"() {
|
|
4241
4267
|
"use strict";
|
|
4242
4268
|
"use client";
|
|
4243
|
-
|
|
4269
|
+
import_dedupe40 = __toESM(require("classnames/dedupe"));
|
|
4244
4270
|
import_react33 = require("react");
|
|
4245
4271
|
init_TextField2();
|
|
4246
4272
|
import_NumberField = require("@simplybusiness/mobius/src/components/NumberField/NumberField.css");
|
|
@@ -4268,7 +4294,7 @@ var init_NumberField = __esm({
|
|
|
4268
4294
|
focusedInputRef.current = null;
|
|
4269
4295
|
};
|
|
4270
4296
|
}, [wheelHandler]);
|
|
4271
|
-
const containerClasses = (0,
|
|
4297
|
+
const containerClasses = (0, import_dedupe40.default)("mobius-number-field", className, {
|
|
4272
4298
|
"--hide-spin-buttons": hideSpinButtons
|
|
4273
4299
|
});
|
|
4274
4300
|
const handleBeforeInput = (event) => {
|
|
@@ -4394,12 +4420,12 @@ var init_ShowHideButton = __esm({
|
|
|
4394
4420
|
});
|
|
4395
4421
|
|
|
4396
4422
|
// src/components/PasswordField/PasswordField.tsx
|
|
4397
|
-
var
|
|
4423
|
+
var import_dedupe41, import_react34, import_PasswordField, import_jsx_runtime50, PasswordField;
|
|
4398
4424
|
var init_PasswordField = __esm({
|
|
4399
4425
|
"src/components/PasswordField/PasswordField.tsx"() {
|
|
4400
4426
|
"use strict";
|
|
4401
4427
|
"use client";
|
|
4402
|
-
|
|
4428
|
+
import_dedupe41 = __toESM(require("classnames/dedupe"));
|
|
4403
4429
|
import_react34 = require("react");
|
|
4404
4430
|
init_mergeRefs();
|
|
4405
4431
|
init_TextField2();
|
|
@@ -4414,7 +4440,7 @@ var init_PasswordField = __esm({
|
|
|
4414
4440
|
}) => {
|
|
4415
4441
|
const [show, setShow] = (0, import_react34.useState)(false);
|
|
4416
4442
|
const type = show ? "text" : "password";
|
|
4417
|
-
const classes = (0,
|
|
4443
|
+
const classes = (0, import_dedupe41.default)("mobius-password-field", className);
|
|
4418
4444
|
const localRef = (0, import_react34.useRef)(null);
|
|
4419
4445
|
const handleShowHideButtonClick = () => {
|
|
4420
4446
|
const selectionStart = localRef.current?.selectionStart;
|
|
@@ -4452,13 +4478,13 @@ var init_PasswordField2 = __esm({
|
|
|
4452
4478
|
});
|
|
4453
4479
|
|
|
4454
4480
|
// src/components/Popover/Popover.tsx
|
|
4455
|
-
var import_react35, import_icons12,
|
|
4481
|
+
var import_react35, import_icons12, import_dedupe42, import_react36, import_mobius_hooks6, import_Popover, import_jsx_runtime51, OFFSET_FROM_CONTENT_DEFAULT, Popover;
|
|
4456
4482
|
var init_Popover = __esm({
|
|
4457
4483
|
"src/components/Popover/Popover.tsx"() {
|
|
4458
4484
|
"use strict";
|
|
4459
4485
|
import_react35 = require("@floating-ui/react");
|
|
4460
4486
|
import_icons12 = require("@simplybusiness/icons");
|
|
4461
|
-
|
|
4487
|
+
import_dedupe42 = __toESM(require("classnames/dedupe"));
|
|
4462
4488
|
import_react36 = require("react");
|
|
4463
4489
|
import_mobius_hooks6 = require("@simplybusiness/mobius-hooks");
|
|
4464
4490
|
init_Button2();
|
|
@@ -4496,7 +4522,7 @@ var init_Popover = __esm({
|
|
|
4496
4522
|
}
|
|
4497
4523
|
});
|
|
4498
4524
|
const { getReferenceProps, getFloatingProps } = (0, import_react35.useInteractions)([dismiss]);
|
|
4499
|
-
const containerClasses = (0,
|
|
4525
|
+
const containerClasses = (0, import_dedupe42.default)(
|
|
4500
4526
|
"mobius",
|
|
4501
4527
|
"mobius-popover__container",
|
|
4502
4528
|
className
|
|
@@ -4531,7 +4557,7 @@ var init_Popover = __esm({
|
|
|
4531
4557
|
};
|
|
4532
4558
|
const triggerComponent = (0, import_react36.cloneElement)(trigger, {
|
|
4533
4559
|
ref: refs.setReference,
|
|
4534
|
-
className: (0,
|
|
4560
|
+
className: (0, import_dedupe42.default)(
|
|
4535
4561
|
trigger.props.className,
|
|
4536
4562
|
"mobius-popover__toggle"
|
|
4537
4563
|
),
|
|
@@ -4613,12 +4639,12 @@ function warnAboutInvalidValues(value, minValue, maxValue) {
|
|
|
4613
4639
|
console.warn("Progress value is greater than maxValue");
|
|
4614
4640
|
}
|
|
4615
4641
|
}
|
|
4616
|
-
var
|
|
4642
|
+
var import_dedupe43, import_react37, import_Progress, import_jsx_runtime52, sanitizedValue, getLabelComponent, DEFAULT_VALUE, DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, Progress;
|
|
4617
4643
|
var init_Progress = __esm({
|
|
4618
4644
|
"src/components/Progress/Progress.tsx"() {
|
|
4619
4645
|
"use strict";
|
|
4620
4646
|
"use client";
|
|
4621
|
-
|
|
4647
|
+
import_dedupe43 = __toESM(require("classnames/dedupe"));
|
|
4622
4648
|
import_react37 = require("react");
|
|
4623
4649
|
init_Label2();
|
|
4624
4650
|
init_VisuallyHidden2();
|
|
@@ -4682,7 +4708,7 @@ var init_Progress = __esm({
|
|
|
4682
4708
|
100
|
|
4683
4709
|
);
|
|
4684
4710
|
const barWidth = `${percentage}%`;
|
|
4685
|
-
const classes = (0,
|
|
4711
|
+
const classes = (0, import_dedupe43.default)("mobius", "mobius-progress", className, {
|
|
4686
4712
|
"--is-primary": variant === "primary",
|
|
4687
4713
|
"--is-secondary": variant === "secondary"
|
|
4688
4714
|
});
|
|
@@ -4722,12 +4748,12 @@ var init_Progress2 = __esm({
|
|
|
4722
4748
|
});
|
|
4723
4749
|
|
|
4724
4750
|
// src/components/Radio/Radio.tsx
|
|
4725
|
-
var
|
|
4751
|
+
var import_dedupe44, import_react38, import_Radio, import_jsx_runtime53, Radio;
|
|
4726
4752
|
var init_Radio = __esm({
|
|
4727
4753
|
"src/components/Radio/Radio.tsx"() {
|
|
4728
4754
|
"use strict";
|
|
4729
4755
|
"use client";
|
|
4730
|
-
|
|
4756
|
+
import_dedupe44 = __toESM(require("classnames/dedupe"));
|
|
4731
4757
|
import_react38 = require("react");
|
|
4732
4758
|
init_ErrorMessage2();
|
|
4733
4759
|
init_Label2();
|
|
@@ -4797,13 +4823,13 @@ var init_Radio = __esm({
|
|
|
4797
4823
|
"--is-multiline": !!isMultiline,
|
|
4798
4824
|
"--is-required": isRequired
|
|
4799
4825
|
};
|
|
4800
|
-
const containerClasses = (0,
|
|
4826
|
+
const containerClasses = (0, import_dedupe44.default)(
|
|
4801
4827
|
"mobius-radio__label",
|
|
4802
4828
|
radioClasses,
|
|
4803
4829
|
className,
|
|
4804
4830
|
{ "--has-icon-first": hasIconFirst }
|
|
4805
4831
|
);
|
|
4806
|
-
const inputClasses = (0,
|
|
4832
|
+
const inputClasses = (0, import_dedupe44.default)("mobius-radio__input", radioClasses);
|
|
4807
4833
|
const { "aria-describedby": _ariaDescribedBy, ...rest } = otherProps;
|
|
4808
4834
|
const handleChange = (event) => {
|
|
4809
4835
|
if (setSelected) {
|
|
@@ -4849,12 +4875,12 @@ var init_Radio = __esm({
|
|
|
4849
4875
|
});
|
|
4850
4876
|
|
|
4851
4877
|
// src/components/Radio/RadioGroup.tsx
|
|
4852
|
-
var
|
|
4878
|
+
var import_dedupe45, import_react39, import_jsx_runtime54, getDefaultVal, RadioGroup;
|
|
4853
4879
|
var init_RadioGroup = __esm({
|
|
4854
4880
|
"src/components/Radio/RadioGroup.tsx"() {
|
|
4855
4881
|
"use strict";
|
|
4856
4882
|
"use client";
|
|
4857
|
-
|
|
4883
|
+
import_dedupe45 = __toESM(require("classnames/dedupe"));
|
|
4858
4884
|
import_react39 = require("react");
|
|
4859
4885
|
init_hooks();
|
|
4860
4886
|
init_spaceDelimitedList();
|
|
@@ -4921,16 +4947,16 @@ var init_RadioGroup = __esm({
|
|
|
4921
4947
|
[`--is-${effectiveOrientation}`]: true,
|
|
4922
4948
|
[className || ""]: true
|
|
4923
4949
|
};
|
|
4924
|
-
const radioGroupClasses = (0,
|
|
4950
|
+
const radioGroupClasses = (0, import_dedupe45.default)(
|
|
4925
4951
|
"mobius",
|
|
4926
4952
|
"mobius-radio-group",
|
|
4927
4953
|
radioClasses,
|
|
4928
4954
|
validationClasses
|
|
4929
4955
|
);
|
|
4930
|
-
const radioWrapperClasses = (0,
|
|
4956
|
+
const radioWrapperClasses = (0, import_dedupe45.default)("mobius-radio__wrapper", {
|
|
4931
4957
|
[`--is-${effectiveOrientation}`]: true
|
|
4932
4958
|
});
|
|
4933
|
-
const labelClasses = (0,
|
|
4959
|
+
const labelClasses = (0, import_dedupe45.default)(radioClasses, validationClasses);
|
|
4934
4960
|
const errorMessageId = (0, import_react39.useId)();
|
|
4935
4961
|
const defaultNameAttrId = (0, import_react39.useId)();
|
|
4936
4962
|
const nameAttribute = name || defaultNameAttrId;
|
|
@@ -4998,16 +5024,16 @@ var init_Radio2 = __esm({
|
|
|
4998
5024
|
});
|
|
4999
5025
|
|
|
5000
5026
|
// src/components/Segment/SegmentGroup.tsx
|
|
5001
|
-
var
|
|
5027
|
+
var import_dedupe46, import_jsx_runtime55, SegmentGroup;
|
|
5002
5028
|
var init_SegmentGroup = __esm({
|
|
5003
5029
|
"src/components/Segment/SegmentGroup.tsx"() {
|
|
5004
5030
|
"use strict";
|
|
5005
|
-
|
|
5031
|
+
import_dedupe46 = __toESM(require("classnames/dedupe"));
|
|
5006
5032
|
import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5007
5033
|
SegmentGroup = (props) => {
|
|
5008
5034
|
const { children, horizontal, gap, className, ...rest } = props;
|
|
5009
5035
|
const gapClass = gap ? `gap-${gap}` : "";
|
|
5010
|
-
const classes = (0,
|
|
5036
|
+
const classes = (0, import_dedupe46.default)(
|
|
5011
5037
|
"mobius",
|
|
5012
5038
|
"mobius-segment-group",
|
|
5013
5039
|
className,
|
|
@@ -5021,16 +5047,16 @@ var init_SegmentGroup = __esm({
|
|
|
5021
5047
|
});
|
|
5022
5048
|
|
|
5023
5049
|
// src/components/Segment/Segment.tsx
|
|
5024
|
-
var
|
|
5050
|
+
var import_dedupe47, import_Segment, import_jsx_runtime56, Segment;
|
|
5025
5051
|
var init_Segment = __esm({
|
|
5026
5052
|
"src/components/Segment/Segment.tsx"() {
|
|
5027
5053
|
"use strict";
|
|
5028
|
-
|
|
5054
|
+
import_dedupe47 = __toESM(require("classnames/dedupe"));
|
|
5029
5055
|
import_Segment = require("@simplybusiness/mobius/src/components/Segment/Segment.css");
|
|
5030
5056
|
import_jsx_runtime56 = require("react/jsx-runtime");
|
|
5031
5057
|
Segment = ({ ref, ...props }) => {
|
|
5032
5058
|
const { heading, children, colour, inverted, className, ...rest } = props;
|
|
5033
|
-
const classes = (0,
|
|
5059
|
+
const classes = (0, import_dedupe47.default)(
|
|
5034
5060
|
"mobius",
|
|
5035
5061
|
"mobius-segment",
|
|
5036
5062
|
colour,
|
|
@@ -5056,13 +5082,13 @@ var init_Segment2 = __esm({
|
|
|
5056
5082
|
});
|
|
5057
5083
|
|
|
5058
5084
|
// src/components/Select/Select.tsx
|
|
5059
|
-
var import_icons13,
|
|
5085
|
+
var import_icons13, import_dedupe48, import_react40, import_Select, import_jsx_runtime57, Select;
|
|
5060
5086
|
var init_Select = __esm({
|
|
5061
5087
|
"src/components/Select/Select.tsx"() {
|
|
5062
5088
|
"use strict";
|
|
5063
5089
|
"use client";
|
|
5064
5090
|
import_icons13 = require("@simplybusiness/icons");
|
|
5065
|
-
|
|
5091
|
+
import_dedupe48 = __toESM(require("classnames/dedupe"));
|
|
5066
5092
|
import_react40 = require("react");
|
|
5067
5093
|
init_hooks();
|
|
5068
5094
|
init_useLabel2();
|
|
@@ -5093,23 +5119,23 @@ var init_Select = __esm({
|
|
|
5093
5119
|
"--is-required": typeof isRequired === "boolean" && isRequired,
|
|
5094
5120
|
"--is-optional": typeof isRequired === "boolean" && !isRequired
|
|
5095
5121
|
};
|
|
5096
|
-
const sharedClasses = (0,
|
|
5097
|
-
const wrapperClasses = (0,
|
|
5122
|
+
const sharedClasses = (0, import_dedupe48.default)(validationClasses, stateClasses);
|
|
5123
|
+
const wrapperClasses = (0, import_dedupe48.default)(
|
|
5098
5124
|
"mobius-select__wrapper",
|
|
5099
5125
|
sharedClasses,
|
|
5100
5126
|
otherProps.className
|
|
5101
5127
|
);
|
|
5102
|
-
const selectClasses = (0,
|
|
5128
|
+
const selectClasses = (0, import_dedupe48.default)(
|
|
5103
5129
|
"mobius-select",
|
|
5104
5130
|
sharedClasses,
|
|
5105
5131
|
otherProps.className
|
|
5106
5132
|
);
|
|
5107
|
-
const labelClasses = (0,
|
|
5133
|
+
const labelClasses = (0, import_dedupe48.default)(
|
|
5108
5134
|
"mobius-label",
|
|
5109
5135
|
sharedClasses,
|
|
5110
5136
|
otherProps.className
|
|
5111
5137
|
);
|
|
5112
|
-
const iconClasses = (0,
|
|
5138
|
+
const iconClasses = (0, import_dedupe48.default)("mobius-select__icon", sharedClasses);
|
|
5113
5139
|
const errorMessageId = (0, import_react40.useId)();
|
|
5114
5140
|
const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
|
|
5115
5141
|
const describedBy = spaceDelimitedList([
|
|
@@ -5173,12 +5199,12 @@ var init_helpers = __esm({
|
|
|
5173
5199
|
});
|
|
5174
5200
|
|
|
5175
5201
|
// src/components/Slider/Slider.tsx
|
|
5176
|
-
var
|
|
5202
|
+
var import_dedupe49, import_react42, import_Slider, import_jsx_runtime58, Slider;
|
|
5177
5203
|
var init_Slider = __esm({
|
|
5178
5204
|
"src/components/Slider/Slider.tsx"() {
|
|
5179
5205
|
"use strict";
|
|
5180
5206
|
"use client";
|
|
5181
|
-
|
|
5207
|
+
import_dedupe49 = __toESM(require("classnames/dedupe"));
|
|
5182
5208
|
import_react42 = require("react");
|
|
5183
5209
|
init_hooks();
|
|
5184
5210
|
init_Label2();
|
|
@@ -5217,7 +5243,7 @@ var init_Slider = __esm({
|
|
|
5217
5243
|
"aria-labelledby": ariaLabelledBy
|
|
5218
5244
|
});
|
|
5219
5245
|
const formattedValue = numberFormatter(currentValue, formatOptions);
|
|
5220
|
-
const classes = (0,
|
|
5246
|
+
const classes = (0, import_dedupe49.default)("mobius", "mobius-slider", className, {
|
|
5221
5247
|
"--is-disabled": isDisabled,
|
|
5222
5248
|
"--is-primary": variant === "primary",
|
|
5223
5249
|
"--is-secondary": variant === "secondary",
|
|
@@ -5281,16 +5307,16 @@ var init_Slider2 = __esm({
|
|
|
5281
5307
|
});
|
|
5282
5308
|
|
|
5283
5309
|
// src/components/SVG/SVG.tsx
|
|
5284
|
-
var import_react43,
|
|
5310
|
+
var import_react43, import_dedupe50, import_jsx_runtime59, SVG;
|
|
5285
5311
|
var init_SVG = __esm({
|
|
5286
5312
|
"src/components/SVG/SVG.tsx"() {
|
|
5287
5313
|
"use strict";
|
|
5288
5314
|
import_react43 = require("react");
|
|
5289
|
-
|
|
5315
|
+
import_dedupe50 = __toESM(require("classnames/dedupe"));
|
|
5290
5316
|
import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5291
5317
|
SVG = ({ ref, ...props }) => {
|
|
5292
5318
|
const { children, className, ...otherProps } = props;
|
|
5293
|
-
const classes = (0,
|
|
5319
|
+
const classes = (0, import_dedupe50.default)("mobius", "mobius-svg", className);
|
|
5294
5320
|
const svgNode = import_react43.Children.only(children);
|
|
5295
5321
|
const { children: svgChildren, viewBox, xmlns } = svgNode.props;
|
|
5296
5322
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
@@ -5318,13 +5344,13 @@ var init_SVG2 = __esm({
|
|
|
5318
5344
|
});
|
|
5319
5345
|
|
|
5320
5346
|
// src/components/Switch/Switch.tsx
|
|
5321
|
-
var import_react44,
|
|
5347
|
+
var import_react44, import_dedupe51, import_Switch, import_jsx_runtime60, Switch;
|
|
5322
5348
|
var init_Switch = __esm({
|
|
5323
5349
|
"src/components/Switch/Switch.tsx"() {
|
|
5324
5350
|
"use strict";
|
|
5325
5351
|
"use client";
|
|
5326
5352
|
import_react44 = require("react");
|
|
5327
|
-
|
|
5353
|
+
import_dedupe51 = __toESM(require("classnames/dedupe"));
|
|
5328
5354
|
init_VisuallyHidden2();
|
|
5329
5355
|
import_Switch = require("@simplybusiness/mobius/src/components/Switch/Switch.css");
|
|
5330
5356
|
import_jsx_runtime60 = require("react/jsx-runtime");
|
|
@@ -5340,7 +5366,7 @@ var init_Switch = __esm({
|
|
|
5340
5366
|
(0, import_react44.useEffect)(() => {
|
|
5341
5367
|
setEnabled(checked);
|
|
5342
5368
|
}, [checked]);
|
|
5343
|
-
const classes = (0,
|
|
5369
|
+
const classes = (0, import_dedupe51.default)(
|
|
5344
5370
|
"mobius",
|
|
5345
5371
|
"mobius-switch",
|
|
5346
5372
|
{
|
|
@@ -5384,15 +5410,15 @@ var init_Switch2 = __esm({
|
|
|
5384
5410
|
});
|
|
5385
5411
|
|
|
5386
5412
|
// src/components/Table/Table.tsx
|
|
5387
|
-
var
|
|
5413
|
+
var import_dedupe52, import_Table, import_jsx_runtime61, Table;
|
|
5388
5414
|
var init_Table = __esm({
|
|
5389
5415
|
"src/components/Table/Table.tsx"() {
|
|
5390
5416
|
"use strict";
|
|
5391
|
-
|
|
5417
|
+
import_dedupe52 = __toESM(require("classnames/dedupe"));
|
|
5392
5418
|
import_Table = require("@simplybusiness/mobius/src/components/Table/Table.css");
|
|
5393
5419
|
import_jsx_runtime61 = require("react/jsx-runtime");
|
|
5394
5420
|
Table = ({ ref, ...props }) => {
|
|
5395
|
-
const classes = (0,
|
|
5421
|
+
const classes = (0, import_dedupe52.default)("mobius", "mobius-table", props.className);
|
|
5396
5422
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("table", { ref, ...props, className: classes });
|
|
5397
5423
|
};
|
|
5398
5424
|
Table.displayName = "Table";
|
|
@@ -5400,14 +5426,14 @@ var init_Table = __esm({
|
|
|
5400
5426
|
});
|
|
5401
5427
|
|
|
5402
5428
|
// src/components/Table/Head.tsx
|
|
5403
|
-
var
|
|
5429
|
+
var import_dedupe53, import_jsx_runtime62, Head;
|
|
5404
5430
|
var init_Head = __esm({
|
|
5405
5431
|
"src/components/Table/Head.tsx"() {
|
|
5406
5432
|
"use strict";
|
|
5407
|
-
|
|
5433
|
+
import_dedupe53 = __toESM(require("classnames/dedupe"));
|
|
5408
5434
|
import_jsx_runtime62 = require("react/jsx-runtime");
|
|
5409
5435
|
Head = ({ ref, ...props }) => {
|
|
5410
|
-
const classes = (0,
|
|
5436
|
+
const classes = (0, import_dedupe53.default)("mobius", "mobius-table__head", props.className);
|
|
5411
5437
|
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("thead", { ref, ...props, className: classes });
|
|
5412
5438
|
};
|
|
5413
5439
|
Head.displayName = "Table.Head";
|
|
@@ -5415,14 +5441,14 @@ var init_Head = __esm({
|
|
|
5415
5441
|
});
|
|
5416
5442
|
|
|
5417
5443
|
// src/components/Table/Body.tsx
|
|
5418
|
-
var
|
|
5444
|
+
var import_dedupe54, import_jsx_runtime63, Body;
|
|
5419
5445
|
var init_Body = __esm({
|
|
5420
5446
|
"src/components/Table/Body.tsx"() {
|
|
5421
5447
|
"use strict";
|
|
5422
|
-
|
|
5448
|
+
import_dedupe54 = __toESM(require("classnames/dedupe"));
|
|
5423
5449
|
import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5424
5450
|
Body = ({ ref, ...props }) => {
|
|
5425
|
-
const classes = (0,
|
|
5451
|
+
const classes = (0, import_dedupe54.default)("mobius", "mobius-table__body", props.className);
|
|
5426
5452
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("tbody", { ref, ...props, className: classes });
|
|
5427
5453
|
};
|
|
5428
5454
|
Body.displayName = "Table.Body";
|
|
@@ -5430,14 +5456,14 @@ var init_Body = __esm({
|
|
|
5430
5456
|
});
|
|
5431
5457
|
|
|
5432
5458
|
// src/components/Table/Foot.tsx
|
|
5433
|
-
var
|
|
5459
|
+
var import_dedupe55, import_jsx_runtime64, Foot;
|
|
5434
5460
|
var init_Foot = __esm({
|
|
5435
5461
|
"src/components/Table/Foot.tsx"() {
|
|
5436
5462
|
"use strict";
|
|
5437
|
-
|
|
5463
|
+
import_dedupe55 = __toESM(require("classnames/dedupe"));
|
|
5438
5464
|
import_jsx_runtime64 = require("react/jsx-runtime");
|
|
5439
5465
|
Foot = ({ ref, ...props }) => {
|
|
5440
|
-
const classes = (0,
|
|
5466
|
+
const classes = (0, import_dedupe55.default)("mobius", "mobius-table__foot", props.className);
|
|
5441
5467
|
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("tfoot", { ref, ...props, className: classes });
|
|
5442
5468
|
};
|
|
5443
5469
|
Foot.displayName = "Table.Foot";
|
|
@@ -5445,14 +5471,14 @@ var init_Foot = __esm({
|
|
|
5445
5471
|
});
|
|
5446
5472
|
|
|
5447
5473
|
// src/components/Table/Row.tsx
|
|
5448
|
-
var
|
|
5474
|
+
var import_dedupe56, import_jsx_runtime65, Row;
|
|
5449
5475
|
var init_Row = __esm({
|
|
5450
5476
|
"src/components/Table/Row.tsx"() {
|
|
5451
5477
|
"use strict";
|
|
5452
|
-
|
|
5478
|
+
import_dedupe56 = __toESM(require("classnames/dedupe"));
|
|
5453
5479
|
import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5454
5480
|
Row = ({ ref, ...props }) => {
|
|
5455
|
-
const classes = (0,
|
|
5481
|
+
const classes = (0, import_dedupe56.default)("mobius", "mobius-table__row", props.className);
|
|
5456
5482
|
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("tr", { ref, ...props, className: classes });
|
|
5457
5483
|
};
|
|
5458
5484
|
Row.displayName = "Table.Row";
|
|
@@ -5460,14 +5486,14 @@ var init_Row = __esm({
|
|
|
5460
5486
|
});
|
|
5461
5487
|
|
|
5462
5488
|
// src/components/Table/HeaderCell.tsx
|
|
5463
|
-
var
|
|
5489
|
+
var import_dedupe57, import_jsx_runtime66, HeaderCell;
|
|
5464
5490
|
var init_HeaderCell = __esm({
|
|
5465
5491
|
"src/components/Table/HeaderCell.tsx"() {
|
|
5466
5492
|
"use strict";
|
|
5467
|
-
|
|
5493
|
+
import_dedupe57 = __toESM(require("classnames/dedupe"));
|
|
5468
5494
|
import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5469
5495
|
HeaderCell = ({ ref, scope = "col", ...props }) => {
|
|
5470
|
-
const classes = (0,
|
|
5496
|
+
const classes = (0, import_dedupe57.default)(
|
|
5471
5497
|
"mobius",
|
|
5472
5498
|
"mobius-table__head-cell",
|
|
5473
5499
|
props.className
|
|
@@ -5479,14 +5505,14 @@ var init_HeaderCell = __esm({
|
|
|
5479
5505
|
});
|
|
5480
5506
|
|
|
5481
5507
|
// src/components/Table/Cell.tsx
|
|
5482
|
-
var
|
|
5508
|
+
var import_dedupe58, import_jsx_runtime67, Cell;
|
|
5483
5509
|
var init_Cell = __esm({
|
|
5484
5510
|
"src/components/Table/Cell.tsx"() {
|
|
5485
5511
|
"use strict";
|
|
5486
|
-
|
|
5512
|
+
import_dedupe58 = __toESM(require("classnames/dedupe"));
|
|
5487
5513
|
import_jsx_runtime67 = require("react/jsx-runtime");
|
|
5488
5514
|
Cell = ({ ref, ...props }) => {
|
|
5489
|
-
const classes = (0,
|
|
5515
|
+
const classes = (0, import_dedupe58.default)(
|
|
5490
5516
|
"mobius",
|
|
5491
5517
|
"mobius-table__body-cell",
|
|
5492
5518
|
props.className
|
|
@@ -5530,15 +5556,15 @@ var init_Text2 = __esm({
|
|
|
5530
5556
|
});
|
|
5531
5557
|
|
|
5532
5558
|
// src/components/TextAreaInput/TextAreaInput.tsx
|
|
5533
|
-
var
|
|
5559
|
+
var import_dedupe59, import_jsx_runtime68, TextAreaInput;
|
|
5534
5560
|
var init_TextAreaInput = __esm({
|
|
5535
5561
|
"src/components/TextAreaInput/TextAreaInput.tsx"() {
|
|
5536
5562
|
"use strict";
|
|
5537
|
-
|
|
5563
|
+
import_dedupe59 = __toESM(require("classnames/dedupe"));
|
|
5538
5564
|
import_jsx_runtime68 = require("react/jsx-runtime");
|
|
5539
5565
|
TextAreaInput = ({ ref, ...props }) => {
|
|
5540
5566
|
const { isSelected, isDisabled, isReadOnly, isRequired, ...otherProps } = props;
|
|
5541
|
-
const classes = (0,
|
|
5567
|
+
const classes = (0, import_dedupe59.default)(
|
|
5542
5568
|
"mobius",
|
|
5543
5569
|
"mobius-text-area__input",
|
|
5544
5570
|
{
|
|
@@ -5572,12 +5598,12 @@ var init_TextAreaInput2 = __esm({
|
|
|
5572
5598
|
});
|
|
5573
5599
|
|
|
5574
5600
|
// src/components/TextArea/TextArea.tsx
|
|
5575
|
-
var
|
|
5601
|
+
var import_dedupe60, import_TextArea, import_jsx_runtime69, TextArea;
|
|
5576
5602
|
var init_TextArea = __esm({
|
|
5577
5603
|
"src/components/TextArea/TextArea.tsx"() {
|
|
5578
5604
|
"use strict";
|
|
5579
5605
|
"use client";
|
|
5580
|
-
|
|
5606
|
+
import_dedupe60 = __toESM(require("classnames/dedupe"));
|
|
5581
5607
|
init_hooks();
|
|
5582
5608
|
init_ErrorMessage2();
|
|
5583
5609
|
init_Label2();
|
|
@@ -5595,10 +5621,10 @@ var init_TextArea = __esm({
|
|
|
5595
5621
|
...otherProps
|
|
5596
5622
|
} = props;
|
|
5597
5623
|
const { inputProps, labelProps, errorMessageProps } = useTextField(props);
|
|
5598
|
-
const classes = (0,
|
|
5624
|
+
const classes = (0, import_dedupe60.default)("mobius", "mobius-text-area", className);
|
|
5599
5625
|
const validationClasses = useValidationClasses({ isInvalid });
|
|
5600
|
-
const inputClasses = (0,
|
|
5601
|
-
const labelClasses = (0,
|
|
5626
|
+
const inputClasses = (0, import_dedupe60.default)("mobius-text-area__input", validationClasses);
|
|
5627
|
+
const labelClasses = (0, import_dedupe60.default)(
|
|
5602
5628
|
{
|
|
5603
5629
|
"--is-disabled": isDisabled
|
|
5604
5630
|
},
|
|
@@ -5633,11 +5659,11 @@ var init_TextArea2 = __esm({
|
|
|
5633
5659
|
});
|
|
5634
5660
|
|
|
5635
5661
|
// src/components/Title/Title.tsx
|
|
5636
|
-
var
|
|
5662
|
+
var import_dedupe61, import_Title, import_jsx_runtime70, Title;
|
|
5637
5663
|
var init_Title = __esm({
|
|
5638
5664
|
"src/components/Title/Title.tsx"() {
|
|
5639
5665
|
"use strict";
|
|
5640
|
-
|
|
5666
|
+
import_dedupe61 = __toESM(require("classnames/dedupe"));
|
|
5641
5667
|
init_Flex2();
|
|
5642
5668
|
import_Title = require("@simplybusiness/mobius/src/components/Title/Title.css");
|
|
5643
5669
|
import_jsx_runtime70 = require("react/jsx-runtime");
|
|
@@ -5648,10 +5674,10 @@ var init_Title = __esm({
|
|
|
5648
5674
|
description,
|
|
5649
5675
|
...otherProps
|
|
5650
5676
|
} = props;
|
|
5651
|
-
const classes = (0,
|
|
5652
|
-
const headerClasses = (0,
|
|
5653
|
-
const contentClasses = (0,
|
|
5654
|
-
const containerClasses = (0,
|
|
5677
|
+
const classes = (0, import_dedupe61.default)("mobius", "mobius-title", otherProps.className);
|
|
5678
|
+
const headerClasses = (0, import_dedupe61.default)("mobius", "mobius-title__header");
|
|
5679
|
+
const contentClasses = (0, import_dedupe61.default)("mobius", "mobius-title__description");
|
|
5680
|
+
const containerClasses = (0, import_dedupe61.default)("mobius", "mobius-title__container");
|
|
5655
5681
|
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: [
|
|
5656
5682
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: headerClasses, children: title }),
|
|
5657
5683
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: contentClasses, children: description })
|
|
@@ -5681,12 +5707,12 @@ var init_state = __esm({
|
|
|
5681
5707
|
});
|
|
5682
5708
|
|
|
5683
5709
|
// src/components/Toast/Toast.tsx
|
|
5684
|
-
var import_icons14,
|
|
5710
|
+
var import_icons14, import_dedupe62, import_sonner, import_Toast, import_jsx_runtime71, variantIcons, variantColors, ToastIcon, CloseIcon, ToastContent, createCustomToast, toast;
|
|
5685
5711
|
var init_Toast = __esm({
|
|
5686
5712
|
"src/components/Toast/Toast.tsx"() {
|
|
5687
5713
|
"use strict";
|
|
5688
5714
|
import_icons14 = require("@simplybusiness/icons");
|
|
5689
|
-
|
|
5715
|
+
import_dedupe62 = __toESM(require("classnames/dedupe"));
|
|
5690
5716
|
import_sonner = require("sonner");
|
|
5691
5717
|
init_Icon2();
|
|
5692
5718
|
init_state();
|
|
@@ -5714,7 +5740,7 @@ var init_Toast = __esm({
|
|
|
5714
5740
|
action,
|
|
5715
5741
|
cancel,
|
|
5716
5742
|
showCloseButton = toastState.showCloseButton
|
|
5717
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: (0,
|
|
5743
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: (0, import_dedupe62.default)("mobius", "mobius-toast", `--${variant}`), children: [
|
|
5718
5744
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ToastIcon, { variant }),
|
|
5719
5745
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "mobius-toast__body", children: [
|
|
5720
5746
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "mobius-toast__content", children: [
|
|
@@ -5906,11 +5932,11 @@ var init_constants = __esm({
|
|
|
5906
5932
|
});
|
|
5907
5933
|
|
|
5908
5934
|
// src/components/Trust/Trust.tsx
|
|
5909
|
-
var
|
|
5935
|
+
var import_dedupe63, import_react46, import_jsx_runtime73, Trust;
|
|
5910
5936
|
var init_Trust = __esm({
|
|
5911
5937
|
"src/components/Trust/Trust.tsx"() {
|
|
5912
5938
|
"use strict";
|
|
5913
|
-
|
|
5939
|
+
import_dedupe63 = __toESM(require("classnames/dedupe"));
|
|
5914
5940
|
import_react46 = require("react");
|
|
5915
5941
|
init_utils();
|
|
5916
5942
|
init_constants();
|
|
@@ -5944,7 +5970,7 @@ var init_Trust = __esm({
|
|
|
5944
5970
|
"data-style-height": height,
|
|
5945
5971
|
"data-stars": stars
|
|
5946
5972
|
};
|
|
5947
|
-
const classes = (0,
|
|
5973
|
+
const classes = (0, import_dedupe63.default)(
|
|
5948
5974
|
"mobius",
|
|
5949
5975
|
"mobius-trust",
|
|
5950
5976
|
REQUIRED_TRUSTPILOT_CLASS_NAME,
|
|
@@ -6004,12 +6030,12 @@ var init_Trust2 = __esm({
|
|
|
6004
6030
|
});
|
|
6005
6031
|
|
|
6006
6032
|
// src/components/ExpandableText/ExpandableText.tsx
|
|
6007
|
-
var
|
|
6033
|
+
var import_dedupe64, import_react47, import_ExpandableText, import_jsx_runtime74, ExpandableText;
|
|
6008
6034
|
var init_ExpandableText = __esm({
|
|
6009
6035
|
"src/components/ExpandableText/ExpandableText.tsx"() {
|
|
6010
6036
|
"use strict";
|
|
6011
6037
|
"use client";
|
|
6012
|
-
|
|
6038
|
+
import_dedupe64 = __toESM(require("classnames/dedupe"));
|
|
6013
6039
|
import_react47 = require("react");
|
|
6014
6040
|
init_src();
|
|
6015
6041
|
import_ExpandableText = require("@simplybusiness/mobius/src/components/ExpandableText/ExpandableText.css");
|
|
@@ -6050,8 +6076,8 @@ var init_ExpandableText = __esm({
|
|
|
6050
6076
|
setIsExpanded(expanded);
|
|
6051
6077
|
onToggle?.(expanded);
|
|
6052
6078
|
};
|
|
6053
|
-
const classes = (0,
|
|
6054
|
-
const textContainerClasses = (0,
|
|
6079
|
+
const classes = (0, import_dedupe64.default)("mobius-expandable-text", className);
|
|
6080
|
+
const textContainerClasses = (0, import_dedupe64.default)("mobius-expandable-text__content", {
|
|
6055
6081
|
"mobius-expandable-text__content--collapsed": !isExpanded
|
|
6056
6082
|
});
|
|
6057
6083
|
const textContainerStyle = {
|
|
@@ -6356,6 +6382,7 @@ __export(components_exports, {
|
|
|
6356
6382
|
VisuallyHidden: () => VisuallyHidden,
|
|
6357
6383
|
buildOptionTestId: () => buildOptionTestId,
|
|
6358
6384
|
convertToDateFormat: () => convertToDateFormat,
|
|
6385
|
+
getElementType: () => getElementType,
|
|
6359
6386
|
isValidDate: () => isValidDate,
|
|
6360
6387
|
toast: () => toast,
|
|
6361
6388
|
useDrawer: () => useDrawer,
|