@companix/uikit 0.0.63 → 0.0.65
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/Select/OptionsPopover.d.ts +6 -4
- package/dist/Select/index.d.ts +7 -10
- package/dist/SelectTags/index.d.ts +4 -7
- package/dist/__utils/utils.d.ts +4 -0
- package/dist/bundle.es.js +31 -31
- package/dist/bundle.es12.js +30 -29
- package/dist/bundle.es13.js +122 -41
- package/dist/bundle.es14.js +37 -32
- package/dist/bundle.es15.js +32 -52
- package/dist/bundle.es16.js +54 -19
- package/dist/bundle.es17.js +21 -33
- package/dist/bundle.es18.js +31 -23
- package/dist/bundle.es19.js +24 -44
- package/dist/bundle.es20.js +41 -19
- package/dist/bundle.es21.js +23 -29
- package/dist/bundle.es22.js +28 -37
- package/dist/bundle.es23.js +38 -16
- package/dist/bundle.es24.js +15 -18
- package/dist/bundle.es25.js +18 -20
- package/dist/bundle.es26.js +20 -41
- package/dist/bundle.es27.js +35 -113
- package/dist/bundle.es28.js +4 -4
- package/dist/bundle.es29.js +1 -1
- package/dist/bundle.es32.js +48 -48
- package/dist/bundle.es42.js +1 -1
- package/dist/bundle.es43.js +1 -1
- package/dist/bundle.es50.js +14 -14
- package/dist/bundle.es51.js +73 -23
- package/dist/bundle.es52.js +20 -35
- package/dist/bundle.es53.js +39 -5
- package/dist/bundle.es54.js +5 -14
- package/dist/bundle.es55.js +13 -13
- package/dist/bundle.es56.js +13 -69
- package/dist/bundle.es57.js +68 -66
- package/dist/bundle.es58.js +67 -69
- package/dist/bundle.es60.js +1 -1
- package/dist/bundle.es62.js +1 -1
- package/dist/bundle.es65.js +2 -2
- package/dist/bundle.es66.js +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/bundle.es16.js
CHANGED
|
@@ -1,23 +1,58 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import C from "classnames";
|
|
3
|
+
import { forwardRef as j, useRef as w } from "react";
|
|
4
|
+
import { mergeRefs as y } from "react-merge-refs";
|
|
5
|
+
import { InputContainer as F } from "./bundle.es53.js";
|
|
6
|
+
import { NumericFormat as V } from "react-number-format";
|
|
7
|
+
const D = j(
|
|
8
|
+
({
|
|
9
|
+
onChange: m,
|
|
10
|
+
onValueChange: o,
|
|
11
|
+
readOnly: f,
|
|
12
|
+
inputClassName: i,
|
|
13
|
+
value: n,
|
|
14
|
+
placeholder: u,
|
|
15
|
+
thousandSeparator: a,
|
|
16
|
+
decimalSeparator: p,
|
|
17
|
+
allowedDecimalSeparators: l,
|
|
18
|
+
thousandsGroupStyle: s,
|
|
19
|
+
decimalScale: d,
|
|
20
|
+
fixedDecimalScale: b,
|
|
21
|
+
allowNegative: R = !1,
|
|
22
|
+
allowLeadingZeros: c,
|
|
23
|
+
suffix: g,
|
|
24
|
+
prefix: x,
|
|
25
|
+
inputRef: I,
|
|
26
|
+
...e
|
|
27
|
+
}, N) => {
|
|
28
|
+
const r = w(null);
|
|
29
|
+
return /* @__PURE__ */ t(F, { ref: N, inputRef: r, ...e, children: /* @__PURE__ */ t(
|
|
30
|
+
V,
|
|
31
|
+
{
|
|
32
|
+
type: "text",
|
|
33
|
+
getInputRef: y([r, I]),
|
|
34
|
+
className: C("form-input form-input-base", i),
|
|
35
|
+
"aria-disabled": e.disabled,
|
|
36
|
+
onChange: m,
|
|
37
|
+
onValueChange: ({ floatValue: h }) => o?.(h ?? null),
|
|
38
|
+
value: n,
|
|
39
|
+
placeholder: u,
|
|
40
|
+
disabled: e.disabled,
|
|
41
|
+
readOnly: f,
|
|
42
|
+
thousandSeparator: a,
|
|
43
|
+
decimalSeparator: p,
|
|
44
|
+
allowedDecimalSeparators: l,
|
|
45
|
+
thousandsGroupStyle: s,
|
|
46
|
+
decimalScale: d,
|
|
47
|
+
fixedDecimalScale: b,
|
|
48
|
+
allowNegative: R,
|
|
49
|
+
allowLeadingZeros: c,
|
|
50
|
+
suffix: g,
|
|
51
|
+
prefix: x
|
|
52
|
+
}
|
|
53
|
+
) });
|
|
19
54
|
}
|
|
20
55
|
);
|
|
21
56
|
export {
|
|
22
|
-
|
|
57
|
+
D as NumberInput
|
|
23
58
|
};
|
package/dist/bundle.es17.js
CHANGED
|
@@ -1,35 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
checked: e,
|
|
22
|
-
onCheckedChange: s,
|
|
23
|
-
disabled: r,
|
|
24
|
-
id: i,
|
|
25
|
-
children: /* @__PURE__ */ o(t.Indicator, { className: "checkbox-icon", children: /* @__PURE__ */ o(h, { icon: l, size: "xxxs" }) })
|
|
26
|
-
}
|
|
27
|
-
),
|
|
28
|
-
a && /* @__PURE__ */ o("label", { className: "checkbox-label", htmlFor: i, "data-disabled": c(r), children: a })
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
};
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Scrollable as n } from "./bundle.es7.js";
|
|
3
|
+
const s = ({
|
|
4
|
+
children: o,
|
|
5
|
+
maxHeight: t,
|
|
6
|
+
scrollboxRef: i,
|
|
7
|
+
optionsWrapperRef: e
|
|
8
|
+
}) => /* @__PURE__ */ r(
|
|
9
|
+
n,
|
|
10
|
+
{
|
|
11
|
+
ref: i,
|
|
12
|
+
implementation: "inner",
|
|
13
|
+
padding: 10,
|
|
14
|
+
thumbPadding: 3,
|
|
15
|
+
thumbColor: "#0000002b",
|
|
16
|
+
maxHeight: t,
|
|
17
|
+
scrollY: !0,
|
|
18
|
+
children: /* @__PURE__ */ r("div", { className: "option-list", ref: e, children: o })
|
|
19
|
+
}
|
|
20
|
+
);
|
|
33
21
|
export {
|
|
34
|
-
|
|
22
|
+
s as OptionsList
|
|
35
23
|
};
|
package/dist/bundle.es18.js
CHANGED
|
@@ -1,27 +1,35 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
1
|
+
import { jsxs as x, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import * as t from "@radix-ui/react-checkbox";
|
|
3
|
+
import { Icon as h } from "./bundle.es33.js";
|
|
4
|
+
import { faCheck as l } from "@companix/icons-solid";
|
|
4
5
|
import { useId as n } from "react";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
6
|
+
import { attr as c } from "@companix/utils-browser";
|
|
7
|
+
const u = ({ checked: e, required: m, disabled: r, onCheckedChange: s, size: d, label: a }) => {
|
|
8
|
+
const i = n();
|
|
9
|
+
return /* @__PURE__ */ x(
|
|
10
|
+
"div",
|
|
11
|
+
{
|
|
12
|
+
className: "checkbox",
|
|
13
|
+
"data-size": d ?? "md",
|
|
14
|
+
"data-required": c(m && !e),
|
|
15
|
+
"data-disabled": c(r),
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ o(
|
|
18
|
+
t.Root,
|
|
19
|
+
{
|
|
20
|
+
className: "checkbox-box",
|
|
21
|
+
checked: e,
|
|
22
|
+
onCheckedChange: s,
|
|
23
|
+
disabled: r,
|
|
24
|
+
id: i,
|
|
25
|
+
children: /* @__PURE__ */ o(t.Indicator, { className: "checkbox-icon", children: /* @__PURE__ */ o(h, { icon: l, size: "xxxs" }) })
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
a && /* @__PURE__ */ o("label", { className: "checkbox-label", htmlFor: i, "data-disabled": c(r), children: a })
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
);
|
|
24
32
|
};
|
|
25
33
|
export {
|
|
26
|
-
u as
|
|
34
|
+
u as Checkbox
|
|
27
35
|
};
|
package/dist/bundle.es19.js
CHANGED
|
@@ -1,47 +1,27 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
const {
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
`radio-${i.value}-${c}`
|
|
25
|
-
))
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
}, h = ({ value: t, label: m, size: a = "md", disabled: r, required: d }) => {
|
|
29
|
-
const e = p();
|
|
30
|
-
return /* @__PURE__ */ u(
|
|
31
|
-
"span",
|
|
32
|
-
{
|
|
33
|
-
className: "radio",
|
|
34
|
-
"data-disabled": s(r),
|
|
35
|
-
"data-size": a,
|
|
36
|
-
"data-required": s(d),
|
|
37
|
-
children: [
|
|
38
|
-
/* @__PURE__ */ o(l.Item, { className: "radio-box", value: t, disabled: r, id: e, children: /* @__PURE__ */ o(l.Indicator, { className: "radio-mark" }) }),
|
|
39
|
-
/* @__PURE__ */ o("label", { className: "radio-label", htmlFor: e, "data-disabled": s(r), children: m })
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
);
|
|
1
|
+
import { jsxs as d, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import * as r from "@radix-ui/react-switch";
|
|
3
|
+
import { attr as a } from "@companix/utils-browser";
|
|
4
|
+
import { useId as n } from "react";
|
|
5
|
+
const u = (m) => {
|
|
6
|
+
const { checked: e, disabled: s, onCheckedChange: o, uncheckedIcon: i, checkedIcon: t, label: h } = m, l = n();
|
|
7
|
+
return /* @__PURE__ */ d("div", { className: "switch", "data-disabled": a(s), children: [
|
|
8
|
+
/* @__PURE__ */ c(
|
|
9
|
+
r.Root,
|
|
10
|
+
{
|
|
11
|
+
className: "switch-track",
|
|
12
|
+
checked: e,
|
|
13
|
+
onCheckedChange: o,
|
|
14
|
+
disabled: s,
|
|
15
|
+
id: l,
|
|
16
|
+
children: /* @__PURE__ */ d(r.Thumb, { className: "switch-thumb", children: [
|
|
17
|
+
i && /* @__PURE__ */ c("span", { className: "switch-thumb-icon", "data-visible": a(!e), children: i }),
|
|
18
|
+
t && /* @__PURE__ */ c("span", { className: "switch-thumb-icon", "data-visible": a(e), children: t })
|
|
19
|
+
] })
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
h && /* @__PURE__ */ c("label", { className: "switch-label", htmlFor: l, "data-disabled": s, children: h })
|
|
23
|
+
] });
|
|
43
24
|
};
|
|
44
25
|
export {
|
|
45
|
-
|
|
46
|
-
q as RadioGroup
|
|
26
|
+
u as Switch
|
|
47
27
|
};
|
package/dist/bundle.es20.js
CHANGED
|
@@ -1,25 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
|
|
9
|
-
r.Content,
|
|
1
|
+
import { jsxs as u, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useId as p } from "react";
|
|
3
|
+
import * as l from "@radix-ui/react-radio-group";
|
|
4
|
+
import { attr as s } from "@companix/utils-browser";
|
|
5
|
+
const q = (t) => {
|
|
6
|
+
const { options: m, value: a, onChange: r, disabled: d, required: e, size: n } = t;
|
|
7
|
+
return /* @__PURE__ */ o(
|
|
8
|
+
l.Root,
|
|
10
9
|
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"data-
|
|
10
|
+
className: "radio-group",
|
|
11
|
+
disabled: d,
|
|
12
|
+
"data-required": s(e && !a),
|
|
13
|
+
"data-v": a,
|
|
14
|
+
value: a,
|
|
15
|
+
onValueChange: (i) => r(i),
|
|
16
|
+
children: m.map((i, c) => /* @__PURE__ */ o(
|
|
17
|
+
h,
|
|
18
|
+
{
|
|
19
|
+
...i,
|
|
20
|
+
size: n,
|
|
21
|
+
disabled: d,
|
|
22
|
+
required: e && !a
|
|
23
|
+
},
|
|
24
|
+
`radio-${i.value}-${c}`
|
|
25
|
+
))
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}, h = ({ value: t, label: m, size: a = "md", disabled: r, required: d }) => {
|
|
29
|
+
const e = p();
|
|
30
|
+
return /* @__PURE__ */ u(
|
|
31
|
+
"span",
|
|
32
|
+
{
|
|
33
|
+
className: "radio",
|
|
34
|
+
"data-disabled": s(r),
|
|
35
|
+
"data-size": a,
|
|
36
|
+
"data-required": s(d),
|
|
14
37
|
children: [
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
a
|
|
38
|
+
/* @__PURE__ */ o(l.Item, { className: "radio-box", value: t, disabled: r, id: e, children: /* @__PURE__ */ o(l.Indicator, { className: "radio-mark" }) }),
|
|
39
|
+
/* @__PURE__ */ o("label", { className: "radio-label", htmlFor: e, "data-disabled": s(r), children: m })
|
|
18
40
|
]
|
|
19
41
|
}
|
|
20
|
-
)
|
|
21
|
-
|
|
22
|
-
p.Close = r.Close;
|
|
42
|
+
);
|
|
43
|
+
};
|
|
23
44
|
export {
|
|
24
|
-
|
|
45
|
+
h as Radio,
|
|
46
|
+
q as RadioGroup
|
|
25
47
|
};
|
package/dist/bundle.es21.js
CHANGED
|
@@ -1,31 +1,25 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
4
|
-
import { VisuallyHidden as
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
] })
|
|
24
|
-
}
|
|
25
|
-
)
|
|
26
|
-
] }) });
|
|
27
|
-
};
|
|
28
|
-
g.Close = o.Close;
|
|
1
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import c from "classnames";
|
|
3
|
+
import * as r from "@radix-ui/react-dialog";
|
|
4
|
+
import { VisuallyHidden as i } from "@radix-ui/react-visually-hidden";
|
|
5
|
+
import { customCSS as d } from "@companix/utils-browser";
|
|
6
|
+
const p = ({ open: t, onOpenChange: l, children: a, size: s, direction: m, className: n }) => /* @__PURE__ */ e(r.Root, { open: t, onOpenChange: l, children: /* @__PURE__ */ o(r.Portal, { children: [
|
|
7
|
+
/* @__PURE__ */ e(r.Overlay, { className: "drawer-overlay" }),
|
|
8
|
+
/* @__PURE__ */ o(
|
|
9
|
+
r.Content,
|
|
10
|
+
{
|
|
11
|
+
style: d({ "--drawer-size": s ?? "50%" }),
|
|
12
|
+
className: c("drawer", n),
|
|
13
|
+
"data-direction": m,
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(r.Title, {}) }),
|
|
16
|
+
/* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(r.Description, {}) }),
|
|
17
|
+
a
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
] }) });
|
|
22
|
+
p.Close = r.Close;
|
|
29
23
|
export {
|
|
30
|
-
|
|
24
|
+
p as Drawer
|
|
31
25
|
};
|
package/dist/bundle.es22.js
CHANGED
|
@@ -1,40 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
7
|
-
open: d,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/* @__PURE__ */ a("div", { className: "alert-body", children: [
|
|
24
|
-
i && /* @__PURE__ */ e("span", { className: "alert-icon", children: i }),
|
|
25
|
-
/* @__PURE__ */ a("div", { className: "alert-content", children: [
|
|
26
|
-
l && /* @__PURE__ */ e(r.Title, { className: "alert-title", children: l }),
|
|
27
|
-
!l && /* @__PURE__ */ e(u, { children: /* @__PURE__ */ e(r.Title, {}) }),
|
|
28
|
-
o && /* @__PURE__ */ e(r.Description, { className: "alert-description", children: o })
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import f from "classnames";
|
|
3
|
+
import * as o from "@radix-ui/react-dialog";
|
|
4
|
+
import { VisuallyHidden as a } from "@radix-ui/react-visually-hidden";
|
|
5
|
+
import { RemoveListener as v } from "./bundle.es54.js";
|
|
6
|
+
const g = (l) => {
|
|
7
|
+
const { size: n = "s", open: r, onOpenChange: s, children: c, onClosed: t, disableEsc: p, className: d } = l, m = (h) => {
|
|
8
|
+
p && h.preventDefault();
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ e(o.Root, { open: r, onOpenChange: s, children: /* @__PURE__ */ i(o.Portal, { children: [
|
|
11
|
+
/* @__PURE__ */ e(o.Overlay, { className: "popup-overlay dialog-overlay" }),
|
|
12
|
+
/* @__PURE__ */ e(
|
|
13
|
+
o.Content,
|
|
14
|
+
{
|
|
15
|
+
className: "popup-container dialog-container",
|
|
16
|
+
"data-size": n,
|
|
17
|
+
onEscapeKeyDown: m,
|
|
18
|
+
children: /* @__PURE__ */ i("div", { className: f("popup dialog", d), children: [
|
|
19
|
+
/* @__PURE__ */ e(v, { callback: t }),
|
|
20
|
+
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(o.Title, {}) }),
|
|
21
|
+
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(o.Description, {}) }),
|
|
22
|
+
c
|
|
29
23
|
] })
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
] }) })
|
|
36
|
-
] })
|
|
37
|
-
] });
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
] }) });
|
|
27
|
+
};
|
|
28
|
+
g.Close = o.Close;
|
|
38
29
|
export {
|
|
39
|
-
|
|
30
|
+
g as Dialog
|
|
40
31
|
};
|
package/dist/bundle.es23.js
CHANGED
|
@@ -1,18 +1,40 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as r from "@radix-ui/react-alert-dialog";
|
|
3
|
+
import { Button as c } from "./bundle.es4.js";
|
|
4
|
+
import { RemoveListener as N } from "./bundle.es54.js";
|
|
5
|
+
import { VisuallyHidden as u } from "@radix-ui/react-visually-hidden";
|
|
6
|
+
const C = ({
|
|
7
|
+
open: d,
|
|
8
|
+
defaultOpen: p,
|
|
9
|
+
onOpenChange: m,
|
|
10
|
+
onUnMounted: h,
|
|
11
|
+
icon: i,
|
|
12
|
+
title: l,
|
|
13
|
+
description: o,
|
|
14
|
+
cancelDefaultText: n,
|
|
15
|
+
cancel: t,
|
|
16
|
+
disableCancel: v,
|
|
17
|
+
confirm: s
|
|
18
|
+
}) => /* @__PURE__ */ a(r.Root, { open: d, defaultOpen: p, onOpenChange: m, children: [
|
|
19
|
+
/* @__PURE__ */ e(N, { callback: h }),
|
|
20
|
+
/* @__PURE__ */ a(r.Portal, { children: [
|
|
21
|
+
/* @__PURE__ */ e(r.Overlay, { className: "popup-overlay dialog-overlay" }),
|
|
22
|
+
/* @__PURE__ */ e(r.Content, { className: "popup-container dialog-container", children: /* @__PURE__ */ a("div", { className: "popup alert", children: [
|
|
23
|
+
/* @__PURE__ */ a("div", { className: "alert-body", children: [
|
|
24
|
+
i && /* @__PURE__ */ e("span", { className: "alert-icon", children: i }),
|
|
25
|
+
/* @__PURE__ */ a("div", { className: "alert-content", children: [
|
|
26
|
+
l && /* @__PURE__ */ e(r.Title, { className: "alert-title", children: l }),
|
|
27
|
+
!l && /* @__PURE__ */ e(u, { children: /* @__PURE__ */ e(r.Title, {}) }),
|
|
28
|
+
o && /* @__PURE__ */ e(r.Description, { className: "alert-description", children: o })
|
|
29
|
+
] })
|
|
30
|
+
] }),
|
|
31
|
+
/* @__PURE__ */ a("div", { className: "alert-footer", children: [
|
|
32
|
+
!v && (t?.text || n) && /* @__PURE__ */ e(r.Cancel, { asChild: !0, children: /* @__PURE__ */ e(c, { appearance: "neutral", ...t, text: t?.text ?? n }) }),
|
|
33
|
+
s?.text && /* @__PURE__ */ e(r.Action, { asChild: !0, children: /* @__PURE__ */ e(c, { appearance: "negative", ...s }) })
|
|
34
|
+
] })
|
|
35
|
+
] }) })
|
|
36
|
+
] })
|
|
37
|
+
] });
|
|
16
38
|
export {
|
|
17
|
-
|
|
39
|
+
C as AlertDialog
|
|
18
40
|
};
|
package/dist/bundle.es24.js
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const { baseId: t } = c(o);
|
|
16
|
-
return /* @__PURE__ */ a(n.Trigger, { ...r, id: l(t, e), className: "tab", value: e, children: s });
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Button as m } from "./bundle.es4.js";
|
|
3
|
+
import { useLoading as p } from "./bundle.es55.js";
|
|
4
|
+
const g = ({ onClick: o, appearance: r = "primary", ...i }) => {
|
|
5
|
+
const { isLoading: n, isError: t, handleClick: a } = p({ onClick: o });
|
|
6
|
+
return /* @__PURE__ */ e(
|
|
7
|
+
m,
|
|
8
|
+
{
|
|
9
|
+
appearance: t ? "negative" : r,
|
|
10
|
+
...i,
|
|
11
|
+
loading: n,
|
|
12
|
+
onClick: a
|
|
13
|
+
}
|
|
14
|
+
);
|
|
17
15
|
};
|
|
18
|
-
u.Tab = I;
|
|
19
16
|
export {
|
|
20
|
-
|
|
17
|
+
g as LoadingButton
|
|
21
18
|
};
|
package/dist/bundle.es25.js
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
return s(() => {
|
|
18
|
-
r <= 0 && (a?.(), e.current && clearInterval(e.current));
|
|
19
|
-
}, [r <= 0]), /* @__PURE__ */ d(p, { children: [n(i), n(u), n(l)].join(m) });
|
|
1
|
+
import { jsx as a, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { useTabSlider as b, makeTabId as l } from "./bundle.es46.js";
|
|
3
|
+
import * as n from "@radix-ui/react-tabs";
|
|
4
|
+
import { useRef as m, useId as f, createContext as T, useContext as c } from "react";
|
|
5
|
+
const o = T({ baseId: "", containerRef: {} }), u = ({ children: s, value: e, onChange: r }) => {
|
|
6
|
+
const t = m(null), i = f().replaceAll(":", "");
|
|
7
|
+
return /* @__PURE__ */ a(n.Root, { value: e, onValueChange: r, children: /* @__PURE__ */ a(o.Provider, { value: { baseId: i, containerRef: t }, children: /* @__PURE__ */ d(n.List, { className: "tabs", ref: t, children: [
|
|
8
|
+
/* @__PURE__ */ a(x, { value: e }),
|
|
9
|
+
s
|
|
10
|
+
] }) }) });
|
|
11
|
+
}, x = ({ value: s }) => {
|
|
12
|
+
const { baseId: e, containerRef: r } = c(o), t = b({ baseId: e, value: s, containerRef: r });
|
|
13
|
+
return /* @__PURE__ */ a("div", { className: "tab-indicator-container", style: t, children: /* @__PURE__ */ a("div", { className: "tab-indicator" }) });
|
|
14
|
+
}, I = ({ children: s, value: e, ...r }) => {
|
|
15
|
+
const { baseId: t } = c(o);
|
|
16
|
+
return /* @__PURE__ */ a(n.Trigger, { ...r, id: l(t, e), className: "tab", value: e, children: s });
|
|
20
17
|
};
|
|
18
|
+
u.Tab = I;
|
|
21
19
|
export {
|
|
22
|
-
|
|
20
|
+
u as Tabs
|
|
23
21
|
};
|