@phillips/seldon 1.77.0 → 1.77.1
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.
|
@@ -1,111 +1,112 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { getCommonProps as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { Item as
|
|
1
|
+
import { jsxs as $, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { getCommonProps as f } from "../../utils/index.js";
|
|
3
|
+
import g from "../../assets/plus.svg.js";
|
|
4
|
+
import v from "../../assets/minus.svg.js";
|
|
5
|
+
import I from "../../assets/lock.svg.js";
|
|
6
|
+
import a from "../../node_modules/classnames/index.js";
|
|
7
|
+
import { Item as _, Trigger as x, Content as C } from "../../node_modules/@radix-ui/react-accordion/dist/index.js";
|
|
8
8
|
import { AccordionItemVariant as h } from "./types.js";
|
|
9
9
|
import { getIconClasses as u } from "./utils.js";
|
|
10
10
|
const A = ({
|
|
11
11
|
children: n,
|
|
12
|
-
className:
|
|
13
|
-
baseClassName:
|
|
14
|
-
disable:
|
|
15
|
-
isLargeVariation:
|
|
16
|
-
id:
|
|
12
|
+
className: e,
|
|
13
|
+
baseClassName: o,
|
|
14
|
+
disable: s,
|
|
15
|
+
isLargeVariation: r,
|
|
16
|
+
id: c
|
|
17
17
|
}) => {
|
|
18
|
-
const i =
|
|
19
|
-
|
|
18
|
+
const i = s, l = /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
19
|
+
I,
|
|
20
20
|
{
|
|
21
|
-
className: u(
|
|
22
|
-
"data-testid": `${
|
|
21
|
+
className: u(o, r, "lock"),
|
|
22
|
+
"data-testid": `${c}-lockedIcon`,
|
|
23
23
|
"aria-hidden": !0
|
|
24
24
|
}
|
|
25
|
-
) }), p = /* @__PURE__ */
|
|
26
|
-
|
|
25
|
+
) }), p = /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
26
|
+
g,
|
|
27
27
|
{
|
|
28
|
-
className: u(
|
|
29
|
-
"data-testid": `${
|
|
28
|
+
className: u(o, r, "plus"),
|
|
29
|
+
"data-testid": `${c}-plusIcon`,
|
|
30
30
|
"aria-hidden": !0
|
|
31
31
|
}
|
|
32
|
-
) }),
|
|
33
|
-
|
|
32
|
+
) }), d = /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
33
|
+
v,
|
|
34
34
|
{
|
|
35
|
-
className: u(
|
|
36
|
-
"data-testid": `${
|
|
35
|
+
className: u(o, r, "minus"),
|
|
36
|
+
"data-testid": `${c}-minusIcon`,
|
|
37
37
|
"aria-hidden": !0
|
|
38
38
|
}
|
|
39
39
|
) });
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ t(
|
|
41
41
|
x,
|
|
42
42
|
{
|
|
43
|
-
"data-disabled":
|
|
43
|
+
"data-disabled": s,
|
|
44
44
|
asChild: !0,
|
|
45
|
-
className:
|
|
46
|
-
children: /* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
45
|
+
className: a(o, { [`${o}--hoverable`]: !s }, e),
|
|
46
|
+
children: /* @__PURE__ */ $("div", { "data-testid": `${c}-trigger`, children: [
|
|
47
|
+
/* @__PURE__ */ t("div", { className: a(`${o}__text`, { [`${o}__text--lg`]: r }), children: n }),
|
|
48
48
|
i && l,
|
|
49
49
|
!i && p,
|
|
50
|
-
!i &&
|
|
50
|
+
!i && d
|
|
51
51
|
] })
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
|
-
},
|
|
54
|
+
}, N = ({
|
|
55
55
|
children: n,
|
|
56
|
-
baseClassName:
|
|
57
|
-
disable:
|
|
58
|
-
hasTransition:
|
|
59
|
-
isLargeVariation:
|
|
60
|
-
className:
|
|
61
|
-
}) =>
|
|
62
|
-
|
|
56
|
+
baseClassName: e,
|
|
57
|
+
disable: o,
|
|
58
|
+
hasTransition: s,
|
|
59
|
+
isLargeVariation: r,
|
|
60
|
+
className: c
|
|
61
|
+
}) => o && n ? /* @__PURE__ */ t("div", { children: n }) : /* @__PURE__ */ t(
|
|
62
|
+
C,
|
|
63
63
|
{
|
|
64
64
|
asChild: !0,
|
|
65
|
-
className:
|
|
66
|
-
|
|
67
|
-
{ [`${
|
|
68
|
-
|
|
65
|
+
className: a(
|
|
66
|
+
`${e}__content`,
|
|
67
|
+
{ [`${e}__content--lg`]: r },
|
|
68
|
+
{ [`${e}--transition`]: s },
|
|
69
|
+
c
|
|
69
70
|
),
|
|
70
71
|
children: n
|
|
71
72
|
}
|
|
72
|
-
)
|
|
73
|
+
), q = ({
|
|
73
74
|
isLocked: n = !1,
|
|
74
|
-
variant:
|
|
75
|
-
id:
|
|
76
|
-
label:
|
|
77
|
-
isLastItem:
|
|
78
|
-
hasTransition:
|
|
75
|
+
variant: e = h.sm,
|
|
76
|
+
id: o,
|
|
77
|
+
label: s,
|
|
78
|
+
isLastItem: r,
|
|
79
|
+
hasTransition: c = !1,
|
|
79
80
|
children: i,
|
|
80
81
|
...l
|
|
81
82
|
}) => {
|
|
82
|
-
const { className: p } =
|
|
83
|
-
return /* @__PURE__ */
|
|
84
|
-
|
|
83
|
+
const { className: p } = f({ id: o }, "Accordion"), d = e === h.lg, m = `${p}-item`;
|
|
84
|
+
return /* @__PURE__ */ $(
|
|
85
|
+
_,
|
|
85
86
|
{
|
|
86
87
|
disabled: n,
|
|
87
|
-
value:
|
|
88
|
-
className:
|
|
88
|
+
value: o,
|
|
89
|
+
className: a(m, { [`${m}__border-bottom`]: !r }),
|
|
89
90
|
...l,
|
|
90
91
|
children: [
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ t(
|
|
92
93
|
A,
|
|
93
94
|
{
|
|
94
95
|
disable: n,
|
|
95
|
-
isLargeVariation:
|
|
96
|
-
id:
|
|
96
|
+
isLargeVariation: d,
|
|
97
|
+
id: o,
|
|
97
98
|
baseClassName: `${m}-label`,
|
|
98
|
-
children:
|
|
99
|
+
children: s
|
|
99
100
|
}
|
|
100
101
|
),
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
|
|
102
|
+
/* @__PURE__ */ t(
|
|
103
|
+
N,
|
|
103
104
|
{
|
|
104
105
|
disable: n,
|
|
105
|
-
hasTransition:
|
|
106
|
-
isLargeVariation:
|
|
106
|
+
hasTransition: c,
|
|
107
|
+
isLargeVariation: d,
|
|
107
108
|
baseClassName: m,
|
|
108
|
-
children: /* @__PURE__ */
|
|
109
|
+
children: /* @__PURE__ */ t("div", { className: "radix-accordion-content", children: i })
|
|
109
110
|
}
|
|
110
111
|
)
|
|
111
112
|
]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as e } from "../../../../_virtual/
|
|
1
|
+
import { __module as e } from "../../../../_virtual/index5.js";
|
|
2
2
|
import { __require as o } from "./cjs/react-is.production.min.js";
|
|
3
3
|
import { __require as t } from "./cjs/react-is.development.js";
|
|
4
4
|
var r;
|