@pismo/marola 1.1.17 → 1.1.20
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/dist/Group-BKXO7GzU.js +39 -0
- package/dist/{Toggle-BuZjueQ7.js → Toggle-Bkf8bKbA.js} +1 -1
- package/dist/assets/Group.css +1 -1
- package/dist/components/Chip/Chip.js +2 -2
- package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
- package/dist/components/RowItem/RowItem.js +2 -2
- package/dist/components/ToggleGroup/Group.js +1 -1
- package/dist/components/ToggleGroup/Toggle.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
- package/dist/components/Tooltip/Tooltip.js +48 -50
- package/dist/main.js +2 -2
- package/package.json +9 -9
- package/dist/Group-ZXteFV4M.js +0 -39
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
|
+
import { c } from "./clsx-DB4S2d7J.js";
|
|
4
|
+
import { Icon as f } from "./components/Icon/Icon.js";
|
|
5
|
+
import { Typography as p } from "./components/Typography/Typography.js";
|
|
6
|
+
import './assets/Group.css';const m = "_toggle__input_1fdw4_1", u = "_toggle__label_1fdw4_11", t = {
|
|
7
|
+
toggle__input: m,
|
|
8
|
+
toggle__label: u,
|
|
9
|
+
"toggle__label--selected": "_toggle__label--selected_1fdw4_21",
|
|
10
|
+
"toggle__label--disabled": "_toggle__label--disabled_1fdw4_21",
|
|
11
|
+
"toggle-group__fieldset": "_toggle-group__fieldset_1fdw4_35",
|
|
12
|
+
"toggle-group__options": "_toggle-group__options_1fdw4_40",
|
|
13
|
+
"toggle-group__options-same-width": "_toggle-group__options-same-width_1fdw4_44",
|
|
14
|
+
"toggle-group__error": "_toggle-group__error_1fdw4_47"
|
|
15
|
+
}, v = n((e, d) => {
|
|
16
|
+
const { children: r, legend: _, error: g, equalWidth: s } = e, a = e["data-testid"] ? `${e["data-testid"]}-legend` : void 0, i = e["data-testid"] ? `${e["data-testid"]}-error` : void 0;
|
|
17
|
+
return /* @__PURE__ */ l("fieldset", { ref: d, "data-testid": e["data-testid"], className: t["toggle-group__fieldset"], children: [
|
|
18
|
+
_ && /* @__PURE__ */ o("legend", { "data-testid": a, children: _ }),
|
|
19
|
+
/* @__PURE__ */ o(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
className: c(
|
|
23
|
+
t["toggle-group__options"],
|
|
24
|
+
s && t["toggle-group__options-same-width"],
|
|
25
|
+
e.classNameForOptions
|
|
26
|
+
),
|
|
27
|
+
children: r
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
g && /* @__PURE__ */ l(p, { className: t["toggle-group__error"], "data-testid": i, children: [
|
|
31
|
+
/* @__PURE__ */ o(f, { icon: "circle-exclamation" }),
|
|
32
|
+
g
|
|
33
|
+
] })
|
|
34
|
+
] });
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
v as G,
|
|
38
|
+
t as s
|
|
39
|
+
};
|
|
@@ -15,7 +15,7 @@ import "./components/Select/Select.js";
|
|
|
15
15
|
import "./components/Popover/Popover.js";
|
|
16
16
|
import "./components/Table/Table.js";
|
|
17
17
|
import "./components/Tabs/Tabs.js";
|
|
18
|
-
import { s as y } from "./Group-
|
|
18
|
+
import { s as y } from "./Group-BKXO7GzU.js";
|
|
19
19
|
import "./contexts/SnackbarProvider/SnackbarProvider.js";
|
|
20
20
|
import { B as x } from "./Button-BAljjMv3.js";
|
|
21
21
|
import './assets/Toggle2.css';const I = "_chip_1wvod_61", P = "_chip__adornment_1wvod_116", z = "_chip__remove_1wvod_121", n = {
|
package/dist/assets/Group.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._toggle__input_1fdw4_1{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;visibility:hidden;opacity:0}._toggle__label_1fdw4_11{position:relative;flex-grow:1;padding:.5rem 1rem;color:var(--accent);text-align:center;cursor:pointer;background-color:rgb(var(--accent-rgb),.1);border-radius:6px}._toggle__label_1fdw4_11:hover:not(._toggle__label--selected_1fdw4_21,._toggle__label--disabled_1fdw4_21){border-color:var(--gray-75);opacity:.9}._toggle__label--selected_1fdw4_21{color:var(--white-100);background-color:var(--accent)}._toggle__label--disabled_1fdw4_21{color:rgb(var(--black-100-rgb),.25);cursor:default;background-color:rgb(var(--black-100-rgb),.04)}._toggle-group__fieldset_1fdw4_35{padding:0;margin:0;border:none}._toggle-group__options_1fdw4_40{display:flex;gap:.5rem}._toggle-group__options-same-width_1fdw4_44>*{flex:1}._toggle-group__error_1fdw4_47{display:flex;gap:.375rem;align-items:center;margin-top:.3125rem;color:var(--alert)}._toggle-group__error_1fdw4_47 svg{min-width:1rem;min-height:1rem}
|
|
@@ -7,7 +7,7 @@ import "../Typography/Typography.js";
|
|
|
7
7
|
import "../Input/Input.js";
|
|
8
8
|
import "../Avatar/Avatar.js";
|
|
9
9
|
import "../Button/Button.js";
|
|
10
|
-
import { C as u } from "../../Toggle-
|
|
10
|
+
import { C as u } from "../../Toggle-Bkf8bKbA.js";
|
|
11
11
|
import "../Dialog/Dialog.js";
|
|
12
12
|
import "../Skeleton/Skeleton.js";
|
|
13
13
|
import "../IconButton/IconButton.js";
|
|
@@ -16,7 +16,7 @@ import "../Select/Select.js";
|
|
|
16
16
|
import "../Popover/Popover.js";
|
|
17
17
|
import "../Table/Table.js";
|
|
18
18
|
import "../Tabs/Tabs.js";
|
|
19
|
-
import "../../Group-
|
|
19
|
+
import "../../Group-BKXO7GzU.js";
|
|
20
20
|
import "../../contexts/SnackbarProvider/SnackbarProvider.js";
|
|
21
21
|
import "../../Button-BAljjMv3.js";
|
|
22
22
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { C as t } from "../../Toggle-
|
|
2
|
+
import { C as t } from "../../Toggle-Bkf8bKbA.js";
|
|
3
3
|
import '../../assets/ResultWithChips.css';const r = "_container_hgp0p_1", o = "_label_hgp0p_17", a = {
|
|
4
4
|
container: r,
|
|
5
5
|
"chip-item-wrapper": "_chip-item-wrapper_hgp0p_8",
|
|
@@ -7,7 +7,7 @@ import "../Typography/Typography.js";
|
|
|
7
7
|
import "../Input/Input.js";
|
|
8
8
|
import "../Avatar/Avatar.js";
|
|
9
9
|
import "../Button/Button.js";
|
|
10
|
-
import { R as h, R as j } from "../../Toggle-
|
|
10
|
+
import { R as h, R as j } from "../../Toggle-Bkf8bKbA.js";
|
|
11
11
|
import "../Dialog/Dialog.js";
|
|
12
12
|
import "../IconButton/IconButton.js";
|
|
13
13
|
import "../InputSearch/InputSearch.js";
|
|
@@ -15,7 +15,7 @@ import "../Select/Select.js";
|
|
|
15
15
|
import "../Popover/Popover.js";
|
|
16
16
|
import "../Table/Table.js";
|
|
17
17
|
import "../Tabs/Tabs.js";
|
|
18
|
-
import "../../Group-
|
|
18
|
+
import "../../Group-BKXO7GzU.js";
|
|
19
19
|
import "../../contexts/SnackbarProvider/SnackbarProvider.js";
|
|
20
20
|
export {
|
|
21
21
|
h as RowItem,
|
|
@@ -6,7 +6,7 @@ import "../Typography/Typography.js";
|
|
|
6
6
|
import "../Input/Input.js";
|
|
7
7
|
import "../Avatar/Avatar.js";
|
|
8
8
|
import "../Button/Button.js";
|
|
9
|
-
import { T as j } from "../../Toggle-
|
|
9
|
+
import { T as j } from "../../Toggle-Bkf8bKbA.js";
|
|
10
10
|
import "../Dialog/Dialog.js";
|
|
11
11
|
import "../IconButton/IconButton.js";
|
|
12
12
|
import "../InputSearch/InputSearch.js";
|
|
@@ -14,7 +14,7 @@ import "../Select/Select.js";
|
|
|
14
14
|
import "../Popover/Popover.js";
|
|
15
15
|
import "../Table/Table.js";
|
|
16
16
|
import "../Tabs/Tabs.js";
|
|
17
|
-
import "../../Group-
|
|
17
|
+
import "../../Group-BKXO7GzU.js";
|
|
18
18
|
import "../../contexts/SnackbarProvider/SnackbarProvider.js";
|
|
19
19
|
export {
|
|
20
20
|
j as default
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
1
|
+
import { jsx as a, jsxs as S, Fragment as v } from "react/jsx-runtime";
|
|
2
2
|
import * as u from "react";
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { T as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { c as
|
|
7
|
-
import { C as
|
|
8
|
-
import '../../assets/Tooltip.css';function
|
|
9
|
-
const
|
|
10
|
-
if (!
|
|
3
|
+
import { useRef as P, useState as R, useEffect as C, isValidElement as T, cloneElement as q } from "react";
|
|
4
|
+
import { T as M, P as O } from "../../Popup-Ck3XlWMq.js";
|
|
5
|
+
import { _ as V, b as $, P as l } from "../../useSlotProps-C_I1kEHr.js";
|
|
6
|
+
import { c as z } from "../../clsx-DB4S2d7J.js";
|
|
7
|
+
import { C as D } from "../../ClickAwayListener-DbEYZpyh.js";
|
|
8
|
+
import '../../assets/Tooltip.css';function F() {
|
|
9
|
+
const n = u.useContext(M);
|
|
10
|
+
if (!n)
|
|
11
11
|
throw new Error("Missing transition context");
|
|
12
12
|
const {
|
|
13
13
|
registerTransition: o,
|
|
14
14
|
requestedEnter: r,
|
|
15
|
-
onExited:
|
|
16
|
-
} =
|
|
15
|
+
onExited: e
|
|
16
|
+
} = n;
|
|
17
17
|
return u.useEffect(() => o(), [o]), {
|
|
18
|
-
onExited:
|
|
18
|
+
onExited: e,
|
|
19
19
|
requestedEnter: r
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
function
|
|
22
|
+
const I = ["children", "className", "enterAnimationName", "enterClassName", "exitAnimationName", "exitClassName"];
|
|
23
|
+
function E(n) {
|
|
24
24
|
const {
|
|
25
25
|
children: o,
|
|
26
26
|
className: r,
|
|
27
|
-
enterAnimationName:
|
|
27
|
+
enterAnimationName: e,
|
|
28
28
|
enterClassName: c,
|
|
29
29
|
exitAnimationName: _,
|
|
30
30
|
exitClassName: f
|
|
31
|
-
} =
|
|
31
|
+
} = n, p = V(n, I), {
|
|
32
32
|
requestedEnter: d,
|
|
33
33
|
onExited: s
|
|
34
|
-
} =
|
|
34
|
+
} = F(), i = u.useRef(!0);
|
|
35
35
|
u.useEffect(() => {
|
|
36
36
|
d && i.current && (i.current = !1);
|
|
37
37
|
}, [d]);
|
|
38
38
|
const N = u.useCallback((t) => {
|
|
39
|
-
t.animationName === _ ? (s(), i.current = !0) : t.animationName ===
|
|
40
|
-
}, [s, _,
|
|
41
|
-
return /* @__PURE__ */ a("div",
|
|
39
|
+
t.animationName === _ ? (s(), i.current = !0) : t.animationName === e && (i.current = !1);
|
|
40
|
+
}, [s, _, e]);
|
|
41
|
+
return /* @__PURE__ */ a("div", $({
|
|
42
42
|
onAnimationEnd: N,
|
|
43
|
-
className:
|
|
43
|
+
className: z(r, d ? c : f)
|
|
44
44
|
}, p, {
|
|
45
45
|
children: o
|
|
46
46
|
}));
|
|
47
47
|
}
|
|
48
|
-
process.env.NODE_ENV !== "production" && (
|
|
48
|
+
process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
49
49
|
children: l.node,
|
|
50
50
|
className: l.string,
|
|
51
51
|
enterAnimationName: l.string,
|
|
@@ -53,8 +53,8 @@ process.env.NODE_ENV !== "production" && (b.propTypes = {
|
|
|
53
53
|
exitAnimationName: l.string,
|
|
54
54
|
exitClassName: l.string
|
|
55
55
|
});
|
|
56
|
-
const
|
|
57
|
-
tooltip:
|
|
56
|
+
const W = "_tooltip_1dujm_1", m = {
|
|
57
|
+
tooltip: W,
|
|
58
58
|
"tooltip--small-padding": "_tooltip--small-padding_1dujm_5",
|
|
59
59
|
"tooltip--normal-padding": "_tooltip--normal-padding_1dujm_8",
|
|
60
60
|
"tooltip--white-theme": "_tooltip--white-theme_1dujm_11",
|
|
@@ -64,11 +64,11 @@ const B = "_tooltip_1dujm_1", m = {
|
|
|
64
64
|
"tooltip--open-animation": "_tooltip--open-animation_1dujm_1",
|
|
65
65
|
"tooltip--anim-close": "_tooltip--anim-close_1dujm_23",
|
|
66
66
|
"tooltip--close-animation": "_tooltip--close-animation_1dujm_1"
|
|
67
|
-
},
|
|
68
|
-
arialRole:
|
|
67
|
+
}, U = ({
|
|
68
|
+
arialRole: n,
|
|
69
69
|
children: o,
|
|
70
70
|
className: r,
|
|
71
|
-
disableHoverListener:
|
|
71
|
+
disableHoverListener: e,
|
|
72
72
|
onClose: c,
|
|
73
73
|
padding: _ = "small",
|
|
74
74
|
position: f = "bottom",
|
|
@@ -78,57 +78,55 @@ const B = "_tooltip_1dujm_1", m = {
|
|
|
78
78
|
onTargetCreated: i,
|
|
79
79
|
...N
|
|
80
80
|
}) => {
|
|
81
|
-
const t =
|
|
82
|
-
let j =
|
|
83
|
-
|
|
81
|
+
const t = P(null), [b, h] = R(p || !1);
|
|
82
|
+
let j = b;
|
|
83
|
+
C(() => {
|
|
84
84
|
h(p || !1);
|
|
85
85
|
}, [p]);
|
|
86
|
-
const A =
|
|
86
|
+
const A = T(o) ? o : /* @__PURE__ */ a("span", { children: o });
|
|
87
87
|
!s && s !== 0 && (j = !1);
|
|
88
|
-
const
|
|
89
|
-
c == null || c(), !
|
|
88
|
+
const y = () => {
|
|
89
|
+
c == null || c(), !e && h(!1);
|
|
90
90
|
};
|
|
91
|
-
|
|
92
|
-
var C;
|
|
91
|
+
C(() => {
|
|
93
92
|
if (t != null && t.current) {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
x && (n || (x.onpointerenter = () => h(!0), x.onpointerleave = () => h(!1)));
|
|
93
|
+
const x = t == null ? void 0 : t.current;
|
|
94
|
+
i == null || i(x), e || (x.onpointerenter = () => h(!0), x.onpointerleave = () => h(!1));
|
|
97
95
|
}
|
|
98
|
-
}, [t,
|
|
99
|
-
const
|
|
96
|
+
}, [t, e]);
|
|
97
|
+
const g = {
|
|
100
98
|
padding: f.match(/(bottom|top)/) ? ".25rem 0" : "0 .25rem",
|
|
101
99
|
zIndex: 1
|
|
102
|
-
},
|
|
100
|
+
}, k = [
|
|
103
101
|
m.tooltip,
|
|
104
102
|
m[`tooltip--${d}-theme`],
|
|
105
103
|
m[`tooltip--${_}-padding`],
|
|
106
104
|
r || ""
|
|
107
|
-
].join(" ").trim(),
|
|
105
|
+
].join(" ").trim(), w = {
|
|
108
106
|
...A.props,
|
|
109
107
|
ref: t
|
|
110
108
|
};
|
|
111
|
-
return /* @__PURE__ */ v
|
|
112
|
-
|
|
109
|
+
return /* @__PURE__ */ S(v, { children: [
|
|
110
|
+
q(A, w),
|
|
113
111
|
/* @__PURE__ */ a(
|
|
114
|
-
|
|
112
|
+
O,
|
|
115
113
|
{
|
|
116
114
|
disablePortal: !0,
|
|
117
115
|
...N,
|
|
118
116
|
open: j,
|
|
119
117
|
anchor: t == null ? void 0 : t.current,
|
|
120
|
-
style:
|
|
121
|
-
role:
|
|
118
|
+
style: g,
|
|
119
|
+
role: n,
|
|
122
120
|
placement: f,
|
|
123
121
|
children: /* @__PURE__ */ a(
|
|
124
|
-
|
|
122
|
+
E,
|
|
125
123
|
{
|
|
126
124
|
className: m["tooltip--animation"],
|
|
127
125
|
enterClassName: m["tooltip--anim-open"],
|
|
128
126
|
exitClassName: m["tooltip--anim-close"],
|
|
129
127
|
enterAnimationName: "tooltip--open-animation",
|
|
130
128
|
exitAnimationName: "tooltip--close-animation",
|
|
131
|
-
children: /* @__PURE__ */ a("div", { className:
|
|
129
|
+
children: /* @__PURE__ */ a("div", { className: k, children: /* @__PURE__ */ a(D, { onClickAway: y, children: /* @__PURE__ */ a("div", { children: s }) }) })
|
|
132
130
|
}
|
|
133
131
|
)
|
|
134
132
|
}
|
|
@@ -136,5 +134,5 @@ const B = "_tooltip_1dujm_1", m = {
|
|
|
136
134
|
] });
|
|
137
135
|
};
|
|
138
136
|
export {
|
|
139
|
-
|
|
137
|
+
U as Tooltip
|
|
140
138
|
};
|
package/dist/main.js
CHANGED
|
@@ -8,7 +8,7 @@ import { BankCard as c } from "./components/BankCard/BankCard.js";
|
|
|
8
8
|
import { Button as d } from "./components/Button/Button.js";
|
|
9
9
|
import { Calendar as S } from "./components/Calendar/Calendar.js";
|
|
10
10
|
import { Checkbox as b } from "./components/Checkbox/Checkbox.js";
|
|
11
|
-
import { C as h, R as D, T as A } from "./Toggle-
|
|
11
|
+
import { C as h, R as D, T as A } from "./Toggle-Bkf8bKbA.js";
|
|
12
12
|
import { ConfirmationDialog as I } from "./components/ConfirmationDialog/ConfirmationDialog.js";
|
|
13
13
|
import { Description as P } from "./components/Description/Description.js";
|
|
14
14
|
import { Dialog as y } from "./components/Dialog/Dialog.js";
|
|
@@ -35,7 +35,7 @@ import { Tag as Ro } from "./components/Tag/Tag.js";
|
|
|
35
35
|
import { TextDisplay as Go } from "./components/TextDisplay/TextDisplay.js";
|
|
36
36
|
import { ToastCard as Ho } from "./components/ToastCard/ToastCard.js";
|
|
37
37
|
import { Toggle as Lo } from "./components/Toggle/Toggle.js";
|
|
38
|
-
import { G as Oo } from "./Group-
|
|
38
|
+
import { G as Oo } from "./Group-BKXO7GzU.js";
|
|
39
39
|
import { Tooltip as jo } from "./components/Tooltip/Tooltip.js";
|
|
40
40
|
import { TransactionRow as zo } from "./components/TransactionRow/TransactionRow.js";
|
|
41
41
|
import { Text as Jo, Typography as Ko } from "./components/Typography/Typography.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pismo/marola",
|
|
3
3
|
"description": "CDX tribe component library",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.20",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
65
65
|
"@typescript-eslint/parser": "^7.6.0",
|
|
66
66
|
"@vitejs/plugin-react": "^4.2.1",
|
|
67
|
-
"@vitest/coverage-v8": "^
|
|
67
|
+
"@vitest/coverage-v8": "^3.0.9",
|
|
68
68
|
"clsx": "^2.1.0",
|
|
69
69
|
"commitlint": "^19.2.1",
|
|
70
70
|
"cypress": "^13.8.1",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"eslint-plugin-storybook": "^0.9.0",
|
|
78
78
|
"glob": "^10.3.14",
|
|
79
79
|
"husky": "^9.0.11",
|
|
80
|
-
"jsdom": "^
|
|
80
|
+
"jsdom": "^26.0.0",
|
|
81
81
|
"lint-staged": "^15.2.7",
|
|
82
82
|
"prettier": "^3.2.5",
|
|
83
83
|
"react": "^18.2.0",
|
|
@@ -89,15 +89,15 @@
|
|
|
89
89
|
"stylelint-config-standard-scss": "^13.1.0",
|
|
90
90
|
"stylelint-prettier": "^5.0.0",
|
|
91
91
|
"typescript": "^5.2.2",
|
|
92
|
-
"vite": "^
|
|
93
|
-
"vite-plugin-dts": "^
|
|
94
|
-
"vite-plugin-lib-inject-css": "^2.
|
|
95
|
-
"vite-plugin-svgr": "^4.
|
|
96
|
-
"vitest": "^
|
|
92
|
+
"vite": "^6.2.3",
|
|
93
|
+
"vite-plugin-dts": "^4.5.3",
|
|
94
|
+
"vite-plugin-lib-inject-css": "^2.2.1",
|
|
95
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
96
|
+
"vitest": "^3.0.9",
|
|
97
97
|
"vitest-preview": "^0.0.1"
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
100
|
"@mui/base": "^5.0.0-beta.40",
|
|
101
101
|
"@mui/material": "^5.15.15"
|
|
102
102
|
}
|
|
103
|
-
}
|
|
103
|
+
}
|
package/dist/Group-ZXteFV4M.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as n } from "react";
|
|
3
|
-
import { c as m } from "./clsx-DB4S2d7J.js";
|
|
4
|
-
import { Icon as u } from "./components/Icon/Icon.js";
|
|
5
|
-
import { Typography as c } from "./components/Typography/Typography.js";
|
|
6
|
-
import './assets/Group.css';const p = "_toggle__input_hu6m0_1", h = "_toggle__label_hu6m0_11", t = {
|
|
7
|
-
toggle__input: p,
|
|
8
|
-
toggle__label: h,
|
|
9
|
-
"toggle__label--selected": "_toggle__label--selected_hu6m0_21",
|
|
10
|
-
"toggle__label--disabled": "_toggle__label--disabled_hu6m0_21",
|
|
11
|
-
"toggle-group__fieldset": "_toggle-group__fieldset_hu6m0_35",
|
|
12
|
-
"toggle-group__options": "_toggle-group__options_hu6m0_40",
|
|
13
|
-
"toggle-group__options-same-width": "_toggle-group__options-same-width_hu6m0_44",
|
|
14
|
-
"toggle-group__error": "_toggle-group__error_hu6m0_47"
|
|
15
|
-
}, v = n((e, r) => {
|
|
16
|
-
const { children: s, legend: _, error: g, equalWidth: a } = e, i = e["data-testid"] ? `${e["data-testid"]}-legend` : void 0, d = e["data-testid"] ? `${e["data-testid"]}-error` : void 0;
|
|
17
|
-
return /* @__PURE__ */ l("fieldset", { ref: r, "data-testid": e["data-testid"], className: t["toggle-group__fieldset"], children: [
|
|
18
|
-
_ && /* @__PURE__ */ o("legend", { "data-testid": i, children: _ }),
|
|
19
|
-
/* @__PURE__ */ o(
|
|
20
|
-
"div",
|
|
21
|
-
{
|
|
22
|
-
className: m(
|
|
23
|
-
t["toggle-group__options"],
|
|
24
|
-
a && t["toggle-group__options-same-width"],
|
|
25
|
-
e.classNameForOptions
|
|
26
|
-
),
|
|
27
|
-
children: s
|
|
28
|
-
}
|
|
29
|
-
),
|
|
30
|
-
g && /* @__PURE__ */ l(c, { className: t["toggle-group__error"], "data-testid": d, children: [
|
|
31
|
-
/* @__PURE__ */ o(u, { icon: "circle-exclamation" }),
|
|
32
|
-
g
|
|
33
|
-
] })
|
|
34
|
-
] });
|
|
35
|
-
});
|
|
36
|
-
export {
|
|
37
|
-
v as G,
|
|
38
|
-
t as s
|
|
39
|
-
};
|