kdpa-components 0.0.33 → 0.0.35
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/Buttons/index.js
CHANGED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { j as a } from "./identifier-cec96f71.js";
|
|
2
|
+
import { K as e } from "./KdpaTooltip-4bdbed7e.js";
|
|
3
|
+
import { B as i } from "./Button-01894583.js";
|
|
4
|
+
import { I as l } from "./IconButton-f866a4c2.js";
|
|
5
|
+
function j({
|
|
6
|
+
children: t,
|
|
7
|
+
tooltipText: o = "",
|
|
8
|
+
variant: r = "contained",
|
|
9
|
+
...n
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ a.jsx(e, { title: o, ...n, children: /* @__PURE__ */ a.jsx(
|
|
12
|
+
i,
|
|
13
|
+
{
|
|
14
|
+
className: `kdpa-material-button ${!t && "kdpa-material-button__noname"}`,
|
|
15
|
+
variant: r,
|
|
16
|
+
...n,
|
|
17
|
+
children: /* @__PURE__ */ a.jsxs("span", { className: "kdpa-material-button__name", children: [
|
|
18
|
+
" ",
|
|
19
|
+
t
|
|
20
|
+
] })
|
|
21
|
+
}
|
|
22
|
+
) });
|
|
23
|
+
}
|
|
24
|
+
function k({
|
|
25
|
+
icon: t,
|
|
26
|
+
tooltipText: o = "",
|
|
27
|
+
placement: r = "top",
|
|
28
|
+
...n
|
|
29
|
+
}) {
|
|
30
|
+
const { disabled: s, onClick: c, children: d, ...m } = n;
|
|
31
|
+
return /* @__PURE__ */ a.jsx(e, { title: o, placement: r, children: /* @__PURE__ */ a.jsx(
|
|
32
|
+
l,
|
|
33
|
+
{
|
|
34
|
+
disabled: s ?? !1,
|
|
35
|
+
onClick: c,
|
|
36
|
+
...m,
|
|
37
|
+
children: d || t
|
|
38
|
+
}
|
|
39
|
+
) });
|
|
40
|
+
}
|
|
41
|
+
function _({
|
|
42
|
+
children: t,
|
|
43
|
+
icon: o,
|
|
44
|
+
tooltipText: r,
|
|
45
|
+
onClick: n,
|
|
46
|
+
...s
|
|
47
|
+
}) {
|
|
48
|
+
return /* @__PURE__ */ a.jsx(e, { title: r, children: /* @__PURE__ */ a.jsx(
|
|
49
|
+
i,
|
|
50
|
+
{
|
|
51
|
+
className: `kdpa-material-primaryButton${!t && "kdpa-material-primaryButton__noname"}`,
|
|
52
|
+
onClick: n,
|
|
53
|
+
variant: "contained",
|
|
54
|
+
startIcon: o,
|
|
55
|
+
...s,
|
|
56
|
+
children: /* @__PURE__ */ a.jsx("span", { className: "kdpa-material-primaryButton__name", children: t })
|
|
57
|
+
}
|
|
58
|
+
) });
|
|
59
|
+
}
|
|
60
|
+
function f({
|
|
61
|
+
children: t,
|
|
62
|
+
icon: o,
|
|
63
|
+
tooltipText: r,
|
|
64
|
+
onClick: n,
|
|
65
|
+
...s
|
|
66
|
+
}) {
|
|
67
|
+
return /* @__PURE__ */ a.jsx(e, { title: r, children: /* @__PURE__ */ a.jsx(
|
|
68
|
+
i,
|
|
69
|
+
{
|
|
70
|
+
className: `kdpa-secondaryButton ${!t && "kdpa-secondaryButton__noname"}`,
|
|
71
|
+
onClick: n,
|
|
72
|
+
variant: "outlined",
|
|
73
|
+
startIcon: o,
|
|
74
|
+
...s,
|
|
75
|
+
children: /* @__PURE__ */ a.jsxs("span", { className: "kdpa-secondaryButton__name", children: [
|
|
76
|
+
" ",
|
|
77
|
+
t
|
|
78
|
+
] })
|
|
79
|
+
}
|
|
80
|
+
) });
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
j as K,
|
|
84
|
+
k as a,
|
|
85
|
+
_ as b,
|
|
86
|
+
f as c
|
|
87
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { K as w, a as j, b as q } from "./KdpaAccordions-8623d939.js";
|
|
|
2
2
|
import { K as E, a as H } from "./KdpaAlertTitle-f3181fcf.js";
|
|
3
3
|
import { K as N } from "./KdpaAvatar-2ca639d6.js";
|
|
4
4
|
import { K as Q, b as U, a as V } from "./KdpaGridBadge-169c674e.js";
|
|
5
|
-
import { K as X, a as Y, b as Z, c as _ } from "./KdpaSecondaryButton-
|
|
5
|
+
import { K as X, a as Y, b as Z, c as _ } from "./KdpaSecondaryButton-832a00ba.js";
|
|
6
6
|
import { K as oo } from "./KdpaCheckBox-3ec3b052.js";
|
|
7
7
|
import { K as ao } from "./KdpaChip-2d451a93.js";
|
|
8
8
|
import { K as to } from "./KdpaFormControl-c96d6b4d.js";
|
package/package.json
CHANGED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { j as t } from "./identifier-cec96f71.js";
|
|
2
|
-
import { K as e } from "./KdpaTooltip-4bdbed7e.js";
|
|
3
|
-
import { B as i } from "./Button-01894583.js";
|
|
4
|
-
import { I as m } from "./IconButton-f866a4c2.js";
|
|
5
|
-
function j({
|
|
6
|
-
name: a = "",
|
|
7
|
-
tooltipText: r = "",
|
|
8
|
-
variant: o = "contained",
|
|
9
|
-
...n
|
|
10
|
-
}) {
|
|
11
|
-
return /* @__PURE__ */ t.jsx(e, { title: r, ...n, children: /* @__PURE__ */ t.jsx(
|
|
12
|
-
i,
|
|
13
|
-
{
|
|
14
|
-
className: `kdpa-material-button ${!a && "kdpa-material-button__noname"}`,
|
|
15
|
-
variant: o,
|
|
16
|
-
...n,
|
|
17
|
-
children: /* @__PURE__ */ t.jsxs("span", { className: "kdpa-material-button__name", children: [
|
|
18
|
-
" ",
|
|
19
|
-
a
|
|
20
|
-
] })
|
|
21
|
-
}
|
|
22
|
-
) });
|
|
23
|
-
}
|
|
24
|
-
function h({
|
|
25
|
-
icon: a,
|
|
26
|
-
tooltipText: r = "",
|
|
27
|
-
placement: o = "top",
|
|
28
|
-
...n
|
|
29
|
-
}) {
|
|
30
|
-
const { disabled: s, onClick: c, children: d, ...l } = n;
|
|
31
|
-
return /* @__PURE__ */ t.jsx(e, { title: r, placement: o, children: /* @__PURE__ */ t.jsx(
|
|
32
|
-
m,
|
|
33
|
-
{
|
|
34
|
-
disabled: s ?? !1,
|
|
35
|
-
onClick: c,
|
|
36
|
-
...l,
|
|
37
|
-
children: d || a
|
|
38
|
-
}
|
|
39
|
-
) });
|
|
40
|
-
}
|
|
41
|
-
function k({
|
|
42
|
-
name: a,
|
|
43
|
-
icon: r,
|
|
44
|
-
tooltipText: o,
|
|
45
|
-
onClick: n,
|
|
46
|
-
...s
|
|
47
|
-
}) {
|
|
48
|
-
return /* @__PURE__ */ t.jsx(e, { title: o, children: /* @__PURE__ */ t.jsx(
|
|
49
|
-
i,
|
|
50
|
-
{
|
|
51
|
-
className: `kdpa-material-primaryButton${!a && "kdpa-material-primaryButton__noname"}`,
|
|
52
|
-
onClick: n,
|
|
53
|
-
variant: "contained",
|
|
54
|
-
startIcon: r,
|
|
55
|
-
...s,
|
|
56
|
-
children: /* @__PURE__ */ t.jsx("span", { className: "kdpa-material-primaryButton__name", children: a })
|
|
57
|
-
}
|
|
58
|
-
) });
|
|
59
|
-
}
|
|
60
|
-
function _({
|
|
61
|
-
name: a,
|
|
62
|
-
icon: r,
|
|
63
|
-
tooltipText: o,
|
|
64
|
-
onClick: n,
|
|
65
|
-
...s
|
|
66
|
-
}) {
|
|
67
|
-
return /* @__PURE__ */ t.jsx(e, { title: o, children: /* @__PURE__ */ t.jsx(
|
|
68
|
-
i,
|
|
69
|
-
{
|
|
70
|
-
className: `kdpa-secondaryButton ${!a && "kdpa-secondaryButton__noname"}`,
|
|
71
|
-
onClick: n,
|
|
72
|
-
variant: "outlined",
|
|
73
|
-
startIcon: r,
|
|
74
|
-
...s,
|
|
75
|
-
children: /* @__PURE__ */ t.jsxs("span", { className: "kdpa-secondaryButton__name", children: [
|
|
76
|
-
" ",
|
|
77
|
-
a
|
|
78
|
-
] })
|
|
79
|
-
}
|
|
80
|
-
) });
|
|
81
|
-
}
|
|
82
|
-
export {
|
|
83
|
-
j as K,
|
|
84
|
-
h as a,
|
|
85
|
-
k as b,
|
|
86
|
-
_ as c
|
|
87
|
-
};
|