@companix/uikit 0.0.29 → 0.0.31

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.
Files changed (51) hide show
  1. package/dist/ButtonGroup/index.d.ts +1 -2
  2. package/dist/Checkbox/index.d.ts +1 -1
  3. package/dist/Countdown/index.d.ts +1 -2
  4. package/dist/DateInput/index.d.ts +2 -2
  5. package/dist/DatePicker/index.d.ts +1 -2
  6. package/dist/FormGroup/index.d.ts +2 -3
  7. package/dist/Input/Input.d.ts +1 -1
  8. package/dist/LoadingButton/index.d.ts +5 -0
  9. package/dist/OptionItem/OptionItem.d.ts +1 -2
  10. package/dist/OptionItem/OptionsList.d.ts +2 -3
  11. package/dist/Radio/index.d.ts +1 -1
  12. package/dist/Scrollable/ImitateScroll.d.ts +2 -2
  13. package/dist/Select/index.d.ts +1 -1
  14. package/dist/Spinner/index.d.ts +2 -3
  15. package/dist/Tabs/index.d.ts +2 -2
  16. package/dist/TextArea/index.d.ts +1 -2
  17. package/dist/Tooltip/index.d.ts +1 -2
  18. package/dist/bundle.es.js +26 -26
  19. package/dist/bundle.es10.js +37 -32
  20. package/dist/bundle.es11.js +32 -52
  21. package/dist/bundle.es12.js +54 -14
  22. package/dist/bundle.es13.js +20 -7
  23. package/dist/bundle.es2.js +1 -1
  24. package/dist/bundle.es20.js +1 -1
  25. package/dist/bundle.es24.js +3 -3
  26. package/dist/bundle.es25.js +2 -2
  27. package/dist/bundle.es26.js +1 -1
  28. package/dist/bundle.es29.js +2 -2
  29. package/dist/bundle.es3.js +7 -10
  30. package/dist/bundle.es38.js +1 -1
  31. package/dist/bundle.es4.js +11 -85
  32. package/dist/bundle.es42.js +2 -2
  33. package/dist/bundle.es44.js +1 -1
  34. package/dist/bundle.es45.js +1 -1
  35. package/dist/bundle.es5.js +82 -82
  36. package/dist/bundle.es51.js +2 -2
  37. package/dist/bundle.es6.js +81 -74
  38. package/dist/bundle.es60.js +20 -14
  39. package/dist/bundle.es61.js +2 -20
  40. package/dist/bundle.es62.js +76 -2
  41. package/dist/bundle.es63.js +45 -72
  42. package/dist/bundle.es64.js +13 -48
  43. package/dist/bundle.es7.js +78 -26
  44. package/dist/bundle.es71.js +3 -14
  45. package/dist/bundle.es72.js +1 -1
  46. package/dist/bundle.es73.js +14 -3
  47. package/dist/bundle.es8.js +21 -70
  48. package/dist/bundle.es9.js +75 -41
  49. package/dist/index.d.ts +31 -5
  50. package/package.json +1 -1
  51. package/dist/LoadButton/index.d.ts +0 -5
@@ -1,78 +1,51 @@
1
- import { jsxs as f, jsx as o } from "react/jsx-runtime";
2
- import { useCallback as h, useMemo as d } from "react";
3
- import { Select as p } from "./bundle.es8.js";
4
- import { getMonths as Y, getYears as k, DEFAULT_MAX_YEAR as u, DEFAULT_MIN_YEAR as g } from "./bundle.es53.js";
5
- import { Icon as C } from "./bundle.es30.js";
6
- import { f as z } from "./bundle.es72.js";
7
- import { f as L } from "./bundle.es73.js";
8
- import { setMonth as R, setYear as T } from "./bundle.es52.js";
9
- const S = ({
10
- viewDate: n,
11
- onChange: m,
12
- isMonthDisabled: a,
13
- isYearDisabled: c,
14
- onNextMonth: v,
15
- onPrevMonth: x
1
+ import { subMonths as L, addMonths as N, useDayDisableCheker as R } from "./bundle.es52.js";
2
+ import { DEFAULT_MIN_YEAR as w, DEFAULT_MAX_YEAR as A } from "./bundle.es53.js";
3
+ import { useState as U, useCallback as M } from "react";
4
+ const X = ({
5
+ value: p,
6
+ disablePast: r,
7
+ disableFuture: c,
8
+ shouldDisableDate: E,
9
+ minDateTime: l,
10
+ maxDateTime: s
16
11
  }) => {
17
- const r = n.getFullYear(), e = n.getMonth(), i = "ru", N = h(
18
- (t) => {
19
- m(R(n, t));
12
+ const [e, u] = U(p || /* @__PURE__ */ new Date()), _ = M(() => {
13
+ u(L(e));
14
+ }, [e]), C = M(() => {
15
+ u(N(e, 1));
16
+ }, [e]), D = R({
17
+ disableFuture: c,
18
+ disablePast: r,
19
+ shouldDisableDate: E,
20
+ minDateTime: l,
21
+ maxDateTime: s
22
+ }), k = M(
23
+ (o, t) => {
24
+ const n = /* @__PURE__ */ new Date();
25
+ t = t || e.getFullYear();
26
+ const h = l ? l.getMonth() : 0, Y = s ? s.getMonth() : 11, F = l?.getFullYear() || w, f = s?.getFullYear() || A;
27
+ let g = t >= F && t <= f ? t === F && h > o || t === f && o > Y : !0;
28
+ return c && (g = g || (t === n.getFullYear() ? o > n.getMonth() : t > n.getFullYear())), r && (g = g || (t === n.getFullYear() ? o < n.getMonth() : t < n.getFullYear())), g;
20
29
  },
21
- [m, n]
22
- ), E = h(
23
- (t) => {
24
- m(T(n, t));
30
+ [c, r, e, l, s]
31
+ ), v = M(
32
+ (o) => {
33
+ const t = /* @__PURE__ */ new Date(), n = l?.getFullYear() || w, h = s?.getFullYear() || A;
34
+ let Y = n > o || o > h;
35
+ return c && (Y = Y || o > t.getFullYear()), r && (Y = Y || o < t.getFullYear()), Y;
25
36
  },
26
- [m, n]
27
- ), M = d(() => Y(i).map((t) => ({
28
- ...t,
29
- className: "capitalize",
30
- disabled: a && a(t.value)
31
- })), [i, a]), A = d(() => k(r, 100).map((t) => ({
32
- ...t,
33
- disabled: c && c(t.value)
34
- })), [r, c]);
35
- let l = e === 11 && r === u;
36
- a && !l && (l = a(
37
- e === 11 ? 0 : e + 1,
38
- e === 11 ? Math.min(r + 1, u) : r
39
- ));
40
- let s = e === 0 && r === g;
41
- return a && !s && (s = a(
42
- e === 0 ? 11 : e - 1,
43
- e === 0 ? Math.max(r - 1, g) : r
44
- )), /* @__PURE__ */ f("div", { className: "calendar-header", children: [
45
- !s && /* @__PURE__ */ o("button", { className: "calendar-navigation", "data-side": "left", onClick: x, children: /* @__PURE__ */ o(C, { icon: L.faChevronLeft }) }),
46
- /* @__PURE__ */ f("div", { className: "calendar-pickers", children: [
47
- /* @__PURE__ */ o(
48
- p,
49
- {
50
- fill: !0,
51
- options: A,
52
- size: "sm",
53
- value: r,
54
- minimalOptions: !0,
55
- matchTarget: "min-width",
56
- onChange: (t) => E(t)
57
- }
58
- ),
59
- /* @__PURE__ */ o(
60
- p,
61
- {
62
- fill: !0,
63
- options: M,
64
- size: "sm",
65
- className: "capitalize",
66
- value: e,
67
- minimalOptions: !0,
68
- matchTarget: "min-width",
69
- onChange: (t) => N(t)
70
- }
71
- )
72
- ] }),
73
- !l && /* @__PURE__ */ o("button", { className: "calendar-navigation", "data-side": "right", onClick: v, children: /* @__PURE__ */ o(C, { icon: z.faChevronRight }) })
74
- ] });
37
+ [c, r, l, s]
38
+ );
39
+ return {
40
+ viewDate: e,
41
+ setViewDate: u,
42
+ setPrevMonth: _,
43
+ setNextMonth: C,
44
+ isDayDisabled: D,
45
+ isMonthDisabled: k,
46
+ isYearDisabled: v
47
+ };
75
48
  };
76
49
  export {
77
- S as CalendarHeader
50
+ X as useCalendar
78
51
  };
@@ -1,51 +1,16 @@
1
- import { subMonths as L, addMonths as N, useDayDisableCheker as R } from "./bundle.es52.js";
2
- import { DEFAULT_MIN_YEAR as w, DEFAULT_MAX_YEAR as A } from "./bundle.es53.js";
3
- import { useState as U, useCallback as M } from "react";
4
- const X = ({
5
- value: p,
6
- disablePast: r,
7
- disableFuture: c,
8
- shouldDisableDate: E,
9
- minDateTime: l,
10
- maxDateTime: s
11
- }) => {
12
- const [e, u] = U(p || /* @__PURE__ */ new Date()), _ = M(() => {
13
- u(L(e));
14
- }, [e]), C = M(() => {
15
- u(N(e, 1));
16
- }, [e]), D = R({
17
- disableFuture: c,
18
- disablePast: r,
19
- shouldDisableDate: E,
20
- minDateTime: l,
21
- maxDateTime: s
22
- }), k = M(
23
- (o, t) => {
24
- const n = /* @__PURE__ */ new Date();
25
- t = t || e.getFullYear();
26
- const h = l ? l.getMonth() : 0, Y = s ? s.getMonth() : 11, F = l?.getFullYear() || w, f = s?.getFullYear() || A;
27
- let g = t >= F && t <= f ? t === F && h > o || t === f && o > Y : !0;
28
- return c && (g = g || (t === n.getFullYear() ? o > n.getMonth() : t > n.getFullYear())), r && (g = g || (t === n.getFullYear() ? o < n.getMonth() : t < n.getFullYear())), g;
29
- },
30
- [c, r, e, l, s]
31
- ), v = M(
32
- (o) => {
33
- const t = /* @__PURE__ */ new Date(), n = l?.getFullYear() || w, h = s?.getFullYear() || A;
34
- let Y = n > o || o > h;
35
- return c && (Y = Y || o > t.getFullYear()), r && (Y = Y || o < t.getFullYear()), Y;
36
- },
37
- [c, r, l, s]
38
- );
39
- return {
40
- viewDate: e,
41
- setViewDate: u,
42
- setPrevMonth: _,
43
- setNextMonth: C,
44
- isDayDisabled: D,
45
- isMonthDisabled: k,
46
- isYearDisabled: v
47
- };
1
+ import { useRef as l, useCallback as p } from "react";
2
+ import { useEffectWithLayout as d } from "./bundle.es73.js";
3
+ const g = (r, f) => {
4
+ const c = l(null), i = l(null), o = { Right: c, Left: i }, u = p((t) => {
5
+ if (r.current) {
6
+ const n = r.current.style, e = o[t];
7
+ e.current && e.current.clientWidth ? n[`padding${t}`] !== `${e.current.clientWidth}px` && (n[`padding${t}`] = `${e.current.clientWidth}px`) : n[`padding${t}`] && (n[`padding${t}`] = "");
8
+ }
9
+ }, []);
10
+ return d(() => {
11
+ u("Left"), u("Right");
12
+ }, f), { rightRef: c, leftRef: i };
48
13
  };
49
14
  export {
50
- X as useCalendar
15
+ g as useInputPadding
51
16
  };
@@ -1,28 +1,80 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { useState as p } from "react";
3
- import { Popover as m } from "./bundle.es6.js";
4
- const f = ({ children: e, content: t, side: r }) => {
5
- const [s, o] = p(!1);
6
- return /* @__PURE__ */ n(
7
- m,
8
- {
9
- showArrows: !0,
10
- className: "tooltip",
11
- open: s,
12
- side: r,
13
- content: () => t,
14
- triggerProps: {
15
- onMouseEnter: () => {
16
- o(!0);
17
- },
18
- onMouseLeave: () => {
19
- o(!1);
20
- }
21
- },
22
- children: e
23
- }
24
- );
25
- };
1
+ import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
+ import * as o from "@radix-ui/react-popover";
3
+ import { attr as y } from "@companix/utils-browser";
4
+ import B from "classnames";
5
+ import { forwardRef as M, useRef as j } from "react";
6
+ const D = M((a, i) => {
7
+ const {
8
+ children: n,
9
+ sideOffset: s,
10
+ matchTarget: l,
11
+ onAnimationEnd: c,
12
+ onAnimationStart: m,
13
+ onOpenAutoFocus: d,
14
+ onCloseAutoFocus: f,
15
+ triggerRef: p,
16
+ triggerProps: h,
17
+ open: g,
18
+ content: u,
19
+ onOpenChange: v,
20
+ align: C,
21
+ disabled: w,
22
+ minimal: x,
23
+ className: L,
24
+ fitMaxHeight: N = !0,
25
+ side: O,
26
+ showArrows: A
27
+ } = a, e = j(null), P = () => {
28
+ e.current && e.current.click();
29
+ }, b = (R) => {
30
+ w && R.preventDefault();
31
+ };
32
+ return /* @__PURE__ */ t(o.Root, { open: g, onOpenChange: v, children: [
33
+ /* @__PURE__ */ r(o.Trigger, { ref: p, ...h, onClick: b, asChild: !0, children: n }),
34
+ /* @__PURE__ */ r(o.Portal, { children: /* @__PURE__ */ t(
35
+ o.Content,
36
+ {
37
+ ref: i,
38
+ className: B("popover", L),
39
+ side: O,
40
+ align: C,
41
+ "data-appearance": x ? "minimal" : "default",
42
+ "data-match-target": l,
43
+ sideOffset: s ?? 6,
44
+ avoidCollisions: !0,
45
+ arrowPadding: 10,
46
+ onAnimationStart: m,
47
+ onAnimationEnd: c,
48
+ onOpenAutoFocus: d,
49
+ onCloseAutoFocus: f,
50
+ children: [
51
+ /* @__PURE__ */ r(o.Close, { ref: e, style: { display: "none" } }),
52
+ A && /* @__PURE__ */ r(o.Arrow, { width: 30, height: 11, asChild: !0, children: /* @__PURE__ */ r("div", { className: "popover-arrow", children: /* @__PURE__ */ t("svg", { className: "popover-arrow-icon", viewBox: "0 0 30 11", width: 30, height: 11, children: [
53
+ /* @__PURE__ */ r(
54
+ "path",
55
+ {
56
+ className: "popover-arrow-border",
57
+ d: "M 18.112 -2.704 C 19.127 -3.64 19.999 -5.626 19.999 -7.001 L 19.999 18.999 C 19.999 17.621 19.131 15.642 18.111 14.702 L 10.927 8.084 C 9.69 6.944 9.694 5.05 10.927 3.914 L 18.112 -2.704 Z",
58
+ style: { transformBox: "fill-box", transformOrigin: "50% 50%" },
59
+ transform: "matrix(0, -1, 1, 0, 0.000001, 0)"
60
+ }
61
+ ),
62
+ /* @__PURE__ */ r(
63
+ "path",
64
+ {
65
+ className: "popover-arrow-fill",
66
+ d: "M 17.789 -2.965 C 19.009 -4.09 19.999 -6.341 19.999 -7.995 L 19.999 -10.001 L 19.999 19.999 L 19.999 17.994 C 19.999 16.34 19.016 14.094 17.789 12.964 L 10.606 6.348 C 9.796 5.602 9.804 4.388 10.606 3.648 L 17.789 -2.966 L 17.789 -2.965 Z",
67
+ style: { transformBox: "fill-box", transformOrigin: "50% 50%" },
68
+ transform: "matrix(0, -1, 1, 0, 0, 0)"
69
+ }
70
+ )
71
+ ] }) }) }),
72
+ /* @__PURE__ */ r("div", { className: "popover-content", "data-fit-max-height": y(N), children: u({ close: P }) })
73
+ ]
74
+ }
75
+ ) })
76
+ ] });
77
+ });
26
78
  export {
27
- f as Tooltip
79
+ D as Popover
28
80
  };
@@ -1,16 +1,5 @@
1
- import { useRef as f, useLayoutEffect as u, useEffect as s } from "react";
2
- const o = (t, r) => {
3
- const e = f(!1);
4
- u(() => {
5
- e.current = !0, t();
6
- }, []), s(() => {
7
- if (e.current) {
8
- e.current = !1;
9
- return;
10
- }
11
- t();
12
- }, r);
13
- };
1
+ import { __require as r } from "./bundle.es74.js";
2
+ var o = /* @__PURE__ */ r();
14
3
  export {
15
- o as useEffectWithLayout
4
+ o as f
16
5
  };
@@ -1,4 +1,4 @@
1
- import { __require as r } from "./bundle.es74.js";
1
+ import { __require as r } from "./bundle.es76.js";
2
2
  var o = /* @__PURE__ */ r();
3
3
  export {
4
4
  o as f
@@ -1,5 +1,16 @@
1
- import { __require as r } from "./bundle.es76.js";
2
- var o = /* @__PURE__ */ r();
1
+ import { useRef as f, useLayoutEffect as u, useEffect as s } from "react";
2
+ const o = (t, r) => {
3
+ const e = f(!1);
4
+ u(() => {
5
+ e.current = !0, t();
6
+ }, []), s(() => {
7
+ if (e.current) {
8
+ e.current = !1;
9
+ return;
10
+ }
11
+ t();
12
+ }, r);
13
+ };
3
14
  export {
4
- o as f
15
+ o as useEffectWithLayout
5
16
  };
@@ -1,77 +1,28 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import { useMemo as F, useImperativeHandle as I } from "react";
3
- import { Popover as T } from "./bundle.es6.js";
4
- import { useFroozeClosing as b } from "./bundle.es39.js";
5
- import { SelectInput as z } from "./bundle.es40.js";
6
- import { useScrollListController as B } from "./bundle.es41.js";
7
- import { SelectOptions as D } from "./bundle.es42.js";
8
- import { mergeRefs as j } from "react-merge-refs";
9
- const G = (a) => {
10
- const {
11
- options: n,
12
- onChange: i,
13
- value: r,
14
- minimalOptions: m,
15
- matchTarget: f = "width",
16
- children: u,
17
- disabled: p,
18
- scrollRef: d,
19
- popoverRef: v,
20
- clearButton: s,
21
- ...h
22
- } = a, t = F(() => {
23
- const o = r === null ? -1 : n.findIndex((e) => e.value === r);
24
- return {
25
- index: o,
26
- option: n[o]
27
- };
28
- }, [n, r]), x = t.option?.value ?? null, { popoverRef: R, froozePopoverPosition: C, handleAnimationEnd: g } = b(), { scrollToElement: c, optionsWrapperRef: O, scrollBoxRef: P } = B();
29
- I(d, () => ({
30
- scrollTo: (o) => c(o, "top")
31
- }));
32
- const S = (o, e) => {
33
- C(), i(o), e();
34
- }, A = (o) => {
35
- o.stopPropagation(), s && i(null);
36
- }, E = () => {
37
- t.index !== -1 && c(t.index, "center");
38
- };
39
- return /* @__PURE__ */ l(
40
- T,
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { useState as p } from "react";
3
+ import { Popover as m } from "./bundle.es7.js";
4
+ const f = ({ children: e, content: t, side: r }) => {
5
+ const [s, o] = p(!1);
6
+ return /* @__PURE__ */ n(
7
+ m,
41
8
  {
42
- minimal: !0,
43
- ref: j([R, v]),
44
- sideOffset: 0,
45
- matchTarget: f,
46
- onAnimationEnd: g,
47
- onOpenAutoFocus: (o) => o.preventDefault(),
48
- onCloseAutoFocus: (o) => o.preventDefault(),
49
- disabled: p,
50
- content: ({ close: o }) => /* @__PURE__ */ l(
51
- D,
52
- {
53
- options: n,
54
- active: x,
55
- scrollboxRef: P,
56
- optionsWrapperRef: O,
57
- minimalOptions: m,
58
- onOpened: E,
59
- onSelect: (e) => S(e, o)
9
+ showArrows: !0,
10
+ className: "tooltip",
11
+ open: s,
12
+ side: r,
13
+ content: () => t,
14
+ triggerProps: {
15
+ onMouseEnter: () => {
16
+ o(!0);
17
+ },
18
+ onMouseLeave: () => {
19
+ o(!1);
60
20
  }
61
- ),
62
- children: u ?? /* @__PURE__ */ l(
63
- z,
64
- {
65
- ...h,
66
- disabled: p,
67
- clearButton: s,
68
- value: t.option?.title ?? "",
69
- onClear: A
70
- }
71
- )
21
+ },
22
+ children: e
72
23
  }
73
24
  );
74
25
  };
75
26
  export {
76
- G as Select
27
+ f as Tooltip
77
28
  };
@@ -1,43 +1,77 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as b, useRef as R } from "react";
3
- import { mergeRefs as c } from "react-merge-refs";
4
- import { InputElement as x } from "./bundle.es43.js";
5
- import { InputContainer as I } from "./bundle.es44.js";
6
- import g from "classnames";
7
- const k = b(
8
- ({
9
- onChange: m,
10
- onValueChange: f,
11
- readOnly: i,
12
- inputClassName: o,
13
- value: n,
14
- placeholder: p,
15
- mask: d,
16
- type: s = "text",
17
- maskChar: u,
18
- inputRef: a,
19
- ...e
20
- }, l) => {
21
- const r = R(null);
22
- return /* @__PURE__ */ t(I, { ref: l, inputRef: r, ...e, children: /* @__PURE__ */ t(
23
- x,
24
- {
25
- type: s,
26
- ref: c([r, a]),
27
- className: g("form-input form-input-base", o),
28
- "aria-disabled": e.disabled,
29
- onChange: m,
30
- onValueChange: f,
31
- value: n,
32
- placeholder: p,
33
- disabled: e.disabled,
34
- readOnly: i,
35
- maskChar: u,
36
- mask: d
37
- }
38
- ) });
39
- }
40
- );
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { useMemo as F, useImperativeHandle as I } from "react";
3
+ import { Popover as T } from "./bundle.es7.js";
4
+ import { useFroozeClosing as b } from "./bundle.es39.js";
5
+ import { SelectInput as z } from "./bundle.es40.js";
6
+ import { useScrollListController as B } from "./bundle.es41.js";
7
+ import { SelectOptions as D } from "./bundle.es42.js";
8
+ import { mergeRefs as j } from "react-merge-refs";
9
+ const G = (a) => {
10
+ const {
11
+ options: n,
12
+ onChange: i,
13
+ value: r,
14
+ minimalOptions: m,
15
+ matchTarget: f = "width",
16
+ children: u,
17
+ disabled: p,
18
+ scrollRef: d,
19
+ popoverRef: v,
20
+ clearButton: s,
21
+ ...h
22
+ } = a, t = F(() => {
23
+ const o = r === null ? -1 : n.findIndex((e) => e.value === r);
24
+ return {
25
+ index: o,
26
+ option: n[o]
27
+ };
28
+ }, [n, r]), x = t.option?.value ?? null, { popoverRef: R, froozePopoverPosition: C, handleAnimationEnd: g } = b(), { scrollToElement: c, optionsWrapperRef: O, scrollBoxRef: P } = B();
29
+ I(d, () => ({
30
+ scrollTo: (o) => c(o, "top")
31
+ }));
32
+ const S = (o, e) => {
33
+ C(), i(o), e();
34
+ }, A = (o) => {
35
+ o.stopPropagation(), s && i(null);
36
+ }, E = () => {
37
+ t.index !== -1 && c(t.index, "center");
38
+ };
39
+ return /* @__PURE__ */ l(
40
+ T,
41
+ {
42
+ minimal: !0,
43
+ ref: j([R, v]),
44
+ sideOffset: 0,
45
+ matchTarget: f,
46
+ onAnimationEnd: g,
47
+ onOpenAutoFocus: (o) => o.preventDefault(),
48
+ onCloseAutoFocus: (o) => o.preventDefault(),
49
+ disabled: p,
50
+ content: ({ close: o }) => /* @__PURE__ */ l(
51
+ D,
52
+ {
53
+ options: n,
54
+ active: x,
55
+ scrollboxRef: P,
56
+ optionsWrapperRef: O,
57
+ minimalOptions: m,
58
+ onOpened: E,
59
+ onSelect: (e) => S(e, o)
60
+ }
61
+ ),
62
+ children: u ?? /* @__PURE__ */ l(
63
+ z,
64
+ {
65
+ ...h,
66
+ disabled: p,
67
+ clearButton: s,
68
+ value: t.option?.title ?? "",
69
+ onClear: A
70
+ }
71
+ )
72
+ }
73
+ );
74
+ };
41
75
  export {
42
- k as Input
76
+ G as Select
43
77
  };
package/dist/index.d.ts CHANGED
@@ -1,42 +1,68 @@
1
1
  export { Button } from './Button';
2
+ export type { ButtonProps, Appearance, Mode, Size } from './Button';
3
+ export { ButtonGroup } from './ButtonGroup';
4
+ export type { ButtonGroupProps } from './ButtonGroup';
2
5
  export { Spinner } from './Spinner';
6
+ export type { SpinnerProps } from './Spinner';
3
7
  export { Scrollable } from './Scrollable';
4
8
  export { ImitateScroll } from './Scrollable/ImitateScroll';
9
+ export type { ImitateScrollProps } from './Scrollable/ImitateScroll';
5
10
  export { Popover } from './Popover';
11
+ export type { PopoverProps } from './Popover';
6
12
  export { Tooltip } from './Tooltip';
13
+ export type { TooltipProps } from './Tooltip';
7
14
  export { Select } from './Select';
15
+ export type { SelectProps } from './Select';
8
16
  export { Input } from './Input/Input';
17
+ export type { InputProps } from './Input/Input';
9
18
  export { OptionItem } from './OptionItem/OptionItem';
19
+ export type { OptionProps } from './OptionItem/OptionItem';
10
20
  export { NumberInput } from './NumberInput';
21
+ export type { NumberInputProps, ReactNumberFormatParams } from './NumberInput';
11
22
  export { OptionsList } from './OptionItem/OptionsList';
12
- export { ButtonGroup } from './ButtonGroup';
23
+ export type { OptionsListProps } from './OptionItem/OptionsList';
13
24
  export { Checkbox } from './Checkbox';
25
+ export type { CheckboxProps } from './Checkbox';
14
26
  export { Switch } from './Switch';
27
+ export type { SwitchProps } from './Switch';
15
28
  export { Radio, RadioGroup } from './Radio';
29
+ export type { RadioOption, RadioGroupProps } from './Radio';
16
30
  export { Drawer } from './Drawer';
31
+ export type { DrawerProps } from './Drawer';
17
32
  export { Dialog } from './Dialog';
33
+ export type { DialogProps, DialogSize } from './Dialog';
18
34
  export { AlertDialog } from './DialogAlert/Alert';
19
- export { LoadButton } from './LoadButton';
35
+ export type { AlertDialogProps } from './DialogAlert/Alert';
36
+ export { LoadingButton } from './LoadingButton';
37
+ export type { LoadingButtonProps } from './LoadingButton';
20
38
  export { Tabs } from './Tabs';
39
+ export type { TabsProps } from './Tabs';
21
40
  export { Countdown } from './Countdown';
41
+ export type { CountDownProps } from './Countdown';
22
42
  export { TextArea } from './TextArea';
43
+ export type { TextAreaProps } from './TextArea';
23
44
  export { SelectTags } from './SelectTags';
45
+ export type { SelectTagsProps } from './SelectTags';
24
46
  export { DatePicker } from './DatePicker';
47
+ export type { DatePickerProps } from './DatePicker';
25
48
  export { DateInput } from './DateInput';
49
+ export type { DateInputProps } from './DateInput';
26
50
  export { FileOverlay } from './File';
51
+ export type { FileOverlayProps } from './File';
27
52
  export { FormGroup } from './FormGroup';
53
+ export type { FormGroupProps } from './FormGroup';
28
54
  export { TimePicker } from './TimePicker';
55
+ export type { TimePickerProps } from './TimePicker';
29
56
  export { Icon } from './Icon';
57
+ export type { IconProps } from './Icon';
30
58
  export { ProgressBar } from './Progress';
59
+ export type { ProgressBarProps } from './Progress';
31
60
  export { ThemeProvider, useTheme } from './ThemeProvider';
32
61
  export { useLocalStorage } from './__hooks/use-local-storage';
33
62
  export { createAlertAgent } from './DialogAlert';
34
63
  export { createToaster } from './Toaster';
35
64
  export { Toast } from './Toaster/Toast';
36
65
  export * from './types';
37
- export type { Appearance } from './Button';
38
- export type { RadioOption } from './Radio';
39
- export type { NumberInputProps, ReactNumberFormatParams } from './NumberInput';
40
66
  export type { CalendarProps } from './DatePicker/Calendar';
41
67
  export { createDialogsRegistry, DialogShell } from './__helpers/createDialogRegistry';
42
68
  export { createPopoversRegistry } from './__helpers/createPopoversRegistry';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companix/uikit",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "module": "./dist/bundle.es.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",
@@ -1,5 +0,0 @@
1
- import { ButtonProps } from '../Button';
2
- import { UseLoadingProps } from '../__hooks/use-loading';
3
- export interface LoadButtonProps extends UseLoadingProps, Omit<ButtonProps, 'onClick'> {
4
- }
5
- export declare const LoadButton: ({ onClick, appearance, ...rest }: LoadButtonProps) => import("react/jsx-runtime").JSX.Element;